@abtnode/blocklet-services 1.16.23-beta-aeb9f5bd → 1.16.23-beta-7b5b0175
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/dist/assets/{Add-ajByPcIj.js → Add-EqOtL8nG.js} +1 -1
- package/dist/assets/{Alert-CFkasftY.js → Alert-1ldGO3RW.js} +1 -1
- package/dist/assets/{ArrowDropDown-NRcn4eGZ.js → ArrowDropDown-zgEYYex3.js} +1 -1
- package/dist/assets/Avatar-nuRuqAkZ.js +1 -0
- package/dist/assets/{ButtonGroup-zwK-MH7q.js → ButtonGroup-l7aQ7Vwd.js} +1 -1
- package/dist/assets/{CardContent-tbyZYmTd.js → CardContent-GCq3M-fC.js} +1 -1
- package/dist/assets/{CheckCircle-S9OUyuXN.js → CheckCircle-cGMij8cW.js} +1 -1
- package/dist/assets/{Checkbox-bpk8FEQq.js → Checkbox-m6n_CNKl.js} +1 -1
- package/dist/assets/{ChevronRight-ZhfWwF7L.js → ChevronRight-wwRZ3KD1.js} +1 -1
- package/dist/assets/{DeleteOutline-HeQeIARe.js → DeleteOutline-LwmqNqm9.js} +1 -1
- package/dist/assets/{Done-lxTx5lVr.js → Done-8H9KmF_L.js} +1 -1
- package/dist/assets/{Download-4YB-yuKj.js → Download-R0Cwd7fp.js} +1 -1
- package/dist/assets/{Edit-aojYMuwh.js → Edit-XRUc2Tsd.js} +1 -1
- package/dist/assets/{EditIcon-5jr1bGdL.js → EditIcon-ZY8nX5qR.js} +1 -1
- package/dist/assets/{ExpandMore-cZ1ewx7g.js → ExpandMore-OTVPX9R7.js} +1 -1
- package/dist/assets/{FilterList-5j3ihtr9.js → FilterList-RDHyUvt7.js} +4 -4
- package/dist/assets/{FormControl-Iaw_dZMd.js → FormControl-vBKIKzWB.js} +1 -1
- package/dist/assets/{FormControlLabel-G_qcyult.js → FormControlLabel-iMujz3Fk.js} +1 -1
- package/dist/assets/{FormGroup-o1EmG4rX.js → FormGroup-XgZY0ZQm.js} +1 -1
- package/dist/assets/{Google-MEgv3OpG.js → Google-neBo_j5-.js} +4 -4
- package/dist/assets/{Grid-TJcpPsWX.js → Grid-binDOS5g.js} +1 -1
- package/dist/assets/{Hidden-9A_Bbwv_.js → Hidden-PxHUxz4A.js} +1 -1
- package/dist/assets/{Icon-XsvU9G-o.js → Icon-_HyghTJX.js} +1 -1
- package/dist/assets/{InfoOutlined-sSTAhtHe.js → InfoOutlined-TK1NK3Yw.js} +1 -1
- package/dist/assets/{InputAdornment-jFfdz4wH.js → InputAdornment-fzZwv4Hd.js} +1 -1
- package/dist/assets/{InputLabel-k2mM39EX.js → InputLabel-NkJVK6ai.js} +1 -1
- package/dist/assets/{LastPage-61aG52DA.js → LastPage-hGBuWt4f.js} +1 -1
- package/dist/assets/{Launch-bNztZ-H_.js → Launch-cUTO0lWp.js} +1 -1
- package/dist/assets/{LaunchOutlined-FjF1cuOo.js → LaunchOutlined-ennc4BMI.js} +1 -1
- package/dist/assets/{ListItem-bizj1vQD.js → ListItem-Vp53sGIz.js} +1 -1
- package/dist/assets/{LockIcon-aZHOa9k5.js → LockIcon-ujEweQFk.js} +1 -1
- package/dist/assets/{Loop-n57vuQjY.js → Loop-DzDCCuKh.js} +1 -1
- package/dist/assets/{MoreHoriz-8XV1gAed.js → MoreHoriz-LhZMdESP.js} +1 -1
- package/dist/assets/{MoreVert-gYueO6LR.js → MoreVert-lDh1ZArp.js} +1 -1
- package/dist/assets/{OpenInNew-JbD46P5w.js → OpenInNew-1SOTWyhJ.js} +1 -1
- package/dist/assets/Pagination-hC4DNW_T.js +2 -0
- package/dist/assets/{PlayArrow-irdN46jC.js → PlayArrow-P-rOBMrG.js} +1 -1
- package/dist/assets/{RadioGroup-M3kUnjun.js → RadioGroup-bjGsl5Wv.js} +1 -1
- package/dist/assets/{RevokeIcon-Gc8bXmuP.js → RevokeIcon-sZq3AOJs.js} +1 -1
- package/dist/assets/{Search-jPRpZqZ4.js → Search-YBYCMmsX.js} +1 -1
- package/dist/assets/{Select-J4ADjpz_.js → Select--VNN-coS.js} +2 -2
- package/dist/assets/{ServerLogo-fx-tG70I.js → ServerLogo-DZVr_NTu.js} +1 -1
- package/dist/assets/{Skeleton--yHCDAFp.js → Skeleton-vqfTvlpe.js} +2 -2
- package/dist/assets/{Slider-4kvt-KZB.js → Slider-TF_nRzCq.js} +1 -1
- package/dist/assets/{Stepper-axOIRLpt.js → Stepper-afgJQzIe.js} +1 -1
- package/dist/assets/{TableRow-Bs46c3E4.js → TableRow-BDieACJJ.js} +1 -1
- package/dist/assets/{TextField-1Z7QTeCq.js → TextField-x5sBRUlA.js} +1 -1
- package/dist/assets/{Toolbar-N0L4ADuv.js → Toolbar-vUGjowom.js} +1 -1
- package/dist/assets/{access-control-x7g9bHCo.js → access-control-t-Mn-dDZ.js} +1 -1
- package/dist/assets/{actions-iHA8qJjX.js → actions-4OufOsQ7.js} +1 -1
- package/dist/assets/{add-component-core-5GNqGw0P.js → add-component-core-DPcokfit.js} +1 -1
- package/dist/assets/add-resource-_pNvxOni.js +1 -0
- package/dist/assets/{addon-_kPQ96dg.js → addon-mY-x2YPg.js} +1 -1
- package/dist/assets/{analytics-wqZcRJ5e.js → analytics-Vq-BXWFF.js} +5 -5
- package/dist/assets/api-evFC6K0h.js +1 -0
- package/dist/assets/{audit-logs-MGlmU7TX.js → audit-logs-N6EaawQM.js} +1 -1
- package/dist/assets/{button-79FD38lW.js → button-azOROO7x.js} +1 -1
- package/dist/assets/{click-to-copy-i9BuOLR_.js → click-to-copy-BWJB7cpI.js} +1 -1
- package/dist/assets/{complete-rL8cmbqb.js → complete-djuCvLFq.js} +2 -2
- package/dist/assets/{component-aGMvXt0f.js → component-0kZN_r37.js} +2 -2
- package/dist/assets/{config-ZPT5SC5S.js → config-XLPHfAfG.js} +1 -1
- package/dist/assets/{config-navigation-Uj2N3PH9.js → config-navigation-gh2E49lo.js} +1 -1
- package/dist/assets/{config-dEeuGhMN.js → config-r2KrjYng.js} +2 -2
- package/dist/assets/{confirm--GngDPTA.js → confirm-Mtktmq7k.js} +1 -1
- package/dist/assets/{connect-vdertisn.js → connect-KSJy6-rj.js} +1 -1
- package/dist/assets/{connect-CHEQo0a6.js → connect-mMSBRaYk.js} +1 -1
- package/dist/assets/{content-layout-KidHNGzw.js → content-layout-1Xl_WLH6.js} +1 -1
- package/dist/assets/{dashboard-qhqjIruK.js → dashboard-j3Qv0MUF.js} +3 -3
- package/dist/assets/{did-address-S73i-pdz.js → did-address-MDCcwx6u.js} +1 -1
- package/dist/assets/domain-_GEmlcT6.js +9 -0
- package/dist/assets/{domain-list-0FjmZGtn.js → domain-list-Pv4S_RaT.js} +1 -1
- package/dist/assets/{exchange-passport-jwC-4NXh.js → exchange-passport-7xhRZSEb.js} +1 -1
- package/dist/assets/{fallback-i33j6P7U.js → fallback-DXBYQOHs.js} +1 -1
- package/dist/assets/{fuel-3TfnRKa8.js → fuel-8-fCwCNL.js} +1 -1
- package/dist/assets/{fullpage-KjlhixoJ.js → fullpage-s8lb71N1.js} +1 -1
- package/dist/assets/{home-6llx9wXk.js → home--QohZl4R.js} +1 -1
- package/dist/assets/{iframe-Yz2pjS5v.js → iframe-juWQeztB.js} +1 -1
- package/dist/assets/{index-L3aba7lM.js → index-0EdYQLjc.js} +1 -1
- package/dist/assets/{index-ltXBEMrY.js → index-7FFHHe_N.js} +1 -1
- package/dist/assets/{index-O4LLF34I.js → index-Bu7mhh79.js} +3 -3
- package/dist/assets/{index-FkNTqQ-G.js → index-DJP7GVVb.js} +10 -10
- package/dist/assets/{index-ar7tP4SD.js → index-FPB__s6E.js} +1 -1
- package/dist/assets/{index-25p-XmCG.js → index-FqcuyrsB.js} +1 -1
- package/dist/assets/{index-BzHjcQc_.js → index-GE-zVsc2.js} +1 -1
- package/dist/assets/{index-lZnVOYie.js → index-JWEnB5KI.js} +1 -1
- package/dist/assets/{index-qLaMcboC.js → index-Jw68IBz4.js} +1 -1
- package/dist/assets/{index-sTc8gcBt.js → index-RETW1XMh.js} +1 -1
- package/dist/assets/{index-mTiuKhw_.js → index-RSlksNdD.js} +1 -1
- package/dist/assets/index-TCTrVMXW.css +1 -0
- package/dist/assets/{index-xJrYV_5m.js → index-Umn1dtKo.js} +1 -1
- package/dist/assets/{index-QCmQ2fyv.js → index-X2ZHgV3i.js} +1 -1
- package/dist/assets/{index-WWP1XuID.js → index-Z0BlVtQc.js} +4 -4
- package/dist/assets/{index-JWbVhw8L.js → index-_DLM75xc.js} +1 -1
- package/dist/assets/{index-D-i4JYjn.js → index-d3CWfGhn.js} +1 -1
- package/dist/assets/{index-K1mxBnoK.js → index-dCPMA5UF.js} +2 -2
- package/dist/assets/{index-1wpQpAq_.js → index-dEFilA8i.js} +12 -12
- package/dist/assets/{index-JYzBf_ps.js → index-e6vPthnF.js} +1 -1
- package/dist/assets/{index-INqi1xrq.js → index-emzhv1nT.js} +1 -1
- package/dist/assets/{index-k_T7Fb0Z.js → index-eoPzUFk-.js} +1 -1
- package/dist/assets/{index-aIQYShQ7.js → index-fPJrECRm.js} +1 -1
- package/dist/assets/{index-c5BS9vK7.js → index-goDgO4Ij.js} +1 -1
- package/dist/assets/{index-6KS2jTkQ.js → index-hEieRw0y.js} +3 -3
- package/dist/assets/{index-_ztLpO_9.js → index-jKDffwdj.js} +9 -9
- package/dist/assets/{index-ds223o8U.js → index-lTYX07Ps.js} +91 -91
- package/dist/assets/{index-rA7wec7C.js → index-tnbxz1dY.js} +1 -1
- package/dist/assets/{index-gSkYmla4.js → index-w49mGgcI.js} +1 -1
- package/dist/assets/{index-E1X2qGyA.js → index-zrYCwknK.js} +8 -8
- package/dist/assets/{index.es-6ul8J6NP.js → index.es-Q9mLAsuq.js} +2 -2
- package/dist/assets/{index.esm-6fmOnLlr.js → index.esm-OU89D-Pj.js} +1 -1
- package/dist/assets/inter-latin-400-normal-U9R_j0_y.woff2 +0 -0
- package/dist/assets/inter-latin-400-normal-nYvLeTLv.woff +0 -0
- package/dist/assets/inter-latin-500-normal--CPASgsZ.woff +0 -0
- package/dist/assets/inter-latin-500-normal-JFocBHQx.woff2 +0 -0
- package/dist/assets/inter-latin-600-normal-274dML8R.woff +0 -0
- package/dist/assets/inter-latin-600-normal-dkrH7PHm.woff2 +0 -0
- package/dist/assets/inter-latin-700-normal-hxZXRi9v.woff +0 -0
- package/dist/assets/inter-latin-700-normal-ts3xWOyE.woff2 +0 -0
- package/dist/assets/inter-latin-900-normal-nKjH9plu.woff +0 -0
- package/dist/assets/inter-latin-900-normal-q9Lx9Ocb.woff2 +0 -0
- package/dist/assets/inter-latin-ext-400-normal-91vjqTvm.woff2 +0 -0
- package/dist/assets/inter-latin-ext-400-normal-PLSM5vss.woff +0 -0
- package/dist/assets/inter-latin-ext-500-normal-ErlJEjU1.woff +0 -0
- package/dist/assets/inter-latin-ext-500-normal-fbvEP8xx.woff2 +0 -0
- package/dist/assets/inter-latin-ext-600-normal-4NAZNGKz.woff +0 -0
- package/dist/assets/inter-latin-ext-600-normal-GqN-XZEm.woff2 +0 -0
- package/dist/assets/inter-latin-ext-700-normal-bu5Rtp3b.woff +0 -0
- package/dist/assets/inter-latin-ext-700-normal-gGtzKlLf.woff2 +0 -0
- package/dist/assets/inter-latin-ext-900-normal-93Wi4WDd.woff2 +0 -0
- package/dist/assets/inter-latin-ext-900-normal-eZXZQAvt.woff +0 -0
- package/dist/assets/{invite-4KxApyGd.js → invite-6DMM0PPk.js} +1 -1
- package/dist/assets/{issue-passport-Y4vJKWqY.js → issue-passport-71h-y9X_.js} +1 -1
- package/dist/assets/{jss-plugin-props-sort.esm-bNdFmmWI.js → jss-plugin-props-sort.esm-iYla7Ofn.js} +1 -1
- package/dist/assets/{launch-result-message-Gw05aJFc.js → launch-result-message-bFKcrgWf.js} +1 -1
- package/dist/assets/{layout-C_Yf85LS.js → layout-fuPJ_TpF.js} +1 -1
- package/dist/assets/{list-header-bF3C4y8d.js → list-header--wQnxerP.js} +1 -1
- package/dist/assets/localization-XAGKyaas.js +1 -0
- package/dist/assets/{log-BvldHTmh.js → log-GNImic30.js} +1 -1
- package/dist/assets/{login-pk5p7Zm2.js → login-ebjgPFE8.js} +1 -1
- package/dist/assets/{logo-uploader-lI4X4VyO.js → logo-uploader-A2GBLnOH.js} +3 -3
- package/dist/assets/{lost-passport-v7okomzq.js → lost-passport-AUNfJKa8.js} +3 -3
- package/dist/assets/{lottie-VjkVRY5T.js → lottie-sUoozQjS.js} +1 -1
- package/dist/assets/{notifications--C91qrT9.js → notifications-RcjuD51E.js} +1 -1
- package/dist/assets/{overview-N1gtrKny.js → overview-AmprRPTp.js} +1 -1
- package/dist/assets/{page-header-AQjn6nUv.js → page-header-8goZ8-Rl.js} +1 -1
- package/dist/assets/{permission-KafxxvQ7.js → permission-hbdU87hD.js} +1 -1
- package/dist/assets/{preferences-pNKXWhy8.js → preferences-DhHiLu-g.js} +1 -1
- package/dist/assets/publish-resource-1DEoabgP.js +1 -0
- package/dist/assets/{react-BlEMLZWR.js → react-KwTdr_5V.js} +3 -3
- package/dist/assets/selector-Yakve_Iw.js +46 -0
- package/dist/assets/session-C_EXHtgc.js +1 -0
- package/dist/assets/{setup-p8WSRnEO.js → setup-qkf-O1-k.js} +3 -3
- package/dist/assets/{slicedToArray-iHBV1AH4.js → slicedToArray-hmrl8M96.js} +1 -1
- package/dist/assets/{spaces-KSL0u-_T.js → spaces-p68a7cQo.js} +1 -1
- package/dist/assets/{start-6xcmlia7.js → start-UhquDvLm.js} +1 -1
- package/dist/assets/{step-actions-IPtbge50.js → step-actions-9XLlbuAd.js} +1 -1
- package/dist/assets/{studio-bzUKQWFR.js → studio-FKPH-5Is.js} +1 -1
- package/dist/assets/{switch-control-zTdiwn5t.js → switch-control-XJA8Q2M5.js} +1 -1
- package/dist/assets/{toUpper-9QpYH1G_.js → toUpper-pP5P_Uzx.js} +1 -1
- package/dist/assets/{transfer-j5wSdn6J.js → transfer-BkZW48Wj.js} +1 -1
- package/dist/assets/ubuntu-mono-cyrillic-400-normal-Cet8Npzg.woff +0 -0
- package/dist/assets/ubuntu-mono-cyrillic-ext-400-normal-0Nr3QbWH.woff +0 -0
- package/dist/assets/ubuntu-mono-greek-400-normal-nPPFGWwV.woff +0 -0
- package/dist/assets/ubuntu-mono-greek-ext-400-normal-KdFZVwFm.woff +0 -0
- package/dist/assets/ubuntu-mono-latin-400-normal-Dp4O8cuq.woff +0 -0
- package/dist/assets/ubuntu-mono-latin-ext-400-normal-Ib0NXz3I.woff2 +0 -0
- package/dist/assets/ubuntu-mono-latin-ext-400-normal-QZPQh_Ya.woff +0 -0
- package/dist/assets/{uniqBy-T_x9cNk1.js → uniqBy-hw-cVyvr.js} +1 -1
- package/dist/assets/{unsubscribe-Qg8Pj5wI.js → unsubscribe-vhObWF0b.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-ksjvoMK5.js → use-blocklet-info-for-connect-did-spaces-UNlaKQY9.js} +1 -1
- package/dist/assets/{useAsync-mWViTVP2.js → useAsync-Wc4wsAuQ.js} +1 -1
- package/dist/assets/{useFormControl-12MXghSo.js → useFormControl-e5GO7t9a.js} +1 -1
- package/dist/assets/{useLocalStorage-B1umTbBO.js → useLocalStorage-BMu-4uRp.js} +1 -1
- package/dist/assets/{useSetState-F_JO3EPl.js → useSetState-8mygcy6W.js} +1 -1
- package/dist/assets/user-center-JEZvqelx.js +1 -0
- package/dist/assets/{util-Rw0-l4ul.js → util-Sl89gu8k.js} +1 -1
- package/dist/assets/{wrap-locale-BVbpwtIA.js → wrap-locale-eIqShWHu.js} +1 -1
- package/dist/index.html +3 -4
- package/dist/manifest.webmanifest +1 -0
- package/dist/registerSW.js +1 -0
- package/dist/service-worker.js +1752 -2
- package/package.json +32 -32
- package/dist/assets/Avatar-oXf5RLvL.js +0 -1
- package/dist/assets/Pagination-oHY7RLeB.js +0 -2
- package/dist/assets/add-resource-HL_BNW_N.js +0 -1
- package/dist/assets/api-tCRKkuhZ.js +0 -1
- package/dist/assets/domain-nrgrnfgm.js +0 -9
- package/dist/assets/index-Fay2ci-b.css +0 -1
- package/dist/assets/lato-all-400-normal-J9JTbfbq.woff +0 -0
- package/dist/assets/lato-all-700-normal-hoWrJF_J.woff +0 -0
- package/dist/assets/lato-latin-400-normal-RIbX5ua0.woff2 +0 -0
- package/dist/assets/lato-latin-700-normal-VBjIIp-A.woff2 +0 -0
- package/dist/assets/lato-latin-ext-400-normal-vHgWfo9s.woff2 +0 -0
- package/dist/assets/lato-latin-ext-700-normal-uVlnzcMZ.woff2 +0 -0
- package/dist/assets/localization-162fXA43.js +0 -1
- package/dist/assets/publish-resource-4zTF4AxH.js +0 -1
- package/dist/assets/selector-e2Rb6BOt.js +0 -46
- package/dist/assets/session-Ry1S0mrL.js +0 -1
- package/dist/assets/ubuntu-mono-all-400-normal-bPeWxOcj.woff +0 -0
- package/dist/assets/ubuntu-mono-latin-ext-400-normal-pKhfBlxE.woff2 +0 -0
- package/dist/assets/user-center-0l-lnKor.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as S,cI as xt,fC as he,fD as yt,bP as rt,bO as St,ce as Xe,cf as we,fE as qe,aE as s,c8 as _e,ay as Lt,az as Pt,aG as ie,j as T,aA as ee,aB as Y,cE as Ct,cD as $t,bN as at,d0 as ct,aC as Tt,bk as Rt,aD as It,aF as B,aH as wt}from"./index-ds223o8U.js";const _t={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},zt=_t;function Et(e,t,a=(l,c)=>l===c){return e.length===t.length&&e.every((l,c)=>a(l,t[c]))}const Mt=2;function ut(e,t){return e-t}function nt(e,t){var a;const{index:l}=(a=e.reduce((c,L,R)=>{const f=Math.abs(t-L);return c===null||f<c.distance||f===c.distance?{distance:f,index:R}:c},null))!=null?a:{};return l}function $e(e,t){if(t.current!==void 0&&e.changedTouches){const a=e;for(let l=0;l<a.changedTouches.length;l+=1){const c=a.changedTouches[l];if(c.identifier===t.current)return{x:c.clientX,y:c.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function ze(e,t,a){return(e-t)*100/(a-t)}function At(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 Vt(e,t,a){const l=Math.round((e-a)/t)*t+a;return Number(l.toFixed(Nt(t)))}function lt({values:e,newValue:t,index:a}){const l=e.slice();return l[a]=t,l.sort(ut)}function Te({sliderRef:e,activeIndex:t,setActive:a}){var l,c;const L=we(e.current);if(!((l=e.current)!=null&&l.contains(L.activeElement))||Number(L==null||(c=L.activeElement)==null?void 0:c.getAttribute("data-index"))!==t){var R;(R=e.current)==null||R.querySelector(`[type="range"][data-index="${t}"]`).focus()}a&&a(t)}function Re(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?Et(e,t):!1}const Ft={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Ht=e=>e;let Ie;function st(){return Ie===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Ie=CSS.supports("touch-action","none"):Ie=!0),Ie}function jt(e){const{"aria-labelledby":t,defaultValue:a,disabled:l=!1,disableSwap:c=!1,isRtl:L=!1,marks:R=!1,max:f=100,min:m=0,name:U,onChange:ce,onChangeCommitted:W,orientation:te="horizontal",rootRef:ve,scale:ue=Ht,step:N=1,tabIndex:ge,value:ke}=e,V=S.useRef(),[X,j]=S.useState(-1),[xe,O]=S.useState(-1),[de,pe]=S.useState(!1),q=S.useRef(0),[z,D]=xt({controlled:ke,default:a??m,name:"Slider"}),F=ce&&((o,r,n)=>{const i=o.nativeEvent||o,g=new i.constructor(i.type,i);Object.defineProperty(g,"target",{writable:!0,value:{value:r,name:U}}),ce(g,r,n)}),G=Array.isArray(z);let x=G?z.slice().sort(ut):[z];x=x.map(o=>o==null?m:he(o,m,f));const me=R===!0&&N!==null?[...Array(Math.floor((f-m)/N)+1)].map((o,r)=>({value:m+N*r})):R||[],I=me.map(o=>o.value),{isFocusVisibleRef:ye,onBlur:E,onFocus:M,ref:Ee}=yt(),[Se,oe]=S.useState(-1),P=S.useRef(),Le=rt(Ee,P),fe=rt(ve,Le),Pe=o=>r=>{var n;const i=Number(r.currentTarget.getAttribute("data-index"));M(r),ye.current===!0&&oe(i),O(i),o==null||(n=o.onFocus)==null||n.call(o,r)},Me=o=>r=>{var n;E(r),ye.current===!1&&oe(-1),O(-1),o==null||(n=o.onBlur)==null||n.call(o,r)};St(()=>{if(l&&P.current.contains(document.activeElement)){var o;(o=document.activeElement)==null||o.blur()}},[l]),l&&X!==-1&&j(-1),l&&Se!==-1&&oe(-1);const re=o=>r=>{var n;(n=o.onChange)==null||n.call(o,r);const i=Number(r.currentTarget.getAttribute("data-index")),g=x[i],C=I.indexOf(g);let u=r.target.valueAsNumber;if(me&&N==null){const p=I[I.length-1];u>p?u=p:u<I[0]?u=I[0]:u=u<g?I[C-1]:I[C+1]}if(u=he(u,m,f),G){c&&(u=he(u,x[i-1]||-1/0,x[i+1]||1/0));const p=u;u=lt({values:x,newValue:u,index:i});let h=i;c||(h=u.indexOf(p)),Te({sliderRef:P,activeIndex:h})}D(u),oe(i),F&&!Re(u,z)&&F(r,u,i),W&&W(r,u)},J=S.useRef();let ae=te;L&&te==="horizontal"&&(ae+="-reverse");const ne=({finger:o,move:r=!1})=>{const{current:n}=P,{width:i,height:g,bottom:C,left:u}=n.getBoundingClientRect();let p;ae.indexOf("vertical")===0?p=(C-o.y)/g:p=(o.x-u)/i,ae.indexOf("-reverse")!==-1&&(p=1-p);let h;if(h=At(p,m,f),N)h=Vt(h,N,m);else{const be=nt(I,h);h=I[be]}h=he(h,m,f);let A=0;if(G){r?A=J.current:A=nt(x,h),c&&(h=he(h,x[A-1]||-1/0,x[A+1]||1/0));const be=h;h=lt({values:x,newValue:h,index:A}),c&&r||(A=h.indexOf(be),J.current=A)}return{newValue:h,activeIndex:A}},K=Xe(o=>{const r=$e(o,V);if(!r)return;if(q.current+=1,o.type==="mousemove"&&o.buttons===0){w(o);return}const{newValue:n,activeIndex:i}=ne({finger:r,move:!0});Te({sliderRef:P,activeIndex:i,setActive:j}),D(n),!de&&q.current>Mt&&pe(!0),F&&!Re(n,z)&&F(o,n,i)}),w=Xe(o=>{const r=$e(o,V);if(pe(!1),!r)return;const{newValue:n}=ne({finger:r,move:!0});j(-1),o.type==="touchend"&&O(-1),W&&W(o,n),V.current=void 0,d()}),b=Xe(o=>{if(l)return;st()||o.preventDefault();const r=o.changedTouches[0];r!=null&&(V.current=r.identifier);const n=$e(o,V);if(n!==!1){const{newValue:g,activeIndex:C}=ne({finger:n});Te({sliderRef:P,activeIndex:C,setActive:j}),D(g),F&&!Re(g,z)&&F(o,g,C)}q.current=0;const i=we(P.current);i.addEventListener("touchmove",K,{passive:!0}),i.addEventListener("touchend",w,{passive:!0})}),d=S.useCallback(()=>{const o=we(P.current);o.removeEventListener("mousemove",K),o.removeEventListener("mouseup",w),o.removeEventListener("touchmove",K),o.removeEventListener("touchend",w)},[w,K]);S.useEffect(()=>{const{current:o}=P;return o.addEventListener("touchstart",b,{passive:st()}),()=>{o.removeEventListener("touchstart",b),d()}},[d,b]),S.useEffect(()=>{l&&d()},[l,d]);const le=o=>r=>{var n;if((n=o.onMouseDown)==null||n.call(o,r),l||r.defaultPrevented||r.button!==0)return;r.preventDefault();const i=$e(r,V);if(i!==!1){const{newValue:C,activeIndex:u}=ne({finger:i});Te({sliderRef:P,activeIndex:u,setActive:j}),D(C),F&&!Re(C,z)&&F(r,C,u)}q.current=0;const g=we(P.current);g.addEventListener("mousemove",K,{passive:!0}),g.addEventListener("mouseup",w)},Q=ze(G?x[0]:m,m,f),Z=ze(x[x.length-1],m,f)-Q,Ae=(o={})=>{const r=qe(o),n={onMouseDown:le(r||{})},i=s({},r,n);return s({},o,{ref:fe},i)},y=o=>r=>{var n;(n=o.onMouseOver)==null||n.call(o,r);const i=Number(r.currentTarget.getAttribute("data-index"));O(i)},se=o=>r=>{var n;(n=o.onMouseLeave)==null||n.call(o,r),O(-1)};return{active:X,axis:ae,axisProps:Ft,dragging:de,focusedThumbIndex:Se,getHiddenInputProps:(o={})=>{var r;const n=qe(o),i={onChange:re(n||{}),onFocus:Pe(n||{}),onBlur:Me(n||{})},g=s({},n,i);return s({tabIndex:ge,"aria-labelledby":t,"aria-orientation":te,"aria-valuemax":ue(f),"aria-valuemin":ue(m),name:U,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(r=e.step)!=null?r:void 0,disabled:l},o,g,{style:s({},zt,{direction:L?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Ae,getThumbProps:(o={})=>{const r=qe(o),n={onMouseOver:y(r||{}),onMouseLeave:se(r||{})};return s({},o,r,n)},marks:me,open:xe,range:G,rootRef:fe,trackLeap:Z,trackOffset:Q,values:x,getThumbStyle:o=>({pointerEvents:X!==-1&&X!==o?"none":void 0})}}const Ot=e=>!e||!_e(e);function Dt(e){return Pt("MuiSlider",e)}const _=Lt("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"]),Bt=e=>{const{open:t}=e;return{offset:ie(t&&_.valueLabelOpen),circle:_.valueLabelCircle,label:_.valueLabelLabel}};function Yt(e){const{children:t,className:a,value:l}=e,c=Bt(e);return t?S.cloneElement(t,{className:ie(t.props.className)},T.jsxs(S.Fragment,{children:[t.props.children,T.jsx("span",{className:ie(c.offset,a),"aria-hidden":!0,children:T.jsx("span",{className:c.circle,children:T.jsx("span",{className:c.label,children:l})})})]})):null}const Ut=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function it(e){return e}const Wt=ee("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,t[`color${Y(a.color)}`],a.size!=="medium"&&t[`size${Y(a.size)}`],a.marked&&t.marked,a.orientation==="vertical"&&t.vertical,a.track==="inverted"&&t.trackInverted,a.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>s({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&s({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&s({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${_.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${_.dragging}`]:{[`& .${_.thumb}, & .${_.track}`]:{transition:"none"}}})),Xt=ee("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>s({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),qt=ee("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const a=e.palette.mode==="light"?Ct(e.palette[t.color].main,.62):$t(e.palette[t.color].main,.5);return s({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})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:a,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:a})}),Gt=ee("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.thumb,t[`thumbColor${Y(a.color)}`],a.size!=="medium"&&t[`thumbSize${Y(a.size)}`]]}})(({theme:e,ownerState:t})=>s({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})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&::before":s({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${_.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:at(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${_.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:at(e.palette[t.color].main,.16)}`},[`&.${_.disabled}`]:{"&:hover":{boxShadow:"none"}}})),Jt=ee(Yt,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>s({[`&.${_.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,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"},t.orientation==="horizontal"&&{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.orientation==="vertical"&&{right:t.size==="small"?"20px":"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.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),Kt=ee("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>ct(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:a}=e;return[t.mark,a&&t.markActive]}})(({theme:e,ownerState:t,markActive:a})=>s({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},a&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),Qt=ee("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>ct(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:a})=>s({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},a&&{color:(e.vars||e).palette.text.primary})),Zt=e=>{const{disabled:t,dragging:a,marked:l,orientation:c,track:L,classes:R,color:f,size:m}=e,U={root:["root",t&&"disabled",a&&"dragging",l&&"marked",c==="vertical"&&"vertical",L==="inverted"&&"trackInverted",L===!1&&"trackFalse",f&&`color${Y(f)}`,m&&`size${Y(m)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",m&&`thumbSize${Y(m)}`,f&&`thumbColor${Y(f)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return wt(U,Dt,R)},eo=({children:e})=>e,to=S.forwardRef(function(t,a){var l,c,L,R,f,m,U,ce,W,te,ve,ue,N,ge,ke,V,X,j,xe,O,de,pe,q,z;const D=Tt({props:t,name:"MuiSlider"}),G=Rt().direction==="rtl",{"aria-label":x,"aria-valuetext":me,"aria-labelledby":I,component:ye="span",components:E={},componentsProps:M={},color:Ee="primary",classes:Se,className:oe,disableSwap:P=!1,disabled:Le=!1,getAriaLabel:fe,getAriaValueText:Pe,marks:Me=!1,max:re=100,min:J=0,orientation:ae="horizontal",size:ne="medium",step:K=1,scale:w=it,slotProps:b,slots:d,track:le="normal",valueLabelDisplay:Q="off",valueLabelFormat:Z=it}=D,Ae=It(D,Ut),y=s({},D,{isRtl:G,max:re,min:J,classes:Se,disabled:Le,disableSwap:P,orientation:ae,marks:Me,color:Ee,size:ne,step:K,scale:w,track:le,valueLabelDisplay:Q,valueLabelFormat:Z}),{axisProps:se,getRootProps:Ge,getHiddenInputProps:Je,getThumbProps:Ke,open:o,active:r,axis:n,focusedThumbIndex:i,range:g,dragging:C,marks:u,values:p,trackOffset:h,trackLeap:A,getThumbStyle:be}=jt(s({},y,{rootRef:a}));y.marked=u.length>0&&u.some(v=>v.label),y.dragging=C,y.focusedThumbIndex=i;const $=Zt(y),Ne=(l=(c=d==null?void 0:d.root)!=null?c:E.Root)!=null?l:Wt,Qe=(L=(R=d==null?void 0:d.rail)!=null?R:E.Rail)!=null?L:Xt,Ze=(f=(m=d==null?void 0:d.track)!=null?m:E.Track)!=null?f:qt,et=(U=(ce=d==null?void 0:d.thumb)!=null?ce:E.Thumb)!=null?U:Gt,tt=(W=(te=d==null?void 0:d.valueLabel)!=null?te:E.ValueLabel)!=null?W:Jt,Ve=(ve=(ue=d==null?void 0:d.mark)!=null?ue:E.Mark)!=null?ve:Kt,Fe=(N=(ge=d==null?void 0:d.markLabel)!=null?ge:E.MarkLabel)!=null?N:Qt,ot=(ke=(V=d==null?void 0:d.input)!=null?V:E.Input)!=null?ke:"input",He=(X=b==null?void 0:b.root)!=null?X:M.root,dt=(j=b==null?void 0:b.rail)!=null?j:M.rail,je=(xe=b==null?void 0:b.track)!=null?xe:M.track,Oe=(O=b==null?void 0:b.thumb)!=null?O:M.thumb,De=(de=b==null?void 0:b.valueLabel)!=null?de:M.valueLabel,pt=(pe=b==null?void 0:b.mark)!=null?pe:M.mark,mt=(q=b==null?void 0:b.markLabel)!=null?q:M.markLabel,ft=(z=b==null?void 0:b.input)!=null?z:M.input,bt=B({elementType:Ne,getSlotProps:Ge,externalSlotProps:He,externalForwardedProps:Ae,additionalProps:s({},Ot(Ne)&&{as:ye}),ownerState:s({},y,He==null?void 0:He.ownerState),className:[$.root,oe]}),ht=B({elementType:Qe,externalSlotProps:dt,ownerState:y,className:$.rail}),vt=B({elementType:Ze,externalSlotProps:je,additionalProps:{style:s({},se[n].offset(h),se[n].leap(A))},ownerState:s({},y,je==null?void 0:je.ownerState),className:$.track}),Be=B({elementType:et,getSlotProps:Ke,externalSlotProps:Oe,ownerState:s({},y,Oe==null?void 0:Oe.ownerState),className:$.thumb}),gt=B({elementType:tt,externalSlotProps:De,ownerState:s({},y,De==null?void 0:De.ownerState),className:$.valueLabel}),Ye=B({elementType:Ve,externalSlotProps:pt,ownerState:y,className:$.mark}),Ue=B({elementType:Fe,externalSlotProps:mt,ownerState:y,className:$.markLabel}),kt=B({elementType:ot,getSlotProps:Je,externalSlotProps:ft,ownerState:y});return T.jsxs(Ne,s({},bt,{children:[T.jsx(Qe,s({},ht)),T.jsx(Ze,s({},vt)),u.filter(v=>v.value>=J&&v.value<=re).map((v,k)=>{const We=ze(v.value,J,re),Ce=se[n].offset(We);let H;return le===!1?H=p.indexOf(v.value)!==-1:H=le==="normal"&&(g?v.value>=p[0]&&v.value<=p[p.length-1]:v.value<=p[0])||le==="inverted"&&(g?v.value<=p[0]||v.value>=p[p.length-1]:v.value>=p[0]),T.jsxs(S.Fragment,{children:[T.jsx(Ve,s({"data-index":k},Ye,!_e(Ve)&&{markActive:H},{style:s({},Ce,Ye.style),className:ie(Ye.className,H&&$.markActive)})),v.label!=null?T.jsx(Fe,s({"aria-hidden":!0,"data-index":k},Ue,!_e(Fe)&&{markLabelActive:H},{style:s({},Ce,Ue.style),className:ie($.markLabel,Ue.className,H&&$.markLabelActive),children:v.label})):null]},k)}),p.map((v,k)=>{const We=ze(v,J,re),Ce=se[n].offset(We),H=Q==="off"?eo:tt;return T.jsx(H,s({},!_e(H)&&{valueLabelFormat:Z,valueLabelDisplay:Q,value:typeof Z=="function"?Z(w(v),k):Z,index:k,open:o===k||r===k||Q==="on",disabled:Le},gt,{children:T.jsx(et,s({"data-index":k},Be,{className:ie($.thumb,Be.className,r===k&&$.active,i===k&&$.focusVisible),style:s({},Ce,be(k),Be.style),children:T.jsx(ot,s({"data-index":k,"aria-label":fe?fe(k):x,"aria-valuenow":w(v),"aria-labelledby":I,"aria-valuetext":Pe?Pe(w(v),k):me,value:p[k]},kt))}))}),k)})]}))}),ro=to;export{ro as S};
|
|
1
|
+
import{r as S,cH as xt,fB as he,fC as yt,bP as rt,bO as St,cd as Xe,ce as we,fD as qe,aE as s,c7 as _e,ay as Lt,az as Pt,aG as ie,j as T,aA as ee,aB as Y,cD as Ct,cC as $t,bN as at,c$ as ct,aC as Tt,bk as Rt,aD as It,aF as B,aH as wt}from"./index-lTYX07Ps.js";const _t={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},zt=_t;function Mt(e,t,a=(l,c)=>l===c){return e.length===t.length&&e.every((l,c)=>a(l,t[c]))}const At=2;function ut(e,t){return e-t}function nt(e,t){var a;const{index:l}=(a=e.reduce((c,L,R)=>{const f=Math.abs(t-L);return c===null||f<c.distance||f===c.distance?{distance:f,index:R}:c},null))!=null?a:{};return l}function $e(e,t){if(t.current!==void 0&&e.changedTouches){const a=e;for(let l=0;l<a.changedTouches.length;l+=1){const c=a.changedTouches[l];if(c.identifier===t.current)return{x:c.clientX,y:c.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function ze(e,t,a){return(e-t)*100/(a-t)}function Nt(e,t,a){return(a-t)*e+t}function Et(e){if(Math.abs(e)<1){const a=e.toExponential().split("e-"),l=a[0].split(".")[1];return(l?l.length:0)+parseInt(a[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function Vt(e,t,a){const l=Math.round((e-a)/t)*t+a;return Number(l.toFixed(Et(t)))}function lt({values:e,newValue:t,index:a}){const l=e.slice();return l[a]=t,l.sort(ut)}function Te({sliderRef:e,activeIndex:t,setActive:a}){var l,c;const L=we(e.current);if(!((l=e.current)!=null&&l.contains(L.activeElement))||Number(L==null||(c=L.activeElement)==null?void 0:c.getAttribute("data-index"))!==t){var R;(R=e.current)==null||R.querySelector(`[type="range"][data-index="${t}"]`).focus()}a&&a(t)}function Re(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?Mt(e,t):!1}const Ft={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Ht=e=>e;let Ie;function st(){return Ie===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Ie=CSS.supports("touch-action","none"):Ie=!0),Ie}function jt(e){const{"aria-labelledby":t,defaultValue:a,disabled:l=!1,disableSwap:c=!1,isRtl:L=!1,marks:R=!1,max:f=100,min:m=0,name:U,onChange:ce,onChangeCommitted:W,orientation:te="horizontal",rootRef:ve,scale:ue=Ht,step:E=1,tabIndex:ge,value:ke}=e,V=S.useRef(),[X,j]=S.useState(-1),[xe,O]=S.useState(-1),[de,pe]=S.useState(!1),q=S.useRef(0),[z,D]=xt({controlled:ke,default:a??m,name:"Slider"}),F=ce&&((o,r,n)=>{const i=o.nativeEvent||o,g=new i.constructor(i.type,i);Object.defineProperty(g,"target",{writable:!0,value:{value:r,name:U}}),ce(g,r,n)}),G=Array.isArray(z);let x=G?z.slice().sort(ut):[z];x=x.map(o=>o==null?m:he(o,m,f));const me=R===!0&&E!==null?[...Array(Math.floor((f-m)/E)+1)].map((o,r)=>({value:m+E*r})):R||[],I=me.map(o=>o.value),{isFocusVisibleRef:ye,onBlur:M,onFocus:A,ref:Me}=yt(),[Se,oe]=S.useState(-1),P=S.useRef(),Le=rt(Me,P),fe=rt(ve,Le),Pe=o=>r=>{var n;const i=Number(r.currentTarget.getAttribute("data-index"));A(r),ye.current===!0&&oe(i),O(i),o==null||(n=o.onFocus)==null||n.call(o,r)},Ae=o=>r=>{var n;M(r),ye.current===!1&&oe(-1),O(-1),o==null||(n=o.onBlur)==null||n.call(o,r)};St(()=>{if(l&&P.current.contains(document.activeElement)){var o;(o=document.activeElement)==null||o.blur()}},[l]),l&&X!==-1&&j(-1),l&&Se!==-1&&oe(-1);const re=o=>r=>{var n;(n=o.onChange)==null||n.call(o,r);const i=Number(r.currentTarget.getAttribute("data-index")),g=x[i],C=I.indexOf(g);let u=r.target.valueAsNumber;if(me&&E==null){const p=I[I.length-1];u>p?u=p:u<I[0]?u=I[0]:u=u<g?I[C-1]:I[C+1]}if(u=he(u,m,f),G){c&&(u=he(u,x[i-1]||-1/0,x[i+1]||1/0));const p=u;u=lt({values:x,newValue:u,index:i});let h=i;c||(h=u.indexOf(p)),Te({sliderRef:P,activeIndex:h})}D(u),oe(i),F&&!Re(u,z)&&F(r,u,i),W&&W(r,u)},J=S.useRef();let ae=te;L&&te==="horizontal"&&(ae+="-reverse");const ne=({finger:o,move:r=!1})=>{const{current:n}=P,{width:i,height:g,bottom:C,left:u}=n.getBoundingClientRect();let p;ae.indexOf("vertical")===0?p=(C-o.y)/g:p=(o.x-u)/i,ae.indexOf("-reverse")!==-1&&(p=1-p);let h;if(h=Nt(p,m,f),E)h=Vt(h,E,m);else{const be=nt(I,h);h=I[be]}h=he(h,m,f);let N=0;if(G){r?N=J.current:N=nt(x,h),c&&(h=he(h,x[N-1]||-1/0,x[N+1]||1/0));const be=h;h=lt({values:x,newValue:h,index:N}),c&&r||(N=h.indexOf(be),J.current=N)}return{newValue:h,activeIndex:N}},K=Xe(o=>{const r=$e(o,V);if(!r)return;if(q.current+=1,o.type==="mousemove"&&o.buttons===0){w(o);return}const{newValue:n,activeIndex:i}=ne({finger:r,move:!0});Te({sliderRef:P,activeIndex:i,setActive:j}),D(n),!de&&q.current>At&&pe(!0),F&&!Re(n,z)&&F(o,n,i)}),w=Xe(o=>{const r=$e(o,V);if(pe(!1),!r)return;const{newValue:n}=ne({finger:r,move:!0});j(-1),o.type==="touchend"&&O(-1),W&&W(o,n),V.current=void 0,d()}),b=Xe(o=>{if(l)return;st()||o.preventDefault();const r=o.changedTouches[0];r!=null&&(V.current=r.identifier);const n=$e(o,V);if(n!==!1){const{newValue:g,activeIndex:C}=ne({finger:n});Te({sliderRef:P,activeIndex:C,setActive:j}),D(g),F&&!Re(g,z)&&F(o,g,C)}q.current=0;const i=we(P.current);i.addEventListener("touchmove",K,{passive:!0}),i.addEventListener("touchend",w,{passive:!0})}),d=S.useCallback(()=>{const o=we(P.current);o.removeEventListener("mousemove",K),o.removeEventListener("mouseup",w),o.removeEventListener("touchmove",K),o.removeEventListener("touchend",w)},[w,K]);S.useEffect(()=>{const{current:o}=P;return o.addEventListener("touchstart",b,{passive:st()}),()=>{o.removeEventListener("touchstart",b),d()}},[d,b]),S.useEffect(()=>{l&&d()},[l,d]);const le=o=>r=>{var n;if((n=o.onMouseDown)==null||n.call(o,r),l||r.defaultPrevented||r.button!==0)return;r.preventDefault();const i=$e(r,V);if(i!==!1){const{newValue:C,activeIndex:u}=ne({finger:i});Te({sliderRef:P,activeIndex:u,setActive:j}),D(C),F&&!Re(C,z)&&F(r,C,u)}q.current=0;const g=we(P.current);g.addEventListener("mousemove",K,{passive:!0}),g.addEventListener("mouseup",w)},Q=ze(G?x[0]:m,m,f),Z=ze(x[x.length-1],m,f)-Q,Ne=(o={})=>{const r=qe(o),n={onMouseDown:le(r||{})},i=s({},r,n);return s({},o,{ref:fe},i)},y=o=>r=>{var n;(n=o.onMouseOver)==null||n.call(o,r);const i=Number(r.currentTarget.getAttribute("data-index"));O(i)},se=o=>r=>{var n;(n=o.onMouseLeave)==null||n.call(o,r),O(-1)};return{active:X,axis:ae,axisProps:Ft,dragging:de,focusedThumbIndex:Se,getHiddenInputProps:(o={})=>{var r;const n=qe(o),i={onChange:re(n||{}),onFocus:Pe(n||{}),onBlur:Ae(n||{})},g=s({},n,i);return s({tabIndex:ge,"aria-labelledby":t,"aria-orientation":te,"aria-valuemax":ue(f),"aria-valuemin":ue(m),name:U,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(r=e.step)!=null?r:void 0,disabled:l},o,g,{style:s({},zt,{direction:L?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Ne,getThumbProps:(o={})=>{const r=qe(o),n={onMouseOver:y(r||{}),onMouseLeave:se(r||{})};return s({},o,r,n)},marks:me,open:xe,range:G,rootRef:fe,trackLeap:Z,trackOffset:Q,values:x,getThumbStyle:o=>({pointerEvents:X!==-1&&X!==o?"none":void 0})}}const Ot=e=>!e||!_e(e);function Dt(e){return Pt("MuiSlider",e)}const _=Lt("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"]),Bt=e=>{const{open:t}=e;return{offset:ie(t&&_.valueLabelOpen),circle:_.valueLabelCircle,label:_.valueLabelLabel}};function Yt(e){const{children:t,className:a,value:l}=e,c=Bt(e);return t?S.cloneElement(t,{className:ie(t.props.className)},T.jsxs(S.Fragment,{children:[t.props.children,T.jsx("span",{className:ie(c.offset,a),"aria-hidden":!0,children:T.jsx("span",{className:c.circle,children:T.jsx("span",{className:c.label,children:l})})})]})):null}const Ut=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function it(e){return e}const Wt=ee("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,t[`color${Y(a.color)}`],a.size!=="medium"&&t[`size${Y(a.size)}`],a.marked&&t.marked,a.orientation==="vertical"&&t.vertical,a.track==="inverted"&&t.trackInverted,a.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>s({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&s({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&s({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${_.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${_.dragging}`]:{[`& .${_.thumb}, & .${_.track}`]:{transition:"none"}}})),Xt=ee("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>s({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),qt=ee("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const a=e.palette.mode==="light"?Ct(e.palette[t.color].main,.62):$t(e.palette[t.color].main,.5);return s({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})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:a,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:a})}),Gt=ee("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.thumb,t[`thumbColor${Y(a.color)}`],a.size!=="medium"&&t[`thumbSize${Y(a.size)}`]]}})(({theme:e,ownerState:t})=>s({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})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&::before":s({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${_.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:at(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${_.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:at(e.palette[t.color].main,.16)}`},[`&.${_.disabled}`]:{"&:hover":{boxShadow:"none"}}})),Jt=ee(Yt,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>s({[`&.${_.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,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"},t.orientation==="horizontal"&&{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.orientation==="vertical"&&{right:t.size==="small"?"20px":"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.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),Kt=ee("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>ct(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:a}=e;return[t.mark,a&&t.markActive]}})(({theme:e,ownerState:t,markActive:a})=>s({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},a&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),Qt=ee("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>ct(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:a})=>s({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},a&&{color:(e.vars||e).palette.text.primary})),Zt=e=>{const{disabled:t,dragging:a,marked:l,orientation:c,track:L,classes:R,color:f,size:m}=e,U={root:["root",t&&"disabled",a&&"dragging",l&&"marked",c==="vertical"&&"vertical",L==="inverted"&&"trackInverted",L===!1&&"trackFalse",f&&`color${Y(f)}`,m&&`size${Y(m)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",m&&`thumbSize${Y(m)}`,f&&`thumbColor${Y(f)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return wt(U,Dt,R)},eo=({children:e})=>e,to=S.forwardRef(function(t,a){var l,c,L,R,f,m,U,ce,W,te,ve,ue,E,ge,ke,V,X,j,xe,O,de,pe,q,z;const D=Tt({props:t,name:"MuiSlider"}),G=Rt().direction==="rtl",{"aria-label":x,"aria-valuetext":me,"aria-labelledby":I,component:ye="span",components:M={},componentsProps:A={},color:Me="primary",classes:Se,className:oe,disableSwap:P=!1,disabled:Le=!1,getAriaLabel:fe,getAriaValueText:Pe,marks:Ae=!1,max:re=100,min:J=0,orientation:ae="horizontal",size:ne="medium",step:K=1,scale:w=it,slotProps:b,slots:d,track:le="normal",valueLabelDisplay:Q="off",valueLabelFormat:Z=it}=D,Ne=It(D,Ut),y=s({},D,{isRtl:G,max:re,min:J,classes:Se,disabled:Le,disableSwap:P,orientation:ae,marks:Ae,color:Me,size:ne,step:K,scale:w,track:le,valueLabelDisplay:Q,valueLabelFormat:Z}),{axisProps:se,getRootProps:Ge,getHiddenInputProps:Je,getThumbProps:Ke,open:o,active:r,axis:n,focusedThumbIndex:i,range:g,dragging:C,marks:u,values:p,trackOffset:h,trackLeap:N,getThumbStyle:be}=jt(s({},y,{rootRef:a}));y.marked=u.length>0&&u.some(v=>v.label),y.dragging=C,y.focusedThumbIndex=i;const $=Zt(y),Ee=(l=(c=d==null?void 0:d.root)!=null?c:M.Root)!=null?l:Wt,Qe=(L=(R=d==null?void 0:d.rail)!=null?R:M.Rail)!=null?L:Xt,Ze=(f=(m=d==null?void 0:d.track)!=null?m:M.Track)!=null?f:qt,et=(U=(ce=d==null?void 0:d.thumb)!=null?ce:M.Thumb)!=null?U:Gt,tt=(W=(te=d==null?void 0:d.valueLabel)!=null?te:M.ValueLabel)!=null?W:Jt,Ve=(ve=(ue=d==null?void 0:d.mark)!=null?ue:M.Mark)!=null?ve:Kt,Fe=(E=(ge=d==null?void 0:d.markLabel)!=null?ge:M.MarkLabel)!=null?E:Qt,ot=(ke=(V=d==null?void 0:d.input)!=null?V:M.Input)!=null?ke:"input",He=(X=b==null?void 0:b.root)!=null?X:A.root,dt=(j=b==null?void 0:b.rail)!=null?j:A.rail,je=(xe=b==null?void 0:b.track)!=null?xe:A.track,Oe=(O=b==null?void 0:b.thumb)!=null?O:A.thumb,De=(de=b==null?void 0:b.valueLabel)!=null?de:A.valueLabel,pt=(pe=b==null?void 0:b.mark)!=null?pe:A.mark,mt=(q=b==null?void 0:b.markLabel)!=null?q:A.markLabel,ft=(z=b==null?void 0:b.input)!=null?z:A.input,bt=B({elementType:Ee,getSlotProps:Ge,externalSlotProps:He,externalForwardedProps:Ne,additionalProps:s({},Ot(Ee)&&{as:ye}),ownerState:s({},y,He==null?void 0:He.ownerState),className:[$.root,oe]}),ht=B({elementType:Qe,externalSlotProps:dt,ownerState:y,className:$.rail}),vt=B({elementType:Ze,externalSlotProps:je,additionalProps:{style:s({},se[n].offset(h),se[n].leap(N))},ownerState:s({},y,je==null?void 0:je.ownerState),className:$.track}),Be=B({elementType:et,getSlotProps:Ke,externalSlotProps:Oe,ownerState:s({},y,Oe==null?void 0:Oe.ownerState),className:$.thumb}),gt=B({elementType:tt,externalSlotProps:De,ownerState:s({},y,De==null?void 0:De.ownerState),className:$.valueLabel}),Ye=B({elementType:Ve,externalSlotProps:pt,ownerState:y,className:$.mark}),Ue=B({elementType:Fe,externalSlotProps:mt,ownerState:y,className:$.markLabel}),kt=B({elementType:ot,getSlotProps:Je,externalSlotProps:ft,ownerState:y});return T.jsxs(Ee,s({},bt,{children:[T.jsx(Qe,s({},ht)),T.jsx(Ze,s({},vt)),u.filter(v=>v.value>=J&&v.value<=re).map((v,k)=>{const We=ze(v.value,J,re),Ce=se[n].offset(We);let H;return le===!1?H=p.indexOf(v.value)!==-1:H=le==="normal"&&(g?v.value>=p[0]&&v.value<=p[p.length-1]:v.value<=p[0])||le==="inverted"&&(g?v.value<=p[0]||v.value>=p[p.length-1]:v.value>=p[0]),T.jsxs(S.Fragment,{children:[T.jsx(Ve,s({"data-index":k},Ye,!_e(Ve)&&{markActive:H},{style:s({},Ce,Ye.style),className:ie(Ye.className,H&&$.markActive)})),v.label!=null?T.jsx(Fe,s({"aria-hidden":!0,"data-index":k},Ue,!_e(Fe)&&{markLabelActive:H},{style:s({},Ce,Ue.style),className:ie($.markLabel,Ue.className,H&&$.markLabelActive),children:v.label})):null]},k)}),p.map((v,k)=>{const We=ze(v,J,re),Ce=se[n].offset(We),H=Q==="off"?eo:tt;return T.jsx(H,s({},!_e(H)&&{valueLabelFormat:Z,valueLabelDisplay:Q,value:typeof Z=="function"?Z(w(v),k):Z,index:k,open:o===k||r===k||Q==="on",disabled:Le},gt,{children:T.jsx(et,s({"data-index":k},Be,{className:ie($.thumb,Be.className,r===k&&$.active,i===k&&$.focusVisible),style:s({},Ce,be(k),Be.style),children:T.jsx(ot,s({"data-index":k,"aria-label":fe?fe(k):x,"aria-valuenow":w(v),"aria-labelledby":I,"aria-valuetext":Pe?Pe(w(v),k):me,value:p[k]},kt))}))}),k)})]}))}),ro=to;export{ro as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as d,az as w,ay as U,aA as x,aE as s,aC as _,aD as T,j as i,aG as P,aH as W,al as F,
|
|
1
|
+
import{r as d,az as w,ay as U,aA as x,aE as s,aC as _,aD as T,j as i,aG as P,aH as W,al as F,ch as G,aB as H}from"./index-lTYX07Ps.js";const q=d.createContext({}),k=q,J=d.createContext({}),E=J;function K(e){return w("MuiStep",e)}U("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const O=["active","children","className","component","completed","disabled","expanded","index","last"],Q=e=>{const{classes:t,orientation:o,alternativeLabel:n,completed:a}=e;return W({root:["root",o,n&&"alternativeLabel",a&&"completed"]},K,t)},X=x("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})(({ownerState:e})=>s({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),Y=d.forwardRef(function(t,o){const n=_({props:t,name:"MuiStep"}),{active:a,children:l,className:v,component:c="div",completed:p,disabled:b,expanded:u=!1,index:r,last:m}=n,M=T(n,O),{activeStep:g,connector:C,alternativeLabel:y,orientation:R,nonLinear:$}=d.useContext(k);let[S=!1,I=!1,L=!1]=[a,p,b];g===r?S=a!==void 0?a:!0:!$&&g>r?I=p!==void 0?p:!0:!$&&g<r&&(L=b!==void 0?b:!0);const j=d.useMemo(()=>({index:r,last:m,expanded:u,icon:r+1,active:S,completed:I,disabled:L}),[r,m,u,S,I,L]),f=s({},n,{active:S,orientation:R,alternativeLabel:y,completed:I,disabled:L,expanded:u,component:c}),N=Q(f),z=i.jsxs(X,s({as:c,className:P(N.root,v),ref:o,ownerState:f},M,{children:[C&&y&&r!==0?C:null,l]}));return i.jsx(E.Provider,{value:j,children:C&&!y&&r!==0?i.jsxs(d.Fragment,{children:[C,z]}):z})}),ze=Y,Z=F(i.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),ee=F(i.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function te(e){return w("MuiStepIcon",e)}const oe=U("MuiStepIcon",["root","active","completed","error","text"]),A=oe;var B;const ne=["active","className","completed","error","icon"],ae=e=>{const{classes:t,active:o,completed:n,error:a}=e;return W({root:["root",o&&"active",n&&"completed",a&&"error"],text:["text"]},te,t)},D=x(G,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${A.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${A.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${A.error}`]:{color:(e.vars||e).palette.error.main}})),re=x("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),se=d.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepIcon"}),{active:a=!1,className:l,completed:v=!1,error:c=!1,icon:p}=n,b=T(n,ne),u=s({},n,{active:a,completed:v,error:c}),r=ae(u);if(typeof p=="number"||typeof p=="string"){const m=P(l,r.root);return c?i.jsx(D,s({as:ee,className:m,ref:o,ownerState:u},b)):v?i.jsx(D,s({as:Z,className:m,ref:o,ownerState:u},b)):i.jsxs(D,s({className:m,ref:o,ownerState:u},b,{children:[B||(B=i.jsx("circle",{cx:"12",cy:"12",r:"12"})),i.jsx(re,{className:r.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:u,children:p})]}))}return p}),le=se;function ie(e){return w("MuiStepLabel",e)}const ce=U("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),h=ce,pe=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],de=e=>{const{classes:t,orientation:o,active:n,completed:a,error:l,disabled:v,alternativeLabel:c}=e;return W({root:["root",o,l&&"error",v&&"disabled",c&&"alternativeLabel"],label:["label",n&&"active",a&&"completed",l&&"error",v&&"disabled",c&&"alternativeLabel"],iconContainer:["iconContainer",n&&"active",a&&"completed",l&&"error",v&&"disabled",c&&"alternativeLabel"],labelContainer:["labelContainer",c&&"alternativeLabel"]},ie,t)},ve=x("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation]]}})(({ownerState:e})=>s({display:"flex",alignItems:"center",[`&.${h.alternativeLabel}`]:{flexDirection:"column"},[`&.${h.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),ue=x("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>s({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${h.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${h.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${h.alternativeLabel}`]:{marginTop:16},[`&.${h.error}`]:{color:(e.vars||e).palette.error.main}})),be=x("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${h.alternativeLabel}`]:{paddingRight:0}})),me=x("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${h.alternativeLabel}`]:{textAlign:"center"}})),V=d.forwardRef(function(t,o){var n;const a=_({props:t,name:"MuiStepLabel"}),{children:l,className:v,componentsProps:c={},error:p=!1,icon:b,optional:u,slotProps:r={},StepIconComponent:m,StepIconProps:M}=a,g=T(a,pe),{alternativeLabel:C,orientation:y}=d.useContext(k),{active:R,disabled:$,completed:S,icon:I}=d.useContext(E),L=b||I;let j=m;L&&!j&&(j=le);const f=s({},a,{active:R,alternativeLabel:C,completed:S,disabled:$,error:p,orientation:y}),N=de(f),z=(n=r.label)!=null?n:c.label;return i.jsxs(ve,s({className:P(N.root,v),ref:o,ownerState:f},g,{children:[L||j?i.jsx(be,{className:N.iconContainer,ownerState:f,children:i.jsx(j,s({completed:S,active:R,error:p,icon:L},M))}):null,i.jsxs(me,{className:N.labelContainer,ownerState:f,children:[l?i.jsx(ue,s({ownerState:f},z,{className:P(N.label,z==null?void 0:z.className),children:l})):null,u]})]}))});V.muiName="StepLabel";const Pe=V;function Se(e){return w("MuiStepConnector",e)}U("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const xe=["className"],Ce=e=>{const{classes:t,orientation:o,alternativeLabel:n,active:a,completed:l,disabled:v}=e,c={root:["root",o,n&&"alternativeLabel",a&&"active",l&&"completed",v&&"disabled"],line:["line",`line${H(o)}`]};return W(c,Se,t)},Le=x("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})(({ownerState:e})=>s({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),fe=x("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.line,t[`line${H(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})}),he=d.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepConnector"}),{className:a}=n,l=T(n,xe),{alternativeLabel:v,orientation:c="horizontal"}=d.useContext(k),{active:p,disabled:b,completed:u}=d.useContext(E),r=s({},n,{alternativeLabel:v,orientation:c,active:p,completed:u,disabled:b}),m=Ce(r);return i.jsx(Le,s({className:P(m.root,a),ref:o,ownerState:r},l,{children:i.jsx(fe,{className:m.line,ownerState:r})}))}),ge=he;function ye(e){return w("MuiStepper",e)}U("MuiStepper",["root","horizontal","vertical","alternativeLabel"]);const $e=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],Me=e=>{const{orientation:t,alternativeLabel:o,classes:n}=e;return W({root:["root",t,o&&"alternativeLabel"]},ye,n)},Re=x("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel]}})(({ownerState:e})=>s({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),Ie=i.jsx(ge,{}),je=d.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepper"}),{activeStep:a=0,alternativeLabel:l=!1,children:v,className:c,component:p="div",connector:b=Ie,nonLinear:u=!1,orientation:r="horizontal"}=n,m=T(n,$e),M=s({},n,{alternativeLabel:l,orientation:r,component:p}),g=Me(M),C=d.Children.toArray(v).filter(Boolean),y=C.map(($,S)=>d.cloneElement($,s({index:S,last:S+1===C.length},$.props))),R=d.useMemo(()=>({activeStep:a,alternativeLabel:l,connector:b,nonLinear:u,orientation:r}),[a,l,b,u,r]);return i.jsx(k.Provider,{value:R,children:i.jsx(Re,s({as:p,ownerState:M,className:P(g.root,c),ref:o},m,{children:y}))})}),we=je;export{we as S,ze as a,Pe as b};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as c,az as m,ay as $,aA as R,aE as i,aC as h,aD as k,j as y,aG as w,aH as H,aB as u,
|
|
1
|
+
import{r as c,az as m,ay as $,aA as R,aE as i,aC as h,aD as k,j as y,aG as w,aH as H,aB as u,cD as W,bN as T,cC as L}from"./index-lTYX07Ps.js";const S=c.createContext(),D=S;function G(e){return m("MuiTable",e)}const I=$("MuiTable",["root","stickyHeader"]),Ce=I,J=["className","component","padding","size","stickyHeader"],q=e=>{const{classes:a,stickyHeader:o}=e;return H({root:["root",o&&"stickyHeader"]},G,a)},F=R("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,a)=>{const{ownerState:o}=e;return[a.root,o.stickyHeader&&a.stickyHeader]}})(({theme:e,ownerState:a})=>i({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":i({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},a.stickyHeader&&{borderCollapse:"separate"})),A="table",K=c.forwardRef(function(a,o){const t=h({props:a,name:"MuiTable"}),{className:n,component:s=A,padding:l="normal",size:r="medium",stickyHeader:d=!1}=t,b=k(t,J),p=i({},t,{component:s,padding:l,size:r,stickyHeader:d}),v=q(p),z=c.useMemo(()=>({padding:l,size:r,stickyHeader:d}),[l,r,d]);return y.jsx(D.Provider,{value:z,children:y.jsx(F,i({as:s,role:s===A?null:"table",ref:o,className:w(v.root,n),ownerState:p},b))})}),fe=K,Q=c.createContext(),M=Q;function V(e){return m("MuiTableBody",e)}const X=$("MuiTableBody",["root"]),xe=X,Y=["className","component"],Z=e=>{const{classes:a}=e;return H({root:["root"]},V,a)},ee=R("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,a)=>a.root})({display:"table-row-group"}),ae={variant:"body"},P="tbody",oe=c.forwardRef(function(a,o){const t=h({props:a,name:"MuiTableBody"}),{className:n,component:s=P}=t,l=k(t,Y),r=i({},t,{component:s}),d=Z(r);return y.jsx(M.Provider,{value:ae,children:y.jsx(ee,i({className:w(d.root,n),as:s,ref:o,role:s===P?null:"rowgroup",ownerState:r},l))})}),Te=oe;function te(e){return m("MuiTableCell",e)}const se=$("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),le=se,ne=["align","className","component","padding","scope","size","sortDirection","variant"],re=e=>{const{classes:a,variant:o,align:t,padding:n,size:s,stickyHeader:l}=e,r={root:["root",o,l&&"stickyHeader",t!=="inherit"&&`align${u(t)}`,n!=="normal"&&`padding${u(n)}`,`size${u(s)}`]};return H(r,te,a)},ie=R("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,a)=>{const{ownerState:o}=e;return[a.root,a[o.variant],a[`size${u(o.size)}`],o.padding!=="normal"&&a[`padding${u(o.padding)}`],o.align!=="inherit"&&a[`align${u(o.align)}`],o.stickyHeader&&a.stickyHeader]}})(({theme:e,ownerState:a})=>i({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
2
2
|
${e.palette.mode==="light"?W(T(e.palette.divider,1),.88):L(T(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},a.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},a.variant==="body"&&{color:(e.vars||e).palette.text.primary},a.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},a.size==="small"&&{padding:"6px 16px",[`&.${le.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},a.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},a.padding==="none"&&{padding:0},a.align==="left"&&{textAlign:"left"},a.align==="center"&&{textAlign:"center"},a.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},a.align==="justify"&&{textAlign:"justify"},a.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),ce=c.forwardRef(function(a,o){const t=h({props:a,name:"MuiTableCell"}),{align:n="inherit",className:s,component:l,padding:r,scope:d,size:b,sortDirection:p,variant:v}=t,z=k(t,ne),g=c.useContext(D),f=c.useContext(M),N=f&&f.variant==="head";let C;l?C=l:C=N?"th":"td";let x=d;C==="td"?x=void 0:!x&&N&&(x="col");const B=v||f&&f.variant,j=i({},t,{align:n,component:C,padding:r||(g&&g.padding?g.padding:"normal"),size:b||(g&&g.size?g.size:"medium"),sortDirection:p,stickyHeader:B==="head"&&g&&g.stickyHeader,variant:B}),E=re(j);let U=null;return p&&(U=p==="asc"?"ascending":"descending"),y.jsx(ie,i({as:C,ref:o,className:w(E.root,s),"aria-sort":U,scope:x,ownerState:j},z))}),me=ce;function de(e){return m("MuiTableRow",e)}const pe=$("MuiTableRow",["root","selected","hover","head","footer"]),O=pe,be=["className","component","hover","selected"],ge=e=>{const{classes:a,selected:o,hover:t,head:n,footer:s}=e;return H({root:["root",o&&"selected",t&&"hover",n&&"head",s&&"footer"]},de,a)},ue=R("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,a)=>{const{ownerState:o}=e;return[a.root,o.head&&a.head,o.footer&&a.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${O.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${O.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:T(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:T(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),_="tr",ye=c.forwardRef(function(a,o){const t=h({props:a,name:"MuiTableRow"}),{className:n,component:s=_,hover:l=!1,selected:r=!1}=t,d=k(t,be),b=c.useContext(M),p=i({},t,{component:s,hover:l,selected:r,head:b&&b.variant==="head",footer:b&&b.variant==="footer"}),v=ge(p);return y.jsx(ue,i({as:s,ref:o,className:w(v.root,n),role:s===_?null:"row",ownerState:p},d))}),$e=ye;export{fe as T,Te as a,$e as b,me as c,V as d,xe as e,te as f,G as g,le as h,M as i,de as j,O as k,Ce as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{az as M,ay as q,aA as S,aB as L,aE as a,r as N,aC as U,aD as _,j as i,aG as B,aH as E,
|
|
1
|
+
import{az as M,ay as q,aA as S,aB as L,aE as a,r as N,aC as U,aD as _,j as i,aG as B,aH as E,cI as re}from"./index-lTYX07Ps.js";import{F as ae}from"./FormControl-vBKIKzWB.js";import{I as le}from"./InputLabel-NkJVK6ai.js";import{S as ie,I as ne,F as de,O as ce}from"./Select--VNN-coS.js";import{u as ue,f as pe}from"./useFormControl-e5GO7t9a.js";function me(e){return M("MuiFormHelperText",e)}const fe=q("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),j=fe;var w;const xe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Fe=e=>{const{classes:o,contained:t,size:r,disabled:n,error:d,filled:c,focused:p,required:u}=e,s={root:["root",n&&"disabled",d&&"error",r&&`size${L(r)}`,t&&"contained",p&&"focused",c&&"filled",u&&"required"]};return E(s,me,o)},Te=S("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.size&&o[`size${L(t.size)}`],t.contained&&o.contained,t.filled&&o.filled]}})(({theme:e,ownerState:o})=>a({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${j.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${j.error}`]:{color:(e.vars||e).palette.error.main}},o.size==="small"&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})),be=N.forwardRef(function(o,t){const r=U({props:o,name:"MuiFormHelperText"}),{children:n,className:d,component:c="p"}=r,p=_(r,xe),u=ue(),s=pe({props:r,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),m=a({},r,{component:c,contained:s.variant==="filled"||s.variant==="outlined",variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),F=Fe(m);return i.jsx(Te,a({as:c,ownerState:m,className:B(F.root,d),ref:t},p,{children:n===" "?w||(w=i.jsx("span",{className:"notranslate",children:""})):n}))}),ve=be;function he(e){return M("MuiTextField",e)}const Ce=q("MuiTextField",["root"]),Me=Ce,ge=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Ie={standard:ne,filled:de,outlined:ce},Re=e=>{const{classes:o}=e;return E({root:["root"]},he,o)},ye=S(ae,{name:"MuiTextField",slot:"Root",overridesResolver:(e,o)=>o.root})({}),He=N.forwardRef(function(o,t){const r=U({props:o,name:"MuiTextField"}),{autoComplete:n,autoFocus:d=!1,children:c,className:p,color:u="primary",defaultValue:s,disabled:m=!1,error:F=!1,FormHelperTextProps:O,fullWidth:v=!1,helperText:h,id:W,InputLabelProps:T,inputProps:k,InputProps:A,inputRef:V,label:f,maxRows:D,minRows:G,multiline:R=!1,name:J,onBlur:K,onChange:Q,onFocus:X,placeholder:Y,required:y=!1,rows:Z,select:C=!1,SelectProps:g,type:ee,value:H,variant:b="outlined"}=r,oe=_(r,ge),z=a({},r,{autoFocus:d,color:u,disabled:m,error:F,fullWidth:v,multiline:R,required:y,select:C,variant:b}),se=Re(z),x={};b==="outlined"&&(T&&typeof T.shrink<"u"&&(x.notched=T.shrink),x.label=f),C&&((!g||!g.native)&&(x.id=void 0),x["aria-describedby"]=void 0);const l=re(W),I=h&&l?`${l}-helper-text`:void 0,P=f&&l?`${l}-label`:void 0,te=Ie[b],$=i.jsx(te,a({"aria-describedby":I,autoComplete:n,autoFocus:d,defaultValue:s,fullWidth:v,multiline:R,name:J,rows:Z,maxRows:D,minRows:G,type:ee,value:H,id:l,inputRef:V,onBlur:K,onChange:Q,onFocus:X,placeholder:Y,inputProps:k},x,A));return i.jsxs(ye,a({className:B(se.root,p),disabled:m,error:F,fullWidth:v,ref:t,required:y,color:u,variant:b,ownerState:z},oe,{children:[f!=null&&f!==""&&i.jsx(le,a({htmlFor:l,id:P},T,{children:f})),C?i.jsx(ie,a({"aria-describedby":I,id:l,labelId:P,value:H,input:$},g,{children:c})):$,h&&i.jsx(ve,a({id:I},O,{children:h}))]}))}),qe=He;export{ve as F,qe as T,me as a,j as f,he as g,Me as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{az as d,ay as g,aA as b,aE as e,r as m,aC as v,aD as T,j as x,aG as f,aH as C}from"./index-
|
|
1
|
+
import{az as d,ay as g,aA as b,aE as e,r as m,aC as v,aD as T,j as x,aG as f,aH as C}from"./index-lTYX07Ps.js";function R(s){return d("MuiToolbar",s)}const G=g("MuiToolbar",["root","gutters","regular","dense"]),L=G,y=["className","component","disableGutters","variant"],j=s=>{const{classes:a,disableGutters:t,variant:o}=s;return C({root:["root",!t&&"gutters",o]},R,a)},M=b("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(s,a)=>{const{ownerState:t}=s;return[a.root,!t.disableGutters&&a.gutters,a[t.variant]]}})(({theme:s,ownerState:a})=>e({position:"relative",display:"flex",alignItems:"center"},!a.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}},a.variant==="dense"&&{minHeight:48}),({theme:s,ownerState:a})=>a.variant==="regular"&&s.mixins.toolbar),U=m.forwardRef(function(a,t){const o=v({props:a,name:"MuiToolbar"}),{className:r,component:n="div",disableGutters:l=!1,variant:c="regular"}=o,u=T(o,y),i=e({},o,{component:n,disableGutters:l,variant:c}),p=j(i);return x.jsx(M,e({as:n,className:f(p.root,r),ref:t,ownerState:i},u))}),N=U;export{N as T,R as g,L as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as c,u as g,j as e,a as L,aw as B,P as b,bk as R,a8 as I,
|
|
1
|
+
import{r as c,u as g,j as e,a as L,aw as B,P as b,bk as R,a8 as I,fc as N,B as _,w as f,n as h,G as E,b4 as z}from"./index-lTYX07Ps.js";import{P as F}from"./page-header-8goZ8-Rl.js";import{A as W}from"./config-XLPHfAfG.js";import{S as H}from"./layout-fuPJ_TpF.js";import{S as G}from"./step-actions-9XLlbuAd.js";import{S as O}from"./button-azOROO7x.js";import{d as $}from"./InfoOutlined-TK1NK3Yw.js";import{F as q}from"./FormControl-vBKIKzWB.js";import{R as V,a as D}from"./RadioGroup-bjGsl5Wv.js";import{F as x}from"./FormControlLabel-iMujz3Fk.js";import{C as J}from"./Checkbox-m6n_CNKl.js";import"./content-layout-1Xl_WLH6.js";import"./useFormControl-e5GO7t9a.js";import"./FormGroup-XgZY0ZQm.js";function j({children:s}){const{t:r}=g();return e.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[s,e.jsx(L,{title:r("blocklet.config.access.publicInstanceTip"),children:e.jsx(B,{children:e.jsx($,{fontSize:"small"})})})]})}j.propTypes={children:b.any.isRequired};const K=c.memo(j);function y({onNext:s}){const r=R(),{t:i,locale:m}=g(),[a,o]=c.useState(!1),[p,d]=c.useState(""),[C,S]=c.useState(!1),{blocklet:n,actions:u,getPublicInstance:v}=I();c.useEffect(()=>{d(N(n)),S(v(n))},[n]);const A=async t=>{try{o(!0),await z(800),await u.configWhoCanAccess(t),o(!1)}catch(l){o(!1),h.error(l.message)}},k=async t=>{a||(d(t.target.value),await A(t.target.value))},P=async t=>{const l=t.target.checked;try{o(!0),await u.configPublicToStore(l),o(!1)}catch(w){o(!1),h.error(w.message)}},T={marginRight:4,fontSize:18,verticalAlign:"text-bottom",color:r.palette.text.secondary};return e.jsxs(M,{children:[e.jsx("div",{className:"header",children:e.jsx(F,{title:i("blocklet.config.access.description")})}),e.jsx(q,{component:"fieldset",children:e.jsx(V,{name:"inherit",value:p,onChange:k,children:W.map(t=>e.jsxs("div",{style:{marginBottom:16},children:[e.jsx(x,{value:t.value,control:e.jsx(D,{color:"primary"}),label:e.jsxs("span",{children:[e.jsx(t.icon,{style:T}),t.title[m]]})}),e.jsxs(_,{className:"tip",children:[t.description[m],t.value===f.WHO_CAN_ACCESS.ALL&&p===f.WHO_CAN_ACCESS.ALL&&n.source==="registry"&&e.jsx(K,{children:e.jsx(x,{style:{marginRight:0},value:t.value,control:e.jsx(J,{size:"small"}),label:e.jsx("span",{children:i("blocklet.config.access.publicToStore")}),onChange:P,checked:C,disabled:a})})]})]},t.value))})}),e.jsx(G,{mt:8,disabled:a,blocklet:n,onStartNow:()=>s("complete"),children:e.jsx(O,{loading:a,variant:"contained",disabled:a,onClick:()=>s(),children:i("setup.continue")})})]})}y.propTypes={onNext:b.func};y.defaultProps={onNext:()=>{}};const M=E(H)`
|
|
2
2
|
height: 100%;
|
|
3
3
|
overflow-y: auto;
|
|
4
4
|
.header {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,j as e,aw as g,a$ as E,b1 as k,P as i,G as C}from"./index-
|
|
1
|
+
import{r,j as e,aw as g,a$ as E,b1 as k,P as i,G as C}from"./index-lTYX07Ps.js";import{d as I}from"./MoreHoriz-LhZMdESP.js";import{L as b,a as v}from"./confirm-Mtktmq7k.js";function c({actions:l,size:p,...u}){const[n,o]=r.useState(null),m=!!n,d=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}o(t.currentTarget)},a=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}o(null)};return e.jsxs(T,{...u,children:[e.jsx(g,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"actions-menu-icon",onClick:d,size:p,children:e.jsx(I,{})}),e.jsx(E,{id:"actions-menu","data-cy":"actions-menu",anchorEl:n,keepMounted:!0,open:m,onClose:a,PaperProps:{},children:l.map((t,s)=>{if(typeof t=="function")return t({close:a});const{icon:y,text:f,onClick:h,disabled:x=!1,...j}=t;return r.createElement(k,{...j,disabled:x,dense:!0,onClick:async P=>{await h(P),a()},key:s,"data-cy":`actions-menu-${s}`},e.jsx(b,{style:{minWidth:24,marginRight:8},children:y}),e.jsx(v,{primary:f}))})})]})}c.propTypes={actions:i.array,size:i.oneOf(["small","medium","large"])};c.defaultProps={actions:[],size:"small"};const T=C.div``;export{c as A};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{az as Ko,ay as Ho,aA as Wo,r as h,aC as Jo,aD as Ur,aE as Oe,j as l,aG as Qo,aH as Xo,d1 as Zo,d2 as Yo,d3 as hi,d4 as Ze,aq as ki,d5 as es,d6 as ts,f as x0,d7 as rs,d8 as h0,d9 as k0,da as ns,aB as pr,cP as Yn,K as ze,M as qe,aS as Yt,db as ea,c0 as as,bv as is,P as d,bW as re,u as ee,bl as os,cb as ta,F as ie,a9 as De,dc as yi,Y as At,c6 as wt,c as Ve,x as C0,dd as ss,de as ls,n as Ee,S as de,am as ft,G as se,df as ve,w as st,q as cs,U as e0,B as F,bx as Dr,e as us,aw as N0,dg as ms,T as H,b7 as ps,dh as bi,bk as t0,aX as dt,di as gi,b1 as vi,dj as fs,dk as ds,as as ra,a6 as xs,Z as hs,N as ks,dl as ys,b as Si,bV as bs,bD as gs,c3 as vs,br as Ei,dm as Br,ci as Ss,bn as Es,dn as As,a7 as ws,bo as Ds,be as Ai,c2 as Bs,v as js,dp as Gs,dq as Ps,a4 as Vs,A as Os,dr as Cs,H as Fs,ds as wi,dt as Ts,bw as Is,ab as Dt,cl as Di,aa as Rs,ac as na,$ as Ue,C as Ms,bu as _s,du as Ns,dv as $s,dw as Ls,dx as Us,dy as zs,dz as qs,dA as fr,dB as aa}from"./index-ds223o8U.js";import{u as Bi}from"./uniqBy-T_x9cNk1.js";import{P as ji}from"./page-header-AQjn6nUv.js";import{S as Ks,u as Hs,L as Ws}from"./index-qLaMcboC.js";import{D as zr,A as $0,f as Ke}from"./index-WWP1XuID.js";import{l as Js}from"./lottie-VjkVRY5T.js";import{L as ia}from"./launch-result-message-Gw05aJFc.js";import{S as Qs}from"./index-gSkYmla4.js";import{R as dr}from"./logo-uploader-lI4X4VyO.js";import{a as oa}from"./api-tCRKkuhZ.js";import{f as Xs,j as Zs,a as Ys,c as e1,d as t1,b as r1,e as n1,g as a1,h as i1}from"./jss-plugin-props-sort.esm-bNdFmmWI.js";import{u as o1,L as s1,a as l1,C as c1}from"./confirm--GngDPTA.js";import{L as Gi,a as u1}from"./ListItem-bizj1vQD.js";import{v as m1}from"./util-Rw0-l4ul.js";import{s as Pi,h as p1,w as f1,f as d1,a as x1,b as h1,c as k1,S as y1,d as b1}from"./index-sTc8gcBt.js";import{T as g1,a as v1,b as S1,c as sa}from"./TableRow-Bs46c3E4.js";import{F as E1}from"./FormControlLabel-G_qcyult.js";import{C as A1}from"./Checkbox-bpk8FEQq.js";import{I as la}from"./index-L3aba7lM.js";import{u as w1}from"./session-Ry1S0mrL.js";import{W as Vi}from"./did-address-S73i-pdz.js";import{T as xt}from"./TextField-1Z7QTeCq.js";import{S as D1,a as B1,b as j1}from"./Stepper-axOIRLpt.js";import{d as G1}from"./ArrowDropDown-NRcn4eGZ.js";import{_ as P1}from"./useLocalStorage-B1umTbBO.js";import{d as V1}from"./Add-ajByPcIj.js";import{d as O1}from"./Launch-bNztZ-H_.js";import{d as Oi}from"./DeleteOutline-HeQeIARe.js";import{C as C1}from"./click-to-copy-i9BuOLR_.js";import{A as F1}from"./Alert-CFkasftY.js";import{E as qr}from"./fallback-i33j6P7U.js";import{d as T1}from"./Search-jPRpZqZ4.js";import{G as Ci}from"./Grid-TJcpPsWX.js";import{O as I1}from"./Select-J4ADjpz_.js";import{H as ca}from"./Hidden-9A_Bbwv_.js";import{M as ua}from"./InputAdornment-jFfdz4wH.js";import{y as R1,g as M1,q as _1}from"./preact.module-yJdvQMHZ.js";import{C as N1}from"./content-layout-KidHNGzw.js";import{P as $1,u as L1}from"./use-blocklet-info-for-connect-did-spaces-ksjvoMK5.js";import{d as U1,g as z1,a as q1,b as K1,e as H1,f as ma,i as pa,h as W1}from"./spaces-KSL0u-_T.js";import{S as fa}from"./index-c5BS9vK7.js";function J1(e){return Ko("MuiTableContainer",e)}Ho("MuiTableContainer",["root"]);const Q1=["className","component"],X1=e=>{const{classes:t}=e;return Xo({root:["root"]},J1,t)},Z1=Wo("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Y1=h.forwardRef(function(t,r){const n=Jo({props:t,name:"MuiTableContainer"}),{className:a,component:i="div"}=n,o=Ur(n,Q1),s=Oe({},n,{component:i}),c=X1(s);return l.jsx(Z1,Oe({ref:r,as:i,className:Qo(c.root,a),ownerState:s},o))}),el=Y1;function tl(e,t,r){r===void 0&&(r={});var n=Zo(t);Yo(function(){var a=hi(r.target,window);if(a!=null&&a.addEventListener){var i=function(o){return n.current(o)};return a.addEventListener(e,i,{capture:r.capture,once:r.once,passive:r.passive}),function(){a.removeEventListener(e,i,{capture:r.capture})}}},[e,r.capture,r.once,r.passive],r.target)}var rl=function(e){return e===document||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},nl=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},al=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},il=function(e,t){t===void 0&&(t={});var r=t.target,n=t.isNoMore,a=t.threshold,i=a===void 0?100:a,o=t.reloadDeps,s=o===void 0?[]:o,c=t.manual,u=t.onBefore,p=t.onSuccess,m=t.onError,f=t.onFinally,k=Ze(h.useState(),2),y=k[0],x=k[1],b=Ze(h.useState(!1),2),v=b[0],g=b[1],S=h.useMemo(function(){return n?n(y):!1},[y]),A=ki(function(N){return es(void 0,void 0,void 0,function(){var U,Z,T;return ts(this,function(B){switch(B.label){case 0:return[4,e(N)];case 1:return U=B.sent(),x(N?k0(k0({},U),{list:h0(h0([],Ze((T=N.list)!==null&&T!==void 0?T:[]),!1),Ze(U.list),!1)}):k0(k0({},U),{list:h0([],Ze((Z=U.list)!==null&&Z!==void 0?Z:[]),!1)})),[2,U]}})})},{manual:c,onFinally:function(N,U,Z){g(!1),f==null||f(U,Z)},onBefore:function(){return u==null?void 0:u()},onSuccess:function(N){setTimeout(function(){V()}),p==null||p(N)},onError:function(N){return m==null?void 0:m(N)}}),w=A.loading,D=A.run,_=A.runAsync,G=A.cancel,E=x0(function(){S||(g(!0),D(y))}),j=x0(function(){return S?Promise.reject():(g(!0),_(y))}),P=function(){return g(!1),D()},$=function(){return g(!1),_()},V=function(){var N=hi(r);if(N){N=N===document?document.documentElement:N;var U=rl(N),Z=nl(N),T=al(N);Z-U<=T+i&&E()}};return tl("scroll",function(){w||v||V()},{target:r}),rs(function(){D()},h0([],Ze(s),!1)),{data:y,loading:!v&&w,loadingMore:v,noMore:S,loadMore:E,loadMoreAsync:j,reload:x0(P),reloadAsync:x0($),mutate:x,cancel:G}};const ol=il,sl=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function ll(e={}){const{disableGlobal:t=!1,productionPrefix:r="jss",seed:n=""}=e,a=n===""?"":`${n}-`;let i=0;const o=()=>(i+=1,i);return(s,c)=>{const u=c.options.name;if(u&&u.indexOf("Mui")===0&&!c.options.link&&!t){if(sl.indexOf(s.key)!==-1)return`Mui-${s.key}`;const p=`${a}${u}-${s.key}`;return!c.options.theme[ns]||n!==""?p:`${p}-${o()}`}return`${a}${r}${o()}`}}function cl(){return{plugins:[Xs(),Zs(),Ys(),e1(),t1(),typeof window>"u"?null:r1(),n1()]}}function Fi(e={}){const{baseClasses:t,newClasses:r,Component:n}=e;if(!r)return t;const a=Oe({},t);return Object.keys(r).forEach(i=>{r[i]&&(a[i]=`${t[i]} ${r[i]}`)}),a}const ul={set:(e,t,r,n)=>{let a=e.get(t);a||(a=new Map,e.set(t,a)),a.set(r,n)},get:(e,t,r)=>{const n=e.get(t);return n?n.get(r):void 0},delete:(e,t,r)=>{e.get(t).delete(r)}},nt=ul,ml=a1(cl()),pl=ll(),fl=new Map,dl={disableGeneration:!1,generateClassName:pl,jss:ml,sheetsCache:null,sheetsManager:fl,sheetsRegistry:null},xl=h.createContext(dl);let da=-1e9;function hl(){return da+=1,da}const kl=["variant"];function xa(e){return e.length===0}function yl(e){const{variant:t}=e,r=Ur(e,kl);let n=t||"";return Object.keys(r).sort().forEach(a=>{a==="color"?n+=xa(n)?e[a]:pr(e[a]):n+=`${xa(n)?a:pr(a)}${pr(e[a].toString())}`}),n}const bl={},gl=bl;function vl(e){const t=typeof e=="function";return{create:(r,n)=>{let a;try{a=t?e(r):e}catch(c){throw c}if(!n||!r.components||!r.components[n]||!r.components[n].styleOverrides&&!r.components[n].variants)return a;const i=r.components[n].styleOverrides||{},o=r.components[n].variants||[],s=Oe({},a);return Object.keys(i).forEach(c=>{s[c]=Yn(s[c]||{},i[c])}),o.forEach(c=>{const u=yl(c.props);s[u]=Yn(s[u]||{},c.style)}),s},options:{}}}const Sl=["name","classNamePrefix","Component","defaultTheme"];function El({state:e,stylesOptions:t},r,n){if(t.disableGeneration)return r||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let a=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,a=!0),r!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=r,a=!0),a&&(e.cacheClasses.value=Fi({baseClasses:e.cacheClasses.lastJSS,newClasses:r,Component:n})),e.cacheClasses.value}function Al({state:e,theme:t,stylesOptions:r,stylesCreator:n,name:a},i){if(r.disableGeneration)return;let o=nt.get(r.sheetsManager,n,t);o||(o={refs:0,staticSheet:null,dynamicStyles:null},nt.set(r.sheetsManager,n,t,o));const s=Oe({},n.options,r,{theme:t,flip:typeof r.flip=="boolean"?r.flip:t.direction==="rtl"});s.generateId=s.serverGenerateClassName||s.generateClassName;const c=r.sheetsRegistry;if(o.refs===0){let u;r.sheetsCache&&(u=nt.get(r.sheetsCache,n,t));const p=n.create(t,a);u||(u=r.jss.createStyleSheet(p,Oe({link:!1},s)),u.attach(),r.sheetsCache&&nt.set(r.sheetsCache,n,t,u)),c&&c.add(u),o.staticSheet=u,o.dynamicStyles=i1(p)}if(o.dynamicStyles){const u=r.jss.createStyleSheet(o.dynamicStyles,Oe({link:!0},s));u.update(i),u.attach(),e.dynamicSheet=u,e.classes=Fi({baseClasses:o.staticSheet.classes,newClasses:u.classes}),c&&c.add(u)}else e.classes=o.staticSheet.classes;o.refs+=1}function wl({state:e},t){e.dynamicSheet&&e.dynamicSheet.update(t)}function Dl({state:e,theme:t,stylesOptions:r,stylesCreator:n}){if(r.disableGeneration)return;const a=nt.get(r.sheetsManager,n,t);a.refs-=1;const i=r.sheetsRegistry;a.refs===0&&(nt.delete(r.sheetsManager,n,t),r.jss.removeStyleSheet(a.staticSheet),i&&i.remove(a.staticSheet)),e.dynamicSheet&&(r.jss.removeStyleSheet(e.dynamicSheet),i&&i.remove(e.dynamicSheet))}function Bl(e,t){const r=h.useRef([]);let n;const a=h.useMemo(()=>({}),t);r.current!==a&&(r.current=a,n=e()),h.useEffect(()=>()=>{n&&n()},[a])}function Kr(e,t={}){const{name:r,classNamePrefix:n,Component:a,defaultTheme:i=gl}=t,o=Ur(t,Sl),s=vl(e),c=r||n||"makeStyles";return s.options={index:hl(),name:r,meta:c,classNamePrefix:c},(p={})=>{const m=o1()||i,f=Oe({},h.useContext(xl),o),k=h.useRef(),y=h.useRef();return Bl(()=>{const b={name:r,state:{},stylesCreator:s,stylesOptions:f,theme:m};return Al(b,p),y.current=!1,k.current=b,()=>{Dl(b)}},[m,s]),h.useEffect(()=>{y.current&&wl(k.current,p),y.current=!0}),El(k.current,p.classes,a)}}const yh="blocklet-add-component-registry",bh="server-add-registry",gh=e=>`resource-${e}-add-registry`;var Hr={},jl=qe;Object.defineProperty(Hr,"__esModule",{value:!0});var Ti=Hr.default=void 0,Gl=jl(ze()),Pl=l;Ti=Hr.default=(0,Gl.default)((0,Pl.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link");var Vl=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,a,i;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(a=n;a--!==0;)if(!e(t[a],r[a]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(a of t.entries())if(!r.has(a[0]))return!1;for(a of t.entries())if(!e(a[1],r.get(a[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(a of t.entries())if(!r.has(a[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if(n=t.length,n!=r.length)return!1;for(a=n;a--!==0;)if(t[a]!==r[a])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(r).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[a]))return!1;for(a=n;a--!==0;){var o=i[a];if(!(o==="_owner"&&t.$$typeof)&&!e(t[o],r[o]))return!1}return!0}return t!==t&&r!==r};const ha=Yt(Vl);var Ol=Cl;function lt(e){return e instanceof ea?ea.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function Cl(e){if(e=e||{},e.circles)return Fl(e);return e.proto?n:r;function t(a,i){for(var o=Object.keys(a),s=new Array(o.length),c=0;c<o.length;c++){var u=o[c],p=a[u];typeof p!="object"||p===null?s[u]=p:p instanceof Date?s[u]=new Date(p):ArrayBuffer.isView(p)?s[u]=lt(p):s[u]=i(p)}return s}function r(a){if(typeof a!="object"||a===null)return a;if(a instanceof Date)return new Date(a);if(Array.isArray(a))return t(a,r);if(a instanceof Map)return new Map(t(Array.from(a),r));if(a instanceof Set)return new Set(t(Array.from(a),r));var i={};for(var o in a)if(Object.hasOwnProperty.call(a,o)!==!1){var s=a[o];typeof s!="object"||s===null?i[o]=s:s instanceof Date?i[o]=new Date(s):s instanceof Map?i[o]=new Map(t(Array.from(s),r)):s instanceof Set?i[o]=new Set(t(Array.from(s),r)):ArrayBuffer.isView(s)?i[o]=lt(s):i[o]=r(s)}return i}function n(a){if(typeof a!="object"||a===null)return a;if(a instanceof Date)return new Date(a);if(Array.isArray(a))return t(a,n);if(a instanceof Map)return new Map(t(Array.from(a),n));if(a instanceof Set)return new Set(t(Array.from(a),n));var i={};for(var o in a){var s=a[o];typeof s!="object"||s===null?i[o]=s:s instanceof Date?i[o]=new Date(s):s instanceof Map?i[o]=new Map(t(Array.from(s),n)):s instanceof Set?i[o]=new Set(t(Array.from(s),n)):ArrayBuffer.isView(s)?i[o]=lt(s):i[o]=n(s)}return i}}function Fl(e){var t=[],r=[];return e.proto?i:a;function n(o,s){for(var c=Object.keys(o),u=new Array(c.length),p=0;p<c.length;p++){var m=c[p],f=o[m];if(typeof f!="object"||f===null)u[m]=f;else if(f instanceof Date)u[m]=new Date(f);else if(ArrayBuffer.isView(f))u[m]=lt(f);else{var k=t.indexOf(f);k!==-1?u[m]=r[k]:u[m]=s(f)}}return u}function a(o){if(typeof o!="object"||o===null)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return n(o,a);if(o instanceof Map)return new Map(n(Array.from(o),a));if(o instanceof Set)return new Set(n(Array.from(o),a));var s={};t.push(o),r.push(s);for(var c in o)if(Object.hasOwnProperty.call(o,c)!==!1){var u=o[c];if(typeof u!="object"||u===null)s[c]=u;else if(u instanceof Date)s[c]=new Date(u);else if(u instanceof Map)s[c]=new Map(n(Array.from(u),a));else if(u instanceof Set)s[c]=new Set(n(Array.from(u),a));else if(ArrayBuffer.isView(u))s[c]=lt(u);else{var p=t.indexOf(u);p!==-1?s[c]=r[p]:s[c]=a(u)}}return t.pop(),r.pop(),s}function i(o){if(typeof o!="object"||o===null)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return n(o,i);if(o instanceof Map)return new Map(n(Array.from(o),i));if(o instanceof Set)return new Set(n(Array.from(o),i));var s={};t.push(o),r.push(s);for(var c in o){var u=o[c];if(typeof u!="object"||u===null)s[c]=u;else if(u instanceof Date)s[c]=new Date(u);else if(u instanceof Map)s[c]=new Map(n(Array.from(u),i));else if(u instanceof Set)s[c]=new Set(n(Array.from(u),i));else if(ArrayBuffer.isView(u))s[c]=lt(u);else{var p=t.indexOf(u);p!==-1?s[c]=r[p]:s[c]=i(u)}}return t.pop(),r.pop(),s}}var Tl=Ol();const ka=Yt(Tl);function jr(){return jr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jr.apply(this,arguments)}function Il(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function Wr(e,t){return t={exports:{}},e(t,t.exports),t.exports}/** @license React v16.13.1
|
|
1
|
+
import{az as Ko,ay as Ho,aA as Wo,r as h,aC as Jo,aD as Ur,aE as Oe,j as l,aG as Qo,aH as Xo,d0 as Zo,d1 as Yo,d2 as hi,d3 as Ze,aq as ki,d4 as es,d5 as ts,f as x0,d6 as rs,d7 as h0,d8 as k0,d9 as ns,aB as pr,cO as Yn,K as ze,M as qe,aS as Yt,da as ea,b$ as as,bv as is,P as d,bV as re,u as ee,bl as os,ca as ta,F as ie,a9 as De,db as yi,Y as At,c5 as wt,c as Ve,x as C0,dc as ss,dd as ls,n as Ee,S as de,am as ft,G as se,de as ve,w as st,q as cs,U as e0,B as F,bx as Dr,e as us,aw as N0,df as ms,T as H,b7 as ps,dg as bi,bk as t0,aX as dt,dh as gi,b1 as vi,di as fs,dj as ds,as as ra,a6 as xs,Z as hs,N as ks,dk as ys,b as Si,bU as bs,bD as gs,c2 as vs,br as Ei,dl as Br,ch as Ss,bn as Es,dm as As,a7 as ws,bo as Ds,be as Ai,c1 as Bs,v as js,dn as Gs,dp as Ps,a4 as Vs,A as Os,dq as Cs,H as Fs,dr as wi,ds as Ts,bw as Is,ab as Dt,ck as Di,aa as Rs,ac as na,$ as Ue,C as Ms,bu as _s,dt as Ns,du as $s,dv as Ls,dw as Us,dx as zs,dy as qs,dz as fr,dA as aa}from"./index-lTYX07Ps.js";import{u as Bi}from"./uniqBy-hw-cVyvr.js";import{P as ji}from"./page-header-8goZ8-Rl.js";import{S as Ks,u as Hs,L as Ws}from"./index-Jw68IBz4.js";import{D as zr,A as $0,f as Ke}from"./index-Z0BlVtQc.js";import{l as Js}from"./lottie-sUoozQjS.js";import{L as ia}from"./launch-result-message-bFKcrgWf.js";import{S as Qs}from"./index-w49mGgcI.js";import{R as dr}from"./logo-uploader-A2GBLnOH.js";import{a as oa}from"./api-evFC6K0h.js";import{f as Xs,j as Zs,a as Ys,c as e1,d as t1,b as r1,e as n1,g as a1,h as i1}from"./jss-plugin-props-sort.esm-iYla7Ofn.js";import{u as o1,L as s1,a as l1,C as c1}from"./confirm-Mtktmq7k.js";import{L as Gi,a as u1}from"./ListItem-Vp53sGIz.js";import{v as m1}from"./util-Sl89gu8k.js";import{s as Pi,h as p1,w as f1,f as d1,a as x1,b as h1,c as k1,S as y1,d as b1}from"./index-RETW1XMh.js";import{T as g1,a as v1,b as S1,c as sa}from"./TableRow-BDieACJJ.js";import{F as E1}from"./FormControlLabel-iMujz3Fk.js";import{C as A1}from"./Checkbox-m6n_CNKl.js";import{I as la}from"./index-0EdYQLjc.js";import{u as w1}from"./session-C_EXHtgc.js";import{W as Vi}from"./did-address-MDCcwx6u.js";import{T as xt}from"./TextField-x5sBRUlA.js";import{S as D1,a as B1,b as j1}from"./Stepper-afgJQzIe.js";import{d as G1}from"./ArrowDropDown-zgEYYex3.js";import{_ as P1}from"./useLocalStorage-BMu-4uRp.js";import{d as V1}from"./Add-EqOtL8nG.js";import{d as O1}from"./Launch-cUTO0lWp.js";import{d as Oi}from"./DeleteOutline-LwmqNqm9.js";import{C as C1}from"./click-to-copy-BWJB7cpI.js";import{A as F1}from"./Alert-1ldGO3RW.js";import{E as qr}from"./fallback-DXBYQOHs.js";import{d as T1}from"./Search-YBYCMmsX.js";import{G as Ci}from"./Grid-binDOS5g.js";import{O as I1}from"./Select--VNN-coS.js";import{H as ca}from"./Hidden-PxHUxz4A.js";import{M as ua}from"./InputAdornment-fzZwv4Hd.js";import{y as R1,g as M1,q as _1}from"./preact.module-yJdvQMHZ.js";import{C as N1}from"./content-layout-1Xl_WLH6.js";import{P as $1,u as L1}from"./use-blocklet-info-for-connect-did-spaces-UNlaKQY9.js";import{d as U1,g as z1,a as q1,b as K1,e as H1,f as ma,i as pa,h as W1}from"./spaces-p68a7cQo.js";import{S as fa}from"./index-goDgO4Ij.js";function J1(e){return Ko("MuiTableContainer",e)}Ho("MuiTableContainer",["root"]);const Q1=["className","component"],X1=e=>{const{classes:t}=e;return Xo({root:["root"]},J1,t)},Z1=Wo("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Y1=h.forwardRef(function(t,r){const n=Jo({props:t,name:"MuiTableContainer"}),{className:a,component:i="div"}=n,o=Ur(n,Q1),s=Oe({},n,{component:i}),c=X1(s);return l.jsx(Z1,Oe({ref:r,as:i,className:Qo(c.root,a),ownerState:s},o))}),el=Y1;function tl(e,t,r){r===void 0&&(r={});var n=Zo(t);Yo(function(){var a=hi(r.target,window);if(a!=null&&a.addEventListener){var i=function(o){return n.current(o)};return a.addEventListener(e,i,{capture:r.capture,once:r.once,passive:r.passive}),function(){a.removeEventListener(e,i,{capture:r.capture})}}},[e,r.capture,r.once,r.passive],r.target)}var rl=function(e){return e===document||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},nl=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},al=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},il=function(e,t){t===void 0&&(t={});var r=t.target,n=t.isNoMore,a=t.threshold,i=a===void 0?100:a,o=t.reloadDeps,s=o===void 0?[]:o,c=t.manual,u=t.onBefore,p=t.onSuccess,m=t.onError,f=t.onFinally,k=Ze(h.useState(),2),y=k[0],x=k[1],b=Ze(h.useState(!1),2),v=b[0],g=b[1],S=h.useMemo(function(){return n?n(y):!1},[y]),A=ki(function(N){return es(void 0,void 0,void 0,function(){var U,Z,T;return ts(this,function(B){switch(B.label){case 0:return[4,e(N)];case 1:return U=B.sent(),x(N?k0(k0({},U),{list:h0(h0([],Ze((T=N.list)!==null&&T!==void 0?T:[]),!1),Ze(U.list),!1)}):k0(k0({},U),{list:h0([],Ze((Z=U.list)!==null&&Z!==void 0?Z:[]),!1)})),[2,U]}})})},{manual:c,onFinally:function(N,U,Z){g(!1),f==null||f(U,Z)},onBefore:function(){return u==null?void 0:u()},onSuccess:function(N){setTimeout(function(){V()}),p==null||p(N)},onError:function(N){return m==null?void 0:m(N)}}),w=A.loading,D=A.run,_=A.runAsync,G=A.cancel,E=x0(function(){S||(g(!0),D(y))}),j=x0(function(){return S?Promise.reject():(g(!0),_(y))}),P=function(){return g(!1),D()},$=function(){return g(!1),_()},V=function(){var N=hi(r);if(N){N=N===document?document.documentElement:N;var U=rl(N),Z=nl(N),T=al(N);Z-U<=T+i&&E()}};return tl("scroll",function(){w||v||V()},{target:r}),rs(function(){D()},h0([],Ze(s),!1)),{data:y,loading:!v&&w,loadingMore:v,noMore:S,loadMore:E,loadMoreAsync:j,reload:x0(P),reloadAsync:x0($),mutate:x,cancel:G}};const ol=il,sl=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function ll(e={}){const{disableGlobal:t=!1,productionPrefix:r="jss",seed:n=""}=e,a=n===""?"":`${n}-`;let i=0;const o=()=>(i+=1,i);return(s,c)=>{const u=c.options.name;if(u&&u.indexOf("Mui")===0&&!c.options.link&&!t){if(sl.indexOf(s.key)!==-1)return`Mui-${s.key}`;const p=`${a}${u}-${s.key}`;return!c.options.theme[ns]||n!==""?p:`${p}-${o()}`}return`${a}${r}${o()}`}}function cl(){return{plugins:[Xs(),Zs(),Ys(),e1(),t1(),typeof window>"u"?null:r1(),n1()]}}function Fi(e={}){const{baseClasses:t,newClasses:r,Component:n}=e;if(!r)return t;const a=Oe({},t);return Object.keys(r).forEach(i=>{r[i]&&(a[i]=`${t[i]} ${r[i]}`)}),a}const ul={set:(e,t,r,n)=>{let a=e.get(t);a||(a=new Map,e.set(t,a)),a.set(r,n)},get:(e,t,r)=>{const n=e.get(t);return n?n.get(r):void 0},delete:(e,t,r)=>{e.get(t).delete(r)}},nt=ul,ml=a1(cl()),pl=ll(),fl=new Map,dl={disableGeneration:!1,generateClassName:pl,jss:ml,sheetsCache:null,sheetsManager:fl,sheetsRegistry:null},xl=h.createContext(dl);let da=-1e9;function hl(){return da+=1,da}const kl=["variant"];function xa(e){return e.length===0}function yl(e){const{variant:t}=e,r=Ur(e,kl);let n=t||"";return Object.keys(r).sort().forEach(a=>{a==="color"?n+=xa(n)?e[a]:pr(e[a]):n+=`${xa(n)?a:pr(a)}${pr(e[a].toString())}`}),n}const bl={},gl=bl;function vl(e){const t=typeof e=="function";return{create:(r,n)=>{let a;try{a=t?e(r):e}catch(c){throw c}if(!n||!r.components||!r.components[n]||!r.components[n].styleOverrides&&!r.components[n].variants)return a;const i=r.components[n].styleOverrides||{},o=r.components[n].variants||[],s=Oe({},a);return Object.keys(i).forEach(c=>{s[c]=Yn(s[c]||{},i[c])}),o.forEach(c=>{const u=yl(c.props);s[u]=Yn(s[u]||{},c.style)}),s},options:{}}}const Sl=["name","classNamePrefix","Component","defaultTheme"];function El({state:e,stylesOptions:t},r,n){if(t.disableGeneration)return r||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let a=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,a=!0),r!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=r,a=!0),a&&(e.cacheClasses.value=Fi({baseClasses:e.cacheClasses.lastJSS,newClasses:r,Component:n})),e.cacheClasses.value}function Al({state:e,theme:t,stylesOptions:r,stylesCreator:n,name:a},i){if(r.disableGeneration)return;let o=nt.get(r.sheetsManager,n,t);o||(o={refs:0,staticSheet:null,dynamicStyles:null},nt.set(r.sheetsManager,n,t,o));const s=Oe({},n.options,r,{theme:t,flip:typeof r.flip=="boolean"?r.flip:t.direction==="rtl"});s.generateId=s.serverGenerateClassName||s.generateClassName;const c=r.sheetsRegistry;if(o.refs===0){let u;r.sheetsCache&&(u=nt.get(r.sheetsCache,n,t));const p=n.create(t,a);u||(u=r.jss.createStyleSheet(p,Oe({link:!1},s)),u.attach(),r.sheetsCache&&nt.set(r.sheetsCache,n,t,u)),c&&c.add(u),o.staticSheet=u,o.dynamicStyles=i1(p)}if(o.dynamicStyles){const u=r.jss.createStyleSheet(o.dynamicStyles,Oe({link:!0},s));u.update(i),u.attach(),e.dynamicSheet=u,e.classes=Fi({baseClasses:o.staticSheet.classes,newClasses:u.classes}),c&&c.add(u)}else e.classes=o.staticSheet.classes;o.refs+=1}function wl({state:e},t){e.dynamicSheet&&e.dynamicSheet.update(t)}function Dl({state:e,theme:t,stylesOptions:r,stylesCreator:n}){if(r.disableGeneration)return;const a=nt.get(r.sheetsManager,n,t);a.refs-=1;const i=r.sheetsRegistry;a.refs===0&&(nt.delete(r.sheetsManager,n,t),r.jss.removeStyleSheet(a.staticSheet),i&&i.remove(a.staticSheet)),e.dynamicSheet&&(r.jss.removeStyleSheet(e.dynamicSheet),i&&i.remove(e.dynamicSheet))}function Bl(e,t){const r=h.useRef([]);let n;const a=h.useMemo(()=>({}),t);r.current!==a&&(r.current=a,n=e()),h.useEffect(()=>()=>{n&&n()},[a])}function Kr(e,t={}){const{name:r,classNamePrefix:n,Component:a,defaultTheme:i=gl}=t,o=Ur(t,Sl),s=vl(e),c=r||n||"makeStyles";return s.options={index:hl(),name:r,meta:c,classNamePrefix:c},(p={})=>{const m=o1()||i,f=Oe({},h.useContext(xl),o),k=h.useRef(),y=h.useRef();return Bl(()=>{const b={name:r,state:{},stylesCreator:s,stylesOptions:f,theme:m};return Al(b,p),y.current=!1,k.current=b,()=>{Dl(b)}},[m,s]),h.useEffect(()=>{y.current&&wl(k.current,p),y.current=!0}),El(k.current,p.classes,a)}}const yh="blocklet-add-component-registry",bh="server-add-registry",gh=e=>`resource-${e}-add-registry`;var Hr={},jl=qe;Object.defineProperty(Hr,"__esModule",{value:!0});var Ti=Hr.default=void 0,Gl=jl(ze()),Pl=l;Ti=Hr.default=(0,Gl.default)((0,Pl.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link");var Vl=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,a,i;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(a=n;a--!==0;)if(!e(t[a],r[a]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(a of t.entries())if(!r.has(a[0]))return!1;for(a of t.entries())if(!e(a[1],r.get(a[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(a of t.entries())if(!r.has(a[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if(n=t.length,n!=r.length)return!1;for(a=n;a--!==0;)if(t[a]!==r[a])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(r).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[a]))return!1;for(a=n;a--!==0;){var o=i[a];if(!(o==="_owner"&&t.$$typeof)&&!e(t[o],r[o]))return!1}return!0}return t!==t&&r!==r};const ha=Yt(Vl);var Ol=Cl;function lt(e){return e instanceof ea?ea.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function Cl(e){if(e=e||{},e.circles)return Fl(e);return e.proto?n:r;function t(a,i){for(var o=Object.keys(a),s=new Array(o.length),c=0;c<o.length;c++){var u=o[c],p=a[u];typeof p!="object"||p===null?s[u]=p:p instanceof Date?s[u]=new Date(p):ArrayBuffer.isView(p)?s[u]=lt(p):s[u]=i(p)}return s}function r(a){if(typeof a!="object"||a===null)return a;if(a instanceof Date)return new Date(a);if(Array.isArray(a))return t(a,r);if(a instanceof Map)return new Map(t(Array.from(a),r));if(a instanceof Set)return new Set(t(Array.from(a),r));var i={};for(var o in a)if(Object.hasOwnProperty.call(a,o)!==!1){var s=a[o];typeof s!="object"||s===null?i[o]=s:s instanceof Date?i[o]=new Date(s):s instanceof Map?i[o]=new Map(t(Array.from(s),r)):s instanceof Set?i[o]=new Set(t(Array.from(s),r)):ArrayBuffer.isView(s)?i[o]=lt(s):i[o]=r(s)}return i}function n(a){if(typeof a!="object"||a===null)return a;if(a instanceof Date)return new Date(a);if(Array.isArray(a))return t(a,n);if(a instanceof Map)return new Map(t(Array.from(a),n));if(a instanceof Set)return new Set(t(Array.from(a),n));var i={};for(var o in a){var s=a[o];typeof s!="object"||s===null?i[o]=s:s instanceof Date?i[o]=new Date(s):s instanceof Map?i[o]=new Map(t(Array.from(s),n)):s instanceof Set?i[o]=new Set(t(Array.from(s),n)):ArrayBuffer.isView(s)?i[o]=lt(s):i[o]=n(s)}return i}}function Fl(e){var t=[],r=[];return e.proto?i:a;function n(o,s){for(var c=Object.keys(o),u=new Array(c.length),p=0;p<c.length;p++){var m=c[p],f=o[m];if(typeof f!="object"||f===null)u[m]=f;else if(f instanceof Date)u[m]=new Date(f);else if(ArrayBuffer.isView(f))u[m]=lt(f);else{var k=t.indexOf(f);k!==-1?u[m]=r[k]:u[m]=s(f)}}return u}function a(o){if(typeof o!="object"||o===null)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return n(o,a);if(o instanceof Map)return new Map(n(Array.from(o),a));if(o instanceof Set)return new Set(n(Array.from(o),a));var s={};t.push(o),r.push(s);for(var c in o)if(Object.hasOwnProperty.call(o,c)!==!1){var u=o[c];if(typeof u!="object"||u===null)s[c]=u;else if(u instanceof Date)s[c]=new Date(u);else if(u instanceof Map)s[c]=new Map(n(Array.from(u),a));else if(u instanceof Set)s[c]=new Set(n(Array.from(u),a));else if(ArrayBuffer.isView(u))s[c]=lt(u);else{var p=t.indexOf(u);p!==-1?s[c]=r[p]:s[c]=a(u)}}return t.pop(),r.pop(),s}function i(o){if(typeof o!="object"||o===null)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return n(o,i);if(o instanceof Map)return new Map(n(Array.from(o),i));if(o instanceof Set)return new Set(n(Array.from(o),i));var s={};t.push(o),r.push(s);for(var c in o){var u=o[c];if(typeof u!="object"||u===null)s[c]=u;else if(u instanceof Date)s[c]=new Date(u);else if(u instanceof Map)s[c]=new Map(n(Array.from(u),i));else if(u instanceof Set)s[c]=new Set(n(Array.from(u),i));else if(ArrayBuffer.isView(u))s[c]=lt(u);else{var p=t.indexOf(u);p!==-1?s[c]=r[p]:s[c]=i(u)}}return t.pop(),r.pop(),s}}var Tl=Ol();const ka=Yt(Tl);function jr(){return jr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jr.apply(this,arguments)}function Il(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function Wr(e,t){return t={exports:{}},e(t,t.exports),t.exports}/** @license React v16.13.1
|
|
2
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as x,a8 as P,q as R,bu as j,U as D,r as a,c as S,c5 as W,bt as O,j as u,am as U}from"./index-lTYX07Ps.js";import{A as k,S as A}from"./add-component-core-DPcokfit.js";import"./uniqBy-hw-cVyvr.js";import"./page-header-8goZ8-Rl.js";import"./index-Jw68IBz4.js";import"./Skeleton-vqfTvlpe.js";import"./Hidden-PxHUxz4A.js";import"./index-Z0BlVtQc.js";import"./lottie-sUoozQjS.js";import"./launch-result-message-bFKcrgWf.js";import"./index-w49mGgcI.js";import"./EditIcon-ZY8nX5qR.js";import"./Done-8H9KmF_L.js";import"./Google-neBo_j5-.js";import"./TextField-x5sBRUlA.js";import"./FormControl-vBKIKzWB.js";import"./useFormControl-e5GO7t9a.js";import"./InputLabel-NkJVK6ai.js";import"./Select--VNN-coS.js";import"./logo-uploader-A2GBLnOH.js";import"./index-tnbxz1dY.js";import"./api-evFC6K0h.js";import"./jss-plugin-props-sort.esm-iYla7Ofn.js";import"./toPropertyKey-NzAT2yhV.js";import"./confirm-Mtktmq7k.js";import"./Alert-1ldGO3RW.js";import"./ListItem-Vp53sGIz.js";import"./util-Sl89gu8k.js";import"./index-RETW1XMh.js";import"./TableRow-BDieACJJ.js";import"./FormControlLabel-iMujz3Fk.js";import"./Checkbox-m6n_CNKl.js";import"./index-0EdYQLjc.js";import"./session-C_EXHtgc.js";import"./did-address-MDCcwx6u.js";import"./Stepper-afgJQzIe.js";import"./ArrowDropDown-zgEYYex3.js";import"./useLocalStorage-BMu-4uRp.js";import"./Add-EqOtL8nG.js";import"./Launch-cUTO0lWp.js";import"./DeleteOutline-LwmqNqm9.js";import"./click-to-copy-BWJB7cpI.js";import"./fallback-DXBYQOHs.js";import"./Search-YBYCMmsX.js";import"./Grid-binDOS5g.js";import"./InputAdornment-fzZwv4Hd.js";import"./preact.module-yJdvQMHZ.js";import"./content-layout-1Xl_WLH6.js";import"./use-blocklet-info-for-connect-did-spaces-UNlaKQY9.js";import"./spaces-p68a7cQo.js";import"./index-7FFHHe_N.js";import"./index-cnER8eGh.js";import"./index-goDgO4Ij.js";import"./ExpandMore-OTVPX9R7.js";import"./ButtonGroup-l7aQ7Vwd.js";function Tt(){var l;const{t:d}=x(),{blocklet:r}=P(),[h]=R(),{componentDid:m}=j(),f=D(t=>t.breakpoints.down("md")),g=h.get("mode")==="dialog",e=(l=r==null?void 0:r.meta)==null?void 0:l.did,i=new URL(window.location.href),s=(i.searchParams.get("store")||"").split(",").filter(Boolean).map(t=>{try{return new URL(t.startsWith("http")?t:`https://${t}`).origin}catch(o){return console.error(o),null}}).filter(Boolean),[w,C]=a.useState(s.map(t=>({url:t,name:t.replace("https://","")}))),p=i.searchParams.get("resourceType")||"",n=i.searchParams.get("resourceDid")||m;a.useEffect(()=>{(async()=>{try{const t=await Promise.all(s.map(async o=>{const E=S(o,"/api/store.json"),{data:b}=await W.get(E);return{url:o,name:b.name}}));C(t||[])}catch(t){console.error(t)}})()},[s.join(",")]);const y=()=>{window.parent.postMessage({event:"resourceDialog.close",componentDid:m},"*")};a.useEffect(()=>{const t=O();return e&&t.connect(),()=>{e&&t.isConnected()&&t.disconnect()}},[e]);const c=({inDialog:t=!0}={})=>u.jsx(k,{stores:w,resourceType:p,resourceDid:n,mode:"embed",inDialog:t,storageKey:A(`${p}+${n}`)});return g?u.jsx(U,{className:"resource-dialog",title:d("blocklet.publish.addResource"),maxWidth:!1,fullWidth:!1,PaperProps:{style:f?{width:"100%",height:window.innerHeight}:{maxWidth:1350,minWidth:930,width:"80%"}},onClose:(t,o)=>{o!=="backdropClick"&&y()},showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:c()}):c({inDialog:!1})}export{Tt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as l,j as a,E as $,av as D,aw as E,ax as R,P as n,G as H}from"./index-
|
|
1
|
+
import{r as l,j as a,E as $,av as D,aw as E,ax as R,P as n,G as H}from"./index-lTYX07Ps.js";import{L as A}from"./selector-Yakve_Iw.js";var d={};Object.defineProperty(d,"__esModule",{value:!0});var x=d.default=void 0;L(l);var b=a;function L(e){return e&&e.__esModule?e:{default:e}}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,o)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?g(Object(r),!0).forEach(function(o){N(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function N(e,t,r){return t=B(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B(e){var t=T(e,"string");return typeof t=="symbol"?t:String(t)}function T(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var f=function(t){return(0,b.jsx)("svg",w(w({},t),{},{children:(0,b.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.606 17.32a7.933 7.933 0 0 1-.581-1.18c-.165-.411-.312-.86-.44-1.339a7.639 7.639 0 0 0-1.586 1.054 7.69 7.69 0 0 0 2.607 1.465zm.657-1.675c-.16-.4-.305-.848-.429-1.335A7.643 7.643 0 0 1 10 14h.002c.734 0 1.463.104 2.165.31-.124.487-.268.935-.428 1.335-.283.707-.604 1.235-.925 1.575-.32.339-.595.447-.813.447-.218 0-.493-.108-.813-.447-.322-.34-.642-.867-.925-1.575zM10 12.667a8.976 8.976 0 0 1 2.436.334c.116-.727.193-1.511.22-2.334H7.344c.027.823.103 1.607.22 2.334A8.972 8.972 0 0 1 10 12.667zM7.345 9.333c.027-.823.103-1.607.22-2.334.791.223 1.61.335 2.436.334A8.974 8.974 0 0 0 12.437 7c.116.727.193 1.511.22 2.334H7.344zm6.646 1.334c-.03.982-.127 1.925-.28 2.797.81.367 1.56.852 2.227 1.439a7.666 7.666 0 0 0 1.734-4.236h-3.681zm3.681-1.334H13.99a19.718 19.718 0 0 0-.28-2.798 8.975 8.975 0 0 0 2.228-1.438 7.665 7.665 0 0 1 1.734 4.236zm1.329.669A9 9 0 1 1 1 10a9 9 0 0 1 18 0v.002zM2.329 9.333a7.665 7.665 0 0 1 1.734-4.236A8.974 8.974 0 0 0 6.29 6.535a19.74 19.74 0 0 0-.28 2.798H2.329zm0 1.334h3.682c.03.983.126 1.925.28 2.797a8.974 8.974 0 0 0-2.228 1.439 7.665 7.665 0 0 1-1.734-4.236zm10.648 5.473c.164-.411.312-.86.44-1.34.57.285 1.103.639 1.585 1.055a7.687 7.687 0 0 1-2.606 1.465c.216-.354.41-.751.58-1.18zm-.581-13.46c.967.316 1.85.819 2.606 1.465A7.64 7.64 0 0 1 13.417 5.2c-.128-.48-.276-.928-.44-1.34a7.925 7.925 0 0 0-.581-1.18zm-.657 1.675c.16.4.304.848.428 1.335a7.64 7.64 0 0 1-2.165.31H10a7.64 7.64 0 0 1-2.166-.31c.124-.487.268-.935.429-1.335.283-.708.603-1.235.925-1.575.32-.339.595-.447.813-.447.218 0 .492.108.813.447.321.34.642.867.925 1.575zM7.025 3.86c-.165.411-.312.86-.44 1.34a7.64 7.64 0 0 1-1.586-1.055A7.688 7.688 0 0 1 7.606 2.68c-.216.354-.41.751-.581 1.18z",fill:"currentColor"})}))};f.defaultProps={width:"21",height:"20",viewBox:"0 0 21 20",xmlns:"http://www.w3.org/2000/svg"};f.displayName="globe";x=d.default=f;var m={};Object.defineProperty(m,"__esModule",{value:!0});var j=m.default=void 0;k(l);var p=a;function k(e){return e&&e.__esModule?e:{default:e}}function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,o)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?y(Object(r),!0).forEach(function(o){q(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function q(e,t,r){return t=I(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I(e){var t=K(e,"string");return typeof t=="symbol"?t:String(t)}function K(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var v=function(t){return(0,p.jsxs)("svg",O(O({},t),{},{children:[(0,p.jsx)("path",{d:"M9.928 13.133a.981.981 0 0 0-.678.252.79.79 0 0 0-.281.61c0 .27.094.482.283.636.19.154.41.231.663.231.257 0 .48-.076.673-.228.19-.153.287-.365.287-.639a.796.796 0 0 0-.275-.61.958.958 0 0 0-.672-.252zM12.633 7.2a2.526 2.526 0 0 0-1.035-.88c-.441-.212-.955-.32-1.528-.32-.617 0-1.166.129-1.63.383-.467.255-.826.582-1.07.972-.245.392-.37.786-.37 1.172 0 .205.086.397.254.57.169.174.38.262.625.262.419 0 .705-.246.85-.729.132-.399.296-.703.485-.905.177-.19.465-.286.856-.286.336 0 .602.095.813.29.208.191.309.42.309.698a.78.78 0 0 1-.1.387c-.07.125-.156.24-.258.342-.108.109-.287.27-.53.484a9.184 9.184 0 0 0-.679.647 2.268 2.268 0 0 0-.42.656 2.27 2.27 0 0 0-.159.884c0 .288.08.511.24.663.156.15.352.227.58.227.439 0 .714-.24.796-.687.041-.186.073-.316.094-.39.019-.067.046-.136.081-.205.034-.068.089-.144.162-.227.076-.088.179-.19.305-.306.472-.422.805-.727.99-.908.19-.186.356-.41.493-.665A1.9 1.9 0 0 0 13 8.416a2.18 2.18 0 0 0-.367-1.217",fill:"currentColor"}),(0,p.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 17.5a7.5 7.5 0 1 0 0-15 7.5 7.5 0 0 0 0 15zm0 1.5a9 9 0 1 0 0-18 9 9 0 0 0 0 18z",fill:"currentColor"})]}))};v.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};v.displayName="question-mark-circle";j=m.default=v;function P({SessionContext:e,extraItems:t,showLocale:r,showHelper:o,showSessionManager:s,sessionManagerProps:_}){const{session:M}=l.useContext(e),{locale:h}=l.useContext($),z=D(),S="https://developer.blocklet.io/docs",u={"/store":{endpoint:"https://store.blocklet.io"},"/dashboard":{path:"/conceptual/overview"},"/settings/router":{path:"/conceptual/server-architecture"}},C=()=>{const c=z.pathname;let i={};c.indexOf("/store")>-1?i=u["/store"]:u[c]&&(i=u[c]),window.open(`${i.endpoint||S}/${h}${i.path||""}`,"_blank")};return a.jsxs(U,{children:[t.map((c,i)=>l.cloneElement(c,{key:i})),r&&a.jsx(A,{"data-cy":"locale-addon",icon:x,size:23,showText:!1,className:"locale-addon"}),o&&a.jsx(E,{onClick:C,children:a.jsx(j,{})}),s&&a.jsx(R,{locale:h,session:M,size:24,showRole:!0,..._,showManageBlocklet:!1})]})}P.propTypes={SessionContext:n.object.isRequired,webWalletUrl:n.string,extraItems:n.array,showLocale:n.bool,showSessionManager:n.bool,showHelper:n.bool,sessionManagerProps:n.object};P.defaultProps={webWalletUrl:"",extraItems:[],showLocale:!0,showSessionManager:!0,showHelper:!0,sessionManagerProps:{}};const U=H.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
align-items: center;
|