@ecency/sdk 2.4.24 → 2.4.26

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 (737) hide show
  1. package/dist/browser/{chunk-FNC7YWOW.js → chunk-2D4QXWOR.js} +2 -2
  2. package/dist/browser/{chunk-FNC7YWOW.js.map → chunk-2D4QXWOR.js.map} +1 -1
  3. package/dist/browser/{chunk-IVLVYIWT.js → chunk-2DF6KJRC.js} +2 -2
  4. package/dist/browser/{chunk-IVLVYIWT.js.map → chunk-2DF6KJRC.js.map} +1 -1
  5. package/dist/browser/{chunk-W6CO2WKX.js → chunk-2GKT3E6S.js} +2 -2
  6. package/dist/browser/{chunk-W6CO2WKX.js.map → chunk-2GKT3E6S.js.map} +1 -1
  7. package/dist/browser/{chunk-AYEL5IFW.js → chunk-2HTZSJZ2.js} +2 -2
  8. package/dist/browser/{chunk-AYEL5IFW.js.map → chunk-2HTZSJZ2.js.map} +1 -1
  9. package/dist/browser/{chunk-4XH2KIZZ.js → chunk-2NNWHO5F.js} +2 -2
  10. package/dist/browser/{chunk-4XH2KIZZ.js.map → chunk-2NNWHO5F.js.map} +1 -1
  11. package/dist/browser/{chunk-662I4R4H.js → chunk-2NQT3TBE.js} +2 -2
  12. package/dist/browser/{chunk-662I4R4H.js.map → chunk-2NQT3TBE.js.map} +1 -1
  13. package/dist/browser/{chunk-NNZ2CJJ6.js → chunk-2R3U7ZOC.js} +2 -2
  14. package/dist/browser/{chunk-NNZ2CJJ6.js.map → chunk-2R3U7ZOC.js.map} +1 -1
  15. package/dist/browser/{chunk-CL7EH7NA.js → chunk-2ZNDCNNT.js} +2 -2
  16. package/dist/browser/{chunk-CL7EH7NA.js.map → chunk-2ZNDCNNT.js.map} +1 -1
  17. package/dist/browser/{chunk-QZXM2CX5.js → chunk-3B6M4WRI.js} +2 -2
  18. package/dist/browser/{chunk-QZXM2CX5.js.map → chunk-3B6M4WRI.js.map} +1 -1
  19. package/dist/browser/{chunk-ZCURRWT2.js → chunk-3GSH2ERZ.js} +2 -2
  20. package/dist/browser/{chunk-ZCURRWT2.js.map → chunk-3GSH2ERZ.js.map} +1 -1
  21. package/dist/browser/{chunk-HC3UDPP5.js → chunk-3JTDOVKS.js} +2 -2
  22. package/dist/browser/{chunk-HC3UDPP5.js.map → chunk-3JTDOVKS.js.map} +1 -1
  23. package/dist/browser/chunk-3KJPJH4D.js +2 -0
  24. package/dist/browser/{chunk-G7UMQXIE.js.map → chunk-3KJPJH4D.js.map} +1 -1
  25. package/dist/browser/{chunk-Z5HEILXV.js → chunk-3N4SN5W7.js} +2 -2
  26. package/dist/browser/{chunk-Z5HEILXV.js.map → chunk-3N4SN5W7.js.map} +1 -1
  27. package/dist/browser/{chunk-6ILB35QN.js → chunk-3T64VMU2.js} +2 -2
  28. package/dist/browser/{chunk-6ILB35QN.js.map → chunk-3T64VMU2.js.map} +1 -1
  29. package/dist/browser/{chunk-4C57MZP6.js → chunk-3UESDLC3.js} +2 -2
  30. package/dist/browser/{chunk-4C57MZP6.js.map → chunk-3UESDLC3.js.map} +1 -1
  31. package/dist/browser/{chunk-KBQ6MAP7.js → chunk-3WZYZEJO.js} +2 -2
  32. package/dist/browser/{chunk-KBQ6MAP7.js.map → chunk-3WZYZEJO.js.map} +1 -1
  33. package/dist/browser/{chunk-LYN5S3FE.js → chunk-442PDRSQ.js} +2 -2
  34. package/dist/browser/{chunk-LYN5S3FE.js.map → chunk-442PDRSQ.js.map} +1 -1
  35. package/dist/browser/{chunk-32UMQJXQ.js → chunk-4ALPVYER.js} +2 -2
  36. package/dist/browser/{chunk-32UMQJXQ.js.map → chunk-4ALPVYER.js.map} +1 -1
  37. package/dist/browser/{chunk-A5AOSB6C.js → chunk-4E5ZL6XD.js} +2 -2
  38. package/dist/browser/{chunk-A5AOSB6C.js.map → chunk-4E5ZL6XD.js.map} +1 -1
  39. package/dist/browser/{chunk-IRITFNBC.js → chunk-4HEDK4HJ.js} +2 -2
  40. package/dist/browser/{chunk-IRITFNBC.js.map → chunk-4HEDK4HJ.js.map} +1 -1
  41. package/dist/browser/{chunk-EG6SMIMF.js → chunk-4ZJQ3ZVT.js} +2 -2
  42. package/dist/browser/{chunk-EG6SMIMF.js.map → chunk-4ZJQ3ZVT.js.map} +1 -1
  43. package/dist/browser/{chunk-IGKMIJW2.js → chunk-5ALE2R4M.js} +2 -2
  44. package/dist/browser/{chunk-IGKMIJW2.js.map → chunk-5ALE2R4M.js.map} +1 -1
  45. package/dist/browser/{chunk-4FKSDPCH.js → chunk-5BMGLGTK.js} +2 -2
  46. package/dist/browser/{chunk-4FKSDPCH.js.map → chunk-5BMGLGTK.js.map} +1 -1
  47. package/dist/browser/{chunk-7EICUHR3.js → chunk-5H5TL6LY.js} +2 -2
  48. package/dist/browser/{chunk-7EICUHR3.js.map → chunk-5H5TL6LY.js.map} +1 -1
  49. package/dist/browser/{chunk-7Z22E6GD.js → chunk-5KDNB6UV.js} +2 -2
  50. package/dist/browser/{chunk-7Z22E6GD.js.map → chunk-5KDNB6UV.js.map} +1 -1
  51. package/dist/browser/{chunk-L362IYM3.js → chunk-5N62QB2Z.js} +2 -2
  52. package/dist/browser/{chunk-L362IYM3.js.map → chunk-5N62QB2Z.js.map} +1 -1
  53. package/dist/browser/{chunk-JBBGDTGD.js → chunk-65QMJABL.js} +2 -2
  54. package/dist/browser/{chunk-JBBGDTGD.js.map → chunk-65QMJABL.js.map} +1 -1
  55. package/dist/browser/{chunk-65S4AS6C.js → chunk-6VKNN5AG.js} +2 -2
  56. package/dist/browser/{chunk-65S4AS6C.js.map → chunk-6VKNN5AG.js.map} +1 -1
  57. package/dist/browser/{chunk-LBWFOS7R.js → chunk-726E3UNN.js} +2 -2
  58. package/dist/browser/{chunk-LBWFOS7R.js.map → chunk-726E3UNN.js.map} +1 -1
  59. package/dist/browser/{chunk-WIRKVK7A.js → chunk-7EARO3RB.js} +2 -2
  60. package/dist/browser/{chunk-WIRKVK7A.js.map → chunk-7EARO3RB.js.map} +1 -1
  61. package/dist/browser/{chunk-HGHMHQ5S.js → chunk-7HNV6ZKN.js} +2 -2
  62. package/dist/browser/{chunk-HGHMHQ5S.js.map → chunk-7HNV6ZKN.js.map} +1 -1
  63. package/dist/browser/{chunk-WDWR4RZ6.js → chunk-7IGXCJZR.js} +2 -2
  64. package/dist/browser/{chunk-WDWR4RZ6.js.map → chunk-7IGXCJZR.js.map} +1 -1
  65. package/dist/browser/{chunk-37K2OPGL.js → chunk-7IIQUNR5.js} +2 -2
  66. package/dist/browser/{chunk-37K2OPGL.js.map → chunk-7IIQUNR5.js.map} +1 -1
  67. package/dist/browser/{chunk-FJ6MJL6G.js → chunk-7IPZ3RG7.js} +2 -2
  68. package/dist/browser/{chunk-FJ6MJL6G.js.map → chunk-7IPZ3RG7.js.map} +1 -1
  69. package/dist/browser/{chunk-MTL3QUPP.js → chunk-7S2DVHM4.js} +2 -2
  70. package/dist/browser/{chunk-MTL3QUPP.js.map → chunk-7S2DVHM4.js.map} +1 -1
  71. package/dist/browser/{chunk-WB24EFQ2.js → chunk-AB42GG6X.js} +2 -2
  72. package/dist/browser/{chunk-WB24EFQ2.js.map → chunk-AB42GG6X.js.map} +1 -1
  73. package/dist/browser/{chunk-P32N774D.js → chunk-AC3FVQCK.js} +2 -2
  74. package/dist/browser/{chunk-P32N774D.js.map → chunk-AC3FVQCK.js.map} +1 -1
  75. package/dist/browser/chunk-ACBHKRY6.js +2 -0
  76. package/dist/browser/{chunk-2YCVVTZX.js.map → chunk-ACBHKRY6.js.map} +1 -1
  77. package/dist/browser/{chunk-4U67JIO5.js → chunk-B52SAFGN.js} +2 -2
  78. package/dist/browser/{chunk-4U67JIO5.js.map → chunk-B52SAFGN.js.map} +1 -1
  79. package/dist/browser/{chunk-XBAS5ZUQ.js → chunk-B7N45OOP.js} +2 -2
  80. package/dist/browser/{chunk-XBAS5ZUQ.js.map → chunk-B7N45OOP.js.map} +1 -1
  81. package/dist/browser/{chunk-IDZVSJHQ.js → chunk-BADFUKJ5.js} +2 -2
  82. package/dist/browser/{chunk-IDZVSJHQ.js.map → chunk-BADFUKJ5.js.map} +1 -1
  83. package/dist/browser/{chunk-HOEDGBRX.js → chunk-BBKKQJAD.js} +2 -2
  84. package/dist/browser/{chunk-HOEDGBRX.js.map → chunk-BBKKQJAD.js.map} +1 -1
  85. package/dist/browser/{chunk-GN3PKAHB.js → chunk-BDFCP2E4.js} +2 -2
  86. package/dist/browser/{chunk-GN3PKAHB.js.map → chunk-BDFCP2E4.js.map} +1 -1
  87. package/dist/browser/{chunk-V4QGWE6K.js → chunk-BLILIZJX.js} +2 -2
  88. package/dist/browser/{chunk-V4QGWE6K.js.map → chunk-BLILIZJX.js.map} +1 -1
  89. package/dist/browser/chunk-BQCGJNU7.js +2 -0
  90. package/dist/browser/chunk-BQCGJNU7.js.map +1 -0
  91. package/dist/browser/{chunk-KGOV76YL.js → chunk-BT2XJ6XK.js} +2 -2
  92. package/dist/browser/{chunk-KGOV76YL.js.map → chunk-BT2XJ6XK.js.map} +1 -1
  93. package/dist/browser/{chunk-CN4FGHJA.js → chunk-C3ZAQTO3.js} +2 -2
  94. package/dist/browser/{chunk-CN4FGHJA.js.map → chunk-C3ZAQTO3.js.map} +1 -1
  95. package/dist/browser/{chunk-PL3T74ID.js → chunk-C65PJCM3.js} +2 -2
  96. package/dist/browser/{chunk-PL3T74ID.js.map → chunk-C65PJCM3.js.map} +1 -1
  97. package/dist/browser/{chunk-G7OTY5BS.js → chunk-C74BTU7S.js} +2 -2
  98. package/dist/browser/{chunk-G7OTY5BS.js.map → chunk-C74BTU7S.js.map} +1 -1
  99. package/dist/browser/{chunk-LER3TBTJ.js → chunk-CFZ3WW75.js} +2 -2
  100. package/dist/browser/{chunk-LER3TBTJ.js.map → chunk-CFZ3WW75.js.map} +1 -1
  101. package/dist/browser/{chunk-UIOXS7FU.js → chunk-CIOSCSTN.js} +2 -2
  102. package/dist/browser/{chunk-UIOXS7FU.js.map → chunk-CIOSCSTN.js.map} +1 -1
  103. package/dist/browser/{chunk-TXIFF2IC.js → chunk-CLVLW2FO.js} +2 -2
  104. package/dist/browser/{chunk-TXIFF2IC.js.map → chunk-CLVLW2FO.js.map} +1 -1
  105. package/dist/browser/{chunk-WTHEQ3M5.js → chunk-CQOMDMT6.js} +2 -2
  106. package/dist/browser/chunk-CQOMDMT6.js.map +1 -0
  107. package/dist/browser/{chunk-XVGV73M6.js → chunk-CWZHSWI4.js} +2 -2
  108. package/dist/browser/{chunk-XVGV73M6.js.map → chunk-CWZHSWI4.js.map} +1 -1
  109. package/dist/browser/{chunk-U2UL57EH.js → chunk-CXQBH4UB.js} +2 -2
  110. package/dist/browser/{chunk-U2UL57EH.js.map → chunk-CXQBH4UB.js.map} +1 -1
  111. package/dist/browser/{chunk-PYJEM3EP.js → chunk-D4TI4SVU.js} +2 -2
  112. package/dist/browser/{chunk-PYJEM3EP.js.map → chunk-D4TI4SVU.js.map} +1 -1
  113. package/dist/browser/{chunk-5X6R7EPZ.js → chunk-DHRXC6RE.js} +2 -2
  114. package/dist/browser/{chunk-5X6R7EPZ.js.map → chunk-DHRXC6RE.js.map} +1 -1
  115. package/dist/browser/{chunk-E4GC3K2H.js → chunk-DOLDCNTW.js} +2 -2
  116. package/dist/browser/{chunk-E4GC3K2H.js.map → chunk-DOLDCNTW.js.map} +1 -1
  117. package/dist/browser/{chunk-JEYSB5GX.js → chunk-DSBWDFVR.js} +2 -2
  118. package/dist/browser/{chunk-JEYSB5GX.js.map → chunk-DSBWDFVR.js.map} +1 -1
  119. package/dist/browser/{chunk-AZQERHR3.js → chunk-DU53FS4B.js} +2 -2
  120. package/dist/browser/{chunk-AZQERHR3.js.map → chunk-DU53FS4B.js.map} +1 -1
  121. package/dist/browser/{chunk-XVW7ZC72.js → chunk-DUCZDUPB.js} +2 -2
  122. package/dist/browser/{chunk-XVW7ZC72.js.map → chunk-DUCZDUPB.js.map} +1 -1
  123. package/dist/browser/{chunk-3LKTPHWK.js → chunk-DWED6NDW.js} +2 -2
  124. package/dist/browser/{chunk-3LKTPHWK.js.map → chunk-DWED6NDW.js.map} +1 -1
  125. package/dist/browser/{chunk-6KQV2AC6.js → chunk-DX4VQBAD.js} +2 -2
  126. package/dist/browser/{chunk-6KQV2AC6.js.map → chunk-DX4VQBAD.js.map} +1 -1
  127. package/dist/browser/{chunk-ZDEEGACQ.js → chunk-E5MWXRY2.js} +2 -2
  128. package/dist/browser/{chunk-ZDEEGACQ.js.map → chunk-E5MWXRY2.js.map} +1 -1
  129. package/dist/browser/{chunk-Z2HIVTNL.js → chunk-E632DWIK.js} +2 -2
  130. package/dist/browser/{chunk-Z2HIVTNL.js.map → chunk-E632DWIK.js.map} +1 -1
  131. package/dist/browser/{chunk-ZHGJLIIS.js → chunk-EAURBFP2.js} +2 -2
  132. package/dist/browser/{chunk-ZHGJLIIS.js.map → chunk-EAURBFP2.js.map} +1 -1
  133. package/dist/browser/{chunk-HQFYXVBS.js → chunk-EI72WOWQ.js} +2 -2
  134. package/dist/browser/{chunk-HQFYXVBS.js.map → chunk-EI72WOWQ.js.map} +1 -1
  135. package/dist/browser/{chunk-HVIGVB6L.js → chunk-EJNY752E.js} +2 -2
  136. package/dist/browser/{chunk-HVIGVB6L.js.map → chunk-EJNY752E.js.map} +1 -1
  137. package/dist/browser/chunk-EJY2OZTF.js +2 -0
  138. package/dist/browser/{chunk-NXFYJWG2.js.map → chunk-EJY2OZTF.js.map} +1 -1
  139. package/dist/browser/chunk-EORNM4AJ.js +2 -0
  140. package/dist/browser/{chunk-BKDCXIO6.js.map → chunk-EORNM4AJ.js.map} +1 -1
  141. package/dist/browser/chunk-EY3IZSMU.js +2 -0
  142. package/dist/browser/{chunk-VCJWMCKC.js.map → chunk-EY3IZSMU.js.map} +1 -1
  143. package/dist/browser/{chunk-37F4ZSTZ.js → chunk-EYNFYFWZ.js} +2 -2
  144. package/dist/browser/{chunk-37F4ZSTZ.js.map → chunk-EYNFYFWZ.js.map} +1 -1
  145. package/dist/browser/{chunk-WIK4TMZU.js → chunk-FCCACQ4N.js} +2 -2
  146. package/dist/browser/{chunk-WIK4TMZU.js.map → chunk-FCCACQ4N.js.map} +1 -1
  147. package/dist/browser/{chunk-HNOOL6VU.js → chunk-FDQLJXJC.js} +2 -2
  148. package/dist/browser/{chunk-HNOOL6VU.js.map → chunk-FDQLJXJC.js.map} +1 -1
  149. package/dist/browser/{chunk-RBMIME3V.js → chunk-FJ5OIPC7.js} +2 -2
  150. package/dist/browser/{chunk-RBMIME3V.js.map → chunk-FJ5OIPC7.js.map} +1 -1
  151. package/dist/browser/{chunk-MWHVIEZ7.js → chunk-FKFGQRVA.js} +2 -2
  152. package/dist/browser/{chunk-MWHVIEZ7.js.map → chunk-FKFGQRVA.js.map} +1 -1
  153. package/dist/browser/{chunk-NIE5XZ45.js → chunk-FS5T7LTI.js} +2 -2
  154. package/dist/browser/{chunk-NIE5XZ45.js.map → chunk-FS5T7LTI.js.map} +1 -1
  155. package/dist/browser/{chunk-DD2BPYHC.js → chunk-GFEQ4DAP.js} +2 -2
  156. package/dist/browser/{chunk-DD2BPYHC.js.map → chunk-GFEQ4DAP.js.map} +1 -1
  157. package/dist/browser/{chunk-GBKMDLAF.js → chunk-GQL5IW5X.js} +2 -2
  158. package/dist/browser/{chunk-GBKMDLAF.js.map → chunk-GQL5IW5X.js.map} +1 -1
  159. package/dist/browser/{chunk-XBX74VBH.js → chunk-GUPZJX2E.js} +2 -2
  160. package/dist/browser/{chunk-XBX74VBH.js.map → chunk-GUPZJX2E.js.map} +1 -1
  161. package/dist/browser/{chunk-OFT7Z56U.js → chunk-GVVHEN5H.js} +2 -2
  162. package/dist/browser/{chunk-OFT7Z56U.js.map → chunk-GVVHEN5H.js.map} +1 -1
  163. package/dist/browser/{chunk-NF4XUXML.js → chunk-HFHWAT5Q.js} +2 -2
  164. package/dist/browser/{chunk-NF4XUXML.js.map → chunk-HFHWAT5Q.js.map} +1 -1
  165. package/dist/browser/{chunk-QHUAQHJU.js → chunk-HLXKPHDN.js} +2 -2
  166. package/dist/browser/{chunk-QHUAQHJU.js.map → chunk-HLXKPHDN.js.map} +1 -1
  167. package/dist/browser/chunk-HPQMSWX5.js +2 -0
  168. package/dist/browser/{chunk-IYNPA3LL.js.map → chunk-HPQMSWX5.js.map} +1 -1
  169. package/dist/browser/{chunk-APLDSWPX.js → chunk-IAIE5GOO.js} +2 -2
  170. package/dist/browser/{chunk-APLDSWPX.js.map → chunk-IAIE5GOO.js.map} +1 -1
  171. package/dist/browser/{chunk-ETHEILN6.js → chunk-IK2EDEEY.js} +2 -2
  172. package/dist/browser/{chunk-ETHEILN6.js.map → chunk-IK2EDEEY.js.map} +1 -1
  173. package/dist/browser/{chunk-BHMOSSSW.js → chunk-ISC2WEGB.js} +2 -2
  174. package/dist/browser/{chunk-BHMOSSSW.js.map → chunk-ISC2WEGB.js.map} +1 -1
  175. package/dist/browser/{chunk-3PKR62CO.js → chunk-J54AO5CS.js} +2 -2
  176. package/dist/browser/{chunk-3PKR62CO.js.map → chunk-J54AO5CS.js.map} +1 -1
  177. package/dist/browser/{chunk-7S3DQALS.js → chunk-JBVUO5YO.js} +2 -2
  178. package/dist/browser/{chunk-7S3DQALS.js.map → chunk-JBVUO5YO.js.map} +1 -1
  179. package/dist/browser/{chunk-SB6LDMEP.js → chunk-JCJYFJN6.js} +2 -2
  180. package/dist/browser/{chunk-SB6LDMEP.js.map → chunk-JCJYFJN6.js.map} +1 -1
  181. package/dist/browser/{chunk-4V6TQTR2.js → chunk-JQYWOEQ3.js} +2 -2
  182. package/dist/browser/{chunk-4V6TQTR2.js.map → chunk-JQYWOEQ3.js.map} +1 -1
  183. package/dist/browser/{chunk-2JKJ4XWU.js → chunk-JXERHVDK.js} +2 -2
  184. package/dist/browser/{chunk-2JKJ4XWU.js.map → chunk-JXERHVDK.js.map} +1 -1
  185. package/dist/browser/{chunk-LQHI7JEH.js → chunk-KG37T6F3.js} +2 -2
  186. package/dist/browser/{chunk-LQHI7JEH.js.map → chunk-KG37T6F3.js.map} +1 -1
  187. package/dist/browser/{chunk-CMAFGSTO.js → chunk-KR4IORV4.js} +2 -2
  188. package/dist/browser/{chunk-CMAFGSTO.js.map → chunk-KR4IORV4.js.map} +1 -1
  189. package/dist/browser/{chunk-52D3HQDY.js → chunk-L6T3SYJ6.js} +2 -2
  190. package/dist/browser/{chunk-52D3HQDY.js.map → chunk-L6T3SYJ6.js.map} +1 -1
  191. package/dist/browser/{chunk-S4G2LVET.js → chunk-LJ5E6NWF.js} +2 -2
  192. package/dist/browser/{chunk-S4G2LVET.js.map → chunk-LJ5E6NWF.js.map} +1 -1
  193. package/dist/browser/{chunk-ZVICL7AK.js → chunk-LQO2ITWL.js} +2 -2
  194. package/dist/browser/{chunk-ZVICL7AK.js.map → chunk-LQO2ITWL.js.map} +1 -1
  195. package/dist/browser/{chunk-3U2QS54M.js → chunk-LR2PSUO2.js} +2 -2
  196. package/dist/browser/{chunk-3U2QS54M.js.map → chunk-LR2PSUO2.js.map} +1 -1
  197. package/dist/browser/{chunk-N6W7RZ3U.js → chunk-LXLHQT2I.js} +2 -2
  198. package/dist/browser/{chunk-N6W7RZ3U.js.map → chunk-LXLHQT2I.js.map} +1 -1
  199. package/dist/browser/chunk-LYWHJCVT.js +2 -0
  200. package/dist/browser/{chunk-VTGQQQFL.js.map → chunk-LYWHJCVT.js.map} +1 -1
  201. package/dist/browser/{chunk-2TMZU2SW.js → chunk-LZD6VAVA.js} +2 -2
  202. package/dist/browser/{chunk-2TMZU2SW.js.map → chunk-LZD6VAVA.js.map} +1 -1
  203. package/dist/browser/{chunk-WLHXAS5P.js → chunk-M24RZ6AP.js} +2 -2
  204. package/dist/browser/{chunk-WLHXAS5P.js.map → chunk-M24RZ6AP.js.map} +1 -1
  205. package/dist/browser/{chunk-NIFE7QZD.js → chunk-M7W33C7N.js} +2 -2
  206. package/dist/browser/{chunk-NIFE7QZD.js.map → chunk-M7W33C7N.js.map} +1 -1
  207. package/dist/browser/{chunk-LFPDY7MJ.js → chunk-MDKBLMYR.js} +2 -2
  208. package/dist/browser/{chunk-LFPDY7MJ.js.map → chunk-MDKBLMYR.js.map} +1 -1
  209. package/dist/browser/{chunk-ZSMDZIBE.js → chunk-MF2SHTFD.js} +2 -2
  210. package/dist/browser/{chunk-ZSMDZIBE.js.map → chunk-MF2SHTFD.js.map} +1 -1
  211. package/dist/browser/{chunk-WHH45AA3.js → chunk-MHZCLQW4.js} +2 -2
  212. package/dist/browser/{chunk-WHH45AA3.js.map → chunk-MHZCLQW4.js.map} +1 -1
  213. package/dist/browser/{chunk-RN67VLXB.js → chunk-MKTYYWT2.js} +2 -2
  214. package/dist/browser/{chunk-RN67VLXB.js.map → chunk-MKTYYWT2.js.map} +1 -1
  215. package/dist/browser/{chunk-DA6YYF2F.js → chunk-MM2SKXF6.js} +2 -2
  216. package/dist/browser/{chunk-DA6YYF2F.js.map → chunk-MM2SKXF6.js.map} +1 -1
  217. package/dist/browser/chunk-MNCX2RMA.js +2 -0
  218. package/dist/browser/{chunk-YQRLUPCP.js.map → chunk-MNCX2RMA.js.map} +1 -1
  219. package/dist/browser/{chunk-AA4E7UVF.js → chunk-N3O2RNM3.js} +2 -2
  220. package/dist/browser/{chunk-AA4E7UVF.js.map → chunk-N3O2RNM3.js.map} +1 -1
  221. package/dist/browser/{chunk-VWDPA3QQ.js → chunk-NEZHG6QJ.js} +2 -2
  222. package/dist/browser/{chunk-VWDPA3QQ.js.map → chunk-NEZHG6QJ.js.map} +1 -1
  223. package/dist/browser/{chunk-CEO22Q7Y.js → chunk-NGIKKV3Y.js} +2 -2
  224. package/dist/browser/{chunk-CEO22Q7Y.js.map → chunk-NGIKKV3Y.js.map} +1 -1
  225. package/dist/browser/{chunk-4ZCK34PT.js → chunk-NJ2UDYKJ.js} +2 -2
  226. package/dist/browser/{chunk-4ZCK34PT.js.map → chunk-NJ2UDYKJ.js.map} +1 -1
  227. package/dist/browser/{chunk-G3Q4YBD4.js → chunk-NK3GXKEX.js} +2 -2
  228. package/dist/browser/{chunk-G3Q4YBD4.js.map → chunk-NK3GXKEX.js.map} +1 -1
  229. package/dist/browser/{chunk-PFCRQTIL.js → chunk-NKLUVKFB.js} +3 -3
  230. package/dist/browser/{chunk-PFCRQTIL.js.map → chunk-NKLUVKFB.js.map} +1 -1
  231. package/dist/browser/{chunk-TMC6QMDL.js → chunk-NXCAIVTS.js} +2 -2
  232. package/dist/browser/{chunk-TMC6QMDL.js.map → chunk-NXCAIVTS.js.map} +1 -1
  233. package/dist/browser/{chunk-BLMLDT2L.js → chunk-O255KOMJ.js} +2 -2
  234. package/dist/browser/{chunk-BLMLDT2L.js.map → chunk-O255KOMJ.js.map} +1 -1
  235. package/dist/browser/{chunk-I77ZLLQJ.js → chunk-OJB5Z7QE.js} +2 -2
  236. package/dist/browser/{chunk-I77ZLLQJ.js.map → chunk-OJB5Z7QE.js.map} +1 -1
  237. package/dist/browser/{chunk-6XLSBE5J.js → chunk-OMOKFRVO.js} +2 -2
  238. package/dist/browser/{chunk-6XLSBE5J.js.map → chunk-OMOKFRVO.js.map} +1 -1
  239. package/dist/browser/{chunk-YSTL3FQJ.js → chunk-OZZTO3JB.js} +2 -2
  240. package/dist/browser/{chunk-YSTL3FQJ.js.map → chunk-OZZTO3JB.js.map} +1 -1
  241. package/dist/browser/{chunk-6A7YD57H.js → chunk-P2LZQ4XJ.js} +2 -2
  242. package/dist/browser/{chunk-6A7YD57H.js.map → chunk-P2LZQ4XJ.js.map} +1 -1
  243. package/dist/browser/{chunk-O6NAVQM3.js → chunk-PAQDOCHT.js} +2 -2
  244. package/dist/browser/{chunk-O6NAVQM3.js.map → chunk-PAQDOCHT.js.map} +1 -1
  245. package/dist/browser/{chunk-TCIUXYXN.js → chunk-PC6ZLXAK.js} +2 -2
  246. package/dist/browser/{chunk-TCIUXYXN.js.map → chunk-PC6ZLXAK.js.map} +1 -1
  247. package/dist/browser/{chunk-PW42FHVU.js → chunk-PRBNCWLN.js} +2 -2
  248. package/dist/browser/{chunk-PW42FHVU.js.map → chunk-PRBNCWLN.js.map} +1 -1
  249. package/dist/browser/{chunk-D2X5EN5N.js → chunk-PZF2C5XN.js} +2 -2
  250. package/dist/browser/{chunk-D2X5EN5N.js.map → chunk-PZF2C5XN.js.map} +1 -1
  251. package/dist/browser/{chunk-K3X52YJI.js → chunk-Q22OTYQK.js} +2 -2
  252. package/dist/browser/{chunk-K3X52YJI.js.map → chunk-Q22OTYQK.js.map} +1 -1
  253. package/dist/browser/chunk-Q5PYADCF.js +2 -0
  254. package/dist/browser/chunk-Q5PYADCF.js.map +1 -0
  255. package/dist/browser/{chunk-7GACENLK.js → chunk-QDPGYCNY.js} +2 -2
  256. package/dist/browser/{chunk-7GACENLK.js.map → chunk-QDPGYCNY.js.map} +1 -1
  257. package/dist/browser/{chunk-GC2UHHSZ.js → chunk-QJZSVQVT.js} +2 -2
  258. package/dist/browser/{chunk-GC2UHHSZ.js.map → chunk-QJZSVQVT.js.map} +1 -1
  259. package/dist/browser/chunk-QMVT4OSW.js +2 -0
  260. package/dist/browser/{chunk-COGC4HII.js.map → chunk-QMVT4OSW.js.map} +1 -1
  261. package/dist/browser/{chunk-J5NBSH3V.js → chunk-QZ6NXM2H.js} +2 -2
  262. package/dist/browser/{chunk-J5NBSH3V.js.map → chunk-QZ6NXM2H.js.map} +1 -1
  263. package/dist/browser/{chunk-GCSYVQXA.js → chunk-QZSKBVYK.js} +2 -2
  264. package/dist/browser/{chunk-GCSYVQXA.js.map → chunk-QZSKBVYK.js.map} +1 -1
  265. package/dist/browser/{chunk-P4XPKFYI.js → chunk-R22LU4MD.js} +2 -2
  266. package/dist/browser/{chunk-P4XPKFYI.js.map → chunk-R22LU4MD.js.map} +1 -1
  267. package/dist/browser/{chunk-CAOGIMWX.js → chunk-RETJHGAC.js} +2 -2
  268. package/dist/browser/{chunk-CAOGIMWX.js.map → chunk-RETJHGAC.js.map} +1 -1
  269. package/dist/browser/{chunk-PTXUJVAH.js → chunk-RXD3WMVQ.js} +2 -2
  270. package/dist/browser/{chunk-PTXUJVAH.js.map → chunk-RXD3WMVQ.js.map} +1 -1
  271. package/dist/browser/{chunk-FL3ZYHPE.js → chunk-S4R7TTXT.js} +2 -2
  272. package/dist/browser/{chunk-FL3ZYHPE.js.map → chunk-S4R7TTXT.js.map} +1 -1
  273. package/dist/browser/{chunk-XDEPGFLB.js → chunk-S62BHAWS.js} +2 -2
  274. package/dist/browser/{chunk-XDEPGFLB.js.map → chunk-S62BHAWS.js.map} +1 -1
  275. package/dist/browser/{chunk-V5J2DFJD.js → chunk-SLIEBHVH.js} +2 -2
  276. package/dist/browser/{chunk-V5J2DFJD.js.map → chunk-SLIEBHVH.js.map} +1 -1
  277. package/dist/browser/{chunk-CNOCBE3I.js → chunk-SM75WN66.js} +2 -2
  278. package/dist/browser/{chunk-CNOCBE3I.js.map → chunk-SM75WN66.js.map} +1 -1
  279. package/dist/browser/{chunk-SC46LW4W.js → chunk-SOJTO4ZZ.js} +2 -2
  280. package/dist/browser/{chunk-SC46LW4W.js.map → chunk-SOJTO4ZZ.js.map} +1 -1
  281. package/dist/browser/{chunk-2TSWUTIX.js → chunk-SQ2Y2ZQ7.js} +2 -2
  282. package/dist/browser/{chunk-2TSWUTIX.js.map → chunk-SQ2Y2ZQ7.js.map} +1 -1
  283. package/dist/browser/{chunk-3Y34Q6QC.js → chunk-SUKCGEEK.js} +2 -2
  284. package/dist/browser/{chunk-3Y34Q6QC.js.map → chunk-SUKCGEEK.js.map} +1 -1
  285. package/dist/browser/{chunk-Z2TH3AWW.js → chunk-SV4EKF46.js} +2 -2
  286. package/dist/browser/{chunk-Z2TH3AWW.js.map → chunk-SV4EKF46.js.map} +1 -1
  287. package/dist/browser/{chunk-AZ7VFOZ3.js → chunk-SYG2FUO2.js} +2 -2
  288. package/dist/browser/{chunk-AZ7VFOZ3.js.map → chunk-SYG2FUO2.js.map} +1 -1
  289. package/dist/browser/{chunk-MW4KYNU3.js → chunk-T2YQIDUC.js} +2 -2
  290. package/dist/browser/{chunk-MW4KYNU3.js.map → chunk-T2YQIDUC.js.map} +1 -1
  291. package/dist/browser/{chunk-HQBE4QAU.js → chunk-TCCM6IUJ.js} +2 -2
  292. package/dist/browser/{chunk-HQBE4QAU.js.map → chunk-TCCM6IUJ.js.map} +1 -1
  293. package/dist/browser/{chunk-S3LJG457.js → chunk-THJQ3B5J.js} +2 -2
  294. package/dist/browser/{chunk-S3LJG457.js.map → chunk-THJQ3B5J.js.map} +1 -1
  295. package/dist/browser/{chunk-3XRU3DXW.js → chunk-TZW7RWFI.js} +2 -2
  296. package/dist/browser/{chunk-3XRU3DXW.js.map → chunk-TZW7RWFI.js.map} +1 -1
  297. package/dist/browser/{chunk-Q7K6UASJ.js → chunk-U4XWL2ZX.js} +2 -2
  298. package/dist/browser/{chunk-Q7K6UASJ.js.map → chunk-U4XWL2ZX.js.map} +1 -1
  299. package/dist/browser/{chunk-GVFBXXXP.js → chunk-UDBY27QR.js} +2 -2
  300. package/dist/browser/{chunk-GVFBXXXP.js.map → chunk-UDBY27QR.js.map} +1 -1
  301. package/dist/browser/{chunk-BADGMGTI.js → chunk-UEBOZ52I.js} +2 -2
  302. package/dist/browser/{chunk-BADGMGTI.js.map → chunk-UEBOZ52I.js.map} +1 -1
  303. package/dist/browser/{chunk-GIGRSQIH.js → chunk-UMNF5U7T.js} +2 -2
  304. package/dist/browser/{chunk-GIGRSQIH.js.map → chunk-UMNF5U7T.js.map} +1 -1
  305. package/dist/browser/{chunk-QMHELPJV.js → chunk-UPLEQIFO.js} +2 -2
  306. package/dist/browser/{chunk-QMHELPJV.js.map → chunk-UPLEQIFO.js.map} +1 -1
  307. package/dist/browser/{chunk-IVMIGXLH.js → chunk-UTPSL2RV.js} +2 -2
  308. package/dist/browser/{chunk-IVMIGXLH.js.map → chunk-UTPSL2RV.js.map} +1 -1
  309. package/dist/browser/{chunk-K4CHL32C.js → chunk-UUXQASBR.js} +2 -2
  310. package/dist/browser/{chunk-K4CHL32C.js.map → chunk-UUXQASBR.js.map} +1 -1
  311. package/dist/browser/{chunk-HOJJOXGC.js → chunk-UZD2XG6P.js} +2 -2
  312. package/dist/browser/{chunk-HOJJOXGC.js.map → chunk-UZD2XG6P.js.map} +1 -1
  313. package/dist/browser/{chunk-CKHL2O7X.js → chunk-V33JEBQK.js} +2 -2
  314. package/dist/browser/{chunk-CKHL2O7X.js.map → chunk-V33JEBQK.js.map} +1 -1
  315. package/dist/browser/{chunk-VLMKNIB4.js → chunk-VC672JHD.js} +2 -2
  316. package/dist/browser/{chunk-VLMKNIB4.js.map → chunk-VC672JHD.js.map} +1 -1
  317. package/dist/browser/{chunk-OG6WTNVW.js → chunk-VIWMIYES.js} +2 -2
  318. package/dist/browser/{chunk-OG6WTNVW.js.map → chunk-VIWMIYES.js.map} +1 -1
  319. package/dist/browser/{chunk-FJ5CJPZL.js → chunk-VZQOG43F.js} +2 -2
  320. package/dist/browser/{chunk-FJ5CJPZL.js.map → chunk-VZQOG43F.js.map} +1 -1
  321. package/dist/browser/{chunk-WEC4NL7S.js → chunk-VZZDAVVR.js} +2 -2
  322. package/dist/browser/{chunk-WEC4NL7S.js.map → chunk-VZZDAVVR.js.map} +1 -1
  323. package/dist/browser/{chunk-S23YZMGE.js → chunk-W2QXS26P.js} +2 -2
  324. package/dist/browser/{chunk-S23YZMGE.js.map → chunk-W2QXS26P.js.map} +1 -1
  325. package/dist/browser/{chunk-ZSARKV4B.js → chunk-W2W7TOPN.js} +2 -2
  326. package/dist/browser/{chunk-ZSARKV4B.js.map → chunk-W2W7TOPN.js.map} +1 -1
  327. package/dist/browser/{chunk-AWG24KVR.js → chunk-WCTJDIK6.js} +2 -2
  328. package/dist/browser/{chunk-AWG24KVR.js.map → chunk-WCTJDIK6.js.map} +1 -1
  329. package/dist/browser/{chunk-ZMYRAWYV.js → chunk-WHWP7EWD.js} +2 -2
  330. package/dist/browser/{chunk-ZMYRAWYV.js.map → chunk-WHWP7EWD.js.map} +1 -1
  331. package/dist/browser/{chunk-FT5QYVCP.js → chunk-WLYMW7CZ.js} +2 -2
  332. package/dist/browser/{chunk-FT5QYVCP.js.map → chunk-WLYMW7CZ.js.map} +1 -1
  333. package/dist/browser/{chunk-4QUTBTN2.js → chunk-WUVGMAFV.js} +2 -2
  334. package/dist/browser/{chunk-4QUTBTN2.js.map → chunk-WUVGMAFV.js.map} +1 -1
  335. package/dist/browser/{chunk-OAOOURDH.js → chunk-WWHGPZGN.js} +2 -2
  336. package/dist/browser/{chunk-OAOOURDH.js.map → chunk-WWHGPZGN.js.map} +1 -1
  337. package/dist/browser/{chunk-TNGNZSGS.js → chunk-X3KHKYDO.js} +2 -2
  338. package/dist/browser/{chunk-TNGNZSGS.js.map → chunk-X3KHKYDO.js.map} +1 -1
  339. package/dist/browser/{chunk-ASSGVHJB.js → chunk-X3ZYJJAD.js} +2 -2
  340. package/dist/browser/{chunk-ASSGVHJB.js.map → chunk-X3ZYJJAD.js.map} +1 -1
  341. package/dist/browser/{chunk-L5SAOKO6.js → chunk-XHYOHFMU.js} +2 -2
  342. package/dist/browser/{chunk-L5SAOKO6.js.map → chunk-XHYOHFMU.js.map} +1 -1
  343. package/dist/browser/{chunk-6IABT7MJ.js → chunk-XQAXJQVK.js} +2 -2
  344. package/dist/browser/{chunk-6IABT7MJ.js.map → chunk-XQAXJQVK.js.map} +1 -1
  345. package/dist/browser/{chunk-T6IKUQBC.js → chunk-XQQ5MSOE.js} +2 -2
  346. package/dist/browser/{chunk-T6IKUQBC.js.map → chunk-XQQ5MSOE.js.map} +1 -1
  347. package/dist/browser/{chunk-WEUPYCUL.js → chunk-XSDDOOC3.js} +2 -2
  348. package/dist/browser/{chunk-WEUPYCUL.js.map → chunk-XSDDOOC3.js.map} +1 -1
  349. package/dist/browser/{chunk-CWBPA5DT.js → chunk-XTZBOYHG.js} +2 -2
  350. package/dist/browser/{chunk-CWBPA5DT.js.map → chunk-XTZBOYHG.js.map} +1 -1
  351. package/dist/browser/{chunk-NSTN6NK7.js → chunk-XWIY4F37.js} +2 -2
  352. package/dist/browser/{chunk-NSTN6NK7.js.map → chunk-XWIY4F37.js.map} +1 -1
  353. package/dist/browser/chunk-XY6AFXAS.js +2 -0
  354. package/dist/browser/{chunk-7FJQ2VAW.js.map → chunk-XY6AFXAS.js.map} +1 -1
  355. package/dist/browser/{chunk-R6UPSSYV.js → chunk-YCPIC6JF.js} +2 -2
  356. package/dist/browser/{chunk-R6UPSSYV.js.map → chunk-YCPIC6JF.js.map} +1 -1
  357. package/dist/browser/{chunk-HAIUMSGN.js → chunk-YEPSRKRA.js} +2 -2
  358. package/dist/browser/{chunk-HAIUMSGN.js.map → chunk-YEPSRKRA.js.map} +1 -1
  359. package/dist/browser/{chunk-5PSFBLOC.js → chunk-YFT2EUUG.js} +2 -2
  360. package/dist/browser/{chunk-5PSFBLOC.js.map → chunk-YFT2EUUG.js.map} +1 -1
  361. package/dist/browser/{chunk-VDU4E44M.js → chunk-YI6XOITO.js} +2 -2
  362. package/dist/browser/{chunk-VDU4E44M.js.map → chunk-YI6XOITO.js.map} +1 -1
  363. package/dist/browser/{chunk-VCYNR26T.js → chunk-YWNPW6IV.js} +2 -2
  364. package/dist/browser/{chunk-VCYNR26T.js.map → chunk-YWNPW6IV.js.map} +1 -1
  365. package/dist/browser/{chunk-HBZ2NQ5P.js → chunk-YYWUOU6W.js} +2 -2
  366. package/dist/browser/{chunk-HBZ2NQ5P.js.map → chunk-YYWUOU6W.js.map} +1 -1
  367. package/dist/browser/{chunk-4CZFR2OD.js → chunk-Z2VGNDBL.js} +2 -2
  368. package/dist/browser/{chunk-4CZFR2OD.js.map → chunk-Z2VGNDBL.js.map} +1 -1
  369. package/dist/browser/{chunk-K2AH4UHN.js → chunk-ZAYKDU7P.js} +2 -2
  370. package/dist/browser/{chunk-K2AH4UHN.js.map → chunk-ZAYKDU7P.js.map} +1 -1
  371. package/dist/browser/{chunk-2RVIFH2X.js → chunk-ZIDBJJD4.js} +2 -2
  372. package/dist/browser/{chunk-2RVIFH2X.js.map → chunk-ZIDBJJD4.js.map} +1 -1
  373. package/dist/browser/{chunk-F6DE74CY.js → chunk-ZNK3KVKQ.js} +2 -2
  374. package/dist/browser/{chunk-F6DE74CY.js.map → chunk-ZNK3KVKQ.js.map} +1 -1
  375. package/dist/browser/{chunk-W4TAERQX.js → chunk-ZOMU6CR5.js} +2 -2
  376. package/dist/browser/{chunk-W4TAERQX.js.map → chunk-ZOMU6CR5.js.map} +1 -1
  377. package/dist/browser/index.d.ts +72 -1
  378. package/dist/browser/index.js +1 -1
  379. package/dist/browser/modules/accounts/index.js +1 -1
  380. package/dist/browser/modules/accounts/mutations/bookmarks/index.js +1 -1
  381. package/dist/browser/modules/accounts/mutations/bookmarks/use-account-bookmark-add.js +1 -1
  382. package/dist/browser/modules/accounts/mutations/bookmarks/use-account-bookmark-delete.js +1 -1
  383. package/dist/browser/modules/accounts/mutations/favorite-tags/index.js +1 -1
  384. package/dist/browser/modules/accounts/mutations/favorite-tags/requests.js +1 -1
  385. package/dist/browser/modules/accounts/mutations/favorite-tags/use-favorite-tag-add.js +1 -1
  386. package/dist/browser/modules/accounts/mutations/favorite-tags/use-favorite-tag-delete.js +1 -1
  387. package/dist/browser/modules/accounts/mutations/favorites/index.js +1 -1
  388. package/dist/browser/modules/accounts/mutations/favorites/use-account-favorite-add.js +1 -1
  389. package/dist/browser/modules/accounts/mutations/favorites/use-account-favorite-delete.js +1 -1
  390. package/dist/browser/modules/accounts/mutations/index.js +1 -1
  391. package/dist/browser/modules/accounts/mutations/use-account-relations-update.js +1 -1
  392. package/dist/browser/modules/accounts/mutations/use-account-revoke-key.js +1 -1
  393. package/dist/browser/modules/accounts/mutations/use-account-revoke-posting.js +1 -1
  394. package/dist/browser/modules/accounts/mutations/use-account-update-key-auths.js +1 -1
  395. package/dist/browser/modules/accounts/mutations/use-account-update-password.js +1 -1
  396. package/dist/browser/modules/accounts/mutations/use-account-update-recovery.js +1 -1
  397. package/dist/browser/modules/accounts/mutations/use-account-update.js +1 -1
  398. package/dist/browser/modules/accounts/mutations/use-claim-account.js +1 -1
  399. package/dist/browser/modules/accounts/mutations/use-create-account.js +1 -1
  400. package/dist/browser/modules/accounts/mutations/use-follow.js +1 -1
  401. package/dist/browser/modules/accounts/mutations/use-grant-posting-permission.js +1 -1
  402. package/dist/browser/modules/accounts/mutations/use-unfollow.js +1 -1
  403. package/dist/browser/modules/accounts/queries/check-favorite-query-options.js +1 -1
  404. package/dist/browser/modules/accounts/queries/check-username-wallets-pending-query-options.js +1 -1
  405. package/dist/browser/modules/accounts/queries/get-account-full-query-options.js +1 -1
  406. package/dist/browser/modules/accounts/queries/get-account-pending-recovery-query-options.js +1 -1
  407. package/dist/browser/modules/accounts/queries/get-account-recoveries-query-options.js +1 -1
  408. package/dist/browser/modules/accounts/queries/get-account-reputations-query-options.js +1 -1
  409. package/dist/browser/modules/accounts/queries/get-account-subscriptions-query-options.js +1 -1
  410. package/dist/browser/modules/accounts/queries/get-account-vote-history-infinite-query-options.js +1 -1
  411. package/dist/browser/modules/accounts/queries/get-accounts-query-options.js +1 -1
  412. package/dist/browser/modules/accounts/queries/get-aggregated-balance-query-options.js +1 -1
  413. package/dist/browser/modules/accounts/queries/get-balance-history-query-options.js +1 -1
  414. package/dist/browser/modules/accounts/queries/get-bookmarks-query-options.js +1 -1
  415. package/dist/browser/modules/accounts/queries/get-bots-query-options.js +1 -1
  416. package/dist/browser/modules/accounts/queries/get-favorite-tag-check-query-options.js +1 -1
  417. package/dist/browser/modules/accounts/queries/get-favorite-tags-query-options.js +1 -1
  418. package/dist/browser/modules/accounts/queries/get-favorites-query-options.js +1 -1
  419. package/dist/browser/modules/accounts/queries/get-follow-count-query-options.js +1 -1
  420. package/dist/browser/modules/accounts/queries/get-followers-query-options.js +1 -1
  421. package/dist/browser/modules/accounts/queries/get-following-query-options.js +1 -1
  422. package/dist/browser/modules/accounts/queries/get-friends-infinite-query-options.js +1 -1
  423. package/dist/browser/modules/accounts/queries/get-muted-users-query-options.js +1 -1
  424. package/dist/browser/modules/accounts/queries/get-pro-members-query-options.js +1 -1
  425. package/dist/browser/modules/accounts/queries/get-profiles-query-options.js +1 -1
  426. package/dist/browser/modules/accounts/queries/get-referrals-infinite-query-options.js +1 -1
  427. package/dist/browser/modules/accounts/queries/get-referrals-stats-query-options.js +1 -1
  428. package/dist/browser/modules/accounts/queries/get-relationship-between-accounts-query-options.js +1 -1
  429. package/dist/browser/modules/accounts/queries/get-search-friends-query-options.js +1 -1
  430. package/dist/browser/modules/accounts/queries/get-transactions-infinite-query-options.js +1 -1
  431. package/dist/browser/modules/accounts/queries/index.js +1 -1
  432. package/dist/browser/modules/accounts/queries/lookup-accounts-query-options.js +1 -1
  433. package/dist/browser/modules/accounts/queries/search-accounts-by-username-query-options.js +1 -1
  434. package/dist/browser/modules/accounts/utils/account-power.js +1 -1
  435. package/dist/browser/modules/accounts/utils/index.js +1 -1
  436. package/dist/browser/modules/ai/index.js +1 -1
  437. package/dist/browser/modules/ai/mutations/index.js +1 -1
  438. package/dist/browser/modules/ai/mutations/use-ai-assist.js +1 -1
  439. package/dist/browser/modules/ai/mutations/use-ai-transcribe.js +1 -1
  440. package/dist/browser/modules/ai/mutations/use-generate-image.js +1 -1
  441. package/dist/browser/modules/ai/mutations/use-listen-unlock.js +2 -0
  442. package/dist/browser/modules/ai/mutations/use-listen-unlock.js.map +1 -0
  443. package/dist/browser/modules/ai/queries/get-ai-assist-price-query-options.js +1 -1
  444. package/dist/browser/modules/ai/queries/get-ai-generate-price-query-options.js +1 -1
  445. package/dist/browser/modules/ai/queries/get-ai-images-query-options.js +1 -1
  446. package/dist/browser/modules/ai/queries/get-ai-transcribe-price-query-options.js +1 -1
  447. package/dist/browser/modules/ai/queries/get-listen-status-query-options.js +2 -0
  448. package/dist/browser/modules/ai/queries/get-listen-status-query-options.js.map +1 -0
  449. package/dist/browser/modules/ai/queries/index.js +1 -1
  450. package/dist/browser/modules/analytics/index.js +1 -1
  451. package/dist/browser/modules/analytics/mutations/index.js +1 -1
  452. package/dist/browser/modules/analytics/mutations/use-record-activity.js +1 -1
  453. package/dist/browser/modules/analytics/queries/get-discover-curation-query-options.js +1 -1
  454. package/dist/browser/modules/analytics/queries/get-discover-leaderboard-query-options.js +1 -1
  455. package/dist/browser/modules/analytics/queries/get-page-stats-query-options.js +1 -1
  456. package/dist/browser/modules/analytics/queries/index.js +1 -1
  457. package/dist/browser/modules/analytics/types/index.js +1 -1
  458. package/dist/browser/modules/auth/index.js +1 -1
  459. package/dist/browser/modules/auth/requests.js +1 -1
  460. package/dist/browser/modules/bad-actors/index.js +1 -1
  461. package/dist/browser/modules/bad-actors/queries/get-bad-actors-query-options.js +1 -1
  462. package/dist/browser/modules/bad-actors/queries/index.js +1 -1
  463. package/dist/browser/modules/bridge/index.js +1 -1
  464. package/dist/browser/modules/bridge/requests.js +1 -1
  465. package/dist/browser/modules/communities/index.js +1 -1
  466. package/dist/browser/modules/communities/mutations/index.js +1 -1
  467. package/dist/browser/modules/communities/mutations/use-mute-post.js +1 -1
  468. package/dist/browser/modules/communities/mutations/use-pin-post.js +1 -1
  469. package/dist/browser/modules/communities/mutations/use-register-community-rewards.js +1 -1
  470. package/dist/browser/modules/communities/mutations/use-set-community-role.js +1 -1
  471. package/dist/browser/modules/communities/mutations/use-subscribe-community.js +1 -1
  472. package/dist/browser/modules/communities/mutations/use-unsubscribe-community.js +1 -1
  473. package/dist/browser/modules/communities/mutations/use-update-community.js +1 -1
  474. package/dist/browser/modules/communities/queries/get-account-notifications-infinite-query-options.js +1 -1
  475. package/dist/browser/modules/communities/queries/get-communities-query-options.js +1 -1
  476. package/dist/browser/modules/communities/queries/get-community-context-query-options.js +1 -1
  477. package/dist/browser/modules/communities/queries/get-community-query-options.js +1 -1
  478. package/dist/browser/modules/communities/queries/get-community-subscribers-query-options.js +1 -1
  479. package/dist/browser/modules/communities/queries/get-rewarded-communities-query-options.js +1 -1
  480. package/dist/browser/modules/communities/queries/index.js +1 -1
  481. package/dist/browser/modules/communities/types/index.js +1 -1
  482. package/dist/browser/modules/communities/utils/index.js +1 -1
  483. package/dist/browser/modules/core/index.js +1 -1
  484. package/dist/browser/modules/core/mutations/index.js +1 -1
  485. package/dist/browser/modules/core/queries/get-chain-properties-query-options.js +1 -1
  486. package/dist/browser/modules/core/queries/get-dynamic-props-query-options.js +1 -1
  487. package/dist/browser/modules/core/queries/get-reward-fund-query-options.js +1 -1
  488. package/dist/browser/modules/core/queries/index.js +1 -1
  489. package/dist/browser/modules/core/query-keys.js +1 -1
  490. package/dist/browser/modules/core/types/index.js +1 -1
  491. package/dist/browser/modules/core/utils/index.js +1 -1
  492. package/dist/browser/modules/curation/dmca.js +1 -1
  493. package/dist/browser/modules/curation/index.js +1 -1
  494. package/dist/browser/modules/curation/mutations/index.js +1 -1
  495. package/dist/browser/modules/curation/mutations/use-curation-recommend.js +1 -1
  496. package/dist/browser/modules/curation/queries/get-curation-application-query-options.js +1 -1
  497. package/dist/browser/modules/curation/queries/get-curation-applications-query-options.js +1 -1
  498. package/dist/browser/modules/curation/queries/get-curation-feed-infinite-query-options.js +1 -1
  499. package/dist/browser/modules/curation/queries/get-curation-post-query-options.js +1 -1
  500. package/dist/browser/modules/curation/queries/get-curation-recommendations-infinite-query-options.js +1 -1
  501. package/dist/browser/modules/curation/queries/get-curation-recommender-query-options.js +1 -1
  502. package/dist/browser/modules/curation/queries/get-curation-roster-admin-query-options.js +1 -1
  503. package/dist/browser/modules/curation/queries/get-curation-roster-query-options.js +1 -1
  504. package/dist/browser/modules/curation/queries/get-curation-status-query-options.js +1 -1
  505. package/dist/browser/modules/curation/queries/index.js +1 -1
  506. package/dist/browser/modules/curation/requests.js +1 -1
  507. package/dist/browser/modules/games/index.js +1 -1
  508. package/dist/browser/modules/games/mutations/game-claim.js +1 -1
  509. package/dist/browser/modules/games/mutations/index.js +1 -1
  510. package/dist/browser/modules/games/queries/game-status-check-query-options.js +1 -1
  511. package/dist/browser/modules/games/queries/index.js +1 -1
  512. package/dist/browser/modules/hive-engine/index.js +1 -1
  513. package/dist/browser/modules/hive-engine/queries/get-all-hive-engine-tokens-query-options.js +1 -1
  514. package/dist/browser/modules/hive-engine/queries/get-hive-engine-balances-with-usd-query-options.js +1 -1
  515. package/dist/browser/modules/hive-engine/queries/get-hive-engine-token-general-info-query-options.js +1 -1
  516. package/dist/browser/modules/hive-engine/queries/get-hive-engine-token-metrics-query-options.js +1 -1
  517. package/dist/browser/modules/hive-engine/queries/get-hive-engine-token-transactions-query-options.js +1 -1
  518. package/dist/browser/modules/hive-engine/queries/get-hive-engine-tokens-balances-query-options.js +1 -1
  519. package/dist/browser/modules/hive-engine/queries/get-hive-engine-tokens-market-query-options.js +1 -1
  520. package/dist/browser/modules/hive-engine/queries/get-hive-engine-tokens-metadata-query-options.js +1 -1
  521. package/dist/browser/modules/hive-engine/queries/get-hive-engine-unclaimed-rewards-query-options.js +1 -1
  522. package/dist/browser/modules/hive-engine/queries/index.js +1 -1
  523. package/dist/browser/modules/hive-engine/requests.js +1 -1
  524. package/dist/browser/modules/hive-engine/types/index.js +1 -1
  525. package/dist/browser/modules/integrations/3speak/index.js +1 -1
  526. package/dist/browser/modules/integrations/3speak/queries/get-account-token-query-options.js +1 -1
  527. package/dist/browser/modules/integrations/3speak/queries/get-account-videos-query-options.js +1 -1
  528. package/dist/browser/modules/integrations/3speak/queries/index.js +1 -1
  529. package/dist/browser/modules/integrations/hiveposh/index.js +1 -1
  530. package/dist/browser/modules/integrations/hiveposh/queries/get-hiveposh-links-query-options.js +1 -1
  531. package/dist/browser/modules/integrations/hiveposh/queries/index.js +1 -1
  532. package/dist/browser/modules/integrations/index.js +1 -1
  533. package/dist/browser/modules/integrations/plausible/index.js +1 -1
  534. package/dist/browser/modules/integrations/plausible/queries/get-stats-query-options.js +1 -1
  535. package/dist/browser/modules/integrations/plausible/queries/index.js +1 -1
  536. package/dist/browser/modules/market/index.js +1 -1
  537. package/dist/browser/modules/market/mutations/index.js +1 -1
  538. package/dist/browser/modules/market/mutations/use-limit-order-cancel.js +1 -1
  539. package/dist/browser/modules/market/mutations/use-limit-order-create.js +1 -1
  540. package/dist/browser/modules/market/queries/get-market-data-query-options.js +1 -1
  541. package/dist/browser/modules/market/queries/index.js +1 -1
  542. package/dist/browser/modules/market/requests.js +1 -1
  543. package/dist/browser/modules/market/types/index.js +1 -1
  544. package/dist/browser/modules/newsletter/api.js +1 -1
  545. package/dist/browser/modules/newsletter/index.js +1 -1
  546. package/dist/browser/modules/newsletter/mutations/index.js +1 -1
  547. package/dist/browser/modules/newsletter/mutations/use-leave-digest.js +1 -1
  548. package/dist/browser/modules/newsletter/mutations/use-send-newsletter-issue.js +1 -1
  549. package/dist/browser/modules/newsletter/mutations/use-subscribe-digest.js +1 -1
  550. package/dist/browser/modules/newsletter/mutations/use-unsubscribe-all-digests.js +1 -1
  551. package/dist/browser/modules/newsletter/queries/get-digest-subscriptions-query-options.js +1 -1
  552. package/dist/browser/modules/newsletter/queries/get-newsletter-issues-query-options.js +1 -1
  553. package/dist/browser/modules/newsletter/queries/get-newsletter-posts-query-options.js +1 -1
  554. package/dist/browser/modules/newsletter/queries/get-newsletter-sender-query-options.js +1 -1
  555. package/dist/browser/modules/newsletter/queries/index.js +1 -1
  556. package/dist/browser/modules/notifications/index.js +1 -1
  557. package/dist/browser/modules/notifications/mutations/index.js +1 -1
  558. package/dist/browser/modules/notifications/mutations/use-mark-notifications-read.js +1 -1
  559. package/dist/browser/modules/notifications/mutations/use-set-last-read.js +1 -1
  560. package/dist/browser/modules/notifications/queries/get-announcements-query-options.js +1 -1
  561. package/dist/browser/modules/notifications/queries/get-notifications-infinite-query-options.js +1 -1
  562. package/dist/browser/modules/notifications/queries/get-notifications-settings-query-options.js +1 -1
  563. package/dist/browser/modules/notifications/queries/get-notifications-unread-count-query-options.js +1 -1
  564. package/dist/browser/modules/notifications/queries/get-spotlights-query-options.js +1 -1
  565. package/dist/browser/modules/notifications/queries/index.js +1 -1
  566. package/dist/browser/modules/notifications/types/index.js +1 -1
  567. package/dist/browser/modules/operations/builders/index.js +1 -1
  568. package/dist/browser/modules/operations/index.js +1 -1
  569. package/dist/browser/modules/points/index.js +1 -1
  570. package/dist/browser/modules/points/mutations/index.js +1 -1
  571. package/dist/browser/modules/points/mutations/use-claim-points.js +1 -1
  572. package/dist/browser/modules/points/queries/get-points-asset-general-info-query-options.js +1 -1
  573. package/dist/browser/modules/points/queries/get-points-query-options.js +1 -1
  574. package/dist/browser/modules/points/queries/index.js +1 -1
  575. package/dist/browser/modules/points/types/index.js +1 -1
  576. package/dist/browser/modules/polls/index.js +1 -1
  577. package/dist/browser/modules/polls/mutations/index.js +1 -1
  578. package/dist/browser/modules/polls/mutations/use-poll-vote.js +1 -1
  579. package/dist/browser/modules/polls/queries/get-poll-query-options.js +1 -1
  580. package/dist/browser/modules/polls/queries/index.js +1 -1
  581. package/dist/browser/modules/posts/cache/discussions-cache-utils.js +1 -1
  582. package/dist/browser/modules/posts/cache/entries-cache-management.js +1 -1
  583. package/dist/browser/modules/posts/cache/index.js +1 -1
  584. package/dist/browser/modules/posts/index.js +1 -1
  585. package/dist/browser/modules/posts/mutations/add-fragment.js +1 -1
  586. package/dist/browser/modules/posts/mutations/edit-fragment.js +1 -1
  587. package/dist/browser/modules/posts/mutations/index.js +1 -1
  588. package/dist/browser/modules/posts/mutations/remove-fragment.js +1 -1
  589. package/dist/browser/modules/posts/mutations/use-add-draft.js +1 -1
  590. package/dist/browser/modules/posts/mutations/use-add-image.js +1 -1
  591. package/dist/browser/modules/posts/mutations/use-add-schedule.js +1 -1
  592. package/dist/browser/modules/posts/mutations/use-comment.js +1 -1
  593. package/dist/browser/modules/posts/mutations/use-cross-post.js +1 -1
  594. package/dist/browser/modules/posts/mutations/use-delete-comment.js +1 -1
  595. package/dist/browser/modules/posts/mutations/use-delete-draft.js +1 -1
  596. package/dist/browser/modules/posts/mutations/use-delete-image.js +1 -1
  597. package/dist/browser/modules/posts/mutations/use-delete-schedule.js +1 -1
  598. package/dist/browser/modules/posts/mutations/use-move-schedule.js +1 -1
  599. package/dist/browser/modules/posts/mutations/use-promote.js +1 -1
  600. package/dist/browser/modules/posts/mutations/use-reblog.js +1 -1
  601. package/dist/browser/modules/posts/mutations/use-update-draft.js +1 -1
  602. package/dist/browser/modules/posts/mutations/use-update-reply.js +1 -1
  603. package/dist/browser/modules/posts/mutations/use-upload-image.js +1 -1
  604. package/dist/browser/modules/posts/mutations/use-vote.js +1 -1
  605. package/dist/browser/modules/posts/queries/get-account-posts-query-options.js +1 -1
  606. package/dist/browser/modules/posts/queries/get-comment-history-query-options.js +1 -1
  607. package/dist/browser/modules/posts/queries/get-content-query-options.js +1 -1
  608. package/dist/browser/modules/posts/queries/get-content-replies-query-options.js +1 -1
  609. package/dist/browser/modules/posts/queries/get-deleted-entry-query-options.js +1 -1
  610. package/dist/browser/modules/posts/queries/get-discussions-query-options.js +1 -1
  611. package/dist/browser/modules/posts/queries/get-drafts-query-options.js +1 -1
  612. package/dist/browser/modules/posts/queries/get-entry-active-votes-query-options.js +1 -1
  613. package/dist/browser/modules/posts/queries/get-fragments-query-options.js +1 -1
  614. package/dist/browser/modules/posts/queries/get-images-query-options.js +1 -1
  615. package/dist/browser/modules/posts/queries/get-normalize-post-query-options.js +1 -1
  616. package/dist/browser/modules/posts/queries/get-post-header-query-options.js +1 -1
  617. package/dist/browser/modules/posts/queries/get-post-query-options.js +1 -1
  618. package/dist/browser/modules/posts/queries/get-post-tips-query-options.js +1 -1
  619. package/dist/browser/modules/posts/queries/get-posts-ranked-query-options.js +1 -1
  620. package/dist/browser/modules/posts/queries/get-promoted-posts-query-options.js +1 -1
  621. package/dist/browser/modules/posts/queries/get-reblogged-by-query-options.js +1 -1
  622. package/dist/browser/modules/posts/queries/get-reblogs-query-options.js +1 -1
  623. package/dist/browser/modules/posts/queries/get-schedules-query-options.js +1 -1
  624. package/dist/browser/modules/posts/queries/get-shorts-feed-query-options.js +1 -1
  625. package/dist/browser/modules/posts/queries/get-trending-tags-query-options.js +1 -1
  626. package/dist/browser/modules/posts/queries/get-trending-tags-with-stats-query-options.js +1 -1
  627. package/dist/browser/modules/posts/queries/get-user-post-vote-query-options.js +1 -1
  628. package/dist/browser/modules/posts/queries/get-waves-by-account-query-options.js +1 -1
  629. package/dist/browser/modules/posts/queries/get-waves-by-host-query-options.js +1 -1
  630. package/dist/browser/modules/posts/queries/get-waves-by-tag-query-options.js +1 -1
  631. package/dist/browser/modules/posts/queries/get-waves-feed-query-options.js +1 -1
  632. package/dist/browser/modules/posts/queries/get-waves-following-query-options.js +1 -1
  633. package/dist/browser/modules/posts/queries/get-waves-trending-authors-query-options.js +1 -1
  634. package/dist/browser/modules/posts/queries/get-waves-trending-tags-query-options.js +1 -1
  635. package/dist/browser/modules/posts/queries/index.js +1 -1
  636. package/dist/browser/modules/posts/types/index.js +1 -1
  637. package/dist/browser/modules/posts/utils/filter-dmca-entries.js +1 -1
  638. package/dist/browser/modules/posts/utils/waves-helpers.js +1 -1
  639. package/dist/browser/modules/private-api/index.js +1 -1
  640. package/dist/browser/modules/private-api/requests.js +1 -1
  641. package/dist/browser/modules/promotions/index.js +1 -1
  642. package/dist/browser/modules/promotions/mutations/index.js +1 -1
  643. package/dist/browser/modules/promotions/mutations/use-boost-plus.js +1 -1
  644. package/dist/browser/modules/promotions/mutations/use-rc-delegation.js +1 -1
  645. package/dist/browser/modules/promotions/queries/get-boost-plus-account-prices-query-options.js +1 -1
  646. package/dist/browser/modules/promotions/queries/get-boost-plus-prices-query-options.js +1 -1
  647. package/dist/browser/modules/promotions/queries/get-promote-price-query-options.js +1 -1
  648. package/dist/browser/modules/promotions/queries/get-rc-delegation-active-query-options.js +1 -1
  649. package/dist/browser/modules/promotions/queries/get-rc-delegation-prices-query-options.js +1 -1
  650. package/dist/browser/modules/promotions/queries/index.js +1 -1
  651. package/dist/browser/modules/proposals/index.js +1 -1
  652. package/dist/browser/modules/proposals/mutations/index.js +1 -1
  653. package/dist/browser/modules/proposals/mutations/use-proposal-create.js +1 -1
  654. package/dist/browser/modules/proposals/mutations/use-proposal-vote.js +1 -1
  655. package/dist/browser/modules/proposals/queries/get-proposal-votes-query-options.js +1 -1
  656. package/dist/browser/modules/proposals/queries/index.js +1 -1
  657. package/dist/browser/modules/quests/index.js +1 -1
  658. package/dist/browser/modules/quests/mutations/buy-streak-freeze.js +1 -1
  659. package/dist/browser/modules/quests/mutations/index.js +1 -1
  660. package/dist/browser/modules/quests/queries/get-quests-query-options.js +1 -1
  661. package/dist/browser/modules/quests/queries/index.js +1 -1
  662. package/dist/browser/modules/resource-credits/index.js +1 -1
  663. package/dist/browser/modules/resource-credits/queries/get-rc-resource-params-query-options.js +1 -1
  664. package/dist/browser/modules/resource-credits/queries/index.js +1 -1
  665. package/dist/browser/modules/search/dmca.js +1 -1
  666. package/dist/browser/modules/search/index.js +1 -1
  667. package/dist/browser/modules/search/parse-json-response.js +1 -1
  668. package/dist/browser/modules/search/queries/get-search-account-query-options.js +1 -1
  669. package/dist/browser/modules/search/queries/get-search-api-infinite-query-options.js +1 -1
  670. package/dist/browser/modules/search/queries/get-search-path-query-options.js +1 -1
  671. package/dist/browser/modules/search/queries/get-search-query-options.js +1 -1
  672. package/dist/browser/modules/search/queries/get-search-topics-query-options.js +1 -1
  673. package/dist/browser/modules/search/queries/get-similar-entries-query-options.js +1 -1
  674. package/dist/browser/modules/search/queries/index.js +1 -1
  675. package/dist/browser/modules/search/requests.js +1 -1
  676. package/dist/browser/modules/support/index.js +1 -1
  677. package/dist/browser/modules/support/mutations/index.js +1 -1
  678. package/dist/browser/modules/support/mutations/update-support-settings.js +1 -1
  679. package/dist/browser/modules/support/queries/get-support-settings-query-options.js +1 -1
  680. package/dist/browser/modules/support/queries/index.js +1 -1
  681. package/dist/browser/modules/wallet/index.js +1 -1
  682. package/dist/browser/modules/wallet/mutations/index.js +1 -1
  683. package/dist/browser/modules/wallet/mutations/use-claim-engine-rewards.js +1 -1
  684. package/dist/browser/modules/wallet/mutations/use-claim-interest.js +1 -1
  685. package/dist/browser/modules/wallet/mutations/use-claim-rewards.js +1 -1
  686. package/dist/browser/modules/wallet/mutations/use-convert.js +1 -1
  687. package/dist/browser/modules/wallet/mutations/use-delegate-engine-token.js +1 -1
  688. package/dist/browser/modules/wallet/mutations/use-delegate-rc.js +1 -1
  689. package/dist/browser/modules/wallet/mutations/use-delegate-vesting-shares.js +1 -1
  690. package/dist/browser/modules/wallet/mutations/use-engine-market-order.js +1 -1
  691. package/dist/browser/modules/wallet/mutations/use-set-withdraw-vesting-route.js +1 -1
  692. package/dist/browser/modules/wallet/mutations/use-stake-engine-token.js +1 -1
  693. package/dist/browser/modules/wallet/mutations/use-transfer-engine-token.js +1 -1
  694. package/dist/browser/modules/wallet/mutations/use-transfer-from-savings.js +1 -1
  695. package/dist/browser/modules/wallet/mutations/use-transfer-point.js +1 -1
  696. package/dist/browser/modules/wallet/mutations/use-transfer-to-savings.js +1 -1
  697. package/dist/browser/modules/wallet/mutations/use-transfer-to-vesting.js +1 -1
  698. package/dist/browser/modules/wallet/mutations/use-transfer.js +1 -1
  699. package/dist/browser/modules/wallet/mutations/use-undelegate-engine-token.js +1 -1
  700. package/dist/browser/modules/wallet/mutations/use-unstake-engine-token.js +1 -1
  701. package/dist/browser/modules/wallet/mutations/use-wallet-operation.js +1 -1
  702. package/dist/browser/modules/wallet/mutations/use-withdraw-vesting.js +1 -1
  703. package/dist/browser/modules/wallet/queries/get-account-wallet-asset-info-query-options.js +1 -1
  704. package/dist/browser/modules/wallet/queries/get-hbd-asset-general-info-query-options.js +1 -1
  705. package/dist/browser/modules/wallet/queries/get-hbd-asset-transactions-query-options.js +1 -1
  706. package/dist/browser/modules/wallet/queries/get-hive-asset-general-info-query-options.js +1 -1
  707. package/dist/browser/modules/wallet/queries/get-hive-asset-transactions-query-options.js +1 -1
  708. package/dist/browser/modules/wallet/queries/get-hive-power-asset-general-info-query-options.js +1 -1
  709. package/dist/browser/modules/wallet/queries/get-hive-power-asset-transactions-query-options.js +1 -1
  710. package/dist/browser/modules/wallet/queries/get-hive-power-delegatings-query-options.js +1 -1
  711. package/dist/browser/modules/wallet/queries/get-incoming-rc-query-options.js +1 -1
  712. package/dist/browser/modules/wallet/queries/get-portfolio-query-options.js +1 -1
  713. package/dist/browser/modules/wallet/queries/get-received-vesting-shares-query-options.js +1 -1
  714. package/dist/browser/modules/wallet/queries/index.js +1 -1
  715. package/dist/browser/modules/wallet/types/index.js +1 -1
  716. package/dist/browser/modules/witnesses/index.js +1 -1
  717. package/dist/browser/modules/witnesses/mutations/index.js +1 -1
  718. package/dist/browser/modules/witnesses/mutations/use-witness-proxy.js +1 -1
  719. package/dist/browser/modules/witnesses/mutations/use-witness-vote.js +1 -1
  720. package/dist/browser/modules/witnesses/queries/get-witnesses-query-options.js +1 -1
  721. package/dist/browser/modules/witnesses/queries/index.js +1 -1
  722. package/dist/node/index.cjs +3 -3
  723. package/dist/node/index.cjs.map +1 -1
  724. package/dist/node/index.mjs +3 -3
  725. package/dist/node/index.mjs.map +1 -1
  726. package/package.json +1 -1
  727. package/dist/browser/chunk-2YCVVTZX.js +0 -2
  728. package/dist/browser/chunk-7FJQ2VAW.js +0 -2
  729. package/dist/browser/chunk-BKDCXIO6.js +0 -2
  730. package/dist/browser/chunk-COGC4HII.js +0 -2
  731. package/dist/browser/chunk-G7UMQXIE.js +0 -2
  732. package/dist/browser/chunk-IYNPA3LL.js +0 -2
  733. package/dist/browser/chunk-NXFYJWG2.js +0 -2
  734. package/dist/browser/chunk-VCJWMCKC.js +0 -2
  735. package/dist/browser/chunk-VTGQQQFL.js +0 -2
  736. package/dist/browser/chunk-WTHEQ3M5.js.map +0 -1
  737. package/dist/browser/chunk-YQRLUPCP.js +0 -2
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/proposals/mutations/use-proposal-create.ts"],"names":["useProposalCreate","username","auth","broadcastMode","useBroadcastMutation","payload","buildProposalCreateOp","QueryKeys"],"mappings":"4GAOO,SAASA,CAAAA,CACdC,EACAC,CAAAA,CACAC,CAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,WAAA,CAAa,QAAQ,EACtBH,CAAAA,CACCI,CAAAA,EAAY,CACXC,CAAAA,CAAsBL,CAAAA,CAAWI,CAAO,CAC1C,CAAA,CACA,SAAY,CACNH,CAAAA,EAAM,OAAA,EAAS,mBACjB,MAAMA,CAAAA,CAAK,QAAQ,iBAAA,CAAkB,CACnCK,EAAU,QAAA,CAAS,IAAA,CAAKN,CAAQ,CAAA,CAChCM,CAAAA,CAAU,SAAA,CAAU,MACtB,CAAC,EAEL,CAAA,CACAL,CAAAA,CACA,SACA,CAAE,aAAA,CAAAC,CAAc,CAClB,CACF","file":"chunk-OAOOURDH.js","sourcesContent":["import { useBroadcastMutation, QueryKeys } from \"@/modules/core\";\nimport type { BroadcastMode } from \"@/modules/core\";\nimport { buildProposalCreateOp, type ProposalCreatePayload } from \"@/modules/operations/builders\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\n\nexport { type ProposalCreatePayload };\n\nexport function useProposalCreate(\n username: string | undefined,\n auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<ProposalCreatePayload>(\n [\"proposals\", \"create\"],\n username,\n (payload) => [\n buildProposalCreateOp(username!, payload)\n ],\n async () => {\n if (auth?.adapter?.invalidateQueries) {\n await auth.adapter.invalidateQueries([\n QueryKeys.accounts.full(username),\n QueryKeys.proposals.list(),\n ]);\n }\n },\n auth,\n 'active',\n { broadcastMode }\n );\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/proposals/mutations/use-proposal-create.ts"],"names":["useProposalCreate","username","auth","broadcastMode","useBroadcastMutation","payload","buildProposalCreateOp","QueryKeys"],"mappings":"4GAOO,SAASA,CAAAA,CACdC,EACAC,CAAAA,CACAC,CAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,WAAA,CAAa,QAAQ,EACtBH,CAAAA,CACCI,CAAAA,EAAY,CACXC,CAAAA,CAAsBL,CAAAA,CAAWI,CAAO,CAC1C,CAAA,CACA,SAAY,CACNH,CAAAA,EAAM,OAAA,EAAS,mBACjB,MAAMA,CAAAA,CAAK,QAAQ,iBAAA,CAAkB,CACnCK,EAAU,QAAA,CAAS,IAAA,CAAKN,CAAQ,CAAA,CAChCM,CAAAA,CAAU,SAAA,CAAU,MACtB,CAAC,EAEL,CAAA,CACAL,CAAAA,CACA,SACA,CAAE,aAAA,CAAAC,CAAc,CAClB,CACF","file":"chunk-WWHGPZGN.js","sourcesContent":["import { useBroadcastMutation, QueryKeys } from \"@/modules/core\";\nimport type { BroadcastMode } from \"@/modules/core\";\nimport { buildProposalCreateOp, type ProposalCreatePayload } from \"@/modules/operations/builders\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\n\nexport { type ProposalCreatePayload };\n\nexport function useProposalCreate(\n username: string | undefined,\n auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<ProposalCreatePayload>(\n [\"proposals\", \"create\"],\n username,\n (payload) => [\n buildProposalCreateOp(username!, payload)\n ],\n async () => {\n if (auth?.adapter?.invalidateQueries) {\n await auth.adapter.invalidateQueries([\n QueryKeys.accounts.full(username),\n QueryKeys.proposals.list(),\n ]);\n }\n },\n auth,\n 'active',\n { broadcastMode }\n );\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {a as a$1}from'./chunk-SEACJS36.js';import {b}from'./chunk-ASN6FTIA.js';import {c as c$1}from'./chunk-OMSXAN23.js';import {a}from'./chunk-WTHEQ3M5.js';import {queryOptions,infiniteQueryOptions}from'@tanstack/react-query';async function g(e){let n=await a$1()(c$1.privateApiHost+"/private-api/images",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e})});if(!n.ok)throw new Error(`Failed to fetch images: ${n.status}`);return n.json()}function c(e,t){return queryOptions({queryKey:a.posts.images(e),queryFn:async()=>!e||!t?[]:g(t),enabled:!!e&&!!t})}function l(e,t){return queryOptions({queryKey:a.posts.galleryImages(e),queryFn:async()=>!e||!t?[]:g(t),enabled:!!e&&!!t})}function I(e,t,n=10){return infiniteQueryOptions({queryKey:a.posts.imagesInfinite(e,n),queryFn:async({pageParam:r=0})=>{if(!e||!t)return {data:[],pagination:{total:0,limit:n,offset:0,has_next:false}};let s=await a$1()(`${c$1.privateApiHost}/private-api/images?format=wrapped&offset=${r}&limit=${n}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:t})});if(!s.ok)throw new Error(`Failed to fetch images: ${s.status}`);let u=await s.json();return b(u,n)},initialPageParam:0,getNextPageParam:r=>{if(r.pagination.has_next)return r.pagination.offset+r.pagination.limit},enabled:!!e&&!!t})}export{c as a,l as b,I as c};//# sourceMappingURL=chunk-TNGNZSGS.js.map
2
- //# sourceMappingURL=chunk-TNGNZSGS.js.map
1
+ import {b}from'./chunk-ASN6FTIA.js';import {a as a$1}from'./chunk-SEACJS36.js';import {c as c$1}from'./chunk-OMSXAN23.js';import {a}from'./chunk-CQOMDMT6.js';import {queryOptions,infiniteQueryOptions}from'@tanstack/react-query';async function g(e){let n=await a$1()(c$1.privateApiHost+"/private-api/images",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e})});if(!n.ok)throw new Error(`Failed to fetch images: ${n.status}`);return n.json()}function c(e,t){return queryOptions({queryKey:a.posts.images(e),queryFn:async()=>!e||!t?[]:g(t),enabled:!!e&&!!t})}function l(e,t){return queryOptions({queryKey:a.posts.galleryImages(e),queryFn:async()=>!e||!t?[]:g(t),enabled:!!e&&!!t})}function I(e,t,n=10){return infiniteQueryOptions({queryKey:a.posts.imagesInfinite(e,n),queryFn:async({pageParam:r=0})=>{if(!e||!t)return {data:[],pagination:{total:0,limit:n,offset:0,has_next:false}};let s=await a$1()(`${c$1.privateApiHost}/private-api/images?format=wrapped&offset=${r}&limit=${n}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:t})});if(!s.ok)throw new Error(`Failed to fetch images: ${s.status}`);let u=await s.json();return b(u,n)},initialPageParam:0,getNextPageParam:r=>{if(r.pagination.has_next)return r.pagination.offset+r.pagination.limit},enabled:!!e&&!!t})}export{c as a,l as b,I as c};//# sourceMappingURL=chunk-X3KHKYDO.js.map
2
+ //# sourceMappingURL=chunk-X3KHKYDO.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/posts/queries/get-images-query-options.ts"],"names":["fetchUserImages","code","response","getBoundFetch","CONFIG","getImagesQueryOptions","username","queryOptions","QueryKeys","getGalleryImagesQueryOptions","activeUsername","getImagesInfiniteQueryOptions","limit","infiniteQueryOptions","pageParam","json","normalizeToWrappedResponse","lastPage"],"mappings":"oOAIA,eAAeA,CAAAA,CAAgBC,CAAAA,CAAgD,CAE7E,IAAMC,CAAAA,CAAW,MADAC,GAAAA,EAAc,CACCC,GAAAA,CAAO,cAAA,CAAiB,qBAAA,CAAuB,CAC7E,MAAA,CAAQ,MAAA,CACR,OAAA,CAAS,CACP,cAAA,CAAgB,kBAClB,CAAA,CACA,IAAA,CAAM,IAAA,CAAK,SAAA,CAAU,CACnB,IAAA,CAAAH,CACF,CAAC,CACH,CAAC,CAAA,CAED,GAAI,CAACC,CAAAA,CAAS,EAAA,CACZ,MAAM,IAAI,KAAA,CAAM,CAAA,wBAAA,EAA2BA,CAAAA,CAAS,MAAM,CAAA,CAAE,CAAA,CAG9D,OAAOA,CAAAA,CAAS,IAAA,EAClB,CAEO,SAASG,CAAAA,CAAsBC,CAAAA,CAAmBL,CAAAA,CAAe,CACtE,OAAOM,YAAAA,CAAa,CAClB,QAAA,CAAUC,EAAU,KAAA,CAAM,MAAA,CAAOF,CAAQ,CAAA,CACzC,OAAA,CAAS,SACH,CAACA,CAAAA,EAAY,CAACL,CAAAA,CACT,EAAC,CAEHD,CAAAA,CAAgBC,CAAI,CAAA,CAE7B,OAAA,CAAS,CAAC,CAACK,CAAAA,EAAY,CAAC,CAACL,CAC3B,CAAC,CACH,CAEO,SAASQ,CAAAA,CAA6BC,CAAAA,CAAoCT,CAAAA,CAAe,CAC9F,OAAOM,YAAAA,CAAa,CAClB,QAAA,CAAUC,CAAAA,CAAU,KAAA,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A,CACA,gBAAA,CAAkB,CAAA,CAClB,gBAAA,CAAmBK,CAAAA,EAAa,CAC9B,GAAIA,CAAAA,CAAS,UAAA,CAAW,QAAA,CACtB,OAAOA,CAAAA,CAAS,UAAA,CAAW,MAAA,CAASA,CAAAA,CAAS,UAAA,CAAW,KAG5D,CAAA,CACA,OAAA,CAAS,CAAC,CAACX,CAAAA,EAAY,CAAC,CAACL,CAC3B,CAAC,CACH","file":"chunk-TNGNZSGS.js","sourcesContent":["import { infiniteQueryOptions, queryOptions } from \"@tanstack/react-query\";\nimport { CONFIG, getBoundFetch, normalizeToWrappedResponse, QueryKeys } from \"@/modules/core\";\nimport { UserImage } from \"../types/user-image\";\n\nasync function fetchUserImages(code: string | undefined): Promise<UserImage[]> {\n const fetchApi = getBoundFetch();\n const response = await fetchApi(CONFIG.privateApiHost + \"/private-api/images\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n body: JSON.stringify({\n code,\n }),\n });\n\n if (!response.ok) {\n throw new Error(`Failed to fetch images: ${response.status}`);\n }\n\n return response.json() as Promise<UserImage[]>;\n}\n\nexport function getImagesQueryOptions(username?: string, code?: string) {\n return queryOptions({\n queryKey: QueryKeys.posts.images(username),\n queryFn: async () => {\n if (!username || !code) {\n return [];\n }\n return fetchUserImages(code);\n },\n enabled: !!username && !!code,\n });\n}\n\nexport function getGalleryImagesQueryOptions(activeUsername: string | undefined, code?: string) {\n return queryOptions({\n queryKey: QueryKeys.posts.galleryImages(activeUsername),\n queryFn: async () => {\n if (!activeUsername || !code) {\n return [];\n }\n return fetchUserImages(code);\n },\n enabled: !!activeUsername && !!code,\n });\n}\n\nexport function getImagesInfiniteQueryOptions(\n username: string | undefined,\n code?: string,\n limit: number = 10\n) {\n return infiniteQueryOptions({\n queryKey: QueryKeys.posts.imagesInfinite(username, limit),\n queryFn: async ({ pageParam = 0 }) => {\n if (!username || !code) {\n return {\n data: [],\n pagination: {\n total: 0,\n limit,\n offset: 0,\n has_next: false,\n },\n };\n }\n\n const fetchApi = getBoundFetch();\n const response = await fetchApi(\n `${CONFIG.privateApiHost}/private-api/images?format=wrapped&offset=${pageParam}&limit=${limit}`,\n {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n body: JSON.stringify({\n code,\n }),\n }\n );\n\n if (!response.ok) {\n throw new Error(`Failed to fetch images: ${response.status}`);\n }\n\n const json = await response.json();\n return normalizeToWrappedResponse<UserImage>(json, limit);\n },\n initialPageParam: 0,\n getNextPageParam: (lastPage) => {\n if (lastPage.pagination.has_next) {\n return lastPage.pagination.offset + lastPage.pagination.limit;\n }\n return undefined;\n },\n enabled: !!username && !!code,\n });\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/posts/queries/get-images-query-options.ts"],"names":["fetchUserImages","code","response","getBoundFetch","CONFIG","getImagesQueryOptions","username","queryOptions","QueryKeys","getGalleryImagesQueryOptions","activeUsername","getImagesInfiniteQueryOptions","limit","infiniteQueryOptions","pageParam","json","normalizeToWrappedResponse","lastPage"],"mappings":"oOAIA,eAAeA,CAAAA,CAAgBC,CAAAA,CAAgD,CAE7E,IAAMC,CAAAA,CAAW,MADAC,GAAAA,EAAc,CACCC,GAAAA,CAAO,cAAA,CAAiB,qBAAA,CAAuB,CAC7E,MAAA,CAAQ,MAAA,CACR,OAAA,CAAS,CACP,cAAA,CAAgB,kBAClB,CAAA,CACA,IAAA,CAAM,IAAA,CAAK,SAAA,CAAU,CACnB,IAAA,CAAAH,CACF,CAAC,CACH,CAAC,CAAA,CAED,GAAI,CAACC,CAAAA,CAAS,EAAA,CACZ,MAAM,IAAI,KAAA,CAAM,CAAA,wBAAA,EAA2BA,CAAAA,CAAS,MAAM,CAAA,CAAE,CAAA,CAG9D,OAAOA,CAAAA,CAAS,IAAA,EAClB,CAEO,SAASG,CAAAA,CAAsBC,CAAAA,CAAmBL,CAAAA,CAAe,CACtE,OAAOM,YAAAA,CAAa,CAClB,QAAA,CAAUC,EAAU,KAAA,CAAM,MAAA,C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M,IAAA,CAAK,SAAA,CAAU,CACnB,IAAA,CAAAX,CACF,CAAC,CACH,CACF,CAAA,CAEA,GAAI,CAACC,CAAAA,CAAS,EAAA,CACZ,MAAM,IAAI,KAAA,CAAM,CAAA,wBAAA,EAA2BA,CAAAA,CAAS,MAAM,CAAA,CAAE,CAAA,CAG9D,IAAMa,CAAAA,CAAO,MAAMb,CAAAA,CAAS,IAAA,EAAK,CACjC,OAAOc,CAAAA,CAAsCD,CAAAA,CAAMH,CAAK,CAC1D,CAAA,CACA,gBAAA,CAAkB,CAAA,CAClB,gBAAA,CAAmBK,CAAAA,EAAa,CAC9B,GAAIA,CAAAA,CAAS,UAAA,CAAW,QAAA,CACtB,OAAOA,CAAAA,CAAS,UAAA,CAAW,MAAA,CAASA,CAAAA,CAAS,UAAA,CAAW,KAG5D,CAAA,CACA,OAAA,CAAS,CAAC,CAACX,CAAAA,EAAY,CAAC,CAACL,CAC3B,CAAC,CACH","file":"chunk-X3KHKYDO.js","sourcesContent":["import { infiniteQueryOptions, queryOptions } from \"@tanstack/react-query\";\nimport { CONFIG, getBoundFetch, normalizeToWrappedResponse, QueryKeys } from \"@/modules/core\";\nimport { UserImage } from \"../types/user-image\";\n\nasync function fetchUserImages(code: string | undefined): Promise<UserImage[]> {\n const fetchApi = getBoundFetch();\n const response = await fetchApi(CONFIG.privateApiHost + \"/private-api/images\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n body: JSON.stringify({\n code,\n }),\n });\n\n if (!response.ok) {\n throw new Error(`Failed to fetch images: ${response.status}`);\n }\n\n return response.json() as Promise<UserImage[]>;\n}\n\nexport function getImagesQueryOptions(username?: string, code?: string) {\n return queryOptions({\n queryKey: QueryKeys.posts.images(username),\n queryFn: async () => {\n if (!username || !code) {\n return [];\n }\n return fetchUserImages(code);\n },\n enabled: !!username && !!code,\n });\n}\n\nexport function getGalleryImagesQueryOptions(activeUsername: string | undefined, code?: string) {\n return queryOptions({\n queryKey: QueryKeys.posts.galleryImages(activeUsername),\n queryFn: async () => {\n if (!activeUsername || !code) {\n return [];\n }\n return fetchUserImages(code);\n },\n enabled: !!activeUsername && !!code,\n });\n}\n\nexport function getImagesInfiniteQueryOptions(\n username: string | undefined,\n code?: string,\n limit: number = 10\n) {\n return infiniteQueryOptions({\n queryKey: QueryKeys.posts.imagesInfinite(username, limit),\n queryFn: async ({ pageParam = 0 }) => {\n if (!username || !code) {\n return {\n data: [],\n pagination: {\n total: 0,\n limit,\n offset: 0,\n has_next: false,\n },\n };\n }\n\n const fetchApi = getBoundFetch();\n const response = await fetchApi(\n `${CONFIG.privateApiHost}/private-api/images?format=wrapped&offset=${pageParam}&limit=${limit}`,\n {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n body: JSON.stringify({\n code,\n }),\n }\n );\n\n if (!response.ok) {\n throw new Error(`Failed to fetch images: ${response.status}`);\n }\n\n const json = await response.json();\n return normalizeToWrappedResponse<UserImage>(json, limit);\n },\n initialPageParam: 0,\n getNextPageParam: (lastPage) => {\n if (lastPage.pagination.has_next) {\n return lastPage.pagination.offset + lastPage.pagination.limit;\n }\n return undefined;\n },\n enabled: !!username && !!code,\n });\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {a as a$1}from'./chunk-4C57MZP6.js';import {a}from'./chunk-CWBPA5DT.js';import {a as a$3}from'./chunk-ZMMG2HSI.js';import {a as a$2}from'./chunk-W3MCL2F4.js';import {c}from'./chunk-32QJ72HH.js';import {b}from'./chunk-POHYQBLL.js';import {j}from'./chunk-RAWKN3XW.js';import {queryOptions}from'@tanstack/react-query';function k(n){let o=9.5-(n.headBlock-7e6)/25e4*.01;o<.95&&(o=.95);let d=n.vestingRewardPercent/1e4,i=n.virtualSupply,m=n.totalVestingFund;return (i*o*d/m).toFixed(3)}function A(n){return queryOptions({queryKey:["assets","hive-power","general-info",n],staleTime:6e4,refetchInterval:9e4,queryFn:async()=>{await b().prefetchQuery(a()),await b().prefetchQuery(a$1(n));let e=b().getQueryData(a().queryKey),t=b().getQueryData(a$1(n).queryKey);if(!e||!t)return {name:"HP",title:"Hive Power",price:0,accountBalance:0};let w=await j("condenser_api.get_ticker",[]).catch(()=>{}),l=Number.parseFloat(w?.latest??""),y=Number.isFinite(l)?l:e.base/e.quote,f=c(t.vesting_shares).amount,v=c(t.delegated_vesting_shares).amount,o=c(t.received_vesting_shares).amount,d=c(t.vesting_withdraw_rate).amount,i=Math.max((Number(t.to_withdraw)-Number(t.withdrawn))/1e6,0),m=a$2(t.next_vesting_withdrawal)?0:Math.min(d,i),u=+a$3(f,e.hivePerMVests).toFixed(3),P=+a$3(v,e.hivePerMVests).toFixed(3),F=+a$3(o,e.hivePerMVests).toFixed(3),c$1=+a$3(i,e.hivePerMVests).toFixed(3),p=+a$3(m,e.hivePerMVests).toFixed(3),b$1=Math.max(u-c$1,0),D=Math.max(u-P,0);return {name:"HP",title:"Hive Power",price:y,accountBalance:+b$1.toFixed(3),apr:k(e),parts:[{name:"hp_balance",balance:u},{name:"available",balance:+D.toFixed(3)},{name:"outgoing_delegations",balance:P},{name:"incoming_delegations",balance:F},...c$1>0?[{name:"pending_power_down",balance:+c$1.toFixed(3)}]:[],...p>0&&p!==c$1?[{name:"next_power_down",balance:+p.toFixed(3)}]:[]]}}})}export{A as a};//# sourceMappingURL=chunk-ASSGVHJB.js.map
2
- //# sourceMappingURL=chunk-ASSGVHJB.js.map
1
+ import {a as a$1}from'./chunk-3UESDLC3.js';import {a}from'./chunk-XTZBOYHG.js';import {c}from'./chunk-32QJ72HH.js';import {a as a$3}from'./chunk-ZMMG2HSI.js';import {a as a$2}from'./chunk-W3MCL2F4.js';import {b}from'./chunk-POHYQBLL.js';import {j}from'./chunk-RAWKN3XW.js';import {queryOptions}from'@tanstack/react-query';function k(n){let o=9.5-(n.headBlock-7e6)/25e4*.01;o<.95&&(o=.95);let d=n.vestingRewardPercent/1e4,i=n.virtualSupply,m=n.totalVestingFund;return (i*o*d/m).toFixed(3)}function A(n){return queryOptions({queryKey:["assets","hive-power","general-info",n],staleTime:6e4,refetchInterval:9e4,queryFn:async()=>{await b().prefetchQuery(a()),await b().prefetchQuery(a$1(n));let e=b().getQueryData(a().queryKey),t=b().getQueryData(a$1(n).queryKey);if(!e||!t)return {name:"HP",title:"Hive Power",price:0,accountBalance:0};let w=await j("condenser_api.get_ticker",[]).catch(()=>{}),l=Number.parseFloat(w?.latest??""),y=Number.isFinite(l)?l:e.base/e.quote,f=c(t.vesting_shares).amount,v=c(t.delegated_vesting_shares).amount,o=c(t.received_vesting_shares).amount,d=c(t.vesting_withdraw_rate).amount,i=Math.max((Number(t.to_withdraw)-Number(t.withdrawn))/1e6,0),m=a$2(t.next_vesting_withdrawal)?0:Math.min(d,i),u=+a$3(f,e.hivePerMVests).toFixed(3),P=+a$3(v,e.hivePerMVests).toFixed(3),F=+a$3(o,e.hivePerMVests).toFixed(3),c$1=+a$3(i,e.hivePerMVests).toFixed(3),p=+a$3(m,e.hivePerMVests).toFixed(3),b$1=Math.max(u-c$1,0),D=Math.max(u-P,0);return {name:"HP",title:"Hive Power",price:y,accountBalance:+b$1.toFixed(3),apr:k(e),parts:[{name:"hp_balance",balance:u},{name:"available",balance:+D.toFixed(3)},{name:"outgoing_delegations",balance:P},{name:"incoming_delegations",balance:F},...c$1>0?[{name:"pending_power_down",balance:+c$1.toFixed(3)}]:[],...p>0&&p!==c$1?[{name:"next_power_down",balance:+p.toFixed(3)}]:[]]}}})}export{A as a};//# sourceMappingURL=chunk-X3ZYJJAD.js.map
2
+ //# sourceMappingURL=chunk-X3ZYJJAD.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/wallet/queries/get-hive-power-asset-general-info-query-options.ts"],"names":["getAPR","dynamicProps","currentInflationRate","vestingRewardPercent","virtualSupply","totalVestingFunds","getHivePowerAssetGeneralInfoQueryOptions","username","queryOptions","getQueryClient","getDynamicPropsQueryOptions","getAccountFullQueryOptions","accountData","marketTicker","callRPC","marketPrice","price","vestingShares","parseAsset","delegatedVests","receivedVests","withdrawRateVests","remainingToWithdrawVests","nextWithdrawalVests","isEmptyDate","hpBalance","vestsToHp","outgoingDelegationsHp","incomingDelegationsHp","pendingPowerDownHp","nextPowerDownHp","totalBalance","availableHp"],"mappings":"kUASA,SAASA,CAAAA,CAAOC,EAA4B,CAU1C,IAAIC,CAAAA,CACF,GAAA,CAAA,CALgBD,EAAa,SAAA,CACC,GAAA,EACS,KAGK,GAAA,CAE1CC,CAAAA,CAAuB,MACzBA,CAAAA,CAAuB,GAAA,CAAA,CAGzB,IAAMC,CAAAA,CAAuBF,EAAa,oBAAA,CAAuB,GAAA,CAC3DG,CAAAA,CAAgBH,CAAAA,CAAa,cAC7BI,CAAAA,CAAoBJ,CAAAA,CAAa,gBAAA,CAEvC,OAAA,CACGG,EAAgBF,CAAAA,CAAuBC,CAAAA,CACxCE,GACA,OAAA,CAAQ,CAAC,CACb,CAEO,SAASC,CAAAA,CAAyCC,CAAAA,CAAkB,CACzE,OAAOC,YAAAA,CAAa,CAClB,QAAA,CAAU,CAAC,QAAA,CAAU,YAAA,CAAc,cAAA,CAAgBD,CAAQ,EAC3D,SAAA,CAAW,GAAA,CACX,gBAAiB,GAAA,CACjB,OAAA,CAAS,SAAY,CACnB,MAAME,CAAAA,EAAe,CAAE,cAAcC,CAAAA,EAA6B,EAClE,MAAMD,CAAAA,GAAiB,aAAA,CACrBE,GAAAA,CAA2BJ,CAAQ,CACrC,EAEA,IAAMN,CAAAA,CAAeQ,GAAe,CAAE,YAAA,CACpCC,GAA4B,CAAE,QAChC,CAAA,CACME,CAAAA,CAAcH,GAAe,CAAE,YAAA,CACnCE,GAAAA,CAA2BJ,CAAQ,EAAE,QACvC,CAAA,CAEA,GAAI,CAACN,GAAgB,CAACW,CAAAA,CACpB,OAAO,CACL,IAAA,CAAM,KACN,KAAA,CAAO,YAAA,CACP,KAAA,CAAO,CAAA,CACP,eAAgB,CAClB,CAAA,CAGF,IAAMC,CAAAA,CAAgB,MAAMC,EAAQ,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ACf,CAAA,CAAE,OAAA,CAAQ,CAAC,CAAA,CACL8B,GAAAA,CAAe,KAAK,GAAA,CAAIN,CAAAA,CAAYI,IAAoB,CAAC,CAAA,CACzDG,CAAAA,CAAc,IAAA,CAAK,IAAIP,CAAAA,CAAYE,CAAAA,CAAuB,CAAC,CAAA,CAEjE,OAAO,CACL,IAAA,CAAM,IAAA,CACN,KAAA,CAAO,YAAA,CACP,MAAAX,CAAAA,CACA,cAAA,CAAgB,CAACe,GAAAA,CAAa,QAAQ,CAAC,CAAA,CACvC,GAAA,CAAK/B,CAAAA,CAAOC,CAAY,CAAA,CACxB,KAAA,CAAO,CACL,CACE,IAAA,CAAM,aACN,OAAA,CAASwB,CACX,CAAA,CACA,CACE,KAAM,WAAA,CACN,OAAA,CAAS,CAACO,CAAAA,CAAY,OAAA,CAAQ,CAAC,CACjC,CAAA,CACA,CACE,IAAA,CAAM,uBACN,OAAA,CAASL,CACX,EACA,CACE,IAAA,CAAM,uBACN,OAAA,CAASC,CACX,CAAA,CACA,GAAIC,IAAqB,CAAA,CACrB,CACE,CACE,IAAA,CAAM,qBACN,OAAA,CAAS,CAACA,GAAAA,CAAmB,OAAA,CAAQ,CAAC,CACxC,CACF,EACA,EAAC,CACL,GAAIC,CAAAA,CAAkB,CAAA,EAAKA,CAAAA,GAAoBD,GAAAA,CAC3C,CACE,CACE,IAAA,CAAM,kBACN,OAAA,CAAS,CAACC,EAAgB,OAAA,CAAQ,CAAC,CACrC,CACF,EACA,EACN,CACF,CACF,CACF,CAAC,CACH","file":"chunk-ASSGVHJB.js","sourcesContent":["import type { DynamicProps } from \"@/modules/core\";\nimport { callRPC } from \"@/modules/core/hive-tx\";\nimport { getAccountFullQueryOptions } from \"@/modules/accounts\";\nimport { getDynamicPropsQueryOptions, getQueryClient } from \"@/modules/core\";\nimport type { FullAccount } from \"@/modules/accounts\";\nimport { queryOptions } from \"@tanstack/react-query\";\nimport type { GeneralAssetInfo } from \"../types\";\nimport { isEmptyDate, parseAsset, vestsToHp } from \"@/modules/core/utils\";\n\nfunction getAPR(dynamicProps: DynamicProps) {\n const initialInflationRate = 9.5;\n const initialBlock = 7000000;\n const decreaseRate = 250000;\n const decreasePercentPerIncrement = 0.01;\n\n const headBlock = dynamicProps.headBlock;\n const deltaBlocks = headBlock - initialBlock;\n const decreaseIncrements = deltaBlocks / decreaseRate;\n\n let currentInflationRate =\n initialInflationRate - decreaseIncrements * decreasePercentPerIncrement;\n\n if (currentInflationRate < 0.95) {\n currentInflationRate = 0.95;\n }\n\n const vestingRewardPercent = dynamicProps.vestingRewardPercent / 10000;\n const virtualSupply = dynamicProps.virtualSupply;\n const totalVestingFunds = dynamicProps.totalVestingFund;\n\n return (\n (virtualSupply * currentInflationRate * vestingRewardPercent) /\n totalVestingFunds\n ).toFixed(3);\n}\n\nexport function getHivePowerAssetGeneralInfoQueryOptions(username: string) {\n return queryOptions({\n queryKey: [\"assets\", \"hive-power\", \"general-info\", username],\n staleTime: 60000,\n refetchInterval: 90000,\n queryFn: async () => {\n await getQueryClient().prefetchQuery(getDynamicPropsQueryOptions());\n await getQueryClient().prefetchQuery(\n getAccountFullQueryOptions(username)\n );\n\n const dynamicProps = getQueryClient().getQueryData<DynamicProps>(\n getDynamicPropsQueryOptions().queryKey\n );\n const accountData = getQueryClient().getQueryData<FullAccount>(\n getAccountFullQueryOptions(username).queryKey\n );\n\n if (!dynamicProps || !accountData) {\n return {\n name: \"HP\",\n title: \"Hive Power\",\n price: 0,\n accountBalance: 0,\n };\n }\n\n const marketTicker = (await callRPC(\"condenser_api.get_ticker\", [])\n .catch(() => undefined)) as { latest?: string } | undefined;\n\n const marketPrice = Number.parseFloat(marketTicker?.latest ?? \"\");\n const price = Number.isFinite(marketPrice)\n ? marketPrice\n : dynamicProps.base / dynamicProps.quote;\n\n const vestingShares = parseAsset(accountData.vesting_shares).amount;\n const delegatedVests = parseAsset(\n accountData.delegated_vesting_shares\n ).amount;\n const receivedVests = parseAsset(\n accountData.received_vesting_shares\n ).amount;\n const withdrawRateVests = parseAsset(\n accountData.vesting_withdraw_rate\n ).amount;\n const remainingToWithdrawVests = Math.max(\n (Number(accountData.to_withdraw) - Number(accountData.withdrawn)) /\n 1e6,\n 0\n );\n const nextWithdrawalVests = !isEmptyDate(\n accountData.next_vesting_withdrawal\n )\n ? Math.min(withdrawRateVests, remainingToWithdrawVests)\n : 0;\n\n const hpBalance = +vestsToHp(\n vestingShares,\n dynamicProps.hivePerMVests\n ).toFixed(3);\n const outgoingDelegationsHp = +vestsToHp(\n delegatedVests,\n dynamicProps.hivePerMVests\n ).toFixed(3);\n const incomingDelegationsHp = +vestsToHp(\n receivedVests,\n dynamicProps.hivePerMVests\n ).toFixed(3);\n const pendingPowerDownHp = +vestsToHp(\n remainingToWithdrawVests,\n dynamicProps.hivePerMVests\n ).toFixed(3);\n const nextPowerDownHp = +vestsToHp(\n nextWithdrawalVests,\n dynamicProps.hivePerMVests\n ).toFixed(3);\n const totalBalance = Math.max(hpBalance - pendingPowerDownHp, 0);\n const availableHp = Math.max(hpBalance - outgoingDelegationsHp, 0);\n\n return {\n name: \"HP\",\n title: \"Hive Power\",\n price,\n accountBalance: +totalBalance.toFixed(3),\n apr: getAPR(dynamicProps),\n parts: [\n {\n name: \"hp_balance\",\n balance: hpBalance,\n },\n {\n name: \"available\",\n balance: +availableHp.toFixed(3),\n },\n {\n name: \"outgoing_delegations\",\n balance: outgoingDelegationsHp,\n },\n {\n name: \"incoming_delegations\",\n balance: incomingDelegationsHp,\n },\n ...(pendingPowerDownHp > 0\n ? [\n {\n name: \"pending_power_down\",\n balance: +pendingPowerDownHp.toFixed(3),\n },\n ]\n : []),\n ...(nextPowerDownHp > 0 && nextPowerDownHp !== pendingPowerDownHp\n ? [\n {\n name: \"next_power_down\",\n balance: +nextPowerDownHp.toFixed(3),\n },\n ]\n : []),\n ],\n } satisfies GeneralAssetInfo;\n },\n });\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/wallet/queries/get-hive-power-asset-general-info-query-options.ts"],"names":["getAPR","dynamicProps","currentInflationRate","vestingRewardPercent","virtualSupply","totalVestingFunds","getHivePowerAssetGeneralInfoQueryOptions","username","queryOptions","getQueryClient","getDynamicPropsQueryOptions","getAccountFullQueryOptions","accountData","marketTicker","callRPC","marketPrice","price","vestingShares","parseAsset","delegatedVests","receivedVests","withdrawRateVests","remainingToWithdrawVests","nextWithdrawalVests","isEmptyDate","hpBalance","vestsToHp","outgoingDelegationsHp","incomingDelegationsHp","pendingPowerDownHp","nextPowerDownHp","totalBalance","availableHp"],"mappings":"kUASA,SAASA,CAAAA,CAAOC,EAA4B,CAU1C,IAAIC,CAAAA,CACF,GAAA,CAAA,CALgBD,EAAa,SAAA,CACC,GAAA,EACS,KAGK,GAAA,CAE1CC,CAAAA,CAAuB,MACzBA,CAAAA,CAAuB,GAAA,CAAA,CAGzB,IAAMC,CAAAA,CAAuBF,EAAa,oBAAA,CAAuB,GAAA,CAC3DG,CAAAA,CAAgBH,CAAAA,CAAa,cAC7BI,CAAAA,CAAoBJ,CAAAA,CAAa,gBAAA,CAEvC,OAAA,CACGG,EAAgBF,CAAAA,CAAuBC,CAAAA,CACxCE,GACA,OAAA,CAAQ,CAAC,CACb,CAEO,SAASC,CAAAA,CAAyCC,CAAAA,CAAkB,CACzE,OAAOC,YAAAA,CAAa,CAClB,QAAA,CAAU,CAAC,QAAA,CAAU,YAAA,CAAc,cAAA,CAAgBD,CAAQ,EAC3D,SAAA,CAAW,GAAA,CACX,gBAAiB,GAAA,CACjB,OAAA,CAAS,SAAY,CACnB,MAAME,CAAAA,EAAe,CAAE,cAAcC,CAAAA,EAA6B,EAClE,MAAMD,CAAAA,GAAiB,aAAA,CACrBE,GAAAA,CAA2BJ,CAAQ,CACrC,EAEA,IAAMN,CAAAA,CAAeQ,GAAe,CAAE,YAAA,CACpCC,GAA4B,CAAE,QAChC,CAAA,CACME,CAAAA,CAAcH,GAAe,CAAE,YAAA,CACnCE,GAAAA,CAA2BJ,CAAQ,EAAE,QAC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CAAA,CAAE,QAAQ,CAAC,CAAA,CACL4B,GAAAA,CAAqB,CAACH,IAC1BJ,CAAAA,CACArB,CAAAA,CAAa,aACf,CAAA,CAAE,QAAQ,CAAC,CAAA,CACL6B,EAAkB,CAACJ,GAAAA,CACvBH,EACAtB,CAAAA,CAAa,aACf,CAAA,CAAE,OAAA,CAAQ,CAAC,CAAA,CACL8B,GAAAA,CAAe,KAAK,GAAA,CAAIN,CAAAA,CAAYI,IAAoB,CAAC,CAAA,CACzDG,CAAAA,CAAc,IAAA,CAAK,IAAIP,CAAAA,CAAYE,CAAAA,CAAuB,CAAC,CAAA,CAEjE,OAAO,CACL,IAAA,CAAM,IAAA,CACN,KAAA,CAAO,YAAA,CACP,MAAAX,CAAAA,CACA,cAAA,CAAgB,CAACe,GAAAA,CAAa,QAAQ,CAAC,CAAA,CACvC,GAAA,CAAK/B,CAAAA,CAAOC,CAAY,CAAA,CACxB,KAAA,CAAO,CACL,CACE,IAAA,CAAM,aACN,OAAA,CAASwB,CACX,CAAA,CACA,CACE,KAAM,WAAA,CACN,OAAA,CAAS,CAACO,CAAAA,CAAY,OAAA,CAAQ,CAAC,CACjC,CAAA,CACA,CACE,IAAA,CAAM,uBACN,OAAA,CAASL,CACX,EACA,CACE,IAAA,CAAM,uBACN,OAAA,CAASC,CACX,CAAA,CACA,GAAIC,IAAqB,CAAA,CACrB,CACE,CACE,IAAA,CAAM,qBACN,OAAA,CAAS,CAACA,GAAAA,CAAmB,OAAA,CAAQ,CAAC,CACxC,CACF,EACA,EAAC,CACL,GAAIC,CAAAA,CAAkB,CAAA,EAAKA,CAAAA,GAAoBD,GAAAA,CAC3C,CACE,CACE,IAAA,CAAM,kBACN,OAAA,CAAS,CAACC,EAAgB,OAAA,CAAQ,CAAC,CACrC,CACF,EACA,EACN,CACF,CACF,CACF,CAAC,CACH","file":"chunk-X3ZYJJAD.js","sourcesContent":["import type { DynamicProps } from \"@/modules/core\";\nimport { callRPC } from \"@/modules/core/hive-tx\";\nimport { getAccountFullQueryOptions } from \"@/modules/accounts\";\nimport { getDynamicPropsQueryOptions, getQueryClient } from \"@/modules/core\";\nimport type { FullAccount } from \"@/modules/accounts\";\nimport { queryOptions } from \"@tanstack/react-query\";\nimport type { GeneralAssetInfo } from \"../types\";\nimport { isEmptyDate, parseAsset, vestsToHp } from \"@/modules/core/utils\";\n\nfunction getAPR(dynamicProps: DynamicProps) {\n const initialInflationRate = 9.5;\n const initialBlock = 7000000;\n const decreaseRate = 250000;\n const decreasePercentPerIncrement = 0.01;\n\n const headBlock = dynamicProps.headBlock;\n const deltaBlocks = headBlock - initialBlock;\n const decreaseIncrements = deltaBlocks / decreaseRate;\n\n let currentInflationRate =\n initialInflationRate - decreaseIncrements * decreasePercentPerIncrement;\n\n if (currentInflationRate < 0.95) {\n currentInflationRate = 0.95;\n }\n\n const vestingRewardPercent = dynamicProps.vestingRewardPercent / 10000;\n const virtualSupply = dynamicProps.virtualSupply;\n const totalVestingFunds = dynamicProps.totalVestingFund;\n\n return (\n (virtualSupply * currentInflationRate * vestingRewardPercent) /\n totalVestingFunds\n ).toFixed(3);\n}\n\nexport function getHivePowerAssetGeneralInfoQueryOptions(username: string) {\n return queryOptions({\n queryKey: [\"assets\", \"hive-power\", \"general-info\", username],\n staleTime: 60000,\n refetchInterval: 90000,\n queryFn: async () => {\n await getQueryClient().prefetchQuery(getDynamicPropsQueryOptions());\n await getQueryClient().prefetchQuery(\n getAccountFullQueryOptions(username)\n );\n\n const dynamicProps = getQueryClient().getQueryData<DynamicProps>(\n getDynamicPropsQueryOptions().queryKey\n );\n const accountData = getQueryClient().getQueryData<FullAccount>(\n getAccountFullQueryOptions(username).queryKey\n );\n\n if (!dynamicProps || !accountData) {\n return {\n name: \"HP\",\n title: \"Hive Power\",\n price: 0,\n accountBalance: 0,\n };\n }\n\n const marketTicker = (await callRPC(\"condenser_api.get_ticker\", [])\n .catch(() => undefined)) as { latest?: string } | undefined;\n\n const marketPrice = Number.parseFloat(marketTicker?.latest ?? \"\");\n const price = Number.isFinite(marketPrice)\n ? marketPrice\n : dynamicProps.base / dynamicProps.quote;\n\n const vestingShares = parseAsset(accountData.vesting_shares).amount;\n const delegatedVests = parseAsset(\n accountData.delegated_vesting_shares\n ).amount;\n const receivedVests = parseAsset(\n accountData.received_vesting_shares\n ).amount;\n const withdrawRateVests = parseAsset(\n accountData.vesting_withdraw_rate\n ).amount;\n const remainingToWithdrawVests = Math.max(\n (Number(accountData.to_withdraw) - Number(accountData.withdrawn)) /\n 1e6,\n 0\n );\n const nextWithdrawalVests = !isEmptyDate(\n accountData.next_vesting_withdrawal\n )\n ? Math.min(withdrawRateVests, remainingToWithdrawVests)\n : 0;\n\n const hpBalance = +vestsToHp(\n vestingShares,\n dynamicProps.hivePerMVests\n ).toFixed(3);\n const outgoingDelegationsHp = +vestsToHp(\n delegatedVests,\n dynamicProps.hivePerMVests\n ).toFixed(3);\n const incomingDelegationsHp = +vestsToHp(\n receivedVests,\n dynamicProps.hivePerMVests\n ).toFixed(3);\n const pendingPowerDownHp = +vestsToHp(\n remainingToWithdrawVests,\n dynamicProps.hivePerMVests\n ).toFixed(3);\n const nextPowerDownHp = +vestsToHp(\n nextWithdrawalVests,\n dynamicProps.hivePerMVests\n ).toFixed(3);\n const totalBalance = Math.max(hpBalance - pendingPowerDownHp, 0);\n const availableHp = Math.max(hpBalance - outgoingDelegationsHp, 0);\n\n return {\n name: \"HP\",\n title: \"Hive Power\",\n price,\n accountBalance: +totalBalance.toFixed(3),\n apr: getAPR(dynamicProps),\n parts: [\n {\n name: \"hp_balance\",\n balance: hpBalance,\n },\n {\n name: \"available\",\n balance: +availableHp.toFixed(3),\n },\n {\n name: \"outgoing_delegations\",\n balance: outgoingDelegationsHp,\n },\n {\n name: \"incoming_delegations\",\n balance: incomingDelegationsHp,\n },\n ...(pendingPowerDownHp > 0\n ? [\n {\n name: \"pending_power_down\",\n balance: +pendingPowerDownHp.toFixed(3),\n },\n ]\n : []),\n ...(nextPowerDownHp > 0 && nextPowerDownHp !== pendingPowerDownHp\n ? [\n {\n name: \"next_power_down\",\n balance: +nextPowerDownHp.toFixed(3),\n },\n ]\n : []),\n ],\n } satisfies GeneralAssetInfo;\n },\n });\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {a}from'./chunk-SEACJS36.js';import {c}from'./chunk-OMSXAN23.js';import {a as a$1}from'./chunk-WTHEQ3M5.js';import {queryOptions}from'@tanstack/react-query';function u(e,r){return queryOptions({enabled:!!e&&!!r,queryKey:a$1.accounts.recoveries(e),queryFn:async()=>{if(!e||!r)throw new Error("[SDK][Accounts] Missing username or access token");return (await a()(c.privateApiHost+"/private-api/recoveries",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:r})})).json()}})}export{u as a};//# sourceMappingURL=chunk-L5SAOKO6.js.map
2
- //# sourceMappingURL=chunk-L5SAOKO6.js.map
1
+ import {a}from'./chunk-SEACJS36.js';import {c}from'./chunk-OMSXAN23.js';import {a as a$1}from'./chunk-CQOMDMT6.js';import {queryOptions}from'@tanstack/react-query';function u(e,r){return queryOptions({enabled:!!e&&!!r,queryKey:a$1.accounts.recoveries(e),queryFn:async()=>{if(!e||!r)throw new Error("[SDK][Accounts] Missing username or access token");return (await a()(c.privateApiHost+"/private-api/recoveries",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:r})})).json()}})}export{u as a};//# sourceMappingURL=chunk-XHYOHFMU.js.map
2
+ //# sourceMappingURL=chunk-XHYOHFMU.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/accounts/queries/get-account-recoveries-query-options.ts"],"names":["getAccountRecoveriesQueryOptions","username","code","queryOptions","QueryKeys","getBoundFetch","CONFIG"],"mappings":"oKAIO,SAASA,CAAAA,CACdC,CAAAA,CACAC,CAAAA,CACA,CACA,OAAOC,YAAAA,CAAa,CAClB,OAAA,CAAS,CAAC,CAACF,CAAAA,EAAY,CAAC,CAACC,CAAAA,CACzB,QAAA,CAAUE,GAAAA,CAAU,QAAA,CAAS,WAAWH,CAAS,CAAA,CACjD,OAAA,CAAS,SAAY,CACnB,GAAI,CAACA,CAAAA,EAAY,CAACC,CAAAA,CAChB,MAAM,IAAI,KAAA,CAAM,kDAAkD,CAAA,CAcpE,OAAA,CAXiB,MADAG,CAAAA,EAAc,CAE7BC,CAAAA,CAAO,cAAA,CAAiB,yBAAA,CACxB,CACE,MAAA,CAAQ,MAAA,CACR,QAAS,CACP,cAAA,CAAgB,kBAClB,CAAA,CACA,IAAA,CAAM,IAAA,CAAK,SAAA,CAAU,CAAE,KAAAJ,CAAK,CAAC,CAC/B,CACF,CAAA,EAEgB,IAAA,EAClB,CACF,CAAC,CACH","file":"chunk-L5SAOKO6.js","sourcesContent":["import { CONFIG, getBoundFetch, QueryKeys } from \"@/modules/core\";\nimport { queryOptions } from \"@tanstack/react-query\";\nimport { GetRecoveriesEmailResponse } from \"../types\";\n\nexport function getAccountRecoveriesQueryOptions(\n username: string | undefined,\n code: string | undefined\n) {\n return queryOptions({\n enabled: !!username && !!code,\n queryKey: QueryKeys.accounts.recoveries(username!),\n queryFn: async () => {\n if (!username || !code) {\n throw new Error(\"[SDK][Accounts] Missing username or access token\");\n }\n const fetchApi = getBoundFetch();\n const response = await fetchApi(\n CONFIG.privateApiHost + \"/private-api/recoveries\",\n {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n body: JSON.stringify({ code }),\n }\n );\n\n return response.json() as Promise<GetRecoveriesEmailResponse[]>;\n },\n });\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/accounts/queries/get-account-recoveries-query-options.ts"],"names":["getAccountRecoveriesQueryOptions","username","code","queryOptions","QueryKeys","getBoundFetch","CONFIG"],"mappings":"oKAIO,SAASA,CAAAA,CACdC,CAAAA,CACAC,CAAAA,CACA,CACA,OAAOC,YAAAA,CAAa,CAClB,OAAA,CAAS,CAAC,CAACF,CAAAA,EAAY,CAAC,CAACC,CAAAA,CACzB,QAAA,CAAUE,GAAAA,CAAU,QAAA,CAAS,WAAWH,CAAS,CAAA,CACjD,OAAA,CAAS,SAAY,CACnB,GAAI,CAACA,CAAAA,EAAY,CAACC,CAAAA,CAChB,MAAM,IAAI,KAAA,CAAM,kDAAkD,CAAA,CAcpE,OAAA,CAXiB,MADAG,CAAAA,EAAc,CAE7BC,CAAAA,CAAO,cAAA,CAAiB,yBAAA,CACxB,CACE,MAAA,CAAQ,MAAA,CACR,QAAS,CACP,cAAA,CAAgB,kBAClB,CAAA,CACA,IAAA,CAAM,IAAA,CAAK,SAAA,CAAU,CAAE,KAAAJ,CAAK,CAAC,CAC/B,CACF,CAAA,EAEgB,IAAA,EAClB,CACF,CAAC,CACH","file":"chunk-XHYOHFMU.js","sourcesContent":["import { CONFIG, getBoundFetch, QueryKeys } from \"@/modules/core\";\nimport { queryOptions } from \"@tanstack/react-query\";\nimport { GetRecoveriesEmailResponse } from \"../types\";\n\nexport function getAccountRecoveriesQueryOptions(\n username: string | undefined,\n code: string | undefined\n) {\n return queryOptions({\n enabled: !!username && !!code,\n queryKey: QueryKeys.accounts.recoveries(username!),\n queryFn: async () => {\n if (!username || !code) {\n throw new Error(\"[SDK][Accounts] Missing username or access token\");\n }\n const fetchApi = getBoundFetch();\n const response = await fetchApi(\n CONFIG.privateApiHost + \"/private-api/recoveries\",\n {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n body: JSON.stringify({ code }),\n }\n );\n\n return response.json() as Promise<GetRecoveriesEmailResponse[]>;\n },\n });\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {a as a$1}from'./chunk-4C57MZP6.js';import {a}from'./chunk-CWBPA5DT.js';import {c}from'./chunk-32QJ72HH.js';import {b}from'./chunk-POHYQBLL.js';import {queryOptions}from'@tanstack/react-query';function y(n){return queryOptions({queryKey:["assets","hbd","general-info",n],staleTime:6e4,refetchInterval:9e4,queryFn:async()=>{await b().prefetchQuery(a()),await b().prefetchQuery(a$1(n));let e=b().getQueryData(a$1(n).queryKey),c$1=b().getQueryData(a().queryKey),s=1;return e?{name:"HBD",title:"Hive Dollar",price:s,accountBalance:c(e.hbd_balance).amount+c(e?.savings_hbd_balance).amount,apr:((c$1?.hbdInterestRate??0)/100).toFixed(3),parts:[{name:"current",balance:c(e.hbd_balance).amount},{name:"savings",balance:c(e.savings_hbd_balance).amount}]}:{name:"HBD",title:"Hive Dollar",price:s,accountBalance:0}}})}export{y as a};//# sourceMappingURL=chunk-6IABT7MJ.js.map
2
- //# sourceMappingURL=chunk-6IABT7MJ.js.map
1
+ import {a as a$1}from'./chunk-3UESDLC3.js';import {a}from'./chunk-XTZBOYHG.js';import {c}from'./chunk-32QJ72HH.js';import {b}from'./chunk-POHYQBLL.js';import {queryOptions}from'@tanstack/react-query';function y(n){return queryOptions({queryKey:["assets","hbd","general-info",n],staleTime:6e4,refetchInterval:9e4,queryFn:async()=>{await b().prefetchQuery(a()),await b().prefetchQuery(a$1(n));let e=b().getQueryData(a$1(n).queryKey),c$1=b().getQueryData(a().queryKey),s=1;return e?{name:"HBD",title:"Hive Dollar",price:s,accountBalance:c(e.hbd_balance).amount+c(e?.savings_hbd_balance).amount,apr:((c$1?.hbdInterestRate??0)/100).toFixed(3),parts:[{name:"current",balance:c(e.hbd_balance).amount},{name:"savings",balance:c(e.savings_hbd_balance).amount}]}:{name:"HBD",title:"Hive Dollar",price:s,accountBalance:0}}})}export{y as a};//# sourceMappingURL=chunk-XQAXJQVK.js.map
2
+ //# sourceMappingURL=chunk-XQAXJQVK.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/wallet/queries/get-hbd-asset-general-info-query-options.ts"],"names":["getHbdAssetGeneralInfoQueryOptions","username","queryOptions","getQueryClient","getDynamicPropsQueryOptions","getAccountFullQueryOptions","accountData","dynamicProps","price","parseAsset"],"mappings":"wMAQO,SAASA,CAAAA,CAAmCC,CAAAA,CAAkB,CACnE,OAAOC,YAAAA,CAAa,CAClB,QAAA,CAAU,CAAC,QAAA,CAAU,KAAA,CAAO,cAAA,C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ryOptions } from \"@/modules/accounts\";\nimport { getDynamicPropsQueryOptions, getQueryClient } from \"@/modules/core\";\nimport type { FullAccount } from \"@/modules/accounts\";\nimport { queryOptions } from \"@tanstack/react-query\";\nimport type { GeneralAssetInfo } from \"../types\";\nimport { parseAsset } from \"@/modules/core/utils\";\n\nexport function getHbdAssetGeneralInfoQueryOptions(username: string) {\n return queryOptions({\n queryKey: [\"assets\", \"hbd\", \"general-info\", username],\n staleTime: 60000,\n refetchInterval: 90000,\n queryFn: async () => {\n await getQueryClient().prefetchQuery(getDynamicPropsQueryOptions());\n await getQueryClient().prefetchQuery(\n getAccountFullQueryOptions(username)\n );\n\n const accountData = getQueryClient().getQueryData<FullAccount>(\n getAccountFullQueryOptions(username).queryKey\n );\n const dynamicProps = getQueryClient().getQueryData<DynamicProps>(\n getDynamicPropsQueryOptions().queryKey\n );\n\n const price = 1;\n\n if (!accountData) {\n return {\n name: \"HBD\",\n title: \"Hive Dollar\",\n price,\n accountBalance: 0,\n };\n }\n\n return {\n name: \"HBD\",\n title: \"Hive Dollar\",\n price,\n accountBalance:\n parseAsset(accountData.hbd_balance).amount +\n parseAsset(accountData?.savings_hbd_balance).amount,\n apr: ((dynamicProps?.hbdInterestRate ?? 0) / 100).toFixed(3),\n parts: [\n {\n name: \"current\",\n balance: parseAsset(accountData.hbd_balance).amount,\n },\n {\n name: \"savings\",\n balance: parseAsset(accountData.savings_hbd_balance).amount,\n },\n ],\n } satisfies GeneralAssetInfo;\n },\n });\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/wallet/queries/get-hbd-asset-general-info-query-options.ts"],"names":["getHbdAssetGeneralInfoQueryOptions","username","queryOptions","getQueryClient","getDynamicPropsQueryOptions","getAccountFullQueryOptions","accountData","dynamicProps","price","parseAsset"],"mappings":"wMAQO,SAASA,CAAAA,CAAmCC,CAAAA,CAAkB,CACnE,OAAOC,YAAAA,CAAa,CAClB,QAAA,CAAU,CAAC,QAAA,CAAU,KAAA,CAAO,cAAA,CAAg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ions } from \"@/modules/accounts\";\nimport { getDynamicPropsQueryOptions, getQueryClient } from \"@/modules/core\";\nimport type { FullAccount } from \"@/modules/accounts\";\nimport { queryOptions } from \"@tanstack/react-query\";\nimport type { GeneralAssetInfo } from \"../types\";\nimport { parseAsset } from \"@/modules/core/utils\";\n\nexport function getHbdAssetGeneralInfoQueryOptions(username: string) {\n return queryOptions({\n queryKey: [\"assets\", \"hbd\", \"general-info\", username],\n staleTime: 60000,\n refetchInterval: 90000,\n queryFn: async () => {\n await getQueryClient().prefetchQuery(getDynamicPropsQueryOptions());\n await getQueryClient().prefetchQuery(\n getAccountFullQueryOptions(username)\n );\n\n const accountData = getQueryClient().getQueryData<FullAccount>(\n getAccountFullQueryOptions(username).queryKey\n );\n const dynamicProps = getQueryClient().getQueryData<DynamicProps>(\n getDynamicPropsQueryOptions().queryKey\n );\n\n const price = 1;\n\n if (!accountData) {\n return {\n name: \"HBD\",\n title: \"Hive Dollar\",\n price,\n accountBalance: 0,\n };\n }\n\n return {\n name: \"HBD\",\n title: \"Hive Dollar\",\n price,\n accountBalance:\n parseAsset(accountData.hbd_balance).amount +\n parseAsset(accountData?.savings_hbd_balance).amount,\n apr: ((dynamicProps?.hbdInterestRate ?? 0) / 100).toFixed(3),\n parts: [\n {\n name: \"current\",\n balance: parseAsset(accountData.hbd_balance).amount,\n },\n {\n name: \"savings\",\n balance: parseAsset(accountData.savings_hbd_balance).amount,\n },\n ],\n } satisfies GeneralAssetInfo;\n },\n });\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {c as c$1}from'./chunk-ZSMDZIBE.js';import {c as c$2}from'./chunk-OMSXAN23.js';function d(t,n){return {...t,id:t.id??t.post_id,created:t.created??t.timestamp,host:n}}function c(t){return {...t,id:t.id??t.post_id}}function y(t,n){if(!t)return null;let a=t.container??t,r=d(a,n),e=t.parent?c(t.parent):void 0;return {...t,id:t.id??t.post_id,created:t.created??t.timestamp,max_accepted_payout:t.max_accepted_payout||"1000000.000 HBD",pending_payout_value:t.pending_payout_value||"0.000 HBD",author_payout_value:t.author_payout_value||"0.000 HBD",curator_payout_value:t.curator_payout_value||"0.000 HBD",host:n,container:r,parent:e}}function l(t){return Array.isArray(t)?t:[]}async function f(t){let n=c$1(t,"created",true),a=await c$2.queryClient.fetchQuery(n),r=l(a);if(r.length<=1)return [];let e=r.filter(({parent_author:o,parent_permlink:p})=>o===t.author&&p===t.permlink);return e.length===0?[]:e.filter(o=>!o.stats?.gray)}function v(t,n,a){return t.length===0?[]:t.map(r=>{let e=t.find(i=>i.author===r.parent_author&&i.permlink===r.parent_permlink&&i.author!==a);return {...r,id:r.post_id,host:a,container:n,parent:e}}).filter(r=>r.container.post_id!==r.post_id).sort((r,e)=>new Date(e.created).getTime()-new Date(r.created).getTime())}export{y as a,l as b,f as c,v as d};//# sourceMappingURL=chunk-T6IKUQBC.js.map
2
- //# sourceMappingURL=chunk-T6IKUQBC.js.map
1
+ import {c as c$1}from'./chunk-MF2SHTFD.js';import {c as c$2}from'./chunk-OMSXAN23.js';function d(t,n){return {...t,id:t.id??t.post_id,created:t.created??t.timestamp,host:n}}function c(t){return {...t,id:t.id??t.post_id}}function y(t,n){if(!t)return null;let a=t.container??t,r=d(a,n),e=t.parent?c(t.parent):void 0;return {...t,id:t.id??t.post_id,created:t.created??t.timestamp,max_accepted_payout:t.max_accepted_payout||"1000000.000 HBD",pending_payout_value:t.pending_payout_value||"0.000 HBD",author_payout_value:t.author_payout_value||"0.000 HBD",curator_payout_value:t.curator_payout_value||"0.000 HBD",host:n,container:r,parent:e}}function l(t){return Array.isArray(t)?t:[]}async function f(t){let n=c$1(t,"created",true),a=await c$2.queryClient.fetchQuery(n),r=l(a);if(r.length<=1)return [];let e=r.filter(({parent_author:o,parent_permlink:p})=>o===t.author&&p===t.permlink);return e.length===0?[]:e.filter(o=>!o.stats?.gray)}function v(t,n,a){return t.length===0?[]:t.map(r=>{let e=t.find(i=>i.author===r.parent_author&&i.permlink===r.parent_permlink&&i.author!==a);return {...r,id:r.post_id,host:a,container:n,parent:e}}).filter(r=>r.container.post_id!==r.post_id).sort((r,e)=>new Date(e.created).getTime()-new Date(r.created).getTime())}export{y as a,l as b,f as c,v as d};//# sourceMappingURL=chunk-XQQ5MSOE.js.map
2
+ //# sourceMappingURL=chunk-XQQ5MSOE.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/posts/utils/waves-helpers.ts"],"names":["normalizeContainer","entry","host","normalizeParent","normalizeWaveEntryFromApi","containerSource","container","parent","toEntryArray","x","getVisibleFirstLevelThreadItems","queryOptions","getDiscussionsQueryOptions","discussionItemsRaw","CONFIG","discussionItems","firstLevelItems","parent_author","parent_permlink","item","mapThreadItemsToWaveEntries","items","a","b"],"mappings":"sFAMA,SAASA,CAAAA,CAAmBC,CAAAA,CAAwBC,CAAAA,CAAyB,CAC3E,OAAO,CACL,GAAGD,CAAAA,CACH,EAAA,CAAIA,CAAAA,CAAM,EAAA,EAAMA,CAAAA,CAAM,OAAA,CAEtB,OAAA,CAASA,CAAAA,CAAM,OAAA,EAAYA,CAAAA,CAA4C,SAAA,CACvE,IAAA,CAAAC,CACF,CACF,CAEA,SAASC,CAAAA,CAAgBF,CAAAA,CAA+B,CACtD,OAAO,CACL,GAAGA,CAAAA,CACH,EAAA,CAAIA,CAAAA,CAAM,EAAA,EAAMA,CAAAA,CAAM,OACxB,CACF,CAEO,SAASG,CAAAA,CACdH,CAAAA,CAIAC,CAAAA,CACkB,CAClB,GAAI,CAACD,CAAAA,CACH,OAAO,IAAA,CAGT,IAAMI,CAAAA,CAAkBJ,CAAAA,CAAM,SAAA,EAAaA,CAAAA,CACrCK,CAAAA,CAAYN,CAAAA,CAAmBK,CAAAA,CAAiBH,CAAI,CAAA,CAEpDK,CAAAA,CAASN,CAAAA,CAAM,MAAA,CAASE,CAAAA,CAAgBF,CAAAA,CAAM,MAAM,CAAA,CAAI,MAAA,CAE9D,OAAO,CACL,GAAGA,CAAAA,CACH,EAAA,CAAIA,CAAAA,CAAM,E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AAAA,CACAf,CAAAA,CACAJ,CAAAA,CACa,CACb,OAAImB,CAAAA,CAAM,MAAA,GAAW,CAAA,CACZ,EAAC,CAGHA,CAAAA,CACJ,GAAA,CAAKF,CAAAA,EAAS,CACb,IAAMZ,CAAAA,CAASc,CAAAA,CAAM,IAAA,CAClB,CAAA,EACC,CAAA,CAAE,MAAA,GAAWF,CAAAA,CAAK,aAAA,EAClB,CAAA,CAAE,QAAA,GAAaA,CAAAA,CAAK,eAAA,EACpB,CAAA,CAAE,MAAA,GAAWjB,CACjB,CAAA,CAEA,OAAO,CACL,GAAGiB,CAAAA,CACH,EAAA,CAAIA,CAAAA,CAAK,OAAA,CACT,IAAA,CAAAjB,CAAAA,CACA,SAAA,CAAAI,CAAAA,CACA,MAAA,CAAAC,CACF,CACF,CAAC,CAAA,CACA,MAAA,CAAQN,CAAAA,EAAUA,CAAAA,CAAM,SAAA,CAAU,OAAA,GAAYA,CAAAA,CAAM,OAAO,CAAA,CAC3D,IAAA,CACC,CAACqB,CAAAA,CAAGC,CAAAA,GAAM,IAAI,IAAA,CAAKA,CAAAA,CAAE,OAAO,CAAA,CAAE,OAAA,EAAQ,CAAI,IAAI,IAAA,CAAKD,CAAAA,CAAE,OAAO,CAAA,CAAE,OAAA,EAChE,CACJ","file":"chunk-T6IKUQBC.js","sourcesContent":["import { Entry, WaveEntry } from \"../types\";\nimport { getDiscussionsQueryOptions, SortOrder } from \"../queries/get-discussions-query-options\";\nimport { CONFIG } from \"@/modules/core\";\n\ntype EntryWithPostId = Entry & { post_id: number };\n\nfunction normalizeContainer(entry: EntryWithPostId, host: string): WaveEntry {\n return {\n ...entry,\n id: entry.id ?? entry.post_id,\n // The private-api waves feeds send the publish time as `timestamp`, not `created`.\n created: entry.created ?? (entry as unknown as { timestamp?: string }).timestamp,\n host\n } as WaveEntry;\n}\n\nfunction normalizeParent(entry: EntryWithPostId): Entry {\n return {\n ...entry,\n id: entry.id ?? entry.post_id\n } as Entry;\n}\n\nexport function normalizeWaveEntryFromApi(\n entry:\n | (Entry & { post_id: number; container?: EntryWithPostId | null; parent?: EntryWithPostId | null })\n | null\n | undefined,\n host: string\n): WaveEntry | null {\n if (!entry) {\n return null;\n }\n\n const containerSource = entry.container ?? entry;\n const container = normalizeContainer(containerSource, host);\n\n const parent = entry.parent ? normalizeParent(entry.parent) : undefined;\n\n return {\n ...entry,\n id: entry.id ?? entry.post_id,\n // The private-api waves feeds (following / tag / account) send the publish\n // time as `timestamp`, not `created`; map it so the relative time renders on\n // every card (the For You feed already carries a real `created` from Hive RPC).\n created: entry.created ?? (entry as unknown as { timestamp?: string }).timestamp,\n // The private-api waves feeds omit max_accepted_payout; default it (and the\n // payout strings) to the Hive shape so payout-rendering consumers run their\n // pending+author+curator summation instead of treating the value as missing.\n max_accepted_payout: entry.max_accepted_payout || \"1000000.000 HBD\",\n pending_payout_value: entry.pending_payout_value || \"0.000 HBD\",\n author_payout_value: entry.author_payout_value || \"0.000 HBD\",\n curator_payout_value: entry.curator_payout_value || \"0.000 HBD\",\n host,\n container,\n parent\n } as WaveEntry;\n}\n\nexport function toEntryArray(x: unknown): Entry[] {\n return Array.isArray(x) ? (x as Entry[]) : [];\n}\n\nexport async function getVisibleFirstLevelThreadItems(\n container: WaveEntry\n): Promise<Entry[]> {\n const queryOptions = getDiscussionsQueryOptions(container, SortOrder.created, true);\n const discussionItemsRaw = await CONFIG.queryClient.fetchQuery(queryOptions);\n const discussionItems = toEntryArray(discussionItemsRaw);\n\n if (discussionItems.length <= 1) {\n return [];\n }\n\n const firstLevelItems = discussionItems.filter(\n ({ parent_author, parent_permlink }) =>\n parent_author === container.author && parent_permlink === container.permlink\n );\n\n if (firstLevelItems.length === 0) {\n return [];\n }\n\n const visibleItems = firstLevelItems.filter((item) => !item.stats?.gray);\n\n return visibleItems;\n}\n\nexport function mapThreadItemsToWaveEntries(\n items: Entry[],\n container: WaveEntry,\n host: string\n): WaveEntry[] {\n if (items.length === 0) {\n return [];\n }\n\n return items\n .map((item) => {\n const parent = items.find(\n (i) =>\n i.author === item.parent_author &&\n i.permlink === item.parent_permlink &&\n i.author !== host\n );\n\n return {\n ...item,\n id: item.post_id,\n host,\n container,\n parent\n } as WaveEntry;\n })\n .filter((entry) => entry.container.post_id !== entry.post_id)\n .sort(\n (a, b) => new Date(b.created).getTime() - new Date(a.created).getTime()\n );\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/posts/utils/waves-helpers.ts"],"names":["normalizeContainer","entry","host","normalizeParent","normalizeWaveEntryFromApi","containerSource","container","parent","toEntryArray","x","getVisibleFirstLevelThreadItems","queryOptions","getDiscussionsQueryOptions","discussionItemsRaw","CONFIG","discussionItems","firstLevelItems","parent_author","parent_permlink","item","mapThreadItemsToWaveEntries","items","a","b"],"mappings":"sFAMA,SAASA,CAAAA,CAAmBC,CAAAA,CAAwBC,CAAAA,CAAyB,CAC3E,OAAO,CACL,GAAGD,CAAAA,CACH,EAAA,CAAIA,CAAAA,CAAM,EAAA,EAAMA,CAAAA,CAAM,OAAA,CAEtB,OAAA,CAASA,CAAAA,CAAM,OAAA,EAAYA,CAAAA,CAA4C,SAAA,CACvE,IAAA,CAAAC,CACF,CACF,CAEA,SAASC,CAAAA,CAAgBF,CAAAA,CAA+B,CACtD,OAAO,CACL,GAAGA,CAAAA,CACH,EAAA,CAAIA,CAAAA,CAAM,EAAA,EAAMA,CAAAA,CAAM,OACxB,CACF,CAEO,SAASG,CAAAA,CACdH,CAAAA,CAIAC,CAAAA,CACkB,CAClB,GAAI,CAACD,CAAAA,CACH,OAAO,IAAA,CAGT,IAAMI,CAAAA,CAAkBJ,CAAAA,CAAM,SAAA,EAAaA,CAAAA,CACrCK,CAAAA,CAAYN,CAAAA,CAAmBK,CAAAA,CAAiBH,CAAI,CAAA,CAEpDK,CAAAA,CAASN,CAAAA,CAAM,MAAA,CAASE,CAAAA,CAAgBF,CAAAA,CAAM,MAAM,CAAA,CAAI,MAAA,CAE9D,OAAO,CACL,GAAGA,CAAAA,CACH,EAAA,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,SAASC,CAAAA,CACdC,CAAAA,CACAf,CAAAA,CACAJ,CAAAA,CACa,CACb,OAAImB,CAAAA,CAAM,MAAA,GAAW,CAAA,CACZ,EAAC,CAGHA,CAAAA,CACJ,GAAA,CAAKF,CAAAA,EAAS,CACb,IAAMZ,CAAAA,CAASc,CAAAA,CAAM,IAAA,CAClB,CAAA,EACC,CAAA,CAAE,MAAA,GAAWF,CAAAA,CAAK,aAAA,EAClB,CAAA,CAAE,QAAA,GAAaA,CAAAA,CAAK,eAAA,EACpB,CAAA,CAAE,MAAA,GAAWjB,CACjB,CAAA,CAEA,OAAO,CACL,GAAGiB,CAAAA,CACH,EAAA,CAAIA,CAAAA,CAAK,OAAA,CACT,IAAA,CAAAjB,CAAAA,CACA,SAAA,CAAAI,CAAAA,CACA,MAAA,CAAAC,CACF,CACF,CAAC,CAAA,CACA,MAAA,CAAQN,CAAAA,EAAUA,CAAAA,CAAM,SAAA,CAAU,OAAA,GAAYA,CAAAA,CAAM,OAAO,CAAA,CAC3D,IAAA,CACC,CAACqB,CAAAA,CAAGC,CAAAA,GAAM,IAAI,IAAA,CAAKA,CAAAA,CAAE,OAAO,CAAA,CAAE,OAAA,EAAQ,CAAI,IAAI,IAAA,CAAKD,CAAAA,CAAE,OAAO,CAAA,CAAE,OAAA,EAChE,CACJ","file":"chunk-XQQ5MSOE.js","sourcesContent":["import { Entry, WaveEntry } from \"../types\";\nimport { getDiscussionsQueryOptions, SortOrder } from \"../queries/get-discussions-query-options\";\nimport { CONFIG } from \"@/modules/core\";\n\ntype EntryWithPostId = Entry & { post_id: number };\n\nfunction normalizeContainer(entry: EntryWithPostId, host: string): WaveEntry {\n return {\n ...entry,\n id: entry.id ?? entry.post_id,\n // The private-api waves feeds send the publish time as `timestamp`, not `created`.\n created: entry.created ?? (entry as unknown as { timestamp?: string }).timestamp,\n host\n } as WaveEntry;\n}\n\nfunction normalizeParent(entry: EntryWithPostId): Entry {\n return {\n ...entry,\n id: entry.id ?? entry.post_id\n } as Entry;\n}\n\nexport function normalizeWaveEntryFromApi(\n entry:\n | (Entry & { post_id: number; container?: EntryWithPostId | null; parent?: EntryWithPostId | null })\n | null\n | undefined,\n host: string\n): WaveEntry | null {\n if (!entry) {\n return null;\n }\n\n const containerSource = entry.container ?? entry;\n const container = normalizeContainer(containerSource, host);\n\n const parent = entry.parent ? normalizeParent(entry.parent) : undefined;\n\n return {\n ...entry,\n id: entry.id ?? entry.post_id,\n // The private-api waves feeds (following / tag / account) send the publish\n // time as `timestamp`, not `created`; map it so the relative time renders on\n // every card (the For You feed already carries a real `created` from Hive RPC).\n created: entry.created ?? (entry as unknown as { timestamp?: string }).timestamp,\n // The private-api waves feeds omit max_accepted_payout; default it (and the\n // payout strings) to the Hive shape so payout-rendering consumers run their\n // pending+author+curator summation instead of treating the value as missing.\n max_accepted_payout: entry.max_accepted_payout || \"1000000.000 HBD\",\n pending_payout_value: entry.pending_payout_value || \"0.000 HBD\",\n author_payout_value: entry.author_payout_value || \"0.000 HBD\",\n curator_payout_value: entry.curator_payout_value || \"0.000 HBD\",\n host,\n container,\n parent\n } as WaveEntry;\n}\n\nexport function toEntryArray(x: unknown): Entry[] {\n return Array.isArray(x) ? (x as Entry[]) : [];\n}\n\nexport async function getVisibleFirstLevelThreadItems(\n container: WaveEntry\n): Promise<Entry[]> {\n const queryOptions = getDiscussionsQueryOptions(container, SortOrder.created, true);\n const discussionItemsRaw = await CONFIG.queryClient.fetchQuery(queryOptions);\n const discussionItems = toEntryArray(discussionItemsRaw);\n\n if (discussionItems.length <= 1) {\n return [];\n }\n\n const firstLevelItems = discussionItems.filter(\n ({ parent_author, parent_permlink }) =>\n parent_author === container.author && parent_permlink === container.permlink\n );\n\n if (firstLevelItems.length === 0) {\n return [];\n }\n\n const visibleItems = firstLevelItems.filter((item) => !item.stats?.gray);\n\n return visibleItems;\n}\n\nexport function mapThreadItemsToWaveEntries(\n items: Entry[],\n container: WaveEntry,\n host: string\n): WaveEntry[] {\n if (items.length === 0) {\n return [];\n }\n\n return items\n .map((item) => {\n const parent = items.find(\n (i) =>\n i.author === item.parent_author &&\n i.permlink === item.parent_permlink &&\n i.author !== host\n );\n\n return {\n ...item,\n id: item.post_id,\n host,\n container,\n parent\n } as WaveEntry;\n })\n .filter((entry) => entry.container.post_id !== entry.post_id)\n .sort(\n (a, b) => new Date(b.created).getTime() - new Date(a.created).getTime()\n );\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {b}from'./chunk-UQ7TLT2E.js';import {c as c$1}from'./chunk-OMSXAN23.js';import {a}from'./chunk-WTHEQ3M5.js';import {queryOptions}from'@tanstack/react-query';function c(t,i,s){return queryOptions({queryKey:a.notifications.settings(t),queryFn:async()=>{let a=t+"-web";if(!i)throw new Error("Missing access token");let n=await fetch(c$1.privateApiHost+"/private-api/detail-device",{body:JSON.stringify({code:i,username:t,token:a}),method:"POST",headers:{"Content-Type":"application/json"}});if(!n.ok)throw new Error(`Failed to fetch notification settings: ${n.status}`);return n.json()},enabled:!!t&&!!i,refetchOnMount:false,initialData:()=>({status:0,system:"web",allows_notify:0,notify_types:s?[]:[...b]})})}export{c as a};//# sourceMappingURL=chunk-WEUPYCUL.js.map
2
- //# sourceMappingURL=chunk-WEUPYCUL.js.map
1
+ import {b}from'./chunk-UQ7TLT2E.js';import {c as c$1}from'./chunk-OMSXAN23.js';import {a}from'./chunk-CQOMDMT6.js';import {queryOptions}from'@tanstack/react-query';function c(t,i,s){return queryOptions({queryKey:a.notifications.settings(t),queryFn:async()=>{let a=t+"-web";if(!i)throw new Error("Missing access token");let n=await fetch(c$1.privateApiHost+"/private-api/detail-device",{body:JSON.stringify({code:i,username:t,token:a}),method:"POST",headers:{"Content-Type":"application/json"}});if(!n.ok)throw new Error(`Failed to fetch notification settings: ${n.status}`);return n.json()},enabled:!!t&&!!i,refetchOnMount:false,initialData:()=>({status:0,system:"web",allows_notify:0,notify_types:s?[]:[...b]})})}export{c as a};//# sourceMappingURL=chunk-XSDDOOC3.js.map
2
+ //# sourceMappingURL=chunk-XSDDOOC3.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/notifications/queries/get-notifications-settings-query-options.ts"],"names":["getNotificationsSettingsQueryOptions","activeUsername","code","initialMuted","queryOptions","QueryKeys","token","response","CONFIG","ALL_NOTIFY_TYPES"],"mappings":"oKAKO,SAASA,EACdC,CAAAA,CACAC,CAAAA,CACAC,CAAAA,CACA,CACA,OAAOC,YAAAA,CAAa,CAClB,QAAA,CAAUC,CAAAA,CAAU,aAAA,CAAc,QAAA,CAASJ,CAAc,CAAA,CACzD,QAAS,SAAY,CACnB,IAAIK,CAAAA,CAAQL,CAAAA,CAAiB,MAAA,CAC7B,GAAI,CAACC,CAAAA,CACH,MAAM,IAAI,KAAA,CAAM,sBAAsB,EAExC,IAAMK,CAAAA,CAAW,MAAM,KAAA,CACrBC,GAAAA,CAAO,cAAA,CAAiB,6BACxB,CACE,IAAA,CAAM,IAAA,CAAK,SAAA,CAAU,CACnB,IAAA,CAAAN,EACA,QAAA,CAAUD,CAAAA,CACV,KAAA,CAAAK,CACF,CAAC,CAAA,CACD,OAAQ,MAAA,CACR,OAAA,CAAS,CACP,cAAA,CAAgB,kBAClB,CACF,CACF,CAAA,CACA,GAAI,CAACC,CAAAA,CAAS,EAAA,CACZ,MAAM,IAAI,KAAA,CAAM,CAAA,uCAAA,EAA0CA,CAAAA,CAAS,MAAM,CAAA,CAAE,CAAA,CAE7E,OAAOA,CAAAA,CAAS,IAAA,EAClB,CAAA,CACA,OAAA,CAAS,CAAC,CAACN,CAAAA,EAAkB,CAAC,CAACC,CAAAA,CAC/B,cAAA,CAAgB,KAAA,CAChB,YAAa,KACJ,CACL,MAAA,CAAQ,CAAA,CACR,MAAA,CAAQ,KAAA,CACR,cAAe,CAAA,CACf,YAAA,CAAcC,CAAAA,CAAe,EAAC,CAAK,CAAC,GAAGM,CAAgB,CACzD,CAAA,CAEJ,CAAC,CACH","file":"chunk-WEUPYCUL.js","sourcesContent":["import { queryOptions } from \"@tanstack/react-query\";\nimport { ApiNotificationSetting } from \"../types\";\nimport { ALL_NOTIFY_TYPES } from \"../enums\";\nimport { CONFIG, QueryKeys } from \"@/modules/core\";\n\nexport function getNotificationsSettingsQueryOptions(\n activeUsername: string | undefined,\n code: string | undefined,\n initialMuted?: boolean\n) {\n return queryOptions({\n queryKey: QueryKeys.notifications.settings(activeUsername),\n queryFn: async () => {\n let token = activeUsername + \"-web\";\n if (!code) {\n throw new Error(\"Missing access token\");\n }\n const response = await fetch(\n CONFIG.privateApiHost + \"/private-api/detail-device\",\n {\n body: JSON.stringify({\n code,\n username: activeUsername,\n token,\n }),\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n }\n );\n if (!response.ok) {\n throw new Error(`Failed to fetch notification settings: ${response.status}`);\n }\n return response.json() as Promise<ApiNotificationSetting>;\n },\n enabled: !!activeUsername && !!code,\n refetchOnMount: false,\n initialData: () => {\n return {\n status: 0,\n system: \"web\",\n allows_notify: 0,\n notify_types: initialMuted ? [] : ([...ALL_NOTIFY_TYPES] as number[]),\n } as ApiNotificationSetting;\n },\n });\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/notifications/queries/get-notifications-settings-query-options.ts"],"names":["getNotificationsSettingsQueryOptions","activeUsername","code","initialMuted","queryOptions","QueryKeys","token","response","CONFIG","ALL_NOTIFY_TYPES"],"mappings":"oKAKO,SAASA,EACdC,CAAAA,CACAC,CAAAA,CACAC,CAAAA,CACA,CACA,OAAOC,YAAAA,CAAa,CAClB,QAAA,CAAUC,CAAAA,CAAU,aAAA,CAAc,QAAA,CAASJ,CAAc,CAAA,CACzD,QAAS,SAAY,CACnB,IAAIK,CAAAA,CAAQL,CAAAA,CAAiB,MAAA,CAC7B,GAAI,CAACC,CAAAA,CACH,MAAM,IAAI,KAAA,CAAM,sBAAsB,EAExC,IAAMK,CAAAA,CAAW,MAAM,KAAA,CACrBC,GAAAA,CAAO,cAAA,CAAiB,6BACxB,CACE,IAAA,CAAM,IAAA,CAAK,SAAA,CAAU,CACnB,IAAA,CAAAN,EACA,QAAA,CAAUD,CAAAA,CACV,KAAA,CAAAK,CACF,CAAC,CAAA,CACD,OAAQ,MAAA,CACR,OAAA,CAAS,CACP,cAAA,CAAgB,kBAClB,CACF,CACF,CAAA,CACA,GAAI,CAACC,CAAAA,CAAS,EAAA,CACZ,MAAM,IAAI,KAAA,CAAM,CAAA,uCAAA,EAA0CA,CAAAA,CAAS,MAAM,CAAA,CAAE,CAAA,CAE7E,OAAOA,CAAAA,CAAS,IAAA,EAClB,CAAA,CACA,OAAA,CAAS,CAAC,CAACN,CAAAA,EAAkB,CAAC,CAACC,CAAAA,CAC/B,cAAA,CAAgB,KAAA,CAChB,YAAa,KACJ,CACL,MAAA,CAAQ,CAAA,CACR,MAAA,CAAQ,KAAA,CACR,cAAe,CAAA,CACf,YAAA,CAAcC,CAAAA,CAAe,EAAC,CAAK,CAAC,GAAGM,CAAgB,CACzD,CAAA,CAEJ,CAAC,CACH","file":"chunk-XSDDOOC3.js","sourcesContent":["import { queryOptions } from \"@tanstack/react-query\";\nimport { ApiNotificationSetting } from \"../types\";\nimport { ALL_NOTIFY_TYPES } from \"../enums\";\nimport { CONFIG, QueryKeys } from \"@/modules/core\";\n\nexport function getNotificationsSettingsQueryOptions(\n activeUsername: string | undefined,\n code: string | undefined,\n initialMuted?: boolean\n) {\n return queryOptions({\n queryKey: QueryKeys.notifications.settings(activeUsername),\n queryFn: async () => {\n let token = activeUsername + \"-web\";\n if (!code) {\n throw new Error(\"Missing access token\");\n }\n const response = await fetch(\n CONFIG.privateApiHost + \"/private-api/detail-device\",\n {\n body: JSON.stringify({\n code,\n username: activeUsername,\n token,\n }),\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n }\n );\n if (!response.ok) {\n throw new Error(`Failed to fetch notification settings: ${response.status}`);\n }\n return response.json() as Promise<ApiNotificationSetting>;\n },\n enabled: !!activeUsername && !!code,\n refetchOnMount: false,\n initialData: () => {\n return {\n status: 0,\n system: \"web\",\n allows_notify: 0,\n notify_types: initialMuted ? [] : ([...ALL_NOTIFY_TYPES] as number[]),\n } as ApiNotificationSetting;\n },\n });\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {c}from'./chunk-32QJ72HH.js';import {a}from'./chunk-WTHEQ3M5.js';import {j}from'./chunk-RAWKN3XW.js';import {queryOptions}from'@tanstack/react-query';function A(e="post"){return queryOptions({queryKey:a.core.rewardFund(e),queryFn:()=>j("condenser_api.get_reward_fund",[e])})}var m=60*1e3;function tr(){return queryOptions({queryKey:a.core.dynamicProps(),refetchInterval:m,staleTime:m,queryFn:async({signal:e})=>{let[r,i,u,o,c$1]=await Promise.all([j("condenser_api.get_dynamic_global_properties",[],void 0,void 0,e),j("condenser_api.get_feed_history",[],void 0,void 0,e),j("condenser_api.get_chain_properties",[],void 0,void 0,e),j("condenser_api.get_reward_fund",["post"],void 0,void 0,e),j("database_api.get_hardfork_properties",{},void 0,void 0,e).catch(()=>({current_hardfork_version:"1.28.0",last_hardfork:28}))]),a=c(r.total_vesting_shares).amount,d=c(r.total_vesting_fund_hive).amount,_=0;Number.isFinite(a)&&a!==0&&Number.isFinite(d)&&(_=d/a*1e6);let p=c(i.current_median_history.base).amount,f=c(i.current_median_history.quote).amount,l=parseFloat(o.recent_claims),y=c(o.reward_balance).amount,h=Number(r.vote_power_reserve_rate??0),w=o.author_reward_curve??"linear",b=Number(o.content_constant??0),g=String(c$1.current_hardfork_version??"0.0.0"),P=Number(c$1.last_hardfork??0),v=r.hbd_print_rate,R=r.hbd_interest_rate,x=r.head_block_number,F=d,k=a,q=c(r.virtual_supply).amount,C=r.vesting_reward_percent||0,D=u.account_creation_fee;return {hivePerMVests:_,base:p,quote:f,fundRecentClaims:l,fundRewardBalance:y,votePowerReserveRate:h,authorRewardCurve:w,contentConstant:b,currentHardforkVersion:g,lastHardfork:P,hbdPrintRate:v,hbdInterestRate:R,headBlock:x,totalVestingFund:F,totalVestingShares:k,virtualSupply:q,vestingRewardPercent:C,accountCreationFee:D,raw:{globalDynamic:r,feedHistory:i,chainProps:u,rewardFund:o,hardforkProps:c$1}}}})}export{tr as a,A as b};//# sourceMappingURL=chunk-CWBPA5DT.js.map
2
- //# sourceMappingURL=chunk-CWBPA5DT.js.map
1
+ import {c}from'./chunk-32QJ72HH.js';import {a}from'./chunk-CQOMDMT6.js';import {j}from'./chunk-RAWKN3XW.js';import {queryOptions}from'@tanstack/react-query';function A(e="post"){return queryOptions({queryKey:a.core.rewardFund(e),queryFn:()=>j("condenser_api.get_reward_fund",[e])})}var m=60*1e3;function tr(){return queryOptions({queryKey:a.core.dynamicProps(),refetchInterval:m,staleTime:m,queryFn:async({signal:e})=>{let[r,i,u,o,c$1]=await Promise.all([j("condenser_api.get_dynamic_global_properties",[],void 0,void 0,e),j("condenser_api.get_feed_history",[],void 0,void 0,e),j("condenser_api.get_chain_properties",[],void 0,void 0,e),j("condenser_api.get_reward_fund",["post"],void 0,void 0,e),j("database_api.get_hardfork_properties",{},void 0,void 0,e).catch(()=>({current_hardfork_version:"1.28.0",last_hardfork:28}))]),a=c(r.total_vesting_shares).amount,d=c(r.total_vesting_fund_hive).amount,_=0;Number.isFinite(a)&&a!==0&&Number.isFinite(d)&&(_=d/a*1e6);let p=c(i.current_median_history.base).amount,f=c(i.current_median_history.quote).amount,l=parseFloat(o.recent_claims),y=c(o.reward_balance).amount,h=Number(r.vote_power_reserve_rate??0),w=o.author_reward_curve??"linear",b=Number(o.content_constant??0),g=String(c$1.current_hardfork_version??"0.0.0"),P=Number(c$1.last_hardfork??0),v=r.hbd_print_rate,R=r.hbd_interest_rate,x=r.head_block_number,F=d,k=a,q=c(r.virtual_supply).amount,C=r.vesting_reward_percent||0,D=u.account_creation_fee;return {hivePerMVests:_,base:p,quote:f,fundRecentClaims:l,fundRewardBalance:y,votePowerReserveRate:h,authorRewardCurve:w,contentConstant:b,currentHardforkVersion:g,lastHardfork:P,hbdPrintRate:v,hbdInterestRate:R,headBlock:x,totalVestingFund:F,totalVestingShares:k,virtualSupply:q,vestingRewardPercent:C,accountCreationFee:D,raw:{globalDynamic:r,feedHistory:i,chainProps:u,rewardFund:o,hardforkProps:c$1}}}})}export{tr as a,A as b};//# sourceMappingURL=chunk-XTZBOYHG.js.map
2
+ //# sourceMappingURL=chunk-XTZBOYHG.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/core/queries/get-reward-fund-query-options.ts","../../src/modules/core/queries/get-dynamic-props-query-options.ts"],"names":["getRewardFundQueryOptions","fundName","queryOptions","QueryKeys","callRPC","DYNAMIC_PROPS_REFRESH_MS","getDynamicPropsQueryOptions","signal","rawGlobalDynamic","rawFeedHistory","rawChainProps","rawRewardFund","rawHardforkProps","totalVestingSharesAmount","parseAsset","totalVestingFundAmount","hivePerMVests","base","quote","fundRecentClaims","fundRewardBalance","votePowerReserveRate","authorRewardCurve","contentConstant","currentHardforkVersion","lastHardfork","hbdPrintRate","hbdInterestRate","headBlock","totalVestingFund","totalVestingShares","virtualSupply","vestingRewardPercent","accountCreationFee"],"mappings":"6JAqBO,SAASA,CAAAA,CAA0BC,CAAAA,CAAW,MAAA,CAAQ,CAC3D,OAAOC,aAAa,CAClB,QAAA,CAAUC,CAAAA,CAAU,IAAA,CAAK,UAAA,CAAWF,CAAQ,CAAA,CAC5C,OAAA,CAAS,IACPG,CAAAA,CAAQ,+BAAA,CAAiC,CACvCH,CACF,CAAC,CACL,CAAC,CACH,CCrBA,IAAMI,CAAAA,CAA2B,EAAA,CAAK,GAAA,CAE/B,SAASC,EAAAA,EAA8B,CAC5C,OAAOJ,aAAa,CAClB,QAAA,CAAUC,CAAAA,CAAU,IAAA,CAAK,YAAA,EAAa,CACtC,eAAA,CAAiBE,CAAAA,CACjB,UAAWA,CAAAA,CACX,OAAA,CAAS,MAAO,CAAE,MAAA,CAAAE,CAAO,CAAA,GAA6B,CAGpD,GAAM,CAACC,CAAAA,CAAkBC,CAAAA,CAAgBC,CAAAA,CAAeC,CAAAA,CAAeC,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ACb,WAAYC,CAAAA,CACZ,UAAA,CAAYC,CAAAA,CACZ,aAAA,CAAeC,GACjB,CACF,CACF,CACF,CAAC,CACH","file":"chunk-CWBPA5DT.js","sourcesContent":["import { queryOptions } from \"@tanstack/react-query\";\nimport { QueryKeys } from \"@/modules/core\";\nimport { callRPC } from \"@/modules/core/hive-tx\";\n\nexport interface RewardFund {\n id: number;\n name: string;\n reward_balance: string;\n recent_claims: string;\n last_update: string;\n content_constant: string;\n percent_curation_rewards: number;\n percent_content_rewards: number;\n author_reward_curve: string;\n curation_reward_curve: string;\n}\n\n/**\n * Get reward fund information from the blockchain\n * @param fundName - Name of the reward fund (default: 'post')\n */\nexport function getRewardFundQueryOptions(fundName = \"post\") {\n return queryOptions({\n queryKey: QueryKeys.core.rewardFund(fundName),\n queryFn: () =>\n callRPC(\"condenser_api.get_reward_fund\", [\n fundName,\n ]) as Promise<RewardFund>,\n });\n}\n","import { queryOptions } from \"@tanstack/react-query\";\nimport { DynamicProps } from \"../types\";\nimport { parseAsset } from \"../utils\";\nimport { QueryKeys } from \"@/modules/core\";\nimport { callRPC } from \"@/modules/core/hive-tx\";\n\n// This query powers wallet/HP/reward math that should stay close to chain state.\n// Keep a short refresh cadence despite the 5 RPC calls.\nconst DYNAMIC_PROPS_REFRESH_MS = 60 * 1000;\n\nexport function getDynamicPropsQueryOptions() {\n return queryOptions({\n queryKey: QueryKeys.core.dynamicProps(),\n refetchInterval: DYNAMIC_PROPS_REFRESH_MS,\n staleTime: DYNAMIC_PROPS_REFRESH_MS,\n queryFn: async ({ signal }): Promise<DynamicProps> => {\n // Get raw blockchain data — all five calls are independent, run in parallel.\n // Hardfork properties is wrapped with catch since not all nodes support it.\n const [rawGlobalDynamic, rawFeedHistory, rawChainProps, rawRewardFund, rawHardforkProps] = await Promise.all([\n callRPC(\"condenser_api.get_dynamic_global_properties\", [], undefined, undefined, signal),\n callRPC(\"condenser_api.get_feed_history\", [], undefined, undefined, signal),\n callRPC(\"condenser_api.get_chain_properties\", [], undefined, undefined, signal),\n callRPC(\"condenser_api.get_reward_fund\", [\"post\"], undefined, undefined, signal),\n callRPC(\"database_api.get_hardfork_properties\", {}, undefined, undefined, signal)\n .catch(() => ({ current_hardfork_version: \"1.28.0\", last_hardfork: 28 })),\n ]) as [any, any, any, any, any];\n\n // Calculate derived values for backward compatibility\n // parseAsset handles both string format (\"200905388484 HIVE\") and NAI format ({ amount, nai, precision })\n const totalVestingSharesAmount = parseAsset(rawGlobalDynamic.total_vesting_shares).amount;\n const totalVestingFundAmount = parseAsset(rawGlobalDynamic.total_vesting_fund_hive).amount;\n\n // Guard against division by zero/NaN/Infinity\n let hivePerMVests = 0;\n if (\n Number.isFinite(totalVestingSharesAmount) &&\n totalVestingSharesAmount !== 0 &&\n Number.isFinite(totalVestingFundAmount)\n ) {\n hivePerMVests = (totalVestingFundAmount / totalVestingSharesAmount) * 1e6;\n }\n const base = parseAsset(rawFeedHistory.current_median_history.base).amount;\n const quote = parseAsset(rawFeedHistory.current_median_history.quote).amount;\n const fundRecentClaims = parseFloat(rawRewardFund.recent_claims);\n const fundRewardBalance = parseAsset(rawRewardFund.reward_balance).amount;\n const votePowerReserveRate = Number(rawGlobalDynamic.vote_power_reserve_rate ?? 0);\n const authorRewardCurve = rawRewardFund.author_reward_curve ?? \"linear\";\n const contentConstant = Number(rawRewardFund.content_constant ?? 0);\n const currentHardforkVersion = String(rawHardforkProps.current_hardfork_version ?? \"0.0.0\");\n const lastHardfork = Number(rawHardforkProps.last_hardfork ?? 0);\n const hbdPrintRate = rawGlobalDynamic.hbd_print_rate;\n const hbdInterestRate = rawGlobalDynamic.hbd_interest_rate;\n const headBlock = rawGlobalDynamic.head_block_number;\n const totalVestingFund = totalVestingFundAmount;\n const totalVestingShares = totalVestingSharesAmount;\n const virtualSupply = parseAsset(rawGlobalDynamic.virtual_supply).amount;\n const vestingRewardPercent = rawGlobalDynamic.vesting_reward_percent || 0;\n const accountCreationFee = rawChainProps.account_creation_fee;\n\n return {\n // Backward compatible transformed fields (camelCase, parsed)\n hivePerMVests,\n base,\n quote,\n fundRecentClaims,\n fundRewardBalance,\n votePowerReserveRate,\n authorRewardCurve,\n contentConstant,\n currentHardforkVersion,\n lastHardfork,\n hbdPrintRate,\n hbdInterestRate,\n headBlock,\n totalVestingFund,\n totalVestingShares,\n virtualSupply,\n vestingRewardPercent,\n accountCreationFee,\n\n // Raw blockchain data (snake_case, unparsed) for direct use\n // Includes ALL fields from the blockchain responses\n raw: {\n globalDynamic: rawGlobalDynamic,\n feedHistory: rawFeedHistory,\n chainProps: rawChainProps,\n rewardFund: rawRewardFund,\n hardforkProps: rawHardforkProps,\n },\n } as DynamicProps;\n },\n });\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/core/queries/get-reward-fund-query-options.ts","../../src/modules/core/queries/get-dynamic-props-query-options.ts"],"names":["getRewardFundQueryOptions","fundName","queryOptions","QueryKeys","callRPC","DYNAMIC_PROPS_REFRESH_MS","getDynamicPropsQueryOptions","signal","rawGlobalDynamic","rawFeedHistory","rawChainProps","rawRewardFund","rawHardforkProps","totalVestingSharesAmount","parseAsset","totalVestingFundAmount","hivePerMVests","base","quote","fundRecentClaims","fundRewardBalance","votePowerReserveRate","authorRewardCurve","contentConstant","currentHardforkVersion","lastHardfork","hbdPrintRate","hbdInterestRate","headBlock","totalVestingFund","totalVestingShares","virtualSupply","vestingRewardPercent","accountCreationFee"],"mappings":"6JAqBO,SAASA,CAAAA,CAA0BC,CAAAA,CAAW,MAAA,CAAQ,CAC3D,OAAOC,aAAa,CAClB,QAAA,CAAUC,CAAAA,CAAU,IAAA,CAAK,UAAA,CAAWF,CAAQ,CAAA,CAC5C,OAAA,CAAS,IACPG,CAAAA,CAAQ,+BAAA,CAAiC,CACvCH,CACF,CAAC,CACL,CAAC,CACH,CCrBA,IAAMI,CAAAA,CAA2B,EAAA,CAAK,GAAA,CAE/B,SAASC,EAAAA,EAA8B,CAC5C,OAAOJ,aAAa,CAClB,QAAA,CAAUC,CAAA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,CAAAA,CACA,UAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,kBAAA,CAAAC,CAAAA,CACA,aAAA,CAAAC,CAAAA,CACA,oBAAA,CAAAC,EACA,kBAAA,CAAAC,CAAAA,CAIA,GAAA,CAAK,CACH,aAAA,CAAezB,CAAAA,CACf,WAAA,CAAaC,CAAAA,CACb,WAAYC,CAAAA,CACZ,UAAA,CAAYC,CAAAA,CACZ,aAAA,CAAeC,GACjB,CACF,CACF,CACF,CAAC,CACH","file":"chunk-XTZBOYHG.js","sourcesContent":["import { queryOptions } from \"@tanstack/react-query\";\nimport { QueryKeys } from \"@/modules/core\";\nimport { callRPC } from \"@/modules/core/hive-tx\";\n\nexport interface RewardFund {\n id: number;\n name: string;\n reward_balance: string;\n recent_claims: string;\n last_update: string;\n content_constant: string;\n percent_curation_rewards: number;\n percent_content_rewards: number;\n author_reward_curve: string;\n curation_reward_curve: string;\n}\n\n/**\n * Get reward fund information from the blockchain\n * @param fundName - Name of the reward fund (default: 'post')\n */\nexport function getRewardFundQueryOptions(fundName = \"post\") {\n return queryOptions({\n queryKey: QueryKeys.core.rewardFund(fundName),\n queryFn: () =>\n callRPC(\"condenser_api.get_reward_fund\", [\n fundName,\n ]) as Promise<RewardFund>,\n });\n}\n","import { queryOptions } from \"@tanstack/react-query\";\nimport { DynamicProps } from \"../types\";\nimport { parseAsset } from \"../utils\";\nimport { QueryKeys } from \"@/modules/core\";\nimport { callRPC } from \"@/modules/core/hive-tx\";\n\n// This query powers wallet/HP/reward math that should stay close to chain state.\n// Keep a short refresh cadence despite the 5 RPC calls.\nconst DYNAMIC_PROPS_REFRESH_MS = 60 * 1000;\n\nexport function getDynamicPropsQueryOptions() {\n return queryOptions({\n queryKey: QueryKeys.core.dynamicProps(),\n refetchInterval: DYNAMIC_PROPS_REFRESH_MS,\n staleTime: DYNAMIC_PROPS_REFRESH_MS,\n queryFn: async ({ signal }): Promise<DynamicProps> => {\n // Get raw blockchain data — all five calls are independent, run in parallel.\n // Hardfork properties is wrapped with catch since not all nodes support it.\n const [rawGlobalDynamic, rawFeedHistory, rawChainProps, rawRewardFund, rawHardforkProps] = await Promise.all([\n callRPC(\"condenser_api.get_dynamic_global_properties\", [], undefined, undefined, signal),\n callRPC(\"condenser_api.get_feed_history\", [], undefined, undefined, signal),\n callRPC(\"condenser_api.get_chain_properties\", [], undefined, undefined, signal),\n callRPC(\"condenser_api.get_reward_fund\", [\"post\"], undefined, undefined, signal),\n callRPC(\"database_api.get_hardfork_properties\", {}, undefined, undefined, signal)\n .catch(() => ({ current_hardfork_version: \"1.28.0\", last_hardfork: 28 })),\n ]) as [any, any, any, any, any];\n\n // Calculate derived values for backward compatibility\n // parseAsset handles both string format (\"200905388484 HIVE\") and NAI format ({ amount, nai, precision })\n const totalVestingSharesAmount = parseAsset(rawGlobalDynamic.total_vesting_shares).amount;\n const totalVestingFundAmount = parseAsset(rawGlobalDynamic.total_vesting_fund_hive).amount;\n\n // Guard against division by zero/NaN/Infinity\n let hivePerMVests = 0;\n if (\n Number.isFinite(totalVestingSharesAmount) &&\n totalVestingSharesAmount !== 0 &&\n Number.isFinite(totalVestingFundAmount)\n ) {\n hivePerMVests = (totalVestingFundAmount / totalVestingSharesAmount) * 1e6;\n }\n const base = parseAsset(rawFeedHistory.current_median_history.base).amount;\n const quote = parseAsset(rawFeedHistory.current_median_history.quote).amount;\n const fundRecentClaims = parseFloat(rawRewardFund.recent_claims);\n const fundRewardBalance = parseAsset(rawRewardFund.reward_balance).amount;\n const votePowerReserveRate = Number(rawGlobalDynamic.vote_power_reserve_rate ?? 0);\n const authorRewardCurve = rawRewardFund.author_reward_curve ?? \"linear\";\n const contentConstant = Number(rawRewardFund.content_constant ?? 0);\n const currentHardforkVersion = String(rawHardforkProps.current_hardfork_version ?? \"0.0.0\");\n const lastHardfork = Number(rawHardforkProps.last_hardfork ?? 0);\n const hbdPrintRate = rawGlobalDynamic.hbd_print_rate;\n const hbdInterestRate = rawGlobalDynamic.hbd_interest_rate;\n const headBlock = rawGlobalDynamic.head_block_number;\n const totalVestingFund = totalVestingFundAmount;\n const totalVestingShares = totalVestingSharesAmount;\n const virtualSupply = parseAsset(rawGlobalDynamic.virtual_supply).amount;\n const vestingRewardPercent = rawGlobalDynamic.vesting_reward_percent || 0;\n const accountCreationFee = rawChainProps.account_creation_fee;\n\n return {\n // Backward compatible transformed fields (camelCase, parsed)\n hivePerMVests,\n base,\n quote,\n fundRecentClaims,\n fundRewardBalance,\n votePowerReserveRate,\n authorRewardCurve,\n contentConstant,\n currentHardforkVersion,\n lastHardfork,\n hbdPrintRate,\n hbdInterestRate,\n headBlock,\n totalVestingFund,\n totalVestingShares,\n virtualSupply,\n vestingRewardPercent,\n accountCreationFee,\n\n // Raw blockchain data (snake_case, unparsed) for direct use\n // Includes ALL fields from the blockchain responses\n raw: {\n globalDynamic: rawGlobalDynamic,\n feedHistory: rawFeedHistory,\n chainProps: rawChainProps,\n rewardFund: rawRewardFund,\n hardforkProps: rawHardforkProps,\n },\n } as DynamicProps;\n },\n });\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {a}from'./chunk-WTHEQ3M5.js';import {l}from'./chunk-RAWKN3XW.js';import {infiniteQueryOptions}from'@tanstack/react-query';function f(n,t="HIVE",a$1=200){return infiniteQueryOptions({queryKey:a.wallet.balanceHistory(n??"",t,a$1),initialPageParam:null,queryFn:async({pageParam:e,signal:r})=>{if(!n)return {entries:[],currentPage:0};let i={"account-name":n,"coin-type":t,"page-size":a$1,direction:"desc"};e!==null&&(i.page=e);let o=await l("balance","/accounts/{account-name}/balance-history",i,void 0,void 0,r);return {entries:o.operations_result,currentPage:e??o.total_pages}},getNextPageParam:e=>{let r=e.currentPage-1;return r>=1?r:void 0},enabled:!!n})}export{f as a};//# sourceMappingURL=chunk-NSTN6NK7.js.map
2
- //# sourceMappingURL=chunk-NSTN6NK7.js.map
1
+ import {a}from'./chunk-CQOMDMT6.js';import {l}from'./chunk-RAWKN3XW.js';import {infiniteQueryOptions}from'@tanstack/react-query';function f(n,t="HIVE",a$1=200){return infiniteQueryOptions({queryKey:a.wallet.balanceHistory(n??"",t,a$1),initialPageParam:null,queryFn:async({pageParam:e,signal:r})=>{if(!n)return {entries:[],currentPage:0};let i={"account-name":n,"coin-type":t,"page-size":a$1,direction:"desc"};e!==null&&(i.page=e);let o=await l("balance","/accounts/{account-name}/balance-history",i,void 0,void 0,r);return {entries:o.operations_result,currentPage:e??o.total_pages}},getNextPageParam:e=>{let r=e.currentPage-1;return r>=1?r:void 0},enabled:!!n})}export{f as a};//# sourceMappingURL=chunk-XWIY4F37.js.map
2
+ //# sourceMappingURL=chunk-XWIY4F37.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/accounts/queries/get-balance-history-query-options.ts"],"names":["getBalanceHistoryInfiniteQueryOptions","username","coinType","pageSize","infiniteQueryOptions","QueryKeys","pageParam","signal","params","response","callREST","lastPage","nextPage"],"mappings":"iIAiCO,SAASA,EACdC,CAAAA,CACAC,CAAAA,CAA4B,MAAA,CAC5BC,GAAAA,CAAW,GAAA,CACX,CACA,OAAOC,oBAAAA,CAML,CACA,SAAUC,CAAAA,CAAU,MAAA,CAAO,eACzBJ,CAAAA,EAAY,EAAA,CACZC,CAAAA,CACAC,GACF,CAAA,CACA,gBAAA,CAAkB,KAElB,OAAA,CAAS,MAAO,CAAE,SAAA,CAAAG,CAAAA,CAAW,OAAAC,CAAO,CAAA,GAAM,CACxC,GAAI,CAACN,CAAAA,CACH,OAAO,CAAE,OAAA,CAAS,EAAC,CAAG,WAAA,CAAa,CAAE,EAGvC,IAAMO,CAAAA,CAA0C,CAC9C,cAAA,CAAgBP,CAAAA,CAChB,WAAA,CAAaC,EACb,WAAA,CAAaC,GAAAA,CACb,UAAW,MACb,CAAA,CAIIG,IAAc,IAAA,GAChBE,CAAAA,CAAO,IAAA,CAAOF,CAAAA,CAAAA,CAGhB,IAAMG,CAAAA,CAAY,MAAMC,CAAAA,CACtB,SAAA,CACA,0CAAA,CACAF,CAAAA,CACA,MAAA,CACA,MAAA,CACAD,CACF,CAAA,CAEA,OAAO,CACL,OAAA,CAASE,CAAAA,CAAS,iBAAA,CAClB,YAAaH,CAAAA,EAAaG,CAAAA,CAAS,WACrC,CACF,CAAA,CAEA,iBAAmBE,CAAAA,EAAa,CAE9B,IAAMC,CAAAA,CAAWD,CAAAA,CAAS,WAAA,CAAc,EACxC,OAAOC,CAAAA,EAAY,CAAA,CAAIA,CAAAA,CAAW,MACpC,CAAA,CAEA,QAAS,CAAC,CAACX,CACb,CAAC,CACH","file":"chunk-NSTN6NK7.js","sourcesContent":["import { InfiniteData, infiniteQueryOptions } from \"@tanstack/react-query\";\nimport { QueryKeys } from \"@/modules/core\";\nimport { callREST } from \"@/modules/core/hive-tx\";\nimport type {\n BalanceCoinType,\n BalanceHistoryEntry,\n BalanceHistoryResponse,\n} from \"../types\";\n\ninterface BalanceHistoryPage {\n entries: BalanceHistoryEntry[];\n currentPage: number;\n}\n\n/**\n * Cursor for balance history pagination.\n * null = first request (returns the newest page).\n * number = specific page to fetch (decrementing for older data).\n */\ntype BalanceHistoryCursor = number | null;\n\n/**\n * Get balance history for an account with pagination, newest first.\n * Uses the balance-api REST endpoint with direction=desc.\n *\n * Pagination: first call omits `page` to get the newest data.\n * The response includes `total_pages` so we know the current page number.\n * Subsequent calls decrement the page number to load older data.\n *\n * @param username - Account name\n * @param coinType - HIVE, HBD, or VESTS\n * @param pageSize - Number of entries per page\n */\nexport function getBalanceHistoryInfiniteQueryOptions(\n username?: string,\n coinType: BalanceCoinType = \"HIVE\",\n pageSize = 200\n) {\n return infiniteQueryOptions<\n BalanceHistoryPage,\n Error,\n InfiniteData<BalanceHistoryPage, BalanceHistoryCursor>,\n (string | number)[],\n BalanceHistoryCursor\n >({\n queryKey: QueryKeys.wallet.balanceHistory(\n username ?? \"\",\n coinType,\n pageSize\n ),\n initialPageParam: null as BalanceHistoryCursor,\n\n queryFn: async ({ pageParam, signal }) => {\n if (!username) {\n return { entries: [], currentPage: 0 };\n }\n\n const params: Record<string, string | number> = {\n \"account-name\": username,\n \"coin-type\": coinType,\n \"page-size\": pageSize,\n direction: \"desc\",\n };\n\n // First call: omit page to get newest data\n // Subsequent calls: pass specific page number\n if (pageParam !== null) {\n params.page = pageParam;\n }\n\n const response = (await callREST(\n \"balance\",\n \"/accounts/{account-name}/balance-history\",\n params,\n undefined,\n undefined,\n signal\n )) as BalanceHistoryResponse;\n\n return {\n entries: response.operations_result,\n currentPage: pageParam ?? response.total_pages,\n };\n },\n\n getNextPageParam: (lastPage) => {\n // Decrement page to go further back in time\n const nextPage = lastPage.currentPage - 1;\n return nextPage >= 1 ? nextPage : undefined;\n },\n\n enabled: !!username,\n });\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/accounts/queries/get-balance-history-query-options.ts"],"names":["getBalanceHistoryInfiniteQueryOptions","username","coinType","pageSize","infiniteQueryOptions","QueryKeys","pageParam","signal","params","response","callREST","lastPage","nextPage"],"mappings":"iIAiCO,SAASA,EACdC,CAAAA,CACAC,CAAAA,CAA4B,MAAA,CAC5BC,GAAAA,CAAW,GAAA,CACX,CACA,OAAOC,oBAAAA,CAML,CACA,SAAUC,CAAAA,CAAU,MAAA,CAAO,eACzBJ,CAAAA,EAAY,EAAA,CACZC,CAAAA,CACAC,GACF,CAAA,CACA,gBAAA,CAAkB,KAElB,OAAA,CAAS,MAAO,CAAE,SAAA,CAAAG,CAAAA,CAAW,OAAAC,CAAO,CAAA,GAAM,CACxC,GAAI,CAACN,CAAAA,CACH,OAAO,CAAE,OAAA,CAAS,EAAC,CAAG,WAAA,CAAa,CAAE,EAGvC,IAAMO,CAAAA,CAA0C,CAC9C,cAAA,CAAgBP,CAAAA,CAChB,WAAA,CAAaC,EACb,WAAA,CAAaC,GAAAA,CACb,UAAW,MACb,CAAA,CAIIG,IAAc,IAAA,GAChBE,CAAAA,CAAO,IAAA,CAAOF,CAAAA,CAAAA,CAGhB,IAAMG,CAAAA,CAAY,MAAMC,CAAAA,CACtB,SAAA,CACA,0CAAA,CACAF,CAAAA,CACA,MAAA,CACA,MAAA,CACAD,CACF,CAAA,CAEA,OAAO,CACL,OAAA,CAASE,CAAAA,CAAS,iBAAA,CAClB,YAAaH,CAAAA,EAAaG,CAAAA,CAAS,WACrC,CACF,CAAA,CAEA,iBAAmBE,CAAAA,EAAa,CAE9B,IAAMC,CAAAA,CAAWD,CAAAA,CAAS,WAAA,CAAc,EACxC,OAAOC,CAAAA,EAAY,CAAA,CAAIA,CAAAA,CAAW,MACpC,CAAA,CAEA,QAAS,CAAC,CAACX,CACb,CAAC,CACH","file":"chunk-XWIY4F37.js","sourcesContent":["import { InfiniteData, infiniteQueryOptions } from \"@tanstack/react-query\";\nimport { QueryKeys } from \"@/modules/core\";\nimport { callREST } from \"@/modules/core/hive-tx\";\nimport type {\n BalanceCoinType,\n BalanceHistoryEntry,\n BalanceHistoryResponse,\n} from \"../types\";\n\ninterface BalanceHistoryPage {\n entries: BalanceHistoryEntry[];\n currentPage: number;\n}\n\n/**\n * Cursor for balance history pagination.\n * null = first request (returns the newest page).\n * number = specific page to fetch (decrementing for older data).\n */\ntype BalanceHistoryCursor = number | null;\n\n/**\n * Get balance history for an account with pagination, newest first.\n * Uses the balance-api REST endpoint with direction=desc.\n *\n * Pagination: first call omits `page` to get the newest data.\n * The response includes `total_pages` so we know the current page number.\n * Subsequent calls decrement the page number to load older data.\n *\n * @param username - Account name\n * @param coinType - HIVE, HBD, or VESTS\n * @param pageSize - Number of entries per page\n */\nexport function getBalanceHistoryInfiniteQueryOptions(\n username?: string,\n coinType: BalanceCoinType = \"HIVE\",\n pageSize = 200\n) {\n return infiniteQueryOptions<\n BalanceHistoryPage,\n Error,\n InfiniteData<BalanceHistoryPage, BalanceHistoryCursor>,\n (string | number)[],\n BalanceHistoryCursor\n >({\n queryKey: QueryKeys.wallet.balanceHistory(\n username ?? \"\",\n coinType,\n pageSize\n ),\n initialPageParam: null as BalanceHistoryCursor,\n\n queryFn: async ({ pageParam, signal }) => {\n if (!username) {\n return { entries: [], currentPage: 0 };\n }\n\n const params: Record<string, string | number> = {\n \"account-name\": username,\n \"coin-type\": coinType,\n \"page-size\": pageSize,\n direction: \"desc\",\n };\n\n // First call: omit page to get newest data\n // Subsequent calls: pass specific page number\n if (pageParam !== null) {\n params.page = pageParam;\n }\n\n const response = (await callREST(\n \"balance\",\n \"/accounts/{account-name}/balance-history\",\n params,\n undefined,\n undefined,\n signal\n )) as BalanceHistoryResponse;\n\n return {\n entries: response.operations_result,\n currentPage: pageParam ?? response.total_pages,\n };\n },\n\n getNextPageParam: (lastPage) => {\n // Decrement page to go further back in time\n const nextPage = lastPage.currentPage - 1;\n return nextPage >= 1 ? nextPage : undefined;\n },\n\n enabled: !!username,\n });\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {b}from'./chunk-HU5GXRZC.js';import {a}from'./chunk-CQOMDMT6.js';import {j}from'./chunk-RAWKN3XW.js';import {queryOptions}from'@tanstack/react-query';function p(o,r=50){return queryOptions({queryKey:a.accounts.lookup(o,r),queryFn:async()=>b(o)?j("condenser_api.lookup_accounts",[o,r]):[],enabled:!!o,staleTime:1/0})}export{p as a};//# sourceMappingURL=chunk-XY6AFXAS.js.map
2
+ //# sourceMappingURL=chunk-XY6AFXAS.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/accounts/queries/lookup-accounts-query-options.ts"],"names":["lookupAccountsQueryOptions","query","limit","queryOptions","QueryKeys","isQueryableAccountName","callRPC"],"mappings":"6JAWO,SAASA,CAAAA,CAA2BC,CAAAA,CAAeC,EAAQ,EAAA,CAAI,CACpE,OAAOC,YAAAA,CAAa,CAClB,QAAA,CAAUC,CAAAA,CAAU,SAAS,MAAA,CAAOH,CAAAA,CAAOC,CAAK,CAAA,CAChD,OAAA,CAAS,SAKFG,CAAAA,CAAuBJ,CAAK,CAAA,CAI1BK,CAAAA,CAAQ,gCAAiC,CAC9CL,CAAAA,CACAC,CACF,CAAC,CAAA,CANQ,EAAC,CAQZ,QAAS,CAAC,CAACD,EACX,SAAA,CAAW,CAAA,CAAA,CACb,CAAC,CACH","file":"chunk-7FJQ2VAW.js","sourcesContent":["import { queryOptions } from \"@tanstack/react-query\";\nimport { QueryKeys } from \"@/modules/core\";\nimport { callRPC } from \"@/modules/core/hive-tx\";\nimport { isQueryableAccountName } from \"../utils/account-name-query\";\n\n/**\n * Lookup accounts by username prefix\n *\n * @param query - Username prefix to search for\n * @param limit - Maximum number of results (default: 50)\n */\nexport function lookupAccountsQueryOptions(query: string, limit = 50) {\n return queryOptions({\n queryKey: QueryKeys.accounts.lookup(query, limit),\n queryFn: async (): Promise<string[]> => {\n // `lower_bound_name` is an account_name_type, so a prefix the chain cannot\n // hold is an assert rather than an empty result. Callers feed this from raw\n // input (the editor's `@` autocomplete hands over whatever follows the `@`,\n // punctuation included), so answer \"nothing matches\" here instead.\n if (!isQueryableAccountName(query)) {\n return [];\n }\n\n return callRPC(\"condenser_api.lookup_accounts\", [\n query,\n limit,\n ]) as Promise<string[]>;\n },\n enabled: !!query,\n staleTime: Infinity,\n });\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/accounts/queries/lookup-accounts-query-options.ts"],"names":["lookupAccountsQueryOptions","query","limit","queryOptions","QueryKeys","isQueryableAccountName","callRPC"],"mappings":"6JAWO,SAASA,CAAAA,CAA2BC,CAAAA,CAAeC,EAAQ,EAAA,CAAI,CACpE,OAAOC,YAAAA,CAAa,CAClB,QAAA,CAAUC,CAAAA,CAAU,SAAS,MAAA,CAAOH,CAAAA,CAAOC,CAAK,CAAA,CAChD,OAAA,CAAS,SAKFG,CAAAA,CAAuBJ,CAAK,CAAA,CAI1BK,CAAAA,CAAQ,gCAAiC,CAC9CL,CAAAA,CACAC,CACF,CAAC,CAAA,CANQ,EAAC,CAQZ,QAAS,CAAC,CAACD,EACX,SAAA,CAAW,CAAA,CAAA,CACb,CAAC,CACH","file":"chunk-XY6AFXAS.js","sourcesContent":["import { queryOptions } from \"@tanstack/react-query\";\nimport { QueryKeys } from \"@/modules/core\";\nimport { callRPC } from \"@/modules/core/hive-tx\";\nimport { isQueryableAccountName } from \"../utils/account-name-query\";\n\n/**\n * Lookup accounts by username prefix\n *\n * @param query - Username prefix to search for\n * @param limit - Maximum number of results (default: 50)\n */\nexport function lookupAccountsQueryOptions(query: string, limit = 50) {\n return queryOptions({\n queryKey: QueryKeys.accounts.lookup(query, limit),\n queryFn: async (): Promise<string[]> => {\n // `lower_bound_name` is an account_name_type, so a prefix the chain cannot\n // hold is an assert rather than an empty result. Callers feed this from raw\n // input (the editor's `@` autocomplete hands over whatever follows the `@`,\n // punctuation included), so answer \"nothing matches\" here instead.\n if (!isQueryableAccountName(query)) {\n return [];\n }\n\n return callRPC(\"condenser_api.lookup_accounts\", [\n query,\n limit,\n ]) as Promise<string[]>;\n },\n enabled: !!query,\n staleTime: Infinity,\n });\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {f}from'./chunk-OBSTAXZB.js';import {b}from'./chunk-PFVWZI3W.js';import {a}from'./chunk-WTHEQ3M5.js';function c(s,o,y){return b(["communities","mutePost"],s,({community:i,author:t,permlink:r,notes:n,mute:e})=>[f(s,i,t,r,n,e)],async(i,t)=>{if(o?.adapter?.invalidateQueries){let r=[a.posts.entry(`/@${t.author}/${t.permlink}`),["community","single",t.community],{predicate:n=>{let e=n.queryKey;return Array.isArray(e)&&e[0]==="posts"&&e[1]==="posts-ranked"&&e[3]===t.community}}];await o.adapter.invalidateQueries(r);}},o,"posting",{broadcastMode:y??"sync"})}export{c as a};//# sourceMappingURL=chunk-R6UPSSYV.js.map
2
- //# sourceMappingURL=chunk-R6UPSSYV.js.map
1
+ import {f}from'./chunk-OBSTAXZB.js';import {b}from'./chunk-PFVWZI3W.js';import {a}from'./chunk-CQOMDMT6.js';function c(s,o,y){return b(["communities","mutePost"],s,({community:i,author:t,permlink:r,notes:n,mute:e})=>[f(s,i,t,r,n,e)],async(i,t)=>{if(o?.adapter?.invalidateQueries){let r=[a.posts.entry(`/@${t.author}/${t.permlink}`),["community","single",t.community],{predicate:n=>{let e=n.queryKey;return Array.isArray(e)&&e[0]==="posts"&&e[1]==="posts-ranked"&&e[3]===t.community}}];await o.adapter.invalidateQueries(r);}},o,"posting",{broadcastMode:y??"sync"})}export{c as a};//# sourceMappingURL=chunk-YCPIC6JF.js.map
2
+ //# sourceMappingURL=chunk-YCPIC6JF.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/communities/mutations/use-mute-post.ts"],"names":["useMutePost","username","auth","broadcastMode","useBroadcastMutation","community","author","permlink","notes","mute","buildMutePostOp","_result","variables","queriesToInvalidate","QueryKeys","query","key"],"mappings":"4GA+EO,SAASA,CAAAA,CACdC,CAAAA,CACAC,CAAAA,CACAC,CAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,aAAA,CAAe,UAAU,CAAA,CAC1BH,CAAAA,CACA,CAAC,CAAE,SAAA,CAAAI,CAAAA,CAAW,MAAA,CAAAC,CAAAA,CAAQ,QAAA,CAAAC,EAAU,KAAA,CAAAC,CAAAA,CAAO,IAAA,CAAAC,CAAK,CAAA,GAAM,CAChDC,EAAgBT,CAAAA,CAAWI,CAAAA,CAAWC,CAAAA,CAAQC,CAAAA,CAAUC,CAAAA,CAAOC,CAAI,CACrE,CAAA,CACA,MAAOE,CAAAA,CAAcC,CAAAA,GAAc,CAEjC,GAAIV,GAAM,OAAA,EAAS,iBAAA,CAAmB,CACpC,IAAMW,CAAAA,CAA6B,CAEjCC,EAAU,KAAA,CAAM,KAAA,CAAM,CAAA,EAAA,EAAKF,CAAAA,CAAU,MAAM,CAAA,CAAA,EAAIA,EAAU,QAAQ,CAAA,CAAE,CAAA,CAEnE,CAAC,WAAA,CAAa,QAAA,CAAUA,EAAU,SAAS,CAAA,CAE3C,CACE,SAAA,CAAYG,CAAAA,EAAe,CACzB,IAAMC,CAAAA,CAAMD,CAAAA,CAAM,QAAA,CAClB,OACE,KAAA,CAAM,OAAA,CAAQC,CAAG,CAAA,EACjBA,CAAAA,CAAI,CAAC,CAAA,GAAM,OAAA,EACXA,CAAAA,CAAI,CAAC,CAAA,GAAM,cAAA,EACXA,CAAAA,CAAI,CAAC,CAAA,GAAMJ,CAAAA,CAAU,SAEzB,CACF,CACF,CAAA,CACA,MAAMV,CAAAA,CAAK,OAAA,CAAQ,kBAAkBW,CAAmB,EAC1D,CACF,CAAA,CACAX,CAAAA,CACA,SAAA,CACA,CAAE,aAAA,CAAeC,CAAAA,EAAiB,MAAO,CAC3C,CACF","file":"chunk-R6UPSSYV.js","sourcesContent":["import { useBroadcastMutation, QueryKeys } from \"@/modules/core\";\nimport type { BroadcastMode } from \"@/modules/core\";\nimport { buildMutePostOp } from \"@/modules/operations/builders\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\n\n/**\n * Payload for muting/unmuting a post in a community.\n */\nexport interface MutePostPayload {\n /** Community name (e.g., \"hive-123456\") */\n community: string;\n /** Post author */\n author: string;\n /** Post permlink */\n permlink: string;\n /** Mute reason/notes (required even for unmute) */\n notes: string;\n /** True to mute, false to unmute */\n mute: boolean;\n}\n\n/**\n * React Query mutation hook for muting/unmuting posts in a community.\n *\n * This mutation broadcasts a custom_json operation to mute (or unmute)\n * a post within a community. Only community moderators/admins can mute posts.\n *\n * @param username - The username performing the mute (required for broadcast, must have permission)\n * @param auth - Authentication context with platform adapter and fallback configuration\n *\n * @returns React Query mutation result\n *\n * @remarks\n * **Post-Broadcast Actions:**\n * - Invalidates community posts cache to hide muted content\n * - Invalidates post cache to update mute status\n * - Invalidates feed cache to remove muted posts from feeds\n *\n * **Operation Details:**\n * - Uses custom_json operation with id \"community\"\n * - Action: [\"mutePost\", {\"community\": \"hive-123456\", \"account\": \"author\", \"permlink\": \"post\", \"notes\": \"reason\"}]\n * - Action (unmute): [\"unmutePost\", {\"community\": \"hive-123456\", \"account\": \"author\", \"permlink\": \"post\", \"notes\": \"reason\"}]\n * - Authority: Posting key\n *\n * **Mute vs Unmute:**\n * - mute: true - Mutes the post (hides from community feed)\n * - mute: false - Unmutes the post (restores to community feed)\n *\n * **Permission:**\n * - Only community moderators and admins can mute/unmute posts\n * - Attempting to mute without permission will fail with an error\n *\n * @example\n * ```typescript\n * const mutePostMutation = useMutePost(username, {\n * adapter: myAdapter,\n * enableFallback: true,\n * fallbackChain: ['keychain', 'key', 'hivesigner']\n * });\n *\n * // Mute a post\n * mutePostMutation.mutate({\n * community: 'hive-123456',\n * author: 'alice',\n * permlink: 'my-post',\n * notes: 'Violates community guidelines',\n * mute: true\n * });\n *\n * // Unmute a post\n * mutePostMutation.mutate({\n * community: 'hive-123456',\n * author: 'alice',\n * permlink: 'my-post',\n * notes: 'Resolved after editing',\n * mute: false\n * });\n * ```\n */\nexport function useMutePost(\n username: string | undefined,\n auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<MutePostPayload>(\n [\"communities\", \"mutePost\"],\n username,\n ({ community, author, permlink, notes, mute }) => [\n buildMutePostOp(username!, community, author, permlink, notes, mute)\n ],\n async (_result: any, variables) => {\n // Cache invalidation\n if (auth?.adapter?.invalidateQueries) {\n const queriesToInvalidate: any[] = [\n // Invalidate specific post cache to update mute status\n QueryKeys.posts.entry(`/@${variables.author}/${variables.permlink}`),\n // Invalidate community data\n [\"community\", \"single\", variables.community],\n // Invalidate community feed/posts (matches all sort orders, limits, observers)\n {\n predicate: (query: any) => {\n const key = query.queryKey;\n return (\n Array.isArray(key) &&\n key[0] === \"posts\" &&\n key[1] === \"posts-ranked\" &&\n key[3] === variables.community\n );\n }\n }\n ];\n await auth.adapter.invalidateQueries(queriesToInvalidate);\n }\n },\n auth,\n 'posting',\n { broadcastMode: broadcastMode ?? 'sync' }\n );\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/communities/mutations/use-mute-post.ts"],"names":["useMutePost","username","auth","broadcastMode","useBroadcastMutation","community","author","permlink","notes","mute","buildMutePostOp","_result","variables","queriesToInvalidate","QueryKeys","query","key"],"mappings":"4GA+EO,SAASA,CAAAA,CACdC,CAAAA,CACAC,CAAAA,CACAC,CAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,aAAA,CAAe,UAAU,CAAA,CAC1BH,CAAAA,CACA,CAAC,CAAE,SAAA,CAAAI,CAAAA,CAAW,MAAA,CAAAC,CAAAA,CAAQ,QAAA,CAAAC,EAAU,KAAA,CAAAC,CAAAA,CAAO,IAAA,CAAAC,CAAK,CAAA,GAAM,CAChDC,EAAgBT,CAAAA,CAAWI,CAAAA,CAAWC,CAAAA,CAAQC,CAAAA,CAAUC,CAAAA,CAAOC,CAAI,CACrE,CAAA,CACA,MAAOE,CAAAA,CAAcC,CAAAA,GAAc,CAEjC,GAAIV,GAAM,OAAA,EAAS,iBAAA,CAAmB,CACpC,IAAMW,CAAAA,CAA6B,CAEjCC,EAAU,KAAA,CAAM,KAAA,CAAM,CAAA,EAAA,EAAKF,CAAAA,CAAU,MAAM,CAAA,CAAA,EAAIA,EAAU,QAAQ,CAAA,CAAE,CAAA,CAEnE,CAAC,WAAA,CAAa,QAAA,CAAUA,EAAU,SAAS,CAAA,CAE3C,CACE,SAAA,CAAYG,CAAAA,EAAe,CACzB,IAAMC,CAAAA,CAAMD,CAAAA,CAAM,QAAA,CAClB,OACE,KAAA,CAAM,OAAA,CAAQC,CAAG,CAAA,EACjBA,CAAAA,CAAI,CAAC,CAAA,GAAM,OAAA,EACXA,CAAAA,CAAI,CAAC,CAAA,GAAM,cAAA,EACXA,CAAAA,CAAI,CAAC,CAAA,GAAMJ,CAAAA,CAAU,SAEzB,CACF,CACF,CAAA,CACA,MAAMV,CAAAA,CAAK,OAAA,CAAQ,kBAAkBW,CAAmB,EAC1D,CACF,CAAA,CACAX,CAAAA,CACA,SAAA,CACA,CAAE,aAAA,CAAeC,CAAAA,EAAiB,MAAO,CAC3C,CACF","file":"chunk-YCPIC6JF.js","sourcesContent":["import { useBroadcastMutation, QueryKeys } from \"@/modules/core\";\nimport type { BroadcastMode } from \"@/modules/core\";\nimport { buildMutePostOp } from \"@/modules/operations/builders\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\n\n/**\n * Payload for muting/unmuting a post in a community.\n */\nexport interface MutePostPayload {\n /** Community name (e.g., \"hive-123456\") */\n community: string;\n /** Post author */\n author: string;\n /** Post permlink */\n permlink: string;\n /** Mute reason/notes (required even for unmute) */\n notes: string;\n /** True to mute, false to unmute */\n mute: boolean;\n}\n\n/**\n * React Query mutation hook for muting/unmuting posts in a community.\n *\n * This mutation broadcasts a custom_json operation to mute (or unmute)\n * a post within a community. Only community moderators/admins can mute posts.\n *\n * @param username - The username performing the mute (required for broadcast, must have permission)\n * @param auth - Authentication context with platform adapter and fallback configuration\n *\n * @returns React Query mutation result\n *\n * @remarks\n * **Post-Broadcast Actions:**\n * - Invalidates community posts cache to hide muted content\n * - Invalidates post cache to update mute status\n * - Invalidates feed cache to remove muted posts from feeds\n *\n * **Operation Details:**\n * - Uses custom_json operation with id \"community\"\n * - Action: [\"mutePost\", {\"community\": \"hive-123456\", \"account\": \"author\", \"permlink\": \"post\", \"notes\": \"reason\"}]\n * - Action (unmute): [\"unmutePost\", {\"community\": \"hive-123456\", \"account\": \"author\", \"permlink\": \"post\", \"notes\": \"reason\"}]\n * - Authority: Posting key\n *\n * **Mute vs Unmute:**\n * - mute: true - Mutes the post (hides from community feed)\n * - mute: false - Unmutes the post (restores to community feed)\n *\n * **Permission:**\n * - Only community moderators and admins can mute/unmute posts\n * - Attempting to mute without permission will fail with an error\n *\n * @example\n * ```typescript\n * const mutePostMutation = useMutePost(username, {\n * adapter: myAdapter,\n * enableFallback: true,\n * fallbackChain: ['keychain', 'key', 'hivesigner']\n * });\n *\n * // Mute a post\n * mutePostMutation.mutate({\n * community: 'hive-123456',\n * author: 'alice',\n * permlink: 'my-post',\n * notes: 'Violates community guidelines',\n * mute: true\n * });\n *\n * // Unmute a post\n * mutePostMutation.mutate({\n * community: 'hive-123456',\n * author: 'alice',\n * permlink: 'my-post',\n * notes: 'Resolved after editing',\n * mute: false\n * });\n * ```\n */\nexport function useMutePost(\n username: string | undefined,\n auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<MutePostPayload>(\n [\"communities\", \"mutePost\"],\n username,\n ({ community, author, permlink, notes, mute }) => [\n buildMutePostOp(username!, community, author, permlink, notes, mute)\n ],\n async (_result: any, variables) => {\n // Cache invalidation\n if (auth?.adapter?.invalidateQueries) {\n const queriesToInvalidate: any[] = [\n // Invalidate specific post cache to update mute status\n QueryKeys.posts.entry(`/@${variables.author}/${variables.permlink}`),\n // Invalidate community data\n [\"community\", \"single\", variables.community],\n // Invalidate community feed/posts (matches all sort orders, limits, observers)\n {\n predicate: (query: any) => {\n const key = query.queryKey;\n return (\n Array.isArray(key) &&\n key[0] === \"posts\" &&\n key[1] === \"posts-ranked\" &&\n key[3] === variables.community\n );\n }\n }\n ];\n await auth.adapter.invalidateQueries(queriesToInvalidate);\n }\n },\n auth,\n 'posting',\n { broadcastMode: broadcastMode ?? 'sync' }\n );\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {p}from'./chunk-UKK6NLAT.js';import {b as b$1}from'./chunk-CNB64U7U.js';import {b}from'./chunk-PFVWZI3W.js';import {a}from'./chunk-WTHEQ3M5.js';function s(e,r,a$1){return b(["wallet","delegate-rc"],e,({to:c,maxRc:o})=>[p(e,c,o)],async(c,o)=>{await b$1(r?.adapter,a$1,[a.accounts.full(e),a.accounts.full(o.to),a.resourceCredits.account(e),a.resourceCredits.account(o.to)]);},r,"active",{broadcastMode:a$1})}export{s as a};//# sourceMappingURL=chunk-HAIUMSGN.js.map
2
- //# sourceMappingURL=chunk-HAIUMSGN.js.map
1
+ import {p}from'./chunk-UKK6NLAT.js';import {b as b$1}from'./chunk-CNB64U7U.js';import {b}from'./chunk-PFVWZI3W.js';import {a}from'./chunk-CQOMDMT6.js';function s(e,r,a$1){return b(["wallet","delegate-rc"],e,({to:c,maxRc:o})=>[p(e,c,o)],async(c,o)=>{await b$1(r?.adapter,a$1,[a.accounts.full(e),a.accounts.full(o.to),a.resourceCredits.account(e),a.resourceCredits.account(o.to)]);},r,"active",{broadcastMode:a$1})}export{s as a};//# sourceMappingURL=chunk-YEPSRKRA.js.map
2
+ //# sourceMappingURL=chunk-YEPSRKRA.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/wallet/mutations/use-delegate-rc.ts"],"names":["useDelegateRc","username","auth","broadcastMode","useBroadcastMutation","to","maxRc","buildDelegateRcOp","_result","variables","invalidateAfterBroadcast","QueryKeys"],"mappings":"uJAUO,SAASA,CAAAA,CACdC,CAAAA,CACAC,CAAAA,CACAC,GAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,QAAA,CAAU,aAAa,CAAA,CACxBH,CAAAA,CACA,CAAC,CAAE,EAAA,CAAAI,CAAAA,CAAI,KAAA,CAAAC,CAAM,CAAA,GAAM,CACjBC,CAAAA,CAAkBN,EAAWI,CAAAA,CAAIC,CAAK,CACxC,CAAA,CACA,MAAOE,CAAAA,CAASC,CAAAA,GAAc,CAC5B,MAAMC,GAAAA,CAAyBR,CAAAA,EAAM,OAAA,CAASC,GAAAA,CAAe,CAC3DQ,CAAAA,CAAU,QAAA,CAAS,IAAA,CAAKV,CAAQ,CAAA,CAChCU,CAAAA,CAAU,QAAA,CAAS,IAAA,CAAKF,CAAAA,CAAU,EAAE,CAAA,CACpCE,CAAAA,CAAU,gBAAgB,OAAA,CAAQV,CAAS,CAAA,CAC3CU,CAAAA,CAAU,eAAA,CAAgB,OAAA,CAAQF,CAAAA,CAAU,EAAE,CAChD,CAAC,EACH,CAAA,CACAP,CAAAA,CACA,QAAA,CACA,CAAE,aAAA,CAAAC,GAAc,CAClB,CACF","file":"chunk-HAIUMSGN.js","sourcesContent":["import { useBroadcastMutation, invalidateAfterBroadcast, QueryKeys } from \"@/modules/core\";\nimport type { BroadcastMode } from \"@/modules/core\";\nimport { buildDelegateRcOp } from \"@/modules/operations/builders\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\n\nexport interface DelegateRcPayload {\n to: string;\n maxRc: string | number;\n}\n\nexport function useDelegateRc(\n username: string | undefined,\n auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<DelegateRcPayload>(\n [\"wallet\", \"delegate-rc\"],\n username,\n ({ to, maxRc }) => [\n buildDelegateRcOp(username!, to, maxRc)\n ],\n async (_result, variables) => {\n await invalidateAfterBroadcast(auth?.adapter, broadcastMode, [\n QueryKeys.accounts.full(username),\n QueryKeys.accounts.full(variables.to),\n QueryKeys.resourceCredits.account(username!),\n QueryKeys.resourceCredits.account(variables.to),\n ]);\n },\n auth,\n 'active',\n { broadcastMode }\n );\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/wallet/mutations/use-delegate-rc.ts"],"names":["useDelegateRc","username","auth","broadcastMode","useBroadcastMutation","to","maxRc","buildDelegateRcOp","_result","variables","invalidateAfterBroadcast","QueryKeys"],"mappings":"uJAUO,SAASA,CAAAA,CACdC,CAAAA,CACAC,CAAAA,CACAC,GAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,QAAA,CAAU,aAAa,CAAA,CACxBH,CAAAA,CACA,CAAC,CAAE,EAAA,CAAAI,CAAAA,CAAI,KAAA,CAAAC,CAAM,CAAA,GAAM,CACjBC,CAAAA,CAAkBN,EAAWI,CAAAA,CAAIC,CAAK,CACxC,CAAA,CACA,MAAOE,CAAAA,CAASC,CAAAA,GAAc,CAC5B,MAAMC,GAAAA,CAAyBR,CAAAA,EAAM,OAAA,CAASC,GAAAA,CAAe,CAC3DQ,CAAAA,CAAU,QAAA,CAAS,IAAA,CAAKV,CAAQ,CAAA,CAChCU,CAAAA,CAAU,QAAA,CAAS,IAAA,CAAKF,CAAAA,CAAU,EAAE,CAAA,CACpCE,CAAAA,CAAU,gBAAgB,OAAA,CAAQV,CAAS,CAAA,CAC3CU,CAAAA,CAAU,eAAA,CAAgB,OAAA,CAAQF,CAAAA,CAAU,EAAE,CAChD,CAAC,EACH,CAAA,CACAP,CAAAA,CACA,QAAA,CACA,CAAE,aAAA,CAAAC,GAAc,CAClB,CACF","file":"chunk-YEPSRKRA.js","sourcesContent":["import { useBroadcastMutation, invalidateAfterBroadcast, QueryKeys } from \"@/modules/core\";\nimport type { BroadcastMode } from \"@/modules/core\";\nimport { buildDelegateRcOp } from \"@/modules/operations/builders\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\n\nexport interface DelegateRcPayload {\n to: string;\n maxRc: string | number;\n}\n\nexport function useDelegateRc(\n username: string | undefined,\n auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<DelegateRcPayload>(\n [\"wallet\", \"delegate-rc\"],\n username,\n ({ to, maxRc }) => [\n buildDelegateRcOp(username!, to, maxRc)\n ],\n async (_result, variables) => {\n await invalidateAfterBroadcast(auth?.adapter, broadcastMode, [\n QueryKeys.accounts.full(username),\n QueryKeys.accounts.full(variables.to),\n QueryKeys.resourceCredits.account(username!),\n QueryKeys.resourceCredits.account(variables.to),\n ]);\n },\n auth,\n 'active',\n { broadcastMode }\n );\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {b}from'./chunk-5E5OZMDZ.js';import {a}from'./chunk-F3FLSSBO.js';import {a as a$1}from'./chunk-WTHEQ3M5.js';import {j}from'./chunk-RAWKN3XW.js';import {queryOptions}from'@tanstack/react-query';function O(t,n,y="",e){let r=n?.trim(),a$2=`/@${t}/${r??""}`;return queryOptions({queryKey:a$1.posts.entry(a$2),queryFn:async()=>{if(!r||r==="undefined")return null;let i=await j("bridge.get_post",{author:t,permlink:r,observer:y});if(!i){let o=await a(t,r,y);if(!o)return null;let c=e!==void 0?{...o,num:e}:o;return b(c)}let u=e!==void 0?{...i,num:e}:i;return b(u)},enabled:!!t&&!!n&&n.trim()!==""&&n.trim()!=="undefined"})}export{O as a};//# sourceMappingURL=chunk-5PSFBLOC.js.map
2
- //# sourceMappingURL=chunk-5PSFBLOC.js.map
1
+ import {b}from'./chunk-5E5OZMDZ.js';import {a}from'./chunk-F3FLSSBO.js';import {a as a$1}from'./chunk-CQOMDMT6.js';import {j}from'./chunk-RAWKN3XW.js';import {queryOptions}from'@tanstack/react-query';function O(t,n,y="",e){let r=n?.trim(),a$2=`/@${t}/${r??""}`;return queryOptions({queryKey:a$1.posts.entry(a$2),queryFn:async()=>{if(!r||r==="undefined")return null;let i=await j("bridge.get_post",{author:t,permlink:r,observer:y});if(!i){let o=await a(t,r,y);if(!o)return null;let c=e!==void 0?{...o,num:e}:o;return b(c)}let u=e!==void 0?{...i,num:e}:i;return b(u)},enabled:!!t&&!!n&&n.trim()!==""&&n.trim()!=="undefined"})}export{O as a};//# sourceMappingURL=chunk-YFT2EUUG.js.map
2
+ //# sourceMappingURL=chunk-YFT2EUUG.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/posts/queries/get-post-query-options.ts"],"names":["getPostQueryOptions","author","permlink","observer","num","cleanPermlink","entryPath","queryOptions","QueryKeys","response","callRPC","verified","verifyPostOnAlternateNode","verifiedEntry","filterDmcaEntry","entry"],"mappings":"wMAOO,SAASA,CAAAA,CACdC,CAAAA,CACAC,CAAAA,CACAC,CAAAA,CAAW,EAAA,CACXC,CAAAA,CACA,CACA,IAAMC,CAAAA,CAAgBH,CAAAA,EAAU,IAAA,EAAK,CAC/BI,GAAAA,CAAY,CAAA,EAAA,EAAKL,CAAM,CAAA,CAAA,EAAII,CAAAA,EAAiB,EAAE,CAAA,CAAA,CAEpD,OAAOE,YAAAA,CAAa,CAClB,QAAA,CAAUC,GAAAA,CAAU,KAAA,CAAM,MAAMF,GAAS,CAAA,CACzC,OAAA,CAAS,SAAY,CACnB,GAAI,CAACD,CAAAA,EAAiBA,CAAAA,GAAkB,WAAA,CACtC,OAAO,IAAA,CAKT,IAAMI,CAAAA,CAAW,MAAMC,CAAAA,CAAQ,iBAAA,CAAmB,CAChD,MAAA,CAAAT,CAAAA,CACA,QAAA,CAAUI,CAAAA,CACV,QAAA,CAAAF,CACF,CAAC,CAAA,CAED,GAAI,CAACM,CAAAA,CAAU,CAGb,IAAME,CAAAA,CAAW,MAAMC,CAAAA,CAA0BX,CAAAA,CAAQI,CAAAA,CAAeF,CAAQ,CAAA,CAChF,GAAI,CAACQ,CAAAA,CACH,OAAO,IAAA,CAET,IAAME,CAAAA,CAAgBT,CAAAA,GAAQ,MAAA,CAAY,CAAE,GAAGO,CAAAA,CAAU,GAAA,CAAAP,CAAI,CAAA,CAAaO,CAAAA,CAC1E,OAAOG,CAAAA,CAAgBD,CAAa,CACtC,CAEA,IAAME,CAAAA,CAAQX,CAAAA,GAAQ,MAAA,CAAY,CAAE,GAAGK,CAAAA,CAAU,GAAA,CAAAL,CAAI,CAAA,CAAaK,CAAAA,CAClE,OAAOK,CAAAA,CAAgBC,CAAK,CAC9B,CAAA,CACA,OAAA,CACE,CAAC,CAACd,CAAAA,EACF,CAAC,CAACC,CAAAA,EACFA,CAAAA,CAAS,IAAA,EAAK,GAAM,EAAA,EACpBA,CAAAA,CAAS,IAAA,EAAK,GAAM,WACxB,CAAC,CACH","file":"chunk-5PSFBLOC.js","sourcesContent":["import { QueryKeys } from \"@/modules/core\";\nimport { queryOptions } from \"@tanstack/react-query\";\nimport { Entry } from \"../types\";\nimport { filterDmcaEntry } from \"../utils/filter-dmca-entries\";\nimport { verifyPostOnAlternateNode } from \"@/modules/bridge/verify-on-alternate-node\";\nimport { callRPC } from \"@/modules/core/hive-tx\";\n\nexport function getPostQueryOptions(\n author: string,\n permlink?: string,\n observer = \"\",\n num?: number\n) {\n const cleanPermlink = permlink?.trim();\n const entryPath = `/@${author}/${cleanPermlink ?? \"\"}`;\n\n return queryOptions({\n queryKey: QueryKeys.posts.entry(entryPath),\n queryFn: async () => {\n if (!cleanPermlink || cleanPermlink === \"undefined\") {\n return null;\n }\n\n // hive-tx tries nodes in order; the first healthy node (index 0) handles this call.\n // If it returns null, verifyPostOnAlternateNode skips index 0 and tries others.\n const response = await callRPC(\"bridge.get_post\", {\n author,\n permlink: cleanPermlink,\n observer,\n });\n\n if (!response) {\n // Primary node returned null — verify on alternate nodes\n // to guard against sync lag returning null for valid posts\n const verified = await verifyPostOnAlternateNode(author, cleanPermlink, observer);\n if (!verified) {\n return null;\n }\n const verifiedEntry = num !== undefined ? { ...verified, num } as Entry : verified as Entry;\n return filterDmcaEntry(verifiedEntry);\n }\n\n const entry = num !== undefined ? { ...response, num } as Entry : response as Entry;\n return filterDmcaEntry(entry);\n },\n enabled:\n !!author &&\n !!permlink &&\n permlink.trim() !== \"\" &&\n permlink.trim() !== \"undefined\",\n });\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/posts/queries/get-post-query-options.ts"],"names":["getPostQueryOptions","author","permlink","observer","num","cleanPermlink","entryPath","queryOptions","QueryKeys","response","callRPC","verified","verifyPostOnAlternateNode","verifiedEntry","filterDmcaEntry","entry"],"mappings":"wMAOO,SAASA,CAAAA,CACdC,CAAAA,CACAC,CAAAA,CACAC,CAAAA,CAAW,EAAA,CACXC,CAAAA,CACA,CACA,IAAMC,CAAAA,CAAgBH,CAAAA,EAAU,IAAA,EAAK,CAC/BI,GAAAA,CAAY,CAAA,EAAA,EAAKL,CAAM,CAAA,CAAA,EAAII,CAAAA,EAAiB,EAAE,CAAA,CAAA,CAEpD,OAAOE,YAAAA,CAAa,CAClB,QAAA,CAAUC,GAAAA,CAAU,KAAA,CAAM,MAAMF,GAAS,CAAA,CACzC,OAAA,CAAS,SAAY,CACnB,GAAI,CAACD,CAAAA,EAAiBA,CAAAA,GAAkB,WAAA,CACtC,OAAO,IAAA,CAKT,IAAMI,CAAAA,CAAW,MAAMC,CAAAA,CAAQ,iBAAA,CAAmB,CAChD,MAAA,CAAAT,CAAAA,CACA,QAAA,CAAUI,CAAAA,CACV,QAAA,CAAAF,CACF,CAAC,CAAA,CAED,GAAI,CAACM,CAAAA,CAAU,CAGb,IAAME,CAAAA,CAAW,MAAMC,CAAAA,CAA0BX,CAAAA,CAAQI,CAAAA,CAAeF,CAAQ,CAAA,CAChF,GAAI,CAACQ,CAAAA,CACH,OAAO,IAAA,CAET,IAAME,CAAAA,CAAgBT,CAAAA,GAAQ,MAAA,CAAY,CAAE,GAAGO,CAAAA,CAAU,GAAA,CAAAP,CAAI,CAAA,CAAaO,CAAAA,CAC1E,OAAOG,CAAAA,CAAgBD,CAAa,CACtC,CAEA,IAAME,CAAAA,CAAQX,CAAAA,GAAQ,MAAA,CAAY,CAAE,GAAGK,CAAAA,CAAU,GAAA,CAAAL,CAAI,CAAA,CAAaK,CAAAA,CAClE,OAAOK,CAAAA,CAAgBC,CAAK,CAC9B,CAAA,CACA,OAAA,CACE,CAAC,CAACd,CAAAA,EACF,CAAC,CAACC,CAAAA,EACFA,CAAAA,CAAS,IAAA,EAAK,GAAM,EAAA,EACpBA,CAAAA,CAAS,IAAA,EAAK,GAAM,WACxB,CAAC,CACH","file":"chunk-YFT2EUUG.js","sourcesContent":["import { QueryKeys } from \"@/modules/core\";\nimport { queryOptions } from \"@tanstack/react-query\";\nimport { Entry } from \"../types\";\nimport { filterDmcaEntry } from \"../utils/filter-dmca-entries\";\nimport { verifyPostOnAlternateNode } from \"@/modules/bridge/verify-on-alternate-node\";\nimport { callRPC } from \"@/modules/core/hive-tx\";\n\nexport function getPostQueryOptions(\n author: string,\n permlink?: string,\n observer = \"\",\n num?: number\n) {\n const cleanPermlink = permlink?.trim();\n const entryPath = `/@${author}/${cleanPermlink ?? \"\"}`;\n\n return queryOptions({\n queryKey: QueryKeys.posts.entry(entryPath),\n queryFn: async () => {\n if (!cleanPermlink || cleanPermlink === \"undefined\") {\n return null;\n }\n\n // hive-tx tries nodes in order; the first healthy node (index 0) handles this call.\n // If it returns null, verifyPostOnAlternateNode skips index 0 and tries others.\n const response = await callRPC(\"bridge.get_post\", {\n author,\n permlink: cleanPermlink,\n observer,\n });\n\n if (!response) {\n // Primary node returned null — verify on alternate nodes\n // to guard against sync lag returning null for valid posts\n const verified = await verifyPostOnAlternateNode(author, cleanPermlink, observer);\n if (!verified) {\n return null;\n }\n const verifiedEntry = num !== undefined ? { ...verified, num } as Entry : verified as Entry;\n return filterDmcaEntry(verifiedEntry);\n }\n\n const entry = num !== undefined ? { ...response, num } as Entry : response as Entry;\n return filterDmcaEntry(entry);\n },\n enabled:\n !!author &&\n !!permlink &&\n permlink.trim() !== \"\" &&\n permlink.trim() !== \"undefined\",\n });\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {b as b$1}from'./chunk-MJDVSN4Y.js';import {a}from'./chunk-U2UL57EH.js';import {a as a$1}from'./chunk-SEACJS36.js';import {b}from'./chunk-POHYQBLL.js';import {c}from'./chunk-OMSXAN23.js';import {useMutation}from'@tanstack/react-query';function K(r,n){return useMutation({mutationKey:["posts","add-fragment",r],mutationFn:async({title:s,body:i})=>{if(!n)throw new Error("[SDK][Posts] Missing access token");let t=await a$1()(c.privateApiHost+"/private-api/fragments-add",{method:"POST",body:JSON.stringify({code:n,title:s,body:i}),headers:{"Content-Type":"application/json"}});if(!t.ok)throw new Error(`[SDK][Posts] Failed to add fragment: ${t.status}`);return t.json()},onSuccess(s,i){let o=b(),t=b$1(s,i);o.setQueryData(a(r,n).queryKey,e=>[t,...e??[]]),o.setQueriesData({queryKey:["posts","fragments","infinite",r]},e=>e&&{...e,pages:e.pages.map((a,d)=>d===0?{...a,data:[t,...a.data]}:a)});}})}export{K as a};//# sourceMappingURL=chunk-VDU4E44M.js.map
2
- //# sourceMappingURL=chunk-VDU4E44M.js.map
1
+ import {b as b$1}from'./chunk-MJDVSN4Y.js';import {a}from'./chunk-CXQBH4UB.js';import {a as a$1}from'./chunk-SEACJS36.js';import {b}from'./chunk-POHYQBLL.js';import {c}from'./chunk-OMSXAN23.js';import {useMutation}from'@tanstack/react-query';function K(r,n){return useMutation({mutationKey:["posts","add-fragment",r],mutationFn:async({title:s,body:i})=>{if(!n)throw new Error("[SDK][Posts] Missing access token");let t=await a$1()(c.privateApiHost+"/private-api/fragments-add",{method:"POST",body:JSON.stringify({code:n,title:s,body:i}),headers:{"Content-Type":"application/json"}});if(!t.ok)throw new Error(`[SDK][Posts] Failed to add fragment: ${t.status}`);return t.json()},onSuccess(s,i){let o=b(),t=b$1(s,i);o.setQueryData(a(r,n).queryKey,e=>[t,...e??[]]),o.setQueriesData({queryKey:["posts","fragments","infinite",r]},e=>e&&{...e,pages:e.pages.map((a,d)=>d===0?{...a,data:[t,...a.data]}:a)});}})}export{K as a};//# sourceMappingURL=chunk-YI6XOITO.js.map
2
+ //# sourceMappingURL=chunk-YI6XOITO.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/posts/mutations/add-fragment.ts"],"names":["useAddFragment","username","code","useMutation","title","body","response","getBoundFetch","CONFIG","variables","queryClient","getQueryClient","newFragment","buildAddedFragment","getFragmentsQueryOptions","data","oldData","page","index"],"mappings":"kPAOO,SAASA,EAAeC,CAAAA,CAAkBC,CAAAA,CAA0B,CACzE,OAAOC,YAAY,CACjB,WAAA,CAAa,CAAC,OAAA,CAAS,eAAgBF,CAAQ,CAAA,CAC/C,UAAA,CAAY,MAAO,CAAE,KAAA,CAAAG,CAAAA,CAAO,IAAA,CAAAC,CAAK,IAAuC,CACtE,GAAI,CAACH,CAAAA,CACH,MAAM,IAAI,KAAA,CAAM,mCAAmC,CAAA,CAGrD,IAAMI,CAAAA,CAAW,MADAC,GAAAA,EAAc,CAE7BC,CAAAA,CAAO,cAAA,CAAiB,4BAAA,CACxB,CACE,OAAQ,MAAA,CACR,IAAA,CAAM,IAAA,CAAK,SAAA,CAAU,CACnB,IAAA,CAAAN,CAAAA,CACA,KAAA,CAAAE,CAAAA,CACA,KAAAC,CACF,CAAC,CAAA,CACD,OAAA,CAAS,CACP,cAAA,CAAgB,kBAClB,CACF,CACF,EAGA,GAAI,CAACC,CAAAA,CAAS,EAAA,CACZ,MAAM,IAAI,KAAA,CAAM,CAAA,qCAAA,EAAwCA,CAAAA,CAAS,MAAM,CAAA,CAAE,CAAA,CAE3E,OAAOA,CAAAA,CAAS,IAAA,EAClB,CAAA,CACA,SAAA,CAAUA,EAAUG,CAAAA,CAAW,CAC7B,IAAMC,CAAAA,CAAcC,GAAe,CAK7BC,CAAAA,CAAcC,GAAAA,CAAmBP,CAAAA,CAAUG,CAAS,CAAA,CAG1DC,CAAAA,CAAY,YAAA,CACVI,CAAAA,CAAyBb,EAAUC,CAAI,CAAA,CAAE,QAAA,CACxCa,CAAAA,EAAS,CAACH,CAAAA,CAAa,GAAIG,CAAAA,EAAQ,EAAG,CACzC,CAAA,CAGAL,CAAAA,CAAY,cAAA,CACV,CAAE,QAAA,CAAU,CAAC,OAAA,CAAS,WAAA,CAAa,UAAA,CAAYT,CAAQ,CAAE,CAAA,CACxDe,GACMA,CAAAA,EAEE,CACL,GAAGA,CAAAA,CACH,MAAOA,CAAAA,CAAQ,KAAA,CAAM,GAAA,CAAI,CAACC,EAAMC,CAAAA,GAC9BA,CAAAA,GAAU,CAAA,CACN,CAAE,GAAGD,CAAAA,CAAM,IAAA,CAAM,CAACL,CAAAA,CAAa,GAAGK,CAAAA,CAAK,IAAI,CAAE,CAAA,CAC7CA,CACN,CACF,CAEJ,EACF,CACF,CAAC,CACH","file":"chunk-VDU4E44M.js","sourcesContent":["import { CONFIG, getBoundFetch, getQueryClient } from \"@/modules/core\";\nimport { InfiniteData, useMutation } from \"@tanstack/react-query\";\nimport { Fragment } from \"../types\";\nimport { getFragmentsQueryOptions } from \"../queries\";\nimport { buildAddedFragment } from \"../utils/fragment-cache-helpers\";\nimport { WrappedResponse } from \"@/modules/core/types\";\n\nexport function useAddFragment(username: string, code: string | undefined) {\n return useMutation({\n mutationKey: [\"posts\", \"add-fragment\", username],\n mutationFn: async ({ title, body }: { title: string; body: string }) => {\n if (!code) {\n throw new Error(\"[SDK][Posts] Missing access token\");\n }\n const fetchApi = getBoundFetch();\n const response = await fetchApi(\n CONFIG.privateApiHost + \"/private-api/fragments-add\",\n {\n method: \"POST\",\n body: JSON.stringify({\n code,\n title,\n body,\n }),\n headers: {\n \"Content-Type\": \"application/json\",\n },\n }\n );\n // Raw fetch resolves on 4xx/5xx, so a JSON error response would otherwise run\n // onSuccess and insert a bogus fragment into the cache. Throw instead.\n if (!response.ok) {\n throw new Error(`[SDK][Posts] Failed to add fragment: ${response.status}`);\n }\n return response.json() as Promise<Fragment>;\n },\n onSuccess(response, variables) {\n const queryClient = getQueryClient();\n\n // Reaffirm the submitted title/body over the server acknowledgement so a\n // freshly added snippet never renders blank if the response omits them,\n // while keeping any server-provided id/timestamps.\n const newFragment = buildAddedFragment(response, variables);\n\n // Update regular query cache\n queryClient.setQueryData<Fragment[]>(\n getFragmentsQueryOptions(username, code).queryKey,\n (data) => [newFragment, ...(data ?? [])]\n );\n\n // Update infinite query cache - add new fragment to first page\n queryClient.setQueriesData<InfiniteData<WrappedResponse<Fragment>>>(\n { queryKey: [\"posts\", \"fragments\", \"infinite\", username] },\n (oldData) => {\n if (!oldData) return oldData;\n\n return {\n ...oldData,\n pages: oldData.pages.map((page, index) =>\n index === 0\n ? { ...page, data: [newFragment, ...page.data] }\n : page\n ),\n };\n }\n );\n },\n });\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/posts/mutations/add-fragment.ts"],"names":["useAddFragment","username","code","useMutation","title","body","response","getBoundFetch","CONFIG","variables","queryClient","getQueryClient","newFragment","buildAddedFragment","getFragmentsQueryOptions","data","oldData","page","index"],"mappings":"kPAOO,SAASA,EAAeC,CAAAA,CAAkBC,CAAAA,CAA0B,CACzE,OAAOC,YAAY,CACjB,WAAA,CAAa,CAAC,OAAA,CAAS,eAAgBF,CAAQ,CAAA,CAC/C,UAAA,CAAY,MAAO,CAAE,KAAA,CAAAG,CAAAA,CAAO,IAAA,CAAAC,CAAK,IAAuC,CACtE,GAAI,CAACH,CAAAA,CACH,MAAM,IAAI,KAAA,CAAM,mCAAmC,CAAA,CAGrD,IAAMI,CAAAA,CAAW,MADAC,GAAAA,EAAc,CAE7BC,CAAAA,CAAO,cAAA,CAAiB,4BAAA,CACxB,CACE,OAAQ,MAAA,CACR,IAAA,CAAM,IAAA,CAAK,SAAA,CAAU,CACnB,IAAA,CAAAN,CAAAA,CACA,KAAA,CAAAE,CAAAA,CACA,KAAAC,CACF,CAAC,CAAA,CACD,OAAA,CAAS,CACP,cAAA,CAAgB,kBAClB,CACF,CACF,EAGA,GAAI,CAACC,CAAAA,CAAS,EAAA,CACZ,MAAM,IAAI,KAAA,CAAM,CAAA,qCAAA,EAAwCA,CAAAA,CAAS,MAAM,CAAA,CAAE,CAAA,CAE3E,OAAOA,CAAAA,CAAS,IAAA,EAClB,CAAA,CACA,SAAA,CAAUA,EAAUG,CAAAA,CAAW,CAC7B,IAAMC,CAAAA,CAAcC,GAAe,CAK7BC,CAAAA,CAAcC,GAAAA,CAAmBP,CAAAA,CAAUG,CAAS,CAAA,CAG1DC,CAAAA,CAAY,YAAA,CACVI,CAAAA,CAAyBb,EAAUC,CAAI,CAAA,CAAE,QAAA,CACxCa,CAAAA,EAAS,CAACH,CAAAA,CAAa,GAAIG,CAAAA,EAAQ,EAAG,CACzC,CAAA,CAGAL,CAAAA,CAAY,cAAA,CACV,CAAE,QAAA,CAAU,CAAC,OAAA,CAAS,WAAA,CAAa,UAAA,CAAYT,CAAQ,CAAE,CAAA,CACxDe,GACMA,CAAAA,EAEE,CACL,GAAGA,CAAAA,CACH,MAAOA,CAAAA,CAAQ,KAAA,CAAM,GAAA,CAAI,CAACC,EAAMC,CAAAA,GAC9BA,CAAAA,GAAU,CAAA,CACN,CAAE,GAAGD,CAAAA,CAAM,IAAA,CAAM,CAACL,CAAAA,CAAa,GAAGK,CAAAA,CAAK,IAAI,CAAE,CAAA,CAC7CA,CACN,CACF,CAEJ,EACF,CACF,CAAC,CACH","file":"chunk-YI6XOITO.js","sourcesContent":["import { CONFIG, getBoundFetch, getQueryClient } from \"@/modules/core\";\nimport { InfiniteData, useMutation } from \"@tanstack/react-query\";\nimport { Fragment } from \"../types\";\nimport { getFragmentsQueryOptions } from \"../queries\";\nimport { buildAddedFragment } from \"../utils/fragment-cache-helpers\";\nimport { WrappedResponse } from \"@/modules/core/types\";\n\nexport function useAddFragment(username: string, code: string | undefined) {\n return useMutation({\n mutationKey: [\"posts\", \"add-fragment\", username],\n mutationFn: async ({ title, body }: { title: string; body: string }) => {\n if (!code) {\n throw new Error(\"[SDK][Posts] Missing access token\");\n }\n const fetchApi = getBoundFetch();\n const response = await fetchApi(\n CONFIG.privateApiHost + \"/private-api/fragments-add\",\n {\n method: \"POST\",\n body: JSON.stringify({\n code,\n title,\n body,\n }),\n headers: {\n \"Content-Type\": \"application/json\",\n },\n }\n );\n // Raw fetch resolves on 4xx/5xx, so a JSON error response would otherwise run\n // onSuccess and insert a bogus fragment into the cache. Throw instead.\n if (!response.ok) {\n throw new Error(`[SDK][Posts] Failed to add fragment: ${response.status}`);\n }\n return response.json() as Promise<Fragment>;\n },\n onSuccess(response, variables) {\n const queryClient = getQueryClient();\n\n // Reaffirm the submitted title/body over the server acknowledgement so a\n // freshly added snippet never renders blank if the response omits them,\n // while keeping any server-provided id/timestamps.\n const newFragment = buildAddedFragment(response, variables);\n\n // Update regular query cache\n queryClient.setQueryData<Fragment[]>(\n getFragmentsQueryOptions(username, code).queryKey,\n (data) => [newFragment, ...(data ?? [])]\n );\n\n // Update infinite query cache - add new fragment to first page\n queryClient.setQueriesData<InfiniteData<WrappedResponse<Fragment>>>(\n { queryKey: [\"posts\", \"fragments\", \"infinite\", username] },\n (oldData) => {\n if (!oldData) return oldData;\n\n return {\n ...oldData,\n pages: oldData.pages.map((page, index) =>\n index === 0\n ? { ...page, data: [newFragment, ...page.data] }\n : page\n ),\n };\n }\n );\n },\n });\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {a}from'./chunk-K3LA2I7M.js';import {b as b$1}from'./chunk-CNB64U7U.js';import {b}from'./chunk-PFVWZI3W.js';import {a as a$1}from'./chunk-WTHEQ3M5.js';function f(t,n,a$2){return b(["accounts","follow"],t,({following:r})=>[a(t,r)],async(r,l)=>{await b$1(n?.adapter,a$2,[a$1.accounts.relations(t,l.following),a$1.accounts.full(l.following),a$1.accounts.followCount(l.following),a$1.accounts.followCount(t)]);},n,"posting",{broadcastMode:a$2??"async"})}export{f as a};//# sourceMappingURL=chunk-VCYNR26T.js.map
2
- //# sourceMappingURL=chunk-VCYNR26T.js.map
1
+ import {a}from'./chunk-K3LA2I7M.js';import {b as b$1}from'./chunk-CNB64U7U.js';import {b}from'./chunk-PFVWZI3W.js';import {a as a$1}from'./chunk-CQOMDMT6.js';function f(t,n,a$2){return b(["accounts","follow"],t,({following:r})=>[a(t,r)],async(r,l)=>{await b$1(n?.adapter,a$2,[a$1.accounts.relations(t,l.following),a$1.accounts.full(l.following),a$1.accounts.followCount(l.following),a$1.accounts.followCount(t)]);},n,"posting",{broadcastMode:a$2??"async"})}export{f as a};//# sourceMappingURL=chunk-YWNPW6IV.js.map
2
+ //# sourceMappingURL=chunk-YWNPW6IV.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/accounts/mutations/use-follow.ts"],"names":["useFollow","username","auth","broadcastMode","useBroadcastMutation","following","buildFollowOp","_result","variables","invalidateAfterBroadcast","QueryKeys"],"mappings":"8JA2CO,SAASA,CAAAA,CACdC,CAAAA,CACAC,CAAAA,CACAC,GAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,UAAA,CAAY,QAAQ,CAAA,CACrBH,CAAAA,CACA,CAAC,CAAE,SAAA,CAAAI,CAAU,CAAA,GAAM,CACjBC,CAAAA,CAAcL,CAAAA,CAAWI,CAAS,CACpC,CAAA,CACA,MAAOE,CAAAA,CAAcC,CAAAA,GAAc,CAEjC,MAAMC,GAAAA,CAAyBP,CAAAA,EAAM,QAASC,GAAAA,CAAe,CAC3DO,GAAAA,CAAU,QAAA,CAAS,SAAA,CAAUT,CAAAA,CAAWO,CAAAA,CAAU,SAAS,EAC3DE,GAAAA,CAAU,QAAA,CAAS,IAAA,CAAKF,CAAAA,CAAU,SAAS,CAAA,CAC3CE,GAAAA,CAAU,QAAA,CAAS,YAAYF,CAAAA,CAAU,SAAS,CAAA,CAClDE,GAAAA,CAAU,QAAA,CAAS,WAAA,CAAYT,CAAS,CAC1C,CAAC,EACH,CAAA,CACAC,CAAAA,CACA,SAAA,CACA,CAAE,aAAA,CAAeC,GAAAA,EAAiB,OAAQ,CAC5C,CACF","file":"chunk-VCYNR26T.js","sourcesContent":["import { useBroadcastMutation, invalidateAfterBroadcast, QueryKeys } from \"@/modules/core\";\nimport type { BroadcastMode } from \"@/modules/core\";\nimport { buildFollowOp } from \"@/modules/operations/builders\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\n\n/**\n * Payload for following an account.\n */\nexport interface FollowPayload {\n /** Account to follow */\n following: string;\n}\n\n/**\n * React Query mutation hook for following an account.\n *\n * This mutation broadcasts a follow operation to the Hive blockchain,\n * adding the target account to the follower's \"blog\" follow list.\n *\n * @param username - The username of the follower (required for broadcast)\n * @param auth - Authentication context with platform adapter and fallback configuration\n *\n * @returns React Query mutation result\n *\n * @remarks\n * **Post-Broadcast Actions:**\n * - Invalidates relationship cache to show updated follow status\n * - Invalidates account cache to refetch updated follower/following counts\n *\n * @example\n * ```typescript\n * const followMutation = useFollow(username, {\n * adapter: myAdapter,\n * enableFallback: true,\n * fallbackChain: ['keychain', 'key', 'hivesigner']\n * });\n *\n * // Follow an account\n * followMutation.mutate({\n * following: 'alice'\n * });\n * ```\n */\nexport function useFollow(\n username: string | undefined,\n auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<FollowPayload>(\n [\"accounts\", \"follow\"],\n username,\n ({ following }) => [\n buildFollowOp(username!, following)\n ],\n async (_result: any, variables) => {\n // Cache invalidation\n await invalidateAfterBroadcast(auth?.adapter, broadcastMode, [\n QueryKeys.accounts.relations(username!, variables.following),\n QueryKeys.accounts.full(variables.following),\n QueryKeys.accounts.followCount(variables.following),\n QueryKeys.accounts.followCount(username!)\n ]);\n },\n auth,\n 'posting',\n { broadcastMode: broadcastMode ?? 'async' }\n );\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/accounts/mutations/use-follow.ts"],"names":["useFollow","username","auth","broadcastMode","useBroadcastMutation","following","buildFollowOp","_result","variables","invalidateAfterBroadcast","QueryKeys"],"mappings":"8JA2CO,SAASA,CAAAA,CACdC,CAAAA,CACAC,CAAAA,CACAC,GAAAA,CACA,CACA,OAAOC,CAAAA,CACL,CAAC,UAAA,CAAY,QAAQ,CAAA,CACrBH,CAAAA,CACA,CAAC,CAAE,SAAA,CAAAI,CAAU,CAAA,GAAM,CACjBC,CAAAA,CAAcL,CAAAA,CAAWI,CAAS,CACpC,CAAA,CACA,MAAOE,CAAAA,CAAcC,CAAAA,GAAc,CAEjC,MAAMC,GAAAA,CAAyBP,CAAAA,EAAM,QAASC,GAAAA,CAAe,CAC3DO,GAAAA,CAAU,QAAA,CAAS,SAAA,CAAUT,CAAAA,CAAWO,CAAAA,CAAU,SAAS,EAC3DE,GAAAA,CAAU,QAAA,CAAS,IAAA,CAAKF,CAAAA,CAAU,SAAS,CAAA,CAC3CE,GAAAA,CAAU,QAAA,CAAS,YAAYF,CAAAA,CAAU,SAAS,CAAA,CAClDE,GAAAA,CAAU,QAAA,CAAS,WAAA,CAAYT,CAAS,CAC1C,CAAC,EACH,CAAA,CACAC,CAAAA,CACA,SAAA,CACA,CAAE,aAAA,CAAeC,GAAAA,EAAiB,OAAQ,CAC5C,CACF","file":"chunk-YWNPW6IV.js","sourcesContent":["import { useBroadcastMutation, invalidateAfterBroadcast, QueryKeys } from \"@/modules/core\";\nimport type { BroadcastMode } from \"@/modules/core\";\nimport { buildFollowOp } from \"@/modules/operations/builders\";\nimport type { AuthContextV2 } from \"@/modules/core/types\";\n\n/**\n * Payload for following an account.\n */\nexport interface FollowPayload {\n /** Account to follow */\n following: string;\n}\n\n/**\n * React Query mutation hook for following an account.\n *\n * This mutation broadcasts a follow operation to the Hive blockchain,\n * adding the target account to the follower's \"blog\" follow list.\n *\n * @param username - The username of the follower (required for broadcast)\n * @param auth - Authentication context with platform adapter and fallback configuration\n *\n * @returns React Query mutation result\n *\n * @remarks\n * **Post-Broadcast Actions:**\n * - Invalidates relationship cache to show updated follow status\n * - Invalidates account cache to refetch updated follower/following counts\n *\n * @example\n * ```typescript\n * const followMutation = useFollow(username, {\n * adapter: myAdapter,\n * enableFallback: true,\n * fallbackChain: ['keychain', 'key', 'hivesigner']\n * });\n *\n * // Follow an account\n * followMutation.mutate({\n * following: 'alice'\n * });\n * ```\n */\nexport function useFollow(\n username: string | undefined,\n auth?: AuthContextV2,\n broadcastMode?: BroadcastMode\n) {\n return useBroadcastMutation<FollowPayload>(\n [\"accounts\", \"follow\"],\n username,\n ({ following }) => [\n buildFollowOp(username!, following)\n ],\n async (_result: any, variables) => {\n // Cache invalidation\n await invalidateAfterBroadcast(auth?.adapter, broadcastMode, [\n QueryKeys.accounts.relations(username!, variables.following),\n QueryKeys.accounts.full(variables.following),\n QueryKeys.accounts.followCount(variables.following),\n QueryKeys.accounts.followCount(username!)\n ]);\n },\n auth,\n 'posting',\n { broadcastMode: broadcastMode ?? 'async' }\n );\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {c}from'./chunk-OMSXAN23.js';import {a}from'./chunk-WTHEQ3M5.js';import {queryOptions}from'@tanstack/react-query';function d(i,a){let t=i?.trim(),r=a?.trim();if(!t||!r)throw new Error("Invalid entry path: author and permlink are required");let e=t.replace(/^@+/,""),o=r.replace(/^\/+/,"");if(!e||!o)throw new Error("Invalid entry path: author and permlink cannot be empty after normalization");return `@${e}/${o}`}function f(i,a$1){let t=a$1?.trim(),r=i?.trim(),e=!!r&&!!t&&t!=="undefined",o=e?d(r,t):"";return queryOptions({queryKey:a.posts.deletedEntry(o),queryFn:async({signal:s})=>{let n=await fetch(c.privateApiHost+"/private-api/comment-history",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({author:i,permlink:t||""}),signal:s});if(!n.ok)throw new Error(`Failed to fetch comment history: ${n.status}`);return n.json()},select:s=>{if(!s?.list?.[0])return null;let{body:n,title:c,tags:y}=s.list[0];return {body:n,title:c,tags:y}},enabled:e})}export{f as a};//# sourceMappingURL=chunk-HBZ2NQ5P.js.map
2
- //# sourceMappingURL=chunk-HBZ2NQ5P.js.map
1
+ import {c}from'./chunk-OMSXAN23.js';import {a}from'./chunk-CQOMDMT6.js';import {queryOptions}from'@tanstack/react-query';function d(i,a){let t=i?.trim(),r=a?.trim();if(!t||!r)throw new Error("Invalid entry path: author and permlink are required");let e=t.replace(/^@+/,""),o=r.replace(/^\/+/,"");if(!e||!o)throw new Error("Invalid entry path: author and permlink cannot be empty after normalization");return `@${e}/${o}`}function f(i,a$1){let t=a$1?.trim(),r=i?.trim(),e=!!r&&!!t&&t!=="undefined",o=e?d(r,t):"";return queryOptions({queryKey:a.posts.deletedEntry(o),queryFn:async({signal:s})=>{let n=await fetch(c.privateApiHost+"/private-api/comment-history",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({author:i,permlink:t||""}),signal:s});if(!n.ok)throw new Error(`Failed to fetch comment history: ${n.status}`);return n.json()},select:s=>{if(!s?.list?.[0])return null;let{body:n,title:c,tags:y}=s.list[0];return {body:n,title:c,tags:y}},enabled:e})}export{f as a};//# sourceMappingURL=chunk-YYWUOU6W.js.map
2
+ //# sourceMappingURL=chunk-YYWUOU6W.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/modules/posts/queries/get-deleted-entry-query-options.ts"],"names":["makeEntryPath","author","permlink","cleanAuthor","cleanPermlink","normalizedAuthor","normalizedPermlink","getDeletedEntryQueryOptions","isValid","entryPath","queryOptions","QueryKeys","signal","response","CONFIG","history","body","title","tags"],"mappings":"yHAIA,SAASA,CAAAA,CAAcC,CAAAA,CAAgBC,EAA0B,CAC/D,IAAMC,EAAcF,CAAAA,EAAQ,IAAA,GACtBG,CAAAA,CAAgBF,CAAAA,EAAU,MAAK,CAErC,GAAI,CAACC,CAAAA,EAAe,CAACC,EACnB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CAAC,CAAA,CACpB,OAAO,IAAA,CAET,GAAM,CAAE,IAAA,CAAAC,CAAAA,CAAM,MAAAC,CAAAA,CAAO,IAAA,CAAAC,CAAK,CAAA,CAAIH,CAAAA,CAAQ,KAAK,CAAC,CAAA,CAC5C,OAAO,CACL,IAAA,CAAAC,EACA,KAAA,CAAAC,CAAAA,CACA,KAAAC,CACF,CACF,EACA,OAAA,CAASV,CACX,CAAC,CACH","file":"chunk-HBZ2NQ5P.js","sourcesContent":["import { queryOptions } from \"@tanstack/react-query\";\nimport { CONFIG, QueryKeys } from \"@/modules/core\";\nimport { CommentHistory } from \"../types/comment-history\";\n\nfunction makeEntryPath(author: string, permlink: string): string {\n const cleanAuthor = author?.trim();\n const cleanPermlink = permlink?.trim();\n\n if (!cleanAuthor || !cleanPermlink) {\n throw new Error(\"Invalid entry path: author and permlink are required\");\n }\n\n // Normalize by removing any leading @ or / characters\n const normalizedAuthor = cleanAuthor.replace(/^@+/, \"\");\n const normalizedPermlink = cleanPermlink.replace(/^\\/+/, \"\");\n\n if (!normalizedAuthor || !normalizedPermlink) {\n throw new Error(\"Invalid entry path: author and permlink cannot be empty after normalization\");\n }\n\n return `@${normalizedAuthor}/${normalizedPermlink}`;\n}\n\nexport interface DeletedEntry {\n body: string;\n title: string;\n tags: string[];\n}\n\nexport function getDeletedEntryQueryOptions(author: string, permlink: string) {\n const cleanPermlink = permlink?.trim();\n const cleanAuthor = author?.trim();\n const isValid =\n !!cleanAuthor && !!cleanPermlink && cleanPermlink !== \"undefined\";\n\n const entryPath = isValid ? makeEntryPath(cleanAuthor, cleanPermlink) : \"\";\n\n return queryOptions({\n queryKey: QueryKeys.posts.deletedEntry(entryPath),\n queryFn: async ({ signal }) => {\n const response = await fetch(CONFIG.privateApiHost + \"/private-api/comment-history\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n body: JSON.stringify({\n author,\n permlink: cleanPermlink || \"\",\n }),\n signal,\n });\n\n if (!response.ok) {\n throw new Error(`Failed to fetch comment history: ${response.status}`);\n }\n\n return response.json() as Promise<CommentHistory>;\n },\n select: (history): DeletedEntry | null => {\n if (!history?.list?.[0]) {\n return null;\n }\n const { body, title, tags } = history.list[0];\n return {\n body,\n title,\n tags,\n };\n },\n enabled: isValid,\n });\n}\n"]}
1
+ {"version":3,"sources":["../../src/modules/posts/queries/get-deleted-entry-query-options.ts"],"names":["makeEntryPath","author","permlink","cleanAuthor","cleanPermlink","normalizedAuthor","normalizedPermlink","getDeletedEntryQueryOptions","isValid","entryPath","queryOptions","QueryKeys","signal","response","CONFIG","history","body","title","tags"],"mappings":"yHAIA,SAASA,CAAAA,CAAcC,CAAAA,CAAgBC,EAA0B,CAC/D,IAAMC,EAAcF,CAAAA,EAAQ,IAAA,GACtBG,CAAAA,CAAgBF,CAAAA,EAAU,MAAK,CAErC,GAAI,CAACC,CAAAA,EAAe,CAACC,EACnB,MAAM,IAAI,MAAM,sDAAsD,CAAA,CAIxE,IAAMC,CAAAA,CAAmBF,CAAAA,CAAY,QAAQ,KAAA,CAAO,EAAE,EAChDG,CAAAA,CAAqBF,CAAAA,CAAc,QAAQ,MAAA,CAAQ,EAAE,EAE3D,GAAI,CAACC,GAAoB,CAACC,CAAAA,CACxB,MAAM,IAAI,KAAA,CAAM,6EAA6E,CAAA,CAG/F,OAAO,IAAID,CAAgB,CAAA,CAAA,EAAIC,CAAkB,CAAA,CACnD,CAQO,SAASC,CAAAA,CAA4BN,CAAAA,CAAgBC,IAAkB,CAC5E,IAAME,EAAgBF,GAAAA,EAAU,IAAA,GAC1BC,CAAAA,CAAcF,CAAAA,EAAQ,MAAK,CAC3BO,CAAAA,CACJ,CAAC,CAACL,CAAAA,EAAe,CAAC,CAACC,CAAAA,EAAiBA,IAAkB,WAAA,CAElDK,CAAAA,CAAYD,EAAUR,CAAAA,CAAcG,CAAAA,CAAaC,CAAa,CAAA,CAAI,EAAA,CAExE,OAAOM,YAAAA,CAAa,CAClB,SAAUC,CAAAA,CAAU,KAAA,CAAM,aAAaF,CAAS,CAAA,CAChD,QAAS,MAAO,CAAE,OAAAG,CAAO,CAAA,GAAM,CAC7B,IAAMC,CAAAA,CAAW,MAAM,KAAA,CAAMC,CAAAA,CAAO,eAAiB,8BAAA,CAAgC,CACnF,OAAQ,MAAA,CACR,OAAA,CAAS,CACP,cAAA,CAAgB,kBAClB,EACA,IAAA,CAAM,IAAA,CAAK,UAAU,CACnB,MAAA,CAAAb,EACA,QAAA,CAAUG,CAAAA,EAAiB,EAC7B,CAAC,CAAA,CACD,OAAAQ,CACF,CAAC,EAED,GAAI,CAACC,EAAS,EAAA,CACZ,MAAM,IAAI,KAAA,CAAM,CAAA,iCAAA,EAAoCA,EAAS,MAAM,CAAA,CAAE,EAGvE,OAAOA,CAAAA,CAAS,MAClB,CAAA,CACA,OAASE,CAAAA,EAAiC,CACxC,GAAI,CAACA,CAAAA,EAAS,OAAO,CAAC,CAAA,CACpB,OAAO,IAAA,CAET,GAAM,CAAE,IAAA,CAAAC,CAAAA,CAAM,MAAAC,CAAAA,CAAO,IAAA,CAAAC,CAAK,CAAA,CAAIH,CAAAA,CAAQ,KAAK,CAAC,CAAA,CAC5C,OAAO,CACL,IAAA,CAAAC,EACA,KAAA,CAAAC,CAAAA,CACA,KAAAC,CACF,CACF,EACA,OAAA,CAASV,CACX,CAAC,CACH","file":"chunk-YYWUOU6W.js","sourcesContent":["import { queryOptions } from \"@tanstack/react-query\";\nimport { CONFIG, QueryKeys } from \"@/modules/core\";\nimport { CommentHistory } from \"../types/comment-history\";\n\nfunction makeEntryPath(author: string, permlink: string): string {\n const cleanAuthor = author?.trim();\n const cleanPermlink = permlink?.trim();\n\n if (!cleanAuthor || !cleanPermlink) {\n throw new Error(\"Invalid entry path: author and permlink are required\");\n }\n\n // Normalize by removing any leading @ or / characters\n const normalizedAuthor = cleanAuthor.replace(/^@+/, \"\");\n const normalizedPermlink = cleanPermlink.replace(/^\\/+/, \"\");\n\n if (!normalizedAuthor || !normalizedPermlink) {\n throw new Error(\"Invalid entry path: author and permlink cannot be empty after normalization\");\n }\n\n return `@${normalizedAuthor}/${normalizedPermlink}`;\n}\n\nexport interface DeletedEntry {\n body: string;\n title: string;\n tags: string[];\n}\n\nexport function getDeletedEntryQueryOptions(author: string, permlink: string) {\n const cleanPermlink = permlink?.trim();\n const cleanAuthor = author?.trim();\n const isValid =\n !!cleanAuthor && !!cleanPermlink && cleanPermlink !== \"undefined\";\n\n const entryPath = isValid ? makeEntryPath(cleanAuthor, cleanPermlink) : \"\";\n\n return queryOptions({\n queryKey: QueryKeys.posts.deletedEntry(entryPath),\n queryFn: async ({ signal }) => {\n const response = await fetch(CONFIG.privateApiHost + \"/private-api/comment-history\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n body: JSON.stringify({\n author,\n permlink: cleanPermlink || \"\",\n }),\n signal,\n });\n\n if (!response.ok) {\n throw new Error(`Failed to fetch comment history: ${response.status}`);\n }\n\n return response.json() as Promise<CommentHistory>;\n },\n select: (history): DeletedEntry | null => {\n if (!history?.list?.[0]) {\n return null;\n }\n const { body, title, tags } = history.list[0];\n return {\n body,\n title,\n tags,\n };\n },\n enabled: isValid,\n });\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {b as b$1}from'./chunk-CNB64U7U.js';import {b}from'./chunk-PFVWZI3W.js';import {a}from'./chunk-WTHEQ3M5.js';function l(t,e,n){return b(["wallet","unstake-engine-token"],t,o=>{let s=JSON.stringify({contractName:"tokens",contractAction:"unstake",contractPayload:{symbol:o.symbol,to:o.to,quantity:o.quantity}});return [["custom_json",{id:"ssc-mainnet-hive",required_auths:[t],required_posting_auths:[],json:s}]]},async()=>{await b$1(e?.adapter,n,[a.accounts.full(t),["ecency-wallets","asset-info",t],["wallet","portfolio","v2",t]]);},e,"active",{broadcastMode:n})}export{l as a};//# sourceMappingURL=chunk-4CZFR2OD.js.map
2
- //# sourceMappingURL=chunk-4CZFR2OD.js.map
1
+ import {b as b$1}from'./chunk-CNB64U7U.js';import {b}from'./chunk-PFVWZI3W.js';import {a}from'./chunk-CQOMDMT6.js';function l(t,e,n){return b(["wallet","unstake-engine-token"],t,o=>{let s=JSON.stringify({contractName:"tokens",contractAction:"unstake",contractPayload:{symbol:o.symbol,to:o.to,quantity:o.quantity}});return [["custom_json",{id:"ssc-mainnet-hive",required_auths:[t],required_posting_auths:[],json:s}]]},async()=>{await b$1(e?.adapter,n,[a.accounts.full(t),["ecency-wallets","asset-info",t],["wallet","portfolio","v2",t]]);},e,"active",{broadcastMode:n})}export{l as a};//# sourceMappingURL=chunk-Z2VGNDBL.js.map
2
+ //# sourceMappingURL=chunk-Z2VGNDBL.js.map