@abtnode/blocklet-services 1.16.29-beta-112566d5 → 1.16.29-beta-1fedbcdd
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.
- package/api/libs/connect/session.js +79 -5
- package/api/routes/user.js +34 -0
- package/api/services/auth/connect/switch-profile.js +1 -0
- package/api/services/auth/session.js +2 -1
- package/api/state/profile.js +84 -0
- package/dist/assets/{Add-CY4Vajpf.js → Add-Dg3DoX9d.js} +1 -1
- package/dist/assets/{AddBox-DeNDC_On.js → AddBox-C17jvdJl.js} +1 -1
- package/dist/assets/{Alert-X8Tf_Ya2.js → Alert-BKFuUvWk.js} +1 -1
- package/dist/assets/{ArrowDropDown-B1ERiCZ6.js → ArrowDropDown-CGo5r4f4.js} +1 -1
- package/dist/assets/{Avatar-DzypDi2F.js → Avatar-edXR98OC.js} +1 -1
- package/dist/assets/{ButtonGroup-Yl1SMoBq.js → ButtonGroup-B-trlU8_.js} +1 -1
- package/dist/assets/{CheckCircle-lTVG_pn6.js → CheckCircle-B9xPPxo3.js} +1 -1
- package/dist/assets/{ChevronRight-yT0593W6.js → ChevronRight-C1KMBilZ.js} +1 -1
- package/dist/assets/{Close-DJPwlagN.js → Close-BdY5kwmO.js} +1 -1
- package/dist/assets/CloseOutlined-CsaZ3Bhr.js +1 -0
- package/dist/assets/{Delete-LnXfw8II.js → Delete-CCqIi_Sn.js} +1 -1
- package/dist/assets/{DeleteOutline-yfbdyPMw.js → DeleteOutline-1-_Aj4ZS.js} +1 -1
- package/dist/assets/{Done-CegxfXGS.js → Done-0Y69u3C8.js} +1 -1
- package/dist/assets/{Download-CbdL3-JP.js → Download-PkPWvb17.js} +1 -1
- package/dist/assets/{Edit-mj0warXM.js → Edit-BD3srxBB.js} +1 -1
- package/dist/assets/{EditIcon-BWMMTTyf.js → EditIcon-DrXWvR9n.js} +1 -1
- package/dist/assets/{Error-CnzO6x6f.js → Error-DLe_WPUY.js} +1 -1
- package/dist/assets/{ExpandMore-BoZqCbU8.js → ExpandMore-DBRGZIcO.js} +1 -1
- package/dist/assets/{FilterList-C75puMMo.js → FilterList-CloD2WPY.js} +4 -4
- package/dist/assets/{FormControl-02YkGBiU.js → FormControl-Bimse2fR.js} +1 -1
- package/dist/assets/{FormControlLabel-BZuIe-KU.js → FormControlLabel-DyDuxrZO.js} +1 -1
- package/dist/assets/{FormGroup-CUYWiNiM.js → FormGroup-B-B4SKep.js} +1 -1
- package/dist/assets/{Google-D6M8c4go.js → Google-CY6AY4mw.js} +3 -3
- package/dist/assets/{Hidden-BtwYfeyy.js → Hidden-BEdcEMkg.js} +1 -1
- package/dist/assets/{InfoOutlined-DzWheCe4.js → InfoOutlined-eJsNowz0.js} +1 -1
- package/dist/assets/{InputAdornment-B3Ml-Pew.js → InputAdornment-BzNkHkX2.js} +1 -1
- package/dist/assets/{InputLabel-D_H-0SoX.js → InputLabel-BYgiFQQ4.js} +1 -1
- package/dist/assets/{LastPage-D-3vv4wE.js → LastPage-nU32AGod.js} +1 -1
- package/dist/assets/{Launch-B0EjmiiU.js → Launch-CVtW962B.js} +1 -1
- package/dist/assets/{LaunchOutlined-sgP85ul9.js → LaunchOutlined-BJHsiaNO.js} +1 -1
- package/dist/assets/{Link-1nuQkwqf.js → Link-B7BIUmNC.js} +1 -1
- package/dist/assets/{ListItemText-Bn_r5n_z.js → ListItemText-DEJDVS_t.js} +1 -1
- package/dist/assets/{LoadingButton-D9fUIMmf.js → LoadingButton-BXi8UPz1.js} +1 -1
- package/dist/assets/{LockIcon-CkuBg3Hn.js → LockIcon-BU7rJFlH.js} +1 -1
- package/dist/assets/{Loop-CIkJKfB9.js → Loop-Dnr7WDDT.js} +1 -1
- package/dist/assets/{MoreVert-DhDSKiqk.js → MoreVert-bOSoaHD9.js} +1 -1
- package/dist/assets/{OpenInNew-DUIHrnXo.js → OpenInNew-CeiuaOcw.js} +1 -1
- package/dist/assets/{Pagination-BlS75-dT.js → Pagination-BYXcUJ0Y.js} +1 -1
- package/dist/assets/{PlayArrow-MoLzECrB.js → PlayArrow-D22-pmdQ.js} +1 -1
- package/dist/assets/{QuestionMarkCircle-D2W4KMR_.js → QuestionMarkCircle-Bdv9sXqB.js} +1 -1
- package/dist/assets/{RadioGroup-C3L5xJaa.js → RadioGroup-BCw6Zfps.js} +1 -1
- package/dist/assets/{Search-DTUqGlmf.js → Search-Csb9vzNF.js} +1 -1
- package/dist/assets/{Select-DCbRxmUU.js → Select-DZHh0qcc.js} +2 -2
- package/dist/assets/{ServerLogo-BhzjzHzD.js → ServerLogo-hhsJxrSy.js} +1 -1
- package/dist/assets/{Skeleton-5Ejh8uW9.js → Skeleton-CBS6UJ1y.js} +5 -5
- package/dist/assets/{Slider-Cl86dPUi.js → Slider-Bn8CJzD_.js} +1 -1
- package/dist/assets/{Stepper-BFMAEaBf.js → Stepper-YvlwhWMT.js} +1 -1
- package/dist/assets/{TextField-BHSEV3Ac.js → TextField-C2EqusxQ.js} +1 -1
- package/dist/assets/{Toolbar-D3YIXjSy.js → Toolbar-1na38RU0.js} +1 -1
- package/dist/assets/{ViewList-cURATctI.js → ViewList-DZhVIX3B.js} +1 -1
- package/dist/assets/{access-control-D8X_8z7A.js → access-control-oToCiriT.js} +1 -1
- package/dist/assets/{actions-CbsTrVFd.js → actions-BsNpmFMX.js} +1 -1
- package/dist/assets/{add-component-core-CATRvviC.js → add-component-core-D_rRE8CK.js} +20 -20
- package/dist/assets/add-resource-DFAzvQTL.js +1 -0
- package/dist/assets/{addon-D0jt9co0.js → addon-DduZXSOs.js} +1 -1
- package/dist/assets/{analytics-wO1onAqc.js → analytics-B3plQH2m.js} +9 -9
- package/dist/assets/api-D4UteNRP.js +1 -0
- package/dist/assets/audit-logs-Ck0tujOU.js +58 -0
- package/dist/assets/{blocklet-storage-Bbhcz6In.js → blocklet-storage-eoLG9vUP.js} +1 -1
- package/dist/assets/{button-DTeWpy9g.js → button-CRCGL4Id.js} +1 -1
- package/dist/assets/{click-to-copy-CaJFO5Kq.js → click-to-copy-B3viLuly.js} +1 -1
- package/dist/assets/{complete-3uapgH3n.js → complete-tyxHAm7X.js} +4 -4
- package/dist/assets/{component-BCvhjsjE.js → component-BN-TcZly.js} +1 -1
- package/dist/assets/{config-DJ2yOOMa.js → config-Dwya1hng.js} +1 -1
- package/dist/assets/{config-DRVy3XZK.js → config-bboKX4PL.js} +2 -2
- package/dist/assets/{config-navigation-DRALpukx.js → config-navigation-BUvcDr-d.js} +2 -2
- package/dist/assets/confirm-BeQH2PW_.js +7 -0
- package/dist/assets/{connect-BegmDQRh.js → connect-CsteDupB.js} +1 -1
- package/dist/assets/{connect-BSe0CQFh.js → connect-qbbg7j6s.js} +1 -1
- package/dist/assets/{connect-to-CsUlyY6l.js → connect-to-WCwN_o6a.js} +2 -2
- package/dist/assets/{content-layout-7iVGY_ud.js → content-layout-BiBqpOIx.js} +1 -1
- package/dist/assets/{dashboard-Dy_5eyk1.js → dashboard-BESqV0lJ.js} +7 -7
- package/dist/assets/{did-address-01PnQBPQ.js → did-address-BLs9qjOH.js} +1 -1
- package/dist/assets/{domain-BXr1Jxdg.js → domain-CZTJ6x7C.js} +1 -1
- package/dist/assets/{domain-list-DRd4BKdS.js → domain-list-yMmkUCiY.js} +2 -2
- package/dist/assets/{exchange-passport-DBlhf64U.js → exchange-passport-BAKKCu43.js} +1 -1
- package/dist/assets/{fallback-D4IbwHOh.js → fallback-Cki9LbOT.js} +1 -1
- package/dist/assets/{format-error-BLTYbOE0.js → format-error-BW7oqKtM.js} +1 -1
- package/dist/assets/{fuel-BFrr131p.js → fuel-DprFmFw0.js} +1 -1
- package/dist/assets/{fullpage-o_U-2IGS.js → fullpage-BnC_qi6s.js} +1 -1
- package/dist/assets/{home--rxR-cTY.js → home-VW-_y_8Y.js} +1 -1
- package/dist/assets/{iframe-DAPuN1dW.js → iframe-BRjbQULJ.js} +1 -1
- package/dist/assets/{index-DHRl1pLr.js → index-4aHMCCMH.js} +1 -1
- package/dist/assets/index-B97Tcj5g.js +16 -0
- package/dist/assets/{index-CzsxjdeJ.js → index-BBHPANaX.js} +1 -1
- package/dist/assets/{index-NKypbT5t.js → index-BZ_V6MTf.js} +5 -5
- package/dist/assets/{index-CHegi_Ee.js → index-BbITgIqZ.js} +1 -1
- package/dist/assets/{index-CbcN4v3T.js → index-BisCsEXx.js} +1 -1
- package/dist/assets/{index-DZWxxu-P.js → index-Bk0-omMC.js} +7 -7
- package/dist/assets/index-BmSBAMPa.js +11 -0
- package/dist/assets/{index-Bs7XqsZf.js → index-C--nJJiQ.js} +1 -1
- package/dist/assets/{index-7PLdtDxY.js → index-C-wak9uz.js} +1 -1
- package/dist/assets/{index-Dvf9hLBW.js → index-C1CvBHUy.js} +6 -6
- package/dist/assets/{index-DW7MULcX.js → index-C4-vb4tY.js} +1 -1
- package/dist/assets/{index-B_Mn_6jy.js → index-C6FVTOmg.js} +1 -1
- package/dist/assets/{index-BB-3C_7E.js → index-C6vkhDVz.js} +1 -1
- package/dist/assets/index-CB3E1NbM.js +54 -0
- package/dist/assets/index-CpCiL9fl.js +4 -0
- package/dist/assets/{index-Bf4S7Fg9.js → index-Cx_jKiM6.js} +1 -1
- package/dist/assets/{index-BCLn-9S9.js → index-D2l2mL0e.js} +1 -1
- package/dist/assets/{index-Cd20iNJ4.js → index-D76ppsWe.js} +18 -18
- package/dist/assets/{index-Diwtza0T.js → index-D8o-H0QH.js} +12 -12
- package/dist/assets/{index-B0KUbTqG.js → index-D9dlgRXn.js} +1 -1
- package/dist/assets/{index-CmmFWW8f.js → index-D9rzOuU2.js} +1 -1
- package/dist/assets/{index-1I7IXhML.js → index-DPgaGICn.js} +1 -1
- package/dist/assets/{index-l8yj4zzE.js → index-DaKubzJ8.js} +1 -1
- package/dist/assets/{index-Cf2_yBdK.js → index-EUCEjnDW.js} +1 -1
- package/dist/assets/{index-CyUODU0b.js → index-RXo2Xo1d.js} +1 -1
- package/dist/assets/{index-ClrMer_1.js → index-ZcMyyZfi.js} +1 -1
- package/dist/assets/index-iUyg8ocp.js +1 -0
- package/dist/assets/{index-BrXFspW6.js → index-izdM8tLU.js} +1 -1
- package/dist/assets/index-rOCWxcf-.js +1 -0
- package/dist/assets/{index-BRzBZXpP.js → index-t-A94JfS.js} +4 -4
- package/dist/assets/{index-CptRhWH5.js → index-vgfQK3J_.js} +61 -30
- package/dist/assets/{index-CZq1iuqc.js → index-ylwMh6tu.js} +196 -196
- package/dist/assets/{index.es-DIBj3Jq4.js → index.es-BdoZt3gl.js} +2 -2
- package/dist/assets/{index.esm-N7xOi6VN.js → index.esm-BZdq_xYs.js} +1 -1
- package/dist/assets/info-outline-rounded-B7pckXfF.js +1 -0
- package/dist/assets/{invitation-Hu8jHCIo.js → invitation-Dkv3jgdr.js} +1 -1
- package/dist/assets/{invite-tCvD1Emp.js → invite-CiL7XQ0_.js} +1 -1
- package/dist/assets/{issue-passport-BQo4G1nz.js → issue-passport-x1Sz90ds.js} +1 -1
- package/dist/assets/{item-DbGtGKeZ.js → item-CCNOnvVg.js} +1 -1
- package/dist/assets/{jss-plugin-props-sort.esm-DvQhW7jP.js → jss-plugin-props-sort.esm-CHeIoYvY.js} +1 -1
- package/dist/assets/{launch-result-message-Bur7t6_c.js → launch-result-message-DP7zyXX0.js} +1 -1
- package/dist/assets/{layout-B0uAwIQe.js → layout-CjjE8stJ.js} +1 -1
- package/dist/assets/{list-header-DFekr1NL.js → list-header-aqH-97l-.js} +1 -1
- package/dist/assets/localization-CgQBvb94.js +1 -0
- package/dist/assets/{log-CjsiT4t8.js → log-Bskl-_PT.js} +1 -1
- package/dist/assets/{login-1J5BbYVV.js → login-WFpgiNQn.js} +1 -1
- package/dist/assets/{login-oauth-callback-Blrq-pTH.js → login-oauth-callback-CwLD7UGz.js} +1 -1
- package/dist/assets/logo-uploader-By8vYJcc.js +122 -0
- package/dist/assets/{lost-passport-B-xv32w5.js → lost-passport-B39d4lzc.js} +3 -3
- package/dist/assets/{lottie-DHZm2Pp-.js → lottie-DTAkt9rG.js} +1 -1
- package/dist/assets/notifications-rIQeNRyH.js +62 -0
- package/dist/assets/{open-window-C6VjWW94.js → open-window-DKgXXbA_.js} +1 -1
- package/dist/assets/overview-DhaBkhW5.js +12 -0
- package/dist/assets/{page-header-Doy1SeXs.js → page-header-b-7Z5M1p.js} +1 -1
- package/dist/assets/{permission-BWAp0U1U.js → permission-CjXdPWLm.js} +1 -1
- package/dist/assets/{preferences-C-rgtZ7Y.js → preferences-DFFLelLq.js} +1 -1
- package/dist/assets/publish-resource-DG_q9nHi.js +1 -0
- package/dist/assets/react-hphslfgR.js +379 -0
- package/dist/assets/{redux-DJ4kW5cs.js → redux-D2MFeV97.js} +1 -1
- package/dist/assets/resource-dialog-CYsYDVd4.js +57 -0
- package/dist/assets/{selector-CoXEpXpq.js → selector-CyKqMls1.js} +3 -3
- package/dist/assets/session-BKSBv0mj.js +1 -0
- package/dist/assets/setup-Cvqq22Cb.js +14 -0
- package/dist/assets/{shorten-label-FpBR8oOW.js → shorten-label-B181R4sg.js} +1 -1
- package/dist/assets/{slicedToArray-D6tWlK6Z.js → slicedToArray-sFUDNoi3.js} +2 -2
- package/dist/assets/{spaces-Dxw-EmTw.js → spaces-C-O11DZB.js} +1 -1
- package/dist/assets/{start-D1WI9rVf.js → start-sbA77GB8.js} +1 -1
- package/dist/assets/{step-actions-D3Bgjg32.js → step-actions-C_aJ5g2U.js} +1 -1
- package/dist/assets/{studio-SFi0TZqU.js → studio-0-zx3Gfg.js} +1 -1
- package/dist/assets/{switch-control-D_6oISXT.js → switch-control-LFie4T6d.js} +1 -1
- package/dist/assets/{toUpper-DA5F5eP3.js → toUpper-DwJS99Kw.js} +1 -1
- package/dist/assets/{transfer-YRbXZ2oQ.js → transfer-DemzpgEv.js} +1 -1
- package/dist/assets/{uniqBy-moVi8I9O.js → uniqBy-CurK-eE8.js} +1 -1
- package/dist/assets/{unsubscribe-B-8N_G1A.js → unsubscribe-BRq8BRma.js} +1 -1
- package/dist/assets/{url-join-BUXfHAG-.js → url-join-CYx28Lgt.js} +1 -1
- package/dist/assets/use-blocklet-info-for-connect-did-spaces-BVTgf2Uo.js +1 -0
- package/dist/assets/{use-mobile-C_ONEjf6.js → use-mobile-UW34SxaH.js} +1 -1
- package/dist/assets/{useAsync-BLjRrBya.js → useAsync-kH9wVwIf.js} +1 -1
- package/dist/assets/{useFormControl-BrCPFkZH.js → useFormControl-Bc6GRxco.js} +1 -1
- package/dist/assets/{useLocalStorage-DrhIkVxO.js → useLocalStorage-kWHhpCBz.js} +1 -1
- package/dist/assets/{useSetState-CbQrbQss.js → useSetState-7SNjdxq8.js} +1 -1
- package/dist/assets/{useSlot-BSk477LF.js → useSlot-BMo33AcK.js} +1 -1
- package/dist/assets/user-center-BtPuulHQ.js +1 -0
- package/dist/assets/{util-Do8cOsC3.js → util-BKi99Ui9.js} +1 -1
- package/dist/assets/{wrap-locale-D6fNmzs0.js → wrap-locale-BGOpNp8r.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +27 -26
- package/dist/assets/CloseOutlined-D1ZA66gd.js +0 -1
- package/dist/assets/add-resource-B0nzFGxn.js +0 -1
- package/dist/assets/api-BFSOae_v.js +0 -1
- package/dist/assets/audit-logs-DDUnfrlt.js +0 -58
- package/dist/assets/confirm-BzNK2mDA.js +0 -7
- package/dist/assets/index-CLFX4mT1.js +0 -11
- package/dist/assets/index-Cy3QGaUZ.js +0 -54
- package/dist/assets/index-K7xQGL1m.js +0 -16
- package/dist/assets/index-Wy8tXmp4.js +0 -4
- package/dist/assets/localization-Dyeek5nb.js +0 -1
- package/dist/assets/logo-uploader-KJa3kg20.js +0 -122
- package/dist/assets/notifications-D9-n_25q.js +0 -62
- package/dist/assets/overview-DkYsGUOj.js +0 -12
- package/dist/assets/publish-resource-C5iQ3qEW.js +0 -1
- package/dist/assets/react-CT3HMgMp.js +0 -56
- package/dist/assets/resource-dialog-Dyf09u0L.js +0 -57
- package/dist/assets/session-Ci3gpI0a.js +0 -1
- package/dist/assets/setup-D47fcxKa.js +0 -14
- package/dist/assets/use-blocklet-info-for-connect-did-spaces-DhpD5O4W.js +0 -1
- package/dist/assets/user-center-BYfQOHt3.js +0 -1
- package/dist/assets/user-sessions-CAX_hHjv.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aC as y,aB as w,
|
|
1
|
+
import{aC as y,aB as w,cs as b,aD as R,cH as _,cI as $,aG as o,cJ as S,ad as u,r as U,aK as M,aF as j,j as A,aI as X,aJ as B}from"./index-ylwMh6tu.js";function K(a){return y("MuiSkeleton",a)}w("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const N=["animation","className","component","height","style","variant","width"];let r=a=>a,p,g,m,f;const E=a=>{const{classes:t,variant:e,animation:i,hasChildren:s,width:l,height:n}=a;return B({root:["root",e,i,s&&"withChildren",s&&!l&&"fitContent",s&&!n&&"heightAuto"]},K,t)},F=b(p||(p=r`
|
|
2
2
|
0% {
|
|
3
3
|
opacity: 1;
|
|
4
4
|
}
|
|
@@ -10,7 +10,7 @@ import{aC as y,aB as w,cA as b,aD as R,cB as _,cC as $,aG as o,cD as S,ad as u,r
|
|
|
10
10
|
100% {
|
|
11
11
|
opacity: 1;
|
|
12
12
|
}
|
|
13
|
-
`)),
|
|
13
|
+
`)),I=b(g||(g=r`
|
|
14
14
|
0% {
|
|
15
15
|
transform: translateX(-100%);
|
|
16
16
|
}
|
|
@@ -23,9 +23,9 @@ import{aC as y,aB as w,cA as b,aD as R,cB as _,cC as $,aG as o,cD as S,ad as u,r
|
|
|
23
23
|
100% {
|
|
24
24
|
transform: translateX(100%);
|
|
25
25
|
}
|
|
26
|
-
`)),
|
|
26
|
+
`)),J=R("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(a,t)=>{const{ownerState:e}=a;return[t.root,t[e.variant],e.animation!==!1&&t[e.animation],e.hasChildren&&t.withChildren,e.hasChildren&&!e.width&&t.fitContent,e.hasChildren&&!e.height&&t.heightAuto]}})(({theme:a,ownerState:t})=>{const e=_(a.shape.borderRadius)||"px",i=$(a.shape.borderRadius);return o({display:"block",backgroundColor:a.vars?a.vars.palette.Skeleton.bg:S(a.palette.text.primary,a.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${i}${e}/${Math.round(i/.6*10)/10}${e}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(a.vars||a).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:a})=>a.animation==="pulse"&&u(m||(m=r`
|
|
27
27
|
animation: ${0} 2s ease-in-out 0.5s infinite;
|
|
28
|
-
`),
|
|
28
|
+
`),F),({ownerState:a,theme:t})=>a.animation==="wave"&&u(f||(f=r`
|
|
29
29
|
position: relative;
|
|
30
30
|
overflow: hidden;
|
|
31
31
|
|
|
@@ -48,4 +48,4 @@ import{aC as y,aB as w,cA as b,aD as R,cB as _,cC as $,aG as o,cD as S,ad as u,r
|
|
|
48
48
|
right: 0;
|
|
49
49
|
top: 0;
|
|
50
50
|
}
|
|
51
|
-
`),
|
|
51
|
+
`),I,(t.vars||t).palette.action.hover)),P=U.forwardRef(function(t,e){const i=M({props:t,name:"MuiSkeleton"}),{animation:s="pulse",className:l,component:n="span",height:d,style:v,variant:C="text",width:k}=i,h=j(i,N),c=o({},i,{animation:s,component:n,variant:C,hasChildren:!!h.children}),x=E(c);return A.jsx(J,o({as:n,ref:e,className:X(x.root,l),ownerState:c},h,{style:o({width:k,height:d},v)}))}),W=P;export{W as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as S,cY as St,gb as pe,ch as Lt,cd as at,cz as wt,cI as Ge,cJ as $e,gc as Je,aG as c,cL as Te,aB as Pt,aC as Ct,aI as oe,j as P,aD as J,aE as B,ca as ot,c9 as nt,cg as lt,ey as dt,cH as $t,aF as Tt,aH as Y,aJ as _t}from"./index-CZq1iuqc.js";import{c as Rt}from"./useSlot-BSk477LF.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"},At=It;function zt(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 Nt(e,t,a){return(a-t)*e+t}function Et(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 Vt(e,t,a){const l=Math.round((e-a)/t)*t+a;return Number(l.toFixed(Et(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"?zt(e,t):!1}const Ht={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 jt(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:U,onChange:ne,onChangeCommitted:K,orientation:Q="horizontal",rootRef:fe,scale:le=Ft,step:M=1,shiftStep:se=10,tabIndex:be,value:me}=e,V=S.useRef(),[W,j]=S.useState(-1),[ve,O]=S.useState(-1),[ie,ue]=S.useState(!1),X=S.useRef(0),[_,Z]=St({controlled:me,default:a??f,name:"Slider"}),N=ne&&((r,o,n)=>{const i=r.nativeEvent||r,u=new i.constructor(i.type,i);Object.defineProperty(u,"target",{writable:!0,value:{value:o,name:U}}),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&&M!==null?[...Array(Math.floor((m-f)/M)+1)].map((r,o)=>({value:f+M*o})):C||[],g=ce.map(r=>r.value),{isFocusVisibleRef:R,onBlur:Re,onFocus:Ie,ref:Ae}=Lt(),[he,G]=S.useState(-1),w=S.useRef(),ge=at(Ae,w),ye=at(fe,ge),ee=r=>o=>{var n;const i=Number(o.currentTarget.getAttribute("data-index"));Ie(o),R.current===!0&&G(i),O(i),r==null||(n=r.onFocus)==null||n.call(r,o)},te=r=>o=>{var n;Re(o),R.current===!1&&G(-1),O(-1),r==null||(n=r.onBlur)==null||n.call(r,o)},ke=(r,o)=>{const n=Number(r.currentTarget.getAttribute("data-index")),i=y[n],u=g.indexOf(i);let s=o;if(ce&&M==null){const z=g[g.length-1];s>z?s=z: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 z=s;s=it({values:y,newValue:s,index:n});let E=n;d||(E=s.indexOf(z)),we({sliderRef:w,activeIndex:E})}Z(s),G(n),N&&!Pe(s,_)&&N(r,s,n),K&&K(r,s)},ze=r=>o=>{var n;if(M!==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 Me=r=>o=>{var n;(n=r.onChange)==null||n.call(r,o),ke(o,o.target.valueAsNumber)},xe=S.useRef();let H=Q;L&&Q==="horizontal"&&(H+="-reverse");const v=({finger:r,move:o=!1})=>{const{current:n}=w,{width:i,height:u,bottom:s,left:z}=n.getBoundingClientRect();let E;H.indexOf("vertical")===0?E=(s-r.y)/u:E=(r.x-z)/i,H.indexOf("-reverse")!==-1&&(E=1-E);let p;if(p=Nt(E,f,m),M)p=Vt(p,M,f);else{const ae=st(g,p);p=g[ae]}p=pe(p,f,m);let $=0;if(q){o?$=xe.current:$=st(y,p),d&&(p=pe(p,y[$-1]||-1/0,y[$+1]||1/0));const ae=p;p=it({values:y,newValue:p,index:$}),d&&o||($=p.indexOf(ae),xe.current=$)}return{newValue:p,activeIndex:$}},b=Ge(r=>{const o=Le(r,V);if(!o)return;if(X.current+=1,r.type==="mousemove"&&r.buttons===0){I(r);return}const{newValue:n,activeIndex:i}=v({finger:o,move:!0});we({sliderRef:w,activeIndex:i,setActive:j}),Z(n),!ie&&X.current>Mt&&ue(!0),N&&!Pe(n,_)&&N(r,n,i)}),I=Ge(r=>{const o=Le(r,V);if(ue(!1),!o)return;const{newValue:n}=v({finger:o,move:!0});j(-1),r.type==="touchend"&&O(-1),K&&K(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:z}=v({finger:i});we({sliderRef:w,activeIndex:z,setActive:j}),Z(s),N&&!Pe(s,_)&&N(o,s,z)}X.current=0;const u=$e(w.current);u.addEventListener("mousemove",b,{passive:!0}),u.addEventListener("mouseup",I)},x=_e(q?y[0]:f,f,m),re=_e(y[y.length-1],f,m)-x,Ee=(r={})=>{const o=Je(r),n={onMouseDown:Ne(o||{})},i=c({},o,n);return c({},r,{ref:ye},i)},Ve=r=>o=>{var n;(n=r.onMouseOver)==null||n.call(r,o);const i=Number(o.currentTarget.getAttribute("data-index"));O(i)},He=r=>o=>{var n;(n=r.onMouseLeave)==null||n.call(r,o),O(-1)};return{active:W,axis:H,axisProps:Ht,dragging:ie,focusedThumbIndex:he,getHiddenInputProps:(r={})=>{var o;const n=Je(r),i={onChange:Me(n||{}),onFocus:ee(n||{}),onBlur:te(n||{}),onKeyDown:ze(n||{})},u=c({},n,i);return c({tabIndex:be,"aria-labelledby":t,"aria-orientation":Q,"aria-valuemax":le(m),"aria-valuemin":le(f),name:U,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({},At,{direction:L?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Ee,getThumbProps:(r={})=>{const o=Je(r),n={onMouseOver:Ve(o||{}),onMouseLeave:He(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 Ot=e=>!e||!Te(e);function Dt(e){return Ct("MuiSlider",e)}const Yt=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"]),T=Yt,Bt=e=>{const{open:t}=e;return{offset:oe(t&&T.valueLabelOpen),circle:T.valueLabelCircle,label:T.valueLabelLabel}};function Ut(e){const{children:t,className:a,value:l}=e,d=Bt(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 Kt=["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"],Wt=Rt();function ct(e){return e}const Xt=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}}]}}),qt=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}}]}),Gt=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)})))}))]}}),Jt=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(Ut,{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"}}]})),Zt=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}}]})),er=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}}]})),tr=e=>{const{disabled:t,dragging:a,marked:l,orientation:d,track:L,classes:C,color:m,size:f}=e,U={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 _t(U,Dt,C)},rr=({children:e})=>e,ar=S.forwardRef(function(t,a){var l,d,L,C,m,f,U,ne,K,Q,fe,le,M,se,be,me,V,W,j,ve,O,ie,ue,X;const _=Wt({props:t,name:"MuiSlider"}),Z=$t(),{"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:ze=10,size:Me="medium",step:xe=1,scale:H=ct,slotProps:v,slots:b,track:I="normal",valueLabelDisplay:D="off",valueLabelFormat:A=ct}=_,Ne=Tt(_,Kt),x=c({},_,{isRtl:Z,max:ee,min:te,classes:Ie,disabled:G,disableSwap:he,orientation:ke,marks:ye,color:Re,size:Me,step:xe,shiftStep:ze,scale:H,track:I,valueLabelDisplay:D,valueLabelFormat:A}),{axisProps:re,getRootProps:Ee,getHiddenInputProps:Ve,getThumbProps:He,open:Qe,active:Fe,axis:de,focusedThumbIndex:r,range:o,dragging:n,marks:i,values:u,trackOffset:s,trackLeap:z,getThumbStyle:E}=jt(c({},x,{rootRef:a}));x.marked=i.length>0&&i.some(h=>h.label),x.dragging=n,x.focusedThumbIndex=r;const p=tr(x),$=(l=(d=b==null?void 0:b.root)!=null?d:g.Root)!=null?l:Xt,ae=(L=(C=b==null?void 0:b.rail)!=null?C:g.Rail)!=null?L:qt,Ze=(m=(f=b==null?void 0:b.track)!=null?f:g.Track)!=null?m:Gt,et=(U=(ne=b==null?void 0:b.thumb)!=null?ne:g.Thumb)!=null?U:Jt,tt=(K=(Q=b==null?void 0:b.valueLabel)!=null?Q:g.ValueLabel)!=null?K:Qt,je=(fe=(le=b==null?void 0:b.mark)!=null?le:g.Mark)!=null?fe:Zt,Oe=(M=(se=b==null?void 0:b.markLabel)!=null?se:g.MarkLabel)!=null?M:er,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,Ue=(O=v==null?void 0:v.valueLabel)!=null?O:R.valueLabel,bt=(ie=v==null?void 0:v.mark)!=null?ie:R.mark,mt=(ue=v==null?void 0:v.markLabel)!=null?ue:R.markLabel,vt=(X=v==null?void 0:v.input)!=null?X:R.input,ht=Y({elementType:$,getSlotProps:Ee,externalSlotProps:De,externalForwardedProps:Ne,additionalProps:c({},Ot($)&&{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(z))},ownerState:c({},x,Ye==null?void 0:Ye.ownerState),className:p.track}),Ke=Y({elementType:et,getSlotProps:He,externalSlotProps:Be,ownerState:c({},x,Be==null?void 0:Be.ownerState),className:p.thumb}),kt=Y({elementType:tt,externalSlotProps:Ue,ownerState:c({},x,Ue==null?void 0:Ue.ownerState),className:p.valueLabel}),We=Y({elementType:je,externalSlotProps:bt,ownerState:x,className:p.mark}),Xe=Y({elementType:Oe,externalSlotProps:mt,ownerState:x,className:p.markLabel}),xt=Y({elementType:rt,getSlotProps:Ve,externalSlotProps:vt,ownerState:x});return P.jsxs($,c({},ht,{children:[P.jsx(ae,c({},gt)),P.jsx(Ze,c({},yt)),i.filter(h=>h.value>=te&&h.value<=ee).map((h,k)=>{const qe=_e(h.value,te,ee),Se=re[de].offset(qe);let F;return I===!1?F=u.indexOf(h.value)!==-1:F=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:F},{style:c({},Se,We.style),className:oe(We.className,F&&p.markActive)})),h.label!=null?P.jsx(Oe,c({"aria-hidden":!0,"data-index":k},Xe,!Te(Oe)&&{markLabelActive:F},{style:c({},Se,Xe.style),className:oe(p.markLabel,Xe.className,F&&p.markLabelActive),children:h.label})):null]},k)}),u.map((h,k)=>{const qe=_e(h,te,ee),Se=re[de].offset(qe),F=D==="off"?rr:tt;return P.jsx(F,c({},!Te(F)&&{valueLabelFormat:A,valueLabelDisplay:D,value:typeof A=="function"?A(H(h),k):A,index:k,open:Qe===k||Fe===k||D==="on",disabled:G},kt,{children:P.jsx(et,c({"data-index":k},Ke,{className:oe(p.thumb,Ke.className,Fe===k&&p.active,r===k&&p.focusVisible),style:c({},Se,E(k),Ke.style),children:P.jsx(rt,c({"data-index":k,"aria-label":w?w(k):N,"aria-valuenow":H(h),"aria-labelledby":y,"aria-valuetext":ge?ge(H(h),k):q,value:u[k]},xt))}))}),k)})]}))}),lr=ar;export{lr as S};
|
|
1
|
+
import{r as S,d2 as St,gf as pe,ci as Lt,ce as at,cG as wt,cO as Ge,cP as $e,gg as Je,aG as c,cR as Te,aB as Pt,aC as Ct,aI as oe,j as P,aD as J,aE as Y,cb as ot,ca as nt,ch as lt,eD as dt,cN as $t,aF as Tt,aH as B,aJ as _t}from"./index-ylwMh6tu.js";import{c as Rt}from"./useSlot-BMo33AcK.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"},At=It;function zt(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 Nt(e,t,a){return(a-t)*e+t}function Et(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 Vt(e,t,a){const l=Math.round((e-a)/t)*t+a;return Number(l.toFixed(Et(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"?zt(e,t):!1}const Ft={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}%`})}},Ht=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:U,onChange:ne,onChangeCommitted:K,orientation:Q="horizontal",rootRef:fe,scale:le=Ht,step:M=1,shiftStep:se=10,tabIndex:be,value:me}=e,V=S.useRef(),[W,O]=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:U}}),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&&M!==null?[...Array(Math.floor((m-f)/M)+1)].map((r,o)=>({value:f+M*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&&M==null){const z=g[g.length-1];s>z?s=z: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 z=s;s=it({values:y,newValue:s,index:n});let E=n;d||(E=s.indexOf(z)),we({sliderRef:w,activeIndex:E})}Z(s),G(n),N&&!Pe(s,_)&&N(r,s,n),K&&K(r,s)},ze=r=>o=>{var n;if(M!==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&&O(-1),l&&he!==-1&&G(-1);const Me=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:z}=n.getBoundingClientRect();let E;F.indexOf("vertical")===0?E=(s-r.y)/u:E=(r.x-z)/i,F.indexOf("-reverse")!==-1&&(E=1-E);let p;if(p=Nt(E,f,m),M)p=Vt(p,M,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:O}),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});O(-1),r.type==="touchend"&&j(-1),K&&K(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:O}),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:z}=v({finger:i});we({sliderRef:w,activeIndex:z,setActive:O}),Z(s),N&&!Pe(s,_)&&N(o,s,z)}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:Ft,dragging:ie,focusedThumbIndex:he,getHiddenInputProps:(r={})=>{var o;const n=Je(r),i={onChange:Me(n||{}),onFocus:ee(n||{}),onBlur:te(n||{}),onKeyDown:ze(n||{})},u=c({},n,i);return c({tabIndex:be,"aria-labelledby":t,"aria-orientation":Q,"aria-valuemax":le(m),"aria-valuemin":le(f),name:U,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({},At,{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 Dt(e){return Ct("MuiSlider",e)}const Bt=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"]),T=Bt,Yt=e=>{const{open:t}=e;return{offset:oe(t&&T.valueLabelOpen),circle:T.valueLabelCircle,label:T.valueLabelLabel}};function Ut(e){const{children:t,className:a,value:l}=e,d=Yt(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 Kt=["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"],Wt=Rt();function ct(e){return e}const Xt=J("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,t[`color${Y(a.color)}`],a.size!=="medium"&&t[`size${Y(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}}]}}),qt=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}}]}),Gt=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)})))}))]}}),Jt=J("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.thumb,t[`thumbColor${Y(a.color)}`],a.size!=="medium"&&t[`thumbSize${Y(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(Ut,{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"}}]})),Zt=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}}]})),er=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}}]})),tr=e=>{const{disabled:t,dragging:a,marked:l,orientation:d,track:L,classes:C,color:m,size:f}=e,U={root:["root",t&&"disabled",a&&"dragging",l&&"marked",d==="vertical"&&"vertical",L==="inverted"&&"trackInverted",L===!1&&"trackFalse",m&&`color${Y(m)}`,f&&`size${Y(f)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",f&&`thumbSize${Y(f)}`,m&&`thumbColor${Y(m)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return _t(U,Dt,C)},rr=({children:e})=>e,ar=S.forwardRef(function(t,a){var l,d,L,C,m,f,U,ne,K,Q,fe,le,M,se,be,me,V,W,O,ve,j,ie,ue,X;const _=Wt({props:t,name:"MuiSlider"}),Z=$t(),{"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:ze=10,size:Me="medium",step:xe=1,scale:F=ct,slotProps:v,slots:b,track:I="normal",valueLabelDisplay:D="off",valueLabelFormat:A=ct}=_,Ne=Tt(_,Kt),x=c({},_,{isRtl:Z,max:ee,min:te,classes:Ie,disabled:G,disableSwap:he,orientation:ke,marks:ye,color:Re,size:Me,step:xe,shiftStep:ze,scale:F,track:I,valueLabelDisplay:D,valueLabelFormat:A}),{axisProps:re,getRootProps:Ee,getHiddenInputProps:Ve,getThumbProps:Fe,open:Qe,active:He,axis:de,focusedThumbIndex:r,range:o,dragging:n,marks:i,values:u,trackOffset:s,trackLeap:z,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=tr(x),$=(l=(d=b==null?void 0:b.root)!=null?d:g.Root)!=null?l:Xt,ae=(L=(C=b==null?void 0:b.rail)!=null?C:g.Rail)!=null?L:qt,Ze=(m=(f=b==null?void 0:b.track)!=null?f:g.Track)!=null?m:Gt,et=(U=(ne=b==null?void 0:b.thumb)!=null?ne:g.Thumb)!=null?U:Jt,tt=(K=(Q=b==null?void 0:b.valueLabel)!=null?Q:g.ValueLabel)!=null?K:Qt,Oe=(fe=(le=b==null?void 0:b.mark)!=null?le:g.Mark)!=null?fe:Zt,je=(M=(se=b==null?void 0:b.markLabel)!=null?se:g.MarkLabel)!=null?M:er,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,Be=(O=v==null?void 0:v.track)!=null?O:R.track,Ye=(ve=v==null?void 0:v.thumb)!=null?ve:R.thumb,Ue=(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=B({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=B({elementType:ae,externalSlotProps:ft,ownerState:x,className:p.rail}),yt=B({elementType:Ze,externalSlotProps:Be,additionalProps:{style:c({},re[de].offset(s),re[de].leap(z))},ownerState:c({},x,Be==null?void 0:Be.ownerState),className:p.track}),Ke=B({elementType:et,getSlotProps:Fe,externalSlotProps:Ye,ownerState:c({},x,Ye==null?void 0:Ye.ownerState),className:p.thumb}),kt=B({elementType:tt,externalSlotProps:Ue,ownerState:c({},x,Ue==null?void 0:Ue.ownerState),className:p.valueLabel}),We=B({elementType:Oe,externalSlotProps:bt,ownerState:x,className:p.mark}),Xe=B({elementType:je,externalSlotProps:mt,ownerState:x,className:p.markLabel}),xt=B({elementType:rt,getSlotProps:Ve,externalSlotProps:vt,ownerState:x});return P.jsxs($,c({},ht,{children:[P.jsx(ae,c({},gt)),P.jsx(Ze,c({},yt)),i.filter(h=>h.value>=te&&h.value<=ee).map((h,k)=>{const qe=_e(h.value,te,ee),Se=re[de].offset(qe);let H;return I===!1?H=u.indexOf(h.value)!==-1:H=I==="normal"&&(o?h.value>=u[0]&&h.value<=u[u.length-1]:h.value<=u[0])||I==="inverted"&&(o?h.value<=u[0]||h.value>=u[u.length-1]:h.value>=u[0]),P.jsxs(S.Fragment,{children:[P.jsx(Oe,c({"data-index":k},We,!Te(Oe)&&{markActive:H},{style:c({},Se,We.style),className:oe(We.className,H&&p.markActive)})),h.label!=null?P.jsx(je,c({"aria-hidden":!0,"data-index":k},Xe,!Te(je)&&{markLabelActive:H},{style:c({},Se,Xe.style),className:oe(p.markLabel,Xe.className,H&&p.markLabelActive),children:h.label})):null]},k)}),u.map((h,k)=>{const qe=_e(h,te,ee),Se=re[de].offset(qe),H=D==="off"?rr:tt;return P.jsx(H,c({},!Te(H)&&{valueLabelFormat:A,valueLabelDisplay:D,value:typeof A=="function"?A(F(h),k):A,index:k,open:Qe===k||He===k||D==="on",disabled:G},kt,{children:P.jsx(et,c({"data-index":k},Ke,{className:oe(p.thumb,Ke.className,He===k&&p.active,r===k&&p.focusVisible),style:c({},Se,E(k),Ke.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)})]}))}),lr=ar;export{lr as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as v,aC as w,aB as U,aD as x,aG as l,aK as _,aF as T,j as i,aI as P,aJ as W,ao as B,
|
|
1
|
+
import{r as v,aC as w,aB as U,aD as x,aG as l,aK as _,aF as T,j as i,aI as P,aJ as W,ao as B,cj as G,aE as V}from"./index-ylwMh6tu.js";const J=v.createContext({}),k=J,K=v.createContext({}),E=K;function q(e){return w("MuiStep",e)}U("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const O=["active","children","className","component","completed","disabled","expanded","index","last"],Q=e=>{const{classes:t,orientation:o,alternativeLabel:n,completed:a}=e;return W({root:["root",o,n&&"alternativeLabel",a&&"completed"]},q,t)},X=x("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})=>l({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),Y=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:s,last:m}=n,M=T(n,O),{activeStep:h,connector:L,alternativeLabel:y,orientation:R,nonLinear:$}=v.useContext(k);let[S=!1,I=!1,C=!1]=[a,p,b];h===s?S=a!==void 0?a:!0:!$&&h>s?I=p!==void 0?p:!0:!$&&h<s&&(C=b!==void 0?b:!0);const j=v.useMemo(()=>({index:s,last:m,expanded:d,icon:s+1,active:S,completed:I,disabled:C}),[s,m,d,S,I,C]),f=l({},n,{active:S,orientation:R,alternativeLabel:y,completed:I,disabled:C,expanded:d,component:c}),N=Q(f),z=i.jsxs(X,l({as:c,className:P(N.root,u),ref:o,ownerState:f},M,{children:[L&&y&&s!==0?L:null,r]}));return i.jsx(E.Provider,{value:j,children:L&&!y&&s!==0?i.jsxs(v.Fragment,{children:[L,z]}):z})}),ze=Y,Z=B(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"),ee=B(i.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function te(e){return w("MuiStepIcon",e)}const oe=U("MuiStepIcon",["root","active","completed","error","text"]),A=oe;var F;const ne=["active","className","completed","error","icon"],ae=e=>{const{classes:t,active:o,completed:n,error:a}=e;return W({root:["root",o&&"active",n&&"completed",a&&"error"],text:["text"]},te,t)},D=x(G,{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}})),re=x("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})),se=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=T(n,ne),d=l({},n,{active:a,completed:u,error:c}),s=ae(d);if(typeof p=="number"||typeof p=="string"){const m=P(r,s.root);return c?i.jsx(D,l({as:ee,className:m,ref:o,ownerState:d},b)):u?i.jsx(D,l({as:Z,className:m,ref:o,ownerState:d},b)):i.jsxs(D,l({className:m,ref:o,ownerState:d},b,{children:[F||(F=i.jsx("circle",{cx:"12",cy:"12",r:"12"})),i.jsx(re,{className:s.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:d,children:p})]}))}return p}),le=se;function ie(e){return w("MuiStepLabel",e)}const ce=U("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),g=ce,pe=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],de=e=>{const{classes:t,orientation:o,active:n,completed:a,error:r,disabled:u,alternativeLabel:c}=e;return W({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"]},ie,t)},ve=x("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation]]}})(({ownerState:e})=>l({display:"flex",alignItems:"center",[`&.${g.alternativeLabel}`]:{flexDirection:"column"},[`&.${g.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),ue=x("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>l({},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}})),be=x("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${g.alternativeLabel}`]:{paddingRight:0}})),me=x("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"}})),H=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:s={},StepIconComponent:m,StepIconProps:M}=a,h=T(a,pe),{alternativeLabel:L,orientation:y}=v.useContext(k),{active:R,disabled:$,completed:S,icon:I}=v.useContext(E),C=b||I;let j=m;C&&!j&&(j=le);const f=l({},a,{active:R,alternativeLabel:L,completed:S,disabled:$,error:p,orientation:y}),N=de(f),z=(n=s.label)!=null?n:c.label;return i.jsxs(ve,l({className:P(N.root,u),ref:o,ownerState:f},h,{children:[C||j?i.jsx(be,{className:N.iconContainer,ownerState:f,children:i.jsx(j,l({completed:S,active:R,error:p,icon:C},M))}):null,i.jsxs(me,{className:N.labelContainer,ownerState:f,children:[r?i.jsx(ue,l({ownerState:f},z,{className:P(N.label,z==null?void 0:z.className),children:r})):null,d]})]}))});H.muiName="StepLabel";const Pe=H;function Se(e){return w("MuiStepConnector",e)}U("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const xe=["className"],Le=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 W(c,Se,t)},Ce=x("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})=>l({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),fe=x("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 l({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})}),ge=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepConnector"}),{className:a}=n,r=T(n,xe),{alternativeLabel:u,orientation:c="horizontal"}=v.useContext(k),{active:p,disabled:b,completed:d}=v.useContext(E),s=l({},n,{alternativeLabel:u,orientation:c,active:p,completed:d,disabled:b}),m=Le(s);return i.jsx(Ce,l({className:P(m.root,a),ref:o,ownerState:s},r,{children:i.jsx(fe,{className:m.line,ownerState:s})}))}),he=ge;function ye(e){return w("MuiStepper",e)}U("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const $e=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],Me=e=>{const{orientation:t,nonLinear:o,alternativeLabel:n,classes:a}=e;return W({root:["root",t,o&&"nonLinear",n&&"alternativeLabel"]},ye,a)},Re=x("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})=>l({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),Ie=i.jsx(he,{}),je=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=Ie,nonLinear:d=!1,orientation:s="horizontal"}=n,m=T(n,$e),M=l({},n,{nonLinear:d,alternativeLabel:r,orientation:s,component:p}),h=Me(M),L=v.Children.toArray(u).filter(Boolean),y=L.map(($,S)=>v.cloneElement($,l({index:S,last:S+1===L.length},$.props))),R=v.useMemo(()=>({activeStep:a,alternativeLabel:r,connector:b,nonLinear:d,orientation:s}),[a,r,b,d,s]);return i.jsx(k.Provider,{value:R,children:i.jsx(Re,l({as:p,ownerState:M,className:P(h.root,c),ref:o},m,{children:y}))})}),we=je;export{we as S,ze as a,Pe as b,E as c,k as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aC as M,aB as q,aD as S,aE as L,aG as a,r as N,aK as U,aF as _,j as i,aI as B,aJ as E,
|
|
1
|
+
import{aC as M,aB as q,aD as S,aE as L,aG as a,r as N,aK as U,aF as _,j as i,aI as B,aJ as E,d3 as re}from"./index-ylwMh6tu.js";import{F as ae}from"./FormControl-Bimse2fR.js";import{I as le}from"./InputLabel-BYgiFQQ4.js";import{S as ie,a as ne,F as de,O as ce}from"./Select-DZHh0qcc.js";import{u as ue,f as pe}from"./useFormControl-Bc6GRxco.js";function me(e){return M("MuiFormHelperText",e)}const fe=q("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),j=fe;var w;const xe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Fe=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${L(r)}`,t&&"contained",p&&"focused",c&&"filled",u&&"required"]};return E(s,me,o)},Te=S("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.size&&o[`size${L(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,[`&.${j.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${j.error}`]:{color:(e.vars||e).palette.error.main}},o.size==="small"&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})),be=N.forwardRef(function(o,t){const r=U({props:o,name:"MuiFormHelperText"}),{children:n,className:d,component:c="p"}=r,p=_(r,xe),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=Fe(m);return i.jsx(Te,a({as:c,ownerState:m,className:B(F.root,d),ref:t},p,{children:n===" "?w||(w=i.jsx("span",{className:"notranslate",children:""})):n}))}),ve=be;function he(e){return M("MuiTextField",e)}const Ce=q("MuiTextField",["root"]),Me=Ce,ge=["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"],Ie={standard:ne,filled:de,outlined:ce},Re=e=>{const{classes:o}=e;return E({root:["root"]},he,o)},ye=S(ae,{name:"MuiTextField",slot:"Root",overridesResolver:(e,o)=>o.root})({}),He=N.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:O,fullWidth:v=!1,helperText:h,id:W,InputLabelProps:T,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:H,variant:b="outlined"}=r,oe=_(r,ge),z=a({},r,{autoFocus:d,color:u,disabled:m,error:F,fullWidth:v,multiline:R,required:y,select:C,variant:b}),se=Re(z),x={};b==="outlined"&&(T&&typeof T.shrink<"u"&&(x.notched=T.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=Ie[b],$=i.jsx(te,a({"aria-describedby":I,autoComplete:n,autoFocus:d,defaultValue:s,fullWidth:v,multiline:R,name:J,rows:Z,maxRows:D,minRows:G,type:ee,value:H,id:l,inputRef:A,onBlur:K,onChange:Q,onFocus:X,placeholder:Y,inputProps:k},x,V));return i.jsxs(ye,a({className:B(se.root,p),disabled:m,error:F,fullWidth:v,ref:t,required:y,color:u,variant:b,ownerState:z},oe,{children:[f!=null&&f!==""&&i.jsx(le,a({htmlFor:l,id:P},T,{children:f})),C?i.jsx(ie,a({"aria-describedby":I,id:l,labelId:P,value:H,input:$},g,{children:c})):$,h&&i.jsx(ve,a({id:I},O,{children:h}))]}))}),qe=He;export{ve as F,qe as T,me as a,j as f,he as g,Me as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aC as d,aB as g,aD as b,aG as e,r as m,aK as v,aF as T,j as x,aI as f,aJ as C}from"./index-
|
|
1
|
+
import{aC as d,aB as g,aD as b,aG as e,r as m,aK as v,aF as T,j as x,aI as f,aJ as C}from"./index-ylwMh6tu.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)},M=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=T(o,j),i=e({},o,{component:n,disableGutters:l,variant:c}),p=y(i);return x.jsx(M,e({as:n,className:f(p.root,r),ref:t,ownerState:i},u))}),_=U;export{_ as T,R as g,N as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{X as t,Y as r,j as a}from"./index-
|
|
1
|
+
import{X as t,Y as r,j as a}from"./index-ylwMh6tu.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,az as B,P as b,bh as R,af as E,a7 as I,B as N,E as h,q as f,Z as z,aS as _}from"./index-
|
|
1
|
+
import{r as c,u as g,j as e,a as L,az as B,P as b,bh as R,af as E,a7 as I,B as N,E as h,q as f,Z as z,aS as _}from"./index-ylwMh6tu.js";import{P as F}from"./page-header-b-7Z5M1p.js";import{A as W}from"./config-Dwya1hng.js";import{S as H}from"./layout-CjjE8stJ.js";import{S as q}from"./step-actions-C_aJ5g2U.js";import{S as O}from"./button-CRCGL4Id.js";import{d as $}from"./InfoOutlined-eJsNowz0.js";import{F as G}from"./FormControl-Bimse2fR.js";import{R as V,a as Z}from"./RadioGroup-BCw6Zfps.js";import{F as x,C as D}from"./FormControlLabel-DyDuxrZO.js";import"./content-layout-BiBqpOIx.js";import"./useFormControl-Bc6GRxco.js";import"./FormGroup-B-B4SKep.js";function j({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"})})})]})}j.propTypes={children:b.any.isRequired};const J=c.memo(j);function y({onNext:s}){const i=R(),{t:r,locale:m}=g(),[a,o]=c.useState(!1),[p,d]=c.useState(""),[S,C]=c.useState(!1),{blocklet:n,actions:u,getPublicInstance:v}=E();c.useEffect(()=>{d(I.getWhoCanAccess(n)),C(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)}},P=async t=>{a||(d(t.target.value),await A(t.target.value))},T=async t=>{const l=t.target.checked;try{o(!0),await u.configPublicToStore(l),o(!1)}catch(w){o(!1),f.error(w.message)}},k={marginRight:4,fontSize:18,verticalAlign:"text-bottom",color:i.palette.text.secondary};return e.jsxs(K,{children:[e.jsx("div",{className:"header",children:e.jsx(F,{title:r("blocklet.config.access.description")})}),e.jsx(G,{component:"fieldset",children:e.jsx(V,{name:"inherit",value:p,onChange:P,children:W.map(t=>e.jsxs("div",{style:{marginBottom:16},children:[e.jsx(x,{value:t.value,control:e.jsx(Z,{color:"primary"}),label:e.jsxs("span",{children:[e.jsx(t.icon,{style:k}),t.title[m]]})}),e.jsxs(N,{className:"tip",children:[t.description[m],t.value===h.WHO_CAN_ACCESS.ALL&&p===h.WHO_CAN_ACCESS.ALL&&n.source==="registry"&&e.jsx(J,{children:e.jsx(x,{style:{marginRight:0},value:t.value,control:e.jsx(D,{size:"small"}),label:e.jsx("span",{children:r("blocklet.config.access.publicToStore")}),onChange:T,checked:S,disabled:a})})]})]},t.value))})}),e.jsx(q,{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")})})]})}y.propTypes={onNext:b.func};y.defaultProps={onNext:()=>{}};const K=z(H)`
|
|
2
2
|
height: 100%;
|
|
3
3
|
overflow-y: auto;
|
|
4
4
|
.header {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{X as E,Y as I,j as t,r as l,az as M,aO as z,aP as D,aQ as _,P as u,Z as R}from"./index-
|
|
1
|
+
import{X as E,Y as I,j as t,r as l,az as M,aO as z,aP as D,aQ as _,P as u,Z as R}from"./index-ylwMh6tu.js";import{L as b,a as C}from"./ListItemText-DEJDVS_t.js";var o={},O=I;Object.defineProperty(o,"__esModule",{value:!0});var p=o.default=void 0,S=O(E()),T=t;p=o.default=(0,S.default)((0,T.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreHoriz");function d({actions:m,size:f,...y}){const[n,i]=l.useState(null),v=!!n,x=e=>{try{e.stopPropagation(),e.preventDefault()}catch{}i(e.currentTarget)},a=e=>{try{e.stopPropagation(),e.preventDefault()}catch{}i(null)};return t.jsxs(k,{...y,children:[t.jsx(M,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"actions-menu-icon",onClick:x,size:f,children:t.jsx(p,{})}),t.jsx(z,{id:"actions-menu","data-cy":"actions-menu",anchorEl:n,keepMounted:!0,open:v,onClose:a,slotProps:{paper:{}},children:m.map((e,r)=>{if(typeof e=="function")return e({close:a});if(e.separator)return t.jsx(D,{},`separator-${r}`);const{icon:h,text:j,render:q,onClick:s,disabled:g=!1,...P}=e;return l.createElement(_,{...P,disabled:g,dense:!0,onClick:async c=>{c.stopPropagation(),await(s==null?void 0:s(c)),a()},key:r,"data-cy":`actions-menu-${r}`},t.jsx(b,{style:{minWidth:24,marginRight:8},children:h}),t.jsx(C,{primary:j}))})})]})}d.propTypes={actions:u.array,size:u.oneOf(["small","medium","large"])};d.defaultProps={actions:[],size:"small"};const k=R.div``;export{d as A};
|