@abtnode/blocklet-services 1.16.33-beta-20241024-064549-2c1ad302 → 1.16.33-beta-20241028-164124-17cf3c21
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/cache.js +39 -0
- package/api/index.js +121 -2
- package/api/libs/api.js +3 -3
- package/api/libs/connect/session.js +44 -53
- package/api/libs/kyc.js +9 -0
- package/api/libs/push-kit/index.js +17 -2
- package/api/middlewares/verify-sig.js +35 -3
- package/api/routes/blocklet.js +0 -13
- package/api/routes/env.js +2 -2
- package/api/routes/oauth.js +11 -7
- package/api/routes/user-session.js +38 -23
- package/api/routes/user.js +6 -7
- package/api/services/auth/index.js +43 -64
- package/api/services/kyc/index.js +56 -32
- package/api/util/attach-shared-utils.js +113 -19
- package/api/util/index.js +13 -12
- package/dist/assets/{Add-Bl82G48c.js → Add-DhnwVxhZ.js} +1 -1
- package/dist/assets/{Alert-B9Rlqmtk.js → Alert-C2mTW_RW.js} +1 -1
- package/dist/assets/{ArrowDropDown-z6CkvFic.js → ArrowDropDown-wj9U9ZE8.js} +1 -1
- package/dist/assets/{Autocomplete-C0mtAXbg.js → Autocomplete-CmEAN8J-.js} +1 -1
- package/dist/assets/{Avatar-LMc5QpZl.js → Avatar-BZ_OPd3a.js} +1 -1
- package/dist/assets/{ButtonGroup-Bvw5eHAy.js → ButtonGroup-CFQqy_jV.js} +1 -1
- package/dist/assets/CSSTransition-CJDdpnYB.js +1 -0
- package/dist/assets/{CheckCircle-CW1NWF0M.js → CheckCircle-DK6y1v0b.js} +1 -1
- package/dist/assets/{ChevronLeft-Bc2dOBpo.js → ChevronLeft-BqHB6tsg.js} +1 -1
- package/dist/assets/{ChevronRight-y7cPaDQ3.js → ChevronRight-DwKqpeOS.js} +1 -1
- package/dist/assets/{Close-DLWmZbtN.js → Close-CdDd2weK.js} +1 -1
- package/dist/assets/{CloseOutlined-7w3yHb7q.js → CloseOutlined-KF-hdrv3.js} +1 -1
- package/dist/assets/{Delete-FZyEAOwe.js → Delete-P7WqUbyQ.js} +1 -1
- package/dist/assets/{DeleteOutline-B-H27VeQ.js → DeleteOutline-BrrioL98.js} +1 -1
- package/dist/assets/{DialogContentText-CiyJlDpv.js → DialogContentText-BECZzyeS.js} +1 -1
- package/dist/assets/{Done-BEW0zhw2.js → Done-B8u3JQ36.js} +1 -1
- package/dist/assets/{Download-BfRlCRO0.js → Download-DBU6UuKg.js} +1 -1
- package/dist/assets/{EditIcon-CG4JGMyT.js → EditIcon-BV3Q9c3s.js} +1 -1
- package/dist/assets/{Error-C2cvwDlh.js → Error-CjCi6iqE.js} +1 -1
- package/dist/assets/{ExpandMore-CVPXcP59.js → ExpandMore-BjFaf3Fo.js} +1 -1
- package/dist/assets/FormControl-B9P20sHZ.js +1 -0
- package/dist/assets/FormControlLabel-C2tfmf09.js +1 -0
- package/dist/assets/{FormGroup-DoibujUR.js → FormGroup-QeEOGRIO.js} +1 -1
- package/dist/assets/{Google-BkswiX56.js → Google-B7LRQAsM.js} +3 -3
- package/dist/assets/{Grid-DmS931mb.js → Grid-BArO7d1G.js} +1 -1
- package/dist/assets/HelpOutline-It0-5Kn2.js +1 -0
- package/dist/assets/{Hidden-DFLNRBK7.js → Hidden-CpExY3Hv.js} +1 -1
- package/dist/assets/{InfoOutlined-BGl9NpGF.js → InfoOutlined-DEMaFK-w.js} +1 -1
- package/dist/assets/{InputAdornment-BfRAjWFP.js → InputAdornment-BFyVcV9g.js} +1 -1
- package/dist/assets/{InputLabel-snet_z2M.js → InputLabel-FW_WnrBG.js} +1 -1
- package/dist/assets/{LastPage-KoP1Fd4R.js → LastPage-BbNDF-1B.js} +1 -1
- package/dist/assets/{Launch-DaqmeZ7p.js → Launch-CM54bxPy.js} +1 -1
- package/dist/assets/{LaunchOutlined-D8_8q_U2.js → LaunchOutlined-DQOUx0IB.js} +1 -1
- package/dist/assets/{Link-ZwKMc2xW.js → Link-BLv1ybKR.js} +1 -1
- package/dist/assets/ListItemButton-BhIitXNK.js +1 -0
- package/dist/assets/{LoadingButton-DAYzECCB.js → LoadingButton-Do8QGr9D.js} +1 -1
- package/dist/assets/{LockIcon-CzOlJg7E.js → LockIcon-uGDnriV5.js} +1 -1
- package/dist/assets/{Loop-DdSi2a5X.js → Loop-DQX1T4wF.js} +1 -1
- package/dist/assets/MarkEmailRead-BdVitMKq.js +1 -0
- package/dist/assets/{Menu-cPWOWdJv.js → Menu-B60nijwd.js} +1 -1
- package/dist/assets/{MoreHoriz-CCaXi0-D.js → MoreHoriz-Cwgb_ZWA.js} +1 -1
- package/dist/assets/MoreVert-6z9sYyBh.js +1 -0
- package/dist/assets/{OpenInNew-DhmdNIIA.js → OpenInNew-B7MVFrbE.js} +1 -1
- package/dist/assets/Pagination-C8kC-7d4.js +2 -0
- package/dist/assets/{PlayArrow-dbaJvP3i.js → PlayArrow-CyW2vtN8.js} +1 -1
- package/dist/assets/{QuestionMarkCircle-ClghFyf8.js → QuestionMarkCircle-Dkgs-LrD.js} +1 -1
- package/dist/assets/{RadioGroup-h39eYIOw.js → RadioGroup-F9HJgTgP.js} +1 -1
- package/dist/assets/{Search-Deg4mgEt.js → Search-Bm4BV5ff.js} +1 -1
- package/dist/assets/{Select-D8wgZEYi.js → Select-DN5ZDrhq.js} +2 -2
- package/dist/assets/{ServerLogo-C-IdWQab.js → ServerLogo-qj6BKZhH.js} +1 -1
- package/dist/assets/{Skeleton-DTHod0yi.js → Skeleton-BHxGQUwb.js} +4 -4
- package/dist/assets/{Slider-BGdMADx-.js → Slider-DZmSOFez.js} +1 -1
- package/dist/assets/{Stack-Cp3hYWEn.js → Stack-CcM0sATd.js} +1 -1
- package/dist/assets/{Stepper-BYg7nOyi.js → Stepper-VAkPR7Rp.js} +1 -1
- package/dist/assets/{TextField-COEnibZX.js → TextField-CVbbJh-y.js} +1 -1
- package/dist/assets/{Toolbar-gvJQuyml.js → Toolbar-DMWwm961.js} +1 -1
- package/dist/assets/{Verified-BYBUZULO.js → Verified-CracX5_0.js} +1 -1
- package/dist/assets/{ViewColumn-C-7sjz0Y.js → ViewColumn-cHwmzgaQ.js} +1 -1
- package/dist/assets/{ViewList-JViuspE8.js → ViewList-DEr3Y-iU.js} +1 -1
- package/dist/assets/access-control-DEaRRq7A.js +13 -0
- package/dist/assets/{actions-BvIgnlgP.js → actions-BaCBwrwa.js} +1 -1
- package/dist/assets/{add-component-core-CF3Wvpy3.js → add-component-core-CTd25DO_.js} +38 -38
- package/dist/assets/add-resource-BcsfLDaF.js +1 -0
- package/dist/assets/{addon-BN5Sfj4m.js → addon-B5M4Vtbg.js} +1 -1
- package/dist/assets/{analytics-jhEGduS7.js → analytics-DKUh0ZA1.js} +8 -8
- package/dist/assets/api-noKs5rUY.js +1 -0
- package/dist/assets/ar-2TonDRvZ.js +1 -0
- package/dist/assets/ar-j9K5GatZ.js +1 -0
- package/dist/assets/audit-logs-DEv30kSD.js +58 -0
- package/dist/assets/{base32-RJwtUwTG.js → base32-BbBkrI_s.js} +1 -1
- package/dist/assets/{bundle-avatar-CYj37kYo.js → bundle-avatar-DFcMZdHK.js} +1 -1
- package/dist/assets/{button-Bzg3GLCP.js → button-WHxIb92N.js} +1 -1
- package/dist/assets/{click-to-copy-BxqXxgUi.js → click-to-copy-DSLKklSI.js} +1 -1
- package/dist/assets/{complete-DkKqvq-n.js → complete-CAaHcOBS.js} +1 -1
- package/dist/assets/{component-CBSn0ylq.js → component-_5q7tWN6.js} +81 -81
- package/dist/assets/{config-W5zOORTl.js → config-COlGV3BW.js} +2 -2
- package/dist/assets/config-_6fNEXak.js +1 -0
- package/dist/assets/{config-navigation-acog9zxt.js → config-navigation-DdfU54Ga.js} +5 -5
- package/dist/assets/{confirm-BD8lcIjf.js → confirm-CPhW4Ln4.js} +1 -1
- package/dist/assets/{connect-DUt6GuMA.js → connect-CJYVrjZW.js} +1 -1
- package/dist/assets/{connect-Cau7HJrv.js → connect-CutE2j6W.js} +1 -1
- package/dist/assets/connect-to-ByrmSC7Q.js +54 -0
- package/dist/assets/{content-layout--Pzx1mcC.js → content-layout-NMxrW85n.js} +1 -1
- package/dist/assets/{dashboard-CIOwnQZx.js → dashboard-yyANkyH0.js} +9 -9
- package/dist/assets/de-B1aG8zWS.js +1 -0
- package/dist/assets/de-BVh3hwT3.js +1 -0
- package/dist/assets/{deprecate-D_97v-_E.js → deprecate-TLU2j5Nl.js} +1 -1
- package/dist/assets/{did-address-DgsfKQl1.js → did-address-qp4O986k.js} +1 -1
- package/dist/assets/{domain-zy-h52DT.js → domain-BobgkNRn.js} +1 -1
- package/dist/assets/{domain-list-tyAcumiG.js → domain-list-nelUcVaZ.js} +2 -2
- package/dist/assets/email-BmqNkTVh.js +18 -0
- package/dist/assets/emotion-cache.browser.esm-CRw46sQ7.js +1 -0
- package/dist/assets/es-B78wkrSg.js +1 -0
- package/dist/assets/es-BEwxvJ2s.js +1 -0
- package/dist/assets/{exchange-passport-DPiMkxjA.js → exchange-passport-YyjxxQGp.js} +1 -1
- package/dist/assets/{fallback-DUmnMg78.js → fallback-DpZp1UKo.js} +1 -1
- package/dist/assets/form-text-input-Dnp-THZ5.js +11 -0
- package/dist/assets/{format-error-D0C8Qna1.js → format-error-BvNwPRch.js} +1 -1
- package/dist/assets/fr-Cvy3dZN3.js +1 -0
- package/dist/assets/fr-CyBvbwlz.js +1 -0
- package/dist/assets/{fuel-CZZpMc32.js → fuel-DwAfHv3P.js} +1 -1
- package/dist/assets/{fullpage-ov1kRa00.js → fullpage-BFccehDH.js} +1 -1
- package/dist/assets/hi-CiLl3Zi6.js +1 -0
- package/dist/assets/hi-nvWOxhan.js +1 -0
- package/dist/assets/{home-gwd5aHrM.js → home-BF01oQMN.js} +1 -1
- package/dist/assets/id-Cl0lvxW7.js +1 -0
- package/dist/assets/id-FWMMrTxm.js +1 -0
- package/dist/assets/{iframe-BIzC7nPA.js → iframe-CGjP6x7t.js} +1 -1
- package/dist/assets/index-0R3zcGhj.js +126 -0
- package/dist/assets/{index-BcvXX_mO.js → index-4YjFb1t8.js} +1 -1
- package/dist/assets/{index-DcKMlzdo.js → index-B1jXhAXk.js} +1 -1
- package/dist/assets/{index-rOGdJKYL.js → index-B61Zk4zc.js} +1 -1
- package/dist/assets/{index-AfbTuUW5.js → index-B6rU6yZ1.js} +7 -7
- package/dist/assets/{index-C_0JNAm2.js → index-BAsIkYmI.js} +1 -1
- package/dist/assets/{index-Q7ZUJ_jr.js → index-BEmU10Y0.js} +11 -11
- package/dist/assets/index-BFsNvHHz.js +22 -0
- package/dist/assets/{index-BjLsHd9C.js → index-BHRFloRH.js} +1 -1
- package/dist/assets/index-BZ9M67Kd.js +5 -0
- package/dist/assets/{index-COU4Nu6y.js → index-BZKKn0ch.js} +1 -1
- package/dist/assets/{index-B-DC1bkM.js → index-BnLNgi5J.js} +1 -1
- package/dist/assets/{index-CES_wWCV.js → index-BowU-Rc8.js} +183 -183
- package/dist/assets/index-Br6smtqw.js +1 -0
- package/dist/assets/{index-bwXQ8Wpi.js → index-BxX33nUX.js} +14 -13
- package/dist/assets/{index-B8-zdW7s.js → index-C4-tvqA6.js} +5 -5
- package/dist/assets/{index-BqpKWYMh.js → index-C6bJ8C3n.js} +1 -1
- package/dist/assets/{index-BJmzQOKo.js → index-CDo-yvx8.js} +1 -1
- package/dist/assets/index-C_izWh42.js +11 -0
- package/dist/assets/{index-D8OsCndp.js → index-CxykcKWh.js} +1 -1
- package/dist/assets/{index-QTPBiLZh.js → index-D0Foc0Tz.js} +1 -1
- package/dist/assets/{index-BYSwxOyW.js → index-D5jbzTmg.js} +1 -1
- package/dist/assets/index-DH4lKXWs.js +11 -0
- package/dist/assets/{index-DsWS2z9f.js → index-DaCSO68v.js} +1 -1
- package/dist/assets/{index-XlLZRf68.js → index-DaRP45oo.js} +1 -1
- package/dist/assets/{index-Bv4e_rV5.js → index-DbC1wngE.js} +1 -1
- package/dist/assets/index-Dnw0yymR.js +1 -0
- package/dist/assets/{index-Wi2p68c2.js → index-DsX4E8f1.js} +1 -1
- package/dist/assets/{index-C2AukIic.js → index-DtHgjXc_.js} +1 -1
- package/dist/assets/{index-DS-kwJv8.js → index-DusV8FU1.js} +1 -1
- package/dist/assets/index-FWU8WNJ8.js +1 -0
- package/dist/assets/{index-BA1E4qQ4.js → index-LmZHdjQZ.js} +1 -1
- package/dist/assets/{index-CE4JYDnG.js → index-RHJlosGb.js} +4 -4
- package/dist/assets/index-_uCAkv_0.js +316 -0
- package/dist/assets/{index-CNybmfDH.js → index-dmc3Tzez.js} +1 -1
- package/dist/assets/{index.es-HA92kWdG.js → index.es-DjXtuSXa.js} +3 -3
- package/dist/assets/{invitation-B49_oImo.js → invitation-CitdNTlE.js} +1 -1
- package/dist/assets/{invite-V3Nbkyr9.js → invite-8bX-82iQ.js} +1 -1
- package/dist/assets/isEmail-DlDmj0fr.js +1 -0
- package/dist/assets/{issue-passport-BK_rmsMU.js → issue-passport-DlN6RZob.js} +1 -1
- package/dist/assets/{item-ChdkonTR.js → item-CKNXAp6H.js} +1 -1
- package/dist/assets/ja-Be6ZrJ3j.js +1 -0
- package/dist/assets/ja-Uy7OpVJX.js +1 -0
- package/dist/assets/{jss-plugin-props-sort.esm-DBVL9gMW.js → jss-plugin-props-sort.esm-DoSjjNR1.js} +5 -5
- package/dist/assets/ko-631_NPZL.js +1 -0
- package/dist/assets/ko-RAcT5Den.js +1 -0
- package/dist/assets/{launch-result-message-BAr02bV5.js → launch-result-message-JFKmiVbN.js} +1 -1
- package/dist/assets/{layout-bf8MnH7p.js → layout-DEXenHhy.js} +1 -1
- package/dist/assets/{list-header-BdXS3bwO.js → list-header-7vVYIW_T.js} +1 -1
- package/dist/assets/localization-DdE_yTeV.js +1 -0
- package/dist/assets/{log-CEafQKJ9.js → log-ZCJiZb-D.js} +1 -1
- package/dist/assets/{login-CEkmeGqM.js → login-64rLho-5.js} +1 -1
- package/dist/assets/{login-oauth-callback-BKsN-may.js → login-oauth-callback-nOgNHNCk.js} +1 -1
- package/dist/assets/logo-uploader-Cz1267Av.js +133 -0
- package/dist/assets/{lost-passport-BKV23uoE.js → lost-passport-DjJtlNVj.js} +3 -3
- package/dist/assets/{lottie-Bmh0Xil_.js → lottie-DoYE5XDB.js} +1 -1
- package/dist/assets/notifications-Cv1XH2yb.js +65 -0
- package/dist/assets/{open-window-BxfESFgZ.js → open-window-CN5TQ87C.js} +1 -1
- package/dist/assets/overview-kalRt_uR.js +12 -0
- package/dist/assets/{page-header-C6Www8xa.js → page-header-BmLNlOnD.js} +1 -1
- package/dist/assets/{permission-C0wbV6KF.js → permission-DUsbjffq.js} +1 -1
- package/dist/assets/{preferences-DgOndnl4.js → preferences-ZO1kLbOx.js} +1 -1
- package/dist/assets/pt-BlLvTTrm.js +1 -0
- package/dist/assets/pt-CTpkGCgP.js +1 -0
- package/dist/assets/publish-resource-B2rKe7a9.js +1 -0
- package/dist/assets/purify.es-Bq0E5Q3l.js +2 -0
- package/dist/assets/react-BTu1Y-_j.js +56 -0
- package/dist/assets/{redux-B8mroqAb.js → redux-CJ8S87pk.js} +1 -1
- package/dist/assets/refType-CT_vAXIZ.js +1 -0
- package/dist/assets/resource-dialog-D_8tTarn.js +4 -0
- package/dist/assets/ru-Culp1KLs.js +1 -0
- package/dist/assets/ru-sSBv7F2t.js +1 -0
- package/dist/assets/sdk-C3SAOjUt.js +1 -0
- package/dist/assets/{selector-B2UrJyEC.js → selector-Rhni_cbO.js} +3 -3
- package/dist/assets/session-4S4FY2oN.js +1 -0
- package/dist/assets/setup-BQ-DnQht.js +19 -0
- package/dist/assets/{shorten-label-C69K-2N4.js → shorten-label-8aKNnW15.js} +1 -1
- package/dist/assets/simple-select-CNSx0Qbg.js +1 -0
- package/dist/assets/{slicedToArray-Btbq_uXo.js → slicedToArray-vg-R5s0s.js} +2 -2
- package/dist/assets/{spaces-CKA3haGw.js → spaces-BcZSz_wm.js} +1 -1
- package/dist/assets/{start-E4q8KtSK.js → start-CqQHbsvY.js} +1 -1
- package/dist/assets/{step-actions-Dv65pQs7.js → step-actions-DV3o9hve.js} +1 -1
- package/dist/assets/{studio-C9Z81BQt.js → studio-D_pIJx8G.js} +1 -1
- package/dist/assets/{switch-control-Cct9SW8-.js → switch-control-C-X_dl1C.js} +1 -1
- package/dist/assets/th-Dqms8yb0.js +1 -0
- package/dist/assets/th-Dv20telW.js +1 -0
- package/dist/assets/{toUpper-DjVC4j_j.js → toUpper-CqfCm6FQ.js} +1 -1
- package/dist/assets/{transfer-W8UlEJt-.js → transfer-CSfZjjyt.js} +1 -1
- package/dist/assets/trim-CXCEOOfq.js +1 -0
- package/dist/assets/{uniqBy-BzzuWGYh.js → uniqBy--m6Xe_2K.js} +1 -1
- package/dist/assets/{unsubscribe-BkeOgqWI.js → unsubscribe-BJWyVFrT.js} +1 -1
- package/dist/assets/{url-join-BLh7jCrJ.js → url-join-CAnJBM33.js} +1 -1
- package/dist/assets/use-blocklet-info-for-connect-did-spaces-BWR6SXSQ.js +1 -0
- package/dist/assets/{use-mobile-BJoJTGF0.js → use-mobile-BBtcVjXr.js} +1 -1
- package/dist/assets/{useAsync-CvPpFYs-.js → useAsync-DTvP9Zxi.js} +1 -1
- package/dist/assets/{useFormControl-BXRE7Su9.js → useFormControl-CqDUGVwx.js} +1 -1
- package/dist/assets/{useLocalStorage-BJH73q2r.js → useLocalStorage-BSk8yrmI.js} +1 -1
- package/dist/assets/{useSetState-CJBhbXdV.js → useSetState-Dvi1U0Nw.js} +1 -1
- package/dist/assets/useSlot-CBvar7i-.js +1 -0
- package/dist/assets/{useSlotProps-Bo-Lx2a7.js → useSlotProps-BO61t83_.js} +1 -1
- package/dist/assets/useThemeProps-BVeww5NE.js +1 -0
- package/dist/assets/user-center-DxinbhvA.js +1 -0
- package/dist/assets/{user-sessions-9jxxDLYT.js → user-sessions-BGeFoCxv.js} +1 -1
- package/dist/assets/{util-ZHGnEGmF.js → util-DQZs28G6.js} +1 -1
- package/dist/assets/vi-B-VzHaKw.js +1 -0
- package/dist/assets/vi-DjcU4tKh.js +1 -0
- package/dist/assets/wrap-locale-B-fXOOcn.js +1 -0
- package/dist/assets/zh-DWYwLndz.js +1 -0
- package/dist/assets/zh-tw-3Ki06u1b.js +1 -0
- package/dist/assets/zh-tw-B7lbXLVn.js +1 -0
- package/dist/assets/zh-u8iElwOC.js +2 -0
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +30 -27
- package/api/util/get-dynamic-service-config.js +0 -48
- package/dist/assets/Edit-Cbvlvh2w.js +0 -11
- package/dist/assets/FormControl-vM9EJwp4.js +0 -1
- package/dist/assets/FormControlLabel-CS28YgVs.js +0 -1
- package/dist/assets/MoreVert-D4SS6MnA.js +0 -1
- package/dist/assets/Pagination-BXlUtx3B.js +0 -2
- package/dist/assets/access-control-BDg9FQV3.js +0 -13
- package/dist/assets/add-resource-DLKAe3re.js +0 -1
- package/dist/assets/api-JbjuY7JN.js +0 -1
- package/dist/assets/ar-BcsWe-M7.js +0 -1
- package/dist/assets/ar-rur8F6ox.js +0 -1
- package/dist/assets/audit-logs-Vn5iZ4P_.js +0 -58
- package/dist/assets/config-ONP_4X_B.js +0 -1
- package/dist/assets/connect-to-GhSR8jRw.js +0 -54
- package/dist/assets/de-C-5DrcsF.js +0 -1
- package/dist/assets/de-f8XZAb4q.js +0 -1
- package/dist/assets/email-BINRPUSY.js +0 -18
- package/dist/assets/emotion-cache.browser.esm-ByukGais.js +0 -1
- package/dist/assets/es-CDmziQ2d.js +0 -1
- package/dist/assets/es-Dkw0SgdE.js +0 -1
- package/dist/assets/fr-CutjrzQz.js +0 -1
- package/dist/assets/fr-RdOP2uWC.js +0 -1
- package/dist/assets/hi-BwtTylyX.js +0 -1
- package/dist/assets/hi-V6iw7v5V.js +0 -1
- package/dist/assets/id-CeB6Ugb-.js +0 -1
- package/dist/assets/id-Dz8dfVhg.js +0 -1
- package/dist/assets/index-BHXHtIJm.js +0 -126
- package/dist/assets/index-CXg0jLCN.js +0 -11
- package/dist/assets/index-DW7dwoqE.js +0 -11
- package/dist/assets/index-DmdwpBJN.js +0 -261
- package/dist/assets/index-DqHzmyne.js +0 -68
- package/dist/assets/index-HqFqdQ4r.js +0 -1
- package/dist/assets/index-RVvYAb40.js +0 -1
- package/dist/assets/index-wVSweHe6.js +0 -1
- package/dist/assets/index.esm-S4QOHn5V.js +0 -1
- package/dist/assets/ja-BZrZ4ULY.js +0 -1
- package/dist/assets/ja-DlWywLev.js +0 -1
- package/dist/assets/ko-DLaz-pjP.js +0 -1
- package/dist/assets/ko-ESHUwy9c.js +0 -1
- package/dist/assets/localization-BlAk-2Dh.js +0 -1
- package/dist/assets/logo-uploader-DO_ePInN.js +0 -122
- package/dist/assets/mode-B2dWMeTO.js +0 -1
- package/dist/assets/notifications-CDn5GICo.js +0 -62
- package/dist/assets/overview-DvxryhGu.js +0 -12
- package/dist/assets/pt-BMSFPKAT.js +0 -1
- package/dist/assets/pt-CysEhQ_Z.js +0 -1
- package/dist/assets/publish-resource-BK8LfyYg.js +0 -1
- package/dist/assets/react-DWdAOKA_.js +0 -57
- package/dist/assets/resource-dialog-CxQ2RdqX.js +0 -57
- package/dist/assets/ru-2aTr2i-M.js +0 -1
- package/dist/assets/ru-C-IO4heq.js +0 -1
- package/dist/assets/sdk-BzFjs0zU.js +0 -1
- package/dist/assets/session-CPw6Z6tL.js +0 -1
- package/dist/assets/setup-C-eSKhTS.js +0 -19
- package/dist/assets/th-Bd6_ise5.js +0 -1
- package/dist/assets/th-D2W7tb3N.js +0 -1
- package/dist/assets/trim-pCqXvQz3.js +0 -1
- package/dist/assets/use-blocklet-info-for-connect-did-spaces-BfIvMuGO.js +0 -1
- package/dist/assets/useSlot-BnpRF9Wf.js +0 -1
- package/dist/assets/useThemeProps-NLTP4qET.js +0 -1
- package/dist/assets/user-center-DSwKYf1W.js +0 -1
- package/dist/assets/vi-BrQQz2Dk.js +0 -1
- package/dist/assets/vi-DTSqGMo-.js +0 -1
- package/dist/assets/wrap-locale-De5w1_ZO.js +0 -1
- package/dist/assets/zh-BUjxGa7K.js +0 -1
- package/dist/assets/zh-CT0fSzRS.js +0 -2
- package/dist/assets/zh-tw-GFcs7F29.js +0 -1
- package/dist/assets/zh-tw-i93Px0uV.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as v,j as h}from"./index-CES_wWCV.js";var o={};Object.defineProperty(o,"__esModule",{value:!0});var p=o.default=void 0;u(v);var l=h;function u(e){return e&&e.__esModule?e:{default:e}}function n(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);a&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function i(e){for(var a=1;a<arguments.length;a++){var t=arguments[a]!=null?arguments[a]:{};a%2?n(Object(t),!0).forEach(function(r){f(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):n(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function f(e,a,t){return(a=d(a))in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}function d(e){var a=m(e,"string");return typeof a=="symbol"?a:a+""}function m(e,a){if(typeof e!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var r=t.call(e,a||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(e)}var c=function(a){return(0,l.jsxs)("svg",i(i({},a),{},{children:[(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 10.673L30.72 0 12.288 10.673v14.194L0 31.982v21.345L18.432 64l12.258-7.098.03.017.03-.017L43.008 64 61.44 53.327V31.982l-12.288-7.115V10.673zm10.368 22.42l-12.288-7.115V11.784L30.72 2.224l-16.512 9.56v14.194L1.92 33.093v19.122l16.512 9.561L30.69 54.68l.03.017.03-.017 12.258 7.097 16.512-9.56V33.093z",fill:"url(#paint0_linear_615_418)"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M80.005 26.07V10.03h7.737a3.795 3.795 0 0 1 3.79 3.8v1.152c0 1.01-.394 1.929-1.035 2.61a3.801 3.801 0 0 1 1.901 3.295v1.382c0 2.1-1.696 3.8-3.79 3.8h-8.603zm1.684-8.983h6.226a2.11 2.11 0 0 0 1.932-2.104V13.83a2.108 2.108 0 0 0-2.105-2.112h-6.053v5.369zm0 7.294v-5.598l6.92-.007c1.163 0 2.105.945 2.105 2.111v1.382a2.108 2.108 0 0 1-2.105 2.112h-6.92zm15.566-14.352v16.04h-1.762V10.03h1.762zm8.733 4.331h-1.827a3.816 3.816 0 0 0-3.811 3.822v4.066a3.816 3.816 0 0 0 3.811 3.822h1.827a3.817 3.817 0 0 0 3.811-3.822v-4.066a3.817 3.817 0 0 0-3.811-3.822zm-1.827 1.768c-1.131 0-2.049.92-2.049 2.054v4.066c0 1.135.918 2.054 2.049 2.054h1.827c1.131 0 2.048-.92 2.048-2.054v-4.066a2.051 2.051 0 0 0-2.048-2.054h-1.827zm21.043 9.948v-5.77h2.148l3.322 5.77h2.035l-3.821-6.638 2.993-5.198h-2.035l-2.474 4.298h-2.168V10.03h-1.762v16.047h1.762zm-5.556-7.581v-.313a2.051 2.051 0 0 0-2.048-2.054h-1.827c-1.132 0-2.049.92-2.049 2.054v4.066c0 1.135.917 2.054 2.049 2.054h1.827c1.131 0 2.048-.92 2.048-2.054v-.313h1.762v.313a3.816 3.816 0 0 1-3.81 3.822h-1.827a3.816 3.816 0 0 1-3.811-3.822v-4.066a3.816 3.816 0 0 1 3.811-3.822h1.827a3.816 3.816 0 0 1 3.81 3.822v.313h-1.762zm17.918 7.575V10.03h-1.762v16.04h1.762zm4.989-5.372v1.55c0 1.135.917 2.054 2.049 2.054h1.827c1.131 0 2.048-.92 2.048-2.054v-.313h1.762v.313a3.816 3.816 0 0 1-3.81 3.822h-1.827a3.816 3.816 0 0 1-3.811-3.822v-4.066a3.816 3.816 0 0 1 3.811-3.822h1.827a3.816 3.816 0 0 1 3.81 3.822v.748h.001v1.768h-7.687zm5.924-1.768h-5.924v-.748c0-1.134.917-2.054 2.049-2.054h1.827c1.131 0 2.048.92 2.048 2.054v.748zm5.489-1.917H152.4v-1.768h1.568V12.39h1.684v2.856h4.077v1.768h-4.077v5.693c0 .925.747 1.675 1.669 1.675s1.67-.75 1.67-1.675v-.351h1.684v.351a3.358 3.358 0 0 1-3.354 3.364 3.358 3.358 0 0 1-3.353-3.364v-5.693z",fill:"#121319"}),(0,l.jsx)("path",{d:"M91.034 36.52c-.112.196-.233.34-.364.434a.793.793 0 0 1-.462.126c-.196 0-.41-.07-.644-.21-.224-.15-.495-.313-.812-.49a6.307 6.307 0 0 0-1.12-.476c-.42-.15-.92-.224-1.498-.224-.523 0-.98.065-1.372.196a2.87 2.87 0 0 0-.994.518 2.117 2.117 0 0 0-.588.812 2.59 2.59 0 0 0-.196 1.022c0 .476.13.872.392 1.19.27.317.625.588 1.064.812.439.224.938.424 1.498.602.56.177 1.134.368 1.722.574.588.196 1.162.429 1.722.7.56.261 1.06.597 1.498 1.008.439.401.789.896 1.05 1.484.27.588.406 1.302.406 2.142 0 .914-.159 1.773-.476 2.576a5.884 5.884 0 0 1-1.372 2.086c-.597.588-1.33 1.054-2.198 1.4-.868.336-1.862.504-2.982.504a9.288 9.288 0 0 1-1.904-.196 9.827 9.827 0 0 1-1.806-.532 9.763 9.763 0 0 1-1.61-.84 7.8 7.8 0 0 1-1.344-1.092l1.106-1.806c.093-.131.215-.238.364-.322a.883.883 0 0 1 .476-.14c.233 0 .485.098.756.294.27.186.593.396.966.63.373.233.807.448 1.302.644.504.186 1.106.28 1.806.28 1.073 0 1.904-.252 2.492-.756.588-.514.882-1.246.882-2.198 0-.532-.135-.966-.406-1.302a3.073 3.073 0 0 0-1.05-.84 7.585 7.585 0 0 0-1.498-.588c-.56-.159-1.13-.332-1.708-.518a14.738 14.738 0 0 1-1.708-.672 5.535 5.535 0 0 1-1.498-1.022 4.75 4.75 0 0 1-1.064-1.568c-.261-.635-.392-1.414-.392-2.338 0-.738.145-1.456.434-2.156.299-.7.728-1.321 1.288-1.862.56-.542 1.25-.976 2.072-1.302.821-.327 1.764-.49 2.828-.49 1.195 0 2.296.186 3.304.56 1.008.373 1.867.896 2.576 1.568l-.938 1.778zM104.274 44.248a3.95 3.95 0 0 0-.196-1.26 2.909 2.909 0 0 0-.56-1.05 2.557 2.557 0 0 0-.966-.7c-.382-.178-.83-.266-1.344-.266-.998 0-1.787.284-2.365.854-.57.569-.934 1.376-1.093 2.422h6.524zm-6.594 2.086c.056.737.187 1.376.392 1.918a4 4 0 0 0 .813 1.33c.335.345.732.606 1.189.784.467.168.98.252 1.54.252s1.041-.066 1.442-.196c.411-.131.766-.276 1.064-.434.308-.159.574-.304.798-.434a1.38 1.38 0 0 1 .672-.196c.29 0 .504.107.644.322l.994 1.26a5.902 5.902 0 0 1-1.288 1.134 7.653 7.653 0 0 1-1.498.728 8.298 8.298 0 0 1-1.582.378c-.532.074-1.05.112-1.554.112a7.772 7.772 0 0 1-2.785-.49 6.361 6.361 0 0 1-2.24-1.47c-.635-.654-1.135-1.456-1.499-2.408-.364-.962-.545-2.072-.545-3.332 0-.98.158-1.9.476-2.758.317-.868.77-1.62 1.358-2.254a6.47 6.47 0 0 1 2.17-1.526c.858-.374 1.824-.56 2.897-.56.906 0 1.741.144 2.506.434.766.289 1.424.714 1.974 1.274.551.55.98 1.232 1.288 2.044.318.802.476 1.722.476 2.758 0 .522-.056.877-.168 1.064-.112.177-.326.266-.644.266h-8.89zM113.24 41.21c.448-.859.98-1.531 1.596-2.016.616-.495 1.344-.742 2.184-.742.662 0 1.194.144 1.596.434l-.224 2.59c-.047.168-.117.289-.21.364a.558.558 0 0 1-.35.098c-.14 0-.35-.024-.63-.07a4.694 4.694 0 0 0-.798-.07c-.383 0-.724.056-1.022.168-.299.112-.57.275-.812.49a3.354 3.354 0 0 0-.63.756c-.178.298-.346.639-.504 1.022v8.848h-3.458V38.718h2.03c.354 0 .602.065.742.196.14.121.233.345.28.672l.21 1.624zM133.373 38.718l-5.698 14.364h-3.136l-5.698-14.364h2.856c.261 0 .476.06.644.182a.849.849 0 0 1 .35.462l2.772 7.672a20.846 20.846 0 0 1 .686 2.604 31.6 31.6 0 0 1 .308-1.288c.112-.43.247-.868.406-1.316l2.828-7.672a.944.944 0 0 1 .35-.462 1 1 0 0 1 .602-.182h2.73zM144.032 44.248a3.95 3.95 0 0 0-.196-1.26 2.909 2.909 0 0 0-.56-1.05 2.557 2.557 0 0 0-.966-.7c-.382-.178-.83-.266-1.344-.266-.998 0-1.787.284-2.366.854-.569.569-.933 1.376-1.092 2.422h6.524zm-6.594 2.086c.056.737.187 1.376.392 1.918.206.532.476.975.812 1.33.336.345.733.606 1.19.784.467.168.98.252 1.54.252s1.041-.066 1.442-.196c.411-.131.766-.276 1.064-.434.308-.159.574-.304.798-.434a1.38 1.38 0 0 1 .672-.196c.29 0 .504.107.644.322l.994 1.26a5.902 5.902 0 0 1-1.288 1.134 7.653 7.653 0 0 1-1.498.728 8.298 8.298 0 0 1-1.582.378c-.532.074-1.05.112-1.554.112a7.776 7.776 0 0 1-2.786-.49 6.37 6.37 0 0 1-2.24-1.47c-.634-.654-1.134-1.456-1.498-2.408-.364-.962-.546-2.072-.546-3.332 0-.98.159-1.9.476-2.758.318-.868.77-1.62 1.358-2.254a6.48 6.48 0 0 1 2.17-1.526c.859-.374 1.825-.56 2.898-.56.906 0 1.741.144 2.506.434.766.289 1.424.714 1.974 1.274.551.55.98 1.232 1.288 2.044.318.802.476 1.722.476 2.758 0 .522-.056.877-.168 1.064-.112.177-.326.266-.644.266h-8.89zM152.997 41.21c.448-.859.98-1.531 1.596-2.016.616-.495 1.344-.742 2.184-.742.663 0 1.195.144 1.596.434l-.224 2.59c-.046.168-.116.289-.21.364a.556.556 0 0 1-.35.098c-.14 0-.35-.024-.63-.07a4.676 4.676 0 0 0-.798-.07c-.382 0-.723.056-1.022.168a2.599 2.599 0 0 0-.812.49 3.408 3.408 0 0 0-.63.756c-.177.298-.345.639-.504 1.022v8.848h-3.458V38.718h2.03c.355 0 .602.065.742.196.14.121.234.345.28.672l.21 1.624z",fill:"#121319"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 24.83L30.72 14.19 12.288 24.831v21.283L30.72 56.756l18.432-10.642V24.831zm-34.944 1.11l16.512-9.534 16.512 9.533v19.067L30.72 54.539l-16.512-9.533V25.939zm13.338-2.894a.96.96 0 0 1 .924-.696h4.5a.96.96 0 0 1 .924.696l.856 2.999 2.12 1.223 3.025-.757a.96.96 0 0 1 1.064.451l2.25 3.898a.96.96 0 0 1-.14 1.148l-2.17 2.24v2.448l2.17 2.24a.96.96 0 0 1 .14 1.148l-2.25 3.899a.96.96 0 0 1-1.065.45l-3.024-.756-2.12 1.223-.856 2.998a.96.96 0 0 1-.923.697H28.47a.96.96 0 0 1-.924-.697L26.69 44.9l-2.12-1.223-3.024.757a.96.96 0 0 1-1.065-.451l-2.25-3.898a.96.96 0 0 1 .141-1.148l2.168-2.241v-2.447l-2.168-2.241a.96.96 0 0 1-.142-1.148l2.251-3.898a.96.96 0 0 1 1.065-.451l3.025.757 2.119-1.223.856-2.999zm.44 4.467a.96.96 0 0 0 .443-.567l.765-2.676h3.053l.764 2.676a.96.96 0 0 0 .443.567l2.792 1.612a.96.96 0 0 0 .713.1l2.7-.676 1.526 2.644-1.935 2a.96.96 0 0 0-.27.668v3.223c0 .25.097.489.27.668l1.935 2-1.527 2.643-2.699-.675a.96.96 0 0 0-.713.1l-2.792 1.612a.96.96 0 0 0-.443.567l-.764 2.676h-3.053l-.765-2.676a.96.96 0 0 0-.443-.567l-2.792-1.612a.96.96 0 0 0-.713-.1l-2.7.675-1.526-2.643 1.935-2a.96.96 0 0 0 .27-.668V33.86a.96.96 0 0 0-.27-.667l-1.935-2 1.527-2.644 2.7.676a.96.96 0 0 0 .712-.1l2.792-1.612zm2.734 14.128a6.168 6.168 0 1 1 0-12.337 6.168 6.168 0 0 1 0 12.337zm4.248-6.169a4.248 4.248 0 1 1-8.496 0 4.248 4.248 0 0 1 8.496 0z",fill:"url(#paint1_linear_615_418)"}),(0,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"paint0_linear_615_418",x1:"30.72",y1:"96",x2:"94.667",y2:"34.611",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#0FA4B7"}),(0,l.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]}),(0,l.jsxs)("linearGradient",{id:"paint1_linear_615_418",x1:"27.437",y1:"99.246",x2:"97.761",y2:"44.937",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#0FA4B7"}),(0,l.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]})]})]}))};c.defaultProps={width:"170",height:"64",viewBox:"0 0 170 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"};c.displayName="server-logo";p=o.default=c;export{p as d};
|
|
1
|
+
import{r as v,j as h}from"./index-BowU-Rc8.js";var o={};Object.defineProperty(o,"__esModule",{value:!0});var p=o.default=void 0;u(v);var l=h;function u(e){return e&&e.__esModule?e:{default:e}}function n(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);a&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function i(e){for(var a=1;a<arguments.length;a++){var t=arguments[a]!=null?arguments[a]:{};a%2?n(Object(t),!0).forEach(function(r){f(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):n(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function f(e,a,t){return(a=d(a))in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}function d(e){var a=m(e,"string");return typeof a=="symbol"?a:a+""}function m(e,a){if(typeof e!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var r=t.call(e,a||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(e)}var c=function(a){return(0,l.jsxs)("svg",i(i({},a),{},{children:[(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 10.673L30.72 0 12.288 10.673v14.194L0 31.982v21.345L18.432 64l12.258-7.098.03.017.03-.017L43.008 64 61.44 53.327V31.982l-12.288-7.115V10.673zm10.368 22.42l-12.288-7.115V11.784L30.72 2.224l-16.512 9.56v14.194L1.92 33.093v19.122l16.512 9.561L30.69 54.68l.03.017.03-.017 12.258 7.097 16.512-9.56V33.093z",fill:"url(#paint0_linear_615_418)"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M80.005 26.07V10.03h7.737a3.795 3.795 0 0 1 3.79 3.8v1.152c0 1.01-.394 1.929-1.035 2.61a3.801 3.801 0 0 1 1.901 3.295v1.382c0 2.1-1.696 3.8-3.79 3.8h-8.603zm1.684-8.983h6.226a2.11 2.11 0 0 0 1.932-2.104V13.83a2.108 2.108 0 0 0-2.105-2.112h-6.053v5.369zm0 7.294v-5.598l6.92-.007c1.163 0 2.105.945 2.105 2.111v1.382a2.108 2.108 0 0 1-2.105 2.112h-6.92zm15.566-14.352v16.04h-1.762V10.03h1.762zm8.733 4.331h-1.827a3.816 3.816 0 0 0-3.811 3.822v4.066a3.816 3.816 0 0 0 3.811 3.822h1.827a3.817 3.817 0 0 0 3.811-3.822v-4.066a3.817 3.817 0 0 0-3.811-3.822zm-1.827 1.768c-1.131 0-2.049.92-2.049 2.054v4.066c0 1.135.918 2.054 2.049 2.054h1.827c1.131 0 2.048-.92 2.048-2.054v-4.066a2.051 2.051 0 0 0-2.048-2.054h-1.827zm21.043 9.948v-5.77h2.148l3.322 5.77h2.035l-3.821-6.638 2.993-5.198h-2.035l-2.474 4.298h-2.168V10.03h-1.762v16.047h1.762zm-5.556-7.581v-.313a2.051 2.051 0 0 0-2.048-2.054h-1.827c-1.132 0-2.049.92-2.049 2.054v4.066c0 1.135.917 2.054 2.049 2.054h1.827c1.131 0 2.048-.92 2.048-2.054v-.313h1.762v.313a3.816 3.816 0 0 1-3.81 3.822h-1.827a3.816 3.816 0 0 1-3.811-3.822v-4.066a3.816 3.816 0 0 1 3.811-3.822h1.827a3.816 3.816 0 0 1 3.81 3.822v.313h-1.762zm17.918 7.575V10.03h-1.762v16.04h1.762zm4.989-5.372v1.55c0 1.135.917 2.054 2.049 2.054h1.827c1.131 0 2.048-.92 2.048-2.054v-.313h1.762v.313a3.816 3.816 0 0 1-3.81 3.822h-1.827a3.816 3.816 0 0 1-3.811-3.822v-4.066a3.816 3.816 0 0 1 3.811-3.822h1.827a3.816 3.816 0 0 1 3.81 3.822v.748h.001v1.768h-7.687zm5.924-1.768h-5.924v-.748c0-1.134.917-2.054 2.049-2.054h1.827c1.131 0 2.048.92 2.048 2.054v.748zm5.489-1.917H152.4v-1.768h1.568V12.39h1.684v2.856h4.077v1.768h-4.077v5.693c0 .925.747 1.675 1.669 1.675s1.67-.75 1.67-1.675v-.351h1.684v.351a3.358 3.358 0 0 1-3.354 3.364 3.358 3.358 0 0 1-3.353-3.364v-5.693z",fill:"#121319"}),(0,l.jsx)("path",{d:"M91.034 36.52c-.112.196-.233.34-.364.434a.793.793 0 0 1-.462.126c-.196 0-.41-.07-.644-.21-.224-.15-.495-.313-.812-.49a6.307 6.307 0 0 0-1.12-.476c-.42-.15-.92-.224-1.498-.224-.523 0-.98.065-1.372.196a2.87 2.87 0 0 0-.994.518 2.117 2.117 0 0 0-.588.812 2.59 2.59 0 0 0-.196 1.022c0 .476.13.872.392 1.19.27.317.625.588 1.064.812.439.224.938.424 1.498.602.56.177 1.134.368 1.722.574.588.196 1.162.429 1.722.7.56.261 1.06.597 1.498 1.008.439.401.789.896 1.05 1.484.27.588.406 1.302.406 2.142 0 .914-.159 1.773-.476 2.576a5.884 5.884 0 0 1-1.372 2.086c-.597.588-1.33 1.054-2.198 1.4-.868.336-1.862.504-2.982.504a9.288 9.288 0 0 1-1.904-.196 9.827 9.827 0 0 1-1.806-.532 9.763 9.763 0 0 1-1.61-.84 7.8 7.8 0 0 1-1.344-1.092l1.106-1.806c.093-.131.215-.238.364-.322a.883.883 0 0 1 .476-.14c.233 0 .485.098.756.294.27.186.593.396.966.63.373.233.807.448 1.302.644.504.186 1.106.28 1.806.28 1.073 0 1.904-.252 2.492-.756.588-.514.882-1.246.882-2.198 0-.532-.135-.966-.406-1.302a3.073 3.073 0 0 0-1.05-.84 7.585 7.585 0 0 0-1.498-.588c-.56-.159-1.13-.332-1.708-.518a14.738 14.738 0 0 1-1.708-.672 5.535 5.535 0 0 1-1.498-1.022 4.75 4.75 0 0 1-1.064-1.568c-.261-.635-.392-1.414-.392-2.338 0-.738.145-1.456.434-2.156.299-.7.728-1.321 1.288-1.862.56-.542 1.25-.976 2.072-1.302.821-.327 1.764-.49 2.828-.49 1.195 0 2.296.186 3.304.56 1.008.373 1.867.896 2.576 1.568l-.938 1.778zM104.274 44.248a3.95 3.95 0 0 0-.196-1.26 2.909 2.909 0 0 0-.56-1.05 2.557 2.557 0 0 0-.966-.7c-.382-.178-.83-.266-1.344-.266-.998 0-1.787.284-2.365.854-.57.569-.934 1.376-1.093 2.422h6.524zm-6.594 2.086c.056.737.187 1.376.392 1.918a4 4 0 0 0 .813 1.33c.335.345.732.606 1.189.784.467.168.98.252 1.54.252s1.041-.066 1.442-.196c.411-.131.766-.276 1.064-.434.308-.159.574-.304.798-.434a1.38 1.38 0 0 1 .672-.196c.29 0 .504.107.644.322l.994 1.26a5.902 5.902 0 0 1-1.288 1.134 7.653 7.653 0 0 1-1.498.728 8.298 8.298 0 0 1-1.582.378c-.532.074-1.05.112-1.554.112a7.772 7.772 0 0 1-2.785-.49 6.361 6.361 0 0 1-2.24-1.47c-.635-.654-1.135-1.456-1.499-2.408-.364-.962-.545-2.072-.545-3.332 0-.98.158-1.9.476-2.758.317-.868.77-1.62 1.358-2.254a6.47 6.47 0 0 1 2.17-1.526c.858-.374 1.824-.56 2.897-.56.906 0 1.741.144 2.506.434.766.289 1.424.714 1.974 1.274.551.55.98 1.232 1.288 2.044.318.802.476 1.722.476 2.758 0 .522-.056.877-.168 1.064-.112.177-.326.266-.644.266h-8.89zM113.24 41.21c.448-.859.98-1.531 1.596-2.016.616-.495 1.344-.742 2.184-.742.662 0 1.194.144 1.596.434l-.224 2.59c-.047.168-.117.289-.21.364a.558.558 0 0 1-.35.098c-.14 0-.35-.024-.63-.07a4.694 4.694 0 0 0-.798-.07c-.383 0-.724.056-1.022.168-.299.112-.57.275-.812.49a3.354 3.354 0 0 0-.63.756c-.178.298-.346.639-.504 1.022v8.848h-3.458V38.718h2.03c.354 0 .602.065.742.196.14.121.233.345.28.672l.21 1.624zM133.373 38.718l-5.698 14.364h-3.136l-5.698-14.364h2.856c.261 0 .476.06.644.182a.849.849 0 0 1 .35.462l2.772 7.672a20.846 20.846 0 0 1 .686 2.604 31.6 31.6 0 0 1 .308-1.288c.112-.43.247-.868.406-1.316l2.828-7.672a.944.944 0 0 1 .35-.462 1 1 0 0 1 .602-.182h2.73zM144.032 44.248a3.95 3.95 0 0 0-.196-1.26 2.909 2.909 0 0 0-.56-1.05 2.557 2.557 0 0 0-.966-.7c-.382-.178-.83-.266-1.344-.266-.998 0-1.787.284-2.366.854-.569.569-.933 1.376-1.092 2.422h6.524zm-6.594 2.086c.056.737.187 1.376.392 1.918.206.532.476.975.812 1.33.336.345.733.606 1.19.784.467.168.98.252 1.54.252s1.041-.066 1.442-.196c.411-.131.766-.276 1.064-.434.308-.159.574-.304.798-.434a1.38 1.38 0 0 1 .672-.196c.29 0 .504.107.644.322l.994 1.26a5.902 5.902 0 0 1-1.288 1.134 7.653 7.653 0 0 1-1.498.728 8.298 8.298 0 0 1-1.582.378c-.532.074-1.05.112-1.554.112a7.776 7.776 0 0 1-2.786-.49 6.37 6.37 0 0 1-2.24-1.47c-.634-.654-1.134-1.456-1.498-2.408-.364-.962-.546-2.072-.546-3.332 0-.98.159-1.9.476-2.758.318-.868.77-1.62 1.358-2.254a6.48 6.48 0 0 1 2.17-1.526c.859-.374 1.825-.56 2.898-.56.906 0 1.741.144 2.506.434.766.289 1.424.714 1.974 1.274.551.55.98 1.232 1.288 2.044.318.802.476 1.722.476 2.758 0 .522-.056.877-.168 1.064-.112.177-.326.266-.644.266h-8.89zM152.997 41.21c.448-.859.98-1.531 1.596-2.016.616-.495 1.344-.742 2.184-.742.663 0 1.195.144 1.596.434l-.224 2.59c-.046.168-.116.289-.21.364a.556.556 0 0 1-.35.098c-.14 0-.35-.024-.63-.07a4.676 4.676 0 0 0-.798-.07c-.382 0-.723.056-1.022.168a2.599 2.599 0 0 0-.812.49 3.408 3.408 0 0 0-.63.756c-.177.298-.345.639-.504 1.022v8.848h-3.458V38.718h2.03c.355 0 .602.065.742.196.14.121.234.345.28.672l.21 1.624z",fill:"#121319"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 24.83L30.72 14.19 12.288 24.831v21.283L30.72 56.756l18.432-10.642V24.831zm-34.944 1.11l16.512-9.534 16.512 9.533v19.067L30.72 54.539l-16.512-9.533V25.939zm13.338-2.894a.96.96 0 0 1 .924-.696h4.5a.96.96 0 0 1 .924.696l.856 2.999 2.12 1.223 3.025-.757a.96.96 0 0 1 1.064.451l2.25 3.898a.96.96 0 0 1-.14 1.148l-2.17 2.24v2.448l2.17 2.24a.96.96 0 0 1 .14 1.148l-2.25 3.899a.96.96 0 0 1-1.065.45l-3.024-.756-2.12 1.223-.856 2.998a.96.96 0 0 1-.923.697H28.47a.96.96 0 0 1-.924-.697L26.69 44.9l-2.12-1.223-3.024.757a.96.96 0 0 1-1.065-.451l-2.25-3.898a.96.96 0 0 1 .141-1.148l2.168-2.241v-2.447l-2.168-2.241a.96.96 0 0 1-.142-1.148l2.251-3.898a.96.96 0 0 1 1.065-.451l3.025.757 2.119-1.223.856-2.999zm.44 4.467a.96.96 0 0 0 .443-.567l.765-2.676h3.053l.764 2.676a.96.96 0 0 0 .443.567l2.792 1.612a.96.96 0 0 0 .713.1l2.7-.676 1.526 2.644-1.935 2a.96.96 0 0 0-.27.668v3.223c0 .25.097.489.27.668l1.935 2-1.527 2.643-2.699-.675a.96.96 0 0 0-.713.1l-2.792 1.612a.96.96 0 0 0-.443.567l-.764 2.676h-3.053l-.765-2.676a.96.96 0 0 0-.443-.567l-2.792-1.612a.96.96 0 0 0-.713-.1l-2.7.675-1.526-2.643 1.935-2a.96.96 0 0 0 .27-.668V33.86a.96.96 0 0 0-.27-.667l-1.935-2 1.527-2.644 2.7.676a.96.96 0 0 0 .712-.1l2.792-1.612zm2.734 14.128a6.168 6.168 0 1 1 0-12.337 6.168 6.168 0 0 1 0 12.337zm4.248-6.169a4.248 4.248 0 1 1-8.496 0 4.248 4.248 0 0 1 8.496 0z",fill:"url(#paint1_linear_615_418)"}),(0,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"paint0_linear_615_418",x1:"30.72",y1:"96",x2:"94.667",y2:"34.611",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#0FA4B7"}),(0,l.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]}),(0,l.jsxs)("linearGradient",{id:"paint1_linear_615_418",x1:"27.437",y1:"99.246",x2:"97.761",y2:"44.937",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#0FA4B7"}),(0,l.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]})]})]}))};c.defaultProps={width:"170",height:"64",viewBox:"0 0 170 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"};c.displayName="server-logo";p=o.default=c;export{p as d};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aF as y,aE as w,
|
|
1
|
+
import{aF as y,aE as w,cM as b,aG as R,cN as _,cO as M,aK as o,cP as U,ah as u,r as $,aI as S,aJ as N,j,aM as A,aN as X}from"./index-BowU-Rc8.js";function E(a){return y("MuiSkeleton",a)}w("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const K=["animation","className","component","height","style","variant","width"];let r=a=>a,p,g,m,f;const P=a=>{const{classes:t,variant:e,animation:i,hasChildren:s,width:l,height:n}=a;return X({root:["root",e,i,s&&"withChildren",s&&!l&&"fitContent",s&&!n&&"heightAuto"]},E,t)},B=b(p||(p=r`
|
|
2
2
|
0% {
|
|
3
3
|
opacity: 1;
|
|
4
4
|
}
|
|
@@ -10,7 +10,7 @@ import{aF as y,aE as w,cL as b,aG as R,cM as _,cN as M,aK as o,cO as U,ah as u,r
|
|
|
10
10
|
100% {
|
|
11
11
|
opacity: 1;
|
|
12
12
|
}
|
|
13
|
-
`)),
|
|
13
|
+
`)),F=b(g||(g=r`
|
|
14
14
|
0% {
|
|
15
15
|
transform: translateX(-100%);
|
|
16
16
|
}
|
|
@@ -25,7 +25,7 @@ import{aF as y,aE as w,cL as b,aG as R,cM as _,cN as M,aK as o,cO as U,ah as u,r
|
|
|
25
25
|
}
|
|
26
26
|
`)),O=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=M(a.shape.borderRadius);return o({display:"block",backgroundColor:a.vars?a.vars.palette.Skeleton.bg:U(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
|
+
`),B),({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{aF as y,aE as w,cL as b,aG as R,cM as _,cN as M,aK as o,cO as U,ah as u,r
|
|
|
48
48
|
right: 0;
|
|
49
49
|
top: 0;
|
|
50
50
|
}
|
|
51
|
-
`),
|
|
51
|
+
`),F,(t.vars||t).palette.action.hover)),D=$.forwardRef(function(t,e){const i=S({props:t,name:"MuiSkeleton"}),{animation:s="pulse",className:l,component:n="span",height:h,style:v,variant:C="text",width:k}=i,d=N(i,K),c=o({},i,{animation:s,component:n,variant:C,hasChildren:!!d.children}),x=P(c);return j.jsx(O,o({as:n,ref:e,className:A(x.root,l),ownerState:c},d,{style:o({width:k,height:h},v)}))});export{D as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as S,d8 as St,gv as pe,cl as Lt,ch as at,cK as wt,cT as Ge,cU as $e,gw as Je,aK as c,cW as Te,aE as Pt,aF as Ct,aM as oe,j as P,aG as J,aH as B,ce as ot,cd as nt,ck as lt,eG as dt,aI as $t,cS as Tt,aJ as _t,aL as Y,aN as Rt}from"./index-CES_wWCV.js";const It={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function At(e,t,a=(l,d)=>l===d){return e.length===t.length&&e.every((l,d)=>a(l,t[d]))}const Mt=2;function pt(e,t){return e-t}function st(e,t){var a;const{index:l}=(a=e.reduce((d,L,C)=>{const m=Math.abs(t-L);return d===null||m<d.distance||m===d.distance?{distance:m,index:C}:d},null))!=null?a:{};return l}function Le(e,t){if(t.current!==void 0&&e.changedTouches){const a=e;for(let l=0;l<a.changedTouches.length;l+=1){const d=a.changedTouches[l];if(d.identifier===t.current)return{x:d.clientX,y:d.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function _e(e,t,a){return(e-t)*100/(a-t)}function zt(e,t,a){return(a-t)*e+t}function Nt(e){if(Math.abs(e)<1){const a=e.toExponential().split("e-"),l=a[0].split(".")[1];return(l?l.length:0)+parseInt(a[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function Et(e,t,a){const l=Math.round((e-a)/t)*t+a;return Number(l.toFixed(Nt(t)))}function it({values:e,newValue:t,index:a}){const l=e.slice();return l[a]=t,l.sort(pt)}function we({sliderRef:e,activeIndex:t,setActive:a}){var l,d;const L=$e(e.current);if(!((l=e.current)!=null&&l.contains(L.activeElement))||Number(L==null||(d=L.activeElement)==null?void 0:d.getAttribute("data-index"))!==t){var C;(C=e.current)==null||C.querySelector(`[type="range"][data-index="${t}"]`).focus()}a&&a(t)}function Pe(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?At(e,t):!1}const Vt={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Ft=e=>e;let Ce;function ut(){return Ce===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Ce=CSS.supports("touch-action","none"):Ce=!0),Ce}function Ht(e){const{"aria-labelledby":t,defaultValue:a,disabled:l=!1,disableSwap:d=!1,isRtl:L=!1,marks:C=!1,max:m=100,min:f=0,name:K,onChange:ne,onChangeCommitted:U,orientation:Q="horizontal",rootRef:fe,scale:le=Ft,step:z=1,shiftStep:se=10,tabIndex:be,value:me}=e,V=S.useRef(),[W,j]=S.useState(-1),[ve,O]=S.useState(-1),[ie,ue]=S.useState(!1),X=S.useRef(0),[_,Z]=St({controlled:me,default:a??f,name:"Slider"}),N=ne&&((r,o,n)=>{const i=r.nativeEvent||r,u=new i.constructor(i.type,i);Object.defineProperty(u,"target",{writable:!0,value:{value:o,name:K}}),ne(u,o,n)}),q=Array.isArray(_);let y=q?_.slice().sort(pt):[_];y=y.map(r=>r==null?f:pe(r,f,m));const ce=C===!0&&z!==null?[...Array(Math.floor((m-f)/z)+1)].map((r,o)=>({value:f+z*o})):C||[],g=ce.map(r=>r.value),{isFocusVisibleRef:R,onBlur:Re,onFocus:Ie,ref:Ae}=Lt(),[he,G]=S.useState(-1),w=S.useRef(),ge=at(Ae,w),ye=at(fe,ge),ee=r=>o=>{var n;const i=Number(o.currentTarget.getAttribute("data-index"));Ie(o),R.current===!0&&G(i),O(i),r==null||(n=r.onFocus)==null||n.call(r,o)},te=r=>o=>{var n;Re(o),R.current===!1&&G(-1),O(-1),r==null||(n=r.onBlur)==null||n.call(r,o)},ke=(r,o)=>{const n=Number(r.currentTarget.getAttribute("data-index")),i=y[n],u=g.indexOf(i);let s=o;if(ce&&z==null){const M=g[g.length-1];s>M?s=M:s<g[0]?s=g[0]:s=s<i?g[u-1]:g[u+1]}if(s=pe(s,f,m),q){d&&(s=pe(s,y[n-1]||-1/0,y[n+1]||1/0));const M=s;s=it({values:y,newValue:s,index:n});let E=n;d||(E=s.indexOf(M)),we({sliderRef:w,activeIndex:E})}Z(s),G(n),N&&!Pe(s,_)&&N(r,s,n),U&&U(r,s)},Me=r=>o=>{var n;if(z!==null){const i=Number(o.currentTarget.getAttribute("data-index")),u=y[i];let s=null;(o.key==="ArrowLeft"||o.key==="ArrowDown")&&o.shiftKey||o.key==="PageDown"?s=Math.max(u-se,f):((o.key==="ArrowRight"||o.key==="ArrowUp")&&o.shiftKey||o.key==="PageUp")&&(s=Math.min(u+se,m)),s!==null&&(ke(o,s),o.preventDefault())}r==null||(n=r.onKeyDown)==null||n.call(r,o)};wt(()=>{if(l&&w.current.contains(document.activeElement)){var r;(r=document.activeElement)==null||r.blur()}},[l]),l&&W!==-1&&j(-1),l&&he!==-1&&G(-1);const ze=r=>o=>{var n;(n=r.onChange)==null||n.call(r,o),ke(o,o.target.valueAsNumber)},xe=S.useRef();let F=Q;L&&Q==="horizontal"&&(F+="-reverse");const v=({finger:r,move:o=!1})=>{const{current:n}=w,{width:i,height:u,bottom:s,left:M}=n.getBoundingClientRect();let E;F.indexOf("vertical")===0?E=(s-r.y)/u:E=(r.x-M)/i,F.indexOf("-reverse")!==-1&&(E=1-E);let p;if(p=zt(E,f,m),z)p=Et(p,z,f);else{const ae=st(g,p);p=g[ae]}p=pe(p,f,m);let $=0;if(q){o?$=xe.current:$=st(y,p),d&&(p=pe(p,y[$-1]||-1/0,y[$+1]||1/0));const ae=p;p=it({values:y,newValue:p,index:$}),d&&o||($=p.indexOf(ae),xe.current=$)}return{newValue:p,activeIndex:$}},b=Ge(r=>{const o=Le(r,V);if(!o)return;if(X.current+=1,r.type==="mousemove"&&r.buttons===0){I(r);return}const{newValue:n,activeIndex:i}=v({finger:o,move:!0});we({sliderRef:w,activeIndex:i,setActive:j}),Z(n),!ie&&X.current>Mt&&ue(!0),N&&!Pe(n,_)&&N(r,n,i)}),I=Ge(r=>{const o=Le(r,V);if(ue(!1),!o)return;const{newValue:n}=v({finger:o,move:!0});j(-1),r.type==="touchend"&&O(-1),U&&U(r,n),V.current=void 0,A()}),D=Ge(r=>{if(l)return;ut()||r.preventDefault();const o=r.changedTouches[0];o!=null&&(V.current=o.identifier);const n=Le(r,V);if(n!==!1){const{newValue:u,activeIndex:s}=v({finger:n});we({sliderRef:w,activeIndex:s,setActive:j}),Z(u),N&&!Pe(u,_)&&N(r,u,s)}X.current=0;const i=$e(w.current);i.addEventListener("touchmove",b,{passive:!0}),i.addEventListener("touchend",I,{passive:!0})}),A=S.useCallback(()=>{const r=$e(w.current);r.removeEventListener("mousemove",b),r.removeEventListener("mouseup",I),r.removeEventListener("touchmove",b),r.removeEventListener("touchend",I)},[I,b]);S.useEffect(()=>{const{current:r}=w;return r.addEventListener("touchstart",D,{passive:ut()}),()=>{r.removeEventListener("touchstart",D),A()}},[A,D]),S.useEffect(()=>{l&&A()},[l,A]);const Ne=r=>o=>{var n;if((n=r.onMouseDown)==null||n.call(r,o),l||o.defaultPrevented||o.button!==0)return;o.preventDefault();const i=Le(o,V);if(i!==!1){const{newValue:s,activeIndex:M}=v({finger:i});we({sliderRef:w,activeIndex:M,setActive:j}),Z(s),N&&!Pe(s,_)&&N(o,s,M)}X.current=0;const u=$e(w.current);u.addEventListener("mousemove",b,{passive:!0}),u.addEventListener("mouseup",I)},x=_e(q?y[0]:f,f,m),re=_e(y[y.length-1],f,m)-x,Ee=(r={})=>{const o=Je(r),n={onMouseDown:Ne(o||{})},i=c({},o,n);return c({},r,{ref:ye},i)},Ve=r=>o=>{var n;(n=r.onMouseOver)==null||n.call(r,o);const i=Number(o.currentTarget.getAttribute("data-index"));O(i)},Fe=r=>o=>{var n;(n=r.onMouseLeave)==null||n.call(r,o),O(-1)};return{active:W,axis:F,axisProps:Vt,dragging:ie,focusedThumbIndex:he,getHiddenInputProps:(r={})=>{var o;const n=Je(r),i={onChange:ze(n||{}),onFocus:ee(n||{}),onBlur:te(n||{}),onKeyDown:Me(n||{})},u=c({},n,i);return c({tabIndex:be,"aria-labelledby":t,"aria-orientation":Q,"aria-valuemax":le(m),"aria-valuemin":le(f),name:K,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(o=e.step)!=null?o:void 0,disabled:l},r,u,{style:c({},It,{direction:L?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Ee,getThumbProps:(r={})=>{const o=Je(r),n={onMouseOver:Ve(o||{}),onMouseLeave:Fe(o||{})};return c({},r,o,n)},marks:ce,open:ve,range:q,rootRef:ye,trackLeap:re,trackOffset:x,values:y,getThumbStyle:r=>({pointerEvents:W!==-1&&W!==r?"none":void 0})}}const jt=e=>!e||!Te(e);function Ot(e){return Ct("MuiSlider",e)}const T=Pt("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Dt=e=>{const{open:t}=e;return{offset:oe(t&&T.valueLabelOpen),circle:T.valueLabelCircle,label:T.valueLabelLabel}};function Yt(e){const{children:t,className:a,value:l}=e,d=Dt(e);return t?S.cloneElement(t,{className:oe(t.props.className)},P.jsxs(S.Fragment,{children:[t.props.children,P.jsx("span",{className:oe(d.offset,a),"aria-hidden":!0,children:P.jsx("span",{className:d.circle,children:P.jsx("span",{className:d.label,children:l})})})]})):null}const Bt=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function ct(e){return e}const Kt=J("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,t[`color${B(a.color)}`],a.size!=="medium"&&t[`size${B(a.size)}`],a.marked&&t.marked,a.orientation==="vertical"&&t.vertical,a.track==="inverted"&&t.trackInverted,a.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${T.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${T.dragging}`]:{[`& .${T.thumb}, & .${T.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(a=>{var l;return((l=e.vars)!=null?l:e).palette[a].main}).map(a=>({props:{color:a},style:{color:(e.vars||e).palette[a].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),Ut=J("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),Wt=J("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(a=>{var l;return((l=e.vars)!=null?l:e).palette[a].main}).map(a=>({props:{color:a,track:"inverted"},style:c({},e.vars?{backgroundColor:e.vars.palette.Slider[`${a}Track`],borderColor:e.vars.palette.Slider[`${a}Track`]}:c({backgroundColor:ot(e.palette[a].main,.62),borderColor:ot(e.palette[a].main,.62)},e.applyStyles("dark",{backgroundColor:nt(e.palette[a].main,.5)}),e.applyStyles("dark",{borderColor:nt(e.palette[a].main,.5)})))}))]}}),Xt=J("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.thumb,t[`thumbColor${B(a.color)}`],a.size!=="medium"&&t[`thumbSize${B(a.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${T.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(a=>{var l;return((l=e.vars)!=null?l:e).palette[a].main}).map(a=>({props:{color:a},style:{[`&:hover, &.${T.focusVisible}`]:c({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[a].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${lt(e.palette[a].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${T.active}`]:c({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[a].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${lt(e.palette[a].main,.16)}`})}}))]}}),qt=J(Yt,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>c({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${T.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${T.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),Gt=J("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>dt(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:a}=e;return[t.mark,a&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),Jt=J("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>dt(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>c({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),Qt=e=>{const{disabled:t,dragging:a,marked:l,orientation:d,track:L,classes:C,color:m,size:f}=e,K={root:["root",t&&"disabled",a&&"dragging",l&&"marked",d==="vertical"&&"vertical",L==="inverted"&&"trackInverted",L===!1&&"trackFalse",m&&`color${B(m)}`,f&&`size${B(f)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",f&&`thumbSize${B(f)}`,m&&`thumbColor${B(m)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Rt(K,Ot,C)},Zt=({children:e})=>e,tr=S.forwardRef(function(t,a){var l,d,L,C,m,f,K,ne,U,Q,fe,le,z,se,be,me,V,W,j,ve,O,ie,ue,X;const _=$t({props:t,name:"MuiSlider"}),Z=Tt(),{"aria-label":N,"aria-valuetext":q,"aria-labelledby":y,component:ce="span",components:g={},componentsProps:R={},color:Re="primary",classes:Ie,className:Ae,disableSwap:he=!1,disabled:G=!1,getAriaLabel:w,getAriaValueText:ge,marks:ye=!1,max:ee=100,min:te=0,orientation:ke="horizontal",shiftStep:Me=10,size:ze="medium",step:xe=1,scale:F=ct,slotProps:v,slots:b,track:I="normal",valueLabelDisplay:D="off",valueLabelFormat:A=ct}=_,Ne=_t(_,Bt),x=c({},_,{isRtl:Z,max:ee,min:te,classes:Ie,disabled:G,disableSwap:he,orientation:ke,marks:ye,color:Re,size:ze,step:xe,shiftStep:Me,scale:F,track:I,valueLabelDisplay:D,valueLabelFormat:A}),{axisProps:re,getRootProps:Ee,getHiddenInputProps:Ve,getThumbProps:Fe,open:Qe,active:He,axis:de,focusedThumbIndex:r,range:o,dragging:n,marks:i,values:u,trackOffset:s,trackLeap:M,getThumbStyle:E}=Ht(c({},x,{rootRef:a}));x.marked=i.length>0&&i.some(h=>h.label),x.dragging=n,x.focusedThumbIndex=r;const p=Qt(x),$=(l=(d=b==null?void 0:b.root)!=null?d:g.Root)!=null?l:Kt,ae=(L=(C=b==null?void 0:b.rail)!=null?C:g.Rail)!=null?L:Ut,Ze=(m=(f=b==null?void 0:b.track)!=null?f:g.Track)!=null?m:Wt,et=(K=(ne=b==null?void 0:b.thumb)!=null?ne:g.Thumb)!=null?K:Xt,tt=(U=(Q=b==null?void 0:b.valueLabel)!=null?Q:g.ValueLabel)!=null?U:qt,je=(fe=(le=b==null?void 0:b.mark)!=null?le:g.Mark)!=null?fe:Gt,Oe=(z=(se=b==null?void 0:b.markLabel)!=null?se:g.MarkLabel)!=null?z:Jt,rt=(be=(me=b==null?void 0:b.input)!=null?me:g.Input)!=null?be:"input",De=(V=v==null?void 0:v.root)!=null?V:R.root,ft=(W=v==null?void 0:v.rail)!=null?W:R.rail,Ye=(j=v==null?void 0:v.track)!=null?j:R.track,Be=(ve=v==null?void 0:v.thumb)!=null?ve:R.thumb,Ke=(O=v==null?void 0:v.valueLabel)!=null?O:R.valueLabel,bt=(ie=v==null?void 0:v.mark)!=null?ie:R.mark,mt=(ue=v==null?void 0:v.markLabel)!=null?ue:R.markLabel,vt=(X=v==null?void 0:v.input)!=null?X:R.input,ht=Y({elementType:$,getSlotProps:Ee,externalSlotProps:De,externalForwardedProps:Ne,additionalProps:c({},jt($)&&{as:ce}),ownerState:c({},x,De==null?void 0:De.ownerState),className:[p.root,Ae]}),gt=Y({elementType:ae,externalSlotProps:ft,ownerState:x,className:p.rail}),yt=Y({elementType:Ze,externalSlotProps:Ye,additionalProps:{style:c({},re[de].offset(s),re[de].leap(M))},ownerState:c({},x,Ye==null?void 0:Ye.ownerState),className:p.track}),Ue=Y({elementType:et,getSlotProps:Fe,externalSlotProps:Be,ownerState:c({},x,Be==null?void 0:Be.ownerState),className:p.thumb}),kt=Y({elementType:tt,externalSlotProps:Ke,ownerState:c({},x,Ke==null?void 0:Ke.ownerState),className:p.valueLabel}),We=Y({elementType:je,externalSlotProps:bt,ownerState:x,className:p.mark}),Xe=Y({elementType:Oe,externalSlotProps:mt,ownerState:x,className:p.markLabel}),xt=Y({elementType:rt,getSlotProps:Ve,externalSlotProps:vt,ownerState:x});return P.jsxs($,c({},ht,{children:[P.jsx(ae,c({},gt)),P.jsx(Ze,c({},yt)),i.filter(h=>h.value>=te&&h.value<=ee).map((h,k)=>{const qe=_e(h.value,te,ee),Se=re[de].offset(qe);let H;return I===!1?H=u.indexOf(h.value)!==-1:H=I==="normal"&&(o?h.value>=u[0]&&h.value<=u[u.length-1]:h.value<=u[0])||I==="inverted"&&(o?h.value<=u[0]||h.value>=u[u.length-1]:h.value>=u[0]),P.jsxs(S.Fragment,{children:[P.jsx(je,c({"data-index":k},We,!Te(je)&&{markActive:H},{style:c({},Se,We.style),className:oe(We.className,H&&p.markActive)})),h.label!=null?P.jsx(Oe,c({"aria-hidden":!0,"data-index":k},Xe,!Te(Oe)&&{markLabelActive:H},{style:c({},Se,Xe.style),className:oe(p.markLabel,Xe.className,H&&p.markLabelActive),children:h.label})):null]},k)}),u.map((h,k)=>{const qe=_e(h,te,ee),Se=re[de].offset(qe),H=D==="off"?Zt:tt;return P.jsx(H,c({},!Te(H)&&{valueLabelFormat:A,valueLabelDisplay:D,value:typeof A=="function"?A(F(h),k):A,index:k,open:Qe===k||He===k||D==="on",disabled:G},kt,{children:P.jsx(et,c({"data-index":k},Ue,{className:oe(p.thumb,Ue.className,He===k&&p.active,r===k&&p.focusVisible),style:c({},Se,E(k),Ue.style),children:P.jsx(rt,c({"data-index":k,"aria-label":w?w(k):N,"aria-valuenow":F(h),"aria-labelledby":y,"aria-valuetext":ge?ge(F(h),k):q,value:u[k]},xt))}))}),k)})]}))});export{tr as S};
|
|
1
|
+
import{r as S,d9 as St,i1 as pe,cm as Lt,ci as at,cL as wt,cU as Ge,cV as $e,i2 as Je,aK as c,cY as Te,aE as Pt,aF as Ct,aM as oe,j as P,aG as J,aH as B,cf as ot,ce as nt,cl as lt,eH as dt,aI as $t,cT as Tt,aJ as _t,aL as Y,aN as Rt}from"./index-BowU-Rc8.js";const It={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function At(e,t,a=(l,d)=>l===d){return e.length===t.length&&e.every((l,d)=>a(l,t[d]))}const Mt=2;function pt(e,t){return e-t}function st(e,t){var a;const{index:l}=(a=e.reduce((d,L,C)=>{const m=Math.abs(t-L);return d===null||m<d.distance||m===d.distance?{distance:m,index:C}:d},null))!=null?a:{};return l}function Le(e,t){if(t.current!==void 0&&e.changedTouches){const a=e;for(let l=0;l<a.changedTouches.length;l+=1){const d=a.changedTouches[l];if(d.identifier===t.current)return{x:d.clientX,y:d.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function _e(e,t,a){return(e-t)*100/(a-t)}function zt(e,t,a){return(a-t)*e+t}function Nt(e){if(Math.abs(e)<1){const a=e.toExponential().split("e-"),l=a[0].split(".")[1];return(l?l.length:0)+parseInt(a[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function Et(e,t,a){const l=Math.round((e-a)/t)*t+a;return Number(l.toFixed(Nt(t)))}function it({values:e,newValue:t,index:a}){const l=e.slice();return l[a]=t,l.sort(pt)}function we({sliderRef:e,activeIndex:t,setActive:a}){var l,d;const L=$e(e.current);if(!((l=e.current)!=null&&l.contains(L.activeElement))||Number(L==null||(d=L.activeElement)==null?void 0:d.getAttribute("data-index"))!==t){var C;(C=e.current)==null||C.querySelector(`[type="range"][data-index="${t}"]`).focus()}a&&a(t)}function Pe(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?At(e,t):!1}const Vt={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Ft=e=>e;let Ce;function ut(){return Ce===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Ce=CSS.supports("touch-action","none"):Ce=!0),Ce}function Ht(e){const{"aria-labelledby":t,defaultValue:a,disabled:l=!1,disableSwap:d=!1,isRtl:L=!1,marks:C=!1,max:m=100,min:f=0,name:U,onChange:ne,onChangeCommitted:K,orientation:Q="horizontal",rootRef:fe,scale:le=Ft,step:z=1,shiftStep:se=10,tabIndex:be,value:me}=e,V=S.useRef(),[W,j]=S.useState(-1),[ve,O]=S.useState(-1),[ie,ue]=S.useState(!1),X=S.useRef(0),[_,Z]=St({controlled:me,default:a??f,name:"Slider"}),N=ne&&((r,o,n)=>{const i=r.nativeEvent||r,u=new i.constructor(i.type,i);Object.defineProperty(u,"target",{writable:!0,value:{value:o,name: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&&z!==null?[...Array(Math.floor((m-f)/z)+1)].map((r,o)=>({value:f+z*o})):C||[],g=ce.map(r=>r.value),{isFocusVisibleRef:R,onBlur:Re,onFocus:Ie,ref:Ae}=Lt(),[he,G]=S.useState(-1),w=S.useRef(),ge=at(Ae,w),ye=at(fe,ge),ee=r=>o=>{var n;const i=Number(o.currentTarget.getAttribute("data-index"));Ie(o),R.current===!0&&G(i),O(i),r==null||(n=r.onFocus)==null||n.call(r,o)},te=r=>o=>{var n;Re(o),R.current===!1&&G(-1),O(-1),r==null||(n=r.onBlur)==null||n.call(r,o)},ke=(r,o)=>{const n=Number(r.currentTarget.getAttribute("data-index")),i=y[n],u=g.indexOf(i);let s=o;if(ce&&z==null){const M=g[g.length-1];s>M?s=M:s<g[0]?s=g[0]:s=s<i?g[u-1]:g[u+1]}if(s=pe(s,f,m),q){d&&(s=pe(s,y[n-1]||-1/0,y[n+1]||1/0));const M=s;s=it({values:y,newValue:s,index:n});let E=n;d||(E=s.indexOf(M)),we({sliderRef:w,activeIndex:E})}Z(s),G(n),N&&!Pe(s,_)&&N(r,s,n),K&&K(r,s)},Me=r=>o=>{var n;if(z!==null){const i=Number(o.currentTarget.getAttribute("data-index")),u=y[i];let s=null;(o.key==="ArrowLeft"||o.key==="ArrowDown")&&o.shiftKey||o.key==="PageDown"?s=Math.max(u-se,f):((o.key==="ArrowRight"||o.key==="ArrowUp")&&o.shiftKey||o.key==="PageUp")&&(s=Math.min(u+se,m)),s!==null&&(ke(o,s),o.preventDefault())}r==null||(n=r.onKeyDown)==null||n.call(r,o)};wt(()=>{if(l&&w.current.contains(document.activeElement)){var r;(r=document.activeElement)==null||r.blur()}},[l]),l&&W!==-1&&j(-1),l&&he!==-1&&G(-1);const ze=r=>o=>{var n;(n=r.onChange)==null||n.call(r,o),ke(o,o.target.valueAsNumber)},xe=S.useRef();let F=Q;L&&Q==="horizontal"&&(F+="-reverse");const v=({finger:r,move:o=!1})=>{const{current:n}=w,{width:i,height:u,bottom:s,left:M}=n.getBoundingClientRect();let E;F.indexOf("vertical")===0?E=(s-r.y)/u:E=(r.x-M)/i,F.indexOf("-reverse")!==-1&&(E=1-E);let p;if(p=zt(E,f,m),z)p=Et(p,z,f);else{const ae=st(g,p);p=g[ae]}p=pe(p,f,m);let $=0;if(q){o?$=xe.current:$=st(y,p),d&&(p=pe(p,y[$-1]||-1/0,y[$+1]||1/0));const ae=p;p=it({values:y,newValue:p,index:$}),d&&o||($=p.indexOf(ae),xe.current=$)}return{newValue:p,activeIndex:$}},b=Ge(r=>{const o=Le(r,V);if(!o)return;if(X.current+=1,r.type==="mousemove"&&r.buttons===0){I(r);return}const{newValue:n,activeIndex:i}=v({finger:o,move:!0});we({sliderRef:w,activeIndex:i,setActive:j}),Z(n),!ie&&X.current>Mt&&ue(!0),N&&!Pe(n,_)&&N(r,n,i)}),I=Ge(r=>{const o=Le(r,V);if(ue(!1),!o)return;const{newValue:n}=v({finger:o,move:!0});j(-1),r.type==="touchend"&&O(-1),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:M}=v({finger:i});we({sliderRef:w,activeIndex:M,setActive:j}),Z(s),N&&!Pe(s,_)&&N(o,s,M)}X.current=0;const u=$e(w.current);u.addEventListener("mousemove",b,{passive:!0}),u.addEventListener("mouseup",I)},x=_e(q?y[0]:f,f,m),re=_e(y[y.length-1],f,m)-x,Ee=(r={})=>{const o=Je(r),n={onMouseDown:Ne(o||{})},i=c({},o,n);return c({},r,{ref:ye},i)},Ve=r=>o=>{var n;(n=r.onMouseOver)==null||n.call(r,o);const i=Number(o.currentTarget.getAttribute("data-index"));O(i)},Fe=r=>o=>{var n;(n=r.onMouseLeave)==null||n.call(r,o),O(-1)};return{active:W,axis:F,axisProps:Vt,dragging:ie,focusedThumbIndex:he,getHiddenInputProps:(r={})=>{var o;const n=Je(r),i={onChange:ze(n||{}),onFocus:ee(n||{}),onBlur:te(n||{}),onKeyDown:Me(n||{})},u=c({},n,i);return c({tabIndex:be,"aria-labelledby":t,"aria-orientation":Q,"aria-valuemax":le(m),"aria-valuemin":le(f),name: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({},It,{direction:L?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Ee,getThumbProps:(r={})=>{const o=Je(r),n={onMouseOver:Ve(o||{}),onMouseLeave:Fe(o||{})};return c({},r,o,n)},marks:ce,open:ve,range:q,rootRef:ye,trackLeap:re,trackOffset:x,values:y,getThumbStyle:r=>({pointerEvents:W!==-1&&W!==r?"none":void 0})}}const jt=e=>!e||!Te(e);function Ot(e){return Ct("MuiSlider",e)}const T=Pt("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Dt=e=>{const{open:t}=e;return{offset:oe(t&&T.valueLabelOpen),circle:T.valueLabelCircle,label:T.valueLabelLabel}};function Yt(e){const{children:t,className:a,value:l}=e,d=Dt(e);return t?S.cloneElement(t,{className:oe(t.props.className)},P.jsxs(S.Fragment,{children:[t.props.children,P.jsx("span",{className:oe(d.offset,a),"aria-hidden":!0,children:P.jsx("span",{className:d.circle,children:P.jsx("span",{className:d.label,children:l})})})]})):null}const Bt=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function ct(e){return e}const Ut=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}}]}}),Kt=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,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 Rt(U,Ot,C)},Zt=({children:e})=>e,tr=S.forwardRef(function(t,a){var l,d,L,C,m,f,U,ne,K,Q,fe,le,z,se,be,me,V,W,j,ve,O,ie,ue,X;const _=$t({props:t,name:"MuiSlider"}),Z=Tt(),{"aria-label":N,"aria-valuetext":q,"aria-labelledby":y,component:ce="span",components:g={},componentsProps:R={},color:Re="primary",classes:Ie,className:Ae,disableSwap:he=!1,disabled:G=!1,getAriaLabel:w,getAriaValueText:ge,marks:ye=!1,max:ee=100,min:te=0,orientation:ke="horizontal",shiftStep:Me=10,size:ze="medium",step:xe=1,scale:F=ct,slotProps:v,slots:b,track:I="normal",valueLabelDisplay:D="off",valueLabelFormat:A=ct}=_,Ne=_t(_,Bt),x=c({},_,{isRtl:Z,max:ee,min:te,classes:Ie,disabled:G,disableSwap:he,orientation:ke,marks:ye,color:Re,size:ze,step:xe,shiftStep:Me,scale:F,track:I,valueLabelDisplay:D,valueLabelFormat:A}),{axisProps:re,getRootProps:Ee,getHiddenInputProps:Ve,getThumbProps:Fe,open:Qe,active:He,axis:de,focusedThumbIndex:r,range:o,dragging:n,marks:i,values:u,trackOffset:s,trackLeap:M,getThumbStyle:E}=Ht(c({},x,{rootRef:a}));x.marked=i.length>0&&i.some(h=>h.label),x.dragging=n,x.focusedThumbIndex=r;const p=Qt(x),$=(l=(d=b==null?void 0:b.root)!=null?d:g.Root)!=null?l:Ut,ae=(L=(C=b==null?void 0:b.rail)!=null?C:g.Rail)!=null?L:Kt,Ze=(m=(f=b==null?void 0:b.track)!=null?f:g.Track)!=null?m:Wt,et=(U=(ne=b==null?void 0:b.thumb)!=null?ne:g.Thumb)!=null?U:Xt,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:Gt,Oe=(z=(se=b==null?void 0:b.markLabel)!=null?se:g.MarkLabel)!=null?z:Jt,rt=(be=(me=b==null?void 0:b.input)!=null?me:g.Input)!=null?be:"input",De=(V=v==null?void 0:v.root)!=null?V:R.root,ft=(W=v==null?void 0:v.rail)!=null?W:R.rail,Ye=(j=v==null?void 0:v.track)!=null?j:R.track,Be=(ve=v==null?void 0:v.thumb)!=null?ve:R.thumb,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({},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}),Ke=Y({elementType:et,getSlotProps:Fe,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 H;return I===!1?H=u.indexOf(h.value)!==-1:H=I==="normal"&&(o?h.value>=u[0]&&h.value<=u[u.length-1]:h.value<=u[0])||I==="inverted"&&(o?h.value<=u[0]||h.value>=u[u.length-1]:h.value>=u[0]),P.jsxs(S.Fragment,{children:[P.jsx(je,c({"data-index":k},We,!Te(je)&&{markActive:H},{style:c({},Se,We.style),className:oe(We.className,H&&p.markActive)})),h.label!=null?P.jsx(Oe,c({"aria-hidden":!0,"data-index":k},Xe,!Te(Oe)&&{markLabelActive:H},{style:c({},Se,Xe.style),className:oe(p.markLabel,Xe.className,H&&p.markLabelActive),children:h.label})):null]},k)}),u.map((h,k)=>{const qe=_e(h,te,ee),Se=re[de].offset(qe),H=D==="off"?Zt:tt;return P.jsx(H,c({},!Te(H)&&{valueLabelFormat:A,valueLabelDisplay:D,value:typeof A=="function"?A(F(h),k):A,index:k,open:Qe===k||He===k||D==="on",disabled:G},kt,{children:P.jsx(et,c({"data-index":k},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)})]}))});export{tr as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{dl as b,dm as F,aK as k,dn as g,dp as d,dq as T,dr as D,ds as M,r as p,dt as B,aJ as G,j as N,aM as E,du as O,aN as U,aF as _,dv as h,aG as $,aI as A}from"./index-BowU-Rc8.js";const I=["component","direction","spacing","divider","children","className","useFlexGap"],L=b(),q=F("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,s)=>s.root});function J(e){return O({props:e,name:"MuiStack",defaultTheme:L})}function K(e,s){const n=p.Children.toArray(e).filter(Boolean);return n.reduce((a,c,t)=>(a.push(c),t<n.length-1&&a.push(p.cloneElement(s,{key:`separator-${t}`})),a),[])}const W=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],z=({ownerState:e,theme:s})=>{let n=k({display:"flex",flexDirection:"column"},g({theme:s},d({values:e.direction,breakpoints:s.breakpoints.values}),a=>({flexDirection:a})));if(e.spacing){const a=T(s),c=Object.keys(s.breakpoints.values).reduce((o,r)=>((typeof e.spacing=="object"&&e.spacing[r]!=null||typeof e.direction=="object"&&e.direction[r]!=null)&&(o[r]=!0),o),{}),t=d({values:e.direction,base:c}),m=d({values:e.spacing,base:c});typeof t=="object"&&Object.keys(t).forEach((o,r,i)=>{if(!t[o]){const u=r>0?t[i[r-1]]:"column";t[o]=u}}),n=D(n,g({theme:s},m,(o,r)=>e.useFlexGap?{gap:h(a,o)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${W(r?t[r]:e.direction)}`]:h(a,o)}}))}return n=M(s.breakpoints,n),n};function H(e={}){const{createStyledComponent:s=q,useThemeProps:n=J,componentName:a="MuiStack"}=e,c=()=>U({root:["root"]},o=>_(a,o),{}),t=s(z);return p.forwardRef(function(o,r){const i=n(o),l=B(i),{component:u="div",direction:x="column",spacing:j=0,divider:y,children:v,className:P,useFlexGap:C=!1}=l,S=G(l,I),R={direction:x,spacing:j,useFlexGap:C},V=c();return N.jsx(t,k({as:u,ownerState:R,ref:r,className:E(V.root,P)},S,{children:y?K(v,y):v}))})}const X=H({createStyledComponent:$("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,s)=>s.root}),useThemeProps:e=>A({props:e,name:"MuiStack"})});export{X as S,H as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as v,aF as w,aE as U,aG as S,aK as s,aI as _,aJ as W,j as i,aM as P,aN as k,at as H,
|
|
1
|
+
import{r as v,aF as w,aE as U,aG as S,aK as s,aI as _,aJ as W,j as i,aM as P,aN as k,at as H,cy as B,aH as V}from"./index-BowU-Rc8.js";const T=v.createContext({}),E=v.createContext({});function G(e){return w("MuiStep",e)}U("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const J=["active","children","className","component","completed","disabled","expanded","index","last"],K=e=>{const{classes:t,orientation:o,alternativeLabel:n,completed:a}=e;return k({root:["root",o,n&&"alternativeLabel",a&&"completed"]},G,t)},q=S("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})(({ownerState:e})=>s({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),he=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStep"}),{active:a,children:r,className:u,component:c="div",completed:p,disabled:b,expanded:d=!1,index:l,last:m}=n,R=W(n,J),{activeStep:h,connector:L,alternativeLabel:y,orientation:I,nonLinear:M}=v.useContext(T);let[x=!1,N=!1,f=!1]=[a,p,b];h===l?x=a!==void 0?a:!0:!M&&h>l?N=p!==void 0?p:!0:!M&&h<l&&(f=b!==void 0?b:!0);const j=v.useMemo(()=>({index:l,last:m,expanded:d,icon:l+1,active:x,completed:N,disabled:f}),[l,m,d,x,N,f]),C=s({},n,{active:x,orientation:I,alternativeLabel:y,completed:N,disabled:f,expanded:d,component:c}),$=K(C),z=i.jsxs(q,s({as:c,className:P($.root,u),ref:o,ownerState:C},R,{children:[L&&y&&l!==0?L:null,r]}));return i.jsx(E.Provider,{value:j,children:L&&!y&&l!==0?i.jsxs(v.Fragment,{children:[L,z]}):z})}),O=H(i.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),Q=H(i.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function X(e){return w("MuiStepIcon",e)}const A=U("MuiStepIcon",["root","active","completed","error","text"]);var F;const Y=["active","className","completed","error","icon"],Z=e=>{const{classes:t,active:o,completed:n,error:a}=e;return k({root:["root",o&&"active",n&&"completed",a&&"error"],text:["text"]},X,t)},D=S(B,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${A.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${A.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${A.error}`]:{color:(e.vars||e).palette.error.main}})),ee=S("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),te=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepIcon"}),{active:a=!1,className:r,completed:u=!1,error:c=!1,icon:p}=n,b=W(n,Y),d=s({},n,{active:a,completed:u,error:c}),l=Z(d);if(typeof p=="number"||typeof p=="string"){const m=P(r,l.root);return c?i.jsx(D,s({as:Q,className:m,ref:o,ownerState:d},b)):u?i.jsx(D,s({as:O,className:m,ref:o,ownerState:d},b)):i.jsxs(D,s({className:m,ref:o,ownerState:d},b,{children:[F||(F=i.jsx("circle",{cx:"12",cy:"12",r:"12"})),i.jsx(ee,{className:l.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:d,children:p})]}))}return p});function oe(e){return w("MuiStepLabel",e)}const g=U("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),ne=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],ae=e=>{const{classes:t,orientation:o,active:n,completed:a,error:r,disabled:u,alternativeLabel:c}=e;return k({root:["root",o,r&&"error",u&&"disabled",c&&"alternativeLabel"],label:["label",n&&"active",a&&"completed",r&&"error",u&&"disabled",c&&"alternativeLabel"],iconContainer:["iconContainer",n&&"active",a&&"completed",r&&"error",u&&"disabled",c&&"alternativeLabel"],labelContainer:["labelContainer",c&&"alternativeLabel"]},oe,t)},re=S("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation]]}})(({ownerState:e})=>s({display:"flex",alignItems:"center",[`&.${g.alternativeLabel}`]:{flexDirection:"column"},[`&.${g.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),le=S("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>s({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${g.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${g.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${g.alternativeLabel}`]:{marginTop:16},[`&.${g.error}`]:{color:(e.vars||e).palette.error.main}})),se=S("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${g.alternativeLabel}`]:{paddingRight:0}})),ie=S("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${g.alternativeLabel}`]:{textAlign:"center"}})),ce=v.forwardRef(function(t,o){var n;const a=_({props:t,name:"MuiStepLabel"}),{children:r,className:u,componentsProps:c={},error:p=!1,icon:b,optional:d,slotProps:l={},StepIconComponent:m,StepIconProps:R}=a,h=W(a,ne),{alternativeLabel:L,orientation:y}=v.useContext(T),{active:I,disabled:M,completed:x,icon:N}=v.useContext(E),f=b||N;let j=m;f&&!j&&(j=te);const C=s({},a,{active:I,alternativeLabel:L,completed:x,disabled:M,error:p,orientation:y}),$=ae(C),z=(n=l.label)!=null?n:c.label;return i.jsxs(re,s({className:P($.root,u),ref:o,ownerState:C},h,{children:[f||j?i.jsx(se,{className:$.iconContainer,ownerState:C,children:i.jsx(j,s({completed:x,active:I,error:p,icon:f},R))}):null,i.jsxs(ie,{className:$.labelContainer,ownerState:C,children:[r?i.jsx(le,s({ownerState:C},z,{className:P($.label,z==null?void 0:z.className),children:r})):null,d]})]}))});ce.muiName="StepLabel";function pe(e){return w("MuiStepConnector",e)}U("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const de=["className"],ve=e=>{const{classes:t,orientation:o,alternativeLabel:n,active:a,completed:r,disabled:u}=e,c={root:["root",o,n&&"alternativeLabel",a&&"active",r&&"completed",u&&"disabled"],line:["line",`line${V(o)}`]};return k(c,pe,t)},ue=S("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})(({ownerState:e})=>s({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),be=S("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.line,t[`line${V(o.orientation)}`]]}})(({ownerState:e,theme:t})=>{const o=t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600];return s({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:o},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),me=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepConnector"}),{className:a}=n,r=W(n,de),{alternativeLabel:u,orientation:c="horizontal"}=v.useContext(T),{active:p,disabled:b,completed:d}=v.useContext(E),l=s({},n,{alternativeLabel:u,orientation:c,active:p,completed:d,disabled:b}),m=ve(l);return i.jsx(ue,s({className:P(m.root,a),ref:o,ownerState:l},r,{children:i.jsx(be,{className:m.line,ownerState:l})}))});function xe(e){return w("MuiStepper",e)}U("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const Se=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],Le=e=>{const{orientation:t,nonLinear:o,alternativeLabel:n,classes:a}=e;return k({root:["root",t,o&&"nonLinear",n&&"alternativeLabel"]},xe,a)},fe=S("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.nonLinear&&t.nonLinear]}})(({ownerState:e})=>s({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),Ce=i.jsx(me,{}),ye=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepper"}),{activeStep:a=0,alternativeLabel:r=!1,children:u,className:c,component:p="div",connector:b=Ce,nonLinear:d=!1,orientation:l="horizontal"}=n,m=W(n,Se),R=s({},n,{nonLinear:d,alternativeLabel:r,orientation:l,component:p}),h=Le(R),L=v.Children.toArray(u).filter(Boolean),y=L.map((M,x)=>v.cloneElement(M,s({index:x,last:x+1===L.length},M.props))),I=v.useMemo(()=>({activeStep:a,alternativeLabel:r,connector:b,nonLinear:d,orientation:l}),[a,r,b,d,l]);return i.jsx(T.Provider,{value:I,children:i.jsx(fe,s({as:p,ownerState:R,className:P(h.root,c),ref:o},m,{children:y}))})});export{ye as S,he as a,ce as b,E as c,T as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aE as q,aF as N,aG as S,aH as $,aK as a,r as L,aI as U,aJ as _,j as i,aM as E,aN as B,
|
|
1
|
+
import{aE as q,aF as N,aG as S,aH as $,aK as a,r as L,aI as U,aJ as _,j as i,aM as E,aN as B,da as se}from"./index-BowU-Rc8.js";import{F as ae}from"./FormControl-B9P20sHZ.js";import{I as le}from"./InputLabel-FW_WnrBG.js";import{S as ie,a as ne,F as de,O as ce}from"./Select-DN5ZDrhq.js";import{u as ue,f as pe}from"./useFormControl-CqDUGVwx.js";function me(e){return N("MuiFormHelperText",e)}const j=q("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var w;const fe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],xe=e=>{const{classes:o,contained:r,size:s,disabled:n,error:d,filled:c,focused:p,required:u}=e,t={root:["root",n&&"disabled",d&&"error",s&&`size${$(s)}`,r&&"contained",p&&"focused",c&&"filled",u&&"required"]};return B(t,me,o)},Fe=S("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:r}=e;return[o.root,r.size&&o[`size${$(r.size)}`],r.contained&&o.contained,r.filled&&o.filled]}})(({theme:e,ownerState:o})=>a({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${j.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${j.error}`]:{color:(e.vars||e).palette.error.main}},o.size==="small"&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})),be=L.forwardRef(function(o,r){const s=U({props:o,name:"MuiFormHelperText"}),{children:n,className:d,component:c="p"}=s,p=_(s,fe),u=ue(),t=pe({props:s,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),m=a({},s,{component:c,contained:t.variant==="filled"||t.variant==="outlined",variant:t.variant,size:t.size,disabled:t.disabled,error:t.error,filled:t.filled,focused:t.focused,required:t.required}),F=xe(m);return i.jsx(Fe,a({as:c,ownerState:m,className:E(F.root,d),ref:r},p,{children:n===" "?w||(w=i.jsx("span",{className:"notranslate",children:""})):n}))});function ve(e){return N("MuiTextField",e)}const Pe=q("MuiTextField",["root"]),Te=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],he={standard:ne,filled:de,outlined:ce},ge=e=>{const{classes:o}=e;return B({root:["root"]},ve,o)},Ce=S(ae,{name:"MuiTextField",slot:"Root",overridesResolver:(e,o)=>o.root})({}),Me=L.forwardRef(function(o,r){const s=U({props:o,name:"MuiTextField"}),{autoComplete:n,autoFocus:d=!1,children:c,className:p,color:u="primary",defaultValue:t,disabled:m=!1,error:F=!1,FormHelperTextProps:O,fullWidth:T=!1,helperText:h,id:W,InputLabelProps:b,inputProps:k,InputProps:V,inputRef:A,label:f,maxRows:D,minRows:G,multiline:R=!1,name:J,onBlur:K,onChange:Q,onFocus:X,placeholder:Y,required:y=!1,rows:Z,select:g=!1,SelectProps:C,type:ee,value:z,variant:v="outlined"}=s,oe=_(s,Te),H=a({},s,{autoFocus:d,color:u,disabled:m,error:F,fullWidth:T,multiline:R,required:y,select:g,variant:v}),te=ge(H),x={};v==="outlined"&&(b&&typeof b.shrink<"u"&&(x.notched=b.shrink),x.label=f),g&&((!C||!C.native)&&(x.id=void 0),x["aria-describedby"]=void 0);const l=se(W),I=h&&l?`${l}-helper-text`:void 0,P=f&&l?`${l}-label`:void 0,re=he[v],M=i.jsx(re,a({"aria-describedby":I,autoComplete:n,autoFocus:d,defaultValue:t,fullWidth:T,multiline:R,name:J,rows:Z,maxRows:D,minRows:G,type:ee,value:z,id:l,inputRef:A,onBlur:K,onChange:Q,onFocus:X,placeholder:Y,inputProps:k},x,V));return i.jsxs(Ce,a({className:E(te.root,p),disabled:m,error:F,fullWidth:T,ref:r,required:y,color:u,variant:v,ownerState:H},oe,{children:[f!=null&&f!==""&&i.jsx(le,a({htmlFor:l,id:P},b,{children:f})),g?i.jsx(ie,a({"aria-describedby":I,id:l,labelId:P,value:z,input:M},C,{children:c})):M,h&&i.jsx(be,a({id:I},O,{children:h}))]}))});export{be as F,Me as T,ve as g,Pe as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aF as d,aE as g,aG as b,aK as e,r as m,aI as v,aJ as f,j as x,aM as T,aN as R}from"./index-
|
|
1
|
+
import{aF as d,aE as g,aG as b,aK as e,r as m,aI as v,aJ as f,j as x,aM as T,aN as R}from"./index-BowU-Rc8.js";function C(s){return d("MuiToolbar",s)}const N=g("MuiToolbar",["root","gutters","regular","dense"]),G=["className","component","disableGutters","variant"],M=s=>{const{classes:a,disableGutters:t,variant:o}=s;return R({root:["root",!t&&"gutters",o]},C,a)},j=b("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(s,a)=>{const{ownerState:t}=s;return[a.root,!t.disableGutters&&a.gutters,a[t.variant]]}})(({theme:s,ownerState:a})=>e({position:"relative",display:"flex",alignItems:"center"},!a.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}},a.variant==="dense"&&{minHeight:48}),({theme:s,ownerState:a})=>a.variant==="regular"&&s.mixins.toolbar),U=m.forwardRef(function(a,t){const o=v({props:a,name:"MuiToolbar"}),{className:r,component:n="div",disableGutters:l=!1,variant:c="regular"}=o,u=f(o,G),i=e({},o,{component:n,disableGutters:l,variant:c}),p=M(i);return x.jsx(j,e({as:n,className:T(p.root,r),ref:t,ownerState:i},u))});export{U as T,C as g,N as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{X as r,Y as t,j as a}from"./index-
|
|
1
|
+
import{X as r,Y as t,j as a}from"./index-BowU-Rc8.js";var e={},i=t;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,o=i(r()),d=a;u=e.default=(0,o.default)((0,d.jsx)("path",{d:"m23 12-2.44-2.79.34-3.69-3.61-.82-1.89-3.2L12 2.96 8.6 1.5 6.71 4.69 3.1 5.5l.34 3.7L1 12l2.44 2.79-.34 3.7 3.61.82L8.6 22.5l3.4-1.47 3.4 1.46 1.89-3.19 3.61-.82-.34-3.69zm-12.91 4.72-3.8-3.81 1.48-1.48 2.32 2.33 5.85-5.87 1.48 1.48z"}),"Verified");export{u as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{X as e,Y as a,j as r}from"./index-
|
|
1
|
+
import{X as e,Y as a,j as r}from"./index-BowU-Rc8.js";var t={},l=a;Object.defineProperty(t,"__esModule",{value:!0});var o=t.default=void 0,d=l(e()),i=r;o=t.default=(0,d.default)((0,i.jsx)("path",{d:"M19 13H5v-2h14z"}),"Remove");var u={},s=a;Object.defineProperty(u,"__esModule",{value:!0});var f=u.default=void 0,_=s(e()),n=r;f=u.default=(0,_.default)((0,n.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");var v={},p=a;Object.defineProperty(v,"__esModule",{value:!0});var m=v.default=void 0,j=p(e()),R=r;m=v.default=(0,j.default)((0,R.jsx)("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}),"ViewColumn");export{u as C,t as R,v as V,m as a,o as b,f as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{X as t,Y as r,j as a}from"./index-
|
|
1
|
+
import{X as t,Y as r,j as a}from"./index-BowU-Rc8.js";var e={},i=r;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,v=i(t()),o=a;u=e.default=(0,v.default)((0,o.jsx)("path",{d:"M3 14h4v-4H3zm0 5h4v-4H3zM3 9h4V5H3zm5 5h13v-4H8zm0 5h13v-4H8zM8 5v4h13V5z"}),"ViewList");export{u as d};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import{aj as E,u as h,r as l,ak as L,a8 as N,G as o,j as e,B as d,P as g,Z as I,a6 as j,t as y}from"./index-BowU-Rc8.js";import{A as O}from"./config-_6fNEXak.js";import{P}from"./page-header-BmLNlOnD.js";import{S as R}from"./layout-DEXenHhy.js";import{S as b}from"./step-actions-DV3o9hve.js";import{S as v}from"./button-WHxIb92N.js";import{F as T}from"./FormControl-B9P20sHZ.js";import{R as Y,a as B}from"./RadioGroup-F9HJgTgP.js";import{F as D}from"./FormControlLabel-C2tfmf09.js";import"./content-layout-NMxrW85n.js";import"./useFormControl-CqDUGVwx.js";import"./FormGroup-QeEOGRIO.js";import"./Stack-CcM0sATd.js";function C({onNext:s}){const S=E(),{t:c,locale:m}=h(),[i,n]=l.useState(!1),[f,p]=l.useState(""),{blocklet:r}=L();l.useEffect(()=>{var a;const t=N.findServiceFromMeta(r.meta,o.NODE_SERVICES.AUTH);p(((a=t==null?void 0:t.config)==null?void 0:a.whoCanAccess)||o.WHO_CAN_ACCESS.ALL)},[r]);const u=async t=>{let a=o.ACCESS_POLICY_PUBLIC;t===o.WHO_CAN_ACCESS.ALL?a=o.ACCESS_POLICY_PUBLIC:t===o.WHO_CAN_ACCESS.INVITED?a=o.ACCESS_POLICY_INVITED_ONLY:t===o.WHO_CAN_ACCESS.OWNER?a=o.ACCESS_POLICY_OWNER_ONLY:t===o.WHO_CAN_ACCESS.ADMIN&&(a=o.ACCESS_POLICY_ADMIN_ONLY);try{n(!0),await j.updateBlockletSecurityRule({input:{did:r.meta.did,data:{id:o.SECURITY_RULE_DEFAULT_ID,accessPolicyId:a}}}),n(!1)}catch(A){n(!1),y.error(A.message)}},x=async t=>{i||(p(t.target.value),await u(t.target.value))},_={marginRight:4,fontSize:18,verticalAlign:"text-bottom",color:S.palette.text.secondary};return e.jsxs(H,{children:[e.jsx("div",{className:"header",children:e.jsx(P,{title:c("blocklet.config.access.description")})}),e.jsx(T,{component:"fieldset",children:e.jsx(Y,{name:"inherit",value:f,onChange:x,children:O.map(t=>e.jsxs(d,{sx:{mb:2},children:[e.jsx(D,{value:t.value,control:e.jsx(B,{size:"small",color:"primary"}),label:e.jsxs("span",{children:[e.jsx(t.icon,{style:_}),t.title[m]]})}),e.jsx(d,{className:"tip",children:t.description[m]})]},t.value))})}),e.jsx(b,{mt:8,disabled:i,blocklet:r,onStartNow:()=>s("complete"),children:e.jsx(v,{loading:i,variant:"contained",disabled:i,onClick:()=>s(),children:c("setup.continue")})})]})}C.propTypes={onNext:g.func};C.defaultProps={onNext:()=>{}};const H=I(R)`
|
|
2
|
+
height: 100%;
|
|
3
|
+
overflow-y: auto;
|
|
4
|
+
.header {
|
|
5
|
+
width: 100%;
|
|
6
|
+
}
|
|
7
|
+
.tip {
|
|
8
|
+
margin-left: 32px;
|
|
9
|
+
font-size: 12px;
|
|
10
|
+
margin-top: -8px;
|
|
11
|
+
color: ${s=>s.theme.palette.text.secondary};
|
|
12
|
+
}
|
|
13
|
+
`;export{C as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as c,j as a,aC as P,aR as E,aS as v,aT as I,P as p,Z as T}from"./index-
|
|
1
|
+
import{r as c,j as a,aC as P,aR as E,aS as v,aT as I,P as p,Z as T}from"./index-BowU-Rc8.js";import{d as C}from"./MoreHoriz-Cwgb_ZWA.js";import{L as D,a as b}from"./Delete-P7WqUbyQ.js";function l({actions:u,size:m,...d}){const[n,r]=c.useState(null),f=!!n,y=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}r(t.currentTarget)},e=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}r(null)};return a.jsxs(k,{...d,children:[a.jsx(P,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"actions-menu-icon",onClick:y,size:m,children:a.jsx(C,{})}),a.jsx(E,{id:"actions-menu","data-cy":"actions-menu",anchorEl:n,keepMounted:!0,open:f,onClose:e,slotProps:{paper:{}},children:u.map((t,s)=>{if(typeof t=="function")return t({close:e});if(t.separator)return a.jsx(v,{},`separator-${s}`);const{icon:h,text:x,render:z,onClick:o,disabled:j=!1,...g}=t;return c.createElement(I,{...g,disabled:j,dense:!0,onClick:async i=>{i.stopPropagation(),await(o==null?void 0:o(i)),e()},key:s,"data-cy":`actions-menu-${s}`},a.jsx(D,{style:{minWidth:24,marginRight:8},children:h}),a.jsx(b,{primary:x}))})})]})}l.propTypes={actions:p.array,size:p.oneOf(["small","medium","large"])};l.defaultProps={actions:[],size:"small"};const k=T.div``;export{l as A};
|