@abtnode/blocklet-services 1.16.31 → 1.16.32-beta-04a5da00

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 (206) hide show
  1. package/dist/assets/{Add-RSfTN8EF.js → Add-2VoKTpUb.js} +1 -1
  2. package/dist/assets/{AddBox-kYHD66ZJ.js → AddBox-Dl7mso27.js} +1 -1
  3. package/dist/assets/{Alert-ClYwyZJt.js → Alert-DPUEB95E.js} +1 -1
  4. package/dist/assets/{ArrowDropDown-DsukJ5At.js → ArrowDropDown-0yDa2aHH.js} +1 -1
  5. package/dist/assets/{Avatar-DfF1m2g5.js → Avatar-Cw952dlh.js} +1 -1
  6. package/dist/assets/{ButtonGroup-DFgjZ6az.js → ButtonGroup-d0oDm0RO.js} +1 -1
  7. package/dist/assets/{CheckCircle-2MoihWY7.js → CheckCircle-CyZ2-BIj.js} +1 -1
  8. package/dist/assets/{ChevronRight-JfisleDr.js → ChevronRight-DDyzifk9.js} +1 -1
  9. package/dist/assets/{Close-r1Gq1Bnc.js → Close-BkBXMJo_.js} +1 -1
  10. package/dist/assets/{CloseOutlined-DMNRl8D0.js → CloseOutlined-DmlGPmzq.js} +1 -1
  11. package/dist/assets/{Delete-uLZyjAyH.js → Delete-B2wSgiTE.js} +1 -1
  12. package/dist/assets/{DeleteOutline-Brfidl3M.js → DeleteOutline-BMqkCxEq.js} +1 -1
  13. package/dist/assets/{Done-BPSCz_s4.js → Done-ZAZhEq2L.js} +1 -1
  14. package/dist/assets/{Download-BPUfwxxs.js → Download-1xH6mRbf.js} +1 -1
  15. package/dist/assets/{Edit-CEc0n6pq.js → Edit-MvOKdBEJ.js} +1 -1
  16. package/dist/assets/{EditIcon-Jc6oyqrl.js → EditIcon-B68lRQt1.js} +1 -1
  17. package/dist/assets/{Error-D0CS80xU.js → Error-xmdfCNYq.js} +1 -1
  18. package/dist/assets/{ExpandMore-Bpwbf5LO.js → ExpandMore-DkoxrM3F.js} +1 -1
  19. package/dist/assets/{FilterList-8uDifo29.js → FilterList-DbTqBTrF.js} +1 -1
  20. package/dist/assets/{FormControl-BS53BBfk.js → FormControl-BUn4wQGt.js} +1 -1
  21. package/dist/assets/{FormControlLabel-CpXvhTph.js → FormControlLabel-Cn1ZEQIw.js} +1 -1
  22. package/dist/assets/{FormGroup-CQJX8jMa.js → FormGroup-BDqHH6R7.js} +1 -1
  23. package/dist/assets/{Google-OIPrxvqR.js → Google-DwKupHqA.js} +1 -1
  24. package/dist/assets/{Hidden-DQSEBXaz.js → Hidden-w-nWLLe2.js} +1 -1
  25. package/dist/assets/{InfoOutlined-tAhgLsvq.js → InfoOutlined-CgNZyv9N.js} +1 -1
  26. package/dist/assets/{InputAdornment-DE9lNaQi.js → InputAdornment-DKErxOxA.js} +1 -1
  27. package/dist/assets/{InputLabel-vEy8Wv5K.js → InputLabel-BU0FzAth.js} +1 -1
  28. package/dist/assets/{LastPage-CG3UlSnN.js → LastPage-BRQIhdX7.js} +1 -1
  29. package/dist/assets/{Launch-yFmc6Tfn.js → Launch-DZvL7Btt.js} +1 -1
  30. package/dist/assets/{LaunchOutlined-B6RRxgIf.js → LaunchOutlined-BEo8P2Tl.js} +1 -1
  31. package/dist/assets/{Link-AzDxZ12K.js → Link-CPGMRK--.js} +1 -1
  32. package/dist/assets/{ListItemText-tl-KE_u8.js → ListItemText-D00e-P7J.js} +1 -1
  33. package/dist/assets/{LoadingButton-BB1FukNp.js → LoadingButton-Dnokttyl.js} +1 -1
  34. package/dist/assets/{LockIcon-BgqgFtnN.js → LockIcon-lwFTQyw5.js} +1 -1
  35. package/dist/assets/{Loop-xx5k3xbF.js → Loop-UQ-nGsCg.js} +1 -1
  36. package/dist/assets/{MoreHoriz-_DaP4AK8.js → MoreHoriz-ClHVZaho.js} +1 -1
  37. package/dist/assets/{MoreVert-CxoveKS9.js → MoreVert-D7siuKO-.js} +1 -1
  38. package/dist/assets/{OpenInNew-DANSXvoN.js → OpenInNew-Dn1FcPSH.js} +1 -1
  39. package/dist/assets/{Pagination-CW1tLZTw.js → Pagination-EqcGDqMl.js} +1 -1
  40. package/dist/assets/{PlayArrow-BqJmPwGX.js → PlayArrow-CnWuAQ7W.js} +1 -1
  41. package/dist/assets/{QuestionMarkCircle-DbMAv-OF.js → QuestionMarkCircle-B7Bpx0cE.js} +1 -1
  42. package/dist/assets/{RadioGroup-CDcTFsOU.js → RadioGroup-Bu2zmWw_.js} +1 -1
  43. package/dist/assets/{Search-Cb1nmmjY.js → Search-CQlVySI6.js} +1 -1
  44. package/dist/assets/{Select-DTam9nL9.js → Select-BzfN1x8W.js} +1 -1
  45. package/dist/assets/{ServerLogo-VspnGmWN.js → ServerLogo-DfCDjLNl.js} +1 -1
  46. package/dist/assets/{Skeleton-DyvBCeAS.js → Skeleton-DqrgKJha.js} +1 -1
  47. package/dist/assets/{Slider-DsbZ_-QY.js → Slider-BtNkKS5B.js} +1 -1
  48. package/dist/assets/{Stepper-DMLaOhco.js → Stepper-xGvqwz44.js} +1 -1
  49. package/dist/assets/{TextField-CAingS4F.js → TextField-OgHHL_KP.js} +1 -1
  50. package/dist/assets/{Toolbar-Ba71DWfj.js → Toolbar-IW4D_zYa.js} +1 -1
  51. package/dist/assets/{ViewList-Bh9I-lWt.js → ViewList-BFQT-hmR.js} +1 -1
  52. package/dist/assets/{access-control-D3kjs-IE.js → access-control-2b9mvnB3.js} +1 -1
  53. package/dist/assets/{actions-BOLUq2A2.js → actions-DaKlRJnV.js} +1 -1
  54. package/dist/assets/{add-component-core-DGNddTen.js → add-component-core-BPcx3JYq.js} +3 -3
  55. package/dist/assets/{add-resource-BlH3Ovxj.js → add-resource-2dxnZcDy.js} +1 -1
  56. package/dist/assets/{addon-aGvhlN0P.js → addon-CSAbVfSS.js} +1 -1
  57. package/dist/assets/{analytics-CfjcdhJn.js → analytics-C434vWOY.js} +1 -1
  58. package/dist/assets/api-_ltIr2BU.js +1 -0
  59. package/dist/assets/ar-BSACs5SN.js +1 -0
  60. package/dist/assets/{audit-logs-C2yJwJoT.js → audit-logs-CZte5uoR.js} +1 -1
  61. package/dist/assets/{button-DO4YWFoY.js → button-CR8UEQyZ.js} +1 -1
  62. package/dist/assets/{click-to-copy-DJDkDoFa.js → click-to-copy-3x1G9XH4.js} +1 -1
  63. package/dist/assets/{complete-Z1oVJqCJ.js → complete-k3Qs8bm-.js} +1 -1
  64. package/dist/assets/{component-C5xivMnX.js → component-D-I8mVct.js} +1 -1
  65. package/dist/assets/{config-D8NcxsCJ.js → config-D3UgjDma.js} +1 -1
  66. package/dist/assets/{config-DzEwmXeE.js → config-D5HYWnF4.js} +1 -1
  67. package/dist/assets/{config-navigation-DXtDkZPJ.js → config-navigation-CpN5oPZv.js} +1 -1
  68. package/dist/assets/{confirm-CCQa70Pg.js → confirm-CtLbKcS0.js} +1 -1
  69. package/dist/assets/{connect-CFfUvh6W.js → connect-B7XAaWGG.js} +1 -1
  70. package/dist/assets/{connect-HhhJ8sJU.js → connect-D07YGJkK.js} +1 -1
  71. package/dist/assets/{connect-to-CsOTOOql.js → connect-to-COqWAMKF.js} +1 -1
  72. package/dist/assets/{content-layout-KTIX9N0P.js → content-layout-DPij9Nh6.js} +1 -1
  73. package/dist/assets/{dashboard-CjhX-KyD.js → dashboard-BeSQUyuf.js} +3 -3
  74. package/dist/assets/de-9vHBMa7b.js +1 -0
  75. package/dist/assets/{did-address-1DufLas8.js → did-address-43xkXM21.js} +1 -1
  76. package/dist/assets/{domain-BH5br6Gm.js → domain-4Nq3hHWj.js} +1 -1
  77. package/dist/assets/{domain-list-DgurQoPj.js → domain-list-M6G-dRKq.js} +1 -1
  78. package/dist/assets/es-Bk9E9Gbf.js +1 -0
  79. package/dist/assets/{exchange-passport-CSmkZvXv.js → exchange-passport--fiEF2lu.js} +1 -1
  80. package/dist/assets/{fallback-D28RgUKE.js → fallback-Cn_W-m4r.js} +1 -1
  81. package/dist/assets/{format-error-B_wxv2zr.js → format-error-Bn7NObKb.js} +1 -1
  82. package/dist/assets/fr-C5fh5fdm.js +1 -0
  83. package/dist/assets/{fuel-CNhdnIoV.js → fuel-Df5fciLt.js} +1 -1
  84. package/dist/assets/{fullpage-BRECd_vA.js → fullpage-DTRlawT9.js} +1 -1
  85. package/dist/assets/hi-HiGtGtUs.js +1 -0
  86. package/dist/assets/{home-BXIAeBXu.js → home-C1E0r4u0.js} +1 -1
  87. package/dist/assets/id-CirrqXGd.js +1 -0
  88. package/dist/assets/{iframe-B-fn-3dw.js → iframe-EFuUBe3_.js} +1 -1
  89. package/dist/assets/{index-CVQzF2HG.js → index-98pN37bN.js} +1 -1
  90. package/dist/assets/{index-B6cedsbc.js → index-B29G6Shi.js} +1 -1
  91. package/dist/assets/{index-DMlhjmgb.js → index-BCp3frMn.js} +1 -1
  92. package/dist/assets/{index-DsmWg2lB.js → index-BJtcCGWr.js} +1 -1
  93. package/dist/assets/{index-BF0CESCe.js → index-BLVcicxZ.js} +1 -1
  94. package/dist/assets/{index-BvFufyUR.js → index-BZUzIWGh.js} +1 -1
  95. package/dist/assets/{index-Nl6bSX_8.js → index-Bdey46ix.js} +1 -1
  96. package/dist/assets/{index-BA1QGlP2.js → index-BnsMQNE7.js} +1 -1
  97. package/dist/assets/{index-oShJbI4-.js → index-BrwvkAJ2.js} +1 -1
  98. package/dist/assets/{index-Dukr6y8O.js → index-BtPZTcXb.js} +1 -1
  99. package/dist/assets/{index-_XoWFr4l.js → index-Bup-bUaa.js} +1 -1
  100. package/dist/assets/{index-CQUsDYvK.js → index-C0SGixzY.js} +1 -1
  101. package/dist/assets/{index-1TKZmlYx.js → index-CKp5dXwW.js} +1 -1
  102. package/dist/assets/{index-UJL5oKk6.js → index-CTfT52DI.js} +1 -1
  103. package/dist/assets/{index-CBLTqEyl.js → index-Cb0PVWPM.js} +1 -1
  104. package/dist/assets/{index-B_Laf8x-.js → index-CjW-BiBJ.js} +1 -1
  105. package/dist/assets/{index-p4L0PsMe.js → index-CosdjVLd.js} +1 -1
  106. package/dist/assets/{index-CuyRGb9b.js → index-CvPYqGkG.js} +1 -1
  107. package/dist/assets/{index-C1wiOWNR.js → index-Cvw6NSyS.js} +1 -1
  108. package/dist/assets/{index-2sS76gNV.js → index-D5vX4Ooa.js} +1 -1
  109. package/dist/assets/{index-D6tt3ThR.js → index-D9l4FLNE.js} +1 -1
  110. package/dist/assets/{index-BoZ_m36k.js → index-DFjXeol_.js} +1 -1
  111. package/dist/assets/{index-Xy0LtaLl.js → index-DIxJxM78.js} +15 -15
  112. package/dist/assets/{index-5OJNH84k.js → index-DesPWyQa.js} +1 -1
  113. package/dist/assets/{index-DQ0JJK46.js → index-Dg03Eob-.js} +1 -1
  114. package/dist/assets/{index-Bt1TfDKC.js → index-DwqzQo9e.js} +3 -3
  115. package/dist/assets/{index-oNPd0xkl.js → index-QiNYWFY0.js} +1 -1
  116. package/dist/assets/{index-D8AdT2zW.js → index-UGGSjH4u.js} +1 -1
  117. package/dist/assets/{index-cDbrdIwr.js → index-cz02fWRO.js} +1 -1
  118. package/dist/assets/{index-CbOg486P.js → index-oDZbyv4v.js} +4 -4
  119. package/dist/assets/{index-BkLBINVg.js → index-s7iKiLXT.js} +1 -1
  120. package/dist/assets/{index-BtOgY8Si.js → index-xkcMt7XQ.js} +1 -1
  121. package/dist/assets/{index.es-yj9zXjEg.js → index.es-DohPHCUD.js} +1 -1
  122. package/dist/assets/{index.esm-r-7-JiBo.js → index.esm-Beu0fK3G.js} +1 -1
  123. package/dist/assets/{invitation-DRE8PTvm.js → invitation-c2LXgJZO.js} +1 -1
  124. package/dist/assets/{invite-CaYV6_RL.js → invite-um-OhXL2.js} +1 -1
  125. package/dist/assets/{issue-passport-C2VOdt0F.js → issue-passport-CCZaXyql.js} +1 -1
  126. package/dist/assets/{item-DSUSjxqu.js → item-CBjm7rgp.js} +1 -1
  127. package/dist/assets/ja-BOs7uPqI.js +1 -0
  128. package/dist/assets/{jss-plugin-props-sort.esm-Dy1hd-li.js → jss-plugin-props-sort.esm-D6EO5AkF.js} +1 -1
  129. package/dist/assets/ko-D1G4UvNg.js +1 -0
  130. package/dist/assets/{launch-result-message-DzKfmlIC.js → launch-result-message-DAGuAhAQ.js} +1 -1
  131. package/dist/assets/{layout-DYha6CGi.js → layout-oG70Renu.js} +1 -1
  132. package/dist/assets/{list-header-senytC6o.js → list-header-DfX9T1rW.js} +1 -1
  133. package/dist/assets/localization-C8kIKwrb.js +1 -0
  134. package/dist/assets/{log-BjP_dVJO.js → log-BmIrjtPp.js} +1 -1
  135. package/dist/assets/{login-bqoHKvms.js → login-juMWHvtW.js} +1 -1
  136. package/dist/assets/{login-oauth-callback-VOvATSQP.js → login-oauth-callback-_A65YhiH.js} +1 -1
  137. package/dist/assets/{logo-uploader-DzWvnC_0.js → logo-uploader-P1VlMV5V.js} +3 -3
  138. package/dist/assets/{lost-passport-CU19a36i.js → lost-passport-BkiX_vW7.js} +3 -3
  139. package/dist/assets/{lottie-CBo6NH73.js → lottie-Cf2K1-ns.js} +1 -1
  140. package/dist/assets/{notifications-Bg5czab0.js → notifications-DwrtVs17.js} +1 -1
  141. package/dist/assets/{open-window-DO7_5i09.js → open-window-DvlHyaGG.js} +1 -1
  142. package/dist/assets/{overview-B2c4iIHr.js → overview-BIRtop8p.js} +1 -1
  143. package/dist/assets/{page-header-DWho4RBI.js → page-header-CNwTM6gh.js} +1 -1
  144. package/dist/assets/{permission-C5oFkeWC.js → permission-DaB1xF5g.js} +1 -1
  145. package/dist/assets/{preferences-tBLYqHP5.js → preferences-Td5o-d6-.js} +1 -1
  146. package/dist/assets/pt-CcFeyma6.js +1 -0
  147. package/dist/assets/publish-resource-WQmyUOcm.js +1 -0
  148. package/dist/assets/{react-D1bqTbo3.js → react-CwZHH_b9.js} +20 -20
  149. package/dist/assets/{redux-D4hIeGdy.js → redux-uiwtTAq3.js} +1 -1
  150. package/dist/assets/{resource-dialog-BTjR0zMl.js → resource-dialog-D8uC-XQU.js} +1 -1
  151. package/dist/assets/ru-OymXgLUI.js +1 -0
  152. package/dist/assets/sdk-ByGrtgOC.js +1 -0
  153. package/dist/assets/{selector-BqPqCAYg.js → selector-CLP7imhL.js} +1 -1
  154. package/dist/assets/session-BmQaZaGU.js +1 -0
  155. package/dist/assets/{setup-BTfTULzr.js → setup-WlrDU92w.js} +3 -3
  156. package/dist/assets/{shorten-label-CntVgEf1.js → shorten-label-DHOOsTvW.js} +1 -1
  157. package/dist/assets/{slicedToArray-C_FN0n4-.js → slicedToArray-shTeAcQc.js} +1 -1
  158. package/dist/assets/{spaces-CGSqFLCZ.js → spaces-BirpDOm3.js} +1 -1
  159. package/dist/assets/{start-DZT6N3WF.js → start-pnT_BQvG.js} +1 -1
  160. package/dist/assets/{step-actions-CRpayBME.js → step-actions-Dj3cCBJ3.js} +1 -1
  161. package/dist/assets/{studio-LU_tLoHp.js → studio-D3LuzSrd.js} +1 -1
  162. package/dist/assets/{switch-control-C_KVSzuu.js → switch-control-dGBNspU7.js} +1 -1
  163. package/dist/assets/th-CZbdb5PZ.js +1 -0
  164. package/dist/assets/{toUpper-hmLNaDVt.js → toUpper-BAGcwHI1.js} +1 -1
  165. package/dist/assets/{transfer-jecpNDUN.js → transfer-BPGSieyR.js} +1 -1
  166. package/dist/assets/{uniqBy-u0Jb0nbX.js → uniqBy-C2dKepDX.js} +1 -1
  167. package/dist/assets/{unsubscribe-DCA8xtgF.js → unsubscribe-CLOTSJNJ.js} +1 -1
  168. package/dist/assets/{url-join-D2KH-zKC.js → url-join-CTlMVeSl.js} +1 -1
  169. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-SRd5l8_C.js → use-blocklet-info-for-connect-did-spaces-BniHEOwv.js} +1 -1
  170. package/dist/assets/{use-mobile-DFiNHQ2u.js → use-mobile-coO1LYtd.js} +1 -1
  171. package/dist/assets/{useAsync-R-TUNvpI.js → useAsync-C-N7xB1Q.js} +1 -1
  172. package/dist/assets/{useFormControl-BbOnEHs0.js → useFormControl-DqoBF9iH.js} +1 -1
  173. package/dist/assets/{useLocalStorage-DaDlKYRB.js → useLocalStorage-kWCrVKjB.js} +1 -1
  174. package/dist/assets/{useSetState-B7OpsWvA.js → useSetState-B68uVZku.js} +1 -1
  175. package/dist/assets/{useSlot-CQyOPTl1.js → useSlot-CQP4hUUG.js} +1 -1
  176. package/dist/assets/{useSlotProps-CNnGAX_a.js → useSlotProps-DMBoZT8C.js} +1 -1
  177. package/dist/assets/{useThemeProps-CXkqPLv1.js → useThemeProps-V4iYGCCr.js} +1 -1
  178. package/dist/assets/{user-center-DSzC5Cpf.js → user-center-B6VeBSYd.js} +1 -1
  179. package/dist/assets/{user-sessions-D3vy4DLu.js → user-sessions-Bdav9S_E.js} +1 -1
  180. package/dist/assets/{util-BSRiBZPY.js → util-D_sPE-Qe.js} +1 -1
  181. package/dist/assets/vi-DhjQx2Z1.js +1 -0
  182. package/dist/assets/wrap-locale-BrsNecIZ.js +1 -0
  183. package/dist/assets/{zh-DfGqeTts.js → zh-jGK5FFL0.js} +1 -1
  184. package/dist/assets/zh-tw-DnmwTx49.js +1 -0
  185. package/dist/index.html +1 -1
  186. package/dist/service-worker.js +1 -1
  187. package/package.json +25 -25
  188. package/dist/assets/api-rSkpRnMk.js +0 -1
  189. package/dist/assets/ar-2JePd-i1.js +0 -1
  190. package/dist/assets/de-DFRVy5eA.js +0 -1
  191. package/dist/assets/es-D3TLX5Mb.js +0 -1
  192. package/dist/assets/fr-B2p5dLWr.js +0 -1
  193. package/dist/assets/hi-DmXVnjfE.js +0 -1
  194. package/dist/assets/id-BPCkzz44.js +0 -1
  195. package/dist/assets/ja-DdBhyqmR.js +0 -1
  196. package/dist/assets/ko-DagkAgw5.js +0 -1
  197. package/dist/assets/localization-DnfHLBQ3.js +0 -1
  198. package/dist/assets/pt-DTmAqAWs.js +0 -1
  199. package/dist/assets/publish-resource-C-TPeUnS.js +0 -1
  200. package/dist/assets/ru-BZQlsXeO.js +0 -1
  201. package/dist/assets/sdk-CTZgkudu.js +0 -1
  202. package/dist/assets/session-qS7z5tiM.js +0 -1
  203. package/dist/assets/th-DSRLorcE.js +0 -1
  204. package/dist/assets/vi-dE7BhTCc.js +0 -1
  205. package/dist/assets/wrap-locale-_-JNBxLM.js +0 -1
  206. package/dist/assets/zh-tw-COZAaB9V.js +0 -1
@@ -1,4 +1,4 @@
1
- import{r as h,a2 as g,aZ as y,j as t,C as P,n as v,B as c,a3 as d,P as m,a0 as w}from"./index-Xy0LtaLl.js";import{P as T}from"./page-header-DWho4RBI.js";import{u as B}from"./index-D8AdT2zW.js";import{C as E,D,a as N}from"./connect-to-CsOTOOql.js";import{S as u}from"./step-actions-CRpayBME.js";import{S as b}from"./layout-DYha6CGi.js";import"./spaces-CGSqFLCZ.js";import"./index-BtOgY8Si.js";import"./api-rSkpRnMk.js";import"./url-join-D2KH-zKC.js";import"./Skeleton-DyvBCeAS.js";import"./Hidden-DQSEBXaz.js";import"./use-blocklet-info-for-connect-did-spaces-SRd5l8_C.js";import"./CloseOutlined-DMNRl8D0.js";import"./did-address-1DufLas8.js";import"./Link-AzDxZ12K.js";import"./DeleteOutline-Brfidl3M.js";import"./format-error-B_wxv2zr.js";import"./index-oNPd0xkl.js";import"./ExpandMore-Bpwbf5LO.js";import"./ButtonGroup-DFgjZ6az.js";import"./TextField-CAingS4F.js";import"./FormControl-BS53BBfk.js";import"./useFormControl-BbOnEHs0.js";import"./InputLabel-vEy8Wv5K.js";import"./Select-DTam9nL9.js";import"./Alert-ClYwyZJt.js";import"./useSlot-CQyOPTl1.js";import"./content-layout-KTIX9N0P.js";function l({onNext:a,onPrevious:x}){var s,n,p;const{t:i}=h.useContext(g),{blocklet:e}=y(),{spaceGateway:C,settingStorageEndpoint:j,updateSpaceGateway:f,hasStorageEndpoint:S,loading:o,storageEndpoint:r}=B();return o?t.jsx(P,{relative:"parent",children:t.jsx(v,{})}):t.jsxs(G,{children:[t.jsx("div",{className:"header",children:t.jsx(T,{title:i("setup.didSpace.title"),subTitle:i("setup.didSpace.subTitle"),onClickBack:x})}),t.jsx(c,{sx:{width:"100%",maxWidth:"720px"},children:S?t.jsx(E,{spaceGateway:C,settingStorageEndpoint:j}):t.jsx(D,{})}),((s=e==null?void 0:e.capabilities)==null?void 0:s.didSpace)&&t.jsx(c,{display:"flex",alignItems:"center",justifyContent:"center",paddingTop:"24px",children:t.jsx(N,{onConnect:f,storageEndpoint:r})}),((n=e==null?void 0:e.capabilities)==null?void 0:n.didSpace)==="required"&&t.jsx(u,{mt:8,children:t.jsx(d,{loading:o,variant:"contained",disabled:o||!r,onClick:()=>a(),children:i("setup.continue")})}),((p=e==null?void 0:e.capabilities)==null?void 0:p.didSpace)==="optional"&&t.jsx(u,{blocklet:e,onStartNow:()=>a("complete"),children:t.jsx(d,{className:"start-now",loading:o,variant:"contained",disabled:o,onClick:()=>a(),children:i(r?"setup.continue":"setup.skip")})})]})}l.propTypes={onNext:m.func,onPrevious:m.func};l.defaultProps={onNext:()=>{},onPrevious:()=>{}};const G=w(b)`
1
+ import{r as h,a2 as g,aZ as y,j as t,C as P,n as v,B as c,a3 as d,P as m,a0 as w}from"./index-DIxJxM78.js";import{P as T}from"./page-header-CNwTM6gh.js";import{u as B}from"./index-UGGSjH4u.js";import{C as E,D,a as N}from"./connect-to-COqWAMKF.js";import{S as u}from"./step-actions-Dj3cCBJ3.js";import{S as b}from"./layout-oG70Renu.js";import"./spaces-BirpDOm3.js";import"./index-xkcMt7XQ.js";import"./api-_ltIr2BU.js";import"./url-join-CTlMVeSl.js";import"./Skeleton-DqrgKJha.js";import"./Hidden-w-nWLLe2.js";import"./use-blocklet-info-for-connect-did-spaces-BniHEOwv.js";import"./CloseOutlined-DmlGPmzq.js";import"./did-address-43xkXM21.js";import"./Link-CPGMRK--.js";import"./DeleteOutline-BMqkCxEq.js";import"./format-error-Bn7NObKb.js";import"./index-QiNYWFY0.js";import"./ExpandMore-DkoxrM3F.js";import"./ButtonGroup-d0oDm0RO.js";import"./TextField-OgHHL_KP.js";import"./FormControl-BUn4wQGt.js";import"./useFormControl-DqoBF9iH.js";import"./InputLabel-BU0FzAth.js";import"./Select-BzfN1x8W.js";import"./Alert-DPUEB95E.js";import"./useSlot-CQP4hUUG.js";import"./content-layout-DPij9Nh6.js";function l({onNext:a,onPrevious:x}){var s,n,p;const{t:i}=h.useContext(g),{blocklet:e}=y(),{spaceGateway:C,settingStorageEndpoint:j,updateSpaceGateway:f,hasStorageEndpoint:S,loading:o,storageEndpoint:r}=B();return o?t.jsx(P,{relative:"parent",children:t.jsx(v,{})}):t.jsxs(G,{children:[t.jsx("div",{className:"header",children:t.jsx(T,{title:i("setup.didSpace.title"),subTitle:i("setup.didSpace.subTitle"),onClickBack:x})}),t.jsx(c,{sx:{width:"100%",maxWidth:"720px"},children:S?t.jsx(E,{spaceGateway:C,settingStorageEndpoint:j}):t.jsx(D,{})}),((s=e==null?void 0:e.capabilities)==null?void 0:s.didSpace)&&t.jsx(c,{display:"flex",alignItems:"center",justifyContent:"center",paddingTop:"24px",children:t.jsx(N,{onConnect:f,storageEndpoint:r})}),((n=e==null?void 0:e.capabilities)==null?void 0:n.didSpace)==="required"&&t.jsx(u,{mt:8,children:t.jsx(d,{loading:o,variant:"contained",disabled:o||!r,onClick:()=>a(),children:i("setup.continue")})}),((p=e==null?void 0:e.capabilities)==null?void 0:p.didSpace)==="optional"&&t.jsx(u,{blocklet:e,onStartNow:()=>a("complete"),children:t.jsx(d,{className:"start-now",loading:o,variant:"contained",disabled:o,onClick:()=>a(),children:i(r?"setup.continue":"setup.skip")})})]})}l.propTypes={onNext:m.func,onPrevious:m.func};l.defaultProps={onNext:()=>{},onPrevious:()=>{}};const G=w(b)`
2
2
  height: 100%;
3
3
  overflow-y: auto;
4
4
  `;export{l as default};
@@ -1 +1 @@
1
- import{aF as ve,aG as me,aH as X,cJ as $e,aI as He,aL as p,r as d,aJ as Se,aK as ae,aN as L,j as u,aO as ge,au as Oe,cE as at,cK as Ae,cL as Xe,cM as De,aM as se,ak as it,cN as fe,cO as ct,bu as dt,O as F,P as W}from"./index-Xy0LtaLl.js";let U;function _e(){if(U)return U;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),U="reverse",e.scrollLeft>0?U="default":(e.scrollLeft=1,e.scrollLeft===0&&(U="negative")),document.body.removeChild(e),U}function ut(e,t){const l=e.scrollLeft;if(t!=="rtl")return l;switch(_e()){case"negative":return e.scrollWidth-e.clientWidth+l;case"reverse":return e.scrollWidth-e.clientWidth-l;default:return l}}function bt(e){return me("MuiTab",e)}const k=ve("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),pt=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ft=e=>{const{classes:t,textColor:l,fullWidth:s,wrapped:n,icon:a,label:v,selected:h,disabled:b}=e,g={root:["root",a&&v&&"labelIcon",`textColor${He(l)}`,s&&"fullWidth",n&&"wrapped",h&&"selected",b&&"disabled"],iconWrapper:["iconWrapper"]};return ge(g,bt,t)},ht=X($e,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:l}=e;return[t.root,l.label&&l.icon&&t.labelIcon,t[`textColor${He(l.textColor)}`],l.fullWidth&&t.fullWidth,l.wrapped&&t.wrapped,{[`& .${k.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>p({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${k.iconWrapper}`]:p({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${k.selected}`]:{opacity:1},[`&.${k.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${k.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${k.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${k.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${k.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),xe=d.forwardRef(function(t,l){const s=Se({props:t,name:"MuiTab"}),{className:n,disabled:a=!1,disableFocusRipple:v=!1,fullWidth:h,icon:b,iconPosition:g="top",indicator:B,label:y,onChange:m,onClick:w,onFocus:j,selected:T,selectionFollowsFocus:x,textColor:D="inherit",value:R,wrapped:ie=!1}=s,_=ae(s,pt),V=p({},s,{disabled:a,disableFocusRipple:v,selected:T,icon:!!b,iconPosition:g,label:!!y,fullWidth:h,textColor:D,wrapped:ie}),q=ft(V),$=b&&y&&d.isValidElement(b)?d.cloneElement(b,{className:L(q.iconWrapper,b.props.className)}):b,ee=E=>{!T&&m&&m(E,R),w&&w(E)},K=E=>{x&&!T&&m&&m(E,R),j&&j(E)};return u.jsxs(ht,p({focusRipple:!v,className:L(q.root,n),ref:l,role:"tab","aria-selected":T,disabled:a,onClick:ee,onFocus:K,ownerState:V,tabIndex:T?0:-1},_,{children:[g==="top"||g==="start"?u.jsxs(d.Fragment,{children:[$,y]}):u.jsxs(d.Fragment,{children:[y,$]}),B]}))}),vt=Oe(u.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),mt=Oe(u.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function St(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function gt(e,t,l,s={},n=()=>{}){const{ease:a=St,duration:v=300}=s;let h=null;const b=t[e];let g=!1;const B=()=>{g=!0},y=m=>{if(g){n(new Error("Animation cancelled"));return}h===null&&(h=m);const w=Math.min(1,(m-h)/v);if(t[e]=a(w)*(l-b)+b,w>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(y)};return b===l?(n(new Error("Element already at target position")),B):(requestAnimationFrame(y),B)}const xt=["onChange"],yt={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Ct(e){const{onChange:t}=e,l=ae(e,xt),s=d.useRef(),n=d.useRef(null),a=()=>{s.current=n.current.offsetHeight-n.current.clientHeight};return at(()=>{const v=Ae(()=>{const b=s.current;a(),b!==s.current&&t(s.current)}),h=Xe(n.current);return h.addEventListener("resize",v),()=>{v.clear(),h.removeEventListener("resize",v)}},[t]),d.useEffect(()=>{a(),t(s.current)},[t]),u.jsx("div",p({style:yt,ref:n},l))}function Bt(e){return me("MuiTabScrollButton",e)}const wt=ve("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Tt=["className","slots","slotProps","direction","orientation","disabled"],Mt=e=>{const{classes:t,orientation:l,disabled:s}=e;return ge({root:["root",l,s&&"disabled"]},Bt,t)},It=X($e,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:l}=e;return[t.root,l.orientation&&t[l.orientation]]}})(({ownerState:e})=>p({width:40,flexShrink:0,opacity:.8,[`&.${wt.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Rt=d.forwardRef(function(t,l){var s,n;const a=Se({props:t,name:"MuiTabScrollButton"}),{className:v,slots:h={},slotProps:b={},direction:g}=a,B=ae(a,Tt),y=De(),m=p({isRtl:y},a),w=Mt(m),j=(s=h.StartScrollButtonIcon)!=null?s:vt,T=(n=h.EndScrollButtonIcon)!=null?n:mt,x=se({elementType:j,externalSlotProps:b.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),D=se({elementType:T,externalSlotProps:b.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return u.jsx(It,p({component:"div",className:L(w.root,v),ref:l,role:null,ownerState:m,tabIndex:null},B,{children:g==="left"?u.jsx(j,p({},x)):u.jsx(T,p({},D))}))});function Et(e){return me("MuiTabs",e)}const he=ve("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),zt=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],ke=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Le=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,ne=(e,t,l)=>{let s=!1,n=l(e,t);for(;n;){if(n===e.firstChild){if(s)return;s=!0}const a=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||a)n=l(e,n);else{n.focus();return}}},Wt=e=>{const{vertical:t,fixed:l,hideScrollbar:s,scrollableX:n,scrollableY:a,centered:v,scrollButtonsHideMobile:h,classes:b}=e;return ge({root:["root",t&&"vertical"],scroller:["scroller",l&&"fixed",s&&"hideScrollbar",n&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",v&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",h&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[s&&"hideScrollbar"]},Et,b)},Pt=X("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:l}=e;return[{[`& .${he.scrollButtons}`]:t.scrollButtons},{[`& .${he.scrollButtons}`]:l.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,l.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>p({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${he.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),Nt=X("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:l}=e;return[t.scroller,l.fixed&&t.fixed,l.hideScrollbar&&t.hideScrollbar,l.scrollableX&&t.scrollableX,l.scrollableY&&t.scrollableY]}})(({ownerState:e})=>p({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),kt=X("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:l}=e;return[t.flexContainer,l.vertical&&t.flexContainerVertical,l.centered&&t.centered]}})(({ownerState:e})=>p({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Lt=X("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>p({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),Ft=X(Ct)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Fe={},ye=d.forwardRef(function(t,l){const s=Se({props:t,name:"MuiTabs"}),n=it(),a=De(),{"aria-label":v,"aria-labelledby":h,action:b,centered:g=!1,children:B,className:y,component:m="div",allowScrollButtonsMobile:w=!1,indicatorColor:j="primary",onChange:T,orientation:x="horizontal",ScrollButtonComponent:D=Rt,scrollButtons:R="auto",selectionFollowsFocus:ie,slots:_={},slotProps:V={},TabIndicatorProps:q={},TabScrollButtonProps:$={},textColor:ee="primary",value:K,variant:E="standard",visibleScrollbar:ce=!1}=s,Ue=ae(s,zt),M=E==="scrollable",C=x==="vertical",G=C?"scrollTop":"scrollLeft",te=C?"top":"left",oe=C?"bottom":"right",de=C?"clientHeight":"clientWidth",J=C?"height":"width",H=p({},s,{component:m,allowScrollButtonsMobile:w,indicatorColor:j,orientation:x,vertical:C,scrollButtons:R,textColor:ee,variant:E,visibleScrollbar:ce,fixed:!M,hideScrollbar:M&&!ce,scrollableX:M&&!C,scrollableY:M&&C,centered:g&&!M,scrollButtonsHideMobile:!w}),P=Wt(H),Ye=se({elementType:_.StartScrollButtonIcon,externalSlotProps:V.startScrollButtonIcon,ownerState:H}),Ve=se({elementType:_.EndScrollButtonIcon,externalSlotProps:V.endScrollButtonIcon,ownerState:H}),[Ce,Ge]=d.useState(!1),[O,Be]=d.useState(Fe),[we,Je]=d.useState(!1),[Te,Qe]=d.useState(!1),[Me,Ze]=d.useState(!1),[Ie,et]=d.useState({overflow:"hidden",scrollbarWidth:0}),Re=new Map,z=d.useRef(null),A=d.useRef(null),Ee=()=>{const o=z.current;let r;if(o){const i=o.getBoundingClientRect();r={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ut(o,a?"rtl":"ltr"),scrollWidth:o.scrollWidth,top:i.top,bottom:i.bottom,left:i.left,right:i.right}}let c;if(o&&K!==!1){const i=A.current.children;if(i.length>0){const f=i[Re.get(K)];c=f?f.getBoundingClientRect():null}}return{tabsMeta:r,tabMeta:c}},Q=fe(()=>{const{tabsMeta:o,tabMeta:r}=Ee();let c=0,i;if(C)i="top",r&&o&&(c=r.top-o.top+o.scrollTop);else if(i=a?"right":"left",r&&o){const S=a?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;c=(a?-1:1)*(r[i]-o[i]+S)}const f={[i]:c,[J]:r?r[J]:0};if(isNaN(O[i])||isNaN(O[J]))Be(f);else{const S=Math.abs(O[i]-f[i]),I=Math.abs(O[J]-f[J]);(S>=1||I>=1)&&Be(f)}}),ue=(o,{animation:r=!0}={})=>{r?gt(G,z.current,o,{duration:n.transitions.duration.standard}):z.current[G]=o},ze=o=>{let r=z.current[G];C?r+=o:(r+=o*(a?-1:1),r*=a&&_e()==="reverse"?-1:1),ue(r)},We=()=>{const o=z.current[de];let r=0;const c=Array.from(A.current.children);for(let i=0;i<c.length;i+=1){const f=c[i];if(r+f[de]>o){i===0&&(r=o);break}r+=f[de]}return r},tt=()=>{ze(-1*We())},ot=()=>{ze(We())},lt=d.useCallback(o=>{et({overflow:null,scrollbarWidth:o})},[]),rt=()=>{const o={};o.scrollbarSizeListener=M?u.jsx(Ft,{onChange:lt,className:L(P.scrollableX,P.hideScrollbar)}):null;const c=M&&(R==="auto"&&(we||Te)||R===!0);return o.scrollButtonStart=c?u.jsx(D,p({slots:{StartScrollButtonIcon:_.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Ye},orientation:x,direction:a?"right":"left",onClick:tt,disabled:!we},$,{className:L(P.scrollButtons,$.className)})):null,o.scrollButtonEnd=c?u.jsx(D,p({slots:{EndScrollButtonIcon:_.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ve},orientation:x,direction:a?"left":"right",onClick:ot,disabled:!Te},$,{className:L(P.scrollButtons,$.className)})):null,o},Pe=fe(o=>{const{tabsMeta:r,tabMeta:c}=Ee();if(!(!c||!r)){if(c[te]<r[te]){const i=r[G]+(c[te]-r[te]);ue(i,{animation:o})}else if(c[oe]>r[oe]){const i=r[G]+(c[oe]-r[oe]);ue(i,{animation:o})}}}),le=fe(()=>{M&&R!==!1&&Ze(!Me)});d.useEffect(()=>{const o=Ae(()=>{z.current&&Q()});let r;const c=S=>{S.forEach(I=>{I.removedNodes.forEach(Z=>{var N;(N=r)==null||N.unobserve(Z)}),I.addedNodes.forEach(Z=>{var N;(N=r)==null||N.observe(Z)})}),o(),le()},i=Xe(z.current);i.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(r=new ResizeObserver(o),Array.from(A.current.children).forEach(S=>{r.observe(S)})),typeof MutationObserver<"u"&&(f=new MutationObserver(c),f.observe(A.current,{childList:!0})),()=>{var S,I;o.clear(),i.removeEventListener("resize",o),(S=f)==null||S.disconnect(),(I=r)==null||I.disconnect()}},[Q,le]),d.useEffect(()=>{const o=Array.from(A.current.children),r=o.length;if(typeof IntersectionObserver<"u"&&r>0&&M&&R!==!1){const c=o[0],i=o[r-1],f={root:z.current,threshold:.99},S=pe=>{Je(!pe[0].isIntersecting)},I=new IntersectionObserver(S,f);I.observe(c);const Z=pe=>{Qe(!pe[0].isIntersecting)},N=new IntersectionObserver(Z,f);return N.observe(i),()=>{I.disconnect(),N.disconnect()}}},[M,R,Me,B==null?void 0:B.length]),d.useEffect(()=>{Ge(!0)},[]),d.useEffect(()=>{Q()}),d.useEffect(()=>{Pe(Fe!==O)},[Pe,O]),d.useImperativeHandle(b,()=>({updateIndicator:Q,updateScrollButtons:le}),[Q,le]);const Ne=u.jsx(Lt,p({},q,{className:L(P.indicator,q.className),ownerState:H,style:p({},O,q.style)}));let re=0;const nt=d.Children.map(B,o=>{if(!d.isValidElement(o))return null;const r=o.props.value===void 0?re:o.props.value;Re.set(r,re);const c=r===K;return re+=1,d.cloneElement(o,p({fullWidth:E==="fullWidth",indicator:c&&!Ce&&Ne,selected:c,selectionFollowsFocus:ie,onChange:T,textColor:ee,value:r},re===1&&K===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),st=o=>{const r=A.current,c=ct(r).activeElement;if(c.getAttribute("role")!=="tab")return;let f=x==="horizontal"?"ArrowLeft":"ArrowUp",S=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(f="ArrowRight",S="ArrowLeft"),o.key){case f:o.preventDefault(),ne(r,c,Le);break;case S:o.preventDefault(),ne(r,c,ke);break;case"Home":o.preventDefault(),ne(r,null,ke);break;case"End":o.preventDefault(),ne(r,null,Le);break}},be=rt();return u.jsxs(Pt,p({className:L(P.root,y),ownerState:H,ref:l,as:m},Ue,{children:[be.scrollButtonStart,be.scrollbarSizeListener,u.jsxs(Nt,{className:P.scroller,ownerState:H,style:{overflow:Ie.overflow,[C?`margin${a?"Left":"Right"}`:"marginBottom"]:ce?void 0:-Ie.scrollbarWidth},ref:z,children:[u.jsx(kt,{"aria-label":v,"aria-labelledby":h,"aria-orientation":x==="vertical"?"vertical":null,className:P.flexContainer,ownerState:H,onKeyDown:st,ref:A,role:"tablist",children:nt}),Ce&&Ne]}),be.scrollButtonEnd]}))}),je="index",Y={tabs:`${je}-tabs`,tab:`${je}-tab`},jt=dt(ye)(({theme:e})=>({[`& .${Y.tabs}`]:{},[`& .${Y.tab}`]:{fontSize:"0.875rem",[e.breakpoints.up("md")]:{fontSize:"1rem"}}}));function qe({tabs:e,current:t,onChange:l,...s}){return u.jsx(ye,{scrollButtons:"auto",value:t,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{borderRadius:"100vw"},".MuiTabs-flexContainer":{borderRadius:"100vw",backgroundColor:F.backgroundsBgComponent,padding:.5,display:"inline-flex",columnGap:.25,maxWidth:"100%",overflowX:"auto"},".MuiTab-root":{borderRadius:"100vw",border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,color:F.foregroundsFgSubtile,fontSize:"13px",fontWeight:"normal",textTransform:"capitalize",transition:"background-color 0.2s ease","&.Mui-selected, &:hover":{backgroundColor:"white",borderColor:F.lineBorderBase,color:F.foregroundsFgBase}},".MuiTabs-indicator":{display:"none"},...s.sx},children:e.map(n=>u.jsx(xe,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}qe.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};function Ke({tabs:e,current:t,onChange:l,...s}){return u.jsx(ye,{scrollButtons:"auto",value:t,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{"&::after":{content:'""',display:"block",width:"100%",height:"1px",backgroundColor:F.strokeBorderStrong,bottom:0}},".MuiTabs-flexContainer":{display:"inline-flex",columnGap:2.5,px:0,pb:.5},".MuiTab-root":{border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,px:0,color:F.foregroundsFgSubtile,fontSize:"14px",fontWeight:500,textTransform:"capitalize",minWidth:"auto","&.Mui-selected, &:hover":{color:F.foregroundsFgBase}},".MuiTabs-indicator":{height:"1px",backgroundColor:F.foregroundsFgBase},...s.sx},children:e.map(n=>u.jsx(xe,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}Ke.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};function $t({tabs:e,current:t,onChange:l,...s}){return s.variant==="card"?u.jsx(qe,{...s,tabs:e,current:t,onChange:l}):s.variant==="line"?u.jsx(Ke,{...s,tabs:e,current:t,onChange:l}):u.jsx(jt,{scrollButtons:"auto",variant:"scrollable",value:t,onChange:(n,a)=>l(a),indicatorColor:"primary",...s,className:[Y.tabs,s.className||""].join(" "),children:e.map(n=>u.jsx(xe,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}$t.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};export{mt as K,$t as T,vt as a,ye as b,xe as c,he as t};
1
+ import{aF as ve,aG as me,aH as X,cJ as $e,aI as He,aL as p,r as d,aJ as Se,aK as ae,aN as L,j as u,aO as ge,au as Oe,cE as at,cK as Ae,cL as Xe,cM as De,aM as se,ak as it,cN as fe,cO as ct,bu as dt,O as F,P as W}from"./index-DIxJxM78.js";let U;function _e(){if(U)return U;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),U="reverse",e.scrollLeft>0?U="default":(e.scrollLeft=1,e.scrollLeft===0&&(U="negative")),document.body.removeChild(e),U}function ut(e,t){const l=e.scrollLeft;if(t!=="rtl")return l;switch(_e()){case"negative":return e.scrollWidth-e.clientWidth+l;case"reverse":return e.scrollWidth-e.clientWidth-l;default:return l}}function bt(e){return me("MuiTab",e)}const k=ve("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),pt=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ft=e=>{const{classes:t,textColor:l,fullWidth:s,wrapped:n,icon:a,label:v,selected:h,disabled:b}=e,g={root:["root",a&&v&&"labelIcon",`textColor${He(l)}`,s&&"fullWidth",n&&"wrapped",h&&"selected",b&&"disabled"],iconWrapper:["iconWrapper"]};return ge(g,bt,t)},ht=X($e,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:l}=e;return[t.root,l.label&&l.icon&&t.labelIcon,t[`textColor${He(l.textColor)}`],l.fullWidth&&t.fullWidth,l.wrapped&&t.wrapped,{[`& .${k.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>p({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${k.iconWrapper}`]:p({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${k.selected}`]:{opacity:1},[`&.${k.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${k.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${k.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${k.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${k.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),xe=d.forwardRef(function(t,l){const s=Se({props:t,name:"MuiTab"}),{className:n,disabled:a=!1,disableFocusRipple:v=!1,fullWidth:h,icon:b,iconPosition:g="top",indicator:B,label:y,onChange:m,onClick:w,onFocus:j,selected:T,selectionFollowsFocus:x,textColor:D="inherit",value:R,wrapped:ie=!1}=s,_=ae(s,pt),V=p({},s,{disabled:a,disableFocusRipple:v,selected:T,icon:!!b,iconPosition:g,label:!!y,fullWidth:h,textColor:D,wrapped:ie}),q=ft(V),$=b&&y&&d.isValidElement(b)?d.cloneElement(b,{className:L(q.iconWrapper,b.props.className)}):b,ee=E=>{!T&&m&&m(E,R),w&&w(E)},K=E=>{x&&!T&&m&&m(E,R),j&&j(E)};return u.jsxs(ht,p({focusRipple:!v,className:L(q.root,n),ref:l,role:"tab","aria-selected":T,disabled:a,onClick:ee,onFocus:K,ownerState:V,tabIndex:T?0:-1},_,{children:[g==="top"||g==="start"?u.jsxs(d.Fragment,{children:[$,y]}):u.jsxs(d.Fragment,{children:[y,$]}),B]}))}),vt=Oe(u.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),mt=Oe(u.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function St(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function gt(e,t,l,s={},n=()=>{}){const{ease:a=St,duration:v=300}=s;let h=null;const b=t[e];let g=!1;const B=()=>{g=!0},y=m=>{if(g){n(new Error("Animation cancelled"));return}h===null&&(h=m);const w=Math.min(1,(m-h)/v);if(t[e]=a(w)*(l-b)+b,w>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(y)};return b===l?(n(new Error("Element already at target position")),B):(requestAnimationFrame(y),B)}const xt=["onChange"],yt={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Ct(e){const{onChange:t}=e,l=ae(e,xt),s=d.useRef(),n=d.useRef(null),a=()=>{s.current=n.current.offsetHeight-n.current.clientHeight};return at(()=>{const v=Ae(()=>{const b=s.current;a(),b!==s.current&&t(s.current)}),h=Xe(n.current);return h.addEventListener("resize",v),()=>{v.clear(),h.removeEventListener("resize",v)}},[t]),d.useEffect(()=>{a(),t(s.current)},[t]),u.jsx("div",p({style:yt,ref:n},l))}function Bt(e){return me("MuiTabScrollButton",e)}const wt=ve("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Tt=["className","slots","slotProps","direction","orientation","disabled"],Mt=e=>{const{classes:t,orientation:l,disabled:s}=e;return ge({root:["root",l,s&&"disabled"]},Bt,t)},It=X($e,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:l}=e;return[t.root,l.orientation&&t[l.orientation]]}})(({ownerState:e})=>p({width:40,flexShrink:0,opacity:.8,[`&.${wt.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Rt=d.forwardRef(function(t,l){var s,n;const a=Se({props:t,name:"MuiTabScrollButton"}),{className:v,slots:h={},slotProps:b={},direction:g}=a,B=ae(a,Tt),y=De(),m=p({isRtl:y},a),w=Mt(m),j=(s=h.StartScrollButtonIcon)!=null?s:vt,T=(n=h.EndScrollButtonIcon)!=null?n:mt,x=se({elementType:j,externalSlotProps:b.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),D=se({elementType:T,externalSlotProps:b.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return u.jsx(It,p({component:"div",className:L(w.root,v),ref:l,role:null,ownerState:m,tabIndex:null},B,{children:g==="left"?u.jsx(j,p({},x)):u.jsx(T,p({},D))}))});function Et(e){return me("MuiTabs",e)}const he=ve("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),zt=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],ke=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Le=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,ne=(e,t,l)=>{let s=!1,n=l(e,t);for(;n;){if(n===e.firstChild){if(s)return;s=!0}const a=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||a)n=l(e,n);else{n.focus();return}}},Wt=e=>{const{vertical:t,fixed:l,hideScrollbar:s,scrollableX:n,scrollableY:a,centered:v,scrollButtonsHideMobile:h,classes:b}=e;return ge({root:["root",t&&"vertical"],scroller:["scroller",l&&"fixed",s&&"hideScrollbar",n&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",v&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",h&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[s&&"hideScrollbar"]},Et,b)},Pt=X("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:l}=e;return[{[`& .${he.scrollButtons}`]:t.scrollButtons},{[`& .${he.scrollButtons}`]:l.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,l.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>p({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${he.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),Nt=X("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:l}=e;return[t.scroller,l.fixed&&t.fixed,l.hideScrollbar&&t.hideScrollbar,l.scrollableX&&t.scrollableX,l.scrollableY&&t.scrollableY]}})(({ownerState:e})=>p({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),kt=X("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:l}=e;return[t.flexContainer,l.vertical&&t.flexContainerVertical,l.centered&&t.centered]}})(({ownerState:e})=>p({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Lt=X("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>p({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),Ft=X(Ct)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Fe={},ye=d.forwardRef(function(t,l){const s=Se({props:t,name:"MuiTabs"}),n=it(),a=De(),{"aria-label":v,"aria-labelledby":h,action:b,centered:g=!1,children:B,className:y,component:m="div",allowScrollButtonsMobile:w=!1,indicatorColor:j="primary",onChange:T,orientation:x="horizontal",ScrollButtonComponent:D=Rt,scrollButtons:R="auto",selectionFollowsFocus:ie,slots:_={},slotProps:V={},TabIndicatorProps:q={},TabScrollButtonProps:$={},textColor:ee="primary",value:K,variant:E="standard",visibleScrollbar:ce=!1}=s,Ue=ae(s,zt),M=E==="scrollable",C=x==="vertical",G=C?"scrollTop":"scrollLeft",te=C?"top":"left",oe=C?"bottom":"right",de=C?"clientHeight":"clientWidth",J=C?"height":"width",H=p({},s,{component:m,allowScrollButtonsMobile:w,indicatorColor:j,orientation:x,vertical:C,scrollButtons:R,textColor:ee,variant:E,visibleScrollbar:ce,fixed:!M,hideScrollbar:M&&!ce,scrollableX:M&&!C,scrollableY:M&&C,centered:g&&!M,scrollButtonsHideMobile:!w}),P=Wt(H),Ye=se({elementType:_.StartScrollButtonIcon,externalSlotProps:V.startScrollButtonIcon,ownerState:H}),Ve=se({elementType:_.EndScrollButtonIcon,externalSlotProps:V.endScrollButtonIcon,ownerState:H}),[Ce,Ge]=d.useState(!1),[O,Be]=d.useState(Fe),[we,Je]=d.useState(!1),[Te,Qe]=d.useState(!1),[Me,Ze]=d.useState(!1),[Ie,et]=d.useState({overflow:"hidden",scrollbarWidth:0}),Re=new Map,z=d.useRef(null),A=d.useRef(null),Ee=()=>{const o=z.current;let r;if(o){const i=o.getBoundingClientRect();r={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ut(o,a?"rtl":"ltr"),scrollWidth:o.scrollWidth,top:i.top,bottom:i.bottom,left:i.left,right:i.right}}let c;if(o&&K!==!1){const i=A.current.children;if(i.length>0){const f=i[Re.get(K)];c=f?f.getBoundingClientRect():null}}return{tabsMeta:r,tabMeta:c}},Q=fe(()=>{const{tabsMeta:o,tabMeta:r}=Ee();let c=0,i;if(C)i="top",r&&o&&(c=r.top-o.top+o.scrollTop);else if(i=a?"right":"left",r&&o){const S=a?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;c=(a?-1:1)*(r[i]-o[i]+S)}const f={[i]:c,[J]:r?r[J]:0};if(isNaN(O[i])||isNaN(O[J]))Be(f);else{const S=Math.abs(O[i]-f[i]),I=Math.abs(O[J]-f[J]);(S>=1||I>=1)&&Be(f)}}),ue=(o,{animation:r=!0}={})=>{r?gt(G,z.current,o,{duration:n.transitions.duration.standard}):z.current[G]=o},ze=o=>{let r=z.current[G];C?r+=o:(r+=o*(a?-1:1),r*=a&&_e()==="reverse"?-1:1),ue(r)},We=()=>{const o=z.current[de];let r=0;const c=Array.from(A.current.children);for(let i=0;i<c.length;i+=1){const f=c[i];if(r+f[de]>o){i===0&&(r=o);break}r+=f[de]}return r},tt=()=>{ze(-1*We())},ot=()=>{ze(We())},lt=d.useCallback(o=>{et({overflow:null,scrollbarWidth:o})},[]),rt=()=>{const o={};o.scrollbarSizeListener=M?u.jsx(Ft,{onChange:lt,className:L(P.scrollableX,P.hideScrollbar)}):null;const c=M&&(R==="auto"&&(we||Te)||R===!0);return o.scrollButtonStart=c?u.jsx(D,p({slots:{StartScrollButtonIcon:_.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Ye},orientation:x,direction:a?"right":"left",onClick:tt,disabled:!we},$,{className:L(P.scrollButtons,$.className)})):null,o.scrollButtonEnd=c?u.jsx(D,p({slots:{EndScrollButtonIcon:_.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ve},orientation:x,direction:a?"left":"right",onClick:ot,disabled:!Te},$,{className:L(P.scrollButtons,$.className)})):null,o},Pe=fe(o=>{const{tabsMeta:r,tabMeta:c}=Ee();if(!(!c||!r)){if(c[te]<r[te]){const i=r[G]+(c[te]-r[te]);ue(i,{animation:o})}else if(c[oe]>r[oe]){const i=r[G]+(c[oe]-r[oe]);ue(i,{animation:o})}}}),le=fe(()=>{M&&R!==!1&&Ze(!Me)});d.useEffect(()=>{const o=Ae(()=>{z.current&&Q()});let r;const c=S=>{S.forEach(I=>{I.removedNodes.forEach(Z=>{var N;(N=r)==null||N.unobserve(Z)}),I.addedNodes.forEach(Z=>{var N;(N=r)==null||N.observe(Z)})}),o(),le()},i=Xe(z.current);i.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(r=new ResizeObserver(o),Array.from(A.current.children).forEach(S=>{r.observe(S)})),typeof MutationObserver<"u"&&(f=new MutationObserver(c),f.observe(A.current,{childList:!0})),()=>{var S,I;o.clear(),i.removeEventListener("resize",o),(S=f)==null||S.disconnect(),(I=r)==null||I.disconnect()}},[Q,le]),d.useEffect(()=>{const o=Array.from(A.current.children),r=o.length;if(typeof IntersectionObserver<"u"&&r>0&&M&&R!==!1){const c=o[0],i=o[r-1],f={root:z.current,threshold:.99},S=pe=>{Je(!pe[0].isIntersecting)},I=new IntersectionObserver(S,f);I.observe(c);const Z=pe=>{Qe(!pe[0].isIntersecting)},N=new IntersectionObserver(Z,f);return N.observe(i),()=>{I.disconnect(),N.disconnect()}}},[M,R,Me,B==null?void 0:B.length]),d.useEffect(()=>{Ge(!0)},[]),d.useEffect(()=>{Q()}),d.useEffect(()=>{Pe(Fe!==O)},[Pe,O]),d.useImperativeHandle(b,()=>({updateIndicator:Q,updateScrollButtons:le}),[Q,le]);const Ne=u.jsx(Lt,p({},q,{className:L(P.indicator,q.className),ownerState:H,style:p({},O,q.style)}));let re=0;const nt=d.Children.map(B,o=>{if(!d.isValidElement(o))return null;const r=o.props.value===void 0?re:o.props.value;Re.set(r,re);const c=r===K;return re+=1,d.cloneElement(o,p({fullWidth:E==="fullWidth",indicator:c&&!Ce&&Ne,selected:c,selectionFollowsFocus:ie,onChange:T,textColor:ee,value:r},re===1&&K===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),st=o=>{const r=A.current,c=ct(r).activeElement;if(c.getAttribute("role")!=="tab")return;let f=x==="horizontal"?"ArrowLeft":"ArrowUp",S=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(f="ArrowRight",S="ArrowLeft"),o.key){case f:o.preventDefault(),ne(r,c,Le);break;case S:o.preventDefault(),ne(r,c,ke);break;case"Home":o.preventDefault(),ne(r,null,ke);break;case"End":o.preventDefault(),ne(r,null,Le);break}},be=rt();return u.jsxs(Pt,p({className:L(P.root,y),ownerState:H,ref:l,as:m},Ue,{children:[be.scrollButtonStart,be.scrollbarSizeListener,u.jsxs(Nt,{className:P.scroller,ownerState:H,style:{overflow:Ie.overflow,[C?`margin${a?"Left":"Right"}`:"marginBottom"]:ce?void 0:-Ie.scrollbarWidth},ref:z,children:[u.jsx(kt,{"aria-label":v,"aria-labelledby":h,"aria-orientation":x==="vertical"?"vertical":null,className:P.flexContainer,ownerState:H,onKeyDown:st,ref:A,role:"tablist",children:nt}),Ce&&Ne]}),be.scrollButtonEnd]}))}),je="index",Y={tabs:`${je}-tabs`,tab:`${je}-tab`},jt=dt(ye)(({theme:e})=>({[`& .${Y.tabs}`]:{},[`& .${Y.tab}`]:{fontSize:"0.875rem",[e.breakpoints.up("md")]:{fontSize:"1rem"}}}));function qe({tabs:e,current:t,onChange:l,...s}){return u.jsx(ye,{scrollButtons:"auto",value:t,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{borderRadius:"100vw"},".MuiTabs-flexContainer":{borderRadius:"100vw",backgroundColor:F.backgroundsBgComponent,padding:.5,display:"inline-flex",columnGap:.25,maxWidth:"100%",overflowX:"auto"},".MuiTab-root":{borderRadius:"100vw",border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,color:F.foregroundsFgSubtile,fontSize:"13px",fontWeight:"normal",textTransform:"capitalize",transition:"background-color 0.2s ease","&.Mui-selected, &:hover":{backgroundColor:"white",borderColor:F.lineBorderBase,color:F.foregroundsFgBase}},".MuiTabs-indicator":{display:"none"},...s.sx},children:e.map(n=>u.jsx(xe,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}qe.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};function Ke({tabs:e,current:t,onChange:l,...s}){return u.jsx(ye,{scrollButtons:"auto",value:t,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{"&::after":{content:'""',display:"block",width:"100%",height:"1px",backgroundColor:F.strokeBorderStrong,bottom:0}},".MuiTabs-flexContainer":{display:"inline-flex",columnGap:2.5,px:0,pb:.5},".MuiTab-root":{border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,px:0,color:F.foregroundsFgSubtile,fontSize:"14px",fontWeight:500,textTransform:"capitalize",minWidth:"auto","&.Mui-selected, &:hover":{color:F.foregroundsFgBase}},".MuiTabs-indicator":{height:"1px",backgroundColor:F.foregroundsFgBase},...s.sx},children:e.map(n=>u.jsx(xe,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}Ke.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};function $t({tabs:e,current:t,onChange:l,...s}){return s.variant==="card"?u.jsx(qe,{...s,tabs:e,current:t,onChange:l}):s.variant==="line"?u.jsx(Ke,{...s,tabs:e,current:t,onChange:l}):u.jsx(jt,{scrollButtons:"auto",variant:"scrollable",value:t,onChange:(n,a)=>l(a),indicatorColor:"primary",...s,className:[Y.tabs,s.className||""].join(" "),children:e.map(n=>u.jsx(xe,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}$t.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};export{mt as K,$t as T,vt as a,ye as b,xe as c,he as t};
@@ -1 +1 @@
1
- import{b8 as j,cv as O}from"./index-Xy0LtaLl.js";function J(i,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const e in a)if(e!=="default"&&!(e in i)){const s=Object.getOwnPropertyDescriptor(a,e);s&&Object.defineProperty(i,e,s.get?s:{enumerable:!0,get:()=>a[e]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var d={default:O,call:function(i,t,r){var a="";typeof t=="function"&&(r=t,t={});var e={data:t===void 0?null:t};if(typeof r=="function"){var s="dscb"+window.dscb++;window[s]=r,e._dscbstub=s}return e=JSON.stringify(e),window._dsbridge?a=_dsbridge.call(i,e):(window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)&&(a=prompt("_dsbridge="+i,e)),JSON.parse(a||"{}").data},register:function(i,t,r){var a=r?window._dsaf:window._dsf;window._dsInit||(window._dsInit=!0,setTimeout(function(){d.call("_dsb.dsinit")},0)),typeof t=="object"?a._obs[i]=t:a[i]=t},registerAsyn:function(i,t){this.register(i,t,!0)},hasNativeMethod:function(i,t){return this.call("_dsb.hasNativeMethod",{name:i,type:t||"all"})},disableJavascriptDialogBlock:function(i){this.call("_dsb.disableJavascriptDialogBlock",{disable:i!==!1})}};(function(){if(!window._dsf){var i={_dsf:{_obs:{}},_dsaf:{_obs:{}},dscb:0,dsBridge:d,close:function(){d.call("_dsb.closePage")},_handleMessageFromNative:function(r){var a=JSON.parse(r.data),e={id:r.callbackId,complete:!0},s=this._dsf[r.method],o=this._dsaf[r.method],p=function(u,_){e.data=u.apply(_,a),d.call("_dsb.returnValue",e)},v=function(u,_){a.push(function(w,y){e.data=w,e.complete=y!==!1,d.call("_dsb.returnValue",e)}),u.apply(_,a)};if(s)p(s,this._dsf);else if(o)v(o,this._dsaf);else{var l=r.method.split(".");if(l.length<2)return;var b=l.pop(),g=l.join("."),c=this._dsf._obs,f=c[g]||{},n=f[b];if(n&&typeof n=="function"){p(n,f);return}if(c=this._dsaf._obs,f=c[g]||{},n=f[b],n&&typeof n=="function"){v(n,f);return}}}};for(var t in i)window[t]=i[t];d.register("_hasJavascriptMethod",function(r,a){var e=r.split(".");if(e.length<2)return!!(_dsf[e]||_dsaf[e]);var r=e.pop(),s=e.join("."),o=_dsf._obs[s]||_dsaf._obs[s];return o&&!!o[r]})}})();var h=d;const N=j(h),k=J({__proto__:null,default:N},[h]);export{k as i};
1
+ import{b8 as j,cv as O}from"./index-DIxJxM78.js";function J(i,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const e in a)if(e!=="default"&&!(e in i)){const s=Object.getOwnPropertyDescriptor(a,e);s&&Object.defineProperty(i,e,s.get?s:{enumerable:!0,get:()=>a[e]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var d={default:O,call:function(i,t,r){var a="";typeof t=="function"&&(r=t,t={});var e={data:t===void 0?null:t};if(typeof r=="function"){var s="dscb"+window.dscb++;window[s]=r,e._dscbstub=s}return e=JSON.stringify(e),window._dsbridge?a=_dsbridge.call(i,e):(window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)&&(a=prompt("_dsbridge="+i,e)),JSON.parse(a||"{}").data},register:function(i,t,r){var a=r?window._dsaf:window._dsf;window._dsInit||(window._dsInit=!0,setTimeout(function(){d.call("_dsb.dsinit")},0)),typeof t=="object"?a._obs[i]=t:a[i]=t},registerAsyn:function(i,t){this.register(i,t,!0)},hasNativeMethod:function(i,t){return this.call("_dsb.hasNativeMethod",{name:i,type:t||"all"})},disableJavascriptDialogBlock:function(i){this.call("_dsb.disableJavascriptDialogBlock",{disable:i!==!1})}};(function(){if(!window._dsf){var i={_dsf:{_obs:{}},_dsaf:{_obs:{}},dscb:0,dsBridge:d,close:function(){d.call("_dsb.closePage")},_handleMessageFromNative:function(r){var a=JSON.parse(r.data),e={id:r.callbackId,complete:!0},s=this._dsf[r.method],o=this._dsaf[r.method],p=function(u,_){e.data=u.apply(_,a),d.call("_dsb.returnValue",e)},v=function(u,_){a.push(function(w,y){e.data=w,e.complete=y!==!1,d.call("_dsb.returnValue",e)}),u.apply(_,a)};if(s)p(s,this._dsf);else if(o)v(o,this._dsaf);else{var l=r.method.split(".");if(l.length<2)return;var b=l.pop(),g=l.join("."),c=this._dsf._obs,f=c[g]||{},n=f[b];if(n&&typeof n=="function"){p(n,f);return}if(c=this._dsaf._obs,f=c[g]||{},n=f[b],n&&typeof n=="function"){v(n,f);return}}}};for(var t in i)window[t]=i[t];d.register("_hasJavascriptMethod",function(r,a){var e=r.split(".");if(e.length<2)return!!(_dsf[e]||_dsaf[e]);var r=e.pop(),s=e.join("."),o=_dsf._obs[s]||_dsaf._obs[s];return o&&!!o[r]})}})();var h=d;const N=j(h),k=J({__proto__:null,default:N},[h]);export{k as i};
@@ -1 +1 @@
1
- import{d as A,v as R,p as w,e as p}from"./index-B_Laf8x-.js";const O=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,x=/^[a-zA-Z]:\\/;function N(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return x.test(e)?!1:O.test(e)}const _=["http","https"],z=["nofollow"],L={};function T(e){const r=e||L,g=r.protocols||_,u=A(r.test);return function(h){R(h,"element",function(t,y,E){if(t.tagName==="a"&&typeof t.properties.href=="string"&&u(t,y,E)){const o=t.properties.href;if(N(o)?g.includes(o.slice(0,o.indexOf(":"))):o.startsWith("//")){const n=s(r.content,t),c=n&&!Array.isArray(n)?[n]:n,i=s(r.rel,t)||z,a=typeof i=="string"?w(i):i,f=s(r.target,t),l=s(r.properties,t);if(l&&Object.assign(t.properties,p(l)),a.length>0&&(t.properties.rel=[...a]),f&&(t.properties.target=f),c){const m=s(r.contentProperties,t)||{};t.children.push({type:"element",tagName:"span",properties:p(m),children:p(c)})}}}})}}function s(e,r){return typeof e=="function"?e(r):e}export{T as r};
1
+ import{d as A,v as R,p as w,e as p}from"./index-CjW-BiBJ.js";const O=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,x=/^[a-zA-Z]:\\/;function N(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return x.test(e)?!1:O.test(e)}const _=["http","https"],z=["nofollow"],L={};function T(e){const r=e||L,g=r.protocols||_,u=A(r.test);return function(h){R(h,"element",function(t,y,E){if(t.tagName==="a"&&typeof t.properties.href=="string"&&u(t,y,E)){const o=t.properties.href;if(N(o)?g.includes(o.slice(0,o.indexOf(":"))):o.startsWith("//")){const n=s(r.content,t),c=n&&!Array.isArray(n)?[n]:n,i=s(r.rel,t)||z,a=typeof i=="string"?w(i):i,f=s(r.target,t),l=s(r.properties,t);if(l&&Object.assign(t.properties,p(l)),a.length>0&&(t.properties.rel=[...a]),f&&(t.properties.target=f),c){const m=s(r.contentProperties,t)||{};t.children.push({type:"element",tagName:"span",properties:p(m),children:p(c)})}}}})}}function s(e,r){return typeof e=="function"?e(r):e}export{T as r};
@@ -1,4 +1,4 @@
1
- import{r as d,j as o,bu as h,B as p,P as i}from"./index-Xy0LtaLl.js";var a={};Object.defineProperty(a,"__esModule",{value:!0});var f=a.default=void 0;v(d);var c=o;function v(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(y){return Object.getOwnPropertyDescriptor(e,y).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(n){b(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function b(e,t,r){return(t=j(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(e){var t=g(e,"string");return typeof t=="symbol"?t:t+""}function g(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l=function(t){return(0,c.jsx)("svg",s(s({},t),{},{children:(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.361 2.4a.8.8 0 0 0-.728.469L.873 15.54a.8.8 0 0 0-.072.33V27.393a.8.8 0 0 0 .8.8h28.8a.8.8 0 0 0 .8-.8v-11.52a.8.8 0 0 0-.072-.331L25.37 2.869a.8.8 0 0 0-.728-.47H7.361zm-4.96 14.4v9.792h27.2v-9.799a.814.814 0 0 1-.104.007h-7.098l-2.066 3.1a.8.8 0 0 1-.666.356h-8.064a.8.8 0 0 1-.665-.356L8.87 16.8h-6.47zm26.816-1.6H21.97a.8.8 0 0 0-.665.356l-2.067 3.1h-7.208l-2.066-3.1a.8.8 0 0 0-.666-.356H2.785L7.876 4h16.25l5.09 11.2z",fill:"currentColor"})}))};l.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};l.displayName="empty";f=a.default=l;const O=h(p)`
1
+ import{r as d,j as o,bu as h,B as p,P as i}from"./index-DIxJxM78.js";var a={};Object.defineProperty(a,"__esModule",{value:!0});var f=a.default=void 0;v(d);var c=o;function v(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(y){return Object.getOwnPropertyDescriptor(e,y).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(n){b(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function b(e,t,r){return(t=j(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(e){var t=g(e,"string");return typeof t=="symbol"?t:t+""}function g(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l=function(t){return(0,c.jsx)("svg",s(s({},t),{},{children:(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.361 2.4a.8.8 0 0 0-.728.469L.873 15.54a.8.8 0 0 0-.072.33V27.393a.8.8 0 0 0 .8.8h28.8a.8.8 0 0 0 .8-.8v-11.52a.8.8 0 0 0-.072-.331L25.37 2.869a.8.8 0 0 0-.728-.47H7.361zm-4.96 14.4v9.792h27.2v-9.799a.814.814 0 0 1-.104.007h-7.098l-2.066 3.1a.8.8 0 0 1-.666.356h-8.064a.8.8 0 0 1-.665-.356L8.87 16.8h-6.47zm26.816-1.6H21.97a.8.8 0 0 0-.665.356l-2.067 3.1h-7.208l-2.066-3.1a.8.8 0 0 0-.666-.356H2.785L7.876 4h16.25l5.09 11.2z",fill:"currentColor"})}))};l.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};l.displayName="empty";f=a.default=l;const O=h(p)`
2
2
  display: flex;
3
3
  justify-content: center;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{b8 as c}from"./index-Xy0LtaLl.js";var i={exports:{}};/*!
1
+ import{b8 as c}from"./index-DIxJxM78.js";var i={exports:{}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
@@ -1 +1 @@
1
- import{b8 as y}from"./index-Xy0LtaLl.js";var c={};function u(e,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var T=u;u.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};u.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};u.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var i=new Date().getTime();if(e&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),t=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},t),this._options.unref&&this._timer.unref(),!0};u.prototype.attempt=function(e,i){this._fn=e,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};u.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};u.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};u.prototype.start=u.prototype.try;u.prototype.errors=function(){return this._errors};u.prototype.attempts=function(){return this._attempts};u.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},i=null,t=0,r=0;r<this._errors.length;r++){var n=this._errors[r],o=n.message,a=(e[o]||0)+1;e[o]=a,a>=t&&(i=n,t=a)}return i};(function(e){var i=T;e.operation=function(t){var r=e.timeouts(t);return new i(r,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in t)r[n]=t[n];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],a=0;a<r.retries;a++)o.push(this.createTimeout(a,r));return t&&t.forever&&!o.length&&o.push(this.createTimeout(a,r)),o.sort(function(s,m){return s-m}),o},e.createTimeout=function(t,r){var n=r.randomize?Math.random()+1:1,o=Math.round(n*Math.max(r.minTimeout,1)*Math.pow(r.factor,t));return o=Math.min(o,r.maxTimeout),o},e.wrap=function(t,r,n){if(r instanceof Array&&(n=r,r=null),!n){n=[];for(var o in t)typeof t[o]=="function"&&n.push(o)}for(var a=0;a<n.length;a++){var s=n[a],m=t[s];t[s]=(function(p){var f=e.operation(r),h=Array.prototype.slice.call(arguments,1),l=h.pop();h.push(function(_){f.retry(_)||(_&&(arguments[0]=f.mainError()),l.apply(this,arguments))}),f.attempt(function(){p.apply(t,h)})}).bind(t,m),t[s].options=r}}})(c);var v=c;const R=y(v);export{R as a,v as r};
1
+ import{b8 as y}from"./index-DIxJxM78.js";var c={};function u(e,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var T=u;u.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};u.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};u.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var i=new Date().getTime();if(e&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),t=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},t),this._options.unref&&this._timer.unref(),!0};u.prototype.attempt=function(e,i){this._fn=e,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};u.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};u.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};u.prototype.start=u.prototype.try;u.prototype.errors=function(){return this._errors};u.prototype.attempts=function(){return this._attempts};u.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},i=null,t=0,r=0;r<this._errors.length;r++){var n=this._errors[r],o=n.message,a=(e[o]||0)+1;e[o]=a,a>=t&&(i=n,t=a)}return i};(function(e){var i=T;e.operation=function(t){var r=e.timeouts(t);return new i(r,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in t)r[n]=t[n];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],a=0;a<r.retries;a++)o.push(this.createTimeout(a,r));return t&&t.forever&&!o.length&&o.push(this.createTimeout(a,r)),o.sort(function(s,m){return s-m}),o},e.createTimeout=function(t,r){var n=r.randomize?Math.random()+1:1,o=Math.round(n*Math.max(r.minTimeout,1)*Math.pow(r.factor,t));return o=Math.min(o,r.maxTimeout),o},e.wrap=function(t,r,n){if(r instanceof Array&&(n=r,r=null),!n){n=[];for(var o in t)typeof t[o]=="function"&&n.push(o)}for(var a=0;a<n.length;a++){var s=n[a],m=t[s];t[s]=(function(p){var f=e.operation(r),h=Array.prototype.slice.call(arguments,1),l=h.pop();h.push(function(_){f.retry(_)||(_&&(arguments[0]=f.mainError()),l.apply(this,arguments))}),f.attempt(function(){p.apply(t,h)})}).bind(t,m),t[s].options=r}}})(c);var v=c;const R=y(v);export{R as a,v as r};
@@ -1,4 +1,4 @@
1
- import{Z as We,$ as qe,j as t,P as K,a0 as xe,bn as da,r as U,eF as fa,B as m,di as Dn,bg as ss,aD as je,n as bt,u as be,aQ as ge,a3 as re,t as Y,aZ as he,G as Ae,gc as ga,a9 as De,K as as,bD as pa,T as zt,gd as ma,ag as ha,av as tt,ab as ae,bm as ba,a2 as ye,aY as Gt,aT as Xe,ge as Ea,b8 as nt,l as j,Q as ke,bE as Ee,fk as _a,bW as Ce,w as xa,c as gt,k as ze,aU as rs,ak as st,cw as rt,gf as ya,gg as Sa,a as kn,fx as va,b as Te,O as it,bF as He,bU as Na,bV as Aa,bT as Ta,b0 as Ca,b1 as Ra,gh as Oa,fD as wa,b7 as Ia,gi as Wt,bH as La,cn as is,bu as ja,bt as Ie,cx as Ma,gj as os,F as Da}from"./index-Xy0LtaLl.js";import{I as ka}from"./iframe-B-fn-3dw.js";import{I as Pa,F as qt,d as Ba,L as Fa,a as $a}from"./Edit-CEc0n6pq.js";import{B as cs,d as ls}from"./ChevronRight-JfisleDr.js";import{d as us}from"./ExpandMore-Bpwbf5LO.js";import{T as an}from"./index-B6cedsbc.js";import{u as rn,b as Ua,c as Ka,e as Ha}from"./dashboard-CjhX-KyD.js";import{d as za}from"./Loop-xx5k3xbF.js";import{d as Ga}from"./Done-BPSCz_s4.js";import{F as Wa,R as qa,L as Ot}from"./logo-uploader-DzWvnC_0.js";import{a as Pn,A as Ya,u as Pe,C as ee}from"./index.esm-r-7-JiBo.js";import{T as ne,F as Va}from"./TextField-CAingS4F.js";import{e as Za}from"./mode-B2dWMeTO.js";import{w as ds,P as Xa}from"./permission-C5oFkeWC.js";import{C as fs}from"./confirm-CCQa70Pg.js";import{f as on,D as Ja}from"./format-error-B_wxv2zr.js";import{_ as Qa}from"./useSetState-B7OpsWvA.js";import{u as er}from"./session-qS7z5tiM.js";import{C as tr}from"./click-to-copy-DJDkDoFa.js";import{F as Re,C as gs,S as nr}from"./FormControlLabel-CpXvhTph.js";import{A as sr}from"./Alert-ClYwyZJt.js";import{a as Le}from"./index-UJL5oKk6.js";import{E as cn}from"./index-BF0CESCe.js";import{F as ie}from"./FormControl-BS53BBfk.js";import{d as ar}from"./Launch-yFmc6Tfn.js";import{d as rr}from"./EditIcon-Jc6oyqrl.js";import{A as Yt}from"./config-D8NcxsCJ.js";import{a as ir}from"./ListItemText-tl-KE_u8.js";import{u as or,a as cr,D as lr,H as ur}from"./index-cDbrdIwr.js";import{S as Et}from"./switch-control-C_KVSzuu.js";import{K as dr}from"./keyboard-arrow-down-rounded-DadBVmpO.js";import{S as fr}from"./Slider-DsbZ_-QY.js";import{D as gr}from"./index-DQ0JJK46.js";import{I as pr}from"./index-5OJNH84k.js";import"./index-Dukr6y8O.js";import{i as ps}from"./index-BtOgY8Si.js";import{G as wt}from"./redux-D4hIeGdy.js";import"./ArrowDropDown-DsukJ5At.js";import"./ButtonGroup-DFgjZ6az.js";import"./Avatar-DfF1m2g5.js";import"./useSlot-CQyOPTl1.js";import"./useLocalStorage-DaDlKYRB.js";import"./MoreVert-CxoveKS9.js";import"./Delete-uLZyjAyH.js";import"./PlayArrow-BqJmPwGX.js";import"./RadioGroup-CDcTFsOU.js";import"./FormGroup-CQJX8jMa.js";import"./useFormControl-BbOnEHs0.js";import"./index-CuyRGb9b.js";import"./Link-AzDxZ12K.js";import"./fallback-D28RgUKE.js";import"./index-CQUsDYvK.js";import"./Toolbar-Ba71DWfj.js";import"./Hidden-DQSEBXaz.js";import"./index-CBLTqEyl.js";import"./selector-BqPqCAYg.js";import"./index-BvFufyUR.js";import"./Select-DTam9nL9.js";import"./InputLabel-vEy8Wv5K.js";import"./useAsync-R-TUNvpI.js";import"./FilterList-8uDifo29.js";import"./useThemeProps-CXkqPLv1.js";import"./toPropertyKey-PLuKRk1e.js";import"./LastPage-CG3UlSnN.js";import"./Search-Cb1nmmjY.js";var ln={},mr=qe;Object.defineProperty(ln,"__esModule",{value:!0});var ms=ln.default=void 0,hr=mr(We()),br=t;ms=ln.default=(0,hr.default)((0,br.jsx)("path",{d:"M3 18c0 .55.45 1 1 1h5v-2H4c-.55 0-1 .45-1 1M3 6c0 .55.45 1 1 1h9V5H4c-.55 0-1 .45-1 1m10 14v-1h7c.55 0 1-.45 1-1s-.45-1-1-1h-7v-1c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1s1-.45 1-1M7 10v1H4c-.55 0-1 .45-1 1s.45 1 1 1h3v1c0 .55.45 1 1 1s1-.45 1-1v-4c0-.55-.45-1-1-1s-1 .45-1 1m14 2c0-.55-.45-1-1-1h-9v2h9c.55 0 1-.45 1-1m-5-3c.55 0 1-.45 1-1V7h3c.55 0 1-.45 1-1s-.45-1-1-1h-3V4c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1"}),"TuneRounded");var un={},Er=qe;Object.defineProperty(un,"__esModule",{value:!0});var hs=un.default=void 0,_r=Er(We()),xr=t;hs=un.default=(0,_r.default)((0,xr.jsx)("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"}),"Key");var dn={},yr=qe;Object.defineProperty(dn,"__esModule",{value:!0});var bs=dn.default=void 0,Sr=yr(We()),vr=t;bs=dn.default=(0,Sr.default)((0,vr.jsx)("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8z"}),"Login");var fn={},Nr=qe;Object.defineProperty(fn,"__esModule",{value:!0});var Es=fn.default=void 0,Ar=Nr(We()),Tr=t;Es=fn.default=(0,Ar.default)((0,Tr.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2m6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5z"}),"NotificationsNone");function gn({label:e,disabled:n,required:s,initialValue:r,onChange:u,style:c,onSubmit:o,triggers:a,options:i,formatterBeforeSubmit:d,helperText:l,placeholder:y,renderImage:b,renderLabel:h,filterKeys:v,noEmpty:A,...T}){const[w,f]=U.useState(!1),[g,S]=U.useState(!1),[p,x]=fa.useState(""),[R,D]=U.useState(r),[O,_]=U.useState(R),I=U.useMemo(()=>{if(!i)return{};const $={};return i.forEach(E=>{$[E.code]=E}),$},[i]),C=()=>{if(!i)return[];if(!p)return i.map(E=>E.code);const $=new RegExp(p.toLowerCase());return i.filter(E=>{var N;for(let k=0;k<v.length;k++){const H=v[k];if($.test((N=E[H])==null?void 0:N.toLowerCase()))return!0}return!1}).map(E=>E.code)},M=async()=>{S(!0);try{await o(typeof d=="function"?d(O):O)===!1?_(R):A&&!O.length?(_(r),D(r)):(_(O),D(O))}catch{_(R)}finally{S(!1),f(!1)}},F=($,E)=>{if(!Array.isArray(E)){_([]),u([]);return}const N=E.filter(k=>I[k]);if(!N.length){_([]),u([]);return}_(N),u(N)},q=w?t.jsx(Ya,{options:i,value:O,onChange:F,inputValue:p,onInputChange:($,E)=>{x(E)},PopperComponent:Rr,fullWidth:!0,multiple:!0,variant:"outlined",margin:"dense",filterOptions:C,getOptionLabel:$=>{var E;return(E=I[$])==null?void 0:E.name},renderInput:$=>t.jsx(ne,{...$,label:"",placeholder:y}),renderOption:($,E)=>{var k;const N=O.indexOf(E)!==-1;return U.createElement(Cr,{component:"li",...$,key:E},b(I[E]||{}),t.jsx(m,{sx:{"& > img":{mr:2,flexShrink:0}},style:{flex:1,fontWeight:N?"700":"normal"},children:h(E,I[E])||((k=I[E])==null?void 0:k.name)}),t.jsx(m,{component:Dn,sx:{opacity:.5,width:18,height:18},style:{visibility:N?"visible":"hidden"}}))},...T}):t.jsx(m,{px:1,className:"form-item-input slot",style:{whiteSpace:"pre-wrap"},children:O.filter($=>i.some(E=>E.code===$)).map($=>t.jsx(ss,{label:i.find(E=>E.code===$).name,style:{marginRight:8},size:"small"},$))});return t.jsx(Wa,{className:"form",style:c,children:t.jsxs(m,{className:"form-item",children:[t.jsxs(m,{className:"form-item-label",children:[e,s&&t.jsx(qa,{})]}),t.jsxs(m,{className:"form-item-body",children:[t.jsx(m,{className:"form-item-input",children:q}),t.jsx(m,{className:"form-item-action",children:w?t.jsxs(t.Fragment,{children:[t.jsx(je,{"data-cy":"schema-form-item-confirm",onClick:M,disabled:n||g,size:"large",children:g?t.jsx(bt,{size:24}):t.jsx(Ga,{})}),t.jsx(je,{"data-cy":"schema-form-item-cancel",onClick:()=>{_(R),f(!1)},disabled:n||g,size:"large",children:t.jsx(Dn,{})})]}):t.jsx(Pa,{triggers:a,onEnterEdit:()=>f(!0),disabled:n})})]}),w&&l&&t.jsx(Va,{children:l})]})})}gn.propTypes={style:K.object,onSubmit:K.func,onChange:K.func,label:K.string,initialValue:K.string,required:K.bool,disabled:K.bool,triggers:K.array,options:K.array,helperText:K.string,formatterBeforeSubmit:K.func,placeholder:K.string,renderImage:K.func,filterKeys:K.arrayOf(K.string),noEmpty:K.bool,renderLabel:K.func};gn.defaultProps={style:{},onSubmit:()=>{},onChange:()=>{},label:"",initialValue:"",required:!1,disabled:!1,triggers:[],options:[],helperText:"",formatterBeforeSubmit:e=>e.join(","),placeholder:"",filterKeys:["name"],renderImage:()=>null,renderLabel:(e,n)=>"",noEmpty:!1};const Cr=xe.div`
1
+ import{Z as We,$ as qe,j as t,P as K,a0 as xe,bn as da,r as U,eF as fa,B as m,di as Dn,bg as ss,aD as je,n as bt,u as be,aQ as ge,a3 as re,t as Y,aZ as he,G as Ae,gc as ga,a9 as De,K as as,bD as pa,T as zt,gd as ma,ag as ha,av as tt,ab as ae,bm as ba,a2 as ye,aY as Gt,aT as Xe,ge as Ea,b8 as nt,l as j,Q as ke,bE as Ee,fk as _a,bW as Ce,w as xa,c as gt,k as ze,aU as rs,ak as st,cw as rt,gf as ya,gg as Sa,a as kn,fx as va,b as Te,O as it,bF as He,bU as Na,bV as Aa,bT as Ta,b0 as Ca,b1 as Ra,gh as Oa,fD as wa,b7 as Ia,gi as Wt,bH as La,cn as is,bu as ja,bt as Ie,cx as Ma,gj as os,F as Da}from"./index-DIxJxM78.js";import{I as ka}from"./iframe-EFuUBe3_.js";import{I as Pa,F as qt,d as Ba,L as Fa,a as $a}from"./Edit-MvOKdBEJ.js";import{B as cs,d as ls}from"./ChevronRight-DDyzifk9.js";import{d as us}from"./ExpandMore-DkoxrM3F.js";import{T as an}from"./index-B29G6Shi.js";import{u as rn,b as Ua,c as Ka,e as Ha}from"./dashboard-BeSQUyuf.js";import{d as za}from"./Loop-UQ-nGsCg.js";import{d as Ga}from"./Done-ZAZhEq2L.js";import{F as Wa,R as qa,L as Ot}from"./logo-uploader-P1VlMV5V.js";import{a as Pn,A as Ya,u as Pe,C as ee}from"./index.esm-Beu0fK3G.js";import{T as ne,F as Va}from"./TextField-OgHHL_KP.js";import{e as Za}from"./mode-B2dWMeTO.js";import{w as ds,P as Xa}from"./permission-DaB1xF5g.js";import{C as fs}from"./confirm-CtLbKcS0.js";import{f as on,D as Ja}from"./format-error-Bn7NObKb.js";import{_ as Qa}from"./useSetState-B68uVZku.js";import{u as er}from"./session-BmQaZaGU.js";import{C as tr}from"./click-to-copy-3x1G9XH4.js";import{F as Re,C as gs,S as nr}from"./FormControlLabel-Cn1ZEQIw.js";import{A as sr}from"./Alert-DPUEB95E.js";import{a as Le}from"./index-CTfT52DI.js";import{E as cn}from"./index-BLVcicxZ.js";import{F as ie}from"./FormControl-BUn4wQGt.js";import{d as ar}from"./Launch-DZvL7Btt.js";import{d as rr}from"./EditIcon-B68lRQt1.js";import{A as Yt}from"./config-D3UgjDma.js";import{a as ir}from"./ListItemText-D00e-P7J.js";import{u as or,a as cr,D as lr,H as ur}from"./index-cz02fWRO.js";import{S as Et}from"./switch-control-dGBNspU7.js";import{K as dr}from"./keyboard-arrow-down-rounded-DadBVmpO.js";import{S as fr}from"./Slider-BtNkKS5B.js";import{D as gr}from"./index-Dg03Eob-.js";import{I as pr}from"./index-DesPWyQa.js";import"./index-BtPZTcXb.js";import{i as ps}from"./index-xkcMt7XQ.js";import{G as wt}from"./redux-uiwtTAq3.js";import"./ArrowDropDown-0yDa2aHH.js";import"./ButtonGroup-d0oDm0RO.js";import"./Avatar-Cw952dlh.js";import"./useSlot-CQP4hUUG.js";import"./useLocalStorage-kWCrVKjB.js";import"./MoreVert-D7siuKO-.js";import"./Delete-B2wSgiTE.js";import"./PlayArrow-CnWuAQ7W.js";import"./RadioGroup-Bu2zmWw_.js";import"./FormGroup-BDqHH6R7.js";import"./useFormControl-DqoBF9iH.js";import"./index-CvPYqGkG.js";import"./Link-CPGMRK--.js";import"./fallback-Cn_W-m4r.js";import"./index-C0SGixzY.js";import"./Toolbar-IW4D_zYa.js";import"./Hidden-w-nWLLe2.js";import"./index-Cb0PVWPM.js";import"./selector-CLP7imhL.js";import"./index-BZUzIWGh.js";import"./Select-BzfN1x8W.js";import"./InputLabel-BU0FzAth.js";import"./useAsync-C-N7xB1Q.js";import"./FilterList-DbTqBTrF.js";import"./useThemeProps-V4iYGCCr.js";import"./toPropertyKey-PLuKRk1e.js";import"./LastPage-BRQIhdX7.js";import"./Search-CQlVySI6.js";var ln={},mr=qe;Object.defineProperty(ln,"__esModule",{value:!0});var ms=ln.default=void 0,hr=mr(We()),br=t;ms=ln.default=(0,hr.default)((0,br.jsx)("path",{d:"M3 18c0 .55.45 1 1 1h5v-2H4c-.55 0-1 .45-1 1M3 6c0 .55.45 1 1 1h9V5H4c-.55 0-1 .45-1 1m10 14v-1h7c.55 0 1-.45 1-1s-.45-1-1-1h-7v-1c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1s1-.45 1-1M7 10v1H4c-.55 0-1 .45-1 1s.45 1 1 1h3v1c0 .55.45 1 1 1s1-.45 1-1v-4c0-.55-.45-1-1-1s-1 .45-1 1m14 2c0-.55-.45-1-1-1h-9v2h9c.55 0 1-.45 1-1m-5-3c.55 0 1-.45 1-1V7h3c.55 0 1-.45 1-1s-.45-1-1-1h-3V4c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1"}),"TuneRounded");var un={},Er=qe;Object.defineProperty(un,"__esModule",{value:!0});var hs=un.default=void 0,_r=Er(We()),xr=t;hs=un.default=(0,_r.default)((0,xr.jsx)("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"}),"Key");var dn={},yr=qe;Object.defineProperty(dn,"__esModule",{value:!0});var bs=dn.default=void 0,Sr=yr(We()),vr=t;bs=dn.default=(0,Sr.default)((0,vr.jsx)("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8z"}),"Login");var fn={},Nr=qe;Object.defineProperty(fn,"__esModule",{value:!0});var Es=fn.default=void 0,Ar=Nr(We()),Tr=t;Es=fn.default=(0,Ar.default)((0,Tr.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2m6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5z"}),"NotificationsNone");function gn({label:e,disabled:n,required:s,initialValue:r,onChange:u,style:c,onSubmit:o,triggers:a,options:i,formatterBeforeSubmit:d,helperText:l,placeholder:y,renderImage:b,renderLabel:h,filterKeys:v,noEmpty:A,...T}){const[w,f]=U.useState(!1),[g,S]=U.useState(!1),[p,x]=fa.useState(""),[R,D]=U.useState(r),[O,_]=U.useState(R),I=U.useMemo(()=>{if(!i)return{};const $={};return i.forEach(E=>{$[E.code]=E}),$},[i]),C=()=>{if(!i)return[];if(!p)return i.map(E=>E.code);const $=new RegExp(p.toLowerCase());return i.filter(E=>{var N;for(let k=0;k<v.length;k++){const H=v[k];if($.test((N=E[H])==null?void 0:N.toLowerCase()))return!0}return!1}).map(E=>E.code)},M=async()=>{S(!0);try{await o(typeof d=="function"?d(O):O)===!1?_(R):A&&!O.length?(_(r),D(r)):(_(O),D(O))}catch{_(R)}finally{S(!1),f(!1)}},F=($,E)=>{if(!Array.isArray(E)){_([]),u([]);return}const N=E.filter(k=>I[k]);if(!N.length){_([]),u([]);return}_(N),u(N)},q=w?t.jsx(Ya,{options:i,value:O,onChange:F,inputValue:p,onInputChange:($,E)=>{x(E)},PopperComponent:Rr,fullWidth:!0,multiple:!0,variant:"outlined",margin:"dense",filterOptions:C,getOptionLabel:$=>{var E;return(E=I[$])==null?void 0:E.name},renderInput:$=>t.jsx(ne,{...$,label:"",placeholder:y}),renderOption:($,E)=>{var k;const N=O.indexOf(E)!==-1;return U.createElement(Cr,{component:"li",...$,key:E},b(I[E]||{}),t.jsx(m,{sx:{"& > img":{mr:2,flexShrink:0}},style:{flex:1,fontWeight:N?"700":"normal"},children:h(E,I[E])||((k=I[E])==null?void 0:k.name)}),t.jsx(m,{component:Dn,sx:{opacity:.5,width:18,height:18},style:{visibility:N?"visible":"hidden"}}))},...T}):t.jsx(m,{px:1,className:"form-item-input slot",style:{whiteSpace:"pre-wrap"},children:O.filter($=>i.some(E=>E.code===$)).map($=>t.jsx(ss,{label:i.find(E=>E.code===$).name,style:{marginRight:8},size:"small"},$))});return t.jsx(Wa,{className:"form",style:c,children:t.jsxs(m,{className:"form-item",children:[t.jsxs(m,{className:"form-item-label",children:[e,s&&t.jsx(qa,{})]}),t.jsxs(m,{className:"form-item-body",children:[t.jsx(m,{className:"form-item-input",children:q}),t.jsx(m,{className:"form-item-action",children:w?t.jsxs(t.Fragment,{children:[t.jsx(je,{"data-cy":"schema-form-item-confirm",onClick:M,disabled:n||g,size:"large",children:g?t.jsx(bt,{size:24}):t.jsx(Ga,{})}),t.jsx(je,{"data-cy":"schema-form-item-cancel",onClick:()=>{_(R),f(!1)},disabled:n||g,size:"large",children:t.jsx(Dn,{})})]}):t.jsx(Pa,{triggers:a,onEnterEdit:()=>f(!0),disabled:n})})]}),w&&l&&t.jsx(Va,{children:l})]})})}gn.propTypes={style:K.object,onSubmit:K.func,onChange:K.func,label:K.string,initialValue:K.string,required:K.bool,disabled:K.bool,triggers:K.array,options:K.array,helperText:K.string,formatterBeforeSubmit:K.func,placeholder:K.string,renderImage:K.func,filterKeys:K.arrayOf(K.string),noEmpty:K.bool,renderLabel:K.func};gn.defaultProps={style:{},onSubmit:()=>{},onChange:()=>{},label:"",initialValue:"",required:!1,disabled:!1,triggers:[],options:[],helperText:"",formatterBeforeSubmit:e=>e.join(","),placeholder:"",filterKeys:["name"],renderImage:()=>null,renderLabel:(e,n)=>"",noEmpty:!1};const Cr=xe.div`
2
2
  display: flex;
3
3
  justify-content: space-between;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{cs as J,aZ as N,r as x,aQ as P,bX as ve,t as v,ab as K,u as O,j as e,P as f,eY as Ke,c4 as le,c as V,fl as Ve,T as y,B as j,K as de,av as Ge,a3 as te,n as Z,a0 as ke,a2 as Xe,gG as We,Z as ne,$ as oe,aU as _,fk as Ye,aD as qe,aS as _e,a1 as $e,U as et,b_ as tt,cx as st,G as M,bh as q,a as nt,gH as ot,C as at,bH as it}from"./index-Xy0LtaLl.js";import{S as ye}from"./index-oNPd0xkl.js";import"./api-rSkpRnMk.js";import{u as Ie,P as rt}from"./use-blocklet-info-for-connect-did-spaces-SRd5l8_C.js";import{b as ct,h as lt,d as se,e as Se,f as dt,i as Ae,j as pt,k as ut,l as Ce,c as ht}from"./spaces-CGSqFLCZ.js";import{f as G,D as mt}from"./format-error-B_wxv2zr.js";import{T as ft}from"./TextField-CAingS4F.js";import{A as xt}from"./Alert-ClYwyZJt.js";import{I as gt}from"./index-5OJNH84k.js";import{W as jt}from"./did-address-1DufLas8.js";import{S as De}from"./switch-control-C_KVSzuu.js";import{d as yt}from"./MoreHoriz-_DaP4AK8.js";import{d as St}from"./DeleteOutline-Brfidl3M.js";import{L as $,a as ee}from"./ListItemText-tl-KE_u8.js";import{e as At}from"./mode-B2dWMeTO.js";import{T as ce}from"./index-CuyRGb9b.js";import{D as Ct}from"./index-DQ0JJK46.js";import{L as Bt}from"./Link-AzDxZ12K.js";import{G as Be}from"./redux-D4hIeGdy.js";import"./ExpandMore-Bpwbf5LO.js";import"./ButtonGroup-DFgjZ6az.js";import"./CloseOutlined-DMNRl8D0.js";import"./index-BtOgY8Si.js";import"./FormControl-BS53BBfk.js";import"./useFormControl-BbOnEHs0.js";import"./InputLabel-vEy8Wv5K.js";import"./Select-DTam9nL9.js";import"./useSlot-CQyOPTl1.js";import"./index-UJL5oKk6.js";import"./FormControlLabel-CpXvhTph.js";import"./FilterList-8uDifo29.js";import"./useThemeProps-CXkqPLv1.js";import"./toPropertyKey-PLuKRk1e.js";import"./FormGroup-CQJX8jMa.js";import"./index-B6cedsbc.js";import"./LastPage-CG3UlSnN.js";import"./Toolbar-Ba71DWfj.js";import"./index-cDbrdIwr.js";import"./Search-Cb1nmmjY.js";import"./Delete-uLZyjAyH.js";import"./index-BF0CESCe.js";import"./MoreVert-CxoveKS9.js";async function vt({blockletDid:t,nodeApi:s,spaceGateways:a}){let n=!1;const l=await Promise.all(a.map(async c=>{let{name:o}=c;const r=await ct(c.endpoint);return!J.isEmpty(r)&&r!==o&&(o=r,n=!0),{...c,name:o}}));return n&&await Promise.all(l.filter(c=>c.did).map(c=>s.updateBlockletSpaceGateway({input:{did:t,where:{did:c.did},spaceGateway:{...c}}}))),l}function kt({setLoading:t,refresh:s}={}){var r;const{blocklet:a}=N(),n=(r=a==null?void 0:a.meta)==null?void 0:r.did,[l,c]=x.useState([]),{api:o}=P();return ve(async()=>{try{if(!n){c([]);return}t==null||t(!0);const{spaceGateways:d}=await o.getBlockletSpaceGateways({input:{did:n}}),p=await vt({blockletDid:n,nodeApi:o,spaceGateways:d});c(p??[])}catch(d){console.error(d),v.error(G(d))}finally{t==null||t(!1)}},[n,s]),{spaceGateways:l}}function Ee({deps:t,setLoading:s}={deps:[],setLoading:()=>{}}){var r;const{blocklet:a}=N(),[n,l]=x.useState([]),{api:c}=P(),o=J.debounce(async()=>{try{if(s(!0),!a){l([]);return}const{backups:d}=await c.getBlockletBackups({input:{did:a.meta.did}});l(d??[])}catch(d){console.error(d),v.error(G(d))}finally{s(!1)}},2e3);return ve(async()=>{o()},[(r=a==null?void 0:a.meta)==null?void 0:r.did].concat(t)),{backups:n}}function It({appDid:t}){const{backups:s}=Ee(),[a,n]=x.useState({message:"",progress:0,completed:!1}),l=P(),{ws:{useSubscription:c}}=l;return c(K.BlockletEvents.backupProgress,o=>{t===(o==null?void 0:o.appDid)&&n(()=>({...o}))},[t]),x.useEffect(()=>{var o;if(s!=null&&s.length&&J.isNull((o=s[0])==null?void 0:o.status)){const[r]=s;n(()=>({message:r.message,progress:r.progress,completed:r.progress>=100}))}},[s]),a}const Ue=x.createContext({}),{Provider:Dt,Consumer:Rs}=Ue;function pe({children:t}){var C;const{t:s}=O(),{api:a}=P(),{blocklet:n}=N(),[l,c]=x.useState(!1),[o,r]=x.useState(!1),{spaceGateways:d}=kt({refresh:o,setLoading:c}),p=It({appDid:n==null?void 0:n.appDid}),[m,D]=x.useState(!1),S=x.useMemo(()=>lt(n==null?void 0:n.environments),[n,o,m]),[g,A]=x.useState(!1),{backups:k}=Ee({deps:[p],setLoading:A}),[H,I]=x.useState(d==null?void 0:d.find(i=>i.endpoint===S)),E=(C=n==null?void 0:n.settings)==null?void 0:C.autoBackup,u=()=>{r(i=>!i)},F=()=>{D(i=>!i)},U=async i=>{await a.updateAutoBackup({input:{did:n.meta.did,autoBackup:i}})},R=async(i,b)=>{d.push({...i,loading:!0}),await a.addBlockletSpaceGateway({input:{did:n.meta.did,spaceGateway:i}}),S!==b&&await a.configBlocklet({input:{did:[n.meta.did],configs:[{key:K.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:b}]}}),u(),I(i)},B=async i=>{i&&(i.endpoint===S&&(await a.configBlocklet({input:{did:[n.meta.did],configs:[{key:K.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:""}]}}),E!=null&&E.enabled&&await U({enabled:!1})),await a.deleteBlockletSpaceGateway({input:{did:n.meta.did,spaceGatewayDid:i==null?void 0:i.did}}),u(),I(i))},T=async i=>{await a.updateBlockletSpaceGateway({input:{did:n.meta.did,where:{did:i.did},spaceGateway:i}}),S!==i.endpoint&&await a.configBlocklet({input:{did:[n.meta.did],configs:[{key:K.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:i.endpoint}]}}),v.success(s("storage.spaces.connectedWithName",{name:(i==null?void 0:i.name)??"DID Spaces"})),u()},h=i=>(i==null?void 0:i.endpoint)===S;return e.jsx(Dt,{value:{spaceGateways:d,selectedSpaceGateway:H,addSpaceGateway:R,deleteSpaceGateway:B,updateSpaceGateway:T,refreshSpaceGateways:u,spaceGatewaysLoading:l,spaceGatewayIsSelected:h,updateAutoBackup:U,backupEndpoint:S,backupProgress:p,backups:k,backupsLoading:g,refreshBackupEndpoint:F,autoBackup:E},children:t})}pe.propTypes={children:f.any.isRequired};pe.defaultProps={};function Q(){return x.useContext(Ue)}function ae({...t}){const{blocklet:s}=N(),{info:a}=P(),{t:n,locale:l}=O(),[c,o]=x.useState(""),[r,d]=x.useState(!1),[p,m]=x.useState(!1),[D,S]=x.useState(""),g=Ie({blocklet:s}),A=Ke(a),{spaceGateways:k,addSpaceGateway:H}=Q(),[I,E]=x.useState({open:!1,action:"connect-to-did-spaces",checkTimeout:1e3*300,checkFn:le.create({baseURL:V(window.location.origin,Ve())}).get,messages:{title:n("storage.spaces.provideNFT.title",{appName:g.appName},l),scan:n("storage.spaces.provideNFT.scan",{appName:g.appName},l),confirm:"",success:e.jsx(y,{gutterBottom:!0,children:n("storage.spaces.provideNFT.success")})},onClose:()=>{E(h=>({...h,open:!1}))}}),[u,F]=x.useState({open:!1,action:"one-click-authorization",checkTimeout:1e3*300,messages:{title:n("storage.spaces.authorize.title",{appName:g.appName},l),scan:n("storage.spaces.authorize.scan",{appName:g.appName},l),confirm:"",success:e.jsx(y,{gutterBottom:!0,children:n("storage.spaces.authorize.success")})},onClose:()=>{F(h=>({...h,open:!1}))}}),U=async({endpoint:h,name:C,did:i})=>{const b=await Se(h);if(!await Ae(b)){v.error(n("storage.spaces.gateway.add.invalidUrl"));return}if(k.some(W=>W.endpoint===h)){v.error(n("storage.spaces.gateway.add.duplicate",{name:C}));return}const L={name:C,did:i,url:b,endpoint:h};await H(L,h),v.success(n("storage.spaces.connectedWithName",{name:(L==null?void 0:L.name)??"DID Spaces"}))},R=async(h,C)=>{try{if(!J.isEmpty(h.spaceGateway))await U(C(h.spaceGateway));else{const i=C(h.endpoint),b=h.space?C(h.space):{};await U({endpoint:i,did:se(i),name:"DID Space",...b})}F(i=>({...i,open:!1})),o(null),E(i=>({...i,open:!1}))}catch(i){console.error(i),v.error(G(i))}},B=()=>{E(h=>({...h,open:!0,extraParams:{appPid:s.appPid,appName:g.appName,appDescription:g.appDescription,scopes:g.scopes,appUrl:g.appUrl,referrer:g.referrer,nodeDid:a.did}}))},T=async()=>{try{d(!0);const h=await Se(c),C=dt(h),i=new URL(h).searchParams.get("spaceDid");if(!await Ae(C))throw new Error(n("storage.spaces.gateway.add.invalidUrl"));F(b=>({...b,open:!0,prefix:V(C,"space/api/did"),baseUrl:new URL(C).origin,checkFn:le.create({baseURL:V(C,"space")}).get,extraParams:{appDid:g.appDid,appName:g.appName,appDescription:g.appDescription,scopes:g.scopes,appUrl:g.appUrl,referrer:g.referrer,nodeDid:a.did,spaceDid:i}})),m(!1)}catch(h){const C=`${n("storage.spaces.gateway.add.failed",l)}: ${G(h)}`;S(C)}finally{d(!1)}};return e.jsxs(j,{children:[e.jsx(ye,{color:"primary",style:{textTransform:"none !important",fontSize:"1rem"},size:"small",onClick:B,menu:[e.jsx(ye.Item,{sx:{textTransform:"none"},onClick:()=>m(!0),size:"small",...t,children:n("storage.spaces.connect.useSpaceGateway")},"1")],children:e.jsx(y,{sx:{fontWeight:"bold",textTransform:"none"},children:n("storage.spaces.connect.useWallet")})}),e.jsx(de,{forceConnected:!1,saveConnect:!1,prefix:I.prefix,open:I.open,popup:!0,action:I.action,webWalletUrl:A,baseUrl:I.baseUrl,checkFn:I.checkFn,onSuccess:R,onClose:I.onClose,checkTimeout:I.checkTimeout,extraParams:I.extraParams,messages:I.messages,locale:l}),e.jsx(de,{forceConnected:!1,saveConnect:!1,prefix:u.prefix,open:u.open,popup:!0,action:u.action,baseUrl:u.baseUrl,checkFn:u.checkFn,onSuccess:R,onClose:u.onClose,checkTimeout:u.checkTimeout,extraParams:u.extraParams,messages:u.messages,locale:l}),e.jsxs(Ge,{title:n("storage.spaces.gateway.add.title"),fullWidth:!0,maxWidth:"md",open:p,onClose:()=>m(!1),PaperProps:{style:{minHeight:"auto"}},actions:e.jsxs(e.Fragment,{children:[e.jsx(te,{onClick:h=>{h.stopPropagation(),m(!1)},color:"inherit",children:n("common.cancel")}),e.jsxs(te,{onClick:T,color:"primary",disabled:r||!c,variant:"contained",autoFocus:!0,children:[r&&e.jsx(Z,{size:16}),n("common.confirm")]})]}),children:[e.jsx("div",{style:{paddingTop:12,overflowY:"hidden"},children:e.jsx(mt,{component:"div",children:e.jsx(y,{component:"div",children:e.jsx(ft,{label:n("storage.spaces.gateway.add.label"),autoComplete:"off",variant:"outlined",name:"url",fullWidth:!0,value:c,onChange:h=>{S(null),o(h.target.value)},disabled:r,onKeyPress:async h=>{h.key==="Enter"&&await T()},autoFocus:!0})})})}),!!D&&e.jsx(xt,{severity:"error",style:{width:"100%"},children:D})]})]})}ae.propTypes={};ae.defaultProps={};function be({...t}){const{t:s}=x.useContext(Xe),{blocklet:a,loadingDiskInfo:n,actions:l}=N();if(x.useEffect(()=>{l.refreshBlocklet({showError:!1,attachDiskInfo:!0})},[]),a.diskInfo){const c=(d,p,m)=>e.jsxs(y,{children:[d," ",e.jsx("strong",{children:p?We(p):"empty"})]}),o=a.environments.reduce((d,p)=>(d[p.key]=p.value,d),{}),r=[{key:"appDir",name:s("blocklet.diskInfo.appDir"),value:c(o.BLOCKLET_APP_DIR,a.diskInfo.app)},{key:"dataDir",name:s("blocklet.diskInfo.dataDir"),value:c(o.BLOCKLET_DATA_DIR,a.diskInfo.data)},{key:"logDir",name:s("blocklet.diskInfo.logDir"),value:c(o.BLOCKLET_LOG_DIR,a.diskInfo.log)},{key:"cacheDir",name:s("blocklet.diskInfo.cacheDir"),value:c(o.BLOCKLET_CACHE_DIR,a.diskInfo.cache)}];return e.jsx(Et,{component:"div",...t,children:r.map(d=>e.jsx(gt,{valueComponent:"div",nameWidth:120,name:d.name,children:d.value},d.key))})}return n?e.jsx(Z,{}):e.jsx(y,{children:s("blocklet.diskInfo.empty")})}const Et=ke(y)``;var we=function(s){return e.jsxs("svg",{...s,children:[e.jsxs("g",{filter:"url(#a)",children:[e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97Z",fill:"#DDD"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m49.192 6.222-40.97 40.97A11 11 0 0 0 5 54.971V240c0 6.075 4.925 11 11 11h196c6.075 0 11-4.925 11-11V14c0-6.075-4.925-11-11-11H56.97a11 11 0 0 0-7.778 3.222Zm-.707-.707A12 12 0 0 1 56.971 2H212c6.627 0 12 5.373 12 12v226c0 6.627-5.373 12-12 12H16c-6.627 0-12-5.373-12-12V54.97a12 12 0 0 1 3.515-8.485l40.97-40.97Z",fill:"#000",fillOpacity:".08"}),e.jsx("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"4",y:"2",width:"220",height:"250",children:e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97Z",fill:"#D9D9D9"})}),e.jsxs("g",{mask:"url(#b)",children:[e.jsx("path",{opacity:".5",fill:"url(#c)",d:"M4 2h220v128H4z"}),e.jsx("path",{opacity:".1",fill:"url(#d)",d:"M4 130h220v122H4z"}),e.jsx("path",{d:"M33.045 169h-3.767v-11.636h3.887c1.14 0 2.12.233 2.937.698a4.61 4.61 0 0 1 1.881 1.995c.44.863.659 1.899.659 3.108 0 1.212-.222 2.254-.665 3.125a4.668 4.668 0 0 1-1.909 2.011c-.833.466-1.84.699-3.023.699Zm-2.01-1.534h1.914c.886 0 1.623-.167 2.21-.5a3.152 3.152 0 0 0 1.318-1.46c.292-.64.438-1.421.438-2.341 0-.913-.146-1.688-.438-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568Zm11.546-10.102V169h-1.756v-11.636h1.756ZM48.905 169h-3.767v-11.636h3.886c1.14 0 2.12.233 2.938.698a4.609 4.609 0 0 1 1.88 1.995c.44.863.66 1.899.66 3.108 0 1.212-.222 2.254-.665 3.125a4.667 4.667 0 0 1-1.91 2.011c-.833.466-1.84.699-3.022.699Zm-2.011-1.534h1.914c.887 0 1.623-.167 2.21-.5a3.151 3.151 0 0 0 1.319-1.46c.291-.64.437-1.421.437-2.341 0-.913-.146-1.688-.437-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568Zm20.372-7.046a1.662 1.662 0 0 0-.75-1.25c-.44-.299-.993-.448-1.66-.448-.477 0-.89.075-1.238.227a1.91 1.91 0 0 0-.813.613c-.189.258-.284.552-.284.881 0 .277.065.515.194.716.132.201.304.369.516.506.216.132.447.244.694.335.246.087.483.159.71.216l1.136.295c.371.091.752.214 1.142.37.39.155.752.36 1.086.613.333.254.602.568.806.944.209.374.313.823.313 1.346 0 .659-.17 1.244-.511 1.756-.338.511-.828.915-1.472 1.21-.64.295-1.415.443-2.324.443-.871 0-1.625-.138-2.261-.415-.637-.276-1.135-.668-1.495-1.176-.36-.511-.558-1.117-.596-1.818h1.761c.034.421.17.771.41 1.051.242.277.55.483.925.62.38.132.794.198 1.245.198.496 0 .937-.077 1.324-.233.39-.159.697-.378.92-.659a1.56 1.56 0 0 0 .335-.994c0-.345-.098-.627-.295-.847a2.191 2.191 0 0 0-.79-.545 7.725 7.725 0 0 0-1.12-.381l-1.374-.375c-.932-.253-1.67-.627-2.216-1.119-.542-.492-.813-1.144-.813-1.955 0-.67.182-1.255.546-1.755.363-.5.856-.888 1.477-1.165.621-.28 1.322-.42 2.102-.42.788 0 1.483.138 2.085.414.607.277 1.084.658 1.432 1.142.349.481.53 1.034.546 1.659h-1.693Zm3.813 11.853v-12h1.66v1.415h.142c.098-.182.24-.393.426-.631.185-.239.443-.447.772-.625.33-.182.766-.273 1.307-.273.705 0 1.334.178 1.887.534.553.356.987.869 1.3 1.54.319.67.478 1.477.478 2.42 0 .944-.157 1.752-.472 2.427-.314.67-.746 1.187-1.295 1.551-.55.36-1.176.539-1.88.539-.53 0-.965-.089-1.302-.267a2.457 2.457 0 0 1-.784-.625 4.667 4.667 0 0 1-.437-.636h-.103v4.631H71.08Zm1.665-7.637c0 .614.09 1.152.267 1.614.178.462.436.824.773 1.085.337.258.75.387 1.239.387.507 0 .931-.135 1.273-.404.34-.273.598-.642.772-1.108.178-.466.267-.99.267-1.574 0-.575-.087-1.092-.261-1.551-.17-.458-.428-.82-.773-1.085-.34-.265-.767-.398-1.278-.398-.493 0-.91.127-1.25.381-.337.254-.593.608-.767 1.062-.175.455-.262.985-.262 1.591Zm10.75 4.557a3.557 3.557 0 0 1-1.5-.307 2.523 2.523 0 0 1-1.062-.903c-.258-.394-.386-.877-.386-1.449 0-.492.094-.898.283-1.216.19-.318.446-.57.768-.756a4.036 4.036 0 0 1 1.08-.42c.397-.095.802-.167 1.215-.216l1.273-.148c.325-.041.562-.108.71-.198.148-.091.222-.239.222-.444v-.039c0-.497-.14-.881-.42-1.154-.277-.273-.69-.409-1.24-.409-.572 0-1.022.127-1.352.381-.325.25-.55.528-.676.835l-1.597-.364c.19-.53.466-.958.83-1.284.368-.329.79-.568 1.267-.716.477-.151.98-.227 1.506-.227.348 0 .718.042 1.108.125.394.08.761.227 1.102.443.345.216.627.525.847.926.22.398.33.915.33 1.552V169h-1.66v-1.193h-.068c-.11.22-.275.435-.495.648-.22.212-.501.388-.846.528s-.758.21-1.239.21Zm.37-1.363c.47 0 .87-.093 1.204-.279.337-.185.593-.428.767-.727.178-.303.267-.627.267-.972v-1.125c-.06.061-.178.118-.352.171-.17.049-.365.093-.585.13-.22.034-.434.067-.642.097l-.523.068c-.33.042-.63.112-.903.21a1.553 1.553 0 0 0-.648.427c-.16.181-.239.424-.239.727 0 .42.156.738.466.954.31.212.707.319 1.188.319Zm9.876 1.346c-.845 0-1.572-.191-2.182-.574a3.796 3.796 0 0 1-1.398-1.596c-.325-.678-.488-1.455-.488-2.33 0-.886.166-1.668.5-2.346a3.832 3.832 0 0 1 1.409-1.597c.606-.383 1.32-.574 2.142-.574.663 0 1.254.123 1.773.369.519.243.937.584 1.255 1.023.322.44.514.953.574 1.54h-1.653c-.091-.409-.3-.761-.625-1.057-.322-.295-.754-.443-1.296-.443a2.11 2.11 0 0 0-1.244.375c-.352.246-.627.598-.824 1.057-.197.454-.295.992-.295 1.613 0 .637.096 1.186.29 1.648.193.462.466.82.818 1.074.356.254.774.381 1.255.381.322 0 .614-.059.875-.177.266-.121.487-.293.665-.517.182-.223.309-.492.38-.806h1.654a3.211 3.211 0 0 1-.55 1.511 3.165 3.165 0 0 1-1.234 1.045c-.511.254-1.111.381-1.8.381Zm9.163 0c-.859 0-1.6-.184-2.221-.551a3.732 3.732 0 0 1-1.432-1.563c-.333-.674-.5-1.464-.5-2.369 0-.894.167-1.682.5-2.363a3.887 3.887 0 0 1 1.409-1.597c.606-.383 1.314-.574 2.125-.574.493 0 .97.082 1.432.244.462.163.877.419 1.244.767.368.349.657.802.87 1.358.212.553.318 1.226.318 2.017v.603H99.71v-1.273h5.273c0-.447-.091-.843-.273-1.187a2.052 2.052 0 0 0-.767-.824c-.326-.201-.708-.302-1.148-.302a2.22 2.22 0 0 0-1.25.353 2.364 2.364 0 0 0-.818.909 2.626 2.626 0 0 0-.284 1.21v.994c0 .584.102 1.08.307 1.489.208.409.498.722.869.938.372.212.805.318 1.301.318a2.7 2.7 0 0 0 .881-.137c.265-.094.494-.234.688-.42.193-.186.341-.415.443-.688l1.608.29c-.129.474-.36.888-.693 1.244-.33.353-.745.627-1.245.824-.496.194-1.062.29-1.699.29Z",fill:"#fff"}),e.jsx("path",{d:"M117.604 47.263 121.523 45h14.267v41.862h-14.267l-15.335-8.854V53.854l1.818-1.05 3.2 1.848-1.818 1.05V76.16l12.993 7.502h10.209V48.2h-10.209l-1.577.91-3.2-1.847Z",fill:"url(#e)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M119.402 76.16V55.701L106.409 48.2H96.2v35.462h10.209l1.582-.913 3.2 1.847-3.924 2.266H93V45h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047Z",fill:"url(#f)"}),e.jsxs("g",{clipPath:"url(#g)",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff",children:[e.jsx("path",{d:"m50.928 216.089 1.034 2.852h-2.503l1.028-2.842a4.95 4.95 0 0 0 .107-.338 7.17 7.17 0 0 0 .111-.409c.075.297.15.542.223.737Zm2.28 5.591h.796l-2.775-7.352h-1.043l-2.774 7.352h.795a.338.338 0 0 0 .223-.077.425.425 0 0 0 .127-.179l.615-1.705h3.07l.617 1.705a.399.399 0 0 0 .126.184.339.339 0 0 0 .223.072Zm4.823-.963a2.023 2.023 0 0 1-.67.098h-1.455v-2.453h1.456c.5 0 .871.106 1.11.318.24.208.36.495.36.86 0 .184-.028.355-.083.512a1.005 1.005 0 0 1-.262.399 1.2 1.2 0 0 1-.456.266Zm-2.125-3.128v-2.406h1.237c.498 0 .865.095 1.101.286.236.192.355.497.355.917 0 .369-.125.662-.374.881-.246.215-.623.322-1.13.322h-1.189Zm2.358-3.128a4.106 4.106 0 0 0-1.12-.133h-2.27v7.352h2.507c.391 0 .74-.051 1.048-.154.307-.102.566-.247.776-.435.21-.188.37-.409.48-.665.11-.26.165-.547.165-.861 0-.904-.506-1.462-1.518-1.674.22-.075.41-.169.572-.281a1.79 1.79 0 0 0 .403-.379c.106-.144.186-.297.237-.461.052-.164.078-.335.078-.512a2.1 2.1 0 0 0-.146-.804 1.49 1.49 0 0 0-.441-.609 2.073 2.073 0 0 0-.771-.384Zm7.535.778h-2.212v6.441h-1.028v-6.441h-2.222v-.911H65.8v.911Zm2.439.564h-1.13v1.193h1.13v-1.193Zm-1.13 2.983h1.13v1.193h-1.13v-1.193Z",fillOpacity:".8"}),e.jsx("path",{d:"M28.247 221.771V214h3.894c.99.072 1.765.944 1.765 1.998v3.77c0 1.106-.85 2.003-1.897 2.003h-3.762ZM36.355 214h-1.011v7.783h1.01V214Zm-7.097 6.704v-5.642h2.751c.49 0 .886.419.886.936v3.77c0 .517-.396.936-.886.936h-2.75ZM37.775 214v7.771h3.762c1.047 0 1.897-.897 1.897-2.003v-3.77c0-1.054-.774-1.926-1.765-1.998h-3.894Zm6.946 1.803h1.13v1.193h-1.13v-1.193Zm1.13 2.983h-1.13v1.193h1.13v-1.193Zm-7.065-3.724v5.642h2.75c.49 0 .887-.419.887-.936v-3.77c0-.517-.397-.936-.886-.936h-2.751Z"})]}),e.jsx("circle",{cx:"191.32",cy:"218",r:"10",fill:"url(#h)"}),e.jsx("path",{d:"m192.064 213.333.976-.564h3.554v10.427h-3.286a1 1 0 0 1-.5-.134l-3.588-2.071v-6.016l.453-.262.797.46-.453.262v5.096l3.237 1.868h2.543v-8.833h-2.543l-.393.227-.797-.46Z",fill:"#fff"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M192.512 220.531v-5.096l-3.237-1.869h-2.543v8.833h2.543l.394-.227.797.46-.977.564h-3.554v-10.427h3.554l3.82 2.206v6.016l-.452.261-.797-.461.452-.26Z",fill:"#fff"})]})]}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"d",x1:"114",y1:"130",x2:"114",y2:"252",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#101010"}),e.jsx("stop",{offset:"1",stopColor:"#272727"})]}),e.jsxs("linearGradient",{id:"e",x1:"120.989",y1:"45",x2:"120.989",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#fff",stopOpacity:".4"}),e.jsx("stop",{offset:"1",stopColor:"#fff"})]}),e.jsxs("linearGradient",{id:"f",x1:"107.801",y1:"45",x2:"107.801",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#fff"}),e.jsx("stop",{offset:"1",stopColor:"#fff",stopOpacity:".4"})]}),e.jsxs("radialGradient",{id:"h",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(17 -8.76924 6.97565 13.52294 183.166 221)",children:[e.jsx("stop",{stopColor:"#016BED"}),e.jsx("stop",{offset:".699",stopColor:"#4498FB"}),e.jsx("stop",{offset:"1",stopColor:"#9DFFE8"})]}),e.jsx("clipPath",{id:"g",children:e.jsx("path",{fill:"#fff",transform:"translate(28 214)",d:"M0 0h40.32v8H0z"})}),e.jsx("pattern",{id:"c",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:e.jsx("use",{xlinkHref:"#i",transform:"scale(.00455 .00781)"})}),e.jsxs("filter",{id:"a",x:"0",y:"0",width:"228",height:"258",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[e.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e.jsx("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.jsx("feOffset",{dy:"2"}),e.jsx("feGaussianBlur",{stdDeviation:"2"}),e.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),e.jsx("feColorMatrix",{values:"0 0 0 0 0.0631944 0 0 0 0 0.242785 0 0 0 0 0.403472 0 0 0 0.2 0"}),e.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1410_22507"}),e.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1410_22507",result:"shape"})]}),e.jsx("image",{id:"i",width:"220",height:"128",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACABAMAAACSOBo+AAAAG1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACUUeIgAAAACXRSTlMSFhkOHAsfCCOMH5MiAAAjjElEQVRo3hTQO3sjRRBG4a+qWzJhVfdIJqzuGXsJe2bkJe0e2UA4shdIJS2X1LBcUpbL/wae5yQnfVHGjp2+V08yKR7OwBDYte8pi5Aq9DObSBouqN9cidZyusonzWtGJO13phLebEn6xKEnlYyXe5hnySc53Ym9Abn7crTse8r7BMeIB8yBOVZK0trMjxT5S/cgc9G63BQqZoF3xSYZYeRk2hoIvEBFA7XMtaaF8TdY1GjiDDqgEswRDlWnRtmYzl5zRUq3sx3I+JL7sBJKXchDGJY9D+SfHAIoA+TuHCyYYYFjkhNB8tO5hhju0ANjdCITLx4/JDL+yyP0ErZR+m3M322bY8OKHzoOcAXLQMBHiIh+X59pv6udCJ7MAV9HARPtTEuFSdAzNVn7uPmkk3TpBGHb8DJZ3p36ScsuJVFQP6CUBXimN3BABZJUiEwBOMsHUisZiXU8k3bVSTrPcHsKEEg8gV/vP7U26vRWhl2UnfEbX3VlVbRHgSwmcy2tWTjsxmIb4YjgbAkmpyEOINs1gCtSC4YsjwnY9l1MJYRz1NMk5NAC3MffnLwiHnNH7IoyER5VEI6S4Um++uKyho0BwmD+1rA90yarpO4ZpjLgs8+BTUfU9w+gkwEi6ftxqyB9Wt6IBstE0E8kxJLeKaVhNA/uEwIslv1JmRwcSzAo+URPCF5M8AGzEF8yG+QVBFl53FqhfYqd7/PM6AmJouW4cVge9pZuMJga2NQH918Sp4VIXddVCKizUTFu3CbUMxyxgOUoSpidf+JEuRy/g3EyyCTz0yw2KRGtDs4fE8btEktCKZzL3J6mFoLZdlcJKLW33guKRC44aAhkhSWKMOT5uF2kd283asHcBt5C15MVUJUPpX5RiAcSZ0Ll+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gh6FGiCAGzqFk6on9pQdSAQzkctDTtXGbDih5iRPVIk9TwCJGwP3tpATkHsNwloUilnNMFce7twgDgrgWhsE8jWW+EBLlTDMn9pmtJOefTJc6Cxld039TN4XiwL4pMtU+8tXJ4g/LghG5APdF7/e3FSi4v8vnEBiIEm+5LlZtsk2LbbbY5hN9JkkJkd5BjQFPoUcwjJdTm0mx0024NmOvVgxASvU9TonFxUqG8cUTy3m5s3i7BqLbFkKcfxLQYhAXfjam0yFFd3PZE9wlXWfHYKlg2cFlTcnwRH6z8DpSfQHidMhElmCMb07li9ceHQHFknk/98f4KJRLpX6xQEXVAnJxlr8Aw6/qb0wu9SNolstScB0izxmMC5DiytBJd9Rcm3RGf42aiddmUTM4d4dgdjiT+vMPX0/RzfZdLoZ4aQqPzhx9plNI3QyvsMZHn2j2wOECoTtkfJt89O+eYUnXB/gFxHxPmOeL9ogAAAABJRU5ErkJggg=="})]})]})};we.defaultProps={width:"228",height:"258",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function Re(){const{t}=O();return e.jsxs(j,{children:[e.jsxs(j,{minHeight:"40vh",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignContent:"center",children:[e.jsx(we,{style:{width:250,height:250}}),e.jsx(y,{marginTop:"24px",marginBottom:"24px",children:t("storage.spaces.connect.provider")}),e.jsx(ae,{})]}),e.jsx(y,{fontSize:"1.2rem",fontWeight:"bold",mb:2,children:t("common.dataStorage")}),e.jsx(be,{})]})}Re.propTypes={};var ue={},Ut=oe;Object.defineProperty(ue,"__esModule",{value:!0});var Te=ue.default=void 0,bt=Ut(ne()),wt=e;Te=ue.default=(0,bt.default)((0,wt.jsx)("path",{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"}),"ArrowOutward");var he={},Rt=oe;Object.defineProperty(he,"__esModule",{value:!0});var Oe=he.default=void 0,Tt=Rt(ne()),Ot=e;Oe=he.default=(0,Tt.default)((0,Ot.jsx)("path",{d:"M14.69 2.21 4.33 11.49c-.64.58-.28 1.65.58 1.73L13 14l-4.85 6.76c-.22.31-.19.74.08 1.01.3.3.77.31 1.08.02l10.36-9.28c.64-.58.28-1.65-.58-1.73L11 10l4.85-6.76c.22-.31.19-.74-.08-1.01-.3-.3-.77-.31-1.08-.02"}),"ElectricBoltOutlined");var me={},Ft=oe;Object.defineProperty(me,"__esModule",{value:!0});var Fe=me.default=void 0,Lt=Ft(ne()),Mt=e;Fe=me.default=(0,Lt.default)((0,Mt.jsx)("path",{d:"m9.17 6 2 2H20v10H4V6zM10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"}),"FolderOutlined");function fe({spaceGateway:t,onDelete:s}){const{t:a}=O(),[n,l]=x.useState(!1),[c,o]=x.useState(!1),r=(p,m)=>{p==null||p.preventDefault(),p==null||p.stopPropagation(),l(m)},d=async p=>{try{p==null||p.stopPropagation(),o(!0),await s(t),l(!1)}catch(m){console.error(m),v.error(`${a("storage.space.gateway.delete.failed")}: ${G(m)}`)}finally{o(!1)}};return e.jsxs(e.Fragment,{children:[e.jsxs(_,{color:"red",onClick:p=>r(p,!0),children:[e.jsx($,{style:{minWidth:24,color:"red"},children:e.jsx(St,{fontSize:"small"})}),e.jsx(ee,{style:{color:"red"},children:a("common.delete")})]}),e.jsx(Ye,{title:e.jsx(y,{variant:"h6",children:a("common.delConfirmDescription",{data:`${t==null?void 0:t.name}`})}),open:n,confirmButton:{text:a("common.confirm"),props:{variant:"contained",color:"error",loading:c}},cancelButton:{text:a("common.cancel"),props:{variant:"contained",color:"primary"},loading:c},onConfirm:d,onCancel:p=>r(p,!1)})]})}fe.propTypes={onDelete:f.func,spaceGateway:f.shape({name:f.string.isRequired,url:f.string.isRequired,protected:f.bool}).isRequired};fe.defaultProps={onDelete:()=>{}};function xe({spaceGateway:t,connected:s,onDelete:a,onConnect:n,enableSwitchToSpace:l,backupInProgress:c,...o}){const[r,d]=x.useState(null),{t:p}=O(),[m,D]=x.useState(!1),S=(A,k)=>{A.stopPropagation(),A.preventDefault(),d(k&&A.currentTarget)},g=async A=>{try{D(!0),S(A,!1),await n(t)}catch(k){console.error(k),v.error(k.message)}finally{D(!1)}};return e.jsxs(e.Fragment,{children:[e.jsx(qe,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions",onClick:A=>S(A,!0),size:"small",...o,children:m||t!=null&&t.loading?e.jsx(Z,{size:"24px"}):e.jsx(yt,{})}),e.jsxs(_e,{id:"simple-menu",anchorEl:r,keepMounted:!0,open:!!r,onClose:A=>S(A,!1),children:[e.jsxs(_,{onClick:A=>{S(A,!1),window.open(t.endpoint?pt(t.endpoint):t.url)},children:[e.jsx($,{style:{minWidth:24},children:e.jsx(Te,{fontSize:"small"})}),e.jsx(ee,{children:p("common.open")})]}),e.jsxs(_,{onClick:A=>{S(A,!1),window.open(ut(t.endpoint))},children:[e.jsx($,{style:{minWidth:24},children:e.jsx(Fe,{fontSize:"small"})}),e.jsx(ee,{children:p("storage.spaces.strategy.viewBackupFiles")})]}),!s&&l&&e.jsxs(_,{onClick:g,children:[e.jsx($,{style:{minWidth:24},children:e.jsx(Oe,{fontSize:"small"})}),e.jsx(ee,{children:p("storage.spaces.connect.switchToSpace")})]}),!c&&e.jsx(fe,{spaceGateway:t,onDelete:a})]})]})}xe.propTypes={spaceGateway:f.shape({name:f.string.isRequired,url:f.string.isRequired,protected:f.bool,endpoint:f.string.isRequired,loading:f.bool}).isRequired,connected:f.bool.isRequired,enableSwitchToSpace:f.bool,onDelete:f.func,onConnect:f.func,backupInProgress:f.bool};xe.defaultProps={onDelete:()=>{},onConnect:()=>{},enableSwitchToSpace:!0,backupInProgress:!1};var Le=function(s){return e.jsx("svg",{...s,children:e.jsx("circle",{cx:"4",cy:"4",r:"4",fill:"#25C99B"})})};Le.defaultProps={width:"8",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var Me=function(s){return e.jsx("svg",{...s,children:e.jsx("circle",{cx:"4",cy:"4",r:"4",fill:"#F16E6E"})})};Me.defaultProps={width:"8",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ge({spaceGateway:t,connected:s,onDelete:a,onBackupNow:n,...l}){const c=$e(w=>w.breakpoints.down("md")),{t:o,locale:r}=O(),{blocklet:d}=N(),{api:p,info:{did:m}}=P(),{appDid:D,appName:S,appDescription:g,scopes:A,appUrl:k,referrer:H}=Ie({blocklet:d}),{updateSpaceGateway:I,backupEndpoint:E,backupProgress:u,refreshBackupEndpoint:F}=Q(),[U,R]=x.useState(!1),[B,T]=x.useState({open:!1,action:"one-click-authorization",checkTimeout:1e3*300,messages:{title:o("storage.spaces.authorize.title",{appName:S},r),scan:o("storage.spaces.authorize.scan",{appName:S},r),confirm:"",success:e.jsx(y,{gutterBottom:!0,children:o("storage.spaces.authorize.success")})},onClose:()=>{T(w=>({...w,open:!1}))}}),{data:h,loading:C}=et(async()=>s?Ce(E):!0,{refreshDeps:[s,E,B==null?void 0:B.open,U]}),i=s&&h,b=s&&!U&&h&&!(t!=null&&t.loading),X=s&&U&&h,L=s&&!h&&!C&&!U,W=async()=>{if(await Ce(t==null?void 0:t.endpoint)){await p.configBlocklet({input:{did:[d.meta.did],configs:[{key:K.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:t.endpoint}]}}),F(),v.success(o("storage.spaces.connect.switchToSpaceSucceeded",{name:t.name?`(${t.name})`:""}));return}T(Y=>({...Y,open:!0,prefix:V(t.url,"space/api/did"),baseUrl:new URL(t.url).origin,checkFn:le.create({baseURL:V(t.url,"space")}).get,extraParams:{appDid:D,appName:S,appDescription:g,scopes:A,appUrl:k,referrer:H,nodeDid:m,spaceDid:t.did}}))},Je=async(w,Y)=>{const ie=Y(w.endpoint),Qe=se(ie),z=w.space?Y(w.space):{};if(t.did&&Qe!==t.did){T(re=>({...re,open:!1})),v.error(o("storage.spaces.gateway.switch.failedForMismatchSpace",{name:z!=null&&z.name?z.name:""}));return}const He={...t,name:z.name??"DID Space",did:z.did??se(ie),endpoint:ie};await I(He),T(re=>({...re,open:!1}))},Ze=async()=>{try{if(U)return;R(!0),await n()}catch(w){console.error(w),v.error(w.message)}finally{R(!0)}};return x.useEffect(()=>{u!=null&&u.completed?((u==null?void 0:u.progress)===100&&v.success(o("storage.spaces.backupSuccessfully")),R(!1),u.progress=0,u.message=""):u.progress&&R(!0)},[u]),e.jsxs(Nt,{sx:{backgroundColor:s?"#F0FDFF":"inherit","&:hover":{backgroundColor:s?"#F0FDFF":"#FBFBFB"},borderRadius:"8px"},display:"flex",flexDirection:"column",padding:"4px 20px 12px",...l,children:[e.jsxs(j,{display:"flex",alignItems:"center",children:[e.jsxs(j,{flex:1,children:[i&&e.jsxs(y,{color:"primary",fontSize:14,children:[e.jsx(Le,{style:{marginRight:"8px"}}),o("storage.spaces.connected.tag")]}),L&&e.jsxs(y,{color:"error",fontSize:14,children:[e.jsx(Me,{style:{marginRight:"8px"}}),o("storage.spaces.disconnected.tag")]})]}),e.jsx(xe,{sx:{padding:"4px"},spaceGateway:t,connected:s,onDelete:a,onConnect:W,enableSwitchToSpace:(u==null?void 0:u.completed)||J.isEmpty(u==null?void 0:u.message),backupInProgress:X})]}),e.jsxs(j,{display:"flex",children:[e.jsxs(j,{display:"flex",flexDirection:"column",flex:"1",minWidth:0,children:[e.jsx(y,{className:"spaces-name",fontSize:"1rem",fontWeight:"bold",children:t.name}),e.jsx(j,{className:"spaces-address",display:X?"none":"flex",color:"#9397A1",marginTop:"4px",children:e.jsx(y,{sx:{display:"inline-flex",alignItems:"center",fontSize:"14px"},color:"#9397A1",children:t.did&&e.jsx(jt,{copyable:!1,size:14,compact:!0,responsive:!1,did:t.did})})}),e.jsxs(j,{className:"spaces-backup",display:"flex",alignItems:"center",marginTop:"8px",flex:1,children:[b&&e.jsxs(j,{className:"backup-strategy",display:"flex",alignItems:"center",minWidth:"72px",children:[e.jsx(te,{variant:"contained",size:"small",onClick:Ze,children:o("storage.spaces.strategy.backupNow")}),At&&e.jsx(De,{name:"enable-auto-backup",title:"coming soon",disabled:!0,labelProps:{label:e.jsx(y,{sx:{marginRight:"8px",fontSize:"16px"},children:e.jsx("span",{children:o("storage.spaces.strategy.autoBackup")})})},style:{marginLeft:"64px"}})]}),X&&e.jsxs(j,{className:"backup-progress",display:"flex",flexDirection:"column",alignItems:"center",marginLeft:c&&"16px",width:"90%",marginRight:"auto",alignSelf:"flex-end",children:[e.jsx(y,{color:"primary",children:u==null?void 0:u.message}),e.jsxs(j,{sx:{display:"flex",alignItems:"center"},width:"100%",children:[e.jsx(j,{sx:{width:"100%",mr:1},children:e.jsx(tt,{color:"primary",variant:"determinate",value:u==null?void 0:u.progress})}),e.jsx(j,{sx:{maxWidth:"100%"},children:e.jsxs(y,{variant:"body2",color:"text.secondary",children:[u==null?void 0:u.progress,"%"]})})]})]}),L&&e.jsx(j,{className:"backup-strategy",display:"flex",alignItems:"center",minWidth:"72px",children:e.jsx(te,{color:"error",variant:"contained",size:"small",onClick:W,children:o("storage.spaces.disconnected.reconnectNow")})})]})]}),e.jsx(rt,{src:ht(t.endpoint),width:"72px",height:"72px"})]}),e.jsx(de,{forceConnected:!1,saveConnect:!1,prefix:B.prefix,open:B.open,popup:!0,action:B.action,baseUrl:B.baseUrl,checkFn:B.checkFn,onSuccess:Je,onClose:B.onClose,checkTimeout:B.checkTimeout,extraParams:B.extraParams,messages:B.messages,locale:r},"get-endpoint"),e.jsx(j,{className:`selected-container ${s?"selected":""}`,children:e.jsx(st,{className:"selected-icon"})})]})}ge.propTypes={spaceGateway:f.shape({did:f.string.isRequired,name:f.string.isRequired,url:f.string.isRequired,endpoint:f.string.isRequired,protected:f.bool,loading:f.bool}).isRequired,connected:f.bool.isRequired,progress:f.any.isRequired,onDelete:f.func,onBackupNow:f.func};ge.defaultProps={onDelete:()=>{},onBackupNow:()=>{}};const Nt=ke(j)`
1
+ import{cs as J,aZ as N,r as x,aQ as P,bX as ve,t as v,ab as K,u as O,j as e,P as f,eY as Ke,c4 as le,c as V,fl as Ve,T as y,B as j,K as de,av as Ge,a3 as te,n as Z,a0 as ke,a2 as Xe,gG as We,Z as ne,$ as oe,aU as _,fk as Ye,aD as qe,aS as _e,a1 as $e,U as et,b_ as tt,cx as st,G as M,bh as q,a as nt,gH as ot,C as at,bH as it}from"./index-DIxJxM78.js";import{S as ye}from"./index-QiNYWFY0.js";import"./api-_ltIr2BU.js";import{u as Ie,P as rt}from"./use-blocklet-info-for-connect-did-spaces-BniHEOwv.js";import{b as ct,h as lt,d as se,e as Se,f as dt,i as Ae,j as pt,k as ut,l as Ce,c as ht}from"./spaces-BirpDOm3.js";import{f as G,D as mt}from"./format-error-Bn7NObKb.js";import{T as ft}from"./TextField-OgHHL_KP.js";import{A as xt}from"./Alert-DPUEB95E.js";import{I as gt}from"./index-DesPWyQa.js";import{W as jt}from"./did-address-43xkXM21.js";import{S as De}from"./switch-control-dGBNspU7.js";import{d as yt}from"./MoreHoriz-ClHVZaho.js";import{d as St}from"./DeleteOutline-BMqkCxEq.js";import{L as $,a as ee}from"./ListItemText-D00e-P7J.js";import{e as At}from"./mode-B2dWMeTO.js";import{T as ce}from"./index-CvPYqGkG.js";import{D as Ct}from"./index-Dg03Eob-.js";import{L as Bt}from"./Link-CPGMRK--.js";import{G as Be}from"./redux-uiwtTAq3.js";import"./ExpandMore-DkoxrM3F.js";import"./ButtonGroup-d0oDm0RO.js";import"./CloseOutlined-DmlGPmzq.js";import"./index-xkcMt7XQ.js";import"./FormControl-BUn4wQGt.js";import"./useFormControl-DqoBF9iH.js";import"./InputLabel-BU0FzAth.js";import"./Select-BzfN1x8W.js";import"./useSlot-CQP4hUUG.js";import"./index-CTfT52DI.js";import"./FormControlLabel-Cn1ZEQIw.js";import"./FilterList-DbTqBTrF.js";import"./useThemeProps-V4iYGCCr.js";import"./toPropertyKey-PLuKRk1e.js";import"./FormGroup-BDqHH6R7.js";import"./index-B29G6Shi.js";import"./LastPage-BRQIhdX7.js";import"./Toolbar-IW4D_zYa.js";import"./index-cz02fWRO.js";import"./Search-CQlVySI6.js";import"./Delete-B2wSgiTE.js";import"./index-BLVcicxZ.js";import"./MoreVert-D7siuKO-.js";async function vt({blockletDid:t,nodeApi:s,spaceGateways:a}){let n=!1;const l=await Promise.all(a.map(async c=>{let{name:o}=c;const r=await ct(c.endpoint);return!J.isEmpty(r)&&r!==o&&(o=r,n=!0),{...c,name:o}}));return n&&await Promise.all(l.filter(c=>c.did).map(c=>s.updateBlockletSpaceGateway({input:{did:t,where:{did:c.did},spaceGateway:{...c}}}))),l}function kt({setLoading:t,refresh:s}={}){var r;const{blocklet:a}=N(),n=(r=a==null?void 0:a.meta)==null?void 0:r.did,[l,c]=x.useState([]),{api:o}=P();return ve(async()=>{try{if(!n){c([]);return}t==null||t(!0);const{spaceGateways:d}=await o.getBlockletSpaceGateways({input:{did:n}}),p=await vt({blockletDid:n,nodeApi:o,spaceGateways:d});c(p??[])}catch(d){console.error(d),v.error(G(d))}finally{t==null||t(!1)}},[n,s]),{spaceGateways:l}}function Ee({deps:t,setLoading:s}={deps:[],setLoading:()=>{}}){var r;const{blocklet:a}=N(),[n,l]=x.useState([]),{api:c}=P(),o=J.debounce(async()=>{try{if(s(!0),!a){l([]);return}const{backups:d}=await c.getBlockletBackups({input:{did:a.meta.did}});l(d??[])}catch(d){console.error(d),v.error(G(d))}finally{s(!1)}},2e3);return ve(async()=>{o()},[(r=a==null?void 0:a.meta)==null?void 0:r.did].concat(t)),{backups:n}}function It({appDid:t}){const{backups:s}=Ee(),[a,n]=x.useState({message:"",progress:0,completed:!1}),l=P(),{ws:{useSubscription:c}}=l;return c(K.BlockletEvents.backupProgress,o=>{t===(o==null?void 0:o.appDid)&&n(()=>({...o}))},[t]),x.useEffect(()=>{var o;if(s!=null&&s.length&&J.isNull((o=s[0])==null?void 0:o.status)){const[r]=s;n(()=>({message:r.message,progress:r.progress,completed:r.progress>=100}))}},[s]),a}const Ue=x.createContext({}),{Provider:Dt,Consumer:Rs}=Ue;function pe({children:t}){var C;const{t:s}=O(),{api:a}=P(),{blocklet:n}=N(),[l,c]=x.useState(!1),[o,r]=x.useState(!1),{spaceGateways:d}=kt({refresh:o,setLoading:c}),p=It({appDid:n==null?void 0:n.appDid}),[m,D]=x.useState(!1),S=x.useMemo(()=>lt(n==null?void 0:n.environments),[n,o,m]),[g,A]=x.useState(!1),{backups:k}=Ee({deps:[p],setLoading:A}),[H,I]=x.useState(d==null?void 0:d.find(i=>i.endpoint===S)),E=(C=n==null?void 0:n.settings)==null?void 0:C.autoBackup,u=()=>{r(i=>!i)},F=()=>{D(i=>!i)},U=async i=>{await a.updateAutoBackup({input:{did:n.meta.did,autoBackup:i}})},R=async(i,b)=>{d.push({...i,loading:!0}),await a.addBlockletSpaceGateway({input:{did:n.meta.did,spaceGateway:i}}),S!==b&&await a.configBlocklet({input:{did:[n.meta.did],configs:[{key:K.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:b}]}}),u(),I(i)},B=async i=>{i&&(i.endpoint===S&&(await a.configBlocklet({input:{did:[n.meta.did],configs:[{key:K.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:""}]}}),E!=null&&E.enabled&&await U({enabled:!1})),await a.deleteBlockletSpaceGateway({input:{did:n.meta.did,spaceGatewayDid:i==null?void 0:i.did}}),u(),I(i))},T=async i=>{await a.updateBlockletSpaceGateway({input:{did:n.meta.did,where:{did:i.did},spaceGateway:i}}),S!==i.endpoint&&await a.configBlocklet({input:{did:[n.meta.did],configs:[{key:K.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:i.endpoint}]}}),v.success(s("storage.spaces.connectedWithName",{name:(i==null?void 0:i.name)??"DID Spaces"})),u()},h=i=>(i==null?void 0:i.endpoint)===S;return e.jsx(Dt,{value:{spaceGateways:d,selectedSpaceGateway:H,addSpaceGateway:R,deleteSpaceGateway:B,updateSpaceGateway:T,refreshSpaceGateways:u,spaceGatewaysLoading:l,spaceGatewayIsSelected:h,updateAutoBackup:U,backupEndpoint:S,backupProgress:p,backups:k,backupsLoading:g,refreshBackupEndpoint:F,autoBackup:E},children:t})}pe.propTypes={children:f.any.isRequired};pe.defaultProps={};function Q(){return x.useContext(Ue)}function ae({...t}){const{blocklet:s}=N(),{info:a}=P(),{t:n,locale:l}=O(),[c,o]=x.useState(""),[r,d]=x.useState(!1),[p,m]=x.useState(!1),[D,S]=x.useState(""),g=Ie({blocklet:s}),A=Ke(a),{spaceGateways:k,addSpaceGateway:H}=Q(),[I,E]=x.useState({open:!1,action:"connect-to-did-spaces",checkTimeout:1e3*300,checkFn:le.create({baseURL:V(window.location.origin,Ve())}).get,messages:{title:n("storage.spaces.provideNFT.title",{appName:g.appName},l),scan:n("storage.spaces.provideNFT.scan",{appName:g.appName},l),confirm:"",success:e.jsx(y,{gutterBottom:!0,children:n("storage.spaces.provideNFT.success")})},onClose:()=>{E(h=>({...h,open:!1}))}}),[u,F]=x.useState({open:!1,action:"one-click-authorization",checkTimeout:1e3*300,messages:{title:n("storage.spaces.authorize.title",{appName:g.appName},l),scan:n("storage.spaces.authorize.scan",{appName:g.appName},l),confirm:"",success:e.jsx(y,{gutterBottom:!0,children:n("storage.spaces.authorize.success")})},onClose:()=>{F(h=>({...h,open:!1}))}}),U=async({endpoint:h,name:C,did:i})=>{const b=await Se(h);if(!await Ae(b)){v.error(n("storage.spaces.gateway.add.invalidUrl"));return}if(k.some(W=>W.endpoint===h)){v.error(n("storage.spaces.gateway.add.duplicate",{name:C}));return}const L={name:C,did:i,url:b,endpoint:h};await H(L,h),v.success(n("storage.spaces.connectedWithName",{name:(L==null?void 0:L.name)??"DID Spaces"}))},R=async(h,C)=>{try{if(!J.isEmpty(h.spaceGateway))await U(C(h.spaceGateway));else{const i=C(h.endpoint),b=h.space?C(h.space):{};await U({endpoint:i,did:se(i),name:"DID Space",...b})}F(i=>({...i,open:!1})),o(null),E(i=>({...i,open:!1}))}catch(i){console.error(i),v.error(G(i))}},B=()=>{E(h=>({...h,open:!0,extraParams:{appPid:s.appPid,appName:g.appName,appDescription:g.appDescription,scopes:g.scopes,appUrl:g.appUrl,referrer:g.referrer,nodeDid:a.did}}))},T=async()=>{try{d(!0);const h=await Se(c),C=dt(h),i=new URL(h).searchParams.get("spaceDid");if(!await Ae(C))throw new Error(n("storage.spaces.gateway.add.invalidUrl"));F(b=>({...b,open:!0,prefix:V(C,"space/api/did"),baseUrl:new URL(C).origin,checkFn:le.create({baseURL:V(C,"space")}).get,extraParams:{appDid:g.appDid,appName:g.appName,appDescription:g.appDescription,scopes:g.scopes,appUrl:g.appUrl,referrer:g.referrer,nodeDid:a.did,spaceDid:i}})),m(!1)}catch(h){const C=`${n("storage.spaces.gateway.add.failed",l)}: ${G(h)}`;S(C)}finally{d(!1)}};return e.jsxs(j,{children:[e.jsx(ye,{color:"primary",style:{textTransform:"none !important",fontSize:"1rem"},size:"small",onClick:B,menu:[e.jsx(ye.Item,{sx:{textTransform:"none"},onClick:()=>m(!0),size:"small",...t,children:n("storage.spaces.connect.useSpaceGateway")},"1")],children:e.jsx(y,{sx:{fontWeight:"bold",textTransform:"none"},children:n("storage.spaces.connect.useWallet")})}),e.jsx(de,{forceConnected:!1,saveConnect:!1,prefix:I.prefix,open:I.open,popup:!0,action:I.action,webWalletUrl:A,baseUrl:I.baseUrl,checkFn:I.checkFn,onSuccess:R,onClose:I.onClose,checkTimeout:I.checkTimeout,extraParams:I.extraParams,messages:I.messages,locale:l}),e.jsx(de,{forceConnected:!1,saveConnect:!1,prefix:u.prefix,open:u.open,popup:!0,action:u.action,baseUrl:u.baseUrl,checkFn:u.checkFn,onSuccess:R,onClose:u.onClose,checkTimeout:u.checkTimeout,extraParams:u.extraParams,messages:u.messages,locale:l}),e.jsxs(Ge,{title:n("storage.spaces.gateway.add.title"),fullWidth:!0,maxWidth:"md",open:p,onClose:()=>m(!1),PaperProps:{style:{minHeight:"auto"}},actions:e.jsxs(e.Fragment,{children:[e.jsx(te,{onClick:h=>{h.stopPropagation(),m(!1)},color:"inherit",children:n("common.cancel")}),e.jsxs(te,{onClick:T,color:"primary",disabled:r||!c,variant:"contained",autoFocus:!0,children:[r&&e.jsx(Z,{size:16}),n("common.confirm")]})]}),children:[e.jsx("div",{style:{paddingTop:12,overflowY:"hidden"},children:e.jsx(mt,{component:"div",children:e.jsx(y,{component:"div",children:e.jsx(ft,{label:n("storage.spaces.gateway.add.label"),autoComplete:"off",variant:"outlined",name:"url",fullWidth:!0,value:c,onChange:h=>{S(null),o(h.target.value)},disabled:r,onKeyPress:async h=>{h.key==="Enter"&&await T()},autoFocus:!0})})})}),!!D&&e.jsx(xt,{severity:"error",style:{width:"100%"},children:D})]})]})}ae.propTypes={};ae.defaultProps={};function be({...t}){const{t:s}=x.useContext(Xe),{blocklet:a,loadingDiskInfo:n,actions:l}=N();if(x.useEffect(()=>{l.refreshBlocklet({showError:!1,attachDiskInfo:!0})},[]),a.diskInfo){const c=(d,p,m)=>e.jsxs(y,{children:[d," ",e.jsx("strong",{children:p?We(p):"empty"})]}),o=a.environments.reduce((d,p)=>(d[p.key]=p.value,d),{}),r=[{key:"appDir",name:s("blocklet.diskInfo.appDir"),value:c(o.BLOCKLET_APP_DIR,a.diskInfo.app)},{key:"dataDir",name:s("blocklet.diskInfo.dataDir"),value:c(o.BLOCKLET_DATA_DIR,a.diskInfo.data)},{key:"logDir",name:s("blocklet.diskInfo.logDir"),value:c(o.BLOCKLET_LOG_DIR,a.diskInfo.log)},{key:"cacheDir",name:s("blocklet.diskInfo.cacheDir"),value:c(o.BLOCKLET_CACHE_DIR,a.diskInfo.cache)}];return e.jsx(Et,{component:"div",...t,children:r.map(d=>e.jsx(gt,{valueComponent:"div",nameWidth:120,name:d.name,children:d.value},d.key))})}return n?e.jsx(Z,{}):e.jsx(y,{children:s("blocklet.diskInfo.empty")})}const Et=ke(y)``;var we=function(s){return e.jsxs("svg",{...s,children:[e.jsxs("g",{filter:"url(#a)",children:[e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97Z",fill:"#DDD"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m49.192 6.222-40.97 40.97A11 11 0 0 0 5 54.971V240c0 6.075 4.925 11 11 11h196c6.075 0 11-4.925 11-11V14c0-6.075-4.925-11-11-11H56.97a11 11 0 0 0-7.778 3.222Zm-.707-.707A12 12 0 0 1 56.971 2H212c6.627 0 12 5.373 12 12v226c0 6.627-5.373 12-12 12H16c-6.627 0-12-5.373-12-12V54.97a12 12 0 0 1 3.515-8.485l40.97-40.97Z",fill:"#000",fillOpacity:".08"}),e.jsx("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"4",y:"2",width:"220",height:"250",children:e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97Z",fill:"#D9D9D9"})}),e.jsxs("g",{mask:"url(#b)",children:[e.jsx("path",{opacity:".5",fill:"url(#c)",d:"M4 2h220v128H4z"}),e.jsx("path",{opacity:".1",fill:"url(#d)",d:"M4 130h220v122H4z"}),e.jsx("path",{d:"M33.045 169h-3.767v-11.636h3.887c1.14 0 2.12.233 2.937.698a4.61 4.61 0 0 1 1.881 1.995c.44.863.659 1.899.659 3.108 0 1.212-.222 2.254-.665 3.125a4.668 4.668 0 0 1-1.909 2.011c-.833.466-1.84.699-3.023.699Zm-2.01-1.534h1.914c.886 0 1.623-.167 2.21-.5a3.152 3.152 0 0 0 1.318-1.46c.292-.64.438-1.421.438-2.341 0-.913-.146-1.688-.438-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568Zm11.546-10.102V169h-1.756v-11.636h1.756ZM48.905 169h-3.767v-11.636h3.886c1.14 0 2.12.233 2.938.698a4.609 4.609 0 0 1 1.88 1.995c.44.863.66 1.899.66 3.108 0 1.212-.222 2.254-.665 3.125a4.667 4.667 0 0 1-1.91 2.011c-.833.466-1.84.699-3.022.699Zm-2.011-1.534h1.914c.887 0 1.623-.167 2.21-.5a3.151 3.151 0 0 0 1.319-1.46c.291-.64.437-1.421.437-2.341 0-.913-.146-1.688-.437-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568Zm20.372-7.046a1.662 1.662 0 0 0-.75-1.25c-.44-.299-.993-.448-1.66-.448-.477 0-.89.075-1.238.227a1.91 1.91 0 0 0-.813.613c-.189.258-.284.552-.284.881 0 .277.065.515.194.716.132.201.304.369.516.506.216.132.447.244.694.335.246.087.483.159.71.216l1.136.295c.371.091.752.214 1.142.37.39.155.752.36 1.086.613.333.254.602.568.806.944.209.374.313.823.313 1.346 0 .659-.17 1.244-.511 1.756-.338.511-.828.915-1.472 1.21-.64.295-1.415.443-2.324.443-.871 0-1.625-.138-2.261-.415-.637-.276-1.135-.668-1.495-1.176-.36-.511-.558-1.117-.596-1.818h1.761c.034.421.17.771.41 1.051.242.277.55.483.925.62.38.132.794.198 1.245.198.496 0 .937-.077 1.324-.233.39-.159.697-.378.92-.659a1.56 1.56 0 0 0 .335-.994c0-.345-.098-.627-.295-.847a2.191 2.191 0 0 0-.79-.545 7.725 7.725 0 0 0-1.12-.381l-1.374-.375c-.932-.253-1.67-.627-2.216-1.119-.542-.492-.813-1.144-.813-1.955 0-.67.182-1.255.546-1.755.363-.5.856-.888 1.477-1.165.621-.28 1.322-.42 2.102-.42.788 0 1.483.138 2.085.414.607.277 1.084.658 1.432 1.142.349.481.53 1.034.546 1.659h-1.693Zm3.813 11.853v-12h1.66v1.415h.142c.098-.182.24-.393.426-.631.185-.239.443-.447.772-.625.33-.182.766-.273 1.307-.273.705 0 1.334.178 1.887.534.553.356.987.869 1.3 1.54.319.67.478 1.477.478 2.42 0 .944-.157 1.752-.472 2.427-.314.67-.746 1.187-1.295 1.551-.55.36-1.176.539-1.88.539-.53 0-.965-.089-1.302-.267a2.457 2.457 0 0 1-.784-.625 4.667 4.667 0 0 1-.437-.636h-.103v4.631H71.08Zm1.665-7.637c0 .614.09 1.152.267 1.614.178.462.436.824.773 1.085.337.258.75.387 1.239.387.507 0 .931-.135 1.273-.404.34-.273.598-.642.772-1.108.178-.466.267-.99.267-1.574 0-.575-.087-1.092-.261-1.551-.17-.458-.428-.82-.773-1.085-.34-.265-.767-.398-1.278-.398-.493 0-.91.127-1.25.381-.337.254-.593.608-.767 1.062-.175.455-.262.985-.262 1.591Zm10.75 4.557a3.557 3.557 0 0 1-1.5-.307 2.523 2.523 0 0 1-1.062-.903c-.258-.394-.386-.877-.386-1.449 0-.492.094-.898.283-1.216.19-.318.446-.57.768-.756a4.036 4.036 0 0 1 1.08-.42c.397-.095.802-.167 1.215-.216l1.273-.148c.325-.041.562-.108.71-.198.148-.091.222-.239.222-.444v-.039c0-.497-.14-.881-.42-1.154-.277-.273-.69-.409-1.24-.409-.572 0-1.022.127-1.352.381-.325.25-.55.528-.676.835l-1.597-.364c.19-.53.466-.958.83-1.284.368-.329.79-.568 1.267-.716.477-.151.98-.227 1.506-.227.348 0 .718.042 1.108.125.394.08.761.227 1.102.443.345.216.627.525.847.926.22.398.33.915.33 1.552V169h-1.66v-1.193h-.068c-.11.22-.275.435-.495.648-.22.212-.501.388-.846.528s-.758.21-1.239.21Zm.37-1.363c.47 0 .87-.093 1.204-.279.337-.185.593-.428.767-.727.178-.303.267-.627.267-.972v-1.125c-.06.061-.178.118-.352.171-.17.049-.365.093-.585.13-.22.034-.434.067-.642.097l-.523.068c-.33.042-.63.112-.903.21a1.553 1.553 0 0 0-.648.427c-.16.181-.239.424-.239.727 0 .42.156.738.466.954.31.212.707.319 1.188.319Zm9.876 1.346c-.845 0-1.572-.191-2.182-.574a3.796 3.796 0 0 1-1.398-1.596c-.325-.678-.488-1.455-.488-2.33 0-.886.166-1.668.5-2.346a3.832 3.832 0 0 1 1.409-1.597c.606-.383 1.32-.574 2.142-.574.663 0 1.254.123 1.773.369.519.243.937.584 1.255 1.023.322.44.514.953.574 1.54h-1.653c-.091-.409-.3-.761-.625-1.057-.322-.295-.754-.443-1.296-.443a2.11 2.11 0 0 0-1.244.375c-.352.246-.627.598-.824 1.057-.197.454-.295.992-.295 1.613 0 .637.096 1.186.29 1.648.193.462.466.82.818 1.074.356.254.774.381 1.255.381.322 0 .614-.059.875-.177.266-.121.487-.293.665-.517.182-.223.309-.492.38-.806h1.654a3.211 3.211 0 0 1-.55 1.511 3.165 3.165 0 0 1-1.234 1.045c-.511.254-1.111.381-1.8.381Zm9.163 0c-.859 0-1.6-.184-2.221-.551a3.732 3.732 0 0 1-1.432-1.563c-.333-.674-.5-1.464-.5-2.369 0-.894.167-1.682.5-2.363a3.887 3.887 0 0 1 1.409-1.597c.606-.383 1.314-.574 2.125-.574.493 0 .97.082 1.432.244.462.163.877.419 1.244.767.368.349.657.802.87 1.358.212.553.318 1.226.318 2.017v.603H99.71v-1.273h5.273c0-.447-.091-.843-.273-1.187a2.052 2.052 0 0 0-.767-.824c-.326-.201-.708-.302-1.148-.302a2.22 2.22 0 0 0-1.25.353 2.364 2.364 0 0 0-.818.909 2.626 2.626 0 0 0-.284 1.21v.994c0 .584.102 1.08.307 1.489.208.409.498.722.869.938.372.212.805.318 1.301.318a2.7 2.7 0 0 0 .881-.137c.265-.094.494-.234.688-.42.193-.186.341-.415.443-.688l1.608.29c-.129.474-.36.888-.693 1.244-.33.353-.745.627-1.245.824-.496.194-1.062.29-1.699.29Z",fill:"#fff"}),e.jsx("path",{d:"M117.604 47.263 121.523 45h14.267v41.862h-14.267l-15.335-8.854V53.854l1.818-1.05 3.2 1.848-1.818 1.05V76.16l12.993 7.502h10.209V48.2h-10.209l-1.577.91-3.2-1.847Z",fill:"url(#e)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M119.402 76.16V55.701L106.409 48.2H96.2v35.462h10.209l1.582-.913 3.2 1.847-3.924 2.266H93V45h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047Z",fill:"url(#f)"}),e.jsxs("g",{clipPath:"url(#g)",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff",children:[e.jsx("path",{d:"m50.928 216.089 1.034 2.852h-2.503l1.028-2.842a4.95 4.95 0 0 0 .107-.338 7.17 7.17 0 0 0 .111-.409c.075.297.15.542.223.737Zm2.28 5.591h.796l-2.775-7.352h-1.043l-2.774 7.352h.795a.338.338 0 0 0 .223-.077.425.425 0 0 0 .127-.179l.615-1.705h3.07l.617 1.705a.399.399 0 0 0 .126.184.339.339 0 0 0 .223.072Zm4.823-.963a2.023 2.023 0 0 1-.67.098h-1.455v-2.453h1.456c.5 0 .871.106 1.11.318.24.208.36.495.36.86 0 .184-.028.355-.083.512a1.005 1.005 0 0 1-.262.399 1.2 1.2 0 0 1-.456.266Zm-2.125-3.128v-2.406h1.237c.498 0 .865.095 1.101.286.236.192.355.497.355.917 0 .369-.125.662-.374.881-.246.215-.623.322-1.13.322h-1.189Zm2.358-3.128a4.106 4.106 0 0 0-1.12-.133h-2.27v7.352h2.507c.391 0 .74-.051 1.048-.154.307-.102.566-.247.776-.435.21-.188.37-.409.48-.665.11-.26.165-.547.165-.861 0-.904-.506-1.462-1.518-1.674.22-.075.41-.169.572-.281a1.79 1.79 0 0 0 .403-.379c.106-.144.186-.297.237-.461.052-.164.078-.335.078-.512a2.1 2.1 0 0 0-.146-.804 1.49 1.49 0 0 0-.441-.609 2.073 2.073 0 0 0-.771-.384Zm7.535.778h-2.212v6.441h-1.028v-6.441h-2.222v-.911H65.8v.911Zm2.439.564h-1.13v1.193h1.13v-1.193Zm-1.13 2.983h1.13v1.193h-1.13v-1.193Z",fillOpacity:".8"}),e.jsx("path",{d:"M28.247 221.771V214h3.894c.99.072 1.765.944 1.765 1.998v3.77c0 1.106-.85 2.003-1.897 2.003h-3.762ZM36.355 214h-1.011v7.783h1.01V214Zm-7.097 6.704v-5.642h2.751c.49 0 .886.419.886.936v3.77c0 .517-.396.936-.886.936h-2.75ZM37.775 214v7.771h3.762c1.047 0 1.897-.897 1.897-2.003v-3.77c0-1.054-.774-1.926-1.765-1.998h-3.894Zm6.946 1.803h1.13v1.193h-1.13v-1.193Zm1.13 2.983h-1.13v1.193h1.13v-1.193Zm-7.065-3.724v5.642h2.75c.49 0 .887-.419.887-.936v-3.77c0-.517-.397-.936-.886-.936h-2.751Z"})]}),e.jsx("circle",{cx:"191.32",cy:"218",r:"10",fill:"url(#h)"}),e.jsx("path",{d:"m192.064 213.333.976-.564h3.554v10.427h-3.286a1 1 0 0 1-.5-.134l-3.588-2.071v-6.016l.453-.262.797.46-.453.262v5.096l3.237 1.868h2.543v-8.833h-2.543l-.393.227-.797-.46Z",fill:"#fff"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M192.512 220.531v-5.096l-3.237-1.869h-2.543v8.833h2.543l.394-.227.797.46-.977.564h-3.554v-10.427h3.554l3.82 2.206v6.016l-.452.261-.797-.461.452-.26Z",fill:"#fff"})]})]}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"d",x1:"114",y1:"130",x2:"114",y2:"252",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#101010"}),e.jsx("stop",{offset:"1",stopColor:"#272727"})]}),e.jsxs("linearGradient",{id:"e",x1:"120.989",y1:"45",x2:"120.989",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#fff",stopOpacity:".4"}),e.jsx("stop",{offset:"1",stopColor:"#fff"})]}),e.jsxs("linearGradient",{id:"f",x1:"107.801",y1:"45",x2:"107.801",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#fff"}),e.jsx("stop",{offset:"1",stopColor:"#fff",stopOpacity:".4"})]}),e.jsxs("radialGradient",{id:"h",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(17 -8.76924 6.97565 13.52294 183.166 221)",children:[e.jsx("stop",{stopColor:"#016BED"}),e.jsx("stop",{offset:".699",stopColor:"#4498FB"}),e.jsx("stop",{offset:"1",stopColor:"#9DFFE8"})]}),e.jsx("clipPath",{id:"g",children:e.jsx("path",{fill:"#fff",transform:"translate(28 214)",d:"M0 0h40.32v8H0z"})}),e.jsx("pattern",{id:"c",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:e.jsx("use",{xlinkHref:"#i",transform:"scale(.00455 .00781)"})}),e.jsxs("filter",{id:"a",x:"0",y:"0",width:"228",height:"258",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[e.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e.jsx("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.jsx("feOffset",{dy:"2"}),e.jsx("feGaussianBlur",{stdDeviation:"2"}),e.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),e.jsx("feColorMatrix",{values:"0 0 0 0 0.0631944 0 0 0 0 0.242785 0 0 0 0 0.403472 0 0 0 0.2 0"}),e.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1410_22507"}),e.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1410_22507",result:"shape"})]}),e.jsx("image",{id:"i",width:"220",height:"128",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACABAMAAACSOBo+AAAAG1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACUUeIgAAAACXRSTlMSFhkOHAsfCCOMH5MiAAAjjElEQVRo3hTQO3sjRRBG4a+qWz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FxUqG8cUTy3m5s3i7BqLbFkKcfxLQYhAXfjam0yFFd3PZE9wlXWfHYKlg2cFlTcnwRH6z8DpSfQHidMhElmCMb07li9ceHQHFknk/98f4KJRLpX6xQEXVAnJxlr8Aw6/qb0wu9SNolstScB0izxmMC5DiytBJd9Rcm3RGf42aiddmUTM4d4dgdjiT+vMPX0/RzfZdLoZ4aQqPzhx9plNI3QyvsMZHn2j2wOECoTtkfJt89O+eYUnXB/gFxHxPmOeL9ogAAAABJRU5ErkJggg=="})]})]})};we.defaultProps={width:"228",height:"258",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function Re(){const{t}=O();return e.jsxs(j,{children:[e.jsxs(j,{minHeight:"40vh",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignContent:"center",children:[e.jsx(we,{style:{width:250,height:250}}),e.jsx(y,{marginTop:"24px",marginBottom:"24px",children:t("storage.spaces.connect.provider")}),e.jsx(ae,{})]}),e.jsx(y,{fontSize:"1.2rem",fontWeight:"bold",mb:2,children:t("common.dataStorage")}),e.jsx(be,{})]})}Re.propTypes={};var ue={},Ut=oe;Object.defineProperty(ue,"__esModule",{value:!0});var Te=ue.default=void 0,bt=Ut(ne()),wt=e;Te=ue.default=(0,bt.default)((0,wt.jsx)("path",{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"}),"ArrowOutward");var he={},Rt=oe;Object.defineProperty(he,"__esModule",{value:!0});var Oe=he.default=void 0,Tt=Rt(ne()),Ot=e;Oe=he.default=(0,Tt.default)((0,Ot.jsx)("path",{d:"M14.69 2.21 4.33 11.49c-.64.58-.28 1.65.58 1.73L13 14l-4.85 6.76c-.22.31-.19.74.08 1.01.3.3.77.31 1.08.02l10.36-9.28c.64-.58.28-1.65-.58-1.73L11 10l4.85-6.76c.22-.31.19-.74-.08-1.01-.3-.3-.77-.31-1.08-.02"}),"ElectricBoltOutlined");var me={},Ft=oe;Object.defineProperty(me,"__esModule",{value:!0});var Fe=me.default=void 0,Lt=Ft(ne()),Mt=e;Fe=me.default=(0,Lt.default)((0,Mt.jsx)("path",{d:"m9.17 6 2 2H20v10H4V6zM10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"}),"FolderOutlined");function fe({spaceGateway:t,onDelete:s}){const{t:a}=O(),[n,l]=x.useState(!1),[c,o]=x.useState(!1),r=(p,m)=>{p==null||p.preventDefault(),p==null||p.stopPropagation(),l(m)},d=async p=>{try{p==null||p.stopPropagation(),o(!0),await s(t),l(!1)}catch(m){console.error(m),v.error(`${a("storage.space.gateway.delete.failed")}: ${G(m)}`)}finally{o(!1)}};return e.jsxs(e.Fragment,{children:[e.jsxs(_,{color:"red",onClick:p=>r(p,!0),children:[e.jsx($,{style:{minWidth:24,color:"red"},children:e.jsx(St,{fontSize:"small"})}),e.jsx(ee,{style:{color:"red"},children:a("common.delete")})]}),e.jsx(Ye,{title:e.jsx(y,{variant:"h6",children:a("common.delConfirmDescription",{data:`${t==null?void 0:t.name}`})}),open:n,confirmButton:{text:a("common.confirm"),props:{variant:"contained",color:"error",loading:c}},cancelButton:{text:a("common.cancel"),props:{variant:"contained",color:"primary"},loading:c},onConfirm:d,onCancel:p=>r(p,!1)})]})}fe.propTypes={onDelete:f.func,spaceGateway:f.shape({name:f.string.isRequired,url:f.string.isRequired,protected:f.bool}).isRequired};fe.defaultProps={onDelete:()=>{}};function xe({spaceGateway:t,connected:s,onDelete:a,onConnect:n,enableSwitchToSpace:l,backupInProgress:c,...o}){const[r,d]=x.useState(null),{t:p}=O(),[m,D]=x.useState(!1),S=(A,k)=>{A.stopPropagation(),A.preventDefault(),d(k&&A.currentTarget)},g=async A=>{try{D(!0),S(A,!1),await n(t)}catch(k){console.error(k),v.error(k.message)}finally{D(!1)}};return e.jsxs(e.Fragment,{children:[e.jsx(qe,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions",onClick:A=>S(A,!0),size:"small",...o,children:m||t!=null&&t.loading?e.jsx(Z,{size:"24px"}):e.jsx(yt,{})}),e.jsxs(_e,{id:"simple-menu",anchorEl:r,keepMounted:!0,open:!!r,onClose:A=>S(A,!1),children:[e.jsxs(_,{onClick:A=>{S(A,!1),window.open(t.endpoint?pt(t.endpoint):t.url)},children:[e.jsx($,{style:{minWidth:24},children:e.jsx(Te,{fontSize:"small"})}),e.jsx(ee,{children:p("common.open")})]}),e.jsxs(_,{onClick:A=>{S(A,!1),window.open(ut(t.endpoint))},children:[e.jsx($,{style:{minWidth:24},children:e.jsx(Fe,{fontSize:"small"})}),e.jsx(ee,{children:p("storage.spaces.strategy.viewBackupFiles")})]}),!s&&l&&e.jsxs(_,{onClick:g,children:[e.jsx($,{style:{minWidth:24},children:e.jsx(Oe,{fontSize:"small"})}),e.jsx(ee,{children:p("storage.spaces.connect.switchToSpace")})]}),!c&&e.jsx(fe,{spaceGateway:t,onDelete:a})]})]})}xe.propTypes={spaceGateway:f.shape({name:f.string.isRequired,url:f.string.isRequired,protected:f.bool,endpoint:f.string.isRequired,loading:f.bool}).isRequired,connected:f.bool.isRequired,enableSwitchToSpace:f.bool,onDelete:f.func,onConnect:f.func,backupInProgress:f.bool};xe.defaultProps={onDelete:()=>{},onConnect:()=>{},enableSwitchToSpace:!0,backupInProgress:!1};var Le=function(s){return e.jsx("svg",{...s,children:e.jsx("circle",{cx:"4",cy:"4",r:"4",fill:"#25C99B"})})};Le.defaultProps={width:"8",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var Me=function(s){return e.jsx("svg",{...s,children:e.jsx("circle",{cx:"4",cy:"4",r:"4",fill:"#F16E6E"})})};Me.defaultProps={width:"8",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ge({spaceGateway:t,connected:s,onDelete:a,onBackupNow:n,...l}){const c=$e(w=>w.breakpoints.down("md")),{t:o,locale:r}=O(),{blocklet:d}=N(),{api:p,info:{did:m}}=P(),{appDid:D,appName:S,appDescription:g,scopes:A,appUrl:k,referrer:H}=Ie({blocklet:d}),{updateSpaceGateway:I,backupEndpoint:E,backupProgress:u,refreshBackupEndpoint:F}=Q(),[U,R]=x.useState(!1),[B,T]=x.useState({open:!1,action:"one-click-authorization",checkTimeout:1e3*300,messages:{title:o("storage.spaces.authorize.title",{appName:S},r),scan:o("storage.spaces.authorize.scan",{appName:S},r),confirm:"",success:e.jsx(y,{gutterBottom:!0,children:o("storage.spaces.authorize.success")})},onClose:()=>{T(w=>({...w,open:!1}))}}),{data:h,loading:C}=et(async()=>s?Ce(E):!0,{refreshDeps:[s,E,B==null?void 0:B.open,U]}),i=s&&h,b=s&&!U&&h&&!(t!=null&&t.loading),X=s&&U&&h,L=s&&!h&&!C&&!U,W=async()=>{if(await Ce(t==null?void 0:t.endpoint)){await p.configBlocklet({input:{did:[d.meta.did],configs:[{key:K.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:t.endpoint}]}}),F(),v.success(o("storage.spaces.connect.switchToSpaceSucceeded",{name:t.name?`(${t.name})`:""}));return}T(Y=>({...Y,open:!0,prefix:V(t.url,"space/api/did"),baseUrl:new URL(t.url).origin,checkFn:le.create({baseURL:V(t.url,"space")}).get,extraParams:{appDid:D,appName:S,appDescription:g,scopes:A,appUrl:k,referrer:H,nodeDid:m,spaceDid:t.did}}))},Je=async(w,Y)=>{const ie=Y(w.endpoint),Qe=se(ie),z=w.space?Y(w.space):{};if(t.did&&Qe!==t.did){T(re=>({...re,open:!1})),v.error(o("storage.spaces.gateway.switch.failedForMismatchSpace",{name:z!=null&&z.name?z.name:""}));return}const He={...t,name:z.name??"DID Space",did:z.did??se(ie),endpoint:ie};await I(He),T(re=>({...re,open:!1}))},Ze=async()=>{try{if(U)return;R(!0),await n()}catch(w){console.error(w),v.error(w.message)}finally{R(!0)}};return x.useEffect(()=>{u!=null&&u.completed?((u==null?void 0:u.progress)===100&&v.success(o("storage.spaces.backupSuccessfully")),R(!1),u.progress=0,u.message=""):u.progress&&R(!0)},[u]),e.jsxs(Nt,{sx:{backgroundColor:s?"#F0FDFF":"inherit","&:hover":{backgroundColor:s?"#F0FDFF":"#FBFBFB"},borderRadius:"8px"},display:"flex",flexDirection:"column",padding:"4px 20px 12px",...l,children:[e.jsxs(j,{display:"flex",alignItems:"center",children:[e.jsxs(j,{flex:1,children:[i&&e.jsxs(y,{color:"primary",fontSize:14,children:[e.jsx(Le,{style:{marginRight:"8px"}}),o("storage.spaces.connected.tag")]}),L&&e.jsxs(y,{color:"error",fontSize:14,children:[e.jsx(Me,{style:{marginRight:"8px"}}),o("storage.spaces.disconnected.tag")]})]}),e.jsx(xe,{sx:{padding:"4px"},spaceGateway:t,connected:s,onDelete:a,onConnect:W,enableSwitchToSpace:(u==null?void 0:u.completed)||J.isEmpty(u==null?void 0:u.message),backupInProgress:X})]}),e.jsxs(j,{display:"flex",children:[e.jsxs(j,{display:"flex",flexDirection:"column",flex:"1",minWidth:0,children:[e.jsx(y,{className:"spaces-name",fontSize:"1rem",fontWeight:"bold",children:t.name}),e.jsx(j,{className:"spaces-address",display:X?"none":"flex",color:"#9397A1",marginTop:"4px",children:e.jsx(y,{sx:{display:"inline-flex",alignItems:"center",fontSize:"14px"},color:"#9397A1",children:t.did&&e.jsx(jt,{copyable:!1,size:14,compact:!0,responsive:!1,did:t.did})})}),e.jsxs(j,{className:"spaces-backup",display:"flex",alignItems:"center",marginTop:"8px",flex:1,children:[b&&e.jsxs(j,{className:"backup-strategy",display:"flex",alignItems:"center",minWidth:"72px",children:[e.jsx(te,{variant:"contained",size:"small",onClick:Ze,children:o("storage.spaces.strategy.backupNow")}),At&&e.jsx(De,{name:"enable-auto-backup",title:"coming soon",disabled:!0,labelProps:{label:e.jsx(y,{sx:{marginRight:"8px",fontSize:"16px"},children:e.jsx("span",{children:o("storage.spaces.strategy.autoBackup")})})},style:{marginLeft:"64px"}})]}),X&&e.jsxs(j,{className:"backup-progress",display:"flex",flexDirection:"column",alignItems:"center",marginLeft:c&&"16px",width:"90%",marginRight:"auto",alignSelf:"flex-end",children:[e.jsx(y,{color:"primary",children:u==null?void 0:u.message}),e.jsxs(j,{sx:{display:"flex",alignItems:"center"},width:"100%",children:[e.jsx(j,{sx:{width:"100%",mr:1},children:e.jsx(tt,{color:"primary",variant:"determinate",value:u==null?void 0:u.progress})}),e.jsx(j,{sx:{maxWidth:"100%"},children:e.jsxs(y,{variant:"body2",color:"text.secondary",children:[u==null?void 0:u.progress,"%"]})})]})]}),L&&e.jsx(j,{className:"backup-strategy",display:"flex",alignItems:"center",minWidth:"72px",children:e.jsx(te,{color:"error",variant:"contained",size:"small",onClick:W,children:o("storage.spaces.disconnected.reconnectNow")})})]})]}),e.jsx(rt,{src:ht(t.endpoint),width:"72px",height:"72px"})]}),e.jsx(de,{forceConnected:!1,saveConnect:!1,prefix:B.prefix,open:B.open,popup:!0,action:B.action,baseUrl:B.baseUrl,checkFn:B.checkFn,onSuccess:Je,onClose:B.onClose,checkTimeout:B.checkTimeout,extraParams:B.extraParams,messages:B.messages,locale:r},"get-endpoint"),e.jsx(j,{className:`selected-container ${s?"selected":""}`,children:e.jsx(st,{className:"selected-icon"})})]})}ge.propTypes={spaceGateway:f.shape({did:f.string.isRequired,name:f.string.isRequired,url:f.string.isRequired,endpoint:f.string.isRequired,protected:f.bool,loading:f.bool}).isRequired,connected:f.bool.isRequired,progress:f.any.isRequired,onDelete:f.func,onBackupNow:f.func};ge.defaultProps={onDelete:()=>{},onBackupNow:()=>{}};const Nt=ke(j)`
2
2
  box-sizing: border-box;
3
3
  position: relative;
4
4
  min-height: 136px;
@@ -1 +1 @@
1
- import{r as h,j as c,P as f,a3 as d}from"./index-Xy0LtaLl.js";var o={};Object.defineProperty(o,"__esModule",{value:!0});var p=o.default=void 0;m(h);var n=c;function m(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(v){return Object.getOwnPropertyDescriptor(e,v).enumerable})),r.push.apply(r,a)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(a){y(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function y(e,t,r){return(t=j(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(e){var t=b(e,"string");return typeof t=="symbol"?t:t+""}function b(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i=function(t){return(0,n.jsxs)("svg",u(u({},t),{},{children:[(0,n.jsx)("path",{d:"M24.604 2.263L28.524 0H42.79v41.862H28.79a1 1 0 0 1-.5-.134l-15.103-8.72V8.854l1.817-1.05 3.2 1.848-1.817 1.05V31.16l12.993 7.502H39.59V3.2H29.38l-1.576.91-3.2-1.847z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.402 31.16V10.701L13.409 3.2H3.2v35.462h10.21l1.58-.913 3.2 1.847-3.923 2.266H0V0h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047z"}),(0,n.jsx)("path",{d:"M138.44 27.684c.192 0 .357.075.496.224l1.344 1.472a9.584 9.584 0 0 1-3.44 2.576c-1.344.608-2.965.912-4.864.912-1.664 0-3.173-.288-4.528-.864a10.056 10.056 0 0 1-3.456-2.416c-.949-1.035-1.685-2.272-2.208-3.712-.523-1.44-.784-3.024-.784-4.752 0-1.728.272-3.312.816-4.752.555-1.44 1.328-2.677 2.32-3.712a10.444 10.444 0 0 1 3.552-2.416c1.387-.576 2.917-.864 4.592-.864 1.632 0 3.083.267 4.352.8a10.973 10.973 0 0 1 3.312 2.128l-1.12 1.584a.936.936 0 0 1-.288.288.742.742 0 0 1-.432.112c-.203 0-.443-.101-.72-.304a8.802 8.802 0 0 0-1.072-.672c-.437-.256-.981-.485-1.632-.688-.651-.203-1.461-.304-2.432-.304-1.141 0-2.187.203-3.136.608a6.885 6.885 0 0 0-2.464 1.728c-.683.747-1.216 1.67-1.6 2.768-.373 1.088-.56 2.32-.56 3.696 0 1.397.197 2.64.592 3.728.395 1.088.939 2.01 1.632 2.768a6.914 6.914 0 0 0 2.448 1.728 7.764 7.764 0 0 0 3.04.592c.661 0 1.253-.037 1.776-.112a7.843 7.843 0 0 0 1.456-.368c.448-.16.869-.363 1.264-.608a8.89 8.89 0 0 0 1.168-.912c.085-.075.176-.133.272-.176a.616.616 0 0 1 .304-.08zM149.68 16.1c1.195 0 2.272.197 3.232.592a6.54 6.54 0 0 1 2.464 1.68c.683.725 1.205 1.605 1.568 2.64.363 1.024.544 2.176.544 3.456 0 1.28-.181 2.437-.544 3.472-.363 1.035-.885 1.915-1.568 2.64a6.795 6.795 0 0 1-2.464 1.68c-.96.384-2.037.576-3.232.576-1.205 0-2.293-.192-3.264-.576a6.987 6.987 0 0 1-2.464-1.68c-.683-.725-1.211-1.605-1.584-2.64-.363-1.035-.544-2.192-.544-3.472 0-1.28.181-2.432.544-3.456.373-1.035.901-1.915 1.584-2.64a6.717 6.717 0 0 1 2.464-1.68c.971-.395 2.059-.592 3.264-.592zm0 14.304c1.536 0 2.683-.517 3.44-1.552.757-1.035 1.136-2.49 1.136-4.368 0-1.877-.379-3.333-1.136-4.368-.757-1.045-1.904-1.568-3.44-1.568-1.557 0-2.72.523-3.488 1.568-.757 1.035-1.136 2.49-1.136 4.368 0 1.877.379 3.333 1.136 4.368.768 1.035 1.931 1.552 3.488 1.552zM163.899 18.612c.352-.373.72-.715 1.104-1.024a6.73 6.73 0 0 1 1.216-.784 6.195 6.195 0 0 1 1.392-.512 6.442 6.442 0 0 1 1.6-.192c.896 0 1.68.15 2.352.448.682.299 1.253.72 1.712 1.264.458.533.805 1.179 1.04 1.936.234.757.352 1.595.352 2.512v10.352h-3.136V22.26c0-1.163-.267-2.064-.8-2.704-.534-.65-1.35-.976-2.448-.976-.8 0-1.552.192-2.256.576a7.38 7.38 0 0 0-1.936 1.536v11.92h-3.12V16.356h1.872c.437 0 .709.208.816.624l.24 1.632zM181.805 18.612c.352-.373.72-.715 1.104-1.024a6.73 6.73 0 0 1 1.216-.784 6.195 6.195 0 0 1 1.392-.512 6.448 6.448 0 0 1 1.6-.192c.896 0 1.68.15 2.352.448a4.63 4.63 0 0 1 1.712 1.264c.459.533.805 1.179 1.04 1.936.235.757.352 1.595.352 2.512v10.352h-3.136V22.26c0-1.163-.267-2.064-.8-2.704-.533-.65-1.349-.976-2.448-.976-.8 0-1.552.192-2.256.576a7.396 7.396 0 0 0-1.936 1.536v11.92h-3.12V16.356h1.872c.437 0 .709.208.816.624l.24 1.632zM207.551 22.676c0-.619-.09-1.19-.272-1.712a3.77 3.77 0 0 0-.768-1.36 3.521 3.521 0 0 0-1.248-.896c-.49-.213-1.056-.32-1.696-.32-1.312 0-2.346.379-3.104 1.136-.746.757-1.221 1.808-1.424 3.152h8.512zm2.576 7.616a6.311 6.311 0 0 1-1.328 1.168 7.926 7.926 0 0 1-1.6.784 9.664 9.664 0 0 1-1.76.448c-.597.096-1.189.144-1.776.144-1.12 0-2.16-.187-3.12-.56a7.159 7.159 0 0 1-2.48-1.664c-.693-.736-1.237-1.643-1.632-2.72-.384-1.088-.576-2.336-.576-3.744 0-1.13.176-2.181.528-3.152a7.67 7.67 0 0 1 1.504-2.56 7.064 7.064 0 0 1 2.416-1.712c.95-.416 2.016-.624 3.2-.624.992 0 1.904.165 2.736.496.843.32 1.568.79 2.176 1.408.608.619 1.083 1.381 1.424 2.288.352.907.528 1.941.528 3.104 0 .48-.053.805-.16.976-.106.16-.304.24-.592.24h-10.656c.032.97.171 1.819.416 2.544.246.715.582 1.312 1.008 1.792.438.48.955.837 1.552 1.072.598.235 1.264.352 2 .352.694 0 1.291-.08 1.792-.24.512-.16.95-.33 1.312-.512.374-.192.683-.368.928-.528.256-.16.48-.24.672-.24.256 0 .454.096.592.288l.896 1.152zM225.113 19.396a1.836 1.836 0 0 1-.288.288c-.086.064-.214.096-.384.096-.171 0-.352-.064-.544-.192a4.872 4.872 0 0 0-.704-.432 5.21 5.21 0 0 0-1.024-.432c-.395-.139-.886-.208-1.472-.208-.768 0-1.446.139-2.032.416a3.972 3.972 0 0 0-1.472 1.184c-.384.512-.678 1.136-.88 1.872-.203.736-.304 1.563-.304 2.48 0 .95.106 1.797.32 2.544.213.736.517 1.36.912 1.872.394.501.874.885 1.44 1.152a4.522 4.522 0 0 0 1.888.384c.672 0 1.226-.08 1.664-.24.437-.17.8-.352 1.088-.544.288-.192.528-.368.72-.528.192-.17.389-.256.592-.256.256 0 .453.096.592.288l.896 1.152a5.966 5.966 0 0 1-1.264 1.168c-.459.32-.95.581-1.472.784a8.34 8.34 0 0 1-1.648.448c-.566.096-1.142.144-1.728.144a7.25 7.25 0 0 1-2.848-.56 6.52 6.52 0 0 1-2.288-1.632c-.64-.715-1.147-1.59-1.52-2.624-.374-1.045-.56-2.23-.56-3.552 0-1.205.165-2.32.496-3.344.341-1.024.837-1.904 1.488-2.64a6.821 6.821 0 0 1 2.432-1.744c.96-.427 2.058-.64 3.296-.64 1.162 0 2.186.187 3.072.56a7.514 7.514 0 0 1 2.368 1.584l-.832 1.152zM234.121 32.868c-1.312 0-2.325-.368-3.04-1.104-.704-.736-1.056-1.787-1.056-3.152v-9.728h-1.888a.701.701 0 0 1-.464-.16c-.117-.117-.176-.288-.176-.512v-1.264l2.64-.368.704-4.848a.738.738 0 0 1 .24-.416.724.724 0 0 1 .48-.16h1.584v5.456h4.608v2.272h-4.608v9.52c0 .64.155 1.12.464 1.44.32.31.726.464 1.216.464.288 0 .534-.037.736-.112a3.27 3.27 0 0 0 .544-.24c.15-.096.278-.181.384-.256a.521.521 0 0 1 .288-.112c.107 0 .187.027.24.08a.694.694 0 0 1 .192.224l.928 1.504c-.512.47-1.12.832-1.824 1.088a6.362 6.362 0 0 1-2.192.384z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.815 33.284V9H70.66a6.259 6.259 0 0 1 5.823 6.243v11.783a6.258 6.258 0 0 1-6.258 6.258h-12.41zM84.56 9h-3.335v24.321h3.335V9zM61.15 29.95V12.32h9.075a2.923 2.923 0 0 1 2.923 2.923v11.783a2.923 2.923 0 0 1-2.923 2.923H61.15zM89.243 9v24.284h12.409a6.258 6.258 0 0 0 6.259-6.258V15.243A6.259 6.259 0 0 0 102.087 9H89.243zm22.912 5.636h3.728v3.728h-3.728v-3.729zm3.728 9.321h-3.728v3.729h3.728v-3.729zM92.578 12.32v17.63h9.074a2.924 2.924 0 0 0 2.924-2.924V15.243a2.924 2.924 0 0 0-2.924-2.923h-9.074z"})]}))};i.defaultProps={width:"239",height:"42",viewBox:"0 0 239 42",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};i.displayName="connect-logo";p=o.default=i;function s({children:e,...t}){return c.jsxs(d,{color:"did",variant:"contained",...t,children:[c.jsx("span",{style:{fontWeight:400},children:e||"Continue With"}),c.jsx(p,{style:{width:"auto",height:"1.2em",margin:"0 4px 0 8px"}})]})}s.propTypes={children:f.any};s.defaultProps={children:""};export{s as C};
1
+ import{r as h,j as c,P as f,a3 as d}from"./index-DIxJxM78.js";var o={};Object.defineProperty(o,"__esModule",{value:!0});var p=o.default=void 0;m(h);var n=c;function m(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(v){return Object.getOwnPropertyDescriptor(e,v).enumerable})),r.push.apply(r,a)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(a){y(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function y(e,t,r){return(t=j(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(e){var t=b(e,"string");return typeof t=="symbol"?t:t+""}function b(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i=function(t){return(0,n.jsxs)("svg",u(u({},t),{},{children:[(0,n.jsx)("path",{d:"M24.604 2.263L28.524 0H42.79v41.862H28.79a1 1 0 0 1-.5-.134l-15.103-8.72V8.854l1.817-1.05 3.2 1.848-1.817 1.05V31.16l12.993 7.502H39.59V3.2H29.38l-1.576.91-3.2-1.847z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.402 31.16V10.701L13.409 3.2H3.2v35.462h10.21l1.58-.913 3.2 1.847-3.923 2.266H0V0h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047z"}),(0,n.jsx)("path",{d:"M138.44 27.684c.192 0 .357.075.496.224l1.344 1.472a9.584 9.584 0 0 1-3.44 2.576c-1.344.608-2.965.912-4.864.912-1.664 0-3.173-.288-4.528-.864a10.056 10.056 0 0 1-3.456-2.416c-.949-1.035-1.685-2.272-2.208-3.712-.523-1.44-.784-3.024-.784-4.752 0-1.728.272-3.312.816-4.752.555-1.44 1.328-2.677 2.32-3.712a10.444 10.444 0 0 1 3.552-2.416c1.387-.576 2.917-.864 4.592-.864 1.632 0 3.083.267 4.352.8a10.973 10.973 0 0 1 3.312 2.128l-1.12 1.584a.936.936 0 0 1-.288.288.742.742 0 0 1-.432.112c-.203 0-.443-.101-.72-.304a8.802 8.802 0 0 0-1.072-.672c-.437-.256-.981-.485-1.632-.688-.651-.203-1.461-.304-2.432-.304-1.141 0-2.187.203-3.136.608a6.885 6.885 0 0 0-2.464 1.728c-.683.747-1.216 1.67-1.6 2.768-.373 1.088-.56 2.32-.56 3.696 0 1.397.197 2.64.592 3.728.395 1.088.939 2.01 1.632 2.768a6.914 6.914 0 0 0 2.448 1.728 7.764 7.764 0 0 0 3.04.592c.661 0 1.253-.037 1.776-.112a7.843 7.843 0 0 0 1.456-.368c.448-.16.869-.363 1.264-.608a8.89 8.89 0 0 0 1.168-.912c.085-.075.176-.133.272-.176a.616.616 0 0 1 .304-.08zM149.68 16.1c1.195 0 2.272.197 3.232.592a6.54 6.54 0 0 1 2.464 1.68c.683.725 1.205 1.605 1.568 2.64.363 1.024.544 2.176.544 3.456 0 1.28-.181 2.437-.544 3.472-.363 1.035-.885 1.915-1.568 2.64a6.795 6.795 0 0 1-2.464 1.68c-.96.384-2.037.576-3.232.576-1.205 0-2.293-.192-3.264-.576a6.987 6.987 0 0 1-2.464-1.68c-.683-.725-1.211-1.605-1.584-2.64-.363-1.035-.544-2.192-.544-3.472 0-1.28.181-2.432.544-3.456.373-1.035.901-1.915 1.584-2.64a6.717 6.717 0 0 1 2.464-1.68c.971-.395 2.059-.592 3.264-.592zm0 14.304c1.536 0 2.683-.517 3.44-1.552.757-1.035 1.136-2.49 1.136-4.368 0-1.877-.379-3.333-1.136-4.368-.757-1.045-1.904-1.568-3.44-1.568-1.557 0-2.72.523-3.488 1.568-.757 1.035-1.136 2.49-1.136 4.368 0 1.877.379 3.333 1.136 4.368.768 1.035 1.931 1.552 3.488 1.552zM163.899 18.612c.352-.373.72-.715 1.104-1.024a6.73 6.73 0 0 1 1.216-.784 6.195 6.195 0 0 1 1.392-.512 6.442 6.442 0 0 1 1.6-.192c.896 0 1.68.15 2.352.448.682.299 1.253.72 1.712 1.264.458.533.805 1.179 1.04 1.936.234.757.352 1.595.352 2.512v10.352h-3.136V22.26c0-1.163-.267-2.064-.8-2.704-.534-.65-1.35-.976-2.448-.976-.8 0-1.552.192-2.256.576a7.38 7.38 0 0 0-1.936 1.536v11.92h-3.12V16.356h1.872c.437 0 .709.208.816.624l.24 1.632zM181.805 18.612c.352-.373.72-.715 1.104-1.024a6.73 6.73 0 0 1 1.216-.784 6.195 6.195 0 0 1 1.392-.512 6.448 6.448 0 0 1 1.6-.192c.896 0 1.68.15 2.352.448a4.63 4.63 0 0 1 1.712 1.264c.459.533.805 1.179 1.04 1.936.235.757.352 1.595.352 2.512v10.352h-3.136V22.26c0-1.163-.267-2.064-.8-2.704-.533-.65-1.349-.976-2.448-.976-.8 0-1.552.192-2.256.576a7.396 7.396 0 0 0-1.936 1.536v11.92h-3.12V16.356h1.872c.437 0 .709.208.816.624l.24 1.632zM207.551 22.676c0-.619-.09-1.19-.272-1.712a3.77 3.77 0 0 0-.768-1.36 3.521 3.521 0 0 0-1.248-.896c-.49-.213-1.056-.32-1.696-.32-1.312 0-2.346.379-3.104 1.136-.746.757-1.221 1.808-1.424 3.152h8.512zm2.576 7.616a6.311 6.311 0 0 1-1.328 1.168 7.926 7.926 0 0 1-1.6.784 9.664 9.664 0 0 1-1.76.448c-.597.096-1.189.144-1.776.144-1.12 0-2.16-.187-3.12-.56a7.159 7.159 0 0 1-2.48-1.664c-.693-.736-1.237-1.643-1.632-2.72-.384-1.088-.576-2.336-.576-3.744 0-1.13.176-2.181.528-3.152a7.67 7.67 0 0 1 1.504-2.56 7.064 7.064 0 0 1 2.416-1.712c.95-.416 2.016-.624 3.2-.624.992 0 1.904.165 2.736.496.843.32 1.568.79 2.176 1.408.608.619 1.083 1.381 1.424 2.288.352.907.528 1.941.528 3.104 0 .48-.053.805-.16.976-.106.16-.304.24-.592.24h-10.656c.032.97.171 1.819.416 2.544.246.715.582 1.312 1.008 1.792.438.48.955.837 1.552 1.072.598.235 1.264.352 2 .352.694 0 1.291-.08 1.792-.24.512-.16.95-.33 1.312-.512.374-.192.683-.368.928-.528.256-.16.48-.24.672-.24.256 0 .454.096.592.288l.896 1.152zM225.113 19.396a1.836 1.836 0 0 1-.288.288c-.086.064-.214.096-.384.096-.171 0-.352-.064-.544-.192a4.872 4.872 0 0 0-.704-.432 5.21 5.21 0 0 0-1.024-.432c-.395-.139-.886-.208-1.472-.208-.768 0-1.446.139-2.032.416a3.972 3.972 0 0 0-1.472 1.184c-.384.512-.678 1.136-.88 1.872-.203.736-.304 1.563-.304 2.48 0 .95.106 1.797.32 2.544.213.736.517 1.36.912 1.872.394.501.874.885 1.44 1.152a4.522 4.522 0 0 0 1.888.384c.672 0 1.226-.08 1.664-.24.437-.17.8-.352 1.088-.544.288-.192.528-.368.72-.528.192-.17.389-.256.592-.256.256 0 .453.096.592.288l.896 1.152a5.966 5.966 0 0 1-1.264 1.168c-.459.32-.95.581-1.472.784a8.34 8.34 0 0 1-1.648.448c-.566.096-1.142.144-1.728.144a7.25 7.25 0 0 1-2.848-.56 6.52 6.52 0 0 1-2.288-1.632c-.64-.715-1.147-1.59-1.52-2.624-.374-1.045-.56-2.23-.56-3.552 0-1.205.165-2.32.496-3.344.341-1.024.837-1.904 1.488-2.64a6.821 6.821 0 0 1 2.432-1.744c.96-.427 2.058-.64 3.296-.64 1.162 0 2.186.187 3.072.56a7.514 7.514 0 0 1 2.368 1.584l-.832 1.152zM234.121 32.868c-1.312 0-2.325-.368-3.04-1.104-.704-.736-1.056-1.787-1.056-3.152v-9.728h-1.888a.701.701 0 0 1-.464-.16c-.117-.117-.176-.288-.176-.512v-1.264l2.64-.368.704-4.848a.738.738 0 0 1 .24-.416.724.724 0 0 1 .48-.16h1.584v5.456h4.608v2.272h-4.608v9.52c0 .64.155 1.12.464 1.44.32.31.726.464 1.216.464.288 0 .534-.037.736-.112a3.27 3.27 0 0 0 .544-.24c.15-.096.278-.181.384-.256a.521.521 0 0 1 .288-.112c.107 0 .187.027.24.08a.694.694 0 0 1 .192.224l.928 1.504c-.512.47-1.12.832-1.824 1.088a6.362 6.362 0 0 1-2.192.384z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.815 33.284V9H70.66a6.259 6.259 0 0 1 5.823 6.243v11.783a6.258 6.258 0 0 1-6.258 6.258h-12.41zM84.56 9h-3.335v24.321h3.335V9zM61.15 29.95V12.32h9.075a2.923 2.923 0 0 1 2.923 2.923v11.783a2.923 2.923 0 0 1-2.923 2.923H61.15zM89.243 9v24.284h12.409a6.258 6.258 0 0 0 6.259-6.258V15.243A6.259 6.259 0 0 0 102.087 9H89.243zm22.912 5.636h3.728v3.728h-3.728v-3.729zm3.728 9.321h-3.728v3.729h3.728v-3.729zM92.578 12.32v17.63h9.074a2.924 2.924 0 0 0 2.924-2.924V15.243a2.924 2.924 0 0 0-2.924-2.923h-9.074z"})]}))};i.defaultProps={width:"239",height:"42",viewBox:"0 0 239 42",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};i.displayName="connect-logo";p=o.default=i;function s({children:e,...t}){return c.jsxs(d,{color:"did",variant:"contained",...t,children:[c.jsx("span",{style:{fontWeight:400},children:e||"Continue With"}),c.jsx(p,{style:{width:"auto",height:"1.2em",margin:"0 4px 0 8px"}})]})}s.propTypes={children:f.any};s.defaultProps={children:""};export{s as C};
@@ -1 +1 @@
1
- import{r as a,a2 as e,j as t,R as n,a0 as o}from"./index-Xy0LtaLl.js";function p(){const{t:s}=a.useContext(e);return t.jsx(r,{style:{paddingTop:"25vh"},children:t.jsx(n,{status:"404",description:s("noMatch.desc"),style:{backgroundColor:"transparent"}})})}const r=o.main``;export{p as default};
1
+ import{r as a,a2 as e,j as t,R as n,a0 as o}from"./index-DIxJxM78.js";function p(){const{t:s}=a.useContext(e);return t.jsx(r,{style:{paddingTop:"25vh"},children:t.jsx(n,{status:"404",description:s("noMatch.desc"),style:{backgroundColor:"transparent"}})})}const r=o.main``;export{p as default};