@abtnode/blocklet-services 1.16.42-beta-20250413-121549-22e9a196 → 1.16.42-beta-20250415-224346-080ee735
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/index.js +4 -3
- package/api/libs/auth/index.js +5 -5
- package/api/libs/connect/session.js +29 -3
- package/api/libs/jwt.js +36 -1
- package/api/routes/federated.js +1 -1
- package/api/routes/mcp.js +26 -13
- package/api/routes/{oauth.js → oauth/client.js} +22 -21
- package/api/routes/oauth/server.js +95 -0
- package/api/routes/user.js +5 -4
- package/api/services/auth/connect/gen-access-key.js +92 -0
- package/api/services/auth/index.js +8 -0
- package/api/services/auth/passkey.js +1 -1
- package/api/services/auth/session.js +2 -3
- package/api/services/dashboard/index.js +6 -0
- package/api/services/mcp/server.js +151 -32
- package/api/services/notification/queue.js +9 -6
- package/api/services/oauth/server.js +213 -0
- package/api/util/index.js +1 -1
- package/api/util/user-util.js +1 -21
- package/dist/assets/AdapterDayjs-BLBXeg9J.js +3 -0
- package/dist/assets/{ArrowDropDown-a-C4j7Lx.js → ArrowDropDown--dAaadP8.js} +1 -1
- package/dist/assets/{CheckCircle-CuYzdCtm.js → CheckCircle-Av1UotA-.js} +1 -1
- package/dist/assets/{ChevronLeft-CnflXey6.js → ChevronLeft-De8Da-PB.js} +1 -1
- package/dist/assets/{ChevronRight-DE7hYCb3.js → ChevronRight-CQOI2CyK.js} +1 -1
- package/dist/assets/{Community-C8NtUXNH.js → Community-B_YqAP9P.js} +1 -1
- package/dist/assets/{DeleteOutline-PGhagisl.js → DeleteOutline-Cgoi-K0i.js} +1 -1
- package/dist/assets/{Done-BVaQae1-.js → Done-BYuUlh_s.js} +1 -1
- package/dist/assets/{Download-DNNh4N1T.js → Download-DUKR_Wkm.js} +1 -1
- package/dist/assets/Edit-D2RQMivt.js +1 -0
- package/dist/assets/{EditIcon-Y1U-3M09.js → EditIcon-5ixNT5sW.js} +1 -1
- package/dist/assets/{Email-BYzCrU9G.js → Email-RGD-rKFl.js} +1 -1
- package/dist/assets/{Error-C4dVUMw4.js → Error-By0ZMWzh.js} +1 -1
- package/dist/assets/{ExpandLess-Blh1x-4z.js → ExpandLess-BNGLjxae.js} +1 -1
- package/dist/assets/{Google-CAujGJ1A.js → Google-tZCjvU7D.js} +1 -1
- package/dist/assets/{Holiday-DxDxhx5X.js → Holiday-C_1hMIGZ.js} +1 -1
- package/dist/assets/{InfoOutlined-DF9JwavD.js → InfoOutlined-DSoJjRQo.js} +1 -1
- package/dist/assets/{Launch-gOz_lwLg.js → Launch-B161pSEw.js} +1 -1
- package/dist/assets/{LaunchOutlined-MbSPR9qn.js → LaunchOutlined-wehxIahb.js} +1 -1
- package/dist/assets/{Location-CEwgGcA5.js → Location-B6FoL795.js} +1 -1
- package/dist/assets/{LockIcon-D7BH0t_p.js → LockIcon-D3vSMIOk.js} +1 -1
- package/dist/assets/{Meeting-BJz5QiFc.js → Meeting-BfKca-xn.js} +1 -1
- package/dist/assets/{MoreHoriz-CGWVyYh4.js → MoreHoriz-Bo_R2nuS.js} +1 -1
- package/dist/assets/{OffSick--msvqLGm.js → OffSick-QPPyYyU6.js} +1 -1
- package/dist/assets/{Phone-CDl3oDYG.js → Phone-_lRBpoVi.js} +1 -1
- package/dist/assets/{PlayArrow-CxWt6459.js → PlayArrow-D38lbyGo.js} +1 -1
- package/dist/assets/{QuestionMarkCircle-CPHZnM6u.js → QuestionMarkCircle-B4EnwYju.js} +1 -1
- package/dist/assets/{ServerLogo-vX_nf8Sc.js → ServerLogo-BW4PKwV0.js} +1 -1
- package/dist/assets/{Timezone-uXi4_8BX.js → Timezone-bYzGwn3x.js} +1 -1
- package/dist/assets/{TuneOutlined-DcqnBMqE.js → TuneOutlined-DMMtKa6E.js} +1 -1
- package/dist/assets/{ViewList-B6eveRY-.js → ViewList-CMIoKrN6.js} +1 -1
- package/dist/assets/{WorkingRemotely-CK4z1-Sd.js → WorkingRemotely-BK9_vlZ-.js} +1 -1
- package/dist/assets/{access-control-Dxyg5dpc.js → access-control-DLD9n3S7.js} +1 -1
- package/dist/assets/actions-CMsM02NP.js +1 -0
- package/dist/assets/add-component-core-FnU4dwXM.js +763 -0
- package/dist/assets/{add-resource-BetUBTvt.js → add-resource-CubCXHBS.js} +1 -1
- package/dist/assets/{addon-B1aBsfOX.js → addon-5JaI2ctX.js} +1 -1
- package/dist/assets/advanced-D4wfoh0v.js +14 -0
- package/dist/assets/api-3sG9at7i.js +1 -0
- package/dist/assets/appearance-BUsj4DWC.js +1 -0
- package/dist/assets/{ar-DrRqcx2b.js → ar-BUQWR0Zu.js} +1 -1
- package/dist/assets/{ar-Cb5zQ0go.js → ar-CMzth4YC.js} +3 -3
- package/dist/assets/{audit-logs-SSAqJt40.js → audit-logs-rk_iUYcM.js} +3 -3
- package/dist/assets/authorize-CDJXjmiI.js +1 -0
- package/dist/assets/{base32-iVyUiizz.js → base32-BhlNgZPk.js} +1 -1
- package/dist/assets/{branding-BDuOcSfH.js → branding-BBbE2Klb.js} +1 -1
- package/dist/assets/branding-JQ1914RB.js +40 -0
- package/dist/assets/{bundle-avatar-DfAWUEqX.js → bundle-avatar-woUZoGoi.js} +1 -1
- package/dist/assets/button-Rx3uHycr.js +1 -0
- package/dist/assets/click-to-copy-BxZJa7n5.js +1 -0
- package/dist/assets/cloneDeep-kMVNpUap.js +1 -0
- package/dist/assets/{complete-R99mlHBI.js → complete-KnPBZq-P.js} +2 -2
- package/dist/assets/{component-By64LaLD.js → component-fD-EGTLm.js} +80 -80
- package/dist/assets/{config-BvNNOdw8.js → config-8xeoVfWN.js} +2 -2
- package/dist/assets/{config-BHBxeyYh.js → config-DbqQgRSU.js} +1 -1
- package/dist/assets/{config-navigation-CPd_4svD.js → config-navigation-DrgPbe5I.js} +6 -6
- package/dist/assets/{config-space-BgWEAM0m.js → config-space-DZ9w_4_9.js} +1 -1
- package/dist/assets/confirm-_RIb3OmR.js +7 -0
- package/dist/assets/connect-CJOq1BXE.js +5 -0
- package/dist/assets/{connect-Bq-p3hnS.js → connect-CPIImVme.js} +1 -1
- package/dist/assets/{connect-to-bQVCrkhh.js → connect-to-BdhN0BHi.js} +1 -1
- package/dist/assets/{content-layout-CFHoSupA.js → content-layout-BM34AwsG.js} +1 -1
- package/dist/assets/dashboard-vsk4QHJ1.js +275 -0
- package/dist/assets/de-BkBUnf4o.js +13 -0
- package/dist/assets/{de-BRPos3d1.js → de-_X0eQXZu.js} +1 -1
- package/dist/assets/delete-confirm-DaoAi4Gz.js +1 -0
- package/dist/assets/did-address-CGHn52xI.js +1 -0
- package/dist/assets/domain-BJUSWYGQ.js +9 -0
- package/dist/assets/domain-action-card-9r42-rWK.js +29 -0
- package/dist/assets/domains-BNDFk-7R.js +1 -0
- package/dist/assets/{email-JviRloBo.js → email-fp1LVcF6.js} +3 -3
- package/dist/assets/empty-spinner-Ict2ItjU.js +1 -0
- package/dist/assets/es-C47yMWlQ.js +14 -0
- package/dist/assets/{es-D2rCdMgt.js → es-yHIDSG5r.js} +1 -1
- package/dist/assets/{exchange-passport-3aXbJr-q.js → exchange-passport-DIyhYtFS.js} +1 -1
- package/dist/assets/{format-error-BrmqJs5a.js → format-error-LAoTjvJe.js} +1 -1
- package/dist/assets/{fr-Chv_7X3-.js → fr-CXUB715N.js} +3 -3
- package/dist/assets/{fr-DAFx50ef.js → fr-D6i3bCqR.js} +1 -1
- package/dist/assets/{fuel-DOs3bqYm.js → fuel-aGwI1uP2.js} +1 -1
- package/dist/assets/gen-access-key-DMS1kzry.js +2 -0
- package/dist/assets/{get-safe-url-CWgEUVPT.js → get-safe-url-DMordnyN.js} +1 -1
- package/dist/assets/{get-safe-url-eATw6wn7.js → get-safe-url-DW2Z07ex.js} +1 -1
- package/dist/assets/{hi-CkD7b6N9.js → hi-ChVLDWm_.js} +1 -1
- package/dist/assets/hi-DCG5QxbH.js +11 -0
- package/dist/assets/{home-a0RwGUp7.js → home-B_gUzcjU.js} +1 -1
- package/dist/assets/id-BjbrrkXh.js +14 -0
- package/dist/assets/{id-BMWKdVei.js → id-D6XXuY_a.js} +1 -1
- package/dist/assets/{iframe-DVBEjxC1.js → iframe-BEanRyio.js} +1 -1
- package/dist/assets/index-4rY7Xp2W.js +14 -0
- package/dist/assets/{index-CwdXL2a0.js → index-AhbLOD9c.js} +1 -1
- package/dist/assets/{index-DrUxhMM5.js → index-BDNlzmD0.js} +4 -4
- package/dist/assets/{index-Th4BUzmb.js → index-BPa_QtWl.js} +30 -30
- package/dist/assets/index-BjN8LAYh.js +224 -0
- package/dist/assets/index-BmexzVQt.js +1 -0
- package/dist/assets/{index-C1nvgBfF.js → index-C-7MyHbp.js} +1 -1
- package/dist/assets/index-C0hr4pkt.js +346 -0
- package/dist/assets/{index-BGeUo-5w.js → index-CFJtmMCn.js} +1 -1
- package/dist/assets/index-CFkRKsyT.js +290 -0
- package/dist/assets/{index-9aeq_G-H.js → index-CX4jvZnM.js} +1 -1
- package/dist/assets/{index-DQIxR9j5.js → index-CbW18ndN.js} +2 -2
- package/dist/assets/index-CcjD0qiY.js +93 -0
- package/dist/assets/{index-DjIOxw8x.js → index-D1fVmwHN.js} +1 -1
- package/dist/assets/{index-VvWvVQT8.js → index-D22ZWGxu.js} +1 -1
- package/dist/assets/{index-BBl5mftj.js → index-D22lazSG.js} +3 -3
- package/dist/assets/{index-BVOsgGKh.js → index-D2EAXstd.js} +2 -2
- package/dist/assets/index-DBZZ-U66.js +1 -0
- package/dist/assets/index-DUQK_NaI.js +113 -0
- package/dist/assets/{index-DBLdE2lQ.js → index-D_gSWW1P.js} +1 -1
- package/dist/assets/index-DbpVrp8z.js +138 -0
- package/dist/assets/{index-MqiIu4kd.js → index-DkPKxdcu.js} +1 -1
- package/dist/assets/{index-sv3a1ZUw.js → index-DzDfEcNp.js} +1 -1
- package/dist/assets/{index-CCwUSMuP.js → index-O2l0NSUF.js} +1 -1
- package/dist/assets/{index-CPE8Apzb.js → index-pV_0wOyY.js} +1 -1
- package/dist/assets/{index-DVQCgvFb.js → index-tUQxVYYQ.js} +1 -1
- package/dist/assets/index-xa5W6ExD.js +1 -0
- package/dist/assets/{invitation-CwtXOXZc.js → invitation-D-l4US6a.js} +3 -3
- package/dist/assets/invite-DPswrm4J.js +1 -0
- package/dist/assets/{issue-passport-DtEbcgX6.js → issue-passport-AJghkFHK.js} +1 -1
- package/dist/assets/item-zk7clNKz.js +2 -0
- package/dist/assets/{ja-D2jInSAT.js → ja-DKZCt8Yp.js} +1 -1
- package/dist/assets/ja-DmNZQIta.js +14 -0
- package/dist/assets/{ko-BGB5KJZq.js → ko-B0uE9AyQ.js} +1 -1
- package/dist/assets/ko-CfYwMwZz.js +14 -0
- package/dist/assets/{landing-page-BM1TmagN.js → landing-page-D13wALfk.js} +1 -1
- package/dist/assets/{launch-result-message-DOa3SWMR.js → launch-result-message-Bvdtucih.js} +1 -1
- package/dist/assets/{layout-DCzN0ui5.js → layout-aS-gjZH3.js} +1 -1
- package/dist/assets/list-CJt5nOcn.js +234 -0
- package/dist/assets/{list-header-BLGbkNad.js → list-header-Bm8u_Z_p.js} +1 -1
- package/dist/assets/localization-Us9buoy1.js +1 -0
- package/dist/assets/{log-C0ajhie8.js → log-DFaz-U9x.js} +7 -7
- package/dist/assets/{logger-D6n4nbwy.js → logger-DXlQ8ejK.js} +1 -1
- package/dist/assets/{login-f1AXbIm0.js → login-DKSu0ge6.js} +1 -1
- package/dist/assets/login-oauth-callback-CP7cNspN.js +1 -0
- package/dist/assets/{logo-uploader-DbAVW3BS.js → logo-uploader-B7i5QemW.js} +5 -5
- package/dist/assets/{lost-passport-Dlmv8D-L.js → lost-passport-QRUn4RXe.js} +3 -3
- package/dist/assets/{lottie-react.esm-D2t-u0YU.js → lottie-react.esm-CPHH620R.js} +1 -1
- package/dist/assets/{lottie-web-jYmAQWuC.js → lottie-web-B6s7dDoL.js} +1 -1
- package/dist/assets/omit-MMUW2k9W.js +1 -0
- package/dist/assets/{open-window-DskgWqba.js → open-window-B6LZyZAW.js} +1 -1
- package/dist/assets/{overview-DY9-9zrL.js → overview-B3A_5sHO.js} +2 -2
- package/dist/assets/{page-header-XbzfRkA7.js → page-header-DUh_2MUQ.js} +1 -1
- package/dist/assets/passport-item-BY6VS7Ot.js +1 -0
- package/dist/assets/{permission-Bi46fqEy.js → permission-DKFJEWNH.js} +1 -1
- package/dist/assets/preferences-CA76rfbp.js +1 -0
- package/dist/assets/profile-embed-DHFHXO1W.js +1 -0
- package/dist/assets/{pt-DY0Ku5W5.js → pt-DCzE4kPq.js} +1 -1
- package/dist/assets/pt-DD_rP5GH.js +12 -0
- package/dist/assets/publish-resource-rxvf6s83.js +1 -0
- package/dist/assets/{raf-schd.esm-B3j6BePR.js → raf-schd.esm-GV-XhwE0.js} +1 -1
- package/dist/assets/{react-beautiful-dnd.esm-B68lWn23.js → react-beautiful-dnd.esm-D0nBCaor.js} +1 -1
- package/dist/assets/{relative-time-BeR_4mfM.js → relative-time-BK3hjJNN.js} +1 -1
- package/dist/assets/roboto-latin-400-normal-BVyCgWwA.woff +0 -0
- package/dist/assets/roboto-latin-400-normal-DXyFPIdK.woff2 +0 -0
- package/dist/assets/roboto-latin-500-normal-C6iW8rdg.woff2 +0 -0
- package/dist/assets/roboto-latin-500-normal-rpP1_v3s.woff +0 -0
- package/dist/assets/roboto-latin-700-normal-BWcFiwQV.woff +0 -0
- package/dist/assets/roboto-latin-700-normal-CbYYDfWS.woff2 +0 -0
- package/dist/assets/roboto-latin-ext-400-normal-BSFkPfbf.woff +0 -0
- package/dist/assets/roboto-latin-ext-400-normal-DgXbz5gU.woff2 +0 -0
- package/dist/assets/roboto-latin-ext-500-normal-DvHxAkTn.woff +0 -0
- package/dist/assets/roboto-latin-ext-500-normal-OQJhyaXd.woff2 +0 -0
- package/dist/assets/roboto-latin-ext-700-normal-Ba-CAIIA.woff +0 -0
- package/dist/assets/roboto-latin-ext-700-normal-DchBbzVz.woff2 +0 -0
- package/dist/assets/{ru-Cv5vRo7s.js → ru-B9yj9TuE.js} +1 -1
- package/dist/assets/ru-CwgUUzV8.js +11 -0
- package/dist/assets/runtime-D_bXZ0w0.js +1 -0
- package/dist/assets/sdk-Hg_BMu_u.js +1 -0
- package/dist/assets/{security-DmR541pi.js → security-DEmFjZiu.js} +1 -1
- package/dist/assets/session-DB9Du-lc.js +1 -0
- package/dist/assets/setup-kkb6SvQ7.js +19 -0
- package/dist/assets/{shorten-label-BuH-7PI8.js → shorten-label-CwDvu4_S.js} +1 -1
- package/dist/assets/simple-select-DgqUhMvQ.js +1 -0
- package/dist/assets/{slicedToArray-C0MW3KIe.js → slicedToArray-B8PdYes9.js} +1 -1
- package/dist/assets/{spaces-gLUqr6Uq.js → spaces-25E9GQ6_.js} +1 -1
- package/dist/assets/{start-XbVMHGiE.js → start-DfEUlPuS.js} +1 -1
- package/dist/assets/{status-DmyvEkKL.js → status-CUyAteC9.js} +1 -1
- package/dist/assets/{step-actions-brdohYRv.js → step-actions-CAgwlOEY.js} +1 -1
- package/dist/assets/{studio-DJeZlIfF.js → studio-2U2-FOOC.js} +1 -1
- package/dist/assets/{switch-control-Br1YNOSB.js → switch-control-DwTxPESj.js} +1 -1
- package/dist/assets/th-KqE3tuDR.js +12 -0
- package/dist/assets/{th-D6oDBVGi.js → th-et0IV3ES.js} +1 -1
- package/dist/assets/traffic-B94bYvtf.js +35 -0
- package/dist/assets/{transfer-DboKwiA_.js → transfer-DWjvJtPs.js} +1 -1
- package/dist/assets/{unsubscribe-C9k_L3g5.js → unsubscribe-CTZlUfqc.js} +1 -1
- package/dist/assets/use-mobile-BHPd3bDQ.js +1 -0
- package/dist/assets/use-mobile-CHMVa8_W.js +1 -0
- package/dist/assets/useAsync-DKE0K0bz.js +1 -0
- package/dist/assets/useAsyncRetry-BBomZj1z.js +7 -0
- package/dist/assets/{useLocalStorage-0mjZfnua.js → useLocalStorage-DKl7XFfI.js} +1 -1
- package/dist/assets/{useSetState-CWq0AVWn.js → useSetState-BL3ktMon.js} +1 -1
- package/dist/assets/user-center-Du6EtGgy.js +77 -0
- package/dist/assets/{util-YnaMqM3B.js → util-BEvdQ5nP.js} +1 -1
- package/dist/assets/{util-DLK92HF8.js → util-DkIhTuT7.js} +1 -1
- package/dist/assets/{vendor-arcblock-DPMnO1AO.js → vendor-arcblock-ACo-BN0q.js} +26 -26
- package/dist/assets/{vendor-hooks-DN4nZ7TU.js → vendor-hooks-BwVH-TAd.js} +2 -2
- package/dist/assets/{vendor-mui-core-x3zpe_j_.js → vendor-mui-core-DxD1UA4o.js} +2 -2
- package/dist/assets/vendor-mui-x-Bit8yv3W.js +6 -0
- package/dist/assets/{vendor-react-DEoibe3W.js → vendor-react-DoD83n6N.js} +1 -1
- package/dist/assets/vendor-utils-CTIzdAFg.js +11 -0
- package/dist/assets/vendor-ux-did-connect-2GapMFC4.css +1 -0
- package/dist/assets/vendor-ux-did-connect-DOjsg91L.js +1832 -0
- package/dist/assets/vi-BSkiIyr-.js +12 -0
- package/dist/assets/{vi-BKKJMbW2.js → vi-LBvVt_pj.js} +1 -1
- package/dist/assets/wrap-locale-DjpRZNtr.js +1 -0
- package/dist/assets/{zh-nDA-W8Iz.js → zh-BYP8UvRZ.js} +4 -4
- package/dist/assets/{zh-tw-B9PQstHP.js → zh-tw-Dcs2VpLv.js} +3 -3
- package/dist/assets/{zh-tw-B08rjgK3.js → zh-tw-l3XXo5aT.js} +1 -1
- package/dist/assets/{zh-gJhiLbCP.js → zh-yJzqRkfw.js} +1 -1
- package/dist/index.html +9 -9
- package/dist/service-worker.js +2 -2
- package/package.json +44 -43
- package/dist/assets/actions-BAjt7G_t.js +0 -1
- package/dist/assets/add-component-core-BXowXTJz.js +0 -762
- package/dist/assets/advanced-C8t1232G.js +0 -14
- package/dist/assets/api-kwOW9mRz.js +0 -1
- package/dist/assets/appearance-BIOmTg1q.js +0 -1
- package/dist/assets/branding-NmIAi0kv.js +0 -40
- package/dist/assets/button-Kk1bqv_H.js +0 -1
- package/dist/assets/click-to-copy-DCUroWft.js +0 -1
- package/dist/assets/cloneDeep-DHAAvuEH.js +0 -1
- package/dist/assets/confirm-92J4n1RP.js +0 -7
- package/dist/assets/connect-D20f2K4u.js +0 -5
- package/dist/assets/dashboard-BgQFc2Pc.js +0 -262
- package/dist/assets/de-BOcpEFUQ.js +0 -13
- package/dist/assets/delete-confirm-AkwIQ5yF.js +0 -1
- package/dist/assets/did-address-D4v6iN2l.js +0 -1
- package/dist/assets/domain-CBdLs2D9.js +0 -9
- package/dist/assets/domain-action-card-DN3KjFwP.js +0 -29
- package/dist/assets/domains-CMJbalsn.js +0 -1
- package/dist/assets/empty-spinner-DlzuJxRt.js +0 -1
- package/dist/assets/es-DAe7HpzA.js +0 -14
- package/dist/assets/hi-BqgGDMzX.js +0 -11
- package/dist/assets/id-DbN1Ye4x.js +0 -14
- package/dist/assets/index-3q6oLa2e.js +0 -290
- package/dist/assets/index-BJYrBMyS.js +0 -1
- package/dist/assets/index-BxTrfRkG.js +0 -138
- package/dist/assets/index-C3-7zmeY.js +0 -346
- package/dist/assets/index-DWuuU3ta.js +0 -113
- package/dist/assets/index-K5iSHoYm.js +0 -224
- package/dist/assets/index-KLUHbsxg.js +0 -1
- package/dist/assets/invite-CMj5995Z.js +0 -1
- package/dist/assets/item-zVdGBfMR.js +0 -2
- package/dist/assets/ja-Bv-A_sTl.js +0 -14
- package/dist/assets/ko-Bl3kd-sp.js +0 -14
- package/dist/assets/list-BuXPrN1N.js +0 -221
- package/dist/assets/localization-qd6O0FX9.js +0 -1
- package/dist/assets/login-oauth-callback-C5CFUlUR.js +0 -1
- package/dist/assets/omit-IjXSqbDA.js +0 -1
- package/dist/assets/preferences-DPpwnIAs.js +0 -1
- package/dist/assets/profile-embed-DV5vno0C.js +0 -1
- package/dist/assets/pt-B7_jgyK-.js +0 -12
- package/dist/assets/publish-resource-z2_THSz6.js +0 -1
- package/dist/assets/roboto-cyrillic-400-normal-DAIM1_dR.woff2 +0 -0
- package/dist/assets/roboto-cyrillic-400-normal-Dry59Hjn.woff +0 -0
- package/dist/assets/roboto-cyrillic-500-normal-CsCirF4J.woff +0 -0
- package/dist/assets/roboto-cyrillic-500-normal-hCeO1jFL.woff2 +0 -0
- package/dist/assets/roboto-cyrillic-700-normal-CB1Rmiii.woff +0 -0
- package/dist/assets/roboto-cyrillic-700-normal-CzEIZVQR.woff2 +0 -0
- package/dist/assets/roboto-cyrillic-ext-400-normal-BxX1-eA_.woff +0 -0
- package/dist/assets/roboto-cyrillic-ext-400-normal-DzMWdK87.woff2 +0 -0
- package/dist/assets/roboto-cyrillic-ext-500-normal-B7rQpwPu.woff2 +0 -0
- package/dist/assets/roboto-cyrillic-ext-500-normal-ElvJfk8V.woff +0 -0
- package/dist/assets/roboto-cyrillic-ext-700-normal-CIu0AXX2.woff +0 -0
- package/dist/assets/roboto-cyrillic-ext-700-normal-D_fA0fHY.woff2 +0 -0
- package/dist/assets/roboto-greek-400-normal-CAI06USH.woff +0 -0
- package/dist/assets/roboto-greek-400-normal-jFM2czAU.woff2 +0 -0
- package/dist/assets/roboto-greek-500-normal-BJMS0heP.woff2 +0 -0
- package/dist/assets/roboto-greek-500-normal-D8eQD5zT.woff +0 -0
- package/dist/assets/roboto-greek-700-normal-DCrt6r9F.woff +0 -0
- package/dist/assets/roboto-greek-700-normal-DpKAje7q.woff2 +0 -0
- package/dist/assets/roboto-latin-400-normal-551zQQ7R.woff +0 -0
- package/dist/assets/roboto-latin-400-normal-CNwBRw8h.woff2 +0 -0
- package/dist/assets/roboto-latin-500-normal-CkrA1NAy.woff2 +0 -0
- package/dist/assets/roboto-latin-500-normal-_8jDuD7w.woff +0 -0
- package/dist/assets/roboto-latin-700-normal-CTLkNcF_.woff +0 -0
- package/dist/assets/roboto-latin-700-normal-DZr4b_KL.woff2 +0 -0
- package/dist/assets/roboto-latin-ext-400-normal-ZYmyxeOy.woff2 +0 -0
- package/dist/assets/roboto-latin-ext-400-normal-uRIBRJt5.woff +0 -0
- package/dist/assets/roboto-latin-ext-500-normal-C_ARlJGk.woff2 +0 -0
- package/dist/assets/roboto-latin-ext-500-normal-eJ10kk0m.woff +0 -0
- package/dist/assets/roboto-latin-ext-700-normal-BNPgmEQS.woff2 +0 -0
- package/dist/assets/roboto-latin-ext-700-normal-Cnx4FGpK.woff +0 -0
- package/dist/assets/roboto-math-400-normal-B3wgz80t.woff2 +0 -0
- package/dist/assets/roboto-math-400-normal-DHrwdhE6.woff +0 -0
- package/dist/assets/roboto-math-500-normal-CFNaIMFC.woff2 +0 -0
- package/dist/assets/roboto-math-500-normal-CetgDdIa.woff +0 -0
- package/dist/assets/roboto-math-700-normal-CpTCM92H.woff +0 -0
- package/dist/assets/roboto-math-700-normal-xbpggnJp.woff2 +0 -0
- package/dist/assets/roboto-symbols-400-normal-bG5rsNFs.woff +0 -0
- package/dist/assets/roboto-symbols-400-normal-fF1SLJBj.woff2 +0 -0
- package/dist/assets/roboto-symbols-500-normal-BXFTxrNR.woff2 +0 -0
- package/dist/assets/roboto-symbols-500-normal-toKUCDph.woff +0 -0
- package/dist/assets/roboto-symbols-700-normal-B2QKVW64.woff +0 -0
- package/dist/assets/roboto-symbols-700-normal-DKkQdRpM.woff2 +0 -0
- package/dist/assets/roboto-vietnamese-400-normal-CDDxGrUb.woff2 +0 -0
- package/dist/assets/roboto-vietnamese-400-normal-DgufTq8s.woff +0 -0
- package/dist/assets/roboto-vietnamese-500-normal-Dw5heWgq.woff +0 -0
- package/dist/assets/roboto-vietnamese-500-normal-HYpufUYk.woff2 +0 -0
- package/dist/assets/roboto-vietnamese-700-normal-BFWtvCOj.woff2 +0 -0
- package/dist/assets/roboto-vietnamese-700-normal-ChAl_rRV.woff +0 -0
- package/dist/assets/ru-CToatViJ.js +0 -11
- package/dist/assets/runtime-D6tESY33.js +0 -1
- package/dist/assets/sdk-DNr-nKBq.js +0 -1
- package/dist/assets/session-CJFbMNLl.js +0 -1
- package/dist/assets/setup-BSsqBrsc.js +0 -19
- package/dist/assets/simple-select-DHvjqsw4.js +0 -1
- package/dist/assets/th-23Hwasay.js +0 -12
- package/dist/assets/traffic-LuIcK-L1.js +0 -37
- package/dist/assets/use-mobile-C98e2dYy.js +0 -1
- package/dist/assets/use-mobile-CqLLcWbr.js +0 -1
- package/dist/assets/useAsync-BxB2TpDl.js +0 -1
- package/dist/assets/useAsync-L7_fHBH5.js +0 -1
- package/dist/assets/useAsyncRetry-CEouAsle.js +0 -7
- package/dist/assets/user-center-BaKv3X4J.js +0 -77
- package/dist/assets/vendor-mui-x-CPOc4sOK.js +0 -6
- package/dist/assets/vendor-utils-C3FZIS9A.js +0 -11
- package/dist/assets/vendor-ux-did-connect-B1u6nvmg.js +0 -1832
- package/dist/assets/vendor-ux-did-connect-BDmhBveY.css +0 -1
- package/dist/assets/vi-D-QGxDS1.js +0 -12
- package/dist/assets/wrap-locale-m_NRjq-h.js +0 -1
- /package/api/services/oauth/{index.js → client.js} +0 -0
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/log-DFaz-U9x.js","assets/vendor-mui-core-DxD1UA4o.js","assets/vendor-react-DoD83n6N.js","assets/useLocalStorage-DKl7XFfI.js","assets/vendor-ux-did-connect-DOjsg91L.js","assets/vendor-utils-CTIzdAFg.js","assets/vendor-hooks-BwVH-TAd.js","assets/lottie-web-B6s7dDoL.js","assets/vendor-ux-did-connect-2GapMFC4.css","assets/index-BPa_QtWl.js","assets/vendor-arcblock-ACo-BN0q.js","assets/Download-DUKR_Wkm.js","assets/bundle-avatar-woUZoGoi.js","assets/log-D33dFtt_.css","assets/index-C0hr4pkt.js","assets/ViewList-CMIoKrN6.js","assets/did-address-CGHn52xI.js","assets/permission-DKFJEWNH.js","assets/session-DB9Du-lc.js","assets/click-to-copy-BxZJa7n5.js","assets/index-BmexzVQt.js","assets/vendor-mui-x-Bit8yv3W.js","assets/AdapterDayjs-BLBXeg9J.js","assets/format-error-LAoTjvJe.js","assets/useAsync-DKE0K0bz.js","assets/index-D22ZWGxu.js","assets/DeleteOutline-Cgoi-K0i.js","assets/confirm-_RIb3OmR.js","assets/util-DkIhTuT7.js","assets/base32-BhlNgZPk.js","assets/sdk-Hg_BMu_u.js","assets/actions-CMsM02NP.js","assets/MoreHoriz-Bo_R2nuS.js","assets/shorten-label-CwDvu4_S.js","assets/PlayArrow-D38lbyGo.js","assets/get-safe-url-DW2Z07ex.js","assets/index-xa5W6ExD.js","assets/useAsyncRetry-BBomZj1z.js","assets/InfoOutlined-DSoJjRQo.js","assets/useSetState-BL3ktMon.js","assets/use-mobile-CHMVa8_W.js","assets/index-DbpVrp8z.js","assets/ExpandLess-BNGLjxae.js","assets/index-BjN8LAYh.js","assets/Error-By0ZMWzh.js","assets/empty-spinner-Ict2ItjU.js","assets/list-header-Bm8u_Z_p.js","assets/QuestionMarkCircle-B4EnwYju.js","assets/index-tUQxVYYQ.js","assets/index-D1fVmwHN.js","assets/api-3sG9at7i.js","assets/ChevronRight-CQOI2CyK.js","assets/react-beautiful-dnd.esm-D0nBCaor.js","assets/raf-schd.esm-GV-XhwE0.js","assets/item-zk7clNKz.js","assets/Launch-B161pSEw.js","assets/Done-BYuUlh_s.js","assets/delete-confirm-DaoAi4Gz.js","assets/ArrowDropDown--dAaadP8.js","assets/index-O2l0NSUF.js","assets/index-D4PP6P2d.css","assets/index-DkPKxdcu.js","assets/overview-B3A_5sHO.js","assets/keyboard-arrow-down-rounded-DadBVmpO.js","assets/status-CUyAteC9.js","assets/omit-MMUW2k9W.js","assets/spaces-25E9GQ6_.js","assets/domains-BNDFk-7R.js","assets/domain-action-card-9r42-rWK.js","assets/util-BEvdQ5nP.js","assets/CheckCircle-Av1UotA-.js","assets/index-CFkRKsyT.js","assets/passport-item-BY6VS7Ot.js","assets/Google-tZCjvU7D.js","assets/cloneDeep-kMVNpUap.js","assets/EditIcon-5ixNT5sW.js","assets/LockIcon-D3vSMIOk.js","assets/appearance-BUsj4DWC.js","assets/audit-logs-rk_iUYcM.js","assets/relative-time-BK3hjJNN.js","assets/index-DUQK_NaI.js","assets/list-CJt5nOcn.js","assets/index-4rY7Xp2W.js","assets/Location-B6FoL795.js","assets/Email-RGD-rKFl.js","assets/Timezone-bYzGwn3x.js","assets/traffic-B94bYvtf.js","assets/iframe-BEanRyio.js","assets/LaunchOutlined-wehxIahb.js","assets/ChevronLeft-De8Da-PB.js","assets/index-DzDfEcNp.js","assets/config-navigation-DrgPbe5I.js","assets/index-C-7MyHbp.js","assets/slicedToArray-B8PdYes9.js","assets/simple-select-DgqUhMvQ.js","assets/index-D2EAXstd.js","assets/use-mobile-BHPd3bDQ.js","assets/connect-to-BdhN0BHi.js","assets/config-space-DZ9w_4_9.js","assets/index-CX4jvZnM.js","assets/switch-control-DwTxPESj.js","assets/index-CFJtmMCn.js","assets/security-DEmFjZiu.js","assets/config-DbqQgRSU.js","assets/branding-BBbE2Klb.js","assets/logo-uploader-B7i5QemW.js","assets/advanced-D4wfoh0v.js","assets/runtime-D_bXZ0w0.js","assets/index-CcjD0qiY.js","assets/Edit-D2RQMivt.js","assets/component-fD-EGTLm.js","assets/TuneOutlined-DMMtKa6E.js","assets/add-component-core-FnU4dwXM.js","assets/launch-result-message-Bvdtucih.js","assets/page-header-DUh_2MUQ.js","assets/index-CbW18ndN.js","assets/content-layout-BM34AwsG.js","assets/add-component-core-D-IRi6XF.css","assets/index-AhbLOD9c.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{c as Ve,u as yn,p as lo,h as Mt,f as vn,b as bn,e as co,i as uo,g as fo,m as po,j as Us,D as ho,E as mo,k as go,H as xo,_ as Z,R as yo}from"./vendor-arcblock-ACo-BN0q.js";import{H as P,j as o,a8 as Se,ag as me,I as Yt,ap as vo,aj as _n,X as Qr,q as bo,b4 as _o,a9 as He,b5 as wo,bw as jo,T as oe,bu as So,bs as xt,bv as Bs,aa as U,ab as $t,bF as Co,v as De,a5 as Xt,bG as Ao,ac as Eo,bi as To,ao as Zr,bH as wn,bI as Ro,aq as ko,ah as Io,ak as Nt,O as ke,bt as kr,bo as Oe,bJ as jn,bK as Sn,bL as Cn,E as Qe,b3 as An,bk as Do}from"./vendor-mui-core-DxD1UA4o.js";import{r as F,L as En,k as Tn,b as z,g as Rn,u as Lo,l as Po}from"./vendor-react-DoD83n6N.js";import{r as Ce,b1 as Fo,a$ as er,b2 as Oo,B as Je,p as ie,a1 as zs,Y as ne,u as ge,am as Vo,b3 as Mo,v as kn,o as Jr,q as $o,d as No,W as Yr,aU as Uo,a4 as In,aq as Dn,C as Ut,b4 as Bo,b5 as zo,_ as Ho,ak as qo}from"./vendor-ux-did-connect-DOjsg91L.js";import{z as at,f as ve,A as ur,B as Wo,b as Ko,C as Xr,D as Go,E as Ln,t as st,F as Pn,G as Qo,n as lt,H as Zo,I as Jo,j as Hs,g as Yo,h as Xo,l as qs,k as ea,m as ta,J as Dt,e as Et,K as ra,L as sa,M as na,N as ia,O as dr,c as Ws}from"./index-BPa_QtWl.js";import{aa as oa,y as tr,ab as aa,z as Lt,I as Fn,x as On,ac as la}from"./vendor-utils-CTIzdAFg.js";import{_ as Ks}from"./useLocalStorage-DKl7XFfI.js";import{C as Gs}from"./confirm-_RIb3OmR.js";import{d as ca}from"./PlayArrow-D38lbyGo.js";import{g as Qs}from"./get-safe-url-DW2Z07ex.js";import{f as es}from"./format-error-LAoTjvJe.js";import{i as ua,u as da,M as fa,c as yt,s as Bt,H as pa,p as Vn,B as ha}from"./index-xa5W6ExD.js";import{u as Mn}from"./session-DB9Du-lc.js";import{D as ma,_ as $n}from"./useAsyncRetry-BBomZj1z.js";import{f as Ye,a as Nn,u as pe,v as ga}from"./vendor-hooks-BwVH-TAd.js";import{d as xa}from"./InfoOutlined-DSoJjRQo.js";import{_ as Un}from"./useSetState-BL3ktMon.js";import{u as ya}from"./use-mobile-CHMVa8_W.js";const Bn=F.createContext({});function ts({children:e,type:r}){const[t,s]=F.useState([]),n=F.useRef([]),i=c=>{if(!n.current.includes(c)){const d=[...n.current,c];s(d),n.current=d}},a=c=>{if(n.current.includes(c)){const d=n.current.filter(f=>f!==c);s(d),n.current=d}},l=c=>{const d=t.filter(p=>c.find(g=>g===p));oa(d,t).forEach(p=>a(p))};return o.jsx(Bn.Provider,{value:{type:r,deletingBlocklets:t,addDeletingDid:i,removeDeletingDid:a,matchDeletingDid:l},children:e})}ts.propTypes={type:P.string,children:P.node.isRequired};ts.defaultProps={type:"blocklets"};function Vd(){return F.useContext(Bn)}var rs={},va=Se;Object.defineProperty(rs,"__esModule",{value:!0});var zn=rs.default=void 0,ba=va(Ce()),_a=o;zn=rs.default=(0,ba.default)((0,_a.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop");var ss={},wa=Se;Object.defineProperty(ss,"__esModule",{value:!0});var Hn=ss.default=void 0,ja=wa(Ce()),Sa=o;Hn=ss.default=(0,ja.default)((0,Sa.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 ns={},Ca=Se;Object.defineProperty(ns,"__esModule",{value:!0});var qn=ns.default=void 0,Aa=Ca(Ce()),Ea=o;qn=ns.default=(0,Aa.default)((0,Ea.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 is={},Ta=Se;Object.defineProperty(is,"__esModule",{value:!0});var os=is.default=void 0,Ra=Ta(Ce()),ka=o;os=is.default=(0,Ra.default)((0,ka.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 as={},Ia=Se;Object.defineProperty(as,"__esModule",{value:!0});var Wn=as.default=void 0,Da=Ia(Ce()),La=o;Wn=as.default=(0,Da.default)((0,La.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 ls={},Pa=Se;Object.defineProperty(ls,"__esModule",{value:!0});var Kn=ls.default=void 0,Fa=Pa(Ce()),Oa=o;Kn=ls.default=(0,Fa.default)((0,Oa.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 cs={},Va=Se;Object.defineProperty(cs,"__esModule",{value:!0});var Gn=cs.default=void 0,Ma=Va(Ce()),$a=o;Gn=cs.default=(0,Ma.default)((0,$a.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 us=function(e){return o.jsx("svg",{...e,children:o.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"})})};us.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};us.displayName="dashboard";var ds={},Na=Se;Object.defineProperty(ds,"__esModule",{value:!0});var Qn=ds.default=void 0,Ua=Na(Ce()),Ba=o;Qn=ds.default=(0,Ua.default)((0,Ba.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 tt={Start:ca,Stop:zn,Restart:Hn,Reload:qn,Remove:Fo,Config:os,Log:Wn,Group:Kn,Cancel:Gn,Dashboard:us,Overview:Qn},za=(e,r)=>{if(!e)return"";const t=new URL(e),s=new URLSearchParams(t.searchParams),n=new URL(tr(t.origin,r));return n.search=s.toString(),n.toString()},Ha="internal",qa="external";function fs({blocklet:e,onStart:r,onComplete:t,variant:s,hasPermission:n,getComponentUrl:i,useBlockletUrlEvaluation:a,...l}){const c=at(),[d,f]=F.useState(null),[p,g]=F.useState(null),[j,E]=F.useState(!1),[T,M]=F.useState(null),{t:y}=F.useContext(er),[b]=Ks("skip-blocklet-setup",!1),{loading:I,recommendedUrl:B}=a(e),[_]=Ks("blocklet-type-filter",Ha),m=ve.isInProgress(e.status),[w,S]=F.useState(!1);F.useEffect(()=>{var Q,le;if(!(e!=null&&e.controller))return;S(((le=(Q=e==null?void 0:e.controller)==null?void 0:Q.status)==null?void 0:le.value)===Ve.BLOCKLET_CONTROLLER_STATUS.suspended),(async()=>{var xe,be,Pe;try{const ce=await c.api.getLauncherSession({input:{launcherSessionId:(xe=e==null?void 0:e.controller)==null?void 0:xe.launcherSessionId,launcherUrl:(be=e==null?void 0:e.controller)==null?void 0:be.launcherUrl}});if(ce!=null&&ce.error){console.error("get launcher session failed",ce.error);return}S([ie.LAUNCH_SESSION_STATUS.overdue,ie.LAUNCH_SESSION_STATUS.canceled,ie.LAUNCH_SESSION_STATUS.terminated].includes((Pe=ce==null?void 0:ce.launcherSession)==null?void 0:Pe.status))}catch(ce){console.error("call getLauncherSession error",ce)}})()},[]);const{inService:R}=c,x=(O,Q,le=!1)=>async()=>{const xe=async $e=>{var et;r({action:O,blocklet:e}),E(!0),g(O);let Ke=!1;try{if(O==="remove")await Q($e);else if(O==="start"){if(!ve.hasRunnableComponent(e)){ne.error(y("blocklet.noComponent"));return}if(!R&&!b&&!((et=e.settings)!=null&&et.initialized)&&e.mode!==Ve.BLOCKLET_MODES.DEVELOPMENT){if(!B||!zs(B)){ne.error(y("blocklet.gotoVisitError"));return}const ye=Wo(c.info),ut=new URL(B);ut.searchParams.set("serverUrl",ye),window.open(Qs(ut.href,{allowDomains:null})),t({action:O,blocklet:e});return}const Re=e.children.filter(ye=>!ve.isInProgress(ye.status)&&ye.status!=="running").map(ye=>ye.meta.did),Ne={did:e.meta.did,componentDids:Re};await Q({input:Ne})}else if(["stop","restart","reload"].includes(O)){const Re=e.children.filter(ye=>ye.status==="running").map(ye=>ye.meta.did),Ne={did:e.meta.did,componentDids:Re};await Q({input:Ne})}else{const Re={did:e.meta.did};await Q({input:Re})}O==="remove"?Ke=!0:await Ko(1e3),O==="reload"&&ne.success(y("blocklet.reloadSuccess")),M(null),t({action:O,blocklet:e})}catch(Re){const Ne=`Blocklet ${O} failed: ${es(Re)}`;throw t({action:O,blocklet:e,error:new Error(Ne)}),new Error(Ne)}finally{Ke||E(!1)}},be=()=>{E(!1),M(null)},Pe=ve.getDisplayName(e,!0),ce=e.mode===Ve.BLOCKLET_MODES.DEVELOPMENT?{description:()=>o.jsx(oe,{component:"div",children:o.jsx(oe,{gutterBottom:!0,children:y("blocklet.action.removeApplicationDescription")})}),params:{removeType:"complete"}}:{description:($e,Ke)=>o.jsxs(oe,{component:"div",children:[o.jsx(oe,{gutterBottom:!0,children:y("blocklet.action.removeApplicationDescription")}),o.jsxs(So,{name:"removeType",value:$e.removeType,onChange:et=>Ke({...$e,removeType:et.target.value}),children:[o.jsx(xt,{value:"backup",control:o.jsx(Bs,{}),label:y("blocklet.action.removeApplicationAfterBackup")}),o.jsx(xt,{value:"complete",control:o.jsx(Bs,{}),label:y("blocklet.action.removeApplicationComplete")})]})]}),params:{removeType:"backup"}},At={stop:{title:`${y("common.stop")} ${Pe}`,description:y("blocklet.action.stopDescription"),confirm:y("blocklet.action.confirmStop"),cancel:y("common.cancel"),onConfirm:xe,onCancel:be},restart:{title:`${y("common.restart")} ${Pe}`,description:y("blocklet.action.restartDescription"),confirm:y("blocklet.action.confirmRestart"),cancel:y("common.cancel"),onConfirm:xe,onCancel:be},remove:{title:`${y("common.remove")} ${Pe}`,confirm:y("blocklet.action.confirmRemove"),cancel:y("common.cancel"),onConfirm:xe,onCancel:be,...ce},cancelDownload:{title:`${y("common.cancel")}`,description:y("blocklet.action.cancelDownloadDescription",{name:Pe}),confirm:y("common.confirm"),cancel:y("common.cancel"),onConfirm:xe,onCancel:be}};le?M(At[O]):await xe()},D=!!d,V=O=>{try{O.stopPropagation(),O.preventDefault()}catch{}f(O.currentTarget)},$=O=>{try{O.stopPropagation(),O.preventDefault()}catch{}f(null)},H=async(O,Q)=>{try{Q.stopPropagation(),Q.preventDefault()}catch{}if(typeof O.handler=="function")try{E(!0),g(O.action),await O.handler()}catch(le){console.error(`Blocklet ${O.name} failed: `,le)}finally{E(!1),f(null)}else f(null)},W=!R&&ve.isDeletableBlocklet(e)?{action:"remove",icon:tt.Remove,name:y("common.remove"),handler:x("remove",async({removeType:O})=>{O==="backup"&&await c.api.backupBlocklet({input:{appDid:e.appDid,to:"disk"}}),await c.api.deleteBlocklet({input:{did:e.meta.did,keepData:!1}})},!0),disabled:m}:null,ae={action:"remove",icon:({sx:O,...Q})=>o.jsx(tt.Cancel,{sx:{...O,paddingRight:"2px",zoom:.95},...Q}),name:y("common.cancel"),handler:x("cancelDownload",c.api.cancelDownloadBlocklet,!0)},fe=ve.getAppMissingConfigs(e),We=()=>{var xe;const O=`/${e.mountPoint||"/"}`.replace(/\/+/g,"/"),Q=i==null?void 0:i({mountPoint:O,blocklet:e});if(!Q||!zs(Q)){ne.error(y("blocklet.gotoVisitError"));return}const le=(xe=e==null?void 0:e.site)==null?void 0:xe.domainAliases;window.open(Qs(za(Q,".well-known/service/admin"),{allowDomains:le==null?void 0:le.map(be=>be.value)}))};let Te=[{action:"start",icon:tt.Start,inExternal:!0,name:y("common.start"),handler:x("start",c.api.startBlocklet),disabled:w||e.children.every(O=>O.status==="running")||ur(e.status)||I||m},{action:"stop",icon:tt.Stop,inExternal:!0,name:y("common.stop"),handler:x("stop",c.api.stopBlocklet,!0),disabled:!["running","starting"].includes(e.status)},{action:"restart",inExternal:!0,icon:tt.Restart,name:y("common.restart"),handler:x("restart",c.api.restartBlocklet,!0),disabled:w||e.status!=="running"},ur(e.status)?ae:W,{separator:!0},R?null:{action:"dashboard",icon:({style:O,...Q})=>o.jsx(tt.Dashboard,{...Q,style:{...O,width:"26px",height:"26px",paddingRight:"3px"}}),name:y("sidebar.dashboard"),handler:We}].filter(Boolean);return _===qa&&(Te=Te.filter(O=>O.inExternal)),s==="menu"?o.jsxs(Zs,{"data-cy":"blocklet-actions",children:[o.jsx(Yt,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions","actions-blocklet-did":e.meta.did,onClick:V,size:"small",disabled:!n||!ur(e.status)&&j,children:o.jsx(Oo,{})}),o.jsxs(vo,{id:"actions-menu",anchorEl:d,keepMounted:!0,open:D,onClose:$,PaperProps:{},children:[fe.length>0&&o.jsxs(_n,{style:{maxWidth:"400px"},severity:"error",children:[y("blocklet.config.missingRequired"),o.jsx("br",{}),o.jsx(En,{to:`/blocklets/${e.meta.did}/components`,children:y("blocklet.config.gotoFix")})]}),Te.map((O,Q)=>O.separator?o.jsx(Qr,{},`separator-${Q}`):o.jsxs(bo,{dense:!0,onClick:le=>H(O,le),disabled:j||O.disabled,"data-cy":`${O.action}-blocklet`,children:[o.jsx(_o,{style:{minWidth:24},children:p===O.action&&j?o.jsx(He,{size:16,sx:{marginRight:1}}):o.jsx(O.icon,{fontSize:"small"})}),o.jsx(wo,{primary:O.name})]},O.name))]}),T&&o.jsx(Gs,{title:T.title,description:T.description,confirm:T.confirm,cancel:T.cancel,params:T.params,onConfirm:T.onConfirm,onCancel:T.onCancel})]}):o.jsxs(Zs,{"data-cy":"blocklet-actions",...l,children:[o.jsx(jo,{children:Te.filter(O=>!O.separator&&!O.onlyInMenu).map(O=>o.jsxs(Je,{title:O.name,"data-cy":`${O.action}-blocklet`,onClick:()=>H(O),disabled:!!O.disabled||j,children:[p===O.action&&j?o.jsx(He,{size:16,sx:{marginRight:1}}):o.jsx(O.icon,{}),o.jsx("span",{className:"blocklet-action-text",children:O.name})]},O.name))}),T&&o.jsx(Gs,{title:T.title,description:T.description,confirm:T.confirm,cancel:T.cancel,params:T.params,onConfirm:T.onConfirm,onCancel:T.onCancel})]})}fs.propTypes={getComponentUrl:P.func,blocklet:P.object.isRequired,onStart:P.func.isRequired,onComplete:P.func.isRequired,variant:P.oneOf(["menu","group"]),hasPermission:P.bool,useBlockletUrlEvaluation:P.func};fs.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 Zs=me.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
|
+
`,Wa=F.memo(fs),Ka=e=>{const r={};let t=null;return ve.forEachBlockletSync(e,s=>{r[s.meta.bundleDid]?t=ve.getDisplayName(s,!0):s.meta.bundleDid&&(r[s.meta.bundleDid]=!0)}),t},Ga=(e,r,t)=>{var i;const{hostname:s,href:n}=e;if(!r)return n;if(t){const l=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(s);if(!l)return n;const c=l[0],f=((((i=r.site)==null?void 0:i.domainAliases)||[]).map(p=>p.value).filter(Boolean).find(p=>p.endsWith(ie.DEFAULT_DID_DOMAIN))||"").replace(`.${ie.DEFAULT_DID_DOMAIN}`,"");return f?n.replace(s,`${f}-${c}.${ie.DEFAULT_IP_DOMAIN_SUFFIX}`):n}return n.replace(r.meta.bundleDid,r.appPid)};function Zn(){const{t:e}=ge(),{api:r}=Mn(),{blocklet:t}=Xr(),{inService:s}=at(),[n,i]=F.useState(!1),[a,l]=F.useState(5),c=t&&t.structVersion!==ie.APP_STRUCT_VERSION,d=()=>{try{if(t.status==="running"){ne.error(e("blocklet.migrate.tip.running"));return}const g=Ka(t);if(g){ne.error(e("blocklet.migrate.tip.duplicate",{name:g}));return}i(!0)}catch(g){ne.error(es(g))}},f=()=>{const g=Ga(window.location,t,s);setTimeout(()=>{window.location.href=g},5e3),l(5),setInterval(()=>{l(j=>j-1)},1e3)},p=()=>i(!1);return[c&&o.jsxs(_n,{severity:"warning",style:{margin:"12px 0"},children:[o.jsxs(U,{display:"flex",alignItems:"center",children:[o.jsx(Je,{variant:"contained",size:"small",color:"primary",onClick:()=>d(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),o.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(g=>o.jsx(U,{display:"flex",alignItems:"center",children:e(`blocklet.migrate.intro.${g}`)},g))]},"alert"),t&&o.jsx(Vo,{popup:!0,open:n,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:r.get,checkTimeout:5*60*1e3,onSuccess:f,extraParams:{appDid:t.appDid,did:t.meta.did,wt:Go(t,!0),title:ve.getDisplayName(t)},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")]}Zn.propTypes={};function ps({children:e,style:r,...t}){return o.jsx(Mo,{style:r,...t,children:e})}ps.propTypes={children:P.any.isRequired,style:P.object};ps.defaultProps={style:{}};const re={yellow:"#FFCF71",grey:"#aaaaaa",reverse:"#444",success:"#3ab39d",running:"#34BE74",error:"#D0021B",primary:"#1DC1C7"};function hs({isResource:e,status:r,variant:t,source:s,progress:n,...i}){const{t:a}=F.useContext(er),l={added:"primary",waiting:"warning",downloading:"warning",extracting:"warning",downloaded:"primary",installing:"warning",installed:"primary",starting:"warning",running:"success",stopping:"warning",stopped:"reverse",error:"error",upgrading:"warning",restarting:"warning",corrupted:"error",deleting:"warning",resource:"primary"},c={added:re.grey,waiting:re.yellow,downloading:re.yellow,extracting:re.yellow,downloaded:re.grey,installing:re.yellow,installed:re.grey,starting:re.yellow,running:re.running,stopping:re.yellow,stopped:re.reverse,error:re.error,upgrading:re.yellow,restarting:re.yellow,corrupted:re.error,deleting:re.yellow,resource:re.primary},d=ve.isInProgress(r),f=e&&r==="stopped"?"resource":r,p=a(`blocklet.status.${f}`);return t==="pin"?o.jsx($t,{title:a("blocklet.statusTip",{status:p}),children:o.jsxs(U,{position:"relative",minHeight:14,minWidth:14,display:"flex",alignItems:"center",justifyContent:"center",...i,children:[o.jsx(U,{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:c[f],style:{opacity:.15}}),o.jsx(U,{position:"absolute",width:"55%",height:"55%",borderRadius:"50%",bgcolor:c[f]})]})}):t==="dot"?o.jsx($t,{title:a("blocklet.statusTip",{status:p}),children:o.jsx(ma,{color:c[f],...i})}):o.jsxs(ps,{type:l[f],...i,children:[d&&o.jsx(He,{size:12,color:"inherit",style:{marginRight:5}}),p,f==="downloading"&&n?o.jsx("div",{style:{marginLeft:5},children:`${n} %`}):null]})}hs.propTypes={status:P.string.isRequired,variant:P.oneOf(["dot","tag","pin"]),source:P.string,progress:P.number,isResource:P.bool};hs.defaultProps={isResource:!1,variant:"tag",source:"",progress:0};function Qa(){const e=Co();return[...e.breakpoints.keys].reverse().reduce((t,s)=>{const n=De(e.breakpoints.up(s));return!t&&n?s:t},null)||"xs"}function Za(e){return o.jsx(Xt,{...e,children:o.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 Ja(e){return o.jsx(Xt,{...e,children:o.jsx("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"})})}function Ya(e){return o.jsx(Xt,{...e,children:o.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 Xa(e){return o.jsx(Xt,{...e,children:o.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 Tt={fontSize:20,marginInlineEnd:8},el={success:o.jsx(Za,{style:Tt}),warning:o.jsx(Ja,{style:Tt}),error:o.jsx(Ya,{style:Tt}),info:o.jsx(Xa,{style:Tt})},tl=Ao(e=>{const r={xl:"400px",lg:"400px",md:"400px",sm:"300px"},t=e.palette.background.default;return{lessPadding:{paddingLeft:8*2.5},contentRoot:{...e.typography.body2,display:"flex",backgroundColor:t,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:s=>({backgroundColor:`${Eo[600]} !important`,width:r[s.breakpoint]}),error:s=>({backgroundColor:`${e.palette.error.dark} !important`,width:r[s.breakpoint]}),info:s=>({backgroundColor:`${e.palette.primary.main} !important`,width:r[s.breakpoint]}),warning:s=>({backgroundColor:`${To[700]} !important`,width:r[s.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 ms({keyId:e,notification:r={},viewAllUrl:t,content:s},n){var T;const i=tl({breakpoint:Qa()}),a=[i.contentRoot,i.lessPadding,i[r.severity]].join(" "),l=el[r.severity],{closeSnackbar:c}=kn(),d=()=>c(e),f=Tn(),p=()=>{c(e),f(t)},g=Ye(()=>ua(r),[r]),j=Ye(()=>r==null?void 0:r.activity,[r]),E=da({activity:j,users:[r==null?void 0:r.actorInfo],actors:[(T=r==null?void 0:r.activity)==null?void 0:T.actor],extra:{linkColor:Jr.primaryBase}});return o.jsxs($o,{ref:n,className:a,children:[o.jsxs("div",{className:i.message,children:[l,o.jsx(sl,{onClick:p,style:{width:"calc(100% - 30px)"},children:o.jsx(U,{children:g?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"title",children:E}),o.jsx(fa,{meta:j.meta,type:j.type,sx:{display:"-webkit-box",overflow:"hidden",textOverflow:"ellipsis",WebkitLineClamp:3,WebkitBoxOrient:"vertical",color:"#fff"}})]}):o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"title",children:r.title}),s||o.jsx("span",{className:"desc",children:r.description})]})})})]}),o.jsx("div",{className:i.action,children:o.jsx(Yt,{"aria-label":"close",color:"inherit",onClick:d,size:"large",children:o.jsx(No,{className:i.icon})},"close")})]})}const rl=F.forwardRef(ms);ms.propTypes={viewAllUrl:P.string.isRequired,keyId:P.number.isRequired,notification:P.object.isRequired,content:P.node};ms.defaultProps={content:null};const sl=me.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 Jn({attachment:e}){const{data:r}=e;let t="";try{t=new URL(r.url).host}catch{t=r.url}return o.jsxs(Zr,{target:"_blank",rel:"noopener noreferrer",href:r.url,className:"link",style:{wordBreak:"break-all"},onClick:s=>{s.customPreventRedirect=!0},children:[!!t&&o.jsx("span",{className:"url",children:t}),!!r.title&&o.jsx(U,{className:"title",style:{whiteSpace:"unset"},children:r.title}),!!r.description&&o.jsx(U,{className:"description",style:{whiteSpace:"unset",color:"rgba(75, 85, 99, 1)"},children:r.description}),!!r.image&&o.jsx("img",{src:yn.getImagePath(r.image),alt:r.title||"",height:128,style:{borderRadius:"8px",maxWidth:"256px",objectFit:"cover"}})]})}Jn.propTypes={attachment:P.object.isRequired};function Yn({attachment:e}){const{data:r}=e;return o.jsx("img",{src:yn.getImagePath(r.url),alt:r.title||"",height:128,style:{borderRadius:"8px",maxWidth:"256px",objectFit:"cover"}})}Yn.propTypes={attachment:P.object.isRequired};function Xn({attachment:e,...r}){var l;const{data:t}=e,s=((l=t.color)==null?void 0:l.toLowerCase())||r.color,n=t.size||r.size,i=t.fontWeight||r.fontWeight||400;let a="14px";return n==="small"?a="12px":n==="normal"?a="14px":n==="big"?a="16px":n==="large"&&(a="18px"),o.jsx(nl,{className:"title",style:{fontSize:a,color:s,whiteSpace:"unset",fontWeight:i},children:t.text})}Xn.propTypes={attachment:P.object.isRequired};const nl=me.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
|
+
`;gs.propTypes={locale:P.string,data:P.object.isRequired};gs.defaultProps={locale:"en"};function gs({locale:e="en",data:r}){const t={zh:"来自",en:"from"}[e]||"from",s={zh:"接收",en:"Received"}[e]||"Received",i=`https://${yt.getUrlHost(r.chainHost)||yt.getChainHost(r.chainId)}/explorer/tokens/${r.address}/tx`;let a=r.amount;r.decimal&&(a=r.amount/10**r.decimal);const l=Ye(()=>({display:"flex",alignItems:"center",rowGap:2,columnGap:4,justifyContent:"space-between",flexWrap:"wrap"}));return o.jsx("a",{href:i,target:"_blank",rel:"noreferrer",onClick:c=>{c.customPreventRedirect=!0},children:o.jsxs(U,{display:"flex",flexDirection:"column",children:[o.jsxs(U,{sx:l,children:[o.jsx(oe,{component:"div",sx:{fontWeight:700,color:"rgba(3, 7, 18, 1)"},children:s}),o.jsxs(oe,{component:"div",align:"right",style:Bt.summaryStyle,flex:1,children:["+",a," ",r.symbol]})]}),o.jsxs(U,{sx:l,children:[o.jsx(oe,{component:"div",style:{...Bt.remarkStyle,fontSize:14},children:t}),o.jsx(U,{maxWidth:260,fontSize:14,children:o.jsx(Yr,{did:r.address,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:e})})]})]})})}xs.propTypes={locale:P.string,data:P.object.isRequired};xs.defaultProps={locale:"en"};function xs({locale:e,data:r}){var c,d;const t={zh:"接收",en:"Received"}[e]||"Received",s={zh:"来自",en:"from"}[e]||"from",n=yt.getUrlHost(r.chainHost)||yt.getChainHost(r.chainId),i=r.did||((d=(c=r==null?void 0:r.credential)==null?void 0:c.issuer)==null?void 0:d.id)||"",a=`https://${n}/explorer/assets/${i}`,l=Ye(()=>({display:"flex",alignItems:"center",rowGap:2,columnGap:4,justifyContent:"space-between",flexWrap:"wrap"}));return o.jsx(U,{sx:{pr:1},children:o.jsx("a",{href:a,target:"_blank",style:{textDecoration:"none",color:"initial",display:"block"},onClick:f=>{f.customPreventRedirect=!0},rel:"noreferrer",children:o.jsxs(U,{display:"flex",flexDirection:"column",children:[o.jsxs(U,{sx:l,children:[o.jsx(oe,{component:"div",sx:{fontWeight:700,color:"rgba(3, 7, 18, 1)"},children:t}),o.jsx(oe,{component:"div",align:"right",style:Bt.summaryStyle,children:"+1 Asset"})]}),i?o.jsxs(U,{sx:l,children:[o.jsx(oe,{component:"div",style:{...Bt.remarkStyle,fontSize:14},children:s}),o.jsx(U,{maxWidth:260,fontSize:14,children:o.jsx(Yr,{did:i,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:e})})]}):null]})})})}ei.propTypes={data:P.object.isRequired,locale:P.string};function ei({data:e,locale:r="en"}){return o.jsxs("a",{href:e.url,target:"_blank",style:{display:"flex",textDecoration:"none",color:"initial"},onClick:t=>{t.customPreventRedirect=!0},rel:"noreferrer",children:[o.jsx("img",{className:"image",src:e.logo,width:50,height:50,alt:""}),o.jsxs("div",{style:{flex:1,marginLeft:"10px"},children:[o.jsx("div",{style:{marginBottom:"6px"},children:e.title}),o.jsx(U,{maxWidth:260,fontSize:10,style:{color:"#a5a5a5"},children:o.jsx(Yr,{did:e.appDID,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:r})})]})]})}ys.propTypes={locale:P.string,data:P.object.isRequired};ys.defaultProps={locale:"en"};function ys({locale:e,data:r}){const t=yt.getChainHost(r.chainId),s=`https://${t}/explorer/txs/${r.hash}`,n={zh:"交易详情",en:"Transaction Details"}[e]||"Transaction Details",i={zh:"交易哈希",en:"Transaction Hash"}[e]||"Transaction Hash";return o.jsxs("a",{href:s,target:"_blank",style:{textDecoration:"none",color:"initial",display:"block",fontSize:14},onClick:a=>{a.customPreventRedirect=!0},rel:"noreferrer",children:[o.jsx("h6",{style:{color:"#a5a5a5",margin:0},children:t}),o.jsx("p",{style:{color:"#4598fa",margin:0},children:n}),o.jsxs("div",{style:{wordBreak:"break-all"},children:[i,": ",r.hash]})]})}function ti({attachment:e,...r}){const{local:t}=F.useContext(er),s=De(n=>n.breakpoints.down("md"));return o.jsxs(il,{...r,isMd:s,children:[e.type==="link"&&o.jsx(Jn,{attachment:e,...r,isMd:s}),e.type==="image"&&o.jsx(Yn,{attachment:e,isMd:s}),e.type==="text"&&o.jsx(Xn,{attachment:e,isMd:s}),e.type==="token"&&o.jsx(gs,{data:e.data,local:t,isMd:s}),e.type==="asset"||e.type==="vc"?o.jsx(xs,{data:e.data,local:t,isMd:s}):null,e.type==="dapp"&&o.jsx(ei,{data:e.data,local:t,isMd:s}),e.type==="transaction"&&o.jsx(ys,{data:e.data,local:t,...r,isMd:s}),e.type==="divider"&&o.jsx(Qr,{sx:{mb:1,mt:1},style:{color:Jr.dividerColor}})]})}const il=me.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
|
+
`;ti.propTypes={attachment:P.object.isRequired};function ri({data:e,...r}){const{items:t}=e;return o.jsx(ol,{...r,children:t.map(s=>o.jsxs(wn,{variant:"outlined",sx:{p:2,borderRadius:"8px",minWidth:128},children:[o.jsxs(U,{display:"flex",alignItems:"center",gap:1,children:[s.icon?o.jsx("img",{src:s.icon,alt:s.title,style:{width:16,height:16}}):null,o.jsxs(U,{className:"metric-name",display:"flex",alignItems:"center",children:[s.title,s.subtitle?o.jsx($t,{title:s.subtitle,arrow:!0,placement:"top",children:o.jsx(xa,{fontSize:"small",sx:{fontSize:14,ml:.5}})}):null]})]}),o.jsxs(U,{className:"metric-number",sx:{color:s.content_color||"rgba(3, 7, 18, 1)"},children:[s.content,s.sub_content?o.jsxs("span",{className:"sub-content",style:{color:s.sub_content_color||"rgba(156, 163, 175, 1)"},children:["(",s.sub_content,")"]}):null]})]},s.title))})}const ol=me(U)`
|
|
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
|
+
`;ri.propTypes={data:P.object.isRequired};function si({data:e}){const{items:r}=e,t=De(a=>a.breakpoints.down("sm")),s=De(a=>a.breakpoints.down("md")),n=De(a=>a.breakpoints.down("lg")),i=()=>t?1:s?3:n?4:6;return o.jsx(Ro,{variant:"quilted",cols:i(),gap:8,rowHeight:128,sx:{margin:0},children:r.map(a=>{const l=a.cover||a.display;return l?o.jsx("a",{href:a.link,target:"_blank",rel:"noopener noreferrer",children:o.jsx(ko,{children:o.jsx("img",{src:l,alt:a.title||"",style:{borderRadius:"8px"}})})},l):null})})}si.propTypes={data:P.object.isRequired};function vs({data:e,feedType:r,...t}){return o.jsxs(al,{...t,children:[r==="data-tracker"&&e.type==="table"&&o.jsx(ri,{data:e}),(r==="graphic"||r==="gallery")&&o.jsx(si,{data:e})]})}const al=me.div`
|
|
68
|
+
display: flex;
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
width: 100%;
|
|
71
|
+
margin-bottom: 4px;
|
|
72
|
+
&:last-child {
|
|
73
|
+
margin-bottom: 0;
|
|
74
|
+
}
|
|
75
|
+
`;vs.propTypes={data:P.object.isRequired,feedType:P.string};vs.defaultProps={feedType:"data-tracker"};const ll=Uo(),cl=e=>{let r="rgba(0, 0, 0, 0.12)";return e==="warning"?r="#DE9E37":e==="error"?r="#F16E6E":r="rgba(0, 0, 0, 0.12)",r},ul=e=>e.every(r=>r.type==="text"),dl=e=>e.every(r=>r.type==="image"),fl=e=>aa(e,2).map(r=>({type:"combined",items:r})).filter(r=>(r.items||[]).every(t=>{var s,n,i;return(i=(n=(s=t==null?void 0:t.data)==null?void 0:s.text)==null?void 0:n.trim)==null?void 0:i.call(n)})),pl=e=>{if(!e.length||e.length<=1)return!1;const r=e[0].type;return e.every(t=>t.type===r)},hl=async(e,r)=>{const t=ll.user;if(t)try{return await t.getUserPublicInfo({did:e})?await t.getProfileUrl({did:e,locale:r}):void 0}catch(s){console.error(s);return}};Pt.propTypes={data:P.array.isRequired,style:P.object};function Pt({data:e,style:r={}}){return o.jsx(oe,{style:{color:e.color||"initial",margin:0,whiteSpace:"pre-line!important",...r},children:e.text})}function ni({data:e}){const r=[];for(let t=0;t<(e==null?void 0:e.length);t+=2){const s=e[t],n=e[t+1];s&&n?r.push(o.jsxs(Js,{children:[o.jsx("td",{className:"label-col",children:o.jsx(Pt,{data:s.data,style:{whiteSpace:"nowrap"}})}),o.jsx("td",{className:"value-col",children:o.jsx(Pt,{data:n.data,style:{wordBreak:"break-all"}})})]},t)):s&&r.push(o.jsx(Js,{children:o.jsx("td",{className:"label-col",children:o.jsx(Pt,{data:s.data})})},t))}return o.jsx("table",{style:{width:"100%"},children:o.jsx("tbody",{children:r})})}ni.propTypes={data:P.array.isRequired};const Js=me.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 bs({notification:e,severity:r,showSke:t=!0}){const{attachments:s,data:n,...i}=e,a=De(f=>f.breakpoints.down("md"));if((!s||!s.length)&&Lt(n))return null;const l=cl(r),c=(f,p=!1)=>{if(!f&&!Array.isArray(f))return null;let g=f,j={},E="horizontal";p&&ul(f)&&(g=fl(f),E="vertical",j={display:"flex",gap:8,flexDirection:"row",justifyContent:"flex-start",flexWrap:"wrap",height:"100%",width:a||g.length===1?"100%":"28%"});const T=pl(g);return o.jsx(U,{sx:{width:"100%",display:"flex",gap:1,flexDirection:p?"row":"column",justifyContent:"flex-start",alignItems:p?"center":"unset",flexWrap:"wrap"},children:g.map((M,y)=>M.type==="section"?o.jsx(ni,{data:M.fields},y):o.jsxs(F.Fragment,{children:[o.jsx(ti,{attachment:M,style:j,...i}),!(a&&E==="vertical")&&T&&g.length>1&&y!==g.length-1?o.jsx(Qr,{orientation:E,style:{color:Jr.dividerColor},sx:E==="vertical"?{ml:2,mr:2,height:32}:{}}):null]},y))})},d=dl(s);return o.jsx(ml,{children:o.jsxs("div",{className:"message-in-list",children:[s.length>0&&o.jsx("div",{className:"message-container",style:a?{width:"100%"}:{},children:d?c(s):o.jsx(wn,{variant:"outlined",sx:{p:2,borderRadius:"8px",minWidth:128,borderColor:l},children:c(s)})}),!Lt(n)&&o.jsx("div",{className:"message-container",children:o.jsx("div",{className:"data-container",children:o.jsx(vs,{data:n,feedType:e.feedType})})}),s.length===0&&Lt(n)&&t&&o.jsx(Io,{className:"attach-ske",style:{marginTop:10},variant:"rectangular",height:150})]})})}const ml=me.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
|
+
`;bs.propTypes={severity:P.string.isRequired,notification:P.object.isRequired,showSke:P.bool};bs.defaultProps={showSke:!0};const fr=e=>lo.sanitize(e,{ALLOWED_ATTR:["href","target","rel","class","id","style"]}),gl=async(e,r)=>{const{type:t,did:s}=e;return vn.isSameAddr(t,"did")?await hl(s,r)||Mt.getLink(e):Mt.getLink(e)},xl=async(e,r,t=!0)=>{const s=Mt.toTextList(e);return await Promise.all(s.map(async i=>{if(i instanceof Mt.Link){if(t){const a=await gl(i,r),{type:l,chainId:c,did:d}=i;return vn.isSameAddr(l,"dapp")?`<em style="font-weight:bold;" data-type="${l}" data-chain-id="${c}" data-did="${d}">${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="${d}">${i.text}</em>`}return i.text}return i})).then(i=>i.join(""))};ii.propTypes={notification:P.object,rows:P.number,minimal:P.bool};function ii({notification:e,rows:r=2,minimal:t=!1}){const[s,n]=F.useState(!1),[i,a]=F.useState(""),{t:l,locale:c}=ge(),d=F.useMemo(()=>{const{attachments:M}=e||{};if(!M)return!1;try{return M.length>0}catch{return!1}},[e]),f=F.useMemo(()=>{const{blocks:M}=e||{};if(!M)return!1;try{return M.length>0}catch{return!1}},[e]),p=F.useMemo(()=>{const{description:M}=e||{};return!!M},[e]),g=F.useMemo(()=>{const{data:M}=e||{};return!Lt(M)},[e]),j=F.useMemo(()=>d||f||p||g,[d,f,p,g]);if(F.useEffect(()=>{xl((e==null?void 0:e.description)??"",c).then(M=>{a(M)})},[e==null?void 0:e.description,c]),!j)return null;const E=()=>r===0?"":s?`<span class='toggle-btn' data-name='toggle-expanded'>${l("common.collapse")}</span>`:`...<span class='toggle-btn' data-name='toggle-expanded'>${l("common.expand")}</span>`,T=M=>{const{target:y}=M;y.getAttribute("data-name")==="toggle-expanded"&&(n(!s),M.customPreventRedirect=!0)};return o.jsxs(yl,{color:t?"#fff":"",children:[o.jsx(U,{className:"text-container",component:"div",onClick:T,children:i&&(!s&&r>0?o.jsx(pa,{basedOn:"letters",unsafeHTML:fr(i),maxLine:r,ellipsisHTML:fr(E())}):o.jsx(oe,{component:"div",className:`content ${r===0?"ellipsis":""}`,style:{whiteSpace:"pre-line!important"},dangerouslySetInnerHTML:{__html:fr(`${i}${E()}`)}}))}),!t&&(d||g)?o.jsx(bs,{severity:e.severity,notification:e}):null]})}const yl=me(U)`
|
|
141
|
+
width: 100%;
|
|
142
|
+
color: ${e=>e.color?e.color:"rgba(75, 85, 99, 1)"};
|
|
143
|
+
.text-container {
|
|
144
|
+
word-wrap: break-word;
|
|
145
|
+
word-break: break-all;
|
|
146
|
+
color: ${e=>e.color?e.color:"rgba(75, 85, 99, 1)"};
|
|
147
|
+
.toggle-btn {
|
|
148
|
+
display: inline-block;
|
|
149
|
+
white-space: nowrap;
|
|
150
|
+
cursor: pointer;
|
|
151
|
+
margin-left: 4px;
|
|
152
|
+
color: rgba(59, 130, 246, 1);
|
|
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
|
+
}
|
|
163
|
+
}
|
|
164
|
+
`,vl=F.memo(ii);var bt=e=>e.type==="checkbox",nt=e=>e instanceof Date,de=e=>e==null;const oi=e=>typeof e=="object";var Y=e=>!de(e)&&!Array.isArray(e)&&oi(e)&&!nt(e),ai=e=>Y(e)&&e.target?bt(e.target)?e.target.checked:e.target.value:e,bl=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,li=(e,r)=>e.has(bl(r)),_l=e=>{const r=e.constructor&&e.constructor.prototype;return Y(r)&&r.hasOwnProperty("isPrototypeOf")},_s=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function X(e){let r;const t=Array.isArray(e);if(e instanceof Date)r=new Date(e);else if(e instanceof Set)r=new Set(e);else if(!(_s&&(e instanceof Blob||e instanceof FileList))&&(t||Y(e)))if(r=t?[]:{},!t&&!_l(e))r=e;else for(const s in e)e.hasOwnProperty(s)&&(r[s]=X(e[s]));else return e;return r}var _t=e=>Array.isArray(e)?e.filter(Boolean):[],G=e=>e===void 0,A=(e,r,t)=>{if(!r||!Y(e))return t;const s=_t(r.split(/[,[\].]+?/)).reduce((n,i)=>de(n)?n:n[i],e);return G(s)||s===e?G(e[r])?t:e[r]:s},_e=e=>typeof e=="boolean",ws=e=>/^\w*$/.test(e),ci=e=>_t(e.replace(/["|']|\]/g,"").split(/\.|\[/)),K=(e,r,t)=>{let s=-1;const n=ws(r)?[r]:ci(r),i=n.length,a=i-1;for(;++s<i;){const l=n[s];let c=t;if(s!==a){const d=e[l];c=Y(d)||Array.isArray(d)?d:isNaN(+n[s+1])?{}:[]}if(l==="__proto__")return;e[l]=c,e=e[l]}return e};const zt={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},je={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Fe={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},wl=z.createContext(null),rr=()=>z.useContext(wl);var ui=(e,r,t,s=!0)=>{const n={defaultValues:r._defaultValues};for(const i in e)Object.defineProperty(n,i,{get:()=>{const a=i;return r._proxyFormState[a]!==je.all&&(r._proxyFormState[a]=!s||je.all),t&&(t[a]=!0),e[a]}});return n},ue=e=>Y(e)&&!Object.keys(e).length,di=(e,r,t,s)=>{t(e);const{name:n,...i}=e;return ue(i)||Object.keys(i).length>=Object.keys(r).length||Object.keys(i).find(a=>r[a]===(!s||je.all))},he=e=>Array.isArray(e)?e:[e],fi=(e,r,t)=>!e||!r||e===r||he(e).some(s=>s&&(t?s===r:s.startsWith(r)||r.startsWith(s)));function sr(e){const r=z.useRef(e);r.current=e,z.useEffect(()=>{const t=!e.disabled&&r.current.subject&&r.current.subject.subscribe({next:r.current.next});return()=>{t&&t.unsubscribe()}},[e.disabled])}function jl(e){const r=rr(),{control:t=r.control,disabled:s,name:n,exact:i}=e||{},[a,l]=z.useState(t._formState),c=z.useRef(!0),d=z.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),f=z.useRef(n);return f.current=n,sr({disabled:s,next:p=>c.current&&fi(f.current,p.name,i)&&di(p,d.current,t._updateFormState)&&l({...t._formState,...p}),subject:t._subjects.state}),z.useEffect(()=>(c.current=!0,d.current.isValid&&t._updateValid(!0),()=>{c.current=!1}),[t]),ui(a,t,d.current,!1)}var Ie=e=>typeof e=="string",pi=(e,r,t,s,n)=>Ie(e)?(s&&r.watch.add(e),A(t,e,n)):Array.isArray(e)?e.map(i=>(s&&r.watch.add(i),A(t,i))):(s&&(r.watchAll=!0),t);function Sl(e){const r=rr(),{control:t=r.control,name:s,defaultValue:n,disabled:i,exact:a}=e||{},l=z.useRef(s);l.current=s,sr({disabled:i,subject:t._subjects.values,next:f=>{fi(l.current,f.name,a)&&d(X(pi(l.current,t._names,f.values||t._formValues,!1,n)))}});const[c,d]=z.useState(t._getWatch(s,n));return z.useEffect(()=>t._removeUnmounted()),c}function Cl(e){const r=rr(),{name:t,disabled:s,control:n=r.control,shouldUnregister:i}=e,a=li(n._names.array,t),l=Sl({control:n,name:t,defaultValue:A(n._formValues,t,A(n._defaultValues,t,e.defaultValue)),exact:!0}),c=jl({control:n,name:t,exact:!0}),d=z.useRef(n.register(t,{...e.rules,value:l,..._e(e.disabled)?{disabled:e.disabled}:{}}));return z.useEffect(()=>{const f=n._options.shouldUnregister||i,p=(g,j)=>{const E=A(n._fields,g);E&&E._f&&(E._f.mount=j)};if(p(t,!0),f){const g=X(A(n._options.defaultValues,t));K(n._defaultValues,t,g),G(A(n._formValues,t))&&K(n._formValues,t,g)}return()=>{(a?f&&!n._state.action:f)?n.unregister(t):p(t,!1)}},[t,n,a,i]),z.useEffect(()=>{A(n._fields,t)&&n._updateDisabledField({disabled:s,fields:n._fields,name:t,value:A(n._fields,t)._f.value})},[s,t,n]),{field:{name:t,value:l,..._e(s)||c.disabled?{disabled:c.disabled||s}:{},onChange:z.useCallback(f=>d.current.onChange({target:{value:ai(f),name:t},type:zt.CHANGE}),[t]),onBlur:z.useCallback(()=>d.current.onBlur({target:{value:A(n._formValues,t),name:t},type:zt.BLUR}),[t,n]),ref:z.useCallback(f=>{const p=A(n._fields,t);p&&f&&(p._f.ref={focus:()=>f.focus(),select:()=>f.select(),setCustomValidity:g=>f.setCustomValidity(g),reportValidity:()=>f.reportValidity()})},[n._fields,t])},formState:c,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!A(c.errors,t)},isDirty:{enumerable:!0,get:()=>!!A(c.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!A(c.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!A(c.validatingFields,t)},error:{enumerable:!0,get:()=>A(c.errors,t)}})}}const Ee=e=>e.render(Cl(e));var Al=(e,r,t,s,n)=>r?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[s]:n||!0}}:{},Ue=()=>{const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,r=>{const t=(Math.random()*16+e)%16|0;return(r=="x"?t:t&3|8).toString(16)})},pr=(e,r,t={})=>t.shouldFocus||G(t.shouldFocus)?t.focusName||`${e}.${G(t.focusIndex)?r:t.focusIndex}.`:"",pt=e=>({isOnSubmit:!e||e===je.onSubmit,isOnBlur:e===je.onBlur,isOnChange:e===je.onChange,isOnAll:e===je.all,isOnTouch:e===je.onTouched}),Ir=(e,r,t)=>!t&&(r.watchAll||r.watch.has(e)||[...r.watch].some(s=>e.startsWith(s)&&/^\.\w+/.test(e.slice(s.length))));const it=(e,r,t,s)=>{for(const n of t||Object.keys(e)){const i=A(e,n);if(i){const{_f:a,...l}=i;if(a){if(a.refs&&a.refs[0]&&r(a.refs[0],n)&&!s)return!0;if(a.ref&&r(a.ref,a.name)&&!s)return!0;if(it(l,r))break}else if(Y(l)&&it(l,r))break}}};var hi=(e,r,t)=>{const s=he(A(e,t));return K(s,"root",r[t]),K(e,t,s),e},js=e=>e.type==="file",Me=e=>typeof e=="function",Ht=e=>{if(!_s)return!1;const r=e?e.ownerDocument:0;return e instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},Ft=e=>Ie(e),Ss=e=>e.type==="radio",qt=e=>e instanceof RegExp;const Ys={value:!1,isValid:!1},Xs={value:!0,isValid:!0};var mi=e=>{if(Array.isArray(e)){if(e.length>1){const r=e.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:r,isValid:!!r.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!G(e[0].attributes.value)?G(e[0].value)||e[0].value===""?Xs:{value:e[0].value,isValid:!0}:Xs:Ys}return Ys};const en={isValid:!1,value:null};var gi=e=>Array.isArray(e)?e.reduce((r,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:r,en):en;function tn(e,r,t="validate"){if(Ft(e)||Array.isArray(e)&&e.every(Ft)||_e(e)&&!e)return{type:t,message:Ft(e)?e:"",ref:r}}var rt=e=>Y(e)&&!qt(e)?e:{value:e,message:""},Dr=async(e,r,t,s,n)=>{const{ref:i,refs:a,required:l,maxLength:c,minLength:d,min:f,max:p,pattern:g,validate:j,name:E,valueAsNumber:T,mount:M,disabled:y}=e._f,b=A(r,E);if(!M||y)return{};const I=a?a[0]:i,B=V=>{s&&I.reportValidity&&(I.setCustomValidity(_e(V)?"":V||""),I.reportValidity())},_={},m=Ss(i),w=bt(i),S=m||w,R=(T||js(i))&&G(i.value)&&G(b)||Ht(i)&&i.value===""||b===""||Array.isArray(b)&&!b.length,x=Al.bind(null,E,t,_),D=(V,$,H,W=Fe.maxLength,ae=Fe.minLength)=>{const fe=V?$:H;_[E]={type:V?W:ae,message:fe,ref:i,...x(V?W:ae,fe)}};if(n?!Array.isArray(b)||!b.length:l&&(!S&&(R||de(b))||_e(b)&&!b||w&&!mi(a).isValid||m&&!gi(a).isValid)){const{value:V,message:$}=Ft(l)?{value:!!l,message:l}:rt(l);if(V&&(_[E]={type:Fe.required,message:$,ref:I,...x(Fe.required,$)},!t))return B($),_}if(!R&&(!de(f)||!de(p))){let V,$;const H=rt(p),W=rt(f);if(!de(b)&&!isNaN(b)){const ae=i.valueAsNumber||b&&+b;de(H.value)||(V=ae>H.value),de(W.value)||($=ae<W.value)}else{const ae=i.valueAsDate||new Date(b),fe=O=>new Date(new Date().toDateString()+" "+O),We=i.type=="time",Te=i.type=="week";Ie(H.value)&&b&&(V=We?fe(b)>fe(H.value):Te?b>H.value:ae>new Date(H.value)),Ie(W.value)&&b&&($=We?fe(b)<fe(W.value):Te?b<W.value:ae<new Date(W.value))}if((V||$)&&(D(!!V,H.message,W.message,Fe.max,Fe.min),!t))return B(_[E].message),_}if((c||d)&&!R&&(Ie(b)||n&&Array.isArray(b))){const V=rt(c),$=rt(d),H=!de(V.value)&&b.length>+V.value,W=!de($.value)&&b.length<+$.value;if((H||W)&&(D(H,V.message,$.message),!t))return B(_[E].message),_}if(g&&!R&&Ie(b)){const{value:V,message:$}=rt(g);if(qt(V)&&!b.match(V)&&(_[E]={type:Fe.pattern,message:$,ref:i,...x(Fe.pattern,$)},!t))return B($),_}if(j){if(Me(j)){const V=await j(b,r),$=tn(V,I);if($&&(_[E]={...$,...x(Fe.validate,$.message)},!t))return B($.message),_}else if(Y(j)){let V={};for(const $ in j){if(!ue(V)&&!t)break;const H=tn(await j[$](b,r),I,$);H&&(V={...H,...x($,H.message)},B(H.message),t&&(_[E]=V))}if(!ue(V)&&(_[E]={ref:I,...V},!t))return _}}return B(!0),_},hr=(e,r)=>[...e,...he(r)],mr=e=>Array.isArray(e)?e.map(()=>{}):void 0;function gr(e,r,t){return[...e.slice(0,r),...he(t),...e.slice(r)]}var xr=(e,r,t)=>Array.isArray(e)?(G(e[t])&&(e[t]=void 0),e.splice(t,0,e.splice(r,1)[0]),e):[],yr=(e,r)=>[...he(r),...he(e)];function El(e,r){let t=0;const s=[...e];for(const n of r)s.splice(n-t,1),t++;return _t(s).length?s:[]}var vr=(e,r)=>G(r)?[]:El(e,he(r).sort((t,s)=>t-s)),br=(e,r,t)=>{[e[r],e[t]]=[e[t],e[r]]};function Tl(e,r){const t=r.slice(0,-1).length;let s=0;for(;s<t;)e=G(e)?s++:e[r[s++]];return e}function Rl(e){for(const r in e)if(e.hasOwnProperty(r)&&!G(e[r]))return!1;return!0}function J(e,r){const t=Array.isArray(r)?r:ws(r)?[r]:ci(r),s=t.length===1?e:Tl(e,t),n=t.length-1,i=t[n];return s&&delete s[i],n!==0&&(Y(s)&&ue(s)||Array.isArray(s)&&Rl(s))&&J(e,t.slice(0,-1)),e}var rn=(e,r,t)=>(e[r]=t,e);function Md(e){const r=rr(),{control:t=r.control,name:s,keyName:n="id",shouldUnregister:i}=e,[a,l]=z.useState(t._getFieldArray(s)),c=z.useRef(t._getFieldArray(s).map(Ue)),d=z.useRef(a),f=z.useRef(s),p=z.useRef(!1);f.current=s,d.current=a,t._names.array.add(s),e.rules&&t.register(s,e.rules),sr({next:({values:_,name:m})=>{if(m===f.current||!m){const w=A(_,f.current);Array.isArray(w)&&(l(w),c.current=w.map(Ue))}},subject:t._subjects.array});const g=z.useCallback(_=>{p.current=!0,t._updateFieldArray(s,_)},[t,s]),j=(_,m)=>{const w=he(X(_)),S=hr(t._getFieldArray(s),w);t._names.focus=pr(s,S.length-1,m),c.current=hr(c.current,w.map(Ue)),g(S),l(S),t._updateFieldArray(s,S,hr,{argA:mr(_)})},E=(_,m)=>{const w=he(X(_)),S=yr(t._getFieldArray(s),w);t._names.focus=pr(s,0,m),c.current=yr(c.current,w.map(Ue)),g(S),l(S),t._updateFieldArray(s,S,yr,{argA:mr(_)})},T=_=>{const m=vr(t._getFieldArray(s),_);c.current=vr(c.current,_),g(m),l(m),t._updateFieldArray(s,m,vr,{argA:_})},M=(_,m,w)=>{const S=he(X(m)),R=gr(t._getFieldArray(s),_,S);t._names.focus=pr(s,_,w),c.current=gr(c.current,_,S.map(Ue)),g(R),l(R),t._updateFieldArray(s,R,gr,{argA:_,argB:mr(m)})},y=(_,m)=>{const w=t._getFieldArray(s);br(w,_,m),br(c.current,_,m),g(w),l(w),t._updateFieldArray(s,w,br,{argA:_,argB:m},!1)},b=(_,m)=>{const w=t._getFieldArray(s);xr(w,_,m),xr(c.current,_,m),g(w),l(w),t._updateFieldArray(s,w,xr,{argA:_,argB:m},!1)},I=(_,m)=>{const w=X(m),S=rn(t._getFieldArray(s),_,w);c.current=[...S].map((R,x)=>!R||x===_?Ue():c.current[x]),g(S),l([...S]),t._updateFieldArray(s,S,rn,{argA:_,argB:w},!0,!1)},B=_=>{const m=he(X(_));c.current=m.map(Ue),g([...m]),l([...m]),t._updateFieldArray(s,[...m],w=>w,{},!0,!1)};return z.useEffect(()=>{if(t._state.action=!1,Ir(s,t._names)&&t._subjects.state.next({...t._formState}),p.current&&(!pt(t._options.mode).isOnSubmit||t._formState.isSubmitted))if(t._options.resolver)t._executeSchema([s]).then(_=>{const m=A(_.errors,s),w=A(t._formState.errors,s);(w?!m&&w.type||m&&(w.type!==m.type||w.message!==m.message):m&&m.type)&&(m?K(t._formState.errors,s,m):J(t._formState.errors,s),t._subjects.state.next({errors:t._formState.errors}))});else{const _=A(t._fields,s);_&&_._f&&!(pt(t._options.reValidateMode).isOnSubmit&&pt(t._options.mode).isOnSubmit)&&Dr(_,t._formValues,t._options.criteriaMode===je.all,t._options.shouldUseNativeValidation,!0).then(m=>!ue(m)&&t._subjects.state.next({errors:hi(t._formState.errors,m,s)}))}t._subjects.values.next({name:s,values:{...t._formValues}}),t._names.focus&&it(t._fields,(_,m)=>{if(t._names.focus&&m.startsWith(t._names.focus)&&_.focus)return _.focus(),1}),t._names.focus="",t._updateValid(),p.current=!1},[a,s,t]),z.useEffect(()=>(!A(t._formValues,s)&&t._updateFieldArray(s),()=>{(t._options.shouldUnregister||i)&&t.unregister(s)}),[s,t,n,i]),{swap:z.useCallback(y,[g,s,t]),move:z.useCallback(b,[g,s,t]),prepend:z.useCallback(E,[g,s,t]),append:z.useCallback(j,[g,s,t]),remove:z.useCallback(T,[g,s,t]),insert:z.useCallback(M,[g,s,t]),update:z.useCallback(I,[g,s,t]),replace:z.useCallback(B,[g,s,t]),fields:z.useMemo(()=>a.map((_,m)=>({..._,[n]:c.current[m]||Ue()})),[a,n])}}var _r=()=>{let e=[];return{get observers(){return e},next:n=>{for(const i of e)i.next&&i.next(n)},subscribe:n=>(e.push(n),{unsubscribe:()=>{e=e.filter(i=>i!==n)}}),unsubscribe:()=>{e=[]}}},Wt=e=>de(e)||!oi(e);function Be(e,r){if(Wt(e)||Wt(r))return e===r;if(nt(e)&&nt(r))return e.getTime()===r.getTime();const t=Object.keys(e),s=Object.keys(r);if(t.length!==s.length)return!1;for(const n of t){const i=e[n];if(!s.includes(n))return!1;if(n!=="ref"){const a=r[n];if(nt(i)&&nt(a)||Y(i)&&Y(a)||Array.isArray(i)&&Array.isArray(a)?!Be(i,a):i!==a)return!1}}return!0}var xi=e=>e.type==="select-multiple",kl=e=>Ss(e)||bt(e),wr=e=>Ht(e)&&e.isConnected,yi=e=>{for(const r in e)if(Me(e[r]))return!0;return!1};function Kt(e,r={}){const t=Array.isArray(e);if(Y(e)||t)for(const s in e)Array.isArray(e[s])||Y(e[s])&&!yi(e[s])?(r[s]=Array.isArray(e[s])?[]:{},Kt(e[s],r[s])):de(e[s])||(r[s]=!0);return r}function vi(e,r,t){const s=Array.isArray(e);if(Y(e)||s)for(const n in e)Array.isArray(e[n])||Y(e[n])&&!yi(e[n])?G(r)||Wt(t[n])?t[n]=Array.isArray(e[n])?Kt(e[n],[]):{...Kt(e[n])}:vi(e[n],de(r)?{}:r[n],t[n]):t[n]=!Be(e[n],r[n]);return t}var Rt=(e,r)=>vi(e,r,Kt(r)),bi=(e,{valueAsNumber:r,valueAsDate:t,setValueAs:s})=>G(e)?e:r?e===""?NaN:e&&+e:t&&Ie(e)?new Date(e):s?s(e):e;function jr(e){const r=e.ref;if(!(e.refs?e.refs.every(t=>t.disabled):r.disabled))return js(r)?r.files:Ss(r)?gi(e.refs).value:xi(r)?[...r.selectedOptions].map(({value:t})=>t):bt(r)?mi(e.refs).value:bi(G(r.value)?e.ref.value:r.value,e)}var Il=(e,r,t,s)=>{const n={};for(const i of e){const a=A(r,i);a&&K(n,i,a._f)}return{criteriaMode:t,names:[...e],fields:n,shouldUseNativeValidation:s}},dt=e=>G(e)?e:qt(e)?e.source:Y(e)?qt(e.value)?e.value.source:e.value:e;const sn="AsyncFunction";var Dl=e=>(!e||!e.validate)&&!!(Me(e.validate)&&e.validate.constructor.name===sn||Y(e.validate)&&Object.values(e.validate).find(r=>r.constructor.name===sn)),Ll=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function nn(e,r,t){const s=A(e,t);if(s||ws(t))return{error:s,name:t};const n=t.split(".");for(;n.length;){const i=n.join("."),a=A(r,i),l=A(e,i);if(a&&!Array.isArray(a)&&t!==i)return{name:t};if(l&&l.type)return{name:i,error:l};n.pop()}return{name:t}}var Pl=(e,r,t,s,n)=>n.isOnAll?!1:!t&&n.isOnTouch?!(r||e):(t?s.isOnBlur:n.isOnBlur)?!e:(t?s.isOnChange:n.isOnChange)?e:!0,Fl=(e,r)=>!_t(A(e,r)).length&&J(e,r);const Ol={mode:je.onSubmit,reValidateMode:je.onChange,shouldFocusError:!0};function Vl(e={}){let r={...Ol,...e},t={submitCount:0,isDirty:!1,isLoading:Me(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},s={},n=Y(r.defaultValues)||Y(r.values)?X(r.defaultValues||r.values)||{}:{},i=r.shouldUnregister?{}:X(n),a={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,d=0;const f={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:_r(),array:_r(),state:_r()},g=pt(r.mode),j=pt(r.reValidateMode),E=r.criteriaMode===je.all,T=u=>h=>{clearTimeout(d),d=setTimeout(u,h)},M=async u=>{if(f.isValid||u){const h=r.resolver?ue((await S()).errors):await x(s,!0);h!==t.isValid&&p.state.next({isValid:h})}},y=(u,h)=>{(f.isValidating||f.validatingFields)&&((u||Array.from(l.mount)).forEach(v=>{v&&(h?K(t.validatingFields,v,h):J(t.validatingFields,v))}),p.state.next({validatingFields:t.validatingFields,isValidating:!ue(t.validatingFields)}))},b=(u,h=[],v,L,k=!0,C=!0)=>{if(L&&v){if(a.action=!0,C&&Array.isArray(A(s,u))){const N=v(A(s,u),L.argA,L.argB);k&&K(s,u,N)}if(C&&Array.isArray(A(t.errors,u))){const N=v(A(t.errors,u),L.argA,L.argB);k&&K(t.errors,u,N),Fl(t.errors,u)}if(f.touchedFields&&C&&Array.isArray(A(t.touchedFields,u))){const N=v(A(t.touchedFields,u),L.argA,L.argB);k&&K(t.touchedFields,u,N)}f.dirtyFields&&(t.dirtyFields=Rt(n,i)),p.state.next({name:u,isDirty:V(u,h),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else K(i,u,h)},I=(u,h)=>{K(t.errors,u,h),p.state.next({errors:t.errors})},B=u=>{t.errors=u,p.state.next({errors:t.errors,isValid:!1})},_=(u,h,v,L)=>{const k=A(s,u);if(k){const C=A(i,u,G(v)?A(n,u):v);G(C)||L&&L.defaultChecked||h?K(i,u,h?C:jr(k._f)):W(u,C),a.mount&&M()}},m=(u,h,v,L,k)=>{let C=!1,N=!1;const q={name:u},ee=!!(A(s,u)&&A(s,u)._f&&A(s,u)._f.disabled);if(!v||L){f.isDirty&&(N=t.isDirty,t.isDirty=q.isDirty=V(),C=N!==q.isDirty);const te=ee||Be(A(n,u),h);N=!!(!ee&&A(t.dirtyFields,u)),te||ee?J(t.dirtyFields,u):K(t.dirtyFields,u,!0),q.dirtyFields=t.dirtyFields,C=C||f.dirtyFields&&N!==!te}if(v){const te=A(t.touchedFields,u);te||(K(t.touchedFields,u,v),q.touchedFields=t.touchedFields,C=C||f.touchedFields&&te!==v)}return C&&k&&p.state.next(q),C?q:{}},w=(u,h,v,L)=>{const k=A(t.errors,u),C=f.isValid&&_e(h)&&t.isValid!==h;if(e.delayError&&v?(c=T(()=>I(u,v)),c(e.delayError)):(clearTimeout(d),c=null,v?K(t.errors,u,v):J(t.errors,u)),(v?!Be(k,v):k)||!ue(L)||C){const N={...L,...C&&_e(h)?{isValid:h}:{},errors:t.errors,name:u};t={...t,...N},p.state.next(N)}},S=async u=>{y(u,!0);const h=await r.resolver(i,r.context,Il(u||l.mount,s,r.criteriaMode,r.shouldUseNativeValidation));return y(u),h},R=async u=>{const{errors:h}=await S(u);if(u)for(const v of u){const L=A(h,v);L?K(t.errors,v,L):J(t.errors,v)}else t.errors=h;return h},x=async(u,h,v={valid:!0})=>{for(const L in u){const k=u[L];if(k){const{_f:C,...N}=k;if(C){const q=l.array.has(C.name),ee=k._f&&Dl(k._f);ee&&f.validatingFields&&y([L],!0);const te=await Dr(k,i,E,r.shouldUseNativeValidation&&!h,q);if(ee&&f.validatingFields&&y([L]),te[C.name]&&(v.valid=!1,h))break;!h&&(A(te,C.name)?q?hi(t.errors,te,C.name):K(t.errors,C.name,te[C.name]):J(t.errors,C.name))}!ue(N)&&await x(N,h,v)}}return v.valid},D=()=>{for(const u of l.unMount){const h=A(s,u);h&&(h._f.refs?h._f.refs.every(v=>!wr(v)):!wr(h._f.ref))&&ce(u)}l.unMount=new Set},V=(u,h)=>(u&&h&&K(i,u,h),!Be(Q(),n)),$=(u,h,v)=>pi(u,l,{...a.mount?i:G(h)?n:Ie(u)?{[u]:h}:h},v,h),H=u=>_t(A(a.mount?i:n,u,e.shouldUnregister?A(n,u,[]):[])),W=(u,h,v={})=>{const L=A(s,u);let k=h;if(L){const C=L._f;C&&(!C.disabled&&K(i,u,bi(h,C)),k=Ht(C.ref)&&de(h)?"":h,xi(C.ref)?[...C.ref.options].forEach(N=>N.selected=k.includes(N.value)):C.refs?bt(C.ref)?C.refs.length>1?C.refs.forEach(N=>(!N.defaultChecked||!N.disabled)&&(N.checked=Array.isArray(k)?!!k.find(q=>q===N.value):k===N.value)):C.refs[0]&&(C.refs[0].checked=!!k):C.refs.forEach(N=>N.checked=N.value===k):js(C.ref)?C.ref.value="":(C.ref.value=k,C.ref.type||p.values.next({name:u,values:{...i}})))}(v.shouldDirty||v.shouldTouch)&&m(u,k,v.shouldTouch,v.shouldDirty,!0),v.shouldValidate&&O(u)},ae=(u,h,v)=>{for(const L in h){const k=h[L],C=`${u}.${L}`,N=A(s,C);(l.array.has(u)||!Wt(k)||N&&!N._f)&&!nt(k)?ae(C,k,v):W(C,k,v)}},fe=(u,h,v={})=>{const L=A(s,u),k=l.array.has(u),C=X(h);K(i,u,C),k?(p.array.next({name:u,values:{...i}}),(f.isDirty||f.dirtyFields)&&v.shouldDirty&&p.state.next({name:u,dirtyFields:Rt(n,i),isDirty:V(u,C)})):L&&!L._f&&!de(C)?ae(u,C,v):W(u,C,v),Ir(u,l)&&p.state.next({...t}),p.values.next({name:a.mount?u:void 0,values:{...i}})},We=async u=>{a.mount=!0;const h=u.target;let v=h.name,L=!0;const k=A(s,v),C=()=>h.type?jr(k._f):ai(u),N=q=>{L=Number.isNaN(q)||Be(q,A(i,v,q))};if(k){let q,ee;const te=C(),Ge=u.type===zt.BLUR||u.type===zt.FOCUS_OUT,io=!Ll(k._f)&&!r.resolver&&!A(t.errors,v)&&!k._f.deps||Pl(Ge,A(t.touchedFields,v),t.isSubmitted,j,g),lr=Ir(v,l,Ge);K(i,v,te),Ge?(k._f.onBlur&&k._f.onBlur(u),c&&c(0)):k._f.onChange&&k._f.onChange(u);const cr=m(v,te,Ge,!1),oo=!ue(cr)||lr;if(!Ge&&p.values.next({name:v,type:u.type,values:{...i}}),io)return f.isValid&&(e.mode==="onBlur"?Ge&&M():M()),oo&&p.state.next({name:v,...lr?{}:cr});if(!Ge&&lr&&p.state.next({...t}),r.resolver){const{errors:$s}=await S([v]);if(N(te),L){const ao=nn(t.errors,s,v),Ns=nn($s,s,ao.name||v);q=Ns.error,v=Ns.name,ee=ue($s)}}else y([v],!0),q=(await Dr(k,i,E,r.shouldUseNativeValidation))[v],y([v]),N(te),L&&(q?ee=!1:f.isValid&&(ee=await x(s,!0)));L&&(k._f.deps&&O(k._f.deps),w(v,ee,q,cr))}},Te=(u,h)=>{if(A(t.errors,h)&&u.focus)return u.focus(),1},O=async(u,h={})=>{let v,L;const k=he(u);if(r.resolver){const C=await R(G(u)?u:k);v=ue(C),L=u?!k.some(N=>A(C,N)):v}else u?(L=(await Promise.all(k.map(async C=>{const N=A(s,C);return await x(N&&N._f?{[C]:N}:N)}))).every(Boolean),!(!L&&!t.isValid)&&M()):L=v=await x(s);return p.state.next({...!Ie(u)||f.isValid&&v!==t.isValid?{}:{name:u},...r.resolver||!u?{isValid:v}:{},errors:t.errors}),h.shouldFocus&&!L&&it(s,Te,u?k:l.mount),L},Q=u=>{const h={...a.mount?i:n};return G(u)?h:Ie(u)?A(h,u):u.map(v=>A(h,v))},le=(u,h)=>({invalid:!!A((h||t).errors,u),isDirty:!!A((h||t).dirtyFields,u),error:A((h||t).errors,u),isValidating:!!A(t.validatingFields,u),isTouched:!!A((h||t).touchedFields,u)}),xe=u=>{u&&he(u).forEach(h=>J(t.errors,h)),p.state.next({errors:u?t.errors:{}})},be=(u,h,v)=>{const L=(A(s,u,{_f:{}})._f||{}).ref,k=A(t.errors,u)||{},{ref:C,message:N,type:q,...ee}=k;K(t.errors,u,{...ee,...h,ref:L}),p.state.next({name:u,errors:t.errors,isValid:!1}),v&&v.shouldFocus&&L&&L.focus&&L.focus()},Pe=(u,h)=>Me(u)?p.values.subscribe({next:v=>u($(void 0,h),v)}):$(u,h,!0),ce=(u,h={})=>{for(const v of u?he(u):l.mount)l.mount.delete(v),l.array.delete(v),h.keepValue||(J(s,v),J(i,v)),!h.keepError&&J(t.errors,v),!h.keepDirty&&J(t.dirtyFields,v),!h.keepTouched&&J(t.touchedFields,v),!h.keepIsValidating&&J(t.validatingFields,v),!r.shouldUnregister&&!h.keepDefaultValue&&J(n,v);p.values.next({values:{...i}}),p.state.next({...t,...h.keepDirty?{isDirty:V()}:{}}),!h.keepIsValid&&M()},At=({disabled:u,name:h,field:v,fields:L,value:k})=>{if(_e(u)&&a.mount||u){const C=u?void 0:G(k)?jr(v?v._f:A(L,h)._f):k;K(i,h,C),m(h,C,!1,!1,!0)}},$e=(u,h={})=>{let v=A(s,u);const L=_e(h.disabled)||_e(e.disabled);return K(s,u,{...v||{},_f:{...v&&v._f?v._f:{ref:{name:u}},name:u,mount:!0,...h}}),l.mount.add(u),v?At({field:v,disabled:_e(h.disabled)?h.disabled:e.disabled,name:u,value:h.value}):_(u,!0,h.value),{...L?{disabled:h.disabled||e.disabled}:{},...r.progressive?{required:!!h.required,min:dt(h.min),max:dt(h.max),minLength:dt(h.minLength),maxLength:dt(h.maxLength),pattern:dt(h.pattern)}:{},name:u,onChange:We,onBlur:We,ref:k=>{if(k){$e(u,h),v=A(s,u);const C=G(k.value)&&k.querySelectorAll&&k.querySelectorAll("input,select,textarea")[0]||k,N=kl(C),q=v._f.refs||[];if(N?q.find(ee=>ee===C):C===v._f.ref)return;K(s,u,{_f:{...v._f,...N?{refs:[...q.filter(wr),C,...Array.isArray(A(n,u))?[{}]:[]],ref:{type:C.type,name:u}}:{ref:C}}}),_(u,!1,void 0,C)}else v=A(s,u,{}),v._f&&(v._f.mount=!1),(r.shouldUnregister||h.shouldUnregister)&&!(li(l.array,u)&&a.action)&&l.unMount.add(u)}}},Ke=()=>r.shouldFocusError&&it(s,Te,l.mount),et=u=>{_e(u)&&(p.state.next({disabled:u}),it(s,(h,v)=>{const L=A(s,v);L&&(h.disabled=L._f.disabled||u,Array.isArray(L._f.refs)&&L._f.refs.forEach(k=>{k.disabled=L._f.disabled||u}))},0,!1))},Re=(u,h)=>async v=>{let L;v&&(v.preventDefault&&v.preventDefault(),v.persist&&v.persist());let k=X(i);if(p.state.next({isSubmitting:!0}),r.resolver){const{errors:C,values:N}=await S();t.errors=C,k=N}else await x(s);if(J(t.errors,"root"),ue(t.errors)){p.state.next({errors:{}});try{await u(k,v)}catch(C){L=C}}else h&&await h({...t.errors},v),Ke(),setTimeout(Ke);if(p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ue(t.errors)&&!L,submitCount:t.submitCount+1,errors:t.errors}),L)throw L},Ne=(u,h={})=>{A(s,u)&&(G(h.defaultValue)?fe(u,X(A(n,u))):(fe(u,h.defaultValue),K(n,u,X(h.defaultValue))),h.keepTouched||J(t.touchedFields,u),h.keepDirty||(J(t.dirtyFields,u),t.isDirty=h.defaultValue?V(u,X(A(n,u))):V()),h.keepError||(J(t.errors,u),f.isValid&&M()),p.state.next({...t}))},ye=(u,h={})=>{const v=u?X(u):n,L=X(v),k=ue(u),C=k?n:L;if(h.keepDefaultValues||(n=v),!h.keepValues){if(h.keepDirtyValues)for(const N of l.mount)A(t.dirtyFields,N)?K(C,N,A(i,N)):fe(N,A(C,N));else{if(_s&&G(u))for(const N of l.mount){const q=A(s,N);if(q&&q._f){const ee=Array.isArray(q._f.refs)?q._f.refs[0]:q._f.ref;if(Ht(ee)){const te=ee.closest("form");if(te){te.reset();break}}}}s={}}i=e.shouldUnregister?h.keepDefaultValues?X(n):{}:X(C),p.array.next({values:{...C}}),p.values.next({values:{...C}})}l={mount:h.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!f.isValid||!!h.keepIsValid||!!h.keepDirtyValues,a.watch=!!e.shouldUnregister,p.state.next({submitCount:h.keepSubmitCount?t.submitCount:0,isDirty:k?!1:h.keepDirty?t.isDirty:!!(h.keepDefaultValues&&!Be(u,n)),isSubmitted:h.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:k?{}:h.keepDirtyValues?h.keepDefaultValues&&i?Rt(n,i):t.dirtyFields:h.keepDefaultValues&&u?Rt(n,u):h.keepDirty?t.dirtyFields:{},touchedFields:h.keepTouched?t.touchedFields:{},errors:h.keepErrors?t.errors:{},isSubmitSuccessful:h.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1})},ut=(u,h)=>ye(Me(u)?u(i):u,h);return{control:{register:$e,unregister:ce,getFieldState:le,handleSubmit:Re,setError:be,_executeSchema:S,_getWatch:$,_getDirty:V,_updateValid:M,_removeUnmounted:D,_updateFieldArray:b,_updateDisabledField:At,_getFieldArray:H,_reset:ye,_resetDefaultValues:()=>Me(r.defaultValues)&&r.defaultValues().then(u=>{ut(u,r.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:u=>{t={...t,...u}},_disableForm:et,_subjects:p,_proxyFormState:f,_setErrors:B,get _fields(){return s},get _formValues(){return i},get _state(){return a},set _state(u){a=u},get _defaultValues(){return n},get _names(){return l},set _names(u){l=u},get _formState(){return t},set _formState(u){t=u},get _options(){return r},set _options(u){r={...r,...u}}},trigger:O,register:$e,handleSubmit:Re,watch:Pe,setValue:fe,getValues:Q,reset:ut,resetField:Ne,clearErrors:xe,unregister:ce,setError:be,setFocus:(u,h={})=>{const v=A(s,u),L=v&&v._f;if(L){const k=L.refs?L.refs[0]:L.ref;k.focus&&(k.focus(),h.shouldSelect&&k.select())}},getFieldState:le}}function _i(e={}){const r=z.useRef(),t=z.useRef(),[s,n]=z.useState({isDirty:!1,isValidating:!1,isLoading:Me(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Me(e.defaultValues)?void 0:e.defaultValues});r.current||(r.current={...Vl(e),formState:s});const i=r.current.control;return i._options=e,sr({subject:i._subjects.state,next:a=>{di(a,i._proxyFormState,i._updateFormState,!0)&&n({...i._formState})}}),z.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),z.useEffect(()=>{if(i._proxyFormState.isDirty){const a=i._getDirty();a!==s.isDirty&&i._subjects.state.next({isDirty:a})}},[i,s.isDirty]),z.useEffect(()=>{e.values&&!Be(e.values,t.current)?(i._reset(e.values,i._options.resetOptions),t.current=e.values,n(a=>({...a}))):i._resetDefaultValues()},[e.values,i]),z.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),z.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),z.useEffect(()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})},[e.shouldUnregister,i]),r.current.formState=ui(s,i),r.current}var Lr={exports:{}};(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=M;var t=l(bn),s=l(co),n=l(uo),i=l(fo),a=l(po);function l(y){return y&&y.__esModule?y:{default:y}}function c(y,b){return j(y)||g(y,b)||f(y,b)||d()}function d(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
165
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(y,b){if(y){if(typeof y=="string")return p(y,b);var I={}.toString.call(y).slice(8,-1);return I==="Object"&&y.constructor&&(I=y.constructor.name),I==="Map"||I==="Set"?Array.from(y):I==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I)?p(y,b):void 0}}function p(y,b){(b==null||b>y.length)&&(b=y.length);for(var I=0,B=Array(b);I<b;I++)B[I]=y[I];return B}function g(y,b){var I=y==null?null:typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(I!=null){var B,_,m,w,S=[],R=!0,x=!1;try{if(m=(I=I.call(y)).next,b!==0)for(;!(R=(B=m.call(I)).done)&&(S.push(B.value),S.length!==b);R=!0);}catch(D){x=!0,_=D}finally{try{if(!R&&I.return!=null&&(w=I.return(),Object(w)!==w))return}finally{if(x)throw _}}return S}}function j(y){if(Array.isArray(y))return y}var E={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0,max_allowed_length:2084},T=/^\[([^\]]+)\](?::([0-9]+))?$/;function M(y,b){if((0,t.default)(y),!y||/[\s<>]/.test(y)||y.indexOf("mailto:")===0||(b=(0,a.default)(b,E),b.validate_length&&y.length>b.max_allowed_length)||!b.allow_fragments&&y.includes("#")||!b.allow_query_components&&(y.includes("?")||y.includes("&")))return!1;var I,B,_,m,w,S,R,x;if(R=y.split("#"),y=R.shift(),R=y.split("?"),y=R.shift(),R=y.split("://"),R.length>1){if(I=R.shift().toLowerCase(),b.require_valid_protocol&&b.protocols.indexOf(I)===-1)return!1}else{if(b.require_protocol)return!1;if(y.slice(0,2)==="//"){if(!b.allow_protocol_relative_urls)return!1;R[0]=y.slice(2)}}if(y=R.join("://"),y==="")return!1;if(R=y.split("/"),y=R.shift(),y===""&&!b.require_host)return!0;if(R=y.split("@"),R.length>1){if(b.disallow_auth||R[0]===""||(B=R.shift(),B.indexOf(":")>=0&&B.split(":").length>2))return!1;var D=B.split(":"),V=c(D,2),$=V[0],H=V[1];if($===""&&H==="")return!1}m=R.join("@"),S=null,x=null;var W=m.match(T);if(W?(_="",x=W[1],S=W[2]||null):(R=m.split(":"),_=R.shift(),R.length&&(S=R.join(":"))),S!==null&&S.length>0){if(w=parseInt(S,10),!/^[0-9]+$/.test(S)||w<=0||w>65535)return!1}else if(b.require_port)return!1;return b.host_whitelist?(0,s.default)(_,b.host_whitelist):_===""&&!b.require_host?!0:!(!(0,i.default)(_)&&!(0,n.default)(_,b)&&(!x||!(0,i.default)(x,6))||(_=_||x,b.host_blacklist&&(0,s.default)(_,b.host_blacklist)))}e.exports=r.default,e.exports.default=r.default})(Lr,Lr.exports);var Ml=Lr.exports;const wi=Rn(Ml);var Pr={exports:{}},Fr={exports:{}},Or={exports:{}};(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=t;function t(s){return s==null}e.exports=r.default,e.exports.default=r.default})(Or,Or.exports);var $l=Or.exports;(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=l;var t=n(bn),s=n($l);function n(c){return c&&c.__esModule?c:{default:c}}var i=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,a=/^[-+]?[0-9]+$/;function l(c,d){(0,t.default)(c),d=d||{};var f=d.allow_leading_zeroes===!1?i:a,p=!d.hasOwnProperty("min")||(0,s.default)(d.min)||c>=d.min,g=!d.hasOwnProperty("max")||(0,s.default)(d.max)||c<=d.max,j=!d.hasOwnProperty("lt")||(0,s.default)(d.lt)||c<d.lt,E=!d.hasOwnProperty("gt")||(0,s.default)(d.gt)||c>d.gt;return f.test(c)&&p&&g&&j&&E}e.exports=r.default,e.exports.default=r.default})(Fr,Fr.exports);var Nl=Fr.exports;(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=n;var t=s(Nl);function s(i){return i&&i.__esModule?i:{default:i}}function n(i){return(0,t.default)(i,{allow_leading_zeroes:!1,min:0,max:65535})}e.exports=r.default,e.exports.default=r.default})(Pr,Pr.exports);var Ul=Pr.exports;const Bl=Rn(Ul);function we({title:e,desc:r,sectionLeftSx:t,sectionRightSx:s,children:n,...i}){return o.jsx(zl,{...i,children:o.jsxs(Nt,{className:"section",direction:{sm:"column",md:"row"},gap:{xs:3,md:6},children:[o.jsxs(U,{className:"section-left",sx:t,children:[o.jsx(oe,{className:"section-title",dangerouslySetInnerHTML:{__html:e}}),o.jsx(U,{className:"section-desc",sx:{color:"text.secondary"},dangerouslySetInnerHTML:{__html:r}})]}),o.jsx(Nt,{className:"section-content",direction:"column",sx:{width:"100%",...s},children:n})]})})}we.propTypes={title:P.string.isRequired,children:P.node.isRequired,desc:P.string,sectionLeftSx:P.object,sectionRightSx:P.object};we.defaultProps={desc:"",sectionLeftSx:{width:"384px"},sectionRightSx:{}};const zl=me(U)`
|
|
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
|
+
`,Sr={enabled:!1,secure:!1,from:"",host:"",port:"",user:"",password:""};function Hl(){var w,S,R;const{api:e}=at(),{blocklet:r}=Xr(),{t}=ge(),{confirmApi:s,confirmHolder:n}=In(),i=(w=r==null?void 0:r.meta)==null?void 0:w.did,a=Object.assign({...Sr},((R=(S=r==null?void 0:r.settings)==null?void 0:S.notification)==null?void 0:R.email)||{}),{handleSubmit:l,control:c,formState:d,watch:f,reset:p}=_i({defaultValues:Fn(a,Object.keys(Sr))}),g=Nn({testReceiver:"",testReceiverError:""}),j=f("enabled"),E=pe(async(x,D,V=!0)=>{var $,H;try{const{blocklet:W}=await e.configNotification({input:{did:i,notification:JSON.stringify({email:x})}}),ae=Object.assign({...Sr},((H=($=W==null?void 0:W.settings)==null?void 0:$.notification)==null?void 0:H.email)||{});p(ae),V&&ne.success(t("oauth.saveSuccess"))}catch(W){if(V)ne.error(W.message||t("oauth.saveFailed"));else throw W}}),T=pe(async(x,D,V)=>{try{d.isDirty&&await E(x,D,!1),await e.sendEmail({input:{did:i,receiver:V,email:JSON.stringify({body:"Your SMTP configuration is correct!",title:"Test email",type:"notification"})}}),ne.success(t("notification.email.testSuccess"))}catch($){ne.error($.message||t("notification.email.testfailed"))}}),M=pe((x,D)=>{g.testReceiver="",g.testReceiverError="",s.open({title:t("notification.email.testSendEmail"),content:()=>o.jsx(U,{sx:{width:"300px"},children:o.jsx(ke,{sx:{mt:1},fullWidth:!0,name:"testReceiver",label:t("notification.email.inputTestReceiver"),value:g.testReceiver,onChange:V=>{g.testReceiver=V.target.value},error:!!g.testReceiverError,helperText:g.testReceiverError||" "})}),confirmButtonText:t("common.confirm"),cancelButtonText:t("common.cancel"),async onConfirm(V){var H;const $=(H=g.testReceiver)==null?void 0:H.trim();if(!$){g.testReceiverError=t("notification.email.receiverRequired");return}if(!Us($)){g.testReceiverError=t("notification.email.receiverInvalid");return}g.testReceiverError="",await T(x,D,$),V()}})}),y=pe(x=>{const D=x==null?void 0:x.trim();return D?Us(D)?!0:t("notification.email.fromInvalid"):t("notification.email.fromRequired")}),b=pe(x=>{const D=x==null?void 0:x.trim();return D?wi(D,{require_host:!1,protocols:[]})?!0:t("notification.email.hostInvalid"):t("notification.email.hostRequired")}),I=pe(x=>x?Bl(x)?!0:t("notification.email.portInvalid"):t("notification.email.portRequired")),B=pe(x=>x!=null&&x.trim()?!0:t("notification.email.userRequired")),_=pe(x=>x!=null&&x.trim()?!0:t("notification.email.passwordRequired")),m=pe(()=>!0);return o.jsxs(U,{children:[o.jsxs(ql,{component:"form",onSubmit:l(E),disabled:!0,sx:{".section-left":{width:"160px"}},children:[o.jsx(we,{title:t("notification.email.enable"),my:2.5,children:o.jsx(Ee,{name:"enabled",control:c,render:({field:x})=>o.jsx(xt,{control:o.jsx(kr,{checked:x.value,...x})})})}),o.jsx(we,{title:t("notification.email.from"),children:o.jsx(Ee,{name:"from",control:c,rules:{validate:j?y:m},render:({field:x})=>{var D;return o.jsx(Oe,{fullWidth:!0,children:o.jsx(ke,{...x,size:"small",required:!0,label:t("notification.email.from"),error:!!d.errors[x.name],helperText:((D=d.errors[x.name])==null?void 0:D.message)||" ",disabled:!j})})}})}),o.jsx(we,{title:t("notification.email.host"),children:o.jsx(Ee,{name:"host",control:c,rules:{validate:j?b:m},render:({field:x})=>{var D;return o.jsx(Oe,{fullWidth:!0,children:o.jsx(ke,{...x,size:"small",required:!0,error:!!d.errors[x.name],label:t("notification.email.host"),helperText:((D=d.errors[x.name])==null?void 0:D.message)||" ",disabled:!j})})}})}),o.jsx(we,{title:t("notification.email.port"),children:o.jsx(Ee,{name:"port",control:c,rules:{validate:j?I:m},render:({field:x})=>{var D;return o.jsx(Oe,{fullWidth:!0,children:o.jsx(ke,{...x,size:"small",required:!0,type:"number",error:!!d.errors[x.name],label:t("notification.email.port"),helperText:((D=d.errors[x.name])==null?void 0:D.message)||" ",disabled:!j})})}})}),o.jsx(we,{title:t("notification.email.user"),children:o.jsx(Ee,{name:"user",control:c,rules:{validate:j?B:m},render:({field:x})=>{var D;return o.jsx(Oe,{fullWidth:!0,children:o.jsx(ke,{...x,size:"small",required:!0,error:!!d.errors[x.name],label:t("notification.email.user"),helperText:((D=d.errors[x.name])==null?void 0:D.message)||" ",disabled:!j})})}})}),o.jsx(we,{title:t("notification.email.password"),children:o.jsx(Ee,{name:"password",control:c,rules:{validate:j?_:m},render:({field:x})=>{var D;return o.jsx(Oe,{fullWidth:!0,children:o.jsx(ke,{...x,size:"small",required:!0,type:"password",error:!!d.errors[x.name],label:t("notification.email.password"),helperText:((D=d.errors[x.name])==null?void 0:D.message)||" ",disabled:!j})})}})}),o.jsx(we,{title:t("notification.email.secure"),children:o.jsx(Ee,{name:"secure",control:c,rules:{validate:m},render:({field:x})=>o.jsx(Oe,{fullWidth:!0,children:o.jsx(xt,{control:o.jsx(kr,{checked:x.value,...x,disabled:!j})})})})}),o.jsxs(U,{sx:{display:"flex",justifyContent:"flex-end",gap:2,mt:3},children:[o.jsx(Je,{variant:"outlined",color:"warning",onClick:l(M),sx:{mr:2},disabled:!j,children:t("oauth.runTest")}),o.jsx(Je,{type:"submit",variant:"contained",disabled:!d.isDirty,children:t("oauth.save")})]})]}),n]})}const ql=me(Nt)``,Cr={enabled:!1,endpoint:"",did:void 0,pushPath:void 0};function Wl(){var I,B,_;const{api:e}=at(),{blocklet:r}=Xr(),{t}=ge(),{confirmApi:s,confirmHolder:n}=In(),i=(I=r==null?void 0:r.meta)==null?void 0:I.did,a=Object.assign({...Cr},((_=(B=r==null?void 0:r.settings)==null?void 0:B.notification)==null?void 0:_.pushKit)||{}),{handleSubmit:l,control:c,formState:d,watch:f,reset:p}=_i({defaultValues:Fn(a,Object.keys(Cr))}),g=Nn({testReceiver:"",testReceiverError:""}),j=f("enabled"),E=pe(async(m,w,S=!0)=>{var R,x;try{const{blocklet:D}=await e.configNotification({input:{did:i,notification:JSON.stringify({pushKit:m})}}),V=Object.assign({...Cr},((x=(R=D==null?void 0:D.settings)==null?void 0:R.notification)==null?void 0:x.pushKit)||{});p(V),S&&ne.success(t("oauth.saveSuccess"))}catch(D){if(S)ne.error(D.message||t("oauth.saveFailed"));else throw D}}),T=pe(async(m,w)=>{var S,R,x;try{d.isDirty&&await E(m,w,!1);const D=(S=((r==null?void 0:r.configs)||[]).find(H=>H.key==="BLOCKLET_APP_URL"))==null?void 0:S.value,V=On(tr(D,"/.well-known/service/blocklet/logo"),{v:(R=r==null?void 0:r.meta)==null?void 0:R.version,t:new Date((r==null?void 0:r.updatedAt)||0).getTime()}),$={type:"passthrough",passthroughType:"messageStatus",data:{message:{title:"Test push-kit notification",body:"This is message from push-kit config test",sender:{did:r==null?void 0:r.appDid,fullName:(x=r==null?void 0:r.meta)==null?void 0:x.title,avatar:V}}}};await e.sendPush({input:{did:i,receiver:g.testReceiver,notification:JSON.stringify($)}}),ne.success(t("notification.pushKit.testSuccess"))}catch(D){ne.error(D.message||t("notification.pushKit.testfailed"))}}),M=pe((m,w)=>{g.testReceiverError="",s.open({title:t("notification.pushKit.testSend"),content:()=>o.jsx(U,{sx:{width:"450px",maxWidth:"100%"},children:o.jsx(ke,{sx:{mt:1},fullWidth:!0,name:"testReceiver",label:t("notification.pushKit.inputTestReceiver"),value:g.testReceiver,onChange:S=>{g.testReceiver=S.target.value},error:!!g.testReceiverError,helperText:g.testReceiverError||" "})}),confirmButtonText:t("common.confirm"),cancelButtonText:t("common.cancel"),async onConfirm(S){var x;if(!((x=g.testReceiver)==null?void 0:x.trim())){g.testReceiverError=t("notification.pushKit.receiverRequired");return}g.testReceiverError="",await T(m,w),S()}})}),y=pe(m=>{const w=m==null?void 0:m.trim();return w?wi(w)?!0:t("notification.pushKit.endpointInvalid"):t("notification.pushKit.endpointRequired")}),b=pe(()=>!0);return o.jsxs(U,{children:[o.jsxs(Kl,{component:"form",onSubmit:l(E),disabled:!0,sx:{".section-left":{width:"160px"}},children:[o.jsx(we,{title:t("notification.pushKit.enable"),my:2.5,children:o.jsx(Ee,{name:"enabled",control:c,render:({field:m})=>o.jsx(xt,{control:o.jsx(kr,{checked:m.value,...m})})})}),o.jsx(we,{title:t("notification.pushKit.endpoint"),children:o.jsx(Ee,{name:"endpoint",control:c,rules:{validate:j?y:b},render:({field:m})=>{var w;return o.jsx(Oe,{fullWidth:!0,children:o.jsx(ke,{...m,size:"small",required:!0,label:t("notification.pushKit.endpoint"),error:!!d.errors[m.name],helperText:((w=d.errors[m.name])==null?void 0:w.message)||" ",disabled:!j})})}})}),o.jsxs(we,{title:t("notification.pushKit.customOptions"),children:[o.jsx(Ee,{name:"did",control:c,render:({field:m})=>{var w;return o.jsx(Oe,{fullWidth:!0,children:o.jsx(ke,{...m,size:"small",label:t("notification.pushKit.did"),error:!!d.errors[m.name],helperText:((w=d.errors[m.name])==null?void 0:w.message)||" ",disabled:!j})})}}),o.jsx(Ee,{name:"pushPath",control:c,render:({field:m})=>{var w;return o.jsx(Oe,{fullWidth:!0,children:o.jsx(ke,{...m,size:"small",label:t("notification.pushKit.pushPath"),error:!!d.errors[m.name],helperText:((w=d.errors[m.name])==null?void 0:w.message)||" ",disabled:!j})})}})]}),o.jsxs(U,{sx:{display:"flex",justifyContent:"flex-end",gap:2,mt:3},children:[o.jsx(Je,{variant:"outlined",color:"warning",onClick:l(M),disabled:!j,children:t("oauth.runTest")}),o.jsx(Je,{type:"submit",variant:"contained",disabled:!d.isDirty,children:t("oauth.save")})]})]}),n]})}const Kl=me(Nt)``,on=[{label:o.jsx(U,{textAlign:"center",width:"100%",children:"Email"}),value:"email"},{label:o.jsx(U,{textAlign:"center",width:"100%",children:"Push Kit"}),value:"pushKit"}];function Gl(){const[e,r]=F.useState(on[0].value),{locale:t}=F.useContext(er),s=Ye(()=>({email:o.jsx(Hl,{}),pushKit:o.jsx(Wl,{})}),[t]),n=F.useMemo(()=>({padding:"10px 0"}),[]);return o.jsxs(U,{children:[o.jsx(Dn,{tabs:on,current:e,onChange:r}),o.jsx(U,{style:n,children:s[e]})]})}function se(e,r,t){return jn.call(r,"css")?o.jsx(Sn,Cn(e,r),t):o.jsx(e,r,t)}function Ar(e,r,t){return jn.call(r,"css")?o.jsxs(Sn,Cn(e,r),t):o.jsxs(e,r,t)}/**
|
|
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 ji=Object.freeze({left:0,top:0,width:16,height:16}),Gt=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),wt=Object.freeze({...ji,...Gt}),Vr=Object.freeze({...wt,body:"",hidden:!1});function Ql(e,r){const t={};!e.hFlip!=!r.hFlip&&(t.hFlip=!0),!e.vFlip!=!r.vFlip&&(t.vFlip=!0);const s=((e.rotate||0)+(r.rotate||0))%4;return s&&(t.rotate=s),t}function an(e,r){const t=Ql(e,r);for(const s in Vr)s in Gt?s in e&&!(s in t)&&(t[s]=Gt[s]):s in r?t[s]=r[s]:s in e&&(t[s]=e[s]);return t}function Zl(e,r){const t=e.icons,s=e.aliases||Object.create(null),n=Object.create(null);function i(a){if(t[a])return n[a]=[];if(!(a in n)){n[a]=null;const l=s[a]&&s[a].parent,c=l&&i(l);c&&(n[a]=[l].concat(c))}return n[a]}return Object.keys(t).concat(Object.keys(s)).forEach(i),n}function Jl(e,r,t){const s=e.icons,n=e.aliases||Object.create(null);let i={};function a(l){i=an(s[l]||n[l],i)}return a(r),t.forEach(a),an(e,i)}function Yl(e,r){const t=[];if(typeof e!="object"||typeof e.icons!="object")return t;e.not_found instanceof Array&&e.not_found.forEach(n=>{r(n,null),t.push(n)});const s=Zl(e);for(const n in s){const i=s[n];i&&(r(n,Jl(e,n,i)),t.push(n))}return t}const ht=/^[a-z0-9]+(-[a-z0-9]+)*$/,ct=(e,r,t,s="")=>{const n=e.split(":");if(e.slice(0,1)==="@"){if(n.length<2||n.length>3)return null;s=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){const l=n.pop(),c=n.pop(),d={provider:n.length>0?n[0]:s,prefix:c,name:l};return r&&!Ot(d)?null:d}const i=n[0],a=i.split("-");if(a.length>1){const l={provider:s,prefix:a.shift(),name:a.join("-")};return r&&!Ot(l)?null:l}if(t&&s===""){const l={provider:s,prefix:"",name:i};return r&&!Ot(l,t)?null:l}return null},Ot=(e,r)=>e?!!((e.provider===""||e.provider.match(ht))&&(r&&e.prefix===""||e.prefix.match(ht))&&e.name.match(ht)):!1,Xl={provider:"",aliases:{},not_found:{},...ji};function Er(e,r){for(const t in r)if(t in e&&typeof e[t]!=typeof r[t])return!1;return!0}function ec(e){if(typeof e!="object"||e===null)return null;const r=e;if(typeof r.prefix!="string"||!e.icons||typeof e.icons!="object"||!Er(e,Xl))return null;const t=r.icons;for(const n in t){const i=t[n];if(!n.match(ht)||typeof i.body!="string"||!Er(i,Vr))return null}const s=r.aliases||Object.create(null);for(const n in s){const i=s[n],a=i.parent;if(!n.match(ht)||typeof a!="string"||!t[a]&&!s[a]||!Er(i,Vr))return null}return r}const Qt=Object.create(null);function tc(e,r){return{provider:e,prefix:r,icons:Object.create(null),missing:new Set}}function Le(e,r){const t=Qt[e]||(Qt[e]=Object.create(null));return t[r]||(t[r]=tc(e,r))}function Cs(e,r){return ec(r)?Yl(r,(t,s)=>{s?e.icons[t]=s:e.missing.add(t)}):[]}function rc(e,r,t){try{if(typeof t.body=="string")return e.icons[r]={...t},!0}catch{}return!1}function sc(e,r){let t=[];return(typeof e=="string"?[e]:Object.keys(Qt)).forEach(n=>{(typeof n=="string"&&typeof r=="string"?[r]:Object.keys(Qt[n]||{})).forEach(a=>{const l=Le(n,a);t=t.concat(Object.keys(l.icons).map(c=>(n!==""?"@"+n+":":"")+a+":"+c))})}),t}let As=!1;function nc(e){return As}function jt(e){const r=typeof e=="string"?ct(e,!0,As):e;if(r){const t=Le(r.provider,r.prefix),s=r.name;return t.icons[s]||(t.missing.has(s)?null:void 0)}}function ic(e,r){const t=ct(e,!0,As);if(!t)return!1;const s=Le(t.provider,t.prefix);return rc(s,t.name,r)}function Si(e,r){if(typeof e!="object")return!1;typeof r!="string"&&(r=e.provider||"");const t=e.prefix;if(!Ot({provider:r,prefix:t,name:"a"}))return!1;const s=Le(r,t);return!!Cs(s,e)}function oc(e){return!!jt(e)}function ac(e){const r=jt(e);return r?{...wt,...r}:null}const Ci=Object.freeze({width:null,height:null}),Ai=Object.freeze({...Ci,...Gt}),lc=/(-?[0-9.]*[0-9]+[0-9.]*)/g,cc=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Mr(e,r,t){if(r===1)return e;if(t=t||100,typeof e=="number")return Math.ceil(e*r*t)/t;if(typeof e!="string")return e;const s=e.split(lc);if(s===null||!s.length)return e;const n=[];let i=s.shift(),a=cc.test(i);for(;;){if(a){const l=parseFloat(i);isNaN(l)?n.push(i):n.push(Math.ceil(l*r*t)/t)}else n.push(i);if(i=s.shift(),i===void 0)return n.join("");a=!a}}const uc=e=>e==="unset"||e==="undefined"||e==="none";function nr(e,r){const t={...wt,...e},s={...Ai,...r},n={left:t.left,top:t.top,width:t.width,height:t.height};let i=t.body;[t,s].forEach(E=>{const T=[],M=E.hFlip,y=E.vFlip;let b=E.rotate;M?y?b+=2:(T.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),T.push("scale(-1 1)"),n.top=n.left=0):y&&(T.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),T.push("scale(1 -1)"),n.top=n.left=0);let I;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:I=n.height/2+n.top,T.unshift("rotate(90 "+I.toString()+" "+I.toString()+")");break;case 2:T.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:I=n.width/2+n.left,T.unshift("rotate(-90 "+I.toString()+" "+I.toString()+")");break}b%2===1&&(n.left!==n.top&&(I=n.left,n.left=n.top,n.top=I),n.width!==n.height&&(I=n.width,n.width=n.height,n.height=I)),T.length&&(i='<g transform="'+T.join(" ")+'">'+i+"</g>")});const a=s.width,l=s.height,c=n.width,d=n.height;let f,p;a===null?(p=l===null?"1em":l==="auto"?d:l,f=Mr(p,c/d)):(f=a==="auto"?c:a,p=l===null?Mr(f,d/c):l==="auto"?d:l);const g={},j=(E,T)=>{uc(T)||(g[E]=T.toString())};return j("width",f),j("height",p),g.viewBox=n.left.toString()+" "+n.top.toString()+" "+c.toString()+" "+d.toString(),{attributes:g,body:i}}const dc=/\sid="(\S+)"/g,fc="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let pc=0;function Ei(e,r=fc){const t=[];let s;for(;s=dc.exec(e);)t.push(s[1]);if(!t.length)return e;const n="suffix"+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(i=>{const a=typeof r=="function"?r(i):r+(pc++).toString(),l=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+l+')([")]|\\.[a-z])',"g"),"$1"+a+n+"$3")}),e=e.replace(new RegExp(n,"g"),""),e}const Ze={local:!0,session:!0},Ti={local:new Set,session:new Set};let Es=!1;function hc(e){Es=e}const ln="iconify2",vt="iconify",Ri=vt+"-count",cn=vt+"-version",ki=36e5,mc=168;function $r(e,r){try{return e.getItem(r)}catch{}}function Ts(e,r,t){try{return e.setItem(r,t),!0}catch{}}function un(e,r){try{e.removeItem(r)}catch{}}function Nr(e,r){return Ts(e,Ri,r.toString())}function Ur(e){return parseInt($r(e,Ri))||0}let kt=typeof window>"u"?{}:window;function Ii(e){const r=e+"Storage";try{if(kt&&kt[r]&&typeof kt[r].length=="number")return kt[r]}catch{}Ze[e]=!1}function Di(e,r){const t=Ii(e);if(!t)return;const s=$r(t,cn);if(s!==ln){if(s){const l=Ur(t);for(let c=0;c<l;c++)un(t,vt+c.toString())}Ts(t,cn,ln),Nr(t,0);return}const n=Math.floor(Date.now()/ki)-mc,i=l=>{const c=vt+l.toString(),d=$r(t,c);if(typeof d=="string"){try{const f=JSON.parse(d);if(typeof f=="object"&&typeof f.cached=="number"&&f.cached>n&&typeof f.provider=="string"&&typeof f.data=="object"&&typeof f.data.prefix=="string"&&r(f,l))return!0}catch{}un(t,c)}};let a=Ur(t);for(let l=a-1;l>=0;l--)i(l)||(l===a-1?(a--,Nr(t,a)):Ti[e].add(l))}function Li(){if(!Es){hc(!0);for(const e in Ze)Di(e,r=>{const t=r.data,s=r.provider,n=t.prefix,i=Le(s,n);if(!Cs(i,t).length)return!1;const a=t.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,a):a,!0})}}function Pi(e,r){switch(e){case"local":case"session":Ze[e]=r;break;case"all":for(const t in Ze)Ze[t]=r;break}}const Br=Object.create(null);function Fi(e,r){Br[e]=r}function zr(e){return Br[e]||Br[""]}function Rs(e){let r;if(typeof e.resources=="string")r=[e.resources];else if(r=e.resources,!(r instanceof Array)||!r.length)return null;return{resources:r,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 ir=Object.create(null),ft=["https://api.simplesvg.com","https://api.unisvg.com"],Vt=[];for(;ft.length>0;)ft.length===1||Math.random()>.5?Vt.push(ft.shift()):Vt.push(ft.pop());ir[""]=Rs({resources:["https://api.iconify.design"].concat(Vt)});function Oi(e,r){const t=Rs(r);return t===null?!1:(ir[e]=t,!0)}function or(e){return ir[e]}function gc(){return Object.keys(ir)}const xc=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Zt=xc();function yc(e){Zt=e}function vc(){return Zt}function bc(e,r){const t=or(e);if(!t)return 0;let s;if(!t.maxURL)s=0;else{let n=0;t.resources.forEach(a=>{n=Math.max(n,a.length)});const i=r+".json?icons=";s=t.maxURL-n-t.path.length-i.length}return s}function _c(e){return e===404}const wc=(e,r,t)=>{const s=[],n=bc(e,r),i="icons";let a={type:i,provider:e,prefix:r,icons:[]},l=0;return t.forEach((c,d)=>{l+=c.length+1,l>=n&&d>0&&(s.push(a),a={type:i,provider:e,prefix:r,icons:[]},l=c.length),a.icons.push(c)}),s.push(a),s};function jc(e){if(typeof e=="string"){const r=or(e);if(r)return r.path}return"/"}const Sc=(e,r,t)=>{if(!Zt){t("abort",424);return}let s=jc(r.provider);switch(r.type){case"icons":{const i=r.prefix,l=r.icons.join(","),c=new URLSearchParams({icons:l});s+=i+".json?"+c.toString();break}case"custom":{const i=r.uri;s+=i.slice(0,1)==="/"?i.slice(1):i;break}default:t("abort",400);return}let n=503;Zt(e+s).then(i=>{const a=i.status;if(a!==200){setTimeout(()=>{t(_c(a)?"abort":"next",a)});return}return n=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?t("abort",i):t("next",n)});return}setTimeout(()=>{t("success",i)})}).catch(()=>{t("next",n)})},Cc={prepare:wc,send:Sc};function Ac(e){const r={loaded:[],missing:[],pending:[]},t=Object.create(null);e.sort((n,i)=>n.provider!==i.provider?n.provider.localeCompare(i.provider):n.prefix!==i.prefix?n.prefix.localeCompare(i.prefix):n.name.localeCompare(i.name));let s={provider:"",prefix:"",name:""};return e.forEach(n=>{if(s.name===n.name&&s.prefix===n.prefix&&s.provider===n.provider)return;s=n;const i=n.provider,a=n.prefix,l=n.name,c=t[i]||(t[i]=Object.create(null)),d=c[a]||(c[a]=Le(i,a));let f;l in d.icons?f=r.loaded:a===""||d.missing.has(l)?f=r.missing:f=r.pending;const p={provider:i,prefix:a,name:l};f.push(p)}),r}function Vi(e,r){e.forEach(t=>{const s=t.loaderCallbacks;s&&(t.loaderCallbacks=s.filter(n=>n.id!==r))})}function Ec(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const r=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!r.length)return;let t=!1;const s=e.provider,n=e.prefix;r.forEach(i=>{const a=i.icons,l=a.pending.length;a.pending=a.pending.filter(c=>{if(c.prefix!==n)return!0;const d=c.name;if(e.icons[d])a.loaded.push({provider:s,prefix:n,name:d});else if(e.missing.has(d))a.missing.push({provider:s,prefix:n,name:d});else return t=!0,!0;return!1}),a.pending.length!==l&&(t||Vi([e],i.id),i.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),i.abort))})}))}let Tc=0;function Rc(e,r,t){const s=Tc++,n=Vi.bind(null,t,s);if(!r.pending.length)return n;const i={id:s,icons:r,callback:e,abort:n};return t.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(i)}),n}function kc(e,r=!0,t=!1){const s=[];return e.forEach(n=>{const i=typeof n=="string"?ct(n,r,t):n;i&&s.push(i)}),s}var Ic={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Dc(e,r,t,s){const n=e.resources.length,i=e.random?Math.floor(Math.random()*n):e.index;let a;if(e.random){let m=e.resources.slice(0);for(a=[];m.length>1;){const w=Math.floor(Math.random()*m.length);a.push(m[w]),m=m.slice(0,w).concat(m.slice(w+1))}a=a.concat(m)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const l=Date.now();let c="pending",d=0,f,p=null,g=[],j=[];typeof s=="function"&&j.push(s);function E(){p&&(clearTimeout(p),p=null)}function T(){c==="pending"&&(c="aborted"),E(),g.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),g=[]}function M(m,w){w&&(j=[]),typeof m=="function"&&j.push(m)}function y(){return{startTime:l,payload:r,status:c,queriesSent:d,queriesPending:g.length,subscribe:M,abort:T}}function b(){c="failed",j.forEach(m=>{m(void 0,f)})}function I(){g.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),g=[]}function B(m,w,S){const R=w!=="success";switch(g=g.filter(x=>x!==m),c){case"pending":break;case"failed":if(R||!e.dataAfterTimeout)return;break;default:return}if(w==="abort"){f=S,b();return}if(R){f=S,g.length||(a.length?_():b());return}if(E(),I(),!e.random){const x=e.resources.indexOf(m.resource);x!==-1&&x!==e.index&&(e.index=x)}c="completed",j.forEach(x=>{x(S)})}function _(){if(c!=="pending")return;E();const m=a.shift();if(m===void 0){if(g.length){p=setTimeout(()=>{E(),c==="pending"&&(I(),b())},e.timeout);return}b();return}const w={status:"pending",resource:m,callback:(S,R)=>{B(w,S,R)}};g.push(w),d++,p=setTimeout(_,e.rotate),t(m,r,w.callback)}return setTimeout(_),y}function Mi(e){const r={...Ic,...e};let t=[];function s(){t=t.filter(l=>l().status==="pending")}function n(l,c,d){const f=Dc(r,l,c,(p,g)=>{s(),d&&d(p,g)});return t.push(f),f}function i(l){return t.find(c=>l(c))||null}return{query:n,find:i,setIndex:l=>{r.index=l},getIndex:()=>r.index,cleanup:s}}function dn(){}const Tr=Object.create(null);function Lc(e){if(!Tr[e]){const r=or(e);if(!r)return;const t=Mi(r),s={config:r,redundancy:t};Tr[e]=s}return Tr[e]}function $i(e,r,t){let s,n;if(typeof e=="string"){const i=zr(e);if(!i)return t(void 0,424),dn;n=i.send;const a=Lc(e);a&&(s=a.redundancy)}else{const i=Rs(e);if(i){s=Mi(i);const a=e.resources?e.resources[0]:"",l=zr(a);l&&(n=l.send)}}return!s||!n?(t(void 0,424),dn):s.query(r,n,t)().abort}function Pc(e,r){const t=e.lastModifiedCached;if(t&&t>=r)return t===r;if(e.lastModifiedCached=r,t)for(const s in Ze)Di(s,n=>{const i=n.data;return n.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===r});return!0}function Fc(e,r){Es||Li();function t(s){let n;if(!Ze[s]||!(n=Ii(s)))return;const i=Ti[s];let a;if(i.size)i.delete(a=Array.from(i).shift());else if(a=Ur(n),!Nr(n,a+1))return;const l={cached:Math.floor(Date.now()/ki),provider:e.provider,data:r};return Ts(n,vt+a.toString(),JSON.stringify(l))}r.lastModified&&!Pc(e,r.lastModified)||Object.keys(r.icons).length&&(r.not_found&&(r=Object.assign({},r),delete r.not_found),t("local")||t("session"))}function fn(){}function Oc(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Ec(e)}))}function Vc(e,r){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(r).sort():e.iconsToLoad=r,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:s}=e,n=e.iconsToLoad;delete e.iconsToLoad;let i;if(!n||!(i=zr(t)))return;i.prepare(t,s,n).forEach(l=>{$i(t,l,c=>{if(typeof c!="object")l.icons.forEach(d=>{e.missing.add(d)});else try{const d=Cs(e,c);if(!d.length)return;const f=e.pendingIcons;f&&d.forEach(p=>{f.delete(p)}),Fc(e,c)}catch(d){console.error(d)}Oc(e)})})}))}const Mc=e=>{const t=Le(e.provider,e.prefix).pendingIcons;return!!(t&&t.has(e.name))},ks=(e,r)=>{const t=kc(e,!0,nc()),s=Ac(t);if(!s.pending.length){let c=!0;return r&&setTimeout(()=>{c&&r(s.loaded,s.missing,s.pending,fn)}),()=>{c=!1}}const n=Object.create(null),i=[];let a,l;return s.pending.forEach(c=>{const{provider:d,prefix:f}=c;if(f===l&&d===a)return;a=d,l=f,i.push(Le(d,f));const p=n[d]||(n[d]=Object.create(null));p[f]||(p[f]=[])}),s.pending.forEach(c=>{const{provider:d,prefix:f,name:p}=c,g=Le(d,f),j=g.pendingIcons||(g.pendingIcons=new Set);j.has(p)||(j.add(p),n[d][f].push(p))}),i.forEach(c=>{const{provider:d,prefix:f}=c;n[d][f].length&&Vc(c,n[d][f])}),r?Rc(r,s,i):fn},$c=e=>new Promise((r,t)=>{const s=typeof e=="string"?ct(e,!0):e;if(!s){t(e);return}ks([s||e],n=>{if(n.length&&s){const i=jt(s);if(i){r({...wt,...i});return}}t(e)})});function Ni(e,r){const t={...e};for(const s in r){const n=r[s],i=typeof n;s in Ci?(n===null||n&&(i==="string"||i==="number"))&&(t[s]=n):i===typeof t[s]&&(t[s]=s==="rotate"?n%4:n)}return t}const ar={...Ai,inline:!1},Rr="iconify",Hr="iconify-inline",qe="iconifyData"+Date.now();let Xe=[];function St(e){for(let r=0;r<Xe.length;r++){const t=Xe[r];if((typeof t.node=="function"?t.node():t.node)===e)return t}}function Ui(e,r=!1){let t=St(e);return t?(t.temporary&&(t.temporary=r),t):(t={node:e,temporary:r},Xe.push(t),t)}function Nc(){if(document.documentElement)return Ui(document.documentElement);Xe.push({node:()=>document.documentElement})}function Uc(e){Xe=Xe.filter(r=>e!==r&&e!==(typeof r.node=="function"?r.node():r.node))}function Ct(){return Xe}function Bc(e){const r=document;r.readyState&&r.readyState!=="loading"?e():r.addEventListener("DOMContentLoaded",e)}let mt=null;const zc={childList:!0,subtree:!0,attributes:!0};function Bi(e){if(!e.observer)return;const r=e.observer;r.pendingScan||(r.pendingScan=setTimeout(()=>{delete r.pendingScan,mt&&mt(e)}))}function Hc(e,r){if(!e.observer)return;const t=e.observer;if(!t.pendingScan)for(let s=0;s<r.length;s++){const n=r[s];if(n.addedNodes&&n.addedNodes.length>0||n.type==="attributes"&&n.target[qe]!==void 0){t.paused||Bi(e);return}}}function zi(e,r){e.observer.instance.observe(r,zc)}function Jt(e){let r=e.observer;if(r&&r.instance)return;const t=typeof e.node=="function"?e.node():e.node;!t||!window||(r||(r={paused:0},e.observer=r),r.instance=new window.MutationObserver(Hc.bind(null,e)),zi(e,t),r.paused||Bi(e))}function pn(){Ct().forEach(Jt)}function Hi(e){if(!e.observer)return;const r=e.observer;r.pendingScan&&(clearTimeout(r.pendingScan),delete r.pendingScan),r.instance&&(r.instance.disconnect(),delete r.instance)}function qc(e){const r=mt!==null;if(mt!==e&&(mt=e,r&&Ct().forEach(Hi)),r){pn();return}Bc(pn)}function qr(e){(e?[e]:Ct()).forEach(r=>{if(!r.observer){r.observer={paused:1};return}const t=r.observer;if(t.paused++,t.paused>1||!t.instance)return;t.instance.disconnect()})}function Wc(e){if(e){const r=St(e);r&&qr(r)}else qr()}function Wr(e){(e?[e]:Ct()).forEach(r=>{if(!r.observer){Jt(r);return}const t=r.observer;if(t.paused&&(t.paused--,!t.paused)){const s=typeof r.node=="function"?r.node():r.node;if(s)t.instance?zi(r,s):Jt(r);else return}})}function Kc(e){if(e){const r=St(e);r&&Wr(r)}else Wr()}function qi(e,r=!1){const t=Ui(e,r);return Jt(t),t}function Wi(e){const r=St(e);r&&(Hi(r),Uc(e))}function Gc(e,r){if(e.name!==r.name||e.mode!==r.mode)return!0;const t=e.customisations,s=r.customisations;for(const n in ar)if(t[n]!==s[n])return!0;return!1}function Qc(e,r=0){const t=e.replace(/^-?[0-9.]*/,"");function s(n){for(;n<0;)n+=4;return n%4}if(t===""){const n=parseInt(e);return isNaN(n)?0:s(n)}else if(t!==e){let n=0;switch(t){case"%":n=25;break;case"deg":n=90}if(n){let i=parseFloat(e.slice(0,e.length-t.length));return isNaN(i)?0:(i=i/n,i%1===0?s(i):0)}}return r}const Zc=/[\s,]+/;function Jc(e,r){r.split(Zc).forEach(t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const Yc=["width","height"],Xc=["inline","hFlip","vFlip"];function eu(e,r){return e===r||e==="true"?!0:e===""||e==="false"?!1:null}function tu(e){const r=e.getAttribute("data-icon"),t=typeof r=="string"&&ct(r,!0);if(!t)return null;const s={...ar,inline:e.classList&&e.classList.contains(Hr)};Yc.forEach(l=>{const c=e.getAttribute("data-"+l);c&&(s[l]=c)});const n=e.getAttribute("data-rotate");typeof n=="string"&&(s.rotate=Qc(n));const i=e.getAttribute("data-flip");typeof i=="string"&&Jc(s,i),Xc.forEach(l=>{const c="data-"+l,d=eu(e.getAttribute(c),c);typeof d=="boolean"&&(s[l]=d)});const a=e.getAttribute("data-mode");return{name:r,icon:t,customisations:s,mode:a}}const ru="svg."+Rr+", i."+Rr+", span."+Rr+", i."+Hr+", span."+Hr;function su(e){const r=[];return e.querySelectorAll(ru).forEach(t=>{const s=t[qe]||t.tagName.toLowerCase()!=="svg"?tu(t):null;s&&r.push({node:t,props:s})}),r}function Ki(e,r){let t=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in r)t+=" "+s+'="'+r[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+t+">"+e+"</svg>"}let gt;function nu(){try{gt=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{gt=null}}function iu(e){return gt===void 0&&nu(),gt?gt.createHTML(e):e}function Gi(e){const r=new Set(["iconify"]);return["provider","prefix"].forEach(t=>{e[t]&&r.add("iconify--"+e[t])}),r}function Qi(e,r,t,s){const n=e.classList;if(s){const a=s.classList;Array.from(a).forEach(l=>{n.add(l)})}const i=[];return r.forEach(a=>{n.contains(a)?t.has(a)&&i.push(a):(n.add(a),i.push(a))}),t.forEach(a=>{r.has(a)||n.remove(a)}),i}function Zi(e,r,t){const s=e.style;(t||[]).forEach(i=>{s.removeProperty(i)});const n=[];for(const i in r)s.getPropertyValue(i)||(n.push(i),s.setProperty(i,r[i]));return n}function Ji(e,r,t){let s;try{s=document.createElement("span")}catch{return e}const n=r.customisations,i=nr(t,n),a=e[qe],l=Ki(Ei(i.body),{"aria-hidden":"true",role:"img",...i.attributes});s.innerHTML=iu(l);const c=s.childNodes[0],d=e.attributes;for(let E=0;E<d.length;E++){const T=d.item(E),M=T.name;M!=="class"&&!c.hasAttribute(M)&&c.setAttribute(M,T.value)}const f=Gi(r.icon),p=Qi(c,f,new Set(a&&a.addedClasses),e),g=Zi(c,n.inline?{"vertical-align":"-0.125em"}:{},a&&a.addedStyles),j={...r,status:"loaded",addedClasses:p,addedStyles:g};return c[qe]=j,e.parentNode&&e.parentNode.replaceChild(c,e),c}function ou(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function au(e){return"data:image/svg+xml,"+ou(e)}function lu(e){return'url("'+au(e)+'")'}const cu={display:"inline-block"},Kr={"background-color":"currentColor"},Yi={"background-color":"transparent"},hn={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},mn={"-webkit-mask":Kr,mask:Kr,background:Yi};for(const e in mn){const r=mn[e];for(const t in hn)r[e+"-"+t]=hn[t]}function gn(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function uu(e,r,t,s){const n=r.customisations,i=nr(t,n),a=i.attributes,l=e[qe],c=Ki(i.body,{...a,width:t.width+"",height:t.height+""}),d=Gi(r.icon),f=Qi(e,d,new Set(l&&l.addedClasses)),g={"--svg":lu(c),width:gn(a.width),height:gn(a.height),...cu,...s?Kr:Yi};n.inline&&(g["vertical-align"]="-0.125em");const j=Zi(e,g,l&&l.addedStyles),E={...r,status:"loaded",addedClasses:f,addedStyles:j};return e[qe]=E,e}let It=!1;function du(){It||(It=!0,setTimeout(()=>{It&&(It=!1,ot())}))}function ot(e,r=!1){const t=Object.create(null);function s(n,i){const{provider:a,prefix:l,name:c}=n,d=Le(a,l),f=d.icons[c];if(f)return{status:"loaded",icon:f};if(d.missing.has(c))return{status:"missing"};if(i&&!Mc(n)){const p=t[a]||(t[a]=Object.create(null));(p[l]||(p[l]=new Set)).add(c)}return{status:"loading"}}(e?[e]:Ct()).forEach(n=>{const i=typeof n.node=="function"?n.node():n.node;if(!i||!i.querySelectorAll)return;let a=!1,l=!1;function c(d,f,p){if(l||(l=!0,qr(n)),d.tagName.toUpperCase()!=="SVG"){const g=f.mode,j=g==="mask"||(g==="bg"?!1:g==="style"?p.body.indexOf("currentColor")!==-1:null);if(typeof j=="boolean"){uu(d,f,{...wt,...p},j);return}}Ji(d,f,p)}su(i).forEach(({node:d,props:f})=>{const p=d[qe];if(!p){const{status:j,icon:E}=s(f.icon,!0);if(E){c(d,f,E);return}a=a||j==="loading",d[qe]={...f,status:j};return}let g;if(Gc(p,f)){if(g=s(f.icon,p.name!==f.name),!g.icon){a=a||g.status==="loading",Object.assign(p,{...f,status:g.status});return}}else{if(p.status!=="loading")return;if(g=s(f.icon,!1),!g.icon){p.status=g.status;return}}c(d,f,g.icon)}),n.temporary&&!a?Wi(i):r&&a?qi(i,!0):l&&n.observer&&Wr(n)});for(const n in t){const i=t[n];for(const a in i){const l=i[a];ks(Array.from(l).map(c=>({provider:n,prefix:a,name:c})),du)}}}function fu(e){const r=St(e);r?ot(r):ot({node:e,temporary:!0},!0)}function Xi(e,r,t=!1){const s=jt(e);if(!s)return null;const n=ct(e),i=Ni(ar,r||{}),a=Ji(document.createElement("span"),{name:e,icon:n,customisations:i},s);return t?a.outerHTML:a}function pu(){return"3.1.1"}function hu(e,r){return Xi(e,r,!1)}function mu(e,r){return Xi(e,r,!0)}function gu(e,r){const t=jt(e);if(!t)return null;const s=Ni(ar,r||{});return nr(t,s)}function xu(e){e?fu(e):ot()}if(typeof document<"u"&&typeof window<"u"){Nc();const e=window;if(e.IconifyPreload!==void 0){const r=e.IconifyPreload,t="Invalid IconifyPreload syntax.";typeof r=="object"&&r!==null&&(r instanceof Array?r:[r]).forEach(s=>{try{(typeof s!="object"||s===null||s instanceof Array||typeof s.icons!="object"||typeof s.prefix!="string"||!Si(s))&&console.error(t)}catch{console.error(t)}})}setTimeout(()=>{qc(ot),ot()})}function yu(e,r){Pi(e,r!==!1)}function vu(e){Pi(e,!0)}Fi("",Cc);if(typeof document<"u"&&typeof window<"u"){Li();const e=window;if(e.IconifyProviders!==void 0){const r=e.IconifyProviders;if(typeof r=="object"&&r!==null)for(const t in r){const s="IconifyProviders["+t+"] is invalid.";try{const n=r[t];if(typeof n!="object"||!n||n.resources===void 0)continue;Oi(t,n)||console.error(s)}catch{console.error(s)}}}}const bu={getAPIConfig:or,setAPIModule:Fi,sendAPIQuery:$i,setFetch:yc,getFetch:vc,listAPIProviders:gc},_u={_api:bu,addAPIProvider:Oi,loadIcons:ks,loadIcon:$c,iconExists:oc,getIcon:ac,listIcons:sc,addIcon:ic,addCollection:Si,replaceIDs:Ei,calculateSize:Mr,buildIcon:nr,getVersion:pu,renderSVG:hu,renderHTML:mu,renderIcon:gu,scan:xu,observe:qi,stopObserving:Wi,pauseObserver:Wc,resumeObserver:Kc,enableCache:yu,disableCache:vu};try{self.Iconify===void 0&&(self.Iconify=_u)}catch{}var Is={},wu=Se;Object.defineProperty(Is,"__esModule",{value:!0});var eo=Is.default=void 0,ju=wu(Ce()),Su=o;eo=Is.default=(0,ju.default)((0,Su.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 Ds({infos:e}){const{t:r}=ge(),t=new URL("https://community.arcblock.io/discussions/add");e.forEach(n=>{t.searchParams.set(n.label,n.value)});const s=e.map(n=>`* ${n.label}: ${n.value}`).join(`
|
|
216
|
+
`);return t.searchParams.set("report","server"),t.searchParams.set("context",`[Enter feedback here]
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
<!--
|
|
221
|
+
[Server Info]
|
|
222
|
+
${s}
|
|
223
|
+
* Page: ${window.location.href}
|
|
224
|
+
-->
|
|
225
|
+
`),se(U,{sx:{mx:{xs:0,md:2}},children:se(Zr,{sx:{color:"text.primary"},target:"_blank",href:t.href,rel:"noreferrer",style:{textDecoration:"underline"},children:r("common.reportIssue")})})}Ds.propTypes={infos:P.arrayOf(P.shape({label:P.string,value:P.string}))};Ds.defaultProps={infos:[]};var Ls={},Cu=Se;Object.defineProperty(Ls,"__esModule",{value:!0});var Gr=Ls.default=void 0,Au=Cu(Ce()),xn=o;Gr=Ls.default=(0,Au.default)([(0,xn.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,xn.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function ze({children:e}){return De(t=>t.breakpoints.down("md"))?o.jsx($t,{enterDelay:500,leaveDelay:2e3,title:typeof e=="string"?e:"",children:o.jsx(U,{sx:{display:"flex",alignItems:"center",gap:1},children:o.jsx(Gr,{fontSize:"small"})})}):o.jsxs(U,{sx:{display:"flex",alignItems:"center",gap:1},children:[o.jsx(Gr,{fontSize:"small"}),e]})}ze.propTypes={children:P.node.isRequired};const Eu="https://launcher.arcblock.io/",Tu=30*24*60*60*1e3;function Ps({launcherUrl:e,chainHost:r,nftId:t,launcherSessionId:s,...n}){var _,m,w,S,R,x;const{t:i,locale:a}=ge(),l=at(),[c,d]=Un({safeIframeRef:null,popoverAnchorEl:null}),f=F.useRef(null),p=De(D=>D.breakpoints.down("md")),{sx:g={},...j}=n,E=p?"mobile":"desktop",T=$n(async()=>{const[D,V]=await Promise.all([l.api.getLauncherSession({input:{launcherSessionId:s,launcherUrl:e}}),Ln({launcherUrl:e||Eu,nftDid:t,launcherSessionId:s,locale:a})]);if(D!=null&&D.error)throw new Error(D.error);return{launcherSession:D.launcherSession,subscriptionURL:V}},[a]);if(T.loading)return o.jsx(Qe,{label:o.jsxs(ze,{children:[!p&&i("expiration.desktop.loading"),o.jsx(He,{size:16})]}),variant:"success",sx:{cursor:"pointer",...g},...j});if(T.error)return console.error(T.error),o.jsx(Qe,{label:o.jsx(ze,{children:i(`expiration.${E}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...g},...j,onClick:()=>T.retry()});const M=D=>{d({popoverAnchorEl:D.currentTarget})},y=()=>{d({popoverAnchorEl:null})},b=(_=T.value)==null?void 0:_.launcherSession;let I="success";[ie.LAUNCH_SESSION_STATUS.overdue,ie.LAUNCH_SESSION_STATUS.canceled,ie.LAUNCH_SESSION_STATUS.terminated].includes((w=(m=T.value)==null?void 0:m.launcherSession)==null?void 0:w.status)&&(I="error");let B=null;if(b.expirationDate&&!b.subscription){const D=st(b.expirationDate).diff(st(),"ms");B=i(`expiration.${E}.tips.${I}`,{validity:Vn(D,{locale:Pn(a),compact:!0,verbose:!0})}),D>0&&D<=Tu&&(I="warning")}return o.jsxs(o.Fragment,{children:[o.jsx(Qe,{label:o.jsx(ze,{children:B||((R=(S=b==null?void 0:b.subscription)==null?void 0:S.product)==null?void 0:R.name)||i("common.subscription")}),color:I,variant:I!=="success"?"contained":"outlined",sx:{cursor:"pointer",...g},...j,onClick:M}),o.jsx(An,{id:"popover-info",open:!!c.popoverAnchorEl,anchorEl:c.popoverAnchorEl,onClose:y,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:o.jsx(U,{sx:{width:{xs:"360px",md:"450px"}},children:o.jsx("iframe",{ref:f,title:i("common.subscription"),width:"100%",height:"600px",style:{border:0},src:(x=T.value)==null?void 0:x.subscriptionURL})})})]})}Ps.propTypes={chainHost:P.string.isRequired,nftId:P.string,launcherSessionId:P.string,sx:P.object,retention:P.number,launcherUrl:P.string.isRequired};Ps.defaultProps={sx:{},retention:0,nftId:"",launcherSessionId:""};const Ru=30*24*60*60*1e3,ku="https://launcher.arcblock.io/";function Fs({launcherUrl:e,chainHost:r,nftId:t,launcherSessionId:s,...n}){var m,w,S,R,x,D,V;const{t:i,locale:a}=ge(),[l,c]=Un({safeIframeRef:null,popoverAnchorEl:null}),d=F.useRef(null),f=De($=>$.breakpoints.down("md")),p=at(),{sx:g={},...j}=n,E=f?"mobile":"desktop",T=$n(async()=>{const[$,H]=await Promise.all([p.api.getLauncherSession({input:{launcherSessionId:s||t,launcherUrl:e}}),Ln({launcherUrl:e||ku,nftDid:t,launcherSessionId:s,locale:a})]);if($!=null&&$.error)throw new Error($.error);return{launcherSession:$.launcherSession,subscriptionURL:H}},[a]);if(T.loading)return o.jsx(Qe,{label:o.jsxs(ze,{children:[!f&&i("expiration.desktop.loading"),o.jsx(He,{size:16})]}),variant:"success",sx:{cursor:"pointer",...g},...j});if(T.error)return console.error(T.error),o.jsx(Qe,{label:o.jsx(ze,{children:i(`expiration.${E}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...g},...j,onClick:()=>T.retry()});const M=(w=(m=T.value)==null?void 0:m.launcherSession)==null?void 0:w.expirationDate,y=st(M).isBefore(st()),b=st(M).diff(st(),"ms");let I="success";b<=Ru&&(I="warning"),y&&(I="error");const B=$=>{c({popoverAnchorEl:$.currentTarget})},_=()=>{c({popoverAnchorEl:null})};return o.jsxs(o.Fragment,{children:[((R=(S=T.value)==null?void 0:S.launcherSession)==null?void 0:R.subscription)&&o.jsx(Qe,{label:o.jsx(ze,{children:i("expiration.desktop.nextInvoice",{date:Qo(M,a)})}),color:"success",variant:"outlined",sx:{cursor:"pointer",...g},...j,onClick:B}),!((D=(x=T.value)==null?void 0:x.launcherSession)!=null&&D.subscription)&&o.jsx(Qe,{label:o.jsx(ze,{children:i(`expiration.${E}.tips.${I}`,{validity:Vn(b,{locale:Pn(a),compact:!0,verbose:!0})})}),color:I,variant:I!=="success"?"contained":"outlined",sx:{cursor:"pointer",...g},...j,onClick:B}),o.jsx(An,{id:"popover-info",open:!!l.popoverAnchorEl,anchorEl:l.popoverAnchorEl,onClose:_,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:o.jsx(U,{sx:{width:{xs:"360px",md:"450px"}},children:o.jsx("iframe",{ref:d,title:i("common.subscription"),width:"100%",height:"600px",style:{border:0},src:(V=T.value)==null?void 0:V.subscriptionURL})})})]})}Fs.propTypes={chainHost:P.string.isRequired,nftId:P.string,launcherSessionId:P.string,sx:P.object,retention:P.number,launcherUrl:P.string.isRequired};Fs.defaultProps={sx:{},retention:0,nftId:"",launcherSessionId:""};var Os={},Iu=Se;Object.defineProperty(Os,"__esModule",{value:!0});var to=Os.default=void 0,Du=Iu(Ce()),Lu=o;to=Os.default=(0,Du.default)((0,Lu.jsx)("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"Fullscreen");var Vs={},Pu=Se;Object.defineProperty(Vs,"__esModule",{value:!0});var ro=Vs.default=void 0,Fu=Pu(Ce()),Ou=o;ro=Vs.default=(0,Fu.default)((0,Ou.jsx)("path",{d:"M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"}),"FullscreenExit");function Vu(){const{inFullPage:e,toggleFullPage:r}=go();return se(Yt,{onClick:r,children:e?se(ro,{sx:{transform:"scale(1.3)"}}):se(to,{sx:{transform:"scale(1.3)"}})})}function Ms({children:e}){var I,B,_;const{t:r}=ge(),{loading:t,error:s,actions:{refreshBlocklet:n},env:i,blocklet:a}=lt(),{info:l}=Zo(),c=Lo(),d=De(m=>m.breakpoints.down("md")),[f,p]=F.useState(null),{appId:g,version:j}=i,E=[{label:"App ID",value:g},{label:"App Version",value:j},{label:"App Bundle Name",value:(I=a==null?void 0:a.meta)==null?void 0:I.bundleName},{label:"Server Id",value:l.did},{label:"Server Version",value:l.version}],T=m=>{var S,R,x,D;const w=Array.isArray(m)?m:[m];if(d||w.unshift(se(Vu,{})),a){const V={cursor:"pointer",marginRight:{xs:"8px",md:"48px"}};Jo(a)?w.unshift(se(Ps,{chainHost:(S=a==null?void 0:a.controller)==null?void 0:S.chainHost,nftId:(R=a==null?void 0:a.controller)==null?void 0:R.nftId,launcherSessionId:(x=a==null?void 0:a.controller)==null?void 0:x.launcherSessionId,launcherUrl:(D=a==null?void 0:a.controller)==null?void 0:D.launcherUrl,sx:V})):l.ownerNft&&l.launcher&&w.unshift(se(Fs,{chainHost:l.launcher.chainHost,launcherUrl:l.launcher.url,nftId:l.ownerNft.did,launcherSessionId:l.ownerNft.launcherSessionId,sx:V}))}return w},M=(B=((a==null?void 0:a.environments)||[]).find(m=>m.key===Ve.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE))==null?void 0:B.value,y=(_=((a==null?void 0:a.environments)||[]).find(m=>m.key===Ve.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_RECT))==null?void 0:_.value;return F.useEffect(()=>{if(d)p(null);else{const{appLogo:m,appLogoRect:w}=window.blocklet??{};(w||m)&&p(`${w||m}&v=${Date.now()}`)}},[M,y,d]),Ar(Mu,{legacy:!1,fullWidth:!0,headerAddons:T,headerProps:{logo:f?se("img",{src:f,alt:"logo"}):null},footerProps:{addon:se(Ds,{infos:E})},children:[!a&&t&&se(Ut,{relative:"parent",children:se(He,{})}),!a&&s&&Ar(Ut,{relative:"parent",children:[Ar(U,{display:"flex",alignItems:"center",children:[se(eo,{color:"error",sx:{marginRight:1}}),es(s)]}),se(Je,{onClick:()=>n(),children:se("span",{style:{textDecoration:"underline"},children:r("common.retry")})})]}),!!a&&se(U,{flex:1,padding:d?2:3,display:"flex",flexDirection:"column",children:se(Bo,{FallbackComponent:mo,resetKeys:[c.pathname],children:e})})]})}Ms.propTypes={children:P.any};Ms.defaultProps={children:null};const Mu=me(ho)`
|
|
226
|
+
div.dashboard-content {
|
|
227
|
+
padding: 0;
|
|
228
|
+
}
|
|
229
|
+
.header-addons .locales {
|
|
230
|
+
max-height: 400px;
|
|
231
|
+
overflow-y: auto;
|
|
232
|
+
}
|
|
233
|
+
`;function $u(){const{t:e,locale:r}=ge(),{blocklet:t,launcherSession:s}=lt(),[n,i]=ga({subscriptionURL:"#"});if(F.useEffect(()=>{var c,d;Hs(t,s)&&Yo({launcherSessionId:(c=t==null?void 0:t.controller)==null?void 0:c.launcherSessionId,launcherUrl:(d=t==null?void 0:t.controller)==null?void 0:d.launcherUrl,locale:r}).then(f=>{i({subscriptionURL:f})}).catch(f=>{console.error("get subscription url error:",f)})},[t,s]),!t||!s||!Xo(t)||s.status===ie.LAUNCH_SESSION_STATUS.installed)return"";let a=null,l="";return Hs(t,s)?(a=o.jsx(Zr,{href:n.subscriptionURL,children:e("blocklet.manageSubscription")}),l=e("blocklet.suspendedCausedByExpired",{deadline:qs(s==null?void 0:s.reservedUntil,r)})):ea(t,s)&&(a=o.jsx(En,{to:tr(ie.WELLKNOWN_BLOCKLET_ADMIN_PATH,"/did-spaces"),children:e("common.backup")}),l=e("blocklet.suspendedCausedByTerminated",{canceledAt:qs(s==null?void 0:s.terminatedAt,r),deadline:ta(s==null?void 0:s.terminatedAt,r)})),o.jsxs(U,{component:zo,type:"error",sx:{"&> .alert-content":{display:"block"}},children:[l,o.jsx(oe,{component:"span",sx:{marginLeft:"4px"},children:a})]})}const so=F.createContext({});function $d(){return F.useContext(so)}const{Provider:Nu,Consumer:Nd}=so,{did:Ae,appId:Uu}=window.env;function Bu({children:e}){var m,w;const{t:r,locale:t}=ge(),{blocklet:s}=lt(),[n,i]=F.useState([]),[a,l]=F.useState([]),[c,d]=F.useState([]),f=ve.getDisplayName(s),p=((m=((s==null?void 0:s.environments)||[]).find(S=>S.key===Ve.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_PASSPORT_COLOR))==null?void 0:m.value)||"auto",g=(s==null?void 0:s.trustedPassports)||[],j=(s==null?void 0:s.trustedFactories)||[],E=(s==null?void 0:s.enablePassportIssuance)!==!1,T=async()=>{try{const S=await Et.doBatchQuery({getRoles:{input:{teamDid:Ae}},getPermissions:{input:{teamDid:Ae}},getInvitations:{input:{teamDid:Ae}}}),R=(S.getRoles.roles||[]).filter(x=>!ie.RBAC_CONFIG.roles.some(D=>D.name===x.name&&(!D.passport||D.ci))).map(x=>(x.hasDescription=!!x.description,x.hasDescription||(x.description=r("team.passport.description",{teamName:f,title:x.title})),x));l(la(R,[x=>ra(x.name)],["desc"])),d(S.getPermissions.permissions||[]),i(S.getInvitations.invitations||[])}catch(S){ne.error(S.message)}},M=({did:S}={})=>{const R={teamDid:Ae,user:{did:S}};return Et.getUser({input:R})},y=({query:S,paging:R}={})=>{const x={teamDid:Ae};return R&&(x.paging=R),S&&(x.query=S),x.sort={lastLoginAt:-1},Et.getUsers({input:x})},b=()=>Et.getUsersCountPerRole({input:{teamDid:Ae}}),I=()=>T();F.useEffect(()=>{var S;(S=s==null?void 0:s.meta)!=null&&S.did&&T()},[(w=s==null?void 0:s.meta)==null?void 0:w.did]),F.useEffect(()=>{l(S=>S.map(R=>(R.hasDescription||(R.description=r("team.passport.description",{teamName:f,title:R.title})),{...R})))},[r,t]);const B=S=>{S.teamDid===Ae&&T()};Dt(Ve.TeamEvents.userAdded,B,[Ae]),Dt(Ve.TeamEvents.userRemoved,B,[Ae]),Dt(Ve.TeamEvents.userUpdated,B,[Ae]);const _={teamDid:Ae,teamIssuerDid:Uu,teamName:f,invitations:n,roles:a,permissions:c,trustedPassports:g,trustedFactories:j,isNodeTeam:!1,enablePassportIssuance:E,refresh:I,passportColor:p,endpoint:window.location.origin,blocklet:s,api:{getUser:M,getUsers:y,getUsersCountPerRole:b}};return o.jsx(Nu,{value:_,children:e})}const zu=F.lazy(()=>Z(()=>import("./log-DFaz-U9x.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]))),Hu=F.lazy(()=>Z(()=>import("./index-C0hr4pkt.js"),__vite__mapDeps([14,2,1,5,4,6,7,8,10,15,9,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,3,34,35,36,37,38,39,40]))),qu=F.lazy(()=>Z(()=>import("./index-DbpVrp8z.js"),__vite__mapDeps([41,4,2,5,1,6,7,8,38,9,10,42,27,23,31,32,3,34,35,36,18,37,24,39,40]))),Wu=F.lazy(()=>Z(()=>import("./index-BjN8LAYh.js"),__vite__mapDeps([43,2,1,9,10,4,5,6,7,8,44,27,23,18,16,45,12,33,46,11,19,47,39,48,49,50,51,21,26,52,53,54,55,56,57,35,58,59,60,61]))),Ku=F.lazy(()=>Z(()=>import("./overview-B3A_5sHO.js"),__vite__mapDeps([62,1,2,4,5,6,7,8,10,38,63,36,9,25,37,24,16,64,65,66,50,3,27,23,34,35,18,39,40]))),Gu=F.lazy(()=>Z(()=>import("./domains-BNDFk-7R.js"),__vite__mapDeps([67,2,4,5,1,6,7,8,9,10,68,42,17,18,37,24,27,23,31,32,57,19,33,69,39,38,25,70]))),Qu=F.lazy(()=>Z(()=>import("./index-CFkRKsyT.js"),__vite__mapDeps([71,2,6,5,1,4,7,8,9,10,16,72,28,29,17,18,73,74,75,27,23,46,39,76,3,34,35,36,37,24,38,40]))),Zu=F.lazy(()=>Z(()=>import("./appearance-BUsj4DWC.js"),__vite__mapDeps([77,5,2,4,1,6,7,8,10,9]))),Ju=F.lazy(()=>Z(()=>import("./audit-logs-rk_iUYcM.js"),__vite__mapDeps([78,4,2,5,1,6,7,8,28,29,3,9,10,59,60,38,79,36,33,61,27,23,34,35,18,37,24,39,40]))),Yu=F.lazy(()=>Z(()=>import("./index-DUQK_NaI.js"),__vite__mapDeps([80,2,1,5,4,6,7,8,9,10,33,25,81,49,12,36,79,38,30,70,82,83,84,85,28,29,16,86,37,24,87,88,89,51,90,23,21,22,3,27,34,35,18,39,40]))),Xu=F.lazy(()=>Z(()=>import("./config-navigation-DrgPbe5I.js"),__vite__mapDeps([91,2,4,5,1,6,7,8,65,74,10,92,9,93,94,58,50,36,52,53,87,23,3,27,34,35,18,37,24,38,39,40]))),ed=F.lazy(()=>Z(()=>import("./index-D2EAXstd.js"),__vite__mapDeps([95,1,2,6,5,10,4,7,8,9,96,50,97,98,66,26,23,25,99,32,35,100,46,3,27,34,36,18,37,24,38,39,40]))),td=F.lazy(()=>Z(()=>import("./index-CFJtmMCn.js"),__vite__mapDeps([101,4,2,5,1,6,7,8,9,10,100,63,25,29,96,3,27,23,34,35,36,18,37,24,38,39,40]))),rd=F.lazy(()=>Z(()=>import("./security-DEmFjZiu.js"),__vite__mapDeps([102,4,2,5,1,6,7,8,9,10,94,103,96,3,27,23,34,35,36,18,37,24,38,39,40]))),sd=F.lazy(()=>Z(()=>import("./branding-BBbE2Klb.js"),__vite__mapDeps([104,2,1,4,5,6,7,8,10,56,105,48,75,58,9,17,18,36,3,27,23,34,35,37,24,38,39,40]))),nd=F.lazy(()=>Z(()=>import("./advanced-D4wfoh0v.js"),__vite__mapDeps([106,2,1,9,10,4,5,6,7,8,17,18,27,23,39,19,25,16,64,65,3,34,35,36,37,24,38,40]))),id=F.lazy(()=>Z(()=>import("./traffic-B94bYvtf.js").then(e=>e.t),__vite__mapDeps([86,2,9,1,10,4,5,6,7,8,37,24,87,88,89,51,90,23,21,22]))),od=F.lazy(()=>Z(()=>import("./runtime-D_bXZ0w0.js"),__vite__mapDeps([107,2,1,36,5,10,4,6,7,8,9,99,12,3,27,23,34,35,18,37,24,38,39,40]))),ad=F.lazy(()=>Z(()=>import("./index-CcjD0qiY.js"),__vite__mapDeps([108,2,4,5,1,6,7,8,10,72,16,28,29,9,20,21,22,27,23,19,57,33,109,17,18,82,83,84,85,12,3,34,35,36,37,24,38,39,40]))),ld=F.lazy(()=>Z(()=>import("./component-fD-EGTLm.js"),__vite__mapDeps([110,1,2,5,4,6,7,8,10,9,111,100,17,18,109,93,90,53,19,51,89,58,23,112,54,55,56,26,57,33,27,35,16,113,114,98,66,50,105,48,115,73,74,59,60,92,25,3,69,96,116,97,117,76,38,87,12,34,31,32,36,37,24,39,40]))),cd=F.lazy(()=>Z(()=>import("./index-AhbLOD9c.js"),__vite__mapDeps([118,1,2,9,10,4,5,6,7,8]))),ud=tr(ie.WELLKNOWN_SERVICE_PATH_PREFIX,"user","notifications"),dd=e=>{const{enqueueSnackbar:r}=kn(),t=F.useCallback(s=>On(ud,{id:s.id,severity:s.severity||"all",componentDid:s.source==="system"?"system":s.componentDid||"all"}),[]);Dt(`${e}/${ie.EVENTS.NOTIFICATION_BLOCKLET_CREATE}`,s=>{const n=t(s),{severity:i,description:a}=s||{},l=["error","warning"].includes(i)||s.sticky;s.source==="system"&&r(a,{variant:i,autoHideDuration:l?null:5e3,content:c=>o.jsx(rl,{viewAllUrl:n,keyId:c,notification:s,content:o.jsx(vl,{notification:s,minimal:!0,rows:0})})})},[],"user")};function no({blocklet:e,isAdmin:r}){const[t,s]=F.useState(!1),{t:n}=ge(),i=ya();return r?o.jsxs(o.Fragment,{children:[o.jsx(Yu,{blocklet:e,customTableButtons:[o.jsxs(U,{display:"flex",alignItems:"center",gap:1.5,children:[o.jsx(Yt,{onClick:()=>s(!0),sx:{p:i?0:void 0},children:o.jsx(os,{})},"settings"),i?o.jsx(oe,{children:n("common.setting")}):null]})]}),o.jsx(qo,{title:`${n("common.notification")} ${n("common.setting")}`,fullWidth:!0,maxWidth:"md",open:t,onClose:()=>s(!1),PaperProps:{style:{minHeight:"500px"}},children:o.jsx(U,{sx:{mt:"-16px",overflowY:"hidden"},children:o.jsx(Gl,{})})})]}):o.jsx(yo,{status:403})}no.propTypes={blocklet:P.object.isRequired,isAdmin:P.bool.isRequired};const fd=e=>{var f,p;const{t:r}=ge(),{blocklet:t,actions:{refreshBlocklet:s},client:n,did:i}=lt(),a=(f=t==null?void 0:t.meta)==null?void 0:f.did,l=!t||dr(t.status)?[]:ve.getAppMissingConfigs(t),c={overview:[{label:r("common.overview"),value:"overview"},{label:o.jsx(Do,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!l.length,children:r("common.components")}),value:"components"}],"did-connect":[{label:r("common.members"),value:"members"},{label:r("team.member.passports"),value:"passports"},{label:r("common.setting"),value:"settings"},{label:r("common.security"),value:"security"}],website:[{label:r("common.domains"),value:"domains"},{label:r("common.branding"),value:"branding",show:!dr(t==null?void 0:t.status)},{label:r("common.theming"),value:"theming",show:!dr(t==null?void 0:t.status)},{label:r("common.navigation"),value:"navigation"},{label:r("common.sitemap"),value:"sitemap"}],operations:[{label:r("common.notificationRecords"),value:"notifications",show:e},{label:r("common.analytics"),value:"analytics"},{label:r("common.auditLogs"),value:"audit-logs"},{label:r("common.advanced"),value:"advanced"}],integrations:[{label:"Webhooks",value:"webhooks",show:e},{label:r("common.accessKeys"),value:"access-keys"}],developers:[{label:r("common.logs"),value:"logs",show:((p=t==null?void 0:t.children)==null?void 0:p.length)&&t.structVersion===ie.APP_STRUCT_VERSION},{label:r("common.performance"),value:"performance"},{label:r("common.docs"),value:"docs"}]},d={overview:Ku,components:ld,members:o.jsx(Hu,{type:"blocklet",createPassportSvg:Ws}),passports:o.jsx(Qu,{createPassportSvg:Ws}),settings:o.jsx(td,{orientation:"vertical"}),security:o.jsx(rd,{}),"did-spaces":o.jsx(ed,{navOrientation:"horizontal"}),domains:Gu,branding:o.jsx(sd,{blocklet:t,onUpdate:s}),theming:o.jsx(Zu,{}),navigation:Xu,sitemap:o.jsx(Ho,{children:r("common.comingSoon")}),notifications:o.jsx(no,{blocklet:t,isAdmin:e}),"audit-logs":o.jsx(Ju,{scope:a,categories:["blocklet","team","security","certificates","gateway"]}),analytics:o.jsx(id,{client:n,did:i}),advanced:o.jsx(nd,{blocklet:t,onUpdate:s}),webhooks:o.jsx(qu,{}),"access-keys":o.jsx(ad,{}),logs:zu,performance:o.jsx(od,{client:n,did:i}),docs:cd,publish:o.jsx(Wu,{})};return{tabGroups:c,renders:d}};function pd(){var M,y;const e=Tn(),{tab:r="overview",subtab:t}=Po(),{blocklet:s}=lt(),{t:n}=ge(),{session:i}=Mn(),a=Ye(()=>{var b;return(b=i==null?void 0:i.user)==null?void 0:b.did},[i]),l=Ye(()=>{var b;return((b=i.user)==null?void 0:b.role)&&na.includes(i.user.role)},[i]);dd(a);const{tabGroups:c,renders:d}=fd(l),f=b=>{e(`${ie.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/${r}/${b}`)},p=(c[r]||[]).filter(b=>b.show===void 0||b.show),g=((M=(p||[]).find(b=>b.value===t))==null?void 0:M.value)||((y=p==null?void 0:p[0])==null?void 0:y.value)||r,j=d[g]||d.overview,E=["overview"].includes(r),T=s?o.jsxs(ts,{type:"components",children:[p.length>0&&o.jsx(U,{pt:E?3:0,mb:2,children:o.jsx(Dn,{tabs:p,current:g,onChange:f,scrollButtons:"auto"})}),o.jsx(U,{className:"page-content",children:o.jsx(F.Suspense,{fallback:o.jsx(Ut,{relative:"parent",children:o.jsx(He,{})}),children:F.isValidElement(j)?j:o.jsx(j,{blocklet:s})})})]}):o.jsx(Ut,{relative:"parent",children:o.jsx(He,{})});return o.jsx(ia,{children:o.jsx(Bu,{children:o.jsx(Ms,{children:o.jsxs(md,{children:[E&&o.jsxs(U,{component:"div",className:"page-header",children:[o.jsxs(oe,{component:"h6",variant:"h6",className:"page-title",color:"textPrimary",children:[s?o.jsx(ha,{blocklet:s,style:{marginRight:16}}):null,s?o.jsxs(U,{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,children:[o.jsx(U,{children:ve.getDisplayName(s)}),(s==null?void 0:s.status)!=="unknown"&&o.jsx(hs,{size:"12px",status:s.status,source:s.source,progress:s.progress})]}):`${n("common.blocklet")} ${n("common.detail")}`]}),s?o.jsx(Wa,{className:"page-actions",hasPermission:!0,blocklet:s,onStart:()=>{},onComplete:({error:b}={})=>{b&&ne.error(b.message)},variant:"group"}):null]}),o.jsx(Zn,{}),o.jsx($u,{}),T]})})})})}function hd(){var s;const{blocklet:e}=lt(),{t:r}=ge(),t=(s=e==null?void 0:e.meta)==null?void 0:s.did;return F.useEffect(()=>{const n=sa();return t&&n.connect(),()=>{t&&n.isConnected()&&n.disconnect()}},[t]),o.jsxs(o.Fragment,{children:[o.jsx(xo,{children:o.jsx("title",{children:r("pageTitle.dashboard")})}),o.jsx(pd,{})]})}const md=me.main`
|
|
234
|
+
.page-header {
|
|
235
|
+
display: flex;
|
|
236
|
+
justify-content: space-between;
|
|
237
|
+
align-items: center;
|
|
238
|
+
flex-wrap: wrap;
|
|
239
|
+
gap: 16px;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.page-title {
|
|
243
|
+
display: flex;
|
|
244
|
+
align-items: center;
|
|
245
|
+
|
|
246
|
+
.page-link {
|
|
247
|
+
font-size: 15px;
|
|
248
|
+
margin-top: 8px;
|
|
249
|
+
margin-left: 8px;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
@media (max-width: ${e=>e.theme.breakpoints.values.md}px) {
|
|
254
|
+
.page-header {
|
|
255
|
+
flex-direction: column;
|
|
256
|
+
align-items: flex-start;
|
|
257
|
+
.page-actions,
|
|
258
|
+
.MuiButtonGroup-root {
|
|
259
|
+
width: 100%;
|
|
260
|
+
}
|
|
261
|
+
.MuiButtonGroup-root {
|
|
262
|
+
.MuiButtonBase-root {
|
|
263
|
+
flex: 1;
|
|
264
|
+
}
|
|
265
|
+
.blocklet-action-text {
|
|
266
|
+
display: none;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.page-title {
|
|
272
|
+
margin-bottom: 15px;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
`,Ud=Object.freeze(Object.defineProperty({__proto__:null,default:hd},Symbol.toStringTag,{value:"Module"}));export{hs as B,Ee as C,we as S,ps as W,_i as a,Hn as b,Sl as c,eo as d,zn as e,Md as f,Kn as g,tt as h,Vd as i,Ud as j,$d as u};
|