@abtnode/blocklet-services 1.16.33-beta-20241024-064549-2c1ad302 → 1.16.33-beta-20241028-005826-60afb7c4

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/cache.js +39 -0
  2. package/api/index.js +121 -2
  3. package/api/libs/api.js +3 -3
  4. package/api/libs/connect/session.js +44 -53
  5. package/api/libs/push-kit/index.js +17 -2
  6. package/api/middlewares/verify-sig.js +35 -3
  7. package/api/routes/blocklet.js +0 -13
  8. package/api/routes/env.js +2 -2
  9. package/api/routes/oauth.js +11 -7
  10. package/api/routes/user-session.js +38 -23
  11. package/api/routes/user.js +6 -7
  12. package/api/services/auth/index.js +32 -62
  13. package/api/util/attach-shared-utils.js +109 -19
  14. package/api/util/index.js +13 -12
  15. package/dist/assets/{Add-Bl82G48c.js → Add-BQRw67Fa.js} +1 -1
  16. package/dist/assets/{Alert-B9Rlqmtk.js → Alert-Cb8GUvFi.js} +1 -1
  17. package/dist/assets/{ArrowDropDown-z6CkvFic.js → ArrowDropDown-BRkkVMO8.js} +1 -1
  18. package/dist/assets/{Autocomplete-C0mtAXbg.js → Autocomplete-CiMJCI6q.js} +1 -1
  19. package/dist/assets/{Avatar-LMc5QpZl.js → Avatar-JUqpVuoZ.js} +1 -1
  20. package/dist/assets/{ButtonGroup-Bvw5eHAy.js → ButtonGroup-Dkr30o-y.js} +1 -1
  21. package/dist/assets/CSSTransition-CaK7nxWs.js +1 -0
  22. package/dist/assets/{CheckCircle-CW1NWF0M.js → CheckCircle-dQlnEikR.js} +1 -1
  23. package/dist/assets/{ChevronLeft-Bc2dOBpo.js → ChevronLeft-D1jj_OCE.js} +1 -1
  24. package/dist/assets/{ChevronRight-y7cPaDQ3.js → ChevronRight-4B8L2FvK.js} +1 -1
  25. package/dist/assets/{Close-DLWmZbtN.js → Close-D9t1V0bN.js} +1 -1
  26. package/dist/assets/{CloseOutlined-7w3yHb7q.js → CloseOutlined-_dO3T_PC.js} +1 -1
  27. package/dist/assets/{Delete-FZyEAOwe.js → Delete-C1RI7dqa.js} +1 -1
  28. package/dist/assets/{DeleteOutline-B-H27VeQ.js → DeleteOutline-B7DWD_Pd.js} +1 -1
  29. package/dist/assets/{DialogContentText-CiyJlDpv.js → DialogContentText-BGwSGY20.js} +1 -1
  30. package/dist/assets/{Done-BEW0zhw2.js → Done-B9inxpK9.js} +1 -1
  31. package/dist/assets/{Download-BfRlCRO0.js → Download-Chn_mucC.js} +1 -1
  32. package/dist/assets/{EditIcon-CG4JGMyT.js → EditIcon-Bxcvoews.js} +1 -1
  33. package/dist/assets/{Error-C2cvwDlh.js → Error-CD7hXBjK.js} +1 -1
  34. package/dist/assets/{ExpandMore-CVPXcP59.js → ExpandMore-CZbzCTKg.js} +1 -1
  35. package/dist/assets/{FormControl-vM9EJwp4.js → FormControl-CVE9WL7K.js} +1 -1
  36. package/dist/assets/FormControlLabel-DYWd7TcF.js +1 -0
  37. package/dist/assets/{FormGroup-DoibujUR.js → FormGroup-DdQz-TwB.js} +1 -1
  38. package/dist/assets/{Google-BkswiX56.js → Google-DcVWJY2S.js} +1 -1
  39. package/dist/assets/{Grid-DmS931mb.js → Grid-BZnpkTQP.js} +1 -1
  40. package/dist/assets/{Hidden-DFLNRBK7.js → Hidden-CbAVlEDm.js} +1 -1
  41. package/dist/assets/{InfoOutlined-BGl9NpGF.js → InfoOutlined-NM9liF3s.js} +1 -1
  42. package/dist/assets/{InputAdornment-BfRAjWFP.js → InputAdornment-Bpn9HTW3.js} +1 -1
  43. package/dist/assets/{InputLabel-snet_z2M.js → InputLabel-RH2D4KPR.js} +1 -1
  44. package/dist/assets/{LastPage-KoP1Fd4R.js → LastPage-DWF6cED3.js} +1 -1
  45. package/dist/assets/{Launch-DaqmeZ7p.js → Launch-B6giRvog.js} +1 -1
  46. package/dist/assets/{LaunchOutlined-D8_8q_U2.js → LaunchOutlined-BbztgzUz.js} +1 -1
  47. package/dist/assets/{Link-ZwKMc2xW.js → Link-mzUHhPTN.js} +1 -1
  48. package/dist/assets/{LoadingButton-DAYzECCB.js → LoadingButton-BgKjZXkL.js} +1 -1
  49. package/dist/assets/{LockIcon-CzOlJg7E.js → LockIcon-4PWP1bDL.js} +1 -1
  50. package/dist/assets/{Loop-DdSi2a5X.js → Loop-P56l68QD.js} +1 -1
  51. package/dist/assets/MarkEmailRead-DOjMeCFe.js +1 -0
  52. package/dist/assets/{Menu-cPWOWdJv.js → Menu-I0j8Ts_k.js} +1 -1
  53. package/dist/assets/{MoreHoriz-CCaXi0-D.js → MoreHoriz-BihREYOu.js} +1 -1
  54. package/dist/assets/MoreVert-DDBU9EgD.js +1 -0
  55. package/dist/assets/{OpenInNew-DhmdNIIA.js → OpenInNew-DNUMd1Ki.js} +1 -1
  56. package/dist/assets/{Pagination-BXlUtx3B.js → Pagination-DFhSxhpu.js} +1 -1
  57. package/dist/assets/{PlayArrow-dbaJvP3i.js → PlayArrow-m_SU1GSc.js} +1 -1
  58. package/dist/assets/{QuestionMarkCircle-ClghFyf8.js → QuestionMarkCircle-L9oBHKLh.js} +1 -1
  59. package/dist/assets/{RadioGroup-h39eYIOw.js → RadioGroup-BZc2gQ3J.js} +1 -1
  60. package/dist/assets/{Search-Deg4mgEt.js → Search-DcpIU2VO.js} +1 -1
  61. package/dist/assets/{Select-D8wgZEYi.js → Select-BjqrbqwY.js} +2 -2
  62. package/dist/assets/{ServerLogo-C-IdWQab.js → ServerLogo-D3rrSDtL.js} +1 -1
  63. package/dist/assets/{Skeleton-DTHod0yi.js → Skeleton-cOZ7paOF.js} +1 -1
  64. package/dist/assets/{Slider-BGdMADx-.js → Slider-BPnwflNL.js} +1 -1
  65. package/dist/assets/{Stack-Cp3hYWEn.js → Stack-BpqXnyM6.js} +1 -1
  66. package/dist/assets/{Stepper-BYg7nOyi.js → Stepper-cjIW0fgZ.js} +1 -1
  67. package/dist/assets/{TextField-COEnibZX.js → TextField-PnwHOv_7.js} +1 -1
  68. package/dist/assets/{Toolbar-gvJQuyml.js → Toolbar-C46QlHj5.js} +1 -1
  69. package/dist/assets/{Verified-BYBUZULO.js → Verified-kWQRhAzA.js} +1 -1
  70. package/dist/assets/{ViewColumn-C-7sjz0Y.js → ViewColumn-di8RRjuH.js} +1 -1
  71. package/dist/assets/{ViewList-JViuspE8.js → ViewList-B-z7Gj50.js} +1 -1
  72. package/dist/assets/access-control-HU86cVDN.js +13 -0
  73. package/dist/assets/{actions-BvIgnlgP.js → actions-DpdmI0vS.js} +1 -1
  74. package/dist/assets/{add-component-core-CF3Wvpy3.js → add-component-core-C12Yk8Zd.js} +28 -28
  75. package/dist/assets/add-resource-B5PS9Yw0.js +1 -0
  76. package/dist/assets/{addon-BN5Sfj4m.js → addon-CigkkKH3.js} +1 -1
  77. package/dist/assets/{analytics-jhEGduS7.js → analytics-B6_E7bBR.js} +7 -7
  78. package/dist/assets/api-BTWN6BD3.js +1 -0
  79. package/dist/assets/ar-DPKr6aJE.js +1 -0
  80. package/dist/assets/{audit-logs-Vn5iZ4P_.js → audit-logs-BCK2xbFz.js} +1 -1
  81. package/dist/assets/{base32-RJwtUwTG.js → base32-CEA8NAOs.js} +1 -1
  82. package/dist/assets/{bundle-avatar-CYj37kYo.js → bundle-avatar-BEi2sYgQ.js} +1 -1
  83. package/dist/assets/{button-Bzg3GLCP.js → button-qSDF0MHZ.js} +1 -1
  84. package/dist/assets/{click-to-copy-BxqXxgUi.js → click-to-copy-DNMw_CsM.js} +1 -1
  85. package/dist/assets/{complete-DkKqvq-n.js → complete-ktDziJkp.js} +1 -1
  86. package/dist/assets/{component-CBSn0ylq.js → component-cpm50z3M.js} +92 -92
  87. package/dist/assets/{config-W5zOORTl.js → config-C98DoG5F.js} +2 -2
  88. package/dist/assets/config-Cpoq5q2q.js +1 -0
  89. package/dist/assets/{config-navigation-acog9zxt.js → config-navigation-DHqRxI1-.js} +5 -5
  90. package/dist/assets/{confirm-BD8lcIjf.js → confirm-CHPPgJ5w.js} +1 -1
  91. package/dist/assets/{connect-Cau7HJrv.js → connect-CVt7hhhZ.js} +1 -1
  92. package/dist/assets/{connect-DUt6GuMA.js → connect-_wsn53RM.js} +1 -1
  93. package/dist/assets/connect-to-BhVu4jHm.js +54 -0
  94. package/dist/assets/{content-layout--Pzx1mcC.js → content-layout-4m3OHN99.js} +1 -1
  95. package/dist/assets/{dashboard-CIOwnQZx.js → dashboard-BuNhMwdN.js} +4 -4
  96. package/dist/assets/de-Cl5__jPN.js +1 -0
  97. package/dist/assets/{deprecate-D_97v-_E.js → deprecate-DovOjub0.js} +1 -1
  98. package/dist/assets/{did-address-DgsfKQl1.js → did-address-CdScrBCT.js} +1 -1
  99. package/dist/assets/{domain-zy-h52DT.js → domain-DnltSVJm.js} +1 -1
  100. package/dist/assets/{domain-list-tyAcumiG.js → domain-list-CAkva7x_.js} +2 -2
  101. package/dist/assets/email-ByYt-V3O.js +18 -0
  102. package/dist/assets/emotion-cache.browser.esm-Bl95gpZS.js +1 -0
  103. package/dist/assets/es-BhoY4pub.js +1 -0
  104. package/dist/assets/{exchange-passport-DPiMkxjA.js → exchange-passport-yUOmsAsG.js} +1 -1
  105. package/dist/assets/{fallback-DUmnMg78.js → fallback-Ck0I8St3.js} +1 -1
  106. package/dist/assets/form-text-input-psgwvKm-.js +11 -0
  107. package/dist/assets/{format-error-D0C8Qna1.js → format-error-IawEMzuv.js} +1 -1
  108. package/dist/assets/fr-T--qF3dZ.js +1 -0
  109. package/dist/assets/{fuel-CZZpMc32.js → fuel-DYf7OlG7.js} +1 -1
  110. package/dist/assets/{fullpage-ov1kRa00.js → fullpage-L8eyCcID.js} +1 -1
  111. package/dist/assets/hi-Bkr9nxwZ.js +1 -0
  112. package/dist/assets/{home-gwd5aHrM.js → home-BaeqwiMV.js} +1 -1
  113. package/dist/assets/id-BbxiX6aD.js +1 -0
  114. package/dist/assets/{iframe-BIzC7nPA.js → iframe-D-vgaTgv.js} +1 -1
  115. package/dist/assets/index-B714sBVK.js +11 -0
  116. package/dist/assets/{index-BjLsHd9C.js → index-BAQvuUj1.js} +1 -1
  117. package/dist/assets/{index-BJmzQOKo.js → index-BNbx1KY2.js} +1 -1
  118. package/dist/assets/{index-Wi2p68c2.js → index-BSfUxS10.js} +1 -1
  119. package/dist/assets/{index-BYSwxOyW.js → index-BYtyuTe_.js} +1 -1
  120. package/dist/assets/index-BhWojJ48.js +316 -0
  121. package/dist/assets/{index-DsWS2z9f.js → index-C46QsmAx.js} +1 -1
  122. package/dist/assets/{index-B-DC1bkM.js → index-C4OUjclt.js} +1 -1
  123. package/dist/assets/index-CB7LGtSy.js +22 -0
  124. package/dist/assets/{index-COU4Nu6y.js → index-CKJ-4t1N.js} +1 -1
  125. package/dist/assets/index-CPjnF38z.js +1 -0
  126. package/dist/assets/{index-XlLZRf68.js → index-CUuwfStF.js} +1 -1
  127. package/dist/assets/{index-CES_wWCV.js → index-Cicr8_v0.js} +183 -183
  128. package/dist/assets/{index-BA1E4qQ4.js → index-ClPetRXB.js} +1 -1
  129. package/dist/assets/{index-C_0JNAm2.js → index-CmMULrYg.js} +1 -1
  130. package/dist/assets/{index-BcvXX_mO.js → index-CvuYuNrC.js} +1 -1
  131. package/dist/assets/{index-CE4JYDnG.js → index-Czj3ph5d.js} +4 -4
  132. package/dist/assets/{index-C2AukIic.js → index-D5IcO7Vq.js} +1 -1
  133. package/dist/assets/{index-D8OsCndp.js → index-D8UHLaZo.js} +1 -1
  134. package/dist/assets/{index-CNybmfDH.js → index-DFI3ASVb.js} +1 -1
  135. package/dist/assets/{index-bwXQ8Wpi.js → index-DH0OTY_E.js} +1 -1
  136. package/dist/assets/{index-DcKMlzdo.js → index-DLuD4Ybl.js} +1 -1
  137. package/dist/assets/{index-Bv4e_rV5.js → index-DTIMKD2Z.js} +1 -1
  138. package/dist/assets/{index-QTPBiLZh.js → index-DZJ5Xczt.js} +1 -1
  139. package/dist/assets/{index-AfbTuUW5.js → index-DZvaAYzJ.js} +7 -7
  140. package/dist/assets/{index-B8-zdW7s.js → index-DpBCF5xl.js} +1 -1
  141. package/dist/assets/{index-DS-kwJv8.js → index-DpYNQxep.js} +1 -1
  142. package/dist/assets/index-DtlYOQGh.js +5 -0
  143. package/dist/assets/index-DzjvRcZX.js +126 -0
  144. package/dist/assets/{index-Q7ZUJ_jr.js → index-MuwP8CmB.js} +11 -11
  145. package/dist/assets/{index-BqpKWYMh.js → index-VWtFyzkK.js} +1 -1
  146. package/dist/assets/{index-DW7dwoqE.js → index-b3txmGPa.js} +1 -1
  147. package/dist/assets/index-e3kJGRQs.js +1 -0
  148. package/dist/assets/{index-rOGdJKYL.js → index-eMi3myGI.js} +1 -1
  149. package/dist/assets/index-lIQZq2T1.js +1 -0
  150. package/dist/assets/{index.es-HA92kWdG.js → index.es-omOswc9R.js} +3 -3
  151. package/dist/assets/{invitation-B49_oImo.js → invitation-tEQ5ZLGQ.js} +1 -1
  152. package/dist/assets/{invite-V3Nbkyr9.js → invite-BL9JwrO-.js} +1 -1
  153. package/dist/assets/{issue-passport-BK_rmsMU.js → issue-passport-B4cIxbeW.js} +1 -1
  154. package/dist/assets/{item-ChdkonTR.js → item--EFKzxT4.js} +1 -1
  155. package/dist/assets/ja-B5UxYW93.js +1 -0
  156. package/dist/assets/{jss-plugin-props-sort.esm-DBVL9gMW.js → jss-plugin-props-sort.esm-CwzPC0-q.js} +5 -5
  157. package/dist/assets/ko-CpyVmdoA.js +1 -0
  158. package/dist/assets/{launch-result-message-BAr02bV5.js → launch-result-message-D3lgLPek.js} +1 -1
  159. package/dist/assets/{layout-bf8MnH7p.js → layout-CeB8tvZm.js} +1 -1
  160. package/dist/assets/{list-header-BdXS3bwO.js → list-header-BEHCrfI7.js} +1 -1
  161. package/dist/assets/localization-DMO6m7q5.js +1 -0
  162. package/dist/assets/{log-CEafQKJ9.js → log-BA8otNYe.js} +1 -1
  163. package/dist/assets/{login-CEkmeGqM.js → login-MJNn4jX3.js} +1 -1
  164. package/dist/assets/{login-oauth-callback-BKsN-may.js → login-oauth-callback-a4ix1w_Y.js} +1 -1
  165. package/dist/assets/logo-uploader-D3WhF6vw.js +133 -0
  166. package/dist/assets/{lost-passport-BKV23uoE.js → lost-passport-BqI_ADgq.js} +3 -3
  167. package/dist/assets/{lottie-Bmh0Xil_.js → lottie-CKskIEos.js} +1 -1
  168. package/dist/assets/notifications-BuezJhNN.js +65 -0
  169. package/dist/assets/{open-window-BxfESFgZ.js → open-window-vG7gxIZq.js} +1 -1
  170. package/dist/assets/overview-pVXjVv4f.js +12 -0
  171. package/dist/assets/{page-header-C6Www8xa.js → page-header-CDbgUvxH.js} +1 -1
  172. package/dist/assets/{permission-C0wbV6KF.js → permission-CC_4NjQs.js} +1 -1
  173. package/dist/assets/{preferences-DgOndnl4.js → preferences-AiiMUULa.js} +1 -1
  174. package/dist/assets/pt-DNYyqLg4.js +1 -0
  175. package/dist/assets/publish-resource-C2uzL0M9.js +1 -0
  176. package/dist/assets/purify.es-Bq0E5Q3l.js +2 -0
  177. package/dist/assets/react-BeNwKB5d.js +56 -0
  178. package/dist/assets/{redux-B8mroqAb.js → redux-CSFGRixa.js} +1 -1
  179. package/dist/assets/refType-D_QSkOey.js +1 -0
  180. package/dist/assets/resource-dialog-CE8xTvOH.js +4 -0
  181. package/dist/assets/ru-iLN_KAH_.js +1 -0
  182. package/dist/assets/sdk-DxG_dISZ.js +1 -0
  183. package/dist/assets/{selector-B2UrJyEC.js → selector-D17_2gf0.js} +1 -1
  184. package/dist/assets/session-D-foQV_d.js +1 -0
  185. package/dist/assets/setup-Ctq13rGM.js +19 -0
  186. package/dist/assets/{shorten-label-C69K-2N4.js → shorten-label-DH9SHtdj.js} +1 -1
  187. package/dist/assets/simple-select-BxJC7ug8.js +1 -0
  188. package/dist/assets/{slicedToArray-Btbq_uXo.js → slicedToArray-iU9d1Nzl.js} +2 -2
  189. package/dist/assets/{spaces-CKA3haGw.js → spaces-zoAgXjLC.js} +1 -1
  190. package/dist/assets/{start-E4q8KtSK.js → start-DMZbLY0L.js} +1 -1
  191. package/dist/assets/{step-actions-Dv65pQs7.js → step-actions-oojkqr2w.js} +1 -1
  192. package/dist/assets/{studio-C9Z81BQt.js → studio-Dcd2i5DA.js} +1 -1
  193. package/dist/assets/{switch-control-Cct9SW8-.js → switch-control-DA8reBy9.js} +1 -1
  194. package/dist/assets/th-pEKbhX2z.js +1 -0
  195. package/dist/assets/{toUpper-DjVC4j_j.js → toUpper-SILegrQ3.js} +1 -1
  196. package/dist/assets/{transfer-W8UlEJt-.js → transfer-B7uXnaTg.js} +1 -1
  197. package/dist/assets/trim-DtY2mn6M.js +1 -0
  198. package/dist/assets/{uniqBy-BzzuWGYh.js → uniqBy-CqrMZpMi.js} +1 -1
  199. package/dist/assets/{unsubscribe-BkeOgqWI.js → unsubscribe-Dckvx5GC.js} +1 -1
  200. package/dist/assets/{url-join-BLh7jCrJ.js → url-join-MhXUJvvH.js} +1 -1
  201. package/dist/assets/use-blocklet-info-for-connect-did-spaces-wq894EOf.js +1 -0
  202. package/dist/assets/{use-mobile-BJoJTGF0.js → use-mobile-B1qMoH4W.js} +1 -1
  203. package/dist/assets/{useAsync-CvPpFYs-.js → useAsync-DwqCgR5n.js} +1 -1
  204. package/dist/assets/{useFormControl-BXRE7Su9.js → useFormControl-581SE09O.js} +1 -1
  205. package/dist/assets/{useLocalStorage-BJH73q2r.js → useLocalStorage-2QP2xSVk.js} +1 -1
  206. package/dist/assets/{useSetState-CJBhbXdV.js → useSetState-xUMH0B_e.js} +1 -1
  207. package/dist/assets/{useSlot-BnpRF9Wf.js → useSlot-1YlTOkWf.js} +1 -1
  208. package/dist/assets/{useSlotProps-Bo-Lx2a7.js → useSlotProps-CH7A38KN.js} +1 -1
  209. package/dist/assets/{useThemeProps-NLTP4qET.js → useThemeProps-2Eh-Pntu.js} +1 -1
  210. package/dist/assets/user-center-DLGGLlGO.js +1 -0
  211. package/dist/assets/{user-sessions-9jxxDLYT.js → user-sessions-BYM0F6ns.js} +1 -1
  212. package/dist/assets/{util-ZHGnEGmF.js → util-CTLIHCQ7.js} +1 -1
  213. package/dist/assets/vi-CNA5ZRDz.js +1 -0
  214. package/dist/assets/wrap-locale-kin7AMXS.js +1 -0
  215. package/dist/assets/zh-C91ux8Ex.js +2 -0
  216. package/dist/assets/zh-tw-wIRljAO1.js +1 -0
  217. package/dist/index.html +1 -1
  218. package/dist/service-worker.js +1 -1
  219. package/package.json +30 -27
  220. package/api/util/get-dynamic-service-config.js +0 -48
  221. package/dist/assets/Edit-Cbvlvh2w.js +0 -11
  222. package/dist/assets/FormControlLabel-CS28YgVs.js +0 -1
  223. package/dist/assets/MoreVert-D4SS6MnA.js +0 -1
  224. package/dist/assets/access-control-BDg9FQV3.js +0 -13
  225. package/dist/assets/add-resource-DLKAe3re.js +0 -1
  226. package/dist/assets/api-JbjuY7JN.js +0 -1
  227. package/dist/assets/ar-rur8F6ox.js +0 -1
  228. package/dist/assets/config-ONP_4X_B.js +0 -1
  229. package/dist/assets/connect-to-GhSR8jRw.js +0 -54
  230. package/dist/assets/de-C-5DrcsF.js +0 -1
  231. package/dist/assets/email-BINRPUSY.js +0 -18
  232. package/dist/assets/emotion-cache.browser.esm-ByukGais.js +0 -1
  233. package/dist/assets/es-CDmziQ2d.js +0 -1
  234. package/dist/assets/fr-RdOP2uWC.js +0 -1
  235. package/dist/assets/hi-V6iw7v5V.js +0 -1
  236. package/dist/assets/id-CeB6Ugb-.js +0 -1
  237. package/dist/assets/index-BHXHtIJm.js +0 -126
  238. package/dist/assets/index-CXg0jLCN.js +0 -11
  239. package/dist/assets/index-DmdwpBJN.js +0 -261
  240. package/dist/assets/index-DqHzmyne.js +0 -68
  241. package/dist/assets/index-HqFqdQ4r.js +0 -1
  242. package/dist/assets/index-RVvYAb40.js +0 -1
  243. package/dist/assets/index-wVSweHe6.js +0 -1
  244. package/dist/assets/index.esm-S4QOHn5V.js +0 -1
  245. package/dist/assets/ja-DlWywLev.js +0 -1
  246. package/dist/assets/ko-ESHUwy9c.js +0 -1
  247. package/dist/assets/localization-BlAk-2Dh.js +0 -1
  248. package/dist/assets/logo-uploader-DO_ePInN.js +0 -122
  249. package/dist/assets/mode-B2dWMeTO.js +0 -1
  250. package/dist/assets/notifications-CDn5GICo.js +0 -62
  251. package/dist/assets/overview-DvxryhGu.js +0 -12
  252. package/dist/assets/pt-BMSFPKAT.js +0 -1
  253. package/dist/assets/publish-resource-BK8LfyYg.js +0 -1
  254. package/dist/assets/react-DWdAOKA_.js +0 -57
  255. package/dist/assets/resource-dialog-CxQ2RdqX.js +0 -57
  256. package/dist/assets/ru-2aTr2i-M.js +0 -1
  257. package/dist/assets/sdk-BzFjs0zU.js +0 -1
  258. package/dist/assets/session-CPw6Z6tL.js +0 -1
  259. package/dist/assets/setup-C-eSKhTS.js +0 -19
  260. package/dist/assets/th-D2W7tb3N.js +0 -1
  261. package/dist/assets/trim-pCqXvQz3.js +0 -1
  262. package/dist/assets/use-blocklet-info-for-connect-did-spaces-BfIvMuGO.js +0 -1
  263. package/dist/assets/user-center-DSwKYf1W.js +0 -1
  264. package/dist/assets/vi-DTSqGMo-.js +0 -1
  265. package/dist/assets/wrap-locale-De5w1_ZO.js +0 -1
  266. package/dist/assets/zh-CT0fSzRS.js +0 -2
  267. package/dist/assets/zh-tw-i93Px0uV.js +0 -1
@@ -1 +1 @@
1
- import{r as S,d8 as St,gv as pe,cl as Lt,ch as at,cK as wt,cT as Ge,cU as $e,gw as Je,aK as c,cW as Te,aE as Pt,aF as Ct,aM as oe,j as P,aG as J,aH as B,ce as ot,cd as nt,ck as lt,eG as dt,aI as $t,cS as Tt,aJ as _t,aL as Y,aN as Rt}from"./index-CES_wWCV.js";const It={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function At(e,t,a=(l,d)=>l===d){return e.length===t.length&&e.every((l,d)=>a(l,t[d]))}const Mt=2;function pt(e,t){return e-t}function st(e,t){var a;const{index:l}=(a=e.reduce((d,L,C)=>{const m=Math.abs(t-L);return d===null||m<d.distance||m===d.distance?{distance:m,index:C}:d},null))!=null?a:{};return l}function Le(e,t){if(t.current!==void 0&&e.changedTouches){const a=e;for(let l=0;l<a.changedTouches.length;l+=1){const d=a.changedTouches[l];if(d.identifier===t.current)return{x:d.clientX,y:d.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function _e(e,t,a){return(e-t)*100/(a-t)}function zt(e,t,a){return(a-t)*e+t}function Nt(e){if(Math.abs(e)<1){const a=e.toExponential().split("e-"),l=a[0].split(".")[1];return(l?l.length:0)+parseInt(a[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function Et(e,t,a){const l=Math.round((e-a)/t)*t+a;return Number(l.toFixed(Nt(t)))}function it({values:e,newValue:t,index:a}){const l=e.slice();return l[a]=t,l.sort(pt)}function we({sliderRef:e,activeIndex:t,setActive:a}){var l,d;const L=$e(e.current);if(!((l=e.current)!=null&&l.contains(L.activeElement))||Number(L==null||(d=L.activeElement)==null?void 0:d.getAttribute("data-index"))!==t){var C;(C=e.current)==null||C.querySelector(`[type="range"][data-index="${t}"]`).focus()}a&&a(t)}function Pe(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?At(e,t):!1}const Vt={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Ft=e=>e;let Ce;function ut(){return Ce===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Ce=CSS.supports("touch-action","none"):Ce=!0),Ce}function Ht(e){const{"aria-labelledby":t,defaultValue:a,disabled:l=!1,disableSwap:d=!1,isRtl:L=!1,marks:C=!1,max:m=100,min:f=0,name:K,onChange:ne,onChangeCommitted:U,orientation:Q="horizontal",rootRef:fe,scale:le=Ft,step:z=1,shiftStep:se=10,tabIndex:be,value:me}=e,V=S.useRef(),[W,j]=S.useState(-1),[ve,O]=S.useState(-1),[ie,ue]=S.useState(!1),X=S.useRef(0),[_,Z]=St({controlled:me,default:a??f,name:"Slider"}),N=ne&&((r,o,n)=>{const i=r.nativeEvent||r,u=new i.constructor(i.type,i);Object.defineProperty(u,"target",{writable:!0,value:{value:o,name:K}}),ne(u,o,n)}),q=Array.isArray(_);let y=q?_.slice().sort(pt):[_];y=y.map(r=>r==null?f:pe(r,f,m));const ce=C===!0&&z!==null?[...Array(Math.floor((m-f)/z)+1)].map((r,o)=>({value:f+z*o})):C||[],g=ce.map(r=>r.value),{isFocusVisibleRef:R,onBlur:Re,onFocus:Ie,ref:Ae}=Lt(),[he,G]=S.useState(-1),w=S.useRef(),ge=at(Ae,w),ye=at(fe,ge),ee=r=>o=>{var n;const i=Number(o.currentTarget.getAttribute("data-index"));Ie(o),R.current===!0&&G(i),O(i),r==null||(n=r.onFocus)==null||n.call(r,o)},te=r=>o=>{var n;Re(o),R.current===!1&&G(-1),O(-1),r==null||(n=r.onBlur)==null||n.call(r,o)},ke=(r,o)=>{const n=Number(r.currentTarget.getAttribute("data-index")),i=y[n],u=g.indexOf(i);let s=o;if(ce&&z==null){const M=g[g.length-1];s>M?s=M:s<g[0]?s=g[0]:s=s<i?g[u-1]:g[u+1]}if(s=pe(s,f,m),q){d&&(s=pe(s,y[n-1]||-1/0,y[n+1]||1/0));const M=s;s=it({values:y,newValue:s,index:n});let E=n;d||(E=s.indexOf(M)),we({sliderRef:w,activeIndex:E})}Z(s),G(n),N&&!Pe(s,_)&&N(r,s,n),U&&U(r,s)},Me=r=>o=>{var n;if(z!==null){const i=Number(o.currentTarget.getAttribute("data-index")),u=y[i];let s=null;(o.key==="ArrowLeft"||o.key==="ArrowDown")&&o.shiftKey||o.key==="PageDown"?s=Math.max(u-se,f):((o.key==="ArrowRight"||o.key==="ArrowUp")&&o.shiftKey||o.key==="PageUp")&&(s=Math.min(u+se,m)),s!==null&&(ke(o,s),o.preventDefault())}r==null||(n=r.onKeyDown)==null||n.call(r,o)};wt(()=>{if(l&&w.current.contains(document.activeElement)){var r;(r=document.activeElement)==null||r.blur()}},[l]),l&&W!==-1&&j(-1),l&&he!==-1&&G(-1);const ze=r=>o=>{var n;(n=r.onChange)==null||n.call(r,o),ke(o,o.target.valueAsNumber)},xe=S.useRef();let F=Q;L&&Q==="horizontal"&&(F+="-reverse");const v=({finger:r,move:o=!1})=>{const{current:n}=w,{width:i,height:u,bottom:s,left:M}=n.getBoundingClientRect();let E;F.indexOf("vertical")===0?E=(s-r.y)/u:E=(r.x-M)/i,F.indexOf("-reverse")!==-1&&(E=1-E);let p;if(p=zt(E,f,m),z)p=Et(p,z,f);else{const ae=st(g,p);p=g[ae]}p=pe(p,f,m);let $=0;if(q){o?$=xe.current:$=st(y,p),d&&(p=pe(p,y[$-1]||-1/0,y[$+1]||1/0));const ae=p;p=it({values:y,newValue:p,index:$}),d&&o||($=p.indexOf(ae),xe.current=$)}return{newValue:p,activeIndex:$}},b=Ge(r=>{const o=Le(r,V);if(!o)return;if(X.current+=1,r.type==="mousemove"&&r.buttons===0){I(r);return}const{newValue:n,activeIndex:i}=v({finger:o,move:!0});we({sliderRef:w,activeIndex:i,setActive:j}),Z(n),!ie&&X.current>Mt&&ue(!0),N&&!Pe(n,_)&&N(r,n,i)}),I=Ge(r=>{const o=Le(r,V);if(ue(!1),!o)return;const{newValue:n}=v({finger:o,move:!0});j(-1),r.type==="touchend"&&O(-1),U&&U(r,n),V.current=void 0,A()}),D=Ge(r=>{if(l)return;ut()||r.preventDefault();const o=r.changedTouches[0];o!=null&&(V.current=o.identifier);const n=Le(r,V);if(n!==!1){const{newValue:u,activeIndex:s}=v({finger:n});we({sliderRef:w,activeIndex:s,setActive:j}),Z(u),N&&!Pe(u,_)&&N(r,u,s)}X.current=0;const i=$e(w.current);i.addEventListener("touchmove",b,{passive:!0}),i.addEventListener("touchend",I,{passive:!0})}),A=S.useCallback(()=>{const r=$e(w.current);r.removeEventListener("mousemove",b),r.removeEventListener("mouseup",I),r.removeEventListener("touchmove",b),r.removeEventListener("touchend",I)},[I,b]);S.useEffect(()=>{const{current:r}=w;return r.addEventListener("touchstart",D,{passive:ut()}),()=>{r.removeEventListener("touchstart",D),A()}},[A,D]),S.useEffect(()=>{l&&A()},[l,A]);const Ne=r=>o=>{var n;if((n=r.onMouseDown)==null||n.call(r,o),l||o.defaultPrevented||o.button!==0)return;o.preventDefault();const i=Le(o,V);if(i!==!1){const{newValue:s,activeIndex:M}=v({finger:i});we({sliderRef:w,activeIndex:M,setActive:j}),Z(s),N&&!Pe(s,_)&&N(o,s,M)}X.current=0;const u=$e(w.current);u.addEventListener("mousemove",b,{passive:!0}),u.addEventListener("mouseup",I)},x=_e(q?y[0]:f,f,m),re=_e(y[y.length-1],f,m)-x,Ee=(r={})=>{const o=Je(r),n={onMouseDown:Ne(o||{})},i=c({},o,n);return c({},r,{ref:ye},i)},Ve=r=>o=>{var n;(n=r.onMouseOver)==null||n.call(r,o);const i=Number(o.currentTarget.getAttribute("data-index"));O(i)},Fe=r=>o=>{var n;(n=r.onMouseLeave)==null||n.call(r,o),O(-1)};return{active:W,axis:F,axisProps:Vt,dragging:ie,focusedThumbIndex:he,getHiddenInputProps:(r={})=>{var o;const n=Je(r),i={onChange:ze(n||{}),onFocus:ee(n||{}),onBlur:te(n||{}),onKeyDown:Me(n||{})},u=c({},n,i);return c({tabIndex:be,"aria-labelledby":t,"aria-orientation":Q,"aria-valuemax":le(m),"aria-valuemin":le(f),name:K,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(o=e.step)!=null?o:void 0,disabled:l},r,u,{style:c({},It,{direction:L?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Ee,getThumbProps:(r={})=>{const o=Je(r),n={onMouseOver:Ve(o||{}),onMouseLeave:Fe(o||{})};return c({},r,o,n)},marks:ce,open:ve,range:q,rootRef:ye,trackLeap:re,trackOffset:x,values:y,getThumbStyle:r=>({pointerEvents:W!==-1&&W!==r?"none":void 0})}}const jt=e=>!e||!Te(e);function Ot(e){return Ct("MuiSlider",e)}const T=Pt("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Dt=e=>{const{open:t}=e;return{offset:oe(t&&T.valueLabelOpen),circle:T.valueLabelCircle,label:T.valueLabelLabel}};function Yt(e){const{children:t,className:a,value:l}=e,d=Dt(e);return t?S.cloneElement(t,{className:oe(t.props.className)},P.jsxs(S.Fragment,{children:[t.props.children,P.jsx("span",{className:oe(d.offset,a),"aria-hidden":!0,children:P.jsx("span",{className:d.circle,children:P.jsx("span",{className:d.label,children:l})})})]})):null}const Bt=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function ct(e){return e}const Kt=J("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,t[`color${B(a.color)}`],a.size!=="medium"&&t[`size${B(a.size)}`],a.marked&&t.marked,a.orientation==="vertical"&&t.vertical,a.track==="inverted"&&t.trackInverted,a.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${T.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${T.dragging}`]:{[`& .${T.thumb}, & .${T.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(a=>{var l;return((l=e.vars)!=null?l:e).palette[a].main}).map(a=>({props:{color:a},style:{color:(e.vars||e).palette[a].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),Ut=J("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),Wt=J("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(a=>{var l;return((l=e.vars)!=null?l:e).palette[a].main}).map(a=>({props:{color:a,track:"inverted"},style:c({},e.vars?{backgroundColor:e.vars.palette.Slider[`${a}Track`],borderColor:e.vars.palette.Slider[`${a}Track`]}:c({backgroundColor:ot(e.palette[a].main,.62),borderColor:ot(e.palette[a].main,.62)},e.applyStyles("dark",{backgroundColor:nt(e.palette[a].main,.5)}),e.applyStyles("dark",{borderColor:nt(e.palette[a].main,.5)})))}))]}}),Xt=J("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.thumb,t[`thumbColor${B(a.color)}`],a.size!=="medium"&&t[`thumbSize${B(a.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${T.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(a=>{var l;return((l=e.vars)!=null?l:e).palette[a].main}).map(a=>({props:{color:a},style:{[`&:hover, &.${T.focusVisible}`]:c({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[a].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${lt(e.palette[a].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${T.active}`]:c({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[a].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${lt(e.palette[a].main,.16)}`})}}))]}}),qt=J(Yt,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>c({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${T.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${T.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),Gt=J("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>dt(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:a}=e;return[t.mark,a&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),Jt=J("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>dt(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>c({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),Qt=e=>{const{disabled:t,dragging:a,marked:l,orientation:d,track:L,classes:C,color:m,size:f}=e,K={root:["root",t&&"disabled",a&&"dragging",l&&"marked",d==="vertical"&&"vertical",L==="inverted"&&"trackInverted",L===!1&&"trackFalse",m&&`color${B(m)}`,f&&`size${B(f)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",f&&`thumbSize${B(f)}`,m&&`thumbColor${B(m)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Rt(K,Ot,C)},Zt=({children:e})=>e,tr=S.forwardRef(function(t,a){var l,d,L,C,m,f,K,ne,U,Q,fe,le,z,se,be,me,V,W,j,ve,O,ie,ue,X;const _=$t({props:t,name:"MuiSlider"}),Z=Tt(),{"aria-label":N,"aria-valuetext":q,"aria-labelledby":y,component:ce="span",components:g={},componentsProps:R={},color:Re="primary",classes:Ie,className:Ae,disableSwap:he=!1,disabled:G=!1,getAriaLabel:w,getAriaValueText:ge,marks:ye=!1,max:ee=100,min:te=0,orientation:ke="horizontal",shiftStep:Me=10,size:ze="medium",step:xe=1,scale:F=ct,slotProps:v,slots:b,track:I="normal",valueLabelDisplay:D="off",valueLabelFormat:A=ct}=_,Ne=_t(_,Bt),x=c({},_,{isRtl:Z,max:ee,min:te,classes:Ie,disabled:G,disableSwap:he,orientation:ke,marks:ye,color:Re,size:ze,step:xe,shiftStep:Me,scale:F,track:I,valueLabelDisplay:D,valueLabelFormat:A}),{axisProps:re,getRootProps:Ee,getHiddenInputProps:Ve,getThumbProps:Fe,open:Qe,active:He,axis:de,focusedThumbIndex:r,range:o,dragging:n,marks:i,values:u,trackOffset:s,trackLeap:M,getThumbStyle:E}=Ht(c({},x,{rootRef:a}));x.marked=i.length>0&&i.some(h=>h.label),x.dragging=n,x.focusedThumbIndex=r;const p=Qt(x),$=(l=(d=b==null?void 0:b.root)!=null?d:g.Root)!=null?l:Kt,ae=(L=(C=b==null?void 0:b.rail)!=null?C:g.Rail)!=null?L:Ut,Ze=(m=(f=b==null?void 0:b.track)!=null?f:g.Track)!=null?m:Wt,et=(K=(ne=b==null?void 0:b.thumb)!=null?ne:g.Thumb)!=null?K:Xt,tt=(U=(Q=b==null?void 0:b.valueLabel)!=null?Q:g.ValueLabel)!=null?U:qt,je=(fe=(le=b==null?void 0:b.mark)!=null?le:g.Mark)!=null?fe:Gt,Oe=(z=(se=b==null?void 0:b.markLabel)!=null?se:g.MarkLabel)!=null?z:Jt,rt=(be=(me=b==null?void 0:b.input)!=null?me:g.Input)!=null?be:"input",De=(V=v==null?void 0:v.root)!=null?V:R.root,ft=(W=v==null?void 0:v.rail)!=null?W:R.rail,Ye=(j=v==null?void 0:v.track)!=null?j:R.track,Be=(ve=v==null?void 0:v.thumb)!=null?ve:R.thumb,Ke=(O=v==null?void 0:v.valueLabel)!=null?O:R.valueLabel,bt=(ie=v==null?void 0:v.mark)!=null?ie:R.mark,mt=(ue=v==null?void 0:v.markLabel)!=null?ue:R.markLabel,vt=(X=v==null?void 0:v.input)!=null?X:R.input,ht=Y({elementType:$,getSlotProps:Ee,externalSlotProps:De,externalForwardedProps:Ne,additionalProps:c({},jt($)&&{as:ce}),ownerState:c({},x,De==null?void 0:De.ownerState),className:[p.root,Ae]}),gt=Y({elementType:ae,externalSlotProps:ft,ownerState:x,className:p.rail}),yt=Y({elementType:Ze,externalSlotProps:Ye,additionalProps:{style:c({},re[de].offset(s),re[de].leap(M))},ownerState:c({},x,Ye==null?void 0:Ye.ownerState),className:p.track}),Ue=Y({elementType:et,getSlotProps:Fe,externalSlotProps:Be,ownerState:c({},x,Be==null?void 0:Be.ownerState),className:p.thumb}),kt=Y({elementType:tt,externalSlotProps:Ke,ownerState:c({},x,Ke==null?void 0:Ke.ownerState),className:p.valueLabel}),We=Y({elementType:je,externalSlotProps:bt,ownerState:x,className:p.mark}),Xe=Y({elementType:Oe,externalSlotProps:mt,ownerState:x,className:p.markLabel}),xt=Y({elementType:rt,getSlotProps:Ve,externalSlotProps:vt,ownerState:x});return P.jsxs($,c({},ht,{children:[P.jsx(ae,c({},gt)),P.jsx(Ze,c({},yt)),i.filter(h=>h.value>=te&&h.value<=ee).map((h,k)=>{const qe=_e(h.value,te,ee),Se=re[de].offset(qe);let H;return I===!1?H=u.indexOf(h.value)!==-1:H=I==="normal"&&(o?h.value>=u[0]&&h.value<=u[u.length-1]:h.value<=u[0])||I==="inverted"&&(o?h.value<=u[0]||h.value>=u[u.length-1]:h.value>=u[0]),P.jsxs(S.Fragment,{children:[P.jsx(je,c({"data-index":k},We,!Te(je)&&{markActive:H},{style:c({},Se,We.style),className:oe(We.className,H&&p.markActive)})),h.label!=null?P.jsx(Oe,c({"aria-hidden":!0,"data-index":k},Xe,!Te(Oe)&&{markLabelActive:H},{style:c({},Se,Xe.style),className:oe(p.markLabel,Xe.className,H&&p.markLabelActive),children:h.label})):null]},k)}),u.map((h,k)=>{const qe=_e(h,te,ee),Se=re[de].offset(qe),H=D==="off"?Zt:tt;return P.jsx(H,c({},!Te(H)&&{valueLabelFormat:A,valueLabelDisplay:D,value:typeof A=="function"?A(F(h),k):A,index:k,open:Qe===k||He===k||D==="on",disabled:G},kt,{children:P.jsx(et,c({"data-index":k},Ue,{className:oe(p.thumb,Ue.className,He===k&&p.active,r===k&&p.focusVisible),style:c({},Se,E(k),Ue.style),children:P.jsx(rt,c({"data-index":k,"aria-label":w?w(k):N,"aria-valuenow":F(h),"aria-labelledby":y,"aria-valuetext":ge?ge(F(h),k):q,value:u[k]},xt))}))}),k)})]}))});export{tr as S};
1
+ import{r as S,d8 as St,i2 as pe,cl as Lt,ch as at,cK as wt,cT as Ge,cU as $e,i3 as Je,aK as c,cX as Te,aE as Pt,aF as Ct,aM as oe,j as P,aG as J,aH as B,ce as ot,cd as nt,ck as lt,eG as dt,aI as $t,cS as Tt,aJ as _t,aL as Y,aN as Rt}from"./index-Cicr8_v0.js";const It={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function At(e,t,a=(l,d)=>l===d){return e.length===t.length&&e.every((l,d)=>a(l,t[d]))}const Mt=2;function pt(e,t){return e-t}function st(e,t){var a;const{index:l}=(a=e.reduce((d,L,C)=>{const m=Math.abs(t-L);return d===null||m<d.distance||m===d.distance?{distance:m,index:C}:d},null))!=null?a:{};return l}function Le(e,t){if(t.current!==void 0&&e.changedTouches){const a=e;for(let l=0;l<a.changedTouches.length;l+=1){const d=a.changedTouches[l];if(d.identifier===t.current)return{x:d.clientX,y:d.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function _e(e,t,a){return(e-t)*100/(a-t)}function zt(e,t,a){return(a-t)*e+t}function Nt(e){if(Math.abs(e)<1){const a=e.toExponential().split("e-"),l=a[0].split(".")[1];return(l?l.length:0)+parseInt(a[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function Et(e,t,a){const l=Math.round((e-a)/t)*t+a;return Number(l.toFixed(Nt(t)))}function it({values:e,newValue:t,index:a}){const l=e.slice();return l[a]=t,l.sort(pt)}function we({sliderRef:e,activeIndex:t,setActive:a}){var l,d;const L=$e(e.current);if(!((l=e.current)!=null&&l.contains(L.activeElement))||Number(L==null||(d=L.activeElement)==null?void 0:d.getAttribute("data-index"))!==t){var C;(C=e.current)==null||C.querySelector(`[type="range"][data-index="${t}"]`).focus()}a&&a(t)}function Pe(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?At(e,t):!1}const Vt={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Ft=e=>e;let Ce;function ut(){return Ce===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Ce=CSS.supports("touch-action","none"):Ce=!0),Ce}function Ht(e){const{"aria-labelledby":t,defaultValue:a,disabled:l=!1,disableSwap:d=!1,isRtl:L=!1,marks:C=!1,max:m=100,min:f=0,name:K,onChange:ne,onChangeCommitted:U,orientation:Q="horizontal",rootRef:fe,scale:le=Ft,step:z=1,shiftStep:se=10,tabIndex:be,value:me}=e,V=S.useRef(),[X,j]=S.useState(-1),[ve,O]=S.useState(-1),[ie,ue]=S.useState(!1),W=S.useRef(0),[_,Z]=St({controlled:me,default:a??f,name:"Slider"}),N=ne&&((r,o,n)=>{const i=r.nativeEvent||r,u=new i.constructor(i.type,i);Object.defineProperty(u,"target",{writable:!0,value:{value:o,name:K}}),ne(u,o,n)}),q=Array.isArray(_);let y=q?_.slice().sort(pt):[_];y=y.map(r=>r==null?f:pe(r,f,m));const ce=C===!0&&z!==null?[...Array(Math.floor((m-f)/z)+1)].map((r,o)=>({value:f+z*o})):C||[],g=ce.map(r=>r.value),{isFocusVisibleRef:R,onBlur:Re,onFocus:Ie,ref:Ae}=Lt(),[he,G]=S.useState(-1),w=S.useRef(),ge=at(Ae,w),ye=at(fe,ge),ee=r=>o=>{var n;const i=Number(o.currentTarget.getAttribute("data-index"));Ie(o),R.current===!0&&G(i),O(i),r==null||(n=r.onFocus)==null||n.call(r,o)},te=r=>o=>{var n;Re(o),R.current===!1&&G(-1),O(-1),r==null||(n=r.onBlur)==null||n.call(r,o)},ke=(r,o)=>{const n=Number(r.currentTarget.getAttribute("data-index")),i=y[n],u=g.indexOf(i);let s=o;if(ce&&z==null){const M=g[g.length-1];s>M?s=M:s<g[0]?s=g[0]:s=s<i?g[u-1]:g[u+1]}if(s=pe(s,f,m),q){d&&(s=pe(s,y[n-1]||-1/0,y[n+1]||1/0));const M=s;s=it({values:y,newValue:s,index:n});let E=n;d||(E=s.indexOf(M)),we({sliderRef:w,activeIndex:E})}Z(s),G(n),N&&!Pe(s,_)&&N(r,s,n),U&&U(r,s)},Me=r=>o=>{var n;if(z!==null){const i=Number(o.currentTarget.getAttribute("data-index")),u=y[i];let s=null;(o.key==="ArrowLeft"||o.key==="ArrowDown")&&o.shiftKey||o.key==="PageDown"?s=Math.max(u-se,f):((o.key==="ArrowRight"||o.key==="ArrowUp")&&o.shiftKey||o.key==="PageUp")&&(s=Math.min(u+se,m)),s!==null&&(ke(o,s),o.preventDefault())}r==null||(n=r.onKeyDown)==null||n.call(r,o)};wt(()=>{if(l&&w.current.contains(document.activeElement)){var r;(r=document.activeElement)==null||r.blur()}},[l]),l&&X!==-1&&j(-1),l&&he!==-1&&G(-1);const ze=r=>o=>{var n;(n=r.onChange)==null||n.call(r,o),ke(o,o.target.valueAsNumber)},xe=S.useRef();let F=Q;L&&Q==="horizontal"&&(F+="-reverse");const v=({finger:r,move:o=!1})=>{const{current:n}=w,{width:i,height:u,bottom:s,left:M}=n.getBoundingClientRect();let E;F.indexOf("vertical")===0?E=(s-r.y)/u:E=(r.x-M)/i,F.indexOf("-reverse")!==-1&&(E=1-E);let p;if(p=zt(E,f,m),z)p=Et(p,z,f);else{const ae=st(g,p);p=g[ae]}p=pe(p,f,m);let $=0;if(q){o?$=xe.current:$=st(y,p),d&&(p=pe(p,y[$-1]||-1/0,y[$+1]||1/0));const ae=p;p=it({values:y,newValue:p,index:$}),d&&o||($=p.indexOf(ae),xe.current=$)}return{newValue:p,activeIndex:$}},b=Ge(r=>{const o=Le(r,V);if(!o)return;if(W.current+=1,r.type==="mousemove"&&r.buttons===0){I(r);return}const{newValue:n,activeIndex:i}=v({finger:o,move:!0});we({sliderRef:w,activeIndex:i,setActive:j}),Z(n),!ie&&W.current>Mt&&ue(!0),N&&!Pe(n,_)&&N(r,n,i)}),I=Ge(r=>{const o=Le(r,V);if(ue(!1),!o)return;const{newValue:n}=v({finger:o,move:!0});j(-1),r.type==="touchend"&&O(-1),U&&U(r,n),V.current=void 0,A()}),D=Ge(r=>{if(l)return;ut()||r.preventDefault();const o=r.changedTouches[0];o!=null&&(V.current=o.identifier);const n=Le(r,V);if(n!==!1){const{newValue:u,activeIndex:s}=v({finger:n});we({sliderRef:w,activeIndex:s,setActive:j}),Z(u),N&&!Pe(u,_)&&N(r,u,s)}W.current=0;const i=$e(w.current);i.addEventListener("touchmove",b,{passive:!0}),i.addEventListener("touchend",I,{passive:!0})}),A=S.useCallback(()=>{const r=$e(w.current);r.removeEventListener("mousemove",b),r.removeEventListener("mouseup",I),r.removeEventListener("touchmove",b),r.removeEventListener("touchend",I)},[I,b]);S.useEffect(()=>{const{current:r}=w;return r.addEventListener("touchstart",D,{passive:ut()}),()=>{r.removeEventListener("touchstart",D),A()}},[A,D]),S.useEffect(()=>{l&&A()},[l,A]);const Ne=r=>o=>{var n;if((n=r.onMouseDown)==null||n.call(r,o),l||o.defaultPrevented||o.button!==0)return;o.preventDefault();const i=Le(o,V);if(i!==!1){const{newValue:s,activeIndex:M}=v({finger:i});we({sliderRef:w,activeIndex:M,setActive:j}),Z(s),N&&!Pe(s,_)&&N(o,s,M)}W.current=0;const u=$e(w.current);u.addEventListener("mousemove",b,{passive:!0}),u.addEventListener("mouseup",I)},x=_e(q?y[0]:f,f,m),re=_e(y[y.length-1],f,m)-x,Ee=(r={})=>{const o=Je(r),n={onMouseDown:Ne(o||{})},i=c({},o,n);return c({},r,{ref:ye},i)},Ve=r=>o=>{var n;(n=r.onMouseOver)==null||n.call(r,o);const i=Number(o.currentTarget.getAttribute("data-index"));O(i)},Fe=r=>o=>{var n;(n=r.onMouseLeave)==null||n.call(r,o),O(-1)};return{active:X,axis:F,axisProps:Vt,dragging:ie,focusedThumbIndex:he,getHiddenInputProps:(r={})=>{var o;const n=Je(r),i={onChange:ze(n||{}),onFocus:ee(n||{}),onBlur:te(n||{}),onKeyDown:Me(n||{})},u=c({},n,i);return c({tabIndex:be,"aria-labelledby":t,"aria-orientation":Q,"aria-valuemax":le(m),"aria-valuemin":le(f),name:K,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(o=e.step)!=null?o:void 0,disabled:l},r,u,{style:c({},It,{direction:L?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Ee,getThumbProps:(r={})=>{const o=Je(r),n={onMouseOver:Ve(o||{}),onMouseLeave:Fe(o||{})};return c({},r,o,n)},marks:ce,open:ve,range:q,rootRef:ye,trackLeap:re,trackOffset:x,values:y,getThumbStyle:r=>({pointerEvents:X!==-1&&X!==r?"none":void 0})}}const jt=e=>!e||!Te(e);function Ot(e){return Ct("MuiSlider",e)}const T=Pt("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Dt=e=>{const{open:t}=e;return{offset:oe(t&&T.valueLabelOpen),circle:T.valueLabelCircle,label:T.valueLabelLabel}};function Yt(e){const{children:t,className:a,value:l}=e,d=Dt(e);return t?S.cloneElement(t,{className:oe(t.props.className)},P.jsxs(S.Fragment,{children:[t.props.children,P.jsx("span",{className:oe(d.offset,a),"aria-hidden":!0,children:P.jsx("span",{className:d.circle,children:P.jsx("span",{className:d.label,children:l})})})]})):null}const Bt=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function ct(e){return e}const Kt=J("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,t[`color${B(a.color)}`],a.size!=="medium"&&t[`size${B(a.size)}`],a.marked&&t.marked,a.orientation==="vertical"&&t.vertical,a.track==="inverted"&&t.trackInverted,a.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${T.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${T.dragging}`]:{[`& .${T.thumb}, & .${T.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(a=>{var l;return((l=e.vars)!=null?l:e).palette[a].main}).map(a=>({props:{color:a},style:{color:(e.vars||e).palette[a].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),Ut=J("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),Xt=J("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(a=>{var l;return((l=e.vars)!=null?l:e).palette[a].main}).map(a=>({props:{color:a,track:"inverted"},style:c({},e.vars?{backgroundColor:e.vars.palette.Slider[`${a}Track`],borderColor:e.vars.palette.Slider[`${a}Track`]}:c({backgroundColor:ot(e.palette[a].main,.62),borderColor:ot(e.palette[a].main,.62)},e.applyStyles("dark",{backgroundColor:nt(e.palette[a].main,.5)}),e.applyStyles("dark",{borderColor:nt(e.palette[a].main,.5)})))}))]}}),Wt=J("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.thumb,t[`thumbColor${B(a.color)}`],a.size!=="medium"&&t[`thumbSize${B(a.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${T.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(a=>{var l;return((l=e.vars)!=null?l:e).palette[a].main}).map(a=>({props:{color:a},style:{[`&:hover, &.${T.focusVisible}`]:c({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[a].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${lt(e.palette[a].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${T.active}`]:c({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[a].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${lt(e.palette[a].main,.16)}`})}}))]}}),qt=J(Yt,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>c({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${T.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${T.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),Gt=J("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>dt(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:a}=e;return[t.mark,a&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),Jt=J("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>dt(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>c({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),Qt=e=>{const{disabled:t,dragging:a,marked:l,orientation:d,track:L,classes:C,color:m,size:f}=e,K={root:["root",t&&"disabled",a&&"dragging",l&&"marked",d==="vertical"&&"vertical",L==="inverted"&&"trackInverted",L===!1&&"trackFalse",m&&`color${B(m)}`,f&&`size${B(f)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",f&&`thumbSize${B(f)}`,m&&`thumbColor${B(m)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Rt(K,Ot,C)},Zt=({children:e})=>e,tr=S.forwardRef(function(t,a){var l,d,L,C,m,f,K,ne,U,Q,fe,le,z,se,be,me,V,X,j,ve,O,ie,ue,W;const _=$t({props:t,name:"MuiSlider"}),Z=Tt(),{"aria-label":N,"aria-valuetext":q,"aria-labelledby":y,component:ce="span",components:g={},componentsProps:R={},color:Re="primary",classes:Ie,className:Ae,disableSwap:he=!1,disabled:G=!1,getAriaLabel:w,getAriaValueText:ge,marks:ye=!1,max:ee=100,min:te=0,orientation:ke="horizontal",shiftStep:Me=10,size:ze="medium",step:xe=1,scale:F=ct,slotProps:v,slots:b,track:I="normal",valueLabelDisplay:D="off",valueLabelFormat:A=ct}=_,Ne=_t(_,Bt),x=c({},_,{isRtl:Z,max:ee,min:te,classes:Ie,disabled:G,disableSwap:he,orientation:ke,marks:ye,color:Re,size:ze,step:xe,shiftStep:Me,scale:F,track:I,valueLabelDisplay:D,valueLabelFormat:A}),{axisProps:re,getRootProps:Ee,getHiddenInputProps:Ve,getThumbProps:Fe,open:Qe,active:He,axis:de,focusedThumbIndex:r,range:o,dragging:n,marks:i,values:u,trackOffset:s,trackLeap:M,getThumbStyle:E}=Ht(c({},x,{rootRef:a}));x.marked=i.length>0&&i.some(h=>h.label),x.dragging=n,x.focusedThumbIndex=r;const p=Qt(x),$=(l=(d=b==null?void 0:b.root)!=null?d:g.Root)!=null?l:Kt,ae=(L=(C=b==null?void 0:b.rail)!=null?C:g.Rail)!=null?L:Ut,Ze=(m=(f=b==null?void 0:b.track)!=null?f:g.Track)!=null?m:Xt,et=(K=(ne=b==null?void 0:b.thumb)!=null?ne:g.Thumb)!=null?K:Wt,tt=(U=(Q=b==null?void 0:b.valueLabel)!=null?Q:g.ValueLabel)!=null?U:qt,je=(fe=(le=b==null?void 0:b.mark)!=null?le:g.Mark)!=null?fe:Gt,Oe=(z=(se=b==null?void 0:b.markLabel)!=null?se:g.MarkLabel)!=null?z:Jt,rt=(be=(me=b==null?void 0:b.input)!=null?me:g.Input)!=null?be:"input",De=(V=v==null?void 0:v.root)!=null?V:R.root,ft=(X=v==null?void 0:v.rail)!=null?X:R.rail,Ye=(j=v==null?void 0:v.track)!=null?j:R.track,Be=(ve=v==null?void 0:v.thumb)!=null?ve:R.thumb,Ke=(O=v==null?void 0:v.valueLabel)!=null?O:R.valueLabel,bt=(ie=v==null?void 0:v.mark)!=null?ie:R.mark,mt=(ue=v==null?void 0:v.markLabel)!=null?ue:R.markLabel,vt=(W=v==null?void 0:v.input)!=null?W:R.input,ht=Y({elementType:$,getSlotProps:Ee,externalSlotProps:De,externalForwardedProps:Ne,additionalProps:c({},jt($)&&{as:ce}),ownerState:c({},x,De==null?void 0:De.ownerState),className:[p.root,Ae]}),gt=Y({elementType:ae,externalSlotProps:ft,ownerState:x,className:p.rail}),yt=Y({elementType:Ze,externalSlotProps:Ye,additionalProps:{style:c({},re[de].offset(s),re[de].leap(M))},ownerState:c({},x,Ye==null?void 0:Ye.ownerState),className:p.track}),Ue=Y({elementType:et,getSlotProps:Fe,externalSlotProps:Be,ownerState:c({},x,Be==null?void 0:Be.ownerState),className:p.thumb}),kt=Y({elementType:tt,externalSlotProps:Ke,ownerState:c({},x,Ke==null?void 0:Ke.ownerState),className:p.valueLabel}),Xe=Y({elementType:je,externalSlotProps:bt,ownerState:x,className:p.mark}),We=Y({elementType:Oe,externalSlotProps:mt,ownerState:x,className:p.markLabel}),xt=Y({elementType:rt,getSlotProps:Ve,externalSlotProps:vt,ownerState:x});return P.jsxs($,c({},ht,{children:[P.jsx(ae,c({},gt)),P.jsx(Ze,c({},yt)),i.filter(h=>h.value>=te&&h.value<=ee).map((h,k)=>{const qe=_e(h.value,te,ee),Se=re[de].offset(qe);let H;return I===!1?H=u.indexOf(h.value)!==-1:H=I==="normal"&&(o?h.value>=u[0]&&h.value<=u[u.length-1]:h.value<=u[0])||I==="inverted"&&(o?h.value<=u[0]||h.value>=u[u.length-1]:h.value>=u[0]),P.jsxs(S.Fragment,{children:[P.jsx(je,c({"data-index":k},Xe,!Te(je)&&{markActive:H},{style:c({},Se,Xe.style),className:oe(Xe.className,H&&p.markActive)})),h.label!=null?P.jsx(Oe,c({"aria-hidden":!0,"data-index":k},We,!Te(Oe)&&{markLabelActive:H},{style:c({},Se,We.style),className:oe(p.markLabel,We.className,H&&p.markLabelActive),children:h.label})):null]},k)}),u.map((h,k)=>{const qe=_e(h,te,ee),Se=re[de].offset(qe),H=D==="off"?Zt:tt;return P.jsx(H,c({},!Te(H)&&{valueLabelFormat:A,valueLabelDisplay:D,value:typeof A=="function"?A(F(h),k):A,index:k,open:Qe===k||He===k||D==="on",disabled:G},kt,{children:P.jsx(et,c({"data-index":k},Ue,{className:oe(p.thumb,Ue.className,He===k&&p.active,r===k&&p.focusVisible),style:c({},Se,E(k),Ue.style),children:P.jsx(rt,c({"data-index":k,"aria-label":w?w(k):N,"aria-valuenow":F(h),"aria-labelledby":y,"aria-valuetext":ge?ge(F(h),k):q,value:u[k]},xt))}))}),k)})]}))});export{tr as S};
@@ -1 +1 @@
1
- import{dk as b,dl as F,aK as h,dm as v,dn as d,dp as T,dq as D,dr as M,r as p,ds as B,aJ as G,j as N,aM as E,dt as O,aN as U,aF as _,du as k,aG as $,aI as A}from"./index-CES_wWCV.js";const I=["component","direction","spacing","divider","children","className","useFlexGap"],L=b(),q=F("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,s)=>s.root});function J(e){return O({props:e,name:"MuiStack",defaultTheme:L})}function K(e,s){const n=p.Children.toArray(e).filter(Boolean);return n.reduce((a,c,t)=>(a.push(c),t<n.length-1&&a.push(p.cloneElement(s,{key:`separator-${t}`})),a),[])}const W=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],z=({ownerState:e,theme:s})=>{let n=h({display:"flex",flexDirection:"column"},v({theme:s},d({values:e.direction,breakpoints:s.breakpoints.values}),a=>({flexDirection:a})));if(e.spacing){const a=T(s),c=Object.keys(s.breakpoints.values).reduce((o,r)=>((typeof e.spacing=="object"&&e.spacing[r]!=null||typeof e.direction=="object"&&e.direction[r]!=null)&&(o[r]=!0),o),{}),t=d({values:e.direction,base:c}),m=d({values:e.spacing,base:c});typeof t=="object"&&Object.keys(t).forEach((o,r,i)=>{if(!t[o]){const u=r>0?t[i[r-1]]:"column";t[o]=u}}),n=D(n,v({theme:s},m,(o,r)=>e.useFlexGap?{gap:k(a,o)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${W(r?t[r]:e.direction)}`]:k(a,o)}}))}return n=M(s.breakpoints,n),n};function H(e={}){const{createStyledComponent:s=q,useThemeProps:n=J,componentName:a="MuiStack"}=e,c=()=>U({root:["root"]},o=>_(a,o),{}),t=s(z);return p.forwardRef(function(o,r){const i=n(o),l=B(i),{component:u="div",direction:x="column",spacing:j=0,divider:y,children:g,className:P,useFlexGap:C=!1}=l,S=G(l,I),R={direction:x,spacing:j,useFlexGap:C},V=c();return N.jsx(t,h({as:u,ownerState:R,ref:r,className:E(V.root,P)},S,{children:y?K(g,y):g}))})}const X=H({createStyledComponent:$("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,s)=>s.root}),useThemeProps:e=>A({props:e,name:"MuiStack"})});export{X as S};
1
+ import{dk as b,dl as F,aK as h,dm as v,dn as d,dp as T,dq as D,dr as M,r as p,ds as B,aJ as G,j as N,aM as E,dt as O,aN as U,aF as _,du as k,aG as $,aI as A}from"./index-Cicr8_v0.js";const I=["component","direction","spacing","divider","children","className","useFlexGap"],L=b(),q=F("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,s)=>s.root});function J(e){return O({props:e,name:"MuiStack",defaultTheme:L})}function K(e,s){const n=p.Children.toArray(e).filter(Boolean);return n.reduce((a,c,t)=>(a.push(c),t<n.length-1&&a.push(p.cloneElement(s,{key:`separator-${t}`})),a),[])}const W=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],z=({ownerState:e,theme:s})=>{let n=h({display:"flex",flexDirection:"column"},v({theme:s},d({values:e.direction,breakpoints:s.breakpoints.values}),a=>({flexDirection:a})));if(e.spacing){const a=T(s),c=Object.keys(s.breakpoints.values).reduce((o,r)=>((typeof e.spacing=="object"&&e.spacing[r]!=null||typeof e.direction=="object"&&e.direction[r]!=null)&&(o[r]=!0),o),{}),t=d({values:e.direction,base:c}),m=d({values:e.spacing,base:c});typeof t=="object"&&Object.keys(t).forEach((o,r,i)=>{if(!t[o]){const u=r>0?t[i[r-1]]:"column";t[o]=u}}),n=D(n,v({theme:s},m,(o,r)=>e.useFlexGap?{gap:k(a,o)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${W(r?t[r]:e.direction)}`]:k(a,o)}}))}return n=M(s.breakpoints,n),n};function H(e={}){const{createStyledComponent:s=q,useThemeProps:n=J,componentName:a="MuiStack"}=e,c=()=>U({root:["root"]},o=>_(a,o),{}),t=s(z);return p.forwardRef(function(o,r){const i=n(o),l=B(i),{component:u="div",direction:x="column",spacing:j=0,divider:y,children:g,className:P,useFlexGap:C=!1}=l,S=G(l,I),R={direction:x,spacing:j,useFlexGap:C},V=c();return N.jsx(t,h({as:u,ownerState:R,ref:r,className:E(V.root,P)},S,{children:y?K(g,y):g}))})}const X=H({createStyledComponent:$("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,s)=>s.root}),useThemeProps:e=>A({props:e,name:"MuiStack"})});export{X as S,H as c};
@@ -1 +1 @@
1
- import{r as v,aF as w,aE as U,aG as S,aK as s,aI as _,aJ as W,j as i,aM as P,aN as k,at as H,cx as B,aH as V}from"./index-CES_wWCV.js";const T=v.createContext({}),E=v.createContext({});function G(e){return w("MuiStep",e)}U("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const J=["active","children","className","component","completed","disabled","expanded","index","last"],K=e=>{const{classes:t,orientation:o,alternativeLabel:n,completed:a}=e;return k({root:["root",o,n&&"alternativeLabel",a&&"completed"]},G,t)},q=S("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})(({ownerState:e})=>s({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),he=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStep"}),{active:a,children:r,className:u,component:c="div",completed:p,disabled:b,expanded:d=!1,index:l,last:m}=n,R=W(n,J),{activeStep:h,connector:L,alternativeLabel:y,orientation:I,nonLinear:M}=v.useContext(T);let[x=!1,N=!1,f=!1]=[a,p,b];h===l?x=a!==void 0?a:!0:!M&&h>l?N=p!==void 0?p:!0:!M&&h<l&&(f=b!==void 0?b:!0);const j=v.useMemo(()=>({index:l,last:m,expanded:d,icon:l+1,active:x,completed:N,disabled:f}),[l,m,d,x,N,f]),C=s({},n,{active:x,orientation:I,alternativeLabel:y,completed:N,disabled:f,expanded:d,component:c}),$=K(C),z=i.jsxs(q,s({as:c,className:P($.root,u),ref:o,ownerState:C},R,{children:[L&&y&&l!==0?L:null,r]}));return i.jsx(E.Provider,{value:j,children:L&&!y&&l!==0?i.jsxs(v.Fragment,{children:[L,z]}):z})}),O=H(i.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),Q=H(i.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function X(e){return w("MuiStepIcon",e)}const A=U("MuiStepIcon",["root","active","completed","error","text"]);var F;const Y=["active","className","completed","error","icon"],Z=e=>{const{classes:t,active:o,completed:n,error:a}=e;return k({root:["root",o&&"active",n&&"completed",a&&"error"],text:["text"]},X,t)},D=S(B,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${A.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${A.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${A.error}`]:{color:(e.vars||e).palette.error.main}})),ee=S("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),te=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepIcon"}),{active:a=!1,className:r,completed:u=!1,error:c=!1,icon:p}=n,b=W(n,Y),d=s({},n,{active:a,completed:u,error:c}),l=Z(d);if(typeof p=="number"||typeof p=="string"){const m=P(r,l.root);return c?i.jsx(D,s({as:Q,className:m,ref:o,ownerState:d},b)):u?i.jsx(D,s({as:O,className:m,ref:o,ownerState:d},b)):i.jsxs(D,s({className:m,ref:o,ownerState:d},b,{children:[F||(F=i.jsx("circle",{cx:"12",cy:"12",r:"12"})),i.jsx(ee,{className:l.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:d,children:p})]}))}return p});function oe(e){return w("MuiStepLabel",e)}const g=U("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),ne=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],ae=e=>{const{classes:t,orientation:o,active:n,completed:a,error:r,disabled:u,alternativeLabel:c}=e;return k({root:["root",o,r&&"error",u&&"disabled",c&&"alternativeLabel"],label:["label",n&&"active",a&&"completed",r&&"error",u&&"disabled",c&&"alternativeLabel"],iconContainer:["iconContainer",n&&"active",a&&"completed",r&&"error",u&&"disabled",c&&"alternativeLabel"],labelContainer:["labelContainer",c&&"alternativeLabel"]},oe,t)},re=S("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation]]}})(({ownerState:e})=>s({display:"flex",alignItems:"center",[`&.${g.alternativeLabel}`]:{flexDirection:"column"},[`&.${g.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),le=S("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>s({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${g.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${g.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${g.alternativeLabel}`]:{marginTop:16},[`&.${g.error}`]:{color:(e.vars||e).palette.error.main}})),se=S("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${g.alternativeLabel}`]:{paddingRight:0}})),ie=S("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${g.alternativeLabel}`]:{textAlign:"center"}})),ce=v.forwardRef(function(t,o){var n;const a=_({props:t,name:"MuiStepLabel"}),{children:r,className:u,componentsProps:c={},error:p=!1,icon:b,optional:d,slotProps:l={},StepIconComponent:m,StepIconProps:R}=a,h=W(a,ne),{alternativeLabel:L,orientation:y}=v.useContext(T),{active:I,disabled:M,completed:x,icon:N}=v.useContext(E),f=b||N;let j=m;f&&!j&&(j=te);const C=s({},a,{active:I,alternativeLabel:L,completed:x,disabled:M,error:p,orientation:y}),$=ae(C),z=(n=l.label)!=null?n:c.label;return i.jsxs(re,s({className:P($.root,u),ref:o,ownerState:C},h,{children:[f||j?i.jsx(se,{className:$.iconContainer,ownerState:C,children:i.jsx(j,s({completed:x,active:I,error:p,icon:f},R))}):null,i.jsxs(ie,{className:$.labelContainer,ownerState:C,children:[r?i.jsx(le,s({ownerState:C},z,{className:P($.label,z==null?void 0:z.className),children:r})):null,d]})]}))});ce.muiName="StepLabel";function pe(e){return w("MuiStepConnector",e)}U("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const de=["className"],ve=e=>{const{classes:t,orientation:o,alternativeLabel:n,active:a,completed:r,disabled:u}=e,c={root:["root",o,n&&"alternativeLabel",a&&"active",r&&"completed",u&&"disabled"],line:["line",`line${V(o)}`]};return k(c,pe,t)},ue=S("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})(({ownerState:e})=>s({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),be=S("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.line,t[`line${V(o.orientation)}`]]}})(({ownerState:e,theme:t})=>{const o=t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600];return s({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:o},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),me=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepConnector"}),{className:a}=n,r=W(n,de),{alternativeLabel:u,orientation:c="horizontal"}=v.useContext(T),{active:p,disabled:b,completed:d}=v.useContext(E),l=s({},n,{alternativeLabel:u,orientation:c,active:p,completed:d,disabled:b}),m=ve(l);return i.jsx(ue,s({className:P(m.root,a),ref:o,ownerState:l},r,{children:i.jsx(be,{className:m.line,ownerState:l})}))});function xe(e){return w("MuiStepper",e)}U("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const Se=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],Le=e=>{const{orientation:t,nonLinear:o,alternativeLabel:n,classes:a}=e;return k({root:["root",t,o&&"nonLinear",n&&"alternativeLabel"]},xe,a)},fe=S("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.nonLinear&&t.nonLinear]}})(({ownerState:e})=>s({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),Ce=i.jsx(me,{}),ye=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepper"}),{activeStep:a=0,alternativeLabel:r=!1,children:u,className:c,component:p="div",connector:b=Ce,nonLinear:d=!1,orientation:l="horizontal"}=n,m=W(n,Se),R=s({},n,{nonLinear:d,alternativeLabel:r,orientation:l,component:p}),h=Le(R),L=v.Children.toArray(u).filter(Boolean),y=L.map((M,x)=>v.cloneElement(M,s({index:x,last:x+1===L.length},M.props))),I=v.useMemo(()=>({activeStep:a,alternativeLabel:r,connector:b,nonLinear:d,orientation:l}),[a,r,b,d,l]);return i.jsx(T.Provider,{value:I,children:i.jsx(fe,s({as:p,ownerState:R,className:P(h.root,c),ref:o},m,{children:y}))})});export{ye as S,he as a,ce as b,E as c,T as d};
1
+ import{r as v,aF as w,aE as U,aG as S,aK as s,aI as _,aJ as W,j as i,aM as P,aN as k,at as H,cx as B,aH as V}from"./index-Cicr8_v0.js";const T=v.createContext({}),E=v.createContext({});function G(e){return w("MuiStep",e)}U("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const J=["active","children","className","component","completed","disabled","expanded","index","last"],K=e=>{const{classes:t,orientation:o,alternativeLabel:n,completed:a}=e;return k({root:["root",o,n&&"alternativeLabel",a&&"completed"]},G,t)},q=S("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})(({ownerState:e})=>s({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),he=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStep"}),{active:a,children:r,className:u,component:c="div",completed:p,disabled:b,expanded:d=!1,index:l,last:m}=n,R=W(n,J),{activeStep:h,connector:L,alternativeLabel:y,orientation:I,nonLinear:M}=v.useContext(T);let[x=!1,N=!1,f=!1]=[a,p,b];h===l?x=a!==void 0?a:!0:!M&&h>l?N=p!==void 0?p:!0:!M&&h<l&&(f=b!==void 0?b:!0);const j=v.useMemo(()=>({index:l,last:m,expanded:d,icon:l+1,active:x,completed:N,disabled:f}),[l,m,d,x,N,f]),C=s({},n,{active:x,orientation:I,alternativeLabel:y,completed:N,disabled:f,expanded:d,component:c}),$=K(C),z=i.jsxs(q,s({as:c,className:P($.root,u),ref:o,ownerState:C},R,{children:[L&&y&&l!==0?L:null,r]}));return i.jsx(E.Provider,{value:j,children:L&&!y&&l!==0?i.jsxs(v.Fragment,{children:[L,z]}):z})}),O=H(i.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),Q=H(i.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function X(e){return w("MuiStepIcon",e)}const A=U("MuiStepIcon",["root","active","completed","error","text"]);var F;const Y=["active","className","completed","error","icon"],Z=e=>{const{classes:t,active:o,completed:n,error:a}=e;return k({root:["root",o&&"active",n&&"completed",a&&"error"],text:["text"]},X,t)},D=S(B,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${A.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${A.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${A.error}`]:{color:(e.vars||e).palette.error.main}})),ee=S("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),te=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepIcon"}),{active:a=!1,className:r,completed:u=!1,error:c=!1,icon:p}=n,b=W(n,Y),d=s({},n,{active:a,completed:u,error:c}),l=Z(d);if(typeof p=="number"||typeof p=="string"){const m=P(r,l.root);return c?i.jsx(D,s({as:Q,className:m,ref:o,ownerState:d},b)):u?i.jsx(D,s({as:O,className:m,ref:o,ownerState:d},b)):i.jsxs(D,s({className:m,ref:o,ownerState:d},b,{children:[F||(F=i.jsx("circle",{cx:"12",cy:"12",r:"12"})),i.jsx(ee,{className:l.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:d,children:p})]}))}return p});function oe(e){return w("MuiStepLabel",e)}const g=U("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),ne=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],ae=e=>{const{classes:t,orientation:o,active:n,completed:a,error:r,disabled:u,alternativeLabel:c}=e;return k({root:["root",o,r&&"error",u&&"disabled",c&&"alternativeLabel"],label:["label",n&&"active",a&&"completed",r&&"error",u&&"disabled",c&&"alternativeLabel"],iconContainer:["iconContainer",n&&"active",a&&"completed",r&&"error",u&&"disabled",c&&"alternativeLabel"],labelContainer:["labelContainer",c&&"alternativeLabel"]},oe,t)},re=S("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation]]}})(({ownerState:e})=>s({display:"flex",alignItems:"center",[`&.${g.alternativeLabel}`]:{flexDirection:"column"},[`&.${g.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),le=S("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>s({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${g.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${g.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${g.alternativeLabel}`]:{marginTop:16},[`&.${g.error}`]:{color:(e.vars||e).palette.error.main}})),se=S("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${g.alternativeLabel}`]:{paddingRight:0}})),ie=S("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${g.alternativeLabel}`]:{textAlign:"center"}})),ce=v.forwardRef(function(t,o){var n;const a=_({props:t,name:"MuiStepLabel"}),{children:r,className:u,componentsProps:c={},error:p=!1,icon:b,optional:d,slotProps:l={},StepIconComponent:m,StepIconProps:R}=a,h=W(a,ne),{alternativeLabel:L,orientation:y}=v.useContext(T),{active:I,disabled:M,completed:x,icon:N}=v.useContext(E),f=b||N;let j=m;f&&!j&&(j=te);const C=s({},a,{active:I,alternativeLabel:L,completed:x,disabled:M,error:p,orientation:y}),$=ae(C),z=(n=l.label)!=null?n:c.label;return i.jsxs(re,s({className:P($.root,u),ref:o,ownerState:C},h,{children:[f||j?i.jsx(se,{className:$.iconContainer,ownerState:C,children:i.jsx(j,s({completed:x,active:I,error:p,icon:f},R))}):null,i.jsxs(ie,{className:$.labelContainer,ownerState:C,children:[r?i.jsx(le,s({ownerState:C},z,{className:P($.label,z==null?void 0:z.className),children:r})):null,d]})]}))});ce.muiName="StepLabel";function pe(e){return w("MuiStepConnector",e)}U("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const de=["className"],ve=e=>{const{classes:t,orientation:o,alternativeLabel:n,active:a,completed:r,disabled:u}=e,c={root:["root",o,n&&"alternativeLabel",a&&"active",r&&"completed",u&&"disabled"],line:["line",`line${V(o)}`]};return k(c,pe,t)},ue=S("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})(({ownerState:e})=>s({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),be=S("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.line,t[`line${V(o.orientation)}`]]}})(({ownerState:e,theme:t})=>{const o=t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600];return s({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:o},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),me=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepConnector"}),{className:a}=n,r=W(n,de),{alternativeLabel:u,orientation:c="horizontal"}=v.useContext(T),{active:p,disabled:b,completed:d}=v.useContext(E),l=s({},n,{alternativeLabel:u,orientation:c,active:p,completed:d,disabled:b}),m=ve(l);return i.jsx(ue,s({className:P(m.root,a),ref:o,ownerState:l},r,{children:i.jsx(be,{className:m.line,ownerState:l})}))});function xe(e){return w("MuiStepper",e)}U("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const Se=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],Le=e=>{const{orientation:t,nonLinear:o,alternativeLabel:n,classes:a}=e;return k({root:["root",t,o&&"nonLinear",n&&"alternativeLabel"]},xe,a)},fe=S("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.nonLinear&&t.nonLinear]}})(({ownerState:e})=>s({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),Ce=i.jsx(me,{}),ye=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepper"}),{activeStep:a=0,alternativeLabel:r=!1,children:u,className:c,component:p="div",connector:b=Ce,nonLinear:d=!1,orientation:l="horizontal"}=n,m=W(n,Se),R=s({},n,{nonLinear:d,alternativeLabel:r,orientation:l,component:p}),h=Le(R),L=v.Children.toArray(u).filter(Boolean),y=L.map((M,x)=>v.cloneElement(M,s({index:x,last:x+1===L.length},M.props))),I=v.useMemo(()=>({activeStep:a,alternativeLabel:r,connector:b,nonLinear:d,orientation:l}),[a,r,b,d,l]);return i.jsx(T.Provider,{value:I,children:i.jsx(fe,s({as:p,ownerState:R,className:P(h.root,c),ref:o},m,{children:y}))})});export{ye as S,he as a,ce as b,E as c,T as d};
@@ -1 +1 @@
1
- import{aE as q,aF as N,aG as S,aH as $,aK as a,r as L,aI as U,aJ as _,j as i,aM as E,aN as B,d9 as se}from"./index-CES_wWCV.js";import{F as ae}from"./FormControl-vM9EJwp4.js";import{I as le}from"./InputLabel-snet_z2M.js";import{S as ie,a as ne,F as de,O as ce}from"./Select-D8wgZEYi.js";import{u as ue,f as pe}from"./useFormControl-BXRE7Su9.js";function me(e){return N("MuiFormHelperText",e)}const j=q("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var w;const fe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],xe=e=>{const{classes:o,contained:r,size:s,disabled:n,error:d,filled:c,focused:p,required:u}=e,t={root:["root",n&&"disabled",d&&"error",s&&`size${$(s)}`,r&&"contained",p&&"focused",c&&"filled",u&&"required"]};return B(t,me,o)},Fe=S("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:r}=e;return[o.root,r.size&&o[`size${$(r.size)}`],r.contained&&o.contained,r.filled&&o.filled]}})(({theme:e,ownerState:o})=>a({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${j.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${j.error}`]:{color:(e.vars||e).palette.error.main}},o.size==="small"&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})),be=L.forwardRef(function(o,r){const s=U({props:o,name:"MuiFormHelperText"}),{children:n,className:d,component:c="p"}=s,p=_(s,fe),u=ue(),t=pe({props:s,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),m=a({},s,{component:c,contained:t.variant==="filled"||t.variant==="outlined",variant:t.variant,size:t.size,disabled:t.disabled,error:t.error,filled:t.filled,focused:t.focused,required:t.required}),F=xe(m);return i.jsx(Fe,a({as:c,ownerState:m,className:E(F.root,d),ref:r},p,{children:n===" "?w||(w=i.jsx("span",{className:"notranslate",children:"​"})):n}))});function ve(e){return N("MuiTextField",e)}const Pe=q("MuiTextField",["root"]),Te=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],he={standard:ne,filled:de,outlined:ce},ge=e=>{const{classes:o}=e;return B({root:["root"]},ve,o)},Ce=S(ae,{name:"MuiTextField",slot:"Root",overridesResolver:(e,o)=>o.root})({}),Me=L.forwardRef(function(o,r){const s=U({props:o,name:"MuiTextField"}),{autoComplete:n,autoFocus:d=!1,children:c,className:p,color:u="primary",defaultValue:t,disabled:m=!1,error:F=!1,FormHelperTextProps:O,fullWidth:T=!1,helperText:h,id:W,InputLabelProps:b,inputProps:k,InputProps:V,inputRef:A,label:f,maxRows:D,minRows:G,multiline:R=!1,name:J,onBlur:K,onChange:Q,onFocus:X,placeholder:Y,required:y=!1,rows:Z,select:g=!1,SelectProps:C,type:ee,value:z,variant:v="outlined"}=s,oe=_(s,Te),H=a({},s,{autoFocus:d,color:u,disabled:m,error:F,fullWidth:T,multiline:R,required:y,select:g,variant:v}),te=ge(H),x={};v==="outlined"&&(b&&typeof b.shrink<"u"&&(x.notched=b.shrink),x.label=f),g&&((!C||!C.native)&&(x.id=void 0),x["aria-describedby"]=void 0);const l=se(W),I=h&&l?`${l}-helper-text`:void 0,P=f&&l?`${l}-label`:void 0,re=he[v],M=i.jsx(re,a({"aria-describedby":I,autoComplete:n,autoFocus:d,defaultValue:t,fullWidth:T,multiline:R,name:J,rows:Z,maxRows:D,minRows:G,type:ee,value:z,id:l,inputRef:A,onBlur:K,onChange:Q,onFocus:X,placeholder:Y,inputProps:k},x,V));return i.jsxs(Ce,a({className:E(te.root,p),disabled:m,error:F,fullWidth:T,ref:r,required:y,color:u,variant:v,ownerState:H},oe,{children:[f!=null&&f!==""&&i.jsx(le,a({htmlFor:l,id:P},b,{children:f})),g?i.jsx(ie,a({"aria-describedby":I,id:l,labelId:P,value:z,input:M},C,{children:c})):M,h&&i.jsx(be,a({id:I},O,{children:h}))]}))});export{be as F,Me as T,ve as g,Pe as t};
1
+ import{aE as q,aF as N,aG as S,aH as $,aK as a,r as L,aI as U,aJ as _,j as i,aM as E,aN as B,d9 as se}from"./index-Cicr8_v0.js";import{F as ae}from"./FormControl-CVE9WL7K.js";import{I as le}from"./InputLabel-RH2D4KPR.js";import{S as ie,a as ne,F as de,O as ce}from"./Select-BjqrbqwY.js";import{u as ue,f as pe}from"./useFormControl-581SE09O.js";function me(e){return N("MuiFormHelperText",e)}const j=q("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var w;const fe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],xe=e=>{const{classes:o,contained:r,size:s,disabled:n,error:d,filled:c,focused:p,required:u}=e,t={root:["root",n&&"disabled",d&&"error",s&&`size${$(s)}`,r&&"contained",p&&"focused",c&&"filled",u&&"required"]};return B(t,me,o)},Fe=S("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:r}=e;return[o.root,r.size&&o[`size${$(r.size)}`],r.contained&&o.contained,r.filled&&o.filled]}})(({theme:e,ownerState:o})=>a({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${j.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${j.error}`]:{color:(e.vars||e).palette.error.main}},o.size==="small"&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})),be=L.forwardRef(function(o,r){const s=U({props:o,name:"MuiFormHelperText"}),{children:n,className:d,component:c="p"}=s,p=_(s,fe),u=ue(),t=pe({props:s,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),m=a({},s,{component:c,contained:t.variant==="filled"||t.variant==="outlined",variant:t.variant,size:t.size,disabled:t.disabled,error:t.error,filled:t.filled,focused:t.focused,required:t.required}),F=xe(m);return i.jsx(Fe,a({as:c,ownerState:m,className:E(F.root,d),ref:r},p,{children:n===" "?w||(w=i.jsx("span",{className:"notranslate",children:"​"})):n}))});function ve(e){return N("MuiTextField",e)}const Pe=q("MuiTextField",["root"]),Te=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],he={standard:ne,filled:de,outlined:ce},ge=e=>{const{classes:o}=e;return B({root:["root"]},ve,o)},Ce=S(ae,{name:"MuiTextField",slot:"Root",overridesResolver:(e,o)=>o.root})({}),Me=L.forwardRef(function(o,r){const s=U({props:o,name:"MuiTextField"}),{autoComplete:n,autoFocus:d=!1,children:c,className:p,color:u="primary",defaultValue:t,disabled:m=!1,error:F=!1,FormHelperTextProps:O,fullWidth:T=!1,helperText:h,id:W,InputLabelProps:b,inputProps:k,InputProps:V,inputRef:A,label:f,maxRows:D,minRows:G,multiline:R=!1,name:J,onBlur:K,onChange:Q,onFocus:X,placeholder:Y,required:y=!1,rows:Z,select:g=!1,SelectProps:C,type:ee,value:z,variant:v="outlined"}=s,oe=_(s,Te),H=a({},s,{autoFocus:d,color:u,disabled:m,error:F,fullWidth:T,multiline:R,required:y,select:g,variant:v}),te=ge(H),x={};v==="outlined"&&(b&&typeof b.shrink<"u"&&(x.notched=b.shrink),x.label=f),g&&((!C||!C.native)&&(x.id=void 0),x["aria-describedby"]=void 0);const l=se(W),I=h&&l?`${l}-helper-text`:void 0,P=f&&l?`${l}-label`:void 0,re=he[v],M=i.jsx(re,a({"aria-describedby":I,autoComplete:n,autoFocus:d,defaultValue:t,fullWidth:T,multiline:R,name:J,rows:Z,maxRows:D,minRows:G,type:ee,value:z,id:l,inputRef:A,onBlur:K,onChange:Q,onFocus:X,placeholder:Y,inputProps:k},x,V));return i.jsxs(Ce,a({className:E(te.root,p),disabled:m,error:F,fullWidth:T,ref:r,required:y,color:u,variant:v,ownerState:H},oe,{children:[f!=null&&f!==""&&i.jsx(le,a({htmlFor:l,id:P},b,{children:f})),g?i.jsx(ie,a({"aria-describedby":I,id:l,labelId:P,value:z,input:M},C,{children:c})):M,h&&i.jsx(be,a({id:I},O,{children:h}))]}))});export{be as F,Me as T,ve as g,Pe as t};
@@ -1 +1 @@
1
- import{aF as d,aE as g,aG as b,aK as e,r as m,aI as v,aJ as f,j as x,aM as T,aN as R}from"./index-CES_wWCV.js";function C(s){return d("MuiToolbar",s)}const N=g("MuiToolbar",["root","gutters","regular","dense"]),G=["className","component","disableGutters","variant"],M=s=>{const{classes:a,disableGutters:t,variant:o}=s;return R({root:["root",!t&&"gutters",o]},C,a)},j=b("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(s,a)=>{const{ownerState:t}=s;return[a.root,!t.disableGutters&&a.gutters,a[t.variant]]}})(({theme:s,ownerState:a})=>e({position:"relative",display:"flex",alignItems:"center"},!a.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}},a.variant==="dense"&&{minHeight:48}),({theme:s,ownerState:a})=>a.variant==="regular"&&s.mixins.toolbar),U=m.forwardRef(function(a,t){const o=v({props:a,name:"MuiToolbar"}),{className:r,component:n="div",disableGutters:l=!1,variant:c="regular"}=o,u=f(o,G),i=e({},o,{component:n,disableGutters:l,variant:c}),p=M(i);return x.jsx(j,e({as:n,className:T(p.root,r),ref:t,ownerState:i},u))});export{U as T,C as g,N as t};
1
+ import{aF as d,aE as g,aG as b,aK as e,r as m,aI as v,aJ as f,j as x,aM as T,aN as R}from"./index-Cicr8_v0.js";function C(s){return d("MuiToolbar",s)}const N=g("MuiToolbar",["root","gutters","regular","dense"]),G=["className","component","disableGutters","variant"],M=s=>{const{classes:a,disableGutters:t,variant:o}=s;return R({root:["root",!t&&"gutters",o]},C,a)},j=b("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(s,a)=>{const{ownerState:t}=s;return[a.root,!t.disableGutters&&a.gutters,a[t.variant]]}})(({theme:s,ownerState:a})=>e({position:"relative",display:"flex",alignItems:"center"},!a.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}},a.variant==="dense"&&{minHeight:48}),({theme:s,ownerState:a})=>a.variant==="regular"&&s.mixins.toolbar),U=m.forwardRef(function(a,t){const o=v({props:a,name:"MuiToolbar"}),{className:r,component:n="div",disableGutters:l=!1,variant:c="regular"}=o,u=f(o,G),i=e({},o,{component:n,disableGutters:l,variant:c}),p=M(i);return x.jsx(j,e({as:n,className:T(p.root,r),ref:t,ownerState:i},u))});export{U as T,C as g,N as t};
@@ -1 +1 @@
1
- import{X as r,Y as t,j as a}from"./index-CES_wWCV.js";var e={},i=t;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,o=i(r()),d=a;u=e.default=(0,o.default)((0,d.jsx)("path",{d:"m23 12-2.44-2.79.34-3.69-3.61-.82-1.89-3.2L12 2.96 8.6 1.5 6.71 4.69 3.1 5.5l.34 3.7L1 12l2.44 2.79-.34 3.7 3.61.82L8.6 22.5l3.4-1.47 3.4 1.46 1.89-3.19 3.61-.82-.34-3.69zm-12.91 4.72-3.8-3.81 1.48-1.48 2.32 2.33 5.85-5.87 1.48 1.48z"}),"Verified");export{u as d};
1
+ import{X as r,Y as t,j as a}from"./index-Cicr8_v0.js";var e={},i=t;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,o=i(r()),d=a;u=e.default=(0,o.default)((0,d.jsx)("path",{d:"m23 12-2.44-2.79.34-3.69-3.61-.82-1.89-3.2L12 2.96 8.6 1.5 6.71 4.69 3.1 5.5l.34 3.7L1 12l2.44 2.79-.34 3.7 3.61.82L8.6 22.5l3.4-1.47 3.4 1.46 1.89-3.19 3.61-.82-.34-3.69zm-12.91 4.72-3.8-3.81 1.48-1.48 2.32 2.33 5.85-5.87 1.48 1.48z"}),"Verified");export{u as d};
@@ -1 +1 @@
1
- import{X as e,Y as a,j as r}from"./index-CES_wWCV.js";var t={},l=a;Object.defineProperty(t,"__esModule",{value:!0});var o=t.default=void 0,d=l(e()),i=r;o=t.default=(0,d.default)((0,i.jsx)("path",{d:"M19 13H5v-2h14z"}),"Remove");var u={},s=a;Object.defineProperty(u,"__esModule",{value:!0});var f=u.default=void 0,_=s(e()),n=r;f=u.default=(0,_.default)((0,n.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");var v={},p=a;Object.defineProperty(v,"__esModule",{value:!0});var m=v.default=void 0,j=p(e()),R=r;m=v.default=(0,j.default)((0,R.jsx)("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}),"ViewColumn");export{u as C,t as R,v as V,m as a,o as b,f as d};
1
+ import{X as e,Y as a,j as r}from"./index-Cicr8_v0.js";var t={},l=a;Object.defineProperty(t,"__esModule",{value:!0});var o=t.default=void 0,d=l(e()),i=r;o=t.default=(0,d.default)((0,i.jsx)("path",{d:"M19 13H5v-2h14z"}),"Remove");var u={},s=a;Object.defineProperty(u,"__esModule",{value:!0});var f=u.default=void 0,_=s(e()),n=r;f=u.default=(0,_.default)((0,n.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");var v={},p=a;Object.defineProperty(v,"__esModule",{value:!0});var m=v.default=void 0,j=p(e()),R=r;m=v.default=(0,j.default)((0,R.jsx)("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}),"ViewColumn");export{u as C,t as R,v as V,m as a,o as b,f as d};
@@ -1 +1 @@
1
- import{X as t,Y as r,j as a}from"./index-CES_wWCV.js";var e={},i=r;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,v=i(t()),o=a;u=e.default=(0,v.default)((0,o.jsx)("path",{d:"M3 14h4v-4H3zm0 5h4v-4H3zM3 9h4V5H3zm5 5h13v-4H8zm0 5h13v-4H8zM8 5v4h13V5z"}),"ViewList");export{u as d};
1
+ import{X as t,Y as r,j as a}from"./index-Cicr8_v0.js";var e={},i=r;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,v=i(t()),o=a;u=e.default=(0,v.default)((0,o.jsx)("path",{d:"M3 14h4v-4H3zm0 5h4v-4H3zM3 9h4V5H3zm5 5h13v-4H8zm0 5h13v-4H8zM8 5v4h13V5z"}),"ViewList");export{u as d};
@@ -0,0 +1,13 @@
1
+ import{aj as E,u as h,r as l,ak as L,a8 as N,G as o,j as e,B as d,P as g,Z as I,a6 as j,t as y}from"./index-Cicr8_v0.js";import{A as O}from"./config-Cpoq5q2q.js";import{P}from"./page-header-CDbgUvxH.js";import{S as R}from"./layout-CeB8tvZm.js";import{S as b}from"./step-actions-oojkqr2w.js";import{S as v}from"./button-qSDF0MHZ.js";import{F as T}from"./FormControl-CVE9WL7K.js";import{R as Y,a as B}from"./RadioGroup-BZc2gQ3J.js";import{F as D}from"./FormControlLabel-DYWd7TcF.js";import"./content-layout-4m3OHN99.js";import"./useFormControl-581SE09O.js";import"./FormGroup-DdQz-TwB.js";import"./Stack-BpqXnyM6.js";function C({onNext:s}){const S=E(),{t:c,locale:m}=h(),[i,n]=l.useState(!1),[f,p]=l.useState(""),{blocklet:r}=L();l.useEffect(()=>{var a;const t=N.findServiceFromMeta(r.meta,o.NODE_SERVICES.AUTH);p(((a=t==null?void 0:t.config)==null?void 0:a.whoCanAccess)||o.WHO_CAN_ACCESS.ALL)},[r]);const u=async t=>{let a=o.ACCESS_POLICY_PUBLIC;t===o.WHO_CAN_ACCESS.ALL?a=o.ACCESS_POLICY_PUBLIC:t===o.WHO_CAN_ACCESS.INVITED?a=o.ACCESS_POLICY_INVITED_ONLY:t===o.WHO_CAN_ACCESS.OWNER?a=o.ACCESS_POLICY_OWNER_ONLY:t===o.WHO_CAN_ACCESS.ADMIN&&(a=o.ACCESS_POLICY_ADMIN_ONLY);try{n(!0),await j.updateBlockletSecurityRule({input:{did:r.meta.did,data:{id:o.SECURITY_RULE_DEFAULT_ID,accessPolicyId:a}}}),n(!1)}catch(A){n(!1),y.error(A.message)}},x=async t=>{i||(p(t.target.value),await u(t.target.value))},_={marginRight:4,fontSize:18,verticalAlign:"text-bottom",color:S.palette.text.secondary};return e.jsxs(H,{children:[e.jsx("div",{className:"header",children:e.jsx(P,{title:c("blocklet.config.access.description")})}),e.jsx(T,{component:"fieldset",children:e.jsx(Y,{name:"inherit",value:f,onChange:x,children:O.map(t=>e.jsxs(d,{sx:{mb:2},children:[e.jsx(D,{value:t.value,control:e.jsx(B,{size:"small",color:"primary"}),label:e.jsxs("span",{children:[e.jsx(t.icon,{style:_}),t.title[m]]})}),e.jsx(d,{className:"tip",children:t.description[m]})]},t.value))})}),e.jsx(b,{mt:8,disabled:i,blocklet:r,onStartNow:()=>s("complete"),children:e.jsx(v,{loading:i,variant:"contained",disabled:i,onClick:()=>s(),children:c("setup.continue")})})]})}C.propTypes={onNext:g.func};C.defaultProps={onNext:()=>{}};const H=I(R)`
2
+ height: 100%;
3
+ overflow-y: auto;
4
+ .header {
5
+ width: 100%;
6
+ }
7
+ .tip {
8
+ margin-left: 32px;
9
+ font-size: 12px;
10
+ margin-top: -8px;
11
+ color: ${s=>s.theme.palette.text.secondary};
12
+ }
13
+ `;export{C as default};
@@ -1 +1 @@
1
- import{r as c,j as a,aC as P,aR as E,aS as v,aT as I,P as p,Z as T}from"./index-CES_wWCV.js";import{d as C}from"./MoreHoriz-CCaXi0-D.js";import{L as D,a as b}from"./Delete-FZyEAOwe.js";function l({actions:u,size:m,...d}){const[n,r]=c.useState(null),f=!!n,y=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}r(t.currentTarget)},e=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}r(null)};return a.jsxs(k,{...d,children:[a.jsx(P,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"actions-menu-icon",onClick:y,size:m,children:a.jsx(C,{})}),a.jsx(E,{id:"actions-menu","data-cy":"actions-menu",anchorEl:n,keepMounted:!0,open:f,onClose:e,slotProps:{paper:{}},children:u.map((t,s)=>{if(typeof t=="function")return t({close:e});if(t.separator)return a.jsx(v,{},`separator-${s}`);const{icon:h,text:x,render:z,onClick:o,disabled:j=!1,...g}=t;return c.createElement(I,{...g,disabled:j,dense:!0,onClick:async i=>{i.stopPropagation(),await(o==null?void 0:o(i)),e()},key:s,"data-cy":`actions-menu-${s}`},a.jsx(D,{style:{minWidth:24,marginRight:8},children:h}),a.jsx(b,{primary:x}))})})]})}l.propTypes={actions:p.array,size:p.oneOf(["small","medium","large"])};l.defaultProps={actions:[],size:"small"};const k=T.div``;export{l as A};
1
+ import{r as c,j as a,aC as P,aR as E,aS as v,aT as I,P as p,Z as T}from"./index-Cicr8_v0.js";import{d as C}from"./MoreHoriz-BihREYOu.js";import{L as D,a as b}from"./Delete-C1RI7dqa.js";function l({actions:u,size:m,...d}){const[n,r]=c.useState(null),f=!!n,y=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}r(t.currentTarget)},e=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}r(null)};return a.jsxs(k,{...d,children:[a.jsx(P,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"actions-menu-icon",onClick:y,size:m,children:a.jsx(C,{})}),a.jsx(E,{id:"actions-menu","data-cy":"actions-menu",anchorEl:n,keepMounted:!0,open:f,onClose:e,slotProps:{paper:{}},children:u.map((t,s)=>{if(typeof t=="function")return t({close:e});if(t.separator)return a.jsx(v,{},`separator-${s}`);const{icon:h,text:x,render:z,onClick:o,disabled:j=!1,...g}=t;return c.createElement(I,{...g,disabled:j,dense:!0,onClick:async i=>{i.stopPropagation(),await(o==null?void 0:o(i)),e()},key:s,"data-cy":`actions-menu-${s}`},a.jsx(D,{style:{minWidth:24,marginRight:8},children:h}),a.jsx(b,{primary:x}))})})]})}l.propTypes={actions:p.array,size:p.oneOf(["small","medium","large"])};l.defaultProps={actions:[],size:"small"};const k=T.div``;export{l as A};