@abtnode/blocklet-services 1.17.5-beta-20251214-231110-497f8d27 → 1.17.6-beta-20251216-081847-bf91c4db
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/libs/connect/session.js +6 -9
- package/api/routes/federated.js +2 -2
- package/dist/assets/AdapterDayjs-Bfr4sW4C.js +3 -0
- package/dist/assets/{Community-C7CFokDQ.js → Community-CELsDteM.js} +1 -1
- package/dist/assets/{Google-qCiUM9VP.js → Google-DA3WTnLE.js} +1 -1
- package/dist/assets/{Holiday-DyVifdc-.js → Holiday-DOCjSYjH.js} +1 -1
- package/dist/assets/{Meeting-DbtUCCZq.js → Meeting-BAXt_LiK.js} +1 -1
- package/dist/assets/{OffSick-BtITykO3.js → OffSick-BGEr8Nkc.js} +1 -1
- package/dist/assets/{WorkingRemotely-mKvokr6L.js → WorkingRemotely-BcneAIXG.js} +1 -1
- package/dist/assets/access-control-BZvc7AZG.js +14 -0
- package/dist/assets/actions-Dfiiwkit.js +1 -0
- package/dist/assets/{add-component-core-CFL73x1V.js → add-component-core-CNH5E2RR.js} +1 -1
- package/dist/assets/add-resource-BWEvlWkH.js +1 -0
- package/dist/assets/addon-uM70Qwac.js +14 -0
- package/dist/assets/{advanced-Djs25PXG.js → advanced-Caeqx4XB.js} +1 -1
- package/dist/assets/aigne-B9drp8Pq.js +10 -0
- package/dist/assets/api-C75sLx9p.js +1 -0
- package/dist/assets/appearance-DM7p-6Wl.js +1 -0
- package/dist/assets/arrow-down.svg-C4FUKwt4.js +1 -0
- package/dist/assets/{audit-logs-CXjhDj8M.js → audit-logs-L-gO50KL.js} +2 -2
- package/dist/assets/authorize-D2d4GCpP.js +1 -0
- package/dist/assets/{base-chart-BXspUQ5X.js → base-chart-DSDnGziZ.js} +1 -1
- package/dist/assets/{base32-E_M8YiDy.js → base32-B-7CnEFd.js} +1 -1
- package/dist/assets/bind-account-DuzArGdZ.js +1 -0
- package/dist/assets/{branding-B6_O9dwM.js → branding-Dx40btDl.js} +1 -1
- package/dist/assets/{branding-BN5xzu2K.js → branding-aCdIMhb0.js} +5 -5
- package/dist/assets/branding-bYH66Nug.js +1 -0
- package/dist/assets/bundle-avatar-B1jZNqcH.js +1 -0
- package/dist/assets/button-BnSiFtNt.js +1 -0
- package/dist/assets/click-to-copy-CwdgHxjB.js +1 -0
- package/dist/assets/cloneDeep-B_fYlLpl.js +1 -0
- package/dist/assets/{collapse-DRXViE1U.js → collapse-B7gUzFaX.js} +1 -1
- package/dist/assets/{complete-DERkCyic.js → complete-Rr-_Zaon.js} +3 -3
- package/dist/assets/{component-BFEXoFyD.js → component-DZretbSC.js} +2 -2
- package/dist/assets/{config-DBQhYXkx.js → config-Bjbv_xI5.js} +1 -1
- package/dist/assets/config-BkqISfFO.js +53 -0
- package/dist/assets/{config-mfnTXE1f.js → config-Dw0qq-09.js} +2 -2
- package/dist/assets/{config-navigation-CL9YkEzl.js → config-navigation-Dj8qf6cK.js} +8 -8
- package/dist/assets/config-space-Dw6ITGIj.js +1 -0
- package/dist/assets/confirm-Bpit6U3-.js +7 -0
- package/dist/assets/{connect-DXN8mBKc.js → connect-B1ZA3nS8.js} +1 -1
- package/dist/assets/connect-Bl7-1lbc.js +1 -0
- package/dist/assets/connect-to-BsxW3JJi.js +1 -0
- package/dist/assets/{content-layout-B5NObRcH.js → content-layout-DmSBGGVm.js} +1 -1
- package/dist/assets/{create-passport-svg-BwqsyTOz.js → create-passport-svg-DGPNsGUE.js} +1 -1
- package/dist/assets/createClass-B5uCYz0o.js +1 -0
- package/dist/assets/{dashboard-DHhNID_3.js → dashboard-DBwE7l6f.js} +7 -7
- package/dist/assets/{delete-confirm-DSQSBte5.js → delete-confirm-L0HXJtqt.js} +1 -1
- package/dist/assets/did-address-uvYuZ4wv.js +1 -0
- package/dist/assets/domain-BoEowNlU.js +9 -0
- package/dist/assets/domain-action-card-BB0jQwcH.js +28 -0
- package/dist/assets/domains-kgzxNW_C.js +1 -0
- package/dist/assets/{edit.svg-Dz9cVo7r.js → edit.svg-RRSklUg-.js} +1 -1
- package/dist/assets/{email-DDHqRiNE.js → email-BAr61Jer.js} +2 -2
- package/dist/assets/{empty-spinner-0EAHJWBW.js → empty-spinner-BYDonf35.js} +1 -1
- package/dist/assets/engine-DWk3y4cO.js +1 -0
- package/dist/assets/exchange-passport-BuJUAVgN.js +1 -0
- package/dist/assets/{form-C-ZRaynb.js → form-kdwSU-mv.js} +3 -3
- package/dist/assets/form-text-input-B_h8beXh.js +11 -0
- package/dist/assets/{form-wrapper-dz0PgYyA.js → form-wrapper-PT5ZzMQy.js} +1 -1
- package/dist/assets/fuel-C9kfBZ4R.js +32 -0
- package/dist/assets/gen-access-key-Bh-o1OFU.js +1 -0
- package/dist/assets/gen-simple-access-key-DHmIlRFl.js +1 -0
- package/dist/assets/get-safe-url-gaxZoVzJ.js +1 -0
- package/dist/assets/{home-D8RPk4rl.js → home-Cb5I193s.js} +1 -1
- package/dist/assets/{iframe-DbxlfoSv.js → iframe-C233G1py.js} +1 -1
- package/dist/assets/{index-Dnont80V.js → index-B0Q9wWG1.js} +2 -2
- package/dist/assets/{index-BfyoUnq5.js → index-B7DVpLRM.js} +34 -34
- package/dist/assets/index-BScxMPlP.js +1 -0
- package/dist/assets/{index-CiQvt8QY.js → index-BT70k77_.js} +2 -2
- package/dist/assets/index-BaaFi7Vh.js +1 -0
- package/dist/assets/{index-CmT6o_W4.js → index-Bf3Peb0q.js} +5 -5
- package/dist/assets/{index-BIFlvVef.js → index-C-vVEZcs.js} +6 -6
- package/dist/assets/{index-BajjN1HU.js → index-CGP3CGlC.js} +6 -6
- package/dist/assets/{index-Ccjxs0wr.js → index-CI3rRJqa.js} +12 -12
- package/dist/assets/{index-CAtE4xM9.js → index-CK3KHeKw.js} +8 -8
- package/dist/assets/{index-CIvZ7HIX.js → index-CRAuhYSg.js} +1 -1
- package/dist/assets/{index-CJBVOMty.js → index-CUlOq3Sr.js} +4 -4
- package/dist/assets/{index-DK4Rvfj9.js → index-CZBIYuko.js} +1 -1
- package/dist/assets/{index-BjLM8Gon.js → index-CaTDaKrX.js} +1 -1
- package/dist/assets/index-CqD-x8pw.js +7 -0
- package/dist/assets/{index-Bs5xamxm.js → index-CtORPeiq.js} +2 -2
- package/dist/assets/index-D-a8pZtp.js +1 -0
- package/dist/assets/{index-BOiRUuPB.js → index-D24LKXzO.js} +1 -1
- package/dist/assets/{index-C0q1NhNR.js → index-D29her4n.js} +1 -1
- package/dist/assets/index-DACtt7qd.js +102 -0
- package/dist/assets/{index-BRGQOPmE.js → index-D_u0j8BO.js} +1 -1
- package/dist/assets/{index-B6QOO2yw.js → index-DjpxFmgG.js} +7 -7
- package/dist/assets/index-DuDIkjct.js +55 -0
- package/dist/assets/{index-BXtrOI0G.js → index-DwJ_NASi.js} +1 -1
- package/dist/assets/{index-Dijoh4El.js → index-DwyzCfdd.js} +103 -103
- package/dist/assets/index-KIswy2vM.js +120 -0
- package/dist/assets/index-LaMi0T4w.js +1 -0
- package/dist/assets/index-MQEkIEm-.js +1 -0
- package/dist/assets/{index-DHn4LCaq.js → index-OMkyTUNX.js} +4 -4
- package/dist/assets/index-WT6M-zj8.js +6 -0
- package/dist/assets/{index-BsA1v5Kx.js → index-_tncRnTu.js} +1 -1
- package/dist/assets/index-lK6Pf_qM.js +11 -0
- package/dist/assets/{index-CMec_woq.js → index-m1ZQT0sU.js} +1 -1
- package/dist/assets/{index-bb4s-8hu.js → index-oS8X43Pb.js} +6 -6
- package/dist/assets/index-xE7OidBo.js +1 -0
- package/dist/assets/{index.esm-DTmS4tth.js → index.esm-Co8ZxFyk.js} +1 -1
- package/dist/assets/{invitation-Cjg3Rgxl.js → invitation-C2S2tPzG.js} +7 -7
- package/dist/assets/invitations-Dil5QWBY.js +3 -0
- package/dist/assets/invite-GVnju9RQ.js +1 -0
- package/dist/assets/{isURL-wZZwzwyC.js → isURL-ZFgr0DWl.js} +2 -2
- package/dist/assets/issue-passport-BmU6NmKw.js +1 -0
- package/dist/assets/{item-Bpf_gGYt.js → item-DfQKizv4.js} +1 -1
- package/dist/assets/landing-page-C3zTr0-n.js +1 -0
- package/dist/assets/{launch-result-message-BTBdTioQ.js → launch-result-message-MNpx7ysR.js} +1 -1
- package/dist/assets/{layout-CZo9vMzc.js → layout-tkk_Lr2y.js} +1 -1
- package/dist/assets/list-BvgV1Jbh.js +2 -0
- package/dist/assets/list-YOpLH3o0.js +103 -0
- package/dist/assets/{list-header-BQo9L_6R.js → list-header-Cl3jykCe.js} +1 -1
- package/dist/assets/localization-DcnSNZHz.js +1 -0
- package/dist/assets/{lock.svg-BPCZ0CT3.js → lock.svg-BgybwZNe.js} +1 -1
- package/dist/assets/{log-KsUeQx46.js → log-C0zcaEbO.js} +1 -1
- package/dist/assets/logger-BbBkOuwH.js +1 -0
- package/dist/assets/login-BR26IXZx.js +1 -0
- package/dist/assets/login-oauth-callback-DCJMx5J1.js +1 -0
- package/dist/assets/logo-uploader-TLOlwvRt.js +30 -0
- package/dist/assets/{lost-passport-DWR3ith-.js → lost-passport-DE5KGhjz.js} +3 -3
- package/dist/assets/{lottie-react.esm-CD0xFBYg.js → lottie-react.esm-E4oo1jhL.js} +1 -1
- package/dist/assets/omit-D_PYZZLm.js +1 -0
- package/dist/assets/{open-window-Ct_MP3Sx.js → open-window-CPNpPXku.js} +1 -1
- package/dist/assets/over-due-invoice-payment-1EZsSUm4.js +1 -0
- package/dist/assets/{overview-5u7B_D_6.js → overview-CMduEuAK.js} +2 -2
- package/dist/assets/{page-header-Cgwo2np-.js → page-header-CHAwrgX-.js} +1 -1
- package/dist/assets/passport-Dg1YWagy.js +1 -0
- package/dist/assets/passport-item-QbgyHapR.js +1 -0
- package/dist/assets/{permission-BYxNrlaa.js → permission-C0bmOzVj.js} +1 -1
- package/dist/assets/preferences-0l0Zmaom.js +1 -0
- package/dist/assets/profile-embed-BQzLZZkK.js +1 -0
- package/dist/assets/publish-resource-ggObFvMi.js +1 -0
- package/dist/assets/{question-mark-circle.svg-DK9nTUDZ.js → question-mark-circle.svg-CByEVDhb.js} +1 -1
- package/dist/assets/{raf-schd.esm-JNUhxcps.js → raf-schd.esm-XXBRsnmf.js} +1 -1
- package/dist/assets/{react-beautiful-dnd.esm-Cvsu51oI.js → react-beautiful-dnd.esm-zYw9dagY.js} +1 -1
- package/dist/assets/{react-stripe.esm-Dqbe1A8R.js → react-stripe.esm-CVZErl8X.js} +1 -1
- package/dist/assets/{required-B0Gua-D1.js → required-BQln5OcV.js} +1 -1
- package/dist/assets/{revoke.svg-CuiCGfVW.js → revoke.svg-CNl4LAbv.js} +1 -1
- package/dist/assets/runtime-BNKE0VfZ.js +1 -0
- package/dist/assets/{sanitize-D6Abg5_T.js → sanitize-CtCDGQB6.js} +1 -1
- package/dist/assets/sdk-YVE2MSze.js +1 -0
- package/dist/assets/{section-BkMzBpvM.js → section-jXB9AxBb.js} +1 -1
- package/dist/assets/{security-DCG1tmZe.js → security-CWEVWbF4.js} +3 -3
- package/dist/assets/{server-logo-notext.svg-DHxZ1bRk.js → server-logo-notext.svg-xZ-i1SpD.js} +1 -1
- package/dist/assets/session-Des-0R_y.js +1 -0
- package/dist/assets/setup-Cps_vpFS.js +24 -0
- package/dist/assets/{shorten-label-DhOty_4j.js → shorten-label-C4py9TLA.js} +1 -1
- package/dist/assets/{simple-select-D0q2J-Br.js → simple-select-DbXWLzPn.js} +1 -1
- package/dist/assets/{spaces-DM95DgFM.js → spaces-2YPkTkBR.js} +1 -1
- package/dist/assets/start-CuCNmoqX.js +187 -0
- package/dist/assets/{starting-progress-aMYWzin8.js → starting-progress-xuCef6_T.js} +2 -2
- package/dist/assets/status-DleDsf-t.js +1 -0
- package/dist/assets/{step-actions-nHHLzUFh.js → step-actions-AHe2MQxo.js} +1 -1
- package/dist/assets/studio-HfI11Uc3.js +6 -0
- package/dist/assets/{switch-control-BAyRLHvJ.js → switch-control-CzYig10w.js} +1 -1
- package/dist/assets/switch-rIcJ7tho.js +1 -0
- package/dist/assets/{table-tips-BA9A3QDk.js → table-tips-Ba9Kf02z.js} +1 -1
- package/dist/assets/team-BWkxYdcc.js +146 -0
- package/dist/assets/traffic-jB6onGHq.js +1 -0
- package/dist/assets/transfer-DspVAdFc.js +16 -0
- package/dist/assets/unsubscribe-CKdMi1Kx.js +1 -0
- package/dist/assets/use-app-logo-BAGvxEU-.js +1 -0
- package/dist/assets/{use-mobile-Dwc30NoL.js → use-mobile-BINJTzMb.js} +1 -1
- package/dist/assets/{use-mobile-Vtj5nBdp.js → use-mobile-D5clNlrm.js} +1 -1
- package/dist/assets/{use-server-logo-BfNy3Xkj.js → use-server-logo-Cv1kAPgB.js} +1 -1
- package/dist/assets/use-window-close-D7QBHj75.js +1 -0
- package/dist/assets/useAsync-CgTefzpB.js +1 -0
- package/dist/assets/{useAsync-DNDhrs-2.js → useAsync-CxjyODHb.js} +1 -1
- package/dist/assets/{useAsyncRetry-CSW1hopB.js → useAsyncRetry-BnuUJFwY.js} +1 -1
- package/dist/assets/useLocalStorage-Bj52e1ZW.js +1 -0
- package/dist/assets/{useSetState-cWrp7qoX.js → useSetState-L-f8mSga.js} +1 -1
- package/dist/assets/user-center-CL_lKzgJ.js +125 -0
- package/dist/assets/user-follower-CfiG4RXf.js +32 -0
- package/dist/assets/{util-DSnAozzs.js → util-C9cWBCZz.js} +1 -1
- package/dist/assets/{util-BxX0TJKJ.js → util-DXf_zMuU.js} +1 -1
- package/dist/assets/{vendor-arcblock-D4Rvz_D3.js → vendor-arcblock-DkdOhPyM.js} +1 -1
- package/dist/assets/{vendor-hooks-U4TTuKG0.js → vendor-hooks-BZ19vVZ7.js} +2 -2
- package/dist/assets/{vendor-mui-core-B5XNUjey.js → vendor-mui-core-DnR6WYuU.js} +2 -2
- package/dist/assets/{vendor-mui-x-DtPl0qBm.js → vendor-mui-x-CQc01l4r.js} +1 -1
- package/dist/assets/{vendor-react-CUXIiAnY.js → vendor-react-CTtPmzVP.js} +1 -1
- package/dist/assets/{vendor-utils-CFxoplqC.js → vendor-utils-D5UG1a5Y.js} +2 -2
- package/dist/assets/{vendor-ux-BX9dSNUy.js → vendor-ux-DMZIE6wA.js} +2 -2
- package/dist/assets/{wait-connect-CCXiMHZY.js → wait-connect-D2wPrbE3.js} +1 -1
- package/dist/assets/{wizard-TEBzHS-w.js → wizard-EYZCXWG5.js} +2 -2
- package/dist/assets/wizard-components-PMRUmw6U.js +52 -0
- package/dist/assets/wrap-locale-B4E8Yvgz.js +1 -0
- package/dist/assets/{zh-Dr9buZnV.js → zh-CSl2KD_S.js} +1 -1
- package/dist/assets/zh-CXK3bXGt.js +1 -0
- package/dist/assets/{zh-tw-CeXBj2i0.js → zh-tw-BiloxWNq.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +25 -2
- package/package.json +50 -50
- package/dist/assets/AdapterDayjs-p1MGZm94.js +0 -3
- package/dist/assets/access-control-C6MQq9M9.js +0 -14
- package/dist/assets/actions-CiAs-6JM.js +0 -1
- package/dist/assets/add-resource-DVpeKvW6.js +0 -1
- package/dist/assets/addon-B5NG3IsS.js +0 -14
- package/dist/assets/aigne-WBAWm6yx.js +0 -10
- package/dist/assets/api-Cjc501Es.js +0 -1
- package/dist/assets/appearance-CVS4AfPI.js +0 -1
- package/dist/assets/arrow-down.svg-Dhs0HydJ.js +0 -1
- package/dist/assets/authorize-uzVAAuOd.js +0 -1
- package/dist/assets/bind-account-N3cioth0.js +0 -1
- package/dist/assets/branding-BFn6p_xP.js +0 -1
- package/dist/assets/bundle-avatar-CfVy3gda.js +0 -1
- package/dist/assets/button-4KPacREM.js +0 -1
- package/dist/assets/click-to-copy-DXHOGoUP.js +0 -1
- package/dist/assets/cloneDeep-DjDct56M.js +0 -1
- package/dist/assets/config-CwbUhIlW.js +0 -57
- package/dist/assets/config-space-3dNLmLWy.js +0 -1
- package/dist/assets/confirm-BIsS5xyi.js +0 -7
- package/dist/assets/connect-DMt_37_e.js +0 -1
- package/dist/assets/connect-to-D3C0j8V8.js +0 -1
- package/dist/assets/createClass-CkCf2FLT.js +0 -1
- package/dist/assets/did-address-Qmm0nyiR.js +0 -1
- package/dist/assets/domain-DcU9P4mp.js +0 -9
- package/dist/assets/domain-action-card-D9HXIIpd.js +0 -28
- package/dist/assets/domains-DVkGbWo7.js +0 -1
- package/dist/assets/engine-Cx3nUUOw.js +0 -1
- package/dist/assets/exchange-passport-Bxh8blMK.js +0 -1
- package/dist/assets/form-text-input-CbjI2VZQ.js +0 -11
- package/dist/assets/fuel-BdIacIqD.js +0 -32
- package/dist/assets/gen-access-key-DdjBRI5O.js +0 -1
- package/dist/assets/gen-simple-access-key-CBGi0io0.js +0 -1
- package/dist/assets/get-safe-url-pZvXlaJu.js +0 -1
- package/dist/assets/index-5B_H2zYd.js +0 -1
- package/dist/assets/index-6M8OhYM1.js +0 -1
- package/dist/assets/index-BRky7Qm3.js +0 -7
- package/dist/assets/index-CUIcSX4q.js +0 -102
- package/dist/assets/index-CtuxXUm_.js +0 -1
- package/dist/assets/index-DCPJbOWh.js +0 -55
- package/dist/assets/index-DD9ceQKr.js +0 -1
- package/dist/assets/index-Dn_bIjgF.js +0 -6
- package/dist/assets/index-G1If4Shq.js +0 -120
- package/dist/assets/index-RxqUBm3A.js +0 -11
- package/dist/assets/index-SH0LXIEm.js +0 -1
- package/dist/assets/index-mgpYakv8.js +0 -1
- package/dist/assets/invitations-xEsO2f9m.js +0 -3
- package/dist/assets/invite-ChOQtk0E.js +0 -1
- package/dist/assets/issue-passport-CUGjhBZr.js +0 -1
- package/dist/assets/landing-page-zT1Tduxx.js +0 -1
- package/dist/assets/list-Cj5o6_aJ.js +0 -103
- package/dist/assets/list-dBF9Lx52.js +0 -2
- package/dist/assets/localization-BhQNA1fu.js +0 -1
- package/dist/assets/logger-CWdgyrlX.js +0 -1
- package/dist/assets/login-BRtDYFyr.js +0 -1
- package/dist/assets/login-oauth-callback-BVOT5KIP.js +0 -1
- package/dist/assets/logo-uploader-CMuaTg_2.js +0 -30
- package/dist/assets/omit-DZEUV_m7.js +0 -1
- package/dist/assets/over-due-invoice-payment-EIjXZOAF.js +0 -1
- package/dist/assets/passport-BcfDxGFq.js +0 -1
- package/dist/assets/passport-item-BnRaEMVZ.js +0 -1
- package/dist/assets/preferences-BgyNzrci.js +0 -1
- package/dist/assets/profile-embed-C3hI8xed.js +0 -1
- package/dist/assets/publish-resource-CreTipUc.js +0 -1
- package/dist/assets/runtime-BwoZhRe2.js +0 -1
- package/dist/assets/sdk-Do4pV1s0.js +0 -1
- package/dist/assets/session-DUT2afHJ.js +0 -1
- package/dist/assets/setup-ephJCw43.js +0 -24
- package/dist/assets/start-sucUqu8u.js +0 -187
- package/dist/assets/status-BFw6nCWi.js +0 -1
- package/dist/assets/studio-BKkw9WY-.js +0 -6
- package/dist/assets/switch-C5K07M96.js +0 -1
- package/dist/assets/team-HgvOpVEJ.js +0 -146
- package/dist/assets/traffic-BvA-dAE6.js +0 -1
- package/dist/assets/transfer-CiITg5ql.js +0 -16
- package/dist/assets/unsubscribe-2BjO5Axx.js +0 -1
- package/dist/assets/use-app-logo-D9eQSUYq.js +0 -1
- package/dist/assets/use-window-close-DLSxYDw-.js +0 -1
- package/dist/assets/useAsync-Dy8z2Lh_.js +0 -1
- package/dist/assets/useLocalStorage-oIIa9C3F.js +0 -1
- package/dist/assets/user-center-BODNsVgb.js +0 -126
- package/dist/assets/user-follower-ODH9p68y.js +0 -32
- package/dist/assets/wizard-components-MqkmgXy5.js +0 -52
- package/dist/assets/wrap-locale-Dk2yVg3Y.js +0 -1
- package/dist/assets/zh-C6-KWz-k.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./vendor-mui-core-B5XNUjey.js";import"./vendor-react-CUXIiAnY.js";import{S as t}from"./studio-BKkw9WY-.js";import"./vendor-ux-BX9dSNUy.js";import"./vendor-utils-CFxoplqC.js";import"./vendor-hooks-U4TTuKG0.js";import"./lottie-web-4koyQiv_.js";import"./index-BRGQOPmE.js";import"./index-Dijoh4El.js";import"./vendor-arcblock-D4Rvz_D3.js";function f(){return o.jsx(t,{children:"Coming soon..."})}export{f as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as e,u as c}from"./vendor-ux-BX9dSNUy.js";const s=e("blocklet-services");c("blocklet-services");export{s as d};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e,ak as p,T as I,W as r,am as O,Q,bO as pe,a6 as fe}from"./vendor-mui-core-B5XNUjey.js";import{f as ge,a as ue,b as me,h as he}from"./vendor-hooks-U4TTuKG0.js";import{r as J,i as we}from"./vendor-react-CUXIiAnY.js";import{a as xe,a8 as ye,U as ke,c as _,au as Pe,H as $,s as je,av as ve,b as be,a2 as B,aw as Te,ax as Ie}from"./index-Dijoh4El.js";import{C as A,b as R,I as Ce,c as Le}from"./vendor-utils-CFxoplqC.js";import{o as _e}from"./vendor-arcblock-D4Rvz_D3.js";import{$ as Re,e as We,V as G,B as M,d as Ae,C as Ee,D as Ne,H as V,y as Se,F as z}from"./vendor-ux-BX9dSNUy.js";import{u as Ue}from"./use-passport-id-B-b-_oYF.js";import{g as X}from"./get-safe-url-pZvXlaJu.js";import{d as W}from"./logger-CWdgyrlX.js";import"./lottie-web-4koyQiv_.js";function Y({blocklet:c=window.blocklet}){return e.jsxs(p,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"space-between"},children:[e.jsx(Re,{variant:"rounded",shape:"square",did:c.appPid,src:c.appLogo,size:80}),e.jsx(I,{component:"h2",variant:"h6",children:c.appName}),e.jsx(We,{did:c.appPid})]})}const De=J.memo(Y);Y.propTypes={blocklet:r.shape({appName:r.string,appLogo:r.string,appPid:r.string})};const qe=()=>window.blocklet?.componentMountPoints?.find(s=>s.did==="z2qaCNvKMv5GjouKdcDWexv6WqtHbpNPQDnAk")?.mountPoint;function Z({children:c=null,cta:s=null,...i}){return e.jsxs(p,{...i,children:[c?e.jsx(p,{sx:{maxHeight:"50vh",overflow:"hidden",position:"relative",":after":{content:'""',position:"absolute",left:0,right:0,bottom:0,height:"80%",background:"linear-gradient(transparent, #fff 85%)"}},children:c}):null,s?e.jsx(p,{sx:{display:"flex",flexDirection:"column",alignItems:"center",py:4,borderRadius:2},children:s}):null]})}Z.propTypes={children:r.node,cta:r.node};function ee({passports:c=[],onConnect:s=()=>{},redirect:i,...y}){const{t:f}=G(),k=qe(),P=a=>{const m=a?.payable;return k&&m?A(k,`/api/redirect/checkout/${m}?redirect=${i}`):null};return e.jsxs(p,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:2,minHeight:"100vh",maxWidth:"400px",margin:"auto",paddingBottom:{sx:0,md:15}},children:[e.jsx(De,{}),e.jsx(Z,{...y,cta:e.jsxs(e.Fragment,{children:[e.jsx(I,{variant:"h4",sx:{mx:2,textAlign:"center",fontWeight:"bold",color:"warning.main"},children:f("login.accessLimit.title")}),e.jsx(I,{variant:"body1",sx:{maxWidth:620,mt:2,mx:2,textAlign:"center",color:"gray"},children:f("login.accessLimit.description")}),e.jsx(p,{sx:{display:"flex",flexWrap:"wrap",justifyContent:"center",gap:1,mt:5},children:c?.map(a=>{const m=P(a);return m?e.jsx(O,{title:f("login.accessLimit.buyPassport"),arrow:!0,placement:"top",children:e.jsx(Q,{color:"primary",variant:"contained",endIcon:e.jsx(pe,{}),href:m,target:"_blank",children:a.title||a.name})},a.name):e.jsx(O,{title:f("login.connectWithPassport"),arrow:!0,placement:"top",children:e.jsx(Q,{color:"inherit",variant:"contained",onClick:s,children:a.title||a.name})},a.name)})}),e.jsxs(I,{variant:"body1",sx:{mt:2,color:"grey.400"},children:[e.jsx(p,{component:"span",sx:{display:"inline-block",mr:1},children:f("login.accessLimit.alreadyHavePassport")}),e.jsx(p,{component:"span",sx:{textDecoration:"underline",cursor:"pointer",color:"primary.main"},onClick:s,children:f("common.connect")})]})]})})]})}ee.propTypes={passports:r.arrayOf(r.shape({name:r.string.isRequired,title:r.string,payable:r.string})),onConnect:r.func,onClose:r.func,redirect:r.string.isRequired};function Je(){const c=J.useRef(null),{session:s}=xe(),{t:i,locale:y}=G(),{getPassportId:f}=Ue(),k=we(),P=M(),a=Ae(),{encryptKey:m,decrypt:ne}=ye(),j=ge(s),{searchParams:o}=new URL(window.location.href),h={passportId:f()},E=o.get("componentId"),N=o.get("authenticated"),te=o.get("sessionToken"),oe=o.get("csrfToken"),ie=o.get("refreshToken"),se=o.get("requiredRoles"),g=o.get("redirect"),d=o.get("forceConnected"),v=o.get("sourceAppPid"),C=o.get("origin"),S=o.get("autoConnectWebview"),U=o.get("popup"),D=o.get("showQuickConnect");let w=o.get("inviter");if(!w&&g)try{w=(g.startsWith("http")?new URL(g):new URL(g,window.location.origin)).searchParams.get("inviter")}catch{}w=w||localStorage.getItem("inviter"),E&&(h.componentId=E),P&&(h.visitorId=P),w&&(h.inviter=w),Le(v)||(v==="null"?h.sourceAppPid=null:v!==null&&(h.sourceAppPid=v));let q=[];try{q=JSON.parse(se)}catch{}const re=async n=>{const t=o.get("fromWallet");W("login page notifyWallet",{data:n,fromWallet:t,"browser.wallet":a.wallet}),n&&String(t)==="1"&&a.wallet&&await Promise.any([z.asyncCall("arcSetToken",n),B(3e3)])},b=n=>n&&(o.get("encrypted")?ne(n):n),H=async n=>{n&&await re(n),setTimeout(()=>{if(g){const t=decodeURIComponent(g);t.startsWith(_.WELLKNOWN_SERVICE_PATH_PREFIX)?k(t,{replace:!0}):window.location.replace(X(t))}else window.location.replace(window.env.pathPrefix||"/")},50)},ce=n=>{const t={did:n.user.did,host:window.location.host,appPid:window.blocklet.appPid,visitorId:M(),sourceAppPid:n.user.sourceAppPid,fullName:n.user.fullName};W("bridge callArc: onLogin",t),z.callArc("onLogin",t)},F=async(n,t)=>{const L=t(n.csrfToken),T=t(n.sessionToken),x=t(n.refreshToken),u=t(n.visitorId);W("login page onLogin",{result:n,decodeSessionToken:T,decodeRefreshToken:x,decodeVisitorId:u}),je(T),ve(L),be(x),n.visitorId&&Se(u),await s.refresh(),await B(100),ce(j.current);const l={};o.get("saveConnect")?(l.connected_did=j.current.user.did,l.connected_pk=j.current.user.pk,l.connected_wallet_os=j.current.walletOS,l.connected_app=Te()):(l.connected_did=o.get("connected_did"),l.connected_pk=o.get("connected_pk"),l.connected_app=o.get("connected_app"),l.connected_wallet_os=o.get("connected_wallet_os")),Ie(l,!0),H({sessionToken:T,refreshToken:x,visitorId:u})},ae=ue(()=>C==="switch-did"?d&&typeof d=="string"?{title:i("login.switchSpecifiedDid.title"),scan:i("login.switchSpecifiedDid.scan",{did:d}),confirm:i("login.switchSpecifiedDid.confirm"),success:i("login.switchSpecifiedDid.success")}:{title:i("login.switchDid.title"),scan:i("login.switchDid.scan"),confirm:i("login.switchDid.confirm"),success:i("login.switchDid.success")}:{title:i("login.connect.title"),scan:i("login.connect.scan"),confirm:i("login.connect.confirm"),success:i("login.connect.success")},[d,C,i]),K=me(()=>{const n=window?.blocklet,t={className:"connect",popup:!1,action:"login",passkeyBehavior:"both",onSuccess:F,onError:le,locale:y,messages:ae,extraParams:h,baseUrl:window.location.origin,prefix:A(window.location.origin,_.WELLKNOWN_SERVICE_PATH_PREFIX,ke)};d&&(t.forceConnected=d,t.extraParams.enableSwitchApp=!1,t.extraParams.forceConnected=d),t.options||(t.options={}),C==="switch-did"?t.options.showQuickConnect=!0:R(D)||([!1,"false"].includes(D)?t.options.showQuickConnect=!1:t.options.showQuickConnect=!0);const L=Ee();Ne()&&(t.extraParams.sourceAppPid=L.appPid);const x=A(window.location.origin,_.WELLKNOWN_SERVICE_PATH_PREFIX,"connect"),u={params:Pe(encodeURIComponent(JSON.stringify(t))),appPid:n?.appPid,appName:n?.appName,locale:y,redirect:window.location.href,_ek_:m};R(S)||(u.autoConnectWebview=S),R(U)||(u.popup=U),u.disableClose=!0;const l=X(Ce(x,u),{allowDomains:null});window.location.href=l});he(()=>{if(o.get("sessionToken")){const n=o.get("visitorId");if(!n){V.error("Unexpected login response from server: visitorId is required");return}F({sessionToken:b(te),csrfToken:b(oe),refreshToken:b(ie),visitorId:b(n)},t=>t)}else!s.user||d&&s.user.did!==d?K():!N&&!o.get("sessionToken")&&H()});const le=n=>{V.error(n.message)},de=o.has("popup");if(s.loading||s.user){if(!N||o.get("sessionToken"))return e.jsxs(e.Fragment,{children:[e.jsx($,{children:e.jsx("title",{children:i("pageTitle.login")})}),e.jsx(_e,{children:de?null:e.jsx(fe,{})})]});const n=g?new URL(g,window.location.origin).href:window.location.href;return e.jsx(ee,{onConnect:K,passports:q,redirect:n})}return e.jsxs(e.Fragment,{children:[e.jsx($,{children:e.jsx("title",{children:i("pageTitle.login")})}),e.jsx(p,{sx:{"box-sizing":"border-box",width:"100%",height:"100vh",position:"relative",display:"flex","flex-direction":"column",".connect":{background:"#fafafa"}},ref:c})]})}export{Je as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e,av as d,ak as r,T as m,aX as p,Q as u}from"./vendor-mui-core-B5XNUjey.js";import{g as x,j as f,h}from"./vendor-hooks-U4TTuKG0.js";import{u as c}from"./vendor-react-CUXIiAnY.js";import{g as j,c as y,k as w,u as C}from"./index-Dijoh4El.js";import{V as v}from"./vendor-ux-BX9dSNUy.js";import{C as k}from"./vendor-utils-CFxoplqC.js";import"./vendor-arcblock-D4Rvz_D3.js";import"./lottie-web-4koyQiv_.js";const M="authorization_response",A=j();function L(){const{t:s}=v(),[n]=c(),a=()=>{window.close()};return h(()=>{const i=n.get("state"),l=n.get("code"),t={type:M,response:{code:l}};if(window.opener)try{const o=new URL(i);window.opener.postMessage(t,o.origin),setTimeout(()=>{window.close()},2e3)}catch(o){console.error("Invalid login caller",o)}}),e.jsx(p,{severity:"success",children:e.jsxs(r,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignContent:"center",gap:1},children:[s("login.needManualClose"),e.jsx(r,{sx:{textAlign:"center"},children:e.jsx(u,{variant:"outlined",size:"small",onClick:a,children:s("login.closeWindow")})})]})})}function b(){const{blocklet:s}=window,[n]=c(),a=n.get("error"),i=n.get("error_description"),l=n.get("state"),t=x({errorMesage:"",loading:!0});f(async()=>{if(a)t.errorMesage=i,t.loading=!1;else try{const g=new URL(l);(await A.federated.getTrustedDomains()).includes(g.hostname)||(t.errorMesage="Invalid login caller")}catch{t.errorMesage="Invalid login caller"}finally{t.loading=!1}},[a,i,l]);const o=k(y.WELLKNOWN_SERVICE_PATH_PREFIX,`/blocklet/logo?&version=${s?.meta?.version||""}`);return e.jsx(d,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh",justifyContent:"center",alignContent:"center"},children:e.jsxs(r,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:2,minHeight:"100vh",margin:"auto",paddingBottom:{sx:0,md:15}},children:[e.jsxs(r,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.5},children:[e.jsx(r,{component:"img",src:o,alt:`${s?.appName||"site"} logo`,sx:{width:80}}),e.jsx(m,{variant:"h6",component:"p",children:s?.appName})]}),t.loading?t.errorMesage?e.jsx(w,{error:{message:t.errorMesage}}):e.jsx(L,{}):null,e.jsx(C,{sx:{mt:4}})]})})}export{b as default};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.__toCdnUrl("assets/vendor-ux-DYcPPYq2.css"),window.__toCdnUrl("assets/index-DrVXX4fX.css"),window.__toCdnUrl("assets/index-B5LvOF-F.css")])))=>i.map(i=>d[i]);
|
|
2
|
-
import{V as O,q as _,_ as q}from"./vendor-ux-BX9dSNUy.js";import{r as m}from"./vendor-react-CUXIiAnY.js";import{j as o,ak as u,at as k,W as e}from"./vendor-mui-core-B5XNUjey.js";import{n as d,C as z}from"./vendor-utils-CFxoplqC.js";const C=m.lazy(()=>q(()=>import("./index-CiQvt8QY.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(t=>({default:t.Uploader}))),F="/blocklet/logo/upload",c=[".png",".jpg",".jpeg",".webp",".bmp",".ico"];function U({url:t,height:f=80,width:g="auto",enabled:s=!0,allowSVG:h=!0,type:r,did:a,prefix:b,headers:x=d,aspectRatio:l=1,minWidth:P=256,minHeight:R=256,onUploaded:j=d,children:n=null}){const{t:v,locale:w}=O(),i=m.useRef(null),p=()=>{i.current?.open()},y=()=>{j(),i.current?.close()},E={cursor:s?"pointer":"default","&::after":{content:`"${v("common.switch")}"`}};return o.jsxs(S,{id:`uploader-${a}-${r}`,children:[o.jsx(C,{ref:i,locale:w,popup:!0,onUploadFinish:y,plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:z(b,F,r,a),disableMediaKitPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileExts:h?[...c,".svg"]:c,maxFileSize:1024*1024*5,maxNumberOfFiles:1}},dashboardProps:{autoOpen:"imageEditor"},imageEditorProps:{actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,autoCropArea:1,aspectRatio:l,initialAspectRatio:l,croppedCanvasOptions:{minWidth:P,minHeight:R}}},tusProps:{headers:x}}),n?o.jsx(u,{onClick:p,children:n}):o.jsx(u,{className:_("uploader-wrapper",s&&"enabled"),sx:E,onClick:p,children:o.jsx("img",{alt:r,src:t,style:{width:g,height:f}})})]},`uploader-${a}-${r}`)}U.propTypes={url:e.string.isRequired,type:e.oneOf(["square","rect","favicon","splash-portrait","splash-landscape","og-image"]).isRequired,did:e.string.isRequired,prefix:e.string.isRequired,headers:e.func,onUploaded:e.func,height:e.number,width:e.any,enabled:e.bool,allowSVG:e.bool,aspectRatio:e.number,minWidth:e.number,minHeight:e.number,children:e.node};const S=k.div`
|
|
3
|
-
.uploader-wrapper {
|
|
4
|
-
display: inline-flex;
|
|
5
|
-
position: relative;
|
|
6
|
-
font-size: 0px;
|
|
7
|
-
overflow: hidden;
|
|
8
|
-
&.enabled {
|
|
9
|
-
cursor: pointer;
|
|
10
|
-
}
|
|
11
|
-
&::after {
|
|
12
|
-
display: none;
|
|
13
|
-
}
|
|
14
|
-
&.enabled::after {
|
|
15
|
-
display: block;
|
|
16
|
-
opacity: 1;
|
|
17
|
-
position: absolute;
|
|
18
|
-
bottom: 0;
|
|
19
|
-
background: rgba(0, 0, 0, 0.3);
|
|
20
|
-
left: 0;
|
|
21
|
-
right: 0;
|
|
22
|
-
height: 2.2em;
|
|
23
|
-
color: white;
|
|
24
|
-
text-align: center;
|
|
25
|
-
font-size: 12px;
|
|
26
|
-
line-height: 2em;
|
|
27
|
-
transition: opacity 0.3s ease;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
`;export{U as L};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e}from"./vendor-react-CUXIiAnY.js";import{N as r}from"./vendor-utils-CFxoplqC.js";const t=e(r);export{t as r};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{D as ge,j as t,b1 as h,aX as ie,Q as M,T as S,b0 as Ce}from"./vendor-mui-core-B5XNUjey.js";import{r as d}from"./vendor-react-CUXIiAnY.js";import{V as je,d as ke,b as Se,H as x}from"./vendor-ux-BX9dSNUy.js";import{C as w,d as we}from"./vendor-utils-CFxoplqC.js";import{k as Pe}from"./vendor-hooks-U4TTuKG0.js";import{w as De,x as z,y as Ee,z as Re,C as H,D as $e,E as Te,F as _e,L as ce,G as Ie}from"./index-Dijoh4El.js";const q=async r=>{if(!r.subscriptionId&&!r.customerId)throw new Error("Either subscriptionId or customerId must be provided");let f;return r.subscriptionId?f=`/api/subscriptions/${r.subscriptionId}/overdue/invoices`:f=`/api/customers/${r.customerId}/overdue/invoices`,(await $e.get(r.authToken?w(f,`?authToken=${r.authToken}`):f)).data};function Oe({subscriptionId:r=void 0,customerId:f=void 0,mode:O="default",dialogProps:g={open:!0},children:P=void 0,onPaid:N=()=>{},detailLinkOptions:y={enabled:!0},successToast:U=!0,alertMessage:V="",authToken:D=void 0}){const{t:n,locale:ae}=je(),W=ke()?.arcSphere,E=ge(),{connect:R,session:ue}=De(),[le,de]=d.useState(""),[G,v]=d.useState(!1),[me,$]=d.useState(g.open||!1),[pe,ye]=d.useState({}),[fe,p]=d.useState({}),[T,_]=d.useState({}),K=d.useRef(T),L=r?"subscription":"customer",u=f||ue?.user?.did,Q=r||u,C=d.useRef(u);d.useEffect(()=>{K.current=T},[T]);const{data:c={summary:{},invoices:[]},error:X,loading:ve,runAsync:J}=Pe(()=>q({subscriptionId:r,customerId:u,authToken:D}),{ready:!!r||!!u,onSuccess:e=>{e.customer?.id&&e.customer?.id!==C.current&&(C.current=e.customer?.id)}}),I=d.useMemo(()=>r?w(z(),`/customer/subscription/${r}`):u?w(z(),"/customer/invoice/past-due"):"",[r,u]),l=d.useMemo(()=>c?.summary?Object.values(c.summary):[],[c?.summary]),Y=async e=>{if(K.current[e])try{if((await q({subscriptionId:r,customerId:u,authToken:D})).invoices?.some(a=>a.currency_id===e))return;_(a=>{const m={...a};return delete m[e],m}),p(a=>({...a,[e]:"success"}))}catch(i){console.error("Error checking Stripe payment completion:",i);return}U&&(x.close(),x.success(n("payment.customer.invoice.paySuccess"))),v(!1),(await J()).invoices?.length===0&&($(!1),N(Q,e,L))},he=we(e=>Y(e),1e3,{leading:!1,trailing:!0,maxWait:5e3}),F=Ee(),j=Re("events"),xe=async e=>{let s=!1;return await Ie(async()=>(s=!(await q({subscriptionId:r,customerId:u,authToken:D})).invoices?.some(a=>a.currency_id===e),s),{interval:2e3,timeout:3*60*1e3}),s},Z=async(e,s=!1)=>{if(F||W)try{if(await xe(e)){p(a=>({...a,[e]:"success"}));const o=await J();U&&(x.close(),x.success(n("payment.customer.invoice.paySuccess"))),o.invoices?.length===0&&($(!1),N(Q,e,L))}}catch(i){console.error("Check payment status failed:",i),p(o=>({...o,[e]:"error"}))}finally{v(!1)}else s&&(_(i=>({...i,[e]:!0})),p(i=>({...i,[e]:"processing"})))};d.useEffect(()=>{if(!j||F||W)return;const e=({response:s})=>{const o=`${r||s.customer_id}-${s.currency_id}`;(r&&s.subscription_id===r||u&&u===s.customer_id||C.current&&C.current===s.customer_id)&&(pe[o]||(ye(a=>({...a,[o]:1})),he(s.currency_id)))};return j.on("invoice.paid",e),()=>{j.off("invoice.paid",e)}},[j,r,u]);const ee=e=>{const{currency:s,method:i}=e;if(i.type==="stripe"){x.error(n("payment.subscription.overdue.notSupport"));return}if(!G&&(de(s.id),v(!0),p(o=>({...o,[s.id]:"idle"})),["arcblock","ethereum","base"].includes(i.type))){const o={currencyId:s.id};r?o.subscriptionId=r:u&&(o.customerId=u),R.open({locale:ae,containerEl:void 0,saveConnect:!1,action:"collect-batch",prefix:w(z(),"/api/did"),useSocket:!F,extraParams:o,messages:{scan:n("common.connect.defaultScan"),title:n("payment.customer.invoice.payBatch"),confirm:n("common.connect.confirm")},onSuccess:()=>{R.close(),Z(s.id),v(!1),p(a=>({...a,[s.id]:"success"}))},onClose:()=>{R.close(),v(!1)},onError:a=>{x.error(Te(a)),p(m=>({...m,[s.id]:"error"})),v(!1)}})}},k=()=>{$(!1),g.onClose?.()},te=e=>{y.onClick?(e.preventDefault(),y.onClick(e)):y.enabled||(e.preventDefault(),k())};if(ve)return null;const re=()=>y.title?y.title:n(r?"payment.subscription.overdue.view":"payment.customer.pastDue.view"),ne=(e,s=!0,i={variant:"contained"})=>{const{currency:o}=e,a=G&&le===o.id,m=fe[o.id]||"idle";if(m==="success")return t.jsx(M,{variant:i?.variant||"contained",size:"small",onClick:()=>Y(o.id),...s?{}:{color:"success",startIcon:t.jsx(Ce,{})},children:n("payment.subscription.overdue.paid")});if(e.method.type==="stripe"){let B=n("payment.subscription.overdue.payNow");return m==="error"?B=n("payment.subscription.overdue.retry"):m==="processing"&&(B=n("payment.subscription.overdue.processing")),t.jsx(_e,{subscriptionId:r,customerId:r?void 0:u,currencyId:o.id,paymentMethod:e.method,onSuccess:()=>{Z(o.id,!0)},onError:()=>{p(b=>({...b,[o.id]:"error"})),_(b=>({...b,[o.id]:!1}))},children:(b,oe)=>t.jsx(ce,{variant:i?.variant||"contained",size:"small",disabled:oe||m==="processing",loading:oe||m==="processing",onClick:b,sx:i?.sx,children:B})})}return t.jsx(ce,{variant:i?.variant||"contained",size:"small",disabled:a,loading:a,onClick:()=>ee(e),sx:i?.sx,children:n(m==="error"?"payment.subscription.overdue.retry":"payment.subscription.overdue.payNow")})},A=e=>e.name&&e.type!=="arcblock"?` (${e.name})`:"",se=()=>{if(r&&c.subscription)return l.length===1?n("payment.subscription.overdue.title",{name:c.subscription?.description,count:c.invoices?.length,total:H(l[0]?.amount,l[0]?.currency?.decimal),symbol:l[0]?.currency?.symbol,method:A(l[0]?.method)}):n("payment.subscription.overdue.simpleTitle",{name:c.subscription?.description,count:c.invoices?.length});if(u){let e="";return l.length===1?e=n("payment.customer.overdue.title",{subscriptionCount:c.subscriptionCount||0,count:c.invoices?.length,total:H(l[0]?.amount,l[0]?.currency?.decimal),symbol:l[0]?.currency?.symbol,method:A(l[0]?.method)}):e=n("payment.customer.overdue.simpleTitle",{subscriptionCount:c.subscriptionCount||0,count:c.invoices?.length}),V?`${e}${V}`:`${e}${n("payment.customer.overdue.defaultAlert")}`}return""},be=()=>r&&c.subscription?n("payment.subscription.overdue.empty",{name:c.subscription?.description}):n("payment.customer.overdue.empty");return O==="custom"&&P&&typeof P=="function"?t.jsx(h,{children:P(ee,{subscription:c?.subscription,summary:c?.summary,invoices:c?.invoices,subscriptionCount:c?.subscriptionCount,detailUrl:I})}):t.jsx(Se,{PaperProps:{style:{minHeight:"auto"}},...g||{},open:me,title:g?.title||n("payment.subscription.overdue.pastDue"),sx:{"& .MuiDialogContent-root":{pt:0}},onClose:k,children:X?t.jsx(ie,{severity:"error",children:X.message}):t.jsxs(h,{sx:{gap:1},children:[l.length===0&&t.jsxs(t.Fragment,{children:[t.jsx(ie,{severity:"success",children:be()}),t.jsx(h,{direction:"row",sx:{justifyContent:"flex-end",mt:2},children:t.jsx(M,{variant:"outlined",color:"primary",onClick:k,sx:{width:"fit-content"},children:n("common.know")})})]}),l.length===1&&t.jsxs(t.Fragment,{children:[t.jsxs(S,{variant:"body1",sx:{color:"text.secondary"},children:[se(),y.enabled&&t.jsxs(t.Fragment,{children:[t.jsx("br",{}),n("payment.subscription.overdue.description"),t.jsx("a",{href:I,target:"_blank",onClick:te,rel:"noreferrer",style:{color:E.palette.text.link},children:re()})]})]}),t.jsxs(h,{direction:"row",sx:{justifyContent:"flex-end",gap:2,mt:2},children:[t.jsx(M,{variant:"outlined",color:"primary",onClick:k,children:n("common.cancel")}),ne(l[0])]})]}),l.length>1&&t.jsxs(t.Fragment,{children:[t.jsxs(S,{variant:"body1",sx:{color:"text.secondary"},children:[se(),y.enabled&&t.jsxs(t.Fragment,{children:[t.jsx("br",{}),n("payment.subscription.overdue.description"),t.jsx("a",{href:I,target:"_blank",rel:"noreferrer",onClick:te,style:{color:E.palette.text.link},children:re()})]})]}),t.jsx(S,{variant:"body1",sx:{color:"text.secondary"},children:n("payment.subscription.overdue.list")}),t.jsx(h,{children:l.map(e=>t.jsxs(h,{direction:"row",sx:{justifyContent:"space-between",alignItems:"center",py:1,px:.5,borderBottom:"1px solid",borderColor:"divider","&:hover":{backgroundColor:()=>E.palette.grey[100]},mt:0},children:[t.jsx(S,{children:n("payment.subscription.overdue.total",{total:H(e?.amount,e?.currency?.decimal),currency:e?.currency?.symbol,method:A(e?.method)})}),ne(e,!1,{variant:"text",sx:{color:"text.link"}})]},e?.currency?.id))})]})]})})}export{Oe as O};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as r}from"./create-passport-svg-BwqsyTOz.js";import{C as t}from"./vendor-utils-CFxoplqC.js";import{c as s}from"./index-Dijoh4El.js";const e=o=>r({...o,issuerAvatarUrl:t(window.location.origin,s.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo")});export{e as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t,b1 as b,b4 as k,T as m,am as M,W as s,s as T,U as $,ak as g,bH as f,bI as x,bJ as q,bK as N,bL as L,bM as R,bN as B}from"./vendor-mui-core-B5XNUjey.js";import{V as h,z as F,A as S}from"./vendor-ux-BX9dSNUy.js";import{ar as E,as as P,at as V}from"./index-Dijoh4El.js";import{U as H}from"./ua-parser-DP5omx3I.js";import{a as w}from"./vendor-react-CUXIiAnY.js";import{a as G}from"./vendor-hooks-U4TTuKG0.js";import{W as j}from"./did-address-Qmm0nyiR.js";import{p as J}from"./util-DSnAozzs.js";import{u as K}from"./team-HgvOpVEJ.js";function Y(e){return!e||typeof e!="string"?"break-all":e.includes(" ")?"break-word":"break-all"}function z({logo:e="",name:r="",description:n="",size:l=40,variant:a="rounded",sx:d={},className:p="",logoName:u="",tooltip:o=null}){const i={width:l,height:l,...d},y=typeof r=="string"?r:e,v=t.jsxs(b,{direction:"row",spacing:1,className:`info-card-wrapper ${p}`,sx:{alignItems:"center",cursor:o?"pointer":"default"},children:[e?t.jsx(k,{src:e,alt:u??y,variant:a,sx:i}):t.jsx(k,{variant:a,sx:i,children:y?.slice(0,1)}),t.jsxs(b,{direction:"column",sx:{alignItems:"flex-start",justifyContent:"space-around",wordBreak:Y(r),minWidth:{xs:100,sm:140}},children:[t.jsx(m,{variant:"body1",component:"div",sx:{color:"text.primary"},children:r}),n&&t.jsx(m,{variant:"subtitle1",sx:{color:"text.secondary"},children:n})]})]});return o?t.jsx(M,{title:o,placement:"top-start",slotProps:{tooltip:{sx:{bgcolor:c=>c.palette.mode==="dark"?"#2a2e37":"#ffffff",color:c=>c.palette.mode==="dark"?"#ffffff":c.palette.text.primary,boxShadow:"0 2px 10px rgba(0, 0, 0, 0.15)",borderRadius:2,padding:"10px 16px",fontSize:14,maxWidth:400,minWidth:240,wordBreak:"break-word",border:c=>c.palette.mode==="dark"?"1px solid #3a3f48":"1px solid #e0e0e0","& .MuiTooltip-arrow":{color:c=>c.palette.mode==="dark"?"#2a2e37":"#ffffff","&::before":{border:c=>c.palette.mode==="dark"?"1px solid #3a3f48":"1px solid #e0e0e0",backgroundColor:c=>c.palette.mode==="dark"?"#2a2e37":"#ffffff"}}}}},children:v}):v}z.propTypes={logo:s.string,name:s.oneOfType([s.string,s.node]).isRequired,description:s.oneOfType([s.string,s.node]),size:s.oneOfType([s.number,s.string]),variant:s.oneOf(["square","rounded","circular"]),sx:s.object,className:s.string,logoName:s.string,tooltip:s.oneOfType([s.string,s.node])};function _(e){try{if(!e.trim())return{device:{icon:t.jsx(x,{fontSize:"small"}),text:"Unknown Device"},os:{icon:null,text:"Unknown OS"},browser:{icon:t.jsx(f,{fontSize:"small"}),text:"Unknown Browser"}};const n=new H(e).getResult();let l="";const a=e.split(/\s+/).find(o=>o.startsWith("arcwallet"));if(a){const o=a.split("/");o.length>1&&S.coerce(o[1])&&(l=S.coerce(o[1]).version)}const d=(()=>{const{type:o="",model:i=""}=n.device;return o==="mobile"?{icon:t.jsx(q,{fontSize:"small"}),text:i||"Mobile Device"}:o==="tablet"?{icon:t.jsx(N,{fontSize:"small"}),text:i||"Tablet"}:{icon:t.jsx(L,{fontSize:"small"}),text:i||"Desktop"}})(),p=(()=>{const{name:o="",version:i=""}=n.os;return o.toLowerCase().includes("mac")?{icon:t.jsx(R,{fontSize:"small"}),text:`${o} ${i}`}:o.toLowerCase().includes("ios")?{icon:t.jsx(R,{fontSize:"small"}),text:`${o} ${i}`}:o.toLowerCase().includes("android")?{icon:t.jsx(B,{fontSize:"small"}),text:`${o} ${i}`}:o.toLowerCase().includes("windows")?{icon:t.jsx(x,{fontSize:"small"}),text:`${o} ${i}`}:{icon:null,text:o?`${o} ${i}`:"Unknown OS"}})(),u=(()=>{const{name:o="",version:i=""}=n.browser;return{icon:t.jsx(f,{fontSize:"small"}),text:o?`${o} ${i}`:"Unknown Browser"}})();return{device:d,os:p,browser:u,...l?{walletVersion:{icon:null,text:l}}:{}}}catch(r){return console.error("Error parsing user agent:",r),{device:{icon:t.jsx(x,{fontSize:"small"}),text:"Unknown Device"},os:{icon:null,text:"Unknown OS"},browser:{icon:t.jsx(f,{fontSize:"small"}),text:"Unknown Browser"}}}}function C({ua:e}){const r=_(e);return t.jsx(b,{spacing:1,children:Object.entries(r).map(([n,{icon:l,text:a}])=>t.jsxs(g,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.jsx(g,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:l}),t.jsx(m,{variant:"body2",sx:{display:"flex"},children:a})]},n))})}C.propTypes={ua:s.string.isRequired};const Q=()=>{const{t:e}=h(),r={$all:e("common.all"),owner:"Owner",admin:"Admin",member:"Member",guest:"Guest"};return{SYSTEM_ROLES:r,formatRoleName:l=>{const a=(l||"").toLowerCase();return a.startsWith("$")?r[a]||a.slice(1):r[a]||a}}},X=(e,r=!1)=>{const n=r?1:.6;switch(e){case"owner":return`rgba(232, 222, 255, ${n})`;case"admin":return`rgba(227, 242, 253, ${n})`;case"member":return`rgba(232, 245, 233, ${n})`;case"guest":return`rgba(245, 245, 245, ${n})`;default:return`rgba(245, 245, 245, ${n})`}},Z=T($)(({role:e})=>({backgroundColor:X(e.toLowerCase()),color:"#000000"})),ee=e=>{switch(e){case"valid":return r=>r.palette.success.light;case"expired":return r=>r.palette.text.disabled;case"revoked":return r=>r.palette.error.light;default:return r=>r.palette.warning.light}},re=T($)(({theme:e,status:r})=>({backgroundColor:ee(r)(e),color:"#FFFFFF"}));function U({did:e}){return t.jsx(j,{size:14,responsive:!1,compact:!0,copyable:!1,did:e})}U.propTypes={did:s.string.isRequired};function I({timestamp:e,locale:r}){return t.jsx(g,{sx:{minWidth:"100px"},children:t.jsx(F,{value:e,locale:r})})}I.propTypes={timestamp:s.number.isRequired,locale:s.string.isRequired};function W({name:e="",role:r}){const{formatRoleName:n}=Q();return t.jsx(Z,{label:n(e||r),size:"small",role:e||r,sx:{borderRadius:1}})}W.propTypes={role:s.string.isRequired,name:s.string};function O({status:e}){const{t:r}=h();return t.jsx(re,{label:r(`team.passport.statusMap.${e}`),size:"small",status:e,sx:{borderRadius:1}})}O.propTypes={status:s.string.isRequired};function A({source:e}){const{t:r}=h();return e?r(`team.passport.sourceMaps.${e}`):"-"}A.propTypes={source:s.string.isRequired};function D({user:e,size:r="default",tooltip:n=!1,inService:l=!1}){const{teamDid:a}=K(),d=w.useMemo(()=>J(e.avatar,a,l),[e.avatar,a,l]),p=w.useMemo(()=>t.jsx(j,{did:e?.did,compact:!0,responsive:!1,sx:{whiteSpace:"nowrap"},size:12}),[e?.did]),u=G(()=>({...e,avatar:d}),[e,d]);return r==="small"?t.jsx(z,{variant:"circular",logo:d,name:t.jsx(m,{sx:{maxWidth:320,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},className:"customer-link-name",children:e.fullName||e.email}),...r==="small"?{tooltip:n?t.jsx(j,{did:e?.did}):!1,size:24}:{description:p,size:36}}):t.jsx(E,{user:u,avatarSize:r==="small"?24:36,cardType:V.Detailed,infoType:P.Minimal,sx:{padding:0,border:"none"},showDid:!0,didProps:{compact:!0,responsive:!1},showHoverCard:!1})}D.propTypes={user:s.object.isRequired,size:s.string,tooltip:s.bool,inService:s.bool};const te=w.memo(D),ue=e=>t.jsx(U,{did:e}),me=(e,r)=>t.jsx(W,{name:e,role:r}),fe=e=>t.jsx(O,{status:e}),xe=(e,r)=>t.jsx(I,{timestamp:e,locale:r}),be=e=>t.jsx(A,{source:e}),ge=(e,r=!1)=>t.jsx(te,{user:e,inService:r}),we=e=>t.jsx(C,{ua:e});export{me as a,fe as b,xe as c,be as d,we as e,ue as f,ge as r,Q as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./vendor-mui-core-B5XNUjey.js";import{C as t}from"./vendor-utils-CFxoplqC.js";import{I as s}from"./iframe-DbxlfoSv.js";import{c as e}from"./index-Dijoh4El.js";import{S as m}from"./studio-BKkw9WY-.js";import"./vendor-react-CUXIiAnY.js";import"./vendor-ux-BX9dSNUy.js";import"./vendor-hooks-U4TTuKG0.js";import"./lottie-web-4koyQiv_.js";import"./vendor-arcblock-D4Rvz_D3.js";import"./index-BRGQOPmE.js";function L(){const r=new URLSearchParams;r.set("title","Preference Builder"),r.set("schemaKey",t(window.location.origin,e.WELLKNOWN_SERVICE_PATH_PREFIX,"/api/studio/preferences"));const i=`${t(window.location.origin,e.WELLKNOWN_SERVICE_PATH_PREFIX,"/hosted/form-builder/")}?${r.toString()}`;return o.jsx(m,{children:o.jsx(s,{url:i,width:"100%",height:"100%",frameBorder:0,styles:{border:0}})})}export{L as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./vendor-mui-core-B5XNUjey.js";import{$ as o}from"./user-center-BODNsVgb.js";import{H as i}from"./index-Dijoh4El.js";import{V as e}from"./vendor-ux-BX9dSNUy.js";import"./vendor-react-CUXIiAnY.js";import"./vendor-hooks-U4TTuKG0.js";import"./vendor-utils-CFxoplqC.js";import"./index-BIFlvVef.js";import"./arrow-down.svg-Dhs0HydJ.js";import"./revoke.svg-CuiCGfVW.js";import"./index-CUIcSX4q.js";import"./index-BOiRUuPB.js";import"./vendor-arcblock-D4Rvz_D3.js";import"./index-DHn4LCaq.js";import"./index-DRYJ0xIl.js";import"./index-BojVbZw0.js";import"./index-C0q1NhNR.js";import"./lottie-web-4koyQiv_.js";function R(){const{t}=e();return r.jsxs(r.Fragment,{children:[r.jsx(i,{children:r.jsx("title",{children:t("pageTitle.userCenter")})}),r.jsx(o,{onlyProfile:!0,currentTab:"",disableAutoRedirect:!0})]})}export{R as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{J as n,j as i,ak as l}from"./vendor-mui-core-B5XNUjey.js";import{j as d,r as c}from"./vendor-react-CUXIiAnY.js";import{V as u,b as h}from"./vendor-ux-BX9dSNUy.js";import g from"./index-Ccjxs0wr.js";import"./vendor-utils-CFxoplqC.js";import"./vendor-hooks-U4TTuKG0.js";import"./lottie-web-4koyQiv_.js";import"./index-Dijoh4El.js";import"./vendor-arcblock-D4Rvz_D3.js";import"./confirm-BIsS5xyi.js";import"./index-DBs9Ljax.js";import"./session-DUT2afHJ.js";import"./did-address-Qmm0nyiR.js";import"./empty-spinner-0EAHJWBW.js";import"./bundle-avatar-CfVy3gda.js";import"./shorten-label-DhOty_4j.js";import"./list-header-BQo9L_6R.js";import"./click-to-copy-DXHOGoUP.js";import"./question-mark-circle.svg-DK9nTUDZ.js";import"./useSetState-cWrp7qoX.js";import"./engine-Cx3nUUOw.js";import"./api-Cjc501Es.js";import"./vendor-mui-x-DtPl0qBm.js";import"./react-beautiful-dnd.esm-Cvsu51oI.js";import"./raf-schd.esm-JNUhxcps.js";import"./wait-connect-CCXiMHZY.js";import"./get-safe-url-pZvXlaJu.js";import"./item-Bpf_gGYt.js";import"./delete-confirm-DSQSBte5.js";import"./index-BOiRUuPB.js";import"./index-Dnont80V.js";import"./index-CIvZ7HIX.js";const r=new URL(window.location.href),s=r.searchParams.get("mode")==="dialog",w=s?"":r.searchParams.get("padding")||"";function T(){const{t:p}=u(),{componentDid:o}=d(),m=n(t=>t.breakpoints.down("md")),a=t=>{t.stopPropagation(),window.parent.postMessage({event:"resourceDialog.close",componentDid:o},"*")};c.useEffect(()=>{window.parent.postMessage({event:"resourceDialog.loaded",componentDid:o},"*")},[o]);const e=i.jsx(g,{padding:w,initUrl:r});return s?i.jsx(h,{className:"studio-dialog",title:p("blocklet.publish.blockletStudio"),maxWidth:!1,fullWidth:!1,PaperProps:{style:m?{width:"100%",height:window.innerHeight}:{maxWidth:1350,minWidth:930,width:"80%"}},onClose:a,showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:i.jsx(l,{sx:{height:"72vh",overflow:"auto",position:"relative"},children:e})}):e}export{T as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as v}from"./vendor-react-CUXIiAnY.js";import{D,n as B,j as t,W as r,ak as h,T as b,c2 as k,at as T,am as $,c3 as O,c4 as _}from"./vendor-mui-core-B5XNUjey.js";import{B as q,p as J}from"./dashboard-DHhNID_3.js";import{V as L,i as V,U as K,h as Q}from"./vendor-ux-BX9dSNUy.js";import{aH as w,aI as C,_ as X,ac as N,e as f,aJ as Y}from"./index-Dijoh4El.js";import{W as Z}from"./vendor-utils-CFxoplqC.js";import{x as P}from"./index-DRYJ0xIl.js";import{B as S}from"./base-chart-BXspUQ5X.js";import{B as ee}from"./bundle-avatar-CfVy3gda.js";import"./vendor-arcblock-D4Rvz_D3.js";import"./vendor-hooks-U4TTuKG0.js";import"./session-DUT2afHJ.js";import"./index-DBs9Ljax.js";import"./team-HgvOpVEJ.js";import"./isURL-wZZwzwyC.js";import"./use-app-logo-D9eQSUYq.js";import"./useAsyncRetry-CSW1hopB.js";import"./useAsync-DNDhrs-2.js";import"./useSetState-cWrp7qoX.js";import"./index-BRGQOPmE.js";import"./over-due-invoice-payment-EIjXZOAF.js";import"./useLocalStorage-oIIa9C3F.js";import"./confirm-BIsS5xyi.js";import"./get-safe-url-pZvXlaJu.js";import"./passport-BcfDxGFq.js";import"./create-passport-svg-BwqsyTOz.js";import"./spaces-DM95DgFM.js";import"./api-Cjc501Es.js";import"./lottie-web-4koyQiv_.js";import"./index-DK4Rvfj9.js";function U({title:i="",cpus:y=[],currentLoad:s=0,history:p=[],empty:l=null,onHover:u=()=>{},hoverIndex:a=null}){const{t:d,locale:x}=L(),e=D(),n=`${i||d("common.cpu")} (${Math.floor(s||0)}%)`,o=100,m=80,c=H=>`${H}%`,M=[{max:m,color:B(e.palette.primary.main,e.palette.mode==="dark"?.15:.08)},{min:m,max:100,color:B(e.palette.warning.main,e.palette.mode==="dark"?.18:.12)},{min:100,color:B(e.palette.error.main,e.palette.mode==="dark"?.25:.18)}],j={silent:!0,symbol:["none","none"],data:[{yAxis:100,lineStyle:{color:e.palette.error.main,type:"dashed",width:1.5},label:{formatter:`${c(100)}`,position:"insideEndTop",color:e.palette.text.secondary,padding:[2,4],borderRadius:2}},{yAxis:m,lineStyle:{color:e.palette.warning.light,type:"dashed",width:1.5},label:{formatter:`${c(m)}`,position:"insideEndTop",color:e.palette.text.secondary,padding:[2,4],borderRadius:2}}]},I=t.jsx("span",{children:`${d("system.cores")}: ${y?.length||0}`}),R=H=>w(Number(H),"HH:mm",x);return t.jsx(S,{title:n,total:o,history:p,valueFn:c,xAxisFormat:R,visualMapPieces:M,markLineData:j,extraInfo:I,empty:l,onHover:u,hoverIndex:a})}U.propTypes={title:r.string,cpus:r.array,currentLoad:r.number,history:r.array,empty:r.node,onHover:r.func,hoverIndex:r.number};function z({instanceCount:i=null,title:y="",total:s=null,used:p=null,history:l=[],empty:u=null,onHover:a=()=>{},hoverIndex:d=null}){const{t:x,locale:e}=L(),n=D(),o=!!s,m=s-p,c=o?`(${C(p)}, ${Math.floor(p/s*100)}%)`:"",M=`${y||x("common.memory")} ${c}`,j=Math.ceil(s*.8),I=g=>P(g,{short:!0,iec:!0}),R=[];i&&R.push({title:x("system.instances"),metric:i}),o&&R.push({title:x("system.free"),metric:I(m)});const H=[{max:j,color:B(n.palette.primary.main,n.palette.mode==="dark"?.15:.08)},{min:j,max:s,color:B(n.palette.warning.main,n.palette.mode==="dark"?.18:.12)},{min:s,color:B(n.palette.error.main,n.palette.mode==="dark"?.25:.18)}],F={silent:!0,symbol:["none","none"],data:[{yAxis:s,lineStyle:{color:n.palette.error.main,type:"dashed",width:1.5},label:{formatter:`${I(s)}`,position:"insideEndTop",color:n.palette.text.secondary,padding:[2,4],borderRadius:2}},{yAxis:j,lineStyle:{color:n.palette.warning.light,type:"dashed",width:1.5},label:{formatter:`${I(j)}`,position:"insideEndTop",color:n.palette.text.secondary,padding:[2,4],borderRadius:2}}]},A=t.jsx(t.Fragment,{children:R.map((g,G)=>t.jsxs(h,{sx:{marginLeft:G===0?0:1,display:"inline-flex"},children:[g.title,": ",g.metric]},g.title))}),W=g=>w(Number(g),"HH:mm",e);return t.jsx(S,{title:M,total:s,history:l,valueFn:I,xAxisFormat:W,visualMapPieces:H,markLineData:F,extraInfo:A,empty:u,onHover:a,hoverIndex:d})}z.propTypes={title:r.string,instanceCount:r.number,total:r.number,used:r.number,history:r.array,empty:r.node,onHover:r.func,hoverIndex:r.number};function E({blocklet:i,cpuHistory:y=[],memoryHistory:s=[],...p}){const{t:l}=L(),{info:u}=X(),{runtimeHistory:a}=N(),[d,x]=v.useState(null),e=v.useCallback(o=>i.status!=="running"?t.jsx(b,{children:l("blocklet.runtimeInfo.noRunning")}):o.length?null:t.jsx(V,{children:l("common.empty")}),[i.status,l]),n=v.useCallback(o=>{x(o)},[]);return a.length===0?t.jsx(b,{children:l("blocklet.runtimeInfo.noRunning")}):t.jsxs(te,{component:"div",...p,memoryHistory:s,cpuHistory:y,children:[t.jsxs(k,{className:"page-metrics",container:!0,spacing:5,children:[t.jsx(k,{sx:{pt:"16px !important"},size:12,children:t.jsx(b,{sx:{fontSize:"16px",fontWeight:"bold"},children:"CPU"})}),a?.map(o=>t.jsx(k,{sx:{pt:"16px !important"},size:{lg:4,md:6,sm:6,xs:12},children:t.jsx(U,{title:`${o.name} CPU`,empty:e(o.cpu),currentLoad:o.appRuntimeInfo?.cpuUsage||0,cpus:o.appRuntimeInfo?.cpus||[],history:o.cpu,onHover:n,hoverIndex:d,style:{height:150}})},`${o.key}-cpu`))]}),t.jsxs(k,{className:"page-metrics",container:!0,spacing:5,sx:{mt:1},children:[t.jsx(k,{sx:{pt:"16px !important"},size:12,children:t.jsx(b,{sx:{fontSize:"16px",fontWeight:"bold"},children:"Memory"})}),a?.map(o=>t.jsx(k,{sx:{pt:"16px !important"},size:{lg:4,md:6,sm:6,xs:12},children:t.jsx(z,{title:`${o.name} Memory`,empty:e(o.memory),total:u.runtimeConfig?.blockletMaxMemoryLimit?P.parseSize(`${u.runtimeConfig.blockletMaxMemoryLimit*(o.key===i?.meta?.did?a.length-1:1)}MiB`):0,used:o.appRuntimeInfo?.memoryUsage||0,history:o.memory,onHover:n,hoverIndex:d,style:{height:150}})},`${o.key}-memory`))]})]})}E.propTypes={blocklet:r.object.isRequired,cpuHistory:r.arrayOf(r.shape({date:r.number,value:r.number})),memoryHistory:r.arrayOf(r.shape({date:r.number,value:r.number}))};const te=T(b)``;function Ce(){const{t:i,locale:y}=L(),[s,p]=v.useState(6),{blocklet:l,actions:{refreshBlocklet:u}}=N(),a=v.useMemo(()=>{const e=[];return f.forEachBlockletSync(l,(n,{ancestors:o,id:m,level:c})=>{n?.meta?.did&&n.meta.did!==l.meta.did&&e.push({type:"blocklet",groupId:l.meta.did,groupName:f.getDisplayName(l),id:m,name:f.getDisplayName(n,!0),blocklet:l,component:n,level:c-1>=0?c-1:0,runtimeInfo:n.runtimeInfo,ancestors:o})}),e},[l]);v.useEffect(()=>{u({hours:s});const e=setInterval(()=>{u({hours:s})},1e3*10);return()=>{clearInterval(e)}},[s]);const d=e=>J(Number(e||0),{locale:Y(y)}),x=[{label:i("common.name"),name:"name",options:{customBodyRenderLite(e){const{name:n,component:o,level:m,ancestors:c}=a[e];return t.jsxs(h,{sx:{display:"flex",alignItems:"center",pl:m*2},children:[t.jsx(ee,{size:20,blocklet:o,ancestors:c}),t.jsx(h,{sx:{ml:1},children:n}),t.jsx(q,{variant:"pin",style:{marginLeft:8},status:f.isBlockletRunning(o)?"running":o.status,source:o.source,progress:o.progress})]})}}},{label:i("common.uptime"),name:"runtimeInfo.uptime",options:{customBodyRenderLite(e){const{runtimeInfo:n,component:o}=a[e];return f.isBlockletRunning(o)?d(n?.uptime):t.jsx($,{title:i("common.noData"),children:"--"})}}},{label:i("blocklet.runtimeInfo.memoryUsage"),name:"runtimeInfo.memoryUsage",options:{customBodyRenderLite(e){const{runtimeInfo:n,component:o}=a[e];return f.isBlockletRunning(o)?C(n?.memoryUsage||0):t.jsx($,{title:i("common.noData"),children:"--"})}}},{label:i("blocklet.runtimeInfo.cpuUsage"),name:"runtimeInfo.cpuUsage",options:{customBodyRenderLite(e){const{runtimeInfo:n,component:o}=a[e];return f.isBlockletRunning(o)?`${(n?.cpuUsage||0).toFixed(1)}%`:t.jsx($,{title:i("common.noData"),children:"--"})}}},{label:i("analytics.runtime"),name:"runtimeInfo.runtime",options:{customBodyRenderLite(e){const{runtimeInfo:n}=a[e];return n?.uptime?t.jsxs(h,{sx:{display:"flex",alignItems:"center"},children:[t.jsx(K,{icon:n?.runningDocker?"catppuccin:docker-ignore":"logos:nodejs-icon"}),t.jsx(h,{sx:{ml:1},children:n?.runningDocker?"Docker":"Nodejs"})]}):null}}},{label:i("blocklet.runtimeInfo.processId"),name:"runtimeInfo.pid",options:{customBodyRenderLite(e){const{runtimeInfo:n,component:o}=a[e];return f.isBlockletRunning(o)?n?.pid:t.jsx($,{title:i("common.noData"),children:"--"})}}},{label:i("blocklet.runtimeInfo.port"),name:"runtimeInfo.port",options:{customBodyRenderLite(e){const{runtimeInfo:n,component:o}=a[e];return f.isBlockletRunning(o)?n?.port:t.jsx($,{title:i("common.noData"),children:"--"})}}}];return t.jsxs(ne,{component:"div",children:[t.jsxs(h,{sx:{display:"flex",justifyContent:"space-between",flexDirection:"row",mb:2},children:[t.jsx(b,{component:"h3",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},sx:{mb:2},children:i("analytics.trend")}),t.jsx(O,{size:"small",exclusive:!0,value:s,onChange:(e,n)=>{Z(n)&&p(n)},children:[1,3,6,12,24].map(e=>t.jsxs(_,{value:e,children:[e,"H"]},e))})]}),t.jsx(h,{children:t.jsx(E,{blocklet:l})}),t.jsx(h,{sx:{mt:3},children:t.jsx(Q,{title:i("analytics.detail"),className:"monitor-table",locale:y,data:a,columns:x,options:{search:!1,download:!1,filter:!1,print:!1,viewColumns:!1,pagination:!1,rowsPerPage:100}})})]})}const ne=T(b)``;export{Ce as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as o}from"./index-Dijoh4El.js";const e=o();export{e as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o}from"./vendor-react-CUXIiAnY.js";import{Z as t}from"./index-Dijoh4El.js";function s(){return o.useContext(t)}export{s as u};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import{D as h,j as t,aY as u,aT as f,at as g,ak as j}from"./vendor-mui-core-B5XNUjey.js";import{c as S,N as y,e as E,S as N}from"./index-Dijoh4El.js";import{C as P}from"./config-space-3dNLmLWy.js";import{H as b}from"./addon-B5NG3IsS.js";import{P as W,L as v}from"./vendor-arcblock-D4Rvz_D3.js";import{u as L,W as k}from"./wizard-components-MqkmgXy5.js";import"./vendor-react-CUXIiAnY.js";import"./vendor-ux-BX9dSNUy.js";import"./vendor-utils-CFxoplqC.js";import"./vendor-hooks-U4TTuKG0.js";import"./lottie-web-4koyQiv_.js";import"./spaces-DM95DgFM.js";import"./api-Cjc501Es.js";import"./question-mark-circle.svg-DK9nTUDZ.js";import"./get-safe-url-pZvXlaJu.js";import"./use-server-logo-BfNy3Xkj.js";import"./server-logo-notext.svg-DHxZ1bRk.js";import"./use-mobile-Vtj5nBdp.js";function Q(){const s=h(),a=`${S.WELLKNOWN_SERVICE_PATH_PREFIX}/setup`,{meta:e,blocklet:o,launcherSession:r,steps:i,stepIndex:l,totalSteps:p,logoUrl:n,logo:m,t:d,onNext:c,onPrevious:x}=L(a);return t.jsx(W,{steps:p,children:t.jsx(y,{children:t.jsxs(P,{children:[t.jsx(u,{styles:w}),t.jsx(C,{children:t.jsx(v,{locale:"zh",loading:!1,blockletMeta:{...e,title:E.getDisplayName({...o,meta:e})},navLogo:m,pcWidth:"80%",style:{height:"100%"},logoUrl:n,useOfSkeleton:!1,extraNav:null,headerEndAddons:t.jsx(b,{SessionContext:N,sessionManagerProps:{disableLogout:!0}}),theme:s,launchingText:d("setup.title"),children:t.jsx(k,{blocklet:o,stepIndex:l,steps:i,onNext:c,onPrevious:x,launcherSession:r})})})]})})})}const w=f`
|
|
2
|
-
html,
|
|
3
|
-
body,
|
|
4
|
-
#app,
|
|
5
|
-
#app > .wrapper {
|
|
6
|
-
height: 100%;
|
|
7
|
-
}
|
|
8
|
-
`,C=g(j)`
|
|
9
|
-
/* display: flex;
|
|
10
|
-
min-width: 0;
|
|
11
|
-
flex: 1 1 0; */
|
|
12
|
-
height: 100%;
|
|
13
|
-
|
|
14
|
-
& .layout-content {
|
|
15
|
-
min-width: 0;
|
|
16
|
-
flex: 1 1 0;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
& .ll-header {
|
|
20
|
-
@media (max-width: 960px) {
|
|
21
|
-
padding: 0 12px;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
`;export{Q as default};
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
import{D as V,J as q,j as t,a6 as G,aY as X,ak as c,aZ as Q,at as z,aT as J,P as Y,a_ as Z,a$ as ee,W as w}from"./vendor-mui-core-B5XNUjey.js";import{r as f,L as H}from"./vendor-react-CUXIiAnY.js";import{l as te,a as N}from"./vendor-hooks-U4TTuKG0.js";import{C as E}from"./vendor-utils-CFxoplqC.js";import{V as F,H as U,o as ne,n as _,$ as oe,M as re}from"./vendor-ux-BX9dSNUy.js";import{W as se}from"./did-address-Qmm0nyiR.js";import{o as ie,s as ae}from"./vendor-arcblock-D4Rvz_D3.js";import{d as L,e as g,f as B,h as le,i as ce,j as D,S as de,c as T,a as pe,l as me,m as he,n as ue,P as ge,o as P,p as fe,q as W}from"./index-Dijoh4El.js";import{H as xe}from"./addon-B5NG3IsS.js";import{u as be}from"./use-server-logo-BfNy3Xkj.js";import{g as A}from"./get-safe-url-pZvXlaJu.js";import{O as ke}from"./over-due-invoice-payment-EIjXZOAF.js";import{p as je,S as ye,P as we}from"./starting-progress-aMYWzin8.js";import"./lottie-web-4koyQiv_.js";import"./question-mark-circle.svg-DK9nTUDZ.js";import"./server-logo-notext.svg-DHxZ1bRk.js";import"./use-mobile-Vtj5nBdp.js";function K({appInfo:e,...r}){const[n,s]=f.useState(!1),l=q(x=>x.breakpoints.down("md"))?32:48;return n?t.jsx(oe,{did:e.publisher,size:l}):t.jsx(re,{src:e.icon,alt:e.title,width:l,height:l,...r,onError:()=>s(!0)})}K.propTypes={appInfo:w.object.isRequired};const M=(e,r)=>g.findComponentByIdV2(e,r)||e;function Fe(){const{t:e,locale:r}=F(),[n,s]=te({blocklet:null,component:null,launcherSession:null,loading:!1,starting:!1,manageSubscriptionURL:"",restart:!1}),a=localStorage.getItem("blocklet-server-url"),l=be({onClick:()=>{a&&window.open(A(a,{allowDomains:null}))}}),x=new URL(window.location.href),v=x.searchParams.get("componentId"),$=V(),y=q(o=>o.breakpoints.down("md")),b=()=>{const o=x.searchParams.get("redirect")||"/";window.location.href=A(decodeURIComponent(o))},k=()=>{const o=setInterval(()=>{L.get("/blocklet/detail?nocache=1").then(({data:i})=>{s(R=>({...R,blocklet:i}));const d=M(i,v);if(g.isBlockletRunning(d)){b();return}d.status!=="starting"&&!n.restart&&(s({blocklet:i,starting:!1}),i!==d&&s({component:d}),clearInterval(o))}).catch(i=>{s({loading:!1,restart:!1}),U.error(i.message)})},3e3)},C=()=>{s({restart:!0,starting:!0,loading:!0}),setTimeout(()=>{k()},10)};f.useEffect(()=>{s({loading:!0}),L.get("/blocklet/detail?nocache=1").then(({data:o})=>{const i=M(o,v);if(s({blocklet:o,loading:!1}),g.isBlockletRunning(i)){b();return}s({blocklet:o}),o!==i&&s({component:i}),i.status==="starting"&&(s({starting:!0}),k())}).catch(o=>{s({loading:!1}),U.error(o.message)})},[]);const h=f.useCallback(()=>{s({loading:!0,starting:!0});const o=n.blocklet;if(!o)return;const i={did:o?.meta.did};o.children.length>0&&(i.componentDids=o.children.map(d=>d.meta.did)),B.startBlocklet({input:i}).then(({blocklet:d})=>{s(R=>({...R,blocklet:d})),k()}).catch(d=>{U.error(d.message),s({loading:!1,starting:!1})})},[n.component,n.blocklet]);f.useEffect(()=>{n.blocklet?.controller&&(le({launcherUrl:n.blocklet.controller.launcherUrl,launcherSessionId:n.blocklet.controller.launcherSessionId,locale:r}).then(o=>{s({manageSubscriptionURL:o})}).catch(o=>{console.error("get manage subscription url error",o)}),B.getLauncherSession({input:{launcherSessionId:n.blocklet.controller.launcherSessionId,launcherUrl:n.blocklet.controller.launcherUrl}}).then(o=>{s({launcherSession:o.launcherSession})}).catch(o=>{console.error("get launcher session error",o)}))},[n.blocklet?.controller]);const p=N(()=>n.blocklet?.children?.length,[n.blocklet]),m=N(()=>n.blocklet?.children?.filter(o=>g.isBlockletRunning(o))?.length||0,[n.blocklet]),j=N(()=>p?m?Math.round(Math.max(m/p,.15)*100):5:0,[m,p]);if(!n.blocklet)return t.jsx(ie,{children:t.jsx(G,{})});const u={icon:`${T.WELLKNOWN_SERVICE_PATH_PREFIX}/blocklet/logo`,title:g.getDisplayName(n.blocklet),publisher:n.blocklet.appDid},I=ne(je,n.starting?{width:`${j}%`,"&::after":{width:`${j}%`},"&::before":{width:`${j}%`,animation:"shimmer 1s infinite cubic-bezier(0.4, 0.0, 0.2, 1)","@keyframes shimmer":{"0%":{width:0},"100%":{width:`${j}%`}}}}:{}),S=ce(n.blocklet)||D(n.launcherSession);return t.jsxs(Se,{children:[t.jsx(X,{styles:ve}),t.jsxs("header",{className:"root-header",children:[y?null:t.jsx("div",{className:"left",children:l}),t.jsx(ae,{sx:{background:y?$.palette.background.default:"transparent",display:"flex",alignItems:"center",justifyContent:"flex-end"},children:t.jsx(xe,{SessionContext:de})})]}),t.jsxs(Pe,{elevation:0,children:[t.jsxs(_e,{children:[t.jsx(K,{appInfo:u}),t.jsxs("div",{className:"app-info_content",children:[t.jsx(c,{className:"app-info_name",children:u.title}),t.jsx(se,{size:14,className:"app-info_did",did:u.publisher})]})]}),(n.restart||!S)&&t.jsxs(t.Fragment,{children:[t.jsxs(c,{className:"title-box",children:[t.jsx(c,{className:"icon",children:t.jsx(Q,{})}),t.jsx(c,{className:"title",children:e("blocklet.startApplication")})]}),t.jsx(c,{className:"sub-title",children:n.starting?t.jsx(ye,{blocklets:n.blocklet?.children??[]}):e("blocklet.startDescription",{name:n.component?g.getDisplayName(n.component,!0):g.getDisplayName(n.blocklet)})}),t.jsx(c,{sx:{mt:8,display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:t.jsx(we,{blocklets:n.blocklet?.children??[],status:n.starting?"starting":"",children:t.jsx(_,{sx:I,disabled:n.loading||n.starting,variant:"contained",color:"primary",size:"large",loading:n.starting,onClick:()=>h(),children:t.jsx("span",{style:{position:"relative",zIndex:2},children:n.starting?`(${m}/${p}) ${e("blocklet.starting")}`:e("blocklet.start")})})})})]}),S&&!n.restart&&t.jsx(O,{blocklet:n.blocklet,launcherSession:n.launcherSession,manageSubscriptionURL:n.manageSubscriptionURL,handleRestart:C}),t.jsx(c,{sx:{mt:5},children:t.jsx(H,{className:"footer-link",to:`${T.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/overview`,children:e("blocklet.dashboard")})})]})]})}function O({blocklet:e,launcherSession:r,manageSubscriptionURL:n,handleRestart:s}){const{t:a,locale:l}=F(),{connectApi:x,session:v}=pe(),{refreshSubscription:$}=me(),[y,b]=f.useState(!1),[k,C]=f.useState("");if(f.useEffect(()=>{if(e?.controller?.launcherUrl&&D(r)){const j=E(e.controller.launcherUrl,"__blocklet__.js?type=json");fetch(j).then(u=>u.json()).then(u=>{const I=u.componentMountPoints?.find(o=>o.did==="z2qaCNvKMv5GjouKdcDWexv6WqtHbpNPQDnAk")?.mountPoint,S=E(e.controller.launcherUrl,I);C(S)})}},[e?.controller?.launcherUrl,r]),!e||!r)return"";const h=D(r),p=!h&&he(e,r),m=!h&&ue(e,r);return!p&&!m&&!h?"":t.jsxs(t.Fragment,{children:[y&&k&&r&&t.jsx(ge,{session:v,connect:x,baseUrl:k,authToken:r.subscription.authToken,children:t.jsx(ke,{dialogProps:{open:y,onClose:()=>b(!1)},subscriptionId:r.subscription.id,successToast:!0,onPaid:()=>{L.post("/blocklet/start?fromSetup=1"),$(),s(),b(!1)}})}),t.jsxs(c,{className:"title-box",children:[t.jsx(Z,{className:"icon-error"}),t.jsxs(c,{className:"title error",children:[p&&a("blocklet.suspended"),m&&a("blocklet.terminated"),h&&a("blocklet.suspended")]})]}),t.jsxs(c,{className:"sub-title",children:[p&&a("blocklet.suspendedCausedByExpired",{deadline:P(r?.reservedUntil,l),canceledAt:P((r?.subscription?.canceled_at||0)*1e3,l)}),m&&a("blocklet.suspendedCausedByTerminated",{canceledAt:P(r?.terminatedAt,l),deadline:fe(r?.terminatedAt,l)}),h&&a("blocklet.suspendedCausedByPastDue",{deadline:P(r?.reservedUntil,l)})]}),t.jsxs(c,{sx:{mt:8},children:[h&&!W(r)&&t.jsx(_,{style:{minWidth:200},variant:"contained",color:"primary",size:"large",onClick:()=>b(!0),children:a("blocklet.payNow")}),(p||W(r))&&t.jsx(_,{component:ee,style:{minWidth:200},variant:"contained",color:"primary",size:"large",target:"_blank",href:n||"#",children:a("blocklet.manageSubscription")}),m&&t.jsx(_,{component:H,to:E(T.WELLKNOWN_SERVICE_PATH_PREFIX,"/admin/did-spaces"),style:{minWidth:200},variant:"contained",color:"primary",size:"large",children:a("common.backup")})]})]})}O.propTypes={blocklet:w.object.isRequired,launcherSession:w.object.isRequired,manageSubscriptionURL:w.string.isRequired,handleRestart:w.func.isRequired};const ve=J`
|
|
2
|
-
html,
|
|
3
|
-
body,
|
|
4
|
-
#app,
|
|
5
|
-
#app > .wrapper {
|
|
6
|
-
height: 100%;
|
|
7
|
-
}
|
|
8
|
-
`,Se=z.div`
|
|
9
|
-
width: 100vw;
|
|
10
|
-
height: 100%;
|
|
11
|
-
background: ${({theme:e})=>e.palette.mode==="dark"?e.palette.background.default:e.palette.grey[100]};
|
|
12
|
-
display: flex;
|
|
13
|
-
justify-content: center;
|
|
14
|
-
align-items: center;
|
|
15
|
-
|
|
16
|
-
.root-header {
|
|
17
|
-
position: fixed;
|
|
18
|
-
z-index: 200;
|
|
19
|
-
top: 0;
|
|
20
|
-
display: flex;
|
|
21
|
-
width: 100%;
|
|
22
|
-
height: 68px;
|
|
23
|
-
align-items: center;
|
|
24
|
-
justify-content: flex-end;
|
|
25
|
-
padding: 24px;
|
|
26
|
-
max-width: 1245px;
|
|
27
|
-
|
|
28
|
-
${e=>e.theme.breakpoints.down("md")} {
|
|
29
|
-
padding: 14px 16px;
|
|
30
|
-
height: 56px;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.left {
|
|
34
|
-
margin-top: 4px;
|
|
35
|
-
margin-right: auto;
|
|
36
|
-
${e=>e.theme.breakpoints.down("md")} {
|
|
37
|
-
margin-top: 0%;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.right {
|
|
42
|
-
display: flex;
|
|
43
|
-
align-items: center;
|
|
44
|
-
${e=>e.theme.breakpoints.down("md")} {
|
|
45
|
-
button,
|
|
46
|
-
a {
|
|
47
|
-
padding-left: 8px;
|
|
48
|
-
padding-right: 8px;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
`,Pe=z(Y)`
|
|
54
|
-
width: 80vw;
|
|
55
|
-
max-width: 1245px;
|
|
56
|
-
height: 80vh;
|
|
57
|
-
box-sizing: border-box;
|
|
58
|
-
padding: 32px;
|
|
59
|
-
&.MuiPaper-rounded {
|
|
60
|
-
border-radius: 8px;
|
|
61
|
-
}
|
|
62
|
-
position: relative;
|
|
63
|
-
display: flex;
|
|
64
|
-
justify-content: center;
|
|
65
|
-
align-items: center;
|
|
66
|
-
flex-direction: column;
|
|
67
|
-
|
|
68
|
-
${e=>e.theme.breakpoints.down("md")} {
|
|
69
|
-
width: 100vw;
|
|
70
|
-
height: 100%;
|
|
71
|
-
left: 0;
|
|
72
|
-
top: 0;
|
|
73
|
-
padding: 32px 0;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.MuiIconButton-root {
|
|
77
|
-
svg {
|
|
78
|
-
fill: #888;
|
|
79
|
-
}
|
|
80
|
-
&.Mui-disabled {
|
|
81
|
-
opacity: 0.4;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.title-box {
|
|
86
|
-
display: flex;
|
|
87
|
-
align-items: center;
|
|
88
|
-
${e=>e.theme.breakpoints.down("md")} {
|
|
89
|
-
margin-top: 60px;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.icon {
|
|
94
|
-
display: inline-flex;
|
|
95
|
-
justify-content: center;
|
|
96
|
-
align-items: center;
|
|
97
|
-
width: 32px;
|
|
98
|
-
height: 32px;
|
|
99
|
-
border-radius: 100%;
|
|
100
|
-
background-color: ${e=>e.theme.palette.primary.main};
|
|
101
|
-
color: ${e=>e.theme.palette.common.white};
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.icon-error {
|
|
105
|
-
width: 32px;
|
|
106
|
-
height: 32px;
|
|
107
|
-
color: ${e=>e.theme.palette.error.main};
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.title {
|
|
111
|
-
margin-left: 12px;
|
|
112
|
-
color: ${e=>e.theme.palette.primary.main};
|
|
113
|
-
font-size: 24px;
|
|
114
|
-
font-weight: bolder;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.error {
|
|
118
|
-
color: ${e=>e.theme.palette.error.main};
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.sub-title {
|
|
122
|
-
margin-top: 24px;
|
|
123
|
-
color: ${e=>e.theme.palette.grey[700]};
|
|
124
|
-
font-size: 16px;
|
|
125
|
-
max-width: 460px;
|
|
126
|
-
text-align: center;
|
|
127
|
-
word-break: break-word;
|
|
128
|
-
hyphens: auto;
|
|
129
|
-
|
|
130
|
-
${e=>e.theme.breakpoints.down("md")} {
|
|
131
|
-
padding: 0 32px;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.footer-link {
|
|
136
|
-
color: ${e=>e.theme.palette.primary.main};
|
|
137
|
-
}
|
|
138
|
-
`,_e=z.div`
|
|
139
|
-
display: flex;
|
|
140
|
-
align-items: center;
|
|
141
|
-
position: absolute;
|
|
142
|
-
left: 24px;
|
|
143
|
-
right: 24px;
|
|
144
|
-
top: 24px;
|
|
145
|
-
font-size: 16px;
|
|
146
|
-
font-weight: 500;
|
|
147
|
-
color: #222;
|
|
148
|
-
|
|
149
|
-
/* 禁止 app icon shrink */
|
|
150
|
-
> *:first-child {
|
|
151
|
-
flex: 0 0 auto;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.app-info_content {
|
|
155
|
-
padding-left: 16px;
|
|
156
|
-
overflow: hidden;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.app-info_name {
|
|
160
|
-
max-width: 100%;
|
|
161
|
-
padding-right: 32px;
|
|
162
|
-
line-height: 1;
|
|
163
|
-
white-space: nowrap;
|
|
164
|
-
overflow: hidden;
|
|
165
|
-
text-overflow: ellipsis;
|
|
166
|
-
font-weight: bold;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.app-info_did {
|
|
170
|
-
transform: translate(0, 2px);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.app-info_did .did-address__text {
|
|
174
|
-
color: #666;
|
|
175
|
-
font-size: 14px;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
${e=>e.theme.breakpoints.down("md")} {
|
|
179
|
-
top: 12px;
|
|
180
|
-
.app-info_did {
|
|
181
|
-
transform: translate(0, 0);
|
|
182
|
-
}
|
|
183
|
-
.app-info_did .did-address__text {
|
|
184
|
-
font-size: 12px;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
`;export{Fe as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as b}from"./vendor-react-CUXIiAnY.js";import{j as p,a6 as P,am as w,bZ as j,b_ as k,W as $}from"./vendor-mui-core-B5XNUjey.js";import{l as q}from"./vendor-hooks-U4TTuKG0.js";import{B as d}from"./vendor-utils-CFxoplqC.js";import{r as x}from"./omit-DZEUV_m7.js";import{aF as V,aG as R}from"./index-Dijoh4El.js";import{O as E,V as D}from"./vendor-ux-BX9dSNUy.js";var s={},h;function I(){if(h)return s;h=1;var u=s&&s.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(s,"__esModule",{value:!0}),s.signResponse=l,s.verifyResponse=_,s.verifyVault=S;const m=u(x),v=u(V()),n=R(),a=E();async function l(e,c){const o=(0,v.default)(e),y=await c.sign(o);return{...e,$signature:y}}function _(e,c){return e.$signature?c.verify((0,v.default)((0,m.default)(e,"$signature")),e.$signature):Promise.resolve(!1)}async function S(e,c,o=!1){if(!Array.isArray(e)||e.length===0){if(o)throw new Error("vaults list is empty");return""}for(let t=1;t<e.length;t++)if(e[t].at<=e[t-1].at){if(o)throw new Error("vaults are not in ascending order");return""}if(new Set(e.map(t=>t.did)).size!==e.length){if(o)throw new Error("vaults list has duplicate vaults");return""}for(let t=0;t<e.length;t++){const r=e[t];if(!(0,a.isFromPublicKey)(r.did,r.pk)){if(o)throw new Error(`vault did and pk mismatch: ${r.did}(${r.pk})`);return""}let f=d.from(`vault:${c}`);for(let i=0;i<=t;i++)f=d.concat([f,d.from(`:${e[i].did}`)]);if(!r.approverSig){if(o)throw new Error(`vault approve signature missing for ${r.did}`);return""}try{let i;if(t>0){const g=e[t-1];i=(0,n.fromPublicKey)(g.pk,(0,a.toTypeInfo)(g.did))}else{if(!r.approverPk||!r.approverDid||!(0,a.isFromPublicKey)(r.approverDid,r.approverPk)){if(o)throw new Error(`approver config missing for ${r.did}`);return""}i=(0,n.fromPublicKey)(r.approverPk,(0,a.toTypeInfo)(r.approverDid))}if(await i.verify(f,r.approverSig)===!1){if(o)throw new Error(`signature verify failed for ${r.did}`);return""}}catch(i){if(console.error(i),o)throw new Error(`vault approve verify failed: ${i.message}`);return""}if(!r.sig){if(o)throw new Error(`vault commit signature missing for ${r.did}`);return""}try{const i=(0,n.fromPublicKey)(r.pk,(0,a.toTypeInfo)(r.did));if(r.approverSig&&(f=d.concat([f,d.from(`:${r.approverSig}`)])),await i.verify(f,r.sig)===!1){if(o)throw new Error(`commit signature verify failed for ${r.did}`);return""}}catch(i){if(console.error(i),o)throw new Error(`vault commit verify failed: ${i.message}`);return""}}return e[e.length-1].did}return s}var K=I();function T({vaults:u,appPid:m}){const{t:v}=D(),[n,a]=q({verified:!1,verifying:!0,error:""});return b.useEffect(()=>{K.verifyVault(u,m,!0).then(l=>{a({verified:!!l,verifying:!1})}).catch(l=>{a({verified:!1,verifying:!1,error:l.message})})},[u,m,a]),n.verifying?p.jsx(P,{}):n.verified?p.jsx(w,{title:v("blocklet.config.vault.verified"),children:p.jsx(j,{fontSize:"small",color:"success"})}):p.jsx(w,{title:n.error,children:p.jsx(k,{color:"error"})})}T.propTypes={vaults:$.array.isRequired,appPid:$.string.isRequired};export{T as V};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{j as e,bx as V,by as L,bz as d,bA as p,at as c,W as n}from"./vendor-mui-core-B5XNUjey.js";import{r as C,k as H}from"./vendor-react-CUXIiAnY.js";import{V as E,w as m}from"./vendor-ux-BX9dSNUy.js";import{x as u}from"./index-BRGQOPmE.js";import{c as o,k as f}from"./index-Dijoh4El.js";const h=l=>C.createElement("svg",{width:161,height:65,viewBox:"0 0 161 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l},C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M80.0049 26.8423V10.8018H87.7418C89.8347 10.8018 91.5313 12.5033 91.5313 14.6023V15.7551C91.5313 16.7654 91.1382 17.6835 90.4972 18.3642C91.6333 19.0205 92.3982 20.2506 92.3982 21.66V23.0418C92.3982 25.1407 90.7016 26.8423 88.6087 26.8423H80.0049ZM81.6893 17.8594H87.9154C88.997 17.771 89.8473 16.8626 89.8473 15.7551V14.6023C89.8473 13.4362 88.9047 12.4909 87.742 12.4909H81.6893V17.8594ZM81.6893 25.1532V19.5557L88.609 19.5486C89.7717 19.5486 90.7142 20.4939 90.7142 21.66V23.0418C90.7142 24.2079 89.7717 25.1532 88.609 25.1532H81.6893ZM97.2554 10.8018V26.8423H95.4933V10.8018H97.2554ZM105.988 15.133H104.161C102.056 15.133 100.35 16.844 100.35 18.9547V23.0206C100.35 25.1313 102.056 26.8423 104.161 26.8423H105.988C108.092 26.8423 109.799 25.1313 109.799 23.0206V18.9547C109.799 16.844 108.092 15.133 105.988 15.133ZM104.161 16.9003C103.03 16.9003 102.112 17.8201 102.112 18.9547V23.0206C102.112 24.1553 103.03 25.0751 104.161 25.0751H105.988C107.119 25.0751 108.036 24.1553 108.036 23.0206V18.9547C108.036 17.8201 107.119 16.9003 105.988 16.9003H104.161ZM125.204 26.8484V21.0781H127.352L130.674 26.8484H132.709L128.888 20.211L131.881 15.0121H129.846L127.372 19.3108H125.204V10.8018H123.442V26.8484H125.204ZM119.648 19.2672V18.9547C119.648 17.82 118.731 16.9002 117.6 16.9002H115.773C114.641 16.9002 113.724 17.82 113.724 18.9547V23.0206C113.724 24.1552 114.641 25.075 115.773 25.075H117.6C118.731 25.075 119.648 24.1552 119.648 23.0206V22.7081H121.41V23.0206C121.41 25.1313 119.704 26.8423 117.6 26.8423H115.773C113.668 26.8423 111.962 25.1313 111.962 23.0206V18.9547C111.962 16.844 113.668 15.133 115.773 15.133H117.6C119.704 15.133 121.41 16.844 121.41 18.9547V19.2672H119.648ZM137.566 26.8423V10.8018H135.804V26.8423H137.566ZM142.555 21.4703V23.0206C142.555 24.1552 143.472 25.075 144.604 25.075H146.431C147.562 25.075 148.479 24.1552 148.479 23.0206V22.7081H150.241V23.0206C150.241 25.1313 148.535 26.8423 146.431 26.8423H144.604C142.499 26.8423 140.793 25.1313 140.793 23.0206V18.9547C140.793 16.844 142.499 15.133 144.604 15.133H146.431C148.535 15.133 150.241 16.844 150.241 18.9547V19.7031H150.242V21.4703H142.555ZM148.479 19.7031H142.555V18.9547C142.555 17.82 143.472 16.9002 144.604 16.9002H146.431C147.562 16.9002 148.479 17.82 148.479 18.9547V19.7031ZM153.968 17.7853H152.4V16.018H153.968V13.162H155.652V16.018H159.729V17.7853H155.652V23.479C155.652 24.4036 156.399 25.1532 157.321 25.1532C158.243 25.1532 158.991 24.4036 158.991 23.479V23.1274H160.675V23.479C160.675 25.3365 159.174 26.8423 157.321 26.8423C155.469 26.8423 153.968 25.3365 153.968 23.479V17.7853Z",fill:"#121319"}),C.createElement("path",{d:"M91.034 37.2923C90.922 37.4883 90.8006 37.633 90.67 37.7263C90.5486 37.8103 90.3946 37.8523 90.208 37.8523C90.012 37.8523 89.7973 37.7823 89.564 37.6423C89.34 37.493 89.0693 37.3296 88.752 37.1523C88.4346 36.975 88.0613 36.8163 87.632 36.6763C87.212 36.527 86.7126 36.4523 86.134 36.4523C85.6113 36.4523 85.154 36.5176 84.762 36.6483C84.37 36.7696 84.0386 36.9423 83.768 37.1663C83.5066 37.3903 83.3106 37.661 83.18 37.9783C83.0493 38.2863 82.984 38.627 82.984 39.0003C82.984 39.4763 83.1146 39.873 83.376 40.1903C83.6466 40.5076 84.0013 40.7783 84.44 41.0023C84.8786 41.2263 85.378 41.427 85.938 41.6043C86.498 41.7816 87.072 41.973 87.66 42.1783C88.248 42.3743 88.822 42.6076 89.382 42.8783C89.942 43.1396 90.4413 43.4756 90.88 43.8863C91.3186 44.2876 91.6686 44.7823 91.93 45.3703C92.2006 45.9583 92.336 46.6723 92.336 47.5123C92.336 48.427 92.1773 49.2856 91.86 50.0883C91.552 50.8816 91.0946 51.577 90.488 52.1743C89.8906 52.7623 89.158 53.229 88.29 53.5743C87.422 53.9103 86.428 54.0783 85.308 54.0783C84.664 54.0783 84.0293 54.013 83.404 53.8823C82.7786 53.761 82.1766 53.5836 81.598 53.3503C81.0286 53.117 80.492 52.837 79.988 52.5103C79.484 52.1836 79.036 51.8196 78.644 51.4183L79.75 49.6123C79.8433 49.4816 79.9646 49.3743 80.114 49.2903C80.2633 49.197 80.422 49.1503 80.59 49.1503C80.8233 49.1503 81.0753 49.2483 81.346 49.4443C81.6166 49.631 81.9386 49.841 82.312 50.0743C82.6853 50.3076 83.1193 50.5223 83.614 50.7183C84.118 50.905 84.72 50.9983 85.42 50.9983C86.4933 50.9983 87.324 50.7463 87.912 50.2423C88.5 49.729 88.794 48.9963 88.794 48.0443C88.794 47.5123 88.6586 47.0783 88.388 46.7423C88.1266 46.4063 87.7766 46.1263 87.338 45.9023C86.8993 45.669 86.4 45.473 85.84 45.3143C85.28 45.1556 84.7106 44.983 84.132 44.7963C83.5533 44.6096 82.984 44.3856 82.424 44.1243C81.864 43.863 81.3646 43.5223 80.926 43.1023C80.4873 42.6823 80.1326 42.1596 79.862 41.5343C79.6006 40.8996 79.47 40.1203 79.47 39.1963C79.47 38.459 79.6146 37.7403 79.904 37.0403C80.2026 36.3403 80.632 35.7196 81.192 35.1783C81.752 34.637 82.4426 34.203 83.264 33.8763C84.0853 33.5496 85.028 33.3863 86.092 33.3863C87.2866 33.3863 88.388 33.573 89.396 33.9463C90.404 34.3196 91.2626 34.8423 91.972 35.5143L91.034 37.2923Z",fill:"#121319"}),C.createElement("path",{d:"M99.2343 54.0783C97.9836 54.0783 97.0223 53.7283 96.3503 53.0283C95.6876 52.319 95.3563 51.3436 95.3563 50.1023V42.0803H93.8863C93.6996 42.0803 93.5409 42.0196 93.4103 41.8983C93.2796 41.777 93.2143 41.595 93.2143 41.3523V39.9803L95.5243 39.6023L96.2523 35.6823C96.2989 35.4956 96.3876 35.351 96.5183 35.2483C96.6489 35.1456 96.8169 35.0943 97.0223 35.0943H98.8143V39.6163H102.65V42.0803H98.8143V49.8643C98.8143 50.3123 98.9216 50.6623 99.1363 50.9143C99.3603 51.1663 99.6636 51.2923 100.046 51.2923C100.261 51.2923 100.438 51.269 100.578 51.2223C100.728 51.1663 100.854 51.1103 100.956 51.0543C101.068 50.9983 101.166 50.947 101.25 50.9003C101.334 50.8443 101.418 50.8163 101.502 50.8163C101.605 50.8163 101.689 50.8443 101.754 50.9003C101.82 50.947 101.89 51.0216 101.964 51.1243L103 52.8043C102.496 53.2243 101.918 53.5416 101.264 53.7563C100.611 53.971 99.9343 54.0783 99.2343 54.0783Z",fill:"#121319"}),C.createElement("path",{d:"M117.24 39.4903V53.8543H115.126C114.669 53.8543 114.38 53.6443 114.258 53.2243L114.02 52.0763C113.432 52.6736 112.784 53.159 112.074 53.5323C111.365 53.8963 110.53 54.0783 109.568 54.0783C108.784 54.0783 108.089 53.9476 107.482 53.6863C106.885 53.4156 106.381 53.0376 105.97 52.5523C105.56 52.067 105.247 51.493 105.032 50.8303C104.827 50.1583 104.724 49.421 104.724 48.6183V39.4903H108.182V48.6183C108.182 49.4956 108.383 50.177 108.784 50.6623C109.195 51.1383 109.806 51.3763 110.618 51.3763C111.216 51.3763 111.776 51.2456 112.298 50.9843C112.821 50.7136 113.316 50.345 113.782 49.8783V39.4903H117.24Z",fill:"#121319"}),C.createElement("path",{d:"M129.685 43.1583C129.293 42.6823 128.864 42.3463 128.397 42.1503C127.94 41.9543 127.445 41.8563 126.913 41.8563C126.39 41.8563 125.919 41.9543 125.499 42.1503C125.079 42.3463 124.72 42.645 124.421 43.0463C124.122 43.4383 123.894 43.9423 123.735 44.5583C123.576 45.165 123.497 45.8836 123.497 46.7143C123.497 47.5543 123.562 48.2683 123.693 48.8563C123.833 49.435 124.029 49.911 124.281 50.2843C124.533 50.6483 124.841 50.9143 125.205 51.0823C125.569 51.241 125.975 51.3203 126.423 51.3203C127.142 51.3203 127.753 51.171 128.257 50.8723C128.761 50.5736 129.237 50.149 129.685 49.5983V43.1583ZM133.143 33.0503V53.8543H131.029C130.572 53.8543 130.282 53.6443 130.161 53.2243L129.867 51.8383C129.288 52.501 128.621 53.0376 127.865 53.4483C127.118 53.859 126.246 54.0643 125.247 54.0643C124.463 54.0643 123.744 53.901 123.091 53.5743C122.438 53.2476 121.873 52.7763 121.397 52.1603C120.93 51.535 120.566 50.765 120.305 49.8503C120.053 48.9356 119.927 47.8903 119.927 46.7143C119.927 45.6503 120.072 44.661 120.361 43.7463C120.65 42.8316 121.066 42.0383 121.607 41.3663C122.148 40.6943 122.797 40.1716 123.553 39.7983C124.309 39.4156 125.158 39.2243 126.101 39.2243C126.904 39.2243 127.59 39.3503 128.159 39.6023C128.728 39.8543 129.237 40.195 129.685 40.6243V33.0503H133.143Z",fill:"#121319"}),C.createElement("path",{d:"M140.14 39.4903V53.8543H136.668V39.4903H140.14ZM140.616 35.3043C140.616 35.603 140.555 35.883 140.434 36.1443C140.312 36.4056 140.149 36.6343 139.944 36.8303C139.748 37.0263 139.514 37.185 139.244 37.3063C138.973 37.4183 138.684 37.4743 138.376 37.4743C138.077 37.4743 137.792 37.4183 137.522 37.3063C137.26 37.185 137.032 37.0263 136.836 36.8303C136.64 36.6343 136.481 36.4056 136.36 36.1443C136.248 35.883 136.192 35.603 136.192 35.3043C136.192 34.9963 136.248 34.707 136.36 34.4363C136.481 34.1656 136.64 33.9323 136.836 33.7363C137.032 33.5403 137.26 33.3863 137.522 33.2743C137.792 33.153 138.077 33.0923 138.376 33.0923C138.684 33.0923 138.973 33.153 139.244 33.2743C139.514 33.3863 139.748 33.5403 139.944 33.7363C140.149 33.9323 140.312 34.1656 140.434 34.4363C140.555 34.707 140.616 34.9963 140.616 35.3043Z",fill:"#121319"}),C.createElement("path",{d:"M150.021 39.2663C151.085 39.2663 152.051 39.439 152.919 39.7843C153.796 40.1296 154.543 40.6196 155.159 41.2543C155.784 41.889 156.265 42.6636 156.601 43.5783C156.937 44.493 157.105 45.515 157.105 46.6443C157.105 47.783 156.937 48.8096 156.601 49.7243C156.265 50.639 155.784 51.4183 155.159 52.0623C154.543 52.7063 153.796 53.201 152.919 53.5463C152.051 53.8916 151.085 54.0643 150.021 54.0643C148.948 54.0643 147.972 53.8916 147.095 53.5463C146.218 53.201 145.466 52.7063 144.841 52.0623C144.225 51.4183 143.744 50.639 143.399 49.7243C143.063 48.8096 142.895 47.783 142.895 46.6443C142.895 45.515 143.063 44.493 143.399 43.5783C143.744 42.6636 144.225 41.889 144.841 41.2543C145.466 40.6196 146.218 40.1296 147.095 39.7843C147.972 39.439 148.948 39.2663 150.021 39.2663ZM150.021 51.4043C151.216 51.4043 152.098 51.003 152.667 50.2003C153.246 49.3976 153.535 48.2216 153.535 46.6723C153.535 45.123 153.246 43.9423 152.667 43.1303C152.098 42.3183 151.216 41.9123 150.021 41.9123C148.808 41.9123 147.907 42.323 147.319 43.1443C146.74 43.9563 146.451 45.1323 146.451 46.6723C146.451 48.2123 146.74 49.3883 147.319 50.2003C147.907 51.003 148.808 51.4043 150.021 51.4043Z",fill:"#121319"}),C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.12 11.4073L31.7 0.772461L13.28 11.4073V25.5506L1 32.6404V53.91L19.42 64.5448L31.6702 57.4721L31.7 57.4894L31.7298 57.4721L43.98 64.5448L62.4 53.91V32.6404L50.12 25.5506V11.4073ZM60.4813 33.7482L48.2013 26.6583V12.515L31.7 2.98804L15.1988 12.515V26.6583L2.91875 33.7482V52.8022L19.42 62.3292L31.6702 55.2566L31.7 55.2738L31.7298 55.2566L43.98 62.3292L60.4813 52.8022V33.7482Z",fill:"url(#paint0_linear_2948_12314)"}),C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31.6998 14.9521L50.1198 25.5869V46.8565L31.6998 57.4913L13.2798 46.8565V25.5869L31.6998 14.9521ZM16.1579 26.1408L30.7404 34.56V17.7216L16.1579 26.1408ZM29.7811 36.2217L15.1986 27.8025V44.6409L29.7811 36.2217ZM32.6592 37.8834L47.2417 46.3026L32.6592 54.7218V37.8834ZM48.2011 44.6409L33.6186 36.2217L48.2011 27.8025V44.6409ZM30.7404 54.7218L16.1579 46.3026L30.7404 37.8834V54.7218ZM32.6592 17.7216L47.2417 26.1408L32.6592 34.56V17.7216Z",fill:"url(#paint1_linear_2948_12314)"}),C.createElement("defs",null,C.createElement("linearGradient",{id:"paint0_linear_2948_12314",x1:31.7,y1:-31.1137,x2:-32.0265,y2:30.2422,gradientUnits:"userSpaceOnUse"},C.createElement("stop",{stopColor:"#4EF1BA"}),C.createElement("stop",{offset:.501904,stopColor:"#16CED1"}),C.createElement("stop",{offset:1,stopColor:"#3773F2"})),C.createElement("linearGradient",{id:"paint1_linear_2948_12314",x1:34.1078,y1:-36.3413,x2:-36.2973,y2:19.2796,gradientUnits:"userSpaceOnUse"},C.createElement("stop",{stopColor:"#4EF1BA"}),C.createElement("stop",{offset:.501904,stopColor:"#16CED1"}),C.createElement("stop",{offset:1,stopColor:"#3773F2"}))));function M({children:l,title:a="Studio",...r}){const{t}=E(),i=H(),s=[{url:`${o.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/home`,name:"home",title:t("studio.home"),icon:e.jsx(V,{})},{url:`${o.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/preferences`,name:"preferences",title:t("studio.preferences"),icon:e.jsx(L,{})},{url:`${o.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/branding`,name:"branding",title:t("studio.branding"),icon:e.jsx(d,{})},{url:`${o.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/localization`,name:"localization",title:t("studio.localization"),icon:e.jsx(p,{})}];return e.jsx(Z,{links:s,headerProps:{logo:e.jsx(h,{width:"118",height:"48"})},title:a,legacy:!1,fullWidth:!0,...r,children:e.jsx(m,{FallbackComponent:f,resetKeys:[i.pathname],children:l})})}M.propTypes={children:n.any.isRequired,title:n.string};const Z=c(u)`
|
|
2
|
-
.header-brand-wrapper .header-logo {
|
|
3
|
-
height: 48px !important;
|
|
4
|
-
width: 134px !important;
|
|
5
|
-
}
|
|
6
|
-
`;export{M as S};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as n}from"./vendor-react-CUXIiAnY.js";import{j as z,bg as M,W as h}from"./vendor-mui-core-B5XNUjey.js";import{b as W}from"./vendor-hooks-U4TTuKG0.js";import{p as C}from"./vendor-ux-BX9dSNUy.js";const w=(i,a=10,s=500)=>{if(typeof document>"u")return 0;const o=document.createElement("canvas").getContext("2d");return o.font=`${s} ${a}px sans-serif`,o.measureText(i).width};function E({checked:i,onChange:a,width:s=0}){const{t:e}=n.useContext(C),[o,c]=n.useState(!1),x=W(t=>{c(t.target.checked),a(t.target.checked)});n.useEffect(()=>{c(i)},[i]);const l=n.useMemo(()=>e(`webhookEndpoint.${o?"enabled":"disabled"}`),[o,e]),k=n.useMemo(()=>{const t=e("webhookEndpoint.enabled"),p=e("webhookEndpoint.disabled"),m=w(t,10,500),b=w(p,10,500),r=Math.max(m,b),S=18+3+r+6;return Math.max(Math.ceil(S/2)*2,50)},[e]),u=s||k;return z.jsx(M,{checked:o,onChange:x,sx:t=>{const r=u-18-6,d=t.palette.mode==="dark",g=t.palette.common[d?"black":"white"],f=t.palette.common[d?"white":"black"];return{width:u,height:24,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:"3px",transitionDuration:"300ms","&.Mui-checked":{transform:`translateX(${r}px)`,color:t.palette.common.white,"& + .MuiSwitch-track":{backgroundColor:t.palette.primary.main,opacity:1,border:0,"&:before":{content:`"${l}"`,position:"absolute",left:t.spacing(.75),top:"50%",transform:"translateY(-50%)",color:g,fontSize:10,fontWeight:500}}}},"& .MuiSwitch-thumb":{width:18,height:18},"& .MuiSwitch-track":{borderRadius:24/2,backgroundColor:t.palette.grey[200],opacity:1,position:"relative","&:before":{content:`"${l}"`,position:"absolute",right:t.spacing(.75),top:"50%",transform:"translateY(-50%)",color:f,fontSize:10,fontWeight:500}}}}})}E.propTypes={checked:h.bool.isRequired,onChange:h.func.isRequired,width:h.number};export{E as S};
|