@abtnode/webapp 1.17.7-beta-20251230-120126-2836fe04 → 1.17.7-beta-20260103-230139-51fc594d
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-D4yhIBjp.js → AdapterDayjs-Bf62_KHd.js} +1 -1
- package/dist/assets/{Add-BqehlncY.js → Add-DsCZxomS.js} +1 -1
- package/dist/assets/ArrowDropDown-Cm-Ihf0X.js +1 -0
- package/dist/assets/{Autocomplete-DQwU_oez.js → Autocomplete-3RVWHTcY.js} +1 -1
- package/dist/assets/{Breadcrumbs-DWjoGi7V.js → Breadcrumbs-Ce4oQ7Yc.js} +1 -1
- package/dist/assets/{ButtonGroup-CiscHb2s.js → ButtonGroup-BBkFKNOE.js} +1 -1
- package/dist/assets/{CSSTransition-R4tGAk7r.js → CSSTransition-Bdj4Mjb5.js} +1 -1
- package/dist/assets/{CallMerge-BeazH3jg.js → CallMerge-DB0zaZAy.js} +1 -1
- package/dist/assets/{CardContent-C5NwNVow.js → CardContent-DYbZwS2P.js} +1 -1
- package/dist/assets/{ChevronLeft-BaZj3l6K.js → ChevronLeft-LUIxb-Gs.js} +1 -1
- package/dist/assets/{ChevronRight-CpLm1bKY.js → ChevronRight-CMxsc1-C.js} +1 -1
- package/dist/assets/{Clear-siFOH-um.js → Clear-C3sN6cHh.js} +1 -1
- package/dist/assets/{Delete-8zGU1uok.js → Delete-Dfzx-_QK.js} +1 -1
- package/dist/assets/{DeleteOutline-BiwjsR6p.js → DeleteOutline-DpQcJ9uI.js} +1 -1
- package/dist/assets/{Done-DzBppTPg.js → Done-B-lhh5Lr.js} +1 -1
- package/dist/assets/{Edit-CKpLr219.js → Edit-BC3nr7bV.js} +1 -1
- package/dist/assets/{ErrorOutline-B0v25XAB.js → ErrorOutline-B8rqfUz9.js} +1 -1
- package/dist/assets/{FilterList-Be5ZzrNM.js → FilterList-rsYn09vK.js} +1 -1
- package/dist/assets/{Google-BB2TEIzp.js → Google-DvG9EWSC.js} +1 -1
- package/dist/assets/{HelpOutline-D4ZrboH1.js → HelpOutline-DV_Sx2ni.js} +1 -1
- package/dist/assets/{KeyboardArrowDown-DdCuxSq1.js → KeyboardArrowDown-DrxfizRQ.js} +1 -1
- package/dist/assets/{Launch-BiV6tbTp.js → Launch-CtQmWL-A.js} +1 -1
- package/dist/assets/{Link-Cogxu9aB.js → Link-DWefbDaG.js} +1 -1
- package/dist/assets/{ListItemButton-C9pXyehQ.js → ListItemButton-3I3mSJkP.js} +1 -1
- package/dist/assets/{ListSubheader-I1pRAfr2.js → ListSubheader-6QF36c7B.js} +1 -1
- package/dist/assets/{LoadingButton-BCz99YbN.js → LoadingButton-BYeGfUfG.js} +1 -1
- package/dist/assets/{MoreVert-BOGr0n7e.js → MoreVert-trwGA3wl.js} +1 -1
- package/dist/assets/{OpenInNew-CCra_7I0.js → OpenInNew-BPFABZ3A.js} +1 -1
- package/dist/assets/{Refresh-EilcFp8b.js → Refresh-BHzztae5.js} +1 -1
- package/dist/assets/{Replay-N-tBrT6I.js → Replay-DL5tXUkH.js} +1 -1
- package/dist/assets/{Search-BwAHZ5GK.js → Search-3NZ8vA4F.js} +1 -1
- package/dist/assets/{Stepper-Bn1MKAsJ.js → Stepper-Czt9JHmf.js} +1 -1
- package/dist/assets/{TableSearch-BFj05c9C.js → TableSearch-B_n7jlL9.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-npFh1mr6.js → ToggleButtonGroup-BUuAjiiA.js} +1 -1
- package/dist/assets/{UnfoldMore-DVoycFqc.js → UnfoldMore-C_VudNPV.js} +1 -1
- package/dist/assets/{Verified-CWEd1DVE.js → Verified-Wsp8TANt.js} +1 -1
- package/dist/assets/{VerifiedUser-CigB8Fdv.js → VerifiedUser-BtmbPbB1.js} +1 -1
- package/dist/assets/{ViewList-D7TqVQ4P.js → ViewList-B70rgoza.js} +1 -1
- package/dist/assets/{_createAggregator-CQ-mLfMP.js → _createAggregator-3CFJfow4.js} +1 -1
- package/dist/assets/{actions-GoWYDb6F.js → actions-BAAc2dMh.js} +1 -1
- package/dist/assets/{actions-CDHomwcW.js → actions-CVw0Ioh6.js} +1 -1
- package/dist/assets/{agreement-BhNIuQec.js → agreement-CN5OCdHh.js} +1 -1
- package/dist/assets/api-DSxoqzJR.js +1 -0
- package/dist/assets/{appearance-Bux4sdxO.js → appearance-Bg3eFrYH.js} +1 -1
- package/dist/assets/{ar-B4BSOV5G.js → ar-BukCw0OI.js} +1 -1
- package/dist/assets/{audit-logs-CpckHt6s.js → audit-logs-BqRm_F9G.js} +1 -1
- package/dist/assets/{base-chart-CxDa_CaZ.js → base-chart-CLPgrkli.js} +1 -1
- package/dist/assets/{blocklet-D4otp8nH.js → blocklet-DI09kb3z.js} +1 -1
- package/dist/assets/{chain-CfwM2JWo.js → chain-C3ooT1VP.js} +1 -1
- package/dist/assets/{click-to-copy-CcQkmf0B.js → click-to-copy-D3DsyQ7B.js} +1 -1
- package/dist/assets/cloneDeep-Dt4wqcIj.js +1 -0
- package/dist/assets/{config-navigation-DVGyxdD_.js → config-navigation-B2tX-3vU.js} +3 -3
- package/dist/assets/{connect-to-CbHwvZLx.js → connect-to-D2kofpuz.js} +1 -1
- package/dist/assets/{cssMode-CtObRSSW.js → cssMode-C-HXmW9S.js} +1 -1
- package/dist/assets/{de-EFAP4yzZ.js → de-Br0tDZam.js} +1 -1
- package/dist/assets/{delete-confirm-DfVCfmx_.js → delete-confirm-y9uI0hXG.js} +1 -1
- package/dist/assets/{depsEqual-BF3eoqLy.js → depsEqual-AZEPsRt3.js} +1 -1
- package/dist/assets/{detail-DYfAWDl1.js → detail-CUJgqlsd.js} +3 -3
- package/dist/assets/{domains-CC4Opwi7.js → domains-Ds-t-5cC.js} +1 -1
- package/dist/assets/{download-scJq5nd3.js → download-CRh8yH_q.js} +1 -1
- package/dist/assets/{edit.svg-BgAMrWjM.js → edit.svg-BRRfsd3L.js} +1 -1
- package/dist/assets/emotion-cache.browser.esm-D3p6zzp2.js +1 -0
- package/dist/assets/engine-PI4c2H--.js +1 -0
- package/dist/assets/{es-BqFCfGn2.js → es-D_e0gGgp.js} +1 -1
- package/dist/assets/{fr-CksqMtzK.js → fr-DXizOT4b.js} +1 -1
- package/dist/assets/{freemarker2-D5TW5Eft.js → freemarker2-CGpgj78_.js} +1 -1
- package/dist/assets/{get-safe-url-HOLWsAs0.js → get-safe-url-BR_QU8Dh.js} +1 -1
- package/dist/assets/getValidReactChildren-COj4IOg4.js +1 -0
- package/dist/assets/{graphqlMode-Bblq7qR7.js → graphqlMode-C9KkLkCB.js} +2 -2
- package/dist/assets/{handlebars-WxLGbhWH.js → handlebars-D_BNerME.js} +1 -1
- package/dist/assets/{hi-Bztwk-sg.js → hi-D2FEb_Tx.js} +1 -1
- package/dist/assets/{html-DuZCuVkX.js → html-C8nmUyPA.js} +1 -1
- package/dist/assets/{html-title-CifiMfjt.js → html-title-CHWL92Ab.js} +1 -1
- package/dist/assets/{htmlMode-0w5arQMe.js → htmlMode-Cbln7vuj.js} +1 -1
- package/dist/assets/{id-C5p-l7lp.js → id-Dw9URVwP.js} +1 -1
- package/dist/assets/{iframe-Dq0hkTrq.js → iframe-DJmf2DN1.js} +1 -1
- package/dist/assets/{index-DN9WepcN.js → index--aRvqG_y.js} +1 -1
- package/dist/assets/{index-CGzi7zV_.js → index--sEMugrz.js} +1 -1
- package/dist/assets/{index-DYW_sHYx.js → index-2MKd-1Yf.js} +3 -3
- package/dist/assets/{index-nvPO7sCa.js → index-52mqVMFt.js} +1 -1
- package/dist/assets/{index-DAMZQWKn.js → index-6nMPypbs.js} +1 -1
- package/dist/assets/{index-DBJqSNjU.js → index-8mapgkUu.js} +1 -1
- package/dist/assets/{index-DPs8sVol.js → index-BAreTrrc.js} +1 -1
- package/dist/assets/{index-COhyQV8C.js → index-BDT45MlS.js} +1 -1
- package/dist/assets/{index-BnXKKyQZ.js → index-BHXV_Uyd.js} +1 -1
- package/dist/assets/{index-CbKLDJsb.js → index-BWJoCxfo.js} +1 -1
- package/dist/assets/{index-CNVrqxCI.js → index-BZEpEbZE.js} +1 -1
- package/dist/assets/{index-_-mWQ6ov.js → index-BbeJesOq.js} +1 -1
- package/dist/assets/{index-CrQaw0BF.js → index-BeQc3UkQ.js} +329 -329
- package/dist/assets/{index-D2gNdot7.js → index-BgCWds86.js} +2 -2
- package/dist/assets/{index-DzQWOvtr.js → index-Bl4BVg_B.js} +3 -3
- package/dist/assets/{index-D57ncOaj.js → index-BozRXjdh.js} +1 -1
- package/dist/assets/{index-C8Yc1xhR.js → index-C6cCABCg.js} +1 -1
- package/dist/assets/{index-wIt3UxPD.js → index-CJ1w1KYa.js} +9 -9
- package/dist/assets/index-CNkhBuLJ.js +1 -0
- package/dist/assets/{index-BGcMePQ8.js → index-CODhl4Ao.js} +1 -1
- package/dist/assets/{index-ZCO60mrW.js → index-COUqJ9-z.js} +1 -1
- package/dist/assets/{index-rsjiYKAZ.js → index-CbALc3XH.js} +1 -1
- package/dist/assets/{index-yQeeHJJ2.js → index-ClbnPUTw.js} +1 -1
- package/dist/assets/{index-C9Doh9s3.js → index-CxvZy8qq.js} +1 -1
- package/dist/assets/{index-BPA__Xw6.js → index-D-SnE_aW.js} +1 -1
- package/dist/assets/{index-Ci0V4E2u.js → index-D31fr5VL.js} +1 -1
- package/dist/assets/{index-CzQzijaC.js → index-D3Ou3XmE.js} +1 -1
- package/dist/assets/{index-B24ZOg0s.js → index-D3erh2pC.js} +3 -3
- package/dist/assets/{index-DDG-ZEI-.js → index-DKUJWUc3.js} +1 -1
- package/dist/assets/index-DNUQq8Bi.js +16 -0
- package/dist/assets/{index-DVOJBn33.js → index-DOgexfV_.js} +1 -1
- package/dist/assets/{index-B3lwT4Ol.js → index-DOir4J5b.js} +2 -2
- package/dist/assets/index-DiZi9bmR.js +1 -0
- package/dist/assets/{index-Cs8W6nmK.js → index-DqxSKSRU.js} +1 -1
- package/dist/assets/{index-BD7A3_Da.js → index-Fn1MOxir.js} +1 -1
- package/dist/assets/{index-CXTibO7-.js → index-L59zcQ3y.js} +19 -19
- package/dist/assets/{index-DWm5KlVP.js → index-O0QMxlIj.js} +1 -1
- package/dist/assets/{index-DyIPXbau.js → index-TBuePazk.js} +1 -1
- package/dist/assets/{index-CFu4UTTj.js → index-aU6di1GB.js} +1 -1
- package/dist/assets/{index-DhXU_Vz9.js → index-hAMgv1Ac.js} +1 -1
- package/dist/assets/{index-OtVuze_0.js → index-sdZCV0b1.js} +3 -3
- package/dist/assets/{index-b78VjA-Y.js → index-xEJdUfGB.js} +1 -1
- package/dist/assets/{index-DidKpbc0.js → index-xcANvyL-.js} +1 -1
- package/dist/assets/{index-CH_WzJ6f.js → index-xstE610P.js} +1 -1
- package/dist/assets/{index.esm-B06DCVM7.js → index.esm-DWSKQCVf.js} +1 -1
- package/dist/assets/{install-from-url-B0gehZWB.js → install-from-url-DDaq0WfF.js} +1 -1
- package/dist/assets/{invitation-DjNwS-Ha.js → invitation-BtOYVKCc.js} +1 -1
- package/dist/assets/{is-path-prefix-equal-Dr7EUhi7.js → is-path-prefix-equal-DSamcBqo.js} +1 -1
- package/dist/assets/{item-Bojg28Ma.js → item-DixRT1Ir.js} +1 -1
- package/dist/assets/{ja-2cGMwCig.js → ja-DBxpsmGJ.js} +1 -1
- package/dist/assets/{javascript-xUySVVaa.js → javascript-COnhTyPR.js} +1 -1
- package/dist/assets/{jsonMode-aXjE405B.js → jsonMode-B-wg4b0L.js} +1 -1
- package/dist/assets/{ko-DDVloIXx.js → ko-CCAdSyce.js} +1 -1
- package/dist/assets/{liquid-CqO0loMD.js → liquid-DkJ8XF8g.js} +1 -1
- package/dist/assets/{list-header-D5a_5edu.js → list-header-CQPLxTLi.js} +1 -1
- package/dist/assets/{lock.svg-Bnm1mppT.js → lock.svg-CfRs8nBP.js} +1 -1
- package/dist/assets/{log-Dh6sGyEk.js → log-3m4zIEL-.js} +1 -1
- package/dist/assets/{lottie-react.esm-uLWIPZ8N.js → lottie-react.esm-Ho0K4HxG.js} +1 -1
- package/dist/assets/{mdx-gAWRd386.js → mdx-BaqshKqy.js} +1 -1
- package/dist/assets/{memory-BwHtkqHB.js → memory-Bmu9KdH5.js} +1 -1
- package/dist/assets/{metric-Q_9BNbHj.js → metric-CYgfR-6x.js} +1 -1
- package/dist/assets/omit-BmEXjsUv.js +1 -0
- package/dist/assets/overview-DPxRgZrc.js +13 -0
- package/dist/assets/{permission-B8q324ya.js → permission-fAWDL6eA.js} +1 -1
- package/dist/assets/{preference-DjOBLR-v.js → preference-BdCzfdKd.js} +3 -3
- package/dist/assets/{pt-FIIPCfqU.js → pt-CrMGrBZ6.js} +1 -1
- package/dist/assets/{python-DnlpLwjq.js → python-DDh1Sld9.js} +1 -1
- package/dist/assets/{raf-schd.esm-B2LNukSh.js → raf-schd.esm-y75m-HYf.js} +1 -1
- package/dist/assets/{razor-JAsAlMne.js → razor-B6iT4xzc.js} +1 -1
- package/dist/assets/{rotate-session-key-BFiVoa6I.js → rotate-session-key-Bh2rfrqq.js} +1 -1
- package/dist/assets/{ru-BjRgz8OF.js → ru-up3R57Pv.js} +1 -1
- package/dist/assets/{runtime-BB_E-r_A.js → runtime-Br6d5OIR.js} +1 -1
- package/dist/assets/schema-BeTx8rxj.js +1 -0
- package/dist/assets/sdk-D4uiEFbJ.js +1 -0
- package/dist/assets/{service-DLwgL4rt.js → service-CktTTJWl.js} +1 -1
- package/dist/assets/{shorten-label-CybgQDYs.js → shorten-label-hqt7jmPr.js} +1 -1
- package/dist/assets/{simple-select-DJn1UT5H.js → simple-select-CQeor5tC.js} +1 -1
- package/dist/assets/{spaces-DBXblECR.js → spaces-CfDVuFGr.js} +1 -1
- package/dist/assets/{status-CW0QYGeF.js → status--oG1pao2.js} +1 -1
- package/dist/assets/{status-DG36cpK9.js → status-B5KZ8DJC.js} +1 -1
- package/dist/assets/{switch-control-Bzy_oqas.js → switch-control-Ce7-RZ39.js} +1 -1
- package/dist/assets/{table-icons-DKoPQwjv.js → table-icons-CRF7M3DQ.js} +1 -1
- package/dist/assets/{team-DLwXXgYX.js → team-B5ZkAUsr.js} +1 -1
- package/dist/assets/{th-DKiwQ6t6.js → th-DdNj2Ao6.js} +1 -1
- package/dist/assets/{toLower-CXuGXHcC.js → toLower-D3hDe9vm.js} +1 -1
- package/dist/assets/toUpper-DLp0iOYu.js +1 -0
- package/dist/assets/{traffic-DSdpsMku.js → traffic-DLkNU8lW.js} +1 -1
- package/dist/assets/{tsMode-Dh0Ri32L.js → tsMode-Cgz7fmer.js} +1 -1
- package/dist/assets/{typescript-D316NgIh.js → typescript-DeFz7cju.js} +1 -1
- package/dist/assets/{url-evaluation-DMCBEvQj.js → url-evaluation-CnA0uWcs.js} +1 -1
- package/dist/assets/{url-join-DoFkjCNr.js → url-join-Di70zMv6.js} +1 -1
- package/dist/assets/{use-mobile-BGG1Yti5.js → use-mobile-BoSC-OO1.js} +1 -1
- package/dist/assets/{use-mobile-DqSNKVo1.js → use-mobile-DHdENrRR.js} +1 -1
- package/dist/assets/{useAsync-ByRujkOO.js → useAsync-EIK7zv0J.js} +1 -1
- package/dist/assets/{useAsyncRetry-CLcTront.js → useAsyncRetry-CDmpGaec.js} +1 -1
- package/dist/assets/{useLocalStorage-DjnxkTrj.js → useLocalStorage-CAyV6Ga8.js} +1 -1
- package/dist/assets/{useThemeProps-CFIloaX5.js → useThemeProps-BT_wjfR7.js} +1 -1
- package/dist/assets/{util-DvscRj0S.js → util-D64hwso0.js} +1 -1
- package/dist/assets/{vi-C4aNShnq.js → vi-HNh41Xxk.js} +1 -1
- package/dist/assets/{wait-container-BPFMrDUL.js → wait-container-XW4Jhu4r.js} +1 -1
- package/dist/assets/{without-wallet-D2bQnWJt.js → without-wallet-BasvtIaA.js} +1 -1
- package/dist/assets/wrap-locale--ZpyxCeq.js +1 -0
- package/dist/assets/{xml-BGgxhX96.js → xml-C_dKn8b3.js} +1 -1
- package/dist/assets/{yaml-9hmveKGV.js → yaml-BUcCDLGx.js} +1 -1
- package/dist/assets/{zh-Cb0McG4r.js → zh-MM5bvwO_.js} +1 -1
- package/dist/assets/{zh-tw-PfYv9beR.js → zh-tw-Dr5DyPwA.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/ArrowDropDown-Cc-RKnnq.js +0 -1
- package/dist/assets/api-CSBvUv9A.js +0 -1
- package/dist/assets/cloneDeep-B3VWXnFc.js +0 -1
- package/dist/assets/emotion-cache.browser.esm-DyzCXqsA.js +0 -1
- package/dist/assets/engine-KybwGdMh.js +0 -1
- package/dist/assets/getValidReactChildren-Ck9KmKnh.js +0 -1
- package/dist/assets/index-BcmOVFqY.js +0 -1
- package/dist/assets/index-CIAqUMHH.js +0 -1
- package/dist/assets/index-D93jIJAg.js +0 -16
- package/dist/assets/omit-DeumLxdH.js +0 -1
- package/dist/assets/overview-DZjSoaFM.js +0 -13
- package/dist/assets/schema-DC2ou5i0.js +0 -1
- package/dist/assets/sdk-DZJdUnPV.js +0 -1
- package/dist/assets/toUpper-DN59t43l.js +0 -1
- package/dist/assets/wrap-locale-BbIFvnmJ.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as m,p as Be,j as e,C as X,L as Te,s as M,o as A,u as me,V as J,n as Fe,q as Ae,$ as De,D as Ee,T as R,t as te,v as K,w as Ie,x as Pe,y as Re,z as _e,A as de,H as $,B as Le,d as Ne,f as ze,E as Ue,F as $e,I as Me,J as We,K as y,M as se,N as le,i as N,O as Oe,P as z,Q as qe,R as oe,S as Ve,U as ne,X as re,Y as He,Z as ae,_ as Ke}from"./index-
|
|
1
|
+
import{r as m,p as Be,j as e,C as X,L as Te,s as M,o as A,u as me,V as J,n as Fe,q as Ae,$ as De,D as Ee,T as R,t as te,v as K,w as Ie,x as Pe,y as Re,z as _e,A as de,H as $,B as Le,d as Ne,f as ze,E as Ue,F as $e,I as Me,J as We,K as y,M as se,N as le,i as N,O as Oe,P as z,Q as qe,R as oe,S as Ve,U as ne,X as re,Y as He,Z as ae,_ as Ke}from"./index-BeQc3UkQ.js";import{u as Qe}from"./useLocalStorage-CAyV6Ga8.js";import{E as Xe}from"./ErrorOutline-B8rqfUz9.js";import{g as Je,H as Ye}from"./index-BZEpEbZE.js";import{B as I,W as Ze}from"./status--oG1pao2.js";import{D as Ge,u as et,B as ie}from"./actions-CVw0Ioh6.js";import{I as tt,B as st}from"./install-from-url-DDaq0WfF.js";import{u as ue}from"./url-evaluation-CnA0uWcs.js";import{L as lt}from"./Launch-CtQmWL-A.js";import{A as ot}from"./Add-DsCZxomS.js";import{O as P}from"./index-DNUQq8Bi.js";import{s as ce}from"./schema-BeTx8rxj.js";import{P as nt}from"./permission-fAWDL6eA.js";import"./FilterList-rsYn09vK.js";import"./CSSTransition-Bdj4Mjb5.js";import"./emotion-cache.browser.esm-D3p6zzp2.js";import"./index-O0QMxlIj.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-AZEPsRt3.js";import"./TableSearch-B_n7jlL9.js";import"./Search-3NZ8vA4F.js";import"./Clear-C3sN6cHh.js";import"./MoreVert-trwGA3wl.js";import"./DeleteOutline-DpQcJ9uI.js";import"./get-safe-url-BR_QU8Dh.js";import"./ButtonGroup-BBkFKNOE.js";import"./getValidReactChildren-COj4IOg4.js";import"./without-wallet-BasvtIaA.js";import"./index-CODhl4Ao.js";import"./cloneDeep-Dt4wqcIj.js";import"./index-6nMPypbs.js";import"./Delete-Dfzx-_QK.js";import"./Autocomplete-3RVWHTcY.js";import"./ListSubheader-6QF36c7B.js";import"./ListItemButton-3I3mSJkP.js";import"./Stepper-Czt9JHmf.js";function Q({blocklet:j,skipAccessibilityCheck:f=!1,...d}){const{t:i}=m.useContext(Be),{urls:S,loading:r,recommendedUrl:g}=ue(j);if(r&&!f)return e.jsx(X,{size:12,...d});const x=f?S[0]:g;return x?e.jsx(at,{...d,children:e.jsx(rt,{children:e.jsxs(Te,{href:x,target:"_blank",className:"blocklet-interface",underline:"hover",children:[i("common.visit"),e.jsx(lt,{fontSize:"12",sx:{marginLeft:.5}})]})})}):i("blocklet.router.noAccessibleUrl")}const rt=M.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
margin: 4px 0;
|
|
4
4
|
`,at=M.div`
|
|
@@ -12,7 +12,7 @@ import{r as m,p as Be,j as e,C as X,L as Te,s as M,o as A,u as me,V as J,n as Fe
|
|
|
12
12
|
margin-right: 4px;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
`;Q.propTypes={blocklet:A.object.isRequired,skipAccessibilityCheck:A.bool};function pe({onCancel:j,onSuccess:f}){const{info:d}=me(),{t:i}=J(),{api:v}=Fe(),[r,g]=Ae({loading:!1,title:"",titleError:"",description:"",descriptionError:"",isConnectOpen:!1}),x={title:l=>ce.installBlockletTitleSchema.messages({"*":i("blocklet.titleValidationError")}).validate(l)?.error?.message||"",description:l=>ce.installBlockletDescriptionSchema.messages({"*":i("blocklet.descriptionValidationError")}).validate(l)?.error?.message||""},C=()=>{const l=Re(window?.env?.apiPrefix??"/","/launch-blocklet/install");window.location.href=_e(l,{from:"empty",title:r.title,description:r.description})},S=l=>{g({loading:!1,isConnectOpen:!1}),f(l)},w=()=>{g({loading:!1,isConnectOpen:!1})},B=l=>{const{value:u,name:h}=l.target;g({[`${h}Error`]:u?x[h](u):""})},D=l=>{const{value:u,name:h}=l.target,b=`${h}Error`;r[b]?g({[h]:u,[b]:u?x[h](u):""}):g({[h]:u})};return e.jsxs(e.Fragment,{children:[e.jsx(De,{title:i("blocklet.installFromCreate"),fullWidth:!0,maxWidth:"sm",onClose:()=>j(),showCloseButton:!0,open:!0,actions:e.jsxs(e.Fragment,{children:[e.jsx(K,{onClick:l=>{l.stopPropagation(),j()},color:"inherit",children:i("common.cancel")}),e.jsxs(K,{onClick:l=>{l.stopPropagation(),C()},color:"primary","data-cy":"install-blocklet-next-step",variant:"contained",disabled:r.loading||r.titleError||r.descriptionError||!r.title||!r.description,style:{marginLeft:8},children:[r.loading&&e.jsx(X,{size:16}),i("common.create")]})]}),children:e.jsx(Ee,{component:"div",children:e.jsxs(R,{component:"div",children:[e.jsx(te,{style:{marginBottom:24},label:`Blocklet ${i("common.title")}`,autoComplete:"off",variant:"outlined",fullWidth:!0,autoFocus:!0,name:"title",value:r.title,onBlur:B,onChange:D,error:!!r.titleError,helperText:r.titleError,disabled:r.loading}),e.jsx(te,{label:`Blocklet ${i("common.description")}`,autoComplete:"off",variant:"outlined",fullWidth:!0,name:"description",value:r.description,onBlur:B,onChange:D,error:!!r.descriptionError,helperText:r.descriptionError,disabled:r.loading})]})})}),e.jsx(Ie,{popup:!0,open:r.isConnectOpen,forceConnected:!1,className:"launch-from-create-auth",action:"launch-free-blocklet-by-session",checkFn:v.get,checkTimeout:5*60*1e3,webWalletUrl:Pe(d),onSuccess:S,extraParams:{title:r.title,description:r.description},messages:{title:i("setup.keyPair.title"),scan:i("setup.keyPair.scan"),confirm:i("setup.keyPair.confirm"),success:i("setup.keyPair.success")},onClose:w})]})}pe.propTypes={onCancel:A.func.isRequired,onSuccess:A.func.isRequired};function fe({onCreate:j=()=>{}}){const f=de(),{t:d}=J(),[i,v]=m.useState(""),[r,g]=m.useState(""),[x,C]=m.useState(null),[S,w]=m.useState(null),B=()=>{C(null)},D=()=>{C({onCancel:()=>{B(),C(null)},onSuccess:()=>{B()}})},l=()=>{w({onCancel:()=>{w(null)},onSuccess:(...b)=>{w(null),j(...b)}})},u=()=>{const b=new URL("http://localhost");b.searchParams.set("restoreFrom","server"),b.searchParams.set("serverUrl",window.location.href),f(`/blocklets/restore${b.search}`)},h=()=>{f("/blocklets/restore")};return e.jsxs(e.Fragment,{children:[e.jsxs(P,{onClick:()=>f("/store"),menuButtonProps:{"data-cy":"open-install-menu"},menu:[e.jsx(P.Item,{"data-cy":"open-install-form",onClick:()=>D(),children:d("blocklet.installFromUrl")},"1"),e.jsx(P.Item,{"data-cy":"open-create-form",onClick:()=>l(),children:d("blocklet.installFromCreate")},"2"),e.jsx(P.Item,{"data-cy":"open-install-from-spaces",onClick:()=>h(),children:d("blocklet.restoreFromSpaces.title")},"3"),e.jsx(P.Item,{"data-cy":"open-install-from-spaces",onClick:()=>u(),children:d("blocklet.installFromDiskBackup")},"4")].filter(Boolean),children:[e.jsx(ot,{}),d("blocklet.installFromMarket")]}),!!i&&e.jsx($,{variant:"error",message:i,onClose:()=>v("")}),!!r&&e.jsx($,{variant:"success",duration:3e3,message:r,onClose:()=>g("")}),x&&e.jsx(tt,{onCancel:x.onCancel,onSuccess:x.onSuccess}),S&&e.jsx(pe,{onCancel:S.onCancel,onSuccess:S.onSuccess})]})}fe.propTypes={onCreate:A.func};function xe({blocklet:j,children:f}){const{urls:d}=ue(j),i=d[0];return f(i||"")}xe.propTypes={blocklet:A.object.isRequired,children:A.func.isRequired};const U="internal",H="external";function Qt(){return e.jsx(Ge,{children:e.jsx(it,{})})}function it(){const j=de(),f=me(),[d,i]=Le(),{data:v,externalData:r,error:g,refresh:x,loading:C}=Ne(),{deletingBlocklets:S,addDeletingDid:w,removeDeletingDid:B,matchDeletingDid:D}=et(),{t:l,locale:u}=J(),h=ze(),b="blocklets-list",_=Je(b),[a,E]=m.useState({searchText:d.get("searchText")||_.searchText||"",pageSize:_.rowsPerPage||10,page:1,sortField:_.sortOrder?.name||"updatedAt",sortDirection:_.sortOrder?.direction||"desc"}),[ge,he]=m.useState(0),be=[{id:U,name:l("blocklet.internal")},{id:H,name:l("blocklet.external")}],[T,ke]=Qe("blocklet-type-filter",U),W=m.useMemo(()=>T===U?v:r,[T,v,r]),[Y,je]=m.useState(!1);m.useEffect(()=>{(async()=>{const c={paging:{page:a.page,pageSize:a.pageSize},search:a.searchText,external:T===H,sort:{field:a.sortField,direction:a.sortDirection}},s=await x({silent:Y,includeRuntimeInfo:!1,...c});s?.paging&&he(s.paging.total||0),Y||je(!0),await x({silent:!0,includeRuntimeInfo:!0,...c})})()},[`${a.page}-${a.pageSize}-${a.searchText}-${a.sortField}-${a.sortDirection}-${T}`]);const ye=m.useCallback(({page:o,rowsPerPage:c,searchText:s,sortOrder:t})=>{a.pageSize!==c?E(n=>({...n,pageSize:c,page:1})):a.page!==o+1?E(n=>({...n,page:o+1})):a.searchText!==s?(E(n=>({...n,searchText:s||"",page:1})),i({searchText:s||""})):t?.name&&t?.direction&&(a.sortField!==t.name||a.sortDirection!==t.direction)&&E(n=>({...n,sortField:t.name,sortDirection:t.direction,page:1}))},[a.pageSize,a.page,a.searchText,a.sortField,a.sortDirection,i]);D(W.map(o=>o.meta.did));const O=m.useCallback(({action:o,blocklet:c})=>{o==="remove"&&w(c.meta.did)},[w]),q=m.useCallback(o=>{if(o.error){$.error(o.error.message),o.action==="remove"&&B(o.blocklet.meta.did);return}o.action==="remove"&&f.refresh({silent:!0})},[f,B]),Z=Ue(o=>o.breakpoints.up("md"));let L=null;const V=m.useMemo(()=>{const o=["installedAt","startedAt","stoppedAt","createdAt"];return(W||[]).map(c=>(o.forEach(s=>{if(c[s]){const t=new Date(c[s]);c[s]=t}}),c))},[W]),k=V,Ce=$e(o=>{if(C)return e.jsx(Me,{relative:"parent",children:e.jsx(X,{})});const{page:c,rowsPerPage:s}=o,t=k.slice(c*s,(c+1)*s);return t.length?e.jsx("div",{children:t.map(n=>e.jsx(xe,{blocklet:n,children:F=>e.jsxs(y,{className:"blocklet-item--mobile",sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[e.jsx(se,{className:"blocklet__avatar",blocklet:n,size:Z?40:60}),e.jsxs(le,{className:"blocklet__content",to:F,onClick:p=>{p.stopPropagation(),F||(p.preventDefault(),$.warning(l("blocklet.router.noAccessibleUrl")))},target:"_blank",children:[e.jsxs(y,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-start","& button":{width:24,height:24}},children:[e.jsx(R,{component:"strong",variant:"body1",className:"blocklet__name",children:N.getDisplayName(n,!0)}),e.jsx(ie,{blocklet:n,variant:"menu",onStart:O,onComplete:q},n.meta.did)]}),e.jsxs(R,{component:"small",className:"blocklet__addons",sx:{display:"flex",alignItems:"flex-end"},children:[e.jsx(y,{sx:{display:"flex",alignItems:"center"},children:e.jsx(Q,{blocklet:n,style:{fontSize:14}})}),e.jsx(I,{"status-blocklet-did":n.meta.did,status:n.status,source:n.source,progress:n.progress},n.meta.did)]})]})]})},n.meta.did))}):e.jsx(We,{children:l("common.empty")})}),[ve,Se]=m.useState([]),G=m.useCallback(()=>{const o=Array.from(new Set(k.map(s=>s.status))),c=[{label:l("common.name"),name:"meta.title",options:{filter:!1,sort:!1,customBodyRenderLite(s){const t=k[s];if(!t)return null;const n=N.getAppMissingConfigs(t).length>0?"components":"overview";return e.jsx(le,{to:`/blocklets/${t.meta.did}/${n}`,className:"blocklet-name-wrapper",children:e.jsxs(R,{component:"strong",variant:"body1",className:"blocklet-name",children:[e.jsx(se,{blocklet:t,style:{marginRight:8}}),e.jsxs(y,{children:[e.jsx(y,{children:N.getDisplayName(t)}),e.jsxs(y,{children:[e.jsx(st,{mode:t.mode||""}),!Oe(t.controller)&&e.jsx(Ze,{type:"primary",children:l("blocklet.external")})]})]})]})},t.meta.did)}}},T===U?{label:l("common.visit"),name:"runtimeInfo.pid",align:"left",options:{sort:!1,filter:!1,customBodyRenderLite(s){const t=k[s];return t?e.jsx(Q,{blocklet:t},t.meta.did):null}}}:null,{label:l("common.uptime"),name:"startedAt",options:{filter:!1,sort:!0,customBodyRenderLite(s){const t=k[s];return t?N.isBlockletRunning(t)&&t.startedAt?e.jsx(z,{value:t.startedAt.getTime(),locale:u},t.meta.did):"":null}}},{label:l("common.installedAt"),name:"installedAt",options:{filter:!1,sort:!0,customBodyRenderLite(s){const t=k[s];return t?t.installedAt?e.jsx(z,{value:t.installedAt.getTime(),locale:u},t.meta.did):t.createdAt?e.jsx(z,{value:t.createdAt.getTime(),locale:u},t.meta.did):"":null}}},{label:l("common.updatedAt"),name:"updatedAt",options:{filter:!1,sort:!0,customBodyRenderLite(s){const t=k[s];return t?e.jsx(z,{value:t.updatedAt,locale:u},t.meta.did):null}}},{label:l("common.status"),name:"status",width:150,align:"center",options:{filter:!0,sort:!0,filterType:"custom",customFilterListOptions:{render:s=>s.map(t=>e.jsx(I,{"data-cy":"blocklet-status-filter-list",status:t},t)),update:(s,t,n)=>(s[n].splice(t,1),s)},filterOptions:{names:o,logic:(s,t)=>t.length?!t.includes(s):!1,display:(s,t,n,F)=>e.jsxs(oe,{children:[e.jsx(Ve,{htmlFor:"select-multiple-chip",sx:{background:h.palette.background.default},children:l("common.status")}),e.jsx(ne,{multiple:!0,value:s[n],renderValue:p=>p.map(ee=>e.jsx(I,{"data-cy":"blocklet-status-filter-display",status:ee},ee)),onChange:p=>{s[n]=p.target.value,t(s[n],n,F)},sx:{minWidth:120},children:o.map(p=>e.jsxs(re,{value:p,children:[e.jsx(He,{color:"primary",checked:s[n].indexOf(p)>-1}),e.jsx(I,{"data-cy":"blocklet-status-filter",status:p})]},p))})]}),fullWidth:!0},customBodyRenderLite(s){const t=k[s];if(!t)return null;const n=["error","waiting","starting"],F=t.children.filter(p=>n.includes(p.status)||n.includes(p.greenStatus));return e.jsxs(y,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(I,{"data-cy":"blocklet-status","status-blocklet-did":t.meta.did,status:S.includes(t.meta.did)?"deleting":t.status,source:t.source,progress:t.progress},t.meta.did),F.length>0&&e.jsx(qe,{title:l("blocklet.status.hasSomeErrors",{blocklets:F.map(p=>p.meta.title).join(", ")}),children:e.jsx(y,{sx:{display:"flex",color:"warning.main",ml:1},children:e.jsx(Xe,{})})})]})}}},{label:l("common.actions"),name:"",width:90,options:{sort:!1,filter:!1,customBodyRenderLite(s){const t=k[s];return t?e.jsx(ie,{blocklet:t,variant:"menu",onStart:O,onComplete:q},t.meta.did):null}}}].filter(Boolean);Se(c)},[S,u,q,O,k,l,T,h]);if(m.useEffect(()=>{G()},[G]),m.useEffect(()=>{const o=d.get("searchText");o&&o!==a.searchText&&E(c=>({...c,searchText:o,page:1}))},[d]),g)L=e.jsx(ae,{severity:"error",children:e.jsxs("div",{children:[Ke(g),e.jsx(K,{onClick:()=>x({silent:!1}),children:e.jsx("span",{style:{color:"#44cdc6",textDecoration:"underline"},children:l("common.retry")})})]})});else if(V.length>0||C||a.searchText){const o={};Z||(o.TableBody=Ce),L=e.jsx(ct,{children:e.jsx(Ye,{loading:C,className:"blocklet-list",title:e.jsx(y,{sx:{display:"flex",alignItems:"center"},children:l("blocklet.index.tableTitle")}),locale:u,data:k,columns:ve,durable:b,options:{download:!1,print:!1,searchPlaceholder:l("common.search"),searchAlwaysOpen:!1,sortOrder:{name:a.sortField,direction:a.sortDirection},filterType:"checkbox",page:a.page-1,rowsPerPage:a.pageSize,rowsPerPageOptions:[10,25,50,100],count:ge,searchDebounceTime:600,searchText:a.searchText},onChange:ye,components:o})})}else V.length===0&&(L=e.jsx(ae,{severity:"warning",children:l("blocklet.index.noBlocklet")}));const we=r&&r.length>0;return e.jsxs(mt,{children:[e.jsxs(R,{component:"h2",variant:"h4",className:"page-header",color:"textPrimary",children:[e.jsxs(y,{sx:{display:"flex",alignItems:"center"},children:[l("common.blocklets"),(we||T===H)&&e.jsx(oe,{sx:{ml:1},children:e.jsx(ne,{value:T,onChange:o=>ke(o.target.value),size:"small",children:be.map(o=>e.jsx(re,{value:o.id,children:l(o.name)},o.id))})})]}),e.jsx(nt,{permission:"mutate_blocklets",children:e.jsx(fe,{onCreate:o=>{j(`/blocklets/${o.appDid}/components`)}})})]}),L]})}const ct=M.div`
|
|
15
|
+
`;Q.propTypes={blocklet:A.object.isRequired,skipAccessibilityCheck:A.bool};function pe({onCancel:j,onSuccess:f}){const{info:d}=me(),{t:i}=J(),{api:S}=Fe(),[r,g]=Ae({loading:!1,title:"",titleError:"",description:"",descriptionError:"",isConnectOpen:!1}),x={title:l=>ce.installBlockletTitleSchema.messages({"*":i("blocklet.titleValidationError")}).validate(l)?.error?.message||"",description:l=>ce.installBlockletDescriptionSchema.messages({"*":i("blocklet.descriptionValidationError")}).validate(l)?.error?.message||""},C=()=>{const l=Re(window?.env?.apiPrefix??"/","/launch-blocklet/install");window.location.href=_e(l,{from:"empty",title:r.title,description:r.description})},v=l=>{g({loading:!1,isConnectOpen:!1}),f(l)},w=()=>{g({loading:!1,isConnectOpen:!1})},B=l=>{const{value:u,name:h}=l.target;g({[`${h}Error`]:u?x[h](u):""})},D=l=>{const{value:u,name:h}=l.target,b=`${h}Error`;r[b]?g({[h]:u,[b]:u?x[h](u):""}):g({[h]:u})};return e.jsxs(e.Fragment,{children:[e.jsx(De,{title:i("blocklet.installFromCreate"),fullWidth:!0,maxWidth:"sm",onClose:()=>j(),showCloseButton:!0,open:!0,actions:e.jsxs(e.Fragment,{children:[e.jsx(K,{onClick:l=>{l.stopPropagation(),j()},color:"inherit",children:i("common.cancel")}),e.jsxs(K,{onClick:l=>{l.stopPropagation(),C()},color:"primary","data-cy":"install-blocklet-next-step",variant:"contained",disabled:r.loading||r.titleError||r.descriptionError||!r.title||!r.description,style:{marginLeft:8},children:[r.loading&&e.jsx(X,{size:16}),i("common.create")]})]}),children:e.jsx(Ee,{component:"div",children:e.jsxs(R,{component:"div",children:[e.jsx(te,{style:{marginBottom:24},label:`Blocklet ${i("common.title")}`,autoComplete:"off",variant:"outlined",fullWidth:!0,autoFocus:!0,name:"title",value:r.title,onBlur:B,onChange:D,error:!!r.titleError,helperText:r.titleError,disabled:r.loading}),e.jsx(te,{label:`Blocklet ${i("common.description")}`,autoComplete:"off",variant:"outlined",fullWidth:!0,name:"description",value:r.description,onBlur:B,onChange:D,error:!!r.descriptionError,helperText:r.descriptionError,disabled:r.loading})]})})}),e.jsx(Ie,{popup:!0,open:r.isConnectOpen,forceConnected:!1,className:"launch-from-create-auth",action:"launch-free-blocklet-by-session",checkFn:S.get,checkTimeout:5*60*1e3,webWalletUrl:Pe(d),onSuccess:v,extraParams:{title:r.title,description:r.description},messages:{title:i("setup.keyPair.title"),scan:i("setup.keyPair.scan"),confirm:i("setup.keyPair.confirm"),success:i("setup.keyPair.success")},onClose:w})]})}pe.propTypes={onCancel:A.func.isRequired,onSuccess:A.func.isRequired};function fe({onCreate:j=()=>{}}){const f=de(),{t:d}=J(),[i,S]=m.useState(""),[r,g]=m.useState(""),[x,C]=m.useState(null),[v,w]=m.useState(null),B=()=>{C(null)},D=()=>{C({onCancel:()=>{B(),C(null)},onSuccess:()=>{B()}})},l=()=>{w({onCancel:()=>{w(null)},onSuccess:(...b)=>{w(null),j(...b)}})},u=()=>{const b=new URL("http://localhost");b.searchParams.set("restoreFrom","server"),b.searchParams.set("serverUrl",window.location.href),f(`/blocklets/restore${b.search}`)},h=()=>{f("/blocklets/restore")};return e.jsxs(e.Fragment,{children:[e.jsxs(P,{onClick:()=>f("/store"),menuButtonProps:{"data-cy":"open-install-menu"},menu:[e.jsx(P.Item,{"data-cy":"open-install-form",onClick:()=>D(),children:d("blocklet.installFromUrl")},"1"),e.jsx(P.Item,{"data-cy":"open-create-form",onClick:()=>l(),children:d("blocklet.installFromCreate")},"2"),e.jsx(P.Item,{"data-cy":"open-install-from-spaces",onClick:()=>h(),children:d("blocklet.restoreFromSpaces.title")},"3"),e.jsx(P.Item,{"data-cy":"open-install-from-spaces",onClick:()=>u(),children:d("blocklet.installFromDiskBackup")},"4")].filter(Boolean),children:[e.jsx(ot,{}),d("blocklet.installFromMarket")]}),!!i&&e.jsx($,{variant:"error",message:i,onClose:()=>S("")}),!!r&&e.jsx($,{variant:"success",duration:3e3,message:r,onClose:()=>g("")}),x&&e.jsx(tt,{onCancel:x.onCancel,onSuccess:x.onSuccess}),v&&e.jsx(pe,{onCancel:v.onCancel,onSuccess:v.onSuccess})]})}fe.propTypes={onCreate:A.func};function xe({blocklet:j,children:f}){const{urls:d}=ue(j),i=d[0];return f(i||"")}xe.propTypes={blocklet:A.object.isRequired,children:A.func.isRequired};const U="internal",H="external";function Qt(){return e.jsx(Ge,{children:e.jsx(it,{})})}function it(){const j=de(),f=me(),[d,i]=Le(),{data:S,externalData:r,error:g,refresh:x,loading:C}=Ne(),{deletingBlocklets:v,addDeletingDid:w,removeDeletingDid:B,matchDeletingDid:D}=et(),{t:l,locale:u}=J(),h=ze(),b="blocklets-list",_=Je(b),[a,E]=m.useState({searchText:d.get("searchText")||_.searchText||"",pageSize:_.rowsPerPage||10,page:1,sortField:_.sortOrder?.name||"updatedAt",sortDirection:_.sortOrder?.direction||"desc"}),[ge,he]=m.useState(0),be=[{id:U,name:l("blocklet.internal")},{id:H,name:l("blocklet.external")}],[T,ke]=Qe("blocklet-type-filter",U),W=m.useMemo(()=>T===U?S:r,[T,S,r]),[Y,je]=m.useState(!1);m.useEffect(()=>{(async()=>{const c={paging:{page:a.page,pageSize:a.pageSize},search:a.searchText,external:T===H,sort:{field:a.sortField,direction:a.sortDirection}},s=await x({silent:Y,includeRuntimeInfo:!1,...c});s?.paging&&he(s.paging.total||0),Y||je(!0),await x({silent:!0,includeRuntimeInfo:!0,...c})})()},[`${a.page}-${a.pageSize}-${a.searchText}-${a.sortField}-${a.sortDirection}-${T}`]);const ye=m.useCallback(({page:o,rowsPerPage:c,searchText:s,sortOrder:t})=>{a.pageSize!==c?E(n=>({...n,pageSize:c,page:1})):a.page!==o+1?E(n=>({...n,page:o+1})):a.searchText!==s?(E(n=>({...n,searchText:s||"",page:1})),i({searchText:s||""})):t?.name&&t?.direction&&(a.sortField!==t.name||a.sortDirection!==t.direction)&&E(n=>({...n,sortField:t.name,sortDirection:t.direction,page:1}))},[a.pageSize,a.page,a.searchText,a.sortField,a.sortDirection,i]);D(W.map(o=>o.meta.did));const O=m.useCallback(({action:o,blocklet:c})=>{o==="remove"&&w(c.meta.did)},[w]),q=m.useCallback(o=>{if(o.error){$.error(o.error.message),o.action==="remove"&&B(o.blocklet.meta.did);return}o.action==="remove"&&f.refresh({silent:!0})},[f,B]),Z=Ue(o=>o.breakpoints.up("md"));let L=null;const V=m.useMemo(()=>{const o=["installedAt","startedAt","stoppedAt","createdAt"];return(W||[]).map(c=>(o.forEach(s=>{if(c[s]){const t=new Date(c[s]);c[s]=t}}),c))},[W]),k=V,Ce=$e(o=>{if(C)return e.jsx(Me,{relative:"parent",children:e.jsx(X,{})});const{page:c,rowsPerPage:s}=o,t=k.slice(c*s,(c+1)*s);return t.length?e.jsx("div",{children:t.map(n=>e.jsx(xe,{blocklet:n,children:F=>e.jsxs(y,{className:"blocklet-item--mobile",sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[e.jsx(se,{className:"blocklet__avatar",blocklet:n,size:Z?40:60}),e.jsxs(le,{className:"blocklet__content",to:F,onClick:p=>{p.stopPropagation(),F||(p.preventDefault(),$.warning(l("blocklet.router.noAccessibleUrl")))},target:"_blank",children:[e.jsxs(y,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-start","& button":{width:24,height:24}},children:[e.jsx(R,{component:"strong",variant:"body1",className:"blocklet__name",children:N.getDisplayName(n,!0)}),e.jsx(ie,{blocklet:n,variant:"menu",onStart:O,onComplete:q},n.meta.did)]}),e.jsxs(R,{component:"small",className:"blocklet__addons",sx:{display:"flex",alignItems:"flex-end"},children:[e.jsx(y,{sx:{display:"flex",alignItems:"center"},children:e.jsx(Q,{blocklet:n,style:{fontSize:14}})}),e.jsx(I,{"status-blocklet-did":n.meta.did,status:n.status,source:n.source,progress:n.progress},n.meta.did)]})]})]})},n.meta.did))}):e.jsx(We,{children:l("common.empty")})}),[Se,ve]=m.useState([]),G=m.useCallback(()=>{const o=Array.from(new Set(k.map(s=>s.status))),c=[{label:l("common.name"),name:"meta.title",options:{filter:!1,sort:!1,customBodyRenderLite(s){const t=k[s];if(!t)return null;const n=N.getAppMissingConfigs(t).length>0?"components":"overview";return e.jsx(le,{to:`/blocklets/${t.meta.did}/${n}`,className:"blocklet-name-wrapper",children:e.jsxs(R,{component:"strong",variant:"body1",className:"blocklet-name",children:[e.jsx(se,{blocklet:t,style:{marginRight:8}}),e.jsxs(y,{children:[e.jsx(y,{children:N.getDisplayName(t)}),e.jsxs(y,{children:[e.jsx(st,{mode:t.mode||""}),!Oe(t.controller)&&e.jsx(Ze,{type:"primary",children:l("blocklet.external")})]})]})]})},t.meta.did)}}},T===U?{label:l("common.visit"),name:"runtimeInfo.pid",align:"left",options:{sort:!1,filter:!1,customBodyRenderLite(s){const t=k[s];return t?e.jsx(Q,{blocklet:t},t.meta.did):null}}}:null,{label:l("common.uptime"),name:"startedAt",options:{filter:!1,sort:!0,customBodyRenderLite(s){const t=k[s];return t?N.isBlockletRunning(t)&&t.startedAt?e.jsx(z,{value:t.startedAt.getTime(),locale:u},t.meta.did):"":null}}},{label:l("common.installedAt"),name:"installedAt",options:{filter:!1,sort:!0,customBodyRenderLite(s){const t=k[s];return t?t.installedAt?e.jsx(z,{value:t.installedAt.getTime(),locale:u},t.meta.did):t.createdAt?e.jsx(z,{value:t.createdAt.getTime(),locale:u},t.meta.did):"":null}}},{label:l("common.updatedAt"),name:"updatedAt",options:{filter:!1,sort:!0,customBodyRenderLite(s){const t=k[s];return t?e.jsx(z,{value:t.updatedAt,locale:u},t.meta.did):null}}},{label:l("common.status"),name:"status",width:150,align:"center",options:{filter:!0,sort:!0,filterType:"custom",customFilterListOptions:{render:s=>s.map(t=>e.jsx(I,{"data-cy":"blocklet-status-filter-list",status:t},t)),update:(s,t,n)=>(s[n].splice(t,1),s)},filterOptions:{names:o,logic:(s,t)=>t.length?!t.includes(s):!1,display:(s,t,n,F)=>e.jsxs(oe,{children:[e.jsx(Ve,{htmlFor:"select-multiple-chip",sx:{background:h.palette.background.default},children:l("common.status")}),e.jsx(ne,{multiple:!0,value:s[n],renderValue:p=>p.map(ee=>e.jsx(I,{"data-cy":"blocklet-status-filter-display",status:ee},ee)),onChange:p=>{s[n]=p.target.value,t(s[n],n,F)},sx:{minWidth:120},children:o.map(p=>e.jsxs(re,{value:p,children:[e.jsx(He,{color:"primary",checked:s[n].indexOf(p)>-1}),e.jsx(I,{"data-cy":"blocklet-status-filter",status:p})]},p))})]}),fullWidth:!0},customBodyRenderLite(s){const t=k[s];if(!t)return null;const n=["error","waiting","starting"],F=t.children.filter(p=>n.includes(p.status)||n.includes(p.greenStatus));return e.jsxs(y,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(I,{"data-cy":"blocklet-status","status-blocklet-did":t.meta.did,status:v.includes(t.meta.did)?"deleting":t.status,source:t.source,progress:t.progress},t.meta.did),F.length>0&&e.jsx(qe,{title:l("blocklet.status.hasSomeErrors",{blocklets:F.map(p=>p.meta.title).join(", ")}),children:e.jsx(y,{sx:{display:"flex",color:"warning.main",ml:1},children:e.jsx(Xe,{})})})]})}}},{label:l("common.actions"),name:"",width:90,options:{sort:!1,filter:!1,customBodyRenderLite(s){const t=k[s];return t?e.jsx(ie,{blocklet:t,variant:"menu",onStart:O,onComplete:q},t.meta.did):null}}}].filter(Boolean);ve(c)},[v,u,q,O,k,l,T,h]);if(m.useEffect(()=>{G()},[G]),m.useEffect(()=>{const o=d.get("searchText");o&&o!==a.searchText&&E(c=>({...c,searchText:o,page:1}))},[d]),g)L=e.jsx(ae,{severity:"error",children:e.jsxs("div",{children:[Ke(g),e.jsx(K,{onClick:()=>x({silent:!1}),children:e.jsx("span",{style:{color:"#44cdc6",textDecoration:"underline"},children:l("common.retry")})})]})});else if(V.length>0||C||a.searchText){const o={};Z||(o.TableBody=Ce),L=e.jsx(ct,{children:e.jsx(Ye,{loading:C,className:"blocklet-list",title:e.jsx(y,{sx:{display:"flex",alignItems:"center"},children:l("blocklet.index.tableTitle")}),locale:u,data:k,columns:Se,durable:b,options:{download:!1,print:!1,searchPlaceholder:l("common.search"),searchAlwaysOpen:!1,sortOrder:{name:a.sortField,direction:a.sortDirection},filterType:"checkbox",page:a.page-1,rowsPerPage:a.pageSize,rowsPerPageOptions:[10,25,50,100],count:ge,searchDebounceTime:600,searchText:a.searchText},onChange:ye,components:o})})}else V.length===0&&(L=e.jsx(ae,{severity:"warning",children:l("blocklet.index.noBlocklet")}));const we=r&&r.length>0;return e.jsxs(mt,{children:[e.jsxs(R,{component:"h2",variant:"h4",className:"page-header",color:"textPrimary",children:[e.jsxs(y,{sx:{display:"flex",alignItems:"center"},children:[l("common.blocklets"),(we||T===H)&&e.jsx(oe,{sx:{ml:1},children:e.jsx(ne,{value:T,onChange:o=>ke(o.target.value),size:"small",children:be.map(o=>e.jsx(re,{value:o.id,children:l(o.name)},o.id))})})]}),e.jsx(nt,{permission:"mutate_blocklets",children:e.jsx(fe,{onCreate:o=>{j(`/blocklets/${o.appDid}/components`)}})})]}),L]})}const ct=M.div`
|
|
16
16
|
.blocklet-item--mobile {
|
|
17
17
|
padding: 16px 0;
|
|
18
18
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-
|
|
2
|
-
import{aG as Ae,j as t,du as Ss,gC as Es,iE as ks,V as de,bo as ye,K as B,Q as be,H as Y,o as x,f as gt,r as k,p as Se,bG as st,b as je,i as Z,Z as Un,bF as ft,_ as xe,iF as Rs,t as Ce,s as oe,a5 as he,aW as uo,T as ue,$ as Qt,dJ as mt,y as _e,b9 as Ps,bK as Ts,aI as H,b2 as Is,gq as Ds,gr as Bs,C as we,f6 as po,hC as Wn,x as Os,ay as Kt,w as Us,iG as Ns,iH as Ls,v as Be,iI as As,I as Ms,a1 as zs,iJ as fo,bp as mo,X as Ne,f8 as Fs,f3 as qs,aB as $s,aC as Ws,bl as Hs,aD as Ks,aE as fe,aP as Gs,cT as Vs,U as Ys,eP as cr,bj as Qs,h as Zs,dy as It,iK as Xs,g0 as ho,iL as Js,iM as ei,eA as me,iN as go,dH as ti,iO as ni,hd as ri,fQ as oi,iP as si,cJ as dr,hx as Hn,aw as ii,bB as Zt,dr as ze,bv as ai,bw as ur,z as Gt,cw as li,G as Fe,aQ as pr,gm as xo,F as He,h9 as ci,bE as kt,cp as fr,hu as di,fo as mr,bh as ui,L as xt,E as yo,bn as pi,a0 as fi,O as Rt,a_ as Kn,iQ as mi,a$ as Le,aA as hr,cR as hi,ae as it,aN as vo,bY as Gn,cB as gi,iR as xi,ba as yi,A as Vn,aV as Nn,g as vi,aT as ut,P as fn,W as Ci,bH as Co,aJ as bi,by as bo,aS as ji,J as wi,ff as gr,g8 as xr,g9 as yr,Y as vr,cQ as _i,ga as Si,bX as Ei,iS as ki}from"./index-CrQaw0BF.js";import{a as Ri,S as Pi,u as Yn}from"./actions-CDHomwcW.js";import{S as Ti,a as Ii}from"./switch-control-Bzy_oqas.js";import{u as De}from"./blocklet-D4otp8nH.js";import{P as Ln,w as Xt}from"./permission-B8q324ya.js";import{E as jo}from"./Edit-CKpLr219.js";import{T as Di,M as Bi,t as Oi}from"./table-icons-DKoPQwjv.js";import{s as Ui,F as wo,A as Ni,b as Li,c as Ai,d as Mi,R as ot,L as zi,I as Fi,S as dt,a as Pt,B as qi}from"./preference-DjOBLR-v.js";import{C as Cr}from"./click-to-copy-CcQkmf0B.js";import{v as mn}from"./index-D93jIJAg.js";import{A as $i}from"./Add-BqehlncY.js";import{A as Jt}from"./Link-Cogxu9aB.js";import{C as Wi,c as Hi,b as Ki,f as _o,A as Gi,_ as Vi,a as Yi,e as Qi,d as So,s as Zi,L as Xi,u as Ji,g as ea,S as ta}from"./item-Bojg28Ma.js";import{T as na,L as ra,a as An,u as br,W as oa,P as sa}from"./index-CH_WzJ6f.js";import{e as Eo}from"./engine-KybwGdMh.js";import{u as ia,C as aa,D as la,a as ca,b as da,S as ko}from"./connect-to-CbHwvZLx.js";import{C as ua,u as pa,A as fa}from"./agreement-BhNIuQec.js";import{D as Ro}from"./Done-DzBppTPg.js";import{C as ma}from"./Google-BB2TEIzp.js";import{I as Po,f as ha,a as ga,B as xa}from"./install-from-url-B0gehZWB.js";import{a as jr}from"./api-CSBvUv9A.js";import{v as To,e as ya,a as Vt}from"./util-DvscRj0S.js";import{u as Io}from"./use-mobile-BGG1Yti5.js";import{A as va}from"./ArrowDropDown-Cc-RKnnq.js";import{u as Ca}from"./useLocalStorage-DjnxkTrj.js";import{r as en}from"./index-BGcMePQ8.js";import{b as tn}from"./without-wallet-D2bQnWJt.js";import{E as Qn}from"./ErrorOutline-B0v25XAB.js";import{H as ba}from"./HelpOutline-D4ZrboH1.js";import{C as ja}from"./lock.svg-Bnm1mppT.js";import{D as nn}from"./Delete-8zGU1uok.js";import{L as Do}from"./Launch-BiV6tbTp.js";import{D as wa}from"./delete-confirm-DfVCfmx_.js";import{W as ht,B as Mn,m as _a}from"./status-CW0QYGeF.js";import{R as Sa}from"./Replay-N-tBrT6I.js";import{R as Ea,a as wr}from"./url-evaluation-DMCBEvQj.js";import{A as Bo}from"./actions-GoWYDb6F.js";import{v as hn}from"./index-DAMZQWKn.js";import{t as ka}from"./toUpper-DN59t43l.js";import{a as Ra}from"./team-DLwXXgYX.js";import"./MoreVert-BOGr0n7e.js";import"./DeleteOutline-BiwjsR6p.js";import"./get-safe-url-HOLWsAs0.js";import"./ButtonGroup-CiscHb2s.js";import"./getValidReactChildren-Ck9KmKnh.js";import"./FilterList-Be5ZzrNM.js";import"./CSSTransition-R4tGAk7r.js";import"./emotion-cache.browser.esm-DyzCXqsA.js";import"./index-DBii9-f-.js";import"./typeof-QjJsDpFa.js";import"./raf-schd.esm-B2LNukSh.js";import"./redux-DfszZyTl.js";import"./useThemeProps-CFIloaX5.js";import"./html-title-CifiMfjt.js";import"./Clear-siFOH-um.js";import"./ChevronRight-CpLm1bKY.js";import"./ChevronLeft-BaZj3l6K.js";import"./Search-BwAHZ5GK.js";import"./omit-DeumLxdH.js";import"./edit.svg-BgAMrWjM.js";import"./index-CFu4UTTj.js";import"./iframe-Dq0hkTrq.js";import"./index-DBJqSNjU.js";import"./KeyboardArrowDown-DdCuxSq1.js";import"./Autocomplete-DQwU_oez.js";import"./ListSubheader-I1pRAfr2.js";import"./Verified-CWEd1DVE.js";import"./VerifiedUser-CigB8Fdv.js";import"./url-join-DoFkjCNr.js";import"./index-BojVbZw0.js";import"./spaces-DBXblECR.js";import"./OpenInNew-CCra_7I0.js";import"./index-DRYJ0xIl.js";import"./index-b78VjA-Y.js";import"./decode-DPztD6kB.js";import"./cloneDeep-B3VWXnFc.js";import"./ListItemButton-C9pXyehQ.js";import"./Stepper-Bn1MKAsJ.js";import"./is-path-prefix-equal-Dr7EUhi7.js";const Pa=Ae(t.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"})),Ta=Ae(t.jsx("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4z"})),Ia=Ae(t.jsx("path",{d:"M8 5v14l11-7z"})),Oo=Ae(t.jsx("path",{d:"M22 5.18 10.59 16.6l-4.24-4.24 1.41-1.41 2.83 2.83 10-10zm-2.21 5.04c.13.57.21 1.17.21 1.78 0 4.42-3.58 8-8 8s-8-3.58-8-8 3.58-8 8-8c1.58 0 3.04.46 4.28 1.25l1.44-1.44C16.1 2.67 14.13 2 12 2 6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-1.19-.22-2.33-.6-3.39z"})),Da=Ae(t.jsx("path",{d:"M14.17 5 19 9.83V19H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V9.83c0-.53-.21-1.04-.59-1.41l-4.83-4.83c-.37-.38-.88-.59-1.41-.59M7 15h10v2H7zm0-4h10v2H7zm0-4h7v2H7z"})),Uo=Ae(t.jsx("path",{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"})),Ba=Ae(t.jsx("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"})),Oa=Ae(t.jsx("path",{d:"M5 20h14v-2H5zm0-10h4v6h6v-6h4l-7-7z"})),Ua=Ae(t.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"})),Na=Ae(t.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}));function _r(e,r){var n={};return r=Ss(r),Es(e,function(i,a,s){ks(n,a,r(i,a,s))}),n}function No({children:e=null,...r}){const{t:n}=de(),{api:i}=ye(),{blocklet:a}=De(),s=a?.settings?.autoCheckUpdate,f=async l=>{await i.updateAutoCheckUpdate({input:{did:a.meta.did,autoCheckUpdate:l}})},c=async()=>{try{const l=!s?.enabled;await f({enabled:l}),Y.success(n(l?"storage.spaces.autoCheckUpdate.enabled":"storage.spaces.autoCheckUpdate.disabled"))}catch(l){Y.error(l.message)}},d=!!s?.enabled;return t.jsxs(B,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[e,t.jsx(be,{title:n("storage.spaces.autoCheckUpdate.title"),arrow:!0,placement:"right",children:t.jsx("div",{children:t.jsx(Ti,{checked:d,onChange:c,name:"enableWelcomePage",style:{...r.style,zoom:.8}})})})]})}No.propTypes={children:x.any};function Sr(e){function r({sx:n,...i}){return t.jsx(e,{...i,sx:{color:"text.primary",...n}})}return r}const La={..._r(Oi,Sr),..._r(Ri,Sr)},Aa=(e,r)=>{let{description:n}=e;return(Object.values(je.CHAIN_PROP_MAP).includes(e.key)||Z.isEnvShareable(e))&&(n?n=`${n} (${r("blocklet.config.sharedToAllComponents")})`:n=r("blocklet.config.sharedToAllComponents")),n&&t.jsx("div",{style:{marginLeft:12},children:n})},gn=(e,r,n=[])=>!n?.length&&!e.custom&&!["CHAIN_ID","CHAIN_HOST"].includes(e.key)&&!r.meta.environments.find(i=>i.name===e.key)&&r.children.every(i=>!i.meta.environments.find(a=>a.name===e.key))?!0:e.custom,Er=e=>[je.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE].includes(e)?!0:!(e.startsWith("BLOCKLET_")||e.startsWith("COMPONENT_")),xn=e=>[je.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE].includes(e)===!1;function Lo({blocklet:e,ancestors:r=[]}){const n=ye(),{palette:i}=gt(),{inService:a}=n,{t:s}=k.useContext(Se),f=[...r.map(o=>o.meta.did),e.meta.did],c=()=>Y.success(s("blocklet.config.changedTip")),d=o=>gn(o,e,r);if(st(e.status)||e.status==="unknown"&&st(e.status))return null;const l=o=>new Promise(async(h,b)=>{if(!o.key.trim()||!o.value.trim()){Y.error(s("blocklet.config.environment.keyValueRequired")),b();return}if(Er(o.key)===!1){Y.error(s("blocklet.config.environment.invalidKey")),b();return}o.custom=xn(o.key);try{const R=await n.api.configBlocklet({input:{did:f,configs:[o]}});c(R.blocklet),h()}catch(R){Y.error(xe(R)),b()}}),y=(o,h)=>new Promise(async(b,R)=>{if(o.required&&(!o.key.trim()||!o.value.trim())){Y.error(s("blocklet.config.environment.keyValueRequired")),R();return}if(Er(o.key)===!1){Y.error(s("blocklet.config.environment.invalidKey")),R();return}if(o.key===je.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE){const M=Rs(o);if(M){Y.error(M),R();return}}const E=[{...o,value:o.secure&&o.value==="__encrypted__"?"":o.value}];if(o.key!==h.key){if(!gn(o,e,r)){Y.error("Only key of custom env can be changed"),R();return}E.push({key:h.key,custom:xn(o.key)})}try{const M=await n.api.configBlocklet({input:{did:f,configs:E}});c(M.blocklet),b()}catch(M){Y.error(xe(M)),R()}}),p=o=>new Promise(async(h,b)=>{if(o.required){Y.error(s("blocklet.config.environment.deleteForbidden")),b();return}if(!gn(o,e,r)){Y.error(s("environmentTips.deleteForbidden")),b();return}try{const R=await n.api.configBlocklet({input:{did:f,configs:[{key:o.key,custom:xn(o.key)}]}});c(R.blocklet),h()}catch(R){Y.error(xe(R)),b()}}),C=(e.configs||[]).filter(o=>!je.BLOCKLET_CONFIGURABLE_KEY[o.key]||[je.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE].includes(o.key)),m=Z.getSharedConfigObj(r[0],e),v=Z.getComponentMissingConfigs(e,r[0]),j=C.map(o=>({...o,value:Object.values(je.CHAIN_PROP_MAP).includes(o.key)&&Object.keys(m).includes(o.key)?m[o.key]:m[o.key]||o.value})),w=j.some(o=>o.key&&o.key.startsWith("BWA_")),S={onRowAdd:l,onRowUpdate:y,onRowDelete:p,isDeletable:d},u=()=>[{title:s("common.key"),field:"key",initialEditValue:"",width:"30%",render:o=>t.jsx(Cr,{value:o.value,style:{color:o.required&&!o.value?i.error.main:i.text.primary,fontWeight:o.required?"bold":"normal"},children:o.key}),editComponent:o=>{const{value:h,rowData:b,onChange:R}=o;return t.jsx(kr,{children:t.jsx(Ce,{fullWidth:!0,size:"small",value:Ui.escapeTag(h),onChange:E=>R(E.target.value),variant:"outlined",label:"Key",placeholder:s("blocklet.config.environment.key"),margin:"dense",autoFocus:!0,slotProps:{input:{readOnly:d(b)===!1}}})})}},{title:s("common.value"),field:"value",initialEditValue:"",width:"calc((100% - (96px + 30%)) / 1)",render:o=>o.value?o.secure?"******":t.jsx(Cr,{unstyled:!0,value:o.value,style:{wordBreak:"break-all"},children:o.value}):null,editComponent:o=>{const{value:h,rowData:b,onChange:R}=o;return t.jsxs(kr,{children:[t.jsx(Ce,{fullWidth:!0,size:"small",value:h==="__encrypted__"?"":h,onChange:E=>R(E.target.value),variant:"outlined",label:s("common.value"),placeholder:s("blocklet.config.environment.value"),margin:"dense"}),Aa(b,s)]})}}];return t.jsxs(Ma,{children:[!!v.length&&t.jsx(Un,{severity:"error",style:{marginTop:24},children:s("blocklet.config.missingRequired")}),w&&t.jsx(Un,{severity:"info",children:s("blocklet.config.environment.tip")}),t.jsx(Ln,{permission:a?"":"mutate_blocklets",role:a?ft:[],children:o=>t.jsx(Di,{className:"config-table",children:t.jsx(Bi,{title:t.jsx(B,{sx:{fontWeight:"bold"},children:s("common.environments")}),columns:u(),icons:La,options:{emptyRowsWhenPaging:!1,actionsColumnIndex:-1,tableLayout:"auto",maxBodyHeight:"100%",paging:!1,search:!1,actionsCellStyle:{padding:"0",textAlign:"right",width:"80px"}},localization:{header:{actions:s("common.actions")},body:{emptyDataSourceMessage:s("common.noData"),editRow:{deleteText:s("environmentTips.delete")}}},data:j,editable:o?S:{}})})})]})}Lo.propTypes={blocklet:x.object.isRequired,ancestors:x.array};const Ma=oe.div`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-2MKd-1Yf.js","./index-BeQc3UkQ.js","./index-DGkT7afN.css","./url-join-Di70zMv6.js","./index-CODhl4Ao.js","./_createAggregator-3CFJfow4.js","./depsEqual-AZEPsRt3.js","./index-aU6di1GB.js","./index-DRYJ0xIl.js","./toUpper-DLp0iOYu.js","./index-B5LvOF-F.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{aG as Ae,j as t,du as Ss,gC as Es,iE as ks,V as de,bo as ye,K as B,Q as be,H as Y,o as x,f as gt,r as k,p as Se,bG as st,b as je,i as Z,Z as Un,bF as ft,_ as xe,iF as Rs,t as Ce,s as oe,a5 as he,aW as uo,T as ue,$ as Qt,dJ as mt,y as _e,b9 as Ps,bK as Ts,aI as H,b2 as Is,gq as Ds,gr as Bs,C as we,f6 as po,hC as Wn,x as Os,ay as Kt,w as Us,iG as Ns,iH as Ls,v as Be,iI as As,I as Ms,a1 as zs,iJ as fo,bp as mo,X as Ne,f8 as Fs,f3 as qs,aB as $s,aC as Ws,bl as Hs,aD as Ks,aE as fe,aP as Gs,cT as Vs,U as Ys,eP as cr,bj as Qs,h as Zs,dy as It,iK as Xs,g0 as ho,iL as Js,iM as ei,eA as me,iN as go,dH as ti,iO as ni,hd as ri,fQ as oi,iP as si,cJ as dr,hx as Hn,aw as ii,bB as Zt,dr as ze,bv as ai,bw as ur,z as Gt,cw as li,G as Fe,aQ as pr,gm as xo,F as He,h9 as ci,bE as kt,cp as fr,hu as di,fo as mr,bh as ui,L as xt,E as yo,bn as pi,a0 as fi,O as Rt,a_ as Kn,iQ as mi,a$ as Le,aA as hr,cR as hi,ae as it,aN as vo,bY as Gn,cB as gi,iR as xi,ba as yi,A as Vn,aV as Nn,g as vi,aT as ut,P as fn,W as Ci,bH as Co,aJ as bi,by as bo,aS as ji,J as wi,ff as gr,g8 as xr,g9 as yr,Y as vr,cQ as _i,ga as Si,bX as Ei,iS as ki}from"./index-BeQc3UkQ.js";import{a as Ri,S as Pi,u as Yn}from"./actions-CVw0Ioh6.js";import{S as Ti,a as Ii}from"./switch-control-Ce7-RZ39.js";import{u as De}from"./blocklet-DI09kb3z.js";import{P as Ln,w as Xt}from"./permission-fAWDL6eA.js";import{E as jo}from"./Edit-BC3nr7bV.js";import{T as Di,M as Bi,t as Oi}from"./table-icons-CRF7M3DQ.js";import{s as Ui,F as wo,A as Ni,b as Li,c as Ai,d as Mi,R as ot,L as zi,I as Fi,S as dt,a as Pt,B as qi}from"./preference-BdCzfdKd.js";import{C as Cr}from"./click-to-copy-D3DsyQ7B.js";import{O as mn}from"./index-DNUQq8Bi.js";import{A as $i}from"./Add-DsCZxomS.js";import{A as Jt}from"./Link-DWefbDaG.js";import{C as Wi,c as Hi,b as Ki,f as _o,A as Gi,_ as Vi,a as Yi,e as Qi,d as So,s as Zi,L as Xi,u as Ji,g as ea,S as ta}from"./item-DixRT1Ir.js";import{T as na,L as ra,a as An,u as br,W as oa,P as sa}from"./index-xstE610P.js";import{e as Eo}from"./engine-PI4c2H--.js";import{u as ia,C as aa,D as la,a as ca,b as da,S as ko}from"./connect-to-D2kofpuz.js";import{C as ua,u as pa,A as fa}from"./agreement-CN5OCdHh.js";import{D as Ro}from"./Done-B-lhh5Lr.js";import{C as ma}from"./Google-DvG9EWSC.js";import{I as Po,f as ha,a as ga,B as xa}from"./install-from-url-DDaq0WfF.js";import{a as jr}from"./api-DSxoqzJR.js";import{v as To,e as ya,a as Vt}from"./util-D64hwso0.js";import{u as Io}from"./use-mobile-BoSC-OO1.js";import{A as va}from"./ArrowDropDown-Cm-Ihf0X.js";import{u as Ca}from"./useLocalStorage-CAyV6Ga8.js";import{r as en}from"./index-CODhl4Ao.js";import{b as tn}from"./without-wallet-BasvtIaA.js";import{E as Qn}from"./ErrorOutline-B8rqfUz9.js";import{H as ba}from"./HelpOutline-DV_Sx2ni.js";import{C as ja}from"./lock.svg-CfRs8nBP.js";import{D as nn}from"./Delete-Dfzx-_QK.js";import{L as Do}from"./Launch-CtQmWL-A.js";import{D as wa}from"./delete-confirm-y9uI0hXG.js";import{W as ht,B as Mn,m as _a}from"./status--oG1pao2.js";import{R as Sa}from"./Replay-DL5tXUkH.js";import{R as Ea,a as wr}from"./url-evaluation-CnA0uWcs.js";import{A as Bo}from"./actions-BAAc2dMh.js";import{v as hn}from"./index-6nMPypbs.js";import{t as ka}from"./toUpper-DLp0iOYu.js";import{a as Ra}from"./team-B5ZkAUsr.js";import"./MoreVert-trwGA3wl.js";import"./DeleteOutline-DpQcJ9uI.js";import"./get-safe-url-BR_QU8Dh.js";import"./ButtonGroup-BBkFKNOE.js";import"./getValidReactChildren-COj4IOg4.js";import"./FilterList-rsYn09vK.js";import"./CSSTransition-Bdj4Mjb5.js";import"./emotion-cache.browser.esm-D3p6zzp2.js";import"./index-DBii9-f-.js";import"./typeof-QjJsDpFa.js";import"./raf-schd.esm-y75m-HYf.js";import"./redux-DfszZyTl.js";import"./useThemeProps-BT_wjfR7.js";import"./html-title-CHWL92Ab.js";import"./Clear-C3sN6cHh.js";import"./ChevronRight-CMxsc1-C.js";import"./ChevronLeft-LUIxb-Gs.js";import"./Search-3NZ8vA4F.js";import"./omit-BmEXjsUv.js";import"./edit.svg-BRRfsd3L.js";import"./index-aU6di1GB.js";import"./iframe-DJmf2DN1.js";import"./index-8mapgkUu.js";import"./KeyboardArrowDown-DrxfizRQ.js";import"./Autocomplete-3RVWHTcY.js";import"./ListSubheader-6QF36c7B.js";import"./Verified-Wsp8TANt.js";import"./VerifiedUser-BtmbPbB1.js";import"./url-join-Di70zMv6.js";import"./index-BojVbZw0.js";import"./spaces-CfDVuFGr.js";import"./OpenInNew-BPFABZ3A.js";import"./index-DRYJ0xIl.js";import"./index-xEJdUfGB.js";import"./decode-DPztD6kB.js";import"./cloneDeep-Dt4wqcIj.js";import"./ListItemButton-3I3mSJkP.js";import"./Stepper-Czt9JHmf.js";import"./is-path-prefix-equal-DSamcBqo.js";const Pa=Ae(t.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"})),Ta=Ae(t.jsx("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4z"})),Ia=Ae(t.jsx("path",{d:"M8 5v14l11-7z"})),Oo=Ae(t.jsx("path",{d:"M22 5.18 10.59 16.6l-4.24-4.24 1.41-1.41 2.83 2.83 10-10zm-2.21 5.04c.13.57.21 1.17.21 1.78 0 4.42-3.58 8-8 8s-8-3.58-8-8 3.58-8 8-8c1.58 0 3.04.46 4.28 1.25l1.44-1.44C16.1 2.67 14.13 2 12 2 6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-1.19-.22-2.33-.6-3.39z"})),Da=Ae(t.jsx("path",{d:"M14.17 5 19 9.83V19H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V9.83c0-.53-.21-1.04-.59-1.41l-4.83-4.83c-.37-.38-.88-.59-1.41-.59M7 15h10v2H7zm0-4h10v2H7zm0-4h7v2H7z"})),Uo=Ae(t.jsx("path",{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"})),Ba=Ae(t.jsx("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"})),Oa=Ae(t.jsx("path",{d:"M5 20h14v-2H5zm0-10h4v6h6v-6h4l-7-7z"})),Ua=Ae(t.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"})),Na=Ae(t.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}));function _r(e,r){var n={};return r=Ss(r),Es(e,function(i,a,s){ks(n,a,r(i,a,s))}),n}function No({children:e=null,...r}){const{t:n}=de(),{api:i}=ye(),{blocklet:a}=De(),s=a?.settings?.autoCheckUpdate,f=async l=>{await i.updateAutoCheckUpdate({input:{did:a.meta.did,autoCheckUpdate:l}})},c=async()=>{try{const l=!s?.enabled;await f({enabled:l}),Y.success(n(l?"storage.spaces.autoCheckUpdate.enabled":"storage.spaces.autoCheckUpdate.disabled"))}catch(l){Y.error(l.message)}},d=!!s?.enabled;return t.jsxs(B,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[e,t.jsx(be,{title:n("storage.spaces.autoCheckUpdate.title"),arrow:!0,placement:"right",children:t.jsx("div",{children:t.jsx(Ti,{checked:d,onChange:c,name:"enableWelcomePage",style:{...r.style,zoom:.8}})})})]})}No.propTypes={children:x.any};function Sr(e){function r({sx:n,...i}){return t.jsx(e,{...i,sx:{color:"text.primary",...n}})}return r}const La={..._r(Oi,Sr),..._r(Ri,Sr)},Aa=(e,r)=>{let{description:n}=e;return(Object.values(je.CHAIN_PROP_MAP).includes(e.key)||Z.isEnvShareable(e))&&(n?n=`${n} (${r("blocklet.config.sharedToAllComponents")})`:n=r("blocklet.config.sharedToAllComponents")),n&&t.jsx("div",{style:{marginLeft:12},children:n})},gn=(e,r,n=[])=>!n?.length&&!e.custom&&!["CHAIN_ID","CHAIN_HOST"].includes(e.key)&&!r.meta.environments.find(i=>i.name===e.key)&&r.children.every(i=>!i.meta.environments.find(a=>a.name===e.key))?!0:e.custom,Er=e=>[je.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE].includes(e)?!0:!(e.startsWith("BLOCKLET_")||e.startsWith("COMPONENT_")),xn=e=>[je.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE].includes(e)===!1;function Lo({blocklet:e,ancestors:r=[]}){const n=ye(),{palette:i}=gt(),{inService:a}=n,{t:s}=k.useContext(Se),f=[...r.map(o=>o.meta.did),e.meta.did],c=()=>Y.success(s("blocklet.config.changedTip")),d=o=>gn(o,e,r);if(st(e.status)||e.status==="unknown"&&st(e.status))return null;const l=o=>new Promise(async(h,b)=>{if(!o.key.trim()||!o.value.trim()){Y.error(s("blocklet.config.environment.keyValueRequired")),b();return}if(Er(o.key)===!1){Y.error(s("blocklet.config.environment.invalidKey")),b();return}o.custom=xn(o.key);try{const R=await n.api.configBlocklet({input:{did:f,configs:[o]}});c(R.blocklet),h()}catch(R){Y.error(xe(R)),b()}}),y=(o,h)=>new Promise(async(b,R)=>{if(o.required&&(!o.key.trim()||!o.value.trim())){Y.error(s("blocklet.config.environment.keyValueRequired")),R();return}if(Er(o.key)===!1){Y.error(s("blocklet.config.environment.invalidKey")),R();return}if(o.key===je.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE){const M=Rs(o);if(M){Y.error(M),R();return}}const E=[{...o,value:o.secure&&o.value==="__encrypted__"?"":o.value}];if(o.key!==h.key){if(!gn(o,e,r)){Y.error("Only key of custom env can be changed"),R();return}E.push({key:h.key,custom:xn(o.key)})}try{const M=await n.api.configBlocklet({input:{did:f,configs:E}});c(M.blocklet),b()}catch(M){Y.error(xe(M)),R()}}),p=o=>new Promise(async(h,b)=>{if(o.required){Y.error(s("blocklet.config.environment.deleteForbidden")),b();return}if(!gn(o,e,r)){Y.error(s("environmentTips.deleteForbidden")),b();return}try{const R=await n.api.configBlocklet({input:{did:f,configs:[{key:o.key,custom:xn(o.key)}]}});c(R.blocklet),h()}catch(R){Y.error(xe(R)),b()}}),C=(e.configs||[]).filter(o=>!je.BLOCKLET_CONFIGURABLE_KEY[o.key]||[je.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE].includes(o.key)),m=Z.getSharedConfigObj(r[0],e),v=Z.getComponentMissingConfigs(e,r[0]),j=C.map(o=>({...o,value:Object.values(je.CHAIN_PROP_MAP).includes(o.key)&&Object.keys(m).includes(o.key)?m[o.key]:m[o.key]||o.value})),w=j.some(o=>o.key&&o.key.startsWith("BWA_")),S={onRowAdd:l,onRowUpdate:y,onRowDelete:p,isDeletable:d},u=()=>[{title:s("common.key"),field:"key",initialEditValue:"",width:"30%",render:o=>t.jsx(Cr,{value:o.value,style:{color:o.required&&!o.value?i.error.main:i.text.primary,fontWeight:o.required?"bold":"normal"},children:o.key}),editComponent:o=>{const{value:h,rowData:b,onChange:R}=o;return t.jsx(kr,{children:t.jsx(Ce,{fullWidth:!0,size:"small",value:Ui.escapeTag(h),onChange:E=>R(E.target.value),variant:"outlined",label:"Key",placeholder:s("blocklet.config.environment.key"),margin:"dense",autoFocus:!0,slotProps:{input:{readOnly:d(b)===!1}}})})}},{title:s("common.value"),field:"value",initialEditValue:"",width:"calc((100% - (96px + 30%)) / 1)",render:o=>o.value?o.secure?"******":t.jsx(Cr,{unstyled:!0,value:o.value,style:{wordBreak:"break-all"},children:o.value}):null,editComponent:o=>{const{value:h,rowData:b,onChange:R}=o;return t.jsxs(kr,{children:[t.jsx(Ce,{fullWidth:!0,size:"small",value:h==="__encrypted__"?"":h,onChange:E=>R(E.target.value),variant:"outlined",label:s("common.value"),placeholder:s("blocklet.config.environment.value"),margin:"dense"}),Aa(b,s)]})}}];return t.jsxs(Ma,{children:[!!v.length&&t.jsx(Un,{severity:"error",style:{marginTop:24},children:s("blocklet.config.missingRequired")}),w&&t.jsx(Un,{severity:"info",children:s("blocklet.config.environment.tip")}),t.jsx(Ln,{permission:a?"":"mutate_blocklets",role:a?ft:[],children:o=>t.jsx(Di,{className:"config-table",children:t.jsx(Bi,{title:t.jsx(B,{sx:{fontWeight:"bold"},children:s("common.environments")}),columns:u(),icons:La,options:{emptyRowsWhenPaging:!1,actionsColumnIndex:-1,tableLayout:"auto",maxBodyHeight:"100%",paging:!1,search:!1,actionsCellStyle:{padding:"0",textAlign:"right",width:"80px"}},localization:{header:{actions:s("common.actions")},body:{emptyDataSourceMessage:s("common.noData"),editRow:{deleteText:s("environmentTips.delete")}}},data:j,editable:o?S:{}})})})]})}Lo.propTypes={blocklet:x.object.isRequired,ancestors:x.array};const Ma=oe.div`
|
|
3
3
|
.config-table {
|
|
4
4
|
margin-bottom: 24px;
|
|
5
5
|
position: relative;
|
|
@@ -66,7 +66,7 @@ import{aG as Ae,j as t,du as Ss,gC as Es,iE as ks,V as de,bo as ye,K as B,Q as b
|
|
|
66
66
|
.ux-dialog_closeButton {
|
|
67
67
|
margin: 0;
|
|
68
68
|
}
|
|
69
|
-
`,Fa=k.lazy(()=>Ts(()=>import("./index-
|
|
69
|
+
`,Fa=k.lazy(()=>Ts(()=>import("./index-2MKd-1Yf.js").then(e=>e.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url).then(e=>({default:e.Uploader}))),qa="/blocklet/component/upload",Rr=[".html",".htm",".tgz",".zip"],$a=Number(window.env?.maxUploadFileSize)||H.MAX_UPLOAD_FILE_SIZE,Wa=$a*1024*1024;function Ao({did:e,prefix:r,headers:n=()=>({}),onUploaded:i=mt,open:a=!1,onClose:s=mt}){const{t:f,locale:c}=de(),d=k.useRef(null),l=k.useCallback(y=>{const{status:p,data:C}=y;if(p===200){i(C);return}Y.error(f("blocklet.component.addComponentTip.uploadFailed"))},[i,f]);return k.useEffect(()=>{a?d.current?.open():d.current?.close()},[a]),t.jsx(Ha,{id:`component-uploader-${e}`,children:t.jsx(Fa,{ref:d,locale:c,popup:!0,disableXssAttack:!0,onUploadFinish:l,plugins:[],onClose:s,installerProps:{disabled:!0},apiPathProps:{uploader:_e(r,qa,e),disableMediaKitPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileTypes:Rr,maxFileSize:Wa,maxNumberOfFiles:1}},tusProps:{headers:n},dashboardProps:{note:f("blocklet.component.addComponentTip.allowedFileTypes",{types:Rr.map(y=>y.replace(".","")).join(", ")})}})},`component-uploader-${e}`)}Ao.propTypes={did:x.string.isRequired,prefix:x.string.isRequired,open:x.bool,headers:x.func,onUploaded:x.func,onClose:x.func};const Ha=Ps(B)`
|
|
70
70
|
.uploader-wrapper {
|
|
71
71
|
display: inline-flex;
|
|
72
72
|
position: relative;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as P,V as E,A as I,j as e,I as C,C as W,cG as j,K as T,w as k,H as u,aI as S,u as U,x as v,as as N,ag as R}from"./index-
|
|
1
|
+
import{r as P,V as E,A as I,j as e,I as C,C as W,cG as j,K as T,w as k,H as u,aI as S,u as U,x as v,as as N,ag as R}from"./index-BeQc3UkQ.js";import{w as b}from"./wrap-locale--ZpyxCeq.js";import{g as L}from"./get-safe-url-BR_QU8Dh.js";import"./index-DiZi9bmR.js";function K({SessionContext:n,webWalletUrl:a,onSuccess:r}){const{api:o,session:t}=P.useContext(n),{t:s,locale:g}=E(),h=I(),{searchParams:l}=new URL(window.location.href),p=l.get("redirect"),m=async(c,w)=>{r(c,w),await t.refresh(),u.success(s("exchangePassport.success")),setTimeout(()=>{if(p){const i=decodeURIComponent(p);i.startsWith(S.WELLKNOWN_SERVICE_PATH_PREFIX)?h(i,{replace:!0}):window.location.href=L(i)}else window.location.href=window.env.pathPrefix||window.env.apiPrefix||"/"},3e3)},f=c=>{u.error(c.message)},d={},x=l.get("componentId");return x&&(d.componentId=x),t.loading?e.jsx(C,{children:e.jsx(W,{})}):e.jsx(j,{did:window?.blocklet?.appPid||window?.env?.appPid,children:e.jsx(T,{sx:{maxWidth:"100%",height:"100%"},children:e.jsx(k,{popup:!0,open:!0,className:"connect",action:"exchange-passport",checkFn:o.get,checkTimeout:10*60*1e3,webWalletUrl:a,onSuccess:m,onError:f,locale:g,messages:{title:s("exchangePassport.dialog.title"),scan:s("exchangePassport.dialog.scan"),confirm:s("exchangePassport.dialog.confirm"),success:s("exchangePassport.dialog.success")},extraParams:d,extraContent:null,hideCloseButton:!0})})})}const _=b(K);function V(){const{info:n}=U(),a=v(n),r=(o,t)=>{o.sessionToken&&R(t(o.sessionToken))};return e.jsx(_,{SessionContext:N,webWalletUrl:a,onSuccess:r})}export{V as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,K as g,a0 as ue,s as R,a1 as K,V as U,r as f,a2 as fe,y as v,a3 as Me,a4 as ze,o as E,a5 as oe,a6 as We,H as I,_ as Q,T as $,a7 as He,v as B,$ as Ve,D as qe,t as Ye,Z as xe,C as ge,a8 as Ke,a9 as Qe,aa as Je,u as N,p as Ze,ab as M,n as se,B as Xe,ac as re,A as ye,q as ae,ad as et,W as ne,L as J,w as we,x as Z,ae as tt,af as ke,ag as st,b as P,ah as le,ai as ot,N as rt,aj as at,ak as nt,O as it,i as lt,f as ct,al as dt,am as be,an as Se,ao as ve,ap as L,aq as je,ar as Re,as as Ce,at as Pe,J as pt,au as Te,av as mt,aw as ce}from"./index-
|
|
1
|
+
import{j as e,K as g,a0 as ue,s as R,a1 as K,V as U,r as f,a2 as fe,y as v,a3 as Me,a4 as ze,o as E,a5 as oe,a6 as We,H as I,_ as Q,T as $,a7 as He,v as B,$ as Ve,D as qe,t as Ye,Z as xe,C as ge,a8 as Ke,a9 as Qe,aa as Je,u as N,p as Ze,ab as M,n as se,B as Xe,ac as re,A as ye,q as ae,ad as et,W as ne,L as J,w as we,x as Z,ae as tt,af as ke,ag as st,b as P,ah as le,ai as ot,N as rt,aj as at,ak as nt,O as it,i as lt,f as ct,al as dt,am as be,an as Se,ao as ve,ap as L,aq as je,ar as Re,as as Ce,at as Pe,J as pt,au as Te,av as mt,aw as ce}from"./index-BeQc3UkQ.js";import{t as ht}from"./toLower-D3hDe9vm.js";import{a as W,u as ut,W as ft,P as Ee,L as Be}from"./index-xstE610P.js";import{A as xt,D as ie,u as gt,W as yt,P as wt,a as De,L as Ue}from"./wait-container-XW4Jhu4r.js";import{g as X}from"./get-safe-url-BR_QU8Dh.js";import{u as de}from"./useLocalStorage-CAyV6Ga8.js";import{L as kt}from"./Launch-CtQmWL-A.js";import{D as bt}from"./DeleteOutline-DpQcJ9uI.js";import{g as St,i as vt}from"./spaces-CfDVuFGr.js";import{I as jt}from"./MoreVert-trwGA3wl.js";import"./url-join-Di70zMv6.js";import"./use-mobile-BoSC-OO1.js";import"./api-DSxoqzJR.js";function Oe({children:s,selected:n=!1}){return e.jsxs(Rt,{children:[s,e.jsx(g,{className:`selected-container ${n?"selected":""}`,children:e.jsx(ue,{className:"selected-icon"})})]})}const Rt=R(g)`
|
|
2
2
|
position: relative;
|
|
3
3
|
|
|
4
4
|
.selected-container {
|