@abtnode/blocklet-services 1.16.33-beta-20241031-073543-49b1ff9b → 1.16.33-beta-20241031-230002-b46137ba
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/api/libs/connect/session.js +3 -3
- package/api/libs/kyc.js +5 -5
- package/api/routes/user.js +9 -1
- package/api/services/auth/connect/invite.js +1 -1
- package/api/services/auth/connect/login.js +2 -1
- package/api/services/auth/connect/update-kyc.js +1 -1
- package/api/services/auth/index.js +21 -0
- package/dist/assets/{Add-BbT7BiIn.js → Add-C5-W3UKp.js} +1 -1
- package/dist/assets/{Alert-GYW4yXwi.js → Alert-MPiiZl43.js} +1 -1
- package/dist/assets/{ArrowDropDown-DxOMxGRV.js → ArrowDropDown-Vxgjfzsb.js} +1 -1
- package/dist/assets/{Autocomplete-BGjstuR-.js → Autocomplete-o-9NS9YA.js} +1 -1
- package/dist/assets/{Avatar-DPvi1dd4.js → Avatar-DDKBALaJ.js} +1 -1
- package/dist/assets/{ButtonGroup-CV6xLD7o.js → ButtonGroup-D8BlpFOF.js} +1 -1
- package/dist/assets/{CSSTransition-CPq1SkB8.js → CSSTransition-Cl3dqSUp.js} +1 -1
- package/dist/assets/{CheckCircle-DttNFZFt.js → CheckCircle-BZ-KPWDf.js} +1 -1
- package/dist/assets/{ChevronLeft-B6pg2NmZ.js → ChevronLeft-w0oWzfYi.js} +1 -1
- package/dist/assets/{ChevronRight-CCLOBhXi.js → ChevronRight-B8-OTl-V.js} +1 -1
- package/dist/assets/{Close-D6G5_99n.js → Close-DOy1k6an.js} +1 -1
- package/dist/assets/{CloseOutlined-DnJ7iFbY.js → CloseOutlined-DTHgjq8r.js} +1 -1
- package/dist/assets/{Delete-BDd8Y-f-.js → Delete-xmuDalv8.js} +1 -1
- package/dist/assets/{DeleteOutline-BMYl1P54.js → DeleteOutline-DbdWy8tC.js} +1 -1
- package/dist/assets/{DialogContentText-CGVxonSs.js → DialogContentText-CS5MSQtu.js} +1 -1
- package/dist/assets/{Done-CQYMvSV2.js → Done-BIgK0-yu.js} +1 -1
- package/dist/assets/{Download-BoHGh_oI.js → Download-DPw3av5o.js} +1 -1
- package/dist/assets/{EditIcon-gJSIyUhs.js → EditIcon-PsnV85kC.js} +1 -1
- package/dist/assets/{Error-Dl5QWhzt.js → Error-BuytJmXm.js} +1 -1
- package/dist/assets/{ExpandMore-hHdanP4V.js → ExpandMore-DzHAg89w.js} +1 -1
- package/dist/assets/{FormControl-BcK5E1OT.js → FormControl-DFgqjaDx.js} +1 -1
- package/dist/assets/{FormControlLabel-DIFTdkch.js → FormControlLabel-CCT1Hxna.js} +1 -1
- package/dist/assets/{FormGroup-hQa_O_gn.js → FormGroup-CoWGV2kU.js} +1 -1
- package/dist/assets/{Google-JhA3tPdq.js → Google-CHmcXUcd.js} +3 -3
- package/dist/assets/{Grid-B_SHGR2L.js → Grid-CO5mLAA8.js} +1 -1
- package/dist/assets/{HelpOutline-BxsuH4I6.js → HelpOutline-CkhSX3fy.js} +1 -1
- package/dist/assets/{Hidden-CcJWl8RU.js → Hidden-Bcfg4-bH.js} +1 -1
- package/dist/assets/{InfoOutlined-CCy1pD2i.js → InfoOutlined-BPE4vAMd.js} +1 -1
- package/dist/assets/{InputAdornment-CyNJt_fa.js → InputAdornment-B-joVStm.js} +1 -1
- package/dist/assets/{LastPage-CV4Keuen.js → LastPage-XMNFRrKd.js} +1 -1
- package/dist/assets/{Launch-CBwpqgeT.js → Launch-ZPrDFcJQ.js} +1 -1
- package/dist/assets/{LaunchOutlined-DsiOdG73.js → LaunchOutlined-BFvRVMx4.js} +1 -1
- package/dist/assets/{Link-D_CsWAfW.js → Link-COz46AhA.js} +1 -1
- package/dist/assets/{ListItemButton-KYk39rpD.js → ListItemButton-DOQg4G8c.js} +1 -1
- package/dist/assets/{ListSubheader-BrKHJoML.js → ListSubheader-BphpOySX.js} +1 -1
- package/dist/assets/{LoadingButton-CVrS0YBY.js → LoadingButton-Ct_JtrmU.js} +1 -1
- package/dist/assets/{LockIcon-DXUNi3b0.js → LockIcon-DIkwsUpQ.js} +1 -1
- package/dist/assets/{Loop-DySlvS0a.js → Loop-B3Y8cnuy.js} +1 -1
- package/dist/assets/{MarkEmailRead-CM3Qk1e1.js → MarkEmailRead-C192JefB.js} +1 -1
- package/dist/assets/{Menu-DLtWW250.js → Menu-BCLNF0wV.js} +1 -1
- package/dist/assets/{MoreHoriz-B0hsGNsm.js → MoreHoriz-0nWF2mqR.js} +1 -1
- package/dist/assets/{MoreVert-vMGpcUpi.js → MoreVert-BKZLkhdi.js} +1 -1
- package/dist/assets/{OpenInNew-CcFMpufV.js → OpenInNew-DUexeISZ.js} +1 -1
- package/dist/assets/Pagination-DIGqgx3i.js +2 -0
- package/dist/assets/{PlayArrow-Bz9x7amJ.js → PlayArrow-BnuD-ix6.js} +1 -1
- package/dist/assets/{QuestionMarkCircle-B36736Ej.js → QuestionMarkCircle-CUjZXC07.js} +1 -1
- package/dist/assets/{RadioGroup-DgJsEJxt.js → RadioGroup-DAJgst3D.js} +1 -1
- package/dist/assets/{Search-CE2vOBwg.js → Search-HNhjKRtr.js} +1 -1
- package/dist/assets/{Select-C2HlOyoW.js → Select-BfCw7EsS.js} +2 -2
- package/dist/assets/{ServerLogo-AznflSy7.js → ServerLogo-gW8Umckw.js} +1 -1
- package/dist/assets/{Skeleton-5qdbkUsc.js → Skeleton-DJHsrXrk.js} +3 -3
- package/dist/assets/{Slider-QUS33Kq4.js → Slider-DSn38U5h.js} +1 -1
- package/dist/assets/{Stack-BhQ_80q-.js → Stack-DZqB4nST.js} +1 -1
- package/dist/assets/{Stepper-Clj24sC3.js → Stepper-CYPrVpUA.js} +1 -1
- package/dist/assets/{TextField-DqidhRm4.js → TextField-QsTZLSPK.js} +1 -1
- package/dist/assets/{Toolbar-C2KukkIX.js → Toolbar-ovqJjtaU.js} +1 -1
- package/dist/assets/{ViewColumn-92NUbhDx.js → ViewColumn-CMTirt5e.js} +1 -1
- package/dist/assets/{ViewList-35wYIlh1.js → ViewList-Cu4_NFgQ.js} +1 -1
- package/dist/assets/{access-control-C1YDYzKf.js → access-control-B8mzoGc9.js} +1 -1
- package/dist/assets/{actions-CBVAti_q.js → actions-BnONH73_.js} +1 -1
- package/dist/assets/add-component-core-AN4IHhr2.js +804 -0
- package/dist/assets/add-resource-DZqyElGv.js +1 -0
- package/dist/assets/{addon-BaUd5Xtv.js → addon-BWJyDf-k.js} +1 -1
- package/dist/assets/{analytics-D9Uz8eMW.js → analytics-kMGru_5Y.js} +1 -1
- package/dist/assets/api-B-FzaAOJ.js +1 -0
- package/dist/assets/{audit-logs-DI3GXdoU.js → audit-logs-Bl-T8iay.js} +1 -1
- package/dist/assets/{base32-e163NkMc.js → base32-DUQ3cZE8.js} +1 -1
- package/dist/assets/branding-DHKpXd_g.js +37 -0
- package/dist/assets/{bundle-avatar-CfarA09G.js → bundle-avatar-CKD9kBFp.js} +1 -1
- package/dist/assets/{button-DkUXQFkd.js → button-DSdSJo9K.js} +1 -1
- package/dist/assets/{click-to-copy-BQ6-W2tV.js → click-to-copy-D1KutRoB.js} +1 -1
- package/dist/assets/{complete-Dkb4CamN.js → complete-27mf0yTo.js} +3 -3
- package/dist/assets/{component-4U8BC0y9.js → component-CnJIww79.js} +1 -1
- package/dist/assets/{config-BqKiPUza.js → config-C9PWul3j.js} +1 -1
- package/dist/assets/{config-BW9Pp8cu.js → config-DZRAPN8T.js} +2 -2
- package/dist/assets/{config-navigation-SRfx8eFT.js → config-navigation-DH3P7ruJ.js} +5 -5
- package/dist/assets/{confirm-Bj44433A.js → confirm-mU2XAWpU.js} +1 -1
- package/dist/assets/{connect-D6RSbfne.js → connect-MZcaFOBa.js} +1 -1
- package/dist/assets/{connect-DQIzXv2j.js → connect-jQHKzr5H.js} +1 -1
- package/dist/assets/{connect-to-NtgT2est.js → connect-to-Y02CZZdD.js} +1 -1
- package/dist/assets/{content-layout-Cm5xO87D.js → content-layout-Tg4aLOhb.js} +1 -1
- package/dist/assets/{dashboard-iCAQ-xSg.js → dashboard-DoRd9UiU.js} +3 -3
- package/dist/assets/{deprecate-6FbZIe1b.js → deprecate-Cgglj9ZQ.js} +1 -1
- package/dist/assets/{did-address-2wXzwKqQ.js → did-address-BsU-n4pW.js} +1 -1
- package/dist/assets/domain-Bq4K9D6v.js +9 -0
- package/dist/assets/domain-list-Lv7EI03D.js +15 -0
- package/dist/assets/{email-C97T6-na.js → email-xfatBnjM.js} +3 -3
- package/dist/assets/emotion-cache.browser.esm-gefWLr3C.js +1 -0
- package/dist/assets/{exchange-passport-UpHKVi0x.js → exchange-passport-CO1jvKm4.js} +1 -1
- package/dist/assets/{fallback-Cy0VS__a.js → fallback-CXclKVjQ.js} +1 -1
- package/dist/assets/{form-text-input-DXwOfyUa.js → form-text-input-BsdUC9Df.js} +2 -2
- package/dist/assets/format-error-w94y5K97.js +2 -0
- package/dist/assets/{fuel-l61bf6lr.js → fuel-BxaJYD5y.js} +1 -1
- package/dist/assets/{fullpage-3Em5ua3-.js → fullpage-CU5nzdh1.js} +1 -1
- package/dist/assets/{home-BULxG73x.js → home-BNWIh8sX.js} +1 -1
- package/dist/assets/{iframe-J8hWQoQE.js → iframe-Dof-7CTL.js} +1 -1
- package/dist/assets/{index-D-JgU0vv.js → index-AHJS-pEb.js} +1 -1
- package/dist/assets/{index-CxDdR_4c.js → index-ApL3GvC5.js} +1 -1
- package/dist/assets/{index-DEkyID3O.js → index-BERtaTie.js} +1 -1
- package/dist/assets/{index-CkwdNb4P.js → index-BEnVwImy.js} +1 -1
- package/dist/assets/{index-ChfVfT98.js → index-BIhzb3Td.js} +1 -1
- package/dist/assets/{index-BnExyzXn.js → index-BM-DggtM.js} +42 -42
- package/dist/assets/{index-D5tzqp0t.js → index-BTabQKF2.js} +1 -1
- package/dist/assets/{index-oXC6I0XL.js → index-BVekWfOr.js} +10 -10
- package/dist/assets/{index-koUUzwN0.js → index-BjKbegSH.js} +1 -1
- package/dist/assets/{index-hVdmtTGH.js → index-Bzrg-0nr.js} +2 -2
- package/dist/assets/{index-B9oud-xA.js → index-C5vjMsZy.js} +5 -5
- package/dist/assets/{index-BdB83jqq.js → index-C6E8zlEZ.js} +1 -1
- package/dist/assets/{index-BI7ulVyE.js → index-CCoIR1Y8.js} +1 -1
- package/dist/assets/{index-B3o75RqE.js → index-CGLfdW1r.js} +1 -1
- package/dist/assets/{index-ehQxu-R2.js → index-CJDdHyzC.js} +13 -13
- package/dist/assets/{index-B4NN-ljh.js → index-CLs9hwzO.js} +1 -1
- package/dist/assets/{index-BHPuXpNt.js → index-CX5XyTLv.js} +1 -1
- package/dist/assets/{index-BIM1QwaY.js → index-Cak4Ow2M.js} +1 -1
- package/dist/assets/{index-CnGK7WUY.js → index-CcK8Dad4.js} +1 -1
- package/dist/assets/{index-DWVd8w83.js → index-CwUTvEH2.js} +1 -1
- package/dist/assets/index-Cz4s7XTP.js +1 -0
- package/dist/assets/{index-DE2W-BW-.js → index-D3O3p-OT.js} +1 -1
- package/dist/assets/{index-C_CQlCa-.js → index-DJFwMRI_.js} +194 -220
- package/dist/assets/{index-DeqxO-5S.js → index-DYLHWOJP.js} +5 -5
- package/dist/assets/{index-DLGp76se.js → index-DdN5Gz-u.js} +1 -1
- package/dist/assets/{index-Chkylq7r.js → index-DoFFHzG_.js} +1 -1
- package/dist/assets/{index-oBzophq1.js → index-DuwjjPMM.js} +1 -1
- package/dist/assets/{index-eYk8EHY6.js → index-EwB98VlP.js} +1 -1
- package/dist/assets/{index-B92ztTjs.js → index-Gp6yqhPr.js} +3 -3
- package/dist/assets/{index-2UUbbUJ8.js → index-R_t5Wd6C.js} +1 -1
- package/dist/assets/index-Wu0L_EBo.js +4 -0
- package/dist/assets/{index-DsWpf3_a.js → index-Z5L8aZy0.js} +1 -1
- package/dist/assets/{index-CR3-uy3A.js → index-cknpIisJ.js} +3 -3
- package/dist/assets/index-x-DvDzf-.js +192 -0
- package/dist/assets/{index-DRtAqdrV.js → index-zY4NGjp1.js} +18 -18
- package/dist/assets/{invitation-hncnOokv.js → invitation-6uqENcHT.js} +1 -1
- package/dist/assets/{invite-CKFbWmou.js → invite-Bjxb62pa.js} +1 -1
- package/dist/assets/{isEmail-DxV-j-Id.js → isEmail-DUBiI8sd.js} +1 -1
- package/dist/assets/{issue-passport-CGl0wDiI.js → issue-passport-DmbXLVQf.js} +1 -1
- package/dist/assets/{item-OJ3hnlo0.js → item-CFeixDDn.js} +1 -1
- package/dist/assets/{jss-plugin-props-sort.esm-COgSgYwL.js → jss-plugin-props-sort.esm-BkCakvUL.js} +6 -6
- package/dist/assets/{launch-result-message-MXP30DhV.js → launch-result-message-B_HogaQD.js} +1 -1
- package/dist/assets/{layout-l6IsVWPQ.js → layout-DhK2V31d.js} +1 -1
- package/dist/assets/{list-header-BBaNSpsp.js → list-header-BYGhikWN.js} +1 -1
- package/dist/assets/localization-BIdgFoTP.js +1 -0
- package/dist/assets/lodash-Dn8_ZeAF.js +27 -0
- package/dist/assets/{log-DrwXmRxJ.js → log-BBoGUrfj.js} +1 -1
- package/dist/assets/{login-CaGFS8nW.js → login-A7PX2tFz.js} +1 -1
- package/dist/assets/{login-oauth-callback-D2-IWdVo.js → login-oauth-callback-tSgR97Kc.js} +1 -1
- package/dist/assets/logo-uploader-Chwfv_Zv.js +133 -0
- package/dist/assets/{lost-passport-CWRg5ZXa.js → lost-passport-BXRSnuel.js} +3 -3
- package/dist/assets/lottie-react.esm-qfLXwmv9.js +269 -0
- package/dist/assets/{notifications-DT5bM8-Z.js → notifications-xGViZTGr.js} +1 -1
- package/dist/assets/{open-window-Dbj6y-Wd.js → open-window-DC9u9zAW.js} +1 -1
- package/dist/assets/overview-mM-QPqFa.js +12 -0
- package/dist/assets/{page-header-BJwXbb6p.js → page-header-BXSuoXyd.js} +1 -1
- package/dist/assets/{permission-DJ4hvMdC.js → permission-DUjKon-o.js} +1 -1
- package/dist/assets/{preferences-BiBLVKyo.js → preferences-BDOT10Le.js} +1 -1
- package/dist/assets/publish-resource-mkxzOwvG.js +1 -0
- package/dist/assets/{raf-schd.esm-B1kdhV0g.js → raf-schd.esm-Bpjsnce3.js} +1 -1
- package/dist/assets/{react-beautiful-dnd.esm-BEwbgI-x.js → react-beautiful-dnd.esm-5Mm-Hqoa.js} +1 -1
- package/dist/assets/refType-CRh0h8D9.js +1 -0
- package/dist/assets/{resource-dialog-GEBYj7yn.js → resource-dialog-BqU4WMct.js} +1 -1
- package/dist/assets/sdk-B9KxIRfu.js +1 -0
- package/dist/assets/{selector-14AWGRUp.js → selector-BQfkr_CY.js} +1 -1
- package/dist/assets/session-DmKeILdZ.js +1 -0
- package/dist/assets/setup-RGwVXIHk.js +19 -0
- package/dist/assets/{shorten-label-Dbs8vIsp.js → shorten-label-BhcDm1Xa.js} +1 -1
- package/dist/assets/{simple-select-DLQt7Cfs.js → simple-select-CPpSgug4.js} +1 -1
- package/dist/assets/{slicedToArray-BKoR2wYJ.js → slicedToArray-92iHpNxT.js} +2 -2
- package/dist/assets/spaces-WTnQE9HX.js +1 -0
- package/dist/assets/{start-DSWYoahH.js → start-DjIHXcxs.js} +1 -1
- package/dist/assets/{step-actions-If6iVs-K.js → step-actions-CEVnyzA4.js} +1 -1
- package/dist/assets/{studio-D6IxfNlE.js → studio-BxsvSt8u.js} +1 -1
- package/dist/assets/{switch-control-BxeBzprT.js → switch-control-BrojiBVz.js} +1 -1
- package/dist/assets/{toUpper-CBkOZw1F.js → toUpper-Cb-GeE69.js} +1 -1
- package/dist/assets/{transfer-CKJqtAQ_.js → transfer-CTWNv1F7.js} +1 -1
- package/dist/assets/trim-FV_vvgIq.js +1 -0
- package/dist/assets/{uniqBy-Bx9vh0v2.js → uniqBy-jaKlPiVv.js} +1 -1
- package/dist/assets/{unsubscribe-CLEzRDDh.js → unsubscribe-Bubftfpy.js} +1 -1
- package/dist/assets/{url-join-B7VUk1Nt.js → url-join-CoUJvgw9.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-CGl-SVl3.js → use-blocklet-info-for-connect-did-spaces-CG7o9oE6.js} +1 -1
- package/dist/assets/{use-mobile-4_hTnRVi.js → use-mobile-DfAAA5Qw.js} +1 -1
- package/dist/assets/{useAsync-CtQ8AEdA.js → useAsync-R9bGzscW.js} +1 -1
- package/dist/assets/{useFormControl-BhdUd6k-.js → useFormControl-wVGGoaRj.js} +1 -1
- package/dist/assets/{useLocalStorage-7JXelBjb.js → useLocalStorage-DmCQRskn.js} +1 -1
- package/dist/assets/{useSetState-Dc35Ve6D.js → useSetState-DMM9-qIL.js} +1 -1
- package/dist/assets/{useSlot-CNpijWIm.js → useSlot-BIPyjNii.js} +1 -1
- package/dist/assets/{useSlotProps-BfNnka02.js → useSlotProps-DJTrybpd.js} +1 -1
- package/dist/assets/useThemeProps-DD6E2MMK.js +1 -0
- package/dist/assets/{user-center-ZL5G-GHd.js → user-center-BA9gCxef.js} +1 -1
- package/dist/assets/{user-sessions-6KBbvmel.js → user-sessions-DLAJ9aMH.js} +1 -1
- package/dist/assets/{util-CsETj3tT.js → util-D3p9_aCc.js} +1 -1
- package/dist/assets/{wrap-locale-Dun6mFZ0.js → wrap-locale-D638dqwh.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +26 -26
- package/dist/assets/Pagination-BZ_0_22E.js +0 -2
- package/dist/assets/add-component-core-BwkMf_I-.js +0 -796
- package/dist/assets/add-resource-Ce35wyOm.js +0 -1
- package/dist/assets/api-DW3GuRPe.js +0 -1
- package/dist/assets/branding-BVp13tWo.js +0 -37
- package/dist/assets/domain-BftMAChL.js +0 -9
- package/dist/assets/domain-list-LMmGssej.js +0 -15
- package/dist/assets/emotion-cache.browser.esm-Cb9YgVt4.js +0 -1
- package/dist/assets/format-error-BBbxuciS.js +0 -2
- package/dist/assets/index-BUog8A--.js +0 -1
- package/dist/assets/index-C_TKdpLp.js +0 -192
- package/dist/assets/index-sW3pXORW.js +0 -4
- package/dist/assets/index.es-mBp-Wl3D.js +0 -3
- package/dist/assets/localization-DY392ZUJ.js +0 -1
- package/dist/assets/logo-uploader-bNnGsMWx.js +0 -133
- package/dist/assets/lottie-78xwHgZN.js +0 -9
- package/dist/assets/overview-BPLARBLd.js +0 -12
- package/dist/assets/publish-resource-CGz9xdOC.js +0 -1
- package/dist/assets/refType-BbAp0aUR.js +0 -1
- package/dist/assets/sdk-BrMczAlL.js +0 -1
- package/dist/assets/session-CR_tYSIR.js +0 -1
- package/dist/assets/setup-BKQUe4wU.js +0 -19
- package/dist/assets/spaces-CAq6QeyI.js +0 -1
- package/dist/assets/trim-C9rddK5k.js +0 -1
- package/dist/assets/useThemeProps-DEARzcBK.js +0 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{j as i,r,a0 as P,ak as C,a8 as T,fU as B,a5 as h,B as a,P as f,Z as w}from"./index-DJFwMRI_.js";import{D as E,a as b,A as I}from"./domain-list-Lv7EI03D.js";import{P as A}from"./page-header-BXSuoXyd.js";import{_ as L}from"./useSetState-DMM9-qIL.js";import{S as d}from"./button-DSdSJo9K.js";import{S as W}from"./layout-DhK2V31d.js";import{S as _}from"./step-actions-CEVnyzA4.js";import"./trim-FV_vvgIq.js";import"./Add-C5-W3UKp.js";import"./ExpandMore-DzHAg89w.js";import"./base32-DUQ3cZE8.js";import"./LockIcon-DIkwsUpQ.js";import"./index-DuwjjPMM.js";import"./did-address-BsU-n4pW.js";import"./Link-COz46AhA.js";import"./permission-DUjKon-o.js";import"./useAsync-R9bGzscW.js";import"./session-DmKeILdZ.js";import"./lodash-Dn8_ZeAF.js";import"./confirm-mU2XAWpU.js";import"./DialogContentText-CS5MSQtu.js";import"./Alert-MPiiZl43.js";import"./useSlot-BIPyjNii.js";import"./format-error-w94y5K97.js";import"./use-mobile-DfAAA5Qw.js";import"./InfoOutlined-BPE4vAMd.js";import"./OpenInNew-DUexeISZ.js";import"./index-DdN5Gz-u.js";import"./api-B-FzaAOJ.js";import"./index-CLs9hwzO.js";import"./util-D3p9_aCc.js";import"./TextField-QsTZLSPK.js";import"./FormControl-DFgqjaDx.js";import"./useFormControl-wVGGoaRj.js";import"./Select-BfCw7EsS.js";import"./LoadingButton-Ct_JtrmU.js";import"./useThemeProps-DD6E2MMK.js";import"./Delete-xmuDalv8.js";import"./actions-BnONH73_.js";import"./MoreHoriz-0nWF2mqR.js";import"./content-layout-Tg4aLOhb.js";function p({onNext:s,onPrevious:D}){var u,x;const{t:o}=r.useContext(P),[S,l]=r.useState(!1),{blocklet:e}=C(),[c,j]=r.useState(""),y=(((e==null?void 0:e.site)||{}).domainAliases||[]).map(t=>T.replaceSlotToIp(t.value,c)),[n,m]=L({domain:"",invalidDNSDomain:null,type:"",addDomainState:{text:""}}),v=(x=(u=e.environments)==null?void 0:u.find(t=>t.key==="BLOCKLET_APP_PK"))==null?void 0:x.value,g=y.find(t=>B.isDidDomain(t));return r.useEffect(()=>{h.get(`/dns-resolve?hostname=${window.location.hostname}`).then(({data:t})=>{j(t.address||"")}).catch(t=>{console.error(t.message)})},[]),i.jsxs(z,{children:[i.jsx("div",{className:"header",children:i.jsx(A,{title:o("setup.domain.title"),subTitle:o("setup.domain.subTitle"),onClickBack:D})}),i.jsxs(a,{className:"form",sx:{display:"flex",flexDirection:"column",gap:3,overflowY:"auto"},children:[i.jsxs(a,{children:[i.jsxs(a,{color:"text.primary",fontWeight:"fontWeightBold",fontSize:"1.125rem",children:[i.jsx(a,{display:"inline",children:o("setup.domain.skipStart")}),i.jsx(d,{variant:"text",size:"small",disabled:!!n.addDomainState.text,onClick:()=>s(),style:{paddingTop:0},children:i.jsx("span",{style:{textDecoration:"underline"},children:o("setup.domain.skip")})}),i.jsx(a,{display:"inline",children:o("setup.domain.skipEnd")})]}),i.jsx(a,{sx:{marginTop:"12px"},children:i.jsx(b,{listOnly:!0,inSetup:!0})})]}),i.jsxs(a,{children:[i.jsx(a,{fontWeight:"fontWeightBold",fontSize:"1.125rem",children:o("setup.domain.addTitle")}),i.jsx(I,{autoFocus:!1,appPk:v,appId:e.appPid,siteId:e.site.id,teamDid:e.meta.did,sx:{marginTop:"12px"},cnameDomain:g,currentIp:c,inBlockletSetup:!0,shouldCheckDomain:!0,resolveDomain:t=>h.get(`/dns-resolve?hostname=${t}`),onInputDomain:t=>{m({domain:t.domain,type:t.type}),l(t.error)},onStateChange:t=>m({addDomainState:t}),onSuccess:t=>{const k={domain:t.domain,type:t.type,nftDid:t.nftDid,chainHost:t.chainHost};m(k),s()},onError:l})]})]}),i.jsx(_,{mt:8,disabled:!!n.addDomainState.text,blocklet:e,onStartNow:()=>s("complete"),children:n.domain?i.jsx(d,{variant:"contained",loading:!!n.addDomainState.text,disabled:S||!!n.addDomainState.text||!n.domain,onClick:()=>s(),children:n.addDomainState.text||o("setup.next")}):i.jsx(d,{variant:"contained",disabled:!!n.addDomainState.text,onClick:()=>s(),children:o("setup.skip")})})]})}function Tt(s){return i.jsx(E,{children:i.jsx(p,{...s})})}p.propTypes={onNext:f.func,onPrevious:f.func};p.defaultProps={onNext:()=>{},onPrevious:()=>{}};const z=w(W)`
|
|
2
|
+
height: 100%;
|
|
3
|
+
overflow-y: hidden;
|
|
4
|
+
.form {
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
word-break: break-all;
|
|
8
|
+
}
|
|
9
|
+
`;export{Tt as default};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{X as V,Y,j as e,P as n,fV as ot,fW as Le,u as T,r as C,aP as O,aY as qe,aa as we,a as z,n as W,t as N,fX as $e,eX as st,fY as rt,b7 as at,B as u,$ as Me,aj as K,T as S,fZ as ze,C as Ae,K as lt,c4 as ct,bD as Te,fU as Fe,aT as Ne,a1 as H,aV as dt,bi as Be,c9 as Oe,cb as We,cs as mt,bj as Ie,f_ as ut,Z as pt,bl as ft,br as xt,f$ as ht,g0 as gt,a8 as Ee,aC as yt}from"./index-DJFwMRI_.js";import{t as ae}from"./trim-FV_vvgIq.js";import{d as jt}from"./Add-C5-W3UKp.js";import{d as Dt}from"./ExpandMore-DzHAg89w.js";import{b as vt}from"./base32-DUQ3cZE8.js";import{d as bt}from"./LockIcon-DIkwsUpQ.js";import{E as Ct}from"./index-DuwjjPMM.js";import{W as Rt}from"./did-address-BsU-n4pW.js";import{_ as St,D as ke,w as Ue}from"./permission-DUjKon-o.js";import{l as wt}from"./lodash-Dn8_ZeAF.js";import{C as X}from"./confirm-mU2XAWpU.js";import{A as He}from"./Alert-MPiiZl43.js";import{_ as le}from"./useSetState-DMM9-qIL.js";import{u as At}from"./use-mobile-DfAAA5Qw.js";import{d as Tt}from"./InfoOutlined-BPE4vAMd.js";import{d as It}from"./OpenInNew-DUexeISZ.js";import{r as Et}from"./index-DdN5Gz-u.js";import{_ as kt}from"./useAsync-R9bGzscW.js";import"./api-B-FzaAOJ.js";import{I as Pt}from"./index-CLs9hwzO.js";import{p as Pe}from"./util-D3p9_aCc.js";import{L as _t}from"./Link-COz46AhA.js";import{T as Lt}from"./TextField-QsTZLSPK.js";import{L as qt}from"./LoadingButton-Ct_JtrmU.js";import{d as Ve,L as $t,a as Mt}from"./Delete-xmuDalv8.js";import{A as zt}from"./actions-BnONH73_.js";var ce={},Ft=Y;Object.defineProperty(ce,"__esModule",{value:!0});var ne=ce.default=void 0,Nt=Ft(V()),Bt=e;ne=ce.default=(0,Nt.default)((0,Bt.jsx)("path",{d:"M12.16 3h-.32L9.21 8.25h5.58zm4.3 5.25h5.16L19 3h-5.16zm4.92 1.5h-8.63V20.1zM11.25 20.1V9.75H2.62zM7.54 8.25 10.16 3H5L2.38 8.25z"}),"Diamond");var de={},Ot=Y;Object.defineProperty(de,"__esModule",{value:!0});var Ye=de.default=void 0,Wt=Ot(V()),Ut=e;Ye=de.default=(0,Wt.default)((0,Ut.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess");const Ht=i=>["waiting","creating","renewaling"].includes(i);function me(i){var g,v;const{t}=T(),[s,o]=C.useState(!1),{inService:r}=O(),[a,l]=C.useState(null),{siteId:d,domain:m,onAdd:h,children:y,did:b}=i,[_,j]=C.useState(!1),{api:w,ws:{useSubscription:I}}=O(),{mode:E,actions:{refreshDomainStatus:p}}=qe(),A=St(async()=>{const{cert:x}=await w.findCertificateByDomain({input:{domain:m,did:b}});return x}),k=(x,L)=>{x.domain===m&&(j(!1),o(!1),r&&E!=="setup"&&(L==="success"?N.success(t("setup.domain.genCertSuccess",{domain:x.domain})):L==="error"&&N.error(t("setup.domain.genCertFailed",{domain:x.domain,message:x.message}))))};if(C.useEffect(()=>{var x;A.loading||j(Ht((x=A.value)==null?void 0:x.status))},[A.loading,(g=A.value)==null?void 0:g.status]),I(we.BlockletEvents.certError,x=>k(x,"error")),I(we.BlockletEvents.certIssued,x=>{A.retry(),p(x.domain),k(x,"success")}),A.loading||((v=A.value)==null?void 0:v.status)==="normal")return"";const D=()=>{o(!1),l(null)},c=async()=>{o(!0);try{await w.issueLetsEncryptCert({input:{siteId:d,domain:m,did:b,inBlockletSetup:E==="setup"}}),h(),j(!0)}catch(x){console.error(x),j(!1)}finally{o(!1),l(null)}},P={title:t("router.cert.genLetsEncryptCert.title"),description:e.jsxs("div",{children:[e.jsx(He,{severity:"success",children:t("router.cert.genLetsEncryptCert.dnsTip")}),t("router.cert.genLetsEncryptCert.description")]}),confirm:t("common.confirm"),onConfirm:c,onCancel:D},B=x=>{x.stopPropagation(),l(P)};return e.jsxs(e.Fragment,{children:[_?e.jsx(z,{title:t("router.cert.issuing"),children:e.jsx(W,{size:12})}):y({loading:s,open:B}),a&&e.jsx(X,{color:"primary",title:a.title,description:a.description,confirm:a.confirm,params:a.params,onConfirm:a.onConfirm,onCancel:a.onCancel})]})}me.propTypes={domain:n.string.isRequired,did:n.string.isRequired,siteId:n.string.isRequired,onAdd:n.func,children:n.any};me.defaultProps={onAdd:()=>{},children:null};function ue(i){const{domain:t,domainStatus:s,...o}=i;return ot(t)||!Le(t)||wt.isEmpty(s)||s!=null&&s.isHttps?"":e.jsx(me,{domain:t,...o})}ue.propTypes={domain:n.string.isRequired,domainStatus:n.shape({isHttps:n.bool}).isRequired,did:n.string.isRequired,onAdd:n.func,children:n.any};ue.defaultProps={onAdd:()=>{},children:null};var pe={},Vt=Y;Object.defineProperty(pe,"__esModule",{value:!0});var Ke=pe.default=void 0,Yt=Vt(V()),Kt=e;Ke=pe.default=(0,Yt.default)((0,Kt.jsx)("path",{d:"M17 20.41 18.41 19 15 15.59 13.59 17zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5z"}),"CallMerge");const Xe=C.createContext({}),{Provider:Xt,Consumer:Nn}=Xe;function Zt({children:i}){const[t,s]=le({domain:"",error:null}),{locale:o}=T(),r={error:t.error,domain:t.domain,setError:a=>{s({error:a})},setDomain:a=>{const l=ae(a),d=$e(l,o);s({domain:l,error:d})}};return e.jsx(Xt,{value:{value:r},children:i})}function Gt(){const{value:i}=C.useContext(Xe);return i}const{joinURL:_e}=st,Qt=rt,Ze="z2qaGosS3rZ7m5ttP3Nd4V4qczR9TryTcRV4p",Jt=async i=>{var d;if(!i||!(i!=null&&i.trim()))return null;const t=new URL(i);t.pathname="__blocklet__.js",t.searchParams.set("type","json");const{data:s}=await Qt.get(t.toString()),o=(d=s==null?void 0:s.componentMountPoints)==null?void 0:d.find(m=>m.did===Ze),r=new URL(i);r.pathname=o==null?void 0:o.mountPoint;const a=r.toString(),l=_e(a,"/api");return{base:a,api:l,domain:_e(l,"/domains")}};var en={DID_DOMAIN_SERVICE_DID:Ze,getDidDomainServiceURL:Jt},Z={exports:{}};const tn=Et,nn=["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"];class Ge extends Error{constructor(t){super(),t instanceof Error?(this.originalError=t,{message:t}=t):(this.originalError=new Error(t),this.originalError.stack=this.stack),this.name="AbortError",this.message=t}}const on=(i,t,s)=>{const o=s.retries-(t-1);return i.attemptNumber=t,i.retriesLeft=o,i},sn=i=>nn.includes(i),Qe=(i,t)=>new Promise((s,o)=>{t={onFailedAttempt:()=>{},retries:10,...t};const r=tn.operation(t);r.attempt(async a=>{try{s(await i(a))}catch(l){if(!(l instanceof Error)){o(new TypeError(`Non-error was thrown: "${l}". You should only throw errors.`));return}if(l instanceof Ge)r.stop(),o(l.originalError);else if(l instanceof TypeError&&!sn(l.message))r.stop(),o(l);else{on(l,a,t);try{await t.onFailedAttempt(l)}catch(d){o(d);return}r.retry(l)||o(r.mainError())}}})});Z.exports=Qe;Z.exports.default=Qe;Z.exports.AbortError=Ge;var rn=Z.exports;const an=at(rn);function fe({domain:i,resolvedTarget:t,...s}){const{t:o,locale:r}=T();return e.jsxs(u,{sx:{backgroundColor:"rgb(236, 251, 253)",borderColor:"rgb(236, 251, 253)",borderRadius:"8px",padding:"12px"},...s,children:[e.jsxs(u,{display:"flex",children:[o("router.domain.setup.tipStart"),i&&e.jsx(u,{mx:.5,color:"primary.main",fontWeight:"fontWeightBold",children:i}),o("router.domain.setup.tipEnd"),":"]}),e.jsxs(u,{sx:{"&>div":{mb:0},marginTop:"8px"},children:[e.jsx(ie,{label:o("router.domain.setup.recordType"),value:"CNAME",locale:r}),e.jsx(ie,{label:o("router.domain.setup.recordValue"),value:t,locale:r})]})]})}fe.propTypes={domain:n.string,resolvedTarget:n.string.isRequired};fe.defaultProps={domain:""};function ie({locale:i,label:t,value:s}){const o=Me(a=>a.breakpoints.down("md")),r=K();return e.jsx(Pt,{name:t,nameWidth:120,children:e.jsxs(u,{sx:{display:"flex",alignItems:"center",lineHeight:1},children:[e.jsx(S,{component:"span",color:"primary.main",overflow:"auto",sx:o?{maxWidth:"95%",wordWrap:"break-word"}:{wordWrap:"break-word"},children:s}),e.jsx(ze,{content:s,locale:i,style:{marginLeft:"4px",color:r.palette.text.secondary}})]})})}ie.propTypes={locale:n.string.isRequired,label:n.string.isRequired,value:n.string.isRequired};function xe({siteId:i,teamDid:t,cnameDomain:s,defaultCustomDomain:o,onInputDomain:r,appId:a,appPk:l,onSuccess:d,onError:m,disabled:h,autoFocus:y,inBlockletSetup:b,shouldCheckDomain:_,onStateChange:j,currentIp:w,resolveDomain:I,...E}){const{t:p,locale:A}=T(),{api:k,info:D}=O(),c=Gt(),P=K(),B=At({key:"sm"}),[g,v]=le({submittingDomain:!1,domain:o,error:null,type:D!=null&&D.nftDomainUrl?"nftDomain":"inputDomain",showNFTDomainAuth:!1,showDnsTip:!1}),x=kt(()=>en.getDidDomainServiceURL(D==null?void 0:D.nftDomainUrl));if(D!=null&&D.nftDomainUrl&&x.loading)return e.jsx(u,{...E,children:e.jsx(Ae,{relative:"parent",children:e.jsx(W,{})})});if(x.error)return e.jsx(u,{...E,children:e.jsx(Ae,{relative:"parent",children:x.error.message})});const L=x.value,et=()=>{v({invalidDNSDomain:null})},J=async f=>{j(p("setup.domain.addingDomain")),await k.addDomainAlias({input:{id:i,domainAlias:f,teamDid:t,inBlockletSetup:!0}}),v({submittingDomain:!1}),d({domain:f,type:"inputDomain"})},be=async({domain:f,type:R,nftDid:F,chainHost:q})=>{try{if(!_){if(R==="inputDomain"){await J(f);return}d({domain:f,type:R,nftDid:F,chainHost:q});return}j({text:p("setup.domain.checkingResolvable")});let $=30;const ee=3e3,it=$*1e3/ee,Re=setInterval(()=>{if($<=0){clearInterval(Re);return}j({text:`${p("setup.domain.checkingResolvable")} (${$--}s)`})},1e3),Se=await an(async()=>{const{data:M}=await I(f);if(!M.address)throw new Error("Cannot resolve domain");return M.address},{retries:it,minTimeout:ee,maxTimeout:ee,onFailedAttempt:console.error}).catch(console.error);if(clearInterval(Re),!Se){const M=p("setup.domain.cannotResolve",{domain:f});if(R==="nftDomain"){N.error(M),d({domain:f,type:"nftDomain"});return}j({text:""}),v({invalidDNSDomain:{domain:f,error:M},domain:f,type:R,submittingDomain:!1});return}if(Se!==w){const M=p("setup.domain.resolvedAddressError",{domain:f,curDomain:window.location.hostname});if(R==="nftDomain"){N.error(M),d({domain:f,type:"nftDomain"});return}j({text:""}),v({invalidDNSDomain:{domain:f,error:M},domain:f,type:R,submittingDomain:!1});return}if(R==="nftDomain"){d({domain:f,type:"nftDomain"});return}await J(f)}catch($){N.error($.message),j({text:""}),v({submittingDomain:!1})}},tt=async({domain:f,nftDid:R,chainHost:F})=>{try{const q=Pe(f);v({submittingDomain:!0}),await k.addDomainAlias({input:{id:i,type:"nft-domain",domainAlias:q,nftDid:R,chainHost:F,teamDid:t,inBlockletSetup:b}});const $="nftDomain";v({showNFTDomainAuth:!1,type:$}),await be({domain:q,type:$,nftDid:R,chainHost:F})}catch(q){N.error(q.message)}finally{v({showNFTDomainAuth:!1,submittingDomain:!1})}},nt=async()=>{try{v({submittingDomain:!0});const f=Pe(g.domain);if(D.nftDomainUrl&&L&&(await k.isDidDomain({input:{domain:f}})).value===!0){v({showNFTDomainAuth:!0});return}await be({domain:f,type:g.type})}catch(f){v({submittingDomain:!1}),c.setError(f.message)}},Ce=c.error||g.error;return e.jsx(u,{...E,children:e.jsxs(u,{sx:{display:"flex",flexDirection:"column",justifyContent:"flex-start",gap:"1em"},children:[e.jsxs(u,{sx:{display:"flex",flexDirection:"column",gap:"8px"},children:[D.nftDomainUrl&&L&&e.jsxs(u,{sx:{color:P.palette.text.primary},children:[e.jsx(S,{children:p("router.domainAlias.addDomainNFT.tips")}),e.jsxs(S,{component:"div",children:[p("router.domainAlias.addDomainNFT.buyTip"),e.jsxs(_t,{href:L.base,sx:{display:"inline-flex",alignItems:"center"},target:"_blank",children:[e.jsx("i",{children:p("router.domainAlias.addDomainNFT.buy")}),e.jsx(It,{fontSize:"small"})]})]})]}),e.jsx(Lt,{sx:{display:"block",marginTop:"8px"},label:p("router.domainAlias.add.domainDescription"),helperText:g.type==="inputDomain"&&Ce||p("router.domainAlias.add.helperText"),inputProps:{"data-cy":"domain-name-input"},fullWidth:!0,disabled:h,value:g.domain,size:"small",variant:"outlined",error:!!Ce&&g.type==="inputDomain",onChange:f=>{var q;const R=ae((q=f.target)==null?void 0:q.value);c.setDomain(R);const F=$e(R,A);v({domain:R,error:F,type:"inputDomain"}),r({domain:R,error:F,type:"inputDomain"})},autoFocus:y,onBlur:()=>{c.domain||(v({error:null}),c.setError(null))}}),e.jsx(u,{sx:{width:"100%",display:"flex",justifyContent:"flex-end"},children:e.jsx(qt,{"data-cy":"confirm-add-domain",fullWidth:B,variant:"contained",loading:g.submittingDomain,onClick:nt,children:p("common.add")})}),e.jsxs(u,{sx:{cursor:"pointer",fontSize:"14px",display:"flex",alignItems:"center",gap:"4px",lineHeight:1,color:P.palette.primary.main},onClick:()=>v({showDnsTip:!g.showDnsTip}),children:[e.jsx(Tt,{fontSize:"1em"}),p("router.domainAlias.showTipHint")]}),g.showDnsTip&&e.jsx(fe,{domain:g.domain,resolvedTarget:s,style:{marginTop:"4px"}})]}),g.invalidDNSDomain&&e.jsx(X,{title:p("common.reminder"),description:p("setup.domain.invalidDNSReminder",{error:g.invalidDNSDomain.error}),color:"primary",confirm:p("setup.domain.continueAdd"),onConfirm:()=>J(g.invalidDNSDomain.domain,g.type),onCancel:et}),L&&e.jsx(lt,{open:g.showNFTDomainAuth,popup:!0,useSocket:!1,forceConnected:!1,action:"authorize",baseUrl:L.api,checkFn:ct.create({baseURL:L.api}).get,extraParams:{delegatee:a,delegateePk:l,domain:g.domain},onSuccess:tt,onClose:()=>v({showNFTDomainAuth:!1,submittingDomain:!1}),checkTimeout:60*5e3,showDownload:!1,messages:{title:p("router.domainAlias.addDomainNFT.connect.title"),scan:p("router.domainAlias.addDomainNFT.connect.scan"),confirm:p("router.domainAlias.addDomainNFT.connect.confirm"),success:p("router.domainAlias.addDomainNFT.connect.success")}})]})})}xe.propTypes={siteId:n.string.isRequired,currentIp:n.string,teamDid:n.string.isRequired,cnameDomain:n.string.isRequired,defaultCustomDomain:n.string,onInputDomain:n.func,onSuccess:n.func,appId:n.string,appPk:n.string,disabled:n.bool,autoFocus:n.bool,inBlockletSetup:n.bool,shouldCheckDomain:n.bool,onStateChange:n.func,resolveDomain:n.func,onError:n.func};xe.defaultProps={defaultCustomDomain:"",currentIp:"",onInputDomain:Te,onSuccess:Te,appId:"",appPk:"",disabled:!1,autoFocus:!0,inBlockletSetup:!1,shouldCheckDomain:!1,onStateChange:()=>{},resolveDomain:()=>{},onError:()=>{}};function he({id:i,children:t,title:s,teamDid:o,systemDomains:r,appId:a,appPk:l}){const{t:d}=T(),[m,h]=le({loading:!1,confirmSetting:null}),y=r.find(w=>Fe.isDidDomain(w)),b=()=>{h({loading:!1,confirmSetting:null})},_={title:s||d("router.domainAlias.add.title"),description:function(I,E,p){return e.jsx(xe,{siteId:i,teamDid:o,cnameDomain:y,onSuccess:()=>h({confirmSetting:null}),onInputDomain:({domain:A,type:k,error:D})=>{E({...I,domain:A,type:k,__disableConfirm:!!D}),p(D)},appId:a,appPk:l})},confirm:d("common.confirm"),cancel:d("common.cancel"),params:{domain:"",__disableConfirm:!0},onCancel:b},j=w=>{w.stopPropagation(),h({confirmSetting:_})};return e.jsxs(e.Fragment,{children:[typeof t=="function"?t({loading:m.loading,open:j}):e.jsxs(Ne,{onClick:j,className:"rule-action","data-cy":"action-add-domain-alias",children:[m.loading?e.jsx(W,{size:16}):e.jsx(Ke,{style:{fontSize:18,marginRight:5}}),d("router.domainAlias.add.title")]}),m.confirmSetting&&e.jsx(X,{title:m.confirmSetting.title,description:m.confirmSetting.description,confirm:m.confirmSetting.confirm,cancel:m.confirmSetting.cancel,params:m.confirmSetting.params,onCancel:m.confirmSetting.onCancel,showConfirm:!1,showCancel:!0,displayError:!1,color:"primary",loading:m.loading,maxWidth:"sm"})]})}he.propTypes={id:n.string.isRequired,children:n.any,title:n.string,teamDid:n.string,systemDomains:n.arrayOf(n.string).isRequired,appId:n.string,appPk:n.string.isRequired};he.defaultProps={children:null,title:"",teamDid:"",appId:null};function ln(i){return e.jsx(Zt,{children:e.jsx(he,{...i})})}function ge(i){const{t}=T(),[s,o]=C.useState(!1),[r,a]=C.useState(null),{id:l,domain:d,children:m,teamDid:h}=i,{api:y}=O(),b=()=>{o(!1),a(null)},_=async()=>{o(!0);try{await y.deleteDomainAlias({input:{id:l,domainAlias:d,teamDid:h}}),await dt(2e3)}catch(I){N.error(I.message)}finally{a(null),o(!1)}},j={title:t("router.domainAlias.delete.title"),description:t("router.domainAlias.delete.description"),confirm:t("common.confirm"),onConfirm:_,onCancel:b},w=I=>{I.stopPropagation(),a(j)};return e.jsxs(e.Fragment,{children:[typeof m=="function"?m({loading:s,open:w}):e.jsxs(H,{edge:"end",onClick:w,size:"small",className:"rule-action",color:"error","data-cy":"action-delete-domain-alias",children:[s?e.jsx(W,{size:16}):e.jsx(Ve,{style:{fontSize:16}}),t("router.domainAlias.delete.title")]}),r&&e.jsx(X,{title:r.title,description:r.description,confirm:r.confirm,params:r.params,onConfirm:r.onConfirm,onCancel:r.onCancel})]})}ge.propTypes={id:n.string.isRequired,domain:n.string.isRequired,children:n.any,teamDid:n.string};ge.defaultProps={children:null,teamDid:""};function ye({site:i,domain:t,blocklet:s}){const{t:o}=T(),r=t.value===window.location.hostname;return e.jsx(zt,{"data-cy":"domain-actions",size:"large",actions:[({close:a})=>{var l;return e.jsx(ge,{id:i.id,domain:t.value,teamDid:(l=s==null?void 0:s.meta)==null?void 0:l.did,children:({open:d})=>e.jsx(z,{title:r?o("blocklet.router.currentDomainTip"):"",children:e.jsx("span",{children:e.jsxs(Ne,{disabled:t.isProtected||r,dense:!0,onClick:m=>{a(),d(m)},"data-cy":"action-toggle-block",children:[e.jsx($t,{style:{minWidth:24,marginRight:8},children:e.jsx(Ve,{})}),e.jsx(Mt,{primary:o("common.delete")})]},"remove")})})})}]})}ye.propTypes={site:n.object.isRequired,domain:n.object.isRequired,blocklet:n.object.isRequired};ye.defaultProps={};var je={},cn=Y;Object.defineProperty(je,"__esModule",{value:!0});var De=je.default=void 0,dn=cn(V()),mn=e;De=je.default=(0,dn.default)((0,mn.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Https");const G=n.shape({href:n.string,accessibility:n.shape({loading:n.bool,accessible:n.bool}),domainStatus:n.shape({isHttps:n.bool,matchedCert:n.object}),dns:n.shape({resolved:n.bool,ip:n.string})});function ve({certificate:i}){const[t,s]=C.useState(null),o=O(),{t:r,locale:a}=T(),l=h=>{s(h.currentTarget)},d=()=>{s(null)},m=!!t;return e.jsxs(e.Fragment,{children:[e.jsx(De,{"aria-owns":m?"mouse-over-popover":void 0,onMouseEnter:l,onMouseLeave:d,style:{color:"#44cdc6",fontSize:20,cursor:"pointer"}}),e.jsx(Be,{id:"mouse-over-popover",style:{pointerEvents:"none"},open:m,anchorEl:t,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:d,disableRestoreFocus:!0,children:e.jsx(Oe,{children:e.jsxs(We,{style:{display:"flex"},children:[e.jsx("div",{children:e.jsx("img",{src:`${o.imgPrefix}/https-certificate-icon.png`,alt:"certificate icon",style:{maxHeight:"100%",maxWidth:"100%"}})}),e.jsxs(S,{component:"div",style:{marginLeft:"16px"},children:[e.jsx(S,{component:"div",style:{fontWeight:"bold"},children:i.domain}),e.jsx(S,{component:"div",children:`${r("common.issuer")}: ${mt(i,"issuer.commonName","")}`}),e.jsx(S,{component:"div",children:`${r("router.cert.issuedOn")}: ${Ie(i.validFrom,a)}`}),e.jsx(S,{component:"div",children:`${r("router.cert.expiryOn")}: ${Ie(i.validTo,a)}`})]})]})})})]})}ve.propTypes={certificate:n.object};ve.defaultProps={certificate:{}};function U({domain:i,filters:t}){const{t:s}=T(),{value:o,domainStatus:r}=i;if(!Le(o))return null;let a=null,l=null;const{isHttps:d,matchedCert:m}=r;if(!ut(o)){const{dns:{resolved:y,ip:b}={}}=r;y||b==="127.0.0.1"?a=e.jsx(z,{title:s("router.domain.verify.ok"),children:e.jsx(ke,{color:"success"})}):a=e.jsx(z,{title:s("router.domain.verify.notResolved"),children:e.jsx(ke,{color:"error"})})}d?l=e.jsx(ve,{certificate:m}):l=e.jsx(z,{title:s("router.domain.https.bad"),children:e.jsx(De,{style:{color:"#D0021B",fontSize:20,cursor:"pointer"}})});const h=t.map(y=>y==="domain"?a:y==="http"?l:null);return C.createElement(C.Fragment,null,...h)}U.propTypes={domain:G.isRequired,filters:n.array};U.defaultProps={filters:["domain","http"]};const un=Ue(Q,"mutate_blocklets"),pn=Ue(Q,"",ft);function Je(i){const{inService:t}=O(),{blocklet:s,loadingRuntimeInfo:o}=qe();let r=un;return t&&(r=pn),e.jsx(r,{...i,blocklet:s,inService:t,loadingRuntimeInfo:o})}Je.propTypes={listOnly:n.bool};Je.defaultProps={listOnly:!1};function Q({hasPermission:i,blocklet:t,loadingRuntimeInfo:s,inService:o,listOnly:r}){var p,A,k,D;const{t:a}=T(),[l,d]=C.useState(!1),m=Me(c=>c.breakpoints.down("md")),h=C.useMemo(()=>{let c=i;return xt(t)&&(c=c&&o),c},[i,o,t]),{site:y}=t,b=C.useMemo(()=>{var c;return ht((c=t.site)==null?void 0:c.domainAliases)},[(p=t.site)==null?void 0:p.domainAliases]),_=[],j=[],w=vt.encode(t.appPid),I=(k=(A=t.environments)==null?void 0:A.find(c=>c.key==="BLOCKLET_APP_PK"))==null?void 0:k.value,E=gt(b);return b.forEach(c=>{const P=c.value||"";Fe.isDidDomain(P)&&!P.startsWith(w)?j.push(c):_.push(c)}),e.jsxs(e.Fragment,{children:[!r&&e.jsxs(e.Fragment,{children:[e.jsxs(u,{className:"title first",display:"flex",justifyContent:"space-between",alignItems:"center",children:[e.jsx(u,{children:a("common.domain")}),h&&e.jsx(ln,{id:y.id,title:a("router.domain.add.title"),teamDid:(D=t.meta)==null?void 0:D.did,appId:t.appPid,appPk:I,systemDomains:E==null?void 0:E.map(c=>c.value),children:({open:c})=>e.jsxs(H,{style:{marginLeft:16},variant:"contained",color:"primary","data-cy":"add-domain-alias",onClick:c,disabled:Ee.isInProgress(t.status),children:[e.jsx(jt,{style:{fontSize:"1.3em",marginRight:4}}),a("common.add")]})})]}),Ee.isAccessible(t.status)===!1&&e.jsx(u,{mt:1.5,mb:1.5,children:e.jsx(He,{severity:"warning",children:a("blocklet.router.noRunning")})})]}),e.jsx(u,{sx:{display:"flex",flexDirection:"column",gap:1},children:(l?b:_).map(c=>{var B,g;const P=c.value;return e.jsxs(C.Fragment,{children:[m&&e.jsxs(u,{display:"flex",flexDirection:"column",children:[e.jsx(u,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:e.jsx(oe,{domain:c,target:"_blank",children:c.value})}),e.jsxs(u,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[e.jsxs(u,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:1},children:[e.jsx(U,{domain:c,filters:["domain"]},`${c.value}-domain`),e.jsx(re,{siteId:(B=t.site)==null?void 0:B.id,domain:c,blocklet:t,hasMutatePermission:h})]}),e.jsx(u,{sx:{button:{padding:0}},children:e.jsx(se,{hasMutatePermission:h,site:y,domain:c,blocklet:t})})]})]},P),!m&&e.jsxs(u,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[e.jsxs(u,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:[e.jsx(U,{domain:c,filters:["domain"]},`${c.value}-domain`),e.jsx(u,{sx:{ml:2,mr:.5},children:e.jsx(oe,{domain:c,target:"_blank",children:c.value})}),e.jsx(re,{siteId:(g=t.site)==null?void 0:g.id,domain:c,blocklet:t,hasMutatePermission:h})]}),e.jsx(u,{sx:{button:{padding:0}},children:e.jsx(se,{hasMutatePermission:h,site:y,domain:c,blocklet:t})})]},P)]},P)})}),j.length>0&&e.jsx("div",{style:{marginLeft:"20px",marginTop:"12px"},children:e.jsx(H,{endIcon:l?e.jsx(Ye,{}):e.jsx(Dt,{}),onClick:()=>d(!l),children:a(l?"common.collapseAll":"blocklet.router.showAllDomains")})}),!b.length&&(s?e.jsx(W,{size:16}):e.jsx(Ct,{children:a("common.empty")}))]})}Q.propTypes={hasPermission:n.bool,blocklet:n.object.isRequired,loadingRuntimeInfo:n.bool,inService:n.bool.isRequired,listOnly:n.bool};Q.defaultProps={hasPermission:!1,loadingRuntimeInfo:!1,listOnly:!1};function oe({domain:i,children:t,...s}){const{t:o,locale:r}=T(),{href:a,accessibility:l,value:d}=i,m=C.useCallback(()=>e.jsx(ze,{content:ae(d),locale:r,style:{marginLeft:"4px",color:"#999",fontSize:"0.8em",verticalAlign:"bottom"}}),[d,r]);return!l||l.loading?e.jsxs(te,{...s,children:[t,m(),e.jsx(z,{title:o("blocklet.router.checkUrlAccessible"),placement:"top-end",children:e.jsx("span",{className:"status",children:e.jsx(W,{size:12})})})]}):l.accessible?e.jsxs(te,{...s,children:[e.jsx(u,{component:"a",href:a,target:"_blank",rel:"noopener noreferrer",children:t}),m()]}):e.jsxs(te,{...s,children:[e.jsx(z,{title:o("blocklet.router.urlInaccessible"),placement:"top-end",children:e.jsx("span",{children:t})}),m()]})}oe.propTypes={domain:G.isRequired,children:n.any.isRequired};const te=pt.span`
|
|
2
|
+
&,
|
|
3
|
+
& > * {
|
|
4
|
+
color: #222;
|
|
5
|
+
font-size: 18px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
& > * {
|
|
9
|
+
word-break: break-all;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.status {
|
|
13
|
+
margin-left: 8px;
|
|
14
|
+
}
|
|
15
|
+
`;function se({hasMutatePermission:i,site:t,domain:s,blocklet:o}){const r=K(),{t:a}=T();return i&&!s.isProtected?e.jsx(ye,{site:t,domain:s,blocklet:o}):e.jsx(z,{title:a("blocklet.router.domainLockTooltip"),placement:"top",children:e.jsx(yt,{disabled:!0,size:"large",style:{pointerEvents:"auto",paddingTop:0,paddingBottom:0},children:e.jsx(bt,{style:{fill:r.palette.text.disabled}})})})}se.propTypes={hasMutatePermission:n.bool.isRequired,site:n.object.isRequired,domain:G.isRequired,blocklet:n.object.isRequired};function re({siteId:i,domain:t,blocklet:s,hasMutatePermission:o}){const r=K(),{t:a}=T(),[l,d]=C.useState(null),m=y=>{d(y.currentTarget)},h=()=>{d(null)};return e.jsxs(u,{sx:{display:"flex",justifyContent:"flex-start",alignItems:"center",gap:1},children:[t.type==="nft-domain"&&e.jsxs(e.Fragment,{children:[e.jsx(ne,{onMouseEnter:m,onMouseLeave:h,style:{marginTop:"0.2em",cursor:"pointer",fill:r.palette.primary.main}}),e.jsx(Be,{id:"mouse-over-popover",style:{pointerEvents:"none"},open:!!l,anchorEl:l,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:h,disableRestoreFocus:!0,children:e.jsx(Oe,{children:e.jsxs(We,{style:{display:"flex",flexDirection:"column"},children:[e.jsxs(S,{component:"div",style:{display:"flex",alignItems:"center"},children:[e.jsx(ne,{style:{fill:r.palette.primary.main}}),e.jsx(S,{component:"span",style:{marginLeft:"8px",fontSize:"18px",fontWeight:"bolder"},children:a("router.domainAlias.nftDomain")})]}),e.jsxs(S,{component:"div",style:{display:"flex",marginTop:"12px"},children:[e.jsx(S,{component:"span",style:{width:"80px",marginRight:"8px"},children:a("common.domain")}),e.jsx(S,{component:"span",children:t.value})]}),e.jsxs(S,{component:"div",style:{display:"flex"},children:[e.jsx(S,{component:"span",style:{width:"80px",marginRight:"8px"},children:"NFT"}),e.jsx(Rt,{did:t.nftDid})]})]})})})]}),e.jsx(U,{domain:t,filters:["http"]},`${t.value}-http`),o&&e.jsx(ue,{siteId:i,domain:t.value,domainStatus:t.domainStatus,did:s.meta.did,children:({open:y})=>e.jsx(H,{sx:{padding:0},size:"small",onClick:b=>y(b),children:a("router.cert.genLetsEncryptCert.title")})})]})}re.propTypes={siteId:n.string.isRequired,domain:G.isRequired,blocklet:n.object.isRequired,hasMutatePermission:n.bool.isRequired};export{xe as A,Zt as D,Je as a};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-
|
|
2
|
-
import{G as p,r as o,d as J,u as X,f as ee,F as te,c7 as F,a3 as _,a5 as $,t as j,j as e,H as se,T as b,b as D,D as ne,aD as ie,B as W,n as oe,Z as re}from"./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-AHJS-pEb.js","assets/index-DJFwMRI_.js","assets/index-D8NuaJ66.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{G as p,r as o,d as J,u as X,f as ee,F as te,c7 as F,a3 as _,a5 as $,t as j,j as e,H as se,T as b,b as D,D as ne,aD as ie,B as W,n as oe,Z as re}from"./index-DJFwMRI_.js";import{t as g}from"./trim-FV_vvgIq.js";import{i as ae}from"./isEmail-DUBiI8sd.js";import{F as ce}from"./fullpage-CU5nzdh1.js";import{f as S}from"./format-error-w94y5K97.js";import{d as le}from"./CheckCircle-BZ-KPWDf.js";import{d as ue}from"./MarkEmailRead-C192JefB.js";import{S as h}from"./Stack-DZqB4nST.js";import{L as de}from"./Link-COz46AhA.js";import{T as N}from"./TextField-QsTZLSPK.js";import"./FormControl-DFgqjaDx.js";import"./useFormControl-wVGGoaRj.js";import"./Select-BfCw7EsS.js";var z;(z=window.env)!=null&&z.groupPathPrefix;p.ROLES.ADMIN,p.ROLES.OWNER;const y=()=>{const{searchParams:d}=new URL(window.location.href);return d.get("fromWallet")==="1"},fe=re.form`
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
align-items: center;
|
|
@@ -15,4 +15,4 @@ import{G as p,r as o,d as J,u as X,f as ee,F as te,c7 as F,a3 as _,a5 as $,t as
|
|
|
15
15
|
div.Mui-focused input {
|
|
16
16
|
caret-color: ${d=>d.theme.palette.primary.main};
|
|
17
17
|
}
|
|
18
|
-
`;function Se(){var B,O;const d=o.useRef(null),{session:l,connectApi:K}=J(),{t:s,locale:u}=X(),[x,P]=o.useState(((B=l.user)==null?void 0:B.email)||""),[r,L]=o.useState(""),[E,v]=o.useState(!1),[H,G]=o.useState(!1),[c,U]=o.useState(!1),[Y,I]=o.useState(!1),[w,M]=o.useState(!1),{wallet:f}=ee(),[a]=te(),R=a.get("inviter")||localStorage.getItem("inviter"),m=a.get("updateKyc")==="1";o.useEffect(()=>{const n=a.get("subject");try{n&&ae(F.fromBase64(n).toString())&&P(F.fromBase64(n).toString())}catch(t){console.error(t)}},[]),o.useEffect(()=>{var n;(n=l.user)!=null&&n.emailVerified&&m&&(I(!0),setTimeout(()=>{if(f&&y()){_(()=>import("./index-
|
|
18
|
+
`;function Se(){var B,O;const d=o.useRef(null),{session:l,connectApi:K}=J(),{t:s,locale:u}=X(),[x,P]=o.useState(((B=l.user)==null?void 0:B.email)||""),[r,L]=o.useState(""),[E,v]=o.useState(!1),[H,G]=o.useState(!1),[c,U]=o.useState(!1),[Y,I]=o.useState(!1),[w,M]=o.useState(!1),{wallet:f}=ee(),[a]=te(),R=a.get("inviter")||localStorage.getItem("inviter"),m=a.get("updateKyc")==="1";o.useEffect(()=>{const n=a.get("subject");try{n&&ae(F.fromBase64(n).toString())&&P(F.fromBase64(n).toString())}catch(t){console.error(t)}},[]),o.useEffect(()=>{var n;(n=l.user)!=null&&n.emailVerified&&m&&(I(!0),setTimeout(()=>{if(f&&y()){_(()=>import("./index-AHJS-pEb.js").then(t=>t.i),__vite__mapDeps([0,1,2])).then(t=>{t.call("arcClosePage")});return}window.location.href=a.get("redirect")||"/"},1e3))},[l.user,m,f,a]);const q=o.useCallback(async n=>{var t;n.preventDefault(),v(!0);try{await $.post(`/kyc/email/send?locale=${u}`,{email:x}),U(!0),j.success(s("login.issueKyc.codeSentSuccess"))}catch(i){j.error(S(i)),(t=document.getElementById("email-input"))==null||t.focus()}finally{v(!1)}},[x,u,s]),T=o.useCallback(async n=>{var t;n&&n.preventDefault(),v(!0);try{await $.post(`/kyc/email/verify?locale=${u}`,{code:r}),I(!0),K.open({locale:u,action:"issue-kyc",extraParams:{code:r,updateKyc:a.get("updateKyc")||"0",inviter:R||""},containerEl:d.current,className:"connect",popup:!1,saveConnect:!1,forceConnected:!0,messages:{title:s("login.issueKyc.claim"),scan:s("login.issueKyc.scan"),confirm:s("login.issueKyc.confirm"),success:s("login.issueKyc.success")},useSocket:!0,onSuccess:()=>{M(!0),K.close(),m?(l.refresh({showProgress:!1,forceRefreshToken:!0}),setTimeout(()=>{if(f&&y()){_(()=>import("./index-AHJS-pEb.js").then(i=>i.i),__vite__mapDeps([0,1,2])).then(i=>{i.call("arcClosePage")});return}window.location.href=a.get("redirect")||"/"},1e3)):f&&y()&&_(()=>import("./index-AHJS-pEb.js").then(i=>i.i),__vite__mapDeps([0,1,2])).then(i=>{i.call("arcClosePage")})},onError:i=>{j.error(S(i))}})}catch(i){I(!1),j.error(S(i)),(t=document.getElementById(`code-input-${g(r).length-1}`))==null||t.focus()}finally{v(!1)}},[r,u,a,m,f,R]);o.useEffect(()=>{c&&g(r).length===p.VERIFY_CODE_LENGTH&&T()},[r,T,c]);const Q=o.useCallback(()=>{G(!0),K.open({locale:u,action:"update-kyc",containerEl:d.current,className:"connect",popup:!1,saveConnect:!1,forceConnected:!0,messages:{title:s("login.updateKyc.title"),scan:s("login.updateKyc.scan"),confirm:s("login.updateKyc.confirm"),success:s("login.updateKyc.success")},useSocket:!0,onSuccess:()=>{l.refresh({showProgress:!1,forceRefreshToken:!0}),setTimeout(()=>{if(f&&y()){_(()=>import("./index-AHJS-pEb.js").then(n=>n.i),__vite__mapDeps([0,1,2])).then(n=>{n.call("arcClosePage")});return}window.location.href=a.get("redirect")||"/"},2e3)},onError:n=>{j.error(S(n))}})},[u,a,f]),k=o.useCallback(n=>{if(!c)return;n.preventDefault();const t=g(n.clipboardData.getData("text/plain").slice(0,p.VERIFY_CODE_LENGTH));if(!/^\d+$/.test(t))return;L(t.padEnd(p.VERIFY_CODE_LENGTH," "));const i=document.getElementById(`code-input-${t.length}`);i&&i.focus()},[c]);o.useEffect(()=>(document.addEventListener("paste",k),()=>{document.removeEventListener("paste",k)}),[k]);const A=y()?s("login.issueKyc.issueTitle"):s("login.issueKyc.verifyTitle"),Z=y()?s("login.issueKyc.issueAction"):s("login.issueKyc.verifyAction");return e.jsxs(ce,{did:(O=window.blocklet)==null?void 0:O.appPid,children:[e.jsx(se,{children:e.jsx("title",{children:A})}),e.jsxs(h,{direction:"column",justifyContent:"center",alignItems:"center",sx:{width:"560px",px:2,boxSizing:"border-box",maxWidth:"100%",height:"100%"},children:[e.jsxs(h,{spacing:1,justifyContent:"center",alignItems:"center",sx:{mb:3},children:[w?e.jsx(le,{sx:{fontSize:72},color:"success"}):e.jsx(ue,{sx:{fontSize:72},color:"primary"}),e.jsx(b,{variant:"h5",sx:{textAlign:"center"},children:A}),!w&&e.jsx(b,{variant:"body2",color:"text.secondary",sx:{textAlign:"center"},children:s("login.issueKyc.pageDescription")}),w&&e.jsx(b,{variant:"body1",sx:{textAlign:"center"},children:s("login.issueKyc.success")}),w&&e.jsx(D,{variant:"contained",color:"primary",component:de,href:"/",size:"large",children:s("login.issueKyc.backToHome")}),!w&&l.user&&e.jsxs(h,{direction:"column",justifyContent:"center",alignItems:"center",children:[e.jsx(b,{variant:"body2",color:"info.main",sx:{textAlign:"center",mt:1},children:s("login.issueKyc.issueTarget",{action:Z})}),e.jsxs(h,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{width:"100%",maxWidth:360},children:[e.jsx(ne,{did:l.user.did,responsive:!0,copyable:!0,showQrcode:!1}),e.jsx(ie,{locale:u,session:l,showRole:!0,showManageBlocklet:!1})]})]})]}),e.jsx(W,{ref:d,sx:{width:"100%"},children:!Y&&!H&&e.jsxs(fe,{onSubmit:c?T:q,children:[!c&&e.jsx(N,{type:"email",id:"email-input",placeholder:s("login.issueKyc.emailPlaceholder"),sx:{width:"100%",maxWidth:360},value:x,onChange:n=>P(n.target.value),disabled:E,required:!0}),c&&e.jsxs(h,{direction:"column",justifyContent:"center",alignItems:"center",spacing:2,children:[e.jsx(b,{variant:"body2",textAlign:"center",children:s("login.issueKyc.codeSentMessage",{email:x})}),e.jsx(W,{sx:{width:"100%",maxWidth:360,display:"flex",justifyContent:"space-between"},children:[...Array(p.VERIFY_CODE_LENGTH)].map((n,t)=>e.jsx(N,{value:g(r[t])||"",type:"number",inputProps:{maxLength:1,style:{textAlign:"center",fontSize:"1.5rem"},autoComplete:"off"},sx:{width:"14%"},onChange:i=>{var V;const C=r.split("");C[t]=i.target.value,L(C.join("")),i.target.value&&t<5&&((V=document.getElementById(`code-input-${t+1}`))==null||V.focus())},onKeyDown:i=>{var C;i.key==="Backspace"&&!g(r[t])&&t>0&&((C=document.getElementById(`code-input-${t-1}`))==null||C.focus())},disabled:E,required:!0,id:`code-input-${t}`,autoComplete:"off"},`code-input-${t}`))})]}),e.jsxs(h,{direction:"row",justifyContent:m?"space-between":"center",alignItems:"center",spacing:2,sx:{width:"100%",maxWidth:360},children:[m&&e.jsx(D,{variant:"text",disabled:E,onClick:Q,size:"large",children:s("login.updateKyc.button")}),e.jsx(D,{type:"submit",size:"large",variant:"contained",disabled:E||!x||c&&g(r).length!==p.VERIFY_CODE_LENGTH,sx:{width:m?"auto":"100%"},children:E?e.jsx(oe,{size:24}):s(c?"login.issueKyc.verifyButton":"login.issueKyc.sendCodeButton")})]})]})})]})]})}export{Se as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{cw as e,cx as r,cy as s}from"./index-DJFwMRI_.js";const a=e(r),t=e(s);export{t as a,a as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as C,u as T,e as j,j as e,C as k,n as W,B as v,K as I,t as m,G as R,M as S,S as L,v as U,x as b}from"./index-
|
|
1
|
+
import{r as C,u as T,e as j,j as e,C as k,n as W,B as v,K as I,t as m,G as R,M as S,S as L,v as U,x as b}from"./index-DJFwMRI_.js";import{F}from"./fullpage-CU5nzdh1.js";import{w as N}from"./wrap-locale-D638dqwh.js";import"./Link-COz46AhA.js";function _({SessionContext:t,webWalletUrl:a,onSuccess:s}){var g,h;const{api:n,session:i}=C.useContext(t),{t:o,locale:u}=T(),w=j(),{searchParams:l}=new URL(window.location.href),x=l.get("redirect"),P=async(c,E)=>{s(c,E),await i.refresh(),m.success(o("exchangePassport.success")),setTimeout(()=>{if(x){const r=decodeURIComponent(x);r.startsWith(R.WELLKNOWN_SERVICE_PATH_PREFIX)?w(r,{replace:!0}):window.location=r}else window.location=window.env.pathPrefix||window.env.apiPrefix||"/"},3e3)},f=c=>{m.error(c.message)},p={},d=l.get("componentId");return d&&(p.componentId=d),i.loading?e.jsx(k,{children:e.jsx(W,{})}):e.jsx(F,{did:((g=window==null?void 0:window.blocklet)==null?void 0:g.appPid)||((h=window==null?void 0:window.env)==null?void 0:h.appPid),children:e.jsx(v,{sx:{width:"560px",maxWidth:"100%",height:"100%"},children:e.jsx(I,{className:"connect",action:"exchange-passport",checkFn:n.get,checkTimeout:10*60*1e3,webWalletUrl:a,onSuccess:P,onError:f,locale:u,messages:{title:o("exchangePassport.dialog.title"),scan:o("exchangePassport.dialog.scan"),confirm:o("exchangePassport.dialog.confirm"),success:o("exchangePassport.dialog.success")},extraParams:p,extraContent:null})})})}const B=N(_);function H(){const t=S(),a=(s,n)=>{s.sessionToken&&(U(n(s.sessionToken)),b(n(s.refreshToken)))};return e.jsx(B,{SessionContext:L,webWalletUrl:t,onSuccess:a})}export{H as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{P as e,j as o,bt as i,ce as a,a1 as l}from"./index-
|
|
1
|
+
import{P as e,j as o,bt as i,ce as a,a1 as l}from"./index-DJFwMRI_.js";function n({title:r,desc:s,retryFunc:t}){return o.jsxs(p,{role:"alert",children:[o.jsx("h3",{children:r}),o.jsx("pre",{children:s}),t&&o.jsx(l,{variant:"contained",color:"error",size:"small",onClick:t,children:"Try again"})]})}n.propTypes={title:e.string,desc:e.string.isRequired,retryFunc:e.func};n.defaultProps={title:"Something went wrong...",retryFunc:null};function c({error:r}){return o.jsx(n,{desc:r.message})}c.propTypes={error:e.instanceOf(Error).isRequired};e.instanceOf(Error).isRequired,e.func.isRequired;const p=i("div")`
|
|
2
2
|
padding: 16px;
|
|
3
3
|
border: 2px solid ${r=>r.theme.palette.error.main};
|
|
4
4
|
border-radius: 4px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as A,Y as K,j as e,P as t,
|
|
1
|
+
import{X as A,Y as K,j as e,P as t,eL as z,aC as S,b as U,bm as V,ai as W,bn as G,cA as Y,aT as H,cM as J,r as i,a0 as Q,B as u,n as Z,dd as ee}from"./index-DJFwMRI_.js";import{d as te}from"./Done-BIgK0-yu.js";import{F as se,R as ae}from"./logo-uploader-Chwfv_Zv.js";import{d as le}from"./EditIcon-PsnV85kC.js";import{d as ne}from"./ArrowDropDown-Vxgjfzsb.js";import{B as re}from"./ButtonGroup-D8BlpFOF.js";import{T as ie}from"./TextField-QsTZLSPK.js";var R={},oe=K;Object.defineProperty(R,"__esModule",{value:!0});var ce=R.default=void 0,ue=oe(A()),de=e;ce=R.default=(0,ue.default)((0,de.jsx)("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98 0-.34-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.06-.02-.12-.03-.18-.03-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98 0 .33.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.06.02.12.03.18.03.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64zm-1.98-1.71c.04.31.05.52.05.73 0 .21-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}),"SettingsOutlined");function _({triggers:l,onEnterEdit:a,disabled:m}){const n=z.useRef(null),[p,o]=z.useState(!1),b=s=>{o(!1),s()},C=()=>{o(s=>!s)},d=s=>{n.current&&n.current.contains(s.target)||o(!1)};return l.length===0?e.jsx(S,{"data-cy":"schema-form-item-edit",onClick:a,disabled:m,size:"large",children:e.jsx(le,{})}):e.jsxs(e.Fragment,{children:[e.jsx(re,{variant:"outlined",ref:n,"aria-label":"split button",children:e.jsx(U,{size:"large","aria-controls":p?"split-button-menu":void 0,"aria-expanded":p?"true":void 0,sx:{paddingLeft:"12px",paddingRight:"12px"},onClick:C,children:e.jsx(ne,{})})}),e.jsx(V,{sx:{zIndex:9999},open:p,anchorEl:n.current,role:void 0,placement:"bottom-end",children:e.jsx(W,{children:e.jsx(G,{onClickAway:d,children:e.jsx(Y,{id:"split-button-menu",autoFocusItem:!0,children:l.map(s=>e.jsx(H,{onClick:()=>b(s.handler),children:s.title},s.key))})})})})]})}_.propTypes={triggers:t.arrayOf(t.shape({key:t.string.isRequired,title:t.string.isRequired,handler:t.func.isRequired})),onEnterEdit:t.func.isRequired,disabled:t.bool.isRequired};_.defaultProps={triggers:[]};const P=(l,a,m)=>l===null&&a&&m?"******":l?a?"******":l:"",fe=J`
|
|
2
2
|
0%, 100% {
|
|
3
3
|
transform: scale(1) translateX(0);
|
|
4
4
|
}
|
|
@@ -8,4 +8,4 @@ import{X as A,Y as K,j as e,P as t,eM as z,aC as S,b as U,bm as V,ai as W,bn as
|
|
|
8
8
|
25%, 75% {
|
|
9
9
|
transform: scale(1.1) translateX(3px);
|
|
10
10
|
}
|
|
11
|
-
`;function
|
|
11
|
+
`;function w({label:l,disabled:a,required:m,initialValue:n,onChange:p,placeholder:o,style:b,onSubmit:C,secure:d,triggers:s,formatterBeforeSubmit:I,...B}){const[q,g]=i.useState(!1),[h,v]=i.useState(!1),{t:L}=i.useContext(Q),[y,N]=i.useState(d&&n==="__encrypted__"?null:n),[c,x]=i.useState(y),[f,j]=i.useState(!1),[M,T]=i.useState(!1),E=async()=>{v(!0);try{if(await C(c)===!1)x(y);else{let k=c;typeof I=="function"&&(k=I(c)),x(k),N(k),j(!1)}}catch{x(y)}finally{v(!1),g(!1)}},O=r=>{j(r!==c),x(r),p(r)},D=r=>{r.key==="Enter"&&E()},F=i.useCallback(()=>{T(!0),setTimeout(()=>{T(!1)},500)},[]),$=i.useCallback(()=>{f&&F(),!f&&!a&&!h&&(g(!1),j(!1))},[f,a,h,F]),X=q?e.jsx(ie,{style:{flex:1},fullWidth:!0,value:c,onChange:r=>{O(r.target.value)},autoFocus:!0,size:"small",variant:"outlined",placeholder:o,onKeyDown:D,onBlur:$,disabled:a,type:d?"password":"text",...B}):e.jsx(u,{px:1,"data-cy":"schema-form-item-edit",className:"form-item-input slot",style:{whiteSpace:"pre-wrap",cursor:"text"},onClick:()=>{a||g(!0)},children:P(c,d,n)?P(c,d,n):e.jsx("span",{className:"placeholder",children:L("common.requiredInputPlaceholder",{name:o||l})})});return e.jsx(se,{className:"form",style:b,children:e.jsxs(u,{className:"form-item",children:[e.jsxs(u,{className:"form-item-label",children:[l,m&&e.jsx(ae,{})]}),e.jsxs(u,{className:"form-item-body",style:{alignItems:"flex-start"},children:[e.jsx(u,{className:"form-item-input",children:X}),e.jsx(u,{className:"form-item-action",style:{marginLeft:s.length?12:0},children:q?e.jsxs(e.Fragment,{children:[f?e.jsx(S,{"data-cy":"schema-form-item-confirm",onClick:E,disabled:a||h||!f,sx:{animation:M?`${fe} 0.5s linear`:"none"},style:{paddingRight:4},size:"large",children:h?e.jsx(Z,{size:24}):e.jsx(te,{})}):null,e.jsx(S,{"data-cy":"schema-form-item-cancel",onClick:()=>{x(y),g(!1),j(!1)},style:{paddingLeft:f?4:8},disabled:a||h,size:"large",children:e.jsx(ee,{})})]}):e.jsx(u,{children:s.length?e.jsx(_,{triggers:s,disabled:a}):null})})]})]})})}w.propTypes={style:t.object,onSubmit:t.func,onChange:t.func,label:t.string,initialValue:t.string,placeholder:t.string,required:t.bool,disabled:t.bool,secure:t.bool,triggers:t.array,formatterBeforeSubmit:t.func};w.defaultProps={style:{},onSubmit:()=>{},onChange:()=>{},label:"",initialValue:"",placeholder:"",required:!1,disabled:!1,secure:!1,triggers:[],formatterBeforeSubmit:null};export{w as F,ce as d};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b7 as i}from"./index-DJFwMRI_.js";const f=t=>{const{details:e,errors:s,response:r}=t;if(Array.isArray(s))return s.map(a=>a.message).join(`
|
|
2
|
+
`);if(Array.isArray(e))return`Validate failed: ${e.map(o=>{const n=o.message.replace(/["]/g,"'");return`${o.path.join(".")}: ${n}`}).join(";")}`;if(r){if(r.data.message)return r.data.message;if(r.data.error)return r.data.error;const a=typeof r.data=="string"?r.data.slice(0,200):JSON.stringify(r.data);return`Request failed: ${r.status} ${r.statusText}: ${a}`}return t.message};var m=f;const g=i(m);export{g as f};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as l,a0 as B,ak as N,d as W,j as e,B as t,n as v,c as L,K as I,P as p,Z as $}from"./index-
|
|
1
|
+
import{r as l,a0 as B,ak as N,d as W,j as e,B as t,n as v,c as L,K as I,P as p,Z as $}from"./index-DJFwMRI_.js";import{d as D}from"./Launch-ZPrDFcJQ.js";import{W as E}from"./did-address-BsU-n4pW.js";import{P as T}from"./page-header-BXSuoXyd.js";import{S as z}from"./layout-DhK2V31d.js";import{S as A}from"./step-actions-CEVnyzA4.js";import{S as u}from"./button-DSdSJo9K.js";import{L as F}from"./Link-COz46AhA.js";import"./content-layout-Tg4aLOhb.js";function m({onNext:n,onPrevious:f}){const{locale:x,t:s}=l.useContext(B),{blocklet:a,gas:c,tokenInfo:h,actions:j}=N(),{api:y}=W(),[g,o]=l.useState(!1),{need:d="",current:k="",owe:r=99999,deficiency:C,symbol:S="",endpoint:i}=c||{},{origin:b="/"}=i?new URL(i):{};l.useEffect(()=>{const P=setInterval(()=>{j.refreshFuel()},2e3);return()=>{clearInterval(P)}},[]);const w=()=>{o(!1)};return c?e.jsxs(R,{children:[e.jsx("div",{className:"header",children:e.jsx(T,{title:s("setup.fuel.title"),onClickBack:f})}),e.jsxs(t,{className:"qr-body",children:[e.jsxs(t,{mb:6,className:"tip",children:[s("setup.fuel.tipStart").replace("slot",""),e.jsx("span",{className:"amount",children:`${d} ${S}`}),s("setup.fuel.tipEnd")]}),e.jsx(t,{fontSize:16,fontWeight:"fontWeightBold",mb:.5,children:s("setup.fuel.addressTitle")}),e.jsxs(t,{display:"flex",alignItems:"center",children:[e.jsx(E,{className:"address",did:a.appDid}),e.jsx(F,{style:{lineHeight:1},target:"_blank",href:L(b,"/explorer/accounts/",a.appDid),underline:"hover",children:e.jsx(D,{className:"icon-launch"})})]}),e.jsx(t,{my:2,children:e.jsx(u,{color:"primary",onClick:()=>o(!0),disabled:!r,children:s("setup.fuel.fuelApp")})}),e.jsx(I,{popup:!0,open:g,action:"fuel",checkFn:y.get,checkTimeout:10*60*1e3,onSuccess:w,onClose:()=>o(!1),locale:x,messages:{title:s("setup.connect.title"),scan:s("setup.connect.scan"),confirm:s("setup.connect.confirm"),success:s("setup.connect.success")},extraParams:{amount:C,...h,endpoint:i}}),e.jsxs(t,{display:"flex",color:"text.secondary",children:[e.jsxs(t,{display:"flex",children:[e.jsxs(t,{children:[s("setup.fuel.need"),":"]}),e.jsx(t,{ml:.5,color:"primary.main",fontWeight:"fontWeightBold",children:d})]}),e.jsxs(t,{display:"flex",ml:3,children:[e.jsxs(t,{children:[s("setup.fuel.current"),":"]}),e.jsx(t,{ml:.5,color:r>0?"error.main":"primary.main",fontWeight:"fontWeightBold",children:k})]})]})]}),e.jsx(A,{mt:8,children:e.jsx(u,{disabled:r>0,onClick:()=>n(),children:s("setup.next")})})]}):e.jsx(t,{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",children:e.jsx(v,{})})}m.propTypes={onNext:p.func,onPrevious:p.func};m.defaultProps={onNext:()=>{},onPrevious:()=>{}};const R=$(z)`
|
|
2
2
|
.qr-body {
|
|
3
3
|
width: 580px;
|
|
4
4
|
${n=>n.theme.breakpoints.down("md")} {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e,T as u,P as t,c8 as v,B as r,A as w,bE as a}from"./index-
|
|
1
|
+
import{j as e,T as u,P as t,c8 as v,B as r,A as w,bE as a}from"./index-DJFwMRI_.js";import{L as h}from"./Link-COz46AhA.js";function x({linkProps:o,...d}){return e.jsxs(u,{...d,children:["Powered by"," ",e.jsx(h,{href:"https://www.arcblock.io",target:"_blank",underline:"hover",...o,children:"ArcBlock"}),"'s"," ",e.jsx(h,{href:"https://www.blocklet.io",target:"_blank",underline:"hover",...o,children:"Blocklet Technology"}),", the decentralized web engine."]})}x.propTypes={linkProps:t.object};x.defaultProps={linkProps:{}};const k="/.well-known/service/static/assets/login-bg-Cbfh9Uc2.png";function j({did:o,children:d,title:l,description:c,logo:n,logoSize:g,appUrl:i}){var f,p,m,y;if(!o)return d;let s;try{s=v(o)}catch{console.warn("Invalid did:",o)}const b=(globalThis==null?void 0:globalThis.blocklet)||(globalThis==null?void 0:globalThis.env)||{};return l===void 0&&(l=b.appName),c===void 0&&(c=b.appDescription),n===void 0&&(n=((f=globalThis==null?void 0:globalThis.blocklet)==null?void 0:f.appLogoRect)||((p=globalThis==null?void 0:globalThis.blocklet)==null?void 0:p.appLogo)||""),typeof n=="string"&&(n?n=e.jsx(r,{sx:{height:g,maxHeight:g,maxWidth:"50%",objectFit:"contain"},component:"img",src:n}):n=e.jsx(w,{size:g,did:o,src:n,variant:"rounded"})),typeof i=="string"&&(i=((m=globalThis==null?void 0:globalThis.blocklet)==null?void 0:m.appUrl)||"",!i&&(globalThis!=null&&globalThis.env)&&(i=(y=globalThis==null?void 0:globalThis.env)==null?void 0:y.baseUrl)),e.jsxs(r,{sx:{width:"100vw",height:"100vh",overflowX:"auto",display:"flex",backgroundColor:a.backgroundsBgSubtile},children:[e.jsxs(r,{sx:{position:"relative",fontSize:0,flex:30,display:{xs:"none",lg:"flex"},minWidth:"400px",backgroundColor:a.surfaceBgSubtitle},children:[e.jsx(r,{sx:{position:"absolute",top:0,bottom:0,left:0,right:0,background:s?`linear-gradient(0deg, ${s} 0%, ${s} 100%), url(${k}), lightgray 50% / cover no-repeat`:`url(${k}), lightgray 50% / cover no-repeat`,backgroundPosition:"center",backgroundSize:"cover",backgroundBlendMode:s?"soft-light, normal":"unset",mask:"linear-gradient(172deg, rgba(0, 0, 0, 0.0) 24.62%, rgba(0, 0, 0, 0.80) 44.47%, #000 100%)"}}),e.jsxs(r,{sx:{display:"flex",flexDirection:"column",position:"absolute",top:0,left:0,width:"100%",p:3},children:[i?e.jsx(r,{children:e.jsx(h,{href:i,underline:"none",color:"inherit",children:n})}):n,l&&e.jsx(u,{variant:"h5",sx:{mt:3,mb:1,p:0,mx:0,fontWeight:"bold"},children:i?e.jsx(h,{href:i,underline:"none",color:"inherit",children:l}):l}),c&&e.jsx(u,{variant:"body2",sx:{m:0,p:0,color:a.foregroundsFgSubtile,fontSize:"12px",lineHeight:"20px"},children:c})]}),e.jsx(x,{linkProps:{underline:"always",color:a.textSubtitle},sx:{zIndex:10,position:"absolute",bottom:40,left:20,right:20,textAlign:"center",fontSize:"12px",color:a.textSubtitle}})]}),e.jsx(r,{sx:{display:"flex",justifyContent:"center",alignItems:"center",flex:70,maxWidth:{xs:"100%",md:"90%"},margin:"auto",height:"auto"},children:d})]})}j.propTypes={did:t.string.isRequired,children:t.any.isRequired,title:t.any,description:t.any,logo:t.any,logoSize:t.number,appUrl:t.string};j.defaultProps={title:void 0,description:void 0,logo:void 0,logoSize:40,appUrl:""};export{j as F};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as o,a1 as r,L as i,G as t}from"./index-
|
|
1
|
+
import{j as o,a1 as r,L as i,G as t}from"./index-DJFwMRI_.js";import{S as n}from"./studio-BxsvSt8u.js";import{S as e}from"./Stack-DZqB4nST.js";import"./index-R_t5Wd6C.js";import"./Menu-BCLNF0wV.js";import"./Toolbar-ovqJjtaU.js";import"./Hidden-Bcfg4-bH.js";import"./fallback-CXclKVjQ.js";function E(){return o.jsx(n,{children:o.jsxs(e,{direction:"row",m:4,spacing:2,children:[o.jsx(r,{component:i,to:`${t.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/preferences`,size:"large",color:"primary",variant:"outlined",children:"Preference Builder"}),o.jsx(r,{component:i,to:`${t.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/branding`,size:"large",color:"primary",variant:"outlined",children:"Branding Images"}),o.jsx(r,{component:i,to:`${t.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/localization`,size:"large",color:"primary",variant:"outlined",children:"Localization"})]})})}export{E as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{eK as q,eL as x}from"./index-DJFwMRI_.js";const E=({url:r,allowFullScreen:o,position:a,display:u,height:i,width:c,overflow:y,styles:f,onLoad:p,onMouseOver:w,onMouseOut:b,scrolling:d,id:m,frameBorder:n,ariaHidden:O,sandbox:s,allow:j,className:g,title:h,ariaLabel:k,ariaLabelledby:I,name:P,target:v,loading:A,importance:F,referrerpolicy:L,allowpaymentrequest:M,src:S,key:$})=>{const t=q({src:S||r,target:v||null,style:{position:a||null,display:u||"initial",overflow:y||null},scrolling:d||null,allowpaymentrequest:M||null,importance:F||null,sandbox:s&&[...s].join(" ")||null,loading:A||null,styles:f||null,name:P||null,className:g||null,allowFullScreen:"allowFullScreen",referrerpolicy:L||null,title:h||null,allow:j||null,id:m||null,"aria-labelledby":I||null,"aria-hidden":O||null,"aria-label":k||null,width:c||null,height:i||null,onLoad:p||null,onMouseOver:w||null,onMouseOut:b||null,key:$||"iframe"});let l=Object.create(null);for(let e of Object.keys(t))t[e]!=null&&(l[e]=t[e]);for(let e of Object.keys(l.style))l.style[e]==null&&delete l.style[e];if(l.styles)for(let e of Object.keys(l.styles))l.styles.hasOwnProperty(e)&&(l.style[e]=l.styles[e]),Object.keys(l.styles).pop()==e&&delete l.styles;if(o)if("allow"in l){const e=l.allow.replace("fullscreen","");l.allow=`fullscreen ${e.trim()}`.trim()}else l.allow="fullscreen";return n>=0&&(l.style.hasOwnProperty("border")||(l.style.border=n)),x.createElement("iframe",Object.assign({},l))},N=E;export{N as I};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b7 as j,co as O}from"./index-
|
|
1
|
+
import{b7 as j,co as O}from"./index-DJFwMRI_.js";function J(i,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const e in a)if(e!=="default"&&!(e in i)){const s=Object.getOwnPropertyDescriptor(a,e);s&&Object.defineProperty(i,e,s.get?s:{enumerable:!0,get:()=>a[e]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var d={default:O,call:function(i,t,r){var a="";typeof t=="function"&&(r=t,t={});var e={data:t===void 0?null:t};if(typeof r=="function"){var s="dscb"+window.dscb++;window[s]=r,e._dscbstub=s}return e=JSON.stringify(e),window._dsbridge?a=_dsbridge.call(i,e):(window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)&&(a=prompt("_dsbridge="+i,e)),JSON.parse(a||"{}").data},register:function(i,t,r){var a=r?window._dsaf:window._dsf;window._dsInit||(window._dsInit=!0,setTimeout(function(){d.call("_dsb.dsinit")},0)),typeof t=="object"?a._obs[i]=t:a[i]=t},registerAsyn:function(i,t){this.register(i,t,!0)},hasNativeMethod:function(i,t){return this.call("_dsb.hasNativeMethod",{name:i,type:t||"all"})},disableJavascriptDialogBlock:function(i){this.call("_dsb.disableJavascriptDialogBlock",{disable:i!==!1})}};(function(){if(!window._dsf){var i={_dsf:{_obs:{}},_dsaf:{_obs:{}},dscb:0,dsBridge:d,close:function(){d.call("_dsb.closePage")},_handleMessageFromNative:function(r){var a=JSON.parse(r.data),e={id:r.callbackId,complete:!0},s=this._dsf[r.method],o=this._dsaf[r.method],p=function(u,_){e.data=u.apply(_,a),d.call("_dsb.returnValue",e)},v=function(u,_){a.push(function(w,y){e.data=w,e.complete=y!==!1,d.call("_dsb.returnValue",e)}),u.apply(_,a)};if(s)p(s,this._dsf);else if(o)v(o,this._dsaf);else{var l=r.method.split(".");if(l.length<2)return;var b=l.pop(),g=l.join("."),c=this._dsf._obs,f=c[g]||{},n=f[b];if(n&&typeof n=="function"){p(n,f);return}if(c=this._dsaf._obs,f=c[g]||{},n=f[b],n&&typeof n=="function"){v(n,f);return}}}};for(var t in i)window[t]=i[t];d.register("_hasJavascriptMethod",function(r,a){var e=r.split(".");if(e.length<2)return!!(_dsf[e]||_dsaf[e]);var r=e.pop(),s=e.join("."),o=_dsf._obs[s]||_dsaf._obs[s];return o&&!!o[r]})}})();var h=d;const N=j(h),k=J({__proto__:null,default:N},[h]);export{k as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b7 as a}from"./index-
|
|
1
|
+
import{b7 as a}from"./index-DJFwMRI_.js";var e=i,s=/^(?:\w+:)?\/\/(\S+)$/,l=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,n=/^[^\s\.]+\.\S{2,}$/;function i(t){if(typeof t!="string")return!1;var o=t.match(s);if(!o)return!1;var r=o[1];return r?!!(l.test(r)||n.test(r)):!1}const c=a(e);export{c as i};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as ee,r as $e,aK as Se,
|
|
1
|
+
import{j as ee,r as $e,aK as Se,dF as pi,c$ as Yb,aJ as Ar,dq as Co,dG as Fl,dH as Jb,dI as Xb,dJ as Qb,dK as Ss,dL as Ot,dM as Rt,dN as Qi,dO as Zi,dP as ti,dQ as Zb,dR as Xv,dS as Qv,dT as ew,dU as Zv,dV as eh,cH as tw,cI as rw,cP as aw,dW as nw,ah as th,dX as ow,dY as iw,dZ as sw,d_ as lw,d$ as uw,aG as _r,e0 as cw,e1 as dw,e2 as fw,e3 as pw,cM as vw,e4 as hw,e5 as gw,e6 as mw,e7 as yw,e8 as bw,cN as ww,cO as Sw,aj as rh,ai as $w,e9 as xw,ea as _w,aC as Ja,eb as Tw,ec as Cw,T as Pw,ed as Ow,ee as Rw,ef as Iw,bf as Ew,eg as Aw,eh as jw,b as Dw,ei as kw,ej as Mw,d4 as Lw,d3 as Fw,ek as Bw,el as Nw,bi as ah,em as Hw,en as Uw,eo as Ww,ep as zw,aT as $s,eq as Gw,er as Kw,a as xs,es as Vw,et as qw,aF as Ln,aE as Fn,aI as Bn,aM as Er,aN as Nn,aH as Dn,cg as Yw,cm as _s,cf as Jw,cT as Xw,d9 as jd,cY as Qw,at as Zw,cQ as eS,co as tt,cw as lt,eu as tS,ev as rS,X as vi,Y as hi,cq as aS,b7 as Rc,cp as nS,ew as oS,ex as nh,ey as iS,ez as sS,eA as lS,eB as uS,P as Qe,bt as jo,bD as cS,aR as dS,b_ as fS,$ as pS,cG as Dd,c1 as vS,cs as hS,n as gS}from"./index-DJFwMRI_.js";import{u as mS}from"./useThemeProps-DD6E2MMK.js";import{t as yS}from"./toPropertyKey-PLuKRk1e.js";import{a as bS,r as oh}from"./emotion-cache.browser.esm-gefWLr3C.js";import{e as wS,r as SS,l as $S}from"./index-CwUTvEH2.js";import{c as xS,C as _S,a as TS,d as CS}from"./MoreVert-BKZLkhdi.js";import{R as PS,C as OS,V as RS,d as IS,a as ES}from"./ViewColumn-CMTirt5e.js";import{F as AS,f as jS,g as DS}from"./FormControl-DFgqjaDx.js";import{u as kS}from"./useFormControl-wVGGoaRj.js";import{F as MS,f as LS,g as FS}from"./FormControlLabel-CCT1Hxna.js";import{F as BS,f as NS,g as HS}from"./FormGroup-CoWGV2kU.js";import{G as US,g as WS,a as zS}from"./Grid-CO5mLAA8.js";import{I as ih,g as GS,i as KS,a as VS,b as qS,c as YS,d as JS,e as XS,f as QS,S as sh,h as ZS,s as e$}from"./Select-BfCw7EsS.js";import{a as ac,D as t$,L as kd}from"./Delete-xmuDalv8.js";import{T as nc,g as r$,t as a$}from"./TextField-QsTZLSPK.js";import{K as n$,a as o$}from"./index-Z5L8aZy0.js";import{F as i$,L as s$}from"./LastPage-XMNFRrKd.js";import{T as lh,g as l$,t as u$}from"./Toolbar-ovqJjtaU.js";import{S as c$,d as Md}from"./Search-HNhjKRtr.js";import{E as Ld}from"./index-DuwjjPMM.js";const Ic="mode",Ec="color-scheme",uh="data-color-scheme";function d$(e){const{defaultMode:t="light",defaultLightColorScheme:r="light",defaultDarkColorScheme:a="dark",modeStorageKey:n=Ic,colorSchemeStorageKey:i=Ec,attribute:c=uh,colorSchemeNode:v="document.documentElement",nonce:p}=e||{};return ee.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(function() {
|
|
2
2
|
try {
|
|
3
3
|
var mode = localStorage.getItem('${n}') || '${t}';
|
|
4
4
|
var colorScheme = '';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,a0 as e,j as t,R as n,Z as o}from"./index-
|
|
1
|
+
import{r as a,a0 as e,j as t,R as n,Z as o}from"./index-DJFwMRI_.js";function p(){const{t:s}=a.useContext(e);return t.jsx(r,{style:{paddingTop:"25vh"},children:t.jsx(n,{status:"404",description:s("noMatch.desc"),style:{backgroundColor:"transparent"}})})}const r=o.main``;export{p as default};
|