@abtnode/blocklet-services 1.16.43-beta-20250509-094134-34c76f98 → 1.16.43-beta-20250510-123357-65a2988c
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/emails/_components/activity.js +1 -1
- package/api/emails/_components/footer.js +12 -4
- package/api/emails/_components/token.js +3 -1
- package/api/emails/_templates/activity-notification.js +2 -2
- package/api/emails/_templates/kyc-code-verify.js +2 -2
- package/api/emails/_templates/new-user-session.js +2 -2
- package/api/emails/_templates/notification.js +2 -2
- package/api/emails/_templates/verify-code.js +2 -2
- package/api/libs/email.js +8 -3
- package/dist/assets/{AdapterDayjs-DWoymUZR.js → AdapterDayjs-BiPHzcUP.js} +1 -1
- package/dist/assets/{ArrowDropDown-oIFrKvRQ.js → ArrowDropDown-Dghek9CI.js} +1 -1
- package/dist/assets/{CheckCircle-DKTlmPGr.js → CheckCircle-Dvhgeo9j.js} +1 -1
- package/dist/assets/{ChevronLeft-CFwnl5kG.js → ChevronLeft-DE33N57i.js} +1 -1
- package/dist/assets/{ChevronRight-8T5vdE8C.js → ChevronRight-BfbPIE2b.js} +1 -1
- package/dist/assets/{Community-BUrh_Kqh.js → Community-2MKVAbIk.js} +1 -1
- package/dist/assets/{DeleteOutline-1ZpdOBb4.js → DeleteOutline-B6efX_Fy.js} +1 -1
- package/dist/assets/{Done-1iBqzwts.js → Done-Ct5slWpT.js} +1 -1
- package/dist/assets/{Download-BZiCoF-V.js → Download-DKQGRFHf.js} +1 -1
- package/dist/assets/{Edit-BGameSEw.js → Edit-BLsIdIOp.js} +1 -1
- package/dist/assets/{EditIcon-Tb4i_lkD.js → EditIcon-CwTCQzs9.js} +1 -1
- package/dist/assets/{Email-DVjqqt2m.js → Email-DOy8vL0N.js} +1 -1
- package/dist/assets/{Error-DmLM9r9y.js → Error-wpqrAfUT.js} +1 -1
- package/dist/assets/{ExpandLess-mzw0LYV7.js → ExpandLess-CJXkgMMr.js} +1 -1
- package/dist/assets/{Google-DknSY4FA.js → Google-BbAgcDQ_.js} +1 -1
- package/dist/assets/{Holiday-Aqm_6mkn.js → Holiday-DT-VjgQP.js} +1 -1
- package/dist/assets/{InfoOutlined-BMdv5FNj.js → InfoOutlined-Dy7jTc7H.js} +1 -1
- package/dist/assets/{Launch-BGXBIBAE.js → Launch-DBKe0gh0.js} +1 -1
- package/dist/assets/{LaunchOutlined-C1cAhHQM.js → LaunchOutlined-BIq6YUU8.js} +1 -1
- package/dist/assets/{Location-9D-5nMVA.js → Location-C__VfR4D.js} +1 -1
- package/dist/assets/{LockIcon-DJgkKDXB.js → LockIcon-DIGiHKHl.js} +1 -1
- package/dist/assets/{Meeting-Drc_0V1u.js → Meeting-Cn2X2Ix7.js} +1 -1
- package/dist/assets/{MoreHoriz-KJHmH0lv.js → MoreHoriz-BxJelL2A.js} +1 -1
- package/dist/assets/{OffSick-C991mOvw.js → OffSick-Cnicwu8x.js} +1 -1
- package/dist/assets/{Phone-BfBgFKKG.js → Phone-CoX1qzAs.js} +1 -1
- package/dist/assets/{PlayArrow-CY4IxSfG.js → PlayArrow-C9IFmc-j.js} +1 -1
- package/dist/assets/{QuestionMarkCircle-dkY86QWO.js → QuestionMarkCircle-DCM9zW3a.js} +1 -1
- package/dist/assets/{ServerLogo-BTwLn5Zv.js → ServerLogo-CfbYjQbP.js} +1 -1
- package/dist/assets/{Timezone-BWB21Pdc.js → Timezone-CCdgxxpv.js} +1 -1
- package/dist/assets/{TuneOutlined-BEZh1SVU.js → TuneOutlined-CB7t_nGq.js} +1 -1
- package/dist/assets/{ViewList-BwVW4Mbn.js → ViewList-B4hmqizo.js} +1 -1
- package/dist/assets/{WorkingRemotely-DHNo6euv.js → WorkingRemotely-DWT54kH1.js} +1 -1
- package/dist/assets/{access-control-BULUPRVa.js → access-control-RJu7xYI3.js} +1 -1
- package/dist/assets/{actions-7FcWNRsN.js → actions-BCWb2ez1.js} +1 -1
- package/dist/assets/{add-component-core-BMiZ7LE5.js → add-component-core-DRAzXCeg.js} +2 -2
- package/dist/assets/add-resource-BDJuVU8K.js +1 -0
- package/dist/assets/{addon-vARTsq3u.js → addon-ygDS7Fug.js} +1 -1
- package/dist/assets/{advanced-u-DAzAIF.js → advanced-CFME3Vrl.js} +3 -3
- package/dist/assets/{appearance-DROrcrHA.js → appearance-BqJwEmtt.js} +1 -1
- package/dist/assets/ar-Blzb8h2o.js +7 -0
- package/dist/assets/{audit-logs-CcVb9ghw.js → audit-logs-CtFZQHby.js} +3 -3
- package/dist/assets/{authorize-ChpWebj3.js → authorize-WekjQ3_M.js} +1 -1
- package/dist/assets/{base32-HzVjc8tz.js → base32-BbrXtXL6.js} +1 -1
- package/dist/assets/{branding-BbyygUCZ.js → branding-BTfb8_b4.js} +2 -2
- package/dist/assets/{branding-Be5nWHmr.js → branding-CS-f1gMT.js} +3 -3
- package/dist/assets/{bundle-avatar-CkhAjy4c.js → bundle-avatar-Db5l8MQ4.js} +1 -1
- package/dist/assets/button-DotKXyjc.js +1 -0
- package/dist/assets/click-to-copy-BxhgzyYL.js +1 -0
- package/dist/assets/collapse-Bn_BDlF9.js +1 -0
- package/dist/assets/{complete-B8pYAeSZ.js → complete-BRApuFsV.js} +1 -1
- package/dist/assets/{component-B79RqFMg.js → component-C7g4FGFm.js} +1 -1
- package/dist/assets/{config-Cr_HvxTH.js → config-C8AXD1JH.js} +1 -1
- package/dist/assets/{config-navigation-BEcY6Wrz.js → config-navigation-B7r4dV5S.js} +4 -4
- package/dist/assets/{config-zGEZcVMw.js → config-qG8JCIJ_.js} +1 -1
- package/dist/assets/{config-space-CxYC75c6.js → config-space-CSKkMgqX.js} +1 -1
- package/dist/assets/{confirm-qyOtSX3L.js → confirm-BvUfAlkx.js} +1 -1
- package/dist/assets/{connect-D3ZxLXkG.js → connect-B2HOOYzS.js} +1 -1
- package/dist/assets/{connect-sAGOXOYo.js → connect-DGPdKMcu.js} +1 -1
- package/dist/assets/{connect-to-DjFFSoXW.js → connect-to-BBtnljQ-.js} +1 -1
- package/dist/assets/{content-layout-HQq6mBBk.js → content-layout-DzqMXifY.js} +1 -1
- package/dist/assets/dashboard-C124DXmc.js +279 -0
- package/dist/assets/de-BxI5dM9K.js +7 -0
- package/dist/assets/{delete-confirm-DQ_YJQpj.js → delete-confirm-BBaXcAXg.js} +1 -1
- package/dist/assets/{did-address-Dd9R3pkY.js → did-address-BKBBjFqv.js} +1 -1
- package/dist/assets/{domain-B2_scx4B.js → domain-DTrwCkop.js} +1 -1
- package/dist/assets/{domain-action-card-DE7xLk29.js → domain-action-card-D-WETV-f.js} +1 -1
- package/dist/assets/domains-BxkmGeZE.js +1 -0
- package/dist/assets/{dot-B5LFAb8e.js → dot-C05enzim.js} +1 -1
- package/dist/assets/{email-CWYkPTia.js → email-Bc5KLu5Q.js} +1 -1
- package/dist/assets/{empty-spinner-g1Jw7iuj.js → empty-spinner-BZlBh4vA.js} +1 -1
- package/dist/assets/{es-BUCdgg9a.js → es-BuUaHPig.js} +3 -3
- package/dist/assets/{exchange-passport-BbC_bBga.js → exchange-passport-DbNEDTaa.js} +1 -1
- package/dist/assets/fr-DezMACmP.js +7 -0
- package/dist/assets/{fuel-BdagEU33.js → fuel-DzWcrU-I.js} +1 -1
- package/dist/assets/{gen-access-key-Cf76OFN7.js → gen-access-key-D-ftFU9F.js} +1 -1
- package/dist/assets/get-safe-url-2RcRY8gU.js +1 -0
- package/dist/assets/get-safe-url-CEvgWyL5.js +1 -0
- package/dist/assets/hi-ClbEozhq.js +5 -0
- package/dist/assets/{home-BSxVGonp.js → home-DXj5oFeO.js} +1 -1
- package/dist/assets/id-CXYm-1K3.js +7 -0
- package/dist/assets/{iframe-DXRYs3PX.js → iframe-CIVgAJuH.js} +1 -1
- package/dist/assets/{index-Djpx18Tz.js → index--HbH1n1_.js} +1 -1
- package/dist/assets/index-9ixwCOkw.js +113 -0
- package/dist/assets/{index-CzGXBMFc.js → index-BMD-pSqT.js} +1 -1
- package/dist/assets/{index-Cc-_2bD1.js → index-BMPpz8ni.js} +1 -1
- package/dist/assets/{index-aMtQhU6T.js → index-BVU8_1Ed.js} +3 -3
- package/dist/assets/index-B_fwtN9z.js +55 -0
- package/dist/assets/{index-DEsvwKlq.js → index-BemEiFHE.js} +1 -1
- package/dist/assets/{index-Cy1Hvxt0.js → index-BmWVfEGP.js} +1 -1
- package/dist/assets/{index-C-RHInKj.js → index-Bxd86KLJ.js} +4 -4
- package/dist/assets/{index-DF0z_zii.js → index-C0SLCehH.js} +1 -1
- package/dist/assets/index-CHDiquXf.js +62 -0
- package/dist/assets/{index-BQJa9ZJC.js → index-CKheO_aT.js} +1 -1
- package/dist/assets/{index-TE82Z_py.js → index-CUfP1M2j.js} +1 -1
- package/dist/assets/{index-mbuQZLIX.js → index-Ce2NSVmU.js} +1 -1
- package/dist/assets/index-CyUXddLG.js +284 -0
- package/dist/assets/index-D09AfnR1.js +11 -0
- package/dist/assets/index-D64RNKdt.js +99 -0
- package/dist/assets/{index-BSuIcvk6.js → index-DF3gHUuW.js} +4 -4
- package/dist/assets/{index-BPuJmMx-.js → index-DjLLC6N3.js} +1 -1
- package/dist/assets/index-DsT9i24r.js +141 -0
- package/dist/assets/{index-DpW-Ik8u.js → index-g0L_1foA.js} +8 -8
- package/dist/assets/{index-BFsMuPKK.js → index-u-w3iMC9.js} +9 -9
- package/dist/assets/{index-yiU4BWrm.js → index-wXCx8TFU.js} +1 -1
- package/dist/assets/{invitation-B8tJTJsE.js → invitation-CKfllvl5.js} +1 -1
- package/dist/assets/{invite-EdScAUQO.js → invite-CCCSmPiy.js} +1 -1
- package/dist/assets/{issue-passport-CStwxDqe.js → issue-passport-C3zUptls.js} +1 -1
- package/dist/assets/{item-B4NAOVBY.js → item-CkcpHBHM.js} +1 -1
- package/dist/assets/ja-B5V7b8Cm.js +7 -0
- package/dist/assets/ko-DP9up1nF.js +7 -0
- package/dist/assets/{landing-page-CBb5_s7o.js → landing-page-q-KgqE9Q.js} +1 -1
- package/dist/assets/{launch-result-message-mW7oxgKT.js → launch-result-message-BaU6oEsi.js} +1 -1
- package/dist/assets/{layout-uc9mKcbg.js → layout-CyCulQBn.js} +1 -1
- package/dist/assets/list-D1dIr8Je.js +2 -0
- package/dist/assets/list-TP-VNuzL.js +236 -0
- package/dist/assets/{list-header-D4MXeBc7.js → list-header-CU9W30JD.js} +1 -1
- package/dist/assets/localization-BXLZxF1J.js +1 -0
- package/dist/assets/{log-BdBIH8S_.js → log-DNpJdgp3.js} +1 -1
- package/dist/assets/{logger-DCttRmHI.js → logger-CQ50TnpL.js} +1 -1
- package/dist/assets/{login-CKa2oQPz.js → login-BKaJnfFX.js} +1 -1
- package/dist/assets/{login-oauth-callback-DVRZRaip.js → login-oauth-callback-LJsgXC8E.js} +1 -1
- package/dist/assets/{logo-uploader-DRH-fnyc.js → logo-uploader-BYnd80uu.js} +3 -3
- package/dist/assets/{lost-passport-ClMglNv0.js → lost-passport-Bk0k4I4s.js} +1 -1
- package/dist/assets/{open-window-Cu3fShwR.js → open-window-DV0D-Mov.js} +1 -1
- package/dist/assets/{overview-D5q1KD9x.js → overview-UIMGVO1S.js} +1 -1
- package/dist/assets/{page-header-C1NOmuYB.js → page-header-CpNMTtn_.js} +1 -1
- package/dist/assets/{passport-item-CjxzZUKR.js → passport-item-BxfGrDcE.js} +1 -1
- package/dist/assets/{permission-DzaDpKIW.js → permission-BkNXA8B5.js} +1 -1
- package/dist/assets/{preferences-Dmcgwjhp.js → preferences-_jTjKHvU.js} +1 -1
- package/dist/assets/{profile-embed-DsYLFLkt.js → profile-embed-8w4_vg5a.js} +1 -1
- package/dist/assets/pt-CG45pWr4.js +5 -0
- package/dist/assets/publish-resource-CcM3RwPR.js +1 -0
- package/dist/assets/{react-beautiful-dnd.esm-CrdGz16R.js → react-beautiful-dnd.esm-Cq_dOQ2z.js} +1 -1
- package/dist/assets/{relative-time-tY0x-ayF.js → relative-time-Cl7lOTkO.js} +1 -1
- package/dist/assets/ru-0VhRQc7t.js +5 -0
- package/dist/assets/runtime-BVDdcpyT.js +1 -0
- package/dist/assets/sdk-7yPC_DtN.js +1 -0
- package/dist/assets/{security-fwRPOvQx.js → security-BQbSLSOe.js} +3 -3
- package/dist/assets/{session-xl6Fb2Wm.js → session-6XaVDQaE.js} +1 -1
- package/dist/assets/setup-CifjXQIf.js +30 -0
- package/dist/assets/{shorten-label-srsBvHNw.js → shorten-label-Dq7bVuNa.js} +1 -1
- package/dist/assets/{simple-select-DyL9G1FX.js → simple-select-C-wGUGQR.js} +1 -1
- package/dist/assets/{slicedToArray-B3Jznk0w.js → slicedToArray-vWe02CJE.js} +1 -1
- package/dist/assets/{spaces-BtThOmfG.js → spaces-Cp7TgoZP.js} +1 -1
- package/dist/assets/{start-DNZ-ulwN.js → start-CHmWCQE9.js} +1 -1
- package/dist/assets/{starting-progress-CN1sTPnO.js → starting-progress-CdpkXOrK.js} +1 -1
- package/dist/assets/{status-kLLmMBy7.js → status-46dMQnxA.js} +1 -1
- package/dist/assets/{step-actions-DSriMOaL.js → step-actions-Bu3Q5M4V.js} +1 -1
- package/dist/assets/{studio-CqjHflyE.js → studio-BbeHx14I.js} +1 -1
- package/dist/assets/{switch-control-DsHfwUN7.js → switch-control-D6CqAlDY.js} +1 -1
- package/dist/assets/th-DwH8cjcw.js +5 -0
- package/dist/assets/{traffic-38eCC37i.js → traffic-CY9Vj6w7.js} +1 -1
- package/dist/assets/{transfer-zdDZ9_KG.js → transfer-CSeo2FaW.js} +1 -1
- package/dist/assets/{unsubscribe-DiFsgDJ8.js → unsubscribe-BLaMmgbM.js} +1 -1
- package/dist/assets/use-blocklet-logo-sEJnYyNL.js +2 -0
- package/dist/assets/{use-mobile-B-WdQWoB.js → use-mobile-BAjFH6d8.js} +1 -1
- package/dist/assets/{use-mobile-PBkFclTq.js → use-mobile-Bh8CHBbH.js} +1 -1
- package/dist/assets/{useLocalStorage-DeyICx-h.js → useLocalStorage-C6U1Aqya.js} +1 -1
- package/dist/assets/user-center-BHyd-rRF.js +76 -0
- package/dist/assets/{util-CZd-jYUF.js → util-Bg0WSJ-t.js} +1 -1
- package/dist/assets/{util-DStpLP3f.js → util-RWes6RwK.js} +1 -1
- package/dist/assets/{vendor-arcblock-CORkwLwW.js → vendor-arcblock-CN2B_oTr.js} +80 -80
- package/dist/assets/{vendor-mui-core-DMvlMpwf.js → vendor-mui-core-UZpb7wT7.js} +1 -1
- package/dist/assets/{vendor-mui-x-mcVodcG2.js → vendor-mui-x-whuSO90H.js} +1 -1
- package/dist/assets/vendor-ux-did-connect-TEE6cGq6.js +2296 -0
- package/dist/assets/vi-CcmTJggB.js +5 -0
- package/dist/assets/wrap-locale-DZ79GW_G.js +1 -0
- package/dist/assets/{zh-BQbRU3Dp.js → zh-C2MKZFZw.js} +3 -3
- package/dist/assets/zh-tw-mW-UVEHx.js +7 -0
- package/dist/index.html +4 -4
- package/dist/service-worker.js +1 -1
- package/package.json +43 -43
- package/dist/assets/add-resource-j8u2ovZD.js +0 -1
- package/dist/assets/ar-5Vd7BsNt.js +0 -7
- package/dist/assets/button-Bk6R99H4.js +0 -1
- package/dist/assets/click-to-copy-CzMRt9dA.js +0 -1
- package/dist/assets/dashboard-CuF4binC.js +0 -280
- package/dist/assets/de-oCaVyGvF.js +0 -7
- package/dist/assets/domains-bZXw9tDX.js +0 -1
- package/dist/assets/fr-BDos80TL.js +0 -7
- package/dist/assets/get-safe-url-Dh8rhVin.js +0 -1
- package/dist/assets/get-safe-url-_fT029s-.js +0 -1
- package/dist/assets/hi-DwEZmyg8.js +0 -5
- package/dist/assets/id-BVUMyK9S.js +0 -7
- package/dist/assets/index-B9xM_Hng.js +0 -11
- package/dist/assets/index-CXDRY0Gs.js +0 -99
- package/dist/assets/index-DW75AsWb.js +0 -55
- package/dist/assets/index-aQxEawZE.js +0 -345
- package/dist/assets/index-cs-08BqN.js +0 -113
- package/dist/assets/index-m_po8k60.js +0 -141
- package/dist/assets/ja-CFMQ-LyA.js +0 -7
- package/dist/assets/ko-NIkLevaH.js +0 -7
- package/dist/assets/list-BK68Cxh8.js +0 -236
- package/dist/assets/localization-CJlgb0T8.js +0 -1
- package/dist/assets/pt-CDHE_zWG.js +0 -5
- package/dist/assets/publish-resource--xDHKiTt.js +0 -1
- package/dist/assets/ru-l1raGUU5.js +0 -5
- package/dist/assets/runtime-CRViKGyG.js +0 -1
- package/dist/assets/sdk-D0dqnQoQ.js +0 -1
- package/dist/assets/setup-KZaDiyeL.js +0 -30
- package/dist/assets/th-BBE2_3AB.js +0 -5
- package/dist/assets/use-blocklet-logo-OwFyCoUV.js +0 -1
- package/dist/assets/user-center-D-0-UOTc.js +0 -76
- package/dist/assets/vendor-ux-did-connect-akcz-Ldw.js +0 -2296
- package/dist/assets/vi-CVeuRNnr.js +0 -5
- package/dist/assets/wrap-locale-NyChvVhT.js +0 -1
- package/dist/assets/zh-tw-Ca0tJhqz.js +0 -7
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/log-DNpJdgp3.js","assets/vendor-mui-core-UZpb7wT7.js","assets/vendor-react-DEoibe3W.js","assets/useLocalStorage-C6U1Aqya.js","assets/vendor-ux-did-connect-TEE6cGq6.js","assets/vendor-utils-rHXShPKm.js","assets/vendor-hooks-rDgu5KV9.js","assets/lottie-web-jYmAQWuC.js","assets/vendor-ux-did-connect-DpSGLE7B.css","assets/index-u-w3iMC9.js","assets/vendor-arcblock-CN2B_oTr.js","assets/index-DOq-_YXu.css","assets/Download-DKQGRFHf.js","assets/bundle-avatar-Db5l8MQ4.js","assets/log-D33dFtt_.css","assets/index-CyUXddLG.js","assets/ViewList-B4hmqizo.js","assets/index-Ce2NSVmU.js","assets/Phone-CoX1qzAs.js","assets/Location-C__VfR4D.js","assets/Email-DOy8vL0N.js","assets/Timezone-CCdgxxpv.js","assets/index-CHDiquXf.js","assets/did-address-BKBBjFqv.js","assets/permission-BkNXA8B5.js","assets/session-6XaVDQaE.js","assets/click-to-copy-BxhgzyYL.js","assets/index-BmWVfEGP.js","assets/vendor-mui-x-whuSO90H.js","assets/AdapterDayjs-BiPHzcUP.js","assets/format-error-BrmqJs5a.js","assets/useAsync-DV3NyLhI.js","assets/index-C0SLCehH.js","assets/DeleteOutline-B6efX_Fy.js","assets/confirm-BvUfAlkx.js","assets/util-Bg0WSJ-t.js","assets/base32-BbrXtXL6.js","assets/sdk-7yPC_DtN.js","assets/actions-BCWb2ez1.js","assets/MoreHoriz-BxJelL2A.js","assets/shorten-label-Dq7bVuNa.js","assets/PlayArrow-C9IFmc-j.js","assets/get-safe-url-CEvgWyL5.js","assets/use-blocklet-logo-sEJnYyNL.js","assets/InfoOutlined-Dy7jTc7H.js","assets/collapse-Bn_BDlF9.js","assets/dot-C05enzim.js","assets/useSetState-CWq0AVWn.js","assets/use-mobile-Bh8CHBbH.js","assets/index-DsT9i24r.js","assets/ExpandLess-CJXkgMMr.js","assets/index-DF3gHUuW.js","assets/Error-wpqrAfUT.js","assets/empty-spinner-BZlBh4vA.js","assets/list-header-CU9W30JD.js","assets/QuestionMarkCircle-DCM9zW3a.js","assets/index-DVQCgvFb.js","assets/index-DjLLC6N3.js","assets/api-BjteVZFg.js","assets/ChevronRight-BfbPIE2b.js","assets/react-beautiful-dnd.esm-Cq_dOQ2z.js","assets/raf-schd.esm-B3j6BePR.js","assets/item-CkcpHBHM.js","assets/Launch-DBKe0gh0.js","assets/Done-Ct5slWpT.js","assets/delete-confirm-BBaXcAXg.js","assets/ArrowDropDown-Dghek9CI.js","assets/index-CKheO_aT.js","assets/index-C0Iiqot3.css","assets/index-BMD-pSqT.js","assets/overview-UIMGVO1S.js","assets/keyboard-arrow-down-rounded-DadBVmpO.js","assets/status-46dMQnxA.js","assets/omit-D2k92RIF.js","assets/spaces-Cp7TgoZP.js","assets/domains-BxkmGeZE.js","assets/domain-action-card-D-WETV-f.js","assets/util-RWes6RwK.js","assets/CheckCircle-Dvhgeo9j.js","assets/index-g0L_1foA.js","assets/passport-item-BxfGrDcE.js","assets/Google-BbAgcDQ_.js","assets/cloneDeep-UpFQ2VNg.js","assets/EditIcon-CwTCQzs9.js","assets/LockIcon-DIGiHKHl.js","assets/appearance-BqJwEmtt.js","assets/audit-logs-CtFZQHby.js","assets/relative-time-Cl7lOTkO.js","assets/index-9ixwCOkw.js","assets/list-TP-VNuzL.js","assets/traffic-CY9Vj6w7.js","assets/iframe-CIVgAJuH.js","assets/LaunchOutlined-BIq6YUU8.js","assets/ChevronLeft-DE33N57i.js","assets/index-wXCx8TFU.js","assets/config-navigation-B7r4dV5S.js","assets/index-Bs1kxR8_.js","assets/slicedToArray-vWe02CJE.js","assets/simple-select-C-wGUGQR.js","assets/index--HbH1n1_.js","assets/use-mobile-BAjFH6d8.js","assets/connect-to-BBtnljQ-.js","assets/config-space-CSKkMgqX.js","assets/index-ftkgQlGr.js","assets/switch-control-D6CqAlDY.js","assets/index-B_fwtN9z.js","assets/security-BQbSLSOe.js","assets/config-qG8JCIJ_.js","assets/branding-CS-f1gMT.js","assets/logo-uploader-BYnd80uu.js","assets/advanced-CFME3Vrl.js","assets/runtime-BVDdcpyT.js","assets/index-D64RNKdt.js","assets/Edit-BLsIdIOp.js","assets/list-D1dIr8Je.js","assets/component-C7g4FGFm.js","assets/TuneOutlined-CB7t_nGq.js","assets/add-component-core-DRAzXCeg.js","assets/launch-result-message-BaU6oEsi.js","assets/page-header-CpNMTtn_.js","assets/index-D09AfnR1.js","assets/content-layout-DzqMXifY.js","assets/add-component-core-D-IRi6XF.css","assets/index-CUfP1M2j.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{c as ge,u as nr,p as Is,h as st,f as rr,g as Es,i as bt,j as Rs,E as ks,k as Ps,H as Ls,_ as $,R as Ds}from"./vendor-arcblock-CN2B_oTr.js";import{H as b,j as s,a9 as X,ah as G,I as ft,aq as As,ak as sr,X as Wt,q as Os,b5 as $s,ab as de,b6 as Ms,bx as Ns,T as V,bv as zs,bt as $e,bw as Dn,aa as C,bJ as Us,v as oe,a6 as pt,bK as Bs,e as ce,ae as Hs,bf as Fs,ap as Kt,bL as or,ad as Ie,bM as qs,ar as Vs,ai as Ws,al as ot,O as W,bu as Rt,bp as Q,bN as ir,bO as ar,bP as cr,E as xe,b4 as lr,y as Ks,bh as Gs}from"./vendor-mui-core-UZpb7wT7.js";import{r as y,L as ur,f as dr,g as Qs,u as Js,l as Zs}from"./vendor-react-DEoibe3W.js";import{r as Y,b4 as Xs,b2 as mt,b5 as Ys,B as be,j as z,a3 as An,_ as N,u as J,ao as eo,m as fr,k as to,d as no,h as ro,aJ as so,Y as Gt,b6 as oo,a6 as pr,b7 as io,as as mr,b8 as ao,I as co,C as it,b9 as lo,ba as uo,a0 as fo,am as po}from"./vendor-ux-did-connect-TEE6cGq6.js";import{z as Re,f as K,A as jt,B as mo,b as ho,C as Qt,D as go,E as hr,F as q,G as gr,t as Te,H as xr,I as xo,n as ke,J as vo,K as yo,u as bo,j as On,g as jo,L as $n,h as wo,l as wt,k as So,m as Co,M as _o,O as To,Q as Xe,e as Ke,R as Io,T as Eo,U as Ro,N as ko,V as Po,c as Mn}from"./index-u-w3iMC9.js";import{af as Lo,A as ve,ag as Do,z as Jt,b as Ye,J as vr,ah as Ao}from"./vendor-utils-rHXShPKm.js";import{_ as Nn}from"./useLocalStorage-C6U1Aqya.js";import{C as zn}from"./confirm-BvUfAlkx.js";import{d as Oo}from"./PlayArrow-C9IFmc-j.js";import{g as Un}from"./get-safe-url-CEvgWyL5.js";import{f as Zt}from"./format-error-BrmqJs5a.js";import{u as yr}from"./session-6XaVDQaE.js";import{f as je,a as br,u as B,w as $o}from"./vendor-hooks-rDgu5KV9.js";import{i as Mo,u as No,M as zo,c as Me,s as at,H as Uo,a as kt,p as jr,b as Bo}from"./use-blocklet-logo-sEJnYyNL.js";import{d as Ho}from"./InfoOutlined-Dy7jTc7H.js";import{A as Fo,a as qo,d as Vo,b as Wo}from"./collapse-Bn_BDlF9.js";import{_ as wr,D as Ko}from"./dot-C05enzim.js";import{_ as Sr}from"./useSetState-CWq0AVWn.js";import{u as Cr}from"./use-mobile-Bh8CHBbH.js";const _r=y.createContext({});function Xt({children:e,type:t}){const[n,r]=y.useState([]),o=y.useRef([]),i=c=>{if(!o.current.includes(c)){const u=[...o.current,c];r(u),o.current=u}},a=c=>{if(o.current.includes(c)){const u=o.current.filter(d=>d!==c);r(u),o.current=u}},l=c=>{const u=n.filter(p=>c.find(f=>f===p));Lo(u,n).forEach(p=>a(p))};return s.jsx(_r.Provider,{value:{type:t,deletingBlocklets:n,addDeletingDid:i,removeDeletingDid:a,matchDeletingDid:l},children:e})}Xt.propTypes={type:b.string,children:b.node.isRequired};Xt.defaultProps={type:"blocklets"};function Wl(){return y.useContext(_r)}var Yt={},Go=X;Object.defineProperty(Yt,"__esModule",{value:!0});var Tr=Yt.default=void 0,Qo=Go(Y()),Jo=s;Tr=Yt.default=(0,Qo.default)((0,Jo.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop");var en={},Zo=X;Object.defineProperty(en,"__esModule",{value:!0});var Ir=en.default=void 0,Xo=Zo(Y()),Yo=s;Ir=en.default=(0,Xo.default)((0,Yo.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay");var tn={},ei=X;Object.defineProperty(tn,"__esModule",{value:!0});var Er=tn.default=void 0,ti=ei(Y()),ni=s;Er=tn.default=(0,ti.default)((0,ni.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"}),"Autorenew");var nn={},ri=X;Object.defineProperty(nn,"__esModule",{value:!0});var rn=nn.default=void 0,si=ri(Y()),oi=s;rn=nn.default=(0,si.default)((0,oi.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");var sn={},ii=X;Object.defineProperty(sn,"__esModule",{value:!0});var Rr=sn.default=void 0,ai=ii(Y()),ci=s;Rr=sn.default=(0,ai.default)((0,ci.jsx)("path",{d:"M18 17H6v-2h12zm0-4H6v-2h12zm0-4H6V7h12zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2z"}),"Receipt");var on={},li=X;Object.defineProperty(on,"__esModule",{value:!0});var kr=on.default=void 0,ui=li(Y()),di=s;kr=on.default=(0,ui.default)((0,di.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"Group");var an={},fi=X;Object.defineProperty(an,"__esModule",{value:!0});var Pr=an.default=void 0,pi=fi(Y()),mi=s;Pr=an.default=(0,pi.default)((0,mi.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20m6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9"}),"NotInterested");var cn=function(e){return s.jsx("svg",{...e,children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.32989 8.20744C11.2787 6.82349 13.6098 6.08 16 6.08C18.3902 6.08 20.7213 6.82349 22.6701 8.20744C24.6189 9.59139 26.089 11.5473 26.8766 13.804C27.6642 16.0607 27.7304 18.5066 27.0659 20.8026C26.4419 22.9587 25.2026 24.8823 23.5044 26.3404H8.49555C6.79735 24.8823 5.55809 22.9587 4.9341 20.8026C4.26961 18.5066 4.33575 16.0607 5.12337 13.804C5.91098 11.5473 7.38107 9.59139 9.32989 8.20744ZM16 3.52C13.0786 3.52 10.2295 4.42871 7.84764 6.1202C5.46575 7.81169 3.66898 10.2022 2.70634 12.9604C1.7437 15.7187 1.66286 18.708 2.47501 21.5143C3.28717 24.3205 4.95211 26.8046 7.23909 28.6224C7.46554 28.8024 7.74628 28.9004 8.03554 28.9004H23.9644C24.2537 28.9004 24.5344 28.8024 24.7609 28.6224C27.0479 26.8046 28.7128 24.3205 29.5249 21.5143C30.3371 18.708 30.2563 15.7187 29.2936 12.9604C28.331 10.2022 26.5342 7.81169 24.1523 6.1202C21.7704 4.42871 18.9214 3.52 16 3.52ZM21.8829 13.5921C22.3827 13.0923 22.3827 12.2818 21.8829 11.7819C21.383 11.2821 20.5725 11.2821 20.0727 11.7819L17.868 13.9866C17.3072 13.7012 16.6724 13.5404 16 13.5404C13.7221 13.5404 11.8755 15.3869 11.8755 17.6648C11.8755 19.9427 13.7221 21.7892 16 21.7892C18.2779 21.7892 20.1244 19.9427 20.1244 17.6648C20.1244 16.9924 19.9635 16.3576 19.6782 15.7968L21.8829 13.5921ZM14.4355 17.6648C14.4355 16.8008 15.136 16.1004 16 16.1004C16.864 16.1004 17.5644 16.8008 17.5644 17.6648C17.5644 18.5288 16.864 19.2292 16 19.2292C15.136 19.2292 14.4355 18.5288 14.4355 17.6648Z",fill:"currentColor"})})};cn.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};cn.displayName="dashboard";var ln={},hi=X;Object.defineProperty(ln,"__esModule",{value:!0});var Lr=ln.default=void 0,gi=hi(Y()),xi=s;Lr=ln.default=(0,gi.default)((0,xi.jsx)("path",{d:"m18.25 7.6-5.5-3.18c-.46-.27-1.04-.27-1.5 0L5.75 7.6c-.46.27-.75.76-.75 1.3v6.35c0 .54.29 1.03.75 1.3l5.5 3.18c.46.27 1.04.27 1.5 0l5.5-3.18c.46-.27.75-.76.75-1.3V8.9c0-.54-.29-1.03-.75-1.3M7 14.96v-4.62l4 2.32v4.61zm5-4.03L8 8.61l4-2.31 4 2.31zm1 6.34v-4.61l4-2.32v4.62zM7 2H3.5C2.67 2 2 2.67 2 3.5V7h2V4h3zm10 0h3.5c.83 0 1.5.67 1.5 1.5V7h-2V4h-3zM7 22H3.5c-.83 0-1.5-.67-1.5-1.5V17h2v3h3zm10 0h3.5c.83 0 1.5-.67 1.5-1.5V17h-2v3h-3z"}),"ViewInAr");const _e={Start:Oo,Stop:Tr,Restart:Ir,Reload:Er,Remove:Xs,Config:rn,Log:Rr,Group:kr,Cancel:Pr,Dashboard:cn,Overview:Lr},vi=(e,t)=>{if(!e)return"";const n=new URL(e),r=new URLSearchParams(n.searchParams),o=new URL(ve(n.origin,t));return o.search=r.toString(),o.toString()},yi="internal",bi="external";function un({blocklet:e,onStart:t,onComplete:n,variant:r,hasPermission:o,getComponentUrl:i,useBlockletUrlEvaluation:a,...l}){const c=Re(),[u,d]=y.useState(null),[p,f]=y.useState(null),[h,j]=y.useState(!1),[x,k]=y.useState(null),{t:g}=y.useContext(mt),[T]=Nn("skip-blocklet-setup",!1),{loading:w,recommendedUrl:D}=a(e),[A]=Nn("blocklet-type-filter",yi),v=K.isInProgress(e.status),[E,_]=y.useState(!1);y.useEffect(()=>{var M,Z;if(!(e!=null&&e.controller))return;_(((Z=(M=e==null?void 0:e.controller)==null?void 0:M.status)==null?void 0:Z.value)===ge.BLOCKLET_CONTROLLER_STATUS.suspended),(async()=>{var ee,ae,me;try{const te=await c.api.getLauncherSession({input:{launcherSessionId:(ee=e==null?void 0:e.controller)==null?void 0:ee.launcherSessionId,launcherUrl:(ae=e==null?void 0:e.controller)==null?void 0:ae.launcherUrl}});if(te!=null&&te.error){console.error("get launcher session failed",te.error);return}_([z.LAUNCH_SESSION_STATUS.overdue,z.LAUNCH_SESSION_STATUS.canceled,z.LAUNCH_SESSION_STATUS.terminated].includes((me=te==null?void 0:te.launcherSession)==null?void 0:me.status))}catch(te){console.error("call getLauncherSession error",te)}})()},[]);const{inService:P}=c,R=(S,M,Z=!1)=>async()=>{const ee=async qe=>{var We;t({action:S,blocklet:e}),j(!0),f(S);let Ve=!1;try{if(S==="remove")await M(qe);else if(S==="start"){if(!K.hasRunnableComponent(e)){N.error(g("blocklet.noComponent"));return}if(!P&&!T&&!((We=e.settings)!=null&&We.initialized)&&e.mode!==ge.BLOCKLET_MODES.DEVELOPMENT){if(!D||!An(D)){N.error(g("blocklet.gotoVisitError"));return}const se=mo(c.info),Ln=new URL(D);Ln.searchParams.set("serverUrl",se),window.open(Un(Ln.href,{allowDomains:null})),n({action:S,blocklet:e});return}const he=e.children.filter(se=>!K.isInProgress(se.status)&&se.status!=="running").map(se=>se.meta.did),Ce={did:e.meta.did,componentDids:he};await M({input:Ce})}else if(["stop","restart","reload"].includes(S)){const he=e.children.filter(se=>se.status==="running").map(se=>se.meta.did),Ce={did:e.meta.did,componentDids:he};await M({input:Ce})}else{const he={did:e.meta.did};await M({input:he})}S==="remove"?Ve=!0:await ho(1e3),S==="reload"&&N.success(g("blocklet.reloadSuccess")),k(null),n({action:S,blocklet:e})}catch(he){const Ce=`Blocklet ${S} failed: ${Zt(he)}`;throw n({action:S,blocklet:e,error:new Error(Ce)}),new Error(Ce)}finally{Ve||j(!1)}},ae=()=>{j(!1),k(null)},me=K.getDisplayName(e,!0),te=e.mode===ge.BLOCKLET_MODES.DEVELOPMENT?{description:()=>s.jsx(V,{component:"div",children:s.jsx(V,{gutterBottom:!0,children:g("blocklet.action.removeApplicationDescription")})}),params:{removeType:"complete"}}:{description:(qe,Ve)=>s.jsxs(V,{component:"div",children:[s.jsx(V,{gutterBottom:!0,children:g("blocklet.action.removeApplicationDescription")}),s.jsxs(zs,{name:"removeType",value:qe.removeType,onChange:We=>Ve({...qe,removeType:We.target.value}),children:[s.jsx($e,{value:"backup",control:s.jsx(Dn,{}),label:g("blocklet.action.removeApplicationAfterBackup")}),s.jsx($e,{value:"complete",control:s.jsx(Dn,{}),label:g("blocklet.action.removeApplicationComplete")})]})]}),params:{removeType:"backup"}},Ts={stop:{title:`${g("common.stop")} ${me}`,description:g("blocklet.action.stopDescription"),confirm:g("blocklet.action.confirmStop"),cancel:g("common.cancel"),onConfirm:ee,onCancel:ae},restart:{title:`${g("common.restart")} ${me}`,description:g("blocklet.action.restartDescription"),confirm:g("blocklet.action.confirmRestart"),cancel:g("common.cancel"),onConfirm:ee,onCancel:ae},remove:{title:`${g("common.remove")} ${me}`,confirm:g("blocklet.action.confirmRemove"),cancel:g("common.cancel"),onConfirm:ee,onCancel:ae,...te},cancelDownload:{title:`${g("common.cancel")}`,description:g("blocklet.action.cancelDownloadDescription",{name:me}),confirm:g("common.confirm"),cancel:g("common.cancel"),onConfirm:ee,onCancel:ae}};Z?k(Ts[S]):await ee()},L=!!u,m=S=>{try{S.stopPropagation(),S.preventDefault()}catch{}d(S.currentTarget)},I=S=>{try{S.stopPropagation(),S.preventDefault()}catch{}d(null)},F=async(S,M)=>{try{M.stopPropagation(),M.preventDefault()}catch{}if(typeof S.handler=="function")try{j(!0),f(S.action),await S.handler()}catch(Z){console.error(`Blocklet ${S.name} failed: `,Z)}finally{j(!1),d(null)}else d(null)},re=!P&&K.isDeletableBlocklet(e)?{action:"remove",icon:_e.Remove,name:g("common.remove"),handler:R("remove",async({removeType:S})=>{S==="backup"&&await c.api.backupBlocklet({input:{appDid:e.appDid,to:"disk"}}),await c.api.deleteBlocklet({input:{did:e.meta.did,keepData:!1}})},!0),disabled:v}:null,pe={action:"remove",icon:({sx:S,...M})=>s.jsx(_e.Cancel,{sx:{...S,paddingRight:"2px",zoom:.95},...M}),name:g("common.cancel"),handler:R("cancelDownload",c.api.cancelDownloadBlocklet,!0)},le=K.getAppMissingConfigs(e),yt=()=>{var ee;const S=`/${e.mountPoint||"/"}`.replace(/\/+/g,"/"),M=i==null?void 0:i({mountPoint:S,blocklet:e});if(!M||!An(M)){N.error(g("blocklet.gotoVisitError"));return}const Z=(ee=e==null?void 0:e.site)==null?void 0:ee.domainAliases;window.open(Un(vi(M,".well-known/service/admin"),{allowDomains:Z==null?void 0:Z.map(ae=>ae.value)}))};let Fe=[{action:"start",icon:_e.Start,inExternal:!0,name:g("common.start"),handler:R("start",c.api.startBlocklet),disabled:E||e.children.every(S=>S.status==="running")||jt(e.status)||w||v},{action:"stop",icon:_e.Stop,inExternal:!0,name:g("common.stop"),handler:R("stop",c.api.stopBlocklet,!0),disabled:!["running","starting"].includes(e.status)},{action:"restart",inExternal:!0,icon:_e.Restart,name:g("common.restart"),handler:R("restart",c.api.restartBlocklet,!0),disabled:E||e.status!=="running"},jt(e.status)?pe:re,{separator:!0},P?null:{action:"dashboard",icon:({style:S,...M})=>s.jsx(_e.Dashboard,{...M,style:{...S,width:"26px",height:"26px",paddingRight:"3px"}}),name:g("sidebar.dashboard"),handler:yt}].filter(Boolean);return A===bi&&(Fe=Fe.filter(S=>S.inExternal)),r==="menu"?s.jsxs(Bn,{"data-cy":"blocklet-actions",children:[s.jsx(ft,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions","actions-blocklet-did":e.meta.did,onClick:m,size:"small",disabled:!o||!jt(e.status)&&h,children:s.jsx(Ys,{})}),s.jsxs(As,{id:"actions-menu",anchorEl:u,keepMounted:!0,open:L,onClose:I,PaperProps:{},children:[le.length>0&&s.jsxs(sr,{style:{maxWidth:"400px"},severity:"error",children:[g("blocklet.config.missingRequired"),s.jsx("br",{}),s.jsx(ur,{to:`/blocklets/${e.meta.did}/components`,children:g("blocklet.config.gotoFix")})]}),Fe.map((S,M)=>S.separator?s.jsx(Wt,{},`separator-${M}`):s.jsxs(Os,{dense:!0,onClick:Z=>F(S,Z),disabled:h||S.disabled,"data-cy":`${S.action}-blocklet`,children:[s.jsx($s,{style:{minWidth:24},children:p===S.action&&h?s.jsx(de,{size:16,sx:{marginRight:1}}):s.jsx(S.icon,{fontSize:"small"})}),s.jsx(Ms,{primary:S.name})]},S.name))]}),x&&s.jsx(zn,{title:x.title,description:x.description,confirm:x.confirm,cancel:x.cancel,params:x.params,onConfirm:x.onConfirm,onCancel:x.onCancel})]}):s.jsxs(Bn,{"data-cy":"blocklet-actions",...l,children:[s.jsx(Ns,{children:Fe.filter(S=>!S.separator&&!S.onlyInMenu).map(S=>s.jsxs(be,{title:S.name,"data-cy":`${S.action}-blocklet`,onClick:()=>F(S),disabled:!!S.disabled||h,children:[p===S.action&&h?s.jsx(de,{size:16,sx:{marginRight:1}}):s.jsx(S.icon,{}),s.jsx("span",{className:"blocklet-action-text",children:S.name})]},S.name))}),x&&s.jsx(zn,{title:x.title,description:x.description,confirm:x.confirm,cancel:x.cancel,params:x.params,onConfirm:x.onConfirm,onCancel:x.onCancel})]})}un.propTypes={getComponentUrl:b.func,blocklet:b.object.isRequired,onStart:b.func.isRequired,onComplete:b.func.isRequired,variant:b.oneOf(["menu","group"]),hasPermission:b.bool,useBlockletUrlEvaluation:b.func};un.defaultProps={getComponentUrl:null,variant:"menu",hasPermission:!1,useBlockletUrlEvaluation:()=>{var e;return{loading:!1,recommendedUrl:(e=window==null?void 0:window.location)==null?void 0:e.href}}};const Bn=G.div`
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
|
|
6
|
+
@media (max-width: ${e=>e.theme.breakpoints.values.sm}px) {
|
|
7
|
+
.MuiButton-root {
|
|
8
|
+
padding: 4px;
|
|
9
|
+
font-size: 10px;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
`,Hn=y.memo(un),ji=e=>{const t={};let n=null;return K.forEachBlockletSync(e,r=>{t[r.meta.bundleDid]?n=K.getDisplayName(r,!0):r.meta.bundleDid&&(t[r.meta.bundleDid]=!0)}),n},wi=(e,t,n)=>{var i;const{hostname:r,href:o}=e;if(!t)return o;if(n){const l=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(r);if(!l)return o;const c=l[0],d=((((i=t.site)==null?void 0:i.domainAliases)||[]).map(p=>p.value).filter(Boolean).find(p=>p.endsWith(z.DEFAULT_DID_DOMAIN))||"").replace(`.${z.DEFAULT_DID_DOMAIN}`,"");return d?o.replace(r,`${d}-${c}.${z.DEFAULT_IP_DOMAIN_SUFFIX}`):o}return o.replace(t.meta.bundleDid,t.appPid)};function Dr(){const{t:e}=J(),{api:t}=yr(),{blocklet:n}=Qt(),{inService:r}=Re(),[o,i]=y.useState(!1),[a,l]=y.useState(5),c=n&&n.structVersion!==z.APP_STRUCT_VERSION,u=()=>{try{if(n.status==="running"){N.error(e("blocklet.migrate.tip.running"));return}const f=ji(n);if(f){N.error(e("blocklet.migrate.tip.duplicate",{name:f}));return}i(!0)}catch(f){N.error(Zt(f))}},d=()=>{const f=wi(window.location,n,r);setTimeout(()=>{window.location.href=f},5e3),l(5),setInterval(()=>{l(h=>h-1)},1e3)},p=()=>i(!1);return[c&&s.jsxs(sr,{severity:"warning",style:{margin:"12px 0"},children:[s.jsxs(C,{display:"flex",alignItems:"center",children:[s.jsx(be,{variant:"contained",size:"small",color:"primary",onClick:()=>u(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),s.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(f=>s.jsx(C,{display:"flex",alignItems:"center",children:e(`blocklet.migrate.intro.${f}`)},f))]},"alert"),n&&s.jsx(eo,{popup:!0,open:o,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:5*60*1e3,onSuccess:d,extraParams:{appDid:n.appDid,did:n.meta.did,wt:go(n,!0),title:K.getDisplayName(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:a>=0?e("blocklet.migrate.success",{sec:a}):"Redirecting..."},onClose:p},"connect")]}Dr.propTypes={};function Si(){const e=Us();return[...e.breakpoints.keys].reverse().reduce((n,r)=>{const o=oe(e.breakpoints.up(r));return!n&&o?r:n},null)||"xs"}function Ci(e){return s.jsx(pt,{...e,children:s.jsx("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z"})})}function _i(e){return s.jsx(pt,{...e,children:s.jsx("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"})})}function Ti(e){return s.jsx(pt,{...e,children:s.jsx("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2, 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12, 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"})})}function Ii(e){return s.jsx(pt,{...e,children:s.jsx("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12A10,10 0 0,0 12,2Z"})})}const Ge={fontSize:20,marginInlineEnd:8},Ei={success:s.jsx(Ci,{style:Ge}),warning:s.jsx(_i,{style:Ge}),error:s.jsx(Ti,{style:Ge}),info:s.jsx(Ii,{style:Ge})},Ri=Bs(e=>{const t={xl:"400px",lg:"400px",md:"400px",sm:"300px"},n=e.palette.background.default;return{lessPadding:{paddingLeft:8*2.5},contentRoot:{...e.typography.body2,display:"flex",backgroundColor:n,color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},success:r=>({backgroundColor:`${Hs[600]} !important`,width:t[r.breakpoint]}),error:r=>({backgroundColor:`${e.palette.error.dark} !important`,width:t[r.breakpoint]}),info:r=>({backgroundColor:`${e.palette.primary.main} !important`,width:t[r.breakpoint]}),warning:r=>({backgroundColor:`${Fs[700]} !important`,width:t[r.breakpoint]}),icon:{fontSize:20},message:{display:"flex",alignItems:"center",padding:"8px 0",flex:1,width:0},action:{display:"flex",alignItems:"center",marginLeft:"auto",marginRight:-8,width:44}}});function dn({keyId:e,notification:t={},viewAllUrl:n,content:r},o){var k,g,T;const i=Ri({breakpoint:Si()}),a=ce(),l=[i.contentRoot,i.lessPadding,i[t.severity]].join(" "),c=Ei[t.severity],{closeSnackbar:u}=fr(),d=()=>u(e),p=dr(),f=()=>{u(e),p(n)},h=je(()=>Mo(t),[t]),j=je(()=>t==null?void 0:t.activity,[t]),x=No({activity:j,users:[t==null?void 0:t.actorInfo],actors:[(k=t==null?void 0:t.activity)==null?void 0:k.actor],extra:{linkColor:a.palette.primary.main,userDid:(T=(g=t==null?void 0:t.receivers)==null?void 0:g[0])==null?void 0:T.did}});return s.jsxs(to,{ref:o,className:l,children:[s.jsxs("div",{className:i.message,children:[c,s.jsx(Pi,{onClick:f,style:{width:"calc(100% - 30px)"},children:s.jsx(C,{children:h?s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"title",children:x}),j.meta?s.jsx(zo,{meta:j.meta,type:j.type,sx:{display:"-webkit-box",overflow:"hidden",textOverflow:"ellipsis",WebkitLineClamp:3,WebkitBoxOrient:"vertical",color:"#fff"}}):null]}):s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"title",children:t.title}),r||s.jsx("span",{className:"desc",children:t.description})]})})})]}),s.jsx("div",{className:i.action,children:s.jsx(ft,{"aria-label":"close",color:"inherit",onClick:d,size:"large",children:s.jsx(no,{className:i.icon})},"close")})]})}const ki=y.forwardRef(dn);dn.propTypes={viewAllUrl:b.string.isRequired,keyId:b.number.isRequired,notification:b.object.isRequired,content:b.node};dn.defaultProps={content:null};const Pi=G.div`
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
.title {
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
text-overflow: ellipsis;
|
|
19
|
+
display: -webkit-box;
|
|
20
|
+
-webkit-line-clamp: 1;
|
|
21
|
+
-webkit-box-orient: vertical;
|
|
22
|
+
font-weight: bold;
|
|
23
|
+
}
|
|
24
|
+
.desc {
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
text-overflow: ellipsis;
|
|
27
|
+
display: -webkit-box;
|
|
28
|
+
-webkit-line-clamp: 3;
|
|
29
|
+
-webkit-box-orient: vertical;
|
|
30
|
+
word-break: break-word;
|
|
31
|
+
}
|
|
32
|
+
`;function Ar({attachment:e}){const{data:t}=e,n=ce();let r="";try{r=new URL(t.url).host}catch{r=t.url}return s.jsxs(Kt,{target:"_blank",rel:"noopener noreferrer",href:t.url,className:"link",style:{wordBreak:"break-all"},onClick:o=>{o.customPreventRedirect=!0},children:[!!r&&s.jsx("span",{className:"url",children:r}),!!t.title&&s.jsx(C,{className:"title",style:{whiteSpace:"unset"},children:t.title}),!!t.description&&s.jsx(C,{className:"description",style:{whiteSpace:"unset",color:n.palette.text.secondary},children:t.description}),!!t.image&&s.jsx("img",{src:nr.getImagePath(t.image),alt:t.title||"",height:128,style:{borderRadius:"8px",maxWidth:"256px",objectFit:"cover"}})]})}Ar.propTypes={attachment:b.object.isRequired};function Or({attachment:e}){const{data:t}=e;return s.jsx("img",{src:nr.getImagePath(t.url),alt:t.title||"",height:128,style:{borderRadius:"8px",maxWidth:"256px",objectFit:"cover"}})}Or.propTypes={attachment:b.object.isRequired};function $r({attachment:e,...t}){var l;const{data:n}=e,r=((l=n.color)==null?void 0:l.toLowerCase())||t.color,o=n.size||t.size,i=n.fontWeight||t.fontWeight||400;let a="14px";return o==="small"?a="12px":o==="normal"?a="14px":o==="big"?a="16px":o==="large"&&(a="18px"),s.jsx(Li,{className:"title",style:{fontSize:a,color:r,whiteSpace:"unset",fontWeight:i},children:n.text})}$r.propTypes={attachment:b.object.isRequired};const Li=G.span`
|
|
33
|
+
width: 100%;
|
|
34
|
+
display: -webkit-box;
|
|
35
|
+
-webkit-box-orient: vertical;
|
|
36
|
+
-webkit-line-clamp: 2;
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
text-overflow: ellipsis;
|
|
39
|
+
white-space: normal;
|
|
40
|
+
word-break: break-word;
|
|
41
|
+
`,Di=e=>{let t="rgba(0, 0, 0, 0.12)";return e==="warning"?t="#DE9E37":e==="error"?t="#F16E6E":t="rgba(0, 0, 0, 0.12)",t},Ai=e=>e.every(t=>t.type==="text"),Oi=e=>e.every(t=>t.type==="image"),$i=e=>Do(e,2).map(t=>({type:"combined",items:t})).filter(t=>(t.items||[]).every(n=>{var r,o,i;return(i=(o=(r=n==null?void 0:n.data)==null?void 0:r.text)==null?void 0:o.trim)==null?void 0:i.call(o)})),Mi=e=>{if(!e.length||e.length<=1)return!1;const t=e[0].type;return e.every(n=>n.type===t)},Ni=(e,t)=>{try{const n=ro.toTypeInfo(e);if(!(n.role!==void 0&&n.role!==so.types.RoleType.ACCOUNT))return;const o=ve(z.WELLKNOWN_SERVICE_PATH_PREFIX,"user");return Jt(o,{did:e,locale:t})}catch(n){console.error(n);return}},we=(e,t)=>({...e,...t?{filter:"invert(1)"}:{}});fn.propTypes={locale:b.string,data:b.object.isRequired};fn.defaultProps={locale:"en"};function fn({locale:e="en",data:t}){const n={zh:"来自",en:"from"}[e]||"from",r={zh:"接收",en:"Received"}[e]||"Received",i=`https://${Me.getUrlHost(t.chainHost)||Me.getChainHost(t.chainId)}/explorer/tokens/${t.address}/tx`,a=ce(),l=a.palette.mode==="dark";let c=t.amount;t.decimal&&(c=t.amount/10**t.decimal);const u=je(()=>({display:"flex",alignItems:"center",rowGap:2,columnGap:4,justifyContent:"space-between",flexWrap:"wrap"}));return s.jsx("a",{href:i,target:"_blank",rel:"noreferrer",onClick:d=>{d.customPreventRedirect=!0},children:s.jsxs(C,{display:"flex",flexDirection:"column",children:[s.jsxs(C,{sx:u,children:[s.jsx(V,{component:"div",sx:{fontWeight:700,color:a.palette.text.primary},children:r}),s.jsxs(V,{component:"div",align:"right",style:we(at.summaryStyle,l),flex:1,children:["+",c," ",t.symbol]})]}),s.jsxs(C,{sx:u,children:[s.jsx(V,{component:"div",style:we({...at.remarkStyle,fontSize:14},l),children:n}),s.jsx(C,{maxWidth:260,fontSize:14,children:s.jsx(Gt,{did:t.address,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:e})})]})]})})}pn.propTypes={locale:b.string,data:b.object.isRequired};pn.defaultProps={locale:"en"};function pn({locale:e,data:t}){var d,p;const n={zh:"接收",en:"Received"}[e]||"Received",r={zh:"来自",en:"from"}[e]||"from",o=Me.getUrlHost(t.chainHost)||Me.getChainHost(t.chainId),i=t.did||((p=(d=t==null?void 0:t.credential)==null?void 0:d.issuer)==null?void 0:p.id)||"",a=`https://${o}/explorer/assets/${i}`,c=ce().palette.mode==="dark",u=je(()=>({display:"flex",alignItems:"center",rowGap:2,columnGap:4,justifyContent:"space-between",flexWrap:"wrap"}));return s.jsx(C,{sx:{pr:1},children:s.jsx("a",{href:a,target:"_blank",style:{textDecoration:"none",color:"initial",display:"block"},onClick:f=>{f.customPreventRedirect=!0},rel:"noreferrer",children:s.jsxs(C,{display:"flex",flexDirection:"column",children:[s.jsxs(C,{sx:u,children:[s.jsx(V,{component:"div",sx:{fontWeight:700,color:"text.primary"},children:n}),s.jsx(V,{component:"div",align:"right",style:we(at.summaryStyle,c),children:"+1 Asset"})]}),i?s.jsxs(C,{sx:u,children:[s.jsx(V,{component:"div",style:we({...at.remarkStyle,fontSize:14},c),children:r}),s.jsx(C,{maxWidth:260,fontSize:14,children:s.jsx(Gt,{did:i,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:e})})]}):null]})})})}Mr.propTypes={data:b.object.isRequired,locale:b.string};function Mr({data:e,locale:t="en"}){const r=ce().palette.mode==="dark";return s.jsxs("a",{href:e.url,target:"_blank",style:{display:"flex",textDecoration:"none",color:"initial"},onClick:o=>{o.customPreventRedirect=!0},rel:"noreferrer",children:[s.jsx("img",{className:"image",src:e.logo,width:50,height:50,alt:""}),s.jsxs("div",{style:{flex:1,marginLeft:"10px"},children:[s.jsx("div",{style:we({marginBottom:"6px"},r),children:e.title}),s.jsx(C,{maxWidth:260,fontSize:10,children:s.jsx(Gt,{did:e.appDID,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:t})})]})]})}mn.propTypes={locale:b.string,data:b.object.isRequired};mn.defaultProps={locale:"en"};function mn({locale:e,data:t}){const n=Me.getChainHost(t.chainId),r=`https://${n}/explorer/txs/${t.hash}`,o={zh:"交易详情",en:"Transaction Details"}[e]||"Transaction Details",i={zh:"交易哈希",en:"Transaction Hash"}[e]||"Transaction Hash",a=ce(),l=a.palette.mode==="dark";return s.jsxs("a",{href:r,target:"_blank",style:we({textDecoration:"none",color:"initial",display:"block",fontSize:14},l),onClick:c=>{c.customPreventRedirect=!0},rel:"noreferrer",children:[s.jsx("h6",{style:{color:a.palette.text.secondary,margin:0},children:n}),s.jsx("p",{style:{color:a.palette.warning.main,margin:0},children:o}),s.jsxs("div",{style:{wordBreak:"break-all"},children:[i,": ",t.hash]})]})}function Nr({attachment:e,...t}){const{local:n}=y.useContext(mt),r=oe(i=>i.breakpoints.down("md")),o=ce();return s.jsxs(zi,{...t,isMd:r,children:[e.type==="link"&&s.jsx(Ar,{attachment:e,...t,isMd:r}),e.type==="image"&&s.jsx(Or,{attachment:e,isMd:r}),e.type==="text"&&s.jsx($r,{attachment:e,isMd:r}),e.type==="token"&&s.jsx(fn,{data:e.data,local:n,isMd:r}),e.type==="asset"||e.type==="vc"?s.jsx(pn,{data:e.data,local:n,isMd:r}):null,e.type==="dapp"&&s.jsx(Mr,{data:e.data,local:n,isMd:r}),e.type==="transaction"&&s.jsx(mn,{data:e.data,local:n,...t,isMd:r}),e.type==="divider"&&s.jsx(Wt,{sx:{mb:1,mt:1},style:{color:o.palette.divider}})]})}const zi=G.div`
|
|
42
|
+
display: ${({sx:e={}})=>e.display||"flex"};
|
|
43
|
+
flex-direction: ${({sx:e={}})=>e.flexDirection||"column"};
|
|
44
|
+
gap: ${({sx:e={}})=>e.gap||1};
|
|
45
|
+
width: ${({isMd:e=!1})=>e?"100%":"auto"};
|
|
46
|
+
&:last-child {
|
|
47
|
+
margin-bottom: 0;
|
|
48
|
+
}
|
|
49
|
+
`;Nr.propTypes={attachment:b.object.isRequired};function zr({data:e,...t}){const{items:n}=e;return s.jsx(Ui,{...t,children:n.map(r=>s.jsxs(or,{variant:"outlined",sx:{p:2,borderRadius:"8px",minWidth:128},children:[s.jsxs(C,{display:"flex",alignItems:"center",gap:1,children:[r.icon?s.jsx("img",{src:r.icon,alt:r.title,style:{width:16,height:16}}):null,s.jsxs(C,{className:"metric-name",display:"flex",alignItems:"center",children:[r.title,r.subtitle?s.jsx(Ie,{title:r.subtitle,arrow:!0,placement:"top",children:s.jsx(Ho,{fontSize:"small",sx:{fontSize:14,ml:.5}})}):null]})]}),s.jsxs(C,{className:"metric-number",sx:{color:r.content_color||"rgba(3, 7, 18, 1)"},children:[r.content,r.sub_content?s.jsxs("span",{className:"sub-content",style:{color:r.sub_content_color||"rgba(156, 163, 175, 1)"},children:["(",r.sub_content,")"]}):null]})]},r.title))})}const Ui=G(C)`
|
|
50
|
+
display: flex;
|
|
51
|
+
justify-content: flex-start;
|
|
52
|
+
flex-wrap: wrap;
|
|
53
|
+
gap: 16px;
|
|
54
|
+
.metric-number {
|
|
55
|
+
font-size: 18px;
|
|
56
|
+
font-weight: 600;
|
|
57
|
+
.sub-content {
|
|
58
|
+
font-size: 12px;
|
|
59
|
+
font-weight: 400;
|
|
60
|
+
margin-left: 4px;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
.metric-name {
|
|
64
|
+
font-size: 14px;
|
|
65
|
+
color: rgba(156, 163, 175, 1);
|
|
66
|
+
}
|
|
67
|
+
`;zr.propTypes={data:b.object.isRequired};function Ur({data:e}){const{items:t}=e,n=oe(a=>a.breakpoints.down("sm")),r=oe(a=>a.breakpoints.down("md")),o=oe(a=>a.breakpoints.down("lg")),i=()=>n?1:r?3:o?4:6;return s.jsx(qs,{variant:"quilted",cols:i(),gap:8,rowHeight:128,sx:{margin:0},children:t.map(a=>{const l=a.cover||a.display;return l?s.jsx("a",{href:a.link,target:"_blank",rel:"noopener noreferrer",children:s.jsx(Vs,{children:s.jsx("img",{src:l,alt:a.title||"",style:{borderRadius:"8px"}})})},l):null})})}Ur.propTypes={data:b.object.isRequired};function hn({data:e,feedType:t,...n}){return s.jsxs(Bi,{...n,children:[t==="data-tracker"&&e.type==="table"&&s.jsx(zr,{data:e}),(t==="graphic"||t==="gallery")&&s.jsx(Ur,{data:e})]})}const Bi=G.div`
|
|
68
|
+
display: flex;
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
width: 100%;
|
|
71
|
+
margin-bottom: 4px;
|
|
72
|
+
&:last-child {
|
|
73
|
+
margin-bottom: 0;
|
|
74
|
+
}
|
|
75
|
+
`;hn.propTypes={data:b.object.isRequired,feedType:b.string};hn.defaultProps={feedType:"data-tracker"};et.propTypes={data:b.object.isRequired,style:b.object};function et({data:e,style:t={}}){const r=ce().palette.mode==="dark";return s.jsx(V,{style:we({color:r&&e.darkModeColor?e.darkModeColor:e.color||"initial",margin:0,whiteSpace:"pre-line!important",...t},r),children:e.text})}function Br({data:e}){const t=[];for(let n=0;n<(e==null?void 0:e.length);n+=2){const r=e[n],o=e[n+1];r&&o?t.push(s.jsxs(Fn,{children:[s.jsx("td",{className:"label-col",children:s.jsx(et,{data:r.data,style:{whiteSpace:"nowrap"}})}),s.jsx("td",{className:"value-col",children:s.jsx(et,{data:o.data,style:{wordBreak:"break-all"}})})]},n)):r&&t.push(s.jsx(Fn,{children:s.jsx("td",{className:"label-col",children:s.jsx(et,{data:r.data})})},n))}return s.jsx("table",{style:{width:"100%"},children:s.jsx("tbody",{children:t})})}Br.propTypes={data:b.array.isRequired};const Fn=G.tr`
|
|
76
|
+
display: flex;
|
|
77
|
+
flex-direction: row;
|
|
78
|
+
justify-content: flex-start;
|
|
79
|
+
align-items: center;
|
|
80
|
+
gap: ${({theme:e})=>e.spacing(1)};
|
|
81
|
+
.label-col {
|
|
82
|
+
min-width: 130px;
|
|
83
|
+
flex-shrink: 0;
|
|
84
|
+
}
|
|
85
|
+
.value-col {
|
|
86
|
+
flex: 1;
|
|
87
|
+
}
|
|
88
|
+
`;function gn({notification:e,severity:t,showSke:n=!0}){const{attachments:r,data:o,...i}=e,a=oe(d=>d.breakpoints.down("md"));if((!r||!r.length)&&Ye(o))return null;const l=Di(t),c=(d,p=!1)=>{if(!d&&!Array.isArray(d))return null;let f=d,h={},j="horizontal";p&&Ai(d)&&(f=$i(d),j="vertical",h={display:"flex",gap:8,flexDirection:"row",justifyContent:"flex-start",flexWrap:"wrap",height:"100%",width:a||f.length===1?"100%":"28%"});const x=Mi(f);return s.jsx(C,{sx:{width:"100%",display:"flex",gap:1,flexDirection:p?"row":"column",justifyContent:"flex-start",alignItems:p?"center":"unset",flexWrap:"wrap"},children:f.map((k,g)=>k.type==="section"?s.jsx(Br,{data:k.fields},g):s.jsxs(y.Fragment,{children:[s.jsx(Nr,{attachment:k,style:h,...i}),!(a&&j==="vertical")&&x&&f.length>1&&g!==f.length-1?s.jsx(Wt,{orientation:j,style:{color:oo.dividerColor},sx:j==="vertical"?{ml:2,mr:2,height:32}:{}}):null]},g))})},u=Oi(r);return s.jsx(Hi,{children:s.jsxs("div",{className:"message-in-list",children:[r.length>0&&s.jsx("div",{className:"message-container",style:a?{width:"100%"}:{},children:u?c(r):s.jsx(or,{variant:"outlined",sx:{p:2,borderRadius:"8px",minWidth:128,borderColor:l},children:c(r)})}),!Ye(o)&&s.jsx("div",{className:"message-container",children:s.jsx("div",{className:"data-container",children:s.jsx(hn,{data:o,feedType:e.feedType})})}),r.length===0&&Ye(o)&&n&&s.jsx(Ws,{className:"attach-ske",style:{marginTop:10},variant:"rectangular",height:150})]})})}const Hi=G.div`
|
|
89
|
+
display: flex;
|
|
90
|
+
flex-direction: column;
|
|
91
|
+
.message-in-list {
|
|
92
|
+
padding: 8px 8px 8px 0;
|
|
93
|
+
display: flex;
|
|
94
|
+
border-radius: 8px;
|
|
95
|
+
}
|
|
96
|
+
.message-title {
|
|
97
|
+
color: #25292f;
|
|
98
|
+
font-size: 18px;
|
|
99
|
+
font-weight: bold;
|
|
100
|
+
word-break: break-all;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.attach-ske {
|
|
104
|
+
position: relative;
|
|
105
|
+
margin-left: 10px;
|
|
106
|
+
&::after {
|
|
107
|
+
content: '';
|
|
108
|
+
position: absolute;
|
|
109
|
+
left: -10px;
|
|
110
|
+
top: 0;
|
|
111
|
+
height: 100%;
|
|
112
|
+
width: 4px;
|
|
113
|
+
background-color: ${e=>e.leftLineColor};
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.message-body {
|
|
118
|
+
color: #25292f;
|
|
119
|
+
font-size: 16px;
|
|
120
|
+
word-break: break-all;
|
|
121
|
+
white-space: pre-line;
|
|
122
|
+
}
|
|
123
|
+
.message-container {
|
|
124
|
+
display: flex;
|
|
125
|
+
flex-direction: column;
|
|
126
|
+
justify-content: flex-start;
|
|
127
|
+
.data-container,
|
|
128
|
+
.attachment-container {
|
|
129
|
+
display: flex;
|
|
130
|
+
flex-direction: column;
|
|
131
|
+
width: 100%;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
.actions-container {
|
|
135
|
+
margin-top: 10px;
|
|
136
|
+
.actions-item {
|
|
137
|
+
margin-right: 8px;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
`;gn.propTypes={severity:b.string.isRequired,notification:b.object.isRequired,showSke:b.bool};gn.defaultProps={showSke:!0};const St=e=>Is.sanitize(e,{ALLOWED_ATTR:["href","target","rel","class","id","style"]}),Fi=async(e,t)=>{const{type:n,did:r}=e;return rr.isSameAddr(n,"did")?await Ni(r,t)||st.getLink(e):st.getLink(e)},qi=async(e,t,n=!0)=>{const r=st.toTextList(e);return await Promise.all(r.map(async i=>{if(i instanceof st.Link){if(n){const a=await Fi(i,t),{type:l,chainId:c,did:u}=i;return rr.isSameAddr(l,"dapp")?`<em style="font-weight:bold;" data-type="${l}" data-chain-id="${c}" data-did="${u}">${i.text}</em>`:a?`<a target="_blank" rel="noopener noreferrer" style="color:#4598fa;font-weight:bold;" href="${a}">${i.text}</a>`:`<em style="font-weight:bold;" data-type="${l}" data-chain-id="${c}" data-did="${u}">${i.text}</em>`}return i.text}return i})).then(i=>i.join(""))};Hr.propTypes={notification:b.object,rows:b.number,minimal:b.bool};function Hr({notification:e,rows:t=2,minimal:n=!1}){const[r,o]=y.useState(!1),[i,a]=y.useState(""),{t:l,locale:c}=J(),{palette:u}=ce(),d=y.useMemo(()=>{const{attachments:g}=e||{};if(!g)return!1;try{return g.length>0}catch{return!1}},[e]),p=y.useMemo(()=>{const{blocks:g}=e||{};if(!g)return!1;try{return g.length>0}catch{return!1}},[e]),f=y.useMemo(()=>{const{description:g}=e||{};return!!g},[e]),h=y.useMemo(()=>{const{data:g}=e||{};return!Ye(g)},[e]),j=y.useMemo(()=>d||p||f||h,[d,p,f,h]);if(y.useEffect(()=>{qi((e==null?void 0:e.description)??"",c).then(g=>{a(g)})},[e==null?void 0:e.description,c]),!j)return null;const x=()=>t===0?"":r?`<span class='toggle-btn' data-name='toggle-expanded'>${l("common.collapse")}</span>`:`...<span class='toggle-btn' data-name='toggle-expanded'>${l("common.expand")}</span>`,k=g=>{const{target:T}=g;T.getAttribute("data-name")==="toggle-expanded"&&(o(!r),g.customPreventRedirect=!0)};return s.jsxs(Vi,{color:n?u.primary.contrastText:"",children:[s.jsx(C,{className:"text-container",component:"div",onClick:k,children:i&&(!r&&t>0?s.jsx(Uo,{basedOn:"letters",unsafeHTML:St(i),maxLine:t,ellipsisHTML:St(x())}):s.jsx(V,{component:"div",className:`content ${t===0?"ellipsis":""}`,style:{whiteSpace:"pre-line!important"},dangerouslySetInnerHTML:{__html:St(`${i}${x()}`)}}))}),!n&&(d||h)?s.jsx(gn,{severity:e.severity,notification:e}):null]})}const Vi=G(C)`
|
|
141
|
+
width: 100%;
|
|
142
|
+
color: ${e=>e.color?e.color:e.theme.palette.text.secondary};
|
|
143
|
+
.text-container {
|
|
144
|
+
word-wrap: break-word;
|
|
145
|
+
word-break: break-all;
|
|
146
|
+
color: ${e=>e.color?e.color:e.theme.palette.text.secondary};
|
|
147
|
+
.toggle-btn {
|
|
148
|
+
display: inline-block;
|
|
149
|
+
white-space: nowrap;
|
|
150
|
+
cursor: pointer;
|
|
151
|
+
margin-left: 4px;
|
|
152
|
+
color: ${e=>e.theme.palette.secondary.main};
|
|
153
|
+
}
|
|
154
|
+
.content.ellipsis {
|
|
155
|
+
overflow: hidden;
|
|
156
|
+
text-overflow: ellipsis;
|
|
157
|
+
word-break: break-all;
|
|
158
|
+
display: block;
|
|
159
|
+
display: -webkit-box;
|
|
160
|
+
-webkit-box-orient: vertical;
|
|
161
|
+
-webkit-line-clamp: 2;
|
|
162
|
+
line-height: 1.25;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
`,Wi=y.memo(Hr);var Pt={exports:{}},Lt={exports:{}},Dt={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return r==null}e.exports=t.default,e.exports.default=t.default})(Dt,Dt.exports);var Ki=Dt.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=o(Es),r=o(Ki);function o(c){return c&&c.__esModule?c:{default:c}}var i=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,a=/^[-+]?[0-9]+$/;function l(c,u){(0,n.default)(c),u=u||{};var d=u.allow_leading_zeroes===!1?i:a,p=!u.hasOwnProperty("min")||(0,r.default)(u.min)||c>=u.min,f=!u.hasOwnProperty("max")||(0,r.default)(u.max)||c<=u.max,h=!u.hasOwnProperty("lt")||(0,r.default)(u.lt)||c<u.lt,j=!u.hasOwnProperty("gt")||(0,r.default)(u.gt)||c>u.gt;return d.test(c)&&p&&f&&h&&j}e.exports=t.default,e.exports.default=t.default})(Lt,Lt.exports);var Gi=Lt.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(Gi);function r(i){return i&&i.__esModule?i:{default:i}}function o(i){return(0,n.default)(i,{allow_leading_zeroes:!1,min:0,max:65535})}e.exports=t.default,e.exports.default=t.default})(Pt,Pt.exports);var Qi=Pt.exports;const Ji=Qs(Qi);function H({title:e,desc:t,sectionLeftSx:n,sectionRightSx:r,children:o,...i}){return s.jsx(Zi,{...i,children:s.jsxs(ot,{className:"section",direction:{sm:"column",md:"row"},gap:{xs:3,md:6},children:[s.jsxs(C,{className:"section-left",sx:n,children:[s.jsx(V,{className:"section-title",dangerouslySetInnerHTML:{__html:e}}),s.jsx(C,{className:"section-desc",sx:{color:"text.secondary"},dangerouslySetInnerHTML:{__html:t}})]}),s.jsx(ot,{className:"section-content",direction:"column",sx:{width:"100%",...r},children:o})]})})}H.propTypes={title:b.string.isRequired,children:b.node.isRequired,desc:b.string,sectionLeftSx:b.object,sectionRightSx:b.object};H.defaultProps={desc:"",sectionLeftSx:{width:"384px"},sectionRightSx:{}};const Zi=G(C)`
|
|
166
|
+
display: flex;
|
|
167
|
+
align-items: flex-start;
|
|
168
|
+
width: 100%;
|
|
169
|
+
|
|
170
|
+
.section {
|
|
171
|
+
width: 100%;
|
|
172
|
+
|
|
173
|
+
.section-left {
|
|
174
|
+
flex-shrink: 0;
|
|
175
|
+
flex-grow: 0;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.section-title {
|
|
179
|
+
font-weight: 500;
|
|
180
|
+
line-height: 32px;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.section-desc {
|
|
184
|
+
font-weight: normal;
|
|
185
|
+
font-size: 12px;
|
|
186
|
+
white-space: pre-line;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.section-content {
|
|
190
|
+
flex-grow: 1;
|
|
191
|
+
width: 0;
|
|
192
|
+
align-self: center;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
@media (max-width: 900px) {
|
|
197
|
+
.section-left {
|
|
198
|
+
width: 100%;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.section-content {
|
|
202
|
+
width: 100% !important;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
`,Ct={enabled:!1,secure:!1,from:"",host:"",port:"",user:"",password:"",companyName:"",companyLink:"",companyAddress:"",supportEmail:""};function Xi(){var P,R,L;const{api:e}=Re(),{blocklet:t}=Qt(),{t:n}=J(),{confirmApi:r,confirmHolder:o}=pr(),i=(P=t==null?void 0:t.meta)==null?void 0:P.did,a=Object.assign({...Ct},((L=(R=t==null?void 0:t.settings)==null?void 0:R.notification)==null?void 0:L.email)||{}),{handleSubmit:l,control:c,formState:u,watch:d,reset:p}=hr({defaultValues:vr(a,Object.keys(Ct))}),f=br({testReceiver:"",testReceiverError:""}),h=d("enabled"),j=B(async(m,I,F=!0)=>{var re,pe;try{const{blocklet:le}=await e.configNotification({input:{did:i,notification:JSON.stringify({email:m})}}),yt=Object.assign({...Ct},((pe=(re=le==null?void 0:le.settings)==null?void 0:re.notification)==null?void 0:pe.email)||{});p(yt),F&&N.success(n("oauth.saveSuccess"))}catch(le){if(F)N.error(le.message||n("oauth.saveFailed"));else throw le}}),x=B(async(m,I,F)=>{try{u.isDirty&&await j(m,I,!1),await e.sendEmail({input:{did:i,receiver:F,email:JSON.stringify({body:"Your SMTP configuration is correct!",title:"Test email",type:"notification"})}}),N.success(n("notification.email.testSuccess"))}catch(re){N.error(re.message||n("notification.email.testfailed"))}}),k=B((m,I)=>{f.testReceiver="",f.testReceiverError="",r.open({title:n("notification.email.testSendEmail"),content:()=>s.jsx(C,{sx:{width:"300px"},children:s.jsx(W,{sx:{mt:1},fullWidth:!0,name:"testReceiver",label:n("notification.email.inputTestReceiver"),value:f.testReceiver,onChange:F=>{f.testReceiver=F.target.value},error:!!f.testReceiverError,helperText:f.testReceiverError||" "})}),confirmButtonText:n("common.confirm"),cancelButtonText:n("common.cancel"),async onConfirm(F){var pe;const re=(pe=f.testReceiver)==null?void 0:pe.trim();if(!re){f.testReceiverError=n("notification.email.receiverRequired");return}if(!bt(re)){f.testReceiverError=n("notification.email.receiverInvalid");return}f.testReceiverError="",await x(m,I,re),F()}})}),g=B(m=>{const I=m==null?void 0:m.trim();return I?bt(I)?!0:n("notification.email.fromInvalid"):n("notification.email.fromRequired")}),T=B(m=>{const I=m==null?void 0:m.trim();return I?kt(I,{require_host:!1,protocols:[]})?!0:n("notification.email.hostInvalid"):n("notification.email.hostRequired")}),w=B(m=>m?Ji(m)?!0:n("notification.email.portInvalid"):n("notification.email.portRequired")),D=B(m=>m!=null&&m.trim()?!0:n("notification.email.userRequired")),A=B(m=>m!=null&&m.trim()?!0:n("notification.email.passwordRequired")),v=B(m=>m!=null&&m.trim()&&!kt(m,{protocols:["http","https"],require_protocol:!0})?n("notification.email.linkInvalid"):!0),E=B(m=>m!=null&&m.trim()&&!bt(m)?n("notification.email.emailInvalid"):!0),_=B(()=>!0);return s.jsxs(C,{children:[s.jsxs(Yi,{component:"form",onSubmit:l(j),disabled:!0,sx:{".section-left":{width:"160px"}},children:[s.jsx(H,{title:n("notification.email.enable"),my:2.5,children:s.jsx(q,{name:"enabled",control:c,render:({field:m})=>s.jsx($e,{control:s.jsx(Rt,{checked:m.value,...m})})})}),s.jsx(H,{title:n("notification.email.from"),children:s.jsx(q,{name:"from",control:c,rules:{validate:h?g:_},render:({field:m})=>{var I;return s.jsx(Q,{fullWidth:!0,children:s.jsx(W,{...m,size:"small",required:!0,label:n("notification.email.from"),error:!!u.errors[m.name],helperText:((I=u.errors[m.name])==null?void 0:I.message)||" ",disabled:!h})})}})}),s.jsx(H,{title:n("notification.email.host"),children:s.jsx(q,{name:"host",control:c,rules:{validate:h?T:_},render:({field:m})=>{var I;return s.jsx(Q,{fullWidth:!0,children:s.jsx(W,{...m,size:"small",required:!0,error:!!u.errors[m.name],label:n("notification.email.host"),helperText:((I=u.errors[m.name])==null?void 0:I.message)||" ",disabled:!h})})}})}),s.jsx(H,{title:n("notification.email.port"),children:s.jsx(q,{name:"port",control:c,rules:{validate:h?w:_},render:({field:m})=>{var I;return s.jsx(Q,{fullWidth:!0,children:s.jsx(W,{...m,size:"small",required:!0,type:"number",error:!!u.errors[m.name],label:n("notification.email.port"),helperText:((I=u.errors[m.name])==null?void 0:I.message)||" ",disabled:!h})})}})}),s.jsx(H,{title:n("notification.email.user"),children:s.jsx(q,{name:"user",control:c,rules:{validate:h?D:_},render:({field:m})=>{var I;return s.jsx(Q,{fullWidth:!0,children:s.jsx(W,{...m,size:"small",required:!0,error:!!u.errors[m.name],label:n("notification.email.user"),helperText:((I=u.errors[m.name])==null?void 0:I.message)||" ",disabled:!h})})}})}),s.jsx(H,{title:n("notification.email.password"),children:s.jsx(q,{name:"password",control:c,rules:{validate:h?A:_},render:({field:m})=>{var I;return s.jsx(Q,{fullWidth:!0,children:s.jsx(W,{...m,size:"small",required:!0,type:"password",error:!!u.errors[m.name],label:n("notification.email.password"),helperText:((I=u.errors[m.name])==null?void 0:I.message)||" ",disabled:!h})})}})}),s.jsx(H,{title:n("notification.email.secure"),children:s.jsx(q,{name:"secure",control:c,rules:{validate:_},render:({field:m})=>s.jsx(Q,{fullWidth:!0,children:s.jsx($e,{control:s.jsx(Rt,{checked:m.value,...m,disabled:!h})})})})}),s.jsxs(Fo,{children:[s.jsxs(qo,{expandIcon:s.jsx(Vo,{fontSize:"small"}),"aria-controls":"panel1-content",id:"panel1-header",children:[n("notification.email.signature"),s.jsx(Ie,{title:n("notification.email.signatureTooltip"),children:s.jsx(io,{fontSize:"small",sx:{ml:1,cursor:"help"}})})]}),s.jsxs(Wo,{children:[s.jsx(H,{title:n("notification.email.companyName"),children:s.jsx(q,{name:"companyName",control:c,rules:{validate:_},render:({field:m})=>{var I;return s.jsx(Q,{fullWidth:!0,children:s.jsx(W,{...m,size:"small",error:!!u.errors[m.name],label:n("notification.email.companyName"),helperText:((I=u.errors[m.name])==null?void 0:I.message)||" ",disabled:!h})})}})}),s.jsx(H,{title:n("notification.email.companyLink"),children:s.jsx(q,{name:"companyLink",control:c,rules:{validate:h?v:_},render:({field:m})=>{var I;return s.jsx(Q,{fullWidth:!0,children:s.jsx(W,{...m,size:"small",error:!!u.errors[m.name],label:n("notification.email.companyLink"),helperText:((I=u.errors[m.name])==null?void 0:I.message)||" ",disabled:!h})})}})}),s.jsx(H,{title:n("notification.email.companyAddress"),children:s.jsx(q,{name:"companyAddress",control:c,rules:{validate:_},render:({field:m})=>{var I;return s.jsx(Q,{fullWidth:!0,children:s.jsx(W,{...m,size:"small",error:!!u.errors[m.name],label:n("notification.email.companyAddress"),helperText:((I=u.errors[m.name])==null?void 0:I.message)||" ",disabled:!h})})}})}),s.jsx(H,{title:n("notification.email.supportEmail"),children:s.jsx(q,{name:"supportEmail",control:c,rules:{validate:h?E:_},render:({field:m})=>{var I;return s.jsx(Q,{fullWidth:!0,children:s.jsx(W,{...m,size:"small",type:"email",error:!!u.errors[m.name],label:n("notification.email.supportEmail"),helperText:((I=u.errors[m.name])==null?void 0:I.message)||" ",disabled:!h})})}})})]})]}),s.jsxs(C,{sx:{display:"flex",justifyContent:"flex-end",gap:2,mt:3},children:[s.jsx(be,{variant:"outlined",color:"warning",onClick:l(k),disabled:!h,children:n("oauth.runTest")}),s.jsx(be,{type:"submit",variant:"contained",disabled:!u.isDirty,children:n("oauth.save")})]})]}),o]})}const Yi=G(ot)``,_t={enabled:!1,endpoint:"",did:void 0,pushPath:void 0};function ea(){var w,D,A;const{api:e}=Re(),{blocklet:t}=Qt(),{t:n}=J(),{confirmApi:r,confirmHolder:o}=pr(),i=(w=t==null?void 0:t.meta)==null?void 0:w.did,a=Object.assign({..._t},((A=(D=t==null?void 0:t.settings)==null?void 0:D.notification)==null?void 0:A.pushKit)||{}),{handleSubmit:l,control:c,formState:u,watch:d,reset:p}=hr({defaultValues:vr(a,Object.keys(_t))}),f=br({testReceiver:"",testReceiverError:""}),h=d("enabled"),j=B(async(v,E,_=!0)=>{var P,R;try{const{blocklet:L}=await e.configNotification({input:{did:i,notification:JSON.stringify({pushKit:v})}}),m=Object.assign({..._t},((R=(P=L==null?void 0:L.settings)==null?void 0:P.notification)==null?void 0:R.pushKit)||{});p(m),_&&N.success(n("oauth.saveSuccess"))}catch(L){if(_)N.error(L.message||n("oauth.saveFailed"));else throw L}}),x=B(async(v,E)=>{var _,P,R;try{u.isDirty&&await j(v,E,!1);const L=(_=((t==null?void 0:t.configs)||[]).find(F=>F.key==="BLOCKLET_APP_URL"))==null?void 0:_.value,m=Jt(ve(L,"/.well-known/service/blocklet/logo"),{v:(P=t==null?void 0:t.meta)==null?void 0:P.version,t:new Date((t==null?void 0:t.updatedAt)||0).getTime()}),I={type:"passthrough",passthroughType:"messageStatus",data:{message:{title:"Test push-kit notification",body:"This is message from push-kit config test",sender:{did:t==null?void 0:t.appDid,fullName:(R=t==null?void 0:t.meta)==null?void 0:R.title,avatar:m}}}};await e.sendPush({input:{did:i,receiver:f.testReceiver,notification:JSON.stringify(I)}}),N.success(n("notification.pushKit.testSuccess"))}catch(L){N.error(L.message||n("notification.pushKit.testfailed"))}}),k=B((v,E)=>{f.testReceiverError="",r.open({title:n("notification.pushKit.testSend"),content:()=>s.jsx(C,{sx:{width:"450px",maxWidth:"100%"},children:s.jsx(W,{sx:{mt:1},fullWidth:!0,name:"testReceiver",label:n("notification.pushKit.inputTestReceiver"),value:f.testReceiver,onChange:_=>{f.testReceiver=_.target.value},error:!!f.testReceiverError,helperText:f.testReceiverError||" "})}),confirmButtonText:n("common.confirm"),cancelButtonText:n("common.cancel"),async onConfirm(_){var R;if(!((R=f.testReceiver)==null?void 0:R.trim())){f.testReceiverError=n("notification.pushKit.receiverRequired");return}f.testReceiverError="",await x(v,E),_()}})}),g=B(v=>{const E=v==null?void 0:v.trim();return E?kt(E)?!0:n("notification.pushKit.endpointInvalid"):n("notification.pushKit.endpointRequired")}),T=B(()=>!0);return s.jsxs(C,{children:[s.jsxs(ta,{component:"form",onSubmit:l(j),disabled:!0,sx:{".section-left":{width:"160px"}},children:[s.jsx(H,{title:n("notification.pushKit.enable"),my:2.5,children:s.jsx(q,{name:"enabled",control:c,render:({field:v})=>s.jsx($e,{control:s.jsx(Rt,{checked:v.value,...v})})})}),s.jsx(H,{title:n("notification.pushKit.endpoint"),children:s.jsx(q,{name:"endpoint",control:c,rules:{validate:h?g:T},render:({field:v})=>{var E;return s.jsx(Q,{fullWidth:!0,children:s.jsx(W,{...v,size:"small",required:!0,label:n("notification.pushKit.endpoint"),error:!!u.errors[v.name],helperText:((E=u.errors[v.name])==null?void 0:E.message)||" ",disabled:!h})})}})}),s.jsxs(H,{title:n("notification.pushKit.customOptions"),children:[s.jsx(q,{name:"did",control:c,render:({field:v})=>{var E;return s.jsx(Q,{fullWidth:!0,children:s.jsx(W,{...v,size:"small",label:n("notification.pushKit.did"),error:!!u.errors[v.name],helperText:((E=u.errors[v.name])==null?void 0:E.message)||" ",disabled:!h})})}}),s.jsx(q,{name:"pushPath",control:c,render:({field:v})=>{var E;return s.jsx(Q,{fullWidth:!0,children:s.jsx(W,{...v,size:"small",label:n("notification.pushKit.pushPath"),error:!!u.errors[v.name],helperText:((E=u.errors[v.name])==null?void 0:E.message)||" ",disabled:!h})})}})]}),s.jsxs(C,{sx:{display:"flex",justifyContent:"flex-end",gap:2,mt:3},children:[s.jsx(be,{variant:"outlined",color:"warning",onClick:l(k),disabled:!h,children:n("oauth.runTest")}),s.jsx(be,{type:"submit",variant:"contained",disabled:!u.isDirty,children:n("oauth.save")})]})]}),o]})}const ta=G(ot)``,qn=[{label:s.jsx(C,{textAlign:"center",width:"100%",children:"Email"}),value:"email"},{label:s.jsx(C,{textAlign:"center",width:"100%",children:"Push Kit"}),value:"pushKit"}];function na(){const[e,t]=y.useState(qn[0].value),{locale:n}=y.useContext(mt),r=je(()=>({email:s.jsx(Xi,{}),pushKit:s.jsx(ea,{})}),[n]),o=y.useMemo(()=>({padding:"10px 0"}),[]);return s.jsxs(C,{children:[s.jsx(mr,{tabs:qn,current:e,onChange:t}),s.jsx(C,{style:o,children:r[e]})]})}var O=function(t,n,r){return ir.call(n,"css")?s.jsx(ar,cr(t,n),r):s.jsx(t,n,r)},Qe=function(t,n,r){return ir.call(n,"css")?s.jsxs(ar,cr(t,n),r):s.jsxs(t,n,r)};/**
|
|
206
|
+
* (c) Iconify
|
|
207
|
+
*
|
|
208
|
+
* For the full copyright and license information, please view the license.txt or license.gpl.txt
|
|
209
|
+
* files at https://github.com/iconify/iconify
|
|
210
|
+
*
|
|
211
|
+
* Licensed under MIT.
|
|
212
|
+
*
|
|
213
|
+
* @license MIT
|
|
214
|
+
* @version 3.1.1
|
|
215
|
+
*/const Fr=Object.freeze({left:0,top:0,width:16,height:16}),ct=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ze=Object.freeze({...Fr,...ct}),At=Object.freeze({...ze,body:"",hidden:!1});function ra(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Vn(e,t){const n=ra(e,t);for(const r in At)r in ct?r in e&&!(r in n)&&(n[r]=ct[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function sa(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function i(a){if(n[a])return o[a]=[];if(!(a in o)){o[a]=null;const l=r[a]&&r[a].parent,c=l&&i(l);c&&(o[a]=[l].concat(c))}return o[a]}return Object.keys(n).concat(Object.keys(r)).forEach(i),o}function oa(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let i={};function a(l){i=Vn(r[l]||o[l],i)}return a(t),n.forEach(a),Vn(e,i)}function ia(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=sa(e);for(const o in r){const i=r[o];i&&(t(o,oa(e,o,i)),n.push(o))}return n}const De=/^[a-z0-9]+(-[a-z0-9]+)*$/,Pe=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const l=o.pop(),c=o.pop(),u={provider:o.length>0?o[0]:r,prefix:c,name:l};return t&&!tt(u)?null:u}const i=o[0],a=i.split("-");if(a.length>1){const l={provider:r,prefix:a.shift(),name:a.join("-")};return t&&!tt(l)?null:l}if(n&&r===""){const l={provider:r,prefix:"",name:i};return t&&!tt(l,n)?null:l}return null},tt=(e,t)=>e?!!((e.provider===""||e.provider.match(De))&&(t&&e.prefix===""||e.prefix.match(De))&&e.name.match(De)):!1,aa={provider:"",aliases:{},not_found:{},...Fr};function Tt(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function ca(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Tt(e,aa))return null;const n=t.icons;for(const o in n){const i=n[o];if(!o.match(De)||typeof i.body!="string"||!Tt(i,At))return null}const r=t.aliases||Object.create(null);for(const o in r){const i=r[o],a=i.parent;if(!o.match(De)||typeof a!="string"||!n[a]&&!r[a]||!Tt(i,At))return null}return t}const lt=Object.create(null);function la(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function ie(e,t){const n=lt[e]||(lt[e]=Object.create(null));return n[t]||(n[t]=la(e,t))}function xn(e,t){return ca(t)?ia(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function ua(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function da(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(lt)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(lt[o]||{})).forEach(a=>{const l=ie(o,a);n=n.concat(Object.keys(l.icons).map(c=>(o!==""?"@"+o+":":"")+a+":"+c))})}),n}let vn=!1;function fa(e){return vn}function Ue(e){const t=typeof e=="string"?Pe(e,!0,vn):e;if(t){const n=ie(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function pa(e,t){const n=Pe(e,!0,vn);if(!n)return!1;const r=ie(n.provider,n.prefix);return ua(r,n.name,t)}function qr(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!tt({provider:t,prefix:n,name:"a"}))return!1;const r=ie(t,n);return!!xn(r,e)}function ma(e){return!!Ue(e)}function ha(e){const t=Ue(e);return t?{...ze,...t}:null}const Vr=Object.freeze({width:null,height:null}),Wr=Object.freeze({...Vr,...ct}),ga=/(-?[0-9.]*[0-9]+[0-9.]*)/g,xa=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Ot(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(ga);if(r===null||!r.length)return e;const o=[];let i=r.shift(),a=xa.test(i);for(;;){if(a){const l=parseFloat(i);isNaN(l)?o.push(i):o.push(Math.ceil(l*t*n)/n)}else o.push(i);if(i=r.shift(),i===void 0)return o.join("");a=!a}}const va=e=>e==="unset"||e==="undefined"||e==="none";function ht(e,t){const n={...ze,...e},r={...Wr,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(j=>{const x=[],k=j.hFlip,g=j.vFlip;let T=j.rotate;k?g?T+=2:(x.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),x.push("scale(-1 1)"),o.top=o.left=0):g&&(x.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),x.push("scale(1 -1)"),o.top=o.left=0);let w;switch(T<0&&(T-=Math.floor(T/4)*4),T=T%4,T){case 1:w=o.height/2+o.top,x.unshift("rotate(90 "+w.toString()+" "+w.toString()+")");break;case 2:x.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:w=o.width/2+o.left,x.unshift("rotate(-90 "+w.toString()+" "+w.toString()+")");break}T%2===1&&(o.left!==o.top&&(w=o.left,o.left=o.top,o.top=w),o.width!==o.height&&(w=o.width,o.width=o.height,o.height=w)),x.length&&(i='<g transform="'+x.join(" ")+'">'+i+"</g>")});const a=r.width,l=r.height,c=o.width,u=o.height;let d,p;a===null?(p=l===null?"1em":l==="auto"?u:l,d=Ot(p,c/u)):(d=a==="auto"?c:a,p=l===null?Ot(d,u/c):l==="auto"?u:l);const f={},h=(j,x)=>{va(x)||(f[j]=x.toString())};return h("width",d),h("height",p),f.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+u.toString(),{attributes:f,body:i}}const ya=/\sid="(\S+)"/g,ba="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let ja=0;function Kr(e,t=ba){const n=[];let r;for(;r=ya.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const a=typeof t=="function"?t(i):t+(ja++).toString(),l=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+l+')([")]|\\.[a-z])',"g"),"$1"+a+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const ye={local:!0,session:!0},Gr={local:new Set,session:new Set};let yn=!1;function wa(e){yn=e}const Wn="iconify2",Ne="iconify",Qr=Ne+"-count",Kn=Ne+"-version",Jr=36e5,Sa=168;function $t(e,t){try{return e.getItem(t)}catch{}}function bn(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Gn(e,t){try{e.removeItem(t)}catch{}}function Mt(e,t){return bn(e,Qr,t.toString())}function Nt(e){return parseInt($t(e,Qr))||0}let Je=typeof window>"u"?{}:window;function Zr(e){const t=e+"Storage";try{if(Je&&Je[t]&&typeof Je[t].length=="number")return Je[t]}catch{}ye[e]=!1}function Xr(e,t){const n=Zr(e);if(!n)return;const r=$t(n,Kn);if(r!==Wn){if(r){const l=Nt(n);for(let c=0;c<l;c++)Gn(n,Ne+c.toString())}bn(n,Kn,Wn),Mt(n,0);return}const o=Math.floor(Date.now()/Jr)-Sa,i=l=>{const c=Ne+l.toString(),u=$t(n,c);if(typeof u=="string"){try{const d=JSON.parse(u);if(typeof d=="object"&&typeof d.cached=="number"&&d.cached>o&&typeof d.provider=="string"&&typeof d.data=="object"&&typeof d.data.prefix=="string"&&t(d,l))return!0}catch{}Gn(n,c)}};let a=Nt(n);for(let l=a-1;l>=0;l--)i(l)||(l===a-1?(a--,Mt(n,a)):Gr[e].add(l))}function Yr(){if(!yn){wa(!0);for(const e in ye)Xr(e,t=>{const n=t.data,r=t.provider,o=n.prefix,i=ie(r,o);if(!xn(i,n).length)return!1;const a=n.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,a):a,!0})}}function es(e,t){switch(e){case"local":case"session":ye[e]=t;break;case"all":for(const n in ye)ye[n]=t;break}}const zt=Object.create(null);function ts(e,t){zt[e]=t}function Ut(e){return zt[e]||zt[""]}function jn(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const gt=Object.create(null),Le=["https://api.simplesvg.com","https://api.unisvg.com"],nt=[];for(;Le.length>0;)Le.length===1||Math.random()>.5?nt.push(Le.shift()):nt.push(Le.pop());gt[""]=jn({resources:["https://api.iconify.design"].concat(nt)});function ns(e,t){const n=jn(t);return n===null?!1:(gt[e]=n,!0)}function xt(e){return gt[e]}function Ca(){return Object.keys(gt)}const _a=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let ut=_a();function Ta(e){ut=e}function Ia(){return ut}function Ea(e,t){const n=xt(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(a=>{o=Math.max(o,a.length)});const i=t+".json?icons=";r=n.maxURL-o-n.path.length-i.length}return r}function Ra(e){return e===404}const ka=(e,t,n)=>{const r=[],o=Ea(e,t),i="icons";let a={type:i,provider:e,prefix:t,icons:[]},l=0;return n.forEach((c,u)=>{l+=c.length+1,l>=o&&u>0&&(r.push(a),a={type:i,provider:e,prefix:t,icons:[]},l=c.length),a.icons.push(c)}),r.push(a),r};function Pa(e){if(typeof e=="string"){const t=xt(e);if(t)return t.path}return"/"}const La=(e,t,n)=>{if(!ut){n("abort",424);return}let r=Pa(t.provider);switch(t.type){case"icons":{const i=t.prefix,l=t.icons.join(","),c=new URLSearchParams({icons:l});r+=i+".json?"+c.toString();break}case"custom":{const i=t.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let o=503;ut(e+r).then(i=>{const a=i.status;if(a!==200){setTimeout(()=>{n(Ra(a)?"abort":"next",a)});return}return o=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",o)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",o)})},Da={prepare:ka,send:La};function Aa(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,i)=>o.provider!==i.provider?o.provider.localeCompare(i.provider):o.prefix!==i.prefix?o.prefix.localeCompare(i.prefix):o.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const i=o.provider,a=o.prefix,l=o.name,c=n[i]||(n[i]=Object.create(null)),u=c[a]||(c[a]=ie(i,a));let d;l in u.icons?d=t.loaded:a===""||u.missing.has(l)?d=t.missing:d=t.pending;const p={provider:i,prefix:a,name:l};d.push(p)}),t}function rs(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function Oa(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(i=>{const a=i.icons,l=a.pending.length;a.pending=a.pending.filter(c=>{if(c.prefix!==o)return!0;const u=c.name;if(e.icons[u])a.loaded.push({provider:r,prefix:o,name:u});else if(e.missing.has(u))a.missing.push({provider:r,prefix:o,name:u});else return n=!0,!0;return!1}),a.pending.length!==l&&(n||rs([e],i.id),i.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),i.abort))})}))}let $a=0;function Ma(e,t,n){const r=$a++,o=rs.bind(null,n,r);if(!t.pending.length)return o;const i={id:r,icons:t,callback:e,abort:o};return n.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(i)}),o}function Na(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const i=typeof o=="string"?Pe(o,t,n):o;i&&r.push(i)}),r}var za={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Ua(e,t,n,r){const o=e.resources.length,i=e.random?Math.floor(Math.random()*o):e.index;let a;if(e.random){let v=e.resources.slice(0);for(a=[];v.length>1;){const E=Math.floor(Math.random()*v.length);a.push(v[E]),v=v.slice(0,E).concat(v.slice(E+1))}a=a.concat(v)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const l=Date.now();let c="pending",u=0,d,p=null,f=[],h=[];typeof r=="function"&&h.push(r);function j(){p&&(clearTimeout(p),p=null)}function x(){c==="pending"&&(c="aborted"),j(),f.forEach(v=>{v.status==="pending"&&(v.status="aborted")}),f=[]}function k(v,E){E&&(h=[]),typeof v=="function"&&h.push(v)}function g(){return{startTime:l,payload:t,status:c,queriesSent:u,queriesPending:f.length,subscribe:k,abort:x}}function T(){c="failed",h.forEach(v=>{v(void 0,d)})}function w(){f.forEach(v=>{v.status==="pending"&&(v.status="aborted")}),f=[]}function D(v,E,_){const P=E!=="success";switch(f=f.filter(R=>R!==v),c){case"pending":break;case"failed":if(P||!e.dataAfterTimeout)return;break;default:return}if(E==="abort"){d=_,T();return}if(P){d=_,f.length||(a.length?A():T());return}if(j(),w(),!e.random){const R=e.resources.indexOf(v.resource);R!==-1&&R!==e.index&&(e.index=R)}c="completed",h.forEach(R=>{R(_)})}function A(){if(c!=="pending")return;j();const v=a.shift();if(v===void 0){if(f.length){p=setTimeout(()=>{j(),c==="pending"&&(w(),T())},e.timeout);return}T();return}const E={status:"pending",resource:v,callback:(_,P)=>{D(E,_,P)}};f.push(E),u++,p=setTimeout(A,e.rotate),n(v,t,E.callback)}return setTimeout(A),g}function ss(e){const t={...za,...e};let n=[];function r(){n=n.filter(l=>l().status==="pending")}function o(l,c,u){const d=Ua(t,l,c,(p,f)=>{r(),u&&u(p,f)});return n.push(d),d}function i(l){return n.find(c=>l(c))||null}return{query:o,find:i,setIndex:l=>{t.index=l},getIndex:()=>t.index,cleanup:r}}function Qn(){}const It=Object.create(null);function Ba(e){if(!It[e]){const t=xt(e);if(!t)return;const n=ss(t),r={config:t,redundancy:n};It[e]=r}return It[e]}function os(e,t,n){let r,o;if(typeof e=="string"){const i=Ut(e);if(!i)return n(void 0,424),Qn;o=i.send;const a=Ba(e);a&&(r=a.redundancy)}else{const i=jn(e);if(i){r=ss(i);const a=e.resources?e.resources[0]:"",l=Ut(a);l&&(o=l.send)}}return!r||!o?(n(void 0,424),Qn):r.query(t,o,n)().abort}function Ha(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in ye)Xr(r,o=>{const i=o.data;return o.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function Fa(e,t){yn||Yr();function n(r){let o;if(!ye[r]||!(o=Zr(r)))return;const i=Gr[r];let a;if(i.size)i.delete(a=Array.from(i).shift());else if(a=Nt(o),!Mt(o,a+1))return;const l={cached:Math.floor(Date.now()/Jr),provider:e.provider,data:t};return bn(o,Ne+a.toString(),JSON.stringify(l))}t.lastModified&&!Ha(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Jn(){}function qa(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Oa(e)}))}function Va(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let i;if(!o||!(i=Ut(n)))return;i.prepare(n,r,o).forEach(l=>{os(n,l,c=>{if(typeof c!="object")l.icons.forEach(u=>{e.missing.add(u)});else try{const u=xn(e,c);if(!u.length)return;const d=e.pendingIcons;d&&u.forEach(p=>{d.delete(p)}),Fa(e,c)}catch(u){console.error(u)}qa(e)})})}))}const Wa=e=>{const n=ie(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},wn=(e,t)=>{const n=Na(e,!0,fa()),r=Aa(n);if(!r.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(r.loaded,r.missing,r.pending,Jn)}),()=>{c=!1}}const o=Object.create(null),i=[];let a,l;return r.pending.forEach(c=>{const{provider:u,prefix:d}=c;if(d===l&&u===a)return;a=u,l=d,i.push(ie(u,d));const p=o[u]||(o[u]=Object.create(null));p[d]||(p[d]=[])}),r.pending.forEach(c=>{const{provider:u,prefix:d,name:p}=c,f=ie(u,d),h=f.pendingIcons||(f.pendingIcons=new Set);h.has(p)||(h.add(p),o[u][d].push(p))}),i.forEach(c=>{const{provider:u,prefix:d}=c;o[u][d].length&&Va(c,o[u][d])}),t?Ma(t,r,i):Jn},Ka=e=>new Promise((t,n)=>{const r=typeof e=="string"?Pe(e,!0):e;if(!r){n(e);return}wn([r||e],o=>{if(o.length&&r){const i=Ue(r);if(i){t({...ze,...i});return}}n(e)})});function is(e,t){const n={...e};for(const r in t){const o=t[r],i=typeof o;r in Vr?(o===null||o&&(i==="string"||i==="number"))&&(n[r]=o):i===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const vt={...Wr,inline:!1},Et="iconify",Bt="iconify-inline",fe="iconifyData"+Date.now();let Se=[];function Be(e){for(let t=0;t<Se.length;t++){const n=Se[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function as(e,t=!1){let n=Be(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},Se.push(n),n)}function Ga(){if(document.documentElement)return as(document.documentElement);Se.push({node:()=>document.documentElement})}function Qa(e){Se=Se.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function He(){return Se}function Ja(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let Ae=null;const Za={childList:!0,subtree:!0,attributes:!0};function cs(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,Ae&&Ae(e)}))}function Xa(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let r=0;r<t.length;r++){const o=t[r];if(o.addedNodes&&o.addedNodes.length>0||o.type==="attributes"&&o.target[fe]!==void 0){n.paused||cs(e);return}}}function ls(e,t){e.observer.instance.observe(t,Za)}function dt(e){let t=e.observer;if(t&&t.instance)return;const n=typeof e.node=="function"?e.node():e.node;!n||!window||(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(Xa.bind(null,e)),ls(e,n),t.paused||cs(e))}function Zn(){He().forEach(dt)}function us(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function Ya(e){const t=Ae!==null;if(Ae!==e&&(Ae=e,t&&He().forEach(us)),t){Zn();return}Ja(Zn)}function Ht(e){(e?[e]:He()).forEach(t=>{if(!t.observer){t.observer={paused:1};return}const n=t.observer;if(n.paused++,n.paused>1||!n.instance)return;n.instance.disconnect()})}function ec(e){if(e){const t=Be(e);t&&Ht(t)}else Ht()}function Ft(e){(e?[e]:He()).forEach(t=>{if(!t.observer){dt(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const r=typeof t.node=="function"?t.node():t.node;if(r)n.instance?ls(t,r):dt(t);else return}})}function tc(e){if(e){const t=Be(e);t&&Ft(t)}else Ft()}function ds(e,t=!1){const n=as(e,t);return dt(n),n}function fs(e){const t=Be(e);t&&(us(t),Qa(e))}function nc(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,r=t.customisations;for(const o in vt)if(n[o]!==r[o])return!0;return!1}function rc(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/o,i%1===0?r(i):0)}}return t}const sc=/[\s,]+/;function oc(e,t){t.split(sc).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const ic=["width","height"],ac=["inline","hFlip","vFlip"];function cc(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function lc(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&Pe(t,!0);if(!n)return null;const r={...vt,inline:e.classList&&e.classList.contains(Bt)};ic.forEach(l=>{const c=e.getAttribute("data-"+l);c&&(r[l]=c)});const o=e.getAttribute("data-rotate");typeof o=="string"&&(r.rotate=rc(o));const i=e.getAttribute("data-flip");typeof i=="string"&&oc(r,i),ac.forEach(l=>{const c="data-"+l,u=cc(e.getAttribute(c),c);typeof u=="boolean"&&(r[l]=u)});const a=e.getAttribute("data-mode");return{name:t,icon:n,customisations:r,mode:a}}const uc="svg."+Et+", i."+Et+", span."+Et+", i."+Bt+", span."+Bt;function dc(e){const t=[];return e.querySelectorAll(uc).forEach(n=>{const r=n[fe]||n.tagName.toLowerCase()!=="svg"?lc(n):null;r&&t.push({node:n,props:r})}),t}function ps(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let Oe;function fc(){try{Oe=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Oe=null}}function pc(e){return Oe===void 0&&fc(),Oe?Oe.createHTML(e):e}function ms(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function hs(e,t,n,r){const o=e.classList;if(r){const a=r.classList;Array.from(a).forEach(l=>{o.add(l)})}const i=[];return t.forEach(a=>{o.contains(a)?n.has(a)&&i.push(a):(o.add(a),i.push(a))}),n.forEach(a=>{t.has(a)||o.remove(a)}),i}function gs(e,t,n){const r=e.style;(n||[]).forEach(i=>{r.removeProperty(i)});const o=[];for(const i in t)r.getPropertyValue(i)||(o.push(i),r.setProperty(i,t[i]));return o}function xs(e,t,n){let r;try{r=document.createElement("span")}catch{return e}const o=t.customisations,i=ht(n,o),a=e[fe],l=ps(Kr(i.body),{"aria-hidden":"true",role:"img",...i.attributes});r.innerHTML=pc(l);const c=r.childNodes[0],u=e.attributes;for(let j=0;j<u.length;j++){const x=u.item(j),k=x.name;k!=="class"&&!c.hasAttribute(k)&&c.setAttribute(k,x.value)}const d=ms(t.icon),p=hs(c,d,new Set(a&&a.addedClasses),e),f=gs(c,o.inline?{"vertical-align":"-0.125em"}:{},a&&a.addedStyles),h={...t,status:"loaded",addedClasses:p,addedStyles:f};return c[fe]=h,e.parentNode&&e.parentNode.replaceChild(c,e),c}function mc(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function hc(e){return"data:image/svg+xml,"+mc(e)}function gc(e){return'url("'+hc(e)+'")'}const xc={display:"inline-block"},qt={"background-color":"currentColor"},vs={"background-color":"transparent"},Xn={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Yn={"-webkit-mask":qt,mask:qt,background:vs};for(const e in Yn){const t=Yn[e];for(const n in Xn)t[e+"-"+n]=Xn[n]}function er(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function vc(e,t,n,r){const o=t.customisations,i=ht(n,o),a=i.attributes,l=e[fe],c=ps(i.body,{...a,width:n.width+"",height:n.height+""}),u=ms(t.icon),d=hs(e,u,new Set(l&&l.addedClasses)),f={"--svg":gc(c),width:er(a.width),height:er(a.height),...xc,...r?qt:vs};o.inline&&(f["vertical-align"]="-0.125em");const h=gs(e,f,l&&l.addedStyles),j={...t,status:"loaded",addedClasses:d,addedStyles:h};return e[fe]=j,e}let Ze=!1;function yc(){Ze||(Ze=!0,setTimeout(()=>{Ze&&(Ze=!1,Ee())}))}function Ee(e,t=!1){const n=Object.create(null);function r(o,i){const{provider:a,prefix:l,name:c}=o,u=ie(a,l),d=u.icons[c];if(d)return{status:"loaded",icon:d};if(u.missing.has(c))return{status:"missing"};if(i&&!Wa(o)){const p=n[a]||(n[a]=Object.create(null));(p[l]||(p[l]=new Set)).add(c)}return{status:"loading"}}(e?[e]:He()).forEach(o=>{const i=typeof o.node=="function"?o.node():o.node;if(!i||!i.querySelectorAll)return;let a=!1,l=!1;function c(u,d,p){if(l||(l=!0,Ht(o)),u.tagName.toUpperCase()!=="SVG"){const f=d.mode,h=f==="mask"||(f==="bg"?!1:f==="style"?p.body.indexOf("currentColor")!==-1:null);if(typeof h=="boolean"){vc(u,d,{...ze,...p},h);return}}xs(u,d,p)}dc(i).forEach(({node:u,props:d})=>{const p=u[fe];if(!p){const{status:h,icon:j}=r(d.icon,!0);if(j){c(u,d,j);return}a=a||h==="loading",u[fe]={...d,status:h};return}let f;if(nc(p,d)){if(f=r(d.icon,p.name!==d.name),!f.icon){a=a||f.status==="loading",Object.assign(p,{...d,status:f.status});return}}else{if(p.status!=="loading")return;if(f=r(d.icon,!1),!f.icon){p.status=f.status;return}}c(u,d,f.icon)}),o.temporary&&!a?fs(i):t&&a?ds(i,!0):l&&o.observer&&Ft(o)});for(const o in n){const i=n[o];for(const a in i){const l=i[a];wn(Array.from(l).map(c=>({provider:o,prefix:a,name:c})),yc)}}}function bc(e){const t=Be(e);t?Ee(t):Ee({node:e,temporary:!0},!0)}function ys(e,t,n=!1){const r=Ue(e);if(!r)return null;const o=Pe(e),i=is(vt,t||{}),a=xs(document.createElement("span"),{name:e,icon:o,customisations:i},r);return n?a.outerHTML:a}function jc(){return"3.1.1"}function wc(e,t){return ys(e,t,!1)}function Sc(e,t){return ys(e,t,!0)}function Cc(e,t){const n=Ue(e);if(!n)return null;const r=is(vt,t||{});return ht(n,r)}function _c(e){e?bc(e):Ee()}if(typeof document<"u"&&typeof window<"u"){Ga();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!qr(r))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{Ya(Ee),Ee()})}function Tc(e,t){es(e,t!==!1)}function Ic(e){es(e,!0)}ts("",Da);if(typeof document<"u"&&typeof window<"u"){Yr();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;ns(n,o)||console.error(r)}catch{console.error(r)}}}}const Ec={getAPIConfig:xt,setAPIModule:ts,sendAPIQuery:os,setFetch:Ta,getFetch:Ia,listAPIProviders:Ca},Rc={_api:Ec,addAPIProvider:ns,loadIcons:wn,loadIcon:Ka,iconExists:ma,getIcon:ha,listIcons:da,addIcon:pa,addCollection:qr,replaceIDs:Kr,calculateSize:Ot,buildIcon:ht,getVersion:jc,renderSVG:wc,renderHTML:Sc,renderIcon:Cc,scan:_c,observe:ds,stopObserving:fs,pauseObserver:ec,resumeObserver:tc,enableCache:Tc,disableCache:Ic};try{self.Iconify===void 0&&(self.Iconify=Rc)}catch{}var Sn={},kc=X;Object.defineProperty(Sn,"__esModule",{value:!0});var bs=Sn.default=void 0,Pc=kc(Y()),Lc=s;bs=Sn.default=(0,Pc.default)((0,Lc.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");function Cn({infos:e}){const{t}=J(),n=new URL("https://community.arcblock.io/discussions/add");e.forEach(o=>{n.searchParams.set(o.label,o.value)});const r=e.map(o=>`* ${o.label}: ${o.value}`).join(`
|
|
216
|
+
`);return n.searchParams.set("report","server"),n.searchParams.set("context",`[Enter feedback here]
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
<!--
|
|
221
|
+
[Server Info]
|
|
222
|
+
${r}
|
|
223
|
+
* Page: ${window.location.href}
|
|
224
|
+
-->
|
|
225
|
+
`),O(C,{sx:{mx:{xs:0,md:2}},children:O(Kt,{sx:{color:"text.primary"},target:"_blank",href:n.href,rel:"noreferrer",style:{textDecoration:"underline"},children:t("common.reportIssue")})})}Cn.propTypes={infos:b.arrayOf(b.shape({label:b.string,value:b.string}))};Cn.defaultProps={infos:[]};var _n={},Dc=X;Object.defineProperty(_n,"__esModule",{value:!0});var Vt=_n.default=void 0,Ac=Dc(Y()),tr=s;Vt=_n.default=(0,Ac.default)([(0,tr.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,tr.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function ue({children:e}){return oe(n=>n.breakpoints.down("md"))?s.jsx(Ie,{enterDelay:500,leaveDelay:2e3,title:typeof e=="string"?e:"",children:s.jsx(C,{sx:{display:"flex",alignItems:"center",gap:1},children:s.jsx(Vt,{fontSize:"small"})})}):s.jsxs(C,{sx:{display:"flex",alignItems:"center",gap:1},children:[s.jsx(Vt,{fontSize:"small"}),e]})}ue.propTypes={children:b.node.isRequired};const Oc="https://launcher.arcblock.io/",$c=30*24*60*60*1e3;function Tn({launcherUrl:e,chainHost:t,nftId:n,launcherSessionId:r,...o}){var A,v,E,_,P,R;const{t:i,locale:a}=J(),l=Re(),[c,u]=Sr({safeIframeRef:null,popoverAnchorEl:null}),d=y.useRef(null),p=oe(L=>L.breakpoints.down("md")),{sx:f={},...h}=o,j=p?"mobile":"desktop",x=wr(async()=>{const[L,m]=await Promise.all([l.api.getLauncherSession({input:{launcherSessionId:r,launcherUrl:e}}),gr({launcherUrl:e||Oc,nftDid:n,launcherSessionId:r,locale:a})]);if(L!=null&&L.error)throw new Error(L.error);return{launcherSession:L.launcherSession,subscriptionURL:m}},[a]);if(x.loading)return s.jsx(xe,{label:s.jsxs(ue,{children:[!p&&i("expiration.desktop.loading"),s.jsx(de,{size:16})]}),variant:"success",sx:{cursor:"pointer",...f},...h});if(x.error)return console.error(x.error),s.jsx(xe,{label:s.jsx(ue,{children:i(`expiration.${j}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...f},...h,onClick:()=>x.retry()});const k=L=>{u({popoverAnchorEl:L.currentTarget})},g=()=>{u({popoverAnchorEl:null})},T=(A=x.value)==null?void 0:A.launcherSession;let w="success";[z.LAUNCH_SESSION_STATUS.overdue,z.LAUNCH_SESSION_STATUS.canceled,z.LAUNCH_SESSION_STATUS.terminated].includes((E=(v=x.value)==null?void 0:v.launcherSession)==null?void 0:E.status)&&(w="error");let D=null;if(T.expirationDate&&!T.subscription){const L=Te(T.expirationDate).diff(Te(),"ms");D=i(`expiration.${j}.tips.${w}`,{validity:jr(L,{locale:xr(a),compact:!0,verbose:!0})}),L>0&&L<=$c&&(w="warning")}return s.jsxs(s.Fragment,{children:[s.jsx(xe,{label:s.jsx(ue,{children:D||((P=(_=T==null?void 0:T.subscription)==null?void 0:_.product)==null?void 0:P.name)||i("common.subscription")}),color:w,variant:w!=="success"?"contained":"outlined",sx:{cursor:"pointer",...f},...h,onClick:k}),s.jsx(lr,{id:"popover-info",open:!!c.popoverAnchorEl,anchorEl:c.popoverAnchorEl,onClose:g,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:s.jsx(C,{sx:{width:{xs:"360px",md:"450px"}},children:s.jsx("iframe",{ref:d,title:i("common.subscription"),width:"100%",height:"600px",style:{border:0},src:(R=x.value)==null?void 0:R.subscriptionURL})})})]})}Tn.propTypes={chainHost:b.string.isRequired,nftId:b.string,launcherSessionId:b.string,sx:b.object,retention:b.number,launcherUrl:b.string.isRequired};Tn.defaultProps={sx:{},retention:0,nftId:"",launcherSessionId:""};const Mc=30*24*60*60*1e3,Nc="https://launcher.arcblock.io/";function In({launcherUrl:e,chainHost:t,nftId:n,launcherSessionId:r,...o}){var v,E,_,P,R,L,m;const{t:i,locale:a}=J(),[l,c]=Sr({safeIframeRef:null,popoverAnchorEl:null}),u=y.useRef(null),d=oe(I=>I.breakpoints.down("md")),p=Re(),{sx:f={},...h}=o,j=d?"mobile":"desktop",x=wr(async()=>{const[I,F]=await Promise.all([p.api.getLauncherSession({input:{launcherSessionId:r||n,launcherUrl:e}}),gr({launcherUrl:e||Nc,nftDid:n,launcherSessionId:r,locale:a})]);if(I!=null&&I.error)throw new Error(I.error);return{launcherSession:I.launcherSession,subscriptionURL:F}},[a]);if(x.loading)return s.jsx(xe,{label:s.jsxs(ue,{children:[!d&&i("expiration.desktop.loading"),s.jsx(de,{size:16})]}),variant:"success",sx:{cursor:"pointer",...f},...h});if(x.error)return console.error(x.error),s.jsx(xe,{label:s.jsx(ue,{children:i(`expiration.${j}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...f},...h,onClick:()=>x.retry()});const k=(E=(v=x.value)==null?void 0:v.launcherSession)==null?void 0:E.expirationDate,g=Te(k).isBefore(Te()),T=Te(k).diff(Te(),"ms");let w="success";T<=Mc&&(w="warning"),g&&(w="error");const D=I=>{c({popoverAnchorEl:I.currentTarget})},A=()=>{c({popoverAnchorEl:null})};return s.jsxs(s.Fragment,{children:[((P=(_=x.value)==null?void 0:_.launcherSession)==null?void 0:P.subscription)&&s.jsx(xe,{label:s.jsx(ue,{children:i("expiration.desktop.nextInvoice",{date:xo(k,a)})}),color:"success",variant:"outlined",sx:{cursor:"pointer",...f},...h,onClick:D}),!((L=(R=x.value)==null?void 0:R.launcherSession)!=null&&L.subscription)&&s.jsx(xe,{label:s.jsx(ue,{children:i(`expiration.${j}.tips.${w}`,{validity:jr(T,{locale:xr(a),compact:!0,verbose:!0})})}),color:w,variant:w!=="success"?"contained":"outlined",sx:{cursor:"pointer",...f},...h,onClick:D}),s.jsx(lr,{id:"popover-info",open:!!l.popoverAnchorEl,anchorEl:l.popoverAnchorEl,onClose:A,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:s.jsx(C,{sx:{width:{xs:"360px",md:"450px"}},children:s.jsx("iframe",{ref:u,title:i("common.subscription"),width:"100%",height:"600px",style:{border:0},src:(m=x.value)==null?void 0:m.subscriptionURL})})})]})}In.propTypes={chainHost:b.string.isRequired,nftId:b.string,launcherSessionId:b.string,sx:b.object,retention:b.number,launcherUrl:b.string.isRequired};In.defaultProps={sx:{},retention:0,nftId:"",launcherSessionId:""};var En={},zc=X;Object.defineProperty(En,"__esModule",{value:!0});var js=En.default=void 0,Uc=zc(Y()),Bc=s;js=En.default=(0,Uc.default)((0,Bc.jsx)("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"Fullscreen");var Rn={},Hc=X;Object.defineProperty(Rn,"__esModule",{value:!0});var ws=Rn.default=void 0,Fc=Hc(Y()),qc=s;ws=Rn.default=(0,Fc.default)((0,qc.jsx)("path",{d:"M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"}),"FullscreenExit");const Vc={width:24,height:24,body:'<path fill="currentColor" d="M6.4 18L5 16.6L14.6 7H6V5h12v12h-2V8.4L6.4 18Z"/>'};function kn({children:e,style:t,...n}){return s.jsx(ao,{style:t,...n,children:e})}kn.propTypes={children:b.any.isRequired,style:b.object};kn.defaultProps={style:{}};const U={yellow:"#FFCF71",grey:"#aaaaaa",reverse:"#444",success:"#3ab39d",running:"#34BE74",error:"#D0021B",primary:"#1DC1C7"},rt={added:U.grey,waiting:U.yellow,downloading:U.yellow,extracting:U.yellow,downloaded:U.grey,installing:U.yellow,installed:U.grey,starting:U.yellow,running:U.running,stopping:U.yellow,stopped:U.reverse,error:U.error,upgrading:U.yellow,restarting:U.yellow,corrupted:U.error,deleting:U.yellow,resource:U.primary},Wc={added:"primary",waiting:"info",downloading:"info",extracting:"info",downloaded:"primary",installing:"info",installed:"primary",starting:"info",running:"success",stopping:"warning",stopped:"reverse",error:"error",upgrading:"info",restarting:"info",corrupted:"error",deleting:"warning",resource:"primary"};function Ss({isResource:e,status:t,variant:n,source:r,progress:o,...i}){const{t:a}=y.useContext(mt),l=K.isInProgress(t),c=e&&t==="stopped"?"resource":t,u=a(`blocklet.status.${c}`);return n==="pin"?s.jsx(Ie,{title:a("blocklet.statusTip",{status:u}),children:s.jsxs(C,{position:"relative",minHeight:14,minWidth:14,display:"flex",alignItems:"center",justifyContent:"center",...i,children:[s.jsx(C,{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:rt[c],style:{opacity:.15}}),s.jsx(C,{position:"absolute",width:"55%",height:"55%",borderRadius:"50%",bgcolor:rt[c]})]})}):n==="dot"?s.jsx(Ie,{title:a("blocklet.statusTip",{status:u}),children:s.jsx(Ko,{color:rt[c],...i})}):s.jsxs(kn,{type:Wc[c],...i,children:[l&&s.jsx(de,{size:12,color:"inherit",style:{marginRight:5}}),u,c==="downloading"&&o?s.jsx("div",{style:{marginLeft:5},children:`${o} %`}):null]})}Ss.propTypes={status:b.string.isRequired,variant:b.oneOf(["dot","tag","pin"]),source:b.string,progress:b.number,isResource:b.bool};Ss.defaultProps={isResource:!1,variant:"tag",source:"",progress:0};function Kc(){const{inFullPage:e,toggleFullPage:t}=Ps();return O(ft,{onClick:t,children:e?O(ws,{sx:{transform:"scale(1.3)"}}):O(js,{sx:{transform:"scale(1.3)"}})})}function Pn({children:e}){var k;const{t}=J(),{loading:n,error:r,actions:{refreshBlocklet:o},env:i,blocklet:a}=ke(),{info:l}=vo(),c=Js(),u=oe(g=>g.breakpoints.down("md")),{appId:d,version:p}=i,f=[{label:"App ID",value:d},{label:"App Version",value:p},{label:"App Bundle Name",value:(k=a==null?void 0:a.meta)==null?void 0:k.bundleName},{label:"Server Id",value:l.did},{label:"Server Version",value:l.version}],h=g=>{var w,D,A,v;const T=Array.isArray(g)?g:[g];if(u||T.unshift(O(Kc,{})),a){const E={cursor:"pointer",marginRight:{xs:"8px",md:"48px"}};yo(a)?T.unshift(O(Tn,{chainHost:(w=a==null?void 0:a.controller)==null?void 0:w.chainHost,nftId:(D=a==null?void 0:a.controller)==null?void 0:D.nftId,launcherSessionId:(A=a==null?void 0:a.controller)==null?void 0:A.launcherSessionId,launcherUrl:(v=a==null?void 0:a.controller)==null?void 0:v.launcherUrl,sx:E})):l.ownerNft&&l.launcher&&T.unshift(O(In,{chainHost:l.launcher.chainHost,launcherUrl:l.launcher.url,nftId:l.ownerNft.did,launcherSessionId:l.ownerNft.launcherSessionId,sx:E}))}return T},j=Bo({blocklet:a}),x={logo:j?O("img",{src:j,alt:"logo"}):null,brandAddon:O(C,{children:a&&Qe(C,{component:"a",target:"_blank",href:window.blocklet.appUrl,rel:"noopener noreferrer",title:window.blocklet.appName,display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,sx:{py:1,px:2,border:"1px solid",borderColor:"text.disabled",borderRadius:"30px",cursor:"pointer"},children:[O(Ie,{title:K.isRunning(a==null?void 0:a.status)?void 0:t(`blocklet.status.${a==null?void 0:a.status}`),children:O(C,{sx:{width:8,height:8,borderRadius:"50%"},bgcolor:rt[a==null?void 0:a.status]})}),O(C,{sx:{lineHeight:1,color:"text.secondary",maxWidth:u?66:240,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:K.getDisplayName(a)}),O(C,{component:co,icon:Vc,sx:{color:"text.secondary"}})]})})};return Qe(Gc,{legacy:!1,fullWidth:!0,headerAddons:h,headerProps:x,footerProps:{addon:O(Cn,{infos:f})},children:[!a&&n&&O(it,{relative:"parent",children:O(de,{})}),!a&&r&&Qe(it,{relative:"parent",children:[Qe(C,{display:"flex",alignItems:"center",children:[O(bs,{color:"error",sx:{marginRight:1}}),Zt(r)]}),O(be,{onClick:()=>o(),children:O("span",{style:{textDecoration:"underline"},children:t("common.retry")})})]}),!!a&&O(C,{flex:1,padding:u?2:3,display:"flex",flexDirection:"column",children:O(lo,{FallbackComponent:ks,resetKeys:[c.pathname],children:e})})]})}Pn.propTypes={children:b.any};Pn.defaultProps={children:null};const Gc=G(Rs)`
|
|
226
|
+
div.dashboard-content {
|
|
227
|
+
padding: 0;
|
|
228
|
+
}
|
|
229
|
+
.header-addons .locales {
|
|
230
|
+
max-height: 400px;
|
|
231
|
+
overflow-y: auto;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.header-brand-addon {
|
|
235
|
+
display: block;
|
|
236
|
+
}
|
|
237
|
+
`;function Qc(){var k;const{t:e,locale:t}=J(),{blocklet:n,launcherSession:r,refreshSubscription:o}=ke(),{connectApi:i,session:a,api:l}=bo(),[c,u]=y.useState(!1),[d,p]=y.useState(""),[f,h]=$o({subscriptionURL:"#"});if(y.useEffect(()=>{var g,T;On(n,r)&&jo({launcherSessionId:(g=n==null?void 0:n.controller)==null?void 0:g.launcherSessionId,launcherUrl:(T=n==null?void 0:n.controller)==null?void 0:T.launcherUrl,locale:t}).then(w=>{h({subscriptionURL:w})}).catch(w=>{console.error("get subscription url error:",w)})},[n,r]),y.useEffect(()=>{var g;if((g=n.controller)!=null&&g.launcherUrl){const T=ve(n.controller.launcherUrl,"__blocklet__.js?type=json");fetch(T).then(w=>w.json()).then(w=>{var v,E;const D=(E=(v=w.componentMountPoints)==null?void 0:v.find(_=>_.did==="z2qaCNvKMv5GjouKdcDWexv6WqtHbpNPQDnAk"))==null?void 0:E.mountPoint,A=ve(n.controller.launcherUrl,D);p(A)})}},[(k=n.controller)==null?void 0:k.launcherUrl]),!$n(r)&&(!n||!r||!wo(n)||r.status===z.LAUNCH_SESSION_STATUS.installed))return"";let j=null,x="";return $n(r)?(j=s.jsx(Ks,{onClick:()=>u(!0),children:e("blocklet.paynow")}),x=e("blocklet.suspendedCausedByExpired",{deadline:wt(r==null?void 0:r.reservedUntil,t)})):On(n,r)?(j=s.jsx(Kt,{href:f.subscriptionURL,children:e("blocklet.manageSubscription")}),x=e("blocklet.suspendedCausedByExpired",{deadline:wt(r==null?void 0:r.reservedUntil,t)})):So(n,r)&&(j=s.jsx(ur,{to:ve(z.WELLKNOWN_BLOCKLET_ADMIN_PATH,"/did-spaces"),children:e("common.backup")}),x=e("blocklet.suspendedCausedByTerminated",{canceledAt:wt(r==null?void 0:r.terminatedAt,t),deadline:Co(r==null?void 0:r.terminatedAt,t)})),s.jsxs(C,{component:uo,type:"error",sx:{"&> .alert-content":{display:"block"}},children:[c&&d&&r&&s.jsx(_o,{session:a,connect:i,baseUrl:d,authToken:r.subscription.authToken,children:s.jsx(To,{dialogProps:{open:c,onClose:()=>u(!1)},subscriptionId:r.subscription.id,successToast:!0,onPaid:()=>{l.post("/blocklet/start?fromSetup=1"),o(),u(!1)}})}),x,s.jsx(V,{component:"span",sx:{marginLeft:"4px"},children:j})]})}const Cs=y.createContext({});function Kl(){return y.useContext(Cs)}const{Provider:Jc,Consumer:Gl}=Cs,{did:ne,appId:Zc}=window.env;function Xc({children:e}){var v,E;const{t,locale:n}=J(),{blocklet:r}=ke(),[o,i]=y.useState([]),[a,l]=y.useState([]),[c,u]=y.useState([]),d=K.getDisplayName(r),p=((v=((r==null?void 0:r.environments)||[]).find(_=>_.key===ge.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_PASSPORT_COLOR))==null?void 0:v.value)||"auto",f=(r==null?void 0:r.trustedPassports)||[],h=(r==null?void 0:r.trustedFactories)||[],j=(r==null?void 0:r.enablePassportIssuance)!==!1,x=async()=>{try{const _=await Ke.doBatchQuery({getRoles:{input:{teamDid:ne}},getPermissions:{input:{teamDid:ne}},getInvitations:{input:{teamDid:ne}}}),P=(_.getRoles.roles||[]).filter(R=>!z.RBAC_CONFIG.roles.some(L=>L.name===R.name&&(!L.passport||L.ci))).map(R=>(R.hasDescription=!!R.description,R.hasDescription||(R.description=t("team.passport.description",{teamName:d,title:R.title})),R));l(Ao(P,[R=>Io(R.name)],["desc"])),u(_.getPermissions.permissions||[]),i(_.getInvitations.invitations||[])}catch(_){N.error(_.message)}},k=({did:_}={})=>{const P={teamDid:ne,user:{did:_}};return Ke.getUser({input:P})},g=({query:_,paging:P}={})=>{const R={teamDid:ne};return P&&(R.paging=P),_&&(R.query=_),R.sort={lastLoginAt:-1},Ke.getUsers({input:R})},T=()=>Ke.getUsersCountPerRole({input:{teamDid:ne}}),w=()=>x();y.useEffect(()=>{var _;(_=r==null?void 0:r.meta)!=null&&_.did&&x()},[(E=r==null?void 0:r.meta)==null?void 0:E.did]),y.useEffect(()=>{l(_=>_.map(P=>(P.hasDescription||(P.description=t("team.passport.description",{teamName:d,title:P.title})),{...P})))},[t,n]);const D=_=>{_.teamDid===ne&&x()};Xe(ge.TeamEvents.userAdded,D,[ne]),Xe(ge.TeamEvents.userRemoved,D,[ne]),Xe(ge.TeamEvents.userUpdated,D,[ne]);const A={teamDid:ne,teamIssuerDid:Zc,teamName:d,invitations:o,roles:a,permissions:c,trustedPassports:f,trustedFactories:h,isNodeTeam:!1,enablePassportIssuance:j,refresh:w,passportColor:p,endpoint:window.location.origin,blocklet:r,api:{getUser:k,getUsers:g,getUsersCountPerRole:T}};return s.jsx(Jc,{value:A,children:e})}const Yc=y.lazy(()=>$(()=>import("./log-DNpJdgp3.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))),el=y.lazy(()=>$(()=>import("./index-CyUXddLG.js"),__vite__mapDeps([15,2,1,5,4,6,7,8,10,16,9,11,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,3,41,42,43,44,45,46,47,48]))),tl=y.lazy(()=>$(()=>import("./index-DsT9i24r.js"),__vite__mapDeps([49,4,2,5,1,6,7,8,44,10,9,11,50,34,30,38,39,3,41,42,25,43,45,46,31,47,48]))),nl=y.lazy(()=>$(()=>import("./index-DF3gHUuW.js"),__vite__mapDeps([51,2,1,9,10,4,5,6,7,8,11,52,34,30,25,23,53,13,40,54,12,26,55,47,56,57,58,59,28,33,60,61,62,63,64,65,42,66,67,68,69]))),rl=y.lazy(()=>$(()=>import("./overview-UIMGVO1S.js"),__vite__mapDeps([70,1,2,4,5,6,7,8,10,44,71,43,25,9,11,32,46,31,23,72,73,74,58,3,34,30,41,42,45,47,48]))),sl=y.lazy(()=>$(()=>import("./domains-BxkmGeZE.js"),__vite__mapDeps([75,2,4,5,1,6,7,8,9,10,11,76,50,24,25,46,31,34,30,38,39,65,26,77,47,44,32,78]))),ol=y.lazy(()=>$(()=>import("./index-g0L_1foA.js"),__vite__mapDeps([79,2,6,5,1,4,7,8,9,10,11,23,80,17,18,19,20,21,35,36,24,25,81,82,83,34,30,54,47,84,3,41,42,43,44,45,46,31,48]))),il=y.lazy(()=>$(()=>import("./appearance-BqJwEmtt.js"),__vite__mapDeps([85,5,2,4,1,6,7,8,9,10,11]))),al=y.lazy(()=>$(()=>import("./audit-logs-CtFZQHby.js"),__vite__mapDeps([86,4,2,5,1,6,7,8,35,36,3,9,10,11,67,68,44,87,43,25,40,69,34,30,41,42,45,46,31,47,48]))),cl=y.lazy(()=>$(()=>import("./index-9ixwCOkw.js"),__vite__mapDeps([88,2,1,5,4,6,7,8,9,10,11,40,32,89,57,13,43,25,87,44,78,17,18,19,20,21,35,36,23,90,46,31,91,92,93,59,94,30,28,29,3,34,41,42,45,47,48]))),ll=y.lazy(()=>$(()=>import("./config-navigation-B7r4dV5S.js"),__vite__mapDeps([95,2,4,5,1,6,7,8,73,82,10,96,9,11,97,98,66,58,43,25,60,61,91,30,3,34,41,42,44,45,46,31,47,48]))),ul=y.lazy(()=>$(()=>import("./index--HbH1n1_.js"),__vite__mapDeps([99,1,2,6,5,10,4,7,8,9,11,100,58,101,102,74,33,30,32,103,39,42,104,54,3,34,41,25,43,44,45,46,31,47,48]))),dl=y.lazy(()=>$(()=>import("./index-B_fwtN9z.js"),__vite__mapDeps([105,4,2,5,1,6,7,8,10,9,11,104,71,32,36,100,3,34,30,41,42,25,43,44,45,46,31,47,48]))),fl=y.lazy(()=>$(()=>import("./security-BQbSLSOe.js"),__vite__mapDeps([106,4,2,5,1,6,7,8,9,10,11,98,107,100,3,34,30,41,42,25,43,44,45,46,31,47,48]))),pl=y.lazy(()=>$(()=>import("./branding-CS-f1gMT.js"),__vite__mapDeps([108,2,1,4,5,6,7,8,10,64,109,56,83,66,9,11,24,25,43,3,34,30,41,42,44,45,46,31,47,48]))),ml=y.lazy(()=>$(()=>import("./advanced-CFME3Vrl.js"),__vite__mapDeps([110,2,1,9,10,4,5,6,7,8,11,24,25,34,30,47,26,32,23,72,73,3,41,42,43,44,45,46,31,48]))),hl=y.lazy(()=>$(()=>import("./traffic-CY9Vj6w7.js").then(e=>e.t),__vite__mapDeps([90,2,9,1,10,4,5,6,7,8,11,46,31,91,92,93,59,94,30,28,29]))),gl=y.lazy(()=>$(()=>import("./runtime-BVDdcpyT.js"),__vite__mapDeps([111,2,1,43,6,5,4,7,8,10,25,9,11,103,13,3,34,30,41,42,44,45,46,31,47,48]))),xl=y.lazy(()=>$(()=>import("./index-D64RNKdt.js"),__vite__mapDeps([112,2,4,5,1,6,7,8,113,80,17,10,18,19,20,21,23,35,36,9,11,27,28,29,34,30,26,65,24,25,13,38,39,3,41,42,43,44,45,46,31,47,48]))),vl=y.lazy(()=>$(()=>import("./list-D1dIr8Je.js"),__vite__mapDeps([114,2,4,5,1,6,7,8,10,113,46,31,22,9,11,53,26,65,34,30,80,17,18,19,20,21,23,35,36,38,39,3,41,42,25,43,44,45,47,48]))),yl=y.lazy(()=>$(()=>import("./component-C7g4FGFm.js"),__vite__mapDeps([115,1,2,5,4,6,7,8,10,9,11,116,104,24,25,113,97,94,61,26,59,93,66,30,117,62,63,64,33,65,34,42,23,118,119,102,74,58,109,56,120,45,81,82,67,68,96,32,3,77,100,121,101,122,84,44,91,13,41,38,39,43,46,31,47,48]))),bl=y.lazy(()=>$(()=>import("./index-CUfP1M2j.js"),__vite__mapDeps([123,1,2,9,10,4,5,6,7,8,11]))),jl=ve(z.WELLKNOWN_SERVICE_PATH_PREFIX,"user","notifications"),wl=e=>{const{enqueueSnackbar:t}=fr(),n=y.useCallback(r=>Jt(jl,{id:r.id,severity:r.severity||"all",componentDid:r.source==="system"?"system":r.componentDid||"all"}),[]);Xe(`${e}/${z.EVENTS.NOTIFICATION_BLOCKLET_CREATE}`,r=>{const o=n(r),{severity:i,description:a}=r||{},l=["error","warning"].includes(i)||r.sticky;r.source==="system"&&t(a,{variant:i,autoHideDuration:l?null:5e3,content:c=>s.jsx(ki,{viewAllUrl:o,keyId:c,notification:r,content:s.jsx(Wi,{notification:r,minimal:!0,rows:0})})})},[],"user")};function _s({blocklet:e,isAdmin:t}){const[n,r]=y.useState(!1),{t:o}=J(),i=Cr();return t?s.jsxs(s.Fragment,{children:[s.jsx(cl,{blocklet:e,customTableButtons:[s.jsxs(C,{display:"flex",alignItems:"center",gap:1.5,children:[s.jsx(ft,{onClick:()=>r(!0),sx:{p:i?0:void 0},children:s.jsx(rn,{})},"settings"),i?s.jsx(V,{children:o("common.setting")}):null]})]}),s.jsx(po,{title:`${o("common.notification")} ${o("common.setting")}`,fullWidth:!0,maxWidth:"md",open:n,onClose:()=>r(!1),PaperProps:{style:{minHeight:"500px"}},children:s.jsx(C,{sx:{mt:"-16px",overflowY:"hidden"},children:s.jsx(na,{})})})]}):s.jsx(Ds,{status:403})}_s.propTypes={blocklet:b.object.isRequired,isAdmin:b.bool.isRequired};const Sl=e=>{var d,p;const{t}=J(),{blocklet:n,actions:{refreshBlocklet:r},client:o,did:i}=ke(),a=(d=n==null?void 0:n.meta)==null?void 0:d.did,l=!n||Po(n.status)?[]:K.getAppMissingConfigs(n),c={overview:[{label:t("common.overview"),value:"overview"},{label:s.jsx(Gs,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!l.length,children:t("common.components")}),value:"components"}],"did-connect":[{label:t("common.members"),value:"members"},{label:t("team.member.passports"),value:"passports"},{label:t("common.setting"),value:"settings"},{label:t("common.security"),value:"security"},{label:t("oauth.client.tab"),value:"oauth"}],website:[{label:t("common.domains"),value:"domains"},{label:t("common.branding"),value:"branding"},{label:t("common.theming"),value:"theming"},{label:t("common.navigation"),value:"navigation"}],operations:[{label:t("common.notificationRecords"),value:"notifications",show:e},{label:t("common.analytics"),value:"analytics"},{label:t("common.auditLogs"),value:"audit-logs"},{label:t("common.advanced"),value:"advanced"}],integrations:[{label:"Webhooks",value:"webhooks",show:e},{label:t("common.accessKeys"),value:"access-keys"}],developers:[{label:t("common.logs"),value:"logs",show:((p=n==null?void 0:n.children)==null?void 0:p.length)&&n.structVersion===z.APP_STRUCT_VERSION},{label:t("common.performance"),value:"performance"},{label:t("common.docs"),value:"docs"}]},u={overview:rl,components:yl,members:s.jsx(el,{type:"blocklet",createPassportSvg:Mn}),passports:s.jsx(ol,{createPassportSvg:Mn}),settings:s.jsx(dl,{orientation:"vertical"}),security:s.jsx(fl,{}),"did-spaces":s.jsx(ul,{navOrientation:"horizontal"}),domains:sl,branding:s.jsx(pl,{blocklet:n,onUpdate:r}),theming:s.jsx(il,{}),navigation:ll,sitemap:s.jsx(fo,{children:t("common.comingSoon")}),notifications:s.jsx(_s,{blocklet:n,isAdmin:e}),"audit-logs":s.jsx(al,{scope:a,categories:["blocklet","team","security","certificates","gateway"]}),analytics:s.jsx(hl,{client:o,did:i}),advanced:s.jsx(ml,{blocklet:n,onUpdate:r}),webhooks:s.jsx(tl,{}),"access-keys":s.jsx(xl,{}),logs:Yc,performance:s.jsx(gl,{client:o,did:i}),docs:bl,publish:s.jsx(nl,{}),oauth:s.jsx(vl,{})};return{tabGroups:c,renders:u}};function Cl(){var g,T;const e=dr(),{tab:t="overview",subtab:n}=Zs(),{blocklet:r,refreshFlag:o}=ke(),{session:i}=yr(),a=je(()=>{var w;return(w=i==null?void 0:i.user)==null?void 0:w.did},[i]),l=Cr(),c=je(()=>{var w;return((w=i.user)==null?void 0:w.role)&&Ro.includes(i.user.role)},[i]);wl(a);const{tabGroups:u,renders:d}=Sl(c),p=w=>{e(`${z.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/${t}/${w}`)},f=(u[t]||[]).filter(w=>w.show===void 0||w.show),h=((g=(f||[]).find(w=>w.value===n))==null?void 0:g.value)||((T=f==null?void 0:f[0])==null?void 0:T.value)||t,j=d[h]||d.overview,x=["overview"].includes(t),k=r?s.jsxs(Xt,{type:"components",children:[f.length>0&&s.jsxs(C,{mb:2,display:"flex",alignItems:"center",gap:2,children:[s.jsx(C,{flex:1,children:s.jsx(mr,{tabs:f,current:h,onChange:p,scrollButtons:"auto"})}),x&&!l&&s.jsx(C,{component:"div",className:"page-header",children:r?s.jsx(Hn,{className:"page-actions",hasPermission:!0,blocklet:r,onStart:()=>{},onComplete:({error:w}={})=>{w&&N.error(w.message)},variant:"group"}):null})]}),s.jsx(C,{className:"page-content",children:s.jsx(y.Suspense,{fallback:s.jsx(it,{relative:"parent",children:s.jsx(de,{})}),children:y.isValidElement(j)?j:s.jsx(j,{blocklet:r})})})]}):s.jsx(it,{relative:"parent",children:s.jsx(de,{})});return s.jsx(ko,{children:s.jsx(Xc,{children:s.jsx(Pn,{children:s.jsxs(Tl,{children:[l&&x&&s.jsx(C,{component:"div",className:"page-header",mb:2,children:r?s.jsx(Hn,{className:"page-actions",hasPermission:!0,blocklet:r,onStart:()=>{},onComplete:({error:w}={})=>{w&&N.error(w.message)},variant:"group"}):null}),s.jsx(Dr,{}),s.jsx(Qc,{}),k]})},`${o}`)})})}function _l(){var r;const{blocklet:e}=ke(),{t}=J(),n=(r=e==null?void 0:e.meta)==null?void 0:r.did;return y.useEffect(()=>{const o=Eo();return n&&o.connect(),()=>{n&&o.isConnected()&&o.disconnect()}},[n]),s.jsxs(s.Fragment,{children:[s.jsx(Ls,{children:s.jsx("title",{children:t("pageTitle.dashboard")})}),s.jsx(Cl,{})]})}const Tl=G.main`
|
|
238
|
+
.page-header {
|
|
239
|
+
display: flex;
|
|
240
|
+
justify-content: space-between;
|
|
241
|
+
align-items: center;
|
|
242
|
+
flex-wrap: wrap;
|
|
243
|
+
gap: 16px;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.page-title {
|
|
247
|
+
display: flex;
|
|
248
|
+
align-items: center;
|
|
249
|
+
|
|
250
|
+
.page-link {
|
|
251
|
+
font-size: 15px;
|
|
252
|
+
margin-top: 8px;
|
|
253
|
+
margin-left: 8px;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
@media (max-width: ${e=>e.theme.breakpoints.values.md}px) {
|
|
258
|
+
.page-header {
|
|
259
|
+
flex-direction: column;
|
|
260
|
+
align-items: flex-start;
|
|
261
|
+
.page-actions,
|
|
262
|
+
.MuiButtonGroup-root {
|
|
263
|
+
width: 100%;
|
|
264
|
+
}
|
|
265
|
+
.MuiButtonGroup-root {
|
|
266
|
+
.MuiButtonBase-root {
|
|
267
|
+
flex: 1;
|
|
268
|
+
}
|
|
269
|
+
.blocklet-action-text {
|
|
270
|
+
display: none;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.page-title {
|
|
276
|
+
margin-bottom: 15px;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
`,Ql=Object.freeze(Object.defineProperty({__proto__:null,default:_l},Symbol.toStringTag,{value:"Module"}));export{Ss as B,H as S,kn as W,Ir as a,Tr as b,kr as c,bs as d,_e as e,Wl as f,Ql as g,Kl as u};
|