@abtnode/webapp 1.16.29-beta-44e63d18 → 1.16.29-beta-0c32fe15
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/{Add-CtWL6e1q.js → Add-R25cZfQ7.js} +1 -1
- package/dist/assets/{ArrowDropDown-DV5W7OwL.js → ArrowDropDown-B70H9TLI.js} +1 -1
- package/dist/assets/{Autocomplete-DyU5KK53.js → Autocomplete-lQIAHH0f.js} +1 -1
- package/dist/assets/{Breadcrumbs-BMUTpqOP.js → Breadcrumbs-DKONJeCv.js} +1 -1
- package/dist/assets/{ButtonGroup-CkKt07uc.js → ButtonGroup-DIddKbz4.js} +1 -1
- package/dist/assets/{CheckCircle-CstzeHGf.js → CheckCircle-BJCDxSmg.js} +1 -1
- package/dist/assets/{ChevronLeft-ChWv_0Iv.js → ChevronLeft-DkAxUxaL.js} +1 -1
- package/dist/assets/{ChevronRight-B2EtVjwt.js → ChevronRight-BmodGMIR.js} +1 -1
- package/dist/assets/{Close-CyRwkk-q.js → Close-Crlhu1gh.js} +1 -1
- package/dist/assets/{Delete-DvKqIX20.js → Delete-CrjB4xBG.js} +1 -1
- package/dist/assets/DeleteOutline-25NmKYhJ.js +1 -0
- package/dist/assets/{Done-BQwAUEUo.js → Done-Dh1HNrje.js} +1 -1
- package/dist/assets/{Edit-CARh1zds.js → Edit-BmjnjV4o.js} +1 -1
- package/dist/assets/{EditIcon-C_npOrmv.js → EditIcon-Dmb-RHKW.js} +1 -1
- package/dist/assets/{FilterList-BvE0UAo0.js → FilterList-1v-QYJKg.js} +1 -1
- package/dist/assets/{Google-ZjI0DrLI.js → Google-BVA2G_jw.js} +1 -1
- package/dist/assets/{Https-6N1TcHuj.js → Https-Bk4pEwaI.js} +1 -1
- package/dist/assets/{InputAdornment-7qAmlR7q.js → InputAdornment-Dq98l8WX.js} +1 -1
- package/dist/assets/{InputLabel-BTEO1M40.js → InputLabel-C0MowDYM.js} +1 -1
- package/dist/assets/{LastPage-GiOUS0-i.js → LastPage-D3djMPDV.js} +1 -1
- package/dist/assets/{Launch-BNP89Oc8.js → Launch-BXNO5-AB.js} +1 -1
- package/dist/assets/{Link-DPfyUdIn.js → Link-iUvOe_0B.js} +1 -1
- package/dist/assets/{LoadingButton-DQPvdwNz.js → LoadingButton-zGO5vZVM.js} +1 -1
- package/dist/assets/{LockIcon-DsRpj_gz.js → LockIcon-D5qESv6d.js} +1 -1
- package/dist/assets/{Loop-CqukocCd.js → Loop-BuS5QyRc.js} +1 -1
- package/dist/assets/{MoreVert-dIXJT0E2.js → MoreVert-j9UJKkr6.js} +1 -1
- package/dist/assets/{Pagination-Xjpbun1V.js → Pagination-CU9MiHeH.js} +1 -1
- package/dist/assets/{Public-jBeoVLdm.js → Public-CNI1n1ip.js} +1 -1
- package/dist/assets/{SchemaReference.es-DmsnLofb.js → SchemaReference.es-BoUIpk_7.js} +1 -1
- package/dist/assets/{Search-CXF_z21D.js → Search-DdOWC3-l.js} +1 -1
- package/dist/assets/{Select-Ck-rwnxI.js → Select-DFShmSX4.js} +1 -1
- package/dist/assets/{Skeleton-bh5z66KF.js → Skeleton-DZXKedF8.js} +1 -1
- package/dist/assets/{Slider-mP-9Rabl.js → Slider-DwDD12e9.js} +1 -1
- package/dist/assets/Stepper-X7fZGQnQ.js +1 -0
- package/dist/assets/{TextField-Cb0I13kb.js → TextField-BIxqRuYh.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-GwWpjRQx.js → ToggleButtonGroup-D8M7B8jp.js} +1 -1
- package/dist/assets/{ViewList-Bf6MkAgw.js → ViewList-L_cnowYR.js} +1 -1
- package/dist/assets/{actions-D4SIeJQs.js → actions-BcyDmatM.js} +1 -1
- package/dist/assets/{actions-D2Nr19i-.js → actions-XylnHbsY.js} +1 -1
- package/dist/assets/agreement-B-WzIvLt.js +231 -0
- package/dist/assets/api-CL59ZI-3.js +1 -0
- package/dist/assets/{app-avatar-ClIQjaP-.js → app-avatar-Ckes_yQg.js} +1 -1
- package/dist/assets/ar-JbMny-gg.js +1 -0
- package/dist/assets/{audit-logs-CAczoYFX.js → audit-logs-BDgFNcNM.js} +1 -1
- package/dist/assets/blocklet-DfDTBrqe.js +1 -0
- package/dist/assets/{brace-fold.es-D4FLzACD.js → brace-fold.es-CTlHj9Yh.js} +1 -1
- package/dist/assets/{bundle-avatar-CGsU-HbI.js → bundle-avatar-BY2nARYo.js} +1 -1
- package/dist/assets/{chart-og0vxN0J.js → chart-2Xt2fIeo.js} +1 -1
- package/dist/assets/{click-to-copy-DKenG9LX.js → click-to-copy-C_IAO7KR.js} +1 -1
- package/dist/assets/{closebrackets.es-B9xGBc1l.js → closebrackets.es-DPAnsadO.js} +1 -1
- package/dist/assets/{codemirror.es-DnfFbgQm.js → codemirror.es-D5rCWz3k.js} +1 -1
- package/dist/assets/{comment.es-DcJgW-0Z.js → comment.es-gPWKA0Nj.js} +1 -1
- package/dist/assets/{config-navigation-CrhKH9Mi.js → config-navigation-BIdJOyx5.js} +1 -1
- package/dist/assets/de-CE9g_-X2.js +1 -0
- package/dist/assets/{delete-confirm-DX-XHcl9.js → delete-confirm-CQ5chdBo.js} +1 -1
- package/dist/assets/{detail-ADHPCJ2i.js → detail-fXteNAJ8.js} +3 -3
- package/dist/assets/{dialog.es-9xd4UJpC.js → dialog.es-Dz_F-cop.js} +1 -1
- package/dist/assets/{download-Bg-C4aNR.js → download-C7Ang0v6.js} +1 -1
- package/dist/assets/es-DOde1pH1.js +1 -0
- package/dist/assets/{foldgutter.es-C7HbANvK.js → foldgutter.es-Cy1h3hL-.js} +1 -1
- package/dist/assets/fr-CQP2ynaM.js +1 -0
- package/dist/assets/getValidReactChildren-C9Mg6JUR.js +1 -0
- package/dist/assets/hi-COkpP61P.js +1 -0
- package/dist/assets/{hint.es-CG2lL-pn.js → hint.es-CXsohjGX.js} +1 -1
- package/dist/assets/{hint.es2-OvG49YiM.js → hint.es2-C4glUxfh.js} +1 -1
- package/dist/assets/id-e4JFBjR1.js +1 -0
- package/dist/assets/{iframe-xnXRzLO_.js → iframe-D6qR_3ri.js} +1 -1
- package/dist/assets/{index-CYxeq-8x.js → index-93rdCclb.js} +1 -1
- package/dist/assets/{index-BSCYY90A.js → index-Ac-KxJUH.js} +1 -1
- package/dist/assets/{index-mnqV3Gg1.js → index-B7hs0P0M.js} +1 -1
- package/dist/assets/{index-BWIy-1uj.js → index-B7vPshgV.js} +1 -1
- package/dist/assets/{index-BC3241Rp.js → index-BB3gqUNz.js} +2 -2
- package/dist/assets/{index-C9Z58DAP.js → index-BC0NMNQX.js} +1 -1
- package/dist/assets/{index-B4dfyqei.js → index-BC77e5qU.js} +1 -1
- package/dist/assets/{index-vr3RQzyc.js → index-BEHxtswt.js} +1 -1
- package/dist/assets/index-BHkNlsZn.js +21 -0
- package/dist/assets/{index-DLx4dGje.js → index-BMznxoOz.js} +1 -1
- package/dist/assets/{index-Dw6RXFE7.js → index-BNRm2Xtr.js} +3 -3
- package/dist/assets/{index-DUQBU3A3.js → index-BP0jhdgI.js} +1 -1
- package/dist/assets/{index-yN879Jjz.js → index-BRUsJJ9E.js} +3 -3
- package/dist/assets/{index-D4bAAnjl.js → index-BSyUX4TC.js} +1 -1
- package/dist/assets/{index-CTYM657U.js → index-BToxpJgs.js} +1 -1
- package/dist/assets/{index-DS3w7X0-.js → index-BUAD1OTq.js} +1 -1
- package/dist/assets/index-BYiS-jO5.js +54 -0
- package/dist/assets/{index-DjIprepw.js → index-Bdi6R8Nl.js} +1 -1
- package/dist/assets/{index-BkRPFnv6.js → index-BmH69n-l.js} +5 -5
- package/dist/assets/{index-Cj_T0gK-.js → index-BoZx42kN.js} +1 -1
- package/dist/assets/{index-g_cLscfb.js → index-BwjyQGvu.js} +1 -1
- package/dist/assets/index-C7--GPHL.js +2491 -0
- package/dist/assets/{index-Cb6algTF.js → index-CKoRQbL4.js} +2 -2
- package/dist/assets/{index-DsrFOtgZ.js → index-CNmwHsby.js} +1 -1
- package/dist/assets/{index-B1TlfhV-.js → index-CPh559U2.js} +1 -1
- package/dist/assets/{index-oDvmOv_q.js → index-CVHCRunX.js} +1 -1
- package/dist/assets/{index-BH4drhf0.js → index-CXZjlBgU.js} +1 -1
- package/dist/assets/{index-HICQj4hv.js → index-Chpxsuu0.js} +1 -1
- package/dist/assets/{index-AEn2e-Qa.js → index-CiTOd0f5.js} +27 -27
- package/dist/assets/{index-6AreGVDd.js → index-CpLXBcU2.js} +1 -1
- package/dist/assets/{index-BijlUenA.js → index-D87Grs_R.js} +1 -1
- package/dist/assets/{index-DlMosniW.js → index-DGgnSEH7.js} +1 -1
- package/dist/assets/{index-KEDAiU9B.js → index-DJXP92GG.js} +1 -1
- package/dist/assets/{index-Dk1ISn-T.js → index-DPskKZ67.js} +2 -2
- package/dist/assets/{index-Dl1gEDFs.js → index-DPzIFozG.js} +10 -10
- package/dist/assets/{index-B97h6iDo.js → index-DWG0Ov8f.js} +4 -4
- package/dist/assets/{index-CMXoms2z.js → index-D_k_Olx_.js} +1 -1
- package/dist/assets/{index-Dr_hAN7j.js → index-DhmDR0Ng.js} +1 -1
- package/dist/assets/{index-D2iFVes6.js → index-DjDrwMwk.js} +1 -1
- package/dist/assets/{index-CbAiaQ3F.js → index-DlnLadUb.js} +9 -9
- package/dist/assets/{index-WTVw0qkz.js → index-DqhKfK7p.js} +1 -1
- package/dist/assets/{index-Bj9cH_TN.js → index-DwaBjaXn.js} +1 -1
- package/dist/assets/{index-BPdt_6z_.js → index-VgSzbGP5.js} +1 -1
- package/dist/assets/{index-Bz7VE6Lo.js → index-zhMYpdaE.js} +1 -1
- package/dist/assets/{index.es-B4FMDGXT.js → index.es-DGXzHlWb.js} +1 -1
- package/dist/assets/{index.esm-BSlWfzeP.js → index.esm-k8ocYudx.js} +1 -1
- package/dist/assets/{info-addon.es-CmaDZTYX.js → info-addon.es-kUa8-T6D.js} +1 -1
- package/dist/assets/{info.es-CqlQtF1J.js → info.es-Dc-GRWWB.js} +1 -1
- package/dist/assets/{install-from-url-D85z_2dU.js → install-from-url-Bti2J2br.js} +1 -1
- package/dist/assets/{invitation-CzzPC7mZ.js → invitation-DfR9WxzY.js} +1 -1
- package/dist/assets/{is-path-prefix-equal-C8x0wuLM.js → is-path-prefix-equal-D-HjkB4G.js} +1 -1
- package/dist/assets/{isEqual-Bj8gRbdE.js → isEqual-D2pDzEvE.js} +1 -1
- package/dist/assets/item-DF4Nk2eZ.js +414 -0
- package/dist/assets/ja-Bq_9phll.js +1 -0
- package/dist/assets/{javascript.es-Bt0QmNDU.js → javascript.es-DwIUeeWD.js} +1 -1
- package/dist/assets/{jump-to-line.es-ByoMAIJw.js → jump-to-line.es-CkOrY_Fe.js} +1 -1
- package/dist/assets/{jump.es-CzKPCQ7C.js → jump.es-CFHlR2lu.js} +1 -1
- package/dist/assets/keyboard-arrow-down-rounded-DadBVmpO.js +1 -0
- package/dist/assets/ko-BGNBXY1X.js +1 -0
- package/dist/assets/{line-CcgTKGkN.js → line-BnTOgrYf.js} +3 -3
- package/dist/assets/{lint.es-BcV0qHVh.js → lint.es-BJVhSgfY.js} +1 -1
- package/dist/assets/{lint.es2-B6j7CgmH.js → lint.es2-BiXPX6bi.js} +1 -1
- package/dist/assets/{lint.es3-BI3Fnjz7.js → lint.es3-BULj-cPm.js} +1 -1
- package/dist/assets/{list-header-r2MrC8R7.js → list-header-AfOdlLFR.js} +1 -1
- package/dist/assets/{log-B2SpWU1b.js → log-3x522WGd.js} +1 -1
- package/dist/assets/{lottie-DRE-Y506.js → lottie-CX5d6rq5.js} +1 -1
- package/dist/assets/{matchbrackets.es-CZaojsDe.js → matchbrackets.es-C1B5k-tj.js} +1 -1
- package/dist/assets/{memory-CLeQ9wj3.js → memory--ykPq6zK.js} +1 -1
- package/dist/assets/{mode.es-BKxduziR.js → mode.es-B8N5TzF6.js} +1 -1
- package/dist/assets/{mode.es2-oYgJRmpO.js → mode.es2-CnuCmA5g.js} +1 -1
- package/dist/assets/{mode.es3-C6VF1A5H.js → mode.es3-CM03woHB.js} +1 -1
- package/dist/assets/{onlineParser.es-DjQRxwyL.js → onlineParser.es-C1LE6Oxs.js} +1 -1
- package/dist/assets/overview-CaUgupo4.js +23 -0
- package/dist/assets/pt-CowvQB1d.js +1 -0
- package/dist/assets/{react-CtfovMFE.js → react-LlVsx8aM.js} +16 -16
- package/dist/assets/{redux-n2Ud4s7O.js → redux-CkgCCMBw.js} +1 -1
- package/dist/assets/{resource-dialog-CCYYxNig.js → resource-dialog-BFzRgbm7.js} +1 -1
- package/dist/assets/ru-8F9Pd4BB.js +1 -0
- package/dist/assets/{runtime-DMZBU3fd.js → runtime-D1fsfm06.js} +1 -1
- package/dist/assets/{search.es-ktV_4nJp.js → search.es-BCKTPt8Z.js} +1 -1
- package/dist/assets/{searchcursor.es-DsxyEmEP.js → searchcursor.es-CG-7kPiK.js} +1 -1
- package/dist/assets/service-ByPcQZWp.js +1 -0
- package/dist/assets/{shorten-label-CrSVX0AE.js → shorten-label-BBeWB-uS.js} +1 -1
- package/dist/assets/{show-hint.es-Br8tdMLx.js → show-hint.es-Cv-DsdJz.js} +1 -1
- package/dist/assets/{slicedToArray-D1x3Qiie.js → slicedToArray-CcdXc-Lv.js} +1 -1
- package/dist/assets/{spaces-BE4uA08l.js → spaces-B6EXNQZl.js} +1 -1
- package/dist/assets/{sublime.es-CRbP9ior.js → sublime.es-C4afyVlv.js} +1 -1
- package/dist/assets/{switch-control-CtSMa6CL.js → switch-control-Df2z4_JR.js} +1 -1
- package/dist/assets/{table-icons-DmUMJib8.js → table-icons-oYcHHRuN.js} +2 -2
- package/dist/assets/{tag-Ch_ov9cM.js → tag-DSbPzPgh.js} +1 -1
- package/dist/assets/{team-Dg-GIRHy.js → team-DDHOdEq4.js} +1 -1
- package/dist/assets/th-ChXe3YuF.js +1 -0
- package/dist/assets/{toUpper-BB8gVufE.js → toUpper-BQcl0cuu.js} +1 -1
- package/dist/assets/{traffic-gisgr_Kk.js → traffic-CYOQ1e8m.js} +1 -1
- package/dist/assets/{url-evaluation-DS-mv3rc.js → url-evaluation-DEtrELk4.js} +1 -1
- package/dist/assets/{url-join-CRuOScTr.js → url-join-D3n4s1tB.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-BbKNcBiN.js → use-blocklet-info-for-connect-did-spaces-BAJBDbkb.js} +1 -1
- package/dist/assets/{useLocalStorage-D6Mk1Qod.js → useLocalStorage-CCFlaZGi.js} +1 -1
- package/dist/assets/{util-Chab15Qm.js → util-6qKOiPh1.js} +1 -1
- package/dist/assets/vi-B7O3CE6M.js +1 -0
- package/dist/assets/wait-container-CgVFT9ud.js +171 -0
- package/dist/assets/{withStyles-D96lNAEp.js → withStyles-oAg8TXx8.js} +1 -1
- package/dist/assets/wrap-locale-CYkqiYpi.js +1 -0
- package/dist/assets/zh-CmpXeSIg.js +2 -0
- package/dist/assets/zh-tw-BLezyw-8.js +1 -0
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/DeleteOutline-CddvKtlT.js +0 -1
- package/dist/assets/DeleteOutline-DZhkyDfV.js +0 -1
- package/dist/assets/Stepper-3wmaNEG9.js +0 -1
- package/dist/assets/agreement-B52xwcRE.js +0 -231
- package/dist/assets/api-BkA5hx89.js +0 -1
- package/dist/assets/ar-DdaiKEoW.js +0 -1
- package/dist/assets/blocklet-DbOAUQG9.js +0 -1
- package/dist/assets/de-PoTDtu-y.js +0 -1
- package/dist/assets/es-D79-uip0.js +0 -1
- package/dist/assets/fr-Dgc_te8c.js +0 -1
- package/dist/assets/getValidReactChildren-ClGStIXY.js +0 -1
- package/dist/assets/hi-BndsdrdI.js +0 -1
- package/dist/assets/id-8ozDjIcf.js +0 -1
- package/dist/assets/index-CXlxAjbt.js +0 -2491
- package/dist/assets/index-D7vDNazA.js +0 -21
- package/dist/assets/index-EsfHMeNl.js +0 -54
- package/dist/assets/item-C2-H33Xq.js +0 -414
- package/dist/assets/ja-CcDxF9sH.js +0 -1
- package/dist/assets/ko-Cru7cB1S.js +0 -1
- package/dist/assets/overview-RIv7gMxd.js +0 -23
- package/dist/assets/pt-VKJn0kQ2.js +0 -1
- package/dist/assets/ru-D9UjS3E5.js +0 -1
- package/dist/assets/service-Q8384W7b.js +0 -1
- package/dist/assets/th-Bdgg14ky.js +0 -1
- package/dist/assets/vi-CluOygTN.js +0 -1
- package/dist/assets/wait-container-BPRlQTFB.js +0 -181
- package/dist/assets/wrap-locale-4RphGrjp.js +0 -1
- package/dist/assets/zh-D5LYaM2r.js +0 -2
- package/dist/assets/zh-tw-DWxvyN7A.js +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{aK as i,aL as l,j as n}from"./index-CXlxAjbt.js";var e={},t;function s(){if(t)return e;t=1;var r=l;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=r(i()),a=n;return e.default=(0,u.default)((0,a.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline"),e}export{s as r};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as e}from"./index-CXlxAjbt.js";import{r as t}from"./DeleteOutline-CddvKtlT.js";var r=t();const i=e(r);export{i as D};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as d,bT as w,bS as U,bN as x,bP as s,bU as _,bR as W,j as i,bW as z,bX as T,bM as V,eW as X,b_ as B}from"./index-CXlxAjbt.js";const q=d.createContext({}),k=q,G=d.createContext({}),E=G;function J(e){return w("MuiStep",e)}U("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const K=["active","children","className","component","completed","disabled","expanded","index","last"],O=e=>{const{classes:t,orientation:o,alternativeLabel:n,completed:a}=e;return T({root:["root",o,n&&"alternativeLabel",a&&"completed"]},J,t)},Q=x("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})(({ownerState:e})=>s({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),Y=d.forwardRef(function(t,o){const n=_({props:t,name:"MuiStep"}),{active:a,children:l,className:v,component:c="div",completed:p,disabled:u,expanded:b=!1,index:r,last:m}=n,M=W(n,K),{activeStep:h,connector:C,alternativeLabel:y,orientation:R,nonLinear:$}=d.useContext(k);let[S=!1,I=!1,L=!1]=[a,p,u];h===r?S=a!==void 0?a:!0:!$&&h>r?I=p!==void 0?p:!0:!$&&h<r&&(L=u!==void 0?u:!0);const N=d.useMemo(()=>({index:r,last:m,expanded:b,icon:r+1,active:S,completed:I,disabled:L}),[r,m,b,S,I,L]),f=s({},n,{active:S,orientation:R,alternativeLabel:y,completed:I,disabled:L,expanded:b,component:c}),j=O(f),P=i.jsxs(Q,s({as:c,className:z(j.root,v),ref:o,ownerState:f},M,{children:[C&&y&&r!==0?C:null,l]}));return i.jsx(E.Provider,{value:N,children:C&&!y&&r!==0?i.jsxs(d.Fragment,{children:[C,P]}):P})}),Pe=Y,Z=V(i.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),ee=V(i.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function te(e){return w("MuiStepIcon",e)}const oe=U("MuiStepIcon",["root","active","completed","error","text"]),A=oe;var F;const ne=["active","className","completed","error","icon"],ae=e=>{const{classes:t,active:o,completed:n,error:a}=e;return T({root:["root",o&&"active",n&&"completed",a&&"error"],text:["text"]},te,t)},D=x(X,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${A.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${A.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${A.error}`]:{color:(e.vars||e).palette.error.main}})),re=x("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),se=d.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepIcon"}),{active:a=!1,className:l,completed:v=!1,error:c=!1,icon:p}=n,u=W(n,ne),b=s({},n,{active:a,completed:v,error:c}),r=ae(b);if(typeof p=="number"||typeof p=="string"){const m=z(l,r.root);return c?i.jsx(D,s({as:ee,className:m,ref:o,ownerState:b},u)):v?i.jsx(D,s({as:Z,className:m,ref:o,ownerState:b},u)):i.jsxs(D,s({className:m,ref:o,ownerState:b},u,{children:[F||(F=i.jsx("circle",{cx:"12",cy:"12",r:"12"})),i.jsx(re,{className:r.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:b,children:p})]}))}return p}),le=se;function ie(e){return w("MuiStepLabel",e)}const ce=U("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),g=ce,pe=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],de=e=>{const{classes:t,orientation:o,active:n,completed:a,error:l,disabled:v,alternativeLabel:c}=e;return T({root:["root",o,l&&"error",v&&"disabled",c&&"alternativeLabel"],label:["label",n&&"active",a&&"completed",l&&"error",v&&"disabled",c&&"alternativeLabel"],iconContainer:["iconContainer",n&&"active",a&&"completed",l&&"error",v&&"disabled",c&&"alternativeLabel"],labelContainer:["labelContainer",c&&"alternativeLabel"]},ie,t)},ve=x("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation]]}})(({ownerState:e})=>s({display:"flex",alignItems:"center",[`&.${g.alternativeLabel}`]:{flexDirection:"column"},[`&.${g.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),be=x("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>s({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${g.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${g.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${g.alternativeLabel}`]:{marginTop:16},[`&.${g.error}`]:{color:(e.vars||e).palette.error.main}})),ue=x("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${g.alternativeLabel}`]:{paddingRight:0}})),me=x("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${g.alternativeLabel}`]:{textAlign:"center"}})),H=d.forwardRef(function(t,o){var n;const a=_({props:t,name:"MuiStepLabel"}),{children:l,className:v,componentsProps:c={},error:p=!1,icon:u,optional:b,slotProps:r={},StepIconComponent:m,StepIconProps:M}=a,h=W(a,pe),{alternativeLabel:C,orientation:y}=d.useContext(k),{active:R,disabled:$,completed:S,icon:I}=d.useContext(E),L=u||I;let N=m;L&&!N&&(N=le);const f=s({},a,{active:R,alternativeLabel:C,completed:S,disabled:$,error:p,orientation:y}),j=de(f),P=(n=r.label)!=null?n:c.label;return i.jsxs(ve,s({className:z(j.root,v),ref:o,ownerState:f},h,{children:[L||N?i.jsx(ue,{className:j.iconContainer,ownerState:f,children:i.jsx(N,s({completed:S,active:R,error:p,icon:L},M))}):null,i.jsxs(me,{className:j.labelContainer,ownerState:f,children:[l?i.jsx(be,s({ownerState:f},P,{className:z(j.label,P==null?void 0:P.className),children:l})):null,b]})]}))});H.muiName="StepLabel";const ze=H;function Se(e){return w("MuiStepConnector",e)}U("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const xe=["className"],Ce=e=>{const{classes:t,orientation:o,alternativeLabel:n,active:a,completed:l,disabled:v}=e,c={root:["root",o,n&&"alternativeLabel",a&&"active",l&&"completed",v&&"disabled"],line:["line",`line${B(o)}`]};return T(c,Se,t)},Le=x("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})(({ownerState:e})=>s({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),fe=x("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.line,t[`line${B(o.orientation)}`]]}})(({ownerState:e,theme:t})=>{const o=t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600];return s({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:o},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),ge=d.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepConnector"}),{className:a}=n,l=W(n,xe),{alternativeLabel:v,orientation:c="horizontal"}=d.useContext(k),{active:p,disabled:u,completed:b}=d.useContext(E),r=s({},n,{alternativeLabel:v,orientation:c,active:p,completed:b,disabled:u}),m=Ce(r);return i.jsx(Le,s({className:z(m.root,a),ref:o,ownerState:r},l,{children:i.jsx(fe,{className:m.line,ownerState:r})}))}),he=ge;function ye(e){return w("MuiStepper",e)}U("MuiStepper",["root","horizontal","vertical","alternativeLabel"]);const $e=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],Me=e=>{const{orientation:t,alternativeLabel:o,classes:n}=e;return T({root:["root",t,o&&"alternativeLabel"]},ye,n)},Re=x("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel]}})(({ownerState:e})=>s({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),Ie=i.jsx(he,{}),Ne=d.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepper"}),{activeStep:a=0,alternativeLabel:l=!1,children:v,className:c,component:p="div",connector:u=Ie,nonLinear:b=!1,orientation:r="horizontal"}=n,m=W(n,$e),M=s({},n,{alternativeLabel:l,orientation:r,component:p}),h=Me(M),C=d.Children.toArray(v).filter(Boolean),y=C.map(($,S)=>d.cloneElement($,s({index:S,last:S+1===C.length},$.props))),R=d.useMemo(()=>({activeStep:a,alternativeLabel:l,connector:u,nonLinear:b,orientation:r}),[a,l,u,b,r]);return i.jsx(k.Provider,{value:R,children:i.jsx(Re,s({as:p,ownerState:M,className:z(h.root,c),ref:o},m,{children:y}))})}),we=Ne;export{we as S,Pe as a,ze as b};
|
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
import{P as g,n as U,j as u,aK as Hn,aL as Wn,r as w,B as Vn,C as Yn,D as pn,cA as Q,gl as zn,fI as Xn,gm as $n,gn as qn,go as Qn,g as fn,O as R,cj as Jn,fc as Zn,k as P,fJ as et,m as Cn,F as nt,q as Tn,H as tt,f_ as J,bn as at,E as it,z as rt,aZ as ot,a_ as st,a2 as ut}from"./index-CXlxAjbt.js";import{a as Ln,h as lt,w as ct,f as Et,b as mt,d as dt,e as _t,M as pt}from"./index-BC3241Rp.js";import{j as rn}from"./url-join-CRuOScTr.js";function ft({children:e,...t}){return u.jsx(Ct,{...t,children:e})}ft.propTypes={children:g.any.isRequired};const Ct=U.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
align-items: center;
|
|
5
|
-
width: 100%;
|
|
6
|
-
height: 100%;
|
|
7
|
-
|
|
8
|
-
.header {
|
|
9
|
-
text-align: center;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.body {
|
|
13
|
-
display: flex;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
align-items: center;
|
|
16
|
-
margin-top: 30px;
|
|
17
|
-
width: 100%;
|
|
18
|
-
min-height: 200px;
|
|
19
|
-
flex: 1;
|
|
20
|
-
|
|
21
|
-
${e=>e.theme.breakpoints.up("md")} {
|
|
22
|
-
padding: 24px;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
${e=>e.theme.breakpoints.down("md")} {
|
|
26
|
-
padding: 0 16px 16px;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.footer {
|
|
31
|
-
display: flex;
|
|
32
|
-
justify-content: center;
|
|
33
|
-
|
|
34
|
-
${e=>e.theme.breakpoints.up("sm")} {
|
|
35
|
-
padding-bottom: 34px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
${e=>e.theme.breakpoints.down("md")} {
|
|
39
|
-
margin-top: auto;
|
|
40
|
-
padding-bottom: 10px;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
`;var pe={},Tt=Wn;Object.defineProperty(pe,"__esModule",{value:!0});var Lt=pe.default=void 0,Nt=Tt(Hn()),Ot=u;Lt=pe.default=(0,Nt.default)((0,Ot.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");function fe({disabled:e,children:t,onConfirm:r}){return w.useEffect(()=>{if(e)return()=>{};const i=c=>{c.code==="Enter"&&(c.metaKey===!0||c.ctrlKey===!0)&&(c.preventDefault(),c.stopPropagation(),r())};return document.addEventListener("keydown",i),()=>{document.removeEventListener("keydown",i)}},[e,r]),t}fe.propTypes={disabled:g.bool,children:g.any.isRequired,onConfirm:g.func.isRequired};fe.defaultProps={disabled:!1};function Ce({onContinue:e,nextDisabled:t,launching:r,texts:i,description:c}){const[E,l]=w.useState(!1),s=()=>l(p=>!p);return u.jsxs(u.Fragment,{children:[u.jsx(At,{children:u.jsxs(fe,{disabled:t,onConfirm:e,children:[u.jsx("div",{className:"eula-trigger",onClick:s,children:i.listenName}),u.jsx(Vn,{disabled:t,color:"primary",variant:"contained",className:"next-button",onClick:e,children:r?u.jsxs(u.Fragment,{children:[u.jsx(Yn,{size:14}),i.launchingText]}):i.buttonNext})]})}),u.jsx(pn,{open:E,title:i.listenName,onClose:()=>l(!1),children:c})]})}Ce.propTypes={onContinue:g.func.isRequired,nextDisabled:g.bool,launching:g.bool,description:g.any,texts:g.object};Ce.defaultProps={nextDisabled:!1,launching:!1,description:"",texts:{listenName:"",launchingText:"",buttonNext:""}};const At=U.div`
|
|
44
|
-
margin: 0 auto;
|
|
45
|
-
display: flex;
|
|
46
|
-
justify-content: space-between;
|
|
47
|
-
align-items: center;
|
|
48
|
-
|
|
49
|
-
@media (max-width: ${e=>e.theme.breakpoints.values.sm}px) {
|
|
50
|
-
flex-direction: column;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.eula-trigger {
|
|
54
|
-
cursor: pointer;
|
|
55
|
-
text-decoration: underline;
|
|
56
|
-
${e=>e.theme.breakpoints.up("md")} {
|
|
57
|
-
padding-right: 24px;
|
|
58
|
-
}
|
|
59
|
-
${e=>e.theme.breakpoints.down("md")} {
|
|
60
|
-
padding: 16px;
|
|
61
|
-
}
|
|
62
|
-
font-size: 14px;
|
|
63
|
-
white-space: nowrap;
|
|
64
|
-
&:hover {
|
|
65
|
-
color: ${e=>e.theme.palette.primary.main};
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.next-button {
|
|
70
|
-
min-width: 200px;
|
|
71
|
-
}
|
|
72
|
-
`;var de={};const Te=Object.freeze({AUTH:"auth",AUTH_SERVICE:"@abtnode/auth-service"}),gt=Object.freeze({AUTH_SERVICE:`/.service/${Te.AUTH_SERVICE}`}),Le=Object.freeze({OWNER:"owner",ADMIN:"admin",MEMBER:"member",GUEST:"guest"}),A=Object.freeze({...Le,CI:"ci",CERTIFICATE:"certificate",BLOCKLET_OWNER:"blocklet-owner",BLOCKLET_ADMIN:"blocklet-admin",BLOCKLET_MEMBER:"blocklet-member",BLOCKLET_SDK:"blocklet-sdk",EXTERNAL_BLOCKLET_CONTROLLER:"external-blocklet-controller",EXTERNAL_BLOCKLETS_MANAGER:"external-blocklets-manager"}),Nn=[A.BLOCKLET_OWNER,A.BLOCKLET_ADMIN,A.BLOCKLET_MEMBER,A.BLOCKLET_SDK],ht=e=>e&&Nn.includes(e),vt={USER:"user",OWNERSHIP_NFT:"ownership_nft",BLOCKLET_USER:"blocklet_user",BLOCKLET_CONTROLLER:"blocklet_controller"},Rt={roles:Object.freeze([{name:A.OWNER,title:"Owner",description:"Has full administrative access to the Blocklet Server",passport:!0},{name:A.ADMIN,title:"Admin",description:"Has full permissions to manage blocklet and Blocklet Server such as install/remove/start/stop blocklet, manage blocklet URL mapping and certificates, manage blocklet team, manage node integrations and access keys, upgrade node to a new version",passport:!0},{name:A.MEMBER,title:"Member",description:"Has permissions to manage blocklets, such as install/remove/start/stop blocklet, manage blocklet URL mapping and certificates",passport:!0},{name:A.GUEST,title:"Guest",description:"Has all read permissions on Blocklet Server",passport:!0},{name:A.CI,title:"CI",description:"Deploy blocklet to Blocklet Server",passport:!0,noHuman:!0},{name:A.CERTIFICATE,title:"Certificate",description:"Manage https certificates for blocklets on the Blocklet Server",passport:!0,noHuman:!0},{name:A.BLOCKLET_OWNER,title:"Blocklet Owner"},{name:A.BLOCKLET_ADMIN,title:"Blocklet Admin"},{name:A.BLOCKLET_MEMBER,title:"Blocklet Member"},{name:A.BLOCKLET_SDK,title:"Blocklet SDK"},{name:A.EXTERNAL_BLOCKLET_CONTROLLER,title:"External Blocklet Controller"},{name:A.EXTERNAL_BLOCKLETS_MANAGER,title:"External Blocklets Manager",description:"Manage external blocklets in the Blocklet Server",passport:!0,noHuman:!0},{name:Te.AUTH_SERVICE,title:"Auth Service"}]),permissions:Object.freeze([{name:"query_node",description:"View node data, include dashboard and node settings, log stream for both Blocklet Server and blocklets"},{name:"mutate_node",description:"Change node settings, upgrade node to a new version"},{name:"query_session",description:"Get data from a long running session"},{name:"mutate_session",description:"Start/update/end a long running session"},{name:"query_accessKey",description:"View access keys for Blocklet Server"},{name:"mutate_accessKey",description:"Manage access keys for Blocklet Server, such as create/update/delete"},{name:"query_team",description:"View team data(members/roles/permissions) for Blocklet Server and blocklets"},{name:"mutate_team",description:"Manage team data(members/roles/permissions) for Blocklet Server and blocklets"},{name:"query_blocklets",description:"View store and installed blocklets, including blocklet runtime configuration, domains and urls"},{name:"mutate_blocklets",description:"Perform state changing actions on blocklets, such as install/upgrade/config/start/stop/remove"},{name:"query_router",description:"View sites, URL mapping and certificates in service gateway"},{name:"mutate_router",description:"Manage sites, URL mapping and certificates in service gateway"},{name:"query_certificate",description:"View certificates in service gateway"},{name:"mutate_certificate",description:"Manage certificates in service gateway"},{name:"query_notification",description:"View notifications"},{name:"mutate_notification",description:"Manage notifications, such as mark notifications as read"},{name:"query_webhook",description:"View integrations"},{name:"mutate_webhook",description:"Manage integrations"},{name:"query_blocklet",description:"View a blocklet, including blocklet runtime configuration, domains and urls"},{name:"mutate_blocklet",description:"Perform state changing actions on a blocklet, such as upgrade/config/start/stop"}]),grants:Object.freeze({[A.GUEST]:["query_blocklets","query_router","query_webhook","query_notification","query_team","query_accessKey","query_node","query_session"],[A.MEMBER]:[A.GUEST,"mutate_blocklets","mutate_router","mutate_notification","mutate_session"],[A.ADMIN]:[A.MEMBER,"mutate_team","mutate_webhook","mutate_accessKey","mutate_node","mutate_certificate"],[A.OWNER]:[Le.ADMIN],[A.CI]:["query_blocklets","mutate_blocklets"],[A.CERTIFICATE]:["query_certificate","mutate_certificate"],[A.BLOCKLET_SDK]:["query_team","mutate_team","query_blocklet"],[A.BLOCKLET_OWNER]:[A.BLOCKLET_ADMIN],[A.BLOCKLET_ADMIN]:[A.BLOCKLET_MEMBER,"mutate_team","mutate_blocklet","mutate_notification"],[A.BLOCKLET_MEMBER]:["query_team","query_blocklet","query_notification"],[A.EXTERNAL_BLOCKLET_CONTROLLER]:["query_blocklets","mutate_blocklets"],[A.EXTERNAL_BLOCKLETS_MANAGER]:["query_blocklets","mutate_blocklets"]})},on=24*60*60*1e3,St={NOTIFICATION_CREATE:"notification.create",NOTIFICATION_BLOCKLET_CREATE:"notification.blockletCreate",ROUTING_UPDATED:"routing.updated",NODE_UPDATED:"node.updated",NODE_MAINTAIN_PROGRESS:"node.upgrade.progress",NODE_STARTED:"node.started",NODE_STOPPED:"node.stopped",NODE_ADDED_OWNER:"node.addedOwner",NODE_RUNTIME_INFO:"node.runtimeInfo",BLOCKLETS_RUNTIME_INFO:"node.blockletsRuntimeInfo",DOMAIN_STATUS:"domain.status",CERT_ADDED:"cert.added",CERT_ISSUED:"cert.issued",CERT_UPDATED:"cert.updated",CERT_REMOVED:"cert.removed",CERT_ERROR:"cert.error",RELOAD_GATEWAY:"gateway.reload"},Bt={OWNER:"owner",INVITED:"invited",ALL:"all"},sn="https://store.blocklet.dev",un="https://dev.store.blocklet.dev",It="https://main.abtnetwork.io/api/",Pt=Object.freeze({DERIVED:"derived",WALLET:"wallet"}),kt={STATUS:{PROGRESS:null,SUCCEEDED:0,FAILED:1},TIMEOUT_HOURS:6,STRATEGY:{AUTO:0,MANUAL:1},JOB:{INTERVAL:2*60*60}},yt={STATUS:{PROGRESS:null,SUCCEEDED:0,FAILED:1},TIMEOUT_HOURS:6,STRATEGY:{AUTO:0,MANUAL:1},JOB:{INTERVAL:2*60*60}},On=10,bt=86400/On,Dt={SYNC_LIMIT:3},Ft=[{text:"Plain Text",value:"text/plain"},{text:"JSON",value:"application/json"},{text:"XML",value:"application/xml"},{text:"HTML Document",value:"text/html"},{text:"YAML",value:"application/x-yaml"},{text:"TOML",value:"application/toml"},{text:"CSS",value:"text/css"},{text:"JavaScript",value:"application/javascript"},{text:"CSV",value:"text/csv"},{text:"Markdown",value:"text/markdown"},{text:"SVG",value:"image/svg+xml"}],wt=Object.freeze({created:0,selected:10,connected:20,paid:30,nftMinted:35,allocated:40,consuming:46,installed:50,expired:60,terminated:70,timeout:80,transferred:90});var Kt=Object.freeze({NODE_MODES:Object.freeze({PRODUCTION:"production",DEBUG:"debug",MAINTENANCE:"maintenance",SERVERLESS:"serverless"}),DEFAULT_DESCRIPTION:"Web Interface to manage your Blocklet Server",NODE_MAINTAIN_PROGRESS:Object.freeze({SETUP:"setup",INSTALLING:"installing",VERIFYING:"verifying",RESTARTING:"restarting",CLEANUP:"cleanup",COMPLETE:"complete",ROLLBACK:"rollback"}),VC_TYPE_BLOCKLET_PURCHASE:"BlockletPurchaseCredential",VC_TYPE_NODE_PASSPORT:"ABTNodePassport",VC_TYPE_GENERAL_PASSPORT:"NFTPassport",NFT_TYPE_SERVER_OWNERSHIP:"BlockletServerOwnershipNFT",NFT_TYPE_SERVERLESS:"BlockletServerServerlessNFT",NODE_PACKAGE_NAME:"@abtnode/cli",NODE_COMMAND_NAME:"abtnode",NODE_DATA_DIR_NAME:"_abtnode",USER_AVATAR_DIR:"/.assets/avatar",USER_AVATAR_URL_PREFIX:"bn://avatar",USER_AVATAR_PATH_PREFIX:"/user/avatar",PROCESS_NAME_DAEMON:"abt-node-daemon",PROCESS_NAME_PROXY:"abt-node-db-hub",PROCESS_NAME_UPDATER:"abt-node-updater",PROCESS_NAME_SERVICE:"abt-node-service",PROCESS_NAME_ROUTER:"abt-node-router",PROCESS_NAME_LOG_ROTATE:"abt-node-log-rotate",PROCESS_NAME_EVENT_HUB:"abt-node-event-hub",NODE_REGISTER_URL:"https://install.arcblock.io/",WEB_WALLET_URL:"https://web.abtwallet.io",BLOCKLET_STORE_URL:sn,BLOCKLET_STORE_URL_DEV:un,BLOCKLET_STORE_API_PREFIX:"/api",BLOCKLET_STORE_API_BLOCKLET_PREFIX:"/api/blocklets",BLOCKLET_STORE_META_PATH:"/api/store.json",BLOCKLET_STORE:{id:"zNKqX7D8ZAYa77HgzpoFfnV3BFbcmSRrE9aT",name:"Official Store",description:"ArcBlock official blocklet registry",url:sn,logoUrl:"/logo.png",maintainer:"arcblock"},BLOCKLET_STORE_DEV:{id:"zNKmfUatDhzfMVACfr3u97eqndj8f1yXXw3m",name:"Dev Store",description:"ArcBlock dev registry that contains demo and example blocklets",url:un,maintainer:"arcblock",logoUrl:"/logo.png"},APP_STRUCT_VERSION:"2",DEFAULT_DID_REGISTRY:"https://registry.abtnet.io",DEFAULT_SLP_DOMAIN:"slp.abtnet.io",DEFAULT_DID_DOMAIN:"did.abtnet.io",DEFAULT_IP_DOMAIN:"*.ip.abtnet.io",DEFAULT_IP_DOMAIN_SUFFIX:"ip.abtnet.io",DEFAULT_WILDCARD_CERT_HOST:"https://releases.arcblock.io/",DEFAULT_NFT_DOMAIN_URL:"https://domain.didlabs.org/",DEFAULT_CERTIFICATE_EMAIL:"certs@arcblock.io",CONFIG_FILENAME:"config.yml",CONFIG_FILENAME_OLD:"abtnode.yml",CONFIG_FOLDER_NAME:".blocklet-server",CONFIG_FOLDER_NAME_OLD:".abtnode",EXPORTED_FOLDER_NAME:"exported_blocklet_server",StatusCode:Object.freeze({ok:0,blocklet_not_found:1,blocklet_not_purchased:2,forbidden:403,internal:500,timeout:504}),IP:new RegExp("-(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\-(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}"),DOMAIN_FOR_IP_SITE:"",DOMAIN_FOR_IP_SITE_REGEXP:"~^\\d+.\\d+.\\d+.\\d+$",DOMAIN_FOR_DEFAULT_SITE:"*",DOMAIN_FOR_INTERNAL_SITE:"127.0.0.1",NAME_FOR_WELLKNOWN_SITE:"wellknown",WELLKNOWN_PATH_PREFIX:"/.well-known",WELLKNOWN_ACME_CHALLENGE_PREFIX:"/.well-known/acme-challenge",WELLKNOWN_DID_RESOLVER_PREFIX:"/.well-known/did.json",WELLKNOWN_PING_PREFIX:"/.well-known/ping",WELLKNOWN_ANALYTICS_PREFIX:"/.well-known/analytics",WELLKNOWN_SERVICE_PATH_PREFIX:"/.well-known/service",WELLKNOWN_BLOCKLET_ADMIN_PATH:"/.well-known/service/admin",WELLKNOWN_BLOCKLET_HEALTH_PATH:"/.well-known/service/health",WELLKNOWN_BLOCKLET_LOGO_PATH:"/.well-known/service/blocklet/logo",SLOT_FOR_IP_DNS_SITE:"888-888-888-888",DEFAULT_ADMIN_PATH:"/admin",WELLKNOWN_SERVER_ADMIN_PATH:"/.well-known/server/admin",DEFAULT_SERVICE_PATH:"/.abtnode/service",DEFAULT_HTTP_PORT:80,DEFAULT_HTTPS_PORT:443,MAX_UPLOAD_FILE_SIZE:500,DEFAULT_DAEMON_PORT:8089,MAX_NGINX_WORKER_CONNECTIONS:10240,BLOCKLET_PROXY_PATH_PREFIX:"/.blocklet/proxy",BLOCKLET_SITE_GROUP_SUFFIX:".blocklet-domain-group",DAY_IN_MS:on,DAEMON_MAX_MEM_LIMIT_IN_MB:800,PROXY_MAX_MEM_LIMIT_IN_MB:800,BLOCKLET_MAX_MEM_LIMIT_IN_MB:800,CERTIFICATE_EXPIRES_OFFSET:10*on,ROUTING_RESPONSE_TYPES:Ft,ROUTING_RULE_TYPES:Object.freeze({NONE:"none",DAEMON:"daemon",SERVICE:"service",BLOCKLET:"blocklet",REDIRECT:"redirect",GENERAL_REWRITE:"rewrite",GENERAL_PROXY:"general_proxy",DIRECT_RESPONSE:"direct_response",COMPONENT:"component"}),ROLES:Le,SERVER_ROLES:A,BLOCKLET_ROLES:Nn,isBlockletRole:ht,AUTH_CERT_TYPE:vt,RBAC_CONFIG:Rt,genPermissionName:(e,t="access")=>`${t}_${e.replace("_","-")}`,PASSPORT_STATUS:{VALID:"valid",REVOKED:"revoked"},NODE_SERVICES:Te,NODE_SERVICES_PREFIX:gt,DISK_ALERT_THRESHOLD_PERCENT:80,EVENTS:St,WHO_CAN_ACCESS:Bt,WHO_CAN_ACCESS_PREFIX_ROLES:"roles:",GATEWAY_REQ_LIMIT:Object.freeze({min:10,max:100}),STORE_DETAIL_PAGE_PATH_PREFIX:"/blocklets",MAX_USER_PAGE_SIZE:100,SERVER_STATUS:{RUNNING:1,STOPPED:2,START_FROM_CRASH:3},LOG_RETAIN_IN_DAYS:60,BLOCKLET_INSTALL_TYPE:{STORE:"store",URL:"url",DEV:"dev",CREATE:"create",RESTORE:"restore"},ROUTER_CACHE_GROUPS:{blockletProxy:{minSize:"1m",maxSize:"2g",period:"30d"}},MAIN_CHAIN_ENDPOINT:It,USER_TYPE:Pt,SERVER_CACHE_TTL:300*1e3,BLOCKLET_CACHE_TTL:3600*1e3,SESSION_CACHE_TTL:3600,SESSION_TTL:7*86400,BACKUPS:kt,CHECK_UPDATE:yt,MONITOR_HISTORY_LENGTH:bt,MONITOR_RECORD_INTERVAL_SEC:On,INSTALL_ACTIONS:{INSTALL:"install",INSTALL_COMPONENT:"installComponent",UPGRADE_COMPONENT:"upgradeComponent"},COPYRIGHT_OWNER:"ArcBlock",FEDERATED:Dt,SESSION_TOKEN_STORAGE_KEY:"login_token",REFRESH_TOKEN_STORAGE_KEY:"refresh_token",LAUNCH_SESSION_STATUS:wt,UNOWNED_DID:"z".repeat(35),STUDIO_CONNECTED_STORE:"studio_connected_store",STUDIO_CONNECTED_AND_DEVELOPED:"studio_connected_and_developed"}),Ne=Object.defineProperty,Mt=Object.getOwnPropertyDescriptor,Ut=Object.getOwnPropertyNames,xt=Object.prototype.hasOwnProperty,jt=(e,t)=>{for(var r in t)Ne(e,r,{get:t[r],enumerable:!0})},Gt=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of Ut(t))!xt.call(e,c)&&c!==r&&Ne(e,c,{get:()=>t[c],enumerable:!(i=Mt(t,c))||i.enumerable});return e},Ht=e=>Gt(Ne({},"__esModule",{value:!0}),e),An={};jt(An,{APP_CONFIG_DIR:()=>Ga,APP_CONFIG_FILE_PATH:()=>Wa,APP_CONFIG_PUBLIC_DIR:()=>Ha,BLOCKLET_APP_SPACE_REQUIREMENT:()=>wa,BLOCKLET_ARCHITECTURES:()=>ra,BLOCKLET_BUNDLE_FILE:()=>Oa,BLOCKLET_BUNDLE_FOLDER:()=>Ta,BLOCKLET_BUNDLE_FOLDER_NAME:()=>Na,BLOCKLET_CONFIGURABLE_KEY:()=>Da,BLOCKLET_CONTROLLER_STATUS:()=>zt,BLOCKLET_DEFAULT_PATH_REWRITE:()=>pa,BLOCKLET_DEFAULT_PORT_NAME:()=>_a,BLOCKLET_DEFAULT_VERSION:()=>Ia,BLOCKLET_DYNAMIC_PATH_PREFIX:()=>da,BLOCKLET_ENTRY_FILE:()=>Aa,BLOCKLET_FACTORY_SHARES:()=>ua,BLOCKLET_GROUPS:()=>ea,BLOCKLET_INTERFACE_PROTOCOLS:()=>ma,BLOCKLET_INTERFACE_PROTOCOL_HTTP:()=>Pn,BLOCKLET_INTERFACE_PROTOCOL_TCP:()=>kn,BLOCKLET_INTERFACE_PROTOCOL_UDP:()=>yn,BLOCKLET_INTERFACE_PUBLIC:()=>ge,BLOCKLET_INTERFACE_TYPES:()=>la,BLOCKLET_INTERFACE_TYPE_SERVICE:()=>Sn,BLOCKLET_INTERFACE_TYPE_WEB:()=>Rn,BLOCKLET_INTERFACE_TYPE_WELLKNOWN:()=>Bn,BLOCKLET_INTERFACE_WELLKNOWN:()=>In,BLOCKLET_LATEST_REQUIREMENT_ABTNODE:()=>ba,BLOCKLET_LATEST_REQUIREMENT_SERVER:()=>ya,BLOCKLET_LATEST_SPEC_VERSION:()=>ka,BLOCKLET_META_FILE:()=>ga,BLOCKLET_META_FILE_ALT:()=>ha,BLOCKLET_MODES:()=>oa,BLOCKLET_PLATFORMS:()=>ia,BLOCKLET_PREFERENCE_FILE:()=>va,BLOCKLET_PREFERENCE_PREFIX:()=>Ra,BLOCKLET_RELEASE_FILE:()=>Ca,BLOCKLET_RELEASE_FOLDER:()=>fa,BLOCKLET_RELEASE_FOLDER_NAME:()=>La,BLOCKLET_RESOURCE_DIR:()=>Sa,BLOCKLET_STANDARD_INTERFACES:()=>Ea,BLOCKLET_TENANT_MODES:()=>sa,BLOCKLET_UI_INTERFACES:()=>ca,BLOCKLET_UPLOADS_DIR:()=>Pa,BlockletEvents:()=>na,BlockletGroup:()=>Zt,BlockletInternalEvents:()=>ta,BlockletSource:()=>Ae,BlockletStatus:()=>Oe,CHAIN_INFO_CONFIG:()=>Ka,CHAIN_PROP_MAP:()=>_e,CHAIN_PROP_MAP_REVERSE:()=>Ua,COMPONENT_ENV_FILE_NAME:()=>Va,DID_SPACES:()=>Fa,LOGIN_PROVIDER:()=>xa,MAX_TITLE_LENGTH:()=>Ya,PROJECT:()=>Ba,PROVIDER_NAME:()=>ja,RESTORE_PROGRESS_STATUS:()=>Ma,SUPPORTED_LANGUAGES:()=>Yt,SUSPENDED_REASON:()=>Xt,TeamEvents:()=>aa,baseLanguages:()=>Vt,fromBlockletSource:()=>Qt,fromBlockletStatus:()=>$t,toBlockletSource:()=>Jt,toBlockletStatus:()=>qt});var gn=Ht(An),Wt={en:{name:"English",nativeName:"English"},es:{name:"Spanish",nativeName:"Español"},zh:{name:"Simplified Chinese",nativeName:"简体中文"},"zh-TW":{name:"Traditional Chinese",nativeName:"繁體中文"},fr:{name:"French",nativeName:"Français"},it:{name:"Italian",nativeName:"Italiano"},ja:{name:"Japanese",nativeName:"日本語"},ko:{name:"Korean",nativeName:"한국어"},pt:{name:"Portuguese",nativeName:"Português"},ru:{name:"Russian",nativeName:"Русский"},ar:{name:"Arabic",nativeName:"اَلْعَرَبِيَّةُ"},de:{name:"German",nativeName:"Deutsch"},mn:{name:"Mongolian",nativeName:"Монгол хэл"},hi:{name:"Hindi",nativeName:"हिन्दी"},bn:{name:"Bengali",nativeName:"বাংলা"},vi:{name:"Vietnamese",nativeName:"Tiếng Việt"},tr:{name:"Turkish",nativeName:"Türkçe"},te:{name:"Telugu",nativeName:"తెలుగు"},ur:{name:"Urdu",nativeName:"اردو"},mr:{name:"Marathi",nativeName:"मराठी"},pa:{name:"Panjabi",nativeName:"ਪੰਜਾਬੀ"},aa:{name:"Afar",nativeName:"Afaraf"},ab:{name:"Abkhaz",nativeName:"аҧсуа бызшәа"},ae:{name:"Avestan",nativeName:"avesta"},af:{name:"Afrikaans",nativeName:"Afrikaans"},ak:{name:"Akan",nativeName:"Akan"},am:{name:"Amharic",nativeName:"አማርኛ"},an:{name:"Aragonese",nativeName:"aragonés"},as:{name:"Assamese",nativeName:"অসমীয়া"},av:{name:"Avaric",nativeName:"авар мацӀ"},ay:{name:"Aymara",nativeName:"aymar aru"},az:{name:"Azerbaijani",nativeName:"azərbaycan dili"},ba:{name:"Bashkir",nativeName:"башҡорт теле"},be:{name:"Belarusian",nativeName:"беларуская мова"},bg:{name:"Bulgarian",nativeName:"български език"},bi:{name:"Bislama",nativeName:"Bislama"},bm:{name:"Bambara",nativeName:"bamanankan"},bo:{name:"Tibetan",nativeName:"བོད་ཡིག"},br:{name:"Breton",nativeName:"brezhoneg"},bs:{name:"Bosnian",nativeName:"bosanski jezik"},ca:{name:"Catalan",nativeName:"Català"},ce:{name:"Chechen",nativeName:"нохчийн мотт"},ch:{name:"Chamorro",nativeName:"Chamoru"},co:{name:"Corsican",nativeName:"corsu"},cr:{name:"Cree",nativeName:"ᓀᐦᐃᔭᐍᐏᐣ"},cs:{name:"Czech",nativeName:"čeština"},cu:{name:"Old Church Slavonic",nativeName:"ѩзыкъ словѣньскъ"},cv:{name:"Chuvash",nativeName:"чӑваш чӗлхи"},cy:{name:"Welsh",nativeName:"Cymraeg"},da:{name:"Danish",nativeName:"dansk"},dv:{name:"Divehi",nativeName:"ދިވެހި"},dz:{name:"Dzongkha",nativeName:"རྫོང་ཁ"},ee:{name:"Ewe",nativeName:"Eʋegbe"},el:{name:"Greek",nativeName:"Ελληνικά"},eo:{name:"Esperanto",nativeName:"Esperanto"},et:{name:"Estonian",nativeName:"eesti"},eu:{name:"Basque",nativeName:"euskara"},fa:{name:"Persian",nativeName:"فارسی"},ff:{name:"Fula",nativeName:"Fulfulde"},fi:{name:"Finnish",nativeName:"suomi"},fj:{name:"Fijian",nativeName:"vosa Vakaviti"},fo:{name:"Faroese",nativeName:"føroyskt"},fy:{name:"Western Frisian",nativeName:"Frysk"},ga:{name:"Irish",nativeName:"Gaeilge"},gd:{name:"Scottish Gaelic",nativeName:"Gàidhlig"},gl:{name:"Galician",nativeName:"galego"},gn:{name:"Guaraní",nativeName:"Avañe'ẽ"},gu:{name:"Gujarati",nativeName:"ગુજરાતી"},gv:{name:"Manx",nativeName:"Gaelg"},ha:{name:"Hausa",nativeName:"هَوُسَ"},he:{name:"Hebrew",nativeName:"עברית"},ho:{name:"Hiri Motu",nativeName:"Hiri Motu"},hr:{name:"Croatian",nativeName:"Hrvatski"},ht:{name:"Haitian",nativeName:"Kreyòl ayisyen"},hu:{name:"Hungarian",nativeName:"magyar"},hy:{name:"Armenian",nativeName:"Հայերեն"},hz:{name:"Herero",nativeName:"Otjiherero"},ia:{name:"Interlingua",nativeName:"Interlingua"},id:{name:"Indonesian",nativeName:"Bahasa Indonesia"},ie:{name:"Interlingue",nativeName:"Interlingue"},ig:{name:"Igbo",nativeName:"Asụsụ Igbo"},ii:{name:"Nuosu",nativeName:"ꆈꌠ꒿ Nuosuhxop"},ik:{name:"Inupiaq",nativeName:"Iñupiaq"},io:{name:"Ido",nativeName:"Ido"},is:{name:"Icelandic",nativeName:"Íslenska"},iu:{name:"Inuktitut",nativeName:"ᐃᓄᒃᑎᑐᑦ"},jv:{name:"Javanese",nativeName:"basa Jawa"},ka:{name:"Georgian",nativeName:"ქართული"},kg:{name:"Kongo",nativeName:"Kikongo"},ki:{name:"Kikuyu",nativeName:"Gĩkũyũ"},kj:{name:"Kwanyama",nativeName:"Kuanyama"},kk:{name:"Kazakh",nativeName:"қазақ тілі"},kl:{name:"Kalaallisut",nativeName:"kalaallisut"},km:{name:"Khmer",nativeName:"ខេមរភាសា"},kn:{name:"Kannada",nativeName:"ಕನ್ನಡ"},kr:{name:"Kanuri",nativeName:"Kanuri"},ks:{name:"Kashmiri",nativeName:"कश्मीरी"},ku:{name:"Kurdish",nativeName:"Kurdî"},kv:{name:"Komi",nativeName:"коми кыв"},kw:{name:"Cornish",nativeName:"Kernewek"},ky:{name:"Kyrgyz",nativeName:"Кыргызча"},la:{name:"Latin",nativeName:"latine"},lb:{name:"Luxembourgish",nativeName:"Lëtzebuergesch"},lg:{name:"Ganda",nativeName:"Luganda"},li:{name:"Limburgish",nativeName:"Limburgs"},ln:{name:"Lingala",nativeName:"Lingála"},lo:{name:"Lao",nativeName:"ພາສາລາວ"},lt:{name:"Lithuanian",nativeName:"lietuvių kalba"},lu:{name:"Luba-Katanga",nativeName:"Kiluba"},lv:{name:"Latvian",nativeName:"latviešu valoda"},mg:{name:"Malagasy",nativeName:"fiteny malagasy"},mh:{name:"Marshallese",nativeName:"Kajin M̧ajeļ"},mi:{name:"Māori",nativeName:"te reo Māori"},mk:{name:"Macedonian",nativeName:"македонски јазик"},ml:{name:"Malayalam",nativeName:"മലയാളം"},ms:{name:"Malay",nativeName:"Bahasa Melayu"},mt:{name:"Maltese",nativeName:"Malti"},my:{name:"Burmese",nativeName:"ဗမာစာ"},na:{name:"Nauru",nativeName:"Dorerin Naoero"},nb:{name:"Norwegian Bokmål",nativeName:"Norsk bokmål"},nd:{name:"Northern Ndebele",nativeName:"isiNdebele"},ne:{name:"Nepali",nativeName:"नेपाली"},ng:{name:"Ndonga",nativeName:"Owambo"},nl:{name:"Dutch",nativeName:"Nederlands"},nn:{name:"Norwegian Nynorsk",nativeName:"Norsk nynorsk"},no:{name:"Norwegian",nativeName:"Norsk"},nr:{name:"Southern Ndebele",nativeName:"isiNdebele"},nv:{name:"Navajo",nativeName:"Diné bizaad"},ny:{name:"Chichewa",nativeName:"chiCheŵa"},oc:{name:"Occitan",nativeName:"occitan"},oj:{name:"Ojibwe",nativeName:"ᐊᓂᔑᓈᐯᒧᐎᓐ"},om:{name:"Oromo",nativeName:"Afaan Oromoo"},or:{name:"Oriya",nativeName:"ଓଡ଼ିଆ"},os:{name:"Ossetian",nativeName:"ирон æвзаг"},pi:{name:"Pāli",nativeName:"पाऴि"},pl:{name:"Polish",nativeName:"Polski"},ps:{name:"Pashto",nativeName:"پښتو"},qu:{name:"Quechua",nativeName:"Runa Simi"},rm:{name:"Romansh",nativeName:"rumantsch grischun"},rn:{name:"Kirundi",nativeName:"Ikirundi"},ro:{name:"Romanian",nativeName:"Română"},rw:{name:"Kinyarwanda",nativeName:"Ikinyarwanda"},sa:{name:"Sanskrit",nativeName:"संस्कृतम्"},sc:{name:"Sardinian",nativeName:"sardu"},sd:{name:"Sindhi",nativeName:"सिन्धी"},se:{name:"Northern Sami",nativeName:"Davvisámegiella"},sg:{name:"Sango",nativeName:"yângâ tî sängö"},si:{name:"Sinhala",nativeName:"සිංහල"},sk:{name:"Slovak",nativeName:"slovenčina"},sl:{name:"Slovenian",nativeName:"slovenščina"},sm:{name:"Samoan",nativeName:"gagana fa'a Samoa"},sn:{name:"Shona",nativeName:"chiShona"},so:{name:"Somali",nativeName:"Soomaaliga"},sq:{name:"Albanian",nativeName:"Shqip"},sr:{name:"Serbian",nativeName:"српски језик"},ss:{name:"Swati",nativeName:"SiSwati"},st:{name:"Southern Sotho",nativeName:"Sesotho"},su:{name:"Sundanese",nativeName:"Basa Sunda"},sv:{name:"Swedish",nativeName:"Svenska"},sw:{name:"Swahili",nativeName:"Kiswahili"},ta:{name:"Tamil",nativeName:"தமிழ்"},tg:{name:"Tajik",nativeName:"тоҷикӣ"},th:{name:"Thai",nativeName:"ไทย"},ti:{name:"Tigrinya",nativeName:"ትግርኛ"},tk:{name:"Turkmen",nativeName:"Türkmençe"},tl:{name:"Tagalog",nativeName:"Wikang Tagalog"},tn:{name:"Tswana",nativeName:"Setswana"},to:{name:"Tonga",nativeName:"faka Tonga"},ts:{name:"Tsonga",nativeName:"Xitsonga"},tt:{name:"Tatar",nativeName:"татар теле"},tw:{name:"Twi",nativeName:"Twi"},ty:{name:"Tahitian",nativeName:"Reo Tahiti"},ug:{name:"Uyghur",nativeName:"ئۇيغۇرچە"},uk:{name:"Ukrainian",nativeName:"Українська"},uz:{name:"Uzbek",nativeName:"Ўзбек"},ve:{name:"Venda",nativeName:"Tshivenḓa"},vo:{name:"Volapük",nativeName:"Volapük"},wa:{name:"Walloon",nativeName:"walon"},wo:{name:"Wolof",nativeName:"Wollof"},xh:{name:"Xhosa",nativeName:"isiXhosa"},yi:{name:"Yiddish",nativeName:"ייִדיש"},yo:{name:"Yoruba",nativeName:"Yorùbá"},za:{name:"Zhuang",nativeName:"Saɯ cueŋƅ"},zu:{name:"Zulu",nativeName:"isiZulu"}},Vt=[{code:"en",name:"English"},{code:"es",name:"Español"},{code:"zh",name:"简体中文"},{code:"zh-TW",name:"繁體中文"},{code:"ja",name:"日本語"},{code:"ko",name:"한국어"},{code:"de",name:"Deutsch"},{code:"hi",name:"हिन्दी"},{code:"fr",name:"Français"},{code:"ar",name:"اَلْعَرَبِيَّةُ"},{code:"ru",name:"Русский"},{code:"pt",name:"Português"},{code:"id",name:"Bahasa Indonesia"},{code:"vi",name:"Tiếng Việt"},{code:"th",name:"ไทย"}],Yt=Wt,hn=e=>t=>{const r=Object.entries(e).find(i=>i[1]===Number(t));return r?r[0]:"unknown"},vn=e=>t=>Object.keys(e).find(r=>e[r]===Number(t)),Oe=Object.freeze({added:0,downloading:1,downloaded:2,installing:3,installed:4,starting:5,running:6,stopping:7,stopped:8,error:9,upgrading:10,restarting:11,corrupted:12,waiting:13,deleted:14}),zt={normal:0,suspended:10},Xt={expired:"expired"},$t=hn(Oe),qt=vn(Oe),Ae=Object.freeze({registry:0,local:1,upload:2,url:3,custom:4}),Qt=hn(Ae),Jt=vn(Ae),Zt=Object.freeze({static:"static",dapp:"dapp",gateway:"gateway",pack:"pack"}),ea=["dapp","static","gateway","pack"],na=Object.freeze({added:"blocklet.added",downloadFailed:"blocklet.downloadFailed",installed:"blocklet.installed",installFailed:"blocklet.installFailed",upgraded:"blocklet.upgraded",removed:"blocklet.removed",started:"blocklet.started",startFailed:"blocklet.startFailed",stopped:"blocklet.stopped",reloaded:"blocklet.reloaded",statusChange:"blocklet.statusChange",dataCleaned:"blocklet.dataCleaned",componentInstalled:"blocklet.componentInstalled",componentInstallFailed:"blocklet.componentInstallFailed",componentUpgraded:"blocklet.componentUpgraded",componentUpgradeFailed:"blocklet.componentUpgradeFailed",componentRemoved:"blocklet.componentRemoved",backupProgress:"blocklet.backupProgress",restoreProgress:"blocklet.restoreProgress",downloadBundleProgress:"blocklet.downloadBundleProgress",updated:"blocklet.updated",domainStatus:"blocklet.domainStatus",storeChange:"blocklet.storeChange",appDidChanged:"blocklet.appDidChanged",purchaseChange:"blocklet.purchaseChange",certError:"blocklet.certError",certIssued:"blocklet.certIssued",spaceConnected:"blocklet.spaceConnected",nftConsumed:"blocklet.nftConsumed"}),ta=Object.freeze({appConfigChanged:"blocklet.appConfigChanged",appSettingChanged:"blocklet.appSettingChanged",componentInstalled:"blocklet._componentInstalled",componentUpgraded:"blocklet._componentUpgraded",componentUpdated:"blocklet._componentUpdated",componentStarted:"blocklet._componentStarted",componentStopped:"blocklet._componentStopped",componentRemoved:"blocklet._componentRemoved",componentConfigChanged:"blocklet._componentConfigChanged",componentsUpdated:"blocklet.componentsUpdated"}),aa=Object.freeze({userAdded:"user.added",userRemoved:"user.removed",userUpdated:"user.updated",userProfileUpdated:"user.profile.updated",userPermissionUpdated:"user.permission.updated"}),ia=["aix","darwin","freebsd","linux","openbsd","sunos","win32"],ra=["arm","arm64","ia32","mips","mipsel","ppc","ppc64","s390","s390x","x32","x64"],oa=Object.freeze({PRODUCTION:"production",DEVELOPMENT:"development"}),sa=Object.freeze({SINGLE:"single",MULTIPLE:"multiple"}),ua={developer:.7,store:.3},Rn="web",Sn="service",Bn="wellknown",la=[Rn,Sn,Bn],ge="publicUrl",In="wellknownUrl",ca=[ge],Ea=[ge,In],Pn="http",kn="tcp",yn="udp",ma=[kn,yn,Pn],da="*",_a="BLOCKLET_PORT",pa="/",fa=".blocklet/release",Ca="blocklet.json",Ta=".blocklet/bundle",La="release",Na="bundle",Oa="blocklet.zip",Aa="blocklet.js",ga="blocklet.yml",ha="blocklet.yaml",va="blocklet.prefs.json",Ra="prefs.",Sa="resources",Ba={DIR:".projects",RELEASE_DIR:"releases",RESOURCE_DIR:"resource",ASSET_DIR:"assets",TYPES:{resource:"resource",pack:"pack"},RELEASE_STATUS:{draft:"draft",published:"published"},MAX_NOTE_LENGTH:1e3,MAX_INTRO_LENGTH:3e3},Ia="1.0.0",Pa="__uploads",ka="1.2.8",ya=">=1.7.0",ba=">=1.5.15",Da={BLOCKLET_CLUSTER_SIZE:"BLOCKLET_CLUSTER_SIZE",BLOCKLET_APP_NAME:"BLOCKLET_APP_NAME",BLOCKLET_APP_DESCRIPTION:"BLOCKLET_APP_DESCRIPTION",BLOCKLET_APP_SK:"BLOCKLET_APP_SK",BLOCKLET_APP_LOGO:"BLOCKLET_APP_LOGO",BLOCKLET_APP_LOGO_SQUARE:"BLOCKLET_APP_LOGO_SQUARE",BLOCKLET_APP_LOGO_RECT:"BLOCKLET_APP_LOGO_RECT",BLOCKLET_APP_LOGO_FAVICON:"BLOCKLET_APP_LOGO_FAVICON",BLOCKLET_APP_URL:"BLOCKLET_APP_URL",BLOCKLET_APP_LANGUAGES:"BLOCKLET_APP_LANGUAGES",BLOCKLET_PASSPORT_COLOR:"BLOCKLET_PASSPORT_COLOR",BLOCKLET_WALLET_TYPE:"BLOCKLET_WALLET_TYPE",BLOCKLET_DELETABLE:"BLOCKLET_DELETABLE",BLOCKLET_APP_TENANT_MODE:"BLOCKLET_APP_TENANT_MODE",BLOCKLET_APP_COPYRIGHT_OWNER:"BLOCKLET_APP_COPYRIGHT_OWNER",BLOCKLET_APP_COPYRIGHT_YEAR:"BLOCKLET_APP_COPYRIGHT_YEAR",BLOCKLET_APP_SPACE_ENDPOINT:"BLOCKLET_APP_SPACE_ENDPOINT",BLOCKLET_APP_SPACES_URL:"BLOCKLET_APP_SPACES_URL",BLOCKLET_APP_BACKUP_ENDPOINT:"BLOCKLET_APP_BACKUP_ENDPOINT",BLOCKLET_APP_CHAIN_HOST:"BLOCKLET_APP_CHAIN_HOST",BLOCKLET_APP_CHAIN_TYPE:"BLOCKLET_APP_CHAIN_TYPE",BLOCKLET_APP_CHAIN_ID:"BLOCKLET_APP_CHAIN_ID",COMPONENT_ACCESS_WHO:"COMPONENT_ACCESS_WHO"},Fa={VC_TYPES:["PersonalSpaceVerifiableCredential","EnterpriseSpaceVerifiableCredential","DIDSpaceAppAuthCredential"],NFT_TAG:"did-space-purchase-nft",AUTHORIZE:{DEFAULT_SCOPE:"list:object read:object write:object"}},wa={REQUIRED:"required",REQUIRED_ON_SETUP:"requiredOnSetup",OPTIONAL:"optional",REQUIRED_ON_CONNECT:"requiredOnConnect"},Ka={CHAIN_TYPE:["type","arcblock"],CHAIN_ID:["id","none"],CHAIN_HOST:["host","none"]},Ma={waiting:0,start:10,importData:20,downloading:30,importDataSuccess:40,installing:50,completed:60,error:70},_e={BLOCKLET_APP_CHAIN_HOST:"CHAIN_HOST",BLOCKLET_APP_CHAIN_ID:"CHAIN_ID",BLOCKLET_APP_CHAIN_TYPE:"CHAIN_TYPE"},Ua=Object.keys(_e).reduce((e,t)=>(e[_e[t]]=t,e),{}),xa={AUTH0:"auth0",GOOGLE:"google",APPLE:"apple",GITHUB:"github",WALLET:"wallet",NFT:"nft"},ja={auth0:"Auth0",github:"GitHub",google:"Google",apple:"Apple",email:"Email",wallet:"DID wallet",federated:"Federated"},Ga="/.config",Ha="/.config/public",Wa="/.config/config.json",Va="env",Ya=40,bn={};(function(e){var t=Q&&Q.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(e,"__esModule",{value:!0}),e.hasMountPoint=e.hasStartEngine=e.isPackBlocklet=e.isGatewayBlocklet=e.getBlockletEngine=void 0;const r=t(zn),i=gn,c=m=>{if(m===void 0)throw new Error("blocklet meta param is required");const{engine:N}=m;if(!N)return{interpreter:"node",source:""};if(!Array.isArray(N))return N;const f=r.default.platform(),h=N.find(v=>v.platform===f);if(!h)throw new Error(`can not find a proper engine interpreter on ${f}`);return h};e.getBlockletEngine=c;const E=m=>(m==null?void 0:m.group)===i.BlockletGroup.gateway;e.isGatewayBlocklet=E;const l=m=>(m==null?void 0:m.group)===i.BlockletGroup.pack;e.isPackBlocklet=l;const s=m=>!!(m!=null&&m.main)||(0,e.getBlockletEngine)(m||{}).interpreter==="blocklet";e.hasStartEngine=s;const p=m=>((0,e.hasStartEngine)(m)||((m==null?void 0:m.interfaces)||[]).find(N=>N.type===i.BLOCKLET_INTERFACE_TYPE_WEB))&&(0,e.isGatewayBlocklet)(m)===!1;e.hasMountPoint=p})(bn);(function(e){var t=Q&&Q.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(e,"__esModule",{value:!0}),e.isPackBlocklet=e.isGatewayBlocklet=e.isAccessible=e.isRunning=e.isBeforeInstalled=e.isInProgress=e.getBlockletServices=e.getBlockletAppIdList=e.getRolesFromAuthConfig=e.isPreferenceKey=e.isExternalBlocklet=e.getBlockletChainInfo=e.getChainInfo=e.getConnectAppUrl=e.getParentComponentName=e.filterComponentsV2=e.findComponentByIdV2=e.findComponentV2=e.findComponentById=e.findComponent=e.getComponentBundleId=e.getComponentName=e.getComponentId=e.replaceSlotToIp=e.getComponentWhoCanAccess=e.getWhoCanAccess=e.findServiceFromMeta=e.findWebInterfacePort=e.findWebInterface=e.fixBlockletStatus=e.getAppDescription=e.getDisplayName=e.getAppName=e.hasRunnableComponent=e.wipeSensitiveData=e.isEnvShareable=e.isEnvShareableToClient=e.getComponentMissingConfigs=e.getAppMissingConfigs=e.getSharedConfigObj=e.isDeletableBlocklet=e.forEachComponentV2Sync=e.forEachComponentV2=e.forEachChildSync=e.forEachChild=e.forEachBlockletSync=e.forEachBlocklet=e.isFreeComponent=e.isFreeBlocklet=e.getAppUrl=void 0,e.hasResourceType=e.hasStartEngine=void 0;const r=t(Xn),i=t($n),c=Qn,E=t(qn),l=t(Kt),s=gn,p=bn;Object.defineProperty(e,"hasStartEngine",{enumerable:!0,get:function(){return p.hasStartEngine}}),Object.defineProperty(e,"isGatewayBlocklet",{enumerable:!0,get:function(){return p.isGatewayBlocklet}}),Object.defineProperty(e,"isPackBlocklet",{enumerable:!0,get:function(){return p.isPackBlocklet}});const{NODE_SERVICES:m,SLOT_FOR_IP_DNS_SITE:N,WHO_CAN_ACCESS:f,WHO_CAN_ACCESS_PREFIX_ROLES:h}=l.default,v=(n,a=[])=>`${a.map(o=>o&&o.meta?o.meta.did:"").join("/")}${a.length?"/":""}${n&&n.meta?n.meta.did:""}`;e.getComponentId=v;const C=(n,a=[])=>`${a.map(o=>o&&o.meta?o.meta.name:"").join("/")}${a.length?"/":""}${n&&n.meta?n.meta.name:""}`;e.getComponentName=C;const T=n=>`${n.meta.bundleName}@${n.meta.version}`;e.getComponentBundleId=T;const B=n=>{if(!n)return"";const a=n.split("/");return a.pop(),!a.length||(a[a.length-1].startsWith("@")&&a.pop(),!a.length)?"":a.join("/")};e.getParentComponentName=B;const y=(n,a,{parallel:o=!1,concurrencyLimit:d=5,sync:_,params:L,_parent:O,_root:S,_level:I=0,_tasks:k,_ancestors:D=[],_limit:$}={})=>{const M=S||O||n,se=v(n,D),ue=D.concat(n);if(_){const j=a(n,{parent:O,root:M,level:I,params:L,ancestors:D,id:se});if(n.children)for(const ce of n.children)y(ce,a,{sync:_,params:j,_parent:n,_root:M,_level:I+1,_ancestors:ue});return null}if(!o)return new Promise(async(j,ce)=>{try{const Ee=await a(n,{parent:O,root:M,level:I,ancestors:D,params:L,id:se});if(n.children)for(const Gn of n.children)await y(Gn,a,{params:Ee,_parent:n,_root:M,_level:I+1,_ancestors:ue});j(null)}catch(Ee){ce(Ee)}});const an=$||(0,E.default)(d),le=k||[];if(le.push(an(()=>a(n,{parent:O,root:M,level:I,ancestors:D,id:se}))),n.children)for(const j of n.children)y(j,a,{parallel:o,_parent:n,_root:M,_level:I+1,_tasks:le,_ancestors:ue,_limit:an});return k?null:Promise.all(le)};e.forEachBlocklet=y;const K=(n,a)=>y(n,a,{sync:!0});e.forEachBlockletSync=K;const te=(n,a,{parallel:o=!1,concurrencyLimit:d=5,sync:_}={})=>{if(_){if(n.children)for(const S of n.children)a(S);return null}if(!o)return new Promise(async(S,I)=>{try{if(n.children)for(const k of n.children)await a(k);S(null)}catch(k){I(k)}});const L=(0,E.default)(d),O=[];if(n.children)for(const S of n.children)O.push(L(()=>a(S)));return Promise.all(O)};e.forEachComponentV2=te;const ae=(n,a)=>te(n,a,{sync:!0});e.forEachComponentV2Sync=ae;const ie=(n,a,o)=>y(n,(d,_)=>_.level===0?{}:a(d,_),o);e.forEachChild=ie;const re=(n,a)=>ie(n,a,{sync:!0});e.forEachChildSync=re;const G=(n,a,{_ancestors:o=[],returnAncestors:d=!1}={})=>{if(!a)return null;if(a(n,{ancestors:o}))return d?{component:n,ancestors:o}:n;for(const _ of n.children||[]){const L=o.concat(n),O=G(_,a,{_ancestors:L,returnAncestors:d});if(O)return O}return null};e.findComponent=G;const Be=(n,a,{returnAncestors:o=!1}={})=>(Array.isArray(a)&&(a=a.join("/")),G(n,(d,{ancestors:_})=>{const L=v(d,_);return a===L},{returnAncestors:o}));e.findComponentById=Be;const oe=(n,a)=>{if(!a)return null;for(const o of n.children||[])if(a(o,n))return o;return null};e.findComponentV2=oe;const Ie=(n,a)=>a?(Array.isArray(a)&&(a=a.join("/")),oe(n,(o,d)=>{if(a.includes("/")){const _=v(o,[d]);return a===_}return a===o.meta.did})):null;e.findComponentByIdV2=Ie;const Pe=(n,a)=>{if(!a)return[];const o=[];for(const d of n.children||[])a(d,n)&&o.push(d);return o};e.filterComponentsV2=Pe;const ke=n=>!!n&&!!(n.key||n.name)&&!n.secure&&n.shared!==!1&&!s.BLOCKLET_CONFIGURABLE_KEY[n.key||n.name];e.isEnvShareableToClient=ke;const H=n=>!!n&&!!(n.key||n.name)&&!n.secure&&!!n.shared&&!s.BLOCKLET_CONFIGURABLE_KEY[n.key||n.name];e.isEnvShareable=H;const W=(n,a)=>{const o={};return!n||!a||(Array.isArray(n.configs)&&n.configs.forEach(({key:d,value:_,secure:L})=>{if(!H({key:d,secure:L,shared:!0}))return;const O=(n.configObj||{})[d]||_,S=(a.configs||[]).find(I=>I.key===d);(!S||H(S)||!S.value&&!(a.configObj||{})[S.key])&&(o[d]=O)}),(n.configs||[]).forEach(({key:d,value:_})=>{[s.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_CHAIN_HOST,s.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_CHAIN_ID,s.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_CHAIN_TYPE].includes(d)&&(o[s.CHAIN_PROP_MAP[d]]=_)})),o};e.getSharedConfigObj=W;const V=n=>n.key.startsWith(s.BLOCKLET_PREFERENCE_PREFIX)===!0;e.isPreferenceKey=V;const ye=(n,a)=>!!(n.required&&(!n.value&&!a[n.key]||Object.values(s.CHAIN_PROP_MAP).includes(n.key)&&Object.keys(a).includes(n.key)&&!a[n.key])),be=(n={})=>{const a=[];return ae(n,o=>{var L;if(((L=o.meta)==null?void 0:L.group)===s.BlockletGroup.gateway)return;const d=o.configs||[],_=W(n,o);d.forEach(O=>{ye(O,_)&&a.push({did:o.meta.did,key:O.key,description:O.description})})}),a.filter(o=>!V(o))};e.getAppMissingConfigs=be;const De=(n={},a={})=>{const o=[],d=n.configs||[],_=W(a,n);return d.forEach(L=>{ye(L,_)&&o.push({did:n.meta.did,key:L.key,description:L.description})}),o};e.getComponentMissingConfigs=De;const Fe=n=>n.payment?(n.payment.price||[]).map(o=>o.value||0).every(o=>o===0):!0;e.isFreeBlocklet=Fe;const we=n=>!n.payment||!n.payment.componentPrice?!0:!n.payment.componentPrice.length;e.isFreeComponent=we;const Ke=n=>n&&(y(n,a=>{a.configs&&(a.configs=a.configs.filter(o=>!V(o)),a.configs.forEach(o=>{o.secure&&(o.value=o.value?"__encrypted__":"")})),(a.environments||[]).forEach(o=>{["BLOCKLET_APP_SK","BLOCKLET_APP_PSK"].includes(o.key)&&(o.value="__encrypted__")}),(a.migratedFrom||[]).forEach(o=>{o.appSk="__encrypted__"}),delete n.configObj,delete n.environmentObj},{sync:!0}),n);e.wipeSensitiveData=Ke;const Me=n=>{if(!n)return!1;const a=n.environments.find(o=>o.key==="BLOCKLET_DELETABLE");return a?a.value==="yes":!0};e.isDeletableBlocklet=Me;const Ue=n=>{let a=!1;return K(n,o=>{o.meta.group!==s.BlockletGroup.gateway&&(a=!0)}),a};e.hasRunnableComponent=Ue;const Y=(n,a=!1)=>{if(!n)return"";const{meta:o}=n;let d;if(!a&&n.environments){const _=n.environments.find(L=>L.key==="BLOCKLET_APP_NAME");_&&_.value&&(d=_.value)}return d||o.title||o.name};e.getAppName=Y,e.getDisplayName=Y;const xe=(n,a=!1)=>{if(!n)return"";const{meta:o}=n;let d;if(!a&&n.environments){const _=n.environments.find(L=>L.key==="BLOCKLET_APP_DESCRIPTION");_&&_.value&&(d=_.value)}return d||o.description||o.name};e.getAppDescription=xe;function je(n){var d,_,L;const a=(L=(_=(d=n==null?void 0:n.site)==null?void 0:d.domainAliases)==null?void 0:_.sort((O,S)=>{var I,k,D,$;return(I=O.accessibility)!=null&&I.accessible&&((k=S.accessibility)!=null&&k.accessible)?+O.isProtected-+S.isProtected:+((D=S.accessibility)==null?void 0:D.accessible)-+(($=O.accessibility)==null?void 0:$.accessible)}))==null?void 0:L.map(O=>{var k;const S=(k=O==null?void 0:O.domainStatus)!=null&&k.isHttps?"https://":"http://",I=O==null?void 0:O.value;return`${S}${I}`}).filter(Boolean);return a==null?void 0:a[0]}e.getAppUrl=je;const Ge=n=>{n&&(K(n,a=>{a.status=(0,s.fromBlockletStatus)(a.status),a.source!==void 0&&(a.source=(0,s.fromBlockletSource)(a.source))}),n.settings&&(n.settings.children||[]).forEach(a=>{K(a,o=>{o.status=(0,s.fromBlockletStatus)(o.status),o.source!==void 0&&(o.source=(0,s.fromBlockletSource)(o.source))})}))};e.fixBlockletStatus=Ge;const z=n=>{if(!n)return null;const a=n.meta||n||{},{interfaces:o=[]}=a;return Array.isArray(o)?o.find(d=>d.type===s.BLOCKLET_INTERFACE_TYPE_WEB):null};e.findWebInterface=z;const He=n=>{if(!n)return null;const a=z(n),{ports:o}=n;return!a||!o?null:o[a.port]};e.findWebInterfacePort=He;const X=(n,a)=>{const o=[a];a===m.AUTH&&o.push(m.AUTH_SERVICE);const d=z(n);return d?(d.services||[]).find(_=>o.includes(_.name)):null};e.findServiceFromMeta=X;const We=n=>{if(!n)return f.ALL;if((0,r.default)(n,"settings.whoCanAccess"))return n.settings.whoCanAccess;const a=X(n.meta,m.AUTH);return(0,r.default)(a,"config.whoCanAccess")?a.config.whoCanAccess:f.ALL};e.getWhoCanAccess=We;const Ve=(n,a)=>{const o=(n.configs||[]).find(_=>_.key===s.BLOCKLET_CONFIGURABLE_KEY.COMPONENT_ACCESS_WHO);if(o)return o.value;if(a&&(0,r.default)(a,"settings.whoCanAccess")&&(0,r.default)(a,"settings.whoCanAccess")!==f.ALL)return(0,r.default)(a,"settings.whoCanAccess");const d=X(n.meta,m.AUTH);return(0,r.default)(d,"config.whoCanAccess")?d.config.whoCanAccess:f.ALL};e.getComponentWhoCanAccess=Ve;const Ye=({request:n,baseUrl:a})=>{const o=n.headers["x-blocklet-did"]||"",d=n.headers["x-blocklet-real-did"]||"",_=n.headers["x-path-prefix"]||"/",L=n.headers["x-group-path-prefix"]||"/";let O=a;return o!==d&&_!==L&&(O=(0,c.joinURL)(O,"/").replace(_,L)),O};e.getConnectAppUrl=Ye;const ze=(n,a)=>{const o=(a||"").includes(":")?":":/\./;return(n||"").replace(N,(a||"").replace(new RegExp(o,"g"),"-"))};e.replaceSlotToIp=ze;const x=n=>{const a=Object.entries(s.CHAIN_INFO_CONFIG).reduce((o,d)=>{const[_,[L,O]]=d;return o[L]=(0,r.default)(n,_)||O,o},{});return a.type==="ethereum"&&a.id==="none"&&(a.id="1"),a};e.getChainInfo=x;const Xe=n=>{const a=x({});if(!n)return a;const o=x(n.configObj);if(o.host!=="none")return o;let d;return re(n,_=>{if(d&&d.host!=="none")return;const L=x(_.configObj);L.host!=="none"&&(d=L)}),d||a};e.getBlockletChainInfo=Xe;const $e=n=>!!(n!=null&&n.controller);e.isExternalBlocklet=$e;const qe=n=>n.whoCanAccess.startsWith(h)?n.whoCanAccess.substring(h.length).split(","):[];e.getRolesFromAuthConfig=qe;const jn=n=>{const a=Array.isArray(n.migratedFrom)?n.migratedFrom.map(o=>o.appDid):[];return(0,i.default)([n.appDid,n.appPid,...a].filter(Boolean))};e.getBlockletAppIdList=jn;const Qe=n=>{const a=[];return n&&K(n,o=>{var _;(((_=o.meta)==null?void 0:_.interfaces)||[]).filter(L=>L.type===s.BLOCKLET_INTERFACE_TYPE_SERVICE).forEach(L=>{const O=L.port||{};a.push({name:L.name,protocol:L.protocol,port:Number(O.external),upstreamPort:Number((o.ports||{})[O.internal])})})}),a};e.getBlockletServices=Qe;const Je=n=>[s.BlockletStatus.downloading,s.BlockletStatus.waiting,s.BlockletStatus.starting,s.BlockletStatus.installing,s.BlockletStatus.stopping,s.BlockletStatus.upgrading,"downloading","waiting","starting","installing","extracting","stopping","upgrading","restarting","deleting"].includes(n);e.isInProgress=Je;const Ze=n=>[s.BlockletStatus.added,s.BlockletStatus.waiting,s.BlockletStatus.downloading,s.BlockletStatus.installing,"added","waiting","downloading","installing"].includes(n);e.isBeforeInstalled=Ze;const en=n=>[s.BlockletStatus.running,"running"].includes(n);e.isRunning=en;const nn=n=>[s.BlockletStatus.running,s.BlockletStatus.waiting,s.BlockletStatus.downloading,"running","waiting","downloading"].includes(n);e.isAccessible=nn;const tn=(n,{type:a,did:o}={type:"",did:""})=>{var d,_,L;return n?!(0,p.hasStartEngine)(n.meta)&&((L=(_=(d=n.meta)==null?void 0:d.resource)==null?void 0:_.bundles)==null?void 0:L.length)>0&&(n.meta.resource.bundles||[]).some(O=>O.type===a&&O.did===o):!1};e.hasResourceType=tn,e.default={isFreeBlocklet:Fe,isFreeComponent:we,forEachBlocklet:y,forEachBlockletSync:K,forEachChild:ie,forEachChildSync:re,forEachComponentV2:te,forEachComponentV2Sync:ae,isDeletableBlocklet:Me,getSharedConfigObj:W,getAppMissingConfigs:be,getComponentMissingConfigs:De,isEnvShareableToClient:ke,isEnvShareable:H,wipeSensitiveData:Ke,hasRunnableComponent:Ue,getAppName:Y,getAppDescription:xe,getAppUrl:je,getDisplayName:Y,fixBlockletStatus:Ge,findWebInterface:z,findWebInterfacePort:He,findServiceFromMeta:X,getWhoCanAccess:We,getComponentWhoCanAccess:Ve,replaceSlotToIp:ze,getComponentId:v,getComponentName:C,getComponentBundleId:T,findComponent:G,findComponentById:Be,findComponentV2:oe,findComponentByIdV2:Ie,filterComponentsV2:Pe,getParentComponentName:B,getConnectAppUrl:Ye,getChainInfo:x,getBlockletChainInfo:Xe,isExternalBlocklet:$e,isPreferenceKey:V,getRolesFromAuthConfig:qe,getBlockletServices:Qe,isInProgress:Je,isBeforeInstalled:Ze,isRunning:en,isAccessible:nn,isGatewayBlocklet:p.isGatewayBlocklet,isPackBlocklet:p.isPackBlocklet,hasStartEngine:p.hasStartEngine,hasResourceType:tn}})(de);var he={exports:{}},ln=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,za=/\n/g,Xa=/^\s*/,$a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,qa=/^:\s*/,Qa=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ja=/^[;\s]*/,Za=/^\s+|\s+$/g,ei=`
|
|
73
|
-
`,cn="/",En="*",F="",ni="comment",ti="declaration",ai=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,i=1;function c(C){var T=C.match(za);T&&(r+=T.length);var B=C.lastIndexOf(ei);i=~B?C.length-B:i+C.length}function E(){var C={line:r,column:i};return function(T){return T.position=new l(C),m(),T}}function l(C){this.start=C,this.end={line:r,column:i},this.source=t.source}l.prototype.content=e;function s(C){var T=new Error(t.source+":"+r+":"+i+": "+C);if(T.reason=C,T.filename=t.source,T.line=r,T.column=i,T.source=e,!t.silent)throw T}function p(C){var T=C.exec(e);if(T){var B=T[0];return c(B),e=e.slice(B.length),T}}function m(){p(Xa)}function N(C){var T;for(C=C||[];T=f();)T!==!1&&C.push(T);return C}function f(){var C=E();if(!(cn!=e.charAt(0)||En!=e.charAt(1))){for(var T=2;F!=e.charAt(T)&&(En!=e.charAt(T)||cn!=e.charAt(T+1));)++T;if(T+=2,F===e.charAt(T-1))return s("End of comment missing");var B=e.slice(2,T-2);return i+=2,c(B),e=e.slice(T),i+=2,C({type:ni,comment:B})}}function h(){var C=E(),T=p($a);if(T){if(f(),!p(qa))return s("property missing ':'");var B=p(Qa),y=C({type:ti,property:mn(T[0].replace(ln,F)),value:B?mn(B[0].replace(ln,F)):F});return p(Ja),y}}function v(){var C=[];N(C);for(var T;T=h();)T!==!1&&(C.push(T),N(C));return C}return m(),v()};function mn(e){return e?e.replace(Za,F):F}var ii=ai;function Dn(e,t){var r=null;if(!e||typeof e!="string")return r;for(var i,c=ii(e),E=typeof t=="function",l,s,p=0,m=c.length;p<m;p++)i=c[p],l=i.property,s=i.value,E?t(l,s,i):s&&(r||(r={}),r[l]=s);return r}he.exports=Dn;he.exports.default=Dn;var ri=he.exports;const oi=fn(ri),si={}.hasOwnProperty;function ui(e,t,r){if(typeof e!="function")throw new TypeError("h is not a function");const i=ci(e),c=di(e),E=mi(e);let l,s;if(typeof r=="string"||typeof r=="boolean"?(l=r,r={}):(r||(r={}),l=r.prefix),t&&t.type==="root"){const p=t.children[0];s=t.children.length===1&&p.type==="element"?p:{type:"element",tagName:"div",properties:{},children:t.children}}else if(t&&t.type==="element")s=t;else throw new Error("Expected root or element, not `"+(t&&t.type||t)+"`");return Fn(e,s,{schema:r.space==="svg"?Ln:lt,prefix:l==null?i||c||E?"h-":void 0:typeof l=="string"?l:l?"h-":void 0,key:0,react:i,vue:c,vdom:E,hyperscript:Ei(e)})}function Fn(e,t,r){const i=r.schema;let c=i,E=t.tagName;const l={},s=[];let p=-1,m;i.space==="html"&&E.toLowerCase()==="svg"&&(c=Ln,r.schema=c);for(m in t.properties)t.properties&&si.call(t.properties,m)&&li(l,m,t.properties[m],r,E);if(r.vdom&&(c.space==="html"?E=E.toUpperCase():c.space&&(l.namespace=ct[c.space])),r.prefix&&(r.key++,l.key=r.prefix+r.key),t.children)for(;++p<t.children.length;){const N=t.children[p];N.type==="element"?s.push(Fn(e,N,r)):N.type==="text"&&s.push(N.value)}return r.schema=i,s.length>0?e.call(t,E,l,s):e.call(t,E,l)}function li(e,t,r,i,c){const E=Et(i.schema,t);let l;r==null||typeof r=="number"&&Number.isNaN(r)||r===!1&&(i.vue||i.vdom||i.hyperscript)||!r&&E.boolean&&(i.vue||i.vdom||i.hyperscript)||(Array.isArray(r)&&(r=E.commaSeparated?mt(r):dt(r)),E.boolean&&i.hyperscript&&(r=""),E.property==="style"&&typeof r=="string"&&(i.react||i.vue||i.vdom)&&(r=_i(r,c)),i.vue?E.property!=="style"&&(l="attrs"):E.mustUseProperty||(i.vdom?E.property!=="style"&&(l="attributes"):i.hyperscript&&(l="attrs")),l?e[l]=Object.assign(e[l]||{},{[E.attribute]:r}):E.space&&i.react?e[_t[E.property]||E.property]=r:e[E.attribute]=r)}function ci(e){const t=e("div",{});return!!(t&&("_owner"in t||"_store"in t)&&(t.key===void 0||t.key===null))}function Ei(e){return"context"in e&&"cleanup"in e}function mi(e){return e("div",{}).type==="VirtualNode"}function di(e){const t=e("div",{});return!!(t&&t.context&&t.context._isVue)}function _i(e,t){const r={};try{oi(e,(i,c)=>{i.slice(0,4)==="-ms-"&&(i="ms-"+i.slice(4)),r[i.replace(/-([a-z])/g,(E,l)=>l.toUpperCase())]=c})}catch(i){const c=i;throw c.message=t+"[style]"+c.message.slice(9),c}return r}var pi=wn;function wn(e){if(typeof e=="string")return Li(e);if(e==null)return Ni;if(typeof e=="object")return("length"in e?Ti:Ci)(e);if(typeof e=="function")return e;throw new Error("Expected function, string, or object as test")}function fi(e){for(var t=[],r=e.length,i=-1;++i<r;)t[i]=wn(e[i]);return t}function Ci(e){return t;function t(r){var i;for(i in e)if(r[i]!==e[i])return!1;return!0}}function Ti(e){var t=fi(e),r=t.length;return i;function i(){for(var c=-1;++c<r;)if(t[c].apply(this,arguments))return!0;return!1}}function Li(e){return t;function t(r){return!!(r&&r.type===e)}}function Ni(){return!0}var Oi=Z,Ai=pi,Kn=!0,Mn="skip",q=!1;Z.CONTINUE=Kn;Z.SKIP=Mn;Z.EXIT=q;function Z(e,t,r,i){var c;typeof t=="function"&&typeof r!="function"&&(i=r,r=t,t=null),c=Ai(t),E(e,null,[]);function E(s,p,m){var N=[],f;return(!t||c(s,p,m[m.length-1]||null))&&(N=dn(r(s,m)),N[0]===q)?N:s.children&&N[0]!==Mn?(f=dn(l(s.children,m.concat(s))),f[0]===q?f:N):N}function l(s,p){for(var m=-1,N=i?-1:1,f=(i?s.length:m)+N,h;f>m&&f<s.length;){if(h=E(s[f],f,p),h[0]===q)return h;f=typeof h[1]=="number"?h[1]:f+N}}}function dn(e){return e!==null&&typeof e=="object"&&"length"in e?e:typeof e=="number"?[Kn,e]:[e]}var gi=ne,ee=Oi,hi=ee.CONTINUE,vi=ee.SKIP,Ri=ee.EXIT;ne.CONTINUE=hi;ne.SKIP=vi;ne.EXIT=Ri;function ne(e,t,r,i){typeof t=="function"&&typeof r!="function"&&(i=r,r=t,t=null),ee(e,t,c,i);function c(E,l){var s=l[l.length-1],p=s?s.children.indexOf(E):null;return r(E,p,s)}}var Si=gi,Bi=Object.prototype.hasOwnProperty,me={align:"text-align",valign:"vertical-align",height:"height",width:"width"},Ii=function(t){return Si(t,"element",Pi),t};function Pi(e){if(!(e.tagName!=="tr"&&e.tagName!=="td"&&e.tagName!=="th")){var t,r;for(t in me)!Bi.call(me,t)||e.properties[t]===void 0||(r=me[t],ki(e,r,e.properties[t]),delete e.properties[t])}}function ki(e,t,r){var i=(e.properties.style||"").trim();i&&!/;\s*/.test(i)&&(i+=";"),i&&(i+=" ");var c=i+t+": "+r+";";e.properties.style=c}const yi=fn(Ii);function bi(e){const t=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof t=="string"&&t.replace(/[ \t\n\f\r]/g,"")===""}const Di={}.hasOwnProperty,Fi=new Set(["table","thead","tbody","tfoot","tr"]);function wi(e){if(!e||typeof e.createElement!="function")throw new TypeError("createElement is not a function");const t=e.createElement,r=e.fixTableCellAlign!==!1;Object.assign(this,{Compiler:i});function i(E){let l=ui(c,r?yi(E):E,e.prefix);return E.type==="root"?(l=l&&typeof l=="object"&&"type"in l&&"props"in l&&l.type==="div"&&(E.children.length!==1||E.children[0].type!=="element")?l.props.children:[l],t(e.Fragment||"div",{},l)):l}function c(E,l,s){if(s&&Fi.has(E)&&(s=s.filter(p=>!bi(p))),e.components&&Di.call(e.components,E)){const p=e.components[E];return e.passNode&&typeof p=="function"&&(l=Object.assign({node:this},l)),t(p,l,s)}return t(E,l,s)}}function ve({children:e}){return u.jsx(Ki,{children:e})}const _n="source-code-pro, Menlo, Monaco, Consolas, Courier New, monospace !important",Ki=U(R)`
|
|
74
|
-
.highlight pre,
|
|
75
|
-
pre {
|
|
76
|
-
border-radius: 5px;
|
|
77
|
-
}
|
|
78
|
-
code {
|
|
79
|
-
font-family: ${_n};
|
|
80
|
-
}
|
|
81
|
-
pre code {
|
|
82
|
-
font-size: 14px;
|
|
83
|
-
font-family: ${_n};
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
h1,
|
|
87
|
-
h2,
|
|
88
|
-
h3,
|
|
89
|
-
h4,
|
|
90
|
-
h5,
|
|
91
|
-
h6 {
|
|
92
|
-
font-weight: 700 !important;
|
|
93
|
-
font-size: 1.2rem !important;
|
|
94
|
-
line-height: 1.5 !important;
|
|
95
|
-
margin-bottom: 16px;
|
|
96
|
-
margin-top: 24px;
|
|
97
|
-
border-bottom: initial !important;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.CodeMirror pre {
|
|
101
|
-
background: #f6f8fa !important;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.anchor {
|
|
105
|
-
display: none;
|
|
106
|
-
}
|
|
107
|
-
`;ve.propTypes={children:g.any.isRequired};ve.defaultProps={};function Un({infoList:e=[]}){return u.jsx(R,{className:"info-table",sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"max-content 1fr"},columnGap:4,rowGap:1.5},children:e.map(t=>u.jsxs(u.Fragment,{children:[u.jsx(R,{component:"span",sx:{fontWeight:"bold",whiteSpace:"nowrap"},children:t.key}),u.jsx(R,{component:"span",sx:{marginTop:{xs:-1,md:0}},children:t.value})]}))})}Un.propTypes={infoList:g.arrayOf(g.shape({key:g.string,value:g.string}))};const Mi=e=>e.payment?(e.payment.price||[]).map(r=>r.value||0).every(r=>r===0):!0,Ui=new wi({createElement:w.createElement}).Compiler,b={zh:{appinfo:{name:"应用名",version:"版本号",author:"开发者",description:"描述",community:"社区地址",documentation:"文档手册",support:"服务支持",overview:"概述",requirements:"节点版本要求"}},en:{appinfo:{name:"Name",version:"Version",author:"Author",description:"Description",community:"Community",documentation:"Documentation",support:"Support",overview:"Overview",requirements:"Server requirements"}}};function Re({blockletMeta:e,locale:t,handleDescEle:r}){const{data:i}=e,{registryUrl:c,did:E}=i,l=de.getDisplayName({meta:i}),s=Jn(()=>c&&E?fetch(rn(c,"/api/blocklets",E,"readme")).then(C=>C.json()):null,{refreshDeps:[c,E]}),p=Zn(()=>s.data?s.data[t]||s.data.en||s.data[Object.keys(s.data)[0]]:"",[s]),m=i&&i.htmlAst?Ui(i.htmlAst):"",N=Mi(i);let f=P(i,"owner.fullName");if(f){const C=P(i,"owner.did");C&&(f=u.jsxs(R,{sx:{display:"flex",alignItems:"center",gap:1},children:[f,u.jsx(et,{sx:{lineHeight:"initial","&::before":{content:'"("'},"&::after":{content:'")"'}},did:C,compact:!0,size:14,locale:t})]}))}else f=P(i,"author.name");const h=[{key:P(b[t],"appinfo.name"),value:de.getDisplayName({meta:i})},{key:P(b[t],"appinfo.version"),value:i.version},{key:P(b[t],"appinfo.author"),value:f},{type:"description",key:P(b[t],"appinfo.description"),value:i.description}];i.requirements&&h.push({key:P(b[t],"appinfo.requirements"),value:i.requirements.server}),i.community&&h.push({key:P(b[t],"appinfo.community"),value:u.jsx("a",{href:i.community,target:"_blank",rel:"noreferrer",children:i.community})}),i.documentation&&h.push({key:P(b[t],"appinfo.documentation"),value:u.jsx("a",{href:i.documentation,target:"_blank",rel:"noreferrer",children:i.documentation})}),i.support&&h.push({key:P(b[t],"appinfo.support"),value:u.jsx("a",{href:`mailto:${i.support}`,target:"_blank",rel:"noreferrer",children:i.support})}),m&&h.push({key:P(b[t],"appinfo.overview"),value:""});let v;return t==="zh"?v=u.jsxs(u.Fragment,{children:[N?u.jsxs("p",{children:["您可以免费使用 ",u.jsx("b",{children:l}),";"]}):u.jsxs("p",{children:["您需要购买才能使用 ",u.jsx("b",{children:l}),";"]}),u.jsx("p",{children:"在应用启动前,需要选择您的节点;"}),u.jsx("p",{children:"如果您没有节点,我们会引导您创建新的节点;"}),u.jsx("p",{children:"下面为该应用的信息:"})]}):v=u.jsxs(u.Fragment,{children:[N?u.jsxs("p",{children:["You can use ",u.jsx("b",{children:l})," for free;"]}):u.jsxs("p",{children:["You need to purchase before launch ",u.jsx("b",{children:l}),";"]}),u.jsx("p",{children:"Before the blocklet starts, you need to select your Blocklet Server; "}),u.jsx("p",{children:"If you do not have any Blocklet Server, we will guide you to create a new one; "}),u.jsx("p",{children:"Below is the information for the blocklet: "})]}),u.jsxs(ji,{children:[r||v,u.jsx(Un,{infoList:h}),p?u.jsxs("div",{className:"app-overview",children:[u.jsx(Cn,{variant:"h5",gutterBottom:!0,children:P(b[t],"appinfo.overview")}),u.jsx(ve,{children:u.jsx(xi,{component:"div",className:"content-wrapper post-content",children:u.jsx(pt,{source:p,wrapperElement:{"data-color-mode":"light"},urlTransform:(C,T,B)=>C.startsWith("/")?rn(c,C):C})})})]}):m?u.jsx("div",{className:"app-overview",children:m}):null]})}const xi=U(Cn)`
|
|
108
|
-
width: 100%;
|
|
109
|
-
word-wrap: break-word;
|
|
110
|
-
word-break: break-word;
|
|
111
|
-
line-height: 1.5em;
|
|
112
|
-
min-height: 10vh;
|
|
113
|
-
margin-bottom: 40px !important;
|
|
114
|
-
|
|
115
|
-
.alert-content {
|
|
116
|
-
max-width: 100%;
|
|
117
|
-
p:last-of-type {
|
|
118
|
-
margin-bottom: 0;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
iframe {
|
|
123
|
-
width: 100% !important;
|
|
124
|
-
}
|
|
125
|
-
`,ji=U.div`
|
|
126
|
-
.info-table {
|
|
127
|
-
a {
|
|
128
|
-
word-break: break-all;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
.app-overview {
|
|
132
|
-
font-size: 16px;
|
|
133
|
-
margin: 16px 0 0 16px;
|
|
134
|
-
h1 {
|
|
135
|
-
margin: 8px 0;
|
|
136
|
-
font-size: 20px;
|
|
137
|
-
}
|
|
138
|
-
h2 {
|
|
139
|
-
margin: 8px 0;
|
|
140
|
-
font-size: 18px;
|
|
141
|
-
}
|
|
142
|
-
ul {
|
|
143
|
-
display: block;
|
|
144
|
-
list-style-type: disc;
|
|
145
|
-
padding-left: 2em;
|
|
146
|
-
li {
|
|
147
|
-
display: list-item;
|
|
148
|
-
list-style: disc;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
blockquote {
|
|
152
|
-
margin-left: 2em;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
`;Re.propTypes={blockletMeta:g.object.isRequired,locale:g.string.isRequired,handleDescEle:g.node};Re.defaultProps={handleDescEle:""};function Gi({...e}){return u.jsxs("div",{...e,style:{width:"100%"},children:[u.jsx("h3",{children:"End User License Agreement for Application"}),u.jsxs("p",{children:["Blocklet Server License Agreement ",nt.COPYRIGHT_OWNER," version 2020-08-28"]}),u.jsx("p",{children:"BLOCKLET SERVER LICENSE AGREEMENT"}),u.jsx("p",{children:"暂无"})]})}function Hi(e){var t,r,i,c;return`${((t=e.bundleSource)==null?void 0:t.store)||e.meta.homepage}/assets/${(r=e.meta)==null?void 0:r.did}/${((i=e.meta)==null?void 0:i.logo)||"logo.png"}?v=${(c=e.meta)==null?void 0:c.version}`}function Se({installRelated:e,meta:t,show:r,onClose:i,components:c,loading:E}){const{t:l}=Tn(),s=tt(f=>f.breakpoints.down("md"));if(!r)return null;const p=!E&&c.length===0,m=!E&&c.length!==0,N=40;return u.jsxs(pn,{title:l("blocklet.component.relatedComponents",{name:t.title}),maxWidth:!1,fullWidth:!1,onClose:(f,h)=>{h!=="backdropClick"&&i(!1)},PaperProps:{style:s?{width:"100%",height:window.innerHeight}:{maxWidth:500,minWidth:300,width:"80%"}},showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:[E&&u.jsx(R,{sx:{marginTop:4,display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"},children:u.jsx(R,{sx:{fontSize:32},color:"primary.main",component:J,icon:"line-md:loading-loop"})}),p&&u.jsx(R,{sx:{textAlign:"center"},children:l("blocklet.component.noDependencies",{name:t.title})}),m&&u.jsx(R,{sx:{marginBottom:2},children:c.map(f=>{if(!f.meta)return null;const{required:h}=f;let v;return e||h?v=1:v=.5,u.jsxs(R,{sx:{opacity:v,padding:"10px 0px",paddingBottom:.5,marginTop:0,display:"flex",flexDirection:"row",justifyContent:"start",alignItems:"flex-start"},children:[u.jsx("img",{style:{width:N,height:N,minWidth:N,minHeight:N},src:Hi(f),alt:f.meta.title}),u.jsxs(R,{sx:{display:"flex",flexDirection:"column",justifyContent:"start",alignItems:"start",flex:1,marginLeft:2},children:[u.jsxs(R,{sx:{display:"flex",flexDirection:"row",justifyContent:"start",alignItems:"center",fontSize:"16px",fontWeight:"bold",cursor:"pointer",".link-icon":{opacity:0},":hover .link-icon":{opacity:1}},onClick:()=>{var C;window.open(`${((C=f.bundleSource)==null?void 0:C.store)||f.meta.homepage}/blocklets/${f.meta.did}`,"_blank")},children:[f.meta.title,u.jsx(R,{sx:{display:h?"inline-block":"none",fontSize:"12px",fontWeight:"bold",marginLeft:1},children:l("blocklet.component.required")}),u.jsxs(R,{sx:{paddingLeft:1,fontSize:"13px",fontWeight:"400"},component:"span",children:[f.meta.version,u.jsx(R,{className:"link-icon",icon:"fluent:open-20-filled",component:J,sx:{color:"primary.main",fontSize:16,transform:"translate(6px, 3px)",transition:"all 0.1s"}})]})]}),u.jsx(R,{sx:{marginTop:0,opacity:.7},children:f.meta.description})]})]},f.meta.did)})})]})}Se.propTypes={meta:g.object,show:g.bool,onClose:g.func.isRequired,installRelated:g.func,components:g.array.isRequired,loading:g.bool.isRequired};Se.defaultProps={meta:null,show:!1,installRelated:!1};function Wi(e){return e&&(e.registryUrl||e.homepage)&&e.did?`${e.registryUrl||e.homepage}/api/blocklets/${e==null?void 0:e.did}/blocklet.json`:""}function Vi(e){const{api:t}=at(),[r]=it(),i=r.get("blocklet_meta_url")||Wi(e),[c,E]=w.useState([]),[l,s]=w.useState(!1);return w.useEffect(()=>{!i||e!=null&&e.inputUrl||(s(!0),t.getDynamicComponents({input:{url:i}}).then(p=>{E(p.components)}).finally(()=>{s(!1)}))},[i]),{components:c,loading:l}}function xn({installRelated:e,onChangeInstallRelated:t,meta:r,onClickNext:i,handleDescEle:c}){const E=rt(),{t:l,locale:s}=Tn(),[p,m]=w.useState(!1),{components:N,loading:f}=Vi(r),h=i||(()=>{E(`/launch-blocklet/install${window.location.search}`)}),v=()=>{m(!0)},C=()=>{m(!1)};return u.jsxs(Yi,{children:[u.jsx("div",{className:"app-content",children:u.jsx("div",{className:"agreement",children:u.jsx("div",{className:"agreement-content",children:u.jsx(Re,{blockletMeta:{data:r},locale:s,handleDescEle:c})})})}),u.jsxs(R,{className:"agreement-bottom",sx:{"> .agreement-loading":{color:"primary.main"}},children:[f?u.jsx(J,{className:"agreement-loading",icon:"line-md:loading-loop",style:{fontSize:42,transform:"scale(0.6)"}}):null,t&&(N!=null&&N.length)?u.jsxs(R,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center"},children:[u.jsx(ot,{sx:{mr:.5},checked:e,onChange:T=>t(T.currentTarget.checked),control:u.jsx(st,{}),label:u.jsx("span",{children:l("launchBlocklet.installRelatedComponents")})}),u.jsx(R,{sx:{"> button svg":{color:"primary.main"}},children:u.jsx(ut,{size:"small",onClick:v,children:u.jsx(J,{icon:"octicon:package-dependencies-16"})})})]}):null,u.jsx("div",{className:"button-container","data-cy":"agree-all",children:u.jsx(Ce,{onContinue:h,description:u.jsx(Gi,{}),texts:{listenName:l("launchBlocklet.license"),buttonNext:l("launchBlocklet.next")}})})]}),u.jsx(Se,{installRelated:e,meta:r,show:p,onClose:C,components:N,loading:f})]})}xn.propTypes={meta:g.object.isRequired,onClickNext:g.func,handleDescEle:g.node,installRelated:g.bool,onChangeInstallRelated:g.func};xn.defaultProps={onClickNext:null,handleDescEle:"",installRelated:!0,onChangeInstallRelated:null};const Yi=U.div`
|
|
156
|
-
display: flex;
|
|
157
|
-
flex-direction: column;
|
|
158
|
-
align-items: center;
|
|
159
|
-
width: 100%;
|
|
160
|
-
height: 100%;
|
|
161
|
-
flex: 1;
|
|
162
|
-
.app-content {
|
|
163
|
-
padding: 2px 24px 24px;
|
|
164
|
-
${e=>e.theme.breakpoints.down("md")} {
|
|
165
|
-
padding-top: 10px;
|
|
166
|
-
}
|
|
167
|
-
width: 100%;
|
|
168
|
-
flex: 1;
|
|
169
|
-
letter-spacing: normal;
|
|
170
|
-
}
|
|
171
|
-
.agreement {
|
|
172
|
-
position: relative;
|
|
173
|
-
display: flex;
|
|
174
|
-
flex-direction: column;
|
|
175
|
-
width: 100%;
|
|
176
|
-
height: 100%;
|
|
177
|
-
border: 1px solid ${e=>e.theme.palette.grey[100]};
|
|
178
|
-
border-radius: 12px;
|
|
179
|
-
${e=>e.theme.breakpoints.up("md")} {
|
|
180
|
-
margin-top: 24px;
|
|
181
|
-
}
|
|
182
|
-
${e=>e.theme.breakpoints.down("md")} {
|
|
183
|
-
margin-top: 16px;
|
|
184
|
-
}
|
|
185
|
-
.agreement-content {
|
|
186
|
-
position: absolute;
|
|
187
|
-
left: 0;
|
|
188
|
-
top: 0;
|
|
189
|
-
width: 100%;
|
|
190
|
-
height: 100%;
|
|
191
|
-
font-size: 14px;
|
|
192
|
-
overflow-y: auto;
|
|
193
|
-
${e=>e.theme.breakpoints.up("md")} {
|
|
194
|
-
padding: 0 24px;
|
|
195
|
-
}
|
|
196
|
-
${e=>e.theme.breakpoints.down("md")} {
|
|
197
|
-
padding: 0 16px;
|
|
198
|
-
}
|
|
199
|
-
&:after {
|
|
200
|
-
display: block;
|
|
201
|
-
content: '';
|
|
202
|
-
height: 24px;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
.agreement-bottom {
|
|
207
|
-
display: flex;
|
|
208
|
-
width: 100%;
|
|
209
|
-
padding: 24px;
|
|
210
|
-
${e=>e.theme.breakpoints.up("md")} {
|
|
211
|
-
flex-direction: row;
|
|
212
|
-
align-items: center;
|
|
213
|
-
margin-left: auto;
|
|
214
|
-
}
|
|
215
|
-
${e=>e.theme.breakpoints.down("md")} {
|
|
216
|
-
flex-direction: column;
|
|
217
|
-
align-items: center;
|
|
218
|
-
padding-top: 0;
|
|
219
|
-
padding-bottom: 16px;
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
.button-container {
|
|
223
|
-
${e=>e.theme.breakpoints.up("md")} {
|
|
224
|
-
margin-left: auto;
|
|
225
|
-
}
|
|
226
|
-
${e=>e.theme.breakpoints.down("md")} {
|
|
227
|
-
padding-top: 0;
|
|
228
|
-
padding-bottom: 16px;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
`;export{xn as A,ft as C,Lt as d};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{av as a}from"./index-CXlxAjbt.js";a.defaults.timeout=10*1e3;const o=a.create();export{o as a};
|