@abtnode/webapp 1.16.44-beta-20250516-225119-c0b5ec8d → 1.16.44-beta-20250520-004606-6cd8a0d3

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 (236) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{AdapterDayjs-Hu_1QWFw.js → AdapterDayjs-C79-iXnA.js} +6 -6
  4. package/dist/assets/{Add-B-whK8Og.js → Add-Dr17acvQ.js} +1 -1
  5. package/dist/assets/{ArrowDropDown-D24TTMvH.js → ArrowDropDown-BeVQ7W_f.js} +1 -1
  6. package/dist/assets/{Autocomplete-CHlN80bM.js → Autocomplete-Dxuf1ndW.js} +1 -1
  7. package/dist/assets/{Breadcrumbs-Do80FKEd.js → Breadcrumbs-m3ZWWS-Y.js} +1 -1
  8. package/dist/assets/{ButtonGroup-BJpKQaa5.js → ButtonGroup-D8iCR_UA.js} +1 -1
  9. package/dist/assets/{CSSTransition-CL3Ps2jl.js → CSSTransition-DMBk20B6.js} +1 -1
  10. package/dist/assets/{CallMerge-6gNoogQf.js → CallMerge-CuhH8Rfn.js} +1 -1
  11. package/dist/assets/CardContent-BhT4vmBc.js +1 -0
  12. package/dist/assets/{ChevronLeft-DCgw7PVK.js → ChevronLeft-DRnsqgri.js} +1 -1
  13. package/dist/assets/{ChevronRight-BkDmz6Jp.js → ChevronRight-BUxNE2e8.js} +1 -1
  14. package/dist/assets/{Clear-CH1dCzcl.js → Clear-DiiXyvpY.js} +1 -1
  15. package/dist/assets/{Close-qBNbi4Ug.js → Close-Cx2b036Y.js} +1 -1
  16. package/dist/assets/{Community-C7i42E2Q.js → Community-DT6H5xHG.js} +1 -1
  17. package/dist/assets/{Delete-CgPI_eC5.js → Delete-Db12JNaW.js} +1 -1
  18. package/dist/assets/{Delete-DliA3mdg.js → Delete-DibgMbRa.js} +1 -1
  19. package/dist/assets/{DeleteOutline-Cx4fsGxu.js → DeleteOutline-vkCr-A0J.js} +1 -1
  20. package/dist/assets/{Done-DNcp5cRU.js → Done-CDp0yF_G.js} +1 -1
  21. package/dist/assets/{Edit-WMHj4INs.js → Edit-CQIAI4Xx.js} +1 -1
  22. package/dist/assets/{ErrorOutline-CBbwlMhr.js → ErrorOutline-DCAxmStN.js} +1 -1
  23. package/dist/assets/{HelpOutline-9IHMC0WQ.js → HelpOutline-4rllQwkH.js} +1 -1
  24. package/dist/assets/{Holiday-C8LY8_Xa.js → Holiday-Bhfc8ari.js} +1 -1
  25. package/dist/assets/{Launch-Dw-I3nnd.js → Launch-Dss7Qu-X.js} +1 -1
  26. package/dist/assets/{Link-e5N_7Dtu.js → Link-BL98xVyl.js} +1 -1
  27. package/dist/assets/{ListItemButton-glXjZswW.js → ListItemButton-CalO7fFj.js} +1 -1
  28. package/dist/assets/{ListSubheader-q3nAde5e.js → ListSubheader-CZoW0Yjm.js} +1 -1
  29. package/dist/assets/{LoadingButton-BXZL61GP.js → LoadingButton-C1tBqNRZ.js} +1 -1
  30. package/dist/assets/{LockIcon-BJD4BUmY.js → LockIcon-BIs3NFsi.js} +1 -1
  31. package/dist/assets/{Meeting-Bzs1L390.js → Meeting-DElinHPN.js} +1 -1
  32. package/dist/assets/{MoreHoriz-BPa-vzup.js → MoreHoriz-BamWxTeP.js} +1 -1
  33. package/dist/assets/{MoreVert-ygAE5zXH.js → MoreVert-BrdZPzwo.js} +1 -1
  34. package/dist/assets/{OffSick-CzZuC8-v.js → OffSick-PL_bKC4S.js} +1 -1
  35. package/dist/assets/{OpenInNew-BIkhjwqJ.js → OpenInNew-DXZU9TBc.js} +1 -1
  36. package/dist/assets/{Public-Dxdvvihr.js → Public-Dr1m2N7G.js} +1 -1
  37. package/dist/assets/{Refresh-9g5ukYUh.js → Refresh-VxrYYzfd.js} +1 -1
  38. package/dist/assets/{SchemaReference.es-rTtLb9nE.js → SchemaReference.es-Bm8CNcXG.js} +1 -1
  39. package/dist/assets/{Search-BWfKoeW0.js → Search-DqihVCic.js} +1 -1
  40. package/dist/assets/{Slider-X_Dbeb_B.js → Slider-B8HWvhga.js} +1 -1
  41. package/dist/assets/{Stepper-CAwK24YR.js → Stepper-BCrOaECo.js} +1 -1
  42. package/dist/assets/{Switch-B_ZA3R4H.js → Switch-CIGEpWB6.js} +1 -1
  43. package/dist/assets/{TableRow-LUYIbYYH.js → TableRow-DSBApqUZ.js} +1 -1
  44. package/dist/assets/{TableSearch-DryNoX9z.js → TableSearch-C3sQDzER.js} +1 -1
  45. package/dist/assets/{ToggleButtonGroup-vsVyuLtl.js → ToggleButtonGroup-2wE1N-s9.js} +1 -1
  46. package/dist/assets/{Verified-BDGlFDHV.js → Verified-DAT8F9n5.js} +1 -1
  47. package/dist/assets/{VerifiedUser-CahjDQlN.js → VerifiedUser-BzqFFroG.js} +1 -1
  48. package/dist/assets/{ViewColumn-Y-NBF0dy.js → ViewColumn-DZ8hNz9g.js} +1 -1
  49. package/dist/assets/{ViewList-Bd5d0iY_.js → ViewList-B52x_JLH.js} +1 -1
  50. package/dist/assets/{WorkingRemotely-9hVl1hvM.js → WorkingRemotely-Cr2dx3vw.js} +1 -1
  51. package/dist/assets/{_createAggregator-DLtLS5ot.js → _createAggregator-CtUq-Bm1.js} +1 -1
  52. package/dist/assets/{actions-BhwFbvNf.js → actions-CSIY5MjI.js} +1 -1
  53. package/dist/assets/{actions-CQrliwxs.js → actions-pkMFjLzT.js} +2 -2
  54. package/dist/assets/{agreement-DOCzlZYK.js → agreement-D5AaipUa.js} +5 -5
  55. package/dist/assets/api-CWQIMtn6.js +1 -0
  56. package/dist/assets/{appearance-Bj48z57w.js → appearance-Rsnizthu.js} +1 -1
  57. package/dist/assets/{ar-2yn9i2dw.js → ar-C_INBNFD.js} +1 -1
  58. package/dist/assets/{audit-logs-DZxZnVwe.js → audit-logs-DuYx96S8.js} +1 -1
  59. package/dist/assets/blocklet-Ca7hIY9r.js +1 -0
  60. package/dist/assets/{brace-fold.es-CwvOFnq9.js → brace-fold.es-BbuUT1bx.js} +1 -1
  61. package/dist/assets/{chain-DW6-BOPV.js → chain-lJbBI8lt.js} +2 -2
  62. package/dist/assets/{click-to-copy-NkGN8EyZ.js → click-to-copy-DunM7RYV.js} +1 -1
  63. package/dist/assets/cloneDeep-B7rgkTOg.js +1 -0
  64. package/dist/assets/{closebrackets.es-DrjVd75R.js → closebrackets.es-iBNy7XLq.js} +1 -1
  65. package/dist/assets/{codemirror.es-DQ3ePCqU.js → codemirror.es-olwlvV8O.js} +1 -1
  66. package/dist/assets/{collapse-FkL4URhV.js → collapse-pVfCVGsT.js} +1 -1
  67. package/dist/assets/{comment.es-DlV3kW-O.js → comment.es-CYuI6LGK.js} +1 -1
  68. package/dist/assets/{config-navigation-BijLYy-F.js → config-navigation-DCerXksA.js} +3 -3
  69. package/dist/assets/{connect-to-Vc7E5-UM.js → connect-to-PXHcA1x_.js} +1 -1
  70. package/dist/assets/{de-CEKbJD3-.js → de-EYXdEi3Y.js} +1 -1
  71. package/dist/assets/{delete-confirm-WhK8nGuj.js → delete-confirm-CKJM7oLk.js} +1 -1
  72. package/dist/assets/{detail-Df6H4ZPs.js → detail-Dg3I6B4n.js} +3 -3
  73. package/dist/assets/{dialog.es-xMJKI9Lh.js → dialog.es-D824_H5X.js} +1 -1
  74. package/dist/assets/domains-NOopC5Rf.js +28 -0
  75. package/dist/assets/{download-BLbVLPTB.js → download-B2axstvn.js} +1 -1
  76. package/dist/assets/emotion-react.browser.esm-CH67Z3jf.js +1 -0
  77. package/dist/assets/{es-dvMygD-W.js → es-3jqVamM8.js} +1 -1
  78. package/dist/assets/{foldgutter.es-B_-xDjtB.js → foldgutter.es-9QgJOpar.js} +1 -1
  79. package/dist/assets/{fr-BvFd5xp9.js → fr-CUcR-yNv.js} +1 -1
  80. package/dist/assets/{get-safe-url-BJSiqBsp.js → get-safe-url-BswgeNVU.js} +1 -1
  81. package/dist/assets/{get-safe-url-M6nGqKp3.js → get-safe-url-BwrYOF2l.js} +1 -1
  82. package/dist/assets/getValidReactChildren-2WQ5-6h6.js +1 -0
  83. package/dist/assets/hi-DNldhMTl.js +5 -0
  84. package/dist/assets/{hint.es-Du2uNLDf.js → hint.es-Bg3Bg91x.js} +1 -1
  85. package/dist/assets/{hint.es2-DfyQQrQH.js → hint.es2-CtVGSKy-.js} +1 -1
  86. package/dist/assets/{id-B1Mq_eQI.js → id-CmSIFhX-.js} +1 -1
  87. package/dist/assets/{iframe-uzgOIcHS.js → iframe-D8EuM9FZ.js} +1 -1
  88. package/dist/assets/{index-Bb_ZoBt1.js → index-1fHL4NLA.js} +1 -1
  89. package/dist/assets/{index-CED3Eqhn.js → index-3hUI0XWj.js} +1 -1
  90. package/dist/assets/{index-M-c0W-SQ.js → index-7AfdoVCB.js} +1 -1
  91. package/dist/assets/{index-2NLfrlha.js → index-9SxmA2ZK.js} +1 -1
  92. package/dist/assets/{index-YTaSOOwL.js → index-B1T9zVyF.js} +1 -1
  93. package/dist/assets/{index-DrUjokqV.js → index-BSVtXZA5.js} +1 -1
  94. package/dist/assets/{index-Bmtcygi9.js → index-Bd6-uEej.js} +4 -4
  95. package/dist/assets/{index-Ducl-yvK.js → index-BgfI9oqP.js} +4 -4
  96. package/dist/assets/{index-DANmjPqe.js → index-BmTru3ER.js} +1 -1
  97. package/dist/assets/{index-idlXfnJU.js → index-BsaFIq1a.js} +1 -1
  98. package/dist/assets/{index-DX3h3jsX.js → index-BwcQ-v7n.js} +1 -1
  99. package/dist/assets/index-C1AeyTeh.js +1 -0
  100. package/dist/assets/{index-BkYiBMUu.js → index-C3nC1vZU.js} +1 -1
  101. package/dist/assets/index-C4GlctnC.js +87 -0
  102. package/dist/assets/{index-DTI4BkNW.js → index-CGargw6n.js} +9 -9
  103. package/dist/assets/{index-DgMghQir.js → index-CL9Vrgs0.js} +1 -1
  104. package/dist/assets/{index-BACNAzdg.js → index-CMAKmzMc.js} +11 -11
  105. package/dist/assets/{index-ChGWeAoT.js → index-CMPNSvEP.js} +1 -1
  106. package/dist/assets/{index-CjFBhX6R.js → index-CR29WT8-.js} +1 -1
  107. package/dist/assets/{index-DutylRlW.js → index-CRLGpfQP.js} +1 -1
  108. package/dist/assets/index-CT5y3MWl.js +155 -0
  109. package/dist/assets/{index-DuODXdGq.js → index-CVvuXYj2.js} +3 -3
  110. package/dist/assets/{index-Bq85UHN2.js → index-Cnc4xzOD.js} +1 -1
  111. package/dist/assets/{index-CjBp95Te.js → index-CrtwGdrB.js} +1 -1
  112. package/dist/assets/{index-SqBYmqJv.js → index-D2Z-mQN5.js} +3 -3
  113. package/dist/assets/{index-DKUpJiTq.js → index-D9LzJ8Wk.js} +12 -12
  114. package/dist/assets/index-D9dQPWQL.js +1 -0
  115. package/dist/assets/{index-Bo-N9ZZS.js → index-DDhjA_J6.js} +1 -1
  116. package/dist/assets/{index-DQIKAMuC.js → index-DJo_NuyL.js} +1 -1
  117. package/dist/assets/{index-DqvSsunq.js → index-DO0xkQta.js} +17 -17
  118. package/dist/assets/{index-Api0RkD_.js → index-DQsQI7y-.js} +1 -1
  119. package/dist/assets/index-DYNPc0x8.js +109 -0
  120. package/dist/assets/{index-B8GS99Wr.js → index-DjuHtL5I.js} +1 -1
  121. package/dist/assets/{index-hJGrUWVV.js → index-Dl2gy2lk.js} +1 -1
  122. package/dist/assets/{index-yA3tM1jB.js → index-DmdIxVQV.js} +1 -1
  123. package/dist/assets/{index-DMDws1yA.js → index-EiK_j914.js} +1 -1
  124. package/dist/assets/{index-CgUGS_Zn.js → index-GsLKPFh7.js} +5 -5
  125. package/dist/assets/{index-DY0rnIvQ.js → index-JLvEb6lq.js} +1 -1
  126. package/dist/assets/{index-G6hKL35m.js → index-L99IjMpo.js} +1 -1
  127. package/dist/assets/{index-DU8P3lNm.js → index-MaZo-0IY.js} +1 -1
  128. package/dist/assets/{index-C4b651ZQ.js → index-NkYFHo4Q.js} +1 -1
  129. package/dist/assets/{index-BLUexfy_.js → index-QcWYn0US.js} +1 -1
  130. package/dist/assets/{index-RCmuyDMR.js → index-U1KqpW6O.js} +1 -1
  131. package/dist/assets/{index-u0GcnVeV.js → index-fFK_YyO8.js} +1 -1
  132. package/dist/assets/{index-3KlQvd1f.js → index-g4Pa9QCu.js} +2 -2
  133. package/dist/assets/{index-BVT-ixIa.js → index-k4OGecmF.js} +1 -1
  134. package/dist/assets/{index-Cax1rLeF.js → index-lHULqi5l.js} +1 -1
  135. package/dist/assets/{index-IWXwGVVh.js → index-n0V_zECF.js} +2 -2
  136. package/dist/assets/{index-CR2gE5g2.js → index-rlAZJLp4.js} +1 -1
  137. package/dist/assets/{index.esm-BhU35G9C.js → index.esm-CvOsHG0z.js} +1 -1
  138. package/dist/assets/{info-addon.es-CPzyoWb4.js → info-addon.es-Cx99Eu34.js} +1 -1
  139. package/dist/assets/{info.es-D5-UslFk.js → info.es-r6G7pvuv.js} +1 -1
  140. package/dist/assets/{install-from-url-CvqMMCKo.js → install-from-url-CAMFT77K.js} +1 -1
  141. package/dist/assets/{invitation-qA5bVm--.js → invitation-a75PydJz.js} +6 -6
  142. package/dist/assets/is-path-prefix-equal-tP_Em7g6.js +1 -0
  143. package/dist/assets/item-MkdTA7ZR.js +277 -0
  144. package/dist/assets/{ja-CCKVmbEX.js → ja-D-vAGmH7.js} +1 -1
  145. package/dist/assets/{javascript.es-Bi4XiziU.js → javascript.es-3UOa6hAX.js} +1 -1
  146. package/dist/assets/{jump-to-line.es-BEhBaQVE.js → jump-to-line.es-DtpaMTlX.js} +1 -1
  147. package/dist/assets/{jump.es-D_HGlVff.js → jump.es-DhxXT_Sj.js} +1 -1
  148. package/dist/assets/{ko-A_w8tIEg.js → ko-DpdamIdS.js} +1 -1
  149. package/dist/assets/{lint.es-DXIQDiFW.js → lint.es-CsD0hQVi.js} +1 -1
  150. package/dist/assets/{lint.es2-T86XSfSx.js → lint.es2-DU2epyfs.js} +1 -1
  151. package/dist/assets/{lint.es3-QrsCURAc.js → lint.es3-CtwrSwHH.js} +1 -1
  152. package/dist/assets/{list-header-DbzM_GZd.js → list-header-DLHqbQMu.js} +1 -1
  153. package/dist/assets/{log-D1woDO46.js → log-T4Gys8TD.js} +2 -2
  154. package/dist/assets/{lottie-react.esm-5SHHR4Kh.js → lottie-react.esm-DE7PZzmM.js} +1 -1
  155. package/dist/assets/{matchbrackets.es-DkhIDR9b.js → matchbrackets.es-Cbfo0kGw.js} +1 -1
  156. package/dist/assets/{memory-D1fug3gB.js → memory-DnziUg0a.js} +1 -1
  157. package/dist/assets/{metric-ChZoSNSx.js → metric-CXeJ1pVj.js} +1 -1
  158. package/dist/assets/{mode.es-C7vpO80y.js → mode.es-81u6K4KX.js} +1 -1
  159. package/dist/assets/{mode.es2-BxPP91JH.js → mode.es2-CKKLFqL3.js} +1 -1
  160. package/dist/assets/{mode.es3-D3euCiUs.js → mode.es3-Bv3GIpLP.js} +1 -1
  161. package/dist/assets/omit-BS9HjQsW.js +1 -0
  162. package/dist/assets/{onlineParser.es-Dv3ojmYM.js → onlineParser.es-Dao3EmVs.js} +1 -1
  163. package/dist/assets/overview-CINcLtup.js +13 -0
  164. package/dist/assets/{permission-CIEFWkaR.js → permission-BY_usLPC.js} +1 -1
  165. package/dist/assets/{preference-CGZrxant.js → preference-CquEhb-_.js} +4 -4
  166. package/dist/assets/pt-CEcOQeEC.js +5 -0
  167. package/dist/assets/{raf-schd.esm-D2YdSSsT.js → raf-schd.esm-Ivpfp78X.js} +1 -1
  168. package/dist/assets/refType-CSs4l3lt.js +1 -0
  169. package/dist/assets/{resource-dialog-BUsD19Cy.js → resource-dialog-sYzuZVwE.js} +4 -4
  170. package/dist/assets/ru-83xhwzPD.js +5 -0
  171. package/dist/assets/{runtime-DmliCtHn.js → runtime-By4tJgnP.js} +1 -1
  172. package/dist/assets/{schema-Dcd_4PT9.js → schema-CIVGWbJp.js} +1 -1
  173. package/dist/assets/sdk-dj0ARauA.js +1 -0
  174. package/dist/assets/{search.es-Dq2R-yp_.js → search.es-BoSdwsl_.js} +1 -1
  175. package/dist/assets/{searchcursor.es-sSprtinS.js → searchcursor.es-CbyR05zG.js} +1 -1
  176. package/dist/assets/{service-CRQQROx3.js → service-mHOJi74L.js} +1 -1
  177. package/dist/assets/{shorten-label-C03p-pfG.js → shorten-label-Cx9WVX2w.js} +1 -1
  178. package/dist/assets/{show-hint.es-DT0uCiTE.js → show-hint.es-BBwAXg-d.js} +1 -1
  179. package/dist/assets/{simple-select-9Y5bam0M.js → simple-select-D8ZhRe5q.js} +1 -1
  180. package/dist/assets/{spaces-C11TOrvj.js → spaces-Cg3ymUIh.js} +1 -1
  181. package/dist/assets/{status-D0j9AxRu.js → status-D68KxBTS.js} +1 -1
  182. package/dist/assets/{status-D-H-SlzG.js → status-DdweCl-L.js} +1 -1
  183. package/dist/assets/{sublime.es-Dlq8qSkc.js → sublime.es-J03GHmnf.js} +1 -1
  184. package/dist/assets/{switch-control-CIiFijrf.js → switch-control-DSz3cmNm.js} +1 -1
  185. package/dist/assets/{table-icons-BviR-2XS.js → table-icons-CHCR_r_-.js} +1 -1
  186. package/dist/assets/{table-tips-D63O0ZjI.js → table-tips-CFO-Ys9P.js} +1 -1
  187. package/dist/assets/team-DeJfgyE0.js +1 -0
  188. package/dist/assets/th-BQLlyW1N.js +5 -0
  189. package/dist/assets/{toLower-BPzu2rPJ.js → toLower-CRFOnVAM.js} +1 -1
  190. package/dist/assets/toUpper-wDnuTnwH.js +1 -0
  191. package/dist/assets/{traffic-DMf28Jqy.js → traffic-CILl5dnV.js} +2 -2
  192. package/dist/assets/{url-evaluation-CiS0m0gE.js → url-evaluation-Cjrq8Y2H.js} +1 -1
  193. package/dist/assets/{url-join-CwE3EUnC.js → url-join-Mz1JcbbA.js} +1 -1
  194. package/dist/assets/{use-mobile-B6rWKjo_.js → use-mobile-CpVsXFoV.js} +1 -1
  195. package/dist/assets/{use-mobile-DQ4xY9vN.js → use-mobile-DK73qoH8.js} +1 -1
  196. package/dist/assets/{useAsync-BwpiQkh2.js → useAsync-BCZg9cpL.js} +1 -1
  197. package/dist/assets/useAsyncRetry-DBtDInVv.js +1 -0
  198. package/dist/assets/{useLocalStorage-yyXOU8sf.js → useLocalStorage-1IK8Xf3D.js} +1 -1
  199. package/dist/assets/{useThemeProps-DA06OkGc.js → useThemeProps-Btw9Aun5.js} +1 -1
  200. package/dist/assets/{util-DIcvOfJ0.js → util-ks9_6DYA.js} +1 -1
  201. package/dist/assets/vi-DgWAr6FA.js +5 -0
  202. package/dist/assets/{wait-container-DB7Fvl8u.js → wait-container-B7LdKBV0.js} +3 -3
  203. package/dist/assets/withStyles-DWVK59by.js +1 -0
  204. package/dist/assets/wrap-locale-DoH7AJX_.js +1 -0
  205. package/dist/assets/{zh-Cti0XXui.js → zh-BL80PoOh.js} +2 -2
  206. package/dist/assets/{zh-tw-BLcDG99i.js → zh-tw-Dg5z1DFE.js} +1 -1
  207. package/dist/index.html +1 -1
  208. package/dist/service-worker.js +1 -1
  209. package/package.json +1 -1
  210. package/dist/assets/CardContent-_VxRx6xT.js +0 -1
  211. package/dist/assets/api-B2krrsTm.js +0 -1
  212. package/dist/assets/blocklet-DMuA5PdQ.js +0 -1
  213. package/dist/assets/cloneDeep-B1r2JtFj.js +0 -1
  214. package/dist/assets/domains-BLjPj3AW.js +0 -28
  215. package/dist/assets/emotion-react.browser.esm-BPIpPz3P.js +0 -1
  216. package/dist/assets/getValidReactChildren-rb5pggFM.js +0 -1
  217. package/dist/assets/hi-C51yBXa5.js +0 -5
  218. package/dist/assets/index-B59U_Lup.js +0 -155
  219. package/dist/assets/index-BENdKQR9.js +0 -87
  220. package/dist/assets/index-C2b2CJyH.js +0 -1
  221. package/dist/assets/index-D40SuWQU.js +0 -109
  222. package/dist/assets/index-yQhfY-D-.js +0 -1
  223. package/dist/assets/is-path-prefix-equal-CP-xgvsY.js +0 -1
  224. package/dist/assets/item-6mCxa8bi.js +0 -277
  225. package/dist/assets/omit-CaeWYRyw.js +0 -1
  226. package/dist/assets/overview-Dha81GsQ.js +0 -13
  227. package/dist/assets/pt-7HHecjdA.js +0 -5
  228. package/dist/assets/refType-BtU4sc8V.js +0 -1
  229. package/dist/assets/ru-Bw8FVC4M.js +0 -5
  230. package/dist/assets/sdk-Bg9zUQQV.js +0 -1
  231. package/dist/assets/team-Bt5GsvTe.js +0 -1
  232. package/dist/assets/th-DyW-mYrC.js +0 -5
  233. package/dist/assets/toUpper-Bk6xSBue.js +0 -1
  234. package/dist/assets/vi-bzer6J4H.js +0 -5
  235. package/dist/assets/withStyles-CPbSyJRI.js +0 -1
  236. package/dist/assets/wrap-locale-CYxNfqSO.js +0 -1
@@ -1 +1 @@
1
- import{P as C,j as u,fe as Gt,d6 as O,ff as Ht,b as Kt,K as jt,fg as Vt,a6 as qt,bg as zt,r as P,a9 as Jt,a4 as Yt,aa as Xt,bl as Qt,br as Zt,o as kt,m as te,H as ee,W as re,k as ie,t as ne,D as se,B as ft,C as pt,s as oe,V as ae,v as le,bC as ce,X as he}from"./index-DTI4BkNW.js";import{W as ue}from"./url-evaluation-CiS0m0gE.js";import{s as St,n as fe}from"./schema-Dcd_4PT9.js";import{r as pe}from"./cloneDeep-B1r2JtFj.js";import{I as mt}from"./index-ChGWeAoT.js";import{d as me}from"./Delete-DliA3mdg.js";import{_ as de}from"./useLocalStorage-yyXOU8sf.js";import{A as ge}from"./Autocomplete-CHlN80bM.js";import{L as ve}from"./ListItemButton-glXjZswW.js";import{S as ye,a as be,b as xe}from"./Stepper-CAwK24YR.js";function je({mode:t,...e}){return t==="development"?u.jsx(ue,{type:"primary",...e,children:"DEV"}):null}je.propTypes={mode:C.string.isRequired};var _t={},lt={exports:{}},Et={exports:{}},Y=Et.exports={github:{protocols:["git","http","git+ssh","git+https","ssh","https"],domain:"github.com",treepath:"tree",filetemplate:"https://{auth@}raw.githubusercontent.com/{user}/{project}/{committish}/{path}",bugstemplate:"https://{domain}/{user}/{project}/issues",gittemplate:"git://{auth@}{domain}/{user}/{project}.git{#committish}",tarballtemplate:"https://codeload.{domain}/{user}/{project}/tar.gz/{committish}"},bitbucket:{protocols:["git+ssh","git+https","ssh","https"],domain:"bitbucket.org",treepath:"src",tarballtemplate:"https://{domain}/{user}/{project}/get/{committish}.tar.gz"},gitlab:{protocols:["git+ssh","git+https","ssh","https"],domain:"gitlab.com",treepath:"tree",bugstemplate:"https://{domain}/{user}/{project}/issues",httpstemplate:"git+https://{auth@}{domain}/{user}/{projectPath}.git{#committish}",tarballtemplate:"https://{domain}/{user}/{project}/repository/archive.tar.gz?ref={committish}",pathmatch:/^\/([^/]+)\/((?!.*(\/-\/|\/repository(\/[^/]+)?\/archive\.tar\.gz)).*?)(?:\.git|\/)?$/},gist:{protocols:["git","git+ssh","git+https","ssh","https"],domain:"gist.github.com",pathmatch:/^[/](?:([^/]+)[/])?([a-z0-9]{7,})(?:[.]git)?$/,filetemplate:"https://gist.githubusercontent.com/{user}/{project}/raw{/committish}/{path}",bugstemplate:"https://{domain}/{project}",gittemplate:"git://{domain}/{project}.git{#committish}",sshtemplate:"git@{domain}:/{project}.git{#committish}",sshurltemplate:"git+ssh://git@{domain}/{project}.git{#committish}",browsetemplate:"https://{domain}/{project}{/committish}",browsefiletemplate:"https://{domain}/{project}{/committish}{#path}",docstemplate:"https://{domain}/{project}{/committish}",httpstemplate:"git+https://{domain}/{project}.git{#committish}",shortcuttemplate:"{type}:{project}{#committish}",pathtemplate:"{project}{#committish}",tarballtemplate:"https://codeload.github.com/gist/{project}/tar.gz/{committish}",hashformat:function(t){return"file-"+Ct(t)}}},dt={sshtemplate:"git@{domain}:{user}/{project}.git{#committish}",sshurltemplate:"git+ssh://git@{domain}/{user}/{project}.git{#committish}",browsetemplate:"https://{domain}/{user}/{project}{/tree/committish}",browsefiletemplate:"https://{domain}/{user}/{project}/{treepath}/{committish}/{path}{#fragment}",docstemplate:"https://{domain}/{user}/{project}{/tree/committish}#readme",httpstemplate:"git+https://{auth@}{domain}/{user}/{project}.git{#committish}",filetemplate:"https://{domain}/{user}/{project}/raw/{committish}/{path}",shortcuttemplate:"{type}:{user}/{project}{#committish}",pathtemplate:"{user}/{project}{#committish}",pathmatch:/^[/]([^/]+)[/]([^/]+?)(?:[.]git|[/])?$/,hashformat:Ct};Object.keys(Y).forEach(function(t){Object.keys(dt).forEach(function(e){Y[t][e]||(Y[t][e]=dt[e])}),Y[t].protocols_re=RegExp("^("+Y[t].protocols.map(function(e){return e.replace(/([\\+*{}()[\]$^|])/g,"\\$1")}).join("|")+"):$")});function Ct(t){return t.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-")}var wt=Et.exports,gt=wt,V=Object.assign||function(e,r){if(r===null||typeof r!="object")return e;const i=Object.keys(r);let s=i.length;for(;s--;)e[i[s]]=r[i[s]];return e},Se=E;function E(t,e,r,i,s,a,c){var l=this;l.type=t,Object.keys(gt[t]).forEach(function(d){l[d]=gt[t][d]}),l.user=e,l.auth=r,l.project=i,l.committish=s,l.default=a,l.opts=c||{}}E.prototype.hash=function(){return this.committish?"#"+this.committish:""};E.prototype._fill=function(t,e){if(t){var r=V({},e);r.path=r.path?r.path.replace(/^[/]+/g,""):"",e=V(V({},this.opts),e);var i=this;Object.keys(this).forEach(function(h){i[h]!=null&&r[h]==null&&(r[h]=i[h])});var s=r.auth,a=r.committish,c=r.fragment,l=r.path,d=r.project;Object.keys(r).forEach(function(h){var j=r[h];(h==="path"||h==="project")&&typeof j=="string"?r[h]=j.split("/").map(function(m){return encodeURIComponent(m)}).join("/"):h!=="domain"&&(r[h]=encodeURIComponent(j))}),r["auth@"]=s?s+"@":"",r["#fragment"]=c?"#"+this.hashformat(c):"",r.fragment=r.fragment?r.fragment:"",r["#path"]=l?"#"+this.hashformat(l):"",r["/path"]=r.path?"/"+r.path:"",r.projectPath=d.split("/").map(encodeURIComponent).join("/"),e.noCommittish?(r["#committish"]="",r["/tree/committish"]="",r["/committish"]="",r.committish=""):(r["#committish"]=a?"#"+a:"",r["/tree/committish"]=r.committish?"/"+r.treepath+"/"+r.committish:"",r["/committish"]=r.committish?"/"+r.committish:"",r.committish=r.committish||"master");var y=t;return Object.keys(r).forEach(function(h){y=y.replace(new RegExp("[{]"+h+"[}]","g"),r[h])}),e.noGitPlus?y.replace(/^git[+]/,""):y}};E.prototype.ssh=function(t){return this._fill(this.sshtemplate,t)};E.prototype.sshurl=function(t){return this._fill(this.sshurltemplate,t)};E.prototype.browse=function(t,e,r){return typeof t=="string"?(typeof e!="string"&&(r=e,e=null),this._fill(this.browsefiletemplate,V({fragment:e,path:t},r))):this._fill(this.browsetemplate,t)};E.prototype.docs=function(t){return this._fill(this.docstemplate,t)};E.prototype.bugs=function(t){return this._fill(this.bugstemplate,t)};E.prototype.https=function(t){return this._fill(this.httpstemplate,t)};E.prototype.git=function(t){return this._fill(this.gittemplate,t)};E.prototype.shortcut=function(t){return this._fill(this.shortcuttemplate,t)};E.prototype.path=function(t){return this._fill(this.pathtemplate,t)};E.prototype.tarball=function(t){var e=V({},t,{noCommittish:!1});return this._fill(this.tarballtemplate,e)};E.prototype.file=function(t,e){return this._fill(this.filetemplate,V({path:t},e))};E.prototype.getDefaultRepresentation=function(){return this.default};E.prototype.toString=function(t){return this.default&&typeof this[this.default]=="function"?this[this.default](t):this.sshurl(t)};var it,vt;function _e(){return vt||(vt=1,it=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}),it}var Ee=p;p.Node=B;p.create=p;function p(t){var e=this;if(e instanceof p||(e=new p),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(s){e.push(s)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)e.push(arguments[r]);return e}p.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e};p.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}};p.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}};p.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)we(this,arguments[t]);return this.length};p.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)Ie(this,arguments[t]);return this.length};p.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}};p.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}};p.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,i=0;r!==null;i++)t.call(e,r.value,i,this),r=r.next};p.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,i=this.length-1;r!==null;i--)t.call(e,r.value,i,this),r=r.prev};p.prototype.get=function(t){for(var e=0,r=this.head;r!==null&&e<t;e++)r=r.next;if(e===t&&r!==null)return r.value};p.prototype.getReverse=function(t){for(var e=0,r=this.tail;r!==null&&e<t;e++)r=r.prev;if(e===t&&r!==null)return r.value};p.prototype.map=function(t,e){e=e||this;for(var r=new p,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};p.prototype.mapReverse=function(t,e){e=e||this;for(var r=new p,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};p.prototype.reduce=function(t,e){var r,i=this.head;if(arguments.length>1)r=e;else if(this.head)i=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=0;i!==null;s++)r=t(r,i.value,s),i=i.next;return r};p.prototype.reduceReverse=function(t,e){var r,i=this.tail;if(arguments.length>1)r=e;else if(this.tail)i=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=this.length-1;i!==null;s--)r=t(r,i.value,s),i=i.prev;return r};p.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};p.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};p.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new p;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,s=this.head;s!==null&&i<t;i++)s=s.next;for(;s!==null&&i<e;i++,s=s.next)r.push(s.value);return r};p.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new p;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,s=this.tail;s!==null&&i>e;i--)s=s.prev;for(;s!==null&&i>t;i--,s=s.prev)r.push(s.value);return r};p.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var i=0,s=this.head;s!==null&&i<t;i++)s=s.next;for(var a=[],i=0;s&&i<e;i++)a.push(s.value),s=this.removeNode(s);s===null&&(s=this.tail),s!==this.head&&s!==this.tail&&(s=s.prev);for(var i=0;i<r.length;i++)s=Ce(this,s,r[i]);return a};p.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var i=r.prev;r.prev=r.next,r.next=i}return this.head=e,this.tail=t,this};function Ce(t,e,r){var i=e===t.head?new B(r,null,e,t):new B(r,e,e.next,t);return i.next===null&&(t.tail=i),i.prev===null&&(t.head=i),t.length++,i}function we(t,e){t.tail=new B(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function Ie(t,e){t.head=new B(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function B(t,e,r,i){if(!(this instanceof B))return new B(t,e,r,i);this.list=i,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{_e()(p)}catch{}const Re=Ee,N=Symbol("max"),L=Symbol("length"),K=Symbol("lengthCalculator"),Q=Symbol("allowStale"),$=Symbol("maxAge"),U=Symbol("dispose"),yt=Symbol("noDisposeOnSet"),S=Symbol("lruList"),R=Symbol("cache"),It=Symbol("updateAgeOnGet"),nt=()=>1;class Ae{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");this[N]=e.max||1/0;const r=e.length||nt;if(this[K]=typeof r!="function"?nt:r,this[Q]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[$]=e.maxAge||0,this[U]=e.dispose,this[yt]=e.noDisposeOnSet||!1,this[It]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[N]=e||1/0,X(this)}get max(){return this[N]}set allowStale(e){this[Q]=!!e}get allowStale(){return this[Q]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[$]=e,X(this)}get maxAge(){return this[$]}set lengthCalculator(e){typeof e!="function"&&(e=nt),e!==this[K]&&(this[K]=e,this[L]=0,this[S].forEach(r=>{r.length=this[K](r.value,r.key),this[L]+=r.length})),X(this)}get lengthCalculator(){return this[K]}get length(){return this[L]}get itemCount(){return this[S].length}rforEach(e,r){r=r||this;for(let i=this[S].tail;i!==null;){const s=i.prev;bt(this,e,i,r),i=s}}forEach(e,r){r=r||this;for(let i=this[S].head;i!==null;){const s=i.next;bt(this,e,i,r),i=s}}keys(){return this[S].toArray().map(e=>e.key)}values(){return this[S].toArray().map(e=>e.value)}reset(){this[U]&&this[S]&&this[S].length&&this[S].forEach(e=>this[U](e.key,e.value)),this[R]=new Map,this[S]=new Re,this[L]=0}dump(){return this[S].map(e=>Z(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[S]}set(e,r,i){if(i=i||this[$],i&&typeof i!="number")throw new TypeError("maxAge must be a number");const s=i?Date.now():0,a=this[K](r,e);if(this[R].has(e)){if(a>this[N])return q(this,this[R].get(e)),!1;const d=this[R].get(e).value;return this[U]&&(this[yt]||this[U](e,d.value)),d.now=s,d.maxAge=i,d.value=r,this[L]+=a-d.length,d.length=a,this.get(e),X(this),!0}const c=new Oe(e,r,a,s,i);return c.length>this[N]?(this[U]&&this[U](e,r),!1):(this[L]+=c.length,this[S].unshift(c),this[R].set(e,this[S].head),X(this),!0)}has(e){if(!this[R].has(e))return!1;const r=this[R].get(e).value;return!Z(this,r)}get(e){return st(this,e,!0)}peek(e){return st(this,e,!1)}pop(){const e=this[S].tail;return e?(q(this,e),e.value):null}del(e){q(this,this[R].get(e))}load(e){this.reset();const r=Date.now();for(let i=e.length-1;i>=0;i--){const s=e[i],a=s.e||0;if(a===0)this.set(s.k,s.v);else{const c=a-r;c>0&&this.set(s.k,s.v,c)}}}prune(){this[R].forEach((e,r)=>st(this,r,!1))}}const st=(t,e,r)=>{const i=t[R].get(e);if(i){const s=i.value;if(Z(t,s)){if(q(t,i),!t[Q])return}else r&&(t[It]&&(i.value.now=Date.now()),t[S].unshiftNode(i));return s.value}},Z=(t,e)=>{if(!e||!e.maxAge&&!t[$])return!1;const r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[$]&&r>t[$]},X=t=>{if(t[L]>t[N])for(let e=t[S].tail;t[L]>t[N]&&e!==null;){const r=e.prev;q(t,e),e=r}},q=(t,e)=>{if(e){const r=e.value;t[U]&&t[U](r.key,r.value),t[L]-=r.length,t[R].delete(r.key),t[S].removeNode(e)}};class Oe{constructor(e,r,i,s,a){this.key=e,this.value=r,this.length=i,this.now=s,this.maxAge=a||0}}const bt=(t,e,r,i)=>{let s=r.value;Z(t,s)&&(q(t,r),t[Q]||(s=void 0)),s&&e.call(i,s.value,s.key,t)};var Pe=Ae,at=Gt,xt=wt,Ue=lt.exports=Se,Le=Pe,ot=new Le({max:1e3}),Te={"git+ssh:":"sshurl","git+https:":"https","ssh:":"sshurl","git:":"git"};function De(t){return Te[t]||t.slice(0,-1)}var Ne={"git:":!0,"https:":!0,"git+https:":!0,"http:":!0,"git+http:":!0};lt.exports.fromUrl=function(t,e){if(typeof t=="string"){var r=t+JSON.stringify(e||{});return ot.has(r)||ot.set(r,$e(t,e)),ot.get(r)}};function $e(t,e){if(!(t==null||t==="")){var r=Me(Be(t)?"github:"+t:t),i=Fe(r),s=r.match(/^([^:]+):(?:[^@]+@)?(?:([^/]*)\/)?([^#]+)/),a=Object.keys(xt).map(function(c){try{var l=xt[c],d=null;i.auth&&Ne[i.protocol]&&(d=i.auth);var y=i.hash?decodeURIComponent(i.hash.substr(1)):null,h=null,j=null,m=null;if(s&&s[1]===c)h=s[2]&&decodeURIComponent(s[2]),j=decodeURIComponent(s[3].replace(/\.git$/,"")),m="shortcut";else{if(i.host&&i.host!==l.domain&&i.host.replace(/^www[.]/,"")!==l.domain||!l.protocols_re.test(i.protocol)||!i.path)return;var F=l.pathmatch,w=i.path.match(F);if(!w)return;w[1]!==null&&w[1]!==void 0&&(h=decodeURIComponent(w[1].replace(/^:/,""))),j=decodeURIComponent(w[2]),m=De(i.protocol)}return new Ue(c,h,d,j,y,m,e)}catch(I){if(!(I instanceof URIError))throw I}}).filter(function(c){return c});if(a.length===1)return a[0]}}function Be(t){return/^[^:@%/\s.-][^:@%/\s]*[/][^:@\s/%]+(?:#.*)?$/.test(t)}function Me(t){var e=at.parse(t);return e.protocol==="gist:"&&e.host&&!e.path?e.protocol+"/"+e.host:t}function Fe(t){var e=t.match(/^([^@]+)@([^:/]+):[/]?((?:[^/]+[/])?[^/]+?)(?:[.]git)?(#.*)?$/);if(!e){var r=at.parse(t);if(r.auth){const s=t.match(/[^@]+@[^:/]+/);if(s){var i=new at.URL(s[0]);r.auth=i.username||"",i.password&&(r.auth+=":"+i.password)}}return r}return{protocol:"git+ssh:",slashes:!0,auth:e[1],host:e[2],port:null,hostname:e[2],hash:e[4],search:null,query:null,pathname:"/"+e[3],path:"/"+e[3],href:"git+ssh://"+e[1]+"@"+e[2]+"/"+e[3]+(e[4]||"")}}var We=lt.exports,M={},A={},Ge=O&&O.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(A,"__esModule",{value:!0});A.setService=A.findService=A.getDefaultServiceConfig=A.getServiceConfig=void 0;const He=Ge(pe),Ke=St,Rt={},ct=t=>{Rt[t.name]={validate:t.schema.validate.bind(t.schema),defaultConfig:t.default}};A.setService=ct;ct({name:"auth",schema:Ke.authConfigSchema,default:{}});const At=t=>{if(!t)throw new Error("service name should not be empty");const e=Rt[t];if(!e)throw new Error(`service ${t} does not exist`);return e},Ot=(t,e,{validate:r}={})=>{const i=At(t),s=(0,He.default)(e||{}),{value:a,error:c}=i.validate(s);if(r&&c)throw new Error(`Invalid blocklet service config: ${c.details.map(l=>l.message).join(", ")}`);return a};A.getServiceConfig=Ot;const Pt=t=>{const{defaultConfig:e}=At(t);return e};A.getDefaultServiceConfig=Pt;const Ut=(t,e)=>{const r=[e];return(t||[]).find(i=>r.includes(i.name))};A.findService=Ut;A.default={getServiceConfig:Ot,getDefaultServiceConfig:Pt,findService:Ut,setService:ct};Object.defineProperty(M,"__esModule",{value:!0});M.fixAndValidateService=M.validateMeta=void 0;const Ve=St,qe=A,ze=t=>(!t.interfaces||!t.interfaces.length||t.interfaces.forEach(e=>{e.services&&e.services.length&&e.services.forEach(r=>{r.config=(0,qe.getServiceConfig)(r.name,r.config,{validate:!0})})}),t);M.fixAndValidateService=ze;const Lt=(t,{ensureFiles:e=!1,ensureDist:r=!1,ensureComponentStore:i=!0,ensureName:s=!1,skipValidateDidName:a=!1,schemaOptions:c={}}={})=>{const l=(0,Ve.createBlockletSchema)(null,{ensureFiles:e,ensureDist:r,ensureComponentStore:i,ensureName:s,skipValidateDidName:a,...c}),{value:d,error:y}=l.validate(t);if(y)throw new Error(`Invalid blocklet meta: ${y.details.map(h=>h.message).join(", ")}`);return d};M.validateMeta=Lt;M.default=Lt;(function(t){var e=O&&O.__createBinding||(Object.create?function(n,o,v,b){b===void 0&&(b=v);var g=Object.getOwnPropertyDescriptor(o,v);(!g||("get"in g?!o.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return o[v]}}),Object.defineProperty(n,b,g)}:function(n,o,v,b){b===void 0&&(b=v),n[b]=o[v]}),r=O&&O.__setModuleDefault||(Object.create?function(n,o){Object.defineProperty(n,"default",{enumerable:!0,value:o})}:function(n,o){n.default=o}),i=O&&O.__importStar||function(){var n=function(o){return n=Object.getOwnPropertyNames||function(v){var b=[];for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(b[b.length]=g);return b},n(o)};return function(o){if(o&&o.__esModule)return o;var v={};if(o!=null)for(var b=n(o),g=0;g<b.length;g++)b[g]!=="default"&&e(v,o,b[g]);return r(v,o),v}}(),s=O&&O.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(t,"__esModule",{value:!0}),t.fixService=t.fixInterfaces=t.parsePerson=t.formatPerson=t.fixName=t.fixTags=t.fixPerson=t.fixKeywords=t.fixFiles=t.fixRepository=t.fixRequired=void 0;const a=s(Ht),c=i(We),l=Kt,d=M;Object.defineProperty(t,"fixService",{enumerable:!0,get:function(){return d.fixAndValidateService}});const y=fe,h=(n,o)=>{n.description||(n.description=`Blocklet from ${o}`),n.version||(n.version=l.BLOCKLET_DEFAULT_VERSION)};t.fixRequired=h;const j=n=>{if(n.repository&&(typeof n.repository=="string"&&(n.repository={type:"git",url:n.repository}),n.repository.url)){const o=c.fromUrl(n.repository.url);o&&(n.repository.url=o.getDefaultRepresentation()==="shortcut"?o.https():o.toString())}};t.fixRepository=j;const m=n=>{Array.isArray(n.files)?n.files&&(n.files=n.files.filter(o=>!(!o||typeof o!="string"))):delete n.files};t.fixFiles=m;const F=n=>{typeof n.keywords=="string"&&(n.keywords=n.keywords.split(/,\s+/)),n.keywords&&!Array.isArray(n.keywords)?delete n.keywords:n.keywords&&(n.keywords=n.keywords.filter(o=>!(typeof o!="string"||!o)))};t.fixKeywords=F;const w=n=>{typeof n.tags=="string"&&(n.tags=n.tags.split(/,\s+/)),n.tags&&!Array.isArray(n.tags)?delete n.tags:n.tags&&(n.tags=n.tags.filter(o=>!(typeof o!="string"||!o)))};t.fixTags=w;const I=(n,o)=>(n.author&&(n.author=o(n.author)),["maintainers","contributors"].forEach(v=>{Array.isArray(n[v])&&(n[v]=n[v].map(o))}),n),W=n=>{if(!n)return"";if(typeof n=="string")return n;const o=n.name||"",v=n.url||n.web,b=v?` (${v})`:"",g=n.email||n.mail,x=g?` <${g}>`:"";return o+x+b};t.formatPerson=W;const T=n=>{if(typeof n!="string")return n;const o=n.match(/^([^(<]+)/),v=n.match(/\(([^)]+)\)/),b=n.match(/<([^>]+)>/),g={};return o&&o[0].trim()&&(g.name=o[0].trim()),b&&([,g.email]=b),v&&([,g.url]=v),g};t.parsePerson=T;const G=n=>(I(n,W),I(n,T),n);t.fixPerson=G;const _=(n,o=!0)=>{if(Array.isArray(n.interfaces)||(n.interfaces=[]),n.interfaces.length)return n.interfaces.forEach(x=>{x.type===l.BLOCKLET_INTERFACE_TYPE_WEB&&(x.protocol="http")}),n;const b=(0,a.default)(n,"capabilities.dynamicPathPrefix",!0)?l.BLOCKLET_DYNAMIC_PATH_PREFIX:"/",g=({type:x="web",name:k,path:J="/",protocol:tt="http",port:et=l.BLOCKLET_DEFAULT_PORT_NAME})=>{n.interfaces.push({type:x,name:k,path:J,prefix:b,port:et,protocol:tt})};return[l.BLOCKLET_INTERFACE_PUBLIC].forEach(x=>{n[x]&&g({name:x,path:n[x]})}),Array.isArray(n.exposeServices)&&n.exposeServices.forEach(x=>{g({type:"service",name:x.protocol,protocol:x.protocol,port:{internal:`BLOCKLET_${x.protocol}_PORT`.toUpperCase(),external:x.port}})}),o&&(delete n.publicUrl,delete n.adminUrl,delete n.configUrl,delete n.docUrl,delete n.exposeServices,n.capabilities&&delete n.capabilities.dynamicPathPrefix),n};t.fixInterfaces=_;const z=n=>{const{did:o}=n;try{(0,y.validateNewDid)(o),n.name=o}catch{}return n};t.fixName=z,t.default={fixRequired:h,fixRepository:j,fixFiles:m,fixKeywords:F,fixPerson:G,fixTags:w,fixName:z,formatPerson:W,parsePerson:T,fixInterfaces:_,fixService:d.fixAndValidateService}})(_t);function Tt({owner:t,locale:e}){return u.jsxs(jt,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.fullName,t.did?u.jsx(Vt,{sx:{lineHeight:"initial","&::before":{content:'"("'},"&::after":{content:'")"'}},did:t.did,compact:!0,size:14,locale:e}):null]})}Tt.propTypes={owner:C.object.isRequired,locale:C.string.isRequired};const Je="install-blocklet-from-URL",Dt=()=>{const[t,e]=de(Je,"[]",{raw:!0}),r=s=>{const a=s.trim(),c=JSON.parse(t),l=c.findIndex(d=>d===a);l!==0&&(l>0&&c.splice(l,1),c.length>=10&&c.splice(9),c.unshift(a),e(JSON.stringify(c)))},i=s=>{if(!s)return;const a=JSON.parse(t),c=s.trim(),l=a.findIndex(d=>d===c);l>-1&&(a.splice(l,1),e(JSON.stringify(a)))};return{urls:t?JSON.parse(t):[],addUrlRecord:r,removeUrlRecord:i}},Ye=qt(()=>({listItemText:{"& span":{display:"block",width:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}}));function ht(t){const{value:e,onValueChange:r,children:i,helperText:s}=t,{urls:a,removeUrlRecord:c}=Dt(),l=(y,h)=>{y.preventDefault(),y.stopPropagation(),c(h)},d=Ye();return u.jsxs(jt,{children:[u.jsx(ge,{freeSolo:!0,options:a,inputValue:e,onInputChange:(y,h)=>{r(h)},disableClearable:!0,popupIcon:null,renderInput:y=>zt.cloneElement(i,{...y}),renderOption:(y,h)=>P.createElement(Jt,{...y,key:h,secondaryAction:u.jsx(Yt,{edge:"end","aria-label":"delete",onClick:j=>l(j,h),children:u.jsx(me,{})})},u.jsx(ve,{role:void 0,dense:!0,sx:{paddingLeft:0,paddingRight:30,"&:hover":{backgroundColor:"transparent"}},children:u.jsx(Xt,{primary:h,className:d.listItemText})})),ListboxProps:{sx:{maxHeight:300,overflow:"auto"}}}),u.jsx(Qt,{style:{margin:0},children:s})]})}ht.propTypes={onValueChange:C.func,children:C.node,value:C.string,helperText:C.string};ht.defaultProps={onValueChange:()=>{},children:null,value:"",helperText:""};function Nt({defaultUrl:t,onCancel:e,onSuccess:r,onError:i,mode:s,handleText:a}){const{api:c}=Zt(),{api:l}=kt(),[d,y]=P.useState(!1),[h,j]=P.useState(""),{t:m,locale:F}=te(),w={dist:{}},[I,W]=P.useState(t),[T,G]=P.useState(t?1:0),[_,z]=P.useState(w),[n,o]=P.useState(!1),[v,b]=P.useState({}),g=s==="component",x=g?!0:!t,{addUrlRecord:k}=Dt(),J=async()=>{z(w),j(null),y(!0);let f=I.trim();!f.startsWith("https://")&&!f.startsWith("http://")&&!f.startsWith("file://")&&(f=`file://${f}`);try{const H=decodeURIComponent(f);try{new URL(H)}catch{throw new Error("Invalid URL")}const{meta:rt,inStore:Ft,registryUrl:Wt}=await c.getBlockletMetaFromUrl({input:{url:H}});z(rt),b({inStore:Ft,registryUrl:Wt,inputUrl:f}),k(f)}catch(H){console.error(H);const rt=`Blocklet Install failed: ${he(H)}`;j(rt),i(H)}finally{y(!1)}},tt=()=>{if(g){r({meta:_,...v}),e();return}y(!0),o(!0)},et=()=>{y(!1),o(!1),r({meta:_,...v}),e()},$t=()=>{y(!1),o(!1)};P.useEffect(()=>{t&&J()},[t]);const Bt=[{name:m("common.name"),value:ee.getDisplayName({meta:_},!0)},{name:m("common.version"),value:_.version},{name:m("common.did"),value:_.did?u.jsx(re,{did:_.did}):null},{name:m("common.author"),value:_.owner?u.jsx(Tt,{owner:_.owner,locale:F}):_t.formatPerson(_.author)},{name:m("blocklet.dist.downloadLink"),value:_.dist.tarball}],Mt=()=>d?u.jsx("div",{style:{height:200,width:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"},children:u.jsx(pt,{})}):_.did?u.jsx("div",{style:{paddingLeft:"10%"},children:Bt.map(f=>f.name===m("common.did")?u.jsx(mt,{valueComponent:"div",nameWidth:120,name:f.name,nameFormatter:()=>m("common.did"),children:f.value},f.name):u.jsx(mt,{valueComponent:"div",nameWidth:120,name:f.name,children:f.value},f.name))}):null,ut=[{label:m("blocklet.fromUrl.step0"),body:u.jsx(ie,{component:"div",children:u.jsx(ht,{style:{marginBottom:32},value:I,helperText:m("blocklet.fromUrl.description"),onValueChange:f=>{j(null),W(f)},children:u.jsx(ne,{label:m("blocklet.fromUrl.label"),autoComplete:"off",variant:"outlined",name:"url","data-cy":"blocklet-url-input",fullWidth:!0,autoFocus:!0,margin:"dense",value:I,onChange:f=>{j(null),W(f.target.value)},disabled:d,onKeyPress:f=>{f.key==="Enter"&&(f.preventDefault(),J(),G(1))}})})}),cancel:m("common.cancel"),confirm:m("common.next"),onCancel:e,onConfirm:()=>{J(),G(1)}},{label:m("blocklet.fromUrl.step1"),body:Mt(),cancel:m(x?"common.pre":"common.cancel"),confirm:(a==null?void 0:a.confirm)||m("blocklet.fromUrl.confirm"),onCancel:()=>{x?G(f=>f-1):e()},onConfirm:()=>{tt()}}],D=ut[T];return u.jsxs(u.Fragment,{children:[u.jsxs(se,{title:(a==null?void 0:a.title)||m("blocklet.fromUrl.title"),fullWidth:!0,maxWidth:"md",onClose:()=>D.onCancel(),showCloseButton:T===0,disableEscapeKeyDown:!0,open:!0,actions:u.jsxs(u.Fragment,{children:[D.cancel&&u.jsx(ft,{onClick:f=>{f.stopPropagation(),j(null),D.onCancel()},color:"inherit",children:D.cancel||m("common.cancel")}),u.jsxs(ft,{onClick:f=>{f.stopPropagation(),D.onConfirm()},color:"primary","data-cy":"install-blocklet-next-step",disabled:d||!I||h,variant:"contained",autoFocus:!0,style:{marginLeft:8},children:[d&&T===0&&u.jsx(pt,{size:16}),D.confirm]})]}),children:[x&&u.jsx(ye,{alternativeLabel:!0,activeStep:T,children:ut.map(({label:f})=>u.jsx(be,{children:u.jsx(xe,{children:f})},f))}),u.jsx(oe,{component:"div",style:{marginTop:24},children:D.body}),!!h&&u.jsx(ae,{severity:"error",style:{width:"100%",marginTop:8},children:h})]}),_&&n&&u.jsx(le,{popup:!0,open:!0,forceConnected:!1,className:"launch-from-url-auth",action:"launch-free-blocklet-by-session",checkFn:l.get,checkTimeout:5*60*1e3,onSuccess:et,extraParams:{title:_.title,wt:ce(_),blockletMetaUrl:decodeURIComponent(I.trim())},messages:{title:m("setup.keyPair.title"),scan:m("setup.keyPair.scan"),confirm:m("setup.keyPair.confirm"),success:m("setup.keyPair.success")},onClose:$t})]})}Nt.propTypes={defaultUrl:C.string,onCancel:C.func.isRequired,onSuccess:C.func.isRequired,onError:C.func,mode:C.oneOf(["install","component"]),handleText:C.object};Nt.defaultProps={onError:()=>{},defaultUrl:"",mode:"install",handleText:{}};export{je as B,Nt as I,Tt as a,_t as f};
1
+ import{P as C,j as u,ff as Gt,d7 as O,fg as Ht,b as Kt,K as jt,fh as Vt,a6 as qt,bg as zt,r as P,a9 as Jt,a4 as Yt,aa as Xt,bl as Qt,bp as Zt,o as kt,m as te,H as ee,W as re,k as ie,t as ne,D as se,B as ft,C as pt,s as oe,V as ae,v as le,bA as ce,X as he}from"./index-CGargw6n.js";import{W as ue}from"./url-evaluation-Cjrq8Y2H.js";import{s as St,n as fe}from"./schema-CIVGWbJp.js";import{r as pe}from"./cloneDeep-B7rgkTOg.js";import{I as mt}from"./index-CMPNSvEP.js";import{d as me}from"./Delete-DibgMbRa.js";import{_ as de}from"./useLocalStorage-1IK8Xf3D.js";import{A as ge}from"./Autocomplete-Dxuf1ndW.js";import{L as ve}from"./ListItemButton-CalO7fFj.js";import{S as ye,a as be,b as xe}from"./Stepper-BCrOaECo.js";function je({mode:t,...e}){return t==="development"?u.jsx(ue,{type:"primary",...e,children:"DEV"}):null}je.propTypes={mode:C.string.isRequired};var _t={},lt={exports:{}},Et={exports:{}},Y=Et.exports={github:{protocols:["git","http","git+ssh","git+https","ssh","https"],domain:"github.com",treepath:"tree",filetemplate:"https://{auth@}raw.githubusercontent.com/{user}/{project}/{committish}/{path}",bugstemplate:"https://{domain}/{user}/{project}/issues",gittemplate:"git://{auth@}{domain}/{user}/{project}.git{#committish}",tarballtemplate:"https://codeload.{domain}/{user}/{project}/tar.gz/{committish}"},bitbucket:{protocols:["git+ssh","git+https","ssh","https"],domain:"bitbucket.org",treepath:"src",tarballtemplate:"https://{domain}/{user}/{project}/get/{committish}.tar.gz"},gitlab:{protocols:["git+ssh","git+https","ssh","https"],domain:"gitlab.com",treepath:"tree",bugstemplate:"https://{domain}/{user}/{project}/issues",httpstemplate:"git+https://{auth@}{domain}/{user}/{projectPath}.git{#committish}",tarballtemplate:"https://{domain}/{user}/{project}/repository/archive.tar.gz?ref={committish}",pathmatch:/^\/([^/]+)\/((?!.*(\/-\/|\/repository(\/[^/]+)?\/archive\.tar\.gz)).*?)(?:\.git|\/)?$/},gist:{protocols:["git","git+ssh","git+https","ssh","https"],domain:"gist.github.com",pathmatch:/^[/](?:([^/]+)[/])?([a-z0-9]{7,})(?:[.]git)?$/,filetemplate:"https://gist.githubusercontent.com/{user}/{project}/raw{/committish}/{path}",bugstemplate:"https://{domain}/{project}",gittemplate:"git://{domain}/{project}.git{#committish}",sshtemplate:"git@{domain}:/{project}.git{#committish}",sshurltemplate:"git+ssh://git@{domain}/{project}.git{#committish}",browsetemplate:"https://{domain}/{project}{/committish}",browsefiletemplate:"https://{domain}/{project}{/committish}{#path}",docstemplate:"https://{domain}/{project}{/committish}",httpstemplate:"git+https://{domain}/{project}.git{#committish}",shortcuttemplate:"{type}:{project}{#committish}",pathtemplate:"{project}{#committish}",tarballtemplate:"https://codeload.github.com/gist/{project}/tar.gz/{committish}",hashformat:function(t){return"file-"+Ct(t)}}},dt={sshtemplate:"git@{domain}:{user}/{project}.git{#committish}",sshurltemplate:"git+ssh://git@{domain}/{user}/{project}.git{#committish}",browsetemplate:"https://{domain}/{user}/{project}{/tree/committish}",browsefiletemplate:"https://{domain}/{user}/{project}/{treepath}/{committish}/{path}{#fragment}",docstemplate:"https://{domain}/{user}/{project}{/tree/committish}#readme",httpstemplate:"git+https://{auth@}{domain}/{user}/{project}.git{#committish}",filetemplate:"https://{domain}/{user}/{project}/raw/{committish}/{path}",shortcuttemplate:"{type}:{user}/{project}{#committish}",pathtemplate:"{user}/{project}{#committish}",pathmatch:/^[/]([^/]+)[/]([^/]+?)(?:[.]git|[/])?$/,hashformat:Ct};Object.keys(Y).forEach(function(t){Object.keys(dt).forEach(function(e){Y[t][e]||(Y[t][e]=dt[e])}),Y[t].protocols_re=RegExp("^("+Y[t].protocols.map(function(e){return e.replace(/([\\+*{}()[\]$^|])/g,"\\$1")}).join("|")+"):$")});function Ct(t){return t.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-")}var wt=Et.exports,gt=wt,V=Object.assign||function(e,r){if(r===null||typeof r!="object")return e;const i=Object.keys(r);let s=i.length;for(;s--;)e[i[s]]=r[i[s]];return e},Se=E;function E(t,e,r,i,s,a,c){var l=this;l.type=t,Object.keys(gt[t]).forEach(function(d){l[d]=gt[t][d]}),l.user=e,l.auth=r,l.project=i,l.committish=s,l.default=a,l.opts=c||{}}E.prototype.hash=function(){return this.committish?"#"+this.committish:""};E.prototype._fill=function(t,e){if(t){var r=V({},e);r.path=r.path?r.path.replace(/^[/]+/g,""):"",e=V(V({},this.opts),e);var i=this;Object.keys(this).forEach(function(h){i[h]!=null&&r[h]==null&&(r[h]=i[h])});var s=r.auth,a=r.committish,c=r.fragment,l=r.path,d=r.project;Object.keys(r).forEach(function(h){var j=r[h];(h==="path"||h==="project")&&typeof j=="string"?r[h]=j.split("/").map(function(m){return encodeURIComponent(m)}).join("/"):h!=="domain"&&(r[h]=encodeURIComponent(j))}),r["auth@"]=s?s+"@":"",r["#fragment"]=c?"#"+this.hashformat(c):"",r.fragment=r.fragment?r.fragment:"",r["#path"]=l?"#"+this.hashformat(l):"",r["/path"]=r.path?"/"+r.path:"",r.projectPath=d.split("/").map(encodeURIComponent).join("/"),e.noCommittish?(r["#committish"]="",r["/tree/committish"]="",r["/committish"]="",r.committish=""):(r["#committish"]=a?"#"+a:"",r["/tree/committish"]=r.committish?"/"+r.treepath+"/"+r.committish:"",r["/committish"]=r.committish?"/"+r.committish:"",r.committish=r.committish||"master");var y=t;return Object.keys(r).forEach(function(h){y=y.replace(new RegExp("[{]"+h+"[}]","g"),r[h])}),e.noGitPlus?y.replace(/^git[+]/,""):y}};E.prototype.ssh=function(t){return this._fill(this.sshtemplate,t)};E.prototype.sshurl=function(t){return this._fill(this.sshurltemplate,t)};E.prototype.browse=function(t,e,r){return typeof t=="string"?(typeof e!="string"&&(r=e,e=null),this._fill(this.browsefiletemplate,V({fragment:e,path:t},r))):this._fill(this.browsetemplate,t)};E.prototype.docs=function(t){return this._fill(this.docstemplate,t)};E.prototype.bugs=function(t){return this._fill(this.bugstemplate,t)};E.prototype.https=function(t){return this._fill(this.httpstemplate,t)};E.prototype.git=function(t){return this._fill(this.gittemplate,t)};E.prototype.shortcut=function(t){return this._fill(this.shortcuttemplate,t)};E.prototype.path=function(t){return this._fill(this.pathtemplate,t)};E.prototype.tarball=function(t){var e=V({},t,{noCommittish:!1});return this._fill(this.tarballtemplate,e)};E.prototype.file=function(t,e){return this._fill(this.filetemplate,V({path:t},e))};E.prototype.getDefaultRepresentation=function(){return this.default};E.prototype.toString=function(t){return this.default&&typeof this[this.default]=="function"?this[this.default](t):this.sshurl(t)};var it,vt;function _e(){return vt||(vt=1,it=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}),it}var Ee=p;p.Node=B;p.create=p;function p(t){var e=this;if(e instanceof p||(e=new p),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(s){e.push(s)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)e.push(arguments[r]);return e}p.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e};p.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}};p.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}};p.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)we(this,arguments[t]);return this.length};p.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)Ie(this,arguments[t]);return this.length};p.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}};p.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}};p.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,i=0;r!==null;i++)t.call(e,r.value,i,this),r=r.next};p.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,i=this.length-1;r!==null;i--)t.call(e,r.value,i,this),r=r.prev};p.prototype.get=function(t){for(var e=0,r=this.head;r!==null&&e<t;e++)r=r.next;if(e===t&&r!==null)return r.value};p.prototype.getReverse=function(t){for(var e=0,r=this.tail;r!==null&&e<t;e++)r=r.prev;if(e===t&&r!==null)return r.value};p.prototype.map=function(t,e){e=e||this;for(var r=new p,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};p.prototype.mapReverse=function(t,e){e=e||this;for(var r=new p,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};p.prototype.reduce=function(t,e){var r,i=this.head;if(arguments.length>1)r=e;else if(this.head)i=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=0;i!==null;s++)r=t(r,i.value,s),i=i.next;return r};p.prototype.reduceReverse=function(t,e){var r,i=this.tail;if(arguments.length>1)r=e;else if(this.tail)i=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=this.length-1;i!==null;s--)r=t(r,i.value,s),i=i.prev;return r};p.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};p.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};p.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new p;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,s=this.head;s!==null&&i<t;i++)s=s.next;for(;s!==null&&i<e;i++,s=s.next)r.push(s.value);return r};p.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new p;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,s=this.tail;s!==null&&i>e;i--)s=s.prev;for(;s!==null&&i>t;i--,s=s.prev)r.push(s.value);return r};p.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var i=0,s=this.head;s!==null&&i<t;i++)s=s.next;for(var a=[],i=0;s&&i<e;i++)a.push(s.value),s=this.removeNode(s);s===null&&(s=this.tail),s!==this.head&&s!==this.tail&&(s=s.prev);for(var i=0;i<r.length;i++)s=Ce(this,s,r[i]);return a};p.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var i=r.prev;r.prev=r.next,r.next=i}return this.head=e,this.tail=t,this};function Ce(t,e,r){var i=e===t.head?new B(r,null,e,t):new B(r,e,e.next,t);return i.next===null&&(t.tail=i),i.prev===null&&(t.head=i),t.length++,i}function we(t,e){t.tail=new B(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function Ie(t,e){t.head=new B(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function B(t,e,r,i){if(!(this instanceof B))return new B(t,e,r,i);this.list=i,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{_e()(p)}catch{}const Ae=Ee,N=Symbol("max"),L=Symbol("length"),K=Symbol("lengthCalculator"),Q=Symbol("allowStale"),$=Symbol("maxAge"),U=Symbol("dispose"),yt=Symbol("noDisposeOnSet"),S=Symbol("lruList"),A=Symbol("cache"),It=Symbol("updateAgeOnGet"),nt=()=>1;class Re{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");this[N]=e.max||1/0;const r=e.length||nt;if(this[K]=typeof r!="function"?nt:r,this[Q]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[$]=e.maxAge||0,this[U]=e.dispose,this[yt]=e.noDisposeOnSet||!1,this[It]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[N]=e||1/0,X(this)}get max(){return this[N]}set allowStale(e){this[Q]=!!e}get allowStale(){return this[Q]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[$]=e,X(this)}get maxAge(){return this[$]}set lengthCalculator(e){typeof e!="function"&&(e=nt),e!==this[K]&&(this[K]=e,this[L]=0,this[S].forEach(r=>{r.length=this[K](r.value,r.key),this[L]+=r.length})),X(this)}get lengthCalculator(){return this[K]}get length(){return this[L]}get itemCount(){return this[S].length}rforEach(e,r){r=r||this;for(let i=this[S].tail;i!==null;){const s=i.prev;bt(this,e,i,r),i=s}}forEach(e,r){r=r||this;for(let i=this[S].head;i!==null;){const s=i.next;bt(this,e,i,r),i=s}}keys(){return this[S].toArray().map(e=>e.key)}values(){return this[S].toArray().map(e=>e.value)}reset(){this[U]&&this[S]&&this[S].length&&this[S].forEach(e=>this[U](e.key,e.value)),this[A]=new Map,this[S]=new Ae,this[L]=0}dump(){return this[S].map(e=>Z(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[S]}set(e,r,i){if(i=i||this[$],i&&typeof i!="number")throw new TypeError("maxAge must be a number");const s=i?Date.now():0,a=this[K](r,e);if(this[A].has(e)){if(a>this[N])return q(this,this[A].get(e)),!1;const d=this[A].get(e).value;return this[U]&&(this[yt]||this[U](e,d.value)),d.now=s,d.maxAge=i,d.value=r,this[L]+=a-d.length,d.length=a,this.get(e),X(this),!0}const c=new Oe(e,r,a,s,i);return c.length>this[N]?(this[U]&&this[U](e,r),!1):(this[L]+=c.length,this[S].unshift(c),this[A].set(e,this[S].head),X(this),!0)}has(e){if(!this[A].has(e))return!1;const r=this[A].get(e).value;return!Z(this,r)}get(e){return st(this,e,!0)}peek(e){return st(this,e,!1)}pop(){const e=this[S].tail;return e?(q(this,e),e.value):null}del(e){q(this,this[A].get(e))}load(e){this.reset();const r=Date.now();for(let i=e.length-1;i>=0;i--){const s=e[i],a=s.e||0;if(a===0)this.set(s.k,s.v);else{const c=a-r;c>0&&this.set(s.k,s.v,c)}}}prune(){this[A].forEach((e,r)=>st(this,r,!1))}}const st=(t,e,r)=>{const i=t[A].get(e);if(i){const s=i.value;if(Z(t,s)){if(q(t,i),!t[Q])return}else r&&(t[It]&&(i.value.now=Date.now()),t[S].unshiftNode(i));return s.value}},Z=(t,e)=>{if(!e||!e.maxAge&&!t[$])return!1;const r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[$]&&r>t[$]},X=t=>{if(t[L]>t[N])for(let e=t[S].tail;t[L]>t[N]&&e!==null;){const r=e.prev;q(t,e),e=r}},q=(t,e)=>{if(e){const r=e.value;t[U]&&t[U](r.key,r.value),t[L]-=r.length,t[A].delete(r.key),t[S].removeNode(e)}};class Oe{constructor(e,r,i,s,a){this.key=e,this.value=r,this.length=i,this.now=s,this.maxAge=a||0}}const bt=(t,e,r,i)=>{let s=r.value;Z(t,s)&&(q(t,r),t[Q]||(s=void 0)),s&&e.call(i,s.value,s.key,t)};var Pe=Re,at=Gt,xt=wt,Ue=lt.exports=Se,Le=Pe,ot=new Le({max:1e3}),Te={"git+ssh:":"sshurl","git+https:":"https","ssh:":"sshurl","git:":"git"};function De(t){return Te[t]||t.slice(0,-1)}var Ne={"git:":!0,"https:":!0,"git+https:":!0,"http:":!0,"git+http:":!0};lt.exports.fromUrl=function(t,e){if(typeof t=="string"){var r=t+JSON.stringify(e||{});return ot.has(r)||ot.set(r,$e(t,e)),ot.get(r)}};function $e(t,e){if(!(t==null||t==="")){var r=Me(Be(t)?"github:"+t:t),i=Fe(r),s=r.match(/^([^:]+):(?:[^@]+@)?(?:([^/]*)\/)?([^#]+)/),a=Object.keys(xt).map(function(c){try{var l=xt[c],d=null;i.auth&&Ne[i.protocol]&&(d=i.auth);var y=i.hash?decodeURIComponent(i.hash.substr(1)):null,h=null,j=null,m=null;if(s&&s[1]===c)h=s[2]&&decodeURIComponent(s[2]),j=decodeURIComponent(s[3].replace(/\.git$/,"")),m="shortcut";else{if(i.host&&i.host!==l.domain&&i.host.replace(/^www[.]/,"")!==l.domain||!l.protocols_re.test(i.protocol)||!i.path)return;var F=l.pathmatch,w=i.path.match(F);if(!w)return;w[1]!==null&&w[1]!==void 0&&(h=decodeURIComponent(w[1].replace(/^:/,""))),j=decodeURIComponent(w[2]),m=De(i.protocol)}return new Ue(c,h,d,j,y,m,e)}catch(I){if(!(I instanceof URIError))throw I}}).filter(function(c){return c});if(a.length===1)return a[0]}}function Be(t){return/^[^:@%/\s.-][^:@%/\s]*[/][^:@\s/%]+(?:#.*)?$/.test(t)}function Me(t){var e=at.parse(t);return e.protocol==="gist:"&&e.host&&!e.path?e.protocol+"/"+e.host:t}function Fe(t){var e=t.match(/^([^@]+)@([^:/]+):[/]?((?:[^/]+[/])?[^/]+?)(?:[.]git)?(#.*)?$/);if(!e){var r=at.parse(t);if(r.auth){const s=t.match(/[^@]+@[^:/]+/);if(s){var i=new at.URL(s[0]);r.auth=i.username||"",i.password&&(r.auth+=":"+i.password)}}return r}return{protocol:"git+ssh:",slashes:!0,auth:e[1],host:e[2],port:null,hostname:e[2],hash:e[4],search:null,query:null,pathname:"/"+e[3],path:"/"+e[3],href:"git+ssh://"+e[1]+"@"+e[2]+"/"+e[3]+(e[4]||"")}}var We=lt.exports,M={},R={},Ge=O&&O.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(R,"__esModule",{value:!0});R.setService=R.findService=R.getDefaultServiceConfig=R.getServiceConfig=void 0;const He=Ge(pe),Ke=St,At={},ct=t=>{At[t.name]={validate:t.schema.validate.bind(t.schema),defaultConfig:t.default}};R.setService=ct;ct({name:"auth",schema:Ke.authConfigSchema,default:{}});const Rt=t=>{if(!t)throw new Error("service name should not be empty");const e=At[t];if(!e)throw new Error(`service ${t} does not exist`);return e},Ot=(t,e,{validate:r}={})=>{const i=Rt(t),s=(0,He.default)(e||{}),{value:a,error:c}=i.validate(s);if(r&&c)throw new Error(`Invalid blocklet service config: ${c.details.map(l=>l.message).join(", ")}`);return a};R.getServiceConfig=Ot;const Pt=t=>{const{defaultConfig:e}=Rt(t);return e};R.getDefaultServiceConfig=Pt;const Ut=(t,e)=>{const r=[e];return(t||[]).find(i=>r.includes(i.name))};R.findService=Ut;R.default={getServiceConfig:Ot,getDefaultServiceConfig:Pt,findService:Ut,setService:ct};Object.defineProperty(M,"__esModule",{value:!0});M.fixAndValidateService=M.validateMeta=void 0;const Ve=St,qe=R,ze=t=>(!t.interfaces||!t.interfaces.length||t.interfaces.forEach(e=>{e.services&&e.services.length&&e.services.forEach(r=>{r.config=(0,qe.getServiceConfig)(r.name,r.config,{validate:!0})})}),t);M.fixAndValidateService=ze;const Lt=(t,{ensureFiles:e=!1,ensureDist:r=!1,ensureComponentStore:i=!0,ensureName:s=!1,skipValidateDidName:a=!1,schemaOptions:c={}}={})=>{const l=(0,Ve.createBlockletSchema)(null,{ensureFiles:e,ensureDist:r,ensureComponentStore:i,ensureName:s,skipValidateDidName:a,...c}),{value:d,error:y}=l.validate(t);if(y)throw new Error(`Invalid blocklet meta: ${y.details.map(h=>h.message).join(", ")}`);return d};M.validateMeta=Lt;M.default=Lt;(function(t){var e=O&&O.__createBinding||(Object.create?function(n,o,v,b){b===void 0&&(b=v);var g=Object.getOwnPropertyDescriptor(o,v);(!g||("get"in g?!o.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return o[v]}}),Object.defineProperty(n,b,g)}:function(n,o,v,b){b===void 0&&(b=v),n[b]=o[v]}),r=O&&O.__setModuleDefault||(Object.create?function(n,o){Object.defineProperty(n,"default",{enumerable:!0,value:o})}:function(n,o){n.default=o}),i=O&&O.__importStar||function(){var n=function(o){return n=Object.getOwnPropertyNames||function(v){var b=[];for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(b[b.length]=g);return b},n(o)};return function(o){if(o&&o.__esModule)return o;var v={};if(o!=null)for(var b=n(o),g=0;g<b.length;g++)b[g]!=="default"&&e(v,o,b[g]);return r(v,o),v}}(),s=O&&O.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(t,"__esModule",{value:!0}),t.fixService=t.fixInterfaces=t.parsePerson=t.formatPerson=t.fixName=t.fixTags=t.fixPerson=t.fixKeywords=t.fixFiles=t.fixRepository=t.fixRequired=void 0;const a=s(Ht),c=i(We),l=Kt,d=M;Object.defineProperty(t,"fixService",{enumerable:!0,get:function(){return d.fixAndValidateService}});const y=fe,h=(n,o)=>{n.description||(n.description=`Blocklet from ${o}`),n.version||(n.version=l.BLOCKLET_DEFAULT_VERSION)};t.fixRequired=h;const j=n=>{if(n.repository&&(typeof n.repository=="string"&&(n.repository={type:"git",url:n.repository}),n.repository.url)){const o=c.fromUrl(n.repository.url);o&&(n.repository.url=o.getDefaultRepresentation()==="shortcut"?o.https():o.toString())}};t.fixRepository=j;const m=n=>{Array.isArray(n.files)?n.files&&(n.files=n.files.filter(o=>!(!o||typeof o!="string"))):delete n.files};t.fixFiles=m;const F=n=>{typeof n.keywords=="string"&&(n.keywords=n.keywords.split(/,\s+/)),n.keywords&&!Array.isArray(n.keywords)?delete n.keywords:n.keywords&&(n.keywords=n.keywords.filter(o=>!(typeof o!="string"||!o)))};t.fixKeywords=F;const w=n=>{typeof n.tags=="string"&&(n.tags=n.tags.split(/,\s+/)),n.tags&&!Array.isArray(n.tags)?delete n.tags:n.tags&&(n.tags=n.tags.filter(o=>!(typeof o!="string"||!o)))};t.fixTags=w;const I=(n,o)=>(n.author&&(n.author=o(n.author)),["maintainers","contributors"].forEach(v=>{Array.isArray(n[v])&&(n[v]=n[v].map(o))}),n),W=n=>{if(!n)return"";if(typeof n=="string")return n;const o=n.name||"",v=n.url||n.web,b=v?` (${v})`:"",g=n.email||n.mail,x=g?` <${g}>`:"";return o+x+b};t.formatPerson=W;const T=n=>{if(typeof n!="string")return n;const o=n.match(/^([^(<]+)/),v=n.match(/\(([^)]+)\)/),b=n.match(/<([^>]+)>/),g={};return o&&o[0].trim()&&(g.name=o[0].trim()),b&&([,g.email]=b),v&&([,g.url]=v),g};t.parsePerson=T;const G=n=>(I(n,W),I(n,T),n);t.fixPerson=G;const _=(n,o=!0)=>{if(Array.isArray(n.interfaces)||(n.interfaces=[]),n.interfaces.length)return n.interfaces.forEach(x=>{x.type===l.BLOCKLET_INTERFACE_TYPE_WEB&&(x.protocol="http")}),n;const b=(0,a.default)(n,"capabilities.dynamicPathPrefix",!0)?l.BLOCKLET_DYNAMIC_PATH_PREFIX:"/",g=({type:x="web",name:k,path:J="/",protocol:tt="http",port:et=l.BLOCKLET_DEFAULT_PORT_NAME})=>{n.interfaces.push({type:x,name:k,path:J,prefix:b,port:et,protocol:tt})};return[l.BLOCKLET_INTERFACE_PUBLIC].forEach(x=>{n[x]&&g({name:x,path:n[x]})}),Array.isArray(n.exposeServices)&&n.exposeServices.forEach(x=>{g({type:"service",name:x.protocol,protocol:x.protocol,port:{internal:`BLOCKLET_${x.protocol}_PORT`.toUpperCase(),external:x.port}})}),o&&(delete n.publicUrl,delete n.adminUrl,delete n.configUrl,delete n.docUrl,delete n.exposeServices,n.capabilities&&delete n.capabilities.dynamicPathPrefix),n};t.fixInterfaces=_;const z=n=>{const{did:o}=n;try{(0,y.validateNewDid)(o),n.name=o}catch{}return n};t.fixName=z,t.default={fixRequired:h,fixRepository:j,fixFiles:m,fixKeywords:F,fixPerson:G,fixTags:w,fixName:z,formatPerson:W,parsePerson:T,fixInterfaces:_,fixService:d.fixAndValidateService}})(_t);function Tt({owner:t,locale:e}){return u.jsxs(jt,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.fullName,t.did?u.jsx(Vt,{sx:{lineHeight:"initial","&::before":{content:'"("'},"&::after":{content:'")"'}},did:t.did,compact:!0,size:14,locale:e}):null]})}Tt.propTypes={owner:C.object.isRequired,locale:C.string.isRequired};const Je="install-blocklet-from-URL",Dt=()=>{const[t,e]=de(Je,"[]",{raw:!0}),r=s=>{const a=s.trim(),c=JSON.parse(t),l=c.findIndex(d=>d===a);l!==0&&(l>0&&c.splice(l,1),c.length>=10&&c.splice(9),c.unshift(a),e(JSON.stringify(c)))},i=s=>{if(!s)return;const a=JSON.parse(t),c=s.trim(),l=a.findIndex(d=>d===c);l>-1&&(a.splice(l,1),e(JSON.stringify(a)))};return{urls:t?JSON.parse(t):[],addUrlRecord:r,removeUrlRecord:i}},Ye=qt(()=>({listItemText:{"& span":{display:"block",width:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}}));function ht(t){const{value:e,onValueChange:r,children:i,helperText:s}=t,{urls:a,removeUrlRecord:c}=Dt(),l=(y,h)=>{y.preventDefault(),y.stopPropagation(),c(h)},d=Ye();return u.jsxs(jt,{children:[u.jsx(ge,{freeSolo:!0,options:a,inputValue:e,onInputChange:(y,h)=>{r(h)},disableClearable:!0,popupIcon:null,renderInput:y=>zt.cloneElement(i,{...y}),renderOption:(y,h)=>P.createElement(Jt,{...y,key:h,secondaryAction:u.jsx(Yt,{edge:"end","aria-label":"delete",onClick:j=>l(j,h),children:u.jsx(me,{})})},u.jsx(ve,{role:void 0,dense:!0,sx:{paddingLeft:0,paddingRight:30,"&:hover":{backgroundColor:"transparent"}},children:u.jsx(Xt,{primary:h,className:d.listItemText})})),ListboxProps:{sx:{maxHeight:300,overflow:"auto"}}}),u.jsx(Qt,{style:{margin:0},children:s})]})}ht.propTypes={onValueChange:C.func,children:C.node,value:C.string,helperText:C.string};ht.defaultProps={onValueChange:()=>{},children:null,value:"",helperText:""};function Nt({defaultUrl:t,onCancel:e,onSuccess:r,onError:i,mode:s,handleText:a}){const{api:c}=Zt(),{api:l}=kt(),[d,y]=P.useState(!1),[h,j]=P.useState(""),{t:m,locale:F}=te(),w={dist:{}},[I,W]=P.useState(t),[T,G]=P.useState(t?1:0),[_,z]=P.useState(w),[n,o]=P.useState(!1),[v,b]=P.useState({}),g=s==="component",x=g?!0:!t,{addUrlRecord:k}=Dt(),J=async()=>{z(w),j(null),y(!0);let f=I.trim();!f.startsWith("https://")&&!f.startsWith("http://")&&!f.startsWith("file://")&&(f=`file://${f}`);try{const H=decodeURIComponent(f);try{new URL(H)}catch{throw new Error("Invalid URL")}const{meta:rt,inStore:Ft,registryUrl:Wt}=await c.getBlockletMetaFromUrl({input:{url:H}});z(rt),b({inStore:Ft,registryUrl:Wt,inputUrl:f}),k(f)}catch(H){console.error(H);const rt=`Blocklet Install failed: ${he(H)}`;j(rt),i(H)}finally{y(!1)}},tt=()=>{if(g){r({meta:_,...v}),e();return}y(!0),o(!0)},et=()=>{y(!1),o(!1),r({meta:_,...v}),e()},$t=()=>{y(!1),o(!1)};P.useEffect(()=>{t&&J()},[t]);const Bt=[{name:m("common.name"),value:ee.getDisplayName({meta:_},!0)},{name:m("common.version"),value:_.version},{name:m("common.did"),value:_.did?u.jsx(re,{did:_.did}):null},{name:m("common.author"),value:_.owner?u.jsx(Tt,{owner:_.owner,locale:F}):_t.formatPerson(_.author)},{name:m("blocklet.dist.downloadLink"),value:_.dist.tarball}],Mt=()=>d?u.jsx("div",{style:{height:200,width:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"},children:u.jsx(pt,{})}):_.did?u.jsx("div",{style:{paddingLeft:"10%"},children:Bt.map(f=>f.name===m("common.did")?u.jsx(mt,{valueComponent:"div",nameWidth:120,name:f.name,nameFormatter:()=>m("common.did"),children:f.value},f.name):u.jsx(mt,{valueComponent:"div",nameWidth:120,name:f.name,children:f.value},f.name))}):null,ut=[{label:m("blocklet.fromUrl.step0"),body:u.jsx(ie,{component:"div",children:u.jsx(ht,{style:{marginBottom:32},value:I,helperText:m("blocklet.fromUrl.description"),onValueChange:f=>{j(null),W(f)},children:u.jsx(ne,{label:m("blocklet.fromUrl.label"),autoComplete:"off",variant:"outlined",name:"url","data-cy":"blocklet-url-input",fullWidth:!0,autoFocus:!0,margin:"dense",value:I,onChange:f=>{j(null),W(f.target.value)},disabled:d,onKeyPress:f=>{f.key==="Enter"&&(f.preventDefault(),J(),G(1))}})})}),cancel:m("common.cancel"),confirm:m("common.next"),onCancel:e,onConfirm:()=>{J(),G(1)}},{label:m("blocklet.fromUrl.step1"),body:Mt(),cancel:m(x?"common.pre":"common.cancel"),confirm:(a==null?void 0:a.confirm)||m("blocklet.fromUrl.confirm"),onCancel:()=>{x?G(f=>f-1):e()},onConfirm:()=>{tt()}}],D=ut[T];return u.jsxs(u.Fragment,{children:[u.jsxs(se,{title:(a==null?void 0:a.title)||m("blocklet.fromUrl.title"),fullWidth:!0,maxWidth:"md",onClose:()=>D.onCancel(),showCloseButton:T===0,disableEscapeKeyDown:!0,open:!0,actions:u.jsxs(u.Fragment,{children:[D.cancel&&u.jsx(ft,{onClick:f=>{f.stopPropagation(),j(null),D.onCancel()},color:"inherit",children:D.cancel||m("common.cancel")}),u.jsxs(ft,{onClick:f=>{f.stopPropagation(),D.onConfirm()},color:"primary","data-cy":"install-blocklet-next-step",disabled:d||!I||h,variant:"contained",autoFocus:!0,style:{marginLeft:8},children:[d&&T===0&&u.jsx(pt,{size:16}),D.confirm]})]}),children:[x&&u.jsx(ye,{alternativeLabel:!0,activeStep:T,children:ut.map(({label:f})=>u.jsx(be,{children:u.jsx(xe,{children:f})},f))}),u.jsx(oe,{component:"div",style:{marginTop:24},children:D.body}),!!h&&u.jsx(ae,{severity:"error",style:{width:"100%",marginTop:8},children:h})]}),_&&n&&u.jsx(le,{popup:!0,open:!0,forceConnected:!1,className:"launch-from-url-auth",action:"launch-free-blocklet-by-session",checkFn:l.get,checkTimeout:5*60*1e3,onSuccess:et,extraParams:{title:_.title,wt:ce(_),blockletMetaUrl:decodeURIComponent(I.trim())},messages:{title:m("setup.keyPair.title"),scan:m("setup.keyPair.scan"),confirm:m("setup.keyPair.confirm"),success:m("setup.keyPair.success")},onClose:$t})]})}Nt.propTypes={defaultUrl:C.string,onCancel:C.func.isRequired,onSuccess:C.func.isRequired,onError:C.func,mode:C.oneOf(["install","component"]),handleText:C.object};Nt.defaultProps={onError:()=>{},defaultUrl:"",mode:"install",handleText:{}};export{je as B,Nt as I,Tt as a,_t as f};
@@ -1,4 +1,4 @@
1
- import{bY as T,j as s,P as i,n as v,r as m,e as A,bh as E,D as H,m as j,o as $,aS as M,cV as q,cv as b,a2 as F,cW as U,A as Y,cX as B,cE as O,cY as S,cZ as N,av as V,K as L,bb as W,b7 as X,bt as K,C as J}from"./index-DTI4BkNW.js";import{R as Z}from"./index-DrUjokqV.js";import{N as G}from"./index-RCmuyDMR.js";import{C as z}from"./index-u0GcnVeV.js";import{b as Q}from"./sdk-Bg9zUQQV.js";import{w as ee}from"./wrap-locale-CYxNfqSO.js";const se=T(s.jsx("path",{d:"M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2m0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19z"}),"Inbox");function P({invitation:e,createPassportSvg:a,passportColor:c}){const[p,o]=m.useState(!1),{t}=m.useContext(A),l=m.useMemo(()=>(e.role.title||e.role.name).toUpperCase(),[e.role.title,e.role.name]),u=m.useMemo(()=>a({title:l,issuer:e.info.name,issuerDid:e.info.appDid,ownerName:"Your Name",ownerDid:e.info.appDid,preferredColor:e.info.passportColor||c,extra:e.passportExpireTime?{key:"Exp",value:E(e.passportExpireTime).format("YYYY-MM-DD HH:mm:ss")}:void 0}),[e,l]),x=m.useCallback(()=>{o(!0)},[]),r=m.useCallback(()=>{o(!1)},[]);return s.jsxs(s.Fragment,{children:[s.jsx(re,{children:s.jsxs("div",{className:"invite-passport__card",onClick:x,children:[!!e.display&&s.jsx(G,{data:e.display,style:{width:"100%",height:"100%"}}),!e.display&&s.jsx("div",{className:"invite-passport__cover",dangerouslySetInnerHTML:{__html:u}})]})}),s.jsx(H,{open:p,title:t("invite.viewPermission"),PaperProps:{style:{minHeight:"auto",paddingBottom:"20px"}},onClose:r,children:e.role.permissions&&e.role.permissions.length>0?s.jsx("ul",{style:{listStyle:"circle",padding:"0 20px"},children:e.role.permissions.map(n=>s.jsx("li",{style:{listStyle:"circle"},children:n.description},n.name))}):s.jsxs("div",{style:{color:"#999",textAlign:"center"},children:[s.jsx(se,{style:{width:"30px",height:"30px"}}),s.jsx("div",{children:t("invite.emptyPermission")})]})})]})}P.propTypes={invitation:i.object.isRequired,createPassportSvg:i.func.isRequired,passportColor:i.string};P.defaultProps={passportColor:"auto"};const re=v.div`
1
+ import{bW as T,j as s,P as i,n as v,r as m,e as A,bh as E,D as H,m as j,o as $,aS as M,cW as q,ct as b,a2 as F,cX as U,A as B,cY as O,cC as W,cZ as S,c_ as N,av as Y,K as L,bb as V,b7 as X,br as K,C as J}from"./index-CGargw6n.js";import{R as Z}from"./index-BSVtXZA5.js";import{N as G}from"./index-U1KqpW6O.js";import{C as z}from"./index-fFK_YyO8.js";import{b as Q}from"./sdk-dj0ARauA.js";import{w as ee}from"./wrap-locale-DoH7AJX_.js";const se=T(s.jsx("path",{d:"M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2m0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19z"}),"Inbox");function P({invitation:e,createPassportSvg:a,passportColor:c}){const[p,o]=m.useState(!1),{t}=m.useContext(A),l=m.useMemo(()=>(e.role.title||e.role.name).toUpperCase(),[e.role.title,e.role.name]),u=m.useMemo(()=>a({title:l,issuer:e.info.name,issuerDid:e.info.appDid,ownerName:"Your Name",ownerDid:e.info.appDid,preferredColor:e.info.passportColor||c,extra:e.passportExpireTime?{key:"Exp",value:E(e.passportExpireTime).format("YYYY-MM-DD HH:mm:ss")}:void 0}),[e,l]),x=m.useCallback(()=>{o(!0)},[]),r=m.useCallback(()=>{o(!1)},[]);return s.jsxs(s.Fragment,{children:[s.jsx(re,{children:s.jsxs("div",{className:"invite-passport__card",onClick:x,children:[!!e.display&&s.jsx(G,{data:e.display,style:{width:"100%",height:"100%"}}),!e.display&&s.jsx("div",{className:"invite-passport__cover",dangerouslySetInnerHTML:{__html:u}})]})}),s.jsx(H,{open:p,title:t("invite.viewPermission"),PaperProps:{style:{minHeight:"auto",paddingBottom:"20px"}},onClose:r,children:e.role.permissions&&e.role.permissions.length>0?s.jsx("ul",{style:{listStyle:"circle",padding:"0 20px"},children:e.role.permissions.map(n=>s.jsx("li",{style:{listStyle:"circle"},children:n.description},n.name))}):s.jsxs("div",{style:{color:"#999",textAlign:"center"},children:[s.jsx(se,{style:{width:"30px",height:"30px"}}),s.jsx("div",{children:t("invite.emptyPermission")})]})})]})}P.propTypes={invitation:i.object.isRequired,createPassportSvg:i.func.isRequired,passportColor:i.string};P.defaultProps={passportColor:"auto"};const re=v.div`
2
2
  display: flex;
3
3
  max-width: 350px;
4
4
  margin: 30px auto;
@@ -39,7 +39,7 @@ import{bY as T,j as s,P as i,n as v,r as m,e as A,bh as E,D as H,m as j,o as $,a
39
39
  line-height: 18px;
40
40
  color: ${({theme:e})=>e.palette.primary.main};
41
41
  }
42
- `;function k({invitation:e,onLogin:a,onReceive:c,inService:p,action:o}){var f;const{t,locale:l}=j(),{connectApi:u}=$(),{getPassportId:x}=O();let r;typeof window<"u"&&(r=(f=window==null?void 0:window.blocklet)==null?void 0:f.componentId);const n=M({loading:!1,extraParams:{baseUrl:window.location.origin,componentId:r,sourceAppPid:(e==null?void 0:e.sourceAppPid)||null}});q(async()=>{var g;const d=x();if(d&&(n.extraParams.passportId=d),o==="invite"?n.extraParams.inviteId=e.inviteId:o==="issue-passport"&&(n.extraParams.inviteId=e.inviteId,n.extraParams.id=e.inviteId),p&&((g=e==null?void 0:e.receiver)!=null&&g.did)){n.loading=!0;try{const w=await Q.user.getUserPublicInfo({did:e.receiver.did});w!=null&&w.sourceAppPid&&(n.extraParams.sourceAppPid=w.sourceAppPid)}finally{n.loading=!1}}});const _=b(()=>{u.close()}),h=b((...d)=>{u.close(),a(...d)}),y=b(()=>{var d,g;if(typeof c=="function"){c();return}p?u.open({action:o,className:"connect",forceConnected:((d=e==null?void 0:e.receiver)==null?void 0:d.did)||!1,autoConnect:!1,disableSwitchApp:!0,locale:l,extraParams:{provider:"wallet",...n.extraParams},baseUrl:window.location.origin,prefix:F(window.location.origin,Y.WELLKNOWN_SERVICE_PATH_PREFIX,U),messages:{title:t("receive.dialog.title"),scan:t("receive.dialog.scan"),confirm:t("receive.dialog.confirm"),success:t("receive.dialog.success")},onSuccess:h,onClose:_,passkeyBehavior:"both"},{locale:l}):u.open({action:o,className:"connect",forceConnected:((g=e==null?void 0:e.receiver)==null?void 0:g.did)||!1,autoConnect:!1,disableSwitchApp:!0,locale:l,extraParams:n.extraParams,messages:{title:t("receive.dialog.title"),scan:t("receive.dialog.scan"),confirm:t("receive.dialog.confirm"),success:t("receive.dialog.success")},onSuccess:h,onClose:_,passkeyBehavior:"both"})});return s.jsxs(ie,{children:[s.jsx(z,{loading:n.loading,size:"large",variant:"contained",className:"invite-receive__button","data-cy":"invite-receive-passport",color:"primary",onClick:y,children:t("invite.receive")}),s.jsxs("div",{className:"invite-receive__until",children:[t("invite.validUntil"),B(e.expireDate,l)]})]})}k.propTypes={invitation:i.object.isRequired,onLogin:i.func,onReceive:i.func,inService:i.bool,action:i.oneOf(["invite","issue-passport"])};k.defaultProps={onLogin:()=>{},onReceive:null,inService:!1,action:"invite"};const ie=v.div`
42
+ `;function k({invitation:e,onLogin:a,onReceive:c,inService:p,action:o}){var f;const{t,locale:l}=j(),{connectApi:u}=$(),{getPassportId:x}=W();let r;typeof window<"u"&&(r=(f=window==null?void 0:window.blocklet)==null?void 0:f.componentId);const n=M({loading:!1,extraParams:{baseUrl:window.location.origin,componentId:r,sourceAppPid:(e==null?void 0:e.sourceAppPid)||null}});q(async()=>{var g;const d=x();if(d&&(n.extraParams.passportId=d),o==="invite"?n.extraParams.inviteId=e.inviteId:o==="issue-passport"&&(n.extraParams.inviteId=e.inviteId,n.extraParams.id=e.inviteId),p&&((g=e==null?void 0:e.receiver)!=null&&g.did)){n.loading=!0;try{const w=await Q.user.getUserPublicInfo({did:e.receiver.did});w!=null&&w.sourceAppPid&&(n.extraParams.sourceAppPid=w.sourceAppPid)}finally{n.loading=!1}}});const _=b(()=>{u.close()}),h=b((...d)=>{u.close(),a(...d)}),y=b(()=>{var d,g;if(typeof c=="function"){c();return}p?u.open({action:o,className:"connect",forceConnected:((d=e==null?void 0:e.receiver)==null?void 0:d.did)||!1,autoConnect:!1,disableSwitchApp:!0,locale:l,extraParams:{provider:"wallet",...n.extraParams},baseUrl:window.location.origin,prefix:F(window.location.origin,B.WELLKNOWN_SERVICE_PATH_PREFIX,U),messages:{title:t("receive.dialog.title"),scan:t("receive.dialog.scan"),confirm:t("receive.dialog.confirm"),success:t("receive.dialog.success")},onSuccess:h,onClose:_,passkeyBehavior:"both"},{locale:l}):u.open({action:o,className:"connect",forceConnected:((g=e==null?void 0:e.receiver)==null?void 0:g.did)||!1,autoConnect:!1,disableSwitchApp:!0,locale:l,extraParams:n.extraParams,messages:{title:t("receive.dialog.title"),scan:t("receive.dialog.scan"),confirm:t("receive.dialog.confirm"),success:t("receive.dialog.success")},onSuccess:h,onClose:_,passkeyBehavior:"both"})});return s.jsxs(ie,{children:[s.jsx(z,{loading:n.loading,size:"large",variant:"contained",className:"invite-receive__button","data-cy":"invite-receive-passport",color:"primary",onClick:y,children:t("invite.receive")}),s.jsxs("div",{className:"invite-receive__until",children:[t("invite.validUntil"),O(e.expireDate,l)]})]})}k.propTypes={invitation:i.object.isRequired,onLogin:i.func,onReceive:i.func,inService:i.bool,action:i.oneOf(["invite","issue-passport"])};k.defaultProps={onLogin:()=>{},onReceive:null,inService:!1,action:"invite"};const ie=v.div`
43
43
  text-align: center;
44
44
  .invite-receive__logo-wrapper {
45
45
  display: inline-flex;
@@ -74,7 +74,7 @@ import{bY as T,j as s,P as i,n as v,r as m,e as A,bh as E,D as H,m as j,o as $,a
74
74
  .invite-receive__link {
75
75
  color: ${({theme:e})=>e.palette.primary.main};
76
76
  }
77
- `;function R({onLogin:e}){const{t:a}=j();return s.jsx(te,{children:s.jsx(z,{size:"large",variant:"contained",className:"invite-receive__button","data-cy":"invite-receive-passport",color:"primary",onClick:()=>e(),children:a("common.connect")})})}R.propTypes={onLogin:i.func};R.defaultProps={onLogin:()=>{}};const te=v.div`
77
+ `;function C({onLogin:e}){const{t:a}=j();return s.jsx(te,{children:s.jsx(z,{size:"large",variant:"contained",className:"invite-receive__button","data-cy":"invite-receive-passport",color:"primary",onClick:()=>e(),children:a("common.connect")})})}C.propTypes={onLogin:i.func};C.defaultProps={onLogin:()=>{}};const te=v.div`
78
78
  text-align: center;
79
79
  .invite-receive__logo-wrapper {
80
80
  display: inline-flex;
@@ -109,7 +109,7 @@ import{bY as T,j as s,P as i,n as v,r as m,e as A,bh as E,D as H,m as j,o as $,a
109
109
  .invite-receive__link {
110
110
  color: ${({theme:e})=>e.palette.primary.main};
111
111
  }
112
- `;function D({invitation:e}){const{t:a}=j(),c=m.useMemo(()=>(e.role.title||e.role.name).toUpperCase(),[e.role.title,e.role.name]),p=m.useMemo(()=>a("invite.message",{name:"{{name}}",role:c,dapp:"{{dapp}}"}),[a,c]),o=S(e.info.chainHost,e.inviter.did,"account"),t=N(p,{name(){return o?s.jsx("a",{target:"_blank",href:o,className:"invite-user__link",rel:"noreferrer",children:e.inviter.fullName},"name"):e.inviter.fullName},dapp(){return s.jsx("a",{target:"_blank",href:e.info.url,className:"invite-user__link",rel:"noreferrer",children:e.info.name},"dapp")}});return s.jsxs(ne,{children:[s.jsx(V,{did:e.inviter.did,src:encodeURI(e.inviter.avatar),size:80,shape:"circle",variant:"circle"}),s.jsx("div",{className:"invite-user__message",children:t})]})}D.propTypes={invitation:i.object.isRequired};const ne=v.div`
112
+ `;function D({invitation:e}){const{t:a}=j(),c=m.useMemo(()=>(e.role.title||e.role.name).toUpperCase(),[e.role.title,e.role.name]),p=m.useMemo(()=>a("invite.message",{name:"{{name}}",role:c,dapp:"{{dapp}}"}),[a,c]),o=S(e.info.chainHost,e.inviter.did,"account"),t=N(p,{name(){return o?s.jsx("a",{target:"_blank",href:o,className:"invite-user__link",rel:"noreferrer",children:e.inviter.fullName},"name"):e.inviter.fullName},dapp(){return s.jsx("a",{target:"_blank",href:e.info.url,className:"invite-user__link",rel:"noreferrer",children:e.info.name},"dapp")}});return s.jsxs(ne,{children:[s.jsx(Y,{did:e.inviter.did,src:encodeURI(e.inviter.avatar),size:80,shape:"circle",variant:"circle"}),s.jsx("div",{className:"invite-user__message",children:t})]})}D.propTypes={invitation:i.object.isRequired};const ne=v.div`
113
113
  display: flex;
114
114
  flex-direction: column;
115
115
  justify-content: center;
@@ -132,7 +132,7 @@ import{bY as T,j as s,P as i,n as v,r as m,e as A,bh as E,D as H,m as j,o as $,a
132
132
  .invite-user__link {
133
133
  color: ${({theme:e})=>e.palette.primary.main};
134
134
  }
135
- `;function C({invitation:e,type:a}){const{t:c}=j(),p=m.useMemo(()=>c("invite.success",{dapp:"{{dapp}}"}),[c]),o=S(e.info.chainHost,e.inviter.did,"account"),t=a==="receiver"?e.receiver:e.inviter,l=N(p,{name(){return o?s.jsx("a",{target:"_blank",href:o,className:"invite-user__link",rel:"noreferrer",children:t.fullName},"name"):t.fullName},dapp(){return s.jsx("a",{target:"_blank",href:e.info.url,className:"invite-user__link",rel:"noreferrer",children:e.info.name},"dapp")}});return s.jsxs(oe,{children:[s.jsx(L,{pt:1,color:"success.main",children:s.jsx(W,{style:{fontSize:80}})}),s.jsx("div",{className:"invite-user__message",children:l})]})}C.propTypes={invitation:i.object.isRequired,type:i.oneOf(["inviter","receiver"])};C.defaultProps={type:"inviter"};const oe=v.div`
135
+ `;function R({invitation:e,type:a}){const{t:c}=j(),p=m.useMemo(()=>c("invite.success",{dapp:"{{dapp}}"}),[c]),o=S(e.info.chainHost,e.inviter.did,"account"),t=a==="receiver"?e.receiver:e.inviter,l=N(p,{name(){return o?s.jsx("a",{target:"_blank",href:o,className:"invite-user__link",rel:"noreferrer",children:t.fullName},"name"):t.fullName},dapp(){return s.jsx("a",{target:"_blank",href:e.info.url,className:"invite-user__link",rel:"noreferrer",children:e.info.name},"dapp")}});return s.jsxs(oe,{children:[s.jsx(L,{pt:1,color:"success.main",children:s.jsx(V,{style:{fontSize:80}})}),s.jsx("div",{className:"invite-user__message",children:l})]})}R.propTypes={invitation:i.object.isRequired,type:i.oneOf(["inviter","receiver"])};R.defaultProps={type:"inviter"};const oe=v.div`
136
136
  display: flex;
137
137
  flex-direction: column;
138
138
  justify-content: center;
@@ -155,7 +155,7 @@ import{bY as T,j as s,P as i,n as v,r as m,e as A,bh as E,D as H,m as j,o as $,a
155
155
  .invite-user__link {
156
156
  color: ${({theme:e})=>e.palette.primary.main};
157
157
  }
158
- `;function I({getDataFn:e,passportColor:a,createPassportSvg:c,onLoginSuccess:p,checkFn:o,onReceive:t,inService:l,action:u,status:x}){var y,f,d;const r=K(e);if(r!=null&&r.loading)return s.jsx(J,{});if(r!=null&&r.error)return s.jsx(Z,{status:"404",title:(f=(y=r==null?void 0:r.error)==null?void 0:y.response)==null?void 0:f.data,description:""});const n=x==="success"||((d=r==null?void 0:r.data)==null?void 0:d.status)==="success",_=n?C:D,h=n?R:k;return s.jsx(ae,{className:"page-invite__wrapper",children:r!=null&&r.data?s.jsxs(L,{className:"page-invite__card",children:[s.jsx(_,{invitation:r.data}),s.jsx(P,{invitation:r.data,action:u,createPassportSvg:c,passportColor:a}),s.jsx(h,{invitation:r.data,action:u,onLogin:p,checkFn:o,onReceive:t,inService:l})]}):null})}I.propTypes={getDataFn:i.func.isRequired,checkFn:i.func.isRequired,createPassportSvg:i.func.isRequired,onLoginSuccess:i.func,onReceive:i.func,passportColor:i.string,inService:i.bool,action:i.oneOf(["invite","issue-passpor"]),status:i.oneOf(["success",""])};I.defaultProps={onLoginSuccess:()=>{},passportColor:"auto",onReceive:null,inService:!1,action:"invite",status:""};const ae=X("div")`
158
+ `;function I({getDataFn:e,passportColor:a,createPassportSvg:c,onLoginSuccess:p,checkFn:o,onReceive:t,inService:l,action:u,status:x}){var y,f,d;const r=K(e);if(r!=null&&r.loading)return s.jsx(J,{});if(r!=null&&r.error)return s.jsx(Z,{status:"404",title:(f=(y=r==null?void 0:r.error)==null?void 0:y.response)==null?void 0:f.data,description:""});const n=x==="success"||((d=r==null?void 0:r.data)==null?void 0:d.status)==="success",_=n?R:D,h=n?C:k;return s.jsx(ae,{className:"page-invite__wrapper",children:r!=null&&r.data?s.jsxs(L,{className:"page-invite__card",children:[s.jsx(_,{invitation:r.data}),s.jsx(P,{invitation:r.data,action:u,createPassportSvg:c,passportColor:a}),s.jsx(h,{invitation:r.data,action:u,onLogin:p,checkFn:o,onReceive:t,inService:l})]}):null})}I.propTypes={getDataFn:i.func.isRequired,checkFn:i.func.isRequired,createPassportSvg:i.func.isRequired,onLoginSuccess:i.func,onReceive:i.func,passportColor:i.string,inService:i.bool,action:i.oneOf(["invite","issue-passpor"]),status:i.oneOf(["success",""])};I.defaultProps={onLoginSuccess:()=>{},passportColor:"auto",onReceive:null,inService:!1,action:"invite",status:""};const ae=X("div")`
159
159
  max-width: 460px;
160
160
  max-height: 650px;
161
161
  min-height: 450px;
@@ -0,0 +1 @@
1
+ import{bk as i,ga as e}from"./index-CGargw6n.js";const a=e;var o=(r,t)=>a(r)===a(t);const P=i(o);export{P as i};