@abtnode/blocklet-services 1.17.7 → 1.17.8-beta-20260106-113136-b3c09e14

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 (242) hide show
  1. package/api/routes/blocklet.js +26 -2
  2. package/api/util/blocklet-utils.js +15 -0
  3. package/dist/assets/{AdapterDayjs-CIz_EOtQ.js → AdapterDayjs-DafRMFLg.js} +1 -1
  4. package/dist/assets/Community-3AO97CCq.js +1 -0
  5. package/dist/assets/{Google-UUKF9aLU.js → Google-DRu937I3.js} +1 -1
  6. package/dist/assets/Holiday-CqSw2e8m.js +1 -0
  7. package/dist/assets/Meeting-DKbNRI16.js +1 -0
  8. package/dist/assets/OffSick-BvEREz3_.js +1 -0
  9. package/dist/assets/WorkingRemotely-DNtYHcSB.js +1 -0
  10. package/dist/assets/{access-control-BvVaKG93.js → access-control-cgo5Z15_.js} +1 -1
  11. package/dist/assets/{add-component-core-DuwLtUBl.js → add-component-core-BfzNEcS5.js} +7 -7
  12. package/dist/assets/{add-resource-DSF4-AYI.js → add-resource-CYRgZ1ps.js} +1 -1
  13. package/dist/assets/addon-qN24wAb4.js +14 -0
  14. package/dist/assets/advanced-1Vu6rcXU.js +14 -0
  15. package/dist/assets/{aigne-B-7qxD7r.js → aigne-D6MrXXCU.js} +1 -1
  16. package/dist/assets/api-DwxIBXZs.js +1 -0
  17. package/dist/assets/{appearance-DpKwY0o1.js → appearance-DOQHBg9p.js} +1 -1
  18. package/dist/assets/arrow-down.svg-7ME6T1BL.js +1 -0
  19. package/dist/assets/{audit-logs-BW1TvN0z.js → audit-logs-ISyoqJFp.js} +2 -2
  20. package/dist/assets/{authorize-BwNdnPft.js → authorize-B9RLEFal.js} +1 -1
  21. package/dist/assets/{base-chart-ChBZtUEG.js → base-chart-DhxjAyBU.js} +1 -1
  22. package/dist/assets/base32-_D4eWUeh.js +1 -0
  23. package/dist/assets/bind-account-CLIjYy96.js +1 -0
  24. package/dist/assets/{branding-40UKivXV.js → branding-C81Kt22j.js} +1 -1
  25. package/dist/assets/{branding-CUwzFTtf.js → branding-iwUveEf5.js} +2 -2
  26. package/dist/assets/branding-myiZl37D.js +1 -0
  27. package/dist/assets/{bundle-avatar-DJ_-4AO_.js → bundle-avatar-Cc_6nw01.js} +1 -1
  28. package/dist/assets/button-D-lyR9BW.js +1 -0
  29. package/dist/assets/{click-to-copy-CBd8B_uk.js → click-to-copy-CMo42VnK.js} +1 -1
  30. package/dist/assets/cloneDeep-BY8zW7hH.js +1 -0
  31. package/dist/assets/{complete-DCZaPQL5.js → complete-CJ_buCAS.js} +4 -4
  32. package/dist/assets/{component-CIlZ9gz_.js → component-Dip3v1Iq.js} +3 -3
  33. package/dist/assets/config-44sI5I0w.js +53 -0
  34. package/dist/assets/{config-DCwReZ_J.js → config-D5KnWqfn.js} +1 -1
  35. package/dist/assets/{config-BFSglxmm.js → config-D8XZj8JI.js} +2 -2
  36. package/dist/assets/{config-navigation-D47x55_t.js → config-navigation-Ni0iczgA.js} +8 -8
  37. package/dist/assets/config-space-B6_f52sE.js +1 -0
  38. package/dist/assets/{confirm-DQlu79Sm.js → confirm-Lb1MrAdS.js} +1 -1
  39. package/dist/assets/connect-0OZVqJvc.js +1 -0
  40. package/dist/assets/connect-B9GQZEi7.js +5 -0
  41. package/dist/assets/connect-BV6BUhDJ.css +1 -0
  42. package/dist/assets/connect-JAX_oP3o.js +5 -0
  43. package/dist/assets/{connect-to-B_iWUbwW.js → connect-to-Djgj6TLg.js} +1 -1
  44. package/dist/assets/{create-passport-svg-BwkPTICE.js → create-passport-svg-5AYzBKFb.js} +1 -1
  45. package/dist/assets/createClass-DXYd7BIe.js +1 -0
  46. package/dist/assets/{dashboard-Bu3a5Px4.js → dashboard-C0l2IWWH.js} +7 -7
  47. package/dist/assets/{delete-confirm-BIuv3oO4.js → delete-confirm-tbfLqDBI.js} +1 -1
  48. package/dist/assets/did-address-CsOJBoiY.js +1 -0
  49. package/dist/assets/{domain--lKnmb8L.js → domain-CnhOsdmM.js} +1 -1
  50. package/dist/assets/{domain-action-card-B5bWcTCx.js → domain-action-card-BsdHbhEi.js} +2 -2
  51. package/dist/assets/domains-DRP2VSvO.js +1 -0
  52. package/dist/assets/edit.svg-CTE5eATX.js +1 -0
  53. package/dist/assets/email-Dt_DGuhf.js +17 -0
  54. package/dist/assets/engine-BXGX_w-S.js +1 -0
  55. package/dist/assets/exchange-passport-DztKvBat.js +1 -0
  56. package/dist/assets/{form-DcGl-E0U.js → form-DoC8uBcB.js} +3 -3
  57. package/dist/assets/{form-text-input-DNXpKwew.js → form-text-input-XjloVwBd.js} +2 -2
  58. package/dist/assets/{fuel-tsazXQKp.js → fuel-IaJHNPPW.js} +1 -1
  59. package/dist/assets/gen-access-key-BJlDqEhI.js +1 -0
  60. package/dist/assets/gen-simple-access-key-lyiUw0C-.js +1 -0
  61. package/dist/assets/get-safe-url-BiNPujaX.js +1 -0
  62. package/dist/assets/google-icon-vNOJy67F.js +1 -0
  63. package/dist/assets/{home-BN59HeAP.js → home-Bs_5YPbK.js} +1 -1
  64. package/dist/assets/{iframe-CC7bnIjL.js → iframe-Dqu4MSyW.js} +1 -1
  65. package/dist/assets/{index-ByMKy0IO.js → index-1HKgA-fz.js} +1 -1
  66. package/dist/assets/{index-keEY0SLH.js → index-B10SG1vs.js} +1 -1
  67. package/dist/assets/{index-CbjFdIdE.js → index-B4KKUWng.js} +2 -2
  68. package/dist/assets/{index-Bg5uZrWj.js → index-B4YCnemd.js} +1 -1
  69. package/dist/assets/index-B6DWjLJS.js +281 -0
  70. package/dist/assets/{index-H8MAN7us.js → index-B7_VUEoc.js} +1 -1
  71. package/dist/assets/index-B9LF8Bep.js +1 -0
  72. package/dist/assets/index-BDH_LtJL.js +1 -0
  73. package/dist/assets/{index-5n0QAOjO.js → index-BGhqVqit.js} +1 -1
  74. package/dist/assets/{index-D4cbtlCM.js → index-BNhv-9xy.js} +3 -3
  75. package/dist/assets/{index-BmeJ3mXz.js → index-BSZtxRM0.js} +2 -2
  76. package/dist/assets/{index-CLao_b9r.js → index-BWDWEkUF.js} +1 -1
  77. package/dist/assets/{index-CH-EXqMX.js → index-BWL6HE0j.js} +1 -1
  78. package/dist/assets/{index-D3AsXyHs.js → index-B_SjLIbT.js} +7 -7
  79. package/dist/assets/{index-mL2PjDd3.js → index-BhhZ8IDZ.js} +13 -13
  80. package/dist/assets/{index-JhIOETr8.js → index-BkePHcyK.js} +9 -9
  81. package/dist/assets/{index-DlTghgU6.js → index-BmXPp3DU.js} +1 -1
  82. package/dist/assets/{index-D1SIrheh.js → index-BsohFwTm.js} +1 -1
  83. package/dist/assets/index-CI_uwh_J.js +81 -0
  84. package/dist/assets/index-CQgzjKgB.js +1039 -0
  85. package/dist/assets/{index-Bc7P9fwl.js → index-CRZM3CKo.js} +2 -2
  86. package/dist/assets/index-CbiyJRV7.js +1 -0
  87. package/dist/assets/{index-BJ6le4Td.js → index-Cp0b8q3A.js} +1 -1
  88. package/dist/assets/{index-DJEbIkF6.js → index-Cq6z7yeF.js} +4 -4
  89. package/dist/assets/index-DT5AXPVB.js +200 -0
  90. package/dist/assets/{index-CNUfol2K.js → index-DctZHPFL.js} +1 -1
  91. package/dist/assets/{index-D0cfNfgL.js → index-Dfx19arA.js} +6 -6
  92. package/dist/assets/index-DhHvANH8.js +93 -0
  93. package/dist/assets/index-DrCTi6nm.css +1 -0
  94. package/dist/assets/{index-ETdrsXsn.js → index-G6Vk78zE.js} +3 -3
  95. package/dist/assets/{index-DMjWlw40.js → index-TYwJnR0n.js} +23 -23
  96. package/dist/assets/{index-CoWxyxJt.js → index-dbYkWwF4.js} +1 -1
  97. package/dist/assets/index-vP1T6V7V.js +120 -0
  98. package/dist/assets/info-outline-rounded-BIwvgXCK.js +1 -0
  99. package/dist/assets/invitation-CYFN9u5t.js +177 -0
  100. package/dist/assets/invitations-jY13RXbI.js +3 -0
  101. package/dist/assets/invite-D72FvaiG.js +1 -0
  102. package/dist/assets/{isURL-D4WfF4w_.js → isURL-CJRImg0N.js} +2 -2
  103. package/dist/assets/issue-passport-BfqkJF3W.js +1 -0
  104. package/dist/assets/{item-CwiqvF0e.js → item-5ZWPft2s.js} +1 -1
  105. package/dist/assets/landing-page-DRtId3hN.js +1 -0
  106. package/dist/assets/{layout-CdGgFfY4.js → layout-Be1KH57_.js} +1 -1
  107. package/dist/assets/{list-CVN6FKdL.js → list-CHI1rCEg.js} +3 -3
  108. package/dist/assets/list-CQtiNSih.js +2 -0
  109. package/dist/assets/localization-CKE-bHgd.js +1 -0
  110. package/dist/assets/lock.svg-CiT4rEpi.js +1 -0
  111. package/dist/assets/{log-Cox3P5_L.js → log-BfCFT05M.js} +1 -1
  112. package/dist/assets/logger-DU7baop2.js +1 -0
  113. package/dist/assets/login-BtsH3IvI.js +1 -0
  114. package/dist/assets/{login-oauth-callback-zq4hRJXC.js → login-oauth-callback-Ds4uYiRr.js} +1 -1
  115. package/dist/assets/{logo-uploader-6T6d75Q6.js → logo-uploader-lepUW_D7.js} +3 -3
  116. package/dist/assets/{lost-passport-DviehTF2.js → lost-passport-BtN3h1ya.js} +2 -2
  117. package/dist/assets/omit-CCIQ0Qdi.js +1 -0
  118. package/dist/assets/{open-window-_3kVydQ2.js → open-window-CNt8gsrN.js} +1 -1
  119. package/dist/assets/{over-due-invoice-payment-rAHkUVgY.js → over-due-invoice-payment-7TbnqqKX.js} +1 -1
  120. package/dist/assets/{overview-DSB1dlE4.js → overview-Be3tncsL.js} +3 -3
  121. package/dist/assets/passport-CkJ4B4CG.js +1 -0
  122. package/dist/assets/passport-item-Bhbm8_m6.js +1 -0
  123. package/dist/assets/{permission-CcdJMHov.js → permission-BHvrn0M5.js} +1 -1
  124. package/dist/assets/preferences-TFWtUYLy.js +1 -0
  125. package/dist/assets/profile-embed-B9f9hlSS.js +1 -0
  126. package/dist/assets/provider-icon-DQY2_LaP.js +1 -0
  127. package/dist/assets/publish-resource-CyvkVMG_.js +1 -0
  128. package/dist/assets/question-mark-circle.svg-GhTaklFN.js +1 -0
  129. package/dist/assets/{react-beautiful-dnd.esm-DDZ1XDH7.js → react-beautiful-dnd.esm-D0JKrMDl.js} +4 -4
  130. package/dist/assets/revoke.svg-DUoaRyPZ.js +1 -0
  131. package/dist/assets/runtime-npJC4gp_.js +1 -0
  132. package/dist/assets/{sanitize-yVk8VEIO.js → sanitize-C-shWbtD.js} +1 -1
  133. package/dist/assets/sdk-CoWDgSLO.js +1 -0
  134. package/dist/assets/security-nSKpCl8B.js +22 -0
  135. package/dist/assets/server-logo-notext.svg-BLAdvsmP.js +1 -0
  136. package/dist/assets/{session-D-wwXXFW.js → session-C2ZBRIpv.js} +1 -1
  137. package/dist/assets/{setup-CgcKBlmf.js → setup-krkSJpAg.js} +1 -1
  138. package/dist/assets/simple-select-i16Vwzvl.js +1 -0
  139. package/dist/assets/{spaces-DGJd1uEt.js → spaces-BdZ_Rv3s.js} +1 -1
  140. package/dist/assets/start-y3zrboBQ.js +187 -0
  141. package/dist/assets/{starting-progress-DpUpXo1N.js → starting-progress-DI-J-VlX.js} +1 -1
  142. package/dist/assets/status-B8pB_mTB.js +1 -0
  143. package/dist/assets/{step-actions-BKMeYA5x.js → step-actions-B1ufIDaK.js} +1 -1
  144. package/dist/assets/{studio-BzkFXY4W.js → studio-1jwq0HOw.js} +1 -1
  145. package/dist/assets/{switch-CWBW7iKo.js → switch-CetbUrYR.js} +1 -1
  146. package/dist/assets/{switch-control-D9D8FbX3.js → switch-control-_85hc9FG.js} +1 -1
  147. package/dist/assets/{table-tips-B9_goTLn.js → table-tips-CMt22HEy.js} +1 -1
  148. package/dist/assets/team-DDjNXwXE.js +146 -0
  149. package/dist/assets/{traffic-DsUQQR3F.js → traffic-mcbpWOFq.js} +1 -1
  150. package/dist/assets/transfer-C66c3bWd.js +16 -0
  151. package/dist/assets/unsubscribe-Cvz0OKhq.js +1 -0
  152. package/dist/assets/{use-app-logo-BKJ912HX.js → use-app-logo-BuyF983S.js} +1 -1
  153. package/dist/assets/use-server-logo-Pbr_UuiI.js +1 -0
  154. package/dist/assets/{use-window-close-BVOSCf9h.js → use-window-close-B16QghYq.js} +1 -1
  155. package/dist/assets/{useAsync-DVl73fmG.js → useAsync-BVTh1KYj.js} +1 -1
  156. package/dist/assets/{useAsync-Dotoxibi.js → useAsync-ZGLJQow7.js} +1 -1
  157. package/dist/assets/{useAsyncRetry-r8dEPb-x.js → useAsyncRetry-BMmRgSGm.js} +1 -1
  158. package/dist/assets/{useLocalStorage-BmGa-RG8.js → useLocalStorage-De-EuH_M.js} +1 -1
  159. package/dist/assets/user-center-DQSoqc_z.js +125 -0
  160. package/dist/assets/user-follower-TTyja_sV.js +32 -0
  161. package/dist/assets/{util-DQmPydCJ.js → util-DuMKfKo8.js} +1 -1
  162. package/dist/assets/{util-CznlXimv.js → util-Ff3hwYmy.js} +1 -1
  163. package/dist/assets/{vendor-arcblock-DyliHtVF.js → vendor-arcblock-Cnwtqa7s.js} +19 -19
  164. package/dist/assets/{vendor-hooks-qxhUUbW5.js → vendor-hooks-BQWlJm53.js} +2 -2
  165. package/dist/assets/{vendor-utils-CxWN1dT3.js → vendor-utils-DCMKu06e.js} +3 -3
  166. package/dist/assets/{vendor-ux-IiqHAjMq.js → vendor-ux-B0gV9NvH.js} +92 -95
  167. package/dist/assets/{wait-connect-Co7Po2HJ.js → wait-connect-CRZmfXOA.js} +1 -1
  168. package/dist/assets/{wizard-tGxr6THv.js → wizard-B41kI39b.js} +1 -1
  169. package/dist/assets/{wizard-components-qCiwxNk8.js → wizard-components-Bn72hVOe.js} +2 -2
  170. package/dist/assets/wrap-locale-CF46rj6q.js +1 -0
  171. package/dist/assets/{zh-DL3Su93_.js → zh-BmX_fuoi.js} +1 -1
  172. package/dist/index.html +2 -2
  173. package/package.json +49 -49
  174. package/dist/assets/Community-CELsDteM.js +0 -1
  175. package/dist/assets/Holiday-DOCjSYjH.js +0 -1
  176. package/dist/assets/Meeting-BAXt_LiK.js +0 -1
  177. package/dist/assets/OffSick-BGEr8Nkc.js +0 -1
  178. package/dist/assets/WorkingRemotely-BcneAIXG.js +0 -1
  179. package/dist/assets/addon-CAO5ZUVe.js +0 -14
  180. package/dist/assets/advanced-D-_qy4C4.js +0 -14
  181. package/dist/assets/api-FQQlzPOP.js +0 -1
  182. package/dist/assets/arrow-down.svg-C4FUKwt4.js +0 -1
  183. package/dist/assets/base32-CmNHdxL7.js +0 -1
  184. package/dist/assets/bind-account-DOG2XJ6s.js +0 -1
  185. package/dist/assets/branding-lvlhWE2R.js +0 -1
  186. package/dist/assets/button-82FUWQ2H.js +0 -1
  187. package/dist/assets/cloneDeep-C2rlAYcK.js +0 -1
  188. package/dist/assets/config-Dzr61Ovu.js +0 -53
  189. package/dist/assets/config-space-D2mAEqFL.js +0 -1
  190. package/dist/assets/connect-Dd7NRVCL.js +0 -1
  191. package/dist/assets/connect-II0vWvpi.js +0 -5
  192. package/dist/assets/createClass-DVDZaC6q.js +0 -1
  193. package/dist/assets/did-address-h4uLp20A.js +0 -1
  194. package/dist/assets/domains-DTnBb4pb.js +0 -1
  195. package/dist/assets/edit.svg-RRSklUg-.js +0 -1
  196. package/dist/assets/email-bOQg3Ln3.js +0 -17
  197. package/dist/assets/engine-_hdQizRi.js +0 -1
  198. package/dist/assets/exchange-passport-B8J1z6zW.js +0 -1
  199. package/dist/assets/gen-access-key-DrfFQLFL.js +0 -1
  200. package/dist/assets/gen-simple-access-key-CnP2yUd7.js +0 -1
  201. package/dist/assets/get-safe-url-DaqBo3hv.js +0 -1
  202. package/dist/assets/index-55ZI5Xlz.js +0 -200
  203. package/dist/assets/index-BDmLm9RE.js +0 -93
  204. package/dist/assets/index-BORuOqqa.js +0 -1
  205. package/dist/assets/index-ByEZTgqv.js +0 -120
  206. package/dist/assets/index-CXyo5mo3.js +0 -1
  207. package/dist/assets/index-DG0EDext.js +0 -1039
  208. package/dist/assets/index-DPByvHrj.js +0 -281
  209. package/dist/assets/index-DZyT0N9R.js +0 -81
  210. package/dist/assets/index-DrVXX4fX.css +0 -1
  211. package/dist/assets/invitation-0lU4EchQ.js +0 -177
  212. package/dist/assets/invitations-CSnyD-Wp.js +0 -3
  213. package/dist/assets/invite-8i_Oru_O.js +0 -1
  214. package/dist/assets/issue-passport-Br15qs7n.js +0 -1
  215. package/dist/assets/landing-page-q4NMkyjD.js +0 -1
  216. package/dist/assets/list-NP-91JKf.js +0 -2
  217. package/dist/assets/localization-DAE0Xt60.js +0 -1
  218. package/dist/assets/lock.svg-BgybwZNe.js +0 -1
  219. package/dist/assets/logger-BKK0qIc9.js +0 -1
  220. package/dist/assets/login-2zmJhcBe.js +0 -1
  221. package/dist/assets/omit-spWLSLbo.js +0 -1
  222. package/dist/assets/passport-DzlmGAGE.js +0 -1
  223. package/dist/assets/passport-item-DdvT-U5C.js +0 -1
  224. package/dist/assets/preferences-B3FTkTJx.js +0 -1
  225. package/dist/assets/profile-embed-Ds6zLGgv.js +0 -1
  226. package/dist/assets/publish-resource-CAbbkAX0.js +0 -1
  227. package/dist/assets/question-mark-circle.svg-CByEVDhb.js +0 -1
  228. package/dist/assets/revoke.svg-CNl4LAbv.js +0 -1
  229. package/dist/assets/runtime-BKJMYAui.js +0 -1
  230. package/dist/assets/sdk-DkjNLRKY.js +0 -1
  231. package/dist/assets/security-3Y4MabOo.js +0 -22
  232. package/dist/assets/server-logo-notext.svg-xZ-i1SpD.js +0 -1
  233. package/dist/assets/simple-select-qqtCC0US.js +0 -1
  234. package/dist/assets/start-Cu_Xr7Yd.js +0 -187
  235. package/dist/assets/status-qiMZo73y.js +0 -1
  236. package/dist/assets/team-DvyWlb8W.js +0 -146
  237. package/dist/assets/transfer-BU2gLE9m.js +0 -16
  238. package/dist/assets/unsubscribe-DpfMHut2.js +0 -1
  239. package/dist/assets/use-server-logo-Cv1kAPgB.js +0 -1
  240. package/dist/assets/user-center-8NTN-2CY.js +0 -125
  241. package/dist/assets/user-follower-C-xe6Fqb.js +0 -32
  242. package/dist/assets/wrap-locale-BdDblHwV.js +0 -1
@@ -1,4 +1,4 @@
1
- import{j as e,at as s}from"./vendor-mui-core-DnR6WYuU.js";import{u as a}from"./index-Bg5uZrWj.js";function i({labelProps:t,className:l,style:n,...o}){const r={...t,labelPlacement:t?.labelPlacement||"start"};return e.jsx(m,{className:l,style:n,labelPlacement:t?.labelPlacement,children:e.jsx(a,{labelProps:r,...o})})}i.propTypes=a.propTypes;const m=s.div`
1
+ import{j as e,at as s}from"./vendor-mui-core-DnR6WYuU.js";import{u as a}from"./index-B4YCnemd.js";function i({labelProps:t,className:l,style:n,...o}){const r={...t,labelPlacement:t?.labelPlacement||"start"};return e.jsx(m,{className:l,style:n,labelPlacement:t?.labelPlacement,children:e.jsx(a,{labelProps:r,...o})})}i.propTypes=a.propTypes;const m=s.div`
2
2
  max-width: ${({labelPlacement:t})=>t==="end"?"100%":"300px"};
3
3
  > label {
4
4
  display: flex;
@@ -1 +1 @@
1
- import{j as e,ak as s,ai as f,am as c,I as x,bl as d,W as r}from"./vendor-mui-core-DnR6WYuU.js";import{r as j}from"./vendor-react-CTtPmzVP.js";import{V as b}from"./vendor-ux-IiqHAjMq.js";import{u as g}from"./use-mobile-BINJTzMb.js";function y({title:n,tooltipTitle:o,link:i}){const{t}=b(),p=g(),[h,l]=j.useState(!1),m=()=>l(u=>!u),a=()=>l(!1);return p?e.jsxs(s,{sx:{color:"text.secondary",fontSize:"14px",lineHeight:1.5},children:[n,e.jsx(f,{onClickAway:a,children:e.jsx("span",{children:e.jsx(c,{open:h,onClose:a,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,title:e.jsxs(s,{sx:{fontSize:"14px",lineHeight:1.5},children:[o,e.jsx(s,{sx:{color:"primary.main",ml:.5},component:"a",href:i,target:"_blank",rel:"noopener noreferrer",children:t("dashboard.document")})]}),children:e.jsx(x,{size:"small",onClick:m,sx:{ml:.5},children:e.jsx(d,{fontSize:"14"})})})})})]}):e.jsxs(s,{sx:{color:"text.secondary",fontSize:"14px",lineHeight:1.5},children:[n,e.jsx(c,{enterTouchDelay:0,leaveTouchDelay:3e3,title:e.jsxs(s,{sx:{fontSize:"14px",lineHeight:1.5},children:[o,e.jsx(s,{sx:{color:"primary.main",ml:.5},component:"a",href:i,target:"_blank",rel:"noopener noreferrer",children:t("dashboard.document")})]}),children:e.jsx(x,{size:"small",sx:{ml:.5},children:e.jsx(d,{fontSize:"14"})})})]})}y.propTypes={title:r.string.isRequired,tooltipTitle:r.string.isRequired,link:r.string.isRequired};export{y as T};
1
+ import{j as e,ak as s,ai as f,am as c,I as x,bl as d,W as r}from"./vendor-mui-core-DnR6WYuU.js";import{r as j}from"./vendor-react-CTtPmzVP.js";import{V as b}from"./vendor-ux-B0gV9NvH.js";import{u as g}from"./use-mobile-BINJTzMb.js";function y({title:n,tooltipTitle:o,link:i}){const{t}=b(),p=g(),[h,l]=j.useState(!1),m=()=>l(u=>!u),a=()=>l(!1);return p?e.jsxs(s,{sx:{color:"text.secondary",fontSize:"14px",lineHeight:1.5},children:[n,e.jsx(f,{onClickAway:a,children:e.jsx("span",{children:e.jsx(c,{open:h,onClose:a,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,title:e.jsxs(s,{sx:{fontSize:"14px",lineHeight:1.5},children:[o,e.jsx(s,{sx:{color:"primary.main",ml:.5},component:"a",href:i,target:"_blank",rel:"noopener noreferrer",children:t("dashboard.document")})]}),children:e.jsx(x,{size:"small",onClick:m,sx:{ml:.5},children:e.jsx(d,{fontSize:"14"})})})})})]}):e.jsxs(s,{sx:{color:"text.secondary",fontSize:"14px",lineHeight:1.5},children:[n,e.jsx(c,{enterTouchDelay:0,leaveTouchDelay:3e3,title:e.jsxs(s,{sx:{fontSize:"14px",lineHeight:1.5},children:[o,e.jsx(s,{sx:{color:"primary.main",ml:.5},component:"a",href:i,target:"_blank",rel:"noopener noreferrer",children:t("dashboard.document")})]}),children:e.jsx(x,{size:"small",sx:{ml:.5},children:e.jsx(d,{fontSize:"14"})})})]})}y.propTypes={title:r.string.isRequired,tooltipTitle:r.string.isRequired,link:r.string.isRequired};export{y as T};
@@ -0,0 +1,146 @@
1
+ import{r as S,a as Fe,d as ze,g as qe}from"./vendor-react-CTtPmzVP.js";import{j as n,bb as ae,W as m,s as le,T as P,ak as k,Q as Be,P as Ge,D as U,at as F,J as z,a3 as ye,c5 as be,am as Ve,bl as Ke,c6 as Qe,b9 as Xe,ar as Ye}from"./vendor-mui-core-DnR6WYuU.js";import{a as _,b as ue}from"./vendor-hooks-BQWlJm53.js";import{c as B,aE as Z,aF as ee,aG as ve,aH as Je,aa as Ze,y as et,q as tt,J as X,ao as ne,r as Y,aI as nt}from"./index-CQgzjKgB.js";import{a as O,E as ce,y as G,ab as rt,ac as st}from"./vendor-utils-DCMKu06e.js";import{u as it}from"./session-C2ZBRIpv.js";import{K as ot,n as at,o as lt,M as V,a1 as de,b8 as ct,V as we,W as dt}from"./vendor-ux-B0gV9NvH.js";import{i as pt}from"./isURL-CJRImg0N.js";import{u as ut}from"./use-app-logo-BuyF983S.js";const ht={dividerColor:"rgba(239, 241, 245, 1)"},tn=e=>{if(!e||!e.length)return[];const t=[];let r=null,s=[];if(e.forEach(i=>{if(!i.activity||!i.activity.type||!r){r&&(s.length===1?t.push(s[0]):(r.items=s,t.push(r))),i.activity&&i.activity.type?(r=i,s=[i]):(t.push(i),r=null,s=[]);return}const p=s[0].activity,o=p.type,h=p.target?.type,x=p.target?.id,v=i.activity.type,g=i.activity.target?.type,T=i.activity.target?.id;if(o&&v&&o===v&&(!p.target&&!i.activity.target||p.target&&i.activity.target&&h===g&&x===T))s.push(i);else{if(s.length===1)t.push(s[0]);else{const b=Object.assign({},r,{items:s});t.push(b)}r=i,s=[i]}}),r)if(s.length===1)t.push(s[0]);else{const i=Object.assign({},r,{items:s});t.push(i)}return t},mt=e=>!O(e.activity)&&!!e.activity.type&&!!e.activity.actor,nn=e=>mt(e)&&!!e.actorInfo&&!!e.actorInfo.did,je=e=>{if(!e)return null;const{meta:t,target:r,actor:s}=e||{};let i=r?.id;return r?.type==="user"&&(i=ce(G(B.WELLKNOWN_SERVICE_PATH_PREFIX,"user"),{did:s})),{metaLink:t?.id,targetLink:i}},ke=e=>pt(e),A={COMMENT:"comment",LIKE:"like",FOLLOW:"follow",TIPS:"tips",MENTION:"mention",ASSIGN:"assign",UN_ASSIGN:"un_assign"},ft={[A.COMMENT]:(e,t,r)=>t>1?n.jsxs(n.Fragment,{children:["have left ",t," comments on ",r?"your":"the"," ",e,":"]}):n.jsxs(n.Fragment,{children:["has commented on ",r?"your":"the"," ",e,":"]}),[A.LIKE]:(e,t,r)=>t>1?n.jsxs(n.Fragment,{children:["have liked ",r?"your":"the"," ",e,":"]}):n.jsxs(n.Fragment,{children:["have liked ",r?"your":"the"," ",e,":"]}),[A.FOLLOW]:(e,t)=>t>1?n.jsx(n.Fragment,{children:"have followed you"}):n.jsx(n.Fragment,{children:"has followed you"}),[A.TIPS]:(e,t,r)=>t>1?n.jsxs(n.Fragment,{children:["left tips for ",r?"your":"the"," ",e,":"]}):n.jsxs(n.Fragment,{children:["left a tip for ",r?"your":"the"," ",e,":"]}),[A.MENTION]:(e,t,r)=>t>1?n.jsxs(n.Fragment,{children:["have mentioned you in ",r?"your":"the"," ",e,":"]}):n.jsxs(n.Fragment,{children:["mentioned you in ",r?"your":"the"," ",e,":"]}),[A.ASSIGN]:()=>n.jsx(n.Fragment,{children:"has assigned you a task: "}),[A.UN_ASSIGN]:()=>n.jsx(n.Fragment,{children:"has revoked your task assignment: "})},$=S.memo(function({user:t,color:r="text.secondary"}){const s=ce(G(B.WELLKNOWN_SERVICE_PATH_PREFIX,"user"),{did:t.did});return n.jsx(ae,{href:s,color:r,target:"_blank",onClick:i=>{i.customPreventRedirect=!0},sx:{fontWeight:600,textDecoration:"none"},children:t.fullName||"System"})});$.propTypes={user:m.shape({did:m.string.isRequired,fullName:m.string.isRequired}).isRequired,color:m.string};$.displayName="UserLink";function rn({activity:e,users:t,actors:r,extra:s={},mountPoint:i=""}){const{session:p}=it()||{},{type:o,target:h}=e||{},{type:x,author:v}=h||{},{linkColor:g="text.secondary"}=s||{},T=_(()=>v?(p?.user?.did||s?.userDid)===v:!0,[p,v]),L=_(()=>{if(!Array.isArray(t))return new Map;const y=new Map;return t.forEach(C=>{C?.did&&!y.has(C.did)&&y.set(C.did,C)}),y},[t]),b=_(()=>Array.isArray(r)?[...new Set(r)].map(C=>C?L.get(C)||{did:C,fullName:"System"}:null):[],[r,L]),R=ue(()=>{if(!Array.isArray(b)||b.length===0)return null;if(b.length===1)return n.jsx($,{user:b[0],color:g});const y=b.slice(0,-1),C=b[b.length-1];if(b.length===2)return n.jsxs(n.Fragment,{children:[n.jsx($,{user:y[0],color:g})," and ",n.jsx($,{user:C,color:g})]});const a=b.length>3,u=a?b.slice(0,2):y;return n.jsxs(n.Fragment,{children:[u.map((f,c)=>n.jsxs(Fe.Fragment,{children:[n.jsx($,{user:f,color:g}),c<u.length-1?", ":""]},f.did)),a?`, and ${b.length-2} others`:n.jsxs(n.Fragment,{children:[", and ",n.jsx($,{user:C,color:g})]})]})}),M=ue(()=>{const y=ft[o];return y?y(x==="doc"?"document":x,t.length,T):null}),E=_(()=>{const y=R(),C=M();return!y||!C?null:n.jsxs(n.Fragment,{children:[y," ",C]})},[o,x,b,R,M]),w=_(()=>{if(!e)return null;const y=je(e);return y?.targetLink?ke(y?.targetLink)?y?.targetLink:G(i,y.targetLink):null},[e,i]);return!o||O(h)?null:n.jsxs(n.Fragment,{children:[E," ",n.jsx(ae,{href:w,color:"primary",target:"_blank",sx:{textDecoration:"none"},onClick:y=>{y.customPreventRedirect=!0},children:h.name||h.desc})]})}const gt={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 7L7 17M8 7h9v9"/>'};Te.propTypes={meta:m.object.isRequired};const xt=le(Ge)(({theme:e})=>({maxWidth:320,display:"flex",flexDirection:"column",gap:e.spacing(1.5),padding:e.spacing(2),marginTop:e.spacing(1),borderRadius:e.spacing(1),border:`1px solid ${e.palette.divider}`,boxShadow:"none"})),yt=le(k)(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",gap:e.spacing(1),marginBottom:e.spacing(1)})),bt=le(k)({display:"flex",justifyContent:"space-between",alignItems:"center"});function Te({meta:e}){const{amount:t,symbol:r,chainId:s}=e,i=()=>{window.open(`https://explorer.arcblock.io/chain/${s}`,"_blank")};return n.jsxs(xt,{children:[n.jsxs(yt,{children:[n.jsx("img",{alt:"ArcBlock Beta",src:"https://bbqat7g5cg33cyr4pdrd6foycgzfb5xxeh2se7gcqkq.did.abtnet.io/payment-kit/methods/arcblock.png",width:32,height:32,style:{borderRadius:16}}),n.jsx(P,{variant:"h5",sx:{color:"text.primary"},children:"ArcBlock"})]}),n.jsxs(bt,{children:[n.jsxs(k,{sx:{display:"flex",alignItems:"baseline",gap:1},children:[n.jsxs(P,{component:"span",variant:"h5",sx:{color:"text.primary",fontWeight:"bold"},children:["+ ",t]}),n.jsx(P,{component:"span",variant:"subtitle2",sx:{color:"text.secondary"},children:r})]}),n.jsx(Be,{variant:"outlined",size:"small",color:"secondary",endIcon:n.jsx(ot,{icon:gt}),onClick:i,sx:{borderRadius:4},children:"View on Chain"})]})]})}vt.propTypes={meta:m.object.isRequired,type:m.string.isRequired,hideTips:m.bool,sx:m.object};function vt({meta:e,type:t,hideTips:r=!1,sx:s={}}){return O(e)?null:t==="tips"&&!r?n.jsx(Te,{meta:e}):n.jsx(P,{variant:"subtitle2",component:"p",sx:[{fontSize:16,color:"text.secondary",wordBreak:"break-all"},...Array.isArray(s)?s:[s]],children:e.content})}var re,he;function wt(){if(he)return re;he=1;var e=ze();function t(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var r=t(e);function s(){return s=Object.assign?Object.assign.bind():function(a){for(var u=1;u<arguments.length;u++){var f=arguments[u];for(var c in f)({}).hasOwnProperty.call(f,c)&&(a[c]=f[c])}return a},s.apply(null,arguments)}function i(a,u){a.prototype=Object.create(u.prototype),a.prototype.constructor=a,o(a,u)}function p(a,u){if(a==null)return{};var f={};for(var c in a)if({}.hasOwnProperty.call(a,c)){if(u.indexOf(c)!==-1)continue;f[c]=a[c]}return f}function o(a,u){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,c){return f.__proto__=c,f},o(a,u)}var h={position:"absolute",bottom:0,left:0,height:0,overflow:"hidden","padding-top":0,"padding-bottom":0,border:"none"},x=["box-sizing","width","font-size","font-weight","font-family","font-style","letter-spacing","text-indent","white-space","word-break","overflow-wrap","padding-left","padding-right"];function v(a,u){if(!a||typeof a!="object")return a;var f={};return Object.keys(a).forEach(function(c){u.indexOf(c)>-1||(f[c]=a[c])}),f}var g=["component","className","unsafeHTML"];function T(a,u){if(u!=="letters"&&u!=="words")throw new Error("Unsupported options basedOn: "+u);if(a.nodeType===Node.TEXT_NODE){var f=document.createDocumentFragment(),c;switch(u){case"words":c=a.textContent.split(/\b|(?=\W)/);break;case"letters":c=Array.from(a.textContent);break}c.forEach(function(N){f.appendChild(L(N))}),a.parentNode.replaceChild(f,a)}else if(a.nodeType===Node.ELEMENT_NODE)for(var l=[].slice.call(a.childNodes),d=l.length,j=0;j<d;j++)T(l[j],u)}function L(a){var u=document.createElement("span");return u.className="LinesEllipsis-unit",u.textContent=a,u}function b(a){a.parentNode.replaceChild(document.createTextNode(a.textContent),a)}function R(a,u){if(!(!u.contains(a)||a===u)){for(;a.nextElementSibling;)a.parentNode.removeChild(a.nextElementSibling);R(a.parentNode,u)}}function M(a){for(var u=a;u=u.parentNode;)if(/p|div|main|section|h\d|ul|ol|li/.test(u.tagName.toLowerCase()))return u}function E(a){return!!(a.offsetHeight&&(a.offsetWidth||/\S/.test(a.textContent)))}var w={component:"div",unsafeHTML:"",maxLine:1,ellipsis:"…",ellipsisHTML:void 0,className:"",basedOn:void 0,onReflow:function(){},winWidth:void 0},y=Object.keys(w),C=function(a){function u(c){var l;return l=a.call(this,c)||this,l.props=s({},w,c),l.state={html:c.unsafeHTML,clamped:!1},l.canvas=null,l.maxLine=0,l.nlUnits=[],l}i(u,a);var f=u.prototype;return f.componentDidMount=function(){this.initCanvas(),this.reflow(this.props)},f.componentDidUpdate=function(l){l.winWidth!==this.props.winWidth&&this.copyStyleToCanvas(),this.props!==l&&this.reflow(this.props)},f.componentWillUnmount=function(){this.canvas.parentNode.removeChild(this.canvas),this.canvas=null},f.setState=function(l,d){return typeof l.clamped<"u"&&(this.clamped=l.clamped),a.prototype.setState.call(this,l,d)},f.initCanvas=function(){if(!this.canvas){var l=this.canvas=document.createElement("div");l.className="LinesEllipsis-canvas "+this.props.className,l.setAttribute("aria-hidden","true"),this.copyStyleToCanvas(),Object.keys(h).forEach(function(d){l.style[d]=h[d]}),document.body.appendChild(l)}},f.copyStyleToCanvas=function(){var l=this,d=window.getComputedStyle(this.target);x.forEach(function(j){l.canvas.style[j]=d[j]})},f.reflow=function(l){this.maxLine=+l.maxLine||1,this.canvas.innerHTML=l.unsafeHTML;var d=l.basedOn||(/^[\x00-\x7F]+$/.test(l.unsafeHTML)?"words":"letters");T(this.canvas,d);var j=this.putEllipsis(this.calcIndexes()),N={clamped:j,html:this.canvas.innerHTML};this.setState(N,l.onReflow.bind(this,N))},f.calcIndexes=function(){var l=[0],d=this.nlUnits=Array.from(this.canvas.querySelectorAll(".LinesEllipsis-unit")),j=d.length;if(!d.length)return l;var N=d.find(E);if(!N)return l;for(var I=1,Q=N.offsetTop,H=1;H<j&&!(E(d[H])&&d[H].offsetTop-Q>1&&(I++,l.push(H),Q=d[H].offsetTop,I>this.maxLine));H++);return l},f.putEllipsis=function(l){if(l.length<=this.maxLine)return!1;this.nlUnits=this.nlUnits.slice(0,l[this.maxLine]);var d=this.nlUnits.pop(),j=this.makeEllipsisSpan();do R(d,this.canvas),M(d).appendChild(j),d=this.nlUnits.pop();while(d&&(!E(d)||j.offsetHeight>d.offsetHeight||j.offsetTop>d.offsetTop));return d&&b(d),this.nlUnits.forEach(b),!0},f.makeEllipsisSpan=function(){var l=this.props,d=l.ellipsisHTML,j=l.ellipsis,N=document.createElement("span");N.appendChild(document.createElement("wbr"));var I=document.createElement("span");return I.className="LinesEllipsis-ellipsis",d?I.innerHTML=d:I.textContent=j,N.appendChild(I),N},f.isClamped=function(){return this.clamped},f.render=function(){var l=this,d=this.state,j=d.html,N=d.clamped,I=this.props,Q=I.component,H=I.className,$e=I.unsafeHTML,Oe=p(I,g);return r.default.createElement(Q,s({className:"LinesEllipsis "+(N?"LinesEllipsis--clamped":"")+" "+H,ref:function(We){return l.target=We}},v(Oe,y)),r.default.createElement("div",{dangerouslySetInnerHTML:{__html:N?j:$e}}))},u}(r.default.PureComponent);return re=C,re}var jt=wt();const kt=qe(jt),Tt=e=>{let t="rgba(0, 0, 0, 0.12)";return e==="warning"?t="#DE9E37":e==="error"?t="#F16E6E":t="rgba(0, 0, 0, 0.12)",t},St=e=>e.every(t=>t.type==="text"),Ct=e=>e.every(t=>t.type==="image"),Lt=e=>rt(e,2).map(t=>({type:"combined",items:t})).filter(t=>(t.items||[]).every(r=>r?.data?.text?.trim?.())),Et=e=>{if(!e.length||e.length<=1)return!1;const t=e[0].type;return e.every(r=>r.type===t)},Rt=(e,t)=>{try{const r=at(e);if(!(r.role!==void 0&&r.role!==lt.RoleType.ACCOUNT))return;const i=G(B.WELLKNOWN_SERVICE_PATH_PREFIX,"user");return ce(i,{did:e,locale:t})}catch(r){console.error(r);return}},sn=(e,t)=>t?.componentMountPoints?.find(s=>s.did===e)?.mountPoint,on=(e,t)=>{if(!e)return null;if(e.actions?.length===1)return e.actions[0].link||null;const r=je(e.activity),s=r?.metaLink||r?.targetLink;if(s)return ke(s)?s:G(t,s);if(e.attachments?.length===1){const i=e.attachments[0];if(i.type==="link")return i.data?.url||null}return null},me=e=>{const{receivers:t=[]}=e;return t.length?t.every(r=>r.read):!0};function Nt(e){const t=e.getBoundingClientRect(),r=window.innerWidth||document.documentElement.clientWidth,s=window.innerHeight||document.documentElement.clientHeight,i=t.height,p=t.width;let o=0;t.top>=0&&t.bottom<=s?o=i:t.top<0&&t.bottom>0&&t.bottom<=s?o=t.bottom:t.top>=0&&t.top<s&&t.bottom>s?o=s-t.top:t.top<0&&t.bottom>s&&(o=s);let h=0;return t.left>=0&&t.right<=r?h=p:t.left<0&&t.right>0&&t.right<=r?h=t.right:t.left>=0&&t.left<r&&t.right>r?h=r-t.left:t.left<0&&t.right>r&&(h=r),o*h/(i*p)>=.5}const an=e=>{if(!e)return[];const t=[],r=5,s=Array.from(e.querySelectorAll(".notification-row")),i=s.length;for(let p=0;p<i;p+=r){const o=s.slice(p,p+r);let h=!0;for(const x of o){const v=x.id;if(Nt(x))t.push(v);else{h=!1;break}}if(!h)break}return t},It=e=>{const t=[];return e&&(e.items?.length?e.items.forEach(r=>{me(r)||t.push(r)}):me(e)||t.push(e)),t},ln=(e,t)=>{let r=[];return t.length&&t.forEach(s=>{const i=e.get(s);i&&(r=r.concat(It(i)))}),r},W=(e,t)=>({...e,...t?{filter:"invert(1)"}:{}}),K=e=>{if(!e)return null;try{return new URL(e).protocol!=="https:"?(console.warn("Image URL must use HTTPS protocol:",e),null):`${B.WELLKNOWN_SERVICE_PATH_PREFIX}/proxy?url=${encodeURIComponent(e)}`}catch(t){return console.warn("Invalid image URL format:",e,t),null}};function Se({attachment:e}){const{data:t}=e,r=U();let s="";try{s=new URL(t.url).host}catch{s=t.url}return n.jsxs(ae,{target:"_blank",rel:"noopener noreferrer",href:t.url,className:"link",style:{wordBreak:"break-all"},onClick:i=>{i.customPreventRedirect=!0},children:[!!s&&n.jsx("span",{className:"url",children:s}),!!t.title&&n.jsx(k,{className:"title",style:{whiteSpace:"unset"},children:t.title}),!!t.description&&n.jsx(k,{className:"description",style:{whiteSpace:"unset",color:r.palette.text.secondary},children:t.description}),!!t.image&&n.jsx(V,{src:Z.getImagePath(t.image),alt:t.title||"",height:128,style:{borderRadius:"8px",maxWidth:"256px",objectFit:"cover"},fallback:K(Z.getImagePath(t.image))})]})}Se.propTypes={attachment:m.object.isRequired};function Ce({attachment:e}){const{data:t}=e;return n.jsx(V,{src:Z.getImagePath(t.url),alt:t.title||"",height:128,style:{borderRadius:"8px",maxWidth:"256px",objectFit:"cover"},sx:{".Img-root":{height:256}},fallback:K(Z.getImagePath(t.url))})}Ce.propTypes={attachment:m.object.isRequired};function Le({attachment:e,...t}){const{data:r}=e,s=r.color?.toLowerCase()||t.color,i=r.size||t.size,p=r.fontWeight||t.fontWeight||400;let o="14px";return i==="small"?o="12px":i==="normal"?o="14px":i==="big"?o="16px":i==="large"&&(o="18px"),n.jsx(Pt,{className:"title",style:{fontSize:o,color:s,whiteSpace:"unset",fontWeight:p},children:r.text})}Le.propTypes={attachment:m.object.isRequired};const Pt=F.span`
2
+ width: 100%;
3
+ display: -webkit-box;
4
+ -webkit-box-orient: vertical;
5
+ -webkit-line-clamp: 2;
6
+ overflow: hidden;
7
+ text-overflow: ellipsis;
8
+ white-space: normal;
9
+ word-break: break-word;
10
+ `;var se,fe;function Mt(){return fe||(fe=1,se={getChainHost:r=>{const s="explorer.arcblockio.cn";return r&&{beta:"beta.abtnetwork.io",main:"main.abtnetwork.io"}[r]||s},getUrlHost:r=>{try{return new URL(r).host}catch{return r}}}),se}var q=Mt(),ie,ge;function Dt(){return ge||(ge=1,ie={linkStyle:{color:"#2754C5",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",fontSize:"14px",textDecoration:"underline"},actionsStyle:{margin:"20px -8px 0px"},actionStyle:{color:"#4598fa",fontSize:14,border:"1px solid #4598fa",display:"inline-block",borderRadius:"4px",margin:"8px",marginTop:"8px",marginBottom:"8px",marginLeft:"8px",marginRight:"8px"},assetStyle:{backgroundColor:"#f6f6f6",borderRadius:"8px",padding:"8px"},remarkStyle:{color:"#9397a1",fontSize:"12px",margin:0,whiteSpace:"pre-line!important"},summaryStyle:{color:"#49c3ad",fontWeight:700},titleStyle:{marginBottom:"6px"},severityColorMap:{normal:"#C4C5CA",success:"#25C99B",error:"#F16E6E",warning:"#DE9E37"},attachmentsStyle:{borderLeft:"2px solid transparent",paddingLeft:"20px"},h1Style:{color:"#333",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",fontSize:"24px",fontWeight:"bold",margin:"40px 0",padding:"0"},footerStyle:{color:"#898989",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",fontSize:"12px",lineHeight:"22px",margin:0}}),ie}var te=Dt();Ee.propTypes={locale:m.string,data:m.object.isRequired};function Ee({locale:e="en",data:t}){const r={zh:"来自",en:"from"}[e]||"from",s={zh:"接收",en:"Received"}[e]||"Received",p=`https://${q.getUrlHost(t.chainHost)||q.getChainHost(t.chainId)}/explorer/tokens/${t.address}/tx`,o=U(),h=o.palette.mode==="dark";let x=t.amount;t.decimal&&(x=t.amount/10**t.decimal);const v=_(()=>({display:"flex",alignItems:"center",rowGap:2,columnGap:4,justifyContent:"space-between",flexWrap:"wrap"}));return n.jsx("a",{href:p,target:"_blank",rel:"noreferrer",onClick:g=>{g.customPreventRedirect=!0},children:n.jsxs(k,{sx:{display:"flex",flexDirection:"column"},children:[n.jsxs(k,{sx:v,children:[n.jsx(P,{component:"div",sx:{fontWeight:700,color:o.palette.text.primary},children:s}),n.jsxs(P,{component:"div",align:"right",style:W(te.summaryStyle,h),sx:{flex:1},children:["+",x," ",t.symbol]})]}),n.jsxs(k,{sx:v,children:[n.jsx(P,{component:"div",style:W({...te.remarkStyle,fontSize:14},h),children:r}),n.jsx(k,{sx:{maxWidth:260,fontSize:14},children:n.jsx(de,{did:t.address,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:e})})]})]})})}Re.propTypes={locale:m.string,data:m.object.isRequired,type:m.oneOf(["asset","vc"])};function Re({locale:e="en",data:t,type:r="asset"}){const s={zh:"接收",en:"Received"}[e]||"Received",i={zh:"来自",en:"from"}[e]||"from",p=q.getUrlHost(t.chainHost)||q.getChainHost(t.chainId),o=t.did||t?.credential?.issuer?.id||"",h=`https://${p}/explorer/assets/${o}`,v=U().palette.mode==="dark",g=_(()=>({display:"flex",alignItems:"center",rowGap:2,columnGap:4,justifyContent:"space-between",flexWrap:"wrap"}));return n.jsx(k,{sx:{pr:1},children:n.jsx("a",{href:h,target:"_blank",style:{textDecoration:"none",color:"initial",display:"block"},onClick:T=>{if(r==="vc"){T.preventDefault();return}T.customPreventRedirect=!0},rel:"noreferrer",children:n.jsxs(k,{sx:{display:"flex",flexDirection:"column"},children:[n.jsxs(k,{sx:g,children:[n.jsx(P,{component:"div",sx:{fontWeight:700,color:"text.primary"},children:s}),n.jsx(P,{component:"div",align:"right",style:W(te.summaryStyle,v),children:"+1 Asset"})]}),o?n.jsxs(k,{sx:g,children:[n.jsx(P,{component:"div",style:W({...te.remarkStyle,fontSize:14},v),children:i}),n.jsx(k,{sx:{maxWidth:260,fontSize:14},children:n.jsx(de,{did:o,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:e})})]}):null]})})})}Ne.propTypes={data:m.object.isRequired,locale:m.string};function Ne({data:e,locale:t="en"}){const s=U().palette.mode==="dark";return n.jsxs("a",{href:e.url,target:"_blank",style:{display:"flex",textDecoration:"none",color:"initial"},onClick:i=>{i.customPreventRedirect=!0},rel:"noreferrer",children:[n.jsx(V,{className:"image",src:e.logo,width:50,height:50,alt:"",fallback:K(e.logo)}),n.jsxs("div",{style:{flex:1,marginLeft:"10px"},children:[n.jsx("div",{style:W({marginBottom:"6px"},s),children:e.title}),n.jsx(k,{sx:{maxWidth:260,fontSize:10},children:n.jsx(de,{did:e.appDID,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:t})})]})]})}Ie.propTypes={locale:m.string,data:m.object.isRequired};function Ie({locale:e="en",data:t}){const r=q.getChainHost(t.chainId),s=`https://${r}/explorer/txs/${t.hash}`,i={zh:"交易详情",en:"Transaction Details"}[e]||"Transaction Details",p={zh:"交易哈希",en:"Transaction Hash"}[e]||"Transaction Hash",o=U(),h=o.palette.mode==="dark";return n.jsxs("a",{href:s,target:"_blank",style:W({textDecoration:"none",color:"initial",display:"block",fontSize:14},h),onClick:x=>{x.customPreventRedirect=!0},rel:"noreferrer",children:[n.jsx("h6",{style:{color:o.palette.text.secondary,margin:0},children:r}),n.jsx("p",{style:{color:o.palette.warning.main,margin:0},children:i}),n.jsxs("div",{style:{wordBreak:"break-all"},children:[p,": ",t.hash]})]})}function Pe({attachment:e,...t}){const{local:r}=S.useContext(ct),s=z(p=>p.breakpoints.down("md")),i=U();return n.jsxs(Ht,{...t,isMd:s,children:[e.type==="link"&&n.jsx(Se,{attachment:e,...t,isMd:s}),e.type==="image"&&n.jsx(Ce,{attachment:e,isMd:s}),e.type==="text"&&n.jsx(Le,{attachment:e,isMd:s}),e.type==="token"&&n.jsx(Ee,{data:e.data,local:r,isMd:s}),e.type==="asset"||e.type==="vc"?n.jsx(Re,{data:e.data,local:r,isMd:s,type:e.type}):null,e.type==="dapp"&&n.jsx(Ne,{data:e.data,local:r,isMd:s}),e.type==="transaction"&&n.jsx(Ie,{data:e.data,local:r,...t,isMd:s}),e.type==="divider"&&n.jsx(ye,{sx:{mb:1,mt:1},style:{color:i.palette.divider}})]})}const Ht=F.div`
11
+ display: ${({sx:e={}})=>e.display||"flex"};
12
+ flex-direction: ${({sx:e={}})=>e.flexDirection||"column"};
13
+ gap: ${({sx:e={}})=>e.gap||1};
14
+ width: ${({isMd:e=!1})=>e?"100%":"auto"};
15
+ &:last-child {
16
+ margin-bottom: 0;
17
+ }
18
+ `;Pe.propTypes={attachment:m.object.isRequired};function Me({data:e,...t}){const{items:r}=e;return n.jsx(Ut,{...t,children:r.map(s=>n.jsxs(be,{variant:"outlined",sx:{p:2,borderRadius:"8px",minWidth:128},children:[n.jsxs(k,{sx:{display:"flex",alignItems:"center",gap:1},children:[s.icon?n.jsx(V,{src:s.icon,alt:s.title,style:{width:16,height:16},fallback:K(s.icon)}):null,n.jsxs(k,{className:"metric-name",sx:{display:"flex",alignItems:"center"},children:[s.title,s.subtitle?n.jsx(Ve,{title:s.subtitle,arrow:!0,placement:"top",children:n.jsx(Ke,{fontSize:"small",sx:{fontSize:14,ml:.5}})}):null]})]}),n.jsxs(k,{className:"metric-number",sx:{color:s.content_color||"rgba(3, 7, 18, 1)"},children:[s.content,s.sub_content?n.jsxs("span",{className:"sub-content",style:{color:s.sub_content_color||"rgba(156, 163, 175, 1)"},children:["(",s.sub_content,")"]}):null]})]},s.title))})}const Ut=F(k)`
19
+ display: flex;
20
+ justify-content: flex-start;
21
+ flex-wrap: wrap;
22
+ gap: 16px;
23
+ .metric-number {
24
+ font-size: 18px;
25
+ font-weight: 600;
26
+ .sub-content {
27
+ font-size: 12px;
28
+ font-weight: 400;
29
+ margin-left: 4px;
30
+ }
31
+ }
32
+ .metric-name {
33
+ font-size: 14px;
34
+ color: rgba(156, 163, 175, 1);
35
+ }
36
+ `;Me.propTypes={data:m.object.isRequired};function De({data:e}){const{items:t}=e,r=z(o=>o.breakpoints.down("sm")),s=z(o=>o.breakpoints.down("md")),i=z(o=>o.breakpoints.down("lg")),p=()=>r?1:s?3:i?4:6;return n.jsx(Qe,{variant:"quilted",cols:p(),gap:8,rowHeight:128,sx:{margin:0},children:t.map(o=>{const h=o.cover||o.display;return h?n.jsx("a",{href:o.link,target:"_blank",rel:"noopener noreferrer",children:n.jsx(Xe,{children:n.jsx(V,{src:h,alt:o.title||"",style:{borderRadius:"8px"},fallback:K(h)})})},h):null})})}De.propTypes={data:m.object.isRequired};function He({data:e,feedType:t="data-tracker",...r}){return n.jsxs(At,{...r,children:[t==="data-tracker"&&e.type==="table"&&n.jsx(Me,{data:e}),(t==="graphic"||t==="gallery")&&n.jsx(De,{data:e})]})}const At=F.div`
37
+ display: flex;
38
+ flex-direction: column;
39
+ width: 100%;
40
+ margin-bottom: 4px;
41
+ &:last-child {
42
+ margin-bottom: 0;
43
+ }
44
+ `;He.propTypes={data:m.object.isRequired,feedType:m.string};J.propTypes={data:m.object.isRequired,style:m.object};function J({data:e,style:t={}}){const s=U().palette.mode==="dark";return n.jsx(P,{style:W({color:s&&e.darkModeColor?e.darkModeColor:e.color||"initial",margin:0,whiteSpace:"pre-line!important",...t},s),children:e.text})}function Ue({data:e}){const t=[];for(let r=0;r<e?.length;r+=2){const s=e[r],i=e[r+1];s&&i?t.push(n.jsxs(xe,{children:[n.jsx("td",{className:"label-col",children:n.jsx(J,{data:s.data,style:{whiteSpace:"nowrap",fontSize:"14px"}})}),n.jsx("td",{className:"value-col",children:n.jsx(J,{data:i.data,style:{wordBreak:"break-all",textAlign:"right",fontSize:"14px"}})})]},r)):s&&t.push(n.jsx(xe,{children:n.jsx("td",{className:"label-col",children:n.jsx(J,{data:s.data,style:{fontSize:"14px"}})})},r))}return n.jsx("table",{style:{width:"100%"},children:n.jsx("tbody",{children:t})})}Ue.propTypes={data:m.array.isRequired};const xe=F.tr`
45
+ display: flex;
46
+ flex-direction: row;
47
+ justify-content: flex-start;
48
+ align-items: center;
49
+ font-size: 14px;
50
+ gap: ${({theme:e})=>e.spacing(1)};
51
+ padding: ${({theme:e})=>e.spacing(1)} 0;
52
+ border-bottom: 1px solid ${({theme:e})=>e.palette.divider};
53
+
54
+ &:last-child {
55
+ border-bottom: none;
56
+ padding-bottom: 0;
57
+ }
58
+ &:first-child {
59
+ padding-top: 0;
60
+ }
61
+
62
+ .label-col {
63
+ min-width: 130px;
64
+ flex-shrink: 0;
65
+ }
66
+ .value-col {
67
+ flex: 1;
68
+ }
69
+ `;function Ae({notification:e,severity:t,showSke:r=!0}){const{attachments:s,data:i,...p}=e,o=z(g=>g.breakpoints.down("md"));if((!s||!s.length)&&O(i))return null;const h=Tt(t),x=(g,T=!1)=>{if(!g&&!Array.isArray(g))return null;let L=g,b={},R="horizontal";T&&St(g)&&(L=Lt(g),R="vertical",b={display:"flex",gap:8,flexDirection:"row",justifyContent:"flex-start",flexWrap:"wrap",height:"100%",width:o||L.length===1?"100%":"28%"});const M=Et(L);return n.jsx(k,{sx:{width:"100%",display:"flex",gap:1,flexDirection:T?"row":"column",justifyContent:"flex-start",alignItems:T?"center":"unset",flexWrap:"wrap"},children:L.map((E,w)=>E.type==="section"?n.jsx(Ue,{data:E.fields},w):n.jsxs(S.Fragment,{children:[n.jsx(Pe,{attachment:E,style:b,...p}),!(o&&R==="vertical")&&M&&L.length>1&&w!==L.length-1?n.jsx(ye,{orientation:R,style:{color:ht.dividerColor},sx:R==="vertical"?{ml:2,mr:2,height:32}:{}}):null]},w))})},v=Ct(s);return n.jsx(_t,{children:n.jsxs("div",{className:"message-in-list",children:[s.length>0&&n.jsx("div",{className:"message-container",style:o?{width:"100%"}:{},children:v?x(s):n.jsx(be,{variant:"outlined",className:"attachment-card",sx:{px:o?1:2,py:1.5,borderRadius:"8px",minWidth:128,borderColor:h},children:x(s)})}),!O(i)&&n.jsx("div",{className:"message-container",children:n.jsx("div",{className:"data-container",children:n.jsx(He,{data:i,feedType:e.feedType})})}),s.length===0&&O(i)&&r&&n.jsx(Ye,{className:"attach-ske",style:{marginTop:10},variant:"rectangular",height:150})]})})}const _t=F.div`
70
+ display: flex;
71
+ flex-direction: column;
72
+ .message-in-list {
73
+ padding: ${({theme:e})=>`${e.spacing(1.5)} ${e.spacing(1.5)} ${e.spacing(1.5)} 0`};
74
+ display: flex;
75
+ border-radius: 8px;
76
+ }
77
+ .message-title {
78
+ color: #25292f;
79
+ font-size: 18px;
80
+ font-weight: bold;
81
+ word-break: break-all;
82
+ }
83
+
84
+ .attach-ske {
85
+ position: relative;
86
+ margin-left: 10px;
87
+ &::after {
88
+ content: '';
89
+ position: absolute;
90
+ left: -10px;
91
+ top: 0;
92
+ height: 100%;
93
+ width: 4px;
94
+ background-color: ${e=>e.leftLineColor};
95
+ }
96
+ }
97
+
98
+ .message-body {
99
+ color: #25292f;
100
+ font-size: 16px;
101
+ word-break: break-all;
102
+ white-space: pre-line;
103
+ }
104
+ .message-container {
105
+ display: flex;
106
+ flex-direction: column;
107
+ justify-content: flex-start;
108
+ .data-container,
109
+ .attachment-container {
110
+ display: flex;
111
+ flex-direction: column;
112
+ width: 100%;
113
+ }
114
+ }
115
+ .actions-container {
116
+ margin-top: 10px;
117
+ .actions-item {
118
+ margin-right: 8px;
119
+ }
120
+ }
121
+ `;Ae.propTypes={severity:m.string.isRequired,notification:m.object.isRequired,showSke:m.bool};const oe=e=>Je.sanitize(e,{ALLOWED_ATTR:["href","target","rel","class","id","style"]}),$t=async(e,t)=>{const{type:r,did:s}=e;return ve.isSameAddr(r,"did")?await Rt(s,t)||ee.getLink(e):ee.getLink(e)};function Ot(e){return new TextEncoder().encode(e).length>=1e4}const Wt=async(e,t,r=!0)=>{let s=e;Ot(e)&&(s=e.slice(0,1e4));const i=ee.toTextList(s);return await Promise.all(i.map(async o=>{if(o instanceof ee.Link){if(r){const h=await $t(o,t),{type:x,chainId:v,did:g}=o;return ve.isSameAddr(x,"dapp")?`<em style="font-weight:bold;" data-type="${x}" data-chain-id="${v}" data-did="${g}">${o.text}</em>`:h?`<a target="_blank" rel="noopener noreferrer" style="color:#4598fa;font-weight:bold;" href="${h}">${o.text}</a>`:`<em style="font-weight:bold;" data-type="${x}" data-chain-id="${v}" data-did="${g}">${o.text}</em>`}return o.text}return o})).then(o=>o.join(""))};_e.propTypes={notification:m.object,rows:m.number,minimal:m.bool};function _e({notification:e,rows:t=2,minimal:r=!1}){const[s,i]=S.useState(!1),[p,o]=S.useState(""),{t:h,locale:x}=we(),{palette:v}=U(),g=S.useMemo(()=>{const{attachments:w}=e||{};if(!w)return!1;try{return w.length>0}catch{return!1}},[e]),T=S.useMemo(()=>{const{blocks:w}=e||{};if(!w)return!1;try{return w.length>0}catch{return!1}},[e]),L=S.useMemo(()=>{const{description:w}=e||{};return!!w},[e]),b=S.useMemo(()=>{const{data:w}=e||{};return!O(w)},[e]),R=S.useMemo(()=>g||T||L||b,[g,T,L,b]);if(S.useEffect(()=>{Wt(e?.description??"",x).then(w=>{o(w)})},[e?.description,x]),!R)return null;const M=()=>t===0?"":s?`<span class='toggle-btn' data-name='toggle-expanded'>${h("common.collapse")}</span>`:`...<span class='toggle-btn' data-name='toggle-expanded'>${h("common.expand")}</span>`,E=w=>{const{target:y}=w;y.getAttribute("data-name")==="toggle-expanded"&&(i(!s),w.customPreventRedirect=!0)};return n.jsxs(Ft,{color:r?v.common.white:"",children:[n.jsx(k,{className:"text-container",component:"div",onClick:E,children:p&&(!s&&t>0?n.jsx(kt,{innerRef:()=>{},onReflow:()=>{},basedOn:"letters",component:"article",unsafeHTML:oe(p),maxLine:t,ellipsisHTML:oe(M())}):n.jsx(P,{component:"div",className:`content ${t===0?"ellipsis":""}`,style:{whiteSpace:"pre-line!important"},dangerouslySetInnerHTML:{__html:oe(`${p}${M()}`)}}))}),!r&&(g||b)?n.jsx(Ae,{severity:e.severity,notification:e}):null]})}const Ft=F(k)`
122
+ width: 100%;
123
+ color: ${e=>e.color?e.color:e.theme.palette.text.secondary};
124
+ .text-container {
125
+ word-wrap: break-word;
126
+ word-break: break-all;
127
+ color: ${e=>e.color?e.color:e.theme.palette.text.secondary};
128
+ .toggle-btn {
129
+ display: inline-block;
130
+ white-space: nowrap;
131
+ cursor: pointer;
132
+ margin-left: 4px;
133
+ color: ${e=>e.theme.palette.secondary.main};
134
+ }
135
+ .content.ellipsis {
136
+ overflow: hidden;
137
+ text-overflow: ellipsis;
138
+ word-break: break-all;
139
+ display: block;
140
+ display: -webkit-box;
141
+ -webkit-box-orient: vertical;
142
+ -webkit-line-clamp: 2;
143
+ line-height: 1.25;
144
+ }
145
+ }
146
+ `,cn=S.memo(_e);function dn({blocklet:e,square:t}={}){const{logoUrl:r,logoDarkUrl:s,rectLogoUrl:i,rectLogoDarkUrl:p}=ut({blocklet:e}),o=S.useMemo(()=>({appLogo:r,appLogoDark:s,appLogoRect:i,appLogoRectDark:p}),[r,s,i,p]);return Ze({meta:o,square:t})}const pe=S.createContext({}),{Provider:pn,Consumer:un}=pe;function hn(){return S.useContext(pe)}const{Provider:zt,Consumer:mn}=pe,{did:D,appId:qt}=window.env;function fn({children:e,mode:t="dashboard"}){const{t:r,locale:s}=we(),{blocklet:i}=et(),[p,o]=S.useState([]),[h,x]=S.useState([]),[v,g]=S.useState([]),T=tt.getDisplayName(i),L=(i?.environments||[]).find(c=>c.key===X.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_PASSPORT_COLOR)?.value||"auto",b=i?.trustedPassports||[],R=i?.trustedFactories||[],M=i?.enablePassportIssuance!==!1,E=async()=>{try{const c=await Y.doBatchQuery({getRoles:{input:{teamDid:D}},getPermissions:{input:{teamDid:D}},getInvitations:{input:{teamDid:D}}}),l=(c.getRoles.roles||[]).filter(d=>!B.RBAC_CONFIG.roles.some(j=>j.name===d.name&&(!j.passport||j.ci))&&!d.orgId).map(d=>(d.hasDescription=!!d.description,d.hasDescription||(d.description=r("team.passport.description",{teamName:T,title:d.title})),d));x(st(l,[d=>nt(d.name)],["desc"])),g(c.getPermissions.permissions||[]),o(c.getInvitations.invitations||[])}catch(c){dt.error(c.message)}},w=({did:c}={})=>{const l={teamDid:D,user:{did:c}};return Y.getUser({input:l})},y=({query:c,paging:l}={})=>{const d={teamDid:D};return l&&(d.paging=l),c&&(d.query=c),d.sort={lastLoginAt:-1},Y.getUsers({input:d})},C=()=>Y.getUsersCountPerRole({input:{teamDid:D}}),a=()=>E();S.useEffect(()=>{i?.meta?.did&&E()},[i?.meta?.did]),S.useEffect(()=>{x(c=>c.map(l=>(l.hasDescription||(l.description=r("team.passport.description",{teamName:T,title:l.title})),{...l})))},[r,s]);const u=c=>{c.teamDid===D&&E()};ne(t==="dashboard"?X.TeamEvents.userAdded:"",u,[D]),ne(t==="dashboard"?X.TeamEvents.userRemoved:"",u,[D]),ne(t==="dashboard"?X.TeamEvents.userUpdated:"",u,[D]);const f={teamDid:D,teamIssuerDid:qt,teamName:T,invitations:p,roles:h,permissions:v,trustedPassports:b,trustedFactories:R,isNodeTeam:!1,enablePassportIssuance:M,refresh:a,passportColor:L,endpoint:window.location.origin,blocklet:i,api:{getUser:w,getUsers:y,getUsersCountPerRole:C}};return n.jsx(zt,{value:f,children:e})}export{vt as M,cn as N,fn as T,dn as a,hn as b,me as c,ke as d,nn as e,gt as f,je as g,an as h,mt as i,ln as j,sn as k,It as l,tn as m,on as n,rn as u};
@@ -1 +1 @@
1
- import{a as n,r as k}from"./vendor-react-CTtPmzVP.js";import{cm as Ne,Q as j,Z as Oe,al as ue,c as Te,a1 as me}from"./index-DG0EDext.js";import{av as je,C as Ie}from"./vendor-utils-CxWN1dT3.js";import{u as Pe}from"./useAsyncRetry-r8dEPb-x.js";import{I as Ye}from"./iframe-CC7bnIjL.js";import{ak as $,P as ye,b4 as f,a3 as ne,T as Y,dN as Fe,V as Le,S as He,aP as _e,I as K,cS as We,y as he,bZ as fe,M as pe,cR as Ae,dO as Ve,n as ge,j as p,W as I,D as ze,a6 as qe,aZ as Be,Q as $e,aN as Ke,bt as Je}from"./vendor-mui-core-DnR6WYuU.js";import{r as ie,b as Me,G as T,z as re,M as W,L as A,A as P,e as V,K as z,J,I as Q,C as F,B as w,E as De,Q as le,y as Qe,D as Ue,H as ce,d as Ze,P as se,F as _,R as Ge,S as Xe,N as et,U as tt,O as at}from"./index-BJ6le4Td.js";import{bV as be,V as ke}from"./vendor-ux-IiqHAjMq.js";import{f as nt}from"./index-DBs9Ljax.js";import{B as rt}from"./base-chart-ChBZtUEG.js";import{L as st,a as ot}from"./vendor-mui-x-CQc01l4r.js";import{A as it}from"./AdapterDayjs-CIz_EOtQ.js";function Re(e){ie(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(be(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var a;return t.forEach(function(r){var s=Me(r);(a===void 0||a<s||isNaN(Number(s)))&&(a=s)}),a||new Date(NaN)}function Se(e){ie(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(be(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var a;return t.forEach(function(r){var s=Me(r);(a===void 0||a>s||isNaN(s.getDate()))&&(a=s)}),a||new Date(NaN)}function lt(e){return ie(1,arguments),T(e,Date.now())}const ct=(e,t)=>Array.from({length:Math.ceil(e.length/t)},(a,r)=>e.slice(r*t,r*t+t)),dt=(e,t)=>{const a=A(z(e),{locale:t}),r=W(V(e),{locale:t}),s=[];for(let o=a;_(o,r);)s.push(o),o=re(o,1);return s},ut=({startDate:e},t)=>e&&T(t,e),mt=({endDate:e},t)=>e&&T(t,e),ht=({startDate:e,endDate:t},a)=>e&&t&&(le(a,{start:e,end:t})||T(a,e)||T(a,t)),ft=({startDate:e,endDate:t})=>e&&t?T(e,t):!1,ve=(e,t)=>{if(e){const a=e instanceof Date?e:Qe(e);if(Ue(a))return a}return t},pt=(e,t,a)=>{const{startDate:r,endDate:s}=e;if(r&&s){const o=Re([r,t]),c=Se([s,a]);return[o,ce(o,c)?w(o,1):c]}return[r,s]},gt=(e,t)=>[{label:"Today",startDate:e,endDate:e},{label:"Yesterday",startDate:re(e,-1),endDate:re(e,-1)},{label:"This Week",startDate:A(e,{locale:t}),endDate:W(e,{locale:t})},{label:"Last Week",startDate:A(P(e,-1),{locale:t}),endDate:W(P(e,-1),{locale:t})},{label:"Last 7 Days",startDate:P(e,-1),endDate:e},{label:"This Month",startDate:z(e),endDate:V(e)},{label:"Last Month",startDate:z(w(e,-1)),endDate:V(w(e,-1))},{label:"This Year",startDate:Q(e),endDate:J(e)},{label:"Last Year",startDate:Q(F(e,-1)),endDate:J(F(e,-1))}],Dt=(e,t)=>{const a=Math.floor(t/2);return Array(t).fill(0).map((r,s)=>e.getFullYear()-a+s)},vt=({date:e,setDate:t,nextDisabled:a,prevDisabled:r,onClickNext:s,onClickPrevious:o,locale:c})=>{const m=typeof c<"u"?[...Array(12).keys()].map(l=>{var v;return(v=c.localize)===null||v===void 0?void 0:v.month(l,{width:"abbreviated",context:"standalone"})}):["Jan","Feb","Mar","Apr","May","June","July","Aug","Sept","Oct","Nov","Dec"],g=l=>{t(tt(e,parseInt(l.target.value,10)))},d=l=>{t(at(e,parseInt(l.target.value,10)))};return n.createElement(f,{container:!0,justifyContent:"space-between",alignItems:"center"},n.createElement(f,{item:!0,sx:{padding:"5px"}},n.createElement(K,{sx:{padding:"10px","&:hover":{background:"none"}},disabled:r,onClick:o},n.createElement(We,{color:r?"disabled":"action"}))),n.createElement(f,{item:!0},n.createElement(he,{variant:"standard"},n.createElement(fe,{value:Xe(e),onChange:g,MenuProps:{disablePortal:!0}},m.map((l,v)=>n.createElement(pe,{key:l,value:v},l))))),n.createElement(f,{item:!0},n.createElement(he,{variant:"standard"},n.createElement(fe,{value:et(e),onChange:d,MenuProps:{disablePortal:!0}},Dt(e,30).map(l=>n.createElement(pe,{key:l,value:l},l))))),n.createElement(f,{item:!0,sx:{padding:"5px"}},n.createElement(K,{sx:{padding:"10px","&:hover":{background:"none"}},disabled:a,onClick:s},n.createElement(Ae,{color:a?"disabled":"action"}))))},xt=({startOfRange:e,endOfRange:t,disabled:a,highlighted:r,outlined:s,filled:o,onClick:c,onHover:m,value:g})=>n.createElement($,{sx:{display:"flex",borderRadius:e?"50% 0 0 50%":t?"0 50% 50% 0":void 0,backgroundColor:d=>!a&&r?d.palette.primary.light:void 0}},n.createElement(K,{sx:Object.assign({height:"36px",width:"36px",padding:0,border:d=>!a&&s?`1px solid ${d.palette.primary.dark}`:void 0},!a&&o?{"&:hover":{backgroundColor:d=>d.palette.primary.dark},backgroundColor:d=>d.palette.primary.dark}:{}),disabled:a,onClick:c,onMouseOver:m},n.createElement(Y,{sx:{lineHeight:1.6,color:d=>a?d.palette.text.secondary:o?d.palette.primary.contrastText:d.palette.text.primary},variant:"body2"},g)));var U;(function(e){e[e.Previous=-1]="Previous",e[e.Next=1]="Next"})(U||(U={}));const xe=e=>{var t;const{helpers:a,handlers:r,value:s,dateRange:o,marker:c,setValue:m,minDate:g,maxDate:d,locale:l}=e,v=((t=l?.options)===null||t===void 0?void 0:t.weekStartsOn)||0,C=typeof l<"u"?[...Array(7).keys()].map(D=>{var E;return(E=l.localize)===null||E===void 0?void 0:E.day((D+v)%7,{width:"short",context:"standalone"})}):["Su","Mo","Tu","We","Th","Fr","Sa"],[x,R]=e.navState;return n.createElement(ye,{square:!0,elevation:0,sx:{width:290}},n.createElement(f,{container:!0},n.createElement(vt,{date:s,setDate:m,nextDisabled:!R,prevDisabled:!x,onClickPrevious:()=>r.onMonthNavigate(c,U.Previous),onClickNext:()=>r.onMonthNavigate(c,U.Next),locale:l}),n.createElement(f,{item:!0,container:!0,direction:"row",justifyContent:"space-between",sx:{marginTop:"10px",paddingLeft:"30px",paddingRight:"30px"}},C.map((D,E)=>n.createElement(Y,{color:"textSecondary",key:E,variant:"caption"},D))),n.createElement(f,{item:!0,container:!0,direction:"column",justifyContent:"space-between",sx:{paddingLeft:"15px",paddingRight:"15px",marginTop:"15px",marginBottom:"20px"}},ct(dt(s,l),7).map((D,E)=>n.createElement(f,{key:E,container:!0,direction:"row",justifyContent:"center"},D.map(h=>{const N=ut(o,h),b=mt(o,h),S=ft(o),y=ht(o,h)||a.inHoverRange(h);return n.createElement(xt,{key:se(h,"dd-MM-yyyy"),filled:N||b,outlined:lt(h),highlighted:y&&!S,disabled:!ce(s,h)||!le(h,{start:g,end:d}),startOfRange:N&&!S,endOfRange:b&&!S,onClick:()=>r.onDayClick(h),onHover:()=>r.onDayHover(h),value:Ge(h)})}))))))},Ee=(e,t)=>{const{startDate:a,endDate:r}=e,{startDate:s,endDate:o}=t;return a&&s&&r&&o?T(a,s)&&T(r,o):!1},Et=({ranges:e,setRange:t,selectedRange:a})=>n.createElement(Le,null,e.map((r,s)=>n.createElement(He,{button:!0,key:s,onClick:()=>t(r),sx:[Ee(r,a)&&{backgroundColor:o=>o.palette.primary.dark,color:"primary.contrastText","&:hover":{color:"inherit"}}]},n.createElement(_e,{primaryTypographyProps:{variant:"body2",sx:{fontWeight:Ee(r,a)?"bold":"normal"}}},r.label)))),oe={FIRST_MONTH:Symbol("firstMonth"),SECOND_MONTH:Symbol("secondMonth")},yt=e=>{const{ranges:t,dateRange:a,minDate:r,maxDate:s,firstMonth:o,setFirstMonth:c,secondMonth:m,setSecondMonth:g,setDateRange:d,helpers:l,handlers:v,locale:C}=e,{startDate:x,endDate:R}=a,D=Ze(m,o)>=2,E={dateRange:a,minDate:r,maxDate:s,helpers:l,handlers:v};return n.createElement(ye,{elevation:5,square:!0},n.createElement(f,{container:!0,direction:"row",wrap:"nowrap"},n.createElement(f,null,n.createElement(Et,{selectedRange:a,ranges:t,setRange:d})),n.createElement(ne,{orientation:"vertical",flexItem:!0}),n.createElement(f,null,n.createElement(f,{container:!0,sx:{padding:"20px 70px"},alignItems:"center"},n.createElement(f,{item:!0,sx:{flex:1,textAlign:"center"}},n.createElement(Y,{variant:"subtitle1"},x?se(x,"dd MMMM yyyy",{locale:C}):"Start Date")),n.createElement(f,{item:!0,sx:{flex:1,textAlign:"center"}},n.createElement(Fe,{color:"action"})),n.createElement(f,{item:!0,sx:{flex:1,textAlign:"center"}},n.createElement(Y,{variant:"subtitle1"},R?se(R,"dd MMMM yyyy",{locale:C}):"End Date"))),n.createElement(ne,null),n.createElement(f,{container:!0,direction:"row",justifyContent:"center",wrap:"nowrap"},n.createElement(xe,Object.assign({},E,{value:o,setValue:c,navState:[!0,D],marker:oe.FIRST_MONTH,locale:C})),n.createElement(ne,{orientation:"vertical",flexItem:!0}),n.createElement(xe,Object.assign({},E,{value:m,setValue:g,navState:[D,!0],marker:oe.SECOND_MONTH,locale:C}))))))},Mt=e=>{const t=new Date,{open:a,onChange:r,initialDateRange:s,minDate:o,maxDate:c,definedRanges:m=gt(new Date,e.locale),locale:g}=e,d=ve(o,F(t,-10)),l=ve(c,F(t,10)),[v,C]=pt(s||{},d,l),[x,R]=k.useState(Object.assign({},s)),[D,E]=k.useState(),[h,N]=k.useState(v||t),[b,S]=k.useState(C||w(h,1)),{startDate:y,endDate:L}=x,q=u=>{_(u,b)&&N(u)},H=u=>{De(u,h)&&S(u)},Z=u=>{let{startDate:i,endDate:M}=u;if(i&&M)u.startDate=i=Re([i,d]),u.endDate=M=Se([M,l]),R(u),r(u),N(i),S(ce(i,M)?w(i,1):M);else{const de={};R(de),r(de),N(t),S(w(h,1))}},B=u=>{if(y&&!L&&!_(u,y)){const i={startDate:y,endDate:u};r(i),R(i)}else R({startDate:u,endDate:void 0});E(u)},G=(u,i)=>{if(u===oe.FIRST_MONTH){const M=w(h,i);_(M,b)&&N(M)}else{const M=w(b,i);_(h,M)&&S(M)}},X=u=>{y&&!L&&(!D||!T(u,D))&&E(u)},te={inHoverRange:u=>y&&!L&&D&&De(D,y)&&le(u,{start:y,end:D})},ae={onDayClick:B,onDayHover:X,onMonthNavigate:G};return a?k.createElement(yt,{dateRange:x,minDate:d,maxDate:l,ranges:m,firstMonth:h,secondMonth:b,setFirstMonth:q,setSecondMonth:H,setDateRange:Z,helpers:te,handlers:ae,locale:g}):null},bt=e=>{const{closeOnClickOutside:t,wrapperClassName:a,toggle:r,open:s}=e,o=()=>{t!==!1&&r()},c=m=>m?.key==="Escape"&&o();return n.createElement($,{sx:{position:"relative"}},s&&n.createElement($,{sx:{position:"fixed",height:"100vh",width:"100vw",bottom:0,zIndex:0,right:0,left:0,top:0},onKeyPress:c,onClick:o}),n.createElement($,{sx:{position:"relative",zIndex:1},className:a},n.createElement(Mt,Object.assign({},e))))},kt=e=>n.createElement(bt,Object.assign({},e));function Ce({title:e="",total:t=0,hoverIndex:a=null,onHover:r=()=>{},history:s=[],valueFn:o=c=>c}){const c=Ve(),{locale:m}=ke(),g=[{min:0,max:t,color:ge(c.palette.primary.main,c.palette.mode==="dark"?.15:.08)},{min:t,color:ge(c.palette.primary.main,c.palette.mode==="dark"?.15:.08)}];return p.jsx(rt,{title:e,total:t,history:s,valueFn:o,onHover:r,hoverIndex:a,xAxisFormat:d=>Ne(d,"MM-DD",m),visualMapPieces:g,markLineData:void 0,extraInfo:null})}Ce.propTypes={title:I.string,total:I.number,history:I.array,valueFn:I.func,hoverIndex:I.number,onHover:I.func};const O=je(0),we=(e,t)=>[{label:"This Week",startDate:A(e,{locale:t}),endDate:W(e,{locale:t})},{label:"Last Week",startDate:A(P(e,-1),{locale:t}),endDate:W(P(e,-1),{locale:t})},{label:"Last 7 Days",startDate:P(e,-1),endDate:e},{label:"This Month",startDate:z(e),endDate:V(e)},{label:"Last Month",startDate:z(w(e,-1)),endDate:V(w(e,-1))},{label:"This Year",startDate:Q(e),endDate:J(e)},{label:"Last Year",startDate:Q(F(e,-1)),endDate:J(F(e,-1))}],Rt=Array.from({length:7},(e,t)=>({value:0,date:j().subtract(t,"day").format("YYYY-MM-DD")})).reverse();function St({client:e,did:t}){const a=j().subtract(1,"day").toDate(),{info:r,inService:s}=Oe(),{t:o,locale:c}=ke(),[m,g]=k.useState(null),[d,l]=k.useState(!1),[v,C]=k.useState(a),[x,R]=k.useState({startDate:j().subtract(30,"day").toDate(),endDate:a}),D=ze(),[E,h]=k.useState(null),N=k.useCallback(i=>{h(i)},[]),b=Pe(async()=>(await e.getTrafficInsights({input:{did:t,startDate:j(x.startDate).format("YYYY-MM-DD"),endDate:j(x.endDate).format("YYYY-MM-DD")}})).list);k.useEffect(()=>{b.loading||x.startDate&&x.endDate&&b.retry()},[x]);const S=i=>{g(m?null:i.currentTarget)},y=b.value||[],{loading:L,error:q}=b;if(!y.length&&L)return p.jsx(qe,{});if(q)return p.jsx(Be,{severity:"error",children:nt(q)});const H={totalRequests:O,validRequests:O,failedRequests:O,uniqueVisitors:O,uniqueFiles:O,uniqueReferrers:O,uniqueNotFound:O,uniqueStaticFiles:O,logSize:ue,bandwidth:ue},Z=Object.keys(H).map(i=>({id:`${i}_chart`,title:o(`analytics.traffic.${i}`),current:y.length?H[i](y[0][i]):0,data:y.length?y.map(M=>({date:M.date,value:M[i]})).reverse():Rt,dateFn:O,valueFn:H[i],total:0})),B=!!m,G=B?"date-range-picker-popover":void 0,X=s?Te.WELLKNOWN_SERVICE_PATH_PREFIX:r.routing.adminPath,ee=Ie(window.location.origin,X,`/api/analytics/traffic?date=${j(v).format("YYYY-MM-DD")}&did=${t}&theme=${D.palette.mode}`),te=i=>{R(i),g(null)},ae=i=>{C(i.toDate()),l(!1)},u=()=>{window.open(ee)};return p.jsxs("div",{children:[p.jsxs(Y,{component:"div",variant:"h5",className:"page-header",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},sx:{mb:2},children:[o("analytics.trend"),p.jsxs($e,{onClick:S,variant:"outlined",size:"small",color:"inherit",sx:{fontWeight:400},children:[me(x.startDate,c)," - ",me(x.endDate,c)]})]}),p.jsx(Ke,{id:G,open:B,anchorEl:m,onClose:()=>g(null),anchorOrigin:{vertical:"bottom",horizontal:"left"},children:p.jsx(kt,{open:!0,toggle:S,maxDate:a,definedRanges:we(v),onChange:te})}),p.jsx(f,{container:!0,spacing:4,children:Z.map(i=>p.jsx(f,{sx:{pt:"16px !important"},size:{lg:4,md:6,sm:6,xs:12},children:p.jsx(Ce,{title:`${i.title}`,total:i.total,empty:null,history:i.data,style:{height:150},valueFn:i.valueFn,hoverIndex:E,onHover:N})},i.id))}),p.jsxs(Y,{component:"div",variant:"h5",className:"page-header",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},sx:{mt:4,mb:1},children:[o("analytics.detail"),p.jsxs("span",{children:[d&&p.jsx(K,{onClick:u,style:{marginRight:32},children:p.jsx(Je,{})}),p.jsx(st,{dateAdapter:it,children:p.jsx(ot,{disableFuture:!0,format:"ll",value:j(v),onChange:ae,slotProps:{textField:{size:"small"}}})})]})]}),p.jsx(Ye,{url:ee,width:"100%",height:"100%",frameBorder:0,onLoad:()=>l(!0),styles:{border:0,minHeight:"400vh"}})]})}const _t=Object.freeze(Object.defineProperty({__proto__:null,default:St,getDefaultRanges:we},Symbol.toStringTag,{value:"Module"}));export{kt as D,we as g,_t as t};
1
+ import{a as n,r as k}from"./vendor-react-CTtPmzVP.js";import{cF as Ne,Q as j,Z as Oe,al as ue,c as Te,a1 as me}from"./index-CQgzjKgB.js";import{ay as je,y as Ie}from"./vendor-utils-DCMKu06e.js";import{u as Pe}from"./useAsyncRetry-BMmRgSGm.js";import{I as Ye}from"./iframe-Dqu4MSyW.js";import{ak as $,P as ye,b4 as f,a3 as ne,T as Y,dN as Fe,V as Le,S as He,aP as _e,I as K,cS as We,y as he,bZ as fe,M as pe,cR as Ae,dO as Ve,n as ge,j as p,W as I,D as ze,a6 as qe,aZ as Be,Q as $e,aN as Ke,bt as Je}from"./vendor-mui-core-DnR6WYuU.js";import{r as ie,b as Me,G as T,z as re,M as W,L as A,A as P,e as V,K as z,J,I as Q,C as F,B as w,E as De,Q as le,y as Qe,D as Ue,H as ce,d as Ze,P as se,F as _,R as Ge,S as Xe,N as et,U as tt,O as at}from"./index-Cp0b8q3A.js";import{ck as be,V as ke}from"./vendor-ux-B0gV9NvH.js";import{f as nt}from"./index-DBs9Ljax.js";import{B as rt}from"./base-chart-DhxjAyBU.js";import{L as st,a as ot}from"./vendor-mui-x-CQc01l4r.js";import{A as it}from"./AdapterDayjs-DafRMFLg.js";function Re(e){ie(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(be(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var a;return t.forEach(function(r){var s=Me(r);(a===void 0||a<s||isNaN(Number(s)))&&(a=s)}),a||new Date(NaN)}function Se(e){ie(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(be(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var a;return t.forEach(function(r){var s=Me(r);(a===void 0||a>s||isNaN(s.getDate()))&&(a=s)}),a||new Date(NaN)}function lt(e){return ie(1,arguments),T(e,Date.now())}const ct=(e,t)=>Array.from({length:Math.ceil(e.length/t)},(a,r)=>e.slice(r*t,r*t+t)),dt=(e,t)=>{const a=A(z(e),{locale:t}),r=W(V(e),{locale:t}),s=[];for(let o=a;_(o,r);)s.push(o),o=re(o,1);return s},ut=({startDate:e},t)=>e&&T(t,e),mt=({endDate:e},t)=>e&&T(t,e),ht=({startDate:e,endDate:t},a)=>e&&t&&(le(a,{start:e,end:t})||T(a,e)||T(a,t)),ft=({startDate:e,endDate:t})=>e&&t?T(e,t):!1,ve=(e,t)=>{if(e){const a=e instanceof Date?e:Qe(e);if(Ue(a))return a}return t},pt=(e,t,a)=>{const{startDate:r,endDate:s}=e;if(r&&s){const o=Re([r,t]),c=Se([s,a]);return[o,ce(o,c)?w(o,1):c]}return[r,s]},gt=(e,t)=>[{label:"Today",startDate:e,endDate:e},{label:"Yesterday",startDate:re(e,-1),endDate:re(e,-1)},{label:"This Week",startDate:A(e,{locale:t}),endDate:W(e,{locale:t})},{label:"Last Week",startDate:A(P(e,-1),{locale:t}),endDate:W(P(e,-1),{locale:t})},{label:"Last 7 Days",startDate:P(e,-1),endDate:e},{label:"This Month",startDate:z(e),endDate:V(e)},{label:"Last Month",startDate:z(w(e,-1)),endDate:V(w(e,-1))},{label:"This Year",startDate:Q(e),endDate:J(e)},{label:"Last Year",startDate:Q(F(e,-1)),endDate:J(F(e,-1))}],Dt=(e,t)=>{const a=Math.floor(t/2);return Array(t).fill(0).map((r,s)=>e.getFullYear()-a+s)},vt=({date:e,setDate:t,nextDisabled:a,prevDisabled:r,onClickNext:s,onClickPrevious:o,locale:c})=>{const m=typeof c<"u"?[...Array(12).keys()].map(l=>{var v;return(v=c.localize)===null||v===void 0?void 0:v.month(l,{width:"abbreviated",context:"standalone"})}):["Jan","Feb","Mar","Apr","May","June","July","Aug","Sept","Oct","Nov","Dec"],g=l=>{t(tt(e,parseInt(l.target.value,10)))},d=l=>{t(at(e,parseInt(l.target.value,10)))};return n.createElement(f,{container:!0,justifyContent:"space-between",alignItems:"center"},n.createElement(f,{item:!0,sx:{padding:"5px"}},n.createElement(K,{sx:{padding:"10px","&:hover":{background:"none"}},disabled:r,onClick:o},n.createElement(We,{color:r?"disabled":"action"}))),n.createElement(f,{item:!0},n.createElement(he,{variant:"standard"},n.createElement(fe,{value:Xe(e),onChange:g,MenuProps:{disablePortal:!0}},m.map((l,v)=>n.createElement(pe,{key:l,value:v},l))))),n.createElement(f,{item:!0},n.createElement(he,{variant:"standard"},n.createElement(fe,{value:et(e),onChange:d,MenuProps:{disablePortal:!0}},Dt(e,30).map(l=>n.createElement(pe,{key:l,value:l},l))))),n.createElement(f,{item:!0,sx:{padding:"5px"}},n.createElement(K,{sx:{padding:"10px","&:hover":{background:"none"}},disabled:a,onClick:s},n.createElement(Ae,{color:a?"disabled":"action"}))))},xt=({startOfRange:e,endOfRange:t,disabled:a,highlighted:r,outlined:s,filled:o,onClick:c,onHover:m,value:g})=>n.createElement($,{sx:{display:"flex",borderRadius:e?"50% 0 0 50%":t?"0 50% 50% 0":void 0,backgroundColor:d=>!a&&r?d.palette.primary.light:void 0}},n.createElement(K,{sx:Object.assign({height:"36px",width:"36px",padding:0,border:d=>!a&&s?`1px solid ${d.palette.primary.dark}`:void 0},!a&&o?{"&:hover":{backgroundColor:d=>d.palette.primary.dark},backgroundColor:d=>d.palette.primary.dark}:{}),disabled:a,onClick:c,onMouseOver:m},n.createElement(Y,{sx:{lineHeight:1.6,color:d=>a?d.palette.text.secondary:o?d.palette.primary.contrastText:d.palette.text.primary},variant:"body2"},g)));var U;(function(e){e[e.Previous=-1]="Previous",e[e.Next=1]="Next"})(U||(U={}));const xe=e=>{var t;const{helpers:a,handlers:r,value:s,dateRange:o,marker:c,setValue:m,minDate:g,maxDate:d,locale:l}=e,v=((t=l?.options)===null||t===void 0?void 0:t.weekStartsOn)||0,C=typeof l<"u"?[...Array(7).keys()].map(D=>{var E;return(E=l.localize)===null||E===void 0?void 0:E.day((D+v)%7,{width:"short",context:"standalone"})}):["Su","Mo","Tu","We","Th","Fr","Sa"],[x,R]=e.navState;return n.createElement(ye,{square:!0,elevation:0,sx:{width:290}},n.createElement(f,{container:!0},n.createElement(vt,{date:s,setDate:m,nextDisabled:!R,prevDisabled:!x,onClickPrevious:()=>r.onMonthNavigate(c,U.Previous),onClickNext:()=>r.onMonthNavigate(c,U.Next),locale:l}),n.createElement(f,{item:!0,container:!0,direction:"row",justifyContent:"space-between",sx:{marginTop:"10px",paddingLeft:"30px",paddingRight:"30px"}},C.map((D,E)=>n.createElement(Y,{color:"textSecondary",key:E,variant:"caption"},D))),n.createElement(f,{item:!0,container:!0,direction:"column",justifyContent:"space-between",sx:{paddingLeft:"15px",paddingRight:"15px",marginTop:"15px",marginBottom:"20px"}},ct(dt(s,l),7).map((D,E)=>n.createElement(f,{key:E,container:!0,direction:"row",justifyContent:"center"},D.map(h=>{const N=ut(o,h),b=mt(o,h),S=ft(o),y=ht(o,h)||a.inHoverRange(h);return n.createElement(xt,{key:se(h,"dd-MM-yyyy"),filled:N||b,outlined:lt(h),highlighted:y&&!S,disabled:!ce(s,h)||!le(h,{start:g,end:d}),startOfRange:N&&!S,endOfRange:b&&!S,onClick:()=>r.onDayClick(h),onHover:()=>r.onDayHover(h),value:Ge(h)})}))))))},Ee=(e,t)=>{const{startDate:a,endDate:r}=e,{startDate:s,endDate:o}=t;return a&&s&&r&&o?T(a,s)&&T(r,o):!1},Et=({ranges:e,setRange:t,selectedRange:a})=>n.createElement(Le,null,e.map((r,s)=>n.createElement(He,{button:!0,key:s,onClick:()=>t(r),sx:[Ee(r,a)&&{backgroundColor:o=>o.palette.primary.dark,color:"primary.contrastText","&:hover":{color:"inherit"}}]},n.createElement(_e,{primaryTypographyProps:{variant:"body2",sx:{fontWeight:Ee(r,a)?"bold":"normal"}}},r.label)))),oe={FIRST_MONTH:Symbol("firstMonth"),SECOND_MONTH:Symbol("secondMonth")},yt=e=>{const{ranges:t,dateRange:a,minDate:r,maxDate:s,firstMonth:o,setFirstMonth:c,secondMonth:m,setSecondMonth:g,setDateRange:d,helpers:l,handlers:v,locale:C}=e,{startDate:x,endDate:R}=a,D=Ze(m,o)>=2,E={dateRange:a,minDate:r,maxDate:s,helpers:l,handlers:v};return n.createElement(ye,{elevation:5,square:!0},n.createElement(f,{container:!0,direction:"row",wrap:"nowrap"},n.createElement(f,null,n.createElement(Et,{selectedRange:a,ranges:t,setRange:d})),n.createElement(ne,{orientation:"vertical",flexItem:!0}),n.createElement(f,null,n.createElement(f,{container:!0,sx:{padding:"20px 70px"},alignItems:"center"},n.createElement(f,{item:!0,sx:{flex:1,textAlign:"center"}},n.createElement(Y,{variant:"subtitle1"},x?se(x,"dd MMMM yyyy",{locale:C}):"Start Date")),n.createElement(f,{item:!0,sx:{flex:1,textAlign:"center"}},n.createElement(Fe,{color:"action"})),n.createElement(f,{item:!0,sx:{flex:1,textAlign:"center"}},n.createElement(Y,{variant:"subtitle1"},R?se(R,"dd MMMM yyyy",{locale:C}):"End Date"))),n.createElement(ne,null),n.createElement(f,{container:!0,direction:"row",justifyContent:"center",wrap:"nowrap"},n.createElement(xe,Object.assign({},E,{value:o,setValue:c,navState:[!0,D],marker:oe.FIRST_MONTH,locale:C})),n.createElement(ne,{orientation:"vertical",flexItem:!0}),n.createElement(xe,Object.assign({},E,{value:m,setValue:g,navState:[D,!0],marker:oe.SECOND_MONTH,locale:C}))))))},Mt=e=>{const t=new Date,{open:a,onChange:r,initialDateRange:s,minDate:o,maxDate:c,definedRanges:m=gt(new Date,e.locale),locale:g}=e,d=ve(o,F(t,-10)),l=ve(c,F(t,10)),[v,C]=pt(s||{},d,l),[x,R]=k.useState(Object.assign({},s)),[D,E]=k.useState(),[h,N]=k.useState(v||t),[b,S]=k.useState(C||w(h,1)),{startDate:y,endDate:L}=x,q=u=>{_(u,b)&&N(u)},H=u=>{De(u,h)&&S(u)},Z=u=>{let{startDate:i,endDate:M}=u;if(i&&M)u.startDate=i=Re([i,d]),u.endDate=M=Se([M,l]),R(u),r(u),N(i),S(ce(i,M)?w(i,1):M);else{const de={};R(de),r(de),N(t),S(w(h,1))}},B=u=>{if(y&&!L&&!_(u,y)){const i={startDate:y,endDate:u};r(i),R(i)}else R({startDate:u,endDate:void 0});E(u)},G=(u,i)=>{if(u===oe.FIRST_MONTH){const M=w(h,i);_(M,b)&&N(M)}else{const M=w(b,i);_(h,M)&&S(M)}},X=u=>{y&&!L&&(!D||!T(u,D))&&E(u)},te={inHoverRange:u=>y&&!L&&D&&De(D,y)&&le(u,{start:y,end:D})},ae={onDayClick:B,onDayHover:X,onMonthNavigate:G};return a?k.createElement(yt,{dateRange:x,minDate:d,maxDate:l,ranges:m,firstMonth:h,secondMonth:b,setFirstMonth:q,setSecondMonth:H,setDateRange:Z,helpers:te,handlers:ae,locale:g}):null},bt=e=>{const{closeOnClickOutside:t,wrapperClassName:a,toggle:r,open:s}=e,o=()=>{t!==!1&&r()},c=m=>m?.key==="Escape"&&o();return n.createElement($,{sx:{position:"relative"}},s&&n.createElement($,{sx:{position:"fixed",height:"100vh",width:"100vw",bottom:0,zIndex:0,right:0,left:0,top:0},onKeyPress:c,onClick:o}),n.createElement($,{sx:{position:"relative",zIndex:1},className:a},n.createElement(Mt,Object.assign({},e))))},kt=e=>n.createElement(bt,Object.assign({},e));function Ce({title:e="",total:t=0,hoverIndex:a=null,onHover:r=()=>{},history:s=[],valueFn:o=c=>c}){const c=Ve(),{locale:m}=ke(),g=[{min:0,max:t,color:ge(c.palette.primary.main,c.palette.mode==="dark"?.15:.08)},{min:t,color:ge(c.palette.primary.main,c.palette.mode==="dark"?.15:.08)}];return p.jsx(rt,{title:e,total:t,history:s,valueFn:o,onHover:r,hoverIndex:a,xAxisFormat:d=>Ne(d,"MM-DD",m),visualMapPieces:g,markLineData:void 0,extraInfo:null})}Ce.propTypes={title:I.string,total:I.number,history:I.array,valueFn:I.func,hoverIndex:I.number,onHover:I.func};const O=je(0),we=(e,t)=>[{label:"This Week",startDate:A(e,{locale:t}),endDate:W(e,{locale:t})},{label:"Last Week",startDate:A(P(e,-1),{locale:t}),endDate:W(P(e,-1),{locale:t})},{label:"Last 7 Days",startDate:P(e,-1),endDate:e},{label:"This Month",startDate:z(e),endDate:V(e)},{label:"Last Month",startDate:z(w(e,-1)),endDate:V(w(e,-1))},{label:"This Year",startDate:Q(e),endDate:J(e)},{label:"Last Year",startDate:Q(F(e,-1)),endDate:J(F(e,-1))}],Rt=Array.from({length:7},(e,t)=>({value:0,date:j().subtract(t,"day").format("YYYY-MM-DD")})).reverse();function St({client:e,did:t}){const a=j().subtract(1,"day").toDate(),{info:r,inService:s}=Oe(),{t:o,locale:c}=ke(),[m,g]=k.useState(null),[d,l]=k.useState(!1),[v,C]=k.useState(a),[x,R]=k.useState({startDate:j().subtract(30,"day").toDate(),endDate:a}),D=ze(),[E,h]=k.useState(null),N=k.useCallback(i=>{h(i)},[]),b=Pe(async()=>(await e.getTrafficInsights({input:{did:t,startDate:j(x.startDate).format("YYYY-MM-DD"),endDate:j(x.endDate).format("YYYY-MM-DD")}})).list);k.useEffect(()=>{b.loading||x.startDate&&x.endDate&&b.retry()},[x]);const S=i=>{g(m?null:i.currentTarget)},y=b.value||[],{loading:L,error:q}=b;if(!y.length&&L)return p.jsx(qe,{});if(q)return p.jsx(Be,{severity:"error",children:nt(q)});const H={totalRequests:O,validRequests:O,failedRequests:O,uniqueVisitors:O,uniqueFiles:O,uniqueReferrers:O,uniqueNotFound:O,uniqueStaticFiles:O,logSize:ue,bandwidth:ue},Z=Object.keys(H).map(i=>({id:`${i}_chart`,title:o(`analytics.traffic.${i}`),current:y.length?H[i](y[0][i]):0,data:y.length?y.map(M=>({date:M.date,value:M[i]})).reverse():Rt,dateFn:O,valueFn:H[i],total:0})),B=!!m,G=B?"date-range-picker-popover":void 0,X=s?Te.WELLKNOWN_SERVICE_PATH_PREFIX:r.routing.adminPath,ee=Ie(window.location.origin,X,`/api/analytics/traffic?date=${j(v).format("YYYY-MM-DD")}&did=${t}&theme=${D.palette.mode}`),te=i=>{R(i),g(null)},ae=i=>{C(i.toDate()),l(!1)},u=()=>{window.open(ee)};return p.jsxs("div",{children:[p.jsxs(Y,{component:"div",variant:"h5",className:"page-header",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},sx:{mb:2},children:[o("analytics.trend"),p.jsxs($e,{onClick:S,variant:"outlined",size:"small",color:"inherit",sx:{fontWeight:400},children:[me(x.startDate,c)," - ",me(x.endDate,c)]})]}),p.jsx(Ke,{id:G,open:B,anchorEl:m,onClose:()=>g(null),anchorOrigin:{vertical:"bottom",horizontal:"left"},children:p.jsx(kt,{open:!0,toggle:S,maxDate:a,definedRanges:we(v),onChange:te})}),p.jsx(f,{container:!0,spacing:4,children:Z.map(i=>p.jsx(f,{sx:{pt:"16px !important"},size:{lg:4,md:6,sm:6,xs:12},children:p.jsx(Ce,{title:`${i.title}`,total:i.total,empty:null,history:i.data,style:{height:150},valueFn:i.valueFn,hoverIndex:E,onHover:N})},i.id))}),p.jsxs(Y,{component:"div",variant:"h5",className:"page-header",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},sx:{mt:4,mb:1},children:[o("analytics.detail"),p.jsxs("span",{children:[d&&p.jsx(K,{onClick:u,style:{marginRight:32},children:p.jsx(Je,{})}),p.jsx(st,{dateAdapter:it,children:p.jsx(ot,{disableFuture:!0,format:"ll",value:j(v),onChange:ae,slotProps:{textField:{size:"small"}}})})]})]}),p.jsx(Ye,{url:ee,width:"100%",height:"100%",frameBorder:0,onLoad:()=>l(!0),styles:{border:0,minHeight:"400vh"}})]})}const _t=Object.freeze(Object.defineProperty({__proto__:null,default:St,getDefaultRanges:we},Symbol.toStringTag,{value:"Module"}));export{kt as D,we as g,_t as t};
@@ -0,0 +1,16 @@
1
+ import{j as e,a6 as w,ak as c,bu as k,T as C,at as p}from"./vendor-mui-core-DnR6WYuU.js";import{u as S,o as y,b as T,e as b,W as A,m as D,c as E,w as R}from"./index-CQgzjKgB.js";import{H as I}from"./addon-qN24wAb4.js";import{K as P}from"./landing-page-DRtId3hN.js";import{V as F,F as W}from"./vendor-ux-B0gV9NvH.js";import{p as H}from"./vendor-hooks-BQWlJm53.js";import{r as o}from"./vendor-react-CTtPmzVP.js";import{s as L}from"./vendor-arcblock-Cnwtqa7s.js";import"./vendor-utils-DCMKu06e.js";import"./lottie-web-4koyQiv_.js";import"./question-mark-circle.svg-GhTaklFN.js";function M(){const{t:s,locale:l}=F(),{api:f,session:d}=S(),{searchParams:m}=new URL(window.location.href),[u,x]=o.useState(!1),a=m.get("transferId"),h=window?.env?.appId,g=o.useCallback(async()=>{const{data:t}=await y.get("/blocklet/transfer",{params:{transferId:a}});return t},[a]),r=H(g),j=o.useCallback(async(t,i)=>{t&&(T(i(t.sessionToken)),b(i(t.refreshToken))),await d.refresh(),x(!0)},[]);if(r.loading)return e.jsx(w,{});if(r.error)return e.jsx(z,{children:e.jsx(A,{status:"404",title:r.error?.response?.data,description:""})});const v=r.data.status==="success";let n;return v||u?n=e.jsxs(e.Fragment,{children:[e.jsx(_,{children:e.jsx(I,{SessionContext:D})}),e.jsx(c,{sx:{pt:1,color:"success.main"},children:e.jsx(k,{style:{fontSize:80}})}),e.jsx(C,{variant:"h5",sx:{my:4},children:s("team.transferApp.successTitle")}),e.jsx("a",{href:`${E.WELLKNOWN_SERVICE_PATH_PREFIX}/admin`,children:e.jsx(W,{variant:"contained",children:s("team.transferApp.visitDashboard")})})]}):n=e.jsx(R,{popup:!0,open:!0,action:"receive-transfer-app-owner",checkFn:f.get,forceConnected:!1,autoConnect:!1,checkTimeout:10*60*1e3,onSuccess:j,onClose:()=>{},locale:l,messages:{title:s("team.transferApp.receiveDialog.title"),scan:s("team.transferApp.receiveDialog.scan"),confirm:s("team.transferApp.receiveDialog.confirm"),success:s("team.transferApp.receiveDialog.success")},extraParams:{transferId:a,appDid:h},hideCloseButton:!0}),e.jsx(P,{did:window.blocklet?.appPid,children:e.jsx(c,{sx:{maxWidth:"100%",height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:n})})}const _=p(L)`
2
+ position: fixed;
3
+ top: 16px;
4
+ right: 16px;
5
+ z-index: 9999;
6
+ `,z=p.div`
7
+ width: 100vw;
8
+ height: 100vh;
9
+ min-height: 100vh;
10
+ overflow: auto;
11
+ display: flex;
12
+ flex-direction: column;
13
+ align-items: center;
14
+ justify-content: center;
15
+ background-color: #f6f8fa;
16
+ `;export{M as default};
@@ -0,0 +1 @@
1
+ import{j as e,ak as r,c5 as y,cn as j,co as w,cp as k,T as C}from"./vendor-mui-core-DnR6WYuU.js";import{i as E,L as F}from"./vendor-react-CTtPmzVP.js";import{u as L,b1 as R,c}from"./index-CQgzjKgB.js";import{g as v,b as l,h as P}from"./vendor-hooks-BQWlJm53.js";import{V as S,W as t,F as d}from"./vendor-ux-B0gV9NvH.js";import{y as u}from"./vendor-utils-DCMKu06e.js";import"./vendor-arcblock-Cnwtqa7s.js";import"./lottie-web-4koyQiv_.js";function A(){const{api:f}=L(),m=E(),{t:n}=S(),s=new URLSearchParams(m.search).get("token"),i=v({error:"",finished:!1,loading:!1}),h=l(()=>{window.close(),window.location.replace("/")}),b=l(async()=>{try{i.loading=!0;const{data:o}=await f.post("/api/user/notification/unsubscribe",{token:s});o.success===!0?(i.finished=!0,t.success(n("notification.unsubscribeSucceed"))):(i.finished=!1,t.error(n("notification.unsubscribeFailed")))}catch(o){i.finished=!1,t.error(o.message||n("notification.unsubscribeFailed"))}finally{i.loading=!1}});P(()=>{if(!s)i.error=n("notification.unsubscribeTokenRequired");else{const o=R(s);if(!o)i.error=n("notification.unsubscribeTokenInvalid");else{const{exp:g}=o;g*1e3<=Date.now()&&(i.error=n("notification.unsubscribeTokenExpired"))}}});const a=window?.blocklet?.copyright,p=a?.owner||window?.blocklet?.appName,x=a?.year||new Date().getFullYear();return e.jsx(r,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",minHeight:"100vh",backgroundColor:"background.default"},children:e.jsxs(r,{sx:{width:"450px",maxWidth:"90%"},children:[e.jsx(r,{sx:{width:"100%"},children:e.jsx("img",{style:{height:"40px"},src:u(c.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo-rect?imageFilter=convert&f=png"),alt:"blocklet logo"})}),e.jsxs(y,{variant:"outlined",sx:{my:1},children:[e.jsx(j,{title:i.finished?n("notification.unsubscribeSucceed"):n("notification.email.unsubscribe")}),e.jsxs(w,{sx:{minHeight:"10em"},children:[i.error?i.error:null,!i.error&&!i.finished?n("notification.email.unsubscribeDescription"):null,!i.error&&i.finished?e.jsxs(e.Fragment,{children:[n("notification.email.subscribeDescription")," ",e.jsx(F,{to:u(c.WELLKNOWN_SERVICE_PATH_PREFIX,"/user/settings"),color:"primary",children:n("notification.email.subscribe")})]}):null]}),e.jsxs(k,{sx:{justifyContent:"end!important"},children:[e.jsx(d,{size:"small",color:i.error?"error":"primary",variant:"outlined",onClick:h,children:n("common.close")}),i.error||i.finished?null:e.jsx(d,{size:"small",color:"primary",variant:"contained",onClick:b,loading:i.loading,children:n("notification.unsubscribe")})]})]}),e.jsxs(C,{variant:"body2",color:"gray",children:["Copyright © ",x," ",p]})]})})}export{A as default};
@@ -1 +1 @@
1
- import{C as L}from"./vendor-utils-CxWN1dT3.js";import{Z as u,J as e,bl as T,ak as R}from"./index-DG0EDext.js";const t=(n,s)=>{let r="?v=";return s?r+=T(s):r+=`${n?.meta?.version}${R(n?.status)?"~":""}`,r};function f({blocklet:n}){const{inService:s}=u(),r=(n?.environments||[]).find(o=>o.key===e.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE)?.value,i=(n?.environments||[]).find(o=>o.key===e.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE_DARK)?.value,_=(n?.environments||[]).find(o=>o.key===e.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_RECT)?.value,E=(n?.environments||[]).find(o=>o.key===e.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_RECT_DARK)?.value,O=(n?.environments||[]).find(o=>o.key===e.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_FAVICON)?.value,d=(n?.environments||[]).find(o=>o.key===e.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPLASH_PORTRAIT)?.value,m=(n?.environments||[]).find(o=>o.key===e.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPLASH_LANDSCAPE)?.value,C=(n?.environments||[]).find(o=>o.key===e.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_OG_IMAGE)?.value,a=window.env?.apiPrefix||"/",A=`${L(a,`/blocklet/logo/${s?"":n.meta.did}`)}${t(n,r)}`,c=`${L(a,`/blocklet/logo-dark/${s?"":n.meta.did}`)}${t(n,i)}`,K=`${L(a,`/blocklet/logo-rect/${s?"":n.meta.did}`)}${t(n,_??r)}`,$=`${L(a,`/blocklet/logo-rect-dark/${s?"":n.meta.did}`)}${t(n,E??i)}`,B=`${L(a,`/blocklet/logo-favicon/${s?"":n.meta.did}`)}${t(n,O??r)}`,g=`${L(a,`/blocklet/splash/portrait/${s?"":n.meta.did}`)}${t(n,d)}`,v=`${L(a,`/blocklet/splash/landscape/${s?"":n.meta.did}`)}${t(n,m)}`,P=`${L(a,`/blocklet/og-image/${s?"":n.meta.did}`)}${t(n,C)}`;return{logoUrl:A,logoDarkUrl:c,rectLogoUrl:K,rectLogoDarkUrl:$,faviconUrl:B,splashPortraitUrl:g,splashLandscapeUrl:v,ogImageUrl:P}}export{f as u};
1
+ import{y as L}from"./vendor-utils-DCMKu06e.js";import{Z as u,J as e,bf as T,ak as R}from"./index-CQgzjKgB.js";const t=(n,s)=>{let r="?v=";return s?r+=T(s):r+=`${n?.meta?.version}${R(n?.status)?"~":""}`,r};function f({blocklet:n}){const{inService:s}=u(),r=(n?.environments||[]).find(o=>o.key===e.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE)?.value,i=(n?.environments||[]).find(o=>o.key===e.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE_DARK)?.value,_=(n?.environments||[]).find(o=>o.key===e.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_RECT)?.value,E=(n?.environments||[]).find(o=>o.key===e.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_RECT_DARK)?.value,O=(n?.environments||[]).find(o=>o.key===e.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_FAVICON)?.value,d=(n?.environments||[]).find(o=>o.key===e.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPLASH_PORTRAIT)?.value,m=(n?.environments||[]).find(o=>o.key===e.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPLASH_LANDSCAPE)?.value,C=(n?.environments||[]).find(o=>o.key===e.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_OG_IMAGE)?.value,a=window.env?.apiPrefix||"/",A=`${L(a,`/blocklet/logo/${s?"":n.meta.did}`)}${t(n,r)}`,c=`${L(a,`/blocklet/logo-dark/${s?"":n.meta.did}`)}${t(n,i)}`,K=`${L(a,`/blocklet/logo-rect/${s?"":n.meta.did}`)}${t(n,_??r)}`,$=`${L(a,`/blocklet/logo-rect-dark/${s?"":n.meta.did}`)}${t(n,E??i)}`,B=`${L(a,`/blocklet/logo-favicon/${s?"":n.meta.did}`)}${t(n,O??r)}`,g=`${L(a,`/blocklet/splash/portrait/${s?"":n.meta.did}`)}${t(n,d)}`,v=`${L(a,`/blocklet/splash/landscape/${s?"":n.meta.did}`)}${t(n,m)}`,P=`${L(a,`/blocklet/og-image/${s?"":n.meta.did}`)}${t(n,C)}`;return{logoUrl:A,logoDarkUrl:c,rectLogoUrl:K,rectLogoDarkUrl:$,faviconUrl:B,splashPortraitUrl:g,splashLandscapeUrl:v,ogImageUrl:P}}export{f as u};
@@ -0,0 +1 @@
1
+ import{r as a}from"./vendor-react-CTtPmzVP.js";import{t as o}from"./server-logo-notext.svg-BLAdvsmP.js";import{u as r}from"./use-mobile-BINJTzMb.js";import{D as m,j as c}from"./vendor-mui-core-DnR6WYuU.js";const s=e=>a.createElement("svg",{width:170,height:64,viewBox:"0 0 170 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M49.152 10.673v14.193l12.288 7.115v21.346L43.008 64l-12.259-7.099-.03.018-.03-.018L18.432 64 0 53.327V31.981l12.288-7.115V10.673L30.72 0l18.432 10.673zm-34.944 1.111v14.193L1.92 33.094v19.122l16.512 9.56L30.69 54.68l.03.017.03-.017 12.258 7.097 16.511-9.56V33.094l-12.287-7.116V11.784L30.72 2.224l-16.512 9.56z",fill:"url(#a)"}),a.createElement("path",{d:"M125.204 18.538h2.167l2.476-4.299h2.034l-2.993 5.2 3.821 6.637h-2.035l-3.321-5.77h-2.149v5.77h-1.762V10.03h1.762v8.51zM87.742 10.03a3.795 3.795 0 0 1 3.79 3.801v1.152c0 1.01-.394 1.93-1.035 2.61a3.802 3.802 0 0 1 1.901 3.296v1.381c0 2.1-1.697 3.801-3.79 3.801h-8.603V10.03h7.737zm9.514 16.041h-1.763V10.03h1.763v16.04zm40.309 0h-1.761V10.03h1.761v16.04zm-31.577-11.71a3.817 3.817 0 0 1 3.811 3.823v4.065a3.816 3.816 0 0 1-3.811 3.821h-1.827a3.816 3.816 0 0 1-3.81-3.821v-4.065a3.816 3.816 0 0 1 3.81-3.823h1.827zm11.612 0a3.816 3.816 0 0 1 3.81 3.823v.312h-1.762v-.312a2.052 2.052 0 0 0-2.048-2.055h-1.828c-1.131 0-2.048.92-2.048 2.055v4.065c0 1.135.917 2.055 2.048 2.055h1.828c1.131 0 2.048-.92 2.048-2.055v-.313h1.762v.313a3.816 3.816 0 0 1-3.81 3.821h-1.828a3.816 3.816 0 0 1-3.81-3.821v-4.065a3.816 3.816 0 0 1 3.81-3.823h1.828zm28.831 0a3.816 3.816 0 0 1 3.81 3.823v.748h.001v1.767h-7.686v1.55a2.05 2.05 0 0 0 2.048 2.055h1.827c1.131 0 2.048-.92 2.048-2.055v-.313h1.762v.313a3.816 3.816 0 0 1-3.81 3.821h-1.827a3.816 3.816 0 0 1-3.811-3.821v-4.065a3.817 3.817 0 0 1 3.811-3.823h1.827zm9.221.885h4.077v1.768h-4.077v5.693c0 .925.747 1.675 1.669 1.675s1.67-.75 1.67-1.675v-.351h1.684v.351a3.359 3.359 0 0 1-3.354 3.363 3.358 3.358 0 0 1-3.353-3.363v-5.693H152.4v-1.768h1.568V12.39h1.684v2.855zM81.69 18.783v5.598h6.92a2.108 2.108 0 0 0 2.104-2.111v-1.382a2.108 2.108 0 0 0-2.105-2.112l-6.92.007zm22.471-2.655c-1.131 0-2.049.92-2.049 2.055v4.065c0 1.135.918 2.055 2.049 2.055h1.827c1.131 0 2.048-.92 2.048-2.055v-4.065a2.052 2.052 0 0 0-2.048-2.055h-1.827zm40.443 0a2.05 2.05 0 0 0-2.048 2.055v.748h5.923v-.748a2.052 2.052 0 0 0-2.048-2.055h-1.827zm-62.915.959h6.226a2.11 2.11 0 0 0 1.933-2.105V13.83a2.109 2.109 0 0 0-2.106-2.111H81.69v5.368zm9.345 19.433c-.112.195-.233.34-.364.433a.793.793 0 0 1-.462.126c-.196 0-.41-.07-.644-.21a12.24 12.24 0 0 0-.812-.49 6.303 6.303 0 0 0-1.12-.476c-.42-.15-.92-.224-1.498-.224-.523 0-.98.066-1.372.196a2.87 2.87 0 0 0-.994.518 2.117 2.117 0 0 0-.588.812c-.13.308-.196.649-.196 1.022 0 .476.13.873.392 1.19.27.318.625.588 1.064.812a9.79 9.79 0 0 0 1.498.602c.56.178 1.134.369 1.722.574.588.196 1.162.43 1.722.7.56.262 1.06.598 1.498 1.008.439.402.789.896 1.05 1.484.27.588.406 1.302.406 2.142 0 .915-.159 1.774-.476 2.576a5.884 5.884 0 0 1-1.372 2.086c-.597.588-1.33 1.055-2.198 1.4-.868.336-1.862.504-2.982.504a9.289 9.289 0 0 1-1.904-.196 9.827 9.827 0 0 1-1.806-.532 9.763 9.763 0 0 1-1.61-.84 7.8 7.8 0 0 1-1.344-1.092l1.106-1.806c.093-.13.215-.238.364-.322a.883.883 0 0 1 .476-.14c.233 0 .485.098.756.294.27.187.593.397.966.63.373.234.807.448 1.302.644.504.187 1.106.28 1.806.28 1.073 0 1.904-.252 2.492-.756.588-.513.882-1.246.882-2.198 0-.532-.135-.966-.406-1.302a3.073 3.073 0 0 0-1.05-.84 7.583 7.583 0 0 0-1.498-.588c-.56-.158-1.13-.331-1.708-.518a14.745 14.745 0 0 1-1.708-.672 5.535 5.535 0 0 1-1.498-1.022 4.752 4.752 0 0 1-1.064-1.568c-.261-.634-.392-1.414-.392-2.338 0-.737.145-1.456.434-2.156.299-.7.728-1.32 1.288-1.862.56-.541 1.25-.975 2.072-1.302.821-.326 1.764-.49 2.828-.49 1.195 0 2.296.187 3.304.56 1.008.374 1.867.896 2.576 1.568l-.938 1.778zm13.241 7.727c0-.448-.066-.868-.196-1.26a2.924 2.924 0 0 0-.56-1.05 2.557 2.557 0 0 0-.966-.7c-.383-.177-.831-.266-1.344-.266-.999 0-1.788.285-2.367.854-.569.57-.933 1.377-1.091 2.422h6.524zm-6.595 2.086c.056.738.187 1.377.392 1.918.206.532.477.976.813 1.33.335.346.732.607 1.19.784.466.168.98.252 1.54.252s1.04-.065 1.442-.196a6.39 6.39 0 0 0 1.064-.434c.308-.158.574-.303.798-.434.233-.13.457-.196.672-.196.289 0 .504.108.644.322l.994 1.26a5.925 5.925 0 0 1-1.288 1.134 7.68 7.68 0 0 1-1.498.728 8.334 8.334 0 0 1-1.582.378c-.532.075-1.05.112-1.554.112a7.774 7.774 0 0 1-2.787-.49 6.362 6.362 0 0 1-2.24-1.47c-.634-.653-1.133-1.456-1.498-2.408-.364-.961-.545-2.072-.545-3.332 0-.98.158-1.9.476-2.758.317-.868.77-1.62 1.358-2.254a6.471 6.471 0 0 1 2.17-1.526c.858-.373 1.824-.56 2.898-.56.905 0 1.74.145 2.506.434a5.42 5.42 0 0 1 1.974 1.274c.55.55.98 1.232 1.288 2.044.317.803.476 1.722.476 2.758 0 .523-.056.878-.168 1.064-.112.178-.327.266-.644.266h-8.89zm15.56-5.123c.448-.86.98-1.531 1.596-2.017.616-.494 1.344-.742 2.184-.742.662 0 1.194.145 1.596.434l-.224 2.59c-.047.168-.117.29-.21.364a.558.558 0 0 1-.35.098c-.14 0-.35-.023-.63-.07a4.694 4.694 0 0 0-.798-.07c-.383 0-.724.056-1.022.168a2.59 2.59 0 0 0-.812.49 3.354 3.354 0 0 0-.63.756c-.178.299-.346.64-.504 1.022v8.848h-3.458V38.717h2.03c.354 0 .602.066.742.196.14.122.233.346.28.672l.21 1.624zm20.133-2.493-5.698 14.364h-3.136l-5.698-14.364h2.856c.261 0 .476.06.644.182a.849.849 0 0 1 .35.462l2.772 7.672a20.846 20.846 0 0 1 .686 2.604 31.6 31.6 0 0 1 .308-1.288c.112-.43.247-.868.406-1.316l2.828-7.672a.944.944 0 0 1 .35-.462 1 1 0 0 1 .602-.182h2.73zm10.659 5.53a3.95 3.95 0 0 0-.196-1.26 2.909 2.909 0 0 0-.56-1.05 2.557 2.557 0 0 0-.966-.7c-.382-.177-.83-.266-1.344-.266-.998 0-1.787.285-2.366.854-.569.57-.933 1.377-1.092 2.422h6.524zm-6.594 2.086c.056.738.187 1.377.392 1.918.206.532.476.976.812 1.33.336.346.733.607 1.19.784.467.168.98.252 1.54.252s1.041-.065 1.442-.196a6.32 6.32 0 0 0 1.064-.434c.308-.158.574-.303.798-.434a1.38 1.38 0 0 1 .672-.196c.29 0 .504.108.644.322l.994 1.26a5.902 5.902 0 0 1-1.288 1.134 7.653 7.653 0 0 1-1.498.728 8.298 8.298 0 0 1-1.582.378c-.532.075-1.05.112-1.554.112a7.776 7.776 0 0 1-2.786-.49 6.37 6.37 0 0 1-2.24-1.47c-.634-.653-1.134-1.456-1.498-2.408-.364-.961-.546-2.072-.546-3.332 0-.98.159-1.9.476-2.758.318-.868.77-1.62 1.358-2.254a6.48 6.48 0 0 1 2.17-1.526c.859-.373 1.825-.56 2.898-.56.906 0 1.741.145 2.506.434.766.29 1.424.714 1.974 1.274.551.55.98 1.232 1.288 2.044.318.803.476 1.722.476 2.758 0 .523-.056.878-.168 1.064-.112.178-.326.266-.644.266h-8.89zm15.559-5.123c.448-.86.98-1.531 1.596-2.017.616-.494 1.344-.742 2.184-.742.663 0 1.195.145 1.596.434l-.224 2.59c-.046.168-.116.29-.21.364a.556.556 0 0 1-.35.098c-.14 0-.35-.023-.63-.07a4.676 4.676 0 0 0-.798-.07c-.382 0-.723.056-1.022.168a2.599 2.599 0 0 0-.812.49 3.408 3.408 0 0 0-.63.756c-.177.299-.345.64-.504 1.022v8.848h-3.458V38.717h2.03c.355 0 .602.066.742.196.14.122.234.346.28.672l.21 1.624z",fill:"#121319"}),a.createElement("path",{d:"M49.152 24.831v21.283L30.72 56.756 12.288 46.114V24.831L30.72 14.19l18.432 10.64zM14.208 25.94v19.067L30.72 54.54l16.512-9.533V25.939L30.72 16.407 14.208 25.94zm18.763-3.588a.96.96 0 0 1 .923.696l.856 2.998 2.12 1.224 3.025-.757a.96.96 0 0 1 1.064.45l2.251 3.9a.96.96 0 0 1-.142 1.147L40.9 34.25v2.447l2.168 2.242a.96.96 0 0 1 .142 1.147l-2.251 3.898a.96.96 0 0 1-1.065.452l-3.025-.758L34.75 44.9l-.856 3a.96.96 0 0 1-.923.695H28.47a.96.96 0 0 1-.923-.696l-.858-2.999-2.119-1.223-3.024.758a.96.96 0 0 1-1.065-.452l-2.25-3.898a.96.96 0 0 1 .141-1.148l2.168-2.24v-2.448l-2.168-2.24a.96.96 0 0 1-.142-1.148l2.251-3.898a.96.96 0 0 1 1.065-.451l3.024.757 2.12-1.224.857-2.998a.96.96 0 0 1 .923-.696h4.5zm-4.542 4.595a.96.96 0 0 1-.443.568l-2.792 1.612a.96.96 0 0 1-.713.1l-2.699-.676-1.527 2.643 1.935 2a.96.96 0 0 1 .27.668v3.224a.96.96 0 0 1-.27.667l-1.935 2 1.527 2.645 2.7-.676a.96.96 0 0 1 .712.1l2.792 1.61a.96.96 0 0 1 .443.569l.764 2.675h3.054L33.011 44a.963.963 0 0 1 .443-.568l2.792-1.612a.96.96 0 0 1 .713-.1l2.7.677 1.526-2.645-1.935-2a.96.96 0 0 1-.27-.667v-3.224c0-.249.097-.489.27-.668l1.935-2-1.527-2.643-2.699.676a.96.96 0 0 1-.713-.1l-2.792-1.612a.96.96 0 0 1-.443-.568l-.764-2.676h-3.054l-.764 2.676zm2.29 2.359a6.169 6.169 0 1 1 .001 12.337 6.169 6.169 0 0 1 0-12.337zm0 1.92a4.248 4.248 0 1 0 .001 8.496 4.248 4.248 0 0 0 0-8.496z",fill:"url(#b)"}),a.createElement("defs",null,a.createElement("linearGradient",{id:"a",x1:30.72,y1:96,x2:94.667,y2:34.611,gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#0FA4B7"}),a.createElement("stop",{offset:.495,stopColor:"#1DC1C7"}),a.createElement("stop",{offset:1,stopColor:"#2BE0D7"})),a.createElement("linearGradient",{id:"b",x1:27.438,y1:99.246,x2:97.761,y2:44.936,gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#0FA4B7"}),a.createElement("stop",{offset:.495,stopColor:"#1DC1C7"}),a.createElement("stop",{offset:1,stopColor:"#2BE0D7"})))),n=e=>a.createElement("svg",{width:170,height:64,viewBox:"0 0 170 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M49.152 10.673v14.193l12.288 7.115v21.346L43.008 64l-12.259-7.099-.03.018-.03-.018L18.432 64 0 53.327V31.981l12.288-7.115V10.673L30.72 0l18.432 10.673zm-34.944 1.111v14.193L1.92 33.094v19.122l16.512 9.56L30.69 54.68l.03.017.03-.017 12.258 7.097 16.511-9.56V33.094l-12.287-7.116V11.784L30.72 2.224l-16.512 9.56z",fill:"url(#a)"}),a.createElement("path",{d:"M125.204 18.538h2.167l2.476-4.299h2.034l-2.993 5.2 3.821 6.637h-2.035l-3.321-5.77h-2.149v5.77h-1.762V10.03h1.762v8.51zM87.742 10.03a3.795 3.795 0 0 1 3.79 3.801v1.152c0 1.01-.394 1.93-1.035 2.61a3.802 3.802 0 0 1 1.901 3.296v1.381c0 2.1-1.697 3.801-3.79 3.801h-8.603V10.03h7.737zm9.514 16.041h-1.763V10.03h1.763v16.04zm40.309 0h-1.761V10.03h1.761v16.04zm-31.577-11.71a3.817 3.817 0 0 1 3.811 3.823v4.065a3.816 3.816 0 0 1-3.811 3.821h-1.827a3.816 3.816 0 0 1-3.81-3.821v-4.065a3.816 3.816 0 0 1 3.81-3.823h1.827zm11.612 0a3.816 3.816 0 0 1 3.81 3.823v.312h-1.762v-.312a2.052 2.052 0 0 0-2.048-2.055h-1.828c-1.131 0-2.048.92-2.048 2.055v4.065c0 1.135.917 2.055 2.048 2.055h1.828c1.131 0 2.048-.92 2.048-2.055v-.313h1.762v.313a3.816 3.816 0 0 1-3.81 3.821h-1.828a3.816 3.816 0 0 1-3.81-3.821v-4.065a3.816 3.816 0 0 1 3.81-3.823h1.828zm28.831 0a3.816 3.816 0 0 1 3.81 3.823v.748h.001v1.767h-7.686v1.55a2.05 2.05 0 0 0 2.048 2.055h1.827c1.131 0 2.048-.92 2.048-2.055v-.313h1.762v.313a3.816 3.816 0 0 1-3.81 3.821h-1.827a3.816 3.816 0 0 1-3.811-3.821v-4.065a3.817 3.817 0 0 1 3.811-3.823h1.827zm9.221.885h4.077v1.768h-4.077v5.693c0 .925.747 1.675 1.669 1.675s1.67-.75 1.67-1.675v-.351h1.684v.351a3.359 3.359 0 0 1-3.354 3.363 3.358 3.358 0 0 1-3.353-3.363v-5.693H152.4v-1.768h1.568V12.39h1.684v2.855zM81.69 18.783v5.598h6.92a2.108 2.108 0 0 0 2.104-2.111v-1.382a2.108 2.108 0 0 0-2.105-2.112l-6.92.007zm22.471-2.655c-1.131 0-2.049.92-2.049 2.055v4.065c0 1.135.918 2.055 2.049 2.055h1.827c1.131 0 2.048-.92 2.048-2.055v-4.065a2.052 2.052 0 0 0-2.048-2.055h-1.827zm40.443 0a2.05 2.05 0 0 0-2.048 2.055v.748h5.923v-.748a2.052 2.052 0 0 0-2.048-2.055h-1.827zm-62.915.959h6.226a2.11 2.11 0 0 0 1.933-2.105V13.83a2.109 2.109 0 0 0-2.106-2.111H81.69v5.368zm9.345 19.433c-.112.195-.233.34-.364.433a.793.793 0 0 1-.462.126c-.196 0-.41-.07-.644-.21a12.24 12.24 0 0 0-.812-.49 6.303 6.303 0 0 0-1.12-.476c-.42-.15-.92-.224-1.498-.224-.523 0-.98.066-1.372.196a2.87 2.87 0 0 0-.994.518 2.117 2.117 0 0 0-.588.812c-.13.308-.196.649-.196 1.022 0 .476.13.873.392 1.19.27.318.625.588 1.064.812a9.79 9.79 0 0 0 1.498.602c.56.178 1.134.369 1.722.574.588.196 1.162.43 1.722.7.56.262 1.06.598 1.498 1.008.439.402.789.896 1.05 1.484.27.588.406 1.302.406 2.142 0 .915-.159 1.774-.476 2.576a5.884 5.884 0 0 1-1.372 2.086c-.597.588-1.33 1.055-2.198 1.4-.868.336-1.862.504-2.982.504a9.289 9.289 0 0 1-1.904-.196 9.827 9.827 0 0 1-1.806-.532 9.763 9.763 0 0 1-1.61-.84 7.8 7.8 0 0 1-1.344-1.092l1.106-1.806c.093-.13.215-.238.364-.322a.883.883 0 0 1 .476-.14c.233 0 .485.098.756.294.27.187.593.397.966.63.373.234.807.448 1.302.644.504.187 1.106.28 1.806.28 1.073 0 1.904-.252 2.492-.756.588-.513.882-1.246.882-2.198 0-.532-.135-.966-.406-1.302a3.073 3.073 0 0 0-1.05-.84 7.583 7.583 0 0 0-1.498-.588c-.56-.158-1.13-.331-1.708-.518a14.745 14.745 0 0 1-1.708-.672 5.535 5.535 0 0 1-1.498-1.022 4.752 4.752 0 0 1-1.064-1.568c-.261-.634-.392-1.414-.392-2.338 0-.737.145-1.456.434-2.156.299-.7.728-1.32 1.288-1.862.56-.541 1.25-.975 2.072-1.302.821-.326 1.764-.49 2.828-.49 1.195 0 2.296.187 3.304.56 1.008.374 1.867.896 2.576 1.568l-.938 1.778zm13.241 7.727c0-.448-.066-.868-.196-1.26a2.924 2.924 0 0 0-.56-1.05 2.557 2.557 0 0 0-.966-.7c-.383-.177-.831-.266-1.344-.266-.999 0-1.788.285-2.367.854-.569.57-.933 1.377-1.091 2.422h6.524zm-6.595 2.086c.056.738.187 1.377.392 1.918.206.532.477.976.813 1.33.335.346.732.607 1.19.784.466.168.98.252 1.54.252s1.04-.065 1.442-.196a6.39 6.39 0 0 0 1.064-.434c.308-.158.574-.303.798-.434.233-.13.457-.196.672-.196.289 0 .504.108.644.322l.994 1.26a5.925 5.925 0 0 1-1.288 1.134 7.68 7.68 0 0 1-1.498.728 8.334 8.334 0 0 1-1.582.378c-.532.075-1.05.112-1.554.112a7.774 7.774 0 0 1-2.787-.49 6.362 6.362 0 0 1-2.24-1.47c-.634-.653-1.133-1.456-1.498-2.408-.364-.961-.545-2.072-.545-3.332 0-.98.158-1.9.476-2.758.317-.868.77-1.62 1.358-2.254a6.471 6.471 0 0 1 2.17-1.526c.858-.373 1.824-.56 2.898-.56.905 0 1.74.145 2.506.434a5.42 5.42 0 0 1 1.974 1.274c.55.55.98 1.232 1.288 2.044.317.803.476 1.722.476 2.758 0 .523-.056.878-.168 1.064-.112.178-.327.266-.644.266h-8.89zm15.56-5.123c.448-.86.98-1.531 1.596-2.017.616-.494 1.344-.742 2.184-.742.662 0 1.194.145 1.596.434l-.224 2.59c-.047.168-.117.29-.21.364a.558.558 0 0 1-.35.098c-.14 0-.35-.023-.63-.07a4.694 4.694 0 0 0-.798-.07c-.383 0-.724.056-1.022.168a2.59 2.59 0 0 0-.812.49 3.354 3.354 0 0 0-.63.756c-.178.299-.346.64-.504 1.022v8.848h-3.458V38.717h2.03c.354 0 .602.066.742.196.14.122.233.346.28.672l.21 1.624zm20.133-2.493-5.698 14.364h-3.136l-5.698-14.364h2.856c.261 0 .476.06.644.182a.849.849 0 0 1 .35.462l2.772 7.672a20.846 20.846 0 0 1 .686 2.604 31.6 31.6 0 0 1 .308-1.288c.112-.43.247-.868.406-1.316l2.828-7.672a.944.944 0 0 1 .35-.462 1 1 0 0 1 .602-.182h2.73zm10.659 5.53a3.95 3.95 0 0 0-.196-1.26 2.909 2.909 0 0 0-.56-1.05 2.557 2.557 0 0 0-.966-.7c-.382-.177-.83-.266-1.344-.266-.998 0-1.787.285-2.366.854-.569.57-.933 1.377-1.092 2.422h6.524zm-6.594 2.086c.056.738.187 1.377.392 1.918.206.532.476.976.812 1.33.336.346.733.607 1.19.784.467.168.98.252 1.54.252s1.041-.065 1.442-.196a6.32 6.32 0 0 0 1.064-.434c.308-.158.574-.303.798-.434a1.38 1.38 0 0 1 .672-.196c.29 0 .504.108.644.322l.994 1.26a5.902 5.902 0 0 1-1.288 1.134 7.653 7.653 0 0 1-1.498.728 8.298 8.298 0 0 1-1.582.378c-.532.075-1.05.112-1.554.112a7.776 7.776 0 0 1-2.786-.49 6.37 6.37 0 0 1-2.24-1.47c-.634-.653-1.134-1.456-1.498-2.408-.364-.961-.546-2.072-.546-3.332 0-.98.159-1.9.476-2.758.318-.868.77-1.62 1.358-2.254a6.48 6.48 0 0 1 2.17-1.526c.859-.373 1.825-.56 2.898-.56.906 0 1.741.145 2.506.434.766.29 1.424.714 1.974 1.274.551.55.98 1.232 1.288 2.044.318.803.476 1.722.476 2.758 0 .523-.056.878-.168 1.064-.112.178-.326.266-.644.266h-8.89zm15.559-5.123c.448-.86.98-1.531 1.596-2.017.616-.494 1.344-.742 2.184-.742.663 0 1.195.145 1.596.434l-.224 2.59c-.046.168-.116.29-.21.364a.556.556 0 0 1-.35.098c-.14 0-.35-.023-.63-.07a4.676 4.676 0 0 0-.798-.07c-.382 0-.723.056-1.022.168a2.599 2.599 0 0 0-.812.49 3.408 3.408 0 0 0-.63.756c-.177.299-.345.64-.504 1.022v8.848h-3.458V38.717h2.03c.355 0 .602.066.742.196.14.122.234.346.28.672l.21 1.624z",fill:"#fff"}),a.createElement("path",{d:"M49.152 24.831v21.283L30.72 56.756 12.288 46.114V24.831L30.72 14.19l18.432 10.64zM14.208 25.94v19.067L30.72 54.54l16.512-9.533V25.939L30.72 16.407 14.208 25.94zm18.763-3.588a.96.96 0 0 1 .923.696l.856 2.998 2.12 1.224 3.025-.757a.96.96 0 0 1 1.064.45l2.251 3.9a.96.96 0 0 1-.142 1.147L40.9 34.25v2.447l2.168 2.242a.96.96 0 0 1 .142 1.147l-2.251 3.898a.96.96 0 0 1-1.065.452l-3.025-.758L34.75 44.9l-.856 3a.96.96 0 0 1-.923.695H28.47a.96.96 0 0 1-.923-.696l-.858-2.999-2.119-1.223-3.024.758a.96.96 0 0 1-1.065-.452l-2.25-3.898a.96.96 0 0 1 .141-1.148l2.168-2.24v-2.448l-2.168-2.24a.96.96 0 0 1-.142-1.148l2.251-3.898a.96.96 0 0 1 1.065-.451l3.024.757 2.12-1.224.857-2.998a.96.96 0 0 1 .923-.696h4.5zm-4.542 4.595a.96.96 0 0 1-.443.568l-2.792 1.612a.96.96 0 0 1-.713.1l-2.699-.676-1.527 2.643 1.935 2a.96.96 0 0 1 .27.668v3.224a.96.96 0 0 1-.27.667l-1.935 2 1.527 2.645 2.7-.676a.96.96 0 0 1 .712.1l2.792 1.61a.96.96 0 0 1 .443.569l.764 2.675h3.054L33.011 44a.963.963 0 0 1 .443-.568l2.792-1.612a.96.96 0 0 1 .713-.1l2.7.677 1.526-2.645-1.935-2a.96.96 0 0 1-.27-.667v-3.224c0-.249.097-.489.27-.668l1.935-2-1.527-2.643-2.699.676a.96.96 0 0 1-.713-.1l-2.792-1.612a.96.96 0 0 1-.443-.568l-.764-2.676h-3.054l-.764 2.676zm2.29 2.359a6.169 6.169 0 1 1 .001 12.337 6.169 6.169 0 0 1 0-12.337zm0 1.92a4.248 4.248 0 1 0 .001 8.496 4.248 4.248 0 0 0 0-8.496z",fill:"url(#b)"}),a.createElement("defs",null,a.createElement("linearGradient",{id:"a",x1:30.72,y1:96,x2:94.667,y2:34.611,gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#0FA4B7"}),a.createElement("stop",{offset:.495,stopColor:"#1DC1C7"}),a.createElement("stop",{offset:1,stopColor:"#2BE0D7"})),a.createElement("linearGradient",{id:"b",x1:27.438,y1:99.246,x2:97.761,y2:44.936,gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#0FA4B7"}),a.createElement("stop",{offset:.495,stopColor:"#1DC1C7"}),a.createElement("stop",{offset:1,stopColor:"#2BE0D7"}))));function L({style:e,...l}={}){const{palette:t}=m(),h=r({key:"md"}),v=t.mode==="dark"?n:s;return h?c.jsx(o,{width:"32",height:"32",style:{cursor:"pointer",...e},...l}):c.jsx(v,{width:"128",height:"48",style:{cursor:"pointer",...e},...l})}export{L as u};
@@ -1 +1 @@
1
- import{ab as o,_ as r}from"./vendor-ux-IiqHAjMq.js";import{r as a}from"./vendor-react-CTtPmzVP.js";function l(){const t=o();return a.useCallback(()=>{if(t?.wallet){r(()=>import("./index-m1ZQT0sU.js").then(e=>e.i),[],import.meta.url).then(e=>{setTimeout(()=>{e.call("arcClosePage")},2e3)});return}setTimeout(()=>{window.close()},500)},[t?.wallet])}export{l as u};
1
+ import{al as o,_ as r}from"./vendor-ux-B0gV9NvH.js";import{r as a}from"./vendor-react-CTtPmzVP.js";function i(){const t=o();return a.useCallback(()=>{if(t?.wallet){r(()=>import("./index-m1ZQT0sU.js").then(e=>e.i),[],import.meta.url).then(e=>{setTimeout(()=>{e.call("arcClosePage")},2e3)});return}setTimeout(()=>{window.close()},500)},[t?.wallet])}export{i as u};
@@ -1 +1 @@
1
- import{g as r}from"./vendor-react-CTtPmzVP.js";import{r as s}from"./useAsync-Dotoxibi.js";var o=s();const a=r(o);export{a as u};
1
+ import{g as r}from"./vendor-react-CTtPmzVP.js";import{r as s}from"./useAsync-ZGLJQow7.js";var o=s();const a=r(o);export{a as u};
@@ -1 +1 @@
1
- import{A as p}from"./vendor-hooks-qxhUUbW5.js";import{d as g}from"./vendor-react-CTtPmzVP.js";var i={},l={},d={},M;function h(){if(M)return d;M=1,Object.defineProperty(d,"__esModule",{value:!0});var e=g();function r(){var t=e.useRef(!1),s=e.useCallback(function(){return t.current},[]);return e.useEffect(function(){return t.current=!0,function(){t.current=!1}},[]),s}return d.default=r,d}var q;function F(){if(q)return l;q=1,Object.defineProperty(l,"__esModule",{value:!0});var e=p,r=g(),t=e.__importDefault(h());function s(v,u,a){u===void 0&&(u=[]),a===void 0&&(a={loading:!1});var f=r.useRef(0),c=t.default(),y=r.useState(a),A=y[0],_=y[1],U=r.useCallback(function(){for(var b=[],o=0;o<arguments.length;o++)b[o]=arguments[o];var m=++f.current;return A.loading||_(function(n){return e.__assign(e.__assign({},n),{loading:!0})}),v.apply(void 0,b).then(function(n){return c()&&m===f.current&&_({value:n,loading:!1}),n},function(n){return c()&&m===f.current&&_({error:n,loading:!1}),n})},u);return[A,U]}return l.default=s,l}var R;function S(){if(R)return i;R=1,Object.defineProperty(i,"__esModule",{value:!0});var e=p,r=g(),t=e.__importDefault(F());function s(v,u){u===void 0&&(u=[]);var a=t.default(v,u,{loading:!0}),f=a[0],c=a[1];return r.useEffect(function(){c()},[c]),f}return i.default=s,i}export{S as r};
1
+ import{y as p}from"./vendor-hooks-BQWlJm53.js";import{d as y}from"./vendor-react-CTtPmzVP.js";var i={},l={},d={},M;function h(){if(M)return d;M=1,Object.defineProperty(d,"__esModule",{value:!0});var e=y();function r(){var t=e.useRef(!1),s=e.useCallback(function(){return t.current},[]);return e.useEffect(function(){return t.current=!0,function(){t.current=!1}},[]),s}return d.default=r,d}var q;function F(){if(q)return l;q=1,Object.defineProperty(l,"__esModule",{value:!0});var e=p,r=y(),t=e.__importDefault(h());function s(v,u,a){u===void 0&&(u=[]),a===void 0&&(a={loading:!1});var f=r.useRef(0),c=t.default(),g=r.useState(a),b=g[0],_=g[1],U=r.useCallback(function(){for(var m=[],o=0;o<arguments.length;o++)m[o]=arguments[o];var A=++f.current;return b.loading||_(function(n){return e.__assign(e.__assign({},n),{loading:!0})}),v.apply(void 0,m).then(function(n){return c()&&A===f.current&&_({value:n,loading:!1}),n},function(n){return c()&&A===f.current&&_({error:n,loading:!1}),n})},u);return[b,U]}return l.default=s,l}var R;function S(){if(R)return i;R=1,Object.defineProperty(i,"__esModule",{value:!0});var e=p,r=y(),t=e.__importDefault(F());function s(v,u){u===void 0&&(u=[]);var a=t.default(v,u,{loading:!0}),f=a[0],c=a[1];return r.useEffect(function(){c()},[c]),f}return i.default=s,i}export{S as r};
@@ -1,4 +1,4 @@
1
- import{at as A}from"./vendor-mui-core-DnR6WYuU.js";import{d as p,g}from"./vendor-react-CTtPmzVP.js";import{A as R}from"./vendor-hooks-qxhUUbW5.js";import{r as b}from"./useAsync-Dotoxibi.js";const n={success:"#3ab39d",error:"#D0021B"},u="10px",z=A.div`
1
+ import{at as A}from"./vendor-mui-core-DnR6WYuU.js";import{d as p,g}from"./vendor-react-CTtPmzVP.js";import{y as R}from"./vendor-hooks-BQWlJm53.js";import{r as b}from"./useAsync-ZGLJQow7.js";const n={success:"#3ab39d",error:"#D0021B"},u="10px",z=A.div`
2
2
  display: inline-block;
3
3
  min-width: ${r=>r.size||u};
4
4
  min-height: ${r=>r.size||u};
@@ -1 +1 @@
1
- import{d as y,g as z}from"./vendor-react-CTtPmzVP.js";import{b6 as b}from"./vendor-ux-IiqHAjMq.js";var u={},m;function h(){if(m)return u;m=1,Object.defineProperty(u,"__esModule",{value:!0});var f=y(),c=b(),S=function(o,s,r){if(!c.isBrowser)return[s,c.noop,c.noop];if(!o)throw new Error("useLocalStorage key may not be falsy");var n=r?r.raw?function(t){return t}:r.deserializer:JSON.parse,l=f.useRef(function(t){try{var a=r?r.raw?String:r.serializer:JSON.stringify,e=localStorage.getItem(t);return e!==null?n(e):(s&&localStorage.setItem(t,a(s)),s)}catch{return s}}),g=f.useState(function(){return l.current(o)}),d=g[0],i=g[1];f.useLayoutEffect(function(){return i(l.current(o))},[o]);var v=f.useCallback(function(t){try{var a=typeof t=="function"?t(d):t;if(typeof a>"u")return;var e=void 0;r?r.raw?typeof a=="string"?e=a:e=JSON.stringify(a):r.serializer?e=r.serializer(a):e=JSON.stringify(a):e=JSON.stringify(a),localStorage.setItem(o,e),i(n(e))}catch{}},[o,i]),L=f.useCallback(function(){try{localStorage.removeItem(o),i(void 0)}catch{}},[o,i]);return[d,v,L]};return u.default=S,u}var J=h();const E=z(J);export{E as u};
1
+ import{d as y,g as z}from"./vendor-react-CTtPmzVP.js";import{bo as b}from"./vendor-ux-B0gV9NvH.js";var u={},m;function h(){if(m)return u;m=1,Object.defineProperty(u,"__esModule",{value:!0});var f=y(),c=b(),S=function(o,s,r){if(!c.isBrowser)return[s,c.noop,c.noop];if(!o)throw new Error("useLocalStorage key may not be falsy");var n=r?r.raw?function(t){return t}:r.deserializer:JSON.parse,l=f.useRef(function(t){try{var a=r?r.raw?String:r.serializer:JSON.stringify,e=localStorage.getItem(t);return e!==null?n(e):(s&&localStorage.setItem(t,a(s)),s)}catch{return s}}),g=f.useState(function(){return l.current(o)}),d=g[0],i=g[1];f.useLayoutEffect(function(){return i(l.current(o))},[o]);var v=f.useCallback(function(t){try{var a=typeof t=="function"?t(d):t;if(typeof a>"u")return;var e=void 0;r?r.raw?typeof a=="string"?e=a:e=JSON.stringify(a):r.serializer?e=r.serializer(a):e=JSON.stringify(a):e=JSON.stringify(a),localStorage.setItem(o,e),i(n(e))}catch{}},[o,i]),L=f.useCallback(function(){try{localStorage.removeItem(o),i(void 0)}catch{}},[o,i]);return[d,v,L]};return u.default=S,u}var J=h();const E=z(J);export{E as u};