@abtnode/blocklet-services 1.16.36 → 1.16.37-beta-20241224-013714-a79db7d3

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 +1 -1
  2. package/api/services/auth/session.js +14 -0
  3. package/api/services/notification/blocklet-events-notifier.js +12 -3
  4. package/api/socket/channel/did.js +180 -73
  5. package/api/socket/util.js +3 -2
  6. package/dist/assets/{Add-CX1vjsKw.js → Add-bmdSrWOA.js} +1 -1
  7. package/dist/assets/{Alert-D87dZ3UW.js → Alert-dY-OL-cr.js} +1 -1
  8. package/dist/assets/{ArrowDropDown-DHIEui26.js → ArrowDropDown-y45Fdx-X.js} +1 -1
  9. package/dist/assets/{Autocomplete-MtOZ_ddo.js → Autocomplete-dIT4Amet.js} +1 -1
  10. package/dist/assets/{Avatar-BBmwGXNJ.js → Avatar-C7A9zyFp.js} +1 -1
  11. package/dist/assets/{ButtonGroup-B4-Fg7jI.js → ButtonGroup-XHi-9psG.js} +1 -1
  12. package/dist/assets/CSSTransition-uwGMy0rY.js +1 -0
  13. package/dist/assets/{CheckCircle-Rp6PMEen.js → CheckCircle-CdClV-_h.js} +1 -1
  14. package/dist/assets/Checkbox-Tv0FEBTk.js +1 -0
  15. package/dist/assets/{ChevronLeft-c5m-YpM0.js → ChevronLeft-C-j1vGKc.js} +1 -1
  16. package/dist/assets/{ChevronRight-Bu3ZuWG0.js → ChevronRight-CbtZ3hD-.js} +1 -1
  17. package/dist/assets/{Clear-b8hVwHGB.js → Clear-BHERDEfK.js} +1 -1
  18. package/dist/assets/CloseOutlined-LxFWlJhG.js +1 -0
  19. package/dist/assets/Delete-BP5vfq8X.js +1 -0
  20. package/dist/assets/{DeleteOutline-D9nJXz7t.js → DeleteOutline-BJNpCFE3.js} +1 -1
  21. package/dist/assets/DialogContentText-DOJMTAut.js +1 -0
  22. package/dist/assets/{Done-BXX9mmcA.js → Done-D1ZlVz28.js} +1 -1
  23. package/dist/assets/{Download-CW9qYXvX.js → Download-Cn9c9ohK.js} +1 -1
  24. package/dist/assets/{EditIcon-ntr6a7to.js → EditIcon-CznGQSjE.js} +1 -1
  25. package/dist/assets/{Error-C3Gec5vv.js → Error-CnHtr7Rs.js} +1 -1
  26. package/dist/assets/{ExpandMore-z223TCGt.js → ExpandMore-Bn9GWuEQ.js} +1 -1
  27. package/dist/assets/FormControl-Di5qjF9R.js +1 -0
  28. package/dist/assets/FormControlLabel-B2DvbQHM.js +1 -0
  29. package/dist/assets/FormGroup-DlbGSJN0.js +1 -0
  30. package/dist/assets/{Google-C-eSdThA.js → Google-D1iNY1x9.js} +1 -1
  31. package/dist/assets/{Grid-DvGS1eT-.js → Grid-zFG3HBuV.js} +1 -1
  32. package/dist/assets/{HelpOutline-CA0yuFPz.js → HelpOutline-BoSK3px7.js} +1 -1
  33. package/dist/assets/Hidden-CieUlF-N.js +1 -0
  34. package/dist/assets/{InfoOutlined-De7efdSI.js → InfoOutlined-Bwocpz5e.js} +1 -1
  35. package/dist/assets/InputAdornment-C8pbj17T.js +1 -0
  36. package/dist/assets/{LastPage-Cr9Ak46f.js → LastPage-BWy9Ot-z.js} +1 -1
  37. package/dist/assets/{Launch-CjTqTNC0.js → Launch-D_sSAnDg.js} +1 -1
  38. package/dist/assets/{LaunchOutlined-ClaHGU-X.js → LaunchOutlined-X2HpZgvj.js} +1 -1
  39. package/dist/assets/Link-C3LvemFf.js +1 -0
  40. package/dist/assets/{ListItemButton-s5WMuSEH.js → ListItemButton-C5esEELO.js} +1 -1
  41. package/dist/assets/ListSubheader-Cef_PnTv.js +1 -0
  42. package/dist/assets/{LoadingButton-C8kGVq5n.js → LoadingButton-DqZkQVkR.js} +1 -1
  43. package/dist/assets/{LockIcon-BRURbClv.js → LockIcon-Dy4i6Aqn.js} +1 -1
  44. package/dist/assets/{Loop-DhCMxpbJ.js → Loop-BUj9Vy6n.js} +1 -1
  45. package/dist/assets/{MarkEmailRead-DsCr6k83.js → MarkEmailRead-CA2pMXCE.js} +1 -1
  46. package/dist/assets/{Menu-C83cJ_lX.js → Menu-CvZfT5GL.js} +1 -1
  47. package/dist/assets/{MoreHoriz-CYspaAXh.js → MoreHoriz-PRHiJZol.js} +1 -1
  48. package/dist/assets/MoreVert-D6ZGYNyY.js +1 -0
  49. package/dist/assets/{OpenInNew-Bmg-7bFA.js → OpenInNew-BDTDwP3d.js} +1 -1
  50. package/dist/assets/{OutlinedInput-BZLbG5DR.js → OutlinedInput-gn7nbVpS.js} +2 -2
  51. package/dist/assets/{Pagination-oz0udlom.js → Pagination-D38Mochi.js} +1 -1
  52. package/dist/assets/{PlayArrow-BhhCt6rD.js → PlayArrow-vPTnOeug.js} +1 -1
  53. package/dist/assets/{QuestionMarkCircle-BSLU-5QJ.js → QuestionMarkCircle-B4mLjcEm.js} +1 -1
  54. package/dist/assets/RadioGroup-Cnl-n4sv.js +1 -0
  55. package/dist/assets/{Search-CVIzSYhH.js → Search-Di1FfTVW.js} +1 -1
  56. package/dist/assets/{Select-oWe_u-D6.js → Select-DWN6VE5t.js} +1 -1
  57. package/dist/assets/{ServerLogo-DU1L-HB-.js → ServerLogo-CthaxJzV.js} +1 -1
  58. package/dist/assets/{Skeleton-CX8Tt8Bo.js → Skeleton-WadU0OJu.js} +5 -5
  59. package/dist/assets/{Stepper-oUEFYvV_.js → Stepper-B7bkS7Td.js} +1 -1
  60. package/dist/assets/TextField-8hH4A29d.js +1 -0
  61. package/dist/assets/Toolbar-CkZJzWdi.js +1 -0
  62. package/dist/assets/Verified-BomL4Vcg.js +1 -0
  63. package/dist/assets/{ViewColumn-l6xqEHMP.js → ViewColumn-DDNlwTLF.js} +1 -1
  64. package/dist/assets/{ViewList-DI9CqBFa.js → ViewList-Cf2E-w4V.js} +1 -1
  65. package/dist/assets/{_createAggregator-DHQaEdHP.js → _createAggregator-DerVCNXt.js} +1 -1
  66. package/dist/assets/access-control-DbzcvB2p.js +13 -0
  67. package/dist/assets/{actions-CONPytvg.js → actions-BIHzrJRL.js} +1 -1
  68. package/dist/assets/{add-component-core-Ptms3VM0.js → add-component-core-BNdw0aLE.js} +3 -3
  69. package/dist/assets/add-resource-zovOALza.js +1 -0
  70. package/dist/assets/{addon-C9BRq2rr.js → addon-38qg_4hX.js} +1 -1
  71. package/dist/assets/{analytics-BV-2dIsZ.js → analytics-P2-ARhzA.js} +8 -8
  72. package/dist/assets/api-Bgc-sAeO.js +1 -0
  73. package/dist/assets/ar-DJ10cGfc.js +3 -0
  74. package/dist/assets/audit-logs-B1jUwB8K.js +58 -0
  75. package/dist/assets/{base32-Bha8goHw.js → base32-DhP6Sd22.js} +1 -1
  76. package/dist/assets/branding-Cw8sKF3a.js +40 -0
  77. package/dist/assets/bundle-avatar-wTvr1j7O.js +1 -0
  78. package/dist/assets/{button-DnXjylQA.js → button-sagPkc4B.js} +1 -1
  79. package/dist/assets/{click-to-copy-DziDdr0B.js → click-to-copy-bNuefZAb.js} +1 -1
  80. package/dist/assets/{complete-93121Q5T.js → complete-BmQ4mgd0.js} +1 -1
  81. package/dist/assets/{component-CUWDsqls.js → component-YDzDe2Hy.js} +68 -68
  82. package/dist/assets/{config-BOzIhp1x.js → config-BcZ0hhSN.js} +1 -1
  83. package/dist/assets/{config-navigation-sGa37CFt.js → config-navigation-_B9Y2h3O.js} +6 -6
  84. package/dist/assets/{config-fZzyLL4i.js → config-oIKKsXqC.js} +2 -2
  85. package/dist/assets/{config-space-BudRzV_5.js → config-space-CZbBDsyW.js} +1 -1
  86. package/dist/assets/confirm-DLHqvhfc.js +7 -0
  87. package/dist/assets/{connect-RlFAKnw-.js → connect-5rRgHzPJ.js} +1 -1
  88. package/dist/assets/{connect-DmL9t9Pb.js → connect-DsWbhDFg.js} +1 -1
  89. package/dist/assets/connect-to-C-YyBuWN.js +29 -0
  90. package/dist/assets/{content-layout-j_ijfe5V.js → content-layout-CJjMzX72.js} +1 -1
  91. package/dist/assets/createSuper-B6NRScIe.js +1 -0
  92. package/dist/assets/dashboard-CP8PgBmS.js +122 -0
  93. package/dist/assets/de-5ORoKwiw.js +3 -0
  94. package/dist/assets/{deprecate-Czw83fWw.js → deprecate-VX12Wil8.js} +1 -1
  95. package/dist/assets/{did-address-plg0jYw3.js → did-address-BnRJDh4K.js} +1 -1
  96. package/dist/assets/did-spaces-guide-cover-DeSoOPSP.png +0 -0
  97. package/dist/assets/domain-jbyj4r81.js +9 -0
  98. package/dist/assets/domain-list-Cng1dqBX.js +15 -0
  99. package/dist/assets/{email-D7G1smCL.js → email-CoMU6QoA.js} +3 -3
  100. package/dist/assets/emotion-cache.browser.esm-D9ZvkPSc.js +1 -0
  101. package/dist/assets/es-CWClvbjs.js +3 -0
  102. package/dist/assets/{exchange-passport-CK56AJBa.js → exchange-passport-CKrLmbNT.js} +1 -1
  103. package/dist/assets/{fallback-7BFwIxSy.js → fallback-CxJVlnM-.js} +1 -1
  104. package/dist/assets/{form-text-input-1DixbtmZ.js → form-text-input-DuE0t2xh.js} +2 -2
  105. package/dist/assets/{format-error-D7O1LvF5.js → format-error-BqUQNRdR.js} +1 -1
  106. package/dist/assets/fr-CE8mlhdK.js +3 -0
  107. package/dist/assets/{fuel-PkYrmKwo.js → fuel-BxFKkvrY.js} +1 -1
  108. package/dist/assets/{fullpage-Dzbv_Bjr.js → fullpage-DMghH4Jh.js} +1 -1
  109. package/dist/assets/{get-safe-url-B7F64ILl.js → get-safe-url-BXN5S5Ow.js} +1 -1
  110. package/dist/assets/{get-safe-url-B_9CHKiR.js → get-safe-url-C6pQ0b4W.js} +1 -1
  111. package/dist/assets/hi-DVuJdQme.js +1 -0
  112. package/dist/assets/home-DMl4NbyY.js +1 -0
  113. package/dist/assets/id-L6JUyxUh.js +3 -0
  114. package/dist/assets/{iframe-B-WoBAzH.js → iframe-CYpHBgb4.js} +1 -1
  115. package/dist/assets/index-4lyITCv_.js +4 -0
  116. package/dist/assets/{index-DVHJpsNX.js → index-6hDu2vaf.js} +27 -27
  117. package/dist/assets/{index-CfOAEOXT.js → index-8SeRztEJ.js} +1 -1
  118. package/dist/assets/{index-CURuTEb2.js → index-B-RFpqiC.js} +181 -181
  119. package/dist/assets/{index-DcgOvNoU.js → index-B-s0lesn.js} +1 -1
  120. package/dist/assets/{index-L1YQQop8.js → index-B55M7j1N.js} +1 -1
  121. package/dist/assets/{index-B5rvRUtU.js → index-B6qJT9W4.js} +1 -1
  122. package/dist/assets/{index-BTC9PSrm.js → index-BH652Yyk.js} +9 -9
  123. package/dist/assets/{index-BTolZrGR.js → index-BKpiH5Dq.js} +31 -31
  124. package/dist/assets/index-BRjM_G4Y.js +1 -0
  125. package/dist/assets/index-BUjYSE2F.js +1 -0
  126. package/dist/assets/index-BYFrBIBa.js +5 -0
  127. package/dist/assets/{index-De03g9F6.js → index-Buj7PXf3.js} +11 -11
  128. package/dist/assets/{index-BP4DTdBA.js → index-CH3eSleH.js} +1 -1
  129. package/dist/assets/{index-CM4iFAJQ.js → index-CJD8MpdN.js} +4 -4
  130. package/dist/assets/{index-ClbUoDwd.js → index-CQXPe6Dg.js} +1 -1
  131. package/dist/assets/{index-C2bGI7WK.js → index-CeS3z9GZ.js} +2 -2
  132. package/dist/assets/{index-aL8XFphi.js → index-Cg_mxnpC.js} +2 -2
  133. package/dist/assets/{index-BKasVuE9.js → index-CntasVxY.js} +11 -11
  134. package/dist/assets/index-Cp2B6uNC.js +16 -0
  135. package/dist/assets/{index-c_geTDzQ.js → index-D1nK8ZHc.js} +1 -1
  136. package/dist/assets/{index-ib_nAWaQ.js → index-D8vZ-fPV.js} +8 -8
  137. package/dist/assets/{index-CA1fJOyr.js → index-DLhcpc3-.js} +1 -1
  138. package/dist/assets/{index-wIzEIL5u.js → index-DNWbdg1R.js} +1 -1
  139. package/dist/assets/{index-jWRQUWQQ.js → index-D_bDY9Qe.js} +1 -1
  140. package/dist/assets/index-DcfIKM1A.js +9 -0
  141. package/dist/assets/{index-BkHfBdHS.js → index-DnXN6H0t.js} +1 -1
  142. package/dist/assets/index-DvWxRDmE.js +1 -0
  143. package/dist/assets/{index-Bhigy6bC.js → index-DzPmWuJk.js} +22 -22
  144. package/dist/assets/{index-DBd8RuKA.js → index-WbA8mYzS.js} +1 -1
  145. package/dist/assets/{index-BU-yWCAN.js → index-dqr9Jaml.js} +1 -1
  146. package/dist/assets/{index-BZlD6OXo.js → index-kG1Lr_vO.js} +2 -2
  147. package/dist/assets/{index-B8pYs6qw.js → index-lU7kM9Ky.js} +1 -1
  148. package/dist/assets/{index-B8JIUDX2.js → index-t5EXQWHo.js} +1 -1
  149. package/dist/assets/{invitation-etE_VFdX.js → invitation-4vH9lNw-.js} +1 -1
  150. package/dist/assets/{invite-DhviMHhg.js → invite-DQiYh3jP.js} +1 -1
  151. package/dist/assets/{isEmail-DoX_u6Zd.js → isEmail-4oqXIJJ_.js} +1 -1
  152. package/dist/assets/{issue-passport-C8DsPT0-.js → issue-passport-BS7LBCub.js} +1 -1
  153. package/dist/assets/{item-B9A7WgaT.js → item-DJHWpTQA.js} +1 -1
  154. package/dist/assets/ja-C5orBePq.js +3 -0
  155. package/dist/assets/jss-plugin-props-sort.esm-qyHLnnAY.js +13 -0
  156. package/dist/assets/ko-BeIurXFC.js +3 -0
  157. package/dist/assets/{launch-result-message-BF-pkAdo.js → launch-result-message-CPwNcICB.js} +1 -1
  158. package/dist/assets/{layout-BLKVO1aA.js → layout-CzBrvFp3.js} +2 -2
  159. package/dist/assets/{list-header-CkJhELTK.js → list-header-nz8xgiCH.js} +1 -1
  160. package/dist/assets/localization-BNwqUIzj.js +1 -0
  161. package/dist/assets/{log-BQVpfJU-.js → log-BeJh3PPm.js} +1 -1
  162. package/dist/assets/{login-oauth-callback-Df2Wy7r-.js → login-oauth-callback-0-dvml4o.js} +1 -1
  163. package/dist/assets/{login-Bv1YL4-f.js → login-tBvKJsS6.js} +1 -1
  164. package/dist/assets/{logo-uploader-vzgZfcsx.js → logo-uploader-BWtqh-79.js} +4 -4
  165. package/dist/assets/{lost-passport-BL6kwgdn.js → lost-passport-jHVQuDqE.js} +3 -3
  166. package/dist/assets/{lottie-react.esm-CQpztMV_.js → lottie-react.esm-B-E5FxBf.js} +1 -1
  167. package/dist/assets/notifications-DQZrvasa.js +65 -0
  168. package/dist/assets/objectWithoutProperties-9wzxqNXD.js +1 -0
  169. package/dist/assets/{open-window-Bw74ZDo1.js → open-window-CjAsx5PP.js} +1 -1
  170. package/dist/assets/overview-CZUNI2c4.js +12 -0
  171. package/dist/assets/{page-header-XtrSmZfg.js → page-header-UmR_SJxL.js} +1 -1
  172. package/dist/assets/permission-C1qrFfei.js +1 -0
  173. package/dist/assets/{preferences-wTD0jKLE.js → preferences-CB4_S-0N.js} +1 -1
  174. package/dist/assets/pt-BED0VqHV.js +1 -0
  175. package/dist/assets/publish-resource-D5ytOxi0.js +1 -0
  176. package/dist/assets/{raf-schd.esm--VHqQAwf.js → raf-schd.esm-ClpohTxq.js} +1 -1
  177. package/dist/assets/{react-beautiful-dnd.esm-JkjWkb1g.js → react-beautiful-dnd.esm-DweOnO-z.js} +4 -4
  178. package/dist/assets/refType-CDZhz-3k.js +1 -0
  179. package/dist/assets/relative-time-BEhURFWp.js +1 -0
  180. package/dist/assets/resource-dialog-BjXfEmTi.js +299 -0
  181. package/dist/assets/ru-B5wj2v7e.js +1 -0
  182. package/dist/assets/sdk-D_6oU6pZ.js +1 -0
  183. package/dist/assets/{selector-bHfmQq2F.js → selector-DsbOSZva.js} +3 -3
  184. package/dist/assets/session-Cm5uP3l0.js +1 -0
  185. package/dist/assets/setup-BPHLiKGE.js +19 -0
  186. package/dist/assets/{shorten-label-AXaOgv3N.js → shorten-label-Df2VmqEs.js} +1 -1
  187. package/dist/assets/{simple-select-BvdSFcAP.js → simple-select-DnOgr-la.js} +1 -1
  188. package/dist/assets/slicedToArray-D4TxSsqm.js +2 -0
  189. package/dist/assets/{start-CLF-sxGf.js → start-DKutxZsB.js} +1 -1
  190. package/dist/assets/{step-actions-BOih4mzv.js → step-actions-Cv4gOO_c.js} +1 -1
  191. package/dist/assets/{studio-BX29D64q.js → studio-C_g9PDNu.js} +1 -1
  192. package/dist/assets/{switch-control-50NvsOor.js → switch-control-B4HEHqto.js} +1 -1
  193. package/dist/assets/tag-DgtY4FDs.js +13 -0
  194. package/dist/assets/th-CKxPcxWD.js +1 -0
  195. package/dist/assets/toConsumableArray-Dwhm2s8G.js +2 -0
  196. package/dist/assets/{toUpper-C7snz8mS.js → toUpper-CgVRCh5Q.js} +1 -1
  197. package/dist/assets/{transfer-DcUjnU0J.js → transfer-Cpwy6Tit.js} +1 -1
  198. package/dist/assets/trim-q0T1m2A9.js +1 -0
  199. package/dist/assets/uniqBy-0RbpFg98.js +1 -0
  200. package/dist/assets/{unsubscribe-Dinsbdr7.js → unsubscribe-COhcdAVq.js} +1 -1
  201. package/dist/assets/{url-join-CnY0czxB.js → url-join-Cv0idqJk.js} +1 -1
  202. package/dist/assets/{use-mobile-CaIg2l3g.js → use-mobile-Bf5pd6l6.js} +1 -1
  203. package/dist/assets/{use-mobile-CFfSxdXP.js → use-mobile-FgoAU6fs.js} +1 -1
  204. package/dist/assets/{useAsync-CUPYfNit.js → useAsync-h-WToGGG.js} +1 -1
  205. package/dist/assets/useAsyncRetry-CK--mOCs.js +7 -0
  206. package/dist/assets/{useFormControl-BSba3oCv.js → useFormControl-CpXS3ldC.js} +1 -1
  207. package/dist/assets/{useLocalStorage-D1AGu-lb.js → useLocalStorage-DVECFQbD.js} +1 -1
  208. package/dist/assets/{useSetState-DSX8AlnY.js → useSetState-CaafR-tn.js} +1 -1
  209. package/dist/assets/useSlot-Bl2NJ-iV.js +1 -0
  210. package/dist/assets/{useThemeProps-BXP-249z.js → useThemeProps-MTCDjzXT.js} +1 -1
  211. package/dist/assets/user-center-BU7eGmUd.js +449 -0
  212. package/dist/assets/{util-UrDod__A.js → util-BYCzRSr_.js} +1 -1
  213. package/dist/assets/{utils-iop7lDec.js → utils-DoM3o7-Q.js} +1 -1
  214. package/dist/assets/vi-DsheN6LQ.js +1 -0
  215. package/dist/assets/wrap-locale-ChSgu67N.js +1 -0
  216. package/dist/assets/zh-BJMvTFip.js +4 -0
  217. package/dist/assets/zh-tw-B_su4eMW.js +3 -0
  218. package/dist/index.html +1 -1
  219. package/dist/service-worker.js +1 -1
  220. package/package.json +32 -32
  221. package/dist/assets/CSSTransition-Mh3ysxT1.js +0 -1
  222. package/dist/assets/Delete-DJJRj5Hb.js +0 -1
  223. package/dist/assets/DialogContentText-DKQ0aeHG.js +0 -1
  224. package/dist/assets/DialogTitle-LVWjEooN.js +0 -1
  225. package/dist/assets/FormControl-C7Nj6lk8.js +0 -1
  226. package/dist/assets/FormControlLabel-CsOaFzYE.js +0 -1
  227. package/dist/assets/FormGroup-9S4EZF14.js +0 -1
  228. package/dist/assets/Hidden-D8s2OkVT.js +0 -1
  229. package/dist/assets/InputAdornment-DLaj8suy.js +0 -1
  230. package/dist/assets/Link-Cfv3qknB.js +0 -1
  231. package/dist/assets/ListSubheader-Db7_5hOm.js +0 -1
  232. package/dist/assets/MoreVert-cgL2UwiF.js +0 -1
  233. package/dist/assets/RadioGroup-BxfFSGKO.js +0 -1
  234. package/dist/assets/Stack-ouMqQ5wb.js +0 -1
  235. package/dist/assets/TextField-BA4i5NsI.js +0 -1
  236. package/dist/assets/Toolbar-Dsg-eB8s.js +0 -1
  237. package/dist/assets/access-control-Co4RM0Bo.js +0 -13
  238. package/dist/assets/add-resource-62Kg3wZP.js +0 -1
  239. package/dist/assets/api-Bc9Mc47C.js +0 -1
  240. package/dist/assets/ar-BDRVvPrM.js +0 -3
  241. package/dist/assets/audit-logs-P5V7cojf.js +0 -58
  242. package/dist/assets/branding-B-Xki6ZL.js +0 -40
  243. package/dist/assets/bundle-avatar-DnRgcM-q.js +0 -1
  244. package/dist/assets/confirm-C5GHlmsL.js +0 -7
  245. package/dist/assets/connect-to-C9RrMw8y.js +0 -1
  246. package/dist/assets/dashboard-DWfGuG2f.js +0 -165
  247. package/dist/assets/de-B227a1no.js +0 -3
  248. package/dist/assets/domain-DGmKsEPb.js +0 -9
  249. package/dist/assets/domain-list-b8qyOv0K.js +0 -15
  250. package/dist/assets/emotion-cache.browser.esm-jEAge-b7.js +0 -1
  251. package/dist/assets/es-DAn9P2pX.js +0 -3
  252. package/dist/assets/fr-hW_Tvq9a.js +0 -3
  253. package/dist/assets/hi-6yAhJdFx.js +0 -1
  254. package/dist/assets/home-Ba5jkT5T.js +0 -1
  255. package/dist/assets/id-BMkTW_Ii.js +0 -3
  256. package/dist/assets/index-BiEwRwlx.js +0 -1
  257. package/dist/assets/index-CixjtzIf.js +0 -1
  258. package/dist/assets/index-CncNyG59.js +0 -29
  259. package/dist/assets/index-D7S1biYx.js +0 -4
  260. package/dist/assets/index-_mYSbTn_.js +0 -16
  261. package/dist/assets/index-yknVcz6a.js +0 -5
  262. package/dist/assets/ja-DMoxkdsA.js +0 -3
  263. package/dist/assets/jss-plugin-props-sort.esm-DxbPrUtX.js +0 -14
  264. package/dist/assets/ko-C926kBBj.js +0 -3
  265. package/dist/assets/localization-CBfrOcuo.js +0 -1
  266. package/dist/assets/notifications-Dq9FGpST.js +0 -65
  267. package/dist/assets/overview-DRggHObA.js +0 -12
  268. package/dist/assets/permission-a4KWdWdi.js +0 -7
  269. package/dist/assets/pt-S0JrQ9Y4.js +0 -1
  270. package/dist/assets/publish-resource-DDUATmJ8.js +0 -1
  271. package/dist/assets/refType-Bzs0bPAl.js +0 -1
  272. package/dist/assets/resource-dialog-D_g0Ux18.js +0 -271
  273. package/dist/assets/ru-Qa5qbmx5.js +0 -1
  274. package/dist/assets/sdk-BLFRAhju.js +0 -1
  275. package/dist/assets/session-CROK8kXg.js +0 -1
  276. package/dist/assets/setup-DeIVwtAN.js +0 -19
  277. package/dist/assets/slicedToArray-BWTfB_HY.js +0 -2
  278. package/dist/assets/th-BoRhU51f.js +0 -1
  279. package/dist/assets/trim-DXlOBONx.js +0 -1
  280. package/dist/assets/uniqBy-VaPfeDts.js +0 -1
  281. package/dist/assets/useSlot-BYwgFHQI.js +0 -1
  282. package/dist/assets/useSlotProps-BniFm7V2.js +0 -1
  283. package/dist/assets/user-center-DeRfl05a.js +0 -1
  284. package/dist/assets/user-sessions-DXOv0sUo.js +0 -1
  285. package/dist/assets/vi-klSG5jCL.js +0 -1
  286. package/dist/assets/wrap-locale-B5FvTTmq.js +0 -1
  287. package/dist/assets/zh-Bbb3gm_K.js +0 -4
  288. package/dist/assets/zh-tw-D9dNfXQ_.js +0 -3
@@ -1,4 +1,4 @@
1
- import{aK as Re,aL as Ae,aM as He,ao as Ve,cg as D,aN as F,r as p,aO as Ee,aP as De,j as t,aR as _,aS as We,a0 as Te,dh as Oe,di as Se,$ as Ue,c6 as qe,az as Y,a2 as se,a3 as le,bv as f,ai as Ge,ap as Q,aH as X,Q as W,T as P,b as Ye,aI as de,B as w,bx as Qe,M as H,dj as ce,H as ue,dk as pe,a5 as Xe,J as he,k as q,dl as Je,l as V,dm as Ke,dn as Ze}from"./index-CURuTEb2.js";import{d as xe}from"./Menu-C83cJ_lX.js";import{T as et}from"./Toolbar-Dsg-eB8s.js";import{H as me}from"./Hidden-D8s2OkVT.js";const G={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 tt(e){return Re("MuiAppBar",e)}Ae("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const nt=["className","color","enableColorOnDark","position"],at=e=>{const{color:n,position:a,classes:r}=e,s={root:["root",`color${D(n)}`,`position${D(a)}`]};return We(s,tt,r)},E=(e,n)=>e?`${e==null?void 0:e.replace(")","")}, ${n})`:n,ot=He(Ve,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,n[`position${D(a.position)}`],n[`color${D(a.color)}`]]}})(({theme:e,ownerState:n})=>{const a=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return F({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},n.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},n.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},n.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},n.position==="static"&&{position:"static"},n.position==="relative"&&{position:"relative"},!e.vars&&F({},n.color==="default"&&{backgroundColor:a,color:e.palette.getContrastText(a)},n.color&&n.color!=="default"&&n.color!=="inherit"&&n.color!=="transparent"&&{backgroundColor:e.palette[n.color].main,color:e.palette[n.color].contrastText},n.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!n.enableColorOnDark&&{backgroundColor:null,color:null},n.color==="transparent"&&F({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&F({},n.color==="default"&&{"--AppBar-background":n.enableColorOnDark?e.vars.palette.AppBar.defaultBg:E(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":n.enableColorOnDark?e.vars.palette.text.primary:E(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},n.color&&!n.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":n.enableColorOnDark?e.vars.palette[n.color].main:E(e.vars.palette.AppBar.darkBg,e.vars.palette[n.color].main),"--AppBar-color":n.enableColorOnDark?e.vars.palette[n.color].contrastText:E(e.vars.palette.AppBar.darkColor,e.vars.palette[n.color].contrastText)},!["inherit","transparent"].includes(n.color)&&{backgroundColor:"var(--AppBar-background)"},{color:n.color==="inherit"?"inherit":"var(--AppBar-color)"},n.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),rt=p.forwardRef(function(n,a){const r=Ee({props:n,name:"MuiAppBar"}),{className:s,color:d="primary",enableColorOnDark:c=!1,position:i="fixed"}=r,u=De(r,nt),o=F({},r,{color:d,position:i,enableColorOnDark:c}),l=at(o);return t.jsx(ot,F({square:!0,component:"header",ownerState:o,elevation:4,className:_(l.root,s,i==="fixed"&&"mui-fixed"),ref:a},u))});function it(e,n){var a,r=Te(e),s=(a=n==null?void 0:n.wait)!==null&&a!==void 0?a:1e3,d=p.useMemo(function(){return Oe(function(){for(var c=[],i=0;i<arguments.length;i++)c[i]=arguments[i];return r.current.apply(r,Se([],Ue(c),!1))},s,n)},[]);return qe(function(){d.cancel()}),{run:d,cancel:d.cancel,flush:d.flush}}const st=Y(t.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),lt=Y(t.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),dt=Y(t.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"),fe=p.createContext(null),ct=e=>{const n=p.useContext(fe);return p.useLayoutEffect(()=>{},[]),n};function ut({children:e,...n}){const[a,r]=p.useState({inFullPage:!1,showToggleButton:!1,headerVisibleInFullPage:!0,footerVisibleInFullPage:!1,sidebarVisibleInFullPage:!1}),s=()=>{r(c=>({...c,inFullPage:!c.inFullPage}))},d=p.useMemo(()=>({...a,headerVisible:!a.inFullPage||a.headerVisibleInFullPage,footerVisible:!a.inFullPage||a.footerVisibleInFullPage,sidebarVisible:!a.inFullPage||a.sidebarVisibleInFullPage,toggleFullPage:s,configure:c=>r(i=>({...i,...c}))}),[a]);return t.jsx(fe.Provider,{value:d,...n,children:e})}var J={},pt=le;Object.defineProperty(J,"__esModule",{value:!0});var ge=J.default=void 0,ht=pt(se()),xt=t;ge=J.default=(0,ht.default)((0,xt.jsx)("path",{d:"M21 11V3h-8l3.29 3.29-10 10L3 13v8h8l-3.29-3.29 10-10z"}),"OpenInFull");var K={},mt=le;Object.defineProperty(K,"__esModule",{value:!0});var be=K.default=void 0,ft=mt(se()),gt=t;be=K.default=(0,ft.default)((0,gt.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 bt({name:e,size:n=36,alt:a="",color:r="#000000",prefix:s="/images",showBadge:d=!1,style:c={},...i}){const u=`${s}/${e}-${r.replace(/^#/,"")}.png`;return t.jsxs(vt,{style:{width:n,height:n},children:[t.jsx(Ge,{width:n,height:n,alt:a||e,src:u,style:Object.assign({width:n},c),...i}),d&&t.jsx("i",{className:"badge-point"})]})}const vt=f("div")`
1
+ import{ch as Re,cg as Ae,ci as He,ao as Ve,cj as D,bT as F,r as p,cm as Ee,cn as De,j as t,co as _,cp as We,a0 as Te,ds as Oe,dt as Se,$ as Ue,c6 as qe,az as Y,a2 as se,a3 as le,bf as f,ai as Ge,ap as Q,aH as X,Q as W,T as P,b as Ye,aI as de,B as w,bh as Qe,M as H,du as ce,H as ue,dv as pe,a5 as Xe,J as he,k as q,dw as Je,l as V,dx as Ke,dy as Ze}from"./index-B-RFpqiC.js";import{d as xe}from"./Menu-CvZfT5GL.js";import{T as et}from"./Toolbar-CkZJzWdi.js";import{H as me}from"./Hidden-CieUlF-N.js";const G={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 tt(e){return Re("MuiAppBar",e)}Ae("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const nt=["className","color","enableColorOnDark","position"],at=e=>{const{color:n,position:a,classes:r}=e,s={root:["root",`color${D(n)}`,`position${D(a)}`]};return We(s,tt,r)},E=(e,n)=>e?`${e==null?void 0:e.replace(")","")}, ${n})`:n,ot=He(Ve,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,n[`position${D(a.position)}`],n[`color${D(a.color)}`]]}})(({theme:e,ownerState:n})=>{const a=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return F({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},n.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},n.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},n.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},n.position==="static"&&{position:"static"},n.position==="relative"&&{position:"relative"},!e.vars&&F({},n.color==="default"&&{backgroundColor:a,color:e.palette.getContrastText(a)},n.color&&n.color!=="default"&&n.color!=="inherit"&&n.color!=="transparent"&&{backgroundColor:e.palette[n.color].main,color:e.palette[n.color].contrastText},n.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!n.enableColorOnDark&&{backgroundColor:null,color:null},n.color==="transparent"&&F({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&F({},n.color==="default"&&{"--AppBar-background":n.enableColorOnDark?e.vars.palette.AppBar.defaultBg:E(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":n.enableColorOnDark?e.vars.palette.text.primary:E(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},n.color&&!n.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":n.enableColorOnDark?e.vars.palette[n.color].main:E(e.vars.palette.AppBar.darkBg,e.vars.palette[n.color].main),"--AppBar-color":n.enableColorOnDark?e.vars.palette[n.color].contrastText:E(e.vars.palette.AppBar.darkColor,e.vars.palette[n.color].contrastText)},!["inherit","transparent"].includes(n.color)&&{backgroundColor:"var(--AppBar-background)"},{color:n.color==="inherit"?"inherit":"var(--AppBar-color)"},n.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),rt=p.forwardRef(function(n,a){const r=Ee({props:n,name:"MuiAppBar"}),{className:s,color:d="primary",enableColorOnDark:c=!1,position:i="fixed"}=r,u=De(r,nt),o=F({},r,{color:d,position:i,enableColorOnDark:c}),l=at(o);return t.jsx(ot,F({square:!0,component:"header",ownerState:o,elevation:4,className:_(l.root,s,i==="fixed"&&"mui-fixed"),ref:a},u))});function it(e,n){var a,r=Te(e),s=(a=n==null?void 0:n.wait)!==null&&a!==void 0?a:1e3,d=p.useMemo(function(){return Oe(function(){for(var c=[],i=0;i<arguments.length;i++)c[i]=arguments[i];return r.current.apply(r,Se([],Ue(c),!1))},s,n)},[]);return qe(function(){d.cancel()}),{run:d,cancel:d.cancel,flush:d.flush}}const st=Y(t.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),lt=Y(t.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),dt=Y(t.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"),fe=p.createContext(null),ct=e=>{const n=p.useContext(fe);return p.useLayoutEffect(()=>{},[]),n};function ut({children:e,...n}){const[a,r]=p.useState({inFullPage:!1,showToggleButton:!1,headerVisibleInFullPage:!0,footerVisibleInFullPage:!1,sidebarVisibleInFullPage:!1}),s=()=>{r(c=>({...c,inFullPage:!c.inFullPage}))},d=p.useMemo(()=>({...a,headerVisible:!a.inFullPage||a.headerVisibleInFullPage,footerVisible:!a.inFullPage||a.footerVisibleInFullPage,sidebarVisible:!a.inFullPage||a.sidebarVisibleInFullPage,toggleFullPage:s,configure:c=>r(i=>({...i,...c}))}),[a]);return t.jsx(fe.Provider,{value:d,...n,children:e})}var J={},pt=le;Object.defineProperty(J,"__esModule",{value:!0});var ge=J.default=void 0,ht=pt(se()),xt=t;ge=J.default=(0,ht.default)((0,xt.jsx)("path",{d:"M21 11V3h-8l3.29 3.29-10 10L3 13v8h8l-3.29-3.29 10-10z"}),"OpenInFull");var K={},mt=le;Object.defineProperty(K,"__esModule",{value:!0});var be=K.default=void 0,ft=mt(se()),gt=t;be=K.default=(0,ft.default)((0,gt.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 bt({name:e,size:n=36,alt:a="",color:r="#000000",prefix:s="/images",showBadge:d=!1,style:c={},...i}){const u=`${s}/${e}-${r.replace(/^#/,"")}.png`;return t.jsxs(vt,{style:{width:n,height:n},children:[t.jsx(Ge,{width:n,height:n,alt:a||e,src:u,style:Object.assign({width:n},c),...i}),d&&t.jsx("i",{className:"badge-point"})]})}const vt=f("div")`
2
2
  position: relative;
3
3
  .badge-point {
4
4
  position: absolute;
@@ -1,4 +1,4 @@
1
- import{r as A,j as t,P as i,ba as Z,a4 as g,a5 as z,ai as U,cK as Y,n as S,cL as W,cH as G,cM as V,cN as q,cO as _,T as ee,C as te}from"./index-CURuTEb2.js";import{j as ie}from"./url-join-CnY0czxB.js";import{S as j}from"./Skeleton-CX8Tt8Bo.js";import{H as ne}from"./Hidden-D8s2OkVT.js";const H=A.createContext(),{Provider:oe}=H,N=(e,o,a=window.location.pathname.replace(/\/$/,"/"))=>e?o?e===a:new RegExp(e).test(a):!1;function D({children:e,steps:o,mode:a}){const[h,m]=A.useState("");!h&&o.length&&m(o[0].key);const p=o.map(n=>n.children?[{key:n.key,hasChild:!0},n.children.map(c=>({parentKey:n.key,key:c.key}))]:{key:n.key}).flat(1/0),d=p.filter(n=>!n.hasChild),y=n=>{let c;const s=p.findIndex(l=>l.key===h?(c=l.parentKey,!0):!1);if(c===n)return"current";const f=p.findIndex(l=>l.key===n);if(f!==-1){if(f===s)return"current";if(f<s)return"before"}return"after"};function b(n){m(n)}function r(n){if(typeof n=="function"){const c=n(d.findIndex(s=>s.key===h));m(d[c].key)}else m(d[n].key)}const u=d.findIndex(n=>n.key===h);A.useEffect(()=>{if(a==="history"){let n="";o.some(c=>c.children&&c.children.length?c.children.some(s=>N(s.path,s.exact)?(n=s.key,!0):!1):N(c.path,c.exact)?(n=c.key,!0):!1),n&&m(n)}return()=>{}},[o,a]);const k={steps:o,totalStepsCount:d.length,getStepStatus:y,setActiveStepByKey:b,setActiveStepByIndex:r,activeStep:u,canBackToStep:n=>a==="memory"&&u!==0&&n<u};return t.jsx(oe,{value:k,children:e})}function P(){return A.useContext(H)}D.propTypes={children:i.any.isRequired,steps:i.array.isRequired,mode:i.string};D.defaultProps={mode:"history"};var se=Object.prototype.hasOwnProperty,ae=Object.prototype.toString;function re(e){if(e==null)return!0;if(typeof e=="boolean")return!1;if(typeof e=="number")return e===0;if(typeof e=="string"||typeof e=="function"||Array.isArray(e))return e.length===0;if(e instanceof Error)return e.message==="";if(e.toString==ae)switch(e.toString()){case"[object File]":case"[object Map]":case"[object Set]":return e.size===0;case"[object Object]":{for(var o in e)if(se.call(e,o))return!1;return!0}}return!1}var le=re;const ce=Z(le),pe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAAFACAYAAADNkKWqAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjw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bk0C2Ckh3I3BRm0C2LmM+8YZCB9BAIuI+MUGRWxSVA2hiS7bBLCgTC9VL8Fgg+sIYGG9h1D4uI0A0l0ITXTZlQDyt9ZDaLDBvgSQ72T9EILrCB+HEkCulXHf+LL4cIgnT54IHwcTQG6V6aVqgw2mJIDsbM0QCh9zEED2tmQIx2+piy9nEj6mJoAcbM4QGmywBAHkaFPuGwsfSxJAJnPMvrGJLmsQQGaxy0vVBhusTQCZVYTww4cPmy84iu/6iNDFqtr9+/eFj9UJIFCWH79AWQIIlCWAQFn/BizMxGSX68uEAAAAAElFTkSuQmCC",C={en:{optional:"Optional",defaultNavSubTitle:"Launching"},zh:{optional:"可选",defaultNavSubTitle:"启动"}},de=e=>C[e]?C[e]:C.en,he=e=>e==="zh"?"启动":"Launching",J=e=>(e==null?void 0:e.title)||(e==null?void 0:e.name)||"";function v({blockletMeta:e,subTitle:o,logoUrl:a,locale:h,navLogo:m,loading:p}){const d=z(k=>k.breakpoints.down("md")),y=d?18:48,b=A.useRef(null),[r,u]=A.useState("");return A.useEffect(()=>{b.current&&b.current.offsetHeight>34&&(r===""?u("middle"):r==="middle"&&u("small"))},[r]),t.jsxs(xe,{className:r==="small"?"center-mode":"",children:[d?t.jsx("div",{className:"app-icon",children:m}):t.jsxs("div",{className:"app-icon",children:[p&&t.jsx(me,{blockletSize:y,isMobile:d}),!p&&t.jsx(X,{blockletSize:y,logoUrl:a})]}),t.jsxs("div",{className:"header-title",children:[d&&o&&t.jsx("div",{className:"header-title-sub",children:o}),t.jsxs("div",{className:"app-name-content",children:[!d&&t.jsx("div",{className:"launching-context",children:o||he(h)}),t.jsx("div",{className:`header-title-name ${r==="middle"||r==="small"?"middle-size":""}`,ref:b,children:t.jsx(M,{logoUrl:a,isMobile:d,blockletMeta:e,blockletSize:y,loading:p})})]})]})]})}v.propTypes={blockletMeta:i.object,subTitle:i.any,logoUrl:i.string,locale:i.string,navLogo:i.any,loading:i.bool};v.defaultProps={subTitle:"",logoUrl:"",locale:"",navLogo:"",loading:!1,blockletMeta:{}};function me({blockletSize:e,isMobile:o}){return o?t.jsx(j,{variant:"rectangular",width:100,height:16,alt:"icon",style:{marginTop:4}}):t.jsx(j,{variant:"rectangular",width:e,height:e})}function X({logoUrl:e,blockletSize:o}){return t.jsx(U,{width:o,height:o,src:e,alt:"blocklet icon",fallback:pe,style:{verticalAlign:"text-bottom"}},`layout-app-icon-${e}`)}function M({isMobile:e,logoUrl:o,blockletMeta:a,blockletSize:h,loading:m}){const p=J(a);return m?t.jsx(j,{variant:"rectangular",width:100,height:16,alt:"icon",style:{marginTop:4}}):ce(a)?t.jsx(j,{variant:"rectangular",animation:!1,width:100,height:16,alt:"icon",style:{marginTop:4}}):e?t.jsxs(ue,{children:[t.jsx(X,{blockletSize:h,logoUrl:o}),t.jsx("span",{className:"ellipsis-title",children:J(a)})]}):t.jsx(fe,{target:"_blank",href:ie((a==null?void 0:a.registryUrl)||"",`/blocklets/${a==null?void 0:a.did}`),title:p,children:p})}const ue=g.div`
1
+ import{r as A,j as t,P as i,a$ as Z,a4 as g,a5 as z,ai as U,cS as Y,n as S,cT as W,cP as G,cU as V,cV as q,cW as _,T as ee,C as te}from"./index-B-RFpqiC.js";import{j as ie}from"./url-join-Cv0idqJk.js";import{S as j}from"./Skeleton-WadU0OJu.js";import{H as ne}from"./Hidden-CieUlF-N.js";const H=A.createContext(),{Provider:oe}=H,N=(e,o,a=window.location.pathname.replace(/\/$/,"/"))=>e?o?e===a:new RegExp(e).test(a):!1;function P({children:e,steps:o,mode:a}){const[h,m]=A.useState("");!h&&o.length&&m(o[0].key);const p=o.map(n=>n.children?[{key:n.key,hasChild:!0},n.children.map(c=>({parentKey:n.key,key:c.key}))]:{key:n.key}).flat(1/0),d=p.filter(n=>!n.hasChild),y=n=>{let c;const s=p.findIndex(l=>l.key===h?(c=l.parentKey,!0):!1);if(c===n)return"current";const f=p.findIndex(l=>l.key===n);if(f!==-1){if(f===s)return"current";if(f<s)return"before"}return"after"};function b(n){m(n)}function r(n){if(typeof n=="function"){const c=n(d.findIndex(s=>s.key===h));m(d[c].key)}else m(d[n].key)}const u=d.findIndex(n=>n.key===h);A.useEffect(()=>{if(a==="history"){let n="";o.some(c=>c.children&&c.children.length?c.children.some(s=>N(s.path,s.exact)?(n=s.key,!0):!1):N(c.path,c.exact)?(n=c.key,!0):!1),n&&m(n)}return()=>{}},[o,a]);const k={steps:o,totalStepsCount:d.length,getStepStatus:y,setActiveStepByKey:b,setActiveStepByIndex:r,activeStep:u,canBackToStep:n=>a==="memory"&&u!==0&&n<u};return t.jsx(oe,{value:k,children:e})}function D(){return A.useContext(H)}P.propTypes={children:i.any.isRequired,steps:i.array.isRequired,mode:i.string};P.defaultProps={mode:"history"};var se=Object.prototype.hasOwnProperty,ae=Object.prototype.toString;function re(e){if(e==null)return!0;if(typeof e=="boolean")return!1;if(typeof e=="number")return e===0;if(typeof e=="string"||typeof e=="function"||Array.isArray(e))return e.length===0;if(e instanceof Error)return e.message==="";if(e.toString==ae)switch(e.toString()){case"[object File]":case"[object Map]":case"[object Set]":return e.size===0;case"[object Object]":{for(var o in e)if(se.call(e,o))return!1;return!0}}return!1}var le=re;const ce=Z(le),pe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAAFACAYAAADNkKWqAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA1aSURBVHgB7d3ZjhxVEoDhxDKN902AUF/w/s/lCwthtXc3VsvyzETNJNOUe6kllzgnvk9KwVyMMNj5d2ZGRtUP//qPAaCgOwNAUQIIlCWAQFl3B5jJt2/fhvPz8+HDhw/DxcXF5n/fuXNnODk5GR4/fjzcv39/uHvXH0HW84MhCFOL0L1//35zxN9fJ+J379694cWLF0LIKgSQyewavqs8evRICFmcAHK0Y8K3LUL45MmTzZUhzE0AOdiU4dsWAYznhHHAXASQvX39+nUTvY8fP04evm1xS/z8+XMhZBYCyM5ikjuGb2ljCE2OmZIAcqsv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={en:{optional:"Optional",defaultNavSubTitle:"Launching"},zh:{optional:"可选",defaultNavSubTitle:"启动"}},de=e=>C[e]?C[e]:C.en,he=e=>e==="zh"?"启动":"Launching",J=e=>(e==null?void 0:e.title)||(e==null?void 0:e.name)||"";function v({blockletMeta:e,subTitle:o,logoUrl:a,locale:h,navLogo:m,loading:p}){const d=z(k=>k.breakpoints.down("md")),y=d?18:48,b=A.useRef(null),[r,u]=A.useState("");return A.useEffect(()=>{b.current&&b.current.offsetHeight>34&&(r===""?u("middle"):r==="middle"&&u("small"))},[r]),t.jsxs(xe,{className:r==="small"?"center-mode":"",children:[d?t.jsx("div",{className:"app-icon",children:m}):t.jsxs("div",{className:"app-icon",children:[p&&t.jsx(me,{blockletSize:y,isMobile:d}),!p&&t.jsx(X,{blockletSize:y,logoUrl:a})]}),t.jsxs("div",{className:"header-title",children:[d&&o&&t.jsx("div",{className:"header-title-sub",children:o}),t.jsxs("div",{className:"app-name-content",children:[!d&&t.jsx("div",{className:"launching-context",children:o||he(h)}),t.jsx("div",{className:`header-title-name ${r==="middle"||r==="small"?"middle-size":""}`,ref:b,children:t.jsx(M,{logoUrl:a,isMobile:d,blockletMeta:e,blockletSize:y,loading:p})})]})]})]})}v.propTypes={blockletMeta:i.object,subTitle:i.any,logoUrl:i.string,locale:i.string,navLogo:i.any,loading:i.bool};v.defaultProps={subTitle:"",logoUrl:"",locale:"",navLogo:"",loading:!1,blockletMeta:{}};function me({blockletSize:e,isMobile:o}){return o?t.jsx(j,{variant:"rectangular",width:100,height:16,alt:"icon",style:{marginTop:4}}):t.jsx(j,{variant:"rectangular",width:e,height:e})}function X({logoUrl:e,blockletSize:o}){return t.jsx(U,{width:o,height:o,src:e,alt:"blocklet icon",fallback:pe,style:{verticalAlign:"text-bottom"}},`layout-app-icon-${e}`)}function M({isMobile:e,logoUrl:o,blockletMeta:a,blockletSize:h,loading:m}){const p=J(a);return m?t.jsx(j,{variant:"rectangular",width:100,height:16,alt:"icon",style:{marginTop:4}}):ce(a)?t.jsx(j,{variant:"rectangular",animation:!1,width:100,height:16,alt:"icon",style:{marginTop:4}}):e?t.jsxs(ue,{children:[t.jsx(X,{blockletSize:h,logoUrl:o}),t.jsx("span",{className:"ellipsis-title",children:J(a)})]}):t.jsx(fe,{target:"_blank",href:ie((a==null?void 0:a.registryUrl)||"",`/blocklets/${a==null?void 0:a.did}`),title:p,children:p})}const ue=g.div`
2
2
  .ellipsis-title {
3
3
  flex: 1;
4
4
  position: absolute;
@@ -156,7 +156,7 @@ import{r as A,j as t,P as i,ba as Z,a4 as g,a5 as z,ai as U,cK as Y,n as S,cL as
156
156
  }
157
157
  }
158
158
  }
159
- `;function Q({blockletMeta:e,logoUrl:o,locale:a,useOfSkeleton:h,subTitle:m,loading:p}){const{steps:d,activeStep:y,setActiveStepByKey:b,setActiveStepByIndex:r,getStepStatus:u,canBackToStep:k}=P(),n=h?p:!1,c=(s,f)=>{const l=["step-block"],x=u(s.key);switch(x){case"current":l.push("step-active");break;case"before":l.push("step-checked");break}switch(s.showChild){case"activated":x==="after"&&l.push("hide-step-child");break;case"activating":(x==="after"||x==="before")&&l.push("hide-step-child");break;case"always":l.push("always-step-child");break}return s.optional===!0&&y<f&&l.push("step-optional"),l.join(" ")};return t.jsxs(ge,{children:[t.jsx(v,{blockletMeta:e,loading:p,logoUrl:o,locale:a,subTitle:m}),t.jsx(ye,{className:`${n?"hide-child-step-desc":""}`,children:d.map((s,f)=>{const l=!n&&k(f);return t.jsxs("div",{className:c(s,f),children:[t.jsx("div",{className:"step-icon",children:t.jsx(Y,{style:{fontSize:16}})}),t.jsx("div",{className:"step-line"}),t.jsxs("div",{className:"step-content",title:s.name,children:[t.jsx("span",{className:`step-content-name ${l?" step-clickable":""}`,onClick:()=>{if(l){if(s.key){b(s.key);return}r(f)}},children:n?t.jsx(j,{variant:"text",width:100}):s.name}),s.description&&t.jsx("div",{className:"step-desc",children:s.description}),s.children&&s.children.length&&t.jsx("div",{className:"step-children",children:s.children.map(x=>{let w="";switch(u(x.key)){case"before":w="step-child-block-checked";break;case"current":w="step-child-block-active";break}return t.jsx("div",{className:`step-child-block ${w}`,children:x.name},x.key)})})]})]},s.key)})})]})}const ge=g.div`
159
+ `;function Q({blockletMeta:e,logoUrl:o,locale:a,useOfSkeleton:h,subTitle:m,loading:p}){const{steps:d,activeStep:y,setActiveStepByKey:b,setActiveStepByIndex:r,getStepStatus:u,canBackToStep:k}=D(),n=h?p:!1,c=(s,f)=>{const l=["step-block"],x=u(s.key);switch(x){case"current":l.push("step-active");break;case"before":l.push("step-checked");break}switch(s.showChild){case"activated":x==="after"&&l.push("hide-step-child");break;case"activating":(x==="after"||x==="before")&&l.push("hide-step-child");break;case"always":l.push("always-step-child");break}return s.optional===!0&&y<f&&l.push("step-optional"),l.join(" ")};return t.jsxs(ge,{children:[t.jsx(v,{blockletMeta:e,loading:p,logoUrl:o,locale:a,subTitle:m}),t.jsx(ye,{className:`${n?"hide-child-step-desc":""}`,children:d.map((s,f)=>{const l=!n&&k(f);return t.jsxs("div",{className:c(s,f),children:[t.jsx("div",{className:"step-icon",children:t.jsx(Y,{style:{fontSize:16}})}),t.jsx("div",{className:"step-line"}),t.jsxs("div",{className:"step-content",title:s.name,children:[t.jsx("span",{className:`step-content-name ${l?" step-clickable":""}`,onClick:()=>{if(l){if(s.key){b(s.key);return}r(f)}},children:n?t.jsx(j,{variant:"text",width:100}):s.name}),s.description&&t.jsx("div",{className:"step-desc",children:s.description}),s.children&&s.children.length&&t.jsx("div",{className:"step-children",children:s.children.map(x=>{let w="";switch(u(x.key)){case"before":w="step-child-block-checked";break;case"current":w="step-child-block-active";break}return t.jsx("div",{className:`step-child-block ${w}`,children:x.name},x.key)})})]})]},s.key)})})]})}const ge=g.div`
160
160
  overflow-y: auto;
161
161
  ${e=>e.theme.breakpoints.up("md")} {
162
162
  padding: 24px;
@@ -447,7 +447,7 @@ import{r as A,j as t,P as i,ba as Z,a4 as g,a5 as z,ai as U,cK as Y,n as S,cL as
447
447
  height: 100%;
448
448
  max-height: 100%;
449
449
  }
450
- `,we=W({typography:{fontSize:14},palette:{primary:{main:"#1dc1c7",contrastText:"#fff"},secondary:{main:"#1976d2",contrastText:"#fff"}}});function K({blockletMeta:e,loading:o,children:a,logoUrl:h,locale:m,header:p,headerEndAddons:d,pcWidth:y,pcHeight:b,navLogo:r,useOfSkeleton:u,stepTip:k,navSubTitle:n,contentMaxWidth:c,theme:s,...f}){const l=z($=>$.breakpoints.down("md")),{activeStep:x,totalStepsCount:w}=P(),E=e||{},F=l?be:ke,O=de(m);r&&!A.isValidElement(r)&&G(r)&&(l?r=r.mobile:r=t.jsx(Ee,{children:r.desktop}));const L=Object.assign(we,s||{});return t.jsx(V,{injectFirst:!0,children:t.jsx(q,{theme:L,children:t.jsx(_,{theme:L,children:t.jsxs(ve,{...f,children:[t.jsxs(je,{maxWidth:c,width:y,className:"ll-header",children:[p&&p,!p&&t.jsxs(t.Fragment,{children:[l&&t.jsx("div",{className:"left",children:t.jsx(v,{blockletMeta:E,navLogo:r,subTitle:t.jsxs("span",{children:[`${n||O.defaultNavSubTitle} ${x+1}/${w}`,t.jsx(T,{value:(x+1)/w*100,style:{marginLeft:3}})]}),logoUrl:h,locale:m,loading:o})}),r&&!l&&t.jsx("div",{className:"left",children:r}),d&&t.jsx("div",{className:"right",children:d})]})]}),t.jsxs(F,{contentMaxWidth:c,className:"ll-container",children:[t.jsx(ne,{mdDown:!0,children:t.jsx(Q,{locale:m,blockletMeta:E,logoUrl:h,useOfSkeleton:u,subTitle:n,loading:o})}),t.jsx(ee,{component:"div",className:"layout-content",children:t.jsx(A.Suspense,{fallback:t.jsx(te,{relative:"parent",children:t.jsx(S,{style:{marginTop:36}})}),children:a})})]})]})})})})}K.propTypes={loading:i.bool,blockletMeta:i.object,children:i.object.isRequired,logoUrl:i.string,locale:i.oneOf(["en","zh"]),header:i.any,headerEndAddons:i.any,pcWidth:i.any,pcHeight:i.any,contentMaxWidth:i.string,navLogo:i.oneOfType([i.node,i.object]),useOfSkeleton:i.bool,stepTip:i.string,navSubTitle:i.string,theme:i.object};K.defaultProps={loading:!1,blockletMeta:{},logoUrl:"",locale:"en",header:null,headerEndAddons:null,pcWidth:"80%",pcHeight:"80%",contentMaxWidth:"1245px",navLogo:"",useOfSkeleton:!0,stepTip:"",navSubTitle:"",theme:null};const I=navigator.userAgent.toLocaleLowerCase();let R="";I.includes("iphone os")&&I.includes("crios")&&(R="height: calc(100vh - 60px);");const je=g.header`
450
+ `,we=W({typography:{fontSize:14},palette:{primary:{main:"#1dc1c7",contrastText:"#fff"},secondary:{main:"#1976d2",contrastText:"#fff"}}});function K({blockletMeta:e,loading:o,children:a,logoUrl:h,locale:m,header:p,headerEndAddons:d,pcWidth:y,pcHeight:b,navLogo:r,useOfSkeleton:u,stepTip:k,navSubTitle:n,contentMaxWidth:c,theme:s,...f}){const l=z($=>$.breakpoints.down("md")),{activeStep:x,totalStepsCount:w}=D(),E=e||{},F=l?be:ke,O=de(m);r&&!A.isValidElement(r)&&G(r)&&(l?r=r.mobile:r=t.jsx(Ee,{children:r.desktop}));const L=Object.assign(we,s||{});return t.jsx(V,{injectFirst:!0,children:t.jsx(q,{theme:L,children:t.jsx(_,{theme:L,children:t.jsxs(ve,{...f,children:[t.jsxs(je,{maxWidth:c,width:y,className:"ll-header",children:[p&&p,!p&&t.jsxs(t.Fragment,{children:[l&&t.jsx("div",{className:"left",children:t.jsx(v,{blockletMeta:E,navLogo:r,subTitle:t.jsxs("span",{children:[`${n||O.defaultNavSubTitle} ${x+1}/${w}`,t.jsx(T,{value:(x+1)/w*100,style:{marginLeft:3}})]}),logoUrl:h,locale:m,loading:o})}),r&&!l&&t.jsx("div",{className:"left",children:r}),d&&t.jsx("div",{className:"right",children:d})]})]}),t.jsxs(F,{contentMaxWidth:c,className:"ll-container",children:[t.jsx(ne,{mdDown:!0,children:t.jsx(Q,{locale:m,blockletMeta:E,logoUrl:h,useOfSkeleton:u,subTitle:n,loading:o})}),t.jsx(ee,{component:"div",className:"layout-content",children:t.jsx(A.Suspense,{fallback:t.jsx(te,{relative:"parent",children:t.jsx(S,{style:{marginTop:36}})}),children:a})})]})]})})})})}K.propTypes={loading:i.bool,blockletMeta:i.object,children:i.object.isRequired,logoUrl:i.string,locale:i.oneOf(["en","zh"]),header:i.any,headerEndAddons:i.any,pcWidth:i.any,pcHeight:i.any,contentMaxWidth:i.string,navLogo:i.oneOfType([i.node,i.object]),useOfSkeleton:i.bool,stepTip:i.string,navSubTitle:i.string,theme:i.object};K.defaultProps={loading:!1,blockletMeta:{},logoUrl:"",locale:"en",header:null,headerEndAddons:null,pcWidth:"80%",pcHeight:"80%",contentMaxWidth:"1245px",navLogo:"",useOfSkeleton:!0,stepTip:"",navSubTitle:"",theme:null};const I=navigator.userAgent.toLocaleLowerCase();let R="";I.includes("iphone os")&&I.includes("crios")&&(R="height: calc(100vh - 60px);");const je=g.header`
451
451
  width: ${e=>e.width||"80%"};
452
452
  min-width: 900px;
453
453
  box-sizing: border-box;
@@ -541,4 +541,4 @@ import{r as A,j as t,P as i,ba as Z,a4 as g,a5 as z,ai as U,cK as Y,n as S,cL as
541
541
  `,Ee=g.div`
542
542
  display: block;
543
543
  margin-top: 4px;
544
- `;export{K as L,D as S,P as u};
544
+ `;export{K as L,P as S,D as u};
@@ -1 +1 @@
1
- import{aL as ht,aK as vt,aM as O,cV as $t,cg as jt,aN as p,r as d,aO as mt,aP as st,aR as N,j as u,aS as St,az as Ht,cQ as re,cW as At,cX as Ot,cY as Xt,cZ as nt,ap as ne,c_ as pt,c$ as se,bv as ae,bF as L}from"./index-CURuTEb2.js";let K;function _t(){if(K)return K;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),K="reverse",t.scrollLeft>0?K="default":(t.scrollLeft=1,t.scrollLeft===0&&(K="negative")),document.body.removeChild(t),K}function ie(t,e){const l=t.scrollLeft;if(e!=="rtl")return l;switch(_t()){case"negative":return t.scrollWidth-t.clientWidth+l;case"reverse":return t.scrollWidth-t.clientWidth-l;default:return l}}function ce(t){return vt("MuiTab",t)}const k=ht("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),de=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ue=t=>{const{classes:e,textColor:l,fullWidth:s,wrapped:n,icon:a,label:h,selected:v,disabled:b}=t,g={root:["root",a&&h&&"labelIcon",`textColor${jt(l)}`,s&&"fullWidth",n&&"wrapped",v&&"selected",b&&"disabled"],iconWrapper:["iconWrapper"]};return St(g,ce,e)},be=O($t,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.label&&l.icon&&e.labelIcon,e[`textColor${jt(l.textColor)}`],l.fullWidth&&e.fullWidth,l.wrapped&&e.wrapped,{[`& .${k.iconWrapper}`]:e.iconWrapper}]}})(({theme:t,ownerState:e})=>p({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${k.iconWrapper}`]:p({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${k.selected}`]:{opacity:1},[`&.${k.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${k.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${k.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${k.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${k.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),gt=d.forwardRef(function(e,l){const s=mt({props:e,name:"MuiTab"}),{className:n,disabled:a=!1,disableFocusRipple:h=!1,fullWidth:v,icon:b,iconPosition:g="top",indicator:B,label:y,onChange:m,onClick:w,onFocus:F,selected:T,selectionFollowsFocus:x,textColor:X="inherit",value:E,wrapped:at=!1}=s,_=st(s,de),V=p({},s,{disabled:a,disableFocusRipple:h,selected:T,icon:!!b,iconPosition:g,label:!!y,fullWidth:v,textColor:X,wrapped:at}),D=ue(V),$=b&&y&&d.isValidElement(b)?d.cloneElement(b,{className:N(D.iconWrapper,b.props.className)}):b,J=R=>{!T&&m&&m(R,E),w&&w(R)},Y=R=>{x&&!T&&m&&m(R,E),F&&F(R)};return u.jsxs(be,p({focusRipple:!h,className:N(D.root,n),ref:l,role:"tab","aria-selected":T,disabled:a,onClick:J,onFocus:Y,ownerState:V,tabIndex:T?0:-1},_,{children:[g==="top"||g==="start"?u.jsxs(d.Fragment,{children:[$,y]}):u.jsxs(d.Fragment,{children:[y,$]}),B]}))}),pe=Ht(u.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),fe=Ht(u.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function he(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ve(t,e,l,s={},n=()=>{}){const{ease:a=he,duration:h=300}=s;let v=null;const b=e[t];let g=!1;const B=()=>{g=!0},y=m=>{if(g){n(new Error("Animation cancelled"));return}v===null&&(v=m);const w=Math.min(1,(m-v)/h);if(e[t]=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 me=["onChange"],Se={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function ge(t){const{onChange:e}=t,l=st(t,me),s=d.useRef(),n=d.useRef(null),a=()=>{s.current=n.current.offsetHeight-n.current.clientHeight};return re(()=>{const h=At(()=>{const b=s.current;a(),b!==s.current&&e(s.current)}),v=Ot(n.current);return v.addEventListener("resize",h),()=>{h.clear(),v.removeEventListener("resize",h)}},[e]),d.useEffect(()=>{a(),e(s.current)},[e]),u.jsx("div",p({style:Se},l,{ref:n}))}function xe(t){return vt("MuiTabScrollButton",t)}const ye=ht("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Ce=["className","slots","slotProps","direction","orientation","disabled"],Be=t=>{const{classes:e,orientation:l,disabled:s}=t;return St({root:["root",l,s&&"disabled"]},xe,e)},we=O($t,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.orientation&&e[l.orientation]]}})(({ownerState:t})=>p({width:40,flexShrink:0,opacity:.8,[`&.${ye.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),Te=d.forwardRef(function(e,l){var s,n;const a=mt({props:e,name:"MuiTabScrollButton"}),{className:h,slots:v={},slotProps:b={},direction:g}=a,B=st(a,Ce),y=Xt(),m=p({isRtl:y},a),w=Be(m),F=(s=v.StartScrollButtonIcon)!=null?s:pe,T=(n=v.EndScrollButtonIcon)!=null?n:fe,x=nt({elementType:F,externalSlotProps:b.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),X=nt({elementType:T,externalSlotProps:b.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return u.jsx(we,p({component:"div",className:N(w.root,h),ref:l,role:null,ownerState:m,tabIndex:null},B,{children:g==="left"?u.jsx(F,p({},x)):u.jsx(T,p({},X))}))});function Me(t){return vt("MuiTabs",t)}const ft=ht("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Ie=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],kt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,Nt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,rt=(t,e,l)=>{let s=!1,n=l(t,e);for(;n;){if(n===t.firstChild){if(s)return;s=!0}const a=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||a)n=l(t,n);else{n.focus();return}}},Ee=t=>{const{vertical:e,fixed:l,hideScrollbar:s,scrollableX:n,scrollableY:a,centered:h,scrollButtonsHideMobile:v,classes:b}=t;return St({root:["root",e&&"vertical"],scroller:["scroller",l&&"fixed",s&&"hideScrollbar",n&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",h&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",v&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[s&&"hideScrollbar"]},Me,b)},Re=O("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[{[`& .${ft.scrollButtons}`]:e.scrollButtons},{[`& .${ft.scrollButtons}`]:l.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,l.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>p({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${ft.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),ze=O("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.scroller,l.fixed&&e.fixed,l.hideScrollbar&&e.hideScrollbar,l.scrollableX&&e.scrollableX,l.scrollableY&&e.scrollableY]}})(({ownerState:t})=>p({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),We=O("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.flexContainer,l.vertical&&e.flexContainerVertical,l.centered&&e.centered]}})(({ownerState:t})=>p({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),Pe=O("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>p({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),ke=O(ge)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Lt={},xt=d.forwardRef(function(e,l){const s=mt({props:e,name:"MuiTabs"}),n=ne(),a=Xt(),{"aria-label":h,"aria-labelledby":v,action:b,centered:g=!1,children:B,className:y,component:m="div",allowScrollButtonsMobile:w=!1,indicatorColor:F="primary",onChange:T,orientation:x="horizontal",ScrollButtonComponent:X=Te,scrollButtons:E="auto",selectionFollowsFocus:at,slots:_={},slotProps:V={},TabIndicatorProps:D={},TabScrollButtonProps:$={},textColor:J="primary",value:Y,variant:R="standard",visibleScrollbar:it=!1}=s,Dt=st(s,Ie),M=R==="scrollable",C=x==="vertical",q=C?"scrollTop":"scrollLeft",tt=C?"top":"left",et=C?"bottom":"right",ct=C?"clientHeight":"clientWidth",G=C?"height":"width",j=p({},s,{component:m,allowScrollButtonsMobile:w,indicatorColor:F,orientation:x,vertical:C,scrollButtons:E,textColor:J,variant:R,visibleScrollbar:it,fixed:!M,hideScrollbar:M&&!it,scrollableX:M&&!C,scrollableY:M&&C,centered:g&&!M,scrollButtonsHideMobile:!w}),W=Ee(j),Yt=nt({elementType:_.StartScrollButtonIcon,externalSlotProps:V.startScrollButtonIcon,ownerState:j}),Kt=nt({elementType:_.EndScrollButtonIcon,externalSlotProps:V.endScrollButtonIcon,ownerState:j}),[yt,Ut]=d.useState(!1),[H,Ct]=d.useState(Lt),[Bt,Vt]=d.useState(!1),[wt,qt]=d.useState(!1),[Tt,Gt]=d.useState(!1),[Mt,Qt]=d.useState({overflow:"hidden",scrollbarWidth:0}),It=new Map,z=d.useRef(null),A=d.useRef(null),Et=()=>{const o=z.current;let r;if(o){const i=o.getBoundingClientRect();r={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ie(o,a?"rtl":"ltr"),scrollWidth:o.scrollWidth,top:i.top,bottom:i.bottom,left:i.left,right:i.right}}let c;if(o&&Y!==!1){const i=A.current.children;if(i.length>0){const f=i[It.get(Y)];c=f?f.getBoundingClientRect():null}}return{tabsMeta:r,tabMeta:c}},Q=pt(()=>{const{tabsMeta:o,tabMeta:r}=Et();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,[G]:r?r[G]:0};if(isNaN(H[i])||isNaN(H[G]))Ct(f);else{const S=Math.abs(H[i]-f[i]),I=Math.abs(H[G]-f[G]);(S>=1||I>=1)&&Ct(f)}}),dt=(o,{animation:r=!0}={})=>{r?ve(q,z.current,o,{duration:n.transitions.duration.standard}):z.current[q]=o},Rt=o=>{let r=z.current[q];C?r+=o:(r+=o*(a?-1:1),r*=a&&_t()==="reverse"?-1:1),dt(r)},zt=()=>{const o=z.current[ct];let r=0;const c=Array.from(A.current.children);for(let i=0;i<c.length;i+=1){const f=c[i];if(r+f[ct]>o){i===0&&(r=o);break}r+=f[ct]}return r},Zt=()=>{Rt(-1*zt())},Jt=()=>{Rt(zt())},te=d.useCallback(o=>{Qt({overflow:null,scrollbarWidth:o})},[]),ee=()=>{const o={};o.scrollbarSizeListener=M?u.jsx(ke,{onChange:te,className:N(W.scrollableX,W.hideScrollbar)}):null;const c=M&&(E==="auto"&&(Bt||wt)||E===!0);return o.scrollButtonStart=c?u.jsx(X,p({slots:{StartScrollButtonIcon:_.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Yt},orientation:x,direction:a?"right":"left",onClick:Zt,disabled:!Bt},$,{className:N(W.scrollButtons,$.className)})):null,o.scrollButtonEnd=c?u.jsx(X,p({slots:{EndScrollButtonIcon:_.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Kt},orientation:x,direction:a?"left":"right",onClick:Jt,disabled:!wt},$,{className:N(W.scrollButtons,$.className)})):null,o},Wt=pt(o=>{const{tabsMeta:r,tabMeta:c}=Et();if(!(!c||!r)){if(c[tt]<r[tt]){const i=r[q]+(c[tt]-r[tt]);dt(i,{animation:o})}else if(c[et]>r[et]){const i=r[q]+(c[et]-r[et]);dt(i,{animation:o})}}}),ot=pt(()=>{M&&E!==!1&&Gt(!Tt)});d.useEffect(()=>{const o=At(()=>{z.current&&Q()});let r;const c=S=>{S.forEach(I=>{I.removedNodes.forEach(Z=>{var P;(P=r)==null||P.unobserve(Z)}),I.addedNodes.forEach(Z=>{var P;(P=r)==null||P.observe(Z)})}),o(),ot()},i=Ot(z.current);i.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(r=new ResizeObserver(o),Array.from(A.current.children).forEach(S=>{r.observe(S)})),typeof MutationObserver<"u"&&(f=new MutationObserver(c),f.observe(A.current,{childList:!0})),()=>{var S,I;o.clear(),i.removeEventListener("resize",o),(S=f)==null||S.disconnect(),(I=r)==null||I.disconnect()}},[Q,ot]),d.useEffect(()=>{const o=Array.from(A.current.children),r=o.length;if(typeof IntersectionObserver<"u"&&r>0&&M&&E!==!1){const c=o[0],i=o[r-1],f={root:z.current,threshold:.99},S=bt=>{Vt(!bt[0].isIntersecting)},I=new IntersectionObserver(S,f);I.observe(c);const Z=bt=>{qt(!bt[0].isIntersecting)},P=new IntersectionObserver(Z,f);return P.observe(i),()=>{I.disconnect(),P.disconnect()}}},[M,E,Tt,B==null?void 0:B.length]),d.useEffect(()=>{Ut(!0)},[]),d.useEffect(()=>{Q()}),d.useEffect(()=>{Wt(Lt!==H)},[Wt,H]),d.useImperativeHandle(b,()=>({updateIndicator:Q,updateScrollButtons:ot}),[Q,ot]);const Pt=u.jsx(Pe,p({},D,{className:N(W.indicator,D.className),ownerState:j,style:p({},H,D.style)}));let lt=0;const oe=d.Children.map(B,o=>{if(!d.isValidElement(o))return null;const r=o.props.value===void 0?lt:o.props.value;It.set(r,lt);const c=r===Y;return lt+=1,d.cloneElement(o,p({fullWidth:R==="fullWidth",indicator:c&&!yt&&Pt,selected:c,selectionFollowsFocus:at,onChange:T,textColor:J,value:r},lt===1&&Y===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),le=o=>{const r=A.current,c=se(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(),rt(r,c,Nt);break;case S:o.preventDefault(),rt(r,c,kt);break;case"Home":o.preventDefault(),rt(r,null,kt);break;case"End":o.preventDefault(),rt(r,null,Nt);break}},ut=ee();return u.jsxs(Re,p({className:N(W.root,y),ownerState:j,ref:l,as:m},Dt,{children:[ut.scrollButtonStart,ut.scrollbarSizeListener,u.jsxs(ze,{className:W.scroller,ownerState:j,style:{overflow:Mt.overflow,[C?`margin${a?"Left":"Right"}`:"marginBottom"]:it?void 0:-Mt.scrollbarWidth},ref:z,children:[u.jsx(We,{"aria-label":h,"aria-labelledby":v,"aria-orientation":x==="vertical"?"vertical":null,className:W.flexContainer,ownerState:j,onKeyDown:le,ref:A,role:"tablist",children:oe}),yt&&Pt]}),ut.scrollButtonEnd]}))}),Ft="index",U={tabs:`${Ft}-tabs`,tab:`${Ft}-tab`},Ne=ae(xt)(({theme:t})=>({[`& .${U.tabs}`]:{},[`& .${U.tab}`]:{fontSize:"0.875rem",[t.breakpoints.up("md")]:{fontSize:"1rem"}}}));function Le({tabs:t,current:e,onChange:l,...s}){return u.jsx(xt,{scrollButtons:"auto",value:e,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:L.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:L.foregroundsFgSubtile,fontSize:"13px",fontWeight:"normal",textTransform:"capitalize",transition:"background-color 0.2s ease","&.Mui-selected, &:hover":{backgroundColor:"white",borderColor:L.lineBorderBase,color:L.foregroundsFgBase}},".MuiTabs-indicator":{display:"none"},...s.sx},children:t.map(n=>u.jsx(gt,{className:U.tab,value:n.value,label:n.label,icon:n.icon},n.value))})}function Fe({tabs:t,current:e,onChange:l,...s}){return u.jsx(xt,{scrollButtons:"auto",value:e,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":s.orientation!=="vertical"?{"&::after":{content:'""',display:"block",width:"100%",height:"1px",backgroundColor:L.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:L.foregroundsFgSubtile,fontSize:"14px",fontWeight:500,textTransform:"capitalize",minWidth:"auto","&.Mui-selected, &:hover":{color:L.foregroundsFgBase}},".MuiTabs-indicator":{display:s.orientation!=="vertical"?"block":"none",height:"1px",backgroundColor:L.foregroundsFgBase},...s.sx},children:t.map(n=>u.jsx(gt,{className:U.tab,value:n.value,label:n.label,icon:n.icon},n.value))})}function je({tabs:t,current:e,onChange:l,variant:s,...n}){return s==="card"?u.jsx(Le,{...n,tabs:t,current:e,onChange:l}):s==="line"?u.jsx(Fe,{...n,tabs:t,current:e,onChange:l}):u.jsx(Ne,{scrollButtons:"auto",variant:"scrollable",value:e,onChange:(a,h)=>l(h),indicatorColor:"primary",...n,className:[U.tabs,n.className||""].join(" "),children:t.map(a=>u.jsx(gt,{className:U.tab,value:a.value,label:a.label,icon:a.icon},a.value))})}export{fe as K,je as T,pe as a,xt as b,gt as c,_t as d,ie as g};
1
+ import{cg as ht,ch as vt,ci as O,d1 as Ft,cj as $t,bT as p,r as d,cm as mt,cn as st,co as N,j as u,cp as St,az as Ht,cY as re,d2 as At,d3 as Ot,d4 as Xt,d5 as nt,ap as ne,d6 as pt,d7 as se,bf as ae,bq as L}from"./index-B-RFpqiC.js";let U;function Dt(){if(U)return U;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),U="reverse",t.scrollLeft>0?U="default":(t.scrollLeft=1,t.scrollLeft===0&&(U="negative")),document.body.removeChild(t),U}function ie(t,e){const l=t.scrollLeft;if(e!=="rtl")return l;switch(Dt()){case"negative":return t.scrollWidth-t.clientWidth+l;case"reverse":return t.scrollWidth-t.clientWidth-l;default:return l}}function ce(t){return vt("MuiTab",t)}const k=ht("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),de=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ue=t=>{const{classes:e,textColor:l,fullWidth:s,wrapped:n,icon:a,label:h,selected:v,disabled:b}=t,g={root:["root",a&&h&&"labelIcon",`textColor${$t(l)}`,s&&"fullWidth",n&&"wrapped",v&&"selected",b&&"disabled"],iconWrapper:["iconWrapper"]};return St(g,ce,e)},be=O(Ft,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.label&&l.icon&&e.labelIcon,e[`textColor${$t(l.textColor)}`],l.fullWidth&&e.fullWidth,l.wrapped&&e.wrapped,{[`& .${k.iconWrapper}`]:e.iconWrapper}]}})(({theme:t,ownerState:e})=>p({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${k.iconWrapper}`]:p({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${k.selected}`]:{opacity:1},[`&.${k.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${k.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${k.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${k.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${k.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),gt=d.forwardRef(function(e,l){const s=mt({props:e,name:"MuiTab"}),{className:n,disabled:a=!1,disableFocusRipple:h=!1,fullWidth:v,icon:b,iconPosition:g="top",indicator:B,label:y,onChange:m,onClick:w,onFocus:j,selected:T,selectionFollowsFocus:x,textColor:X="inherit",value:E,wrapped:at=!1}=s,D=st(s,de),V=p({},s,{disabled:a,disableFocusRipple:h,selected:T,icon:!!b,iconPosition:g,label:!!y,fullWidth:v,textColor:X,wrapped:at}),_=ue(V),F=b&&y&&d.isValidElement(b)?d.cloneElement(b,{className:N(_.iconWrapper,b.props.className)}):b,Z=R=>{!T&&m&&m(R,E),w&&w(R)},Y=R=>{x&&!T&&m&&m(R,E),j&&j(R)};return u.jsxs(be,p({focusRipple:!h,className:N(_.root,n),ref:l,role:"tab","aria-selected":T,disabled:a,onClick:Z,onFocus:Y,ownerState:V,tabIndex:T?0:-1},D,{children:[g==="top"||g==="start"?u.jsxs(d.Fragment,{children:[F,y]}):u.jsxs(d.Fragment,{children:[y,F]}),B]}))}),pe=Ht(u.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),fe=Ht(u.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function he(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ve(t,e,l,s={},n=()=>{}){const{ease:a=he,duration:h=300}=s;let v=null;const b=e[t];let g=!1;const B=()=>{g=!0},y=m=>{if(g){n(new Error("Animation cancelled"));return}v===null&&(v=m);const w=Math.min(1,(m-v)/h);if(e[t]=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 me=["onChange"],Se={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function ge(t){const{onChange:e}=t,l=st(t,me),s=d.useRef(),n=d.useRef(null),a=()=>{s.current=n.current.offsetHeight-n.current.clientHeight};return re(()=>{const h=At(()=>{const b=s.current;a(),b!==s.current&&e(s.current)}),v=Ot(n.current);return v.addEventListener("resize",h),()=>{h.clear(),v.removeEventListener("resize",h)}},[e]),d.useEffect(()=>{a(),e(s.current)},[e]),u.jsx("div",p({style:Se},l,{ref:n}))}function xe(t){return vt("MuiTabScrollButton",t)}const ye=ht("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Ce=["className","slots","slotProps","direction","orientation","disabled"],Be=t=>{const{classes:e,orientation:l,disabled:s}=t;return St({root:["root",l,s&&"disabled"]},xe,e)},we=O(Ft,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.orientation&&e[l.orientation]]}})(({ownerState:t})=>p({width:40,flexShrink:0,opacity:.8,[`&.${ye.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),Te=d.forwardRef(function(e,l){var s,n;const a=mt({props:e,name:"MuiTabScrollButton"}),{className:h,slots:v={},slotProps:b={},direction:g}=a,B=st(a,Ce),y=Xt(),m=p({isRtl:y},a),w=Be(m),j=(s=v.StartScrollButtonIcon)!=null?s:pe,T=(n=v.EndScrollButtonIcon)!=null?n:fe,x=nt({elementType:j,externalSlotProps:b.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),X=nt({elementType:T,externalSlotProps:b.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return u.jsx(we,p({component:"div",className:N(w.root,h),ref:l,role:null,ownerState:m,tabIndex:null},B,{children:g==="left"?u.jsx(j,p({},x)):u.jsx(T,p({},X))}))});function Me(t){return vt("MuiTabs",t)}const ft=ht("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Ie=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],kt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,Nt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,rt=(t,e,l)=>{let s=!1,n=l(t,e);for(;n;){if(n===t.firstChild){if(s)return;s=!0}const a=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||a)n=l(t,n);else{n.focus();return}}},Ee=t=>{const{vertical:e,fixed:l,hideScrollbar:s,scrollableX:n,scrollableY:a,centered:h,scrollButtonsHideMobile:v,classes:b}=t;return St({root:["root",e&&"vertical"],scroller:["scroller",l&&"fixed",s&&"hideScrollbar",n&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",h&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",v&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[s&&"hideScrollbar"]},Me,b)},Re=O("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[{[`& .${ft.scrollButtons}`]:e.scrollButtons},{[`& .${ft.scrollButtons}`]:l.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,l.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>p({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${ft.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),ze=O("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.scroller,l.fixed&&e.fixed,l.hideScrollbar&&e.hideScrollbar,l.scrollableX&&e.scrollableX,l.scrollableY&&e.scrollableY]}})(({ownerState:t})=>p({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),We=O("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.flexContainer,l.vertical&&e.flexContainerVertical,l.centered&&e.centered]}})(({ownerState:t})=>p({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),Pe=O("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>p({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),ke=O(ge)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Lt={},xt=d.forwardRef(function(e,l){const s=mt({props:e,name:"MuiTabs"}),n=ne(),a=Xt(),{"aria-label":h,"aria-labelledby":v,action:b,centered:g=!1,children:B,className:y,component:m="div",allowScrollButtonsMobile:w=!1,indicatorColor:j="primary",onChange:T,orientation:x="horizontal",ScrollButtonComponent:X=Te,scrollButtons:E="auto",selectionFollowsFocus:at,slots:D={},slotProps:V={},TabIndicatorProps:_={},TabScrollButtonProps:F={},textColor:Z="primary",value:Y,variant:R="standard",visibleScrollbar:it=!1}=s,_t=st(s,Ie),M=R==="scrollable",C=x==="vertical",q=C?"scrollTop":"scrollLeft",tt=C?"top":"left",et=C?"bottom":"right",ct=C?"clientHeight":"clientWidth",G=C?"height":"width",$=p({},s,{component:m,allowScrollButtonsMobile:w,indicatorColor:j,orientation:x,vertical:C,scrollButtons:E,textColor:Z,variant:R,visibleScrollbar:it,fixed:!M,hideScrollbar:M&&!it,scrollableX:M&&!C,scrollableY:M&&C,centered:g&&!M,scrollButtonsHideMobile:!w}),W=Ee($),Yt=nt({elementType:D.StartScrollButtonIcon,externalSlotProps:V.startScrollButtonIcon,ownerState:$}),Ut=nt({elementType:D.EndScrollButtonIcon,externalSlotProps:V.endScrollButtonIcon,ownerState:$}),[yt,Kt]=d.useState(!1),[H,Ct]=d.useState(Lt),[Bt,Vt]=d.useState(!1),[wt,qt]=d.useState(!1),[Tt,Gt]=d.useState(!1),[Mt,Jt]=d.useState({overflow:"hidden",scrollbarWidth:0}),It=new Map,z=d.useRef(null),A=d.useRef(null),Et=()=>{const o=z.current;let r;if(o){const i=o.getBoundingClientRect();r={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ie(o,a?"rtl":"ltr"),scrollWidth:o.scrollWidth,top:i.top,bottom:i.bottom,left:i.left,right:i.right}}let c;if(o&&Y!==!1){const i=A.current.children;if(i.length>0){const f=i[It.get(Y)];c=f?f.getBoundingClientRect():null}}return{tabsMeta:r,tabMeta:c}},J=pt(()=>{const{tabsMeta:o,tabMeta:r}=Et();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,[G]:r?r[G]:0};if(isNaN(H[i])||isNaN(H[G]))Ct(f);else{const S=Math.abs(H[i]-f[i]),I=Math.abs(H[G]-f[G]);(S>=1||I>=1)&&Ct(f)}}),dt=(o,{animation:r=!0}={})=>{r?ve(q,z.current,o,{duration:n.transitions.duration.standard}):z.current[q]=o},Rt=o=>{let r=z.current[q];C?r+=o:(r+=o*(a?-1:1),r*=a&&Dt()==="reverse"?-1:1),dt(r)},zt=()=>{const o=z.current[ct];let r=0;const c=Array.from(A.current.children);for(let i=0;i<c.length;i+=1){const f=c[i];if(r+f[ct]>o){i===0&&(r=o);break}r+=f[ct]}return r},Qt=()=>{Rt(-1*zt())},Zt=()=>{Rt(zt())},te=d.useCallback(o=>{Jt({overflow:null,scrollbarWidth:o})},[]),ee=()=>{const o={};o.scrollbarSizeListener=M?u.jsx(ke,{onChange:te,className:N(W.scrollableX,W.hideScrollbar)}):null;const c=M&&(E==="auto"&&(Bt||wt)||E===!0);return o.scrollButtonStart=c?u.jsx(X,p({slots:{StartScrollButtonIcon:D.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Yt},orientation:x,direction:a?"right":"left",onClick:Qt,disabled:!Bt},F,{className:N(W.scrollButtons,F.className)})):null,o.scrollButtonEnd=c?u.jsx(X,p({slots:{EndScrollButtonIcon:D.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ut},orientation:x,direction:a?"left":"right",onClick:Zt,disabled:!wt},F,{className:N(W.scrollButtons,F.className)})):null,o},Wt=pt(o=>{const{tabsMeta:r,tabMeta:c}=Et();if(!(!c||!r)){if(c[tt]<r[tt]){const i=r[q]+(c[tt]-r[tt]);dt(i,{animation:o})}else if(c[et]>r[et]){const i=r[q]+(c[et]-r[et]);dt(i,{animation:o})}}}),ot=pt(()=>{M&&E!==!1&&Gt(!Tt)});d.useEffect(()=>{const o=At(()=>{z.current&&J()});let r;const c=S=>{S.forEach(I=>{I.removedNodes.forEach(Q=>{var P;(P=r)==null||P.unobserve(Q)}),I.addedNodes.forEach(Q=>{var P;(P=r)==null||P.observe(Q)})}),o(),ot()},i=Ot(z.current);i.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(r=new ResizeObserver(o),Array.from(A.current.children).forEach(S=>{r.observe(S)})),typeof MutationObserver<"u"&&(f=new MutationObserver(c),f.observe(A.current,{childList:!0})),()=>{var S,I;o.clear(),i.removeEventListener("resize",o),(S=f)==null||S.disconnect(),(I=r)==null||I.disconnect()}},[J,ot]),d.useEffect(()=>{const o=Array.from(A.current.children),r=o.length;if(typeof IntersectionObserver<"u"&&r>0&&M&&E!==!1){const c=o[0],i=o[r-1],f={root:z.current,threshold:.99},S=bt=>{Vt(!bt[0].isIntersecting)},I=new IntersectionObserver(S,f);I.observe(c);const Q=bt=>{qt(!bt[0].isIntersecting)},P=new IntersectionObserver(Q,f);return P.observe(i),()=>{I.disconnect(),P.disconnect()}}},[M,E,Tt,B==null?void 0:B.length]),d.useEffect(()=>{Kt(!0)},[]),d.useEffect(()=>{J()}),d.useEffect(()=>{Wt(Lt!==H)},[Wt,H]),d.useImperativeHandle(b,()=>({updateIndicator:J,updateScrollButtons:ot}),[J,ot]);const Pt=u.jsx(Pe,p({},_,{className:N(W.indicator,_.className),ownerState:$,style:p({},H,_.style)}));let lt=0;const oe=d.Children.map(B,o=>{if(!d.isValidElement(o))return null;const r=o.props.value===void 0?lt:o.props.value;It.set(r,lt);const c=r===Y;return lt+=1,d.cloneElement(o,p({fullWidth:R==="fullWidth",indicator:c&&!yt&&Pt,selected:c,selectionFollowsFocus:at,onChange:T,textColor:Z,value:r},lt===1&&Y===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),le=o=>{const r=A.current,c=se(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(),rt(r,c,Nt);break;case S:o.preventDefault(),rt(r,c,kt);break;case"Home":o.preventDefault(),rt(r,null,kt);break;case"End":o.preventDefault(),rt(r,null,Nt);break}},ut=ee();return u.jsxs(Re,p({className:N(W.root,y),ownerState:$,ref:l,as:m},_t,{children:[ut.scrollButtonStart,ut.scrollbarSizeListener,u.jsxs(ze,{className:W.scroller,ownerState:$,style:{overflow:Mt.overflow,[C?`margin${a?"Left":"Right"}`:"marginBottom"]:it?void 0:-Mt.scrollbarWidth},ref:z,children:[u.jsx(We,{"aria-label":h,"aria-labelledby":v,"aria-orientation":x==="vertical"?"vertical":null,className:W.flexContainer,ownerState:$,onKeyDown:le,ref:A,role:"tablist",children:oe}),yt&&Pt]}),ut.scrollButtonEnd]}))}),jt="index",K={tabs:`${jt}-tabs`,tab:`${jt}-tab`},Ne=ae(xt)(({theme:t})=>({[`& .${K.tabs}`]:{},[`& .${K.tab}`]:{fontSize:"0.875rem",[t.breakpoints.up("md")]:{fontSize:"1rem"}}}));function Le({tabs:t,current:e,onChange:l,...s}){return u.jsx(xt,{scrollButtons:"auto",value:e,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:L.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:L.foregroundsFgSubtile,fontSize:"13px",fontWeight:"normal",textTransform:"capitalize",transition:"background-color 0.2s ease","&.Mui-selected, &:hover":{backgroundColor:"white",borderColor:L.lineBorderBase,color:L.foregroundsFgBase}},".MuiTabs-indicator":{display:"none"},...s.sx},children:t.map(n=>u.jsx(gt,{className:K.tab,value:n.value,label:n.label,icon:n.icon},n.value))})}function je({tabs:t,current:e,onChange:l,...s}){return u.jsx(xt,{scrollButtons:"auto",value:e,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":s.orientation!=="vertical"?{"&::after":{content:'""',display:"block",width:"100%",height:"1px",backgroundColor:L.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:L.foregroundsFgSubtile,fontSize:"14px",fontWeight:500,textTransform:"capitalize",minWidth:"auto","&.Mui-selected, &:hover":{color:L.foregroundsFgBase}},".MuiTabs-indicator":{height:"1px",backgroundColor:L.foregroundsFgBase},...s.sx},children:t.map(n=>u.jsx(gt,{className:K.tab,value:n.value,label:n.label,icon:n.icon},n.value))})}function $e({tabs:t,current:e,onChange:l,variant:s,...n}){return s==="card"?u.jsx(Le,{...n,tabs:t,current:e,onChange:l}):s==="line"?u.jsx(je,{...n,tabs:t,current:e,onChange:l}):u.jsx(Ne,{scrollButtons:"auto",variant:"scrollable",value:e,onChange:(a,h)=>l(h),indicatorColor:"primary",...n,className:[K.tabs,n.className||""].join(" "),children:t.map(a=>u.jsx(gt,{className:K.tab,value:a.value,label:a.label,icon:a.icon},a.value))})}export{fe as K,$e as T,pe as a,xt as b,gt as c,Dt as d,ie as g};
@@ -1,4 +1,4 @@
1
- import{P as a,r as c,j as n,B as h,bl as $,a6 as A,dH as G,ft as U,ae as Y,aI as L,n as J,dl as Q,cR as Z,a4 as v}from"./index-CURuTEb2.js";import{d as ee}from"./Done-BXX9mmcA.js";import{C as te}from"./Google-C-eSdThA.js";import{T as ne}from"./TextField-BA4i5NsI.js";import{R as re,F as oe,L as se}from"./logo-uploader-vzgZfcsx.js";const N={description:a.string,editing:a.bool,onChange:a.func,required:a.bool,value:a.any,componentProps:a.object,render:a.func,renderFormItem:a.func};function S({editing:o,value:r,onChange:l}){const[d,u]=c.useState(!1),m=c.useRef(),p=c.useRef(r);c.useEffect(()=>{let s=null;return o&&(s=setTimeout(()=>{u(!0)},50)),()=>{clearTimeout(s)}},[o]);const C=s=>{p.current=s,l(s)},b=()=>{u(!1),l(p.current)},I=n.jsx(h,{className:"form-item-input slot",px:1,children:n.jsxs(h,{display:"flex",alignItems:"center",children:[r,r!=="auto"&&n.jsx("div",{style:{marginLeft:4,backgroundColor:r,width:"1em",height:"1em",borderRadius:"0.2em"}})]})}),f=n.jsxs(h,{display:"flex",flexGrow:1,alignItems:"center",height:"40px",onKeyDown:b,children:[n.jsx(h,{display:"flex",alignItems:"center",onClick:()=>u(!0),children:n.jsx("div",{ref:m,style:{flexShrink:0,marginLeft:"8px",backgroundColor:r,width:"32px",height:"32px",boxSizing:"border-box",borderRadius:"8px",border:"1px solid #eee",cursor:r==="auto"?"default":"pointer"}})}),n.jsx($,{open:d,anchorEl:m.current,onClose:()=>u(!1),anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:n.jsx(te,{color:r,onChange:s=>C(s.hex)})})]});return o?f:I}S.propTypes=N;function T({editing:o,description:r,value:l,onChange:d,componentProps:u,...m}){const{placeholder:p}=u,C=c.useRef(l),{t:b}=c.useContext(A),I=s=>{s.key==="Enter"&&d(C.current,"confirm")},f=s=>{C.current=s,d(s)};return o?n.jsx(ne,{style:{flex:1},fullWidth:!0,value:l,onChange:s=>{s.persist(),f(s.target.value)},autoFocus:!0,size:"small",variant:"outlined",placeholder:r||p,onKeyDown:I,...m}):n.jsx(h,{px:1,className:"form-item-input slot",children:l||n.jsx("span",{className:"placeholder",children:b("common.requiredInputPlaceholder",{name:r||p})})})}T.propTypes=N;T.defaultProps={componentProps:{}};function V({editing:o,value:r,onChange:l,componentProps:d,...u}){const{blocklet:m}=d,p=r==="auto"?G.getPassportColorFromDid(m.appDid):r;return n.jsxs(h,{display:"flex",alignItems:"center",children:[n.jsx("div",{style:{width:96,marginRight:12},dangerouslySetInnerHTML:{__html:U({title:"Owner",issuer:Y.getDisplayName(m),issuerDid:m.appDid,ownerName:"Your Name",ownerDid:m.appDid,preferredColor:r||"auto"})}}),n.jsx(S,{...u,editing:o,value:o?p:r,onChange:l,componentProps:d})]})}V.propTypes={...N,componentProps:a.shape({blocklet:a.object.isRequired}).isRequired};V.defaultProps={};const ie=Z`
1
+ import{P as l,r as c,j as n,B as h,ba as A,a6 as G,dF as H,fw as U,ae as Y,aI as L,n as Z,dw as J,cZ as Q,a4 as v}from"./index-B-RFpqiC.js";import{d as ee}from"./Done-D1ZlVz28.js";import{C as te}from"./Google-D1iNY1x9.js";import{T as ne}from"./TextField-8hH4A29d.js";import{R as re,F as oe,L as se}from"./logo-uploader-BWtqh-79.js";const N={description:l.string,editing:l.bool,onChange:l.func,required:l.bool,value:l.any,componentProps:l.object,render:l.func,renderFormItem:l.func};function S({editing:o,value:r,onChange:a}){const[d,u]=c.useState(!1),m=c.useRef(),p=c.useRef(r);c.useEffect(()=>{let s=null;return o&&(s=setTimeout(()=>{u(!0)},50)),()=>{clearTimeout(s)}},[o]);const C=s=>{p.current=s,a(s)},b=()=>{u(!1),a(p.current)},I=n.jsx(h,{className:"form-item-input slot",px:1,children:n.jsxs(h,{display:"flex",alignItems:"center",children:[r,r!=="auto"&&n.jsx("div",{style:{marginLeft:4,backgroundColor:r,width:"1em",height:"1em",borderRadius:"0.2em"}})]})}),f=n.jsxs(h,{display:"flex",flexGrow:1,alignItems:"center",height:"40px",onKeyDown:b,children:[n.jsx(h,{display:"flex",alignItems:"center",onClick:()=>u(!0),children:n.jsx("div",{ref:m,style:{flexShrink:0,marginLeft:"8px",backgroundColor:r,width:"32px",height:"32px",boxSizing:"border-box",borderRadius:"8px",border:"1px solid #eee",cursor:r==="auto"?"default":"pointer"}})}),n.jsx(A,{open:d,anchorEl:m.current,onClose:()=>u(!1),anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:n.jsx(te,{color:r,onChange:s=>C(s.hex)})})]});return o?f:I}S.propTypes=N;function T({editing:o,description:r,value:a,onChange:d,componentProps:u,...m}){const{placeholder:p}=u,C=c.useRef(a),{t:b}=c.useContext(G),I=s=>{s.key==="Enter"&&d(C.current,"confirm")},f=s=>{C.current=s,d(s)};return o?n.jsx(ne,{style:{flex:1},fullWidth:!0,value:a,onChange:s=>{s.persist(),f(s.target.value)},autoFocus:!0,size:"small",variant:"outlined",placeholder:r||p,onKeyDown:I,...m}):n.jsx(h,{px:1,className:"form-item-input slot",children:a||n.jsx("span",{className:"placeholder",children:b("common.requiredInputPlaceholder",{name:r||p})})})}T.propTypes=N;T.defaultProps={componentProps:{}};function V({editing:o,value:r,onChange:a,componentProps:d,...u}){const{blocklet:m}=d,p=r==="auto"?H.getPassportColorFromDid(m.appDid):r;return n.jsxs(h,{display:"flex",alignItems:"center",children:[n.jsx("div",{style:{width:96,marginRight:12},dangerouslySetInnerHTML:{__html:U({title:"Owner",issuer:Y.getDisplayName(m),issuerDid:m.appDid,ownerName:"Your Name",ownerDid:m.appDid,preferredColor:r||"auto"})}}),n.jsx(S,{...u,editing:o,value:o?p:r,onChange:a,componentProps:d})]})}V.propTypes={...N,componentProps:l.shape({blocklet:l.object.isRequired}).isRequired};V.defaultProps={};const ie=Q`
2
2
  0%, 100% {
3
3
  transform: scale(1) translateX(0);
4
4
  }
@@ -8,4 +8,4 @@ import{P as a,r as c,j as n,B as h,bl as $,a6 as A,dH as G,ft as U,ae as Y,aI as
8
8
  25%, 75% {
9
9
  transform: scale(1.1) translateX(3px);
10
10
  }
11
- `,le={input:T,color:S,passport:V,uploader:o=>n.jsx(se,{...o.componentProps})};function ae(o,{editing:r=!1}){const{componentType:l="input",render:d,renderFormItem:u}=o;return r&&u?u:!r&&d?d:le[l==null?void 0:l.toLowerCase()]}function O({schema:o,loading:r,value:l,defaultValue:d,onChange:u,style:m,disabled:p}){const C=Object.prototype.toString.call(l)==="[object Object]",[b,I]=c.useState([]),[f,s]=c.useState(C?l:d),_=c.useMemo(()=>o.length===1,[o]),g=c.useCallback(e=>b.find(t=>t.key===e),[b]);c.useEffect(()=>{var e;_&&((e=o[0])!=null&&e.required)&&I([{key:o[0].key,editing:!0}])},[o,_]);const P=c.useCallback(e=>{I(t=>t.find(i=>i.key===e.key)?t.map(i=>i.key===e.key?e:{...i}):[e].concat(t))},[]),w=c.useCallback((e,t,x)=>{const{key:i,secure:R}=e,y=g(i)??{...e};y.editing=!0;const j=f[i]!==t;y.edited=t&&y.initialValue!==t,y.initialValue=d[i];const k={...f,[i]:t};j&&s(k),u({[i]:t},{allValues:k,action:x,currentItem:e}),x==="confirm"&&R&&s({...f,[i]:"__encrypted__"}),x==="confirm"&&(y.initialValue=f[i]),["confirm","cancel"].includes(x)&&(y.editing=!1,y.edited=!1),P(y)},[d,f,u,P,g]);function z(e,{editing:t=!1}){const{key:x}=e,i=C?l[x]:f[x];return i==="__encrypted__"?t?"":"******":i}const F=c.useCallback(e=>{const t=g(e.key);t&&w(e,t.initialValue,"cancel")},[g,w]),D=c.useCallback(e=>{const t=g(e.key);!t||!t.edited||(t.shaking=!0,P(t),setTimeout(()=>{t.shaking=!1,P(t)},500))},[g,P]),K=c.useCallback(e=>{const t=g(e.key);!t||!t.edited?F(e):D(e)},[g,D,F]);return n.jsx(ce,{className:"form",style:m,children:o==null?void 0:o.map(e=>{const{key:t,description:x,required:i,solo:R=!1,hidden:y=!1,componentProps:q={}}=e;if(y)return null;const j=g(t),{editing:k,shaking:B}=j??{},E=z(e,{editing:k}),M=ae(e,{editing:k}),W={inputProps:{"data-cy":"schema-form-item-component"},key:t,description:x,editing:k,value:E,onChange:(X,H="change")=>w(e,X,H),componentProps:q,onBlur:()=>K(e)};return n.jsxs(h,{className:"form-item",children:[!R&&n.jsxs(h,{className:"form-item-label",style:{color:i&&!E?"#ff0000":"#333"},children:[x,i&&n.jsx(re,{})]}),n.jsxs(h,{className:"form-item-body",children:[n.jsx(h,{className:"form-item-input","data-cy":"schema-form-item-edit",sx:{textAlign:R?"center":"left"},style:{cursor:"text"},onClick:()=>{p||j!=null&&j.edited||w(e,f[t],"edit")},children:n.jsx(M,{...W})}),!R&&n.jsx(h,{className:"form-item-action",style:{marginLeft:0},children:k?n.jsxs(n.Fragment,{children:[j.edited?n.jsx(L,{"data-cy":"schema-form-item-confirm",onClick:()=>{w(e,E,"confirm")},disabled:p||r,sx:{animation:B?`${ie} 0.5s linear`:"none"},style:{paddingRight:4},size:"large",children:r?n.jsx(J,{size:24}):n.jsx(ee,{})}):null,n.jsx(L,{"data-cy":"schema-form-item-cancel",onClick:()=>F(e),style:{paddingLeft:j.edited?4:8},disabled:p||r,size:"large",children:n.jsx(Q,{})})]}):null})]})]},t)})})}O.propTypes={schema:a.array.isRequired,loading:a.bool,onChange:a.func.isRequired,value:a.object,defaultValue:a.object,style:a.object,disabled:a.bool};O.defaultProps={loading:!1,value:void 0,defaultValue:{},style:{},disabled:!1};const ce=v(oe)``;export{O as S};
11
+ `,ae={input:T,color:S,passport:V,uploader:o=>n.jsx(se,{...o.componentProps})};function le(o,{editing:r=!1}){const{componentType:a="input",render:d,renderFormItem:u}=o;return r&&u?u:!r&&d?d:ae[a==null?void 0:a.toLowerCase()]}function O({schema:o,loading:r,value:a,defaultValue:d,onChange:u,style:m,disabled:p}){const C=Object.prototype.toString.call(a)==="[object Object]",[b,I]=c.useState([]),[f,s]=c.useState(C?a:d),_=c.useMemo(()=>o.length===1,[o]),g=c.useCallback(e=>b.find(t=>t.key===e),[b]);c.useEffect(()=>{var e;_&&((e=o[0])!=null&&e.required)&&I([{key:o[0].key,editing:!0}])},[o,_]);const P=c.useCallback(e=>{I(t=>t.find(i=>i.key===e.key)?t.map(i=>i.key===e.key?e:{...i}):[e].concat(t))},[]),w=c.useCallback((e,t,x)=>{const{key:i,secure:R}=e,y=g(i)??{...e};y.editing=!0;const j=f[i]!==t;y.edited=t&&y.initialValue!==t,y.initialValue=d[i];const k={...f,[i]:t};j&&s(k),u({[i]:t},{allValues:k,action:x,currentItem:e}),x==="confirm"&&R&&s({...f,[i]:"__encrypted__"}),x==="confirm"&&(y.initialValue=f[i]),["confirm","cancel"].includes(x)&&(y.editing=!1,y.edited=!1),P(y)},[d,f,u,P,g]);function z(e,{editing:t=!1}){const{key:x}=e,i=C?a[x]:f[x];return i==="__encrypted__"?t?"":"******":i}const F=c.useCallback(e=>{const t=g(e.key);t&&w(e,t.initialValue,"cancel")},[g,w]),D=c.useCallback(e=>{const t=g(e.key);!t||!t.edited||(t.shaking=!0,P(t),setTimeout(()=>{t.shaking=!1,P(t)},500))},[g,P]),K=c.useCallback(e=>{const t=g(e.key);!t||!t.edited?F(e):D(e)},[g,D,F]);return n.jsx(ce,{className:"form",style:m,children:o==null?void 0:o.map(e=>{const{key:t,description:x,required:i,solo:R=!1,hidden:y=!1,componentProps:q={}}=e;if(y)return null;const j=g(t),{editing:k,shaking:B}=j??{},E=z(e,{editing:k}),M=le(e,{editing:k}),W={inputProps:{"data-cy":"schema-form-item-component"},key:t,description:x,editing:k,value:E,onChange:(X,$="change")=>w(e,X,$),componentProps:q,onBlur:()=>K(e)};return n.jsxs(h,{className:"form-item",children:[!R&&n.jsxs(h,{className:"form-item-label",style:{color:i&&!E?"#ff0000":"#333"},children:[x,i&&n.jsx(re,{})]}),n.jsxs(h,{className:"form-item-body",children:[n.jsx(h,{className:"form-item-input","data-cy":"schema-form-item-edit",sx:{textAlign:R?"center":"left"},style:{cursor:"text"},onClick:()=>{p||j!=null&&j.edited||w(e,f[t],"edit")},children:n.jsx(M,{...W})}),!R&&n.jsx(h,{className:"form-item-action",style:{marginLeft:0},children:k?n.jsxs(n.Fragment,{children:[j.edited?n.jsx(L,{"data-cy":"schema-form-item-confirm",onClick:()=>{w(e,E,"confirm")},disabled:p||r,sx:{animation:B?`${ie} 0.5s linear`:"none"},style:{paddingRight:4},size:"large",children:r?n.jsx(Z,{size:24}):n.jsx(ee,{})}):null,n.jsx(L,{"data-cy":"schema-form-item-cancel",onClick:()=>F(e),style:{paddingLeft:j.edited?4:8},disabled:p||r,size:"large",children:n.jsx(J,{})})]}):null})]})]},t)})})}O.propTypes={schema:l.array.isRequired,loading:l.bool,onChange:l.func.isRequired,value:l.object,defaultValue:l.object,style:l.object,disabled:l.bool};O.defaultProps={loading:!1,value:void 0,defaultValue:{},style:{},disabled:!1};const ce=v(oe)``;export{O as S};
@@ -1,4 +1,4 @@
1
- import{j as e,T as i,bK as x,fw as c,bv as p}from"./index-CURuTEb2.js";function d({name:t,nameFormatter:a=o=>typeof o=="string"?o.split(" ").map(m=>x(c(m))).join(" "):o,layout:n="horizontal",children:r,valueComponent:l="div",nameWidth:s=90,...f}){return e.jsxs(u,{layout:n,width:s,...f,children:[e.jsx(i,{color:"textSecondary",className:"info-row__name",children:a(t)}),r&&e.jsx(i,{color:"textPrimary",component:l,className:"info-row__value",children:r})]})}const u=p("div")`
1
+ import{j as e,T as i,bv as x,fz as c,bf as p}from"./index-B-RFpqiC.js";function w({name:t,nameFormatter:a=o=>typeof o=="string"?o.split(" ").map(m=>x(c(m))).join(" "):o,layout:n="horizontal",children:r,valueComponent:l="div",nameWidth:s=90,...f}){return e.jsxs(u,{layout:n,width:s,...f,children:[e.jsx(i,{color:"textSecondary",className:"info-row__name",children:a(t)}),r&&e.jsx(i,{color:"textPrimary",component:l,className:"info-row__value",children:r})]})}const u=p("div")`
2
2
  display: flex;
3
3
  flex-direction: ${t=>t.layout==="vertical"?"column":"row"};
4
4
  justify-content: flex-start;
@@ -33,4 +33,4 @@ import{j as e,T as i,bK as x,fw as c,bv as p}from"./index-CURuTEb2.js";function
33
33
  margin-top: 8px;
34
34
  }
35
35
  }
36
- `;export{d as I};
36
+ `;export{w as I};