@abtnode/blocklet-services 1.16.29-beta-a3a3b40e → 1.16.29-beta-1fb308f8
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-CriLwJ2Z.js → Add-BZ7ZYVjp.js} +1 -1
- package/dist/assets/{AddBox-D05GcW2e.js → AddBox-Dptu2K5s.js} +1 -1
- package/dist/assets/{Alert-Co6nFhOM.js → Alert-CMX-K3fl.js} +1 -1
- package/dist/assets/{ArrowDropDown-Bvihb5fc.js → ArrowDropDown-BHB91Q_p.js} +1 -1
- package/dist/assets/{Avatar-B8I-RRz-.js → Avatar-BsWomwcd.js} +1 -1
- package/dist/assets/{ButtonGroup-Bv2t__0y.js → ButtonGroup-B3eeFp-U.js} +1 -1
- package/dist/assets/{CheckCircle-CekdWoHx.js → CheckCircle-DFY2L2pA.js} +1 -1
- package/dist/assets/{ChevronRight-CVywBsXO.js → ChevronRight-BWxGsqYb.js} +1 -1
- package/dist/assets/{Close-XaAiye3-.js → Close-CH7xdBg-.js} +1 -1
- package/dist/assets/{CloseOutlined-DgDKfAcm.js → CloseOutlined-xB3FnxFh.js} +1 -1
- package/dist/assets/{Delete-Dv9EqKg8.js → Delete-CfzQCYSP.js} +1 -1
- package/dist/assets/{DeleteOutline-MYRfaC8f.js → DeleteOutline-DXY50-zB.js} +1 -1
- package/dist/assets/{Done-D-o_v7q9.js → Done-Zoiu5U2x.js} +1 -1
- package/dist/assets/{Download-GA51cYAR.js → Download-Btr3tn4O.js} +1 -1
- package/dist/assets/{Edit-ChLe8nd_.js → Edit-Bv8wdysg.js} +1 -1
- package/dist/assets/{EditIcon-CFBN_Lh7.js → EditIcon-BoTBX9Vo.js} +1 -1
- package/dist/assets/{Error-DrlyI4sR.js → Error-pRghRavn.js} +1 -1
- package/dist/assets/{ExpandMore-DEMmdLOV.js → ExpandMore-CRbFTb5y.js} +1 -1
- package/dist/assets/{FilterList-Do4iSb2i.js → FilterList-CLkPMFp0.js} +1 -1
- package/dist/assets/{FormControl-q0Fcduj_.js → FormControl-24PD8_fY.js} +1 -1
- package/dist/assets/{FormControlLabel-BQ6g2rGO.js → FormControlLabel-KyoBPdSk.js} +1 -1
- package/dist/assets/{FormGroup-hivEVwQz.js → FormGroup-DsIQVrXz.js} +1 -1
- package/dist/assets/{Google-DlzOIz1K.js → Google-DdO9mcms.js} +1 -1
- package/dist/assets/{Hidden-DMR3jGzj.js → Hidden--9BCZNYr.js} +1 -1
- package/dist/assets/{InfoOutlined-99mLGRZh.js → InfoOutlined-BxsSlLLq.js} +1 -1
- package/dist/assets/{InputAdornment-BXNzazu1.js → InputAdornment-C1Qpudux.js} +1 -1
- package/dist/assets/{InputLabel-mAtBSnQb.js → InputLabel-xESrNHmo.js} +1 -1
- package/dist/assets/{LastPage-BLqj3ZDO.js → LastPage-C4q9ssZQ.js} +1 -1
- package/dist/assets/{Launch-UI3joiXW.js → Launch-BDBE--jB.js} +1 -1
- package/dist/assets/{LaunchOutlined-DrLC3L-t.js → LaunchOutlined-D6LBWORQ.js} +1 -1
- package/dist/assets/{Link-BKxB3Szm.js → Link-sFv_5np_.js} +1 -1
- package/dist/assets/{ListItemText-qGJxabmF.js → ListItemText-kSkjBnFz.js} +1 -1
- package/dist/assets/{LoadingButton-DzC9g4NR.js → LoadingButton-BrfFIQlJ.js} +1 -1
- package/dist/assets/{LockIcon-BK3tvcxi.js → LockIcon-BiOBCC5U.js} +1 -1
- package/dist/assets/{Loop-BHVV6pBy.js → Loop-dhx5P4wW.js} +1 -1
- package/dist/assets/{MoreVert-BTTontfH.js → MoreVert-DI1V1WEt.js} +1 -1
- package/dist/assets/{OpenInNew-xRf4_JAY.js → OpenInNew-BmxYDMFI.js} +1 -1
- package/dist/assets/{Pagination-CoLZT03r.js → Pagination-DcodKnzW.js} +1 -1
- package/dist/assets/{PlayArrow-Bt6ftFUg.js → PlayArrow-DLI0bEL5.js} +1 -1
- package/dist/assets/{QuestionMarkCircle-DmstYff_.js → QuestionMarkCircle-smUXs82m.js} +1 -1
- package/dist/assets/{RadioGroup-BWCtiIPm.js → RadioGroup-uV0Cme3k.js} +1 -1
- package/dist/assets/{Search-CEgjSR67.js → Search-CBLNui8O.js} +1 -1
- package/dist/assets/{Select-CYN6Jr5f.js → Select-D8XELjVf.js} +1 -1
- package/dist/assets/{ServerLogo-DL0ZB14s.js → ServerLogo-B5llEjs9.js} +1 -1
- package/dist/assets/{Skeleton-DqkmIfuj.js → Skeleton-CGGXM9I8.js} +1 -1
- package/dist/assets/{Slider-DryOCLKT.js → Slider-DAWYuhgN.js} +1 -1
- package/dist/assets/{Stepper-DPEDGxZe.js → Stepper-CNAz-9-7.js} +1 -1
- package/dist/assets/{TextField-BDvdWir7.js → TextField-Dt3whk-X.js} +1 -1
- package/dist/assets/{Toolbar-BCrX64tT.js → Toolbar-B20O0aZq.js} +1 -1
- package/dist/assets/{ViewList-DCufhmw0.js → ViewList-DvHqGbZf.js} +1 -1
- package/dist/assets/{access-control-BzgYS6Cm.js → access-control-B7lBm9Xn.js} +1 -1
- package/dist/assets/{actions-BH5IHcD3.js → actions-C8AzzJ-C.js} +1 -1
- package/dist/assets/{add-component-core-DRPlRSS3.js → add-component-core-D2D1kYIa.js} +2 -2
- package/dist/assets/{add-resource-DE-nsSP4.js → add-resource-D_lXratj.js} +1 -1
- package/dist/assets/{addon-HHloXhdy.js → addon-CgivKVAA.js} +1 -1
- package/dist/assets/{analytics-mk2ztejh.js → analytics-vOTBcnsr.js} +1 -1
- package/dist/assets/api-SdQuBmE7.js +1 -0
- package/dist/assets/{audit-logs-Cx9kmwzI.js → audit-logs-B4Z2eeIc.js} +1 -1
- package/dist/assets/{blocklet-storage-BoPs9lwW.js → blocklet-storage-B60YNmnE.js} +1 -1
- package/dist/assets/{button-CMNYiOpB.js → button-DFXsaHZa.js} +1 -1
- package/dist/assets/{click-to-copy-CMnP1nPD.js → click-to-copy-C73Tfn_T.js} +1 -1
- package/dist/assets/{complete-BXuexhd-.js → complete-DnYXmI7_.js} +1 -1
- package/dist/assets/{component-CSN21nU-.js → component-8cILKrY_.js} +1 -1
- package/dist/assets/{config-BXsL0kHM.js → config-BtF485M4.js} +1 -1
- package/dist/assets/{config-navigation-DbPgFV-0.js → config-navigation-DFqvSjYb.js} +1 -1
- package/dist/assets/{config-9cXF6gXS.js → config-zmyq-NQK.js} +1 -1
- package/dist/assets/{confirm-CSDkFPAY.js → confirm-DqzDl9MX.js} +1 -1
- package/dist/assets/{connect-DH6bUCZJ.js → connect-AwdnCiZM.js} +1 -1
- package/dist/assets/{connect-DdhZwUj7.js → connect-BnLzwO7S.js} +1 -1
- package/dist/assets/{connect-to-DXGZqjbA.js → connect-to-RRtLSFp2.js} +1 -1
- package/dist/assets/{content-layout-DuFFHhl5.js → content-layout-DabnStRh.js} +1 -1
- package/dist/assets/{dashboard-C3nFNvqE.js → dashboard-B8uTlQlw.js} +3 -3
- package/dist/assets/{did-address-XFbf5Eal.js → did-address-zjDIEnBt.js} +1 -1
- package/dist/assets/{domain-D0pWqLJq.js → domain-0lknTONS.js} +1 -1
- package/dist/assets/{domain-list-BxR-oKUT.js → domain-list-DBzpKiNh.js} +1 -1
- package/dist/assets/{exchange-passport-BbY7tpxD.js → exchange-passport-C0GAsRNR.js} +1 -1
- package/dist/assets/{fallback-DSloEwfk.js → fallback-dS7iHIHz.js} +1 -1
- package/dist/assets/{format-error-CEsleqYi.js → format-error-C3RZfboJ.js} +1 -1
- package/dist/assets/{fuel-xlRKtPel.js → fuel-CXmyADDj.js} +1 -1
- package/dist/assets/{fullpage-DCjGp1KZ.js → fullpage-BL-25w5_.js} +1 -1
- package/dist/assets/{home-oZXX4WFZ.js → home-CV2SpOCA.js} +1 -1
- package/dist/assets/{iframe-BDSSelT9.js → iframe-DLQvYgUm.js} +1 -1
- package/dist/assets/{index-C6npNM0Z.js → index-4iP6eqAD.js} +1 -1
- package/dist/assets/{index-C4YpA4BT.js → index-BOPCIoSH.js} +3 -3
- package/dist/assets/{index-Bi-xgEZn.js → index-B_2iNKVl.js} +1 -1
- package/dist/assets/{index-BjO-8Cyn.js → index-C0YJC7GF.js} +1 -1
- package/dist/assets/{index-Cm-Lag7H.js → index-C1E7AqRZ.js} +1 -1
- package/dist/assets/{index-YlMJNMvq.js → index-C8FGOK1B.js} +1 -1
- package/dist/assets/{index-9roMahx-.js → index-CCszCgZV.js} +1 -1
- package/dist/assets/{index-oOktkAnt.js → index-CR6hY1ov.js} +1 -1
- package/dist/assets/{index-DFWL1ByV.js → index-CRxNIeZQ.js} +1 -1
- package/dist/assets/{index-DS8jtPwK.js → index-CZOrK58Q.js} +1 -1
- package/dist/assets/{index-IZWBCo9C.js → index-CZwVfTcs.js} +1 -1
- package/dist/assets/{index-DiaHuDXm.js → index-Cu_qbLkU.js} +1 -1
- package/dist/assets/{index-0S_vSrjc.js → index-Cx2hCC4T.js} +1 -1
- package/dist/assets/{index-Geq44twE.js → index-CzP2U-sb.js} +1 -1
- package/dist/assets/{index-B022DOt8.js → index-D1PChAZE.js} +1 -1
- package/dist/assets/{index-DfdPqkcO.js → index-DRbH4VnZ.js} +1 -1
- package/dist/assets/{index-YQyuB_L8.js → index-DSfGCYv7.js} +1 -1
- package/dist/assets/{index-C0NDBTzc.js → index-DZdxCnUI.js} +1 -1
- package/dist/assets/{index-DOkPy6ej.js → index-Dea62Jm1.js} +1 -1
- package/dist/assets/{index-CX8UN7-a.js → index-DkR7ODFP.js} +1 -1
- package/dist/assets/{index-BmIcqHXF.js → index-DtpVJrTw.js} +1 -1
- package/dist/assets/{index-BGLbLHVc.js → index-DxKIQYAq.js} +1 -1
- package/dist/assets/{index-DRtYHh93.js → index-NCKBCLy8.js} +1 -1
- package/dist/assets/{index-BEdFPees.js → index-NHAbpx1v.js} +1 -1
- package/dist/assets/{index-CawJM03k.js → index-TRv28IoN.js} +2 -2
- package/dist/assets/{index-Br-jv6tm.js → index-TgNkusIW.js} +1 -1
- package/dist/assets/{index-DWc8FS20.js → index-UV0pqllk.js} +1 -1
- package/dist/assets/{index-DvtNf3MX.js → index-Wcry0Teq.js} +117 -117
- package/dist/assets/{index-CteA8uRo.js → index-WeQ9_XM1.js} +1 -1
- package/dist/assets/{index-Xhi1lAEl.js → index-i4Rp6jpb.js} +1 -1
- package/dist/assets/{index-Wo9DWCL2.js → index-nWE9J5FZ.js} +1 -1
- package/dist/assets/{index-D1TimJty.js → index-ufLdI70u.js} +10 -10
- package/dist/assets/{index.es-DMjhZjL3.js → index.es-mzwrGHcf.js} +1 -1
- package/dist/assets/{index.esm-nXvwY-mI.js → index.esm-BFBh3vJP.js} +1 -1
- package/dist/assets/{invitation-BQU53cNY.js → invitation-C8njUVnT.js} +1 -1
- package/dist/assets/{invite-BUfqOPL1.js → invite-DGRTk7ZM.js} +1 -1
- package/dist/assets/{issue-passport-BKoAvXmw.js → issue-passport-D2Q1-74y.js} +1 -1
- package/dist/assets/{item-kAh3zs2p.js → item-DTQh_HzF.js} +1 -1
- package/dist/assets/{jss-plugin-props-sort.esm-C03ZG6gd.js → jss-plugin-props-sort.esm-DCeO1l3a.js} +1 -1
- package/dist/assets/{launch-result-message-CiMoeOVx.js → launch-result-message-BbNNNIuG.js} +1 -1
- package/dist/assets/{layout-BbTByKsL.js → layout-CZagI57K.js} +1 -1
- package/dist/assets/{list-header-CLUUEhCd.js → list-header-BDT7MrFM.js} +1 -1
- package/dist/assets/localization-CBBPUDcB.js +1 -0
- package/dist/assets/{log-C0pX4C-w.js → log-a5aa2VEB.js} +1 -1
- package/dist/assets/{login-B0PvmdR-.js → login-DL_cFDan.js} +1 -1
- package/dist/assets/{login-oauth-callback-B9XMHCDD.js → login-oauth-callback-yPda069A.js} +1 -1
- package/dist/assets/{logo-uploader-B0YprodS.js → logo-uploader-tIXv-22X.js} +3 -3
- package/dist/assets/{lost-passport-XyWdOLma.js → lost-passport-Dv4pNp1C.js} +3 -3
- package/dist/assets/{lottie-BkBLpyq4.js → lottie-BtiHsDgJ.js} +1 -1
- package/dist/assets/{notifications-BTJWNEWv.js → notifications-Di-pNhDI.js} +1 -1
- package/dist/assets/{open-window-D6L_uPzj.js → open-window-DHayT3Px.js} +1 -1
- package/dist/assets/{overview-Bk_3jsPI.js → overview-CEHRWRHQ.js} +1 -1
- package/dist/assets/{page-header-BgJuaSCO.js → page-header-Bldx8iyY.js} +1 -1
- package/dist/assets/{permission-DL4hEyjB.js → permission--4loJJqK.js} +1 -1
- package/dist/assets/{preferences-D_IAHh5g.js → preferences-C-QiUc19.js} +1 -1
- package/dist/assets/publish-resource-C7-6c_gV.js +1 -0
- package/dist/assets/{react-BJd1hMX7.js → react-xWs_79Th.js} +3 -3
- package/dist/assets/{redux-C5iz4rt2.js → redux-BKgRDt6m.js} +1 -1
- package/dist/assets/{resource-dialog-DJsxRG_i.js → resource-dialog-CUxO1GKE.js} +1 -1
- package/dist/assets/{selector-DhasM2ZX.js → selector-BZXSF6RZ.js} +1 -1
- package/dist/assets/session-C0iFSkEy.js +1 -0
- package/dist/assets/{setup-CggsEXP3.js → setup-ByUHGOc2.js} +3 -3
- package/dist/assets/{shorten-label-BrBBMm-x.js → shorten-label-Cb27JBwd.js} +1 -1
- package/dist/assets/{slicedToArray-DqbcbTCK.js → slicedToArray-D_fsSo9H.js} +1 -1
- package/dist/assets/{spaces-B1MEixpv.js → spaces-Bsjcm4Pb.js} +1 -1
- package/dist/assets/{start-DYXkXezO.js → start-BhdnYJM5.js} +1 -1
- package/dist/assets/{step-actions-CKnCyQbW.js → step-actions-D8u8IW-q.js} +1 -1
- package/dist/assets/{studio-CKnj06eW.js → studio-DbKc8Lmo.js} +1 -1
- package/dist/assets/{switch-control-D25-Vl8A.js → switch-control-dBHoPJGS.js} +1 -1
- package/dist/assets/{toUpper-CiwMVZsu.js → toUpper-DF_77JAD.js} +1 -1
- package/dist/assets/{transfer-BaIxiuqf.js → transfer-BAjaassl.js} +1 -1
- package/dist/assets/{uniqBy-CZJpgO1J.js → uniqBy-7zzhp_MA.js} +1 -1
- package/dist/assets/{unsubscribe-C8L3z2nJ.js → unsubscribe-gdLy_PwD.js} +1 -1
- package/dist/assets/{url-join-Dcasf_Nc.js → url-join-a02ntsC0.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-D5Jiy3HK.js → use-blocklet-info-for-connect-did-spaces-Czhm8Xb6.js} +1 -1
- package/dist/assets/{use-mobile-Cl3qVPbS.js → use-mobile-D_wMsqK5.js} +1 -1
- package/dist/assets/{useAsync-CZLlK8J9.js → useAsync-D5xkbSFA.js} +1 -1
- package/dist/assets/{useFormControl-OavKtbbd.js → useFormControl-BolgsUUb.js} +1 -1
- package/dist/assets/{useLocalStorage-DCyKJSAA.js → useLocalStorage-C1CKxRfv.js} +1 -1
- package/dist/assets/{useSetState-DNaXKyRe.js → useSetState-ssJWkpMc.js} +1 -1
- package/dist/assets/{useSlot-Wc4kx38b.js → useSlot-BrPZCaVM.js} +1 -1
- package/dist/assets/{useSlotProps-kE-P5Q9e.js → useSlotProps-C136Xtvi.js} +1 -1
- package/dist/assets/{useThemeProps-D1f3vnSr.js → useThemeProps-a1wtq5sP.js} +1 -1
- package/dist/assets/{user-center-DS9_Ro30.js → user-center-LIAN3Isw.js} +1 -1
- package/dist/assets/{user-sessions-z2EGcytU.js → user-sessions-pWupxx83.js} +1 -1
- package/dist/assets/{util-DjAL1Pyt.js → util-B4OkdChr.js} +1 -1
- package/dist/assets/{wrap-locale-BnVNJ3oH.js → wrap-locale-B65MV90l.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +25 -25
- package/dist/assets/api-bW9ajS2Q.js +0 -1
- package/dist/assets/localization-DgzSxHRB.js +0 -1
- package/dist/assets/publish-resource-dSzwwK9h.js +0 -1
- package/dist/assets/session-BrGTnOHc.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{X as E,Y as I,j as t,r as l,az as M,aO as z,aP as D,aQ as _,P as u,Z as R}from"./index-
|
|
1
|
+
import{X as E,Y as I,j as t,r as l,az as M,aO as z,aP as D,aQ as _,P as u,Z as R}from"./index-Wcry0Teq.js";import{L as b,a as C}from"./ListItemText-kSkjBnFz.js";var o={},O=I;Object.defineProperty(o,"__esModule",{value:!0});var p=o.default=void 0,S=O(E()),T=t;p=o.default=(0,S.default)((0,T.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreHoriz");function d({actions:m,size:f,...y}){const[n,i]=l.useState(null),v=!!n,x=e=>{try{e.stopPropagation(),e.preventDefault()}catch{}i(e.currentTarget)},a=e=>{try{e.stopPropagation(),e.preventDefault()}catch{}i(null)};return t.jsxs(k,{...y,children:[t.jsx(M,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"actions-menu-icon",onClick:x,size:f,children:t.jsx(p,{})}),t.jsx(z,{id:"actions-menu","data-cy":"actions-menu",anchorEl:n,keepMounted:!0,open:v,onClose:a,slotProps:{paper:{}},children:m.map((e,r)=>{if(typeof e=="function")return e({close:a});if(e.separator)return t.jsx(D,{},`separator-${r}`);const{icon:h,text:j,render:q,onClick:s,disabled:g=!1,...P}=e;return l.createElement(_,{...P,disabled:g,dense:!0,onClick:async c=>{c.stopPropagation(),await(s==null?void 0:s(c)),a()},key:r,"data-cy":`actions-menu-${r}`},t.jsx(b,{style:{minWidth:24,marginRight:8},children:h}),t.jsx(C,{primary:j}))})})]})}d.propTypes={actions:u.array,size:u.oneOf(["small","medium","large"])};d.defaultProps={actions:[],size:"small"};const k=R.div``;export{d as A};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aH as dr,c$ as Ul,d0 as zl,r as I,eC as Kl,d6 as Wl,aG as Hl,j as A,cL as Xl,aJ as Yl,d7 as Ql,aK as Zl,aC as Jl,aD as ec,aF as tc,_ as Ft,Q as Hi,eD as rc,eE as nc,k as pr,eF as ic,eG as ac,c0 as oc,dc as un,bx as mn,F as Tn,b4 as rr,eH as Di,eB as sc,bB as lc,P as $,br as Be,X as xt,Y as yt,a1 as Fe,m as Qe,ap as In,Z as Oe,B as te,a7 as st,h as Vs,cs as Ve,D as Fs,T as Ie,u as Ze,$ as Wr,bC as Dn,aM as Hr,E as cc,e as uc,az as mc,eI as pc,cq as Ns,dA as fc,eJ as hc,eK as dc,eL as Cn,cr as fe,eM as xc,a9 as tt,eN as yc,eO as gc,J as Ls,aW as kc,bi as vc,bq as oo,eP as bc,c1 as ji,c as Vn,eQ as Sc,b_ as Ec,s as Xi,eR as wc,aV as Fn,C as Ac,cn as _c,eS as Ms,aQ as qs,eT as Dc,eU as jc,av as so,bh as Nn,ad as Us,a8 as zs,O as Ks,eV as Oc,b as Ws,ck as Pc,de as Bc,l as Gc,eW as $c,bo as Hs,bc as Xs,bE as fr,cj as Rc,bk as Tc,dt as Ic,ae as Cc,bl as Vc,eX as Fc,eY as Nc,dd as Lc,ac as Mc,A as qc,eZ as Uc,e_ as zc,e$ as Kc,bv as Wc,ct as Hc,f0 as Xc,f1 as Yc,f2 as Qc,f3 as pn,f4 as lo,f5 as Zc}from"./index-DvtNf3MX.js";import{l as Jc}from"./lottie-BkBLpyq4.js";import{u as eu,a as tu,L as ru,C as nu,S as iu}from"./index-CawJM03k.js";import{L as co}from"./launch-result-message-CiMoeOVx.js";import{P as Ys}from"./page-header-BgJuaSCO.js";import{u as Qs}from"./uniqBy-CZJpgO1J.js";import{R as mi}from"./logo-uploader-B0YprodS.js";import{S as au}from"./index-oOktkAnt.js";import{s as Zs,h as ou,w as su,f as lu,a as cu,b as uu,c as mu,M as pu}from"./index-BjO-8Cyn.js";import{j as uo}from"./url-join-Dcasf_Nc.js";import{F as fu,C as hu,S as du}from"./FormControlLabel-BQ6g2rGO.js";import{p as xu}from"./index-DRtYHh93.js";import{I as mo}from"./index-CteA8uRo.js";import{u as yu}from"./session-BrGTnOHc.js";import{W as gu}from"./did-address-XFbf5Eal.js";import{T as Yi}from"./TextField-BDvdWir7.js";import{S as ku,a as vu,b as bu}from"./Stepper-DPEDGxZe.js";import{D as Su,f as Js}from"./format-error-CEsleqYi.js";import{A as e0}from"./Alert-Co6nFhOM.js";import{a as po}from"./api-bW9ajS2Q.js";import{m as Eu,S as wu,A as Au}from"./item-kAh3zs2p.js";import{L as _u}from"./MoreVert-BTTontfH.js";import{L as Du,a as ju}from"./ListItemText-qGJxabmF.js";import{v as Ou}from"./util-DjAL1Pyt.js";import{u as t0,C as Pu,D as Bu,a as Gu}from"./connect-to-DXGZqjbA.js";import{C as $u}from"./content-layout-DuFFHhl5.js";import{d as Ru}from"./ArrowDropDown-Bvihb5fc.js";import{_ as Tu}from"./useLocalStorage-DCyKJSAA.js";import{E as Qi}from"./fallback-DSloEwfk.js";import{E as Iu}from"./index-DFWL1ByV.js";import{d as Cu}from"./Search-CEgjSR67.js";import{S as Vu}from"./index-DiaHuDXm.js";import{O as Fu}from"./Select-CYN6Jr5f.js";import{H as fo}from"./Hidden-DMR3jGzj.js";import{M as ho}from"./InputAdornment-BXNzazu1.js";import{y as Nu,g as Lu,N as Mu}from"./preact.module-B1z5cdvs.js";import{E as qu}from"./Link-BKxB3Szm.js";const Uu=(e,t)=>e.filter(r=>t.includes(r)),nr=(e,t,r)=>{const n=e.keys[0];Array.isArray(t)?t.forEach((i,c)=>{r((l,o)=>{c<=e.keys.length-1&&(c===0?Object.assign(l,o):l[e.up(e.keys[c])]=o)},i)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:Uu(e.keys,Object.keys(t))).forEach(c=>{if(e.keys.indexOf(c)!==-1){const l=t[c];l!==void 0&&r((o,x)=>{n===c?Object.assign(o,x):o[e.up(c)]=x},l)}}):(typeof t=="number"||typeof t=="string")&&r((i,c)=>{Object.assign(i,c)},t)};function lt(e){return e?`Level${e}`:""}function Xr(e){return e.unstable_level>0&&e.container}function r0(e){return function(r){return`var(--Grid-${r}Spacing${lt(e.unstable_level)})`}}function Zi(e){return function(r){return e.unstable_level===0?`var(--Grid-${r}Spacing)`:`var(--Grid-${r}Spacing${lt(e.unstable_level-1)})`}}function Ji(e){return e.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${lt(e.unstable_level-1)})`}const zu=({theme:e,ownerState:t})=>{const r=r0(t),n={};return nr(e.breakpoints,t.gridSize,(i,c)=>{let l={};c===!0&&(l={flexBasis:0,flexGrow:1,maxWidth:"100%"}),c==="auto"&&(l={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof c=="number"&&(l={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${c} / ${Ji(t)}${Xr(t)?` + ${r("column")}`:""})`}),i(n,l)}),n},Ku=({theme:e,ownerState:t})=>{const r={};return nr(e.breakpoints,t.gridOffset,(n,i)=>{let c={};i==="auto"&&(c={marginLeft:"auto"}),typeof i=="number"&&(c={marginLeft:i===0?"0px":`calc(100% * ${i} / ${Ji(t)})`}),n(r,c)}),r},Wu=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=Xr(t)?{[`--Grid-columns${lt(t.unstable_level)}`]:Ji(t)}:{"--Grid-columns":12};return nr(e.breakpoints,t.columns,(n,i)=>{n(r,{[`--Grid-columns${lt(t.unstable_level)}`]:i})}),r},Hu=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=Zi(t),n=Xr(t)?{[`--Grid-rowSpacing${lt(t.unstable_level)}`]:r("row")}:{};return nr(e.breakpoints,t.rowSpacing,(i,c)=>{var l;i(n,{[`--Grid-rowSpacing${lt(t.unstable_level)}`]:typeof c=="string"?c:(l=e.spacing)==null?void 0:l.call(e,c)})}),n},Xu=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=Zi(t),n=Xr(t)?{[`--Grid-columnSpacing${lt(t.unstable_level)}`]:r("column")}:{};return nr(e.breakpoints,t.columnSpacing,(i,c)=>{var l;i(n,{[`--Grid-columnSpacing${lt(t.unstable_level)}`]:typeof c=="string"?c:(l=e.spacing)==null?void 0:l.call(e,c)})}),n},Yu=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={};return nr(e.breakpoints,t.direction,(n,i)=>{n(r,{flexDirection:i})}),r},Qu=({ownerState:e})=>{const t=r0(e),r=Zi(e);return dr({minWidth:0,boxSizing:"border-box"},e.container&&dr({display:"flex",flexWrap:"wrap"},e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},{margin:`calc(${t("row")} / -2) calc(${t("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${t("row")} * -1) 0px 0px calc(${t("column")} * -1)`}),(!e.container||Xr(e))&&dr({padding:`calc(${r("row")} / 2) calc(${r("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${r("row")} 0px 0px ${r("column")}`}))},Zu=e=>{const t=[];return Object.entries(e).forEach(([r,n])=>{n!==!1&&n!==void 0&&t.push(`grid-${r}-${String(n)}`)}),t},Ju=(e,t="xs")=>{function r(n){return n===void 0?!1:typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number"&&n>0}if(r(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const n=[];return Object.entries(e).forEach(([i,c])=>{r(c)&&n.push(`spacing-${i}-${String(c)}`)}),n}return[]},e1=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,r])=>`direction-${t}-${r}`):[`direction-xs-${String(e)}`],t1=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],r1=Ul(),n1=zl("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function i1(e){return Ql({props:e,name:"MuiGrid",defaultTheme:r1})}function a1(e={}){const{createStyledComponent:t=n1,useThemeProps:r=i1,componentName:n="MuiGrid"}=e,i=I.createContext(void 0),c=(x,g)=>{const{container:h,direction:a,spacing:p,wrap:m,gridSize:u}=x,s={root:["root",h&&"container",m!=="wrap"&&`wrap-xs-${String(m)}`,...e1(a),...Zu(u),...h?Ju(p,g.breakpoints.keys[0]):[]]};return Zl(s,y=>Jl(n,y),{})},l=t(Wu,Xu,Hu,zu,Yu,Qu,Ku),o=I.forwardRef(function(g,h){var a,p,m,u,s,y,f,d;const k=Kl(),S=r(g),b=Wl(S),_=I.useContext(i),{className:D,children:v,columns:E=12,container:w=!1,component:O="div",direction:R="row",wrap:C="wrap",spacing:L=0,rowSpacing:F=L,columnSpacing:U=L,disableEqualOverflow:W,unstable_level:T=0}=b,M=Hl(b,t1);let z=W;T&&W!==void 0&&(z=g.disableEqualOverflow);const X={},Z={},se={};Object.entries(M).forEach(([de,ie])=>{k.breakpoints.values[de]!==void 0?X[de]=ie:k.breakpoints.values[de.replace("Offset","")]!==void 0?Z[de.replace("Offset","")]=ie:se[de]=ie});const ce=(a=g.columns)!=null?a:T?void 0:E,Ae=(p=g.spacing)!=null?p:T?void 0:L,We=(m=(u=g.rowSpacing)!=null?u:g.spacing)!=null?m:T?void 0:F,Re=(s=(y=g.columnSpacing)!=null?y:g.spacing)!=null?s:T?void 0:U,ut=dr({},b,{level:T,columns:ce,container:w,direction:R,wrap:C,spacing:Ae,rowSpacing:We,columnSpacing:Re,gridSize:X,gridOffset:Z,disableEqualOverflow:(f=(d=z)!=null?d:_)!=null?f:!1,parentDisableEqualOverflow:_}),ye=c(ut,k);let oe=A.jsx(l,dr({ref:h,as:O,ownerState:ut,className:Yl(ye.root,D)},se,{children:I.Children.map(v,de=>{if(I.isValidElement(de)&&Xl(de,["Grid"])){var ie;return I.cloneElement(de,{unstable_level:(ie=de.props.unstable_level)!=null?ie:T+1})}return de})}));return z!==void 0&&z!==(_??!1)&&(oe=A.jsx(i.Provider,{value:z,children:oe})),oe});return o.muiName="Grid",o}const o1=a1({createStyledComponent:ec("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>tc({props:e,name:"MuiGrid2"})}),pi=o1;var s1=function(e){return e===document||e===document.documentElement||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},l1=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},c1=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},u1=function(e,t){t===void 0&&(t={});var r=t.target,n=t.isNoMore,i=t.threshold,c=i===void 0?100:i,l=t.reloadDeps,o=l===void 0?[]:l,x=t.manual,g=t.onBefore,h=t.onSuccess,a=t.onError,p=t.onFinally,m=Ft(I.useState(),2),u=m[0],s=m[1],y=Ft(I.useState(!1),2),f=y[0],d=y[1],k=I.useMemo(function(){return n?n(u):!1},[u]),S=Hi(function(F){return rc(void 0,void 0,void 0,function(){var U,W,T;return nc(this,function(M){switch(M.label){case 0:return[4,e(F)];case 1:return U=M.sent(),s(F?mn(mn({},U),{list:un(un([],Ft((T=F.list)!==null&&T!==void 0?T:[]),!1),Ft(U.list),!1)}):mn(mn({},U),{list:un([],Ft((W=U.list)!==null&&W!==void 0?W:[]),!1)})),[2,U]}})})},{manual:x,onFinally:function(F,U,W){d(!1),p==null||p(U,W)},onBefore:function(){return g==null?void 0:g()},onSuccess:function(F){setTimeout(function(){L()}),h==null||h(F)},onError:function(F){return a==null?void 0:a(F)}}),b=S.loading,_=S.error,D=S.run,v=S.runAsync,E=S.cancel,w=pr(function(){k||(d(!0),D(u))}),O=pr(function(){return k?Promise.reject():(d(!0),v(u))}),R=function(){return d(!1),D()},C=function(){return d(!1),v()},L=function(){var F=ic(r);if(F){F=F===document?document.documentElement:F;var U=s1(F),W=l1(F),T=c1(F);W-U<=T+c&&w()}};return ac("scroll",function(){b||f||L()},{target:r}),oc(function(){D()},un([],Ft(o),!1)),{data:u,loading:!f&&b,error:_,loadingMore:f,noMore:k,loadMore:w,loadMoreAsync:O,reload:pr(R),reloadAsync:pr(C),mutate:s,cancel:E}};const m1=u1,$2="blocklet-add-component-registry",R2="server-add-registry",T2=e=>`resource-${e}-add-registry`,{NODE_MODES:xo}=Tn,p1=({mode:e,previousMode:t}={})=>e===xo.SERVERLESS||t===xo.SERVERLESS;var n0={isInServerlessMode:p1},f1=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,c;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(i of t.entries())if(!r.has(i[0]))return!1;for(i of t.entries())if(!e(i[1],r.get(i[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(i of t.entries())if(!r.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(t[i]!==r[i])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(c=Object.keys(t),n=c.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,c[i]))return!1;for(i=n;i--!==0;){var l=c[i];if(!(l==="_owner"&&t.$$typeof)&&!e(t[l],r[l]))return!1}return!0}return t!==t&&r!==r};const yo=rr(f1);var h1=d1;function Xt(e){return e instanceof Di?Di.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function d1(e){if(e=e||{},e.circles)return x1(e);return e.proto?n:r;function t(i,c){for(var l=Object.keys(i),o=new Array(l.length),x=0;x<l.length;x++){var g=l[x],h=i[g];typeof h!="object"||h===null?o[g]=h:h instanceof Date?o[g]=new Date(h):ArrayBuffer.isView(h)?o[g]=Xt(h):o[g]=c(h)}return o}function r(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return t(i,r);if(i instanceof Map)return new Map(t(Array.from(i),r));if(i instanceof Set)return new Set(t(Array.from(i),r));var c={};for(var l in i)if(Object.hasOwnProperty.call(i,l)!==!1){var o=i[l];typeof o!="object"||o===null?c[l]=o:o instanceof Date?c[l]=new Date(o):o instanceof Map?c[l]=new Map(t(Array.from(o),r)):o instanceof Set?c[l]=new Set(t(Array.from(o),r)):ArrayBuffer.isView(o)?c[l]=Xt(o):c[l]=r(o)}return c}function n(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return t(i,n);if(i instanceof Map)return new Map(t(Array.from(i),n));if(i instanceof Set)return new Set(t(Array.from(i),n));var c={};for(var l in i){var o=i[l];typeof o!="object"||o===null?c[l]=o:o instanceof Date?c[l]=new Date(o):o instanceof Map?c[l]=new Map(t(Array.from(o),n)):o instanceof Set?c[l]=new Set(t(Array.from(o),n)):ArrayBuffer.isView(o)?c[l]=Xt(o):c[l]=n(o)}return c}}function x1(e){var t=[],r=[];return e.proto?c:i;function n(l,o){for(var x=Object.keys(l),g=new Array(x.length),h=0;h<x.length;h++){var a=x[h],p=l[a];if(typeof p!="object"||p===null)g[a]=p;else if(p instanceof Date)g[a]=new Date(p);else if(ArrayBuffer.isView(p))g[a]=Xt(p);else{var m=t.indexOf(p);m!==-1?g[a]=r[m]:g[a]=o(p)}}return g}function i(l){if(typeof l!="object"||l===null)return l;if(l instanceof Date)return new Date(l);if(Array.isArray(l))return n(l,i);if(l instanceof Map)return new Map(n(Array.from(l),i));if(l instanceof Set)return new Set(n(Array.from(l),i));var o={};t.push(l),r.push(o);for(var x in l)if(Object.hasOwnProperty.call(l,x)!==!1){var g=l[x];if(typeof g!="object"||g===null)o[x]=g;else if(g instanceof Date)o[x]=new Date(g);else if(g instanceof Map)o[x]=new Map(n(Array.from(g),i));else if(g instanceof Set)o[x]=new Set(n(Array.from(g),i));else if(ArrayBuffer.isView(g))o[x]=Xt(g);else{var h=t.indexOf(g);h!==-1?o[x]=r[h]:o[x]=i(g)}}return t.pop(),r.pop(),o}function c(l){if(typeof l!="object"||l===null)return l;if(l instanceof Date)return new Date(l);if(Array.isArray(l))return n(l,c);if(l instanceof Map)return new Map(n(Array.from(l),c));if(l instanceof Set)return new Set(n(Array.from(l),c));var o={};t.push(l),r.push(o);for(var x in l){var g=l[x];if(typeof g!="object"||g===null)o[x]=g;else if(g instanceof Date)o[x]=new Date(g);else if(g instanceof Map)o[x]=new Map(n(Array.from(g),c));else if(g instanceof Set)o[x]=new Set(n(Array.from(g),c));else if(ArrayBuffer.isView(g))o[x]=Xt(g);else{var h=t.indexOf(g);h!==-1?o[x]=r[h]:o[x]=c(g)}}return t.pop(),r.pop(),o}}var y1=h1();const go=rr(y1);function Oi(){return Oi=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},Oi.apply(this,arguments)}function g1(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,c;for(c=0;c<n.length;c++)i=n[c],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function ea(e,t){return t={exports:{}},e(t,t.exports),t.exports}/** @license React v16.13.1
|
|
1
|
+
import{aH as dr,c$ as Ul,d0 as zl,r as I,eC as Kl,d6 as Wl,aG as Hl,j as A,cL as Xl,aJ as Yl,d7 as Ql,aK as Zl,aC as Jl,aD as ec,aF as tc,_ as Ft,Q as Hi,eD as rc,eE as nc,k as pr,eF as ic,eG as ac,c0 as oc,dc as un,bx as mn,F as Tn,b4 as rr,eH as Di,eB as sc,bB as lc,P as $,br as Be,X as xt,Y as yt,a1 as Fe,m as Qe,ap as In,Z as Oe,B as te,a7 as st,h as Vs,cs as Ve,D as Fs,T as Ie,u as Ze,$ as Wr,bC as Dn,aM as Hr,E as cc,e as uc,az as mc,eI as pc,cq as Ns,dA as fc,eJ as hc,eK as dc,eL as Cn,cr as fe,eM as xc,a9 as tt,eN as yc,eO as gc,J as Ls,aW as kc,bi as vc,bq as oo,eP as bc,c1 as ji,c as Vn,eQ as Sc,b_ as Ec,s as Xi,eR as wc,aV as Fn,C as Ac,cn as _c,eS as Ms,aQ as qs,eT as Dc,eU as jc,av as so,bh as Nn,ad as Us,a8 as zs,O as Ks,eV as Oc,b as Ws,ck as Pc,de as Bc,l as Gc,eW as $c,bo as Hs,bc as Xs,bE as fr,cj as Rc,bk as Tc,dt as Ic,ae as Cc,bl as Vc,eX as Fc,eY as Nc,dd as Lc,ac as Mc,A as qc,eZ as Uc,e_ as zc,e$ as Kc,bv as Wc,ct as Hc,f0 as Xc,f1 as Yc,f2 as Qc,f3 as pn,f4 as lo,f5 as Zc}from"./index-Wcry0Teq.js";import{l as Jc}from"./lottie-BtiHsDgJ.js";import{u as eu,a as tu,L as ru,C as nu,S as iu}from"./index-TRv28IoN.js";import{L as co}from"./launch-result-message-BbNNNIuG.js";import{P as Ys}from"./page-header-Bldx8iyY.js";import{u as Qs}from"./uniqBy-7zzhp_MA.js";import{R as mi}from"./logo-uploader-tIXv-22X.js";import{S as au}from"./index-CR6hY1ov.js";import{s as Zs,h as ou,w as su,f as lu,a as cu,b as uu,c as mu,M as pu}from"./index-C0YJC7GF.js";import{j as uo}from"./url-join-a02ntsC0.js";import{F as fu,C as hu,S as du}from"./FormControlLabel-KyoBPdSk.js";import{p as xu}from"./index-NCKBCLy8.js";import{I as mo}from"./index-WeQ9_XM1.js";import{u as yu}from"./session-C0iFSkEy.js";import{W as gu}from"./did-address-zjDIEnBt.js";import{T as Yi}from"./TextField-Dt3whk-X.js";import{S as ku,a as vu,b as bu}from"./Stepper-CNAz-9-7.js";import{D as Su,f as Js}from"./format-error-C3RZfboJ.js";import{A as e0}from"./Alert-CMX-K3fl.js";import{a as po}from"./api-SdQuBmE7.js";import{m as Eu,S as wu,A as Au}from"./item-DTQh_HzF.js";import{L as _u}from"./MoreVert-DI1V1WEt.js";import{L as Du,a as ju}from"./ListItemText-kSkjBnFz.js";import{v as Ou}from"./util-B4OkdChr.js";import{u as t0,C as Pu,D as Bu,a as Gu}from"./connect-to-RRtLSFp2.js";import{C as $u}from"./content-layout-DabnStRh.js";import{d as Ru}from"./ArrowDropDown-BHB91Q_p.js";import{_ as Tu}from"./useLocalStorage-C1CKxRfv.js";import{E as Qi}from"./fallback-dS7iHIHz.js";import{E as Iu}from"./index-CRxNIeZQ.js";import{d as Cu}from"./Search-CBLNui8O.js";import{S as Vu}from"./index-Cu_qbLkU.js";import{O as Fu}from"./Select-D8XELjVf.js";import{H as fo}from"./Hidden--9BCZNYr.js";import{M as ho}from"./InputAdornment-C1Qpudux.js";import{y as Nu,g as Lu,N as Mu}from"./preact.module-B1z5cdvs.js";import{E as qu}from"./Link-sFv_5np_.js";const Uu=(e,t)=>e.filter(r=>t.includes(r)),nr=(e,t,r)=>{const n=e.keys[0];Array.isArray(t)?t.forEach((i,c)=>{r((l,o)=>{c<=e.keys.length-1&&(c===0?Object.assign(l,o):l[e.up(e.keys[c])]=o)},i)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:Uu(e.keys,Object.keys(t))).forEach(c=>{if(e.keys.indexOf(c)!==-1){const l=t[c];l!==void 0&&r((o,x)=>{n===c?Object.assign(o,x):o[e.up(c)]=x},l)}}):(typeof t=="number"||typeof t=="string")&&r((i,c)=>{Object.assign(i,c)},t)};function lt(e){return e?`Level${e}`:""}function Xr(e){return e.unstable_level>0&&e.container}function r0(e){return function(r){return`var(--Grid-${r}Spacing${lt(e.unstable_level)})`}}function Zi(e){return function(r){return e.unstable_level===0?`var(--Grid-${r}Spacing)`:`var(--Grid-${r}Spacing${lt(e.unstable_level-1)})`}}function Ji(e){return e.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${lt(e.unstable_level-1)})`}const zu=({theme:e,ownerState:t})=>{const r=r0(t),n={};return nr(e.breakpoints,t.gridSize,(i,c)=>{let l={};c===!0&&(l={flexBasis:0,flexGrow:1,maxWidth:"100%"}),c==="auto"&&(l={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof c=="number"&&(l={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${c} / ${Ji(t)}${Xr(t)?` + ${r("column")}`:""})`}),i(n,l)}),n},Ku=({theme:e,ownerState:t})=>{const r={};return nr(e.breakpoints,t.gridOffset,(n,i)=>{let c={};i==="auto"&&(c={marginLeft:"auto"}),typeof i=="number"&&(c={marginLeft:i===0?"0px":`calc(100% * ${i} / ${Ji(t)})`}),n(r,c)}),r},Wu=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=Xr(t)?{[`--Grid-columns${lt(t.unstable_level)}`]:Ji(t)}:{"--Grid-columns":12};return nr(e.breakpoints,t.columns,(n,i)=>{n(r,{[`--Grid-columns${lt(t.unstable_level)}`]:i})}),r},Hu=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=Zi(t),n=Xr(t)?{[`--Grid-rowSpacing${lt(t.unstable_level)}`]:r("row")}:{};return nr(e.breakpoints,t.rowSpacing,(i,c)=>{var l;i(n,{[`--Grid-rowSpacing${lt(t.unstable_level)}`]:typeof c=="string"?c:(l=e.spacing)==null?void 0:l.call(e,c)})}),n},Xu=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=Zi(t),n=Xr(t)?{[`--Grid-columnSpacing${lt(t.unstable_level)}`]:r("column")}:{};return nr(e.breakpoints,t.columnSpacing,(i,c)=>{var l;i(n,{[`--Grid-columnSpacing${lt(t.unstable_level)}`]:typeof c=="string"?c:(l=e.spacing)==null?void 0:l.call(e,c)})}),n},Yu=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={};return nr(e.breakpoints,t.direction,(n,i)=>{n(r,{flexDirection:i})}),r},Qu=({ownerState:e})=>{const t=r0(e),r=Zi(e);return dr({minWidth:0,boxSizing:"border-box"},e.container&&dr({display:"flex",flexWrap:"wrap"},e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},{margin:`calc(${t("row")} / -2) calc(${t("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${t("row")} * -1) 0px 0px calc(${t("column")} * -1)`}),(!e.container||Xr(e))&&dr({padding:`calc(${r("row")} / 2) calc(${r("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${r("row")} 0px 0px ${r("column")}`}))},Zu=e=>{const t=[];return Object.entries(e).forEach(([r,n])=>{n!==!1&&n!==void 0&&t.push(`grid-${r}-${String(n)}`)}),t},Ju=(e,t="xs")=>{function r(n){return n===void 0?!1:typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number"&&n>0}if(r(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const n=[];return Object.entries(e).forEach(([i,c])=>{r(c)&&n.push(`spacing-${i}-${String(c)}`)}),n}return[]},e1=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,r])=>`direction-${t}-${r}`):[`direction-xs-${String(e)}`],t1=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],r1=Ul(),n1=zl("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function i1(e){return Ql({props:e,name:"MuiGrid",defaultTheme:r1})}function a1(e={}){const{createStyledComponent:t=n1,useThemeProps:r=i1,componentName:n="MuiGrid"}=e,i=I.createContext(void 0),c=(x,g)=>{const{container:h,direction:a,spacing:p,wrap:m,gridSize:u}=x,s={root:["root",h&&"container",m!=="wrap"&&`wrap-xs-${String(m)}`,...e1(a),...Zu(u),...h?Ju(p,g.breakpoints.keys[0]):[]]};return Zl(s,y=>Jl(n,y),{})},l=t(Wu,Xu,Hu,zu,Yu,Qu,Ku),o=I.forwardRef(function(g,h){var a,p,m,u,s,y,f,d;const k=Kl(),S=r(g),b=Wl(S),_=I.useContext(i),{className:D,children:v,columns:E=12,container:w=!1,component:O="div",direction:R="row",wrap:C="wrap",spacing:L=0,rowSpacing:F=L,columnSpacing:U=L,disableEqualOverflow:W,unstable_level:T=0}=b,M=Hl(b,t1);let z=W;T&&W!==void 0&&(z=g.disableEqualOverflow);const X={},Z={},se={};Object.entries(M).forEach(([de,ie])=>{k.breakpoints.values[de]!==void 0?X[de]=ie:k.breakpoints.values[de.replace("Offset","")]!==void 0?Z[de.replace("Offset","")]=ie:se[de]=ie});const ce=(a=g.columns)!=null?a:T?void 0:E,Ae=(p=g.spacing)!=null?p:T?void 0:L,We=(m=(u=g.rowSpacing)!=null?u:g.spacing)!=null?m:T?void 0:F,Re=(s=(y=g.columnSpacing)!=null?y:g.spacing)!=null?s:T?void 0:U,ut=dr({},b,{level:T,columns:ce,container:w,direction:R,wrap:C,spacing:Ae,rowSpacing:We,columnSpacing:Re,gridSize:X,gridOffset:Z,disableEqualOverflow:(f=(d=z)!=null?d:_)!=null?f:!1,parentDisableEqualOverflow:_}),ye=c(ut,k);let oe=A.jsx(l,dr({ref:h,as:O,ownerState:ut,className:Yl(ye.root,D)},se,{children:I.Children.map(v,de=>{if(I.isValidElement(de)&&Xl(de,["Grid"])){var ie;return I.cloneElement(de,{unstable_level:(ie=de.props.unstable_level)!=null?ie:T+1})}return de})}));return z!==void 0&&z!==(_??!1)&&(oe=A.jsx(i.Provider,{value:z,children:oe})),oe});return o.muiName="Grid",o}const o1=a1({createStyledComponent:ec("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>tc({props:e,name:"MuiGrid2"})}),pi=o1;var s1=function(e){return e===document||e===document.documentElement||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},l1=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},c1=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},u1=function(e,t){t===void 0&&(t={});var r=t.target,n=t.isNoMore,i=t.threshold,c=i===void 0?100:i,l=t.reloadDeps,o=l===void 0?[]:l,x=t.manual,g=t.onBefore,h=t.onSuccess,a=t.onError,p=t.onFinally,m=Ft(I.useState(),2),u=m[0],s=m[1],y=Ft(I.useState(!1),2),f=y[0],d=y[1],k=I.useMemo(function(){return n?n(u):!1},[u]),S=Hi(function(F){return rc(void 0,void 0,void 0,function(){var U,W,T;return nc(this,function(M){switch(M.label){case 0:return[4,e(F)];case 1:return U=M.sent(),s(F?mn(mn({},U),{list:un(un([],Ft((T=F.list)!==null&&T!==void 0?T:[]),!1),Ft(U.list),!1)}):mn(mn({},U),{list:un([],Ft((W=U.list)!==null&&W!==void 0?W:[]),!1)})),[2,U]}})})},{manual:x,onFinally:function(F,U,W){d(!1),p==null||p(U,W)},onBefore:function(){return g==null?void 0:g()},onSuccess:function(F){setTimeout(function(){L()}),h==null||h(F)},onError:function(F){return a==null?void 0:a(F)}}),b=S.loading,_=S.error,D=S.run,v=S.runAsync,E=S.cancel,w=pr(function(){k||(d(!0),D(u))}),O=pr(function(){return k?Promise.reject():(d(!0),v(u))}),R=function(){return d(!1),D()},C=function(){return d(!1),v()},L=function(){var F=ic(r);if(F){F=F===document?document.documentElement:F;var U=s1(F),W=l1(F),T=c1(F);W-U<=T+c&&w()}};return ac("scroll",function(){b||f||L()},{target:r}),oc(function(){D()},un([],Ft(o),!1)),{data:u,loading:!f&&b,error:_,loadingMore:f,noMore:k,loadMore:w,loadMoreAsync:O,reload:pr(R),reloadAsync:pr(C),mutate:s,cancel:E}};const m1=u1,$2="blocklet-add-component-registry",R2="server-add-registry",T2=e=>`resource-${e}-add-registry`,{NODE_MODES:xo}=Tn,p1=({mode:e,previousMode:t}={})=>e===xo.SERVERLESS||t===xo.SERVERLESS;var n0={isInServerlessMode:p1},f1=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,c;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(i of t.entries())if(!r.has(i[0]))return!1;for(i of t.entries())if(!e(i[1],r.get(i[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(i of t.entries())if(!r.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(t[i]!==r[i])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(c=Object.keys(t),n=c.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,c[i]))return!1;for(i=n;i--!==0;){var l=c[i];if(!(l==="_owner"&&t.$$typeof)&&!e(t[l],r[l]))return!1}return!0}return t!==t&&r!==r};const yo=rr(f1);var h1=d1;function Xt(e){return e instanceof Di?Di.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function d1(e){if(e=e||{},e.circles)return x1(e);return e.proto?n:r;function t(i,c){for(var l=Object.keys(i),o=new Array(l.length),x=0;x<l.length;x++){var g=l[x],h=i[g];typeof h!="object"||h===null?o[g]=h:h instanceof Date?o[g]=new Date(h):ArrayBuffer.isView(h)?o[g]=Xt(h):o[g]=c(h)}return o}function r(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return t(i,r);if(i instanceof Map)return new Map(t(Array.from(i),r));if(i instanceof Set)return new Set(t(Array.from(i),r));var c={};for(var l in i)if(Object.hasOwnProperty.call(i,l)!==!1){var o=i[l];typeof o!="object"||o===null?c[l]=o:o instanceof Date?c[l]=new Date(o):o instanceof Map?c[l]=new Map(t(Array.from(o),r)):o instanceof Set?c[l]=new Set(t(Array.from(o),r)):ArrayBuffer.isView(o)?c[l]=Xt(o):c[l]=r(o)}return c}function n(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return t(i,n);if(i instanceof Map)return new Map(t(Array.from(i),n));if(i instanceof Set)return new Set(t(Array.from(i),n));var c={};for(var l in i){var o=i[l];typeof o!="object"||o===null?c[l]=o:o instanceof Date?c[l]=new Date(o):o instanceof Map?c[l]=new Map(t(Array.from(o),n)):o instanceof Set?c[l]=new Set(t(Array.from(o),n)):ArrayBuffer.isView(o)?c[l]=Xt(o):c[l]=n(o)}return c}}function x1(e){var t=[],r=[];return e.proto?c:i;function n(l,o){for(var x=Object.keys(l),g=new Array(x.length),h=0;h<x.length;h++){var a=x[h],p=l[a];if(typeof p!="object"||p===null)g[a]=p;else if(p instanceof Date)g[a]=new Date(p);else if(ArrayBuffer.isView(p))g[a]=Xt(p);else{var m=t.indexOf(p);m!==-1?g[a]=r[m]:g[a]=o(p)}}return g}function i(l){if(typeof l!="object"||l===null)return l;if(l instanceof Date)return new Date(l);if(Array.isArray(l))return n(l,i);if(l instanceof Map)return new Map(n(Array.from(l),i));if(l instanceof Set)return new Set(n(Array.from(l),i));var o={};t.push(l),r.push(o);for(var x in l)if(Object.hasOwnProperty.call(l,x)!==!1){var g=l[x];if(typeof g!="object"||g===null)o[x]=g;else if(g instanceof Date)o[x]=new Date(g);else if(g instanceof Map)o[x]=new Map(n(Array.from(g),i));else if(g instanceof Set)o[x]=new Set(n(Array.from(g),i));else if(ArrayBuffer.isView(g))o[x]=Xt(g);else{var h=t.indexOf(g);h!==-1?o[x]=r[h]:o[x]=i(g)}}return t.pop(),r.pop(),o}function c(l){if(typeof l!="object"||l===null)return l;if(l instanceof Date)return new Date(l);if(Array.isArray(l))return n(l,c);if(l instanceof Map)return new Map(n(Array.from(l),c));if(l instanceof Set)return new Set(n(Array.from(l),c));var o={};t.push(l),r.push(o);for(var x in l){var g=l[x];if(typeof g!="object"||g===null)o[x]=g;else if(g instanceof Date)o[x]=new Date(g);else if(g instanceof Map)o[x]=new Map(n(Array.from(g),c));else if(g instanceof Set)o[x]=new Set(n(Array.from(g),c));else if(ArrayBuffer.isView(g))o[x]=Xt(g);else{var h=t.indexOf(g);h!==-1?o[x]=r[h]:o[x]=c(g)}}return t.pop(),r.pop(),o}}var y1=h1();const go=rr(y1);function Oi(){return Oi=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},Oi.apply(this,arguments)}function g1(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,c;for(c=0;c<n.length;c++)i=n[c],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function ea(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.
|
|
@@ -523,7 +523,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
523
523
|
color: ${e=>e.theme.palette.grey[500]};
|
|
524
524
|
font-size: 16px;
|
|
525
525
|
cursor: pointer;
|
|
526
|
-
`;function Ha({onSelect:e,wrapChildren:t}){const r=I.useRef(null),n=I.useRef(null),i=I.useRef(null),{storeApi:c,blockletRender:l,filters:o,endpoint:x,handleKeyword:g,t:h}=ct(),a=async y=>{const{data:f}=await c.get(at.blockletsPath,{params:y}),d=f.dataList||[];return d.length>0&&d.unshift({type:"more-result",total:f.total||0}),d},p=y=>{g(y.state.query),y.setIsOpen(!1)},m=()=>{r.current&&setTimeout(()=>{const y=r.current.querySelector("input.bl-autocomplete-input");y&&y.focus()})},u=y=>{y.setIsOpen(!1),m()},s=({prevState:y,state:f})=>{y.query!==f.query&&(f.query||g())};return ok("ctrl + k, command + k",y=>(y.stopPropagation(),y.preventDefault(),m(),!1),{enableOnTags:["INPUT"]}),I.useEffect(()=>{m()},[x]),I.useEffect(()=>{if(!r.current)return;const y=Hg({container:r.current,renderer:{createElement:I.createElement,Fragment:I.Fragment,render:()=>{}},render({children:f},d){var k;(!n.current||i.current!==d)&&(i.current=d,(k=n.current)==null||k.unmount(),n.current=Nc(d)),n.current.render(t(f))},autoFocus:!0,openOnFocus:!1,classNames:{panel:"bl-autocomplete-panel",label:"bl-autocomplete-label",form:"bl-autocomplete-form",input:"bl-autocomplete-input",clearButton:"bl-autocomplete-clear",detachedCancelButton:"bl-autocomplete-detached-cancel",detachedContainer:"bl-autocomplete-detached-container"},translations:{clearButtonTitle:h("common.clear"),detachedCancelButtonText:h("common.cancel"),submitButtonTitle:h("common.search"),detachedSearchButtonTitle:h("common.search")},placeholder:h("common.searchStore"),initialState:{query:o.keyword},onStateChange(f){s(f)},onSubmit:p,onReset(f){u(f)},getSources({query:f,state:d,...k}){const S={...o,sortBy:at[o.sortBy],page:1,pageSize:10,keyword:f};return hk([{sourceId:"blocklets",getItems(){return a(S)},getItemInputValue({item:b}){return b.type==="more-result"?f:b.title},onSelect({event:b,item:_}){return _.type==="more-result"?(k.setIsOpen(!1),g(f)):b.type==="keydown"?g(_.title):e({blocklet:_,detailUrl:Vn(x
|
|
526
|
+
`;function Ha({onSelect:e,wrapChildren:t}){const r=I.useRef(null),n=I.useRef(null),i=I.useRef(null),{storeApi:c,blockletRender:l,filters:o,endpoint:x,handleKeyword:g,t:h}=ct(),a=async y=>{const{data:f}=await c.get(at.blockletsPath,{params:y}),d=f.dataList||[];return d.length>0&&d.unshift({type:"more-result",total:f.total||0}),d},p=y=>{g(y.state.query),y.setIsOpen(!1)},m=()=>{r.current&&setTimeout(()=>{const y=r.current.querySelector("input.bl-autocomplete-input");y&&y.focus()})},u=y=>{y.setIsOpen(!1),m()},s=({prevState:y,state:f})=>{y.query!==f.query&&(f.query||g())};return ok("ctrl + k, command + k",y=>(y.stopPropagation(),y.preventDefault(),m(),!1),{enableOnTags:["INPUT"]}),I.useEffect(()=>{m()},[x]),I.useEffect(()=>{if(!r.current)return;const y=Hg({container:r.current,renderer:{createElement:I.createElement,Fragment:I.Fragment,render:()=>{}},render({children:f},d){var k;(!n.current||i.current!==d)&&(i.current=d,(k=n.current)==null||k.unmount(),n.current=Nc(d)),n.current.render(t(f))},autoFocus:!0,openOnFocus:!1,classNames:{panel:"bl-autocomplete-panel",label:"bl-autocomplete-label",form:"bl-autocomplete-form",input:"bl-autocomplete-input",clearButton:"bl-autocomplete-clear",detachedCancelButton:"bl-autocomplete-detached-cancel",detachedContainer:"bl-autocomplete-detached-container"},translations:{clearButtonTitle:h("common.clear"),detachedCancelButtonText:h("common.cancel"),submitButtonTitle:h("common.search"),detachedSearchButtonTitle:h("common.search")},placeholder:h("common.searchStore"),initialState:{query:o.keyword},onStateChange(f){s(f)},onSubmit:p,onReset(f){u(f)},getSources({query:f,state:d,...k}){const S={...o,sortBy:at[o.sortBy],page:1,pageSize:10,keyword:f};return hk([{sourceId:"blocklets",getItems(){return a(S)},getItemInputValue({item:b}){return b.type==="more-result"?f:b.title},onSelect({event:b,item:_}){return _.type==="more-result"?(k.setIsOpen(!1),g(f)):b.type==="keydown"?g(_.title):e({blocklet:_,detailUrl:Vn(x,"/blocklets",_.did),storeUrl:x})},templates:{item({item:b}){return b.type==="more-result"?A.jsx("div",{children:h("autocomplete.expandResult",{name:f,number:b.total.toLocaleString()})}):l({blocklet:b,autocompleteSetters:k})},noResults(){return h("blocklet.noResults")}}}])}});return()=>{y.destroy()}},[o,l]),A.jsxs(A.Fragment,{children:[A.jsx(zs,{styles:Us`
|
|
527
527
|
.bl-autocomplete-detached-container {
|
|
528
528
|
.bl-autocomplete-detached-cancel {
|
|
529
529
|
white-space: nowrap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as B,af as L,bv as W,$ as O,r,c as A,c1 as T,bu as _,l as h,k as $,c2 as F,j as w,ap as K}from"./index-
|
|
1
|
+
import{u as B,af as L,bv as W,$ as O,r,c as A,c1 as T,bu as _,l as h,k as $,c2 as F,j as w,ap as K}from"./index-Wcry0Teq.js";import{A as z,S as G}from"./add-component-core-D2D1kYIa.js";import"./lottie-BtiHsDgJ.js";import"./index-TRv28IoN.js";import"./spaces-Bsjcm4Pb.js";import"./index-CzP2U-sb.js";import"./api-SdQuBmE7.js";import"./url-join-a02ntsC0.js";import"./Skeleton-CGGXM9I8.js";import"./Hidden--9BCZNYr.js";import"./launch-result-message-BbNNNIuG.js";import"./Close-CH7xdBg-.js";import"./page-header-Bldx8iyY.js";import"./uniqBy-7zzhp_MA.js";import"./logo-uploader-tIXv-22X.js";import"./index-DtpVJrTw.js";import"./index-CR6hY1ov.js";import"./EditIcon-BoTBX9Vo.js";import"./Done-Zoiu5U2x.js";import"./Google-DdO9mcms.js";import"./TextField-Dt3whk-X.js";import"./FormControl-24PD8_fY.js";import"./useFormControl-BolgsUUb.js";import"./InputLabel-xESrNHmo.js";import"./Select-D8XELjVf.js";import"./index-C0YJC7GF.js";import"./FormControlLabel-KyoBPdSk.js";import"./index-NCKBCLy8.js";import"./index-WeQ9_XM1.js";import"./session-C0iFSkEy.js";import"./did-address-zjDIEnBt.js";import"./Link-sFv_5np_.js";import"./Stepper-CNAz-9-7.js";import"./format-error-C3RZfboJ.js";import"./Alert-CMX-K3fl.js";import"./useSlot-BrPZCaVM.js";import"./item-DTQh_HzF.js";import"./Add-BZ7ZYVjp.js";import"./MoreVert-DI1V1WEt.js";import"./Launch-BDBE--jB.js";import"./DeleteOutline-DXY50-zB.js";import"./click-to-copy-C73Tfn_T.js";import"./shorten-label-Cb27JBwd.js";import"./confirm-DqzDl9MX.js";import"./Avatar-BsWomwcd.js";import"./ButtonGroup-B3eeFp-U.js";import"./jss-plugin-props-sort.esm-DCeO1l3a.js";import"./toPropertyKey-hKuLU48H.js";import"./ListItemText-kSkjBnFz.js";import"./util-B4OkdChr.js";import"./connect-to-RRtLSFp2.js";import"./use-blocklet-info-for-connect-did-spaces-Czhm8Xb6.js";import"./CloseOutlined-xB3FnxFh.js";import"./index-NHAbpx1v.js";import"./ExpandMore-CRbFTb5y.js";import"./content-layout-DabnStRh.js";import"./ArrowDropDown-BHB91Q_p.js";import"./useLocalStorage-C1CKxRfv.js";import"./fallback-dS7iHIHz.js";import"./index-CRxNIeZQ.js";import"./Search-CBLNui8O.js";import"./index-Cu_qbLkU.js";import"./InputAdornment-C1Qpudux.js";import"./preact.module-B1z5cdvs.js";function to(){var d;const{t:g}=B(),{blocklet:a}=L(),{componentDid:s}=W(),f=O(t=>t.breakpoints.down("md")),e=new URL(window.location.href),C=e.searchParams.get("mode")==="dialog",p=e.searchParams.get("resourceType")||"",c=e.searchParams.get("resourceDid")||s,R=e.searchParams.get("store")||"",S=e.searchParams.get("showFromUrl")!=="false",y=e.searchParams.get("showResourcesSwitch")!=="false",E=e.searchParams.get("enableRunBackground")!=="false",P=e.searchParams.get("showCategory")!=="false",n=(d=a==null?void 0:a.meta)==null?void 0:d.did,m=R.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),[b,D]=r.useState(m.map(t=>({url:t,name:t.replace("https://","")}))),[U,x]=r.useState(null),[j,M]=r.useState("");r.useEffect(()=>{(async()=>{try{const t=await Promise.all(m.map(async o=>{const i=A(o,"/api/store.json"),{data:v}=await T.get(i);return{url:o,name:v.name}}));D(t||[])}catch(t){console.error(t)}})()},[m.join(",")]);const k=()=>{window.parent.postMessage({event:"resourceDialog.close",componentDid:s},"*")};r.useEffect(()=>{const t=_();return n&&t.connect(),()=>{n&&t.isConnected()&&t.disconnect()}},[n]),h(()=>{window.parent.postMessage({event:"resourceDialog.loaded",componentDid:s},"*")});const l=$(t=>{var o,i;((o=t.data)==null?void 0:o.event)==="resourceDialog.select"&&((i=t.data)==null?void 0:i.componentDid)===s&&(x(t.data.data),M(t.data.storeUrl))});h(()=>{window.addEventListener("message",l)}),F(()=>{window.removeEventListener("message",l)});const u=({inDialog:t=!0}={})=>w.jsx(z,{stores:b,selectedMeta:U,storeUrl:j,resourceType:p,resourceDid:c,mode:"embed",inDialog:t,storageKey:G(`${p}+${c}`),showResourcesSwitch:y,showFromUrl:S,enableRunBackground:E,showCategory:P});return C?w.jsx(K,{className:"resource-dialog",title:g("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"&&k()},showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:u()}):u({inDialog:!1})}export{to as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as s,j as a,a0 as j,ay as P,az as O,aA as z,P as n,Z as _}from"./index-
|
|
1
|
+
import{r as s,j as a,a0 as j,ay as P,az as O,aA as z,P as n,Z as _}from"./index-Wcry0Teq.js";import{L as M}from"./selector-BZXSF6RZ.js";import{d as S}from"./QuestionMarkCircle-smUXs82m.js";var c={};Object.defineProperty(c,"__esModule",{value:!0});var m=c.default=void 0;H(s);var p=a;function H(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),o.push.apply(o,r)}return o}function f(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?d(Object(o),!0).forEach(function(r){A(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):d(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}function A(e,t,o){return t=C(t),t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function C(e){var t=k(e,"string");return typeof t=="symbol"?t:String(t)}function k(e,t){if(typeof e!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var r=o.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l=function(t){return(0,p.jsx)("svg",f(f({},t),{},{children:(0,p.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"})}))};l.defaultProps={width:"21",height:"20",viewBox:"0 0 21 20",xmlns:"http://www.w3.org/2000/svg"};l.displayName="globe";m=c.default=l;function w({SessionContext:e,extraItems:t,showLocale:o,showHelper:r,showSessionManager:i,sessionManagerProps:h}){const{session:b}=s.useContext(e),{locale:g}=s.useContext(j),v=P(),x=()=>{if(v.pathname.indexOf("/store")>-1){window.open("https://www.arcblock.io/content/docs/createblocklet","_blank");return}window.open("https://www.arcblock.io/content/docs/blocklet-developer","_blank")};return a.jsxs(R,{children:[t.map((u,y)=>s.cloneElement(u,{key:y})),o&&a.jsx(M,{"data-cy":"locale-addon",icon:m,size:23,showText:!1,className:"locale-addon"}),r&&a.jsx(O,{onClick:x,children:a.jsx(S,{})}),i&&a.jsx(z,{locale:g,session:b,size:24,showRole:!0,...h,showManageBlocklet:!1})]})}w.propTypes={SessionContext:n.object.isRequired,webWalletUrl:n.string,extraItems:n.array,showLocale:n.bool,showSessionManager:n.bool,showHelper:n.bool,sessionManagerProps:n.object};w.defaultProps={webWalletUrl:"",extraItems:[],showLocale:!0,showSessionManager:!0,showHelper:!0,sessionManagerProps:{}};const R=_.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{P as h,gY as Yo,b4 as Vt,b3 as zo,dL as Wo,X as Ho,Y as Uo,j as m,eB as K,B as Ee,r as x,ae as en,aP as Yt,T as be,bi as Yn,az as Be,aQ as wn,aG as se,aH as w,ao as ze,aC as Pe,aB as Me,aD as ee,bh as rt,aJ as Ce,aK as ve,cZ as Ye,cJ as q,cF as Ko,cE as tt,ce as Ke,cA as nt,cR as qo,gQ as vn,cP as Go,dh as Rt,$ as zn,bk as Zo,dt as Qo,gP as Jo,cK as zt,b as ft,cQ as Xo,bc as er,gO as Wn,eC as Hn,c_ as tn,cr as nn,W as we,gZ as tr,Z as Ot,c4 as nr,c6 as or,O as rr,dd as sr,bd as Ge,aM as ar,u as on,m as ir,F as lr,c as cr,bg as Pn,bf as ur,gz as _e,a0 as Un,gh as Kn,aV as dr,a7 as Wt,g_ as hr,af as fr,E as mr}from"./index-DvtNf3MX.js";import{T as pr}from"./index-CX8UN7-a.js";import{_ as gr}from"./permission-DL4hEyjB.js";import{I as yr}from"./iframe-BDSSelT9.js";import{d as br}from"./LaunchOutlined-DrLC3L-t.js";import{r as rn,b as qn,H as Fe,D as ot,B as Oe,y as Dr,E as xr,I as sn,z as Kt,M as gt,N as yt,A as Je,L as bt,e as Dt,J as St,K as kt,d as wr,Q as qt,G as mt,F as Mn,R as an,S as vr,Z as Pr,T as Mr,O as Cr,V as Sr,P as kr,W as Tr}from"./index-DS8jtPwK.js";import{d as Ir,B as Vr}from"./ChevronRight-CVywBsXO.js";import{_ as Gn}from"./toPropertyKey-hKuLU48H.js";import{G as me}from"./redux-C5iz4rt2.js";import{L as Zn}from"./MoreVert-BTTontfH.js";import{a as Rr}from"./ListItemText-qGJxabmF.js";import{F as Cn}from"./FormControl-q0Fcduj_.js";import{S as Sn}from"./Select-CYN6Jr5f.js";import{A as Or}from"./Alert-Co6nFhOM.js";import{f as Er}from"./format-error-CEsleqYi.js";import{u as ye}from"./useThemeProps-D1f3vnSr.js";import{u as ge,r as Qn}from"./useSlotProps-kE-P5Q9e.js";import{T as Ar}from"./TextField-BDvdWir7.js";import{M as Jn}from"./InputAdornment-BXNzazu1.js";import{p as Fr}from"./dashboard-C3nFNvqE.js";import{D as Lr}from"./index-BGLbLHVc.js";import"./useAsync-CZLlK8J9.js";import"./session-BrGTnOHc.js";import"./Avatar-B8I-RRz-.js";import"./useSlot-Wc4kx38b.js";import"./useFormControl-OavKtbbd.js";import"./InputLabel-mAtBSnQb.js";import"./useLocalStorage-DCyKJSAA.js";import"./confirm-CSDkFPAY.js";import"./Delete-Dv9EqKg8.js";import"./PlayArrow-Bt6ftFUg.js";import"./ButtonGroup-Bv2t__0y.js";import"./RadioGroup-BWCtiIPm.js";import"./FormControlLabel-BQ6g2rGO.js";import"./FormGroup-hivEVwQz.js";import"./index-C6npNM0Z.js";import"./Link-BKxB3Szm.js";import"./useSetState-DNaXKyRe.js";import"./fallback-DSloEwfk.js";import"./index-Br-jv6tm.js";import"./Toolbar-BCrX64tT.js";import"./Hidden-DMR3jGzj.js";import"./index-YlMJNMvq.js";import"./selector-DhasM2ZX.js";import"./FilterList-Do4iSb2i.js";import"./LastPage-BLqj3ZDO.js";import"./index-Cm-Lag7H.js";import"./Search-CEgjSR67.js";import"./index-DFWL1ByV.js";const jr=h.oneOfType([h.func,h.object]),Xn=jr;var $r=Yo;function Nr(e,t){var n=e.length;if(n)return t+=t<0?n:0,$r(t,n)?e[t]:void 0}var _r=Nr,Br=_r,Yr=zo,zr=Wo;function Wr(e){return e=zr(e),Yr(function(t){return Br(t,e)})}var Hr=Wr;const Ur=Vt(Hr);function eo(e){rn(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(Gn(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var a=qn(r);(n===void 0||n<a||isNaN(Number(a)))&&(n=a)}),n||new Date(NaN)}function to(e){rn(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(Gn(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var a=qn(r);(n===void 0||n>a||isNaN(a.getDate()))&&(n=a)}),n||new Date(NaN)}function Kr(e){return rn(1,arguments),Fe(e,Date.now())}var ln={},qr=Uo;Object.defineProperty(ln,"__esModule",{value:!0});var no=ln.default=void 0,Gr=qr(Ho()),Zr=m;no=ln.default=(0,Gr.default)((0,Zr.jsx)("path",{d:"M16.01 11H4v2h12.01v3L20 12l-3.99-4z"}),"ArrowRightAlt");const Qr=(e,t)=>Array.from({length:Math.ceil(e.length/t)},(n,r)=>e.slice(r*t,r*t+t)),Jr=(e,t)=>{const n=gt(bt(e),{locale:t}),r=yt(Dt(e),{locale:t}),a=[];for(let o=n;mt(o,r);)a.push(o),o=Kt(o,1);return a},Xr=({startDate:e},t)=>e&&Fe(t,e),es=({endDate:e},t)=>e&&Fe(t,e),ts=({startDate:e,endDate:t},n)=>e&&t&&(an(n,{start:e,end:t})||Fe(n,e)||Fe(n,t)),ns=({startDate:e,endDate:t})=>e&&t?Fe(e,t):!1,kn=(e,t)=>{if(e){const n=e instanceof Date?e:Dr(e);if(xr(n))return n}return t},os=(e,t,n)=>{const{startDate:r,endDate:a}=e;if(r&&a){const o=eo([r,t]),s=to([a,n]);return[o,sn(o,s)?Oe(o,1):s]}return[r,a]},rs=(e,t)=>[{label:"Today",startDate:e,endDate:e},{label:"Yesterday",startDate:Kt(e,-1),endDate:Kt(e,-1)},{label:"This Week",startDate:gt(e,{locale:t}),endDate:yt(e,{locale:t})},{label:"Last Week",startDate:gt(Je(e,-1),{locale:t}),endDate:yt(Je(e,-1),{locale:t})},{label:"Last 7 Days",startDate:Je(e,-1),endDate:e},{label:"This Month",startDate:bt(e),endDate:Dt(e)},{label:"Last Month",startDate:bt(Oe(e,-1)),endDate:Dt(Oe(e,-1))},{label:"This Year",startDate:St(e),endDate:kt(e)},{label:"Last Year",startDate:St(ot(e,-1)),endDate:kt(ot(e,-1))}],ss=(e,t)=>{const n=Math.floor(t/2);return Array(t).fill(0).map((r,a)=>e.getFullYear()-n+a)},as=({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(Sr(e,parseInt(u.target.value,10)))},l=u=>{t(kr(e,parseInt(u.target.value,10)))};return K.createElement(me,{container:!0,justifyContent:"space-between",alignItems:"center"},K.createElement(me,{item:!0,sx:{padding:"5px"}},K.createElement(Be,{sx:{padding:"10px","&:hover":{background:"none"}},disabled:r,onClick:o},K.createElement(Pr,{color:r?"disabled":"action"}))),K.createElement(me,{item:!0},K.createElement(Cn,{variant:"standard"},K.createElement(Sn,{value:Mr(e),onChange:c,MenuProps:{disablePortal:!0}},i.map((u,y)=>K.createElement(wn,{key:u,value:y},u))))),K.createElement(me,{item:!0},K.createElement(Cn,{variant:"standard"},K.createElement(Sn,{value:Cr(e),onChange:l,MenuProps:{disablePortal:!0}},ss(e,30).map(u=>K.createElement(wn,{key:u,value:u},u))))),K.createElement(me,{item:!0,sx:{padding:"5px"}},K.createElement(Be,{sx:{padding:"10px","&:hover":{background:"none"}},disabled:n,onClick:a},K.createElement(Ir,{color:n?"disabled":"action"}))))},is=({startOfRange:e,endOfRange:t,disabled:n,highlighted:r,outlined:a,filled:o,onClick:s,onHover:i,value:c})=>K.createElement(Ee,{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}},K.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},K.createElement(be,{sx:{lineHeight:1.6,color:l=>n?l.palette.text.secondary:o?l.palette.primary.contrastText:l.palette.text.primary},variant:"body2"},c)));var Tt;(function(e){e[e.Previous=-1]="Previous",e[e.Next=1]="Next"})(Tt||(Tt={}));const Tn=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 b;return(b=u.localize)===null||b===void 0?void 0:b.day((d+y)%7,{width:"short",context:"standalone"})}):["Su","Mo","Tu","We","Th","Fr","Sa"],[f,k]=e.navState;return K.createElement(en,{square:!0,elevation:0,sx:{width:290}},K.createElement(me,{container:!0},K.createElement(as,{date:a,setDate:i,nextDisabled:!k,prevDisabled:!f,onClickPrevious:()=>r.onMonthNavigate(s,Tt.Previous),onClickNext:()=>r.onMonthNavigate(s,Tt.Next),locale:u}),K.createElement(me,{item:!0,container:!0,direction:"row",justifyContent:"space-between",sx:{marginTop:"10px",paddingLeft:"30px",paddingRight:"30px"}},D.map((d,b)=>K.createElement(be,{color:"textSecondary",key:b,variant:"caption"},d))),K.createElement(me,{item:!0,container:!0,direction:"column",justifyContent:"space-between",sx:{paddingLeft:"15px",paddingRight:"15px",marginTop:"15px",marginBottom:"20px"}},Qr(Jr(a,u),7).map((d,b)=>K.createElement(me,{key:b,container:!0,direction:"row",justifyContent:"center"},d.map(p=>{const g=Xr(o,p),v=es(o,p),T=ns(o),P=ts(o,p)||n.inHoverRange(p);return K.createElement(is,{key:qt(p,"dd-MM-yyyy"),filled:g||v,outlined:Kr(p),highlighted:P&&!T,disabled:!sn(a,p)||!an(p,{start:c,end:l}),startOfRange:g&&!T,endOfRange:v&&!T,onClick:()=>r.onDayClick(p),onHover:()=>r.onDayHover(p),value:vr(p)})}))))))},In=(e,t)=>{const{startDate:n,endDate:r}=e,{startDate:a,endDate:o}=t;return n&&a&&r&&o?Fe(n,a)&&Fe(r,o):!1},ls=({ranges:e,setRange:t,selectedRange:n})=>K.createElement(Yn,null,e.map((r,a)=>K.createElement(Zn,{button:!0,key:a,onClick:()=>t(r),sx:[In(r,n)&&{backgroundColor:o=>o.palette.primary.dark,color:"primary.contrastText","&:hover":{color:"inherit"}}]},K.createElement(Rr,{primaryTypographyProps:{variant:"body2",sx:{fontWeight:In(r,n)?"bold":"normal"}}},r.label)))),Gt={FIRST_MONTH:Symbol("firstMonth"),SECOND_MONTH:Symbol("secondMonth")},cs=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:f,endDate:k}=n,d=wr(i,o)>=2,b={dateRange:n,minDate:r,maxDate:a,helpers:u,handlers:y};return K.createElement(en,{elevation:5,square:!0},K.createElement(me,{container:!0,direction:"row",wrap:"nowrap"},K.createElement(me,null,K.createElement(ls,{selectedRange:n,ranges:t,setRange:l})),K.createElement(Yt,{orientation:"vertical",flexItem:!0}),K.createElement(me,null,K.createElement(me,{container:!0,sx:{padding:"20px 70px"},alignItems:"center"},K.createElement(me,{item:!0,sx:{flex:1,textAlign:"center"}},K.createElement(be,{variant:"subtitle1"},f?qt(f,"dd MMMM yyyy",{locale:D}):"Start Date")),K.createElement(me,{item:!0,sx:{flex:1,textAlign:"center"}},K.createElement(no,{color:"action"})),K.createElement(me,{item:!0,sx:{flex:1,textAlign:"center"}},K.createElement(be,{variant:"subtitle1"},k?qt(k,"dd MMMM yyyy",{locale:D}):"End Date"))),K.createElement(Yt,null),K.createElement(me,{container:!0,direction:"row",justifyContent:"center",wrap:"nowrap"},K.createElement(Tn,Object.assign({},b,{value:o,setValue:s,navState:[!0,d],marker:Gt.FIRST_MONTH,locale:D})),K.createElement(Yt,{orientation:"vertical",flexItem:!0}),K.createElement(Tn,Object.assign({},b,{value:i,setValue:c,navState:[d,!0],marker:Gt.SECOND_MONTH,locale:D}))))))},us=e=>{const t=new Date,{open:n,onChange:r,initialDateRange:a,minDate:o,maxDate:s,definedRanges:i=rs(new Date,e.locale),locale:c}=e,l=kn(o,ot(t,-10)),u=kn(s,ot(t,10)),[y,D]=os(a||{},l,u),[f,k]=x.useState(Object.assign({},a)),[d,b]=x.useState(),[p,g]=x.useState(y||t),[v,T]=x.useState(D||Oe(p,1)),{startDate:P,endDate:O}=f,R=F=>{mt(F,v)&&g(F)},E=F=>{Mn(F,p)&&T(F)},M=F=>{let{startDate:B,endDate:L}=F;if(B&&L)F.startDate=B=eo([B,l]),F.endDate=L=to([L,u]),k(F),r(F),g(B),T(sn(B,L)?Oe(B,1):L);else{const Y={};k(Y),r(Y),g(t),T(Oe(p,1))}},_=F=>{if(P&&!O&&!mt(F,P)){const B={startDate:P,endDate:F};r(B),k(B)}else k({startDate:F,endDate:void 0});b(F)},V=(F,B)=>{if(F===Gt.FIRST_MONTH){const L=Oe(p,B);mt(L,v)&&g(L)}else{const L=Oe(v,B);mt(p,L)&&T(L)}},A=F=>{P&&!O&&(!d||!Fe(F,d))&&b(F)},S={inHoverRange:F=>P&&!O&&d&&Mn(d,P)&&an(F,{start:P,end:d})},C={onDayClick:_,onDayHover:A,onMonthNavigate:V};return n?x.createElement(cs,{dateRange:f,minDate:l,maxDate:u,ranges:i,firstMonth:p,secondMonth:v,setFirstMonth:R,setSecondMonth:E,setDateRange:M,helpers:S,handlers:C,locale:c}):null},ds=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 K.createElement(Ee,{sx:{position:"relative"}},a&&K.createElement(Ee,{sx:{position:"fixed",height:"100vh",width:"100vw",bottom:0,zIndex:0,right:0,left:0,top:0},onKeyPress:s,onClick:o}),K.createElement(Ee,{sx:{position:"relative",zIndex:1},className:n},K.createElement(us,Object.assign({},e))))},hs=e=>K.createElement(ds,Object.assign({},e)),fs=["localeText"],Zt=x.createContext(null),cn=function(t){var n;const{localeText:r}=t,a=se(t,fs),{utils:o,localeText:s}=(n=x.useContext(Zt))!=null?n:{utils:void 0,localeText:void 0},i=ye({props:a,name:"MuiLocalizationProvider"}),{children:c,dateAdapter:l,dateFormats:u,dateLibInstance:y,adapterLocale:D,localeText:f}=i,k=x.useMemo(()=>w({},f,s,r),[f,s,r]),d=x.useMemo(()=>{if(!l)return o||null;const g=new l({locale:D,formats:u,instance:y});if(!g.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 h,gY as Yo,b4 as Vt,b3 as zo,dL as Wo,X as Ho,Y as Uo,j as m,eB as K,B as Ee,r as x,ae as en,aP as Yt,T as be,bi as Yn,az as Be,aQ as wn,aG as se,aH as w,ao as ze,aC as Pe,aB as Me,aD as ee,bh as rt,aJ as Ce,aK as ve,cZ as Ye,cJ as q,cF as Ko,cE as tt,ce as Ke,cA as nt,cR as qo,gQ as vn,cP as Go,dh as Rt,$ as zn,bk as Zo,dt as Qo,gP as Jo,cK as zt,b as ft,cQ as Xo,bc as er,gO as Wn,eC as Hn,c_ as tn,cr as nn,W as we,gZ as tr,Z as Ot,c4 as nr,c6 as or,O as rr,dd as sr,bd as Ge,aM as ar,u as on,m as ir,F as lr,c as cr,bg as Pn,bf as ur,gz as _e,a0 as Un,gh as Kn,aV as dr,a7 as Wt,g_ as hr,af as fr,E as mr}from"./index-Wcry0Teq.js";import{T as pr}from"./index-DkR7ODFP.js";import{_ as gr}from"./permission--4loJJqK.js";import{I as yr}from"./iframe-DLQvYgUm.js";import{d as br}from"./LaunchOutlined-D6LBWORQ.js";import{r as rn,b as qn,H as Fe,D as ot,B as Oe,y as Dr,E as xr,I as sn,z as Kt,M as gt,N as yt,A as Je,L as bt,e as Dt,J as St,K as kt,d as wr,Q as qt,G as mt,F as Mn,R as an,S as vr,Z as Pr,T as Mr,O as Cr,V as Sr,P as kr,W as Tr}from"./index-CZOrK58Q.js";import{d as Ir,B as Vr}from"./ChevronRight-BWxGsqYb.js";import{_ as Gn}from"./toPropertyKey-hKuLU48H.js";import{G as me}from"./redux-BKgRDt6m.js";import{L as Zn}from"./MoreVert-DI1V1WEt.js";import{a as Rr}from"./ListItemText-kSkjBnFz.js";import{F as Cn}from"./FormControl-24PD8_fY.js";import{S as Sn}from"./Select-D8XELjVf.js";import{A as Or}from"./Alert-CMX-K3fl.js";import{f as Er}from"./format-error-C3RZfboJ.js";import{u as ye}from"./useThemeProps-a1wtq5sP.js";import{u as ge,r as Qn}from"./useSlotProps-C136Xtvi.js";import{T as Ar}from"./TextField-Dt3whk-X.js";import{M as Jn}from"./InputAdornment-C1Qpudux.js";import{p as Fr}from"./dashboard-B8uTlQlw.js";import{D as Lr}from"./index-DxKIQYAq.js";import"./useAsync-D5xkbSFA.js";import"./session-C0iFSkEy.js";import"./Avatar-BsWomwcd.js";import"./useSlot-BrPZCaVM.js";import"./useFormControl-BolgsUUb.js";import"./InputLabel-xESrNHmo.js";import"./useLocalStorage-C1CKxRfv.js";import"./confirm-DqzDl9MX.js";import"./Delete-CfzQCYSP.js";import"./PlayArrow-DLI0bEL5.js";import"./ButtonGroup-B3eeFp-U.js";import"./RadioGroup-uV0Cme3k.js";import"./FormControlLabel-KyoBPdSk.js";import"./FormGroup-DsIQVrXz.js";import"./index-4iP6eqAD.js";import"./Link-sFv_5np_.js";import"./useSetState-ssJWkpMc.js";import"./fallback-dS7iHIHz.js";import"./index-TgNkusIW.js";import"./Toolbar-B20O0aZq.js";import"./Hidden--9BCZNYr.js";import"./index-C8FGOK1B.js";import"./selector-BZXSF6RZ.js";import"./FilterList-CLkPMFp0.js";import"./LastPage-C4q9ssZQ.js";import"./index-C1E7AqRZ.js";import"./Search-CBLNui8O.js";import"./index-CRxNIeZQ.js";const jr=h.oneOfType([h.func,h.object]),Xn=jr;var $r=Yo;function Nr(e,t){var n=e.length;if(n)return t+=t<0?n:0,$r(t,n)?e[t]:void 0}var _r=Nr,Br=_r,Yr=zo,zr=Wo;function Wr(e){return e=zr(e),Yr(function(t){return Br(t,e)})}var Hr=Wr;const Ur=Vt(Hr);function eo(e){rn(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(Gn(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var a=qn(r);(n===void 0||n<a||isNaN(Number(a)))&&(n=a)}),n||new Date(NaN)}function to(e){rn(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(Gn(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var a=qn(r);(n===void 0||n>a||isNaN(a.getDate()))&&(n=a)}),n||new Date(NaN)}function Kr(e){return rn(1,arguments),Fe(e,Date.now())}var ln={},qr=Uo;Object.defineProperty(ln,"__esModule",{value:!0});var no=ln.default=void 0,Gr=qr(Ho()),Zr=m;no=ln.default=(0,Gr.default)((0,Zr.jsx)("path",{d:"M16.01 11H4v2h12.01v3L20 12l-3.99-4z"}),"ArrowRightAlt");const Qr=(e,t)=>Array.from({length:Math.ceil(e.length/t)},(n,r)=>e.slice(r*t,r*t+t)),Jr=(e,t)=>{const n=gt(bt(e),{locale:t}),r=yt(Dt(e),{locale:t}),a=[];for(let o=n;mt(o,r);)a.push(o),o=Kt(o,1);return a},Xr=({startDate:e},t)=>e&&Fe(t,e),es=({endDate:e},t)=>e&&Fe(t,e),ts=({startDate:e,endDate:t},n)=>e&&t&&(an(n,{start:e,end:t})||Fe(n,e)||Fe(n,t)),ns=({startDate:e,endDate:t})=>e&&t?Fe(e,t):!1,kn=(e,t)=>{if(e){const n=e instanceof Date?e:Dr(e);if(xr(n))return n}return t},os=(e,t,n)=>{const{startDate:r,endDate:a}=e;if(r&&a){const o=eo([r,t]),s=to([a,n]);return[o,sn(o,s)?Oe(o,1):s]}return[r,a]},rs=(e,t)=>[{label:"Today",startDate:e,endDate:e},{label:"Yesterday",startDate:Kt(e,-1),endDate:Kt(e,-1)},{label:"This Week",startDate:gt(e,{locale:t}),endDate:yt(e,{locale:t})},{label:"Last Week",startDate:gt(Je(e,-1),{locale:t}),endDate:yt(Je(e,-1),{locale:t})},{label:"Last 7 Days",startDate:Je(e,-1),endDate:e},{label:"This Month",startDate:bt(e),endDate:Dt(e)},{label:"Last Month",startDate:bt(Oe(e,-1)),endDate:Dt(Oe(e,-1))},{label:"This Year",startDate:St(e),endDate:kt(e)},{label:"Last Year",startDate:St(ot(e,-1)),endDate:kt(ot(e,-1))}],ss=(e,t)=>{const n=Math.floor(t/2);return Array(t).fill(0).map((r,a)=>e.getFullYear()-n+a)},as=({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(Sr(e,parseInt(u.target.value,10)))},l=u=>{t(kr(e,parseInt(u.target.value,10)))};return K.createElement(me,{container:!0,justifyContent:"space-between",alignItems:"center"},K.createElement(me,{item:!0,sx:{padding:"5px"}},K.createElement(Be,{sx:{padding:"10px","&:hover":{background:"none"}},disabled:r,onClick:o},K.createElement(Pr,{color:r?"disabled":"action"}))),K.createElement(me,{item:!0},K.createElement(Cn,{variant:"standard"},K.createElement(Sn,{value:Mr(e),onChange:c,MenuProps:{disablePortal:!0}},i.map((u,y)=>K.createElement(wn,{key:u,value:y},u))))),K.createElement(me,{item:!0},K.createElement(Cn,{variant:"standard"},K.createElement(Sn,{value:Cr(e),onChange:l,MenuProps:{disablePortal:!0}},ss(e,30).map(u=>K.createElement(wn,{key:u,value:u},u))))),K.createElement(me,{item:!0,sx:{padding:"5px"}},K.createElement(Be,{sx:{padding:"10px","&:hover":{background:"none"}},disabled:n,onClick:a},K.createElement(Ir,{color:n?"disabled":"action"}))))},is=({startOfRange:e,endOfRange:t,disabled:n,highlighted:r,outlined:a,filled:o,onClick:s,onHover:i,value:c})=>K.createElement(Ee,{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}},K.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},K.createElement(be,{sx:{lineHeight:1.6,color:l=>n?l.palette.text.secondary:o?l.palette.primary.contrastText:l.palette.text.primary},variant:"body2"},c)));var Tt;(function(e){e[e.Previous=-1]="Previous",e[e.Next=1]="Next"})(Tt||(Tt={}));const Tn=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 b;return(b=u.localize)===null||b===void 0?void 0:b.day((d+y)%7,{width:"short",context:"standalone"})}):["Su","Mo","Tu","We","Th","Fr","Sa"],[f,k]=e.navState;return K.createElement(en,{square:!0,elevation:0,sx:{width:290}},K.createElement(me,{container:!0},K.createElement(as,{date:a,setDate:i,nextDisabled:!k,prevDisabled:!f,onClickPrevious:()=>r.onMonthNavigate(s,Tt.Previous),onClickNext:()=>r.onMonthNavigate(s,Tt.Next),locale:u}),K.createElement(me,{item:!0,container:!0,direction:"row",justifyContent:"space-between",sx:{marginTop:"10px",paddingLeft:"30px",paddingRight:"30px"}},D.map((d,b)=>K.createElement(be,{color:"textSecondary",key:b,variant:"caption"},d))),K.createElement(me,{item:!0,container:!0,direction:"column",justifyContent:"space-between",sx:{paddingLeft:"15px",paddingRight:"15px",marginTop:"15px",marginBottom:"20px"}},Qr(Jr(a,u),7).map((d,b)=>K.createElement(me,{key:b,container:!0,direction:"row",justifyContent:"center"},d.map(p=>{const g=Xr(o,p),v=es(o,p),T=ns(o),P=ts(o,p)||n.inHoverRange(p);return K.createElement(is,{key:qt(p,"dd-MM-yyyy"),filled:g||v,outlined:Kr(p),highlighted:P&&!T,disabled:!sn(a,p)||!an(p,{start:c,end:l}),startOfRange:g&&!T,endOfRange:v&&!T,onClick:()=>r.onDayClick(p),onHover:()=>r.onDayHover(p),value:vr(p)})}))))))},In=(e,t)=>{const{startDate:n,endDate:r}=e,{startDate:a,endDate:o}=t;return n&&a&&r&&o?Fe(n,a)&&Fe(r,o):!1},ls=({ranges:e,setRange:t,selectedRange:n})=>K.createElement(Yn,null,e.map((r,a)=>K.createElement(Zn,{button:!0,key:a,onClick:()=>t(r),sx:[In(r,n)&&{backgroundColor:o=>o.palette.primary.dark,color:"primary.contrastText","&:hover":{color:"inherit"}}]},K.createElement(Rr,{primaryTypographyProps:{variant:"body2",sx:{fontWeight:In(r,n)?"bold":"normal"}}},r.label)))),Gt={FIRST_MONTH:Symbol("firstMonth"),SECOND_MONTH:Symbol("secondMonth")},cs=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:f,endDate:k}=n,d=wr(i,o)>=2,b={dateRange:n,minDate:r,maxDate:a,helpers:u,handlers:y};return K.createElement(en,{elevation:5,square:!0},K.createElement(me,{container:!0,direction:"row",wrap:"nowrap"},K.createElement(me,null,K.createElement(ls,{selectedRange:n,ranges:t,setRange:l})),K.createElement(Yt,{orientation:"vertical",flexItem:!0}),K.createElement(me,null,K.createElement(me,{container:!0,sx:{padding:"20px 70px"},alignItems:"center"},K.createElement(me,{item:!0,sx:{flex:1,textAlign:"center"}},K.createElement(be,{variant:"subtitle1"},f?qt(f,"dd MMMM yyyy",{locale:D}):"Start Date")),K.createElement(me,{item:!0,sx:{flex:1,textAlign:"center"}},K.createElement(no,{color:"action"})),K.createElement(me,{item:!0,sx:{flex:1,textAlign:"center"}},K.createElement(be,{variant:"subtitle1"},k?qt(k,"dd MMMM yyyy",{locale:D}):"End Date"))),K.createElement(Yt,null),K.createElement(me,{container:!0,direction:"row",justifyContent:"center",wrap:"nowrap"},K.createElement(Tn,Object.assign({},b,{value:o,setValue:s,navState:[!0,d],marker:Gt.FIRST_MONTH,locale:D})),K.createElement(Yt,{orientation:"vertical",flexItem:!0}),K.createElement(Tn,Object.assign({},b,{value:i,setValue:c,navState:[d,!0],marker:Gt.SECOND_MONTH,locale:D}))))))},us=e=>{const t=new Date,{open:n,onChange:r,initialDateRange:a,minDate:o,maxDate:s,definedRanges:i=rs(new Date,e.locale),locale:c}=e,l=kn(o,ot(t,-10)),u=kn(s,ot(t,10)),[y,D]=os(a||{},l,u),[f,k]=x.useState(Object.assign({},a)),[d,b]=x.useState(),[p,g]=x.useState(y||t),[v,T]=x.useState(D||Oe(p,1)),{startDate:P,endDate:O}=f,R=F=>{mt(F,v)&&g(F)},E=F=>{Mn(F,p)&&T(F)},M=F=>{let{startDate:B,endDate:L}=F;if(B&&L)F.startDate=B=eo([B,l]),F.endDate=L=to([L,u]),k(F),r(F),g(B),T(sn(B,L)?Oe(B,1):L);else{const Y={};k(Y),r(Y),g(t),T(Oe(p,1))}},_=F=>{if(P&&!O&&!mt(F,P)){const B={startDate:P,endDate:F};r(B),k(B)}else k({startDate:F,endDate:void 0});b(F)},V=(F,B)=>{if(F===Gt.FIRST_MONTH){const L=Oe(p,B);mt(L,v)&&g(L)}else{const L=Oe(v,B);mt(p,L)&&T(L)}},A=F=>{P&&!O&&(!d||!Fe(F,d))&&b(F)},S={inHoverRange:F=>P&&!O&&d&&Mn(d,P)&&an(F,{start:P,end:d})},C={onDayClick:_,onDayHover:A,onMonthNavigate:V};return n?x.createElement(cs,{dateRange:f,minDate:l,maxDate:u,ranges:i,firstMonth:p,secondMonth:v,setFirstMonth:R,setSecondMonth:E,setDateRange:M,helpers:S,handlers:C,locale:c}):null},ds=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 K.createElement(Ee,{sx:{position:"relative"}},a&&K.createElement(Ee,{sx:{position:"fixed",height:"100vh",width:"100vw",bottom:0,zIndex:0,right:0,left:0,top:0},onKeyPress:s,onClick:o}),K.createElement(Ee,{sx:{position:"relative",zIndex:1},className:n},K.createElement(us,Object.assign({},e))))},hs=e=>K.createElement(ds,Object.assign({},e)),fs=["localeText"],Zt=x.createContext(null),cn=function(t){var n;const{localeText:r}=t,a=se(t,fs),{utils:o,localeText:s}=(n=x.useContext(Zt))!=null?n:{utils:void 0,localeText:void 0},i=ye({props:a,name:"MuiLocalizationProvider"}),{children:c,dateAdapter:l,dateFormats:u,dateLibInstance:y,adapterLocale:D,localeText:f}=i,k=x.useMemo(()=>w({},f,s,r),[f,s,r]),d=x.useMemo(()=>{if(!l)return o||null;const g=new l({locale:D,formats:u,instance:y});if(!g.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 g},[l,D,u,y,o]),b=x.useMemo(()=>d?{minDate:d.date("1900-01-01T00:00:00.000"),maxDate:d.date("2099-12-31T00:00:00.000")}:null,[d]),p=x.useMemo(()=>({utils:d,defaultDates:b,localeText:k}),[b,d,k]);return m.jsx(Zt.Provider,{value:p,children:c})},ms=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:w({},e)}}}}),oo={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",fieldClearLabel:"Clear value",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"},ps=oo;ms(oo);const qe=()=>{const e=x.useContext(Zt);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=x.useMemo(()=>w({},ps,e.localeText),[e.localeText]);return x.useMemo(()=>w({},e,{localeText:t}),[e,t])},ue=()=>qe().utils,wt=()=>qe().defaultDates,We=()=>qe().localeText,vt=e=>{const t=ue(),n=x.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current},gs=ze(m.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),ys=ze(m.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),bs=ze(m.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),Ds=ze(m.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");ze(m.jsxs(x.Fragment,{children:[m.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"}),m.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");ze(m.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");ze(m.jsxs(x.Fragment,{children:[m.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"}),m.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const xs=ze(m.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function ws(e){return Pe("MuiPickersArrowSwitcher",e)}Me("MuiPickersArrowSwitcher",["root","spacer","button"]);const vs=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],Ps=["ownerState"],Ms=["ownerState"],Cs=ee("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),Ss=ee("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),Vn=ee(Be,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>w({},e.hidden&&{visibility:"hidden"})),ks=e=>{const{classes:t}=e;return ve({root:["root"],spacer:["spacer"],button:["button"]},ws,t)},Ts=x.forwardRef(function(t,n){var r,a,o,s;const c=rt().direction==="rtl",l=ye({props:t,name:"MuiPickersArrowSwitcher"}),{children:u,className:y,slots:D,slotProps:f,isNextDisabled:k,isNextHidden:d,onGoToNext:b,nextLabel:p,isPreviousDisabled:g,isPreviousHidden:v,onGoToPrevious:T,previousLabel:P}=l,O=se(l,vs),R=l,E=ks(R),M={isDisabled:k,isHidden:d,goTo:b,label:p},_={isDisabled:g,isHidden:v,goTo:T,label:P},V=(r=D==null?void 0:D.previousIconButton)!=null?r:Vn,A=ge({elementType:V,externalSlotProps:f==null?void 0:f.previousIconButton,additionalProps:{size:"medium",title:_.label,"aria-label":_.label,disabled:_.isDisabled,edge:"end",onClick:_.goTo},ownerState:w({},R,{hidden:_.isHidden}),className:E.button}),I=(a=D==null?void 0:D.nextIconButton)!=null?a:Vn,S=ge({elementType:I,externalSlotProps:f==null?void 0:f.nextIconButton,additionalProps:{size:"medium",title:M.label,"aria-label":M.label,disabled:M.isDisabled,edge:"start",onClick:M.goTo},ownerState:w({},R,{hidden:M.isHidden}),className:E.button}),C=(o=D==null?void 0:D.leftArrowIcon)!=null?o:ys,F=ge({elementType:C,externalSlotProps:f==null?void 0:f.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),B=se(F,Ps),L=(s=D==null?void 0:D.rightArrowIcon)!=null?s:bs,Y=ge({elementType:L,externalSlotProps:f==null?void 0:f.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),U=se(Y,Ms);return m.jsxs(Cs,w({ref:n,className:Ce(E.root,y),ownerState:R},O,{children:[m.jsx(V,w({},A,{children:c?m.jsx(L,w({},U)):m.jsx(C,w({},B))})),u?m.jsx(be,{variant:"subtitle1",component:"span",children:u}):m.jsx(Ss,{className:E.spacer,ownerState:R}),m.jsx(I,w({},S,{children:c?m.jsx(C,w({},B)):m.jsx(L,w({},U))}))]}))}),ct=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),Is=({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}},Vs=["hours","minutes","seconds"],Rs=e=>Vs.includes(e),Rn=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Os=(e,t)=>(n,r)=>e?t.isAfter(n,r):Rn(n,t)>Rn(r,t);function ro({onChange:e,onViewChange:t,openTo:n,view:r,views:a,autoFocus:o,focusedView:s,onFocusedViewChange:i}){var c,l;const u=x.useRef(n),y=x.useRef(a),D=x.useRef(a.includes(n)?n:a[0]),[f,k]=Ye({name:"useViews",state:"view",controlled:r,default:D.current}),d=x.useRef(o?f:null),[b,p]=Ye({name:"useViews",state:"focusedView",controlled:s,default:d.current});x.useEffect(()=>{(u.current&&u.current!==n||y.current&&y.current.some(M=>!a.includes(M)))&&(k(a.includes(n)?n:a[0]),y.current=a,u.current=n)},[n,k,f,a]);const g=a.indexOf(f),v=(c=a[g-1])!=null?c:null,T=(l=a[g+1])!=null?l:null,P=q((M,_)=>{p(_?M:V=>M===V?null:V),i==null||i(M,_)}),O=q(M=>{P(M,!0),M!==f&&(k(M),t&&t(M))}),R=q(()=>{T&&O(T)}),E=q((M,_,V)=>{const A=_==="finish",I=V?a.indexOf(V)<a.length-1:!!T;if(e(M,A&&I?"partial":_,V),V&&V!==f){const C=a[a.indexOf(V)+1];C&&O(C)}else A&&R()});return{view:f,setView:O,focusedView:b,setFocusedView:P,nextView:T,previousView:v,defaultView:a.includes(n)?n:a[0],goToNextView:R,setValueAndGoToNextView:E}}function Es(e,{disableFuture:t,maxDate:n,timezone:r}){const a=ue();return x.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 As(e,{disablePast:t,minDate:n,timezone:r}){const a=ue();return x.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 xt=36,Et=2,At=320,Fs=280,un=334,Ls=ee("div")({overflow:"hidden",width:At,maxHeight:un,display:"flex",flexDirection:"column",margin:"0 auto"}),pt=({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},js=(e,t)=>t==null||!e.isValid(t)?null:t,ke=(e,t,n)=>t==null||!e.isValid(t)?n:t,$s=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),dn=(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},Qt=(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},so=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),Ns=["year","month","day"],On=e=>Ns.includes(e),hn=(e,{format:t,views:n},r)=>{if(t!=null)return t;const a=e.formats;return ct(n,["year"])?a.year:ct(n,["month"])?a.month:ct(n,["day"])?a.dayOfMonth:ct(n,["month","year"])?`${a.month} ${a.year}`:ct(n,["day","month"])?`${a.month} ${a.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?a.normalDateWithWeekday:a.normalDate:a.keyboardDate},_s=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},fn=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:a})=>{var o,s;const i=ue(),c=x.useRef(n),l=(o=t??c.current)!=null?o:a.emptyValue,u=x.useMemo(()=>a.getTimezone(i,l),[i,a,l]),y=q(d=>u==null?d:a.setTimezone(i,u,d)),D=(s=e??u)!=null?s:"default",f=x.useMemo(()=>a.setTimezone(i,D,l),[a,i,D,l]),k=q((d,...b)=>{const p=y(d);r==null||r(p,...b)});return{value:f,handleValueChange:k,timezone:D}},mn=({name:e,timezone:t,value:n,defaultValue:r,onChange:a,valueManager:o})=>{const[s,i]=Ye({name:e,state:"value",controlled:n,default:r??o.emptyValue}),c=q((l,...u)=>{i(l),a==null||a(l,...u)});return fn({timezone:t,value:s,defaultValue:void 0,onChange:c,valueManager:o})},Re={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},Bs=e=>Math.max(...e.map(t=>{var n;return(n=Re[t.type])!=null?n:1})),ut=(e,t,n)=>{if(t===Re.year)return e.startOfYear(n);if(t===Re.month)return e.startOfMonth(n);if(t===Re.day)return e.startOfDay(n);let r=n;return t<Re.minutes&&(r=e.setMinutes(r,0)),t<Re.seconds&&(r=e.setSeconds(r,0)),t<Re.milliseconds&&(r=e.setMilliseconds(r,0)),r},Ys=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:a})=>{var o;let s=a?a():ut(t,n,so(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,s)&&(s=ut(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,s)&&(s=ut(t,n,e.maxDate));const i=Os((o=e.disableIgnoringDatePartForTimeValidation)!=null?o:!1,t);return e.minTime!=null&&i(e.minTime,s)&&(s=ut(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Qt(t,s,e.minTime))),e.maxTime!=null&&i(s,e.maxTime)&&(s=ut(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Qt(t,s,e.maxTime))),s},ao=(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{c1 as a}from"./index-Wcry0Teq.js";a.defaults.timeout=10*1e3;const o=a.create();export{o as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aM as C,r as n,j as t,s as P,u as M,m as T,B as x,aQ as B,Z as I,A as b,T as d,L,F as _}from"./index-
|
|
1
|
+
import{aM as C,r as n,j as t,s as P,u as M,m as T,B as x,aQ as B,Z as I,A as b,T as d,L,F as _}from"./index-Wcry0Teq.js";import{M as F}from"./index-C0YJC7GF.js";import{E as W}from"./index-CRxNIeZQ.js";import{T as z}from"./index-4iP6eqAD.js";import{_ as R}from"./useLocalStorage-C1CKxRfv.js";import{R as D}from"./dashboard-B8uTlQlw.js";import{F as K}from"./FormControl-24PD8_fY.js";import{I as O}from"./InputLabel-xESrNHmo.js";import{S as U}from"./Select-D8XELjVf.js";import{P as G}from"./Pagination-DcodKnzW.js";import{r as H}from"./index-B_2iNKVl.js";import"./index-DkR7ODFP.js";import"./MoreVert-DI1V1WEt.js";import"./confirm-DqzDl9MX.js";import"./format-error-C3RZfboJ.js";import"./Alert-CMX-K3fl.js";import"./useSlot-BrPZCaVM.js";import"./Delete-CfzQCYSP.js";import"./PlayArrow-DLI0bEL5.js";import"./ListItemText-kSkjBnFz.js";import"./ButtonGroup-B3eeFp-U.js";import"./RadioGroup-uV0Cme3k.js";import"./FormControlLabel-KyoBPdSk.js";import"./useFormControl-BolgsUUb.js";import"./FormGroup-DsIQVrXz.js";import"./Avatar-BsWomwcd.js";import"./session-C0iFSkEy.js";import"./permission--4loJJqK.js";import"./useAsync-D5xkbSFA.js";import"./Link-sFv_5np_.js";import"./useSetState-ssJWkpMc.js";import"./fallback-dS7iHIHz.js";import"./index-TgNkusIW.js";import"./Toolbar-B20O0aZq.js";import"./Hidden--9BCZNYr.js";import"./index-C8FGOK1B.js";import"./selector-BZXSF6RZ.js";import"./LastPage-C4q9ssZQ.js";const S=n.createContext({}),{Provider:Q,Consumer:We}=S;function Z({children:e,scope:o="",categories:a=[],showScope:i,scopeFormatter:p}){const{api:s,info:l}=C(),[c,r]=n.useState([]),[f,A]=n.useState({total:0,pageSize:20,pageCount:0,page:1}),[j,h]=n.useState(!1),[u,k]=R(`audit-log-category-${o}`,"all"),N=[{value:"all",label:"All",description:""},{value:"blocklet",label:"Blocklet Management",description:""},{value:"server",label:"Server Management",description:""},{value:"team",label:"Team Management",description:""},{value:"security",label:"Security",description:""},{value:"certificates",label:"Certificate Management",description:""},{value:"integrations",label:"Integration Management",description:""},{value:"gateway",label:"Gateway",description:""}].filter(g=>a.length?g.value==="all"||a.includes(g.value):!0),y=async({page:g=1,silent:E=!0}={})=>{if(!j){E||h(!0);try{const m=await s.getAuditLogs({input:{paging:{page:g},category:u==="all"?"":u,scope:o}});i&&(m.list||[]).forEach(v=>{v.scope!==l.did&&(v.link=`/blocklets/${v.scope}/components`)}),r(m.list),A(m.paging),h(!1)}catch(m){P.error(m.message),h(!1)}}};n.useEffect(()=>{y({page:1,silent:!1})},[]),n.useEffect(()=>{y({page:1,silent:!1})},[u]);const $={loading:j,fetch:y,filter:{category:u,scope:o},categories:N,setCategory:k,data:c,paging:f,showScope:i,scopeFormatter:p};return t.jsx(Q,{value:{auditLogs:$},children:e})}function w(){const{auditLogs:e}=n.useContext(S);return e}const q=({log:e,info:o,inService:a})=>a?`${_.WELLKNOWN_BLOCKLET_ADMIN_PATH}/members?did=${e.actor.did}`:e.scope===o.did?`/team/members?did=${e.actor.did}`:`/blocklets/${e.scope}/members?did=${e.actor.did}`;function J({log:e}){var l,c;const{inService:o,info:a}=C(),{showScope:i,scopeFormatter:p=r=>r}=w();if(!e.actor.did)return null;const s=!["blocklet",""].includes(e.actor.role);return t.jsxs(x,{className:"log-entry","data-cy":"log-entry",children:[t.jsx("div",{className:"log-author",children:s?t.jsx(b,{did:e.actor.did,size:36,shape:"circle"}):t.jsx(b,{did:e.actor.did,size:36})}),t.jsxs("div",{className:"log-body",children:[t.jsxs(d,{className:"log-header",color:"textSecondary",component:"p",gutterBottom:!0,display:"flex",alignItems:"center",children:[i&&t.jsx(L,{to:e.link,children:t.jsx(z,{style:{marginRight:8},children:p(e.scope)})}),s?t.jsxs(L,{to:q({log:e,inService:o,info:a}),target:"_blank",children:[e.actor.fullName,e.actor.role?`(${e.actor.role})`:""]}):t.jsxs("span",{children:[e.actor.fullName,e.actor.role?`(${e.actor.role})`:""]})," ",t.jsx("span",{style:{margin:"0 4px"},children:"-"})," ",e.action]}),t.jsx(d,{className:"log-content",maxWidth:"lg",color:"textPrimary",component:"div","data-color-mode":"light",gutterBottom:!0,children:t.jsx(F,{source:e.content,rehypePlugins:[[H,{target:"_blank"}]]})}),t.jsxs(x,{className:"log-meta",variant:"body2",children:[!!e.ip&&t.jsx(d,{component:"span",color:"textSecondary",children:`IP: ${e.ip}`}),!!((l=e.env.os)!=null&&l.name)&&t.jsxs(d,{component:"span",color:"textSecondary",children:[e.env.os.name,"(",e.env.os.version,")"]}),!!((c=e.env.browser)!=null&&c.name)&&t.jsxs(d,{component:"span",color:"textSecondary",children:[e.env.browser.name,"(",e.env.browser.version,")"]}),t.jsx(d,{component:"span",color:"textSecondary",children:t.jsx(D,{value:e.createdAt})})]})]})]})}function V(){const{t:e}=M(),{data:o,loading:a,paging:i,filter:p,categories:s,setCategory:l,fetch:c}=w();return a?t.jsx("div",{style:{textAlign:"center",marginTop:"50px"},children:t.jsx(T,{})}):t.jsxs(X,{"data-cy":"audit-logs",children:[t.jsx(x,{className:"log-controls",children:t.jsxs(K,{style:{width:"240px"},variant:"outlined",children:[t.jsx(O,{children:e("common.filter")}),t.jsx(U,{"data-cy":"filter-by-category-trigger",value:p.category,onChange:r=>l(r.target.value),fullWidth:!0,label:e("common.category"),disabled:a,children:s.map(r=>t.jsx(B,{value:r.value,"data-cy":`filter-by-category-${r.value}`,children:t.jsx(x,{children:t.jsx("span",{children:r.label})})},r.label))})]})}),o.length===0&&t.jsx(W,{children:e("common.empty")}),o.length>0&&o.map(r=>t.jsx(J,{log:r},r.id)),i.pageCount>1&&t.jsx(G,{page:i.page,count:i.pageCount,onChange:(r,f)=>c({page:f}),showFirstButton:!0,showLastButton:!0})]})}function ze({scope:e,categories:o,showScope:a,scopeFormatter:i}){return t.jsx(Z,{scope:e,categories:o,showScope:a,scopeFormatter:i,children:t.jsx(V,{})})}const X=I.div`
|
|
2
2
|
.log-controls {
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{co as C,aV as l,r as d,aM as f,bU as h,s as y,a9 as S,u as z,j as H,P as J}from"./index-
|
|
1
|
+
import{co as C,aV as l,r as d,aM as f,bU as h,s as y,a9 as S,u as z,j as H,P as J}from"./index-Wcry0Teq.js";import{b as Q,l as X}from"./spaces-Bsjcm4Pb.js";import{f as A}from"./format-error-C3RZfboJ.js";async function Z({blockletDid:c,nodeApi:a,spaceGateways:s}){let t=!1;const i=await Promise.all(s.map(async o=>{let{name:n}=o;const u=await Q(o.endpoint);return!C.isEmpty(u)&&u!==n&&(n=u,t=!0),{...o,name:n}}));return t&&await Promise.all(i.filter(o=>o.did).map(o=>a.updateBlockletSpaceGateway({input:{did:c,where:{did:o.did},spaceGateway:{...o}}}))),i}function $({setLoading:c,refresh:a}={}){var u;const{blocklet:s}=l(),t=(u=s==null?void 0:s.meta)==null?void 0:u.did,[i,o]=d.useState([]),{api:n}=f();return h(async()=>{try{if(!t){o([]);return}c==null||c(!0);const{spaceGateways:r}=await n.getBlockletSpaceGateways({input:{did:t}}),B=await Z({blockletDid:t,nodeApi:n,spaceGateways:r});o(B??[])}catch(r){console.error(r),y.error(A(r))}finally{c==null||c(!1)}},[t,a]),{spaceGateways:i}}function P({deps:c,setLoading:a}={deps:[],setLoading:()=>{}}){var u;const{blocklet:s}=l(),[t,i]=d.useState([]),{api:o}=f(),n=C.debounce(async()=>{try{if(a(!0),!s){i([]);return}const{backups:r}=await o.getBlockletBackups({input:{did:s.meta.did}});i(r??[])}catch(r){console.error(r),y.error(A(r))}finally{a(!1)}},2e3);return h(async()=>{n()},[(u=s==null?void 0:s.meta)==null?void 0:u.did].concat(c)),{backups:t}}function ee({appDid:c}){const{backups:a}=P(),[s,t]=d.useState({message:"",progress:0,completed:!1}),i=f(),{ws:{useSubscription:o}}=i;return o(S.BlockletEvents.backupProgress,n=>{c===(n==null?void 0:n.appDid)&&t(()=>({...n}))},[c]),d.useEffect(()=>{var n;if(a!=null&&a.length&&C.isNull((n=a[0])==null?void 0:n.status)){const[u]=a;t(()=>({message:u.message,progress:u.progress,completed:u.progress>=100}))}},[a]),s}function te({deps:c}={deps:[]}){var o;const{blocklet:a}=l(),{api:s}=f(),[t,i]=d.useState(null);return h(async()=>{var n;if((n=a==null?void 0:a.meta)!=null&&n.did){const{autoBackup:u}=await s.getAutoBackup({input:{did:a.meta.did}});i(u)}},[(o=a==null?void 0:a.meta)==null?void 0:o.did].concat(c)),t}function ae({deps:c}={deps:[]}){var o;const{blocklet:a}=l(),{api:s}=f(),[t,i]=d.useState(null);return h(async()=>{var n;if((n=a==null?void 0:a.meta)!=null&&n.did){const{autoCheckUpdate:u}=await s.getAutoCheckUpdate({input:{did:a.meta.did}});i(u)}},[(o=a==null?void 0:a.meta)==null?void 0:o.did].concat(c)),t}const U=d.createContext({}),{Provider:se,Consumer:ue}=U;function _({children:c}){const{t:a}=z(),{api:s}=f(),{blocklet:t}=l(),[i,o]=d.useState(!1),[n,u]=d.useState(!1),{spaceGateways:r}=$({refresh:n,setLoading:o}),B=ee({appDid:t==null?void 0:t.appDid}),[N,L]=d.useState(!1),p=d.useMemo(()=>X(t==null?void 0:t.environments),[t,n,N]),[R,K]=d.useState(!1),{backups:O}=P({deps:[B],setLoading:K}),[T,E]=d.useState(r==null?void 0:r.find(e=>e.endpoint===p)),[D,x]=d.useState(!1),k=te({deps:[D]}),[I,v]=d.useState(!1),G=ae({deps:[I]}),m=()=>{u(e=>!e)},b=()=>{L(e=>!e)},F=()=>{x(e=>!e)},j=()=>{v(e=>!e)},g=async e=>{await s.updateAutoBackup({input:{did:t.meta.did,autoBackup:e}}),F()},Y=async(e,w)=>{r.push({...e,loading:!0}),await s.addBlockletSpaceGateway({input:{did:t.meta.did,spaceGateway:e}}),p!==w&&await s.configBlocklet({input:{did:[t.meta.did],configs:[{key:S.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:w}]}}),m(),E(e)},M=async e=>{e&&(e.endpoint===p&&(await s.configBlocklet({input:{did:[t.meta.did],configs:[{key:S.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:""}]}}),k!=null&&k.enabled&&await g({enabled:!1})),await s.deleteBlockletSpaceGateway({input:{did:t.meta.did,spaceGatewayDid:e==null?void 0:e.did}}),m(),E(e))},q=async e=>{await s.updateBlockletSpaceGateway({input:{did:t.meta.did,where:{did:e.did},spaceGateway:e}}),p!==e.endpoint&&await s.configBlocklet({input:{did:[t.meta.did],configs:[{key:S.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:e.endpoint}]}}),y.success(a("storage.spaces.connectedWithName",{name:(e==null?void 0:e.name)??"DID Spaces"})),m()},V=e=>(e==null?void 0:e.endpoint)===p,W=async e=>{await s.updateAutoCheckUpdate({input:{did:t.meta.did,autoCheckUpdate:e}}),j()};return H.jsx(se,{value:{spaceGateways:r,selectedSpaceGateway:T,addSpaceGateway:Y,deleteSpaceGateway:M,updateSpaceGateway:q,refreshSpaceGateways:m,spaceGatewaysLoading:i,spaceGatewayIsSelected:V,updateAutoBackup:g,updateAutoCheckUpdate:W,autoCheckUpdate:G,backupEndpoint:p,backupProgress:B,backups:O,backupsLoading:R,refreshBackupEndpoint:b,autoBackup:k},children:c})}_.propTypes={children:J.any.isRequired};_.defaultProps={};function de(){return d.useContext(U)}export{_ as B,de as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as o,a1 as n}from"./index-
|
|
1
|
+
import{j as o,a1 as n}from"./index-Wcry0Teq.js";function r({...t}){return o.jsx(n,{className:"bottom-button",variant:"contained",color:"primary",...t})}export{r as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,a0 as s,j as t,fm as r,P as c}from"./index-
|
|
1
|
+
import{r as i,a0 as s,j as t,fm as r,P as c}from"./index-Wcry0Teq.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{Z as d,u as P,r as n,af as C,ag as T,j as t,m as B,B as h,fL as _,c as $,a4 as F,a5 as M,s as A,fu as I,fM as N,P as z,F as O,aj as W}from"./index-
|
|
1
|
+
import{Z as d,u as P,r as n,af as C,ag as T,j as t,m as B,B as h,fL as _,c as $,a4 as F,a5 as M,s as A,fu as I,fM as N,P as z,F as O,aj as W}from"./index-Wcry0Teq.js";import{L as X}from"./launch-result-message-BbNNNIuG.js";import{S as v}from"./button-DFXsaHZa.js";import{S as H}from"./layout-CZagI57K.js";import"./Close-CH7xdBg-.js";import"./content-layout-DabnStRh.js";const K=d(X)`
|
|
2
2
|
&& .result-footer {
|
|
3
3
|
height: 120px;
|
|
4
4
|
> div {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{gB as $p,m as qt,gC as Np,gD as Fp,fo as Vp,gE as zp,gF as Wp,B as le,gA as qp,gG as Up,gH as Gp,bX as Hp,gI as Yp,gJ as Kp,aO as Qp,gK as Xp,gL as Jp,ao as Ot,j as x,X as Ht,Y as de,u as ft,a as Ut,P as K,s as Oe,cq as We,gM as Ne,r as E,cn as Xe,b4 as mi,cr as Go,gN as Zp,fl as re,aB as Fe,aC as Ve,aD as ae,T as Ct,aH as z,cE as Vr,aG as De,cA as ra,aK as Be,eC as em,cZ as aa,cJ as oa,gO as Dc,dh as xc,cF as tm,ce as fn,bh as br,az as et,aE as nm,c_ as Pc,b as cn,cQ as Tc,bk as rm,ae as am,gP as om,cK as La,dt as im,cR as Ho,gQ as Ul,cP as Yo,$ as ia,gR as lm,eB as we,ew as Gl,gS as sm,dF as gi,gT as um,ct as cm,Z as ot,aM as pt,a0 as Yt,aU as lr,a9 as en,a7 as ze,bj as pn,g6 as dm,f3 as rn,f0 as hi,f9 as Ko,ap as bi,aQ as Mt,aV as Cn,F as me,fM as Sc,g8 as kc,gU as fm,e as pm,c as Rc,aS as Zn,ab as Ba,gV as mm,bC as nn,a1 as kr,cO as Hl}from"./index-
|
|
1
|
+
import{gB as $p,m as qt,gC as Np,gD as Fp,fo as Vp,gE as zp,gF as Wp,B as le,gA as qp,gG as Up,gH as Gp,bX as Hp,gI as Yp,gJ as Kp,aO as Qp,gK as Xp,gL as Jp,ao as Ot,j as x,X as Ht,Y as de,u as ft,a as Ut,P as K,s as Oe,cq as We,gM as Ne,r as E,cn as Xe,b4 as mi,cr as Go,gN as Zp,fl as re,aB as Fe,aC as Ve,aD as ae,T as Ct,aH as z,cE as Vr,aG as De,cA as ra,aK as Be,eC as em,cZ as aa,cJ as oa,gO as Dc,dh as xc,cF as tm,ce as fn,bh as br,az as et,aE as nm,c_ as Pc,b as cn,cQ as Tc,bk as rm,ae as am,gP as om,cK as La,dt as im,cR as Ho,gQ as Ul,cP as Yo,$ as ia,gR as lm,eB as we,ew as Gl,gS as sm,dF as gi,gT as um,ct as cm,Z as ot,aM as pt,a0 as Yt,aU as lr,a9 as en,a7 as ze,bj as pn,g6 as dm,f3 as rn,f0 as hi,f9 as Ko,ap as bi,aQ as Mt,aV as Cn,F as me,fM as Sc,g8 as kc,gU as fm,e as pm,c as Rc,aS as Zn,ab as Ba,gV as mm,bC as nn,a1 as kr,cO as Hl}from"./index-Wcry0Teq.js";import{d as Ec}from"./Add-BZ7ZYVjp.js";import{E as gm,d as vi,F as hm,a as yi,L as Ci}from"./Edit-Bv8wdysg.js";import{E as bm}from"./index-CRxNIeZQ.js";import{g as vm,h as ym,W as mn,i as Cm,j as wi,B as Mc,a as Oc,k as wm,l as Dm}from"./dashboard-B8uTlQlw.js";import{S as xm}from"./switch-control-dBHoPJGS.js";import{u as Pm}from"./blocklet-storage-B60YNmnE.js";import{P as Qo,w as wn}from"./permission--4loJJqK.js";import{b as Tm,t as Sm,c as Yl,T as km}from"./index-DkR7ODFP.js";import{r as Dn,V as Rm,R as Em,F as Mm,C as Om,a as _m,e as Im,g as _t,f as Et,s as la,h as on,q as _c,p as Di,k as Ic,m as Am,l as jm,i as xn,c as ln,d as sa,o as Lm,n as Bm,v as Ac,y as $m,w as Nm,x as Fm,j as Vm,u as zm,t as Wm,b as qm,z as Kl,D as Um,A as Gm}from"./FilterList-CLkPMFp0.js";import{d as Hm,_ as te,G as er,b as Ql,c as Ym,e as Km,f as Qm}from"./redux-BKgRDt6m.js";import{S as Xm,d as Jm}from"./Search-CBLNui8O.js";import{C as Zm,r as xe,a as xi,t as lt,b as ye,e as Xo,d as eg,s as zr,g as Jo,m as jc,c as Lc,f as tg,h as ng,i as Zo,j as Bc,k as rg,l as ag,n as $c,o as Pi,p as Xl,q as og,u as Jl,v as ig,w as lg,x as Bt,y as sg,z as Zl,A as ug,B as $a,D as es,E as cg,F as Na,G as In,H as dg,I as fg,J as Rr,K as Fa,L as ts,M as Va,N as za,O as pg,P as mg,Q as gg,R as hg,S as bg,T as vg,U as yg,V as Cg,W as wg,X as Dg,Y as xg,Z as Pg}from"./index-CZOrK58Q.js";import{C as Tg,d as ns,B as Sg}from"./ChevronRight-BWxGsqYb.js";import{D as kg}from"./DeleteOutline-DXY50-zB.js";import{A as Rg}from"./AddBox-Dptu2K5s.js";import{o as Eg,e as Mg,i as Og,p as _g,g as Ig,d as rs,c as Ag,b as Re,_ as Se,r as Kt}from"./slicedToArray-D_fsSo9H.js";import{t as jg,k as Lg,l as Bg,_ as ke}from"./jss-plugin-props-sort.esm-DCeO1l3a.js";import{F as $g,f as Ng,a as Fg,T as st}from"./TextField-Dt3whk-X.js";import{_ as Vg}from"./toPropertyKey-hKuLU48H.js";import{u as Ae}from"./useThemeProps-a1wtq5sP.js";import{S as zg}from"./Skeleton-CGGXM9I8.js";import{M as Nc,g as Wg,i as qg}from"./InputAdornment-C1Qpudux.js";import{m as tt,t as Ug}from"./toUpper-DF_77JAD.js";import{C as as}from"./click-to-copy-C73Tfn_T.js";import{d as vr}from"./Delete-CfzQCYSP.js";import{d as Gg}from"./ArrowDropDown-BHB91Q_p.js";import{A as os}from"./Alert-CMX-K3fl.js";import{f as bt}from"./format-error-C3RZfboJ.js";import{A as Hg,a as Yg,b as Kg,d as Fc,B as Qg,f as Xg}from"./add-component-core-D2D1kYIa.js";import{C as Pn}from"./confirm-DqzDl9MX.js";import{v as Jg,a as Wr}from"./util-B4OkdChr.js";import{i as Zg}from"./index-CzP2U-sb.js";import{d as eh}from"./LockIcon-BiOBCC5U.js";import{d as Vc}from"./Launch-BDBE--jB.js";import{C as th}from"./item-DTQh_HzF.js";import{A as nh}from"./Avatar-BsWomwcd.js";import{E as Ti}from"./Link-sFv_5np_.js";import{d as rh}from"./InfoOutlined-BxsSlLLq.js";import{R as ah,a as is}from"./RadioGroup-uV0Cme3k.js";import{F as ei,C as oh}from"./FormControlLabel-KyoBPdSk.js";import{d as ih}from"./PlayArrow-DLI0bEL5.js";import{A as zc}from"./actions-C8AzzJ-C.js";import{I as Wa}from"./index-WeQ9_XM1.js";import{W as lh}from"./did-address-zjDIEnBt.js";import{T as sh}from"./index-4iP6eqAD.js";import{a as uh}from"./index-Cu_qbLkU.js";import"./Done-Zoiu5U2x.js";import"./logo-uploader-tIXv-22X.js";import"./index-DtpVJrTw.js";import"./EditIcon-BoTBX9Vo.js";import"./ButtonGroup-B3eeFp-U.js";import"./useLocalStorage-C1CKxRfv.js";import"./MoreVert-DI1V1WEt.js";import"./ListItemText-kSkjBnFz.js";import"./session-C0iFSkEy.js";import"./useSetState-ssJWkpMc.js";import"./fallback-dS7iHIHz.js";import"./index-TgNkusIW.js";import"./Toolbar-B20O0aZq.js";import"./Hidden--9BCZNYr.js";import"./index-C8FGOK1B.js";import"./selector-BZXSF6RZ.js";import"./spaces-Bsjcm4Pb.js";import"./api-SdQuBmE7.js";import"./useAsync-D5xkbSFA.js";import"./FormControl-24PD8_fY.js";import"./useFormControl-BolgsUUb.js";import"./FormGroup-DsIQVrXz.js";import"./InputLabel-xESrNHmo.js";import"./Select-D8XELjVf.js";import"./LastPage-C4q9ssZQ.js";import"./useSlot-BrPZCaVM.js";import"./lottie-BtiHsDgJ.js";import"./index-TRv28IoN.js";import"./url-join-a02ntsC0.js";import"./launch-result-message-BbNNNIuG.js";import"./Close-CH7xdBg-.js";import"./page-header-Bldx8iyY.js";import"./uniqBy-7zzhp_MA.js";import"./index-CR6hY1ov.js";import"./Google-DdO9mcms.js";import"./index-C0YJC7GF.js";import"./index-NCKBCLy8.js";import"./Stepper-CNAz-9-7.js";import"./connect-to-RRtLSFp2.js";import"./use-blocklet-info-for-connect-did-spaces-Czhm8Xb6.js";import"./CloseOutlined-xB3FnxFh.js";import"./index-NHAbpx1v.js";import"./ExpandMore-CRbFTb5y.js";import"./content-layout-DabnStRh.js";import"./preact.module-B1z5cdvs.js";import"./shorten-label-Cb27JBwd.js";const ch=Object.freeze(Object.defineProperty({__proto__:null,circularProgressClasses:$p,default:qt,getCircularProgressUtilityClass:Np},Symbol.toStringTag,{value:"Module"})),dh=Object.freeze(Object.defineProperty({__proto__:null,collapseClasses:Fp,default:Vp,getCollapseUtilityClass:zp},Symbol.toStringTag,{value:"Module"})),fh=Object.freeze(Object.defineProperty({__proto__:null,boxClasses:Wp,default:le},Symbol.toStringTag,{value:"Module"})),ph=Object.freeze(Object.defineProperty({__proto__:null,default:$g,formHelperTextClasses:Ng,getFormHelperTextUtilityClasses:Fg},Symbol.toStringTag,{value:"Module"})),mh=Object.freeze(Object.defineProperty({__proto__:null,default:qp,getIconUtilityClass:Up,iconClasses:Gp},Symbol.toStringTag,{value:"Module"})),gh=Object.freeze(Object.defineProperty({__proto__:null,default:Nc,getInputAdornmentUtilityClass:Wg,inputAdornmentClasses:qg},Symbol.toStringTag,{value:"Module"})),hh=Object.freeze(Object.defineProperty({__proto__:null,default:Hp,getLinearProgressUtilityClass:Yp,linearProgressClasses:Kp},Symbol.toStringTag,{value:"Module"})),bh=Object.freeze(Object.defineProperty({__proto__:null,default:Qp,getMenuUtilityClass:Xp,menuClasses:Jp},Symbol.toStringTag,{value:"Module"})),vh=Ot(x.jsx("path",{d:"M14.17 5 19 9.83V19H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V9.83c0-.53-.21-1.04-.59-1.41l-4.83-4.83c-.37-.38-.88-.59-1.41-.59M7 15h10v2H7zm0-4h10v2H7zm0-4h7v2H7z"}),"TextSnippetOutlined");var Si={},yh=de;Object.defineProperty(Si,"__esModule",{value:!0});var Wc=Si.default=void 0,Ch=yh(Ht()),wh=x;Wc=Si.default=(0,Ch.default)((0,wh.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 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"}),"Update");var ki={},Dh=de;Object.defineProperty(ki,"__esModule",{value:!0});var qc=ki.default=void 0,xh=Dh(Ht()),Ph=x;qc=ki.default=(0,xh.default)((0,Ph.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");function Ri({children:e,...t}){const{t:n}=ft(),{updateAutoCheckUpdate:a,autoCheckUpdate:r}=Pm(),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 x.jsxs(le,{display:"flex",flexDirection:"row",alignItems:"center",children:[e,x.jsx(Ut,{title:n("storage.spaces.autoCheckUpdate.title"),arrow:!0,placement:"right",children:x.jsx("div",{children:x.jsx(xm,{checked:o,onChange:i,name:"enableWelcomePage",style:{...t.style,zoom:.8}})})})]})}Ri.propTypes={children:K.any};Ri.defaultProps={children:null};var Uc={},An={},qa={},Ua={},Ga={};const Gc=We(ch);var ls;function Th(){return ls||(ls=1,function(e){var t=de;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ne),a=t(Gc),r=t(E),i=t(Xe),o=Dn;function l(s){var f=(0,o.useTheme)();return r.default.createElement("div",{ref:s.forwardedRef,style:{display:"table",width:"100%",height:"100%",backgroundColor:f.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(f,c){return r.default.createElement(l,(0,n.default)({},f,{forwardedRef:c}))});e.default=u}(Ga)),Ga}var Ha={},Ya={},Dt={};const Ze=We(Hm);var Sh={BASE_URL:"/.well-known/service/static",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const ss=e=>{let t;const n=new Set,a=(u,s)=>{const f=typeof u=="function"?u(t):u;if(!Object.is(f,t)){const c=t;t=s??typeof f!="object"?f:Object.assign({},t,f),n.forEach(p=>p(t,c))}},r=()=>t,l={setState:a,getState:r,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(Sh&&"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},Hc=e=>e?ss(e):ss;var Yc={exports:{}},Kc={},Qc={exports:{}},Xc={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* use-sync-external-store-shim.production.min.js
|
|
4
4
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as l,j as n,Z as I,P as g,$ as F,u as U,af as q,bn as G,a9 as d,c as M,F as z,a7 as _,f2 as H,bT as D,s as Y}from"./index-
|
|
1
|
+
import{r as l,j as n,Z as I,P as g,$ as F,u as U,af as q,bn as G,a9 as d,c as M,F as z,a7 as _,f2 as H,bT as D,s as Y}from"./index-Wcry0Teq.js";import{u as $}from"./uniqBy-7zzhp_MA.js";import{S as Q}from"./index-CR6hY1ov.js";import{P as V}from"./page-header-Bldx8iyY.js";import{S as W}from"./layout-CZagI57K.js";import{S as X}from"./step-actions-D8u8IW-q.js";import{S as Z}from"./button-DFXsaHZa.js";import"./EditIcon-BoTBX9Vo.js";import"./Done-Zoiu5U2x.js";import"./Google-DdO9mcms.js";import"./TextField-Dt3whk-X.js";import"./FormControl-24PD8_fY.js";import"./useFormControl-BolgsUUb.js";import"./InputLabel-xESrNHmo.js";import"./Select-D8XELjVf.js";import"./logo-uploader-tIXv-22X.js";import"./index-DtpVJrTw.js";import"./content-layout-DabnStRh.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(J,{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 J=I.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as Kr,r as O,cr as ze,dA as rt,cn as qr,gi as oi,dF as Ct,fl as D,aH as ie,ev as ii,b4 as Bt,P as b,eB as V,cq as ai,j as T,bC as se,g5 as li,u as tt,cv as Ue,B as fe,T as ge,aY as si,dJ as ci,b3 as Qr,b7 as Xr,b1 as di,b2 as ui,b6 as hi,gj as fi,gk as pi,gl as gi,gm as vi,eN as mi,gn as Si,eM as yi,co as hn,fE as _i,f9 as Ci,bc as Yr,aQ as vt,O as Ut,az as Ge,bf as wi,b as fn,aV as Vt,a9 as Gt,b$ as Pe,go as Wn,c as Jr,bE as xi,gp as Hn,bT as bi,s as dt,dq as ut,ap as Ri,a1 as Ti,gq as Ii,bU as zi,gr as Zr,F as At,gs as Di,gt as Oi,f1 as Pi,Z as ki,$ as Ni,ae as Zt,bA as Mi,fb as Li,bB as Re}from"./index-DvtNf3MX.js";import{r as Ei,b as Ai,i as $n,c as ji,d as Bn,D as Fi,H as Gi}from"./index-Cm-Lag7H.js";import{_ as te,a as Ve,b as ve,c as me,d as Se,r as Wi}from"./slicedToArray-DqbcbTCK.js";import{_ as re,i as Hi,f as $i,j as Bi,a as Ui,c as Vi,d as Ki,b as qi,e as Qi,g as Xi,h as Yi}from"./jss-plugin-props-sort.esm-C03ZG6gd.js";import{_ as w,G as Un}from"./redux-C5iz4rt2.js";import{_ as Ji}from"./toPropertyKey-hKuLU48H.js";import{_ as Zi,u as eo,b as ea}from"./dashboard-C3nFNvqE.js";import{u as ta,C as ot,A as na}from"./index.esm-nXvwY-mI.js";import{p as ra}from"./index-DRtYHh93.js";import{u as oa}from"./index-Xhi1lAEl.js";import{F as Cn}from"./FormControl-q0Fcduj_.js";import{I as to}from"./InputLabel-mAtBSnQb.js";import{S as pn,O as ia}from"./Select-CYN6Jr5f.js";import{a as aa}from"./ListItemText-qGJxabmF.js";import{F as la,T as en}from"./TextField-BDvdWir7.js";import{b as sa,c as Vn}from"./index-CX8UN7-a.js";import{M as Kn}from"./InputAdornment-BXNzazu1.js";import{H as ca,F as da}from"./index-C0NDBTzc.js";import{D as ua}from"./index-YlMJNMvq.js";import{S as tn}from"./Skeleton-DqkmIfuj.js";import{f as qn}from"./format-error-CEsleqYi.js";import{B as nn}from"./ButtonGroup-Bv2t__0y.js";import{T as Qn}from"./Toolbar-BCrX64tT.js";import{L as Xn}from"./LoadingButton-DzC9g4NR.js";import"./useLocalStorage-DCyKJSAA.js";import"./MoreVert-BTTontfH.js";import"./confirm-CSDkFPAY.js";import"./Alert-Co6nFhOM.js";import"./useSlot-Wc4kx38b.js";import"./Delete-Dv9EqKg8.js";import"./PlayArrow-Bt6ftFUg.js";import"./RadioGroup-BWCtiIPm.js";import"./FormControlLabel-BQ6g2rGO.js";import"./useFormControl-OavKtbbd.js";import"./FormGroup-hivEVwQz.js";import"./Avatar-B8I-RRz-.js";import"./session-BrGTnOHc.js";import"./permission-DL4hEyjB.js";import"./useAsync-CZLlK8J9.js";import"./index-C6npNM0Z.js";import"./Link-BKxB3Szm.js";import"./useSetState-DNaXKyRe.js";import"./fallback-DSloEwfk.js";import"./index-Br-jv6tm.js";import"./Hidden-DMR3jGzj.js";import"./ExpandMore-DEMmdLOV.js";import"./selector-DhasM2ZX.js";import"./useThemeProps-D1f3vnSr.js";function ha(t,o){t===void 0&&(t=!1);var r=Kr(O.useState(t),2),e=r[0],n=r[1],i=O.useMemo(function(){var a=o===void 0?!t:o,l=function(){return n(function(u){return u===t?a:t})},s=function(u){return n(u)},d=function(){return n(t)},c=function(){return n(a)};return{toggle:l,set:s,setLeft:d,setRight:c}},[]);return[e,i]}function fa(t){t===void 0&&(t=!1);var o=Kr(ha(!!t),2),r=o[0],e=o[1],n=e.toggle,i=e.set,a=O.useMemo(function(){var l=function(){return i(!0)},s=function(){return i(!1)};return{toggle:n,set:function(d){return i(!!d)},setTrue:l,setFalse:s}},[]);return[r,a]}var Oe={},no="Expected a function",Yn=NaN,pa="[object Symbol]",ga=/^\s+|\s+$/g,va=/^[-+]0x[0-9a-f]+$/i,ma=/^0b[01]+$/i,Sa=/^0o[0-7]+$/i,ya=parseInt,_a=typeof ze=="object"&&ze&&ze.Object===Object&&ze,Ca=typeof self=="object"&&self&&self.Object===Object&&self,wa=_a||Ca||Function("return this")(),xa=Object.prototype,ba=xa.toString,Ra=Math.max,Ta=Math.min,rn=function(){return wa.Date.now()};function Ia(t,o,r){var e,n,i,a,l,s,d=0,c=!1,u=!1,h=!0;if(typeof t!="function")throw new TypeError(no);o=Jn(o)||0,Wt(r)&&(c=!!r.leading,u="maxWait"in r,i=u?Ra(Jn(r.maxWait)||0,o):i,h="trailing"in r?!!r.trailing:h);function p(x){var R=e,y=n;return e=n=void 0,d=x,a=t.apply(y,R),a}function f(x){return d=x,l=setTimeout(C,o),c?p(x):a}function m(x){var R=x-s,y=x-d,P=o-R;return u?Ta(P,i-y):P}function S(x){var R=x-s,y=x-d;return s===void 0||R>=o||R<0||u&&y>=i}function C(){var x=rn();if(S(x))return g(x);l=setTimeout(C,m(x))}function g(x){return l=void 0,h&&e?p(x):(e=n=void 0,a)}function z(){l!==void 0&&clearTimeout(l),d=0,e=s=n=l=void 0}function _(){return l===void 0?a:g(rn())}function v(){var x=rn(),R=S(x);if(e=arguments,n=this,s=x,R){if(l===void 0)return f(s);if(u)return l=setTimeout(C,o),p(s)}return l===void 0&&(l=setTimeout(C,o)),a}return v.cancel=z,v.flush=_,v}function za(t,o,r){var e=!0,n=!0;if(typeof t!="function")throw new TypeError(no);return Wt(r)&&(e="leading"in r?!!r.leading:e,n="trailing"in r?!!r.trailing:n),Ia(t,o,{leading:e,maxWait:o,trailing:n})}function Wt(t){var o=typeof t;return!!t&&(o=="object"||o=="function")}function Da(t){return!!t&&typeof t=="object"}function Oa(t){return typeof t=="symbol"||Da(t)&&ba.call(t)==pa}function Jn(t){if(typeof t=="number")return t;if(Oa(t))return Yn;if(Wt(t)){var o=typeof t.valueOf=="function"?t.valueOf():t;t=Wt(o)?o+"":o}if(typeof t!="string")return t===0?t:+t;t=t.replace(ga,"");var r=ma.test(t);return r||Sa.test(t)?ya(t.slice(2),r?2:8):va.test(t)?Yn:+t}var Pa=za,Kt={exports:{}},ht={exports:{}};(function(){var t,o,r,e,n,i;typeof performance<"u"&&performance!==null&&performance.now?ht.exports=function(){return performance.now()}:typeof rt<"u"&&rt!==null&&rt.hrtime?(ht.exports=function(){return(t()-n)/1e6},o=rt.hrtime,t=function(){var a;return a=o(),a[0]*1e9+a[1]},e=t(),i=rt.uptime()*1e9,n=e-i):Date.now?(ht.exports=function(){return Date.now()-r},r=Date.now()):(ht.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(ze);var ka=ht.exports,Na=ka,De=typeof window>"u"?ze:window,kt=["moz","webkit"],Qe="AnimationFrame",Ye=De["request"+Qe],yt=De["cancel"+Qe]||De["cancelRequest"+Qe];for(var it=0;!Ye&&it<kt.length;it++)Ye=De[kt[it]+"Request"+Qe],yt=De[kt[it]+"Cancel"+Qe]||De[kt[it]+"CancelRequest"+Qe];if(!Ye||!yt){var on=0,Zn=0,Ae=[],Ma=1e3/60;Ye=function(t){if(Ae.length===0){var o=Na(),r=Math.max(0,Ma-(o-on));on=r+o,setTimeout(function(){var e=Ae.slice(0);Ae.length=0;for(var n=0;n<e.length;n++)if(!e[n].cancelled)try{e[n].callback(on)}catch(i){setTimeout(function(){throw i},0)}},Math.round(r))}return Ae.push({handle:++Zn,callback:t,cancelled:!1}),Zn},yt=function(t){for(var o=0;o<Ae.length;o++)Ae[o].handle===t&&(Ae[o].cancelled=!0)}}Kt.exports=function(t){return Ye.call(De,t)};Kt.exports.cancel=function(){yt.apply(De,arguments)};Kt.exports.polyfill=function(t){t||(t=De),t.requestAnimationFrame=Ye,t.cancelAnimationFrame=yt};var La=Kt.exports,wn={};Object.defineProperty(wn,"__esModule",{value:!0});wn.default=Ea;function Ea(t){return t.displayName||t.name||(typeof t=="string"&&t.length>0?t:"Unknown")}var wt={};Object.defineProperty(wt,"__esModule",{value:!0});wt.noop=Aa;wt.intBetween=ja;wt.getCoords=Fa;function Aa(){}function ja(t,o,r){return Math.floor(Math.min(o,Math.max(t,r)))}function Fa(t){return t.type==="touchmove"?{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY}:{x:t.clientX,y:t.clientY}}Object.defineProperty(Oe,"__esModule",{value:!0});var Ga=Oe.createHorizontalStrength=oo,Wa=Oe.createVerticalStrength=io,Ha=Oe.createScrollingComponent=so,$a=Oe.default=nl;Oe.defaultVerticalStrength=Oe.defaultHorizontalStrength=void 0;var mt=Qa(O),at=xt(qr),Ba=Ct,Ua=xt(Pa),er=xt(La),Va=xt(wn),Ka=Ei,qa=xt(oi),Nt=wt;function xt(t){return t&&t.__esModule?t:{default:t}}function Qa(t){if(t&&t.__esModule)return t;var o={};if(t!=null){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var e=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};e.get||e.set?Object.defineProperty(o,r,e):o[r]=t[r]}}return o.default=t,o}function jt(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jt=function(r){return typeof r}:jt=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},jt(t)}function Ht(){return Ht=Object.assign||function(t){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},Ht.apply(this,arguments)}function Xa(t,o){if(t==null)return{};var r=Ya(t,o),e,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)e=i[n],!(o.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(t,e)&&(r[e]=t[e])}return r}function Ya(t,o){if(t==null)return{};var r={},e=Object.keys(t),n,i;for(i=0;i<e.length;i++)n=e[i],!(o.indexOf(n)>=0)&&(r[n]=t[n]);return r}function Ja(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}function tr(t,o){for(var r=0;r<o.length;r++){var e=o[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}function Za(t,o,r){return o&&tr(t.prototype,o),r&&tr(t,r),t}function el(t,o){return o&&(jt(o)==="object"||typeof o=="function")?o:ft(t)}function gn(t){return gn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},gn(t)}function tl(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(o&&o.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),o&&vn(t,o)}function vn(t,o){return vn=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},vn(t,o)}function ft(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function lt(t,o,r){return o in t?Object.defineProperty(t,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[o]=r,t}var ro=150;function oo(t){return function(r,e){var n=r.x,i=r.w,a=r.y,l=r.h,s=Math.min(i/2,t),d=e.x>=n&&e.x<=n+i,c=d&&e.y>=a&&e.y<=a+l;if(c){if(e.x<n+s)return(e.x-n-s)/s;if(e.x>n+i-s)return-(n+i-e.x-s)/s}return 0}}function io(t){return function(r,e){var n=r.y,i=r.h,a=r.x,l=r.w,s=Math.min(i/2,t),d=e.y>=n&&e.y<=n+i,c=d&&e.x>=a&&e.x<=a+l;if(c){if(e.y<n+s)return(e.y-n-s)/s;if(e.y>n+i-s)return-(n+i-e.y-s)/s}return 0}}var ao=oo(ro);Oe.defaultHorizontalStrength=ao;var lo=io(ro);Oe.defaultVerticalStrength=lo;function so(t){var o=function(r){tl(e,r);function e(n,i){var a;return Ja(this,e),a=el(this,gn(e).call(this,n,i)),lt(ft(ft(a)),"updateScrolling",(0,Ua.default)(function(l){var s=a.container.getBoundingClientRect(),d=s.left,c=s.top,u=s.width,h=s.height,p={x:d,y:c,w:u,h},f=(0,Nt.getCoords)(l),m=a.props,S=m.horizontalStrength,C=m.verticalStrength;a.scaleX=S(p,f),a.scaleY=C(p,f),!a.frame&&(a.scaleX||a.scaleY)&&a.startScrolling()},100,{trailing:!1})),lt(ft(ft(a)),"handleEvent",function(l){a.dragging&&!a.attached&&(a.attach(),a.updateScrolling(l))}),a.wrappedInstance=mt.default.createRef(),a.scaleX=0,a.scaleY=0,a.frame=null,a.attached=!1,a.dragging=!1,a}return Za(e,[{key:"componentDidMount",value:function(){var i=this;this.container=(0,Ba.findDOMNode)(this.wrappedInstance.current),this.container&&typeof this.container.addEventListener=="function"&&this.container.addEventListener("dragover",this.handleEvent),window.document.body.addEventListener("touchmove",this.handleEvent);var a=this.props.dragDropManager;this.clearMonitorSubscription=a.getMonitor().subscribeToStateChange(function(){return i.handleMonitorChange()})}},{key:"componentWillUnmount",value:function(){this.container&&typeof this.container.removeEventListener=="function"&&this.container.removeEventListener("dragover",this.handleEvent),window.document.body.removeEventListener("touchmove",this.handleEvent),this.clearMonitorSubscription(),this.stopScrolling()}},{key:"handleMonitorChange",value:function(){var i=this.props.dragDropManager,a=i.getMonitor().isDragging();!this.dragging&&a?this.dragging=!0:this.dragging&&!a&&(this.dragging=!1,this.stopScrolling())}},{key:"attach",value:function(){this.attached=!0,window.document.body.addEventListener("dragover",this.updateScrolling),window.document.body.addEventListener("touchmove",this.updateScrolling)}},{key:"detach",value:function(){this.attached=!1,window.document.body.removeEventListener("dragover",this.updateScrolling),window.document.body.removeEventListener("touchmove",this.updateScrolling)}},{key:"startScrolling",value:function(){var i=this,a=0,l=function s(){var d=i.scaleX,c=i.scaleY,u=i.container,h=i.props,p=h.strengthMultiplier,f=h.onScrollChange;if(p===0||d+c===0){i.stopScrolling();return}if(a+=1,a%2){var m=u.scrollLeft,S=u.scrollTop,C=u.scrollWidth,g=u.scrollHeight,z=u.clientWidth,_=u.clientHeight,v=d?u.scrollLeft=(0,Nt.intBetween)(0,C-z,m+d*p):m,x=c?u.scrollTop=(0,Nt.intBetween)(0,g-_,S+c*p):S;f(v,x)}i.frame=(0,er.default)(s)};l()}},{key:"stopScrolling",value:function(){this.detach(),this.scaleX=0,this.scaleY=0,this.frame&&(er.default.cancel(this.frame),this.frame=null)}},{key:"render",value:function(){var i=this.props;i.strengthMultiplier,i.verticalStrength,i.horizontalStrength,i.onScrollChange;var a=Xa(i,["strengthMultiplier","verticalStrength","horizontalStrength","onScrollChange"]);return mt.default.createElement(t,Ht({ref:this.wrappedInstance},a))}}]),e}(mt.Component);return lt(o,"displayName","Scrolling(".concat((0,Va.default)(t),")")),lt(o,"propTypes",{dragDropManager:at.default.object.isRequired,onScrollChange:at.default.func,verticalStrength:at.default.func,horizontalStrength:at.default.func,strengthMultiplier:at.default.number}),lt(o,"defaultProps",{onScrollChange:Nt.noop,verticalStrength:lo,horizontalStrength:ao,strengthMultiplier:30}),(0,qa.default)(o,t)}function nl(t){var o=so(t);return function(r){return mt.default.createElement(Ka.DragDropContextConsumer,null,function(e){var n=e.dragDropManager;return n===void 0?null:mt.default.createElement(o,Ht({},r,{dragDropManager:n}))})}}function co(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);t!=null&&this.setState(t)}function uo(t){function o(r){var e=this.constructor.getDerivedStateFromProps(t,r);return e??null}this.setState(o.bind(this))}function ho(t,o){try{var r=this.props,e=this.state;this.props=t,this.state=o,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,e)}finally{this.props=r,this.state=e}}co.__suppressDeprecationWarning=!0;uo.__suppressDeprecationWarning=!0;ho.__suppressDeprecationWarning=!0;function bt(t){var o=t.prototype;if(!o||!o.isReactComponent)throw new Error("Can only polyfill class components");if(typeof t.getDerivedStateFromProps!="function"&&typeof o.getSnapshotBeforeUpdate!="function")return t;var r=null,e=null,n=null;if(typeof o.componentWillMount=="function"?r="componentWillMount":typeof o.UNSAFE_componentWillMount=="function"&&(r="UNSAFE_componentWillMount"),typeof o.componentWillReceiveProps=="function"?e="componentWillReceiveProps":typeof o.UNSAFE_componentWillReceiveProps=="function"&&(e="UNSAFE_componentWillReceiveProps"),typeof o.componentWillUpdate=="function"?n="componentWillUpdate":typeof o.UNSAFE_componentWillUpdate=="function"&&(n="UNSAFE_componentWillUpdate"),r!==null||e!==null||n!==null){var i=t.displayName||t.name,a=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
1
|
+
import{_ as Kr,r as O,cr as ze,dA as rt,cn as qr,gi as oi,dF as Ct,fl as D,aH as ie,ev as ii,b4 as Bt,P as b,eB as V,cq as ai,j as T,bC as se,g5 as li,u as tt,cv as Ue,B as fe,T as ge,aY as si,dJ as ci,b3 as Qr,b7 as Xr,b1 as di,b2 as ui,b6 as hi,gj as fi,gk as pi,gl as gi,gm as vi,eN as mi,gn as Si,eM as yi,co as hn,fE as _i,f9 as Ci,bc as Yr,aQ as vt,O as Ut,az as Ge,bf as wi,b as fn,aV as Vt,a9 as Gt,b$ as Pe,go as Wn,c as Jr,bE as xi,gp as Hn,bT as bi,s as dt,dq as ut,ap as Ri,a1 as Ti,gq as Ii,bU as zi,gr as Zr,F as At,gs as Di,gt as Oi,f1 as Pi,Z as ki,$ as Ni,ae as Zt,bA as Mi,fb as Li,bB as Re}from"./index-Wcry0Teq.js";import{r as Ei,b as Ai,i as $n,c as ji,d as Bn,D as Fi,H as Gi}from"./index-C1E7AqRZ.js";import{_ as te,a as Ve,b as ve,c as me,d as Se,r as Wi}from"./slicedToArray-D_fsSo9H.js";import{_ as re,i as Hi,f as $i,j as Bi,a as Ui,c as Vi,d as Ki,b as qi,e as Qi,g as Xi,h as Yi}from"./jss-plugin-props-sort.esm-DCeO1l3a.js";import{_ as w,G as Un}from"./redux-BKgRDt6m.js";import{_ as Ji}from"./toPropertyKey-hKuLU48H.js";import{_ as Zi,u as eo,b as ea}from"./dashboard-B8uTlQlw.js";import{u as ta,C as ot,A as na}from"./index.esm-BFBh3vJP.js";import{p as ra}from"./index-NCKBCLy8.js";import{u as oa}from"./index-i4Rp6jpb.js";import{F as Cn}from"./FormControl-24PD8_fY.js";import{I as to}from"./InputLabel-xESrNHmo.js";import{S as pn,O as ia}from"./Select-D8XELjVf.js";import{a as aa}from"./ListItemText-kSkjBnFz.js";import{F as la,T as en}from"./TextField-Dt3whk-X.js";import{b as sa,c as Vn}from"./index-DkR7ODFP.js";import{M as Kn}from"./InputAdornment-C1Qpudux.js";import{H as ca,F as da}from"./index-DZdxCnUI.js";import{D as ua}from"./index-C8FGOK1B.js";import{S as tn}from"./Skeleton-CGGXM9I8.js";import{f as qn}from"./format-error-C3RZfboJ.js";import{B as nn}from"./ButtonGroup-B3eeFp-U.js";import{T as Qn}from"./Toolbar-B20O0aZq.js";import{L as Xn}from"./LoadingButton-BrfFIQlJ.js";import"./useLocalStorage-C1CKxRfv.js";import"./MoreVert-DI1V1WEt.js";import"./confirm-DqzDl9MX.js";import"./Alert-CMX-K3fl.js";import"./useSlot-BrPZCaVM.js";import"./Delete-CfzQCYSP.js";import"./PlayArrow-DLI0bEL5.js";import"./RadioGroup-uV0Cme3k.js";import"./FormControlLabel-KyoBPdSk.js";import"./useFormControl-BolgsUUb.js";import"./FormGroup-DsIQVrXz.js";import"./Avatar-BsWomwcd.js";import"./session-C0iFSkEy.js";import"./permission--4loJJqK.js";import"./useAsync-D5xkbSFA.js";import"./index-4iP6eqAD.js";import"./Link-sFv_5np_.js";import"./useSetState-ssJWkpMc.js";import"./fallback-dS7iHIHz.js";import"./index-TgNkusIW.js";import"./Hidden--9BCZNYr.js";import"./ExpandMore-CRbFTb5y.js";import"./selector-BZXSF6RZ.js";import"./useThemeProps-a1wtq5sP.js";function ha(t,o){t===void 0&&(t=!1);var r=Kr(O.useState(t),2),e=r[0],n=r[1],i=O.useMemo(function(){var a=o===void 0?!t:o,l=function(){return n(function(u){return u===t?a:t})},s=function(u){return n(u)},d=function(){return n(t)},c=function(){return n(a)};return{toggle:l,set:s,setLeft:d,setRight:c}},[]);return[e,i]}function fa(t){t===void 0&&(t=!1);var o=Kr(ha(!!t),2),r=o[0],e=o[1],n=e.toggle,i=e.set,a=O.useMemo(function(){var l=function(){return i(!0)},s=function(){return i(!1)};return{toggle:n,set:function(d){return i(!!d)},setTrue:l,setFalse:s}},[]);return[r,a]}var Oe={},no="Expected a function",Yn=NaN,pa="[object Symbol]",ga=/^\s+|\s+$/g,va=/^[-+]0x[0-9a-f]+$/i,ma=/^0b[01]+$/i,Sa=/^0o[0-7]+$/i,ya=parseInt,_a=typeof ze=="object"&&ze&&ze.Object===Object&&ze,Ca=typeof self=="object"&&self&&self.Object===Object&&self,wa=_a||Ca||Function("return this")(),xa=Object.prototype,ba=xa.toString,Ra=Math.max,Ta=Math.min,rn=function(){return wa.Date.now()};function Ia(t,o,r){var e,n,i,a,l,s,d=0,c=!1,u=!1,h=!0;if(typeof t!="function")throw new TypeError(no);o=Jn(o)||0,Wt(r)&&(c=!!r.leading,u="maxWait"in r,i=u?Ra(Jn(r.maxWait)||0,o):i,h="trailing"in r?!!r.trailing:h);function p(x){var R=e,y=n;return e=n=void 0,d=x,a=t.apply(y,R),a}function f(x){return d=x,l=setTimeout(C,o),c?p(x):a}function m(x){var R=x-s,y=x-d,P=o-R;return u?Ta(P,i-y):P}function S(x){var R=x-s,y=x-d;return s===void 0||R>=o||R<0||u&&y>=i}function C(){var x=rn();if(S(x))return g(x);l=setTimeout(C,m(x))}function g(x){return l=void 0,h&&e?p(x):(e=n=void 0,a)}function z(){l!==void 0&&clearTimeout(l),d=0,e=s=n=l=void 0}function _(){return l===void 0?a:g(rn())}function v(){var x=rn(),R=S(x);if(e=arguments,n=this,s=x,R){if(l===void 0)return f(s);if(u)return l=setTimeout(C,o),p(s)}return l===void 0&&(l=setTimeout(C,o)),a}return v.cancel=z,v.flush=_,v}function za(t,o,r){var e=!0,n=!0;if(typeof t!="function")throw new TypeError(no);return Wt(r)&&(e="leading"in r?!!r.leading:e,n="trailing"in r?!!r.trailing:n),Ia(t,o,{leading:e,maxWait:o,trailing:n})}function Wt(t){var o=typeof t;return!!t&&(o=="object"||o=="function")}function Da(t){return!!t&&typeof t=="object"}function Oa(t){return typeof t=="symbol"||Da(t)&&ba.call(t)==pa}function Jn(t){if(typeof t=="number")return t;if(Oa(t))return Yn;if(Wt(t)){var o=typeof t.valueOf=="function"?t.valueOf():t;t=Wt(o)?o+"":o}if(typeof t!="string")return t===0?t:+t;t=t.replace(ga,"");var r=ma.test(t);return r||Sa.test(t)?ya(t.slice(2),r?2:8):va.test(t)?Yn:+t}var Pa=za,Kt={exports:{}},ht={exports:{}};(function(){var t,o,r,e,n,i;typeof performance<"u"&&performance!==null&&performance.now?ht.exports=function(){return performance.now()}:typeof rt<"u"&&rt!==null&&rt.hrtime?(ht.exports=function(){return(t()-n)/1e6},o=rt.hrtime,t=function(){var a;return a=o(),a[0]*1e9+a[1]},e=t(),i=rt.uptime()*1e9,n=e-i):Date.now?(ht.exports=function(){return Date.now()-r},r=Date.now()):(ht.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(ze);var ka=ht.exports,Na=ka,De=typeof window>"u"?ze:window,kt=["moz","webkit"],Qe="AnimationFrame",Ye=De["request"+Qe],yt=De["cancel"+Qe]||De["cancelRequest"+Qe];for(var it=0;!Ye&&it<kt.length;it++)Ye=De[kt[it]+"Request"+Qe],yt=De[kt[it]+"Cancel"+Qe]||De[kt[it]+"CancelRequest"+Qe];if(!Ye||!yt){var on=0,Zn=0,Ae=[],Ma=1e3/60;Ye=function(t){if(Ae.length===0){var o=Na(),r=Math.max(0,Ma-(o-on));on=r+o,setTimeout(function(){var e=Ae.slice(0);Ae.length=0;for(var n=0;n<e.length;n++)if(!e[n].cancelled)try{e[n].callback(on)}catch(i){setTimeout(function(){throw i},0)}},Math.round(r))}return Ae.push({handle:++Zn,callback:t,cancelled:!1}),Zn},yt=function(t){for(var o=0;o<Ae.length;o++)Ae[o].handle===t&&(Ae[o].cancelled=!0)}}Kt.exports=function(t){return Ye.call(De,t)};Kt.exports.cancel=function(){yt.apply(De,arguments)};Kt.exports.polyfill=function(t){t||(t=De),t.requestAnimationFrame=Ye,t.cancelAnimationFrame=yt};var La=Kt.exports,wn={};Object.defineProperty(wn,"__esModule",{value:!0});wn.default=Ea;function Ea(t){return t.displayName||t.name||(typeof t=="string"&&t.length>0?t:"Unknown")}var wt={};Object.defineProperty(wt,"__esModule",{value:!0});wt.noop=Aa;wt.intBetween=ja;wt.getCoords=Fa;function Aa(){}function ja(t,o,r){return Math.floor(Math.min(o,Math.max(t,r)))}function Fa(t){return t.type==="touchmove"?{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY}:{x:t.clientX,y:t.clientY}}Object.defineProperty(Oe,"__esModule",{value:!0});var Ga=Oe.createHorizontalStrength=oo,Wa=Oe.createVerticalStrength=io,Ha=Oe.createScrollingComponent=so,$a=Oe.default=nl;Oe.defaultVerticalStrength=Oe.defaultHorizontalStrength=void 0;var mt=Qa(O),at=xt(qr),Ba=Ct,Ua=xt(Pa),er=xt(La),Va=xt(wn),Ka=Ei,qa=xt(oi),Nt=wt;function xt(t){return t&&t.__esModule?t:{default:t}}function Qa(t){if(t&&t.__esModule)return t;var o={};if(t!=null){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var e=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};e.get||e.set?Object.defineProperty(o,r,e):o[r]=t[r]}}return o.default=t,o}function jt(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jt=function(r){return typeof r}:jt=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},jt(t)}function Ht(){return Ht=Object.assign||function(t){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},Ht.apply(this,arguments)}function Xa(t,o){if(t==null)return{};var r=Ya(t,o),e,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)e=i[n],!(o.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(t,e)&&(r[e]=t[e])}return r}function Ya(t,o){if(t==null)return{};var r={},e=Object.keys(t),n,i;for(i=0;i<e.length;i++)n=e[i],!(o.indexOf(n)>=0)&&(r[n]=t[n]);return r}function Ja(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}function tr(t,o){for(var r=0;r<o.length;r++){var e=o[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}function Za(t,o,r){return o&&tr(t.prototype,o),r&&tr(t,r),t}function el(t,o){return o&&(jt(o)==="object"||typeof o=="function")?o:ft(t)}function gn(t){return gn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},gn(t)}function tl(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(o&&o.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),o&&vn(t,o)}function vn(t,o){return vn=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},vn(t,o)}function ft(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function lt(t,o,r){return o in t?Object.defineProperty(t,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[o]=r,t}var ro=150;function oo(t){return function(r,e){var n=r.x,i=r.w,a=r.y,l=r.h,s=Math.min(i/2,t),d=e.x>=n&&e.x<=n+i,c=d&&e.y>=a&&e.y<=a+l;if(c){if(e.x<n+s)return(e.x-n-s)/s;if(e.x>n+i-s)return-(n+i-e.x-s)/s}return 0}}function io(t){return function(r,e){var n=r.y,i=r.h,a=r.x,l=r.w,s=Math.min(i/2,t),d=e.y>=n&&e.y<=n+i,c=d&&e.x>=a&&e.x<=a+l;if(c){if(e.y<n+s)return(e.y-n-s)/s;if(e.y>n+i-s)return-(n+i-e.y-s)/s}return 0}}var ao=oo(ro);Oe.defaultHorizontalStrength=ao;var lo=io(ro);Oe.defaultVerticalStrength=lo;function so(t){var o=function(r){tl(e,r);function e(n,i){var a;return Ja(this,e),a=el(this,gn(e).call(this,n,i)),lt(ft(ft(a)),"updateScrolling",(0,Ua.default)(function(l){var s=a.container.getBoundingClientRect(),d=s.left,c=s.top,u=s.width,h=s.height,p={x:d,y:c,w:u,h},f=(0,Nt.getCoords)(l),m=a.props,S=m.horizontalStrength,C=m.verticalStrength;a.scaleX=S(p,f),a.scaleY=C(p,f),!a.frame&&(a.scaleX||a.scaleY)&&a.startScrolling()},100,{trailing:!1})),lt(ft(ft(a)),"handleEvent",function(l){a.dragging&&!a.attached&&(a.attach(),a.updateScrolling(l))}),a.wrappedInstance=mt.default.createRef(),a.scaleX=0,a.scaleY=0,a.frame=null,a.attached=!1,a.dragging=!1,a}return Za(e,[{key:"componentDidMount",value:function(){var i=this;this.container=(0,Ba.findDOMNode)(this.wrappedInstance.current),this.container&&typeof this.container.addEventListener=="function"&&this.container.addEventListener("dragover",this.handleEvent),window.document.body.addEventListener("touchmove",this.handleEvent);var a=this.props.dragDropManager;this.clearMonitorSubscription=a.getMonitor().subscribeToStateChange(function(){return i.handleMonitorChange()})}},{key:"componentWillUnmount",value:function(){this.container&&typeof this.container.removeEventListener=="function"&&this.container.removeEventListener("dragover",this.handleEvent),window.document.body.removeEventListener("touchmove",this.handleEvent),this.clearMonitorSubscription(),this.stopScrolling()}},{key:"handleMonitorChange",value:function(){var i=this.props.dragDropManager,a=i.getMonitor().isDragging();!this.dragging&&a?this.dragging=!0:this.dragging&&!a&&(this.dragging=!1,this.stopScrolling())}},{key:"attach",value:function(){this.attached=!0,window.document.body.addEventListener("dragover",this.updateScrolling),window.document.body.addEventListener("touchmove",this.updateScrolling)}},{key:"detach",value:function(){this.attached=!1,window.document.body.removeEventListener("dragover",this.updateScrolling),window.document.body.removeEventListener("touchmove",this.updateScrolling)}},{key:"startScrolling",value:function(){var i=this,a=0,l=function s(){var d=i.scaleX,c=i.scaleY,u=i.container,h=i.props,p=h.strengthMultiplier,f=h.onScrollChange;if(p===0||d+c===0){i.stopScrolling();return}if(a+=1,a%2){var m=u.scrollLeft,S=u.scrollTop,C=u.scrollWidth,g=u.scrollHeight,z=u.clientWidth,_=u.clientHeight,v=d?u.scrollLeft=(0,Nt.intBetween)(0,C-z,m+d*p):m,x=c?u.scrollTop=(0,Nt.intBetween)(0,g-_,S+c*p):S;f(v,x)}i.frame=(0,er.default)(s)};l()}},{key:"stopScrolling",value:function(){this.detach(),this.scaleX=0,this.scaleY=0,this.frame&&(er.default.cancel(this.frame),this.frame=null)}},{key:"render",value:function(){var i=this.props;i.strengthMultiplier,i.verticalStrength,i.horizontalStrength,i.onScrollChange;var a=Xa(i,["strengthMultiplier","verticalStrength","horizontalStrength","onScrollChange"]);return mt.default.createElement(t,Ht({ref:this.wrappedInstance},a))}}]),e}(mt.Component);return lt(o,"displayName","Scrolling(".concat((0,Va.default)(t),")")),lt(o,"propTypes",{dragDropManager:at.default.object.isRequired,onScrollChange:at.default.func,verticalStrength:at.default.func,horizontalStrength:at.default.func,strengthMultiplier:at.default.number}),lt(o,"defaultProps",{onScrollChange:Nt.noop,verticalStrength:lo,horizontalStrength:ao,strengthMultiplier:30}),(0,qa.default)(o,t)}function nl(t){var o=so(t);return function(r){return mt.default.createElement(Ka.DragDropContextConsumer,null,function(e){var n=e.dragDropManager;return n===void 0?null:mt.default.createElement(o,Ht({},r,{dragDropManager:n}))})}}function co(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);t!=null&&this.setState(t)}function uo(t){function o(r){var e=this.constructor.getDerivedStateFromProps(t,r);return e??null}this.setState(o.bind(this))}function ho(t,o){try{var r=this.props,e=this.state;this.props=t,this.state=o,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,e)}finally{this.props=r,this.state=e}}co.__suppressDeprecationWarning=!0;uo.__suppressDeprecationWarning=!0;ho.__suppressDeprecationWarning=!0;function bt(t){var o=t.prototype;if(!o||!o.isReactComponent)throw new Error("Can only polyfill class components");if(typeof t.getDerivedStateFromProps!="function"&&typeof o.getSnapshotBeforeUpdate!="function")return t;var r=null,e=null,n=null;if(typeof o.componentWillMount=="function"?r="componentWillMount":typeof o.UNSAFE_componentWillMount=="function"&&(r="UNSAFE_componentWillMount"),typeof o.componentWillReceiveProps=="function"?e="componentWillReceiveProps":typeof o.UNSAFE_componentWillReceiveProps=="function"&&(e="UNSAFE_componentWillReceiveProps"),typeof o.componentWillUpdate=="function"?n="componentWillUpdate":typeof o.UNSAFE_componentWillUpdate=="function"&&(n="UNSAFE_componentWillUpdate"),r!==null||e!==null||n!==null){var i=t.displayName||t.name,a=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
2
2
|
|
|
3
3
|
`+i+" uses "+a+" but also contains the following legacy lifecycles:"+(r!==null?`
|
|
4
4
|
`+r:"")+(e!==null?`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{X as t,Y as a,j as c,F as e}from"./index-
|
|
1
|
+
import{X as t,Y as a,j as c,F as e}from"./index-Wcry0Teq.js";var r={},u=a;Object.defineProperty(r,"__esModule",{value:!0});var n=r.default=void 0,v=u(t()),d=c;n=r.default=(0,v.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-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var o={},p=a;Object.defineProperty(o,"__esModule",{value:!0});var l=o.default=void 0,_=p(t()),f=c;l=o.default=(0,_.default)((0,f.jsx)("path",{d:"M21 8V7l-3 2-3-2v1l3 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-2M8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1zm8-6h-8V6h8z"}),"ContactMail");var i={},h=a;Object.defineProperty(i,"__esModule",{value:!0});var s=i.default=void 0,m=h(t()),C=c;s=i.default=(0,m.default)((0,C.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-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 2zm6.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.39"}),"Public");const j=[{value:e.WHO_CAN_ACCESS.ALL,icon:s,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{j as A};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{cN as L,$ as C,r as a,u as N,bh as O,j as n,cO as Q,cP as z,cQ as F,a1 as y,m as Z,P as o,Z as G,cR as H}from"./index-
|
|
1
|
+
import{cN as L,$ as C,r as a,u as N,bh as O,j as n,cO as Q,cP as z,cQ as F,a1 as y,m as Z,P as o,Z as G,cR as H}from"./index-Wcry0Teq.js";import{D as I,f as J}from"./format-error-C3RZfboJ.js";import{A as K}from"./Alert-CMX-K3fl.js";function U(){var e;const s=L();return(e=s==null?void 0:s.$$material)!=null?e:s}function V(){const e=U();return{minWidth:C(e.breakpoints.down("md"))?300:e.breakpoints.values.sm}}function x({title:e,description:s,showCancel:c,showConfirm:b,cancel:w,confirm:j,color:k,params:D,onCancel:S,onConfirm:T,loading:l,displayError:P,children:v,...$}){const[t,E]=a.useState(D),[R,d]=a.useState(!0),[m,u]=a.useState(!1),[p,f]=a.useState(""),{t:B}=N(),M=O(),h=async r=>{if(typeof r=="function"){u(!0);try{if(await r(t)===!1)return;d(!1)}catch(i){f(J(i)),console.error(i)}finally{u(!1)}}else d(!1)},W=typeof e=="function"?e():e,q=typeof s=="function"?s(t,E,f):s,A=C(M.breakpoints.down("md")),_=r=>{r.stopPropagation()},{minWidth:g}=V();return n.jsxs(X,{onClick:_,fullScreen:A,open:R,style:{minWidth:g},...$,children:[n.jsx(Q,{children:W}),n.jsxs(z,{style:{minWidth:g},children:[n.jsx(I,{component:"div",children:q}),!!p&&P&&n.jsx(K,{severity:"error",style:{width:"100%",marginTop:8},children:p}),v]}),n.jsxs(F,{className:"delete-actions",style:{padding:"8px 24px 24px"},children:[c&&n.jsx(y,{onClick:r=>{r.stopPropagation(),h(S)},color:"inherit","data-cy":"cancel-confirm-dialog",children:w||B("common.cancel")}),b&&n.jsxs(y,{onClick:r=>{r.stopPropagation(),h(T)},color:k,disabled:t.__disableConfirm||m||l,variant:"contained","data-cy":"submit-confirm-dialog",autoFocus:!0,children:[(m||l)&&n.jsx(Z,{size:16,sx:{mr:1}}),j]})]})]})}x.propTypes={title:o.any.isRequired,description:o.any.isRequired,showCancel:o.bool,showConfirm:o.bool,cancel:o.string,color:o.string,confirm:o.string,params:o.object,onCancel:o.func,onConfirm:o.func.isRequired,loading:o.bool,displayError:o.bool,children:o.any};x.defaultProps={children:void 0,onCancel:()=>{},showCancel:!0,showConfirm:!0,cancel:"",confirm:"Confirm",color:"error",params:{},loading:!1,displayError:!0};const X=G(H)`
|
|
2
2
|
.delete-actions .Mui-disabled {
|
|
3
3
|
color: rgba(0, 0, 0, 0.26) !important;
|
|
4
4
|
box-shadow: none;
|