@abtnode/blocklet-services 1.16.26-beta-5251ab18 → 1.16.26-beta-351de484

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 (267) hide show
  1. package/api/libs/auth/adapters/apple.js +78 -0
  2. package/api/libs/auth/adapters/auth0.js +56 -0
  3. package/api/libs/auth/adapters/facebook.js +34 -0
  4. package/api/libs/auth/adapters/github.js +75 -0
  5. package/api/libs/auth/adapters/google.js +66 -0
  6. package/api/libs/auth/adapters/twitter.js +22 -0
  7. package/api/libs/auth/index.js +170 -0
  8. package/api/routes/federated.js +23 -1
  9. package/api/routes/oauth.js +257 -102
  10. package/api/services/auth/connect/receive-transfer-app-owner.js +7 -1
  11. package/api/services/oauth/index.js +70 -0
  12. package/api/util/federated.js +2 -2
  13. package/dist/assets/{Add-Bk5PVfmO.js → Add-C69qn2wR.js} +1 -1
  14. package/dist/assets/{AddBox-D5JAgq6v.js → AddBox-B6Fwg2Rf.js} +1 -1
  15. package/dist/assets/{Alert-BW0BXLCA.js → Alert-ssp0y7Ib.js} +1 -1
  16. package/dist/assets/{ArrowDropDown-duzp9dpl.js → ArrowDropDown-BP0ud9Hj.js} +1 -1
  17. package/dist/assets/{Avatar-HGbeW7TM.js → Avatar-D2tnGRpU.js} +1 -1
  18. package/dist/assets/{ButtonGroup-DPyBbsws.js → ButtonGroup-BLLuxmvy.js} +1 -1
  19. package/dist/assets/{CheckCircle-BM1wWcPP.js → CheckCircle-BfaSnFeT.js} +1 -1
  20. package/dist/assets/{ChevronRight-yW5aFcR7.js → ChevronRight-Cy-7I5by.js} +1 -1
  21. package/dist/assets/{CloseOutlined-f8LbKdKG.js → CloseOutlined-sn7xb1bx.js} +1 -1
  22. package/dist/assets/{Delete-BFnYNmMq.js → Delete-B2AHSgLp.js} +1 -1
  23. package/dist/assets/{DeleteOutline-BlvyMWjx.js → DeleteOutline-CoZFf1fL.js} +1 -1
  24. package/dist/assets/{Done-GZB4BBQK.js → Done-DIK-gyz7.js} +1 -1
  25. package/dist/assets/{Download-BaAfTxup.js → Download-DTMBVNgK.js} +1 -1
  26. package/dist/assets/{Edit-SHYieh_N.js → Edit-6i4-SV5e.js} +1 -1
  27. package/dist/assets/{EditIcon-nbG3lw43.js → EditIcon-DR2M6B2a.js} +1 -1
  28. package/dist/assets/Error-D5jNQIhZ.js +1 -0
  29. package/dist/assets/{ExpandMore-BcgzaLXP.js → ExpandMore-BlRkbxIp.js} +1 -1
  30. package/dist/assets/{FilterList-CemilOeU.js → FilterList-5-9UBP9o.js} +4 -4
  31. package/dist/assets/{FormControl-B_aaPeMx.js → FormControl-DqRtQrj4.js} +1 -1
  32. package/dist/assets/{FormControlLabel-B8AYq1Fg.js → FormControlLabel-CgWEo7K_.js} +1 -1
  33. package/dist/assets/{FormGroup-DjKYSpqL.js → FormGroup-BmQQZp_5.js} +1 -1
  34. package/dist/assets/{Google-CaRM9q9Z.js → Google-Dqg-7vso.js} +4 -4
  35. package/dist/assets/{Grid-D86Ruwaf.js → Grid-BIu6B9VD.js} +1 -1
  36. package/dist/assets/{Hidden-6es5MMPN.js → Hidden-CyJIFPqO.js} +1 -1
  37. package/dist/assets/{InfoOutlined-4hnoKWhJ.js → InfoOutlined-BrDpDVIb.js} +1 -1
  38. package/dist/assets/{InputAdornment-CI7c7_VR.js → InputAdornment-4xRIAUiI.js} +1 -1
  39. package/dist/assets/{InputLabel-Cfq4kSY6.js → InputLabel-Ci8Zez4U.js} +1 -1
  40. package/dist/assets/{LastPage-B7f-FFHR.js → LastPage-u0X1CCrf.js} +1 -1
  41. package/dist/assets/{Launch-Bspy6S12.js → Launch-CPOdFkdd.js} +1 -1
  42. package/dist/assets/{LaunchOutlined-CmaY0eVc.js → LaunchOutlined-BFmhp0eE.js} +1 -1
  43. package/dist/assets/{Link-CmWERGfF.js → Link-3QVwMQPk.js} +1 -1
  44. package/dist/assets/{ListItemText-BkMl1tkH.js → ListItemText-BbCA9KKV.js} +1 -1
  45. package/dist/assets/{LockIcon-g4En0fjm.js → LockIcon-BH8DxlZk.js} +1 -1
  46. package/dist/assets/{Loop-BSp9gEZ9.js → Loop-DH87MBn_.js} +1 -1
  47. package/dist/assets/{MoreHoriz-DnI1QPyb.js → MoreHoriz-BgseW-ge.js} +1 -1
  48. package/dist/assets/{MoreVert-1OIhp21J.js → MoreVert-K_1niM7c.js} +1 -1
  49. package/dist/assets/{OpenInNew-DAAhUmMK.js → OpenInNew-CjFvxH6M.js} +1 -1
  50. package/dist/assets/{Pagination-Dg6BaPHN.js → Pagination-DKihrHVe.js} +2 -2
  51. package/dist/assets/{PlayArrow-D_MZJM3t.js → PlayArrow-DOP79lp-.js} +1 -1
  52. package/dist/assets/{RadioGroup-CXLz4lFh.js → RadioGroup-YSjZvhX-.js} +1 -1
  53. package/dist/assets/{Search-DAh0uWGv.js → Search-BR5ea3vd.js} +1 -1
  54. package/dist/assets/{Select-Cgn3Vg5m.js → Select-CKfMC7P9.js} +2 -2
  55. package/dist/assets/{ServerLogo-CSZtPVVb.js → ServerLogo-C8axw3cY.js} +1 -1
  56. package/dist/assets/{Skeleton-D-4kr8ZC.js → Skeleton-DlvCFRkz.js} +3 -3
  57. package/dist/assets/{Slider-DF1W4LCK.js → Slider-BR3lL8ok.js} +1 -1
  58. package/dist/assets/{Stepper-C8vmf5Xt.js → Stepper-CQAZ_wrh.js} +1 -1
  59. package/dist/assets/{TableRow-D4ZVEGDR.js → TableRow-G_vHt3-a.js} +2 -2
  60. package/dist/assets/{TextField-DhdT-agz.js → TextField-DvirKXAG.js} +1 -1
  61. package/dist/assets/{Toolbar-CEiHPS82.js → Toolbar-BwsW1-XD.js} +1 -1
  62. package/dist/assets/{ViewList-PgnY-32h.js → ViewList-DRQAW-9s.js} +1 -1
  63. package/dist/assets/access-control-CjZfkzkf.js +13 -0
  64. package/dist/assets/{actions-DQHOwUAb.js → actions-BJosy9X2.js} +1 -1
  65. package/dist/assets/{add-component-core-NVq1_6cn.js → add-component-core-Bd75KmSE.js} +28 -28
  66. package/dist/assets/add-resource-Blgo6VIb.js +1 -0
  67. package/dist/assets/{addon-Dtevz_vd.js → addon-BdxxNkJH.js} +1 -1
  68. package/dist/assets/{analytics-CvYG8nhu.js → analytics-2367oE4k.js} +8 -8
  69. package/dist/assets/api-DcYvzDkD.js +1 -0
  70. package/dist/assets/ar-B34f4HdK.js +1 -0
  71. package/dist/assets/ar-D80LEtfP.js +1 -0
  72. package/dist/assets/{audit-logs-D--qJqXp.js → audit-logs-C9bazLVN.js} +4 -4
  73. package/dist/assets/{button-DbiqtNU7.js → button-DbDB2qx6.js} +1 -1
  74. package/dist/assets/{click-to-copy-xb_2luih.js → click-to-copy-CZvSRIGN.js} +1 -1
  75. package/dist/assets/{complete-DiC3uh0z.js → complete-C8SMtDzc.js} +4 -4
  76. package/dist/assets/{component-BjEDMxHG.js → component-DAWLQ6nL.js} +4 -4
  77. package/dist/assets/{config-Co7kvflu.js → config-DY1CerHN.js} +1 -1
  78. package/dist/assets/{config-BvXbpv5O.js → config-DpteWrvn.js} +2 -2
  79. package/dist/assets/{config-navigation-CG7yJKS1.js → config-navigation-DUYmMrZ9.js} +3 -3
  80. package/dist/assets/{config-space-6tKGUs7Q.js → config-space-B7Cgf5Se.js} +1 -1
  81. package/dist/assets/confirm-pPzim8uI.js +7 -0
  82. package/dist/assets/{connect-WHn9zWaL.js → connect-4dSo0Eiu.js} +1 -1
  83. package/dist/assets/{connect-CriqyaGA.js → connect-M2gGxpP6.js} +1 -1
  84. package/dist/assets/connect-to-B8kCNKHN.js +54 -0
  85. package/dist/assets/{content-layout-zI3u8r3r.js → content-layout-6_5eggY7.js} +1 -1
  86. package/dist/assets/{dashboard-YqbHS82F.js → dashboard-nWvY-y5T.js} +10 -10
  87. package/dist/assets/de-CbWSpQPN.js +1 -0
  88. package/dist/assets/de-R8SpyfWD.js +1 -0
  89. package/dist/assets/{did-address-YDP590gT.js → did-address-CL3Ygw6p.js} +1 -1
  90. package/dist/assets/domain-list-D3SCkX5b.js +12 -0
  91. package/dist/assets/domain-ngITiwlU.js +9 -0
  92. package/dist/assets/es-D2WPMiOg.js +1 -0
  93. package/dist/assets/es-DQJXbL8c.js +1 -0
  94. package/dist/assets/exchange-passport-D3hdhtRp.js +1 -0
  95. package/dist/assets/{fallback-DVviDIIg.js → fallback-C7-7MBkn.js} +1 -1
  96. package/dist/assets/fr-BU_67rSB.js +1 -0
  97. package/dist/assets/fr-ojA_joLk.js +1 -0
  98. package/dist/assets/{fuel-DOgsE52q.js → fuel-Cc2B50AI.js} +1 -1
  99. package/dist/assets/{fullpage-DRlR-ssw.js → fullpage-Dw6TVBrW.js} +1 -1
  100. package/dist/assets/hi-BQAxHgmg.js +1 -0
  101. package/dist/assets/hi-D5wWKqkp.js +1 -0
  102. package/dist/assets/home-xAHytUWc.js +1 -0
  103. package/dist/assets/id-BerMjI8d.js +1 -0
  104. package/dist/assets/id-Do44PG5N.js +1 -0
  105. package/dist/assets/iframe-CjfFUNKJ.js +1 -0
  106. package/dist/assets/{index-DX8z7c_g.js → index-56o2iokr.js} +1 -1
  107. package/dist/assets/{index-CZEn3dvX.js → index-5x037-9C.js} +2 -2
  108. package/dist/assets/{index-CTExvK7D.js → index-8MsvtmQl.js} +1 -1
  109. package/dist/assets/{index-CfMCsWIO.js → index-BWj9cvWK.js} +1 -1
  110. package/dist/assets/index-BXDXNTsu.js +262 -0
  111. package/dist/assets/{index-F90nw9gz.js → index-BlQH_bza.js} +15 -17
  112. package/dist/assets/{index-DXZwKN-h.js → index-BmYpFvRB.js} +1 -1
  113. package/dist/assets/index-BpozpbRW.js +11 -0
  114. package/dist/assets/{index-zE5caQ1q.js → index-Bqkn_aa3.js} +1 -1
  115. package/dist/assets/{index-9-wdqB69.js → index-C2bRXXcw.js} +7 -7
  116. package/dist/assets/index-C5wALap9.js +54 -0
  117. package/dist/assets/index-C7FkvChp.js +221 -0
  118. package/dist/assets/{index-C88pPxz9.js → index-CJpqNyVi.js} +7 -7
  119. package/dist/assets/index-CS4hdKgN.js +13 -0
  120. package/dist/assets/{index-DjAUj5p0.js → index-CYChkNo6.js} +1 -1
  121. package/dist/assets/{index-D7kuWzxY.js → index-CYMsHjcv.js} +7 -7
  122. package/dist/assets/{index-ByCfsCp_.js → index-Coe2L95f.js} +1 -1
  123. package/dist/assets/{index-CzyEcNDb.js → index-D9bkjrIm.js} +1 -1
  124. package/dist/assets/{index-Bmrpwj-b.js → index-DNO8iFFj.js} +9 -9
  125. package/dist/assets/{index-ErTwOyBF.js → index-DSr4gSZ6.js} +1 -1
  126. package/dist/assets/index-DlPsSbdP.js +12 -0
  127. package/dist/assets/{index-BQm6oDuT.js → index-DoFezns_.js} +1 -1
  128. package/dist/assets/{index-DjeecS-A.js → index-Dwkydwe_.js} +8 -8
  129. package/dist/assets/index-MHeXbht_.js +1290 -0
  130. package/dist/assets/{index-Bh3b-DCR.js → index-i3hx5_MJ.js} +1 -1
  131. package/dist/assets/{index-Tcuzrh9u.js → index-iaLkEwzP.js} +1 -1
  132. package/dist/assets/index-lps3yS0-.js +234 -0
  133. package/dist/assets/{index-CjL-ow9p.js → index-pr0coJZh.js} +4 -4
  134. package/dist/assets/{index-Qz33eZNl.js → index-q83gH7uv.js} +1 -1
  135. package/dist/assets/{index-D6_XZVwd.js → index-uI5ivd9H.js} +2 -2
  136. package/dist/assets/{index.es-BWhxKjPs.js → index.es-BbZKY7XB.js} +3 -3
  137. package/dist/assets/{index.esm-Cq4xs6YC.js → index.esm-Bx08zGob.js} +1 -1
  138. package/dist/assets/info-outline-rounded-Bfjx6SIO.js +57 -0
  139. package/dist/assets/{invitation-T-YCJW97.js → invitation-MLAwJ9Ra.js} +5 -5
  140. package/dist/assets/{invite-BXJMvn6v.js → invite-DkO9FeY_.js} +1 -1
  141. package/dist/assets/{issue-passport-u6thjalY.js → issue-passport-C7JZcRZR.js} +1 -1
  142. package/dist/assets/item-MF9V1-6K.js +1 -0
  143. package/dist/assets/ja-BO4aqMDb.js +1 -0
  144. package/dist/assets/ja-D8qblxbX.js +1 -0
  145. package/dist/assets/{jss-plugin-props-sort.esm-me2eGiW-.js → jss-plugin-props-sort.esm-rVwFJx4d.js} +4 -4
  146. package/dist/assets/ko-C8eR3MIF.js +1 -0
  147. package/dist/assets/ko-Cv-NiLYG.js +1 -0
  148. package/dist/assets/{launch-result-message-BuBZvaF1.js → launch-result-message-DEcCutu3.js} +1 -1
  149. package/dist/assets/{layout-B01MivhG.js → layout-DOFQutAQ.js} +2 -2
  150. package/dist/assets/{list-header-hMww0HHw.js → list-header-F6N0Lbga.js} +1 -1
  151. package/dist/assets/localization-BSGMGQL8.js +1 -0
  152. package/dist/assets/{log-Dq-G4alr.js → log-_MCoFO-Q.js} +1 -1
  153. package/dist/assets/{login-CbbOOndG.js → login-g24bmOOt.js} +1 -1
  154. package/dist/assets/login-oauth-callback-IIluZQpi.js +1 -0
  155. package/dist/assets/logo-uploader-j0OGjkoc.js +127 -0
  156. package/dist/assets/{lost-passport-CPE-Xjib.js → lost-passport-CFNDhKO4.js} +3 -3
  157. package/dist/assets/{lottie-cr_W9_8N.js → lottie-sLx_MIFH.js} +1 -1
  158. package/dist/assets/{notifications-D8Ok7C-7.js → notifications-BdAvASdZ.js} +2 -2
  159. package/dist/assets/overview-Buny86cT.js +12 -0
  160. package/dist/assets/{page-header-Bo5AtgJT.js → page-header-iStgNt-t.js} +1 -1
  161. package/dist/assets/{permission-Bfyc02YO.js → permission-DFHjiPOO.js} +1 -1
  162. package/dist/assets/{preferences-2QclW1UT.js → preferences-CBDwdPlD.js} +1 -1
  163. package/dist/assets/pt-DfarVqto.js +1 -0
  164. package/dist/assets/pt-Dly5Myel.js +1 -0
  165. package/dist/assets/publish-resource-B8njhGLx.js +1 -0
  166. package/dist/assets/{react-C2AQFto6.js → react-4Vr75H9n.js} +16 -16
  167. package/dist/assets/{redux-CPqXhx4a.js → redux-BwEqkH3a.js} +1 -1
  168. package/dist/assets/ru-C9Wh9IKf.js +1 -0
  169. package/dist/assets/ru-DeqfYyhe.js +1 -0
  170. package/dist/assets/{selector-DaQX9SF-.js → selector-haOpsVEc.js} +3 -3
  171. package/dist/assets/session-BxfJegkk.js +1 -0
  172. package/dist/assets/setup-DMBqOQvQ.js +19 -0
  173. package/dist/assets/{slicedToArray-BdhwfRNf.js → slicedToArray-x22-0sXq.js} +2 -2
  174. package/dist/assets/spaces-fv1YlSu4.js +1 -0
  175. package/dist/assets/start-CmsOWeku.js +186 -0
  176. package/dist/assets/{step-actions-BE48ZQjV.js → step-actions-AXZRiRyD.js} +1 -1
  177. package/dist/assets/{studio-D7cJXy4K.js → studio-DmUAxFbb.js} +1 -1
  178. package/dist/assets/{switch-control-Dac9eRfN.js → switch-control-Lx0DlzPA.js} +1 -1
  179. package/dist/assets/th-B6Z2fc62.js +1 -0
  180. package/dist/assets/th-BEfUwHXu.js +1 -0
  181. package/dist/assets/{toUpper-ZGCVjhv5.js → toUpper-BgobQRvN.js} +1 -1
  182. package/dist/assets/transfer-WMTLv9DH.js +16 -0
  183. package/dist/assets/uniqBy-BnjBhJxf.js +1 -0
  184. package/dist/assets/{unsubscribe-DMeZmH6F.js → unsubscribe-BFzCxIJM.js} +1 -1
  185. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-Bl2nAtwR.js → use-blocklet-info-for-connect-did-spaces-CIjBkljS.js} +1 -1
  186. package/dist/assets/useAsync-ByTahkQO.js +1 -0
  187. package/dist/assets/{useFormControl-Y5cOFSZ7.js → useFormControl-CeAUerJZ.js} +1 -1
  188. package/dist/assets/{useLocalStorage-DxHCj-Ad.js → useLocalStorage-B_i310mR.js} +1 -1
  189. package/dist/assets/{useSetState-FRWYENJP.js → useSetState-BB4kdpGs.js} +1 -1
  190. package/dist/assets/useSlot-CsiuTStm.js +1 -0
  191. package/dist/assets/user-center-sGvXEgY6.js +1 -0
  192. package/dist/assets/user-sessions-BBUW9BFw.js +1 -0
  193. package/dist/assets/{util-BDlHlDbr.js → util-DeMILzW3.js} +1 -1
  194. package/dist/assets/vi-CVN1WwF4.js +1 -0
  195. package/dist/assets/vi-Di0ynKe6.js +1 -0
  196. package/dist/assets/wrap-locale-CeRDb2BZ.js +1 -0
  197. package/dist/assets/{zh-Rua3gJ94.js → zh-Bgfgr3pp.js} +2 -2
  198. package/dist/assets/zh-e04FR-Ps.js +1 -0
  199. package/dist/assets/zh-tw-DlepKNg6.js +1 -0
  200. package/dist/assets/zh-tw-kaMajsUI.js +1 -0
  201. package/dist/index.html +1 -1
  202. package/dist/service-worker.js +1 -1
  203. package/package.json +28 -27
  204. package/dist/assets/access-control-D7CTw-oE.js +0 -13
  205. package/dist/assets/add-resource-DuBvfDxK.js +0 -1
  206. package/dist/assets/api-BJaiCPrC.js +0 -1
  207. package/dist/assets/ar-CKMLzq5i.js +0 -1
  208. package/dist/assets/ar-CxvIl-Ji.js +0 -1
  209. package/dist/assets/confirm-Cuhp36k6.js +0 -7
  210. package/dist/assets/connect-to-D-dHQV5X.js +0 -54
  211. package/dist/assets/de-3qOdEa6P.js +0 -1
  212. package/dist/assets/de-C85TnClh.js +0 -1
  213. package/dist/assets/domain-BlD_Ha2y.js +0 -9
  214. package/dist/assets/domain-list-CMTnqXnl.js +0 -12
  215. package/dist/assets/es-7PLonVLT.js +0 -1
  216. package/dist/assets/es-BGR4yQT7.js +0 -1
  217. package/dist/assets/exchange-passport-RIs0yNdi.js +0 -1
  218. package/dist/assets/fr-1I2E8gH_.js +0 -1
  219. package/dist/assets/fr-SMLe8Exw.js +0 -1
  220. package/dist/assets/hi-O7fF0c9u.js +0 -1
  221. package/dist/assets/hi-RGxY7zJb.js +0 -1
  222. package/dist/assets/home-2DQtKMdu.js +0 -1
  223. package/dist/assets/id-BF9h-bev.js +0 -1
  224. package/dist/assets/id-Bpj9IFvi.js +0 -1
  225. package/dist/assets/iframe-R-ZcwaSh.js +0 -1
  226. package/dist/assets/index-A_crIcnY.js +0 -233
  227. package/dist/assets/index-CbXUSBRE.js +0 -1304
  228. package/dist/assets/index-D4Du2cj9.js +0 -262
  229. package/dist/assets/index-DmAOiutt.js +0 -13
  230. package/dist/assets/index-DmYwryUt.js +0 -54
  231. package/dist/assets/index-ly70OLaY.js +0 -11
  232. package/dist/assets/index-ohbTXyfa.js +0 -221
  233. package/dist/assets/item-rDWzC6g4.js +0 -1
  234. package/dist/assets/ja-BRl6JgyC.js +0 -1
  235. package/dist/assets/ja-CIvaU9cC.js +0 -1
  236. package/dist/assets/ko-BjJKFx_R.js +0 -1
  237. package/dist/assets/ko-DhkKLagb.js +0 -1
  238. package/dist/assets/localization-BQGzJXXC.js +0 -1
  239. package/dist/assets/logo-uploader-CXGWSagm.js +0 -127
  240. package/dist/assets/overview-PLuYcrpP.js +0 -12
  241. package/dist/assets/pt-CB-myo8d.js +0 -1
  242. package/dist/assets/pt-CkaW7MUR.js +0 -1
  243. package/dist/assets/publish-resource-DpBoFC3K.js +0 -1
  244. package/dist/assets/ru-1GZMliq9.js +0 -1
  245. package/dist/assets/ru-DdKOZe9i.js +0 -1
  246. package/dist/assets/session-Db6PVWmc.js +0 -1
  247. package/dist/assets/setup-CJZptj18.js +0 -19
  248. package/dist/assets/spaces-CfWsldoC.js +0 -1
  249. package/dist/assets/start-C5R4_q2v.js +0 -186
  250. package/dist/assets/th-Bc32gh20.js +0 -1
  251. package/dist/assets/th-DxaWeBuD.js +0 -1
  252. package/dist/assets/transfer-D9E2B7BQ.js +0 -16
  253. package/dist/assets/ua-parser-CSvfq8TR.js +0 -57
  254. package/dist/assets/uniqBy-C7HhWnED.js +0 -1
  255. package/dist/assets/useAsync-DS4AUfQv.js +0 -1
  256. package/dist/assets/useSlot-DcgmzF_L.js +0 -1
  257. package/dist/assets/user-center-BOJiTDs-.js +0 -1
  258. package/dist/assets/user-sessions-VuE82hKq.js +0 -1
  259. package/dist/assets/vi-CRasBMRh.js +0 -1
  260. package/dist/assets/vi-TDQcZYLL.js +0 -1
  261. package/dist/assets/wrap-locale-DAv8Zghn.js +0 -1
  262. package/dist/assets/zh-B75pu7gp.js +0 -1
  263. package/dist/assets/zh-tw-BYDo5dcg.js +0 -1
  264. package/dist/assets/zh-tw-CrqrnCP0.js +0 -1
  265. /package/api/libs/auth/adapters/{auth0 → auth0-legacy}/authentication-client.js +0 -0
  266. /package/api/libs/auth/adapters/{auth0 → auth0-legacy}/index.js +0 -0
  267. /package/api/libs/auth/adapters/{auth0 → auth0-legacy}/management-client.js +0 -0
@@ -1,4 +1,4 @@
1
- import{aC as Pe,aB as ze,aD as ee,af as Ne,aE as W,aG as P,r as l,aK as Ce,aF as ae,j as o,aI as T,aJ as Me,cZ as eo,cK as oo,bo as oe,ct as ro,c_ as no,P as n,U as ie,V as le,bT as v,ac as to,ay as de,L as Q,T as F,b as ao,az as Re,B as C,bU as so,Z as U,c$ as io,H as Te,a3 as lo,d0 as co,h as po,d1 as uo,d2 as ho}from"./index-CbXUSBRE.js";import{T as xo}from"./Toolbar-CEiHPS82.js";import{H as Be}from"./Hidden-6es5MMPN.js";import{d as mo}from"./MoreHoriz-DnI1QPyb.js";import{d as fo}from"./ExpandMore-BcgzaLXP.js";const se={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 go(e){return Pe("MuiAppBar",e)}ze("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const bo=["className","color","enableColorOnDark","position"],vo=e=>{const{color:r,position:t,classes:a}=e,s={root:["root",`color${W(r)}`,`position${W(t)}`]};return Me(s,go,a)},J=(e,r)=>e?`${e==null?void 0:e.replace(")","")}, ${r})`:r,yo=ee(Ne,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,r[`position${W(t.position)}`],r[`color${W(t.color)}`]]}})(({theme:e,ownerState:r})=>{const t=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return P({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},r.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},r.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},r.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},r.position==="static"&&{position:"static"},r.position==="relative"&&{position:"relative"},!e.vars&&P({},r.color==="default"&&{backgroundColor:t,color:e.palette.getContrastText(t)},r.color&&r.color!=="default"&&r.color!=="inherit"&&r.color!=="transparent"&&{backgroundColor:e.palette[r.color].main,color:e.palette[r.color].contrastText},r.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!r.enableColorOnDark&&{backgroundColor:null,color:null},r.color==="transparent"&&P({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&P({},r.color==="default"&&{"--AppBar-background":r.enableColorOnDark?e.vars.palette.AppBar.defaultBg:J(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":r.enableColorOnDark?e.vars.palette.text.primary:J(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},r.color&&!r.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":r.enableColorOnDark?e.vars.palette[r.color].main:J(e.vars.palette.AppBar.darkBg,e.vars.palette[r.color].main),"--AppBar-color":r.enableColorOnDark?e.vars.palette[r.color].contrastText:J(e.vars.palette.AppBar.darkColor,e.vars.palette[r.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:r.color==="inherit"?"inherit":"var(--AppBar-color)"},r.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),jo=l.forwardRef(function(r,t){const a=Ce({props:r,name:"MuiAppBar"}),{className:s,color:c="primary",enableColorOnDark:d=!1,position:i="fixed"}=a,p=ae(a,bo),u=P({},a,{color:c,position:i,enableColorOnDark:d}),x=vo(u);return o.jsx(yo,P({square:!0,component:"header",ownerState:u,elevation:4,className:T(x.root,s,i==="fixed"&&"mui-fixed"),ref:t},p))}),wo=jo;function ko(e){return Pe("MuiDrawer",e)}ze("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const $o=["BackdropProps"],Po=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],Le=(e,r)=>{const{ownerState:t}=e;return[r.root,(t.variant==="permanent"||t.variant==="persistent")&&r.docked,r.modal]},zo=e=>{const{classes:r,anchor:t,variant:a}=e,s={root:["root"],docked:[(a==="permanent"||a==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${W(t)}`,a!=="temporary"&&`paperAnchorDocked${W(t)}`]};return Me(s,ko,r)},No=ee(eo,{name:"MuiDrawer",slot:"Root",overridesResolver:Le})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),ke=ee("div",{shouldForwardProp:oo,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Le})({flex:"0 0 auto"}),Co=ee(Ne,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.paper,r[`paperAnchor${W(t.anchor)}`],t.variant!=="temporary"&&r[`paperAnchorDocked${W(t.anchor)}`]]}})(({theme:e,ownerState:r})=>P({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},r.anchor==="left"&&{left:0},r.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},r.anchor==="right"&&{right:0},r.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},r.anchor==="left"&&r.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},r.anchor==="top"&&r.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},r.anchor==="right"&&r.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},r.anchor==="bottom"&&r.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),Ae={left:"right",right:"left",top:"down",bottom:"up"};function Mo(e){return["left","right"].indexOf(e)!==-1}function Ro({direction:e},r){return e==="rtl"&&Mo(r)?Ae[r]:r}const To=l.forwardRef(function(r,t){const a=Ce({props:r,name:"MuiDrawer"}),s=oe(),c=ro(),d={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{anchor:i="left",BackdropProps:p,children:u,className:x,elevation:m=16,hideBackdrop:j=!1,ModalProps:{BackdropProps:y}={},onClose:z,open:g=!1,PaperProps:b={},SlideProps:N,TransitionComponent:w=no,transitionDuration:M=d,variant:R="temporary"}=a,I=ae(a.ModalProps,$o),k=ae(a,Po),$=l.useRef(!1);l.useEffect(()=>{$.current=!0},[]);const _=Ro({direction:c?"rtl":"ltr"},i),B=P({},a,{anchor:i,elevation:m,open:g,variant:R},k),L=zo(B),Z=o.jsx(Co,P({elevation:R==="temporary"?m:0,square:!0},b,{className:T(L.paper,b.className),ownerState:B,children:u}));if(R==="permanent")return o.jsx(ke,P({className:T(L.root,L.docked,x),ownerState:B,ref:t},k,{children:Z}));const q=o.jsx(w,P({in:g,direction:Ae[_],timeout:M,appear:$.current},N,{children:Z}));return R==="persistent"?o.jsx(ke,P({className:T(L.root,L.docked,x),ownerState:B,ref:t},k,{children:q})):o.jsx(No,P({BackdropProps:P({},p,y,{transitionDuration:M}),className:T(L.root,L.modal,x),open:g,ownerState:B,onClose:z,hideBackdrop:j,ref:t},k,I,{children:q}))}),De=To,Ie=l.createContext(),Bo=e=>{const r=l.useContext(Ie);return l.useLayoutEffect(()=>{e&&r.configure(e)},[]),r};function _e({children:e,...r}){const[t,a]=l.useState({inFullPage:!1,showToggleButton:!1,headerVisibleInFullPage:!0,footerVisibleInFullPage:!1,sidebarVisibleInFullPage:!1}),s=()=>{a(d=>({...d,inFullPage:!d.inFullPage}))},c=l.useMemo(()=>({...t,headerVisible:!t.inFullPage||t.headerVisibleInFullPage,footerVisible:!t.inFullPage||t.footerVisibleInFullPage,sidebarVisible:!t.inFullPage||t.sidebarVisibleInFullPage,toggleFullPage:s,configure:d=>a(i=>({...i,...d}))}),[t]);return o.jsx(Ie.Provider,{value:c,...r,children:e})}_e.propTypes={children:n.node.isRequired};var ce={},Lo=le;Object.defineProperty(ce,"__esModule",{value:!0});var Fe=ce.default=void 0,Ao=Lo(ie()),Do=o;Fe=ce.default=(0,Ao.default)((0,Do.jsx)("path",{d:"M21 11V3h-8l3.29 3.29-10 10L3 13v8h8l-3.29-3.29 10-10z"}),"OpenInFull");var pe={},Io=le;Object.defineProperty(pe,"__esModule",{value:!0});var We=pe.default=void 0,_o=Io(ie()),Fo=o;We=pe.default=(0,_o.default)((0,Fo.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 ue({name:e,size:r,alt:t,color:a,style:s,prefix:c,showBadge:d,...i}){const p=`${c}/${e}-${a.replace(/^#/,"")}.png`;return o.jsxs(Wo,{style:{width:r,height:r},children:[o.jsx(to,{width:r,height:r,alt:t||e,src:p,style:Object.assign({width:r},s),...i}),d&&o.jsx("i",{className:"badge-point"})]})}ue.propTypes={name:n.string.isRequired,size:n.number,color:n.string,alt:n.string,style:n.object,prefix:n.string,showBadge:n.bool};ue.defaultProps={size:36,color:"#000000",alt:"",style:{},prefix:"/images",showBadge:!1};const Wo=v("div")`
1
+ import{aD as Pe,aC as ze,aE as ee,ag as Ne,aF as W,aH as P,r as l,aL as Ce,aG as ae,j as o,aJ as T,aK as Me,d7 as eo,cV as oo,bp as oe,cG as ro,d8 as no,P as n,W as ie,X as le,c1 as v,ad as to,az as de,L as Q,T as F,b as ao,aA as Re,B as C,c2 as so,y as S,d9 as io,H as Te,a4 as lo,da as co,h as po,db as uo,dc as ho}from"./index-MHeXbht_.js";import{T as xo}from"./Toolbar-BwsW1-XD.js";import{H as Be}from"./Hidden-CyJIFPqO.js";import{d as mo}from"./MoreHoriz-BgseW-ge.js";import{d as fo}from"./ExpandMore-BlRkbxIp.js";const se={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 go(e){return Pe("MuiAppBar",e)}ze("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const bo=["className","color","enableColorOnDark","position"],vo=e=>{const{color:r,position:t,classes:a}=e,s={root:["root",`color${W(r)}`,`position${W(t)}`]};return Me(s,go,a)},K=(e,r)=>e?`${e==null?void 0:e.replace(")","")}, ${r})`:r,yo=ee(Ne,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,r[`position${W(t.position)}`],r[`color${W(t.color)}`]]}})(({theme:e,ownerState:r})=>{const t=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return P({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},r.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},r.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},r.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},r.position==="static"&&{position:"static"},r.position==="relative"&&{position:"relative"},!e.vars&&P({},r.color==="default"&&{backgroundColor:t,color:e.palette.getContrastText(t)},r.color&&r.color!=="default"&&r.color!=="inherit"&&r.color!=="transparent"&&{backgroundColor:e.palette[r.color].main,color:e.palette[r.color].contrastText},r.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!r.enableColorOnDark&&{backgroundColor:null,color:null},r.color==="transparent"&&P({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&P({},r.color==="default"&&{"--AppBar-background":r.enableColorOnDark?e.vars.palette.AppBar.defaultBg:K(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":r.enableColorOnDark?e.vars.palette.text.primary:K(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},r.color&&!r.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":r.enableColorOnDark?e.vars.palette[r.color].main:K(e.vars.palette.AppBar.darkBg,e.vars.palette[r.color].main),"--AppBar-color":r.enableColorOnDark?e.vars.palette[r.color].contrastText:K(e.vars.palette.AppBar.darkColor,e.vars.palette[r.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:r.color==="inherit"?"inherit":"var(--AppBar-color)"},r.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),jo=l.forwardRef(function(r,t){const a=Ce({props:r,name:"MuiAppBar"}),{className:s,color:c="primary",enableColorOnDark:d=!1,position:i="fixed"}=a,p=ae(a,bo),u=P({},a,{color:c,position:i,enableColorOnDark:d}),x=vo(u);return o.jsx(yo,P({square:!0,component:"header",ownerState:u,elevation:4,className:T(x.root,s,i==="fixed"&&"mui-fixed"),ref:t},p))}),wo=jo;function ko(e){return Pe("MuiDrawer",e)}ze("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const $o=["BackdropProps"],Po=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],Le=(e,r)=>{const{ownerState:t}=e;return[r.root,(t.variant==="permanent"||t.variant==="persistent")&&r.docked,r.modal]},zo=e=>{const{classes:r,anchor:t,variant:a}=e,s={root:["root"],docked:[(a==="permanent"||a==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${W(t)}`,a!=="temporary"&&`paperAnchorDocked${W(t)}`]};return Me(s,ko,r)},No=ee(eo,{name:"MuiDrawer",slot:"Root",overridesResolver:Le})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),ke=ee("div",{shouldForwardProp:oo,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Le})({flex:"0 0 auto"}),Co=ee(Ne,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.paper,r[`paperAnchor${W(t.anchor)}`],t.variant!=="temporary"&&r[`paperAnchorDocked${W(t.anchor)}`]]}})(({theme:e,ownerState:r})=>P({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},r.anchor==="left"&&{left:0},r.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},r.anchor==="right"&&{right:0},r.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},r.anchor==="left"&&r.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},r.anchor==="top"&&r.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},r.anchor==="right"&&r.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},r.anchor==="bottom"&&r.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),Ae={left:"right",right:"left",top:"down",bottom:"up"};function Mo(e){return["left","right"].indexOf(e)!==-1}function Ro({direction:e},r){return e==="rtl"&&Mo(r)?Ae[r]:r}const To=l.forwardRef(function(r,t){const a=Ce({props:r,name:"MuiDrawer"}),s=oe(),c=ro(),d={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{anchor:i="left",BackdropProps:p,children:u,className:x,elevation:m=16,hideBackdrop:j=!1,ModalProps:{BackdropProps:y}={},onClose:z,open:g=!1,PaperProps:b={},SlideProps:N,TransitionComponent:w=no,transitionDuration:M=d,variant:R="temporary"}=a,I=ae(a.ModalProps,$o),k=ae(a,Po),$=l.useRef(!1);l.useEffect(()=>{$.current=!0},[]);const _=Ro({direction:c?"rtl":"ltr"},i),B=P({},a,{anchor:i,elevation:m,open:g,variant:R},k),L=zo(B),J=o.jsx(Co,P({elevation:R==="temporary"?m:0,square:!0},b,{className:T(L.paper,b.className),ownerState:B,children:u}));if(R==="permanent")return o.jsx(ke,P({className:T(L.root,L.docked,x),ownerState:B,ref:t},k,{children:J}));const q=o.jsx(w,P({in:g,direction:Ae[_],timeout:M,appear:$.current},N,{children:J}));return R==="persistent"?o.jsx(ke,P({className:T(L.root,L.docked,x),ownerState:B,ref:t},k,{children:q})):o.jsx(No,P({BackdropProps:P({},p,y,{transitionDuration:M}),className:T(L.root,L.modal,x),open:g,ownerState:B,onClose:z,hideBackdrop:j,ref:t},k,I,{children:q}))}),De=To,Ie=l.createContext(),Bo=e=>{const r=l.useContext(Ie);return l.useLayoutEffect(()=>{e&&r.configure(e)},[]),r};function _e({children:e,...r}){const[t,a]=l.useState({inFullPage:!1,showToggleButton:!1,headerVisibleInFullPage:!0,footerVisibleInFullPage:!1,sidebarVisibleInFullPage:!1}),s=()=>{a(d=>({...d,inFullPage:!d.inFullPage}))},c=l.useMemo(()=>({...t,headerVisible:!t.inFullPage||t.headerVisibleInFullPage,footerVisible:!t.inFullPage||t.footerVisibleInFullPage,sidebarVisible:!t.inFullPage||t.sidebarVisibleInFullPage,toggleFullPage:s,configure:d=>a(i=>({...i,...d}))}),[t]);return o.jsx(Ie.Provider,{value:c,...r,children:e})}_e.propTypes={children:n.node.isRequired};var ce={},Lo=le;Object.defineProperty(ce,"__esModule",{value:!0});var Fe=ce.default=void 0,Ao=Lo(ie()),Do=o;Fe=ce.default=(0,Ao.default)((0,Do.jsx)("path",{d:"M21 11V3h-8l3.29 3.29-10 10L3 13v8h8l-3.29-3.29 10-10z"}),"OpenInFull");var pe={},Io=le;Object.defineProperty(pe,"__esModule",{value:!0});var We=pe.default=void 0,_o=Io(ie()),Fo=o;We=pe.default=(0,_o.default)((0,Fo.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 ue({name:e,size:r,alt:t,color:a,style:s,prefix:c,showBadge:d,...i}){const p=`${c}/${e}-${a.replace(/^#/,"")}.png`;return o.jsxs(Wo,{style:{width:r,height:r},children:[o.jsx(to,{width:r,height:r,alt:t||e,src:p,style:Object.assign({width:r},s),...i}),d&&o.jsx("i",{className:"badge-point"})]})}ue.propTypes={name:n.string.isRequired,size:n.number,color:n.string,alt:n.string,style:n.object,prefix:n.string,showBadge:n.bool};ue.defaultProps={size:36,color:"#000000",alt:"",style:{},prefix:"/images",showBadge:!1};const Wo=v("div")`
2
2
  position: relative;
3
3
  .badge-point {
4
4
  position: absolute;
@@ -10,7 +10,7 @@ import{aC as Pe,aB as ze,aD as ee,af as Ne,aE as W,aG as P,r as l,aK as Ce,aF as
10
10
  top: 0;
11
11
  box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.3), 0px 0px 20px rgba(0, 0, 0, 0.1);
12
12
  }
13
- `;var Oe=function(r){return o.jsx("svg",{...r,children:o.jsxs("g",{fill:"none",fillRule:"evenodd",stroke:"#FFF",children:[o.jsx("path",{d:"M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25m-43.301 0l43.301-25"}),o.jsx("path",{d:"M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z"})]})})};Oe.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"45",height:"52",viewBox:"0 0 45 52"};var He=function(r){return o.jsx("svg",{...r,children:o.jsx("path",{fill:"#FFF",fillRule:"evenodd",d:"M6.5.053h2.864L16.028 18h-2.114l-1.391-3.795H3.504L2.14 18H0L6.5.053zm1.474 1.481L4.04 12.563h7.895L7.975 1.534zm14.44 3.542c1.27 0 2.198.296 2.78.892.58.597.871 1.52.871 2.765v.36c0 .117-.008.245-.026.385h-1.826c.018-.14.027-.292.027-.452v-.48c0-.766-.186-1.283-.551-1.55-.367-.266-.916-.4-1.65-.4-.968 0-1.698.24-2.189.723-.493.48-.738 1.208-.738 2.187v8.308h-1.88V5.341h1.824l-.079 1.443c.376-.614.863-1.053 1.463-1.316a4.868 4.868 0 0 1 1.974-.392zM35.95 15.903c.501-.328.752-1.205.752-2.63h1.852c0 1.924-.403 3.178-1.208 3.765-.806.589-2.158.882-4.055.882-2.65 0-4.24-.538-4.766-1.616-.529-1.076-.793-2.781-.793-5.114 0-2.118.367-3.645 1.102-4.581.732-.934 2.209-1.401 4.43-1.401 1.378 0 2.569.221 3.572.665 1.002.446 1.503 1.497 1.503 3.153v.188a.234.234 0 0 0-.027.106v.106h-1.826c0-1.12-.228-1.851-.685-2.188-.455-.34-1.23-.507-2.322-.507-1.665 0-2.713.259-3.142.782-.43.524-.646 1.67-.646 3.44V12.2c0 1.4.161 2.448.485 3.15.322.7 1.297 1.048 2.926 1.048 1.397 0 2.346-.165 2.848-.495zm15.87-.318c.606-.328.912-1.263.912-2.805 0-.924-.147-1.69-.444-2.302-.294-.611-1.007-.917-2.133-.917h-7.09v6.516h5.528c1.543 0 2.617-.165 3.226-.492zm-8.754-13.85v6.036h5.665c1.325 0 2.239-.214 2.737-.643.503-.428.755-1.288.755-2.575 0-1.09-.192-1.834-.577-2.226-.385-.394-1.116-.591-2.19-.591h-6.39zM52 8.466c1.185.322 1.956.816 2.314 1.482.359.67.54 1.581.54 2.739 0 1.6-.325 2.858-.97 3.764-.647.909-1.874 1.363-3.686 1.363H41.05V0h8.62c1.592 0 2.759.312 3.503.934.744.624 1.115 1.78 1.115 3.473 0 1.014-.129 1.855-.386 2.522-.258.669-.89 1.181-1.903 1.536zm5.43 9.348V.001h1.907v17.812H57.43zm13.374-6.168v-.708c0-1.539-.141-2.636-.426-3.297-.284-.658-1.191-.99-2.718-.99h-.401c-1.617 0-2.625.25-3.025.75-.399.5-.599 1.632-.599 3.4v2.021c0 .206.008.407.024.602a9.48 9.48 0 0 0 .216 1.474c.106.465.275.822.505 1.072.196.179.435.302.72.373.283.072.586.116.905.135h1.254c1.083 0 1.914-.151 2.492-.456.577-.302.9-1.043.972-2.22a18.338 18.338 0 0 0 .054-1.447c.015-.233.027-.47.027-.71zm-3.786-6.518c2.399 0 3.956.414 4.672 1.243.717.828 1.074 2.418 1.074 4.766 0 2.048-.219 3.704-.657 4.966C71.668 17.367 70.16 18 67.581 18c-2.237 0-3.782-.347-4.632-1.042-.85-.694-1.275-2.205-1.275-4.54v-1.174c0-2.12.318-3.669.954-4.646.635-.98 2.099-1.471 4.39-1.471zm16.434 10.776c.501-.328.752-1.205.752-2.63h1.853c0 1.924-.403 3.178-1.209 3.765-.804.589-2.157.882-4.054.882-2.648 0-4.24-.538-4.767-1.616-.528-1.076-.79-2.781-.79-5.114 0-2.118.365-3.645 1.1-4.581.732-.934 2.21-1.401 4.43-1.401 1.377 0 2.568.221 3.571.665 1.003.446 1.504 1.497 1.504 3.153v.188a.232.232 0 0 0-.026.106v.106H83.99c0-1.12-.229-1.851-.686-2.188-.455-.34-1.23-.507-2.323-.507-1.665 0-2.712.259-3.142.782-.43.524-.643 1.67-.643 3.44V12.2c0 1.4.16 2.448.482 3.15.324.7 1.298 1.048 2.927 1.048 1.397 0 2.346-.165 2.847-.495zm9.236-4.82L99 17.813h-2.47l-5.317-6.01h-.752v6.01h-1.907V0h1.907v10.362h.752l4.512-5.02h2.309l-5.346 5.741z"})})};He.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"99",height:"18",viewBox:"0 0 99 18"};var Ve=function(r){return o.jsx("svg",{...r,children:o.jsxs("g",{fill:"none",fillRule:"evenodd",stroke:"#000",children:[o.jsx("path",{d:"M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25m-43.301 0l43.301-25"}),o.jsx("path",{d:"M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z"})]})})};Ve.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"45",height:"52",viewBox:"0 0 45 52"};var qe=function(r){return o.jsx("svg",{...r,children:o.jsx("path",{fillRule:"evenodd",d:"M6.5.053h2.864L16.028 18h-2.114l-1.391-3.795H3.504L2.14 18H0L6.5.053zm1.474 1.481L4.04 12.563h7.895L7.975 1.534zm14.44 3.542c1.27 0 2.198.296 2.78.892.58.597.871 1.52.871 2.765v.36c0 .117-.008.245-.026.385h-1.826c.018-.14.027-.292.027-.452v-.48c0-.766-.186-1.283-.551-1.55-.367-.266-.916-.4-1.65-.4-.968 0-1.698.24-2.189.723-.493.48-.738 1.208-.738 2.187v8.308h-1.88V5.341h1.824l-.079 1.443c.376-.614.863-1.053 1.463-1.316a4.868 4.868 0 0 1 1.974-.392zM35.95 15.903c.501-.328.752-1.205.752-2.63h1.852c0 1.924-.403 3.178-1.208 3.765-.806.589-2.158.882-4.055.882-2.65 0-4.24-.538-4.766-1.616-.529-1.076-.793-2.781-.793-5.114 0-2.118.367-3.645 1.102-4.581.732-.934 2.209-1.401 4.43-1.401 1.378 0 2.569.221 3.572.665 1.002.446 1.503 1.497 1.503 3.153v.188a.234.234 0 0 0-.027.106v.106h-1.826c0-1.12-.228-1.851-.685-2.188-.455-.34-1.23-.507-2.322-.507-1.665 0-2.713.259-3.142.782-.43.524-.646 1.67-.646 3.44V12.2c0 1.4.161 2.448.485 3.15.322.7 1.297 1.048 2.926 1.048 1.397 0 2.346-.165 2.848-.495zm15.87-.318c.606-.328.912-1.263.912-2.805 0-.924-.147-1.69-.444-2.302-.294-.611-1.007-.917-2.133-.917h-7.09v6.516h5.528c1.543 0 2.617-.165 3.226-.492zm-8.754-13.85v6.036h5.665c1.325 0 2.239-.214 2.737-.643.503-.428.755-1.288.755-2.575 0-1.09-.192-1.834-.577-2.226-.385-.394-1.116-.591-2.19-.591h-6.39zM52 8.466c1.185.322 1.956.816 2.314 1.482.359.67.54 1.581.54 2.739 0 1.6-.325 2.858-.97 3.764-.647.909-1.874 1.363-3.686 1.363H41.05V0h8.62c1.592 0 2.759.312 3.503.934.744.624 1.115 1.78 1.115 3.473 0 1.014-.129 1.855-.386 2.522-.258.669-.89 1.181-1.903 1.536zm5.43 9.348V.001h1.907v17.812H57.43zm13.374-6.168v-.708c0-1.539-.141-2.636-.426-3.297-.284-.658-1.191-.99-2.718-.99h-.401c-1.617 0-2.625.25-3.025.75-.399.5-.599 1.632-.599 3.4v2.021c0 .206.008.407.024.602a9.48 9.48 0 0 0 .216 1.474c.106.465.275.822.505 1.072.196.179.435.302.72.373.283.072.586.116.905.135h1.254c1.083 0 1.914-.151 2.492-.456.577-.302.9-1.043.972-2.22a18.338 18.338 0 0 0 .054-1.447c.015-.233.027-.47.027-.71zm-3.786-6.518c2.399 0 3.956.414 4.672 1.243.717.828 1.074 2.418 1.074 4.766 0 2.048-.219 3.704-.657 4.966C71.668 17.367 70.16 18 67.581 18c-2.237 0-3.782-.347-4.632-1.042-.85-.694-1.275-2.205-1.275-4.54v-1.174c0-2.12.318-3.669.954-4.646.635-.98 2.099-1.471 4.39-1.471zm16.434 10.776c.501-.328.752-1.205.752-2.63h1.853c0 1.924-.403 3.178-1.209 3.765-.804.589-2.157.882-4.054.882-2.648 0-4.24-.538-4.767-1.616-.528-1.076-.79-2.781-.79-5.114 0-2.118.365-3.645 1.1-4.581.732-.934 2.21-1.401 4.43-1.401 1.377 0 2.568.221 3.571.665 1.003.446 1.504 1.497 1.504 3.153v.188a.232.232 0 0 0-.026.106v.106H83.99c0-1.12-.229-1.851-.686-2.188-.455-.34-1.23-.507-2.323-.507-1.665 0-2.712.259-3.142.782-.43.524-.643 1.67-.643 3.44V12.2c0 1.4.16 2.448.482 3.15.324.7 1.298 1.048 2.927 1.048 1.397 0 2.346-.165 2.847-.495zm9.236-4.82L99 17.813h-2.47l-5.317-6.01h-.752v6.01h-1.907V0h1.907v10.362h.752l4.512-5.02h2.309l-5.346 5.741z"})})};qe.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"99",height:"18",viewBox:"0 0 99 18"};function S({showText:e,showLogo:r,mode:t,layout:a,...s}){const c=t==="light"?o.jsx(Oe,{}):o.jsx(Ve,{}),d=t==="light"?o.jsx(He,{className:"logo-text"}):o.jsx(qe,{className:"logo-text"});return o.jsxs(Oo,{layout:a,...s,children:[r&&c,e&&d]})}S.propTypes={mode:n.oneOf(["light","dark"]),layout:n.oneOf(["vertical","horizontal"]),showText:n.bool,showLogo:n.bool};S.defaultProps={mode:"dark",layout:"vertical",showText:!0,showLogo:!0};const Oo=v("span")`
13
+ `;var Oe=function(r){return o.jsx("svg",{...r,children:o.jsxs("g",{fill:"none",fillRule:"evenodd",stroke:"#FFF",children:[o.jsx("path",{d:"M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25m-43.301 0l43.301-25"}),o.jsx("path",{d:"M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z"})]})})};Oe.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"45",height:"52",viewBox:"0 0 45 52"};var He=function(r){return o.jsx("svg",{...r,children:o.jsx("path",{fill:"#FFF",fillRule:"evenodd",d:"M6.5.053h2.864L16.028 18h-2.114l-1.391-3.795H3.504L2.14 18H0L6.5.053zm1.474 1.481L4.04 12.563h7.895L7.975 1.534zm14.44 3.542c1.27 0 2.198.296 2.78.892.58.597.871 1.52.871 2.765v.36c0 .117-.008.245-.026.385h-1.826c.018-.14.027-.292.027-.452v-.48c0-.766-.186-1.283-.551-1.55-.367-.266-.916-.4-1.65-.4-.968 0-1.698.24-2.189.723-.493.48-.738 1.208-.738 2.187v8.308h-1.88V5.341h1.824l-.079 1.443c.376-.614.863-1.053 1.463-1.316a4.868 4.868 0 0 1 1.974-.392zM35.95 15.903c.501-.328.752-1.205.752-2.63h1.852c0 1.924-.403 3.178-1.208 3.765-.806.589-2.158.882-4.055.882-2.65 0-4.24-.538-4.766-1.616-.529-1.076-.793-2.781-.793-5.114 0-2.118.367-3.645 1.102-4.581.732-.934 2.209-1.401 4.43-1.401 1.378 0 2.569.221 3.572.665 1.002.446 1.503 1.497 1.503 3.153v.188a.234.234 0 0 0-.027.106v.106h-1.826c0-1.12-.228-1.851-.685-2.188-.455-.34-1.23-.507-2.322-.507-1.665 0-2.713.259-3.142.782-.43.524-.646 1.67-.646 3.44V12.2c0 1.4.161 2.448.485 3.15.322.7 1.297 1.048 2.926 1.048 1.397 0 2.346-.165 2.848-.495zm15.87-.318c.606-.328.912-1.263.912-2.805 0-.924-.147-1.69-.444-2.302-.294-.611-1.007-.917-2.133-.917h-7.09v6.516h5.528c1.543 0 2.617-.165 3.226-.492zm-8.754-13.85v6.036h5.665c1.325 0 2.239-.214 2.737-.643.503-.428.755-1.288.755-2.575 0-1.09-.192-1.834-.577-2.226-.385-.394-1.116-.591-2.19-.591h-6.39zM52 8.466c1.185.322 1.956.816 2.314 1.482.359.67.54 1.581.54 2.739 0 1.6-.325 2.858-.97 3.764-.647.909-1.874 1.363-3.686 1.363H41.05V0h8.62c1.592 0 2.759.312 3.503.934.744.624 1.115 1.78 1.115 3.473 0 1.014-.129 1.855-.386 2.522-.258.669-.89 1.181-1.903 1.536zm5.43 9.348V.001h1.907v17.812H57.43zm13.374-6.168v-.708c0-1.539-.141-2.636-.426-3.297-.284-.658-1.191-.99-2.718-.99h-.401c-1.617 0-2.625.25-3.025.75-.399.5-.599 1.632-.599 3.4v2.021c0 .206.008.407.024.602a9.48 9.48 0 0 0 .216 1.474c.106.465.275.822.505 1.072.196.179.435.302.72.373.283.072.586.116.905.135h1.254c1.083 0 1.914-.151 2.492-.456.577-.302.9-1.043.972-2.22a18.338 18.338 0 0 0 .054-1.447c.015-.233.027-.47.027-.71zm-3.786-6.518c2.399 0 3.956.414 4.672 1.243.717.828 1.074 2.418 1.074 4.766 0 2.048-.219 3.704-.657 4.966C71.668 17.367 70.16 18 67.581 18c-2.237 0-3.782-.347-4.632-1.042-.85-.694-1.275-2.205-1.275-4.54v-1.174c0-2.12.318-3.669.954-4.646.635-.98 2.099-1.471 4.39-1.471zm16.434 10.776c.501-.328.752-1.205.752-2.63h1.853c0 1.924-.403 3.178-1.209 3.765-.804.589-2.157.882-4.054.882-2.648 0-4.24-.538-4.767-1.616-.528-1.076-.79-2.781-.79-5.114 0-2.118.365-3.645 1.1-4.581.732-.934 2.21-1.401 4.43-1.401 1.377 0 2.568.221 3.571.665 1.003.446 1.504 1.497 1.504 3.153v.188a.232.232 0 0 0-.026.106v.106H83.99c0-1.12-.229-1.851-.686-2.188-.455-.34-1.23-.507-2.323-.507-1.665 0-2.712.259-3.142.782-.43.524-.643 1.67-.643 3.44V12.2c0 1.4.16 2.448.482 3.15.324.7 1.298 1.048 2.927 1.048 1.397 0 2.346-.165 2.847-.495zm9.236-4.82L99 17.813h-2.47l-5.317-6.01h-.752v6.01h-1.907V0h1.907v10.362h.752l4.512-5.02h2.309l-5.346 5.741z"})})};He.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"99",height:"18",viewBox:"0 0 99 18"};var Ve=function(r){return o.jsx("svg",{...r,children:o.jsxs("g",{fill:"none",fillRule:"evenodd",stroke:"#000",children:[o.jsx("path",{d:"M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25m-43.301 0l43.301-25"}),o.jsx("path",{d:"M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z"})]})})};Ve.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"45",height:"52",viewBox:"0 0 45 52"};var qe=function(r){return o.jsx("svg",{...r,children:o.jsx("path",{fillRule:"evenodd",d:"M6.5.053h2.864L16.028 18h-2.114l-1.391-3.795H3.504L2.14 18H0L6.5.053zm1.474 1.481L4.04 12.563h7.895L7.975 1.534zm14.44 3.542c1.27 0 2.198.296 2.78.892.58.597.871 1.52.871 2.765v.36c0 .117-.008.245-.026.385h-1.826c.018-.14.027-.292.027-.452v-.48c0-.766-.186-1.283-.551-1.55-.367-.266-.916-.4-1.65-.4-.968 0-1.698.24-2.189.723-.493.48-.738 1.208-.738 2.187v8.308h-1.88V5.341h1.824l-.079 1.443c.376-.614.863-1.053 1.463-1.316a4.868 4.868 0 0 1 1.974-.392zM35.95 15.903c.501-.328.752-1.205.752-2.63h1.852c0 1.924-.403 3.178-1.208 3.765-.806.589-2.158.882-4.055.882-2.65 0-4.24-.538-4.766-1.616-.529-1.076-.793-2.781-.793-5.114 0-2.118.367-3.645 1.102-4.581.732-.934 2.209-1.401 4.43-1.401 1.378 0 2.569.221 3.572.665 1.002.446 1.503 1.497 1.503 3.153v.188a.234.234 0 0 0-.027.106v.106h-1.826c0-1.12-.228-1.851-.685-2.188-.455-.34-1.23-.507-2.322-.507-1.665 0-2.713.259-3.142.782-.43.524-.646 1.67-.646 3.44V12.2c0 1.4.161 2.448.485 3.15.322.7 1.297 1.048 2.926 1.048 1.397 0 2.346-.165 2.848-.495zm15.87-.318c.606-.328.912-1.263.912-2.805 0-.924-.147-1.69-.444-2.302-.294-.611-1.007-.917-2.133-.917h-7.09v6.516h5.528c1.543 0 2.617-.165 3.226-.492zm-8.754-13.85v6.036h5.665c1.325 0 2.239-.214 2.737-.643.503-.428.755-1.288.755-2.575 0-1.09-.192-1.834-.577-2.226-.385-.394-1.116-.591-2.19-.591h-6.39zM52 8.466c1.185.322 1.956.816 2.314 1.482.359.67.54 1.581.54 2.739 0 1.6-.325 2.858-.97 3.764-.647.909-1.874 1.363-3.686 1.363H41.05V0h8.62c1.592 0 2.759.312 3.503.934.744.624 1.115 1.78 1.115 3.473 0 1.014-.129 1.855-.386 2.522-.258.669-.89 1.181-1.903 1.536zm5.43 9.348V.001h1.907v17.812H57.43zm13.374-6.168v-.708c0-1.539-.141-2.636-.426-3.297-.284-.658-1.191-.99-2.718-.99h-.401c-1.617 0-2.625.25-3.025.75-.399.5-.599 1.632-.599 3.4v2.021c0 .206.008.407.024.602a9.48 9.48 0 0 0 .216 1.474c.106.465.275.822.505 1.072.196.179.435.302.72.373.283.072.586.116.905.135h1.254c1.083 0 1.914-.151 2.492-.456.577-.302.9-1.043.972-2.22a18.338 18.338 0 0 0 .054-1.447c.015-.233.027-.47.027-.71zm-3.786-6.518c2.399 0 3.956.414 4.672 1.243.717.828 1.074 2.418 1.074 4.766 0 2.048-.219 3.704-.657 4.966C71.668 17.367 70.16 18 67.581 18c-2.237 0-3.782-.347-4.632-1.042-.85-.694-1.275-2.205-1.275-4.54v-1.174c0-2.12.318-3.669.954-4.646.635-.98 2.099-1.471 4.39-1.471zm16.434 10.776c.501-.328.752-1.205.752-2.63h1.853c0 1.924-.403 3.178-1.209 3.765-.804.589-2.157.882-4.054.882-2.648 0-4.24-.538-4.767-1.616-.528-1.076-.79-2.781-.79-5.114 0-2.118.365-3.645 1.1-4.581.732-.934 2.21-1.401 4.43-1.401 1.377 0 2.568.221 3.571.665 1.003.446 1.504 1.497 1.504 3.153v.188a.232.232 0 0 0-.026.106v.106H83.99c0-1.12-.229-1.851-.686-2.188-.455-.34-1.23-.507-2.323-.507-1.665 0-2.712.259-3.142.782-.43.524-.643 1.67-.643 3.44V12.2c0 1.4.16 2.448.482 3.15.324.7 1.298 1.048 2.927 1.048 1.397 0 2.346-.165 2.847-.495zm9.236-4.82L99 17.813h-2.47l-5.317-6.01h-.752v6.01h-1.907V0h1.907v10.362h.752l4.512-5.02h2.309l-5.346 5.741z"})})};qe.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"99",height:"18",viewBox:"0 0 99 18"};function U({showText:e,showLogo:r,mode:t,layout:a,...s}){const c=t==="light"?o.jsx(Oe,{}):o.jsx(Ve,{}),d=t==="light"?o.jsx(He,{className:"logo-text"}):o.jsx(qe,{className:"logo-text"});return o.jsxs(Oo,{layout:a,...s,children:[r&&c,e&&d]})}U.propTypes={mode:n.oneOf(["light","dark"]),layout:n.oneOf(["vertical","horizontal"]),showText:n.bool,showLogo:n.bool};U.defaultProps={mode:"dark",layout:"vertical",showText:!0,showLogo:!0};const Oo=v("span")`
14
14
  display: inline-flex;
15
15
  flex-direction: ${e=>e.layout==="horizontal"?"row":"column"};
16
16
  justify-content: center;
@@ -20,7 +20,7 @@ import{aC as Pe,aB as ze,aD as ee,af as Ne,aE as W,aG as P,r as l,aK as Ce,aF as
20
20
  ${e=>e.layout==="vertical"?"margin-top: 8px;":""}
21
21
  ${e=>e.layout==="vertical"?"":"margin-left: 8px;"};
22
22
  }
23
- `;function he({images:e,links:r,prefix:t,addons:a,logo:s,...c}){const d=oe(),i=de(),p=(u,x)=>new RegExp(`/${x}`).test(i.pathname);return o.jsxs(Ho,{...c,children:[o.jsx(Q,{to:"/",className:"sidebar-logo",children:s||o.jsx(S,{showText:!1,size:20})}),r.map(({url:u,name:x,title:m,showBadge:j})=>{const y=p(u,x);return o.jsxs(Vo,{component:Q,selected:y,to:u,children:[o.jsx(ue,{name:e[x],size:36,color:y?"#00c2c4":d.typography.color.main,prefix:t,showBadge:j}),o.jsx(F,{component:"span",className:"menu-title",children:m})]},u)}),o.jsx("div",{style:{flex:1}}),a]})}he.propTypes={images:n.object.isRequired,links:n.array.isRequired,prefix:n.string,addons:n.any,logo:n.any};he.defaultProps={prefix:"/images",addons:null,logo:null};const Ho=l.memo(v("div")`
23
+ `;function he({images:e,links:r,prefix:t,addons:a,logo:s,...c}){const d=oe(),i=de(),p=(u,x)=>new RegExp(`/${x}`).test(i.pathname);return o.jsxs(Ho,{...c,children:[o.jsx(Q,{to:"/",className:"sidebar-logo",children:s||o.jsx(U,{showText:!1,size:20})}),r.map(({url:u,name:x,title:m,showBadge:j})=>{const y=p(u,x);return o.jsxs(Vo,{component:Q,selected:y,to:u,children:[o.jsx(ue,{name:e[x],size:36,color:y?"#00c2c4":d.typography.color.main,prefix:t,showBadge:j}),o.jsx(F,{component:"span",className:"menu-title",children:m})]},u)}),o.jsx("div",{style:{flex:1}}),a]})}he.propTypes={images:n.object.isRequired,links:n.array.isRequired,prefix:n.string,addons:n.any,logo:n.any};he.defaultProps={prefix:"/images",addons:null,logo:null};const Ho=l.memo(v("div")`
24
24
  flex: 1;
25
25
  display: flex;
26
26
  flex-direction: column;
@@ -70,7 +70,7 @@ import{aC as Pe,aB as ze,aD as ee,af as Ne,aE as W,aG as P,r as l,aK as Ce,aF as
70
70
  color: ${e=>e.theme.palette.text.primary};
71
71
  }
72
72
  }
73
- `;var xe={},qo=le;Object.defineProperty(xe,"__esModule",{value:!0});var re=xe.default=void 0,Eo=qo(ie()),Uo=o;re=xe.default=(0,Eo.default)((0,Uo.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");const So=v(wo)`
73
+ `;var xe={},qo=le;Object.defineProperty(xe,"__esModule",{value:!0});var re=xe.default=void 0,Eo=qo(ie()),So=o;re=xe.default=(0,Eo.default)((0,So.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");const Uo=v(wo)`
74
74
  && {
75
75
  z-index: ${e=>e.theme.zIndex.drawer};
76
76
  background: ${e=>e.theme.palette.background.default};
@@ -140,7 +140,7 @@ import{aC as Pe,aB as ze,aD as ee,af as Ne,aE as W,aG as P,r as l,aK as Ce,aF as
140
140
  display: block;
141
141
  }
142
142
  }
143
- `;function me({children:e,brand:r,brandAddon:t,description:a,addons:s,onToggleMenu:c,homeUrl:d,logo:i,...p}){return o.jsx(So,{position:"sticky",className:"header",...p,children:o.jsxs(xo,{disableGutters:!1,className:"header-toolbar",children:[o.jsx(Re,{color:"inherit","aria-label":"open drawer",edge:"start",className:"header-menu","aira-label":"header menu button",onClick:c,children:o.jsx(re,{})}),o.jsxs(Q,{to:d,className:"header-link",children:[o.jsx(Be,{mdDown:!0,children:o.jsx("div",{className:"header-logo",children:i||o.jsx(S,{showText:!1})})}),o.jsxs("div",{className:"header-title",children:[o.jsxs(F,{component:"h2",noWrap:!0,className:"header-title__primary",children:[r,t]}),o.jsx(F,{component:"p",noWrap:!0,className:"header-title__secondary",children:a})]})]}),o.jsx(C,{flexGrow:1}),!!e&&o.jsx("div",{className:"header-children",children:e}),o.jsx("div",{className:"header-addons",children:s})]})})}me.propTypes={onToggleMenu:n.func.isRequired,brand:n.string.isRequired,brandAddon:n.object,description:n.any.isRequired,children:n.any,addons:n.any,homeUrl:n.string,logo:n.any};me.defaultProps={children:null,addons:null,brandAddon:null,homeUrl:"/",logo:null};function H(e){var m;const r=so(e,H,["dark","style"]),{className:t,copyStart:a,style:s,brand:c,dark:d,addon:i}=r,p=`${new Date().getFullYear()}`,u=`${a}`,x=p===u?p:`${u}-${p}`;return o.jsxs(Go,{className:t,style:s,dark:d,children:[o.jsx(U,{maxWidth:!1,children:o.jsxs(F,{component:"div",className:"footer",children:[o.jsxs(F,{component:"p",className:"footer-item",children:[o.jsxs("span",{className:"footer-copy",children:["Copyright © ",x," "]}),o.jsx("span",{className:"footer-brand",children:c})]}),i&&o.jsx(F,{component:"div",className:"footer-item",sx:{order:{xs:"-1",md:"initial"},ml:{xs:0,md:"auto"},width:{xs:"100%",md:"auto"}},children:i}),o.jsxs(F,{component:"p",className:"footer-item",style:{justifyContent:"flex-end",flexShrink:0},children:["Powered by",o.jsx(S,{mode:d?"light":"dark",layout:"horizontal",className:"logo-container"})]})]})}),o.jsx(C,{position:"absolute",right:16,bottom:0,fontSize:12,sx:{color:"transparent","::selection":{background:"#000",color:"#fff"}},children:(m=window==null?void 0:window.blocklet)==null?void 0:m.version})]})}H.propTypes={dark:n.bool,className:n.string,copyStart:n.oneOfType([n.string,n.number]),brand:n.string,style:n.object,addon:n.node};H.defaultProps={dark:!1,brand:"ArcBlock",copyStart:"2017",className:"",style:{},addon:null};const Go=v("div",{shouldForwardProp:e=>e!=="dark"})`
143
+ `;function me({children:e,brand:r,brandAddon:t,description:a,addons:s,onToggleMenu:c,homeUrl:d,logo:i,...p}){return o.jsx(Uo,{position:"sticky",className:"header",...p,children:o.jsxs(xo,{disableGutters:!1,className:"header-toolbar",children:[o.jsx(Re,{color:"inherit","aria-label":"open drawer",edge:"start",className:"header-menu","aira-label":"header menu button",onClick:c,children:o.jsx(re,{})}),o.jsxs(Q,{to:d,className:"header-link",children:[o.jsx(Be,{mdDown:!0,children:o.jsx("div",{className:"header-logo",children:i||o.jsx(U,{showText:!1})})}),o.jsxs("div",{className:"header-title",children:[o.jsxs(F,{component:"h2",noWrap:!0,className:"header-title__primary",children:[r,t]}),o.jsx(F,{component:"p",noWrap:!0,className:"header-title__secondary",children:a})]})]}),o.jsx(C,{flexGrow:1}),!!e&&o.jsx("div",{className:"header-children",children:e}),o.jsx("div",{className:"header-addons",children:s})]})})}me.propTypes={onToggleMenu:n.func.isRequired,brand:n.string.isRequired,brandAddon:n.object,description:n.any.isRequired,children:n.any,addons:n.any,homeUrl:n.string,logo:n.any};me.defaultProps={children:null,addons:null,brandAddon:null,homeUrl:"/",logo:null};function H(e){var m;const r=so(e,H,["dark","style"]),{className:t,copyStart:a,style:s,brand:c,dark:d,addon:i}=r,p=`${new Date().getFullYear()}`,u=`${a}`,x=p===u?p:`${u}-${p}`;return o.jsxs(Go,{className:t,style:s,dark:d,children:[o.jsx(S,{maxWidth:!1,children:o.jsxs(F,{component:"div",className:"footer",children:[o.jsxs(F,{component:"p",className:"footer-item",children:[o.jsxs("span",{className:"footer-copy",children:["Copyright © ",x," "]}),o.jsx("span",{className:"footer-brand",children:c})]}),i&&o.jsx(F,{component:"div",className:"footer-item",sx:{order:{xs:"-1",md:"initial"},ml:{xs:0,md:"auto"},width:{xs:"100%",md:"auto"}},children:i}),o.jsxs(F,{component:"p",className:"footer-item",style:{justifyContent:"flex-end",flexShrink:0},children:["Powered by",o.jsx(U,{mode:d?"light":"dark",layout:"horizontal",className:"logo-container"})]})]})}),o.jsx(C,{position:"absolute",right:16,bottom:0,fontSize:12,sx:{color:"transparent","::selection":{background:"#000",color:"#fff"}},children:(m=window==null?void 0:window.blocklet)==null?void 0:m.version})]})}H.propTypes={dark:n.bool,className:n.string,copyStart:n.oneOfType([n.string,n.number]),brand:n.string,style:n.object,addon:n.node};H.defaultProps={dark:!1,brand:"ArcBlock",copyStart:"2017",className:"",style:{},addon:null};const Go=v("div",{shouldForwardProp:e=>e!=="dark"})`
144
144
  position: relative;
145
145
  margin-top: 64px;
146
146
  padding: 24px 0 32px;
@@ -228,7 +228,7 @@ import{aC as Pe,aB as ze,aD as ee,af as Ne,aE as W,aG as P,r as l,aK as Ce,aF as
228
228
  box-shadow: 2px 16px 10px 0 rgba(0, 0, 0, ${e=>e.theme.mode==="light"?.05:.5});
229
229
  border: 0;
230
230
  }
231
- `;function fe({children:e,title:r,brand:t,description:a,brandAddon:s,headerAddon:c,images:d,links:i,prefix:p,fullWidth:u,contentLayout:x,className:m,homeUrl:j,logo:y,...z}){const b=io(document.body),N=(b==null?void 0:b.width)||0,[w,M]=l.useState(N>=960?"permanent":"temporary"),[R,I]=l.useState(w==="permanent");l.useEffect(()=>{const _=N>=960?"permanent":"temporary";M(_),I(_!=="temporary")},[N]);const k=()=>{I(!R)},$=u||x==="row";return o.jsxs(Yo,{className:`dashboard ${m}`,...z,children:[o.jsx(Te,{title:`${r}-${t}`}),o.jsx(me,{className:"dashboard__header",onToggleMenu:k,brand:t,brandAddon:s,description:a,addons:c,homeUrl:j,logo:y}),o.jsxs(C,{display:"flex",className:"dashboard__body",children:[o.jsx(De,{variant:w,className:"drawer",classes:{paper:"drawerPaper"},open:R,onClose:k,ModalProps:{disablePortal:!0,keepMounted:!0},children:o.jsx(he,{className:"dashboard__sidebar",images:d,links:i,prefix:p,logo:y})}),o.jsxs(C,{className:"dashboard__main",children:[o.jsx(U,{maxWidth:$?!1:"lg",className:"dashboard__content",children:e}),o.jsx(H,{})]})]})]})}fe.propTypes={children:n.any.isRequired,title:n.string,brand:n.string.isRequired,links:n.array.isRequired,images:n.object.isRequired,brandAddon:n.object,description:n.any.isRequired,headerAddon:n.any,prefix:n.string,contentLayout:n.oneOf(["row","column"]),fullWidth:n.bool,className:n.string,homeUrl:n.string,logo:n.any};fe.defaultProps={title:"Home",contentLayout:"column",headerAddon:null,brandAddon:null,prefix:"/images",fullWidth:!1,className:"",homeUrl:"/",logo:null};function Ee({height:e,...r}){return o.jsx(Ko,{height:e,...r})}Ee.propTypes={height:n.oneOfType([n.number,n.string]).isRequired};const Ko=v(C)`
231
+ `;function fe({children:e,title:r,brand:t,description:a,brandAddon:s,headerAddon:c,images:d,links:i,prefix:p,fullWidth:u,contentLayout:x,className:m,homeUrl:j,logo:y,...z}){const b=io(document.body),N=(b==null?void 0:b.width)||0,[w,M]=l.useState(N>=960?"permanent":"temporary"),[R,I]=l.useState(w==="permanent");l.useEffect(()=>{const _=N>=960?"permanent":"temporary";M(_),I(_!=="temporary")},[N]);const k=()=>{I(!R)},$=u||x==="row";return o.jsxs(Yo,{className:`dashboard ${m}`,...z,children:[o.jsx(Te,{title:`${r}-${t}`}),o.jsx(me,{className:"dashboard__header",onToggleMenu:k,brand:t,brandAddon:s,description:a,addons:c,homeUrl:j,logo:y}),o.jsxs(C,{display:"flex",className:"dashboard__body",children:[o.jsx(De,{variant:w,className:"drawer",classes:{paper:"drawerPaper"},open:R,onClose:k,ModalProps:{disablePortal:!0,keepMounted:!0},children:o.jsx(he,{className:"dashboard__sidebar",images:d,links:i,prefix:p,logo:y})}),o.jsxs(C,{className:"dashboard__main",children:[o.jsx(S,{maxWidth:$?!1:"lg",className:"dashboard__content",children:e}),o.jsx(H,{})]})]})]})}fe.propTypes={children:n.any.isRequired,title:n.string,brand:n.string.isRequired,links:n.array.isRequired,images:n.object.isRequired,brandAddon:n.object,description:n.any.isRequired,headerAddon:n.any,prefix:n.string,contentLayout:n.oneOf(["row","column"]),fullWidth:n.bool,className:n.string,homeUrl:n.string,logo:n.any};fe.defaultProps={title:"Home",contentLayout:"column",headerAddon:null,brandAddon:null,prefix:"/images",fullWidth:!1,className:"",homeUrl:"/",logo:null};function Ee({height:e,...r}){return o.jsx(Xo,{height:e,...r})}Ee.propTypes={height:n.oneOfType([n.number,n.string]).isRequired};const Xo=v(C)`
232
232
  overflow: hidden;
233
233
  &:before {
234
234
  content: '';
@@ -241,7 +241,7 @@ import{aC as Pe,aB as ze,aD as ee,af as Ne,aE as W,aG as P,r as l,aK as Ce,aF as
241
241
  float: left;
242
242
  white-space: nowrap;
243
243
  }
244
- `;function V({logo:e,brand:r,brandAddon:t,description:a,children:s,addons:c,prepend:d,align:i,maxWidth:p,homeLink:u,...x}){const m=l.useRef(),[j,y]=l.useState("0px"),z={minWidth:j};l.useEffect(()=>{m.current&&y(`${m.current.offsetWidth}px`)},[]);const g=()=>{const b=o.jsxs(o.Fragment,{children:[e&&o.jsx("div",{className:"header-logo",ref:m,children:e}),r&&o.jsx(Ee,{height:44,sx:{flexShrink:{xs:1}},children:o.jsxs("div",{className:"header-brand",children:[o.jsx("div",{className:"header-brand-title",children:o.jsx("h2",{children:r})}),o.jsx("div",{className:"header-brand-desc",children:a})]})})]});return typeof u=="function"?u(b):o.jsx("a",{href:u,children:b})};return o.jsx(Zo,{...x,children:o.jsxs(U,{maxWidth:p,className:"header-container",children:[d,o.jsx("div",{className:"header-brand-wrapper",style:z,children:g()}),o.jsx("div",{className:"header-brand-addon",children:t}),i==="right"&&o.jsx(C,{flexGrow:1}),s,i==="left"&&o.jsx(C,{flexGrow:1}),o.jsx("div",{className:"header-addons",children:c})]})})}V.propTypes={logo:n.node,brand:n.node,brandAddon:n.node,description:n.node,children:n.node,addons:n.node,prepend:n.node,align:n.oneOf(["left","right"]),maxWidth:n.oneOfType([n.string,n.oneOf(["xs","sm","md","lg","xl",!1])]),homeLink:n.oneOfType([n.string,n.func])};V.defaultProps={logo:null,brand:null,brandAddon:null,description:null,children:null,addons:null,prepend:null,align:"left",maxWidth:void 0,homeLink:"/"};const Zo=v("div")`
244
+ `;function V({logo:e,brand:r,brandAddon:t,description:a,children:s,addons:c,prepend:d,align:i,maxWidth:p,homeLink:u,...x}){const m=l.useRef(),[j,y]=l.useState("0px"),z={minWidth:j};l.useEffect(()=>{m.current&&y(`${m.current.offsetWidth}px`)},[]);const g=()=>{const b=o.jsxs(o.Fragment,{children:[e&&o.jsx("div",{className:"header-logo",ref:m,children:e}),r&&o.jsx(Ee,{height:44,sx:{flexShrink:{xs:1}},children:o.jsxs("div",{className:"header-brand",children:[o.jsx("div",{className:"header-brand-title",children:o.jsx("h2",{children:r})}),o.jsx("div",{className:"header-brand-desc",children:a})]})})]});return typeof u=="function"?u(b):o.jsx("a",{href:u,children:b})};return o.jsx(Jo,{...x,children:o.jsxs(S,{maxWidth:p,className:"header-container",children:[d,o.jsx("div",{className:"header-brand-wrapper",style:z,children:g()}),o.jsx("div",{className:"header-brand-addon",children:t}),i==="right"&&o.jsx(C,{flexGrow:1}),s,i==="left"&&o.jsx(C,{flexGrow:1}),o.jsx("div",{className:"header-addons",children:c})]})})}V.propTypes={logo:n.node,brand:n.node,brandAddon:n.node,description:n.node,children:n.node,addons:n.node,prepend:n.node,align:n.oneOf(["left","right"]),maxWidth:n.oneOfType([n.string,n.oneOf(["xs","sm","md","lg","xl",!1])]),homeLink:n.oneOfType([n.string,n.func])};V.defaultProps={logo:null,brand:null,brandAddon:null,description:null,children:null,addons:null,prepend:null,align:"left",maxWidth:void 0,homeLink:"/"};const Jo=v("div")`
245
245
  position: relative;
246
246
  z-index: ${e=>e.theme.zIndex.appBar};
247
247
  font-size: 14px;
@@ -337,7 +337,7 @@ import{aC as Pe,aB as ze,aD as ee,af as Ne,aE as W,aG as P,r as l,aK as Ce,aF as
337
337
  }
338
338
  }
339
339
  }
340
- `;function ge({menu:e,prepend:r,children:t,...a}){const s=oe(),c=lo(s.breakpoints.down("md")),[d,i]=l.useState(!1),p=typeof t=="function"?t({isMobile:c,closeMenu:()=>i(!1)}):t;return t?o.jsxs(Jo,{prepend:r||o.jsx(Re,{sx:{color:s.palette.grey[500]},edge:"start",className:"header-menu","aria-label":"header menu button",onClick:()=>i(!d),children:d?o.jsx(co,{}):o.jsx(re,{})}),...a,children:[!c&&p,c&&o.jsx(De,{open:d,onClose:()=>i(!1),ModalProps:{disablePortal:!1,keepMounted:!0,BackdropComponent:null},anchor:"top",sx:{top:64,zIndex:s.zIndex.appBar-1},PaperProps:{style:{top:64,bottom:0,boxShadow:"none"}},children:o.jsx(Qo,{children:p})})]}):o.jsx(V,{prepend:r,...a})}ge.propTypes={...V.PropTypes,children:n.oneOfType([n.node,n.func])};ge.defaultProps={...V.defaultProps};const Jo=v(V)`
340
+ `;function ge({menu:e,prepend:r,children:t,...a}){const s=oe(),c=lo(s.breakpoints.down("md")),[d,i]=l.useState(!1),p=typeof t=="function"?t({isMobile:c,closeMenu:()=>i(!1)}):t;return t?o.jsxs(Ko,{prepend:r||o.jsx(Re,{sx:{color:s.palette.grey[500]},edge:"start",className:"header-menu","aria-label":"header menu button",onClick:()=>i(!d),children:d?o.jsx(co,{}):o.jsx(re,{})}),...a,children:[!c&&p,c&&o.jsx(De,{open:d,onClose:()=>i(!1),ModalProps:{disablePortal:!1,keepMounted:!0,BackdropComponent:null},anchor:"top",sx:{top:64,zIndex:s.zIndex.appBar-1},PaperProps:{style:{top:64,bottom:0,boxShadow:"none"}},children:o.jsx(Qo,{children:p})})]}):o.jsx(V,{prepend:r,...a})}ge.propTypes={...V.PropTypes,children:n.oneOfType([n.node,n.func])};ge.defaultProps={...V.defaultProps};const Ko=v(V)`
341
341
  .header-menu {
342
342
  display: none;
343
343
  }
@@ -347,7 +347,7 @@ import{aC as Pe,aB as ze,aD as ee,af as Ne,aE as W,aG as P,r as l,aK as Ce,aF as
347
347
  margin-right: 12px;
348
348
  }
349
349
  }
350
- `,Qo=v(U)`
350
+ `,Qo=v(S)`
351
351
  padding-top: 8px;
352
352
  padding-bottom: 16px;
353
353
  .navmenu {
@@ -357,7 +357,7 @@ import{aC as Pe,aB as ze,aD as ee,af as Ne,aE as W,aG as P,r as l,aK as Ce,aF as
357
357
  border: 0;
358
358
  }
359
359
  }
360
- `,Ue=v("nav")`
360
+ `,Se=v("nav")`
361
361
  background-color: ${e=>e.$bgColor};
362
362
  font-size: 16px;
363
363
  ul {
@@ -433,7 +433,7 @@ import{aC as Pe,aB as ze,aD as ee,af as Ne,aE as W,aG as P,r as l,aK as Ce,aF as
433
433
  transition: transform 0.2s ease-in-out;
434
434
  }
435
435
  }
436
- `,Xo=v(Ue)`
436
+ `,Zo=v(Se)`
437
437
  padding: 8px 16px;
438
438
  min-width: 50px;
439
439
  flex-grow: 1;
@@ -480,7 +480,7 @@ import{aC as Pe,aB as ze,aD as ee,af as Ne,aE as W,aG as P,r as l,aK as Ce,aF as
480
480
  display: block;
481
481
  }
482
482
  }
483
- `,er=v(Ue)`
483
+ `,er=v(Se)`
484
484
  font-size: 16px;
485
485
  .navmenu-root {
486
486
  display: flex;
@@ -532,7 +532,7 @@ import{aC as Pe,aB as ze,aD as ee,af as Ne,aE as W,aG as P,r as l,aK as Ce,aF as
532
532
  .navmenu-sub--opened > .navmenu-sub-container {
533
533
  display: block;
534
534
  }
535
- `,be=l.createContext();function Se(e){return e?l.Children.toArray(e).filter(r=>r.type===Y||r.type===O):null}function Ge(e){return l.useRef(e||`navmenu-item-id-${Math.random().toString(36).slice(2)}`).current}function G({items:e,mode:r,children:t,activeId:a,textColor:s,activeTextColor:c,bgColor:d,onSelected:i,...p}){var q;if(t=Se(t),!(e!=null&&e.length)&&!(t!=null&&t.length))throw new Error("One of 'items' or 'children' is required by NavMenu component.");const[u,x]=l.useState({activeId:a,openedIds:[]}),m=l.useCallback(h=>{x(f=>({...f,activeId:h})),i==null||i(h)},[i]),j=l.useCallback(h=>{x(f=>({...f,openedIds:[...f.openedIds,h]}))},[]),y=l.useCallback(h=>{x(f=>({...f,openedIds:f.openedIds.filter(A=>A!==h)}))},[]),z=l.useMemo(()=>({...u,mode:r,activate:m,open:j,close:y}),[u,r,m,j,y]),[g,b]=l.useState(0),N=l.useRef(),w=l.useRef([]),M=l.useRef(),R=g===((q=w.current)==null?void 0:q.length),I=R?o.jsx(re,{}):o.jsx(mo,{}),k=R?{marginLeft:"0px"}:void 0,$=h=>l.Children.map(h,(f,A)=>l.cloneElement(f,{ref:D=>{w.current[A]=D}})),_=po(()=>{var je;let h=0,f=0,A=!1;const D=((je=N.current)==null?void 0:je.offsetWidth)||0,te=M.current?M.current.offsetWidth+parseFloat(window.getComputedStyle(M.current).marginLeft):0;w.current.forEach((E,Qe)=>{if(E){E.style.display="flex";const Xe=Qe>0?parseFloat(window.getComputedStyle(E).marginLeft):0,we=E.offsetWidth+Xe;D-te>=h+we&&!A?h+=we:(E.style.display="none",A=!0,f++)}}),f!==g&&b(f)});l.useEffect(()=>{if(r==="horizontal")return _(),window.addEventListener("resize",_),()=>{window.removeEventListener("resize",_)}},[r]),l.useEffect(()=>{a!=null&&x(h=>({...h,activeId:a}))},[a]);const ye=T("navmenu",`navmenu--${r}`,p.className),B=(h,f,A=!1)=>h!=null&&h.children?o.jsx(O,{id:h.id,icon:h.icon,label:h.label,ref:A?D=>{w.current[f]=D}:void 0,children:h.children.map((D,te)=>B(D,te,!1))},f):o.jsx(Y,{id:h.id,icon:h.icon,label:h.label,active:h.active,ref:A?D=>{w.current[f]=D}:void 0},f),L=e?e==null?void 0:e.slice(-g).map((h,f)=>B(h,f)):t==null?void 0:t.slice(-g),Z=r==="inline"?er:Xo;return o.jsx(be.Provider,{value:z,children:o.jsx(Z,{...p,className:ye,$textColor:s,$activeTextColor:c,$bgColor:d,children:o.jsxs("ul",{className:"navmenu-root",ref:N,children:[e?e.map((h,f)=>B(h,f,!0)):$(t),g>0&&o.jsx(O,{expandIcon:!1,icon:I,label:"",ref:M,style:k,children:L})]})})})}G.propTypes={items:n.array,mode:n.oneOf(["horizontal","vertical","inline"]),children:n.array,activeId:n.string,textColor:n.string,activeTextColor:n.string,bgColor:n.string,onSelected:n.func};G.defaultProps={items:null,mode:"horizontal",children:null,activeId:null,textColor:"#9397a1",activeTextColor:"#25292f",bgColor:"#fff",onSelected:null};const Y=l.forwardRef(({id:e,icon:r,label:t,active:a,onClick:s,...c},d)=>{const i=Ge(e),{activeId:p,activate:u}=l.useContext(be),x=T("navmenu-item",{"navmenu-item--active":p===i},c.className);l.useEffect(()=>{a&&u(i)},[a]);const m=()=>{s==null||s(),u(i)};return o.jsxs("li",{...c,className:x,onClick:m,ref:d,children:[r&&o.jsx("span",{className:"navmenu-item-icon",children:r}),o.jsx("span",{className:"navmenu-item-label",children:t})]})});Y.propTypes={id:n.string,icon:n.element,label:n.node,active:n.bool,onClick:n.func};Y.defaultProps={id:null,icon:null,label:"",active:!1,onClick:null};const O=l.forwardRef(({id:e,icon:r,label:t,children:a,expandIcon:s,...c},d)=>{const i=Ge(e),{openedIds:p,open:u,close:x,mode:m}=l.useContext(be),j=p.includes(i),y=T("navmenu-sub",{"navmenu-sub--opened":j},c.className),z=m==="inline",g=z?{onClick:()=>p.includes(i)?x(i):u(i)}:{onMouseEnter:()=>u(i),onMouseLeave:()=>x(i)},b=z?{onClick:N=>N.stopPropagation()}:{};return o.jsxs("li",{...c,className:y,...g,ref:d,children:[r&&o.jsx("span",{className:"navmenu-sub-icon",children:r}),o.jsx("span",{className:"navmenu-sub-label",children:t}),s&&o.jsx("span",{className:"navmenu-sub-expand-icon",children:(s==null?void 0:s({isOpen:j}))||s}),o.jsx("div",{className:"navmenu-sub-container",...b,children:o.jsx("ul",{className:"navmenu-sub-list",children:Se(a)})})]})});O.propTypes={id:n.string,icon:n.element,label:n.node.isRequired,children:n.array.isRequired,expandIcon:n.oneOfType([n.node,n.func])};O.defaultProps={id:null,icon:null,expandIcon:({isOpen:e})=>o.jsx(fo,{style:{transform:`rotate(${e?180:0}deg)`}})};G.Item=Y;G.Sub=O;function ne({children:e,routerLinkComponent:r,to:t,external:a,...s}){return a?o.jsx("a",{href:t,...s,children:e}):o.jsx(r,{to:t,...s,children:e})}ne.propTypes={children:n.any.isRequired,routerLinkComponent:n.elementType.isRequired,external:n.bool,to:n.oneOfType([n.string,n.object]).isRequired};ne.defaultProps={external:!1};function Ye(e){return o.jsx(ne,{routerLinkComponent:Q,...e})}function ve({className:e,...r}){const t=r.external&&typeof e=="function"?e({}):e;return o.jsx(ne,{routerLinkComponent:uo,className:t,...r})}ve.propTypes={className:n.oneOfType([n.string,n.func])};ve.defaultProps={className:""};function or(e,r){return o.jsxs("li",{className:"layout-sidebar-group",children:[o.jsx("span",{className:"layout-sidebar-group-title",children:e.title}),o.jsx("ul",{children:e.children.map(Ke)})]},`group-${e.title}-${r}`)}function Ke(e,r){var p;if((p=e.children)!=null&&p.length)return or(e,r);const{url:t,icon:a,title:s,showBadge:c,external:d,active:i}=e;return o.jsx("li",{className:"layout-sidebar-item",children:o.jsxs(ve,{external:d,to:t,className:({isActive:u})=>T("layout-sidebar-link",{"layout-sidebar-link--active":d?i:u}),children:[a&&o.jsx("span",{className:`layout-sidebar-icon ${c?"layout-sidebar-badge":""}`,children:a}),o.jsx(F,{component:"span",className:"layout-sidebar-link-text",children:s})]})},`${t}-${r}`)}function X({links:e,addons:r,dense:t,...a}){return o.jsxs(nr,{...a,className:T({"layout-sidebar-dense":t}),children:[o.jsx("ul",{children:e.map(Ke)}),o.jsx("div",{style:{flex:1}}),r]})}X.propTypes={links:n.array.isRequired,addons:n.any,dense:n.bool};X.defaultProps={addons:null,dense:!1};const rr="linear-gradient(32deg, rgba(144, 255, 230, 0.1), rgba(144, 255, 230, 0))",nr=v("div")`
535
+ `,be=l.createContext();function Ue(e){return e?l.Children.toArray(e).filter(r=>r.type===Y||r.type===O):null}function Ge(e){return l.useRef(e||`navmenu-item-id-${Math.random().toString(36).slice(2)}`).current}function G({items:e,mode:r,children:t,activeId:a,textColor:s,activeTextColor:c,bgColor:d,onSelected:i,...p}){var q;if(t=Ue(t),!(e!=null&&e.length)&&!(t!=null&&t.length))throw new Error("One of 'items' or 'children' is required by NavMenu component.");const[u,x]=l.useState({activeId:a,openedIds:[]}),m=l.useCallback(h=>{x(f=>({...f,activeId:h})),i==null||i(h)},[i]),j=l.useCallback(h=>{x(f=>({...f,openedIds:[...f.openedIds,h]}))},[]),y=l.useCallback(h=>{x(f=>({...f,openedIds:f.openedIds.filter(A=>A!==h)}))},[]),z=l.useMemo(()=>({...u,mode:r,activate:m,open:j,close:y}),[u,r,m,j,y]),[g,b]=l.useState(0),N=l.useRef(),w=l.useRef([]),M=l.useRef(),R=g===((q=w.current)==null?void 0:q.length),I=R?o.jsx(re,{}):o.jsx(mo,{}),k=R?{marginLeft:"0px"}:void 0,$=h=>l.Children.map(h,(f,A)=>l.cloneElement(f,{ref:D=>{w.current[A]=D}})),_=po(()=>{var je;let h=0,f=0,A=!1;const D=((je=N.current)==null?void 0:je.offsetWidth)||0,te=M.current?M.current.offsetWidth+parseFloat(window.getComputedStyle(M.current).marginLeft):0;w.current.forEach((E,Qe)=>{if(E){E.style.display="flex";const Ze=Qe>0?parseFloat(window.getComputedStyle(E).marginLeft):0,we=E.offsetWidth+Ze;D-te>=h+we&&!A?h+=we:(E.style.display="none",A=!0,f++)}}),f!==g&&b(f)});l.useEffect(()=>{if(r==="horizontal")return _(),window.addEventListener("resize",_),()=>{window.removeEventListener("resize",_)}},[r]),l.useEffect(()=>{a!=null&&x(h=>({...h,activeId:a}))},[a]);const ye=T("navmenu",`navmenu--${r}`,p.className),B=(h,f,A=!1)=>h!=null&&h.children?o.jsx(O,{id:h.id,icon:h.icon,label:h.label,ref:A?D=>{w.current[f]=D}:void 0,children:h.children.map((D,te)=>B(D,te,!1))},f):o.jsx(Y,{id:h.id,icon:h.icon,label:h.label,active:h.active,ref:A?D=>{w.current[f]=D}:void 0},f),L=e?e==null?void 0:e.slice(-g).map((h,f)=>B(h,f)):t==null?void 0:t.slice(-g),J=r==="inline"?er:Zo;return o.jsx(be.Provider,{value:z,children:o.jsx(J,{...p,className:ye,$textColor:s,$activeTextColor:c,$bgColor:d,children:o.jsxs("ul",{className:"navmenu-root",ref:N,children:[e?e.map((h,f)=>B(h,f,!0)):$(t),g>0&&o.jsx(O,{expandIcon:!1,icon:I,label:"",ref:M,style:k,children:L})]})})})}G.propTypes={items:n.array,mode:n.oneOf(["horizontal","vertical","inline"]),children:n.array,activeId:n.string,textColor:n.string,activeTextColor:n.string,bgColor:n.string,onSelected:n.func};G.defaultProps={items:null,mode:"horizontal",children:null,activeId:null,textColor:"#9397a1",activeTextColor:"#25292f",bgColor:"#fff",onSelected:null};const Y=l.forwardRef(({id:e,icon:r,label:t,active:a,onClick:s,...c},d)=>{const i=Ge(e),{activeId:p,activate:u}=l.useContext(be),x=T("navmenu-item",{"navmenu-item--active":p===i},c.className);l.useEffect(()=>{a&&u(i)},[a]);const m=()=>{s==null||s(),u(i)};return o.jsxs("li",{...c,className:x,onClick:m,ref:d,children:[r&&o.jsx("span",{className:"navmenu-item-icon",children:r}),o.jsx("span",{className:"navmenu-item-label",children:t})]})});Y.propTypes={id:n.string,icon:n.element,label:n.node,active:n.bool,onClick:n.func};Y.defaultProps={id:null,icon:null,label:"",active:!1,onClick:null};const O=l.forwardRef(({id:e,icon:r,label:t,children:a,expandIcon:s,...c},d)=>{const i=Ge(e),{openedIds:p,open:u,close:x,mode:m}=l.useContext(be),j=p.includes(i),y=T("navmenu-sub",{"navmenu-sub--opened":j},c.className),z=m==="inline",g=z?{onClick:()=>p.includes(i)?x(i):u(i)}:{onMouseEnter:()=>u(i),onMouseLeave:()=>x(i)},b=z?{onClick:N=>N.stopPropagation()}:{};return o.jsxs("li",{...c,className:y,...g,ref:d,children:[r&&o.jsx("span",{className:"navmenu-sub-icon",children:r}),o.jsx("span",{className:"navmenu-sub-label",children:t}),s&&o.jsx("span",{className:"navmenu-sub-expand-icon",children:(s==null?void 0:s({isOpen:j}))||s}),o.jsx("div",{className:"navmenu-sub-container",...b,children:o.jsx("ul",{className:"navmenu-sub-list",children:Ue(a)})})]})});O.propTypes={id:n.string,icon:n.element,label:n.node.isRequired,children:n.array.isRequired,expandIcon:n.oneOfType([n.node,n.func])};O.defaultProps={id:null,icon:null,expandIcon:({isOpen:e})=>o.jsx(fo,{style:{transform:`rotate(${e?180:0}deg)`}})};G.Item=Y;G.Sub=O;function ne({children:e,routerLinkComponent:r,to:t,external:a,...s}){return a?o.jsx("a",{href:t,...s,children:e}):o.jsx(r,{to:t,...s,children:e})}ne.propTypes={children:n.any.isRequired,routerLinkComponent:n.elementType.isRequired,external:n.bool,to:n.oneOfType([n.string,n.object]).isRequired};ne.defaultProps={external:!1};function Ye(e){return o.jsx(ne,{routerLinkComponent:Q,...e})}function ve({className:e,...r}){const t=r.external&&typeof e=="function"?e({}):e;return o.jsx(ne,{routerLinkComponent:uo,className:t,...r})}ve.propTypes={className:n.oneOfType([n.string,n.func])};ve.defaultProps={className:""};function or(e,r){return o.jsxs("li",{className:"layout-sidebar-group",children:[o.jsx("span",{className:"layout-sidebar-group-title",children:e.title}),o.jsx("ul",{children:e.children.map(Xe)})]},`group-${e.title}-${r}`)}function Xe(e,r){var p;if((p=e.children)!=null&&p.length)return or(e,r);const{url:t,icon:a,title:s,showBadge:c,external:d,active:i}=e;return o.jsx("li",{className:"layout-sidebar-item",children:o.jsxs(ve,{external:d,to:t,className:({isActive:u})=>T("layout-sidebar-link",{"layout-sidebar-link--active":d?i:u}),children:[a&&o.jsx("span",{className:`layout-sidebar-icon ${c?"layout-sidebar-badge":""}`,children:a}),o.jsx(F,{component:"span",className:"layout-sidebar-link-text",children:s})]})},`${t}-${r}`)}function Z({links:e,addons:r,dense:t,...a}){return o.jsxs(nr,{...a,className:T({"layout-sidebar-dense":t}),children:[o.jsx("ul",{children:e.map(Xe)}),o.jsx("div",{style:{flex:1}}),r]})}Z.propTypes={links:n.array.isRequired,addons:n.any,dense:n.bool};Z.defaultProps={addons:null,dense:!1};const rr="linear-gradient(32deg, rgba(144, 255, 230, 0.1), rgba(144, 255, 230, 0))",nr=v("div")`
536
536
  display: flex;
537
537
  flex-direction: column;
538
538
  ul {
@@ -655,7 +655,7 @@ import{aC as Pe,aB as ze,aD as ee,af as Ne,aE as W,aG as P,r as l,aK as Ce,aF as
655
655
  margin-top: 16px;
656
656
  }
657
657
  }
658
- `;function tr({closeMenu:e,...r}){const t=de();return l.useEffect(()=>{e()},[t]),o.jsx(G,{...r})}function Ze(e,r){return e.map(t=>{var a;return(a=t.children)!=null&&a.length?{...t,label:t.title,children:Ze(t.children,r)}:{...t,label:o.jsx(Ye,{to:t.url,external:t.external,children:t.title}),active:t.external?t.active:!!ho({path:t.url,end:!1},r.pathname)}})}function K({children:e,title:r,headerProps:t,links:a=[],fullWidth:s,dense:c,footerProps:d,...i}){const p=oe(),{inFullPage:u,showToggleButton:x,headerVisible:m,footerVisible:j,sidebarVisible:y,toggleFullPage:z}=Bo(),g=de(),b=l.useMemo(()=>Ze(a,g),[g,a]),N=b.some(k=>{var $;return!!(($=k.children)!=null&&$.length)}),w=c==="auto"?b.length>=8||N:c,M=T("dashboard",{"dashboard-dense":w},i.className),I={homeLink:k=>{var $;return o.jsx(Ye,{to:(($=window.blocklet)==null?void 0:$.prefix)||"/",children:k})},...t};return o.jsxs(ar,{...i,className:M,children:[o.jsx(Te,{title:r},r),m&&o.jsx(sr,{...I,className:"dashboard-header",children:a!=null&&a.length?({isMobile:k,closeMenu:$})=>k?o.jsx(tr,{mode:"inline",items:b,closeMenu:$,bgColor:"transparent",activeTextColor:p.palette.primary.main}):null:null}),o.jsxs(C,{display:"flex",className:"dashboard-body",children:[o.jsx(Be,{mdDown:!0,children:!!(a!=null&&a.length)&&y&&o.jsx(C,{className:"dashboard-sidebar",children:w?o.jsx(X,{links:a,dense:w}):o.jsx(C,{className:"dashboard-sidebar-container",children:o.jsx(X,{links:a,dense:w})})})}),o.jsxs(C,{className:"dashboard-main",children:[x&&o.jsx(C,{sx:{position:"absolute",top:4,right:4,display:"flex",justifyContent:"center",alignItems:"center",width:24,height:24,color:"#fff",bgcolor:"rgba(158,158,158, 0.6);",borderRadius:1,cursor:"pointer"},onClick:z,children:u?o.jsx(We,{style:{fontSize:18}}):o.jsx(Fe,{style:{fontSize:18}})}),o.jsx(U,{className:"dashboard-content",...s&&{maxWidth:!1},children:e}),j&&o.jsx(H,{...d})]})]})]})}K.propTypes={children:n.any.isRequired,title:n.string,links:n.array.isRequired,headerProps:n.object,fullWidth:n.bool,sidebarWidth:n.number,dense:n.oneOf([!0,!1,"auto"])};K.defaultProps={title:"Home",headerProps:{},fullWidth:!1,sidebarWidth:120,dense:"auto"};const ar=v("div",{shouldForwardProp:e=>e!=="sidebarWidth"})`
658
+ `;function tr({closeMenu:e,...r}){const t=de();return l.useEffect(()=>{e()},[t]),o.jsx(G,{...r})}function Je(e,r){return e.map(t=>{var a;return(a=t.children)!=null&&a.length?{...t,label:t.title,children:Je(t.children,r)}:{...t,label:o.jsx(Ye,{to:t.url,external:t.external,children:t.title}),active:t.external?t.active:!!ho({path:t.url,end:!1},r.pathname)}})}function X({children:e,title:r,headerProps:t,links:a=[],fullWidth:s,dense:c,footerProps:d,...i}){const p=oe(),{inFullPage:u,showToggleButton:x,headerVisible:m,footerVisible:j,sidebarVisible:y,toggleFullPage:z}=Bo(),g=de(),b=l.useMemo(()=>Je(a,g),[g,a]),N=b.some(k=>{var $;return!!(($=k.children)!=null&&$.length)}),w=c==="auto"?b.length>=8||N:c,M=T("dashboard",{"dashboard-dense":w},i.className),I={homeLink:k=>{var $;return o.jsx(Ye,{to:(($=window.blocklet)==null?void 0:$.prefix)||"/",children:k})},...t};return o.jsxs(ar,{...i,className:M,children:[o.jsx(Te,{title:r},r),m&&o.jsx(sr,{...I,className:"dashboard-header",children:a!=null&&a.length?({isMobile:k,closeMenu:$})=>k?o.jsx(tr,{mode:"inline",items:b,closeMenu:$,bgColor:"transparent",activeTextColor:p.palette.primary.main}):null:null}),o.jsxs(C,{display:"flex",className:"dashboard-body",children:[o.jsx(Be,{mdDown:!0,children:!!(a!=null&&a.length)&&y&&o.jsx(C,{className:"dashboard-sidebar",children:w?o.jsx(Z,{links:a,dense:w}):o.jsx(C,{className:"dashboard-sidebar-container",children:o.jsx(Z,{links:a,dense:w})})})}),o.jsxs(C,{className:"dashboard-main",children:[x&&o.jsx(C,{sx:{position:"absolute",top:4,right:4,display:"flex",justifyContent:"center",alignItems:"center",width:24,height:24,color:"#fff",bgcolor:"rgba(158,158,158, 0.6);",borderRadius:1,cursor:"pointer"},onClick:z,children:u?o.jsx(We,{style:{fontSize:18}}):o.jsx(Fe,{style:{fontSize:18}})}),o.jsx(S,{className:"dashboard-content",...s&&{maxWidth:!1},children:e}),j&&o.jsx(H,{...d})]})]})]})}X.propTypes={children:n.any.isRequired,title:n.string,links:n.array.isRequired,headerProps:n.object,fullWidth:n.bool,sidebarWidth:n.number,dense:n.oneOf([!0,!1,"auto"])};X.defaultProps={title:"Home",headerProps:{},fullWidth:!1,sidebarWidth:120,dense:"auto"};const ar=v("div",{shouldForwardProp:e=>e!=="sidebarWidth"})`
659
659
  &.dashboard {
660
660
  display: flex;
661
661
  flex-direction: column;
@@ -700,8 +700,6 @@ import{aC as Pe,aB as ze,aD as ee,af as Ne,aE as W,aG as P,r as l,aK as Ce,aF as
700
700
  .header-logo {
701
701
  display: flex;
702
702
  justify-content: center;
703
- /* logo 与 sidebar 中的 icon 垂直对齐, sidebarWidth - 24 * 2 */
704
- min-width: ${e=>e.sidebarWidth-24*2}px;
705
703
  }
706
704
  &.dashboard-dense {
707
705
  .header-logo {
@@ -714,4 +712,4 @@ import{aC as Pe,aB as ze,aD as ee,af as Ne,aE as W,aG as P,r as l,aK as Ce,aF as
714
712
  .header-container {
715
713
  max-width: 100%;
716
714
  }
717
- `;function Je({legacy:e,...r}){return e?o.jsx(fe,{...r}):o.jsx(_e,{children:o.jsx(K,{...r})})}Je.propTypes={...K.propTypes,legacy:n.bool,footerProps:n.shape(H.propTypes)};Je.defaultProps={...K.defaultProps,legacy:!0};export{Je as D,G as N,ge as R,Bo as u};
715
+ `;function Ke({legacy:e,...r}){return e?o.jsx(fe,{...r}):o.jsx(_e,{children:o.jsx(X,{...r})})}Ke.propTypes={...X.propTypes,legacy:n.bool,footerProps:n.shape(H.propTypes)};Ke.defaultProps={...X.defaultProps,legacy:!0};export{Ke as D,G as N,ge as R,Bo as u};
@@ -1 +1 @@
1
- import{P as o,r as x,j as e,B as u,bn as K,bF as W,eR as B,a7 as v,az as R,S as M,d0 as $,W as A}from"./index-CbXUSBRE.js";import{d as G}from"./EditIcon-nbG3lw43.js";import{d as H}from"./Done-GZB4BBQK.js";import{C as U}from"./Google-CaRM9q9Z.js";import{T as Y}from"./TextField-DhdT-agz.js";import{R as J,F as Q,L as X}from"./logo-uploader-CXGWSagm.js";const S={description:o.string,editing:o.bool,onChange:o.func,required:o.bool,value:o.any,componentProps:o.object,render:o.func,renderFormItem:o.func};function F({editing:n,value:r,onChange:s}){const[a,l]=x.useState(!1),c=x.useRef(),d=x.useRef(r);x.useEffect(()=>{let p=null;return n&&(p=setTimeout(()=>{l(!0)},50)),()=>{clearTimeout(p)}},[n]);const g=p=>{d.current=p,s(p)},y=()=>{l(!1),s(d.current)},b=e.jsx(u,{className:"form-item-input slot",px:1,children:e.jsxs(u,{display:"flex",alignItems:"center",children:[r,r!=="auto"&&e.jsx("div",{style:{marginLeft:4,backgroundColor:r,width:"1em",height:"1em",borderRadius:"0.2em"}})]})}),i=e.jsxs(u,{display:"flex",flexGrow:1,alignItems:"center",height:"40px",onKeyDown:y,children:[e.jsx(u,{display:"flex",alignItems:"center",onClick:()=>l(!0),children:e.jsx("div",{ref:c,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"}})}),e.jsx(K,{open:a,anchorEl:c.current,onClose:()=>l(!1),anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:e.jsx(U,{color:r,onChange:p=>g(p.hex)})})]});return n?i:b}F.propTypes=S;function V({editing:n,description:r,value:s,onChange:a,componentProps:l,...c}){const{placeholder:d}=l,g=x.useRef(s),y=i=>{i.key==="Enter"&&a(g.current,"confirm")},b=i=>{g.current=i,a(i)};return n?e.jsx(Y,{style:{flex:1},fullWidth:!0,value:s,onChange:i=>{i.persist(),b(i.target.value)},autoFocus:!0,size:"small",variant:"outlined",placeholder:r||d,onKeyDown:y,...c}):e.jsx(u,{px:1,className:"form-item-input slot",children:s})}V.propTypes=S;V.defaultProps={componentProps:{}};function _({editing:n,value:r,onChange:s,componentProps:a,...l}){const{blocklet:c}=a,d=r==="auto"?W.getPassportColorFromDid(c.appDid):r;return e.jsxs(u,{display:"flex",alignItems:"center",children:[e.jsx("div",{style:{width:96,marginRight:12},dangerouslySetInnerHTML:{__html:B({title:"Owner",issuer:v(c),issuerDid:c.appDid,ownerName:"Your Name",ownerDid:c.appDid,preferredColor:r||"auto"})}}),e.jsx(F,{...l,editing:n,value:n?d:r,onChange:s,componentProps:a})]})}_.propTypes={...S,componentProps:o.shape({blocklet:o.object.isRequired}).isRequired};_.defaultProps={};const Z={input:V,color:F,passport:_,uploader:n=>e.jsx(X,{...n.componentProps})};function ee(n,{editing:r=!1}){const{componentType:s="input",render:a,renderFormItem:l}=n;return r&&l?l:!r&&a?a:Z[s==null?void 0:s.toLowerCase()]}function D({schema:n,loading:r,value:s,defaultValue:a,onChange:l,style:c,disabled:d}){const g=Object.prototype.toString.call(s)==="[object Object]",[y,b]=x.useState(null),[i,p]=x.useState(g?s:a),P=x.useRef();function I(t,m,h){const{key:f,secure:C}=t,k=i[f]!==m,j={...i,[f]:m};k&&p(j),l({[f]:m},{allValues:j,action:h,currentItem:t}),h==="confirm"&&C&&p({...i,[f]:"__encrypted__"}),["confirm","cancel"].includes(h)?N(null):N(t)}function N(t){if(t){P.current=i[t.key],b(t);return}P.current=null,b(null)}function E(t,{editing:m=!1}){const{key:h}=t,f=g?s[h]:i[h];return f==="__encrypted__"?m?"":"******":f}return e.jsx(re,{className:"form",style:c,children:n==null?void 0:n.map(t=>{const{key:m,description:h,required:f,solo:C=!1,hidden:T=!1,componentProps:k={}}=t;if(T)return null;const j=!!(y&&m===y.key),w=E(t,{editing:j}),z=ee(t,{editing:j}),q={inputProps:{"data-cy":"schema-form-item-component"},key:m,description:h,editing:j,value:w,onChange:(L,O="change")=>I(t,L,O),componentProps:k};return e.jsxs(u,{className:"form-item",children:[!C&&e.jsxs(u,{className:"form-item-label",style:{color:f&&!w?"#ff0000":"#333"},children:[h,f&&e.jsx(J,{})]}),e.jsxs(u,{className:"form-item-body",children:[e.jsx(u,{className:"form-item-input",sx:{textAlign:C?"center":"left"},children:e.jsx(z,{...q})}),!C&&e.jsx(u,{className:"form-item-action",children:j?e.jsxs(e.Fragment,{children:[e.jsx(R,{"data-cy":"schema-form-item-confirm",onClick:()=>{I(t,w,"confirm")},disabled:d||r,size:"large",children:r?e.jsx(M,{size:24}):e.jsx(H,{})}),e.jsx(R,{"data-cy":"schema-form-item-cancel",onClick:()=>{I(t,P.current,"cancel")},disabled:d||r,size:"large",children:e.jsx($,{})})]}):e.jsx(R,{"data-cy":"schema-form-item-edit",onClick:()=>{I(t,i[m],"edit")},disabled:d||y,size:"large",children:e.jsx(G,{})})})]})]},m)})})}D.propTypes={schema:o.array.isRequired,loading:o.bool,onChange:o.func.isRequired,value:o.object,defaultValue:o.object,style:o.object,disabled:o.bool};D.defaultProps={loading:!1,value:void 0,defaultValue:{},style:{},disabled:!1};const re=A(Q)``;export{D as S};
1
+ import{P as o,r as x,j as e,B as u,bo as K,bH as B,e_ as W,a8 as v,aA as R,S as A,da as H,Y as M}from"./index-MHeXbht_.js";import{d as Y}from"./EditIcon-DR2M6B2a.js";import{d as $}from"./Done-DIK-gyz7.js";import{C as G}from"./Google-Dqg-7vso.js";import{T as U}from"./TextField-DvirKXAG.js";import{R as J,F as Q,L as X}from"./logo-uploader-j0OGjkoc.js";const S={description:o.string,editing:o.bool,onChange:o.func,required:o.bool,value:o.any,componentProps:o.object,render:o.func,renderFormItem:o.func};function _({editing:n,value:r,onChange:s}){const[a,l]=x.useState(!1),c=x.useRef(),d=x.useRef(r);x.useEffect(()=>{let p=null;return n&&(p=setTimeout(()=>{l(!0)},50)),()=>{clearTimeout(p)}},[n]);const g=p=>{d.current=p,s(p)},y=()=>{l(!1),s(d.current)},b=e.jsx(u,{className:"form-item-input slot",px:1,children:e.jsxs(u,{display:"flex",alignItems:"center",children:[r,r!=="auto"&&e.jsx("div",{style:{marginLeft:4,backgroundColor:r,width:"1em",height:"1em",borderRadius:"0.2em"}})]})}),i=e.jsxs(u,{display:"flex",flexGrow:1,alignItems:"center",height:"40px",onKeyDown:y,children:[e.jsx(u,{display:"flex",alignItems:"center",onClick:()=>l(!0),children:e.jsx("div",{ref:c,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"}})}),e.jsx(K,{open:a,anchorEl:c.current,onClose:()=>l(!1),anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:e.jsx(G,{color:r,onChange:p=>g(p.hex)})})]});return n?i:b}_.propTypes=S;function V({editing:n,description:r,value:s,onChange:a,componentProps:l,...c}){const{placeholder:d}=l,g=x.useRef(s),y=i=>{i.key==="Enter"&&a(g.current,"confirm")},b=i=>{g.current=i,a(i)};return n?e.jsx(U,{style:{flex:1},fullWidth:!0,value:s,onChange:i=>{i.persist(),b(i.target.value)},autoFocus:!0,size:"small",variant:"outlined",placeholder:r||d,onKeyDown:y,...c}):e.jsx(u,{px:1,className:"form-item-input slot",children:s})}V.propTypes=S;V.defaultProps={componentProps:{}};function F({editing:n,value:r,onChange:s,componentProps:a,...l}){const{blocklet:c}=a,d=r==="auto"?B.getPassportColorFromDid(c.appDid):r;return e.jsxs(u,{display:"flex",alignItems:"center",children:[e.jsx("div",{style:{width:96,marginRight:12},dangerouslySetInnerHTML:{__html:W({title:"Owner",issuer:v(c),issuerDid:c.appDid,ownerName:"Your Name",ownerDid:c.appDid,preferredColor:r||"auto"})}}),e.jsx(_,{...l,editing:n,value:n?d:r,onChange:s,componentProps:a})]})}F.propTypes={...S,componentProps:o.shape({blocklet:o.object.isRequired}).isRequired};F.defaultProps={};const Z={input:V,color:_,passport:F,uploader:n=>e.jsx(X,{...n.componentProps})};function ee(n,{editing:r=!1}){const{componentType:s="input",render:a,renderFormItem:l}=n;return r&&l?l:!r&&a?a:Z[s==null?void 0:s.toLowerCase()]}function D({schema:n,loading:r,value:s,defaultValue:a,onChange:l,style:c,disabled:d}){const g=Object.prototype.toString.call(s)==="[object Object]",[y,b]=x.useState(null),[i,p]=x.useState(g?s:a),P=x.useRef();function I(t,m,h){const{key:f,secure:C}=t,k=i[f]!==m,j={...i,[f]:m};k&&p(j),l({[f]:m},{allValues:j,action:h,currentItem:t}),h==="confirm"&&C&&p({...i,[f]:"__encrypted__"}),["confirm","cancel"].includes(h)?N(null):N(t)}function N(t){if(t){P.current=i[t.key],b(t);return}P.current=null,b(null)}function E(t,{editing:m=!1}){const{key:h}=t,f=g?s[h]:i[h];return f==="__encrypted__"?m?"":"******":f}return e.jsx(re,{className:"form",style:c,children:n==null?void 0:n.map(t=>{const{key:m,description:h,required:f,solo:C=!1,hidden:T=!1,componentProps:k={}}=t;if(T)return null;const j=!!(y&&m===y.key),w=E(t,{editing:j}),z=ee(t,{editing:j}),q={inputProps:{"data-cy":"schema-form-item-component"},key:m,description:h,editing:j,value:w,onChange:(L,O="change")=>I(t,L,O),componentProps:k};return e.jsxs(u,{className:"form-item",children:[!C&&e.jsxs(u,{className:"form-item-label",style:{color:f&&!w?"#ff0000":"#333"},children:[h,f&&e.jsx(J,{})]}),e.jsxs(u,{className:"form-item-body",children:[e.jsx(u,{className:"form-item-input",sx:{textAlign:C?"center":"left"},children:e.jsx(z,{...q})}),!C&&e.jsx(u,{className:"form-item-action",children:j?e.jsxs(e.Fragment,{children:[e.jsx(R,{"data-cy":"schema-form-item-confirm",onClick:()=>{I(t,w,"confirm")},disabled:d||r,size:"large",children:r?e.jsx(A,{size:24}):e.jsx($,{})}),e.jsx(R,{"data-cy":"schema-form-item-cancel",onClick:()=>{I(t,P.current,"cancel")},disabled:d||r,size:"large",children:e.jsx(H,{})})]}):e.jsx(R,{"data-cy":"schema-form-item-edit",onClick:()=>{I(t,i[m],"edit")},disabled:d||y,size:"large",children:e.jsx(Y,{})})})]})]},m)})})}D.propTypes={schema:o.array.isRequired,loading:o.bool,onChange:o.func.isRequired,value:o.object,defaultValue:o.object,style:o.object,disabled:o.bool};D.defaultProps={loading:!1,value:void 0,defaultValue:{},style:{},disabled:!1};const re=M(Q)``;export{D as S};
@@ -0,0 +1,11 @@
1
+ var bt=Object.defineProperty;var yt=(e,t,n)=>t in e?bt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var D=(e,t,n)=>(yt(e,typeof t!="symbol"?t+"":t,n),n);import{aE as xt,cD as wt,cV as vt,aH as W,cg as V,r as A,aL as It,aG as Ct,aM as ve,cy as St,cd as Tt,j as m,aJ as Ie,aK as At,P as f,M as jt,h as Pt,aA as kt,bB as Ce,bs as Lt,bt as Mt,dd as Ot,ag as Rt,K as j,bq as Et,B as _t,bI as Nt,T as qt,de as Ft,df as $t,$ as Bt,dg as zt,bO as De,u as Ve,aB as Ht,_ as Dt,v as Vt}from"./index-MHeXbht_.js";import{D as Ut}from"./index-BlQH_bza.js";import{l as R,g as Qt,L as Gt}from"./MoreVert-K_1niM7c.js";import{L as Wt}from"./selector-haOpsVEc.js";const Zt=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Jt=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Xt=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:s,divider:i,selected:a}=e,l=At({root:["root",r&&"dense",!s&&"gutters",i&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},Qt,n);return W({},n,l)},Yt=xt(wt,{shouldForwardProp:e=>vt(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:Jt})(({theme:e,ownerState:t})=>W({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${R.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:V(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${R.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:V(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${R.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:V(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:V(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${R.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${R.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),Kt=A.forwardRef(function(t,n){const r=It({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:s=!1,component:i="div",children:a,dense:c=!1,disableGutters:l=!1,divider:u=!1,focusVisibleClassName:d,selected:p=!1,className:g}=r,b=Ct(r,Zt),x=A.useContext(ve),I=A.useMemo(()=>({dense:c||x.dense||!1,alignItems:o,disableGutters:l}),[o,x.dense,c,l]),T=A.useRef(null);St(()=>{s&&T.current&&T.current.focus()},[s]);const w=W({},r,{alignItems:o,dense:I.dense,disableGutters:l,divider:u,selected:p}),y=Xt(w),O=Tt(T,n);return m.jsx(ve.Provider,{value:I,children:m.jsx(Yt,W({ref:O,href:b.href||b.to,component:(b.href||b.to)&&i==="div"?"button":i,focusVisibleClassName:Ie(y.focusVisible,d),ownerState:w,className:Ie(y.root,g)},b,{classes:y,children:a}))})}),en=Kt;/**
2
+ * (c) Iconify
3
+ *
4
+ * For the full copyright and license information, please view the license.txt
5
+ * files at https://github.com/iconify/iconify
6
+ *
7
+ * Licensed under MIT.
8
+ *
9
+ * @license MIT
10
+ * @version 1.0.8
11
+ */const Ue=Object.freeze({left:0,top:0,width:16,height:16}),Z=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),B=Object.freeze({...Ue,...Z}),re=Object.freeze({...B,body:"",hidden:!1}),tn=Object.freeze({width:null,height:null}),Qe=Object.freeze({...tn,...Z});function nn(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const on=/[\s,]+/;function rn(e,t){t.split(on).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const Ge={...Qe,preserveAspectRatio:""};function Se(e){const t={...Ge},n=(r,o)=>e.getAttribute(r)||o;return t.width=n("width",null),t.height=n("height",null),t.rotate=nn(n("rotate","")),rn(t,n("flip","")),t.preserveAspectRatio=n("preserveAspectRatio",n("preserveaspectratio","")),t}function sn(e,t){for(const n in Ge)if(e[n]!==t[n])return!0;return!1}const _=/^[a-z0-9]+(-[a-z0-9]+)*$/,z=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),c=o.pop(),l={provider:o.length>0?o[0]:r,prefix:c,name:a};return t&&!Q(l)?null:l}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!Q(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:s};return t&&!Q(a,n)?null:a}return null},Q=(e,t)=>e?!!((e.provider===""||e.provider.match(_))&&(t&&e.prefix===""||e.prefix.match(_))&&e.name.match(_)):!1;function cn(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Te(e,t){const n=cn(e,t);for(const r in re)r in Z?r in e&&!(r in n)&&(n[r]=Z[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function an(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=r[i]&&r[i].parent,c=a&&s(a);c&&(o[i]=[a].concat(c))}return o[i]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(s),o}function ln(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=Te(r[a]||o[a],s)}return i(t),n.forEach(i),Te(e,s)}function We(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=an(e);for(const o in r){const s=r[o];s&&(t(o,ln(e,o,s)),n.push(o))}return n}const un={provider:"",aliases:{},not_found:{},...Ue};function ee(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Ze(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!ee(e,un))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(_)||typeof s.body!="string"||!ee(s,re))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(_)||typeof i!="string"||!n[i]&&!r[i]||!ee(s,re))return null}return t}const J=Object.create(null);function fn(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function k(e,t){const n=J[e]||(J[e]=Object.create(null));return n[t]||(n[t]=fn(e,t))}function pe(e,t){return Ze(t)?We(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function dn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function pn(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(J)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(J[o]||{})).forEach(i=>{const a=k(o,i);n=n.concat(Object.keys(a.icons).map(c=>(o!==""?"@"+o+":":"")+i+":"+c))})}),n}let q=!1;function Je(e){return typeof e=="boolean"&&(q=e),q}function F(e){const t=typeof e=="string"?z(e,!0,q):e;if(t){const n=k(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Xe(e,t){const n=z(e,!0,q);if(!n)return!1;const r=k(n.provider,n.prefix);return dn(r,n.name,t)}function Ae(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),q&&!t&&!e.prefix){let o=!1;return Ze(e)&&(e.prefix="",We(e,(s,i)=>{i&&Xe(s,i)&&(o=!0)})),o}const n=e.prefix;if(!Q({provider:t,prefix:n,name:"a"}))return!1;const r=k(t,n);return!!pe(r,e)}function hn(e){return!!F(e)}function gn(e){const t=F(e);return t?{...B,...t}:null}function mn(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,a=o.name,c=n[s]||(n[s]=Object.create(null)),l=c[i]||(c[i]=k(s,i));let u;a in l.icons?u=t.loaded:i===""||l.missing.has(a)?u=t.missing:u=t.pending;const d={provider:s,prefix:i,name:a};u.push(d)}),t}function Ye(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function bn(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,a=i.pending.length;i.pending=i.pending.filter(c=>{if(c.prefix!==o)return!0;const l=c.name;if(e.icons[l])i.loaded.push({provider:r,prefix:o,name:l});else if(e.missing.has(l))i.missing.push({provider:r,prefix:o,name:l});else return n=!0,!0;return!1}),i.pending.length!==a&&(n||Ye([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let yn=0;function xn(e,t,n){const r=yn++,o=Ye.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}const se=Object.create(null);function je(e,t){se[e]=t}function ie(e){return se[e]||se[""]}function wn(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?z(o,t,n):o;s&&r.push(s)}),r}var vn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function In(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let h=e.resources.slice(0);for(i=[];h.length>1;){const v=Math.floor(Math.random()*h.length);i.push(h[v]),h=h.slice(0,v).concat(h.slice(v+1))}i=i.concat(h)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const a=Date.now();let c="pending",l=0,u,d=null,p=[],g=[];typeof r=="function"&&g.push(r);function b(){d&&(clearTimeout(d),d=null)}function x(){c==="pending"&&(c="aborted"),b(),p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function I(h,v){v&&(g=[]),typeof h=="function"&&g.push(h)}function T(){return{startTime:a,payload:t,status:c,queriesSent:l,queriesPending:p.length,subscribe:I,abort:x}}function w(){c="failed",g.forEach(h=>{h(void 0,u)})}function y(){p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function O(h,v,P){const S=v!=="success";switch(p=p.filter(L=>L!==h),c){case"pending":break;case"failed":if(S||!e.dataAfterTimeout)return;break;default:return}if(v==="abort"){u=P,w();return}if(S){u=P,p.length||(i.length?C():w());return}if(b(),y(),!e.random){const L=e.resources.indexOf(h.resource);L!==-1&&L!==e.index&&(e.index=L)}c="completed",g.forEach(L=>{L(P)})}function C(){if(c!=="pending")return;b();const h=i.shift();if(h===void 0){if(p.length){d=setTimeout(()=>{b(),c==="pending"&&(y(),w())},e.timeout);return}w();return}const v={status:"pending",resource:h,callback:(P,S)=>{O(v,P,S)}};p.push(v),l++,d=setTimeout(C,e.rotate),n(h,t,v.callback)}return setTimeout(C),T}function Ke(e){const t={...vn,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,c,l){const u=In(t,a,c,(d,p)=>{r(),l&&l(d,p)});return n.push(u),u}function s(a){return n.find(c=>a(c))||null}return{query:o,find:s,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function he(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Y=Object.create(null),E=["https://api.simplesvg.com","https://api.unisvg.com"],G=[];for(;E.length>0;)E.length===1||Math.random()>.5?G.push(E.shift()):G.push(E.pop());Y[""]=he({resources:["https://api.iconify.design"].concat(G)});function Pe(e,t){const n=he(t);return n===null?!1:(Y[e]=n,!0)}function K(e){return Y[e]}function Cn(){return Object.keys(Y)}function ke(){}const te=Object.create(null);function Sn(e){if(!te[e]){const t=K(e);if(!t)return;const n=Ke(t),r={config:t,redundancy:n};te[e]=r}return te[e]}function et(e,t,n){let r,o;if(typeof e=="string"){const s=ie(e);if(!s)return n(void 0,424),ke;o=s.send;const i=Sn(e);i&&(r=i.redundancy)}else{const s=he(e);if(s){r=Ke(s);const i=e.resources?e.resources[0]:"",a=ie(i);a&&(o=a.send)}}return!r||!o?(n(void 0,424),ke):r.query(t,o,n)().abort}const Le="iconify2",$="iconify",tt=$+"-count",Me=$+"-version",nt=36e5,Tn=168;function ce(e,t){try{return e.getItem(t)}catch{}}function ge(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Oe(e,t){try{e.removeItem(t)}catch{}}function ae(e,t){return ge(e,tt,t.toString())}function le(e){return parseInt(ce(e,tt))||0}const M={local:!0,session:!0},ot={local:new Set,session:new Set};let me=!1;function An(e){me=e}let U=typeof window>"u"?{}:window;function rt(e){const t=e+"Storage";try{if(U&&U[t]&&typeof U[t].length=="number")return U[t]}catch{}M[e]=!1}function st(e,t){const n=rt(e);if(!n)return;const r=ce(n,Me);if(r!==Le){if(r){const a=le(n);for(let c=0;c<a;c++)Oe(n,$+c.toString())}ge(n,Me,Le),ae(n,0);return}const o=Math.floor(Date.now()/nt)-Tn,s=a=>{const c=$+a.toString(),l=ce(n,c);if(typeof l=="string"){try{const u=JSON.parse(l);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,a))return!0}catch{}Oe(n,c)}};let i=le(n);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,ae(n,i)):ot[e].add(a))}function it(){if(!me){An(!0);for(const e in M)st(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=k(r,o);if(!pe(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function jn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in M)st(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Pn(e,t){me||it();function n(r){let o;if(!M[r]||!(o=rt(r)))return;const s=ot[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=le(o),!ae(o,i+1))return;const a={cached:Math.floor(Date.now()/nt),provider:e.provider,data:t};return ge(o,$+i.toString(),JSON.stringify(a))}t.lastModified&&!jn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Re(){}function kn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,bn(e)}))}function Ln(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=ie(n)))return;s.prepare(n,r,o).forEach(a=>{et(n,a,c=>{if(typeof c!="object")a.icons.forEach(l=>{e.missing.add(l)});else try{const l=pe(e,c);if(!l.length)return;const u=e.pendingIcons;u&&l.forEach(d=>{u.delete(d)}),Pn(e,c)}catch(l){console.error(l)}kn(e)})})}))}const be=(e,t)=>{const n=wn(e,!0,Je()),r=mn(n);if(!r.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(r.loaded,r.missing,r.pending,Re)}),()=>{c=!1}}const o=Object.create(null),s=[];let i,a;return r.pending.forEach(c=>{const{provider:l,prefix:u}=c;if(u===a&&l===i)return;i=l,a=u,s.push(k(l,u));const d=o[l]||(o[l]=Object.create(null));d[u]||(d[u]=[])}),r.pending.forEach(c=>{const{provider:l,prefix:u,name:d}=c,p=k(l,u),g=p.pendingIcons||(p.pendingIcons=new Set);g.has(d)||(g.add(d),o[l][u].push(d))}),s.forEach(c=>{const{provider:l,prefix:u}=c;o[l][u].length&&Ln(c,o[l][u])}),t?xn(t,r,s):Re},Mn=e=>new Promise((t,n)=>{const r=typeof e=="string"?z(e,!0):e;if(!r){n(e);return}be([r||e],o=>{if(o.length&&r){const s=F(r);if(s){t({...B,...s});return}}n(e)})});function On(e){try{const t=typeof e=="string"?JSON.parse(e):e;if(typeof t.body=="string")return{...t}}catch{}}function Rn(e,t){const n=typeof e=="string"?z(e,!0,!0):null;if(!n){const s=On(e);return{value:e,data:s}}const r=F(n);if(r!==void 0||!n.prefix)return{value:e,name:n,data:r};const o=be([n],()=>t(e,n,F(n)));return{value:e,name:n,loading:o}}function ne(e){return e.hasAttribute("inline")}let ct=!1;try{ct=navigator.vendor.indexOf("Apple")===0}catch{}function En(e,t){switch(t){case"svg":case"bg":case"mask":return t}return t!=="style"&&(ct||e.indexOf("<a")===-1)?"svg":e.indexOf("currentColor")===-1?"bg":"mask"}const _n=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Nn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ue(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(_n);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=Nn.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const qn=e=>e==="unset"||e==="undefined"||e==="none";function at(e,t){const n={...B,...e},r={...Qe,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(b=>{const x=[],I=b.hFlip,T=b.vFlip;let w=b.rotate;I?T?w+=2:(x.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),x.push("scale(-1 1)"),o.top=o.left=0):T&&(x.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),x.push("scale(1 -1)"),o.top=o.left=0);let y;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:y=o.height/2+o.top,x.unshift("rotate(90 "+y.toString()+" "+y.toString()+")");break;case 2:x.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:y=o.width/2+o.left,x.unshift("rotate(-90 "+y.toString()+" "+y.toString()+")");break}w%2===1&&(o.left!==o.top&&(y=o.left,o.left=o.top,o.top=y),o.width!==o.height&&(y=o.width,o.width=o.height,o.height=y)),x.length&&(s='<g transform="'+x.join(" ")+'">'+s+"</g>")});const i=r.width,a=r.height,c=o.width,l=o.height;let u,d;i===null?(d=a===null?"1em":a==="auto"?l:a,u=ue(d,c/l)):(u=i==="auto"?c:i,d=a===null?ue(u,l/c):a==="auto"?l:a);const p={},g=(b,x)=>{qn(x)||(p[b]=x.toString())};return g("width",u),g("height",d),p.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+l.toString(),{attributes:p,body:s}}const Fn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let X=Fn();function $n(e){X=e}function Bn(){return X}function zn(e,t){const n=K(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function Hn(e){return e===404}const Dn=(e,t,n)=>{const r=[],o=zn(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},a=0;return n.forEach((c,l)=>{a+=c.length+1,a>=o&&l>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},a=c.length),i.icons.push(c)}),r.push(i),r};function Vn(e){if(typeof e=="string"){const t=K(e);if(t)return t.path}return"/"}const Un=(e,t,n)=>{if(!X){n("abort",424);return}let r=Vn(t.provider);switch(t.type){case"icons":{const s=t.prefix,a=t.icons.join(","),c=new URLSearchParams({icons:a});r+=s+".json?"+c.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;X(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(Hn(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},Qn={prepare:Dn,send:Un};function Ee(e,t){switch(e){case"local":case"session":M[e]=t;break;case"all":for(const n in M)M[n]=t;break}}const oe="data-style";let lt="";function Gn(e){lt=e}function _e(e,t){let n=Array.from(e.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(oe));n||(n=document.createElement("style"),n.setAttribute(oe,oe),e.appendChild(n)),n.textContent=":host{display:inline-block;vertical-align:"+(t?"-0.125em":"0")+"}span,svg{display:block}"+lt}function ut(){je("",Qn),Je(!0);let e;try{e=window}catch{}if(e){if(it(),e.IconifyPreload!==void 0){const n=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof n=="object"&&n!==null&&(n instanceof Array?n:[n]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!Ae(o))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const n=e.IconifyProviders;if(typeof n=="object"&&n!==null)for(const r in n){const o="IconifyProviders["+r+"] is invalid.";try{const s=n[r];if(typeof s!="object"||!s||s.resources===void 0)continue;Pe(r,s)||console.error(o)}catch{console.error(o)}}}}return{enableCache:n=>Ee(n,!0),disableCache:n=>Ee(n,!1),iconExists:hn,getIcon:gn,listIcons:pn,addIcon:Xe,addCollection:Ae,calculateSize:ue,buildIcon:at,loadIcons:be,loadIcon:Mn,addAPIProvider:Pe,appendCustomStyle:Gn,_api:{getAPIConfig:K,setAPIModule:je,sendAPIQuery:et,setFetch:$n,getFetch:Bn,listAPIProviders:Cn}}}function ft(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function Wn(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Zn(e){return"data:image/svg+xml,"+Wn(e)}function Jn(e){return'url("'+Zn(e)+'")'}const fe={"background-color":"currentColor"},dt={"background-color":"transparent"},Ne={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},qe={"-webkit-mask":fe,mask:fe,background:dt};for(const e in qe){const t=qe[e];for(const n in Ne)t[e+"-"+n]=Ne[n]}function Fe(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}function Xn(e,t,n){const r=document.createElement("span");let o=e.body;o.indexOf("<a")!==-1&&(o+="<!-- "+Date.now()+" -->");const s=e.attributes,i=ft(o,{...s,width:t.width+"",height:t.height+""}),a=Jn(i),c=r.style,l={"--svg":a,width:Fe(s.width),height:Fe(s.height),...n?fe:dt};for(const u in l)c.setProperty(u,l[u]);return r}let N;function Yn(){try{N=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{N=null}}function Kn(e){return N===void 0&&Yn(),N?N.createHTML(e):e}function eo(e){const t=document.createElement("span"),n=e.attributes;let r="";n.width||(r="width: inherit;"),n.height||(r+="height: inherit;"),r&&(n.style=r);const o=ft(e.body,n);return t.innerHTML=Kn(o),t.firstChild}function $e(e,t){const n=t.icon.data,r=t.customisations,o=at(n,r);r.preserveAspectRatio&&(o.attributes.preserveAspectRatio=r.preserveAspectRatio);const s=t.renderedMode;let i;switch(s){case"svg":i=eo(o);break;default:i=Xn(o,{...B,...n},s==="mask")}const a=Array.from(e.childNodes).find(c=>{const l=c.tagName&&c.tagName.toUpperCase();return l==="SPAN"||l==="SVG"});a?i.tagName==="SPAN"&&a.tagName===i.tagName?a.setAttribute("style",i.getAttribute("style")):e.replaceChild(i,a):e.appendChild(i)}function Be(e,t,n){const r=n&&(n.rendered?n:n.lastRender);return{rendered:!1,inline:t,icon:e,lastRender:r}}function to(e="iconify-icon"){let t,n;try{t=window.customElements,n=window.HTMLElement}catch{return}if(!t||!n)return;const r=t.get(e);if(r)return r;const o=["icon","mode","inline","width","height","rotate","flip"],s=class extends n{constructor(){super();D(this,"_shadowRoot");D(this,"_state");D(this,"_checkQueued",!1);const c=this._shadowRoot=this.attachShadow({mode:"open"}),l=ne(this);_e(c,l),this._state=Be({value:""},l),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(c){if(c==="inline"){const l=ne(this),u=this._state;l!==u.inline&&(u.inline=l,_e(this._shadowRoot,l))}else this._queueCheck()}get icon(){const c=this.getAttribute("icon");if(c&&c.slice(0,1)==="{")try{return JSON.parse(c)}catch{}return c}set icon(c){typeof c=="object"&&(c=JSON.stringify(c)),this.setAttribute("icon",c)}get inline(){return ne(this)}set inline(c){c?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const c=this._state;if(c.rendered){const l=this._shadowRoot;if(c.renderedMode==="svg")try{l.lastChild.setCurrentTime(0);return}catch{}$e(l,c)}}get status(){const c=this._state;return c.rendered?"rendered":c.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const c=this._state,l=this.getAttribute("icon");if(l!==c.icon.value){this._iconChanged(l);return}if(!c.rendered)return;const u=this.getAttribute("mode"),d=Se(this);(c.attrMode!==u||sn(c.customisations,d))&&this._renderIcon(c.icon,d,u)}_iconChanged(c){const l=Rn(c,(u,d,p)=>{const g=this._state;if(g.rendered||this.getAttribute("icon")!==u)return;const b={value:u,name:d,data:p};b.data?this._gotIconData(b):g.icon=b});l.data?this._gotIconData(l):this._state=Be(l,this._state.inline,this._state)}_gotIconData(c){this._checkQueued=!1,this._renderIcon(c,Se(this),this.getAttribute("mode"))}_renderIcon(c,l,u){const d=En(c.data.body,u),p=this._state.inline;$e(this._shadowRoot,this._state={rendered:!0,icon:c,inline:p,customisations:l,attrMode:u,renderedMode:d})}};o.forEach(a=>{a in s.prototype||Object.defineProperty(s.prototype,a,{get:function(){return this.getAttribute(a)},set:function(c){c!==null?this.setAttribute(a,c):this.removeAttribute(a)}})});const i=ut();for(const a in i)s[a]=s.prototype[a]=i[a];return t.define(e,s),s}to()||ut();const no=f.shape({appLogo:f.node,appName:f.string,theme:f.shape({background:f.string}),enableConnect:f.bool,enableLocale:f.bool,navigation:f.arrayOf(f.shape({title:f.oneOfType([f.string,f.object]),link:f.oneOfType([f.string,f.object]),icon:f.string,items:f.arrayOf(f.shape({title:f.oneOfType([f.string,f.object]),link:f.oneOfType([f.string,f.object])}))}))}),pt=f.shape({showText:f.bool,showRole:f.bool,switchDid:f.bool,switchProfile:f.bool,switchPassport:f.bool,disableLogout:f.bool,onLogin:f.func,onLogout:f.func,onSwitchDid:f.func,onSwitchProfile:f.func,onSwitchPassport:f.func,menu:f.array,menuRender:f.func,dark:f.bool,size:f.number}),H=(e,t,n="children")=>e.map(r=>Array.isArray(r[n])?t({...r,[n]:H(r[n],t,n)}):t(r)),oo=(e,t="children")=>{const n=[];return H(e,r=>n.push(r),t),n},ye=(e,t,n="children")=>e.map(r=>({...r})).filter(r=>{const o=r[n];if(Array.isArray(o)){const i=ye(o,t,n);r[n]=i!=null&&i.length?i:void 0}const s={filteredChildren:r[n],isLeaf:!(o!=null&&o.length)};return t(r,s)}),ro=e=>/^https?:\/\//.test(e),vo=e=>/^[\w-]+:[\w-]+$/.test(e),so=e=>{if(!e||!(e!=null&&e.startsWith("/")))return!1;const t=o=>o.endsWith("/")?o:`${o}/`,n=t(window.location.pathname),r=t(new URL(e,window.location.origin).pathname);return n.startsWith(r)},io=(e=[])=>{const t=e.map((r,o)=>({path:r,index:o})).filter(r=>so(r.path));return t!=null&&t.length?t.slice(1).reduce((r,o)=>r.path.length>=o.path.length?r:o,t[0]).index:-1};var ze,He;const de=((ze=window==null?void 0:window.blocklet)==null?void 0:ze.groupPrefix)||((He=window==null?void 0:window.blocklet)==null?void 0:He.prefix)||"/",co=e=>{const t={...e},n=e==null?void 0:e.background;return typeof n=="string"?t.background={header:n,footer:n,default:n}:n&&typeof n=="object"&&(t.background={header:n.header||n.default,footer:n.footer||n.default,default:n.default}),t},ht=(e,t="en")=>{if(!(e!=null&&e.length))return e;const n=(o,s)=>typeof o=="string"?o:typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o,r=(o,s)=>{if(typeof o=="string"){if(ro(o)){const a=new URL(o);return a.searchParams.set("locale",s),a.href}const i=new URL(o,window.location.origin);return i.searchParams.set("locale",s),i.pathname+i.search}return typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o};return H(e,o=>{var s;return{...o,title:n(o.title,t),link:(s=o.items)!=null&&s.length?o.link:r(o.link,t),_rawLink:o.link}},"items")},ao=e=>H(e,t=>t.role?{...t,role:Array.isArray(t.role)?t.role:[t.role]}:t,"items"),lo=e=>{if(!(e!=null&&e.length))return null;const t=ao(e),n={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return t.forEach(r=>{var o;r.section?Array.isArray(r.section)?r.section.forEach(s=>{var i;(i=n[s])==null||i.push(r)}):typeof r.section=="string"&&((o=n[r.section])==null||o.push(r)):n.header.push(r)}),n},uo=e=>{if(!e)return null;const t={...e};return t.theme=co(t.theme),t.navigation=lo(fo(t.navigation)),t},fo=(e=[])=>ye(e,(t,n)=>{var r;return!!t.link||((r=n.filteredChildren)==null?void 0:r.length)},"items"),gt=(e,t)=>ye(e,(n,r)=>{var s;const o=!n.role||t&&n.role.includes(t);return r.isLeaf?o:o&&((s=r.filteredChildren)==null?void 0:s.length)},"items"),po={top:-960,width:960,height:960,body:'<path fill="currentColor" d="M510-600v-210q0-12.75 8.625-21.375T540-840h270q12.75 0 21.375 8.625T840-810v210q0 12.75-8.625 21.375T810-570H540q-12.75 0-21.375-8.625T510-600M120-480v-330q0-12.75 8.625-21.375T150-840h270q12.75 0 21.375 8.625T450-810v330q0 12.75-8.625 21.375T420-450H150q-12.75 0-21.375-8.625T120-480m390 330v-330q0-12.75 8.625-21.375T540-510h270q12.75 0 21.375 8.625T840-480v330q0 12.75-8.625 21.375T810-120H540q-12.75 0-21.375-8.625T510-150m-390 0v-210q0-12.75 8.625-21.375T150-390h270q12.75 0 21.375 8.625T450-360v210q0 12.75-8.625 21.375T420-120H150q-12.75 0-21.375-8.625T120-150m60-360h210v-270H180zm390 330h210v-270H570zm0-450h210v-150H570zM180-180h210v-150H180zm210-150"/>'},ho={width:24,height:24,body:'<path fill="currentColor" d="M15.95 12.3L11.7 8.05q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375t.212-.325l4.25-4.25q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.25 4.25q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.25 4.25q-.15.15-.325.213t-.375.062q-.2 0-.375-.062t-.325-.213ZM3 10V4q0-.425.288-.713T4 3h6q.425 0 .713.288T11 4v6q0 .425-.288.713T10 11H4q-.425 0-.713-.288T3 10Zm10 10v-6q0-.425.288-.713T14 13h6q.425 0 .713.288T21 14v6q0 .425-.288.713T20 21h-6q-.425 0-.713-.288T13 20ZM3 20v-6q0-.425.288-.713T4 13h6q.425 0 .713.288T11 14v6q0 .425-.288.713T10 21H4q-.425 0-.713-.288T3 20ZM5 9h4V5H5v4Zm11.675 1.2L19.5 7.375L16.675 4.55L13.85 7.375l2.825 2.825ZM15 19h4v-4h-4v4ZM5 19h4v-4H5v4ZM9 9Zm4.85-1.625ZM9 15Zm6 0Z"/>'};function xe({session:e,locale:t,size:n}){const r=(window==null?void 0:window.blocklet)||{},o=(r.navigation||[]).filter(c=>c.section==="sessionManager"&&!["/sessionManager"].includes(c.id)).filter(c=>{var l;return!!((c==null?void 0:c.role)||[]).includes(((l=e==null?void 0:e.user)==null?void 0:l.role)||"guest")}).map(c=>{const l=((r==null?void 0:r.componentMountPoints)||[]).find(u=>c.component===u.name);return{...c,component:l}}),s=A.useRef(null),i=jt({open:!1}),a=Pt((c=!i.open)=>{i.open=c});return o.length===0||!(e!=null&&e.user)?null:m.jsxs(m.Fragment,{children:[m.jsx(kt,{size:"medium",ref:s,onClick:()=>a(),children:m.jsx(Ce,{icon:po,fontSize:n,style:{transform:"scale(1.08)"}})}),m.jsx(Lt,{open:i.open,onClose:()=>a(!1),anchorEl:s.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:c})=>m.jsx(Mt,{onClickAway:l=>{l.preventDefault(),l.stopPropagation(),a(!1)},children:m.jsx(Ot,{...c,timeout:350,children:m.jsxs(Rt,{variant:"outlined",sx:{borderRadius:3,width:350,maxWidth:"90vw",borderColor:j.lineStep,p:2,border:"0 !important",boxShadow:`0px 8px 16px 0px ${j.gray6}, 0px 0px 0px 1px ${j.gray6}`},children:[m.jsx(Et,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 100px)",gridAutoRows:"minmax(100px, max-content)",justifyContent:"space-between",maxHeight:350,overflowY:"auto",p:0},children:o.map(l=>{var u;return m.jsx(Gt,{disablePadding:!0,children:m.jsxs(en,{href:l.link,sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:2,"&:hover":{backgroundColor:j.surfacePrimarySubtitle}},children:[(u=l==null?void 0:l.component)!=null&&u.did?m.jsx(_t,{component:"img",src:`${Nt}/blocklet/logo-bundle/${l.component.did}`,sx:{borderRadius:2,width:50,height:50,objectFit:"contain"}}):m.jsx(Ce,{fontSize:50,icon:l.icon||ho,color:j.textSubtitle}),m.jsx(qt,{sx:{fontSize:"12px",color:j.textBase,textAlign:"center",lineHeight:"normal"},children:Ft(l.title,t)})]})},l.id)})}),m.jsx($t,{session:e,children:m.jsx(Bt,{variant:"outlined",fullWidth:!0,href:zt,sx:{mt:1,borderRadius:2,color:j.textBase,borderColor:j.lineBorderStrong,"&:hover":{color:j.primaryBase,borderColor:j.primaryBase}},children:t==="zh"?"管理":"Manage"})})]})})})})]})}xe.propTypes={session:f.object.isRequired,locale:f.string,size:f.number};xe.defaultProps={locale:"en",size:24};function we({formattedBlocklet:e,addons:t,sessionManagerProps:n}){var p,g,b,x;const r=A.useContext(De),{locale:o}=Ve()||{},{enableConnect:s=!0,enableLocale:i=!0}=e,a=!!((p=r==null?void 0:r.session)!=null&&p.user);let c=ht((g=e==null?void 0:e.navigation)==null?void 0:g.sessionManager,o)||[];c=gt(c,(x=(b=r==null?void 0:r.session)==null?void 0:b.user)==null?void 0:x.role);const u=(()=>{if(t&&typeof t!="function")return Array.isArray(t)?t:[t];let I=[];if(i&&o&&I.push(m.jsx(Wt,{showText:!1},"locale-selector")),s&&r){const T=[];a&&(c?c.slice(0,5):[]).forEach(y=>{T.push({label:y.title,icon:y.icon?m.jsx("iconify-icon",{icon:y.icon,height:24,style:{marginRight:8}}):null,component:"a",href:y.link,key:y.link})}),I.push(m.jsx(xe,{session:r.session,locale:o},"session-blocklet")),I.push(m.jsx(Ht,{session:r.session,locale:o,menu:T,showRole:!0,...n},"session-user"))}return typeof t=="function"&&(I=t(I)||[]),I})();return A.createElement(m.Fragment,null,...Array.isArray(u)?u:[u])}we.propTypes={formattedBlocklet:f.object.isRequired,addons:f.oneOfType([f.func,f.node]),sessionManagerProps:pt};we.defaultProps={addons:null,sessionManagerProps:{showRole:!0}};const go=()=>{const e=Dt();A.useEffect(()=>{e.wallet&&Vt.call("arcHideTopBar","{}")},[e])};function mt({meta:e,fallbackUrl:t,invalidPathFallback:n,headerAddons:r,sessionManagerProps:o,links:s,...i}){var O;go();const a=A.useContext(De),c=(O=a==null?void 0:a.session)==null?void 0:O.user,l=c==null?void 0:c.role,{locale:u}=Ve()||{},d=A.useMemo(()=>{const C=Object.assign({},window.blocklet,e);try{return uo(C)}catch(h){return console.error("Failed to format blocklet info",h,C),C}},[e]),{localizedNav:p,flattened:g,matchedIndex:b}=A.useMemo(()=>{var P;let C=ht((P=d==null?void 0:d.navigation)==null?void 0:P.dashboard,u)||[];C=gt(C,l),C=H(C,S=>({title:S.title,url:S.link,icon:S.icon?m.jsx("iconify-icon",{height:"100%",width:"100%",icon:S.icon}):null,external:!0,children:S.items}),"items");const h=oo(C).filter(S=>!!S.url),v=io(h.map(S=>S.url));return v!==-1&&(h[v].active=!0),{localizedNav:C,flattened:h,matchedIndex:v}},[d,u,l]),x=typeof s=="function"?s(p):[...p,...s];if(A.useLayoutEffect(()=>{c&&!(g!=null&&g.length)&&t&&(window.location.href=t)},[t]),A.useLayoutEffect(()=>{c&&(g!=null&&g.length)&&b===-1&&n&&n()},[n,g,b]),!d.appName)return null;const{appLogo:I,appLogoRect:T,appName:w}=d,y=m.jsx(we,{formattedBlocklet:d,addons:r,sessionManagerProps:o});return m.jsx(Ut,{title:w,fullWidth:!0,sidebarWidth:128,legacy:!1,links:x,...i,headerProps:{homeLink:de,logo:m.jsx("img",{src:T||I,alt:"logo"}),addons:y,...i.headerProps}})}mt.propTypes={meta:no,fallbackUrl:f.string,invalidPathFallback:f.func,headerAddons:f.oneOfType([f.func,f.node]),sessionManagerProps:pt,links:f.oneOfType([f.array,f.func])};mt.defaultProps={meta:{},fallbackUrl:de,invalidPathFallback:null,headerAddons:void 0,sessionManagerProps:{showRole:!0,onLogout:()=>{window.location.href=de}},links:[]};export{no as B,mt as D,we as H,en as L,pt as S,vo as a,oo as b,io as c,uo as f,ht as g,ro as i,H as m,de as p,go as u};
@@ -1,4 +1,4 @@
1
- import{j as r,T as i,P as e,dc as c,eU as f,bT as u}from"./index-CbXUSBRE.js";function l({name:t,nameFormatter:o,layout:a,children:n,valueComponent:s,nameWidth:m,...p}){return r.jsxs(d,{layout:a,width:m,...p,children:[r.jsx(i,{color:"textSecondary",className:"info-row__name",children:o(t)}),n&&r.jsx(i,{color:"textPrimary",component:s,className:"info-row__value",children:n})]})}l.propTypes={name:e.any.isRequired,layout:e.oneOf(["horizontal","vertical"]),children:e.any,nameFormatter:e.func,valueComponent:e.string,nameWidth:e.number};l.defaultProps={children:null,nameWidth:90,nameFormatter:t=>{const o=t.split(" ").map(a=>c(f(a))).join(" ");return typeof t=="string"?o:t},valueComponent:"div",layout:"horizontal"};const d=u("div")`
1
+ import{j as r,T as i,P as e,dm as c,f1 as f,c1 as u}from"./index-MHeXbht_.js";function l({name:t,nameFormatter:o,layout:a,children:n,valueComponent:s,nameWidth:m,...p}){return r.jsxs(d,{layout:a,width:m,...p,children:[r.jsx(i,{color:"textSecondary",className:"info-row__name",children:o(t)}),n&&r.jsx(i,{color:"textPrimary",component:s,className:"info-row__value",children:n})]})}l.propTypes={name:e.any.isRequired,layout:e.oneOf(["horizontal","vertical"]),children:e.any,nameFormatter:e.func,valueComponent:e.string,nameWidth:e.number};l.defaultProps={children:null,nameWidth:90,nameFormatter:t=>{const o=t.split(" ").map(a=>c(f(a))).join(" ");return typeof t=="string"?o:t},valueComponent:"div",layout:"horizontal"};const d=u("div")`
2
2
  display: flex;
3
3
  flex-direction: ${t=>t.layout==="vertical"?"column":"row"};
4
4
  justify-content: flex-start;