@abtnode/blocklet-services 1.16.30 → 1.16.31-beta-4246ab25

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 (197) hide show
  1. package/api/libs/connect/session.js +365 -374
  2. package/api/routes/federated.js +13 -1
  3. package/api/routes/oauth.js +10 -4
  4. package/api/routes/user-session.js +1 -1
  5. package/api/routes/user.js +14 -24
  6. package/api/services/auth/connect/issue-passport.js +2 -1
  7. package/api/services/auth/connect/login.js +2 -1
  8. package/api/util/federated.js +1 -1
  9. package/api/validators/login.js +3 -0
  10. package/dist/assets/{Add-DV9cHTiI.js → Add-CtuOts08.js} +1 -1
  11. package/dist/assets/{AddBox-DjGRetT1.js → AddBox-BEozRxtr.js} +1 -1
  12. package/dist/assets/{Alert-BriK3hjA.js → Alert-C8bmV94C.js} +1 -1
  13. package/dist/assets/{ArrowDropDown-DX29Pf8V.js → ArrowDropDown-BXgf18Oe.js} +1 -1
  14. package/dist/assets/{Avatar-CpQhQmV4.js → Avatar-BFetDMjX.js} +1 -1
  15. package/dist/assets/{ButtonGroup-BPdi_2z2.js → ButtonGroup-4rs4O4kq.js} +1 -1
  16. package/dist/assets/{CheckCircle-DwkE-k6U.js → CheckCircle-DTVdjeqk.js} +1 -1
  17. package/dist/assets/{ChevronRight-BHXal2s_.js → ChevronRight-DJc4PiWZ.js} +1 -1
  18. package/dist/assets/{Close-BtG4tyUL.js → Close-CQy5q5kE.js} +1 -1
  19. package/dist/assets/CloseOutlined-9hT_S7vV.js +1 -0
  20. package/dist/assets/{Delete-rvy-F0hT.js → Delete-v2KnFPpc.js} +1 -1
  21. package/dist/assets/{DeleteOutline-C36lJe42.js → DeleteOutline-D-H_BT5g.js} +1 -1
  22. package/dist/assets/{Done-n1c-sUsw.js → Done-Cg0F76Fb.js} +1 -1
  23. package/dist/assets/{Download-DuCZFVPl.js → Download-xUlajQ0m.js} +1 -1
  24. package/dist/assets/{Edit-BrAk9NBL.js → Edit-CLeS4wAm.js} +1 -1
  25. package/dist/assets/{EditIcon-CPgYqcwg.js → EditIcon-Bv8uXQxv.js} +1 -1
  26. package/dist/assets/{Error-g7gK9Wfp.js → Error-ke6eGotz.js} +1 -1
  27. package/dist/assets/{ExpandMore-DpLFPsWa.js → ExpandMore-C2VxPPft.js} +1 -1
  28. package/dist/assets/{FilterList-BpmYd7MC.js → FilterList-Bm69psLt.js} +1 -1
  29. package/dist/assets/{FormControl-Dq6XW9kS.js → FormControl-BsXCFEZS.js} +1 -1
  30. package/dist/assets/{FormControlLabel-CQnpTkDU.js → FormControlLabel-DImktg38.js} +1 -1
  31. package/dist/assets/{FormGroup-C8sAhYQk.js → FormGroup-DaX4v3-4.js} +1 -1
  32. package/dist/assets/{Google-C3cw6Unp.js → Google-TWzgXpTH.js} +1 -1
  33. package/dist/assets/{Hidden-c0nvbE8_.js → Hidden-cGmlvPpU.js} +1 -1
  34. package/dist/assets/{InfoOutlined-DEt-KJ8v.js → InfoOutlined-B8pG85_Z.js} +1 -1
  35. package/dist/assets/{InputAdornment-Dr1oU3Hs.js → InputAdornment-C6qOb1bH.js} +1 -1
  36. package/dist/assets/{InputLabel-DYr7To9X.js → InputLabel-CgXPR_2f.js} +1 -1
  37. package/dist/assets/{LastPage-DV14H4DC.js → LastPage-DJY3kolG.js} +1 -1
  38. package/dist/assets/{Launch-DSSRxyd1.js → Launch-CMhSFuNV.js} +1 -1
  39. package/dist/assets/{LaunchOutlined-DOGa7uCZ.js → LaunchOutlined-DSyzpk6k.js} +1 -1
  40. package/dist/assets/{Link-BzeSWqDp.js → Link-DOOEUv0s.js} +1 -1
  41. package/dist/assets/{ListItemText-BWMpM4cA.js → ListItemText-EkATTCYw.js} +1 -1
  42. package/dist/assets/{LoadingButton-IrsPdnhT.js → LoadingButton-Cbp2GFzD.js} +1 -1
  43. package/dist/assets/{LockIcon-Cx_TySkG.js → LockIcon-BEU0_8Ic.js} +1 -1
  44. package/dist/assets/{Loop-CSmyyk97.js → Loop-BueHJmrR.js} +1 -1
  45. package/dist/assets/{MoreHoriz-B_IgZ_Tw.js → MoreHoriz-Drbf_Pvd.js} +1 -1
  46. package/dist/assets/{MoreVert-BQD92YJp.js → MoreVert-C7sQuxig.js} +1 -1
  47. package/dist/assets/{OpenInNew-Ba4HupG6.js → OpenInNew-C4QXGxL_.js} +1 -1
  48. package/dist/assets/{Pagination-g_z2fX8D.js → Pagination-B8kJW6gb.js} +1 -1
  49. package/dist/assets/{PlayArrow-CvyM0yMY.js → PlayArrow-CYrln-Kc.js} +1 -1
  50. package/dist/assets/{QuestionMarkCircle-B_wELYAO.js → QuestionMarkCircle-DTOYeWeD.js} +1 -1
  51. package/dist/assets/{RadioGroup-BSqtRWJR.js → RadioGroup-CmTDruGg.js} +1 -1
  52. package/dist/assets/{Search-D_9DtKpx.js → Search-CZ97KNMp.js} +1 -1
  53. package/dist/assets/{Select-CMM8MR9i.js → Select-CiXWOKZU.js} +1 -1
  54. package/dist/assets/{ServerLogo-Ds39xok2.js → ServerLogo-Cr53R7IJ.js} +1 -1
  55. package/dist/assets/{Skeleton-d-rA8WB_.js → Skeleton-HvFaI-R8.js} +1 -1
  56. package/dist/assets/{Slider-Cv9IlmAx.js → Slider-BUNOUzy3.js} +1 -1
  57. package/dist/assets/{Stepper-X4KYPIVJ.js → Stepper-B-zipvzv.js} +1 -1
  58. package/dist/assets/{TextField-BYelVRF_.js → TextField-Cb2e0-k4.js} +1 -1
  59. package/dist/assets/{Toolbar-DI2YKZS2.js → Toolbar-CmSNHGuN.js} +1 -1
  60. package/dist/assets/{ViewList-DWZsPuDR.js → ViewList-DzP1BYln.js} +1 -1
  61. package/dist/assets/{access-control-Deg0Ez_v.js → access-control-fQTJIcIl.js} +1 -1
  62. package/dist/assets/{actions-Dv2KmWA_.js → actions-Db7l4CqQ.js} +1 -1
  63. package/dist/assets/add-component-core-DkGv9RyG.js +979 -0
  64. package/dist/assets/{add-resource-B2YCggbD.js → add-resource-B8-Fd7hl.js} +1 -1
  65. package/dist/assets/{addon-B-L0-6EM.js → addon-D3OhbJEi.js} +1 -1
  66. package/dist/assets/{analytics-B3U8I3AQ.js → analytics-BNwjU7d3.js} +1 -1
  67. package/dist/assets/api-8rjdlHSp.js +1 -0
  68. package/dist/assets/{audit-logs-Dt1zBSaX.js → audit-logs-CxzQNS32.js} +1 -1
  69. package/dist/assets/{button-BotQVFjI.js → button-BSfqa6UD.js} +1 -1
  70. package/dist/assets/click-to-copy-DdF2xqop.js +1 -0
  71. package/dist/assets/{complete-BfHgp0O7.js → complete-DvEcFSqc.js} +2 -2
  72. package/dist/assets/{component-BziFLYA3.js → component-B8W7o8FZ.js} +1 -1
  73. package/dist/assets/{config-BqLTd80Y.js → config-D7luuyWR.js} +1 -1
  74. package/dist/assets/{config-navigation-1U4iVdBl.js → config-navigation-asIRdIHI.js} +1 -1
  75. package/dist/assets/{config-BcfULTik.js → config-qbPWLYt1.js} +2 -2
  76. package/dist/assets/{confirm-BWW215hi.js → confirm-BMHhcHat.js} +1 -1
  77. package/dist/assets/{connect-CfBbqaTr.js → connect-BiWyubdJ.js} +1 -1
  78. package/dist/assets/{connect-DC7BGJJv.js → connect-hN5_Shp6.js} +1 -1
  79. package/dist/assets/{connect-to-CHo6hM6n.js → connect-to-DfkUklQ5.js} +1 -1
  80. package/dist/assets/{content-layout-BP4bsvx7.js → content-layout-DiWC1J4K.js} +1 -1
  81. package/dist/assets/{dashboard-BWG8DtF1.js → dashboard-XyLI0qCZ.js} +3 -3
  82. package/dist/assets/{did-address-TSZ5XRBj.js → did-address-DpvI-gvi.js} +1 -1
  83. package/dist/assets/{domain-B0bCdxTC.js → domain-BSIv0NhM.js} +1 -1
  84. package/dist/assets/{domain-list-A5SqLbLS.js → domain-list-DuyWKGsk.js} +2 -2
  85. package/dist/assets/{exchange-passport-CBjbwwA6.js → exchange-passport-texx7vZK.js} +1 -1
  86. package/dist/assets/{fallback-Dz8ZuYD5.js → fallback-BwmWTfvT.js} +1 -1
  87. package/dist/assets/{format-error-DQS9AwZv.js → format-error-Cly-PKJi.js} +1 -1
  88. package/dist/assets/{fuel-BP12PtJ1.js → fuel-CxlptVAT.js} +1 -1
  89. package/dist/assets/{fullpage-DXFbt1Ve.js → fullpage-BS2tcmjR.js} +1 -1
  90. package/dist/assets/{home-Cx9PAId-.js → home--VzEOnFl.js} +1 -1
  91. package/dist/assets/{iframe-CO-VEhes.js → iframe-DlpSvIZn.js} +1 -1
  92. package/dist/assets/{index-CFQwbx1S.js → index-B2WTvZE_.js} +1 -1
  93. package/dist/assets/{index-D-GkMvG_.js → index-B3lhXfcq.js} +1 -1
  94. package/dist/assets/{index-COZKzHiS.js → index-B4CQ80Yw.js} +1 -1
  95. package/dist/assets/{index-BcFOSrVl.js → index-B4uw4r9c.js} +1 -1
  96. package/dist/assets/{index-VIHj0M7P.js → index-B5nEIEWt.js} +1 -1
  97. package/dist/assets/{index-CQU16qpp.js → index-B8xBf8Wa.js} +1 -1
  98. package/dist/assets/{index-ByYl1QnH.js → index-BB6k-EGG.js} +1 -1
  99. package/dist/assets/{index-zQvc8SIq.js → index-BDMqvDjm.js} +1 -1
  100. package/dist/assets/{index-DCMTEGgZ.js → index-BIzJJSjX.js} +1 -1
  101. package/dist/assets/{index-B0wa_Sca.js → index-BKSYmDJM.js} +1 -1
  102. package/dist/assets/{index-BmHPL-9s.js → index-BTAdP21P.js} +3 -3
  103. package/dist/assets/{index-46Rvg-Bo.js → index-BoqN1cez.js} +1 -1
  104. package/dist/assets/{index-MoRwjSwP.js → index-BqSFfNnu.js} +1 -1
  105. package/dist/assets/index-BquWLMx9.js +262 -0
  106. package/dist/assets/{index-B5Pm_bPi.js → index-C1caLcNJ.js} +1 -1
  107. package/dist/assets/{index-D5PXuh6o.js → index-CIqhUvIF.js} +11 -11
  108. package/dist/assets/{index-D_u35EkG.js → index-CVRkgzxH.js} +6 -6
  109. package/dist/assets/{index-DtAm5Ed6.js → index-CbGiX9t1.js} +1 -1
  110. package/dist/assets/{index-BJDKEH0b.js → index-CieFHkS_.js} +5 -5
  111. package/dist/assets/{index-Bwzls06Y.js → index-Cw44iEdL.js} +1 -1
  112. package/dist/assets/{index--YUaVsoq.js → index-D1pqWkt2.js} +17 -17
  113. package/dist/assets/{index-ChpB_Xok.js → index-DCGVoYKL.js} +1 -1
  114. package/dist/assets/index-DEPlCG8R.js +16 -0
  115. package/dist/assets/{index-B22_1WOD.js → index-DXtRwHZx.js} +1 -1
  116. package/dist/assets/{index-TTSckhl8.js → index-DiJCHCJQ.js} +1 -1
  117. package/dist/assets/{index-BqmsKa7O.js → index-DlGzjxDp.js} +1 -1
  118. package/dist/assets/{index-ozDSMBYi.js → index-DuAuh_Qj.js} +1 -1
  119. package/dist/assets/{index-BsjCwHmK.js → index-N3bV1fPM.js} +1 -1
  120. package/dist/assets/{index-DU7LqWjQ.js → index-SOr8TZG4.js} +1 -1
  121. package/dist/assets/{index-BSHfXuRt.js → index-b39g55oS.js} +1 -1
  122. package/dist/assets/index-mD8SG0jv.js +1287 -0
  123. package/dist/assets/{index-Du6azec5.js → index-pO1GnrcK.js} +1 -1
  124. package/dist/assets/{index.es-CYl4P_xg.js → index.es-Dn-9AeYW.js} +1 -1
  125. package/dist/assets/{index.esm-DDyWFyUp.js → index.esm-BoTu77Ll.js} +1 -1
  126. package/dist/assets/{invitation-YCFRX3K4.js → invitation-CjSjQDE9.js} +1 -1
  127. package/dist/assets/{invite-BVqEvYi7.js → invite-BqTMGcAv.js} +1 -1
  128. package/dist/assets/{issue-passport-Bt2ICeaH.js → issue-passport-C-_NcTdl.js} +1 -1
  129. package/dist/assets/{item-DmDrPoAj.js → item-BbixSUZ4.js} +1 -1
  130. package/dist/assets/{jss-plugin-props-sort.esm-B9z92TrV.js → jss-plugin-props-sort.esm-DZWDNslx.js} +1 -1
  131. package/dist/assets/{launch-result-message-DpNOYW9u.js → launch-result-message-t8NtPfuc.js} +1 -1
  132. package/dist/assets/{layout-D41GSjev.js → layout-CsM3bk7r.js} +1 -1
  133. package/dist/assets/{list-header-cw9lRKSX.js → list-header-DXbrT6CB.js} +1 -1
  134. package/dist/assets/localization-BbbfeFcx.js +1 -0
  135. package/dist/assets/{log-DVDRYSeA.js → log-BWAyxwAa.js} +1 -1
  136. package/dist/assets/login-KizuTJVS.js +1 -0
  137. package/dist/assets/{login-oauth-callback--4mls_Fw.js → login-oauth-callback-BhWnqy5G.js} +1 -1
  138. package/dist/assets/{logo-uploader-CHBeSau3.js → logo-uploader-B4fp_c-2.js} +3 -3
  139. package/dist/assets/{lost-passport-6PNRRlCd.js → lost-passport-5g_wfjCg.js} +3 -3
  140. package/dist/assets/{lottie-C16LOHrZ.js → lottie-CoQLIbP3.js} +1 -1
  141. package/dist/assets/{notifications-DHYTuxQt.js → notifications-BZOTKwjU.js} +1 -1
  142. package/dist/assets/{open-window-CEqHc-YI.js → open-window-OYk_-NDp.js} +1 -1
  143. package/dist/assets/{overview-jW78KQ6d.js → overview-BdlskfN-.js} +2 -2
  144. package/dist/assets/{page-header-Bjl7D46v.js → page-header-T1Bp_mgt.js} +1 -1
  145. package/dist/assets/{permission-BK9x4qjQ.js → permission-Bg73hR5s.js} +1 -1
  146. package/dist/assets/{preferences-4fQh6PBV.js → preferences-CWItrONZ.js} +1 -1
  147. package/dist/assets/publish-resource-Q0hqmXfS.js +1 -0
  148. package/dist/assets/{react-DCoycSH4.js → react-DXe505Vk.js} +19 -19
  149. package/dist/assets/{redux-Xix6UYN5.js → redux-t7duEter.js} +1 -1
  150. package/dist/assets/resource-dialog-BbVyEJK6.js +57 -0
  151. package/dist/assets/sdk-BsJqLCFt.js +1 -0
  152. package/dist/assets/{selector-BcHp8r2b.js → selector-G5cR85qZ.js} +1 -1
  153. package/dist/assets/session-t0W8qYc5.js +1 -0
  154. package/dist/assets/{setup-DXuWRjLR.js → setup-CokXt_nD.js} +3 -3
  155. package/dist/assets/{shorten-label-DZ5n7VkB.js → shorten-label-EXwW2h8a.js} +1 -1
  156. package/dist/assets/{slicedToArray-DiN6EoYj.js → slicedToArray-Bt_4hqVg.js} +2 -2
  157. package/dist/assets/{spaces-DBKeHx91.js → spaces-DlyQ1uJX.js} +1 -1
  158. package/dist/assets/{start-C4mLiamV.js → start-BxnAS7F4.js} +1 -1
  159. package/dist/assets/{step-actions-NyA7AGpj.js → step-actions-Dj2gkAXe.js} +1 -1
  160. package/dist/assets/{studio-CC7YQ-9Q.js → studio-B28kKr7m.js} +1 -1
  161. package/dist/assets/{switch-control-VH3u6pwk.js → switch-control-DuZuSueD.js} +1 -1
  162. package/dist/assets/{toUpper-D8eon-dl.js → toUpper-DPQf9Liw.js} +1 -1
  163. package/dist/assets/{transfer-Dp36g86n.js → transfer-Z8bjhog8.js} +1 -1
  164. package/dist/assets/{uniqBy-Cev3lMnU.js → uniqBy-Bdhm211i.js} +1 -1
  165. package/dist/assets/{unsubscribe-Be0k3pAZ.js → unsubscribe-DJEG2TOy.js} +1 -1
  166. package/dist/assets/{url-join-B-UX0vQK.js → url-join-vYtMsJoM.js} +1 -1
  167. package/dist/assets/use-blocklet-info-for-connect-did-spaces-CoBB3cqW.js +1 -0
  168. package/dist/assets/{use-mobile-BLqjm-5m.js → use-mobile-Bgh27XUZ.js} +1 -1
  169. package/dist/assets/{useAsync-PE3W-DLW.js → useAsync-BLR1bit_.js} +1 -1
  170. package/dist/assets/{useFormControl-DMGx-jdt.js → useFormControl-CJQAQwNi.js} +1 -1
  171. package/dist/assets/{useLocalStorage-eP0cInBT.js → useLocalStorage-BqRSbLpZ.js} +1 -1
  172. package/dist/assets/{useSetState-DEVLe2Fz.js → useSetState-Bgiqtk4Z.js} +1 -1
  173. package/dist/assets/{useSlot-BrU8y60n.js → useSlot-CgMgJNqB.js} +1 -1
  174. package/dist/assets/{useSlotProps-fP10cTIP.js → useSlotProps-2VUaV6ss.js} +1 -1
  175. package/dist/assets/{useThemeProps-C59Glnbx.js → useThemeProps-aetSbjSK.js} +1 -1
  176. package/dist/assets/user-center-B1Gsfz8w.js +1 -0
  177. package/dist/assets/{user-sessions-C8nlOE7U.js → user-sessions-DlIZI2bO.js} +1 -1
  178. package/dist/assets/{util-yXMDVjHb.js → util-BrJI9hcg.js} +1 -1
  179. package/dist/assets/{wrap-locale-DL11xPuS.js → wrap-locale-DSIbwxKJ.js} +1 -1
  180. package/dist/index.html +1 -1
  181. package/dist/service-worker.js +1 -1
  182. package/package.json +38 -38
  183. package/dist/assets/CloseOutlined-CYZb8eDz.js +0 -1
  184. package/dist/assets/add-component-core-CGy2QLvt.js +0 -979
  185. package/dist/assets/api-DJ1sjN9o.js +0 -1
  186. package/dist/assets/click-to-copy-C932KUDy.js +0 -1
  187. package/dist/assets/index-CTFO1wAr.js +0 -262
  188. package/dist/assets/index-CaLGv6xG.js +0 -1293
  189. package/dist/assets/index-CndSwPzI.js +0 -16
  190. package/dist/assets/localization-9mzelGR9.js +0 -1
  191. package/dist/assets/login-BLIQel5D.js +0 -1
  192. package/dist/assets/publish-resource-RsLy3V3l.js +0 -1
  193. package/dist/assets/resource-dialog-CMS1eEc0.js +0 -57
  194. package/dist/assets/sdk-B75CkXUw.js +0 -1
  195. package/dist/assets/session-AqfK0jLG.js +0 -1
  196. package/dist/assets/use-blocklet-info-for-connect-did-spaces-DF1lby8c.js +0 -1
  197. package/dist/assets/user-center-CkHZ_2ui.js +0 -1
@@ -1 +1 @@
1
- import{r as S,d1 as St,gi as pe,cl as Lt,ch as at,cE as wt,cN as Ge,cO as $e,gj as Je,aL as c,cQ as Te,aF as Pt,aG as Ct,aN as oe,j as P,aH as J,aI as B,ce as ot,cd as nt,ck as lt,eC as dt,aJ as $t,cM as Tt,aK as _t,aM as Y,aO as Rt}from"./index-CaLGv6xG.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 Ot(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,H]=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),H(i),r==null||(n=r.onFocus)==null||n.call(r,o)},te=r=>o=>{var n;Re(o),R.current===!1&&G(-1),H(-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"&&H(-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"));H(i)},Fe=r=>o=>{var n;(n=r.onMouseLeave)==null||n.call(r,o),H(-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 Ht(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,Ht,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,H,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:Oe,axis:de,focusedThumbIndex:r,range:o,dragging:n,marks:i,values:u,trackOffset:s,trackLeap:M,getThumbStyle:E}=Ot(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,He=(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=(H=v==null?void 0:v.valueLabel)!=null?H: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:He,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 O;return I===!1?O=u.indexOf(h.value)!==-1:O=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:O},{style:c({},Se,We.style),className:oe(We.className,O&&p.markActive)})),h.label!=null?P.jsx(He,c({"aria-hidden":!0,"data-index":k},Xe,!Te(He)&&{markLabelActive:O},{style:c({},Se,Xe.style),className:oe(p.markLabel,Xe.className,O&&p.markLabelActive),children:h.label})):null]},k)}),u.map((h,k)=>{const qe=_e(h,te,ee),Se=re[de].offset(qe),O=D==="off"?Zt:tt;return P.jsx(O,c({},!Te(O)&&{valueLabelFormat:A,valueLabelDisplay:D,value:typeof A=="function"?A(F(h),k):A,index:k,open:Qe===k||Oe===k||D==="on",disabled:G},kt,{children:P.jsx(et,c({"data-index":k},Ue,{className:oe(p.thumb,Ue.className,Oe===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,d1 as St,gl as pe,cl as Lt,ch as at,cE as wt,cN as Ge,cO as $e,gm as Je,aL as c,cQ as Te,aF as Pt,aG as Ct,aN as oe,j as P,aH as J,aI as B,ce as ot,cd as nt,ck as lt,eC as dt,aJ as $t,cM as Tt,aK as _t,aM as Y,aO as Rt}from"./index-mD8SG0jv.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 Ot(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,H]=S.useState(-1),[ve,j]=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),j(i),r==null||(n=r.onFocus)==null||n.call(r,o)},te=r=>o=>{var n;Re(o),R.current===!1&&G(-1),j(-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&&H(-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:H}),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});H(-1),r.type==="touchend"&&j(-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:H}),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:H}),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"));j(i)},Fe=r=>o=>{var n;(n=r.onMouseLeave)==null||n.call(r,o),j(-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 Ht=e=>!e||!Te(e);function jt(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,jt,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,H,ve,j,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:Oe,axis:de,focusedThumbIndex:r,range:o,dragging:n,marks:i,values:u,trackOffset:s,trackLeap:M,getThumbStyle:E}=Ot(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,He=(fe=(le=b==null?void 0:b.mark)!=null?le:g.Mark)!=null?fe:Gt,je=(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=(H=v==null?void 0:v.track)!=null?H:R.track,Be=(ve=v==null?void 0:v.thumb)!=null?ve:R.thumb,Ke=(j=v==null?void 0:v.valueLabel)!=null?j: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({},Ht($)&&{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:He,externalSlotProps:bt,ownerState:x,className:p.mark}),Xe=Y({elementType:je,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 O;return I===!1?O=u.indexOf(h.value)!==-1:O=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(He,c({"data-index":k},We,!Te(He)&&{markActive:O},{style:c({},Se,We.style),className:oe(We.className,O&&p.markActive)})),h.label!=null?P.jsx(je,c({"aria-hidden":!0,"data-index":k},Xe,!Te(je)&&{markLabelActive:O},{style:c({},Se,Xe.style),className:oe(p.markLabel,Xe.className,O&&p.markLabelActive),children:h.label})):null]},k)}),u.map((h,k)=>{const qe=_e(h,te,ee),Se=re[de].offset(qe),O=D==="off"?Zt:tt;return P.jsx(O,c({},!Te(O)&&{valueLabelFormat:A,valueLabelDisplay:D,value:typeof A=="function"?A(F(h),k):A,index:k,open:Qe===k||Oe===k||D==="on",disabled:G},kt,{children:P.jsx(et,c({"data-index":k},Ue,{className:oe(p.thumb,Ue.className,Oe===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{r as v,aG as w,aF as U,aH as S,aL as s,aJ as _,aK as W,j as i,aN as P,aO as k,au as H,cn as B,aI as V}from"./index-CaLGv6xG.js";const T=v.createContext({}),F=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)},O=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(O,s({as:c,className:P($.root,u),ref:o,ownerState:C},R,{children:[L&&y&&l!==0?L:null,r]}));return i.jsx(F.Provider,{value:j,children:L&&!y&&l!==0?i.jsxs(v.Fragment,{children:[L,z]}):z})}),q=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 E;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:q,className:m,ref:o,ownerState:d},b)):i.jsxs(D,s({className:m,ref:o,ownerState:d},b,{children:[E||(E=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(F),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(F),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,F as c,T as d};
1
+ import{r as v,aG as w,aF as U,aH as S,aL as s,aJ as _,aK as W,j as i,aN as P,aO as k,au as H,cn as B,aI as V}from"./index-mD8SG0jv.js";const T=v.createContext({}),F=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)},O=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(O,s({as:c,className:P($.root,u),ref:o,ownerState:C},R,{children:[L&&y&&l!==0?L:null,r]}));return i.jsx(F.Provider,{value:j,children:L&&!y&&l!==0?i.jsxs(v.Fragment,{children:[L,z]}):z})}),q=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 E;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:q,className:m,ref:o,ownerState:d},b)):i.jsxs(D,s({className:m,ref:o,ownerState:d},b,{children:[E||(E=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(F),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(F),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,F as c,T as d};
@@ -1 +1 @@
1
- import{aG as q,aF as $,aH as L,aI as N,aL as a,r as S,aJ as U,aK as _,j as i,aN as O,aO as B,d2 as re}from"./index-CaLGv6xG.js";import{F as ae}from"./FormControl-Dq6XW9kS.js";import{I as le}from"./InputLabel-DYr7To9X.js";import{S as ie,a as ne,F as de,O as ce}from"./Select-CMM8MR9i.js";import{u as ue,f as pe}from"./useFormControl-DMGx-jdt.js";function me(e){return q("MuiFormHelperText",e)}const w=$("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var M;const fe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],xe=e=>{const{classes:o,contained:t,size:r,disabled:n,error:d,filled:c,focused:p,required:u}=e,s={root:["root",n&&"disabled",d&&"error",r&&`size${N(r)}`,t&&"contained",p&&"focused",c&&"filled",u&&"required"]};return B(s,me,o)},Fe=L("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.size&&o[`size${N(t.size)}`],t.contained&&o.contained,t.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,[`&.${w.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${w.error}`]:{color:(e.vars||e).palette.error.main}},o.size==="small"&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})),be=S.forwardRef(function(o,t){const r=U({props:o,name:"MuiFormHelperText"}),{children:n,className:d,component:c="p"}=r,p=_(r,fe),u=ue(),s=pe({props:r,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),m=a({},r,{component:c,contained:s.variant==="filled"||s.variant==="outlined",variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),F=xe(m);return i.jsx(Fe,a({as:c,ownerState:m,className:O(F.root,d),ref:t},p,{children:n===" "?M||(M=i.jsx("span",{className:"notranslate",children:"​"})):n}))});function ve(e){return q("MuiTextField",e)}const Te=$("MuiTextField",["root"]),je=Te,he=["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"],Ce={standard:ne,filled:de,outlined:ce},ge=e=>{const{classes:o}=e;return B({root:["root"]},ve,o)},Ie=L(ae,{name:"MuiTextField",slot:"Root",overridesResolver:(e,o)=>o.root})({}),we=S.forwardRef(function(o,t){const r=U({props:o,name:"MuiTextField"}),{autoComplete:n,autoFocus:d=!1,children:c,className:p,color:u="primary",defaultValue:s,disabled:m=!1,error:F=!1,FormHelperTextProps:E,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:C=!1,SelectProps:g,type:ee,value:z,variant:v="outlined"}=r,oe=_(r,he),H=a({},r,{autoFocus:d,color:u,disabled:m,error:F,fullWidth:T,multiline:R,required:y,select:C,variant:v}),se=ge(H),x={};v==="outlined"&&(b&&typeof b.shrink<"u"&&(x.notched=b.shrink),x.label=f),C&&((!g||!g.native)&&(x.id=void 0),x["aria-describedby"]=void 0);const l=re(W),I=h&&l?`${l}-helper-text`:void 0,P=f&&l?`${l}-label`:void 0,te=Ce[v],j=i.jsx(te,a({"aria-describedby":I,autoComplete:n,autoFocus:d,defaultValue:s,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(Ie,a({className:O(se.root,p),disabled:m,error:F,fullWidth:T,ref:t,required:y,color:u,variant:v,ownerState:H},oe,{children:[f!=null&&f!==""&&i.jsx(le,a({htmlFor:l,id:P},b,{children:f})),C?i.jsx(ie,a({"aria-describedby":I,id:l,labelId:P,value:z,input:j},g,{children:c})):j,h&&i.jsx(be,a({id:I},E,{children:h}))]}))});export{be as F,we as T,me as a,w as f,ve as g,je as t};
1
+ import{aG as q,aF as $,aH as L,aI as N,aL as a,r as S,aJ as U,aK as _,j as i,aN as O,aO as B,d2 as re}from"./index-mD8SG0jv.js";import{F as ae}from"./FormControl-BsXCFEZS.js";import{I as le}from"./InputLabel-CgXPR_2f.js";import{S as ie,a as ne,F as de,O as ce}from"./Select-CiXWOKZU.js";import{u as ue,f as pe}from"./useFormControl-CJQAQwNi.js";function me(e){return q("MuiFormHelperText",e)}const w=$("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var M;const fe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],xe=e=>{const{classes:o,contained:t,size:r,disabled:n,error:d,filled:c,focused:p,required:u}=e,s={root:["root",n&&"disabled",d&&"error",r&&`size${N(r)}`,t&&"contained",p&&"focused",c&&"filled",u&&"required"]};return B(s,me,o)},Fe=L("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.size&&o[`size${N(t.size)}`],t.contained&&o.contained,t.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,[`&.${w.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${w.error}`]:{color:(e.vars||e).palette.error.main}},o.size==="small"&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})),be=S.forwardRef(function(o,t){const r=U({props:o,name:"MuiFormHelperText"}),{children:n,className:d,component:c="p"}=r,p=_(r,fe),u=ue(),s=pe({props:r,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),m=a({},r,{component:c,contained:s.variant==="filled"||s.variant==="outlined",variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),F=xe(m);return i.jsx(Fe,a({as:c,ownerState:m,className:O(F.root,d),ref:t},p,{children:n===" "?M||(M=i.jsx("span",{className:"notranslate",children:"​"})):n}))});function ve(e){return q("MuiTextField",e)}const Te=$("MuiTextField",["root"]),je=Te,he=["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"],Ce={standard:ne,filled:de,outlined:ce},ge=e=>{const{classes:o}=e;return B({root:["root"]},ve,o)},Ie=L(ae,{name:"MuiTextField",slot:"Root",overridesResolver:(e,o)=>o.root})({}),we=S.forwardRef(function(o,t){const r=U({props:o,name:"MuiTextField"}),{autoComplete:n,autoFocus:d=!1,children:c,className:p,color:u="primary",defaultValue:s,disabled:m=!1,error:F=!1,FormHelperTextProps:E,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:C=!1,SelectProps:g,type:ee,value:z,variant:v="outlined"}=r,oe=_(r,he),H=a({},r,{autoFocus:d,color:u,disabled:m,error:F,fullWidth:T,multiline:R,required:y,select:C,variant:v}),se=ge(H),x={};v==="outlined"&&(b&&typeof b.shrink<"u"&&(x.notched=b.shrink),x.label=f),C&&((!g||!g.native)&&(x.id=void 0),x["aria-describedby"]=void 0);const l=re(W),I=h&&l?`${l}-helper-text`:void 0,P=f&&l?`${l}-label`:void 0,te=Ce[v],j=i.jsx(te,a({"aria-describedby":I,autoComplete:n,autoFocus:d,defaultValue:s,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(Ie,a({className:O(se.root,p),disabled:m,error:F,fullWidth:T,ref:t,required:y,color:u,variant:v,ownerState:H},oe,{children:[f!=null&&f!==""&&i.jsx(le,a({htmlFor:l,id:P},b,{children:f})),C?i.jsx(ie,a({"aria-describedby":I,id:l,labelId:P,value:z,input:j},g,{children:c})):j,h&&i.jsx(be,a({id:I},E,{children:h}))]}))});export{be as F,we as T,me as a,w as f,ve as g,je as t};
@@ -1 +1 @@
1
- import{aG as d,aF as g,aH as b,aL as e,r as m,aJ as v,aK as f,j as x,aN as T,aO as C}from"./index-CaLGv6xG.js";function R(s){return d("MuiToolbar",s)}const G=g("MuiToolbar",["root","gutters","regular","dense"]),N=G,j=["className","component","disableGutters","variant"],y=s=>{const{classes:a,disableGutters:t,variant:o}=s;return C({root:["root",!t&&"gutters",o]},R,a)},L=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,j),i=e({},o,{component:n,disableGutters:l,variant:c}),p=y(i);return x.jsx(L,e({as:n,className:T(p.root,r),ref:t,ownerState:i},u))});export{U as T,R as g,N as t};
1
+ import{aG as d,aF as g,aH as b,aL as e,r as m,aJ as v,aK as f,j as x,aN as T,aO as C}from"./index-mD8SG0jv.js";function R(s){return d("MuiToolbar",s)}const G=g("MuiToolbar",["root","gutters","regular","dense"]),N=G,j=["className","component","disableGutters","variant"],y=s=>{const{classes:a,disableGutters:t,variant:o}=s;return C({root:["root",!t&&"gutters",o]},R,a)},L=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,j),i=e({},o,{component:n,disableGutters:l,variant:c}),p=y(i);return x.jsx(L,e({as:n,className:T(p.root,r),ref:t,ownerState:i},u))});export{U as T,R as g,N as t};
@@ -1 +1 @@
1
- import{Z as t,$ as r,j as a}from"./index-CaLGv6xG.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{Z as t,$ as r,j as a}from"./index-mD8SG0jv.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,4 +1,4 @@
1
- import{r as c,u as g,j as e,a as L,aD as B,P as j,ak as R,al as I,a9 as N,B as E,G as h,t as f,a0 as W,aW as _}from"./index-CaLGv6xG.js";import{P as z}from"./page-header-Bjl7D46v.js";import{A as F}from"./config-BqLTd80Y.js";import{S as H}from"./layout-D41GSjev.js";import{S as G}from"./step-actions-NyA7AGpj.js";import{S as O}from"./button-BotQVFjI.js";import{d as $}from"./InfoOutlined-DEt-KJ8v.js";import{F as q}from"./FormControl-Dq6XW9kS.js";import{R as D,a as V}from"./RadioGroup-BSqtRWJR.js";import{F as x,C as J}from"./FormControlLabel-CQnpTkDU.js";import"./content-layout-BP4bsvx7.js";import"./useFormControl-DMGx-jdt.js";import"./FormGroup-C8sAhYQk.js";function y({children:s}){const{t:i}=g();return e.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[s,e.jsx(L,{title:i("blocklet.config.access.publicInstanceTip"),children:e.jsx(B,{children:e.jsx($,{fontSize:"small"})})})]})}y.propTypes={children:j.any.isRequired};const K=c.memo(y);function b({onNext:s}){const i=R(),{t:r,locale:m}=g(),[a,o]=c.useState(!1),[p,d]=c.useState(""),[C,S]=c.useState(!1),{blocklet:n,actions:u,getPublicInstance:v}=I();c.useEffect(()=>{d(N.getWhoCanAccess(n)),S(v(n))},[n]);const A=async t=>{try{o(!0),await _(800),await u.configWhoCanAccess(t),o(!1)}catch(l){o(!1),f.error(l.message)}},k=async t=>{a||(d(t.target.value),await A(t.target.value))},P=async t=>{const l=t.target.checked;try{o(!0),await u.configPublicToStore(l),o(!1)}catch(w){o(!1),f.error(w.message)}},T={marginRight:4,fontSize:18,verticalAlign:"text-bottom",color:i.palette.text.secondary};return e.jsxs(M,{children:[e.jsx("div",{className:"header",children:e.jsx(z,{title:r("blocklet.config.access.description")})}),e.jsx(q,{component:"fieldset",children:e.jsx(D,{name:"inherit",value:p,onChange:k,children:F.map(t=>e.jsxs("div",{style:{marginBottom:16},children:[e.jsx(x,{value:t.value,control:e.jsx(V,{color:"primary"}),label:e.jsxs("span",{children:[e.jsx(t.icon,{style:T}),t.title[m]]})}),e.jsxs(E,{className:"tip",children:[t.description[m],t.value===h.WHO_CAN_ACCESS.ALL&&p===h.WHO_CAN_ACCESS.ALL&&n.source==="registry"&&e.jsx(K,{children:e.jsx(x,{style:{marginRight:0},value:t.value,control:e.jsx(J,{size:"small"}),label:e.jsx("span",{children:r("blocklet.config.access.publicToStore")}),onChange:P,checked:C,disabled:a})})]})]},t.value))})}),e.jsx(G,{mt:8,disabled:a,blocklet:n,onStartNow:()=>s("complete"),children:e.jsx(O,{loading:a,variant:"contained",disabled:a,onClick:()=>s(),children:r("setup.continue")})})]})}b.propTypes={onNext:j.func};b.defaultProps={onNext:()=>{}};const M=W(H)`
1
+ import{r as c,u as g,j as e,a as L,aD as B,P as j,ak as R,al as I,a9 as N,B as E,G as h,t as f,a0 as W,aW as _}from"./index-mD8SG0jv.js";import{P as z}from"./page-header-T1Bp_mgt.js";import{A as F}from"./config-D7luuyWR.js";import{S as H}from"./layout-CsM3bk7r.js";import{S as G}from"./step-actions-Dj2gkAXe.js";import{S as O}from"./button-BSfqa6UD.js";import{d as $}from"./InfoOutlined-B8pG85_Z.js";import{F as q}from"./FormControl-BsXCFEZS.js";import{R as D,a as V}from"./RadioGroup-CmTDruGg.js";import{F as x,C as J}from"./FormControlLabel-DImktg38.js";import"./content-layout-DiWC1J4K.js";import"./useFormControl-CJQAQwNi.js";import"./FormGroup-DaX4v3-4.js";function y({children:s}){const{t:i}=g();return e.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[s,e.jsx(L,{title:i("blocklet.config.access.publicInstanceTip"),children:e.jsx(B,{children:e.jsx($,{fontSize:"small"})})})]})}y.propTypes={children:j.any.isRequired};const K=c.memo(y);function b({onNext:s}){const i=R(),{t:r,locale:m}=g(),[a,o]=c.useState(!1),[p,d]=c.useState(""),[C,S]=c.useState(!1),{blocklet:n,actions:u,getPublicInstance:v}=I();c.useEffect(()=>{d(N.getWhoCanAccess(n)),S(v(n))},[n]);const A=async t=>{try{o(!0),await _(800),await u.configWhoCanAccess(t),o(!1)}catch(l){o(!1),f.error(l.message)}},k=async t=>{a||(d(t.target.value),await A(t.target.value))},P=async t=>{const l=t.target.checked;try{o(!0),await u.configPublicToStore(l),o(!1)}catch(w){o(!1),f.error(w.message)}},T={marginRight:4,fontSize:18,verticalAlign:"text-bottom",color:i.palette.text.secondary};return e.jsxs(M,{children:[e.jsx("div",{className:"header",children:e.jsx(z,{title:r("blocklet.config.access.description")})}),e.jsx(q,{component:"fieldset",children:e.jsx(D,{name:"inherit",value:p,onChange:k,children:F.map(t=>e.jsxs("div",{style:{marginBottom:16},children:[e.jsx(x,{value:t.value,control:e.jsx(V,{color:"primary"}),label:e.jsxs("span",{children:[e.jsx(t.icon,{style:T}),t.title[m]]})}),e.jsxs(E,{className:"tip",children:[t.description[m],t.value===h.WHO_CAN_ACCESS.ALL&&p===h.WHO_CAN_ACCESS.ALL&&n.source==="registry"&&e.jsx(K,{children:e.jsx(x,{style:{marginRight:0},value:t.value,control:e.jsx(J,{size:"small"}),label:e.jsx("span",{children:r("blocklet.config.access.publicToStore")}),onChange:P,checked:C,disabled:a})})]})]},t.value))})}),e.jsx(G,{mt:8,disabled:a,blocklet:n,onStartNow:()=>s("complete"),children:e.jsx(O,{loading:a,variant:"contained",disabled:a,onClick:()=>s(),children:r("setup.continue")})})]})}b.propTypes={onNext:j.func};b.defaultProps={onNext:()=>{}};const M=W(H)`
2
2
  height: 100%;
3
3
  overflow-y: auto;
4
4
  .header {
@@ -1 +1 @@
1
- import{r as c,j as a,aD as P,aS as E,aT as v,aU as D,P as p,a0 as I}from"./index-CaLGv6xG.js";import{d as T}from"./MoreHoriz-B_IgZ_Tw.js";import{L as b,a as k}from"./ListItemText-BWMpM4cA.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(z,{...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(T,{})}),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:A,onClick:o,disabled:j=!1,...g}=t;return c.createElement(D,{...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(b,{style:{minWidth:24,marginRight:8},children:h}),a.jsx(k,{primary:x}))})})]})}l.propTypes={actions:p.array,size:p.oneOf(["small","medium","large"])};l.defaultProps={actions:[],size:"small"};const z=I.div``;export{l as A};
1
+ import{r as c,j as a,aD as P,aS as E,aT as v,aU as D,P as p,a0 as I}from"./index-mD8SG0jv.js";import{d as T}from"./MoreHoriz-Drbf_Pvd.js";import{L as b,a as k}from"./ListItemText-EkATTCYw.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(z,{...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(T,{})}),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:A,onClick:o,disabled:j=!1,...g}=t;return c.createElement(D,{...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(b,{style:{minWidth:24,marginRight:8},children:h}),a.jsx(k,{primary:x}))})})]})}l.propTypes={actions:p.array,size:p.oneOf(["small","medium","large"])};l.defaultProps={actions:[],size:"small"};const z=I.div``;export{l as A};