@abtnode/webapp 1.16.44-beta-20250523-232943-369d21c5 → 1.16.44-beta-20250526-130644-5e05dc90

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 (208) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{AdapterDayjs-BLiJpepT.js → AdapterDayjs-bsD4OAFM.js} +1 -1
  4. package/dist/assets/{Add-B6SubMna.js → Add-BYFWsyUF.js} +1 -1
  5. package/dist/assets/{ArrowDropDown-xGKcJlzT.js → ArrowDropDown-b23Ws4Dh.js} +1 -1
  6. package/dist/assets/{Autocomplete-DcWkc_vX.js → Autocomplete-Cbi7HzEa.js} +1 -1
  7. package/dist/assets/{Breadcrumbs-CpID4vgW.js → Breadcrumbs-C_csYT5C.js} +1 -1
  8. package/dist/assets/{ButtonGroup-BwF8mqMo.js → ButtonGroup-BbvSuEoF.js} +1 -1
  9. package/dist/assets/{CSSTransition-DwNIlRBk.js → CSSTransition-CJ-9QKlG.js} +1 -1
  10. package/dist/assets/{CallMerge-Dx0ABV96.js → CallMerge-SZDzfJgb.js} +1 -1
  11. package/dist/assets/{CardContent-B7pLobRd.js → CardContent-BCodnoZu.js} +1 -1
  12. package/dist/assets/{ChevronLeft-BFPYYAY4.js → ChevronLeft-BCWTA2ES.js} +1 -1
  13. package/dist/assets/{ChevronRight-AScR76u1.js → ChevronRight-B8F_ru7A.js} +1 -1
  14. package/dist/assets/{Clear-CgFuQS8E.js → Clear-n1FkleT7.js} +1 -1
  15. package/dist/assets/{Close-DMagDs34.js → Close-Cem8y-ph.js} +1 -1
  16. package/dist/assets/{Community-Cnc3hgQ2.js → Community-stiBX7J2.js} +1 -1
  17. package/dist/assets/{Delete-DBAS8mVY.js → Delete-CwKOurFN.js} +1 -1
  18. package/dist/assets/{Delete-CT7C6Kie.js → Delete-D0GFkYtH.js} +1 -1
  19. package/dist/assets/{DeleteOutline-3nz1tDzg.js → DeleteOutline-CSi3y8ZI.js} +1 -1
  20. package/dist/assets/{Done-CX1gjQiO.js → Done-D3hzYYUk.js} +1 -1
  21. package/dist/assets/{Edit-CBtokBzw.js → Edit-DUZ7gP_b.js} +1 -1
  22. package/dist/assets/{ErrorOutline-vNCs_MWh.js → ErrorOutline-zzYP4d-G.js} +1 -1
  23. package/dist/assets/{HelpOutline-C3TbxHgu.js → HelpOutline-BtTkcIQl.js} +1 -1
  24. package/dist/assets/{Holiday-BW8-5cu1.js → Holiday-CFhQLlq2.js} +1 -1
  25. package/dist/assets/{Launch-Gzp4KZV3.js → Launch-C-pZPEtf.js} +1 -1
  26. package/dist/assets/{Link-C1-DzkbR.js → Link-DoRwHSx9.js} +1 -1
  27. package/dist/assets/{ListItemButton-WitFXLXy.js → ListItemButton-C4nle7Vw.js} +1 -1
  28. package/dist/assets/{ListSubheader-BPukSiYH.js → ListSubheader-CN5kB_3v.js} +1 -1
  29. package/dist/assets/{LoadingButton-D1yBseaf.js → LoadingButton-DzOnJ8zq.js} +1 -1
  30. package/dist/assets/{LockIcon-C0-sdX_W.js → LockIcon-DzCd9ccj.js} +1 -1
  31. package/dist/assets/{Meeting-Cni7k1GA.js → Meeting-1bsu0vcq.js} +1 -1
  32. package/dist/assets/{MoreHoriz-BwjT-Th3.js → MoreHoriz-DC7IikA2.js} +1 -1
  33. package/dist/assets/{MoreVert-LcWQtq9o.js → MoreVert-CrQ5BD1O.js} +1 -1
  34. package/dist/assets/{OffSick-G3qdzC0H.js → OffSick-xV6w5rWa.js} +1 -1
  35. package/dist/assets/{OpenInNew-WY83GLbI.js → OpenInNew-DeXzob2p.js} +1 -1
  36. package/dist/assets/{Public-BVtXGGU3.js → Public-B575ztUz.js} +1 -1
  37. package/dist/assets/{Refresh-B52Zvr1H.js → Refresh-2rMRmiq8.js} +1 -1
  38. package/dist/assets/{SchemaReference.es-DgPLsBl7.js → SchemaReference.es-Dde3PXx0.js} +1 -1
  39. package/dist/assets/{Search-BVjKyf6X.js → Search-DlTi3_X0.js} +1 -1
  40. package/dist/assets/{Slider-DJkYLVcS.js → Slider-DVwffPl5.js} +1 -1
  41. package/dist/assets/{Stepper-DpIVkIVF.js → Stepper-DBIHjo83.js} +1 -1
  42. package/dist/assets/{Switch-BEuyXxAj.js → Switch-Qp41_PVH.js} +1 -1
  43. package/dist/assets/{TableRow-De6rTaLH.js → TableRow-CDB9WIef.js} +1 -1
  44. package/dist/assets/{TableSearch-C-ei22_d.js → TableSearch-C_ybT7kk.js} +1 -1
  45. package/dist/assets/{ToggleButtonGroup-Cn-eBR9-.js → ToggleButtonGroup-C-CIJkUk.js} +1 -1
  46. package/dist/assets/{Verified-CuZqBCQf.js → Verified-CLm0sUb6.js} +1 -1
  47. package/dist/assets/{VerifiedUser-1sSxKHO8.js → VerifiedUser-Cz-5rgpe.js} +1 -1
  48. package/dist/assets/{ViewColumn-Z9CzTkc6.js → ViewColumn-Db8V4QN9.js} +1 -1
  49. package/dist/assets/{ViewList-CMZhtdms.js → ViewList-BaTy1Ph1.js} +1 -1
  50. package/dist/assets/{WorkingRemotely-Bs2JhSor.js → WorkingRemotely-C_qc4360.js} +1 -1
  51. package/dist/assets/{_createAggregator-B8uLgymt.js → _createAggregator-CEr_MPC5.js} +1 -1
  52. package/dist/assets/{actions-C-FzNJrL.js → actions-DQy4Y2na.js} +1 -1
  53. package/dist/assets/{actions-CpNtRMjL.js → actions-DveJjfxt.js} +1 -1
  54. package/dist/assets/{agreement-DiJIrinp.js → agreement-DeYzUIM7.js} +1 -1
  55. package/dist/assets/api-sNy9Buh2.js +1 -0
  56. package/dist/assets/{appearance-DFXmNgG9.js → appearance-DbHWwKo-.js} +1 -1
  57. package/dist/assets/{audit-logs-7jpmSelT.js → audit-logs-DWljSpy4.js} +1 -1
  58. package/dist/assets/{base-chart-SdbqVXfX.js → base-chart-CneSkRrp.js} +1 -1
  59. package/dist/assets/{blocklet-B7Zji5DT.js → blocklet-BNsbNDuf.js} +1 -1
  60. package/dist/assets/{brace-fold.es-CM_B0aiu.js → brace-fold.es-CHQJKmOH.js} +1 -1
  61. package/dist/assets/{chain-DBedh8bm.js → chain-DZftcLJ3.js} +1 -1
  62. package/dist/assets/{click-to-copy-BsvcMemr.js → click-to-copy-ADdBawgq.js} +1 -1
  63. package/dist/assets/cloneDeep-JEYtEd7F.js +1 -0
  64. package/dist/assets/{closebrackets.es-BT2tUB9N.js → closebrackets.es-DDKcuj7l.js} +1 -1
  65. package/dist/assets/{codemirror.es-RSOcc6GZ.js → codemirror.es-CDd3nIcD.js} +1 -1
  66. package/dist/assets/{collapse-CxLV5r0z.js → collapse-S-vTWAhi.js} +1 -1
  67. package/dist/assets/{comment.es-HeBeZZGe.js → comment.es-BCYde1B6.js} +1 -1
  68. package/dist/assets/config-navigation-CNRkvto9.js +86 -0
  69. package/dist/assets/{connect-to-BrVjRNZt.js → connect-to-Dr4HhNJU.js} +1 -1
  70. package/dist/assets/{delete-confirm-CjqJdSpd.js → delete-confirm-DoYSwIFx.js} +1 -1
  71. package/dist/assets/{detail-DvWKfPF5.js → detail-B9ggyBgZ.js} +3 -3
  72. package/dist/assets/{dialog.es-CdoDmecR.js → dialog.es-MsWV9Nfp.js} +1 -1
  73. package/dist/assets/{domains-HOzCVRIr.js → domains-B3WgGegI.js} +1 -1
  74. package/dist/assets/{download-B2lNfZpo.js → download-CCFD10FS.js} +1 -1
  75. package/dist/assets/emotion-react.browser.esm-BsFIkhYD.js +1 -0
  76. package/dist/assets/{foldgutter.es-BU8vz30T.js → foldgutter.es-Dlj2we2Y.js} +1 -1
  77. package/dist/assets/{get-safe-url-CA8_5OeR.js → get-safe-url-DWTB-tRE.js} +1 -1
  78. package/dist/assets/{get-safe-url-CgXktKsm.js → get-safe-url-h3P_Qh4v.js} +1 -1
  79. package/dist/assets/getValidReactChildren-DTJlyDSN.js +1 -0
  80. package/dist/assets/{hint.es-D6ygv-Ud.js → hint.es-Dy1C7k3I.js} +1 -1
  81. package/dist/assets/{hint.es2-DeMP8e9y.js → hint.es2-NY7C4sAJ.js} +1 -1
  82. package/dist/assets/{iframe-Bhr8GDCE.js → iframe-Cs_wGN9V.js} +1 -1
  83. package/dist/assets/{index-BHcs0slQ.js → index-0U-vrSlK.js} +1 -1
  84. package/dist/assets/{index-Cxtz33Uv.js → index-1REZAjOu.js} +1 -1
  85. package/dist/assets/{index-D_F7-gyj.js → index-1k7DvKxH.js} +1 -1
  86. package/dist/assets/{index-Ul7VaxKJ.js → index-1l3rmmE5.js} +1 -1
  87. package/dist/assets/{index-Dd8yxjG4.js → index-7iYq2V4L.js} +1 -1
  88. package/dist/assets/{index-DXkrxNwp.js → index-B4oRLjo7.js} +1 -1
  89. package/dist/assets/{index-Bh782xzD.js → index-BA0q44b7.js} +1 -1
  90. package/dist/assets/{index-MT0i2iOl.js → index-BI9Br-d5.js} +1 -1
  91. package/dist/assets/{index-CRiyLOjk.js → index-BIr1sHAt.js} +1 -1
  92. package/dist/assets/index-BKivhg3S.js +6 -0
  93. package/dist/assets/{index-CNaJckFK.js → index-BPpMhVpd.js} +3 -3
  94. package/dist/assets/{index-CGd5LtOY.js → index-BTVRLsIg.js} +1 -1
  95. package/dist/assets/{index-BwIYMrsC.js → index-BeEM_0q3.js} +1 -1
  96. package/dist/assets/{index-DUeIl46T.js → index-Bm4jeiDa.js} +1 -1
  97. package/dist/assets/{index-D6XCWvDm.js → index-Bnl28jeD.js} +1 -1
  98. package/dist/assets/{index-jEjcw4up.js → index-BoDwKZkr.js} +1 -1
  99. package/dist/assets/{index-B6mALCYH.js → index-Bt1dFWNc.js} +1 -1
  100. package/dist/assets/{index-ccWoyWFx.js → index-Btu-tCxx.js} +7 -7
  101. package/dist/assets/{index-DtqeRbTN.js → index-BuuM5jo8.js} +1 -1
  102. package/dist/assets/{index-DxWeQQqZ.js → index-CIH-dF5H.js} +1 -1
  103. package/dist/assets/{index-jLzUI2_x.js → index-CNOx9gM8.js} +1 -1
  104. package/dist/assets/{index-yz00dDKs.js → index-CSOOaDVw.js} +3 -3
  105. package/dist/assets/index-CcKekV6p.js +1 -0
  106. package/dist/assets/{index-BILnzeuZ.js → index-Cjt_N1wY.js} +1 -1
  107. package/dist/assets/{index-C7XZPy3K.js → index-Co9nkuve.js} +1 -1
  108. package/dist/assets/{index-AxNvb4Iw.js → index-CuFXa0mJ.js} +1 -1
  109. package/dist/assets/{index-BjDWYhhh.js → index-Cvhm7Tb9.js} +1 -1
  110. package/dist/assets/{index-CsJ1SLdq.js → index-D5xjISzz.js} +1 -1
  111. package/dist/assets/{index-bajfduTV.js → index-DM-X6w1C.js} +1 -1
  112. package/dist/assets/{index-BFotr4ae.js → index-DhUL5M2s.js} +1 -1
  113. package/dist/assets/{index-CkvAmFX4.js → index-DjMNpYZS.js} +1 -1
  114. package/dist/assets/{index-otCXU1uz.js → index-DjfLAu4m.js} +1 -1
  115. package/dist/assets/{index-C4_lviTb.js → index-DuQ11Re2.js} +1 -1
  116. package/dist/assets/{index-BSmu-hBe.js → index-DuTpAxAe.js} +3 -3
  117. package/dist/assets/{index-DqFUEzLa.js → index-Dx0P0x6J.js} +1 -1
  118. package/dist/assets/{index-CRwIMkPp.js → index-EWwtp8EM.js} +1 -1
  119. package/dist/assets/{index-DMZMNjTk.js → index-IViEbtE5.js} +1 -1
  120. package/dist/assets/{index-sIpE29lb.js → index-JsgthZUN.js} +1 -1
  121. package/dist/assets/{index-B8_LPRJ9.js → index-MgaM83zd.js} +1 -1
  122. package/dist/assets/{index-K1bGg3g2.js → index-PRwzODZo.js} +1 -1
  123. package/dist/assets/{index-D1AXuR6p.js → index-RNqR3FXM.js} +5 -5
  124. package/dist/assets/{index-D2rnKn07.js → index-Vn3yqa3y.js} +1 -1
  125. package/dist/assets/{index-BOPDHYJq.js → index-_Y4g7Ki7.js} +1 -1
  126. package/dist/assets/{index-DV6EQKFf.js → index-bbeMAhGa.js} +1 -1
  127. package/dist/assets/{index-C1T4p2CL.js → index-c-0gMptp.js} +1 -1
  128. package/dist/assets/{index-hsXwdita.js → index-e66xJJ-x.js} +130 -130
  129. package/dist/assets/{index-Cd_2D3Sl.js → index-f9QTV2yS.js} +1 -1
  130. package/dist/assets/{index-CR4B_UPh.js → index-gkWEdVLt.js} +1 -1
  131. package/dist/assets/{index-DmndvspS.js → index-rsJnFyyL.js} +1 -1
  132. package/dist/assets/{index.esm-CiAi8rZc.js → index.esm-BiZwp2sI.js} +1 -1
  133. package/dist/assets/{info-addon.es-BSeCJ9m1.js → info-addon.es-ipFCgBgs.js} +1 -1
  134. package/dist/assets/{info.es-B00gqIVn.js → info.es-CXZgqePH.js} +1 -1
  135. package/dist/assets/{install-from-url-CeY10_5r.js → install-from-url-CSiK3Yao.js} +1 -1
  136. package/dist/assets/{invitation-C-a_EKGE.js → invitation-D6ia_iSD.js} +1 -1
  137. package/dist/assets/is-path-prefix-equal-CF4M2MVl.js +1 -0
  138. package/dist/assets/{item-ChksU4uH.js → item-11xHJrBQ.js} +1 -1
  139. package/dist/assets/{javascript.es-Nrg3dwD2.js → javascript.es-BOFqQkgH.js} +1 -1
  140. package/dist/assets/{jump-to-line.es-DytSz8B4.js → jump-to-line.es-Cx_iKetf.js} +1 -1
  141. package/dist/assets/{jump.es-qNIPcsKh.js → jump.es-UmQ5eqNY.js} +1 -1
  142. package/dist/assets/{lint.es-CM5l-pk5.js → lint.es-CkuzJ0c7.js} +1 -1
  143. package/dist/assets/{lint.es2-CdyZVqYu.js → lint.es2-CPQEeICW.js} +1 -1
  144. package/dist/assets/{lint.es3--4lw23-T.js → lint.es3-B2trihuW.js} +1 -1
  145. package/dist/assets/{list-header-CY82YyA-.js → list-header-ovy1bk-e.js} +1 -1
  146. package/dist/assets/{log-WrdeB8oi.js → log--8P_TkIi.js} +1 -1
  147. package/dist/assets/{lottie-react.esm-kgcpgzdv.js → lottie-react.esm-BWBFsFNg.js} +1 -1
  148. package/dist/assets/{matchbrackets.es-CTK-n4WV.js → matchbrackets.es-DnV41gw8.js} +1 -1
  149. package/dist/assets/{memory-COTxwn8h.js → memory-CLu87brV.js} +1 -1
  150. package/dist/assets/{metric-pxFNJXub.js → metric-CgjE4Yze.js} +1 -1
  151. package/dist/assets/{mode.es-BOrUao3h.js → mode.es-CikDBGfg.js} +1 -1
  152. package/dist/assets/{mode.es2-DSNTJt4C.js → mode.es2-C1ydBzoH.js} +1 -1
  153. package/dist/assets/{mode.es3-DVFLZO9P.js → mode.es3-dTgcRvSz.js} +1 -1
  154. package/dist/assets/omit-zgah02wK.js +1 -0
  155. package/dist/assets/{onlineParser.es-DXqaDUWT.js → onlineParser.es-CWgvKSNI.js} +1 -1
  156. package/dist/assets/{overview-CQH3sl8k.js → overview-APoIqy5P.js} +1 -1
  157. package/dist/assets/{permission-BcsRTq-z.js → permission-CtZli8Hf.js} +1 -1
  158. package/dist/assets/{preference-D6gVeL13.js → preference-0MD46HXq.js} +3 -3
  159. package/dist/assets/{raf-schd.esm-4rNe_vqV.js → raf-schd.esm-CjWurqZc.js} +1 -1
  160. package/dist/assets/refType-CrQ6NnaY.js +1 -0
  161. package/dist/assets/{resource-dialog-ChJDsQlO.js → resource-dialog-DtmI53Zf.js} +19 -19
  162. package/dist/assets/{runtime-CxUATjE0.js → runtime-BjHuHXy7.js} +1 -1
  163. package/dist/assets/{schema-QrpPKg0u.js → schema-DG7Gb1Zp.js} +2 -2
  164. package/dist/assets/sdk-CGbU2sfF.js +1 -0
  165. package/dist/assets/{search.es-C7IRtXJD.js → search.es-sAbvHQqG.js} +1 -1
  166. package/dist/assets/{searchcursor.es-DtM5l0hm.js → searchcursor.es-BiTKqSTz.js} +1 -1
  167. package/dist/assets/{service-BKkazWLo.js → service-yH9ZzgNY.js} +1 -1
  168. package/dist/assets/{shorten-label-DIFv6Qd6.js → shorten-label-w_L-1NYs.js} +1 -1
  169. package/dist/assets/{show-hint.es-XOudcdA5.js → show-hint.es-nq7hJT2o.js} +1 -1
  170. package/dist/assets/{simple-select-Cay1Q_fh.js → simple-select-N7r4TYd1.js} +1 -1
  171. package/dist/assets/{spaces-nJAMiLX6.js → spaces-BTe9w9go.js} +1 -1
  172. package/dist/assets/{status-DmJZiE7J.js → status-DRBez5Qf.js} +1 -1
  173. package/dist/assets/{status-kUWkWAv4.js → status-DTf_MR_m.js} +1 -1
  174. package/dist/assets/{sublime.es-CeCR_B9o.js → sublime.es-DZ-Kt_RU.js} +1 -1
  175. package/dist/assets/{switch-control-DQnqNSWg.js → switch-control-Cohshryy.js} +1 -1
  176. package/dist/assets/{table-icons-OCqVUqzX.js → table-icons-Bs7Hkb6l.js} +1 -1
  177. package/dist/assets/{table-tips-CKrQ79sg.js → table-tips-BLg1K8Th.js} +1 -1
  178. package/dist/assets/{team-C07jDfHF.js → team-BczhIV16.js} +1 -1
  179. package/dist/assets/{toLower-DkxjP5Df.js → toLower-PXiIHwDf.js} +1 -1
  180. package/dist/assets/toUpper-Cv02sfIb.js +1 -0
  181. package/dist/assets/{traffic-Cf_YvLXi.js → traffic-CoY4yr_p.js} +1 -1
  182. package/dist/assets/{url-evaluation-CTRSa9ZC.js → url-evaluation-DRKjUU7g.js} +1 -1
  183. package/dist/assets/{url-join-ChZrV7Xa.js → url-join-CM2acrDe.js} +1 -1
  184. package/dist/assets/{use-mobile-Btxuy2XK.js → use-mobile-B7_S05ne.js} +1 -1
  185. package/dist/assets/{use-mobile-CecRxviL.js → use-mobile-D02_HykR.js} +1 -1
  186. package/dist/assets/{useAsync-D_akrj3d.js → useAsync-D-2V_lHb.js} +1 -1
  187. package/dist/assets/{useAsyncRetry-CWTbJjuS.js → useAsyncRetry-DYNhhV2W.js} +1 -1
  188. package/dist/assets/{useLocalStorage-Cq7sRYfb.js → useLocalStorage-ChdS5XVQ.js} +1 -1
  189. package/dist/assets/{useThemeProps-B56eXTgo.js → useThemeProps-Dk-4jx1U.js} +1 -1
  190. package/dist/assets/{util-BMW_0_6P.js → util-wc6KkzlL.js} +1 -1
  191. package/dist/assets/{wait-container-CuKeuwrf.js → wait-container-BIM4llf9.js} +1 -1
  192. package/dist/assets/{withStyles-Y8PX3nVz.js → withStyles-Dcw4_09o.js} +1 -1
  193. package/dist/assets/{wrap-locale-DifWX99q.js → wrap-locale-B6I84qwC.js} +1 -1
  194. package/dist/index.html +1 -1
  195. package/dist/service-worker.js +1 -1
  196. package/package.json +1 -1
  197. package/dist/assets/api-D8wCBLkG.js +0 -1
  198. package/dist/assets/cloneDeep-CZ9xagkL.js +0 -1
  199. package/dist/assets/config-navigation-xuqRoE1o.js +0 -86
  200. package/dist/assets/emotion-react.browser.esm-CRPrOqTl.js +0 -1
  201. package/dist/assets/getValidReactChildren-BTgp7BID.js +0 -1
  202. package/dist/assets/index-BlCna4p9.js +0 -1
  203. package/dist/assets/index-X7qxXYI4.js +0 -6
  204. package/dist/assets/is-path-prefix-equal-Cb4XUN1S.js +0 -1
  205. package/dist/assets/omit-BQN0r_Sl.js +0 -1
  206. package/dist/assets/refType-wo8smHzx.js +0 -1
  207. package/dist/assets/sdk-B6Epvrj4.js +0 -1
  208. package/dist/assets/toUpper-DIQ1Y_cr.js +0 -1
@@ -1 +1 @@
1
- import{r as g,bq as B,aU as U,j as s,Z as R,M as b,y as x,b as I,a3 as v,m as D,K as S,k as C,P as u,a4 as F,a5 as _,X as E,H as T,w as $,az as W,a2 as k,an as z}from"./index-hsXwdita.js";import{D as G,a as K,b as A}from"./index-BwIYMrsC.js";import"./index-otCXU1uz.js";import"./index-BojVbZw0.js";import{b as H,c as Z,d as M}from"./spaces-nJAMiLX6.js";import{u as w}from"./blocklet-B7Zji5DT.js";import{d as X}from"./DeleteOutline-3nz1tDzg.js";import"./api-D8wCBLkG.js";function Y(){const[e,r]=g.useState(null),{blocklet:t}=w();return g.useEffect(()=>{r(H(t))},[t]),{storageEndpoint:e}}const L=g.createContext({}),{Provider:J,Consumer:pe}=L;function N({children:e}){const[r,t]=g.useState(!1),[o,a]=g.useState(null),{blocklet:c,actions:{refreshBlocklet:f}}=w(),{storageEndpoint:l}=Y(),{api:m}=B();U(async()=>{try{if(t(!0),b(l)){a(null);return}const p=await Z(l);a(p)}catch(p){console.error(p),x.error(p.message)}finally{t(!1)}},[l]);const n=()=>{a(null),f()},d=async p=>{a(p),await i(p.endpoint),f()},i=async p=>{await m.configBlocklet({input:{did:[c.meta.did],configs:[{key:I.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPACE_ENDPOINT,value:p}]}}),f()};g.useEffect(()=>{async function p(){if(!o)return;const h=await M(o.endpoint,o.name),O=v(o,{name:h});a(O)}p()},[]);const y=!!(l&&o);return s.jsx(J,{value:{loading:r,spaceGateway:o,deleteSpaceGateway:n,updateSpaceGateway:d,storageEndpoint:l,settingStorageEndpoint:i,hasStorageEndpoint:y},children:e})}N.propTypes={children:R.node.isRequired};N.defaultProps={};function Q(){return g.useContext(L)}function V(){const{t:e}=D();return s.jsx(S,{children:s.jsxs(S,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignContent:"center",children:[s.jsx(G,{style:{width:250,height:250}}),s.jsx(C,{marginTop:"24px",children:e("storage.spaces.connect.providerForStorage")})]})})}V.propTypes={};function j({spaceGateway:e,onDeleteSpace:r}){const{t}=D(),[o,a]=g.useState(!1),[c,f]=g.useState(!1),l=(n,d)=>{n==null||n.stopPropagation(),a(d)},m=async n=>{try{n==null||n.stopPropagation(),f(!0),await r(e),a(!1)}catch(d){console.error(d),x.error(`${t("storage.spaces.gateway.delete.failed")}: ${E(d)}`)}finally{f(!1)}};return s.jsxs(s.Fragment,{children:[s.jsx(F,{size:"small",onClick:n=>l(n,!0),children:s.jsx(X,{})}),s.jsx(_,{title:t("storage.spaces.gateway.delete.title"),open:o,confirmButton:{text:t("common.confirm"),props:{size:"small",variant:"contained",color:"error",loading:c}},cancelButton:{text:t("common.cancel"),props:{size:"small",variant:"outlined"}},onConfirm:m,onCancel:n=>l(n,!1),children:s.jsx(C,{sx:{wordWrap:"break-word"},children:t("storage.spaces.gateway.delete.descForStorage",{name:`${e==null?void 0:e.name}`})})})]})}j.propTypes={onDeleteSpace:u.func,spaceGateway:u.shape({name:u.string.isRequired,url:u.string.isRequired,protected:u.bool}).isRequired};j.defaultProps={onDeleteSpace:()=>{}};function P({spaceGateway:e,onDisconnect:r}){const{t}=D(),o=async()=>{try{await r(),x.success(t("storage.spaces.gateway.delete.succeeded",{name:e.name?`(${e.name})`:""}))}catch(a){console.error(a),x.error(E(a))}};return s.jsx(j,{spaceGateway:e,onDeleteSpace:o})}P.propTypes={spaceGateway:u.shape({did:u.string.isRequired,name:u.string.isRequired,url:u.string.isRequired,endpoint:u.string.isRequired}).isRequired,onDisconnect:u.func};P.defaultProps={onDisconnect:()=>{}};function le(){const{t:e}=D(),{spaceGateway:r,settingStorageEndpoint:t}=Q();return s.jsxs(S,{display:"flex",flexDirection:"column",children:[s.jsx(S,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",children:s.jsx(C,{fontSize:"1rem",fontWeight:"bold",children:e("storage.spaces.connected.title")})}),s.jsx(S,{children:s.jsx(K,{sx:{marginTop:2},endpoint:r.endpoint,selected:!0,action:o=>s.jsx(P,{...o,onDisconnect:()=>t(null)})})})]})}function ee({blocklet:e}){var m,n,d;if(b(e))return{};const{appDid:r}=e,t=T.getAppName(e),o=T.getAppDescription(e),a=(d=(n=(m=e==null?void 0:e.site)==null?void 0:m.domainAliases)==null?void 0:n.sort((i,y)=>i.accessibility.accessible&&y.accessibility.accessible?+i.isProtected-+y.isProtected:+y.accessibility.accessible-+i.accessibility.accessible))==null?void 0:d.map(i=>{var h;const y=(h=i==null?void 0:i.domainStatus)!=null&&h.isHttps?"https://":"http://",p=i==null?void 0:i.value;return`${y}${p}`}).filter(Boolean),c=a==null?void 0:a[0],f=I.DID_SPACES.AUTHORIZE.DEFAULT_SCOPE,l=window.location.href;return{appDid:r,appName:t,appDescription:o,appUrl:c,scopes:f,referrer:l,isReady:!!c}}function q({onConnect:e,...r}){const{blocklet:t}=w(),{info:o}=B(),{t:a}=D(),c=ee({blocklet:t}),f=$(o),l={checkFn:W.create({baseURL:k(window.location.origin,z())}).get,webWalletUrl:f,extraParams:{appPid:t.appPid,appDid:c.appDid,appName:c.appName,appDescription:c.appDescription,appUrl:c.appUrl,referrer:c.referrer,scopes:c.scopes,nodeDid:o.did}},m=async({spaceGateway:n})=>{try{await e(n),x.success(a("storage.spaces.connectedWithName",{name:n.name}))}catch(d){console.error(d),x.error(E(d))}};return s.jsx(A,{...r,options:l,onSuccess:m})}q.propTypes={onConnect:R.func};q.defaultProps={onConnect:()=>{}};export{le as C,V as D,q as a,N as b,ee as c,Q as u};
1
+ import{r as g,bq as B,aU as U,j as s,Z as R,M as b,y as x,b as I,a3 as v,m as D,K as S,k as C,P as u,a4 as F,a5 as _,X as E,H as T,w as $,az as W,a2 as k,an as z}from"./index-e66xJJ-x.js";import{D as G,a as K,b as A}from"./index-BeEM_0q3.js";import"./index-DjfLAu4m.js";import"./index-BojVbZw0.js";import{b as H,c as Z,d as M}from"./spaces-BTe9w9go.js";import{u as w}from"./blocklet-BNsbNDuf.js";import{d as X}from"./DeleteOutline-CSi3y8ZI.js";import"./api-sNy9Buh2.js";function Y(){const[e,r]=g.useState(null),{blocklet:t}=w();return g.useEffect(()=>{r(H(t))},[t]),{storageEndpoint:e}}const L=g.createContext({}),{Provider:J,Consumer:pe}=L;function N({children:e}){const[r,t]=g.useState(!1),[o,a]=g.useState(null),{blocklet:c,actions:{refreshBlocklet:f}}=w(),{storageEndpoint:l}=Y(),{api:m}=B();U(async()=>{try{if(t(!0),b(l)){a(null);return}const p=await Z(l);a(p)}catch(p){console.error(p),x.error(p.message)}finally{t(!1)}},[l]);const n=()=>{a(null),f()},d=async p=>{a(p),await i(p.endpoint),f()},i=async p=>{await m.configBlocklet({input:{did:[c.meta.did],configs:[{key:I.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPACE_ENDPOINT,value:p}]}}),f()};g.useEffect(()=>{async function p(){if(!o)return;const h=await M(o.endpoint,o.name),O=v(o,{name:h});a(O)}p()},[]);const y=!!(l&&o);return s.jsx(J,{value:{loading:r,spaceGateway:o,deleteSpaceGateway:n,updateSpaceGateway:d,storageEndpoint:l,settingStorageEndpoint:i,hasStorageEndpoint:y},children:e})}N.propTypes={children:R.node.isRequired};N.defaultProps={};function Q(){return g.useContext(L)}function V(){const{t:e}=D();return s.jsx(S,{children:s.jsxs(S,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignContent:"center",children:[s.jsx(G,{style:{width:250,height:250}}),s.jsx(C,{marginTop:"24px",children:e("storage.spaces.connect.providerForStorage")})]})})}V.propTypes={};function j({spaceGateway:e,onDeleteSpace:r}){const{t}=D(),[o,a]=g.useState(!1),[c,f]=g.useState(!1),l=(n,d)=>{n==null||n.stopPropagation(),a(d)},m=async n=>{try{n==null||n.stopPropagation(),f(!0),await r(e),a(!1)}catch(d){console.error(d),x.error(`${t("storage.spaces.gateway.delete.failed")}: ${E(d)}`)}finally{f(!1)}};return s.jsxs(s.Fragment,{children:[s.jsx(F,{size:"small",onClick:n=>l(n,!0),children:s.jsx(X,{})}),s.jsx(_,{title:t("storage.spaces.gateway.delete.title"),open:o,confirmButton:{text:t("common.confirm"),props:{size:"small",variant:"contained",color:"error",loading:c}},cancelButton:{text:t("common.cancel"),props:{size:"small",variant:"outlined"}},onConfirm:m,onCancel:n=>l(n,!1),children:s.jsx(C,{sx:{wordWrap:"break-word"},children:t("storage.spaces.gateway.delete.descForStorage",{name:`${e==null?void 0:e.name}`})})})]})}j.propTypes={onDeleteSpace:u.func,spaceGateway:u.shape({name:u.string.isRequired,url:u.string.isRequired,protected:u.bool}).isRequired};j.defaultProps={onDeleteSpace:()=>{}};function P({spaceGateway:e,onDisconnect:r}){const{t}=D(),o=async()=>{try{await r(),x.success(t("storage.spaces.gateway.delete.succeeded",{name:e.name?`(${e.name})`:""}))}catch(a){console.error(a),x.error(E(a))}};return s.jsx(j,{spaceGateway:e,onDeleteSpace:o})}P.propTypes={spaceGateway:u.shape({did:u.string.isRequired,name:u.string.isRequired,url:u.string.isRequired,endpoint:u.string.isRequired}).isRequired,onDisconnect:u.func};P.defaultProps={onDisconnect:()=>{}};function le(){const{t:e}=D(),{spaceGateway:r,settingStorageEndpoint:t}=Q();return s.jsxs(S,{display:"flex",flexDirection:"column",children:[s.jsx(S,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",children:s.jsx(C,{fontSize:"1rem",fontWeight:"bold",children:e("storage.spaces.connected.title")})}),s.jsx(S,{children:s.jsx(K,{sx:{marginTop:2},endpoint:r.endpoint,selected:!0,action:o=>s.jsx(P,{...o,onDisconnect:()=>t(null)})})})]})}function ee({blocklet:e}){var m,n,d;if(b(e))return{};const{appDid:r}=e,t=T.getAppName(e),o=T.getAppDescription(e),a=(d=(n=(m=e==null?void 0:e.site)==null?void 0:m.domainAliases)==null?void 0:n.sort((i,y)=>i.accessibility.accessible&&y.accessibility.accessible?+i.isProtected-+y.isProtected:+y.accessibility.accessible-+i.accessibility.accessible))==null?void 0:d.map(i=>{var h;const y=(h=i==null?void 0:i.domainStatus)!=null&&h.isHttps?"https://":"http://",p=i==null?void 0:i.value;return`${y}${p}`}).filter(Boolean),c=a==null?void 0:a[0],f=I.DID_SPACES.AUTHORIZE.DEFAULT_SCOPE,l=window.location.href;return{appDid:r,appName:t,appDescription:o,appUrl:c,scopes:f,referrer:l,isReady:!!c}}function q({onConnect:e,...r}){const{blocklet:t}=w(),{info:o}=B(),{t:a}=D(),c=ee({blocklet:t}),f=$(o),l={checkFn:W.create({baseURL:k(window.location.origin,z())}).get,webWalletUrl:f,extraParams:{appPid:t.appPid,appDid:c.appDid,appName:c.appName,appDescription:c.appDescription,appUrl:c.appUrl,referrer:c.referrer,scopes:c.scopes,nodeDid:o.did}},m=async({spaceGateway:n})=>{try{await e(n),x.success(a("storage.spaces.connectedWithName",{name:n.name}))}catch(d){console.error(d),x.error(E(d))}};return s.jsx(A,{...r,options:l,onSuccess:m})}q.propTypes={onConnect:R.func};q.defaultProps={onConnect:()=>{}};export{le as C,V as D,q as a,N as b,ee as c,Q as u};
@@ -1 +1 @@
1
- import{m as j,j as e,K as r,V as g,k as _,t as b,ae as k,P as n}from"./index-hsXwdita.js";import{C as R}from"./click-to-copy-BsvcMemr.js";function c({title:l,description:m,confirmPlaceholder:d,cancel:u,confirm:p,params:f,onCancel:C,onConfirm:y,keyName:t}){const{t:a}=j(),i={title:()=>e.jsx(r,{children:l}),description:(s,x)=>{const h=o=>{x({...o,__disableConfirm:o.__disableConfirm})};return e.jsxs(r,{children:[e.jsx(g,{severity:"warning",style:{width:"100%"},children:a("common.notice")}),e.jsx(r,{sx:{my:3,b:{wordBreak:"break-word"}},dangerouslySetInnerHTML:{__html:m}}),e.jsxs(r,{style:{marginBottom:24},children:[a("common.click"),":",e.jsx(R,{"data-cy":"click-copy",children:t})]}),e.jsx(_,{component:"div",children:e.jsx(b,{label:d,autoComplete:"off","data-cy":"delete-confirm-input",variant:"outlined",fullWidth:!0,autoFocus:!0,value:s.inputVal,onChange:o=>{h({...s,inputVal:o.target.value,__disableConfirm:t!==o.target.value})}})})]})},confirm:p,cancel:u,onConfirm:y,onCancel:C,params:{inputVal:"",__disableConfirm:!0,...f}};return e.jsx(k,{title:i.title,description:i.description,confirm:i.confirm,cancel:i.cancel,params:i.params,onConfirm:i.onConfirm,onCancel:i.onCancel})}c.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};c.defaultProps={onCancel:()=>{},cancel:"",confirm:"Confirm",params:{}};export{c as D};
1
+ import{m as j,j as e,K as r,V as g,k as _,t as b,ae as k,P as n}from"./index-e66xJJ-x.js";import{C as R}from"./click-to-copy-ADdBawgq.js";function c({title:l,description:m,confirmPlaceholder:d,cancel:u,confirm:p,params:f,onCancel:C,onConfirm:y,keyName:t}){const{t:a}=j(),i={title:()=>e.jsx(r,{children:l}),description:(s,x)=>{const h=o=>{x({...o,__disableConfirm:o.__disableConfirm})};return e.jsxs(r,{children:[e.jsx(g,{severity:"warning",style:{width:"100%"},children:a("common.notice")}),e.jsx(r,{sx:{my:3,b:{wordBreak:"break-word"}},dangerouslySetInnerHTML:{__html:m}}),e.jsxs(r,{style:{marginBottom:24},children:[a("common.click"),":",e.jsx(R,{"data-cy":"click-copy",children:t})]}),e.jsx(_,{component:"div",children:e.jsx(b,{label:d,autoComplete:"off","data-cy":"delete-confirm-input",variant:"outlined",fullWidth:!0,autoFocus:!0,value:s.inputVal,onChange:o=>{h({...s,inputVal:o.target.value,__disableConfirm:t!==o.target.value})}})})]})},confirm:p,cancel:u,onConfirm:y,onCancel:C,params:{inputVal:"",__disableConfirm:!0,...f}};return e.jsx(k,{title:i.title,description:i.description,confirm:i.confirm,cancel:i.cancel,params:i.params,onConfirm:i.onConfirm,onCancel:i.onCancel})}c.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};c.defaultProps={onCancel:()=>{},cancel:"",confirm:"Confirm",params:{}};export{c as D};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./overview-CQH3sl8k.js","./index-hsXwdita.js","./index-2qex5JRJ.css","./HelpOutline-C3TbxHgu.js","./status-kUWkWAv4.js","./index-BlCna4p9.js","./ErrorOutline-vNCs_MWh.js","./omit-BQN0r_Sl.js","./index-BojVbZw0.js","./index-sIpE29lb.js","./blocklet-B7Zji5DT.js","./team-C07jDfHF.js","./url-evaluation-CTRSa9ZC.js","./metric-pxFNJXub.js","./spaces-nJAMiLX6.js","./api-D8wCBLkG.js","./domains-HOzCVRIr.js","./index-Cd_2D3Sl.js","./VerifiedUser-1sSxKHO8.js","./LoadingButton-D1yBseaf.js","./useThemeProps-B56eXTgo.js","./useAsync-D_akrj3d.js","./permission-BcsRTq-z.js","./Delete-CT7C6Kie.js","./actions-CpNtRMjL.js","./MoreHoriz-BwjT-Th3.js","./delete-confirm-CjqJdSpd.js","./click-to-copy-BsvcMemr.js","./status-DmJZiE7J.js","./CardContent-B7pLobRd.js","./Add-B6SubMna.js","./CallMerge-Dx0ABV96.js","./toLower-DkxjP5Df.js","./use-mobile-CecRxviL.js","./util-BMW_0_6P.js","./is-path-prefix-equal-Cb4XUN1S.js","./OpenInNew-WY83GLbI.js","./TableRow-De6rTaLH.js","./index-Dd8yxjG4.js","./preference-D6gVeL13.js","./index-MT0i2iOl.js","./iframe-Bhr8GDCE.js","./ChevronRight-AScR76u1.js","./index-jLzUI2_x.js","./Done-CX1gjQiO.js","./chain-DBedh8bm.js","./ArrowDropDown-xGKcJlzT.js","./ButtonGroup-BwF8mqMo.js","./getValidReactChildren-BTgp7BID.js","./Autocomplete-DcWkc_vX.js","./ListSubheader-BPukSiYH.js","./index-D6XCWvDm.js","./index.esm-CiAi8rZc.js","./collapse-CxLV5r0z.js","./index-DxWeQQqZ.js","./emotion-react.browser.esm-CRPrOqTl.js","./ViewColumn-Z9CzTkc6.js","./Search-BVjKyf6X.js","./Clear-CgFuQS8E.js","./MoreVert-LcWQtq9o.js","./TableSearch-C-ei22_d.js","./Switch-BEuyXxAj.js","./Public-BVtXGGU3.js","./switch-control-DQnqNSWg.js","./index-DXkrxNwp.js","./Slider-DJkYLVcS.js","./index-DMZMNjTk.js","./index-DqFUEzLa.js","./index-foZCwT8M.css","./use-mobile-Btxuy2XK.js","./simple-select-Cay1Q_fh.js","./actions-C-FzNJrL.js","./useLocalStorage-Cq7sRYfb.js","./get-safe-url-CgXktKsm.js","./refType-wo8smHzx.js","./CSSTransition-DwNIlRBk.js","./appearance-DFXmNgG9.js","./config-navigation-xuqRoE1o.js","./cloneDeep-CZ9xagkL.js","./index-Cxtz33Uv.js","./_createAggregator-B8uLgymt.js","./raf-schd.esm-4rNe_vqV.js","./resource-dialog-ChJDsQlO.js","./index-CsJ1SLdq.js","./ListItemButton-WitFXLXy.js","./index-CGd5LtOY.js","./index-BwIYMrsC.js","./index-BJHGOv7L.js","./index-otCXU1uz.js","./index-DtqeRbTN.js","./shorten-label-DIFv6Qd6.js","./Refresh-B52Zvr1H.js","./traffic-Cf_YvLXi.js","./ChevronLeft-BFPYYAY4.js","./index-BOPDHYJq.js","./base-chart-SdbqVXfX.js","./index-B8_LPRJ9.js","./AdapterDayjs-BLiJpepT.js","./audit-logs-7jpmSelT.js","./index-D_F7-gyj.js","./index-C0Iiqot3.css","./index-D2rnKn07.js","./LockIcon-C0-sdX_W.js","./list-header-CY82YyA-.js","./ToggleButtonGroup-Cn-eBR9-.js","./index-Ul7VaxKJ.js","./ViewList-CMZhtdms.js","./Verified-CuZqBCQf.js","./DeleteOutline-3nz1tDzg.js","./sdk-B6Epvrj4.js","./service-BKkazWLo.js","./table-icons-OCqVUqzX.js","./Edit-CBtokBzw.js","./index-bajfduTV.js","./Link-C1-DzkbR.js","./item-ChksU4uH.js","./index-C7XZPy3K.js","./Launch-Gzp4KZV3.js","./item-D-IRi6XF.css","./index-jEjcw4up.js","./url-join-ChZrV7Xa.js","./Close-DMagDs34.js","./connect-to-BrVjRNZt.js","./agreement-DiJIrinp.js","./install-from-url-CeY10_5r.js","./schema-QrpPKg0u.js","./Stepper-DpIVkIVF.js","./toUpper-DIQ1Y_cr.js","./log-WrdeB8oi.js","./download-B2lNfZpo.js","./download-D33dFtt_.css","./runtime-CxUATjE0.js","./memory-COTxwn8h.js","./index-X7qxXYI4.js","./index-BHcs0slQ.js","./table-tips-CKrQ79sg.js","./Delete-DBAS8mVY.js"])))=>i.map(i=>d[i]);
2
- import{m as He,o as qe,bq as Tt,r as b,A as F,j as p,V as Qe,K as Z,B as Ge,v as jt,bB as Pt,H as T,y as J,X as We,bp as Ke,bC as I,x as At,u as Dt,bD as Ot,bE as Lt,bF as Ae,bG as Bt,Y as De,C as Oe,I as Rt,bH as Mt,k as ue,J as Nt,n as Ft,bI as Vt}from"./index-hsXwdita.js";import{T as zt}from"./index-jLzUI2_x.js";import{B as $t}from"./status-DmJZiE7J.js";import{D as Ut,B as Ht}from"./actions-C-FzNJrL.js";import{u as qt}from"./blocklet-B7Zji5DT.js";import{R as Qt}from"./index-CsJ1SLdq.js";import{B as Gt,a as Wt,T as Kt}from"./team-C07jDfHF.js";import{P as Jt}from"./permission-BcsRTq-z.js";import{B as Xt}from"./Breadcrumbs-CpID4vgW.js";import"./url-evaluation-CTRSa9ZC.js";import"./useLocalStorage-Cq7sRYfb.js";import"./MoreVert-LcWQtq9o.js";import"./Delete-CT7C6Kie.js";import"./get-safe-url-CgXktKsm.js";import"./ButtonGroup-BwF8mqMo.js";import"./getValidReactChildren-BTgp7BID.js";/**
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./overview-APoIqy5P.js","./index-e66xJJ-x.js","./index-2qex5JRJ.css","./HelpOutline-BtTkcIQl.js","./status-DTf_MR_m.js","./index-CcKekV6p.js","./ErrorOutline-zzYP4d-G.js","./omit-zgah02wK.js","./index-BojVbZw0.js","./index-JsgthZUN.js","./blocklet-BNsbNDuf.js","./team-BczhIV16.js","./url-evaluation-DRKjUU7g.js","./metric-CgjE4Yze.js","./spaces-BTe9w9go.js","./api-sNy9Buh2.js","./domains-B3WgGegI.js","./index-f9QTV2yS.js","./VerifiedUser-Cz-5rgpe.js","./LoadingButton-DzOnJ8zq.js","./useThemeProps-Dk-4jx1U.js","./useAsync-D-2V_lHb.js","./permission-CtZli8Hf.js","./Delete-D0GFkYtH.js","./actions-DveJjfxt.js","./MoreHoriz-DC7IikA2.js","./delete-confirm-DoYSwIFx.js","./click-to-copy-ADdBawgq.js","./status-DRBez5Qf.js","./CardContent-BCodnoZu.js","./Add-BYFWsyUF.js","./CallMerge-SZDzfJgb.js","./toLower-PXiIHwDf.js","./use-mobile-D02_HykR.js","./util-wc6KkzlL.js","./is-path-prefix-equal-CF4M2MVl.js","./OpenInNew-DeXzob2p.js","./TableRow-CDB9WIef.js","./index-7iYq2V4L.js","./preference-0MD46HXq.js","./index-BI9Br-d5.js","./iframe-Cs_wGN9V.js","./ChevronRight-B8F_ru7A.js","./index-CNOx9gM8.js","./Done-D3hzYYUk.js","./chain-DZftcLJ3.js","./ArrowDropDown-b23Ws4Dh.js","./ButtonGroup-BbvSuEoF.js","./getValidReactChildren-DTJlyDSN.js","./Autocomplete-Cbi7HzEa.js","./ListSubheader-CN5kB_3v.js","./index-Bnl28jeD.js","./index.esm-BiZwp2sI.js","./collapse-S-vTWAhi.js","./index-CIH-dF5H.js","./emotion-react.browser.esm-BsFIkhYD.js","./ViewColumn-Db8V4QN9.js","./Search-DlTi3_X0.js","./Clear-n1FkleT7.js","./MoreVert-CrQ5BD1O.js","./TableSearch-C_ybT7kk.js","./Switch-Qp41_PVH.js","./Public-B575ztUz.js","./switch-control-Cohshryy.js","./index-B4oRLjo7.js","./Slider-DVwffPl5.js","./index-IViEbtE5.js","./index-Dx0P0x6J.js","./index-foZCwT8M.css","./use-mobile-B7_S05ne.js","./simple-select-N7r4TYd1.js","./actions-DQy4Y2na.js","./useLocalStorage-ChdS5XVQ.js","./get-safe-url-h3P_Qh4v.js","./refType-CrQ6NnaY.js","./CSSTransition-CJ-9QKlG.js","./appearance-DbHWwKo-.js","./config-navigation-CNRkvto9.js","./cloneDeep-JEYtEd7F.js","./index-1REZAjOu.js","./_createAggregator-CEr_MPC5.js","./raf-schd.esm-CjWurqZc.js","./resource-dialog-DtmI53Zf.js","./index-D5xjISzz.js","./ListItemButton-C4nle7Vw.js","./index-BTVRLsIg.js","./index-BeEM_0q3.js","./index-BJHGOv7L.js","./index-DjfLAu4m.js","./index-BuuM5jo8.js","./shorten-label-w_L-1NYs.js","./Refresh-2rMRmiq8.js","./traffic-CoY4yr_p.js","./ChevronLeft-BCWTA2ES.js","./index-_Y4g7Ki7.js","./base-chart-CneSkRrp.js","./index-MgaM83zd.js","./AdapterDayjs-bsD4OAFM.js","./audit-logs-DWljSpy4.js","./index-1k7DvKxH.js","./index-C0Iiqot3.css","./index-Vn3yqa3y.js","./LockIcon-DzCd9ccj.js","./list-header-ovy1bk-e.js","./ToggleButtonGroup-C-CIJkUk.js","./index-1l3rmmE5.js","./ViewList-BaTy1Ph1.js","./Verified-CLm0sUb6.js","./DeleteOutline-CSi3y8ZI.js","./sdk-CGbU2sfF.js","./service-yH9ZzgNY.js","./table-icons-Bs7Hkb6l.js","./Edit-DUZ7gP_b.js","./index-DM-X6w1C.js","./Link-DoRwHSx9.js","./item-11xHJrBQ.js","./index-Co9nkuve.js","./Launch-C-pZPEtf.js","./item-D-IRi6XF.css","./index-BoDwKZkr.js","./url-join-CM2acrDe.js","./Close-Cem8y-ph.js","./connect-to-Dr4HhNJU.js","./agreement-DeYzUIM7.js","./install-from-url-CSiK3Yao.js","./schema-DG7Gb1Zp.js","./Stepper-DBIHjo83.js","./toUpper-Cv02sfIb.js","./log--8P_TkIi.js","./download-CCFD10FS.js","./download-D33dFtt_.css","./runtime-BjHuHXy7.js","./memory-CLu87brV.js","./index-BKivhg3S.js","./index-0U-vrSlK.js","./table-tips-BLg1K8Th.js","./Delete-CwKOurFN.js"])))=>i.map(i=>d[i]);
2
+ import{m as He,o as qe,bq as Tt,r as b,A as F,j as p,V as Qe,K as Z,B as Ge,v as jt,bB as Pt,H as T,y as J,X as We,bp as Ke,bC as I,x as At,u as Dt,bD as Ot,bE as Lt,bF as Ae,bG as Bt,Y as De,C as Oe,I as Rt,bH as Mt,k as ue,J as Nt,n as Ft,bI as Vt}from"./index-e66xJJ-x.js";import{T as zt}from"./index-CNOx9gM8.js";import{B as $t}from"./status-DRBez5Qf.js";import{D as Ut,B as Ht}from"./actions-DQy4Y2na.js";import{u as qt}from"./blocklet-BNsbNDuf.js";import{R as Qt}from"./index-D5xjISzz.js";import{B as Gt,a as Wt,T as Kt}from"./team-BczhIV16.js";import{P as Jt}from"./permission-CtZli8Hf.js";import{B as Xt}from"./Breadcrumbs-C_csYT5C.js";import"./url-evaluation-DRKjUU7g.js";import"./useLocalStorage-ChdS5XVQ.js";import"./MoreVert-CrQ5BD1O.js";import"./Delete-D0GFkYtH.js";import"./get-safe-url-h3P_Qh4v.js";import"./ButtonGroup-BbvSuEoF.js";import"./getValidReactChildren-DTJlyDSN.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 He,o as qe,bq as Tt,r as b,A as F,j as p,V as Qe,K as Z,B as Ge,v as
9
9
  *
10
10
  * @license MIT
11
11
  * @version 3.1.1
12
- */const Je=Object.freeze({left:0,top:0,width:16,height:16}),ee=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),H=Object.freeze({...Je,...ee}),me=Object.freeze({...H,body:"",hidden:!1});function Yt(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 Le(e,t){const n=Yt(e,t);for(const o in me)o in ee?o in e&&!(o in n)&&(n[o]=ee[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function Zt(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 en(e,t,n){const o=e.icons,r=e.aliases||Object.create(null);let s={};function i(c){s=Le(o[c]||r[c],s)}return i(t),n.forEach(i),Le(e,s)}function tn(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=Zt(e);for(const r in o){const s=o[r];s&&(t(r,en(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&&!X(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&&!X(c)?null:c}if(n&&o===""){const c={provider:o,prefix:"",name:s};return t&&!X(c,n)?null:c}return null},X=(e,t)=>e?!!((e.provider===""||e.provider.match(V))&&(t&&e.prefix===""||e.prefix.match(V))&&e.name.match(V)):!1,nn={provider:"",aliases:{},not_found:{},...Je};function fe(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function on(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!fe(e,nn))return null;const n=t.icons;for(const r in n){const s=n[r];if(!r.match(V)||typeof s.body!="string"||!fe(s,me))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]||!fe(s,me))return null}return t}const te=Object.create(null);function rn(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function C(e,t){const n=te[e]||(te[e]=Object.create(null));return n[t]||(n[t]=rn(e,t))}function Ee(e,t){return on(t)?tn(t,(n,o)=>{o?e.icons[n]=o:e.missing.add(n)}):[]}function sn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function cn(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(te)).forEach(r=>{(typeof r=="string"&&typeof t=="string"?[t]:Object.keys(te[r]||{})).forEach(i=>{const c=C(r,i);n=n.concat(Object.keys(c.icons).map(l=>(r!==""?"@"+r+":":"")+i+":"+l))})}),n}let _e=!1;function an(e){return _e}function q(e){const t=typeof e=="string"?R(e,!0,_e):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 ln(e,t){const n=R(e,!0,_e);if(!n)return!1;const o=C(n.provider,n.prefix);return sn(o,n.name,t)}function Xe(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!X({provider:t,prefix:n,name:"a"}))return!1;const o=C(t,n);return!!Ee(o,e)}function un(e){return!!q(e)}function fn(e){const t=q(e);return t?{...H,...t}:null}const Ye=Object.freeze({width:null,height:null}),Ze=Object.freeze({...Ye,...ee}),dn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,pn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function he(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(dn);if(o===null||!o.length)return e;const r=[];let s=o.shift(),i=pn.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 mn=e=>e==="unset"||e==="undefined"||e==="none";function re(e,t){const n={...H,...e},o={...Ze,...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=he(f,l/a)):(u=i==="auto"?l:i,f=c===null?he(u,a/l):c==="auto"?a:c);const d={},h=(g,y)=>{mn(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 hn=/\sid="(\S+)"/g,gn="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let bn=0;function et(e,t=gn){const n=[];let o;for(;o=hn.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+(bn++).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},tt={local:new Set,session:new Set};let Ce=!1;function yn(e){Ce=e}const Be="iconify2",U="iconify",nt=U+"-count",Re=U+"-version",ot=36e5,vn=168;function ge(e,t){try{return e.getItem(t)}catch{}}function Te(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Me(e,t){try{e.removeItem(t)}catch{}}function be(e,t){return Te(e,nt,t.toString())}function ye(e){return parseInt(ge(e,nt))||0}let W=typeof window>"u"?{}:window;function rt(e){const t=e+"Storage";try{if(W&&W[t]&&typeof W[t].length=="number")return W[t]}catch{}D[e]=!1}function st(e,t){const n=rt(e);if(!n)return;const o=ge(n,Re);if(o!==Be){if(o){const c=ye(n);for(let l=0;l<c;l++)Me(n,U+l.toString())}Te(n,Re,Be),be(n,0);return}const r=Math.floor(Date.now()/ot)-vn,s=c=>{const l=U+c.toString(),a=ge(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{}Me(n,l)}};let i=ye(n);for(let c=i-1;c>=0;c--)s(c)||(c===i-1?(i--,be(n,i)):tt[e].add(c))}function it(){if(!Ce){yn(!0);for(const e in D)st(e,t=>{const n=t.data,o=t.provider,r=n.prefix,s=C(o,r);if(!Ee(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function ct(e,t){switch(e){case"local":case"session":D[e]=t;break;case"all":for(const n in D)D[n]=t;break}}const ve=Object.create(null);function at(e,t){ve[e]=t}function xe(e){return ve[e]||ve[""]}function je(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 se=Object.create(null),N=["https://api.simplesvg.com","https://api.unisvg.com"],Y=[];for(;N.length>0;)N.length===1||Math.random()>.5?Y.push(N.shift()):Y.push(N.pop());se[""]=je({resources:["https://api.iconify.design"].concat(Y)});function lt(e,t){const n=je(t);return n===null?!1:(se[e]=n,!0)}function ie(e){return se[e]}function xn(){return Object.keys(se)}const wn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let ne=wn();function Sn(e){ne=e}function In(){return ne}function kn(e,t){const n=ie(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 En(e){return e===404}const _n=(e,t,n)=>{const o=[],r=kn(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 Cn(e){if(typeof e=="string"){const t=ie(e);if(t)return t.path}return"/"}const Tn=(e,t,n)=>{if(!ne){n("abort",424);return}let o=Cn(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;ne(e+o).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(En(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)})},jn={prepare:_n,send:Tn};function Pn(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 ut(e,t){e.forEach(n=>{const o=n.loaderCallbacks;o&&(n.loaderCallbacks=o.filter(r=>r.id!==t))})}function An(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||ut([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let Dn=0;function On(e,t,n){const o=Dn++,r=ut.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 Ln(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 Bn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Rn(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 ft(e){const t={...Bn,...e};let n=[];function o(){n=n.filter(c=>c().status==="pending")}function r(c,l,a){const u=Rn(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 Ne(){}const de=Object.create(null);function Mn(e){if(!de[e]){const t=ie(e);if(!t)return;const n=ft(t),o={config:t,redundancy:n};de[e]=o}return de[e]}function dt(e,t,n){let o,r;if(typeof e=="string"){const s=xe(e);if(!s)return n(void 0,424),Ne;r=s.send;const i=Mn(e);i&&(o=i.redundancy)}else{const s=je(e);if(s){o=ft(s);const i=e.resources?e.resources[0]:"",c=xe(i);c&&(r=c.send)}}return!o||!r?(n(void 0,424),Ne):o.query(t,r,n)().abort}function Nn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const o in D)st(o,r=>{const s=r.data;return r.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Fn(e,t){Ce||it();function n(o){let r;if(!D[o]||!(r=rt(o)))return;const s=tt[o];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=ye(r),!be(r,i+1))return;const c={cached:Math.floor(Date.now()/ot),provider:e.provider,data:t};return Te(r,U+i.toString(),JSON.stringify(c))}t.lastModified&&!Nn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Fe(){}function Vn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,An(e)}))}function zn(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=xe(n)))return;s.prepare(n,o,r).forEach(c=>{dt(n,c,l=>{if(typeof l!="object")c.icons.forEach(a=>{e.missing.add(a)});else try{const a=Ee(e,l);if(!a.length)return;const u=e.pendingIcons;u&&a.forEach(f=>{u.delete(f)}),Fn(e,l)}catch(a){console.error(a)}Vn(e)})})}))}const $n=e=>{const n=C(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},Pe=(e,t)=>{const n=Ln(e,!0,an()),o=Pn(n);if(!o.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(o.loaded,o.missing,o.pending,Fe)}),()=>{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&&zn(l,r[a][u])}),t?On(t,o,s):Fe},Un=e=>new Promise((t,n)=>{const o=typeof e=="string"?R(e,!0):e;if(!o){n(e);return}Pe([o||e],r=>{if(r.length&&o){const s=q(o);if(s){t({...H,...s});return}}n(e)})});function pt(e,t){const n={...e};for(const o in t){const r=t[o],s=typeof r;o in Ye?(r===null||r&&(s==="string"||s==="number"))&&(n[o]=r):s===typeof n[o]&&(n[o]=o==="rotate"?r%4:r)}return n}const ce={...Ze,inline:!1},pe="iconify",we="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 mt(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 Hn(){if(document.documentElement)return mt(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 Qn(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let z=null;const Gn={childList:!0,subtree:!0,attributes:!0};function ht(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,z&&z(e)}))}function Wn(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||ht(e);return}}}function gt(e,t){e.observer.instance.observe(t,Gn)}function oe(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(Wn.bind(null,e)),gt(e,n),t.paused||ht(e))}function Ve(){G().forEach(oe)}function bt(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 Kn(e){const t=z!==null;if(z!==e&&(z=e,t&&G().forEach(bt)),t){Ve();return}Qn(Ve)}function Se(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 Jn(e){if(e){const t=Q(e);t&&Se(t)}else Se()}function Ie(e){(e?[e]:G()).forEach(t=>{if(!t.observer){oe(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?gt(t,o):oe(t);else return}})}function Xn(e){if(e){const t=Q(e);t&&Ie(t)}else Ie()}function yt(e,t=!1){const n=mt(e,t);return oe(n),n}function vt(e){const t=Q(e);t&&(bt(t),qn(e))}function Yn(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,o=t.customisations;for(const r in ce)if(n[r]!==o[r])return!0;return!1}function Zn(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 eo=/[\s,]+/;function to(e,t){t.split(eo).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const no=["width","height"],oo=["inline","hFlip","vFlip"];function ro(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function so(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&R(t,!0);if(!n)return null;const o={...ce,inline:e.classList&&e.classList.contains(we)};no.forEach(c=>{const l=e.getAttribute("data-"+c);l&&(o[c]=l)});const r=e.getAttribute("data-rotate");typeof r=="string"&&(o.rotate=Zn(r));const s=e.getAttribute("data-flip");typeof s=="string"&&to(o,s),oo.forEach(c=>{const l="data-"+c,a=ro(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 io="svg."+pe+", i."+pe+", span."+pe+", i."+we+", span."+we;function co(e){const t=[];return e.querySelectorAll(io).forEach(n=>{const o=n[j]||n.tagName.toLowerCase()!=="svg"?so(n):null;o&&t.push({node:n,props:o})}),t}function xt(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 ao(){try{$=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{$=null}}function lo(e){return $===void 0&&ao(),$?$.createHTML(e):e}function wt(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function St(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 It(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 kt(e,t,n){let o;try{o=document.createElement("span")}catch{return e}const r=t.customisations,s=re(n,r),i=e[j],c=xt(et(s.body),{"aria-hidden":"true",role:"img",...s.attributes});o.innerHTML=lo(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=wt(t.icon),f=St(l,u,new Set(i&&i.addedClasses),e),d=It(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 uo(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function fo(e){return"data:image/svg+xml,"+uo(e)}function po(e){return'url("'+fo(e)+'")'}const mo={display:"inline-block"},ke={"background-color":"currentColor"},Et={"background-color":"transparent"},ze={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},$e={"-webkit-mask":ke,mask:ke,background:Et};for(const e in $e){const t=$e[e];for(const n in ze)t[e+"-"+n]=ze[n]}function Ue(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function ho(e,t,n,o){const r=t.customisations,s=re(n,r),i=s.attributes,c=e[j],l=xt(s.body,{...i,width:n.width+"",height:n.height+""}),a=wt(t.icon),u=St(e,a,new Set(c&&c.addedClasses)),d={"--svg":po(l),width:Ue(i.width),height:Ue(i.height),...mo,...o?ke:Et};r.inline&&(d["vertical-align"]="-0.125em");const h=It(e,d,c&&c.addedStyles),g={...t,status:"loaded",addedClasses:u,addedStyles:h};return e[j]=g,e}let K=!1;function go(){K||(K=!0,setTimeout(()=>{K&&(K=!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&&!$n(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,Se(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"){ho(a,u,{...H,...f},h);return}}kt(a,u,f)}co(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(Yn(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?vt(s):t&&i?yt(s,!0):c&&r.observer&&Ie(r)});for(const r in n){const s=n[r];for(const i in s){const c=s[i];Pe(Array.from(c).map(l=>({provider:r,prefix:i,name:l})),go)}}}function bo(e){const t=Q(e);t?B(t):B({node:e,temporary:!0},!0)}function _t(e,t,n=!1){const o=q(e);if(!o)return null;const r=R(e),s=pt(ce,t||{}),i=kt(document.createElement("span"),{name:e,icon:r,customisations:s},o);return n?i.outerHTML:i}function yo(){return"3.1.1"}function vo(e,t){return _t(e,t,!1)}function xo(e,t){return _t(e,t,!0)}function wo(e,t){const n=q(e);if(!n)return null;const o=pt(ce,t||{});return re(n,o)}function So(e){e?bo(e):B()}if(typeof document<"u"&&typeof window<"u"){Hn();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"||!Xe(o))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{Kn(B),B()})}function Io(e,t){ct(e,t!==!1)}function ko(e){ct(e,!0)}at("",jn);if(typeof document<"u"&&typeof window<"u"){it();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;lt(n,r)||console.error(o)}catch{console.error(o)}}}}const Eo={getAPIConfig:ie,setAPIModule:at,sendAPIQuery:dt,setFetch:Sn,getFetch:In,listAPIProviders:xn},_o={_api:Eo,addAPIProvider:lt,loadIcons:Pe,loadIcon:Un,iconExists:un,getIcon:fn,listIcons:cn,addIcon:ln,addCollection:Xe,replaceIDs:et,calculateSize:he,buildIcon:re,getVersion:yo,renderSVG:vo,renderHTML:xo,renderIcon:wo,scan:So,observe:yt,stopObserving:vt,pauseObserver:Jn,resumeObserver:Xn,enableCache:Io,disableCache:ko};try{self.Iconify===void 0&&(self.Iconify=_o)}catch{}const Co=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},To=(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 Ct(){const{t:e}=He(),{api:t}=qe(),{blocklet:n}=qt(),{inService:o}=Tt(),[r,s]=b.useState(!1),[i,c]=b.useState(5),l=n&&n.structVersion!==F.APP_STRUCT_VERSION,a=()=>{try{if(n.status==="running"){J.error(e("blocklet.migrate.tip.running"));return}const d=Co(n);if(d){J.error(e("blocklet.migrate.tip.duplicate",{name:d}));return}s(!0)}catch(d){J.error(We(d))}},u=()=>{const d=To(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(Z,{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(Z,{display:"flex",alignItems:"center",children:e(`blocklet.migrate.intro.${d}`)},d))]},"alert"),n&&p.jsx(jt,{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:Pt(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")]}Ct.propTypes={};const jo=b.lazy(()=>I(()=>import("./overview-CQH3sl8k.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url)),Po=b.lazy(()=>I(()=>import("./domains-HOzCVRIr.js"),__vite__mapDeps([16,1,2,17,5,18,19,20,21,10,22,23,24,25,26,27,28,12,29,30,31,32,33,9,34,35,36,37]),import.meta.url)),Ao=b.lazy(()=>I(()=>import("./index-Dd8yxjG4.js"),__vite__mapDeps([38,1,2,39,40,41,42,43,22,5,44,45,46,47,48,49,50,51,52,53,54,37,20,55,56,57,58,23,17,59,60,10,61,62,27,11,12,9,4,6,7,63,64,30,65,66,67,68,69,70,71,72,73,74,75,29]),import.meta.url)),Do=b.lazy(()=>I(()=>import("./appearance-DFXmNgG9.js"),__vite__mapDeps([76,1,2,10,69]),import.meta.url)),Oo=b.lazy(()=>I(()=>import("./config-navigation-xuqRoE1o.js"),__vite__mapDeps([77,1,2,7,78,79,80,10,54,37,20,55,56,57,58,23,17,59,60,81,82,43,83,33,84,85,64,61,12,86,36,87,8,3,88,47,48,11,71,72,73,22,52,70,46,15,49,50,41,19]),import.meta.url)),Lo=b.lazy(()=>I(()=>import("./index-DtqeRbTN.js"),__vite__mapDeps([89,1,2,54,37,20,55,56,57,58,23,17,59,60,71,72,73,47,48,12,22,51,43,52,53,10,61,90,9,91,92,41,93,42,94,95,96,97,75,74,69]),import.meta.url)),Bo=b.lazy(()=>I(()=>import("./audit-logs-7jpmSelT.js"),__vite__mapDeps([98,17,1,2,60,57,58,72,99,100,90,11,10,12]),import.meta.url)),Ro=b.lazy(()=>I(()=>import("./index-D2rnKn07.js").then(e=>e.i),__vite__mapDeps([101,1,2,54,37,20,55,56,57,58,23,17,59,60,43,11,10,12,69,88,47,48,22,102,78,30,45,103,104]),import.meta.url)),Mo=b.lazy(()=>I(()=>import("./index-Ul7VaxKJ.js").then(e=>e.i),__vite__mapDeps([105,1,2,30,106,54,37,20,55,56,57,58,23,17,59,60,82,43,83,33,84,85,64,61,12,86,36,87,8,3,88,47,48,11,10,22,27,97,75,74,9,107,108,6,109,24,25,90]),import.meta.url)),No=b.lazy(()=>I(()=>import("./service-BKkazWLo.js"),__vite__mapDeps([110,1,2,111,81,94,56,75,43,30,23,58,112,42,93,57,46]),import.meta.url)),Fo=b.lazy(()=>I(()=>import("./index-bajfduTV.js"),__vite__mapDeps([113,1,2,30,17,71,72,59,23,73,47,48,12,22,63,64,61,10,112,111,81,94,56,75,43,58,42,93,57,46,27,114,115,116,49,50,107,18,117,44,108,26,118,119,120,121,122,86,36,87,8,3,88,14,15,123,99,100,39,40,41,53,102,78,124,125,79,9,84,126,34,35,69,28,24,25,127,11]),import.meta.url)),Vo=b.lazy(()=>I(()=>import("./log-WrdeB8oi.js"),__vite__mapDeps([128,1,2,72,129,47,48,130,50]),import.meta.url)),zo=b.lazy(()=>I(()=>import("./runtime-CxUATjE0.js"),__vite__mapDeps([131,1,2,54,37,20,55,56,57,58,23,17,59,60,10,87,132,95,96,28,12,104,48]),import.meta.url)),$o=b.lazy(()=>I(()=>import("./traffic-Cf_YvLXi.js").then(e=>e.t),__vite__mapDeps([92,1,2,41,93,42,94,95,96,97,20,75,74]),import.meta.url)),Uo=b.lazy(()=>I(()=>import("./index-X7qxXYI4.js"),__vite__mapDeps([133,1,2,43,10,69,86,36,87,8,3,88,47,48,15,122,14,108,9,96,54,37,20,55,56,57,58,23,17,59,60,25,71,72,73,12,22,63,64,61,103]),import.meta.url)),Ho=b.lazy(()=>I(()=>import("./index-BHcs0slQ.js"),__vite__mapDeps([134,54,1,2,37,20,55,56,57,58,23,17,59,60,30,11,10,12,69,52,67,68,116,50,121,24,25,135,136]),import.meta.url)),qo=({children:e})=>e;function Qo(){var A,_;const e=At(),{tab:t="overview"}=Ke(),{did:n,blocklet:o,error:r,client:s,actions:{setBlocklet:i,refreshBlocklet:c}}=Wt(),{refresh:l}=Dt(),{t:a}=He(),{session:u}=qe(),f=Ot(()=>{var v;return((v=u.user)==null?void 0:v.role)&&Lt.includes(u.user.role)},[u]),d=b.useCallback(()=>p.jsx(Bo,{scope:n}),[n]),h=b.useCallback(()=>f?p.jsx(Lo,{blocklet:o}):p.jsx(Qt,{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=>Vt(v,g),E=v=>{e(`/blocklets/${n}/${v}`)},L=v=>{v&&i(v),c()},k=!o||Ae(o.status)?[]:T.getAppMissingConfigs(o);let x=null;const w=[{label:a("common.overview"),value:"overview"},{breadcrumbsLabel:a("common.components"),label:p.jsx(Bt,{"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(jo,{}),domains:p.jsx(Po,{}),configuration:Ao,appearance:Do,navigation:Oo,services:No,members:p.jsx(Mo,{type:"blocklet",createPassportSvg:y}),passports:Ro,components:Fo,"audit-logs":d,notifications:h,logs:Vo,runtime:p.jsx(zo,{}),traffic:p.jsx($o,{client:s,did:n}),didSpaces:p.jsx(Uo,{}),webhooks:p.jsx(Ho,{})};t==="configuration"&&Ae(o.status)&&E("overview"),w.push({label:a("common.domains"),value:"domains"}),w.push({label:a("common.members"),value:"members"}),w.push({label:a("team.member.passports"),value:"passports"}),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"}),f&&w.push({label:"Webhooks",value:"webhooks"}),T.getBlockletServices(o).length&&w.splice(2,0,{label:a("blocklet.services"),value:"services"});const le=v[t]||v.overview;x=p.jsxs(Ut,{type:"components",children:[!T.isExternalBlocklet(o)&&p.jsx(zt,{tabs:w,current:t,onChange:E,scrollButtons:"auto"}),p.jsx("div",{className:"page-content",children:p.jsx(b.Suspense,{fallback:p.jsx(De,{relative:"parent",children:p.jsx(Oe,{})}),children:b.isValidElement(le)?le:p.jsx(le,{blocklet:o,onUpdate:L,createPassportSvg:y})})})]})}else x=p.jsx(De,{relative:"parent",children:p.jsx(Oe,{})});const M=()=>{},m=({action:v,error:ae})=>{if(ae){J.error(ae.message);return}v==="remove"?(l(),e("/blocklets")):c()},S=w.find(v=>v.value===t),P=o?Kt:qo;return p.jsx(P,{teamDid:n,children:p.jsxs(Go,{children:[p.jsxs(Xt,{separator:"›","aria-label":"breadcrumb",className:"page-breadcrumb",children:[p.jsx(Rt,{color:"textSecondary",to:"/blocklets",children:a("common.blocklets")}),p.jsx(Mt,{to:`/blocklets/${n}/overview`,style:v=>v?{color:"inherit"}:{},children:a("common.detail")}),p.jsx(ue,{color:"textSecondary",children:S?S.breadcrumbsLabel||S.label:""})]}),p.jsxs(ue,{component:"div",className:"page-header",children:[p.jsxs(ue,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[o?p.jsx(Nt,{blocklet:o,style:{marginRight:16}}):null,o?p.jsxs(Z,{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,children:[p.jsx(Z,{children:T.getDisplayName(o)}),(o==null?void 0:o.status)!=="unknown"&&p.jsx($t,{size:"12px",status:o.status,source:o.source,progress:o.progress})]}):`${a("common.blocklet")} ${a("common.detail")}`]}),p.jsx(Jt,{permission:"mutate_blocklets",children:!!o&&!T.isExternalBlocklet(o)&&p.jsx(Ht,{className:"page-actions",blocklet:o,onStart:M,onComplete:m,variant:"group"})})]}),p.jsx(Ct,{}),x]})})}function ur(){const{did:e}=Ke();return e?p.jsx(Gt,{did:e,children:p.jsx(Qo,{})}):null}const Go=Ft.main`
12
+ */const Je=Object.freeze({left:0,top:0,width:16,height:16}),ee=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),H=Object.freeze({...Je,...ee}),me=Object.freeze({...H,body:"",hidden:!1});function Yt(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 Le(e,t){const n=Yt(e,t);for(const o in me)o in ee?o in e&&!(o in n)&&(n[o]=ee[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function Zt(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 en(e,t,n){const o=e.icons,r=e.aliases||Object.create(null);let s={};function i(c){s=Le(o[c]||r[c],s)}return i(t),n.forEach(i),Le(e,s)}function tn(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=Zt(e);for(const r in o){const s=o[r];s&&(t(r,en(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&&!X(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&&!X(c)?null:c}if(n&&o===""){const c={provider:o,prefix:"",name:s};return t&&!X(c,n)?null:c}return null},X=(e,t)=>e?!!((e.provider===""||e.provider.match(V))&&(t&&e.prefix===""||e.prefix.match(V))&&e.name.match(V)):!1,nn={provider:"",aliases:{},not_found:{},...Je};function fe(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function on(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!fe(e,nn))return null;const n=t.icons;for(const r in n){const s=n[r];if(!r.match(V)||typeof s.body!="string"||!fe(s,me))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]||!fe(s,me))return null}return t}const te=Object.create(null);function rn(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function C(e,t){const n=te[e]||(te[e]=Object.create(null));return n[t]||(n[t]=rn(e,t))}function Ee(e,t){return on(t)?tn(t,(n,o)=>{o?e.icons[n]=o:e.missing.add(n)}):[]}function sn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function cn(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(te)).forEach(r=>{(typeof r=="string"&&typeof t=="string"?[t]:Object.keys(te[r]||{})).forEach(i=>{const c=C(r,i);n=n.concat(Object.keys(c.icons).map(l=>(r!==""?"@"+r+":":"")+i+":"+l))})}),n}let _e=!1;function an(e){return _e}function q(e){const t=typeof e=="string"?R(e,!0,_e):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 ln(e,t){const n=R(e,!0,_e);if(!n)return!1;const o=C(n.provider,n.prefix);return sn(o,n.name,t)}function Xe(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!X({provider:t,prefix:n,name:"a"}))return!1;const o=C(t,n);return!!Ee(o,e)}function un(e){return!!q(e)}function fn(e){const t=q(e);return t?{...H,...t}:null}const Ye=Object.freeze({width:null,height:null}),Ze=Object.freeze({...Ye,...ee}),dn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,pn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function he(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(dn);if(o===null||!o.length)return e;const r=[];let s=o.shift(),i=pn.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 mn=e=>e==="unset"||e==="undefined"||e==="none";function re(e,t){const n={...H,...e},o={...Ze,...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=he(f,l/a)):(u=i==="auto"?l:i,f=c===null?he(u,a/l):c==="auto"?a:c);const d={},h=(g,y)=>{mn(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 hn=/\sid="(\S+)"/g,gn="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let bn=0;function et(e,t=gn){const n=[];let o;for(;o=hn.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+(bn++).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},tt={local:new Set,session:new Set};let Ce=!1;function yn(e){Ce=e}const Be="iconify2",U="iconify",nt=U+"-count",Re=U+"-version",ot=36e5,vn=168;function ge(e,t){try{return e.getItem(t)}catch{}}function Te(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Me(e,t){try{e.removeItem(t)}catch{}}function be(e,t){return Te(e,nt,t.toString())}function ye(e){return parseInt(ge(e,nt))||0}let W=typeof window>"u"?{}:window;function rt(e){const t=e+"Storage";try{if(W&&W[t]&&typeof W[t].length=="number")return W[t]}catch{}D[e]=!1}function st(e,t){const n=rt(e);if(!n)return;const o=ge(n,Re);if(o!==Be){if(o){const c=ye(n);for(let l=0;l<c;l++)Me(n,U+l.toString())}Te(n,Re,Be),be(n,0);return}const r=Math.floor(Date.now()/ot)-vn,s=c=>{const l=U+c.toString(),a=ge(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{}Me(n,l)}};let i=ye(n);for(let c=i-1;c>=0;c--)s(c)||(c===i-1?(i--,be(n,i)):tt[e].add(c))}function it(){if(!Ce){yn(!0);for(const e in D)st(e,t=>{const n=t.data,o=t.provider,r=n.prefix,s=C(o,r);if(!Ee(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function ct(e,t){switch(e){case"local":case"session":D[e]=t;break;case"all":for(const n in D)D[n]=t;break}}const ve=Object.create(null);function at(e,t){ve[e]=t}function xe(e){return ve[e]||ve[""]}function je(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 se=Object.create(null),N=["https://api.simplesvg.com","https://api.unisvg.com"],Y=[];for(;N.length>0;)N.length===1||Math.random()>.5?Y.push(N.shift()):Y.push(N.pop());se[""]=je({resources:["https://api.iconify.design"].concat(Y)});function lt(e,t){const n=je(t);return n===null?!1:(se[e]=n,!0)}function ie(e){return se[e]}function xn(){return Object.keys(se)}const wn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let ne=wn();function Sn(e){ne=e}function In(){return ne}function kn(e,t){const n=ie(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 En(e){return e===404}const _n=(e,t,n)=>{const o=[],r=kn(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 Cn(e){if(typeof e=="string"){const t=ie(e);if(t)return t.path}return"/"}const Tn=(e,t,n)=>{if(!ne){n("abort",424);return}let o=Cn(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;ne(e+o).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(En(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)})},jn={prepare:_n,send:Tn};function Pn(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 ut(e,t){e.forEach(n=>{const o=n.loaderCallbacks;o&&(n.loaderCallbacks=o.filter(r=>r.id!==t))})}function An(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||ut([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let Dn=0;function On(e,t,n){const o=Dn++,r=ut.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 Ln(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 Bn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Rn(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 ft(e){const t={...Bn,...e};let n=[];function o(){n=n.filter(c=>c().status==="pending")}function r(c,l,a){const u=Rn(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 Ne(){}const de=Object.create(null);function Mn(e){if(!de[e]){const t=ie(e);if(!t)return;const n=ft(t),o={config:t,redundancy:n};de[e]=o}return de[e]}function dt(e,t,n){let o,r;if(typeof e=="string"){const s=xe(e);if(!s)return n(void 0,424),Ne;r=s.send;const i=Mn(e);i&&(o=i.redundancy)}else{const s=je(e);if(s){o=ft(s);const i=e.resources?e.resources[0]:"",c=xe(i);c&&(r=c.send)}}return!o||!r?(n(void 0,424),Ne):o.query(t,r,n)().abort}function Nn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const o in D)st(o,r=>{const s=r.data;return r.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Fn(e,t){Ce||it();function n(o){let r;if(!D[o]||!(r=rt(o)))return;const s=tt[o];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=ye(r),!be(r,i+1))return;const c={cached:Math.floor(Date.now()/ot),provider:e.provider,data:t};return Te(r,U+i.toString(),JSON.stringify(c))}t.lastModified&&!Nn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Fe(){}function Vn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,An(e)}))}function zn(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=xe(n)))return;s.prepare(n,o,r).forEach(c=>{dt(n,c,l=>{if(typeof l!="object")c.icons.forEach(a=>{e.missing.add(a)});else try{const a=Ee(e,l);if(!a.length)return;const u=e.pendingIcons;u&&a.forEach(f=>{u.delete(f)}),Fn(e,l)}catch(a){console.error(a)}Vn(e)})})}))}const $n=e=>{const n=C(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},Pe=(e,t)=>{const n=Ln(e,!0,an()),o=Pn(n);if(!o.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(o.loaded,o.missing,o.pending,Fe)}),()=>{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&&zn(l,r[a][u])}),t?On(t,o,s):Fe},Un=e=>new Promise((t,n)=>{const o=typeof e=="string"?R(e,!0):e;if(!o){n(e);return}Pe([o||e],r=>{if(r.length&&o){const s=q(o);if(s){t({...H,...s});return}}n(e)})});function pt(e,t){const n={...e};for(const o in t){const r=t[o],s=typeof r;o in Ye?(r===null||r&&(s==="string"||s==="number"))&&(n[o]=r):s===typeof n[o]&&(n[o]=o==="rotate"?r%4:r)}return n}const ce={...Ze,inline:!1},pe="iconify",we="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 mt(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 Hn(){if(document.documentElement)return mt(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 Qn(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let z=null;const Gn={childList:!0,subtree:!0,attributes:!0};function ht(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,z&&z(e)}))}function Wn(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||ht(e);return}}}function gt(e,t){e.observer.instance.observe(t,Gn)}function oe(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(Wn.bind(null,e)),gt(e,n),t.paused||ht(e))}function Ve(){G().forEach(oe)}function bt(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 Kn(e){const t=z!==null;if(z!==e&&(z=e,t&&G().forEach(bt)),t){Ve();return}Qn(Ve)}function Se(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 Jn(e){if(e){const t=Q(e);t&&Se(t)}else Se()}function Ie(e){(e?[e]:G()).forEach(t=>{if(!t.observer){oe(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?gt(t,o):oe(t);else return}})}function Xn(e){if(e){const t=Q(e);t&&Ie(t)}else Ie()}function yt(e,t=!1){const n=mt(e,t);return oe(n),n}function vt(e){const t=Q(e);t&&(bt(t),qn(e))}function Yn(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,o=t.customisations;for(const r in ce)if(n[r]!==o[r])return!0;return!1}function Zn(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 eo=/[\s,]+/;function to(e,t){t.split(eo).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const no=["width","height"],oo=["inline","hFlip","vFlip"];function ro(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function so(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&R(t,!0);if(!n)return null;const o={...ce,inline:e.classList&&e.classList.contains(we)};no.forEach(c=>{const l=e.getAttribute("data-"+c);l&&(o[c]=l)});const r=e.getAttribute("data-rotate");typeof r=="string"&&(o.rotate=Zn(r));const s=e.getAttribute("data-flip");typeof s=="string"&&to(o,s),oo.forEach(c=>{const l="data-"+c,a=ro(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 io="svg."+pe+", i."+pe+", span."+pe+", i."+we+", span."+we;function co(e){const t=[];return e.querySelectorAll(io).forEach(n=>{const o=n[j]||n.tagName.toLowerCase()!=="svg"?so(n):null;o&&t.push({node:n,props:o})}),t}function xt(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 ao(){try{$=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{$=null}}function lo(e){return $===void 0&&ao(),$?$.createHTML(e):e}function wt(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function St(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 It(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 kt(e,t,n){let o;try{o=document.createElement("span")}catch{return e}const r=t.customisations,s=re(n,r),i=e[j],c=xt(et(s.body),{"aria-hidden":"true",role:"img",...s.attributes});o.innerHTML=lo(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=wt(t.icon),f=St(l,u,new Set(i&&i.addedClasses),e),d=It(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 uo(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function fo(e){return"data:image/svg+xml,"+uo(e)}function po(e){return'url("'+fo(e)+'")'}const mo={display:"inline-block"},ke={"background-color":"currentColor"},Et={"background-color":"transparent"},ze={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},$e={"-webkit-mask":ke,mask:ke,background:Et};for(const e in $e){const t=$e[e];for(const n in ze)t[e+"-"+n]=ze[n]}function Ue(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function ho(e,t,n,o){const r=t.customisations,s=re(n,r),i=s.attributes,c=e[j],l=xt(s.body,{...i,width:n.width+"",height:n.height+""}),a=wt(t.icon),u=St(e,a,new Set(c&&c.addedClasses)),d={"--svg":po(l),width:Ue(i.width),height:Ue(i.height),...mo,...o?ke:Et};r.inline&&(d["vertical-align"]="-0.125em");const h=It(e,d,c&&c.addedStyles),g={...t,status:"loaded",addedClasses:u,addedStyles:h};return e[j]=g,e}let K=!1;function go(){K||(K=!0,setTimeout(()=>{K&&(K=!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&&!$n(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,Se(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"){ho(a,u,{...H,...f},h);return}}kt(a,u,f)}co(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(Yn(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?vt(s):t&&i?yt(s,!0):c&&r.observer&&Ie(r)});for(const r in n){const s=n[r];for(const i in s){const c=s[i];Pe(Array.from(c).map(l=>({provider:r,prefix:i,name:l})),go)}}}function bo(e){const t=Q(e);t?B(t):B({node:e,temporary:!0},!0)}function _t(e,t,n=!1){const o=q(e);if(!o)return null;const r=R(e),s=pt(ce,t||{}),i=kt(document.createElement("span"),{name:e,icon:r,customisations:s},o);return n?i.outerHTML:i}function yo(){return"3.1.1"}function vo(e,t){return _t(e,t,!1)}function xo(e,t){return _t(e,t,!0)}function wo(e,t){const n=q(e);if(!n)return null;const o=pt(ce,t||{});return re(n,o)}function So(e){e?bo(e):B()}if(typeof document<"u"&&typeof window<"u"){Hn();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"||!Xe(o))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{Kn(B),B()})}function Io(e,t){ct(e,t!==!1)}function ko(e){ct(e,!0)}at("",jn);if(typeof document<"u"&&typeof window<"u"){it();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;lt(n,r)||console.error(o)}catch{console.error(o)}}}}const Eo={getAPIConfig:ie,setAPIModule:at,sendAPIQuery:dt,setFetch:Sn,getFetch:In,listAPIProviders:xn},_o={_api:Eo,addAPIProvider:lt,loadIcons:Pe,loadIcon:Un,iconExists:un,getIcon:fn,listIcons:cn,addIcon:ln,addCollection:Xe,replaceIDs:et,calculateSize:he,buildIcon:re,getVersion:yo,renderSVG:vo,renderHTML:xo,renderIcon:wo,scan:So,observe:yt,stopObserving:vt,pauseObserver:Jn,resumeObserver:Xn,enableCache:Io,disableCache:ko};try{self.Iconify===void 0&&(self.Iconify=_o)}catch{}const Co=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},To=(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 Ct(){const{t:e}=He(),{api:t}=qe(),{blocklet:n}=qt(),{inService:o}=Tt(),[r,s]=b.useState(!1),[i,c]=b.useState(5),l=n&&n.structVersion!==F.APP_STRUCT_VERSION,a=()=>{try{if(n.status==="running"){J.error(e("blocklet.migrate.tip.running"));return}const d=Co(n);if(d){J.error(e("blocklet.migrate.tip.duplicate",{name:d}));return}s(!0)}catch(d){J.error(We(d))}},u=()=>{const d=To(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(Z,{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(Z,{display:"flex",alignItems:"center",children:e(`blocklet.migrate.intro.${d}`)},d))]},"alert"),n&&p.jsx(jt,{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:Pt(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")]}Ct.propTypes={};const jo=b.lazy(()=>I(()=>import("./overview-APoIqy5P.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url)),Po=b.lazy(()=>I(()=>import("./domains-B3WgGegI.js"),__vite__mapDeps([16,1,2,17,5,18,19,20,21,10,22,23,24,25,26,27,28,12,29,30,31,32,33,9,34,35,36,37]),import.meta.url)),Ao=b.lazy(()=>I(()=>import("./index-7iYq2V4L.js"),__vite__mapDeps([38,1,2,39,40,41,42,43,22,5,44,45,46,47,48,49,50,51,52,53,54,37,20,55,56,57,58,23,17,59,60,10,61,62,27,11,12,9,4,6,7,63,64,30,65,66,67,68,69,70,71,72,73,74,75,29]),import.meta.url)),Do=b.lazy(()=>I(()=>import("./appearance-DbHWwKo-.js"),__vite__mapDeps([76,1,2,10,69]),import.meta.url)),Oo=b.lazy(()=>I(()=>import("./config-navigation-CNRkvto9.js"),__vite__mapDeps([77,1,2,7,78,79,80,10,54,37,20,55,56,57,58,23,17,59,60,81,82,43,83,33,84,85,64,61,12,86,36,87,8,3,88,47,48,11,71,72,73,22,52,70,46,15,49,50,41,19]),import.meta.url)),Lo=b.lazy(()=>I(()=>import("./index-BuuM5jo8.js"),__vite__mapDeps([89,1,2,54,37,20,55,56,57,58,23,17,59,60,71,72,73,47,48,12,22,51,43,52,53,10,61,90,9,91,92,41,93,42,94,95,96,97,75,74,69]),import.meta.url)),Bo=b.lazy(()=>I(()=>import("./audit-logs-DWljSpy4.js"),__vite__mapDeps([98,17,1,2,60,57,58,72,99,100,90,11,10,12]),import.meta.url)),Ro=b.lazy(()=>I(()=>import("./index-Vn3yqa3y.js").then(e=>e.i),__vite__mapDeps([101,1,2,54,37,20,55,56,57,58,23,17,59,60,43,11,10,12,69,88,47,48,22,102,78,30,45,103,104]),import.meta.url)),Mo=b.lazy(()=>I(()=>import("./index-1l3rmmE5.js").then(e=>e.i),__vite__mapDeps([105,1,2,30,106,54,37,20,55,56,57,58,23,17,59,60,82,43,83,33,84,85,64,61,12,86,36,87,8,3,88,47,48,11,10,22,27,97,75,74,9,107,108,6,109,24,25,90]),import.meta.url)),No=b.lazy(()=>I(()=>import("./service-yH9ZzgNY.js"),__vite__mapDeps([110,1,2,111,81,94,56,75,43,30,23,58,112,42,93,57,46]),import.meta.url)),Fo=b.lazy(()=>I(()=>import("./index-DM-X6w1C.js"),__vite__mapDeps([113,1,2,30,17,71,72,59,23,73,47,48,12,22,63,64,61,10,112,111,81,94,56,75,43,58,42,93,57,46,27,114,115,116,49,50,107,18,117,44,108,26,118,119,120,121,122,86,36,87,8,3,88,14,15,123,99,100,39,40,41,53,102,78,124,125,79,9,84,126,34,35,69,28,24,25,127,11]),import.meta.url)),Vo=b.lazy(()=>I(()=>import("./log--8P_TkIi.js"),__vite__mapDeps([128,1,2,72,129,47,48,130,50]),import.meta.url)),zo=b.lazy(()=>I(()=>import("./runtime-BjHuHXy7.js"),__vite__mapDeps([131,1,2,54,37,20,55,56,57,58,23,17,59,60,10,87,132,95,96,28,12,104,48]),import.meta.url)),$o=b.lazy(()=>I(()=>import("./traffic-CoY4yr_p.js").then(e=>e.t),__vite__mapDeps([92,1,2,41,93,42,94,95,96,97,20,75,74]),import.meta.url)),Uo=b.lazy(()=>I(()=>import("./index-BKivhg3S.js"),__vite__mapDeps([133,1,2,43,10,69,86,36,87,8,3,88,47,48,15,122,14,108,9,96,54,37,20,55,56,57,58,23,17,59,60,25,71,72,73,12,22,63,64,61,103]),import.meta.url)),Ho=b.lazy(()=>I(()=>import("./index-0U-vrSlK.js"),__vite__mapDeps([134,54,1,2,37,20,55,56,57,58,23,17,59,60,30,11,10,12,69,52,67,68,116,50,121,24,25,135,136]),import.meta.url)),qo=({children:e})=>e;function Qo(){var A,_;const e=At(),{tab:t="overview"}=Ke(),{did:n,blocklet:o,error:r,client:s,actions:{setBlocklet:i,refreshBlocklet:c}}=Wt(),{refresh:l}=Dt(),{t:a}=He(),{session:u}=qe(),f=Ot(()=>{var v;return((v=u.user)==null?void 0:v.role)&&Lt.includes(u.user.role)},[u]),d=b.useCallback(()=>p.jsx(Bo,{scope:n}),[n]),h=b.useCallback(()=>f?p.jsx(Lo,{blocklet:o}):p.jsx(Qt,{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=>Vt(v,g),E=v=>{e(`/blocklets/${n}/${v}`)},L=v=>{v&&i(v),c()},k=!o||Ae(o.status)?[]:T.getAppMissingConfigs(o);let x=null;const w=[{label:a("common.overview"),value:"overview"},{breadcrumbsLabel:a("common.components"),label:p.jsx(Bt,{"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(jo,{}),domains:p.jsx(Po,{}),configuration:Ao,appearance:Do,navigation:Oo,services:No,members:p.jsx(Mo,{type:"blocklet",createPassportSvg:y}),passports:Ro,components:Fo,"audit-logs":d,notifications:h,logs:Vo,runtime:p.jsx(zo,{}),traffic:p.jsx($o,{client:s,did:n}),didSpaces:p.jsx(Uo,{}),webhooks:p.jsx(Ho,{})};t==="configuration"&&Ae(o.status)&&E("overview"),w.push({label:a("common.domains"),value:"domains"}),w.push({label:a("common.members"),value:"members"}),w.push({label:a("team.member.passports"),value:"passports"}),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"}),f&&w.push({label:"Webhooks",value:"webhooks"}),T.getBlockletServices(o).length&&w.splice(2,0,{label:a("blocklet.services"),value:"services"});const le=v[t]||v.overview;x=p.jsxs(Ut,{type:"components",children:[!T.isExternalBlocklet(o)&&p.jsx(zt,{tabs:w,current:t,onChange:E,scrollButtons:"auto"}),p.jsx("div",{className:"page-content",children:p.jsx(b.Suspense,{fallback:p.jsx(De,{relative:"parent",children:p.jsx(Oe,{})}),children:b.isValidElement(le)?le:p.jsx(le,{blocklet:o,onUpdate:L,createPassportSvg:y})})})]})}else x=p.jsx(De,{relative:"parent",children:p.jsx(Oe,{})});const M=()=>{},m=({action:v,error:ae})=>{if(ae){J.error(ae.message);return}v==="remove"?(l(),e("/blocklets")):c()},S=w.find(v=>v.value===t),P=o?Kt:qo;return p.jsx(P,{teamDid:n,children:p.jsxs(Go,{children:[p.jsxs(Xt,{separator:"›","aria-label":"breadcrumb",className:"page-breadcrumb",children:[p.jsx(Rt,{color:"textSecondary",to:"/blocklets",children:a("common.blocklets")}),p.jsx(Mt,{to:`/blocklets/${n}/overview`,style:v=>v?{color:"inherit"}:{},children:a("common.detail")}),p.jsx(ue,{color:"textSecondary",children:S?S.breadcrumbsLabel||S.label:""})]}),p.jsxs(ue,{component:"div",className:"page-header",children:[p.jsxs(ue,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[o?p.jsx(Nt,{blocklet:o,style:{marginRight:16}}):null,o?p.jsxs(Z,{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,children:[p.jsx(Z,{children:T.getDisplayName(o)}),(o==null?void 0:o.status)!=="unknown"&&p.jsx($t,{size:"12px",status:o.status,source:o.source,progress:o.progress})]}):`${a("common.blocklet")} ${a("common.detail")}`]}),p.jsx(Jt,{permission:"mutate_blocklets",children:!!o&&!T.isExternalBlocklet(o)&&p.jsx(Ht,{className:"page-actions",blocklet:o,onStart:M,onComplete:m,variant:"group"})})]}),p.jsx(Ct,{}),x]})})}function ur(){const{did:e}=Ke();return e?p.jsx(Gt,{did:e,children:p.jsx(Qo,{})}):null}const Go=Ft.main`
13
13
  .page-header {
14
14
  display: flex;
15
15
  justify-content: space-between;
@@ -1 +1 @@
1
- import{a as _}from"./codemirror.es-RSOcc6GZ.js";import"./index-D1AXuR6p.js";import"./index-hsXwdita.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-CDd3nIcD.js";import"./index-RNqR3FXM.js";import"./index-e66xJJ-x.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{c1 as Mt,c0 as _t,b8 as $t,r as C,c2 as Bt,b$ as Ft,bZ as Ne,j as e,c4 as zt,c5 as Nt,fL as Ye,a2 as ne,ia as Ut,cH as Wt,d0 as Je,d2 as Ot,m as P,bs as Ht,cu as ee,hu as Vt,D as Gt,K as h,C as N,bc as Qt,k,V as se,q as oe,al as K,E as re,aB as M,b5 as et,P as i,ib as Zt,b0 as tt,M as Kt,bq as _,_ as Xt,b as Ue,ae,y as L,B as le,aW as Yt,Q as nt,aI as Jt,aa as en,aP as it,aQ as st,b6 as tn,h as nn,b7 as We,b4 as sn,n as on,bE as rn,i7 as ot,b9 as rt,co as he,aZ as H,ea as at,ic as an,ba as ln,gh as lt,gO as ye,id as ct,ie as cn,ig as dn,d3 as dt,ih as un,ii as mn,bl as pn,g as fn,eV as O,X as U,H as je,hF as xn,a_ as hn,Y as Oe,t as gn,ax as Dn,aV as yn,fi as He,ij as jn}from"./index-hsXwdita.js";import{E as bn}from"./index-Cd_2D3Sl.js";import{u as vn}from"./index-BlCna4p9.js";import{d as Cn,a as wn}from"./VerifiedUser-1sSxKHO8.js";import{L as ut}from"./LoadingButton-D1yBseaf.js";import{u as Rn}from"./useAsync-D_akrj3d.js";import{u as X}from"./blocklet-B7Zji5DT.js";import{w as mt}from"./permission-BcsRTq-z.js";import{d as pt}from"./Delete-CT7C6Kie.js";import{A as Sn}from"./actions-CpNtRMjL.js";import{D as An}from"./delete-confirm-CjqJdSpd.js";import{D as Ve}from"./status-DmJZiE7J.js";import{C as Pn}from"./CardContent-B7pLobRd.js";import{d as kn}from"./Add-B6SubMna.js";import{d as Tn}from"./CallMerge-Dx0ABV96.js";import{a as In}from"./toLower-DkxjP5Df.js";import{u as En}from"./use-mobile-CecRxviL.js";import{I as qn}from"./index-sIpE29lb.js";import{g as Ln,p as Ge}from"./util-BMW_0_6P.js";import{d as Mn}from"./OpenInNew-WY83GLbI.js";import{C as _n}from"./click-to-copy-BsvcMemr.js";import{T as $n,d as Bn,h as Qe,a as Fn}from"./TableRow-De6rTaLH.js";import"./useThemeProps-B56eXTgo.js";import"./MoreHoriz-BwjT-Th3.js";import"./url-evaluation-CTRSa9ZC.js";import"./is-path-prefix-equal-Cb4XUN1S.js";function zn(n){return Mt("MuiTableContainer",n)}_t("MuiTableContainer",["root"]);const Nn=["className","component"],Un=n=>{const{classes:t}=n;return Nt({root:["root"]},zn,t)},Wn=$t("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(n,t)=>t.root})({width:"100%",overflowX:"auto"}),On=C.forwardRef(function(t,s){const r=Bt({props:t,name:"MuiTableContainer"}),{className:o,component:a="div"}=r,d=Ft(r,Nn),c=Ne({},r,{component:a}),u=Un(c);return e.jsx(Wn,Ne({ref:s,as:a,className:zt(u.root,o),ownerState:c},d))}),Hn=Ye({});Hn.interceptors.request.use(n=>{const t=window.blocklet?window.blocklet.prefix:"/";return n.baseURL=t||"",n.url=ne("/api",String(n.url)),n.timeout=2e5,n.params=n.params||{},new URLSearchParams(n.url.split("?")[1]).has("locale")||(n.params.locale=Ut()),n},n=>Promise.reject(n));const ft=(...n)=>Ye(...n),Vn=(n,t)=>t?n?[n,...Array.isArray(t)?t:[t]]:t:n,Gn=(n,{width:t=600,height:s=700,name:r="did-domain:popup"}={})=>{const o=window.screenX+(window.innerWidth-t)/2,a=window.screenY+(window.innerHeight-s)/2,d=[`left=${o}`,`top=${a}`,`width=${t}`,`height=${s}`,"resizable=no","scrollbars=yes","status=yes","popup=yes"],c=window.open("",r,d.join(","));if(c===null)throw new Error("Failed to open popup");return c.location.href=Wt(n,{opener:window.location.origin}),c},Qn="z2qaGosS3rZ7m5ttP3Nd4V4qczR9TryTcRV4p",xt=async n=>{var u;if(!n||!(n!=null&&n.trim()))return null;const t=ft(),s=new URL(n);s.pathname="__blocklet__.js",s.searchParams.set("type","json");const{data:r}=await t.get(s.toString()),o=(u=r==null?void 0:r.componentMountPoints)==null?void 0:u.find(x=>x.did===Qn),a=new URL(n);a.pathname=o==null?void 0:o.mountPoint;const d=a.toString(),c=ne(d,"/api");return{base:d,api:c}},Zn=Je({embed:{iconTip:"Click to view subscription details"},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"}}}),Kn=Je({embed:{iconTip:"点击查看订阅详情"},buy:{button:{title:"购买 DID 域名"},status:{inProgress:"请稍等,我们正在处理您的请求,购买域名后会自动解析到当前的应用...",success:"购买完成!"},error:{failedToCreateSession:"创建会话失败"}}}),Xn={zh:Kn,en:Zn},Yn=async({didDomainURL:n,delegatee:t,delegateePk:s})=>{const r=await xt(n);if(!r)return null;const o=ft({baseURL:r.api}),{data:a}=await o.post("/payment/session",{delegatee:t,delegateePk:s});return{sessionId:a.sessionId,baseURL:r.base}};function ht({delegatee:n,delegateePk:t,didDomainURL:s,locale:r,title:o,onSuccess:a,...d}){const{t:c}=P(),[u,x]=vn({currentState:1}),m=C.useRef(null),y=Ht(async()=>{const l=await Yn({didDomainURL:s,delegatee:n,delegateePk:t});return l},{debounceWait:500,debounceLeading:!0,debounceTrailing:!1,debounceMaxWait:3e3,refreshDeps:[],onError(l){console.error(l)}}),j=ee(l=>{var D,b,w,q;l.data.type==="didDomain.success"&&(a==null||a({nftDid:(D=l.data)==null?void 0:D.nftDid,domain:(b=l.data)==null?void 0:b.domain,chainHost:(w=l.data)==null?void 0:w.chainHost}),(q=m.current)==null||q.close(),m.current=null,x({currentState:4}),setTimeout(()=>{x({currentState:8})},2e3))});Vt(()=>{var l;try{window.removeEventListener("message",j),(l=m.current)==null||l.close(),m.current=null}catch(D){console.warn("Failed to close popup",D)}});const g=ee(()=>{x({currentState:1})}),f=ee(()=>{if(x({currentState:2}),!y.data){console.error("Failed to create session");return}p({sessionId:y.data.sessionId,baseURL:y.data.baseURL})}),p=ee(({sessionId:l,baseURL:D})=>{window.addEventListener("message",j);const b=new URL(D);b.searchParams.set("sessionId",l),b.searchParams.set("locale",r),b.searchParams.set("embed","1"),m.current=Gn(b.toString());const w=setInterval(()=>{var q;(q=m.current)!=null&&q.closed&&(clearInterval(w),g())},1e3);return()=>clearInterval(w)});return e.jsxs(e.Fragment,{children:[e.jsx(ut,{loading:y.loading,onClick:f,variant:"contained",startIcon:e.jsx(Cn,{}),...d,children:o||c("buy.button.title")}),e.jsxs(Gt,{fullWidth:!0,maxWidth:"xs",open:u.currentState>1&&u.currentState<8,onClose:g,children:[!y.error&&e.jsxs(h,{sx:{display:"flex",alignItems:"center",flexDirection:"column",gap:2},children:[u.currentState===2&&e.jsx(N,{size:50}),u.currentState===4&&e.jsx(Qt,{sx:{color:"primary.main",fontSize:"5rem"}}),u.currentState===2&&e.jsx(k,{children:c("buy.status.inProgress")}),u.currentState===4&&e.jsx(k,{children:c("buy.status.success")})]}),y.error&&e.jsx(se,{severity:"error",children:c("buy.error.failedToCreateSession")})]})]})}const gt={onSuccess:()=>{},title:""};ht.defaultProps=gt;function Dt(n){return e.jsx(Ot,{locale:n.locale,translations:Xn,children:e.jsx(ht,{...n})})}Dt.defaultProps=gt;function yt({nftDid:n,didDomainURL:t,locale:s,sx:r}){const{t:o}=P(),[a,d]=oe({safeIframeRef:null,popoverAnchorEl:null}),c=C.useRef(null),u=K(),x=re(u.breakpoints.down("md")),m=f=>{d({popoverAnchorEl:f.currentTarget})},y=()=>{d({popoverAnchorEl:null})},j=Rn(async()=>{const f=await xt(t);return f?f.base:null});if(!j.value)return null;if(j.loading)return e.jsx(N,{});const g=ne(j.value,`/embed/domain?nft-did=${n}&locale=${s}`);return e.jsxs(e.Fragment,{children:[e.jsx(M,{title:o("embed.iconTip"),children:e.jsx(h,{component:"img",src:ne(t,"/.well-known/service/blocklet/logo"),alt:"logo",width:16,height:16,onClick:m,sx:Vn({cursor:"pointer"},r)})}),e.jsx(et,{id:"popover-info",open:!!a.popoverAnchorEl,anchorEl:a.popoverAnchorEl,onClose:y,anchorOrigin:{vertical:"bottom",horizontal:"right"},children:e.jsx("iframe",{ref:c,title:o("common.subscription"),width:x?"320px":"400px",height:"350px",style:{border:0,display:"block"},src:g})})]})}yt.defaultProps={sx:{}};const Jn=n=>["waiting","creating","renewaling"].includes(n);function be(n){var A,T;const{t}=P(),[s,r]=C.useState(!1),{inService:o}=_(),[a,d]=C.useState(null),{siteId:c,domain:u,onAdd:x,children:m,did:y,issuing:j,setIssuing:g}=n,{api:f,ws:{useSubscription:p}}=_(),{mode:l,actions:{refreshDomainStatus:D}}=X(),b=Xt(async()=>{const{cert:S}=await f.findCertificateByDomain({input:{domain:u,did:y}});return S}),w=(S,V)=>{S.domain===u&&(g(!1),r(!1),o&&l!=="setup"&&(V==="success"?L.success(t("setup.domain.genCertSuccess",{domain:S.domain})):V==="error"&&L.error(t("setup.domain.genCertFailed",{domain:S.domain,message:S.message}))))};if(C.useEffect(()=>{var S;b.loading||g(Jn((S=b.value)==null?void 0:S.status))},[b.loading,(A=b.value)==null?void 0:A.status,g]),p(Ue.BlockletEvents.certError,S=>w(S,"error")),p(Ue.BlockletEvents.certIssued,S=>{b.retry(),D(S.domain),w(S,"success")}),b.loading||((T=b.value)==null?void 0:T.status)==="normal")return"";const q=()=>{r(!1),d(null)},$=async()=>{r(!0);try{await f.issueLetsEncryptCert({input:{siteId:c,domain:u,did:y,inBlockletSetup:l==="setup"}}),x(),g(!0)}catch(S){console.error(S),g(!1)}finally{r(!1),d(null)}},B={title:t("router.cert.genLetsEncryptCert.title"),description:e.jsxs("div",{children:[e.jsx(se,{severity:"success",children:t("router.cert.genLetsEncryptCert.dnsTip")}),t("router.cert.genLetsEncryptCert.description")]}),confirm:t("common.confirm"),onConfirm:$,onCancel:q},me=S=>{S.stopPropagation(),d(B)};return e.jsxs(e.Fragment,{children:[j?e.jsx(M,{title:t("router.cert.issuing"),children:e.jsx(N,{size:13,style:{fontSize:"13px"}})}):m({loading:s,open:me}),a&&e.jsx(ae,{color:"primary",title:a.title,description:a.description,confirm:a.confirm,params:a.params,onConfirm:a.onConfirm,onCancel:a.onCancel})]})}be.propTypes={domain:i.string.isRequired,did:i.string.isRequired,siteId:i.string.isRequired,onAdd:i.func,children:i.any,issuing:i.bool,setIssuing:i.func};be.defaultProps={onAdd:()=>{},children:null,issuing:!1,setIssuing:()=>{}};function ve(n){const{domain:t,domainStatus:s,...r}=n;return Zt(t)||!tt(t)||Kt(s)||s!=null&&s.isHttps?"":e.jsx(be,{domain:t,...r})}ve.propTypes={domain:i.string.isRequired,domainStatus:i.shape({isHttps:i.bool}).isRequired,did:i.string.isRequired,onAdd:i.func,children:i.any,issuing:i.bool,setIssuing:i.func};ve.defaultProps={onAdd:()=>{},children:null,issuing:!1,setIssuing:()=>{}};function Ce(n){const{t}=P(),[s,r]=C.useState(!1),[o,a]=C.useState(null),{id:d,domain:c,children:u,teamDid:x,onDelete:m}=n,{api:y}=_(),j=()=>{r(!1),a(null)},g=async()=>{r(!0);try{await y.deleteDomainAlias({input:{id:d,domainAlias:c,teamDid:x}}),m==null||m(),await Yt(2e3)}catch(l){L.error(l.message)}finally{a(null),r(!1)}},f={keyName:c,title:t("router.domainAlias.delete.title"),description:t("router.domainAlias.delete.description",{domain:c}),confirmPlaceholder:t("router.domainAlias.delete.confirmPlaceholder",{domain:c}),confirm:t("common.delete"),onConfirm:g,onCancel:j},p=l=>{l.stopPropagation(),a(f)};return e.jsxs(e.Fragment,{children:[typeof u=="function"?u({loading:s,open:p}):e.jsxs(le,{edge:"end",onClick:p,size:"small",className:"rule-action",color:"error","data-cy":"action-delete-domain-alias",children:[s?e.jsx(N,{size:16}):e.jsx(pt,{style:{fontSize:16}}),t("common.delete")]}),o&&e.jsx(An,{keyName:o.keyName,title:o.title,description:o.description,confirmPlaceholder:o.confirmPlaceholder,confirm:o.confirm,params:o.params,onConfirm:o.onConfirm,onCancel:o.onCancel})]})}Ce.propTypes={id:i.string.isRequired,domain:i.string.isRequired,children:i.any,teamDid:i.string,onDelete:i.func};Ce.defaultProps={children:null,teamDid:"",onDelete:null};function we({site:n,domain:t,blocklet:s,onDelete:r}){const{t:o}=P(),a=t.value===window.location.hostname;return e.jsx(Sn,{"data-cy":"domain-actions",size:"large",actions:[({close:d})=>{var c;return e.jsx(Ce,{id:n.id,domain:t.value,teamDid:(c=s==null?void 0:s.meta)==null?void 0:c.did,onDelete:r,children:({open:u})=>e.jsx(M,{title:a?o("blocklet.router.currentDomainTip"):"",children:e.jsx("span",{children:e.jsxs(nt,{disabled:t.isProtected||a,dense:!0,onClick:x=>{d(),u(x)},"data-cy":"action-toggle-block",children:[e.jsx(Jt,{style:{minWidth:24,marginRight:8},children:e.jsx(pt,{})}),e.jsx(en,{primary:o("common.delete")})]},"remove")})})})}]})}we.propTypes={site:i.object.isRequired,domain:i.object.isRequired,blocklet:i.object.isRequired,onDelete:i.func};we.defaultProps={onDelete:()=>{}};var Re={},ei=st;Object.defineProperty(Re,"__esModule",{value:!0});var jt=Re.default=void 0,ti=ei(it()),ni=e;jt=Re.default=(0,ti.default)((0,ni.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");var Se={},ii=st;Object.defineProperty(Se,"__esModule",{value:!0});var bt=Se.default=void 0,si=ii(it()),oi=e;bt=Se.default=(0,si.default)((0,oi.jsx)("path",{d:"M19 15v4H5v-4zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 18.5c-.82 0-1.5-.67-1.5-1.5s.68-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M19 5v4H5V5zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 8.5c-.82 0-1.5-.67-1.5-1.5S6.18 5.5 7 5.5s1.5.68 1.5 1.5S7.83 8.5 7 8.5"}),"DnsOutlined");const ce=i.shape({href:i.string,accessibility:i.shape({loading:i.bool,accessible:i.bool}),domainStatus:i.shape({isHttps:i.bool,matchedCert:i.object}),dns:i.shape({resolved:i.bool,ip:i.string})});function Ae({certificate:n}){const[t,s]=C.useState(null),r=_(),{t:o,locale:a}=P(),d=x=>{s(x.currentTarget)},c=()=>{s(null)},u=!!t;return e.jsxs(e.Fragment,{children:[e.jsx(wn,{"aria-owns":u?"mouse-over-popover":void 0,onMouseEnter:d,onMouseLeave:c,style:{color:"#44cdc6",fontSize:"1em",cursor:"pointer"}}),e.jsx(et,{id:"mouse-over-popover",style:{pointerEvents:"none"},open:u,anchorEl:t,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:c,disableRestoreFocus:!0,children:e.jsx(tn,{children:e.jsxs(Pn,{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(k,{component:"div",style:{marginLeft:"16px"},children:[e.jsx(k,{component:"div",style:{fontWeight:"bold"},children:n.domain}),e.jsx(k,{component:"div",children:`${o("common.issuer")}: ${nn(n,"issuer.commonName","")}`}),e.jsx(k,{component:"div",children:`${o("router.cert.issuedOn")}: ${We(n.validFrom,a)}`}),e.jsx(k,{component:"div",children:`${o("router.cert.expiryOn")}: ${We(n.validTo,a)}`})]})]})})})]})}Ae.propTypes={certificate:i.object};Ae.defaultProps={certificate:{}};function Z({domain:n,filters:t}){const{t:s}=P(),{value:r,domainStatus:o}=n;if(!tt(r))return null;let a=null,d=null;const{isHttps:c,matchedCert:u}=o,{dns:{ip:x,isDnsResolved:m,isCnameMatch:y}={}}=o,j=m&&y;sn(r)||(j||x==="127.0.0.1"?a=e.jsx(M,{title:s("router.domain.verify.ok"),children:e.jsx(Ve,{color:"success"})}):a=e.jsx(M,{title:s("router.domain.verify.notResolved"),children:e.jsx(Ve,{color:"error"})})),j?c?d=e.jsx(Ae,{certificate:u}):d=e.jsx(M,{title:s("router.domain.https.bad"),children:e.jsx(jt,{style:{color:"#D0021B",fontSize:"1em",cursor:"pointer"}})}):d=e.jsx(M,{title:s("router.domain.verify.notResolved"),children:e.jsx(bt,{style:{color:"#D0021B",fontSize:"1em",cursor:"pointer"}})});const g=t.map(f=>f==="domain"?a:f==="http"?d:null);return C.createElement(C.Fragment,null,...g)}Z.propTypes={domain:ce.isRequired,filters:i.array};Z.defaultProps={filters:["domain","http"]};const ri=mt(de,"mutate_blocklets"),ai=mt(de,"",rn);function li(n){const{inService:t}=_(),{blocklet:s,loadingRuntimeInfo:r}=X();let o=ri;return t&&(o=ai),e.jsx(o,{...n,blocklet:s,inService:t,loadingRuntimeInfo:r})}const Ze="nft-domain";function de({hasPermission:n,blocklet:t,loadingRuntimeInfo:s,inService:r,showAllDomains:o,updateBlockletDomainAliases:a,systemTips:d}){var l;const{t:c}=P(),u=re(D=>D.breakpoints.down("md")),x=C.useMemo(()=>{let D=n;return ot(t)&&(D=D&&r),D},[n,r,t]),{site:m}=t,y=C.useMemo(()=>{var D;return rt((D=t.site)==null?void 0:D.domainAliases)},[(l=t.site)==null?void 0:l.domainAliases]),j=C.useMemo(()=>y.filter(D=>!he.isCustomDomain(D.value)),[y]),g=C.useMemo(()=>y.filter(D=>he.isCustomDomain(D.value)),[y]),f=C.useMemo(()=>g.filter(D=>D.type!==Ze),[g]),p=C.useMemo(()=>g.filter(D=>D.type===Ze),[g]);return e.jsxs(e.Fragment,{children:[e.jsxs(H,{gap:3,children:[!!p.length&&e.jsx(Q,{title:c("common.didDomains"),description:c("common.didDomainsDescription"),domains:p,hasMutatePermission:x,blocklet:t,site:m,mobile:u,showAllDomains:o,updateBlockletDomainAliases:a}),!!f.length&&e.jsx(Q,{title:c("common.manualDomains"),description:c("common.manualDomainsDescription"),domains:f,hasMutatePermission:x,blocklet:t,site:m,mobile:u,showAllDomains:o,updateBlockletDomainAliases:a}),!!j.length&&e.jsxs(h,{children:[d,e.jsx(Q,{title:c("common.systemDomains"),description:c("common.systemDomainsDescription"),domains:j,hasMutatePermission:x,blocklet:t,site:m,mobile:u,updateBlockletDomainAliases:a})]})]}),!y.length&&(s?e.jsx(N,{size:16}):e.jsx(bn,{children:c("common.empty")}))]})}de.propTypes={hasPermission:i.bool,blocklet:i.object.isRequired,loadingRuntimeInfo:i.bool,inService:i.bool.isRequired,showAllDomains:i.bool,updateBlockletDomainAliases:i.func,systemTips:i.node};de.defaultProps={hasPermission:!1,loadingRuntimeInfo:!1,showAllDomains:!1,updateBlockletDomainAliases:()=>{},systemTips:null};function G({children:n}){return e.jsx(h,{component:"span",sx:{verticalAlign:"bottom"},children:n})}G.propTypes={children:i.node};G.defaultProps={children:null};function ie({domain:n,children:t,suffix:s,...r}){const{t:o,locale:a}=P(),d=K(),{href:c,accessibility:u,value:x}=n,m=C.useCallback(()=>e.jsx(lt,{content:ye(x),locale:a,style:{marginLeft:"4px",color:d.palette.text.secondary,fontSize:"0.8em"}}),[x,a,d]);return!u||u.loading?e.jsxs(xe,{component:"span",...r,children:[e.jsx(M,{title:void 0,placement:"top-end",children:e.jsx(h,{component:"span",children:t})}),m(),e.jsx(G,{children:s}),e.jsx(M,{title:o("blocklet.router.checkUrlAccessible"),placement:"top-end",children:e.jsx(h,{component:"span",className:"status",children:e.jsx(N,{size:13,style:{fontSize:"13px"}})})})]}):u.accessible?e.jsxs(xe,{component:"span",...r,children:[e.jsx(h,{component:"a",href:c,target:"_blank",rel:"noopener noreferrer",sx:{color:n.loading?"text.disabled":void 0},children:e.jsx(M,{title:void 0,placement:"top-end",children:e.jsx(h,{component:"span",children:t})})}),m(),e.jsx(G,{children:s})]}):e.jsxs(xe,{component:"span",...r,children:[e.jsx(M,{title:o("blocklet.router.urlInaccessible"),placement:"top-end",children:e.jsx(h,{component:"span",children:t})}),!n.loading&&m(),e.jsx(G,{children:s})]})}ie.propTypes={domain:ce.isRequired,children:i.any.isRequired,suffix:i.node};ie.defaultProps={suffix:null};const xe=on(h)`
1
+ import{c1 as Mt,c0 as _t,b8 as $t,r as C,c2 as Bt,b$ as Ft,bZ as Ne,j as e,c4 as zt,c5 as Nt,fL as Ye,a2 as ne,ia as Ut,cH as Wt,d0 as Je,d2 as Ot,m as P,bs as Ht,cu as ee,hu as Vt,D as Gt,K as h,C as N,bc as Qt,k,V as se,q as oe,al as K,E as re,aB as M,b5 as et,P as i,ib as Zt,b0 as tt,M as Kt,bq as _,_ as Xt,b as Ue,ae,y as L,B as le,aW as Yt,Q as nt,aI as Jt,aa as en,aP as it,aQ as st,b6 as tn,h as nn,b7 as We,b4 as sn,n as on,bE as rn,i7 as ot,b9 as rt,co as he,aZ as H,ea as at,ic as an,ba as ln,gh as lt,gO as ye,id as ct,ie as cn,ig as dn,d3 as dt,ih as un,ii as mn,bl as pn,g as fn,eV as O,X as U,H as je,hF as xn,a_ as hn,Y as Oe,t as gn,ax as Dn,aV as yn,fi as He,ij as jn}from"./index-e66xJJ-x.js";import{E as bn}from"./index-f9QTV2yS.js";import{u as vn}from"./index-CcKekV6p.js";import{d as Cn,a as wn}from"./VerifiedUser-Cz-5rgpe.js";import{L as ut}from"./LoadingButton-DzOnJ8zq.js";import{u as Rn}from"./useAsync-D-2V_lHb.js";import{u as X}from"./blocklet-BNsbNDuf.js";import{w as mt}from"./permission-CtZli8Hf.js";import{d as pt}from"./Delete-D0GFkYtH.js";import{A as Sn}from"./actions-DveJjfxt.js";import{D as An}from"./delete-confirm-DoYSwIFx.js";import{D as Ve}from"./status-DRBez5Qf.js";import{C as Pn}from"./CardContent-BCodnoZu.js";import{d as kn}from"./Add-BYFWsyUF.js";import{d as Tn}from"./CallMerge-SZDzfJgb.js";import{a as In}from"./toLower-PXiIHwDf.js";import{u as En}from"./use-mobile-D02_HykR.js";import{I as qn}from"./index-JsgthZUN.js";import{g as Ln,p as Ge}from"./util-wc6KkzlL.js";import{d as Mn}from"./OpenInNew-DeXzob2p.js";import{C as _n}from"./click-to-copy-ADdBawgq.js";import{T as $n,d as Bn,h as Qe,a as Fn}from"./TableRow-CDB9WIef.js";import"./useThemeProps-Dk-4jx1U.js";import"./MoreHoriz-DC7IikA2.js";import"./url-evaluation-DRKjUU7g.js";import"./is-path-prefix-equal-CF4M2MVl.js";function zn(n){return Mt("MuiTableContainer",n)}_t("MuiTableContainer",["root"]);const Nn=["className","component"],Un=n=>{const{classes:t}=n;return Nt({root:["root"]},zn,t)},Wn=$t("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(n,t)=>t.root})({width:"100%",overflowX:"auto"}),On=C.forwardRef(function(t,s){const r=Bt({props:t,name:"MuiTableContainer"}),{className:o,component:a="div"}=r,d=Ft(r,Nn),c=Ne({},r,{component:a}),u=Un(c);return e.jsx(Wn,Ne({ref:s,as:a,className:zt(u.root,o),ownerState:c},d))}),Hn=Ye({});Hn.interceptors.request.use(n=>{const t=window.blocklet?window.blocklet.prefix:"/";return n.baseURL=t||"",n.url=ne("/api",String(n.url)),n.timeout=2e5,n.params=n.params||{},new URLSearchParams(n.url.split("?")[1]).has("locale")||(n.params.locale=Ut()),n},n=>Promise.reject(n));const ft=(...n)=>Ye(...n),Vn=(n,t)=>t?n?[n,...Array.isArray(t)?t:[t]]:t:n,Gn=(n,{width:t=600,height:s=700,name:r="did-domain:popup"}={})=>{const o=window.screenX+(window.innerWidth-t)/2,a=window.screenY+(window.innerHeight-s)/2,d=[`left=${o}`,`top=${a}`,`width=${t}`,`height=${s}`,"resizable=no","scrollbars=yes","status=yes","popup=yes"],c=window.open("",r,d.join(","));if(c===null)throw new Error("Failed to open popup");return c.location.href=Wt(n,{opener:window.location.origin}),c},Qn="z2qaGosS3rZ7m5ttP3Nd4V4qczR9TryTcRV4p",xt=async n=>{var u;if(!n||!(n!=null&&n.trim()))return null;const t=ft(),s=new URL(n);s.pathname="__blocklet__.js",s.searchParams.set("type","json");const{data:r}=await t.get(s.toString()),o=(u=r==null?void 0:r.componentMountPoints)==null?void 0:u.find(x=>x.did===Qn),a=new URL(n);a.pathname=o==null?void 0:o.mountPoint;const d=a.toString(),c=ne(d,"/api");return{base:d,api:c}},Zn=Je({embed:{iconTip:"Click to view subscription details"},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"}}}),Kn=Je({embed:{iconTip:"点击查看订阅详情"},buy:{button:{title:"购买 DID 域名"},status:{inProgress:"请稍等,我们正在处理您的请求,购买域名后会自动解析到当前的应用...",success:"购买完成!"},error:{failedToCreateSession:"创建会话失败"}}}),Xn={zh:Kn,en:Zn},Yn=async({didDomainURL:n,delegatee:t,delegateePk:s})=>{const r=await xt(n);if(!r)return null;const o=ft({baseURL:r.api}),{data:a}=await o.post("/payment/session",{delegatee:t,delegateePk:s});return{sessionId:a.sessionId,baseURL:r.base}};function ht({delegatee:n,delegateePk:t,didDomainURL:s,locale:r,title:o,onSuccess:a,...d}){const{t:c}=P(),[u,x]=vn({currentState:1}),m=C.useRef(null),y=Ht(async()=>{const l=await Yn({didDomainURL:s,delegatee:n,delegateePk:t});return l},{debounceWait:500,debounceLeading:!0,debounceTrailing:!1,debounceMaxWait:3e3,refreshDeps:[],onError(l){console.error(l)}}),j=ee(l=>{var D,b,w,q;l.data.type==="didDomain.success"&&(a==null||a({nftDid:(D=l.data)==null?void 0:D.nftDid,domain:(b=l.data)==null?void 0:b.domain,chainHost:(w=l.data)==null?void 0:w.chainHost}),(q=m.current)==null||q.close(),m.current=null,x({currentState:4}),setTimeout(()=>{x({currentState:8})},2e3))});Vt(()=>{var l;try{window.removeEventListener("message",j),(l=m.current)==null||l.close(),m.current=null}catch(D){console.warn("Failed to close popup",D)}});const g=ee(()=>{x({currentState:1})}),f=ee(()=>{if(x({currentState:2}),!y.data){console.error("Failed to create session");return}p({sessionId:y.data.sessionId,baseURL:y.data.baseURL})}),p=ee(({sessionId:l,baseURL:D})=>{window.addEventListener("message",j);const b=new URL(D);b.searchParams.set("sessionId",l),b.searchParams.set("locale",r),b.searchParams.set("embed","1"),m.current=Gn(b.toString());const w=setInterval(()=>{var q;(q=m.current)!=null&&q.closed&&(clearInterval(w),g())},1e3);return()=>clearInterval(w)});return e.jsxs(e.Fragment,{children:[e.jsx(ut,{loading:y.loading,onClick:f,variant:"contained",startIcon:e.jsx(Cn,{}),...d,children:o||c("buy.button.title")}),e.jsxs(Gt,{fullWidth:!0,maxWidth:"xs",open:u.currentState>1&&u.currentState<8,onClose:g,children:[!y.error&&e.jsxs(h,{sx:{display:"flex",alignItems:"center",flexDirection:"column",gap:2},children:[u.currentState===2&&e.jsx(N,{size:50}),u.currentState===4&&e.jsx(Qt,{sx:{color:"primary.main",fontSize:"5rem"}}),u.currentState===2&&e.jsx(k,{children:c("buy.status.inProgress")}),u.currentState===4&&e.jsx(k,{children:c("buy.status.success")})]}),y.error&&e.jsx(se,{severity:"error",children:c("buy.error.failedToCreateSession")})]})]})}const gt={onSuccess:()=>{},title:""};ht.defaultProps=gt;function Dt(n){return e.jsx(Ot,{locale:n.locale,translations:Xn,children:e.jsx(ht,{...n})})}Dt.defaultProps=gt;function yt({nftDid:n,didDomainURL:t,locale:s,sx:r}){const{t:o}=P(),[a,d]=oe({safeIframeRef:null,popoverAnchorEl:null}),c=C.useRef(null),u=K(),x=re(u.breakpoints.down("md")),m=f=>{d({popoverAnchorEl:f.currentTarget})},y=()=>{d({popoverAnchorEl:null})},j=Rn(async()=>{const f=await xt(t);return f?f.base:null});if(!j.value)return null;if(j.loading)return e.jsx(N,{});const g=ne(j.value,`/embed/domain?nft-did=${n}&locale=${s}`);return e.jsxs(e.Fragment,{children:[e.jsx(M,{title:o("embed.iconTip"),children:e.jsx(h,{component:"img",src:ne(t,"/.well-known/service/blocklet/logo"),alt:"logo",width:16,height:16,onClick:m,sx:Vn({cursor:"pointer"},r)})}),e.jsx(et,{id:"popover-info",open:!!a.popoverAnchorEl,anchorEl:a.popoverAnchorEl,onClose:y,anchorOrigin:{vertical:"bottom",horizontal:"right"},children:e.jsx("iframe",{ref:c,title:o("common.subscription"),width:x?"320px":"400px",height:"350px",style:{border:0,display:"block"},src:g})})]})}yt.defaultProps={sx:{}};const Jn=n=>["waiting","creating","renewaling"].includes(n);function be(n){var A,T;const{t}=P(),[s,r]=C.useState(!1),{inService:o}=_(),[a,d]=C.useState(null),{siteId:c,domain:u,onAdd:x,children:m,did:y,issuing:j,setIssuing:g}=n,{api:f,ws:{useSubscription:p}}=_(),{mode:l,actions:{refreshDomainStatus:D}}=X(),b=Xt(async()=>{const{cert:S}=await f.findCertificateByDomain({input:{domain:u,did:y}});return S}),w=(S,V)=>{S.domain===u&&(g(!1),r(!1),o&&l!=="setup"&&(V==="success"?L.success(t("setup.domain.genCertSuccess",{domain:S.domain})):V==="error"&&L.error(t("setup.domain.genCertFailed",{domain:S.domain,message:S.message}))))};if(C.useEffect(()=>{var S;b.loading||g(Jn((S=b.value)==null?void 0:S.status))},[b.loading,(A=b.value)==null?void 0:A.status,g]),p(Ue.BlockletEvents.certError,S=>w(S,"error")),p(Ue.BlockletEvents.certIssued,S=>{b.retry(),D(S.domain),w(S,"success")}),b.loading||((T=b.value)==null?void 0:T.status)==="normal")return"";const q=()=>{r(!1),d(null)},$=async()=>{r(!0);try{await f.issueLetsEncryptCert({input:{siteId:c,domain:u,did:y,inBlockletSetup:l==="setup"}}),x(),g(!0)}catch(S){console.error(S),g(!1)}finally{r(!1),d(null)}},B={title:t("router.cert.genLetsEncryptCert.title"),description:e.jsxs("div",{children:[e.jsx(se,{severity:"success",children:t("router.cert.genLetsEncryptCert.dnsTip")}),t("router.cert.genLetsEncryptCert.description")]}),confirm:t("common.confirm"),onConfirm:$,onCancel:q},me=S=>{S.stopPropagation(),d(B)};return e.jsxs(e.Fragment,{children:[j?e.jsx(M,{title:t("router.cert.issuing"),children:e.jsx(N,{size:13,style:{fontSize:"13px"}})}):m({loading:s,open:me}),a&&e.jsx(ae,{color:"primary",title:a.title,description:a.description,confirm:a.confirm,params:a.params,onConfirm:a.onConfirm,onCancel:a.onCancel})]})}be.propTypes={domain:i.string.isRequired,did:i.string.isRequired,siteId:i.string.isRequired,onAdd:i.func,children:i.any,issuing:i.bool,setIssuing:i.func};be.defaultProps={onAdd:()=>{},children:null,issuing:!1,setIssuing:()=>{}};function ve(n){const{domain:t,domainStatus:s,...r}=n;return Zt(t)||!tt(t)||Kt(s)||s!=null&&s.isHttps?"":e.jsx(be,{domain:t,...r})}ve.propTypes={domain:i.string.isRequired,domainStatus:i.shape({isHttps:i.bool}).isRequired,did:i.string.isRequired,onAdd:i.func,children:i.any,issuing:i.bool,setIssuing:i.func};ve.defaultProps={onAdd:()=>{},children:null,issuing:!1,setIssuing:()=>{}};function Ce(n){const{t}=P(),[s,r]=C.useState(!1),[o,a]=C.useState(null),{id:d,domain:c,children:u,teamDid:x,onDelete:m}=n,{api:y}=_(),j=()=>{r(!1),a(null)},g=async()=>{r(!0);try{await y.deleteDomainAlias({input:{id:d,domainAlias:c,teamDid:x}}),m==null||m(),await Yt(2e3)}catch(l){L.error(l.message)}finally{a(null),r(!1)}},f={keyName:c,title:t("router.domainAlias.delete.title"),description:t("router.domainAlias.delete.description",{domain:c}),confirmPlaceholder:t("router.domainAlias.delete.confirmPlaceholder",{domain:c}),confirm:t("common.delete"),onConfirm:g,onCancel:j},p=l=>{l.stopPropagation(),a(f)};return e.jsxs(e.Fragment,{children:[typeof u=="function"?u({loading:s,open:p}):e.jsxs(le,{edge:"end",onClick:p,size:"small",className:"rule-action",color:"error","data-cy":"action-delete-domain-alias",children:[s?e.jsx(N,{size:16}):e.jsx(pt,{style:{fontSize:16}}),t("common.delete")]}),o&&e.jsx(An,{keyName:o.keyName,title:o.title,description:o.description,confirmPlaceholder:o.confirmPlaceholder,confirm:o.confirm,params:o.params,onConfirm:o.onConfirm,onCancel:o.onCancel})]})}Ce.propTypes={id:i.string.isRequired,domain:i.string.isRequired,children:i.any,teamDid:i.string,onDelete:i.func};Ce.defaultProps={children:null,teamDid:"",onDelete:null};function we({site:n,domain:t,blocklet:s,onDelete:r}){const{t:o}=P(),a=t.value===window.location.hostname;return e.jsx(Sn,{"data-cy":"domain-actions",size:"large",actions:[({close:d})=>{var c;return e.jsx(Ce,{id:n.id,domain:t.value,teamDid:(c=s==null?void 0:s.meta)==null?void 0:c.did,onDelete:r,children:({open:u})=>e.jsx(M,{title:a?o("blocklet.router.currentDomainTip"):"",children:e.jsx("span",{children:e.jsxs(nt,{disabled:t.isProtected||a,dense:!0,onClick:x=>{d(),u(x)},"data-cy":"action-toggle-block",children:[e.jsx(Jt,{style:{minWidth:24,marginRight:8},children:e.jsx(pt,{})}),e.jsx(en,{primary:o("common.delete")})]},"remove")})})})}]})}we.propTypes={site:i.object.isRequired,domain:i.object.isRequired,blocklet:i.object.isRequired,onDelete:i.func};we.defaultProps={onDelete:()=>{}};var Re={},ei=st;Object.defineProperty(Re,"__esModule",{value:!0});var jt=Re.default=void 0,ti=ei(it()),ni=e;jt=Re.default=(0,ti.default)((0,ni.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");var Se={},ii=st;Object.defineProperty(Se,"__esModule",{value:!0});var bt=Se.default=void 0,si=ii(it()),oi=e;bt=Se.default=(0,si.default)((0,oi.jsx)("path",{d:"M19 15v4H5v-4zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 18.5c-.82 0-1.5-.67-1.5-1.5s.68-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M19 5v4H5V5zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 8.5c-.82 0-1.5-.67-1.5-1.5S6.18 5.5 7 5.5s1.5.68 1.5 1.5S7.83 8.5 7 8.5"}),"DnsOutlined");const ce=i.shape({href:i.string,accessibility:i.shape({loading:i.bool,accessible:i.bool}),domainStatus:i.shape({isHttps:i.bool,matchedCert:i.object}),dns:i.shape({resolved:i.bool,ip:i.string})});function Ae({certificate:n}){const[t,s]=C.useState(null),r=_(),{t:o,locale:a}=P(),d=x=>{s(x.currentTarget)},c=()=>{s(null)},u=!!t;return e.jsxs(e.Fragment,{children:[e.jsx(wn,{"aria-owns":u?"mouse-over-popover":void 0,onMouseEnter:d,onMouseLeave:c,style:{color:"#44cdc6",fontSize:"1em",cursor:"pointer"}}),e.jsx(et,{id:"mouse-over-popover",style:{pointerEvents:"none"},open:u,anchorEl:t,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:c,disableRestoreFocus:!0,children:e.jsx(tn,{children:e.jsxs(Pn,{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(k,{component:"div",style:{marginLeft:"16px"},children:[e.jsx(k,{component:"div",style:{fontWeight:"bold"},children:n.domain}),e.jsx(k,{component:"div",children:`${o("common.issuer")}: ${nn(n,"issuer.commonName","")}`}),e.jsx(k,{component:"div",children:`${o("router.cert.issuedOn")}: ${We(n.validFrom,a)}`}),e.jsx(k,{component:"div",children:`${o("router.cert.expiryOn")}: ${We(n.validTo,a)}`})]})]})})})]})}Ae.propTypes={certificate:i.object};Ae.defaultProps={certificate:{}};function Z({domain:n,filters:t}){const{t:s}=P(),{value:r,domainStatus:o}=n;if(!tt(r))return null;let a=null,d=null;const{isHttps:c,matchedCert:u}=o,{dns:{ip:x,isDnsResolved:m,isCnameMatch:y}={}}=o,j=m&&y;sn(r)||(j||x==="127.0.0.1"?a=e.jsx(M,{title:s("router.domain.verify.ok"),children:e.jsx(Ve,{color:"success"})}):a=e.jsx(M,{title:s("router.domain.verify.notResolved"),children:e.jsx(Ve,{color:"error"})})),j?c?d=e.jsx(Ae,{certificate:u}):d=e.jsx(M,{title:s("router.domain.https.bad"),children:e.jsx(jt,{style:{color:"#D0021B",fontSize:"1em",cursor:"pointer"}})}):d=e.jsx(M,{title:s("router.domain.verify.notResolved"),children:e.jsx(bt,{style:{color:"#D0021B",fontSize:"1em",cursor:"pointer"}})});const g=t.map(f=>f==="domain"?a:f==="http"?d:null);return C.createElement(C.Fragment,null,...g)}Z.propTypes={domain:ce.isRequired,filters:i.array};Z.defaultProps={filters:["domain","http"]};const ri=mt(de,"mutate_blocklets"),ai=mt(de,"",rn);function li(n){const{inService:t}=_(),{blocklet:s,loadingRuntimeInfo:r}=X();let o=ri;return t&&(o=ai),e.jsx(o,{...n,blocklet:s,inService:t,loadingRuntimeInfo:r})}const Ze="nft-domain";function de({hasPermission:n,blocklet:t,loadingRuntimeInfo:s,inService:r,showAllDomains:o,updateBlockletDomainAliases:a,systemTips:d}){var l;const{t:c}=P(),u=re(D=>D.breakpoints.down("md")),x=C.useMemo(()=>{let D=n;return ot(t)&&(D=D&&r),D},[n,r,t]),{site:m}=t,y=C.useMemo(()=>{var D;return rt((D=t.site)==null?void 0:D.domainAliases)},[(l=t.site)==null?void 0:l.domainAliases]),j=C.useMemo(()=>y.filter(D=>!he.isCustomDomain(D.value)),[y]),g=C.useMemo(()=>y.filter(D=>he.isCustomDomain(D.value)),[y]),f=C.useMemo(()=>g.filter(D=>D.type!==Ze),[g]),p=C.useMemo(()=>g.filter(D=>D.type===Ze),[g]);return e.jsxs(e.Fragment,{children:[e.jsxs(H,{gap:3,children:[!!p.length&&e.jsx(Q,{title:c("common.didDomains"),description:c("common.didDomainsDescription"),domains:p,hasMutatePermission:x,blocklet:t,site:m,mobile:u,showAllDomains:o,updateBlockletDomainAliases:a}),!!f.length&&e.jsx(Q,{title:c("common.manualDomains"),description:c("common.manualDomainsDescription"),domains:f,hasMutatePermission:x,blocklet:t,site:m,mobile:u,showAllDomains:o,updateBlockletDomainAliases:a}),!!j.length&&e.jsxs(h,{children:[d,e.jsx(Q,{title:c("common.systemDomains"),description:c("common.systemDomainsDescription"),domains:j,hasMutatePermission:x,blocklet:t,site:m,mobile:u,updateBlockletDomainAliases:a})]})]}),!y.length&&(s?e.jsx(N,{size:16}):e.jsx(bn,{children:c("common.empty")}))]})}de.propTypes={hasPermission:i.bool,blocklet:i.object.isRequired,loadingRuntimeInfo:i.bool,inService:i.bool.isRequired,showAllDomains:i.bool,updateBlockletDomainAliases:i.func,systemTips:i.node};de.defaultProps={hasPermission:!1,loadingRuntimeInfo:!1,showAllDomains:!1,updateBlockletDomainAliases:()=>{},systemTips:null};function G({children:n}){return e.jsx(h,{component:"span",sx:{verticalAlign:"bottom"},children:n})}G.propTypes={children:i.node};G.defaultProps={children:null};function ie({domain:n,children:t,suffix:s,...r}){const{t:o,locale:a}=P(),d=K(),{href:c,accessibility:u,value:x}=n,m=C.useCallback(()=>e.jsx(lt,{content:ye(x),locale:a,style:{marginLeft:"4px",color:d.palette.text.secondary,fontSize:"0.8em"}}),[x,a,d]);return!u||u.loading?e.jsxs(xe,{component:"span",...r,children:[e.jsx(M,{title:void 0,placement:"top-end",children:e.jsx(h,{component:"span",children:t})}),m(),e.jsx(G,{children:s}),e.jsx(M,{title:o("blocklet.router.checkUrlAccessible"),placement:"top-end",children:e.jsx(h,{component:"span",className:"status",children:e.jsx(N,{size:13,style:{fontSize:"13px"}})})})]}):u.accessible?e.jsxs(xe,{component:"span",...r,children:[e.jsx(h,{component:"a",href:c,target:"_blank",rel:"noopener noreferrer",sx:{color:n.loading?"text.disabled":void 0},children:e.jsx(M,{title:void 0,placement:"top-end",children:e.jsx(h,{component:"span",children:t})})}),m(),e.jsx(G,{children:s})]}):e.jsxs(xe,{component:"span",...r,children:[e.jsx(M,{title:o("blocklet.router.urlInaccessible"),placement:"top-end",children:e.jsx(h,{component:"span",children:t})}),!n.loading&&m(),e.jsx(G,{children:s})]})}ie.propTypes={domain:ce.isRequired,children:i.any.isRequired,suffix:i.node};ie.defaultProps={suffix:null};const xe=on(h)`
2
2
  display: inline-block;
3
3
  vertical-align: middle;
4
4