@abtnode/blocklet-services 1.17.8-beta-20260113-015027-32a1cec4 → 1.17.8-beta-20260115-003043-5e15c08a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/AdapterDayjs-BI3dme25.js +3 -0
- package/dist/assets/{Community-3AO97CCq.js → Community-BiwM1i9F.js} +1 -1
- package/dist/assets/Google-BMSeyXdi.js +27 -0
- package/dist/assets/{Holiday-CqSw2e8m.js → Holiday-BfArn73w.js} +1 -1
- package/dist/assets/LottiePlayer.modern-CeQuigIa.js +1 -0
- package/dist/assets/{Meeting-DKbNRI16.js → Meeting-QV3KsWwx.js} +1 -1
- package/dist/assets/{OffSick-BvEREz3_.js → OffSick-DP4yfBRj.js} +1 -1
- package/dist/assets/{WorkingRemotely-DNtYHcSB.js → WorkingRemotely-DTxVm_VO.js} +1 -1
- package/dist/assets/access-control-CSfPgD_B.js +14 -0
- package/dist/assets/actions-Dktj9pEF.js +1 -0
- package/dist/assets/actions-Ng-YRTer.js +64 -0
- package/dist/assets/add-component-core-D4DUnQj0.css +1 -0
- package/dist/assets/add-component-core-DOIm-W83.js +645 -0
- package/dist/assets/add-resource-_wuuBiJJ.js +1 -0
- package/dist/assets/addon-N_sS-Sx6.js +14 -0
- package/dist/assets/advanced-BhbxG-_n.js +14 -0
- package/dist/assets/aigne-DElJAbjP.js +10 -0
- package/dist/assets/api-B8JXuhVp.js +1 -0
- package/dist/assets/appearance-D71HSeGD.js +1 -0
- package/dist/assets/{arrow-down.svg-7ME6T1BL.js → arrow-down.svg-Dz9H9vM-.js} +1 -1
- package/dist/assets/audit-logs-Ci_HlT4m.js +35 -0
- package/dist/assets/authorize-DQERA3Vv.js +1 -0
- package/dist/assets/{base-chart-DT--nPCU.js → base-chart-DWXZOkNE.js} +1 -1
- package/dist/assets/{base32-z3esjJBn.js → base32-Cpvj2sD4.js} +1 -1
- package/dist/assets/bind-account-BIzFrnLk.js +1 -0
- package/dist/assets/{branding-_XszRU-Z.js → branding-BHJqY7Mz.js} +5 -5
- package/dist/assets/branding-D-ShZ8m2.js +1 -0
- package/dist/assets/branding-DAdwbyWZ.js +40 -0
- package/dist/assets/bundle-avatar-sDqev1Fh.js +1 -0
- package/dist/assets/button-B_Qd9K_t.js +1 -0
- package/dist/assets/click-to-copy-RBTqACSW.js +1 -0
- package/dist/assets/cloneDeep-YxES7wNt.js +1 -0
- package/dist/assets/{collapse-D72lnPa9.js → collapse-DWmyzfnW.js} +1 -1
- package/dist/assets/{complete-CEvsz8uU.js → complete-D6XDZtnV.js} +3 -3
- package/dist/assets/component-B2qSKMGx.js +457 -0
- package/dist/assets/{config-6tpm84_l.js → config-Ca5tnO9j.js} +1 -1
- package/dist/assets/config-fYkZxdEr.js +53 -0
- package/dist/assets/config-navigation-BEYJ5bSz.js +34 -0
- package/dist/assets/{config-CwlqBQNt.js → config-oF-A1tKe.js} +2 -2
- package/dist/assets/config-space-HmsYCb6s.js +1 -0
- package/dist/assets/confirm-DQYDHHdS.js +7 -0
- package/dist/assets/connect-BeWeBwCA.js +5 -0
- package/dist/assets/connect-COLwEMSx.js +5 -0
- package/dist/assets/{connect-BV6BUhDJ.css → connect-D0pbMu9_.css} +1 -1
- package/dist/assets/connect-to-C3ac4B-g.js +1 -0
- package/dist/assets/connect-ydb7rKXe.js +1 -0
- package/dist/assets/{content-layout-Dtfb5X6M.js → content-layout-CanSZTqf.js} +1 -1
- package/dist/assets/{create-passport-svg-DeDfPZeD.js → create-passport-svg-De1vqcmo.js} +1 -1
- package/dist/assets/{createClass-07c4wbGU.js → createClass-CRUn7w67.js} +1 -1
- package/dist/assets/dashboard-BZiea8Z_.js +93 -0
- package/dist/assets/{delete-confirm-DiU5PO2T.js → delete-confirm-CpaOkuin.js} +1 -1
- package/dist/assets/did-address-DRYM96gB.js +1 -0
- package/dist/assets/domain-D9Kc4Rgt.js +9 -0
- package/dist/assets/domain-action-card-ugKl692S.js +28 -0
- package/dist/assets/domains-B9b2gmbn.js +1 -0
- package/dist/assets/{edit.svg-CTE5eATX.js → edit.svg-BGhTyO6h.js} +1 -1
- package/dist/assets/{email-DXdzQLls.js → email-DDyG3qPR.js} +2 -2
- package/dist/assets/{empty-spinner-BClWI15N.js → empty-spinner-ChYvCNCV.js} +1 -1
- package/dist/assets/engine-L1SEogaX.js +1 -0
- package/dist/assets/exchange-passport-DoiXZo5M.js +1 -0
- package/dist/assets/fallback-CZRO9TTQ.js +1 -0
- package/dist/assets/{form-DhecYoSJ.js → form--iZWaH7Y.js} +3 -3
- package/dist/assets/form-text-input-Cs-LuCu0.js +11 -0
- package/dist/assets/{form-wrapper-pwkkz4we.js → form-wrapper-EixE0Jkw.js} +1 -1
- package/dist/assets/fuel-C85y6XSK.js +32 -0
- package/dist/assets/gen-access-key-DxF-VBeV.js +1 -0
- package/dist/assets/gen-simple-access-key-Cxq1_uy6.js +1 -0
- package/dist/assets/get-safe-url-D4zRnTpF.js +1 -0
- package/dist/assets/home-EzPPxjBW.js +1 -0
- package/dist/assets/{iframe-CqiUrjUO.js → iframe-C5nvJ0m0.js} +1 -1
- package/dist/assets/index-2AyCotIy.js +1 -0
- package/dist/assets/index-B2PeJoug.js +81 -0
- package/dist/assets/index-B3ArnS-X.js +6 -0
- package/dist/assets/index-B3fG443w.js +1 -0
- package/dist/assets/index-BM9QepzF.js +269 -0
- package/dist/assets/index-BQFgfBFX.js +88 -0
- package/dist/assets/index-Ba_SJ3UV.js +7 -0
- package/dist/assets/index-BbO4pSmm.js +1 -0
- package/dist/assets/{index-POuATgdm.js → index-BoJbHOhC.js} +1 -1
- package/dist/assets/index-BuucS_rQ.js +11 -0
- package/dist/assets/index-Bwibx9MU.js +1 -0
- package/dist/assets/{index-DlifV2p1.js → index-C9V4aWeM.js} +6 -6
- package/dist/assets/{index-uexcv8C-.js → index-CL5ZGYlc.js} +7 -7
- package/dist/assets/index-Ca33rdd_.js +832 -0
- package/dist/assets/index-Ca5zgzpl.js +1 -0
- package/dist/assets/{index-D-O_eFad.js → index-CbZQvtgh.js} +1 -1
- package/dist/assets/index-CiCryHDZ.js +50 -0
- package/dist/assets/{index-D88DUiSg.js → index-Cw8Yly1u.js} +3 -3
- package/dist/assets/{index-BSZ3mQac.js → index-CxOxF1pg.js} +1 -1
- package/dist/assets/index-D1Fa760B.js +40 -0
- package/dist/assets/index-D29L5UKE.js +2 -0
- package/dist/assets/{index-gohmHhDq.js → index-D3fA5iF-.js} +7 -7
- package/dist/assets/index-D4_8N2le.js +4 -0
- package/dist/assets/index-DCxNOCc2.js +50 -0
- package/dist/assets/{index-DUnMyyWn.js → index-DGU5RA0-.js} +16 -16
- package/dist/assets/index-DVOweIMx.js +124 -0
- package/dist/assets/index-D_ymA2Th.js +120 -0
- package/dist/assets/index-Ddl9fWMP.js +1 -0
- package/dist/assets/index-DvQIPWQ6.js +53 -0
- package/dist/assets/index-Dxb3MonW.js +6 -0
- package/dist/assets/index-VlFqUdI2.js +57 -0
- package/dist/assets/index-_3Fxot8G.css +1 -0
- package/dist/assets/index-_bvucGkF.js +16 -0
- package/dist/assets/index-_uJPC7_n.js +102 -0
- package/dist/assets/index-ed1TwQco.css +1 -0
- package/dist/assets/{index-_tncRnTu.js → index-jIvFgWDS.js} +1 -1
- package/dist/assets/index-p0MfrvgW.js +161 -0
- package/dist/assets/{index-m1ZQT0sU.js → index-qpadg6GT.js} +1 -1
- package/dist/assets/{index-Cdaohlhu.js → index-r7svI4rK.js} +7 -7
- package/dist/assets/index-sb6EjUcD.js +1 -0
- package/dist/assets/{index-BnOC3Ium.js → index-zkaWHEAS.js} +1 -1
- package/dist/assets/index.esm-C4tuRtuv.js +1 -0
- package/dist/assets/info-outline-rounded-DVdLJtdi.js +1 -0
- package/dist/assets/{invitation-DSs7YT3_.js → invitation-CUluW5mi.js} +6 -6
- package/dist/assets/invitations-gJ3uAWGN.js +3 -0
- package/dist/assets/invite-zC3nU84H.js +1 -0
- package/dist/assets/isEmail-BwGDo3Ws.js +1 -0
- package/dist/assets/isIP-BBY240SU.js +1 -0
- package/dist/assets/isURL-CpQHQuaa.js +2 -0
- package/dist/assets/issue-passport-B_pYDft0.js +1 -0
- package/dist/assets/item-DoUn7xhc.js +1 -0
- package/dist/assets/joi-browser.min-CUdv8seQ.js +1 -0
- package/dist/assets/joi-browser.min-eEVeW7LC.js +1 -0
- package/dist/assets/landing-page-BJAji-kI.js +1 -0
- package/dist/assets/{launch-result-message-C04PaKk0.js → launch-result-message-B2nhmkKt.js} +1 -1
- package/dist/assets/layout-CydCBGqn.js +29 -0
- package/dist/assets/{lexend-latin-400-normal-3dY8zrhQ.woff → lexend-latin-400-normal-CHypAkT3.woff} +0 -0
- package/dist/assets/lexend-latin-400-normal-CwRJVcUA.woff2 +0 -0
- package/dist/assets/{lexend-latin-600-normal-DGqCKODV.woff → lexend-latin-600-normal-DSBzZxpA.woff} +0 -0
- package/dist/assets/lexend-latin-600-normal-DdvlkEkX.woff2 +0 -0
- package/dist/assets/lexend-latin-ext-400-normal-D38JI5AK.woff2 +0 -0
- package/dist/assets/{lexend-latin-ext-400-normal-DdRy0ZnY.woff → lexend-latin-ext-400-normal-D9P7pMo-.woff} +0 -0
- package/dist/assets/{lexend-latin-ext-600-normal-DBcy3Oce.woff → lexend-latin-ext-600-normal-BXtyp5LP.woff} +0 -0
- package/dist/assets/lexend-latin-ext-600-normal-hDcqLAH9.woff2 +0 -0
- package/dist/assets/list-BIwaCPhs.js +103 -0
- package/dist/assets/list-CO8Xp7iX.js +2 -0
- package/dist/assets/{list-header-wJF4c6BN.js → list-header-DQZTNnUc.js} +1 -1
- package/dist/assets/localization-BYdi6ljV.js +1 -0
- package/dist/assets/{lock.svg-CiT4rEpi.js → lock.svg-BOhdQlHW.js} +1 -1
- package/dist/assets/log-JZXyzrRA.js +459 -0
- package/dist/assets/logger-BMHd-C1S.js +1 -0
- package/dist/assets/login-CU5Tw5QB.js +1 -0
- package/dist/assets/login-method-item-KhJ672kA.js +1 -0
- package/dist/assets/login-oauth-callback-Bz7N73Sg.js +1 -0
- package/dist/assets/{logo-uploader-D5E5QaRF.js → logo-uploader-DjKJkvts.js} +2 -2
- package/dist/assets/{lost-passport-CUtEI06a.js → lost-passport-CyJVtH1V.js} +3 -3
- package/dist/assets/lottie-react.esm-DRhh9vvb.js +256 -0
- package/dist/assets/lottie-web-DPAbO4kJ.js +2 -0
- package/dist/assets/metadata-CkzdOpl3.js +55 -0
- package/dist/assets/nav-menu-5M0Q4jYU.js +1 -0
- package/dist/assets/omit-Dq0FLBY8.js +1 -0
- package/dist/assets/open-window-DphH3aTv.js +1 -0
- package/dist/assets/over-due-invoice-payment-DD_j5vb4.js +1 -0
- package/dist/assets/overview-CGIG2I_w.js +116 -0
- package/dist/assets/{page-header-BZv-tfgN.js → page-header-B0HpJClf.js} +1 -1
- package/dist/assets/passkey-rounded-_WDHIZVd.js +1 -0
- package/dist/assets/passport-DKYg_d4G.js +1 -0
- package/dist/assets/{passport-item-D53yZ-cF.js → passport-item-CjcqN_g-.js} +1 -1
- package/dist/assets/{permission-DC8i_y8F.js → permission-DhyiLNfC.js} +1 -1
- package/dist/assets/preferences-DHjRWgwZ.js +1 -0
- package/dist/assets/profile-embed-Gc79_Dhj.js +1 -0
- package/dist/assets/provider-icon-DX-QfJQN.js +1 -0
- package/dist/assets/publish-resource-vCC9AfJK.js +1 -0
- package/dist/assets/purify.es-HRjpPm7y.js +2 -0
- package/dist/assets/{question-mark-circle.svg-GhTaklFN.js → question-mark-circle.svg-B0bcUgC5.js} +1 -1
- package/dist/assets/{raf-schd.esm-XXBRsnmf.js → raf-schd.esm-BZ-2sjAE.js} +1 -1
- package/dist/assets/react-beautiful-dnd.esm-bkXlrjYw.js +54 -0
- package/dist/assets/{react-stripe.esm-5Snjx_mn.js → react-stripe.esm-BBCEegrE.js} +2 -2
- package/dist/assets/{required-DHjZE3-Y.js → required-11pmtzQr.js} +2 -2
- package/dist/assets/{revoke.svg-DUoaRyPZ.js → revoke.svg-BF_gJc34.js} +1 -1
- package/dist/assets/runtime-BjKYEBG_.js +1 -0
- package/dist/assets/sanitize-Bzl4lTuH.js +2 -0
- package/dist/assets/sdk-CXEy5Pgp.js +1 -0
- package/dist/assets/{section-CenHBXqj.js → section-ewv0pNWr.js} +1 -1
- package/dist/assets/{security-BMslI5IZ.js → security-Xrnc8Gqe.js} +4 -4
- package/dist/assets/{server-logo-notext.svg-BLAdvsmP.js → server-logo-notext.svg-CtPRYaCm.js} +1 -1
- package/dist/assets/session-lE2gmzzF.js +1 -0
- package/dist/assets/setup-p5LUFpYK.js +24 -0
- package/dist/assets/{shorten-label-DXFyDHDr.js → shorten-label-1iJcvGQT.js} +1 -1
- package/dist/assets/{simple-select-DtCsUIHR.js → simple-select-BKXEgxog.js} +1 -1
- package/dist/assets/{spaces-D3H6AchN.js → spaces-Ckljlc4d.js} +1 -1
- package/dist/assets/start-BE-C9MhV.js +187 -0
- package/dist/assets/{starting-progress-Y3UjFmoX.js → starting-progress-DC-J-5Os.js} +2 -2
- package/dist/assets/status-DR5t3VVx.js +1 -0
- package/dist/assets/{step-actions-BNFJWVZI.js → step-actions-CArEuzNw.js} +2 -2
- package/dist/assets/studio-BEzAGvQT.js +6 -0
- package/dist/assets/{switch-C49IloVU.js → switch-CmVFEdik.js} +1 -1
- package/dist/assets/switch-control-DbLHF-NB.js +18 -0
- package/dist/assets/{table-tips-DMrnJF8e.js → table-tips-DQIh1EQR.js} +1 -1
- package/dist/assets/team-7-48iuwj.js +146 -0
- package/dist/assets/theme-mode-toggle-BltDSXhy.js +1 -0
- package/dist/assets/traffic-Dwd2RNqG.js +1 -0
- package/dist/assets/transfer-BwnSX6wY.js +16 -0
- package/dist/assets/ua-parser-D6QF1h5N.js +1 -0
- package/dist/assets/unsubscribe-CP0mTwWi.js +1 -0
- package/dist/assets/{use-app-logo-hIHAHSSI.js → use-app-logo-BzsLZwwK.js} +1 -1
- package/dist/assets/use-blocklet-logo-BWPJOOVd.js +1 -0
- package/dist/assets/{use-mobile-Bz2ML4Gk.js → use-mobile-BSL5RsRd.js} +1 -1
- package/dist/assets/use-mobile-DgmmfWdl.js +1 -0
- package/dist/assets/{use-mobile-_vjPRYx2.js → use-mobile-TAIHvgoJ.js} +1 -1
- package/dist/assets/{use-server-logo-Da86xnyt.js → use-server-logo-BLcfNvrR.js} +1 -1
- package/dist/assets/use-window-close-D2_118dJ.js +1 -0
- package/dist/assets/useAsync-CkKfnulP.js +1 -0
- package/dist/assets/{useAsync-D6IP8T2e.js → useAsync-DfiOQMQ_.js} +1 -1
- package/dist/assets/{useAsyncRetry-B_bXUXWM.js → useAsyncRetry-B-Txlvk6.js} +1 -1
- package/dist/assets/{useLocalStorage-Brr2PSz9.js → useLocalStorage-D6axLnAi.js} +1 -1
- package/dist/assets/{useSetState-L-f8mSga.js → useSetState-CUbypYGT.js} +1 -1
- package/dist/assets/user-center-DBscV1le.js +72 -0
- package/dist/assets/{user-follower-DVX8m-Zk.js → user-follower-Di51icra.js} +1 -1
- package/dist/assets/{util-GXkeqbBQ.js → util-DCHBQZpP.js} +1 -1
- package/dist/assets/util-ad0rjUA1.js +1 -0
- package/dist/assets/{vendor-arcblock-BCP2x3BR.js → vendor-arcblock-ivFYo5vP.js} +9 -9
- package/dist/assets/vendor-hooks-DAZ1H6Va.js +1 -0
- package/dist/assets/vendor-mui-core-D7t4vMS5.js +227 -0
- package/dist/assets/vendor-mui-x-BpPw6UfF.js +14 -0
- package/dist/assets/vendor-react-DX7tU9aY.js +2 -0
- package/dist/assets/vendor-utils-BzQg432x.js +23 -0
- package/dist/assets/vendor-ux-Dl3wVbv_.js +1003 -0
- package/dist/assets/{wait-connect-CLe9IfYi.js → wait-connect-DOIonmAv.js} +1 -1
- package/dist/assets/wallet-hidden-topbar-DKISAPb3.js +68 -0
- package/dist/assets/wizard-CrkxQgBY.js +8 -0
- package/dist/assets/{wizard-components-C10frai0.js → wizard-components-BzPyRFRt.js} +2 -2
- package/dist/assets/wrap-locale-BJF_SaOe.js +1 -0
- package/dist/assets/zh-DQQBhbva.js +1 -0
- package/dist/index.html +1 -1
- package/package.json +47 -47
- package/dist/assets/AdapterDayjs-C1bdndja.js +0 -3
- package/dist/assets/Google-BI3aC5vK.js +0 -27
- package/dist/assets/access-control-BL-PuDiR.js +0 -14
- package/dist/assets/actions-m1acuA78.js +0 -1
- package/dist/assets/add-component-core-BzMN094F.js +0 -768
- package/dist/assets/add-component-core-G0iZE90Q.css +0 -1
- package/dist/assets/add-resource-BRF-rYME.js +0 -1
- package/dist/assets/addon-yDIBSjIk.js +0 -14
- package/dist/assets/advanced-DEE0XFtQ.js +0 -14
- package/dist/assets/aigne-9evgyH7b.js +0 -10
- package/dist/assets/api-B24x7kOD.js +0 -1
- package/dist/assets/appearance-C8B414U2.js +0 -1
- package/dist/assets/audit-logs-qNutRhHx.js +0 -35
- package/dist/assets/authorize-CZSHuYdu.js +0 -1
- package/dist/assets/bind-account-QxLU_sxt.js +0 -1
- package/dist/assets/branding-Bk26INk9.js +0 -40
- package/dist/assets/branding-tR0gcoY_.js +0 -1
- package/dist/assets/bundle-avatar-2AQWR0ld.js +0 -1
- package/dist/assets/button-LwkniwV9.js +0 -1
- package/dist/assets/click-to-copy-Dk6ZAJOw.js +0 -1
- package/dist/assets/cloneDeep-rgNCMFod.js +0 -1
- package/dist/assets/component-BrZ1DWiw.js +0 -573
- package/dist/assets/config-cdtQwn5t.js +0 -53
- package/dist/assets/config-navigation-CZ9V7otK.js +0 -40
- package/dist/assets/config-space-CZRqkXsR.js +0 -1
- package/dist/assets/confirm-Ch-CAgUO.js +0 -7
- package/dist/assets/connect-BNkv99fz.js +0 -5
- package/dist/assets/connect-CadBIZOq.js +0 -5
- package/dist/assets/connect-i7rkK26L.js +0 -1
- package/dist/assets/connect-to-lX3lujSp.js +0 -1
- package/dist/assets/dashboard-CmJOnF0g.js +0 -103
- package/dist/assets/did-address-Cq16cwTy.js +0 -1
- package/dist/assets/domain-DHqSA0zl.js +0 -9
- package/dist/assets/domain-action-card-BsNaII7k.js +0 -28
- package/dist/assets/domains-BQ_Of9Oo.js +0 -1
- package/dist/assets/engine-D18zeIE7.js +0 -1
- package/dist/assets/exchange-passport-NOgYhNpm.js +0 -1
- package/dist/assets/form-text-input-BsCymY_c.js +0 -11
- package/dist/assets/fuel-DgzL5KSX.js +0 -32
- package/dist/assets/gen-access-key-BxnyhhCR.js +0 -1
- package/dist/assets/gen-simple-access-key-BJI-4yOF.js +0 -1
- package/dist/assets/get-safe-url-BVTaUfvO.js +0 -1
- package/dist/assets/home-Bibhtg_U.js +0 -1
- package/dist/assets/index-0ZSFNH-D.js +0 -1
- package/dist/assets/index-B5LvOF-F.css +0 -9
- package/dist/assets/index-BB8sYq-N.js +0 -16
- package/dist/assets/index-BhpNA6ar.js +0 -102
- package/dist/assets/index-BszSKE9L.js +0 -1
- package/dist/assets/index-CHkWO9t3.js +0 -120
- package/dist/assets/index-CaQuyP_U.js +0 -74
- package/dist/assets/index-CdsI3g5U.js +0 -1
- package/dist/assets/index-CsYL8tps.js +0 -1
- package/dist/assets/index-D8NN8LDz.js +0 -62
- package/dist/assets/index-DI4CWTXR.js +0 -1039
- package/dist/assets/index-DRYJ0xIl.js +0 -7
- package/dist/assets/index-D_ckidZn.js +0 -7
- package/dist/assets/index-DzdHYw6g.js +0 -4
- package/dist/assets/index-Ge2WhAk1.js +0 -124
- package/dist/assets/index-KUC3HPt0.js +0 -1
- package/dist/assets/index-TBM4hzrY.js +0 -81
- package/dist/assets/index-WjASWJcO.js +0 -93
- package/dist/assets/index-fC-FqmP3.js +0 -176
- package/dist/assets/index-gnjjKJuC.css +0 -1
- package/dist/assets/index-hBDzzv6I.js +0 -6
- package/dist/assets/index-iX-pnOjy.js +0 -1
- package/dist/assets/index-jILCQaR3.js +0 -11
- package/dist/assets/index-m_xRKGyG.js +0 -281
- package/dist/assets/index-mt_AKU_F.js +0 -77
- package/dist/assets/index-oucqu2vy.js +0 -41
- package/dist/assets/index-u9tqiWy4.js +0 -6
- package/dist/assets/index.esm-Co8ZxFyk.js +0 -1
- package/dist/assets/info-outline-rounded-BLwoUxyI.js +0 -1
- package/dist/assets/invitations-DK7oD-E6.js +0 -3
- package/dist/assets/invite-CdWfDz--.js +0 -1
- package/dist/assets/isURL-DMMDDAKA.js +0 -2
- package/dist/assets/issue-passport-yIqheTA0.js +0 -1
- package/dist/assets/item-BV3WfK17.js +0 -1
- package/dist/assets/landing-page-BDAr8Hmo.js +0 -1
- package/dist/assets/layout-DzZv-Jny.js +0 -29
- package/dist/assets/lexend-latin-400-normal-LvJAK7uG.woff2 +0 -0
- package/dist/assets/lexend-latin-600-normal-VdgXozci.woff2 +0 -0
- package/dist/assets/lexend-latin-ext-400-normal-BlThJp1_.woff2 +0 -0
- package/dist/assets/lexend-latin-ext-600-normal-rzWO8Q-F.woff2 +0 -0
- package/dist/assets/list-B6eMSw29.js +0 -2
- package/dist/assets/list-BWd3aUjb.js +0 -103
- package/dist/assets/localization-oLJXrcTA.js +0 -1
- package/dist/assets/log-BskdQbRf.js +0 -459
- package/dist/assets/logger-DhW79f4a.js +0 -1
- package/dist/assets/login-CfL0Uf6Y.js +0 -1
- package/dist/assets/login-oauth-callback-_6XAZMOE.js +0 -1
- package/dist/assets/lottie-react.esm-E4oo1jhL.js +0 -269
- package/dist/assets/lottie-web-4koyQiv_.js +0 -9
- package/dist/assets/omit-BeaKJrg9.js +0 -1
- package/dist/assets/open-window-Bi6zVDJd.js +0 -1
- package/dist/assets/over-due-invoice-payment-B7FQEnNH.js +0 -1
- package/dist/assets/overview-C7QghcRT.js +0 -116
- package/dist/assets/passport-B_eTMTmZ.js +0 -1
- package/dist/assets/preferences-DzDUGj-O.js +0 -1
- package/dist/assets/profile-embed-B3QUDkbU.js +0 -1
- package/dist/assets/provider-icon-D15U0Izg.js +0 -1
- package/dist/assets/publish-resource-DCIlLUPS.js +0 -1
- package/dist/assets/react-beautiful-dnd.esm-BwIgGfYj.js +0 -61
- package/dist/assets/runtime-BHekBabT.js +0 -1
- package/dist/assets/sanitize-yX1j-ggS.js +0 -2
- package/dist/assets/sdk-CJUhxOGJ.js +0 -1
- package/dist/assets/session-CZpDtsCZ.js +0 -1
- package/dist/assets/setup-CCvGdFDO.js +0 -24
- package/dist/assets/start-SeWUP0mo.js +0 -187
- package/dist/assets/status-MSXp_buG.js +0 -1
- package/dist/assets/studio-CRjDRBty.js +0 -6
- package/dist/assets/switch-control-npfWE_aC.js +0 -18
- package/dist/assets/team-YWd-FRKh.js +0 -146
- package/dist/assets/traffic-0IuWlrAD.js +0 -1
- package/dist/assets/transfer-DRS2VUAN.js +0 -16
- package/dist/assets/ua-parser-DP5omx3I.js +0 -1
- package/dist/assets/unsubscribe-xDow2Z6m.js +0 -1
- package/dist/assets/use-window-close-DUJmRIjM.js +0 -1
- package/dist/assets/useAsync-D0xh4Var.js +0 -1
- package/dist/assets/user-center-COnqQuqE.js +0 -125
- package/dist/assets/util-Dee1Ybp3.js +0 -1
- package/dist/assets/vendor-hooks-DQAdyHrE.js +0 -7
- package/dist/assets/vendor-mui-core-CKKG_1TN.js +0 -250
- package/dist/assets/vendor-mui-x-DHGvg6Bj.js +0 -31
- package/dist/assets/vendor-react-CTtPmzVP.js +0 -37
- package/dist/assets/vendor-utils-CUs2ebe7.js +0 -213
- package/dist/assets/vendor-ux-DjXlxcvL.js +0 -1560
- package/dist/assets/wizard-8Tk0iyxY.js +0 -8
- package/dist/assets/wrap-locale-CxYp8fAf.js +0 -1
- package/dist/assets/zh-BRjrClew.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as g}from"./index-
|
|
1
|
+
import{c as g}from"./index-Ca33rdd_.js";import{Q as E}from"./vendor-ux-Dl3wVbv_.js";import{b as y}from"./vendor-hooks-DAZ1H6Va.js";import{r as m}from"./vendor-react-DX7tU9aY.js";import{g as h}from"./get-safe-url-D4zRnTpF.js";import{e as T}from"./vendor-utils-BzQg432x.js";function $({messageType:n,onOpen:o,onClose:r}){const t=m.useRef(null),e=m.useRef(null),w=async s=>{setTimeout(()=>{try{r?.()}catch{}},10*1e3),t.current&&(clearInterval(e.current),t.current.close());const a=Math.random().toString(36).slice(2);t.current=window.open(`${g.WELLKNOWN_SERVICE_PATH_PREFIX}/open-window?key=${a}`,"_blank"),o?.(t.current),e.current=setInterval(()=>{(!t.current||t.current.closed)&&(t.current=null,clearInterval(e.current),setTimeout(()=>{r?.()},1100))},200),await Promise.resolve(s(t.current,c=>{if(!t.current){localStorage.setItem(`open-window-url-${a}`,JSON.stringify({url:c,time:Date.now()}));return}t.current.location.href=h(c,{allowDomains:null})}))},i=y(s=>{const{type:a,error:c}=s.data;t.current&&a===n&&c&&(E.error(c),r?.())});return m.useEffect(()=>(window.addEventListener("message",i),()=>{window.removeEventListener("message",i)}),[i]),w}const u={};function b(n){u[n]&&(clearTimeout(u[n]),delete u[n])}async function l(n,{interval:o=1e3,maxDuration:r=120*1e3,intervalFirst:t=4e3,timerKey:e=""}){u[e]&&clearTimeout(u[e]),await new Promise(s=>setTimeout(s,t));const w=Date.now(),i=async(s,a)=>{try{const c=await n();s(c)}catch(c){Date.now()-w>r?a(c):e?u[e]=setTimeout(()=>i(s,a),o):setTimeout(()=>i(s,a),o)}};return new Promise(i)}function j(){return Math.random().toString(36).slice(2)+Math.random().toString(36).slice(2)+`${Date.now()}`.slice(-6)}function v(n,{did:o,projectId:r,messageId:t}){return l(async()=>{const e=await n.getProject({input:{did:o,projectId:r,messageId:t}});if(!e?.project?.blockletDid)throw new Error("Connected store not found");return e.project.blockletDid},{timerKey:"connect-studio"})}function O(n,{did:o,projectId:r,storeId:t}){return l(async()=>{const e=await n.getProject({input:{did:o,projectId:r,messageId:""}});if(!e?.project?.connectedStores?.length)throw new Error("Connected store not found");if(!e.project.connectedStores.find(i=>i.storeId===t))throw new Error("Connected store not found")},{timerKey:`connect-store-${t}`})}function M(n,{did:o,projectId:r,endpointId:t}){return l(async()=>{const e=await n.getProject({input:{did:o,projectId:r,messageId:""}});if(!e?.project?.connectedEndpoints?.length)throw new Error("Connected endpoint not found");if(!e.project.connectedEndpoints.find(i=>i.endpointId===t))throw new Error("Connected endpoint not found")},{timerKey:`connect-store-${t}`})}function R(n,{did:o,refresh:r,t,providerName:e,values:w,timerKey:i}){return l(async()=>{const{blocklet:s}=await n.getBlocklet({input:{did:o}}),a=T(s,"settings.aigne",{}),{url:c,key:f,provider:p}=a||{},{key:d}=w;if(p==="aigneHub"){if(!c||!f)throw new Error(t("setting.aigne.connectTimeOut",{provider:e}));if(d&&d===f)throw new Error(t("setting.aigne.connectTimeOut",{provider:e}));await r(),clearTimeout(u[`connect-aigne-${o}`])}else{if(!d||d!==f)throw new Error(t("setting.aigne.connectTimeOut",{provider:e}));await r(),clearTimeout(u[`connect-aigne-${o}`])}},{timerKey:i,maxDuration:180*1e3})}export{j as a,v as b,b as c,O as d,M as e,$ as u,R as w};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import{G as ce,j as l,al as A,I as Re,Q as cn,aj as ln,H as un,P as dn,W as fn,U as hn,b$ as pn,T as L,X as x,Z as gn,a0 as mn,S as xn,R as ne,L as yn,bb as bt,c0 as ke,ap as bn,bq as wn,aT as Z,ak as vn,bM as kn,A as je,c1 as jn,b4 as Cn,a7 as In,aY as pe,b_ as Sn,aP as Tn,C as $n,aG as Ln,a4 as Ue,M as Be,c2 as Ve,c3 as An,aN as Qe,bW as En}from"./vendor-mui-core-D7t4vMS5.js";import{r as C,a as Pn}from"./vendor-react-DX7tU9aY.js";import{$ as wt,as as Mn,at as On,au as Rn,av as _n,i as vt,c as _,aw as Ke,ax as Nn,ay as zn}from"./index-Ca33rdd_.js";import{g as Fn}from"./theme-mode-toggle-BltDSXhy.js";import{Y as Ce,bn as Ze,a2 as oe,bo as qn,b4 as Ie,bp as Dn,P as _e,b7 as kt,b8 as Hn,af as jt,bq as Wn,Q as Ct,aO as Un,W as Bn,b6 as Vn,aR as Qn,an as Kn}from"./vendor-ux-Dl3wVbv_.js";import{i as It,b as R,a as P,s as Zn,x as Jn,r as Gn,o as Yn,v as Xn}from"./vendor-hooks-DAZ1H6Va.js";import{a8 as eo,F as J,z as N,a as St,n as Je}from"./vendor-utils-BzQg432x.js";import{u as to}from"./use-mobile-DgmmfWdl.js";import{p as no}from"./purify.es-HRjpPm7y.js";import{r as oo}from"./index-sb6EjUcD.js";function ro(e){try{return new URL(e).origin!==window.location.origin}catch{return!1}}function io(e,n){try{if(!ro(e))return e;const t=eo(e),r={utm_source:window.location.hostname,utm_medium:`${n}_nav`,utm_campaign:"default",utm_content:new URL(e).hostname,...t};return J(e,r)}catch(t){return console.error("Failed to generate UTM URL:",t),e}}const Tt=Object.freeze({left:0,top:0,width:16,height:16}),re=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),G=Object.freeze({...Tt,...re}),Se=Object.freeze({...G,body:"",hidden:!1}),so=Object.freeze({width:null,height:null}),$t=Object.freeze({...so,...re});function ao(e,n=0){const t=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(t===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(t!==e){let o=0;switch(t){case"%":o=25;break;case"deg":o=90}if(o){let i=parseFloat(e.slice(0,e.length-t.length));return isNaN(i)?0:(i=i/o,i%1===0?r(i):0)}}return n}const co=/[\s,]+/;function lo(e,n){n.split(co).forEach(t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const Lt={...$t,preserveAspectRatio:""};function Ge(e){const n={...Lt},t=(r,o)=>e.getAttribute(r)||o;return n.width=t("width",null),n.height=t("height",null),n.rotate=ao(t("rotate","")),lo(n,t("flip","")),n.preserveAspectRatio=t("preserveAspectRatio",t("preserveaspectratio","")),n}function uo(e,n){for(const t in Lt)if(e[t]!==n[t])return!0;return!1}const U=/^[a-z0-9]+(-[a-z0-9]+)*$/,Y=(e,n,t,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const s=o.pop(),c=o.pop(),u={provider:o.length>0?o[0]:r,prefix:c,name:s};return n&&!ee(u)?null:u}const i=o[0],a=i.split("-");if(a.length>1){const s={provider:r,prefix:a.shift(),name:a.join("-")};return n&&!ee(s)?null:s}if(t&&r===""){const s={provider:r,prefix:"",name:i};return n&&!ee(s,t)?null:s}return null},ee=(e,n)=>e?!!((e.provider===""||e.provider.match(U))&&(n&&e.prefix===""||e.prefix.match(U))&&e.name.match(U)):!1;function fo(e,n){const t={};!e.hFlip!=!n.hFlip&&(t.hFlip=!0),!e.vFlip!=!n.vFlip&&(t.vFlip=!0);const r=((e.rotate||0)+(n.rotate||0))%4;return r&&(t.rotate=r),t}function Ye(e,n){const t=fo(e,n);for(const r in Se)r in re?r in e&&!(r in t)&&(t[r]=re[r]):r in n?t[r]=n[r]:r in e&&(t[r]=e[r]);return t}function ho(e,n){const t=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function i(a){if(t[a])return o[a]=[];if(!(a in o)){o[a]=null;const s=r[a]&&r[a].parent,c=s&&i(s);c&&(o[a]=[s].concat(c))}return o[a]}return Object.keys(t).concat(Object.keys(r)).forEach(i),o}function po(e,n,t){const r=e.icons,o=e.aliases||Object.create(null);let i={};function a(s){i=Ye(r[s]||o[s],i)}return a(n),t.forEach(a),Ye(e,i)}function At(e,n){const t=[];if(typeof e!="object"||typeof e.icons!="object")return t;e.not_found instanceof Array&&e.not_found.forEach(o=>{n(o,null),t.push(o)});const r=ho(e);for(const o in r){const i=r[o];i&&(n(o,po(e,o,i)),t.push(o))}return t}const go={provider:"",aliases:{},not_found:{},...Tt};function ge(e,n){for(const t in n)if(t in e&&typeof e[t]!=typeof n[t])return!1;return!0}function Et(e){if(typeof e!="object"||e===null)return null;const n=e;if(typeof n.prefix!="string"||!e.icons||typeof e.icons!="object"||!ge(e,go))return null;const t=n.icons;for(const o in t){const i=t[o];if(!o.match(U)||typeof i.body!="string"||!ge(i,Se))return null}const r=n.aliases||Object.create(null);for(const o in r){const i=r[o],a=i.parent;if(!o.match(U)||typeof a!="string"||!t[a]&&!r[a]||!ge(i,Se))return null}return n}const ie=Object.create(null);function mo(e,n){return{provider:e,prefix:n,icons:Object.create(null),missing:new Set}}function z(e,n){const t=ie[e]||(ie[e]=Object.create(null));return t[n]||(t[n]=mo(e,n))}function Ne(e,n){return Et(n)?At(n,(t,r)=>{r?e.icons[t]=r:e.missing.add(t)}):[]}function xo(e,n,t){try{if(typeof t.body=="string")return e.icons[n]={...t},!0}catch{}return!1}function yo(e,n){let t=[];return(typeof e=="string"?[e]:Object.keys(ie)).forEach(o=>{(typeof o=="string"&&typeof n=="string"?[n]:Object.keys(ie[o]||{})).forEach(a=>{const s=z(o,a);t=t.concat(Object.keys(s.icons).map(c=>(o!==""?"@"+o+":":"")+a+":"+c))})}),t}let V=!1;function Pt(e){return typeof e=="boolean"&&(V=e),V}function Q(e){const n=typeof e=="string"?Y(e,!0,V):e;if(n){const t=z(n.provider,n.prefix),r=n.name;return t.icons[r]||(t.missing.has(r)?null:void 0)}}function Mt(e,n){const t=Y(e,!0,V);if(!t)return!1;const r=z(t.provider,t.prefix);return xo(r,t.name,n)}function Xe(e,n){if(typeof e!="object")return!1;if(typeof n!="string"&&(n=e.provider||""),V&&!n&&!e.prefix){let o=!1;return Et(e)&&(e.prefix="",At(e,(i,a)=>{a&&Mt(i,a)&&(o=!0)})),o}const t=e.prefix;if(!ee({provider:n,prefix:t,name:"a"}))return!1;const r=z(n,t);return!!Ne(r,e)}function bo(e){return!!Q(e)}function wo(e){const n=Q(e);return n?{...G,...n}:null}function vo(e){const n={loaded:[],missing:[],pending:[]},t=Object.create(null);e.sort((o,i)=>o.provider!==i.provider?o.provider.localeCompare(i.provider):o.prefix!==i.prefix?o.prefix.localeCompare(i.prefix):o.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const i=o.provider,a=o.prefix,s=o.name,c=t[i]||(t[i]=Object.create(null)),u=c[a]||(c[a]=z(i,a));let d;s in u.icons?d=n.loaded:a===""||u.missing.has(s)?d=n.missing:d=n.pending;const f={provider:i,prefix:a,name:s};d.push(f)}),n}function Ot(e,n){e.forEach(t=>{const r=t.loaderCallbacks;r&&(t.loaderCallbacks=r.filter(o=>o.id!==n))})}function ko(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const n=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!n.length)return;let t=!1;const r=e.provider,o=e.prefix;n.forEach(i=>{const a=i.icons,s=a.pending.length;a.pending=a.pending.filter(c=>{if(c.prefix!==o)return!0;const u=c.name;if(e.icons[u])a.loaded.push({provider:r,prefix:o,name:u});else if(e.missing.has(u))a.missing.push({provider:r,prefix:o,name:u});else return t=!0,!0;return!1}),a.pending.length!==s&&(t||Ot([e],i.id),i.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),i.abort))})}))}let jo=0;function Co(e,n,t){const r=jo++,o=Ot.bind(null,t,r);if(!n.pending.length)return o;const i={id:r,icons:n,callback:e,abort:o};return t.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(i)}),o}const Te=Object.create(null);function et(e,n){Te[e]=n}function $e(e){return Te[e]||Te[""]}function Io(e,n=!0,t=!1){const r=[];return e.forEach(o=>{const i=typeof o=="string"?Y(o,n,t):o;i&&r.push(i)}),r}var So={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function To(e,n,t,r){const o=e.resources.length,i=e.random?Math.floor(Math.random()*o):e.index;let a;if(e.random){let v=e.resources.slice(0);for(a=[];v.length>1;){const I=Math.floor(Math.random()*v.length);a.push(v[I]),v=v.slice(0,I).concat(v.slice(I+1))}a=a.concat(v)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const s=Date.now();let c="pending",u=0,d,f=null,h=[],p=[];typeof r=="function"&&p.push(r);function g(){f&&(clearTimeout(f),f=null)}function m(){c==="pending"&&(c="aborted"),g(),h.forEach(v=>{v.status==="pending"&&(v.status="aborted")}),h=[]}function y(v,I){I&&(p=[]),typeof v=="function"&&p.push(v)}function k(){return{startTime:s,payload:n,status:c,queriesSent:u,queriesPending:h.length,subscribe:y,abort:m}}function w(){c="failed",p.forEach(v=>{v(void 0,d)})}function j(){h.forEach(v=>{v.status==="pending"&&(v.status="aborted")}),h=[]}function $(v,I,E){const M=I!=="success";switch(h=h.filter(O=>O!==v),c){case"pending":break;case"failed":if(M||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){d=E,w();return}if(M){d=E,h.length||(a.length?S():w());return}if(g(),j(),!e.random){const O=e.resources.indexOf(v.resource);O!==-1&&O!==e.index&&(e.index=O)}c="completed",p.forEach(O=>{O(E)})}function S(){if(c!=="pending")return;g();const v=a.shift();if(v===void 0){if(h.length){f=setTimeout(()=>{g(),c==="pending"&&(j(),w())},e.timeout);return}w();return}const I={status:"pending",resource:v,callback:(E,M)=>{$(I,E,M)}};h.push(I),u++,f=setTimeout(S,e.rotate),t(v,n,I.callback)}return setTimeout(S),k}function Rt(e){const n={...So,...e};let t=[];function r(){t=t.filter(s=>s().status==="pending")}function o(s,c,u){const d=To(n,s,c,(f,h)=>{r(),u&&u(f,h)});return t.push(d),d}function i(s){return t.find(c=>s(c))||null}return{query:o,find:i,setIndex:s=>{n.index=s},getIndex:()=>n.index,cleanup:r}}function ze(e){let n;if(typeof e.resources=="string")n=[e.resources];else if(n=e.resources,!(n instanceof Array)||!n.length)return null;return{resources:n,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const le=Object.create(null),W=["https://api.simplesvg.com","https://api.unisvg.com"],te=[];for(;W.length>0;)W.length===1||Math.random()>.5?te.push(W.shift()):te.push(W.pop());le[""]=ze({resources:["https://api.iconify.design"].concat(te)});function tt(e,n){const t=ze(n);return t===null?!1:(le[e]=t,!0)}function ue(e){return le[e]}function $o(){return Object.keys(le)}function nt(){}const me=Object.create(null);function Lo(e){if(!me[e]){const n=ue(e);if(!n)return;const t=Rt(n),r={config:n,redundancy:t};me[e]=r}return me[e]}function _t(e,n,t){let r,o;if(typeof e=="string"){const i=$e(e);if(!i)return t(void 0,424),nt;o=i.send;const a=Lo(e);a&&(r=a.redundancy)}else{const i=ze(e);if(i){r=Rt(i);const a=e.resources?e.resources[0]:"",s=$e(a);s&&(o=s.send)}}return!r||!o?(t(void 0,424),nt):r.query(n,o,t)().abort}const ot="iconify2",K="iconify",Nt=K+"-count",rt=K+"-version",zt=36e5,Ao=168;function Le(e,n){try{return e.getItem(n)}catch{}}function Fe(e,n,t){try{return e.setItem(n,t),!0}catch{}}function it(e,n){try{e.removeItem(n)}catch{}}function Ae(e,n){return Fe(e,Nt,n.toString())}function Ee(e){return parseInt(Le(e,Nt))||0}const q={local:!0,session:!0},Ft={local:new Set,session:new Set};let qe=!1;function Eo(e){qe=e}let X=typeof window>"u"?{}:window;function qt(e){const n=e+"Storage";try{if(X&&X[n]&&typeof X[n].length=="number")return X[n]}catch{}q[e]=!1}function Dt(e,n){const t=qt(e);if(!t)return;const r=Le(t,rt);if(r!==ot){if(r){const s=Ee(t);for(let c=0;c<s;c++)it(t,K+c.toString())}Fe(t,rt,ot),Ae(t,0);return}const o=Math.floor(Date.now()/zt)-Ao,i=s=>{const c=K+s.toString(),u=Le(t,c);if(typeof u=="string"){try{const d=JSON.parse(u);if(typeof d=="object"&&typeof d.cached=="number"&&d.cached>o&&typeof d.provider=="string"&&typeof d.data=="object"&&typeof d.data.prefix=="string"&&n(d,s))return!0}catch{}it(t,c)}};let a=Ee(t);for(let s=a-1;s>=0;s--)i(s)||(s===a-1?(a--,Ae(t,a)):Ft[e].add(s))}function Ht(){if(!qe){Eo(!0);for(const e in q)Dt(e,n=>{const t=n.data,r=n.provider,o=t.prefix,i=z(r,o);if(!Ne(i,t).length)return!1;const a=t.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,a):a,!0})}}function Po(e,n){const t=e.lastModifiedCached;if(t&&t>=n)return t===n;if(e.lastModifiedCached=n,t)for(const r in q)Dt(r,o=>{const i=o.data;return o.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===n});return!0}function Mo(e,n){qe||Ht();function t(r){let o;if(!q[r]||!(o=qt(r)))return;const i=Ft[r];let a;if(i.size)i.delete(a=Array.from(i).shift());else if(a=Ee(o),!Ae(o,a+1))return;const s={cached:Math.floor(Date.now()/zt),provider:e.provider,data:n};return Fe(o,K+a.toString(),JSON.stringify(s))}n.lastModified&&!Po(e,n.lastModified)||Object.keys(n.icons).length&&(n.not_found&&(n=Object.assign({},n),delete n.not_found),t("local")||t("session"))}function st(){}function Oo(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,ko(e)}))}function Ro(e,n){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(n).sort():e.iconsToLoad=n,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let i;if(!o||!(i=$e(t)))return;i.prepare(t,r,o).forEach(s=>{_t(t,s,c=>{if(typeof c!="object")s.icons.forEach(u=>{e.missing.add(u)});else try{const u=Ne(e,c);if(!u.length)return;const d=e.pendingIcons;d&&u.forEach(f=>{d.delete(f)}),Mo(e,c)}catch(u){console.error(u)}Oo(e)})})}))}const De=(e,n)=>{const t=Io(e,!0,Pt()),r=vo(t);if(!r.pending.length){let c=!0;return n&&setTimeout(()=>{c&&n(r.loaded,r.missing,r.pending,st)}),()=>{c=!1}}const o=Object.create(null),i=[];let a,s;return r.pending.forEach(c=>{const{provider:u,prefix:d}=c;if(d===s&&u===a)return;a=u,s=d,i.push(z(u,d));const f=o[u]||(o[u]=Object.create(null));f[d]||(f[d]=[])}),r.pending.forEach(c=>{const{provider:u,prefix:d,name:f}=c,h=z(u,d),p=h.pendingIcons||(h.pendingIcons=new Set);p.has(f)||(p.add(f),o[u][d].push(f))}),i.forEach(c=>{const{provider:u,prefix:d}=c;o[u][d].length&&Ro(c,o[u][d])}),n?Co(n,r,i):st},_o=e=>new Promise((n,t)=>{const r=typeof e=="string"?Y(e,!0):e;if(!r){t(e);return}De([r||e],o=>{if(o.length&&r){const i=Q(r);if(i){n({...G,...i});return}}t(e)})});function No(e){try{const n=typeof e=="string"?JSON.parse(e):e;if(typeof n.body=="string")return{...n}}catch{}}function zo(e,n){const t=typeof e=="string"?Y(e,!0,!0):null;if(!t){const i=No(e);return{value:e,data:i}}const r=Q(t);if(r!==void 0||!t.prefix)return{value:e,name:t,data:r};const o=De([t],()=>n(e,t,Q(t)));return{value:e,name:t,loading:o}}function xe(e){return e.hasAttribute("inline")}let Wt=!1;try{Wt=navigator.vendor.indexOf("Apple")===0}catch{}function Fo(e,n){switch(n){case"svg":case"bg":case"mask":return n}return n!=="style"&&(Wt||e.indexOf("<a")===-1)?"svg":e.indexOf("currentColor")===-1?"bg":"mask"}const qo=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Do=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Pe(e,n,t){if(n===1)return e;if(t=t||100,typeof e=="number")return Math.ceil(e*n*t)/t;if(typeof e!="string")return e;const r=e.split(qo);if(r===null||!r.length)return e;const o=[];let i=r.shift(),a=Do.test(i);for(;;){if(a){const s=parseFloat(i);isNaN(s)?o.push(i):o.push(Math.ceil(s*n*t)/t)}else o.push(i);if(i=r.shift(),i===void 0)return o.join("");a=!a}}const Ho=e=>e==="unset"||e==="undefined"||e==="none";function Ut(e,n){const t={...G,...e},r={...$t,...n},o={left:t.left,top:t.top,width:t.width,height:t.height};let i=t.body;[t,r].forEach(g=>{const m=[],y=g.hFlip,k=g.vFlip;let w=g.rotate;y?k?w+=2:(m.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),m.push("scale(-1 1)"),o.top=o.left=0):k&&(m.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),m.push("scale(1 -1)"),o.top=o.left=0);let j;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:j=o.height/2+o.top,m.unshift("rotate(90 "+j.toString()+" "+j.toString()+")");break;case 2:m.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:j=o.width/2+o.left,m.unshift("rotate(-90 "+j.toString()+" "+j.toString()+")");break}w%2===1&&(o.left!==o.top&&(j=o.left,o.left=o.top,o.top=j),o.width!==o.height&&(j=o.width,o.width=o.height,o.height=j)),m.length&&(i='<g transform="'+m.join(" ")+'">'+i+"</g>")});const a=r.width,s=r.height,c=o.width,u=o.height;let d,f;a===null?(f=s===null?"1em":s==="auto"?u:s,d=Pe(f,c/u)):(d=a==="auto"?c:a,f=s===null?Pe(d,u/c):s==="auto"?u:s);const h={},p=(g,m)=>{Ho(m)||(h[g]=m.toString())};return p("width",d),p("height",f),h.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+u.toString(),{attributes:h,body:i}}const Wo=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let se=Wo();function Uo(e){se=e}function Bo(){return se}function Vo(e,n){const t=ue(e);if(!t)return 0;let r;if(!t.maxURL)r=0;else{let o=0;t.resources.forEach(a=>{o=Math.max(o,a.length)});const i=n+".json?icons=";r=t.maxURL-o-t.path.length-i.length}return r}function Qo(e){return e===404}const Ko=(e,n,t)=>{const r=[],o=Vo(e,n),i="icons";let a={type:i,provider:e,prefix:n,icons:[]},s=0;return t.forEach((c,u)=>{s+=c.length+1,s>=o&&u>0&&(r.push(a),a={type:i,provider:e,prefix:n,icons:[]},s=c.length),a.icons.push(c)}),r.push(a),r};function Zo(e){if(typeof e=="string"){const n=ue(e);if(n)return n.path}return"/"}const Jo=(e,n,t)=>{if(!se){t("abort",424);return}let r=Zo(n.provider);switch(n.type){case"icons":{const i=n.prefix,s=n.icons.join(","),c=new URLSearchParams({icons:s});r+=i+".json?"+c.toString();break}case"custom":{const i=n.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:t("abort",400);return}let o=503;se(e+r).then(i=>{const a=i.status;if(a!==200){setTimeout(()=>{t(Qo(a)?"abort":"next",a)});return}return o=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?t("abort",i):t("next",o)});return}setTimeout(()=>{t("success",i)})}).catch(()=>{t("next",o)})},Go={prepare:Ko,send:Jo};function at(e,n){switch(e){case"local":case"session":q[e]=n;break;case"all":for(const t in q)q[t]=n;break}}const ye="data-style";let Bt="";function Yo(e){Bt=e}function ct(e,n){let t=Array.from(e.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(ye));t||(t=document.createElement("style"),t.setAttribute(ye,ye),e.appendChild(t)),t.textContent=":host{display:inline-block;vertical-align:"+(n?"-0.125em":"0")+"}span,svg{display:block}"+Bt}function Vt(){et("",Go),Pt(!0);let e;try{e=window}catch{}if(e){if(Ht(),e.IconifyPreload!==void 0){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!Xe(o))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const r in t){const o="IconifyProviders["+r+"] is invalid.";try{const i=t[r];if(typeof i!="object"||!i||i.resources===void 0)continue;tt(r,i)||console.error(o)}catch{console.error(o)}}}}return{enableCache:t=>at(t,!0),disableCache:t=>at(t,!1),iconExists:bo,getIcon:wo,listIcons:yo,addIcon:Mt,addCollection:Xe,calculateSize:Pe,buildIcon:Ut,loadIcons:De,loadIcon:_o,addAPIProvider:tt,appendCustomStyle:Yo,_api:{getAPIConfig:ue,setAPIModule:et,sendAPIQuery:_t,setFetch:Uo,getFetch:Bo,listAPIProviders:$o}}}function Qt(e,n){let t=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in n)t+=" "+r+'="'+n[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+t+">"+e+"</svg>"}function Xo(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function er(e){return"data:image/svg+xml,"+Xo(e)}function tr(e){return'url("'+er(e)+'")'}const Me={"background-color":"currentColor"},Kt={"background-color":"transparent"},lt={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},ut={"-webkit-mask":Me,mask:Me,background:Kt};for(const e in ut){const n=ut[e];for(const t in lt)n[e+"-"+t]=lt[t]}function dt(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}function nr(e,n,t){const r=document.createElement("span");let o=e.body;o.indexOf("<a")!==-1&&(o+="<!-- "+Date.now()+" -->");const i=e.attributes,a=Qt(o,{...i,width:n.width+"",height:n.height+""}),s=tr(a),c=r.style,u={"--svg":s,width:dt(i.width),height:dt(i.height),...t?Me:Kt};for(const d in u)c.setProperty(d,u[d]);return r}let B;function or(){try{B=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{B=null}}function rr(e){return B===void 0&&or(),B?B.createHTML(e):e}function ir(e){const n=document.createElement("span"),t=e.attributes;let r="";t.width||(r="width: inherit;"),t.height||(r+="height: inherit;"),r&&(t.style=r);const o=Qt(e.body,t);return n.innerHTML=rr(o),n.firstChild}function ft(e,n){const t=n.icon.data,r=n.customisations,o=Ut(t,r);r.preserveAspectRatio&&(o.attributes.preserveAspectRatio=r.preserveAspectRatio);const i=n.renderedMode;let a;i==="svg"?a=ir(o):a=nr(o,{...G,...t},i==="mask");const s=Array.from(e.childNodes).find(c=>{const u=c.tagName&&c.tagName.toUpperCase();return u==="SPAN"||u==="SVG"});s?a.tagName==="SPAN"&&s.tagName===a.tagName?s.setAttribute("style",a.getAttribute("style")):e.replaceChild(a,s):e.appendChild(a)}function ht(e,n,t){const r=t&&(t.rendered?t:t.lastRender);return{rendered:!1,inline:n,icon:e,lastRender:r}}function sr(e="iconify-icon"){let n,t;try{n=window.customElements,t=window.HTMLElement}catch{return}if(!n||!t)return;const r=n.get(e);if(r)return r;const o=["icon","mode","inline","width","height","rotate","flip"],i=class extends t{_shadowRoot;_state;_checkQueued=!1;constructor(){super();const s=this._shadowRoot=this.attachShadow({mode:"open"}),c=xe(this);ct(s,c),this._state=ht({value:""},c),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(s){if(s==="inline"){const c=xe(this),u=this._state;c!==u.inline&&(u.inline=c,ct(this._shadowRoot,c))}else this._queueCheck()}get icon(){const s=this.getAttribute("icon");if(s&&s.slice(0,1)==="{")try{return JSON.parse(s)}catch{}return s}set icon(s){typeof s=="object"&&(s=JSON.stringify(s)),this.setAttribute("icon",s)}get inline(){return xe(this)}set inline(s){s?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const s=this._state;if(s.rendered){const c=this._shadowRoot;if(s.renderedMode==="svg")try{c.lastChild.setCurrentTime(0);return}catch{}ft(c,s)}}get status(){const s=this._state;return s.rendered?"rendered":s.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const s=this._state,c=this.getAttribute("icon");if(c!==s.icon.value){this._iconChanged(c);return}if(!s.rendered)return;const u=this.getAttribute("mode"),d=Ge(this);(s.attrMode!==u||uo(s.customisations,d))&&this._renderIcon(s.icon,d,u)}_iconChanged(s){const c=zo(s,(u,d,f)=>{const h=this._state;if(h.rendered||this.getAttribute("icon")!==u)return;const p={value:u,name:d,data:f};p.data?this._gotIconData(p):h.icon=p});c.data?this._gotIconData(c):this._state=ht(c,this._state.inline,this._state)}_gotIconData(s){this._checkQueued=!1,this._renderIcon(s,Ge(this),this.getAttribute("mode"))}_renderIcon(s,c,u){const d=Fo(s.data.body,u),f=this._state.inline;ft(this._shadowRoot,this._state={rendered:!0,icon:s,inline:f,customisations:c,attrMode:u,renderedMode:d})}};o.forEach(s=>{s in i.prototype||Object.defineProperty(i.prototype,s,{get:function(){return this.getAttribute(s)},set:function(c){c!==null?this.setAttribute(s,c):this.removeAttribute(s)}})});const a=Vt();for(const s in a)i[s]=i.prototype[s]=a[s];return n.define(e,i),i}const ar=sr()||Vt(),{enableCache:pi,disableCache:gi,iconExists:mi,getIcon:xi,listIcons:yi,addIcon:bi,addCollection:wi,calculateSize:vi,buildIcon:ki,loadIcons:ji,loadIcon:Ci,addAPIProvider:Ii,_api:Si}=ar,de=(e,n,t="children")=>e.map(r=>Array.isArray(r[t])?n({...r,[t]:de(r[t],n,t)}):n(r)),Ti=(e,n="children")=>{const t=[];return de(e,r=>t.push(r),n),t},He=(e,n,t="children")=>e.map(r=>({...r})).filter(r=>{const o=r[t];if(Array.isArray(o)){const a=He(o,n,t);r[t]=a?.length?a:void 0}const i={filteredChildren:r[t],isLeaf:!o?.length};return n(r,i)}),cr=e=>/^https?:\/\//.test(e),lr=e=>/^mailto:/i.test(e.trim()),ur=e=>{if(!e||!e?.startsWith("/"))return!1;const n=o=>o.endsWith("/")?o:`${o}/`,t=n(window.location.pathname),r=n(new URL(e,window.location.origin).pathname);return t.startsWith(r)},$i=(e=[])=>{const n=e.map((t,r)=>({path:t,index:r})).filter(t=>ur(t.path));return n?.length?n.slice(1).reduce((t,r)=>t.path.length>=r.path.length?t:r,n[0]).index:-1},Li=(e,n={})=>{const{columns:t=1,breakInside:r=!1,groupHeight:o=48,itemHeight:i=24,childrenKey:a="items"}=n,s=e.length,c=e.reduce((m,y)=>m+o+(y[a]?.length||0)*i,0),u=Math.ceil(c/t),d=[[]];let f=0,h=0;const p=u*.2,g=m=>h>u-p&&f<t-1&&h+m>u+p;return e.forEach(m=>{const y=o+(m[a]?.length||0)*i;r&&g(o)&&(f++,h=0,d[f]=[]),!r&&h>0&&(s<=t||g(y))&&(f++,h=0,d[f]=[]),d[f].push({...m,group:!0}),h+=o,m[a]&&m[a].forEach(k=>{r&&g(i)&&(f++,h=0,d[f]=[]),d[f].push({...k,group:!1}),h+=i})}),d},Ai=window?.blocklet?.groupPrefix||window?.blocklet?.prefix||"/",dr=e=>{const n={...e},t=e?.background;return typeof t=="string"?n.background={header:t,footer:t,default:t}:t&&typeof t=="object"&&(n.background={header:t.header||t.default,footer:t.footer||t.default,default:t.default}),n},fr=(e,n="en",t="en")=>{if(typeof e=="string"){if(cr(e)){const o=new URL(e);return o.searchParams.set("locale",n),o.href}if(lr(e))return e;const r=new URL(e,window.location.origin);return r.searchParams.set("locale",n),r.pathname+r.search}return typeof e=="object"?e[n]||e[t]||e.en:e},hr=({navigation:e,locale:n,defaultLocale:t,section:r="header"})=>{if(!e?.length)return e;const o=(i,a)=>i&&typeof i=="object"?i[a]||i[t]||i.en:i;return de(e,i=>({...i,title:o(i.title,n),description:o(i.description,n),link:io(i.items?.length?i.link:fr(i.link,n,t),r),_rawLink:i.link}),"items")},pr=e=>de(e,n=>n.role?{...n,role:Array.isArray(n.role)?n.role:[n.role]}:n,"items"),gr=e=>{if(!e?.length)return null;const n=pr(e),t={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return n.forEach(r=>{r.section?Array.isArray(r.section)?r.section.forEach(o=>{t[o]?.push(r)}):typeof r.section=="string"&&t[r.section]?.push(r):t.header.push(r)}),t},Ei=e=>{if(!e)return null;const n={...e};return n.theme=dr(n.theme),n.navigation=gr(mr(n.navigation)),n},mr=(e=[])=>He(e,(n,t)=>!!n.link||t.filteredChildren?.length,"items"),xr=(e,n)=>He(e,(t,r)=>{const o=!t.role||n&&(t.role.includes(n)||t.role.includes("guest"));return r.isLeaf?o:o&&r.filteredChildren?.length},"items"),yr={top:-960,width:960,height:960,body:'<path fill="currentColor" d="M510-600v-210q0-12.75 8.625-21.375T540-840h270q12.75 0 21.375 8.625T840-810v210q0 12.75-8.625 21.375T810-570H540q-12.75 0-21.375-8.625T510-600M120-480v-330q0-12.75 8.625-21.375T150-840h270q12.75 0 21.375 8.625T450-810v330q0 12.75-8.625 21.375T420-450H150q-12.75 0-21.375-8.625T120-480m390 330v-330q0-12.75 8.625-21.375T540-510h270q12.75 0 21.375 8.625T840-480v330q0 12.75-8.625 21.375T810-120H540q-12.75 0-21.375-8.625T510-150m-390 0v-210q0-12.75 8.625-21.375T150-390h270q12.75 0 21.375 8.625T450-360v210q0 12.75-8.625 21.375T420-120H150q-12.75 0-21.375-8.625T120-150m60-360h210v-270H180zm390 330h210v-270H570zm0-450h210v-150H570zM180-180h210v-150H180zm210-150"/>'},br={width:24,height:24,body:'<path fill="currentColor" d="M15.95 12.3L11.7 8.05q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375t.212-.325l4.25-4.25q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.25 4.25q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.25 4.25q-.15.15-.325.213t-.375.062q-.2 0-.375-.062t-.325-.213ZM3 10V4q0-.425.288-.713T4 3h6q.425 0 .713.288T11 4v6q0 .425-.288.713T10 11H4q-.425 0-.713-.288T3 10Zm10 10v-6q0-.425.288-.713T14 13h6q.425 0 .713.288T21 14v6q0 .425-.288.713T20 21h-6q-.425 0-.713-.288T13 20ZM3 20v-6q0-.425.288-.713T4 13h6q.425 0 .713.288T11 14v6q0 .425-.288.713T10 21H4q-.425 0-.713-.288T3 20ZM5 9h4V5H5v4Zm11.675 1.2L19.5 7.375L16.675 4.55L13.85 7.375l2.825 2.825ZM15 19h4v-4h-4v4ZM5 19h4v-4H5v4ZM9 9Zm4.85-1.625ZM9 15Zm6 0Z"/>'};function wr({session:e,locale:n="zh",size:t=24,popperType:r="click",sx:o,...i}){const a=window?.blocklet||{},s=(a.navigation||[]).filter(p=>p.section==="sessionManager"&&!["/sessionManager"].includes(p.id)).filter(p=>!!(p?.role||[]).includes(e?.user?.role||"guest")).map(p=>{const g=(a?.componentMountPoints||[]).find(m=>p.component===m.name);return{...p,component:g}}),c=ce(),u=C.useRef(null),d=It({open:!1}),f=R((p=!d.open)=>{d.open=p}),h=r==="hover"?{onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1)}:{onClick:()=>f()};return s.length===0||!e?.user?null:l.jsxs(A,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",...o},...i,...h,children:[l.jsx(Re,{size:"medium",ref:u,children:l.jsx(Ce,{icon:yr,fontSize:t,style:{transform:"scale(1.08)"}})}),l.jsx(cn,{open:d.open,anchorEl:u.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:p})=>l.jsx(ln,{onClickAway:g=>{g.preventDefault(),g.stopPropagation(),f(!1)},children:l.jsx(un,{...p,timeout:350,children:l.jsxs(dn,{variant:"outlined",sx:{borderRadius:1.5,width:350,maxWidth:"90vw",p:2},children:[l.jsx(fn,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 100px)",gridAutoRows:"minmax(100px, max-content)",justifyContent:"space-between",maxHeight:350,overflowY:"auto",p:0},children:s.map(g=>l.jsx(hn,{disablePadding:!0,children:l.jsxs(pn,{href:Ze(g.link,n),sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:1,"&:hover":{backgroundColor:"action.hover"}},children:[g?.component?.did?l.jsx(A,{component:"img",src:`${oe}/blocklet/logo-bundle/${g.component.did}`,sx:{borderRadius:1,width:50,height:50,objectFit:"contain"},alt:"SessionBlocklet component icon"}):l.jsx(Ce,{fontSize:50,icon:g.icon||br,color:c.palette.text.secondary}),l.jsx(L,{sx:{fontSize:"12px",color:"text.primary",textAlign:"center",lineHeight:"normal"},children:Ze(g.title,n)})]})},g.id))}),l.jsx(qn,{session:e,children:l.jsx(Ie,{variant:"outlined",fullWidth:!0,href:Dn,sx:{mt:1},children:n==="zh"?"管理":"Manage"})})]})})})})]})}const Pi=x.shape({appLogo:x.node,appName:x.string,theme:x.shape({background:x.string}),enableConnect:x.bool,enableLocale:x.bool,navigation:x.arrayOf(x.shape({title:x.oneOfType([x.string,x.object]),link:x.oneOfType([x.string,x.object]),icon:x.string,items:x.arrayOf(x.shape({title:x.oneOfType([x.string,x.object]),link:x.oneOfType([x.string,x.object])}))}))}),vr=x.shape({showText:x.bool,showRole:x.bool,switchDid:x.bool,switchProfile:x.bool,switchPassport:x.bool,disableLogout:x.bool,onLogin:x.func,onLogout:x.func,onSwitchDid:x.func,onSwitchProfile:x.func,onSwitchPassport:x.func,menu:x.array,menuRender:x.func,dark:x.bool,size:x.number,profileUrl:x.string}),kr=["admin","owner"],jr=e=>e.endsWith(".ip.abtnet.io"),Cr=e=>e.endsWith(".did.abtnet.io"),Ir={en:{guest:{title:"Notice: You are using a temporary domain",description:"You are accessing this site through a temporary domain. For a better experience, please contact the site administrator to configure a custom domain. Using a custom domain not only makes access more convenient but also ensures your access is more secure."},owner:{title:"Enhance Your Website Security",description:"Dear administrator, we recommend configuring your custom domain immediately, which will:",benefits1:"Automatically obtain HTTPS certificates to ensure secure data transmission",benefits2:"Create an exclusive brand image and increase website credibility",benefits3:"Get a shorter, more memorable access address",benefits4:"Provide visitors with a more professional experience",benefits5:"Domain configuration takes just minutes to complete, taking your website to the next level!"},skip:"Remind Me Later",bindDomain:"Configure Domain"},zh:{guest:{title:"温馨提示:当前使用的是临时域名",description:"您正在通过临时域名访问本站点。为了获得更好的访问体验,请联系站点管理员配置自定义域名。使用自定义域名不仅访问更便捷,还能确保您的访问更加安全。"},owner:{title:"提升网站安全性与专业度",description:"尊敬的管理员,我们建议您尽快配置自定义域名,这样可以:",benefits1:"自动获取 HTTPS 证书,确保数据传输安全",benefits2:"打造专属品牌形象,提升网站可信度",benefits3:"获得更简短、易记的访问地址",benefits4:"为访客提供更专业的访问体验",benefits5:"只需几分钟即可完成域名配置,全面提升您的网站品质!"},skip:"稍后提醒",bindDomain:"配置域名"}},Sr=1e3*60*60*24*30,pt=".well-known/service/admin/domains";function Zt({locale:e="en",session:n={}}){const t=n?.user,r=to(),[o,i]=C.useState(()=>{const h=window.localStorage.getItem("domain-warning-skip");if(!h)return!0;const p=+new Date,g=+new Date(h);return p-g>Sr}),a=R((h,p={})=>_e(Ir,h,e,"en",p)),s=C.useMemo(()=>{try{const{hostname:h}=new URL(window.location.href);return h}catch{return""}},[]),c=C.useMemo(()=>[a("owner.benefits1"),a("owner.benefits2"),a("owner.benefits3"),a("owner.benefits4"),a("owner.benefits5")],[a]),u=C.useCallback(()=>{window.localStorage.setItem("domain-warning-skip",new Date().toISOString()),i(!1)},[]),d=C.useCallback(()=>{const h=N(window.location.origin,pt);h.startsWith("http")&&window.open(h,"_blank"),i(!1)},[]),f=t?.role&&kr.includes(t.role);return window.location.href.includes(pt)||r||!jr(s)&&!Cr(s)?null:l.jsxs(gn,{open:o,disableEscapeKeyDown:!0,fullWidth:!0,maxWidth:"sm",onClose:()=>i(!1),children:[l.jsxs(mn,{sx:{padding:"20px !important"},children:[l.jsx(L,{sx:{fontSize:"20px",fontWeight:"500"},children:a(f?"owner.title":"guest.title")}),l.jsx(L,{sx:{marginTop:"20px",fontSize:"14px",color:"text.secondary"},children:a(f?"owner.description":"guest.description")}),f&&l.jsx(A,{component:"ul",children:c.map(h=>l.jsx(L,{component:"li",sx:{fontSize:"14px",color:"text.secondary"},children:h},h))})]}),l.jsxs(xn,{sx:{px:"12px !important"},children:[l.jsx(ne,{onClick:u,children:a("skip")}),f&&l.jsx(ne,{variant:"contained",onClick:d,children:a("bindDomain")})]})]})}Zt.propTypes={locale:x.string,session:x.object};const Tr=e=>C.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.251 2.5c-2.576-.006-4.747 2.1-4.766 4.506v5.784c0 .793-.084 1.778-.58 2.71h12.19c-.496-.932-.58-1.917-.58-2.711V7.01c-.035-2.403-2.21-4.502-4.797-4.508L9.25 2.5zM17.015 7v5.789c0 .79.1 1.562.53 2.219l.287.438c.436.664-.033 1.554-.817 1.554H2.985c-.785 0-1.255-.89-.818-1.554l.287-.438c.43-.657.53-1.428.53-2.218V7c.024-3.291 2.927-6.008 6.27-6l1.467.003c3.344.008 6.254 2.706 6.294 5.998zM11.06 18.06A1.5 1.5 0 0 0 11.5 17H13a3 3 0 0 1-6 0h1.5a1.5 1.5 0 0 0 2.56 1.06z",fill:"currentColor"})),T={};function $r(e="admin"){let n="/";!window?.blocklet&&window?.env?.apiPrefix&&(n=window.env.apiPrefix);const t=N(n,oe,e);return new Mn.WsClient(t,{heartbeatIntervalMs:100*1e3})}function Lr(e="admin"){return T[e]||(T[e]=$r(e)),T[e]}const Ar=(e="admin")=>{const n=C.use(wt),{session:t}=n??{},r=P(()=>t.user?.did,[t.user]),o=Zn(r);return Jn(()=>{Object.keys(T).forEach(i=>{T[i]?.isConnected()&&T[i]?.disconnect(),delete T[i]})}),r?(o&&o!==r&&Object.keys(T).forEach(i=>{T[i]&&(T[i].isConnected()&&T[i].disconnect(),T[i].connect())}),!T[e]&&t.user&&(T[e]=Lr(e),T[e].connect()),T[e]):null},Er={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0"/><path d="m9 12l2 2l4-4"/></g>'},Pr={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0m9-3v4m0 3v.01"/>'},Mr={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 21a9 9 0 0 0 9-9a9 9 0 0 0-9-9a9 9 0 0 0-9 9a9 9 0 0 0 9 9zM9 8l6 8m0-8l-6 8"/>'};function Or(){const e=ce();return[...e.breakpoints.keys].reverse().reduce((n,t)=>{const r=yn(e.breakpoints.up(t));return!n&&r?t:n},null)||"xs"}var be,gt;function Rr(){if(gt)return be;gt=1;const{joinURL:e,withQuery:n}=On(),{toTypeInfo:t}=oo(),{isEVMChain:r,getExplorerUrl:o}=Rn(),{arcChainConfig:i}=_n(),a={ROLE_ROLLUP:"number"},s="https://explorer.abtnetwork.io/explorer/";return be=function({hash:u,asset:d,rollup:f,address:h,token:p,stake:g,chainId:m=""}){if(r(m)){const j=o(m);return u?e(j,`tx/${u}`):d?e(j,`token/${d}`):e(j,`address/${h}`)}const k=i[m]?.defaultRPC,w=k?`${k}`:void 0;return f&&t(f).role===a.ROLE_ROLLUP?u?n(e(s,`rollups/${f}/moves/${u}`),{host:w}):n(e(s,`rollups/${f}`),{host:w}):d?n(e(s,`assets/${d}`),{host:w}):u?n(e(s,`txs/${u}`),{host:w}):p?n(e(s,`tokens/${p}/tx`),{host:w}):g?n(e(s,`stakes/${g}`),{host:w}):n(e(s,`accounts/${h}`),{host:w})},be}var we,mt;function Jt(){return mt||(mt=1,we={isSameAddr:(e,n)=>String(e).toLowerCase()===String(n).toLowerCase()}),we}var ve,xt;function _r(){if(xt)return ve;xt=1;const e=Rr(),{isSameAddr:n}=Jt();class t{constructor({type:c,did:u,chainId:d,text:f}){this.text=f,this.did=u,this.type=c,this.chainId=d}}const r=s=>{const c=[];try{let u=0;const d=/<(.+?)\(?[tx|nft|token|stake|did|dapp|link]+[:](.+?)\)?>/gi,f=s.matchAll(d);for(const h of f){const p=/\([tx|nft|token|stake|did|dapp|link]+[:](.+?)\)/gi,g=h[0],m=h.index||u,y=m+g.length;if([...g.matchAll(p)].length>1)return[s];let w="";const j=p.exec(g);let $="";if(j){const M=j[0];w=g.replace(M,"").replace(/^</,"").replace(/(>)$/,""),$=M.replace(/\)$/,"").replace(/^\(/,"")}else $=g;const S=$.split(":"),v=(S[0]||"").replace(/^</,"").replace(/^\(/,"").toUpperCase(),I=(S[1]||"").replace(/>$/,"").replace(/\)$/,""),E=(S[S.length-1]||"").replace(/>$/,"").replace(/\)$/,"");c.push(s.substring(u,m)),c.push(new t({type:v,chainId:I,did:E,text:w||v})),u=y}return u<s.length&&c.push(s.substring(u)),c}catch(u){return console.error(u?.message),[s]}},o=s=>{let c;const{type:u,chainId:d,did:f}=s;return n(u,"link")?c=`${d}:${f}`:n(u,"tx")?c=e({hash:f,chainId:d}):n(u,"stake")?c=e({stake:f,chainId:d}):n(u,"nft")?c=e({asset:f,chainId:d}):n(u,"token")?c=e({token:f,chainId:d}):n(u,"did")&&(c=e({address:f,chainId:d})),c};return ve={toClickableSpan:(s,c=!0)=>r(s).map(d=>{if(d instanceof t){if(c){const f=o(d),{type:h,chainId:p,did:g}=d;return n(h,"dapp")?`<em style="font-weight:bold;" data-type="${h}" data-chain-id="${p}" data-did="${g}">${d.text}</em>`:f?`<a target="_blank" rel="noopener noreferrer" style="color:#4598fa;font-weight:bold;" href="${f}">${d.text}</a>`:`<em style="font-weight:bold;" data-type="${h}" data-chain-id="${p}" data-did="${g}">${d.text}</em>`}return d.text}return d}).join(""),toTextList:r,toSlackLink:s=>r(s).map(u=>u instanceof t?`<${o(u)}|${u.text}>`:u.replace(/:\n/g,": ")).join(""),Link:t,getLink:o},ve}var ae=_r(),Gt=Jt();const Nr=e=>!St(e.activity)&&!!e.activity?.type&&!!e.activity?.actor,zr=e=>{if(!e)return null;const{meta:n,target:t}=e;return{metaLink:n?.id,targetLink:t?.id}},Fr=async(e,n)=>{try{return await vt().user.getProfileUrl({did:e,locale:n})}catch(t){console.error(t);return}},qr=async(e,n)=>{const{type:t,did:r}=e;return Gt.isSameAddr(t,"did")&&await Fr(r,n)||ae.getLink(e)},Dr=async(e,n,t=!0)=>{const r=ae.toTextList(e);return await Promise.all(r.map(async o=>{if(o instanceof ae.Link){if(t){const i=await qr(o,n),{type:a,chainId:s,did:c}=o;return Gt.isSameAddr(a,"dapp")?`<em class="dapp" data-type="${a}" data-chain-id="${s}" data-did="${c}">${o.text}</em>`:i?`<a target="_blank" rel="noopener noreferrer" class="link" href="${i}">${o.text}</a>`:`<em class="common" data-type="${a}" data-chain-id="${s}" data-did="${c}">${o.text}</em>`}return o.text}return o})).then(o=>o.join(""))},Hr=e=>no.sanitize(e,{ALLOWED_ATTR:["href","target","rel","class","id","style"]}),Wr={comment:(e,n)=>n&&n>1?l.jsxs(l.Fragment,{children:["left ",n," comments on your ",e]}):l.jsxs(l.Fragment,{children:["commented on your ",e]}),like:e=>l.jsxs(l.Fragment,{children:["liked your ",e]}),follow:()=>l.jsx(l.Fragment,{children:"followed you"}),tips:e=>l.jsxs(l.Fragment,{children:["gave tips to your ",e]}),mention:e=>l.jsxs(l.Fragment,{children:["mentioned you in ",e]}),assign:()=>l.jsx(l.Fragment,{children:"assigned you a task"})};function D({user:e,color:n=void 0}){const{palette:t}=ce(),r=J(N(_.WELLKNOWN_SERVICE_PATH_PREFIX,"user"),{did:e.did}),o=n||t.text.primary;return l.jsx(bt,{href:r,color:o,target:"_blank",onClick:i=>{i.customPreventRedirect=!0},sx:{fontWeight:600,textDecoration:"none","&:hover":{cursor:"pointer"}},children:e.fullName||"System"})}D.displayName="UserLink";function Ur({activity:e,users:n,actors:t,extra:r={},mountPoint:o=""}){const{palette:i}=ce(),{type:a,target:s}=e||{},{type:c}=s||{},{linkColor:u=i.text.primary}=r||{},d=P(()=>{if(!Array.isArray(n))return new Map;const y=new Map;return n.forEach(k=>{k?.did&&!y.has(k.did)&&y.set(k.did,k)}),y},[n]),f=P(()=>Array.isArray(t)?t.map(y=>y?d.get(y)||{did:y,fullName:"System"}:null).filter(Boolean):[],[t,d]),h=R(()=>{if(!Array.isArray(f)||f.length===0)return null;if(f.length===1)return l.jsx(D,{user:f[0],color:u});const y=f.slice(0,-1),k=f[f.length-1];if(f.length===2)return l.jsxs(l.Fragment,{children:[l.jsx(D,{user:y[0],color:u})," and ",l.jsx(D,{user:k,color:u})]});const w=f.length>3,j=w?f.slice(0,2):y;return l.jsxs(l.Fragment,{children:[j.map(($,S)=>l.jsxs(Pn.Fragment,{children:[l.jsx(D,{user:$,color:u}),S<j.length-1?", ":""]},$.did)),w?`, and ${f.length-2} others`:l.jsxs(l.Fragment,{children:[", and ",l.jsx(D,{user:k,color:u})]})]})}),p=R(()=>{const y=a?Wr[a]:null;return y?y(c,n.length):null}),g=P(()=>{const y=h(),k=p();return!y||!k?null:l.jsxs(l.Fragment,{children:[y," ",k]})},[a,c,f,h,p]),m=P(()=>{if(!e)return null;const y=zr(e);return y?.targetLink?N(o,y.targetLink):null},[e,o]);return!a||St(s)?null:l.jsxs(l.Fragment,{children:[g," ",m&&l.jsx(bt,{href:m,color:u,target:"_blank",sx:{textDecoration:"none"},onClick:y=>{y.customPreventRedirect=!0},children:s.name})]})}const Br={normal:Ke,success:Er,info:Ke,warning:Pr,error:Mr},Vr=Z(vn)`
|
|
2
|
+
font-size: 20px;
|
|
3
|
+
`,Qr=Z.div`
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: flex-start;
|
|
6
|
+
gap: 8px;
|
|
7
|
+
flex: 1;
|
|
8
|
+
width: 0;
|
|
9
|
+
`,Kr=Z.div`
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
margin-left: auto;
|
|
13
|
+
margin-right: -8px;
|
|
14
|
+
width: 44px;
|
|
15
|
+
`,Zr={xl:"400px",lg:"400px",md:"400px",sm:"300px"},Jr=Z(Hn)`
|
|
16
|
+
display: flex;
|
|
17
|
+
color: #fff;
|
|
18
|
+
align-items: center;
|
|
19
|
+
padding: 12px 16px;
|
|
20
|
+
border-radius: 4px;
|
|
21
|
+
box-shadow:
|
|
22
|
+
0px 3px 5px -1px rgba(0, 0, 0, 0.2),
|
|
23
|
+
0px 6px 10px 0px rgba(0, 0, 0, 0.14),
|
|
24
|
+
0px 1px 18px 0px rgba(0, 0, 0, 0.12);
|
|
25
|
+
|
|
26
|
+
${({severity:e,breakpoint:n})=>{const t=Zr[n]||"400px";return e==="success"?`
|
|
27
|
+
background-color: ${bn[600]} !important;
|
|
28
|
+
width: ${t};
|
|
29
|
+
`:e==="error"?`
|
|
30
|
+
background-color: #d32f2f !important;
|
|
31
|
+
width: ${t};
|
|
32
|
+
`:e==="info"?`
|
|
33
|
+
background-color: #1976d2 !important;
|
|
34
|
+
width: ${t};
|
|
35
|
+
`:e==="warning"?`
|
|
36
|
+
background-color: ${wn[700]} !important;
|
|
37
|
+
width: ${t};
|
|
38
|
+
`:`
|
|
39
|
+
background-color: #333;
|
|
40
|
+
width: ${t};
|
|
41
|
+
`}}
|
|
42
|
+
`,Gr=Z.div`
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
.title {
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
text-overflow: ellipsis;
|
|
49
|
+
display: -webkit-box;
|
|
50
|
+
-webkit-line-clamp: 1;
|
|
51
|
+
-webkit-box-orient: vertical;
|
|
52
|
+
font-weight: bold;
|
|
53
|
+
}
|
|
54
|
+
.desc {
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
text-overflow: ellipsis;
|
|
57
|
+
display: -webkit-box;
|
|
58
|
+
-webkit-line-clamp: 3;
|
|
59
|
+
-webkit-box-orient: vertical;
|
|
60
|
+
word-break: break-word;
|
|
61
|
+
line-height: 1.2;
|
|
62
|
+
.link,
|
|
63
|
+
.dapp,
|
|
64
|
+
.common {
|
|
65
|
+
color: ${ke.white};
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
`;function Yr({ref:e=void 0,keyId:n,notification:t={},viewAllUrl:r,content:o=null}){const i=Or(),[a,s]=C.useState(t.description||""),c=Br[t.severity||""],{closeSnackbar:u}=kt(),d=()=>u(n);C.useEffect(()=>{Dr(t.description||"","en").then(y=>{s(y)})},[t.description]);const f=y=>{y.stopPropagation(),u(n),y?.customPreventRedirect||window.open(r,"_blank")},h=P(()=>Nr(t),[t]),p=P(()=>t?.activity,[t]),g=P(()=>!p||p.type==="tips"?null:p?.meta,[p]),m=Ur({activity:p,users:[t?.actorInfo],actors:[t?.activity?.actor],extra:{linkColor:ke.white}});return l.jsxs(Jr,{ref:e,severity:t.severity,breakpoint:i,children:[l.jsxs(Qr,{children:[c?l.jsx(Ce,{icon:c,fontSize:24}):null,l.jsx(Gr,{onClick:f,style:{width:"calc(100% - 30px)"},children:l.jsx(A,{children:h?l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"title",children:m}),g?l.jsx(L,{variant:"subtitle2",component:"p",sx:{fontSize:16,display:"-webkit-box",overflow:"hidden",textOverflow:"ellipsis",WebkitLineClamp:3,WebkitBoxOrient:"vertical",color:ke.white,lineHeight:1.2},children:g?.content}):null]}):l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"title",children:t.title}),o||l.jsx(L,{component:"span",className:"desc",dangerouslySetInnerHTML:{__html:Hr(a)}})]})})})]}),l.jsx(Kr,{children:l.jsx(Re,{"aria-label":"close",color:"inherit",onClick:d,size:"large",children:l.jsx(Vr,{})},"close")})]})}const Oe=N(_.WELLKNOWN_SERVICE_PATH_PREFIX,"user","notifications"),Xr=e=>J(Oe,{id:e.id,severity:e.severity||"all",componentDid:e.source==="system"?"system":e.componentDid||"all"});function Yt({session:e={}}){const{unReadCount:n,user:t,setUnReadCount:r}=e,o=P(()=>t?.did,[t]),i=P(()=>t?.role&&[_.ROLES.ADMIN,_.ROLES.OWNER].includes(t?.role),[t?.role]),{enqueueSnackbar:a}=kt(),s=jt(),c=C.useMemo(()=>!o||t?.isPreviewUser||o===window.blocklet.did,[o,t]),u=C.useMemo(()=>s.arcSphere||s.wallet,[s]),d=P(()=>window.blocklet?.serverVersion,[]),f=Ar("user"),h=P(()=>`${window.blocklet.did}/${o}/${_.EVENTS.NOTIFICATION_BLOCKLET_CREATE}`,[o]),p=P(()=>`${window.blocklet.did}/${o}/${_.EVENTS.NOTIFICATION_BLOCKLET_READ}`,[o]),g=C.useCallback(y=>{const{receivers:k,source:w}=y??{},{receiver:j}=k[0]??{};if(j===o&&(i||w!=="system")){r(S=>S+1);const $=Wn(d,"1.16.42-beta-20250407");if(!u&&y.source==="component"&&$){const S=Xr(y),{severity:v,description:I}=y||{},E=["error","warning"].includes(v)||y.sticky;a(I,{variant:v,autoHideDuration:E?null:5e3,anchorOrigin:{vertical:"top",horizontal:"center"},content:M=>l.jsx(Yr,{viewAllUrl:S,keyId:M,notification:y})})}}},[o,r,a,d,u,i]),m=C.useCallback(y=>{const{receiver:k,readCount:w}=y??{};k===o&&r(j=>Math.max(j-w,0))},[o,r]);return C.useEffect(()=>(f&&!c&&(f.on(h,g),f.on(p,m)),()=>{f&&!c&&(f.off(h,g),f.off(p,m))}),[f,r,g,h,m,p,c]),!e.user||!Oe?null:l.jsx(Re,{size:"medium",variant:"outlined",href:J(Oe,{read:n<=0}),sx:{"&:hover":{borderRadius:"50%"}},children:l.jsx(kn,{badgeContent:n,color:"error",invisible:n===0,children:l.jsx(Tr,{style:{width:"auto",height:24}})})})}Yt.propTypes={session:x.object};const Xt=e=>{const{response:n}=e;return n?`Request failed: ${n.status} ${n.statusText}: ${JSON.stringify(n.data)}`:e.message},Mi=e=>e.scope==="kyc"?Nn({...e,issuerAvatarUrl:N(window.location.origin,oe,"/blocklet/logo"),type:e.role}):zn({...e,issuerAvatarUrl:N(window.location.origin,oe,"/blocklet/logo")});function en(e){const n=vt(),t=R(async({search:a,page:s=1,pageSize:c=20})=>{try{return await n.user.getOrgs({search:a,page:s,pageSize:c})}catch(u){return console.error(u),{orgs:[],paging:{page:s,pageSize:c,total:0}}}}),r=R(async({name:a,description:s})=>{try{return(await n.user.createOrg({name:a,description:s})).data}catch(c){return console.error(c),Ct.error(Xt(c)),null}}),o=R(async a=>{try{return await n.user.getOrg(a)}catch(s){return e.logout(),console.error(s),null}}),i=R(async a=>{try{const s=await n.user.getRole(a);return s.orgId?await o(s.orgId):null}catch(s){return console.error(s),null}});return{getOrgs:t,createOrg:r,getCurrentOrg:i}}const tn={en:{search:"Search",orgs:"Organizations",loadingMore:"Loading more",myJoinedEmpty:"You have not joined any organizations yet",createNew:"Create New Organization",viewAll:"View All Organizations",nameEmpty:"Name cannot be empty",nameTooLong:"Name must be less than {length} characters",descriptionTooLong:"Description must be less than {length} characters",cancel:"Cancel",create:"Create",mutate:{title:"{mode} Organization",name:"Name",description:"Description"}},zh:{search:"搜索",orgs:"组织",loadingMore:"加载更多",myJoinedEmpty:"您还没有加入任何组织",createNew:"创建新组织",viewAll:"查看所有组织",nameEmpty:"名称不能为空",nameTooLong:"名称不能超过{length}个字符",descriptionTooLong:"描述不能超过{length}个字符",cancel:"取消",create:"创建",mutate:{title:"{mode}组织",name:"组织名称",description:"组织描述"}}};function nn({onSuccess:e=Je,onCancel:n=Je,locale:t="en"}){const[r,o]=C.useState(!1),[i,a]=C.useState(""),{createOrg:s}=en(),c=R((h,p={})=>_e(tn,h,t,"en",p)),u=It({name:"",description:""}),d=async()=>{const h=u.name.trim();if(!h){a(c("nameEmpty"));return}if(h.length>25){a(c("nameTooLong",{length:25}));return}const p=u.description.trim();if(p.length>255){a(c("descriptionTooLong",{length:25}));return}a(""),o(!0);try{await s({name:h,description:p}),e()}catch(g){console.error(g);const m=Xt(g);a(m),Ct.error(m)}finally{o(!1)}},f=l.jsxs("div",{children:[l.jsx(L,{component:"div",style:{marginTop:16},children:l.jsx(je,{label:c("mutate.name"),autoComplete:"off",variant:"outlined",name:"name","data-cy":"mutate-org-input-name",fullWidth:!0,autoFocus:!0,value:u.name,onChange:h=>{a(""),u.name=h.target.value},disabled:r})}),l.jsx(L,{component:"div",style:{marginTop:16,marginBottom:16},children:l.jsx(je,{label:c("mutate.description"),autoComplete:"off",variant:"outlined",name:"description","data-cy":"mutate-org-input-description",fullWidth:!0,value:u.description,onChange:h=>{a(""),u.description=h.target.value},disabled:r,multiline:!0,rows:3})})]});return l.jsxs(Un,{title:c("mutate.title",{mode:c("create")}),fullWidth:!0,open:!0,onClose:n,showCloseButton:!1,actions:l.jsxs(l.Fragment,{children:[l.jsx(Ie,{onClick:n,color:"inherit",children:c("cancel")}),l.jsxs(Ie,{"data-cy":"mutate-org-confirm",onClick:d,color:"primary",disabled:r,variant:"contained",autoFocus:!0,children:[r&&l.jsx(In,{size:16}),c("create")]})]}),children:[l.jsx(jn,{component:"div",children:f}),!!i&&l.jsx(Cn,{severity:"error",style:{width:"100%",margin:0},children:i})]})}nn.propTypes={onSuccess:x.func,onCancel:x.func,locale:x.string};const yt=20;function on({session:e,locale:n="en"}){const[t,r]=C.useState(null),[o,i]=C.useState(""),[a,s]=C.useState(!1),c=C.useRef(null),u=R((b,F={})=>_e(tn,b,n,"en",F)),{getOrgs:d,getCurrentOrg:f}=en(e),h=C.useMemo(()=>e?.user?.role||"",[e?.user?.role]),{data:p={}}=Gn(()=>f(h),{ready:!!h,refreshDeps:[h],onError:b=>{console.error("Failed to get organization role",b)}}),g=C.useMemo(()=>p||{name:e?.user?.passports?.find(b=>b.name===h)?.title||h||"-"},[p,h,e?.user?.passports]),m=Yn(o,{wait:500}),{data:y,loadMore:k,loadingMore:w,reload:j}=Xn(async b=>{const F={page:b?Math.ceil(b.list.length/yt)+1:1,pageSize:yt,search:o},H=await d(F),{orgs:fe=[],paging:he}=H||{};return{list:fe,total:he?.total||0}},{reloadDeps:[m],isNoMore:b=>b?.list.length?b.list.length>=b?.total:!0,onError:b=>{console.error("Failed to fetch organizations list",b)}}),{list:$=[],total:S=0}=y||{},v=$.length<S,I=R(b=>{const F=b.target,{scrollTop:H,scrollHeight:fe,clientHeight:he}=F;fe-H-he<50&&!w&&v&&k()}),E=!!t;C.useEffect(()=>{E&&j()},[E,j]);const M=b=>{r(b.currentTarget)},O=()=>{r(null),s(!1),i("")},rn=b=>{e.switchPassport(()=>{window.location.reload()},{orgId:b.id}),O()},sn=()=>{s(!0)},We=()=>{const b=J(N(_.WELLKNOWN_SERVICE_PATH_PREFIX,"user/orgs"),{locale:n});window.location.href=b,O()},an=b=>l.jsxs(Be,{onClick:()=>rn(b),selected:b.id===g.id,sx:{py:1.5,px:2,"&.Mui-selected":{backgroundColor:"action.selected","&:hover":{backgroundColor:"action.hover"}}},children:[l.jsx(Ve,{sx:{minWidth:40},children:l.jsx(pe,{sx:{width:28,height:28,fontSize:14,bgcolor:b.isOwner?"primary.main":"grey.400"},children:b.name?.[0]})}),l.jsxs(A,{sx:{display:"flex",alignItems:"center",flex:1},children:[l.jsx(Qe,{sx:{"& .MuiListItemText-primary":{mb:0},"& .MuiListItemText-secondary":{mt:"-2px"}},primary:l.jsx(L,{variant:"body2",sx:{fontWeight:500,lineHeight:1.2},children:b.name}),secondary:l.jsx(L,{variant:"caption",color:"text.secondary",sx:{lineHeight:1.1},children:b.passports?.[0]?.title})}),b.id===g.id&&l.jsx(A,{sx:{display:"flex",alignItems:"center",justifyContent:"center",ml:1},children:l.jsx(L,{variant:"caption",color:"primary",sx:{fontSize:10},children:"✓"})})]})]},b.id);return l.jsxs(A,{children:[l.jsxs(ne,{ref:c,onClick:M,endIcon:l.jsx(Sn,{}),sx:{display:"flex",alignItems:"center",gap:1,px:2,py:1,borderRadius:1,textTransform:"none",color:"text.primary","&:hover":{backgroundColor:"action.hover"}},"data-testid":"org-switch-button",children:[l.jsx(pe,{sx:{width:24,height:24,fontSize:12,bgcolor:"primary.main"},children:g.name?.[0]}),l.jsx(L,{variant:"body2",sx:{fontWeight:500},children:g.name})]}),l.jsxs(Tn,{anchorEl:t,open:E,onClose:O,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{sx:{width:340,maxHeight:480,overflow:"visible",mt:.5,borderRadius:2,boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.08)",border:b=>`1px solid ${b.palette.divider}`}},MenuListProps:{sx:{py:0}},children:[l.jsx(A,{sx:{p:1.5,pb:1},children:l.jsx(je,{fullWidth:!0,size:"small",placeholder:u("search"),value:o,onChange:b=>i(b.target.value),InputProps:{startAdornment:l.jsx($n,{position:"start",children:l.jsx(Ln,{fontSize:"small",color:"action"})})},onClick:b=>b.stopPropagation(),onKeyDown:b=>b.stopPropagation(),sx:{"& .MuiOutlinedInput-root":{borderRadius:1}}})}),l.jsx(A,{sx:{px:2,pb:1},children:l.jsx(L,{variant:"subtitle2",color:"text.secondary",sx:{fontSize:11,fontWeight:600,textTransform:"uppercase",letterSpacing:.5},children:u("orgs")})}),l.jsx(A,{sx:{maxHeight:240,overflow:"auto"},onScroll:I,children:$.length>0?l.jsx(l.Fragment,{children:$.map((b,F)=>{const H=F===$.length-1;return l.jsxs(A,{children:[an(b),H&&v&&l.jsx(A,{sx:{display:"flex",justifyContent:"center",py:1,color:"text.secondary",fontSize:"0.875rem"},children:w?u("loadingMore"):""})]},b.id)})}):l.jsx(A,{sx:{px:2,py:3,textAlign:"center"},children:l.jsx(L,{variant:"body2",color:"text.secondary",children:u("myJoinedEmpty")})})}),l.jsx(Ue,{}),l.jsxs(Be,{onClick:sn,sx:{py:1.5,px:2,"&:hover":{backgroundColor:"action.hover"}},children:[l.jsx(Ve,{sx:{minWidth:40},children:l.jsx(pe,{sx:{width:28,height:28,bgcolor:"success.main",color:"success.contrastText"},children:l.jsx(An,{fontSize:"small"})})}),l.jsx(Qe,{primary:l.jsx(L,{variant:"body2",sx:{fontWeight:500},children:u("createNew")})})]}),l.jsx(Ue,{}),l.jsx(A,{sx:{p:1.5},children:l.jsx(ne,{onClick:We,variant:"text",component:"a",size:"small",endIcon:l.jsx(En,{fontSize:"small"}),sx:{color:"primary.main",fontWeight:500,p:0,fontSize:14,minWidth:"auto","&:hover":{backgroundColor:"transparent",textDecoration:"underline"}},children:u("viewAll")})})]}),a&&l.jsx(nn,{onSuccess:We,onCancel:()=>s(!1),locale:n})]})}on.propTypes={session:x.object.isRequired,locale:x.string};const ei=()=>!!(window?.blocklet?.navigation??[]).find(e=>e.id==="/userCenter/notification"),ti=e=>{const{settings:n={}}=e??window?.blocklet??{};return n?.org?.enabled||!1},ni=()=>{const{pathname:e=""}=window.location||{};return e.startsWith(_.WELLKNOWN_BLOCKLET_ADMIN_PATH)};function oi({formattedBlocklet:e,addons:n=null,showDomainWarningDialog:t=!0,sessionManagerProps:r={showRole:!0}}){const o=C.use(wt),{locale:i,languages:a,defaultLocale:s}=Bn()||{},{enableConnect:c=!0,enableLocale:u=!0}=e,d=!!o?.session?.user;let f=hr({navigation:e?.navigation?.sessionManager,locale:i,defaultLocale:s})||[];f=xr(f,o?.session?.user?.role);const h=(()=>{if(n&&typeof n!="function")return Array.isArray(n)?n:[n];let m=[];if(ei()&&m.push(l.jsx(Yt,{session:o.session},"notification-addon")),u&&i&&a.length>1&&m.push(l.jsx(Vn,{showText:!1},"locale-selector")),m.push(l.jsx(Fn,{},"theme-mode-toggle")),c&&o){const y=[];d&&(f?f.slice(0,5):[]).forEach(k=>{y.push({label:k.title,icon:k.icon?l.jsx("iconify-icon",{icon:k.icon,height:24,style:{marginRight:8}}):null,component:"a",href:k.link,key:k.link})}),m.push(l.jsx(wr,{session:o.session,locale:i},"session-blocklet")),m.push(l.jsx(Qn,{session:o.session,locale:i,menu:y,showRole:!0,...r},"session-user"))}return!ni()&&ti(e)&&o?.session?.user&&m.unshift(l.jsx(on,{session:o.session,locale:i},"orgs-switch")),typeof n=="function"&&(m=n(m)||[]),m})(),p=Array.isArray(h)?h:[h],g=[t?l.jsx(Zt,{session:o?.session,locale:i}):null,...p].filter(Boolean);return C.createElement(l.Fragment,null,...g)}oi.propTypes={formattedBlocklet:x.object.isRequired,addons:x.oneOfType([x.func,x.node]),sessionManagerProps:vr,showDomainWarningDialog:x.bool};const Oi=()=>{const e=jt();C.useEffect(()=>{(e.wallet||e.arcSphere)&&Kn.call("arcHideTopBar","{}")},[e])};export{Ti as A,Ei as L,hr as N,xr as P,lr as S,$i as W,fr as a,cr as b,Gt as f,Mi as g,ae as h,Li as k,Xt as l,Pi as n,de as p,Oi as s,vr as t,io as u,Ai as v,oi as z};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{j as e,bc as h,al as n,R as l,aR as f}from"./vendor-mui-core-D7t4vMS5.js";import{c as u,N as w,E as j,F as y}from"./index-Ca33rdd_.js";import{C as g}from"./config-space-HmsYCb6s.js";import{P as v}from"./vendor-arcblock-ivFYo5vP.js";import{N as b}from"./index-DCxNOCc2.js";import{W as k,b5 as C}from"./vendor-ux-Dl3wVbv_.js";import{r as W}from"./vendor-react-DX7tU9aY.js";import{u as S,a as E,S as P,b as z,c as I,W as N}from"./wizard-components-BzPyRFRt.js";import"./vendor-utils-BzQg432x.js";import"./vendor-hooks-DAZ1H6Va.js";import"./spaces-Ckljlc4d.js";import"./api-B8JXuhVp.js";import"./fallback-CZRO9TTQ.js";import"./nav-menu-5M0Q4jYU.js";import"./wallet-hidden-topbar-DKISAPb3.js";import"./theme-mode-toggle-BltDSXhy.js";import"./use-mobile-DgmmfWdl.js";import"./purify.es-HRjpPm7y.js";import"./index-sb6EjUcD.js";import"./use-blocklet-logo-BWPJOOVd.js";import"./get-safe-url-D4zRnTpF.js";import"./use-server-logo-BLcfNvrR.js";import"./server-logo-notext.svg-CtPRYaCm.js";import"./use-mobile-BSL5RsRd.js";const R=f`
|
|
2
|
+
html,
|
|
3
|
+
body,
|
|
4
|
+
#app,
|
|
5
|
+
#app > .wrapper {
|
|
6
|
+
height: 100%;
|
|
7
|
+
}
|
|
8
|
+
`;function te(){const o=window.self!==window.top,d=`${u.WELLKNOWN_SERVICE_PATH_PREFIX}/onboard`,{t:s}=k(),{blocklet:r,launcherSession:p,steps:t,stepIndex:i,totalSteps:c,onNext:a,onPrevious:x,onStepClick:m}=S(d,!0,()=>{o?window.parent.postMessage({type:"wizard.finished"},window.location.origin):window.location.href=window.blocklet?.prefix||"/"});return W.useEffect(()=>{o&&window.parent.postMessage({type:"wizard.loaded"},window.location.origin)},[o]),e.jsx(w,{children:e.jsx(j,{roles:y,children:e.jsx(v,{steps:c,children:e.jsxs(g,{children:[e.jsx(h,{styles:R}),e.jsxs(E,{children:[o?null:e.jsx(b,{width:"100%",brandAddon:r?.meta?.title?e.jsx(C,{variant:"h4",children:r.meta?.title}):null,description:r?.meta?.description,maxWidth:!1,bordered:!0,showDomainWarningDialog:!1}),e.jsx(P,{maxWidth:"md",mt:o?0:{xs:0,md:10},sx:o?{display:"flex",flexDirection:"column",height:"100vh",p:0}:{p:{xs:1,md:3}},children:e.jsxs(z,{sx:o?{flex:1}:{},children:[t.length>0&&i!==-1&&!window.location.pathname.includes("complete")&&e.jsx(I,{steps:t,currentIndex:i>=0?i:0,onStepClick:m}),e.jsxs(n,{sx:{display:"flex",flex:1,py:3,width:"100%",flexDirection:"column","& .header":{display:"none"},"&& .form-container":{overflowY:"visible"},"&& .container-inner":{position:"relative"},".form-container + div":{display:"none"},overflowY:"hidden"},children:[e.jsx(n,{sx:{flex:1,overflowY:"auto",width:"100%",height:"100%",px:3,"& > div":{overflowY:"visible"},...["access","bind-account"].includes(t[i]?.key)?{display:"flex",alignItems:"center",justifyContent:"center","& > div":{height:"unset"}}:{}},children:e.jsx(N,{blocklet:r,stepIndex:i,steps:t,onNext:a,onPrevious:x,launcherSession:p})}),e.jsxs(n,{sx:{display:"flex",flexDirection:{xs:"column-reverse",md:"row"},justifyContent:"flex-end",gap:2,width:"100%",px:3,pt:2,"& button":{minWidth:"100px",height:"40px"}},children:[e.jsxs(n,{sx:{display:"flex",gap:2},children:[e.jsx(l,{variant:"text",color:"primary",sx:{width:{xs:"35%",md:"auto"}},onClick:()=>{o?window.parent.postMessage({type:"wizard.close"},window.location.origin):window.location.href=window.blocklet?.prefix||"/"},children:s("setup.later")}),i>0&&e.jsx(l,{variant:"outlined",color:"primary",sx:{width:{xs:"65%",md:"auto"}},onClick:()=>a(t[i-1]?.key),children:s("setup.previous")})]}),e.jsx(l,{variant:"contained",color:"primary",onClick:()=>a(t[i+1]?.key),disabled:t[i]?.getButtonDisabled?.(),children:i===t.length-1?s("setup.finished"):s("setup.next")})]})]})]})})]})]})})})})}export{te as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.__toCdnUrl("assets/vendor-ux-DYcPPYq2.css"),window.__toCdnUrl("assets/index-DrCTi6nm.css")])))=>i.map(i=>d[i]);
|
|
2
|
-
import{j as e,
|
|
2
|
+
import{j as e,aT as E,al as c,ao as G,T as v,a7 as N,n as J,X as r}from"./vendor-mui-core-D7t4vMS5.js";import{j as Y,u as Z,r as o,k as ee,l as g,N as te}from"./vendor-react-DX7tU9aY.js";import{z as i}from"./vendor-utils-BzQg432x.js";import{c as I,x as se,u as ne,G as k,I as w,J as ie,K as re,L as z}from"./index-Ca33rdd_.js";import{W as O,ab as oe,_ as x}from"./vendor-ux-Dl3wVbv_.js";import{g as P}from"./get-safe-url-D4zRnTpF.js";import{u as ae}from"./use-server-logo-BLcfNvrR.js";function Ce(t=`${I.WELLKNOWN_SERVICE_PATH_PREFIX}/setup`,d=!1,h=null){const{t:s}=O(),[f,y]=Y(),p=Z(),{meta:m,blocklet:n,actions:a,launcherSession:S}=se(),j=localStorage.getItem("blocklet-server-url"),{session:b}=ne(),D=n?.environments?.find(u=>u.key===k.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPACE_ENDPOINT)?.value,B=ae({onClick:()=>{window.open(P(j,{allowDomains:null}))}}),R=w("fromLauncher"),W=w("launcherUrl"),U=w("launchType"),C=w("visitorId");C&&(oe(C),f.delete("visitorId"),y(f)),o.useEffect(()=>{ie(),b.user&&(a?.refreshMeta(),a?.refreshBlocklet({showError:!1}))},[b.user]),o.useEffect(()=>{a.refreshFuel({showError:!1})},[n?.meta?.did]);const q=u=>{const l=u?.capabilities?.didSpace;return l?l===k.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED||l===k.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED_ON_SETUP?{key:"did-space",stepTitle:s("setup.steps.didSpace"),name:e.jsxs(e.Fragment,{children:[s("setup.steps.didSpace")," ",e.jsx("span",{className:"required",children:"*"})]}),path:i(t,"did-space"),description:s("setup.didSpace.subTitle"),getButtonDisabled:()=>!D}:l===k.BLOCKLET_APP_SPACE_REQUIREMENT.OPTIONAL?{key:"did-space",stepTitle:s("setup.steps.didSpace"),name:e.jsx(e.Fragment,{children:s("setup.steps.didSpace")}),path:i(t,"did-space"),description:s("setup.didSpace.subTitle"),getButtonDisabled:()=>!1}:(console.warn(`capabilities.didSpace cannot take the value ${l}`),null):null},V=()=>{const{requirements:u}=m;return{key:"aigne",stepTitle:s("setup.steps.aigne"),name:e.jsxs(e.Fragment,{children:[s("setup.aigne.title")," ",u?.aigne&&e.jsx("span",{className:"required",children:"*"})]}),path:i(t,"aigne"),description:s("setup.aigne.subTitle")}},_=[{key:"bind-account",stepTitle:s("setup.steps.connect"),name:s("setup.connectAccount.title"),path:i(t,"bind-account"),description:s("setup.connectAccount.subTitle")},{key:"access",stepTitle:s("setup.steps.access"),name:s("setup.accessControl.title"),path:i(t,"access"),description:s("setup.accessControl.subTitle")},V(),{key:"domain",stepTitle:s("setup.steps.domain"),name:s("setup.domain.title"),path:i(t,"domain"),description:s("setup.domain.subTitle")},q(n),d?{key:"branding",stepTitle:s("setup.steps.branding"),name:s("setup.branding.title"),path:i(t,"branding"),description:s("setup.branding.subTitle")}:{key:"config",stepTitle:s("setup.steps.config"),name:e.jsxs(e.Fragment,{children:[s("setup.steps.config")," ",re(m)&&e.jsx("span",{className:"required",children:"*"})]}),path:i(t,"config"),description:s("setup.config.subTitle")},m?.requirements?.fuels?.length?{key:"fuel",stepTitle:s("setup.steps.fuel"),name:e.jsxs(e.Fragment,{children:[s("setup.steps.fuel")," ",e.jsx("span",{className:"required",children:"*"})]}),path:i(t,"fuel"),description:s("setup.fuel.subTitle")}:null].filter(Boolean),T=_.findIndex(u=>`${z.replace(/\/$/,"")}${t}/${u.key}`===window.location.pathname),F=i(z,I.WELLKNOWN_SERVICE_PATH_PREFIX,`/blocklet/logo?v=${n?.updatedAt}`),K=async u=>{const{search:l}=new URL(window.location.href),Q=_[T];if(l.includes("from=empty")&&Q.key==="config"){window.open(P(`${i(I.WELLKNOWN_BLOCKLET_ADMIN_PATH,"/overview/components")}${l}`));return}if(!u)_[T+1]?p(`${i(t,_[T+1].key)}${l}`):h?h():p(`${i(t,"complete")}${l}`);else{const $=_.findIndex(X=>X.key===u);$>-1?p(`${i(t,_[$].key)}${l}`):h?h():p(`${i(t,"complete")}${l}`)}await a.refreshBlocklet()},M=u=>{const{search:l}=new URL(window.location.href);p(`${i(t,u)}${l}`)},H=()=>{p(-1)},L=[{key:"install",name:s("launchBlocklet.steps.installApp"),path:i(t,"install")},{key:"setup",name:s("setup.steps.launchApp"),children:_}];let A=[{key:"agreement",name:s("launchBlocklet.introduction"),path:i(t,"agreement")},...L];return R&&(A=[{key:"purchase-space",name:s("launchBlocklet.steps.purchaseSpace")},{key:"prepare-space",name:s("launchBlocklet.steps.prepareSpace")},...L]),{meta:m,blocklet:n,actions:a,launcherSession:S,session:b,steps:_,stepIndex:T,totalSteps:A,fromLauncher:R,launcherUrl:W,launchType:U,logoUrl:F,logo:B,t:s,onNext:K,onPrevious:H,onStepClick:M}}const le=o.lazy(()=>x(()=>import("./connect-BeWeBwCA.js"),__vite__mapDeps([0,1]),import.meta.url)),ce=o.lazy(()=>x(()=>import("./bind-account-BIzFrnLk.js"),__vite__mapDeps([0,1]),import.meta.url)),pe=o.lazy(()=>x(()=>import("./config-oF-A1tKe.js"),__vite__mapDeps([0,1]),import.meta.url)),de=o.lazy(()=>x(()=>import("./index-D4_8N2le.js"),__vite__mapDeps([0,1]),import.meta.url)),ue=o.lazy(()=>x(()=>import("./branding-D-ShZ8m2.js"),__vite__mapDeps([0,1]),import.meta.url)),me=o.lazy(()=>x(()=>import("./domain-D9Kc4Rgt.js"),__vite__mapDeps([0,1]),import.meta.url)),fe=o.lazy(()=>x(()=>import("./access-control-CSfPgD_B.js"),__vite__mapDeps([0,1]),import.meta.url)),ge=o.lazy(()=>x(()=>import("./fuel-C85y6XSK.js"),__vite__mapDeps([0,1]),import.meta.url)),xe=o.lazy(()=>x(()=>import("./aigne-DElJAbjP.js"),__vite__mapDeps([0,1]),import.meta.url)),he=o.lazy(()=>x(()=>import("./complete-D6XDZtnV.js"),__vite__mapDeps([0,1]),import.meta.url)),ye=E(c)`
|
|
3
3
|
background: ${({theme:t})=>J(t.palette.primary.main,.05)};
|
|
4
4
|
`,Le=E(c)`
|
|
5
5
|
width: 100vw;
|
|
@@ -49,4 +49,4 @@ import{j as e,at as E,ak as c,an as G,T as v,a6 as P,n as J,W as r}from"./vendor
|
|
|
49
49
|
${({theme:t})=>t.breakpoints.down("md")} {
|
|
50
50
|
padding: 16px 20px;
|
|
51
51
|
}
|
|
52
|
-
`;r.oneOfType([r.string,r.element]),r.string,r.number.isRequired,r.func,r.bool;function _e({steps:t,currentIndex:d,onStepClick:h=()=>{}}){const s=t[d],f=o.useRef(parseInt(localStorage.getItem("wizard-max-step"),10)||d);return o.useEffect(()=>{f.current=Math.max(f.current,d),localStorage.setItem("wizard-max-step",f.current)},[d]),e.jsxs(ye,{width:"100%",p:{xs:2,md:3},pb:2,children:[e.jsx(c,{sx:{display:"flex",gap:1,position:"relative",width:"100%",pt:1},children:t.map((y,p)=>{const m=p===d,n=p<=f.current,a=p<=f.current;return e.jsxs(c,{sx:{flex:1,display:"flex",flexDirection:"column",gap:1},children:[e.jsxs(c,{display:"flex",alignItems:"center",justifyContent:{xs:"center",md:"flex-start"},gap:1,children:[e.jsx(c,{sx:{width:24,height:24,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"grey.300",color:"text.secondary",...m||n?{bgcolor:"primary.main",color:"primary.contrastText"}:{},fontWeight:600,fontSize:"14px",transition:"all 0.2s ease-in-out",cursor:a?"pointer":"default",zIndex:2,"&:hover":a?{transform:"scale(1.05)"}:{}},onClick:()=>a&&h?.(y.key),children:n&&!m?e.jsx(G,{style:{fontSize:"16px",fontWeight:800}}):p+1}),e.jsx(v,{variant:"body2",sx:{display:{xs:"none",md:"block"},fontWeight:m?700:400,color:"text.secondary",...m||n?{color:"primary.main"}:{},textTransform:"uppercase",letterSpacing:"0.5px",transition:"color 0.2s ease-in-out",cursor:a?"pointer":"default",lineHeight:1.2},onClick:()=>a&&h?.(y.key),children:y.stepTitle||y.name})]}),e.jsx(c,{sx:{mt:.5,height:2,width:"100%",bgcolor:a?"primary.main":"grey.200",borderRadius:2,transition:"width 0.5s ease-in-out"}})]},y.key)})}),e.jsxs(c,{mt:{xs:2,md:4},overflow:"hidden",sx:{width:"100%"},children:[e.jsx(v,{variant:"h3",sx:{mb:.5},children:s?.name}),e.jsx(v,{variant:"body1",sx:{color:"text.secondary",lineHeight:1.4},children:s?.description})]})]})}_e.propTypes={steps:r.array.isRequired,currentIndex:r.number.isRequired,onStepClick:r.func};function Ee(){return e.jsx(c,{sx:{width:"100%",height:400,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:3},children:e.jsx(c,{sx:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx(
|
|
52
|
+
`;r.oneOfType([r.string,r.element]),r.string,r.number.isRequired,r.func,r.bool;function _e({steps:t,currentIndex:d,onStepClick:h=()=>{}}){const s=t[d],f=o.useRef(parseInt(localStorage.getItem("wizard-max-step"),10)||d);return o.useEffect(()=>{f.current=Math.max(f.current,d),localStorage.setItem("wizard-max-step",f.current)},[d]),e.jsxs(ye,{width:"100%",p:{xs:2,md:3},pb:2,children:[e.jsx(c,{sx:{display:"flex",gap:1,position:"relative",width:"100%",pt:1},children:t.map((y,p)=>{const m=p===d,n=p<=f.current,a=p<=f.current;return e.jsxs(c,{sx:{flex:1,display:"flex",flexDirection:"column",gap:1},children:[e.jsxs(c,{display:"flex",alignItems:"center",justifyContent:{xs:"center",md:"flex-start"},gap:1,children:[e.jsx(c,{sx:{width:24,height:24,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"grey.300",color:"text.secondary",...m||n?{bgcolor:"primary.main",color:"primary.contrastText"}:{},fontWeight:600,fontSize:"14px",transition:"all 0.2s ease-in-out",cursor:a?"pointer":"default",zIndex:2,"&:hover":a?{transform:"scale(1.05)"}:{}},onClick:()=>a&&h?.(y.key),children:n&&!m?e.jsx(G,{style:{fontSize:"16px",fontWeight:800}}):p+1}),e.jsx(v,{variant:"body2",sx:{display:{xs:"none",md:"block"},fontWeight:m?700:400,color:"text.secondary",...m||n?{color:"primary.main"}:{},textTransform:"uppercase",letterSpacing:"0.5px",transition:"color 0.2s ease-in-out",cursor:a?"pointer":"default",lineHeight:1.2},onClick:()=>a&&h?.(y.key),children:y.stepTitle||y.name})]}),e.jsx(c,{sx:{mt:.5,height:2,width:"100%",bgcolor:a?"primary.main":"grey.200",borderRadius:2,transition:"width 0.5s ease-in-out"}})]},y.key)})}),e.jsxs(c,{mt:{xs:2,md:4},overflow:"hidden",sx:{width:"100%"},children:[e.jsx(v,{variant:"h3",sx:{mb:.5},children:s?.name}),e.jsx(v,{variant:"body1",sx:{color:"text.secondary",lineHeight:1.4},children:s?.description})]})]})}_e.propTypes={steps:r.array.isRequired,currentIndex:r.number.isRequired,onStepClick:r.func};function Ee(){return e.jsx(c,{sx:{width:"100%",height:400,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:3},children:e.jsx(c,{sx:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx(N,{size:48,thickness:4,sx:{color:"primary.main",filter:"drop-shadow(0 2px 8px rgba(25, 118, 210, 0.3))"}})})})}function je(t){const d=window.self!==window.top;return o.useEffect(()=>{d&&window.parent.postMessage({type:"wizard.resize",data:{height:document.body.scrollHeight}},window.location.origin)},[t,d]),null}function Te({blocklet:t=null,stepIndex:d,steps:h,onNext:s,onPrevious:f,launcherSession:y=null}){const{t:p}=O(),m=window.self!==window.top;function n(a,S){const j=e.jsxs(e.Fragment,{children:[e.jsx(je,{}),t?e.jsx(a,{blocklet:t,...S,onNext:s,onPrevious:f,buttonText:d===h.length-1?p("setup.finished"):""}):e.jsx(c,{sx:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:e.jsx(N,{})})]});return m?j:e.jsx(le,{children:j})}return e.jsx(o.Suspense,{fallback:e.jsx(Ee,{}),children:e.jsxs(ee,{children:[e.jsx(g,{path:"bind-account",element:n(ce)}),e.jsx(g,{path:"access",element:n(fe)}),e.jsx(g,{path:"domain",element:n(me)}),e.jsx(g,{path:"did-space",element:n(de)}),e.jsx(g,{path:"config",element:n(pe)}),e.jsx(g,{path:"fuel",element:n(ge)}),e.jsx(g,{path:"aigne",element:n(xe)}),e.jsx(g,{path:"branding",element:n(ue)}),e.jsx(g,{path:"complete",element:n(he,{launcherSession:y})}),e.jsx(g,{path:"*",element:e.jsx(te,{to:`access${window.location.search}`,replace:!0})})]})})}Te.propTypes={blocklet:r.object,stepIndex:r.number.isRequired,steps:r.array.isRequired,onNext:r.func.isRequired,onPrevious:r.func.isRequired,launcherSession:r.object};export{Ae as S,Te as W,Le as a,$e as b,_e as c,Ce as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{T as n}from"./vendor-ux-Dl3wVbv_.js";import{t as a}from"./index-BoJbHOhC.js";import{j as r}from"./vendor-mui-core-D7t4vMS5.js";function m(t){return function(o){return r.jsx(n,{translations:a,children:r.jsx(t,{...o})})}}export{m as w};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as s}from"./vendor-react-DX7tU9aY.js";import{aO as i}from"./index-Ca33rdd_.js";function c(t,n){for(var o=0;o<n.length;o++){const e=n[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const a=Object.getOwnPropertyDescriptor(e,r);a&&Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var f=i();const p=s(f),l=c({__proto__:null,default:p},[f]);export{l as z};
|
package/dist/index.html
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
padding: 0;
|
|
19
19
|
}
|
|
20
20
|
</style>
|
|
21
|
-
<script type="module" crossorigin src="/.well-known/service/static/assets/index-
|
|
21
|
+
<script type="module" crossorigin src="/.well-known/service/static/assets/index-Ca33rdd_.js"></script>
|
|
22
22
|
<link rel="stylesheet" crossorigin href="/.well-known/service/static/assets/vendor-ux-DYcPPYq2.css">
|
|
23
23
|
<link rel="stylesheet" crossorigin href="/.well-known/service/static/assets/index-DrCTi6nm.css">
|
|
24
24
|
<link rel="manifest" href="/.well-known/service/static/manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="/.well-known/service/static/registerSW.js"></script></head>
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.17.8-beta-
|
|
6
|
+
"version": "1.17.8-beta-20260115-003043-5e15c08a",
|
|
7
7
|
"description": "Provide unified services for every blocklet",
|
|
8
8
|
"main": "api/index.js",
|
|
9
9
|
"files": [
|
|
@@ -32,39 +32,39 @@
|
|
|
32
32
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
33
33
|
"license": "Apache-2.0",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@abtnode/analytics": "1.17.8-beta-
|
|
36
|
-
"@abtnode/auth": "1.17.8-beta-
|
|
37
|
-
"@abtnode/connect-storage": "1.17.8-beta-
|
|
38
|
-
"@abtnode/constant": "1.17.8-beta-
|
|
39
|
-
"@abtnode/core": "1.17.8-beta-
|
|
40
|
-
"@abtnode/cron": "1.17.8-beta-
|
|
41
|
-
"@abtnode/db-cache": "1.17.8-beta-
|
|
42
|
-
"@abtnode/logger": "1.17.8-beta-
|
|
43
|
-
"@abtnode/models": "1.17.8-beta-
|
|
44
|
-
"@abtnode/router-templates": "1.17.8-beta-
|
|
45
|
-
"@abtnode/util": "1.17.8-beta-
|
|
46
|
-
"@arcblock/did": "^1.28.
|
|
47
|
-
"@arcblock/did-connect-js": "^1.28.
|
|
48
|
-
"@arcblock/did-ext": "^1.28.
|
|
49
|
-
"@arcblock/did-util": "^1.28.
|
|
50
|
-
"@arcblock/event-hub": "^1.28.
|
|
35
|
+
"@abtnode/analytics": "1.17.8-beta-20260115-003043-5e15c08a",
|
|
36
|
+
"@abtnode/auth": "1.17.8-beta-20260115-003043-5e15c08a",
|
|
37
|
+
"@abtnode/connect-storage": "1.17.8-beta-20260115-003043-5e15c08a",
|
|
38
|
+
"@abtnode/constant": "1.17.8-beta-20260115-003043-5e15c08a",
|
|
39
|
+
"@abtnode/core": "1.17.8-beta-20260115-003043-5e15c08a",
|
|
40
|
+
"@abtnode/cron": "1.17.8-beta-20260115-003043-5e15c08a",
|
|
41
|
+
"@abtnode/db-cache": "1.17.8-beta-20260115-003043-5e15c08a",
|
|
42
|
+
"@abtnode/logger": "1.17.8-beta-20260115-003043-5e15c08a",
|
|
43
|
+
"@abtnode/models": "1.17.8-beta-20260115-003043-5e15c08a",
|
|
44
|
+
"@abtnode/router-templates": "1.17.8-beta-20260115-003043-5e15c08a",
|
|
45
|
+
"@abtnode/util": "1.17.8-beta-20260115-003043-5e15c08a",
|
|
46
|
+
"@arcblock/did": "^1.28.5",
|
|
47
|
+
"@arcblock/did-connect-js": "^1.28.5",
|
|
48
|
+
"@arcblock/did-ext": "^1.28.5",
|
|
49
|
+
"@arcblock/did-util": "^1.28.5",
|
|
50
|
+
"@arcblock/event-hub": "^1.28.5",
|
|
51
51
|
"@arcblock/http-proxy": "^1.19.1",
|
|
52
|
-
"@arcblock/jwt": "^1.28.
|
|
53
|
-
"@arcblock/validator": "^1.28.
|
|
54
|
-
"@arcblock/ws": "^1.28.
|
|
55
|
-
"@blocklet/constant": "1.17.8-beta-
|
|
52
|
+
"@arcblock/jwt": "^1.28.5",
|
|
53
|
+
"@arcblock/validator": "^1.28.5",
|
|
54
|
+
"@arcblock/ws": "^1.28.5",
|
|
55
|
+
"@blocklet/constant": "1.17.8-beta-20260115-003043-5e15c08a",
|
|
56
56
|
"@blocklet/dbhub": "^0.2.9",
|
|
57
|
-
"@blocklet/env": "1.17.8-beta-
|
|
57
|
+
"@blocklet/env": "1.17.8-beta-20260115-003043-5e15c08a",
|
|
58
58
|
"@blocklet/error": "^0.3.5",
|
|
59
59
|
"@blocklet/form-builder": "^0.1.12",
|
|
60
60
|
"@blocklet/form-collector": "^0.1.8",
|
|
61
|
-
"@blocklet/images": "1.17.8-beta-
|
|
62
|
-
"@blocklet/js-sdk": "1.17.8-beta-
|
|
63
|
-
"@blocklet/meta": "1.17.8-beta-
|
|
64
|
-
"@blocklet/rate-limit": "1.17.8-beta-
|
|
65
|
-
"@blocklet/sdk": "1.17.8-beta-
|
|
66
|
-
"@blocklet/server-js": "1.17.8-beta-
|
|
67
|
-
"@blocklet/theme": "^3.4.
|
|
61
|
+
"@blocklet/images": "1.17.8-beta-20260115-003043-5e15c08a",
|
|
62
|
+
"@blocklet/js-sdk": "1.17.8-beta-20260115-003043-5e15c08a",
|
|
63
|
+
"@blocklet/meta": "1.17.8-beta-20260115-003043-5e15c08a",
|
|
64
|
+
"@blocklet/rate-limit": "1.17.8-beta-20260115-003043-5e15c08a",
|
|
65
|
+
"@blocklet/sdk": "1.17.8-beta-20260115-003043-5e15c08a",
|
|
66
|
+
"@blocklet/server-js": "1.17.8-beta-20260115-003043-5e15c08a",
|
|
67
|
+
"@blocklet/theme": "^3.4.7",
|
|
68
68
|
"@blocklet/theme-builder": "0.4.8",
|
|
69
69
|
"@blocklet/uploader-server": "^0.3.19",
|
|
70
70
|
"@blocklet/xss": "^0.3.16",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
"@iconify-icons/tabler": "^1.2.95",
|
|
75
75
|
"@iconify/react": "^5.2.1",
|
|
76
76
|
"@modelcontextprotocol/sdk": "^1.18.0",
|
|
77
|
-
"@ocap/client": "^1.28.
|
|
78
|
-
"@ocap/util": "^1.28.
|
|
77
|
+
"@ocap/client": "^1.28.5",
|
|
78
|
+
"@ocap/util": "^1.28.5",
|
|
79
79
|
"@react-email/components": "^0.0.34",
|
|
80
80
|
"auth0": "^3.3.0",
|
|
81
81
|
"body-parser": "^2.2.0",
|
|
@@ -123,26 +123,26 @@
|
|
|
123
123
|
"whatwg-url": "14.0.0"
|
|
124
124
|
},
|
|
125
125
|
"devDependencies": {
|
|
126
|
-
"@abtnode/ux": "1.17.8-beta-
|
|
127
|
-
"@arcblock/bridge": "^3.4.
|
|
128
|
-
"@arcblock/did-connect-react": "^3.4.
|
|
129
|
-
"@arcblock/icons": "^3.4.
|
|
130
|
-
"@arcblock/react-hooks": "^3.4.
|
|
131
|
-
"@arcblock/ux": "^3.4.
|
|
132
|
-
"@blocklet/did-space-js": "^1.2.
|
|
133
|
-
"@blocklet/did-space-react": "^1.2.
|
|
134
|
-
"@blocklet/launcher-layout": "^3.4.
|
|
135
|
-
"@blocklet/payment-react": "^1.24.
|
|
136
|
-
"@blocklet/tracker": "1.17.8-beta-
|
|
137
|
-
"@blocklet/ui-react": "^3.4.
|
|
126
|
+
"@abtnode/ux": "1.17.8-beta-20260115-003043-5e15c08a",
|
|
127
|
+
"@arcblock/bridge": "^3.4.7",
|
|
128
|
+
"@arcblock/did-connect-react": "^3.4.7",
|
|
129
|
+
"@arcblock/icons": "^3.4.7",
|
|
130
|
+
"@arcblock/react-hooks": "^3.4.7",
|
|
131
|
+
"@arcblock/ux": "^3.4.7",
|
|
132
|
+
"@blocklet/did-space-js": "^1.2.15",
|
|
133
|
+
"@blocklet/did-space-react": "^1.2.15",
|
|
134
|
+
"@blocklet/launcher-layout": "^3.4.7",
|
|
135
|
+
"@blocklet/payment-react": "^1.24.1",
|
|
136
|
+
"@blocklet/tracker": "1.17.8-beta-20260115-003043-5e15c08a",
|
|
137
|
+
"@blocklet/ui-react": "^3.4.7",
|
|
138
138
|
"@blocklet/uploader": "^0.3.19",
|
|
139
139
|
"@emotion/react": "^11.14.0",
|
|
140
140
|
"@emotion/styled": "^11.14.1",
|
|
141
141
|
"@iconify/iconify": "^3.1.1",
|
|
142
142
|
"@mui/icons-material": "^7.2.0",
|
|
143
143
|
"@mui/material": "^7.2.0",
|
|
144
|
-
"@ocap/mcrypto": "^1.28.
|
|
145
|
-
"@ocap/wallet": "^1.28.
|
|
144
|
+
"@ocap/mcrypto": "^1.28.5",
|
|
145
|
+
"@ocap/wallet": "^1.28.5",
|
|
146
146
|
"@typescript/native-preview": "^7.0.0-dev.20251230.1",
|
|
147
147
|
"@vitejs/plugin-react": "^4.6.0",
|
|
148
148
|
"ahooks": "^3.8.0",
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
"uuid": "^11.1.0",
|
|
183
183
|
"validator": "^13.9.0",
|
|
184
184
|
"vite": "^7.0.0",
|
|
185
|
-
"vite-plugin-node-polyfills": "^0.
|
|
185
|
+
"vite-plugin-node-polyfills": "^0.24.0",
|
|
186
186
|
"vite-plugin-pwa": "^1.2.0",
|
|
187
187
|
"vite-plugin-react-virtualized": "^1.0.4",
|
|
188
188
|
"vite-plugin-static-copy": "^3.1.0",
|
|
@@ -214,5 +214,5 @@
|
|
|
214
214
|
"url": "https://github.com/ArcBlock/blocklet-server/issues",
|
|
215
215
|
"email": "shijun@arcblock.io"
|
|
216
216
|
},
|
|
217
|
-
"gitHead": "
|
|
217
|
+
"gitHead": "b22c37d35c84211b50f9ca05176f2c6de59fb24d"
|
|
218
218
|
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{_ as lt}from"./vendor-mui-core-CKKG_1TN.js";import{d as c}from"./vendor-hooks-DQAdyHrE.js";import{g as G}from"./vendor-react-CTtPmzVP.js";import{z as yt}from"./vendor-ux-DjXlxcvL.js";var b={exports:{}},pt=b.exports,rt;function Mt(){return rt||(rt=1,function(Y,z){(function(m,t){Y.exports=t()})(pt,function(){var m="week",t="year";return function(e,i,a){var r=i.prototype;r.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=a(this).startOf(t).add(1,t).date(u),l=a(this).endOf(m);if(h.isBefore(l))return 1}var O=a(this).startOf(t).date(u).startOf(m).subtract(1,"millisecond"),$=this.diff(O,m,!0);return $<0?a(this).startOf("week").week():Math.ceil($)},r.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})}(b)),b.exports}var Tt=Mt();const gt=G(Tt);var I={exports:{}},Dt=I.exports,st;function wt(){return st||(st=1,function(Y,z){(function(m,t){Y.exports=t()})(Dt,function(){var m={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,e=/\d/,i=/\d\d/,a=/\d\d?/,r=/\d*[^-_:/,()\s\d]+/,s={},u=function(n){return(n=+n)+(n>68?1900:2e3)},h=function(n){return function(o){this[n]=+o}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(n){(this.zone||(this.zone={})).offset=function(o){if(!o||o==="Z")return 0;var f=o.match(/([+-]|\d\d)/g),d=60*f[1]+(+f[2]||0);return d===0?0:f[0]==="+"?-d:d}(n)}],O=function(n){var o=s[n];return o&&(o.indexOf?o:o.s.concat(o.f))},$=function(n,o){var f,d=s.meridiem;if(d){for(var T=1;T<=24;T+=1)if(n.indexOf(d(T,0,o))>-1){f=T>12;break}}else f=n===(o?"pm":"PM");return f},ot={A:[r,function(n){this.afternoon=$(n,!1)}],a:[r,function(n){this.afternoon=$(n,!0)}],Q:[e,function(n){this.month=3*(n-1)+1}],S:[e,function(n){this.milliseconds=100*+n}],SS:[i,function(n){this.milliseconds=10*+n}],SSS:[/\d{3}/,function(n){this.milliseconds=+n}],s:[a,h("seconds")],ss:[a,h("seconds")],m:[a,h("minutes")],mm:[a,h("minutes")],H:[a,h("hours")],h:[a,h("hours")],HH:[a,h("hours")],hh:[a,h("hours")],D:[a,h("day")],DD:[i,h("day")],Do:[r,function(n){var o=s.ordinal,f=n.match(/\d+/);if(this.day=f[0],o)for(var d=1;d<=31;d+=1)o(d).replace(/\[|\]/g,"")===n&&(this.day=d)}],w:[a,h("week")],ww:[i,h("week")],M:[a,h("month")],MM:[i,h("month")],MMM:[r,function(n){var o=O("months"),f=(O("monthsShort")||o.map(function(d){return d.slice(0,3)})).indexOf(n)+1;if(f<1)throw new Error;this.month=f%12||f}],MMMM:[r,function(n){var o=O("months").indexOf(n)+1;if(o<1)throw new Error;this.month=o%12||o}],Y:[/[+-]?\d+/,h("year")],YY:[i,function(n){this.year=u(n)}],YYYY:[/\d{4}/,h("year")],Z:l,ZZ:l};function ht(n){var o,f;o=n,f=s&&s.formats;for(var d=(n=o.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(C,x,M){var p=M&&M.toUpperCase();return x||f[M]||m[M]||f[p].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(k,L,j){return L||j.slice(1)})})).match(t),T=d.length,g=0;g<T;g+=1){var U=d[g],S=ot[U],D=S&&S[0],w=S&&S[1];d[g]=w?{regex:D,parser:w}:U.replace(/^\[|\]$/g,"")}return function(C){for(var x={},M=0,p=0;M<T;M+=1){var k=d[M];if(typeof k=="string")p+=k.length;else{var L=k.regex,j=k.parser,A=C.slice(p),v=L.exec(A)[0];j.call(x,v),C=C.replace(v,"")}}return function(P){var F=P.afternoon;if(F!==void 0){var y=P.hours;F?y<12&&(P.hours+=12):y===12&&(P.hours=0),delete P.afternoon}}(x),x}}return function(n,o,f){f.p.customParseFormat=!0,n&&n.parseTwoDigitYear&&(u=n.parseTwoDigitYear);var d=o.prototype,T=d.parse;d.parse=function(g){var U=g.date,S=g.utc,D=g.args;this.$u=S;var w=D[1];if(typeof w=="string"){var C=D[2]===!0,x=D[3]===!0,M=C||x,p=D[2];x&&(p=D[2]),s=this.$locale(),!C&&p&&(s=f.Ls[p]),this.$d=function(A,v,P,F){try{if(["x","X"].indexOf(v)>-1)return new Date((v==="X"?1e3:1)*A);var y=ht(v)(A),Z=y.year,W=y.month,ut=y.day,ft=y.hours,dt=y.minutes,ct=y.seconds,mt=y.milliseconds,tt=y.zone,et=y.week,N=new Date,_=ut||(Z||W?1:N.getDate()),q=Z||N.getFullYear(),H=0;Z&&!W||(H=W>0?W-1:N.getMonth());var B,R=ft||0,Q=dt||0,X=ct||0,J=mt||0;return tt?new Date(Date.UTC(q,H,_,R,Q,X,J+60*tt.offset*1e3)):P?new Date(Date.UTC(q,H,_,R,Q,X,J)):(B=new Date(q,H,_,R,Q,X,J),et&&(B=F(B).week(et).toDate()),B)}catch{return new Date("")}}(U,w,S,f),this.init(),p&&p!==!0&&(this.$L=this.locale(p).$L),M&&U!=this.format(w)&&(this.$d=new Date("")),s={}}else if(w instanceof Array)for(var k=w.length,L=1;L<=k;L+=1){D[1]=w[L-1];var j=f.apply(this,D);if(j.isValid()){this.$d=j.$d,this.$L=j.$L,this.init();break}L===k&&(this.$d=new Date(""))}else T.call(this,g)}}})}(I)),I.exports}var Yt=wt();const Ot=G(Yt);var E={exports:{}},xt=E.exports,nt;function kt(){return nt||(nt=1,function(Y,z){(function(m,t){Y.exports=t()})(xt,function(){return function(m,t,e){t.prototype.isBetween=function(i,a,r,s){var u=e(i),h=e(a),l=(s=s||"()")[0]==="(",O=s[1]===")";return(l?this.isAfter(u,r):!this.isBefore(u,r))&&(O?this.isBefore(h,r):!this.isAfter(h,r))||(l?this.isBefore(u,r):!this.isAfter(u,r))&&(O?this.isAfter(h,r):!this.isBefore(h,r))}}})}(E)),E.exports}var Lt=kt();const zt=G(Lt);var V={exports:{}},St=V.exports,it;function Ct(){return it||(it=1,function(Y,z){(function(m,t){Y.exports=t()})(St,function(){return function(m,t){var e=t.prototype,i=e.format;e.format=function(a){var r=this,s=this.$locale();if(!this.isValid())return i.bind(this)(a);var u=this.$utils(),h=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(l){switch(l){case"Q":return Math.ceil((r.$M+1)/3);case"Do":return s.ordinal(r.$D);case"gggg":return r.weekYear();case"GGGG":return r.isoWeekYear();case"wo":return s.ordinal(r.week(),"W");case"w":case"ww":return u.s(r.week(),l==="w"?1:2,"0");case"W":case"WW":return u.s(r.isoWeek(),l==="W"?1:2,"0");case"k":case"kk":return u.s(String(r.$H===0?24:r.$H),l==="k"?1:2,"0");case"X":return Math.floor(r.$d.getTime()/1e3);case"x":return r.$d.getTime();case"z":return"["+r.offsetName()+"]";case"zzz":return"["+r.offsetName("long")+"]";default:return l}});return i.bind(this)(h)}}})}(V)),V.exports}var jt=Ct();const Pt=G(jt);c.extend(yt);c.extend(gt);c.extend(zt);c.extend(Pt);const vt={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},$t={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},K=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
|
|
2
|
-
`),at=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
|
|
3
|
-
`);class Bt{constructor({locale:z,formats:m}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=vt,this.setLocaleToValue=t=>{const e=this.getCurrentLocaleCode();return e===t.locale()?t:t.locale(e)},this.hasUTCPlugin=()=>typeof c.utc<"u",this.hasTimezonePlugin=()=>typeof c.tz<"u",this.isSame=(t,e,i)=>{const a=this.setTimezone(e,this.getTimezone(t));return t.format(i)===a.format(i)},this.cleanTimezone=t=>{switch(t){case"default":return;case"system":return c.tz.guess();default:return t}},this.createSystemDate=t=>{let e;if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const i=c.tz.guess();i==="UTC"?e=c(t):e=c.tz(t,i)}else e=c(t);return this.setLocaleToValue(e)},this.createUTCDate=t=>{if(!this.hasUTCPlugin())throw new Error(K);return this.setLocaleToValue(c.utc(t))},this.createTZDate=(t,e)=>{if(!this.hasUTCPlugin())throw new Error(K);if(!this.hasTimezonePlugin())throw new Error(at);const i=t!==void 0&&!t.endsWith("Z");return this.setLocaleToValue(c(t).tz(this.cleanTimezone(e),i))},this.getLocaleFormats=()=>{const t=c.Ls,e=this.locale||"en";let i=t[e];return i===void 0&&(i=t.en),i.formats},this.adjustOffset=t=>{if(!this.hasTimezonePlugin())return t;const e=this.getTimezone(t);if(e!=="UTC"){const i=t.tz(this.cleanTimezone(e),!0);if(i.$offset===(t.$offset??0))return t;t.$offset=i.$offset}return t},this.date=(t,e="default")=>t===null?null:e==="UTC"?this.createUTCDate(t):e==="system"||e==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(t):this.createTZDate(t,e),this.getInvalidDate=()=>c(new Date("Invalid date")),this.getTimezone=t=>{if(this.hasTimezonePlugin()){const e=t.$x?.$timezone;if(e)return e}return this.hasUTCPlugin()&&t.isUTC()?"UTC":"system"},this.setTimezone=(t,e)=>{if(this.getTimezone(t)===e)return t;if(e==="UTC"){if(!this.hasUTCPlugin())throw new Error(K);return t.utc()}if(e==="system")return t.local();if(!this.hasTimezonePlugin()){if(e==="default")return t;throw new Error(at)}return this.setLocaleToValue(c.tz(t,this.cleanTimezone(e)))},this.toJsDate=t=>t.toDate(),this.parse=(t,e)=>t===""?null:c(t,e,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=t=>{const e=this.getLocaleFormats(),i=a=>a.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(r,s,u)=>s||u.slice(1));return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(a,r,s)=>{const u=s&&s.toUpperCase();return r||e[s]||i(e[u])})},this.isValid=t=>t==null?!1:t.isValid(),this.format=(t,e)=>this.formatByString(t,this.formats[e]),this.formatByString=(t,e)=>this.setLocaleToValue(t).format(e),this.formatNumber=t=>t,this.isEqual=(t,e)=>t===null&&e===null?!0:t===null||e===null?!1:t.toDate().getTime()===e.toDate().getTime(),this.isSameYear=(t,e)=>this.isSame(t,e,"YYYY"),this.isSameMonth=(t,e)=>this.isSame(t,e,"YYYY-MM"),this.isSameDay=(t,e)=>this.isSame(t,e,"YYYY-MM-DD"),this.isSameHour=(t,e)=>t.isSame(e,"hour"),this.isAfter=(t,e)=>t>e,this.isAfterYear=(t,e)=>this.hasUTCPlugin()?!this.isSameYear(t,e)&&t.utc()>e.utc():t.isAfter(e,"year"),this.isAfterDay=(t,e)=>this.hasUTCPlugin()?!this.isSameDay(t,e)&&t.utc()>e.utc():t.isAfter(e,"day"),this.isBefore=(t,e)=>t<e,this.isBeforeYear=(t,e)=>this.hasUTCPlugin()?!this.isSameYear(t,e)&&t.utc()<e.utc():t.isBefore(e,"year"),this.isBeforeDay=(t,e)=>this.hasUTCPlugin()?!this.isSameDay(t,e)&&t.utc()<e.utc():t.isBefore(e,"day"),this.isWithinRange=(t,[e,i])=>t>=e&&t<=i,this.startOfYear=t=>this.adjustOffset(t.startOf("year")),this.startOfMonth=t=>this.adjustOffset(t.startOf("month")),this.startOfWeek=t=>this.adjustOffset(this.setLocaleToValue(t).startOf("week")),this.startOfDay=t=>this.adjustOffset(t.startOf("day")),this.endOfYear=t=>this.adjustOffset(t.endOf("year")),this.endOfMonth=t=>this.adjustOffset(t.endOf("month")),this.endOfWeek=t=>this.adjustOffset(this.setLocaleToValue(t).endOf("week")),this.endOfDay=t=>this.adjustOffset(t.endOf("day")),this.addYears=(t,e)=>this.adjustOffset(t.add(e,"year")),this.addMonths=(t,e)=>this.adjustOffset(t.add(e,"month")),this.addWeeks=(t,e)=>this.adjustOffset(t.add(e,"week")),this.addDays=(t,e)=>this.adjustOffset(t.add(e,"day")),this.addHours=(t,e)=>this.adjustOffset(t.add(e,"hour")),this.addMinutes=(t,e)=>this.adjustOffset(t.add(e,"minute")),this.addSeconds=(t,e)=>this.adjustOffset(t.add(e,"second")),this.getYear=t=>t.year(),this.getMonth=t=>t.month(),this.getDate=t=>t.date(),this.getHours=t=>t.hour(),this.getMinutes=t=>t.minute(),this.getSeconds=t=>t.second(),this.getMilliseconds=t=>t.millisecond(),this.setYear=(t,e)=>this.adjustOffset(t.set("year",e)),this.setMonth=(t,e)=>this.adjustOffset(t.set("month",e)),this.setDate=(t,e)=>this.adjustOffset(t.set("date",e)),this.setHours=(t,e)=>this.adjustOffset(t.set("hour",e)),this.setMinutes=(t,e)=>this.adjustOffset(t.set("minute",e)),this.setSeconds=(t,e)=>this.adjustOffset(t.set("second",e)),this.setMilliseconds=(t,e)=>this.adjustOffset(t.set("millisecond",e)),this.getDaysInMonth=t=>t.daysInMonth(),this.getWeekArray=t=>{const e=this.startOfWeek(this.startOfMonth(t)),i=this.endOfWeek(this.endOfMonth(t));let a=0,r=e;const s=[];for(;r<i;){const u=Math.floor(a/7);s[u]=s[u]||[],s[u].push(r),r=this.addDays(r,1),a+=1}return s},this.getWeekNumber=t=>t.week(),this.getYearRange=([t,e])=>{const i=this.startOfYear(t),a=this.endOfYear(e),r=[];let s=i;for(;this.isBefore(s,a);)r.push(s),s=this.addYears(s,1);return r},this.locale=z,this.formats=lt({},$t,m),c.extend(Ot)}getDayOfWeek(z){return z.day()+1}}export{Bt as A};
|