@abtnode/blocklet-services 1.17.8-beta-20260116-080047-9fdd00d3 → 1.17.8-beta-20260119-102944-6ba93a16

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 (207) hide show
  1. package/dist/assets/{AdapterDayjs-BI3dme25.js → AdapterDayjs-CYW0YvmK.js} +1 -1
  2. package/dist/assets/{Google-BMSeyXdi.js → Google-DKRt92nm.js} +1 -1
  3. package/dist/assets/{access-control-CSfPgD_B.js → access-control-RI6LQbSm.js} +1 -1
  4. package/dist/assets/{actions-Ng-YRTer.js → actions-BlWED76c.js} +2 -2
  5. package/dist/assets/{actions-Dktj9pEF.js → actions-DydkTgA0.js} +1 -1
  6. package/dist/assets/{add-component-core-DOIm-W83.js → add-component-core-nc1ps0ni.js} +32 -32
  7. package/dist/assets/{add-resource-_wuuBiJJ.js → add-resource-BVOdOQSW.js} +1 -1
  8. package/dist/assets/{addon-N_sS-Sx6.js → addon-DfWedLEC.js} +1 -1
  9. package/dist/assets/{advanced-BhbxG-_n.js → advanced-CuKHqbLO.js} +2 -2
  10. package/dist/assets/{aigne-DElJAbjP.js → aigne-6nMSoyeQ.js} +1 -1
  11. package/dist/assets/{appearance-D71HSeGD.js → appearance-C9TkbSjV.js} +1 -1
  12. package/dist/assets/{ar-BHqjWgUQ.js → ar-DOhYGTlW.js} +1 -1
  13. package/dist/assets/{audit-logs-Ci_HlT4m.js → audit-logs-DKGke9hI.js} +2 -2
  14. package/dist/assets/{authorize-DQERA3Vv.js → authorize-DkSqywe8.js} +1 -1
  15. package/dist/assets/{base-chart-DWXZOkNE.js → base-chart-DcZV4ZCI.js} +1 -1
  16. package/dist/assets/{base32-Cpvj2sD4.js → base32-7iZvvdX8.js} +1 -1
  17. package/dist/assets/{bind-account-BIzFrnLk.js → bind-account-DOwM9Nhe.js} +1 -1
  18. package/dist/assets/branding-Cak2s8bn.js +1 -0
  19. package/dist/assets/{branding-BHJqY7Mz.js → branding-CwSyd5WC.js} +1 -1
  20. package/dist/assets/{branding-DAdwbyWZ.js → branding-lcfxmmPp.js} +1 -1
  21. package/dist/assets/{bundle-avatar-sDqev1Fh.js → bundle-avatar-DwiOyeMO.js} +1 -1
  22. package/dist/assets/button-uUU4Wycr.js +1 -0
  23. package/dist/assets/{click-to-copy-RBTqACSW.js → click-to-copy-BgIYUMoo.js} +1 -1
  24. package/dist/assets/{collapse-DWmyzfnW.js → collapse-RMuUWnK3.js} +1 -1
  25. package/dist/assets/{complete-D6XDZtnV.js → complete-Udiv_yFp.js} +1 -1
  26. package/dist/assets/{component-B2qSKMGx.js → component-CuKviNC8.js} +2 -2
  27. package/dist/assets/{config-oF-A1tKe.js → config-6IwEgT3b.js} +1 -1
  28. package/dist/assets/{config-Ca5tnO9j.js → config-CJwxv2uK.js} +1 -1
  29. package/dist/assets/{config-fYkZxdEr.js → config-D1OcHGlN.js} +4 -4
  30. package/dist/assets/{config-navigation-BEYJ5bSz.js → config-navigation-hDihVsjx.js} +2 -2
  31. package/dist/assets/{config-space-HmsYCb6s.js → config-space-DfstlHnF.js} +1 -1
  32. package/dist/assets/{confirm-DQYDHHdS.js → confirm-CdVn5WdC.js} +1 -1
  33. package/dist/assets/{connect-COLwEMSx.js → connect-CT2vMz6l.js} +3 -3
  34. package/dist/assets/{connect-ydb7rKXe.js → connect-DA7RO2yv.js} +1 -1
  35. package/dist/assets/{connect-BeWeBwCA.js → connect-Dy0Y8HRB.js} +1 -1
  36. package/dist/assets/{connect-to-C3ac4B-g.js → connect-to-CQMUbQkH.js} +1 -1
  37. package/dist/assets/{content-layout-CanSZTqf.js → content-layout-Dlmn5DW6.js} +1 -1
  38. package/dist/assets/{create-passport-svg-De1vqcmo.js → create-passport-svg-hldNORaB.js} +1 -1
  39. package/dist/assets/{createClass-CRUn7w67.js → createClass-CgfWUrk8.js} +1 -1
  40. package/dist/assets/{dashboard-BZiea8Z_.js → dashboard-BvI3ii8Z.js} +2 -2
  41. package/dist/assets/{de-QUGQFv2K.js → de-CtKPdGk6.js} +1 -1
  42. package/dist/assets/{delete-confirm-CpaOkuin.js → delete-confirm-CkiUXocp.js} +1 -1
  43. package/dist/assets/{did-address-DRYM96gB.js → did-address-CG36eCOx.js} +1 -1
  44. package/dist/assets/{domain-D9Kc4Rgt.js → domain-CDTeLbkZ.js} +1 -1
  45. package/dist/assets/{domain-action-card-ugKl692S.js → domain-action-card-kMPYS2Nj.js} +1 -1
  46. package/dist/assets/domains-TI6o1CvX.js +1 -0
  47. package/dist/assets/{email-DDyG3qPR.js → email-DHRHueET.js} +2 -2
  48. package/dist/assets/{empty-spinner-ChYvCNCV.js → empty-spinner-DB1GKIOS.js} +1 -1
  49. package/dist/assets/engine-D_fEFx9_.js +1 -0
  50. package/dist/assets/{es-C4w6cL07.js → es-BSYtSZPg.js} +1 -1
  51. package/dist/assets/{exchange-passport-DoiXZo5M.js → exchange-passport-Cc872mjQ.js} +1 -1
  52. package/dist/assets/{fallback-CZRO9TTQ.js → fallback-D-IHOW-7.js} +1 -1
  53. package/dist/assets/{form--iZWaH7Y.js → form-Co-tgocU.js} +1 -1
  54. package/dist/assets/{form-text-input-Cs-LuCu0.js → form-text-input-CPLafaTk.js} +1 -1
  55. package/dist/assets/{form-wrapper-EixE0Jkw.js → form-wrapper-kWYD3nZz.js} +1 -1
  56. package/dist/assets/{fr-Bq3UipEu.js → fr-C35fi7h9.js} +1 -1
  57. package/dist/assets/{fuel-C85y6XSK.js → fuel-BFx1ShM2.js} +1 -1
  58. package/dist/assets/{gen-access-key-DxF-VBeV.js → gen-access-key-DrgLVRbm.js} +1 -1
  59. package/dist/assets/{gen-simple-access-key-Cxq1_uy6.js → gen-simple-access-key-B24d6k7g.js} +1 -1
  60. package/dist/assets/get-safe-url-beob4f2C.js +1 -0
  61. package/dist/assets/{hi-DGZy0DLh.js → hi-5fpYJkiW.js} +1 -1
  62. package/dist/assets/{home-EzPPxjBW.js → home-Dw18IODa.js} +1 -1
  63. package/dist/assets/{id-DOzDilAf.js → id-DoVb0JYr.js} +1 -1
  64. package/dist/assets/{iframe-C5nvJ0m0.js → iframe-DUzp97tk.js} +1 -1
  65. package/dist/assets/{index-B3ArnS-X.js → index--WQuhwJL.js} +1 -1
  66. package/dist/assets/{index-Cw8Yly1u.js → index-2M4w6J9r.js} +1 -1
  67. package/dist/assets/{index-D3fA5iF-.js → index-3H6a5edM.js} +1 -1
  68. package/dist/assets/{index-_uJPC7_n.js → index-8RHrVCC6.js} +1 -1
  69. package/dist/assets/{index-BM9QepzF.js → index-B-8044Gs.js} +22 -11
  70. package/dist/assets/{index-Ba_SJ3UV.js → index-B6l4xGy5.js} +2 -2
  71. package/dist/assets/{index-CbZQvtgh.js → index-B9FojAjj.js} +1 -1
  72. package/dist/assets/{index-BQFgfBFX.js → index-BOPR4Iyc.js} +2 -2
  73. package/dist/assets/{index-VlFqUdI2.js → index-BUhEyicQ.js} +1 -1
  74. package/dist/assets/{index-DGU5RA0-.js → index-BeunkI-Z.js} +3 -3
  75. package/dist/assets/{index-_bvucGkF.js → index-Bo9KtpTY.js} +1 -1
  76. package/dist/assets/{index-r7svI4rK.js → index-Bpic07NM.js} +7 -7
  77. package/dist/assets/{index-BuucS_rQ.js → index-C1fKsLzf.js} +1 -1
  78. package/dist/assets/{index-D_ymA2Th.js → index-C4ZzROeE.js} +5 -5
  79. package/dist/assets/{index-sb6EjUcD.js → index-CEJb82tA.js} +1 -1
  80. package/dist/assets/{index-Ca33rdd_.js → index-CXp5SI_f.js} +82 -82
  81. package/dist/assets/{index-zkaWHEAS.js → index-C_kNXHsF.js} +1 -1
  82. package/dist/assets/{index-DvQIPWQ6.js → index-Cax1AxL9.js} +1 -1
  83. package/dist/assets/{index-Ca5zgzpl.js → index-CfvGuvbD.js} +1 -1
  84. package/dist/assets/{index-BbO4pSmm.js → index-CqCXPf7W.js} +1 -1
  85. package/dist/assets/{index-p0MfrvgW.js → index-Cx0E03Bs.js} +1 -1
  86. package/dist/assets/{index-CL5ZGYlc.js → index-D3BuekEe.js} +3 -3
  87. package/dist/assets/{index-D4_8N2le.js → index-D6pCyJv8.js} +1 -1
  88. package/dist/assets/{index-Ddl9fWMP.js → index-DFUM0Pvk.js} +1 -1
  89. package/dist/assets/{index-B3fG443w.js → index-DH4rC-7M.js} +1 -1
  90. package/dist/assets/{index-B2PeJoug.js → index-DKzBOJCu.js} +2 -2
  91. package/dist/assets/index-DL0wTcgx.js +1 -0
  92. package/dist/assets/{index-C9V4aWeM.js → index-DWHFecw2.js} +4 -4
  93. package/dist/assets/{index-Dxb3MonW.js → index-DcW3jqfL.js} +1 -1
  94. package/dist/assets/{index-CxOxF1pg.js → index-Di2nSesc.js} +1 -1
  95. package/dist/assets/{index-CiCryHDZ.js → index-DqcciDRh.js} +2 -2
  96. package/dist/assets/{index-DCxNOCc2.js → index-VKjWmvRV.js} +1 -1
  97. package/dist/assets/{index-DVOweIMx.js → index-Vf51dp11.js} +1 -1
  98. package/dist/assets/{index-2AyCotIy.js → index-ZzcJ7eKO.js} +1 -1
  99. package/dist/assets/{index-Bwibx9MU.js → index-bEFOmVth.js} +1 -1
  100. package/dist/assets/{info-outline-rounded-DVdLJtdi.js → info-outline-rounded-DlgANjBB.js} +1 -1
  101. package/dist/assets/{invitation-CUluW5mi.js → invitation-BP8hOEFv.js} +1 -1
  102. package/dist/assets/invitations-C8aZLxdl.js +3 -0
  103. package/dist/assets/{invite-zC3nU84H.js → invite-Cd5zEHFb.js} +1 -1
  104. package/dist/assets/{issue-passport-B_pYDft0.js → issue-passport-D7zqv3Al.js} +1 -1
  105. package/dist/assets/{item-DoUn7xhc.js → item-DNj7ORqk.js} +1 -1
  106. package/dist/assets/{ja-DMq-YXDX.js → ja-DZPUwZ9l.js} +1 -1
  107. package/dist/assets/{ko-BrYbXurh.js → ko-q4i4r9g6.js} +1 -1
  108. package/dist/assets/{landing-page-BJAji-kI.js → landing-page-JLA-ZD1t.js} +1 -1
  109. package/dist/assets/{launch-result-message-B2nhmkKt.js → launch-result-message-DJqF-slD.js} +1 -1
  110. package/dist/assets/{layout-CydCBGqn.js → layout-Cwvm7lmD.js} +1 -1
  111. package/dist/assets/{list-BIwaCPhs.js → list-3MUy-8Ol.js} +2 -2
  112. package/dist/assets/{list-CO8Xp7iX.js → list-BSXHuqLM.js} +1 -1
  113. package/dist/assets/{list-header-DQZTNnUc.js → list-header-BEZSwSji.js} +1 -1
  114. package/dist/assets/localization-Dond4H78.js +1 -0
  115. package/dist/assets/{log-JZXyzrRA.js → log-Bq445Z1e.js} +1 -1
  116. package/dist/assets/logger-CCAAJ2Xo.js +1 -0
  117. package/dist/assets/{login-CU5Tw5QB.js → login-dc2t9Qyo.js} +1 -1
  118. package/dist/assets/{login-method-item-KhJ672kA.js → login-method-item-CyTsqz88.js} +1 -1
  119. package/dist/assets/{login-oauth-callback-Bz7N73Sg.js → login-oauth-callback-Bext19kc.js} +1 -1
  120. package/dist/assets/{logo-uploader-DjKJkvts.js → logo-uploader-CyZuvhwV.js} +1 -1
  121. package/dist/assets/{lost-passport-CyJVtH1V.js → lost-passport-BiYg3QQI.js} +1 -1
  122. package/dist/assets/{metadata-CkzdOpl3.js → metadata-B2-Ltdko.js} +1 -1
  123. package/dist/assets/{nav-menu-5M0Q4jYU.js → nav-menu-DSdXRbfg.js} +1 -1
  124. package/dist/assets/{open-window-DphH3aTv.js → open-window-Dyu79ome.js} +1 -1
  125. package/dist/assets/over-due-invoice-payment-DzUsy6q0.js +1 -0
  126. package/dist/assets/{overview-CGIG2I_w.js → overview-0TBmi-_i.js} +1 -1
  127. package/dist/assets/{page-header-B0HpJClf.js → page-header-qdK3sAJh.js} +1 -1
  128. package/dist/assets/{passport-DKYg_d4G.js → passport-BhEaZ-sr.js} +1 -1
  129. package/dist/assets/{passport-item-CjcqN_g-.js → passport-item-DHwif94N.js} +1 -1
  130. package/dist/assets/{permission-DhyiLNfC.js → permission-CvrrGfG6.js} +1 -1
  131. package/dist/assets/preferences-BBSWzZiT.js +1 -0
  132. package/dist/assets/profile-embed-shcOdRUI.js +1 -0
  133. package/dist/assets/{provider-icon-DX-QfJQN.js → provider-icon-DO2PqSth.js} +1 -1
  134. package/dist/assets/{pt-Dl6732JN.js → pt-BFCHl6F1.js} +1 -1
  135. package/dist/assets/{publish-resource-vCC9AfJK.js → publish-resource-CMuHIOUf.js} +1 -1
  136. package/dist/assets/{react-beautiful-dnd.esm-bkXlrjYw.js → react-beautiful-dnd.esm-CWJ5I9Zv.js} +1 -1
  137. package/dist/assets/{react-stripe.esm-BBCEegrE.js → react-stripe.esm-B-FTN8ep.js} +1 -1
  138. package/dist/assets/{required-11pmtzQr.js → required-DnQpCGsD.js} +1 -1
  139. package/dist/assets/{ru-CVUeN9AX.js → ru-CSTl62kK.js} +1 -1
  140. package/dist/assets/{runtime-BjKYEBG_.js → runtime-B_ZLP4FF.js} +1 -1
  141. package/dist/assets/sdk-CktKu_IW.js +1 -0
  142. package/dist/assets/{section-ewv0pNWr.js → section-CZylgxjz.js} +1 -1
  143. package/dist/assets/{security-Xrnc8Gqe.js → security-DHRU8k0u.js} +1 -1
  144. package/dist/assets/{session-lE2gmzzF.js → session-Bp3LV7zJ.js} +1 -1
  145. package/dist/assets/{setup-p5LUFpYK.js → setup-B6-Ei_3X.js} +1 -1
  146. package/dist/assets/{shorten-label-1iJcvGQT.js → shorten-label-CuBHsWUR.js} +1 -1
  147. package/dist/assets/{simple-select-BKXEgxog.js → simple-select-nI-W90c_.js} +1 -1
  148. package/dist/assets/{spaces-Ckljlc4d.js → spaces-ix8u0ZiI.js} +1 -1
  149. package/dist/assets/{start-BE-C9MhV.js → start-oRp78RMQ.js} +1 -1
  150. package/dist/assets/{starting-progress-DC-J-5Os.js → starting-progress-CWp5fTY0.js} +1 -1
  151. package/dist/assets/{status-DR5t3VVx.js → status-Dn_LKaNp.js} +1 -1
  152. package/dist/assets/{step-actions-CArEuzNw.js → step-actions-DIZRcnXf.js} +1 -1
  153. package/dist/assets/{studio-BEzAGvQT.js → studio-CVIa8-XY.js} +1 -1
  154. package/dist/assets/{switch-CmVFEdik.js → switch-BbyTGEOo.js} +1 -1
  155. package/dist/assets/{switch-control-DbLHF-NB.js → switch-control-BRjXGc1d.js} +1 -1
  156. package/dist/assets/{table-tips-DQIh1EQR.js → table-tips-Dvmdodc5.js} +1 -1
  157. package/dist/assets/{team-7-48iuwj.js → team-BTz28XqK.js} +1 -1
  158. package/dist/assets/{th-32eBNQes.js → th-D75Dlluo.js} +1 -1
  159. package/dist/assets/theme-mode-toggle-D3bcd10D.js +1 -0
  160. package/dist/assets/{traffic-Dwd2RNqG.js → traffic-Cea69sMW.js} +1 -1
  161. package/dist/assets/{transfer-BwnSX6wY.js → transfer-BydXCVCg.js} +1 -1
  162. package/dist/assets/unsubscribe-BjAjx-Fl.js +1 -0
  163. package/dist/assets/{use-app-logo-BzsLZwwK.js → use-app-logo-IRizt64R.js} +1 -1
  164. package/dist/assets/{use-blocklet-logo-BWPJOOVd.js → use-blocklet-logo-Cf1j7pQz.js} +1 -1
  165. package/dist/assets/{use-mobile-DgmmfWdl.js → use-mobile-CyUZDIaX.js} +1 -1
  166. package/dist/assets/{use-mobile-BSL5RsRd.js → use-mobile-DFkQ5N0b.js} +1 -1
  167. package/dist/assets/{use-mobile-TAIHvgoJ.js → use-mobile-DwGMuJlg.js} +1 -1
  168. package/dist/assets/{use-server-logo-BLcfNvrR.js → use-server-logo-KZn9RrZd.js} +1 -1
  169. package/dist/assets/{use-window-close-D2_118dJ.js → use-window-close-Dpj5UcYT.js} +1 -1
  170. package/dist/assets/{useAsyncRetry-B-Txlvk6.js → useAsyncRetry-C4R9ufi-.js} +1 -1
  171. package/dist/assets/{useLocalStorage-D6axLnAi.js → useLocalStorage-BQfIniHX.js} +1 -1
  172. package/dist/assets/{user-center-DBscV1le.js → user-center-6K47tx8j.js} +5 -5
  173. package/dist/assets/{user-follower-Di51icra.js → user-follower-BwzTutxU.js} +1 -1
  174. package/dist/assets/{util-DCHBQZpP.js → util-DkTwHdRu.js} +1 -1
  175. package/dist/assets/{util-ad0rjUA1.js → util-DySzCymV.js} +1 -1
  176. package/dist/assets/{vendor-arcblock-ivFYo5vP.js → vendor-arcblock-Dll6qxMT.js} +1 -1
  177. package/dist/assets/{vendor-mui-core-D7t4vMS5.js → vendor-mui-core-CV-FnYH_.js} +1 -1
  178. package/dist/assets/{vendor-mui-x-BpPw6UfF.js → vendor-mui-x-DwN6dcQH.js} +1 -1
  179. package/dist/assets/{vendor-ux-Dl3wVbv_.js → vendor-ux-CLT2i3Pv.js} +2 -2
  180. package/dist/assets/{vi-DF8IinAc.js → vi-D1mKYrmb.js} +1 -1
  181. package/dist/assets/{wait-connect-DOIonmAv.js → wait-connect-q0_7mz_u.js} +1 -1
  182. package/dist/assets/wallet-hidden-topbar-joIVZ1nl.js +68 -0
  183. package/dist/assets/{wizard-CrkxQgBY.js → wizard-C5Kl-g70.js} +1 -1
  184. package/dist/assets/{wizard-components-BzPyRFRt.js → wizard-components-DQrlaeeW.js} +1 -1
  185. package/dist/assets/wrap-locale-5DJTJTXP.js +1 -0
  186. package/dist/assets/{zh-DQQBhbva.js → zh-CJ9vCpmv.js} +1 -1
  187. package/dist/assets/{zh-ByJkLAV1.js → zh-G2I44gfs.js} +1 -1
  188. package/dist/assets/{zh-tw-34G9tsUP.js → zh-tw-C4Juvs-i.js} +1 -1
  189. package/dist/index.html +1 -1
  190. package/package.json +31 -31
  191. package/dist/assets/branding-D-ShZ8m2.js +0 -1
  192. package/dist/assets/button-B_Qd9K_t.js +0 -1
  193. package/dist/assets/domains-B9b2gmbn.js +0 -1
  194. package/dist/assets/engine-L1SEogaX.js +0 -1
  195. package/dist/assets/get-safe-url-D4zRnTpF.js +0 -1
  196. package/dist/assets/index-BoJbHOhC.js +0 -1
  197. package/dist/assets/invitations-gJ3uAWGN.js +0 -3
  198. package/dist/assets/localization-BYdi6ljV.js +0 -1
  199. package/dist/assets/logger-BMHd-C1S.js +0 -1
  200. package/dist/assets/over-due-invoice-payment-DD_j5vb4.js +0 -1
  201. package/dist/assets/preferences-DHjRWgwZ.js +0 -1
  202. package/dist/assets/profile-embed-Gc79_Dhj.js +0 -1
  203. package/dist/assets/sdk-CXEy5Pgp.js +0 -1
  204. package/dist/assets/theme-mode-toggle-BltDSXhy.js +0 -1
  205. package/dist/assets/unsubscribe-CP0mTwWi.js +0 -1
  206. package/dist/assets/wallet-hidden-topbar-DKISAPb3.js +0 -68
  207. package/dist/assets/wrap-locale-BJF_SaOe.js +0 -1
@@ -1 +0,0 @@
1
- import{j as o}from"./vendor-mui-core-D7t4vMS5.js";import{z as t}from"./vendor-utils-BzQg432x.js";import{I as s}from"./iframe-C5nvJ0m0.js";import{c as i}from"./index-Ca33rdd_.js";import{S as m}from"./studio-BEzAGvQT.js";import"./vendor-react-DX7tU9aY.js";import"./vendor-ux-Dl3wVbv_.js";import"./vendor-hooks-DAZ1H6Va.js";import"./vendor-arcblock-ivFYo5vP.js";import"./index-D3fA5iF-.js";import"./nav-menu-5M0Q4jYU.js";import"./fallback-CZRO9TTQ.js";function R(){const r=new URLSearchParams;r.set("title","Preference Builder"),r.set("schemaKey",t(window.location.origin,i.WELLKNOWN_SERVICE_PATH_PREFIX,"/api/studio/preferences"));const e=`${t(window.location.origin,i.WELLKNOWN_SERVICE_PATH_PREFIX,"/hosted/form-builder/")}?${r.toString()}`;return o.jsx(m,{children:o.jsx(s,{url:e,width:"100%",height:"100%",frameBorder:0,styles:{border:0}})})}export{R as default};
@@ -1 +0,0 @@
1
- import{j as r}from"./vendor-mui-core-D7t4vMS5.js";import{q as o}from"./user-center-DBscV1le.js";import{H as i}from"./index-Ca33rdd_.js";import{W as m}from"./vendor-ux-Dl3wVbv_.js";import"./vendor-react-DX7tU9aY.js";import"./vendor-hooks-DAZ1H6Va.js";import"./vendor-utils-BzQg432x.js";import"./fallback-CZRO9TTQ.js";import"./index-CL5ZGYlc.js";import"./use-blocklet-logo-BWPJOOVd.js";import"./index-DCxNOCc2.js";import"./vendor-arcblock-ivFYo5vP.js";import"./nav-menu-5M0Q4jYU.js";import"./wallet-hidden-topbar-DKISAPb3.js";import"./theme-mode-toggle-BltDSXhy.js";import"./use-mobile-DgmmfWdl.js";import"./purify.es-HRjpPm7y.js";import"./index-sb6EjUcD.js";import"./arrow-down.svg-Dz9H9vM-.js";import"./revoke.svg-BF_gJc34.js";import"./index-_uJPC7_n.js";import"./index-zkaWHEAS.js";import"./actions-Ng-YRTer.js";import"./passkey-rounded-_WDHIZVd.js";import"./login-method-item-KhJ672kA.js";import"./isEmail-BwGDo3Ws.js";import"./isIP-BBY240SU.js";import"./info-outline-rounded-DVdLJtdi.js";import"./google-icon-vNOJy67F.js";import"./index-Cw8Yly1u.js";import"./index-D29L5UKE.js";import"./index-BojVbZw0.js";import"./index-_bvucGkF.js";function D(){const{t}=m();return r.jsxs(r.Fragment,{children:[r.jsx(i,{children:r.jsx("title",{children:t("pageTitle.userCenter")})}),r.jsx(o,{onlyProfile:!0,currentTab:"",disableAutoRedirect:!0})]})}export{D as default};
@@ -1 +0,0 @@
1
- import{i as o}from"./index-Ca33rdd_.js";const e=o();export{e as b};
@@ -1 +0,0 @@
1
- import{j as t,I as n,c4 as l,c5 as m}from"./vendor-mui-core-D7t4vMS5.js";import{z as i}from"./vendor-hooks-DAZ1H6Va.js";import{br as c}from"./vendor-ux-Dl3wVbv_.js";function f(){const{mode:r,toggleMode:o,prefer:e}=c(),{run:s}=i(()=>{o()},{wait:300});return o&&(e==="system"||window.blocklet?.theme?.prefer==="system")?t.jsx(n,{onClick:s,children:r==="light"?t.jsx(l,{}):t.jsx(m,{})}):null}export{f as g};
@@ -1 +0,0 @@
1
- import{j as e,al as r,bX as y,cm as j,cn as w,co as C,T as k}from"./vendor-mui-core-D7t4vMS5.js";import{i as E,L as F}from"./vendor-react-DX7tU9aY.js";import{u as L,aF as R,c}from"./index-Ca33rdd_.js";import{i as v,b as l,j as P}from"./vendor-hooks-DAZ1H6Va.js";import{W as S,Q as t,b4 as d}from"./vendor-ux-Dl3wVbv_.js";import{z as u}from"./vendor-utils-BzQg432x.js";import"./vendor-arcblock-ivFYo5vP.js";function U(){const{api:f}=L(),m=E(),{t:n}=S(),o=new URLSearchParams(m.search).get("token"),i=v({error:"",finished:!1,loading:!1}),b=l(()=>{window.close(),window.location.replace("/")}),h=l(async()=>{try{i.loading=!0;const{data:s}=await f.post("/api/user/notification/unsubscribe",{token:o});s.success===!0?(i.finished=!0,t.success(n("notification.unsubscribeSucceed"))):(i.finished=!1,t.error(n("notification.unsubscribeFailed")))}catch(s){i.finished=!1,t.error(s.message||n("notification.unsubscribeFailed"))}finally{i.loading=!1}});P(()=>{if(!o)i.error=n("notification.unsubscribeTokenRequired");else{const s=R(o);if(!s)i.error=n("notification.unsubscribeTokenInvalid");else{const{exp:g}=s;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(C,{sx:{justifyContent:"end!important"},children:[e.jsx(d,{size:"small",color:i.error?"error":"primary",variant:"outlined",onClick:b,children:n("common.close")}),i.error||i.finished?null:e.jsx(d,{size:"small",color:"primary",variant:"contained",onClick:h,loading:i.loading,children:n("notification.unsubscribe")})]})]}),e.jsxs(k,{variant:"body2",color:"gray",children:["Copyright © ",x," ",p]})]})})}export{U as default};
@@ -1,68 +0,0 @@
1
- import{G as ce,j as l,al as A,I as Re,Q as cn,aj as ln,H as un,P as dn,W as fn,U as hn,b$ as pn,T as L,X as x,Z as gn,a0 as mn,S as xn,R as ne,L as yn,bb as bt,c0 as ke,ap as bn,bq as wn,aT as Z,ak as vn,bM as kn,A as je,c1 as jn,b4 as Cn,a7 as In,aY as pe,b_ as Sn,aP as Tn,C as $n,aG as Ln,a4 as Ue,M as Be,c2 as Ve,c3 as An,aN as Qe,bW as En}from"./vendor-mui-core-D7t4vMS5.js";import{r as C,a as Pn}from"./vendor-react-DX7tU9aY.js";import{$ as wt,as as Mn,at as On,au as Rn,av as _n,i as vt,c as _,aw as Ke,ax as Nn,ay as zn}from"./index-Ca33rdd_.js";import{g as Fn}from"./theme-mode-toggle-BltDSXhy.js";import{Y as Ce,bn as Ze,a2 as oe,bo as qn,b4 as Ie,bp as Dn,P as _e,b7 as kt,b8 as Hn,af as jt,bq as Wn,Q as Ct,aO as Un,W as Bn,b6 as Vn,aR as Qn,an as Kn}from"./vendor-ux-Dl3wVbv_.js";import{i as It,b as R,a as P,s as Zn,x as Jn,r as Gn,o as Yn,v as Xn}from"./vendor-hooks-DAZ1H6Va.js";import{a8 as eo,F as J,z as N,a as St,n as Je}from"./vendor-utils-BzQg432x.js";import{u as to}from"./use-mobile-DgmmfWdl.js";import{p as no}from"./purify.es-HRjpPm7y.js";import{r as oo}from"./index-sb6EjUcD.js";function ro(e){try{return new URL(e).origin!==window.location.origin}catch{return!1}}function io(e,n){try{if(!ro(e))return e;const t=eo(e),r={utm_source:window.location.hostname,utm_medium:`${n}_nav`,utm_campaign:"default",utm_content:new URL(e).hostname,...t};return J(e,r)}catch(t){return console.error("Failed to generate UTM URL:",t),e}}const Tt=Object.freeze({left:0,top:0,width:16,height:16}),re=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),G=Object.freeze({...Tt,...re}),Se=Object.freeze({...G,body:"",hidden:!1}),so=Object.freeze({width:null,height:null}),$t=Object.freeze({...so,...re});function ao(e,n=0){const t=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(t===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(t!==e){let o=0;switch(t){case"%":o=25;break;case"deg":o=90}if(o){let i=parseFloat(e.slice(0,e.length-t.length));return isNaN(i)?0:(i=i/o,i%1===0?r(i):0)}}return n}const co=/[\s,]+/;function lo(e,n){n.split(co).forEach(t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const Lt={...$t,preserveAspectRatio:""};function Ge(e){const n={...Lt},t=(r,o)=>e.getAttribute(r)||o;return n.width=t("width",null),n.height=t("height",null),n.rotate=ao(t("rotate","")),lo(n,t("flip","")),n.preserveAspectRatio=t("preserveAspectRatio",t("preserveaspectratio","")),n}function uo(e,n){for(const t in Lt)if(e[t]!==n[t])return!0;return!1}const U=/^[a-z0-9]+(-[a-z0-9]+)*$/,Y=(e,n,t,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const s=o.pop(),c=o.pop(),u={provider:o.length>0?o[0]:r,prefix:c,name:s};return n&&!ee(u)?null:u}const i=o[0],a=i.split("-");if(a.length>1){const s={provider:r,prefix:a.shift(),name:a.join("-")};return n&&!ee(s)?null:s}if(t&&r===""){const s={provider:r,prefix:"",name:i};return n&&!ee(s,t)?null:s}return null},ee=(e,n)=>e?!!((e.provider===""||e.provider.match(U))&&(n&&e.prefix===""||e.prefix.match(U))&&e.name.match(U)):!1;function fo(e,n){const t={};!e.hFlip!=!n.hFlip&&(t.hFlip=!0),!e.vFlip!=!n.vFlip&&(t.vFlip=!0);const r=((e.rotate||0)+(n.rotate||0))%4;return r&&(t.rotate=r),t}function Ye(e,n){const t=fo(e,n);for(const r in Se)r in re?r in e&&!(r in t)&&(t[r]=re[r]):r in n?t[r]=n[r]:r in e&&(t[r]=e[r]);return t}function ho(e,n){const t=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function i(a){if(t[a])return o[a]=[];if(!(a in o)){o[a]=null;const s=r[a]&&r[a].parent,c=s&&i(s);c&&(o[a]=[s].concat(c))}return o[a]}return Object.keys(t).concat(Object.keys(r)).forEach(i),o}function po(e,n,t){const r=e.icons,o=e.aliases||Object.create(null);let i={};function a(s){i=Ye(r[s]||o[s],i)}return a(n),t.forEach(a),Ye(e,i)}function At(e,n){const t=[];if(typeof e!="object"||typeof e.icons!="object")return t;e.not_found instanceof Array&&e.not_found.forEach(o=>{n(o,null),t.push(o)});const r=ho(e);for(const o in r){const i=r[o];i&&(n(o,po(e,o,i)),t.push(o))}return t}const go={provider:"",aliases:{},not_found:{},...Tt};function ge(e,n){for(const t in n)if(t in e&&typeof e[t]!=typeof n[t])return!1;return!0}function Et(e){if(typeof e!="object"||e===null)return null;const n=e;if(typeof n.prefix!="string"||!e.icons||typeof e.icons!="object"||!ge(e,go))return null;const t=n.icons;for(const o in t){const i=t[o];if(!o.match(U)||typeof i.body!="string"||!ge(i,Se))return null}const r=n.aliases||Object.create(null);for(const o in r){const i=r[o],a=i.parent;if(!o.match(U)||typeof a!="string"||!t[a]&&!r[a]||!ge(i,Se))return null}return n}const ie=Object.create(null);function mo(e,n){return{provider:e,prefix:n,icons:Object.create(null),missing:new Set}}function z(e,n){const t=ie[e]||(ie[e]=Object.create(null));return t[n]||(t[n]=mo(e,n))}function Ne(e,n){return Et(n)?At(n,(t,r)=>{r?e.icons[t]=r:e.missing.add(t)}):[]}function xo(e,n,t){try{if(typeof t.body=="string")return e.icons[n]={...t},!0}catch{}return!1}function yo(e,n){let t=[];return(typeof e=="string"?[e]:Object.keys(ie)).forEach(o=>{(typeof o=="string"&&typeof n=="string"?[n]:Object.keys(ie[o]||{})).forEach(a=>{const s=z(o,a);t=t.concat(Object.keys(s.icons).map(c=>(o!==""?"@"+o+":":"")+a+":"+c))})}),t}let V=!1;function Pt(e){return typeof e=="boolean"&&(V=e),V}function Q(e){const n=typeof e=="string"?Y(e,!0,V):e;if(n){const t=z(n.provider,n.prefix),r=n.name;return t.icons[r]||(t.missing.has(r)?null:void 0)}}function Mt(e,n){const t=Y(e,!0,V);if(!t)return!1;const r=z(t.provider,t.prefix);return xo(r,t.name,n)}function Xe(e,n){if(typeof e!="object")return!1;if(typeof n!="string"&&(n=e.provider||""),V&&!n&&!e.prefix){let o=!1;return Et(e)&&(e.prefix="",At(e,(i,a)=>{a&&Mt(i,a)&&(o=!0)})),o}const t=e.prefix;if(!ee({provider:n,prefix:t,name:"a"}))return!1;const r=z(n,t);return!!Ne(r,e)}function bo(e){return!!Q(e)}function wo(e){const n=Q(e);return n?{...G,...n}:null}function vo(e){const n={loaded:[],missing:[],pending:[]},t=Object.create(null);e.sort((o,i)=>o.provider!==i.provider?o.provider.localeCompare(i.provider):o.prefix!==i.prefix?o.prefix.localeCompare(i.prefix):o.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const i=o.provider,a=o.prefix,s=o.name,c=t[i]||(t[i]=Object.create(null)),u=c[a]||(c[a]=z(i,a));let d;s in u.icons?d=n.loaded:a===""||u.missing.has(s)?d=n.missing:d=n.pending;const f={provider:i,prefix:a,name:s};d.push(f)}),n}function Ot(e,n){e.forEach(t=>{const r=t.loaderCallbacks;r&&(t.loaderCallbacks=r.filter(o=>o.id!==n))})}function ko(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const n=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!n.length)return;let t=!1;const r=e.provider,o=e.prefix;n.forEach(i=>{const a=i.icons,s=a.pending.length;a.pending=a.pending.filter(c=>{if(c.prefix!==o)return!0;const u=c.name;if(e.icons[u])a.loaded.push({provider:r,prefix:o,name:u});else if(e.missing.has(u))a.missing.push({provider:r,prefix:o,name:u});else return t=!0,!0;return!1}),a.pending.length!==s&&(t||Ot([e],i.id),i.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),i.abort))})}))}let jo=0;function Co(e,n,t){const r=jo++,o=Ot.bind(null,t,r);if(!n.pending.length)return o;const i={id:r,icons:n,callback:e,abort:o};return t.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(i)}),o}const Te=Object.create(null);function et(e,n){Te[e]=n}function $e(e){return Te[e]||Te[""]}function Io(e,n=!0,t=!1){const r=[];return e.forEach(o=>{const i=typeof o=="string"?Y(o,n,t):o;i&&r.push(i)}),r}var So={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function To(e,n,t,r){const o=e.resources.length,i=e.random?Math.floor(Math.random()*o):e.index;let a;if(e.random){let v=e.resources.slice(0);for(a=[];v.length>1;){const I=Math.floor(Math.random()*v.length);a.push(v[I]),v=v.slice(0,I).concat(v.slice(I+1))}a=a.concat(v)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const s=Date.now();let c="pending",u=0,d,f=null,h=[],p=[];typeof r=="function"&&p.push(r);function g(){f&&(clearTimeout(f),f=null)}function m(){c==="pending"&&(c="aborted"),g(),h.forEach(v=>{v.status==="pending"&&(v.status="aborted")}),h=[]}function y(v,I){I&&(p=[]),typeof v=="function"&&p.push(v)}function k(){return{startTime:s,payload:n,status:c,queriesSent:u,queriesPending:h.length,subscribe:y,abort:m}}function w(){c="failed",p.forEach(v=>{v(void 0,d)})}function j(){h.forEach(v=>{v.status==="pending"&&(v.status="aborted")}),h=[]}function $(v,I,E){const M=I!=="success";switch(h=h.filter(O=>O!==v),c){case"pending":break;case"failed":if(M||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){d=E,w();return}if(M){d=E,h.length||(a.length?S():w());return}if(g(),j(),!e.random){const O=e.resources.indexOf(v.resource);O!==-1&&O!==e.index&&(e.index=O)}c="completed",p.forEach(O=>{O(E)})}function S(){if(c!=="pending")return;g();const v=a.shift();if(v===void 0){if(h.length){f=setTimeout(()=>{g(),c==="pending"&&(j(),w())},e.timeout);return}w();return}const I={status:"pending",resource:v,callback:(E,M)=>{$(I,E,M)}};h.push(I),u++,f=setTimeout(S,e.rotate),t(v,n,I.callback)}return setTimeout(S),k}function Rt(e){const n={...So,...e};let t=[];function r(){t=t.filter(s=>s().status==="pending")}function o(s,c,u){const d=To(n,s,c,(f,h)=>{r(),u&&u(f,h)});return t.push(d),d}function i(s){return t.find(c=>s(c))||null}return{query:o,find:i,setIndex:s=>{n.index=s},getIndex:()=>n.index,cleanup:r}}function ze(e){let n;if(typeof e.resources=="string")n=[e.resources];else if(n=e.resources,!(n instanceof Array)||!n.length)return null;return{resources:n,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const le=Object.create(null),W=["https://api.simplesvg.com","https://api.unisvg.com"],te=[];for(;W.length>0;)W.length===1||Math.random()>.5?te.push(W.shift()):te.push(W.pop());le[""]=ze({resources:["https://api.iconify.design"].concat(te)});function tt(e,n){const t=ze(n);return t===null?!1:(le[e]=t,!0)}function ue(e){return le[e]}function $o(){return Object.keys(le)}function nt(){}const me=Object.create(null);function Lo(e){if(!me[e]){const n=ue(e);if(!n)return;const t=Rt(n),r={config:n,redundancy:t};me[e]=r}return me[e]}function _t(e,n,t){let r,o;if(typeof e=="string"){const i=$e(e);if(!i)return t(void 0,424),nt;o=i.send;const a=Lo(e);a&&(r=a.redundancy)}else{const i=ze(e);if(i){r=Rt(i);const a=e.resources?e.resources[0]:"",s=$e(a);s&&(o=s.send)}}return!r||!o?(t(void 0,424),nt):r.query(n,o,t)().abort}const ot="iconify2",K="iconify",Nt=K+"-count",rt=K+"-version",zt=36e5,Ao=168;function Le(e,n){try{return e.getItem(n)}catch{}}function Fe(e,n,t){try{return e.setItem(n,t),!0}catch{}}function it(e,n){try{e.removeItem(n)}catch{}}function Ae(e,n){return Fe(e,Nt,n.toString())}function Ee(e){return parseInt(Le(e,Nt))||0}const q={local:!0,session:!0},Ft={local:new Set,session:new Set};let qe=!1;function Eo(e){qe=e}let X=typeof window>"u"?{}:window;function qt(e){const n=e+"Storage";try{if(X&&X[n]&&typeof X[n].length=="number")return X[n]}catch{}q[e]=!1}function Dt(e,n){const t=qt(e);if(!t)return;const r=Le(t,rt);if(r!==ot){if(r){const s=Ee(t);for(let c=0;c<s;c++)it(t,K+c.toString())}Fe(t,rt,ot),Ae(t,0);return}const o=Math.floor(Date.now()/zt)-Ao,i=s=>{const c=K+s.toString(),u=Le(t,c);if(typeof u=="string"){try{const d=JSON.parse(u);if(typeof d=="object"&&typeof d.cached=="number"&&d.cached>o&&typeof d.provider=="string"&&typeof d.data=="object"&&typeof d.data.prefix=="string"&&n(d,s))return!0}catch{}it(t,c)}};let a=Ee(t);for(let s=a-1;s>=0;s--)i(s)||(s===a-1?(a--,Ae(t,a)):Ft[e].add(s))}function Ht(){if(!qe){Eo(!0);for(const e in q)Dt(e,n=>{const t=n.data,r=n.provider,o=t.prefix,i=z(r,o);if(!Ne(i,t).length)return!1;const a=t.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,a):a,!0})}}function Po(e,n){const t=e.lastModifiedCached;if(t&&t>=n)return t===n;if(e.lastModifiedCached=n,t)for(const r in q)Dt(r,o=>{const i=o.data;return o.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===n});return!0}function Mo(e,n){qe||Ht();function t(r){let o;if(!q[r]||!(o=qt(r)))return;const i=Ft[r];let a;if(i.size)i.delete(a=Array.from(i).shift());else if(a=Ee(o),!Ae(o,a+1))return;const s={cached:Math.floor(Date.now()/zt),provider:e.provider,data:n};return Fe(o,K+a.toString(),JSON.stringify(s))}n.lastModified&&!Po(e,n.lastModified)||Object.keys(n.icons).length&&(n.not_found&&(n=Object.assign({},n),delete n.not_found),t("local")||t("session"))}function st(){}function Oo(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,ko(e)}))}function Ro(e,n){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(n).sort():e.iconsToLoad=n,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let i;if(!o||!(i=$e(t)))return;i.prepare(t,r,o).forEach(s=>{_t(t,s,c=>{if(typeof c!="object")s.icons.forEach(u=>{e.missing.add(u)});else try{const u=Ne(e,c);if(!u.length)return;const d=e.pendingIcons;d&&u.forEach(f=>{d.delete(f)}),Mo(e,c)}catch(u){console.error(u)}Oo(e)})})}))}const De=(e,n)=>{const t=Io(e,!0,Pt()),r=vo(t);if(!r.pending.length){let c=!0;return n&&setTimeout(()=>{c&&n(r.loaded,r.missing,r.pending,st)}),()=>{c=!1}}const o=Object.create(null),i=[];let a,s;return r.pending.forEach(c=>{const{provider:u,prefix:d}=c;if(d===s&&u===a)return;a=u,s=d,i.push(z(u,d));const f=o[u]||(o[u]=Object.create(null));f[d]||(f[d]=[])}),r.pending.forEach(c=>{const{provider:u,prefix:d,name:f}=c,h=z(u,d),p=h.pendingIcons||(h.pendingIcons=new Set);p.has(f)||(p.add(f),o[u][d].push(f))}),i.forEach(c=>{const{provider:u,prefix:d}=c;o[u][d].length&&Ro(c,o[u][d])}),n?Co(n,r,i):st},_o=e=>new Promise((n,t)=>{const r=typeof e=="string"?Y(e,!0):e;if(!r){t(e);return}De([r||e],o=>{if(o.length&&r){const i=Q(r);if(i){n({...G,...i});return}}t(e)})});function No(e){try{const n=typeof e=="string"?JSON.parse(e):e;if(typeof n.body=="string")return{...n}}catch{}}function zo(e,n){const t=typeof e=="string"?Y(e,!0,!0):null;if(!t){const i=No(e);return{value:e,data:i}}const r=Q(t);if(r!==void 0||!t.prefix)return{value:e,name:t,data:r};const o=De([t],()=>n(e,t,Q(t)));return{value:e,name:t,loading:o}}function xe(e){return e.hasAttribute("inline")}let Wt=!1;try{Wt=navigator.vendor.indexOf("Apple")===0}catch{}function Fo(e,n){switch(n){case"svg":case"bg":case"mask":return n}return n!=="style"&&(Wt||e.indexOf("<a")===-1)?"svg":e.indexOf("currentColor")===-1?"bg":"mask"}const qo=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Do=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Pe(e,n,t){if(n===1)return e;if(t=t||100,typeof e=="number")return Math.ceil(e*n*t)/t;if(typeof e!="string")return e;const r=e.split(qo);if(r===null||!r.length)return e;const o=[];let i=r.shift(),a=Do.test(i);for(;;){if(a){const s=parseFloat(i);isNaN(s)?o.push(i):o.push(Math.ceil(s*n*t)/t)}else o.push(i);if(i=r.shift(),i===void 0)return o.join("");a=!a}}const Ho=e=>e==="unset"||e==="undefined"||e==="none";function Ut(e,n){const t={...G,...e},r={...$t,...n},o={left:t.left,top:t.top,width:t.width,height:t.height};let i=t.body;[t,r].forEach(g=>{const m=[],y=g.hFlip,k=g.vFlip;let w=g.rotate;y?k?w+=2:(m.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),m.push("scale(-1 1)"),o.top=o.left=0):k&&(m.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),m.push("scale(1 -1)"),o.top=o.left=0);let j;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:j=o.height/2+o.top,m.unshift("rotate(90 "+j.toString()+" "+j.toString()+")");break;case 2:m.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:j=o.width/2+o.left,m.unshift("rotate(-90 "+j.toString()+" "+j.toString()+")");break}w%2===1&&(o.left!==o.top&&(j=o.left,o.left=o.top,o.top=j),o.width!==o.height&&(j=o.width,o.width=o.height,o.height=j)),m.length&&(i='<g transform="'+m.join(" ")+'">'+i+"</g>")});const a=r.width,s=r.height,c=o.width,u=o.height;let d,f;a===null?(f=s===null?"1em":s==="auto"?u:s,d=Pe(f,c/u)):(d=a==="auto"?c:a,f=s===null?Pe(d,u/c):s==="auto"?u:s);const h={},p=(g,m)=>{Ho(m)||(h[g]=m.toString())};return p("width",d),p("height",f),h.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+u.toString(),{attributes:h,body:i}}const Wo=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let se=Wo();function Uo(e){se=e}function Bo(){return se}function Vo(e,n){const t=ue(e);if(!t)return 0;let r;if(!t.maxURL)r=0;else{let o=0;t.resources.forEach(a=>{o=Math.max(o,a.length)});const i=n+".json?icons=";r=t.maxURL-o-t.path.length-i.length}return r}function Qo(e){return e===404}const Ko=(e,n,t)=>{const r=[],o=Vo(e,n),i="icons";let a={type:i,provider:e,prefix:n,icons:[]},s=0;return t.forEach((c,u)=>{s+=c.length+1,s>=o&&u>0&&(r.push(a),a={type:i,provider:e,prefix:n,icons:[]},s=c.length),a.icons.push(c)}),r.push(a),r};function Zo(e){if(typeof e=="string"){const n=ue(e);if(n)return n.path}return"/"}const Jo=(e,n,t)=>{if(!se){t("abort",424);return}let r=Zo(n.provider);switch(n.type){case"icons":{const i=n.prefix,s=n.icons.join(","),c=new URLSearchParams({icons:s});r+=i+".json?"+c.toString();break}case"custom":{const i=n.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:t("abort",400);return}let o=503;se(e+r).then(i=>{const a=i.status;if(a!==200){setTimeout(()=>{t(Qo(a)?"abort":"next",a)});return}return o=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?t("abort",i):t("next",o)});return}setTimeout(()=>{t("success",i)})}).catch(()=>{t("next",o)})},Go={prepare:Ko,send:Jo};function at(e,n){switch(e){case"local":case"session":q[e]=n;break;case"all":for(const t in q)q[t]=n;break}}const ye="data-style";let Bt="";function Yo(e){Bt=e}function ct(e,n){let t=Array.from(e.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(ye));t||(t=document.createElement("style"),t.setAttribute(ye,ye),e.appendChild(t)),t.textContent=":host{display:inline-block;vertical-align:"+(n?"-0.125em":"0")+"}span,svg{display:block}"+Bt}function Vt(){et("",Go),Pt(!0);let e;try{e=window}catch{}if(e){if(Ht(),e.IconifyPreload!==void 0){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!Xe(o))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const r in t){const o="IconifyProviders["+r+"] is invalid.";try{const i=t[r];if(typeof i!="object"||!i||i.resources===void 0)continue;tt(r,i)||console.error(o)}catch{console.error(o)}}}}return{enableCache:t=>at(t,!0),disableCache:t=>at(t,!1),iconExists:bo,getIcon:wo,listIcons:yo,addIcon:Mt,addCollection:Xe,calculateSize:Pe,buildIcon:Ut,loadIcons:De,loadIcon:_o,addAPIProvider:tt,appendCustomStyle:Yo,_api:{getAPIConfig:ue,setAPIModule:et,sendAPIQuery:_t,setFetch:Uo,getFetch:Bo,listAPIProviders:$o}}}function Qt(e,n){let t=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in n)t+=" "+r+'="'+n[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+t+">"+e+"</svg>"}function Xo(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function er(e){return"data:image/svg+xml,"+Xo(e)}function tr(e){return'url("'+er(e)+'")'}const Me={"background-color":"currentColor"},Kt={"background-color":"transparent"},lt={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},ut={"-webkit-mask":Me,mask:Me,background:Kt};for(const e in ut){const n=ut[e];for(const t in lt)n[e+"-"+t]=lt[t]}function dt(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}function nr(e,n,t){const r=document.createElement("span");let o=e.body;o.indexOf("<a")!==-1&&(o+="<!-- "+Date.now()+" -->");const i=e.attributes,a=Qt(o,{...i,width:n.width+"",height:n.height+""}),s=tr(a),c=r.style,u={"--svg":s,width:dt(i.width),height:dt(i.height),...t?Me:Kt};for(const d in u)c.setProperty(d,u[d]);return r}let B;function or(){try{B=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{B=null}}function rr(e){return B===void 0&&or(),B?B.createHTML(e):e}function ir(e){const n=document.createElement("span"),t=e.attributes;let r="";t.width||(r="width: inherit;"),t.height||(r+="height: inherit;"),r&&(t.style=r);const o=Qt(e.body,t);return n.innerHTML=rr(o),n.firstChild}function ft(e,n){const t=n.icon.data,r=n.customisations,o=Ut(t,r);r.preserveAspectRatio&&(o.attributes.preserveAspectRatio=r.preserveAspectRatio);const i=n.renderedMode;let a;i==="svg"?a=ir(o):a=nr(o,{...G,...t},i==="mask");const s=Array.from(e.childNodes).find(c=>{const u=c.tagName&&c.tagName.toUpperCase();return u==="SPAN"||u==="SVG"});s?a.tagName==="SPAN"&&s.tagName===a.tagName?s.setAttribute("style",a.getAttribute("style")):e.replaceChild(a,s):e.appendChild(a)}function ht(e,n,t){const r=t&&(t.rendered?t:t.lastRender);return{rendered:!1,inline:n,icon:e,lastRender:r}}function sr(e="iconify-icon"){let n,t;try{n=window.customElements,t=window.HTMLElement}catch{return}if(!n||!t)return;const r=n.get(e);if(r)return r;const o=["icon","mode","inline","width","height","rotate","flip"],i=class extends t{_shadowRoot;_state;_checkQueued=!1;constructor(){super();const s=this._shadowRoot=this.attachShadow({mode:"open"}),c=xe(this);ct(s,c),this._state=ht({value:""},c),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(s){if(s==="inline"){const c=xe(this),u=this._state;c!==u.inline&&(u.inline=c,ct(this._shadowRoot,c))}else this._queueCheck()}get icon(){const s=this.getAttribute("icon");if(s&&s.slice(0,1)==="{")try{return JSON.parse(s)}catch{}return s}set icon(s){typeof s=="object"&&(s=JSON.stringify(s)),this.setAttribute("icon",s)}get inline(){return xe(this)}set inline(s){s?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const s=this._state;if(s.rendered){const c=this._shadowRoot;if(s.renderedMode==="svg")try{c.lastChild.setCurrentTime(0);return}catch{}ft(c,s)}}get status(){const s=this._state;return s.rendered?"rendered":s.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const s=this._state,c=this.getAttribute("icon");if(c!==s.icon.value){this._iconChanged(c);return}if(!s.rendered)return;const u=this.getAttribute("mode"),d=Ge(this);(s.attrMode!==u||uo(s.customisations,d))&&this._renderIcon(s.icon,d,u)}_iconChanged(s){const c=zo(s,(u,d,f)=>{const h=this._state;if(h.rendered||this.getAttribute("icon")!==u)return;const p={value:u,name:d,data:f};p.data?this._gotIconData(p):h.icon=p});c.data?this._gotIconData(c):this._state=ht(c,this._state.inline,this._state)}_gotIconData(s){this._checkQueued=!1,this._renderIcon(s,Ge(this),this.getAttribute("mode"))}_renderIcon(s,c,u){const d=Fo(s.data.body,u),f=this._state.inline;ft(this._shadowRoot,this._state={rendered:!0,icon:s,inline:f,customisations:c,attrMode:u,renderedMode:d})}};o.forEach(s=>{s in i.prototype||Object.defineProperty(i.prototype,s,{get:function(){return this.getAttribute(s)},set:function(c){c!==null?this.setAttribute(s,c):this.removeAttribute(s)}})});const a=Vt();for(const s in a)i[s]=i.prototype[s]=a[s];return n.define(e,i),i}const ar=sr()||Vt(),{enableCache:pi,disableCache:gi,iconExists:mi,getIcon:xi,listIcons:yi,addIcon:bi,addCollection:wi,calculateSize:vi,buildIcon:ki,loadIcons:ji,loadIcon:Ci,addAPIProvider:Ii,_api:Si}=ar,de=(e,n,t="children")=>e.map(r=>Array.isArray(r[t])?n({...r,[t]:de(r[t],n,t)}):n(r)),Ti=(e,n="children")=>{const t=[];return de(e,r=>t.push(r),n),t},He=(e,n,t="children")=>e.map(r=>({...r})).filter(r=>{const o=r[t];if(Array.isArray(o)){const a=He(o,n,t);r[t]=a?.length?a:void 0}const i={filteredChildren:r[t],isLeaf:!o?.length};return n(r,i)}),cr=e=>/^https?:\/\//.test(e),lr=e=>/^mailto:/i.test(e.trim()),ur=e=>{if(!e||!e?.startsWith("/"))return!1;const n=o=>o.endsWith("/")?o:`${o}/`,t=n(window.location.pathname),r=n(new URL(e,window.location.origin).pathname);return t.startsWith(r)},$i=(e=[])=>{const n=e.map((t,r)=>({path:t,index:r})).filter(t=>ur(t.path));return n?.length?n.slice(1).reduce((t,r)=>t.path.length>=r.path.length?t:r,n[0]).index:-1},Li=(e,n={})=>{const{columns:t=1,breakInside:r=!1,groupHeight:o=48,itemHeight:i=24,childrenKey:a="items"}=n,s=e.length,c=e.reduce((m,y)=>m+o+(y[a]?.length||0)*i,0),u=Math.ceil(c/t),d=[[]];let f=0,h=0;const p=u*.2,g=m=>h>u-p&&f<t-1&&h+m>u+p;return e.forEach(m=>{const y=o+(m[a]?.length||0)*i;r&&g(o)&&(f++,h=0,d[f]=[]),!r&&h>0&&(s<=t||g(y))&&(f++,h=0,d[f]=[]),d[f].push({...m,group:!0}),h+=o,m[a]&&m[a].forEach(k=>{r&&g(i)&&(f++,h=0,d[f]=[]),d[f].push({...k,group:!1}),h+=i})}),d},Ai=window?.blocklet?.groupPrefix||window?.blocklet?.prefix||"/",dr=e=>{const n={...e},t=e?.background;return typeof t=="string"?n.background={header:t,footer:t,default:t}:t&&typeof t=="object"&&(n.background={header:t.header||t.default,footer:t.footer||t.default,default:t.default}),n},fr=(e,n="en",t="en")=>{if(typeof e=="string"){if(cr(e)){const o=new URL(e);return o.searchParams.set("locale",n),o.href}if(lr(e))return e;const r=new URL(e,window.location.origin);return r.searchParams.set("locale",n),r.pathname+r.search}return typeof e=="object"?e[n]||e[t]||e.en:e},hr=({navigation:e,locale:n,defaultLocale:t,section:r="header"})=>{if(!e?.length)return e;const o=(i,a)=>i&&typeof i=="object"?i[a]||i[t]||i.en:i;return de(e,i=>({...i,title:o(i.title,n),description:o(i.description,n),link:io(i.items?.length?i.link:fr(i.link,n,t),r),_rawLink:i.link}),"items")},pr=e=>de(e,n=>n.role?{...n,role:Array.isArray(n.role)?n.role:[n.role]}:n,"items"),gr=e=>{if(!e?.length)return null;const n=pr(e),t={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return n.forEach(r=>{r.section?Array.isArray(r.section)?r.section.forEach(o=>{t[o]?.push(r)}):typeof r.section=="string"&&t[r.section]?.push(r):t.header.push(r)}),t},Ei=e=>{if(!e)return null;const n={...e};return n.theme=dr(n.theme),n.navigation=gr(mr(n.navigation)),n},mr=(e=[])=>He(e,(n,t)=>!!n.link||t.filteredChildren?.length,"items"),xr=(e,n)=>He(e,(t,r)=>{const o=!t.role||n&&(t.role.includes(n)||t.role.includes("guest"));return r.isLeaf?o:o&&r.filteredChildren?.length},"items"),yr={top:-960,width:960,height:960,body:'<path fill="currentColor" d="M510-600v-210q0-12.75 8.625-21.375T540-840h270q12.75 0 21.375 8.625T840-810v210q0 12.75-8.625 21.375T810-570H540q-12.75 0-21.375-8.625T510-600M120-480v-330q0-12.75 8.625-21.375T150-840h270q12.75 0 21.375 8.625T450-810v330q0 12.75-8.625 21.375T420-450H150q-12.75 0-21.375-8.625T120-480m390 330v-330q0-12.75 8.625-21.375T540-510h270q12.75 0 21.375 8.625T840-480v330q0 12.75-8.625 21.375T810-120H540q-12.75 0-21.375-8.625T510-150m-390 0v-210q0-12.75 8.625-21.375T150-390h270q12.75 0 21.375 8.625T450-360v210q0 12.75-8.625 21.375T420-120H150q-12.75 0-21.375-8.625T120-150m60-360h210v-270H180zm390 330h210v-270H570zm0-450h210v-150H570zM180-180h210v-150H180zm210-150"/>'},br={width:24,height:24,body:'<path fill="currentColor" d="M15.95 12.3L11.7 8.05q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375t.212-.325l4.25-4.25q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.25 4.25q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.25 4.25q-.15.15-.325.213t-.375.062q-.2 0-.375-.062t-.325-.213ZM3 10V4q0-.425.288-.713T4 3h6q.425 0 .713.288T11 4v6q0 .425-.288.713T10 11H4q-.425 0-.713-.288T3 10Zm10 10v-6q0-.425.288-.713T14 13h6q.425 0 .713.288T21 14v6q0 .425-.288.713T20 21h-6q-.425 0-.713-.288T13 20ZM3 20v-6q0-.425.288-.713T4 13h6q.425 0 .713.288T11 14v6q0 .425-.288.713T10 21H4q-.425 0-.713-.288T3 20ZM5 9h4V5H5v4Zm11.675 1.2L19.5 7.375L16.675 4.55L13.85 7.375l2.825 2.825ZM15 19h4v-4h-4v4ZM5 19h4v-4H5v4ZM9 9Zm4.85-1.625ZM9 15Zm6 0Z"/>'};function wr({session:e,locale:n="zh",size:t=24,popperType:r="click",sx:o,...i}){const a=window?.blocklet||{},s=(a.navigation||[]).filter(p=>p.section==="sessionManager"&&!["/sessionManager"].includes(p.id)).filter(p=>!!(p?.role||[]).includes(e?.user?.role||"guest")).map(p=>{const g=(a?.componentMountPoints||[]).find(m=>p.component===m.name);return{...p,component:g}}),c=ce(),u=C.useRef(null),d=It({open:!1}),f=R((p=!d.open)=>{d.open=p}),h=r==="hover"?{onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1)}:{onClick:()=>f()};return s.length===0||!e?.user?null:l.jsxs(A,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",...o},...i,...h,children:[l.jsx(Re,{size:"medium",ref:u,children:l.jsx(Ce,{icon:yr,fontSize:t,style:{transform:"scale(1.08)"}})}),l.jsx(cn,{open:d.open,anchorEl:u.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:p})=>l.jsx(ln,{onClickAway:g=>{g.preventDefault(),g.stopPropagation(),f(!1)},children:l.jsx(un,{...p,timeout:350,children:l.jsxs(dn,{variant:"outlined",sx:{borderRadius:1.5,width:350,maxWidth:"90vw",p:2},children:[l.jsx(fn,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 100px)",gridAutoRows:"minmax(100px, max-content)",justifyContent:"space-between",maxHeight:350,overflowY:"auto",p:0},children:s.map(g=>l.jsx(hn,{disablePadding:!0,children:l.jsxs(pn,{href:Ze(g.link,n),sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:1,"&:hover":{backgroundColor:"action.hover"}},children:[g?.component?.did?l.jsx(A,{component:"img",src:`${oe}/blocklet/logo-bundle/${g.component.did}`,sx:{borderRadius:1,width:50,height:50,objectFit:"contain"},alt:"SessionBlocklet component icon"}):l.jsx(Ce,{fontSize:50,icon:g.icon||br,color:c.palette.text.secondary}),l.jsx(L,{sx:{fontSize:"12px",color:"text.primary",textAlign:"center",lineHeight:"normal"},children:Ze(g.title,n)})]})},g.id))}),l.jsx(qn,{session:e,children:l.jsx(Ie,{variant:"outlined",fullWidth:!0,href:Dn,sx:{mt:1},children:n==="zh"?"管理":"Manage"})})]})})})})]})}const Pi=x.shape({appLogo:x.node,appName:x.string,theme:x.shape({background:x.string}),enableConnect:x.bool,enableLocale:x.bool,navigation:x.arrayOf(x.shape({title:x.oneOfType([x.string,x.object]),link:x.oneOfType([x.string,x.object]),icon:x.string,items:x.arrayOf(x.shape({title:x.oneOfType([x.string,x.object]),link:x.oneOfType([x.string,x.object])}))}))}),vr=x.shape({showText:x.bool,showRole:x.bool,switchDid:x.bool,switchProfile:x.bool,switchPassport:x.bool,disableLogout:x.bool,onLogin:x.func,onLogout:x.func,onSwitchDid:x.func,onSwitchProfile:x.func,onSwitchPassport:x.func,menu:x.array,menuRender:x.func,dark:x.bool,size:x.number,profileUrl:x.string}),kr=["admin","owner"],jr=e=>e.endsWith(".ip.abtnet.io"),Cr=e=>e.endsWith(".did.abtnet.io"),Ir={en:{guest:{title:"Notice: You are using a temporary domain",description:"You are accessing this site through a temporary domain. For a better experience, please contact the site administrator to configure a custom domain. Using a custom domain not only makes access more convenient but also ensures your access is more secure."},owner:{title:"Enhance Your Website Security",description:"Dear administrator, we recommend configuring your custom domain immediately, which will:",benefits1:"Automatically obtain HTTPS certificates to ensure secure data transmission",benefits2:"Create an exclusive brand image and increase website credibility",benefits3:"Get a shorter, more memorable access address",benefits4:"Provide visitors with a more professional experience",benefits5:"Domain configuration takes just minutes to complete, taking your website to the next level!"},skip:"Remind Me Later",bindDomain:"Configure Domain"},zh:{guest:{title:"温馨提示:当前使用的是临时域名",description:"您正在通过临时域名访问本站点。为了获得更好的访问体验,请联系站点管理员配置自定义域名。使用自定义域名不仅访问更便捷,还能确保您的访问更加安全。"},owner:{title:"提升网站安全性与专业度",description:"尊敬的管理员,我们建议您尽快配置自定义域名,这样可以:",benefits1:"自动获取 HTTPS 证书,确保数据传输安全",benefits2:"打造专属品牌形象,提升网站可信度",benefits3:"获得更简短、易记的访问地址",benefits4:"为访客提供更专业的访问体验",benefits5:"只需几分钟即可完成域名配置,全面提升您的网站品质!"},skip:"稍后提醒",bindDomain:"配置域名"}},Sr=1e3*60*60*24*30,pt=".well-known/service/admin/domains";function Zt({locale:e="en",session:n={}}){const t=n?.user,r=to(),[o,i]=C.useState(()=>{const h=window.localStorage.getItem("domain-warning-skip");if(!h)return!0;const p=+new Date,g=+new Date(h);return p-g>Sr}),a=R((h,p={})=>_e(Ir,h,e,"en",p)),s=C.useMemo(()=>{try{const{hostname:h}=new URL(window.location.href);return h}catch{return""}},[]),c=C.useMemo(()=>[a("owner.benefits1"),a("owner.benefits2"),a("owner.benefits3"),a("owner.benefits4"),a("owner.benefits5")],[a]),u=C.useCallback(()=>{window.localStorage.setItem("domain-warning-skip",new Date().toISOString()),i(!1)},[]),d=C.useCallback(()=>{const h=N(window.location.origin,pt);h.startsWith("http")&&window.open(h,"_blank"),i(!1)},[]),f=t?.role&&kr.includes(t.role);return window.location.href.includes(pt)||r||!jr(s)&&!Cr(s)?null:l.jsxs(gn,{open:o,disableEscapeKeyDown:!0,fullWidth:!0,maxWidth:"sm",onClose:()=>i(!1),children:[l.jsxs(mn,{sx:{padding:"20px !important"},children:[l.jsx(L,{sx:{fontSize:"20px",fontWeight:"500"},children:a(f?"owner.title":"guest.title")}),l.jsx(L,{sx:{marginTop:"20px",fontSize:"14px",color:"text.secondary"},children:a(f?"owner.description":"guest.description")}),f&&l.jsx(A,{component:"ul",children:c.map(h=>l.jsx(L,{component:"li",sx:{fontSize:"14px",color:"text.secondary"},children:h},h))})]}),l.jsxs(xn,{sx:{px:"12px !important"},children:[l.jsx(ne,{onClick:u,children:a("skip")}),f&&l.jsx(ne,{variant:"contained",onClick:d,children:a("bindDomain")})]})]})}Zt.propTypes={locale:x.string,session:x.object};const Tr=e=>C.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.251 2.5c-2.576-.006-4.747 2.1-4.766 4.506v5.784c0 .793-.084 1.778-.58 2.71h12.19c-.496-.932-.58-1.917-.58-2.711V7.01c-.035-2.403-2.21-4.502-4.797-4.508L9.25 2.5zM17.015 7v5.789c0 .79.1 1.562.53 2.219l.287.438c.436.664-.033 1.554-.817 1.554H2.985c-.785 0-1.255-.89-.818-1.554l.287-.438c.43-.657.53-1.428.53-2.218V7c.024-3.291 2.927-6.008 6.27-6l1.467.003c3.344.008 6.254 2.706 6.294 5.998zM11.06 18.06A1.5 1.5 0 0 0 11.5 17H13a3 3 0 0 1-6 0h1.5a1.5 1.5 0 0 0 2.56 1.06z",fill:"currentColor"})),T={};function $r(e="admin"){let n="/";!window?.blocklet&&window?.env?.apiPrefix&&(n=window.env.apiPrefix);const t=N(n,oe,e);return new Mn.WsClient(t,{heartbeatIntervalMs:100*1e3})}function Lr(e="admin"){return T[e]||(T[e]=$r(e)),T[e]}const Ar=(e="admin")=>{const n=C.use(wt),{session:t}=n??{},r=P(()=>t.user?.did,[t.user]),o=Zn(r);return Jn(()=>{Object.keys(T).forEach(i=>{T[i]?.isConnected()&&T[i]?.disconnect(),delete T[i]})}),r?(o&&o!==r&&Object.keys(T).forEach(i=>{T[i]&&(T[i].isConnected()&&T[i].disconnect(),T[i].connect())}),!T[e]&&t.user&&(T[e]=Lr(e),T[e].connect()),T[e]):null},Er={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0"/><path d="m9 12l2 2l4-4"/></g>'},Pr={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0m9-3v4m0 3v.01"/>'},Mr={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 21a9 9 0 0 0 9-9a9 9 0 0 0-9-9a9 9 0 0 0-9 9a9 9 0 0 0 9 9zM9 8l6 8m0-8l-6 8"/>'};function Or(){const e=ce();return[...e.breakpoints.keys].reverse().reduce((n,t)=>{const r=yn(e.breakpoints.up(t));return!n&&r?t:n},null)||"xs"}var be,gt;function Rr(){if(gt)return be;gt=1;const{joinURL:e,withQuery:n}=On(),{toTypeInfo:t}=oo(),{isEVMChain:r,getExplorerUrl:o}=Rn(),{arcChainConfig:i}=_n(),a={ROLE_ROLLUP:"number"},s="https://explorer.abtnetwork.io/explorer/";return be=function({hash:u,asset:d,rollup:f,address:h,token:p,stake:g,chainId:m=""}){if(r(m)){const j=o(m);return u?e(j,`tx/${u}`):d?e(j,`token/${d}`):e(j,`address/${h}`)}const k=i[m]?.defaultRPC,w=k?`${k}`:void 0;return f&&t(f).role===a.ROLE_ROLLUP?u?n(e(s,`rollups/${f}/moves/${u}`),{host:w}):n(e(s,`rollups/${f}`),{host:w}):d?n(e(s,`assets/${d}`),{host:w}):u?n(e(s,`txs/${u}`),{host:w}):p?n(e(s,`tokens/${p}/tx`),{host:w}):g?n(e(s,`stakes/${g}`),{host:w}):n(e(s,`accounts/${h}`),{host:w})},be}var we,mt;function Jt(){return mt||(mt=1,we={isSameAddr:(e,n)=>String(e).toLowerCase()===String(n).toLowerCase()}),we}var ve,xt;function _r(){if(xt)return ve;xt=1;const e=Rr(),{isSameAddr:n}=Jt();class t{constructor({type:c,did:u,chainId:d,text:f}){this.text=f,this.did=u,this.type=c,this.chainId=d}}const r=s=>{const c=[];try{let u=0;const d=/<(.+?)\(?[tx|nft|token|stake|did|dapp|link]+[:](.+?)\)?>/gi,f=s.matchAll(d);for(const h of f){const p=/\([tx|nft|token|stake|did|dapp|link]+[:](.+?)\)/gi,g=h[0],m=h.index||u,y=m+g.length;if([...g.matchAll(p)].length>1)return[s];let w="";const j=p.exec(g);let $="";if(j){const M=j[0];w=g.replace(M,"").replace(/^</,"").replace(/(>)$/,""),$=M.replace(/\)$/,"").replace(/^\(/,"")}else $=g;const S=$.split(":"),v=(S[0]||"").replace(/^</,"").replace(/^\(/,"").toUpperCase(),I=(S[1]||"").replace(/>$/,"").replace(/\)$/,""),E=(S[S.length-1]||"").replace(/>$/,"").replace(/\)$/,"");c.push(s.substring(u,m)),c.push(new t({type:v,chainId:I,did:E,text:w||v})),u=y}return u<s.length&&c.push(s.substring(u)),c}catch(u){return console.error(u?.message),[s]}},o=s=>{let c;const{type:u,chainId:d,did:f}=s;return n(u,"link")?c=`${d}:${f}`:n(u,"tx")?c=e({hash:f,chainId:d}):n(u,"stake")?c=e({stake:f,chainId:d}):n(u,"nft")?c=e({asset:f,chainId:d}):n(u,"token")?c=e({token:f,chainId:d}):n(u,"did")&&(c=e({address:f,chainId:d})),c};return ve={toClickableSpan:(s,c=!0)=>r(s).map(d=>{if(d instanceof t){if(c){const f=o(d),{type:h,chainId:p,did:g}=d;return n(h,"dapp")?`<em style="font-weight:bold;" data-type="${h}" data-chain-id="${p}" data-did="${g}">${d.text}</em>`:f?`<a target="_blank" rel="noopener noreferrer" style="color:#4598fa;font-weight:bold;" href="${f}">${d.text}</a>`:`<em style="font-weight:bold;" data-type="${h}" data-chain-id="${p}" data-did="${g}">${d.text}</em>`}return d.text}return d}).join(""),toTextList:r,toSlackLink:s=>r(s).map(u=>u instanceof t?`<${o(u)}|${u.text}>`:u.replace(/:\n/g,": ")).join(""),Link:t,getLink:o},ve}var ae=_r(),Gt=Jt();const Nr=e=>!St(e.activity)&&!!e.activity?.type&&!!e.activity?.actor,zr=e=>{if(!e)return null;const{meta:n,target:t}=e;return{metaLink:n?.id,targetLink:t?.id}},Fr=async(e,n)=>{try{return await vt().user.getProfileUrl({did:e,locale:n})}catch(t){console.error(t);return}},qr=async(e,n)=>{const{type:t,did:r}=e;return Gt.isSameAddr(t,"did")&&await Fr(r,n)||ae.getLink(e)},Dr=async(e,n,t=!0)=>{const r=ae.toTextList(e);return await Promise.all(r.map(async o=>{if(o instanceof ae.Link){if(t){const i=await qr(o,n),{type:a,chainId:s,did:c}=o;return Gt.isSameAddr(a,"dapp")?`<em class="dapp" data-type="${a}" data-chain-id="${s}" data-did="${c}">${o.text}</em>`:i?`<a target="_blank" rel="noopener noreferrer" class="link" href="${i}">${o.text}</a>`:`<em class="common" data-type="${a}" data-chain-id="${s}" data-did="${c}">${o.text}</em>`}return o.text}return o})).then(o=>o.join(""))},Hr=e=>no.sanitize(e,{ALLOWED_ATTR:["href","target","rel","class","id","style"]}),Wr={comment:(e,n)=>n&&n>1?l.jsxs(l.Fragment,{children:["left ",n," comments on your ",e]}):l.jsxs(l.Fragment,{children:["commented on your ",e]}),like:e=>l.jsxs(l.Fragment,{children:["liked your ",e]}),follow:()=>l.jsx(l.Fragment,{children:"followed you"}),tips:e=>l.jsxs(l.Fragment,{children:["gave tips to your ",e]}),mention:e=>l.jsxs(l.Fragment,{children:["mentioned you in ",e]}),assign:()=>l.jsx(l.Fragment,{children:"assigned you a task"})};function D({user:e,color:n=void 0}){const{palette:t}=ce(),r=J(N(_.WELLKNOWN_SERVICE_PATH_PREFIX,"user"),{did:e.did}),o=n||t.text.primary;return l.jsx(bt,{href:r,color:o,target:"_blank",onClick:i=>{i.customPreventRedirect=!0},sx:{fontWeight:600,textDecoration:"none","&:hover":{cursor:"pointer"}},children:e.fullName||"System"})}D.displayName="UserLink";function Ur({activity:e,users:n,actors:t,extra:r={},mountPoint:o=""}){const{palette:i}=ce(),{type:a,target:s}=e||{},{type:c}=s||{},{linkColor:u=i.text.primary}=r||{},d=P(()=>{if(!Array.isArray(n))return new Map;const y=new Map;return n.forEach(k=>{k?.did&&!y.has(k.did)&&y.set(k.did,k)}),y},[n]),f=P(()=>Array.isArray(t)?t.map(y=>y?d.get(y)||{did:y,fullName:"System"}:null).filter(Boolean):[],[t,d]),h=R(()=>{if(!Array.isArray(f)||f.length===0)return null;if(f.length===1)return l.jsx(D,{user:f[0],color:u});const y=f.slice(0,-1),k=f[f.length-1];if(f.length===2)return l.jsxs(l.Fragment,{children:[l.jsx(D,{user:y[0],color:u})," and ",l.jsx(D,{user:k,color:u})]});const w=f.length>3,j=w?f.slice(0,2):y;return l.jsxs(l.Fragment,{children:[j.map(($,S)=>l.jsxs(Pn.Fragment,{children:[l.jsx(D,{user:$,color:u}),S<j.length-1?", ":""]},$.did)),w?`, and ${f.length-2} others`:l.jsxs(l.Fragment,{children:[", and ",l.jsx(D,{user:k,color:u})]})]})}),p=R(()=>{const y=a?Wr[a]:null;return y?y(c,n.length):null}),g=P(()=>{const y=h(),k=p();return!y||!k?null:l.jsxs(l.Fragment,{children:[y," ",k]})},[a,c,f,h,p]),m=P(()=>{if(!e)return null;const y=zr(e);return y?.targetLink?N(o,y.targetLink):null},[e,o]);return!a||St(s)?null:l.jsxs(l.Fragment,{children:[g," ",m&&l.jsx(bt,{href:m,color:u,target:"_blank",sx:{textDecoration:"none"},onClick:y=>{y.customPreventRedirect=!0},children:s.name})]})}const Br={normal:Ke,success:Er,info:Ke,warning:Pr,error:Mr},Vr=Z(vn)`
2
- font-size: 20px;
3
- `,Qr=Z.div`
4
- display: flex;
5
- align-items: flex-start;
6
- gap: 8px;
7
- flex: 1;
8
- width: 0;
9
- `,Kr=Z.div`
10
- display: flex;
11
- align-items: center;
12
- margin-left: auto;
13
- margin-right: -8px;
14
- width: 44px;
15
- `,Zr={xl:"400px",lg:"400px",md:"400px",sm:"300px"},Jr=Z(Hn)`
16
- display: flex;
17
- color: #fff;
18
- align-items: center;
19
- padding: 12px 16px;
20
- border-radius: 4px;
21
- box-shadow:
22
- 0px 3px 5px -1px rgba(0, 0, 0, 0.2),
23
- 0px 6px 10px 0px rgba(0, 0, 0, 0.14),
24
- 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
25
-
26
- ${({severity:e,breakpoint:n})=>{const t=Zr[n]||"400px";return e==="success"?`
27
- background-color: ${bn[600]} !important;
28
- width: ${t};
29
- `:e==="error"?`
30
- background-color: #d32f2f !important;
31
- width: ${t};
32
- `:e==="info"?`
33
- background-color: #1976d2 !important;
34
- width: ${t};
35
- `:e==="warning"?`
36
- background-color: ${wn[700]} !important;
37
- width: ${t};
38
- `:`
39
- background-color: #333;
40
- width: ${t};
41
- `}}
42
- `,Gr=Z.div`
43
- cursor: pointer;
44
- display: flex;
45
- flex-direction: column;
46
- .title {
47
- overflow: hidden;
48
- text-overflow: ellipsis;
49
- display: -webkit-box;
50
- -webkit-line-clamp: 1;
51
- -webkit-box-orient: vertical;
52
- font-weight: bold;
53
- }
54
- .desc {
55
- overflow: hidden;
56
- text-overflow: ellipsis;
57
- display: -webkit-box;
58
- -webkit-line-clamp: 3;
59
- -webkit-box-orient: vertical;
60
- word-break: break-word;
61
- line-height: 1.2;
62
- .link,
63
- .dapp,
64
- .common {
65
- color: ${ke.white};
66
- }
67
- }
68
- `;function Yr({ref:e=void 0,keyId:n,notification:t={},viewAllUrl:r,content:o=null}){const i=Or(),[a,s]=C.useState(t.description||""),c=Br[t.severity||""],{closeSnackbar:u}=kt(),d=()=>u(n);C.useEffect(()=>{Dr(t.description||"","en").then(y=>{s(y)})},[t.description]);const f=y=>{y.stopPropagation(),u(n),y?.customPreventRedirect||window.open(r,"_blank")},h=P(()=>Nr(t),[t]),p=P(()=>t?.activity,[t]),g=P(()=>!p||p.type==="tips"?null:p?.meta,[p]),m=Ur({activity:p,users:[t?.actorInfo],actors:[t?.activity?.actor],extra:{linkColor:ke.white}});return l.jsxs(Jr,{ref:e,severity:t.severity,breakpoint:i,children:[l.jsxs(Qr,{children:[c?l.jsx(Ce,{icon:c,fontSize:24}):null,l.jsx(Gr,{onClick:f,style:{width:"calc(100% - 30px)"},children:l.jsx(A,{children:h?l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"title",children:m}),g?l.jsx(L,{variant:"subtitle2",component:"p",sx:{fontSize:16,display:"-webkit-box",overflow:"hidden",textOverflow:"ellipsis",WebkitLineClamp:3,WebkitBoxOrient:"vertical",color:ke.white,lineHeight:1.2},children:g?.content}):null]}):l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"title",children:t.title}),o||l.jsx(L,{component:"span",className:"desc",dangerouslySetInnerHTML:{__html:Hr(a)}})]})})})]}),l.jsx(Kr,{children:l.jsx(Re,{"aria-label":"close",color:"inherit",onClick:d,size:"large",children:l.jsx(Vr,{})},"close")})]})}const Oe=N(_.WELLKNOWN_SERVICE_PATH_PREFIX,"user","notifications"),Xr=e=>J(Oe,{id:e.id,severity:e.severity||"all",componentDid:e.source==="system"?"system":e.componentDid||"all"});function Yt({session:e={}}){const{unReadCount:n,user:t,setUnReadCount:r}=e,o=P(()=>t?.did,[t]),i=P(()=>t?.role&&[_.ROLES.ADMIN,_.ROLES.OWNER].includes(t?.role),[t?.role]),{enqueueSnackbar:a}=kt(),s=jt(),c=C.useMemo(()=>!o||t?.isPreviewUser||o===window.blocklet.did,[o,t]),u=C.useMemo(()=>s.arcSphere||s.wallet,[s]),d=P(()=>window.blocklet?.serverVersion,[]),f=Ar("user"),h=P(()=>`${window.blocklet.did}/${o}/${_.EVENTS.NOTIFICATION_BLOCKLET_CREATE}`,[o]),p=P(()=>`${window.blocklet.did}/${o}/${_.EVENTS.NOTIFICATION_BLOCKLET_READ}`,[o]),g=C.useCallback(y=>{const{receivers:k,source:w}=y??{},{receiver:j}=k[0]??{};if(j===o&&(i||w!=="system")){r(S=>S+1);const $=Wn(d,"1.16.42-beta-20250407");if(!u&&y.source==="component"&&$){const S=Xr(y),{severity:v,description:I}=y||{},E=["error","warning"].includes(v)||y.sticky;a(I,{variant:v,autoHideDuration:E?null:5e3,anchorOrigin:{vertical:"top",horizontal:"center"},content:M=>l.jsx(Yr,{viewAllUrl:S,keyId:M,notification:y})})}}},[o,r,a,d,u,i]),m=C.useCallback(y=>{const{receiver:k,readCount:w}=y??{};k===o&&r(j=>Math.max(j-w,0))},[o,r]);return C.useEffect(()=>(f&&!c&&(f.on(h,g),f.on(p,m)),()=>{f&&!c&&(f.off(h,g),f.off(p,m))}),[f,r,g,h,m,p,c]),!e.user||!Oe?null:l.jsx(Re,{size:"medium",variant:"outlined",href:J(Oe,{read:n<=0}),sx:{"&:hover":{borderRadius:"50%"}},children:l.jsx(kn,{badgeContent:n,color:"error",invisible:n===0,children:l.jsx(Tr,{style:{width:"auto",height:24}})})})}Yt.propTypes={session:x.object};const Xt=e=>{const{response:n}=e;return n?`Request failed: ${n.status} ${n.statusText}: ${JSON.stringify(n.data)}`:e.message},Mi=e=>e.scope==="kyc"?Nn({...e,issuerAvatarUrl:N(window.location.origin,oe,"/blocklet/logo"),type:e.role}):zn({...e,issuerAvatarUrl:N(window.location.origin,oe,"/blocklet/logo")});function en(e){const n=vt(),t=R(async({search:a,page:s=1,pageSize:c=20})=>{try{return await n.user.getOrgs({search:a,page:s,pageSize:c})}catch(u){return console.error(u),{orgs:[],paging:{page:s,pageSize:c,total:0}}}}),r=R(async({name:a,description:s})=>{try{return(await n.user.createOrg({name:a,description:s})).data}catch(c){return console.error(c),Ct.error(Xt(c)),null}}),o=R(async a=>{try{return await n.user.getOrg(a)}catch(s){return e.logout(),console.error(s),null}}),i=R(async a=>{try{const s=await n.user.getRole(a);return s.orgId?await o(s.orgId):null}catch(s){return console.error(s),null}});return{getOrgs:t,createOrg:r,getCurrentOrg:i}}const tn={en:{search:"Search",orgs:"Organizations",loadingMore:"Loading more",myJoinedEmpty:"You have not joined any organizations yet",createNew:"Create New Organization",viewAll:"View All Organizations",nameEmpty:"Name cannot be empty",nameTooLong:"Name must be less than {length} characters",descriptionTooLong:"Description must be less than {length} characters",cancel:"Cancel",create:"Create",mutate:{title:"{mode} Organization",name:"Name",description:"Description"}},zh:{search:"搜索",orgs:"组织",loadingMore:"加载更多",myJoinedEmpty:"您还没有加入任何组织",createNew:"创建新组织",viewAll:"查看所有组织",nameEmpty:"名称不能为空",nameTooLong:"名称不能超过{length}个字符",descriptionTooLong:"描述不能超过{length}个字符",cancel:"取消",create:"创建",mutate:{title:"{mode}组织",name:"组织名称",description:"组织描述"}}};function nn({onSuccess:e=Je,onCancel:n=Je,locale:t="en"}){const[r,o]=C.useState(!1),[i,a]=C.useState(""),{createOrg:s}=en(),c=R((h,p={})=>_e(tn,h,t,"en",p)),u=It({name:"",description:""}),d=async()=>{const h=u.name.trim();if(!h){a(c("nameEmpty"));return}if(h.length>25){a(c("nameTooLong",{length:25}));return}const p=u.description.trim();if(p.length>255){a(c("descriptionTooLong",{length:25}));return}a(""),o(!0);try{await s({name:h,description:p}),e()}catch(g){console.error(g);const m=Xt(g);a(m),Ct.error(m)}finally{o(!1)}},f=l.jsxs("div",{children:[l.jsx(L,{component:"div",style:{marginTop:16},children:l.jsx(je,{label:c("mutate.name"),autoComplete:"off",variant:"outlined",name:"name","data-cy":"mutate-org-input-name",fullWidth:!0,autoFocus:!0,value:u.name,onChange:h=>{a(""),u.name=h.target.value},disabled:r})}),l.jsx(L,{component:"div",style:{marginTop:16,marginBottom:16},children:l.jsx(je,{label:c("mutate.description"),autoComplete:"off",variant:"outlined",name:"description","data-cy":"mutate-org-input-description",fullWidth:!0,value:u.description,onChange:h=>{a(""),u.description=h.target.value},disabled:r,multiline:!0,rows:3})})]});return l.jsxs(Un,{title:c("mutate.title",{mode:c("create")}),fullWidth:!0,open:!0,onClose:n,showCloseButton:!1,actions:l.jsxs(l.Fragment,{children:[l.jsx(Ie,{onClick:n,color:"inherit",children:c("cancel")}),l.jsxs(Ie,{"data-cy":"mutate-org-confirm",onClick:d,color:"primary",disabled:r,variant:"contained",autoFocus:!0,children:[r&&l.jsx(In,{size:16}),c("create")]})]}),children:[l.jsx(jn,{component:"div",children:f}),!!i&&l.jsx(Cn,{severity:"error",style:{width:"100%",margin:0},children:i})]})}nn.propTypes={onSuccess:x.func,onCancel:x.func,locale:x.string};const yt=20;function on({session:e,locale:n="en"}){const[t,r]=C.useState(null),[o,i]=C.useState(""),[a,s]=C.useState(!1),c=C.useRef(null),u=R((b,F={})=>_e(tn,b,n,"en",F)),{getOrgs:d,getCurrentOrg:f}=en(e),h=C.useMemo(()=>e?.user?.role||"",[e?.user?.role]),{data:p={}}=Gn(()=>f(h),{ready:!!h,refreshDeps:[h],onError:b=>{console.error("Failed to get organization role",b)}}),g=C.useMemo(()=>p||{name:e?.user?.passports?.find(b=>b.name===h)?.title||h||"-"},[p,h,e?.user?.passports]),m=Yn(o,{wait:500}),{data:y,loadMore:k,loadingMore:w,reload:j}=Xn(async b=>{const F={page:b?Math.ceil(b.list.length/yt)+1:1,pageSize:yt,search:o},H=await d(F),{orgs:fe=[],paging:he}=H||{};return{list:fe,total:he?.total||0}},{reloadDeps:[m],isNoMore:b=>b?.list.length?b.list.length>=b?.total:!0,onError:b=>{console.error("Failed to fetch organizations list",b)}}),{list:$=[],total:S=0}=y||{},v=$.length<S,I=R(b=>{const F=b.target,{scrollTop:H,scrollHeight:fe,clientHeight:he}=F;fe-H-he<50&&!w&&v&&k()}),E=!!t;C.useEffect(()=>{E&&j()},[E,j]);const M=b=>{r(b.currentTarget)},O=()=>{r(null),s(!1),i("")},rn=b=>{e.switchPassport(()=>{window.location.reload()},{orgId:b.id}),O()},sn=()=>{s(!0)},We=()=>{const b=J(N(_.WELLKNOWN_SERVICE_PATH_PREFIX,"user/orgs"),{locale:n});window.location.href=b,O()},an=b=>l.jsxs(Be,{onClick:()=>rn(b),selected:b.id===g.id,sx:{py:1.5,px:2,"&.Mui-selected":{backgroundColor:"action.selected","&:hover":{backgroundColor:"action.hover"}}},children:[l.jsx(Ve,{sx:{minWidth:40},children:l.jsx(pe,{sx:{width:28,height:28,fontSize:14,bgcolor:b.isOwner?"primary.main":"grey.400"},children:b.name?.[0]})}),l.jsxs(A,{sx:{display:"flex",alignItems:"center",flex:1},children:[l.jsx(Qe,{sx:{"& .MuiListItemText-primary":{mb:0},"& .MuiListItemText-secondary":{mt:"-2px"}},primary:l.jsx(L,{variant:"body2",sx:{fontWeight:500,lineHeight:1.2},children:b.name}),secondary:l.jsx(L,{variant:"caption",color:"text.secondary",sx:{lineHeight:1.1},children:b.passports?.[0]?.title})}),b.id===g.id&&l.jsx(A,{sx:{display:"flex",alignItems:"center",justifyContent:"center",ml:1},children:l.jsx(L,{variant:"caption",color:"primary",sx:{fontSize:10},children:"✓"})})]})]},b.id);return l.jsxs(A,{children:[l.jsxs(ne,{ref:c,onClick:M,endIcon:l.jsx(Sn,{}),sx:{display:"flex",alignItems:"center",gap:1,px:2,py:1,borderRadius:1,textTransform:"none",color:"text.primary","&:hover":{backgroundColor:"action.hover"}},"data-testid":"org-switch-button",children:[l.jsx(pe,{sx:{width:24,height:24,fontSize:12,bgcolor:"primary.main"},children:g.name?.[0]}),l.jsx(L,{variant:"body2",sx:{fontWeight:500},children:g.name})]}),l.jsxs(Tn,{anchorEl:t,open:E,onClose:O,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{sx:{width:340,maxHeight:480,overflow:"visible",mt:.5,borderRadius:2,boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.08)",border:b=>`1px solid ${b.palette.divider}`}},MenuListProps:{sx:{py:0}},children:[l.jsx(A,{sx:{p:1.5,pb:1},children:l.jsx(je,{fullWidth:!0,size:"small",placeholder:u("search"),value:o,onChange:b=>i(b.target.value),InputProps:{startAdornment:l.jsx($n,{position:"start",children:l.jsx(Ln,{fontSize:"small",color:"action"})})},onClick:b=>b.stopPropagation(),onKeyDown:b=>b.stopPropagation(),sx:{"& .MuiOutlinedInput-root":{borderRadius:1}}})}),l.jsx(A,{sx:{px:2,pb:1},children:l.jsx(L,{variant:"subtitle2",color:"text.secondary",sx:{fontSize:11,fontWeight:600,textTransform:"uppercase",letterSpacing:.5},children:u("orgs")})}),l.jsx(A,{sx:{maxHeight:240,overflow:"auto"},onScroll:I,children:$.length>0?l.jsx(l.Fragment,{children:$.map((b,F)=>{const H=F===$.length-1;return l.jsxs(A,{children:[an(b),H&&v&&l.jsx(A,{sx:{display:"flex",justifyContent:"center",py:1,color:"text.secondary",fontSize:"0.875rem"},children:w?u("loadingMore"):""})]},b.id)})}):l.jsx(A,{sx:{px:2,py:3,textAlign:"center"},children:l.jsx(L,{variant:"body2",color:"text.secondary",children:u("myJoinedEmpty")})})}),l.jsx(Ue,{}),l.jsxs(Be,{onClick:sn,sx:{py:1.5,px:2,"&:hover":{backgroundColor:"action.hover"}},children:[l.jsx(Ve,{sx:{minWidth:40},children:l.jsx(pe,{sx:{width:28,height:28,bgcolor:"success.main",color:"success.contrastText"},children:l.jsx(An,{fontSize:"small"})})}),l.jsx(Qe,{primary:l.jsx(L,{variant:"body2",sx:{fontWeight:500},children:u("createNew")})})]}),l.jsx(Ue,{}),l.jsx(A,{sx:{p:1.5},children:l.jsx(ne,{onClick:We,variant:"text",component:"a",size:"small",endIcon:l.jsx(En,{fontSize:"small"}),sx:{color:"primary.main",fontWeight:500,p:0,fontSize:14,minWidth:"auto","&:hover":{backgroundColor:"transparent",textDecoration:"underline"}},children:u("viewAll")})})]}),a&&l.jsx(nn,{onSuccess:We,onCancel:()=>s(!1),locale:n})]})}on.propTypes={session:x.object.isRequired,locale:x.string};const ei=()=>!!(window?.blocklet?.navigation??[]).find(e=>e.id==="/userCenter/notification"),ti=e=>{const{settings:n={}}=e??window?.blocklet??{};return n?.org?.enabled||!1},ni=()=>{const{pathname:e=""}=window.location||{};return e.startsWith(_.WELLKNOWN_BLOCKLET_ADMIN_PATH)};function oi({formattedBlocklet:e,addons:n=null,showDomainWarningDialog:t=!0,sessionManagerProps:r={showRole:!0}}){const o=C.use(wt),{locale:i,languages:a,defaultLocale:s}=Bn()||{},{enableConnect:c=!0,enableLocale:u=!0}=e,d=!!o?.session?.user;let f=hr({navigation:e?.navigation?.sessionManager,locale:i,defaultLocale:s})||[];f=xr(f,o?.session?.user?.role);const h=(()=>{if(n&&typeof n!="function")return Array.isArray(n)?n:[n];let m=[];if(ei()&&m.push(l.jsx(Yt,{session:o.session},"notification-addon")),u&&i&&a.length>1&&m.push(l.jsx(Vn,{showText:!1},"locale-selector")),m.push(l.jsx(Fn,{},"theme-mode-toggle")),c&&o){const y=[];d&&(f?f.slice(0,5):[]).forEach(k=>{y.push({label:k.title,icon:k.icon?l.jsx("iconify-icon",{icon:k.icon,height:24,style:{marginRight:8}}):null,component:"a",href:k.link,key:k.link})}),m.push(l.jsx(wr,{session:o.session,locale:i},"session-blocklet")),m.push(l.jsx(Qn,{session:o.session,locale:i,menu:y,showRole:!0,...r},"session-user"))}return!ni()&&ti(e)&&o?.session?.user&&m.unshift(l.jsx(on,{session:o.session,locale:i},"orgs-switch")),typeof n=="function"&&(m=n(m)||[]),m})(),p=Array.isArray(h)?h:[h],g=[t?l.jsx(Zt,{session:o?.session,locale:i}):null,...p].filter(Boolean);return C.createElement(l.Fragment,null,...g)}oi.propTypes={formattedBlocklet:x.object.isRequired,addons:x.oneOfType([x.func,x.node]),sessionManagerProps:vr,showDomainWarningDialog:x.bool};const Oi=()=>{const e=jt();C.useEffect(()=>{(e.wallet||e.arcSphere)&&Kn.call("arcHideTopBar","{}")},[e])};export{Ti as A,Ei as L,hr as N,xr as P,lr as S,$i as W,fr as a,cr as b,Gt as f,Mi as g,ae as h,Li as k,Xt as l,Pi as n,de as p,Oi as s,vr as t,io as u,Ai as v,oi as z};
@@ -1 +0,0 @@
1
- import{T as n}from"./vendor-ux-Dl3wVbv_.js";import{t as a}from"./index-BoJbHOhC.js";import{j as r}from"./vendor-mui-core-D7t4vMS5.js";function m(t){return function(o){return r.jsx(n,{translations:a,children:r.jsx(t,{...o})})}}export{m as w};