@abtnode/blocklet-services 1.16.34-beta-20241206-124652-493dbc39 → 1.16.34-beta-20241207-134904-3c3d9a35

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 (216) hide show
  1. package/api/routes/oauth.js +1 -1
  2. package/dist/assets/{Add-Dr8htRSM.js → Add-Cp12CDvc.js} +1 -1
  3. package/dist/assets/{Alert-gRD_jJCj.js → Alert-B-B19XWn.js} +1 -1
  4. package/dist/assets/{ArrowDropDown-DI04xnPr.js → ArrowDropDown-Bi-0hAXG.js} +1 -1
  5. package/dist/assets/{Autocomplete-DPolRnqk.js → Autocomplete-DiZlp9Nd.js} +1 -1
  6. package/dist/assets/{Avatar-D6TPuXUP.js → Avatar-gOlKhZVz.js} +1 -1
  7. package/dist/assets/{ButtonGroup-BcLw8gsE.js → ButtonGroup-DRi3T9UO.js} +1 -1
  8. package/dist/assets/{CSSTransition-DdlHGsuR.js → CSSTransition-DyudOQiK.js} +1 -1
  9. package/dist/assets/{CheckCircle-BPxn_ieu.js → CheckCircle-CoWKAPwh.js} +1 -1
  10. package/dist/assets/{ChevronLeft-5FOp5_pf.js → ChevronLeft-CyI4GW_6.js} +1 -1
  11. package/dist/assets/{ChevronRight-PVflalU6.js → ChevronRight-BSace2Vd.js} +1 -1
  12. package/dist/assets/{Delete-CaO8fR6N.js → Delete-BEyOMTex.js} +1 -1
  13. package/dist/assets/{DeleteOutline-PIJBVOmm.js → DeleteOutline-AH9RxcL2.js} +1 -1
  14. package/dist/assets/{DialogContentText-BvYfkPC9.js → DialogContentText-i_7cpb63.js} +1 -1
  15. package/dist/assets/{Done-Cqnr64ll.js → Done-CkzFzrl_.js} +1 -1
  16. package/dist/assets/{Download-Bv95-VOA.js → Download-hRaYJodO.js} +1 -1
  17. package/dist/assets/{EditIcon-B2INxzak.js → EditIcon-CB-5H23X.js} +1 -1
  18. package/dist/assets/{Error-vrb7fyQU.js → Error-BI1YlsEE.js} +1 -1
  19. package/dist/assets/{ExpandMore-B3TZX84r.js → ExpandMore-Cj4OYcCy.js} +1 -1
  20. package/dist/assets/{FormControl-BlJhfvE4.js → FormControl-DluiNcFf.js} +1 -1
  21. package/dist/assets/{FormControlLabel-DUahNTJi.js → FormControlLabel-D9z183J8.js} +1 -1
  22. package/dist/assets/{FormGroup-BhKveWGx.js → FormGroup-BkwPM48V.js} +1 -1
  23. package/dist/assets/{Google-2VzbESXy.js → Google-BpnURrs_.js} +1 -1
  24. package/dist/assets/{Grid-HlOuSRmU.js → Grid-74xCjD8y.js} +1 -1
  25. package/dist/assets/{HelpOutline-pRqeT6i_.js → HelpOutline-BtL6xkDv.js} +1 -1
  26. package/dist/assets/{Hidden-BIaa-blE.js → Hidden-uuvIFLyk.js} +1 -1
  27. package/dist/assets/{InfoOutlined-CvA_NzdD.js → InfoOutlined-CPfN6yBi.js} +1 -1
  28. package/dist/assets/{InputAdornment-mbNfreso.js → InputAdornment-DAmONXVm.js} +1 -1
  29. package/dist/assets/{LastPage-BI2XzpBc.js → LastPage-B8Lhfg_Z.js} +1 -1
  30. package/dist/assets/{Launch-DIHn67BI.js → Launch-DC_T9jvF.js} +1 -1
  31. package/dist/assets/{LaunchOutlined-DBAHz0tb.js → LaunchOutlined-CuUStfER.js} +1 -1
  32. package/dist/assets/{Link-SvE6tGEV.js → Link-zHokPAVd.js} +1 -1
  33. package/dist/assets/{ListItemButton-DRswm1pu.js → ListItemButton-BNv0OGYE.js} +1 -1
  34. package/dist/assets/{ListSubheader-Cedlz0t5.js → ListSubheader-C8fLV0o6.js} +1 -1
  35. package/dist/assets/{LoadingButton-1nXdJV1_.js → LoadingButton-CEMZj_dJ.js} +1 -1
  36. package/dist/assets/{LockIcon-BlUU7Km8.js → LockIcon-D2TJv-Ok.js} +1 -1
  37. package/dist/assets/{Loop-Do-1bTcZ.js → Loop-DV8OuUlN.js} +1 -1
  38. package/dist/assets/{MarkEmailRead-DJzwbP2x.js → MarkEmailRead-BbgGYghK.js} +1 -1
  39. package/dist/assets/{Menu-4JehMzAB.js → Menu-7UlTP1FY.js} +1 -1
  40. package/dist/assets/{MoreHoriz-BiDBSm9w.js → MoreHoriz-DBXP7e8P.js} +1 -1
  41. package/dist/assets/{MoreVert-BHPy5yQk.js → MoreVert-BtOLrVEi.js} +1 -1
  42. package/dist/assets/{OpenInNew-Ox-Wg6B7.js → OpenInNew-xm3TZrwY.js} +1 -1
  43. package/dist/assets/{Pagination-DtmO1FEC.js → Pagination-ChYnsL64.js} +1 -1
  44. package/dist/assets/{PlayArrow-D8oFKkOl.js → PlayArrow-GELffJ-Y.js} +1 -1
  45. package/dist/assets/{QuestionMarkCircle-CRCb7vLB.js → QuestionMarkCircle-CC4vsdge.js} +1 -1
  46. package/dist/assets/{RadioGroup-CAeo2G7k.js → RadioGroup-CvAHdYYW.js} +1 -1
  47. package/dist/assets/{Search-B4FkzoeR.js → Search-Cgl4AQVg.js} +1 -1
  48. package/dist/assets/{Select-pOhG5uV8.js → Select-BDwuIZTW.js} +1 -1
  49. package/dist/assets/{ServerLogo-C3qS1K9u.js → ServerLogo-DnxR5e4j.js} +1 -1
  50. package/dist/assets/{Skeleton-XhcFgkuH.js → Skeleton-Bb6czwVF.js} +1 -1
  51. package/dist/assets/{Stack-BGVSv0bm.js → Stack-DrXw291T.js} +1 -1
  52. package/dist/assets/{Stepper-1oUkII92.js → Stepper-CK3xwi4m.js} +1 -1
  53. package/dist/assets/{TextField-BYIMGo2O.js → TextField-BBknTPUM.js} +1 -1
  54. package/dist/assets/{Toolbar-MXTUjpSN.js → Toolbar-BJIHFP0u.js} +1 -1
  55. package/dist/assets/{ViewColumn-Dl8WBRoz.js → ViewColumn-Sbl3OSg5.js} +1 -1
  56. package/dist/assets/{ViewList-Dw7InfFl.js → ViewList-CAvNk_M0.js} +1 -1
  57. package/dist/assets/{_createAggregator-CF3Ywu_Z.js → _createAggregator-BEOgNJlt.js} +1 -1
  58. package/dist/assets/{access-control-CPDqmVDW.js → access-control-DOQOKqBS.js} +1 -1
  59. package/dist/assets/{actions-DB6zFAt9.js → actions-BEoI2E2_.js} +1 -1
  60. package/dist/assets/{add-component-core-DpqYAR-R.js → add-component-core-B_FCEMGv.js} +1 -1
  61. package/dist/assets/add-resource-BgbRhFM-.js +1 -0
  62. package/dist/assets/{addon-cSEDcT4t.js → addon-CgZTC-k3.js} +1 -1
  63. package/dist/assets/{analytics-CObVf_QD.js → analytics-D_8xBuA_.js} +1 -1
  64. package/dist/assets/api-DMGu5ioO.js +1 -0
  65. package/dist/assets/{ar-BENken66.js → ar-BMrSlP3H.js} +1 -1
  66. package/dist/assets/{audit-logs-BMMQleD-.js → audit-logs-D0Jmsklb.js} +1 -1
  67. package/dist/assets/{base32-Cky7ZH4x.js → base32-BgEaXo1C.js} +1 -1
  68. package/dist/assets/{branding-DD9lnLdg.js → branding-B-rcX9f-.js} +2 -2
  69. package/dist/assets/{bundle-avatar-D1CsKnAr.js → bundle-avatar-CjiB4J24.js} +1 -1
  70. package/dist/assets/{button-C2skqS2y.js → button-DwAfJ2SQ.js} +1 -1
  71. package/dist/assets/{click-to-copy-B_U6uers.js → click-to-copy-BXFDJ_GY.js} +1 -1
  72. package/dist/assets/{complete-Cm1aTSRB.js → complete-BFgNjvXW.js} +1 -1
  73. package/dist/assets/{component-CU-7h3yK.js → component-BJmYpZMM.js} +1 -1
  74. package/dist/assets/{config-GyMHYuIo.js → config-BDQ4O6in.js} +1 -1
  75. package/dist/assets/{config-CKVwTxh4.js → config-BblqlHcV.js} +1 -1
  76. package/dist/assets/{config-navigation-DqtZRu1x.js → config-navigation-Dx4SUCd9.js} +1 -1
  77. package/dist/assets/{config-space-xHVn7Zw_.js → config-space-DxhYY0Iz.js} +1 -1
  78. package/dist/assets/{confirm-BYGcMOdN.js → confirm-BTz0nHLL.js} +1 -1
  79. package/dist/assets/{connect-Cjg3Lm4D.js → connect-BcoSCpS8.js} +1 -1
  80. package/dist/assets/{connect-7KX0ip82.js → connect-Rs4aSi2U.js} +1 -1
  81. package/dist/assets/{connect-to-BWP8Cqu6.js → connect-to-CTYX1OyG.js} +1 -1
  82. package/dist/assets/{content-layout-8jsNhe-5.js → content-layout-LPkfEld2.js} +1 -1
  83. package/dist/assets/{dashboard-BZreJCiA.js → dashboard-oPqglLSD.js} +3 -3
  84. package/dist/assets/{de-C8d8saMJ.js → de-a1onyHRn.js} +1 -1
  85. package/dist/assets/{deprecate-Bj3Q5Wi_.js → deprecate-CZZS7fT-.js} +1 -1
  86. package/dist/assets/{did-address-7Sb16VSB.js → did-address-CyXVJCAO.js} +1 -1
  87. package/dist/assets/{domain-D-DYyZbR.js → domain-D3Zlkr-s.js} +1 -1
  88. package/dist/assets/{domain-list-p_9GKY-M.js → domain-list-BjnEYd9n.js} +1 -1
  89. package/dist/assets/{email-Canxuwlg.js → email-CDIelBcp.js} +3 -3
  90. package/dist/assets/emotion-cache.browser.esm-BpTip9wY.js +1 -0
  91. package/dist/assets/{es-8ZzWXB3U.js → es-DQZJ5tsr.js} +1 -1
  92. package/dist/assets/{exchange-passport-Dv2bo20G.js → exchange-passport-DnHj2Zy-.js} +1 -1
  93. package/dist/assets/{fallback-BlcEp1VL.js → fallback-C72CxcMi.js} +1 -1
  94. package/dist/assets/{form-text-input-D26GlKxQ.js → form-text-input-CAL7SeYD.js} +1 -1
  95. package/dist/assets/{format-error-Dk89U0uh.js → format-error-CbiEid9q.js} +1 -1
  96. package/dist/assets/{fr-CDmTLuDM.js → fr-DQWgWPhz.js} +1 -1
  97. package/dist/assets/{fuel-DeEVMoW6.js → fuel-Q9sJJ4_d.js} +1 -1
  98. package/dist/assets/{fullpage-CFHcuwWr.js → fullpage-DVC1APwg.js} +1 -1
  99. package/dist/assets/{hi-DfYUKMCb.js → hi-C50bflH3.js} +1 -1
  100. package/dist/assets/{home-D7XPwTjK.js → home-Ch6XNDix.js} +1 -1
  101. package/dist/assets/{id-BeY7iur-.js → id-oSAOvU1-.js} +1 -1
  102. package/dist/assets/{iframe-tSt_So8C.js → iframe-2nKx0cce.js} +1 -1
  103. package/dist/assets/{index-vQSgatpS.js → index-4Od9D4Ei.js} +1 -1
  104. package/dist/assets/{index-DsLePqKc.js → index-8hrKL-co.js} +1 -1
  105. package/dist/assets/{index-B6vN1Pjj.js → index-B2rBxW3k.js} +3 -3
  106. package/dist/assets/{index-D-G-CrJO.js → index-B5AvZ1yw.js} +1 -1
  107. package/dist/assets/{index-hcyZSWah.js → index-B8I4RH9Q.js} +1 -1
  108. package/dist/assets/{index-I4Wjjc9p.js → index-BG-Xzh4v.js} +1 -1
  109. package/dist/assets/{index-DfQHFN6t.js → index-BJTyYuUl.js} +1 -1
  110. package/dist/assets/{index-vRY4Eqk5.js → index-BK7kbkcM.js} +1 -1
  111. package/dist/assets/{index-D2m633vu.js → index-BPsbsM44.js} +1 -1
  112. package/dist/assets/{index-DtdETaBU.js → index-BVEjQW6X.js} +4 -4
  113. package/dist/assets/{index-DcWx2h61.js → index-Bi3AjLz7.js} +1 -1
  114. package/dist/assets/{index-fU8Snm90.js → index-C13Q8eRp.js} +1 -1
  115. package/dist/assets/{index-K-RQRB6f.js → index-C2HRoKva.js} +1 -1
  116. package/dist/assets/{index-CwEyBOgW.js → index-CCqxe3mH.js} +1 -1
  117. package/dist/assets/{index-Ed6XamYf.js → index-CE4C_D90.js} +1 -1
  118. package/dist/assets/{index-C-OENO3T.js → index-CJpHbjZ8.js} +1 -1
  119. package/dist/assets/{index-BaYuwQfE.js → index-CS8WvX69.js} +1 -1
  120. package/dist/assets/{index-CQuGc78Y.js → index-CZBq5eNh.js} +1 -1
  121. package/dist/assets/{index-3lBO8ivG.js → index-C_-zFj2A.js} +1 -1
  122. package/dist/assets/{index-C56N3wab.js → index-Cj26cvIv.js} +1 -1
  123. package/dist/assets/{index-BilCISvf.js → index-Cm3beEw3.js} +1 -1
  124. package/dist/assets/{index-DQjLOWie.js → index-Cq70uFOw.js} +1 -1
  125. package/dist/assets/{index-CNE2uXX8.js → index-DFSEAGuA.js} +3 -3
  126. package/dist/assets/{index-DbUU7z6J.js → index-DOIT3SoE.js} +1 -1
  127. package/dist/assets/{index-DsZCBFlr.js → index-DhwZAald.js} +4 -4
  128. package/dist/assets/index-Dyj_8w0p.js +1 -0
  129. package/dist/assets/{index-EWrqmue5.js → index-M3UJnrw8.js} +1 -1
  130. package/dist/assets/{index-6dmWRa5a.js → index-Ok-X1E7o.js} +1 -1
  131. package/dist/assets/{index-CswkYvFG.js → index-PbwbRTZX.js} +1 -1
  132. package/dist/assets/{index-Qbrukcer.js → index-R65D8bAe.js} +1 -1
  133. package/dist/assets/{index-D0CXo93j.js → index-XuF4g8hk.js} +1 -1
  134. package/dist/assets/{index-Bk-KtZtw.js → index-bYhb0Lo-.js} +1 -1
  135. package/dist/assets/{index-tap0PKb5.js → index-mkvOm8fk.js} +1 -1
  136. package/dist/assets/{index-CPFKRWiW.js → index-sl80Eigf.js} +1 -1
  137. package/dist/assets/{index-C89kYDNU.js → index-tZNubVrM.js} +1 -1
  138. package/dist/assets/{invitation-BTS9OmKY.js → invitation-Cy_MDHZD.js} +1 -1
  139. package/dist/assets/{invite-DdlZu1iK.js → invite-DaZCLD9q.js} +1 -1
  140. package/dist/assets/{isEmail-CmNEnnPO.js → isEmail-C1RBm1rE.js} +1 -1
  141. package/dist/assets/{issue-passport-BOYK0sdW.js → issue-passport-CwM-bAN6.js} +1 -1
  142. package/dist/assets/{item-DiOlNyoQ.js → item-LWMCvAkS.js} +1 -1
  143. package/dist/assets/{ja-DvJTZg_Q.js → ja-Bk-I73Hu.js} +1 -1
  144. package/dist/assets/{jss-plugin-props-sort.esm-B0GYUqad.js → jss-plugin-props-sort.esm-BmTT67gA.js} +1 -1
  145. package/dist/assets/{ko-C1lnK-Gx.js → ko-C5Bk0Xf2.js} +1 -1
  146. package/dist/assets/{launch-result-message-CU6VqlMp.js → launch-result-message-CaP0G2_3.js} +1 -1
  147. package/dist/assets/{layout-BLLz87sa.js → layout-BJWGC0WP.js} +1 -1
  148. package/dist/assets/{list-header-XuCMCGCV.js → list-header-Cof8Hyj9.js} +1 -1
  149. package/dist/assets/localization-DEuVOLaY.js +1 -0
  150. package/dist/assets/{log-CzdQsoGM.js → log-B68Yjmfi.js} +1 -1
  151. package/dist/assets/{login-DxPcP1jX.js → login-DdMBqOIa.js} +1 -1
  152. package/dist/assets/{login-oauth-callback-6aacB0AP.js → login-oauth-callback-DPASJC5d.js} +1 -1
  153. package/dist/assets/{logo-uploader-FwiUnYYD.js → logo-uploader-Bzsu_p4S.js} +3 -3
  154. package/dist/assets/{lost-passport-CP1WD-6W.js → lost-passport-CbKrF3Qa.js} +3 -3
  155. package/dist/assets/{lottie-react.esm-D7IQJqb8.js → lottie-react.esm-BS7JDi8c.js} +1 -1
  156. package/dist/assets/{notifications-BuECL_6T.js → notifications-oMTO3BvT.js} +1 -1
  157. package/dist/assets/{open-window-Bg3rwEW-.js → open-window-XGigaFr1.js} +1 -1
  158. package/dist/assets/{overview-CjXvkE0B.js → overview-CQRwPlN5.js} +1 -1
  159. package/dist/assets/{page-header-ByFkqYoX.js → page-header-BVtP0Gj8.js} +1 -1
  160. package/dist/assets/{permission-DbhB5Z1v.js → permission-CmUkPgdw.js} +1 -1
  161. package/dist/assets/{preferences-BYmMPHkz.js → preferences-myGwc4Ta.js} +1 -1
  162. package/dist/assets/{pt-C86mXB8Z.js → pt-CJDS03F6.js} +1 -1
  163. package/dist/assets/publish-resource-slOCmItx.js +1 -0
  164. package/dist/assets/{raf-schd.esm-B7lVwb88.js → raf-schd.esm-DpoT6K7W.js} +1 -1
  165. package/dist/assets/{react-beautiful-dnd.esm-DzxofBcj.js → react-beautiful-dnd.esm-DGCHThgB.js} +1 -1
  166. package/dist/assets/refType-Batjm7R5.js +1 -0
  167. package/dist/assets/{resource-dialog-DvLQ35FQ.js → resource-dialog-D85RuCk6.js} +1 -1
  168. package/dist/assets/{ru-Dxm-iAqn.js → ru-8msrGpPx.js} +1 -1
  169. package/dist/assets/sdk-Cu50vGLL.js +1 -0
  170. package/dist/assets/{selector-CVbTF87I.js → selector-RDOWTJah.js} +1 -1
  171. package/dist/assets/session-Dp8hM31v.js +1 -0
  172. package/dist/assets/{setup-Cn5VZSrf.js → setup-Dq39HJa0.js} +3 -3
  173. package/dist/assets/{shorten-label-DkBNZBHq.js → shorten-label-CApfRr0Y.js} +1 -1
  174. package/dist/assets/{simple-select-Dar19mu0.js → simple-select-0ZacYWc3.js} +1 -1
  175. package/dist/assets/{slicedToArray-Bh7YTn9v.js → slicedToArray-9zgxL234.js} +1 -1
  176. package/dist/assets/{start-BeQmK9fc.js → start-CFYUDVzp.js} +1 -1
  177. package/dist/assets/{step-actions-DauWsHJ8.js → step-actions-CaleL0zw.js} +1 -1
  178. package/dist/assets/{studio-DsQEpBvk.js → studio-D_VzAtlO.js} +1 -1
  179. package/dist/assets/{switch-control-Dsh5_EeP.js → switch-control-CoHaLOxP.js} +1 -1
  180. package/dist/assets/{th-BamIf1b8.js → th-ChdbZTUV.js} +1 -1
  181. package/dist/assets/{toUpper-BzsouAll.js → toUpper-B3XulkWD.js} +1 -1
  182. package/dist/assets/{transfer-DaiNG55d.js → transfer-B2umXtRx.js} +1 -1
  183. package/dist/assets/{trim-BSxRkodT.js → trim-C2eqz9-0.js} +1 -1
  184. package/dist/assets/{uniqBy-DdK7WB2a.js → uniqBy-BBodXSGj.js} +1 -1
  185. package/dist/assets/{unsubscribe-QZHXePvC.js → unsubscribe-BBpdc9St.js} +1 -1
  186. package/dist/assets/{url-join-Bz42DLTX.js → url-join-BPXcvPcX.js} +1 -1
  187. package/dist/assets/{use-mobile-BnLttn6s.js → use-mobile-CE2MWaPt.js} +1 -1
  188. package/dist/assets/{use-mobile-BORWdgFu.js → use-mobile-hy4DkXUt.js} +1 -1
  189. package/dist/assets/{useAsync-XGhszTqi.js → useAsync-DKeO5KLm.js} +1 -1
  190. package/dist/assets/{useFormControl-CUbdx--c.js → useFormControl-CltInLkY.js} +1 -1
  191. package/dist/assets/{useLocalStorage-CQGh5cLr.js → useLocalStorage-DwMLE7Tj.js} +1 -1
  192. package/dist/assets/{useSetState-DJ05e857.js → useSetState-DxcS1uGl.js} +1 -1
  193. package/dist/assets/{useSlot-DcPzSHnC.js → useSlot-kzNDO_ox.js} +1 -1
  194. package/dist/assets/{useSlotProps-D6DLjewQ.js → useSlotProps-DuCiKg-i.js} +1 -1
  195. package/dist/assets/{useThemeProps-D4tucCRV.js → useThemeProps-Cn2VtDjT.js} +1 -1
  196. package/dist/assets/{user-center-BA6Kltkg.js → user-center-CiMeS3wo.js} +1 -1
  197. package/dist/assets/{user-sessions-DvMYo49k.js → user-sessions-BP9Y4rZT.js} +1 -1
  198. package/dist/assets/{util-CEeqN3nG.js → util-DBUY1X5Y.js} +1 -1
  199. package/dist/assets/{vi-CTEgHnG8.js → vi-CUSOYKGv.js} +1 -1
  200. package/dist/assets/wrap-locale-DROucKT1.js +1 -0
  201. package/dist/assets/zh-BjsAWTgR.js +2 -0
  202. package/dist/assets/{zh-tw-CuhSzmQN.js → zh-tw-BIvizDwP.js} +1 -1
  203. package/dist/index.html +1 -1
  204. package/dist/service-worker.js +1 -1
  205. package/package.json +19 -19
  206. package/dist/assets/add-resource-BY7yN1M7.js +0 -1
  207. package/dist/assets/api-SlMwqh4b.js +0 -1
  208. package/dist/assets/emotion-cache.browser.esm-DRs-CTgF.js +0 -1
  209. package/dist/assets/index-CuJzImxJ.js +0 -1
  210. package/dist/assets/localization-ClU7HEEr.js +0 -1
  211. package/dist/assets/publish-resource-CRym3QNG.js +0 -1
  212. package/dist/assets/refType-C0MWXRP4.js +0 -1
  213. package/dist/assets/sdk-C9VDRIUH.js +0 -1
  214. package/dist/assets/session-CfGQq4aA.js +0 -1
  215. package/dist/assets/wrap-locale-Ce8iB_Ha.js +0 -1
  216. package/dist/assets/zh-C9pcKSvk.js +0 -2
@@ -1,4 +1,4 @@
1
- import{aL as Re,aK as Ae,aM as He,ao as Ve,aN as D,aQ as F,r as p,aO as Ee,aP as De,j as t,aS as _,aT as We,a0 as Te,de as Oe,df as Se,$ as Ue,c7 as qe,az as Q,a2 as se,a3 as le,by as f,ai as Ge,ap as Y,aH as X,Q as W,T as P,b as Qe,aI as de,B as w,bA as Ye,M as H,dg as ce,H as ue,dh as pe,a5 as Xe,J as he,k as q,di as Je,l as V,dj as Ke,dk as Ze}from"./index-DtdETaBU.js";import{d as xe}from"./Menu-4JehMzAB.js";import{T as et}from"./Toolbar-MXTUjpSN.js";import{H as me}from"./Hidden-BIaa-blE.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=Q(t.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),lt=Q(t.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),dt=Q(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{aL as Re,aK as Ae,aM as He,ao as Ve,aN as D,aQ as F,r as p,aO as Ee,aP as De,j as t,aS as _,aT as We,a0 as Te,de as Oe,df as Se,$ as Ue,c7 as qe,az as Q,a2 as se,a3 as le,by as f,ai as Ge,ap as Y,aH as X,Q as W,T as P,b as Qe,aI as de,B as w,bA as Ye,M as H,dg as ce,H as ue,dh as pe,a5 as Xe,J as he,k as q,di as Je,l as V,dj as Ke,dk as Ze}from"./index-BVEjQW6X.js";import{d as xe}from"./Menu-7UlTP1FY.js";import{T as et}from"./Toolbar-BJIHFP0u.js";import{H as me}from"./Hidden-uuvIFLyk.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=Q(t.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),lt=Q(t.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),dt=Q(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,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-B6vN1Pjj.js","assets/index-DtdETaBU.js","assets/index-B4oT57Ax.css","assets/url-join-Bz42DLTX.js","assets/index-DcWx2h61.js","assets/_createAggregator-CF3Ywu_Z.js","assets/index-I4Wjjc9p.js","assets/index-Qbrukcer.js","assets/index-vQSgatpS.js","assets/fallback-BlcEp1VL.js","assets/index-DbUU7z6J.js","assets/Menu-4JehMzAB.js","assets/Toolbar-MXTUjpSN.js","assets/Hidden-BIaa-blE.js","assets/index-CQuGc78Y.js","assets/MoreVert-BHPy5yQk.js","assets/FormControlLabel-DUahNTJi.js","assets/useFormControl-CUbdx--c.js","assets/Stack-BGVSv0bm.js","assets/ListItemButton-DRswm1pu.js","assets/selector-CVbTF87I.js","assets/ExpandMore-B3TZX84r.js","assets/Avatar-D6TPuXUP.js","assets/useSlot-DcPzSHnC.js","assets/resource-dialog-DvLQ35FQ.js","assets/index-tap0PKb5.js","assets/OpenInNew-Ox-Wg6B7.js","assets/index-C89kYDNU.js","assets/Link-SvE6tGEV.js","assets/Skeleton-XhcFgkuH.js","assets/HelpOutline-pRqeT6i_.js","assets/index-C-OENO3T.js","assets/ButtonGroup-BcLw8gsE.js","assets/DialogContentText-BvYfkPC9.js","assets/TextField-BYIMGo2O.js","assets/FormControl-BlJhfvE4.js","assets/Select-pOhG5uV8.js","assets/use-mobile-BORWdgFu.js","assets/index-K-RQRB6f.js","assets/index-Ed6XamYf.js","assets/index-fU8Snm90.js","assets/emotion-cache.browser.esm-DRs-CTgF.js","assets/purify.es-DutPtr9A.js","assets/index-BilCISvf.js","assets/index-EWrqmue5.js","assets/useThemeProps-D4tucCRV.js","assets/toPropertyKey-PLuKRk1e.js","assets/index-DsLePqKc.js","assets/redux-CluOqhW1.js","assets/ViewColumn-Dl8WBRoz.js","assets/FormGroup-BhKveWGx.js","assets/Grid-HlOuSRmU.js","assets/Delete-CaO8fR6N.js","assets/LastPage-BI2XzpBc.js","assets/Search-B4FkzoeR.js","assets/deprecate-Bj3Q5Wi_.js","assets/uniqBy-DdK7WB2a.js","assets/toUpper-BzsouAll.js","assets/index-AgKpYdvC.css"])))=>i.map(i=>d[i]);
2
- import{az as d4,j as o,aM as i1,cU as m3,aQ as A,fG as J2,aP as v1,aK as A1,aL as F1,T as W,r as j,aO as m2,aR as C4,aS as U1,aT as q1,c$ as u4,fH as s2,a2 as k1,a3 as S1,a5 as z1,B as m,P as p,L as K,e as L2,u as o1,aV as V1,b2 as D1,bD as i2,a7 as o2,Q as f1,bN as L3,a as L1,aI as b1,V as p4,x as F,a4 as d1,bO as f4,ag as y1,c as h1,M as h4,bZ as b2,ck as b3,cP as x4,cY as $1,cZ as j3,ap as g4,dd as m4,cT as J1,bH as a1,c6 as Q1,ft as L4,ae as Q2,fI as b4,b as s1,n as l2,bs as v3,em as V3,ao as j2,bt as w3,cD as H3,aZ as O1,aY as j4,a9 as R3,fJ as Y2,fh as I1,bq as v4,aA as y3,c5 as V4,l as w4,aH as H4,aw as R4,ax as d2}from"./index-DtdETaBU.js";import{d as v2}from"./Add-Dr8htRSM.js";import{d as M3,a as y4}from"./Delete-CaO8fR6N.js";import{d as M4}from"./Error-vrb7fyQU.js";import{D as V2}from"./index-EWrqmue5.js";import{T as k3,b as k4}from"./index-C56N3wab.js";import{C as w2}from"./confirm-BYGcMOdN.js";import{u as c2}from"./session-CfGQq4aA.js";import{W as e3}from"./did-address-7Sb16VSB.js";import{E as W1,D as S4,C as Z4,P as I4}from"./react-beautiful-dnd.esm-DzxofBcj.js";import{B as H2}from"./bundle-avatar-D1CsKnAr.js";import{S as j1}from"./shorten-label-DkBNZBHq.js";import{A as S3}from"./Avatar-D6TPuXUP.js";import{d as P4}from"./Download-Bv95-VOA.js";import{d as D4}from"./QuestionMarkCircle-CRCb7vLB.js";import{b as N4,c as t3,T as T4}from"./index-K-RQRB6f.js";import{_ as Z1}from"./useSetState-DJ05e857.js";import{c as R2}from"./index-Qbrukcer.js";import{C as Y1,L as _4}from"./MoreVert-BHPy5yQk.js";import{A as Z3}from"./Alert-gRD_jJCj.js";import{p as n2}from"./index-hcyZSWah.js";import"./api-SlMwqh4b.js";import{i as B4}from"./index-C89kYDNU.js";import{d as E4}from"./ExpandMore-B3TZX84r.js";import{d as O4}from"./ChevronRight-PVflalU6.js";import{d as $4}from"./OpenInNew-Ox-Wg6B7.js";import{u as I3}from"./useThemeProps-D4tucCRV.js";import{F as f2}from"./FormControlLabel-DUahNTJi.js";import{u as A4}from"./useSlotProps-D6DLjewQ.js";import{d as F4}from"./DeleteOutline-PIJBVOmm.js";import{c as U4,A as P3,u as q4,S as z4,U as W4}from"./item-DiOlNyoQ.js";import{d as G4}from"./ArrowDropDown-DI04xnPr.js";import{f as P1}from"./format-error-Dk89U0uh.js";import{B as h2}from"./ButtonGroup-BcLw8gsE.js";import{T as p1}from"./TextField-BYIMGo2O.js";import{I as y2}from"./InputAdornment-mbNfreso.js";import{S as B1}from"./Stack-BGVSv0bm.js";import{C as K4}from"./click-to-copy-B_U6uers.js";import{d as X4}from"./Launch-DIHn67BI.js";import{S as o3}from"./index-BilCISvf.js";import{M as J4}from"./index-D-G-CrJO.js";import{p as Q4}from"./purify.es-DutPtr9A.js";import{r as Y4}from"./index-CswkYvFG.js";import{d as e5}from"./Done-Cqnr64ll.js";import{c as D3,d as N3,b as t5,S as o5,a as l5}from"./Stepper-1oUkII92.js";import{R as n5,a as l3}from"./RadioGroup-CAeo2G7k.js";import"./toPropertyKey-PLuKRk1e.js";import"./emotion-cache.browser.esm-DRs-CTgF.js";import"./index-DsLePqKc.js";import"./redux-CluOqhW1.js";import"./ViewColumn-Dl8WBRoz.js";import"./FormControl-BlJhfvE4.js";import"./useFormControl-CUbdx--c.js";import"./FormGroup-BhKveWGx.js";import"./Grid-HlOuSRmU.js";import"./Select-pOhG5uV8.js";import"./LastPage-BI2XzpBc.js";import"./Toolbar-MXTUjpSN.js";import"./Search-B4FkzoeR.js";import"./index-Ed6XamYf.js";import"./DialogContentText-BvYfkPC9.js";import"./Link-SvE6tGEV.js";import"./raf-schd.esm-B7lVwb88.js";import"./useSlot-DcPzSHnC.js";import"./jss-plugin-props-sort.esm-B0GYUqad.js";const r5=d4(o.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),s5=["slots","slotProps"],i5=i1(m3)(({theme:e})=>A({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":A({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":A({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:J2(e.palette.grey[200],.12)}:{backgroundColor:J2(e.palette.grey[600],.12)})})),c5=i1(r5)({width:24,height:16});function a5(e){const{slots:t={},slotProps:n={}}=e,r=v1(e,s5),s=e;return o.jsx("li",{children:o.jsx(i5,A({focusRipple:!0},r,{ownerState:s,children:o.jsx(c5,A({as:t.CollapsedIcon,ownerState:s},n.collapsedIcon))}))})}function d5(e){return F1("MuiBreadcrumbs",e)}const C5=A1("MuiBreadcrumbs",["root","ol","li","separator"]),u5=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],p5=e=>{const{classes:t}=e;return q1({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},d5,t)},f5=i1(W,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${C5.li}`]:t.li},t.root]})({}),h5=i1("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),x5=i1("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function g5(e,t,n,r){return e.reduce((s,a,i)=>(i<e.length-1?s=s.concat(a,o.jsx(x5,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${i}`)):s.push(a),s),[])}const T3=j.forwardRef(function(t,n){const r=m2({props:t,name:"MuiBreadcrumbs"}),{children:s,className:a,component:i="nav",slots:d={},slotProps:C={},expandText:f="Show path",itemsAfterCollapse:x=1,itemsBeforeCollapse:g=1,maxItems:V=8,separator:c="/"}=r,u=v1(r,u5),[h,v]=j.useState(!1),w=A({},r,{component:i,expanded:h,expandText:f,itemsAfterCollapse:x,itemsBeforeCollapse:g,maxItems:V,separator:c}),H=p5(w),R=C4({elementType:d.CollapsedIcon,externalSlotProps:C.collapsedIcon,ownerState:w}),M=j.useRef(null),y=P=>{const T=()=>{v(!0);const _=M.current.querySelector("a[href],button,[tabindex]");_&&_.focus()};return g+x>=P.length?P:[...P.slice(0,g),o.jsx(a5,{"aria-label":f,slots:{CollapsedIcon:d.CollapsedIcon},slotProps:{collapsedIcon:R},onClick:T},"ellipsis"),...P.slice(P.length-x,P.length)]},k=j.Children.toArray(s).filter(P=>j.isValidElement(P)).map((P,T)=>o.jsx("li",{className:H.li,children:P},`child-${T}`));return o.jsx(f5,A({ref:n,component:i,color:"text.secondary",className:U1(H.root,a),ownerState:w},u,{children:o.jsx(h5,{className:H.ol,ref:M,ownerState:w,children:g5(h||V&&k.length<=V?k:y(k),H.separator,c,w)})}))});function m5(e){return F1("MuiStepButton",e)}const n3=A1("MuiStepButton",["root","horizontal","vertical","touchRipple"]),L5=["children","className","icon","optional"],b5=e=>{const{classes:t,orientation:n}=e;return q1({root:["root",n],touchRipple:["touchRipple"]},m5,t)},j5=i1(m3,{name:"MuiStepButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${n3.touchRipple}`]:t.touchRipple},t.root,t[n.orientation]]}})(({ownerState:e})=>A({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},e.orientation==="vertical"&&{justifyContent:"flex-start",padding:"8px",margin:"-8px"},{[`& .${n3.touchRipple}`]:{color:"rgba(0, 0, 0, 0.3)"}})),v5=j.forwardRef(function(t,n){const r=m2({props:t,name:"MuiStepButton"}),{children:s,className:a,icon:i,optional:d}=r,C=v1(r,L5),{disabled:f,active:x}=j.useContext(D3),{orientation:g}=j.useContext(N3),V=A({},r,{orientation:g}),c=b5(V),u={icon:i,optional:d},h=u4(s,["StepLabel"])?j.cloneElement(s,u):o.jsx(t5,A({},u,{children:s}));return o.jsx(j5,A({focusRipple:!0,disabled:f,TouchRippleProps:{className:c.touchRipple},className:U1(c.root,a),ref:n,ownerState:V,"aria-current":x?"step":void 0},C,{children:h}))});function V5(e){return F1("MuiStepContent",e)}A1("MuiStepContent",["root","last","transition"]);const w5=["children","className","TransitionComponent","transitionDuration","TransitionProps"],H5=e=>{const{classes:t,last:n}=e;return q1({root:["root",n&&"last"],transition:["transition"]},V5,t)},R5=i1("div",{name:"MuiStepContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.last&&t.last]}})(({ownerState:e,theme:t})=>A({marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:t.vars?`1px solid ${t.vars.palette.StepContent.border}`:`1px solid ${t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600]}`},e.last&&{borderLeft:"none"})),y5=i1(s2,{name:"MuiStepContent",slot:"Transition",overridesResolver:(e,t)=>t.transition})({}),M5=j.forwardRef(function(t,n){const r=m2({props:t,name:"MuiStepContent"}),{children:s,className:a,TransitionComponent:i=s2,transitionDuration:d="auto",TransitionProps:C}=r,f=v1(r,w5);j.useContext(N3);const{active:x,last:g,expanded:V}=j.useContext(D3),c=A({},r,{last:g}),u=H5(c);let h=d;return d==="auto"&&!i.muiSupportAuto&&(h=void 0),o.jsx(R5,A({className:U1(u.root,a),ref:n,ownerState:c},f,{children:o.jsx(y5,A({as:i,in:x||V,className:u.transition,ownerState:c,timeout:h,unmountOnExit:!0},C,{children:s}))}))});var M2={},k5=S1;Object.defineProperty(M2,"__esModule",{value:!0});var _3=M2.default=void 0,S5=k5(k1()),Z5=o;_3=M2.default=(0,S5.default)((0,Z5.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4z"}),"AddBox");var k2={},I5=S1;Object.defineProperty(k2,"__esModule",{value:!0});var B3=k2.default=void 0,P5=I5(k1()),D5=o;B3=k2.default=(0,P5.default)((0,D5.jsx)("path",{d:"M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H15v-8h5V8zm-1 7V3.5L18.5 9zm4 12.66V16h5.66v2h-2.24l2.95 2.95-1.41 1.41L19 19.41v2.24h-2z"}),"FileOpen");var S2={},N5=S1;Object.defineProperty(S2,"__esModule",{value:!0});var E3=S2.default=void 0,T5=N5(k1()),_5=o;E3=S2.default=(0,T5.default)((0,_5.jsx)("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"}),"HelpOutlineOutlined");function Z2({did:e,projectId:t,title:n,logo:r,describe:s}){const i=`${`${K.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${e}/${t}/logo/upload`}/${r}`,[d,C]=j.useState(!1),f=z1(x=>x.breakpoints.down("md"));return o.jsxs(m,{sx:{display:"flex",flexDirection:"row",color:d?"primary.main":"grey.900",gap:1},onPointerEnter:()=>C(!0),onPointerLeave:()=>C(!1),children:[o.jsx(S3,{sx:{borderRadius:1},src:i}),o.jsxs(m,{children:[o.jsx(j1,{hiddenTip:!0,maxLength:"24",sx:{fontSize:"14px",fontWeight:"500",color:f?"primary.main":""},children:n||"/"}),o.jsx(j1,{hiddenTip:!0,maxLength:"58",sx:{fontSize:"12px",color:f||d?"primary.main":"grey.700"},children:s||"/"})]})]})}Z2.propTypes={projectId:p.string.isRequired,did:p.string.isRequired,title:p.string.isRequired,logo:p.string.isRequired,describe:p.string.isRequired};function I2({initUrl:e}){const t=L2(),n=(e==null?void 0:e.searchParams.get("tenantScope"))||"",{t:r,locale:s}=o1(),{api:a}=V1(),{api:i}=c2(),[d,C]=j.useState(!0),{blocklet:f}=D1(),[x,g]=j.useState(null),[V,c]=j.useState(!1),u=z1(Z=>Z.breakpoints.down("xl")),{componentDid:h=""}=i2(),[v,w]=j.useState(null),H=()=>{a.getProjects({input:{did:f.meta.did,componentDid:h,tenantScope:n}}).then(Z=>{const D=(Z==null?void 0:Z.projects)||[];C(!1),w(D)}).catch(Z=>{C(!1),F.error(Z.message)})},R=()=>{t(`${K.UNOWNED_DID}/create/none`,{replace:!0})},M=Z=>{g(Z)},y=()=>{C(!1),c(!0)},k=()=>{c(!1),g(null)},P=Z=>{F.error(Z.message),c(!1),g(null)},T=Z=>{if(!(Z!=null&&Z.deleted)){F.error("Delete project failed");return}H(),c(!1),g(null)};if(j.useEffect(()=>{H()},[]),!v&&d)return o.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",marginTop:"40px"},children:o.jsx(W1,{})});if(!v)return null;if(!v.length)return o.jsxs(m,{display:"flex",flexDirection:"column",alignItems:"center",pt:10,children:[o.jsx(m,{sx:{fontSize:20,fontWeight:"bold",mb:3},children:r("blocklet.publish.blockletEmptyTip")}),o.jsx(m,{sx:{fontSize:14,color:"text.secondary",mb:3},children:r("blocklet.publish.createBlockletTip")}),o.jsx(o2,{onClick:R,variant:"contained",children:r("blocklet.publish.createBlocklet")})]});const _=[{label:"Blocklet",name:"blockletTitle",minWidth:160,options:{customBodyRenderLite:Z=>{const D=v[Z];return o.jsx(f1,{to:`${D.id}`,children:o.jsx(Z2,{did:f.meta.did,projectId:D.id,logo:D.blockletLogo,title:D.blockletTitle,describe:D.blockletDescription})})}}},{label:"Version",name:"blockletVersion",options:{customBodyRender:Z=>Z?o.jsx(k3,{type:"success",children:Z}):""}},{label:"DID",name:"blockletDid",options:{customBodyRender:Z=>Z?o.jsx(e3,{size:14,compact:!0,responsive:!1,did:Z}):null}},u||h?null:{label:r("common.createdBy"),name:"createdBy",options:{customBodyRender:Z=>Z?o.jsx(e3,{onClick:()=>{t(`/.well-known/service/admin/members?did=${Z}`)},style:{cursor:"pointer"},size:14,compact:!0,copyable:!1,showQrcode:!1,responsive:!1,did:Z}):null}},u||h?null:{label:r("common.scope"),name:"componentDid",options:{customBodyRender:Z=>{const D=(f.children||[]).find(I=>I.meta.did===Z);return D?o.jsxs(m,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:[o.jsx(H2,{size:14,blocklet:D,ancestors:[f]}),o.jsx(m,{ml:.5,sx:{ml:.5,color:"text.primary",fontSize:14},children:D.meta.title})]},Z):""}}},u||n?null:{label:r("blocklet.publish.tenantScope"),name:"tenantScope",options:{customBodyRender:Z=>o.jsx(m,{ml:.5,sx:{ml:.5,color:"text.primary",fontSize:14},children:o.jsx(j1,{children:Z})})}},{label:r("common.updatedAt"),name:"updatedAt",options:{customBodyRender:Z=>o.jsx(L3,{value:Number(Z),locale:s})}},{label:r("common.actions"),name:"actions",options:{customBodyRenderLite:Z=>{const D=v[Z];return o.jsxs(m,{display:"flex",children:[o.jsx(f1,{to:`${D.id}/new-release/${D.lastReleaseId}`,children:o.jsx(L1,{title:r("blocklet.publish.createRelease"),placement:"top",children:o.jsx(b1,{color:"primary","aria-label":"create",children:o.jsx(_3,{style:{fontSize:18}})})})}),!!D.lastReleaseId&&o.jsx(L1,{title:r("blocklet.publish.viewLastRelease",{name:D.blockletTitle}),placement:"top",children:o.jsx(b1,{color:"secondary","aria-label":"create",children:o.jsx(f1,{style:{display:"flex"},to:`${D.id}/view/${D.lastReleaseId}`,children:o.jsx(B3,{sx:{fontSize:18}})})})}),o.jsx(L1,{title:r("blocklet.publish.delete",{name:D.blockletTitle}),placement:"top",children:o.jsx(b1,{color:"primary","aria-label":"delete",onClick:()=>M(D),children:o.jsx(M3,{sx:{fontSize:18}})})})]})}}}].filter(Boolean),S=V?o.jsx(p4,{open:!0,popup:!0,onClose:k,action:"check-has-project-id",locale:s,checkFn:i.get,saveConnect:!1,forceConnected:!1,checkTimeout:5*60*1e3,onSuccess:T,onError:P,extraParams:{projectId:x.id,did:f.meta.did,name:x.blockletTitle},messages:{title:r("blocklet.publish.deleteProject.title",{name:x.blockletTitle}),scan:r("blocklet.publish.deleteProject.scan",{name:x.blockletTitle}),confirm:r("blocklet.publish.deleteProject.confirm"),success:r("blocklet.publish.deleteProject.success")}}):null;return o.jsxs(B5,{children:[o.jsxs(m,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[o.jsxs(m,{display:"flex",flexDirection:"row",alignItems:"center",children:[o.jsx(m,{sx:{fontSize:"1.2rem",fontWeight:"bold"},children:r("common.blockletStudio")}),o.jsx(L1,{title:r("blocklet.publish.createBlockletTip"),arrow:!0,placement:"right",children:o.jsx(E3,{sx:{opacity:.6,fontSize:"1.1em",ml:1}})})]}),o.jsxs(o2,{onClick:R,variant:"contained",children:[o.jsx(v2,{style:{fontSize:"1.3em",marginRight:4}}),r("blocklet.publish.createBlocklet")]})]}),o.jsx(m,{mt:3}),o.jsx(V2,{className:"main-table",locale:s,data:v,columns:_,options:{sort:!1,download:!1,filter:!1,print:!1,search:!1}}),x&&o.jsx(w2,{title:`${r("common.delete")} ${x.blockletTitle}`,description:r("blocklet.publish.deleteProject.description"),confirm:r("common.confirm"),onConfirm:y,onCancel:()=>g(null),children:o.jsx(m,{sx:{marginTop:2},children:[r("blocklet.publish.deleteProject.tip1"),r("blocklet.publish.deleteProject.tip2"),r("blocklet.publish.deleteProject.tip3")].map(Z=>o.jsxs(m,{sx:{display:"flex",marginTop:1,flexDirection:"row",alignItems:"flex-start"},children:[o.jsx(M4,{color:"warning",sx:{marginRight:1,fontSize:20,marginTop:"2px"}}),o.jsx(W,{component:"span",variant:"inherit",color:"text.secondary",children:Z})]}))})}),S]})}I2.propTypes={initUrl:p.object};I2.defaultProps={initUrl:null};const B5=d1(m)`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-B2rBxW3k.js","assets/index-BVEjQW6X.js","assets/index-B4oT57Ax.css","assets/url-join-BPXcvPcX.js","assets/index-Bi3AjLz7.js","assets/_createAggregator-BEOgNJlt.js","assets/index-BG-Xzh4v.js","assets/index-R65D8bAe.js","assets/index-4Od9D4Ei.js","assets/fallback-C72CxcMi.js","assets/index-DOIT3SoE.js","assets/Menu-7UlTP1FY.js","assets/Toolbar-BJIHFP0u.js","assets/Hidden-uuvIFLyk.js","assets/index-CZBq5eNh.js","assets/MoreVert-BtOLrVEi.js","assets/FormControlLabel-D9z183J8.js","assets/useFormControl-CltInLkY.js","assets/Stack-DrXw291T.js","assets/ListItemButton-BNv0OGYE.js","assets/selector-RDOWTJah.js","assets/ExpandMore-Cj4OYcCy.js","assets/Avatar-gOlKhZVz.js","assets/useSlot-kzNDO_ox.js","assets/resource-dialog-D85RuCk6.js","assets/index-mkvOm8fk.js","assets/OpenInNew-xm3TZrwY.js","assets/index-tZNubVrM.js","assets/Link-zHokPAVd.js","assets/Skeleton-Bb6czwVF.js","assets/HelpOutline-BtL6xkDv.js","assets/index-CJpHbjZ8.js","assets/ButtonGroup-DRi3T9UO.js","assets/DialogContentText-i_7cpb63.js","assets/TextField-BBknTPUM.js","assets/FormControl-DluiNcFf.js","assets/Select-BDwuIZTW.js","assets/use-mobile-hy4DkXUt.js","assets/index-C2HRoKva.js","assets/index-CE4C_D90.js","assets/index-C13Q8eRp.js","assets/emotion-cache.browser.esm-BpTip9wY.js","assets/purify.es-DutPtr9A.js","assets/index-Cm3beEw3.js","assets/index-M3UJnrw8.js","assets/useThemeProps-Cn2VtDjT.js","assets/toPropertyKey-PLuKRk1e.js","assets/index-8hrKL-co.js","assets/redux-CluOqhW1.js","assets/ViewColumn-Sbl3OSg5.js","assets/FormGroup-BkwPM48V.js","assets/Grid-74xCjD8y.js","assets/Delete-BEyOMTex.js","assets/LastPage-B8Lhfg_Z.js","assets/Search-Cgl4AQVg.js","assets/deprecate-CZZS7fT-.js","assets/uniqBy-BBodXSGj.js","assets/toUpper-B3XulkWD.js","assets/index-AgKpYdvC.css"])))=>i.map(i=>d[i]);
2
+ import{az as d4,j as o,aM as i1,cU as m3,aQ as A,fG as J2,aP as v1,aK as A1,aL as F1,T as W,r as j,aO as m2,aR as C4,aS as U1,aT as q1,c$ as u4,fH as s2,a2 as k1,a3 as S1,a5 as z1,B as m,P as p,L as K,e as L2,u as o1,aV as V1,b2 as D1,bD as i2,a7 as o2,Q as f1,bN as L3,a as L1,aI as b1,V as p4,x as F,a4 as d1,bO as f4,ag as y1,c as h1,M as h4,bZ as b2,ck as b3,cP as x4,cY as $1,cZ as j3,ap as g4,dd as m4,cT as J1,bH as a1,c6 as Q1,ft as L4,ae as Q2,fI as b4,b as s1,n as l2,bs as v3,em as V3,ao as j2,bt as w3,cD as H3,aZ as O1,aY as j4,a9 as R3,fJ as Y2,fh as I1,bq as v4,aA as y3,c5 as V4,l as w4,aH as H4,aw as R4,ax as d2}from"./index-BVEjQW6X.js";import{d as v2}from"./Add-Cp12CDvc.js";import{d as M3,a as y4}from"./Delete-BEyOMTex.js";import{d as M4}from"./Error-BI1YlsEE.js";import{D as V2}from"./index-M3UJnrw8.js";import{T as k3,b as k4}from"./index-Cj26cvIv.js";import{C as w2}from"./confirm-BTz0nHLL.js";import{u as c2}from"./session-Dp8hM31v.js";import{W as e3}from"./did-address-CyXVJCAO.js";import{E as W1,D as S4,C as Z4,P as I4}from"./react-beautiful-dnd.esm-DGCHThgB.js";import{B as H2}from"./bundle-avatar-CjiB4J24.js";import{S as j1}from"./shorten-label-CApfRr0Y.js";import{A as S3}from"./Avatar-gOlKhZVz.js";import{d as P4}from"./Download-hRaYJodO.js";import{d as D4}from"./QuestionMarkCircle-CC4vsdge.js";import{b as N4,c as t3,T as T4}from"./index-C2HRoKva.js";import{_ as Z1}from"./useSetState-DxcS1uGl.js";import{c as R2}from"./index-R65D8bAe.js";import{C as Y1,L as _4}from"./MoreVert-BtOLrVEi.js";import{A as Z3}from"./Alert-B-B19XWn.js";import{p as n2}from"./index-B8I4RH9Q.js";import"./api-DMGu5ioO.js";import{i as B4}from"./index-tZNubVrM.js";import{d as E4}from"./ExpandMore-Cj4OYcCy.js";import{d as O4}from"./ChevronRight-BSace2Vd.js";import{d as $4}from"./OpenInNew-xm3TZrwY.js";import{u as I3}from"./useThemeProps-Cn2VtDjT.js";import{F as f2}from"./FormControlLabel-D9z183J8.js";import{u as A4}from"./useSlotProps-DuCiKg-i.js";import{d as F4}from"./DeleteOutline-AH9RxcL2.js";import{c as U4,A as P3,u as q4,S as z4,U as W4}from"./item-LWMCvAkS.js";import{d as G4}from"./ArrowDropDown-Bi-0hAXG.js";import{f as P1}from"./format-error-CbiEid9q.js";import{B as h2}from"./ButtonGroup-DRi3T9UO.js";import{T as p1}from"./TextField-BBknTPUM.js";import{I as y2}from"./InputAdornment-DAmONXVm.js";import{S as B1}from"./Stack-DrXw291T.js";import{C as K4}from"./click-to-copy-BXFDJ_GY.js";import{d as X4}from"./Launch-DC_T9jvF.js";import{S as o3}from"./index-Cm3beEw3.js";import{M as J4}from"./index-B5AvZ1yw.js";import{p as Q4}from"./purify.es-DutPtr9A.js";import{r as Y4}from"./index-PbwbRTZX.js";import{d as e5}from"./Done-CkzFzrl_.js";import{c as D3,d as N3,b as t5,S as o5,a as l5}from"./Stepper-CK3xwi4m.js";import{R as n5,a as l3}from"./RadioGroup-CvAHdYYW.js";import"./toPropertyKey-PLuKRk1e.js";import"./emotion-cache.browser.esm-BpTip9wY.js";import"./index-8hrKL-co.js";import"./redux-CluOqhW1.js";import"./ViewColumn-Sbl3OSg5.js";import"./FormControl-DluiNcFf.js";import"./useFormControl-CltInLkY.js";import"./FormGroup-BkwPM48V.js";import"./Grid-74xCjD8y.js";import"./Select-BDwuIZTW.js";import"./LastPage-B8Lhfg_Z.js";import"./Toolbar-BJIHFP0u.js";import"./Search-Cgl4AQVg.js";import"./index-CE4C_D90.js";import"./DialogContentText-i_7cpb63.js";import"./Link-zHokPAVd.js";import"./raf-schd.esm-DpoT6K7W.js";import"./useSlot-kzNDO_ox.js";import"./jss-plugin-props-sort.esm-BmTT67gA.js";const r5=d4(o.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),s5=["slots","slotProps"],i5=i1(m3)(({theme:e})=>A({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":A({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":A({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:J2(e.palette.grey[200],.12)}:{backgroundColor:J2(e.palette.grey[600],.12)})})),c5=i1(r5)({width:24,height:16});function a5(e){const{slots:t={},slotProps:n={}}=e,r=v1(e,s5),s=e;return o.jsx("li",{children:o.jsx(i5,A({focusRipple:!0},r,{ownerState:s,children:o.jsx(c5,A({as:t.CollapsedIcon,ownerState:s},n.collapsedIcon))}))})}function d5(e){return F1("MuiBreadcrumbs",e)}const C5=A1("MuiBreadcrumbs",["root","ol","li","separator"]),u5=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],p5=e=>{const{classes:t}=e;return q1({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},d5,t)},f5=i1(W,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${C5.li}`]:t.li},t.root]})({}),h5=i1("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),x5=i1("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function g5(e,t,n,r){return e.reduce((s,a,i)=>(i<e.length-1?s=s.concat(a,o.jsx(x5,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${i}`)):s.push(a),s),[])}const T3=j.forwardRef(function(t,n){const r=m2({props:t,name:"MuiBreadcrumbs"}),{children:s,className:a,component:i="nav",slots:d={},slotProps:C={},expandText:f="Show path",itemsAfterCollapse:x=1,itemsBeforeCollapse:g=1,maxItems:V=8,separator:c="/"}=r,u=v1(r,u5),[h,v]=j.useState(!1),w=A({},r,{component:i,expanded:h,expandText:f,itemsAfterCollapse:x,itemsBeforeCollapse:g,maxItems:V,separator:c}),H=p5(w),R=C4({elementType:d.CollapsedIcon,externalSlotProps:C.collapsedIcon,ownerState:w}),M=j.useRef(null),y=P=>{const T=()=>{v(!0);const _=M.current.querySelector("a[href],button,[tabindex]");_&&_.focus()};return g+x>=P.length?P:[...P.slice(0,g),o.jsx(a5,{"aria-label":f,slots:{CollapsedIcon:d.CollapsedIcon},slotProps:{collapsedIcon:R},onClick:T},"ellipsis"),...P.slice(P.length-x,P.length)]},k=j.Children.toArray(s).filter(P=>j.isValidElement(P)).map((P,T)=>o.jsx("li",{className:H.li,children:P},`child-${T}`));return o.jsx(f5,A({ref:n,component:i,color:"text.secondary",className:U1(H.root,a),ownerState:w},u,{children:o.jsx(h5,{className:H.ol,ref:M,ownerState:w,children:g5(h||V&&k.length<=V?k:y(k),H.separator,c,w)})}))});function m5(e){return F1("MuiStepButton",e)}const n3=A1("MuiStepButton",["root","horizontal","vertical","touchRipple"]),L5=["children","className","icon","optional"],b5=e=>{const{classes:t,orientation:n}=e;return q1({root:["root",n],touchRipple:["touchRipple"]},m5,t)},j5=i1(m3,{name:"MuiStepButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${n3.touchRipple}`]:t.touchRipple},t.root,t[n.orientation]]}})(({ownerState:e})=>A({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},e.orientation==="vertical"&&{justifyContent:"flex-start",padding:"8px",margin:"-8px"},{[`& .${n3.touchRipple}`]:{color:"rgba(0, 0, 0, 0.3)"}})),v5=j.forwardRef(function(t,n){const r=m2({props:t,name:"MuiStepButton"}),{children:s,className:a,icon:i,optional:d}=r,C=v1(r,L5),{disabled:f,active:x}=j.useContext(D3),{orientation:g}=j.useContext(N3),V=A({},r,{orientation:g}),c=b5(V),u={icon:i,optional:d},h=u4(s,["StepLabel"])?j.cloneElement(s,u):o.jsx(t5,A({},u,{children:s}));return o.jsx(j5,A({focusRipple:!0,disabled:f,TouchRippleProps:{className:c.touchRipple},className:U1(c.root,a),ref:n,ownerState:V,"aria-current":x?"step":void 0},C,{children:h}))});function V5(e){return F1("MuiStepContent",e)}A1("MuiStepContent",["root","last","transition"]);const w5=["children","className","TransitionComponent","transitionDuration","TransitionProps"],H5=e=>{const{classes:t,last:n}=e;return q1({root:["root",n&&"last"],transition:["transition"]},V5,t)},R5=i1("div",{name:"MuiStepContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.last&&t.last]}})(({ownerState:e,theme:t})=>A({marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:t.vars?`1px solid ${t.vars.palette.StepContent.border}`:`1px solid ${t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600]}`},e.last&&{borderLeft:"none"})),y5=i1(s2,{name:"MuiStepContent",slot:"Transition",overridesResolver:(e,t)=>t.transition})({}),M5=j.forwardRef(function(t,n){const r=m2({props:t,name:"MuiStepContent"}),{children:s,className:a,TransitionComponent:i=s2,transitionDuration:d="auto",TransitionProps:C}=r,f=v1(r,w5);j.useContext(N3);const{active:x,last:g,expanded:V}=j.useContext(D3),c=A({},r,{last:g}),u=H5(c);let h=d;return d==="auto"&&!i.muiSupportAuto&&(h=void 0),o.jsx(R5,A({className:U1(u.root,a),ref:n,ownerState:c},f,{children:o.jsx(y5,A({as:i,in:x||V,className:u.transition,ownerState:c,timeout:h,unmountOnExit:!0},C,{children:s}))}))});var M2={},k5=S1;Object.defineProperty(M2,"__esModule",{value:!0});var _3=M2.default=void 0,S5=k5(k1()),Z5=o;_3=M2.default=(0,S5.default)((0,Z5.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4z"}),"AddBox");var k2={},I5=S1;Object.defineProperty(k2,"__esModule",{value:!0});var B3=k2.default=void 0,P5=I5(k1()),D5=o;B3=k2.default=(0,P5.default)((0,D5.jsx)("path",{d:"M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H15v-8h5V8zm-1 7V3.5L18.5 9zm4 12.66V16h5.66v2h-2.24l2.95 2.95-1.41 1.41L19 19.41v2.24h-2z"}),"FileOpen");var S2={},N5=S1;Object.defineProperty(S2,"__esModule",{value:!0});var E3=S2.default=void 0,T5=N5(k1()),_5=o;E3=S2.default=(0,T5.default)((0,_5.jsx)("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"}),"HelpOutlineOutlined");function Z2({did:e,projectId:t,title:n,logo:r,describe:s}){const i=`${`${K.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${e}/${t}/logo/upload`}/${r}`,[d,C]=j.useState(!1),f=z1(x=>x.breakpoints.down("md"));return o.jsxs(m,{sx:{display:"flex",flexDirection:"row",color:d?"primary.main":"grey.900",gap:1},onPointerEnter:()=>C(!0),onPointerLeave:()=>C(!1),children:[o.jsx(S3,{sx:{borderRadius:1},src:i}),o.jsxs(m,{children:[o.jsx(j1,{hiddenTip:!0,maxLength:"24",sx:{fontSize:"14px",fontWeight:"500",color:f?"primary.main":""},children:n||"/"}),o.jsx(j1,{hiddenTip:!0,maxLength:"58",sx:{fontSize:"12px",color:f||d?"primary.main":"grey.700"},children:s||"/"})]})]})}Z2.propTypes={projectId:p.string.isRequired,did:p.string.isRequired,title:p.string.isRequired,logo:p.string.isRequired,describe:p.string.isRequired};function I2({initUrl:e}){const t=L2(),n=(e==null?void 0:e.searchParams.get("tenantScope"))||"",{t:r,locale:s}=o1(),{api:a}=V1(),{api:i}=c2(),[d,C]=j.useState(!0),{blocklet:f}=D1(),[x,g]=j.useState(null),[V,c]=j.useState(!1),u=z1(Z=>Z.breakpoints.down("xl")),{componentDid:h=""}=i2(),[v,w]=j.useState(null),H=()=>{a.getProjects({input:{did:f.meta.did,componentDid:h,tenantScope:n}}).then(Z=>{const D=(Z==null?void 0:Z.projects)||[];C(!1),w(D)}).catch(Z=>{C(!1),F.error(Z.message)})},R=()=>{t(`${K.UNOWNED_DID}/create/none`,{replace:!0})},M=Z=>{g(Z)},y=()=>{C(!1),c(!0)},k=()=>{c(!1),g(null)},P=Z=>{F.error(Z.message),c(!1),g(null)},T=Z=>{if(!(Z!=null&&Z.deleted)){F.error("Delete project failed");return}H(),c(!1),g(null)};if(j.useEffect(()=>{H()},[]),!v&&d)return o.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",marginTop:"40px"},children:o.jsx(W1,{})});if(!v)return null;if(!v.length)return o.jsxs(m,{display:"flex",flexDirection:"column",alignItems:"center",pt:10,children:[o.jsx(m,{sx:{fontSize:20,fontWeight:"bold",mb:3},children:r("blocklet.publish.blockletEmptyTip")}),o.jsx(m,{sx:{fontSize:14,color:"text.secondary",mb:3},children:r("blocklet.publish.createBlockletTip")}),o.jsx(o2,{onClick:R,variant:"contained",children:r("blocklet.publish.createBlocklet")})]});const _=[{label:"Blocklet",name:"blockletTitle",minWidth:160,options:{customBodyRenderLite:Z=>{const D=v[Z];return o.jsx(f1,{to:`${D.id}`,children:o.jsx(Z2,{did:f.meta.did,projectId:D.id,logo:D.blockletLogo,title:D.blockletTitle,describe:D.blockletDescription})})}}},{label:"Version",name:"blockletVersion",options:{customBodyRender:Z=>Z?o.jsx(k3,{type:"success",children:Z}):""}},{label:"DID",name:"blockletDid",options:{customBodyRender:Z=>Z?o.jsx(e3,{size:14,compact:!0,responsive:!1,did:Z}):null}},u||h?null:{label:r("common.createdBy"),name:"createdBy",options:{customBodyRender:Z=>Z?o.jsx(e3,{onClick:()=>{t(`/.well-known/service/admin/members?did=${Z}`)},style:{cursor:"pointer"},size:14,compact:!0,copyable:!1,showQrcode:!1,responsive:!1,did:Z}):null}},u||h?null:{label:r("common.scope"),name:"componentDid",options:{customBodyRender:Z=>{const D=(f.children||[]).find(I=>I.meta.did===Z);return D?o.jsxs(m,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:[o.jsx(H2,{size:14,blocklet:D,ancestors:[f]}),o.jsx(m,{ml:.5,sx:{ml:.5,color:"text.primary",fontSize:14},children:D.meta.title})]},Z):""}}},u||n?null:{label:r("blocklet.publish.tenantScope"),name:"tenantScope",options:{customBodyRender:Z=>o.jsx(m,{ml:.5,sx:{ml:.5,color:"text.primary",fontSize:14},children:o.jsx(j1,{children:Z})})}},{label:r("common.updatedAt"),name:"updatedAt",options:{customBodyRender:Z=>o.jsx(L3,{value:Number(Z),locale:s})}},{label:r("common.actions"),name:"actions",options:{customBodyRenderLite:Z=>{const D=v[Z];return o.jsxs(m,{display:"flex",children:[o.jsx(f1,{to:`${D.id}/new-release/${D.lastReleaseId}`,children:o.jsx(L1,{title:r("blocklet.publish.createRelease"),placement:"top",children:o.jsx(b1,{color:"primary","aria-label":"create",children:o.jsx(_3,{style:{fontSize:18}})})})}),!!D.lastReleaseId&&o.jsx(L1,{title:r("blocklet.publish.viewLastRelease",{name:D.blockletTitle}),placement:"top",children:o.jsx(b1,{color:"secondary","aria-label":"create",children:o.jsx(f1,{style:{display:"flex"},to:`${D.id}/view/${D.lastReleaseId}`,children:o.jsx(B3,{sx:{fontSize:18}})})})}),o.jsx(L1,{title:r("blocklet.publish.delete",{name:D.blockletTitle}),placement:"top",children:o.jsx(b1,{color:"primary","aria-label":"delete",onClick:()=>M(D),children:o.jsx(M3,{sx:{fontSize:18}})})})]})}}}].filter(Boolean),S=V?o.jsx(p4,{open:!0,popup:!0,onClose:k,action:"check-has-project-id",locale:s,checkFn:i.get,saveConnect:!1,forceConnected:!1,checkTimeout:5*60*1e3,onSuccess:T,onError:P,extraParams:{projectId:x.id,did:f.meta.did,name:x.blockletTitle},messages:{title:r("blocklet.publish.deleteProject.title",{name:x.blockletTitle}),scan:r("blocklet.publish.deleteProject.scan",{name:x.blockletTitle}),confirm:r("blocklet.publish.deleteProject.confirm"),success:r("blocklet.publish.deleteProject.success")}}):null;return o.jsxs(B5,{children:[o.jsxs(m,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[o.jsxs(m,{display:"flex",flexDirection:"row",alignItems:"center",children:[o.jsx(m,{sx:{fontSize:"1.2rem",fontWeight:"bold"},children:r("common.blockletStudio")}),o.jsx(L1,{title:r("blocklet.publish.createBlockletTip"),arrow:!0,placement:"right",children:o.jsx(E3,{sx:{opacity:.6,fontSize:"1.1em",ml:1}})})]}),o.jsxs(o2,{onClick:R,variant:"contained",children:[o.jsx(v2,{style:{fontSize:"1.3em",marginRight:4}}),r("blocklet.publish.createBlocklet")]})]}),o.jsx(m,{mt:3}),o.jsx(V2,{className:"main-table",locale:s,data:v,columns:_,options:{sort:!1,download:!1,filter:!1,print:!1,search:!1}}),x&&o.jsx(w2,{title:`${r("common.delete")} ${x.blockletTitle}`,description:r("blocklet.publish.deleteProject.description"),confirm:r("common.confirm"),onConfirm:y,onCancel:()=>g(null),children:o.jsx(m,{sx:{marginTop:2},children:[r("blocklet.publish.deleteProject.tip1"),r("blocklet.publish.deleteProject.tip2"),r("blocklet.publish.deleteProject.tip3")].map(Z=>o.jsxs(m,{sx:{display:"flex",marginTop:1,flexDirection:"row",alignItems:"flex-start"},children:[o.jsx(M4,{color:"warning",sx:{marginRight:1,fontSize:20,marginTop:"2px"}}),o.jsx(W,{component:"span",variant:"inherit",color:"text.secondary",children:Z})]}))})}),S]})}I2.propTypes={initUrl:p.object};I2.defaultProps={initUrl:null};const B5=d1(m)`
3
3
  .main-table > div:first-child {
4
4
  display: none;
5
5
  }
@@ -133,7 +133,7 @@ import{az as d4,j as o,aM as i1,cU as m3,aQ as A,fG as J2,aP as v1,aK as A1,aL a
133
133
  background: #fff;
134
134
  z-index: 10;
135
135
  }
136
- `,C3="lastWantToConnectStoreId";function X8(e){var d,C;const[t,n]=j.useState(null),{session:r}=c2(),s=j.useCallback(f=>{n(f),localStorage.setItem(C3,f==null?void 0:f.id)},[n]),a=j.useMemo(()=>{var V,c,u,h;const f=localStorage.getItem(C3),x=f?(((V=e==null?void 0:e.settings)==null?void 0:V.storeList)||[]).find(v=>v.id===f):null;if(x)return x;let g=(((c=e==null?void 0:e.settings)==null?void 0:c.storeList)||[]).find(v=>{var w;return!(v.id!==K.BLOCKLET_STORE.id||v.scope&&v.scope!=="studio"&&v.scope!==((w=r==null?void 0:r.user)==null?void 0:w.did))});return g||(g=(h=(u=e==null?void 0:e.settings)==null?void 0:u.storeList)==null?void 0:h[0]),g},[(d=e==null?void 0:e.settings)==null?void 0:d.storeList,(C=r==null?void 0:r.user)==null?void 0:C.did]);return[t||a||{},s]}const p2={};async function G3(e,{interval:t=1e3,maxDuration:n=120*1e3,intervalFirst:r=4e3,timerKey:s=""}){p2[s]&&clearTimeout(p2[s]),await new Promise(d=>setTimeout(d,r));const a=Date.now(),i=async(d,C)=>{try{const f=await e();d(f)}catch(f){Date.now()-a>n?C(f):s?p2[s]=setTimeout(()=>i(d,C),t):setTimeout(()=>i(d,C),t)}};return new Promise(i)}function J8(){return Math.random().toString(36).slice(2)+Math.random().toString(36).slice(2)+`${Date.now()}`.slice(-6)}function Q8(e,{did:t,projectId:n,messageId:r}){return G3(async()=>{var a;const s=await e.getProject({input:{did:t,projectId:n,messageId:r}});if(!((a=s==null?void 0:s.project)!=null&&a.blockletDid))throw new Error("Connected store not found");return s.project.blockletDid},{timerKey:"connect-studio"})}function Y8(e,{did:t,projectId:n,storeId:r}){return G3(async()=>{var i,d;const s=await e.getProject({input:{did:t,projectId:n,messageId:""}});if(!((d=(i=s==null?void 0:s.project)==null?void 0:i.connectedStores)!=null&&d.length))throw new Error("Connected store not found");if(!s.project.connectedStores.find(C=>C.storeId===r))throw new Error("Connected store not found")},{timerKey:`connect-store-${r}`})}const K3=({fromBlocklet:e,nodeInfo:t,blocklet:n,userDid:r})=>{var i,d;const s=e?(i=n==null?void 0:n.meta)==null?void 0:i.did:t==null?void 0:t.did;let a=e?((d=n==null?void 0:n.settings)==null?void 0:d.storeList)||[]:(t==null?void 0:t.blockletRegistryList)||[];return Array.isArray(a)||(a=[]),a=a.filter(C=>C.protected||!C.scope||C.scope==="studio"||C.scope===r),{teamDid:s,storeList:a}};function F2({blocklet:e,store:t={},onChangeStore:n,onClick:r,disabled:s,loading:a,componentDid:i}){var D,I,E;const{t:d}=o1(),{session:C}=c2(),{api:f,info:x,inService:g}=V1(),V=D1(),[c,u]=j.useState(!1),h=j.useRef(null),[v,w]=j.useState(!1),[H,R]=j.useState(null),M=O=>{n(O),u(!1)},y=()=>{u(!c)},k=O=>{h.current&&h.current.contains(O.target)||u(!1)},P=()=>{w(!0)},T=()=>{w(!1)},_=async()=>{var O;if(H)try{await f.deleteBlockletStore({input:{teamDid:e.meta.did,url:H.url,projectId:"",scope:H.scope||"studio"}}),await((O=V==null?void 0:V.actions)==null?void 0:O.refreshBlocklet())}catch($){F.error(`Remove Blocklet Store Error: ${P1($)}`)}finally{R(null)}},{storeList:S}=K3({fromBlocklet:g,blocklet:e,nodeInfo:x,componentDid:i,userDid:(D=C==null?void 0:C.user)==null?void 0:D.did}),Z=(I=e==null?void 0:e.meta)==null?void 0:I.did;return o.jsxs(o.Fragment,{children:[o.jsxs(h2,{disabled:s,ref:h,variant:"contained",color:"primary","aria-label":"Button group with connect store",children:[o.jsxs(s1,{onClick:r,children:[a&&o.jsx(l2,{size:14,sx:{mr:.5}}),`${d("common.connect")} ${t.name||""}`]}),o.jsx(s1,{size:"small","aria-controls":c?"split-button-menu":void 0,"aria-expanded":c?"true":void 0,"aria-label":"select merge strategy","aria-haspopup":"menu",onClick:y,children:o.jsx(G4,{})})]}),o.jsx(v3,{sx:{zIndex:10},open:c,anchorEl:h.current,placement:"bottom-end",role:void 0,transition:!0,disablePortal:!0,children:({TransitionProps:O})=>o.jsx(V3,{...O,style:{transformOrigin:"center top"},children:o.jsx(j2,{children:o.jsx(w3,{onClickAway:k,children:o.jsxs(H3,{id:"split-button-menu",autoFocusItem:!0,sx:{maxHeight:300,overflowY:"auto",zIndex:10},children:[S==null?void 0:S.map($=>{var z;return o.jsxs(O1,{selected:$.id===(t==null?void 0:t.id),sx:{height:56},onClick:()=>M($),children:[o.jsxs(m,{children:[o.jsx(j1,{sx:{fontSize:"16px"},maxLength:24,children:$.name}),o.jsx(j1,{sx:{fontSize:"13px",opacity:.6},maxLength:30,children:$.url})]}),U4({store:$,userDid:(z=C==null?void 0:C.user)==null?void 0:z.did})&&o.jsx(b1,{sx:{ml:1},onClick:G=>{G.preventDefault(),G.stopPropagation(),R($)},children:o.jsx(a1,{icon:"ic:outline-delete"})})]},$.url)}),o.jsx(j4,{}),o.jsxs(O1,{onClick:P,children:[o.jsx(v2,{font:!0}),o.jsx(W,{variant:"inherit",children:d("store.blockletRegistry.addRegistry")})]})]})})})})}),v&&o.jsx(P3,{hiddenChildren:!0,open:!0,onClose:T,teamDid:Z,storeList:S,scope:"studio",onAdd:(E=V==null?void 0:V.actions)==null?void 0:E.refreshBlocklet}),H&&o.jsx(w2,{displayError:!0,title:`${d("common.delete")} ${H.name}`,description:d("blocklet.publish.deleteStoreTip",{name:H.name}),confirm:d("common.confirm"),onConfirm:_,onCancel:()=>R(null)})]})}F2.propTypes={store:p.object,blocklet:p.object,onChangeStore:p.func.isRequired,onClick:p.func.isRequired,loading:p.bool.isRequired,disabled:p.bool.isRequired,componentDid:p.string.isRequired,projectType:p.string.isRequired,getData:p.func.isRequired};F2.defaultProps={store:null,blocklet:null};const u3=j.lazy(()=>R3(()=>import("./index-B6vN1Pjj.js").then(e=>e.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58])).then(e=>({default:e.Uploader})));function X3({projectId:e,readOnly:t,loading:n,blocklet:r,params:s,setParams:a,paramsErrTip:i,setParamsErrTip:d,setLoading:C,initUrl:f,initLogoUrl:x,setInitLogoUrl:g,componentDid:V}){const{t:c}=o1(),{api:u}=V1(),h=L2(),v=j.useRef(null),w=j.useRef(null),[H,R]=X8(r),M=q4({messageType:"connect-store-message",onOpen:()=>C(!0),onClose:()=>C(!1)}),y=async I=>{const E=setTimeout(()=>{C(!1)},2e4),O=await Q8(u,I);C(!1),clearTimeout(E),window.parent.postMessage({event:"studioDialog.connected",componentDid:V},"*"),h(window.location.pathname.replace(`${K.UNOWNED_DID}/create`,`${O}/create`),{replace:!0})},k=()=>{if(!s.blockletTitle){F.error(c("blocklet.publish.errorTip.noTitle"));return}if(!(H!=null&&H.url)){F.error(c("blocklet.publish.noStoreSelected"));return}const I=J8();M(async(E,O)=>{var $,z,G;try{const X=await u.connectByStudio({input:{did:($=r==null?void 0:r.meta)==null?void 0:$.did,blockletTitle:s==null?void 0:s.blockletTitle,storeUrl:H.url,storeId:H.id,storeName:H.name,type:((z=s==null?void 0:s.blockletComponents)==null?void 0:z.length)>0?"pack":"resource",componentDid:V,messageId:I,tenantScope:(f==null?void 0:f.searchParams.get("tenantScope"))||""}});if(!(X!=null&&X.url)){F.error("failed to connect to store");return}O(X.url),y({did:(G=r==null?void 0:r.meta)==null?void 0:G.did,projectId:"",messageId:I})}catch(X){const l1=P1(X);F.error(l1),C(!1)}})},P=`${K.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${r.meta.did}/${e}/logo/upload`,T=`${K.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${r.meta.did}/${e}/screenshot/upload`,_=s!=null&&s.blockletLogo?`${P}/${s.blockletLogo}`:`${K.WELLKNOWN_SERVICE_PATH_PREFIX}/static/images/logo.png`,S=((s==null?void 0:s.blockletScreenshots)||[]).filter(Boolean).map(I=>`${T}/${I}`),Z=()=>t?!1:!e||e===K.UNOWNED_DID?(F.error(c("blocklet.publish.errorTip.noFirstDid")),!1):!0,D=I=>{if(!I.destination)return;const E=Array.from(s.blockletScreenshots),[O]=E.splice(I.source.index,1);E.splice(I.destination.index,0,O),a($=>({...$,blockletScreenshots:E}))};return o.jsxs(e9,{children:[o.jsx(m,{display:"flex",className:"section",children:o.jsxs(m,{sx:{flex:1},children:[o.jsx(p1,{disabled:n||t,label:`Blocklet ${c("common.title")}`,placeholder:`Blocklet ${c("common.title")}`,InputProps:{"data-cy":"blocklet-title",readOnly:t},autoComplete:"off",variant:"outlined",fullWidth:!0,required:!0,value:s.blockletTitle||"",onChange:I=>{d({blockletTitle:""}),a({blockletTitle:I.target.value})},error:!!i.blockletTitle,helperText:i.blockletTitle||""}),o.jsx(p1,{required:!0,label:"Blocklet DID",fullWidth:!0,readonly:!0,disabled:!0,autoComplete:"off",variant:"outlined",InputProps:{"data-cy":"export-blocklet-did",endAdornment:e===K.UNOWNED_DID&&o.jsx(y2,{position:"end",children:o.jsx(F2,{blocklet:r,store:H,componentDid:V,onChangeStore:R,disabled:!s.blockletTitle||t||n,loading:n,onClick:k})})},error:!!i.projectId,helperText:i.projectId||"",value:e===K.UNOWNED_DID?"":`did:abt:${e}`,sx:{mt:3}}),o.jsx(p1,{disabled:n||t,label:`Blocklet ${c("common.description")}`,placeholder:`Blocklet ${c("common.description")}`,InputProps:{"data-cy":"blocklet-description",readOnly:t},required:!0,autoComplete:"off",variant:"outlined",fullWidth:!0,value:s.blockletDescription||"",onChange:I=>{d({blockletDescription:""}),a({blockletDescription:I.target.value})},error:!!i.blockletDescription,helperText:i.blockletDescription||"",sx:{mt:3}}),o.jsx(p1,{disabled:n||t,label:`Blocklet ${c("common.homepage")}`,placeholder:`Blocklet ${c("common.homepage")}`,InputProps:{"data-cy":"blocklet-homepage",readOnly:t},autoComplete:"off",variant:"outlined",fullWidth:!0,value:s.blockletHomepage||"",onChange:I=>{I.target.value&&!/^(http|https):\/\//.test(I.target.value)?d({blockletHomepage:c("blocklet.publish.errorTip.invalidUrl")}):d({blockletHomepage:""}),a({blockletHomepage:I.target.value})},error:!!i.blockletHomepage,helperText:i.blockletHomepage||"",sx:{mt:3}}),o.jsx(p1,{disabled:n||t,label:`Blocklet ${c("common.community")}`,placeholder:`Blocklet ${c("common.community")}`,InputProps:{"data-cy":"blocklet-community",readOnly:t},autoComplete:"off",variant:"outlined",fullWidth:!0,value:s.blockletCommunity||"",onChange:I=>{I.target.value&&!/^(http|https):\/\//.test(I.target.value)?d({blockletCommunity:c("blocklet.publish.errorTip.invalidUrl")}):d({blockletCommunity:""}),a({blockletCommunity:I.target.value})},error:!!i.blockletCommunity,helperText:i.blockletCommunity||"",sx:{mt:3}}),o.jsx(p1,{disabled:n||t,label:`Blocklet ${c("common.support")}`,placeholder:`Blocklet ${c("common.support")}`,InputProps:{"data-cy":"blocklet-support",readOnly:t},autoComplete:"off",variant:"outlined",fullWidth:!0,value:s.blockletSupport||"",onChange:I=>{I.target.value&&!/^(http|https):\/\//.test(I.target.value)&&!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(I.target.value)?d({blockletSupport:c("blocklet.publish.errorTip.invalidUrlOrEmail")}):d({blockletSupport:""}),a({blockletSupport:I.target.value})},error:!!i.blockletSupport,helperText:i.blockletSupport||"",sx:{mt:3}})]})}),o.jsx(m,{display:"flex",mt:3,className:"section full-width",children:o.jsxs(m,{sx:{flex:1},children:[o.jsxs(m,{display:"flex",flexDirection:"row",flexWrap:"wrap",children:[o.jsxs(B1,{direction:"column",spacing:1,sx:{mr:2,width:"160px"},children:[o.jsx(W,{variant:"subtitle1",sx:{fontWeight:"bold"},children:c("common.logo")}),o.jsxs(B1,{direction:"column",alignItems:"flex-start",spacing:1,sx:{opacity:.8,fontSize:"12px"},children:[o.jsx(m,{children:o.jsxs(m,{component:"span",children:[o.jsxs(m,{component:"span",sx:{color:"#555"},children:[c("studio.type"),":"," "]}),o.jsx(m,{component:"span",sx:{color:"#007ec6"},children:"png, jpg, webp, svg"})]})}),o.jsx(m,{children:o.jsxs(m,{component:"span",children:[o.jsxs(m,{component:"span",sx:{color:"#555"},children:[c("studio.ratio"),":"," "]}),o.jsx(m,{component:"span",sx:{color:"#007ec6"},children:"256x256"})]})}),o.jsx(m,{children:o.jsxs(m,{component:"span",children:[o.jsxs(m,{component:"span",sx:{color:"#555"},children:[c("studio.size"),":"," "]}),o.jsx(m,{component:"span",sx:{color:"#007ec6"},children:"<500Kb"})]})})]})]}),o.jsx(m,{sx:{flex:1,cursor:t?"default":"pointer",display:"flex",alignItems:"flex-end"},children:o.jsx(S3,{variant:"square",sx:{width:80,height:80},alt:"Blocklet Logo",src:x||_,onClick:()=>{var I;Z()&&((I=v.current)==null||I.open())}})})]}),o.jsxs(m,{display:"flex",mt:3,flexDirection:"row",flexWrap:"wrap",children:[o.jsxs(B1,{direction:"column",spacing:1,sx:{mr:2,width:"160px"},children:[o.jsx(W,{variant:"subtitle1",sx:{fontWeight:"bold"},children:c("common.screenshot")}),o.jsxs(B1,{direction:"column",alignItems:"flex-start",spacing:1,sx:{opacity:.8,fontSize:"12px"},children:[o.jsx(m,{sx:{border:"none"},variant:"outlined",size:"small",children:o.jsxs(m,{component:"span",children:[o.jsxs(m,{component:"span",sx:{color:"#555"},children:[c("studio.ratio"),":"," "]}),o.jsx(m,{component:"span",sx:{color:"#007ec6"},children:"16 / 9"})]})}),o.jsx(m,{children:o.jsxs(m,{component:"span",children:[o.jsxs(m,{component:"span",sx:{color:"#555"},children:[c("studio.count"),":"," "]}),o.jsx(m,{component:"span",sx:{color:"#007ec6"},children:"1~5"})]})}),o.jsx(m,{children:o.jsxs(m,{component:"span",children:[o.jsxs(m,{component:"span",sx:{color:"#555"},children:[c("studio.size"),":"," "]}),o.jsx(m,{component:"span",sx:{color:"#007ec6"},children:"<5MB"})]})}),o.jsx(m,{children:o.jsxs(m,{component:"span",children:[o.jsxs(m,{component:"span",sx:{color:"#555"},children:[c("studio.order"),":"," "]}),o.jsx(m,{component:"span",sx:{color:"#007ec6"},children:c("studio.orderTip")})]})})]})]}),o.jsx(S4,{onDragEnd:t?void 0:D,children:o.jsx(Z4,{droppableId:"screenshots",direction:"horizontal",isDropDisabled:t,children:(I,E)=>o.jsxs(m,{display:"flex",alignItems:"center",sx:{flex:1,flexWrap:"wrap",minHeight:160,background:E.isDraggingOver?"#f5f5f5":"transparent",transition:"background-color 0.2s ease",border:E.isDraggingOver?"2px dashed #999":"none",borderRadius:"4px"},ref:I.innerRef,...I.droppableProps,children:[S.map((O,$)=>o.jsx(I4,{draggableId:O,index:$,isDragDisabled:t,children:(z,G)=>o.jsxs(m,{ref:z.innerRef,...z.draggableProps,...z.dragHandleProps,className:"screenshot",sx:{transform:G.isDragging?"scale(1.05)":"none",boxShadow:G.isDragging?"0 5px 10px rgba(0,0,0,0.15)":"none",transition:"transform 0.2s ease, box-shadow 0.2s ease"},children:[o.jsx("img",{alt:"screenshot",src:O}),!t&&o.jsx(b1,{className:"action",onClick:()=>{a(X=>{const l1=[...X.blockletScreenshots];return l1.splice($,1),{...X,blockletScreenshots:l1}})},children:o.jsx(F4,{})})]})},O)),I.placeholder,S.length<5&&o.jsx(m,{sx:{width:240,height:135,background:"#eee",cursor:t?"default":"pointer",color:"#999",mb:2},display:"flex",justifyContent:"center",alignItems:"center",fontSize:40,onClick:()=>{var O;Z()&&((O=w.current)==null||O.open())},children:"+"})]})})})]})]})}),o.jsxs(j.Suspense,{fallback:o.jsx(W1,{}),children:[o.jsx(u3,{ref:v,popup:!0,onUploadFinish:I=>{var E;a({blockletLogo:I.data.filename}),g(""),(E=v.current)==null||E.close()},plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:P,disableMediaKitPrefix:!0},coreProps:{restrictions:{allowedFileTypes:["image/png","image/jpeg","image/webp","application/svg+xml"],maxFileSize:1024*1024*.5,maxNumberOfFiles:1}},dashboardProps:{autoOpen:"imageEditor"},imageEditorProps:{actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,aspectRatio:1,initialAspectRatio:1,autoCropArea:1,croppedCanvasOptions:{minWidth:256,minHeight:256}}}},"uploader-logo"),o.jsx(u3,{ref:w,popup:!0,onUploadFinish:I=>{var E;a(O=>{var z;const $=O.blockletScreenshots||[];return $.push((z=I.data)==null?void 0:z.filename),{...O,blockletScreenshots:$}}),(E=w.current)==null||E.close()},installerProps:{disabled:!0},plugins:["ImageEditor"],apiPathProps:{uploader:T,disableMediaKitPrefix:!0},coreProps:{restrictions:{allowedFileTypes:["image/*","application/svg+xml"],maxFileSize:1024*1024*5,maxNumberOfFiles:5-S.length}},dashboardProps:{autoOpen:"imageEditor"},imageEditorProps:{actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,autoCropArea:1,aspectRatio:16/9,initialAspectRatio:16/9,croppedCanvasOptions:{minWidth:1280,minHeight:720,maxWidth:1280*2,maxHeight:720*2}}}},"uploader-screenshot")]})]})}X3.propTypes={projectId:p.string.isRequired,readOnly:p.bool.isRequired,params:p.object.isRequired,setParams:p.func.isRequired,paramsErrTip:p.object.isRequired,setParamsErrTip:p.func.isRequired,loading:p.bool.isRequired,blocklet:p.object.isRequired,setLoading:p.func.isRequired,initUrl:p.object.isRequired,componentDid:p.isRequired,initLogoUrl:p.string.isRequired,setInitLogoUrl:p.func.isRequired};const e9=d1.div`
136
+ `,C3="lastWantToConnectStoreId";function X8(e){var d,C;const[t,n]=j.useState(null),{session:r}=c2(),s=j.useCallback(f=>{n(f),localStorage.setItem(C3,f==null?void 0:f.id)},[n]),a=j.useMemo(()=>{var V,c,u,h;const f=localStorage.getItem(C3),x=f?(((V=e==null?void 0:e.settings)==null?void 0:V.storeList)||[]).find(v=>v.id===f):null;if(x)return x;let g=(((c=e==null?void 0:e.settings)==null?void 0:c.storeList)||[]).find(v=>{var w;return!(v.id!==K.BLOCKLET_STORE.id||v.scope&&v.scope!=="studio"&&v.scope!==((w=r==null?void 0:r.user)==null?void 0:w.did))});return g||(g=(h=(u=e==null?void 0:e.settings)==null?void 0:u.storeList)==null?void 0:h[0]),g},[(d=e==null?void 0:e.settings)==null?void 0:d.storeList,(C=r==null?void 0:r.user)==null?void 0:C.did]);return[t||a||{},s]}const p2={};async function G3(e,{interval:t=1e3,maxDuration:n=120*1e3,intervalFirst:r=4e3,timerKey:s=""}){p2[s]&&clearTimeout(p2[s]),await new Promise(d=>setTimeout(d,r));const a=Date.now(),i=async(d,C)=>{try{const f=await e();d(f)}catch(f){Date.now()-a>n?C(f):s?p2[s]=setTimeout(()=>i(d,C),t):setTimeout(()=>i(d,C),t)}};return new Promise(i)}function J8(){return Math.random().toString(36).slice(2)+Math.random().toString(36).slice(2)+`${Date.now()}`.slice(-6)}function Q8(e,{did:t,projectId:n,messageId:r}){return G3(async()=>{var a;const s=await e.getProject({input:{did:t,projectId:n,messageId:r}});if(!((a=s==null?void 0:s.project)!=null&&a.blockletDid))throw new Error("Connected store not found");return s.project.blockletDid},{timerKey:"connect-studio"})}function Y8(e,{did:t,projectId:n,storeId:r}){return G3(async()=>{var i,d;const s=await e.getProject({input:{did:t,projectId:n,messageId:""}});if(!((d=(i=s==null?void 0:s.project)==null?void 0:i.connectedStores)!=null&&d.length))throw new Error("Connected store not found");if(!s.project.connectedStores.find(C=>C.storeId===r))throw new Error("Connected store not found")},{timerKey:`connect-store-${r}`})}const K3=({fromBlocklet:e,nodeInfo:t,blocklet:n,userDid:r})=>{var i,d;const s=e?(i=n==null?void 0:n.meta)==null?void 0:i.did:t==null?void 0:t.did;let a=e?((d=n==null?void 0:n.settings)==null?void 0:d.storeList)||[]:(t==null?void 0:t.blockletRegistryList)||[];return Array.isArray(a)||(a=[]),a=a.filter(C=>C.protected||!C.scope||C.scope==="studio"||C.scope===r),{teamDid:s,storeList:a}};function F2({blocklet:e,store:t={},onChangeStore:n,onClick:r,disabled:s,loading:a,componentDid:i}){var D,I,E;const{t:d}=o1(),{session:C}=c2(),{api:f,info:x,inService:g}=V1(),V=D1(),[c,u]=j.useState(!1),h=j.useRef(null),[v,w]=j.useState(!1),[H,R]=j.useState(null),M=O=>{n(O),u(!1)},y=()=>{u(!c)},k=O=>{h.current&&h.current.contains(O.target)||u(!1)},P=()=>{w(!0)},T=()=>{w(!1)},_=async()=>{var O;if(H)try{await f.deleteBlockletStore({input:{teamDid:e.meta.did,url:H.url,projectId:"",scope:H.scope||"studio"}}),await((O=V==null?void 0:V.actions)==null?void 0:O.refreshBlocklet())}catch($){F.error(`Remove Blocklet Store Error: ${P1($)}`)}finally{R(null)}},{storeList:S}=K3({fromBlocklet:g,blocklet:e,nodeInfo:x,componentDid:i,userDid:(D=C==null?void 0:C.user)==null?void 0:D.did}),Z=(I=e==null?void 0:e.meta)==null?void 0:I.did;return o.jsxs(o.Fragment,{children:[o.jsxs(h2,{disabled:s,ref:h,variant:"contained",color:"primary","aria-label":"Button group with connect store",children:[o.jsxs(s1,{onClick:r,children:[a&&o.jsx(l2,{size:14,sx:{mr:.5}}),`${d("common.connect")} ${t.name||""}`]}),o.jsx(s1,{size:"small","aria-controls":c?"split-button-menu":void 0,"aria-expanded":c?"true":void 0,"aria-label":"select merge strategy","aria-haspopup":"menu",onClick:y,children:o.jsx(G4,{})})]}),o.jsx(v3,{sx:{zIndex:10},open:c,anchorEl:h.current,placement:"bottom-end",role:void 0,transition:!0,disablePortal:!0,children:({TransitionProps:O})=>o.jsx(V3,{...O,style:{transformOrigin:"center top"},children:o.jsx(j2,{children:o.jsx(w3,{onClickAway:k,children:o.jsxs(H3,{id:"split-button-menu",autoFocusItem:!0,sx:{maxHeight:300,overflowY:"auto",zIndex:10},children:[S==null?void 0:S.map($=>{var z;return o.jsxs(O1,{selected:$.id===(t==null?void 0:t.id),sx:{height:56},onClick:()=>M($),children:[o.jsxs(m,{children:[o.jsx(j1,{sx:{fontSize:"16px"},maxLength:24,children:$.name}),o.jsx(j1,{sx:{fontSize:"13px",opacity:.6},maxLength:30,children:$.url})]}),U4({store:$,userDid:(z=C==null?void 0:C.user)==null?void 0:z.did})&&o.jsx(b1,{sx:{ml:1},onClick:G=>{G.preventDefault(),G.stopPropagation(),R($)},children:o.jsx(a1,{icon:"ic:outline-delete"})})]},$.url)}),o.jsx(j4,{}),o.jsxs(O1,{onClick:P,children:[o.jsx(v2,{font:!0}),o.jsx(W,{variant:"inherit",children:d("store.blockletRegistry.addRegistry")})]})]})})})})}),v&&o.jsx(P3,{hiddenChildren:!0,open:!0,onClose:T,teamDid:Z,storeList:S,scope:"studio",onAdd:(E=V==null?void 0:V.actions)==null?void 0:E.refreshBlocklet}),H&&o.jsx(w2,{displayError:!0,title:`${d("common.delete")} ${H.name}`,description:d("blocklet.publish.deleteStoreTip",{name:H.name}),confirm:d("common.confirm"),onConfirm:_,onCancel:()=>R(null)})]})}F2.propTypes={store:p.object,blocklet:p.object,onChangeStore:p.func.isRequired,onClick:p.func.isRequired,loading:p.bool.isRequired,disabled:p.bool.isRequired,componentDid:p.string.isRequired,projectType:p.string.isRequired,getData:p.func.isRequired};F2.defaultProps={store:null,blocklet:null};const u3=j.lazy(()=>R3(()=>import("./index-B2rBxW3k.js").then(e=>e.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58])).then(e=>({default:e.Uploader})));function X3({projectId:e,readOnly:t,loading:n,blocklet:r,params:s,setParams:a,paramsErrTip:i,setParamsErrTip:d,setLoading:C,initUrl:f,initLogoUrl:x,setInitLogoUrl:g,componentDid:V}){const{t:c}=o1(),{api:u}=V1(),h=L2(),v=j.useRef(null),w=j.useRef(null),[H,R]=X8(r),M=q4({messageType:"connect-store-message",onOpen:()=>C(!0),onClose:()=>C(!1)}),y=async I=>{const E=setTimeout(()=>{C(!1)},2e4),O=await Q8(u,I);C(!1),clearTimeout(E),window.parent.postMessage({event:"studioDialog.connected",componentDid:V},"*"),h(window.location.pathname.replace(`${K.UNOWNED_DID}/create`,`${O}/create`),{replace:!0})},k=()=>{if(!s.blockletTitle){F.error(c("blocklet.publish.errorTip.noTitle"));return}if(!(H!=null&&H.url)){F.error(c("blocklet.publish.noStoreSelected"));return}const I=J8();M(async(E,O)=>{var $,z,G;try{const X=await u.connectByStudio({input:{did:($=r==null?void 0:r.meta)==null?void 0:$.did,blockletTitle:s==null?void 0:s.blockletTitle,storeUrl:H.url,storeId:H.id,storeName:H.name,type:((z=s==null?void 0:s.blockletComponents)==null?void 0:z.length)>0?"pack":"resource",componentDid:V,messageId:I,tenantScope:(f==null?void 0:f.searchParams.get("tenantScope"))||""}});if(!(X!=null&&X.url)){F.error("failed to connect to store");return}O(X.url),y({did:(G=r==null?void 0:r.meta)==null?void 0:G.did,projectId:"",messageId:I})}catch(X){const l1=P1(X);F.error(l1),C(!1)}})},P=`${K.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${r.meta.did}/${e}/logo/upload`,T=`${K.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${r.meta.did}/${e}/screenshot/upload`,_=s!=null&&s.blockletLogo?`${P}/${s.blockletLogo}`:`${K.WELLKNOWN_SERVICE_PATH_PREFIX}/static/images/logo.png`,S=((s==null?void 0:s.blockletScreenshots)||[]).filter(Boolean).map(I=>`${T}/${I}`),Z=()=>t?!1:!e||e===K.UNOWNED_DID?(F.error(c("blocklet.publish.errorTip.noFirstDid")),!1):!0,D=I=>{if(!I.destination)return;const E=Array.from(s.blockletScreenshots),[O]=E.splice(I.source.index,1);E.splice(I.destination.index,0,O),a($=>({...$,blockletScreenshots:E}))};return o.jsxs(e9,{children:[o.jsx(m,{display:"flex",className:"section",children:o.jsxs(m,{sx:{flex:1},children:[o.jsx(p1,{disabled:n||t,label:`Blocklet ${c("common.title")}`,placeholder:`Blocklet ${c("common.title")}`,InputProps:{"data-cy":"blocklet-title",readOnly:t},autoComplete:"off",variant:"outlined",fullWidth:!0,required:!0,value:s.blockletTitle||"",onChange:I=>{d({blockletTitle:""}),a({blockletTitle:I.target.value})},error:!!i.blockletTitle,helperText:i.blockletTitle||""}),o.jsx(p1,{required:!0,label:"Blocklet DID",fullWidth:!0,readonly:!0,disabled:!0,autoComplete:"off",variant:"outlined",InputProps:{"data-cy":"export-blocklet-did",endAdornment:e===K.UNOWNED_DID&&o.jsx(y2,{position:"end",children:o.jsx(F2,{blocklet:r,store:H,componentDid:V,onChangeStore:R,disabled:!s.blockletTitle||t||n,loading:n,onClick:k})})},error:!!i.projectId,helperText:i.projectId||"",value:e===K.UNOWNED_DID?"":`did:abt:${e}`,sx:{mt:3}}),o.jsx(p1,{disabled:n||t,label:`Blocklet ${c("common.description")}`,placeholder:`Blocklet ${c("common.description")}`,InputProps:{"data-cy":"blocklet-description",readOnly:t},required:!0,autoComplete:"off",variant:"outlined",fullWidth:!0,value:s.blockletDescription||"",onChange:I=>{d({blockletDescription:""}),a({blockletDescription:I.target.value})},error:!!i.blockletDescription,helperText:i.blockletDescription||"",sx:{mt:3}}),o.jsx(p1,{disabled:n||t,label:`Blocklet ${c("common.homepage")}`,placeholder:`Blocklet ${c("common.homepage")}`,InputProps:{"data-cy":"blocklet-homepage",readOnly:t},autoComplete:"off",variant:"outlined",fullWidth:!0,value:s.blockletHomepage||"",onChange:I=>{I.target.value&&!/^(http|https):\/\//.test(I.target.value)?d({blockletHomepage:c("blocklet.publish.errorTip.invalidUrl")}):d({blockletHomepage:""}),a({blockletHomepage:I.target.value})},error:!!i.blockletHomepage,helperText:i.blockletHomepage||"",sx:{mt:3}}),o.jsx(p1,{disabled:n||t,label:`Blocklet ${c("common.community")}`,placeholder:`Blocklet ${c("common.community")}`,InputProps:{"data-cy":"blocklet-community",readOnly:t},autoComplete:"off",variant:"outlined",fullWidth:!0,value:s.blockletCommunity||"",onChange:I=>{I.target.value&&!/^(http|https):\/\//.test(I.target.value)?d({blockletCommunity:c("blocklet.publish.errorTip.invalidUrl")}):d({blockletCommunity:""}),a({blockletCommunity:I.target.value})},error:!!i.blockletCommunity,helperText:i.blockletCommunity||"",sx:{mt:3}}),o.jsx(p1,{disabled:n||t,label:`Blocklet ${c("common.support")}`,placeholder:`Blocklet ${c("common.support")}`,InputProps:{"data-cy":"blocklet-support",readOnly:t},autoComplete:"off",variant:"outlined",fullWidth:!0,value:s.blockletSupport||"",onChange:I=>{I.target.value&&!/^(http|https):\/\//.test(I.target.value)&&!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(I.target.value)?d({blockletSupport:c("blocklet.publish.errorTip.invalidUrlOrEmail")}):d({blockletSupport:""}),a({blockletSupport:I.target.value})},error:!!i.blockletSupport,helperText:i.blockletSupport||"",sx:{mt:3}})]})}),o.jsx(m,{display:"flex",mt:3,className:"section full-width",children:o.jsxs(m,{sx:{flex:1},children:[o.jsxs(m,{display:"flex",flexDirection:"row",flexWrap:"wrap",children:[o.jsxs(B1,{direction:"column",spacing:1,sx:{mr:2,width:"160px"},children:[o.jsx(W,{variant:"subtitle1",sx:{fontWeight:"bold"},children:c("common.logo")}),o.jsxs(B1,{direction:"column",alignItems:"flex-start",spacing:1,sx:{opacity:.8,fontSize:"12px"},children:[o.jsx(m,{children:o.jsxs(m,{component:"span",children:[o.jsxs(m,{component:"span",sx:{color:"#555"},children:[c("studio.type"),":"," "]}),o.jsx(m,{component:"span",sx:{color:"#007ec6"},children:"png, jpg, webp, svg"})]})}),o.jsx(m,{children:o.jsxs(m,{component:"span",children:[o.jsxs(m,{component:"span",sx:{color:"#555"},children:[c("studio.ratio"),":"," "]}),o.jsx(m,{component:"span",sx:{color:"#007ec6"},children:"256x256"})]})}),o.jsx(m,{children:o.jsxs(m,{component:"span",children:[o.jsxs(m,{component:"span",sx:{color:"#555"},children:[c("studio.size"),":"," "]}),o.jsx(m,{component:"span",sx:{color:"#007ec6"},children:"<500Kb"})]})})]})]}),o.jsx(m,{sx:{flex:1,cursor:t?"default":"pointer",display:"flex",alignItems:"flex-end"},children:o.jsx(S3,{variant:"square",sx:{width:80,height:80},alt:"Blocklet Logo",src:x||_,onClick:()=>{var I;Z()&&((I=v.current)==null||I.open())}})})]}),o.jsxs(m,{display:"flex",mt:3,flexDirection:"row",flexWrap:"wrap",children:[o.jsxs(B1,{direction:"column",spacing:1,sx:{mr:2,width:"160px"},children:[o.jsx(W,{variant:"subtitle1",sx:{fontWeight:"bold"},children:c("common.screenshot")}),o.jsxs(B1,{direction:"column",alignItems:"flex-start",spacing:1,sx:{opacity:.8,fontSize:"12px"},children:[o.jsx(m,{sx:{border:"none"},variant:"outlined",size:"small",children:o.jsxs(m,{component:"span",children:[o.jsxs(m,{component:"span",sx:{color:"#555"},children:[c("studio.ratio"),":"," "]}),o.jsx(m,{component:"span",sx:{color:"#007ec6"},children:"16 / 9"})]})}),o.jsx(m,{children:o.jsxs(m,{component:"span",children:[o.jsxs(m,{component:"span",sx:{color:"#555"},children:[c("studio.count"),":"," "]}),o.jsx(m,{component:"span",sx:{color:"#007ec6"},children:"1~5"})]})}),o.jsx(m,{children:o.jsxs(m,{component:"span",children:[o.jsxs(m,{component:"span",sx:{color:"#555"},children:[c("studio.size"),":"," "]}),o.jsx(m,{component:"span",sx:{color:"#007ec6"},children:"<5MB"})]})}),o.jsx(m,{children:o.jsxs(m,{component:"span",children:[o.jsxs(m,{component:"span",sx:{color:"#555"},children:[c("studio.order"),":"," "]}),o.jsx(m,{component:"span",sx:{color:"#007ec6"},children:c("studio.orderTip")})]})})]})]}),o.jsx(S4,{onDragEnd:t?void 0:D,children:o.jsx(Z4,{droppableId:"screenshots",direction:"horizontal",isDropDisabled:t,children:(I,E)=>o.jsxs(m,{display:"flex",alignItems:"center",sx:{flex:1,flexWrap:"wrap",minHeight:160,background:E.isDraggingOver?"#f5f5f5":"transparent",transition:"background-color 0.2s ease",border:E.isDraggingOver?"2px dashed #999":"none",borderRadius:"4px"},ref:I.innerRef,...I.droppableProps,children:[S.map((O,$)=>o.jsx(I4,{draggableId:O,index:$,isDragDisabled:t,children:(z,G)=>o.jsxs(m,{ref:z.innerRef,...z.draggableProps,...z.dragHandleProps,className:"screenshot",sx:{transform:G.isDragging?"scale(1.05)":"none",boxShadow:G.isDragging?"0 5px 10px rgba(0,0,0,0.15)":"none",transition:"transform 0.2s ease, box-shadow 0.2s ease"},children:[o.jsx("img",{alt:"screenshot",src:O}),!t&&o.jsx(b1,{className:"action",onClick:()=>{a(X=>{const l1=[...X.blockletScreenshots];return l1.splice($,1),{...X,blockletScreenshots:l1}})},children:o.jsx(F4,{})})]})},O)),I.placeholder,S.length<5&&o.jsx(m,{sx:{width:240,height:135,background:"#eee",cursor:t?"default":"pointer",color:"#999",mb:2},display:"flex",justifyContent:"center",alignItems:"center",fontSize:40,onClick:()=>{var O;Z()&&((O=w.current)==null||O.open())},children:"+"})]})})})]})]})}),o.jsxs(j.Suspense,{fallback:o.jsx(W1,{}),children:[o.jsx(u3,{ref:v,popup:!0,onUploadFinish:I=>{var E;a({blockletLogo:I.data.filename}),g(""),(E=v.current)==null||E.close()},plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:P,disableMediaKitPrefix:!0},coreProps:{restrictions:{allowedFileTypes:["image/png","image/jpeg","image/webp","application/svg+xml"],maxFileSize:1024*1024*.5,maxNumberOfFiles:1}},dashboardProps:{autoOpen:"imageEditor"},imageEditorProps:{actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,aspectRatio:1,initialAspectRatio:1,autoCropArea:1,croppedCanvasOptions:{minWidth:256,minHeight:256}}}},"uploader-logo"),o.jsx(u3,{ref:w,popup:!0,onUploadFinish:I=>{var E;a(O=>{var z;const $=O.blockletScreenshots||[];return $.push((z=I.data)==null?void 0:z.filename),{...O,blockletScreenshots:$}}),(E=w.current)==null||E.close()},installerProps:{disabled:!0},plugins:["ImageEditor"],apiPathProps:{uploader:T,disableMediaKitPrefix:!0},coreProps:{restrictions:{allowedFileTypes:["image/*","application/svg+xml"],maxFileSize:1024*1024*5,maxNumberOfFiles:5-S.length}},dashboardProps:{autoOpen:"imageEditor"},imageEditorProps:{actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,autoCropArea:1,aspectRatio:16/9,initialAspectRatio:16/9,croppedCanvasOptions:{minWidth:1280,minHeight:720,maxWidth:1280*2,maxHeight:720*2}}}},"uploader-screenshot")]})]})}X3.propTypes={projectId:p.string.isRequired,readOnly:p.bool.isRequired,params:p.object.isRequired,setParams:p.func.isRequired,paramsErrTip:p.object.isRequired,setParamsErrTip:p.func.isRequired,loading:p.bool.isRequired,blocklet:p.object.isRequired,setLoading:p.func.isRequired,initUrl:p.object.isRequired,componentDid:p.isRequired,initLogoUrl:p.string.isRequired,setInitLogoUrl:p.func.isRequired};const e9=d1.div`
137
137
  margin-top: 24px;
138
138
  .screenshot {
139
139
  margin-bottom: 16px;
@@ -178,7 +178,7 @@ import{az as d4,j as o,aM as i1,cU as m3,aQ as A,fG as J2,aP as v1,aK as A1,aL a
178
178
  padding-bottom: 12px;
179
179
  border-bottom: ${({theme:e})=>`1px solid ${e.palette.divider}`};
180
180
  }
181
- `;function o4({text:e}){return e?o.jsx(J4,{wrapperElement:{"data-color-mode":"light"},source:Q4.sanitize(e),rehypePlugins:[[Y4,{target:"_blank"}]]}):o.jsx(M1,{Icon:G1})}o4.propTypes={text:p.string.isRequired};function l4({params:e,setParams:t,paramsErrTip:n,loading:r,setParamsErrTip:s,readOnly:a}){var x;const{t:i}=o1(),[d,C]=j.useState(a?"preview":"write"),f=(g,V)=>{C(V)};return o.jsxs(m,{sx:{border:"1px solid #fff",width:"100%",borderRadius:2},children:[o.jsxs(m,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:[o.jsx(W,{variant:"h6",fontWeight:"bold",sx:{},children:i("common.introduction")}),o.jsxs(N4,{value:d,onChange:f,"aria-label":"wrapped label tabs example",children:[o.jsx(t3,{value:"write",label:"Write"}),o.jsx(t3,{value:"preview",label:"Preview"})]})]}),o.jsx(m,{display:d==="write"?"block":"none",sx:{width:"100%",marginTop:3},children:o.jsx(p1,{disabled:r||a,sx:{border:"none"},placeholder:`Blocklet ${i("common.introduction")}`,InputProps:{"data-cy":"export-blocklet-introduction",readOnly:a,endAdornment:o.jsxs(y2,{position:"end",children:[((x=e==null?void 0:e.blockletIntroduction)==null?void 0:x.length)||0," / ",y1.PROJECT.MAX_INTRO_LENGTH]})},autoComplete:"off",variant:"outlined",fullWidth:!0,multiline:!0,minRows:4,value:e.blockletIntroduction||"",onChange:g=>{s({blockletIntroduction:""}),t({blockletIntroduction:g.target.value.slice(0,y1.PROJECT.MAX_INTRO_LENGTH)})},error:!!n.blockletIntroduction,helperText:n.blockletIntroduction||""})}),o.jsx(m,{display:d==="preview"?"block":"none",mt:3,children:o.jsx(o4,{text:e.blockletIntroduction||""})})]})}l4.propTypes={params:p.object.isRequired,setParams:p.func.isRequired,paramsErrTip:p.object.isRequired,setParamsErrTip:p.func.isRequired,readOnly:p.bool.isRequired,loading:p.bool.isRequired};var z2={},d9=S1;Object.defineProperty(z2,"__esModule",{value:!0});var n4=z2.default=void 0,C9=d9(k1()),f3=o;n4=z2.default=(0,C9.default)([(0,f3.jsx)("circle",{cx:"12",cy:"19",r:"2"},"0"),(0,f3.jsx)("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh");function W2({step:e,ok:t,active:n,error:r}){let s="grey.500",a=e+1;return t&&(a=o.jsx(e5,{sx:{fontSize:18,margin:0},color:"white"})),r||!t&&n>e?(s="error.main",a=o.jsx(n4,{sx:{fontSize:18,margin:0},color:"white"})):n>=e&&(s="primary.main"),o.jsx(m,{width:24,height:24,bgcolor:s,borderRadius:"100%",color:"white",display:"flex",justifyContent:"center",fontWeight:"bold",fontSize:14,alignItems:"center",children:a})}W2.propTypes={step:p.number,ok:p.bool,active:p.number,error:p.string};W2.defaultProps={step:0,ok:!1,active:0,error:""};function r4({steps:e,activeStep:t,setActiveStep:n,hasSelectedResources:r,params:s,loading:a,paramsErrTip:i,viewMode:d,projectId:C}){const{t:f}=o1(),x=()=>{n(u=>u+1)},g=()=>{n(u=>u-1)},V=u=>u===0?(i==null?void 0:i.blockletTitle)||(i==null?void 0:i.projectId)||(i==null?void 0:i.blockletDescription)||(i==null?void 0:i.blockletHomepage)||(i==null?void 0:i.blockletSupport)||(i==null?void 0:i.blockletCommunity):u===2?i==null?void 0:i.blockletResource:u>=4?(i==null?void 0:i.blockletVersion)||(i==null?void 0:i.note):"",c=d||Q3({hasSelectedResources:r,params:s,projectId:C,t:f})===null;return o.jsxs(m,{sx:{width:300,maxWidth:300,minWidth:300,padding:2,border:"1px solid #ccc",borderRadius:2},children:[o.jsx(o5,{activeStep:t,orientation:"vertical",children:e.map((u,h)=>{const v={},w=a||!c9({hasSelectedResources:r,params:s,projectId:C,step:h,t:f}),H=a?"":V(h);return H&&(v.optional=o.jsx(W,{variant:"caption",color:"error",children:H}),v.error=!0),o.jsxs(l5,{children:[o.jsx(v5,{icon:o.jsx(W2,{error:H,active:c?99:t,step:h,ok:w}),sx:{cursor:"pointer",color:H?"error.main":"inherit"},disabled:!1,onClick:()=>n(h),...v,children:o.jsx(W,{fontSize:"14px",fontWeight:"500",color:H||!w&&t>h?"error.main":"inherit",children:u.label})}),o.jsxs(M5,{children:[o.jsx(W,{fontSize:12,children:u.description}),!c&&o.jsx(m,{sx:{mb:2},children:o.jsxs("div",{children:[h<e.length-1&&o.jsx(s1,{variant:"contained",onClick:x,sx:{mt:1,mr:1},disabled:H||!w,children:f("common.continue")}),h>0&&o.jsx(s1,{disabled:h===0,onClick:g,sx:{mt:1,mr:1},children:f("common.back")})]})})]})]},u.label)})}),t>=e.length-1&&o.jsx(j2,{square:!0,elevation:0,sx:{p:3},children:o.jsx(W,{fontSize:12,sx:{opacity:.5},children:"Click right top button to release"})})]})}r4.propTypes={steps:p.array.isRequired,activeStep:p.number.isRequired,setActiveStep:p.func.isRequired,params:p.object.isRequired,viewMode:p.string.isRequired,loading:p.bool.isRequired,projectId:p.string.isRequired,hasSelectedResources:p.bool.isRequired,paramsErrTip:p.shape({projectId:p.string,blockletVersion:p.string,blockletTitle:p.string,blockletDescription:p.string,note:p.string,blockletResource:p.string,blockletHomepage:p.string,blockletSupport:p.string,blockletCommunity:p.string}).isRequired};const u9=[".zip",".gz"],p9=1024*1024*100,f9=j.lazy(()=>R3(()=>import("./index-B6vN1Pjj.js").then(e=>e.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58])).then(e=>({default:e.Uploader})));function G2({app:e,projectId:t,readOnly:n,params:r,setParams:s,setParamsErrTip:a,error:i}){const{t:d}=o1(),C=j.useRef(null),f=()=>n?!1:!t||t===K.UNOWNED_DID?(F.error(d("blocklet.publish.errorTip.noFirstDid")),!1):!0,x=`${K.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${e.meta.did}/${t}/resource/upload`;return o.jsxs(m,{sx:{mt:3},children:[o.jsx(W,{gutterBottom:!0,children:d("blocklet.publish.resourceUpload")}),o.jsxs(B1,{direction:"row",alignItems:"center",spacing:1,sx:{flex:1,cursor:n?"default":"pointer"},children:[!!r.uploadedResource&&o.jsx(W,{component:"a",href:`${x}/params.uploadedResource`,children:r.uploadedResource}),!n&&o.jsx(s1,{variant:"outlined",size:"small",onClick:()=>{var g;f()&&((g=C.current)==null||g.open())},children:r.uploadedResource?d("common.change"):d("common.upload")})]}),o.jsx(j.Suspense,{fallback:o.jsx(W1,{}),children:o.jsx(f9,{ref:C,popup:!0,onUploadFinish:g=>{var V;s({uploadedResource:g.data.filename}),a({blockletResource:""}),(V=C.current)==null||V.close()},plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:x,disableMediaKitPrefix:!0},coreProps:{restrictions:{allowedFileExts:u9,maxFileSize:p9,maxNumberOfFiles:1}}},"uploader-resource")}),!!i&&o.jsx(m,{color:"error.main",mt:1,fontSize:14,children:i})]})}G2.propTypes={app:p.object.isRequired,projectId:p.string.isRequired,readOnly:p.bool.isRequired,params:p.object.isRequired,setParams:p.func.isRequired,error:p.string.isRequired,setParamsErrTip:p.func.isRequired};G2.defaultProps={};function r2({readOnly:e,params:t,setParams:n,paramsErrTip:r,setParamsErrTip:s,loading:a}){var d;const{t:i}=o1();return o.jsx(m,{display:"flex",mt:3,className:"section",children:o.jsxs(m,{sx:{flex:1},children:[o.jsx(p1,{required:!0,disabled:a||e,label:`Blocklet ${i("common.version")}`,placeholder:`Blocklet ${i("common.version")}`,InputProps:{"data-cy":"blocklet-version",readOnly:e},autoComplete:"off",variant:"outlined",fullWidth:!0,value:t.blockletVersion||"",onChange:C=>{s({blockletVersion:""}),n({blockletVersion:C.target.value})},error:!!r.blockletVersion,helperText:r.blockletVersion||""}),o.jsx(p1,{label:i("blocklet.publish.releaseNote"),autoComplete:"off",disabled:a||e,variant:"outlined",InputProps:{"data-cy":"release-note",readOnly:e,endAdornment:o.jsxs(y2,{position:"end",children:[((d=t==null?void 0:t.note)==null?void 0:d.length)||0," / ",y1.PROJECT.MAX_NOTE_LENGTH]})},fullWidth:!0,multiline:!0,minRows:4,required:!0,value:t.note||"",onChange:C=>{s({note:""}),n({note:C.target.value.slice(0,y1.PROJECT.MAX_NOTE_LENGTH)})},error:!!r.note,helperText:r.note||"",sx:{mt:3}})]})})}r2.propTypes={readOnly:p.bool.isRequired,params:p.object.isRequired,setParams:p.func.isRequired,paramsErrTip:p.object.isRequired,setParamsErrTip:p.func.isRequired,loading:p.bool.isRequired};r2.defaultProps={};function s4(e){for(const t in e)typeof e[t]=="string"?e[t]=e[t].replace(/\\\\/g,"\\"):typeof e[t]=="object"&&e[t]!==null&&s4(e[t]);return e}const h9=({tabs:e,blocklet:t,ancestors:n=[]})=>{const r=t.meta.did;e.push({label:o.jsxs(m,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:[o.jsx(H2,{size:24,blocklet:t,ancestors:n}),o.jsx(m,{ml:"4px",className:"text",children:o.jsx(m,{children:t.meta.title})})]},r),value:r})},h3=(e,t)=>{const n=b2(e,["blockletVersion","blockletTitle","blockletDescription","blockletLogo","blockletIntroduction","blockletScreenshots","blockletResourceType","blockletSupport","blockletHomepage","blockletCommunity","connectedStores","blockletComponents","lastReleaseId","uploadedResource","autoUpload","possibleSameStore","note"]);return n.blockletComponents?n.blockletComponents=n.blockletComponents.map(r=>({...r,included:!0})):n.blockletComponents=(t.children||[]).map(r=>({did:r.meta.did,included:!1,required:!1})),n.resourceFromSelect=!n.uploadedResource,n},x9={0:"branding",1:"introduction",2:"resources",3:"blocklets",4:"version"},x3={branding:0,introduction:1,resources:2,blocklets:3,version:4};function K2({initUrl:e,...t}){var X2;const{projectId:n,mode:r,releaseId:s,componentDid:a=""}=i2(),{t:i}=o1(),{blocklet:d}=D1(),[C,f]=Z1({blockletScreenshots:[],publishedStoreIds:[],connectedStores:[],uploadedResource:"",blockletResourceType:"",blockletSupport:"",blockletCommunity:"",blockletHomepage:"",resourceFromSelect:!0}),[x,g]=Z1({}),[V,c]=j.useState(!1),[u,h]=Z1(null),{api:v}=V1(),w=z1(N=>N.breakpoints.down("md")),[H,R]=j.useState({}),[M,y]=j.useState(!1),k=j.useRef({}),[P,T]=Z1({}),[_,S]=j.useState(""),[Z,D]=Z1({}),I=e==null?void 0:e.searchParams.get("dependentComponentsMode"),E=I==="readonly",O=j.useMemo(()=>{const N={};return Object.keys(Z).forEach(B=>{const R1=Z[B];R1&&R1.forEach(a4=>{N[a4]=!0})}),N},[Z]),$=j.useCallback(N=>{E&&f({blockletComponents:[]}),D(N)},[E,D,f]),z=j.useCallback((...N)=>{T(...N),g({blockletResource:""})},[]),G=s==="none"?(C==null?void 0:C.lastReleaseId)||"":s,[X,l1]=j.useState(r==="new-release"?4:0);j.useEffect(()=>{n&&g({projectId:""})},[n,g]);const x1=j.useMemo(()=>{var N;return(C==null?void 0:C.blockletResourceType)==="resource"?"resource":(N=C==null?void 0:C.blockletComponents)!=null&&N.some(B=>B.included)||Object.keys(O).length||C!=null&&C.uploadedResource?"pack":"resource"},[C==null?void 0:C.blockletComponents,C==null?void 0:C.uploadedResource,O,C==null?void 0:C.blockletResourceType]),C1=[],n1=((d==null?void 0:d.children)||[]).filter(N=>{var B;return(B=N.meta.resource)==null?void 0:B.exportApi}).filter(N=>!a||N.meta.did===a);n1.forEach(N=>{h9({tabs:C1,blocklet:N,t:i,ancestors:[d]})});const[t1,g1]=j.useState((X2=C1[0])==null?void 0:X2.value),c1=!M&&(u==null?void 0:u.status)==="published",Y=c1,w1=w4(()=>{if(!e)return;S(e.searchParams.get("logo")),f(B=>{var R1;return{...B,blockletTitle:(B==null?void 0:B.blockletTitle)||e.searchParams.get("title"),blockletDescription:(B==null?void 0:B.blockletDescription)||e.searchParams.get("description"),blockletIntroduction:(B==null?void 0:B.blockletIntroduction)||e.searchParams.get("introduction")||e.searchParams.get("description"),blockletComponents:(R1=B==null?void 0:B.blockletComponents)!=null&&R1.length?B==null?void 0:B.blockletComponents:JSON.parse(e.searchParams.get("components")||"[]"),note:(B==null?void 0:B.note)||e.searchParams.get("note")||"No note"}});const N=e.searchParams.get("resources");try{const B=JSON.parse(N);R(B)}catch{}}),Q=async()=>{if(G)try{const N=await v.getRelease({input:{did:d.meta.did,projectId:n,releaseId:G}});if(c(!1),!N.release){F.error("Release not found");return}N.release=s4(N.release),r!=="view"&&(N.release.note=""),f(B=>h3({...B,...N.release,blockletVersion:r==="create"||r==="new-release"?I1.inc(N.release.blockletVersion,"patch"):N.release.blockletVersion},d)),h(N.release)}catch(N){c(!1),F.error(P1(N))}},J=async()=>{if(n===K.UNOWNED_DID){f({blockletVersion:"1.0.0",blockletTitle:""});return}if(!n){F.error(i("blocklet.publish.errorTip.noDid"));return}try{const B=(await v.getProject({input:{did:d.meta.did,projectId:n}})).project||{};B.blockletVersion?(r==="create"||r==="new-release")&&I1.valid(B.blockletVersion)&&(B.blockletVersion=I1.inc(B.blockletVersion,"patch")):B.blockletVersion="1.0.0";const R1=h3(B,d);f(R1),B.lastReleaseId||w1()}catch(N){F.error(P1(N))}},r1=j.useCallback(async()=>{c(!0);try{if(r==="view"){if(!G){F.error("Empty release id");return}await J(),await Q();return}await J(),G&&(y(!0),await Q())}finally{c(!1)}},[r,G]),U=N=>{f({blockletComponents:N})},K1=N=>{f({blockletResourceType:N})};j.useEffect(()=>{r1()},[r1]),j.useEffect(()=>{n===K.UNOWNED_DID&&(r==="create"||r==="new-release")&&e&&w1()},[n,e,r,w1]);const T1=j.useMemo(()=>!!Object.keys(P).find(N=>!!P[N].length),[P]);if(!C&&V)return o.jsx(W1,{});if(!C)return null;const _1=n1.find(N=>N.meta.did===t1);if(n1.every(N=>N.status!=="running")&&(n1!=null&&n1.length))return o.jsx(M1,{children:i("blocklet.publish.allComponentsNotRunning")});const X1=N=>{g1(N)},q=e==null?void 0:e.searchParams.get("resourcesTitle"),e1=e==null?void 0:e.searchParams.get("componentsTitle"),u1=[{label:i("blocklet.publish.branding"),description:i("blocklet.publish.steps.branding")},{label:i("common.introduction"),description:i("blocklet.publish.steps.introduction")},{label:q||i("blocklet.publish.resourceTitle"),description:i("blocklet.publish.steps.resources")},{label:e1||i("common.components"),description:i("blocklet.publish.steps.blocklets")},{label:i("blocklet.publish.versionTitle"),description:i("blocklet.publish.steps.version")}],c4=u1[X]||u1[u1.length-1],H1=x9[X];return o.jsxs(g9,{...t,children:[o.jsx(t4,{blocklet:d,release:u,getData:r1,getRelease:Q,mode:r,params:C,setParams:f,setParamsErrTip:g,readOnly:Y,isPublished:c1,loading:V,setLoading:c,initLogoUrl:_,releaseId:G,projectId:n,projectType:x1,resourceComponents:n1,resourceComponentsMap:Z,resourceRelateComponents:O,resourceItem:_1,saveSelectedEventsRef:k,hasSelectedResources:T1,releaseUsedLast:M,setReleaseUsedLast:y,setRelease:h,paramsErrTip:x}),o.jsxs(m,{display:"flex",flexDirection:"column",sx:{width:"100%"},children:[o.jsx(m,{pt:3}),o.jsxs(m,{sx:{gap:3},display:"flex",flexDirection:w?"column":"row",children:[!w&&o.jsx(r4,{steps:u1,loading:V,viewMode:r==="view",params:C,hasSelectedResources:T1||C.uploadedResource,paramsErrTip:x,activeStep:X,setActiveStep:l1,projectId:n,resourcesUrlTitle:q,componentsUrlTitle:e1}),o.jsxs(m,{flex:"1",maxWidth:"720px",children:[!w&&H1!=="introduction"&&o.jsxs(W,{variant:"h6",fontWeight:"bold",display:"flex",flexDirection:"row",alignItems:"center",children:[c4.label,H1==="branding"&&o.jsx(L1,{title:i("blocklet.publish.brandingHelp"),placement:"right",children:o.jsx(m,{component:"a",target:"_blank",href:"https://www.arcblock.io/docs/blocklet-store/en/blocklet-detail-page",sx:{paddingTop:1,marginLeft:1},style:{color:"gray"},children:o.jsx(D4,{})})})]}),(w||H1==="branding")&&o.jsx(m,{flexDirection:"column",children:o.jsx(X3,{projectId:n,setParams:f,setParamsErrTip:g,params:C,componentDid:a,blocklet:d,initUrl:e,loading:V,setLoading:c,paramsErrTip:x,readOnly:Y,initLogoUrl:_,setInitLogoUrl:S})}),w&&o.jsx(m,{flexDirection:"column",children:o.jsx(r2,{loading:V,params:C,paramsErrTip:x,setParams:f,setParamsErrTip:g,readOnly:Y})}),(w||H1==="introduction")&&o.jsx(m,{display:"flex",flexDirection:"column",sx:{mt:w?5:0,width:"100%"},children:o.jsx(l4,{loading:V,readOnly:Y,params:C,setParams:f,paramsErrTip:x,setParamsErrTip:g})}),w&&o.jsx(W,{variant:"h6",fontWeight:"bold",mt:5,children:u1[x3.resources].label}),o.jsx(m,{display:w||H1==="resources"?"flex":"none",sx:{maxWidth:720},flexDirection:"column",children:o.jsx(m,{display:"flex",mt:3,className:"section full-width",children:o.jsxs(m,{sx:{flex:1},children:[o.jsxs(n5,{onChange:()=>f({resourceFromSelect:!C.resourceFromSelect}),children:[o.jsx(f2,{value:"select",disabled:Y,control:o.jsx(l3,{size:"small",checked:C.resourceFromSelect}),label:i("blocklet.publish.resourceSelect")}),o.jsx(f2,{value:"select",disabled:Y,control:o.jsx(l3,{size:"small",checked:!C.resourceFromSelect}),label:i("blocklet.publish.resourceUpload")})]}),C.resourceFromSelect&&o.jsxs(o.Fragment,{children:[!a&&o.jsx(T4,{tabs:C1,current:t1,onChange:X1,sx:{ml:-2,mt:2,maxWidth:w?window.innerWidth-24:"100%"}}),o.jsx(A2,{loading:V,initialResources:H,saveSelectedEventsRef:k,selectedResourceIds:P,setSelectedResourceIds:z,setResourceComponentsMap:$,error:x.blockletResource,app:d,readOnly:Y,component:_1,componentDid:a,initUrl:e,params:C,setParams:f,projectId:n===K.UNOWNED_DID?"":n,releaseUsedLast:M,release:{...u,id:G}})]}),!C.resourceFromSelect&&o.jsx(G2,{app:d,readOnly:Y,projectId:n===K.UNOWNED_DID?"":n,params:C,error:x.blockletResource,setParams:f,setParamsErrTip:g})]})})}),w&&o.jsx(W,{variant:"h6",fontWeight:"bold",mt:5,children:u1[x3.blocklets].label}),(w||H1==="blocklets")&&o.jsx(m,{flexDirection:"column",children:o.jsx(m,{display:"flex",mt:3,className:"section full-width",children:o.jsx(m,{sx:{flex:1},children:o.jsx(N2,{projectType:x1,disabled:V||Y,app:d,value:(C==null?void 0:C.blockletComponents)||[],blockletResourceType:(C==null?void 0:C.blockletResourceType)||"",onChange:U,onChangeBlockletResourceType:K1,resourceRelateComponents:O,dependentComponentsMode:I})})})}),!w&&H1==="version"&&o.jsx(m,{flexDirection:"column",children:o.jsx(r2,{loading:V,params:C,paramsErrTip:x,setParams:f,setParamsErrTip:g,readOnly:Y})})]})]})]})]})}K2.propTypes={initUrl:p.object};K2.defaultProps={initUrl:null};const g9=d1.div`
181
+ `;function o4({text:e}){return e?o.jsx(J4,{wrapperElement:{"data-color-mode":"light"},source:Q4.sanitize(e),rehypePlugins:[[Y4,{target:"_blank"}]]}):o.jsx(M1,{Icon:G1})}o4.propTypes={text:p.string.isRequired};function l4({params:e,setParams:t,paramsErrTip:n,loading:r,setParamsErrTip:s,readOnly:a}){var x;const{t:i}=o1(),[d,C]=j.useState(a?"preview":"write"),f=(g,V)=>{C(V)};return o.jsxs(m,{sx:{border:"1px solid #fff",width:"100%",borderRadius:2},children:[o.jsxs(m,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:[o.jsx(W,{variant:"h6",fontWeight:"bold",sx:{},children:i("common.introduction")}),o.jsxs(N4,{value:d,onChange:f,"aria-label":"wrapped label tabs example",children:[o.jsx(t3,{value:"write",label:"Write"}),o.jsx(t3,{value:"preview",label:"Preview"})]})]}),o.jsx(m,{display:d==="write"?"block":"none",sx:{width:"100%",marginTop:3},children:o.jsx(p1,{disabled:r||a,sx:{border:"none"},placeholder:`Blocklet ${i("common.introduction")}`,InputProps:{"data-cy":"export-blocklet-introduction",readOnly:a,endAdornment:o.jsxs(y2,{position:"end",children:[((x=e==null?void 0:e.blockletIntroduction)==null?void 0:x.length)||0," / ",y1.PROJECT.MAX_INTRO_LENGTH]})},autoComplete:"off",variant:"outlined",fullWidth:!0,multiline:!0,minRows:4,value:e.blockletIntroduction||"",onChange:g=>{s({blockletIntroduction:""}),t({blockletIntroduction:g.target.value.slice(0,y1.PROJECT.MAX_INTRO_LENGTH)})},error:!!n.blockletIntroduction,helperText:n.blockletIntroduction||""})}),o.jsx(m,{display:d==="preview"?"block":"none",mt:3,children:o.jsx(o4,{text:e.blockletIntroduction||""})})]})}l4.propTypes={params:p.object.isRequired,setParams:p.func.isRequired,paramsErrTip:p.object.isRequired,setParamsErrTip:p.func.isRequired,readOnly:p.bool.isRequired,loading:p.bool.isRequired};var z2={},d9=S1;Object.defineProperty(z2,"__esModule",{value:!0});var n4=z2.default=void 0,C9=d9(k1()),f3=o;n4=z2.default=(0,C9.default)([(0,f3.jsx)("circle",{cx:"12",cy:"19",r:"2"},"0"),(0,f3.jsx)("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh");function W2({step:e,ok:t,active:n,error:r}){let s="grey.500",a=e+1;return t&&(a=o.jsx(e5,{sx:{fontSize:18,margin:0},color:"white"})),r||!t&&n>e?(s="error.main",a=o.jsx(n4,{sx:{fontSize:18,margin:0},color:"white"})):n>=e&&(s="primary.main"),o.jsx(m,{width:24,height:24,bgcolor:s,borderRadius:"100%",color:"white",display:"flex",justifyContent:"center",fontWeight:"bold",fontSize:14,alignItems:"center",children:a})}W2.propTypes={step:p.number,ok:p.bool,active:p.number,error:p.string};W2.defaultProps={step:0,ok:!1,active:0,error:""};function r4({steps:e,activeStep:t,setActiveStep:n,hasSelectedResources:r,params:s,loading:a,paramsErrTip:i,viewMode:d,projectId:C}){const{t:f}=o1(),x=()=>{n(u=>u+1)},g=()=>{n(u=>u-1)},V=u=>u===0?(i==null?void 0:i.blockletTitle)||(i==null?void 0:i.projectId)||(i==null?void 0:i.blockletDescription)||(i==null?void 0:i.blockletHomepage)||(i==null?void 0:i.blockletSupport)||(i==null?void 0:i.blockletCommunity):u===2?i==null?void 0:i.blockletResource:u>=4?(i==null?void 0:i.blockletVersion)||(i==null?void 0:i.note):"",c=d||Q3({hasSelectedResources:r,params:s,projectId:C,t:f})===null;return o.jsxs(m,{sx:{width:300,maxWidth:300,minWidth:300,padding:2,border:"1px solid #ccc",borderRadius:2},children:[o.jsx(o5,{activeStep:t,orientation:"vertical",children:e.map((u,h)=>{const v={},w=a||!c9({hasSelectedResources:r,params:s,projectId:C,step:h,t:f}),H=a?"":V(h);return H&&(v.optional=o.jsx(W,{variant:"caption",color:"error",children:H}),v.error=!0),o.jsxs(l5,{children:[o.jsx(v5,{icon:o.jsx(W2,{error:H,active:c?99:t,step:h,ok:w}),sx:{cursor:"pointer",color:H?"error.main":"inherit"},disabled:!1,onClick:()=>n(h),...v,children:o.jsx(W,{fontSize:"14px",fontWeight:"500",color:H||!w&&t>h?"error.main":"inherit",children:u.label})}),o.jsxs(M5,{children:[o.jsx(W,{fontSize:12,children:u.description}),!c&&o.jsx(m,{sx:{mb:2},children:o.jsxs("div",{children:[h<e.length-1&&o.jsx(s1,{variant:"contained",onClick:x,sx:{mt:1,mr:1},disabled:H||!w,children:f("common.continue")}),h>0&&o.jsx(s1,{disabled:h===0,onClick:g,sx:{mt:1,mr:1},children:f("common.back")})]})})]})]},u.label)})}),t>=e.length-1&&o.jsx(j2,{square:!0,elevation:0,sx:{p:3},children:o.jsx(W,{fontSize:12,sx:{opacity:.5},children:"Click right top button to release"})})]})}r4.propTypes={steps:p.array.isRequired,activeStep:p.number.isRequired,setActiveStep:p.func.isRequired,params:p.object.isRequired,viewMode:p.string.isRequired,loading:p.bool.isRequired,projectId:p.string.isRequired,hasSelectedResources:p.bool.isRequired,paramsErrTip:p.shape({projectId:p.string,blockletVersion:p.string,blockletTitle:p.string,blockletDescription:p.string,note:p.string,blockletResource:p.string,blockletHomepage:p.string,blockletSupport:p.string,blockletCommunity:p.string}).isRequired};const u9=[".zip",".gz"],p9=1024*1024*100,f9=j.lazy(()=>R3(()=>import("./index-B2rBxW3k.js").then(e=>e.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58])).then(e=>({default:e.Uploader})));function G2({app:e,projectId:t,readOnly:n,params:r,setParams:s,setParamsErrTip:a,error:i}){const{t:d}=o1(),C=j.useRef(null),f=()=>n?!1:!t||t===K.UNOWNED_DID?(F.error(d("blocklet.publish.errorTip.noFirstDid")),!1):!0,x=`${K.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${e.meta.did}/${t}/resource/upload`;return o.jsxs(m,{sx:{mt:3},children:[o.jsx(W,{gutterBottom:!0,children:d("blocklet.publish.resourceUpload")}),o.jsxs(B1,{direction:"row",alignItems:"center",spacing:1,sx:{flex:1,cursor:n?"default":"pointer"},children:[!!r.uploadedResource&&o.jsx(W,{component:"a",href:`${x}/params.uploadedResource`,children:r.uploadedResource}),!n&&o.jsx(s1,{variant:"outlined",size:"small",onClick:()=>{var g;f()&&((g=C.current)==null||g.open())},children:r.uploadedResource?d("common.change"):d("common.upload")})]}),o.jsx(j.Suspense,{fallback:o.jsx(W1,{}),children:o.jsx(f9,{ref:C,popup:!0,onUploadFinish:g=>{var V;s({uploadedResource:g.data.filename}),a({blockletResource:""}),(V=C.current)==null||V.close()},plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:x,disableMediaKitPrefix:!0},coreProps:{restrictions:{allowedFileExts:u9,maxFileSize:p9,maxNumberOfFiles:1}}},"uploader-resource")}),!!i&&o.jsx(m,{color:"error.main",mt:1,fontSize:14,children:i})]})}G2.propTypes={app:p.object.isRequired,projectId:p.string.isRequired,readOnly:p.bool.isRequired,params:p.object.isRequired,setParams:p.func.isRequired,error:p.string.isRequired,setParamsErrTip:p.func.isRequired};G2.defaultProps={};function r2({readOnly:e,params:t,setParams:n,paramsErrTip:r,setParamsErrTip:s,loading:a}){var d;const{t:i}=o1();return o.jsx(m,{display:"flex",mt:3,className:"section",children:o.jsxs(m,{sx:{flex:1},children:[o.jsx(p1,{required:!0,disabled:a||e,label:`Blocklet ${i("common.version")}`,placeholder:`Blocklet ${i("common.version")}`,InputProps:{"data-cy":"blocklet-version",readOnly:e},autoComplete:"off",variant:"outlined",fullWidth:!0,value:t.blockletVersion||"",onChange:C=>{s({blockletVersion:""}),n({blockletVersion:C.target.value})},error:!!r.blockletVersion,helperText:r.blockletVersion||""}),o.jsx(p1,{label:i("blocklet.publish.releaseNote"),autoComplete:"off",disabled:a||e,variant:"outlined",InputProps:{"data-cy":"release-note",readOnly:e,endAdornment:o.jsxs(y2,{position:"end",children:[((d=t==null?void 0:t.note)==null?void 0:d.length)||0," / ",y1.PROJECT.MAX_NOTE_LENGTH]})},fullWidth:!0,multiline:!0,minRows:4,required:!0,value:t.note||"",onChange:C=>{s({note:""}),n({note:C.target.value.slice(0,y1.PROJECT.MAX_NOTE_LENGTH)})},error:!!r.note,helperText:r.note||"",sx:{mt:3}})]})})}r2.propTypes={readOnly:p.bool.isRequired,params:p.object.isRequired,setParams:p.func.isRequired,paramsErrTip:p.object.isRequired,setParamsErrTip:p.func.isRequired,loading:p.bool.isRequired};r2.defaultProps={};function s4(e){for(const t in e)typeof e[t]=="string"?e[t]=e[t].replace(/\\\\/g,"\\"):typeof e[t]=="object"&&e[t]!==null&&s4(e[t]);return e}const h9=({tabs:e,blocklet:t,ancestors:n=[]})=>{const r=t.meta.did;e.push({label:o.jsxs(m,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:[o.jsx(H2,{size:24,blocklet:t,ancestors:n}),o.jsx(m,{ml:"4px",className:"text",children:o.jsx(m,{children:t.meta.title})})]},r),value:r})},h3=(e,t)=>{const n=b2(e,["blockletVersion","blockletTitle","blockletDescription","blockletLogo","blockletIntroduction","blockletScreenshots","blockletResourceType","blockletSupport","blockletHomepage","blockletCommunity","connectedStores","blockletComponents","lastReleaseId","uploadedResource","autoUpload","possibleSameStore","note"]);return n.blockletComponents?n.blockletComponents=n.blockletComponents.map(r=>({...r,included:!0})):n.blockletComponents=(t.children||[]).map(r=>({did:r.meta.did,included:!1,required:!1})),n.resourceFromSelect=!n.uploadedResource,n},x9={0:"branding",1:"introduction",2:"resources",3:"blocklets",4:"version"},x3={branding:0,introduction:1,resources:2,blocklets:3,version:4};function K2({initUrl:e,...t}){var X2;const{projectId:n,mode:r,releaseId:s,componentDid:a=""}=i2(),{t:i}=o1(),{blocklet:d}=D1(),[C,f]=Z1({blockletScreenshots:[],publishedStoreIds:[],connectedStores:[],uploadedResource:"",blockletResourceType:"",blockletSupport:"",blockletCommunity:"",blockletHomepage:"",resourceFromSelect:!0}),[x,g]=Z1({}),[V,c]=j.useState(!1),[u,h]=Z1(null),{api:v}=V1(),w=z1(N=>N.breakpoints.down("md")),[H,R]=j.useState({}),[M,y]=j.useState(!1),k=j.useRef({}),[P,T]=Z1({}),[_,S]=j.useState(""),[Z,D]=Z1({}),I=e==null?void 0:e.searchParams.get("dependentComponentsMode"),E=I==="readonly",O=j.useMemo(()=>{const N={};return Object.keys(Z).forEach(B=>{const R1=Z[B];R1&&R1.forEach(a4=>{N[a4]=!0})}),N},[Z]),$=j.useCallback(N=>{E&&f({blockletComponents:[]}),D(N)},[E,D,f]),z=j.useCallback((...N)=>{T(...N),g({blockletResource:""})},[]),G=s==="none"?(C==null?void 0:C.lastReleaseId)||"":s,[X,l1]=j.useState(r==="new-release"?4:0);j.useEffect(()=>{n&&g({projectId:""})},[n,g]);const x1=j.useMemo(()=>{var N;return(C==null?void 0:C.blockletResourceType)==="resource"?"resource":(N=C==null?void 0:C.blockletComponents)!=null&&N.some(B=>B.included)||Object.keys(O).length||C!=null&&C.uploadedResource?"pack":"resource"},[C==null?void 0:C.blockletComponents,C==null?void 0:C.uploadedResource,O,C==null?void 0:C.blockletResourceType]),C1=[],n1=((d==null?void 0:d.children)||[]).filter(N=>{var B;return(B=N.meta.resource)==null?void 0:B.exportApi}).filter(N=>!a||N.meta.did===a);n1.forEach(N=>{h9({tabs:C1,blocklet:N,t:i,ancestors:[d]})});const[t1,g1]=j.useState((X2=C1[0])==null?void 0:X2.value),c1=!M&&(u==null?void 0:u.status)==="published",Y=c1,w1=w4(()=>{if(!e)return;S(e.searchParams.get("logo")),f(B=>{var R1;return{...B,blockletTitle:(B==null?void 0:B.blockletTitle)||e.searchParams.get("title"),blockletDescription:(B==null?void 0:B.blockletDescription)||e.searchParams.get("description"),blockletIntroduction:(B==null?void 0:B.blockletIntroduction)||e.searchParams.get("introduction")||e.searchParams.get("description"),blockletComponents:(R1=B==null?void 0:B.blockletComponents)!=null&&R1.length?B==null?void 0:B.blockletComponents:JSON.parse(e.searchParams.get("components")||"[]"),note:(B==null?void 0:B.note)||e.searchParams.get("note")||"No note"}});const N=e.searchParams.get("resources");try{const B=JSON.parse(N);R(B)}catch{}}),Q=async()=>{if(G)try{const N=await v.getRelease({input:{did:d.meta.did,projectId:n,releaseId:G}});if(c(!1),!N.release){F.error("Release not found");return}N.release=s4(N.release),r!=="view"&&(N.release.note=""),f(B=>h3({...B,...N.release,blockletVersion:r==="create"||r==="new-release"?I1.inc(N.release.blockletVersion,"patch"):N.release.blockletVersion},d)),h(N.release)}catch(N){c(!1),F.error(P1(N))}},J=async()=>{if(n===K.UNOWNED_DID){f({blockletVersion:"1.0.0",blockletTitle:""});return}if(!n){F.error(i("blocklet.publish.errorTip.noDid"));return}try{const B=(await v.getProject({input:{did:d.meta.did,projectId:n}})).project||{};B.blockletVersion?(r==="create"||r==="new-release")&&I1.valid(B.blockletVersion)&&(B.blockletVersion=I1.inc(B.blockletVersion,"patch")):B.blockletVersion="1.0.0";const R1=h3(B,d);f(R1),B.lastReleaseId||w1()}catch(N){F.error(P1(N))}},r1=j.useCallback(async()=>{c(!0);try{if(r==="view"){if(!G){F.error("Empty release id");return}await J(),await Q();return}await J(),G&&(y(!0),await Q())}finally{c(!1)}},[r,G]),U=N=>{f({blockletComponents:N})},K1=N=>{f({blockletResourceType:N})};j.useEffect(()=>{r1()},[r1]),j.useEffect(()=>{n===K.UNOWNED_DID&&(r==="create"||r==="new-release")&&e&&w1()},[n,e,r,w1]);const T1=j.useMemo(()=>!!Object.keys(P).find(N=>!!P[N].length),[P]);if(!C&&V)return o.jsx(W1,{});if(!C)return null;const _1=n1.find(N=>N.meta.did===t1);if(n1.every(N=>N.status!=="running")&&(n1!=null&&n1.length))return o.jsx(M1,{children:i("blocklet.publish.allComponentsNotRunning")});const X1=N=>{g1(N)},q=e==null?void 0:e.searchParams.get("resourcesTitle"),e1=e==null?void 0:e.searchParams.get("componentsTitle"),u1=[{label:i("blocklet.publish.branding"),description:i("blocklet.publish.steps.branding")},{label:i("common.introduction"),description:i("blocklet.publish.steps.introduction")},{label:q||i("blocklet.publish.resourceTitle"),description:i("blocklet.publish.steps.resources")},{label:e1||i("common.components"),description:i("blocklet.publish.steps.blocklets")},{label:i("blocklet.publish.versionTitle"),description:i("blocklet.publish.steps.version")}],c4=u1[X]||u1[u1.length-1],H1=x9[X];return o.jsxs(g9,{...t,children:[o.jsx(t4,{blocklet:d,release:u,getData:r1,getRelease:Q,mode:r,params:C,setParams:f,setParamsErrTip:g,readOnly:Y,isPublished:c1,loading:V,setLoading:c,initLogoUrl:_,releaseId:G,projectId:n,projectType:x1,resourceComponents:n1,resourceComponentsMap:Z,resourceRelateComponents:O,resourceItem:_1,saveSelectedEventsRef:k,hasSelectedResources:T1,releaseUsedLast:M,setReleaseUsedLast:y,setRelease:h,paramsErrTip:x}),o.jsxs(m,{display:"flex",flexDirection:"column",sx:{width:"100%"},children:[o.jsx(m,{pt:3}),o.jsxs(m,{sx:{gap:3},display:"flex",flexDirection:w?"column":"row",children:[!w&&o.jsx(r4,{steps:u1,loading:V,viewMode:r==="view",params:C,hasSelectedResources:T1||C.uploadedResource,paramsErrTip:x,activeStep:X,setActiveStep:l1,projectId:n,resourcesUrlTitle:q,componentsUrlTitle:e1}),o.jsxs(m,{flex:"1",maxWidth:"720px",children:[!w&&H1!=="introduction"&&o.jsxs(W,{variant:"h6",fontWeight:"bold",display:"flex",flexDirection:"row",alignItems:"center",children:[c4.label,H1==="branding"&&o.jsx(L1,{title:i("blocklet.publish.brandingHelp"),placement:"right",children:o.jsx(m,{component:"a",target:"_blank",href:"https://www.arcblock.io/docs/blocklet-store/en/blocklet-detail-page",sx:{paddingTop:1,marginLeft:1},style:{color:"gray"},children:o.jsx(D4,{})})})]}),(w||H1==="branding")&&o.jsx(m,{flexDirection:"column",children:o.jsx(X3,{projectId:n,setParams:f,setParamsErrTip:g,params:C,componentDid:a,blocklet:d,initUrl:e,loading:V,setLoading:c,paramsErrTip:x,readOnly:Y,initLogoUrl:_,setInitLogoUrl:S})}),w&&o.jsx(m,{flexDirection:"column",children:o.jsx(r2,{loading:V,params:C,paramsErrTip:x,setParams:f,setParamsErrTip:g,readOnly:Y})}),(w||H1==="introduction")&&o.jsx(m,{display:"flex",flexDirection:"column",sx:{mt:w?5:0,width:"100%"},children:o.jsx(l4,{loading:V,readOnly:Y,params:C,setParams:f,paramsErrTip:x,setParamsErrTip:g})}),w&&o.jsx(W,{variant:"h6",fontWeight:"bold",mt:5,children:u1[x3.resources].label}),o.jsx(m,{display:w||H1==="resources"?"flex":"none",sx:{maxWidth:720},flexDirection:"column",children:o.jsx(m,{display:"flex",mt:3,className:"section full-width",children:o.jsxs(m,{sx:{flex:1},children:[o.jsxs(n5,{onChange:()=>f({resourceFromSelect:!C.resourceFromSelect}),children:[o.jsx(f2,{value:"select",disabled:Y,control:o.jsx(l3,{size:"small",checked:C.resourceFromSelect}),label:i("blocklet.publish.resourceSelect")}),o.jsx(f2,{value:"select",disabled:Y,control:o.jsx(l3,{size:"small",checked:!C.resourceFromSelect}),label:i("blocklet.publish.resourceUpload")})]}),C.resourceFromSelect&&o.jsxs(o.Fragment,{children:[!a&&o.jsx(T4,{tabs:C1,current:t1,onChange:X1,sx:{ml:-2,mt:2,maxWidth:w?window.innerWidth-24:"100%"}}),o.jsx(A2,{loading:V,initialResources:H,saveSelectedEventsRef:k,selectedResourceIds:P,setSelectedResourceIds:z,setResourceComponentsMap:$,error:x.blockletResource,app:d,readOnly:Y,component:_1,componentDid:a,initUrl:e,params:C,setParams:f,projectId:n===K.UNOWNED_DID?"":n,releaseUsedLast:M,release:{...u,id:G}})]}),!C.resourceFromSelect&&o.jsx(G2,{app:d,readOnly:Y,projectId:n===K.UNOWNED_DID?"":n,params:C,error:x.blockletResource,setParams:f,setParamsErrTip:g})]})})}),w&&o.jsx(W,{variant:"h6",fontWeight:"bold",mt:5,children:u1[x3.blocklets].label}),(w||H1==="blocklets")&&o.jsx(m,{flexDirection:"column",children:o.jsx(m,{display:"flex",mt:3,className:"section full-width",children:o.jsx(m,{sx:{flex:1},children:o.jsx(N2,{projectType:x1,disabled:V||Y,app:d,value:(C==null?void 0:C.blockletComponents)||[],blockletResourceType:(C==null?void 0:C.blockletResourceType)||"",onChange:U,onChangeBlockletResourceType:K1,resourceRelateComponents:O,dependentComponentsMode:I})})})}),!w&&H1==="version"&&o.jsx(m,{flexDirection:"column",children:o.jsx(r2,{loading:V,params:C,paramsErrTip:x,setParams:f,setParamsErrTip:g,readOnly:Y})})]})]})]})]})}K2.propTypes={initUrl:p.object};K2.defaultProps={initUrl:null};const g9=d1.div`
182
182
  .section {
183
183
  &.full-width {
184
184
  max-width: 100%;
@@ -0,0 +1 @@
1
+ import{$ as c,r as _,l as f,cB as S,cC as r}from"./index-BVEjQW6X.js";var d=function(n){var a=c(_.useState(n),2),u=a[0],o=a[1],i=f(function(t){o(function(e){var s=S(t)?t(e):t;return s?r(r({},e),s):e})});return[u,i]};export{d as u};
@@ -1,4 +1,4 @@
1
- import{j as ee,r as $e,aQ as Se,dI as pi,d3 as Yb,aP as Ar,dw as Co,dJ as Fl,dK as Jb,dL as Xb,dM as Qb,dN as Ss,dO as Ot,dP as Rt,dQ as Qi,dR as Zi,dS as ti,dT as Zb,dU as Xv,dV as Qv,dW as ew,dX as Zv,dY as eh,cL as tw,cM as rw,cT as aw,dZ as nw,an as th,d_ as ow,d$ as iw,e0 as sw,e1 as lw,e2 as uw,aM as _r,e3 as cw,e4 as dw,e5 as fw,e6 as pw,cQ as vw,e7 as hw,e8 as gw,e9 as mw,ea as yw,eb as bw,cR as ww,cS as Sw,ap as rh,ao as $w,ec as xw,ed as _w,aI as Ja,ee as Tw,ef as Cw,T as Pw,eg as Ow,eh as Rw,ei as Iw,bl as Ew,ej as Aw,ek as jw,b as Dw,el as kw,em as Mw,d8 as Lw,d7 as Fw,en as Bw,eo as Nw,bo as ah,ep as Hw,eq as Uw,er as Ww,es as zw,aZ as $s,et as Gw,eu as Kw,a as xs,ev as Vw,ew as qw,aL as Ln,aK as Fn,aO as Bn,aS as Er,aT as Nn,aN as Dn,ch as Yw,cn as _s,cg as Jw,cX as Xw,dd as jd,d0 as Qw,az as Zw,cU as eS,cp as tt,cx as lt,ex as tS,ey as rS,a2 as vi,a3 as hi,cr as aS,bd as Rc,cq as nS,ez as oS,eA as nh,eB as iS,eC as sS,eD as lS,eE as uS,P as Qe,by as jo,bF as cS,aX as dS,c0 as fS,a5 as pS,cG as Dd,c3 as vS,ct as hS,n as gS}from"./index-DtdETaBU.js";import{u as mS}from"./useThemeProps-D4tucCRV.js";import{t as yS}from"./toPropertyKey-PLuKRk1e.js";import{a as bS,r as oh}from"./emotion-cache.browser.esm-DRs-CTgF.js";import{e as wS,r as SS,l as $S}from"./index-DsLePqKc.js";import{c as xS,C as _S,a as TS,d as CS}from"./MoreVert-BHPy5yQk.js";import{R as PS,C as OS,V as RS,d as IS,a as ES}from"./ViewColumn-Dl8WBRoz.js";import{F as AS,f as jS,g as DS}from"./FormControl-BlJhfvE4.js";import{u as kS}from"./useFormControl-CUbdx--c.js";import{F as MS,f as LS,g as FS}from"./FormControlLabel-DUahNTJi.js";import{F as BS,f as NS,g as HS}from"./FormGroup-BhKveWGx.js";import{G as US,g as WS,a as zS}from"./Grid-HlOuSRmU.js";import{I as ih,g as GS,i as KS,a as VS,b as qS,c as YS,d as JS,e as XS,f as QS,S as sh,h as ZS,s as e$}from"./Select-pOhG5uV8.js";import{a as ac,D as t$,L as kd}from"./Delete-CaO8fR6N.js";import{T as nc,g as r$,t as a$}from"./TextField-BYIMGo2O.js";import{K as n$,a as o$}from"./index-K-RQRB6f.js";import{F as i$,L as s$}from"./LastPage-BI2XzpBc.js";import{T as lh,g as l$,t as u$}from"./Toolbar-MXTUjpSN.js";import{S as c$,d as Md}from"./Search-B4FkzoeR.js";import{E as Ld}from"./index-Ed6XamYf.js";const Ic="mode",Ec="color-scheme",uh="data-color-scheme";function d$(e){const{defaultMode:t="light",defaultLightColorScheme:r="light",defaultDarkColorScheme:a="dark",modeStorageKey:n=Ic,colorSchemeStorageKey:i=Ec,attribute:c=uh,colorSchemeNode:v="document.documentElement",nonce:p}=e||{};return ee.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(function() {
1
+ import{j as ee,r as $e,aQ as Se,dI as pi,d3 as Yb,aP as Ar,dw as Co,dJ as Fl,dK as Jb,dL as Xb,dM as Qb,dN as Ss,dO as Ot,dP as Rt,dQ as Qi,dR as Zi,dS as ti,dT as Zb,dU as Xv,dV as Qv,dW as ew,dX as Zv,dY as eh,cL as tw,cM as rw,cT as aw,dZ as nw,an as th,d_ as ow,d$ as iw,e0 as sw,e1 as lw,e2 as uw,aM as _r,e3 as cw,e4 as dw,e5 as fw,e6 as pw,cQ as vw,e7 as hw,e8 as gw,e9 as mw,ea as yw,eb as bw,cR as ww,cS as Sw,ap as rh,ao as $w,ec as xw,ed as _w,aI as Ja,ee as Tw,ef as Cw,T as Pw,eg as Ow,eh as Rw,ei as Iw,bl as Ew,ej as Aw,ek as jw,b as Dw,el as kw,em as Mw,d8 as Lw,d7 as Fw,en as Bw,eo as Nw,bo as ah,ep as Hw,eq as Uw,er as Ww,es as zw,aZ as $s,et as Gw,eu as Kw,a as xs,ev as Vw,ew as qw,aL as Ln,aK as Fn,aO as Bn,aS as Er,aT as Nn,aN as Dn,ch as Yw,cn as _s,cg as Jw,cX as Xw,dd as jd,d0 as Qw,az as Zw,cU as eS,cp as tt,cx as lt,ex as tS,ey as rS,a2 as vi,a3 as hi,cr as aS,bd as Rc,cq as nS,ez as oS,eA as nh,eB as iS,eC as sS,eD as lS,eE as uS,P as Qe,by as jo,bF as cS,aX as dS,c0 as fS,a5 as pS,cG as Dd,c3 as vS,ct as hS,n as gS}from"./index-BVEjQW6X.js";import{u as mS}from"./useThemeProps-Cn2VtDjT.js";import{t as yS}from"./toPropertyKey-PLuKRk1e.js";import{a as bS,r as oh}from"./emotion-cache.browser.esm-BpTip9wY.js";import{e as wS,r as SS,l as $S}from"./index-8hrKL-co.js";import{c as xS,C as _S,a as TS,d as CS}from"./MoreVert-BtOLrVEi.js";import{R as PS,C as OS,V as RS,d as IS,a as ES}from"./ViewColumn-Sbl3OSg5.js";import{F as AS,f as jS,g as DS}from"./FormControl-DluiNcFf.js";import{u as kS}from"./useFormControl-CltInLkY.js";import{F as MS,f as LS,g as FS}from"./FormControlLabel-D9z183J8.js";import{F as BS,f as NS,g as HS}from"./FormGroup-BkwPM48V.js";import{G as US,g as WS,a as zS}from"./Grid-74xCjD8y.js";import{I as ih,g as GS,i as KS,a as VS,b as qS,c as YS,d as JS,e as XS,f as QS,S as sh,h as ZS,s as e$}from"./Select-BDwuIZTW.js";import{a as ac,D as t$,L as kd}from"./Delete-BEyOMTex.js";import{T as nc,g as r$,t as a$}from"./TextField-BBknTPUM.js";import{K as n$,a as o$}from"./index-C2HRoKva.js";import{F as i$,L as s$}from"./LastPage-B8Lhfg_Z.js";import{T as lh,g as l$,t as u$}from"./Toolbar-BJIHFP0u.js";import{S as c$,d as Md}from"./Search-Cgl4AQVg.js";import{E as Ld}from"./index-CE4C_D90.js";const Ic="mode",Ec="color-scheme",uh="data-color-scheme";function d$(e){const{defaultMode:t="light",defaultLightColorScheme:r="light",defaultDarkColorScheme:a="dark",modeStorageKey:n=Ic,colorSchemeStorageKey:i=Ec,attribute:c=uh,colorSchemeNode:v="document.documentElement",nonce:p}=e||{};return ee.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(function() {
2
2
  try {
3
3
  var mode = localStorage.getItem('${n}') || '${t}';
4
4
  var colorScheme = '';
@@ -1,4 +1,4 @@
1
- import{P as l,r as c,j as n,B as h,bo as $,a6 as A,dH as G,fr as Q,ae as U,aI as L,n as Y,di as J,cQ as Z,a4 as v}from"./index-DtdETaBU.js";import{d as ee}from"./Done-Cqnr64ll.js";import{C as te}from"./Google-2VzbESXy.js";import{T as ne}from"./TextField-BYIMGo2O.js";import{R as re,F as oe,L as se}from"./logo-uploader-FwiUnYYD.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($,{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(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: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"?G.getPassportColorFromDid(m.appDid):r;return n.jsxs(h,{display:"flex",alignItems:"center",children:[n.jsx("div",{style:{width:96,marginRight:12},dangerouslySetInnerHTML:{__html:Q({title:"Owner",issuer:U.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=Z`
1
+ import{P as l,r as c,j as n,B as h,bo as $,a6 as A,dH as G,fr as Q,ae as U,aI as L,n as Y,di as J,cQ as Z,a4 as v}from"./index-BVEjQW6X.js";import{d as ee}from"./Done-CkzFzrl_.js";import{C as te}from"./Google-BpnURrs_.js";import{T as ne}from"./TextField-BBknTPUM.js";import{R as re,F as oe,L as se}from"./logo-uploader-Bzsu_p4S.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($,{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(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: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"?G.getPassportColorFromDid(m.appDid):r;return n.jsxs(h,{display:"flex",alignItems:"center",children:[n.jsx("div",{style:{width:96,marginRight:12},dangerouslySetInnerHTML:{__html:Q({title:"Owner",issuer:U.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=Z`
2
2
  0%, 100% {
3
3
  transform: scale(1) translateX(0);
4
4
  }
@@ -1 +1 @@
1
- import{d as A,v as R,p as w,e as p}from"./index-D-G-CrJO.js";const O=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,x=/^[a-zA-Z]:\\/;function N(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return x.test(e)?!1:O.test(e)}const _=["http","https"],z=["nofollow"],L={};function T(e){const r=e||L,g=r.protocols||_,u=A(r.test);return function(h){R(h,"element",function(t,y,E){if(t.tagName==="a"&&typeof t.properties.href=="string"&&u(t,y,E)){const o=t.properties.href;if(N(o)?g.includes(o.slice(0,o.indexOf(":"))):o.startsWith("//")){const n=s(r.content,t),c=n&&!Array.isArray(n)?[n]:n,i=s(r.rel,t)||z,a=typeof i=="string"?w(i):i,f=s(r.target,t),l=s(r.properties,t);if(l&&Object.assign(t.properties,p(l)),a.length>0&&(t.properties.rel=[...a]),f&&(t.properties.target=f),c){const m=s(r.contentProperties,t)||{};t.children.push({type:"element",tagName:"span",properties:p(m),children:p(c)})}}}})}}function s(e,r){return typeof e=="function"?e(r):e}export{T as r};
1
+ import{d as A,v as R,p as w,e as p}from"./index-B5AvZ1yw.js";const O=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,x=/^[a-zA-Z]:\\/;function N(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return x.test(e)?!1:O.test(e)}const _=["http","https"],z=["nofollow"],L={};function T(e){const r=e||L,g=r.protocols||_,u=A(r.test);return function(h){R(h,"element",function(t,y,E){if(t.tagName==="a"&&typeof t.properties.href=="string"&&u(t,y,E)){const o=t.properties.href;if(N(o)?g.includes(o.slice(0,o.indexOf(":"))):o.startsWith("//")){const n=s(r.content,t),c=n&&!Array.isArray(n)?[n]:n,i=s(r.rel,t)||z,a=typeof i=="string"?w(i):i,f=s(r.target,t),l=s(r.properties,t);if(l&&Object.assign(t.properties,p(l)),a.length>0&&(t.properties.rel=[...a]),f&&(t.properties.target=f),c){const m=s(r.contentProperties,t)||{};t.children.push({type:"element",tagName:"span",properties:p(m),children:p(c)})}}}})}}function s(e,r){return typeof e=="function"?e(r):e}export{T as r};
@@ -1,4 +1,4 @@
1
- import{bd as c}from"./index-DtdETaBU.js";var i={exports:{}};/*!
1
+ import{bd as c}from"./index-BVEjQW6X.js";var i={exports:{}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
@@ -1,4 +1,4 @@
1
- import{j as e,T as i,bO as x,fu as c,by as p}from"./index-DtdETaBU.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")`
1
+ import{j as e,T as i,bO as x,fu as c,by as p}from"./index-BVEjQW6X.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;
@@ -1 +1 @@
1
- import{r as s,j as n,P as f,a7 as d}from"./index-DtdETaBU.js";var i={};Object.defineProperty(i,"__esModule",{value:!0});var c=i.default=void 0;H(s);var o=n;function H(C){return C&&C.__esModule?C:{default:C}}function u(C,e){var t=Object.keys(C);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(C);e&&(r=r.filter(function(p){return Object.getOwnPropertyDescriptor(C,p).enumerable})),t.push.apply(t,r)}return t}function a(C){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?u(Object(t),!0).forEach(function(r){V(C,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach(function(r){Object.defineProperty(C,r,Object.getOwnPropertyDescriptor(t,r))})}return C}function V(C,e,t){return(e=j(e))in C?Object.defineProperty(C,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):C[e]=t,C}function j(C){var e=y(C,"string");return typeof e=="symbol"?e:e+""}function y(C,e){if(typeof C!="object"||!C)return C;var t=C[Symbol.toPrimitive];if(t!==void 0){var r=t.call(C,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(C)}var l=function(e){return(0,o.jsxs)("svg",a(a({},e),{},{children:[(0,o.jsx)("path",{d:"M24.6042 2.26271L28.5233 0H42.7899V41.8617H28.7912C28.6157 41.8617 28.4433 41.8155 28.2912 41.7277L13.1882 33.0079L13.1882 8.85374L15.0055 7.80451L18.2055 9.65203L16.3882 10.7013V31.1604L29.3807 38.6617H39.5899V3.2H29.3807L27.8042 4.11023L24.6042 2.26271Z",fill:"currentColor"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.4018 31.1604V10.7013L13.4092 3.2H3.2V38.6617H13.4092L14.9906 37.7486L18.1906 39.5961L14.2666 41.8617H0V0H14.2666L29.6018 8.85374V33.0079L27.7893 34.0543L24.5893 32.2068L26.4018 31.1604Z",fill:"currentColor"}),(0,o.jsx)("path",{d:"M138.44 27.684C138.632 27.684 138.797 27.7587 138.936 27.908L140.28 29.38C139.341 30.4893 138.195 31.348 136.84 31.956C135.496 32.564 133.875 32.868 131.976 32.868C130.312 32.868 128.803 32.58 127.448 32.004C126.104 31.428 124.952 30.6227 123.992 29.588C123.043 28.5533 122.307 27.316 121.784 25.876C121.261 24.436 121 22.852 121 21.124C121 19.396 121.272 17.812 121.816 16.372C122.371 14.932 123.144 13.6947 124.136 12.66C125.128 11.6253 126.312 10.82 127.688 10.244C129.075 9.668 130.605 9.38 132.28 9.38C133.912 9.38 135.363 9.64666 136.632 10.18C137.901 10.7133 139.005 11.4227 139.944 12.308L138.824 13.892C138.749 14.0093 138.653 14.1053 138.536 14.18C138.429 14.2547 138.285 14.292 138.104 14.292C137.901 14.292 137.661 14.1907 137.384 13.988C137.117 13.7853 136.76 13.5613 136.312 13.316C135.875 13.06 135.331 12.8307 134.68 12.628C134.029 12.4253 133.219 12.324 132.248 12.324C131.107 12.324 130.061 12.5267 129.112 12.932C128.163 13.3267 127.341 13.9027 126.648 14.66C125.965 15.4067 125.432 16.3293 125.048 17.428C124.675 18.516 124.488 19.748 124.488 21.124C124.488 22.5213 124.685 23.764 125.08 24.852C125.475 25.94 126.019 26.8627 126.712 27.62C127.405 28.3773 128.221 28.9533 129.16 29.348C130.099 29.7427 131.112 29.94 132.2 29.94C132.861 29.94 133.453 29.9027 133.976 29.828C134.509 29.7427 134.995 29.62 135.432 29.46C135.88 29.3 136.301 29.0973 136.696 28.852C137.091 28.596 137.48 28.292 137.864 27.94C137.949 27.8653 138.04 27.8067 138.136 27.764C138.232 27.7107 138.333 27.684 138.44 27.684Z",fill:"currentColor"}),(0,o.jsx)("path",{d:"M149.68 16.1C150.875 16.1 151.952 16.2973 152.912 16.692C153.883 17.076 154.704 17.636 155.376 18.372C156.059 19.0973 156.581 19.9773 156.944 21.012C157.307 22.036 157.488 23.188 157.488 24.468C157.488 25.748 157.307 26.9053 156.944 27.94C156.581 28.9747 156.059 29.8547 155.376 30.58C154.704 31.3053 153.883 31.8653 152.912 32.26C151.952 32.644 150.875 32.836 149.68 32.836C148.475 32.836 147.387 32.644 146.416 32.26C145.456 31.8653 144.635 31.3053 143.952 30.58C143.269 29.8547 142.741 28.9747 142.368 27.94C142.005 26.9053 141.824 25.748 141.824 24.468C141.824 23.188 142.005 22.036 142.368 21.012C142.741 19.9773 143.269 19.0973 143.952 18.372C144.635 17.636 145.456 17.076 146.416 16.692C147.387 16.2973 148.475 16.1 149.68 16.1ZM149.68 30.404C151.216 30.404 152.363 29.8867 153.12 28.852C153.877 27.8173 154.256 26.3613 154.256 24.484C154.256 22.6067 153.877 21.1507 153.12 20.116C152.363 19.0707 151.216 18.548 149.68 18.548C148.123 18.548 146.96 19.0707 146.192 20.116C145.435 21.1507 145.056 22.6067 145.056 24.484C145.056 26.3613 145.435 27.8173 146.192 28.852C146.96 29.8867 148.123 30.404 149.68 30.404Z",fill:"currentColor"}),(0,o.jsx)("path",{d:"M163.899 18.612C164.251 18.2387 164.619 17.8973 165.003 17.588C165.387 17.2787 165.792 17.0173 166.219 16.804C166.656 16.58 167.12 16.4093 167.611 16.292C168.112 16.164 168.645 16.1 169.211 16.1C170.107 16.1 170.891 16.2493 171.563 16.548C172.245 16.8467 172.816 17.268 173.275 17.812C173.733 18.3453 174.08 18.9907 174.315 19.748C174.549 20.5053 174.667 21.3427 174.667 22.26V32.612H171.531V22.26C171.531 21.0973 171.264 20.196 170.731 19.556C170.197 18.9053 169.381 18.58 168.283 18.58C167.483 18.58 166.731 18.772 166.027 19.156C165.333 19.5293 164.688 20.0413 164.091 20.692V32.612H160.971V16.356H162.843C163.28 16.356 163.552 16.564 163.659 16.98L163.899 18.612Z",fill:"currentColor"}),(0,o.jsx)("path",{d:"M181.805 18.612C182.157 18.2387 182.525 17.8973 182.909 17.588C183.293 17.2787 183.698 17.0173 184.125 16.804C184.562 16.58 185.026 16.4093 185.517 16.292C186.018 16.164 186.552 16.1 187.117 16.1C188.013 16.1 188.797 16.2493 189.469 16.548C190.152 16.8467 190.722 17.268 191.181 17.812C191.64 18.3453 191.986 18.9907 192.221 19.748C192.456 20.5053 192.573 21.3427 192.573 22.26V32.612H189.437V22.26C189.437 21.0973 189.17 20.196 188.637 19.556C188.104 18.9053 187.288 18.58 186.189 18.58C185.389 18.58 184.637 18.772 183.933 19.156C183.24 19.5293 182.594 20.0413 181.997 20.692V32.612H178.877V16.356H180.749C181.186 16.356 181.458 16.564 181.565 16.98L181.805 18.612Z",fill:"currentColor"}),(0,o.jsx)("path",{d:"M207.551 22.676C207.551 22.0573 207.461 21.4867 207.279 20.964C207.109 20.4413 206.853 19.988 206.511 19.604C206.17 19.22 205.754 18.9213 205.263 18.708C204.773 18.4947 204.207 18.388 203.567 18.388C202.255 18.388 201.221 18.7667 200.463 19.524C199.717 20.2813 199.242 21.332 199.039 22.676H207.551ZM210.127 30.292C209.743 30.74 209.301 31.1293 208.799 31.46C208.298 31.78 207.765 32.0413 207.199 32.244C206.634 32.4467 206.047 32.596 205.439 32.692C204.842 32.788 204.25 32.836 203.663 32.836C202.543 32.836 201.503 32.6493 200.543 32.276C199.594 31.892 198.767 31.3373 198.063 30.612C197.37 29.876 196.826 28.9693 196.431 27.892C196.047 26.804 195.855 25.556 195.855 24.148C195.855 23.0173 196.031 21.9667 196.383 20.996C196.735 20.0147 197.237 19.1613 197.887 18.436C198.549 17.7107 199.354 17.14 200.303 16.724C201.253 16.308 202.319 16.1 203.503 16.1C204.495 16.1 205.407 16.2653 206.239 16.596C207.082 16.916 207.807 17.3853 208.415 18.004C209.023 18.6227 209.498 19.3853 209.839 20.292C210.191 21.1987 210.367 22.2333 210.367 23.396C210.367 23.876 210.314 24.2013 210.207 24.372C210.101 24.532 209.903 24.612 209.615 24.612H198.959C198.991 25.5827 199.13 26.4307 199.375 27.156C199.621 27.8707 199.957 28.468 200.383 28.948C200.821 29.428 201.338 29.7853 201.935 30.02C202.533 30.2547 203.199 30.372 203.935 30.372C204.629 30.372 205.226 30.292 205.727 30.132C206.239 29.972 206.677 29.8013 207.039 29.62C207.413 29.428 207.722 29.252 207.967 29.092C208.223 28.932 208.447 28.852 208.639 28.852C208.895 28.852 209.093 28.948 209.231 29.14L210.127 30.292Z",fill:"currentColor"}),(0,o.jsx)("path",{d:"M225.113 19.396C225.017 19.5133 224.921 19.6093 224.825 19.684C224.739 19.748 224.611 19.78 224.441 19.78C224.27 19.78 224.089 19.716 223.897 19.588C223.715 19.4493 223.481 19.3053 223.193 19.156C222.915 18.996 222.574 18.852 222.169 18.724C221.774 18.5853 221.283 18.516 220.697 18.516C219.929 18.516 219.251 18.6547 218.665 18.932C218.078 19.2093 217.587 19.604 217.193 20.116C216.809 20.628 216.515 21.252 216.313 21.988C216.11 22.724 216.009 23.5507 216.009 24.468C216.009 25.4173 216.115 26.2653 216.329 27.012C216.542 27.748 216.846 28.372 217.241 28.884C217.635 29.3853 218.115 29.7693 218.681 30.036C219.246 30.292 219.875 30.42 220.569 30.42C221.241 30.42 221.795 30.34 222.233 30.18C222.67 30.0093 223.033 29.828 223.321 29.636C223.609 29.444 223.849 29.268 224.041 29.108C224.233 28.9373 224.43 28.852 224.633 28.852C224.889 28.852 225.086 28.948 225.225 29.14L226.121 30.292C225.747 30.7507 225.326 31.14 224.857 31.46C224.398 31.78 223.907 32.0413 223.385 32.244C222.862 32.4467 222.313 32.596 221.737 32.692C221.171 32.788 220.595 32.836 220.009 32.836C218.995 32.836 218.046 32.6493 217.161 32.276C216.286 31.9027 215.523 31.3587 214.873 30.644C214.233 29.9293 213.726 29.0547 213.353 28.02C212.979 26.9747 212.793 25.7907 212.793 24.468C212.793 23.2627 212.958 22.148 213.289 21.124C213.63 20.1 214.126 19.22 214.777 18.484C215.438 17.7373 216.249 17.156 217.209 16.74C218.169 16.3133 219.267 16.1 220.505 16.1C221.667 16.1 222.691 16.2867 223.577 16.66C224.462 17.0333 225.251 17.5613 225.945 18.244L225.113 19.396Z",fill:"currentColor"}),(0,o.jsx)("path",{d:"M234.121 32.868C232.809 32.868 231.796 32.5 231.081 31.764C230.377 31.028 230.025 29.9773 230.025 28.612V18.884H228.137C227.956 18.884 227.801 18.8307 227.673 18.724C227.556 18.6067 227.497 18.436 227.497 18.212V16.948L230.137 16.58L230.841 11.732C230.884 11.5507 230.964 11.412 231.081 11.316C231.209 11.2093 231.369 11.156 231.561 11.156H233.145V16.612H237.753V18.884H233.145V28.404C233.145 29.044 233.3 29.524 233.609 29.844C233.929 30.1533 234.335 30.308 234.825 30.308C235.113 30.308 235.359 30.2707 235.561 30.196C235.775 30.1213 235.956 30.0413 236.105 29.956C236.255 29.86 236.383 29.7747 236.489 29.7C236.596 29.6253 236.692 29.588 236.777 29.588C236.884 29.588 236.964 29.6147 237.017 29.668C237.081 29.7107 237.145 29.7853 237.209 29.892L238.137 31.396C237.625 31.8653 237.017 32.228 236.313 32.484C235.609 32.74 234.879 32.868 234.121 32.868Z",fill:"currentColor"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.8154 33.2842V9H70.6597C73.9281 9.22427 76.4828 11.9486 76.4828 15.2433V27.026C76.4828 30.4823 73.6809 33.2842 70.2246 33.2842H57.8154ZM84.5586 9H81.2237V33.3211H84.5586V9ZM61.1503 29.9493V12.32H70.2246C71.8391 12.32 73.1479 13.6288 73.1479 15.2433V27.026C73.1479 28.6405 71.8391 29.9493 70.2246 29.9493H61.1503ZM89.2432 9V33.2842H101.652C105.109 33.2842 107.911 30.4823 107.911 27.026V15.2433C107.911 11.9486 105.356 9.22427 102.087 9H89.2432ZM112.155 14.6355H115.883V18.3639H112.155V14.6355ZM115.883 23.9572H112.155V27.6856H115.883V23.9572ZM92.5781 12.32V29.9493H101.652C103.267 29.9493 104.576 28.6405 104.576 27.026V15.2433C104.576 13.6288 103.267 12.32 101.652 12.32H92.5781Z",fill:"currentColor"})]}))};l.defaultProps={width:"239",height:"42",viewBox:"0 0 239 42",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};l.displayName="connect-logo";c=i.default=l;function h({children:C=null,...e}){return n.jsxs(d,{color:"did",variant:"contained",...e,children:[n.jsx("span",{style:{fontWeight:400},children:C||"Continue With"}),n.jsx(c,{style:{width:"auto",height:"1.2em",margin:"0 4px 0 8px"}})]})}h.propTypes={children:f.any};export{h as C};
1
+ import{r as s,j as n,P as f,a7 as d}from"./index-BVEjQW6X.js";var i={};Object.defineProperty(i,"__esModule",{value:!0});var c=i.default=void 0;H(s);var o=n;function H(C){return C&&C.__esModule?C:{default:C}}function u(C,e){var t=Object.keys(C);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(C);e&&(r=r.filter(function(p){return Object.getOwnPropertyDescriptor(C,p).enumerable})),t.push.apply(t,r)}return t}function a(C){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?u(Object(t),!0).forEach(function(r){V(C,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach(function(r){Object.defineProperty(C,r,Object.getOwnPropertyDescriptor(t,r))})}return C}function V(C,e,t){return(e=j(e))in C?Object.defineProperty(C,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):C[e]=t,C}function j(C){var e=y(C,"string");return typeof e=="symbol"?e:e+""}function y(C,e){if(typeof C!="object"||!C)return C;var t=C[Symbol.toPrimitive];if(t!==void 0){var r=t.call(C,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(C)}var l=function(e){return(0,o.jsxs)("svg",a(a({},e),{},{children:[(0,o.jsx)("path",{d:"M24.6042 2.26271L28.5233 0H42.7899V41.8617H28.7912C28.6157 41.8617 28.4433 41.8155 28.2912 41.7277L13.1882 33.0079L13.1882 8.85374L15.0055 7.80451L18.2055 9.65203L16.3882 10.7013V31.1604L29.3807 38.6617H39.5899V3.2H29.3807L27.8042 4.11023L24.6042 2.26271Z",fill:"currentColor"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.4018 31.1604V10.7013L13.4092 3.2H3.2V38.6617H13.4092L14.9906 37.7486L18.1906 39.5961L14.2666 41.8617H0V0H14.2666L29.6018 8.85374V33.0079L27.7893 34.0543L24.5893 32.2068L26.4018 31.1604Z",fill:"currentColor"}),(0,o.jsx)("path",{d:"M138.44 27.684C138.632 27.684 138.797 27.7587 138.936 27.908L140.28 29.38C139.341 30.4893 138.195 31.348 136.84 31.956C135.496 32.564 133.875 32.868 131.976 32.868C130.312 32.868 128.803 32.58 127.448 32.004C126.104 31.428 124.952 30.6227 123.992 29.588C123.043 28.5533 122.307 27.316 121.784 25.876C121.261 24.436 121 22.852 121 21.124C121 19.396 121.272 17.812 121.816 16.372C122.371 14.932 123.144 13.6947 124.136 12.66C125.128 11.6253 126.312 10.82 127.688 10.244C129.075 9.668 130.605 9.38 132.28 9.38C133.912 9.38 135.363 9.64666 136.632 10.18C137.901 10.7133 139.005 11.4227 139.944 12.308L138.824 13.892C138.749 14.0093 138.653 14.1053 138.536 14.18C138.429 14.2547 138.285 14.292 138.104 14.292C137.901 14.292 137.661 14.1907 137.384 13.988C137.117 13.7853 136.76 13.5613 136.312 13.316C135.875 13.06 135.331 12.8307 134.68 12.628C134.029 12.4253 133.219 12.324 132.248 12.324C131.107 12.324 130.061 12.5267 129.112 12.932C128.163 13.3267 127.341 13.9027 126.648 14.66C125.965 15.4067 125.432 16.3293 125.048 17.428C124.675 18.516 124.488 19.748 124.488 21.124C124.488 22.5213 124.685 23.764 125.08 24.852C125.475 25.94 126.019 26.8627 126.712 27.62C127.405 28.3773 128.221 28.9533 129.16 29.348C130.099 29.7427 131.112 29.94 132.2 29.94C132.861 29.94 133.453 29.9027 133.976 29.828C134.509 29.7427 134.995 29.62 135.432 29.46C135.88 29.3 136.301 29.0973 136.696 28.852C137.091 28.596 137.48 28.292 137.864 27.94C137.949 27.8653 138.04 27.8067 138.136 27.764C138.232 27.7107 138.333 27.684 138.44 27.684Z",fill:"currentColor"}),(0,o.jsx)("path",{d:"M149.68 16.1C150.875 16.1 151.952 16.2973 152.912 16.692C153.883 17.076 154.704 17.636 155.376 18.372C156.059 19.0973 156.581 19.9773 156.944 21.012C157.307 22.036 157.488 23.188 157.488 24.468C157.488 25.748 157.307 26.9053 156.944 27.94C156.581 28.9747 156.059 29.8547 155.376 30.58C154.704 31.3053 153.883 31.8653 152.912 32.26C151.952 32.644 150.875 32.836 149.68 32.836C148.475 32.836 147.387 32.644 146.416 32.26C145.456 31.8653 144.635 31.3053 143.952 30.58C143.269 29.8547 142.741 28.9747 142.368 27.94C142.005 26.9053 141.824 25.748 141.824 24.468C141.824 23.188 142.005 22.036 142.368 21.012C142.741 19.9773 143.269 19.0973 143.952 18.372C144.635 17.636 145.456 17.076 146.416 16.692C147.387 16.2973 148.475 16.1 149.68 16.1ZM149.68 30.404C151.216 30.404 152.363 29.8867 153.12 28.852C153.877 27.8173 154.256 26.3613 154.256 24.484C154.256 22.6067 153.877 21.1507 153.12 20.116C152.363 19.0707 151.216 18.548 149.68 18.548C148.123 18.548 146.96 19.0707 146.192 20.116C145.435 21.1507 145.056 22.6067 145.056 24.484C145.056 26.3613 145.435 27.8173 146.192 28.852C146.96 29.8867 148.123 30.404 149.68 30.404Z",fill:"currentColor"}),(0,o.jsx)("path",{d:"M163.899 18.612C164.251 18.2387 164.619 17.8973 165.003 17.588C165.387 17.2787 165.792 17.0173 166.219 16.804C166.656 16.58 167.12 16.4093 167.611 16.292C168.112 16.164 168.645 16.1 169.211 16.1C170.107 16.1 170.891 16.2493 171.563 16.548C172.245 16.8467 172.816 17.268 173.275 17.812C173.733 18.3453 174.08 18.9907 174.315 19.748C174.549 20.5053 174.667 21.3427 174.667 22.26V32.612H171.531V22.26C171.531 21.0973 171.264 20.196 170.731 19.556C170.197 18.9053 169.381 18.58 168.283 18.58C167.483 18.58 166.731 18.772 166.027 19.156C165.333 19.5293 164.688 20.0413 164.091 20.692V32.612H160.971V16.356H162.843C163.28 16.356 163.552 16.564 163.659 16.98L163.899 18.612Z",fill:"currentColor"}),(0,o.jsx)("path",{d:"M181.805 18.612C182.157 18.2387 182.525 17.8973 182.909 17.588C183.293 17.2787 183.698 17.0173 184.125 16.804C184.562 16.58 185.026 16.4093 185.517 16.292C186.018 16.164 186.552 16.1 187.117 16.1C188.013 16.1 188.797 16.2493 189.469 16.548C190.152 16.8467 190.722 17.268 191.181 17.812C191.64 18.3453 191.986 18.9907 192.221 19.748C192.456 20.5053 192.573 21.3427 192.573 22.26V32.612H189.437V22.26C189.437 21.0973 189.17 20.196 188.637 19.556C188.104 18.9053 187.288 18.58 186.189 18.58C185.389 18.58 184.637 18.772 183.933 19.156C183.24 19.5293 182.594 20.0413 181.997 20.692V32.612H178.877V16.356H180.749C181.186 16.356 181.458 16.564 181.565 16.98L181.805 18.612Z",fill:"currentColor"}),(0,o.jsx)("path",{d:"M207.551 22.676C207.551 22.0573 207.461 21.4867 207.279 20.964C207.109 20.4413 206.853 19.988 206.511 19.604C206.17 19.22 205.754 18.9213 205.263 18.708C204.773 18.4947 204.207 18.388 203.567 18.388C202.255 18.388 201.221 18.7667 200.463 19.524C199.717 20.2813 199.242 21.332 199.039 22.676H207.551ZM210.127 30.292C209.743 30.74 209.301 31.1293 208.799 31.46C208.298 31.78 207.765 32.0413 207.199 32.244C206.634 32.4467 206.047 32.596 205.439 32.692C204.842 32.788 204.25 32.836 203.663 32.836C202.543 32.836 201.503 32.6493 200.543 32.276C199.594 31.892 198.767 31.3373 198.063 30.612C197.37 29.876 196.826 28.9693 196.431 27.892C196.047 26.804 195.855 25.556 195.855 24.148C195.855 23.0173 196.031 21.9667 196.383 20.996C196.735 20.0147 197.237 19.1613 197.887 18.436C198.549 17.7107 199.354 17.14 200.303 16.724C201.253 16.308 202.319 16.1 203.503 16.1C204.495 16.1 205.407 16.2653 206.239 16.596C207.082 16.916 207.807 17.3853 208.415 18.004C209.023 18.6227 209.498 19.3853 209.839 20.292C210.191 21.1987 210.367 22.2333 210.367 23.396C210.367 23.876 210.314 24.2013 210.207 24.372C210.101 24.532 209.903 24.612 209.615 24.612H198.959C198.991 25.5827 199.13 26.4307 199.375 27.156C199.621 27.8707 199.957 28.468 200.383 28.948C200.821 29.428 201.338 29.7853 201.935 30.02C202.533 30.2547 203.199 30.372 203.935 30.372C204.629 30.372 205.226 30.292 205.727 30.132C206.239 29.972 206.677 29.8013 207.039 29.62C207.413 29.428 207.722 29.252 207.967 29.092C208.223 28.932 208.447 28.852 208.639 28.852C208.895 28.852 209.093 28.948 209.231 29.14L210.127 30.292Z",fill:"currentColor"}),(0,o.jsx)("path",{d:"M225.113 19.396C225.017 19.5133 224.921 19.6093 224.825 19.684C224.739 19.748 224.611 19.78 224.441 19.78C224.27 19.78 224.089 19.716 223.897 19.588C223.715 19.4493 223.481 19.3053 223.193 19.156C222.915 18.996 222.574 18.852 222.169 18.724C221.774 18.5853 221.283 18.516 220.697 18.516C219.929 18.516 219.251 18.6547 218.665 18.932C218.078 19.2093 217.587 19.604 217.193 20.116C216.809 20.628 216.515 21.252 216.313 21.988C216.11 22.724 216.009 23.5507 216.009 24.468C216.009 25.4173 216.115 26.2653 216.329 27.012C216.542 27.748 216.846 28.372 217.241 28.884C217.635 29.3853 218.115 29.7693 218.681 30.036C219.246 30.292 219.875 30.42 220.569 30.42C221.241 30.42 221.795 30.34 222.233 30.18C222.67 30.0093 223.033 29.828 223.321 29.636C223.609 29.444 223.849 29.268 224.041 29.108C224.233 28.9373 224.43 28.852 224.633 28.852C224.889 28.852 225.086 28.948 225.225 29.14L226.121 30.292C225.747 30.7507 225.326 31.14 224.857 31.46C224.398 31.78 223.907 32.0413 223.385 32.244C222.862 32.4467 222.313 32.596 221.737 32.692C221.171 32.788 220.595 32.836 220.009 32.836C218.995 32.836 218.046 32.6493 217.161 32.276C216.286 31.9027 215.523 31.3587 214.873 30.644C214.233 29.9293 213.726 29.0547 213.353 28.02C212.979 26.9747 212.793 25.7907 212.793 24.468C212.793 23.2627 212.958 22.148 213.289 21.124C213.63 20.1 214.126 19.22 214.777 18.484C215.438 17.7373 216.249 17.156 217.209 16.74C218.169 16.3133 219.267 16.1 220.505 16.1C221.667 16.1 222.691 16.2867 223.577 16.66C224.462 17.0333 225.251 17.5613 225.945 18.244L225.113 19.396Z",fill:"currentColor"}),(0,o.jsx)("path",{d:"M234.121 32.868C232.809 32.868 231.796 32.5 231.081 31.764C230.377 31.028 230.025 29.9773 230.025 28.612V18.884H228.137C227.956 18.884 227.801 18.8307 227.673 18.724C227.556 18.6067 227.497 18.436 227.497 18.212V16.948L230.137 16.58L230.841 11.732C230.884 11.5507 230.964 11.412 231.081 11.316C231.209 11.2093 231.369 11.156 231.561 11.156H233.145V16.612H237.753V18.884H233.145V28.404C233.145 29.044 233.3 29.524 233.609 29.844C233.929 30.1533 234.335 30.308 234.825 30.308C235.113 30.308 235.359 30.2707 235.561 30.196C235.775 30.1213 235.956 30.0413 236.105 29.956C236.255 29.86 236.383 29.7747 236.489 29.7C236.596 29.6253 236.692 29.588 236.777 29.588C236.884 29.588 236.964 29.6147 237.017 29.668C237.081 29.7107 237.145 29.7853 237.209 29.892L238.137 31.396C237.625 31.8653 237.017 32.228 236.313 32.484C235.609 32.74 234.879 32.868 234.121 32.868Z",fill:"currentColor"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.8154 33.2842V9H70.6597C73.9281 9.22427 76.4828 11.9486 76.4828 15.2433V27.026C76.4828 30.4823 73.6809 33.2842 70.2246 33.2842H57.8154ZM84.5586 9H81.2237V33.3211H84.5586V9ZM61.1503 29.9493V12.32H70.2246C71.8391 12.32 73.1479 13.6288 73.1479 15.2433V27.026C73.1479 28.6405 71.8391 29.9493 70.2246 29.9493H61.1503ZM89.2432 9V33.2842H101.652C105.109 33.2842 107.911 30.4823 107.911 27.026V15.2433C107.911 11.9486 105.356 9.22427 102.087 9H89.2432ZM112.155 14.6355H115.883V18.3639H112.155V14.6355ZM115.883 23.9572H112.155V27.6856H115.883V23.9572ZM92.5781 12.32V29.9493H101.652C103.267 29.9493 104.576 28.6405 104.576 27.026V15.2433C104.576 13.6288 103.267 12.32 101.652 12.32H92.5781Z",fill:"currentColor"})]}))};l.defaultProps={width:"239",height:"42",viewBox:"0 0 239 42",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};l.displayName="connect-logo";c=i.default=l;function h({children:C=null,...e}){return n.jsxs(d,{color:"did",variant:"contained",...e,children:[n.jsx("span",{style:{fontWeight:400},children:C||"Continue With"}),n.jsx(c,{style:{width:"auto",height:"1.2em",margin:"0 4px 0 8px"}})]})}h.propTypes={children:f.any};export{h as C};