@abtnode/webapp 1.17.8-beta-20260205-074433-9d1114cf → 1.17.8
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/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/dist/assets/{AdapterDayjs-IaUSFlm4.js → AdapterDayjs-CXgBZcQU.js} +1 -1
- package/dist/assets/{Add-D1qtasGt.js → Add-B-lIYZBc.js} +1 -1
- package/dist/assets/ArrowDropDown-C1ynmK1V.js +1 -0
- package/dist/assets/{Autocomplete-DTKIP70z.js → Autocomplete-BHqH72uG.js} +1 -1
- package/dist/assets/{Breadcrumbs-DYu6Ih3W.js → Breadcrumbs-CpZ2DeBG.js} +1 -1
- package/dist/assets/{ButtonGroup-BmKH0AR_.js → ButtonGroup-CXwzM552.js} +1 -1
- package/dist/assets/{CSSTransition-By0IzEZz.js → CSSTransition-hTlKGu0l.js} +1 -1
- package/dist/assets/{CallMerge-CBsd3n82.js → CallMerge-V8M4tzIM.js} +1 -1
- package/dist/assets/{CardContent-uQht8_nO.js → CardContent-MdG6Fo_s.js} +1 -1
- package/dist/assets/{ChevronLeft-YHLhmhXY.js → ChevronLeft-BPs9Erbv.js} +1 -1
- package/dist/assets/{ChevronRight-Bry_Rp2n.js → ChevronRight-C_yvQN06.js} +1 -1
- package/dist/assets/{Clear-C9b1QEIp.js → Clear-XkW6YpHE.js} +1 -1
- package/dist/assets/{Delete-BR43GocU.js → Delete-CCasVLgy.js} +1 -1
- package/dist/assets/{DeleteOutline-BknUUIOQ.js → DeleteOutline-CocEa6gq.js} +1 -1
- package/dist/assets/{Done-D38mSa7e.js → Done-DfHgd6VN.js} +1 -1
- package/dist/assets/{Edit-Cezv9GPx.js → Edit-CGdW8_LW.js} +1 -1
- package/dist/assets/{ErrorOutline-DSSui5bs.js → ErrorOutline-D3nJBXYA.js} +1 -1
- package/dist/assets/{FilterList-ByiwX7w6.js → FilterList-BiaeVs0C.js} +1 -1
- package/dist/assets/{Google-DW20cCdB.js → Google-D9HgkG4U.js} +1 -1
- package/dist/assets/{HelpOutline-C8Ii5pdp.js → HelpOutline-s5mQqTw1.js} +1 -1
- package/dist/assets/{Launch-BjUxWdZ_.js → Launch-DHnB5pzO.js} +1 -1
- package/dist/assets/{Link-rwof5_jN.js → Link-DUSQD8mc.js} +1 -1
- package/dist/assets/{ListItemButton-CLYRGxS5.js → ListItemButton-BIo7wBNv.js} +1 -1
- package/dist/assets/{ListSubheader-BrZqDYTB.js → ListSubheader-rZisNvzB.js} +1 -1
- package/dist/assets/{LoadingButton-CEhniQ1z.js → LoadingButton-egcGN7yK.js} +1 -1
- package/dist/assets/{LottiePlayer.modern-BOVXfijb.js → LottiePlayer.modern-DuQJ5g1j.js} +1 -1
- package/dist/assets/{MoreVert-YQMFdAci.js → MoreVert-Cw1fjU9L.js} +1 -1
- package/dist/assets/{OpenInNew-D__db3UD.js → OpenInNew-2i4mGCRx.js} +1 -1
- package/dist/assets/{Refresh-CEyibS7R.js → Refresh-BIkqgW7p.js} +1 -1
- package/dist/assets/{Replay-DJEt53W0.js → Replay-3PaYn2br.js} +1 -1
- package/dist/assets/{Search-B-Kpov_x.js → Search-mc0LftDb.js} +1 -1
- package/dist/assets/{Stepper-BkvTFi6y.js → Stepper-CnqNXODv.js} +1 -1
- package/dist/assets/{TableSearch-QTEwGVjE.js → TableSearch-ZIwL7jK3.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-leiBEwd_.js → ToggleButtonGroup-DeGfqT0G.js} +1 -1
- package/dist/assets/{UnfoldMore-BtGzVWNn.js → UnfoldMore-DFA58tLQ.js} +1 -1
- package/dist/assets/{Verified-GvGnFXRL.js → Verified-se8hbTqT.js} +1 -1
- package/dist/assets/{VerifiedUser-D8u3Hj9z.js → VerifiedUser-8QA2XNlm.js} +1 -1
- package/dist/assets/{ViewList-CI4jp_14.js → ViewList-DgyKMmIc.js} +1 -1
- package/dist/assets/{Visibility-Bmnp5dVh.js → Visibility-BqBwXDHr.js} +1 -1
- package/dist/assets/{_createAggregator-DcJLZ0MZ.js → _createAggregator-BS_ZCLsv.js} +1 -1
- package/dist/assets/{actions-CCjvPhEB.js → actions-BuX7-i-0.js} +1 -1
- package/dist/assets/{actions-DaRBxjah.js → actions-DR8B4Taf.js} +2 -2
- package/dist/assets/{actions-CAvjo_Ow.js → actions-Zy-oEKVg.js} +1 -1
- package/dist/assets/{agreement-B5uBdrUm.js → agreement-3SHQ4MuR.js} +1 -1
- package/dist/assets/api-DBq1KtcA.js +1 -0
- package/dist/assets/{appearance-BWTNqmDR.js → appearance-CRQaeOoe.js} +1 -1
- package/dist/assets/{audit-logs-BAppUNme.js → audit-logs-BGRhRsNS.js} +2 -2
- package/dist/assets/{babel-BttEwFDF.js → babel-BILHfcMU.js} +1 -1
- package/dist/assets/{base-chart-nzAgs-vq.js → base-chart-Cp-etWR-.js} +1 -1
- package/dist/assets/{blocklet-mQW2VRE3.js → blocklet-D7q_eJsm.js} +1 -1
- package/dist/assets/{chain-Bajmovwi.js → chain-DDmwEbOF.js} +1 -1
- package/dist/assets/{click-to-copy-BJwHXTAU.js → click-to-copy-wk3E32eY.js} +1 -1
- package/dist/assets/cloneDeep-BEJXcFgb.js +1 -0
- package/dist/assets/{config-navigation-DhuiKMvJ.js → config-navigation-iUuwjLA_.js} +17 -17
- package/dist/assets/{connect-lnVGHfaY.js → connect-DGRM2e01.js} +1 -1
- package/dist/assets/{connect-to-HWRwV1Zb.js → connect-to-BdinmIba.js} +3 -3
- package/dist/assets/{delete-confirm-D-pHWenk.js → delete-confirm-C8X53PNk.js} +1 -1
- package/dist/assets/{depsEqual-BTB47kAG.js → depsEqual-FU6HOfMn.js} +1 -1
- package/dist/assets/{detail-DPUG43Cf.js → detail-BX_klHKR.js} +2 -2
- package/dist/assets/domains-DlW2t7QG.js +28 -0
- package/dist/assets/{download-B_GCffOL.js → download-CHMW-VV9.js} +1 -1
- package/dist/assets/{edit.svg-DgkWXClh.js → edit.svg-CBqxioRV.js} +1 -1
- package/dist/assets/emotion-cache.browser.esm-D6kXFXIA.js +1 -0
- package/dist/assets/engine-hQAyActy.js +1 -0
- package/dist/assets/{federated-detail-dialog-BAAYkStt.js → federated-detail-dialog-C93dA_OW.js} +1 -1
- package/dist/assets/{get-safe-url-BmWKThk5.js → get-safe-url-n4nPkbEQ.js} +1 -1
- package/dist/assets/getValidReactChildren-dJeDeNuf.js +1 -0
- package/dist/assets/{graphql-DRZgDRnJ.js → graphql-BOG1t7Ob.js} +1 -1
- package/dist/assets/{graphqlMode-D6Ry3UyA.js → graphqlMode-BuOU6E0N.js} +2 -2
- package/dist/assets/{html-title-BO3r7YSd.js → html-title-DwrWBQUt.js} +1 -1
- package/dist/assets/{iframe-DaoKgbiQ.js → iframe-B0inMXzK.js} +1 -1
- package/dist/assets/{index-BsfgDen6.js → index-0lc-age1.js} +1 -1
- package/dist/assets/index-1nsTMIEw.js +1 -0
- package/dist/assets/{index-xie30Dh0.js → index-2jRJYLHP.js} +1 -1
- package/dist/assets/{index-DwPMkrzc.js → index-2tPqycMJ.js} +2 -2
- package/dist/assets/{index-Ohp5zy8G.js → index-4OvGI3tM.js} +1 -1
- package/dist/assets/{index-BA_zqSiS.js → index-7TgPZijh.js} +1 -1
- package/dist/assets/{index-IQ8RBJFB.js → index-8K8V7S7h.js} +1 -1
- package/dist/assets/{index-DgAeLiKC.js → index-B01of1n7.js} +1 -1
- package/dist/assets/{index-PZ2fx_h4.js → index-B8jKymjp.js} +3 -3
- package/dist/assets/{index-DUa2rZxk.js → index-B9oDQ5jy.js} +20 -20
- package/dist/assets/{index-CcXfL7E7.js → index-BDQexjSt.js} +1 -1
- package/dist/assets/{index-CAbi4Q6i.js → index-BFpYSXLl.js} +3 -3
- package/dist/assets/{index-CcPy8sB_.js → index-BIOcSTv1.js} +1 -1
- package/dist/assets/{index-BdqGdcv2.js → index-BJsW1I-W.js} +1 -1
- package/dist/assets/{index-DrKVMSE5.js → index-BPu5OFdR.js} +1 -1
- package/dist/assets/{index-DscVI0IV.js → index-BQ0GXRUy.js} +1 -1
- package/dist/assets/{index-C7RFlKtP.js → index-BbnbDlTc.js} +2 -2
- package/dist/assets/{index-I3asAR5r.js → index-Bg6xcyjD.js} +6 -6
- package/dist/assets/{index-N0aqGit9.js → index-BsmvyFtw.js} +1 -1
- package/dist/assets/{index-BfWiTV5L.js → index-C5xvmzdD.js} +1 -1
- package/dist/assets/{index-D7zthsmK.js → index-CGJGuomb.js} +3 -3
- package/dist/assets/{index-DEflHlyo.js → index-CP8e2zcP.js} +3 -3
- package/dist/assets/{index-CENTGsHb.js → index-CRRnOuLM.js} +3 -3
- package/dist/assets/{index-AGlbL6jT.js → index-Cm_CX9Km.js} +1 -1
- package/dist/assets/{index-C07Ljz-P.js → index-CqXuTw4d.js} +1 -1
- package/dist/assets/{index-Cj38JD_6.js → index-Cske9PWb.js} +3 -3
- package/dist/assets/{index-BWxIl7Zm.js → index-CyXVLDQI.js} +1 -1
- package/dist/assets/{index-DZ_f5Dfi.js → index-D3qtx7de.js} +1 -1
- package/dist/assets/{index-BcRKEX-z.js → index-DK8BRrRb.js} +2 -2
- package/dist/assets/{index-CWEDY4A2.js → index-DNGIFQtW.js} +4 -4
- package/dist/assets/{index-Bl5zzd5F.js → index-DX_ig3IR.js} +1 -1
- package/dist/assets/{index-CJe-L0_W.js → index-De_3fKYA.js} +1 -1
- package/dist/assets/{index-CXj3-Qmy.js → index-G4GuFOuO.js} +1 -1
- package/dist/assets/{index-DA3gthJ9.js → index-MLCJ7HJV.js} +2 -2
- package/dist/assets/{index-BlU32mL_.js → index-OZjARxbD.js} +1 -1
- package/dist/assets/{index-BbxLly-V.js → index-Oah-jRyx.js} +1 -1
- package/dist/assets/{index-22B4OxZa.js → index-PzC6rkTH.js} +1 -1
- package/dist/assets/{index-ll7_pfKU.js → index-StdVm_EG.js} +1 -1
- package/dist/assets/{index--_MX4Y7D.js → index-_qKxdWY4.js} +10 -10
- package/dist/assets/{index-C2XQ9Wkq.js → index-dKtf23Ej.js} +1 -1
- package/dist/assets/{index-C4zhyFnN.js → index-erCgIvu7.js} +1 -1
- package/dist/assets/{index-DzQavNm8.js → index-hxHDV4zb.js} +2 -2
- package/dist/assets/{index-PupLKSg6.js → index-mGRBDoXw.js} +1 -1
- package/dist/assets/{index-B9lrrb_O.js → index-p8ewFFuc.js} +5 -5
- package/dist/assets/{index-BI2ulEux.js → index-pMmL--Md.js} +1 -1
- package/dist/assets/{index.esm-uIPkYqTP.js → index.esm-DjcC6_YD.js} +1 -1
- package/dist/assets/{install-from-url-6nN6p8KI.js → install-from-url-DfM4lxPD.js} +1 -1
- package/dist/assets/{invitation-BwJczXLd.js → invitation-CyjIyIIY.js} +1 -1
- package/dist/assets/{is-path-prefix-equal-B5QaVi7p.js → is-path-prefix-equal-sWdIB_FI.js} +1 -1
- package/dist/assets/{isEmail-DYZ2ooZR.js → isEmail-CpvKmXxu.js} +1 -1
- package/dist/assets/{item-9r2fa-dg.js → item-NX8BCXwV.js} +6 -6
- package/dist/assets/{jsonMode--ELrQNuw.js → jsonMode-wNz3PCor.js} +1 -1
- package/dist/assets/{list-header-W2Zqfuhf.js → list-header-DXqt77-Y.js} +1 -1
- package/dist/assets/{lite-eb-MtGjP.js → lite-D7_0Kk8P.js} +2 -2
- package/dist/assets/{lock.svg-BAPv5bGI.js → lock.svg-D22_UbmU.js} +1 -1
- package/dist/assets/{log-DfRitFTN.js → log-BtG4l72D.js} +1 -1
- package/dist/assets/{login-method-item-duWmEQ4c.js → login-method-item-CGUaonon.js} +1 -1
- package/dist/assets/{lottie-react.esm-Dg4E2zZC.js → lottie-react.esm-Cj9O6Lld.js} +1 -1
- package/dist/assets/{memory-CVCAiVAD.js → memory-MEOErB2y.js} +1 -1
- package/dist/assets/{metric-DGyzAosW.js → metric-DzrjUE5P.js} +1 -1
- package/dist/assets/{monaco-editor-CIyTCq3w.js → monaco-editor-i4E7Erh-.js} +3 -3
- package/dist/assets/{mouseTarget-yzhGv1sN.js → mouseTarget-DHjy6bBl.js} +1 -1
- package/dist/assets/omit-C1X-CRrb.js +1 -0
- package/dist/assets/{overview-CjC2_6TA.js → overview-BPSzB7yi.js} +1 -1
- package/dist/assets/{permission-Dgeoh_gC.js → permission-D6xGjoP4.js} +1 -1
- package/dist/assets/{preference-DPXvsW07.js → preference-CWfaETuk.js} +9 -9
- package/dist/assets/{provider-icon-H03n2Hjs.js → provider-icon-D-a204Ay.js} +1 -1
- package/dist/assets/{raf-schd.esm-Dgds4zE-.js → raf-schd.esm-vaS856Rv.js} +1 -1
- package/dist/assets/{rotate-session-key-Cg34J7dQ.js → rotate-session-key-Cn3NVWRi.js} +1 -1
- package/dist/assets/runtime-BJVsSRvX.js +1 -0
- package/dist/assets/schema-DeNYz3hJ.js +1 -0
- package/dist/assets/sdk-CyaYnqk4.js +1 -0
- package/dist/assets/{service-DoInkZVF.js → service-COrrqY-3.js} +1 -1
- package/dist/assets/{shorten-label-Ct9vHiPy.js → shorten-label-j-itDv6J.js} +1 -1
- package/dist/assets/{simple-select-DUBD32-K.js → simple-select-DApzKMrW.js} +1 -1
- package/dist/assets/{spaces-Ca-nLDun.js → spaces-BqdEt5Dg.js} +1 -1
- package/dist/assets/{status-DJJQr33v.js → status-CFw68CfZ.js} +2 -2
- package/dist/assets/{status-B8aMCivY.js → status-vwaEURfH.js} +1 -1
- package/dist/assets/{switch-control-DN6AO5e-.js → switch-control-BEw34mlq.js} +1 -1
- package/dist/assets/{table-icons-DPN-ujpU.js → table-icons-V0nzUvpC.js} +1 -1
- package/dist/assets/team-Bp-ehLS6.js +1 -0
- package/dist/assets/toLower-C4OoJYWk.js +1 -0
- package/dist/assets/toUpper-P-IpqDCE.js +1 -0
- package/dist/assets/{traffic-Coyo0eln.js → traffic-BuuDuC5C.js} +1 -1
- package/dist/assets/trim-BrqZEf0Q.js +1 -0
- package/dist/assets/{url-evaluation-DF8LRV6u.js → url-evaluation-BotqjpOW.js} +1 -1
- package/dist/assets/{url-join-BAOkJVTN.js → url-join-BYRfgTzL.js} +1 -1
- package/dist/assets/{use-mobile-D8q1By2e.js → use-mobile-BIorytbM.js} +1 -1
- package/dist/assets/{use-mobile-DjOKbbdW.js → use-mobile-BxCxZMSF.js} +1 -1
- package/dist/assets/{useAsync-CpuSmv4M.js → useAsync-CbHsXkPS.js} +1 -1
- package/dist/assets/{useAsyncRetry-DQ-1kK3Z.js → useAsyncRetry-6ULbruV9.js} +1 -1
- package/dist/assets/{useLocalStorage-B1cIHaab.js → useLocalStorage-CBx2eW_l.js} +1 -1
- package/dist/assets/{useThemeProps-CaL-a5Z3.js → useThemeProps-BWD3Vp6O.js} +1 -1
- package/dist/assets/{util-Dk5V-b84.js → util-BF2dKFyL.js} +1 -1
- package/dist/assets/{wait-container-BxmUT_e8.js → wait-container-Cc0h_2b3.js} +1 -1
- package/dist/assets/{without-wallet-DdcteX-E.js → without-wallet-lUjEmpWw.js} +1 -1
- package/dist/assets/wrap-locale-CF87ubG3.js +1 -0
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/ArrowDropDown-CLtIK8Ds.js +0 -1
- package/dist/assets/api-CtY709C1.js +0 -1
- package/dist/assets/cloneDeep-DcL7wHTZ.js +0 -1
- package/dist/assets/domains-DgOFqkxv.js +0 -28
- package/dist/assets/emotion-cache.browser.esm-C9pXLaus.js +0 -1
- package/dist/assets/engine-CsOVDEBF.js +0 -1
- package/dist/assets/getValidReactChildren-CaUdxsqb.js +0 -1
- package/dist/assets/index-DTHqSol2.js +0 -1
- package/dist/assets/omit-C9i7Uayy.js +0 -1
- package/dist/assets/runtime-3p5sMXNX.js +0 -1
- package/dist/assets/schema-DtiemgGr.js +0 -1
- package/dist/assets/sdk-CChXw_FN.js +0 -1
- package/dist/assets/team-pgmvSiLk.js +0 -1
- package/dist/assets/toUpper-DWIvDS3T.js +0 -1
- package/dist/assets/trim-CGi2LMwA.js +0 -1
- package/dist/assets/wrap-locale-BD1k5sx5.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as s,j as c}from"./index-
|
|
1
|
+
import{c as s,j as c}from"./index-CP8e2zcP.js";const t=s(c.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}));export{t as I};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,j as o}from"./index-
|
|
1
|
+
import{c,j as o}from"./index-CP8e2zcP.js";const t=c(o.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}));export{t as O};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as s,j as c}from"./index-
|
|
1
|
+
import{c as s,j as c}from"./index-CP8e2zcP.js";const t=s(c.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}));export{t as R};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as s,j as t}from"./index-
|
|
1
|
+
import{c as s,j as t}from"./index-CP8e2zcP.js";const o=s(t.jsx("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}));export{o as R};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as s,j as t}from"./index-
|
|
1
|
+
import{c as s,j as t}from"./index-CP8e2zcP.js";const c=s(t.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}));export{c as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as p,aZ as P,aY as $,$ as U,j as l,a3 as m,a4 as z,a5 as T,c as Y,du as K,a9 as k,bV as F,b0 as Z}from"./index-
|
|
1
|
+
import{r as p,aZ as P,aY as $,$ as U,j as l,a3 as m,a4 as z,a5 as T,c as Y,du as K,a9 as k,bV as F,b0 as Z}from"./index-CP8e2zcP.js";const A=p.createContext({}),V=p.createContext({});function O(e){return P("MuiStep",e)}$("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const Q=e=>{const{classes:t,orientation:o,alternativeLabel:n,completed:a}=e;return T({root:["root",o,n&&"alternativeLabel",a&&"completed"]},O,t)},X=m("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})({variants:[{props:{orientation:"horizontal"},style:{paddingLeft:8,paddingRight:8}},{props:{alternativeLabel:!0},style:{flex:1,position:"relative"}}]}),he=p.forwardRef(function(t,o){const n=U({props:t,name:"MuiStep"}),{active:a,children:s,className:d,component:i="div",completed:v,disabled:u,expanded:c=!1,index:r,last:b,...M}=n,{activeStep:y,connector:x,alternativeLabel:g,orientation:I,nonLinear:h}=p.useContext(A);let[S=!1,R=!1,f=!1]=[a,v,u];y===r?S=a!==void 0?a:!0:!h&&y>r?R=v!==void 0?v:!0:!h&&y<r&&(f=u!==void 0?u:!0);const N=p.useMemo(()=>({index:r,last:b,expanded:c,icon:r+1,active:S,completed:R,disabled:f}),[r,b,c,S,R,f]),L={...n,active:S,orientation:I,alternativeLabel:g,completed:R,disabled:f,expanded:c,component:i},j=Q(L),w=l.jsxs(X,{as:i,className:z(j.root,d),ref:o,ownerState:L,...M,children:[x&&g&&r!==0?x:null,s]});return l.jsx(V.Provider,{value:N,children:x&&!g&&r!==0?l.jsxs(p.Fragment,{children:[x,w]}):w})}),ee=Y(l.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"})),te=Y(l.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}));function oe(e){return P("MuiStepIcon",e)}const W=$("MuiStepIcon",["root","active","completed","error","text"]);var H;const ne=e=>{const{classes:t,active:o,completed:n,error:a}=e;return T({root:["root",o&&"active",n&&"completed",a&&"error"],text:["text"]},oe,t)},D=m(K,{name:"MuiStepIcon",slot:"Root"})(k(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${W.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${W.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${W.error}`]:{color:(e.vars||e).palette.error.main}}))),ae=m("text",{name:"MuiStepIcon",slot:"Text"})(k(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily}))),re=p.forwardRef(function(t,o){const n=U({props:t,name:"MuiStepIcon"}),{active:a=!1,className:s,completed:d=!1,error:i=!1,icon:v,...u}=n,c={...n,active:a,completed:d,error:i},r=ne(c);if(typeof v=="number"||typeof v=="string"){const b=z(s,r.root);return i?l.jsx(D,{as:te,className:b,ref:o,ownerState:c,...u}):d?l.jsx(D,{as:ee,className:b,ref:o,ownerState:c,...u}):l.jsxs(D,{className:b,ref:o,ownerState:c,...u,children:[H||(H=l.jsx("circle",{cx:"12",cy:"12",r:"12"})),l.jsx(ae,{className:r.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:c,children:v})]})}return v});function se(e){return P("MuiStepLabel",e)}const C=$("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),le=e=>{const{classes:t,orientation:o,active:n,completed:a,error:s,disabled:d,alternativeLabel:i}=e;return T({root:["root",o,s&&"error",d&&"disabled",i&&"alternativeLabel"],label:["label",n&&"active",a&&"completed",s&&"error",d&&"disabled",i&&"alternativeLabel"],iconContainer:["iconContainer",n&&"active",a&&"completed",s&&"error",d&&"disabled",i&&"alternativeLabel"],labelContainer:["labelContainer",i&&"alternativeLabel"]},se,t)},ie=m("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation]]}})({display:"flex",alignItems:"center",[`&.${C.alternativeLabel}`]:{flexDirection:"column"},[`&.${C.disabled}`]:{cursor:"default"},variants:[{props:{orientation:"vertical"},style:{textAlign:"left",padding:"8px 0"}}]}),ce=m("span",{name:"MuiStepLabel",slot:"Label"})(k(({theme:e})=>({...e.typography.body2,display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${C.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${C.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${C.alternativeLabel}`]:{marginTop:16},[`&.${C.error}`]:{color:(e.vars||e).palette.error.main}}))),pe=m("span",{name:"MuiStepLabel",slot:"IconContainer"})({flexShrink:0,display:"flex",paddingRight:8,[`&.${C.alternativeLabel}`]:{paddingRight:0}}),de=m("span",{name:"MuiStepLabel",slot:"LabelContainer"})(k(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${C.alternativeLabel}`]:{textAlign:"center"}}))),ve=p.forwardRef(function(t,o){const n=U({props:t,name:"MuiStepLabel"}),{children:a,className:s,componentsProps:d={},error:i=!1,icon:v,optional:u,slots:c={},slotProps:r={},StepIconComponent:b,StepIconProps:M,...y}=n,{alternativeLabel:x,orientation:g}=p.useContext(A),{active:I,disabled:h,completed:S,icon:R}=p.useContext(V),f=v||R;let N=b;f&&!N&&(N=re);const L={...n,active:I,alternativeLabel:x,completed:S,disabled:h,error:i,orientation:g},j=le(L),w={slots:c,slotProps:{stepIcon:M,...d,...r}},[_,q]=F("root",{elementType:ie,externalForwardedProps:{...w,...y},ownerState:L,ref:o,className:z(j.root,s)}),[G,E]=F("label",{elementType:ce,externalForwardedProps:w,ownerState:L}),[B,J]=F("stepIcon",{elementType:N,externalForwardedProps:w,ownerState:L});return l.jsxs(_,{...q,children:[f||B?l.jsx(pe,{className:j.iconContainer,ownerState:L,children:l.jsx(B,{completed:S,active:I,error:i,icon:f,...J})}):null,l.jsxs(de,{className:j.labelContainer,ownerState:L,children:[a?l.jsx(G,{...E,className:z(j.label,E?.className),children:a}):null,u]})]})});ve.muiName="StepLabel";function ue(e){return P("MuiStepConnector",e)}$("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const be=e=>{const{classes:t,orientation:o,alternativeLabel:n,active:a,completed:s,disabled:d}=e,i={root:["root",o,n&&"alternativeLabel",a&&"active",s&&"completed",d&&"disabled"],line:["line",`line${Z(o)}`]};return T(i,ue,t)},Se=m("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})({flex:"1 1 auto",variants:[{props:{orientation:"vertical"},style:{marginLeft:12}},{props:{alternativeLabel:!0},style:{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"}}]}),me=m("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.line,t[`line${Z(o.orientation)}`]]}})(k(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600];return{display:"block",borderColor:e.vars?e.vars.palette.StepConnector.border:t,variants:[{props:{orientation:"horizontal"},style:{borderTopStyle:"solid",borderTopWidth:1}},{props:{orientation:"vertical"},style:{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24}}]}})),xe=p.forwardRef(function(t,o){const n=U({props:t,name:"MuiStepConnector"}),{className:a,...s}=n,{alternativeLabel:d,orientation:i="horizontal"}=p.useContext(A),{active:v,disabled:u,completed:c}=p.useContext(V),r={...n,alternativeLabel:d,orientation:i,active:v,completed:c,disabled:u},b=be(r);return l.jsx(Se,{className:z(b.root,a),ref:o,ownerState:r,...s,children:l.jsx(me,{className:b.line,ownerState:r})})});function Le(e){return P("MuiStepper",e)}$("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const fe=e=>{const{orientation:t,nonLinear:o,alternativeLabel:n,classes:a}=e;return T({root:["root",t,o&&"nonLinear",n&&"alternativeLabel"]},Le,a)},Ce=m("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.nonLinear&&t.nonLinear]}})({display:"flex",variants:[{props:{orientation:"horizontal"},style:{flexDirection:"row",alignItems:"center"}},{props:{orientation:"vertical"},style:{flexDirection:"column"}},{props:{alternativeLabel:!0},style:{alignItems:"flex-start"}}]}),ye=l.jsx(xe,{}),Me=p.forwardRef(function(t,o){const n=U({props:t,name:"MuiStepper"}),{activeStep:a=0,alternativeLabel:s=!1,children:d,className:i,component:v="div",connector:u=ye,nonLinear:c=!1,orientation:r="horizontal",...b}=n,M={...n,nonLinear:c,alternativeLabel:s,orientation:r,component:v},y=fe(M),x=p.Children.toArray(d).filter(Boolean),g=x.map((h,S)=>p.cloneElement(h,{index:S,last:S+1===x.length,...h.props})),I=p.useMemo(()=>({activeStep:a,alternativeLabel:s,connector:u,nonLinear:c,orientation:r}),[a,s,u,c,r]);return l.jsx(A.Provider,{value:I,children:l.jsx(Ce,{as:v,ownerState:M,className:z(y.root,i),ref:o,...b,children:g})})});export{Me as S,he as a,ve as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as t,j as e,a4 as B,ad as O,
|
|
1
|
+
import{r as t,j as e,a4 as B,ad as O,av as v,au as C,af as P,O as R,o}from"./index-CP8e2zcP.js";import{S}from"./Search-mc0LftDb.js";import{C as L}from"./Clear-XkW6YpHE.js";const T=t.createContext({}),{Provider:N}=T;function I({children:a}){const[n,s]=t.useState([]),[i,u]=t.useState([]),[l,p]=t.useState(!1),[x,r]=t.useState(!1),[b,c]=t.useState("Filter");return e.jsx(N,{value:{customButtons:n,setCustomButtons:s,customPreButtons:i,setCustomPreButtons:u,filterLabel:b,setFilterLabel:c,loading:l,setLoading:p,disabled:x,setDisabled:r},children:a})}function q(){return t.use(T)}function M({search:a="",options:n,searchText:s="",searchTextUpdate:i,searchClose:u,onSearchOpen:l=P}){const{searchOpen:p,searchPlaceholder:x,searchAlwaysOpen:r}=n,[b,c]=t.useState(!!s||p||!1),[f,w]=t.useState(s),j=t.useRef(null),{loading:g}=q(),{searchDebounceTime:d}=n,h=r||b,y=()=>{c(!0),l(!0)},F=k=>{const{value:m}=k.currentTarget;d?(clearTimeout(j.current),w(m),j.current=setTimeout(()=>{i(m)},d)):i(m)},$=()=>{c(!1),u(),w(""),l(!1)};return e.jsxs(D,{className:B({"search-always-open":r}),children:[h?e.jsx("div",{className:"toolbar-search-icon-placeholder",children:e.jsx(S,{})}):e.jsx(O,{title:a,disableFocusListener:!0,children:e.jsx(v,{"aria-label":a,"data-testid":`${a}-iconButton`,disabled:n.search==="disabled",onClick:y,children:e.jsx(S,{})})}),e.jsxs("div",{className:`toolbar-search-area ${h?"toolbar-btn-show":""}`,children:[h&&!g&&e.jsx(C,{variant:"standard",spacing:2,onChange:F,value:d?f:s,placeholder:x||"",autoFocus:!r}),g&&e.jsx(C,{disabled:!0,variant:"standard",spacing:2,value:d?f:s})]}),!r&&e.jsx("div",{className:`toolbar-search-close ${h?"toolbar-btn-show":""}`,children:e.jsx(v,{onClick:$,"aria-label":"click to close the search box",children:e.jsx(L,{})})})]})}M.propTypes={search:o.string,searchText:o.string,onSearchOpen:o.func,options:o.object.isRequired,searchTextUpdate:o.func.isRequired,searchClose:o.func.isRequired};const D=R("div")`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
.toolbar-search-area {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aY as w,aZ as N,r as n,df as F,$ as P,j as G,a3 as S,a4 as j,b0 as W,a5 as h,a7 as V,a9 as U,b1 as A}from"./index-
|
|
1
|
+
import{aY as w,aZ as N,r as n,df as F,$ as P,j as G,a3 as S,a4 as j,b0 as W,a5 as h,a7 as V,a9 as U,b1 as A}from"./index-CP8e2zcP.js";import{g as H}from"./getValidReactChildren-dJeDeNuf.js";function Y(t){return N("MuiToggleButton",t)}const f=w("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),D=n.createContext({}),E=n.createContext(void 0);function Z(t,o){return o===void 0||t===void 0?!1:Array.isArray(o)?o.includes(t):t===o}const q=t=>{const{classes:o,fullWidth:a,selected:i,disabled:d,size:g,color:B}=t,u={root:["root",i&&"selected",d&&"disabled",a&&"fullWidth",`size${W(g)}`,B]};return h(u,Y,o)},I=S(V,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:a}=t;return[o.root,o[`size${W(a.size)}`]]}})(U(({theme:t})=>({...t.typography.button,borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active,[`&.${f.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${f.selected}`]:{color:(t.vars||t).palette.text.primary,backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity)}}}}},...Object.entries(t.palette).filter(A()).map(([o])=>({props:{color:o},style:{[`&.${f.selected}`]:{color:(t.vars||t).palette[o].main,backgroundColor:t.alpha((t.vars||t).palette[o].main,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[o].main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette[o].main,(t.vars||t).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:t.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:t.typography.pxToRem(15)}}]}))),tt=n.forwardRef(function(o,a){const{value:i,...d}=n.useContext(D),g=n.useContext(E),B=F({...d,selected:Z(o.value,i)},o),u=P({props:B,name:"MuiToggleButton"}),{children:R,className:$,color:p="standard",disabled:z=!1,disableFocusRipple:v=!1,fullWidth:s=!1,onChange:C,onClick:x,selected:c,size:k="medium",value:b,...L}=u,y={...u,color:p,disabled:z,disableFocusRipple:v,fullWidth:s,size:k},O=q(y),M=r=>{x&&(x(r,b),r.defaultPrevented)||C&&C(r,b)},l=g||"";return G.jsx(I,{className:j(d.className,O.root,$,l),disabled:z,focusRipple:!v,ref:a,onClick:M,onChange:C,value:b,ownerState:y,"aria-pressed":c,...L,children:R})});function J(t){return N("MuiToggleButtonGroup",t)}const e=w("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),K=t=>{const{classes:o,orientation:a,fullWidth:i,disabled:d}=t,g={root:["root",a,i&&"fullWidth"],grouped:["grouped",`grouped${W(a)}`,d&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return h(g,J,o)},Q=S("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:a}=t;return[{[`& .${e.grouped}`]:o.grouped},{[`& .${e.grouped}`]:o[`grouped${W(a.orientation)}`]},{[`& .${e.firstButton}`]:o.firstButton},{[`& .${e.lastButton}`]:o.lastButton},{[`& .${e.middleButton}`]:o.middleButton},o.root,a.orientation==="vertical"&&o.vertical,a.fullWidth&&o.fullWidth]}})(U(({theme:t})=>({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${e.grouped}`]:{[`&.${e.selected} + .${e.grouped}.${e.selected}`]:{borderTop:0,marginTop:0}},[`& .${e.firstButton},& .${e.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${e.lastButton},& .${e.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${e.lastButton}.${f.disabled},& .${e.middleButton}.${f.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${e.grouped}`]:{[`&.${e.selected} + .${e.grouped}.${e.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${e.firstButton},& .${e.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${e.lastButton},& .${e.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${e.lastButton}.${f.disabled},& .${e.middleButton}.${f.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),ot=n.forwardRef(function(o,a){const i=P({props:o,name:"MuiToggleButtonGroup"}),{children:d,className:g,color:B="standard",disabled:u=!1,exclusive:R=!1,fullWidth:$=!1,onChange:p,orientation:z="horizontal",size:v="medium",value:s,...C}=i,x={...i,disabled:u,fullWidth:$,orientation:z,size:v},c=K(x),k=n.useCallback((l,r)=>{if(!p)return;const T=s&&s.indexOf(r);let m;s&&T>=0?(m=s.slice(),m.splice(T,1)):m=s?s.concat(r):[r],p(l,m)},[p,s]),b=n.useCallback((l,r)=>{p&&p(l,s===r?null:r)},[p,s]),L=n.useMemo(()=>({className:c.grouped,onChange:R?b:k,value:s,size:v,fullWidth:$,color:B,disabled:u}),[c.grouped,R,b,k,s,v,$,B,u]),y=H(d),O=y.length,M=l=>{const r=l===0,T=l===O-1;return r&&T?"":r?c.firstButton:T?c.lastButton:c.middleButton};return G.jsx(Q,{role:"group",className:j(c.root,g),ref:a,ownerState:x,...C,children:G.jsx(D.Provider,{value:L,children:y.map((l,r)=>G.jsx(E.Provider,{value:M(r),children:l},r))})})});export{ot as T,tt as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as o,j as s}from"./index-
|
|
1
|
+
import{c as o,j as s}from"./index-CP8e2zcP.js";const r=o(s.jsx("path",{d:"M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15z"}));export{r as U};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{aP as l,r as f,i as X,b_ as N,b$ as P,k as v,c0 as Z,c1 as ee,c2 as c,c3 as V,m,c as re,j as te}from"./index-CP8e2zcP.js";var ne=function(a){return a===document||a===document.documentElement||a===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):a.scrollTop},k=function(a){return a.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},ae=function(a){return a.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},le=function(a,n){n===void 0&&(n={});var g=n.target,A=n.isNoMore,p=n.threshold,F=p===void 0?100:p,w=n.direction,q=w===void 0?"bottom":w,L=n.reloadDeps,O=L===void 0?[]:L,Y=n.manual,h=n.onBefore,_=n.onSuccess,D=n.onError,M=n.onFinally,j=l(f.useState(),2),i=j[0],y=j[1],B=l(f.useState(!1),2),E=B[0],s=B[1],b=q==="top",S=f.useRef(void 0),R=f.useRef(0),T=f.useMemo(function(){return A?A(i):!1},[i]),d=X(function(e){return N(void 0,void 0,void 0,function(){var r;return P(this,function(t){switch(t.label){case 0:return[4,a(e)];case 1:return r=t.sent(),[2,{currentData:r,lastData:e}]}})})},{manual:Y,onFinally:function(e,r,t){s(!1),M?.(r?.currentData,t)},onBefore:function(){return h?.()},onSuccess:function(e){var r,t,u;e.lastData?y(m(m({},e.currentData),{list:b?c(c([],l(e.currentData.list),!1),l((t=e.lastData.list)!==null&&t!==void 0?t:[]),!1):c(c([],l((u=e.lastData.list)!==null&&u!==void 0?u:[]),!1),l(e.currentData.list),!1)})):y(m(m({},e.currentData),{list:c([],l((r=e.currentData.list)!==null&&r!==void 0?r:[]),!1)})),setTimeout(function(){if(b){var o=V(g);if(o=o===document?document.documentElement:o,o){var W=k(o);o.scrollTo(0,W-R.current)}}else C()}),_?.(e.currentData)},onError:function(e){return D?.(e)}}),z=d.loading,$=d.error,H=d.run,G=d.runAsync,J=d.cancel,x=v(function(){T||(s(!0),H(i))}),I=function(e){return N(void 0,void 0,void 0,function(){var r;return P(this,function(t){switch(t.label){case 0:return[4,G(e)];case 1:return r=t.sent(),[2,r.currentData]}})})},K=v(function(){return T?Promise.reject():(s(!0),I(i))}),Q=function(){return s(!1),H()},U=function(){return s(!1),I()},C=function(){var e=V(g);if(e){var r=e===document?document.documentElement:e,t=ne(r),u=k(r),o=ae(r);b?(S.current!==void 0&&S.current>t&&t<=F&&x(),S.current=t,R.current=u-t):u-t<=o+F&&x()}};return Z("scroll",function(){z||E||C()},{target:g}),ee(function(){H()},c([],l(O),!1)),{data:i,loading:!E&&z,error:$,loadingMore:E,noMore:T,loadMore:x,loadMoreAsync:K,reload:v(Q),reloadAsync:v(U),mutate:y,cancel:J}};const ue=re(te.jsx("path",{d:"m23 12-2.44-2.79.34-3.69-3.61-.82-1.89-3.2L12 2.96 8.6 1.5 6.71 4.69 3.1 5.5l.34 3.7L1 12l2.44 2.79-.34 3.7 3.61.82L8.6 22.5l3.4-1.47 3.4 1.46 1.89-3.19 3.61-.82-.34-3.69zm-12.91 4.72-3.8-3.81 1.48-1.48 2.32 2.33 5.85-5.87 1.48 1.48z"}));export{ue as V,le as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,j as s}from"./index-
|
|
1
|
+
import{c,j as s}from"./index-CP8e2zcP.js";const o=c(s.jsx("path",{d:"M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2M1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2"})),a=c(s.jsx("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm-2 16-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9z"}));export{o as S,a as V};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as s,j as t}from"./index-
|
|
1
|
+
import{c as s,j as t}from"./index-CP8e2zcP.js";const o=s(t.jsx("path",{d:"M3 14h4v-4H3zm0 5h4v-4H3zM3 9h4V5H3zm5 5h13v-4H8zm0 5h13v-4H8zM8 5v4h13V5z"}));export{o as V};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as s,j as c}from"./index-
|
|
1
|
+
import{c as s,j as c}from"./index-CP8e2zcP.js";const i=s(c.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}));export{i as V};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as q,da as O,cz as T,c3 as
|
|
1
|
+
import{r as q,da as O,cz as T,c3 as W,db as K,aQ as z,dc as A,cy as B,dd as I,de as N,aX as P}from"./index-CP8e2zcP.js";import{d as Q}from"./depsEqual-FU6HOfMn.js";var S=function(r,a,n){var e=q.useRef(void 0),t=q.useRef(0);Q(a,e.current)||(t.current+=1),e.current=a,O(r,[t.current],n)},V=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator?.platform:""),D={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:V?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},C={ctrl:function(r){return r.ctrlKey},shift:function(r){return r.shiftKey},alt:function(r){return r.altKey},meta:function(r){return r.type==="keyup"?D.meta.includes(r.keyCode):r.metaKey}};function G(r){return A(r)||B(r)}function X(r){var a=Object.keys(C).reduce(function(n,e){return C[e](r)?n+1:n},0);return[16,17,18,91,92].includes(r.keyCode)?a:a+1}function j(r,a,n){var e,t;if(!r.key)return!1;if(B(a))return r.keyCode===a?a:!1;var u=a.split("."),o=0;try{for(var c=K(u),d=c.next();!d.done;d=c.next()){var y=d.value,m=C[y],g=D[y.toLowerCase()];(m&&m(r)||g&&g===r.keyCode)&&o++}}catch(b){e={error:b}}finally{try{d&&!d.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}return n?o===u.length&&X(r)===u.length?a:!1:o===u.length?a:!1}function J(r,a){return z(r)?r:G(r)?function(n){return j(n,r,a)}:Array.isArray(r)?function(n){return r.find(function(e){return j(n,e,a)})}:function(){return!!r}}var U=["keydown"];function _(r,a,n){var e=n||{},t=e.events,u=t===void 0?U:t,o=e.target,c=e.exactMatch,d=c===void 0?!1:c,y=e.useCapture,m=y===void 0?!1:y,g=T(a),b=T(r);S(function(){var k,L,x,i=W(o,window);if(i){var R=function(l){var v,s=l,p=J(b.current,d),f=p(s),E=G(f)?f:s.key;if(f)return(v=g.current)===null||v===void 0?void 0:v.call(g,s,E)};try{for(var w=K(u),h=w.next();!h.done;h=w.next()){var H=h.value;(x=i?.addEventListener)===null||x===void 0||x.call(i,H,R,m)}}catch(l){k={error:l}}finally{try{h&&!h.done&&(L=w.return)&&L.call(w)}finally{if(k)throw k.error}}return function(){var l,v,s;try{for(var p=K(u),f=p.next();!f.done;f=p.next()){var E=f.value;(s=i?.removeEventListener)===null||s===void 0||s.call(i,E,R,m)}}catch(M){l={error:M}}finally{try{f&&!f.done&&(v=p.return)&&v.call(p)}finally{if(l)throw l.error}}}}},[u],o)}function Y(r,a,n,e){for(var t=-1,u=r==null?0:r.length;++t<u;){var o=r[t];a(e,o,n(o),r)}return e}function Z(r,a,n,e){return I(r,function(t,u,o){a(e,t,n(t),o)}),e}function rr(r,a){return function(n,e){var t=P(n)?Y:Z,u=a?a():{};return t(n,r,N(e),u)}}export{rr as c,_ as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as L,j as n,eY as we,eZ as ye,e_ as be,e$ as ke,f0 as J,f1 as Re,dq as Ee,f2 as Be,f3 as Me,f4 as Ae,r as p,o as S,f5 as ze,X as Ie,x as Pe,aR as Te,p as ce,aT as j,al as V,f6 as N,au as Ue,aw as $e,as as Oe,bK as He,ax as Ve,M as Ne,ay as _e,C as Q,az as qe,ar as ee,bz as We,f7 as _,ao as te,H as U,q as Ke,cX as Fe,f8 as Xe,bB as Ge,J as $,ch as ne,W as oe,dC as Ye,dD as Ze}from"./index-DEflHlyo.js";import{u as se}from"./useLocalStorage-B1cIHaab.js";import{I as Je}from"./MoreVert-YQMFdAci.js";import{D as Qe}from"./DeleteOutline-BknUUIOQ.js";import{g as q}from"./get-safe-url-BmWKThk5.js";import{B as et}from"./ButtonGroup-BmKH0AR_.js";import{R as tt,b as re,u as nt}from"./url-evaluation-DF8LRV6u.js";import{w as ot}from"./permission-Dgeoh_gC.js";const st=L(n.jsx("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"})),rt=L(n.jsx("path",{d:"M9 13.75c-2.34 0-7 1.17-7 3.5V19h14v-1.75c0-2.33-4.66-3.5-7-3.5M4.34 17c.84-.58 2.87-1.25 4.66-1.25s3.82.67 4.66 1.25zM9 12c1.93 0 3.5-1.57 3.5-3.5S10.93 5 9 5 5.5 6.57 5.5 8.5 7.07 12 9 12m0-5c.83 0 1.5.67 1.5 1.5S9.83 10 9 10s-1.5-.67-1.5-1.5S8.17 7 9 7m7.04 6.81c1.16.84 1.96 1.96 1.96 3.44V19h4v-1.75c0-2.02-3.5-3.17-5.96-3.44M15 12c1.93 0 3.5-1.57 3.5-3.5S16.93 5 15 5c-.54 0-1.04.13-1.5.35.63.89 1 1.98 1 3.15s-.37 2.26-1 3.15c.46.22.96.35 1.5.35"})),at=L(n.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20m6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9"})),it=L(n.jsx("path",{d:"M10 8.64 15.27 12 10 15.36zM8 5v14l11-7z"})),ct=L(n.jsx("path",{d:"M19.5 3.5 18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2v20l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2zM19 19.09H5V4.91h14zM6 15h12v2H6zm0-4h12v2H6zm0-4h12v2H6z"})),lt=L(n.jsx("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"})),dt=L(n.jsx("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1q-.09-.03-.18-.03c-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1q.09.03.18.03c.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64zm-1.98-1.71c.04.31.05.52.05.73s-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"})),mt=L(n.jsx("path",{d:"M16 8v8H8V8zm2-2H6v12h12z"})),ut=L(n.jsx("path",{d:"M3 4c0-.55.45-1 1-1h2V1H4C2.34 1 1 2.34 1 4v2h2zm0 16v-2H1v2c0 1.66 1.34 3 3 3h2v-2H4c-.55 0-1-.45-1-1M20 1h-2v2h2c.55 0 1 .45 1 1v2h2V4c0-1.66-1.34-3-3-3m1 19c0 .55-.45 1-1 1h-2v2h2c1.66 0 3-1.34 3-3v-2h-2zm-2-5.13V9.13c0-.72-.38-1.38-1-1.73l-5-2.88c-.31-.18-.65-.27-1-.27s-.69.09-1 .27L6 7.39c-.62.36-1 1.02-1 1.74v5.74c0 .72.38 1.38 1 1.73l5 2.88c.31.18.65.27 1 .27s.69-.09 1-.27l5-2.88c.62-.35 1-1.01 1-1.73m-8 2.3-4-2.3v-4.63l4 2.33zm1-6.33L8.04 8.53 12 6.25l3.96 2.28zm5 4.03-4 2.3v-4.6l4-2.33z"}));var pt=200;function ht(e,s,l,c){var r=-1,m=ye,v=!0,x=e.length,u=[],i=s.length;if(!x)return u;c?(m=be,v=!1):s.length>=pt&&(m=ke,v=!1,s=new we(s));e:for(;++r<x;){var f=e[r],h=f;if(f=c||f!==0?f:0,v&&h===h){for(var b=i;b--;)if(s[b]===h)continue e;u.push(f)}else m(s,h,c)||u.push(f)}return u}function ft(e,s,l){var c=e.length;if(c<2)return c?J(e[0]):[];for(var r=-1,m=Array(c);++r<c;)for(var v=e[r],x=-1;++x<c;)x!=r&&(m[r]=ht(m[r]||v,e[x],s,l));return J(Re(m),s,l)}var gt=Ee(function(e){var s=Be(e);return s=typeof s=="function"?s:void 0,ft(Me(e,Ae),void 0,s)});const le=p.createContext({});function vt({children:e,type:s="blocklets"}){const[l,c]=p.useState([]),r=p.useRef([]),m=u=>{if(!r.current.includes(u)){const i=[...r.current,u];c(i),r.current=i}},v=u=>{if(r.current.includes(u)){const i=r.current.filter(f=>f!==u);c(i),r.current=i}},x=u=>{const i=l.filter(h=>u.find(b=>b===h));gt(i,l).forEach(h=>v(h))};return n.jsx(le.Provider,{value:{type:s,deletingBlocklets:l,addDeletingDid:m,removeDeletingDid:v,matchDeletingDid:x},children:e})}vt.propTypes={type:S.string,children:S.node.isRequired};function Mt(){return p.useContext(le)}const de={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m8 9l3 3l-3 3m5 0h3"/><path d="M3 6a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/></g>'},xt={display:"inline-flex",width:"26px",height:"26px",paddingRight:"3px"};function Dt(e){return n.jsx("span",{style:xt,children:n.jsx(Ie,{icon:de,width:"100%",height:"100%",...e})})}const k={Start:it,Stop:mt,Restart:lt,Reload:st,Remove:Qe,Config:dt,Log:ct,Group:rt,Cancel:at,Dashboard:ze,Overview:ut,LogIcon:Dt,TerminalIcon:de},ae=(e,s)=>{if(!e)return"";if(!s)return e;const l=new URL(e),c=new URLSearchParams(l.searchParams),r=new URL(Pe(l.origin,s));return r.search=c.toString(),r.toString()},St="internal",Ct="external";function me({blocklet:e,onStart:s,onComplete:l,variant:c="menu",source:r="blocklet-list",hasPermission:m=!1,getComponentUrl:v=null,useBlockletUrlEvaluation:x=()=>({loading:!1,recommendedUrl:window?.location?.href}),...u}){const i=Te(),[f,h]=p.useState(null),[b,W]=p.useState(null),[E,B]=p.useState(!1),[d,O]=p.useState(null),{t:o}=p.useContext(ce),[ue]=se("skip-blocklet-setup",!1),{loading:pe,recommendedUrl:H}=x(e),[he]=se("blocklet-type-filter",St),K=j.isInProgress(e.status),[F,X]=p.useState(!1);p.useEffect(()=>{if(!e?.controller)return;X(e?.controller?.status?.value===V.BLOCKLET_CONTROLLER_STATUS.suspended),(async()=>{try{const a=await i.api.getLauncherSession({input:{launcherSessionId:e?.controller?.launcherSessionId,launcherUrl:e?.controller?.launcherUrl}});if(a?.error){console.error("get launcher session failed",a.error);return}X([_.overdue,_.canceled,_.terminated].includes(a?.launcherSession?.status))}catch(a){console.error("call getLauncherSession error",a)}})()},[]);const{inService:A}=i,fe=r==="blocklet-detail",M=(t,a,D=!1)=>async()=>{const w=async P=>{s({action:t,blocklet:e}),B(!0),W(t);let T=!1;try{if(t==="remove")await a(P);else if(t==="start"){if(!j.hasRunnableComponent(e)){U.error(o("blocklet.noComponent"));return}if(!A&&!ue&&!e.settings?.initialized&&e.mode!==V.BLOCKLET_MODES.DEVELOPMENT){if(!H||!te(H)){U.error(o("blocklet.gotoVisitError"));return}const g=Fe(i.info),Z=new URL(H);Z.searchParams.set("serverUrl",g),window.open(q(Z.href,{allowDomains:null})),l({action:t,blocklet:e});return}const C=e.children.filter(g=>!j.isInProgress(g.status)&&g.status!=="running"&&!j.isInProgress(g.greenStatus)&&g.greenStatus!=="running").map(g=>g.meta.did),R={did:e.meta.did,componentDids:C};await a({input:R})}else if(["stop","restart","reload"].includes(t)){const C=e.children.filter(g=>j.isBlockletRunning(g)).map(g=>g.meta.did),R={did:e.meta.did,componentDids:C};await a({input:R})}else{const C={did:e.meta.did};await a({input:C})}t==="remove"?T=!0:await Xe(1e3),t==="reload"&&U.success(o("blocklet.reloadSuccess")),O(null),l({action:t,blocklet:e})}catch(C){const R=`Blocklet ${t} failed: ${Ge(C)}`;throw l({action:t,blocklet:e,error:new Error(R)}),new Error(R)}finally{T||B(!1)}},y=()=>{B(!1),O(null)},I=j.getDisplayName(e,!0),je=e.mode===V.BLOCKLET_MODES.DEVELOPMENT?{description:()=>n.jsx($,{component:"div",children:n.jsx($,{gutterBottom:!0,children:o("blocklet.action.removeApplicationDescription")})}),params:{removeType:"complete"}}:{description:(P,T)=>n.jsxs($,{component:"div",children:[n.jsx($,{gutterBottom:!0,children:o("blocklet.action.removeApplicationDescription")}),n.jsxs(tt,{name:"removeType",value:P.removeType,onChange:C=>T({...P,removeType:C.target.value}),children:[n.jsx(ne,{value:"backup",control:n.jsx(re,{}),label:o("blocklet.action.removeApplicationAfterBackup")}),n.jsx(ne,{value:"complete",control:n.jsx(re,{}),label:o("blocklet.action.removeApplicationComplete")})]})]}),params:{removeType:"backup"}},Le={stop:{title:`${o("common.stop")} ${I}`,description:o("blocklet.action.stopDescription"),confirm:o("blocklet.action.confirmStop"),cancel:o("common.cancel"),onConfirm:w,onCancel:y},restart:{title:`${o("common.restart")} ${I}`,description:o("blocklet.action.restartDescription"),confirm:o("blocklet.action.confirmRestart"),cancel:o("common.cancel"),onConfirm:w,onCancel:y},remove:{title:`${o("common.remove")} ${I}`,confirm:o("blocklet.action.confirmRemove"),cancel:o("common.cancel"),onConfirm:w,onCancel:y,...je},cancelDownload:{title:`${o("common.cancel")}`,description:o("blocklet.action.cancelDownloadDescription",{name:I}),confirm:o("common.confirm"),cancel:o("common.cancel"),onConfirm:w,onCancel:y}};D?O(Le[t]):await w()},ge=!!f,ve=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}h(t.currentTarget)},xe=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}h(null)},G=async(t,a)=>{try{a.stopPropagation(),a.preventDefault()}catch{}if(typeof t.handler=="function")try{B(!0),W(t.action),await t.handler()}catch(D){console.error(`Blocklet ${t.name} failed: `,D)}finally{B(!1),h(null)}else h(null)},De=!A&&j.isDeletableBlocklet(e)?{action:"remove",icon:k.Remove,name:o("common.remove"),handler:M("remove",async({removeType:t})=>{t==="backup"&&await i.api.backupBlocklet({input:{appDid:e.appDid,to:"disk"}}),await i.api.deleteBlocklet({input:{did:e.meta.did,keepData:!1}})},!0),disabled:K}:null,Se={action:"remove",icon:({sx:t,...a})=>n.jsx(k.Cancel,{sx:{...t,paddingRight:"2px",zoom:.95},...a}),name:o("common.cancel"),handler:M("cancelDownload",i.api.cancelDownloadBlocklet,!0)},Ce=j.getAppMissingConfigs(e),Y=(t="dashboard")=>{const a=`/${e.mountPoint||"/"}`.replace(/\/+/g,"/"),D=v?.({mountPoint:a,blocklet:e});if(!D||!te(D)){U.error(o("blocklet.gotoVisitError"));return}const w=e?.site?.domainAliases;t==="logs"?window.open(q(ae(D,`${oe}/admin/developers/logs`),{allowDomains:w?.map(y=>y.value)})):window.open(q(ae(D,`${oe}/admin`),{allowDomains:w?.map(y=>y.value)}))};let z=[{action:"start",icon:k.Start,inExternal:!0,name:o("common.start"),handler:M("start",i.api.startBlocklet),disabled:F||e.children.every(t=>j.isBlockletRunning(t))||N(e.status)||pe||K},{action:"stop",icon:k.Stop,inExternal:!0,name:o("common.stop"),handler:M("stop",i.api.stopBlocklet,!0),disabled:!["running","starting","error"].includes(e.status)},{action:"restart",inExternal:!0,icon:k.Restart,name:o("common.restart"),handler:M("restart",i.api.restartBlocklet,!0),disabled:F||e.status!=="running"},N(e.status)?Se:De,{separator:!0},A?null:{action:"dashboard",icon:({style:t,...a})=>n.jsx(k.Dashboard,{...a,style:{...t,width:"26px",height:"26px",paddingRight:"3px"}}),name:o("sidebar.dashboard"),handler:Y},!A&&!fe?{action:"logs",icon:k.LogIcon,name:o("common.logs"),handler:()=>Y("logs")}:null].filter(Boolean);return he===Ct&&(z=z.filter(t=>t.inExternal)),c==="menu"?n.jsxs(ie,{"data-cy":"blocklet-actions",children:[n.jsx(Ue,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions","actions-blocklet-did":e.meta.did,onClick:ve,size:"small",disabled:!m||!N(e.status)&&E,children:n.jsx(Je,{})}),n.jsxs($e,{id:"actions-menu",anchorEl:f,keepMounted:!0,open:ge,onClose:xe,PaperProps:{},children:[Ce.length>0&&n.jsxs(Oe,{style:{maxWidth:"400px"},severity:"error",children:[o("blocklet.config.missingRequired"),n.jsx("br",{}),n.jsx(He,{to:`/blocklets/${e.meta.did}/components`,children:o("blocklet.config.gotoFix")})]}),z.map((t,a)=>t.separator?n.jsx(Ve,{},`separator-${a}`):n.jsxs(Ne,{dense:!0,onClick:D=>G(t,D),disabled:E||t.disabled,"data-cy":`${t.action}-blocklet`,children:[n.jsx(_e,{style:{minWidth:24},children:b===t.action&&E?n.jsx(Q,{size:16,sx:{marginRight:1}}):n.jsx(t.icon,{fontSize:"small"})}),n.jsx(qe,{primary:t.name})]},t.name))]}),d&&n.jsx(ee,{title:d.title,description:d.description,confirm:d.confirm,cancel:d.cancel,params:d.params,onConfirm:d.onConfirm,onCancel:d.onCancel})]}):n.jsxs(ie,{"data-cy":"blocklet-actions",...u,children:[n.jsx(et,{children:z.filter(t=>!t.separator&&!t.onlyInMenu).map(t=>n.jsxs(We,{title:t.name,"data-cy":`${t.action}-blocklet`,onClick:()=>G(t),disabled:!!t.disabled||E,children:[b===t.action&&E?n.jsx(Q,{size:16,sx:{marginRight:1}}):n.jsx(t.icon,{}),n.jsx("span",{className:"blocklet-action-text",children:t.name})]},t.name))}),d&&n.jsx(ee,{title:d.title,description:d.description,confirm:d.confirm,cancel:d.cancel,params:d.params,onConfirm:d.onConfirm,onCancel:d.onCancel})]})}me.propTypes={getComponentUrl:S.func,blocklet:S.object.isRequired,onStart:S.func.isRequired,onComplete:S.func.isRequired,variant:S.oneOf(["menu","group"]),source:S.oneOf(["blocklet-list","blocklet-detail"]),hasPermission:S.bool,useBlockletUrlEvaluation:S.func};const ie=Ke.div`
|
|
1
|
+
import{c as L,j as n,eY as we,eZ as ye,e_ as be,e$ as ke,f0 as J,f1 as Ee,dq as Re,f2 as Be,f3 as Me,f4 as Ae,r as p,o as S,f5 as ze,X as Ie,x as Pe,aS as Te,p as ce,aU as j,am as V,f6 as N,av as Ue,ax as $e,at as Oe,bK as He,ay as Ve,M as Ne,az as _e,C as Q,aA as qe,as as ee,bz as We,f7 as _,ap as te,H as U,q as Ke,cX as Fe,f8 as Xe,bB as Ge,J as $,ch as ne,W as oe,dC as Ye,dD as Ze}from"./index-CP8e2zcP.js";import{u as se}from"./useLocalStorage-CBx2eW_l.js";import{I as Je}from"./MoreVert-Cw1fjU9L.js";import{D as Qe}from"./DeleteOutline-CocEa6gq.js";import{g as q}from"./get-safe-url-n4nPkbEQ.js";import{B as et}from"./ButtonGroup-CXwzM552.js";import{R as tt,b as re,u as nt}from"./url-evaluation-BotqjpOW.js";import{w as ot}from"./permission-D6xGjoP4.js";const st=L(n.jsx("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"})),rt=L(n.jsx("path",{d:"M9 13.75c-2.34 0-7 1.17-7 3.5V19h14v-1.75c0-2.33-4.66-3.5-7-3.5M4.34 17c.84-.58 2.87-1.25 4.66-1.25s3.82.67 4.66 1.25zM9 12c1.93 0 3.5-1.57 3.5-3.5S10.93 5 9 5 5.5 6.57 5.5 8.5 7.07 12 9 12m0-5c.83 0 1.5.67 1.5 1.5S9.83 10 9 10s-1.5-.67-1.5-1.5S8.17 7 9 7m7.04 6.81c1.16.84 1.96 1.96 1.96 3.44V19h4v-1.75c0-2.02-3.5-3.17-5.96-3.44M15 12c1.93 0 3.5-1.57 3.5-3.5S16.93 5 15 5c-.54 0-1.04.13-1.5.35.63.89 1 1.98 1 3.15s-.37 2.26-1 3.15c.46.22.96.35 1.5.35"})),at=L(n.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20m6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9"})),it=L(n.jsx("path",{d:"M10 8.64 15.27 12 10 15.36zM8 5v14l11-7z"})),ct=L(n.jsx("path",{d:"M19.5 3.5 18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2v20l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2zM19 19.09H5V4.91h14zM6 15h12v2H6zm0-4h12v2H6zm0-4h12v2H6z"})),lt=L(n.jsx("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"})),dt=L(n.jsx("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1q-.09-.03-.18-.03c-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1q.09.03.18.03c.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64zm-1.98-1.71c.04.31.05.52.05.73s-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"})),mt=L(n.jsx("path",{d:"M16 8v8H8V8zm2-2H6v12h12z"})),ut=L(n.jsx("path",{d:"M3 4c0-.55.45-1 1-1h2V1H4C2.34 1 1 2.34 1 4v2h2zm0 16v-2H1v2c0 1.66 1.34 3 3 3h2v-2H4c-.55 0-1-.45-1-1M20 1h-2v2h2c.55 0 1 .45 1 1v2h2V4c0-1.66-1.34-3-3-3m1 19c0 .55-.45 1-1 1h-2v2h2c1.66 0 3-1.34 3-3v-2h-2zm-2-5.13V9.13c0-.72-.38-1.38-1-1.73l-5-2.88c-.31-.18-.65-.27-1-.27s-.69.09-1 .27L6 7.39c-.62.36-1 1.02-1 1.74v5.74c0 .72.38 1.38 1 1.73l5 2.88c.31.18.65.27 1 .27s.69-.09 1-.27l5-2.88c.62-.35 1-1.01 1-1.73m-8 2.3-4-2.3v-4.63l4 2.33zm1-6.33L8.04 8.53 12 6.25l3.96 2.28zm5 4.03-4 2.3v-4.6l4-2.33z"}));var pt=200;function ht(e,s,l,c){var r=-1,m=ye,v=!0,x=e.length,u=[],i=s.length;if(!x)return u;c?(m=be,v=!1):s.length>=pt&&(m=ke,v=!1,s=new we(s));e:for(;++r<x;){var f=e[r],h=f;if(f=c||f!==0?f:0,v&&h===h){for(var b=i;b--;)if(s[b]===h)continue e;u.push(f)}else m(s,h,c)||u.push(f)}return u}function ft(e,s,l){var c=e.length;if(c<2)return c?J(e[0]):[];for(var r=-1,m=Array(c);++r<c;)for(var v=e[r],x=-1;++x<c;)x!=r&&(m[r]=ht(m[r]||v,e[x],s,l));return J(Ee(m),s,l)}var gt=Re(function(e){var s=Be(e);return s=typeof s=="function"?s:void 0,ft(Me(e,Ae),void 0,s)});const le=p.createContext({});function vt({children:e,type:s="blocklets"}){const[l,c]=p.useState([]),r=p.useRef([]),m=u=>{if(!r.current.includes(u)){const i=[...r.current,u];c(i),r.current=i}},v=u=>{if(r.current.includes(u)){const i=r.current.filter(f=>f!==u);c(i),r.current=i}},x=u=>{const i=l.filter(h=>u.find(b=>b===h));gt(i,l).forEach(h=>v(h))};return n.jsx(le.Provider,{value:{type:s,deletingBlocklets:l,addDeletingDid:m,removeDeletingDid:v,matchDeletingDid:x},children:e})}vt.propTypes={type:S.string,children:S.node.isRequired};function Mt(){return p.useContext(le)}const de={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m8 9l3 3l-3 3m5 0h3"/><path d="M3 6a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/></g>'},xt={display:"inline-flex",width:"26px",height:"26px",paddingRight:"3px"};function Dt(e){return n.jsx("span",{style:xt,children:n.jsx(Ie,{icon:de,width:"100%",height:"100%",...e})})}const k={Start:it,Stop:mt,Restart:lt,Reload:st,Remove:Qe,Config:dt,Log:ct,Group:rt,Cancel:at,Dashboard:ze,Overview:ut,LogIcon:Dt,TerminalIcon:de},ae=(e,s)=>{if(!e)return"";if(!s)return e;const l=new URL(e),c=new URLSearchParams(l.searchParams),r=new URL(Pe(l.origin,s));return r.search=c.toString(),r.toString()},St="internal",Ct="external";function me({blocklet:e,onStart:s,onComplete:l,variant:c="menu",source:r="blocklet-list",hasPermission:m=!1,getComponentUrl:v=null,useBlockletUrlEvaluation:x=()=>({loading:!1,recommendedUrl:window?.location?.href}),...u}){const i=Te(),[f,h]=p.useState(null),[b,W]=p.useState(null),[R,B]=p.useState(!1),[d,O]=p.useState(null),{t:o}=p.useContext(ce),[ue]=se("skip-blocklet-setup",!1),{loading:pe,recommendedUrl:H}=x(e),[he]=se("blocklet-type-filter",St),K=j.isInProgress(e.status),[F,X]=p.useState(!1);p.useEffect(()=>{if(!e?.controller)return;X(e?.controller?.status?.value===V.BLOCKLET_CONTROLLER_STATUS.suspended),(async()=>{try{const a=await i.api.getLauncherSession({input:{launcherSessionId:e?.controller?.launcherSessionId,launcherUrl:e?.controller?.launcherUrl}});if(a?.error){console.error("get launcher session failed",a.error);return}X([_.overdue,_.canceled,_.terminated].includes(a?.launcherSession?.status))}catch(a){console.error("call getLauncherSession error",a)}})()},[]);const{inService:A}=i,fe=r==="blocklet-detail",M=(t,a,D=!1)=>async()=>{const w=async P=>{s({action:t,blocklet:e}),B(!0),W(t);let T=!1;try{if(t==="remove")await a(P);else if(t==="start"){if(!j.hasRunnableComponent(e)){U.error(o("blocklet.noComponent"));return}if(!A&&!ue&&!e.settings?.initialized&&e.mode!==V.BLOCKLET_MODES.DEVELOPMENT){if(!H||!te(H)){U.error(o("blocklet.gotoVisitError"));return}const g=Fe(i.info),Z=new URL(H);Z.searchParams.set("serverUrl",g),window.open(q(Z.href,{allowDomains:null})),l({action:t,blocklet:e});return}const C=e.children.filter(g=>!j.isInProgress(g.status)&&g.status!=="running"&&!j.isInProgress(g.greenStatus)&&g.greenStatus!=="running").map(g=>g.meta.did),E={did:e.meta.did,componentDids:C};await a({input:E})}else if(["stop","restart","reload"].includes(t)){const C=e.children.filter(g=>j.isBlockletRunning(g)).map(g=>g.meta.did),E={did:e.meta.did,componentDids:C};await a({input:E})}else{const C={did:e.meta.did};await a({input:C})}t==="remove"?T=!0:await Xe(1e3),t==="reload"&&U.success(o("blocklet.reloadSuccess")),O(null),l({action:t,blocklet:e})}catch(C){const E=`Blocklet ${t} failed: ${Ge(C)}`;throw l({action:t,blocklet:e,error:new Error(E)}),new Error(E)}finally{T||B(!1)}},y=()=>{B(!1),O(null)},I=j.getDisplayName(e,!0),je=e.mode===V.BLOCKLET_MODES.DEVELOPMENT?{description:()=>n.jsx($,{component:"div",children:n.jsx($,{gutterBottom:!0,children:o("blocklet.action.removeApplicationDescription")})}),params:{removeType:"complete"}}:{description:(P,T)=>n.jsxs($,{component:"div",children:[n.jsx($,{gutterBottom:!0,children:o("blocklet.action.removeApplicationDescription")}),n.jsxs(tt,{name:"removeType",value:P.removeType,onChange:C=>T({...P,removeType:C.target.value}),children:[n.jsx(ne,{value:"backup",control:n.jsx(re,{}),label:o("blocklet.action.removeApplicationAfterBackup")}),n.jsx(ne,{value:"complete",control:n.jsx(re,{}),label:o("blocklet.action.removeApplicationComplete")})]})]}),params:{removeType:"backup"}},Le={stop:{title:`${o("common.stop")} ${I}`,description:o("blocklet.action.stopDescription"),confirm:o("blocklet.action.confirmStop"),cancel:o("common.cancel"),onConfirm:w,onCancel:y},restart:{title:`${o("common.restart")} ${I}`,description:o("blocklet.action.restartDescription"),confirm:o("blocklet.action.confirmRestart"),cancel:o("common.cancel"),onConfirm:w,onCancel:y},remove:{title:`${o("common.remove")} ${I}`,confirm:o("blocklet.action.confirmRemove"),cancel:o("common.cancel"),onConfirm:w,onCancel:y,...je},cancelDownload:{title:`${o("common.cancel")}`,description:o("blocklet.action.cancelDownloadDescription",{name:I}),confirm:o("common.confirm"),cancel:o("common.cancel"),onConfirm:w,onCancel:y}};D?O(Le[t]):await w()},ge=!!f,ve=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}h(t.currentTarget)},xe=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}h(null)},G=async(t,a)=>{try{a.stopPropagation(),a.preventDefault()}catch{}if(typeof t.handler=="function")try{B(!0),W(t.action),await t.handler()}catch(D){console.error(`Blocklet ${t.name} failed: `,D)}finally{B(!1),h(null)}else h(null)},De=!A&&j.isDeletableBlocklet(e)?{action:"remove",icon:k.Remove,name:o("common.remove"),handler:M("remove",async({removeType:t})=>{t==="backup"&&await i.api.backupBlocklet({input:{appDid:e.appDid,to:"disk"}}),await i.api.deleteBlocklet({input:{did:e.meta.did,keepData:!1}})},!0),disabled:K}:null,Se={action:"remove",icon:({sx:t,...a})=>n.jsx(k.Cancel,{sx:{...t,paddingRight:"2px",zoom:.95},...a}),name:o("common.cancel"),handler:M("cancelDownload",i.api.cancelDownloadBlocklet,!0)},Ce=j.getAppMissingConfigs(e),Y=(t="dashboard")=>{const a=`/${e.mountPoint||"/"}`.replace(/\/+/g,"/"),D=v?.({mountPoint:a,blocklet:e});if(!D||!te(D)){U.error(o("blocklet.gotoVisitError"));return}const w=e?.site?.domainAliases;t==="logs"?window.open(q(ae(D,`${oe}/admin/developers/logs`),{allowDomains:w?.map(y=>y.value)})):window.open(q(ae(D,`${oe}/admin`),{allowDomains:w?.map(y=>y.value)}))};let z=[{action:"start",icon:k.Start,inExternal:!0,name:o("common.start"),handler:M("start",i.api.startBlocklet),disabled:F||e.children.every(t=>j.isBlockletRunning(t))||N(e.status)||pe||K},{action:"stop",icon:k.Stop,inExternal:!0,name:o("common.stop"),handler:M("stop",i.api.stopBlocklet,!0),disabled:!["running","starting","error"].includes(e.status)},{action:"restart",inExternal:!0,icon:k.Restart,name:o("common.restart"),handler:M("restart",i.api.restartBlocklet,!0),disabled:F||e.status!=="running"},N(e.status)?Se:De,{separator:!0},A?null:{action:"dashboard",icon:({style:t,...a})=>n.jsx(k.Dashboard,{...a,style:{...t,width:"26px",height:"26px",paddingRight:"3px"}}),name:o("sidebar.dashboard"),handler:Y},!A&&!fe?{action:"logs",icon:k.LogIcon,name:o("common.logs"),handler:()=>Y("logs")}:null].filter(Boolean);return he===Ct&&(z=z.filter(t=>t.inExternal)),c==="menu"?n.jsxs(ie,{"data-cy":"blocklet-actions",children:[n.jsx(Ue,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions","actions-blocklet-did":e.meta.did,onClick:ve,size:"small",disabled:!m||!N(e.status)&&R,children:n.jsx(Je,{})}),n.jsxs($e,{id:"actions-menu",anchorEl:f,keepMounted:!0,open:ge,onClose:xe,PaperProps:{},children:[Ce.length>0&&n.jsxs(Oe,{style:{maxWidth:"400px"},severity:"error",children:[o("blocklet.config.missingRequired"),n.jsx("br",{}),n.jsx(He,{to:`/blocklets/${e.meta.did}/components`,children:o("blocklet.config.gotoFix")})]}),z.map((t,a)=>t.separator?n.jsx(Ve,{},`separator-${a}`):n.jsxs(Ne,{dense:!0,onClick:D=>G(t,D),disabled:R||t.disabled,"data-cy":`${t.action}-blocklet`,children:[n.jsx(_e,{style:{minWidth:24},children:b===t.action&&R?n.jsx(Q,{size:16,sx:{marginRight:1}}):n.jsx(t.icon,{fontSize:"small"})}),n.jsx(qe,{primary:t.name})]},t.name))]}),d&&n.jsx(ee,{title:d.title,description:d.description,confirm:d.confirm,cancel:d.cancel,params:d.params,onConfirm:d.onConfirm,onCancel:d.onCancel})]}):n.jsxs(ie,{"data-cy":"blocklet-actions",...u,children:[n.jsx(et,{children:z.filter(t=>!t.separator&&!t.onlyInMenu).map(t=>n.jsxs(We,{title:t.name,"data-cy":`${t.action}-blocklet`,onClick:()=>G(t),disabled:!!t.disabled||R,children:[b===t.action&&R?n.jsx(Q,{size:16,sx:{marginRight:1}}):n.jsx(t.icon,{}),n.jsx("span",{className:"blocklet-action-text",children:t.name})]},t.name))}),d&&n.jsx(ee,{title:d.title,description:d.description,confirm:d.confirm,cancel:d.cancel,params:d.params,onConfirm:d.onConfirm,onCancel:d.onCancel})]})}me.propTypes={getComponentUrl:S.func,blocklet:S.object.isRequired,onStart:S.func.isRequired,onComplete:S.func.isRequired,variant:S.oneOf(["menu","group"]),source:S.oneOf(["blocklet-list","blocklet-detail"]),hasPermission:S.bool,useBlockletUrlEvaluation:S.func};const ie=Ke.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ci as U,r as q,k as u,H as z,cj as X,ck as T,af as H,cl as L,cm as N,j as n,X as O,cn as _,
|
|
1
|
+
import{ci as U,r as q,k as u,H as z,cj as X,ck as T,af as H,cl as L,cm as N,j as n,X as O,cn as _,at as Q,au as Z,aI as Y,B as K,q as w,co as ee,cp as te,cq as ne,aB as A,C as W,cr as re,o as i,cs as ie,ac as ae}from"./index-CP8e2zcP.js";import{t as C}from"./trim-BrqZEf0Q.js";import{d as G}from"./passkey-rounded-_WDHIZVd.js";import{R as oe}from"./login-method-item-CGUaonon.js";import{i as P}from"./isEmail-CpvKmXxu.js";const se={width:24,height:24,body:'<path fill="currentColor" d="M18 11h-2q-.425 0-.713-.288T15 10q0-.425.288-.713T16 9h2V7q0-.425.288-.713T19 6q.425 0 .713.288T20 7v2h2q.425 0 .713.288T23 10q0 .425-.288.713T22 11h-2v2q0 .425-.288.713T19 14q-.425 0-.713-.288T18 13v-2Zm-9 1q-1.65 0-2.825-1.175T5 8q0-1.65 1.175-2.825T9 4q1.65 0 2.825 1.175T13 8q0 1.65-1.175 2.825T9 12Zm-8 6v-.8q0-.85.438-1.563T2.6 14.55q1.55-.775 3.15-1.163T9 13q1.65 0 3.25.388t3.15 1.162q.725.375 1.163 1.088T17 17.2v.8q0 .825-.588 1.413T15 20H3q-.825 0-1.413-.588T1 18Z"/>'},F=6;function J({ref:f,extraParams:m={},createMode:p="connect",action:y,onSuccess:x=H,onError:b=H}){const{api:v,locale:E,t:a,loginPasskey:I,logoutPasskey:D,passkeyState:e,connectPasskey:B}=U(),c=p==="register",[h,l]=q.useState(!1),d=window.innerWidth<600,$=u(()=>{e.openDialog=!0,e.error="",e.creatingStatus="",e.verifyingStatus="";const t=e.email;l(t&&c?!P(t):!1)}),S=u(()=>{e.openDialog=!1,e.error="",e.creatingStatus="",e.verifyingStatus="";const t=e.email;l(t&&c?!P(t):!1)}),o=u(async t=>{if(t.preventDefault(),c&&!P(e.email)){l(!0);return}l(!1),e.loading=!0;try{await v.post(`../kyc/email/send?locale=${E}`,{email:e.email}),e.sent=!0,z.success(a("codeSentSuccess"))}catch(r){z.error(r.message),document.getElementById("email-input")?.focus()}finally{e.loading=!1}}),R=u(async(t="")=>{try{e.verifying=!0,e.error="",t||(e.verifyingStatus="");const r=await I({...m,action:y,credentialId:t}),s=X({expireInDays:7});T.remove("connected_did",s),T.remove("connected_pk",s),T.remove("connected_wallet_os",s),e.verifying=!1,r?.sessionToken&&(e.verifyingStatus="succeed",x({...r,encrypted:!1},M=>M))}catch(r){console.error("Failed to verify passkey",r);const s=L(r,a("verifyPasskeyFailed"));e.verifying=!1,e.error=s,e.verifyingStatus="error",await D(),b(new Error(s))}}),k=u(async()=>{if(c&&!P(e.email)){l(!0);return}l(!1),e.creating=!0,e.error="",e.creatingStatus="";try{const t=await B({...m,action:y,purpose:c?"register":"connect",email:c?N.encode(e.email):""});if(!t){e.error=a("cancelAuth"),e.creatingStatus="error",e.creating=!1,e.verifying=!1,e.verifyingStatus="";return}e.creating=!1,e.openDialog=!1,e.creatingStatus="succeed",p==="connect"?x({...t,encrypted:!1},r=>r):t?.credentialId&&R(t.credentialId)}catch(t){console.error("Failed to create passkey",t),e.creating=!1,e.error=L(t,a("createPasskeyFailed")),e.creatingStatus="error"}}),j=u(async t=>{t&&t.preventDefault(),e.loading=!0;try{await v.post(`../kyc/email/verify?locale=${E}`,{code:e.code}),e.verified=!0,k()}catch(r){z.error(r.message),e.verified=!1,document.getElementById(`code-input-${C(e.code).length-1}`)?.focus()}finally{e.loading=!1}});q.useImperativeHandle(f,()=>({open:$,close:S,handleVerifyCode:j}),[$,S,j]);const g=()=>n.jsxs(n.Fragment,{children:[n.jsx(A,{onClick:S,sx:{color:"text.secondary"},children:a("cancel")}),c&&n.jsxs(A,{variant:"contained",onClick:e.verified?k:e.sent?j:o,disabled:e.verifying||e.creating||!e.email||e.sent&&C(e.code).length!==F,children:[(e.loading||e.creating)&&n.jsx(W,{size:16,sx:{mr:1}}),e.verified?a("createPasskey"):e.sent?a("verifyButton"):a("sendCodeButton")]}),!c&&n.jsx(A,{variant:"contained",color:"primary",onClick:k,disabled:e.loading||e.creating||c&&(!e.email||!e.verified),startIcon:(e.loading||e.creating)&&n.jsx(W,{size:16,sx:{mr:1},color:"inherit"}),children:e.loading||e.creating?a("creatingPasskey"):a("createPasskey")})]});return n.jsxs(ce,{open:e.openDialog,onClose:S,fullWidth:!0,maxWidth:"sm",fullScreen:d,children:[n.jsxs(le,{children:[n.jsx(pe,{children:n.jsx(O,{icon:G,fontSize:24,color:"initial"})}),a("createPasskey")]}),n.jsxs(de,{children:[n.jsx(_,{variant:"body1",children:a("createPasskeyDesc1")}),n.jsx(_,{variant:"body1",children:a("createPasskeyDesc2")}),e.error&&n.jsx(Q,{severity:"error",children:e.error}),c&&n.jsxs(ge,{children:[!e.sent&&n.jsx(Z,{type:"email",id:"email-input",size:"medium",placeholder:a("emailPlaceholder"),sx:{width:"100%",".MuiFormHelperText-root":{ml:0}},value:e.email,onChange:t=>{e.email=t.target.value,l(!P(e.email))},disabled:e.loading||e.creating,required:!0,error:h,helperText:h?a("emailInvalid"):""}),e.sent&&!e.verified&&n.jsxs(Y,{direction:"column",sx:{justifyContent:"center",alignItems:"center",mb:2},children:[n.jsx(_,{variant:"body2",children:a("codeSentMessage",{email:e.email})}),n.jsx(K,{sx:{width:"100%",display:"flex",justifyContent:"space-between",gap:2,mt:0},children:Array(F).fill("").map((t,r)=>n.jsx(Z,{value:C(e.code[r])||"",type:"number",margin:"none",onChange:s=>{const M=e.code.split("");M[r]=s.target.value,e.code=M.join(""),s.target.value&&r<5&&document.getElementById(`code-input-${r+1}`)?.focus()},onKeyDown:s=>{s.key==="Backspace"&&!C(e.code[r])&&r>0&&document.getElementById(`code-input-${r-1}`)?.focus()},disabled:e.loading,required:!0,id:`code-input-${r}`,autoComplete:"off",slotProps:{htmlInput:{maxLength:1,style:{textAlign:"center",fontSize:"1.5rem"},autoComplete:"off"}}},`code-input-${r}`))})]})]}),d&&n.jsx(K,{sx:{display:"flex",justifyContent:"flex-end",alignItems:"center",mt:2},children:g()})]}),!d&&n.jsx(ue,{children:g()})]})}J.propTypes={extraParams:i.object,createMode:i.string,action:i.string.isRequired,onSuccess:i.func,onError:i.func,ref:i.any.isRequired};const ce=w(ee)`
|
|
2
2
|
.MuiDialog-paper {
|
|
3
3
|
border-radius: 12px;
|
|
4
4
|
max-width: 440px;
|
|
@@ -61,4 +61,4 @@ import{ci as U,r as q,k as u,H as z,cj as X,ck as T,af as H,cl as L,cm as N,j as
|
|
|
61
61
|
div.Mui-focused input {
|
|
62
62
|
caret-color: ${f=>f.theme.palette.primary.main};
|
|
63
63
|
}
|
|
64
|
-
`;function V({action:f,onClick:m,title:p,state:y,dense:x=!1,icon:b,...v}){return n.jsx(
|
|
64
|
+
`;function V({action:f,onClick:m,title:p,state:y,dense:x=!1,icon:b,...v}){return n.jsx(oe,{...v,icon:y[f]?n.jsx(W,{size:"1em",sx:{color:"inherit","& svg":{transform:"scale(0.75)"}}}):b,iconScale:1,title:p,onClick:m,sx:ae(x?{p:1,backgroundColor:"transparent"}:{},v?.sx)})}V.propTypes={action:i.string.isRequired,onClick:i.func.isRequired,title:i.string.isRequired,state:i.object.isRequired,dense:i.bool,icon:i.any.isRequired};function fe({ref:f=null,action:m,behavior:p="none",onSuccess:y,onError:x,extraParams:b={},createButtonText:v="",createMode:E="register",dense:a=!1,slotProps:I={},sx:D={},mode:e="normal",onClick:B=H,isLatest:c=!1}){const h=q.useRef(""),l=q.useRef(null),{t:d,loginPasskey:$,logoutPasskey:S,passkeyState:o}=U(),R=u(async(g="")=>{try{o.verifying=!0,o.error="",g||(o.verifyingStatus="");const t=await $({...b,action:m,credentialId:g}),r=X({expireInDays:7});T.remove("connected_did",r),T.remove("connected_pk",r),T.remove("connected_wallet_os",r),o.verifying=!1,t?.sessionToken&&(await y({...t,encrypted:!1},s=>s),o.verifyingStatus="succeed")}catch(t){ie.error("Failed to verify passkey",t);const r=L(t,d("verifyPasskeyFailed"),d);o.verifying=!1,o.error=r,o.verifyingStatus="error",await S(),x(new Error(r))}}),k=u(g=>{if(!o.sent)return;g.preventDefault();const t=C(g.clipboardData.getData("text/plain").slice(0,F));if(!/^\d+$/.test(t))return;o.code=t.padEnd(F," ");const r=document.getElementById(`code-input-${t.length}`);r&&r.focus()});q.useEffect(()=>(document.addEventListener("paste",k),()=>{document.removeEventListener("paste",k)}),[k]);const j=u(()=>{h.current==="verifying"?R():h.current==="creating"&&l.current.open()});return q.useImperativeHandle(f,()=>({click:j})),p==="none"?null:n.jsxs(n.Fragment,{children:[["both","only-existing"].includes(p)?n.jsx(V,{isLatest:c,t:d,action:"verifying",state:o,title:d("usePasskey"),onClick:()=>{h.current="verifying",j(),B()},dense:a,slotProps:I,sx:D,mode:e,icon:n.jsx(O,{icon:G,fontSize:"1em"})}):null,["both","only-new"].includes(p)?n.jsxs(n.Fragment,{children:[n.jsx(V,{t:d,action:"creating",state:o,title:v||d("createPasskey"),onClick:()=>{h.current="creating",j(),B()},dense:a,slotProps:I,sx:D,mode:e,icon:n.jsx(O,{icon:se,fontSize:"1em"})}),n.jsx(J,{ref:l,action:m,createMode:E,extraParams:b,onSuccess:y,onError:x})]}):null]})}fe.propTypes={action:i.string.isRequired,onSuccess:i.func.isRequired,onError:i.func.isRequired,behavior:i.oneOf(["none","both","only-existing","only-new"]),createButtonText:i.string,createMode:i.string,extraParams:i.object,dense:i.bool,slotProps:i.object,sx:i.oneOfType([i.object,i.array]),mode:i.oneOf(["simple","normal"]),onClick:i.func,ref:i.any,isLatest:i.bool};export{fe as U};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as u,j as e,B as k,
|
|
1
|
+
import{r as u,j as e,B as k,av as C,aw as M,ax as v,ay as z,M as A,az as B,aA as P,ad as T,o as m}from"./index-CP8e2zcP.js";function b({actions:d=[],size:s="small",...x}){const[r,i]=u.useState(null),h=!!r,y=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}i(t.currentTarget)},a=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}i(null)};return e.jsxs(k,{...x,children:[e.jsx(C,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"actions-menu-icon",onClick:y,size:s,children:e.jsx(M,{fontSize:s})}),e.jsx(v,{id:"actions-menu","data-cy":"actions-menu",anchorEl:r,keepMounted:!0,open:h,onClose:a,slotProps:{paper:{}},children:d.map((t,o)=>{if(typeof t=="function")return t({close:a});if(t.separator)return e.jsx(z,{},`separator-${o}`);const{icon:f,text:j,render:n,onClick:g,disabled:E=!1,tip:c,...I}=t,l=n&&typeof n=="function"?n({close:a}):u.createElement(A,{...I,disabled:E,dense:!0,onClick:async p=>{p.stopPropagation(),await g?.(p),a()},key:o,"data-cy":`actions-menu-${o}`},e.jsx(B,{style:{minWidth:24,marginRight:8},children:f}),e.jsx(P,{primary:j}));return c?e.jsx(T,{title:c,children:e.jsx("span",{children:l})}):l})})]})}b.propTypes={actions:m.array,size:m.oneOf(["small","medium","large"])};export{b as A};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as i,q as S,o as h,r as T,bz as he,C as xe,cu as ee,bj as te,B as v,ab as ge,
|
|
1
|
+
import{j as i,q as S,o as h,r as T,bz as he,C as xe,cu as ee,bj as te,B as v,ab as ge,aU as F,i as ye,bF as ve,w as j,fh as be,J as P,b2 as ke,V as ne,al as we,X as D,aS as re,g as je,u as Ee,ch as Ce,cx as Ne,av as Te}from"./index-CP8e2zcP.js";import{a as ie,h as Se,w as Re,f as Ie,b as De,d as Le,N as Oe}from"./index-BPu5OFdR.js";import{j as G}from"./url-join-BYRfgTzL.js";import{g as Ae}from"./get-safe-url-n4nPkbEQ.js";const Ue={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};function qe({children:e,...n}){return i.jsx(Pe,{...n,children:e})}qe.propTypes={children:h.any.isRequired};const Pe=S.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{E as a}from"./index-CP8e2zcP.js";a.defaults.timeout=10*1e3;const o=a.create();export{o as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{aS as T,V as j,r as e,ab as k,x as E,aT as B,j as o,B as w,C as M,W as H}from"./index-CP8e2zcP.js";import{u as I}from"./blocklet-D7q_eJsm.js";import{u as N}from"./use-mobile-BIorytbM.js";function v(){const{info:x,inService:g}=T(),{blocklet:y}=I(),{locale:u}=j(),f=e.useRef(null),a=k(),[L,R]=e.useState(0),p=N(),[t,S]=e.useState(!0),s=e.useRef(null);let r="";g?r=H:r=x.routing.adminPath;const c=new URLSearchParams;g?c.set("appUrl",window.location.origin):c.set("authKey","__sst"),c.set("schemaKey",E(window.location.origin,r,`/api/theme?id=${encodeURIComponent(y.meta.did)}`));const l=e.useCallback(()=>{if(s.current){const n=B(JSON.parse(JSON.stringify(a)),["palette","typography","shape","direction","breakpoints","mixins","shadows","transitions","zIndex"]);s.current.contentWindow.postMessage({type:"SEND_THEME",payload:n},window.location.origin)}},[a]),d=e.useCallback(()=>{s.current&&s.current.contentWindow.postMessage({type:"SEND_LOCALE",payload:u},window.location.origin)},[u]);return e.useEffect(()=>{const n=i=>{i.origin===window.location.origin&&(i.data.type==="REQUEST_THEME"&&l(),i.data.type==="THEME_BUILDER_LOADED"&&(d(),S(!1)))};return window.addEventListener("message",n),()=>{window.removeEventListener("message",n)}},[l,d]),e.useEffect(()=>{t===!1&&l()},[a,t,l]),e.useEffect(()=>{t===!1&&d()},[u,t,d]),e.useEffect(()=>{const n=document.querySelector("#arc__dashboard-main"),i=document.querySelector(".dashboard-content"),h=()=>{if(f.current){const{height:b}=n.getBoundingClientRect(),{top:C}=i.getBoundingClientRect(),{top:_}=f.current.getBoundingClientRect();let m=b-_+C-(p?108:164);p&&(m=Math.min(m,600)),R(m)}};return h(),window.addEventListener("resize",h),()=>{window.removeEventListener("resize",h)}},[p,a]),o.jsxs(o.Fragment,{children:[o.jsx(w,{ref:f}),t&&o.jsx(w,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"500px"},children:o.jsx(M,{})}),o.jsx("iframe",{title:"Theme Builder",ref:s,src:`${E(window.location.origin,r,"/hosted/theme-builder/")}?${c.toString()}`,style:{border:0,width:"100%",height:`${L}px`,display:t?"none":"block"}})]})}export{v as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as Z}from"./index-
|
|
1
|
+
import{y as Z}from"./index-DX_ig3IR.js";import{aS as B,r as d,j as t,H as F,V as D,ab as _,d1 as G,W as V,B as b,cC as K,J as $,bK as X,ad as R,d2 as q,cw as J,av as O,d3 as Q,d4 as Y,al as ee,C as te,F as ne,aC as se,S as oe,M as re,d5 as ie,q as ae,w as E,d6 as le,bN as ce,d7 as de}from"./index-CP8e2zcP.js";import{M as pe}from"./TableSearch-ZIwL7jK3.js";import{u as ue}from"./useLocalStorage-CBx2eW_l.js";import{c as fe,v as ge,p as me,s as I,N}from"./index-BPu5OFdR.js";import{U as xe}from"./UnfoldMore-DFA58tLQ.js";import{S as T}from"./shorten-label-j-itDv6J.js";import{a as he}from"./team-Bp-ehLS6.js";import"./Search-mc0LftDb.js";import"./Clear-XkW6YpHE.js";import"./blocklet-D7q_eJsm.js";import"./url-evaluation-BotqjpOW.js";const U=d.createContext({}),{Provider:Le,Consumer:Fe}=U;function be(){return localStorage.getItem("audit-log-page-size")&&Number(localStorage.getItem("audit-log-page-size"))||10}function ye({children:e,scope:r="",categories:n=[],showScope:p,scopeFormatter:u,blocklets:o}){const{api:y,info:v}=B(),[x,c]=d.useState([]),[f,h]=d.useState({total:0,pageSize:be(),pageCount:0,page:1}),[L,i]=d.useState(!1),[C,a]=d.useState(""),[g,s]=ue(`audit-log-category-${r}`,"all"),S=[{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(z=>n.length?z.value==="all"||n.includes(z.value):!0),w=async({page:z=1,pageSize:l=20,silent:P=!0}={})=>{if(!L){P||i(!0);try{const j=await y.getAuditLogs({input:{paging:{page:z,pageSize:l},category:g==="all"?"":g,scope:r,actionOrContent:C}});p&&(j.list||[]).forEach(M=>{M.scope!==v.did&&(M.link=`/blocklets/${M.scope}/components`)}),c(j.list),h(j.paging),i(!1)}catch(j){F.error(j.message),i(!1)}}};d.useEffect(()=>{localStorage.setItem("audit-log-page-size",f.pageSize)},[f.pageSize]),d.useEffect(()=>{w({page:1,pageSize:f.pageSize,silent:!1})},[]),d.useEffect(()=>{w({page:1,pageSize:f.pageSize,silent:!1})},[g,C]);const k={loading:L,fetch:w,filter:{category:g,scope:r},categories:S,blocklets:o,setCategory:s,data:x,paging:f,setPaging:h,showScope:p,scopeFormatter:u,actionOrContent:C,setActionOrContent:a};return t.jsx(Le,{value:{auditLogs:k},children:e})}function H(){const{auditLogs:e}=d.useContext(U);return e}const Ce=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,ve=/^[a-zA-Z]:\\/;function we(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return ve.test(e)?!1:Ce.test(e)}const Se=["http","https"],je=["nofollow"],ke={};function W(e){const r=e||ke,n=r.protocols||Se,p=fe(r.test);return function(u){ge(u,"element",function(o,y,v){if(o.tagName==="a"&&typeof o.properties.href=="string"&&p(o,y,v)){const x=o.properties.href;if(we(x)?n.includes(x.slice(0,x.indexOf(":"))):x.startsWith("//")){const c=A(r.content,o),f=c&&!Array.isArray(c)?[c]:c,h=A(r.rel,o)||je,L=typeof h=="string"?me(h):h,i=A(r.target,o),C=A(r.properties,o);if(C&&Object.assign(o.properties,I(C)),L.length>0&&(o.properties.rel=[...L]),i&&(o.properties.target=i),f){const a=A(r.contentProperties,o)||{};o.children.push({type:"element",tagName:"span",properties:I(a),children:I(f)})}}}})}}function A(e,r){return typeof e=="function"?e(r):e}function ze(e){if(!e)return[];const r=/\[([^\]]+)\]\(([^)]+)\)/g,n=[];let p;for(;(p=r.exec(e))!==null;)n.push({text:p[1],url:p[2]});return n}const $e=`
|
|
2
2
|
<svg style="width:38px;height:38px;" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M50.152 10.6417L31.72 0L13.288 10.6417V24.7942L1 31.8887V53.1722L19.432 63.8139L31.6902 56.7366L31.72 56.7538L31.7498 56.7366L44.008 63.8139L62.44 53.1722V31.8887L50.152 24.7942V10.6417ZM60.52 32.9972L48.232 25.9027V11.7502L31.72 2.21703L15.208 11.7502V25.9028L2.92 32.9972V52.0636L19.432 61.5968L31.6902 54.5196L31.72 54.5368L31.7498 54.5196L44.008 61.5968L60.52 52.0636V32.9972Z" fill="url(#paint0_linear_606_96)"/>
|
|
4
4
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M50.1521 24.8307L31.7201 14.189L13.2881 24.8307V46.1141L31.7201 56.7558L50.1521 46.1141V24.8307ZM15.2081 25.9392L31.7201 16.406L48.2321 25.9392V45.0056L31.7201 54.5388L15.2081 45.0056V25.9392ZM28.5464 23.0464C28.6641 22.6342 29.0408 22.3501 29.4695 22.3501H33.9707C34.3993 22.3501 34.776 22.6342 34.8938 23.0464L35.7504 26.0447L37.8696 27.2681L40.8945 26.5109C41.3103 26.4068 41.7447 26.591 41.959 26.9622L44.2096 30.8604C44.424 31.2316 44.3662 31.6998 44.0682 32.0079L41.8999 34.2489V36.6959L44.0682 38.9369C44.3662 39.245 44.424 39.7133 44.2096 40.0845L41.959 43.9827C41.7447 44.3539 41.3103 44.538 40.8945 44.4339L37.8696 43.6767L35.7504 44.9002L34.8938 47.8984C34.776 48.3106 34.3993 48.5947 33.9707 48.5947H29.4695C29.0408 48.5947 28.6641 48.3106 28.5464 47.8984L27.6897 44.9002L25.5706 43.6767L22.5457 44.4339C22.1299 44.538 21.6955 44.3539 21.4812 43.9827L19.2305 40.0845C19.0162 39.7133 19.0739 39.245 19.372 38.9369L21.5402 36.6959V34.2489L19.372 32.0079C19.0739 31.6998 19.0162 31.2316 19.2305 30.8604L21.4812 26.9622C21.6955 26.591 22.1299 26.4068 22.5457 26.5109L25.5706 27.2681L27.6897 26.0447L28.5464 23.0464ZM28.9861 27.5132C29.2018 27.3887 29.3607 27.1851 29.4292 26.9456L30.1936 24.2701H33.2466L34.011 26.9456C34.0794 27.1851 34.2383 27.3887 34.4541 27.5132L37.2459 29.1251C37.4617 29.2497 37.7174 29.2855 37.9591 29.225L40.6583 28.5493L42.1848 31.1932L40.25 33.193C40.0768 33.372 39.9799 33.6114 39.9799 33.8605V37.0843C39.9799 37.3334 40.0768 37.5728 40.25 37.7518L42.1848 39.7516L40.6583 42.3955L37.9591 41.7198C37.7174 41.6593 37.4617 41.6951 37.2459 41.8197L34.4541 43.4316C34.2383 43.5561 34.0794 43.7597 34.011 43.9992L33.2466 46.6747H30.1936L29.4292 43.9992C29.3607 43.7597 29.2018 43.5561 28.9861 43.4316L26.1942 41.8197C25.9785 41.6951 25.7228 41.6593 25.4811 41.7198L22.7819 42.3955L21.2554 39.7516L23.1902 37.7518C23.3634 37.5728 23.4602 37.3334 23.4602 37.0843V33.8605C23.4602 33.6114 23.3634 33.372 23.1902 33.193L21.2554 31.1932L22.7819 28.5493L25.4811 29.225C25.7228 29.2855 25.9785 29.2497 26.1942 29.1251L28.9861 27.5132ZM31.7201 41.6407C28.3134 41.6407 25.5517 38.8791 25.5517 35.4724C25.5517 32.0657 28.3134 29.3041 31.7201 29.3041C35.1268 29.3041 37.8884 32.0657 37.8884 35.4724C37.8884 38.8791 35.1268 41.6407 31.7201 41.6407ZM35.9684 35.4724C35.9684 37.8187 34.0664 39.7207 31.7201 39.7207C29.3738 39.7207 27.4717 37.8187 27.4717 35.4724C27.4717 33.1261 29.3738 31.2241 31.7201 31.2241C34.0664 31.2241 35.9684 33.1261 35.9684 35.4724Z" fill="url(#paint1_linear_606_96)"/>
|
|
@@ -15,7 +15,7 @@ import{y as Z}from"./index-Bl5zzd5F.js";import{aR as W,r as d,j as t,H as F,V as
|
|
|
15
15
|
</linearGradient>
|
|
16
16
|
</defs>
|
|
17
17
|
</svg>
|
|
18
|
-
`;function Ae({title:e,subTitle:r,titleInfo:n,action:p,createdAt:u,content:o,isLast:y,titleLink:v,avatarUrl:x,inService:c,renderTag:f}){const{locale:h}=D(),{palette:L}=_(),[i,C]=d.useState(!1),[a,g]=d.useState(!1),[s,m]=d.useState(window.innerWidth),S=d.useRef(null),w=()=>{const l=S.current?.mdp?.current;l&&g(l.scrollHeight>l.offsetHeight)};d.useEffect(()=>{const l=G(()=>{m(window.innerWidth)},100);return window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)},[]),d.useEffect(()=>{w()},[s,o]);const k=d.useMemo(()=>Object.entries(n).map(([l,P])=>({key:l,value:P})).filter(l=>!!l.value),[n]),z=d.useMemo(()=>{let l=o;return c&&ze(o).forEach(j=>{/^(?:\/[^/]+)*\/blocklets\/[^/]+\/members$/.test(j.url)&&(l=l.replace(j.url,`${
|
|
18
|
+
`;function Ae({title:e,subTitle:r,titleInfo:n,action:p,createdAt:u,content:o,isLast:y,titleLink:v,avatarUrl:x,inService:c,renderTag:f}){const{locale:h}=D(),{palette:L}=_(),[i,C]=d.useState(!1),[a,g]=d.useState(!1),[s,m]=d.useState(window.innerWidth),S=d.useRef(null),w=()=>{const l=S.current?.mdp?.current;l&&g(l.scrollHeight>l.offsetHeight)};d.useEffect(()=>{const l=G(()=>{m(window.innerWidth)},100);return window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)},[]),d.useEffect(()=>{w()},[s,o]);const k=d.useMemo(()=>Object.entries(n).map(([l,P])=>({key:l,value:P})).filter(l=>!!l.value),[n]),z=d.useMemo(()=>{let l=o;return c&&ze(o).forEach(j=>{/^(?:\/[^/]+)*\/blocklets\/[^/]+\/members$/.test(j.url)&&(l=l.replace(j.url,`${V}/admin/did-connect/members`))}),l},[o,c]);return t.jsx(b,{"data-cy":"log-entry",sx:{borderBottom:y?"none":`1px solid ${L.divider}`,padding:2},children:t.jsxs(b,{sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:2,width:"100%"},children:[t.jsx(b,{sx:{mt:.5},className:"log-author",children:x?t.jsx(K,{src:x,size:36,shape:"circle"}):t.jsx("div",{dangerouslySetInnerHTML:{__html:$e}})}),t.jsxs(b,{sx:{width:240},children:[t.jsxs(b,{sx:{display:"flex",alignItems:"center",gap:.5},children:[t.jsx($,{color:"textSecondary",component:"p",sx:{display:"flex"},children:v?t.jsx(X,{to:v,target:"_blank",children:t.jsx(T,{maxLength:26,children:e})}):t.jsx(T,{maxLength:26,children:e})}),typeof f=="function"&&f()]}),t.jsx(R,{"aria-label":"Audit device info",title:t.jsx(b,{sx:{color:"#fff",display:"flex",flexDirection:"column",fontSize:12},children:k?.map(l=>t.jsx($,{sx:{fontSize:12,color:"#fff"},children:`${l.key}: ${l.value}`},l.key))}),children:t.jsxs($,{component:"span",color:"textSecondary",sx:{fontSize:13},children:[r,t.jsx(q,{sx:{ml:.5,fontSize:12,verticalAlign:"middle"}})]})})]}),t.jsxs(b,{sx:{width:200},children:[t.jsx($,{sx:{fontSize:"16px",color:L.text.primary,backgroundColor:L.background.default,fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'"},children:p}),t.jsx($,{component:"span",color:"textSecondary",children:t.jsx(J,{value:u,locale:h,type:"all",disableTimezone:!0,sx:{fontSize:12}})})]}),t.jsx(b,{sx:{flex:1,".wmde-markdown":{bgcolor:"background.default",color:"text.primary",".code-highlight":{"white-space":"pre-wrap;","word-break":"break-all"}}},children:a&&i?t.jsx($,{className:"log-content",color:"textPrimary",component:"div","data-color-mode":"light",gutterBottom:!0,sx:{maxWidth:"lg"},children:t.jsx(N,{source:z,rehypePlugins:[[W,{target:"_blank"}]]})}):t.jsx($,{className:"log-content",color:"textPrimary",component:"div","data-color-mode":"light",gutterBottom:!0,sx:{maxWidth:"lg",display:i?"block":"-webkit-box",WebkitLineClamp:i?"none":2,WebkitBoxOrient:"vertical",overflow:i?"visible":"hidden",wordBreak:"break-word"},children:t.jsx(N,{ref:S,source:z,rehypePlugins:[[W,{target:"_blank"}]]})})}),t.jsxs(b,{children:[a&&t.jsx(O,{size:"small",onClick:()=>C(!i),children:i?t.jsx(Q,{sx:{fontSize:22}}):t.jsx(xe,{sx:{fontSize:22}})}),t.jsx(O,{size:"small",children:t.jsx(Y,{sx:{fontSize:22},content:o})})]})]})})}const Pe=({log:e,info:r,inService:n})=>n?`${le}/members?did=${e.actor.did}`:e.scope===r.did?`/team/members?did=${e.actor.did}`:`/blocklets/${e.scope}/members?did=${e.actor.did}`;function Ee({log:e,isLast:r}){const{inService:n,info:p}=B(),{t:u}=D(),{teamDid:o}=he(),{showScope:y,scopeFormatter:v=a=>a,blocklets:x}=H(),c=d.useMemo(()=>{const a=e?.componentDid,g=e?.scope;if(!a)return null;if(n)return(window.blocklet?.componentMountPoints??[]).find(({did:k})=>k===a)||null;const s=x.find(({appPid:w,appDid:k})=>[w,k].includes(g));return s&&(s.children??[]).find(({meta:w})=>w?.did===a)?.meta||null},[x,n,e?.componentDid,e?.scope]);if(!e.actor.did)return null;const f=!["blocklet",""].includes(e.actor.role),h=()=>{if(c){const s=c.title??c.name??"",m=y?` - ${v(e.scope)}`:"";return`${s}${m}`}const a=e.actor.fullName??"",g=y?v(e.scope):"";return a?y?`${a} - ${g}`:a:g},L=y?e.link:Pe({log:e,inService:n,info:p}),i=()=>{if(c)return`${n?`${V}/blocklet/logo-bundle/${e.componentDid}`:`/blocklet/logo-bundle/${e.scope}/${e.componentDid}`}?v=${c?.version}`;const{avatar:a,source:g}=e.actor||{};return a?de(a,o,n,g==="server"):""},C=()=>c?t.jsx(R,{title:e.componentDid,children:t.jsx(ce,{type:"success",children:"SDK"},"source")}):"";return t.jsx(Ae,{isLast:r,isUser:f,avatarDid:e.actor.did,avatarUrl:i(),title:h()||u("common.unrecordedUser"),renderTag:C,titleLink:L,subTitle:e.actor.role?e.actor.role:"guest",content:e.content,action:e.action,inService:n,titleInfo:{IP:e.ip,OS:`${E(e,"env.os.name","")}${E(e,"env.os.version","")}`,Client:`${E(e,"env.browser.name","")}${E(e,"env.browser.Version","")}`},createdAt:e.createdAt})}function Me(){const{t:e}=D(),{palette:r}=_(),{data:n,loading:p,paging:u,setPaging:o,filter:y,categories:v,setCategory:x,fetch:c,actionOrContent:f,setActionOrContent:h}=H(),L=_(),i=ee(L.breakpoints.down("sm")),C=d.useMemo(()=>({flexDirection:i?"column":"row",alignItems:i?"flex-start":"center",justifyContent:i?"flex-start":"space-between","& > div":i?{width:"100%",flex:1,".toolbar-search-area":{width:"100% !important",flex:"1 !important"}}:{}}),[i]),a=s=>{const m=Number(s.target.value);o({...u,pageSize:m}),c({page:1,pageSize:m,silent:!1})},g=s=>{o({...u,page:s+1}),c({page:s+1,pageSize:u.pageSize,silent:!1})};return p&&n.length===0?t.jsx("div",{style:{textAlign:"center",marginTop:"50px"},children:t.jsx(te,{})}):t.jsxs(Ie,{"data-cy":"audit-logs",children:[t.jsxs(b,{className:"audit-logs-toolbar",sx:{display:"flex",flexDirection:i?"column":"row",gap:2,alignItems:i?"flex-start":"center",justifyContent:i?"flex-start":"space-between",...C},children:[t.jsxs(ne,{sx:i?{width:"100%",flex:1}:{width:240,flexShrink:0},variant:"outlined",children:[t.jsx(se,{children:e("common.filter")}),t.jsx(oe,{size:"small","data-cy":"filter-by-category-trigger",value:y.category,onChange:s=>x(s.target.value),fullWidth:!0,sx:{borderRadius:1},label:e("common.category"),disabled:p,children:v.map(s=>t.jsx(re,{value:s.value,"data-cy":`filter-by-category-${s.value}`,children:t.jsx(b,{children:t.jsx("span",{children:s.label})})},s.label))})]}),t.jsx(pe,{options:{searchPlaceholder:e("common.auditLogsSearch"),searchDebounceTime:600},search:f,searchText:f,searchTextUpdate:h,searchClose:()=>h(""),onSearchOpen:()=>{}})]}),n.length===0&&t.jsx(Z,{children:e("common.empty")}),t.jsx(b,{sx:{mt:2,border:n?.length>0?`1px solid ${r.divider}`:"none",borderRadius:1},children:n.length>0&&n.map((s,m)=>t.jsx(Ee,{log:s,isLast:m===n.length-1},s.id))}),t.jsx(b,{sx:{display:"flex",justifyContent:"flex-end",mt:2},children:t.jsx(ie,{disabled:p,page:u.page-1,count:u.total,rowsPerPage:u.pageSize,rowsPerPageOptions:[10,20,50,100],labelRowsPerPage:e("pagination.rowsPerPage"),labelDisplayedRows:({from:s,to:m,count:S})=>`${s}–${m} / ${S!==-1?S:`${e()}more than ${m}`}`,onPageChange:(s,m)=>g(m),onRowsPerPageChange:a})})]})}function Ge({scope:e,categories:r,showScope:n,scopeFormatter:p,blocklets:u}){return t.jsx(ye,{scope:e,categories:r,showScope:n,scopeFormatter:p,blocklets:u,children:t.jsx(Me,{})})}const Ie=ae.div`
|
|
19
19
|
.log-content {
|
|
20
20
|
p {
|
|
21
21
|
margin-bottom: 4px;
|