@abtnode/blocklet-services 1.16.33-beta-20241102-083409-a924dd84 → 1.16.33-beta-20241105-141729-e4608175

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 (288) hide show
  1. package/api/index.js +2 -48
  2. package/api/libs/auth/index.js +3 -2
  3. package/api/libs/logger.js +2 -0
  4. package/api/routes/federated.js +31 -1
  5. package/api/routes/oauth.js +19 -3
  6. package/api/state/profile.js +2 -1
  7. package/dist/assets/{Add-bOFtqv1E.js → Add-C5wKbObL.js} +1 -1
  8. package/dist/assets/Alert-ClGA4UON.js +1 -0
  9. package/dist/assets/{ArrowDropDown-CshuI94_.js → ArrowDropDown-CK-CyRRv.js} +1 -1
  10. package/dist/assets/{Autocomplete-r8azpItz.js → Autocomplete-BM34aepT.js} +1 -1
  11. package/dist/assets/Avatar-DyK43nCT.js +1 -0
  12. package/dist/assets/{ButtonGroup-Ba2QsN1i.js → ButtonGroup-DaL5PyR4.js} +1 -1
  13. package/dist/assets/{CSSTransition-Cw_xP1Vb.js → CSSTransition-BzIdiTxk.js} +1 -1
  14. package/dist/assets/{CheckCircle-D6BKIS_s.js → CheckCircle-C-BzX2wx.js} +1 -1
  15. package/dist/assets/{ChevronLeft-Cuf9mn8C.js → ChevronLeft-DdnDWw3p.js} +1 -1
  16. package/dist/assets/{ChevronRight-DKM1mfYU.js → ChevronRight-B_bmxWe_.js} +1 -1
  17. package/dist/assets/{Close-BOZcPfPU.js → Close-da9E5C6C.js} +1 -1
  18. package/dist/assets/Delete-4PM7zdFM.js +1 -0
  19. package/dist/assets/{DeleteOutline-D2b8wb9u.js → DeleteOutline-23K5_ksg.js} +1 -1
  20. package/dist/assets/{DialogContentText-DKna-pLa.js → DialogContentText-BAHpbVEb.js} +1 -1
  21. package/dist/assets/{Done-BAj811nu.js → Done-CKRWemQO.js} +1 -1
  22. package/dist/assets/{Download-EZLNqT6R.js → Download-B85Kmt1U.js} +1 -1
  23. package/dist/assets/{EditIcon-CMiQSmX5.js → EditIcon-DSJg9xra.js} +1 -1
  24. package/dist/assets/{Error-Dyl_GK7X.js → Error-Dln9la_X.js} +1 -1
  25. package/dist/assets/{ExpandMore-Cri5eWhB.js → ExpandMore-CtG_bAfW.js} +1 -1
  26. package/dist/assets/FormControl-BL0Z1NSB.js +1 -0
  27. package/dist/assets/{FormControlLabel-DUqUcjqg.js → FormControlLabel-DoWNBwBW.js} +1 -1
  28. package/dist/assets/FormGroup-QLbY_ga6.js +1 -0
  29. package/dist/assets/{Google-n9BhRIMV.js → Google-BvcdqOgK.js} +1 -1
  30. package/dist/assets/{Grid-d_5vEATf.js → Grid-CK8YVFLA.js} +1 -1
  31. package/dist/assets/{HelpOutline-CN-JBZ3p.js → HelpOutline-Dl-B0PLa.js} +1 -1
  32. package/dist/assets/Hidden-vR0aN6pm.js +1 -0
  33. package/dist/assets/{InfoOutlined-B6Dnu1aU.js → InfoOutlined-B6NUfTCa.js} +1 -1
  34. package/dist/assets/{InputAdornment-C_v1Y6Di.js → InputAdornment-DZGc8E9Q.js} +1 -1
  35. package/dist/assets/{LastPage-lb4qZ_g6.js → LastPage-DGe9hoEM.js} +1 -1
  36. package/dist/assets/{Launch-BTyi4wvd.js → Launch-BpxAI4bs.js} +1 -1
  37. package/dist/assets/{LaunchOutlined-CNgk8eWz.js → LaunchOutlined-C6MUvhkl.js} +1 -1
  38. package/dist/assets/{Link-B263Ikvu.js → Link-t0X_2s8f.js} +1 -1
  39. package/dist/assets/{ListItemButton-DapPFhnE.js → ListItemButton-BeEwzuuE.js} +1 -1
  40. package/dist/assets/{ListSubheader-Bdp-HRQo.js → ListSubheader-CinvXrOQ.js} +1 -1
  41. package/dist/assets/{LoadingButton-DdsFlMi1.js → LoadingButton-Bzaa_ly6.js} +1 -1
  42. package/dist/assets/{LockIcon-D2gLIi44.js → LockIcon-DeDWbkGd.js} +1 -1
  43. package/dist/assets/{Loop-9mUuOWB-.js → Loop-DH3EwgSL.js} +1 -1
  44. package/dist/assets/{MarkEmailRead-BkXDErhY.js → MarkEmailRead-CwoBeL2i.js} +1 -1
  45. package/dist/assets/{Menu-BG_qisJ7.js → Menu-D_GBf1CB.js} +1 -1
  46. package/dist/assets/{MoreHoriz-DcPej2CD.js → MoreHoriz-Qd-pbYq_.js} +1 -1
  47. package/dist/assets/{MoreVert-BwL-ULCe.js → MoreVert-Dy3B-4PZ.js} +1 -1
  48. package/dist/assets/{OpenInNew-Ci1H_656.js → OpenInNew-sKjipJwH.js} +1 -1
  49. package/dist/assets/{Pagination-KX1cGsLx.js → Pagination-BSPBQ0Um.js} +2 -2
  50. package/dist/assets/{PlayArrow-D2XJZjjn.js → PlayArrow-DC_oyUb1.js} +1 -1
  51. package/dist/assets/{QuestionMarkCircle-DzQgFhhx.js → QuestionMarkCircle-C8r6Lbfw.js} +1 -1
  52. package/dist/assets/{RadioGroup-CKVkcR5j.js → RadioGroup-MJhlZ4ZH.js} +1 -1
  53. package/dist/assets/{Search-DcB6584F.js → Search-CefeP42d.js} +1 -1
  54. package/dist/assets/{Select-FHyYu0mn.js → Select-Bjc5h4TG.js} +2 -2
  55. package/dist/assets/{ServerLogo-COVdbFHe.js → ServerLogo-B27SaIJw.js} +1 -1
  56. package/dist/assets/{Skeleton-Bbfoem6Q.js → Skeleton-B-YzpOQg.js} +4 -4
  57. package/dist/assets/{Slider-DlL3lEzg.js → Slider-DEZGhcr8.js} +1 -1
  58. package/dist/assets/Stack-RoMZEEMb.js +1 -0
  59. package/dist/assets/{Stepper-C1z1Nu0H.js → Stepper-D8zaVBG6.js} +1 -1
  60. package/dist/assets/{TextField-C6DNb6K3.js → TextField-OMWgqDee.js} +1 -1
  61. package/dist/assets/{Toolbar-mIzrJcpi.js → Toolbar-CZhQZvMx.js} +1 -1
  62. package/dist/assets/{ViewColumn-BfOj5Hqi.js → ViewColumn-CWRGm9xJ.js} +1 -1
  63. package/dist/assets/{ViewList-CHUygrET.js → ViewList-B4FFgNBd.js} +1 -1
  64. package/dist/assets/_createAggregator-C7QUEqHM.js +1 -0
  65. package/dist/assets/access-control-BhAuSTlj.js +13 -0
  66. package/dist/assets/actions-VMZ5WmkG.js +1 -0
  67. package/dist/assets/{add-component-core-D9i8J5Hl.js → add-component-core-BMEBzsmZ.js} +19 -19
  68. package/dist/assets/add-resource-RNKWAHa3.js +1 -0
  69. package/dist/assets/addon-DLwkn9N6.js +31 -0
  70. package/dist/assets/{analytics-CNjMo4PR.js → analytics-Dm4wPEYQ.js} +7 -7
  71. package/dist/assets/api-J-ppmLLo.js +1 -0
  72. package/dist/assets/ar-DVPUxrdQ.js +1 -0
  73. package/dist/assets/audit-logs-tj7WeyYy.js +58 -0
  74. package/dist/assets/{base32-b0e6z4ei.js → base32-D9mDcD23.js} +1 -1
  75. package/dist/assets/branding-D-eSt-2j.js +37 -0
  76. package/dist/assets/bundle-avatar-Co5kQjOo.js +1 -0
  77. package/dist/assets/{button-BZSmvuzl.js → button-Ee_XPt6g.js} +1 -1
  78. package/dist/assets/{click-to-copy-CYT808Bk.js → click-to-copy-CQnFaSnp.js} +1 -1
  79. package/dist/assets/{complete-DeQ0rwlU.js → complete-CeSbBm-e.js} +4 -4
  80. package/dist/assets/{component-D2BxwkDd.js → component-DJBS5Xx8.js} +46 -46
  81. package/dist/assets/{config-Gbmmjnod.js → config-B6t74tHt.js} +1 -1
  82. package/dist/assets/{config-rCxorgFD.js → config-C_hl3G_R.js} +2 -2
  83. package/dist/assets/config-navigation-CHtqAvRz.js +25 -0
  84. package/dist/assets/confirm-Ddpyr19d.js +7 -0
  85. package/dist/assets/connect-6xrInacS.js +1 -0
  86. package/dist/assets/connect-Ewc4HyYb.js +5 -0
  87. package/dist/assets/connect-to-qDn2VlTy.js +1 -0
  88. package/dist/assets/{content-layout-Dg654vli.js → content-layout-BBKVUucZ.js} +1 -1
  89. package/dist/assets/{dashboard-DN-9-3gU.js → dashboard-BijWBRYU.js} +8 -8
  90. package/dist/assets/de-DVXfDFSU.js +1 -0
  91. package/dist/assets/{deprecate-YD6Y6FfX.js → deprecate-D8ZVXehA.js} +1 -1
  92. package/dist/assets/{did-address-D5PpLM1R.js → did-address-CM_8YqbE.js} +1 -1
  93. package/dist/assets/domain-DyBbgSJm.js +9 -0
  94. package/dist/assets/domain-list-CxPS6rQ4.js +15 -0
  95. package/dist/assets/{email-DqijDSOa.js → email-DxESpXcD.js} +3 -3
  96. package/dist/assets/emotion-cache.browser.esm-DWAkeLNM.js +1 -0
  97. package/dist/assets/es-FbTZG3DY.js +1 -0
  98. package/dist/assets/exchange-passport-CnSh9yXL.js +1 -0
  99. package/dist/assets/{fallback-D3XbER7P.js → fallback-DtXRUNR6.js} +1 -1
  100. package/dist/assets/{form-text-input-Dfn1Wn_5.js → form-text-input-CQCcTHWQ.js} +2 -2
  101. package/dist/assets/{format-error-CbWObE-m.js → format-error-BXpFpsa-.js} +1 -1
  102. package/dist/assets/fr-DL1YXCMM.js +1 -0
  103. package/dist/assets/fuel-D6j74EMR.js +32 -0
  104. package/dist/assets/{fullpage-CGQnavVT.js → fullpage-CKQTBOZk.js} +1 -1
  105. package/dist/assets/hi-DVTVHQJG.js +1 -0
  106. package/dist/assets/{home-DEHpnOzD.js → home-CcjOthQO.js} +1 -1
  107. package/dist/assets/id-CjJaQtmp.js +1 -0
  108. package/dist/assets/{iframe-CjWb2_M6.js → iframe-DRVFH0tr.js} +1 -1
  109. package/dist/assets/{index-DBu7jcSD.js → index-4Vv_xV1i.js} +1 -1
  110. package/dist/assets/{index-BeoZ-VU7.js → index-B463Qwek.js} +1 -1
  111. package/dist/assets/{index-kR3Uq-Mb.js → index-BACiBg8Z.js} +17 -17
  112. package/dist/assets/{index-Bpc59LEO.js → index-BCox7gnS.js} +1 -1
  113. package/dist/assets/{index-D9qREAp1.js → index-Bn4Oin82.js} +7 -7
  114. package/dist/assets/{index-KqotQeYl.js → index-BtEigcbe.js} +4 -4
  115. package/dist/assets/index-C3SoKjGs.js +1 -0
  116. package/dist/assets/{index-DVziVD2f.js → index-C97ospTS.js} +1 -1
  117. package/dist/assets/{index-CrRQb6MU.js → index-CJ5QOKhK.js} +1 -1
  118. package/dist/assets/index-CN4Xbxs7.js +23 -0
  119. package/dist/assets/{index-T8nTnmh1.js → index-CPpIB55-.js} +1 -1
  120. package/dist/assets/{index-BDZlmkSE.js → index-Ca4BjHEM.js} +1 -1
  121. package/dist/assets/{index-Bkm0bPy1.js → index-Cfu_bVRF.js} +9 -9
  122. package/dist/assets/{index-5iry99Ky.js → index-CjgG9Mbh.js} +3 -3
  123. package/dist/assets/{index-DOE-ad6o.js → index-ClAQ2Uji.js} +1 -1
  124. package/dist/assets/{index-DSOswIXL.js → index-CrRL_dto.js} +8 -8
  125. package/dist/assets/{index-Pws_HXCQ.js → index-D7yWEAeI.js} +2 -2
  126. package/dist/assets/{index-BkQ4EI2P.js → index-D8wC9WED.js} +34 -34
  127. package/dist/assets/{index-DURun-fE.js → index-D9Zhhq53.js} +1 -1
  128. package/dist/assets/{index-ByIVK1rt.js → index-DNivnwSJ.js} +1 -1
  129. package/dist/assets/index-DOT9KoXF.js +4 -0
  130. package/dist/assets/{index-1CEybnrZ.js → index-DYz2g4w3.js} +1 -1
  131. package/dist/assets/{index-BbL9bes4.js → index-DZ8uRrow.js} +1 -1
  132. package/dist/assets/index-DaPfZep1.js +544 -0
  133. package/dist/assets/index-Dc2ybf4C.js +11 -0
  134. package/dist/assets/{index-Ctfa52p5.js → index-Dd9xMZEz.js} +9 -9
  135. package/dist/assets/index-DsUB0er-.js +1 -0
  136. package/dist/assets/{index-B_B2L5WL.js → index-DyVo1ugh.js} +1 -1
  137. package/dist/assets/{index-wnWr-8e_.js → index-Hnm-O5Pq.js} +13 -13
  138. package/dist/assets/{index-BELX75G9.js → index-SC5yW-Mc.js} +1 -1
  139. package/dist/assets/{index-B54dXjy1.js → index-e9epohgt.js} +14 -14
  140. package/dist/assets/index-gK8L4BFM.js +1 -0
  141. package/dist/assets/{index-ni93At8S.js → index-gZFJJRf-.js} +1 -1
  142. package/dist/assets/{index-gyya76M7.js → index-o33Ww9sw.js} +1 -1
  143. package/dist/assets/{invitation-PGwdnHE4.js → invitation-BuZJIYwW.js} +6 -6
  144. package/dist/assets/invite-1m2hy3gm.js +5 -0
  145. package/dist/assets/{isEmail-B5EAjxnP.js → isEmail-BAm7AH0D.js} +1 -1
  146. package/dist/assets/{issue-passport-Bw_MHd9T.js → issue-passport-C9U5xfNL.js} +1 -1
  147. package/dist/assets/{item-eNPWM9nS.js → item-CjjCUl_D.js} +1 -1
  148. package/dist/assets/ja-D5d-ejt-.js +1 -0
  149. package/dist/assets/{jss-plugin-props-sort.esm-D5cAYULH.js → jss-plugin-props-sort.esm-cqAVaHSM.js} +5 -5
  150. package/dist/assets/ko-KSOTEFlZ.js +1 -0
  151. package/dist/assets/{launch-result-message-D3mtj3IR.js → launch-result-message-Qy-17kk4.js} +1 -1
  152. package/dist/assets/{layout-CZVKqaZH.js → layout-BVjKi-WC.js} +2 -2
  153. package/dist/assets/list-header-DBu1NCpW.js +57 -0
  154. package/dist/assets/localization-Duro2u0E.js +1 -0
  155. package/dist/assets/{log-CJD7Smn5.js → log-2ZwvZtYm.js} +1 -1
  156. package/dist/assets/{login-DR3kcJtW.js → login-DvR8ldSJ.js} +1 -1
  157. package/dist/assets/login-oauth-callback-C6I5hp6o.js +1 -0
  158. package/dist/assets/logo-uploader-lnCRmGXJ.js +133 -0
  159. package/dist/assets/{lost-passport-CynXuP5y.js → lost-passport-CSsACZsq.js} +3 -3
  160. package/dist/assets/{lottie-react.esm-BBW-VAw8.js → lottie-react.esm-Bx5n1m-Y.js} +1 -1
  161. package/dist/assets/notifications-K6SumKc_.js +65 -0
  162. package/dist/assets/{open-window-BKaZeE7I.js → open-window-BnMY49qX.js} +1 -1
  163. package/dist/assets/overview-4Pt-umR4.js +12 -0
  164. package/dist/assets/page-header-CA8Xsarf.js +31 -0
  165. package/dist/assets/{permission-C4_wbUHQ.js → permission-sAUmNkv7.js} +1 -1
  166. package/dist/assets/{preferences-a3_XT82h.js → preferences-BPOKtF4g.js} +1 -1
  167. package/dist/assets/pt-CZUQ83t-.js +1 -0
  168. package/dist/assets/publish-resource-VECs77eT.js +1 -0
  169. package/dist/assets/{raf-schd.esm-BDHFBmJm.js → raf-schd.esm-W-ZrlqpH.js} +1 -1
  170. package/dist/assets/{react-beautiful-dnd.esm-rfy7xaJI.js → react-beautiful-dnd.esm-BJ9lX_Fr.js} +1 -1
  171. package/dist/assets/refType-BsYuCgz-.js +1 -0
  172. package/dist/assets/resource-dialog-BBl_2osk.js +4 -0
  173. package/dist/assets/ru-BowhhxB9.js +1 -0
  174. package/dist/assets/sdk-DponvxD9.js +1 -0
  175. package/dist/assets/selector-CFf3nrir.js +48 -0
  176. package/dist/assets/session-5TSm9LWM.js +1 -0
  177. package/dist/assets/setup-Ct1D13HF.js +19 -0
  178. package/dist/assets/{shorten-label-leEX0OpC.js → shorten-label-DN0jrUac.js} +1 -1
  179. package/dist/assets/{simple-select-DInqAkp_.js → simple-select-DqaWmnN5.js} +1 -1
  180. package/dist/assets/{slicedToArray-CMlWE9Kb.js → slicedToArray-BS60JB66.js} +2 -2
  181. package/dist/assets/spaces-CjgOPbG0.js +1 -0
  182. package/dist/assets/start-BUk3sbrk.js +187 -0
  183. package/dist/assets/step-actions-BPWhLbiR.js +31 -0
  184. package/dist/assets/studio-CW5QJoGv.js +6 -0
  185. package/dist/assets/switch-control-Cnbl4Wu3.js +13 -0
  186. package/dist/assets/th-G7hcFvcB.js +1 -0
  187. package/dist/assets/{toUpper-BN2pcj3y.js → toUpper-CFi1Iac7.js} +1 -1
  188. package/dist/assets/transfer-Bx_nNEq4.js +16 -0
  189. package/dist/assets/trim-CHiTHOIA.js +1 -0
  190. package/dist/assets/{uniqBy-DL1zbncl.js → uniqBy-BjgLQRCz.js} +1 -1
  191. package/dist/assets/{unsubscribe-Bx_0kT2c.js → unsubscribe-k6GIH3_j.js} +1 -1
  192. package/dist/assets/{url-join-DIhZFaTI.js → url-join-UZSSoHtH.js} +1 -1
  193. package/dist/assets/use-blocklet-info-for-connect-did-spaces-hKOuN39m.js +1 -0
  194. package/dist/assets/use-mobile-BTgMVFAs.js +1 -0
  195. package/dist/assets/use-mobile-C1IcwqDn.js +1 -0
  196. package/dist/assets/{useAsync-clvYxRH3.js → useAsync-D_MoHBEg.js} +1 -1
  197. package/dist/assets/{useFormControl-cUTo7137.js → useFormControl-CZU39P72.js} +1 -1
  198. package/dist/assets/{useLocalStorage-vovxXSOl.js → useLocalStorage-DoUDAxJV.js} +1 -1
  199. package/dist/assets/{useSetState-Bcpwt_WC.js → useSetState-l_4RfoXS.js} +1 -1
  200. package/dist/assets/useSlot-CHjJ1PGq.js +1 -0
  201. package/dist/assets/{useSlotProps-BKfmEJpm.js → useSlotProps-DCQA4xi9.js} +1 -1
  202. package/dist/assets/useThemeProps-BuwBKLg_.js +1 -0
  203. package/dist/assets/user-center-C-BWN4ab.js +1 -0
  204. package/dist/assets/{user-sessions-hVZB4oee.js → user-sessions-zHLfn0TD.js} +1 -1
  205. package/dist/assets/{util-vL8zU5OD.js → util-DvRWTmoo.js} +1 -1
  206. package/dist/assets/vi-DwM1n61y.js +1 -0
  207. package/dist/assets/{wrap-locale-DfIs9PFE.js → wrap-locale-D0E4_sSR.js} +1 -1
  208. package/dist/assets/zh-4Fb8w10J.js +1 -0
  209. package/dist/assets/zh-tw-BMZcmOgr.js +1 -0
  210. package/dist/index.html +1 -1
  211. package/dist/service-worker.js +1 -1
  212. package/package.json +37 -38
  213. package/dist/assets/Alert-DsAFGE4O.js +0 -1
  214. package/dist/assets/Avatar-cHoH5Gcs.js +0 -1
  215. package/dist/assets/CloseOutlined-g2NMRZze.js +0 -1
  216. package/dist/assets/Delete-3sftcVmc.js +0 -1
  217. package/dist/assets/FormControl-Bzepy6Yn.js +0 -1
  218. package/dist/assets/FormGroup-Dfsxsxnm.js +0 -1
  219. package/dist/assets/Hidden-B_94bAwy.js +0 -1
  220. package/dist/assets/Stack-_YfLIpxv.js +0 -1
  221. package/dist/assets/access-control-BzGDM72k.js +0 -13
  222. package/dist/assets/actions-BI7yMXK2.js +0 -1
  223. package/dist/assets/add-resource-BfHXR_Y_.js +0 -1
  224. package/dist/assets/addon-BwD2KOqI.js +0 -31
  225. package/dist/assets/api-Cg7ahL5P.js +0 -1
  226. package/dist/assets/ar-DulOB4u4.js +0 -1
  227. package/dist/assets/audit-logs-Dkin1KDM.js +0 -58
  228. package/dist/assets/branding-Cl9GX76R.js +0 -37
  229. package/dist/assets/bundle-avatar-CFbWkja3.js +0 -1
  230. package/dist/assets/config-navigation-B7PM-EGI.js +0 -25
  231. package/dist/assets/confirm-D0pWA67W.js +0 -7
  232. package/dist/assets/connect-Cdtb7SHw.js +0 -1
  233. package/dist/assets/connect-Tlrdq51n.js +0 -5
  234. package/dist/assets/connect-to-BI3qeY9E.js +0 -54
  235. package/dist/assets/de-8sK7C5VE.js +0 -1
  236. package/dist/assets/domain-2MsVV8_b.js +0 -9
  237. package/dist/assets/domain-list-D4PDGQMX.js +0 -15
  238. package/dist/assets/emotion-cache.browser.esm-CFmFGVO5.js +0 -1
  239. package/dist/assets/es-BhEAJBNj.js +0 -1
  240. package/dist/assets/exchange-passport-PFJEY5oF.js +0 -1
  241. package/dist/assets/fr-DYb1HdQN.js +0 -1
  242. package/dist/assets/fuel-BRC6ySM4.js +0 -32
  243. package/dist/assets/hi-DeSTVDJm.js +0 -1
  244. package/dist/assets/id-B-ianq_P.js +0 -1
  245. package/dist/assets/index-1pd_yDXe.js +0 -11
  246. package/dist/assets/index-BEt0dM-9.js +0 -563
  247. package/dist/assets/index-BV12QEMX.js +0 -1
  248. package/dist/assets/index-CHOjWhIO.js +0 -4
  249. package/dist/assets/index-CbtulDW6.js +0 -1
  250. package/dist/assets/index-Cert8PMw.js +0 -1
  251. package/dist/assets/index-CmjfXrfq.js +0 -1
  252. package/dist/assets/index-uGwRXs0w.js +0 -22
  253. package/dist/assets/invite-B3LCoC_0.js +0 -5
  254. package/dist/assets/ja-cd0ntUSZ.js +0 -1
  255. package/dist/assets/ko-10uIwv6V.js +0 -1
  256. package/dist/assets/list-header-BlJseGfe.js +0 -57
  257. package/dist/assets/localization-C4vP52vp.js +0 -1
  258. package/dist/assets/lodash-CmCPMfEh.js +0 -27
  259. package/dist/assets/login-oauth-callback-0EjAb9S0.js +0 -1
  260. package/dist/assets/logo-uploader-CtnbwpWA.js +0 -133
  261. package/dist/assets/notifications-BTr0jDCz.js +0 -65
  262. package/dist/assets/overview-Cgav-29-.js +0 -12
  263. package/dist/assets/page-header-B2iI665X.js +0 -31
  264. package/dist/assets/pt-BLq3lFAs.js +0 -1
  265. package/dist/assets/publish-resource-BwfmZpal.js +0 -1
  266. package/dist/assets/refType-C9dfEo74.js +0 -1
  267. package/dist/assets/resource-dialog-C_YfBcxl.js +0 -4
  268. package/dist/assets/ru-ClzjSM6D.js +0 -1
  269. package/dist/assets/sdk--rGP8Wie.js +0 -1
  270. package/dist/assets/selector-BQdiIKcX.js +0 -48
  271. package/dist/assets/session-BhA7xYeK.js +0 -1
  272. package/dist/assets/setup-DdL2aJKn.js +0 -19
  273. package/dist/assets/spaces-DqylVolU.js +0 -1
  274. package/dist/assets/start-xeWBZiEu.js +0 -187
  275. package/dist/assets/step-actions-BnvHdZWg.js +0 -31
  276. package/dist/assets/studio-CfUa1OMb.js +0 -6
  277. package/dist/assets/switch-control-DwJl6NzU.js +0 -13
  278. package/dist/assets/th-PReNX1Xn.js +0 -1
  279. package/dist/assets/transfer-DnYlCSpz.js +0 -16
  280. package/dist/assets/trim-B9XGsPSj.js +0 -1
  281. package/dist/assets/use-blocklet-info-for-connect-did-spaces-Bhk5PbPV.js +0 -1
  282. package/dist/assets/use-mobile-C8a-WvbB.js +0 -1
  283. package/dist/assets/useSlot-Bgf6_F9a.js +0 -1
  284. package/dist/assets/useThemeProps-vkOLleXs.js +0 -1
  285. package/dist/assets/user-center-B0SlHHaj.js +0 -1
  286. package/dist/assets/vi-noed91sz.js +0 -1
  287. package/dist/assets/zh-BperuRxy.js +0 -1
  288. package/dist/assets/zh-tw-B7-6_fNO.js +0 -1
@@ -0,0 +1 @@
1
+ import{bH as X,a_ as w,r as x,aR as M,bX as ge,t as y,is as be,ac as P,it as we,u as E,j as e,P as m,f6 as Me,c4 as xe,c as se,fz as Fe,a0 as Ne,T as B,a2 as Je,n as F,iu as Pe,B as v,Z as oe,$ as ae,aV as V,fy as Ze,b as Qe,aT as He,a3 as $,N as ze,G as R,bi as z,a as Ve,iv as Ke,C as Ge}from"./index-Dd9xMZEz.js";import{A as Xe,d as Ye,S as ee,b as qe}from"./index-CN4Xbxs7.js";import"./index-D7yWEAeI.js";import"./api-J-ppmLLo.js";import{u as Se}from"./use-blocklet-info-for-connect-did-spaces-hKOuN39m.js";import{b as We,c as _e,d as $e,i as et,e as tt,f as st,h as nt,j as ne}from"./spaces-CjgOPbG0.js";import{f as Y}from"./format-error-BXpFpsa-.js";import{I as ot}from"./index-D9Zhhq53.js";import{d as at}from"./MoreHoriz-Qd-pbYq_.js";import{d as rt}from"./DeleteOutline-23K5_ksg.js";import{L as K,a as G}from"./Delete-4PM7zdFM.js";import{T as te}from"./index-4Vv_xV1i.js";import{D as it}from"./index-DNivnwSJ.js";import{d as ct}from"./HelpOutline-Dl-B0PLa.js";import{L as lt}from"./Link-t0X_2s8f.js";import{u as dt}from"./use-mobile-BTgMVFAs.js";import{S as pt}from"./switch-control-Cnbl4Wu3.js";import{S as ut}from"./Stack-RoMZEEMb.js";import{G as fe}from"./Grid-CK8YVFLA.js";import"./OpenInNew-sKjipJwH.js";import"./index-gZFJJRf-.js";import"./Skeleton-B-YzpOQg.js";import"./DialogContentText-BAHpbVEb.js";import"./TextField-OMWgqDee.js";import"./FormControl-BL0Z1NSB.js";import"./useFormControl-CZU39P72.js";import"./Select-Bjc5h4TG.js";import"./ExpandMore-CtG_bAfW.js";import"./ButtonGroup-DaL5PyR4.js";import"./useThemeProps-BuwBKLg_.js";import"./toPropertyKey-PLuKRk1e.js";import"./emotion-cache.browser.esm-DWAkeLNM.js";import"./index-B463Qwek.js";import"./redux-CluOqhW1.js";import"./MoreVert-Dy3B-4PZ.js";import"./FormControlLabel-DoWNBwBW.js";import"./ViewColumn-CWRGm9xJ.js";import"./FormGroup-QLbY_ga6.js";import"./index-SC5yW-Mc.js";import"./LastPage-DGe9hoEM.js";import"./Toolbar-CZhQZvMx.js";import"./Search-CefeP42d.js";import"./index-DYz2g4w3.js";import"./index-C3SoKjGs.js";async function ht({blockletDid:t,nodeApi:n,spaceGateways:o}){let s=!1;const c=await Promise.all(o.map(async r=>{let{name:a}=r;const i=await We(r.endpoint);return!X(i)&&i!==a&&(a=i,s=!0),{...r,name:a}}));return s&&await Promise.all(c.filter(r=>r.did).map(r=>n.updateBlockletSpaceGateway({input:{did:t,where:{did:r.did},spaceGateway:{...r}}}))),c}function mt({setLoading:t,refresh:n}={}){var i;const{blocklet:o}=w(),s=(i=o==null?void 0:o.meta)==null?void 0:i.did,[c,r]=x.useState([]),{api:a}=M();return ge(async()=>{try{if(!s){r([]);return}t==null||t(!0);const{spaceGateways:l}=await a.getBlockletSpaceGateways({input:{did:s}}),f=await ht({blockletDid:s,nodeApi:a,spaceGateways:l});r(f??[])}catch(l){console.error(l),y.error(Y(l))}finally{t==null||t(!1)}},[s,n]),{spaceGateways:c}}function Ae({deps:t,setLoading:n}={deps:[],setLoading:()=>{}}){var i;const{blocklet:o}=w(),[s,c]=x.useState([]),{api:r}=M(),a=be(async()=>{try{if(n(!0),!o){c([]);return}const{backups:l}=await r.getBlockletBackups({input:{did:o.meta.did}});c(l??[])}catch(l){console.error(l),y.error(Y(l))}finally{n(!1)}},2e3);return ge(async()=>{a()},[(i=o==null?void 0:o.meta)==null?void 0:i.did].concat(t)),{backups:s}}function ft({appDid:t}){const{backups:n}=Ae(),[o,s]=x.useState({message:"",progress:0,completed:!1}),c=M(),{ws:{useSubscription:r}}=c;return r(P.BlockletEvents.backupProgress,a=>{t===(a==null?void 0:a.appDid)&&s(()=>({...a}))},[t]),x.useEffect(()=>{var a;if(n!=null&&n.length&&we((a=n[0])==null?void 0:a.status)){const[i]=n;s(()=>({message:i.message,progress:i.progress,completed:i.progress>=100}))}},[n]),o}const je=x.createContext({}),{Provider:gt,Consumer:As}=je;function re({children:t}){var Q;const{t:n}=E(),{api:o}=M(),{blocklet:s}=w(),[c,r]=x.useState(!1),[a,i]=x.useState(!1),{spaceGateways:l}=mt({refresh:a,setLoading:r}),f=ft({appDid:s==null?void 0:s.appDid}),[S,d]=x.useState(!1),h=x.useMemo(()=>_e(s==null?void 0:s.environments),[s,a,S]),[j,g]=x.useState(!1),{backups:C}=Ae({deps:[f],setLoading:g}),[k,u]=x.useState(l==null?void 0:l.find(p=>p.endpoint===h)),T=(Q=s==null?void 0:s.settings)==null?void 0:Q.autoBackup,O=()=>{i(p=>!p)},q=()=>{d(p=>!p)},D=async p=>{await o.updateAutoBackup({input:{did:s.meta.did,autoBackup:p}})},U=async(p,J)=>{l.push({...p,loading:!0}),await o.addBlockletSpaceGateway({input:{did:s.meta.did,spaceGateway:p}}),h!==J&&await o.configBlocklet({input:{did:[s.meta.did],configs:[{key:P.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:J}]}}),O(),u(p)},I=async p=>{p&&(p.endpoint===h&&(await o.configBlocklet({input:{did:[s.meta.did],configs:[{key:P.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:""}]}}),T!=null&&T.enabled&&await D({enabled:!1})),await o.deleteBlockletSpaceGateway({input:{did:s.meta.did,spaceGatewayDid:p==null?void 0:p.did}}),O(),u(p))},L=async p=>{await o.updateBlockletSpaceGateway({input:{did:s.meta.did,where:{did:p.did},spaceGateway:p}}),h!==p.endpoint&&await o.configBlocklet({input:{did:[s.meta.did],configs:[{key:P.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:p.endpoint}]}}),y.success(n("storage.spaces.connectedWithName",{name:(p==null?void 0:p.name)??"DID Spaces"})),O()},W=p=>(p==null?void 0:p.endpoint)===h;return e.jsx(gt,{value:{spaceGateways:l,selectedSpaceGateway:k,addSpaceGateway:U,deleteSpaceGateway:I,updateSpaceGateway:L,refreshSpaceGateways:O,spaceGatewaysLoading:c,spaceGatewayIsSelected:W,updateAutoBackup:D,backupEndpoint:h,backupProgress:f,backups:C,backupsLoading:j,refreshBackupEndpoint:q,autoBackup:T},children:t})}re.propTypes={children:m.any.isRequired};re.defaultProps={};function N(){return x.useContext(je)}function Z({...t}){const{blocklet:n}=w(),{info:o}=M(),{t:s}=E(),c=Se({blocklet:n}),r=Me(o),{spaceGateways:a,addSpaceGateway:i}=N(),l={checkFn:xe.create({baseURL:se(window.location.origin,Fe())}).get,webWalletUrl:r,extraParams:{appPid:n.appPid,appDid:c.appDid,appName:c.appName,appDescription:c.appDescription,appUrl:c.appUrl,referrer:c.referrer,scopes:c.scopes,nodeDid:o.did}},f=async({endpoint:d,name:h,did:j})=>{const g=await $e(d);if(!await et(g)){y.error(s("storage.spaces.gateway.add.invalidUrl"));return}if(a.some(u=>u.endpoint===d)){y.error(s("storage.spaces.gateway.add.duplicate",{name:h}));return}const k={name:h,did:j,url:g,endpoint:d};await i(k,d),y.success(s("storage.spaces.connectedWithName",{name:(k==null?void 0:k.name)??"DID Spaces"}))},S=async(d,h)=>{try{const j=Ye(d,h);await f(j)}catch(j){console.error(j),y.error(Y(j))}};return e.jsx(Xe,{...t,options:l,onSuccess:S})}Z.propTypes={};Z.defaultProps={};function ye({...t}){const{t:n}=x.useContext(Je),{blocklet:o,loadingDiskInfo:s,actions:c}=w();if(x.useEffect(()=>{c.refreshBlocklet({showError:!1,attachDiskInfo:!0})},[]),o.diskInfo){const r=(l,f,S)=>e.jsxs(B,{children:[l," ",e.jsx("strong",{children:f?Pe(f):"empty"})]}),a=o.environments.reduce((l,f)=>(l[f.key]=f.value,l),{}),i=[{key:"appDir",name:n("blocklet.diskInfo.appDir"),value:r(a.BLOCKLET_APP_DIR,o.diskInfo.app)},{key:"dataDir",name:n("blocklet.diskInfo.dataDir"),value:r(a.BLOCKLET_DATA_DIR,o.diskInfo.data)},{key:"logDir",name:n("blocklet.diskInfo.logDir"),value:r(a.BLOCKLET_LOG_DIR,o.diskInfo.log)},{key:"cacheDir",name:n("blocklet.diskInfo.cacheDir"),value:r(a.BLOCKLET_CACHE_DIR,o.diskInfo.cache)}];return e.jsx(xt,{component:"div",...t,children:i.map(l=>e.jsx(ot,{valueComponent:"div",nameWidth:120,name:l.name,children:l.value},l.key))})}return s?e.jsx(F,{}):e.jsx(B,{children:n("blocklet.diskInfo.empty")})}const xt=Ne(B)``;var Be=function(n){return e.jsxs("svg",{...n,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/PM6AmJouW4cVge9pZuMJga2NQH918Sp4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LT27f2dhwRULpny5D5yKI7vD/4iAW9KWHB7JsEZeCE1E/mdgVHZTOci8X+YIanJt7+aBd2k8f2RL45Z2puefelcXjUWbKdMSYwr58dAPaHymSU0o9/zjFt7/VoGmNAwCyvrKe2L1hYJqtd5gh6FGiCAGzqFk6on9pQdSAQzkctDTtXGbDih5iRPVIk9TwCJGwP3tpATkHsNwloUilnNMFce7twgDgrgWhsE8jWW+EBLlTDMn9pmtJOefTJc6Cxld039TN4XiwL4pMtU+8tXJ4g/LghG5APdF7/e3FSi4v8vnEBiIEm+5LlZtsk2LbbbY5hN9JkkJkd5BjQFPoUcwjJdTm0mx0024NmOvVgxASvU9TonFxUqG8cUTy3m5s3i7BqLbFkKcfxLQYhAXfjam0yFFd3PZE9wlXWfHYKlg2cFlTcnwRH6z8DpSfQHidMhElmCMb07li9ceHQHFknk/98f4KJRLpX6xQEXVAnJxlr8Aw6/qb0wu9SNolstScB0izxmMC5DiytBJd9Rcm3RGf42aiddmUTM4d4dgdjiT+vMPX0/RzfZdLoZ4aQqPzhx9plNI3QyvsMZHn2j2wOECoTtkfJt89O+eYUnXB/gFxHxPmOeL9ogAAAABJRU5ErkJggg=="})]})]})};Be.defaultProps={width:"228",height:"258",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function Ce(){const{t}=E();return e.jsxs(v,{children:[e.jsxs(v,{minHeight:"40vh",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignContent:"center",children:[e.jsx(Be,{style:{width:250,height:250}}),e.jsx(B,{marginTop:"24px",marginBottom:"24px",children:t("storage.spaces.connect.provider")}),e.jsx(Z,{})]}),e.jsx(B,{fontSize:"1.2rem",fontWeight:"bold",mb:2,children:t("common.dataStorage")}),e.jsx(ye,{})]})}Ce.propTypes={};var ie={},St=ae;Object.defineProperty(ie,"__esModule",{value:!0});var Ie=ie.default=void 0,At=St(oe()),jt=e;Ie=ie.default=(0,At.default)((0,jt.jsx)("path",{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"}),"ArrowOutward");var ce={},yt=ae;Object.defineProperty(ce,"__esModule",{value:!0});var ve=ce.default=void 0,Bt=yt(oe()),Ct=e;ve=ce.default=(0,Bt.default)((0,Ct.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 le={},It=ae;Object.defineProperty(le,"__esModule",{value:!0});var Ee=le.default=void 0,vt=It(oe()),Et=e;Ee=le.default=(0,vt.default)((0,Et.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 de({spaceGateway:t,onConfirm:n,onCancel:o}){const{t:s}=E(),[c,r]=x.useState(!1),[a,i]=x.useState(!1),l=(d,h)=>{d==null||d.preventDefault(),d==null||d.stopPropagation(),r(h)},f=async d=>{try{d==null||d.stopPropagation(),i(!0),await(n==null?void 0:n(t)),r(!1)}catch(h){console.error(h),y.error(`${s("storage.space.gateway.delete.failed")}: ${Y(h)}`)}finally{r(!1),i(!1)}},S=d=>{l(d,!1),o==null||o(d)};return e.jsxs(e.Fragment,{children:[e.jsxs(V,{color:"red",onClick:d=>l(d,!0),children:[e.jsx(K,{style:{minWidth:24,color:"red"},children:e.jsx(rt,{fontSize:"small"})}),e.jsx(G,{style:{color:"red"},children:s("common.delete")})]}),e.jsx(Ze,{title:s("storage.spaces.gateway.delete.title"),open:c,confirmButton:{text:s("common.confirm"),props:{size:"small",variant:"contained",color:"error",loading:a}},cancelButton:{text:s("common.cancel"),props:{size:"small",variant:"outlined",loading:a}},onConfirm:f,onCancel:S,children:e.jsx(B,{sx:{wordBreak:"break-all"},children:s("common.delConfirmDescription",{data:`${t==null?void 0:t.name}`})})})]})}de.propTypes={spaceGateway:m.shape({name:m.string.isRequired,url:m.string.isRequired,protected:m.bool}).isRequired,onConfirm:m.func,onCancel:m.func};de.defaultProps={onConfirm:()=>{},onCancel:()=>{}};function pe({spaceGateway:t,selected:n,onDelete:o,onConnect:s,enableSwitchToSpace:c,backupInProgress:r,...a}){const[i,l]=x.useState(null),{t:f}=E(),[S,d]=x.useState(!1),h=(g,C)=>{g.stopPropagation(),g.preventDefault(),l(C&&g.currentTarget)},j=async g=>{try{d(!0),h(g,!1),await s(t)}catch(C){console.error(C),y.error(C.message)}finally{d(!1)}};return e.jsxs(e.Fragment,{children:[S||t!=null&&t.loading?e.jsx(F,{size:"24px"}):e.jsx(Qe,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions",variant:"outlined",size:"small",onClick:g=>h(g,!0),...a,children:e.jsx(at,{})}),e.jsxs(He,{id:"simple-menu",anchorEl:i,keepMounted:!0,open:!!i,onClose:g=>h(g,!1),children:[e.jsxs(V,{onClick:g=>{h(g,!1),window.open(t.endpoint?tt(t.endpoint):t.url)},children:[e.jsx(K,{style:{minWidth:24},children:e.jsx(Ie,{fontSize:"small"})}),e.jsx(G,{children:f("common.open")})]}),e.jsxs(V,{onClick:g=>{h(g,!1),window.open(st(t.endpoint))},children:[e.jsx(K,{style:{minWidth:24},children:e.jsx(Ee,{fontSize:"small"})}),e.jsx(G,{children:f("storage.spaces.strategy.viewBackupFiles")})]}),!n&&c&&e.jsxs(V,{onClick:j,children:[e.jsx(K,{style:{minWidth:24},children:e.jsx(ve,{fontSize:"small"})}),e.jsx(G,{children:f("storage.spaces.connect.switchToSpace")})]}),!r&&e.jsx(de,{spaceGateway:t,onConfirm:async()=>{l(null),await(o==null?void 0:o(t))},onCancel:()=>l(null)})]})]})}pe.propTypes={spaceGateway:m.shape({name:m.string.isRequired,url:m.string.isRequired,protected:m.bool,endpoint:m.string.isRequired,loading:m.bool}).isRequired,selected:m.bool.isRequired,enableSwitchToSpace:m.bool,onDelete:m.func,onConnect:m.func,backupInProgress:m.bool};pe.defaultProps={onDelete:()=>{},onConnect:()=>{},enableSwitchToSpace:!0,backupInProgress:!1};function ue({spaceGateway:t,spaceStatus:n,selected:o,onConnected:s,onDeleted:c,onBackedUp:r}){const{t:a,locale:i}=E(),{blocklet:l}=w(),{api:f,info:{did:S}}=M(),{appDid:d,appName:h,appDescription:j,scopes:g,appUrl:C,referrer:k}=Se({blocklet:l}),{backupProgress:u,updateSpaceGateway:T,deleteSpaceGateway:O,refreshBackupEndpoint:q}=N(),[D,U]=x.useState(!1),[I,L]=x.useState({open:!1,action:"one-click-authorization",checkTimeout:1e3*300,messages:{title:a("storage.spaces.authorize.title",{appName:h},i),scan:a("storage.spaces.authorize.scan",{appName:h},i),confirm:"",success:e.jsx(B,{gutterBottom:!0,children:a("storage.spaces.authorize.success")})},onClose:()=>{L(A=>({...A,open:!1}))}}),W=o&&!D&&n===ee.DISCONNECTED,Q=o&&!D&&!t.loading&&n===ee.CONNECTED,p=o&&D&&n===ee.CONNECTED,J=async()=>{try{if(await nt(t==null?void 0:t.endpoint)){await f.configBlocklet({input:{did:[l.meta.did],configs:[{key:P.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:t.endpoint}]}}),q(),y.success(a("storage.spaces.connect.switchToSpaceSucceeded",{name:t.name?`(${t.name})`:""})),s==null||s(null,t);return}}catch(A){console.error(A),s==null||s(A,t);return}L(A=>({...A,open:!0,prefix:se(t.url,"space/api/did"),baseUrl:new URL(t.url).origin,checkFn:xe.create({baseURL:se(t.url,"space")}).get,extraParams:{appDid:d,appName:h,appDescription:j,scopes:g,appUrl:C,referrer:k,nodeDid:S,spaceDid:t.did}}))},Re=async(A,he)=>{const _=he(A.endpoint),Ue=ne(_),b=A.space?he(A.space):{};if(t.did&&Ue!==t.did){L(Le=>({...Le,open:!1}));const H=a("storage.spaces.gateway.switch.failedForMismatchSpace",{name:b!=null&&b.name?b.name:""});y.error(H),s==null||s(new Error(H),t);return}const me={...t,name:b.name??"DID Space",did:b.did??ne(_),endpoint:_};await T(me),L(H=>({...H,open:!1})),s==null||s(null,me)},Te=async()=>{try{if(D)return;U(!0),await f.backupBlocklet({input:{appDid:l.appDid,to:"spaces"}})}catch(A){console.error(A),y.error(A.message),r==null||r(A,t)}finally{U(!0)}},Oe=async()=>{try{await O(t),y.success(a("storage.spaces.gateway.delete.succeeded",{name:`(${t.name})`})),c==null||c(null,t)}catch(A){console.error(A),c==null||c(A,t)}};return x.useEffect(()=>{u!=null&&u.completed?(o&&((u==null?void 0:u.progress)===100?(y.success(a("storage.spaces.backupSuccessfully")),r==null||r(null,t)):u.message&&(r==null||r(new Error(u==null?void 0:u.message),t)),u.progress=0,u.message=""),U(!1)):u.progress&&U(!0)},[u]),e.jsxs(e.Fragment,{children:[e.jsxs(v,{sx:{".action-btn":{borderRadius:1,marginLeft:1}},display:"flex",alignItems:"center",children:[Q&&e.jsx($,{className:"action-btn",variant:"outlined",size:"small",onClick:Te,children:a("storage.spaces.strategy.backupNow")}),W&&e.jsx($,{className:"action-btn",variant:"outlined",size:"small",onClick:J,children:a("storage.spaces.disconnected.reconnectNow")}),p&&e.jsxs($,{className:"action-btn",variant:"outlined",size:"small",sx:{minWidth:70},children:[e.jsx(F,{variant:"determinate",value:u==null?void 0:u.progress,size:14,sx:{mr:1}}),u==null?void 0:u.progress,"%"]}),e.jsx(ze,{forceConnected:!1,saveConnect:!1,prefix:I.prefix,open:I.open,popup:!0,action:I.action,baseUrl:I.baseUrl,checkFn:I.checkFn,onSuccess:Re,onClose:I.onClose,checkTimeout:I.checkTimeout,extraParams:I.extraParams,messages:I.messages,locale:i},"get-endpoint")]}),e.jsx(pe,{sx:{minWidth:32,padding:"2px 4px",ml:1},spaceGateway:t,selected:o,onDelete:Oe,onConnect:J,enableSwitchToSpace:(u==null?void 0:u.completed)||X(u==null?void 0:u.message),backupInProgress:p})]})}ue.propTypes={spaceGateway:m.shape({did:m.string.isRequired,name:m.string.isRequired,url:m.string.isRequired,endpoint:m.string.isRequired,protected:m.bool,loading:m.bool}).isRequired,spaceStatus:m.string.isRequired,selected:m.bool.isRequired,onConnected:m.func,onDeleted:m.func,onBackedUp:m.func};ue.defaultProps={onConnected:()=>{},onDeleted:()=>{},onBackedUp:()=>{}};function ke({...t}){const{t:n,locale:o}=E(),{spaceGateways:s,backups:c}=N(),r=[{label:"DID Spaces",name:"target",options:{customBodyRenderLite:a=>{var g;const{targetUrl:i,targetName:l,status:f,createdAt:S}=c[a],d=f===R.BACKUPS.STATUS.PROGRESS&&z().diff(S,"hours")>=R.BACKUPS.TIMEOUT_HOURS,h=f===R.BACKUPS.STATUS.SUCCEEDED&&!d,j=l||((g=s.find(C=>i==null?void 0:i.includes(ne(C==null?void 0:C.endpoint))))==null?void 0:g.name)||"Unknown DID Space";return h?e.jsx(lt,{fontSize:"16px",href:i,target:"_blank",children:j}):e.jsx(B,{variant:"body1",fontSize:"16px",children:j})}}},{label:n("common.strategy"),name:"strategy",options:{customBodyRender:a=>{const i=n(a===0?"common.auto":"common.manual");return e.jsx(te,{children:i})}}},{label:n("common.startTime"),name:"createdAt",options:{customBodyRender:a=>z(a).format("YYYY-MM-DD HH:mm:ss")}},{label:n("common.endTime"),name:"updatedAt",options:{customBodyRender:a=>X(a)?"":z(a).format("YYYY-MM-DD HH:mm:ss")}},{label:n("common.status"),name:"status",options:{customBodyRenderLite:a=>{const{status:i,message:l,createdAt:f}=(c==null?void 0:c[a])??{},S=i===R.BACKUPS.STATUS.PROGRESS&&z().diff(f,"hours")>=R.BACKUPS.TIMEOUT_HOURS,d=S&&n("common.timeoutError"),h=i===R.BACKUPS.STATUS.PROGRESS&&!S,j=i===R.BACKUPS.STATUS.SUCCEEDED&&!S;return h?e.jsxs(B,{display:"inline-flex",alignItems:"center",fontSize:"14px",children:[e.jsx(F,{sx:{marginRight:"4px"},size:"12px"}),n("common.progress")]}):j?e.jsx(te,{type:"success",children:n("common.succeeded")}):e.jsxs(v,{display:"inline-flex",alignItems:"center",children:[e.jsx(te,{type:"error",children:n("common.failed")}),"  ",e.jsx(Ve,{style:{display:"flex",alignItems:"center",flexShrink:0},title:l||d,children:e.jsx(Ke,{children:e.jsx(ct,{style:{width:"24px",height:"24px"},color:"error"})})})]})}}}];return e.jsx(v,{...t,children:c!=null&&c.length?e.jsx(it,{title:e.jsx(B,{fontSize:"1.2rem",fontWeight:"bold",children:n("storage.spaces.backup.records")}),data:c,columns:r,emptyNode:n("storage.spaces.record.emptyData",o),options:{download:!1,filter:!1,print:!1}}):e.jsxs(e.Fragment,{children:[e.jsx(v,{display:"flex",height:"56px",lineHeight:"56px",alignItems:"center",children:e.jsx(B,{fontSize:"1.2rem",fontWeight:"bold",children:n("storage.spaces.backup.records")})}),e.jsx(v,{color:"#9397A1",marginTop:"16px",marginBottom:"24px",children:n("storage.spaces.record.emptyData")})]})})}ke.propTypes={};function De({...t}){const{t:n}=E(),{autoBackup:o,updateAutoBackup:s}=N(),c=async()=>{try{const r=!(o!=null&&o.enabled);await s({enabled:r}),y.success(n(r?"storage.spaces.autoBackup.enabled":"storage.spaces.autoBackup.disabled"))}catch(r){y.error(r.message)}};return e.jsx(pt,{checked:!!(o!=null&&o.enabled),onChange:c,name:"enableWelcomePage",labelProps:{label:e.jsx(B,{marginRight:"8px",children:e.jsx("span",{children:n("storage.spaces.autoBackup.title")})})},style:{...t.style}})}De.propTypes={};function kt(){const{t}=E(),n=dt(),{spaceGateways:o,spaceGatewaysLoading:s,spaceGatewayIsSelected:c}=N(),r=s&&!(o!=null&&o.length),a=({spaceGateway:i,spaceStatus:l,selected:f,refresh:S})=>e.jsx(ue,{spaceGateway:i,spaceStatus:l,selected:f,onConnected:()=>S(),onBackedUp:d=>d&&S()});return e.jsxs(v,{display:"flex",flexDirection:"column",children:[e.jsxs(ut,{spacing:n?1:4,direction:n?"column":"row",alignItems:n?"space-between":"center",justifyContent:n?"center":"space-between",marginBottom:"12px",children:[e.jsx(B,{fontSize:"1.2rem",fontWeight:"bold",flexGrow:1,children:t("storage.spaces.connected.title")}),e.jsx(De,{}),n?e.jsx(Z,{sx:{width:"100%","& button:first-of-type":{width:"100%"}}}):e.jsx(Z,{})]}),e.jsx(v,{children:r?e.jsx(v,{display:"flex",justifyContent:"center",children:e.jsx(F,{})}):e.jsx(fe,{container:!0,spacing:1,children:e.jsx(e.Fragment,{children:o.map(i=>e.jsx(fe,{item:!0,xs:12,md:6,children:e.jsx(qe,{sx:{marginTop:"12px"},endpoint:i.endpoint,selected:c(i),action:a},i.endpoint)}))})})}),e.jsx(ke,{sx:{marginTop:"24px"}}),e.jsx(B,{fontSize:"1.2rem",fontWeight:"bold",mb:2,children:t("common.dataStorage")}),e.jsx(ye,{})]})}function Dt(){const{spaceGatewaysLoading:t,spaceGateways:n}=N();return t?e.jsx(Ge,{relative:"parent",children:e.jsx(F,{})}):X(n)?e.jsx(Ce,{}):e.jsx(kt,{})}function js(){return e.jsx(re,{children:e.jsx(Dt,{})})}export{js as default};
@@ -1,4 +1,4 @@
1
- import{b7 as c}from"./index-Ctfa52p5.js";var i={exports:{}};/*!
1
+ import{b9 as c}from"./index-Dd9xMZEz.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,4 +1,4 @@
1
- import{aF as Se,aE as Ue,aG as Ge,ai as Ye,aH as Y,aK as _,r as p,aI as Xe,aJ as Je,j as n,aM as L,aN as Ke,V as Qe,da as Ze,db as en,_ as nn,c5 as tn,at as ne,P as o,X as fe,Y as ge,bt as g,ac as on,aj as te,aB as oe,L as X,T as M,b as an,aC as be,B as k,bu as rn,I as D,dc as ve,H as ye,$ as sn,N as je,k as Z,dd as ln,l as U,de as dn,df as cn}from"./index-Ctfa52p5.js";import{d as we,D as ke}from"./Menu-BG_qisJ7.js";import{T as pn}from"./Toolbar-mIzrJcpi.js";import{H as $e}from"./Hidden-B_94bAwy.js";const ee={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5"};function un(e){return Se("MuiAppBar",e)}Ue("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const hn=["className","color","enableColorOnDark","position"],xn=e=>{const{color:t,position:a,classes:r}=e,l={root:["root",`color${Y(t)}`,`position${Y(a)}`]};return Ke(l,un,r)},G=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,mn=Ge(Ye,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,t[`position${Y(a.position)}`],t[`color${Y(a.color)}`]]}})(({theme:e,ownerState:t})=>{const a=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return _({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&_({},t.color==="default"&&{backgroundColor:a,color:e.palette.getContrastText(a)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&_({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&_({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:G(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:G(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:G(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:G(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),fn=p.forwardRef(function(t,a){const r=Xe({props:t,name:"MuiAppBar"}),{className:l,color:c="primary",enableColorOnDark:d=!1,position:i="fixed"}=r,u=Je(r,hn),s=_({},r,{color:c,position:i,enableColorOnDark:d}),x=xn(s);return n.jsx(mn,_({square:!0,component:"header",ownerState:s,elevation:4,className:L(x.root,l,i==="fixed"&&"mui-fixed"),ref:a},u))});function gn(e,t){var a,r=Qe(e),l=(a=t==null?void 0:t.wait)!==null&&a!==void 0?a:1e3,c=p.useMemo(function(){return Ze(function(){for(var d=[],i=0;i<arguments.length;i++)d[i]=arguments[i];return r.current.apply(r,en([],nn(d),!1))},l,t)},[]);return tn(function(){c.cancel()}),{run:c,cancel:c.cancel,flush:c.flush}}const bn=ne(n.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),vn=ne(n.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),yn=ne(n.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreHoriz"),ze=p.createContext(),jn=e=>{const t=p.useContext(ze);return p.useLayoutEffect(()=>{},[]),t};function Ne({children:e,...t}){const[a,r]=p.useState({inFullPage:!1,showToggleButton:!1,headerVisibleInFullPage:!0,footerVisibleInFullPage:!1,sidebarVisibleInFullPage:!1}),l=()=>{r(d=>({...d,inFullPage:!d.inFullPage}))},c=p.useMemo(()=>({...a,headerVisible:!a.inFullPage||a.headerVisibleInFullPage,footerVisible:!a.inFullPage||a.footerVisibleInFullPage,sidebarVisible:!a.inFullPage||a.sidebarVisibleInFullPage,toggleFullPage:l,configure:d=>r(i=>({...i,...d}))}),[a]);return n.jsx(ze.Provider,{value:c,...t,children:e})}Ne.propTypes={children:o.node.isRequired};var ae={},wn=ge;Object.defineProperty(ae,"__esModule",{value:!0});var Ce=ae.default=void 0,kn=wn(fe()),$n=n;Ce=ae.default=(0,kn.default)((0,$n.jsx)("path",{d:"M21 11V3h-8l3.29 3.29-10 10L3 13v8h8l-3.29-3.29 10-10z"}),"OpenInFull");var re={},zn=ge;Object.defineProperty(re,"__esModule",{value:!0});var Pe=re.default=void 0,Nn=zn(fe()),Cn=n;Pe=re.default=(0,Nn.default)((0,Cn.jsx)("path",{d:"M22 3.41 16.71 8.7 20 12h-8V4l3.29 3.29L20.59 2zM3.41 22l5.29-5.29L12 20v-8H4l3.29 3.29L2 20.59z"}),"CloseFullscreen");function se({name:e,size:t,alt:a,color:r,style:l,prefix:c,showBadge:d,...i}){const u=`${c}/${e}-${r.replace(/^#/,"")}.png`;return n.jsxs(Pn,{style:{width:t,height:t},children:[n.jsx(on,{width:t,height:t,alt:a||e,src:u,style:Object.assign({width:t},l),...i}),d&&n.jsx("i",{className:"badge-point"})]})}se.propTypes={name:o.string.isRequired,size:o.number,color:o.string,alt:o.string,style:o.object,prefix:o.string,showBadge:o.bool};se.defaultProps={size:36,color:"#000000",alt:"",style:{},prefix:"/images",showBadge:!1};const Pn=g("div")`
1
+ import{aH as Se,aG as Ue,aI as Ge,ak as Xe,aJ as X,aM as _,r as p,aK as Ye,aL as Qe,j as n,aO as R,aP as Je,X as Ke,db as Ze,dc as en,_ as nn,c5 as tn,av as ne,P as o,Z as fe,$ as ge,bv as g,ae as on,al as te,aD as oe,L as Y,T as M,b as an,aE as be,B as k,bw as rn,I as H,dd as ve,H as ye,a1 as sn,Q as je,k as Z,de as ln,l as U,df as dn,dg as cn}from"./index-Dd9xMZEz.js";import{d as we,D as ke}from"./Menu-D_GBf1CB.js";import{T as pn}from"./Toolbar-CZhQZvMx.js";import{H as $e}from"./Hidden-vR0aN6pm.js";const ee={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5"};function un(e){return Se("MuiAppBar",e)}Ue("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const hn=["className","color","enableColorOnDark","position"],xn=e=>{const{color:t,position:a,classes:r}=e,l={root:["root",`color${X(t)}`,`position${X(a)}`]};return Je(l,un,r)},G=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,mn=Ge(Xe,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,t[`position${X(a.position)}`],t[`color${X(a.color)}`]]}})(({theme:e,ownerState:t})=>{const a=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return _({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&_({},t.color==="default"&&{backgroundColor:a,color:e.palette.getContrastText(a)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&_({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&_({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:G(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:G(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:G(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:G(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),fn=p.forwardRef(function(t,a){const r=Ye({props:t,name:"MuiAppBar"}),{className:l,color:c="primary",enableColorOnDark:d=!1,position:i="fixed"}=r,u=Qe(r,hn),s=_({},r,{color:c,position:i,enableColorOnDark:d}),x=xn(s);return n.jsx(mn,_({square:!0,component:"header",ownerState:s,elevation:4,className:R(x.root,l,i==="fixed"&&"mui-fixed"),ref:a},u))});function gn(e,t){var a,r=Ke(e),l=(a=t==null?void 0:t.wait)!==null&&a!==void 0?a:1e3,c=p.useMemo(function(){return Ze(function(){for(var d=[],i=0;i<arguments.length;i++)d[i]=arguments[i];return r.current.apply(r,en([],nn(d),!1))},l,t)},[]);return tn(function(){c.cancel()}),{run:c,cancel:c.cancel,flush:c.flush}}const bn=ne(n.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),vn=ne(n.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),yn=ne(n.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreHoriz"),ze=p.createContext(),jn=e=>{const t=p.useContext(ze);return p.useLayoutEffect(()=>{},[]),t};function Ne({children:e,...t}){const[a,r]=p.useState({inFullPage:!1,showToggleButton:!1,headerVisibleInFullPage:!0,footerVisibleInFullPage:!1,sidebarVisibleInFullPage:!1}),l=()=>{r(d=>({...d,inFullPage:!d.inFullPage}))},c=p.useMemo(()=>({...a,headerVisible:!a.inFullPage||a.headerVisibleInFullPage,footerVisible:!a.inFullPage||a.footerVisibleInFullPage,sidebarVisible:!a.inFullPage||a.sidebarVisibleInFullPage,toggleFullPage:l,configure:d=>r(i=>({...i,...d}))}),[a]);return n.jsx(ze.Provider,{value:c,...t,children:e})}Ne.propTypes={children:o.node.isRequired};var ae={},wn=ge;Object.defineProperty(ae,"__esModule",{value:!0});var Ce=ae.default=void 0,kn=wn(fe()),$n=n;Ce=ae.default=(0,kn.default)((0,$n.jsx)("path",{d:"M21 11V3h-8l3.29 3.29-10 10L3 13v8h8l-3.29-3.29 10-10z"}),"OpenInFull");var re={},zn=ge;Object.defineProperty(re,"__esModule",{value:!0});var Pe=re.default=void 0,Nn=zn(fe()),Cn=n;Pe=re.default=(0,Nn.default)((0,Cn.jsx)("path",{d:"M22 3.41 16.71 8.7 20 12h-8V4l3.29 3.29L20.59 2zM3.41 22l5.29-5.29L12 20v-8H4l3.29 3.29L2 20.59z"}),"CloseFullscreen");function se({name:e,size:t,alt:a,color:r,style:l,prefix:c,showBadge:d,...i}){const u=`${c}/${e}-${r.replace(/^#/,"")}.png`;return n.jsxs(Pn,{style:{width:t,height:t},children:[n.jsx(on,{width:t,height:t,alt:a||e,src:u,style:Object.assign({width:t},l),...i}),d&&n.jsx("i",{className:"badge-point"})]})}se.propTypes={name:o.string.isRequired,size:o.number,color:o.string,alt:o.string,style:o.object,prefix:o.string,showBadge:o.bool};se.defaultProps={size:36,color:"#000000",alt:"",style:{},prefix:"/images",showBadge:!1};const Pn=g("div")`
2
2
  position: relative;
3
3
  .badge-point {
4
4
  position: absolute;
@@ -12,7 +12,7 @@ import{aF as Se,aE as Ue,aG as Ge,ai as Ye,aH as Y,aK as _,r as p,aI as Xe,aJ as
12
12
  0px 1px 4px rgba(0, 0, 0, 0.3),
13
13
  0px 0px 20px rgba(0, 0, 0, 0.1);
14
14
  }
15
- `;var Ie=function(t){return n.jsx("svg",{...t,children:n.jsxs("g",{fill:"none",fillRule:"evenodd",stroke:"#FFF",children:[n.jsx("path",{d:"M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25m-43.301 0l43.301-25"}),n.jsx("path",{d:"M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z"})]})})};Ie.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"45",height:"52",viewBox:"0 0 45 52"};var Me=function(t){return n.jsx("svg",{...t,children:n.jsx("path",{fill:"#FFF",fillRule:"evenodd",d:"M6.5.053h2.864L16.028 18h-2.114l-1.391-3.795H3.504L2.14 18H0L6.5.053zm1.474 1.481L4.04 12.563h7.895L7.975 1.534zm14.44 3.542c1.27 0 2.198.296 2.78.892.58.597.871 1.52.871 2.765v.36c0 .117-.008.245-.026.385h-1.826c.018-.14.027-.292.027-.452v-.48c0-.766-.186-1.283-.551-1.55-.367-.266-.916-.4-1.65-.4-.968 0-1.698.24-2.189.723-.493.48-.738 1.208-.738 2.187v8.308h-1.88V5.341h1.824l-.079 1.443c.376-.614.863-1.053 1.463-1.316a4.868 4.868 0 0 1 1.974-.392zM35.95 15.903c.501-.328.752-1.205.752-2.63h1.852c0 1.924-.403 3.178-1.208 3.765-.806.589-2.158.882-4.055.882-2.65 0-4.24-.538-4.766-1.616-.529-1.076-.793-2.781-.793-5.114 0-2.118.367-3.645 1.102-4.581.732-.934 2.209-1.401 4.43-1.401 1.378 0 2.569.221 3.572.665 1.002.446 1.503 1.497 1.503 3.153v.188a.234.234 0 0 0-.027.106v.106h-1.826c0-1.12-.228-1.851-.685-2.188-.455-.34-1.23-.507-2.322-.507-1.665 0-2.713.259-3.142.782-.43.524-.646 1.67-.646 3.44V12.2c0 1.4.161 2.448.485 3.15.322.7 1.297 1.048 2.926 1.048 1.397 0 2.346-.165 2.848-.495zm15.87-.318c.606-.328.912-1.263.912-2.805 0-.924-.147-1.69-.444-2.302-.294-.611-1.007-.917-2.133-.917h-7.09v6.516h5.528c1.543 0 2.617-.165 3.226-.492zm-8.754-13.85v6.036h5.665c1.325 0 2.239-.214 2.737-.643.503-.428.755-1.288.755-2.575 0-1.09-.192-1.834-.577-2.226-.385-.394-1.116-.591-2.19-.591h-6.39zM52 8.466c1.185.322 1.956.816 2.314 1.482.359.67.54 1.581.54 2.739 0 1.6-.325 2.858-.97 3.764-.647.909-1.874 1.363-3.686 1.363H41.05V0h8.62c1.592 0 2.759.312 3.503.934.744.624 1.115 1.78 1.115 3.473 0 1.014-.129 1.855-.386 2.522-.258.669-.89 1.181-1.903 1.536zm5.43 9.348V.001h1.907v17.812H57.43zm13.374-6.168v-.708c0-1.539-.141-2.636-.426-3.297-.284-.658-1.191-.99-2.718-.99h-.401c-1.617 0-2.625.25-3.025.75-.399.5-.599 1.632-.599 3.4v2.021c0 .206.008.407.024.602a9.48 9.48 0 0 0 .216 1.474c.106.465.275.822.505 1.072.196.179.435.302.72.373.283.072.586.116.905.135h1.254c1.083 0 1.914-.151 2.492-.456.577-.302.9-1.043.972-2.22a18.338 18.338 0 0 0 .054-1.447c.015-.233.027-.47.027-.71zm-3.786-6.518c2.399 0 3.956.414 4.672 1.243.717.828 1.074 2.418 1.074 4.766 0 2.048-.219 3.704-.657 4.966C71.668 17.367 70.16 18 67.581 18c-2.237 0-3.782-.347-4.632-1.042-.85-.694-1.275-2.205-1.275-4.54v-1.174c0-2.12.318-3.669.954-4.646.635-.98 2.099-1.471 4.39-1.471zm16.434 10.776c.501-.328.752-1.205.752-2.63h1.853c0 1.924-.403 3.178-1.209 3.765-.804.589-2.157.882-4.054.882-2.648 0-4.24-.538-4.767-1.616-.528-1.076-.79-2.781-.79-5.114 0-2.118.365-3.645 1.1-4.581.732-.934 2.21-1.401 4.43-1.401 1.377 0 2.568.221 3.571.665 1.003.446 1.504 1.497 1.504 3.153v.188a.232.232 0 0 0-.026.106v.106H83.99c0-1.12-.229-1.851-.686-2.188-.455-.34-1.23-.507-2.323-.507-1.665 0-2.712.259-3.142.782-.43.524-.643 1.67-.643 3.44V12.2c0 1.4.16 2.448.482 3.15.324.7 1.298 1.048 2.927 1.048 1.397 0 2.346-.165 2.847-.495zm9.236-4.82L99 17.813h-2.47l-5.317-6.01h-.752v6.01h-1.907V0h1.907v10.362h.752l4.512-5.02h2.309l-5.346 5.741z"})})};Me.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"99",height:"18",viewBox:"0 0 99 18"};var Re=function(t){return n.jsx("svg",{...t,children:n.jsxs("g",{fill:"none",fillRule:"evenodd",stroke:"#000",children:[n.jsx("path",{d:"M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25m-43.301 0l43.301-25"}),n.jsx("path",{d:"M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z"})]})})};Re.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"45",height:"52",viewBox:"0 0 45 52"};var Le=function(t){return n.jsx("svg",{...t,children:n.jsx("path",{fillRule:"evenodd",d:"M6.5.053h2.864L16.028 18h-2.114l-1.391-3.795H3.504L2.14 18H0L6.5.053zm1.474 1.481L4.04 12.563h7.895L7.975 1.534zm14.44 3.542c1.27 0 2.198.296 2.78.892.58.597.871 1.52.871 2.765v.36c0 .117-.008.245-.026.385h-1.826c.018-.14.027-.292.027-.452v-.48c0-.766-.186-1.283-.551-1.55-.367-.266-.916-.4-1.65-.4-.968 0-1.698.24-2.189.723-.493.48-.738 1.208-.738 2.187v8.308h-1.88V5.341h1.824l-.079 1.443c.376-.614.863-1.053 1.463-1.316a4.868 4.868 0 0 1 1.974-.392zM35.95 15.903c.501-.328.752-1.205.752-2.63h1.852c0 1.924-.403 3.178-1.208 3.765-.806.589-2.158.882-4.055.882-2.65 0-4.24-.538-4.766-1.616-.529-1.076-.793-2.781-.793-5.114 0-2.118.367-3.645 1.102-4.581.732-.934 2.209-1.401 4.43-1.401 1.378 0 2.569.221 3.572.665 1.002.446 1.503 1.497 1.503 3.153v.188a.234.234 0 0 0-.027.106v.106h-1.826c0-1.12-.228-1.851-.685-2.188-.455-.34-1.23-.507-2.322-.507-1.665 0-2.713.259-3.142.782-.43.524-.646 1.67-.646 3.44V12.2c0 1.4.161 2.448.485 3.15.322.7 1.297 1.048 2.926 1.048 1.397 0 2.346-.165 2.848-.495zm15.87-.318c.606-.328.912-1.263.912-2.805 0-.924-.147-1.69-.444-2.302-.294-.611-1.007-.917-2.133-.917h-7.09v6.516h5.528c1.543 0 2.617-.165 3.226-.492zm-8.754-13.85v6.036h5.665c1.325 0 2.239-.214 2.737-.643.503-.428.755-1.288.755-2.575 0-1.09-.192-1.834-.577-2.226-.385-.394-1.116-.591-2.19-.591h-6.39zM52 8.466c1.185.322 1.956.816 2.314 1.482.359.67.54 1.581.54 2.739 0 1.6-.325 2.858-.97 3.764-.647.909-1.874 1.363-3.686 1.363H41.05V0h8.62c1.592 0 2.759.312 3.503.934.744.624 1.115 1.78 1.115 3.473 0 1.014-.129 1.855-.386 2.522-.258.669-.89 1.181-1.903 1.536zm5.43 9.348V.001h1.907v17.812H57.43zm13.374-6.168v-.708c0-1.539-.141-2.636-.426-3.297-.284-.658-1.191-.99-2.718-.99h-.401c-1.617 0-2.625.25-3.025.75-.399.5-.599 1.632-.599 3.4v2.021c0 .206.008.407.024.602a9.48 9.48 0 0 0 .216 1.474c.106.465.275.822.505 1.072.196.179.435.302.72.373.283.072.586.116.905.135h1.254c1.083 0 1.914-.151 2.492-.456.577-.302.9-1.043.972-2.22a18.338 18.338 0 0 0 .054-1.447c.015-.233.027-.47.027-.71zm-3.786-6.518c2.399 0 3.956.414 4.672 1.243.717.828 1.074 2.418 1.074 4.766 0 2.048-.219 3.704-.657 4.966C71.668 17.367 70.16 18 67.581 18c-2.237 0-3.782-.347-4.632-1.042-.85-.694-1.275-2.205-1.275-4.54v-1.174c0-2.12.318-3.669.954-4.646.635-.98 2.099-1.471 4.39-1.471zm16.434 10.776c.501-.328.752-1.205.752-2.63h1.853c0 1.924-.403 3.178-1.209 3.765-.804.589-2.157.882-4.054.882-2.648 0-4.24-.538-4.767-1.616-.528-1.076-.79-2.781-.79-5.114 0-2.118.365-3.645 1.1-4.581.732-.934 2.21-1.401 4.43-1.401 1.377 0 2.568.221 3.571.665 1.003.446 1.504 1.497 1.504 3.153v.188a.232.232 0 0 0-.026.106v.106H83.99c0-1.12-.229-1.851-.686-2.188-.455-.34-1.23-.507-2.323-.507-1.665 0-2.712.259-3.142.782-.43.524-.643 1.67-.643 3.44V12.2c0 1.4.16 2.448.482 3.15.324.7 1.298 1.048 2.927 1.048 1.397 0 2.346-.165 2.847-.495zm9.236-4.82L99 17.813h-2.47l-5.317-6.01h-.752v6.01h-1.907V0h1.907v10.362h.752l4.512-5.02h2.309l-5.346 5.741z"})})};Le.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"99",height:"18",viewBox:"0 0 99 18"};function E({showText:e,showLogo:t,mode:a,layout:r,...l}){const c=a==="light"?n.jsx(Ie,{}):n.jsx(Re,{}),d=a==="light"?n.jsx(Me,{className:"logo-text"}):n.jsx(Le,{className:"logo-text"});return n.jsxs(In,{layout:r,...l,children:[t&&c,e&&d]})}E.propTypes={mode:o.oneOf(["light","dark"]),layout:o.oneOf(["vertical","horizontal"]),showText:o.bool,showLogo:o.bool};E.defaultProps={mode:"dark",layout:"vertical",showText:!0,showLogo:!0};const In=g("span")`
15
+ `;var Ie=function(t){return n.jsx("svg",{...t,children:n.jsxs("g",{fill:"none",fillRule:"evenodd",stroke:"#FFF",children:[n.jsx("path",{d:"M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25m-43.301 0l43.301-25"}),n.jsx("path",{d:"M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z"})]})})};Ie.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"45",height:"52",viewBox:"0 0 45 52"};var Me=function(t){return n.jsx("svg",{...t,children:n.jsx("path",{fill:"#FFF",fillRule:"evenodd",d:"M6.5.053h2.864L16.028 18h-2.114l-1.391-3.795H3.504L2.14 18H0L6.5.053zm1.474 1.481L4.04 12.563h7.895L7.975 1.534zm14.44 3.542c1.27 0 2.198.296 2.78.892.58.597.871 1.52.871 2.765v.36c0 .117-.008.245-.026.385h-1.826c.018-.14.027-.292.027-.452v-.48c0-.766-.186-1.283-.551-1.55-.367-.266-.916-.4-1.65-.4-.968 0-1.698.24-2.189.723-.493.48-.738 1.208-.738 2.187v8.308h-1.88V5.341h1.824l-.079 1.443c.376-.614.863-1.053 1.463-1.316a4.868 4.868 0 0 1 1.974-.392zM35.95 15.903c.501-.328.752-1.205.752-2.63h1.852c0 1.924-.403 3.178-1.208 3.765-.806.589-2.158.882-4.055.882-2.65 0-4.24-.538-4.766-1.616-.529-1.076-.793-2.781-.793-5.114 0-2.118.367-3.645 1.102-4.581.732-.934 2.209-1.401 4.43-1.401 1.378 0 2.569.221 3.572.665 1.002.446 1.503 1.497 1.503 3.153v.188a.234.234 0 0 0-.027.106v.106h-1.826c0-1.12-.228-1.851-.685-2.188-.455-.34-1.23-.507-2.322-.507-1.665 0-2.713.259-3.142.782-.43.524-.646 1.67-.646 3.44V12.2c0 1.4.161 2.448.485 3.15.322.7 1.297 1.048 2.926 1.048 1.397 0 2.346-.165 2.848-.495zm15.87-.318c.606-.328.912-1.263.912-2.805 0-.924-.147-1.69-.444-2.302-.294-.611-1.007-.917-2.133-.917h-7.09v6.516h5.528c1.543 0 2.617-.165 3.226-.492zm-8.754-13.85v6.036h5.665c1.325 0 2.239-.214 2.737-.643.503-.428.755-1.288.755-2.575 0-1.09-.192-1.834-.577-2.226-.385-.394-1.116-.591-2.19-.591h-6.39zM52 8.466c1.185.322 1.956.816 2.314 1.482.359.67.54 1.581.54 2.739 0 1.6-.325 2.858-.97 3.764-.647.909-1.874 1.363-3.686 1.363H41.05V0h8.62c1.592 0 2.759.312 3.503.934.744.624 1.115 1.78 1.115 3.473 0 1.014-.129 1.855-.386 2.522-.258.669-.89 1.181-1.903 1.536zm5.43 9.348V.001h1.907v17.812H57.43zm13.374-6.168v-.708c0-1.539-.141-2.636-.426-3.297-.284-.658-1.191-.99-2.718-.99h-.401c-1.617 0-2.625.25-3.025.75-.399.5-.599 1.632-.599 3.4v2.021c0 .206.008.407.024.602a9.48 9.48 0 0 0 .216 1.474c.106.465.275.822.505 1.072.196.179.435.302.72.373.283.072.586.116.905.135h1.254c1.083 0 1.914-.151 2.492-.456.577-.302.9-1.043.972-2.22a18.338 18.338 0 0 0 .054-1.447c.015-.233.027-.47.027-.71zm-3.786-6.518c2.399 0 3.956.414 4.672 1.243.717.828 1.074 2.418 1.074 4.766 0 2.048-.219 3.704-.657 4.966C71.668 17.367 70.16 18 67.581 18c-2.237 0-3.782-.347-4.632-1.042-.85-.694-1.275-2.205-1.275-4.54v-1.174c0-2.12.318-3.669.954-4.646.635-.98 2.099-1.471 4.39-1.471zm16.434 10.776c.501-.328.752-1.205.752-2.63h1.853c0 1.924-.403 3.178-1.209 3.765-.804.589-2.157.882-4.054.882-2.648 0-4.24-.538-4.767-1.616-.528-1.076-.79-2.781-.79-5.114 0-2.118.365-3.645 1.1-4.581.732-.934 2.21-1.401 4.43-1.401 1.377 0 2.568.221 3.571.665 1.003.446 1.504 1.497 1.504 3.153v.188a.232.232 0 0 0-.026.106v.106H83.99c0-1.12-.229-1.851-.686-2.188-.455-.34-1.23-.507-2.323-.507-1.665 0-2.712.259-3.142.782-.43.524-.643 1.67-.643 3.44V12.2c0 1.4.16 2.448.482 3.15.324.7 1.298 1.048 2.927 1.048 1.397 0 2.346-.165 2.847-.495zm9.236-4.82L99 17.813h-2.47l-5.317-6.01h-.752v6.01h-1.907V0h1.907v10.362h.752l4.512-5.02h2.309l-5.346 5.741z"})})};Me.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"99",height:"18",viewBox:"0 0 99 18"};var Le=function(t){return n.jsx("svg",{...t,children:n.jsxs("g",{fill:"none",fillRule:"evenodd",stroke:"#000",children:[n.jsx("path",{d:"M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25m-43.301 0l43.301-25"}),n.jsx("path",{d:"M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z"})]})})};Le.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"45",height:"52",viewBox:"0 0 45 52"};var Re=function(t){return n.jsx("svg",{...t,children:n.jsx("path",{fillRule:"evenodd",d:"M6.5.053h2.864L16.028 18h-2.114l-1.391-3.795H3.504L2.14 18H0L6.5.053zm1.474 1.481L4.04 12.563h7.895L7.975 1.534zm14.44 3.542c1.27 0 2.198.296 2.78.892.58.597.871 1.52.871 2.765v.36c0 .117-.008.245-.026.385h-1.826c.018-.14.027-.292.027-.452v-.48c0-.766-.186-1.283-.551-1.55-.367-.266-.916-.4-1.65-.4-.968 0-1.698.24-2.189.723-.493.48-.738 1.208-.738 2.187v8.308h-1.88V5.341h1.824l-.079 1.443c.376-.614.863-1.053 1.463-1.316a4.868 4.868 0 0 1 1.974-.392zM35.95 15.903c.501-.328.752-1.205.752-2.63h1.852c0 1.924-.403 3.178-1.208 3.765-.806.589-2.158.882-4.055.882-2.65 0-4.24-.538-4.766-1.616-.529-1.076-.793-2.781-.793-5.114 0-2.118.367-3.645 1.102-4.581.732-.934 2.209-1.401 4.43-1.401 1.378 0 2.569.221 3.572.665 1.002.446 1.503 1.497 1.503 3.153v.188a.234.234 0 0 0-.027.106v.106h-1.826c0-1.12-.228-1.851-.685-2.188-.455-.34-1.23-.507-2.322-.507-1.665 0-2.713.259-3.142.782-.43.524-.646 1.67-.646 3.44V12.2c0 1.4.161 2.448.485 3.15.322.7 1.297 1.048 2.926 1.048 1.397 0 2.346-.165 2.848-.495zm15.87-.318c.606-.328.912-1.263.912-2.805 0-.924-.147-1.69-.444-2.302-.294-.611-1.007-.917-2.133-.917h-7.09v6.516h5.528c1.543 0 2.617-.165 3.226-.492zm-8.754-13.85v6.036h5.665c1.325 0 2.239-.214 2.737-.643.503-.428.755-1.288.755-2.575 0-1.09-.192-1.834-.577-2.226-.385-.394-1.116-.591-2.19-.591h-6.39zM52 8.466c1.185.322 1.956.816 2.314 1.482.359.67.54 1.581.54 2.739 0 1.6-.325 2.858-.97 3.764-.647.909-1.874 1.363-3.686 1.363H41.05V0h8.62c1.592 0 2.759.312 3.503.934.744.624 1.115 1.78 1.115 3.473 0 1.014-.129 1.855-.386 2.522-.258.669-.89 1.181-1.903 1.536zm5.43 9.348V.001h1.907v17.812H57.43zm13.374-6.168v-.708c0-1.539-.141-2.636-.426-3.297-.284-.658-1.191-.99-2.718-.99h-.401c-1.617 0-2.625.25-3.025.75-.399.5-.599 1.632-.599 3.4v2.021c0 .206.008.407.024.602a9.48 9.48 0 0 0 .216 1.474c.106.465.275.822.505 1.072.196.179.435.302.72.373.283.072.586.116.905.135h1.254c1.083 0 1.914-.151 2.492-.456.577-.302.9-1.043.972-2.22a18.338 18.338 0 0 0 .054-1.447c.015-.233.027-.47.027-.71zm-3.786-6.518c2.399 0 3.956.414 4.672 1.243.717.828 1.074 2.418 1.074 4.766 0 2.048-.219 3.704-.657 4.966C71.668 17.367 70.16 18 67.581 18c-2.237 0-3.782-.347-4.632-1.042-.85-.694-1.275-2.205-1.275-4.54v-1.174c0-2.12.318-3.669.954-4.646.635-.98 2.099-1.471 4.39-1.471zm16.434 10.776c.501-.328.752-1.205.752-2.63h1.853c0 1.924-.403 3.178-1.209 3.765-.804.589-2.157.882-4.054.882-2.648 0-4.24-.538-4.767-1.616-.528-1.076-.79-2.781-.79-5.114 0-2.118.365-3.645 1.1-4.581.732-.934 2.21-1.401 4.43-1.401 1.377 0 2.568.221 3.571.665 1.003.446 1.504 1.497 1.504 3.153v.188a.232.232 0 0 0-.026.106v.106H83.99c0-1.12-.229-1.851-.686-2.188-.455-.34-1.23-.507-2.323-.507-1.665 0-2.712.259-3.142.782-.43.524-.643 1.67-.643 3.44V12.2c0 1.4.16 2.448.482 3.15.324.7 1.298 1.048 2.927 1.048 1.397 0 2.346-.165 2.847-.495zm9.236-4.82L99 17.813h-2.47l-5.317-6.01h-.752v6.01h-1.907V0h1.907v10.362h.752l4.512-5.02h2.309l-5.346 5.741z"})})};Re.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"99",height:"18",viewBox:"0 0 99 18"};function E({showText:e,showLogo:t,mode:a,layout:r,...l}){const c=a==="light"?n.jsx(Ie,{}):n.jsx(Le,{}),d=a==="light"?n.jsx(Me,{className:"logo-text"}):n.jsx(Re,{className:"logo-text"});return n.jsxs(In,{layout:r,...l,children:[t&&c,e&&d]})}E.propTypes={mode:o.oneOf(["light","dark"]),layout:o.oneOf(["vertical","horizontal"]),showText:o.bool,showLogo:o.bool};E.defaultProps={mode:"dark",layout:"vertical",showText:!0,showLogo:!0};const In=g("span")`
16
16
  display: inline-flex;
17
17
  flex-direction: ${e=>e.layout==="horizontal"?"row":"column"};
18
18
  justify-content: center;
@@ -22,7 +22,7 @@ import{aF as Se,aE as Ue,aG as Ge,ai as Ye,aH as Y,aK as _,r as p,aI as Xe,aJ as
22
22
  ${e=>e.layout==="vertical"?"margin-top: 8px;":""}
23
23
  ${e=>e.layout==="vertical"?"":"margin-left: 8px;"};
24
24
  }
25
- `;function ie({images:e,links:t,prefix:a,addons:r,logo:l,...c}){const d=te(),i=oe(),u=(s,x)=>new RegExp(`/${x}`).test(i.pathname);return n.jsxs(Mn,{...c,children:[n.jsx(X,{to:"/",className:"sidebar-logo",children:l||n.jsx(E,{showText:!1,size:20})}),t.map(({url:s,name:x,title:m,showBadge:y})=>{const j=u(s,x);return n.jsxs(Rn,{component:X,selected:j,to:s,children:[n.jsx(se,{name:e[x],size:36,color:j?"#00c2c4":d.typography.color.main,prefix:a,showBadge:y}),n.jsx(M,{component:"span",className:"menu-title",children:m})]},s)}),n.jsx("div",{style:{flex:1}}),r]})}ie.propTypes={images:o.object.isRequired,links:o.array.isRequired,prefix:o.string,addons:o.any,logo:o.any};ie.defaultProps={prefix:"/images",addons:null,logo:null};const Mn=p.memo(g("div")`
25
+ `;function ie({images:e,links:t,prefix:a,addons:r,logo:l,...c}){const d=te(),i=oe(),u=(s,x)=>new RegExp(`/${x}`).test(i.pathname);return n.jsxs(Mn,{...c,children:[n.jsx(Y,{to:"/",className:"sidebar-logo",children:l||n.jsx(E,{showText:!1,size:20})}),t.map(({url:s,name:x,title:m,showBadge:y})=>{const j=u(s,x);return n.jsxs(Ln,{component:Y,selected:j,to:s,children:[n.jsx(se,{name:e[x],size:36,color:j?"#00c2c4":d.typography.color.main,prefix:a,showBadge:y}),n.jsx(M,{component:"span",className:"menu-title",children:m})]},s)}),n.jsx("div",{style:{flex:1}}),r]})}ie.propTypes={images:o.object.isRequired,links:o.array.isRequired,prefix:o.string,addons:o.any,logo:o.any};ie.defaultProps={prefix:"/images",addons:null,logo:null};const Mn=p.memo(g("div")`
26
26
  flex: 1;
27
27
  display: flex;
28
28
  flex-direction: column;
@@ -43,7 +43,7 @@ import{aF as Se,aE as Ue,aG as Ge,ai as Ye,aH as Y,aK as _,r as p,aI as Xe,aJ as
43
43
  display: block;
44
44
  }
45
45
  }
46
- `),me="linear-gradient(32deg, rgba(144, 255, 230, 0.1), rgba(144, 255, 230, 0))",Rn=g(an)`
46
+ `),me="linear-gradient(32deg, rgba(144, 255, 230, 0.1), rgba(144, 255, 230, 0))",Ln=g(an)`
47
47
  && {
48
48
  display: flex;
49
49
  flex-direction: column;
@@ -72,7 +72,7 @@ import{aF as Se,aE as Ue,aG as Ge,ai as Ye,aH as Y,aK as _,r as p,aI as Xe,aJ as
72
72
  color: ${e=>e.theme.palette.text.primary};
73
73
  }
74
74
  }
75
- `,Ln=g(fn)`
75
+ `,Rn=g(fn)`
76
76
  && {
77
77
  z-index: ${e=>e.theme.zIndex.drawer};
78
78
  background: ${e=>e.theme.palette.background.default};
@@ -142,7 +142,7 @@ import{aF as Se,aE as Ue,aG as Ge,ai as Ye,aH as Y,aK as _,r as p,aI as Xe,aJ as
142
142
  display: block;
143
143
  }
144
144
  }
145
- `;function le({children:e,brand:t,brandAddon:a,description:r,addons:l,onToggleMenu:c,homeUrl:d,logo:i,...u}){return n.jsx(Ln,{position:"sticky",className:"header",...u,children:n.jsxs(pn,{disableGutters:!1,className:"header-toolbar",children:[n.jsx(be,{color:"inherit","aria-label":"open drawer",edge:"start",className:"header-menu","aira-label":"header menu button",onClick:c,children:n.jsx(we,{})}),n.jsxs(X,{to:d,className:"header-link",children:[n.jsx($e,{mdDown:!0,children:n.jsx("div",{className:"header-logo",children:i||n.jsx(E,{showText:!1})})}),n.jsxs("div",{className:"header-title",children:[n.jsxs(M,{component:"h2",noWrap:!0,className:"header-title__primary",children:[t,a]}),n.jsx(M,{component:"p",noWrap:!0,className:"header-title__secondary",children:r})]})]}),n.jsx(k,{flexGrow:1}),!!e&&n.jsx("div",{className:"header-children",children:e}),n.jsx("div",{className:"header-addons",children:l})]})})}le.propTypes={onToggleMenu:o.func.isRequired,brand:o.string.isRequired,brandAddon:o.object,description:o.any.isRequired,children:o.any,addons:o.any,homeUrl:o.string,logo:o.any};le.defaultProps={children:null,addons:null,brandAddon:null,homeUrl:"/",logo:null};function A(e){var m;const t=rn(e,A,["dark","style"]),{className:a,copyStart:r,style:l,brand:c,dark:d,addon:i}=t,u=`${new Date().getFullYear()}`,s=`${r}`,x=u===s?u:`${s}-${u}`;return n.jsxs(Tn,{className:a,style:l,dark:d,children:[n.jsx(D,{maxWidth:!1,children:n.jsxs(M,{component:"div",className:"footer",children:[n.jsxs(M,{component:"p",className:"footer-item",children:[n.jsxs("span",{className:"footer-copy",children:["Copyright © ",x," "]}),n.jsx("span",{className:"footer-brand",children:c})]}),i&&n.jsx(M,{component:"div",className:"footer-item",sx:{order:{xs:"-1",md:"initial"},ml:{xs:0,md:"auto"},width:{xs:"100%",md:"auto"}},children:i}),n.jsxs(M,{component:"p",className:"footer-item",style:{justifyContent:"flex-end",flexShrink:0},children:["Powered by",n.jsx(E,{mode:d?"light":"dark",layout:"horizontal",className:"logo-container"})]})]})}),n.jsx(k,{position:"absolute",right:16,bottom:0,fontSize:12,sx:{color:"transparent","::selection":{background:"#000",color:"#fff"}},children:(m=window==null?void 0:window.blocklet)==null?void 0:m.version})]})}A.propTypes={dark:o.bool,className:o.string,copyStart:o.oneOfType([o.string,o.number]),brand:o.string,style:o.object,addon:o.node};A.defaultProps={dark:!1,brand:"ArcBlock",copyStart:"2017",className:"",style:{},addon:null};const Tn=g("div",{shouldForwardProp:e=>e!=="dark"})`
145
+ `;function le({children:e,brand:t,brandAddon:a,description:r,addons:l,onToggleMenu:c,homeUrl:d,logo:i,...u}){return n.jsx(Rn,{position:"sticky",className:"header",...u,children:n.jsxs(pn,{disableGutters:!1,className:"header-toolbar",children:[n.jsx(be,{color:"inherit","aria-label":"open drawer",edge:"start",className:"header-menu","aira-label":"header menu button",onClick:c,children:n.jsx(we,{})}),n.jsxs(Y,{to:d,className:"header-link",children:[n.jsx($e,{mdDown:!0,children:n.jsx("div",{className:"header-logo",children:i||n.jsx(E,{showText:!1})})}),n.jsxs("div",{className:"header-title",children:[n.jsxs(M,{component:"h2",noWrap:!0,className:"header-title__primary",children:[t,a]}),n.jsx(M,{component:"p",noWrap:!0,className:"header-title__secondary",children:r})]})]}),n.jsx(k,{flexGrow:1}),!!e&&n.jsx("div",{className:"header-children",children:e}),n.jsx("div",{className:"header-addons",children:l})]})})}le.propTypes={onToggleMenu:o.func.isRequired,brand:o.string.isRequired,brandAddon:o.object,description:o.any.isRequired,children:o.any,addons:o.any,homeUrl:o.string,logo:o.any};le.defaultProps={children:null,addons:null,brandAddon:null,homeUrl:"/",logo:null};function A(e){var m;const t=rn(e,A,["dark","style"]),{className:a,copyStart:r,style:l,brand:c,dark:d,addon:i}=t,u=`${new Date().getFullYear()}`,s=`${r}`,x=u===s?u:`${s}-${u}`;return n.jsxs(Tn,{className:a,style:l,dark:d,children:[n.jsx(H,{maxWidth:!1,children:n.jsxs(M,{component:"div",className:"footer",children:[n.jsxs(M,{component:"p",className:"footer-item",children:[n.jsxs("span",{className:"footer-copy",children:["Copyright © ",x," "]}),n.jsx("span",{className:"footer-brand",children:c})]}),i&&n.jsx(M,{component:"div",className:"footer-item",sx:{order:{xs:"-1",md:"initial"},ml:{xs:0,md:"auto"},width:{xs:"100%",md:"auto"}},children:i}),n.jsxs(M,{component:"p",className:"footer-item",style:{justifyContent:"flex-end",flexShrink:0},children:["Powered by",n.jsx(E,{mode:d?"light":"dark",layout:"horizontal",className:"logo-container"})]})]})}),n.jsx(k,{position:"absolute",right:16,bottom:0,fontSize:12,sx:{color:"transparent","::selection":{background:"#000",color:"#fff"}},children:(m=window==null?void 0:window.blocklet)==null?void 0:m.version})]})}A.propTypes={dark:o.bool,className:o.string,copyStart:o.oneOfType([o.string,o.number]),brand:o.string,style:o.object,addon:o.node};A.defaultProps={dark:!1,brand:"ArcBlock",copyStart:"2017",className:"",style:{},addon:null};const Tn=g("div",{shouldForwardProp:e=>e!=="dark"})`
146
146
  position: relative;
147
147
  margin-top: 64px;
148
148
  padding: 24px 0 32px;
@@ -230,7 +230,7 @@ import{aF as Se,aE as Ue,aG as Ge,ai as Ye,aH as Y,aK as _,r as p,aI as Xe,aJ as
230
230
  box-shadow: 2px 16px 10px 0 rgba(0, 0, 0, ${e=>e.theme.mode==="light"?.05:.5});
231
231
  border: 0;
232
232
  }
233
- `;function de({children:e,title:t,brand:a,description:r,brandAddon:l,headerAddon:c,images:d,links:i,prefix:u,fullWidth:s,contentLayout:x,className:m,homeUrl:y,logo:j,...$}){const f=ve(document.body),z=(f==null?void 0:f.width)||0,[P,W]=p.useState(z>=960?"permanent":"temporary"),[O,N]=p.useState(P==="permanent");p.useEffect(()=>{const T=z>=960?"permanent":"temporary";W(T),N(T!=="temporary")},[z]);const b=()=>{N(!O)},C=s||x==="row";return n.jsxs(_n,{className:`dashboard ${m}`,...$,children:[n.jsx(ye,{title:`${t}-${a}`}),n.jsx(le,{className:"dashboard__header",onToggleMenu:b,brand:a,brandAddon:l,description:r,addons:c,homeUrl:y,logo:j}),n.jsxs(k,{display:"flex",className:"dashboard__body",children:[n.jsx(ke,{variant:P,className:"drawer",classes:{paper:"drawerPaper"},open:O,onClose:b,ModalProps:{disablePortal:!0,keepMounted:!0},children:n.jsx(ie,{className:"dashboard__sidebar",images:d,links:i,prefix:u,logo:j})}),n.jsxs(k,{className:"dashboard__main",children:[n.jsx(D,{maxWidth:C?!1:"lg",className:"dashboard__content",children:e}),n.jsx(A,{})]})]})]})}de.propTypes={children:o.any.isRequired,title:o.string,brand:o.string.isRequired,links:o.array.isRequired,images:o.object.isRequired,brandAddon:o.object,description:o.any.isRequired,headerAddon:o.any,prefix:o.string,contentLayout:o.oneOf(["row","column"]),fullWidth:o.bool,className:o.string,homeUrl:o.string,logo:o.any};de.defaultProps={title:"Home",contentLayout:"column",headerAddon:null,brandAddon:null,prefix:"/images",fullWidth:!1,className:"",homeUrl:"/",logo:null};function Te({height:e,...t}){return n.jsx(Bn,{height:e,...t})}Te.propTypes={height:o.oneOfType([o.number,o.string]).isRequired};const Bn=g(k)`
233
+ `;function de({children:e,title:t,brand:a,description:r,brandAddon:l,headerAddon:c,images:d,links:i,prefix:u,fullWidth:s,contentLayout:x,className:m,homeUrl:y,logo:j,...$}){const f=ve(document.body),z=(f==null?void 0:f.width)||0,[P,W]=p.useState(z>=960?"permanent":"temporary"),[O,N]=p.useState(P==="permanent");p.useEffect(()=>{const T=z>=960?"permanent":"temporary";W(T),N(T!=="temporary")},[z]);const b=()=>{N(!O)},C=s||x==="row";return n.jsxs(_n,{className:`dashboard ${m}`,...$,children:[n.jsx(ye,{title:`${t}-${a}`}),n.jsx(le,{className:"dashboard__header",onToggleMenu:b,brand:a,brandAddon:l,description:r,addons:c,homeUrl:y,logo:j}),n.jsxs(k,{display:"flex",className:"dashboard__body",children:[n.jsx(ke,{variant:P,className:"drawer",classes:{paper:"drawerPaper"},open:O,onClose:b,ModalProps:{disablePortal:!0,keepMounted:!0},children:n.jsx(ie,{className:"dashboard__sidebar",images:d,links:i,prefix:u,logo:j})}),n.jsxs(k,{className:"dashboard__main",children:[n.jsx(H,{maxWidth:C?!1:"lg",className:"dashboard__content",children:e}),n.jsx(A,{})]})]})]})}de.propTypes={children:o.any.isRequired,title:o.string,brand:o.string.isRequired,links:o.array.isRequired,images:o.object.isRequired,brandAddon:o.object,description:o.any.isRequired,headerAddon:o.any,prefix:o.string,contentLayout:o.oneOf(["row","column"]),fullWidth:o.bool,className:o.string,homeUrl:o.string,logo:o.any};de.defaultProps={title:"Home",contentLayout:"column",headerAddon:null,brandAddon:null,prefix:"/images",fullWidth:!1,className:"",homeUrl:"/",logo:null};function Te({height:e,...t}){return n.jsx(Bn,{height:e,...t})}Te.propTypes={height:o.oneOfType([o.number,o.string]).isRequired};const Bn=g(k)`
234
234
  overflow: hidden;
235
235
  &:before {
236
236
  content: '';
@@ -243,7 +243,7 @@ import{aF as Se,aE as Ue,aG as Ge,ai as Ye,aH as Y,aK as _,r as p,aI as Xe,aJ as
243
243
  float: left;
244
244
  white-space: nowrap;
245
245
  }
246
- `;function F({logo:e,brand:t,brandAddon:a,description:r,children:l,addons:c,prepend:d,align:i,maxWidth:u,homeLink:s,...x}){const m=p.useRef(),[y,j]=p.useState("0px"),$={minWidth:y};p.useEffect(()=>{const{searchParams:f}=new URL(window.location.href);f.get("inviter")&&window.localStorage.setItem("inviter",f.get("inviter")),m.current&&j(`${m.current.offsetWidth}px`)},[]);const w=()=>{const f=n.jsxs(n.Fragment,{children:[e&&n.jsx("div",{className:"header-logo",ref:m,children:e}),t&&n.jsx(Te,{height:44,sx:{flexShrink:{xs:1}},children:n.jsxs("div",{className:"header-brand",children:[n.jsx("div",{className:"header-brand-title",children:n.jsx("h2",{children:t})}),n.jsx("div",{className:"header-brand-desc",children:r})]})})]});return typeof s=="function"?s(f):n.jsx("a",{href:s,children:f})};return n.jsx(An,{...x,children:n.jsxs(D,{maxWidth:u,className:"header-container",children:[d,n.jsx("div",{className:"header-brand-wrapper",style:$,children:w()}),n.jsx("div",{className:"header-brand-addon",children:a}),i==="right"&&n.jsx(k,{display:"inline-block",flexGrow:1}),l,i==="left"&&n.jsx(k,{display:"inline-block",flexGrow:1}),n.jsx("div",{className:"header-addons",children:c})]})})}F.propTypes={logo:o.node,brand:o.node,brandAddon:o.node,description:o.node,children:o.node,addons:o.node,prepend:o.node,align:o.oneOf(["left","right"]),maxWidth:o.oneOfType([o.string,o.oneOf(["xs","sm","md","lg","xl",!1])]),homeLink:o.oneOfType([o.string,o.func])};F.defaultProps={logo:null,brand:null,brandAddon:null,description:null,children:null,addons:null,prepend:null,align:"left",maxWidth:void 0,homeLink:"/"};const An=g(k)`
246
+ `;function F({logo:e,brand:t,brandAddon:a,description:r,children:l,addons:c,prepend:d,align:i,maxWidth:u,homeLink:s,...x}){const m=p.useRef(),[y,j]=p.useState("0px"),$={minWidth:y};p.useEffect(()=>{const{searchParams:f}=new URL(window.location.href);f.get("inviter")&&window.localStorage.setItem("inviter",f.get("inviter")),m.current&&j(`${m.current.offsetWidth}px`)},[]);const w=()=>{const f=n.jsxs(n.Fragment,{children:[e&&n.jsx("div",{className:"header-logo",ref:m,children:e}),t&&n.jsx(Te,{height:44,sx:{flexShrink:{xs:1}},children:n.jsxs("div",{className:"header-brand",children:[n.jsx("div",{className:"header-brand-title",children:n.jsx("h2",{children:t})}),n.jsx("div",{className:"header-brand-desc",children:r})]})})]});return typeof s=="function"?s(f):n.jsx("a",{href:s,children:f})};return n.jsx(An,{...x,children:n.jsxs(H,{maxWidth:u,className:"header-container",children:[d,n.jsx("div",{className:"header-brand-wrapper",style:$,children:w()}),n.jsx("div",{className:"header-brand-addon",children:a}),i==="right"&&n.jsx(k,{display:"inline-block",flexGrow:1}),l,i==="left"&&n.jsx(k,{display:"inline-block",flexGrow:1}),n.jsx("div",{className:"header-addons",children:c})]})})}F.propTypes={logo:o.node,brand:o.node,brandAddon:o.node,description:o.node,children:o.node,addons:o.node,prepend:o.node,align:o.oneOf(["left","right"]),maxWidth:o.oneOfType([o.string,o.oneOf(["xs","sm","md","lg","xl",!1])]),homeLink:o.oneOfType([o.string,o.func])};F.defaultProps={logo:null,brand:null,brandAddon:null,description:null,children:null,addons:null,prepend:null,align:"left",maxWidth:void 0,homeLink:"/"};const An=g(k)`
247
247
  position: relative;
248
248
  z-index: ${e=>e.theme.zIndex.appBar};
249
249
  font-size: 14px;
@@ -349,7 +349,7 @@ import{aF as Se,aE as Ue,aG as Ge,ai as Ye,aH as Y,aK as _,r as p,aI as Xe,aJ as
349
349
  margin-right: 12px;
350
350
  }
351
351
  }
352
- `,Wn=g(D)`
352
+ `,Wn=g(H)`
353
353
  padding-top: 8px;
354
354
  padding-bottom: 16px;
355
355
  .navmenu {
@@ -484,7 +484,7 @@ import{aF as Se,aE as Ue,aG as Ge,ai as Ye,aH as Y,aK as _,r as p,aI as Xe,aJ as
484
484
  display: block;
485
485
  }
486
486
  }
487
- `,Hn=g(_e)`
487
+ `,Dn=g(_e)`
488
488
  font-size: 16px;
489
489
  .navmenu-root {
490
490
  display: flex;
@@ -536,7 +536,7 @@ import{aF as Se,aE as Ue,aG as Ge,ai as Ye,aH as Y,aK as _,r as p,aI as Xe,aJ as
536
536
  .navmenu-sub--opened > .navmenu-sub-container {
537
537
  display: block;
538
538
  }
539
- `,pe=p.createContext();function Be(e){return e?p.Children.toArray(e).filter(t=>t.type===q||t.type===B):null}function Ae(e){return p.useRef(e||`navmenu-item-id-${Math.random().toString(36).slice(2)}`).current}function V({items:e,mode:t,children:a,activeId:r,textColor:l,activeTextColor:c,bgColor:d,onSelected:i,...u}){var he;if(a=Be(a),!(e!=null&&e.length)&&!(a!=null&&a.length))throw new Error("One of 'items' or 'children' is required by NavMenu component.");const s=je({activeId:r,openedIds:[],hiddenItemCount:0}),x=U(h=>{s.activeId=h,i==null||i(h)}),m=U(h=>{s.openedIds.push(h)}),y=U(h=>{s.openedIds=s.openedIds.filter(v=>v!==h)}),j=Z(()=>({...s,mode:t,activate:x,open:m,close:y}),[s.activeId,s.hiddenItemCount,s.openedIds,t,x,m,y]),$=p.useRef(),w=p.useRef([]),f=p.useRef(),z=s.hiddenItemCount===((he=w.current)==null?void 0:he.length),P=z?{marginLeft:"0px"}:void 0,W=Z(()=>z?n.jsx(vn,{}):n.jsx(yn,{}),[z]),O=h=>p.Children.map(h,(v,R)=>p.cloneElement(v,{ref:I=>{w.current[R]=I}})),N=ve($.current),{run:b}=gn(U(()=>{let h=0,v=0,R=!1;const I=(N==null?void 0:N.width)||0,Q=f.current?f.current.offsetWidth+parseFloat(window.getComputedStyle(f.current).marginLeft):0;w.current.forEach((H,Ve)=>{if(H){H.style.display="flex";const qe=Ve>0?parseFloat(window.getComputedStyle(H).marginLeft):0,xe=H.offsetWidth+qe;I-Q>=h+xe&&!R?h+=xe:(H.style.display="none",R=!0,v++)}}),v!==s.hiddenItemCount&&(s.hiddenItemCount=v)}),{wait:100});p.useLayoutEffect(()=>{t==="horizontal"&&b()},[N==null?void 0:N.width,t]),p.useEffect(()=>{if(t==="horizontal")return b(),window.addEventListener("resize",b),()=>{window.removeEventListener("resize",b)}},[t,e]),p.useEffect(()=>{r!=null&&(s.activeId=r)},[r]);const C=L("navmenu",`navmenu--${t}`,u.className),T=(h,v,R=!1)=>h!=null&&h.children?n.jsx(B,{id:h.id,icon:h.icon,label:h.label,ref:R?I=>{w.current[v]=I}:void 0,children:h.children.map((I,Q)=>T(I,Q,!1))},h.id):n.jsx(q,{id:h.id,icon:h.icon,label:h.label,active:h.active,ref:R?I=>{w.current[v]=I}:void 0},h.id),De=e?e==null?void 0:e.slice(-s.hiddenItemCount).map((h,v)=>T(h,v)):a==null?void 0:a.slice(-s.hiddenItemCount),Ee=t==="inline"?Hn:On;return n.jsx(pe.Provider,{value:j,children:n.jsx(Ee,{...u,className:C,$textColor:l,$activeTextColor:c,$bgColor:d,children:n.jsxs("ul",{className:"navmenu-root",ref:$,children:[e?e.map((h,v)=>T(h,v,!0)):O(a),s.hiddenItemCount>0&&n.jsx(B,{expandIcon:!1,icon:W,label:"",ref:f,style:P,children:De})]})})})}V.propTypes={items:o.array,mode:o.oneOf(["horizontal","vertical","inline"]),children:o.array,activeId:o.string,textColor:o.string,activeTextColor:o.string,bgColor:o.string,onSelected:o.func};V.defaultProps={items:null,mode:"horizontal",children:null,activeId:null,textColor:"#9397a1",activeTextColor:"#25292f",bgColor:"#fff",onSelected:null};const q=p.forwardRef(({id:e,icon:t,label:a,active:r,onClick:l,...c},d)=>{const i=Ae(e),{activeId:u,activate:s}=p.useContext(pe),x=L("navmenu-item",{"navmenu-item--active":u===i},c.className);p.useEffect(()=>{r&&s(i)},[r]);const m=()=>{l==null||l(),s(i)};return n.jsxs("li",{...c,className:x,onClick:m,ref:d,children:[t&&n.jsx("span",{className:"navmenu-item-icon",children:t}),n.jsx("span",{className:"navmenu-item-label",children:a})]})});q.propTypes={id:o.string,icon:o.element,label:o.node,active:o.bool,onClick:o.func};q.defaultProps={id:null,icon:null,label:"",active:!1,onClick:null};const B=p.forwardRef(({id:e,icon:t,label:a,children:r,expandIcon:l,...c},d)=>{const i=Ae(e),{openedIds:u,open:s,close:x,mode:m}=p.useContext(pe),y=u.includes(i),j=L("navmenu-sub",{"navmenu-sub--opened":y},c.className),$=m==="inline",w=$?{onClick:()=>{u.includes(i)?x(i):s(i)}}:{onMouseEnter:()=>s(i),onMouseLeave:()=>x(i)},f=$?{onClick:z=>z.stopPropagation()}:{};return n.jsxs("li",{...c,className:j,...w,ref:d,children:[t&&n.jsx("span",{className:"navmenu-sub-icon",children:t}),n.jsx("span",{className:"navmenu-sub-label",children:a}),l&&n.jsx("span",{className:"navmenu-sub-expand-icon",children:(l==null?void 0:l({isOpen:y}))||l}),n.jsx("div",{className:"navmenu-sub-container",...f,children:n.jsx("ul",{className:"navmenu-sub-list",children:Be(r)})})]})});B.propTypes={id:o.string,icon:o.element,label:o.node.isRequired,children:o.array.isRequired,expandIcon:o.oneOfType([o.node,o.func])};B.defaultProps={id:null,icon:null,expandIcon:({isOpen:e})=>n.jsx(bn,{style:{transform:`rotate(${e?180:0}deg)`}})};V.Item=q;V.Sub=B;function K({children:e,routerLinkComponent:t,to:a,external:r,...l}){return r?n.jsx("a",{href:a,...l,children:e}):n.jsx(t,{to:a,...l,children:e})}K.propTypes={children:o.any.isRequired,routerLinkComponent:o.elementType.isRequired,external:o.bool,to:o.oneOfType([o.string,o.object]).isRequired};K.defaultProps={external:!1};function Fe(e){return n.jsx(K,{routerLinkComponent:X,...e})}function ue({className:e,...t}){const a=t.external&&typeof e=="function"?e({}):e;return n.jsx(K,{routerLinkComponent:dn,className:a,...t})}ue.propTypes={className:o.oneOfType([o.string,o.func])};ue.defaultProps={className:""};function We(e,t){var u;if((u=e.children)!=null&&u.length)return Dn(e,t);const{url:a,icon:r,title:l,showBadge:c,external:d,active:i}=e;return n.jsx("li",{className:"layout-sidebar-item",children:n.jsxs(ue,{external:d,to:a,className:({isActive:s})=>L("layout-sidebar-link",{"layout-sidebar-link--active":d?i:s}),children:[r&&n.jsx("span",{className:`layout-sidebar-icon ${c?"layout-sidebar-badge":""}`,children:r}),n.jsx(M,{component:"span",className:"layout-sidebar-link-text",children:l})]})},`${a}-${t}`)}function Dn(e,t){return n.jsxs("li",{className:"layout-sidebar-group",children:[n.jsx("span",{className:"layout-sidebar-group-title",children:e.title}),n.jsx("ul",{children:e.children.map(We)})]},`group-${e.title}-${t}`)}function J({links:e,addons:t,dense:a,...r}){return n.jsxs(Vn,{...r,className:L({"layout-sidebar-dense":a}),children:[n.jsx("ul",{children:e.map(We)}),n.jsx("div",{style:{flex:1}}),t]})}J.propTypes={links:o.array.isRequired,addons:o.any,dense:o.bool};J.defaultProps={addons:null,dense:!1};const En="linear-gradient(32deg, rgba(144, 255, 230, 0.1), rgba(144, 255, 230, 0))",Vn=g("div")`
539
+ `,pe=p.createContext();function Be(e){return e?p.Children.toArray(e).filter(t=>t.type===q||t.type===B):null}function Ae(e){return p.useRef(e||`navmenu-item-id-${Math.random().toString(36).slice(2)}`).current}function V({items:e,mode:t,children:a,activeId:r,textColor:l,activeTextColor:c,bgColor:d,onSelected:i,...u}){var he;if(a=Be(a),!(e!=null&&e.length)&&!(a!=null&&a.length))throw new Error("One of 'items' or 'children' is required by NavMenu component.");const s=je({activeId:r,openedIds:[],hiddenItemCount:0}),x=U(h=>{s.activeId=h,i==null||i(h)}),m=U(h=>{s.openedIds.push(h)}),y=U(h=>{s.openedIds=s.openedIds.filter(v=>v!==h)}),j=Z(()=>({...s,mode:t,activate:x,open:m,close:y}),[s.activeId,s.hiddenItemCount,s.openedIds,t,x,m,y]),$=p.useRef(),w=p.useRef([]),f=p.useRef(),z=s.hiddenItemCount===((he=w.current)==null?void 0:he.length),P=z?{marginLeft:"0px"}:void 0,W=Z(()=>z?n.jsx(vn,{}):n.jsx(yn,{}),[z]),O=h=>p.Children.map(h,(v,L)=>p.cloneElement(v,{ref:I=>{w.current[L]=I}})),N=ve($.current),{run:b}=gn(U(()=>{let h=0,v=0,L=!1;const I=(N==null?void 0:N.width)||0,K=f.current?f.current.offsetWidth+parseFloat(window.getComputedStyle(f.current).marginLeft):0;w.current.forEach((D,Ve)=>{if(D){D.style.display="flex";const qe=Ve>0?parseFloat(window.getComputedStyle(D).marginLeft):0,xe=D.offsetWidth+qe;I-K>=h+xe&&!L?h+=xe:(D.style.display="none",L=!0,v++)}}),v!==s.hiddenItemCount&&(s.hiddenItemCount=v)}),{wait:100});p.useLayoutEffect(()=>{t==="horizontal"&&b()},[N==null?void 0:N.width,t]),p.useEffect(()=>{if(t==="horizontal")return b(),window.addEventListener("resize",b),()=>{window.removeEventListener("resize",b)}},[t,e]),p.useEffect(()=>{r!=null&&(s.activeId=r)},[r]);const C=R("navmenu",`navmenu--${t}`,u.className),T=(h,v,L=!1)=>h!=null&&h.children?n.jsx(B,{id:h.id,icon:h.icon,label:h.label,ref:L?I=>{w.current[v]=I}:void 0,children:h.children.map((I,K)=>T(I,K,!1))},h.id):n.jsx(q,{id:h.id,icon:h.icon,label:h.label,active:h.active,ref:L?I=>{w.current[v]=I}:void 0},h.id),He=e?e==null?void 0:e.slice(-s.hiddenItemCount).map((h,v)=>T(h,v)):a==null?void 0:a.slice(-s.hiddenItemCount),Ee=t==="inline"?Dn:On;return n.jsx(pe.Provider,{value:j,children:n.jsx(Ee,{...u,className:C,$textColor:l,$activeTextColor:c,$bgColor:d,children:n.jsxs("ul",{className:"navmenu-root",ref:$,children:[e?e.map((h,v)=>T(h,v,!0)):O(a),s.hiddenItemCount>0&&n.jsx(B,{expandIcon:!1,icon:W,label:"",ref:f,style:P,children:He})]})})})}V.propTypes={items:o.array,mode:o.oneOf(["horizontal","vertical","inline"]),children:o.array,activeId:o.string,textColor:o.string,activeTextColor:o.string,bgColor:o.string,onSelected:o.func};V.defaultProps={items:null,mode:"horizontal",children:null,activeId:null,textColor:"#9397a1",activeTextColor:"#25292f",bgColor:"#fff",onSelected:null};const q=p.forwardRef(({id:e,icon:t,label:a,active:r,onClick:l,...c},d)=>{const i=Ae(e),{activeId:u,activate:s}=p.useContext(pe),x=R("navmenu-item",{"navmenu-item--active":u===i},c.className);p.useEffect(()=>{r&&s(i)},[r]);const m=()=>{l==null||l(),s(i)};return n.jsxs("li",{...c,className:x,onClick:m,ref:d,children:[t&&n.jsx("span",{className:"navmenu-item-icon",children:t}),n.jsx("span",{className:"navmenu-item-label",children:a})]})});q.propTypes={id:o.string,icon:o.element,label:o.node,active:o.bool,onClick:o.func};q.defaultProps={id:null,icon:null,label:"",active:!1,onClick:null};const B=p.forwardRef(({id:e,icon:t,label:a,children:r,expandIcon:l,...c},d)=>{const i=Ae(e),{openedIds:u,open:s,close:x,mode:m}=p.useContext(pe),y=u.includes(i),j=R("navmenu-sub",{"navmenu-sub--opened":y},c.className),$=m==="inline",w=$?{onClick:()=>{u.includes(i)?x(i):s(i)}}:{onMouseEnter:()=>s(i),onMouseLeave:()=>x(i)},f=$?{onClick:z=>z.stopPropagation()}:{};return n.jsxs("li",{...c,className:j,...w,ref:d,children:[t&&n.jsx("span",{className:"navmenu-sub-icon",children:t}),n.jsx("span",{className:"navmenu-sub-label",children:a}),l&&n.jsx("span",{className:"navmenu-sub-expand-icon",children:(l==null?void 0:l({isOpen:y}))||l}),n.jsx("div",{className:"navmenu-sub-container",...f,children:n.jsx("ul",{className:"navmenu-sub-list",children:Be(r)})})]})});B.propTypes={id:o.string,icon:o.element,label:o.node.isRequired,children:o.array.isRequired,expandIcon:o.oneOfType([o.node,o.func])};B.defaultProps={id:null,icon:null,expandIcon:({isOpen:e})=>n.jsx(bn,{style:{transform:`rotate(${e?180:0}deg)`}})};V.Item=q;V.Sub=B;function J({children:e,routerLinkComponent:t,to:a,external:r,...l}){return r?n.jsx("a",{href:a,...l,children:e}):n.jsx(t,{to:a,...l,children:e})}J.propTypes={children:o.any.isRequired,routerLinkComponent:o.elementType.isRequired,external:o.bool,to:o.oneOfType([o.string,o.object]).isRequired};J.defaultProps={external:!1};function Fe(e){return n.jsx(J,{routerLinkComponent:Y,...e})}function ue({className:e,...t}){const a=t.external&&typeof e=="function"?e({}):e;return n.jsx(J,{routerLinkComponent:dn,className:a,...t})}ue.propTypes={className:o.oneOfType([o.string,o.func])};ue.defaultProps={className:""};function We(e,t){var u;if((u=e.children)!=null&&u.length)return Hn(e,t);const{url:a,icon:r,title:l,showBadge:c,external:d,active:i}=e;return n.jsx("li",{className:"layout-sidebar-item",children:n.jsxs(ue,{external:d,to:a,className:({isActive:s})=>R("layout-sidebar-link",{"layout-sidebar-link--active":d?i:s}),children:[r&&n.jsx("span",{className:`layout-sidebar-icon ${c?"layout-sidebar-badge":""}`,children:r}),n.jsx(M,{component:"span",className:"layout-sidebar-link-text",children:l})]})},`${a}-${t}`)}function Hn(e,t){return n.jsxs("li",{className:"layout-sidebar-group",children:[n.jsx("span",{className:"layout-sidebar-group-title",children:e.title}),n.jsx("ul",{children:e.children.map(We)})]},`group-${e.title}-${t}`)}function Q({links:e,addons:t,dense:a,...r}){return n.jsxs(Vn,{...r,className:R({"layout-sidebar-dense":a}),children:[n.jsx("ul",{children:e.map(We)}),n.jsx("div",{style:{flex:1}}),t]})}Q.propTypes={links:o.array.isRequired,addons:o.any,dense:o.bool};Q.defaultProps={addons:null,dense:!1};const En="linear-gradient(32deg, rgba(144, 255, 230, 0.1), rgba(144, 255, 230, 0))",Vn=g("div")`
540
540
  display: flex;
541
541
  flex-direction: column;
542
542
  ul {
@@ -661,7 +661,7 @@ import{aF as Se,aE as Ue,aG as Ge,ai as Ye,aH as Y,aK as _,r as p,aI as Xe,aJ as
661
661
  margin-top: 16px;
662
662
  }
663
663
  }
664
- `;function qn({closeMenu:e,...t}){const a=oe();return p.useEffect(()=>{e()},[a]),n.jsx(V,{...t})}function Oe(e,t){return e.map(a=>{var r;return(r=a.children)!=null&&r.length?{...a,label:a.title,children:Oe(a.children,t)}:{...a,label:n.jsx(Fe,{to:a.url,external:a.external,children:a.title}),active:a.external?a.active:!!cn({path:a.url,end:!1},t.pathname)}})}function S({children:e,title:t,headerProps:a,links:r=[],fullWidth:l,dense:c,footerProps:d,...i}){const u=te(),{inFullPage:s,showToggleButton:x,headerVisible:m,footerVisible:y,sidebarVisible:j,toggleFullPage:$}=jn(),w=oe(),f=p.useMemo(()=>Oe(r,w),[w,r]),z=f.some(b=>{var C;return!!((C=b.children)!=null&&C.length)}),P=c==="auto"?f.length>=8||z:c,W=L("dashboard",{"dashboard-dense":P},i.className),N={homeLink:b=>{var C;return n.jsx(Fe,{to:((C=window.blocklet)==null?void 0:C.prefix)||"/",children:b})},...a};return p.useEffect(()=>{const{searchParams:b}=new URL(window.location.href);b.get("inviter")&&window.localStorage.setItem("inviter",b.get("inviter"))},[]),n.jsxs(Sn,{...i,className:W,children:[n.jsx(ye,{title:t},t),m&&n.jsx(Un,{...N,className:"dashboard-header",children:r!=null&&r.length?({isMobile:b,closeMenu:C})=>b?n.jsx(qn,{mode:"inline",items:f,closeMenu:C,bgColor:"transparent",activeTextColor:u.palette.primary.main}):null:null}),n.jsxs(k,{display:"flex",className:"dashboard-body",children:[n.jsx($e,{mdDown:!0,children:!!(r!=null&&r.length)&&j&&n.jsx(k,{className:"dashboard-sidebar",children:P?n.jsx(J,{links:r,dense:P}):n.jsx(k,{className:"dashboard-sidebar-container",children:n.jsx(J,{links:r,dense:P})})})}),n.jsxs(k,{className:"dashboard-main",children:[x&&n.jsx(k,{sx:{position:"absolute",top:4,right:4,display:"flex",justifyContent:"center",alignItems:"center",width:24,height:24,color:"#fff",bgcolor:"rgba(158,158,158, 0.6);",borderRadius:1,cursor:"pointer"},onClick:$,children:s?n.jsx(Pe,{style:{fontSize:18}}):n.jsx(Ce,{style:{fontSize:18}})}),n.jsx(D,{className:"dashboard-content",...l&&{maxWidth:!1},children:e}),y&&n.jsx(A,{...d})]})]})]})}S.propTypes={children:o.any.isRequired,title:o.string,links:o.array.isRequired,headerProps:o.object,fullWidth:o.bool,sidebarWidth:o.number,dense:o.oneOf([!0,!1,"auto"])};S.defaultProps={title:"Home",headerProps:{},fullWidth:!1,sidebarWidth:120,dense:"auto"};const Sn=g("div",{shouldForwardProp:e=>e!=="sidebarWidth"})`
664
+ `;function qn({closeMenu:e,...t}){const a=oe();return p.useEffect(()=>{e()},[a]),n.jsx(V,{...t})}function Oe(e,t){return e.map(a=>{var r;return(r=a.children)!=null&&r.length?{...a,label:a.title,children:Oe(a.children,t)}:{...a,label:n.jsx(Fe,{to:a.url,external:a.external,children:a.title}),active:a.external?a.active:!!cn({path:a.url,end:!1},t.pathname)}})}function S({children:e,title:t,headerProps:a,links:r=[],fullWidth:l,dense:c,footerProps:d,...i}){const u=te(),{inFullPage:s,showToggleButton:x,headerVisible:m,footerVisible:y,sidebarVisible:j,toggleFullPage:$}=jn(),w=oe(),f=p.useMemo(()=>Oe(r,w),[w,r]),z=f.some(b=>{var C;return!!((C=b.children)!=null&&C.length)}),P=c==="auto"?f.length>=8||z:c,W=R("dashboard",{"dashboard-dense":P},i.className),N={homeLink:b=>{var C;return n.jsx(Fe,{to:((C=window.blocklet)==null?void 0:C.prefix)||"/",children:b})},...a};return p.useEffect(()=>{const{searchParams:b}=new URL(window.location.href);b.get("inviter")&&window.localStorage.setItem("inviter",b.get("inviter"))},[]),n.jsxs(Sn,{...i,className:W,children:[n.jsx(ye,{title:t},t),m&&n.jsx(Un,{...N,className:"dashboard-header",children:r!=null&&r.length?({isMobile:b,closeMenu:C})=>b?n.jsx(qn,{mode:"inline",items:f,closeMenu:C,bgColor:"transparent",activeTextColor:u.palette.primary.main}):null:null}),n.jsxs(k,{display:"flex",className:"dashboard-body",children:[n.jsx($e,{mdDown:!0,children:!!(r!=null&&r.length)&&j&&n.jsx(k,{className:"dashboard-sidebar",children:P?n.jsx(Q,{links:r,dense:P}):n.jsx(k,{className:"dashboard-sidebar-container",children:n.jsx(Q,{links:r,dense:P})})})}),n.jsxs(k,{className:"dashboard-main",children:[x&&n.jsx(k,{sx:{position:"absolute",top:4,right:4,display:"flex",justifyContent:"center",alignItems:"center",width:24,height:24,color:"#fff",bgcolor:"rgba(158,158,158, 0.6);",borderRadius:1,cursor:"pointer"},onClick:$,children:s?n.jsx(Pe,{style:{fontSize:18}}):n.jsx(Ce,{style:{fontSize:18}})}),n.jsx(H,{className:"dashboard-content",...l&&{maxWidth:!1},children:e}),y&&n.jsx(A,{...d})]})]})]})}S.propTypes={children:o.any.isRequired,title:o.string,links:o.array.isRequired,headerProps:o.object,fullWidth:o.bool,sidebarWidth:o.number,dense:o.oneOf([!0,!1,"auto"])};S.defaultProps={title:"Home",headerProps:{},fullWidth:!1,sidebarWidth:120,dense:"auto"};const Sn=g("div",{shouldForwardProp:e=>e!=="sidebarWidth"})`
665
665
  &.dashboard {
666
666
  display: flex;
667
667
  flex-direction: column;
@@ -718,4 +718,4 @@ import{aF as Se,aE as Ue,aG as Ge,ai as Ye,aH as Y,aK as _,r as p,aI as Xe,aJ as
718
718
  .header-container {
719
719
  max-width: 100%;
720
720
  }
721
- `;function He({legacy:e,...t}){return e?n.jsx(de,{...t}):n.jsx(Ne,{children:n.jsx(S,{...t})})}He.propTypes={...S.propTypes,legacy:o.bool,footerProps:o.shape(A.propTypes)};He.defaultProps={...S.defaultProps,legacy:!0};export{He as D,V as N,ce as R,jn as u};
721
+ `;function De({legacy:e,...t}){return e?n.jsx(de,{...t}):n.jsx(Ne,{children:n.jsx(S,{...t})})}De.propTypes={...S.propTypes,legacy:o.bool,footerProps:o.shape(A.propTypes)};De.defaultProps={...S.defaultProps,legacy:!0};export{De as D,V as N,ce as R,jn as u};
@@ -1 +1 @@
1
- import{aE as ve,aF as me,aG as X,cQ as $e,aH as He,aK as p,r as d,aI as Se,aJ as ae,aM as L,j as u,aN as ge,at as Ae,cL as at,cR as Oe,cS as Xe,cT as De,aL as se,aj as it,cU as fe,cV as ct,bt as dt,bE as F,P as W}from"./index-Ctfa52p5.js";let K;function _e(){if(K)return K;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),K="reverse",e.scrollLeft>0?K="default":(e.scrollLeft=1,e.scrollLeft===0&&(K="negative")),document.body.removeChild(e),K}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)},U=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:U,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=Ae(u.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),mt=Ae(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=Oe(()=>{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:U,variant:E="standard",visibleScrollbar:ce=!1}=s,Ke=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),[A,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),O=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&&U!==!1){const i=O.current.children;if(i.length>0){const f=i[Re.get(U)];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(A[i])||isNaN(A[J]))Be(f);else{const S=Math.abs(A[i]-f[i]),I=Math.abs(A[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(O.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=Oe(()=>{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(O.current.children).forEach(S=>{r.observe(S)})),typeof MutationObserver<"u"&&(f=new MutationObserver(c),f.observe(O.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(O.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!==A)},[Pe,A]),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({},A,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===U;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&&U===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),st=o=>{const r=O.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},Ke,{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:O,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 Ue({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))})}Ue.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(Ue,{...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,_e as d,ut as g};
1
+ import{aG as ve,aH as me,aI as X,cR as $e,aJ as He,aM as p,r as d,aK as Se,aL as ae,aO as L,j as u,aP as ge,av as Ae,cM as at,cS as Oe,cT as Xe,cU as De,aN as se,al as it,cV as fe,cW as ct,bv as dt,bE as F,P as W}from"./index-Dd9xMZEz.js";let K;function _e(){if(K)return K;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),K="reverse",e.scrollLeft>0?K="default":(e.scrollLeft=1,e.scrollLeft===0&&(K="negative")),document.body.removeChild(e),K}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)},U=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:U,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=Ae(u.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),mt=Ae(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=Oe(()=>{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:U,variant:E="standard",visibleScrollbar:ce=!1}=s,Ke=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),[A,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),O=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&&U!==!1){const i=O.current.children;if(i.length>0){const f=i[Re.get(U)];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(A[i])||isNaN(A[J]))Be(f);else{const S=Math.abs(A[i]-f[i]),I=Math.abs(A[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(O.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=Oe(()=>{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(O.current.children).forEach(S=>{r.observe(S)})),typeof MutationObserver<"u"&&(f=new MutationObserver(c),f.observe(O.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(O.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!==A)},[Pe,A]),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({},A,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===U;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&&U===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),st=o=>{const r=O.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},Ke,{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:O,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 Ue({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))})}Ue.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(Ue,{...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,_e as d,ut as g};