@abtnode/blocklet-services 1.16.23-beta-06c3a221 → 1.16.23-beta-abdda301
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-yJOSofhS.js → Add-7g2VVPVn.js} +1 -1
- package/dist/assets/{Alert-8z3IBaBE.js → Alert-J_LOTKGn.js} +1 -1
- package/dist/assets/{ArrowDropDown-oq6bnC5a.js → ArrowDropDown-w6SQB4Z1.js} +1 -1
- package/dist/assets/{Avatar-_iJamCVD.js → Avatar-xIRaYTfu.js} +1 -1
- package/dist/assets/{ButtonGroup-_ql_Aibf.js → ButtonGroup-HB3VSTeB.js} +1 -1
- package/dist/assets/{CardContent-Ys0Vqtd2.js → CardContent-5l4uh4ig.js} +1 -1
- package/dist/assets/{CheckCircle-liPbTkS6.js → CheckCircle-nSCABwDK.js} +1 -1
- package/dist/assets/{Checkbox-Bx2RKhbj.js → Checkbox-P8vtjjVF.js} +1 -1
- package/dist/assets/{ChevronRight-NMNUHQcd.js → ChevronRight-ZrEi_w6i.js} +1 -1
- package/dist/assets/CloseOutlined-PTKdbMiF.js +1 -0
- package/dist/assets/{DeleteOutline-e-pVPJ10.js → DeleteOutline-ey3GBCUW.js} +1 -1
- package/dist/assets/{Done-W__OCydG.js → Done-vK5iR6vU.js} +1 -1
- package/dist/assets/{Download-CRKeZxZn.js → Download-aahJoMlE.js} +1 -1
- package/dist/assets/{Edit-LODr45Fi.js → Edit-OU0N7xYs.js} +1 -1
- package/dist/assets/{EditIcon-LBnnkl6f.js → EditIcon-mE1h5C2Z.js} +1 -1
- package/dist/assets/{ExpandMore-gplG_N-e.js → ExpandMore-DBIVxyRD.js} +1 -1
- package/dist/assets/{FilterList-2hNiCvPk.js → FilterList-R-AE_GHN.js} +4 -4
- package/dist/assets/{FormControl-UoCRB4Jz.js → FormControl-6yEJYlS5.js} +1 -1
- package/dist/assets/{FormControlLabel-JXaJatAY.js → FormControlLabel-20HNTqkg.js} +1 -1
- package/dist/assets/{FormGroup-LYg6ohnS.js → FormGroup-35Eh4cl8.js} +1 -1
- package/dist/assets/{Google-pA-zGfV6.js → Google-keN4-shv.js} +4 -4
- package/dist/assets/{Grid-Cq0tl8Rn.js → Grid-Q18GgpBs.js} +1 -1
- package/dist/assets/{Hidden-dLDh01VC.js → Hidden-3U4cjY85.js} +1 -1
- package/dist/assets/{Icon-z5BPr8Nx.js → Icon-WKt0hv2v.js} +1 -1
- package/dist/assets/{InfoOutlined-LvZcP6jX.js → InfoOutlined-GGjNqSSj.js} +1 -1
- package/dist/assets/{InputAdornment-i3kKzNb4.js → InputAdornment-v0Ghs4vA.js} +1 -1
- package/dist/assets/{InputLabel-evB6-1NR.js → InputLabel-PDpXpeRG.js} +1 -1
- package/dist/assets/{LastPage--eJf1sYv.js → LastPage-eSVNX9y4.js} +1 -1
- package/dist/assets/{Launch-H3hBPB77.js → Launch-FTSCmPJ-.js} +1 -1
- package/dist/assets/{LaunchOutlined-Fi5DkFlC.js → LaunchOutlined-5E6LXiE2.js} +1 -1
- package/dist/assets/{ListItem-OwJ_bemn.js → ListItem-pLuDtQgS.js} +1 -1
- package/dist/assets/{LockIcon-8FiITHPK.js → LockIcon-u-MEyeJ4.js} +1 -1
- package/dist/assets/{Loop-RkvrEzoc.js → Loop-e0nOZxTR.js} +1 -1
- package/dist/assets/{MoreHoriz-Krld2BKo.js → MoreHoriz-PuMXq2PC.js} +1 -1
- package/dist/assets/{MoreVert-261tWqrz.js → MoreVert-dCeo9SdV.js} +1 -1
- package/dist/assets/{OpenInNew-LQ-81H0R.js → OpenInNew-2pd62hQ9.js} +1 -1
- package/dist/assets/{Pagination-7IbC2E1j.js → Pagination-w5FDsB3B.js} +1 -1
- package/dist/assets/{PlayArrow-jm3a4suc.js → PlayArrow-Uiau983f.js} +1 -1
- package/dist/assets/{RadioGroup-D24cymg5.js → RadioGroup-YCEsD_pu.js} +1 -1
- package/dist/assets/{RevokeIcon-WQMnKK0f.js → RevokeIcon-4zvAH67R.js} +1 -1
- package/dist/assets/{Search-vTBXAsZL.js → Search-gz6hDZ_X.js} +1 -1
- package/dist/assets/{Select-SmZrX7GA.js → Select-M-8Lo2J5.js} +2 -2
- package/dist/assets/{ServerLogo-8Le5auvK.js → ServerLogo-isi19Tgj.js} +1 -1
- package/dist/assets/{Skeleton-nt2aNRPQ.js → Skeleton-gnG2NynL.js} +2 -2
- package/dist/assets/{Slider-d4v1rrsa.js → Slider-iEQ0mBzA.js} +1 -1
- package/dist/assets/{Stepper-EoIiueJu.js → Stepper-XYDkJ2KJ.js} +1 -1
- package/dist/assets/{TableRow-Sa1WiM2f.js → TableRow-k9qE6omq.js} +2 -2
- package/dist/assets/{TextField-YOGEC6UG.js → TextField-6hzePx6A.js} +1 -1
- package/dist/assets/{Toolbar-g_XgSwzH.js → Toolbar-sSwWYKZs.js} +1 -1
- package/dist/assets/{access-control-ha2CvR_B.js → access-control-k-igQFn7.js} +1 -1
- package/dist/assets/{actions-jNqiX7Ld.js → actions-vPPAeKO_.js} +1 -1
- package/dist/assets/{add-component-core-yLCSY4wH.js → add-component-core-mNoHl6TM.js} +1 -1
- package/dist/assets/add-resource-BqkaB-gy.js +1 -0
- package/dist/assets/{addon-obHI0Hlu.js → addon-_8k2HI__.js} +1 -1
- package/dist/assets/{analytics-H1E3QYT7.js → analytics-W_LPwJnj.js} +6 -6
- package/dist/assets/api-ED7jlksD.js +1 -0
- package/dist/assets/{audit-logs-ZmXjCk-d.js → audit-logs-gy_GiPr1.js} +1 -1
- package/dist/assets/{button-In_gPOZd.js → button-sDNcUZdA.js} +1 -1
- package/dist/assets/{click-to-copy-XhsdyR0H.js → click-to-copy-jP1Jjfmi.js} +1 -1
- package/dist/assets/{complete-xTzV9fpO.js → complete-cr5QM3f0.js} +1 -1
- package/dist/assets/{component-xzW_-GxW.js → component-mGiUoK4S.js} +1 -1
- package/dist/assets/{config-UduKbzW1.js → config-KH6srg17.js} +1 -1
- package/dist/assets/{config-14SNzi7t.js → config-U_F5gU_d.js} +1 -1
- package/dist/assets/{config-navigation-RLlR4gZT.js → config-navigation-d3bE_bc9.js} +1 -1
- package/dist/assets/{config-space-5XfyD3uq.js → config-space-PPRQ64ov.js} +1 -1
- package/dist/assets/{confirm-uXpKSgxe.js → confirm-1yUPPWyO.js} +2 -2
- package/dist/assets/{connect-iOodfP1C.js → connect-JblIPNnK.js} +1 -1
- package/dist/assets/{connect-EgJ1pw5R.js → connect-lEBu3S8Z.js} +1 -1
- package/dist/assets/{connect-to--STm1j0r.js → connect-to-Ec-PR8-d.js} +2 -2
- package/dist/assets/{content-layout-cxGNkYvv.js → content-layout-RY8gcl_K.js} +1 -1
- package/dist/assets/{dashboard-VZ-60JmZ.js → dashboard-nqR-1NiP.js} +3 -3
- package/dist/assets/{did-address-2g3VKxYq.js → did-address-OD4YOZ2O.js} +1 -1
- package/dist/assets/{domain-kIh8qZuR.js → domain-K6GMaIw4.js} +1 -1
- package/dist/assets/{domain-list-KUxfUpxv.js → domain-list-9GkXg5KQ.js} +2 -2
- package/dist/assets/{exchange-passport-bVmMiopY.js → exchange-passport-NbW-kRvx.js} +1 -1
- package/dist/assets/{fallback-K92qnnbp.js → fallback-LxCPCLff.js} +1 -1
- package/dist/assets/{fuel-w6r1qdh0.js → fuel-PLFgTm7J.js} +1 -1
- package/dist/assets/{fullpage-lM2QRYmz.js → fullpage-dMf47sgh.js} +1 -1
- package/dist/assets/{home-rnjg5Uln.js → home-UZSoxDIO.js} +1 -1
- package/dist/assets/{iframe-P4prqqj1.js → iframe--iPe_a2f.js} +1 -1
- package/dist/assets/index-1sYdSjgN.js +54 -0
- package/dist/assets/{index-adip-Ngx.js → index-2nmtaKL_.js} +5 -5
- package/dist/assets/{index-ys1ZtEAO.js → index-8pn_hXfi.js} +3 -3
- package/dist/assets/{index-c7FpgR5O.js → index-DbTtClCr.js} +1 -1
- package/dist/assets/{index-yTk3rOr5.js → index-E4ZWmyGk.js} +1 -1
- package/dist/assets/index-Iq36j3UA.js +4 -0
- package/dist/assets/{index-BK7alHfP.js → index-Lwmxm_Tf.js} +2 -2
- package/dist/assets/{index-Y0SzaOzo.js → index-LwwZXnmq.js} +1 -1
- package/dist/assets/{index-woVElijO.js → index-MxeALFQf.js} +1 -1
- package/dist/assets/{index-LkzRmFOO.js → index-MylE_YAh.js} +1 -1
- package/dist/assets/{index-kVRlFbO-.js → index-PppwoIFB.js} +1 -1
- package/dist/assets/{index-L1aZ_oAt.js → index-Rean_S2b.js} +1 -1
- package/dist/assets/{index-Cf01k-zf.js → index-Vhx3FEvR.js} +1 -1
- package/dist/assets/{index-CjfmWq2Z.js → index-W37UcQvv.js} +10 -10
- package/dist/assets/{index-Cvm-qMrO.js → index-WQaB8b9n.js} +1 -1
- package/dist/assets/{index-kbsGDZwe.js → index-_pLbqUL4.js} +2 -2
- package/dist/assets/{index-tUGh9zeW.js → index-bo2FHAot.js} +1 -1
- package/dist/assets/{index-zbEPyFtV.js → index-ckNUZNet.js} +1 -1
- package/dist/assets/{index-9wi_FbU7.js → index-e6gALx9Q.js} +10 -10
- package/dist/assets/{index-RTZQcUl-.js → index-fbLp4t_l.js} +4 -4
- package/dist/assets/{index-rNdWQJ8V.js → index-gES45_RI.js} +5 -5
- package/dist/assets/{index-7C-cxYrr.js → index-nkT_KXMy.js} +1 -1
- package/dist/assets/{index--wu_gabw.js → index-pgOqLld_.js} +1 -1
- package/dist/assets/{index-hEDWKFf1.js → index-qpt45Jn0.js} +3 -3
- package/dist/assets/{index-Vu5Hi9e4.js → index-tI696upG.js} +84 -108
- package/dist/assets/{index--eYfa2iB.js → index-z3ODAN3L.js} +1 -1
- package/dist/assets/{index-2l_gDibc.js → index-zHYp13Ik.js} +1 -1
- package/dist/assets/{index-xfPw64rO.js → index-zukWofPQ.js} +1 -1
- package/dist/assets/{index.es-XZ3Qx7aN.js → index.es-i484Hhds.js} +3 -3
- package/dist/assets/{index.esm-zHTA4cHV.js → index.esm-HfciCOwM.js} +1 -1
- package/dist/assets/{invite-HGTaOopJ.js → invite-Q1WeH466.js} +1 -1
- package/dist/assets/{issue-passport-dNZHjXJy.js → issue-passport-tWWlizy7.js} +1 -1
- package/dist/assets/{jss-plugin-props-sort.esm-4cc6LQ6N.js → jss-plugin-props-sort.esm-FVYd2q-V.js} +1 -1
- package/dist/assets/{launch-result-message-J5dZdjK9.js → launch-result-message-vav8FvlH.js} +1 -1
- package/dist/assets/{layout-edWgKFS3.js → layout-RSyMpp2D.js} +1 -1
- package/dist/assets/{list-header-cakMMeA9.js → list-header-BSBH0zQ3.js} +1 -1
- package/dist/assets/localization-Q3LMXTEM.js +1 -0
- package/dist/assets/{log-IJfNDeYa.js → log-E6fi0KKA.js} +1 -1
- package/dist/assets/{login-GFXOoAOs.js → login-aWY-kYPK.js} +1 -1
- package/dist/assets/{logo-uploader-Z7R8hvrQ.js → logo-uploader-zfDQNUwk.js} +3 -3
- package/dist/assets/{lost-passport-rJt-K7ao.js → lost-passport-wGRDHiL4.js} +3 -3
- package/dist/assets/{lottie-THFzP1dC.js → lottie-_pLPoJ-1.js} +1 -1
- package/dist/assets/{notifications-zMxY5VrS.js → notifications-knIU14Bw.js} +1 -1
- package/dist/assets/{overview-dbKDHJQN.js → overview-7x_asHqV.js} +1 -1
- package/dist/assets/{page-header-sm7Rcxwn.js → page-header-XDCgljDC.js} +1 -1
- package/dist/assets/{permission-dR7440gE.js → permission-MnsY9Eps.js} +1 -1
- package/dist/assets/{preferences-WASfgwxe.js → preferences-vAQvxF7l.js} +1 -1
- package/dist/assets/publish-resource-K9WG3ef9.js +1 -0
- package/dist/assets/{react-cZEwd1y6.js → react-6q_2_cUd.js} +3 -3
- package/dist/assets/selector-1dpe9L67.js +46 -0
- package/dist/assets/session-4Q3tQEqQ.js +1 -0
- package/dist/assets/setup-xSftcgSH.js +19 -0
- package/dist/assets/{slicedToArray-rOQW0Qdz.js → slicedToArray-Ed16vtYp.js} +2 -2
- package/dist/assets/{spaces-oi0UGr9V.js → spaces--3SmdlJ4.js} +1 -1
- package/dist/assets/{start-kQG_xGdG.js → start-bCHKgB-l.js} +1 -1
- package/dist/assets/{step-actions-eDIWEra3.js → step-actions-h70_KUEF.js} +1 -1
- package/dist/assets/{studio-V05Kluaj.js → studio-0bYB_8US.js} +1 -1
- package/dist/assets/{switch-control--qsuqvPZ.js → switch-control-oXc5mNlV.js} +1 -1
- package/dist/assets/{toUpper-2JfnfjSv.js → toUpper-RvHIoRYk.js} +1 -1
- package/dist/assets/{transfer-_k5LHiPs.js → transfer-ChTc5bsG.js} +1 -1
- package/dist/assets/{uniqBy-j0q8aAHN.js → uniqBy-G2UOKHwr.js} +1 -1
- package/dist/assets/{unsubscribe-SgffzzOj.js → unsubscribe-9GoXYfe0.js} +1 -1
- package/dist/assets/use-blocklet-info-for-connect-did-spaces-k15NWp1Q.js +1 -0
- package/dist/assets/{useAsync-Jl2-1Zhx.js → useAsync-y9Q4DzVF.js} +1 -1
- package/dist/assets/{useFormControl-ow2ZyMxu.js → useFormControl-UFbFMiSx.js} +1 -1
- package/dist/assets/useLocalStorage-Ne-e0YYQ.js +1 -0
- package/dist/assets/{useSetState-k-0ecZPo.js → useSetState-YFQy57cQ.js} +1 -1
- package/dist/assets/user-center-sD1F8VCv.js +57 -0
- package/dist/assets/{util-IkWr1k8x.js → util-fKfjbPC7.js} +1 -1
- package/dist/assets/{wrap-locale-vxpb_1WH.js → wrap-locale-BDhExX8x.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +22 -22
- package/dist/assets/add-resource-Zq7wvJs3.js +0 -1
- package/dist/assets/api-bqNzLg9V.js +0 -1
- package/dist/assets/banner-V7-l7Y8p.png +0 -0
- package/dist/assets/index-KBfdwv7I.js +0 -54
- package/dist/assets/index-uPi27M7M.js +0 -4
- package/dist/assets/localization-LX2eCkms.js +0 -1
- package/dist/assets/publish-resource-IPB1hxMa.js +0 -1
- package/dist/assets/selector-PHzkH1QT.js +0 -46
- package/dist/assets/session-i2sKQu5g.js +0 -1
- package/dist/assets/setup-2IHOhLHH.js +0 -19
- package/dist/assets/use-blocklet-info-for-connect-did-spaces-7lIoXyoo.js +0 -1
- package/dist/assets/useLocalStorage-g0dvG-aI.js +0 -1
- package/dist/assets/user-center-Ri39cNVy.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{av as w,au as x,
|
|
1
|
+
import{av as w,au as x,ct as b,aw as R,cu as _,cv as $,aA as o,bR as S,a6 as u,r as U,ay as A,az as M,j,aC as X,aD as N}from"./index-tI696upG.js";function B(a){return w("MuiSkeleton",a)}x("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const E=["animation","className","component","height","style","variant","width"];let r=a=>a,p,g,m,f;const K=a=>{const{classes:t,variant:e,animation:i,hasChildren:s,width:l,height:n}=a;return N({root:["root",e,i,s&&"withChildren",s&&!l&&"fitContent",s&&!n&&"heightAuto"]},B,t)},P=b(p||(p=r`
|
|
2
2
|
0% {
|
|
3
3
|
opacity: 1;
|
|
4
4
|
}
|
|
@@ -48,4 +48,4 @@ import{av as w,au as x,cq as b,aw as R,cr as _,cs as $,aA as o,bM as S,a6 as u,r
|
|
|
48
48
|
right: 0;
|
|
49
49
|
top: 0;
|
|
50
50
|
}
|
|
51
|
-
`),T,(t.vars||t).palette.action.hover)),
|
|
51
|
+
`),T,(t.vars||t).palette.action.hover)),z=U.forwardRef(function(t,e){const i=A({props:t,name:"MuiSkeleton"}),{animation:s="pulse",className:l,component:n="span",height:h,style:v,variant:C="text",width:k}=i,d=M(i,E),c=o({},i,{animation:s,component:n,variant:C,hasChildren:!!d.children}),y=K(c);return j.jsx(W,o({as:n,ref:e,className:X(y.root,l),ownerState:c},d,{style:o({width:k,height:h},v)}))}),F=z;export{F as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as S,cH as xt,fC as he,fD as yt,bO as rt,bN as St,cc as Xe,cd as Ie,fE as qe,aA as s,c6 as _e,au as Lt,av as Pt,aC as ie,j as T,aw as ee,ax as Y,cD as Ct,cC as $t,bM as at,c$ as ct,ay as Tt,bj as Rt,az as wt,aB as B,aD as It}from"./index-Vu5Hi9e4.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=Ie(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 we;function st(){return we===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?we=CSS.supports("touch-action","none"):we=!0),we}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||[],w=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=w.indexOf(g);let u=r.target.valueAsNumber;if(me&&E==null){const p=w[w.length-1];u>p?u=p:u<w[0]?u=w[0]:u=u<g?w[C-1]:w[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(w,h);h=w[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){I(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)}),I=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=Ie(P.current);i.addEventListener("touchmove",K,{passive:!0}),i.addEventListener("touchend",I,{passive:!0})}),d=S.useCallback(()=>{const o=Ie(P.current);o.removeEventListener("mousemove",K),o.removeEventListener("mouseup",I),o.removeEventListener("touchmove",K),o.removeEventListener("touchend",I)},[I,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=Ie(P.current);g.addEventListener("mousemove",K,{passive:!0}),g.addEventListener("mouseup",I)},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 It(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":w,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:I=it,slotProps:b,slots:d,track:le="normal",valueLabelDisplay:Q="off",valueLabelFormat:Z=it}=D,Ne=wt(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:I,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(I(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":I(v),"aria-labelledby":w,"aria-valuetext":Pe?Pe(I(v),k):me,value:p[k]},kt))}))}),k)})]}))}),ro=to;export{ro as S};
|
|
1
|
+
import{r as S,cI as xt,fC as he,fD as yt,bT as rt,bS as St,cg as Xe,ch as we,fE as qe,aA as s,ca as _e,au as Lt,av as Pt,aC as ie,j as T,aw as ee,ax as Y,cE as Ct,cD as $t,bR as at,d0 as ct,ay as Tt,bj as Rt,az as It,aB as B,aD as wt}from"./index-tI696upG.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 Et(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"?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: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: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&&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=Et(p,m,f),N)h=Vt(h,N,m);else{const be=nt(I,h);h=I[be]}h=he(h,m,f);let E=0;if(G){r?E=J.current:E=nt(x,h),c&&(h=he(h,x[E-1]||-1/0,x[E+1]||1/0));const be=h;h=lt({values:x,newValue:h,index:E}),c&&r||(E=h.indexOf(be),J.current=E)}return{newValue:h,activeIndex:E}},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,Ee=(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:Ee,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: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,Ee=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:E,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: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=(N=(ge=d==null?void 0:d.markLabel)!=null?ge:M.MarkLabel)!=null?N: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:Ne,getSlotProps:Ge,externalSlotProps:He,externalForwardedProps:Ee,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(E))},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 +1 @@
|
|
|
1
|
-
import{r as d,av as w,au as U,aw as x,aA as s,ay as _,az as
|
|
1
|
+
import{r as d,av as w,au as U,aw as x,aA as s,ay as _,az as k,j as i,aC as P,aD as T,ah as V,ck as q,ax as B}from"./index-tI696upG.js";const G=d.createContext({}),W=G,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 T({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=k(n,O),{activeStep:g,connector:C,alternativeLabel:y,orientation:R,nonLinear:$}=d.useContext(W);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=V(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=V(i.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function te(e){return w("MuiStepIcon",e)}const oe=U("MuiStepIcon",["root","active","completed","error","text"]),A=oe;var F;const ne=["active","className","completed","error","icon"],ae=e=>{const{classes:t,active:o,completed:n,error:a}=e;return T({root:["root",o&&"active",n&&"completed",a&&"error"],text:["text"]},te,t)},D=x(q,{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=k(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:[F||(F=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 T({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"}})),H=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=k(a,pe),{alternativeLabel:C,orientation:y}=d.useContext(W),{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]})]}))});H.muiName="StepLabel";const Pe=H;function Se(e){return w("MuiStepConnector",e)}U("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const xe=["className"],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${B(o)}`]};return T(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${B(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=k(n,xe),{alternativeLabel:v,orientation:c="horizontal"}=d.useContext(W),{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 T({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=k(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(W.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,av as m,au as $,aw as R,aA as i,ay as h,az as k,j as y,aC as w,aD as
|
|
2
|
-
${e.palette.mode==="light"?
|
|
1
|
+
import{r as c,av as m,au as $,aw as R,aA as i,ay as h,az as k,j as y,aC as w,aD as z,ax as u,cE as W,bR as T,cD as L}from"./index-tI696upG.js";const S=c.createContext(),D=S;function I(e){return m("MuiTable",e)}const J=$("MuiTable",["root","stickyHeader"]),Ce=J,q=["className","component","padding","size","stickyHeader"],F=e=>{const{classes:a,stickyHeader:o}=e;return z({root:["root",o&&"stickyHeader"]},I,a)},G=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,q),p=i({},t,{component:s,padding:l,size:r,stickyHeader:d}),v=F(p),H=c.useMemo(()=>({padding:l,size:r,stickyHeader:d}),[l,r,d]);return y.jsx(D.Provider,{value:H,children:y.jsx(G,i({as:s,role:s===A?null:"table",ref:o,className:w(v.root,n),ownerState:p},b))})}),xe=K,Q=c.createContext(),M=Q;function V(e){return m("MuiTableBody",e)}const X=$("MuiTableBody",["root"]),fe=X,Y=["className","component"],Z=e=>{const{classes:a}=e;return z({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 z(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
|
+
${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,H=k(t,ne),g=c.useContext(D),x=c.useContext(M),N=x&&x.variant==="head";let C;l?C=l:C=N?"th":"td";let f=d;C==="td"?f=void 0:!f&&N&&(f="col");const j=v||x&&x.variant,B=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:j==="head"&&g&&g.stickyHeader,variant:j}),E=re(B);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:f,ownerState:B},H))}),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 z({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{xe as T,Te as a,$e as b,me as c,V as d,fe as e,te as f,I as g,le as h,M as i,de as j,O as k,Ce as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{av as M,au as q,aw as S,ax as L,aA as a,r as N,ay as U,az as _,j as i,aC as B,aD as E,
|
|
1
|
+
import{av as M,au as q,aw as S,ax as L,aA as a,r as N,ay as U,az as _,j as i,aC as B,aD as E,cJ as re}from"./index-tI696upG.js";import{F as ae}from"./FormControl-6yEJYlS5.js";import{I as le}from"./InputLabel-PDpXpeRG.js";import{S as ie,I as ne,F as de,O as ce}from"./Select-M-8Lo2J5.js";import{u as ue,f as pe}from"./useFormControl-UFbFMiSx.js";function me(e){return M("MuiFormHelperText",e)}const fe=q("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),w=fe;var j;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,[`&.${w.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${w.error}`]:{color:(e.vars||e).palette.error.main}},o.size==="small"&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})),be=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===" "?j||(j=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})({}),ze=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:J,multiline:R=!1,name:G,onBlur:K,onChange:Q,onFocus:X,placeholder:Y,required:y=!1,rows:Z,select:C=!1,SelectProps:g,type:ee,value:z,variant:b="outlined"}=r,oe=_(r,ge),H=a({},r,{autoFocus:d,color:u,disabled:m,error:F,fullWidth:v,multiline:R,required:y,select:C,variant:b}),se=Re(H),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:G,rows:Z,maxRows:D,minRows:J,type:ee,value:z,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:H},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:z,input:$},g,{children:c})):$,h&&i.jsx(ve,a({id:I},O,{children:h}))]}))}),qe=ze;export{ve as F,qe as T,me as a,w as f,he as g,Me as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{av as d,au as g,aw as b,aA as e,r as m,ay as v,az as T,j as x,aC as f,aD as C}from"./index-
|
|
1
|
+
import{av as d,au as g,aw as b,aA as e,r as m,ay as v,az as T,j as x,aC as f,aD as C}from"./index-tI696upG.js";function R(s){return d("MuiToolbar",s)}const y=g("MuiToolbar",["root","gutters","regular","dense"]),L=y,G=["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,G),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,as as B,P as b,bj as R,a8 as I,fe as N,B as _,w as f,n as h,G as E,b1 as z}from"./index-
|
|
1
|
+
import{r as c,u as g,j as e,a as L,as as B,P as b,bj as R,a8 as I,fe as N,B as _,w as f,n as h,G as E,b1 as z}from"./index-tI696upG.js";import{P as F}from"./page-header-XDCgljDC.js";import{A as W}from"./config-KH6srg17.js";import{S as H}from"./layout-RSyMpp2D.js";import{S as G}from"./step-actions-h70_KUEF.js";import{S as O}from"./button-sDNcUZdA.js";import{d as $}from"./InfoOutlined-GGjNqSSj.js";import{F as q}from"./FormControl-6yEJYlS5.js";import{R as V,a as D}from"./RadioGroup-YCEsD_pu.js";import{F as x}from"./FormControlLabel-20HNTqkg.js";import{C as J}from"./Checkbox-P8vtjjVF.js";import"./content-layout-RY8gcl_K.js";import"./useFormControl-UFbFMiSx.js";import"./FormGroup-35Eh4cl8.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)}},P=async t=>{a||(d(t.target.value),await A(t.target.value))},T=async t=>{const l=t.target.checked;try{o(!0),await u.configPublicToStore(l),o(!1)}catch(w){o(!1),h.error(w.message)}},k={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:P,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:k}),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:T,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,as as g,aY as E,a_ as k,P as i,G as C}from"./index-
|
|
1
|
+
import{r,j as e,as as g,aY as E,a_ as k,P as i,G as C}from"./index-tI696upG.js";import{d as I}from"./MoreHoriz-PuMXq2PC.js";import{L as v,a as T}from"./confirm-1yUPPWyO.js";function c({actions:l,size:p,...u}){const[n,s]=r.useState(null),m=!!n,d=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}s(t.currentTarget)},a=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}s(null)};return e.jsxs(b,{...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,o)=>{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:o,"data-cy":`actions-menu-${o}`},e.jsx(v,{style:{minWidth:24,marginRight:8},children:y}),e.jsx(T,{primary:f}))})})]})}c.propTypes={actions:i.array,size:i.oneOf(["small","medium","large"])};c.defaultProps={actions:[],size:"small"};const b=C.div``;export{c as A};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{av as Bo,au as Go,aw as Po,r as h,ay as jo,az as $r,aA as Pe,j as c,aC as Vo,aD as Oo,d0 as Co,d1 as Fo,d2 as na,d3 as We,am as ia,d4 as To,d5 as Io,f as o0,d6 as $o,d7 as s0,d8 as l0,d9 as _o,ax as ar,cO as Un,K as Me,M as Ne,aO as Ut,da as zn,b_ as Ro,bu as Mo,P as d,bU as ee,u as ce,bk as No,c9 as Kn,F as ae,aT as Le,db as Lo,Y as kt,c4 as br,c as j0,x as aa,dc as qo,dd as Uo,n as V0,S as ke,ai as zt,G as se,de as ge,w as _r,q as zo,U as O0,B as N,bw as vr,e as Ko,as as Rr,df as Ho,T as oe,b4 as Wo,dg as oa,bj as C0,aU as Mr,dh as sa,a_ as la,di as Qo,dj as Jo,ao as Hn,a6 as Yo,Z as Xo,N as Zo,dk as es,b as ca,bT as ts,bC as rs,c1 as ns,bq as ua,dl as gr,cg as is,bm as as,dm as os,a7 as ss,bn as ls,bd as cs,c0 as us,v as ms,dn as ps,dp as fs,a4 as ds,A as xs,dq as hs,H as ks,dr as ma,ds as ys,C as bs,cp as vs,bt as gs,$ as Ye,cj as Ss,dt as Es,du as As,dv as ws,dw as Ds,dx as Bs,dy as Gs,dz as or,dA as Wn}from"./index-Vu5Hi9e4.js";import{u as pa}from"./uniqBy-j0q8aAHN.js";import{P as fa}from"./page-header-sm7Rcxwn.js";import{u as Ps,C as js,S as Vs,a as Os,L as Cs}from"./config-space-5XfyD3uq.js";import{D as da,A as Nr,f as F0}from"./index-RTZQcUl-.js";import{l as Fs}from"./lottie-THFzP1dC.js";import{L as Qn}from"./launch-result-message-J5dZdjK9.js";import{S as Ts}from"./index-c7FpgR5O.js";import{R as sr}from"./logo-uploader-Z7R8hvrQ.js";import{a as Jn}from"./api-bqNzLg9V.js";import{f as Is,j as $s,a as _s,c as Rs,d as Ms,b as Ns,e as Ls,g as qs,h as Us}from"./jss-plugin-props-sort.esm-4cc6LQ6N.js";import{u as zs,L as Ks,a as Hs,C as Ws}from"./confirm-uXpKSgxe.js";import{L as xa,a as Qs}from"./ListItem-OwJ_bemn.js";import{v as Js}from"./util-IkWr1k8x.js";import{s as ha,h as Ys,w as Xs,f as Zs,a as el,b as tl,c as rl,S as nl,d as il}from"./index-xfPw64rO.js";import{T as al,a as ol,b as sl,c as Yn}from"./TableRow-Sa1WiM2f.js";import{F as ll}from"./FormControlLabel-JXaJatAY.js";import{C as cl}from"./Checkbox-Bx2RKhbj.js";import{I as Xn}from"./index-tUGh9zeW.js";import{u as ul}from"./session-i2sKQu5g.js";import{W as ml}from"./did-address-2g3VKxYq.js";import{T as Kt}from"./TextField-YOGEC6UG.js";import{S as pl,a as fl,b as dl}from"./Stepper-EoIiueJu.js";import{d as xl}from"./ArrowDropDown-oq6bnC5a.js";import{_ as hl}from"./useLocalStorage-g0dvG-aI.js";import{d as kl}from"./Add-yJOSofhS.js";import{d as yl}from"./Launch-H3hBPB77.js";import{d as bl}from"./DeleteOutline-e-pVPJ10.js";import{C as vl}from"./click-to-copy-XhsdyR0H.js";import{A as gl}from"./Alert-8z3IBaBE.js";import{E as Lr}from"./fallback-K92qnnbp.js";import{d as Sl}from"./Search-vTBXAsZL.js";import{G as ka}from"./Grid-Cq0tl8Rn.js";import{O as El}from"./Select-SmZrX7GA.js";import{H as Zn}from"./Hidden-dLDh01VC.js";import{M as ei}from"./InputAdornment-i3kKzNb4.js";import{y as Al,g as wl,q as Dl}from"./preact.module-yJdvQMHZ.js";import{u as ya,C as Bl,D as Gl,a as Pl}from"./connect-to--STm1j0r.js";import{C as jl}from"./content-layout-cxGNkYvv.js";function Vl(e){return Bo("MuiTableContainer",e)}Go("MuiTableContainer",["root"]);const Ol=["className","component"],Cl=e=>{const{classes:t}=e;return Oo({root:["root"]},Vl,t)},Fl=Po("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Tl=h.forwardRef(function(t,r){const n=jo({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=n,o=$r(n,Ol),s=Pe({},n,{component:a}),l=Cl(s);return c.jsx(Fl,Pe({ref:r,as:a,className:Vo(l.root,i),ownerState:s},o))}),Il=Tl;function $l(e,t,r){r===void 0&&(r={});var n=Co(t);Fo(function(){var i=na(r.target,window);if(i!=null&&i.addEventListener){var a=function(o){return n.current(o)};return i.addEventListener(e,a,{capture:r.capture,once:r.once,passive:r.passive}),function(){i.removeEventListener(e,a,{capture:r.capture})}}},[e,r.capture,r.once,r.passive],r.target)}var _l=function(e){return e===document||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},Rl=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},Ml=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},Nl=function(e,t){t===void 0&&(t={});var r=t.target,n=t.isNoMore,i=t.threshold,a=i===void 0?100:i,o=t.reloadDeps,s=o===void 0?[]:o,l=t.manual,u=t.onBefore,p=t.onSuccess,m=t.onError,f=t.onFinally,k=We(h.useState(),2),y=k[0],x=k[1],b=We(h.useState(!1),2),g=b[0],v=b[1],S=h.useMemo(function(){return n?n(y):!1},[y]),E=ia(function(_){return To(void 0,void 0,void 0,function(){var L,Y,F;return Io(this,function(B){switch(B.label){case 0:return[4,e(_)];case 1:return L=B.sent(),x(_?l0(l0({},L),{list:s0(s0([],We((F=_.list)!==null&&F!==void 0?F:[]),!1),We(L.list),!1)}):l0(l0({},L),{list:s0([],We((Y=L.list)!==null&&Y!==void 0?Y:[]),!1)})),[2,L]}})})},{manual:l,onFinally:function(_,L,Y){v(!1),f==null||f(L,Y)},onBefore:function(){return u==null?void 0:u()},onSuccess:function(_){setTimeout(function(){V()}),p==null||p(_)},onError:function(_){return m==null?void 0:m(_)}}),w=E.loading,D=E.run,R=E.runAsync,G=E.cancel,A=o0(function(){S||(v(!0),D(y))}),P=o0(function(){return S?Promise.reject():(v(!0),R(y))}),j=function(){return v(!1),D()},U=function(){return v(!1),R()},V=function(){var _=na(r);if(_){_=_===document?document.documentElement:_;var L=_l(_),Y=Rl(_),F=Ml(_);Y-L<=F+a&&A()}};return $l("scroll",function(){w||g||V()},{target:r}),$o(function(){D()},s0([],We(s),!1)),{data:y,loading:!g&&w,loadingMore:g,noMore:S,loadMore:A,loadMoreAsync:P,reload:o0(j),reloadAsync:o0(U),mutate:x,cancel:G}};const Ll=Nl,ql=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function Ul(e={}){const{disableGlobal:t=!1,productionPrefix:r="jss",seed:n=""}=e,i=n===""?"":`${n}-`;let a=0;const o=()=>(a+=1,a);return(s,l)=>{const u=l.options.name;if(u&&u.indexOf("Mui")===0&&!l.options.link&&!t){if(ql.indexOf(s.key)!==-1)return`Mui-${s.key}`;const p=`${i}${u}-${s.key}`;return!l.options.theme[_o]||n!==""?p:`${p}-${o()}`}return`${i}${r}${o()}`}}function zl(){return{plugins:[Is(),$s(),_s(),Rs(),Ms(),typeof window>"u"?null:Ns(),Ls()]}}function ba(e={}){const{baseClasses:t,newClasses:r,Component:n}=e;if(!r)return t;const i=Pe({},t);return Object.keys(r).forEach(a=>{r[a]&&(i[a]=`${t[a]} ${r[a]}`)}),i}const Kl={set:(e,t,r,n)=>{let i=e.get(t);i||(i=new Map,e.set(t,i)),i.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)}},et=Kl,Hl=qs(zl()),Wl=Ul(),Ql=new Map,Jl={disableGeneration:!1,generateClassName:Wl,jss:Hl,sheetsCache:null,sheetsManager:Ql,sheetsRegistry:null},Yl=h.createContext(Jl);let ti=-1e9;function Xl(){return ti+=1,ti}const Zl=["variant"];function ri(e){return e.length===0}function e1(e){const{variant:t}=e,r=$r(e,Zl);let n=t||"";return Object.keys(r).sort().forEach(i=>{i==="color"?n+=ri(n)?e[i]:ar(e[i]):n+=`${ri(n)?i:ar(i)}${ar(e[i].toString())}`}),n}const t1={},r1=t1;function n1(e){const t=typeof e=="function";return{create:(r,n)=>{let i;try{i=t?e(r):e}catch(l){throw l}if(!n||!r.components||!r.components[n]||!r.components[n].styleOverrides&&!r.components[n].variants)return i;const a=r.components[n].styleOverrides||{},o=r.components[n].variants||[],s=Pe({},i);return Object.keys(a).forEach(l=>{s[l]=Un(s[l]||{},a[l])}),o.forEach(l=>{const u=e1(l.props);s[u]=Un(s[u]||{},l.style)}),s},options:{}}}const i1=["name","classNamePrefix","Component","defaultTheme"];function a1({state:e,stylesOptions:t},r,n){if(t.disableGeneration)return r||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let i=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,i=!0),r!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=r,i=!0),i&&(e.cacheClasses.value=ba({baseClasses:e.cacheClasses.lastJSS,newClasses:r,Component:n})),e.cacheClasses.value}function o1({state:e,theme:t,stylesOptions:r,stylesCreator:n,name:i},a){if(r.disableGeneration)return;let o=et.get(r.sheetsManager,n,t);o||(o={refs:0,staticSheet:null,dynamicStyles:null},et.set(r.sheetsManager,n,t,o));const s=Pe({},n.options,r,{theme:t,flip:typeof r.flip=="boolean"?r.flip:t.direction==="rtl"});s.generateId=s.serverGenerateClassName||s.generateClassName;const l=r.sheetsRegistry;if(o.refs===0){let u;r.sheetsCache&&(u=et.get(r.sheetsCache,n,t));const p=n.create(t,i);u||(u=r.jss.createStyleSheet(p,Pe({link:!1},s)),u.attach(),r.sheetsCache&&et.set(r.sheetsCache,n,t,u)),l&&l.add(u),o.staticSheet=u,o.dynamicStyles=Us(p)}if(o.dynamicStyles){const u=r.jss.createStyleSheet(o.dynamicStyles,Pe({link:!0},s));u.update(a),u.attach(),e.dynamicSheet=u,e.classes=ba({baseClasses:o.staticSheet.classes,newClasses:u.classes}),l&&l.add(u)}else e.classes=o.staticSheet.classes;o.refs+=1}function s1({state:e},t){e.dynamicSheet&&e.dynamicSheet.update(t)}function l1({state:e,theme:t,stylesOptions:r,stylesCreator:n}){if(r.disableGeneration)return;const i=et.get(r.sheetsManager,n,t);i.refs-=1;const a=r.sheetsRegistry;i.refs===0&&(et.delete(r.sheetsManager,n,t),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),e.dynamicSheet&&(r.jss.removeStyleSheet(e.dynamicSheet),a&&a.remove(e.dynamicSheet))}function c1(e,t){const r=h.useRef([]);let n;const i=h.useMemo(()=>({}),t);r.current!==i&&(r.current=i,n=e()),h.useEffect(()=>()=>{n&&n()},[i])}function qr(e,t={}){const{name:r,classNamePrefix:n,Component:i,defaultTheme:a=r1}=t,o=$r(t,i1),s=n1(e),l=r||n||"makeStyles";return s.options={index:Xl(),name:r,meta:l,classNamePrefix:l},(p={})=>{const m=zs()||a,f=Pe({},h.useContext(Yl),o),k=h.useRef(),y=h.useRef();return c1(()=>{const b={name:r,state:{},stylesCreator:s,stylesOptions:f,theme:m};return o1(b,p),y.current=!1,k.current=b,()=>{l1(b)}},[m,s]),h.useEffect(()=>{y.current&&s1(k.current,p),y.current=!0}),a1(k.current,p.classes,i)}}const W2="blocklet-add-component-registry",Q2="server-add-registry",J2=e=>`resource-${e}-add-registry`;var Ur={},u1=Ne;Object.defineProperty(Ur,"__esModule",{value:!0});var va=Ur.default=void 0,m1=u1(Me()),p1=c;va=Ur.default=(0,m1.default)((0,p1.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 f1=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,i,a;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(i of t.entries())if(!r.has(i[0]))return!1;for(i of t.entries())if(!e(i[1],r.get(i[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(i of t.entries())if(!r.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(t[i]!==r[i])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(a=Object.keys(t),n=a.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[i]))return!1;for(i=n;i--!==0;){var o=a[i];if(!(o==="_owner"&&t.$$typeof)&&!e(t[o],r[o]))return!1}return!0}return t!==t&&r!==r};const ni=Ut(f1);var d1=x1;function it(e){return e instanceof zn?zn.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function x1(e){if(e=e||{},e.circles)return h1(e);return e.proto?n:r;function t(i,a){for(var o=Object.keys(i),s=new Array(o.length),l=0;l<o.length;l++){var u=o[l],p=i[u];typeof p!="object"||p===null?s[u]=p:p instanceof Date?s[u]=new Date(p):ArrayBuffer.isView(p)?s[u]=it(p):s[u]=a(p)}return s}function r(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return t(i,r);if(i instanceof Map)return new Map(t(Array.from(i),r));if(i instanceof Set)return new Set(t(Array.from(i),r));var a={};for(var o in i)if(Object.hasOwnProperty.call(i,o)!==!1){var s=i[o];typeof s!="object"||s===null?a[o]=s:s instanceof Date?a[o]=new Date(s):s instanceof Map?a[o]=new Map(t(Array.from(s),r)):s instanceof Set?a[o]=new Set(t(Array.from(s),r)):ArrayBuffer.isView(s)?a[o]=it(s):a[o]=r(s)}return a}function n(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return t(i,n);if(i instanceof Map)return new Map(t(Array.from(i),n));if(i instanceof Set)return new Set(t(Array.from(i),n));var a={};for(var o in i){var s=i[o];typeof s!="object"||s===null?a[o]=s:s instanceof Date?a[o]=new Date(s):s instanceof Map?a[o]=new Map(t(Array.from(s),n)):s instanceof Set?a[o]=new Set(t(Array.from(s),n)):ArrayBuffer.isView(s)?a[o]=it(s):a[o]=n(s)}return a}}function h1(e){var t=[],r=[];return e.proto?a:i;function n(o,s){for(var l=Object.keys(o),u=new Array(l.length),p=0;p<l.length;p++){var m=l[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]=it(f);else{var k=t.indexOf(f);k!==-1?u[m]=r[k]:u[m]=s(f)}}return u}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 l in o)if(Object.hasOwnProperty.call(o,l)!==!1){var u=o[l];if(typeof u!="object"||u===null)s[l]=u;else if(u instanceof Date)s[l]=new Date(u);else if(u instanceof Map)s[l]=new Map(n(Array.from(u),i));else if(u instanceof Set)s[l]=new Set(n(Array.from(u),i));else if(ArrayBuffer.isView(u))s[l]=it(u);else{var p=t.indexOf(u);p!==-1?s[l]=r[p]:s[l]=i(u)}}return t.pop(),r.pop(),s}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 l in o){var u=o[l];if(typeof u!="object"||u===null)s[l]=u;else if(u instanceof Date)s[l]=new Date(u);else if(u instanceof Map)s[l]=new Map(n(Array.from(u),a));else if(u instanceof Set)s[l]=new Set(n(Array.from(u),a));else if(ArrayBuffer.isView(u))s[l]=it(u);else{var p=t.indexOf(u);p!==-1?s[l]=r[p]:s[l]=a(u)}}return t.pop(),r.pop(),s}}var k1=d1();const ii=Ut(k1);function Sr(){return Sr=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},Sr.apply(this,arguments)}function y1(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function zr(e,t){return t={exports:{}},e(t,t.exports),t.exports}/** @license React v16.13.1
|
|
1
|
+
import{av as Bo,au as Go,aw as Po,r as h,ay as jo,az as $r,aA as Pe,j as c,aC as Vo,aD as Oo,d1 as Co,d2 as Fo,d3 as na,d4 as We,am as ia,d5 as To,d6 as Io,f as o0,d7 as $o,d8 as s0,d9 as l0,da as _o,ax as ar,cP as Un,K as Me,M as Ne,aO as Ut,db as zn,c3 as Ro,bu as Mo,P as d,bZ as ee,u as ce,bk as No,cd as Kn,F as ae,aT as Le,dc as Lo,Y as kt,bJ as br,c as j0,x as aa,dd as qo,de as Uo,n as V0,S as ke,ai as zt,G as se,df as ge,w as _r,q as zo,U as O0,B as N,bw as vr,e as Ko,as as Rr,dg as Ho,T as oe,b4 as Wo,dh as oa,bj as C0,aU as Mr,di as sa,a_ as la,dj as Qo,dk as Jo,ao as Hn,a6 as Yo,Z as Xo,N as Zo,dl as es,b as ca,bY as ts,bC as rs,c6 as ns,bq as ua,bK as gr,ck as is,bm as as,dm as os,a7 as ss,bn as ls,bd as cs,c5 as us,v as ms,dn as ps,dp as fs,a4 as ds,A as xs,dq as hs,H as ks,dr as ma,ds as ys,C as bs,cs as vs,bt as gs,$ as Ye,bN as Ss,dt as Es,du as As,dv as ws,dw as Ds,dx as Bs,dy as Gs,dz as or,dA as Wn}from"./index-tI696upG.js";import{u as pa}from"./uniqBy-G2UOKHwr.js";import{P as fa}from"./page-header-XDCgljDC.js";import{u as Ps,C as js,S as Vs,a as Os,L as Cs}from"./config-space-PPRQ64ov.js";import{D as da,A as Nr,f as F0}from"./index-fbLp4t_l.js";import{l as Fs}from"./lottie-_pLPoJ-1.js";import{L as Qn}from"./launch-result-message-vav8FvlH.js";import{S as Ts}from"./index-DbTtClCr.js";import{R as sr}from"./logo-uploader-zfDQNUwk.js";import{a as Jn}from"./api-ED7jlksD.js";import{f as Is,j as $s,a as _s,c as Rs,d as Ms,b as Ns,e as Ls,g as qs,h as Us}from"./jss-plugin-props-sort.esm-FVYd2q-V.js";import{u as zs,L as Ks,a as Hs,C as Ws}from"./confirm-1yUPPWyO.js";import{L as xa,a as Qs}from"./ListItem-pLuDtQgS.js";import{v as Js}from"./util-fKfjbPC7.js";import{s as ha,h as Ys,w as Xs,f as Zs,a as el,b as tl,c as rl,S as nl,d as il}from"./index-zukWofPQ.js";import{T as al,a as ol,b as sl,c as Yn}from"./TableRow-k9qE6omq.js";import{F as ll}from"./FormControlLabel-20HNTqkg.js";import{C as cl}from"./Checkbox-P8vtjjVF.js";import{I as Xn}from"./index-bo2FHAot.js";import{u as ul}from"./session-4Q3tQEqQ.js";import{W as ml}from"./did-address-OD4YOZ2O.js";import{T as Kt}from"./TextField-6hzePx6A.js";import{S as pl,a as fl,b as dl}from"./Stepper-XYDkJ2KJ.js";import{d as xl}from"./ArrowDropDown-w6SQB4Z1.js";import{_ as hl}from"./useLocalStorage-Ne-e0YYQ.js";import{d as kl}from"./Add-7g2VVPVn.js";import{d as yl}from"./Launch-FTSCmPJ-.js";import{d as bl}from"./DeleteOutline-ey3GBCUW.js";import{C as vl}from"./click-to-copy-jP1Jjfmi.js";import{A as gl}from"./Alert-J_LOTKGn.js";import{E as Lr}from"./fallback-LxCPCLff.js";import{d as Sl}from"./Search-gz6hDZ_X.js";import{G as ka}from"./Grid-Q18GgpBs.js";import{O as El}from"./Select-M-8Lo2J5.js";import{H as Zn}from"./Hidden-3U4cjY85.js";import{M as ei}from"./InputAdornment-v0Ghs4vA.js";import{y as Al,g as wl,q as Dl}from"./preact.module-yJdvQMHZ.js";import{u as ya,C as Bl,D as Gl,a as Pl}from"./connect-to-Ec-PR8-d.js";import{C as jl}from"./content-layout-RY8gcl_K.js";function Vl(e){return Bo("MuiTableContainer",e)}Go("MuiTableContainer",["root"]);const Ol=["className","component"],Cl=e=>{const{classes:t}=e;return Oo({root:["root"]},Vl,t)},Fl=Po("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Tl=h.forwardRef(function(t,r){const n=jo({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=n,o=$r(n,Ol),s=Pe({},n,{component:a}),l=Cl(s);return c.jsx(Fl,Pe({ref:r,as:a,className:Vo(l.root,i),ownerState:s},o))}),Il=Tl;function $l(e,t,r){r===void 0&&(r={});var n=Co(t);Fo(function(){var i=na(r.target,window);if(i!=null&&i.addEventListener){var a=function(o){return n.current(o)};return i.addEventListener(e,a,{capture:r.capture,once:r.once,passive:r.passive}),function(){i.removeEventListener(e,a,{capture:r.capture})}}},[e,r.capture,r.once,r.passive],r.target)}var _l=function(e){return e===document||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},Rl=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},Ml=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},Nl=function(e,t){t===void 0&&(t={});var r=t.target,n=t.isNoMore,i=t.threshold,a=i===void 0?100:i,o=t.reloadDeps,s=o===void 0?[]:o,l=t.manual,u=t.onBefore,p=t.onSuccess,m=t.onError,f=t.onFinally,k=We(h.useState(),2),y=k[0],x=k[1],b=We(h.useState(!1),2),g=b[0],v=b[1],S=h.useMemo(function(){return n?n(y):!1},[y]),E=ia(function(_){return To(void 0,void 0,void 0,function(){var L,Y,F;return Io(this,function(B){switch(B.label){case 0:return[4,e(_)];case 1:return L=B.sent(),x(_?l0(l0({},L),{list:s0(s0([],We((F=_.list)!==null&&F!==void 0?F:[]),!1),We(L.list),!1)}):l0(l0({},L),{list:s0([],We((Y=L.list)!==null&&Y!==void 0?Y:[]),!1)})),[2,L]}})})},{manual:l,onFinally:function(_,L,Y){v(!1),f==null||f(L,Y)},onBefore:function(){return u==null?void 0:u()},onSuccess:function(_){setTimeout(function(){V()}),p==null||p(_)},onError:function(_){return m==null?void 0:m(_)}}),w=E.loading,D=E.run,R=E.runAsync,G=E.cancel,A=o0(function(){S||(v(!0),D(y))}),P=o0(function(){return S?Promise.reject():(v(!0),R(y))}),j=function(){return v(!1),D()},U=function(){return v(!1),R()},V=function(){var _=na(r);if(_){_=_===document?document.documentElement:_;var L=_l(_),Y=Rl(_),F=Ml(_);Y-L<=F+a&&A()}};return $l("scroll",function(){w||g||V()},{target:r}),$o(function(){D()},s0([],We(s),!1)),{data:y,loading:!g&&w,loadingMore:g,noMore:S,loadMore:A,loadMoreAsync:P,reload:o0(j),reloadAsync:o0(U),mutate:x,cancel:G}};const Ll=Nl,ql=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function Ul(e={}){const{disableGlobal:t=!1,productionPrefix:r="jss",seed:n=""}=e,i=n===""?"":`${n}-`;let a=0;const o=()=>(a+=1,a);return(s,l)=>{const u=l.options.name;if(u&&u.indexOf("Mui")===0&&!l.options.link&&!t){if(ql.indexOf(s.key)!==-1)return`Mui-${s.key}`;const p=`${i}${u}-${s.key}`;return!l.options.theme[_o]||n!==""?p:`${p}-${o()}`}return`${i}${r}${o()}`}}function zl(){return{plugins:[Is(),$s(),_s(),Rs(),Ms(),typeof window>"u"?null:Ns(),Ls()]}}function ba(e={}){const{baseClasses:t,newClasses:r,Component:n}=e;if(!r)return t;const i=Pe({},t);return Object.keys(r).forEach(a=>{r[a]&&(i[a]=`${t[a]} ${r[a]}`)}),i}const Kl={set:(e,t,r,n)=>{let i=e.get(t);i||(i=new Map,e.set(t,i)),i.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)}},et=Kl,Hl=qs(zl()),Wl=Ul(),Ql=new Map,Jl={disableGeneration:!1,generateClassName:Wl,jss:Hl,sheetsCache:null,sheetsManager:Ql,sheetsRegistry:null},Yl=h.createContext(Jl);let ti=-1e9;function Xl(){return ti+=1,ti}const Zl=["variant"];function ri(e){return e.length===0}function e1(e){const{variant:t}=e,r=$r(e,Zl);let n=t||"";return Object.keys(r).sort().forEach(i=>{i==="color"?n+=ri(n)?e[i]:ar(e[i]):n+=`${ri(n)?i:ar(i)}${ar(e[i].toString())}`}),n}const t1={},r1=t1;function n1(e){const t=typeof e=="function";return{create:(r,n)=>{let i;try{i=t?e(r):e}catch(l){throw l}if(!n||!r.components||!r.components[n]||!r.components[n].styleOverrides&&!r.components[n].variants)return i;const a=r.components[n].styleOverrides||{},o=r.components[n].variants||[],s=Pe({},i);return Object.keys(a).forEach(l=>{s[l]=Un(s[l]||{},a[l])}),o.forEach(l=>{const u=e1(l.props);s[u]=Un(s[u]||{},l.style)}),s},options:{}}}const i1=["name","classNamePrefix","Component","defaultTheme"];function a1({state:e,stylesOptions:t},r,n){if(t.disableGeneration)return r||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let i=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,i=!0),r!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=r,i=!0),i&&(e.cacheClasses.value=ba({baseClasses:e.cacheClasses.lastJSS,newClasses:r,Component:n})),e.cacheClasses.value}function o1({state:e,theme:t,stylesOptions:r,stylesCreator:n,name:i},a){if(r.disableGeneration)return;let o=et.get(r.sheetsManager,n,t);o||(o={refs:0,staticSheet:null,dynamicStyles:null},et.set(r.sheetsManager,n,t,o));const s=Pe({},n.options,r,{theme:t,flip:typeof r.flip=="boolean"?r.flip:t.direction==="rtl"});s.generateId=s.serverGenerateClassName||s.generateClassName;const l=r.sheetsRegistry;if(o.refs===0){let u;r.sheetsCache&&(u=et.get(r.sheetsCache,n,t));const p=n.create(t,i);u||(u=r.jss.createStyleSheet(p,Pe({link:!1},s)),u.attach(),r.sheetsCache&&et.set(r.sheetsCache,n,t,u)),l&&l.add(u),o.staticSheet=u,o.dynamicStyles=Us(p)}if(o.dynamicStyles){const u=r.jss.createStyleSheet(o.dynamicStyles,Pe({link:!0},s));u.update(a),u.attach(),e.dynamicSheet=u,e.classes=ba({baseClasses:o.staticSheet.classes,newClasses:u.classes}),l&&l.add(u)}else e.classes=o.staticSheet.classes;o.refs+=1}function s1({state:e},t){e.dynamicSheet&&e.dynamicSheet.update(t)}function l1({state:e,theme:t,stylesOptions:r,stylesCreator:n}){if(r.disableGeneration)return;const i=et.get(r.sheetsManager,n,t);i.refs-=1;const a=r.sheetsRegistry;i.refs===0&&(et.delete(r.sheetsManager,n,t),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),e.dynamicSheet&&(r.jss.removeStyleSheet(e.dynamicSheet),a&&a.remove(e.dynamicSheet))}function c1(e,t){const r=h.useRef([]);let n;const i=h.useMemo(()=>({}),t);r.current!==i&&(r.current=i,n=e()),h.useEffect(()=>()=>{n&&n()},[i])}function qr(e,t={}){const{name:r,classNamePrefix:n,Component:i,defaultTheme:a=r1}=t,o=$r(t,i1),s=n1(e),l=r||n||"makeStyles";return s.options={index:Xl(),name:r,meta:l,classNamePrefix:l},(p={})=>{const m=zs()||a,f=Pe({},h.useContext(Yl),o),k=h.useRef(),y=h.useRef();return c1(()=>{const b={name:r,state:{},stylesCreator:s,stylesOptions:f,theme:m};return o1(b,p),y.current=!1,k.current=b,()=>{l1(b)}},[m,s]),h.useEffect(()=>{y.current&&s1(k.current,p),y.current=!0}),a1(k.current,p.classes,i)}}const W2="blocklet-add-component-registry",Q2="server-add-registry",J2=e=>`resource-${e}-add-registry`;var Ur={},u1=Ne;Object.defineProperty(Ur,"__esModule",{value:!0});var va=Ur.default=void 0,m1=u1(Me()),p1=c;va=Ur.default=(0,m1.default)((0,p1.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 f1=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,i,a;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(i of t.entries())if(!r.has(i[0]))return!1;for(i of t.entries())if(!e(i[1],r.get(i[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(i of t.entries())if(!r.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(t[i]!==r[i])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(a=Object.keys(t),n=a.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[i]))return!1;for(i=n;i--!==0;){var o=a[i];if(!(o==="_owner"&&t.$$typeof)&&!e(t[o],r[o]))return!1}return!0}return t!==t&&r!==r};const ni=Ut(f1);var d1=x1;function it(e){return e instanceof zn?zn.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function x1(e){if(e=e||{},e.circles)return h1(e);return e.proto?n:r;function t(i,a){for(var o=Object.keys(i),s=new Array(o.length),l=0;l<o.length;l++){var u=o[l],p=i[u];typeof p!="object"||p===null?s[u]=p:p instanceof Date?s[u]=new Date(p):ArrayBuffer.isView(p)?s[u]=it(p):s[u]=a(p)}return s}function r(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return t(i,r);if(i instanceof Map)return new Map(t(Array.from(i),r));if(i instanceof Set)return new Set(t(Array.from(i),r));var a={};for(var o in i)if(Object.hasOwnProperty.call(i,o)!==!1){var s=i[o];typeof s!="object"||s===null?a[o]=s:s instanceof Date?a[o]=new Date(s):s instanceof Map?a[o]=new Map(t(Array.from(s),r)):s instanceof Set?a[o]=new Set(t(Array.from(s),r)):ArrayBuffer.isView(s)?a[o]=it(s):a[o]=r(s)}return a}function n(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return t(i,n);if(i instanceof Map)return new Map(t(Array.from(i),n));if(i instanceof Set)return new Set(t(Array.from(i),n));var a={};for(var o in i){var s=i[o];typeof s!="object"||s===null?a[o]=s:s instanceof Date?a[o]=new Date(s):s instanceof Map?a[o]=new Map(t(Array.from(s),n)):s instanceof Set?a[o]=new Set(t(Array.from(s),n)):ArrayBuffer.isView(s)?a[o]=it(s):a[o]=n(s)}return a}}function h1(e){var t=[],r=[];return e.proto?a:i;function n(o,s){for(var l=Object.keys(o),u=new Array(l.length),p=0;p<l.length;p++){var m=l[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]=it(f);else{var k=t.indexOf(f);k!==-1?u[m]=r[k]:u[m]=s(f)}}return u}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 l in o)if(Object.hasOwnProperty.call(o,l)!==!1){var u=o[l];if(typeof u!="object"||u===null)s[l]=u;else if(u instanceof Date)s[l]=new Date(u);else if(u instanceof Map)s[l]=new Map(n(Array.from(u),i));else if(u instanceof Set)s[l]=new Set(n(Array.from(u),i));else if(ArrayBuffer.isView(u))s[l]=it(u);else{var p=t.indexOf(u);p!==-1?s[l]=r[p]:s[l]=i(u)}}return t.pop(),r.pop(),s}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 l in o){var u=o[l];if(typeof u!="object"||u===null)s[l]=u;else if(u instanceof Date)s[l]=new Date(u);else if(u instanceof Map)s[l]=new Map(n(Array.from(u),a));else if(u instanceof Set)s[l]=new Set(n(Array.from(u),a));else if(ArrayBuffer.isView(u))s[l]=it(u);else{var p=t.indexOf(u);p!==-1?s[l]=r[p]:s[l]=a(u)}}return t.pop(),r.pop(),s}}var k1=d1();const ii=Ut(k1);function Sr(){return Sr=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},Sr.apply(this,arguments)}function y1(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function zr(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,bt as j,U as D,r as a,c as S,bJ as W,bs as O,j as u,ai as U}from"./index-tI696upG.js";import{A as k,S as A}from"./add-component-core-mNoHl6TM.js";import"./uniqBy-G2UOKHwr.js";import"./page-header-XDCgljDC.js";import"./config-space-PPRQ64ov.js";import"./Skeleton-gnG2NynL.js";import"./Hidden-3U4cjY85.js";import"./spaces--3SmdlJ4.js";import"./index-Vhx3FEvR.js";import"./index-cnER8eGh.js";import"./api-ED7jlksD.js";import"./index-fbLp4t_l.js";import"./lottie-_pLPoJ-1.js";import"./launch-result-message-vav8FvlH.js";import"./index-DbTtClCr.js";import"./EditIcon-mE1h5C2Z.js";import"./Done-vK5iR6vU.js";import"./Google-keN4-shv.js";import"./TextField-6hzePx6A.js";import"./FormControl-6yEJYlS5.js";import"./useFormControl-UFbFMiSx.js";import"./InputLabel-PDpXpeRG.js";import"./Select-M-8Lo2J5.js";import"./logo-uploader-zfDQNUwk.js";import"./index-nkT_KXMy.js";import"./jss-plugin-props-sort.esm-FVYd2q-V.js";import"./toPropertyKey-NzAT2yhV.js";import"./confirm-1yUPPWyO.js";import"./Alert-J_LOTKGn.js";import"./ListItem-pLuDtQgS.js";import"./util-fKfjbPC7.js";import"./index-zukWofPQ.js";import"./TableRow-k9qE6omq.js";import"./FormControlLabel-20HNTqkg.js";import"./Checkbox-P8vtjjVF.js";import"./index-bo2FHAot.js";import"./session-4Q3tQEqQ.js";import"./did-address-OD4YOZ2O.js";import"./Stepper-XYDkJ2KJ.js";import"./ArrowDropDown-w6SQB4Z1.js";import"./useLocalStorage-Ne-e0YYQ.js";import"./Add-7g2VVPVn.js";import"./Launch-FTSCmPJ-.js";import"./DeleteOutline-ey3GBCUW.js";import"./click-to-copy-jP1Jjfmi.js";import"./fallback-LxCPCLff.js";import"./Search-gz6hDZ_X.js";import"./Grid-Q18GgpBs.js";import"./InputAdornment-v0Ghs4vA.js";import"./preact.module-yJdvQMHZ.js";import"./connect-to-Ec-PR8-d.js";import"./use-blocklet-info-for-connect-did-spaces-k15NWp1Q.js";import"./CloseOutlined-PTKdbMiF.js";import"./index-Lwmxm_Tf.js";import"./ExpandMore-DBIVxyRD.js";import"./ButtonGroup-HB3VSTeB.js";import"./content-layout-RY8gcl_K.js";function Kt(){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 y=S(o,"/api/store.json"),{data:E}=await W.get(y);return{url:o,name:E.name}}));C(t||[])}catch(t){console.error(t)}})()},[s.join(",")]);const b=()=>{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"&&b()},showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:c()}):c({inDialog:!1})}export{Kt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as l,j as a,E as $,ar as D,as as E,at as R,P as n,G as H}from"./index-
|
|
1
|
+
import{r as l,j as a,E as $,ar as D,as as E,at as R,P as n,G as H}from"./index-tI696upG.js";import{L as A}from"./selector-1dpe9L67.js";var d={};Object.defineProperty(d,"__esModule",{value:!0});var j=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";j=d.default=f;var m={};Object.defineProperty(m,"__esModule",{value:!0});var x=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";x=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:j,size:23,showText:!1,className:"locale-addon"}),o&&a.jsx(E,{onClick:C,children:a.jsx(x,{})}),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;
|