@abtnode/webapp 1.16.43-beta-20250419-231352-c78ac93d → 1.16.43-beta-20250420-132156-d732158a

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 (199) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{AdapterDayjs-Cvpvococ.js → AdapterDayjs-CvCGckYL.js} +1 -1
  4. package/dist/assets/{Add-Do4PUh5X.js → Add-Cj1GwkKW.js} +1 -1
  5. package/dist/assets/{ArrowDropDown-DlLoBd5O.js → ArrowDropDown-D5mGNR03.js} +1 -1
  6. package/dist/assets/{Autocomplete-8l10UH26.js → Autocomplete-DuiLMv1o.js} +1 -1
  7. package/dist/assets/{Breadcrumbs-CTxrM3iq.js → Breadcrumbs-C2dg7iJH.js} +1 -1
  8. package/dist/assets/{ButtonGroup-jq75babd.js → ButtonGroup-CcLHnhC4.js} +1 -1
  9. package/dist/assets/{CSSTransition-Be2lCFWj.js → CSSTransition-D-xj_lEW.js} +1 -1
  10. package/dist/assets/{CallMerge-Dn1-C0m8.js → CallMerge-XaiMaWvF.js} +1 -1
  11. package/dist/assets/{CardContent-p0HerB2M.js → CardContent-DFEMxexG.js} +1 -1
  12. package/dist/assets/{ChevronLeft-JMgoqv1P.js → ChevronLeft-DHpx84Q3.js} +1 -1
  13. package/dist/assets/{ChevronRight-BRJpeXvU.js → ChevronRight-BsKgMnVp.js} +1 -1
  14. package/dist/assets/{Clear-Dee15ZKB.js → Clear-CBus3YPN.js} +1 -1
  15. package/dist/assets/{Close-fYv6NWB2.js → Close-Ce-e8gYh.js} +1 -1
  16. package/dist/assets/{Community-DwyvjRoN.js → Community-CzdvPZbq.js} +1 -1
  17. package/dist/assets/{Delete-DL_etOWb.js → Delete-DfBIMsYZ.js} +1 -1
  18. package/dist/assets/{Delete-BBkD2GAm.js → Delete-E4y6t1JP.js} +1 -1
  19. package/dist/assets/{DeleteOutline-CJur6DNk.js → DeleteOutline-BZ3_z3iH.js} +1 -1
  20. package/dist/assets/{Done-vYGWNHHy.js → Done-CKe-FMOo.js} +1 -1
  21. package/dist/assets/{Edit-CRnqnhH9.js → Edit-K2_xM3YP.js} +1 -1
  22. package/dist/assets/{ErrorOutline-D22L4UmC.js → ErrorOutline-NhUNtUrq.js} +1 -1
  23. package/dist/assets/{HelpOutline-Crn0Z0sH.js → HelpOutline-BIx91aby.js} +1 -1
  24. package/dist/assets/{Holiday--m700UUV.js → Holiday-CsAx5a3y.js} +1 -1
  25. package/dist/assets/{Launch-B959IsxA.js → Launch-DbAaLLdn.js} +1 -1
  26. package/dist/assets/{Link-C0pm3nZZ.js → Link-BQNrDjfd.js} +1 -1
  27. package/dist/assets/{ListItemButton-Bu0_R2ca.js → ListItemButton-Cd6Uq-Ac.js} +1 -1
  28. package/dist/assets/{ListSubheader-C0FJk3-H.js → ListSubheader-eUJyCt4T.js} +1 -1
  29. package/dist/assets/{LoadingButton-BcryG2ki.js → LoadingButton-DVPu322x.js} +1 -1
  30. package/dist/assets/{LockIcon-DtDbYwWX.js → LockIcon-CiguMpNN.js} +1 -1
  31. package/dist/assets/{Meeting-C2-3UeAP.js → Meeting-C3v58tIT.js} +1 -1
  32. package/dist/assets/{MoreHoriz-BNH4KEQj.js → MoreHoriz-Cly_ulfn.js} +1 -1
  33. package/dist/assets/{MoreVert-BnLtQQPi.js → MoreVert-61JL59bH.js} +1 -1
  34. package/dist/assets/{OffSick-D-LYxvJG.js → OffSick-CToGGhIx.js} +1 -1
  35. package/dist/assets/{Phone-C69yIwZa.js → Phone-50QuQeWu.js} +1 -1
  36. package/dist/assets/{Public-R75NJcSG.js → Public-EAyGtHHi.js} +1 -1
  37. package/dist/assets/{Refresh-BFb6at9W.js → Refresh-2FBzb_uQ.js} +1 -1
  38. package/dist/assets/{SchemaReference.es-nI9BrrE3.js → SchemaReference.es-CYEXItFR.js} +1 -1
  39. package/dist/assets/{Search-CfIrlArL.js → Search-DQ4Y1c5N.js} +1 -1
  40. package/dist/assets/{Slider-Ce4-AA62.js → Slider-BQJhsQiK.js} +1 -1
  41. package/dist/assets/{Stepper-B9jFEqOQ.js → Stepper-zGEKMQJb.js} +1 -1
  42. package/dist/assets/{TableSearch-B7b60mjO.js → TableSearch-CvOwepTo.js} +1 -1
  43. package/dist/assets/{ToggleButtonGroup-BBCf3swR.js → ToggleButtonGroup-ClJp8lmK.js} +1 -1
  44. package/dist/assets/{Verified-BeU4A60V.js → Verified-tGi6fe3F.js} +1 -1
  45. package/dist/assets/{VerifiedUser-B5iWLUpk.js → VerifiedUser-CCkZHpu5.js} +1 -1
  46. package/dist/assets/{ViewColumn-DOT0Os2K.js → ViewColumn-Dug72V0B.js} +1 -1
  47. package/dist/assets/{ViewList-CFuBhPy5.js → ViewList-BG98kh5u.js} +1 -1
  48. package/dist/assets/{WorkingRemotely-CxfU4UCt.js → WorkingRemotely-BzsyqruY.js} +1 -1
  49. package/dist/assets/{_createAggregator-CjZtATK4.js → _createAggregator-Z9y-nGZg.js} +1 -1
  50. package/dist/assets/{actions-DjJDvvNb.js → actions-D7wsLSGA.js} +1 -1
  51. package/dist/assets/{actions-CQYnMEfY.js → actions-sMg6nWfa.js} +1 -1
  52. package/dist/assets/{agreement-DlIVHnRs.js → agreement-D_pxcKSB.js} +1 -1
  53. package/dist/assets/api-BV0Wx2uO.js +1 -0
  54. package/dist/assets/appearance-BKpK01va.js +1 -0
  55. package/dist/assets/{audit-logs-DvPq3DKg.js → audit-logs-DaG555bS.js} +1 -1
  56. package/dist/assets/{blocklet-DJeYf4PW.js → blocklet-Dj2klNma.js} +1 -1
  57. package/dist/assets/{brace-fold.es-wBUs6RJn.js → brace-fold.es-BSiUbwCn.js} +1 -1
  58. package/dist/assets/{chain-DoJ5uumw.js → chain-z6EbQN66.js} +1 -1
  59. package/dist/assets/{click-to-copy-CGbpKHCv.js → click-to-copy-Bd1pbmjJ.js} +1 -1
  60. package/dist/assets/cloneDeep-B3IuXkH6.js +1 -0
  61. package/dist/assets/{closebrackets.es-BvXetdd_.js → closebrackets.es-Dgw0-_DW.js} +1 -1
  62. package/dist/assets/{codemirror.es-BXES79gX.js → codemirror.es-s2Rr8TMK.js} +1 -1
  63. package/dist/assets/{comment.es-CTD0f_fP.js → comment.es-DuYAsmJq.js} +1 -1
  64. package/dist/assets/{config-navigation-D7AslSv5.js → config-navigation-BRr3prTj.js} +3 -3
  65. package/dist/assets/{connect-to-KDT0hSpV.js → connect-to-Cs0EUT4S.js} +1 -1
  66. package/dist/assets/{delete-confirm-BxVrliVv.js → delete-confirm-BNoGa68c.js} +1 -1
  67. package/dist/assets/{detail-BuIG8mZH.js → detail-DBcw2MaX.js} +3 -3
  68. package/dist/assets/{dialog.es-B8HLFpZr.js → dialog.es-BgtfhF68.js} +1 -1
  69. package/dist/assets/{domains-B3cNb2Aw.js → domains-CM3lyOs-.js} +1 -1
  70. package/dist/assets/{download-B0OUhY0B.js → download-DSqZegJ2.js} +1 -1
  71. package/dist/assets/emotion-react.browser.esm-BDvH2bbh.js +1 -0
  72. package/dist/assets/{foldgutter.es-BY73pCtu.js → foldgutter.es-61oGOeH5.js} +1 -1
  73. package/dist/assets/{get-safe-url-BfHsII0C.js → get-safe-url-CadEaGnF.js} +1 -1
  74. package/dist/assets/{get-safe-url-D9ml_fvy.js → get-safe-url-GbVPhyM0.js} +1 -1
  75. package/dist/assets/getValidReactChildren-4Syslwwk.js +1 -0
  76. package/dist/assets/{hint.es--cULfPXx.js → hint.es-DFa1vaHD.js} +1 -1
  77. package/dist/assets/{hint.es2-COHxokUc.js → hint.es2-Ytgf8cwU.js} +1 -1
  78. package/dist/assets/{iframe-BVfyrfbA.js → iframe-BpVmcJc3.js} +1 -1
  79. package/dist/assets/{index-B-XvEBt5.js → index-9mb4i7nG.js} +1 -1
  80. package/dist/assets/index-B-8BgkIX.js +1 -0
  81. package/dist/assets/{index-BqBaspNQ.js → index-B0AqZtHc.js} +1 -1
  82. package/dist/assets/{index-jn2mgjU9.js → index-B8nUQyU8.js} +1 -1
  83. package/dist/assets/{index-55NJHWFF.js → index-BG6hT912.js} +1 -1
  84. package/dist/assets/{index-L8tJ4G2a.js → index-BGfher7X.js} +1 -1
  85. package/dist/assets/{index-B7UfL6V6.js → index-BScCZen8.js} +8 -8
  86. package/dist/assets/{index-BWKhFNY-.js → index-BWheHxyB.js} +1 -1
  87. package/dist/assets/{index-B6e7M9AU.js → index-BX4S2ZnM.js} +1 -1
  88. package/dist/assets/{index-BzuvZxfP.js → index-BXx8CiDa.js} +1 -1
  89. package/dist/assets/{index-Bl4yS0n4.js → index-BYIEHzl8.js} +3 -3
  90. package/dist/assets/{index-DXxOMksl.js → index-BbjbAT2O.js} +1 -1
  91. package/dist/assets/{index-CAvhJF2K.js → index-BcUKk-lE.js} +1 -1
  92. package/dist/assets/{index-CtQ2LyfY.js → index-BfuK1c3U.js} +1 -1
  93. package/dist/assets/{index-BhFXgjJL.js → index-BlbHoShU.js} +1 -1
  94. package/dist/assets/{index-H1Gi2Jnl.js → index-BnuJug5D.js} +1 -1
  95. package/dist/assets/{index-vvJGfld4.js → index-Bp2gRuoi.js} +1 -1
  96. package/dist/assets/{index-DzrZDra1.js → index-C-czX6v8.js} +1 -1
  97. package/dist/assets/{index-ChLseMHx.js → index-C6PFgd4s.js} +3 -3
  98. package/dist/assets/{index-CpRTEk5Y.js → index-CAMnhpz_.js} +1 -1
  99. package/dist/assets/{index-Cr-P1gSM.js → index-CCqOp-Za.js} +1 -1
  100. package/dist/assets/{index-DnCpGAd1.js → index-CJa6ovU3.js} +1 -1
  101. package/dist/assets/{index-DjeitGC0.js → index-CJyPQ1mo.js} +1 -1
  102. package/dist/assets/{index-D9Y4XTdQ.js → index-CSrSFpxe.js} +1 -1
  103. package/dist/assets/{index-DVCjSXXQ.js → index-CULZ0mkF.js} +1 -1
  104. package/dist/assets/{index-DgACMxU8.js → index-CW2CIHTp.js} +3 -3
  105. package/dist/assets/{index--lAtXWUP.js → index-C_qvrHaT.js} +1 -1
  106. package/dist/assets/{index-CO3XBdns.js → index-Cl-3FJwO.js} +24 -24
  107. package/dist/assets/{index-CPWzKNbm.js → index-CsfSVRfE.js} +1 -1
  108. package/dist/assets/{index-BwO8evpb.js → index-CtvADPIf.js} +1 -1
  109. package/dist/assets/{index-CzB8vcqG.js → index-D26anpmw.js} +1 -1
  110. package/dist/assets/{index-Ddjwpsss.js → index-D2OWAIQe.js} +1 -1
  111. package/dist/assets/{index-CK4YzYs2.js → index-DCBVsLjA.js} +1 -1
  112. package/dist/assets/{index-dNE4Zjbn.js → index-DW2t8iC0.js} +1 -1
  113. package/dist/assets/{index-6qj_2myu.js → index-DWVclhcu.js} +1 -1
  114. package/dist/assets/{index-DSNK0LXH.js → index-DYUzMTeE.js} +1 -1
  115. package/dist/assets/{index-C0sxtXdZ.js → index-DYWnnieF.js} +1 -1
  116. package/dist/assets/{index-w0kQr3JV.js → index-D_BatJpF.js} +1 -1
  117. package/dist/assets/{index-BuXw_Xo7.js → index-DbIDv5vn.js} +5 -5
  118. package/dist/assets/{index-CMItS6dn.js → index-DbvvMLGP.js} +1 -1
  119. package/dist/assets/{index-xNaUaJbp.js → index-DsLeGqeJ.js} +1 -1
  120. package/dist/assets/{index-cCHFi6J7.js → index-GUhpvgVQ.js} +1 -1
  121. package/dist/assets/{index-CuZGE_AM.js → index-GgPkBXj2.js} +1 -1
  122. package/dist/assets/{index-DSARI07I.js → index-H9fm7up4.js} +1 -1
  123. package/dist/assets/{index-8mvNLWje.js → index-J_t6WXFJ.js} +1 -1
  124. package/dist/assets/{index-ClZ_k_rD.js → index-OjlMsll8.js} +1 -1
  125. package/dist/assets/{index-BMBogC_q.js → index-mE_PHcX2.js} +1 -1
  126. package/dist/assets/{index-OdcWgCK_.js → index-s1rhSuA8.js} +1 -1
  127. package/dist/assets/{index.esm-CMv_mNgM.js → index.esm-CTLBmkxs.js} +1 -1
  128. package/dist/assets/{info-addon.es-DLpPCmn2.js → info-addon.es-D2RjkMEO.js} +1 -1
  129. package/dist/assets/{info.es-DnqW5M4e.js → info.es-B2Ei6tKR.js} +1 -1
  130. package/dist/assets/{install-from-url-CiqpeJac.js → install-from-url-BavWqY0O.js} +1 -1
  131. package/dist/assets/{invitation-CebbE0VE.js → invitation-B5aWiSWP.js} +1 -1
  132. package/dist/assets/is-path-prefix-equal-DRNfC8G7.js +1 -0
  133. package/dist/assets/{item-vU_-cc7I.js → item-Bnt9TARz.js} +1 -1
  134. package/dist/assets/{javascript.es-BnEFsbE5.js → javascript.es-Bpu4XBw4.js} +1 -1
  135. package/dist/assets/{jump-to-line.es-s2SwnJkg.js → jump-to-line.es-NCFTiPk3.js} +1 -1
  136. package/dist/assets/{jump.es-D1FTZeZy.js → jump.es-6CZW1_4U.js} +1 -1
  137. package/dist/assets/{lint.es-CLKH_qkK.js → lint.es-EY6FwDDf.js} +1 -1
  138. package/dist/assets/{lint.es2-odz9nmyZ.js → lint.es2-BKJ4qpZr.js} +1 -1
  139. package/dist/assets/{lint.es3-jNJ5qlRO.js → lint.es3-gvW3Dwxb.js} +1 -1
  140. package/dist/assets/{list-header-C-vpKvhr.js → list-header-oP6EeMA1.js} +1 -1
  141. package/dist/assets/{log-CaaCrZDx.js → log-ObTZchhD.js} +1 -1
  142. package/dist/assets/{lottie-react.esm-vzQP1aoG.js → lottie-react.esm-BOED-gDB.js} +1 -1
  143. package/dist/assets/{matchbrackets.es-B0khT0bu.js → matchbrackets.es-DXvGcnAN.js} +1 -1
  144. package/dist/assets/{memory-8GRWhGBe.js → memory-C0a7I4et.js} +1 -1
  145. package/dist/assets/{mode.es-8DdwTv6O.js → mode.es-BdipBeLR.js} +1 -1
  146. package/dist/assets/{mode.es2-Dm7F3amk.js → mode.es2-D6DVO5V7.js} +1 -1
  147. package/dist/assets/{mode.es3-C6LQItvl.js → mode.es3-Bk0sufip.js} +1 -1
  148. package/dist/assets/omit-BOdOfEDG.js +1 -0
  149. package/dist/assets/{onlineParser.es-697gH09d.js → onlineParser.es-DVbPOG4l.js} +1 -1
  150. package/dist/assets/{overview-4A1WnWrw.js → overview-uPHlb4Rk.js} +1 -1
  151. package/dist/assets/{permission-CoJIDKiq.js → permission-qJMVgxZB.js} +1 -1
  152. package/dist/assets/{preference-BSnQFWBu.js → preference-BGjmFkam.js} +3 -3
  153. package/dist/assets/{raf-schd.esm-DjoqsVPc.js → raf-schd.esm-DTLWr85K.js} +1 -1
  154. package/dist/assets/refType-DNRqRWnN.js +1 -0
  155. package/dist/assets/{resource-dialog-DXjH0dKy.js → resource-dialog-D7lp-mt5.js} +4 -4
  156. package/dist/assets/{runtime-Dlt-Nkw4.js → runtime-h-JvCmOV.js} +1 -1
  157. package/dist/assets/{schema-CfO6HjUI.js → schema-B5lLDdwS.js} +1 -1
  158. package/dist/assets/{search.es-C78nuVMk.js → search.es-CB_40e8N.js} +1 -1
  159. package/dist/assets/{searchcursor.es-BRgUQd7l.js → searchcursor.es-BsENbGJe.js} +1 -1
  160. package/dist/assets/{service-CaVokZ0Y.js → service-CO3-2J05.js} +1 -1
  161. package/dist/assets/session--KhzErQz.js +1 -0
  162. package/dist/assets/{shorten-label-BVrJaxJC.js → shorten-label-DC9lls-_.js} +1 -1
  163. package/dist/assets/{show-hint.es-RCR9dwPC.js → show-hint.es-DxDy9n4Y.js} +1 -1
  164. package/dist/assets/{simple-select-DarZpQR1.js → simple-select-Clgdh8XE.js} +1 -1
  165. package/dist/assets/{spaces-HyRwvQdH.js → spaces-BfGix7Ah.js} +1 -1
  166. package/dist/assets/{status-B6OYlotx.js → status-IieMMby4.js} +1 -1
  167. package/dist/assets/{status-De3FcWeh.js → status-oG8SDlCL.js} +1 -1
  168. package/dist/assets/{sublime.es-BM6BU8ya.js → sublime.es-DPwBOIkN.js} +1 -1
  169. package/dist/assets/{switch-control-CfY71NTZ.js → switch-control-BVU_Ad4A.js} +1 -1
  170. package/dist/assets/{table-icons-C7DLMt6_.js → table-icons-ChFb7Y_c.js} +1 -1
  171. package/dist/assets/{team-CznOtdKl.js → team-D9geX5Dv.js} +1 -1
  172. package/dist/assets/{toLower-e46SyAPI.js → toLower-Lpm_cWIY.js} +1 -1
  173. package/dist/assets/toUpper-wYFatpjb.js +1 -0
  174. package/dist/assets/{traffic-BVDBAzGe.js → traffic-MRoWejWm.js} +1 -1
  175. package/dist/assets/{url-evaluation-Dv0N_pok.js → url-evaluation-Dkim9UU-.js} +1 -1
  176. package/dist/assets/{url-join-B7iCgPgX.js → url-join-KcJhtet-.js} +1 -1
  177. package/dist/assets/{use-mobile-DT28abSy.js → use-mobile-BXuu7nKS.js} +1 -1
  178. package/dist/assets/{use-mobile-BDkfqLh5.js → use-mobile-DxoBGZ2C.js} +1 -1
  179. package/dist/assets/{useAsync-B4uBsSr_.js → useAsync-CXjZIHoB.js} +1 -1
  180. package/dist/assets/{useLocalStorage-euZsG16i.js → useLocalStorage-BGufc8fE.js} +1 -1
  181. package/dist/assets/{useThemeProps-DHnKAZsI.js → useThemeProps-DCQ65cqf.js} +1 -1
  182. package/dist/assets/{util-DWSWDAob.js → util-bCRieQtS.js} +1 -1
  183. package/dist/assets/{wait-container-DfWsgvzj.js → wait-container--jGsE1aw.js} +1 -1
  184. package/dist/assets/{withStyles-B0-9tX4-.js → withStyles-B4dvn7ww.js} +1 -1
  185. package/dist/assets/{wrap-locale-aHq8jAHn.js → wrap-locale-BvifS-n8.js} +1 -1
  186. package/dist/index.html +1 -1
  187. package/dist/service-worker.js +1 -1
  188. package/package.json +1 -1
  189. package/dist/assets/api-CWu-rIyH.js +0 -1
  190. package/dist/assets/appearance-CYge78ns.js +0 -1
  191. package/dist/assets/cloneDeep-vMO7xSKJ.js +0 -1
  192. package/dist/assets/emotion-react.browser.esm-CDAjTwPn.js +0 -1
  193. package/dist/assets/getValidReactChildren-Ced4squ1.js +0 -1
  194. package/dist/assets/index-nS9VTrx6.js +0 -1
  195. package/dist/assets/is-path-prefix-equal-Dz4CThga.js +0 -1
  196. package/dist/assets/omit-ysA7yEnR.js +0 -1
  197. package/dist/assets/refType-D9Sa_mOm.js +0 -1
  198. package/dist/assets/session-Bo2ZbX-l.js +0 -1
  199. package/dist/assets/toUpper-C34aTbM3.js +0 -1
@@ -1 +1 @@
1
- import{r as g,bq as U,aU as Q,j as e,$ as R,N as O,y as m,b as D,a4 as k,m as y,M as x,k as B,P as d,a5 as w,a6 as L,Y as v,H as E,w as G,az as V,a3 as H,ao as N}from"./index-B7UfL6V6.js";import{D as P,a as b}from"./index-H1Gi2Jnl.js";import"./index-DSNK0LXH.js";import"./index-BojVbZw0.js";import{b as X,c as K,d as z}from"./spaces-HyRwvQdH.js";import{u as I}from"./blocklet-DJeYf4PW.js";import{d as Y}from"./DeleteOutline-CJur6DNk.js";import"./api-CWu-rIyH.js";function q(){const[t,c]=g.useState(null),{blocklet:s}=I();return g.useEffect(()=>{c(X(s))},[s]),{storageEndpoint:t}}const J=g.createContext({}),{Provider:W,Consumer:l1}=J;function F({children:t}){const[c,s]=g.useState(!1),[o,a]=g.useState(null),{blocklet:i,actions:{refreshBlocklet:f}}=I(),{storageEndpoint:p}=q(),{api:A}=U();Q(async()=>{try{if(s(!0),O(p)){a(null);return}const l=await K(p);a(l)}catch(l){console.error(l),m.error(l.message)}finally{s(!1)}},[p]);const n=()=>{a(null),f()},h=async l=>{a(l),await r(l.endpoint),f()},r=async l=>{await A.configBlocklet({input:{did:[i.meta.did],configs:[{key:D.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPACE_ENDPOINT,value:l}]}}),f()};g.useEffect(()=>{async function l(){if(!o)return;const C=await z(o.endpoint,o.name),T=k(o,{name:C});a(T)}l()},[]);const u=!!(p&&o);return e.jsx(W,{value:{loading:c,spaceGateway:o,deleteSpaceGateway:n,updateSpaceGateway:h,storageEndpoint:p,settingStorageEndpoint:r,hasStorageEndpoint:u},children:t})}F.propTypes={children:R.node.isRequired};F.defaultProps={};function _(){return g.useContext(J)}var M=function(c){return e.jsxs("svg",{...c,children:[e.jsxs("g",{filter:"url(#a)",children:[e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97Z",fill:"#DDD"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m49.192 6.222-40.97 40.97A11 11 0 0 0 5 54.971V240c0 6.075 4.925 11 11 11h196c6.075 0 11-4.925 11-11V14c0-6.075-4.925-11-11-11H56.97a11 11 0 0 0-7.778 3.222Zm-.707-.707A12 12 0 0 1 56.971 2H212c6.627 0 12 5.373 12 12v226c0 6.627-5.373 12-12 12H16c-6.627 0-12-5.373-12-12V54.97a12 12 0 0 1 3.515-8.485l40.97-40.97Z",fill:"#000",fillOpacity:".08"}),e.jsx("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"4",y:"2",width:"220",height:"250",children:e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97Z",fill:"#D9D9D9"})}),e.jsxs("g",{mask:"url(#b)",children:[e.jsx("path",{opacity:".5",fill:"url(#c)",d:"M4 2h220v128H4z"}),e.jsx("path",{opacity:".1",fill:"url(#d)",d:"M4 130h220v122H4z"}),e.jsx("path",{d:"M33.045 169h-3.767v-11.636h3.887c1.14 0 2.12.233 2.937.698a4.61 4.61 0 0 1 1.881 1.995c.44.863.659 1.899.659 3.108 0 1.212-.222 2.254-.665 3.125a4.668 4.668 0 0 1-1.909 2.011c-.833.466-1.84.699-3.023.699Zm-2.01-1.534h1.914c.886 0 1.623-.167 2.21-.5a3.152 3.152 0 0 0 1.318-1.46c.292-.64.438-1.421.438-2.341 0-.913-.146-1.688-.438-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568Zm11.546-10.102V169h-1.756v-11.636h1.756ZM48.905 169h-3.767v-11.636h3.886c1.14 0 2.12.233 2.938.698a4.609 4.609 0 0 1 1.88 1.995c.44.863.66 1.899.66 3.108 0 1.212-.222 2.254-.665 3.125a4.667 4.667 0 0 1-1.91 2.011c-.833.466-1.84.699-3.022.699Zm-2.011-1.534h1.914c.887 0 1.623-.167 2.21-.5a3.151 3.151 0 0 0 1.319-1.46c.291-.64.437-1.421.437-2.341 0-.913-.146-1.688-.437-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568Zm20.372-7.046a1.662 1.662 0 0 0-.75-1.25c-.44-.299-.993-.448-1.66-.448-.477 0-.89.075-1.238.227a1.91 1.91 0 0 0-.813.613c-.189.258-.284.552-.284.881 0 .277.065.515.194.716.132.201.304.369.516.506.216.132.447.244.694.335.246.087.483.159.71.216l1.136.295c.371.091.752.214 1.142.37.39.155.752.36 1.086.613.333.254.602.568.806.944.209.374.313.823.313 1.346 0 .659-.17 1.244-.511 1.756-.338.511-.828.915-1.472 1.21-.64.295-1.415.443-2.324.443-.871 0-1.625-.138-2.261-.415-.637-.276-1.135-.668-1.495-1.176-.36-.511-.558-1.117-.596-1.818h1.761c.034.421.17.771.41 1.051.242.277.55.483.925.62.38.132.794.198 1.245.198.496 0 .937-.077 1.324-.233.39-.159.697-.378.92-.659a1.56 1.56 0 0 0 .335-.994c0-.345-.098-.627-.295-.847a2.191 2.191 0 0 0-.79-.545 7.725 7.725 0 0 0-1.12-.381l-1.374-.375c-.932-.253-1.67-.627-2.216-1.119-.542-.492-.813-1.144-.813-1.955 0-.67.182-1.255.546-1.755.363-.5.856-.888 1.477-1.165.621-.28 1.322-.42 2.102-.42.788 0 1.483.138 2.085.414.607.277 1.084.658 1.432 1.142.349.481.53 1.034.546 1.659h-1.693Zm3.813 11.853v-12h1.66v1.415h.142c.098-.182.24-.393.426-.631.185-.239.443-.447.772-.625.33-.182.766-.273 1.307-.273.705 0 1.334.178 1.887.534.553.356.987.869 1.3 1.54.319.67.478 1.477.478 2.42 0 .944-.157 1.752-.472 2.427-.314.67-.746 1.187-1.295 1.551-.55.36-1.176.539-1.88.539-.53 0-.965-.089-1.302-.267a2.457 2.457 0 0 1-.784-.625 4.667 4.667 0 0 1-.437-.636h-.103v4.631H71.08Zm1.665-7.637c0 .614.09 1.152.267 1.614.178.462.436.824.773 1.085.337.258.75.387 1.239.387.507 0 .931-.135 1.273-.404.34-.273.598-.642.772-1.108.178-.466.267-.99.267-1.574 0-.575-.087-1.092-.261-1.551-.17-.458-.428-.82-.773-1.085-.34-.265-.767-.398-1.278-.398-.493 0-.91.127-1.25.381-.337.254-.593.608-.767 1.062-.175.455-.262.985-.262 1.591Zm10.75 4.557a3.557 3.557 0 0 1-1.5-.307 2.523 2.523 0 0 1-1.062-.903c-.258-.394-.386-.877-.386-1.449 0-.492.094-.898.283-1.216.19-.318.446-.57.768-.756a4.036 4.036 0 0 1 1.08-.42c.397-.095.802-.167 1.215-.216l1.273-.148c.325-.041.562-.108.71-.198.148-.091.222-.239.222-.444v-.039c0-.497-.14-.881-.42-1.154-.277-.273-.69-.409-1.24-.409-.572 0-1.022.127-1.352.381-.325.25-.55.528-.676.835l-1.597-.364c.19-.53.466-.958.83-1.284.368-.329.79-.568 1.267-.716.477-.151.98-.227 1.506-.227.348 0 .718.042 1.108.125.394.08.761.227 1.102.443.345.216.627.525.847.926.22.398.33.915.33 1.552V169h-1.66v-1.193h-.068c-.11.22-.275.435-.495.648-.22.212-.501.388-.846.528s-.758.21-1.239.21Zm.37-1.363c.47 0 .87-.093 1.204-.279.337-.185.593-.428.767-.727.178-.303.267-.627.267-.972v-1.125c-.06.061-.178.118-.352.171-.17.049-.365.093-.585.13-.22.034-.434.067-.642.097l-.523.068c-.33.042-.63.112-.903.21a1.553 1.553 0 0 0-.648.427c-.16.181-.239.424-.239.727 0 .42.156.738.466.954.31.212.707.319 1.188.319Zm9.876 1.346c-.845 0-1.572-.191-2.182-.574a3.796 3.796 0 0 1-1.398-1.596c-.325-.678-.488-1.455-.488-2.33 0-.886.166-1.668.5-2.346a3.832 3.832 0 0 1 1.409-1.597c.606-.383 1.32-.574 2.142-.574.663 0 1.254.123 1.773.369.519.243.937.584 1.255 1.023.322.44.514.953.574 1.54h-1.653c-.091-.409-.3-.761-.625-1.057-.322-.295-.754-.443-1.296-.443a2.11 2.11 0 0 0-1.244.375c-.352.246-.627.598-.824 1.057-.197.454-.295.992-.295 1.613 0 .637.096 1.186.29 1.648.193.462.466.82.818 1.074.356.254.774.381 1.255.381.322 0 .614-.059.875-.177.266-.121.487-.293.665-.517.182-.223.309-.492.38-.806h1.654a3.211 3.211 0 0 1-.55 1.511 3.165 3.165 0 0 1-1.234 1.045c-.511.254-1.111.381-1.8.381Zm9.163 0c-.859 0-1.6-.184-2.221-.551a3.732 3.732 0 0 1-1.432-1.563c-.333-.674-.5-1.464-.5-2.369 0-.894.167-1.682.5-2.363a3.887 3.887 0 0 1 1.409-1.597c.606-.383 1.314-.574 2.125-.574.493 0 .97.082 1.432.244.462.163.877.419 1.244.767.368.349.657.802.87 1.358.212.553.318 1.226.318 2.017v.603H99.71v-1.273h5.273c0-.447-.091-.843-.273-1.187a2.052 2.052 0 0 0-.767-.824c-.326-.201-.708-.302-1.148-.302a2.22 2.22 0 0 0-1.25.353 2.364 2.364 0 0 0-.818.909 2.626 2.626 0 0 0-.284 1.21v.994c0 .584.102 1.08.307 1.489.208.409.498.722.869.938.372.212.805.318 1.301.318a2.7 2.7 0 0 0 .881-.137c.265-.094.494-.234.688-.42.193-.186.341-.415.443-.688l1.608.29c-.129.474-.36.888-.693 1.244-.33.353-.745.627-1.245.824-.496.194-1.062.29-1.699.29Z",fill:"#fff"}),e.jsx("path",{d:"M117.604 47.263 121.523 45h14.267v41.862h-14.267l-15.335-8.854V53.854l1.818-1.05 3.2 1.848-1.818 1.05V76.16l12.993 7.502h10.209V48.2h-10.209l-1.577.91-3.2-1.847Z",fill:"url(#e)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M119.402 76.16V55.701L106.409 48.2H96.2v35.462h10.209l1.582-.913 3.2 1.847-3.924 2.266H93V45h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047Z",fill:"url(#f)"}),e.jsxs("g",{clipPath:"url(#g)",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff",children:[e.jsx("path",{d:"m50.928 216.089 1.034 2.852h-2.503l1.028-2.842a4.95 4.95 0 0 0 .107-.338 7.17 7.17 0 0 0 .111-.409c.075.297.15.542.223.737Zm2.28 5.591h.796l-2.775-7.352h-1.043l-2.774 7.352h.795a.338.338 0 0 0 .223-.077.425.425 0 0 0 .127-.179l.615-1.705h3.07l.617 1.705a.399.399 0 0 0 .126.184.339.339 0 0 0 .223.072Zm4.823-.963a2.023 2.023 0 0 1-.67.098h-1.455v-2.453h1.456c.5 0 .871.106 1.11.318.24.208.36.495.36.86 0 .184-.028.355-.083.512a1.005 1.005 0 0 1-.262.399 1.2 1.2 0 0 1-.456.266Zm-2.125-3.128v-2.406h1.237c.498 0 .865.095 1.101.286.236.192.355.497.355.917 0 .369-.125.662-.374.881-.246.215-.623.322-1.13.322h-1.189Zm2.358-3.128a4.106 4.106 0 0 0-1.12-.133h-2.27v7.352h2.507c.391 0 .74-.051 1.048-.154.307-.102.566-.247.776-.435.21-.188.37-.409.48-.665.11-.26.165-.547.165-.861 0-.904-.506-1.462-1.518-1.674.22-.075.41-.169.572-.281a1.79 1.79 0 0 0 .403-.379c.106-.144.186-.297.237-.461.052-.164.078-.335.078-.512a2.1 2.1 0 0 0-.146-.804 1.49 1.49 0 0 0-.441-.609 2.073 2.073 0 0 0-.771-.384Zm7.535.778h-2.212v6.441h-1.028v-6.441h-2.222v-.911H65.8v.911Zm2.439.564h-1.13v1.193h1.13v-1.193Zm-1.13 2.983h1.13v1.193h-1.13v-1.193Z",fillOpacity:".8"}),e.jsx("path",{d:"M28.247 221.771V214h3.894c.99.072 1.765.944 1.765 1.998v3.77c0 1.106-.85 2.003-1.897 2.003h-3.762ZM36.355 214h-1.011v7.783h1.01V214Zm-7.097 6.704v-5.642h2.751c.49 0 .886.419.886.936v3.77c0 .517-.396.936-.886.936h-2.75ZM37.775 214v7.771h3.762c1.047 0 1.897-.897 1.897-2.003v-3.77c0-1.054-.774-1.926-1.765-1.998h-3.894Zm6.946 1.803h1.13v1.193h-1.13v-1.193Zm1.13 2.983h-1.13v1.193h1.13v-1.193Zm-7.065-3.724v5.642h2.75c.49 0 .887-.419.887-.936v-3.77c0-.517-.397-.936-.886-.936h-2.751Z"})]}),e.jsx("circle",{cx:"191.32",cy:"218",r:"10",fill:"url(#h)"}),e.jsx("path",{d:"m192.064 213.333.976-.564h3.554v10.427h-3.286a1 1 0 0 1-.5-.134l-3.588-2.071v-6.016l.453-.262.797.46-.453.262v5.096l3.237 1.868h2.543v-8.833h-2.543l-.393.227-.797-.46Z",fill:"#fff"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M192.512 220.531v-5.096l-3.237-1.869h-2.543v8.833h2.543l.394-.227.797.46-.977.564h-3.554v-10.427h3.554l3.82 2.206v6.016l-.452.261-.797-.461.452-.26Z",fill:"#fff"})]})]}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"d",x1:"114",y1:"130",x2:"114",y2:"252",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#101010"}),e.jsx("stop",{offset:"1",stopColor:"#272727"})]}),e.jsxs("linearGradient",{id:"e",x1:"120.989",y1:"45",x2:"120.989",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#fff",stopOpacity:".4"}),e.jsx("stop",{offset:"1",stopColor:"#fff"})]}),e.jsxs("linearGradient",{id:"f",x1:"107.801",y1:"45",x2:"107.801",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#fff"}),e.jsx("stop",{offset:"1",stopColor:"#fff",stopOpacity:".4"})]}),e.jsxs("radialGradient",{id:"h",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(17 -8.76924 6.97565 13.52294 183.166 221)",children:[e.jsx("stop",{stopColor:"#016BED"}),e.jsx("stop",{offset:".699",stopColor:"#4498FB"}),e.jsx("stop",{offset:"1",stopColor:"#9DFFE8"})]}),e.jsx("clipPath",{id:"g",children:e.jsx("path",{fill:"#fff",transform:"translate(28 214)",d:"M0 0h40.32v8H0z"})}),e.jsx("pattern",{id:"c",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:e.jsx("use",{xlinkHref:"#i",transform:"scale(.00455 .00781)"})}),e.jsxs("filter",{id:"a",x:"0",y:"0",width:"228",height:"258",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[e.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e.jsx("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.jsx("feOffset",{dy:"2"}),e.jsx("feGaussianBlur",{stdDeviation:"2"}),e.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),e.jsx("feColorMatrix",{values:"0 0 0 0 0.0631944 0 0 0 0 0.242785 0 0 0 0 0.403472 0 0 0 0.2 0"}),e.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1410_22507"}),e.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1410_22507",result:"shape"})]}),e.jsx("image",{id:"i",width:"220",height:"128",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACABAMAAACSOBo+AAAAG1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACUUeIgAAAACXRSTlMSFhkOHAsfCCOMH5MiAAAjjElEQVRo3hTQO3sjRRBG4a+qWzJhVfdIJqzuGXsJe2bkJe0e2UA4shdIJS2X1LBcUpbL/wae5yQnfVHGjp2+V08yKR7OwBDYte8pi5Aq9D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hElmCMb07li9ceHQHFknk/98f4KJRLpX6xQEXVAnJxlr8Aw6/qb0wu9SNolstScB0izxmMC5DiytBJd9Rcm3RGf42aiddmUTM4d4dgdjiT+vMPX0/RzfZdLoZ4aQqPzhx9plNI3QyvsMZHn2j2wOECoTtkfJt89O+eYUnXB/gFxHxPmOeL9ogAAAABJRU5ErkJggg=="})]})]})};M.defaultProps={width:"228",height:"258",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function $(){const{t}=y();return e.jsx(x,{children:e.jsxs(x,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignContent:"center",children:[e.jsx(M,{style:{width:250,height:250}}),e.jsx(B,{marginTop:"24px",children:t("storage.spaces.connect.providerForStorage")})]})})}$.propTypes={};function S({spaceGateway:t,onDeleteSpace:c}){const{t:s}=y(),[o,a]=g.useState(!1),[i,f]=g.useState(!1),p=(n,h)=>{n==null||n.stopPropagation(),a(h)},A=async n=>{try{n==null||n.stopPropagation(),f(!0),await c(t),a(!1)}catch(h){console.error(h),m.error(`${s("storage.spaces.gateway.delete.failed")}: ${v(h)}`)}finally{f(!1)}};return e.jsxs(e.Fragment,{children:[e.jsx(w,{size:"small",onClick:n=>p(n,!0),children:e.jsx(Y,{})}),e.jsx(L,{title:s("storage.spaces.gateway.delete.title"),open:o,confirmButton:{text:s("common.confirm"),props:{size:"small",variant:"contained",color:"error",loading:i}},cancelButton:{text:s("common.cancel"),props:{size:"small",variant:"outlined"}},onConfirm:A,onCancel:n=>p(n,!1),children:e.jsx(B,{sx:{wordWrap:"break-word"},children:s("storage.spaces.gateway.delete.descForStorage",{name:`${t==null?void 0:t.name}`})})})]})}S.propTypes={onDeleteSpace:d.func,spaceGateway:d.shape({name:d.string.isRequired,url:d.string.isRequired,protected:d.bool}).isRequired};S.defaultProps={onDeleteSpace:()=>{}};function j({spaceGateway:t,onDisconnect:c}){const{t:s}=y(),o=async()=>{try{await c(),m.success(s("storage.spaces.gateway.delete.succeeded",{name:t.name?`(${t.name})`:""}))}catch(a){console.error(a),m.error(v(a))}};return e.jsx(S,{spaceGateway:t,onDeleteSpace:o})}j.propTypes={spaceGateway:d.shape({did:d.string.isRequired,name:d.string.isRequired,url:d.string.isRequired,endpoint:d.string.isRequired}).isRequired,onDisconnect:d.func};j.defaultProps={onDisconnect:()=>{}};function p1(){const{t}=y(),{spaceGateway:c,settingStorageEndpoint:s}=_();return e.jsxs(x,{display:"flex",flexDirection:"column",children:[e.jsx(x,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",children:e.jsx(B,{fontSize:"1rem",fontWeight:"bold",children:t("storage.spaces.connected.title")})}),e.jsx(x,{children:e.jsx(P,{sx:{marginTop:2},endpoint:c.endpoint,selected:!0,action:o=>e.jsx(j,{...o,onDisconnect:()=>s(null)})})})]})}function e1({blocklet:t}){var A,n,h;if(O(t))return{};const{appDid:c}=t,s=E.getAppName(t),o=E.getAppDescription(t),a=(h=(n=(A=t==null?void 0:t.site)==null?void 0:A.domainAliases)==null?void 0:n.sort((r,u)=>r.accessibility.accessible&&u.accessibility.accessible?+r.isProtected-+u.isProtected:+u.accessibility.accessible-+r.accessibility.accessible))==null?void 0:h.map(r=>{var C;const u=(C=r==null?void 0:r.domainStatus)!=null&&C.isHttps?"https://":"http://",l=r==null?void 0:r.value;return`${u}${l}`}).filter(Boolean),i=a==null?void 0:a[0],f=D.DID_SPACES.AUTHORIZE.DEFAULT_SCOPE,p=window.location.href;return{appDid:c,appName:s,appDescription:o,appUrl:i,scopes:f,referrer:p,isReady:!!i}}function Z({onConnect:t,...c}){const{blocklet:s}=I(),{info:o}=U(),{t:a}=y(),i=e1({blocklet:s}),f=G(o),p={checkFn:V.create({baseURL:H(window.location.origin,N())}).get,webWalletUrl:f,extraParams:{appPid:s.appPid,appDid:i.appDid,appName:i.appName,appDescription:i.appDescription,appUrl:i.appUrl,referrer:i.referrer,scopes:i.scopes,nodeDid:o.did}},A=async({spaceGateway:n})=>{try{await t(n),m.success(a("storage.spaces.connectedWithName",{name:n.name}))}catch(h){console.error(h),m.error(v(h))}};return e.jsx(b,{...c,options:p,onSuccess:A})}Z.propTypes={onConnect:R.func};Z.defaultProps={onConnect:()=>{}};export{p1 as C,$ as D,Z as a,F as b,e1 as c,_ as u};
1
+ import{r as g,bq as U,aU as Q,j as e,$ as R,N as O,y as m,b as D,a4 as k,m as y,M as x,k as B,P as d,a5 as w,a6 as L,Y as v,H as E,w as G,az as V,a3 as H,ao as N}from"./index-BScCZen8.js";import{D as P,a as b}from"./index-BnuJug5D.js";import"./index-DYUzMTeE.js";import"./index-BojVbZw0.js";import{b as X,c as K,d as z}from"./spaces-BfGix7Ah.js";import{u as I}from"./blocklet-Dj2klNma.js";import{d as Y}from"./DeleteOutline-BZ3_z3iH.js";import"./api-BV0Wx2uO.js";function q(){const[t,c]=g.useState(null),{blocklet:s}=I();return g.useEffect(()=>{c(X(s))},[s]),{storageEndpoint:t}}const J=g.createContext({}),{Provider:W,Consumer:l1}=J;function F({children:t}){const[c,s]=g.useState(!1),[o,a]=g.useState(null),{blocklet:i,actions:{refreshBlocklet:f}}=I(),{storageEndpoint:p}=q(),{api:A}=U();Q(async()=>{try{if(s(!0),O(p)){a(null);return}const l=await K(p);a(l)}catch(l){console.error(l),m.error(l.message)}finally{s(!1)}},[p]);const n=()=>{a(null),f()},h=async l=>{a(l),await r(l.endpoint),f()},r=async l=>{await A.configBlocklet({input:{did:[i.meta.did],configs:[{key:D.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPACE_ENDPOINT,value:l}]}}),f()};g.useEffect(()=>{async function l(){if(!o)return;const C=await z(o.endpoint,o.name),T=k(o,{name:C});a(T)}l()},[]);const u=!!(p&&o);return e.jsx(W,{value:{loading:c,spaceGateway:o,deleteSpaceGateway:n,updateSpaceGateway:h,storageEndpoint:p,settingStorageEndpoint:r,hasStorageEndpoint:u},children:t})}F.propTypes={children:R.node.isRequired};F.defaultProps={};function _(){return g.useContext(J)}var M=function(c){return e.jsxs("svg",{...c,children:[e.jsxs("g",{filter:"url(#a)",children:[e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97Z",fill:"#DDD"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m49.192 6.222-40.97 40.97A11 11 0 0 0 5 54.971V240c0 6.075 4.925 11 11 11h196c6.075 0 11-4.925 11-11V14c0-6.075-4.925-11-11-11H56.97a11 11 0 0 0-7.778 3.222Zm-.707-.707A12 12 0 0 1 56.971 2H212c6.627 0 12 5.373 12 12v226c0 6.627-5.373 12-12 12H16c-6.627 0-12-5.373-12-12V54.97a12 12 0 0 1 3.515-8.485l40.97-40.97Z",fill:"#000",fillOpacity:".08"}),e.jsx("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"4",y:"2",width:"220",height:"250",children:e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97Z",fill:"#D9D9D9"})}),e.jsxs("g",{mask:"url(#b)",children:[e.jsx("path",{opacity:".5",fill:"url(#c)",d:"M4 2h220v128H4z"}),e.jsx("path",{opacity:".1",fill:"url(#d)",d:"M4 130h220v122H4z"}),e.jsx("path",{d:"M33.045 169h-3.767v-11.636h3.887c1.14 0 2.12.233 2.937.698a4.61 4.61 0 0 1 1.881 1.995c.44.863.659 1.899.659 3.108 0 1.212-.222 2.254-.665 3.125a4.668 4.668 0 0 1-1.909 2.011c-.833.466-1.84.699-3.023.699Zm-2.01-1.534h1.914c.886 0 1.623-.167 2.21-.5a3.152 3.152 0 0 0 1.318-1.46c.292-.64.438-1.421.438-2.341 0-.913-.146-1.688-.438-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568Zm11.546-10.102V169h-1.756v-11.636h1.756ZM48.905 169h-3.767v-11.636h3.886c1.14 0 2.12.233 2.938.698a4.609 4.609 0 0 1 1.88 1.995c.44.863.66 1.899.66 3.108 0 1.212-.222 2.254-.665 3.125a4.667 4.667 0 0 1-1.91 2.011c-.833.466-1.84.699-3.022.699Zm-2.011-1.534h1.914c.887 0 1.623-.167 2.21-.5a3.151 3.151 0 0 0 1.319-1.46c.291-.64.437-1.421.437-2.341 0-.913-.146-1.688-.437-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568Zm20.372-7.046a1.662 1.662 0 0 0-.75-1.25c-.44-.299-.993-.448-1.66-.448-.477 0-.89.075-1.238.227a1.91 1.91 0 0 0-.813.613c-.189.258-.284.552-.284.881 0 .277.065.515.194.716.132.201.304.369.516.506.216.132.447.244.694.335.246.087.483.159.71.216l1.136.295c.371.091.752.214 1.142.37.39.155.752.36 1.086.613.333.254.602.568.806.944.209.374.313.823.313 1.346 0 .659-.17 1.244-.511 1.756-.338.511-.828.915-1.472 1.21-.64.295-1.415.443-2.324.443-.871 0-1.625-.138-2.261-.415-.637-.276-1.135-.668-1.495-1.176-.36-.511-.558-1.117-.596-1.818h1.761c.034.421.17.771.41 1.051.242.277.55.483.925.62.38.132.794.198 1.245.198.496 0 .937-.077 1.324-.233.39-.159.697-.378.92-.659a1.56 1.56 0 0 0 .335-.994c0-.345-.098-.627-.295-.847a2.191 2.191 0 0 0-.79-.545 7.725 7.725 0 0 0-1.12-.381l-1.374-.375c-.932-.253-1.67-.627-2.216-1.119-.542-.492-.813-1.144-.813-1.955 0-.67.182-1.255.546-1.755.363-.5.856-.888 1.477-1.165.621-.28 1.322-.42 2.102-.42.788 0 1.483.138 2.085.414.607.277 1.084.658 1.432 1.142.349.481.53 1.034.546 1.659h-1.693Zm3.813 11.853v-12h1.66v1.415h.142c.098-.182.24-.393.426-.631.185-.239.443-.447.772-.625.33-.182.766-.273 1.307-.273.705 0 1.334.178 1.887.534.553.356.987.869 1.3 1.54.319.67.478 1.477.478 2.42 0 .944-.157 1.752-.472 2.427-.314.67-.746 1.187-1.295 1.551-.55.36-1.176.539-1.88.539-.53 0-.965-.089-1.302-.267a2.457 2.457 0 0 1-.784-.625 4.667 4.667 0 0 1-.437-.636h-.103v4.631H71.08Zm1.665-7.637c0 .614.09 1.152.267 1.614.178.462.436.824.773 1.085.337.258.75.387 1.239.387.507 0 .931-.135 1.273-.404.34-.273.598-.642.772-1.108.178-.466.267-.99.267-1.574 0-.575-.087-1.092-.261-1.551-.17-.458-.428-.82-.773-1.085-.34-.265-.767-.398-1.278-.398-.493 0-.91.127-1.25.381-.337.254-.593.608-.767 1.062-.175.455-.262.985-.262 1.591Zm10.75 4.557a3.557 3.557 0 0 1-1.5-.307 2.523 2.523 0 0 1-1.062-.903c-.258-.394-.386-.877-.386-1.449 0-.492.094-.898.283-1.216.19-.318.446-.57.768-.756a4.036 4.036 0 0 1 1.08-.42c.397-.095.802-.167 1.215-.216l1.273-.148c.325-.041.562-.108.71-.198.148-.091.222-.239.222-.444v-.039c0-.497-.14-.881-.42-1.154-.277-.273-.69-.409-1.24-.409-.572 0-1.022.127-1.352.381-.325.25-.55.528-.676.835l-1.597-.364c.19-.53.466-.958.83-1.284.368-.329.79-.568 1.267-.716.477-.151.98-.227 1.506-.227.348 0 .718.042 1.108.125.394.08.761.227 1.102.443.345.216.627.525.847.926.22.398.33.915.33 1.552V169h-1.66v-1.193h-.068c-.11.22-.275.435-.495.648-.22.212-.501.388-.846.528s-.758.21-1.239.21Zm.37-1.363c.47 0 .87-.093 1.204-.279.337-.185.593-.428.767-.727.178-.303.267-.627.267-.972v-1.125c-.06.061-.178.118-.352.171-.17.049-.365.093-.585.13-.22.034-.434.067-.642.097l-.523.068c-.33.042-.63.112-.903.21a1.553 1.553 0 0 0-.648.427c-.16.181-.239.424-.239.727 0 .42.156.738.466.954.31.212.707.319 1.188.319Zm9.876 1.346c-.845 0-1.572-.191-2.182-.574a3.796 3.796 0 0 1-1.398-1.596c-.325-.678-.488-1.455-.488-2.33 0-.886.166-1.668.5-2.346a3.832 3.832 0 0 1 1.409-1.597c.606-.383 1.32-.574 2.142-.574.663 0 1.254.123 1.773.369.519.243.937.584 1.255 1.023.322.44.514.953.574 1.54h-1.653c-.091-.409-.3-.761-.625-1.057-.322-.295-.754-.443-1.296-.443a2.11 2.11 0 0 0-1.244.375c-.352.246-.627.598-.824 1.057-.197.454-.295.992-.295 1.613 0 .637.096 1.186.29 1.648.193.462.466.82.818 1.074.356.254.774.381 1.255.381.322 0 .614-.059.875-.177.266-.121.487-.293.665-.517.182-.223.309-.492.38-.806h1.654a3.211 3.211 0 0 1-.55 1.511 3.165 3.165 0 0 1-1.234 1.045c-.511.254-1.111.381-1.8.381Zm9.163 0c-.859 0-1.6-.184-2.221-.551a3.732 3.732 0 0 1-1.432-1.563c-.333-.674-.5-1.464-.5-2.369 0-.894.167-1.682.5-2.363a3.887 3.887 0 0 1 1.409-1.597c.606-.383 1.314-.574 2.125-.574.493 0 .97.082 1.432.244.462.163.877.419 1.244.767.368.349.657.802.87 1.358.212.553.318 1.226.318 2.017v.603H99.71v-1.273h5.273c0-.447-.091-.843-.273-1.187a2.052 2.052 0 0 0-.767-.824c-.326-.201-.708-.302-1.148-.302a2.22 2.22 0 0 0-1.25.353 2.364 2.364 0 0 0-.818.909 2.626 2.626 0 0 0-.284 1.21v.994c0 .584.102 1.08.307 1.489.208.409.498.722.869.938.372.212.805.318 1.301.318a2.7 2.7 0 0 0 .881-.137c.265-.094.494-.234.688-.42.193-.186.341-.415.443-.688l1.608.29c-.129.474-.36.888-.693 1.244-.33.353-.745.627-1.245.824-.496.194-1.062.29-1.699.29Z",fill:"#fff"}),e.jsx("path",{d:"M117.604 47.263 121.523 45h14.267v41.862h-14.267l-15.335-8.854V53.854l1.818-1.05 3.2 1.848-1.818 1.05V76.16l12.993 7.502h10.209V48.2h-10.209l-1.577.91-3.2-1.847Z",fill:"url(#e)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M119.402 76.16V55.701L106.409 48.2H96.2v35.462h10.209l1.582-.913 3.2 1.847-3.924 2.266H93V45h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047Z",fill:"url(#f)"}),e.jsxs("g",{clipPath:"url(#g)",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff",children:[e.jsx("path",{d:"m50.928 216.089 1.034 2.852h-2.503l1.028-2.842a4.95 4.95 0 0 0 .107-.338 7.17 7.17 0 0 0 .111-.409c.075.297.15.542.223.737Zm2.28 5.591h.796l-2.775-7.352h-1.043l-2.774 7.352h.795a.338.338 0 0 0 .223-.077.425.425 0 0 0 .127-.179l.615-1.705h3.07l.617 1.705a.399.399 0 0 0 .126.184.339.339 0 0 0 .223.072Zm4.823-.963a2.023 2.023 0 0 1-.67.098h-1.455v-2.453h1.456c.5 0 .871.106 1.11.318.24.208.36.495.36.86 0 .184-.028.355-.083.512a1.005 1.005 0 0 1-.262.399 1.2 1.2 0 0 1-.456.266Zm-2.125-3.128v-2.406h1.237c.498 0 .865.095 1.101.286.236.192.355.497.355.917 0 .369-.125.662-.374.881-.246.215-.623.322-1.13.322h-1.189Zm2.358-3.128a4.106 4.106 0 0 0-1.12-.133h-2.27v7.352h2.507c.391 0 .74-.051 1.048-.154.307-.102.566-.247.776-.435.21-.188.37-.409.48-.665.11-.26.165-.547.165-.861 0-.904-.506-1.462-1.518-1.674.22-.075.41-.169.572-.281a1.79 1.79 0 0 0 .403-.379c.106-.144.186-.297.237-.461.052-.164.078-.335.078-.512a2.1 2.1 0 0 0-.146-.804 1.49 1.49 0 0 0-.441-.609 2.073 2.073 0 0 0-.771-.384Zm7.535.778h-2.212v6.441h-1.028v-6.441h-2.222v-.911H65.8v.911Zm2.439.564h-1.13v1.193h1.13v-1.193Zm-1.13 2.983h1.13v1.193h-1.13v-1.193Z",fillOpacity:".8"}),e.jsx("path",{d:"M28.247 221.771V214h3.894c.99.072 1.765.944 1.765 1.998v3.77c0 1.106-.85 2.003-1.897 2.003h-3.762ZM36.355 214h-1.011v7.783h1.01V214Zm-7.097 6.704v-5.642h2.751c.49 0 .886.419.886.936v3.77c0 .517-.396.936-.886.936h-2.75ZM37.775 214v7.771h3.762c1.047 0 1.897-.897 1.897-2.003v-3.77c0-1.054-.774-1.926-1.765-1.998h-3.894Zm6.946 1.803h1.13v1.193h-1.13v-1.193Zm1.13 2.983h-1.13v1.193h1.13v-1.193Zm-7.065-3.724v5.642h2.75c.49 0 .887-.419.887-.936v-3.77c0-.517-.397-.936-.886-.936h-2.751Z"})]}),e.jsx("circle",{cx:"191.32",cy:"218",r:"10",fill:"url(#h)"}),e.jsx("path",{d:"m192.064 213.333.976-.564h3.554v10.427h-3.286a1 1 0 0 1-.5-.134l-3.588-2.071v-6.016l.453-.262.797.46-.453.262v5.096l3.237 1.868h2.543v-8.833h-2.543l-.393.227-.797-.46Z",fill:"#fff"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M192.512 220.531v-5.096l-3.237-1.869h-2.543v8.833h2.543l.394-.227.797.46-.977.564h-3.554v-10.427h3.554l3.82 2.206v6.016l-.452.261-.797-.461.452-.26Z",fill:"#fff"})]})]}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"d",x1:"114",y1:"130",x2:"114",y2:"252",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#101010"}),e.jsx("stop",{offset:"1",stopColor:"#272727"})]}),e.jsxs("linearGradient",{id:"e",x1:"120.989",y1:"45",x2:"120.989",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#fff",stopOpacity:".4"}),e.jsx("stop",{offset:"1",stopColor:"#fff"})]}),e.jsxs("linearGradient",{id:"f",x1:"107.801",y1:"45",x2:"107.801",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#fff"}),e.jsx("stop",{offset:"1",stopColor:"#fff",stopOpacity:".4"})]}),e.jsxs("radialGradient",{id:"h",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(17 -8.76924 6.97565 13.52294 183.166 221)",children:[e.jsx("stop",{stopColor:"#016BED"}),e.jsx("stop",{offset:".699",stopColor:"#4498FB"}),e.jsx("stop",{offset:"1",stopColor:"#9DFFE8"})]}),e.jsx("clipPath",{id:"g",children:e.jsx("path",{fill:"#fff",transform:"translate(28 214)",d:"M0 0h40.32v8H0z"})}),e.jsx("pattern",{id:"c",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:e.jsx("use",{xlinkHref:"#i",transform:"scale(.00455 .00781)"})}),e.jsxs("filter",{id:"a",x:"0",y:"0",width:"228",height:"258",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[e.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e.jsx("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.jsx("feOffset",{dy:"2"}),e.jsx("feGaussianBlur",{stdDeviation:"2"}),e.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),e.jsx("feColorMatrix",{values:"0 0 0 0 0.0631944 0 0 0 0 0.242785 0 0 0 0 0.403472 0 0 0 0.2 0"}),e.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1410_22507"}),e.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1410_22507",result:"shape"})]}),e.jsx("image",{id:"i",width:"220",height:"128",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACABAMAAACSOBo+AAAAG1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACUUeIgAAAACXRSTlMSFhkOHAsfCCOMH5MiAAAjjElEQVRo3hTQO3sjRRBG4a+qWzJhVfdIJq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Ty3m5s3i7BqLbFkKcfxLQYhAXfjam0yFFd3PZE9wlXWfHYKlg2cFlTcnwRH6z8DpSfQHidMhElmCMb07li9ceHQHFknk/98f4KJRLpX6xQEXVAnJxlr8Aw6/qb0wu9SNolstScB0izxmMC5DiytBJd9Rcm3RGf42aiddmUTM4d4dgdjiT+vMPX0/RzfZdLoZ4aQqPzhx9plNI3QyvsMZHn2j2wOECoTtkfJt89O+eYUnXB/gFxHxPmOeL9ogAAAABJRU5ErkJggg=="})]})]})};M.defaultProps={width:"228",height:"258",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function $(){const{t}=y();return e.jsx(x,{children:e.jsxs(x,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignContent:"center",children:[e.jsx(M,{style:{width:250,height:250}}),e.jsx(B,{marginTop:"24px",children:t("storage.spaces.connect.providerForStorage")})]})})}$.propTypes={};function S({spaceGateway:t,onDeleteSpace:c}){const{t:s}=y(),[o,a]=g.useState(!1),[i,f]=g.useState(!1),p=(n,h)=>{n==null||n.stopPropagation(),a(h)},A=async n=>{try{n==null||n.stopPropagation(),f(!0),await c(t),a(!1)}catch(h){console.error(h),m.error(`${s("storage.spaces.gateway.delete.failed")}: ${v(h)}`)}finally{f(!1)}};return e.jsxs(e.Fragment,{children:[e.jsx(w,{size:"small",onClick:n=>p(n,!0),children:e.jsx(Y,{})}),e.jsx(L,{title:s("storage.spaces.gateway.delete.title"),open:o,confirmButton:{text:s("common.confirm"),props:{size:"small",variant:"contained",color:"error",loading:i}},cancelButton:{text:s("common.cancel"),props:{size:"small",variant:"outlined"}},onConfirm:A,onCancel:n=>p(n,!1),children:e.jsx(B,{sx:{wordWrap:"break-word"},children:s("storage.spaces.gateway.delete.descForStorage",{name:`${t==null?void 0:t.name}`})})})]})}S.propTypes={onDeleteSpace:d.func,spaceGateway:d.shape({name:d.string.isRequired,url:d.string.isRequired,protected:d.bool}).isRequired};S.defaultProps={onDeleteSpace:()=>{}};function j({spaceGateway:t,onDisconnect:c}){const{t:s}=y(),o=async()=>{try{await c(),m.success(s("storage.spaces.gateway.delete.succeeded",{name:t.name?`(${t.name})`:""}))}catch(a){console.error(a),m.error(v(a))}};return e.jsx(S,{spaceGateway:t,onDeleteSpace:o})}j.propTypes={spaceGateway:d.shape({did:d.string.isRequired,name:d.string.isRequired,url:d.string.isRequired,endpoint:d.string.isRequired}).isRequired,onDisconnect:d.func};j.defaultProps={onDisconnect:()=>{}};function p1(){const{t}=y(),{spaceGateway:c,settingStorageEndpoint:s}=_();return e.jsxs(x,{display:"flex",flexDirection:"column",children:[e.jsx(x,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",children:e.jsx(B,{fontSize:"1rem",fontWeight:"bold",children:t("storage.spaces.connected.title")})}),e.jsx(x,{children:e.jsx(P,{sx:{marginTop:2},endpoint:c.endpoint,selected:!0,action:o=>e.jsx(j,{...o,onDisconnect:()=>s(null)})})})]})}function e1({blocklet:t}){var A,n,h;if(O(t))return{};const{appDid:c}=t,s=E.getAppName(t),o=E.getAppDescription(t),a=(h=(n=(A=t==null?void 0:t.site)==null?void 0:A.domainAliases)==null?void 0:n.sort((r,u)=>r.accessibility.accessible&&u.accessibility.accessible?+r.isProtected-+u.isProtected:+u.accessibility.accessible-+r.accessibility.accessible))==null?void 0:h.map(r=>{var C;const u=(C=r==null?void 0:r.domainStatus)!=null&&C.isHttps?"https://":"http://",l=r==null?void 0:r.value;return`${u}${l}`}).filter(Boolean),i=a==null?void 0:a[0],f=D.DID_SPACES.AUTHORIZE.DEFAULT_SCOPE,p=window.location.href;return{appDid:c,appName:s,appDescription:o,appUrl:i,scopes:f,referrer:p,isReady:!!i}}function Z({onConnect:t,...c}){const{blocklet:s}=I(),{info:o}=U(),{t:a}=y(),i=e1({blocklet:s}),f=G(o),p={checkFn:V.create({baseURL:H(window.location.origin,N())}).get,webWalletUrl:f,extraParams:{appPid:s.appPid,appDid:i.appDid,appName:i.appName,appDescription:i.appDescription,appUrl:i.appUrl,referrer:i.referrer,scopes:i.scopes,nodeDid:o.did}},A=async({spaceGateway:n})=>{try{await t(n),m.success(a("storage.spaces.connectedWithName",{name:n.name}))}catch(h){console.error(h),m.error(v(h))}};return e.jsx(b,{...c,options:p,onSuccess:A})}Z.propTypes={onConnect:R.func};Z.defaultProps={onConnect:()=>{}};export{p1 as C,$ as D,Z as a,F as b,e1 as c,_ as u};
@@ -1 +1 @@
1
- import{m as h,j as e,M as g,X as j,k as _,t as v,af as b,P as n}from"./index-B7UfL6V6.js";import{C as T}from"./click-to-copy-CGbpKHCv.js";import{S as R}from"./shorten-label-BVrJaxJC.js";function s({title:l,description:c,confirmPlaceholder:m,cancel:d,confirm:p,params:u,onCancel:f,onConfirm:C,keyName:t}){const{t:r}=h(),i={title:()=>e.jsxs(g,{children:[l,e.jsx(R,{sx:{fontSize:"14px"},maxLength:64,children:` (${t})`})]}),description:(a,x)=>{const y=o=>{x({...o,__disableConfirm:o.__disableConfirm})};return e.jsxs("div",{children:[e.jsx(j,{severity:"warning",style:{width:"100%"},children:r("common.notice")}),e.jsx("div",{style:{marginTop:24,marginBottom:24},dangerouslySetInnerHTML:{__html:c}}),e.jsxs("div",{style:{marginBottom:24},children:[r("common.click"),":",e.jsx(T,{"data-cy":"click-copy",children:t})]}),e.jsx(_,{component:"div",children:e.jsx(v,{label:m,autoComplete:"off","data-cy":"delete-confirm-input",variant:"outlined",fullWidth:!0,autoFocus:!0,value:a.inputVal,onChange:o=>{y({...a,inputVal:o.target.value,__disableConfirm:t!==o.target.value})}})})]})},confirm:p,cancel:d,onConfirm:C,onCancel:f,params:{inputVal:"",__disableConfirm:!0,...u}};return e.jsx(b,{title:i.title,description:i.description,confirm:i.confirm,cancel:i.cancel,params:i.params,onConfirm:i.onConfirm,onCancel:i.onCancel})}s.propTypes={title:n.any.isRequired,keyName:n.any.isRequired,description:n.any.isRequired,confirmPlaceholder:n.any.isRequired,cancel:n.string,confirm:n.string,params:n.object,onCancel:n.func,onConfirm:n.func.isRequired};s.defaultProps={onCancel:()=>{},cancel:"",confirm:"Confirm",params:{}};export{s as D};
1
+ import{m as h,j as e,M as g,X as j,k as _,t as v,af as b,P as n}from"./index-BScCZen8.js";import{C as T}from"./click-to-copy-Bd1pbmjJ.js";import{S as R}from"./shorten-label-DC9lls-_.js";function s({title:l,description:c,confirmPlaceholder:m,cancel:d,confirm:p,params:u,onCancel:f,onConfirm:C,keyName:t}){const{t:r}=h(),i={title:()=>e.jsxs(g,{children:[l,e.jsx(R,{sx:{fontSize:"14px"},maxLength:64,children:` (${t})`})]}),description:(a,x)=>{const y=o=>{x({...o,__disableConfirm:o.__disableConfirm})};return e.jsxs("div",{children:[e.jsx(j,{severity:"warning",style:{width:"100%"},children:r("common.notice")}),e.jsx("div",{style:{marginTop:24,marginBottom:24},dangerouslySetInnerHTML:{__html:c}}),e.jsxs("div",{style:{marginBottom:24},children:[r("common.click"),":",e.jsx(T,{"data-cy":"click-copy",children:t})]}),e.jsx(_,{component:"div",children:e.jsx(v,{label:m,autoComplete:"off","data-cy":"delete-confirm-input",variant:"outlined",fullWidth:!0,autoFocus:!0,value:a.inputVal,onChange:o=>{y({...a,inputVal:o.target.value,__disableConfirm:t!==o.target.value})}})})]})},confirm:p,cancel:d,onConfirm:C,onCancel:f,params:{inputVal:"",__disableConfirm:!0,...u}};return e.jsx(b,{title:i.title,description:i.description,confirm:i.confirm,cancel:i.cancel,params:i.params,onConfirm:i.onConfirm,onCancel:i.onCancel})}s.propTypes={title:n.any.isRequired,keyName:n.any.isRequired,description:n.any.isRequired,confirmPlaceholder:n.any.isRequired,cancel:n.string,confirm:n.string,params:n.object,onCancel:n.func,onConfirm:n.func.isRequired};s.defaultProps={onCancel:()=>{},cancel:"",confirm:"Confirm",params:{}};export{s as D};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./overview-4A1WnWrw.js","./index-B7UfL6V6.js","./index-BwERA2k7.css","./HelpOutline-Crn0Z0sH.js","./status-De3FcWeh.js","./index-nS9VTrx6.js","./ErrorOutline-D22L4UmC.js","./omit-ysA7yEnR.js","./index-BojVbZw0.js","./index-8mvNLWje.js","./blocklet-DJeYf4PW.js","./team-CznOtdKl.js","./url-evaluation-Dv0N_pok.js","./spaces-HyRwvQdH.js","./api-CWu-rIyH.js","./domains-B3cNb2Aw.js","./index-B6e7M9AU.js","./VerifiedUser-B5iWLUpk.js","./LoadingButton-BcryG2ki.js","./useThemeProps-DHnKAZsI.js","./useAsync-B4uBsSr_.js","./permission-CoJIDKiq.js","./session-Bo2ZbX-l.js","./Delete-BBkD2GAm.js","./actions-CQYnMEfY.js","./MoreHoriz-BNH4KEQj.js","./delete-confirm-BxVrliVv.js","./click-to-copy-CGbpKHCv.js","./shorten-label-BVrJaxJC.js","./status-B6OYlotx.js","./CardContent-p0HerB2M.js","./Add-Do4PUh5X.js","./CallMerge-Dn1-C0m8.js","./toLower-e46SyAPI.js","./use-mobile-BDkfqLh5.js","./util-DWSWDAob.js","./is-path-prefix-equal-Dz4CThga.js","./index-CzB8vcqG.js","./preference-BSnQFWBu.js","./index-Ddjwpsss.js","./iframe-BVfyrfbA.js","./ChevronRight-BRJpeXvU.js","./index-C0sxtXdZ.js","./Done-vYGWNHHy.js","./chain-DoJ5uumw.js","./ArrowDropDown-DlLoBd5O.js","./ButtonGroup-jq75babd.js","./getValidReactChildren-Ced4squ1.js","./Autocomplete-8l10UH26.js","./ListSubheader-C0FJk3-H.js","./Public-R75NJcSG.js","./index-DzrZDra1.js","./index.esm-CMv_mNgM.js","./index-DSARI07I.js","./emotion-react.browser.esm-CDAjTwPn.js","./ViewColumn-DOT0Os2K.js","./Search-CfIrlArL.js","./Clear-Dee15ZKB.js","./MoreVert-BnLtQQPi.js","./TableSearch-B7b60mjO.js","./switch-control-CfY71NTZ.js","./Slider-Ce4-AA62.js","./index-CK4YzYs2.js","./index-w0kQr3JV.js","./index-foZCwT8M.css","./use-mobile-DT28abSy.js","./simple-select-DarZpQR1.js","./actions-DjJDvvNb.js","./useLocalStorage-euZsG16i.js","./get-safe-url-BfHsII0C.js","./refType-D9Sa_mOm.js","./CSSTransition-Be2lCFWj.js","./appearance-CYge78ns.js","./config-navigation-D7AslSv5.js","./cloneDeep-vMO7xSKJ.js","./index-CtQ2LyfY.js","./_createAggregator-CjZtATK4.js","./raf-schd.esm-DjoqsVPc.js","./resource-dialog-DXjH0dKy.js","./index-CMItS6dn.js","./ListItemButton-Bu0_R2ca.js","./index-BWKhFNY-.js","./index-H1Gi2Jnl.js","./index-BJHGOv7L.js","./index-DSNK0LXH.js","./index-DXxOMksl.js","./Refresh-BFb6at9W.js","./traffic-BVDBAzGe.js","./ChevronLeft-JMgoqv1P.js","./index-DnCpGAd1.js","./AdapterDayjs-Cvpvococ.js","./audit-logs-DvPq3DKg.js","./index-BqBaspNQ.js","./index-C0Iiqot3.css","./index-B-XvEBt5.js","./LockIcon-DtDbYwWX.js","./list-header-C-vpKvhr.js","./ToggleButtonGroup-BBCf3swR.js","./index-D9Y4XTdQ.js","./ViewList-CFuBhPy5.js","./Verified-BeU4A60V.js","./DeleteOutline-CJur6DNk.js","./service-CaVokZ0Y.js","./table-icons-C7DLMt6_.js","./Edit-CRnqnhH9.js","./index-CO3XBdns.js","./Link-C0pm3nZZ.js","./item-vU_-cc7I.js","./index-Cr-P1gSM.js","./Launch-B959IsxA.js","./item-D-IRi6XF.css","./index-BhFXgjJL.js","./url-join-B7iCgPgX.js","./Close-fYv6NWB2.js","./connect-to-KDT0hSpV.js","./agreement-DlIVHnRs.js","./install-from-url-CiqpeJac.js","./schema-CfO6HjUI.js","./Stepper-B9jFEqOQ.js","./toUpper-C34aTbM3.js","./log-CaaCrZDx.js","./download-B0OUhY0B.js","./download-D33dFtt_.css","./runtime-Dlt-Nkw4.js","./memory-8GRWhGBe.js","./index--lAtXWUP.js","./index-vvJGfld4.js","./index-DVCjSXXQ.js","./Delete-DL_etOWb.js"])))=>i.map(i=>d[i]);
2
- import{m as qe,bq as jt,r as b,A as F,j as p,X as Qe,M as ee,B as Ge,v as Pt,bA as At,H as T,y as X,Y as We,bn as Ke,bB as I,x as Dt,u as Ot,bC as Lt,bD as Bt,bE as W,bF as Rt,Z as Oe,C as Le,J as Mt,bG as Nt,k as fe,K as Ft,n as Vt,bH as zt}from"./index-B7UfL6V6.js";import{T as $t}from"./index-C0sxtXdZ.js";import{B as Ut}from"./status-B6OYlotx.js";import{D as Ht,B as qt}from"./actions-DjJDvvNb.js";import{u as Qt}from"./blocklet-DJeYf4PW.js";import{u as Je}from"./session-Bo2ZbX-l.js";import{R as Gt}from"./index-CMItS6dn.js";import{B as Wt,a as Kt,T as Jt}from"./team-CznOtdKl.js";import{P as Xt}from"./permission-CoJIDKiq.js";import{B as Yt}from"./Breadcrumbs-CTxrM3iq.js";import"./url-evaluation-Dv0N_pok.js";import"./useLocalStorage-euZsG16i.js";import"./MoreVert-BnLtQQPi.js";import"./Delete-BBkD2GAm.js";import"./get-safe-url-BfHsII0C.js";import"./ButtonGroup-jq75babd.js";import"./getValidReactChildren-Ced4squ1.js";/**
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./overview-uPHlb4Rk.js","./index-BScCZen8.js","./index-BwERA2k7.css","./HelpOutline-BIx91aby.js","./status-oG8SDlCL.js","./index-B-8BgkIX.js","./ErrorOutline-NhUNtUrq.js","./omit-BOdOfEDG.js","./index-BojVbZw0.js","./index-J_t6WXFJ.js","./blocklet-Dj2klNma.js","./team-D9geX5Dv.js","./url-evaluation-Dkim9UU-.js","./spaces-BfGix7Ah.js","./api-BV0Wx2uO.js","./domains-CM3lyOs-.js","./index-BX4S2ZnM.js","./VerifiedUser-CCkZHpu5.js","./LoadingButton-DVPu322x.js","./useThemeProps-DCQ65cqf.js","./useAsync-CXjZIHoB.js","./permission-qJMVgxZB.js","./session--KhzErQz.js","./Delete-E4y6t1JP.js","./actions-sMg6nWfa.js","./MoreHoriz-Cly_ulfn.js","./delete-confirm-BNoGa68c.js","./click-to-copy-Bd1pbmjJ.js","./shorten-label-DC9lls-_.js","./status-IieMMby4.js","./CardContent-DFEMxexG.js","./Add-Cj1GwkKW.js","./CallMerge-XaiMaWvF.js","./toLower-Lpm_cWIY.js","./use-mobile-DxoBGZ2C.js","./util-bCRieQtS.js","./is-path-prefix-equal-DRNfC8G7.js","./index-D26anpmw.js","./preference-BGjmFkam.js","./index-D2OWAIQe.js","./iframe-BpVmcJc3.js","./ChevronRight-BsKgMnVp.js","./index-DYWnnieF.js","./Done-CKe-FMOo.js","./chain-z6EbQN66.js","./ArrowDropDown-D5mGNR03.js","./ButtonGroup-CcLHnhC4.js","./getValidReactChildren-4Syslwwk.js","./Autocomplete-DuiLMv1o.js","./ListSubheader-eUJyCt4T.js","./Public-EAyGtHHi.js","./index-C-czX6v8.js","./index.esm-CTLBmkxs.js","./index-H9fm7up4.js","./emotion-react.browser.esm-BDvH2bbh.js","./ViewColumn-Dug72V0B.js","./Search-DQ4Y1c5N.js","./Clear-CBus3YPN.js","./MoreVert-61JL59bH.js","./TableSearch-CvOwepTo.js","./switch-control-BVU_Ad4A.js","./Slider-BQJhsQiK.js","./index-DCBVsLjA.js","./index-D_BatJpF.js","./index-foZCwT8M.css","./use-mobile-BXuu7nKS.js","./simple-select-Clgdh8XE.js","./actions-D7wsLSGA.js","./useLocalStorage-BGufc8fE.js","./get-safe-url-GbVPhyM0.js","./refType-DNRqRWnN.js","./CSSTransition-D-xj_lEW.js","./appearance-BKpK01va.js","./config-navigation-BRr3prTj.js","./cloneDeep-B3IuXkH6.js","./index-BfuK1c3U.js","./_createAggregator-Z9y-nGZg.js","./raf-schd.esm-DTLWr85K.js","./resource-dialog-D7lp-mt5.js","./index-DbvvMLGP.js","./ListItemButton-Cd6Uq-Ac.js","./index-BWheHxyB.js","./index-BnuJug5D.js","./index-BJHGOv7L.js","./index-DYUzMTeE.js","./index-BbjbAT2O.js","./Refresh-2FBzb_uQ.js","./traffic-MRoWejWm.js","./ChevronLeft-DHpx84Q3.js","./index-CJa6ovU3.js","./AdapterDayjs-CvCGckYL.js","./audit-logs-DaG555bS.js","./index-B0AqZtHc.js","./index-C0Iiqot3.css","./index-9mb4i7nG.js","./LockIcon-CiguMpNN.js","./list-header-oP6EeMA1.js","./ToggleButtonGroup-ClJp8lmK.js","./index-CSrSFpxe.js","./ViewList-BG98kh5u.js","./Verified-tGi6fe3F.js","./DeleteOutline-BZ3_z3iH.js","./service-CO3-2J05.js","./table-icons-ChFb7Y_c.js","./Edit-K2_xM3YP.js","./index-Cl-3FJwO.js","./Link-BQNrDjfd.js","./item-Bnt9TARz.js","./index-CCqOp-Za.js","./Launch-DbAaLLdn.js","./item-D-IRi6XF.css","./index-BlbHoShU.js","./url-join-KcJhtet-.js","./Close-Ce-e8gYh.js","./connect-to-Cs0EUT4S.js","./agreement-D_pxcKSB.js","./install-from-url-BavWqY0O.js","./schema-B5lLDdwS.js","./Stepper-zGEKMQJb.js","./toUpper-wYFatpjb.js","./log-ObTZchhD.js","./download-DSqZegJ2.js","./download-D33dFtt_.css","./runtime-h-JvCmOV.js","./memory-C0a7I4et.js","./index-C_qvrHaT.js","./index-Bp2gRuoi.js","./index-CULZ0mkF.js","./Delete-DfBIMsYZ.js"])))=>i.map(i=>d[i]);
2
+ import{m as qe,bq as jt,r as b,A as F,j as p,X as Qe,M as ee,B as Ge,v as Pt,bA as At,H as T,y as X,Y as We,bn as Ke,bB as I,x as Dt,u as Ot,bC as Lt,bD as Bt,bE as W,bF as Rt,Z as Oe,C as Le,J as Mt,bG as Nt,k as fe,K as Ft,n as Vt,bH as zt}from"./index-BScCZen8.js";import{T as $t}from"./index-DYWnnieF.js";import{B as Ut}from"./status-IieMMby4.js";import{D as Ht,B as qt}from"./actions-D7wsLSGA.js";import{u as Qt}from"./blocklet-Dj2klNma.js";import{u as Je}from"./session--KhzErQz.js";import{R as Gt}from"./index-DbvvMLGP.js";import{B as Wt,a as Kt,T as Jt}from"./team-D9geX5Dv.js";import{P as Xt}from"./permission-qJMVgxZB.js";import{B as Yt}from"./Breadcrumbs-C2dg7iJH.js";import"./url-evaluation-Dkim9UU-.js";import"./useLocalStorage-BGufc8fE.js";import"./MoreVert-61JL59bH.js";import"./Delete-E4y6t1JP.js";import"./get-safe-url-GbVPhyM0.js";import"./ButtonGroup-CcLHnhC4.js";import"./getValidReactChildren-4Syslwwk.js";/**
3
3
  * (c) Iconify
4
4
  *
5
5
  * For the full copyright and license information, please view the license.txt or license.gpl.txt
@@ -9,7 +9,7 @@ import{m as qe,bq as jt,r as b,A as F,j as p,X as Qe,M as ee,B as Ge,v as Pt,bA
9
9
  *
10
10
  * @license MIT
11
11
  * @version 3.1.1
12
- */const Xe=Object.freeze({left:0,top:0,width:16,height:16}),te=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),H=Object.freeze({...Xe,...te}),he=Object.freeze({...H,body:"",hidden:!1});function Zt(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}function Be(e,t){const n=Zt(e,t);for(const o in he)o in te?o in e&&!(o in n)&&(n[o]=te[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function en(e,t){const n=e.icons,o=e.aliases||Object.create(null),r=Object.create(null);function s(i){if(n[i])return r[i]=[];if(!(i in r)){r[i]=null;const c=o[i]&&o[i].parent,l=c&&s(c);l&&(r[i]=[c].concat(l))}return r[i]}return Object.keys(n).concat(Object.keys(o)).forEach(s),r}function tn(e,t,n){const o=e.icons,r=e.aliases||Object.create(null);let s={};function i(c){s=Be(o[c]||r[c],s)}return i(t),n.forEach(i),Be(e,s)}function nn(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(r=>{t(r,null),n.push(r)});const o=en(e);for(const r in o){const s=o[r];s&&(t(r,tn(e,r,s)),n.push(r))}return n}const V=/^[a-z0-9]+(-[a-z0-9]+)*$/,R=(e,t,n,o="")=>{const r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const c=r.pop(),l=r.pop(),a={provider:r.length>0?r[0]:o,prefix:l,name:c};return t&&!Y(a)?null:a}const s=r[0],i=s.split("-");if(i.length>1){const c={provider:o,prefix:i.shift(),name:i.join("-")};return t&&!Y(c)?null:c}if(n&&o===""){const c={provider:o,prefix:"",name:s};return t&&!Y(c,n)?null:c}return null},Y=(e,t)=>e?!!((e.provider===""||e.provider.match(V))&&(t&&e.prefix===""||e.prefix.match(V))&&e.name.match(V)):!1,on={provider:"",aliases:{},not_found:{},...Xe};function de(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function rn(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!de(e,on))return null;const n=t.icons;for(const r in n){const s=n[r];if(!r.match(V)||typeof s.body!="string"||!de(s,he))return null}const o=t.aliases||Object.create(null);for(const r in o){const s=o[r],i=s.parent;if(!r.match(V)||typeof i!="string"||!n[i]&&!o[i]||!de(s,he))return null}return t}const ne=Object.create(null);function sn(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function C(e,t){const n=ne[e]||(ne[e]=Object.create(null));return n[t]||(n[t]=sn(e,t))}function _e(e,t){return rn(t)?nn(t,(n,o)=>{o?e.icons[n]=o:e.missing.add(n)}):[]}function cn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function an(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(ne)).forEach(r=>{(typeof r=="string"&&typeof t=="string"?[t]:Object.keys(ne[r]||{})).forEach(i=>{const c=C(r,i);n=n.concat(Object.keys(c.icons).map(l=>(r!==""?"@"+r+":":"")+i+":"+l))})}),n}let Ce=!1;function ln(e){return Ce}function q(e){const t=typeof e=="string"?R(e,!0,Ce):e;if(t){const n=C(t.provider,t.prefix),o=t.name;return n.icons[o]||(n.missing.has(o)?null:void 0)}}function un(e,t){const n=R(e,!0,Ce);if(!n)return!1;const o=C(n.provider,n.prefix);return cn(o,n.name,t)}function Ye(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!Y({provider:t,prefix:n,name:"a"}))return!1;const o=C(t,n);return!!_e(o,e)}function fn(e){return!!q(e)}function dn(e){const t=q(e);return t?{...H,...t}:null}const Ze=Object.freeze({width:null,height:null}),et=Object.freeze({...Ze,...te}),pn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,mn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ge(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const o=e.split(pn);if(o===null||!o.length)return e;const r=[];let s=o.shift(),i=mn.test(s);for(;;){if(i){const c=parseFloat(s);isNaN(c)?r.push(s):r.push(Math.ceil(c*t*n)/n)}else r.push(s);if(s=o.shift(),s===void 0)return r.join("");i=!i}}const hn=e=>e==="unset"||e==="undefined"||e==="none";function se(e,t){const n={...H,...e},o={...et,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,o].forEach(g=>{const y=[],E=g.hFlip,L=g.vFlip;let k=g.rotate;E?L?k+=2:(y.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),y.push("scale(-1 1)"),r.top=r.left=0):L&&(y.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),y.push("scale(1 -1)"),r.top=r.left=0);let x;switch(k<0&&(k-=Math.floor(k/4)*4),k=k%4,k){case 1:x=r.height/2+r.top,y.unshift("rotate(90 "+x.toString()+" "+x.toString()+")");break;case 2:y.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:x=r.width/2+r.left,y.unshift("rotate(-90 "+x.toString()+" "+x.toString()+")");break}k%2===1&&(r.left!==r.top&&(x=r.left,r.left=r.top,r.top=x),r.width!==r.height&&(x=r.width,r.width=r.height,r.height=x)),y.length&&(s='<g transform="'+y.join(" ")+'">'+s+"</g>")});const i=o.width,c=o.height,l=r.width,a=r.height;let u,f;i===null?(f=c===null?"1em":c==="auto"?a:c,u=ge(f,l/a)):(u=i==="auto"?l:i,f=c===null?ge(u,a/l):c==="auto"?a:c);const d={},h=(g,y)=>{hn(y)||(d[g]=y.toString())};return h("width",u),h("height",f),d.viewBox=r.left.toString()+" "+r.top.toString()+" "+l.toString()+" "+a.toString(),{attributes:d,body:s}}const gn=/\sid="(\S+)"/g,bn="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let yn=0;function tt(e,t=bn){const n=[];let o;for(;o=gn.exec(e);)n.push(o[1]);if(!n.length)return e;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(yn++).toString(),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+r+"$3")}),e=e.replace(new RegExp(r,"g"),""),e}const D={local:!0,session:!0},nt={local:new Set,session:new Set};let Te=!1;function vn(e){Te=e}const Re="iconify2",U="iconify",ot=U+"-count",Me=U+"-version",rt=36e5,xn=168;function be(e,t){try{return e.getItem(t)}catch{}}function je(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Ne(e,t){try{e.removeItem(t)}catch{}}function ye(e,t){return je(e,ot,t.toString())}function ve(e){return parseInt(be(e,ot))||0}let K=typeof window>"u"?{}:window;function st(e){const t=e+"Storage";try{if(K&&K[t]&&typeof K[t].length=="number")return K[t]}catch{}D[e]=!1}function it(e,t){const n=st(e);if(!n)return;const o=be(n,Me);if(o!==Re){if(o){const c=ve(n);for(let l=0;l<c;l++)Ne(n,U+l.toString())}je(n,Me,Re),ye(n,0);return}const r=Math.floor(Date.now()/rt)-xn,s=c=>{const l=U+c.toString(),a=be(n,l);if(typeof a=="string"){try{const u=JSON.parse(a);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>r&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}Ne(n,l)}};let i=ve(n);for(let c=i-1;c>=0;c--)s(c)||(c===i-1?(i--,ye(n,i)):nt[e].add(c))}function ct(){if(!Te){vn(!0);for(const e in D)it(e,t=>{const n=t.data,o=t.provider,r=n.prefix,s=C(o,r);if(!_e(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function at(e,t){switch(e){case"local":case"session":D[e]=t;break;case"all":for(const n in D)D[n]=t;break}}const xe=Object.create(null);function lt(e,t){xe[e]=t}function we(e){return xe[e]||xe[""]}function Pe(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,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 ie=Object.create(null),N=["https://api.simplesvg.com","https://api.unisvg.com"],Z=[];for(;N.length>0;)N.length===1||Math.random()>.5?Z.push(N.shift()):Z.push(N.pop());ie[""]=Pe({resources:["https://api.iconify.design"].concat(Z)});function ut(e,t){const n=Pe(t);return n===null?!1:(ie[e]=n,!0)}function ce(e){return ie[e]}function wn(){return Object.keys(ie)}const Sn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let oe=Sn();function In(e){oe=e}function kn(){return oe}function En(e,t){const n=ce(e);if(!n)return 0;let o;if(!n.maxURL)o=0;else{let r=0;n.resources.forEach(i=>{r=Math.max(r,i.length)});const s=t+".json?icons=";o=n.maxURL-r-n.path.length-s.length}return o}function _n(e){return e===404}const Cn=(e,t,n)=>{const o=[],r=En(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,a)=>{c+=l.length+1,c>=r&&a>0&&(o.push(i),i={type:s,provider:e,prefix:t,icons:[]},c=l.length),i.icons.push(l)}),o.push(i),o};function Tn(e){if(typeof e=="string"){const t=ce(e);if(t)return t.path}return"/"}const jn=(e,t,n)=>{if(!oe){n("abort",424);return}let o=Tn(t.provider);switch(t.type){case"icons":{const s=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});o+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;o+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let r=503;oe(e+o).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(_n(i)?"abort":"next",i)});return}return r=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",r)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",r)})},Pn={prepare:Cn,send:jn};function An(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((r,s)=>r.provider!==s.provider?r.provider.localeCompare(s.provider):r.prefix!==s.prefix?r.prefix.localeCompare(s.prefix):r.name.localeCompare(s.name));let o={provider:"",prefix:"",name:""};return e.forEach(r=>{if(o.name===r.name&&o.prefix===r.prefix&&o.provider===r.provider)return;o=r;const s=r.provider,i=r.prefix,c=r.name,l=n[s]||(n[s]=Object.create(null)),a=l[i]||(l[i]=C(s,i));let u;c in a.icons?u=t.loaded:i===""||a.missing.has(c)?u=t.missing:u=t.pending;const f={provider:s,prefix:i,name:c};u.push(f)}),t}function ft(e,t){e.forEach(n=>{const o=n.loaderCallbacks;o&&(n.loaderCallbacks=o.filter(r=>r.id!==t))})}function Dn(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,r=e.prefix;t.forEach(s=>{const i=s.icons,c=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==r)return!0;const a=l.name;if(e.icons[a])i.loaded.push({provider:o,prefix:r,name:a});else if(e.missing.has(a))i.missing.push({provider:o,prefix:r,name:a});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||ft([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let On=0;function Ln(e,t,n){const o=On++,r=ft.bind(null,n,o);if(!t.pending.length)return r;const s={id:o,icons:t,callback:e,abort:r};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),r}function Bn(e,t=!0,n=!1){const o=[];return e.forEach(r=>{const s=typeof r=="string"?R(r,t,n):r;s&&o.push(s)}),o}var Rn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Mn(e,t,n,o){const r=e.resources.length,s=e.random?Math.floor(Math.random()*r):e.index;let i;if(e.random){let m=e.resources.slice(0);for(i=[];m.length>1;){const S=Math.floor(Math.random()*m.length);i.push(m[S]),m=m.slice(0,S).concat(m.slice(S+1))}i=i.concat(m)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const c=Date.now();let l="pending",a=0,u,f=null,d=[],h=[];typeof o=="function"&&h.push(o);function g(){f&&(clearTimeout(f),f=null)}function y(){l==="pending"&&(l="aborted"),g(),d.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),d=[]}function E(m,S){S&&(h=[]),typeof m=="function"&&h.push(m)}function L(){return{startTime:c,payload:t,status:l,queriesSent:a,queriesPending:d.length,subscribe:E,abort:y}}function k(){l="failed",h.forEach(m=>{m(void 0,u)})}function x(){d.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),d=[]}function w(m,S,P){const A=S!=="success";switch(d=d.filter(_=>_!==m),l){case"pending":break;case"failed":if(A||!e.dataAfterTimeout)return;break;default:return}if(S==="abort"){u=P,k();return}if(A){u=P,d.length||(i.length?M():k());return}if(g(),x(),!e.random){const _=e.resources.indexOf(m.resource);_!==-1&&_!==e.index&&(e.index=_)}l="completed",h.forEach(_=>{_(P)})}function M(){if(l!=="pending")return;g();const m=i.shift();if(m===void 0){if(d.length){f=setTimeout(()=>{g(),l==="pending"&&(x(),k())},e.timeout);return}k();return}const S={status:"pending",resource:m,callback:(P,A)=>{w(S,P,A)}};d.push(S),a++,f=setTimeout(M,e.rotate),n(m,t,S.callback)}return setTimeout(M),L}function dt(e){const t={...Rn,...e};let n=[];function o(){n=n.filter(c=>c().status==="pending")}function r(c,l,a){const u=Mn(t,c,l,(f,d)=>{o(),a&&a(f,d)});return n.push(u),u}function s(c){return n.find(l=>c(l))||null}return{query:r,find:s,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:o}}function Fe(){}const pe=Object.create(null);function Nn(e){if(!pe[e]){const t=ce(e);if(!t)return;const n=dt(t),o={config:t,redundancy:n};pe[e]=o}return pe[e]}function pt(e,t,n){let o,r;if(typeof e=="string"){const s=we(e);if(!s)return n(void 0,424),Fe;r=s.send;const i=Nn(e);i&&(o=i.redundancy)}else{const s=Pe(e);if(s){o=dt(s);const i=e.resources?e.resources[0]:"",c=we(i);c&&(r=c.send)}}return!o||!r?(n(void 0,424),Fe):o.query(t,r,n)().abort}function Fn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const o in D)it(o,r=>{const s=r.data;return r.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Vn(e,t){Te||ct();function n(o){let r;if(!D[o]||!(r=st(o)))return;const s=nt[o];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=ve(r),!ye(r,i+1))return;const c={cached:Math.floor(Date.now()/rt),provider:e.provider,data:t};return je(r,U+i.toString(),JSON.stringify(c))}t.lastModified&&!Fn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Ve(){}function zn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Dn(e)}))}function $n(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:o}=e,r=e.iconsToLoad;delete e.iconsToLoad;let s;if(!r||!(s=we(n)))return;s.prepare(n,o,r).forEach(c=>{pt(n,c,l=>{if(typeof l!="object")c.icons.forEach(a=>{e.missing.add(a)});else try{const a=_e(e,l);if(!a.length)return;const u=e.pendingIcons;u&&a.forEach(f=>{u.delete(f)}),Vn(e,l)}catch(a){console.error(a)}zn(e)})})}))}const Un=e=>{const n=C(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},Ae=(e,t)=>{const n=Bn(e,!0,ln()),o=An(n);if(!o.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(o.loaded,o.missing,o.pending,Ve)}),()=>{l=!1}}const r=Object.create(null),s=[];let i,c;return o.pending.forEach(l=>{const{provider:a,prefix:u}=l;if(u===c&&a===i)return;i=a,c=u,s.push(C(a,u));const f=r[a]||(r[a]=Object.create(null));f[u]||(f[u]=[])}),o.pending.forEach(l=>{const{provider:a,prefix:u,name:f}=l,d=C(a,u),h=d.pendingIcons||(d.pendingIcons=new Set);h.has(f)||(h.add(f),r[a][u].push(f))}),s.forEach(l=>{const{provider:a,prefix:u}=l;r[a][u].length&&$n(l,r[a][u])}),t?Ln(t,o,s):Ve},Hn=e=>new Promise((t,n)=>{const o=typeof e=="string"?R(e,!0):e;if(!o){n(e);return}Ae([o||e],r=>{if(r.length&&o){const s=q(o);if(s){t({...H,...s});return}}n(e)})});function mt(e,t){const n={...e};for(const o in t){const r=t[o],s=typeof r;o in Ze?(r===null||r&&(s==="string"||s==="number"))&&(n[o]=r):s===typeof n[o]&&(n[o]=o==="rotate"?r%4:r)}return n}const ae={...et,inline:!1},me="iconify",Se="iconify-inline",j="iconifyData"+Date.now();let O=[];function Q(e){for(let t=0;t<O.length;t++){const n=O[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function ht(e,t=!1){let n=Q(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},O.push(n),n)}function qn(){if(document.documentElement)return ht(document.documentElement);O.push({node:()=>document.documentElement})}function Qn(e){O=O.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function G(){return O}function Gn(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let z=null;const Wn={childList:!0,subtree:!0,attributes:!0};function gt(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,z&&z(e)}))}function Kn(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let o=0;o<t.length;o++){const r=t[o];if(r.addedNodes&&r.addedNodes.length>0||r.type==="attributes"&&r.target[j]!==void 0){n.paused||gt(e);return}}}function bt(e,t){e.observer.instance.observe(t,Wn)}function re(e){let t=e.observer;if(t&&t.instance)return;const n=typeof e.node=="function"?e.node():e.node;!n||!window||(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(Kn.bind(null,e)),bt(e,n),t.paused||gt(e))}function ze(){G().forEach(re)}function yt(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function Jn(e){const t=z!==null;if(z!==e&&(z=e,t&&G().forEach(yt)),t){ze();return}Gn(ze)}function Ie(e){(e?[e]:G()).forEach(t=>{if(!t.observer){t.observer={paused:1};return}const n=t.observer;if(n.paused++,n.paused>1||!n.instance)return;n.instance.disconnect()})}function Xn(e){if(e){const t=Q(e);t&&Ie(t)}else Ie()}function ke(e){(e?[e]:G()).forEach(t=>{if(!t.observer){re(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const o=typeof t.node=="function"?t.node():t.node;if(o)n.instance?bt(t,o):re(t);else return}})}function Yn(e){if(e){const t=Q(e);t&&ke(t)}else ke()}function vt(e,t=!1){const n=ht(e,t);return re(n),n}function xt(e){const t=Q(e);t&&(yt(t),Qn(e))}function Zn(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,o=t.customisations;for(const r in ae)if(n[r]!==o[r])return!0;return!1}function eo(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(r){for(;r<0;)r+=4;return r%4}if(n===""){const r=parseInt(e);return isNaN(r)?0:o(r)}else if(n!==e){let r=0;switch(n){case"%":r=25;break;case"deg":r=90}if(r){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/r,s%1===0?o(s):0)}}return t}const to=/[\s,]+/;function no(e,t){t.split(to).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const oo=["width","height"],ro=["inline","hFlip","vFlip"];function so(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function io(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&R(t,!0);if(!n)return null;const o={...ae,inline:e.classList&&e.classList.contains(Se)};oo.forEach(c=>{const l=e.getAttribute("data-"+c);l&&(o[c]=l)});const r=e.getAttribute("data-rotate");typeof r=="string"&&(o.rotate=eo(r));const s=e.getAttribute("data-flip");typeof s=="string"&&no(o,s),ro.forEach(c=>{const l="data-"+c,a=so(e.getAttribute(l),l);typeof a=="boolean"&&(o[c]=a)});const i=e.getAttribute("data-mode");return{name:t,icon:n,customisations:o,mode:i}}const co="svg."+me+", i."+me+", span."+me+", i."+Se+", span."+Se;function ao(e){const t=[];return e.querySelectorAll(co).forEach(n=>{const o=n[j]||n.tagName.toLowerCase()!=="svg"?io(n):null;o&&t.push({node:n,props:o})}),t}function wt(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)n+=" "+o+'="'+t[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let $;function lo(){try{$=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{$=null}}function uo(e){return $===void 0&&lo(),$?$.createHTML(e):e}function St(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function It(e,t,n,o){const r=e.classList;if(o){const i=o.classList;Array.from(i).forEach(c=>{r.add(c)})}const s=[];return t.forEach(i=>{r.contains(i)?n.has(i)&&s.push(i):(r.add(i),s.push(i))}),n.forEach(i=>{t.has(i)||r.remove(i)}),s}function kt(e,t,n){const o=e.style;(n||[]).forEach(s=>{o.removeProperty(s)});const r=[];for(const s in t)o.getPropertyValue(s)||(r.push(s),o.setProperty(s,t[s]));return r}function Et(e,t,n){let o;try{o=document.createElement("span")}catch{return e}const r=t.customisations,s=se(n,r),i=e[j],c=wt(tt(s.body),{"aria-hidden":"true",role:"img",...s.attributes});o.innerHTML=uo(c);const l=o.childNodes[0],a=e.attributes;for(let g=0;g<a.length;g++){const y=a.item(g),E=y.name;E!=="class"&&!l.hasAttribute(E)&&l.setAttribute(E,y.value)}const u=St(t.icon),f=It(l,u,new Set(i&&i.addedClasses),e),d=kt(l,r.inline?{"vertical-align":"-0.125em"}:{},i&&i.addedStyles),h={...t,status:"loaded",addedClasses:f,addedStyles:d};return l[j]=h,e.parentNode&&e.parentNode.replaceChild(l,e),l}function fo(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function po(e){return"data:image/svg+xml,"+fo(e)}function mo(e){return'url("'+po(e)+'")'}const ho={display:"inline-block"},Ee={"background-color":"currentColor"},_t={"background-color":"transparent"},$e={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Ue={"-webkit-mask":Ee,mask:Ee,background:_t};for(const e in Ue){const t=Ue[e];for(const n in $e)t[e+"-"+n]=$e[n]}function He(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function go(e,t,n,o){const r=t.customisations,s=se(n,r),i=s.attributes,c=e[j],l=wt(s.body,{...i,width:n.width+"",height:n.height+""}),a=St(t.icon),u=It(e,a,new Set(c&&c.addedClasses)),d={"--svg":mo(l),width:He(i.width),height:He(i.height),...ho,...o?Ee:_t};r.inline&&(d["vertical-align"]="-0.125em");const h=kt(e,d,c&&c.addedStyles),g={...t,status:"loaded",addedClasses:u,addedStyles:h};return e[j]=g,e}let J=!1;function bo(){J||(J=!0,setTimeout(()=>{J&&(J=!1,B())}))}function B(e,t=!1){const n=Object.create(null);function o(r,s){const{provider:i,prefix:c,name:l}=r,a=C(i,c),u=a.icons[l];if(u)return{status:"loaded",icon:u};if(a.missing.has(l))return{status:"missing"};if(s&&!Un(r)){const f=n[i]||(n[i]=Object.create(null));(f[c]||(f[c]=new Set)).add(l)}return{status:"loading"}}(e?[e]:G()).forEach(r=>{const s=typeof r.node=="function"?r.node():r.node;if(!s||!s.querySelectorAll)return;let i=!1,c=!1;function l(a,u,f){if(c||(c=!0,Ie(r)),a.tagName.toUpperCase()!=="SVG"){const d=u.mode,h=d==="mask"||(d==="bg"?!1:d==="style"?f.body.indexOf("currentColor")!==-1:null);if(typeof h=="boolean"){go(a,u,{...H,...f},h);return}}Et(a,u,f)}ao(s).forEach(({node:a,props:u})=>{const f=a[j];if(!f){const{status:h,icon:g}=o(u.icon,!0);if(g){l(a,u,g);return}i=i||h==="loading",a[j]={...u,status:h};return}let d;if(Zn(f,u)){if(d=o(u.icon,f.name!==u.name),!d.icon){i=i||d.status==="loading",Object.assign(f,{...u,status:d.status});return}}else{if(f.status!=="loading")return;if(d=o(u.icon,!1),!d.icon){f.status=d.status;return}}l(a,u,d.icon)}),r.temporary&&!i?xt(s):t&&i?vt(s,!0):c&&r.observer&&ke(r)});for(const r in n){const s=n[r];for(const i in s){const c=s[i];Ae(Array.from(c).map(l=>({provider:r,prefix:i,name:l})),bo)}}}function yo(e){const t=Q(e);t?B(t):B({node:e,temporary:!0},!0)}function Ct(e,t,n=!1){const o=q(e);if(!o)return null;const r=R(e),s=mt(ae,t||{}),i=Et(document.createElement("span"),{name:e,icon:r,customisations:s},o);return n?i.outerHTML:i}function vo(){return"3.1.1"}function xo(e,t){return Ct(e,t,!1)}function wo(e,t){return Ct(e,t,!0)}function So(e,t){const n=q(e);if(!n)return null;const o=mt(ae,t||{});return se(n,o)}function Io(e){e?yo(e):B()}if(typeof document<"u"&&typeof window<"u"){qn();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="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"||!Ye(o))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{Jn(B),B()})}function ko(e,t){at(e,t!==!1)}function Eo(e){at(e,!0)}lt("",Pn);if(typeof document<"u"&&typeof window<"u"){ct();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const o="IconifyProviders["+n+"] is invalid.";try{const r=t[n];if(typeof r!="object"||!r||r.resources===void 0)continue;ut(n,r)||console.error(o)}catch{console.error(o)}}}}const _o={getAPIConfig:ce,setAPIModule:lt,sendAPIQuery:pt,setFetch:In,getFetch:kn,listAPIProviders:wn},Co={_api:_o,addAPIProvider:ut,loadIcons:Ae,loadIcon:Hn,iconExists:fn,getIcon:dn,listIcons:an,addIcon:un,addCollection:Ye,replaceIDs:tt,calculateSize:ge,buildIcon:se,getVersion:vo,renderSVG:xo,renderHTML:wo,renderIcon:So,scan:Io,observe:vt,stopObserving:xt,pauseObserver:Xn,resumeObserver:Yn,enableCache:ko,disableCache:Eo};try{self.Iconify===void 0&&(self.Iconify=Co)}catch{}const To=e=>{const t={};let n=null;return T.forEachBlockletSync(e,o=>{t[o.meta.bundleDid]?n=T.getDisplayName(o,!0):o.meta.bundleDid&&(t[o.meta.bundleDid]=!0)}),n},jo=(e,t,n)=>{var s;const{hostname:o,href:r}=e;if(!t)return r;if(n){const c=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(o);if(!c)return r;const l=c[0],u=((((s=t.site)==null?void 0:s.domainAliases)||[]).map(f=>f.value).filter(Boolean).find(f=>f.endsWith(F.DEFAULT_DID_DOMAIN))||"").replace(`.${F.DEFAULT_DID_DOMAIN}`,"");return u?r.replace(o,`${u}-${l}.${F.DEFAULT_IP_DOMAIN_SUFFIX}`):r}return r.replace(t.meta.bundleDid,t.appPid)};function Tt(){const{t:e}=qe(),{api:t}=Je(),{blocklet:n}=Qt(),{inService:o}=jt(),[r,s]=b.useState(!1),[i,c]=b.useState(5),l=n&&n.structVersion!==F.APP_STRUCT_VERSION,a=()=>{try{if(n.status==="running"){X.error(e("blocklet.migrate.tip.running"));return}const d=To(n);if(d){X.error(e("blocklet.migrate.tip.duplicate",{name:d}));return}s(!0)}catch(d){X.error(We(d))}},u=()=>{const d=jo(window.location,n,o);setTimeout(()=>{window.location.href=d},5e3),c(5),setInterval(()=>{c(h=>h-1)},1e3)},f=()=>s(!1);return[l&&p.jsxs(Qe,{severity:"warning",style:{margin:"12px 0"},children:[p.jsxs(ee,{display:"flex",alignItems:"center",children:[p.jsx(Ge,{variant:"contained",size:"small",color:"primary",onClick:()=>a(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),p.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(d=>p.jsx(ee,{display:"flex",alignItems:"center",children:e(`blocklet.migrate.intro.${d}`)},d))]},"alert"),n&&p.jsx(Pt,{popup:!0,open:r,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:5*60*1e3,onSuccess:u,extraParams:{appDid:n.appDid,did:n.meta.did,wt:At(n,!0),title:T.getDisplayName(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:i>=0?e("blocklet.migrate.success",{sec:i}):"Redirecting..."},onClose:f},"connect")]}Tt.propTypes={};const Po=b.lazy(()=>I(()=>import("./overview-4A1WnWrw.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url)),Ao=b.lazy(()=>I(()=>import("./domains-B3cNb2Aw.js"),__vite__mapDeps([15,1,2,16,5,17,18,19,20,10,21,22,23,24,25,26,27,28,29,12,30,31,32,33,34,9,35,36]),import.meta.url)),Do=b.lazy(()=>I(()=>import("./index-CzB8vcqG.js"),__vite__mapDeps([37,1,2,38,39,40,41,42,21,22,5,43,44,45,46,47,48,49,50,10,27,11,12,9,4,6,7,51,52,16,53,19,54,55,56,57,23,58,59,60,31,61,62,63,64,65,66,67,68,69,70,71,30]),import.meta.url)),Oo=b.lazy(()=>I(()=>import("./appearance-CYge78ns.js"),__vite__mapDeps([72,1,2,10]),import.meta.url)),Lo=b.lazy(()=>I(()=>import("./config-navigation-D7AslSv5.js"),__vite__mapDeps([73,1,2,7,74,75,76,10,53,19,54,55,56,57,23,16,58,59,77,78,34,42,79,80,81,51,12,82,83,8,3,84,46,47,67,68,69,21,22,52,66,11,45,14,48,49,40,18]),import.meta.url)),Bo=b.lazy(()=>I(()=>import("./index-DXxOMksl.js"),__vite__mapDeps([85,1,2,53,19,54,55,56,57,23,16,58,59,28,9,42,67,68,69,46,47,12,21,22,86,87,40,88,41,89,30,90,71,70]),import.meta.url)),Ro=b.lazy(()=>I(()=>import("./audit-logs-DvPq3DKg.js"),__vite__mapDeps([91,16,1,2,59,56,57,68,92,93,28,11,10,12]),import.meta.url)),Mo=b.lazy(()=>I(()=>import("./index-B-XvEBt5.js").then(e=>e.i),__vite__mapDeps([94,1,2,53,19,54,55,56,57,23,16,58,59,42,11,10,12,84,46,47,21,22,95,74,31,44,96,97]),import.meta.url)),No=b.lazy(()=>I(()=>import("./index-D9Y4XTdQ.js").then(e=>e.i),__vite__mapDeps([98,1,2,31,99,53,19,54,55,56,57,23,16,58,59,78,34,42,79,80,81,51,12,82,83,8,3,84,46,47,11,10,21,22,27,90,71,70,9,100,101,6,24,25,28]),import.meta.url)),Fo=b.lazy(()=>I(()=>import("./service-CaVokZ0Y.js"),__vite__mapDeps([102,1,2,103,77,89,55,71,42,31,23,57,104,41,88,56,45]),import.meta.url)),Vo=b.lazy(()=>I(()=>import("./index-CO3XBdns.js"),__vite__mapDeps([105,1,2,31,16,67,68,58,23,69,46,47,12,21,22,60,51,10,104,103,77,89,55,71,42,57,41,88,56,45,27,106,107,108,48,49,100,17,109,43,101,26,28,110,111,112,113,114,82,83,8,3,84,13,14,115,92,93,38,39,40,95,74,116,117,75,9,80,118,35,36,65,29,24,25,119,11]),import.meta.url)),zo=b.lazy(()=>I(()=>import("./log-CaaCrZDx.js"),__vite__mapDeps([120,1,2,68,121,46,47,122,49]),import.meta.url)),$o=b.lazy(()=>I(()=>import("./runtime-Dlt-Nkw4.js"),__vite__mapDeps([123,1,2,53,19,54,55,56,57,23,16,58,59,10,83,124,125,29,12,97,47]),import.meta.url)),Uo=b.lazy(()=>I(()=>import("./traffic-BVDBAzGe.js").then(e=>e.t),__vite__mapDeps([87,1,2,40,88,41,89,30,90,19,71,70]),import.meta.url)),Ho=b.lazy(()=>I(()=>import("./index-vvJGfld4.js"),__vite__mapDeps([126,1,2,42,10,65,82,83,8,3,84,46,47,14,114,13,101,9,125,53,19,54,55,56,57,23,16,58,59,25,67,68,69,12,21,22,60,51,96]),import.meta.url)),qo=b.lazy(()=>I(()=>import("./index-DVCjSXXQ.js"),__vite__mapDeps([127,53,1,2,19,54,55,56,57,23,16,58,59,11,10,12,52,63,64,108,49,113,24,25,128]),import.meta.url)),Qo=({children:e})=>e;function Go(){var A,_,De;const e=Dt(),{tab:t="overview"}=Ke(),{did:n,blocklet:o,error:r,client:s,actions:{setBlocklet:i,refreshBlocklet:c}}=Kt(),{refresh:l}=Ot(),{t:a}=qe(),{session:u}=Je(),f=Lt(()=>{var v;return((v=u.user)==null?void 0:v.role)&&Bt.includes(u.user.role)},[u]),d=b.useCallback(()=>p.jsx(Ro,{scope:n}),[n]),h=b.useCallback(()=>f?p.jsx(Bo,{blocklet:o}):p.jsx(Gt,{status:403}),[o,f]),g=((A=o==null?void 0:o.environments.find(v=>v.key==="BLOCKLET_APP_URL"))==null?void 0:A.value)||window.location.origin,y=v=>zt(v,g),E=v=>{e(`/blocklets/${n}/${v}`)},L=v=>{v&&i(v),c()},k=!o||W(o.status)?[]:T.getAppMissingConfigs(o);let x=null;const w=[{label:a("common.overview"),value:"overview"},{breadcrumbsLabel:a("common.components"),label:p.jsx(Rt,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!k.length,children:a("common.components")}),value:"components"}];if(r)x=p.jsxs(p.Fragment,{children:[p.jsx(Qe,{severity:"error",variant:"icon",children:We(r)}),p.jsx(Ge,{onClick:()=>c(),children:p.jsx("span",{style:{textDecoration:"underline"},children:a("common.retry")})})]});else if(o){const v={overview:p.jsx(Po,{}),domains:p.jsx(Ao,{}),configuration:Do,appearance:Oo,navigation:Lo,services:Fo,members:p.jsx(No,{type:"blocklet",createPassportSvg:y}),passports:Mo,components:Vo,"audit-logs":d,notifications:h,logs:zo,runtime:p.jsx($o,{}),traffic:p.jsx(Uo,{client:s,did:n}),didSpaces:p.jsx(Ho,{}),webhooks:p.jsx(qo,{})};t==="configuration"&&W(o.status)&&E("overview"),w.push({label:a("common.domains"),value:"domains"}),W(o.status)||(w.push({label:a("common.members"),value:"members"}),w.push({label:a("team.member.passports"),value:"passports"})),W(o.status)||(w.push({label:a("common.configuration"),value:"configuration"}),w.push({label:a("common.appearance"),value:"appearance"})),w.push({label:a("common.auditLogs"),value:"audit-logs"}),f&&w.push({label:a("common.notificationRecords"),value:"notifications"}),o&&((_=o.children)!=null&&_.length)&&o.structVersion===F.APP_STRUCT_VERSION&&w.push({label:a("common.logs"),value:"logs"}),w.push({label:a("common.configNavigation"),value:"navigation"}),w.push({label:a("common.runtime"),value:"runtime"}),w.push({label:a("common.traffic"),value:"traffic"}),w.push({label:a("storage.spaces.title"),value:"didSpaces"}),["admin","owner"].includes((De=u.user)==null?void 0:De.role)&&w.push({label:"Webhooks",value:"webhooks"}),T.getBlockletServices(o).length&&w.splice(2,0,{label:a("blocklet.services"),value:"services"});const ue=v[t]||v.overview;x=p.jsxs(Ht,{type:"components",children:[!T.isExternalBlocklet(o)&&p.jsx($t,{tabs:w,current:t,onChange:E,scrollButtons:"auto"}),p.jsx("div",{className:"page-content",children:p.jsx(b.Suspense,{fallback:p.jsx(Oe,{relative:"parent",children:p.jsx(Le,{})}),children:b.isValidElement(ue)?ue:p.jsx(ue,{blocklet:o,onUpdate:L,createPassportSvg:y})})})]})}else x=p.jsx(Oe,{relative:"parent",children:p.jsx(Le,{})});const M=()=>{},m=({action:v,error:le})=>{if(le){X.error(le.message);return}v==="remove"?(l(),e("/blocklets")):c()},S=w.find(v=>v.value===t),P=o?Jt:Qo;return p.jsx(P,{teamDid:n,children:p.jsxs(Wo,{children:[p.jsxs(Yt,{separator:"›","aria-label":"breadcrumb",className:"page-breadcrumb",children:[p.jsx(Mt,{color:"textSecondary",to:"/blocklets",children:a("common.blocklets")}),p.jsx(Nt,{to:`/blocklets/${n}/overview`,style:v=>v?{color:"inherit"}:{},children:a("common.detail")}),p.jsx(fe,{color:"textSecondary",children:S?S.breadcrumbsLabel||S.label:""})]}),p.jsxs(fe,{component:"div",className:"page-header",children:[p.jsxs(fe,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[o?p.jsx(Ft,{blocklet:o,style:{marginRight:16}}):null,o?p.jsxs(ee,{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,children:[p.jsx(ee,{children:T.getDisplayName(o)}),(o==null?void 0:o.status)!=="unknown"&&p.jsx(Ut,{size:"12px",status:o.status,source:o.source,progress:o.progress})]}):`${a("common.blocklet")} ${a("common.detail")}`]}),p.jsx(Xt,{permission:"mutate_blocklets",children:!!o&&!T.isExternalBlocklet(o)&&p.jsx(qt,{className:"page-actions",blocklet:o,onStart:M,onComplete:m,variant:"group"})})]}),p.jsx(Tt,{}),x]})})}function dr(){const{did:e}=Ke();return e?p.jsx(Wt,{did:e,children:p.jsx(Go,{})}):null}const Wo=Vt.main`
12
+ */const Xe=Object.freeze({left:0,top:0,width:16,height:16}),te=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),H=Object.freeze({...Xe,...te}),he=Object.freeze({...H,body:"",hidden:!1});function Zt(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}function Be(e,t){const n=Zt(e,t);for(const o in he)o in te?o in e&&!(o in n)&&(n[o]=te[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function en(e,t){const n=e.icons,o=e.aliases||Object.create(null),r=Object.create(null);function s(i){if(n[i])return r[i]=[];if(!(i in r)){r[i]=null;const c=o[i]&&o[i].parent,l=c&&s(c);l&&(r[i]=[c].concat(l))}return r[i]}return Object.keys(n).concat(Object.keys(o)).forEach(s),r}function tn(e,t,n){const o=e.icons,r=e.aliases||Object.create(null);let s={};function i(c){s=Be(o[c]||r[c],s)}return i(t),n.forEach(i),Be(e,s)}function nn(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(r=>{t(r,null),n.push(r)});const o=en(e);for(const r in o){const s=o[r];s&&(t(r,tn(e,r,s)),n.push(r))}return n}const V=/^[a-z0-9]+(-[a-z0-9]+)*$/,R=(e,t,n,o="")=>{const r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const c=r.pop(),l=r.pop(),a={provider:r.length>0?r[0]:o,prefix:l,name:c};return t&&!Y(a)?null:a}const s=r[0],i=s.split("-");if(i.length>1){const c={provider:o,prefix:i.shift(),name:i.join("-")};return t&&!Y(c)?null:c}if(n&&o===""){const c={provider:o,prefix:"",name:s};return t&&!Y(c,n)?null:c}return null},Y=(e,t)=>e?!!((e.provider===""||e.provider.match(V))&&(t&&e.prefix===""||e.prefix.match(V))&&e.name.match(V)):!1,on={provider:"",aliases:{},not_found:{},...Xe};function de(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function rn(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!de(e,on))return null;const n=t.icons;for(const r in n){const s=n[r];if(!r.match(V)||typeof s.body!="string"||!de(s,he))return null}const o=t.aliases||Object.create(null);for(const r in o){const s=o[r],i=s.parent;if(!r.match(V)||typeof i!="string"||!n[i]&&!o[i]||!de(s,he))return null}return t}const ne=Object.create(null);function sn(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function C(e,t){const n=ne[e]||(ne[e]=Object.create(null));return n[t]||(n[t]=sn(e,t))}function _e(e,t){return rn(t)?nn(t,(n,o)=>{o?e.icons[n]=o:e.missing.add(n)}):[]}function cn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function an(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(ne)).forEach(r=>{(typeof r=="string"&&typeof t=="string"?[t]:Object.keys(ne[r]||{})).forEach(i=>{const c=C(r,i);n=n.concat(Object.keys(c.icons).map(l=>(r!==""?"@"+r+":":"")+i+":"+l))})}),n}let Ce=!1;function ln(e){return Ce}function q(e){const t=typeof e=="string"?R(e,!0,Ce):e;if(t){const n=C(t.provider,t.prefix),o=t.name;return n.icons[o]||(n.missing.has(o)?null:void 0)}}function un(e,t){const n=R(e,!0,Ce);if(!n)return!1;const o=C(n.provider,n.prefix);return cn(o,n.name,t)}function Ye(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!Y({provider:t,prefix:n,name:"a"}))return!1;const o=C(t,n);return!!_e(o,e)}function fn(e){return!!q(e)}function dn(e){const t=q(e);return t?{...H,...t}:null}const Ze=Object.freeze({width:null,height:null}),et=Object.freeze({...Ze,...te}),pn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,mn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ge(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const o=e.split(pn);if(o===null||!o.length)return e;const r=[];let s=o.shift(),i=mn.test(s);for(;;){if(i){const c=parseFloat(s);isNaN(c)?r.push(s):r.push(Math.ceil(c*t*n)/n)}else r.push(s);if(s=o.shift(),s===void 0)return r.join("");i=!i}}const hn=e=>e==="unset"||e==="undefined"||e==="none";function se(e,t){const n={...H,...e},o={...et,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,o].forEach(g=>{const y=[],E=g.hFlip,L=g.vFlip;let k=g.rotate;E?L?k+=2:(y.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),y.push("scale(-1 1)"),r.top=r.left=0):L&&(y.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),y.push("scale(1 -1)"),r.top=r.left=0);let x;switch(k<0&&(k-=Math.floor(k/4)*4),k=k%4,k){case 1:x=r.height/2+r.top,y.unshift("rotate(90 "+x.toString()+" "+x.toString()+")");break;case 2:y.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:x=r.width/2+r.left,y.unshift("rotate(-90 "+x.toString()+" "+x.toString()+")");break}k%2===1&&(r.left!==r.top&&(x=r.left,r.left=r.top,r.top=x),r.width!==r.height&&(x=r.width,r.width=r.height,r.height=x)),y.length&&(s='<g transform="'+y.join(" ")+'">'+s+"</g>")});const i=o.width,c=o.height,l=r.width,a=r.height;let u,f;i===null?(f=c===null?"1em":c==="auto"?a:c,u=ge(f,l/a)):(u=i==="auto"?l:i,f=c===null?ge(u,a/l):c==="auto"?a:c);const d={},h=(g,y)=>{hn(y)||(d[g]=y.toString())};return h("width",u),h("height",f),d.viewBox=r.left.toString()+" "+r.top.toString()+" "+l.toString()+" "+a.toString(),{attributes:d,body:s}}const gn=/\sid="(\S+)"/g,bn="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let yn=0;function tt(e,t=bn){const n=[];let o;for(;o=gn.exec(e);)n.push(o[1]);if(!n.length)return e;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(yn++).toString(),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+r+"$3")}),e=e.replace(new RegExp(r,"g"),""),e}const D={local:!0,session:!0},nt={local:new Set,session:new Set};let Te=!1;function vn(e){Te=e}const Re="iconify2",U="iconify",ot=U+"-count",Me=U+"-version",rt=36e5,xn=168;function be(e,t){try{return e.getItem(t)}catch{}}function je(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Ne(e,t){try{e.removeItem(t)}catch{}}function ye(e,t){return je(e,ot,t.toString())}function ve(e){return parseInt(be(e,ot))||0}let K=typeof window>"u"?{}:window;function st(e){const t=e+"Storage";try{if(K&&K[t]&&typeof K[t].length=="number")return K[t]}catch{}D[e]=!1}function it(e,t){const n=st(e);if(!n)return;const o=be(n,Me);if(o!==Re){if(o){const c=ve(n);for(let l=0;l<c;l++)Ne(n,U+l.toString())}je(n,Me,Re),ye(n,0);return}const r=Math.floor(Date.now()/rt)-xn,s=c=>{const l=U+c.toString(),a=be(n,l);if(typeof a=="string"){try{const u=JSON.parse(a);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>r&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}Ne(n,l)}};let i=ve(n);for(let c=i-1;c>=0;c--)s(c)||(c===i-1?(i--,ye(n,i)):nt[e].add(c))}function ct(){if(!Te){vn(!0);for(const e in D)it(e,t=>{const n=t.data,o=t.provider,r=n.prefix,s=C(o,r);if(!_e(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function at(e,t){switch(e){case"local":case"session":D[e]=t;break;case"all":for(const n in D)D[n]=t;break}}const xe=Object.create(null);function lt(e,t){xe[e]=t}function we(e){return xe[e]||xe[""]}function Pe(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,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 ie=Object.create(null),N=["https://api.simplesvg.com","https://api.unisvg.com"],Z=[];for(;N.length>0;)N.length===1||Math.random()>.5?Z.push(N.shift()):Z.push(N.pop());ie[""]=Pe({resources:["https://api.iconify.design"].concat(Z)});function ut(e,t){const n=Pe(t);return n===null?!1:(ie[e]=n,!0)}function ce(e){return ie[e]}function wn(){return Object.keys(ie)}const Sn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let oe=Sn();function In(e){oe=e}function kn(){return oe}function En(e,t){const n=ce(e);if(!n)return 0;let o;if(!n.maxURL)o=0;else{let r=0;n.resources.forEach(i=>{r=Math.max(r,i.length)});const s=t+".json?icons=";o=n.maxURL-r-n.path.length-s.length}return o}function _n(e){return e===404}const Cn=(e,t,n)=>{const o=[],r=En(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,a)=>{c+=l.length+1,c>=r&&a>0&&(o.push(i),i={type:s,provider:e,prefix:t,icons:[]},c=l.length),i.icons.push(l)}),o.push(i),o};function Tn(e){if(typeof e=="string"){const t=ce(e);if(t)return t.path}return"/"}const jn=(e,t,n)=>{if(!oe){n("abort",424);return}let o=Tn(t.provider);switch(t.type){case"icons":{const s=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});o+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;o+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let r=503;oe(e+o).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(_n(i)?"abort":"next",i)});return}return r=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",r)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",r)})},Pn={prepare:Cn,send:jn};function An(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((r,s)=>r.provider!==s.provider?r.provider.localeCompare(s.provider):r.prefix!==s.prefix?r.prefix.localeCompare(s.prefix):r.name.localeCompare(s.name));let o={provider:"",prefix:"",name:""};return e.forEach(r=>{if(o.name===r.name&&o.prefix===r.prefix&&o.provider===r.provider)return;o=r;const s=r.provider,i=r.prefix,c=r.name,l=n[s]||(n[s]=Object.create(null)),a=l[i]||(l[i]=C(s,i));let u;c in a.icons?u=t.loaded:i===""||a.missing.has(c)?u=t.missing:u=t.pending;const f={provider:s,prefix:i,name:c};u.push(f)}),t}function ft(e,t){e.forEach(n=>{const o=n.loaderCallbacks;o&&(n.loaderCallbacks=o.filter(r=>r.id!==t))})}function Dn(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,r=e.prefix;t.forEach(s=>{const i=s.icons,c=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==r)return!0;const a=l.name;if(e.icons[a])i.loaded.push({provider:o,prefix:r,name:a});else if(e.missing.has(a))i.missing.push({provider:o,prefix:r,name:a});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||ft([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let On=0;function Ln(e,t,n){const o=On++,r=ft.bind(null,n,o);if(!t.pending.length)return r;const s={id:o,icons:t,callback:e,abort:r};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),r}function Bn(e,t=!0,n=!1){const o=[];return e.forEach(r=>{const s=typeof r=="string"?R(r,t,n):r;s&&o.push(s)}),o}var Rn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Mn(e,t,n,o){const r=e.resources.length,s=e.random?Math.floor(Math.random()*r):e.index;let i;if(e.random){let m=e.resources.slice(0);for(i=[];m.length>1;){const S=Math.floor(Math.random()*m.length);i.push(m[S]),m=m.slice(0,S).concat(m.slice(S+1))}i=i.concat(m)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const c=Date.now();let l="pending",a=0,u,f=null,d=[],h=[];typeof o=="function"&&h.push(o);function g(){f&&(clearTimeout(f),f=null)}function y(){l==="pending"&&(l="aborted"),g(),d.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),d=[]}function E(m,S){S&&(h=[]),typeof m=="function"&&h.push(m)}function L(){return{startTime:c,payload:t,status:l,queriesSent:a,queriesPending:d.length,subscribe:E,abort:y}}function k(){l="failed",h.forEach(m=>{m(void 0,u)})}function x(){d.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),d=[]}function w(m,S,P){const A=S!=="success";switch(d=d.filter(_=>_!==m),l){case"pending":break;case"failed":if(A||!e.dataAfterTimeout)return;break;default:return}if(S==="abort"){u=P,k();return}if(A){u=P,d.length||(i.length?M():k());return}if(g(),x(),!e.random){const _=e.resources.indexOf(m.resource);_!==-1&&_!==e.index&&(e.index=_)}l="completed",h.forEach(_=>{_(P)})}function M(){if(l!=="pending")return;g();const m=i.shift();if(m===void 0){if(d.length){f=setTimeout(()=>{g(),l==="pending"&&(x(),k())},e.timeout);return}k();return}const S={status:"pending",resource:m,callback:(P,A)=>{w(S,P,A)}};d.push(S),a++,f=setTimeout(M,e.rotate),n(m,t,S.callback)}return setTimeout(M),L}function dt(e){const t={...Rn,...e};let n=[];function o(){n=n.filter(c=>c().status==="pending")}function r(c,l,a){const u=Mn(t,c,l,(f,d)=>{o(),a&&a(f,d)});return n.push(u),u}function s(c){return n.find(l=>c(l))||null}return{query:r,find:s,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:o}}function Fe(){}const pe=Object.create(null);function Nn(e){if(!pe[e]){const t=ce(e);if(!t)return;const n=dt(t),o={config:t,redundancy:n};pe[e]=o}return pe[e]}function pt(e,t,n){let o,r;if(typeof e=="string"){const s=we(e);if(!s)return n(void 0,424),Fe;r=s.send;const i=Nn(e);i&&(o=i.redundancy)}else{const s=Pe(e);if(s){o=dt(s);const i=e.resources?e.resources[0]:"",c=we(i);c&&(r=c.send)}}return!o||!r?(n(void 0,424),Fe):o.query(t,r,n)().abort}function Fn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const o in D)it(o,r=>{const s=r.data;return r.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Vn(e,t){Te||ct();function n(o){let r;if(!D[o]||!(r=st(o)))return;const s=nt[o];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=ve(r),!ye(r,i+1))return;const c={cached:Math.floor(Date.now()/rt),provider:e.provider,data:t};return je(r,U+i.toString(),JSON.stringify(c))}t.lastModified&&!Fn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Ve(){}function zn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Dn(e)}))}function $n(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:o}=e,r=e.iconsToLoad;delete e.iconsToLoad;let s;if(!r||!(s=we(n)))return;s.prepare(n,o,r).forEach(c=>{pt(n,c,l=>{if(typeof l!="object")c.icons.forEach(a=>{e.missing.add(a)});else try{const a=_e(e,l);if(!a.length)return;const u=e.pendingIcons;u&&a.forEach(f=>{u.delete(f)}),Vn(e,l)}catch(a){console.error(a)}zn(e)})})}))}const Un=e=>{const n=C(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},Ae=(e,t)=>{const n=Bn(e,!0,ln()),o=An(n);if(!o.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(o.loaded,o.missing,o.pending,Ve)}),()=>{l=!1}}const r=Object.create(null),s=[];let i,c;return o.pending.forEach(l=>{const{provider:a,prefix:u}=l;if(u===c&&a===i)return;i=a,c=u,s.push(C(a,u));const f=r[a]||(r[a]=Object.create(null));f[u]||(f[u]=[])}),o.pending.forEach(l=>{const{provider:a,prefix:u,name:f}=l,d=C(a,u),h=d.pendingIcons||(d.pendingIcons=new Set);h.has(f)||(h.add(f),r[a][u].push(f))}),s.forEach(l=>{const{provider:a,prefix:u}=l;r[a][u].length&&$n(l,r[a][u])}),t?Ln(t,o,s):Ve},Hn=e=>new Promise((t,n)=>{const o=typeof e=="string"?R(e,!0):e;if(!o){n(e);return}Ae([o||e],r=>{if(r.length&&o){const s=q(o);if(s){t({...H,...s});return}}n(e)})});function mt(e,t){const n={...e};for(const o in t){const r=t[o],s=typeof r;o in Ze?(r===null||r&&(s==="string"||s==="number"))&&(n[o]=r):s===typeof n[o]&&(n[o]=o==="rotate"?r%4:r)}return n}const ae={...et,inline:!1},me="iconify",Se="iconify-inline",j="iconifyData"+Date.now();let O=[];function Q(e){for(let t=0;t<O.length;t++){const n=O[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function ht(e,t=!1){let n=Q(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},O.push(n),n)}function qn(){if(document.documentElement)return ht(document.documentElement);O.push({node:()=>document.documentElement})}function Qn(e){O=O.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function G(){return O}function Gn(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let z=null;const Wn={childList:!0,subtree:!0,attributes:!0};function gt(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,z&&z(e)}))}function Kn(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let o=0;o<t.length;o++){const r=t[o];if(r.addedNodes&&r.addedNodes.length>0||r.type==="attributes"&&r.target[j]!==void 0){n.paused||gt(e);return}}}function bt(e,t){e.observer.instance.observe(t,Wn)}function re(e){let t=e.observer;if(t&&t.instance)return;const n=typeof e.node=="function"?e.node():e.node;!n||!window||(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(Kn.bind(null,e)),bt(e,n),t.paused||gt(e))}function ze(){G().forEach(re)}function yt(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function Jn(e){const t=z!==null;if(z!==e&&(z=e,t&&G().forEach(yt)),t){ze();return}Gn(ze)}function Ie(e){(e?[e]:G()).forEach(t=>{if(!t.observer){t.observer={paused:1};return}const n=t.observer;if(n.paused++,n.paused>1||!n.instance)return;n.instance.disconnect()})}function Xn(e){if(e){const t=Q(e);t&&Ie(t)}else Ie()}function ke(e){(e?[e]:G()).forEach(t=>{if(!t.observer){re(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const o=typeof t.node=="function"?t.node():t.node;if(o)n.instance?bt(t,o):re(t);else return}})}function Yn(e){if(e){const t=Q(e);t&&ke(t)}else ke()}function vt(e,t=!1){const n=ht(e,t);return re(n),n}function xt(e){const t=Q(e);t&&(yt(t),Qn(e))}function Zn(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,o=t.customisations;for(const r in ae)if(n[r]!==o[r])return!0;return!1}function eo(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(r){for(;r<0;)r+=4;return r%4}if(n===""){const r=parseInt(e);return isNaN(r)?0:o(r)}else if(n!==e){let r=0;switch(n){case"%":r=25;break;case"deg":r=90}if(r){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/r,s%1===0?o(s):0)}}return t}const to=/[\s,]+/;function no(e,t){t.split(to).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const oo=["width","height"],ro=["inline","hFlip","vFlip"];function so(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function io(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&R(t,!0);if(!n)return null;const o={...ae,inline:e.classList&&e.classList.contains(Se)};oo.forEach(c=>{const l=e.getAttribute("data-"+c);l&&(o[c]=l)});const r=e.getAttribute("data-rotate");typeof r=="string"&&(o.rotate=eo(r));const s=e.getAttribute("data-flip");typeof s=="string"&&no(o,s),ro.forEach(c=>{const l="data-"+c,a=so(e.getAttribute(l),l);typeof a=="boolean"&&(o[c]=a)});const i=e.getAttribute("data-mode");return{name:t,icon:n,customisations:o,mode:i}}const co="svg."+me+", i."+me+", span."+me+", i."+Se+", span."+Se;function ao(e){const t=[];return e.querySelectorAll(co).forEach(n=>{const o=n[j]||n.tagName.toLowerCase()!=="svg"?io(n):null;o&&t.push({node:n,props:o})}),t}function wt(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)n+=" "+o+'="'+t[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let $;function lo(){try{$=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{$=null}}function uo(e){return $===void 0&&lo(),$?$.createHTML(e):e}function St(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function It(e,t,n,o){const r=e.classList;if(o){const i=o.classList;Array.from(i).forEach(c=>{r.add(c)})}const s=[];return t.forEach(i=>{r.contains(i)?n.has(i)&&s.push(i):(r.add(i),s.push(i))}),n.forEach(i=>{t.has(i)||r.remove(i)}),s}function kt(e,t,n){const o=e.style;(n||[]).forEach(s=>{o.removeProperty(s)});const r=[];for(const s in t)o.getPropertyValue(s)||(r.push(s),o.setProperty(s,t[s]));return r}function Et(e,t,n){let o;try{o=document.createElement("span")}catch{return e}const r=t.customisations,s=se(n,r),i=e[j],c=wt(tt(s.body),{"aria-hidden":"true",role:"img",...s.attributes});o.innerHTML=uo(c);const l=o.childNodes[0],a=e.attributes;for(let g=0;g<a.length;g++){const y=a.item(g),E=y.name;E!=="class"&&!l.hasAttribute(E)&&l.setAttribute(E,y.value)}const u=St(t.icon),f=It(l,u,new Set(i&&i.addedClasses),e),d=kt(l,r.inline?{"vertical-align":"-0.125em"}:{},i&&i.addedStyles),h={...t,status:"loaded",addedClasses:f,addedStyles:d};return l[j]=h,e.parentNode&&e.parentNode.replaceChild(l,e),l}function fo(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function po(e){return"data:image/svg+xml,"+fo(e)}function mo(e){return'url("'+po(e)+'")'}const ho={display:"inline-block"},Ee={"background-color":"currentColor"},_t={"background-color":"transparent"},$e={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Ue={"-webkit-mask":Ee,mask:Ee,background:_t};for(const e in Ue){const t=Ue[e];for(const n in $e)t[e+"-"+n]=$e[n]}function He(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function go(e,t,n,o){const r=t.customisations,s=se(n,r),i=s.attributes,c=e[j],l=wt(s.body,{...i,width:n.width+"",height:n.height+""}),a=St(t.icon),u=It(e,a,new Set(c&&c.addedClasses)),d={"--svg":mo(l),width:He(i.width),height:He(i.height),...ho,...o?Ee:_t};r.inline&&(d["vertical-align"]="-0.125em");const h=kt(e,d,c&&c.addedStyles),g={...t,status:"loaded",addedClasses:u,addedStyles:h};return e[j]=g,e}let J=!1;function bo(){J||(J=!0,setTimeout(()=>{J&&(J=!1,B())}))}function B(e,t=!1){const n=Object.create(null);function o(r,s){const{provider:i,prefix:c,name:l}=r,a=C(i,c),u=a.icons[l];if(u)return{status:"loaded",icon:u};if(a.missing.has(l))return{status:"missing"};if(s&&!Un(r)){const f=n[i]||(n[i]=Object.create(null));(f[c]||(f[c]=new Set)).add(l)}return{status:"loading"}}(e?[e]:G()).forEach(r=>{const s=typeof r.node=="function"?r.node():r.node;if(!s||!s.querySelectorAll)return;let i=!1,c=!1;function l(a,u,f){if(c||(c=!0,Ie(r)),a.tagName.toUpperCase()!=="SVG"){const d=u.mode,h=d==="mask"||(d==="bg"?!1:d==="style"?f.body.indexOf("currentColor")!==-1:null);if(typeof h=="boolean"){go(a,u,{...H,...f},h);return}}Et(a,u,f)}ao(s).forEach(({node:a,props:u})=>{const f=a[j];if(!f){const{status:h,icon:g}=o(u.icon,!0);if(g){l(a,u,g);return}i=i||h==="loading",a[j]={...u,status:h};return}let d;if(Zn(f,u)){if(d=o(u.icon,f.name!==u.name),!d.icon){i=i||d.status==="loading",Object.assign(f,{...u,status:d.status});return}}else{if(f.status!=="loading")return;if(d=o(u.icon,!1),!d.icon){f.status=d.status;return}}l(a,u,d.icon)}),r.temporary&&!i?xt(s):t&&i?vt(s,!0):c&&r.observer&&ke(r)});for(const r in n){const s=n[r];for(const i in s){const c=s[i];Ae(Array.from(c).map(l=>({provider:r,prefix:i,name:l})),bo)}}}function yo(e){const t=Q(e);t?B(t):B({node:e,temporary:!0},!0)}function Ct(e,t,n=!1){const o=q(e);if(!o)return null;const r=R(e),s=mt(ae,t||{}),i=Et(document.createElement("span"),{name:e,icon:r,customisations:s},o);return n?i.outerHTML:i}function vo(){return"3.1.1"}function xo(e,t){return Ct(e,t,!1)}function wo(e,t){return Ct(e,t,!0)}function So(e,t){const n=q(e);if(!n)return null;const o=mt(ae,t||{});return se(n,o)}function Io(e){e?yo(e):B()}if(typeof document<"u"&&typeof window<"u"){qn();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="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"||!Ye(o))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{Jn(B),B()})}function ko(e,t){at(e,t!==!1)}function Eo(e){at(e,!0)}lt("",Pn);if(typeof document<"u"&&typeof window<"u"){ct();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const o="IconifyProviders["+n+"] is invalid.";try{const r=t[n];if(typeof r!="object"||!r||r.resources===void 0)continue;ut(n,r)||console.error(o)}catch{console.error(o)}}}}const _o={getAPIConfig:ce,setAPIModule:lt,sendAPIQuery:pt,setFetch:In,getFetch:kn,listAPIProviders:wn},Co={_api:_o,addAPIProvider:ut,loadIcons:Ae,loadIcon:Hn,iconExists:fn,getIcon:dn,listIcons:an,addIcon:un,addCollection:Ye,replaceIDs:tt,calculateSize:ge,buildIcon:se,getVersion:vo,renderSVG:xo,renderHTML:wo,renderIcon:So,scan:Io,observe:vt,stopObserving:xt,pauseObserver:Xn,resumeObserver:Yn,enableCache:ko,disableCache:Eo};try{self.Iconify===void 0&&(self.Iconify=Co)}catch{}const To=e=>{const t={};let n=null;return T.forEachBlockletSync(e,o=>{t[o.meta.bundleDid]?n=T.getDisplayName(o,!0):o.meta.bundleDid&&(t[o.meta.bundleDid]=!0)}),n},jo=(e,t,n)=>{var s;const{hostname:o,href:r}=e;if(!t)return r;if(n){const c=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(o);if(!c)return r;const l=c[0],u=((((s=t.site)==null?void 0:s.domainAliases)||[]).map(f=>f.value).filter(Boolean).find(f=>f.endsWith(F.DEFAULT_DID_DOMAIN))||"").replace(`.${F.DEFAULT_DID_DOMAIN}`,"");return u?r.replace(o,`${u}-${l}.${F.DEFAULT_IP_DOMAIN_SUFFIX}`):r}return r.replace(t.meta.bundleDid,t.appPid)};function Tt(){const{t:e}=qe(),{api:t}=Je(),{blocklet:n}=Qt(),{inService:o}=jt(),[r,s]=b.useState(!1),[i,c]=b.useState(5),l=n&&n.structVersion!==F.APP_STRUCT_VERSION,a=()=>{try{if(n.status==="running"){X.error(e("blocklet.migrate.tip.running"));return}const d=To(n);if(d){X.error(e("blocklet.migrate.tip.duplicate",{name:d}));return}s(!0)}catch(d){X.error(We(d))}},u=()=>{const d=jo(window.location,n,o);setTimeout(()=>{window.location.href=d},5e3),c(5),setInterval(()=>{c(h=>h-1)},1e3)},f=()=>s(!1);return[l&&p.jsxs(Qe,{severity:"warning",style:{margin:"12px 0"},children:[p.jsxs(ee,{display:"flex",alignItems:"center",children:[p.jsx(Ge,{variant:"contained",size:"small",color:"primary",onClick:()=>a(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),p.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(d=>p.jsx(ee,{display:"flex",alignItems:"center",children:e(`blocklet.migrate.intro.${d}`)},d))]},"alert"),n&&p.jsx(Pt,{popup:!0,open:r,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:5*60*1e3,onSuccess:u,extraParams:{appDid:n.appDid,did:n.meta.did,wt:At(n,!0),title:T.getDisplayName(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:i>=0?e("blocklet.migrate.success",{sec:i}):"Redirecting..."},onClose:f},"connect")]}Tt.propTypes={};const Po=b.lazy(()=>I(()=>import("./overview-uPHlb4Rk.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url)),Ao=b.lazy(()=>I(()=>import("./domains-CM3lyOs-.js"),__vite__mapDeps([15,1,2,16,5,17,18,19,20,10,21,22,23,24,25,26,27,28,29,12,30,31,32,33,34,9,35,36]),import.meta.url)),Do=b.lazy(()=>I(()=>import("./index-D26anpmw.js"),__vite__mapDeps([37,1,2,38,39,40,41,42,21,22,5,43,44,45,46,47,48,49,50,10,27,11,12,9,4,6,7,51,52,16,53,19,54,55,56,57,23,58,59,60,31,61,62,63,64,65,66,67,68,69,70,71,30]),import.meta.url)),Oo=b.lazy(()=>I(()=>import("./appearance-BKpK01va.js"),__vite__mapDeps([72,1,2,10]),import.meta.url)),Lo=b.lazy(()=>I(()=>import("./config-navigation-BRr3prTj.js"),__vite__mapDeps([73,1,2,7,74,75,76,10,53,19,54,55,56,57,23,16,58,59,77,78,34,42,79,80,81,51,12,82,83,8,3,84,46,47,67,68,69,21,22,52,66,11,45,14,48,49,40,18]),import.meta.url)),Bo=b.lazy(()=>I(()=>import("./index-BbjbAT2O.js"),__vite__mapDeps([85,1,2,53,19,54,55,56,57,23,16,58,59,28,9,42,67,68,69,46,47,12,21,22,86,87,40,88,41,89,30,90,71,70]),import.meta.url)),Ro=b.lazy(()=>I(()=>import("./audit-logs-DaG555bS.js"),__vite__mapDeps([91,16,1,2,59,56,57,68,92,93,28,11,10,12]),import.meta.url)),Mo=b.lazy(()=>I(()=>import("./index-9mb4i7nG.js").then(e=>e.i),__vite__mapDeps([94,1,2,53,19,54,55,56,57,23,16,58,59,42,11,10,12,84,46,47,21,22,95,74,31,44,96,97]),import.meta.url)),No=b.lazy(()=>I(()=>import("./index-CSrSFpxe.js").then(e=>e.i),__vite__mapDeps([98,1,2,31,99,53,19,54,55,56,57,23,16,58,59,78,34,42,79,80,81,51,12,82,83,8,3,84,46,47,11,10,21,22,27,90,71,70,9,100,101,6,24,25,28]),import.meta.url)),Fo=b.lazy(()=>I(()=>import("./service-CO3-2J05.js"),__vite__mapDeps([102,1,2,103,77,89,55,71,42,31,23,57,104,41,88,56,45]),import.meta.url)),Vo=b.lazy(()=>I(()=>import("./index-Cl-3FJwO.js"),__vite__mapDeps([105,1,2,31,16,67,68,58,23,69,46,47,12,21,22,60,51,10,104,103,77,89,55,71,42,57,41,88,56,45,27,106,107,108,48,49,100,17,109,43,101,26,28,110,111,112,113,114,82,83,8,3,84,13,14,115,92,93,38,39,40,95,74,116,117,75,9,80,118,35,36,65,29,24,25,119,11]),import.meta.url)),zo=b.lazy(()=>I(()=>import("./log-ObTZchhD.js"),__vite__mapDeps([120,1,2,68,121,46,47,122,49]),import.meta.url)),$o=b.lazy(()=>I(()=>import("./runtime-h-JvCmOV.js"),__vite__mapDeps([123,1,2,53,19,54,55,56,57,23,16,58,59,10,83,124,125,29,12,97,47]),import.meta.url)),Uo=b.lazy(()=>I(()=>import("./traffic-MRoWejWm.js").then(e=>e.t),__vite__mapDeps([87,1,2,40,88,41,89,30,90,19,71,70]),import.meta.url)),Ho=b.lazy(()=>I(()=>import("./index-Bp2gRuoi.js"),__vite__mapDeps([126,1,2,42,10,65,82,83,8,3,84,46,47,14,114,13,101,9,125,53,19,54,55,56,57,23,16,58,59,25,67,68,69,12,21,22,60,51,96]),import.meta.url)),qo=b.lazy(()=>I(()=>import("./index-CULZ0mkF.js"),__vite__mapDeps([127,53,1,2,19,54,55,56,57,23,16,58,59,11,10,12,52,63,64,108,49,113,24,25,128]),import.meta.url)),Qo=({children:e})=>e;function Go(){var A,_,De;const e=Dt(),{tab:t="overview"}=Ke(),{did:n,blocklet:o,error:r,client:s,actions:{setBlocklet:i,refreshBlocklet:c}}=Kt(),{refresh:l}=Ot(),{t:a}=qe(),{session:u}=Je(),f=Lt(()=>{var v;return((v=u.user)==null?void 0:v.role)&&Bt.includes(u.user.role)},[u]),d=b.useCallback(()=>p.jsx(Ro,{scope:n}),[n]),h=b.useCallback(()=>f?p.jsx(Bo,{blocklet:o}):p.jsx(Gt,{status:403}),[o,f]),g=((A=o==null?void 0:o.environments.find(v=>v.key==="BLOCKLET_APP_URL"))==null?void 0:A.value)||window.location.origin,y=v=>zt(v,g),E=v=>{e(`/blocklets/${n}/${v}`)},L=v=>{v&&i(v),c()},k=!o||W(o.status)?[]:T.getAppMissingConfigs(o);let x=null;const w=[{label:a("common.overview"),value:"overview"},{breadcrumbsLabel:a("common.components"),label:p.jsx(Rt,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!k.length,children:a("common.components")}),value:"components"}];if(r)x=p.jsxs(p.Fragment,{children:[p.jsx(Qe,{severity:"error",variant:"icon",children:We(r)}),p.jsx(Ge,{onClick:()=>c(),children:p.jsx("span",{style:{textDecoration:"underline"},children:a("common.retry")})})]});else if(o){const v={overview:p.jsx(Po,{}),domains:p.jsx(Ao,{}),configuration:Do,appearance:Oo,navigation:Lo,services:Fo,members:p.jsx(No,{type:"blocklet",createPassportSvg:y}),passports:Mo,components:Vo,"audit-logs":d,notifications:h,logs:zo,runtime:p.jsx($o,{}),traffic:p.jsx(Uo,{client:s,did:n}),didSpaces:p.jsx(Ho,{}),webhooks:p.jsx(qo,{})};t==="configuration"&&W(o.status)&&E("overview"),w.push({label:a("common.domains"),value:"domains"}),W(o.status)||(w.push({label:a("common.members"),value:"members"}),w.push({label:a("team.member.passports"),value:"passports"})),W(o.status)||(w.push({label:a("common.configuration"),value:"configuration"}),w.push({label:a("common.appearance"),value:"appearance"})),w.push({label:a("common.auditLogs"),value:"audit-logs"}),f&&w.push({label:a("common.notificationRecords"),value:"notifications"}),o&&((_=o.children)!=null&&_.length)&&o.structVersion===F.APP_STRUCT_VERSION&&w.push({label:a("common.logs"),value:"logs"}),w.push({label:a("common.configNavigation"),value:"navigation"}),w.push({label:a("common.runtime"),value:"runtime"}),w.push({label:a("common.traffic"),value:"traffic"}),w.push({label:a("storage.spaces.title"),value:"didSpaces"}),["admin","owner"].includes((De=u.user)==null?void 0:De.role)&&w.push({label:"Webhooks",value:"webhooks"}),T.getBlockletServices(o).length&&w.splice(2,0,{label:a("blocklet.services"),value:"services"});const ue=v[t]||v.overview;x=p.jsxs(Ht,{type:"components",children:[!T.isExternalBlocklet(o)&&p.jsx($t,{tabs:w,current:t,onChange:E,scrollButtons:"auto"}),p.jsx("div",{className:"page-content",children:p.jsx(b.Suspense,{fallback:p.jsx(Oe,{relative:"parent",children:p.jsx(Le,{})}),children:b.isValidElement(ue)?ue:p.jsx(ue,{blocklet:o,onUpdate:L,createPassportSvg:y})})})]})}else x=p.jsx(Oe,{relative:"parent",children:p.jsx(Le,{})});const M=()=>{},m=({action:v,error:le})=>{if(le){X.error(le.message);return}v==="remove"?(l(),e("/blocklets")):c()},S=w.find(v=>v.value===t),P=o?Jt:Qo;return p.jsx(P,{teamDid:n,children:p.jsxs(Wo,{children:[p.jsxs(Yt,{separator:"›","aria-label":"breadcrumb",className:"page-breadcrumb",children:[p.jsx(Mt,{color:"textSecondary",to:"/blocklets",children:a("common.blocklets")}),p.jsx(Nt,{to:`/blocklets/${n}/overview`,style:v=>v?{color:"inherit"}:{},children:a("common.detail")}),p.jsx(fe,{color:"textSecondary",children:S?S.breadcrumbsLabel||S.label:""})]}),p.jsxs(fe,{component:"div",className:"page-header",children:[p.jsxs(fe,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[o?p.jsx(Ft,{blocklet:o,style:{marginRight:16}}):null,o?p.jsxs(ee,{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,children:[p.jsx(ee,{children:T.getDisplayName(o)}),(o==null?void 0:o.status)!=="unknown"&&p.jsx(Ut,{size:"12px",status:o.status,source:o.source,progress:o.progress})]}):`${a("common.blocklet")} ${a("common.detail")}`]}),p.jsx(Xt,{permission:"mutate_blocklets",children:!!o&&!T.isExternalBlocklet(o)&&p.jsx(qt,{className:"page-actions",blocklet:o,onStart:M,onComplete:m,variant:"group"})})]}),p.jsx(Tt,{}),x]})})}function dr(){const{did:e}=Ke();return e?p.jsx(Wt,{did:e,children:p.jsx(Go,{})}):null}const Wo=Vt.main`
13
13
  .page-header {
14
14
  display: flex;
15
15
  justify-content: space-between;
@@ -1 +1 @@
1
- import{a as _}from"./codemirror.es-BXES79gX.js";import"./index-BuXw_Xo7.js";import"./index-B7UfL6V6.js";var O=Object.defineProperty,m=(g,v)=>O(g,"name",{value:v,configurable:!0});function N(g,v){return v.forEach(function(e){e&&typeof e!="string"&&!Array.isArray(e)&&Object.keys(e).forEach(function(c){if(c!=="default"&&!(c in g)){var d=Object.getOwnPropertyDescriptor(e,c);Object.defineProperty(g,c,d.get?d:{enumerable:!0,get:function(){return e[c]}})}})}),Object.freeze(g)}m(N,"_mergeNamespaces");var b={exports:{}};(function(g,v){(function(e){e(_.exports)})(function(e){function c(f,u,n){var o=f.getWrapperElement(),l;return l=o.appendChild(document.createElement("div")),n?l.className="CodeMirror-dialog CodeMirror-dialog-bottom":l.className="CodeMirror-dialog CodeMirror-dialog-top",typeof u=="string"?l.innerHTML=u:l.appendChild(u),e.addClass(o,"dialog-opened"),l}m(c,"dialogDiv");function d(f,u){f.state.currentNotificationClose&&f.state.currentNotificationClose(),f.state.currentNotificationClose=u}m(d,"closeNotification"),e.defineExtension("openDialog",function(f,u,n){n||(n={}),d(this,null);var o=c(this,f,n.bottom),l=!1,r=this;function i(t){if(typeof t=="string")a.value=t;else{if(l)return;l=!0,e.rmClass(o.parentNode,"dialog-opened"),o.parentNode.removeChild(o),r.focus(),n.onClose&&n.onClose(o)}}m(i,"close");var a=o.getElementsByTagName("input")[0],s;return a?(a.focus(),n.value&&(a.value=n.value,n.selectValueOnOpen!==!1&&a.select()),n.onInput&&e.on(a,"input",function(t){n.onInput(t,a.value,i)}),n.onKeyUp&&e.on(a,"keyup",function(t){n.onKeyUp(t,a.value,i)}),e.on(a,"keydown",function(t){n&&n.onKeyDown&&n.onKeyDown(t,a.value,i)||((t.keyCode==27||n.closeOnEnter!==!1&&t.keyCode==13)&&(a.blur(),e.e_stop(t),i()),t.keyCode==13&&u(a.value,t))}),n.closeOnBlur!==!1&&e.on(o,"focusout",function(t){t.relatedTarget!==null&&i()})):(s=o.getElementsByTagName("button")[0])&&(e.on(s,"click",function(){i(),r.focus()}),n.closeOnBlur!==!1&&e.on(s,"blur",i),s.focus()),i}),e.defineExtension("openConfirm",function(f,u,n){d(this,null);var o=c(this,f,n&&n.bottom),l=o.getElementsByTagName("button"),r=!1,i=this,a=1;function s(){r||(r=!0,e.rmClass(o.parentNode,"dialog-opened"),o.parentNode.removeChild(o),i.focus())}m(s,"close"),l[0].focus();for(var t=0;t<l.length;++t){var p=l[t];(function(y){e.on(p,"click",function(h){e.e_preventDefault(h),s(),y&&y(i)})})(u[t]),e.on(p,"blur",function(){--a,setTimeout(function(){a<=0&&s()},200)}),e.on(p,"focus",function(){++a})}}),e.defineExtension("openNotification",function(f,u){d(this,i);var n=c(this,f,u&&u.bottom),o=!1,l,r=u&&typeof u.duration<"u"?u.duration:5e3;function i(){o||(o=!0,clearTimeout(l),e.rmClass(n.parentNode,"dialog-opened"),n.parentNode.removeChild(n))}return m(i,"close"),e.on(n,"click",function(a){e.e_preventDefault(a),i()}),r&&(l=setTimeout(i,r)),i})})})();var E=b.exports,j=Object.freeze(N({__proto__:null,[Symbol.toStringTag]:"Module",default:E},[b.exports]));export{b as a,j as d};
1
+ import{a as _}from"./codemirror.es-s2Rr8TMK.js";import"./index-DbIDv5vn.js";import"./index-BScCZen8.js";var O=Object.defineProperty,m=(g,v)=>O(g,"name",{value:v,configurable:!0});function N(g,v){return v.forEach(function(e){e&&typeof e!="string"&&!Array.isArray(e)&&Object.keys(e).forEach(function(c){if(c!=="default"&&!(c in g)){var d=Object.getOwnPropertyDescriptor(e,c);Object.defineProperty(g,c,d.get?d:{enumerable:!0,get:function(){return e[c]}})}})}),Object.freeze(g)}m(N,"_mergeNamespaces");var b={exports:{}};(function(g,v){(function(e){e(_.exports)})(function(e){function c(f,u,n){var o=f.getWrapperElement(),l;return l=o.appendChild(document.createElement("div")),n?l.className="CodeMirror-dialog CodeMirror-dialog-bottom":l.className="CodeMirror-dialog CodeMirror-dialog-top",typeof u=="string"?l.innerHTML=u:l.appendChild(u),e.addClass(o,"dialog-opened"),l}m(c,"dialogDiv");function d(f,u){f.state.currentNotificationClose&&f.state.currentNotificationClose(),f.state.currentNotificationClose=u}m(d,"closeNotification"),e.defineExtension("openDialog",function(f,u,n){n||(n={}),d(this,null);var o=c(this,f,n.bottom),l=!1,r=this;function i(t){if(typeof t=="string")a.value=t;else{if(l)return;l=!0,e.rmClass(o.parentNode,"dialog-opened"),o.parentNode.removeChild(o),r.focus(),n.onClose&&n.onClose(o)}}m(i,"close");var a=o.getElementsByTagName("input")[0],s;return a?(a.focus(),n.value&&(a.value=n.value,n.selectValueOnOpen!==!1&&a.select()),n.onInput&&e.on(a,"input",function(t){n.onInput(t,a.value,i)}),n.onKeyUp&&e.on(a,"keyup",function(t){n.onKeyUp(t,a.value,i)}),e.on(a,"keydown",function(t){n&&n.onKeyDown&&n.onKeyDown(t,a.value,i)||((t.keyCode==27||n.closeOnEnter!==!1&&t.keyCode==13)&&(a.blur(),e.e_stop(t),i()),t.keyCode==13&&u(a.value,t))}),n.closeOnBlur!==!1&&e.on(o,"focusout",function(t){t.relatedTarget!==null&&i()})):(s=o.getElementsByTagName("button")[0])&&(e.on(s,"click",function(){i(),r.focus()}),n.closeOnBlur!==!1&&e.on(s,"blur",i),s.focus()),i}),e.defineExtension("openConfirm",function(f,u,n){d(this,null);var o=c(this,f,n&&n.bottom),l=o.getElementsByTagName("button"),r=!1,i=this,a=1;function s(){r||(r=!0,e.rmClass(o.parentNode,"dialog-opened"),o.parentNode.removeChild(o),i.focus())}m(s,"close"),l[0].focus();for(var t=0;t<l.length;++t){var p=l[t];(function(y){e.on(p,"click",function(h){e.e_preventDefault(h),s(),y&&y(i)})})(u[t]),e.on(p,"blur",function(){--a,setTimeout(function(){a<=0&&s()},200)}),e.on(p,"focus",function(){++a})}}),e.defineExtension("openNotification",function(f,u){d(this,i);var n=c(this,f,u&&u.bottom),o=!1,l,r=u&&typeof u.duration<"u"?u.duration:5e3;function i(){o||(o=!0,clearTimeout(l),e.rmClass(n.parentNode,"dialog-opened"),n.parentNode.removeChild(n))}return m(i,"close"),e.on(n,"click",function(a){e.e_preventDefault(a),i()}),r&&(l=setTimeout(i,r)),i})})})();var E=b.exports,j=Object.freeze(N({__proto__:null,[Symbol.toStringTag]:"Module",default:E},[b.exports]));export{b as a,j as d};
@@ -1,4 +1,4 @@
1
- import{fM as Ue,a3 as G,i8 as yt,fL as jt,cX as Ne,j as e,cZ as bt,m as A,r as C,bs as vt,cu as X,hs as Ct,D as wt,M as x,C as B,bb as Rt,k as E,X as me,o as K,am as ue,E as Y,b5 as We,P as o,i9 as St,b0 as Oe,N as At,bq as q,_ as Pt,b as Te,aB as $,af as pe,y as F,B as J,aW as kt,U as He,aI as It,ab as Et,aP as Tt,aQ as qt,b6 as Lt,h as Ft,b7 as qe,b4 as $t,n as Bt,bD as _t,i5 as Ve,b8 as Ze,co as re,aZ as O,e6 as Qe,ia as Mt,b9 as zt,gk as Xe,gQ as fe,ib as Ge,ic as Ut,id as Nt,c_ as Ke,ie as Wt,ig as Ot,bk as Ht,H as xe,hC as Vt,a_ as Zt,Z as Le,t as Qt,aV as Xt,ff as Fe,ih as Gt}from"./index-B7UfL6V6.js";import{E as Kt}from"./index-B6e7M9AU.js";import{u as Yt}from"./index-nS9VTrx6.js";import{d as Jt,a as en}from"./VerifiedUser-B5iWLUpk.js";import{L as Ye}from"./LoadingButton-BcryG2ki.js";import{u as tn}from"./useAsync-B4uBsSr_.js";import{u as ee}from"./blocklet-DJeYf4PW.js";import{w as Je}from"./permission-CoJIDKiq.js";import{d as et}from"./Delete-BBkD2GAm.js";import{A as nn}from"./actions-CQYnMEfY.js";import{D as on}from"./delete-confirm-BxVrliVv.js";import{D as $e}from"./status-B6OYlotx.js";import{C as sn}from"./CardContent-p0HerB2M.js";import{d as rn}from"./Add-Do4PUh5X.js";import{d as an}from"./CallMerge-Dn1-C0m8.js";import{a as ln}from"./toLower-e46SyAPI.js";import{u as cn}from"./use-mobile-BDkfqLh5.js";import{I as dn}from"./index-8mvNLWje.js";import{p as Be}from"./util-DWSWDAob.js";import"./useThemeProps-DHnKAZsI.js";import"./session-Bo2ZbX-l.js";import"./MoreHoriz-BNH4KEQj.js";import"./click-to-copy-CGbpKHCv.js";import"./shorten-label-BVrJaxJC.js";import"./url-evaluation-Dv0N_pok.js";import"./is-path-prefix-equal-Dz4CThga.js";const mn=Ue({});mn.interceptors.request.use(t=>{const n=window.blocklet?window.blocklet.prefix:"/";return t.baseURL=n||"",t.url=G("/api",String(t.url)),t.timeout=2e5,t.params=t.params||{},new URLSearchParams(t.url.split("?")[1]).has("locale")||(t.params.locale=yt()),t},t=>Promise.reject(t));const tt=(...t)=>Ue(...t),un=(t,n)=>n?t?[t,...Array.isArray(n)?n:[n]]:n:t,pn=(t,{width:n=600,height:i=700,name:r="did-domain:popup"}={})=>{const s=window.screenX+(window.innerWidth-n)/2,a=window.screenY+(window.innerHeight-i)/2,l=[`left=${s}`,`top=${a}`,`width=${n}`,`height=${i}`,"resizable=no","scrollbars=yes","status=yes","popup=yes"],c=window.open("",r,l.join(","));if(c===null)throw new Error("Failed to open popup");return c.location.href=jt(t,{opener:window.location.origin}),c},fn="z2qaGosS3rZ7m5ttP3Nd4V4qczR9TryTcRV4p",nt=async t=>{var m;if(!t||!(t!=null&&t.trim()))return null;const n=tt(),i=new URL(t);i.pathname="__blocklet__.js",i.searchParams.set("type","json");const{data:r}=await n.get(i.toString()),s=(m=r==null?void 0:r.componentMountPoints)==null?void 0:m.find(f=>f.did===fn),a=new URL(t);a.pathname=s==null?void 0:s.mountPoint;const l=a.toString(),c=G(l,"/api");return{base:l,api:c}},xn=Ne({buy:{button:{title:"Buy DID Domain"},status:{inProgress:"Please wait while we are processing your request, the domain will be automatically resolved to the current app after the purchase...",success:"Purchase completed!"},error:{failedToCreateSession:"Failed to create session"}}}),hn=Ne({buy:{button:{title:"购买 DID 域名"},status:{inProgress:"请稍等,我们正在处理您的请求,购买域名后会自动解析到当前的应用...",success:"购买完成!"},error:{failedToCreateSession:"创建会话失败"}}}),gn={zh:hn,en:xn},Dn=async({didDomainURL:t,delegatee:n,delegateePk:i})=>{const r=await nt(t);if(!r)return null;const s=tt({baseURL:r.api}),{data:a}=await s.post("/payment/session",{delegatee:n,delegateePk:i});return{sessionId:a.sessionId,baseURL:r.base}};function ot({delegatee:t,delegateePk:n,didDomainURL:i,locale:r,title:s,onSuccess:a,...l}){const{t:c}=A(),[m,f]=Yt({currentState:1}),u=C.useRef(null),D=vt(async()=>{const d=await Dn({didDomainURL:i,delegatee:t,delegateePk:n});return d},{debounceWait:500,debounceLeading:!0,debounceTrailing:!1,debounceMaxWait:3e3,refreshDeps:[],onError(d){console.error(d)}}),j=X(d=>{var y,R,I,w;d.data.type==="didDomain.success"&&(a==null||a({nftDid:(y=d.data)==null?void 0:y.nftDid,domain:(R=d.data)==null?void 0:R.domain,chainHost:(I=d.data)==null?void 0:I.chainHost}),(w=u.current)==null||w.close(),u.current=null,f({currentState:4}),setTimeout(()=>{f({currentState:8})},2e3))});Ct(()=>{var d;try{window.removeEventListener("message",j),(d=u.current)==null||d.close(),u.current=null}catch(y){console.warn("Failed to close popup",y)}});const p=X(()=>{f({currentState:1})}),b=X(()=>{if(f({currentState:2}),!D.data){console.error("Failed to create session");return}h({sessionId:D.data.sessionId,baseURL:D.data.baseURL})}),h=X(({sessionId:d,baseURL:y})=>{window.addEventListener("message",j);const R=new URL(y);R.searchParams.set("sessionId",d),R.searchParams.set("locale",r),R.searchParams.set("embed","1"),u.current=pn(R.toString());const I=setInterval(()=>{var w;(w=u.current)!=null&&w.closed&&(clearInterval(I),p())},1e3);return()=>clearInterval(I)});return e.jsxs(e.Fragment,{children:[e.jsx(Ye,{loading:D.loading,onClick:b,variant:"contained",startIcon:e.jsx(Jt,{}),...l,children:s||c("buy.button.title")}),e.jsxs(wt,{fullWidth:!0,maxWidth:"xs",open:m.currentState>1&&m.currentState<8,onClose:p,children:[!D.error&&e.jsxs(x,{sx:{display:"flex",alignItems:"center",flexDirection:"column",gap:2},children:[m.currentState===2&&e.jsx(B,{size:50}),m.currentState===4&&e.jsx(Rt,{sx:{color:"primary.main",fontSize:"5rem"}}),m.currentState===2&&e.jsx(E,{children:c("buy.status.inProgress")}),m.currentState===4&&e.jsx(E,{children:c("buy.status.success")})]}),D.error&&e.jsx(me,{severity:"error",children:c("buy.error.failedToCreateSession")})]})]})}const it={onSuccess:()=>{},title:""};ot.defaultProps=it;function st(t){return e.jsx(bt,{locale:t.locale,translations:gn,children:e.jsx(ot,{...t})})}st.defaultProps=it;function rt({nftDid:t,didDomainURL:n,locale:i,sx:r}){const{t:s}=A(),[a,l]=K({safeIframeRef:null,popoverAnchorEl:null}),c=C.useRef(null),m=ue(),f=Y(m.breakpoints.down("md")),u=b=>{l({popoverAnchorEl:b.currentTarget})},D=()=>{l({popoverAnchorEl:null})},j=tn(async()=>{const b=await nt(n);return b?b.base:null});if(!j.value)return null;if(j.loading)return e.jsx(B,{});const p=G(j.value,`/embed/domain?nft-did=${t}&locale=${i}`);return e.jsxs(e.Fragment,{children:[e.jsx(x,{component:"img",src:G(n,"/.well-known/service/blocklet/logo"),alt:"logo",width:16,height:16,onClick:u,sx:un({cursor:"pointer"},r)}),e.jsx(We,{id:"popover-info",open:!!a.popoverAnchorEl,anchorEl:a.popoverAnchorEl,onClose:D,anchorOrigin:{vertical:"bottom",horizontal:"right"},children:e.jsx("iframe",{ref:c,title:s("common.subscription"),width:f?"320px":"400px",height:f?"600px":"680px",style:{border:0},src:p})})]})}rt.defaultProps={sx:{}};const yn=t=>["waiting","creating","renewaling"].includes(t);function he(t){var Z,S;const{t:n}=A(),[i,r]=C.useState(!1),{inService:s}=q(),[a,l]=C.useState(null),{siteId:c,domain:m,onAdd:f,children:u,did:D}=t,[j,p]=C.useState(!1),{api:b,ws:{useSubscription:h}}=q(),{mode:d,actions:{refreshDomainStatus:y}}=ee(),R=Pt(async()=>{const{cert:g}=await b.findCertificateByDomain({input:{domain:m,did:D}});return g}),I=(g,N)=>{g.domain===m&&(p(!1),r(!1),s&&d!=="setup"&&(N==="success"?F.success(n("setup.domain.genCertSuccess",{domain:g.domain})):N==="error"&&F.error(n("setup.domain.genCertFailed",{domain:g.domain,message:g.message}))))};if(C.useEffect(()=>{var g;R.loading||p(yn((g=R.value)==null?void 0:g.status))},[R.loading,(Z=R.value)==null?void 0:Z.status]),h(Te.BlockletEvents.certError,g=>I(g,"error")),h(Te.BlockletEvents.certIssued,g=>{R.retry(),y(g.domain),I(g,"success")}),R.loading||((S=R.value)==null?void 0:S.status)==="normal")return"";const w=()=>{r(!1),l(null)},U=async()=>{r(!0);try{await b.issueLetsEncryptCert({input:{siteId:c,domain:m,did:D,inBlockletSetup:d==="setup"}}),f(),p(!0)}catch(g){console.error(g),p(!1)}finally{r(!1),l(null)}},T={title:n("router.cert.genLetsEncryptCert.title"),description:e.jsxs("div",{children:[e.jsx(me,{severity:"success",children:n("router.cert.genLetsEncryptCert.dnsTip")}),n("router.cert.genLetsEncryptCert.description")]}),confirm:n("common.confirm"),onConfirm:U,onCancel:w},V=g=>{g.stopPropagation(),l(T)};return e.jsxs(e.Fragment,{children:[j?e.jsx($,{title:n("router.cert.issuing"),children:e.jsx(B,{size:13,style:{fontSize:"13px"}})}):u({loading:i,open:V}),a&&e.jsx(pe,{color:"primary",title:a.title,description:a.description,confirm:a.confirm,params:a.params,onConfirm:a.onConfirm,onCancel:a.onCancel})]})}he.propTypes={domain:o.string.isRequired,did:o.string.isRequired,siteId:o.string.isRequired,onAdd:o.func,children:o.any};he.defaultProps={onAdd:()=>{},children:null};function ge(t){const{domain:n,domainStatus:i,...r}=t;return St(n)||!Oe(n)||At(i)||i!=null&&i.isHttps?"":e.jsx(he,{domain:n,...r})}ge.propTypes={domain:o.string.isRequired,domainStatus:o.shape({isHttps:o.bool}).isRequired,did:o.string.isRequired,onAdd:o.func,children:o.any};ge.defaultProps={onAdd:()=>{},children:null};function De(t){const{t:n}=A(),[i,r]=C.useState(!1),[s,a]=C.useState(null),{id:l,domain:c,children:m,teamDid:f,onDelete:u}=t,{api:D}=q(),j=()=>{r(!1),a(null)},p=async()=>{r(!0);try{await D.deleteDomainAlias({input:{id:l,domainAlias:c,teamDid:f}}),u==null||u(),await kt(2e3)}catch(d){F.error(d.message)}finally{a(null),r(!1)}},b={keyName:c,title:n("router.domainAlias.delete.title"),description:n("router.domainAlias.delete.description",{domain:c}),confirmPlaceholder:n("router.domainAlias.delete.confirmPlaceholder",{domain:c}),confirm:n("common.delete"),onConfirm:p,onCancel:j},h=d=>{d.stopPropagation(),a(b)};return e.jsxs(e.Fragment,{children:[typeof m=="function"?m({loading:i,open:h}):e.jsxs(J,{edge:"end",onClick:h,size:"small",className:"rule-action",color:"error","data-cy":"action-delete-domain-alias",children:[i?e.jsx(B,{size:16}):e.jsx(et,{style:{fontSize:16}}),n("common.delete")]}),s&&e.jsx(on,{keyName:s.keyName,title:s.title,description:s.description,confirmPlaceholder:s.confirmPlaceholder,confirm:s.confirm,params:s.params,onConfirm:s.onConfirm,onCancel:s.onCancel})]})}De.propTypes={id:o.string.isRequired,domain:o.string.isRequired,children:o.any,teamDid:o.string,onDelete:o.func};De.defaultProps={children:null,teamDid:"",onDelete:null};function ye({site:t,domain:n,blocklet:i,onDelete:r}){const{t:s}=A(),a=n.value===window.location.hostname;return e.jsx(nn,{"data-cy":"domain-actions",size:"large",actions:[({close:l})=>{var c;return e.jsx(De,{id:t.id,domain:n.value,teamDid:(c=i==null?void 0:i.meta)==null?void 0:c.did,onDelete:r,children:({open:m})=>e.jsx($,{title:a?s("blocklet.router.currentDomainTip"):"",children:e.jsx("span",{children:e.jsxs(He,{disabled:n.isProtected||a,dense:!0,onClick:f=>{l(),m(f)},"data-cy":"action-toggle-block",children:[e.jsx(It,{style:{minWidth:24,marginRight:8},children:e.jsx(et,{})}),e.jsx(Et,{primary:s("common.delete")})]},"remove")})})})}]})}ye.propTypes={site:o.object.isRequired,domain:o.object.isRequired,blocklet:o.object.isRequired,onDelete:o.func};ye.defaultProps={onDelete:()=>{}};var je={},jn=qt;Object.defineProperty(je,"__esModule",{value:!0});var at=je.default=void 0,bn=jn(Tt()),vn=e;at=je.default=(0,bn.default)((0,vn.jsx)("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm-1 6h2v2h-2zm0 4h2v6h-2z"}),"PrivacyTip");const te=o.shape({href:o.string,accessibility:o.shape({loading:o.bool,accessible:o.bool}),domainStatus:o.shape({isHttps:o.bool,matchedCert:o.object}),dns:o.shape({resolved:o.bool,ip:o.string})});function be({certificate:t}){const[n,i]=C.useState(null),r=q(),{t:s,locale:a}=A(),l=f=>{i(f.currentTarget)},c=()=>{i(null)},m=!!n;return e.jsxs(e.Fragment,{children:[e.jsx(en,{"aria-owns":m?"mouse-over-popover":void 0,onMouseEnter:l,onMouseLeave:c,style:{color:"#44cdc6",fontSize:"1em",cursor:"pointer"}}),e.jsx(We,{id:"mouse-over-popover",style:{pointerEvents:"none"},open:m,anchorEl:n,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:c,disableRestoreFocus:!0,children:e.jsx(Lt,{children:e.jsxs(sn,{style:{display:"flex"},children:[e.jsx("div",{children:e.jsx("img",{src:`${r.imgPrefix}/https-certificate-icon.png`,alt:"certificate icon",style:{maxHeight:"100%",maxWidth:"100%"}})}),e.jsxs(E,{component:"div",style:{marginLeft:"16px"},children:[e.jsx(E,{component:"div",style:{fontWeight:"bold"},children:t.domain}),e.jsx(E,{component:"div",children:`${s("common.issuer")}: ${Ft(t,"issuer.commonName","")}`}),e.jsx(E,{component:"div",children:`${s("router.cert.issuedOn")}: ${qe(t.validFrom,a)}`}),e.jsx(E,{component:"div",children:`${s("router.cert.expiryOn")}: ${qe(t.validTo,a)}`})]})]})})})]})}be.propTypes={certificate:o.object};be.defaultProps={certificate:{}};function H({domain:t,filters:n}){const{t:i}=A(),{value:r,domainStatus:s}=t;if(!Oe(r))return null;let a=null,l=null;const{isHttps:c,matchedCert:m}=s;if(!$t(r)){const{dns:{resolved:u,ip:D}={}}=s;u||D==="127.0.0.1"?a=e.jsx($,{title:i("router.domain.verify.ok"),children:e.jsx($e,{color:"success"})}):a=e.jsx($,{title:i("router.domain.verify.notResolved"),children:e.jsx($e,{color:"error"})})}c?l=e.jsx(be,{certificate:m}):l=e.jsx($,{title:i("router.domain.https.bad"),children:e.jsx(at,{style:{color:"#D0021B",fontSize:"1em",cursor:"pointer"}})});const f=n.map(u=>u==="domain"?a:u==="http"?l:null);return C.createElement(C.Fragment,null,...f)}H.propTypes={domain:te.isRequired,filters:o.array};H.defaultProps={filters:["domain","http"]};const Cn=Je(ne,"mutate_blocklets"),wn=Je(ne,"",_t);function Rn(t){const{inService:n}=q(),{blocklet:i,loadingRuntimeInfo:r}=ee();let s=Cn;return n&&(s=wn),e.jsx(s,{...t,blocklet:i,inService:n,loadingRuntimeInfo:r})}const _e="nft-domain";function ne({hasPermission:t,blocklet:n,loadingRuntimeInfo:i,inService:r,showAllDomains:s,updateBlockletDomainAliases:a}){var h;const{t:l}=A(),c=Y(d=>d.breakpoints.down("md")),m=C.useMemo(()=>{let d=t;return Ve(n)&&(d=d&&r),d},[t,r,n]),{site:f}=n,u=C.useMemo(()=>{var d;return Ze((d=n.site)==null?void 0:d.domainAliases)},[(h=n.site)==null?void 0:h.domainAliases]),D=C.useMemo(()=>u.filter(d=>!re.isCustomDomain(d.value)),[u]),j=C.useMemo(()=>u.filter(d=>re.isCustomDomain(d.value)),[u]),p=C.useMemo(()=>j.filter(d=>d.type!==_e),[j]),b=C.useMemo(()=>j.filter(d=>d.type===_e),[j]);return e.jsxs(e.Fragment,{children:[e.jsxs(O,{gap:3,children:[!!b.length&&e.jsx(W,{title:l("common.didDomains"),description:l("common.didDomainsDescription"),domains:b,hasMutatePermission:m,blocklet:n,site:f,mobile:c,showAllDomains:s,updateBlockletDomainAliases:a}),!!p.length&&e.jsx(W,{title:l("common.manualDomains"),description:l("common.manualDomainsDescription"),domains:p,hasMutatePermission:m,blocklet:n,site:f,mobile:c,showAllDomains:s,updateBlockletDomainAliases:a}),!!D.length&&e.jsx(W,{title:l("common.systemDomains"),description:l("common.systemDomainsDescription"),domains:D,hasMutatePermission:m,blocklet:n,site:f,mobile:c,updateBlockletDomainAliases:a})]}),!u.length&&(i?e.jsx(B,{size:16}):e.jsx(Kt,{children:l("common.empty")}))]})}ne.propTypes={hasPermission:o.bool,blocklet:o.object.isRequired,loadingRuntimeInfo:o.bool,inService:o.bool.isRequired,showAllDomains:o.bool,updateBlockletDomainAliases:o.func};ne.defaultProps={hasPermission:!1,loadingRuntimeInfo:!1,showAllDomains:!1,updateBlockletDomainAliases:()=>{}};function ae({domain:t,children:n,...i}){const{t:r,locale:s}=A(),{href:a,accessibility:l,value:c}=t,m=C.useCallback(()=>e.jsx(Xe,{content:fe(c),locale:s,style:{marginLeft:"4px",color:"#999",fontSize:"0.8em"}}),[c,s]);return!l||l.loading?e.jsxs(se,{component:"span",...i,children:[e.jsx($,{title:void 0,placement:"top-end",children:e.jsx(x,{component:"span",children:n})}),m(),e.jsx($,{title:r("blocklet.router.checkUrlAccessible"),placement:"top-end",children:e.jsx(x,{component:"span",className:"status",children:e.jsx(B,{size:13,style:{fontSize:"13px"}})})})]}):l.accessible?e.jsxs(se,{component:"span",...i,children:[e.jsx(x,{component:"a",href:a,target:"_blank",rel:"noopener noreferrer",sx:{color:t.loading?"text.disabled":void 0},children:e.jsx($,{title:void 0,placement:"top-end",children:e.jsx(x,{component:"span",children:n})})}),m()]}):e.jsxs(se,{component:"span",...i,children:[e.jsx($,{title:r("blocklet.router.urlInaccessible"),placement:"top-end",children:e.jsx(x,{component:"span",children:n})}),!t.loading&&m()]})}ae.propTypes={domain:te.isRequired,children:o.any.isRequired};const se=Bt(x)`
1
+ import{fM as Ue,a3 as G,i8 as yt,fL as jt,cX as Ne,j as e,cZ as bt,m as A,r as C,bs as vt,cu as X,hs as Ct,D as wt,M as x,C as B,bb as Rt,k as E,X as me,o as K,am as ue,E as Y,b5 as We,P as o,i9 as St,b0 as Oe,N as At,bq as q,_ as Pt,b as Te,aB as $,af as pe,y as F,B as J,aW as kt,U as He,aI as It,ab as Et,aP as Tt,aQ as qt,b6 as Lt,h as Ft,b7 as qe,b4 as $t,n as Bt,bD as _t,i5 as Ve,b8 as Ze,co as re,aZ as O,e6 as Qe,ia as Mt,b9 as zt,gk as Xe,gQ as fe,ib as Ge,ic as Ut,id as Nt,c_ as Ke,ie as Wt,ig as Ot,bk as Ht,H as xe,hC as Vt,a_ as Zt,Z as Le,t as Qt,aV as Xt,ff as Fe,ih as Gt}from"./index-BScCZen8.js";import{E as Kt}from"./index-BX4S2ZnM.js";import{u as Yt}from"./index-B-8BgkIX.js";import{d as Jt,a as en}from"./VerifiedUser-CCkZHpu5.js";import{L as Ye}from"./LoadingButton-DVPu322x.js";import{u as tn}from"./useAsync-CXjZIHoB.js";import{u as ee}from"./blocklet-Dj2klNma.js";import{w as Je}from"./permission-qJMVgxZB.js";import{d as et}from"./Delete-E4y6t1JP.js";import{A as nn}from"./actions-sMg6nWfa.js";import{D as on}from"./delete-confirm-BNoGa68c.js";import{D as $e}from"./status-IieMMby4.js";import{C as sn}from"./CardContent-DFEMxexG.js";import{d as rn}from"./Add-Cj1GwkKW.js";import{d as an}from"./CallMerge-XaiMaWvF.js";import{a as ln}from"./toLower-Lpm_cWIY.js";import{u as cn}from"./use-mobile-DxoBGZ2C.js";import{I as dn}from"./index-J_t6WXFJ.js";import{p as Be}from"./util-bCRieQtS.js";import"./useThemeProps-DCQ65cqf.js";import"./session--KhzErQz.js";import"./MoreHoriz-Cly_ulfn.js";import"./click-to-copy-Bd1pbmjJ.js";import"./shorten-label-DC9lls-_.js";import"./url-evaluation-Dkim9UU-.js";import"./is-path-prefix-equal-DRNfC8G7.js";const mn=Ue({});mn.interceptors.request.use(t=>{const n=window.blocklet?window.blocklet.prefix:"/";return t.baseURL=n||"",t.url=G("/api",String(t.url)),t.timeout=2e5,t.params=t.params||{},new URLSearchParams(t.url.split("?")[1]).has("locale")||(t.params.locale=yt()),t},t=>Promise.reject(t));const tt=(...t)=>Ue(...t),un=(t,n)=>n?t?[t,...Array.isArray(n)?n:[n]]:n:t,pn=(t,{width:n=600,height:i=700,name:r="did-domain:popup"}={})=>{const s=window.screenX+(window.innerWidth-n)/2,a=window.screenY+(window.innerHeight-i)/2,l=[`left=${s}`,`top=${a}`,`width=${n}`,`height=${i}`,"resizable=no","scrollbars=yes","status=yes","popup=yes"],c=window.open("",r,l.join(","));if(c===null)throw new Error("Failed to open popup");return c.location.href=jt(t,{opener:window.location.origin}),c},fn="z2qaGosS3rZ7m5ttP3Nd4V4qczR9TryTcRV4p",nt=async t=>{var m;if(!t||!(t!=null&&t.trim()))return null;const n=tt(),i=new URL(t);i.pathname="__blocklet__.js",i.searchParams.set("type","json");const{data:r}=await n.get(i.toString()),s=(m=r==null?void 0:r.componentMountPoints)==null?void 0:m.find(f=>f.did===fn),a=new URL(t);a.pathname=s==null?void 0:s.mountPoint;const l=a.toString(),c=G(l,"/api");return{base:l,api:c}},xn=Ne({buy:{button:{title:"Buy DID Domain"},status:{inProgress:"Please wait while we are processing your request, the domain will be automatically resolved to the current app after the purchase...",success:"Purchase completed!"},error:{failedToCreateSession:"Failed to create session"}}}),hn=Ne({buy:{button:{title:"购买 DID 域名"},status:{inProgress:"请稍等,我们正在处理您的请求,购买域名后会自动解析到当前的应用...",success:"购买完成!"},error:{failedToCreateSession:"创建会话失败"}}}),gn={zh:hn,en:xn},Dn=async({didDomainURL:t,delegatee:n,delegateePk:i})=>{const r=await nt(t);if(!r)return null;const s=tt({baseURL:r.api}),{data:a}=await s.post("/payment/session",{delegatee:n,delegateePk:i});return{sessionId:a.sessionId,baseURL:r.base}};function ot({delegatee:t,delegateePk:n,didDomainURL:i,locale:r,title:s,onSuccess:a,...l}){const{t:c}=A(),[m,f]=Yt({currentState:1}),u=C.useRef(null),D=vt(async()=>{const d=await Dn({didDomainURL:i,delegatee:t,delegateePk:n});return d},{debounceWait:500,debounceLeading:!0,debounceTrailing:!1,debounceMaxWait:3e3,refreshDeps:[],onError(d){console.error(d)}}),j=X(d=>{var y,R,I,w;d.data.type==="didDomain.success"&&(a==null||a({nftDid:(y=d.data)==null?void 0:y.nftDid,domain:(R=d.data)==null?void 0:R.domain,chainHost:(I=d.data)==null?void 0:I.chainHost}),(w=u.current)==null||w.close(),u.current=null,f({currentState:4}),setTimeout(()=>{f({currentState:8})},2e3))});Ct(()=>{var d;try{window.removeEventListener("message",j),(d=u.current)==null||d.close(),u.current=null}catch(y){console.warn("Failed to close popup",y)}});const p=X(()=>{f({currentState:1})}),b=X(()=>{if(f({currentState:2}),!D.data){console.error("Failed to create session");return}h({sessionId:D.data.sessionId,baseURL:D.data.baseURL})}),h=X(({sessionId:d,baseURL:y})=>{window.addEventListener("message",j);const R=new URL(y);R.searchParams.set("sessionId",d),R.searchParams.set("locale",r),R.searchParams.set("embed","1"),u.current=pn(R.toString());const I=setInterval(()=>{var w;(w=u.current)!=null&&w.closed&&(clearInterval(I),p())},1e3);return()=>clearInterval(I)});return e.jsxs(e.Fragment,{children:[e.jsx(Ye,{loading:D.loading,onClick:b,variant:"contained",startIcon:e.jsx(Jt,{}),...l,children:s||c("buy.button.title")}),e.jsxs(wt,{fullWidth:!0,maxWidth:"xs",open:m.currentState>1&&m.currentState<8,onClose:p,children:[!D.error&&e.jsxs(x,{sx:{display:"flex",alignItems:"center",flexDirection:"column",gap:2},children:[m.currentState===2&&e.jsx(B,{size:50}),m.currentState===4&&e.jsx(Rt,{sx:{color:"primary.main",fontSize:"5rem"}}),m.currentState===2&&e.jsx(E,{children:c("buy.status.inProgress")}),m.currentState===4&&e.jsx(E,{children:c("buy.status.success")})]}),D.error&&e.jsx(me,{severity:"error",children:c("buy.error.failedToCreateSession")})]})]})}const it={onSuccess:()=>{},title:""};ot.defaultProps=it;function st(t){return e.jsx(bt,{locale:t.locale,translations:gn,children:e.jsx(ot,{...t})})}st.defaultProps=it;function rt({nftDid:t,didDomainURL:n,locale:i,sx:r}){const{t:s}=A(),[a,l]=K({safeIframeRef:null,popoverAnchorEl:null}),c=C.useRef(null),m=ue(),f=Y(m.breakpoints.down("md")),u=b=>{l({popoverAnchorEl:b.currentTarget})},D=()=>{l({popoverAnchorEl:null})},j=tn(async()=>{const b=await nt(n);return b?b.base:null});if(!j.value)return null;if(j.loading)return e.jsx(B,{});const p=G(j.value,`/embed/domain?nft-did=${t}&locale=${i}`);return e.jsxs(e.Fragment,{children:[e.jsx(x,{component:"img",src:G(n,"/.well-known/service/blocklet/logo"),alt:"logo",width:16,height:16,onClick:u,sx:un({cursor:"pointer"},r)}),e.jsx(We,{id:"popover-info",open:!!a.popoverAnchorEl,anchorEl:a.popoverAnchorEl,onClose:D,anchorOrigin:{vertical:"bottom",horizontal:"right"},children:e.jsx("iframe",{ref:c,title:s("common.subscription"),width:f?"320px":"400px",height:f?"600px":"680px",style:{border:0},src:p})})]})}rt.defaultProps={sx:{}};const yn=t=>["waiting","creating","renewaling"].includes(t);function he(t){var Z,S;const{t:n}=A(),[i,r]=C.useState(!1),{inService:s}=q(),[a,l]=C.useState(null),{siteId:c,domain:m,onAdd:f,children:u,did:D}=t,[j,p]=C.useState(!1),{api:b,ws:{useSubscription:h}}=q(),{mode:d,actions:{refreshDomainStatus:y}}=ee(),R=Pt(async()=>{const{cert:g}=await b.findCertificateByDomain({input:{domain:m,did:D}});return g}),I=(g,N)=>{g.domain===m&&(p(!1),r(!1),s&&d!=="setup"&&(N==="success"?F.success(n("setup.domain.genCertSuccess",{domain:g.domain})):N==="error"&&F.error(n("setup.domain.genCertFailed",{domain:g.domain,message:g.message}))))};if(C.useEffect(()=>{var g;R.loading||p(yn((g=R.value)==null?void 0:g.status))},[R.loading,(Z=R.value)==null?void 0:Z.status]),h(Te.BlockletEvents.certError,g=>I(g,"error")),h(Te.BlockletEvents.certIssued,g=>{R.retry(),y(g.domain),I(g,"success")}),R.loading||((S=R.value)==null?void 0:S.status)==="normal")return"";const w=()=>{r(!1),l(null)},U=async()=>{r(!0);try{await b.issueLetsEncryptCert({input:{siteId:c,domain:m,did:D,inBlockletSetup:d==="setup"}}),f(),p(!0)}catch(g){console.error(g),p(!1)}finally{r(!1),l(null)}},T={title:n("router.cert.genLetsEncryptCert.title"),description:e.jsxs("div",{children:[e.jsx(me,{severity:"success",children:n("router.cert.genLetsEncryptCert.dnsTip")}),n("router.cert.genLetsEncryptCert.description")]}),confirm:n("common.confirm"),onConfirm:U,onCancel:w},V=g=>{g.stopPropagation(),l(T)};return e.jsxs(e.Fragment,{children:[j?e.jsx($,{title:n("router.cert.issuing"),children:e.jsx(B,{size:13,style:{fontSize:"13px"}})}):u({loading:i,open:V}),a&&e.jsx(pe,{color:"primary",title:a.title,description:a.description,confirm:a.confirm,params:a.params,onConfirm:a.onConfirm,onCancel:a.onCancel})]})}he.propTypes={domain:o.string.isRequired,did:o.string.isRequired,siteId:o.string.isRequired,onAdd:o.func,children:o.any};he.defaultProps={onAdd:()=>{},children:null};function ge(t){const{domain:n,domainStatus:i,...r}=t;return St(n)||!Oe(n)||At(i)||i!=null&&i.isHttps?"":e.jsx(he,{domain:n,...r})}ge.propTypes={domain:o.string.isRequired,domainStatus:o.shape({isHttps:o.bool}).isRequired,did:o.string.isRequired,onAdd:o.func,children:o.any};ge.defaultProps={onAdd:()=>{},children:null};function De(t){const{t:n}=A(),[i,r]=C.useState(!1),[s,a]=C.useState(null),{id:l,domain:c,children:m,teamDid:f,onDelete:u}=t,{api:D}=q(),j=()=>{r(!1),a(null)},p=async()=>{r(!0);try{await D.deleteDomainAlias({input:{id:l,domainAlias:c,teamDid:f}}),u==null||u(),await kt(2e3)}catch(d){F.error(d.message)}finally{a(null),r(!1)}},b={keyName:c,title:n("router.domainAlias.delete.title"),description:n("router.domainAlias.delete.description",{domain:c}),confirmPlaceholder:n("router.domainAlias.delete.confirmPlaceholder",{domain:c}),confirm:n("common.delete"),onConfirm:p,onCancel:j},h=d=>{d.stopPropagation(),a(b)};return e.jsxs(e.Fragment,{children:[typeof m=="function"?m({loading:i,open:h}):e.jsxs(J,{edge:"end",onClick:h,size:"small",className:"rule-action",color:"error","data-cy":"action-delete-domain-alias",children:[i?e.jsx(B,{size:16}):e.jsx(et,{style:{fontSize:16}}),n("common.delete")]}),s&&e.jsx(on,{keyName:s.keyName,title:s.title,description:s.description,confirmPlaceholder:s.confirmPlaceholder,confirm:s.confirm,params:s.params,onConfirm:s.onConfirm,onCancel:s.onCancel})]})}De.propTypes={id:o.string.isRequired,domain:o.string.isRequired,children:o.any,teamDid:o.string,onDelete:o.func};De.defaultProps={children:null,teamDid:"",onDelete:null};function ye({site:t,domain:n,blocklet:i,onDelete:r}){const{t:s}=A(),a=n.value===window.location.hostname;return e.jsx(nn,{"data-cy":"domain-actions",size:"large",actions:[({close:l})=>{var c;return e.jsx(De,{id:t.id,domain:n.value,teamDid:(c=i==null?void 0:i.meta)==null?void 0:c.did,onDelete:r,children:({open:m})=>e.jsx($,{title:a?s("blocklet.router.currentDomainTip"):"",children:e.jsx("span",{children:e.jsxs(He,{disabled:n.isProtected||a,dense:!0,onClick:f=>{l(),m(f)},"data-cy":"action-toggle-block",children:[e.jsx(It,{style:{minWidth:24,marginRight:8},children:e.jsx(et,{})}),e.jsx(Et,{primary:s("common.delete")})]},"remove")})})})}]})}ye.propTypes={site:o.object.isRequired,domain:o.object.isRequired,blocklet:o.object.isRequired,onDelete:o.func};ye.defaultProps={onDelete:()=>{}};var je={},jn=qt;Object.defineProperty(je,"__esModule",{value:!0});var at=je.default=void 0,bn=jn(Tt()),vn=e;at=je.default=(0,bn.default)((0,vn.jsx)("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm-1 6h2v2h-2zm0 4h2v6h-2z"}),"PrivacyTip");const te=o.shape({href:o.string,accessibility:o.shape({loading:o.bool,accessible:o.bool}),domainStatus:o.shape({isHttps:o.bool,matchedCert:o.object}),dns:o.shape({resolved:o.bool,ip:o.string})});function be({certificate:t}){const[n,i]=C.useState(null),r=q(),{t:s,locale:a}=A(),l=f=>{i(f.currentTarget)},c=()=>{i(null)},m=!!n;return e.jsxs(e.Fragment,{children:[e.jsx(en,{"aria-owns":m?"mouse-over-popover":void 0,onMouseEnter:l,onMouseLeave:c,style:{color:"#44cdc6",fontSize:"1em",cursor:"pointer"}}),e.jsx(We,{id:"mouse-over-popover",style:{pointerEvents:"none"},open:m,anchorEl:n,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:c,disableRestoreFocus:!0,children:e.jsx(Lt,{children:e.jsxs(sn,{style:{display:"flex"},children:[e.jsx("div",{children:e.jsx("img",{src:`${r.imgPrefix}/https-certificate-icon.png`,alt:"certificate icon",style:{maxHeight:"100%",maxWidth:"100%"}})}),e.jsxs(E,{component:"div",style:{marginLeft:"16px"},children:[e.jsx(E,{component:"div",style:{fontWeight:"bold"},children:t.domain}),e.jsx(E,{component:"div",children:`${s("common.issuer")}: ${Ft(t,"issuer.commonName","")}`}),e.jsx(E,{component:"div",children:`${s("router.cert.issuedOn")}: ${qe(t.validFrom,a)}`}),e.jsx(E,{component:"div",children:`${s("router.cert.expiryOn")}: ${qe(t.validTo,a)}`})]})]})})})]})}be.propTypes={certificate:o.object};be.defaultProps={certificate:{}};function H({domain:t,filters:n}){const{t:i}=A(),{value:r,domainStatus:s}=t;if(!Oe(r))return null;let a=null,l=null;const{isHttps:c,matchedCert:m}=s;if(!$t(r)){const{dns:{resolved:u,ip:D}={}}=s;u||D==="127.0.0.1"?a=e.jsx($,{title:i("router.domain.verify.ok"),children:e.jsx($e,{color:"success"})}):a=e.jsx($,{title:i("router.domain.verify.notResolved"),children:e.jsx($e,{color:"error"})})}c?l=e.jsx(be,{certificate:m}):l=e.jsx($,{title:i("router.domain.https.bad"),children:e.jsx(at,{style:{color:"#D0021B",fontSize:"1em",cursor:"pointer"}})});const f=n.map(u=>u==="domain"?a:u==="http"?l:null);return C.createElement(C.Fragment,null,...f)}H.propTypes={domain:te.isRequired,filters:o.array};H.defaultProps={filters:["domain","http"]};const Cn=Je(ne,"mutate_blocklets"),wn=Je(ne,"",_t);function Rn(t){const{inService:n}=q(),{blocklet:i,loadingRuntimeInfo:r}=ee();let s=Cn;return n&&(s=wn),e.jsx(s,{...t,blocklet:i,inService:n,loadingRuntimeInfo:r})}const _e="nft-domain";function ne({hasPermission:t,blocklet:n,loadingRuntimeInfo:i,inService:r,showAllDomains:s,updateBlockletDomainAliases:a}){var h;const{t:l}=A(),c=Y(d=>d.breakpoints.down("md")),m=C.useMemo(()=>{let d=t;return Ve(n)&&(d=d&&r),d},[t,r,n]),{site:f}=n,u=C.useMemo(()=>{var d;return Ze((d=n.site)==null?void 0:d.domainAliases)},[(h=n.site)==null?void 0:h.domainAliases]),D=C.useMemo(()=>u.filter(d=>!re.isCustomDomain(d.value)),[u]),j=C.useMemo(()=>u.filter(d=>re.isCustomDomain(d.value)),[u]),p=C.useMemo(()=>j.filter(d=>d.type!==_e),[j]),b=C.useMemo(()=>j.filter(d=>d.type===_e),[j]);return e.jsxs(e.Fragment,{children:[e.jsxs(O,{gap:3,children:[!!b.length&&e.jsx(W,{title:l("common.didDomains"),description:l("common.didDomainsDescription"),domains:b,hasMutatePermission:m,blocklet:n,site:f,mobile:c,showAllDomains:s,updateBlockletDomainAliases:a}),!!p.length&&e.jsx(W,{title:l("common.manualDomains"),description:l("common.manualDomainsDescription"),domains:p,hasMutatePermission:m,blocklet:n,site:f,mobile:c,showAllDomains:s,updateBlockletDomainAliases:a}),!!D.length&&e.jsx(W,{title:l("common.systemDomains"),description:l("common.systemDomainsDescription"),domains:D,hasMutatePermission:m,blocklet:n,site:f,mobile:c,updateBlockletDomainAliases:a})]}),!u.length&&(i?e.jsx(B,{size:16}):e.jsx(Kt,{children:l("common.empty")}))]})}ne.propTypes={hasPermission:o.bool,blocklet:o.object.isRequired,loadingRuntimeInfo:o.bool,inService:o.bool.isRequired,showAllDomains:o.bool,updateBlockletDomainAliases:o.func};ne.defaultProps={hasPermission:!1,loadingRuntimeInfo:!1,showAllDomains:!1,updateBlockletDomainAliases:()=>{}};function ae({domain:t,children:n,...i}){const{t:r,locale:s}=A(),{href:a,accessibility:l,value:c}=t,m=C.useCallback(()=>e.jsx(Xe,{content:fe(c),locale:s,style:{marginLeft:"4px",color:"#999",fontSize:"0.8em"}}),[c,s]);return!l||l.loading?e.jsxs(se,{component:"span",...i,children:[e.jsx($,{title:void 0,placement:"top-end",children:e.jsx(x,{component:"span",children:n})}),m(),e.jsx($,{title:r("blocklet.router.checkUrlAccessible"),placement:"top-end",children:e.jsx(x,{component:"span",className:"status",children:e.jsx(B,{size:13,style:{fontSize:"13px"}})})})]}):l.accessible?e.jsxs(se,{component:"span",...i,children:[e.jsx(x,{component:"a",href:a,target:"_blank",rel:"noopener noreferrer",sx:{color:t.loading?"text.disabled":void 0},children:e.jsx($,{title:void 0,placement:"top-end",children:e.jsx(x,{component:"span",children:n})})}),m()]}):e.jsxs(se,{component:"span",...i,children:[e.jsx($,{title:r("blocklet.router.urlInaccessible"),placement:"top-end",children:e.jsx(x,{component:"span",children:n})}),!t.loading&&m()]})}ae.propTypes={domain:te.isRequired,children:o.any.isRequired};const se=Bt(x)`
2
2
  display: inline-block;
3
3
  vertical-align: middle;
4
4