@abtnode/blocklet-services 1.16.21 → 1.16.22-beta-f47f2cf7
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-bt6SVv9G.js → Add-LDEf8DQg.js} +1 -1
- package/dist/assets/{Alert-fzSO0kDd.js → Alert-vWiM7yjS.js} +1 -1
- package/dist/assets/{ArrowDropDown-BVRz1Dl4.js → ArrowDropDown-VDOchtvn.js} +1 -1
- package/dist/assets/{Autocomplete-Mf7ySzwU.js → Autocomplete-i9jtdebF.js} +1 -1
- package/dist/assets/{Avatar-K6OaXDZ4.js → Avatar-yqyuIZ56.js} +1 -1
- package/dist/assets/{ButtonGroup-oHv_n3Uq.js → ButtonGroup-F595PjjB.js} +1 -1
- package/dist/assets/{CardContent-dbkBV230.js → CardContent-ekWcA9xq.js} +1 -1
- package/dist/assets/{CheckCircle-hL-IUT6q.js → CheckCircle-YDuvJgsY.js} +1 -1
- package/dist/assets/{Checkbox-9-rDGnGt.js → Checkbox-FAvvPRMi.js} +1 -1
- package/dist/assets/{ChevronRight-LWjgeEYU.js → ChevronRight-2zV-EBdQ.js} +1 -1
- package/dist/assets/{DeleteOutline-GkpxzkXa.js → DeleteOutline-Na5jYanp.js} +1 -1
- package/dist/assets/{DialogContentText-Vu-BdXEX.js → DialogContentText-rCKX8V2o.js} +1 -1
- package/dist/assets/{Done-j5eCF6jg.js → Done-6x0KAx6b.js} +1 -1
- package/dist/assets/{Download-i19pr97k.js → Download-SHFaFook.js} +1 -1
- package/dist/assets/{Edit-5qpZEtkS.js → Edit-Gp4Awbnb.js} +1 -1
- package/dist/assets/{EditIcon-PLG9-IL7.js → EditIcon-0Rwc1Sfx.js} +1 -1
- package/dist/assets/{ExpandMore-WRbnfWmE.js → ExpandMore-cCR6PfVd.js} +1 -1
- package/dist/assets/{FilterList-K9Uso_4u.js → FilterList-_e3TGjvk.js} +1 -1
- package/dist/assets/{FormControl-iRfjRIOl.js → FormControl-FuFP_-xW.js} +1 -1
- package/dist/assets/{FormControlLabel-AkL5QQtq.js → FormControlLabel-efXmMNAj.js} +1 -1
- package/dist/assets/{FormGroup-wvHZzmmD.js → FormGroup-62MBopyd.js} +1 -1
- package/dist/assets/{Google-ZWXikJO_.js → Google-bfk_WZie.js} +1 -1
- package/dist/assets/{Grid-zyeSJ3wZ.js → Grid-hq8tXmAE.js} +1 -1
- package/dist/assets/{Hidden-GHQEcd1H.js → Hidden-_2gAiz8I.js} +1 -1
- package/dist/assets/{Icon-tk1MFHkY.js → Icon-Hs_4R15m.js} +1 -1
- package/dist/assets/{InfoOutlined-n4SuHMob.js → InfoOutlined-BSQNe7N0.js} +1 -1
- package/dist/assets/{InputAdornment-xLAUWmxY.js → InputAdornment-tAiuMjJ3.js} +1 -1
- package/dist/assets/{InputLabel-9dhtp71X.js → InputLabel-sJuMXXTU.js} +1 -1
- package/dist/assets/{LastPage-oKswUEqc.js → LastPage-yJC3z7U6.js} +1 -1
- package/dist/assets/{Launch-_TuIFwCs.js → Launch-skY4QDHZ.js} +1 -1
- package/dist/assets/{LaunchOutlined-uyxHjAJt.js → LaunchOutlined-lpo-HuHe.js} +1 -1
- package/dist/assets/{ListItem-mXlOmPfw.js → ListItem-X7GPpG5G.js} +1 -1
- package/dist/assets/{LockIcon-_VbgQnyL.js → LockIcon-PHYGo9W9.js} +1 -1
- package/dist/assets/{Loop-Zt6IG1hV.js → Loop-QQNwh5zr.js} +1 -1
- package/dist/assets/{MoreHoriz-bNNdGHUX.js → MoreHoriz-UJyFgSQT.js} +1 -1
- package/dist/assets/{MoreVert-6ctaEpVo.js → MoreVert-P_r5HcyN.js} +1 -1
- package/dist/assets/{OpenInNew-EUWBnmvC.js → OpenInNew-wkpRYQBR.js} +1 -1
- package/dist/assets/{Pagination-xbaiLUoY.js → Pagination-tkn_cWWJ.js} +1 -1
- package/dist/assets/{PlayArrow-GRR1UfvW.js → PlayArrow-aZsZH5W7.js} +1 -1
- package/dist/assets/{RadioGroup-Wf8W3ZUP.js → RadioGroup-R24vXL2w.js} +1 -1
- package/dist/assets/{Search-R2YWOork.js → Search-mY4_Gjp8.js} +1 -1
- package/dist/assets/{Select-3f4a0_GV.js → Select-JkWGcMNY.js} +1 -1
- package/dist/assets/{ServerLogo-UIQ8H-JM.js → ServerLogo-CSR6LLNC.js} +1 -1
- package/dist/assets/{Skeleton-vOZfRyQG.js → Skeleton-MQVf1zeC.js} +1 -1
- package/dist/assets/{Slider-rJ5ZiJRq.js → Slider-xU9YvSC8.js} +1 -1
- package/dist/assets/{Stepper-qv7dWtzH.js → Stepper-cogqYRt3.js} +1 -1
- package/dist/assets/{TableRow-OaqX6Tqj.js → TableRow-S0z2jg7V.js} +1 -1
- package/dist/assets/{TextField-Wyekhk78.js → TextField-u2bxSAc-.js} +1 -1
- package/dist/assets/{Toolbar-7x5-T7Ys.js → Toolbar-xxqBJj87.js} +1 -1
- package/dist/assets/{access-control-sZ_373TF.js → access-control-j2dUeB1u.js} +1 -1
- package/dist/assets/{actions-Xb93Fqn6.js → actions-9-iCZmM3.js} +1 -1
- package/dist/assets/{add-component-core-eUon1xcH.js → add-component-core-lt9WbiLS.js} +1 -1
- package/dist/assets/add-resource-gfheYdrT.js +1 -0
- package/dist/assets/{addon-pPfT_C02.js → addon-pRI3jYW5.js} +1 -1
- package/dist/assets/{analytics-KWdMaioI.js → analytics-VArfUMdd.js} +1 -1
- package/dist/assets/api-VkXAZ8rS.js +1 -0
- package/dist/assets/{audit-logs-3otkosgL.js → audit-logs-vT1fZvTJ.js} +1 -1
- package/dist/assets/{button-wjV61tJk.js → button-zcH1UQ55.js} +1 -1
- package/dist/assets/{click-to-copy-y405iYqU.js → click-to-copy-0Jqh0K6m.js} +1 -1
- package/dist/assets/{complete-Y3Mpshc0.js → complete-r-PNcyt4.js} +1 -1
- package/dist/assets/{component-CVdfilGm.js → component-eg_2HfkJ.js} +2 -2
- package/dist/assets/{config-bkMq9ILx.js → config-C1zi8xBj.js} +1 -1
- package/dist/assets/{config-R4otABVI.js → config-fVHVFSN5.js} +1 -1
- package/dist/assets/{config-navigation-Ks0oWlhw.js → config-navigation-a_Pt_vLl.js} +1 -1
- package/dist/assets/{confirm-DzkZ2U7D.js → confirm-OAB3XwCu.js} +1 -1
- package/dist/assets/{confirm-HILJ5sgy.js → confirm-U8trI8sh.js} +1 -1
- package/dist/assets/{connect-UoScJBiD.js → connect-E3xXeAei.js} +1 -1
- package/dist/assets/{connect-Sa-PoCtv.js → connect-rbx5T2GT.js} +1 -1
- package/dist/assets/{content-layout-joIdD4Ha.js → content-layout-rHIg8LgN.js} +1 -1
- package/dist/assets/{dashboard-ucoCpVVE.js → dashboard-fV0BczKQ.js} +3 -3
- package/dist/assets/{did-address-EvLV_neh.js → did-address-zj1cM-u2.js} +1 -1
- package/dist/assets/{did-utils-FrjNFot0.js → did-utils-w4Fz-kUW.js} +1 -1
- package/dist/assets/{domain-oCL0AeM1.js → domain-99KBslEj.js} +1 -1
- package/dist/assets/{domain-list-MNvXMsCJ.js → domain-list-SBd0FAim.js} +1 -1
- package/dist/assets/{exchange-passport-pvHiGWDx.js → exchange-passport-XMcIXLjZ.js} +1 -1
- package/dist/assets/{fallback-kaIBtHL1.js → fallback-liNYH2Ir.js} +1 -1
- package/dist/assets/{format-error-wykwIGB8.js → format-error-2W3A06Jw.js} +1 -1
- package/dist/assets/{fuel-gttwIDgu.js → fuel-__ms_dWJ.js} +1 -1
- package/dist/assets/{fullpage-w--_Qfi_.js → fullpage-ZETP85XU.js} +1 -1
- package/dist/assets/{home-UnAPx__h.js → home-p-h3Ka4K.js} +1 -1
- package/dist/assets/{iframe-8GzqFlQD.js → iframe-ntkUMxwt.js} +1 -1
- package/dist/assets/{index-eQh3htj_.js → index-4oRyCjgx.js} +1 -1
- package/dist/assets/{index-dU1B41UW.js → index-4p4tVyyG.js} +1 -1
- package/dist/assets/{index-rFu-FqJl.js → index-J75uP8vG.js} +1 -1
- package/dist/assets/{index-KxeBO9YH.js → index-KGC-suTM.js} +1 -1
- package/dist/assets/{index-lm42cyj2.js → index-MMjnoZvc.js} +3 -3
- package/dist/assets/{index-48XKs7i2.js → index-Mw5sjLFX.js} +1 -1
- package/dist/assets/{index-dn0GLbuV.js → index-OcPycBwK.js} +1 -1
- package/dist/assets/{index-JHXd03yp.js → index-PR8Yfwm9.js} +1 -1
- package/dist/assets/{index-YYJ36RNU.js → index-SfrVnmj3.js} +1 -1
- package/dist/assets/{index-kISfyqYd.js → index-UVz8nDjF.js} +1 -1
- package/dist/assets/{index-ZrS9Yszi.js → index-VlbXENi2.js} +1 -1
- package/dist/assets/{index-QMHlq_j4.js → index-WO73mi9B.js} +1 -1
- package/dist/assets/{index-S4CEecHq.js → index-WOHYN7r2.js} +1 -1
- package/dist/assets/{index-Z3z1VFLe.js → index-YIV3ZeKw.js} +1 -1
- package/dist/assets/{index-hND2553g.js → index-ZWk0ce0v.js} +1 -1
- package/dist/assets/{index-srroQufO.js → index-bkJmmZxf.js} +1 -1
- package/dist/assets/{index-ndCevgQH.js → index-cClf5DR3.js} +1 -1
- package/dist/assets/{index-YMezvWCK.js → index-dbP1WPUp.js} +1 -1
- package/dist/assets/{index-QN3Atre9.js → index-g4tgCwv9.js} +1 -1
- package/dist/assets/{index-MOrXpk1I.js → index-gOYo1anT.js} +1 -1
- package/dist/assets/{index-q1L4Rt-P.js → index-kGlwpUUE.js} +1 -1
- package/dist/assets/{index-RvzSkwb-.js → index-oIQOqerV.js} +3 -3
- package/dist/assets/{index-5-pH2qe3.js → index-sHseTlJL.js} +3 -3
- package/dist/assets/{index-XXKdpKDI.js → index-sPvdoX0V.js} +1 -1
- package/dist/assets/{index-7qwO_l2S.js → index-t_Z0q1g_.js} +1 -1
- package/dist/assets/{index--5-hHGMr.js → index-ureJxRiy.js} +1 -1
- package/dist/assets/{index-zB3__yN7.js → index-xy2NREuZ.js} +1 -1
- package/dist/assets/{index.es-9cWgKEEj.js → index.es-OlH7_usn.js} +1 -1
- package/dist/assets/{index.esm--ulFpkOr.js → index.esm-seyLxH9D.js} +1 -1
- package/dist/assets/{invite-Kiuc4f3g.js → invite-kMtkdup7.js} +1 -1
- package/dist/assets/{issue-passport-EvC83isD.js → issue-passport-TlmpXOGE.js} +1 -1
- package/dist/assets/{jss-plugin-props-sort.esm-6qLpgyYP.js → jss-plugin-props-sort.esm-U5ZnYCzJ.js} +1 -1
- package/dist/assets/{launch-result-message-G8Q-vMgj.js → launch-result-message-F8Ofxx_e.js} +1 -1
- package/dist/assets/{layout-Tv93dvg0.js → layout-BLaaNYtw.js} +1 -1
- package/dist/assets/{list-header-pWcDGww3.js → list-header-c_UCYd3h.js} +1 -1
- package/dist/assets/localization-RolchIpb.js +1 -0
- package/dist/assets/{log-DmAVug2U.js → log-4G78yJLN.js} +1 -1
- package/dist/assets/{login-mPK0ECCS.js → login-ihXqRdGT.js} +1 -1
- package/dist/assets/{logo-uploader--gyIl65f.js → logo-uploader-ka1rqsHQ.js} +3 -3
- package/dist/assets/{lost-passport-qglsNof1.js → lost-passport-aeYrHQyC.js} +3 -3
- package/dist/assets/{lottie-Ntb0WgKL.js → lottie-sh4s0pNq.js} +1 -1
- package/dist/assets/{memoize-one.esm-_hBYdtBF.js → memoize-one.esm-W-dn2p84.js} +1 -1
- package/dist/assets/{nav-menu-n-gHiZNN.js → nav-menu-q73bLcEq.js} +1 -1
- package/dist/assets/{notifications-ri_xK-DG.js → notifications-pZ9MHdfQ.js} +1 -1
- package/dist/assets/{overview-FS6q2bNX.js → overview-VaivnzQ7.js} +1 -1
- package/dist/assets/{page-header-k9pxrTyz.js → page-header-3dDUdORn.js} +1 -1
- package/dist/assets/{permission-nZTsZ0WS.js → permission-ZvEWJSxV.js} +1 -1
- package/dist/assets/preferences-O017YSkE.js +1 -0
- package/dist/assets/publish-resource-9olgaUUj.js +1 -0
- package/dist/assets/{react-P6LpeM6F.js → react-9u2r2plx.js} +3 -3
- package/dist/assets/{selector-U2IzDfpl.js → selector-aWeTH_Xy.js} +1 -1
- package/dist/assets/session-ieY35lEq.js +1 -0
- package/dist/assets/{setup-LJiMgRrA.js → setup-E-WnVF3c.js} +3 -3
- package/dist/assets/{slicedToArray-rvrRoJWm.js → slicedToArray-WD452XR4.js} +1 -1
- package/dist/assets/{spaces-Zfss07Dw.js → spaces-zU6EswmD.js} +1 -1
- package/dist/assets/{start-yx6hJR0G.js → start-OS7_x_to.js} +1 -1
- package/dist/assets/{step-actions-s65Gu0Gm.js → step-actions-aej3hvRe.js} +1 -1
- package/dist/assets/{studio-fPjrPx_W.js → studio-cTSL4ry_.js} +1 -1
- package/dist/assets/{switch-control-Ibk2Hq71.js → switch-control-AxKlF0qa.js} +1 -1
- package/dist/assets/{transfer-5j4o71oH.js → transfer-nZJ3uNpL.js} +1 -1
- package/dist/assets/{uniqBy-E9ysHx3q.js → uniqBy-MB2OLxCc.js} +1 -1
- package/dist/assets/{unsubscribe-UDtvo2es.js → unsubscribe-kdT3WbRL.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-ufLIGKTr.js → use-blocklet-info-for-connect-did-spaces-Zu5fLwEo.js} +1 -1
- package/dist/assets/{useAsync-c4_liX2s.js → useAsync-4TdvRTWi.js} +1 -1
- package/dist/assets/{useFormControl-74pXAYtI.js → useFormControl-Qd1sZJH7.js} +1 -1
- package/dist/assets/{useLocalStorage-DpKr2KRx.js → useLocalStorage-HSuIS8dC.js} +1 -1
- package/dist/assets/{useSetState-y2knwpSH.js → useSetState-MgFJAi6n.js} +1 -1
- package/dist/assets/{user-eRvHZyFC.js → user-IWQIFpC6.js} +1 -1
- package/dist/assets/{util-ERLM63JX.js → util-lFswG4bk.js} +1 -1
- package/dist/assets/{wallet-hidden-topbar-NDSHw08q.js → wallet-hidden-topbar-QxBPCxK0.js} +3 -3
- package/dist/assets/{wrap-locale-wQfZepjD.js → wrap-locale-muuCseT-.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +18 -18
- package/dist/assets/add-resource-F5pGDC5G.js +0 -1
- package/dist/assets/api-bPHHyjfQ.js +0 -1
- package/dist/assets/localization-PhFvv0Bs.js +0 -1
- package/dist/assets/preferences-aHNijIaU.js +0 -1
- package/dist/assets/publish-resource-9a-xQ2Bs.js +0 -1
- package/dist/assets/session-FvRnItWJ.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as d,aN as w,aM as U,aO as x,aS as s,aQ as _,aR as T,j as i,aU as z,aV as W,al as F,dl as O,aP as B}from"./index-
|
|
1
|
+
import{r as d,aN as w,aM as U,aO as x,aS as s,aQ as _,aR as T,j as i,aU as z,aV as W,al as F,dl as O,aP as B}from"./index-MMjnoZvc.js";const Q=d.createContext({}),k=Q,q=d.createContext({}),D=q;function G(e){return w("MuiStep",e)}U("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const J=["active","children","className","component","completed","disabled","expanded","index","last"],K=e=>{const{classes:t,orientation:o,alternativeLabel:n,completed:a}=e;return W({root:["root",o,n&&"alternativeLabel",a&&"completed"]},G,t)},X=x("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})(({ownerState:e})=>s({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),Y=d.forwardRef(function(t,o){const n=_({props:t,name:"MuiStep"}),{active:a,children:l,className:v,component:c="div",completed:p,disabled:b,expanded:u=!1,index:r,last:m}=n,M=T(n,J),{activeStep:h,connector:C,alternativeLabel:y,orientation:R,nonLinear:$}=d.useContext(k);let[S=!1,I=!1,L=!1]=[a,p,b];h===r?S=a!==void 0?a:!0:!$&&h>r?I=p!==void 0?p:!0:!$&&h<r&&(L=b!==void 0?b:!0);const N=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}),j=K(f),P=i.jsxs(X,s({as:c,className:z(j.root,v),ref:o,ownerState:f},M,{children:[C&&y&&r!==0?C:null,l]}));return i.jsx(D.Provider,{value:N,children:C&&!y&&r!==0?i.jsxs(d.Fragment,{children:[C,P]}):P})}),Pe=Y,Z=F(i.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),ee=F(i.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function te(e){return w("MuiStepIcon",e)}const oe=U("MuiStepIcon",["root","active","completed","error","text"]),A=oe;var E;const ne=["active","className","completed","error","icon"],ae=e=>{const{classes:t,active:o,completed:n,error:a}=e;return W({root:["root",o&&"active",n&&"completed",a&&"error"],text:["text"]},te,t)},V=x(O,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${A.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${A.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${A.error}`]:{color:(e.vars||e).palette.error.main}})),re=x("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),se=d.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepIcon"}),{active:a=!1,className:l,completed:v=!1,error:c=!1,icon:p}=n,b=T(n,ne),u=s({},n,{active:a,completed:v,error:c}),r=ae(u);if(typeof p=="number"||typeof p=="string"){const m=z(l,r.root);return c?i.jsx(V,s({as:ee,className:m,ref:o,ownerState:u},b)):v?i.jsx(V,s({as:Z,className:m,ref:o,ownerState:u},b)):i.jsxs(V,s({className:m,ref:o,ownerState:u},b,{children:[E||(E=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"]),g=ce,pe=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],de=e=>{const{classes:t,orientation:o,active:n,completed:a,error:l,disabled:v,alternativeLabel:c}=e;return W({root:["root",o,l&&"error",v&&"disabled",c&&"alternativeLabel"],label:["label",n&&"active",a&&"completed",l&&"error",v&&"disabled",c&&"alternativeLabel"],iconContainer:["iconContainer",n&&"active",a&&"completed",l&&"error",v&&"disabled",c&&"alternativeLabel"],labelContainer:["labelContainer",c&&"alternativeLabel"]},ie,t)},ve=x("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation]]}})(({ownerState:e})=>s({display:"flex",alignItems:"center",[`&.${g.alternativeLabel}`]:{flexDirection:"column"},[`&.${g.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),ue=x("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>s({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${g.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${g.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${g.alternativeLabel}`]:{marginTop:16},[`&.${g.error}`]:{color:(e.vars||e).palette.error.main}})),be=x("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${g.alternativeLabel}`]:{paddingRight:0}})),me=x("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${g.alternativeLabel}`]:{textAlign:"center"}})),H=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,h=T(a,pe),{alternativeLabel:C,orientation:y}=d.useContext(k),{active:R,disabled:$,completed:S,icon:I}=d.useContext(D),L=b||I;let N=m;L&&!N&&(N=le);const f=s({},a,{active:R,alternativeLabel:C,completed:S,disabled:$,error:p,orientation:y}),j=de(f),P=(n=r.label)!=null?n:c.label;return i.jsxs(ve,s({className:z(j.root,v),ref:o,ownerState:f},h,{children:[L||N?i.jsx(be,{className:j.iconContainer,ownerState:f,children:i.jsx(N,s({completed:S,active:R,error:p,icon:L},M))}):null,i.jsxs(me,{className:j.labelContainer,ownerState:f,children:[l?i.jsx(ue,s({ownerState:f},P,{className:z(j.label,P==null?void 0:P.className),children:l})):null,u]})]}))});H.muiName="StepLabel";const ze=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 W(c,Se,t)},Le=x("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})(({ownerState:e})=>s({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),fe=x("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.line,t[`line${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})}),ge=d.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepConnector"}),{className:a}=n,l=T(n,xe),{alternativeLabel:v,orientation:c="horizontal"}=d.useContext(k),{active:p,disabled:b,completed:u}=d.useContext(D),r=s({},n,{alternativeLabel:v,orientation:c,active:p,completed:u,disabled:b}),m=Ce(r);return i.jsx(Le,s({className:z(m.root,a),ref:o,ownerState:r},l,{children:i.jsx(fe,{className:m.line,ownerState:r})}))}),he=ge;function ye(e){return w("MuiStepper",e)}U("MuiStepper",["root","horizontal","vertical","alternativeLabel"]);const $e=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],Me=e=>{const{orientation:t,alternativeLabel:o,classes:n}=e;return W({root:["root",t,o&&"alternativeLabel"]},ye,n)},Re=x("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel]}})(({ownerState:e})=>s({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),Ie=i.jsx(he,{}),Ne=d.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepper"}),{activeStep:a=0,alternativeLabel:l=!1,children:v,className:c,component:p="div",connector:b=Ie,nonLinear:u=!1,orientation:r="horizontal"}=n,m=T(n,$e),M=s({},n,{alternativeLabel:l,orientation:r,component:p}),h=Me(M),C=d.Children.toArray(v).filter(Boolean),y=C.map(($,S)=>d.cloneElement($,s({index:S,last:S+1===C.length},$.props))),R=d.useMemo(()=>({activeStep:a,alternativeLabel:l,connector:b,nonLinear:u,orientation:r}),[a,l,b,u,r]);return i.jsx(k.Provider,{value:R,children:i.jsx(Re,s({as:p,ownerState:M,className:z(h.root,c),ref:o},m,{children:y}))})}),we=Ne;export{we as S,Pe as a,ze as b};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as c,aN as m,aM as $,aO as R,aS as i,aQ as h,aR as k,j as y,aU as M,aV as w,aP as u,cM as S,bT as T,cL as W}from"./index-
|
|
1
|
+
import{r as c,aN as m,aM as $,aO as R,aS as i,aQ as h,aR as k,j as y,aU as M,aV as w,aP as u,cM as S,bT as T,cL as W}from"./index-MMjnoZvc.js";const E=c.createContext(),D=E;function I(e){return m("MuiTable",e)}const J=$("MuiTable",["root","stickyHeader"]),Ce=J,Q=["className","component","padding","size","stickyHeader"],V=e=>{const{classes:a,stickyHeader:o}=e;return w({root:["root",o&&"stickyHeader"]},I,a)},q=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"})),P="table",F=c.forwardRef(function(a,o){const t=h({props:a,name:"MuiTable"}),{className:n,component:s=P,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=V(p),H=c.useMemo(()=>({padding:l,size:r,stickyHeader:d}),[l,r,d]);return y.jsx(D.Provider,{value:H,children:y.jsx(q,i({as:s,role:s===P?null:"table",ref:o,className:M(v.root,n),ownerState:p},b))})}),fe=F,G=c.createContext(),z=G;function K(e){return m("MuiTableBody",e)}const X=$("MuiTableBody",["root"]),xe=X,Y=["className","component"],Z=e=>{const{classes:a}=e;return w({root:["root"]},K,a)},ee=R("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,a)=>a.root})({display:"table-row-group"}),ae={variant:"body"},A="tbody",oe=c.forwardRef(function(a,o){const t=h({props:a,name:"MuiTableBody"}),{className:n,component:s=A}=t,l=k(t,Y),r=i({},t,{component:s}),d=Z(r);return y.jsx(z.Provider,{value:ae,children:y.jsx(ee,i({className:M(d.root,n),as:s,ref:o,role:s===A?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 w(r,te,a)},ie=R("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,a)=>{const{ownerState:o}=e;return[a.root,a[o.variant],a[`size${u(o.size)}`],o.padding!=="normal"&&a[`padding${u(o.padding)}`],o.align!=="inherit"&&a[`align${u(o.align)}`],o.stickyHeader&&a.stickyHeader]}})(({theme:e,ownerState:a})=>i({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
2
2
|
${e.palette.mode==="light"?S(T(e.palette.divider,1),.88):W(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),f=c.useContext(z),N=f&&f.variant==="head";let C;l?C=l:C=N?"th":"td";let x=d;C==="td"?x=void 0:!x&&N&&(x="col");const j=v||f&&f.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}),L=re(B);let U=null;return p&&(U=p==="asc"?"ascending":"descending"),y.jsx(ie,i({as:C,ref:o,className:M(L.root,s),"aria-sort":U,scope:x,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 w({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(z),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:M(v.root,n),role:s===_?null:"row",ownerState:p},d))}),$e=ye;export{fe as T,Te as a,$e as b,me as c,K as d,xe as e,te as f,I as g,le as h,z as i,de as j,O as k,Ce as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aN as w,aM as q,aO as S,aP as N,aS as a,r as L,aQ as U,aR as _,j as i,aU as O,aV as B,dz as re}from"./index-
|
|
1
|
+
import{aN as w,aM as q,aO as S,aP as N,aS as a,r as L,aQ as U,aR as _,j as i,aU as O,aV as B,dz as re}from"./index-MMjnoZvc.js";import{F as ae}from"./FormControl-FuFP_-xW.js";import{I as le}from"./InputLabel-sJuMXXTU.js";import{S as ie,I as ne,F as de,O as ce}from"./Select-JkWGcMNY.js";import{u as ue,f as pe}from"./useFormControl-Qd1sZJH7.js";function me(e){return w("MuiFormHelperText",e)}const fe=q("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),M=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${N(r)}`,t&&"contained",p&&"focused",c&&"filled",u&&"required"]};return B(s,me,o)},Te=S("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.size&&o[`size${N(t.size)}`],t.contained&&o.contained,t.filled&&o.filled]}})(({theme:e,ownerState:o})=>a({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${M.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${M.error}`]:{color:(e.vars||e).palette.error.main}},o.size==="small"&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})),be=L.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:O(F.root,d),ref:t},p,{children:n===" "?j||(j=i.jsx("span",{className:"notranslate",children:""})):n}))}),ve=be;function he(e){return w("MuiTextField",e)}const Ce=q("MuiTextField",["root"]),we=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"],Re={standard:ne,filled:de,outlined:ce},Ie=e=>{const{classes:o}=e;return B({root:["root"]},he,o)},ye=S(ae,{name:"MuiTextField",slot:"Root",overridesResolver:(e,o)=>o.root})({}),ze=L.forwardRef(function(o,t){const r=U({props:o,name:"MuiTextField"}),{autoComplete:n,autoFocus:d=!1,children:c,className:p,color:u="primary",defaultValue:s,disabled:m=!1,error:F=!1,FormHelperTextProps:E,fullWidth:v=!1,helperText:h,id:V,InputLabelProps:T,inputProps:W,InputProps:k,inputRef:A,label:f,maxRows:Q,minRows:D,multiline:I=!1,name:G,onBlur:J,onChange:K,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:I,required:y,select:C,variant:b}),se=Ie(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(V),R=h&&l?`${l}-helper-text`:void 0,P=f&&l?`${l}-label`:void 0,te=Re[b],$=i.jsx(te,a({"aria-describedby":R,autoComplete:n,autoFocus:d,defaultValue:s,fullWidth:v,multiline:I,name:G,rows:Z,maxRows:Q,minRows:D,type:ee,value:z,id:l,inputRef:A,onBlur:J,onChange:K,onFocus:X,placeholder:Y,inputProps:W},x,k));return i.jsxs(ye,a({className:O(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":R,id:l,labelId:P,value:z,input:$},g,{children:c})):$,h&&i.jsx(ve,a({id:R},E,{children:h}))]}))}),qe=ze;export{ve as F,qe as T,me as a,M as f,he as g,we as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aN as d,aM as g,aO as b,aS as e,r as m,aQ as v,aR as T,j as x,aU as f,aV as R}from"./index-
|
|
1
|
+
import{aN as d,aM as g,aO as b,aS as e,r as m,aQ as v,aR as T,j as x,aU as f,aV as R}from"./index-MMjnoZvc.js";function C(s){return d("MuiToolbar",s)}const G=g("MuiToolbar",["root","gutters","regular","dense"]),L=G,M=["className","component","disableGutters","variant"],U=s=>{const{classes:a,disableGutters:t,variant:o}=s;return R({root:["root",!t&&"gutters",o]},C,a)},j=b("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(s,a)=>{const{ownerState:t}=s;return[a.root,!t.disableGutters&&a.gutters,a[t.variant]]}})(({theme:s,ownerState:a})=>e({position:"relative",display:"flex",alignItems:"center"},!a.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}},a.variant==="dense"&&{minHeight:48}),({theme:s,ownerState:a})=>a.variant==="regular"&&s.mixins.toolbar),y=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,M),i=e({},o,{component:n,disableGutters:l,variant:c}),p=U(i);return x.jsx(j,e({as:n,className:f(p.root,r),ref:t,ownerState:i},u))}),_=y;export{_ as T,C as g,L as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as c,u as g,j as e,a as L,aK as B,P as b,bz as R,a8 as I,cP as N,B as _,w as f,n as h,G as z,bi as E}from"./index-
|
|
1
|
+
import{r as c,u as g,j as e,a as L,aK as B,P as b,bz as R,a8 as I,cP as N,B as _,w as f,n as h,G as z,bi as E}from"./index-MMjnoZvc.js";import{P as F}from"./page-header-3dDUdORn.js";import{A as W}from"./config-fVHVFSN5.js";import{S as H}from"./layout-BLaaNYtw.js";import{S as G}from"./step-actions-aej3hvRe.js";import{S as O}from"./button-zcH1UQ55.js";import{d as $}from"./InfoOutlined-BSQNe7N0.js";import{F as q}from"./FormControl-FuFP_-xW.js";import{R as K,a as V}from"./RadioGroup-R24vXL2w.js";import{F as x}from"./FormControlLabel-efXmMNAj.js";import{C as D}from"./Checkbox-FAvvPRMi.js";import"./content-layout-rHIg8LgN.js";import"./useFormControl-Qd1sZJH7.js";import"./FormGroup-62MBopyd.js";function j({children:s}){const{t:i}=g();return e.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[s,e.jsx(L,{title:i("blocklet.config.access.publicInstanceTip"),children:e.jsx(B,{children:e.jsx($,{fontSize:"small"})})})]})}j.propTypes={children:b.any.isRequired};const J=c.memo(j);function y({onNext:s}){const i=R(),{t:r,locale:m}=g(),[a,o]=c.useState(!1),[p,d]=c.useState(""),[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 E(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:i.palette.text.secondary};return e.jsxs(M,{children:[e.jsx("div",{className:"header",children:e.jsx(F,{title:r("blocklet.config.access.description")})}),e.jsx(q,{component:"fieldset",children:e.jsx(K,{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(V,{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(J,{children:e.jsx(x,{style:{marginRight:0},value:t.value,control:e.jsx(D,{size:"small"}),label:e.jsx("span",{children:r("blocklet.config.access.publicToStore")}),onChange:T,checked:C,disabled:a})})]})]},t.value))})}),e.jsx(G,{mt:8,disabled:a,blocklet:n,onStartNow:()=>s("complete"),children:e.jsx(O,{loading:a,variant:"contained",disabled:a,onClick:()=>s(),children:r("setup.continue")})})]})}y.propTypes={onNext:b.func};y.defaultProps={onNext:()=>{}};const M=z(H)`
|
|
2
2
|
height: 100%;
|
|
3
3
|
overflow-y: auto;
|
|
4
4
|
.header {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,j as e,aK as g,bd as E,bf as b,P as i,G as k}from"./index-
|
|
1
|
+
import{r,j as e,aK as g,bd as E,bf as b,P as i,G as k}from"./index-MMjnoZvc.js";import{d as C}from"./MoreHoriz-UJyFgSQT.js";import{L as I,a as v}from"./confirm-U8trI8sh.js";function c({actions:l,size:p,...u}){const[n,o]=r.useState(null),m=!!n,d=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}o(t.currentTarget)},a=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}o(null)};return e.jsxs(T,{...u,children:[e.jsx(g,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"actions-menu-icon",onClick:d,size:p,children:e.jsx(C,{})}),e.jsx(E,{id:"actions-menu","data-cy":"actions-menu",anchorEl:n,keepMounted:!0,open:m,onClose:a,PaperProps:{},children:l.map((t,s)=>{if(typeof t=="function")return t({close:a});const{icon:f,text:y,onClick:h,disabled:x=!1,...j}=t;return r.createElement(b,{...j,disabled:x,dense:!0,onClick:async P=>{await h(P),a()},key:s,"data-cy":`actions-menu-${s}`},e.jsx(I,{style:{minWidth:24,marginRight:8},children:f}),e.jsx(v,{primary:y}))})})]})}c.propTypes={actions:i.array,size:i.oneOf(["small","medium","large"])};c.defaultProps={actions:[],size:"small"};const T=k.div``;export{c as A};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aN as Lo,aM as Uo,aO as zo,r as h,aQ as qo,aR as Mr,aS as Pe,j as l,aU as Ko,aV as Ho,dS as Wo,dT as Jo,dU as fi,bK as Qe,aq as di,dV as Qo,dW as Xo,f as f0,dX as Zo,dY as d0,bM as x0,dZ as Yo,aP as lr,dF as Qn,K as Le,M as Ue,b4 as Xt,d_ as Xn,c6 as es,bQ as ts,P as d,c2 as te,u as re,bA as rs,cj as Zn,F as ie,a9 as Ce,cv as xi,Y as St,ce as Et,c as je,x as V0,d$ as ns,e0 as as,n as ve,S as fe,am as Zt,G as le,bO as be,w as it,e as is,e1 as os,T as K,bl as ss,e2 as hi,bz as Yt,aK as _r,b9 as mt,e3 as ki,bf as yi,e4 as ls,e5 as cs,as as Yn,a6 as us,Z as ms,N as ps,e6 as fs,b as bi,c0 as ds,bP as xs,cd as hs,B as $,bG as gi,U as M0,dd as Sr,dl as ks,bC as ys,e7 as bs,a7 as gs,bD as vs,bt as vi,c8 as Ss,v as Es,e8 as As,e9 as ws,a4 as Ds,A as Bs,ea as Gs,H as js,eb as Si,ec as Ps,cw as Vs,ab as At,cx as Ei,aa as Os,ac as ea,$ as $e,C as Cs,bJ as Fs,ed as Ts,ee as Is,ef as Rs,eg as Ms,ct as _s,eh as Ns,ei as cr,ej as ta}from"./index-lm42cyj2.js";import{u as Ai}from"./uniqBy-E9ysHx3q.js";import{P as wi}from"./page-header-k9pxrTyz.js";import{S as $s,u as Ls,L as Us}from"./index-YYJ36RNU.js";import{A as _0}from"./index-hND2553g.js";import{l as zs}from"./lottie-Ntb0WgKL.js";import{L as ra}from"./launch-result-message-G8Q-vMgj.js";import{S as qs}from"./index-kISfyqYd.js";import{R as ur}from"./logo-uploader--gyIl65f.js";import{a as na}from"./api-bPHHyjfQ.js";import{f as Ks,j as Hs,a as Ws,c as Js,d as Qs,b as Xs,e as Zs,g as Ys,h as e1}from"./jss-plugin-props-sort.esm-6qLpgyYP.js";import{u as t1,L as r1,a as n1,C as a1}from"./confirm-HILJ5sgy.js";import{L as Di,a as i1}from"./ListItem-mXlOmPfw.js";import{v as o1}from"./util-ERLM63JX.js";import{s as Bi,h as s1,w as l1,f as c1,a as u1,b as m1,c as p1,S as f1,d as d1}from"./index-QMHlq_j4.js";import{T as x1,a as h1,b as k1,c as aa}from"./TableRow-OaqX6Tqj.js";import{I as ia}from"./index-S4CEecHq.js";import{u as y1}from"./session-FvRnItWJ.js";import{W as Gi}from"./did-address-EvLV_neh.js";import{T as pt}from"./TextField-Wyekhk78.js";import{S as b1,a as g1,b as v1}from"./Stepper-qv7dWtzH.js";import{D as Nr}from"./DialogContentText-Vu-BdXEX.js";import{f as ze}from"./format-error-wykwIGB8.js";import{d as S1}from"./ArrowDropDown-BVRz1Dl4.js";import{_ as E1}from"./useLocalStorage-DpKr2KRx.js";import{d as A1}from"./Add-bt6SVv9G.js";import{d as w1}from"./Launch-_TuIFwCs.js";import{d as ji}from"./DeleteOutline-GkpxzkXa.js";import{C as D1}from"./click-to-copy-y405iYqU.js";import{A as B1}from"./Alert-fzSO0kDd.js";import{E as $r}from"./fallback-kaIBtHL1.js";import{d as G1}from"./Search-R2YWOork.js";import{G as Pi}from"./Grid-zyeSJ3wZ.js";import{O as j1}from"./Select-3f4a0_GV.js";import{H as oa}from"./Hidden-GHQEcd1H.js";import{M as sa}from"./InputAdornment-xLAUWmxY.js";import{y as P1,g as V1,q as O1}from"./preact.module-yJdvQMHZ.js";import{C as C1}from"./content-layout-joIdD4Ha.js";import{P as F1,u as T1}from"./use-blocklet-info-for-connect-did-spaces-ufLIGKTr.js";import{h as I1,g as R1,a as M1,b as _1,d as N1,e as la,i as ca,f as $1}from"./spaces-Zfss07Dw.js";import{S as ua}from"./index-QN3Atre9.js";function L1(e){return Lo("MuiTableContainer",e)}Uo("MuiTableContainer",["root"]);const U1=["className","component"],z1=e=>{const{classes:t}=e;return Ho({root:["root"]},L1,t)},q1=zo("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),K1=h.forwardRef(function(t,r){const n=qo({props:t,name:"MuiTableContainer"}),{className:a,component:i="div"}=n,o=Mr(n,U1),s=Pe({},n,{component:i}),c=z1(s);return l.jsx(q1,Pe({ref:r,as:i,className:Ko(c.root,a),ownerState:s},o))}),H1=K1;function W1(e,t,r){r===void 0&&(r={});var n=Wo(t);Jo(function(){var a=fi(r.target,window);if(a!=null&&a.addEventListener){var i=function(o){return n.current(o)};return a.addEventListener(e,i,{capture:r.capture,once:r.once,passive:r.passive}),function(){a.removeEventListener(e,i,{capture:r.capture})}}},[e,r.capture,r.once,r.passive],r.target)}var J1=function(e){return e===document||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},Q1=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},X1=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},Z1=function(e,t){t===void 0&&(t={});var r=t.target,n=t.isNoMore,a=t.threshold,i=a===void 0?100:a,o=t.reloadDeps,s=o===void 0?[]:o,c=t.manual,u=t.onBefore,p=t.onSuccess,m=t.onError,f=t.onFinally,y=Qe(h.useState(),2),k=y[0],x=y[1],b=Qe(h.useState(!1),2),v=b[0],g=b[1],S=h.useMemo(function(){return n?n(k):!1},[k]),w=di(function(R){return Qo(void 0,void 0,void 0,function(){var J,M,U;return Xo(this,function(D){switch(D.label){case 0:return[4,e(R)];case 1:return J=D.sent(),x(R?x0(x0({},J),{list:d0(d0([],Qe((U=R.list)!==null&&U!==void 0?U:[]),!1),Qe(J.list),!1)}):x0(x0({},J),{list:d0([],Qe((M=J.list)!==null&&M!==void 0?M:[]),!1)})),[2,J]}})})},{manual:c,onFinally:function(R,J,M){g(!1),f==null||f(J,M)},onBefore:function(){return u==null?void 0:u()},onSuccess:function(R){setTimeout(function(){L()}),p==null||p(R)},onError:function(R){return m==null?void 0:m(R)}}),E=w.loading,O=w.run,T=w.runAsync,G=w.cancel,A=f0(function(){S||(g(!0),O(k))}),B=f0(function(){return S?Promise.reject():(g(!0),T(k))}),P=function(){return g(!1),O()},j=function(){return g(!1),T()},L=function(){var R=fi(r);if(R){R=R===document?document.documentElement:R;var J=J1(R),M=Q1(R),U=X1(R);M-J<=U+i&&A()}};return W1("scroll",function(){E||v||L()},{target:r}),Zo(function(){O()},d0([],Qe(s),!1)),{data:k,loading:!v&&E,loadingMore:v,noMore:S,loadMore:A,loadMoreAsync:B,reload:f0(P),reloadAsync:f0(j),mutate:x,cancel:G}};const Y1=Z1,el=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function tl(e={}){const{disableGlobal:t=!1,productionPrefix:r="jss",seed:n=""}=e,a=n===""?"":`${n}-`;let i=0;const o=()=>(i+=1,i);return(s,c)=>{const u=c.options.name;if(u&&u.indexOf("Mui")===0&&!c.options.link&&!t){if(el.indexOf(s.key)!==-1)return`Mui-${s.key}`;const p=`${a}${u}-${s.key}`;return!c.options.theme[Yo]||n!==""?p:`${p}-${o()}`}return`${a}${r}${o()}`}}function rl(){return{plugins:[Ks(),Hs(),Ws(),Js(),Qs(),typeof window>"u"?null:Xs(),Zs()]}}function Vi(e={}){const{baseClasses:t,newClasses:r,Component:n}=e;if(!r)return t;const a=Pe({},t);return Object.keys(r).forEach(i=>{r[i]&&(a[i]=`${t[i]} ${r[i]}`)}),a}const nl={set:(e,t,r,n)=>{let a=e.get(t);a||(a=new Map,e.set(t,a)),a.set(r,n)},get:(e,t,r)=>{const n=e.get(t);return n?n.get(r):void 0},delete:(e,t,r)=>{e.get(t).delete(r)}},tt=nl,al=Ys(rl()),il=tl(),ol=new Map,sl={disableGeneration:!1,generateClassName:il,jss:al,sheetsCache:null,sheetsManager:ol,sheetsRegistry:null},ll=h.createContext(sl);let ma=-1e9;function cl(){return ma+=1,ma}const ul=["variant"];function pa(e){return e.length===0}function ml(e){const{variant:t}=e,r=Mr(e,ul);let n=t||"";return Object.keys(r).sort().forEach(a=>{a==="color"?n+=pa(n)?e[a]:lr(e[a]):n+=`${pa(n)?a:lr(a)}${lr(e[a].toString())}`}),n}const pl={},fl=pl;function dl(e){const t=typeof e=="function";return{create:(r,n)=>{let a;try{a=t?e(r):e}catch(c){throw c}if(!n||!r.components||!r.components[n]||!r.components[n].styleOverrides&&!r.components[n].variants)return a;const i=r.components[n].styleOverrides||{},o=r.components[n].variants||[],s=Pe({},a);return Object.keys(i).forEach(c=>{s[c]=Qn(s[c]||{},i[c])}),o.forEach(c=>{const u=ml(c.props);s[u]=Qn(s[u]||{},c.style)}),s},options:{}}}const xl=["name","classNamePrefix","Component","defaultTheme"];function hl({state:e,stylesOptions:t},r,n){if(t.disableGeneration)return r||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let a=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,a=!0),r!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=r,a=!0),a&&(e.cacheClasses.value=Vi({baseClasses:e.cacheClasses.lastJSS,newClasses:r,Component:n})),e.cacheClasses.value}function kl({state:e,theme:t,stylesOptions:r,stylesCreator:n,name:a},i){if(r.disableGeneration)return;let o=tt.get(r.sheetsManager,n,t);o||(o={refs:0,staticSheet:null,dynamicStyles:null},tt.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 c=r.sheetsRegistry;if(o.refs===0){let u;r.sheetsCache&&(u=tt.get(r.sheetsCache,n,t));const p=n.create(t,a);u||(u=r.jss.createStyleSheet(p,Pe({link:!1},s)),u.attach(),r.sheetsCache&&tt.set(r.sheetsCache,n,t,u)),c&&c.add(u),o.staticSheet=u,o.dynamicStyles=e1(p)}if(o.dynamicStyles){const u=r.jss.createStyleSheet(o.dynamicStyles,Pe({link:!0},s));u.update(i),u.attach(),e.dynamicSheet=u,e.classes=Vi({baseClasses:o.staticSheet.classes,newClasses:u.classes}),c&&c.add(u)}else e.classes=o.staticSheet.classes;o.refs+=1}function yl({state:e},t){e.dynamicSheet&&e.dynamicSheet.update(t)}function bl({state:e,theme:t,stylesOptions:r,stylesCreator:n}){if(r.disableGeneration)return;const a=tt.get(r.sheetsManager,n,t);a.refs-=1;const i=r.sheetsRegistry;a.refs===0&&(tt.delete(r.sheetsManager,n,t),r.jss.removeStyleSheet(a.staticSheet),i&&i.remove(a.staticSheet)),e.dynamicSheet&&(r.jss.removeStyleSheet(e.dynamicSheet),i&&i.remove(e.dynamicSheet))}function gl(e,t){const r=h.useRef([]);let n;const a=h.useMemo(()=>({}),t);r.current!==a&&(r.current=a,n=e()),h.useEffect(()=>()=>{n&&n()},[a])}function Lr(e,t={}){const{name:r,classNamePrefix:n,Component:a,defaultTheme:i=fl}=t,o=Mr(t,xl),s=dl(e),c=r||n||"makeStyles";return s.options={index:cl(),name:r,meta:c,classNamePrefix:c},(p={})=>{const m=t1()||i,f=Pe({},h.useContext(ll),o),y=h.useRef(),k=h.useRef();return gl(()=>{const b={name:r,state:{},stylesCreator:s,stylesOptions:f,theme:m};return kl(b,p),k.current=!1,y.current=b,()=>{bl(b)}},[m,s]),h.useEffect(()=>{k.current&&yl(y.current,p),k.current=!0}),hl(y.current,p.classes,a)}}const hh="blocklet-add-component-registry",kh="server-add-registry",yh=e=>`resource-${e}-add-registry`;var Ur={},vl=Ue;Object.defineProperty(Ur,"__esModule",{value:!0});var Oi=Ur.default=void 0,Sl=vl(Le()),El=l,Al=(0,Sl.default)((0,El.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.1zM8 13h8v-2H8v2zm9-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-5z"}),"Link");Oi=Ur.default=Al;var wl=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,a,i;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(a=n;a--!==0;)if(!e(t[a],r[a]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(a of t.entries())if(!r.has(a[0]))return!1;for(a of t.entries())if(!e(a[1],r.get(a[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(a of t.entries())if(!r.has(a[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if(n=t.length,n!=r.length)return!1;for(a=n;a--!==0;)if(t[a]!==r[a])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(r).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[a]))return!1;for(a=n;a--!==0;){var o=i[a];if(!(o==="_owner"&&t.$$typeof)&&!e(t[o],r[o]))return!1}return!0}return t!==t&&r!==r};const fa=Xt(wl);var Dl=Bl;function ot(e){return e instanceof Xn?Xn.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function Bl(e){if(e=e||{},e.circles)return Gl(e);return e.proto?n:r;function t(a,i){for(var o=Object.keys(a),s=new Array(o.length),c=0;c<o.length;c++){var u=o[c],p=a[u];typeof p!="object"||p===null?s[u]=p:p instanceof Date?s[u]=new Date(p):ArrayBuffer.isView(p)?s[u]=ot(p):s[u]=i(p)}return s}function r(a){if(typeof a!="object"||a===null)return a;if(a instanceof Date)return new Date(a);if(Array.isArray(a))return t(a,r);if(a instanceof Map)return new Map(t(Array.from(a),r));if(a instanceof Set)return new Set(t(Array.from(a),r));var i={};for(var o in a)if(Object.hasOwnProperty.call(a,o)!==!1){var s=a[o];typeof s!="object"||s===null?i[o]=s:s instanceof Date?i[o]=new Date(s):s instanceof Map?i[o]=new Map(t(Array.from(s),r)):s instanceof Set?i[o]=new Set(t(Array.from(s),r)):ArrayBuffer.isView(s)?i[o]=ot(s):i[o]=r(s)}return i}function n(a){if(typeof a!="object"||a===null)return a;if(a instanceof Date)return new Date(a);if(Array.isArray(a))return t(a,n);if(a instanceof Map)return new Map(t(Array.from(a),n));if(a instanceof Set)return new Set(t(Array.from(a),n));var i={};for(var o in a){var s=a[o];typeof s!="object"||s===null?i[o]=s:s instanceof Date?i[o]=new Date(s):s instanceof Map?i[o]=new Map(t(Array.from(s),n)):s instanceof Set?i[o]=new Set(t(Array.from(s),n)):ArrayBuffer.isView(s)?i[o]=ot(s):i[o]=n(s)}return i}}function Gl(e){var t=[],r=[];return e.proto?i:a;function n(o,s){for(var c=Object.keys(o),u=new Array(c.length),p=0;p<c.length;p++){var m=c[p],f=o[m];if(typeof f!="object"||f===null)u[m]=f;else if(f instanceof Date)u[m]=new Date(f);else if(ArrayBuffer.isView(f))u[m]=ot(f);else{var y=t.indexOf(f);y!==-1?u[m]=r[y]:u[m]=s(f)}}return u}function a(o){if(typeof o!="object"||o===null)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return n(o,a);if(o instanceof Map)return new Map(n(Array.from(o),a));if(o instanceof Set)return new Set(n(Array.from(o),a));var s={};t.push(o),r.push(s);for(var c in o)if(Object.hasOwnProperty.call(o,c)!==!1){var u=o[c];if(typeof u!="object"||u===null)s[c]=u;else if(u instanceof Date)s[c]=new Date(u);else if(u instanceof Map)s[c]=new Map(n(Array.from(u),a));else if(u instanceof Set)s[c]=new Set(n(Array.from(u),a));else if(ArrayBuffer.isView(u))s[c]=ot(u);else{var p=t.indexOf(u);p!==-1?s[c]=r[p]:s[c]=a(u)}}return t.pop(),r.pop(),s}function i(o){if(typeof o!="object"||o===null)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return n(o,i);if(o instanceof Map)return new Map(n(Array.from(o),i));if(o instanceof Set)return new Set(n(Array.from(o),i));var s={};t.push(o),r.push(s);for(var c in o){var u=o[c];if(typeof u!="object"||u===null)s[c]=u;else if(u instanceof Date)s[c]=new Date(u);else if(u instanceof Map)s[c]=new Map(n(Array.from(u),i));else if(u instanceof Set)s[c]=new Set(n(Array.from(u),i));else if(ArrayBuffer.isView(u))s[c]=ot(u);else{var p=t.indexOf(u);p!==-1?s[c]=r[p]:s[c]=i(u)}}return t.pop(),r.pop(),s}}var jl=Dl();const da=Xt(jl);function Er(){return Er=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},Er.apply(this,arguments)}function Pl(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function zr(e,t){return t={exports:{}},e(t,t.exports),t.exports}/** @license React v16.13.1
|
|
1
|
+
import{aN as Lo,aM as Uo,aO as zo,r as h,aQ as qo,aR as Mr,aS as Pe,j as l,aU as Ko,aV as Ho,dS as Wo,dT as Jo,dU as fi,bK as Qe,aq as di,dV as Qo,dW as Xo,f as f0,dX as Zo,dY as d0,bM as x0,dZ as Yo,aP as lr,dF as Qn,K as Le,M as Ue,b4 as Xt,d_ as Xn,c6 as es,bQ as ts,P as d,c2 as te,u as re,bA as rs,cj as Zn,F as ie,a9 as Ce,cv as xi,Y as St,ce as Et,c as je,x as V0,d$ as ns,e0 as as,n as ve,S as fe,am as Zt,G as le,bO as be,w as it,e as is,e1 as os,T as K,bl as ss,e2 as hi,bz as Yt,aK as _r,b9 as mt,e3 as ki,bf as yi,e4 as ls,e5 as cs,as as Yn,a6 as us,Z as ms,N as ps,e6 as fs,b as bi,c0 as ds,bP as xs,cd as hs,B as $,bG as gi,U as M0,dd as Sr,dl as ks,bC as ys,e7 as bs,a7 as gs,bD as vs,bt as vi,c8 as Ss,v as Es,e8 as As,e9 as ws,a4 as Ds,A as Bs,ea as Gs,H as js,eb as Si,ec as Ps,cw as Vs,ab as At,cx as Ei,aa as Os,ac as ea,$ as $e,C as Cs,bJ as Fs,ed as Ts,ee as Is,ef as Rs,eg as Ms,ct as _s,eh as Ns,ei as cr,ej as ta}from"./index-MMjnoZvc.js";import{u as Ai}from"./uniqBy-MB2OLxCc.js";import{P as wi}from"./page-header-3dDUdORn.js";import{S as $s,u as Ls,L as Us}from"./index-SfrVnmj3.js";import{A as _0}from"./index-ZWk0ce0v.js";import{l as zs}from"./lottie-sh4s0pNq.js";import{L as ra}from"./launch-result-message-F8Ofxx_e.js";import{S as qs}from"./index-UVz8nDjF.js";import{R as ur}from"./logo-uploader-ka1rqsHQ.js";import{a as na}from"./api-VkXAZ8rS.js";import{f as Ks,j as Hs,a as Ws,c as Js,d as Qs,b as Xs,e as Zs,g as Ys,h as e1}from"./jss-plugin-props-sort.esm-U5ZnYCzJ.js";import{u as t1,L as r1,a as n1,C as a1}from"./confirm-U8trI8sh.js";import{L as Di,a as i1}from"./ListItem-X7GPpG5G.js";import{v as o1}from"./util-lFswG4bk.js";import{s as Bi,h as s1,w as l1,f as c1,a as u1,b as m1,c as p1,S as f1,d as d1}from"./index-WO73mi9B.js";import{T as x1,a as h1,b as k1,c as aa}from"./TableRow-S0z2jg7V.js";import{I as ia}from"./index-WOHYN7r2.js";import{u as y1}from"./session-ieY35lEq.js";import{W as Gi}from"./did-address-zj1cM-u2.js";import{T as pt}from"./TextField-u2bxSAc-.js";import{S as b1,a as g1,b as v1}from"./Stepper-cogqYRt3.js";import{D as Nr}from"./DialogContentText-rCKX8V2o.js";import{f as ze}from"./format-error-2W3A06Jw.js";import{d as S1}from"./ArrowDropDown-VDOchtvn.js";import{_ as E1}from"./useLocalStorage-HSuIS8dC.js";import{d as A1}from"./Add-LDEf8DQg.js";import{d as w1}from"./Launch-skY4QDHZ.js";import{d as ji}from"./DeleteOutline-Na5jYanp.js";import{C as D1}from"./click-to-copy-0Jqh0K6m.js";import{A as B1}from"./Alert-vWiM7yjS.js";import{E as $r}from"./fallback-liNYH2Ir.js";import{d as G1}from"./Search-mY4_Gjp8.js";import{G as Pi}from"./Grid-hq8tXmAE.js";import{O as j1}from"./Select-JkWGcMNY.js";import{H as oa}from"./Hidden-_2gAiz8I.js";import{M as sa}from"./InputAdornment-tAiuMjJ3.js";import{y as P1,g as V1,q as O1}from"./preact.module-yJdvQMHZ.js";import{C as C1}from"./content-layout-rHIg8LgN.js";import{P as F1,u as T1}from"./use-blocklet-info-for-connect-did-spaces-Zu5fLwEo.js";import{h as I1,g as R1,a as M1,b as _1,d as N1,e as la,i as ca,f as $1}from"./spaces-zU6EswmD.js";import{S as ua}from"./index-g4tgCwv9.js";function L1(e){return Lo("MuiTableContainer",e)}Uo("MuiTableContainer",["root"]);const U1=["className","component"],z1=e=>{const{classes:t}=e;return Ho({root:["root"]},L1,t)},q1=zo("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),K1=h.forwardRef(function(t,r){const n=qo({props:t,name:"MuiTableContainer"}),{className:a,component:i="div"}=n,o=Mr(n,U1),s=Pe({},n,{component:i}),c=z1(s);return l.jsx(q1,Pe({ref:r,as:i,className:Ko(c.root,a),ownerState:s},o))}),H1=K1;function W1(e,t,r){r===void 0&&(r={});var n=Wo(t);Jo(function(){var a=fi(r.target,window);if(a!=null&&a.addEventListener){var i=function(o){return n.current(o)};return a.addEventListener(e,i,{capture:r.capture,once:r.once,passive:r.passive}),function(){a.removeEventListener(e,i,{capture:r.capture})}}},[e,r.capture,r.once,r.passive],r.target)}var J1=function(e){return e===document||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},Q1=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},X1=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},Z1=function(e,t){t===void 0&&(t={});var r=t.target,n=t.isNoMore,a=t.threshold,i=a===void 0?100:a,o=t.reloadDeps,s=o===void 0?[]:o,c=t.manual,u=t.onBefore,p=t.onSuccess,m=t.onError,f=t.onFinally,y=Qe(h.useState(),2),k=y[0],x=y[1],b=Qe(h.useState(!1),2),v=b[0],g=b[1],S=h.useMemo(function(){return n?n(k):!1},[k]),w=di(function(R){return Qo(void 0,void 0,void 0,function(){var J,M,U;return Xo(this,function(D){switch(D.label){case 0:return[4,e(R)];case 1:return J=D.sent(),x(R?x0(x0({},J),{list:d0(d0([],Qe((U=R.list)!==null&&U!==void 0?U:[]),!1),Qe(J.list),!1)}):x0(x0({},J),{list:d0([],Qe((M=J.list)!==null&&M!==void 0?M:[]),!1)})),[2,J]}})})},{manual:c,onFinally:function(R,J,M){g(!1),f==null||f(J,M)},onBefore:function(){return u==null?void 0:u()},onSuccess:function(R){setTimeout(function(){L()}),p==null||p(R)},onError:function(R){return m==null?void 0:m(R)}}),E=w.loading,O=w.run,T=w.runAsync,G=w.cancel,A=f0(function(){S||(g(!0),O(k))}),B=f0(function(){return S?Promise.reject():(g(!0),T(k))}),P=function(){return g(!1),O()},j=function(){return g(!1),T()},L=function(){var R=fi(r);if(R){R=R===document?document.documentElement:R;var J=J1(R),M=Q1(R),U=X1(R);M-J<=U+i&&A()}};return W1("scroll",function(){E||v||L()},{target:r}),Zo(function(){O()},d0([],Qe(s),!1)),{data:k,loading:!v&&E,loadingMore:v,noMore:S,loadMore:A,loadMoreAsync:B,reload:f0(P),reloadAsync:f0(j),mutate:x,cancel:G}};const Y1=Z1,el=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function tl(e={}){const{disableGlobal:t=!1,productionPrefix:r="jss",seed:n=""}=e,a=n===""?"":`${n}-`;let i=0;const o=()=>(i+=1,i);return(s,c)=>{const u=c.options.name;if(u&&u.indexOf("Mui")===0&&!c.options.link&&!t){if(el.indexOf(s.key)!==-1)return`Mui-${s.key}`;const p=`${a}${u}-${s.key}`;return!c.options.theme[Yo]||n!==""?p:`${p}-${o()}`}return`${a}${r}${o()}`}}function rl(){return{plugins:[Ks(),Hs(),Ws(),Js(),Qs(),typeof window>"u"?null:Xs(),Zs()]}}function Vi(e={}){const{baseClasses:t,newClasses:r,Component:n}=e;if(!r)return t;const a=Pe({},t);return Object.keys(r).forEach(i=>{r[i]&&(a[i]=`${t[i]} ${r[i]}`)}),a}const nl={set:(e,t,r,n)=>{let a=e.get(t);a||(a=new Map,e.set(t,a)),a.set(r,n)},get:(e,t,r)=>{const n=e.get(t);return n?n.get(r):void 0},delete:(e,t,r)=>{e.get(t).delete(r)}},tt=nl,al=Ys(rl()),il=tl(),ol=new Map,sl={disableGeneration:!1,generateClassName:il,jss:al,sheetsCache:null,sheetsManager:ol,sheetsRegistry:null},ll=h.createContext(sl);let ma=-1e9;function cl(){return ma+=1,ma}const ul=["variant"];function pa(e){return e.length===0}function ml(e){const{variant:t}=e,r=Mr(e,ul);let n=t||"";return Object.keys(r).sort().forEach(a=>{a==="color"?n+=pa(n)?e[a]:lr(e[a]):n+=`${pa(n)?a:lr(a)}${lr(e[a].toString())}`}),n}const pl={},fl=pl;function dl(e){const t=typeof e=="function";return{create:(r,n)=>{let a;try{a=t?e(r):e}catch(c){throw c}if(!n||!r.components||!r.components[n]||!r.components[n].styleOverrides&&!r.components[n].variants)return a;const i=r.components[n].styleOverrides||{},o=r.components[n].variants||[],s=Pe({},a);return Object.keys(i).forEach(c=>{s[c]=Qn(s[c]||{},i[c])}),o.forEach(c=>{const u=ml(c.props);s[u]=Qn(s[u]||{},c.style)}),s},options:{}}}const xl=["name","classNamePrefix","Component","defaultTheme"];function hl({state:e,stylesOptions:t},r,n){if(t.disableGeneration)return r||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let a=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,a=!0),r!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=r,a=!0),a&&(e.cacheClasses.value=Vi({baseClasses:e.cacheClasses.lastJSS,newClasses:r,Component:n})),e.cacheClasses.value}function kl({state:e,theme:t,stylesOptions:r,stylesCreator:n,name:a},i){if(r.disableGeneration)return;let o=tt.get(r.sheetsManager,n,t);o||(o={refs:0,staticSheet:null,dynamicStyles:null},tt.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 c=r.sheetsRegistry;if(o.refs===0){let u;r.sheetsCache&&(u=tt.get(r.sheetsCache,n,t));const p=n.create(t,a);u||(u=r.jss.createStyleSheet(p,Pe({link:!1},s)),u.attach(),r.sheetsCache&&tt.set(r.sheetsCache,n,t,u)),c&&c.add(u),o.staticSheet=u,o.dynamicStyles=e1(p)}if(o.dynamicStyles){const u=r.jss.createStyleSheet(o.dynamicStyles,Pe({link:!0},s));u.update(i),u.attach(),e.dynamicSheet=u,e.classes=Vi({baseClasses:o.staticSheet.classes,newClasses:u.classes}),c&&c.add(u)}else e.classes=o.staticSheet.classes;o.refs+=1}function yl({state:e},t){e.dynamicSheet&&e.dynamicSheet.update(t)}function bl({state:e,theme:t,stylesOptions:r,stylesCreator:n}){if(r.disableGeneration)return;const a=tt.get(r.sheetsManager,n,t);a.refs-=1;const i=r.sheetsRegistry;a.refs===0&&(tt.delete(r.sheetsManager,n,t),r.jss.removeStyleSheet(a.staticSheet),i&&i.remove(a.staticSheet)),e.dynamicSheet&&(r.jss.removeStyleSheet(e.dynamicSheet),i&&i.remove(e.dynamicSheet))}function gl(e,t){const r=h.useRef([]);let n;const a=h.useMemo(()=>({}),t);r.current!==a&&(r.current=a,n=e()),h.useEffect(()=>()=>{n&&n()},[a])}function Lr(e,t={}){const{name:r,classNamePrefix:n,Component:a,defaultTheme:i=fl}=t,o=Mr(t,xl),s=dl(e),c=r||n||"makeStyles";return s.options={index:cl(),name:r,meta:c,classNamePrefix:c},(p={})=>{const m=t1()||i,f=Pe({},h.useContext(ll),o),y=h.useRef(),k=h.useRef();return gl(()=>{const b={name:r,state:{},stylesCreator:s,stylesOptions:f,theme:m};return kl(b,p),k.current=!1,y.current=b,()=>{bl(b)}},[m,s]),h.useEffect(()=>{k.current&&yl(y.current,p),k.current=!0}),hl(y.current,p.classes,a)}}const hh="blocklet-add-component-registry",kh="server-add-registry",yh=e=>`resource-${e}-add-registry`;var Ur={},vl=Ue;Object.defineProperty(Ur,"__esModule",{value:!0});var Oi=Ur.default=void 0,Sl=vl(Le()),El=l,Al=(0,Sl.default)((0,El.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.1zM8 13h8v-2H8v2zm9-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-5z"}),"Link");Oi=Ur.default=Al;var wl=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,a,i;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(a=n;a--!==0;)if(!e(t[a],r[a]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(a of t.entries())if(!r.has(a[0]))return!1;for(a of t.entries())if(!e(a[1],r.get(a[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(a of t.entries())if(!r.has(a[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if(n=t.length,n!=r.length)return!1;for(a=n;a--!==0;)if(t[a]!==r[a])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(r).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[a]))return!1;for(a=n;a--!==0;){var o=i[a];if(!(o==="_owner"&&t.$$typeof)&&!e(t[o],r[o]))return!1}return!0}return t!==t&&r!==r};const fa=Xt(wl);var Dl=Bl;function ot(e){return e instanceof Xn?Xn.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function Bl(e){if(e=e||{},e.circles)return Gl(e);return e.proto?n:r;function t(a,i){for(var o=Object.keys(a),s=new Array(o.length),c=0;c<o.length;c++){var u=o[c],p=a[u];typeof p!="object"||p===null?s[u]=p:p instanceof Date?s[u]=new Date(p):ArrayBuffer.isView(p)?s[u]=ot(p):s[u]=i(p)}return s}function r(a){if(typeof a!="object"||a===null)return a;if(a instanceof Date)return new Date(a);if(Array.isArray(a))return t(a,r);if(a instanceof Map)return new Map(t(Array.from(a),r));if(a instanceof Set)return new Set(t(Array.from(a),r));var i={};for(var o in a)if(Object.hasOwnProperty.call(a,o)!==!1){var s=a[o];typeof s!="object"||s===null?i[o]=s:s instanceof Date?i[o]=new Date(s):s instanceof Map?i[o]=new Map(t(Array.from(s),r)):s instanceof Set?i[o]=new Set(t(Array.from(s),r)):ArrayBuffer.isView(s)?i[o]=ot(s):i[o]=r(s)}return i}function n(a){if(typeof a!="object"||a===null)return a;if(a instanceof Date)return new Date(a);if(Array.isArray(a))return t(a,n);if(a instanceof Map)return new Map(t(Array.from(a),n));if(a instanceof Set)return new Set(t(Array.from(a),n));var i={};for(var o in a){var s=a[o];typeof s!="object"||s===null?i[o]=s:s instanceof Date?i[o]=new Date(s):s instanceof Map?i[o]=new Map(t(Array.from(s),n)):s instanceof Set?i[o]=new Set(t(Array.from(s),n)):ArrayBuffer.isView(s)?i[o]=ot(s):i[o]=n(s)}return i}}function Gl(e){var t=[],r=[];return e.proto?i:a;function n(o,s){for(var c=Object.keys(o),u=new Array(c.length),p=0;p<c.length;p++){var m=c[p],f=o[m];if(typeof f!="object"||f===null)u[m]=f;else if(f instanceof Date)u[m]=new Date(f);else if(ArrayBuffer.isView(f))u[m]=ot(f);else{var y=t.indexOf(f);y!==-1?u[m]=r[y]:u[m]=s(f)}}return u}function a(o){if(typeof o!="object"||o===null)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return n(o,a);if(o instanceof Map)return new Map(n(Array.from(o),a));if(o instanceof Set)return new Set(n(Array.from(o),a));var s={};t.push(o),r.push(s);for(var c in o)if(Object.hasOwnProperty.call(o,c)!==!1){var u=o[c];if(typeof u!="object"||u===null)s[c]=u;else if(u instanceof Date)s[c]=new Date(u);else if(u instanceof Map)s[c]=new Map(n(Array.from(u),a));else if(u instanceof Set)s[c]=new Set(n(Array.from(u),a));else if(ArrayBuffer.isView(u))s[c]=ot(u);else{var p=t.indexOf(u);p!==-1?s[c]=r[p]:s[c]=a(u)}}return t.pop(),r.pop(),s}function i(o){if(typeof o!="object"||o===null)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return n(o,i);if(o instanceof Map)return new Map(n(Array.from(o),i));if(o instanceof Set)return new Set(n(Array.from(o),i));var s={};t.push(o),r.push(s);for(var c in o){var u=o[c];if(typeof u!="object"||u===null)s[c]=u;else if(u instanceof Date)s[c]=new Date(u);else if(u instanceof Map)s[c]=new Map(n(Array.from(u),i));else if(u instanceof Set)s[c]=new Set(n(Array.from(u),i));else if(ArrayBuffer.isView(u))s[c]=ot(u);else{var p=t.indexOf(u);p!==-1?s[c]=r[p]:s[c]=i(u)}}return t.pop(),r.pop(),s}}var jl=Dl();const da=Xt(jl);function Er(){return Er=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},Er.apply(this,arguments)}function Pl(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function 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,bJ as j,U as D,r as a,c as S,ce as W,bI as O,j as u,am as U}from"./index-MMjnoZvc.js";import{A as k,S as A}from"./add-component-core-lt9WbiLS.js";import"./uniqBy-MB2OLxCc.js";import"./page-header-3dDUdORn.js";import"./index-SfrVnmj3.js";import"./Skeleton-MQVf1zeC.js";import"./Hidden-_2gAiz8I.js";import"./index-ZWk0ce0v.js";import"./lottie-sh4s0pNq.js";import"./launch-result-message-F8Ofxx_e.js";import"./index-UVz8nDjF.js";import"./EditIcon-0Rwc1Sfx.js";import"./Done-6x0KAx6b.js";import"./Google-bfk_WZie.js";import"./TextField-u2bxSAc-.js";import"./FormControl-FuFP_-xW.js";import"./useFormControl-Qd1sZJH7.js";import"./InputLabel-sJuMXXTU.js";import"./Select-JkWGcMNY.js";import"./logo-uploader-ka1rqsHQ.js";import"./index-dbP1WPUp.js";import"./api-VkXAZ8rS.js";import"./jss-plugin-props-sort.esm-U5ZnYCzJ.js";import"./toPropertyKey-NzAT2yhV.js";import"./confirm-U8trI8sh.js";import"./DialogContentText-rCKX8V2o.js";import"./Alert-vWiM7yjS.js";import"./format-error-2W3A06Jw.js";import"./ListItem-X7GPpG5G.js";import"./util-lFswG4bk.js";import"./index-WO73mi9B.js";import"./TableRow-S0z2jg7V.js";import"./index-WOHYN7r2.js";import"./session-ieY35lEq.js";import"./did-address-zj1cM-u2.js";import"./Stepper-cogqYRt3.js";import"./ArrowDropDown-VDOchtvn.js";import"./useLocalStorage-HSuIS8dC.js";import"./Add-LDEf8DQg.js";import"./Launch-skY4QDHZ.js";import"./DeleteOutline-Na5jYanp.js";import"./click-to-copy-0Jqh0K6m.js";import"./fallback-liNYH2Ir.js";import"./Search-mY4_Gjp8.js";import"./Grid-hq8tXmAE.js";import"./InputAdornment-tAiuMjJ3.js";import"./preact.module-yJdvQMHZ.js";import"./content-layout-rHIg8LgN.js";import"./use-blocklet-info-for-connect-did-spaces-Zu5fLwEo.js";import"./spaces-zU6EswmD.js";import"./index-bkJmmZxf.js";import"./index-g4tgCwv9.js";import"./ExpandMore-cCR6PfVd.js";import"./ButtonGroup-F595PjjB.js";function Bt(){var l;const{t:d}=x(),{blocklet:r}=P(),[h]=R(),{componentDid:m}=j(),f=D(t=>t.breakpoints.down("md")),g=h.get("mode")==="dialog",e=(l=r==null?void 0:r.meta)==null?void 0:l.did,i=new URL(window.location.href),s=(i.searchParams.get("store")||"").split(",").filter(Boolean).map(t=>{try{return new URL(t.startsWith("http")?t:`https://${t}`).origin}catch(o){return console.error(o),null}}).filter(Boolean),[w,C]=a.useState(s.map(t=>({url:t,name:t.replace("https://","")}))),p=i.searchParams.get("resourceType")||"",n=i.searchParams.get("resourceDid")||m;a.useEffect(()=>{(async()=>{try{const t=await Promise.all(s.map(async o=>{const E=S(o,"/api/store.json"),{data:b}=await W.get(E);return{url:o,name:b.name}}));C(t||[])}catch(t){console.error(t)}})()},[s.join(",")]);const y=()=>{window.parent.postMessage({event:"resourceDialog.close",componentDid:m},"*")};a.useEffect(()=>{const t=O();return e&&t.connect(),()=>{e&&t.isConnected()&&t.disconnect()}},[e]);const c=({inDialog:t=!0}={})=>u.jsx(k,{stores:w,resourceType:p,resourceDid:n,mode:"embed",inDialog:t,storageKey:A(`${p}+${n}`)});return g?u.jsx(U,{className:"resource-dialog",title:d("blocklet.publish.addResource"),maxWidth:!1,fullWidth:!1,PaperProps:{style:f?{width:"100%",height:window.innerHeight}:{maxWidth:1350,minWidth:930,width:"80%"}},onClose:(t,o)=>{o!=="backdropClick"&&y()},showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:c()}):c({inDialog:!1})}export{Bt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as c,j as a,E as $,aJ as D,aK as E,aL as R,P as n,G as H}from"./index-
|
|
1
|
+
import{r as c,j as a,E as $,aJ as D,aK as E,aL as R,P as n,G as H}from"./index-MMjnoZvc.js";import{L as A}from"./selector-aWeTH_Xy.js";var d={};Object.defineProperty(d,"__esModule",{value:!0});var x=d.default=void 0;L(c);var w=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(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),r.push.apply(r,o)}return r}function b(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=K(e,"string");return typeof t=="symbol"?t:String(t)}function K(e,t){if(typeof e!="object"||e===null)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,w.jsx)("svg",b(b({},t),{},{children:(0,w.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";var T=f;x=d.default=T;var m={};Object.defineProperty(m,"__esModule",{value:!0});var P=m.default=void 0;k(c);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(l){return Object.getOwnPropertyDescriptor(e,l).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=U(e,"string");return typeof t=="symbol"?t:String(t)}function U(e,t){if(typeof e!="object"||e===null)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";var G=v;P=m.default=G;function j({SessionContext:e,extraItems:t,showLocale:r,showHelper:o,showSessionManager:l,sessionManagerProps:_}){const{session:M}=c.useContext(e),{locale:h}=c.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 s=z.pathname;let i={};s.indexOf("/store")>-1?i=u["/store"]:u[s]&&(i=u[s]),window.open(`${i.endpoint||S}/${h}${i.path||""}`,"_blank")};return a.jsxs(W,{children:[t.map((s,i)=>c.cloneElement(s,{key:i})),r&&a.jsx(A,{"data-cy":"locale-addon",icon:x,size:23,showText:!1,className:"locale-addon"}),o&&a.jsx(E,{onClick:C,children:a.jsx(P,{})}),l&&a.jsx(R,{locale:h,session:M,size:24,showRole:!0,..._,showManageBlocklet:!1})]})}j.propTypes={SessionContext:n.object.isRequired,webWalletUrl:n.string,extraItems:n.array,showLocale:n.bool,showSessionManager:n.bool,showHelper:n.bool,sessionManagerProps:n.object};j.defaultProps={webWalletUrl:"",extraItems:[],showLocale:!0,showSessionManager:!0,showHelper:!0,sessionManagerProps:{}};const W=H.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{P as f,gx as Wo,b4 as Mt,b3 as zo,eR as Uo,K as Ko,M as qo,j as g,c6 as q,B as Re,r as w,a7 as Kt,be as Lt,T as ge,bA as Bn,aK as Be,bf as yn,aR as ae,aQ as me,aS as x,aU as be,bV as je,al as Ye,aN as xe,aM as we,aO as oe,bz as St,aV as De,dy as Ne,cm as G,bR as Go,bT as Xe,bU as et,gl as Yn,bX as kt,gk as Hn,U as Wn,dz as qt,cK as Zo,gn as bn,cI as Qo,bC as Jo,e7 as Xo,gm as er,cn as jt,b as it,cJ as tr,bt as nr,cq as Gt,gy as ye,gz as or,G as Ct,N as rr,c8 as sr,bv as Ke,a9 as ar,u as Zt,S as ir,w as lr,c as cr,d2 as Dn,bx as ur,g8 as Le,E as zn,fQ as Un,b9 as dr,bm as fr,Y as xn,gA as hr,a8 as mr,q as pr}from"./index-lm42cyj2.js";import{T as gr}from"./index-q1L4Rt-P.js";import{_ as yr}from"./permission-nZTsZ0WS.js";import{I as br}from"./iframe-8GzqFlQD.js";import{d as Dr}from"./LaunchOutlined-uyxHjAJt.js";import{r as Qt,b as Kn,H as Ee,D as tt,B as Ve,y as xr,E as wr,I as Jt,z as _t,M as ut,N as dt,A as Ze,L as ft,e as ht,J as xt,K as wt,d as vr,Q as Bt,G as lt,F as wn,R as Xt,S as Pr,Z as Mr,T as Sr,O as kr,V as Cr,P as Tr,W as Ir}from"./index-Z3z1VFLe.js";import{d as Vr,B as Rr}from"./ChevronRight-LWjgeEYU.js";import{_ as qn}from"./toPropertyKey-NzAT2yhV.js";import{G as he}from"./Grid-zyeSJ3wZ.js";import{L as Gn}from"./ListItem-mXlOmPfw.js";import{a as Or}from"./confirm-HILJ5sgy.js";import{F as vn}from"./FormControl-iRfjRIOl.js";import{S as Pn}from"./Select-3f4a0_GV.js";import{C as Er,a as Fr}from"./CardContent-dbkBV230.js";import{A as Ar}from"./Alert-fzSO0kDd.js";import{f as Lr}from"./format-error-wykwIGB8.js";import{T as jr}from"./TextField-Wyekhk78.js";import{M as Nr}from"./InputAdornment-xLAUWmxY.js";import{p as $r}from"./dashboard-ucoCpVVE.js";import{D as _r}from"./index-dn0GLbuV.js";import"./useAsync-c4_liX2s.js";import"./session-FvRnItWJ.js";import"./index-rFu-FqJl.js";import"./nav-menu-n-gHiZNN.js";import"./MoreHoriz-bNNdGHUX.js";import"./ExpandMore-WRbnfWmE.js";import"./Toolbar-7x5-T7Ys.js";import"./Hidden-GHQEcd1H.js";import"./Avatar-K6OaXDZ4.js";import"./DialogContentText-Vu-BdXEX.js";import"./useFormControl-74pXAYtI.js";import"./InputLabel-9dhtp71X.js";import"./MoreVert-6ctaEpVo.js";import"./useLocalStorage-DpKr2KRx.js";import"./useSetState-y2knwpSH.js";import"./PlayArrow-GRR1UfvW.js";import"./ButtonGroup-oHv_n3Uq.js";import"./RadioGroup-Wf8W3ZUP.js";import"./FormControlLabel-AkL5QQtq.js";import"./FormGroup-wvHZzmmD.js";import"./index-hND2553g.js";import"./spaces-Zfss07Dw.js";import"./index-srroQufO.js";import"./api-bPHHyjfQ.js";import"./fallback-kaIBtHL1.js";import"./wallet-hidden-topbar-NDSHw08q.js";import"./selector-U2IzDfpl.js";import"./Checkbox-9-rDGnGt.js";import"./FilterList-K9Uso_4u.js";import"./TableRow-OaqX6Tqj.js";import"./LastPage-oKswUEqc.js";import"./index--5-hHGMr.js";import"./redux-XOuz_cVf.js";import"./Search-R2YWOork.js";const Br=f.oneOfType([f.func,f.object]),Zn=Br;var Yr=Wo;function Hr(e,t){var n=e.length;if(n)return t+=t<0?n:0,Yr(t,n)?e[t]:void 0}var Wr=Hr,zr=Wr,Ur=zo,Kr=Uo;function qr(e){return e=Kr(e),Ur(function(t){return zr(t,e)})}var Gr=qr;const Zr=Mt(Gr);function Qn(e){Qt(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(qn(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var a=Kn(r);(n===void 0||n<a||isNaN(Number(a)))&&(n=a)}),n||new Date(NaN)}function Jn(e){Qt(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(qn(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var a=Kn(r);(n===void 0||n>a||isNaN(a.getDate()))&&(n=a)}),n||new Date(NaN)}function Qr(e){return Qt(1,arguments),Ee(e,Date.now())}var en={},Jr=qo;Object.defineProperty(en,"__esModule",{value:!0});var Xn=en.default=void 0,Xr=Jr(Ko()),es=g,ts=(0,Xr.default)((0,es.jsx)("path",{d:"M16.01 11H4v2h12.01v3L20 12l-3.99-4z"}),"ArrowRightAlt");Xn=en.default=ts;const ns=(e,t)=>Array.from({length:Math.ceil(e.length/t)},(n,r)=>e.slice(r*t,r*t+t)),os=(e,t)=>{const n=ut(ft(e),{locale:t}),r=dt(ht(e),{locale:t}),a=[];for(let o=n;lt(o,r);)a.push(o),o=_t(o,1);return a},rs=({startDate:e},t)=>e&&Ee(t,e),ss=({endDate:e},t)=>e&&Ee(t,e),as=({startDate:e,endDate:t},n)=>e&&t&&(Xt(n,{start:e,end:t})||Ee(n,e)||Ee(n,t)),is=({startDate:e,endDate:t})=>e&&t?Ee(e,t):!1,Mn=(e,t)=>{if(e){const n=e instanceof Date?e:xr(e);if(wr(n))return n}return t},ls=(e,t,n)=>{const{startDate:r,endDate:a}=e;if(r&&a){const o=Qn([r,t]),s=Jn([a,n]);return[o,Jt(o,s)?Ve(o,1):s]}return[r,a]},cs=(e,t)=>[{label:"Today",startDate:e,endDate:e},{label:"Yesterday",startDate:_t(e,-1),endDate:_t(e,-1)},{label:"This Week",startDate:ut(e,{locale:t}),endDate:dt(e,{locale:t})},{label:"Last Week",startDate:ut(Ze(e,-1),{locale:t}),endDate:dt(Ze(e,-1),{locale:t})},{label:"Last 7 Days",startDate:Ze(e,-1),endDate:e},{label:"This Month",startDate:ft(e),endDate:ht(e)},{label:"Last Month",startDate:ft(Ve(e,-1)),endDate:ht(Ve(e,-1))},{label:"This Year",startDate:xt(e),endDate:wt(e)},{label:"Last Year",startDate:xt(tt(e,-1)),endDate:wt(tt(e,-1))}],us=(e,t)=>{const n=Math.floor(t/2);return Array(t).fill(0).map((r,a)=>e.getFullYear()-n+a)},ds=({date:e,setDate:t,nextDisabled:n,prevDisabled:r,onClickNext:a,onClickPrevious:o,locale:s})=>{const i=typeof s<"u"?[...Array(12).keys()].map(u=>{var y;return(y=s.localize)===null||y===void 0?void 0:y.month(u,{width:"abbreviated",context:"standalone"})}):["Jan","Feb","Mar","Apr","May","June","July","Aug","Sept","Oct","Nov","Dec"],c=u=>{t(Cr(e,parseInt(u.target.value,10)))},l=u=>{t(Tr(e,parseInt(u.target.value,10)))};return q.createElement(he,{container:!0,justifyContent:"space-between",alignItems:"center"},q.createElement(he,{item:!0,sx:{padding:"5px"}},q.createElement(Be,{sx:{padding:"10px","&:hover":{background:"none"}},disabled:r,onClick:o},q.createElement(Mr,{color:r?"disabled":"action"}))),q.createElement(he,{item:!0},q.createElement(vn,{variant:"standard"},q.createElement(Pn,{value:Sr(e),onChange:c,MenuProps:{disablePortal:!0}},i.map((u,y)=>q.createElement(yn,{key:u,value:y},u))))),q.createElement(he,{item:!0},q.createElement(vn,{variant:"standard"},q.createElement(Pn,{value:kr(e),onChange:l,MenuProps:{disablePortal:!0}},us(e,30).map(u=>q.createElement(yn,{key:u,value:u},u))))),q.createElement(he,{item:!0,sx:{padding:"5px"}},q.createElement(Be,{sx:{padding:"10px","&:hover":{background:"none"}},disabled:n,onClick:a},q.createElement(Vr,{color:n?"disabled":"action"}))))},fs=({startOfRange:e,endOfRange:t,disabled:n,highlighted:r,outlined:a,filled:o,onClick:s,onHover:i,value:c})=>q.createElement(Re,{sx:{display:"flex",borderRadius:e?"50% 0 0 50%":t?"0 50% 50% 0":void 0,backgroundColor:l=>!n&&r?l.palette.primary.light:void 0}},q.createElement(Be,{sx:Object.assign({height:"36px",width:"36px",padding:0,border:l=>!n&&a?`1px solid ${l.palette.primary.dark}`:void 0},!n&&o?{"&:hover":{backgroundColor:l=>l.palette.primary.dark},backgroundColor:l=>l.palette.primary.dark}:{}),disabled:n,onClick:s,onMouseOver:i},q.createElement(ge,{sx:{lineHeight:1.6,color:l=>n?l.palette.text.secondary:o?l.palette.primary.contrastText:l.palette.text.primary},variant:"body2"},c)));var vt;(function(e){e[e.Previous=-1]="Previous",e[e.Next=1]="Next"})(vt||(vt={}));const Sn=e=>{var t;const{helpers:n,handlers:r,value:a,dateRange:o,marker:s,setValue:i,minDate:c,maxDate:l,locale:u}=e,y=((t=u==null?void 0:u.options)===null||t===void 0?void 0:t.weekStartsOn)||0,D=typeof u<"u"?[...Array(7).keys()].map(d=>{var p;return(p=u.localize)===null||p===void 0?void 0:p.day((d+y)%7,{width:"short",context:"standalone"})}):["Su","Mo","Tu","We","Th","Fr","Sa"],[h,S]=e.navState;return q.createElement(Kt,{square:!0,elevation:0,sx:{width:290}},q.createElement(he,{container:!0},q.createElement(ds,{date:a,setDate:i,nextDisabled:!S,prevDisabled:!h,onClickPrevious:()=>r.onMonthNavigate(s,vt.Previous),onClickNext:()=>r.onMonthNavigate(s,vt.Next),locale:u}),q.createElement(he,{item:!0,container:!0,direction:"row",justifyContent:"space-between",sx:{marginTop:"10px",paddingLeft:"30px",paddingRight:"30px"}},D.map((d,p)=>q.createElement(ge,{color:"textSecondary",key:p,variant:"caption"},d))),q.createElement(he,{item:!0,container:!0,direction:"column",justifyContent:"space-between",sx:{paddingLeft:"15px",paddingRight:"15px",marginTop:"15px",marginBottom:"20px"}},ns(os(a,u),7).map((d,p)=>q.createElement(he,{key:p,container:!0,direction:"row",justifyContent:"center"},d.map(b=>{const m=rs(o,b),M=ss(o,b),k=is(o),P=as(o,b)||n.inHoverRange(b);return q.createElement(fs,{key:Bt(b,"dd-MM-yyyy"),filled:m||M,outlined:Qr(b),highlighted:P&&!k,disabled:!Jt(a,b)||!Xt(b,{start:c,end:l}),startOfRange:m&&!k,endOfRange:M&&!k,onClick:()=>r.onDayClick(b),onHover:()=>r.onDayHover(b),value:Pr(b)})}))))))},kn=(e,t)=>{const{startDate:n,endDate:r}=e,{startDate:a,endDate:o}=t;return n&&a&&r&&o?Ee(n,a)&&Ee(r,o):!1},hs=({ranges:e,setRange:t,selectedRange:n})=>q.createElement(Bn,null,e.map((r,a)=>q.createElement(Gn,{button:!0,key:a,onClick:()=>t(r),sx:[kn(r,n)&&{backgroundColor:o=>o.palette.primary.dark,color:"primary.contrastText","&:hover":{color:"inherit"}}]},q.createElement(Or,{primaryTypographyProps:{variant:"body2",sx:{fontWeight:kn(r,n)?"bold":"normal"}}},r.label)))),Yt={FIRST_MONTH:Symbol("firstMonth"),SECOND_MONTH:Symbol("secondMonth")},ms=e=>{const{ranges:t,dateRange:n,minDate:r,maxDate:a,firstMonth:o,setFirstMonth:s,secondMonth:i,setSecondMonth:c,setDateRange:l,helpers:u,handlers:y,locale:D}=e,{startDate:h,endDate:S}=n,d=vr(i,o)>=2,p={dateRange:n,minDate:r,maxDate:a,helpers:u,handlers:y};return q.createElement(Kt,{elevation:5,square:!0},q.createElement(he,{container:!0,direction:"row",wrap:"nowrap"},q.createElement(he,null,q.createElement(hs,{selectedRange:n,ranges:t,setRange:l})),q.createElement(Lt,{orientation:"vertical",flexItem:!0}),q.createElement(he,null,q.createElement(he,{container:!0,sx:{padding:"20px 70px"},alignItems:"center"},q.createElement(he,{item:!0,sx:{flex:1,textAlign:"center"}},q.createElement(ge,{variant:"subtitle1"},h?Bt(h,"dd MMMM yyyy",{locale:D}):"Start Date")),q.createElement(he,{item:!0,sx:{flex:1,textAlign:"center"}},q.createElement(Xn,{color:"action"})),q.createElement(he,{item:!0,sx:{flex:1,textAlign:"center"}},q.createElement(ge,{variant:"subtitle1"},S?Bt(S,"dd MMMM yyyy",{locale:D}):"End Date"))),q.createElement(Lt,null),q.createElement(he,{container:!0,direction:"row",justifyContent:"center",wrap:"nowrap"},q.createElement(Sn,Object.assign({},p,{value:o,setValue:s,navState:[!0,d],marker:Yt.FIRST_MONTH,locale:D})),q.createElement(Lt,{orientation:"vertical",flexItem:!0}),q.createElement(Sn,Object.assign({},p,{value:i,setValue:c,navState:[d,!0],marker:Yt.SECOND_MONTH,locale:D}))))))},ps=e=>{const t=new Date,{open:n,onChange:r,initialDateRange:a,minDate:o,maxDate:s,definedRanges:i=cs(new Date,e.locale),locale:c}=e,l=Mn(o,tt(t,-10)),u=Mn(s,tt(t,10)),[y,D]=ls(a||{},l,u),[h,S]=w.useState(Object.assign({},a)),[d,p]=w.useState(),[b,m]=w.useState(y||t),[M,k]=w.useState(D||Ve(b,1)),{startDate:P,endDate:O}=h,A=F=>{lt(F,M)&&m(F)},I=F=>{wn(F,b)&&k(F)},T=F=>{let{startDate:_,endDate:B}=F;if(_&&B)F.startDate=_=Qn([_,l]),F.endDate=B=Jn([B,u]),S(F),r(F),m(_),k(Jt(_,B)?Ve(_,1):B);else{const N={};S(N),r(N),m(t),k(Ve(b,1))}},L=F=>{if(P&&!O&&!lt(F,P)){const _={startDate:P,endDate:F};r(_),S(_)}else S({startDate:F,endDate:void 0});p(F)},V=(F,_)=>{if(F===Yt.FIRST_MONTH){const B=Ve(b,_);lt(B,M)&&m(B)}else{const B=Ve(M,_);lt(b,B)&&k(B)}},E=F=>{P&&!O&&(!d||!Ee(F,d))&&p(F)},C={inHoverRange:F=>P&&!O&&d&&wn(d,P)&&Xt(F,{start:P,end:d})},v={onDayClick:L,onDayHover:E,onMonthNavigate:V};return n?w.createElement(ms,{dateRange:h,minDate:l,maxDate:u,ranges:i,firstMonth:b,secondMonth:M,setFirstMonth:A,setSecondMonth:I,setDateRange:T,helpers:C,handlers:v,locale:c}):null},gs=e=>{const{closeOnClickOutside:t,wrapperClassName:n,toggle:r,open:a}=e,o=()=>{t!==!1&&r()},s=i=>(i==null?void 0:i.key)==="Escape"&&o();return q.createElement(Re,{sx:{position:"relative"}},a&&q.createElement(Re,{sx:{position:"fixed",height:"100vh",width:"100vw",bottom:0,zIndex:0,right:0,left:0,top:0},onKeyPress:s,onClick:o}),q.createElement(Re,{sx:{position:"relative",zIndex:1},className:n},q.createElement(ps,Object.assign({},e))))},ys=e=>q.createElement(gs,Object.assign({},e)),bs=["localeText"],Ht=w.createContext(null),tn=function(t){var n;const{localeText:r}=t,a=ae(t,bs),{utils:o,localeText:s}=(n=w.useContext(Ht))!=null?n:{utils:void 0,localeText:void 0},i=me({props:a,name:"MuiLocalizationProvider"}),{children:c,dateAdapter:l,dateFormats:u,dateLibInstance:y,adapterLocale:D,localeText:h}=i,S=w.useMemo(()=>x({},h,s,r),[h,s,r]),d=w.useMemo(()=>{if(!l)return o||null;const m=new l({locale:D,formats:u,instance:y});if(!m.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
|
|
1
|
+
import{P as f,gx as Wo,b4 as Mt,b3 as zo,eR as Uo,K as Ko,M as qo,j as g,c6 as q,B as Re,r as w,a7 as Kt,be as Lt,T as ge,bA as Bn,aK as Be,bf as yn,aR as ae,aQ as me,aS as x,aU as be,bV as je,al as Ye,aN as xe,aM as we,aO as oe,bz as St,aV as De,dy as Ne,cm as G,bR as Go,bT as Xe,bU as et,gl as Yn,bX as kt,gk as Hn,U as Wn,dz as qt,cK as Zo,gn as bn,cI as Qo,bC as Jo,e7 as Xo,gm as er,cn as jt,b as it,cJ as tr,bt as nr,cq as Gt,gy as ye,gz as or,G as Ct,N as rr,c8 as sr,bv as Ke,a9 as ar,u as Zt,S as ir,w as lr,c as cr,d2 as Dn,bx as ur,g8 as Le,E as zn,fQ as Un,b9 as dr,bm as fr,Y as xn,gA as hr,a8 as mr,q as pr}from"./index-MMjnoZvc.js";import{T as gr}from"./index-kGlwpUUE.js";import{_ as yr}from"./permission-ZvEWJSxV.js";import{I as br}from"./iframe-ntkUMxwt.js";import{d as Dr}from"./LaunchOutlined-lpo-HuHe.js";import{r as Qt,b as Kn,H as Ee,D as tt,B as Ve,y as xr,E as wr,I as Jt,z as _t,M as ut,N as dt,A as Ze,L as ft,e as ht,J as xt,K as wt,d as vr,Q as Bt,G as lt,F as wn,R as Xt,S as Pr,Z as Mr,T as Sr,O as kr,V as Cr,P as Tr,W as Ir}from"./index-YIV3ZeKw.js";import{d as Vr,B as Rr}from"./ChevronRight-2zV-EBdQ.js";import{_ as qn}from"./toPropertyKey-NzAT2yhV.js";import{G as he}from"./Grid-hq8tXmAE.js";import{L as Gn}from"./ListItem-X7GPpG5G.js";import{a as Or}from"./confirm-U8trI8sh.js";import{F as vn}from"./FormControl-FuFP_-xW.js";import{S as Pn}from"./Select-JkWGcMNY.js";import{C as Er,a as Fr}from"./CardContent-ekWcA9xq.js";import{A as Ar}from"./Alert-vWiM7yjS.js";import{f as Lr}from"./format-error-2W3A06Jw.js";import{T as jr}from"./TextField-u2bxSAc-.js";import{M as Nr}from"./InputAdornment-tAiuMjJ3.js";import{p as $r}from"./dashboard-fV0BczKQ.js";import{D as _r}from"./index-OcPycBwK.js";import"./useAsync-4TdvRTWi.js";import"./session-ieY35lEq.js";import"./index-J75uP8vG.js";import"./nav-menu-q73bLcEq.js";import"./MoreHoriz-UJyFgSQT.js";import"./ExpandMore-cCR6PfVd.js";import"./Toolbar-xxqBJj87.js";import"./Hidden-_2gAiz8I.js";import"./Avatar-yqyuIZ56.js";import"./DialogContentText-rCKX8V2o.js";import"./useFormControl-Qd1sZJH7.js";import"./InputLabel-sJuMXXTU.js";import"./MoreVert-P_r5HcyN.js";import"./useLocalStorage-HSuIS8dC.js";import"./useSetState-MgFJAi6n.js";import"./PlayArrow-aZsZH5W7.js";import"./ButtonGroup-F595PjjB.js";import"./RadioGroup-R24vXL2w.js";import"./FormControlLabel-efXmMNAj.js";import"./FormGroup-62MBopyd.js";import"./index-ZWk0ce0v.js";import"./spaces-zU6EswmD.js";import"./index-bkJmmZxf.js";import"./api-VkXAZ8rS.js";import"./fallback-liNYH2Ir.js";import"./wallet-hidden-topbar-QxBPCxK0.js";import"./selector-aWeTH_Xy.js";import"./Checkbox-FAvvPRMi.js";import"./FilterList-_e3TGjvk.js";import"./TableRow-S0z2jg7V.js";import"./LastPage-yJC3z7U6.js";import"./index-ureJxRiy.js";import"./redux-XOuz_cVf.js";import"./Search-mY4_Gjp8.js";const Br=f.oneOfType([f.func,f.object]),Zn=Br;var Yr=Wo;function Hr(e,t){var n=e.length;if(n)return t+=t<0?n:0,Yr(t,n)?e[t]:void 0}var Wr=Hr,zr=Wr,Ur=zo,Kr=Uo;function qr(e){return e=Kr(e),Ur(function(t){return zr(t,e)})}var Gr=qr;const Zr=Mt(Gr);function Qn(e){Qt(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(qn(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var a=Kn(r);(n===void 0||n<a||isNaN(Number(a)))&&(n=a)}),n||new Date(NaN)}function Jn(e){Qt(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(qn(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var a=Kn(r);(n===void 0||n>a||isNaN(a.getDate()))&&(n=a)}),n||new Date(NaN)}function Qr(e){return Qt(1,arguments),Ee(e,Date.now())}var en={},Jr=qo;Object.defineProperty(en,"__esModule",{value:!0});var Xn=en.default=void 0,Xr=Jr(Ko()),es=g,ts=(0,Xr.default)((0,es.jsx)("path",{d:"M16.01 11H4v2h12.01v3L20 12l-3.99-4z"}),"ArrowRightAlt");Xn=en.default=ts;const ns=(e,t)=>Array.from({length:Math.ceil(e.length/t)},(n,r)=>e.slice(r*t,r*t+t)),os=(e,t)=>{const n=ut(ft(e),{locale:t}),r=dt(ht(e),{locale:t}),a=[];for(let o=n;lt(o,r);)a.push(o),o=_t(o,1);return a},rs=({startDate:e},t)=>e&&Ee(t,e),ss=({endDate:e},t)=>e&&Ee(t,e),as=({startDate:e,endDate:t},n)=>e&&t&&(Xt(n,{start:e,end:t})||Ee(n,e)||Ee(n,t)),is=({startDate:e,endDate:t})=>e&&t?Ee(e,t):!1,Mn=(e,t)=>{if(e){const n=e instanceof Date?e:xr(e);if(wr(n))return n}return t},ls=(e,t,n)=>{const{startDate:r,endDate:a}=e;if(r&&a){const o=Qn([r,t]),s=Jn([a,n]);return[o,Jt(o,s)?Ve(o,1):s]}return[r,a]},cs=(e,t)=>[{label:"Today",startDate:e,endDate:e},{label:"Yesterday",startDate:_t(e,-1),endDate:_t(e,-1)},{label:"This Week",startDate:ut(e,{locale:t}),endDate:dt(e,{locale:t})},{label:"Last Week",startDate:ut(Ze(e,-1),{locale:t}),endDate:dt(Ze(e,-1),{locale:t})},{label:"Last 7 Days",startDate:Ze(e,-1),endDate:e},{label:"This Month",startDate:ft(e),endDate:ht(e)},{label:"Last Month",startDate:ft(Ve(e,-1)),endDate:ht(Ve(e,-1))},{label:"This Year",startDate:xt(e),endDate:wt(e)},{label:"Last Year",startDate:xt(tt(e,-1)),endDate:wt(tt(e,-1))}],us=(e,t)=>{const n=Math.floor(t/2);return Array(t).fill(0).map((r,a)=>e.getFullYear()-n+a)},ds=({date:e,setDate:t,nextDisabled:n,prevDisabled:r,onClickNext:a,onClickPrevious:o,locale:s})=>{const i=typeof s<"u"?[...Array(12).keys()].map(u=>{var y;return(y=s.localize)===null||y===void 0?void 0:y.month(u,{width:"abbreviated",context:"standalone"})}):["Jan","Feb","Mar","Apr","May","June","July","Aug","Sept","Oct","Nov","Dec"],c=u=>{t(Cr(e,parseInt(u.target.value,10)))},l=u=>{t(Tr(e,parseInt(u.target.value,10)))};return q.createElement(he,{container:!0,justifyContent:"space-between",alignItems:"center"},q.createElement(he,{item:!0,sx:{padding:"5px"}},q.createElement(Be,{sx:{padding:"10px","&:hover":{background:"none"}},disabled:r,onClick:o},q.createElement(Mr,{color:r?"disabled":"action"}))),q.createElement(he,{item:!0},q.createElement(vn,{variant:"standard"},q.createElement(Pn,{value:Sr(e),onChange:c,MenuProps:{disablePortal:!0}},i.map((u,y)=>q.createElement(yn,{key:u,value:y},u))))),q.createElement(he,{item:!0},q.createElement(vn,{variant:"standard"},q.createElement(Pn,{value:kr(e),onChange:l,MenuProps:{disablePortal:!0}},us(e,30).map(u=>q.createElement(yn,{key:u,value:u},u))))),q.createElement(he,{item:!0,sx:{padding:"5px"}},q.createElement(Be,{sx:{padding:"10px","&:hover":{background:"none"}},disabled:n,onClick:a},q.createElement(Vr,{color:n?"disabled":"action"}))))},fs=({startOfRange:e,endOfRange:t,disabled:n,highlighted:r,outlined:a,filled:o,onClick:s,onHover:i,value:c})=>q.createElement(Re,{sx:{display:"flex",borderRadius:e?"50% 0 0 50%":t?"0 50% 50% 0":void 0,backgroundColor:l=>!n&&r?l.palette.primary.light:void 0}},q.createElement(Be,{sx:Object.assign({height:"36px",width:"36px",padding:0,border:l=>!n&&a?`1px solid ${l.palette.primary.dark}`:void 0},!n&&o?{"&:hover":{backgroundColor:l=>l.palette.primary.dark},backgroundColor:l=>l.palette.primary.dark}:{}),disabled:n,onClick:s,onMouseOver:i},q.createElement(ge,{sx:{lineHeight:1.6,color:l=>n?l.palette.text.secondary:o?l.palette.primary.contrastText:l.palette.text.primary},variant:"body2"},c)));var vt;(function(e){e[e.Previous=-1]="Previous",e[e.Next=1]="Next"})(vt||(vt={}));const Sn=e=>{var t;const{helpers:n,handlers:r,value:a,dateRange:o,marker:s,setValue:i,minDate:c,maxDate:l,locale:u}=e,y=((t=u==null?void 0:u.options)===null||t===void 0?void 0:t.weekStartsOn)||0,D=typeof u<"u"?[...Array(7).keys()].map(d=>{var p;return(p=u.localize)===null||p===void 0?void 0:p.day((d+y)%7,{width:"short",context:"standalone"})}):["Su","Mo","Tu","We","Th","Fr","Sa"],[h,S]=e.navState;return q.createElement(Kt,{square:!0,elevation:0,sx:{width:290}},q.createElement(he,{container:!0},q.createElement(ds,{date:a,setDate:i,nextDisabled:!S,prevDisabled:!h,onClickPrevious:()=>r.onMonthNavigate(s,vt.Previous),onClickNext:()=>r.onMonthNavigate(s,vt.Next),locale:u}),q.createElement(he,{item:!0,container:!0,direction:"row",justifyContent:"space-between",sx:{marginTop:"10px",paddingLeft:"30px",paddingRight:"30px"}},D.map((d,p)=>q.createElement(ge,{color:"textSecondary",key:p,variant:"caption"},d))),q.createElement(he,{item:!0,container:!0,direction:"column",justifyContent:"space-between",sx:{paddingLeft:"15px",paddingRight:"15px",marginTop:"15px",marginBottom:"20px"}},ns(os(a,u),7).map((d,p)=>q.createElement(he,{key:p,container:!0,direction:"row",justifyContent:"center"},d.map(b=>{const m=rs(o,b),M=ss(o,b),k=is(o),P=as(o,b)||n.inHoverRange(b);return q.createElement(fs,{key:Bt(b,"dd-MM-yyyy"),filled:m||M,outlined:Qr(b),highlighted:P&&!k,disabled:!Jt(a,b)||!Xt(b,{start:c,end:l}),startOfRange:m&&!k,endOfRange:M&&!k,onClick:()=>r.onDayClick(b),onHover:()=>r.onDayHover(b),value:Pr(b)})}))))))},kn=(e,t)=>{const{startDate:n,endDate:r}=e,{startDate:a,endDate:o}=t;return n&&a&&r&&o?Ee(n,a)&&Ee(r,o):!1},hs=({ranges:e,setRange:t,selectedRange:n})=>q.createElement(Bn,null,e.map((r,a)=>q.createElement(Gn,{button:!0,key:a,onClick:()=>t(r),sx:[kn(r,n)&&{backgroundColor:o=>o.palette.primary.dark,color:"primary.contrastText","&:hover":{color:"inherit"}}]},q.createElement(Or,{primaryTypographyProps:{variant:"body2",sx:{fontWeight:kn(r,n)?"bold":"normal"}}},r.label)))),Yt={FIRST_MONTH:Symbol("firstMonth"),SECOND_MONTH:Symbol("secondMonth")},ms=e=>{const{ranges:t,dateRange:n,minDate:r,maxDate:a,firstMonth:o,setFirstMonth:s,secondMonth:i,setSecondMonth:c,setDateRange:l,helpers:u,handlers:y,locale:D}=e,{startDate:h,endDate:S}=n,d=vr(i,o)>=2,p={dateRange:n,minDate:r,maxDate:a,helpers:u,handlers:y};return q.createElement(Kt,{elevation:5,square:!0},q.createElement(he,{container:!0,direction:"row",wrap:"nowrap"},q.createElement(he,null,q.createElement(hs,{selectedRange:n,ranges:t,setRange:l})),q.createElement(Lt,{orientation:"vertical",flexItem:!0}),q.createElement(he,null,q.createElement(he,{container:!0,sx:{padding:"20px 70px"},alignItems:"center"},q.createElement(he,{item:!0,sx:{flex:1,textAlign:"center"}},q.createElement(ge,{variant:"subtitle1"},h?Bt(h,"dd MMMM yyyy",{locale:D}):"Start Date")),q.createElement(he,{item:!0,sx:{flex:1,textAlign:"center"}},q.createElement(Xn,{color:"action"})),q.createElement(he,{item:!0,sx:{flex:1,textAlign:"center"}},q.createElement(ge,{variant:"subtitle1"},S?Bt(S,"dd MMMM yyyy",{locale:D}):"End Date"))),q.createElement(Lt,null),q.createElement(he,{container:!0,direction:"row",justifyContent:"center",wrap:"nowrap"},q.createElement(Sn,Object.assign({},p,{value:o,setValue:s,navState:[!0,d],marker:Yt.FIRST_MONTH,locale:D})),q.createElement(Lt,{orientation:"vertical",flexItem:!0}),q.createElement(Sn,Object.assign({},p,{value:i,setValue:c,navState:[d,!0],marker:Yt.SECOND_MONTH,locale:D}))))))},ps=e=>{const t=new Date,{open:n,onChange:r,initialDateRange:a,minDate:o,maxDate:s,definedRanges:i=cs(new Date,e.locale),locale:c}=e,l=Mn(o,tt(t,-10)),u=Mn(s,tt(t,10)),[y,D]=ls(a||{},l,u),[h,S]=w.useState(Object.assign({},a)),[d,p]=w.useState(),[b,m]=w.useState(y||t),[M,k]=w.useState(D||Ve(b,1)),{startDate:P,endDate:O}=h,A=F=>{lt(F,M)&&m(F)},I=F=>{wn(F,b)&&k(F)},T=F=>{let{startDate:_,endDate:B}=F;if(_&&B)F.startDate=_=Qn([_,l]),F.endDate=B=Jn([B,u]),S(F),r(F),m(_),k(Jt(_,B)?Ve(_,1):B);else{const N={};S(N),r(N),m(t),k(Ve(b,1))}},L=F=>{if(P&&!O&&!lt(F,P)){const _={startDate:P,endDate:F};r(_),S(_)}else S({startDate:F,endDate:void 0});p(F)},V=(F,_)=>{if(F===Yt.FIRST_MONTH){const B=Ve(b,_);lt(B,M)&&m(B)}else{const B=Ve(M,_);lt(b,B)&&k(B)}},E=F=>{P&&!O&&(!d||!Ee(F,d))&&p(F)},C={inHoverRange:F=>P&&!O&&d&&wn(d,P)&&Xt(F,{start:P,end:d})},v={onDayClick:L,onDayHover:E,onMonthNavigate:V};return n?w.createElement(ms,{dateRange:h,minDate:l,maxDate:u,ranges:i,firstMonth:b,secondMonth:M,setFirstMonth:A,setSecondMonth:I,setDateRange:T,helpers:C,handlers:v,locale:c}):null},gs=e=>{const{closeOnClickOutside:t,wrapperClassName:n,toggle:r,open:a}=e,o=()=>{t!==!1&&r()},s=i=>(i==null?void 0:i.key)==="Escape"&&o();return q.createElement(Re,{sx:{position:"relative"}},a&&q.createElement(Re,{sx:{position:"fixed",height:"100vh",width:"100vw",bottom:0,zIndex:0,right:0,left:0,top:0},onKeyPress:s,onClick:o}),q.createElement(Re,{sx:{position:"relative",zIndex:1},className:n},q.createElement(ps,Object.assign({},e))))},ys=e=>q.createElement(gs,Object.assign({},e)),bs=["localeText"],Ht=w.createContext(null),tn=function(t){var n;const{localeText:r}=t,a=ae(t,bs),{utils:o,localeText:s}=(n=w.useContext(Ht))!=null?n:{utils:void 0,localeText:void 0},i=me({props:a,name:"MuiLocalizationProvider"}),{children:c,dateAdapter:l,dateFormats:u,dateLibInstance:y,adapterLocale:D,localeText:h}=i,S=w.useMemo(()=>x({},h,s,r),[h,s,r]),d=w.useMemo(()=>{if(!l)return o||null;const m=new l({locale:D,formats:u,instance:y});if(!m.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
|
|
2
2
|
`));return m},[l,D,u,y,o]),p=w.useMemo(()=>d?{minDate:d.date("1900-01-01T00:00:00.000"),maxDate:d.date("2099-12-31T00:00:00.000")}:null,[d]),b=w.useMemo(()=>({utils:d,defaultDates:p,localeText:S}),[p,d,S]);return g.jsx(Ht.Provider,{value:b,children:c})},Ds=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:x({},e)}}}}),eo={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},xs=eo;Ds(eo);const He=()=>{const e=w.useContext(Ht);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
|
|
3
3
|
`));if(e.utils===null)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(`
|
|
4
4
|
`));const t=w.useMemo(()=>x({},xs,e.localeText),[e.localeText]);return w.useMemo(()=>x({},e,{localeText:t}),[e,t])},ue=()=>He().utils,pt=()=>He().defaultDates,We=()=>He().localeText,gt=e=>{const t=ue(),n=w.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current};function ws(e){return typeof e=="string"}function vs(e,t,n){return e===void 0||ws(e)?t:x({},t,{ownerState:x({},t.ownerState,n)})}function Ps(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function nn(e,t,n){return typeof e=="function"?e(t,n):e}function Cn(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Ms(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:a,className:o}=e;if(!t){const h=be(n==null?void 0:n.className,o,a==null?void 0:a.className,r==null?void 0:r.className),S=x({},n==null?void 0:n.style,a==null?void 0:a.style,r==null?void 0:r.style),d=x({},n,a,r);return h.length>0&&(d.className=h),Object.keys(S).length>0&&(d.style=S),{props:d,internalRef:void 0}}const s=Ps(x({},a,r)),i=Cn(r),c=Cn(a),l=t(s),u=be(l==null?void 0:l.className,n==null?void 0:n.className,o,a==null?void 0:a.className,r==null?void 0:r.className),y=x({},l==null?void 0:l.style,n==null?void 0:n.style,a==null?void 0:a.style,r==null?void 0:r.style),D=x({},l,n,c,i);return u.length>0&&(D.className=u),Object.keys(y).length>0&&(D.style=y),{props:D,internalRef:l.ref}}const Ss=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function pe(e){var t;const{elementType:n,externalSlotProps:r,ownerState:a,skipResolvingSlotProps:o=!1}=e,s=ae(e,Ss),i=o?{}:nn(r,a),{props:c,internalRef:l}=Ms(x({},s,{externalSlotProps:i})),u=je(l,i==null?void 0:i.ref,(t=e.additionalProps)==null?void 0:t.ref);return vs(n,x({},c,{ref:u}),a)}const ks=Ye(g.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Cs=Ye(g.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),Ts=Ye(g.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),Is=Ye(g.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");Ye(g.jsxs(w.Fragment,{children:[g.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),g.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");Ye(g.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");Ye(g.jsxs(w.Fragment,{children:[g.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),g.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");function Vs(e){return xe("MuiPickersArrowSwitcher",e)}we("MuiPickersArrowSwitcher",["root","spacer","button"]);const Rs=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],Os=["ownerState"],Es=["ownerState"],Fs=oe("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),As=oe("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),Tn=oe(Be,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>x({},e.hidden&&{visibility:"hidden"})),Ls=e=>{const{classes:t}=e;return De({root:["root"],spacer:["spacer"],button:["button"]},Vs,t)},js=w.forwardRef(function(t,n){var r,a,o,s;const c=St().direction==="rtl",l=me({props:t,name:"MuiPickersArrowSwitcher"}),{children:u,className:y,slots:D,slotProps:h,isNextDisabled:S,isNextHidden:d,onGoToNext:p,nextLabel:b,isPreviousDisabled:m,isPreviousHidden:M,onGoToPrevious:k,previousLabel:P}=l,O=ae(l,Rs),A=l,I=Ls(A),T={isDisabled:S,isHidden:d,goTo:p,label:b},L={isDisabled:m,isHidden:M,goTo:k,label:P},V=(r=D==null?void 0:D.previousIconButton)!=null?r:Tn,E=pe({elementType:V,externalSlotProps:h==null?void 0:h.previousIconButton,additionalProps:{size:"medium",title:L.label,"aria-label":L.label,disabled:L.isDisabled,edge:"end",onClick:L.goTo},ownerState:x({},A,{hidden:L.isHidden}),className:I.button}),R=(a=D==null?void 0:D.nextIconButton)!=null?a:Tn,C=pe({elementType:R,externalSlotProps:h==null?void 0:h.nextIconButton,additionalProps:{size:"medium",title:T.label,"aria-label":T.label,disabled:T.isDisabled,edge:"start",onClick:T.goTo},ownerState:x({},A,{hidden:T.isHidden}),className:I.button}),v=(o=D==null?void 0:D.leftArrowIcon)!=null?o:Cs,F=pe({elementType:v,externalSlotProps:h==null?void 0:h.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),_=ae(F,Os),B=(s=D==null?void 0:D.rightArrowIcon)!=null?s:Ts,N=pe({elementType:B,externalSlotProps:h==null?void 0:h.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),Z=ae(N,Es);return g.jsxs(Fs,x({ref:n,className:be(I.root,y),ownerState:A},O,{children:[g.jsx(V,x({},E,{children:c?g.jsx(B,x({},Z)):g.jsx(v,x({},_))})),u?g.jsx(ge,{variant:"subtitle1",component:"span",children:u}):g.jsx(As,{className:I.spacer,ownerState:A}),g.jsx(R,x({},C,{children:c?g.jsx(v,x({},_)):g.jsx(B,x({},Z))}))]}))}),ot=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),Ns=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const a=n??r;let o;if(e!=null)o=e;else if(a.includes(t))o=t;else if(a.length>0)o=a[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:a,openTo:o}},$s=["hours","minutes","seconds"],_s=e=>$s.includes(e),In=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Bs=(e,t)=>(n,r)=>e?t.isAfter(n,r):In(n,t)>In(r,t);function to({onChange:e,onViewChange:t,openTo:n,view:r,views:a,autoFocus:o,focusedView:s,onFocusedViewChange:i}){var c,l;const u=w.useRef(n),y=w.useRef(a),D=w.useRef(a.includes(n)?n:a[0]),[h,S]=Ne({name:"useViews",state:"view",controlled:r,default:D.current}),d=w.useRef(o?h:null),[p,b]=Ne({name:"useViews",state:"focusedView",controlled:s,default:d.current});w.useEffect(()=>{(u.current&&u.current!==n||y.current&&y.current.some(L=>!a.includes(L)))&&(S(a.includes(n)?n:a[0]),y.current=a,u.current=n)},[n,S,h,a]);const m=a.indexOf(h),M=(c=a[m-1])!=null?c:null,k=(l=a[m+1])!=null?l:null,P=G((L,V)=>{b(V?L:E=>L===E?null:E),i==null||i(L,V)}),O=G(L=>{L!==h&&(S(L),P(L,!0),t&&t(L))}),A=G(()=>{k&&O(k),P(k,!0)}),I=G((L,V,E)=>{const R=V==="finish",C=E?a.indexOf(E)<a.length-1:!!k;e(L,R&&C?"partial":V),R&&A()}),T=G((L,V,E)=>{e(L,V?"partial":"finish",E),V&&(O(V),P(V,!0))});return{view:h,setView:O,focusedView:p,setFocusedView:P,nextView:k,previousView:M,defaultView:D.current,goToNextView:A,setValueAndGoToNextView:I,setValueAndGoToView:T}}function Ys(e,{disableFuture:t,maxDate:n,timezone:r}){const a=ue();return w.useMemo(()=>{const o=a.dateWithTimezone(void 0,r),s=a.startOfMonth(t&&a.isBefore(o,n)?o:n);return!a.isAfter(s,e)},[t,n,e,a,r])}function Hs(e,{disablePast:t,minDate:n,timezone:r}){const a=ue();return w.useMemo(()=>{const o=a.dateWithTimezone(void 0,r),s=a.startOfMonth(t&&a.isAfter(o,n)?o:n);return!a.isBefore(s,e)},[t,n,e,a,r])}const mt=36,Tt=2,no=320,oo=358,Ws=oe("div")({overflow:"hidden",width:no,maxHeight:oo,display:"flex",flexDirection:"column",margin:"0 auto"}),ct=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:a,isDateDisabled:o,utils:s,timezone:i})=>{const c=s.startOfDay(s.dateWithTimezone(void 0,i));n&&s.isBefore(a,c)&&(a=c),t&&s.isAfter(r,c)&&(r=c);let l=e,u=e;for(s.isBefore(e,a)&&(l=a,u=null),s.isAfter(e,r)&&(u&&(u=r),l=null);l||u;){if(l&&s.isAfter(l,r)&&(l=null),u&&s.isBefore(u,a)&&(u=null),l){if(!o(l))return l;l=s.addDays(l,1)}if(u){if(!o(u))return u;u=s.addDays(u,-1)}}return null},zs=(e,t)=>t==null||!e.isValid(t)?null:t,Se=(e,t,n)=>t==null||!e.isValid(t)?n:t,Us=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),on=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const a=r[r.length-1];r.push(e.addMonths(a,1))}return r},Wt=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},ro=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),Ks=["year","month","day"],Vn=e=>Ks.includes(e),rn=(e,{format:t,views:n},r)=>{if(t!=null)return t;const a=e.formats;return ot(n,["year"])?a.year:ot(n,["month"])?a.month:ot(n,["day"])?a.dayOfMonth:ot(n,["month","year"])?`${a.month} ${a.year}`:ot(n,["day","month"])?`${a.month} ${a.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?a.normalDateWithWeekday:a.normalDate:a.keyboardDate},sn=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:a})=>{var o,s;const i=ue(),c=w.useRef(n),l=(o=t??c.current)!=null?o:a.emptyValue,u=w.useMemo(()=>a.getTimezone(i,l),[i,a,l]),y=G(d=>u==null?d:a.setTimezone(i,u,d)),D=(s=e??u)!=null?s:"default",h=w.useMemo(()=>a.setTimezone(i,D,l),[a,i,D,l]),S=G((d,...p)=>{const b=y(d);r==null||r(b,...p)});return{value:h,handleValueChange:S,timezone:D}},an=({name:e,timezone:t,value:n,defaultValue:r,onChange:a,valueManager:o})=>{const[s,i]=Ne({name:e,state:"value",controlled:n,default:r??o.emptyValue}),c=G((l,...u)=>{i(l),a==null||a(l,...u)});return sn({timezone:t,value:s,defaultValue:void 0,onChange:c,valueManager:o})},Ie={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},qs=e=>Math.max(...e.map(t=>{var n;return(n=Ie[t.type])!=null?n:1})),rt=(e,t,n)=>{if(t===Ie.year)return e.startOfYear(n);if(t===Ie.month)return e.startOfMonth(n);if(t===Ie.day)return e.startOfDay(n);let r=n;return t<Ie.minutes&&(r=e.setMinutes(r,0)),t<Ie.seconds&&(r=e.setSeconds(r,0)),t<Ie.milliseconds&&(r=e.setMilliseconds(r,0)),r},Gs=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:a})=>{var o;let s=a?a():rt(t,n,ro(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,s)&&(s=rt(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,s)&&(s=rt(t,n,e.maxDate));const i=Bs((o=e.disableIgnoringDatePartForTimeValidation)!=null?o:!1,t);return e.minTime!=null&&i(e.minTime,s)&&(s=rt(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Wt(t,s,e.minTime))),e.maxTime!=null&&i(s,e.maxTime)&&(s=rt(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Wt(t,s,e.maxTime))),s},so=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ce as a}from"./index-MMjnoZvc.js";a.defaults.timeout=10*1e3;const e=a.create();export{e as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b4 as Bt,c6 as It,fN as Zg,P as V,aR as Qg,r as Nt,aS as _r,j as K,a9 as Xd,n as Jg,u as ef,S as tf,B as Lr,bf as nf,bP as rf,G as af,A as L1,T as Yt,L as x1,w as sf}from"./index-
|
|
1
|
+
import{b4 as Bt,c6 as It,fN as Zg,P as V,aR as Qg,r as Nt,aS as _r,j as K,a9 as Xd,n as Jg,u as ef,S as tf,B as Lr,bf as nf,bP as rf,G as af,A as L1,T as Yt,L as x1,w as sf}from"./index-MMjnoZvc.js";import{d as Zd,f as zn,a as Ei,b as bi,c as v1,S as of,s as Ct,h as un,p as F1,e as ti,n as M1,w as Hn}from"./index-WO73mi9B.js";import{T as lf}from"./MoreVert-P_r5HcyN.js";import{_ as uf}from"./useLocalStorage-HSuIS8dC.js";import{R as cf}from"./dashboard-fV0BczKQ.js";import{F as df}from"./FormControl-FuFP_-xW.js";import{I as pf}from"./InputLabel-sJuMXXTU.js";import{S as gf}from"./Select-JkWGcMNY.js";import{P as ff}from"./Pagination-tkn_cWWJ.js";import"./index-kGlwpUUE.js";import"./permission-ZvEWJSxV.js";import"./useAsync-4TdvRTWi.js";import"./session-ieY35lEq.js";import"./confirm-U8trI8sh.js";import"./DialogContentText-rCKX8V2o.js";import"./Alert-vWiM7yjS.js";import"./format-error-2W3A06Jw.js";import"./useSetState-MgFJAi6n.js";import"./PlayArrow-aZsZH5W7.js";import"./ButtonGroup-F595PjjB.js";import"./RadioGroup-R24vXL2w.js";import"./FormControlLabel-efXmMNAj.js";import"./useFormControl-Qd1sZJH7.js";import"./FormGroup-62MBopyd.js";import"./Avatar-yqyuIZ56.js";import"./index-ZWk0ce0v.js";import"./spaces-zU6EswmD.js";import"./index-bkJmmZxf.js";import"./api-VkXAZ8rS.js";import"./fallback-liNYH2Ir.js";import"./wallet-hidden-topbar-QxBPCxK0.js";import"./ListItem-X7GPpG5G.js";import"./selector-aWeTH_Xy.js";import"./index-J75uP8vG.js";import"./nav-menu-q73bLcEq.js";import"./MoreHoriz-UJyFgSQT.js";import"./ExpandMore-cCR6PfVd.js";import"./Toolbar-xxqBJj87.js";import"./Hidden-_2gAiz8I.js";import"./Checkbox-FAvvPRMi.js";import"./LastPage-yJC3z7U6.js";const B1=["http","https","mailto","tel"];function mf(e){const t=(e||"").trim(),n=t.charAt(0);if(n==="#"||n==="/")return t;const r=t.indexOf(":");if(r===-1)return t;let a=-1;for(;++a<B1.length;){const i=B1[a];if(r===i.length&&t.slice(0,i.length).toLowerCase()===i)return t}return a=t.indexOf("?"),a!==-1&&r>a||(a=t.indexOf("#"),a!==-1&&r>a)?t:"javascript:void(0)"}/*!
|
|
2
2
|
* Determine if an object is a Buffer
|
|
3
3
|
*
|
|
4
4
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as o,F as n}from"./index-
|
|
1
|
+
import{j as o,F as n}from"./index-MMjnoZvc.js";function a({...t}){return o.jsx(n,{className:"bottom-button",variant:"contained",color:"primary",...t})}export{a as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,E as s,j as t,ex as r,P as c}from"./index-
|
|
1
|
+
import{r as i,E as s,j as t,ex as r,P as c}from"./index-MMjnoZvc.js";function n({children:p,...e}){const{t:o}=i.useContext(s);return t.jsx(r,{tip:o("common.copyTip"),copiedTip:o("common.copiedTip"),...e,children:p})}n.propTypes={children:c.any.isRequired};export{n as C};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{G as m,u as P,r,a8 as B,ad as C,j as t,S as T,B as h,cR as _,c as $,w as F,V as I,X as M,n as N,cB as A,cS as X,P as z,ag as O}from"./index-
|
|
1
|
+
import{G as m,u as P,r,a8 as B,ad as C,j as t,S as T,B as h,cR as _,c as $,w as F,V as I,X as M,n as N,cB as A,cS as X,P as z,ag as O}from"./index-MMjnoZvc.js";import{L as V}from"./launch-result-message-F8Ofxx_e.js";import{S as v}from"./button-zcH1UQ55.js";import{S as W}from"./layout-BLaaNYtw.js";import"./content-layout-rHIg8LgN.js";const G=m(V)`
|
|
2
2
|
&& .result-footer {
|
|
3
3
|
height: 120px;
|
|
4
4
|
> div {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g9 as hp,S as on,ga as bp,gb as vp,ez as yp,gc as Cp,gd as wp,B as fe,eT as Dp,ge as xp,gf as Pp,bd as Tp,gg as Sp,gh as kp,K as Lt,M as se,j as T,P as re,r as M,E as un,H as pi,c as nc,a9 as Pt,bB as gn,$ as nn,Y as ln,b8 as an,a as _t,aK as at,n as Oe,bi as pn,u as It,cN as Be,gi as Ep,ab as Qe,b4 as mi,cq as Ho,eN as Rp,gj as Mp,ew as te,aM as Ne,aN as Ve,aO as ae,T as Ct,aS as z,bT as Lr,aR as we,bU as Zr,aV as Fe,aQ as _e,gk as Op,dy as ea,cm as ta,gl as rc,bX as ac,bR as Ip,bV as hn,bz as fr,al as Qt,aP as Ap,dz as oc,b as Yn,cJ as ic,bC as _p,a7 as Lp,gm as jp,cn as Ia,e7 as Bp,cK as jr,gn as $l,cI as Br,U as na,go as Fp,c6 as Ce,fy as Nl,gp as $p,dO as gi,gq as Np,cx as Vp,eS as Vl,G as Tt,bk as nr,eh as zp,gr as lc,gs as Wp,fC as qp,ei as bn,ee as hi,am as sc,bf as qt,b9 as Pn,w as Pe,gt as Up,cS as uc,fG as cc,F as Bn,bP as Gp,by as Aa,ed as Fn,e1 as Hp,bW as Yp,gu as Kp,cs as Qp}from"./index-lm42cyj2.js";import{d as Yo}from"./Add-bt6SVv9G.js";import{E as Xp,d as bi,F as Jp,a as vi,L as dc}from"./Edit-5qpZEtkS.js";import{d as Zp}from"./InfoOutlined-n4SuHMob.js";import{d as fc}from"./Launch-_TuIFwCs.js";import{W as vn,f as em,g as tm,h as nm,i as rm,j as pc,k as am,B as zl,l as om,m as im,n as lm}from"./dashboard-ucoCpVVE.js";import{d as pr}from"./useSetState-y2knwpSH.js";import{I as _a}from"./index-S4CEecHq.js";import{W as sm}from"./did-address-EvLV_neh.js";import{t as um,m as Ze}from"./memoize-one.esm-_hBYdtBF.js";import{T as cm}from"./MoreVert-6ctaEpVo.js";import{C as Tn,D as Ko}from"./confirm-HILJ5sgy.js";import{w as Sn,P as Qo}from"./permission-nZTsZ0WS.js";import{f as bt}from"./format-error-wykwIGB8.js";import{a as dm,S as fm}from"./switch-control-Ibk2Hq71.js";import{C as pm,d as Wl,B as mm}from"./ChevronRight-LWjgeEYU.js";import{b as gm,t as hm,c as ql,T as bm}from"./index-q1L4Rt-P.js";import{r as kn,V as vm,R as ym,F as Cm,a as wm,e as Dm,g as jt,f as At,s as ra,h as cn,q as mc,p as yi,k as gc,m as xm,l as Pm,i as En,c as dn,d as aa,o as Tm,n as Sm,v as hc,y as km,w as Em,x as Rm,j as Mm,u as Om,t as Im,b as Am,B as _m,z as Lm}from"./FilterList-K9Uso_4u.js";import{d as jm,_ as Z,b as Ul,c as Bm,a as Fm,e as $m}from"./redux-XOuz_cVf.js";import{S as Nm,d as Vm}from"./Search-R2YWOork.js";import{I as zm,g as Wm,i as qm}from"./Icon-tk1MFHkY.js";import{C as Um,r as De,a as Ci,t as ct,b as ve,e as Xo,d as Gm,s as Fr,g as Jo,m as bc,c as vc,f as Hm,h as Ym,i as Zo,j as yc,k as Km,l as Qm,n as Cc,o as wi,p as Gl,q as Xm,u as Hl,v as Jm,w as Zm,x as Vt,y as eg,z as Yl,A as tg,B as La,D as Kl,E as ng,F as ja,G as $n,H as rg,I as ag,J as Dr,K as Ba,L as Ql,M as Fa,N as $a,O as og,P as ig,Q as lg,R as sg,S as ug,T as cg,U as dg,V as fg,W as pg,X as mg,Y as gg,Z as hg}from"./index-Z3z1VFLe.js";import{D as bg}from"./DeleteOutline-GkpxzkXa.js";import{o as vg,e as yg,i as Cg,p as wg,g as Dg,d as Xl,c as xg,b as Ee,_ as Se,r as Xt}from"./slicedToArray-rvrRoJWm.js";import{t as Pg,k as Tg,l as Sg,_ as ke}from"./jss-plugin-props-sort.esm-6qLpgyYP.js";import{F as kg,f as Eg,a as Rg,T as Et}from"./TextField-Wyekhk78.js";import{_ as Mg}from"./toPropertyKey-NzAT2yhV.js";import{S as Og}from"./Skeleton-vOZfRyQG.js";import{G as Kn}from"./Grid-zyeSJ3wZ.js";import{M as wc,g as Ig,i as Ag}from"./InputAdornment-xLAUWmxY.js";import{C as Jl}from"./click-to-copy-y405iYqU.js";import{d as _g}from"./ArrowDropDown-BVRz1Dl4.js";import{A as Zl}from"./Alert-fzSO0kDd.js";import{R as Lg,a as es}from"./RadioGroup-Wf8W3ZUP.js";import{F as ei}from"./FormControlLabel-AkL5QQtq.js";import{d as jg}from"./PlayArrow-GRR1UfvW.js";import{d as Dc,A as Bg,a as Fg,b as $g,C as Ng}from"./add-component-core-eUon1xcH.js";import{v as Vg,a as $r}from"./util-ERLM63JX.js";import{i as zg}from"./index-srroQufO.js";import{d as Wg}from"./LockIcon-_VbgQnyL.js";import{A as qg}from"./Avatar-K6OaXDZ4.js";import{A as Ug}from"./actions-Xb93Fqn6.js";import{C as Gg}from"./Checkbox-9-rDGnGt.js";import"./Done-j5eCF6jg.js";import"./logo-uploader--gyIl65f.js";import"./index-YMezvWCK.js";import"./EditIcon-PLG9-IL7.js";import"./ButtonGroup-oHv_n3Uq.js";import"./useLocalStorage-DpKr2KRx.js";import"./index-hND2553g.js";import"./session-FvRnItWJ.js";import"./spaces-Zfss07Dw.js";import"./api-bPHHyjfQ.js";import"./fallback-kaIBtHL1.js";import"./wallet-hidden-topbar-NDSHw08q.js";import"./ListItem-mXlOmPfw.js";import"./selector-U2IzDfpl.js";import"./index-rFu-FqJl.js";import"./nav-menu-n-gHiZNN.js";import"./MoreHoriz-bNNdGHUX.js";import"./ExpandMore-WRbnfWmE.js";import"./Toolbar-7x5-T7Ys.js";import"./Hidden-GHQEcd1H.js";import"./DialogContentText-Vu-BdXEX.js";import"./useAsync-c4_liX2s.js";import"./TableRow-OaqX6Tqj.js";import"./FormControl-iRfjRIOl.js";import"./useFormControl-74pXAYtI.js";import"./FormGroup-wvHZzmmD.js";import"./InputLabel-9dhtp71X.js";import"./Select-3f4a0_GV.js";import"./LastPage-oKswUEqc.js";import"./uniqBy-E9ysHx3q.js";import"./page-header-k9pxrTyz.js";import"./index-YYJ36RNU.js";import"./lottie-Ntb0WgKL.js";import"./launch-result-message-G8Q-vMgj.js";import"./index-kISfyqYd.js";import"./Google-ZWXikJO_.js";import"./index-QMHlq_j4.js";import"./Stepper-qv7dWtzH.js";import"./preact.module-yJdvQMHZ.js";import"./content-layout-joIdD4Ha.js";import"./use-blocklet-info-for-connect-did-spaces-ufLIGKTr.js";import"./index-QN3Atre9.js";const Hg=Object.freeze(Object.defineProperty({__proto__:null,circularProgressClasses:hp,default:on,getCircularProgressUtilityClass:bp},Symbol.toStringTag,{value:"Module"})),Yg=Object.freeze(Object.defineProperty({__proto__:null,collapseClasses:vp,default:yp,getCollapseUtilityClass:Cp},Symbol.toStringTag,{value:"Module"})),Kg=Object.freeze(Object.defineProperty({__proto__:null,boxClasses:wp,default:fe},Symbol.toStringTag,{value:"Module"})),Qg=Object.freeze(Object.defineProperty({__proto__:null,default:kg,formHelperTextClasses:Eg,getFormHelperTextUtilityClasses:Rg},Symbol.toStringTag,{value:"Module"})),Xg=Object.freeze(Object.defineProperty({__proto__:null,default:zm,getIconUtilityClass:Wm,iconClasses:qm},Symbol.toStringTag,{value:"Module"})),Jg=Object.freeze(Object.defineProperty({__proto__:null,default:wc,getInputAdornmentUtilityClass:Ig,inputAdornmentClasses:Ag},Symbol.toStringTag,{value:"Module"})),Zg=Object.freeze(Object.defineProperty({__proto__:null,default:Dp,getLinearProgressUtilityClass:xp,linearProgressClasses:Pp},Symbol.toStringTag,{value:"Module"})),eh=Object.freeze(Object.defineProperty({__proto__:null,default:Tp,getMenuUtilityClass:Sp,menuClasses:kp},Symbol.toStringTag,{value:"Module"}));var Di={},th=se;Object.defineProperty(Di,"__esModule",{value:!0});var xc=Di.default=void 0,nh=th(Lt()),rh=T,ah=(0,nh.default)((0,rh.jsx)("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3v7.12zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8h1.5z"}),"Update");xc=Di.default=ah;var xi={},oh=se;Object.defineProperty(xi,"__esModule",{value:!0});var Pc=xi.default=void 0,ih=oh(Lt()),lh=T,sh=(0,ih.default)((0,lh.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");Pc=xi.default=sh;function Pi({sourceInfo:e,blocklet:t}){var a;const{t:n}=M.useContext(un);return T.jsxs(fe,{display:"flex",alignItems:"center",children:[T.jsx(cm,{type:"success",children:um(e.source)},"source"),e.source==="registry"&&T.jsx(pi,{href:nc(e.deployedFrom,"blocklets",((a=t==null?void 0:t.meta)==null?void 0:a.bundleDid)||""),target:"_blank",className:"page-link",underline:"hover",style:{display:"flex",alignItems:"center",marginLeft:8},children:n("blocklet.overview.viewInStore")})]})}Pi.propTypes={sourceInfo:re.shape({source:re.string,deployedFrom:re.string}),blocklet:re.object};Pi.defaultProps={sourceInfo:{},blocklet:{}};var Ti={},uh=se;Object.defineProperty(Ti,"__esModule",{value:!0});var Tc=Ti.default=void 0,ch=uh(Lt()),dh=T,fh=(0,ch.default)((0,dh.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward");Tc=Ti.default=fh;function oa({blocklet:e,checkUpgrade:t,hasPermission:n,...a}){const{api:r}=Pt(),{t:i}=M.useContext(un),[o,l]=M.useState(!1),[u,s]=M.useState(""),[d,c]=M.useState(null),[f,b]=M.useState(null);M.useEffect(()=>{c(null),t&&(e.mode,nn.BLOCKLET_MODES.DEVELOPMENT)},[e,t]);const v=()=>{l(!1),b(null)},y=async()=>{l(!0);try{const g={did:e.meta.did,version:d.version,storeUrl:d.registryUrl||""};await pn(2e3),await r.upgradeBlocklet({input:g})}catch(g){Oe.error(`Blocklet upgrade failed: ${bt(g)}`)}finally{l(!1),b(null)}},S={title:`${i("common.upgrade")} ${i("common.blocklet")} ${ln(e)}`,description:i("blocklet.action.upgradeDescription"),confirm:i("blocklet.action.confirmUpgrade"),cancel:i("common.cancel"),onConfirm:y,onCancel:v};return n&&d&&!an(e.status)?T.jsxs(T.Fragment,{children:[T.jsx(vn,{...a,children:e.meta.version}),T.jsx(_t,{title:i("common.updateAvailable",{version:d.version}),children:T.jsx(at,{size:"small",style:{marginLeft:8},disabled:o,onClick:()=>b(S),children:o?T.jsx(on,{size:16}):T.jsx(Tc,{style:{fontSize:16,color:"red"}})})}),!!u&&T.jsx(Oe,{variant:"error",message:u,onClose:()=>s("")}),f&&T.jsx(Tn,{title:f.title,description:f.description,confirm:f.confirm,cancel:f.cancel,params:f.params,onConfirm:f.onConfirm,onCancel:f.onCancel})]}):T.jsx(vn,{...a,children:e.meta.version})}oa.propTypes={blocklet:re.object.isRequired,checkUpgrade:re.bool,hasPermission:re.bool};oa.defaultProps={checkUpgrade:!1,hasPermission:!1};const ph=Sn(oa,"mutate_blocklets"),mh=Sn(oa,"",gn);function gh(e){const{inService:t}=Pt();return t?T.jsx(mh,{...e}):T.jsx(ph,{...e})}function Si({children:e,...t}){const{t:n}=It(),{updateAutoCheckUpdate:a,autoCheckUpdate:r}=em(),i=async()=>{try{const l=!(r!=null&&r.enabled);await a({enabled:l}),Oe.success(n(l?"storage.spaces.autoCheckUpdate.enabled":"storage.spaces.autoCheckUpdate.disabled"))}catch(l){Oe.error(l.message)}},o=!!(r!=null&&r.enabled);return T.jsxs(fe,{display:"flex",flexDirection:"row",alignItems:"center",children:[e,T.jsx(_t,{title:n("storage.spaces.autoCheckUpdate.title"),arrow:!0,placement:"right",children:T.jsx("div",{children:T.jsx(dm,{checked:o,onChange:i,name:"enableWelcomePage",style:{...t.style,zoom:.8}})})})]})}Si.propTypes={children:re.any};Si.defaultProps={children:null};function Sc({mode:e,...t}){return e==="development"?T.jsx(vn,{type:"primary",...t,children:"DEV"}):null}Sc.propTypes={mode:re.string.isRequired};var kc={};const ze=Be(Ep);var Nn={},Na={},Va={},za={};const Ec=Be(Hg);var ts;function hh(){return ts||(ts=1,function(e){var t=se;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(ze),a=t(Ec),r=t(M),i=t(Qe),o=kn;function l(s){var d=(0,o.useTheme)();return r.default.createElement("div",{ref:s.forwardedRef,style:{display:"table",width:"100%",height:"100%",backgroundColor:d.palette.background.paper,opacity:.7}},r.default.createElement("div",{style:{display:"table-cell",width:"100%",height:"100%",verticalAlign:"middle",textAlign:"center"}},r.default.createElement(a.default,null)))}l.propTypes={theme:i.default.any};var u=r.default.forwardRef(function(d,c){return r.default.createElement(l,(0,n.default)({},d,{forwardedRef:c}))});e.default=u}(za)),za}var Wa={},qa={},Dt={};const Je=Be(jm);var bh={BASE_URL:"/.well-known/service/static",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const ns=e=>{let t;const n=new Set,a=(u,s)=>{const d=typeof u=="function"?u(t):u;if(!Object.is(d,t)){const c=t;t=s??typeof d!="object"?d:Object.assign({},t,d),n.forEach(f=>f(t,c))}},r=()=>t,l={setState:a,getState:r,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(bh&&"production")!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(a,r,l),l},Rc=e=>e?ns(e):ns;var Mc={exports:{}},Oc={},Ic={exports:{}},Ac={};/**
|
|
1
|
+
import{g9 as hp,S as on,ga as bp,gb as vp,ez as yp,gc as Cp,gd as wp,B as fe,eT as Dp,ge as xp,gf as Pp,bd as Tp,gg as Sp,gh as kp,K as Lt,M as se,j as T,P as re,r as M,E as un,H as pi,c as nc,a9 as Pt,bB as gn,$ as nn,Y as ln,b8 as an,a as _t,aK as at,n as Oe,bi as pn,u as It,cN as Be,gi as Ep,ab as Qe,b4 as mi,cq as Ho,eN as Rp,gj as Mp,ew as te,aM as Ne,aN as Ve,aO as ae,T as Ct,aS as z,bT as Lr,aR as we,bU as Zr,aV as Fe,aQ as _e,gk as Op,dy as ea,cm as ta,gl as rc,bX as ac,bR as Ip,bV as hn,bz as fr,al as Qt,aP as Ap,dz as oc,b as Yn,cJ as ic,bC as _p,a7 as Lp,gm as jp,cn as Ia,e7 as Bp,cK as jr,gn as $l,cI as Br,U as na,go as Fp,c6 as Ce,fy as Nl,gp as $p,dO as gi,gq as Np,cx as Vp,eS as Vl,G as Tt,bk as nr,eh as zp,gr as lc,gs as Wp,fC as qp,ei as bn,ee as hi,am as sc,bf as qt,b9 as Pn,w as Pe,gt as Up,cS as uc,fG as cc,F as Bn,bP as Gp,by as Aa,ed as Fn,e1 as Hp,bW as Yp,gu as Kp,cs as Qp}from"./index-MMjnoZvc.js";import{d as Yo}from"./Add-LDEf8DQg.js";import{E as Xp,d as bi,F as Jp,a as vi,L as dc}from"./Edit-Gp4Awbnb.js";import{d as Zp}from"./InfoOutlined-BSQNe7N0.js";import{d as fc}from"./Launch-skY4QDHZ.js";import{W as vn,f as em,g as tm,h as nm,i as rm,j as pc,k as am,B as zl,l as om,m as im,n as lm}from"./dashboard-fV0BczKQ.js";import{d as pr}from"./useSetState-MgFJAi6n.js";import{I as _a}from"./index-WOHYN7r2.js";import{W as sm}from"./did-address-zj1cM-u2.js";import{t as um,m as Ze}from"./memoize-one.esm-W-dn2p84.js";import{T as cm}from"./MoreVert-P_r5HcyN.js";import{C as Tn,D as Ko}from"./confirm-U8trI8sh.js";import{w as Sn,P as Qo}from"./permission-ZvEWJSxV.js";import{f as bt}from"./format-error-2W3A06Jw.js";import{a as dm,S as fm}from"./switch-control-AxKlF0qa.js";import{C as pm,d as Wl,B as mm}from"./ChevronRight-2zV-EBdQ.js";import{b as gm,t as hm,c as ql,T as bm}from"./index-kGlwpUUE.js";import{r as kn,V as vm,R as ym,F as Cm,a as wm,e as Dm,g as jt,f as At,s as ra,h as cn,q as mc,p as yi,k as gc,m as xm,l as Pm,i as En,c as dn,d as aa,o as Tm,n as Sm,v as hc,y as km,w as Em,x as Rm,j as Mm,u as Om,t as Im,b as Am,B as _m,z as Lm}from"./FilterList-_e3TGjvk.js";import{d as jm,_ as Z,b as Ul,c as Bm,a as Fm,e as $m}from"./redux-XOuz_cVf.js";import{S as Nm,d as Vm}from"./Search-mY4_Gjp8.js";import{I as zm,g as Wm,i as qm}from"./Icon-Hs_4R15m.js";import{C as Um,r as De,a as Ci,t as ct,b as ve,e as Xo,d as Gm,s as Fr,g as Jo,m as bc,c as vc,f as Hm,h as Ym,i as Zo,j as yc,k as Km,l as Qm,n as Cc,o as wi,p as Gl,q as Xm,u as Hl,v as Jm,w as Zm,x as Vt,y as eg,z as Yl,A as tg,B as La,D as Kl,E as ng,F as ja,G as $n,H as rg,I as ag,J as Dr,K as Ba,L as Ql,M as Fa,N as $a,O as og,P as ig,Q as lg,R as sg,S as ug,T as cg,U as dg,V as fg,W as pg,X as mg,Y as gg,Z as hg}from"./index-YIV3ZeKw.js";import{D as bg}from"./DeleteOutline-Na5jYanp.js";import{o as vg,e as yg,i as Cg,p as wg,g as Dg,d as Xl,c as xg,b as Ee,_ as Se,r as Xt}from"./slicedToArray-WD452XR4.js";import{t as Pg,k as Tg,l as Sg,_ as ke}from"./jss-plugin-props-sort.esm-U5ZnYCzJ.js";import{F as kg,f as Eg,a as Rg,T as Et}from"./TextField-u2bxSAc-.js";import{_ as Mg}from"./toPropertyKey-NzAT2yhV.js";import{S as Og}from"./Skeleton-MQVf1zeC.js";import{G as Kn}from"./Grid-hq8tXmAE.js";import{M as wc,g as Ig,i as Ag}from"./InputAdornment-tAiuMjJ3.js";import{C as Jl}from"./click-to-copy-0Jqh0K6m.js";import{d as _g}from"./ArrowDropDown-VDOchtvn.js";import{A as Zl}from"./Alert-vWiM7yjS.js";import{R as Lg,a as es}from"./RadioGroup-R24vXL2w.js";import{F as ei}from"./FormControlLabel-efXmMNAj.js";import{d as jg}from"./PlayArrow-aZsZH5W7.js";import{d as Dc,A as Bg,a as Fg,b as $g,C as Ng}from"./add-component-core-lt9WbiLS.js";import{v as Vg,a as $r}from"./util-lFswG4bk.js";import{i as zg}from"./index-bkJmmZxf.js";import{d as Wg}from"./LockIcon-PHYGo9W9.js";import{A as qg}from"./Avatar-yqyuIZ56.js";import{A as Ug}from"./actions-9-iCZmM3.js";import{C as Gg}from"./Checkbox-FAvvPRMi.js";import"./Done-6x0KAx6b.js";import"./logo-uploader-ka1rqsHQ.js";import"./index-dbP1WPUp.js";import"./EditIcon-0Rwc1Sfx.js";import"./ButtonGroup-F595PjjB.js";import"./useLocalStorage-HSuIS8dC.js";import"./index-ZWk0ce0v.js";import"./session-ieY35lEq.js";import"./spaces-zU6EswmD.js";import"./api-VkXAZ8rS.js";import"./fallback-liNYH2Ir.js";import"./wallet-hidden-topbar-QxBPCxK0.js";import"./ListItem-X7GPpG5G.js";import"./selector-aWeTH_Xy.js";import"./index-J75uP8vG.js";import"./nav-menu-q73bLcEq.js";import"./MoreHoriz-UJyFgSQT.js";import"./ExpandMore-cCR6PfVd.js";import"./Toolbar-xxqBJj87.js";import"./Hidden-_2gAiz8I.js";import"./DialogContentText-rCKX8V2o.js";import"./useAsync-4TdvRTWi.js";import"./TableRow-S0z2jg7V.js";import"./FormControl-FuFP_-xW.js";import"./useFormControl-Qd1sZJH7.js";import"./FormGroup-62MBopyd.js";import"./InputLabel-sJuMXXTU.js";import"./Select-JkWGcMNY.js";import"./LastPage-yJC3z7U6.js";import"./uniqBy-MB2OLxCc.js";import"./page-header-3dDUdORn.js";import"./index-SfrVnmj3.js";import"./lottie-sh4s0pNq.js";import"./launch-result-message-F8Ofxx_e.js";import"./index-UVz8nDjF.js";import"./Google-bfk_WZie.js";import"./index-WO73mi9B.js";import"./Stepper-cogqYRt3.js";import"./preact.module-yJdvQMHZ.js";import"./content-layout-rHIg8LgN.js";import"./use-blocklet-info-for-connect-did-spaces-Zu5fLwEo.js";import"./index-g4tgCwv9.js";const Hg=Object.freeze(Object.defineProperty({__proto__:null,circularProgressClasses:hp,default:on,getCircularProgressUtilityClass:bp},Symbol.toStringTag,{value:"Module"})),Yg=Object.freeze(Object.defineProperty({__proto__:null,collapseClasses:vp,default:yp,getCollapseUtilityClass:Cp},Symbol.toStringTag,{value:"Module"})),Kg=Object.freeze(Object.defineProperty({__proto__:null,boxClasses:wp,default:fe},Symbol.toStringTag,{value:"Module"})),Qg=Object.freeze(Object.defineProperty({__proto__:null,default:kg,formHelperTextClasses:Eg,getFormHelperTextUtilityClasses:Rg},Symbol.toStringTag,{value:"Module"})),Xg=Object.freeze(Object.defineProperty({__proto__:null,default:zm,getIconUtilityClass:Wm,iconClasses:qm},Symbol.toStringTag,{value:"Module"})),Jg=Object.freeze(Object.defineProperty({__proto__:null,default:wc,getInputAdornmentUtilityClass:Ig,inputAdornmentClasses:Ag},Symbol.toStringTag,{value:"Module"})),Zg=Object.freeze(Object.defineProperty({__proto__:null,default:Dp,getLinearProgressUtilityClass:xp,linearProgressClasses:Pp},Symbol.toStringTag,{value:"Module"})),eh=Object.freeze(Object.defineProperty({__proto__:null,default:Tp,getMenuUtilityClass:Sp,menuClasses:kp},Symbol.toStringTag,{value:"Module"}));var Di={},th=se;Object.defineProperty(Di,"__esModule",{value:!0});var xc=Di.default=void 0,nh=th(Lt()),rh=T,ah=(0,nh.default)((0,rh.jsx)("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3v7.12zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8h1.5z"}),"Update");xc=Di.default=ah;var xi={},oh=se;Object.defineProperty(xi,"__esModule",{value:!0});var Pc=xi.default=void 0,ih=oh(Lt()),lh=T,sh=(0,ih.default)((0,lh.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");Pc=xi.default=sh;function Pi({sourceInfo:e,blocklet:t}){var a;const{t:n}=M.useContext(un);return T.jsxs(fe,{display:"flex",alignItems:"center",children:[T.jsx(cm,{type:"success",children:um(e.source)},"source"),e.source==="registry"&&T.jsx(pi,{href:nc(e.deployedFrom,"blocklets",((a=t==null?void 0:t.meta)==null?void 0:a.bundleDid)||""),target:"_blank",className:"page-link",underline:"hover",style:{display:"flex",alignItems:"center",marginLeft:8},children:n("blocklet.overview.viewInStore")})]})}Pi.propTypes={sourceInfo:re.shape({source:re.string,deployedFrom:re.string}),blocklet:re.object};Pi.defaultProps={sourceInfo:{},blocklet:{}};var Ti={},uh=se;Object.defineProperty(Ti,"__esModule",{value:!0});var Tc=Ti.default=void 0,ch=uh(Lt()),dh=T,fh=(0,ch.default)((0,dh.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward");Tc=Ti.default=fh;function oa({blocklet:e,checkUpgrade:t,hasPermission:n,...a}){const{api:r}=Pt(),{t:i}=M.useContext(un),[o,l]=M.useState(!1),[u,s]=M.useState(""),[d,c]=M.useState(null),[f,b]=M.useState(null);M.useEffect(()=>{c(null),t&&(e.mode,nn.BLOCKLET_MODES.DEVELOPMENT)},[e,t]);const v=()=>{l(!1),b(null)},y=async()=>{l(!0);try{const g={did:e.meta.did,version:d.version,storeUrl:d.registryUrl||""};await pn(2e3),await r.upgradeBlocklet({input:g})}catch(g){Oe.error(`Blocklet upgrade failed: ${bt(g)}`)}finally{l(!1),b(null)}},S={title:`${i("common.upgrade")} ${i("common.blocklet")} ${ln(e)}`,description:i("blocklet.action.upgradeDescription"),confirm:i("blocklet.action.confirmUpgrade"),cancel:i("common.cancel"),onConfirm:y,onCancel:v};return n&&d&&!an(e.status)?T.jsxs(T.Fragment,{children:[T.jsx(vn,{...a,children:e.meta.version}),T.jsx(_t,{title:i("common.updateAvailable",{version:d.version}),children:T.jsx(at,{size:"small",style:{marginLeft:8},disabled:o,onClick:()=>b(S),children:o?T.jsx(on,{size:16}):T.jsx(Tc,{style:{fontSize:16,color:"red"}})})}),!!u&&T.jsx(Oe,{variant:"error",message:u,onClose:()=>s("")}),f&&T.jsx(Tn,{title:f.title,description:f.description,confirm:f.confirm,cancel:f.cancel,params:f.params,onConfirm:f.onConfirm,onCancel:f.onCancel})]}):T.jsx(vn,{...a,children:e.meta.version})}oa.propTypes={blocklet:re.object.isRequired,checkUpgrade:re.bool,hasPermission:re.bool};oa.defaultProps={checkUpgrade:!1,hasPermission:!1};const ph=Sn(oa,"mutate_blocklets"),mh=Sn(oa,"",gn);function gh(e){const{inService:t}=Pt();return t?T.jsx(mh,{...e}):T.jsx(ph,{...e})}function Si({children:e,...t}){const{t:n}=It(),{updateAutoCheckUpdate:a,autoCheckUpdate:r}=em(),i=async()=>{try{const l=!(r!=null&&r.enabled);await a({enabled:l}),Oe.success(n(l?"storage.spaces.autoCheckUpdate.enabled":"storage.spaces.autoCheckUpdate.disabled"))}catch(l){Oe.error(l.message)}},o=!!(r!=null&&r.enabled);return T.jsxs(fe,{display:"flex",flexDirection:"row",alignItems:"center",children:[e,T.jsx(_t,{title:n("storage.spaces.autoCheckUpdate.title"),arrow:!0,placement:"right",children:T.jsx("div",{children:T.jsx(dm,{checked:o,onChange:i,name:"enableWelcomePage",style:{...t.style,zoom:.8}})})})]})}Si.propTypes={children:re.any};Si.defaultProps={children:null};function Sc({mode:e,...t}){return e==="development"?T.jsx(vn,{type:"primary",...t,children:"DEV"}):null}Sc.propTypes={mode:re.string.isRequired};var kc={};const ze=Be(Ep);var Nn={},Na={},Va={},za={};const Ec=Be(Hg);var ts;function hh(){return ts||(ts=1,function(e){var t=se;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(ze),a=t(Ec),r=t(M),i=t(Qe),o=kn;function l(s){var d=(0,o.useTheme)();return r.default.createElement("div",{ref:s.forwardedRef,style:{display:"table",width:"100%",height:"100%",backgroundColor:d.palette.background.paper,opacity:.7}},r.default.createElement("div",{style:{display:"table-cell",width:"100%",height:"100%",verticalAlign:"middle",textAlign:"center"}},r.default.createElement(a.default,null)))}l.propTypes={theme:i.default.any};var u=r.default.forwardRef(function(d,c){return r.default.createElement(l,(0,n.default)({},d,{forwardedRef:c}))});e.default=u}(za)),za}var Wa={},qa={},Dt={};const Je=Be(jm);var bh={BASE_URL:"/.well-known/service/static",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const ns=e=>{let t;const n=new Set,a=(u,s)=>{const d=typeof u=="function"?u(t):u;if(!Object.is(d,t)){const c=t;t=s??typeof d!="object"?d:Object.assign({},t,d),n.forEach(f=>f(t,c))}},r=()=>t,l={setState:a,getState:r,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(bh&&"production")!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(a,r,l),l},Rc=e=>e?ns(e):ns;var Mc={exports:{}},Oc={},Ic={exports:{}},Ac={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* use-sync-external-store-shim.production.min.js
|
|
4
4
|
*
|
|
@@ -230,7 +230,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
230
230
|
.MuiTablePagination-selectLabel + .MuiInputBase-root {
|
|
231
231
|
margin-right: 8px;
|
|
232
232
|
}
|
|
233
|
-
`,oR=aR,iR=(e,t)=>{let{description:n}=e;return(Object.values(nn.CHAIN_PROP_MAP).includes(e.key)||Wp(e))&&(n?n=`${n} (${t("blocklet.config.sharedToAllComponents")})`:n=t("blocklet.config.sharedToAllComponents")),n&&T.jsx("div",{style:{marginLeft:12},children:n})},Uo=(e,t,n=[])=>!(n!=null&&n.length)&&!e.custom&&!["CHAIN_ID","CHAIN_HOST"].includes(e.key)&&!t.meta.environments.find(a=>a.name===e.key)&&t.children.every(a=>!a.meta.environments.find(r=>r.name===e.key))?!0:e.custom;function Qr({blocklet:e,ancestors:t}){const n=Pt(),{inService:a}=n,{t:r}=M.useContext(un),i=[...t.map(p=>p.meta.did),e.meta.did],o=()=>Oe.success(r("blocklet.config.changedTip")),l=p=>Uo(p,e,t);if(nr(e.status)||e.status==="unknown"&&nr(e.status))return null;const u=async p=>{if(!p.key.trim()||!p.value.trim()){Oe.error(r("blocklet.config.environment.keyValueRequired"));return}if(p.key.startsWith("BLOCKLET_")||p.key.startsWith("COMPONENT_")){Oe.error(r("blocklet.config.environment.invalidKey"));return}p.custom=!0;try{const m=await n.api.configBlocklet({input:{did:i,configs:[p]}});o(m.blocklet)}catch(m){Oe.error(bt(m))}},s=async(p,m)=>{if(p.required&&(!p.key.trim()||!p.value.trim())){Oe.error(r("blocklet.config.environment.keyValueRequired"));return}if(p.key.startsWith("BLOCKLET_")&&!nn.BLOCKLET_CONFIGURABLE_KEY[p.key]){Oe.error(r("blocklet.config.environment.invalidKey"));return}if(p.key===nn.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE){const k=qp(p);if(k){Oe.error(k);return}}const h=[p];if(p.key!==m.key){if(!Uo(p,e,t)){Oe.error("Only key of custom env can be changed");return}h.push({key:m.key,custom:!0})}try{const k=await n.api.configBlocklet({input:{did:i,configs:h}});o(k.blocklet)}catch(k){Oe.error(bt(k))}},d=async p=>{if(p.required){Oe.error(r("blocklet.config.environment.deleteForbidden"));return}if(!Uo(p,e,t)){Oe.error("Only key of custom env can be changed");return}try{const m=await n.api.configBlocklet({input:{did:i,configs:[{key:p.key,custom:!0}]}});o(m.blocklet)}catch(m){Oe.error(bt(m))}},c=(e.configs||[]).filter(p=>!nn.BLOCKLET_CONFIGURABLE_KEY[p.key]),f=zp(t[0],e),b=lc(e,t[0]),v=c.map(p=>({...p,value:Object.values(nn.CHAIN_PROP_MAP).includes(p.key)&&Object.keys(f).includes(p.key)?f[p.key]:f[p.key]||p.value})),y=v.some(p=>p.key&&p.key.startsWith("BWA_")),S={onRowAdd:u,onRowUpdate:s,onRowDelete:d,isDeletable:l},g=()=>[{title:r("common.key"),field:"key",initialEditValue:"Key",width:"30%",render:p=>T.jsx(Jl,{value:p.value,style:{color:p.required&&!p.value?"#ff4436":"#222222",fontWeight:p.required?"bold":"normal"},children:p.key}),editComponent:p=>{const{value:m,rowData:h,onChange:k}=p;return T.jsx(ec,{children:T.jsx(Et,{fullWidth:!0,size:"small",disabled:l(h)===!1,value:m,onChange:C=>k(C.target.value),variant:"outlined",label:"Key",placeholder:r("blocklet.config.environment.key"),margin:"dense",autoFocus:!0})})}},{title:r("common.value"),field:"value",initialEditValue:"Value",width:"calc((100% - (96px + 30%)) / 1)",render:p=>p.value?p.secure?"******":T.jsx(Jl,{unstyled:!0,value:p.value,style:{wordBreak:"break-all"},children:p.value}):null,editComponent:p=>{const{value:m,rowData:h,onChange:k}=p;return T.jsxs(ec,{children:[T.jsx(Et,{fullWidth:!0,size:"small",value:m==="__encrypted__"?"":m,onChange:C=>k(C.target.value),variant:"outlined",label:r("common.value"),placeholder:r("blocklet.config.environment.value"),margin:"dense",autoFocus:!0}),iR(h,r)]})}}];return T.jsxs(lR,{children:[!!b.length&&T.jsx(Zl,{severity:"error",style:{marginTop:24},children:r("blocklet.config.missingRequired")}),y&&T.jsx(Zl,{severity:"info",children:r("blocklet.config.environment.tip")}),T.jsx(Qo,{permission:a?"":"mutate_blocklets",role:a?gn:[],children:p=>T.jsx(oR,{className:"config-table",children:T.jsx(JE,{title:T.jsx("h4",{children:r("common.environment")}),columns:g(),icons:{...nm,...rR},options:{emptyRowsWhenPaging:!1,actionsColumnIndex:-1,tableLayout:"auto",maxBodyHeight:"100%",paging:!1,search:!1},localization:{header:{actions:r("common.actions")},body:{emptyDataSourceMessage:r("common.noData")}},data:v,editable:p?S:{}})})})]})}Qr.propTypes={blocklet:re.object.isRequired,ancestors:re.array};Qr.defaultProps={ancestors:[]};const lR=Tt.div`
|
|
233
|
+
`,oR=aR,iR=(e,t)=>{let{description:n}=e;return(Object.values(nn.CHAIN_PROP_MAP).includes(e.key)||Wp(e))&&(n?n=`${n} (${t("blocklet.config.sharedToAllComponents")})`:n=t("blocklet.config.sharedToAllComponents")),n&&T.jsx("div",{style:{marginLeft:12},children:n})},Uo=(e,t,n=[])=>!(n!=null&&n.length)&&!e.custom&&!["CHAIN_ID","CHAIN_HOST"].includes(e.key)&&!t.meta.environments.find(a=>a.name===e.key)&&t.children.every(a=>!a.meta.environments.find(r=>r.name===e.key))?!0:e.custom;function Qr({blocklet:e,ancestors:t}){const n=Pt(),{inService:a}=n,{t:r}=M.useContext(un),i=[...t.map(p=>p.meta.did),e.meta.did],o=()=>Oe.success(r("blocklet.config.changedTip")),l=p=>Uo(p,e,t);if(nr(e.status)||e.status==="unknown"&&nr(e.status))return null;const u=async p=>{if(!p.key.trim()||!p.value.trim()){Oe.error(r("blocklet.config.environment.keyValueRequired"));return}if(p.key.startsWith("BLOCKLET_")||p.key.startsWith("COMPONENT_")){Oe.error(r("blocklet.config.environment.invalidKey"));return}p.custom=!0;try{const m=await n.api.configBlocklet({input:{did:i,configs:[p]}});o(m.blocklet)}catch(m){Oe.error(bt(m))}},s=async(p,m)=>{if(p.required&&(!p.key.trim()||!p.value.trim())){Oe.error(r("blocklet.config.environment.keyValueRequired"));return}if(p.key.startsWith("BLOCKLET_")&&!nn.BLOCKLET_CONFIGURABLE_KEY[p.key]){Oe.error(r("blocklet.config.environment.invalidKey"));return}if(p.key===nn.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE){const k=qp(p);if(k){Oe.error(k);return}}const h=[{...p,value:p.secure&&p.value==="__encrypted__"?"":p.value}];if(p.key!==m.key){if(!Uo(p,e,t)){Oe.error("Only key of custom env can be changed");return}h.push({key:m.key,custom:!0})}try{const k=await n.api.configBlocklet({input:{did:i,configs:h}});o(k.blocklet)}catch(k){Oe.error(bt(k))}},d=async p=>{if(p.required){Oe.error(r("blocklet.config.environment.deleteForbidden"));return}if(!Uo(p,e,t)){Oe.error("Only key of custom env can be changed");return}try{const m=await n.api.configBlocklet({input:{did:i,configs:[{key:p.key,custom:!0}]}});o(m.blocklet)}catch(m){Oe.error(bt(m))}},c=(e.configs||[]).filter(p=>!nn.BLOCKLET_CONFIGURABLE_KEY[p.key]),f=zp(t[0],e),b=lc(e,t[0]),v=c.map(p=>({...p,value:Object.values(nn.CHAIN_PROP_MAP).includes(p.key)&&Object.keys(f).includes(p.key)?f[p.key]:f[p.key]||p.value})),y=v.some(p=>p.key&&p.key.startsWith("BWA_")),S={onRowAdd:u,onRowUpdate:s,onRowDelete:d,isDeletable:l},g=()=>[{title:r("common.key"),field:"key",initialEditValue:"Key",width:"30%",render:p=>T.jsx(Jl,{value:p.value,style:{color:p.required&&!p.value?"#ff4436":"#222222",fontWeight:p.required?"bold":"normal"},children:p.key}),editComponent:p=>{const{value:m,rowData:h,onChange:k}=p;return T.jsx(ec,{children:T.jsx(Et,{fullWidth:!0,size:"small",disabled:l(h)===!1,value:m,onChange:C=>k(C.target.value),variant:"outlined",label:"Key",placeholder:r("blocklet.config.environment.key"),margin:"dense",autoFocus:!0})})}},{title:r("common.value"),field:"value",initialEditValue:"Value",width:"calc((100% - (96px + 30%)) / 1)",render:p=>p.value?p.secure?"******":T.jsx(Jl,{unstyled:!0,value:p.value,style:{wordBreak:"break-all"},children:p.value}):null,editComponent:p=>{const{value:m,rowData:h,onChange:k}=p;return T.jsxs(ec,{children:[T.jsx(Et,{fullWidth:!0,size:"small",value:m==="__encrypted__"?"":m,onChange:C=>k(C.target.value),variant:"outlined",label:r("common.value"),placeholder:r("blocklet.config.environment.value"),margin:"dense",autoFocus:!0}),iR(h,r)]})}}];return T.jsxs(lR,{children:[!!b.length&&T.jsx(Zl,{severity:"error",style:{marginTop:24},children:r("blocklet.config.missingRequired")}),y&&T.jsx(Zl,{severity:"info",children:r("blocklet.config.environment.tip")}),T.jsx(Qo,{permission:a?"":"mutate_blocklets",role:a?gn:[],children:p=>T.jsx(oR,{className:"config-table",children:T.jsx(JE,{title:T.jsx("h4",{children:r("common.environment")}),columns:g(),icons:{...nm,...rR},options:{emptyRowsWhenPaging:!1,actionsColumnIndex:-1,tableLayout:"auto",maxBodyHeight:"100%",paging:!1,search:!1},localization:{header:{actions:r("common.actions")},body:{emptyDataSourceMessage:r("common.noData")}},data:v,editable:p?S:{}})})})]})}Qr.propTypes={blocklet:re.object.isRequired,ancestors:re.array};Qr.defaultProps={ancestors:[]};const lR=Tt.div`
|
|
234
234
|
.config-table {
|
|
235
235
|
margin-bottom: 24px;
|
|
236
236
|
position: relative;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as l,j as n,G as j,P as g,U as I,u as U,a8 as F,bF as q,$ as d,c as G,w as M,cs as z,ct as H,bb as D,cu as Y,n as $}from"./index-
|
|
1
|
+
import{r as l,j as n,G as j,P as g,U as I,u as U,a8 as F,bF as q,$ as d,c as G,w as M,cs as z,ct as H,bb as D,cu as Y,n as $}from"./index-MMjnoZvc.js";import{u as Q}from"./uniqBy-MB2OLxCc.js";import{S as V}from"./index-UVz8nDjF.js";import{P as W}from"./page-header-3dDUdORn.js";import{S as X}from"./layout-BLaaNYtw.js";import{S as J}from"./step-actions-aej3hvRe.js";import{S as Z}from"./button-zcH1UQ55.js";import"./EditIcon-0Rwc1Sfx.js";import"./Done-6x0KAx6b.js";import"./Google-bfk_WZie.js";import"./TextField-u2bxSAc-.js";import"./FormControl-FuFP_-xW.js";import"./useFormControl-Qd1sZJH7.js";import"./InputLabel-sJuMXXTU.js";import"./Select-JkWGcMNY.js";import"./logo-uploader-ka1rqsHQ.js";import"./index-dbP1WPUp.js";import"./content-layout-rHIg8LgN.js";function x({children:C,bottom:E,onBottomFix:f}){const i=l.useRef(null),s=l.useRef(null),m=l.useRef(null),r=l.useRef(null),[L,h]=l.useState(!1);return l.useEffect(()=>{let t;const a=()=>{t||(t=setTimeout(()=>{s.current&&(s.current.scrollHeight>i.current.clientHeight-m.current.clientHeight?(r.current!=="fix"&&(f("fix"),r.current="fix"),h(!0)):(r.current!=="scroll"&&(f("scroll"),r.current="scroll"),h(!1))),t=null},50))};let u;return window.ResizeObserver?u=new ResizeObserver(a):window.addEventListener("resize",a),u.observe(i.current),u.observe(s.current),()=>{u?u.disconnect():window.removeEventListener("resize",a),t&&clearTimeout(t)}},[f]),n.jsxs(ee,{ref:i,className:`${L?"scroll-mode":""}`,children:[n.jsx("div",{className:"compact-context",ref:s,children:C}),n.jsx("div",{className:"fix-container",ref:m,children:E})]})}const ee=j.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{K as t,M as a,j as c,w as e}from"./index-
|
|
1
|
+
import{K as t,M as a,j as c,w as e}from"./index-MMjnoZvc.js";var r={},u=a;Object.defineProperty(r,"__esModule",{value:!0});var n=r.default=void 0,s=u(t()),d=c,p=(0,s.default)((0,d.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"}),"Lock");n=r.default=p;var o={},_=a;Object.defineProperty(o,"__esModule",{value:!0});var l=o.default=void 0,f=_(t()),h=c,m=(0,f.default)((0,h.jsx)("path",{d:"M21 8V7l-3 2-3-2v1l3 2 3-2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1zm8-6h-8V6h8v6z"}),"ContactMail");l=o.default=m;var i={},z=a;Object.defineProperty(i,"__esModule",{value:!0});var v=i.default=void 0,C=z(t()),S=c,j=(0,C.default)((0,S.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"}),"Public");v=i.default=j;const x=[{value:e.WHO_CAN_ACCESS.ALL,icon:v,title:{zh:"所有人可访问",en:"Accessible to all"},description:{zh:"向所有人开放,无需通行证即可访问应用",en:"Open to the world anyone can access without passport"}},{value:e.WHO_CAN_ACCESS.INVITED,icon:l,title:{zh:"只有被邀请的人可以访问",en:"Only invited people can access"},description:{zh:"稍后您可以在管理页面中邀请成员",en:"You can invite members later in the admin page"}},{value:e.WHO_CAN_ACCESS.OWNER,icon:n,title:{zh:"只有应用所有者可以访问",en:"Only Owner of the blocklet can access"},description:{zh:"必须提供所有者通行证才能访问应用",en:"You must provide owner passport to access this application"}}];export{x as A};
|