@abtnode/blocklet-services 1.16.39-beta-20250211-013701-5e3d1ce3 → 1.16.39-beta-20250212-101102-2d68fc2a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{Add-DSPtuudj.js → Add-CuIZWfjH.js} +1 -1
- package/dist/assets/{ArrowDropDown-DM9y1OaN.js → ArrowDropDown-Cv3eCDY6.js} +1 -1
- package/dist/assets/{CheckCircle-BxzRfCun.js → CheckCircle-D-unagro.js} +1 -1
- package/dist/assets/{ChevronLeft-CmbkC1dP.js → ChevronLeft-Gy0Fh2PP.js} +1 -1
- package/dist/assets/{ChevronRight-DlIj8Fj2.js → ChevronRight-DSecMzs8.js} +1 -1
- package/dist/assets/{DeleteOutline-BzV7E1BM.js → DeleteOutline-CnjMnu1G.js} +1 -1
- package/dist/assets/{Done-DJfjmlFC.js → Done-C8ZSABDp.js} +1 -1
- package/dist/assets/{Download-B4M4wwJm.js → Download-BpCGsakQ.js} +1 -1
- package/dist/assets/{Error-CN75ZRlV.js → Error-CIVKKbPu.js} +1 -1
- package/dist/assets/{Google-DTKsjoGP.js → Google-CSRPwRzS.js} +1 -1
- package/dist/assets/{InfoOutlined-C_J3Y0fX.js → InfoOutlined-C8xfkBe6.js} +1 -1
- package/dist/assets/{Launch-BX35m3eH.js → Launch-BfiIdCmh.js} +1 -1
- package/dist/assets/{LaunchOutlined-DaJw5LME.js → LaunchOutlined-DmwI20ey.js} +1 -1
- package/dist/assets/{Loop-B05tzyuy.js → Loop-Dlnais4C.js} +1 -1
- package/dist/assets/{MoreHoriz-JX8PbVXG.js → MoreHoriz-DbMNKpjF.js} +1 -1
- package/dist/assets/{PlayArrow-DZfknrYj.js → PlayArrow-CZfWYrXK.js} +1 -1
- package/dist/assets/{ViewList-CgG45KQv.js → ViewList-CV3Yxakp.js} +1 -1
- package/dist/assets/{access-control-Cvyyosl7.js → access-control-DdkKjkTj.js} +1 -1
- package/dist/assets/{actions-CPjP-DJ-.js → actions-DDpgZ17S.js} +1 -1
- package/dist/assets/{add-component-core-DlH-ksP3.js → add-component-core-CF05FURP.js} +29 -29
- package/dist/assets/{add-resource-Bi7DpPfy.js → add-resource-u9CnYHQ7.js} +1 -1
- package/dist/assets/{addon-B4K2H5lA.js → addon-BCk9L1CD.js} +1 -1
- package/dist/assets/{analytics-D5Wg9yw6.js → analytics-sm8oL_To.js} +1 -1
- package/dist/assets/{audit-logs-CpENNExh.js → audit-logs-Cre3WUIo.js} +1 -1
- package/dist/assets/{base32-BAfsRZF6.js → base32-LsxuOFGQ.js} +1 -1
- package/dist/assets/{branding-D_9x1yUc.js → branding-BTgKt5ES.js} +2 -2
- package/dist/assets/{bundle-avatar-3QSGrsNA.js → bundle-avatar-7g1gtR_Q.js} +1 -1
- package/dist/assets/{button-BZmMffY2.js → button-DlYlZH8h.js} +1 -1
- package/dist/assets/{click-to-copy-Bu9H6mvL.js → click-to-copy-BLRxskBB.js} +1 -1
- package/dist/assets/{complete-DWza6ypd.js → complete-DY43z8bC.js} +1 -1
- package/dist/assets/{component-CMPB9eGw.js → component-C3wYVoFz.js} +1 -1
- package/dist/assets/{config-wRVMZtMQ.js → config--1vdfQxl.js} +1 -1
- package/dist/assets/{config-DjozEU7w.js → config-5CfgPrCe.js} +1 -1
- package/dist/assets/{config-navigation-D-th1tcR.js → config-navigation-xcMpeduS.js} +3 -3
- package/dist/assets/{config-space-DQcEAb4q.js → config-space-C59Z4PGK.js} +1 -1
- package/dist/assets/{confirm-dIU5y9cG.js → confirm-DfsY08eB.js} +1 -1
- package/dist/assets/{connect-BCsAv_0T.js → connect-5VLKxKh7.js} +1 -1
- package/dist/assets/{connect-Bzzh-qas.js → connect-hKwHeTo3.js} +1 -1
- package/dist/assets/{connect-to-BzwS4rD2.js → connect-to-B_2lM0_9.js} +1 -1
- package/dist/assets/dashboard-DQnfagMU.js +217 -0
- package/dist/assets/{did-address-D0Fo5eTl.js → did-address-CsW_VsB3.js} +1 -1
- package/dist/assets/{domain-SUtQ2mKp.js → domain-PLy6pooV.js} +1 -1
- package/dist/assets/{domain-list-C6MW__fO.js → domain-list-Bc7A7RER.js} +1 -1
- package/dist/assets/{email-C1qoJ5wN.js → email-D3sOIREb.js} +1 -1
- package/dist/assets/{exchange-passport-DN1dbwCF.js → exchange-passport-CS0Md1xZ.js} +1 -1
- package/dist/assets/{form-text-input-DixVGGLY.js → form-text-input-AT4HfkHl.js} +1 -1
- package/dist/assets/{fuel-DbSYx7td.js → fuel-CEtlY46W.js} +1 -1
- package/dist/assets/{fullpage-DT2JXUAZ.js → fullpage-Ce9Y2TSP.js} +1 -1
- package/dist/assets/{get-safe-url-DDeO6YpV.js → get-safe-url-BVbIl2hB.js} +1 -1
- package/dist/assets/{get-safe-url-Du4BhDgB.js → get-safe-url-SccGjxz4.js} +1 -1
- package/dist/assets/{home-DqIS-M10.js → home-BI67JVLT.js} +1 -1
- package/dist/assets/{iframe-CU0LfRyS.js → iframe-De6QHL_6.js} +1 -1
- package/dist/assets/index-B9Bc9vnG.js +77 -0
- package/dist/assets/{index-DGzAI_hi.js → index-BdfWmlqh.js} +1 -1
- package/dist/assets/{index-BkTpbxSu.js → index-BoVroYzD.js} +33 -33
- package/dist/assets/index-C9UnRN7C.js +228 -0
- package/dist/assets/{index-Bv_3agvW.js → index-C9lMjZBr.js} +7 -7
- package/dist/assets/{index-_suzTPHn.js → index-CxW3Q7hC.js} +21 -27
- package/dist/assets/{index-B19CQ2ic.js → index-D-6G7He6.js} +1 -1
- package/dist/assets/{index-Cld1HWxz.js → index-DUVrFM9m.js} +1 -1
- package/dist/assets/{index-C85gVBzh.js → index-DVfi3VUs.js} +42 -42
- package/dist/assets/{index-bmafJpME.js → index-Dq1yoqB-.js} +1 -1
- package/dist/assets/{index-BFxdORkH.js → index-DsrVmpPp.js} +1 -1
- package/dist/assets/{index-Bwql_DnM.js → index-NTlhnYZO.js} +1 -1
- package/dist/assets/{index-sPEpq71V.js → index-R7D5qhDv.js} +1 -1
- package/dist/assets/{index-aIv-YSXW.js → index-o2FFW-yx.js} +1 -1
- package/dist/assets/{index-xXoK_djD.js → index-p0322yKe.js} +1 -1
- package/dist/assets/{invitation-CBTcflFA.js → invitation-DWG-KySA.js} +1 -1
- package/dist/assets/{invite-BX9Ow66V.js → invite-Lcgs0Fhi.js} +1 -1
- package/dist/assets/{issue-passport-CgO1vOso.js → issue-passport-pkmrmS7N.js} +1 -1
- package/dist/assets/{item-IntWv1pk.js → item-B6N6t3kF.js} +1 -1
- package/dist/assets/{layout-DNDd_arD.js → layout-CF6TreKX.js} +1 -1
- package/dist/assets/list-D3MtvbeT.js +188 -0
- package/dist/assets/{list-header-BdJ1JRqY.js → list-header-DxG3xooH.js} +1 -1
- package/dist/assets/{localization-Dqw_hZdb.js → localization-BOHiIJhm.js} +1 -1
- package/dist/assets/{log-BQgDF08N.js → log-ZG0PJXpX.js} +1 -1
- package/dist/assets/{login-BUeQyCFg.js → login-BbaHO4Ca.js} +1 -1
- package/dist/assets/{login-oauth-callback-Dua5YLNm.js → login-oauth-callback-VhHKXVPh.js} +1 -1
- package/dist/assets/{logo-uploader-lx0oUxRg.js → logo-uploader-DZitXtFf.js} +3 -3
- package/dist/assets/{lost-passport-C-DfyBDR.js → lost-passport-C9bxtr1Q.js} +1 -1
- package/dist/assets/{open-window-BCSIX9-I.js → open-window-YQ4vV2tF.js} +1 -1
- package/dist/assets/{overview-BZ7IJTY1.js → overview-GoLeUZDo.js} +1 -1
- package/dist/assets/{page-header-xWImGBdx.js → page-header-DZTCF7io.js} +1 -1
- package/dist/assets/{permission-C0p6f4_S.js → permission-BQ0E8FmL.js} +1 -1
- package/dist/assets/{preferences-C1-L0Kuo.js → preferences-CjipuYyV.js} +1 -1
- package/dist/assets/publish-resource-Czivui9b.js +1 -0
- package/dist/assets/{react-beautiful-dnd.esm-DwxjmShi.js → react-beautiful-dnd.esm-B0xxfe7i.js} +1 -1
- package/dist/assets/{relative-time-ChYpdg43.js → relative-time-Bkhqzrgv.js} +1 -1
- package/dist/assets/sdk-CBf7wJy0.js +1 -0
- package/dist/assets/{session-CM1ewS-k.js → session-DKWhsUi1.js} +1 -1
- package/dist/assets/{setup-BlbLoMQQ.js → setup-6BkYc-NJ.js} +3 -3
- package/dist/assets/{start-C_qLBKVg.js → start-C6UPvOLP.js} +1 -1
- package/dist/assets/{step-actions-BYvMcDu2.js → step-actions-BmiH863e.js} +1 -1
- package/dist/assets/{studio-DtUwD8m6.js → studio-BdNJR01R.js} +1 -1
- package/dist/assets/{switch-control-D2qynQm8.js → switch-control-1mrS2A0x.js} +1 -1
- package/dist/assets/{traffic-CctA2CCp.js → traffic-CoKCU9bb.js} +1 -1
- package/dist/assets/{transfer-D5wgUCh5.js → transfer-bCXNyiiH.js} +1 -1
- package/dist/assets/{unsubscribe-Fvp6J_a-.js → unsubscribe-DruGK6Ne.js} +1 -1
- package/dist/assets/{useLocalStorage-DV4AIe5L.js → useLocalStorage-DYSzZAco.js} +1 -1
- package/dist/assets/user-center-B33739jv.js +71 -0
- package/dist/assets/{util-XV_5OnOm.js → util-BTCA4Hee.js} +1 -1
- package/dist/assets/{util-NSOsPZWM.js → util-BblN2lT9.js} +1 -1
- package/dist/assets/vendor-arcblock-DE69EmW_.js +3512 -0
- package/dist/assets/{wrap-locale-BQ1e-7Pm.js → wrap-locale-CLuwhKrO.js} +1 -1
- package/dist/index.html +2 -2
- package/dist/service-worker.js +1 -1
- package/package.json +29 -29
- package/dist/assets/dashboard-DEaIei4u.js +0 -216
- package/dist/assets/index-DUoD69VU.js +0 -77
- package/dist/assets/index-Dz_dMBd6.js +0 -228
- package/dist/assets/list-Cy1my35m.js +0 -159
- package/dist/assets/publish-resource-C6LjZThR.js +0 -1
- package/dist/assets/sdk-TBkp9MgA.js +0 -1
- package/dist/assets/user-center-BPnFfNIW.js +0 -71
- package/dist/assets/vendor-arcblock-DZrZ_x_3.js +0 -3506
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/overview-BZ7IJTY1.js","assets/vendor-mui-core-xF5F4eT7.js","assets/vendor-react-D-afvo_7.js","assets/vendor-arcblock-DZrZ_x_3.js","assets/vendor-utils-5TjOM6td.js","assets/vendor-hooks-BKxTDk_P.js","assets/vendor-arcblock-DhgPdlEj.css","assets/keyboard-arrow-down-rounded-DadBVmpO.js","assets/index-DGzAI_hi.js","assets/index-C85gVBzh.js","assets/did-address-D0Fo5eTl.js","assets/domain-list-C6MW__fO.js","assets/Add-DSPtuudj.js","assets/base32-BAfsRZF6.js","assets/LockIcon-D-W4Rph6.js","assets/CheckCircle-BxzRfCun.js","assets/util-XV_5OnOm.js","assets/useSetState-Crt4S51m.js","assets/permission-C0p6f4_S.js","assets/session-CM1ewS-k.js","assets/useAsyncRetry-Bmo6a1Zp.js","assets/useAsync-Ua5iss51.js","assets/confirm-dIU5y9cG.js","assets/format-error-C0Ke3VXF.js","assets/InfoOutlined-C_J3Y0fX.js","assets/api-K65cLqol.js","assets/actions-CPjP-DJ-.js","assets/MoreHoriz-JX8PbVXG.js","assets/useLocalStorage-DV4AIe5L.js","assets/PlayArrow-DZfknrYj.js","assets/get-safe-url-Du4BhDgB.js","assets/index-Cld1HWxz.js","assets/index-BkTpbxSu.js","assets/index-DoZ2YM4T.js","assets/Loop-B05tzyuy.js","assets/ViewList-CgG45KQv.js","assets/list-header-BdJ1JRqY.js","assets/click-to-copy-Bu9H6mvL.js","assets/DeleteOutline-BzV7E1BM.js","assets/util-NSOsPZWM.js","assets/sdk-TBkp9MgA.js","assets/index-aIv-YSXW.js","assets/shorten-label-J69eHfMN.js","assets/index-Bv_3agvW.js","assets/EditIcon-BOr0kf6I.js","assets/Google-DTKsjoGP.js","assets/cloneDeep-BRiLvZjr.js","assets/index-bmafJpME.js","assets/iframe-CU0LfRyS.js","assets/config-DjozEU7w.js","assets/form-text-input-DixVGGLY.js","assets/Done-DJfjmlFC.js","assets/logo-uploader-lx0oUxRg.js","assets/ArrowDropDown-DM9y1OaN.js","assets/ChevronRight-DlIj8Fj2.js","assets/bundle-avatar-3QSGrsNA.js","assets/simple-select-D06JmA0a.js","assets/isEmail-BWNRBSAy.js","assets/switch-control-D2qynQm8.js","assets/audit-logs-CpENNExh.js","assets/index-ChSPqVLh.js","assets/index-D4PP6P2d.css","assets/relative-time-ChYpdg43.js","assets/index-DtwN19zv.js","assets/index-DUoD69VU.js","assets/list-Cy1my35m.js","assets/index-CHFvfli7.js","assets/traffic-CctA2CCp.js","assets/LaunchOutlined-DaJw5LME.js","assets/ChevronLeft-CmbkC1dP.js","assets/index-C-D-nCB1.js","assets/vendor-mui-x-CSUdon8K.js","assets/log-BQgDF08N.js","assets/Download-B4M4wwJm.js","assets/log-D33dFtt_.css","assets/index-Dz_dMBd6.js","assets/Error-CN75ZRlV.js","assets/react-beautiful-dnd.esm-DwxjmShi.js","assets/raf-schd.esm-Cxhj8umC.js","assets/QuestionMarkCircle-BvUTckGB.js","assets/item-IntWv1pk.js","assets/Launch-BX35m3eH.js","assets/config-navigation-D-th1tcR.js","assets/slicedToArray-CXBLQZX4.js","assets/index-C2fPoxDR.js","assets/index-xXoK_djD.js","assets/use-mobile-DnWfrhc7.js","assets/connect-to-BzwS4rD2.js","assets/config-space-DQcEAb4q.js","assets/component-CMPB9eGw.js","assets/index-DcfIKM1A.js","assets/add-component-core-DlH-ksP3.js","assets/launch-result-message-keU5grqY.js","assets/page-header-xWImGBdx.js","assets/index-Bwql_DnM.js","assets/content-layout-cWwRTmIc.js","assets/add-component-core-D-IRi6XF.css","assets/analytics-D5Wg9yw6.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{y as Qe,f as M,h as X,z as tt,A as rs,b as ss,B as os,C as is,D as ze,E as An,F as fe,G as $n,H as as,o as je,I as cs,J as ls,k as ln,g as us,j as ds,m as un,l as fs,n as ps,K as $e,e as Re,L as hs,_ as B,M as ms,O as dn,N as gs,c as fn}from"./index-C85gVBzh.js";import{a1 as U,j as o,E as g,aa as te,I as yt,ak as xs,ad as On,ah as bt,al as vs,bm as ys,a2 as re,bn as bs,bq as js,T as N,bx as ws,aN as pn,by as hn,a3 as C,a4 as Be,bz as Ss,t as G,Z as Ze,bA as Cs,a5 as _s,bB as Is,bp as jt,am as Mn,bC as Ls,aq as Es,as as Ts,bD as Nn,bE as zn,bF as Bn,A as ae,aj as Un,aK as Ps}from"./vendor-mui-core-xF5F4eT7.js";import{$ as H,a9 as Rs,a1 as wt,aa as Ds,a2 as St,b as O,Y as mn,j as ee,e as Z,Z as ks,ab as As,ac as Hn,ad as $s,ae as Os,D as Ct,af as Fn,ag as Ms,ah as Ns,ai as zs,C as Ue,aj as Bs,U as Us,ak as Hs,al as Fs,H as Vs,R as qs,am as Ws}from"./vendor-arcblock-DZrZ_x_3.js";import{r as v,L as Vn,k as qn,f as Ks,l as Gs}from"./vendor-react-D-afvo_7.js";import{d as He,s as Qs}from"./vendor-hooks-BKxTDk_P.js";import{_ as gn}from"./useLocalStorage-DV4AIe5L.js";import{C as xn}from"./confirm-dIU5y9cG.js";import{d as Zs}from"./PlayArrow-DZfknrYj.js";import{x as Wn,a6 as Ys,a7 as Js,y as Oe}from"./vendor-utils-5TjOM6td.js";import{g as vn}from"./get-safe-url-Du4BhDgB.js";import{f as _t}from"./format-error-C0Ke3VXF.js";import{c as ye,s as Fe,H as Xs,h as Ve,f as Kn,p as Gn,B as eo}from"./index-Cld1HWxz.js";import{u as Qn}from"./session-CM1ewS-k.js";import{D as to,_ as Zn}from"./useAsyncRetry-Bmo6a1Zp.js";import{d as no}from"./InfoOutlined-C_J3Y0fX.js";import{_ as Yn}from"./useSetState-Crt4S51m.js";var It={},ro=U;Object.defineProperty(It,"__esModule",{value:!0});var Jn=It.default=void 0,so=ro(H()),oo=o;Jn=It.default=(0,so.default)((0,oo.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop");var Lt={},io=U;Object.defineProperty(Lt,"__esModule",{value:!0});var Xn=Lt.default=void 0,ao=io(H()),co=o;Xn=Lt.default=(0,ao.default)((0,co.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 Et={},lo=U;Object.defineProperty(Et,"__esModule",{value:!0});var er=Et.default=void 0,uo=lo(H()),fo=o;er=Et.default=(0,uo.default)((0,fo.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 Tt={},po=U;Object.defineProperty(Tt,"__esModule",{value:!0});var tr=Tt.default=void 0,ho=po(H()),mo=o;tr=Tt.default=(0,ho.default)((0,mo.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 Pt={},go=U;Object.defineProperty(Pt,"__esModule",{value:!0});var nr=Pt.default=void 0,xo=go(H()),vo=o;nr=Pt.default=(0,xo.default)((0,vo.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 Rt={},yo=U;Object.defineProperty(Rt,"__esModule",{value:!0});var rr=Rt.default=void 0,bo=yo(H()),jo=o;rr=Rt.default=(0,bo.default)((0,jo.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 Dt={},wo=U;Object.defineProperty(Dt,"__esModule",{value:!0});var sr=Dt.default=void 0,So=wo(H()),Co=o;sr=Dt.default=(0,So.default)((0,Co.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 kt={};Object.defineProperty(kt,"__esModule",{value:!0});var or=kt.default=void 0;_o(v);var yn=o;function _o(e){return e&&e.__esModule?e:{default:e}}function bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function jn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bn(Object(n),!0).forEach(function(r){Io(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bn(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Io(e,t,n){return(t=Lo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lo(e){var t=Eo(e,"string");return typeof t=="symbol"?t:t+""}function Eo(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var At=function(t){return(0,yn.jsx)("svg",jn(jn({},t),{},{children:(0,yn.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"})}))};At.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};At.displayName="dashboard";or=kt.default=At;var $t={},To=U;Object.defineProperty($t,"__esModule",{value:!0});var ir=$t.default=void 0,Po=To(H()),Ro=o;ir=$t.default=(0,Po.default)((0,Ro.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 de={Start:Zs,Stop:Jn,Restart:Xn,Reload:er,Remove:Rs,Config:tr,Log:nr,Group:rr,Cancel:sr,Dashboard:or,Overview:ir},Do=(e,t)=>{if(!e)return"";const n=new URL(e),r=new URLSearchParams(n.searchParams),s=new URL(Wn(n.origin,t));return s.search=r.toString(),s.toString()},ko="internal",Ao="external";function Ot({blocklet:e,onStart:t,onComplete:n,variant:r,hasPermission:s,getComponentUrl:i,useBlockletUrlEvaluation:a,...c}){const l=Qe(),[u,d]=v.useState(null),[f,p]=v.useState(null),[b,j]=v.useState(!1),[m,w]=v.useState(null),{t:y}=v.useContext(wt),[T]=gn("skip-blocklet-setup",!1),{loading:L,recommendedUrl:P}=a(e),[k]=gn("blocklet-type-filter",ko),h=M.isInProgress(e.status),[I,S]=v.useState(!1);v.useEffect(()=>{var D,z;if(!(e!=null&&e.controller))return;S(((z=(D=e==null?void 0:e.controller)==null?void 0:D.status)==null?void 0:z.value)===X.BLOCKLET_CONTROLLER_STATUS.suspended),(async()=>{var V,J,oe;try{const q=await l.api.getLauncherSession({input:{launcherSessionId:(V=e==null?void 0:e.controller)==null?void 0:V.launcherSessionId,launcherUrl:(J=e==null?void 0:e.controller)==null?void 0:J.launcherUrl}});if(q!=null&&q.error){console.error("get launcher session failed",q.error);return}S([O.LAUNCH_SESSION_STATUS.overdue,O.LAUNCH_SESSION_STATUS.canceled,O.LAUNCH_SESSION_STATUS.terminated].includes((oe=q==null?void 0:q.launcherSession)==null?void 0:oe.status))}catch(q){console.error("call getLauncherSession error",q)}})()},[]);const{inService:_}=l,E=(x,D,z=!1)=>async()=>{const V=async Ee=>{var Pe;t({action:x,blocklet:e}),j(!0),p(x);let Te=!1;try{if(x==="remove")await D(Ee);else if(x==="start"){if(!M.hasRunnableComponent(e)){ee.error(y("blocklet.noComponent"));return}if(!_&&!T&&!((Pe=e.settings)!=null&&Pe.initialized)&&e.mode!==X.BLOCKLET_MODES.DEVELOPMENT){if(!P||!mn(P)){ee.error(y("blocklet.gotoVisitError"));return}const K=rs(l.info),cn=new URL(P);cn.searchParams.set("serverUrl",K),window.open(vn(cn.href,{allowDomains:null})),n({action:x,blocklet:e});return}const ie=e.children.filter(K=>!M.isInProgress(K.status)&&K.status!=="running").map(K=>K.meta.did),ue={did:e.meta.did,componentDids:ie};await D({input:ue})}else if(["stop","restart","reload"].includes(x)){const ie=e.children.filter(K=>K.status==="running").map(K=>K.meta.did),ue={did:e.meta.did,componentDids:ie};await D({input:ue})}else{const ie={did:e.meta.did};await D({input:ie})}x==="remove"?Te=!0:await ss(1e3),x==="reload"&&ee.success(y("blocklet.reloadSuccess")),w(null),n({action:x,blocklet:e})}catch(ie){const ue=`Blocklet ${x} failed: ${_t(ie)}`;throw n({action:x,blocklet:e,error:new Error(ue)}),new Error(ue)}finally{Te||j(!1)}},J=()=>{j(!1),w(null)},oe=M.getDisplayName(e,!0),q=e.mode===X.BLOCKLET_MODES.DEVELOPMENT?{description:()=>o.jsx(N,{component:"div",children:o.jsx(N,{gutterBottom:!0,children:y("blocklet.action.removeApplicationDescription")})}),params:{removeType:"complete"}}:{description:(Ee,Te)=>o.jsxs(N,{component:"div",children:[o.jsx(N,{gutterBottom:!0,children:y("blocklet.action.removeApplicationDescription")}),o.jsxs(ws,{name:"removeType",value:Ee.removeType,onChange:Pe=>Te({...Ee,removeType:Pe.target.value}),children:[o.jsx(pn,{value:"backup",control:o.jsx(hn,{}),label:y("blocklet.action.removeApplicationAfterBackup")}),o.jsx(pn,{value:"complete",control:o.jsx(hn,{}),label:y("blocklet.action.removeApplicationComplete")})]})]}),params:{removeType:"backup"}},ns={stop:{title:`${y("common.stop")} ${oe}`,description:y("blocklet.action.stopDescription"),confirm:y("blocklet.action.confirmStop"),cancel:y("common.cancel"),onConfirm:V,onCancel:J},restart:{title:`${y("common.restart")} ${oe}`,description:y("blocklet.action.restartDescription"),confirm:y("blocklet.action.confirmRestart"),cancel:y("common.cancel"),onConfirm:V,onCancel:J},remove:{title:`${y("common.remove")} ${oe}`,confirm:y("blocklet.action.confirmRemove"),cancel:y("common.cancel"),onConfirm:V,onCancel:J,...q},cancelDownload:{title:`${y("common.cancel")}`,description:y("blocklet.action.cancelDownloadDescription",{name:oe}),confirm:y("common.confirm"),cancel:y("common.cancel"),onConfirm:V,onCancel:J}};z?w(ns[x]):await V()},R=!!u,Y=x=>{try{x.stopPropagation(),x.preventDefault()}catch{}d(x.currentTarget)},F=x=>{try{x.stopPropagation(),x.preventDefault()}catch{}d(null)},Ie=async(x,D)=>{try{D.stopPropagation(),D.preventDefault()}catch{}if(typeof x.handler=="function")try{j(!0),p(x.action),await x.handler()}catch(z){console.error(`Blocklet ${x.name} failed: `,z)}finally{j(!1),d(null)}else d(null)},Jr=!_&&M.isDeletableBlocklet(e)?{action:"remove",icon:de.Remove,name:y("common.remove"),handler:E("remove",async({removeType:x})=>{x==="backup"&&await l.api.backupBlocklet({input:{appDid:e.appDid,to:"disk"}}),await l.api.deleteBlocklet({input:{did:e.meta.did,keepData:!1}})},!0),disabled:h}:null,Xr={action:"remove",icon:({sx:x,...D})=>o.jsx(de.Cancel,{sx:{...x,paddingRight:"2px",zoom:.95},...D}),name:y("common.cancel"),handler:E("cancelDownload",l.api.cancelDownloadBlocklet,!0)},es=M.getAppMissingConfigs(e),ts=()=>{var V;const x=`/${e.mountPoint||"/"}`.replace(/\/+/g,"/"),D=i==null?void 0:i({mountPoint:x,blocklet:e});if(!D||!mn(D)){ee.error(y("blocklet.gotoVisitError"));return}const z=(V=e==null?void 0:e.site)==null?void 0:V.domainAliases;window.open(vn(Do(D,".well-known/service/admin"),{allowDomains:z==null?void 0:z.map(J=>J.value)}))};let Le=[{action:"start",icon:de.Start,inExternal:!0,name:y("common.start"),handler:E("start",l.api.startBlocklet),disabled:I||e.children.every(x=>x.status==="running")||tt(e.status)||L||h},{action:"stop",icon:de.Stop,inExternal:!0,name:y("common.stop"),handler:E("stop",l.api.stopBlocklet,!0),disabled:!["running","starting"].includes(e.status)},{action:"restart",inExternal:!0,icon:de.Restart,name:y("common.restart"),handler:E("restart",l.api.restartBlocklet,!0),disabled:I||e.status!=="running"},tt(e.status)?Xr:Jr,{separator:!0},_?null:{action:"dashboard",icon:({style:x,...D})=>o.jsx(de.Dashboard,{...D,style:{...x,width:"26px",height:"26px",paddingRight:"3px"}}),name:y("sidebar.dashboard"),handler:ts}].filter(Boolean);return k===Ao&&(Le=Le.filter(x=>x.inExternal)),r==="menu"?o.jsxs(wn,{"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:Y,size:"small",disabled:!s||!tt(e.status)&&b,children:o.jsx(Ds,{})}),o.jsxs(xs,{id:"actions-menu",anchorEl:u,keepMounted:!0,open:R,onClose:F,PaperProps:{},children:[es.length>0&&o.jsxs(On,{style:{maxWidth:"400px"},severity:"error",children:[y("blocklet.config.missingRequired"),o.jsx("br",{}),o.jsx(Vn,{to:`/blocklets/${e.meta.did}/components`,children:y("blocklet.config.gotoFix")})]}),Le.map((x,D)=>x.separator?o.jsx(bt,{},`separator-${D}`):o.jsxs(vs,{dense:!0,onClick:z=>Ie(x,z),disabled:b||x.disabled,"data-cy":`${x.action}-blocklet`,children:[o.jsx(ys,{style:{minWidth:24},children:f===x.action&&b?o.jsx(re,{size:16,sx:{marginRight:1}}):o.jsx(x.icon,{fontSize:"small"})}),o.jsx(bs,{primary:x.name})]},x.name))]}),m&&o.jsx(xn,{title:m.title,description:m.description,confirm:m.confirm,cancel:m.cancel,params:m.params,onConfirm:m.onConfirm,onCancel:m.onCancel})]}):o.jsxs(wn,{"data-cy":"blocklet-actions",...c,children:[o.jsx(js,{children:Le.filter(x=>!x.separator&&!x.onlyInMenu).map(x=>o.jsxs(St,{title:x.name,"data-cy":`${x.action}-blocklet`,onClick:()=>Ie(x),disabled:!!x.disabled||b,children:[f===x.action&&b?o.jsx(re,{size:16,sx:{marginRight:1}}):o.jsx(x.icon,{}),o.jsx("span",{className:"blocklet-action-text",children:x.name})]},x.name))}),m&&o.jsx(xn,{title:m.title,description:m.description,confirm:m.confirm,cancel:m.cancel,params:m.params,onConfirm:m.onConfirm,onCancel:m.onCancel})]})}Ot.propTypes={getComponentUrl:g.func,blocklet:g.object.isRequired,onStart:g.func.isRequired,onComplete:g.func.isRequired,variant:g.oneOf(["menu","group"]),hasPermission:g.bool,useBlockletUrlEvaluation:g.func};Ot.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 wn=te.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
|
-
`,$o=v.memo(Ot),Oo=e=>{const t={};let n=null;return M.forEachBlockletSync(e,r=>{t[r.meta.bundleDid]?n=M.getDisplayName(r,!0):r.meta.bundleDid&&(t[r.meta.bundleDid]=!0)}),n},Mo=(e,t,n)=>{var i;const{hostname:r,href:s}=e;if(!t)return s;if(n){const c=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(r);if(!c)return s;const l=c[0],d=((((i=t.site)==null?void 0:i.domainAliases)||[]).map(f=>f.value).filter(Boolean).find(f=>f.endsWith(O.DEFAULT_DID_DOMAIN))||"").replace(`.${O.DEFAULT_DID_DOMAIN}`,"");return d?s.replace(r,`${d}-${l}.${O.DEFAULT_IP_DOMAIN_SUFFIX}`):s}return s.replace(t.meta.bundleDid,t.appPid)};function ar(){const{t:e}=Z(),{api:t}=Qn(),{blocklet:n}=os(),{inService:r}=Qe(),[s,i]=v.useState(!1),[a,c]=v.useState(5),l=n&&n.structVersion!==O.APP_STRUCT_VERSION,u=()=>{try{if(n.status==="running"){ee.error(e("blocklet.migrate.tip.running"));return}const p=Oo(n);if(p){ee.error(e("blocklet.migrate.tip.duplicate",{name:p}));return}i(!0)}catch(p){ee.error(_t(p))}},d=()=>{const p=Mo(window.location,n,r);setTimeout(()=>{window.location.href=p},5e3),c(5),setInterval(()=>{c(b=>b-1)},1e3)},f=()=>i(!1);return[l&&o.jsxs(On,{severity:"warning",style:{margin:"12px 0"},children:[o.jsxs(C,{display:"flex",alignItems:"center",children:[o.jsx(St,{variant:"contained",size:"small",color:"primary",onClick:()=>u(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),o.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(p=>o.jsx(C,{display:"flex",alignItems:"center",children:e(`blocklet.migrate.intro.${p}`)},p))]},"alert"),n&&o.jsx(ks,{popup:!0,open:s,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:5*60*1e3,onSuccess:d,extraParams:{appDid:n.appDid,did:n.meta.did,wt:is(n,!0),title:M.getDisplayName(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:a>=0?e("blocklet.migrate.success",{sec:a}):"Redirecting..."},onClose:f},"connect")]}ar.propTypes={};function Mt({children:e,style:t,...n}){return o.jsx(As,{style:t,...n,children:e})}Mt.propTypes={children:g.any.isRequired,style:g.object};Mt.defaultProps={style:{}};const A={yellow:"#FFCF71",grey:"#aaaaaa",reverse:"#444",success:"#3ab39d",running:"#34BE74",error:"#D0021B",primary:"#1DC1C7"};function Nt({isResource:e,status:t,variant:n,source:r,progress:s,...i}){const{t:a}=v.useContext(wt),c={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"},l={added:A.grey,waiting:A.yellow,downloading:A.yellow,extracting:A.yellow,downloaded:A.grey,installing:A.yellow,installed:A.grey,starting:A.yellow,running:A.running,stopping:A.yellow,stopped:A.reverse,error:A.error,upgrading:A.yellow,restarting:A.yellow,corrupted:A.error,deleting:A.yellow,resource:A.primary},u=M.isInProgress(t),d=e&&t==="stopped"?"resource":t,f=a(`blocklet.status.${d}`);return n==="pin"?o.jsx(Be,{title:a("blocklet.statusTip",{status:f}),children:o.jsxs(C,{position:"relative",minHeight:14,minWidth:14,display:"flex",alignItems:"center",justifyContent:"center",...i,children:[o.jsx(C,{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:l[d],style:{opacity:.15}}),o.jsx(C,{position:"absolute",width:"55%",height:"55%",borderRadius:"50%",bgcolor:l[d]})]})}):n==="dot"?o.jsx(Be,{title:a("blocklet.statusTip",{status:f}),children:o.jsx(to,{color:l[d],...i})}):o.jsxs(Mt,{type:c[d],...i,children:[u&&o.jsx(re,{size:12,color:"inherit",style:{marginRight:5}}),f,d==="downloading"&&s?o.jsx("div",{style:{marginLeft:5},children:`${s} %`}):null]})}Nt.propTypes={status:g.string.isRequired,variant:g.oneOf(["dot","tag","pin"]),source:g.string,progress:g.number,isResource:g.bool};Nt.defaultProps={isResource:!1,variant:"tag",source:"",progress:0};const cr=v.createContext({});function zt({children:e,type:t}){const[n,r]=v.useState([]),s=v.useRef([]),i=l=>{if(!s.current.includes(l)){const u=[...s.current,l];r(u),s.current=u}},a=l=>{if(s.current.includes(l)){const u=s.current.filter(d=>d!==l);r(u),s.current=u}},c=l=>{const u=n.filter(f=>l.find(p=>p===f));Ys(u,n).forEach(f=>a(f))};return o.jsx(cr.Provider,{value:{type:t,deletingBlocklets:n,addDeletingDid:i,removeDeletingDid:a,matchDeletingDid:c},children:e})}zt.propTypes={type:g.string,children:g.node.isRequired};zt.defaultProps={type:"blocklets"};function kc(){return v.useContext(cr)}function No(){const e=Ss();return[...e.breakpoints.keys].reverse().reduce((n,r)=>{const s=G(e.breakpoints.up(r));return!n&&s?r:n},null)||"xs"}function zo(e){return o.jsx(Ze,{...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 Bo(e){return o.jsx(Ze,{...e,children:o.jsx("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"})})}function Uo(e){return o.jsx(Ze,{...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 Ho(e){return o.jsx(Ze,{...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 De={fontSize:20,marginInlineEnd:8},Fo={success:o.jsx(zo,{style:De}),warning:o.jsx(Bo,{style:De}),error:o.jsx(Uo,{style:De}),info:o.jsx(Ho,{style:De})},Vo=Cs(e=>{const t={xl:"400px",lg:"400px",md:"400px",sm:"300px"},n=e.palette.background.default;return{lessPadding:{paddingLeft:8*2.5},contentRoot:{...e.typography.body2,display:"flex",backgroundColor:n,color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},success:r=>({backgroundColor:`${_s[600]} !important`,width:t[r.breakpoint]}),error:r=>({backgroundColor:`${e.palette.error.dark} !important`,width:t[r.breakpoint]}),info:r=>({backgroundColor:`${e.palette.primary.main} !important`,width:t[r.breakpoint]}),warning:r=>({backgroundColor:`${Is[700]} !important`,width:t[r.breakpoint]}),icon:{fontSize:20},message:{display:"flex",alignItems:"center",padding:"8px 0",flex:1,width:0},action:{display:"flex",alignItems:"center",marginLeft:"auto",marginRight:-8,width:44}}});function Bt({keyId:e,notification:t={},viewAllUrl:n,content:r},s){const i=Vo({breakpoint:No()}),a=[i.contentRoot,i.lessPadding,i[t.severity]].join(" "),c=Fo[t.severity],{closeSnackbar:l}=Hn(),u=()=>l(e),d=qn(),f=()=>{l(e),d(n)};return o.jsxs($s,{ref:s,className:a,children:[o.jsxs("div",{className:i.message,children:[c,o.jsxs(Wo,{onClick:f,children:[o.jsx("span",{className:"title",children:t.title}),r||o.jsx("span",{className:"desc",children:t.description})]})]}),o.jsx("div",{className:i.action,children:o.jsx(yt,{"aria-label":"close",color:"inherit",onClick:u,size:"large",children:o.jsx(Os,{className:i.icon})},"close")})]})}const qo=v.forwardRef(Bt);Bt.propTypes={viewAllUrl:g.string.isRequired,keyId:g.number.isRequired,notification:g.object.isRequired,content:g.node};Bt.defaultProps={content:null};const Wo=te.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 lr({attachment:e}){const{data:t}=e;let n="";try{n=new URL(t.url).host}catch{n=t.url}return o.jsxs(jt,{target:"_blank",rel:"noopener noreferrer",href:t.url,className:"link",style:{wordBreak:"break-all"},children:[!!n&&o.jsx("span",{className:"url",children:n}),!!t.title&&o.jsx(C,{className:"title",style:{whiteSpace:"unset"},children:t.title}),!!t.description&&o.jsx(C,{className:"description",style:{whiteSpace:"unset",color:"rgba(75, 85, 99, 1)"},children:t.description}),!!t.image&&o.jsx("img",{srcSet:`${ze.getImagePath(t.image)}?w=128&h=128&fit=crop&auto=format&dpr=2 2x`,src:`${ze.getImagePath(t.image)}?w=128&h=128&fit=crop&auto=format`,alt:t.title||"",loading:"lazy",height:128,style:{borderRadius:"8px",maxWidth:"256px",objectFit:"cover"}})]})}lr.propTypes={attachment:g.object.isRequired};function ur({attachment:e}){const{data:t}=e;return o.jsx("img",{srcSet:`${ze.getImagePath(t.url)}?w=128&h=128&fit=crop&auto=format&dpr=2 2x`,src:`${ze.getImagePath(t.url)}?w=128&h=128&fit=crop&auto=format`,alt:t.title||"",loading:"lazy",height:128,style:{borderRadius:"8px",maxWidth:"256px",objectFit:"cover"}})}ur.propTypes={attachment:g.object.isRequired};function Ut({attachment:e,...t}){var c;const{data:n}=e,r=((c=n.color)==null?void 0:c.toLowerCase())||t.color,s=n.size||t.size,i=n.fontWeight||t.fontWeight||400;let a="14px";return s==="small"?a="12px":s==="normal"?a="14px":s==="big"?a="16px":s==="large"&&(a="18px"),o.jsx("span",{className:"title",style:{fontSize:a,color:r,whiteSpace:"unset",fontWeight:i},children:n.text})}Ut.propTypes={attachment:g.object.isRequired};Ht.propTypes={locale:g.string,data:g.object.isRequired};Ht.defaultProps={locale:"en"};function Ht({locale:e="en",data:t}){const n={zh:"来自",en:"from"}[e]||"from",r={zh:"接收",en:"Received"}[e]||"Received",i=`https://${ye.getUrlHost(t.chainHost)||ye.getChainHost(t.chainId)}/explorer/tokens/${t.address}/tx`;let a=t.amount;t.decimal&&(a=t.amount/10**t.decimal);const c=He(()=>({display:"flex",alignItems:"center",rowGap:2,columnGap:4,justifyContent:"space-between",flexWrap:"wrap"}));return o.jsx("a",{href:i,target:"_blank",rel:"noreferrer",children:o.jsxs(C,{display:"flex",flexDirection:"column",children:[o.jsxs(C,{sx:c,children:[o.jsx(N,{component:"div",sx:{fontWeight:700,color:"rgba(3, 7, 18, 1)"},children:r}),o.jsxs(N,{component:"div",align:"right",style:Fe.summaryStyle,flex:1,children:["+",a," ",t.symbol]})]}),o.jsxs(C,{sx:c,children:[o.jsx(N,{component:"div",style:{...Fe.remarkStyle,fontSize:14},children:n}),o.jsx(C,{sx:{maxWidth:"252px",fontSize:"14px"},children:o.jsx(Ct,{did:t.address,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:e})})]})]})})}Ft.propTypes={locale:g.string,data:g.object.isRequired};Ft.defaultProps={locale:"en"};function Ft({locale:e,data:t}){var l,u;const n={zh:"接收",en:"Received"}[e]||"Received",r={zh:"来自",en:"from"}[e]||"from",s=ye.getUrlHost(t.chainHost)||ye.getChainHost(t.chainId),i=t.did||((u=(l=t==null?void 0:t.credential)==null?void 0:l.issuer)==null?void 0:u.id)||"",a=`https://${s}/explorer/assets/${i}`,c=He(()=>({display:"flex",alignItems:"center",rowGap:2,columnGap:4,justifyContent:"space-between",flexWrap:"wrap"}));return o.jsx(C,{sx:{pr:1},children:o.jsx("a",{href:a,target:"_blank",style:{textDecoration:"none",color:"initial",display:"block"},rel:"noreferrer",children:o.jsxs(C,{display:"flex",flexDirection:"column",children:[o.jsxs(C,{sx:c,children:[o.jsx(N,{component:"div",sx:{fontWeight:700,color:"rgba(3, 7, 18, 1)"},children:n}),o.jsx(N,{component:"div",align:"right",style:Fe.summaryStyle,children:"+1 Asset"})]}),i?o.jsxs(C,{sx:c,children:[o.jsx(N,{component:"div",style:{...Fe.remarkStyle,fontSize:14},children:r}),o.jsx(C,{sx:{maxWidth:"252px",fontSize:"14px"},children:o.jsx(Ct,{did:i,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:e})})]}):null]})})})}dr.propTypes={data:g.object.isRequired,locale:g.string};function dr({data:e,locale:t="en"}){return o.jsxs("a",{href:e.url,target:"_blank",style:{display:"flex",textDecoration:"none",color:"initial"},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("div",{style:{color:"#a5a5a5",fontSize:10,maxWidth:"252px"},children:o.jsx(Ct,{did:e.appDID,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:t})})]})]})}Vt.propTypes={locale:g.string,data:g.object.isRequired};Vt.defaultProps={locale:"en"};function Vt({locale:e,data:t}){const n=ye.getChainHost(t.chainId),r=`https://${n}/explorer/txs/${t.hash}`,s={zh:"交易详情",en:"Transaction Details"}[e]||"Transaction Details",i={zh:"交易哈希",en:"Transaction Hash"}[e]||"Transaction Hash";return o.jsxs("a",{href:r,target:"_blank",style:{textDecoration:"none",color:"initial",display:"block",fontSize:14},rel:"noreferrer",children:[o.jsx("h6",{style:{color:"#a5a5a5",margin:0},children:n}),o.jsx("p",{style:{color:"#4598fa",margin:0},children:s}),o.jsxs("div",{style:{wordBreak:"break-all"},children:[i,": ",t.hash]})]})}function fr({data:e,isMd:t=!1}){return o.jsx(C,{display:"flex",flexDirection:t?"row":"column",justifyContent:"space-between",sx:{width:t?"100%":"auto"},children:e.items.map((n,r)=>o.jsx(Ut,{attachment:n,color:r===0?"rgba(156, 163, 175, 1)":"",size:r===0?"normal":"big",fontWeight:r===0?400:600},r))})}fr.propTypes={data:g.array.isRequired,isMd:g.bool};function pr({attachment:e,...t}){const{local:n}=v.useContext(wt),r=G(s=>s.breakpoints.down("md"));return o.jsxs(Ko,{"data-testid":"attachment-preview",...t,isMd:r,children:[e.type==="link"&&o.jsx(lr,{attachment:e,...t,isMd:r}),e.type==="image"&&o.jsx(ur,{attachment:e,isMd:r}),e.type==="text"&&o.jsx(Ut,{attachment:e,isMd:r}),e.type==="token"&&o.jsx(Ht,{data:e.data,local:n,isMd:r}),e.type==="asset"||e.type==="vc"?o.jsx(Ft,{data:e.data,local:n,isMd:r}):null,e.type==="dapp"&&o.jsx(dr,{data:e.data,local:n,isMd:r}),e.type==="transaction"&&o.jsx(Vt,{data:e.data,local:n,...t,isMd:r}),e.type==="divider"&&o.jsx(bt,{sx:{mb:1,mt:1},style:{color:Fn.dividerColor}}),e.type==="combined"&&o.jsx(fr,{data:e,isMd:r})]})}const Ko=te.div`
|
|
33
|
-
display: ${({sx:e={}})=>e.display||"flex"};
|
|
34
|
-
flex-direction: ${({sx:e={}})=>e.flexDirection||"column"};
|
|
35
|
-
gap: ${({sx:e={}})=>e.gap||1};
|
|
36
|
-
width: ${({isMd:e=!1})=>e?"100%":"auto"};
|
|
37
|
-
&:last-child {
|
|
38
|
-
margin-bottom: 0;
|
|
39
|
-
}
|
|
40
|
-
`;pr.propTypes={attachment:g.object.isRequired};function hr({data:e,...t}){const{items:n}=e;return o.jsx(Go,{...t,children:n.map(r=>o.jsxs(Mn,{variant:"outlined",sx:{p:2,borderRadius:"8px",minWidth:128},children:[o.jsxs(C,{display:"flex",alignItems:"center",gap:1,children:[r.icon?o.jsx("img",{src:r.icon,alt:r.title,style:{width:16,height:16}}):null,o.jsxs(C,{className:"metric-name",display:"flex",alignItems:"center",children:[r.title,r.subtitle?o.jsx(Be,{title:r.subtitle,arrow:!0,placement:"top",children:o.jsx(no,{fontSize:"small",sx:{fontSize:14,ml:.5}})}):null]})]}),o.jsxs(C,{className:"metric-number",sx:{color:r.content_color||"rgba(3, 7, 18, 1)"},children:[r.content,r.sub_content?o.jsxs("span",{className:"sub-content",style:{color:r.sub_content_color||"rgba(156, 163, 175, 1)"},children:["(",r.sub_content,")"]}):null]})]},r.title))})}const Go=te(C)`
|
|
41
|
-
display: flex;
|
|
42
|
-
justify-content: flex-start;
|
|
43
|
-
flex-wrap: wrap;
|
|
44
|
-
gap: 16px;
|
|
45
|
-
.metric-number {
|
|
46
|
-
font-size: 18px;
|
|
47
|
-
font-weight: 600;
|
|
48
|
-
.sub-content {
|
|
49
|
-
font-size: 12px;
|
|
50
|
-
font-weight: 400;
|
|
51
|
-
margin-left: 4px;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
.metric-name {
|
|
55
|
-
font-size: 14px;
|
|
56
|
-
color: rgba(156, 163, 175, 1);
|
|
57
|
-
}
|
|
58
|
-
`;hr.propTypes={data:g.object.isRequired};function mr({data:e}){const{items:t}=e,n=G(a=>a.breakpoints.down("sm")),r=G(a=>a.breakpoints.down("md")),s=G(a=>a.breakpoints.down("lg")),i=()=>n?1:r?3:s?4:6;return o.jsx(Ls,{variant:"quilted",cols:i(),gap:8,rowHeight:128,sx:{margin:0},children:t.map(a=>{const c=a.cover||a.display;return c?o.jsx("a",{href:a.link,target:"_blank",rel:"noopener noreferrer",children:o.jsx(Es,{children:o.jsx("img",{srcSet:`${c}?w=128&h=128&fit=crop&auto=format&dpr=2 2x`,src:`${c}?w=128&h=128&fit=crop&auto=format`,alt:a.title||"",loading:"lazy",style:{borderRadius:"8px"}})})},c):null})})}mr.propTypes={data:g.object.isRequired};function qt({data:e,feedType:t,...n}){return o.jsxs(Qo,{...n,children:[t==="data-tracker"&&e.type==="table"&&o.jsx(hr,{data:e}),(t==="graphic"||t==="gallery")&&o.jsx(mr,{data:e})]})}const Qo=te.div`
|
|
59
|
-
display: flex;
|
|
60
|
-
flex-direction: column;
|
|
61
|
-
width: 100%;
|
|
62
|
-
margin-bottom: 4px;
|
|
63
|
-
&:last-child {
|
|
64
|
-
margin-bottom: 0;
|
|
65
|
-
}
|
|
66
|
-
`;qt.propTypes={data:g.object.isRequired,feedType:g.string};qt.defaultProps={feedType:"data-tracker"};const Zo=e=>{let t="rgba(0, 0, 0, 0.12)";return e==="warning"?t="#DE9E37":e==="error"?t="#F16E6E":t="rgba(0, 0, 0, 0.12)",t},Yo=e=>e.every(t=>t.type==="text"),Jo=e=>e.every(t=>t.type==="image"),Xo=e=>Js(e,2).map(t=>({type:"combined",items:t})),ei=e=>{if(!e.length||e.length<=1)return!1;const t=e[0].type;return e.every(n=>n.type===t)},ti=async(e,t)=>{const r=new Ms().user;if(r)try{return await r.getUserPublicInfo({did:e})?await r.getProfileUrl({did:e,locale:t}):void 0}catch(s){console.error(s);return}};function Wt({notification:e,severity:t,showSke:n=!0}){const{attachments:r,data:s,...i}=e,a=G(d=>d.breakpoints.down("md"));if((!r||!r.length)&&Oe(s))return null;const c=Zo(t),l=(d,f=!1)=>{if(!d&&!Array.isArray(d))return null;let p=d,b={},j="horizontal";f&&Yo(d)&&(p=Xo(d),j="vertical",b={display:"flex",gap:1,flexDirection:"row",justifyContent:"flex-start",flexWrap:"wrap",height:"100%"});const m=ei(p);return o.jsx(C,{sx:{display:"flex",gap:1,flexDirection:f?"row":"column",justifyContent:"flex-start",alignItems:f?"center":"unset",flexWrap:"wrap"},children:p.map((w,y)=>w.type==="section"?o.jsx(v.Fragment,{children:l(w.fields,!0)},y):o.jsxs(v.Fragment,{children:[o.jsx(pr,{attachment:w,sx:b,...i}),!(a&&j==="vertical")&&m&&p.length>1&&y!==p.length-1?o.jsx(bt,{orientation:j,style:{color:Fn.dividerColor},sx:j==="vertical"?{ml:2,mr:2,height:32}:{}}):null]},y))})},u=Jo(r);return o.jsx(ni,{children:o.jsxs("div",{className:"message-in-list",children:[r.length>0&&o.jsx("div",{className:"message-container",children:u?l(r):o.jsx(Mn,{variant:"outlined",sx:{p:2,borderRadius:"8px",minWidth:128,borderColor:c},children:l(r)})}),!Oe(s)&&o.jsx("div",{className:"message-container",children:o.jsx("div",{className:"data-container",children:o.jsx(qt,{data:s,feedType:e.feedType})})}),r.length===0&&Oe(s)&&n&&o.jsx(Ts,{className:"attach-ske",style:{marginTop:10},variant:"rectangular",height:150})]})})}const ni=te.div`
|
|
67
|
-
display: flex;
|
|
68
|
-
flex-direction: column;
|
|
69
|
-
.message-in-list {
|
|
70
|
-
padding: 8px 8px 8px 0;
|
|
71
|
-
display: flex;
|
|
72
|
-
border-radius: 8px;
|
|
73
|
-
}
|
|
74
|
-
.message-title {
|
|
75
|
-
color: #25292f;
|
|
76
|
-
font-size: 18px;
|
|
77
|
-
font-weight: bold;
|
|
78
|
-
word-break: break-all;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.attach-ske {
|
|
82
|
-
position: relative;
|
|
83
|
-
margin-left: 10px;
|
|
84
|
-
&::after {
|
|
85
|
-
content: '';
|
|
86
|
-
position: absolute;
|
|
87
|
-
left: -10px;
|
|
88
|
-
top: 0;
|
|
89
|
-
height: 100%;
|
|
90
|
-
width: 4px;
|
|
91
|
-
background-color: ${e=>e.leftLineColor};
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.message-body {
|
|
96
|
-
color: #25292f;
|
|
97
|
-
font-size: 16px;
|
|
98
|
-
word-break: break-all;
|
|
99
|
-
white-space: pre-line;
|
|
100
|
-
}
|
|
101
|
-
.message-container {
|
|
102
|
-
display: flex;
|
|
103
|
-
flex-direction: column;
|
|
104
|
-
justify-content: flex-start;
|
|
105
|
-
.data-container,
|
|
106
|
-
.attachment-container {
|
|
107
|
-
display: flex;
|
|
108
|
-
flex-direction: column;
|
|
109
|
-
width: 100%;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
.actions-container {
|
|
113
|
-
margin-top: 10px;
|
|
114
|
-
.actions-item {
|
|
115
|
-
margin-right: 8px;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
`;Wt.propTypes={severity:g.string.isRequired,notification:g.object.isRequired,showSke:g.bool};Wt.defaultProps={showSke:!0};const nt=e=>Ns.sanitize(e,{ALLOWED_ATTR:["href","target","rel","class","id","style"]}),ri=async(e,t)=>{const{type:n,did:r}=e;return Kn.isSameAddr(n,"did")?await ti(r,t)||Ve.getLink(e):Ve.getLink(e)},si=async(e,t,n=!0)=>{const r=Ve.toTextList(e);return await Promise.all(r.map(async i=>{if(i instanceof Ve.Link){if(n){const a=await ri(i,t),{type:c,chainId:l,did:u}=i;return Kn.isSameAddr(c,"dapp")?`<em style="font-weight:bold;" data-type="${c}" data-chain-id="${l}" data-did="${u}">${i.text}</em>`:a?`<a target="_blank" rel="noopener noreferrer" style="color:#4598fa;font-weight:bold;" href="${a}">${i.text}</a>`:`<em style="font-weight:bold;" data-type="${c}" data-chain-id="${l}" data-did="${u}">${i.text}</em>`}return i.text}return i})).then(i=>i.join(""))};gr.propTypes={notification:g.object,rows:g.number,minimal:g.bool};function gr({notification:e,rows:t=2,minimal:n=!1}){const[r,s]=v.useState(!1),[i,a]=v.useState(""),{t:c,locale:l}=Z(),u=v.useMemo(()=>{const{attachments:w}=e||{};if(!w)return!1;try{return w.length>0}catch{return!1}},[e]),d=v.useMemo(()=>{const{blocks:w}=e||{};if(!w)return!1;try{return w.length>0}catch{return!1}},[e]),f=v.useMemo(()=>{const{description:w}=e||{};return!!w},[e]),p=v.useMemo(()=>{const{data:w}=e||{};return!Oe(w)},[e]),b=v.useMemo(()=>u||d||f||p,[u,d,f,p]);if(v.useEffect(()=>{si((e==null?void 0:e.description)??"",l).then(w=>{a(w)})},[e==null?void 0:e.description,l]),!b)return null;const j=()=>t===0?"":r?`<span class='toggle-btn' data-name='toggle-expanded'>${c("common.collapse")}</span>`:`...<span class='toggle-btn' data-name='toggle-expanded'>${c("common.expand")}</span>`,m=w=>{const{target:y}=w;y.getAttribute("data-name")==="toggle-expanded"&&s(!r)};return o.jsxs(oi,{color:n?"#fff":"",children:[o.jsx(C,{className:"text-container",children:o.jsx(C,{component:"div",sx:{marginBottom:"4px"},onClick:m,children:i&&(!r&&t>0?o.jsx(Xs,{basedOn:"letters",unsafeHTML:nt(i),maxLine:t,ellipsisHTML:nt(j())}):o.jsx(N,{component:"div",className:`content ${t===0?"ellipsis":""}`,style:{whiteSpace:"pre-line!important",fontSize:"14px"},dangerouslySetInnerHTML:{__html:nt(`${i}${j()}`)}}))})}),!n&&(u||p)?o.jsx(Wt,{severity:e.severity,notification:e}):null]})}const oi=te(C)`
|
|
119
|
-
margin-bottom: 6px;
|
|
120
|
-
color: ${e=>e.color?e.color:"rgba(75, 85, 99, 1)"};
|
|
121
|
-
.text-container {
|
|
122
|
-
word-wrap: break-word;
|
|
123
|
-
font-size: 14px;
|
|
124
|
-
color: ${e=>e.color?e.color:"rgba(75, 85, 99, 1)"};
|
|
125
|
-
.toggle-btn {
|
|
126
|
-
display: inline-block;
|
|
127
|
-
white-space: nowrap;
|
|
128
|
-
cursor: pointer;
|
|
129
|
-
margin-left: 4px;
|
|
130
|
-
font-size: 14px;
|
|
131
|
-
color: rgba(59, 130, 246, 1);
|
|
132
|
-
}
|
|
133
|
-
.content.ellipsis {
|
|
134
|
-
overflow: hidden;
|
|
135
|
-
text-overflow: ellipsis;
|
|
136
|
-
display: block;
|
|
137
|
-
display: -webkit-box;
|
|
138
|
-
-webkit-box-orient: vertical;
|
|
139
|
-
-webkit-line-clamp: 2;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
`,ii=v.memo(gr);function $(e,t,n){return Nn.call(t,"css")?o.jsx(zn,Bn(e,t),n):o.jsx(e,t,n)}function rt(e,t,n){return Nn.call(t,"css")?o.jsxs(zn,Bn(e,t),n):o.jsxs(e,t,n)}/**
|
|
143
|
-
* (c) Iconify
|
|
144
|
-
*
|
|
145
|
-
* For the full copyright and license information, please view the license.txt or license.gpl.txt
|
|
146
|
-
* files at https://github.com/iconify/iconify
|
|
147
|
-
*
|
|
148
|
-
* Licensed under MIT.
|
|
149
|
-
*
|
|
150
|
-
* @license MIT
|
|
151
|
-
* @version 3.1.1
|
|
152
|
-
*/const xr=Object.freeze({left:0,top:0,width:16,height:16}),qe=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),we=Object.freeze({...xr,...qe}),at=Object.freeze({...we,body:"",hidden:!1});function ai(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Sn(e,t){const n=ai(e,t);for(const r in at)r in qe?r in e&&!(r in n)&&(n[r]=qe[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function ci(e,t){const n=e.icons,r=e.aliases||Object.create(null),s=Object.create(null);function i(a){if(n[a])return s[a]=[];if(!(a in s)){s[a]=null;const c=r[a]&&r[a].parent,l=c&&i(c);l&&(s[a]=[c].concat(l))}return s[a]}return Object.keys(n).concat(Object.keys(r)).forEach(i),s}function li(e,t,n){const r=e.icons,s=e.aliases||Object.create(null);let i={};function a(c){i=Sn(r[c]||s[c],i)}return a(t),n.forEach(a),Sn(e,i)}function ui(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(s=>{t(s,null),n.push(s)});const r=ci(e);for(const s in r){const i=r[s];i&&(t(s,li(e,s,i)),n.push(s))}return n}const ge=/^[a-z0-9]+(-[a-z0-9]+)*$/,he=(e,t,n,r="")=>{const s=e.split(":");if(e.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;r=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const c=s.pop(),l=s.pop(),u={provider:s.length>0?s[0]:r,prefix:l,name:c};return t&&!Me(u)?null:u}const i=s[0],a=i.split("-");if(a.length>1){const c={provider:r,prefix:a.shift(),name:a.join("-")};return t&&!Me(c)?null:c}if(n&&r===""){const c={provider:r,prefix:"",name:i};return t&&!Me(c,n)?null:c}return null},Me=(e,t)=>e?!!((e.provider===""||e.provider.match(ge))&&(t&&e.prefix===""||e.prefix.match(ge))&&e.name.match(ge)):!1,di={provider:"",aliases:{},not_found:{},...xr};function st(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function fi(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!st(e,di))return null;const n=t.icons;for(const s in n){const i=n[s];if(!s.match(ge)||typeof i.body!="string"||!st(i,at))return null}const r=t.aliases||Object.create(null);for(const s in r){const i=r[s],a=i.parent;if(!s.match(ge)||typeof a!="string"||!n[a]&&!r[a]||!st(i,at))return null}return t}const We=Object.create(null);function pi(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Q(e,t){const n=We[e]||(We[e]=Object.create(null));return n[t]||(n[t]=pi(e,t))}function Kt(e,t){return fi(t)?ui(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function hi(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function mi(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(We)).forEach(s=>{(typeof s=="string"&&typeof t=="string"?[t]:Object.keys(We[s]||{})).forEach(a=>{const c=Q(s,a);n=n.concat(Object.keys(c.icons).map(l=>(s!==""?"@"+s+":":"")+a+":"+l))})}),n}let Gt=!1;function gi(e){return Gt}function Se(e){const t=typeof e=="string"?he(e,!0,Gt):e;if(t){const n=Q(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function xi(e,t){const n=he(e,!0,Gt);if(!n)return!1;const r=Q(n.provider,n.prefix);return hi(r,n.name,t)}function vr(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!Me({provider:t,prefix:n,name:"a"}))return!1;const r=Q(t,n);return!!Kt(r,e)}function vi(e){return!!Se(e)}function yi(e){const t=Se(e);return t?{...we,...t}:null}const yr=Object.freeze({width:null,height:null}),br=Object.freeze({...yr,...qe}),bi=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ji=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ct(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(bi);if(r===null||!r.length)return e;const s=[];let i=r.shift(),a=ji.test(i);for(;;){if(a){const c=parseFloat(i);isNaN(c)?s.push(i):s.push(Math.ceil(c*t*n)/n)}else s.push(i);if(i=r.shift(),i===void 0)return s.join("");a=!a}}const wi=e=>e==="unset"||e==="undefined"||e==="none";function Ye(e,t){const n={...we,...e},r={...br,...t},s={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(j=>{const m=[],w=j.hFlip,y=j.vFlip;let T=j.rotate;w?y?T+=2:(m.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),m.push("scale(-1 1)"),s.top=s.left=0):y&&(m.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),m.push("scale(1 -1)"),s.top=s.left=0);let L;switch(T<0&&(T-=Math.floor(T/4)*4),T=T%4,T){case 1:L=s.height/2+s.top,m.unshift("rotate(90 "+L.toString()+" "+L.toString()+")");break;case 2:m.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:L=s.width/2+s.left,m.unshift("rotate(-90 "+L.toString()+" "+L.toString()+")");break}T%2===1&&(s.left!==s.top&&(L=s.left,s.left=s.top,s.top=L),s.width!==s.height&&(L=s.width,s.width=s.height,s.height=L)),m.length&&(i='<g transform="'+m.join(" ")+'">'+i+"</g>")});const a=r.width,c=r.height,l=s.width,u=s.height;let d,f;a===null?(f=c===null?"1em":c==="auto"?u:c,d=ct(f,l/u)):(d=a==="auto"?l:a,f=c===null?ct(d,u/l):c==="auto"?u:c);const p={},b=(j,m)=>{wi(m)||(p[j]=m.toString())};return b("width",d),b("height",f),p.viewBox=s.left.toString()+" "+s.top.toString()+" "+l.toString()+" "+u.toString(),{attributes:p,body:i}}const Si=/\sid="(\S+)"/g,Ci="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let _i=0;function jr(e,t=Ci){const n=[];let r;for(;r=Si.exec(e);)n.push(r[1]);if(!n.length)return e;const s="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const a=typeof t=="function"?t(i):t+(_i++).toString(),c=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+a+s+"$3")}),e=e.replace(new RegExp(s,"g"),""),e}const ce={local:!0,session:!0},wr={local:new Set,session:new Set};let Qt=!1;function Ii(e){Qt=e}const Cn="iconify2",be="iconify",Sr=be+"-count",_n=be+"-version",Cr=36e5,Li=168;function lt(e,t){try{return e.getItem(t)}catch{}}function Zt(e,t,n){try{return e.setItem(t,n),!0}catch{}}function In(e,t){try{e.removeItem(t)}catch{}}function ut(e,t){return Zt(e,Sr,t.toString())}function dt(e){return parseInt(lt(e,Sr))||0}let ke=typeof window>"u"?{}:window;function _r(e){const t=e+"Storage";try{if(ke&&ke[t]&&typeof ke[t].length=="number")return ke[t]}catch{}ce[e]=!1}function Ir(e,t){const n=_r(e);if(!n)return;const r=lt(n,_n);if(r!==Cn){if(r){const c=dt(n);for(let l=0;l<c;l++)In(n,be+l.toString())}Zt(n,_n,Cn),ut(n,0);return}const s=Math.floor(Date.now()/Cr)-Li,i=c=>{const l=be+c.toString(),u=lt(n,l);if(typeof u=="string"){try{const d=JSON.parse(u);if(typeof d=="object"&&typeof d.cached=="number"&&d.cached>s&&typeof d.provider=="string"&&typeof d.data=="object"&&typeof d.data.prefix=="string"&&t(d,c))return!0}catch{}In(n,l)}};let a=dt(n);for(let c=a-1;c>=0;c--)i(c)||(c===a-1?(a--,ut(n,a)):wr[e].add(c))}function Lr(){if(!Qt){Ii(!0);for(const e in ce)Ir(e,t=>{const n=t.data,r=t.provider,s=n.prefix,i=Q(r,s);if(!Kt(i,n).length)return!1;const a=n.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,a):a,!0})}}function Er(e,t){switch(e){case"local":case"session":ce[e]=t;break;case"all":for(const n in ce)ce[n]=t;break}}const ft=Object.create(null);function Tr(e,t){ft[e]=t}function pt(e){return ft[e]||ft[""]}function Yt(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Je=Object.create(null),me=["https://api.simplesvg.com","https://api.unisvg.com"],Ne=[];for(;me.length>0;)me.length===1||Math.random()>.5?Ne.push(me.shift()):Ne.push(me.pop());Je[""]=Yt({resources:["https://api.iconify.design"].concat(Ne)});function Pr(e,t){const n=Yt(t);return n===null?!1:(Je[e]=n,!0)}function Xe(e){return Je[e]}function Ei(){return Object.keys(Je)}const Ti=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Ke=Ti();function Pi(e){Ke=e}function Ri(){return Ke}function Di(e,t){const n=Xe(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let s=0;n.resources.forEach(a=>{s=Math.max(s,a.length)});const i=t+".json?icons=";r=n.maxURL-s-n.path.length-i.length}return r}function ki(e){return e===404}const Ai=(e,t,n)=>{const r=[],s=Di(e,t),i="icons";let a={type:i,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,u)=>{c+=l.length+1,c>=s&&u>0&&(r.push(a),a={type:i,provider:e,prefix:t,icons:[]},c=l.length),a.icons.push(l)}),r.push(a),r};function $i(e){if(typeof e=="string"){const t=Xe(e);if(t)return t.path}return"/"}const Oi=(e,t,n)=>{if(!Ke){n("abort",424);return}let r=$i(t.provider);switch(t.type){case"icons":{const i=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});r+=i+".json?"+l.toString();break}case"custom":{const i=t.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let s=503;Ke(e+r).then(i=>{const a=i.status;if(a!==200){setTimeout(()=>{n(ki(a)?"abort":"next",a)});return}return s=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",s)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",s)})},Mi={prepare:Ai,send:Oi};function Ni(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((s,i)=>s.provider!==i.provider?s.provider.localeCompare(i.provider):s.prefix!==i.prefix?s.prefix.localeCompare(i.prefix):s.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return e.forEach(s=>{if(r.name===s.name&&r.prefix===s.prefix&&r.provider===s.provider)return;r=s;const i=s.provider,a=s.prefix,c=s.name,l=n[i]||(n[i]=Object.create(null)),u=l[a]||(l[a]=Q(i,a));let d;c in u.icons?d=t.loaded:a===""||u.missing.has(c)?d=t.missing:d=t.pending;const f={provider:i,prefix:a,name:c};d.push(f)}),t}function Rr(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(s=>s.id!==t))})}function zi(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,s=e.prefix;t.forEach(i=>{const a=i.icons,c=a.pending.length;a.pending=a.pending.filter(l=>{if(l.prefix!==s)return!0;const u=l.name;if(e.icons[u])a.loaded.push({provider:r,prefix:s,name:u});else if(e.missing.has(u))a.missing.push({provider:r,prefix:s,name:u});else return n=!0,!0;return!1}),a.pending.length!==c&&(n||Rr([e],i.id),i.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),i.abort))})}))}let Bi=0;function Ui(e,t,n){const r=Bi++,s=Rr.bind(null,n,r);if(!t.pending.length)return s;const i={id:r,icons:t,callback:e,abort:s};return n.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(i)}),s}function Hi(e,t=!0,n=!1){const r=[];return e.forEach(s=>{const i=typeof s=="string"?he(s,t,n):s;i&&r.push(i)}),r}var Fi={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Vi(e,t,n,r){const s=e.resources.length,i=e.random?Math.floor(Math.random()*s):e.index;let a;if(e.random){let h=e.resources.slice(0);for(a=[];h.length>1;){const I=Math.floor(Math.random()*h.length);a.push(h[I]),h=h.slice(0,I).concat(h.slice(I+1))}a=a.concat(h)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const c=Date.now();let l="pending",u=0,d,f=null,p=[],b=[];typeof r=="function"&&b.push(r);function j(){f&&(clearTimeout(f),f=null)}function m(){l==="pending"&&(l="aborted"),j(),p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function w(h,I){I&&(b=[]),typeof h=="function"&&b.push(h)}function y(){return{startTime:c,payload:t,status:l,queriesSent:u,queriesPending:p.length,subscribe:w,abort:m}}function T(){l="failed",b.forEach(h=>{h(void 0,d)})}function L(){p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function P(h,I,S){const _=I!=="success";switch(p=p.filter(E=>E!==h),l){case"pending":break;case"failed":if(_||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){d=S,T();return}if(_){d=S,p.length||(a.length?k():T());return}if(j(),L(),!e.random){const E=e.resources.indexOf(h.resource);E!==-1&&E!==e.index&&(e.index=E)}l="completed",b.forEach(E=>{E(S)})}function k(){if(l!=="pending")return;j();const h=a.shift();if(h===void 0){if(p.length){f=setTimeout(()=>{j(),l==="pending"&&(L(),T())},e.timeout);return}T();return}const I={status:"pending",resource:h,callback:(S,_)=>{P(I,S,_)}};p.push(I),u++,f=setTimeout(k,e.rotate),n(h,t,I.callback)}return setTimeout(k),y}function Dr(e){const t={...Fi,...e};let n=[];function r(){n=n.filter(c=>c().status==="pending")}function s(c,l,u){const d=Vi(t,c,l,(f,p)=>{r(),u&&u(f,p)});return n.push(d),d}function i(c){return n.find(l=>c(l))||null}return{query:s,find:i,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:r}}function Ln(){}const ot=Object.create(null);function qi(e){if(!ot[e]){const t=Xe(e);if(!t)return;const n=Dr(t),r={config:t,redundancy:n};ot[e]=r}return ot[e]}function kr(e,t,n){let r,s;if(typeof e=="string"){const i=pt(e);if(!i)return n(void 0,424),Ln;s=i.send;const a=qi(e);a&&(r=a.redundancy)}else{const i=Yt(e);if(i){r=Dr(i);const a=e.resources?e.resources[0]:"",c=pt(a);c&&(s=c.send)}}return!r||!s?(n(void 0,424),Ln):r.query(t,s,n)().abort}function Wi(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in ce)Ir(r,s=>{const i=s.data;return s.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function Ki(e,t){Qt||Lr();function n(r){let s;if(!ce[r]||!(s=_r(r)))return;const i=wr[r];let a;if(i.size)i.delete(a=Array.from(i).shift());else if(a=dt(s),!ut(s,a+1))return;const c={cached:Math.floor(Date.now()/Cr),provider:e.provider,data:t};return Zt(s,be+a.toString(),JSON.stringify(c))}t.lastModified&&!Wi(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function En(){}function Gi(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,zi(e)}))}function Qi(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,s=e.iconsToLoad;delete e.iconsToLoad;let i;if(!s||!(i=pt(n)))return;i.prepare(n,r,s).forEach(c=>{kr(n,c,l=>{if(typeof l!="object")c.icons.forEach(u=>{e.missing.add(u)});else try{const u=Kt(e,l);if(!u.length)return;const d=e.pendingIcons;d&&u.forEach(f=>{d.delete(f)}),Ki(e,l)}catch(u){console.error(u)}Gi(e)})})}))}const Zi=e=>{const n=Q(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},Jt=(e,t)=>{const n=Hi(e,!0,gi()),r=Ni(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,En)}),()=>{l=!1}}const s=Object.create(null),i=[];let a,c;return r.pending.forEach(l=>{const{provider:u,prefix:d}=l;if(d===c&&u===a)return;a=u,c=d,i.push(Q(u,d));const f=s[u]||(s[u]=Object.create(null));f[d]||(f[d]=[])}),r.pending.forEach(l=>{const{provider:u,prefix:d,name:f}=l,p=Q(u,d),b=p.pendingIcons||(p.pendingIcons=new Set);b.has(f)||(b.add(f),s[u][d].push(f))}),i.forEach(l=>{const{provider:u,prefix:d}=l;s[u][d].length&&Qi(l,s[u][d])}),t?Ui(t,r,i):En},Yi=e=>new Promise((t,n)=>{const r=typeof e=="string"?he(e,!0):e;if(!r){n(e);return}Jt([r||e],s=>{if(s.length&&r){const i=Se(r);if(i){t({...we,...i});return}}n(e)})});function Ar(e,t){const n={...e};for(const r in t){const s=t[r],i=typeof s;r in yr?(s===null||s&&(i==="string"||i==="number"))&&(n[r]=s):i===typeof n[r]&&(n[r]=r==="rotate"?s%4:s)}return n}const et={...br,inline:!1},it="iconify",ht="iconify-inline",se="iconifyData"+Date.now();let le=[];function Ce(e){for(let t=0;t<le.length;t++){const n=le[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function $r(e,t=!1){let n=Ce(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},le.push(n),n)}function Ji(){if(document.documentElement)return $r(document.documentElement);le.push({node:()=>document.documentElement})}function Xi(e){le=le.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function _e(){return le}function ea(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let xe=null;const ta={childList:!0,subtree:!0,attributes:!0};function Or(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,xe&&xe(e)}))}function na(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let r=0;r<t.length;r++){const s=t[r];if(s.addedNodes&&s.addedNodes.length>0||s.type==="attributes"&&s.target[se]!==void 0){n.paused||Or(e);return}}}function Mr(e,t){e.observer.instance.observe(t,ta)}function Ge(e){let t=e.observer;if(t&&t.instance)return;const n=typeof e.node=="function"?e.node():e.node;!n||!window||(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(na.bind(null,e)),Mr(e,n),t.paused||Or(e))}function Tn(){_e().forEach(Ge)}function Nr(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function ra(e){const t=xe!==null;if(xe!==e&&(xe=e,t&&_e().forEach(Nr)),t){Tn();return}ea(Tn)}function mt(e){(e?[e]:_e()).forEach(t=>{if(!t.observer){t.observer={paused:1};return}const n=t.observer;if(n.paused++,n.paused>1||!n.instance)return;n.instance.disconnect()})}function sa(e){if(e){const t=Ce(e);t&&mt(t)}else mt()}function gt(e){(e?[e]:_e()).forEach(t=>{if(!t.observer){Ge(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const r=typeof t.node=="function"?t.node():t.node;if(r)n.instance?Mr(t,r):Ge(t);else return}})}function oa(e){if(e){const t=Ce(e);t&>(t)}else gt()}function zr(e,t=!1){const n=$r(e,t);return Ge(n),n}function Br(e){const t=Ce(e);t&&(Nr(t),Xi(e))}function ia(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,r=t.customisations;for(const s in et)if(n[s]!==r[s])return!0;return!1}function aa(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(s){for(;s<0;)s+=4;return s%4}if(n===""){const s=parseInt(e);return isNaN(s)?0:r(s)}else if(n!==e){let s=0;switch(n){case"%":s=25;break;case"deg":s=90}if(s){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/s,i%1===0?r(i):0)}}return t}const ca=/[\s,]+/;function la(e,t){t.split(ca).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const ua=["width","height"],da=["inline","hFlip","vFlip"];function fa(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function pa(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&he(t,!0);if(!n)return null;const r={...et,inline:e.classList&&e.classList.contains(ht)};ua.forEach(c=>{const l=e.getAttribute("data-"+c);l&&(r[c]=l)});const s=e.getAttribute("data-rotate");typeof s=="string"&&(r.rotate=aa(s));const i=e.getAttribute("data-flip");typeof i=="string"&&la(r,i),da.forEach(c=>{const l="data-"+c,u=fa(e.getAttribute(l),l);typeof u=="boolean"&&(r[c]=u)});const a=e.getAttribute("data-mode");return{name:t,icon:n,customisations:r,mode:a}}const ha="svg."+it+", i."+it+", span."+it+", i."+ht+", span."+ht;function ma(e){const t=[];return e.querySelectorAll(ha).forEach(n=>{const r=n[se]||n.tagName.toLowerCase()!=="svg"?pa(n):null;r&&t.push({node:n,props:r})}),t}function Ur(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let ve;function ga(){try{ve=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{ve=null}}function xa(e){return ve===void 0&&ga(),ve?ve.createHTML(e):e}function Hr(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function Fr(e,t,n,r){const s=e.classList;if(r){const a=r.classList;Array.from(a).forEach(c=>{s.add(c)})}const i=[];return t.forEach(a=>{s.contains(a)?n.has(a)&&i.push(a):(s.add(a),i.push(a))}),n.forEach(a=>{t.has(a)||s.remove(a)}),i}function Vr(e,t,n){const r=e.style;(n||[]).forEach(i=>{r.removeProperty(i)});const s=[];for(const i in t)r.getPropertyValue(i)||(s.push(i),r.setProperty(i,t[i]));return s}function qr(e,t,n){let r;try{r=document.createElement("span")}catch{return e}const s=t.customisations,i=Ye(n,s),a=e[se],c=Ur(jr(i.body),{"aria-hidden":"true",role:"img",...i.attributes});r.innerHTML=xa(c);const l=r.childNodes[0],u=e.attributes;for(let j=0;j<u.length;j++){const m=u.item(j),w=m.name;w!=="class"&&!l.hasAttribute(w)&&l.setAttribute(w,m.value)}const d=Hr(t.icon),f=Fr(l,d,new Set(a&&a.addedClasses),e),p=Vr(l,s.inline?{"vertical-align":"-0.125em"}:{},a&&a.addedStyles),b={...t,status:"loaded",addedClasses:f,addedStyles:p};return l[se]=b,e.parentNode&&e.parentNode.replaceChild(l,e),l}function va(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ya(e){return"data:image/svg+xml,"+va(e)}function ba(e){return'url("'+ya(e)+'")'}const ja={display:"inline-block"},xt={"background-color":"currentColor"},Wr={"background-color":"transparent"},Pn={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Rn={"-webkit-mask":xt,mask:xt,background:Wr};for(const e in Rn){const t=Rn[e];for(const n in Pn)t[e+"-"+n]=Pn[n]}function Dn(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function wa(e,t,n,r){const s=t.customisations,i=Ye(n,s),a=i.attributes,c=e[se],l=Ur(i.body,{...a,width:n.width+"",height:n.height+""}),u=Hr(t.icon),d=Fr(e,u,new Set(c&&c.addedClasses)),p={"--svg":ba(l),width:Dn(a.width),height:Dn(a.height),...ja,...r?xt:Wr};s.inline&&(p["vertical-align"]="-0.125em");const b=Vr(e,p,c&&c.addedStyles),j={...t,status:"loaded",addedClasses:d,addedStyles:b};return e[se]=j,e}let Ae=!1;function Sa(){Ae||(Ae=!0,setTimeout(()=>{Ae&&(Ae=!1,pe())}))}function pe(e,t=!1){const n=Object.create(null);function r(s,i){const{provider:a,prefix:c,name:l}=s,u=Q(a,c),d=u.icons[l];if(d)return{status:"loaded",icon:d};if(u.missing.has(l))return{status:"missing"};if(i&&!Zi(s)){const f=n[a]||(n[a]=Object.create(null));(f[c]||(f[c]=new Set)).add(l)}return{status:"loading"}}(e?[e]:_e()).forEach(s=>{const i=typeof s.node=="function"?s.node():s.node;if(!i||!i.querySelectorAll)return;let a=!1,c=!1;function l(u,d,f){if(c||(c=!0,mt(s)),u.tagName.toUpperCase()!=="SVG"){const p=d.mode,b=p==="mask"||(p==="bg"?!1:p==="style"?f.body.indexOf("currentColor")!==-1:null);if(typeof b=="boolean"){wa(u,d,{...we,...f},b);return}}qr(u,d,f)}ma(i).forEach(({node:u,props:d})=>{const f=u[se];if(!f){const{status:b,icon:j}=r(d.icon,!0);if(j){l(u,d,j);return}a=a||b==="loading",u[se]={...d,status:b};return}let p;if(ia(f,d)){if(p=r(d.icon,f.name!==d.name),!p.icon){a=a||p.status==="loading",Object.assign(f,{...d,status:p.status});return}}else{if(f.status!=="loading")return;if(p=r(d.icon,!1),!p.icon){f.status=p.status;return}}l(u,d,p.icon)}),s.temporary&&!a?Br(i):t&&a?zr(i,!0):c&&s.observer&>(s)});for(const s in n){const i=n[s];for(const a in i){const c=i[a];Jt(Array.from(c).map(l=>({provider:s,prefix:a,name:l})),Sa)}}}function Ca(e){const t=Ce(e);t?pe(t):pe({node:e,temporary:!0},!0)}function Kr(e,t,n=!1){const r=Se(e);if(!r)return null;const s=he(e),i=Ar(et,t||{}),a=qr(document.createElement("span"),{name:e,icon:s,customisations:i},r);return n?a.outerHTML:a}function _a(){return"3.1.1"}function Ia(e,t){return Kr(e,t,!1)}function La(e,t){return Kr(e,t,!0)}function Ea(e,t){const n=Se(e);if(!n)return null;const r=Ar(et,t||{});return Ye(n,r)}function Ta(e){e?Ca(e):pe()}if(typeof document<"u"&&typeof window<"u"){Ji();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!vr(r))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{ra(pe),pe()})}function Pa(e,t){Er(e,t!==!1)}function Ra(e){Er(e,!0)}Tr("",Mi);if(typeof document<"u"&&typeof window<"u"){Lr();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const r="IconifyProviders["+n+"] is invalid.";try{const s=t[n];if(typeof s!="object"||!s||s.resources===void 0)continue;Pr(n,s)||console.error(r)}catch{console.error(r)}}}}const Da={getAPIConfig:Xe,setAPIModule:Tr,sendAPIQuery:kr,setFetch:Pi,getFetch:Ri,listAPIProviders:Ei},ka={_api:Da,addAPIProvider:Pr,loadIcons:Jt,loadIcon:Yi,iconExists:vi,getIcon:yi,listIcons:mi,addIcon:xi,addCollection:vr,replaceIDs:jr,calculateSize:ct,buildIcon:Ye,getVersion:_a,renderSVG:Ia,renderHTML:La,renderIcon:Ea,scan:Ta,observe:zr,stopObserving:Br,pauseObserver:sa,resumeObserver:oa,enableCache:Pa,disableCache:Ra};try{self.Iconify===void 0&&(self.Iconify=ka)}catch{}var Xt={},Aa=U;Object.defineProperty(Xt,"__esModule",{value:!0});var Gr=Xt.default=void 0,$a=Aa(H()),Oa=o;Gr=Xt.default=(0,$a.default)((0,Oa.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 en({infos:e}){const{t}=Z(),n=new URL("https://community.arcblock.io/discussions/add");e.forEach(s=>{n.searchParams.set(s.label,s.value)});const r=e.map(s=>`* ${s.label}: ${s.value}`).join(`
|
|
153
|
-
`);return n.searchParams.set("report","server"),n.searchParams.set("context",`[Enter feedback here]
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
<!--
|
|
158
|
-
[Server Info]
|
|
159
|
-
${r}
|
|
160
|
-
* Page: ${window.location.href}
|
|
161
|
-
-->
|
|
162
|
-
`),$(C,{sx:{mx:{xs:0,md:2}},children:$(jt,{sx:{color:"text.primary"},target:"_blank",href:n.href,rel:"noreferrer",style:{textDecoration:"underline"},children:t("common.reportIssue")})})}en.propTypes={infos:g.arrayOf(g.shape({label:g.string,value:g.string}))};en.defaultProps={infos:[]};var tn={},Ma=U;Object.defineProperty(tn,"__esModule",{value:!0});var vt=tn.default=void 0,Na=Ma(H()),kn=o;vt=tn.default=(0,Na.default)([(0,kn.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,kn.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function ne({children:e}){return G(n=>n.breakpoints.down("md"))?o.jsx(Be,{enterDelay:500,leaveDelay:2e3,title:typeof e=="string"?e:"",children:o.jsx(C,{sx:{display:"flex",alignItems:"center",gap:1},children:o.jsx(vt,{fontSize:"small"})})}):o.jsxs(C,{sx:{display:"flex",alignItems:"center",gap:1},children:[o.jsx(vt,{fontSize:"small"}),e]})}ne.propTypes={children:g.node.isRequired};const za="https://launcher.arcblock.io/",Ba=30*24*60*60*1e3;function nn({launcherUrl:e,chainHost:t,nftId:n,launcherSessionId:r,...s}){var k,h,I,S,_,E;const{t:i,locale:a}=Z(),c=Qe(),[l,u]=Yn({safeIframeRef:null,popoverAnchorEl:null}),d=v.useRef(null),f=G(R=>R.breakpoints.down("md")),{sx:p={},...b}=s,j=f?"mobile":"desktop",m=Zn(async()=>{const[R,Y]=await Promise.all([c.api.getLauncherSession({input:{launcherSessionId:r,launcherUrl:e}}),An({launcherUrl:e||za,nftDid:n,launcherSessionId:r,locale:a})]);if(R!=null&&R.error)throw new Error(R.error);return{launcherSession:R.launcherSession,subscriptionURL:Y}},[a]);if(m.loading)return o.jsx(ae,{label:o.jsxs(ne,{children:[!f&&i("expiration.desktop.loading"),o.jsx(re,{size:16})]}),variant:"success",sx:{cursor:"pointer",...p},...b});if(m.error)return console.error(m.error),o.jsx(ae,{label:o.jsx(ne,{children:i(`expiration.${j}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...p},...b,onClick:()=>m.retry()});const w=R=>{u({popoverAnchorEl:R.currentTarget})},y=()=>{u({popoverAnchorEl:null})},T=(k=m.value)==null?void 0:k.launcherSession;let L="success";[O.LAUNCH_SESSION_STATUS.overdue,O.LAUNCH_SESSION_STATUS.canceled,O.LAUNCH_SESSION_STATUS.terminated].includes((I=(h=m.value)==null?void 0:h.launcherSession)==null?void 0:I.status)&&(L="error");let P=null;if(T.expirationDate&&!T.subscription){const R=fe(T.expirationDate).diff(fe(),"ms");P=i(`expiration.${j}.tips.${L}`,{validity:Gn(R,{locale:$n(a),compact:!0,verbose:!0})}),R>0&&R<=Ba&&(L="warning")}return o.jsxs(o.Fragment,{children:[o.jsx(ae,{label:o.jsx(ne,{children:P||((_=(S=T==null?void 0:T.subscription)==null?void 0:S.product)==null?void 0:_.name)||i("common.subscription")}),color:L,variant:L!=="success"?"contained":"outlined",sx:{cursor:"pointer",...p},...b,onClick:w}),o.jsx(Un,{id:"popover-info",open:!!l.popoverAnchorEl,anchorEl:l.popoverAnchorEl,onClose:y,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:o.jsx("iframe",{ref:d,title:i("common.subscription"),width:"360px",height:"600px",style:{border:0},src:(E=m.value)==null?void 0:E.subscriptionURL})})]})}nn.propTypes={chainHost:g.string.isRequired,nftId:g.string,launcherSessionId:g.string,sx:g.object,retention:g.number,launcherUrl:g.string.isRequired};nn.defaultProps={sx:{},retention:0,nftId:"",launcherSessionId:""};const Ua=30*24*60*60*1e3,Ha="https://launcher.arcblock.io/";function rn({launcherUrl:e,chainHost:t,nftId:n,launcherSessionId:r,...s}){var h,I,S,_,E,R,Y;const{t:i,locale:a}=Z(),[c,l]=Yn({safeIframeRef:null,popoverAnchorEl:null}),u=v.useRef(null),d=G(F=>F.breakpoints.down("md")),f=Qe(),{sx:p={},...b}=s,j=d?"mobile":"desktop",m=Zn(async()=>{const[F,Ie]=await Promise.all([f.api.getLauncherSession({input:{launcherSessionId:r||n,launcherUrl:e}}),An({launcherUrl:e||Ha,nftDid:n,launcherSessionId:r,locale:a})]);if(F!=null&&F.error)throw new Error(F.error);return{launcherSession:F.launcherSession,subscriptionURL:Ie}},[a]);if(m.loading)return o.jsx(ae,{label:o.jsxs(ne,{children:[!d&&i("expiration.desktop.loading"),o.jsx(re,{size:16})]}),variant:"success",sx:{cursor:"pointer",...p},...b});if(m.error)return console.error(m.error),o.jsx(ae,{label:o.jsx(ne,{children:i(`expiration.${j}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...p},...b,onClick:()=>m.retry()});const w=(I=(h=m.value)==null?void 0:h.launcherSession)==null?void 0:I.expirationDate,y=fe(w).isBefore(fe()),T=fe(w).diff(fe(),"ms");let L="success";T<=Ua&&(L="warning"),y&&(L="error");const P=F=>{l({popoverAnchorEl:F.currentTarget})},k=()=>{l({popoverAnchorEl:null})};return o.jsxs(o.Fragment,{children:[((_=(S=m.value)==null?void 0:S.launcherSession)==null?void 0:_.subscription)&&o.jsx(ae,{label:o.jsx(ne,{children:i("expiration.desktop.nextInvoice",{date:as(w,a)})}),color:"success",variant:"outlined",sx:{cursor:"pointer",...p},...b,onClick:P}),!((R=(E=m.value)==null?void 0:E.launcherSession)!=null&&R.subscription)&&o.jsx(ae,{label:o.jsx(ne,{children:i(`expiration.${j}.tips.${L}`,{validity:Gn(T,{locale:$n(a),compact:!0,verbose:!0})})}),color:L,variant:L!=="success"?"contained":"outlined",sx:{cursor:"pointer",...p},...b,onClick:P}),o.jsx(Un,{id:"popover-info",open:!!c.popoverAnchorEl,anchorEl:c.popoverAnchorEl,onClose:k,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:o.jsx("iframe",{ref:u,title:i("common.subscription"),width:"360px",height:"600px",style:{border:0},src:(Y=m.value)==null?void 0:Y.subscriptionURL})})]})}rn.propTypes={chainHost:g.string.isRequired,nftId:g.string,launcherSessionId:g.string,sx:g.object,retention:g.number,launcherUrl:g.string.isRequired};rn.defaultProps={sx:{},retention:0,nftId:"",launcherSessionId:""};var sn={},Fa=U;Object.defineProperty(sn,"__esModule",{value:!0});var Qr=sn.default=void 0,Va=Fa(H()),qa=o;Qr=sn.default=(0,Va.default)((0,qa.jsx)("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"Fullscreen");var on={},Wa=U;Object.defineProperty(on,"__esModule",{value:!0});var Zr=on.default=void 0,Ka=Wa(H()),Ga=o;Zr=on.default=(0,Ka.default)((0,Ga.jsx)("path",{d:"M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"}),"FullscreenExit");function Qa(){const{inFullPage:e,toggleFullPage:t}=Hs();return $(yt,{onClick:t,children:e?$(Zr,{sx:{transform:"scale(1.3)"}}):$(Qr,{sx:{transform:"scale(1.3)"}})})}function an({children:e}){var L,P,k;const{t}=Z(),{loading:n,error:r,actions:{refreshBlocklet:s},env:i,blocklet:a}=je(),{info:c}=cs(),l=Ks(),u=G(h=>h.breakpoints.down("md")),[d,f]=v.useState(null),{appId:p,version:b}=i,j=[{label:"App ID",value:p},{label:"App Version",value:b},{label:"App Bundle Name",value:(L=a==null?void 0:a.meta)==null?void 0:L.bundleName},{label:"Server Id",value:c.did},{label:"Server Version",value:c.version}],m=h=>{var S,_,E,R;const I=Array.isArray(h)?h:[h];if(u||I.unshift($(Qa,{})),a){const Y={cursor:"pointer",marginRight:{xs:"8px",md:"48px"}};ls(a)?I.unshift($(nn,{chainHost:(S=a==null?void 0:a.controller)==null?void 0:S.chainHost,nftId:(_=a==null?void 0:a.controller)==null?void 0:_.nftId,launcherSessionId:(E=a==null?void 0:a.controller)==null?void 0:E.launcherSessionId,launcherUrl:(R=a==null?void 0:a.controller)==null?void 0:R.launcherUrl,sx:Y})):c.ownerNft&&c.launcher&&I.unshift($(rn,{chainHost:c.launcher.chainHost,launcherUrl:c.launcher.url,nftId:c.ownerNft.did,launcherSessionId:c.ownerNft.launcherSessionId,sx:Y}))}return I},w=(P=((a==null?void 0:a.environments)||[]).find(h=>h.key===X.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE))==null?void 0:P.value,y=(k=((a==null?void 0:a.environments)||[]).find(h=>h.key===X.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_RECT))==null?void 0:k.value;return v.useEffect(()=>{if(u)f(null);else{const{appLogo:h,appLogoRect:I}=window.blocklet??{};(I||h)&&f(`${I||h}&v=${Date.now()}`)}},[w,y,u]),rt(Za,{legacy:!1,fullWidth:!0,headerAddons:m,headerProps:{logo:d?$("img",{src:d,alt:"logo"}):null},isMobile:u,footerProps:{addon:$(en,{infos:j})},children:[!a&&n&&$(Ue,{relative:"parent",children:$(re,{})}),!a&&r&&rt(Ue,{relative:"parent",children:[rt(C,{display:"flex",alignItems:"center",children:[$(Gr,{color:"error",sx:{marginRight:1}}),_t(r)]}),$(St,{onClick:()=>s(),children:$("span",{style:{textDecoration:"underline"},children:t("common.retry")})})]}),!!a&&$(C,{flex:1,padding:u?2:3,display:"flex",flexDirection:"column",children:$(Bs,{FallbackComponent:Us,resetKeys:[l.pathname],children:e})})]})}an.propTypes={children:g.any};an.defaultProps={children:null};const Za=te(zs)`
|
|
163
|
-
div.dashboard-content {
|
|
164
|
-
padding: 0;
|
|
165
|
-
}
|
|
166
|
-
.header-addons .locales {
|
|
167
|
-
max-height: 400px;
|
|
168
|
-
overflow-y: auto;
|
|
169
|
-
}
|
|
170
|
-
`;function Ya(){const{t:e,locale:t}=Z(),{blocklet:n,launcherSession:r}=je(),[s,i]=Qs({subscriptionURL:"#"});if(v.useEffect(()=>{var l,u;ln(n,r)&&us({launcherSessionId:(l=n==null?void 0:n.controller)==null?void 0:l.launcherSessionId,launcherUrl:(u=n==null?void 0:n.controller)==null?void 0:u.launcherUrl,locale:t}).then(d=>{i({subscriptionURL:d})}).catch(d=>{console.error("get subscription url error:",d)})},[n,r]),!n||!r||!ds(n)||r.status===O.LAUNCH_SESSION_STATUS.installed)return"";let a=null,c="";return ln(n,r)?(a=o.jsx(jt,{href:s.subscriptionURL,children:e("blocklet.manageSubscription")}),c=e("blocklet.suspendedCausedByExpired",{deadline:un(r==null?void 0:r.reservedUntil,t)})):fs(n,r)&&(a=o.jsx(Vn,{to:Wn(O.WELLKNOWN_BLOCKLET_ADMIN_PATH,"/did-spaces"),children:e("common.backup")}),c=e("blocklet.suspendedCausedByTerminated",{canceledAt:un(r==null?void 0:r.terminatedAt,t),deadline:ps(r==null?void 0:r.terminatedAt,t)})),o.jsxs(C,{component:Fs,type:"error",sx:{"&> .alert-content":{display:"block"}},children:[c,o.jsx(N,{component:"span",sx:{marginLeft:"4px"},children:a})]})}const Yr=v.createContext({});function Ac(){return v.useContext(Yr)}const{Provider:Ja,Consumer:$c}=Yr,{did:W,appId:Xa}=window.env;function ec({children:e}){var h,I;const{t,locale:n}=Z(),{blocklet:r}=je(),[s,i]=v.useState([]),[a,c]=v.useState([]),[l,u]=v.useState([]),d=M.getDisplayName(r),f=((h=((r==null?void 0:r.environments)||[]).find(S=>S.key===X.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_PASSPORT_COLOR))==null?void 0:h.value)||"auto",p=(r==null?void 0:r.trustedPassports)||[],b=(r==null?void 0:r.trustedFactories)||[],j=(r==null?void 0:r.enablePassportIssuance)!==!1,m=async()=>{try{const S=await Re.doBatchQuery({getRoles:{input:{teamDid:W}},getPermissions:{input:{teamDid:W}},getInvitations:{input:{teamDid:W}}});c((S.getRoles.roles||[]).filter(_=>!O.RBAC_CONFIG.roles.some(E=>E.name===_.name&&(!E.passport||E.ci))).map(_=>(_.hasDescription=!!_.description,_.hasDescription||(_.description=t("team.passport.description",{teamName:d,title:_.title})),_))),u(S.getPermissions.permissions||[]),i(S.getInvitations.invitations||[])}catch(S){ee.error(S.message)}},w=({did:S}={})=>{const _={teamDid:W,user:{did:S}};return Re.getUser({input:_})},y=({query:S,paging:_}={})=>{const E={teamDid:W};return _&&(E.paging=_),S&&(E.query=S),E.sort={lastLoginAt:-1},Re.getUsers({input:E})},T=()=>Re.getUsersCountPerRole({input:{teamDid:W}}),L=()=>m();v.useEffect(()=>{var S;(S=r==null?void 0:r.meta)!=null&&S.did&&m()},[(I=r==null?void 0:r.meta)==null?void 0:I.did]),v.useEffect(()=>{c(S=>S.map(_=>(_.hasDescription||(_.description=t("team.passport.description",{teamName:d,title:_.title})),{..._})))},[t,n]);const P=S=>{S.teamDid===W&&m()};$e(X.TeamEvents.userAdded,P,[W]),$e(X.TeamEvents.userRemoved,P,[W]),$e(X.TeamEvents.userUpdated,P,[W]);const k={teamDid:W,teamIssuerDid:Xa,teamName:d,invitations:s,roles:a,permissions:l,trustedPassports:p,trustedFactories:b,isNodeTeam:!1,enablePassportIssuance:j,refresh:L,passportColor:f,endpoint:window.location.origin,blocklet:r,api:{getUser:w,getUsers:y,getUsersCountPerRole:T}};return o.jsx(Ja,{value:k,children:e})}const tc=v.lazy(()=>B(()=>import("./overview-BZ7IJTY1.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]))),nc=v.lazy(()=>B(()=>import("./index-BkTpbxSu.js"),__vite__mapDeps([32,2,1,4,33,3,5,6,12,34,35,36,9,10,18,19,37,23,21,8,38,22,39,40,41,26,27,42,28,29,30,31,20,24,17]))),rc=v.lazy(()=>B(()=>import("./index-Bv_3agvW.js"),__vite__mapDeps([43,2,1,12,3,4,5,6,44,14,36,9,18,19,22,23,45,46,10,17,28,29,30,31,20,21,24]))),sc=v.lazy(()=>B(()=>import("./index-bmafJpME.js"),__vite__mapDeps([47,2,1,48,3,4,5,6,49,50,51,52,9,33,44,53,54,55,31,34,18,19,22,23,17,37,56,57,58,7,12,8,13,28,29,30,20,21,24]))),oc=v.lazy(()=>B(()=>import("./audit-logs-CpENNExh.js"),__vite__mapDeps([59,3,2,4,1,5,6,39,28,9,60,61,24,62,31,42,63,22,23,29,30,19,20,21,17]))),ic=v.lazy(()=>B(()=>import("./index-DUoD69VU.js"),__vite__mapDeps([64,2,1,4,3,5,6,9,39,10,42,8,33,65,66,55,31,62,24,67,20,21,48,68,69,54,70,23,71,28,22,29,30,19,17]))),ac=v.lazy(()=>B(()=>import("./log-BQgDF08N.js"),__vite__mapDeps([72,1,2,28,3,4,5,6,9,73,55,74]))),cc=v.lazy(()=>B(()=>import("./index-Dz_dMBd6.js"),__vite__mapDeps([75,2,1,9,3,4,5,6,12,76,22,23,19,10,77,78,55,42,73,79,17,33,66,41,25,54,71,38,80,81,51,37,30,53,60,61,63]))),lc=v.lazy(()=>B(()=>import("./config-navigation-D-th1tcR.js"),__vite__mapDeps([82,2,3,4,1,5,6,83,9,56,46,84,31,23,28,22,29,30,19,20,21,24,17]))),uc=v.lazy(()=>B(()=>import("./index-xXoK_djD.js"),__vite__mapDeps([85,1,2,5,4,9,3,6,86,25,87,88,38,23,8,27,30,58]))),dc=v.lazy(()=>B(()=>import("./component-CMPB9eGw.js"),__vite__mapDeps([89,1,2,4,3,5,6,12,50,51,52,9,33,44,53,58,18,19,90,83,70,78,37,54,69,23,91,80,81,38,42,22,30,10,92,93,88,25,94,45,46,60,61,84,8,28,16,86,95,87,96,14,24,55,29,26,27,31,20,21,17]))),fc=v.lazy(()=>B(()=>import("./analytics-D5Wg9yw6.js"),__vite__mapDeps([97,1,2,3,4,5,6,67,9,20,21,48,68,69,54,70,23,71,31,55,28,22,29,30,19,24,17]))),pc="/.well-known/service/user/notifications";function hc(){var P,k;const e=qn(),{tab:t="overview"}=Gs(),{blocklet:n,actions:{refreshBlocklet:r}}=je(),{t:s}=Z(),{session:i}=Qn(),a=He(()=>{var h;return(h=i==null?void 0:i.user)==null?void 0:h.did},[i]),{enqueueSnackbar:c}=Hn(),l=He(()=>{var h;return((h=i.user)==null?void 0:h.role)&&ms.includes(i.user.role)},[i]),u=(P=n==null?void 0:n.meta)==null?void 0:P.did,d=h=>{e(`${O.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/${h}`)},f=()=>{r()},p=!n||dn(n.status)?[]:M.getAppMissingConfigs(n),b=[{label:s("common.overview"),value:"overview"},{label:o.jsx(Ps,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!p.length,children:s("common.components")}),value:"components"}];dn(n==null?void 0:n.status)||b.push({label:s("common.configuration"),value:"configuration"}),b.push({label:s("common.auditLogs"),value:"audit-logs"}),l&&b.push({label:s("common.notificationRecords"),value:"notifications"}),n&&((k=n.children)!=null&&k.length)&&n.structVersion===O.APP_STRUCT_VERSION&&b.push({label:s("common.logs"),value:"logs"}),b.push({label:s("common.configNavigation"),value:"navigation"});const j=o.jsx(oc,{scope:u,categories:["blocklet","team","security","certificates","gateway"]});$e(`${a}/${O.EVENTS.NOTIFICATION_BLOCKLET_CREATE}`,h=>{const{severity:I,description:S}=h||{},_=["error","warning"].includes(I)||h.sticky;c(S,{variant:I,autoHideDuration:_?null:5e3,content:E=>o.jsx(qo,{viewAllUrl:pc,keyId:E,notification:h,content:o.jsx(ii,{notification:h,minimal:!0,rows:0})})})},[],"user");const m=v.useCallback(()=>l?o.jsx(ic,{blocklet:n}):o.jsx(qs,{status:403}),[n,l]),w={overview:o.jsx(tc,{}),members:o.jsx(C,{mt:-5,children:o.jsx(nc,{type:"blocklet",createPassportSvg:fn})}),passports:o.jsx(C,{mt:-4.5,children:o.jsx(rc,{createPassportSvg:fn})}),components:dc,configuration:o.jsx(sc,{blocklet:n,onUpdate:f}),"audit-logs":j,notifications:m,logs:ac,navigation:lc,"did-spaces":o.jsx(uc,{navOrientation:"horizontal",sx:{mt:-4}}),analytics:o.jsx(C,{mt:-5,children:o.jsx(fc,{})}),publish:o.jsx(C,{mt:-3,children:o.jsx(cc,{})})},y=w[t]||w.overview,T=!["members","passports","analytics","publish","notifications","did-spaces"].includes(t),L=n?o.jsxs(zt,{type:"components",children:[T&&o.jsx(C,{pt:3,children:o.jsx(Ws,{tabs:b,current:t,onChange:d,scrollButtons:"auto"})}),o.jsx("div",{className:"page-content",children:o.jsx(v.Suspense,{fallback:o.jsx(Ue,{relative:"parent",children:o.jsx(re,{})}),children:v.isValidElement(y)?y:o.jsx(y,{blocklet:n})})})]}):o.jsx(Ue,{relative:"parent",children:o.jsx(re,{})});return o.jsx(gs,{children:o.jsx(ec,{children:o.jsx(an,{children:o.jsxs(gc,{children:[T&&o.jsxs(C,{component:"div",className:"page-header",children:[o.jsxs(N,{component:"h6",variant:"h6",className:"page-title",color:"textPrimary",children:[n?o.jsx(eo,{blocklet:n,style:{marginRight:16}}):null,n?o.jsxs(C,{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,children:[o.jsx(C,{children:M.getDisplayName(n)}),(n==null?void 0:n.status)!=="unknown"&&o.jsx(Nt,{size:"12px",status:n.status,source:n.source,progress:n.progress})]}):`${s("common.blocklet")} ${s("common.detail")}`]}),n?o.jsx($o,{className:"page-actions",hasPermission:!0,blocklet:n,onStart:()=>{},onComplete:({error:h}={})=>{h&&ee.error(h.message)},variant:"group"}):null]}),o.jsx(ar,{}),o.jsx(Ya,{}),L]})})})})}function mc(){var r;const{blocklet:e}=je(),{t}=Z(),n=(r=e==null?void 0:e.meta)==null?void 0:r.did;return v.useEffect(()=>{const s=hs();return n&&s.connect(),()=>{n&&s.isConnected()&&s.disconnect()}},[n]),o.jsxs(o.Fragment,{children:[o.jsx(Vs,{children:o.jsx("title",{children:t("pageTitle.dashboard")})}),o.jsx(hc,{})]})}const gc=te.main`
|
|
171
|
-
.page-header {
|
|
172
|
-
display: flex;
|
|
173
|
-
justify-content: space-between;
|
|
174
|
-
align-items: center;
|
|
175
|
-
flex-wrap: wrap;
|
|
176
|
-
gap: 16px;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.page-title {
|
|
180
|
-
display: flex;
|
|
181
|
-
align-items: center;
|
|
182
|
-
|
|
183
|
-
.page-link {
|
|
184
|
-
font-size: 15px;
|
|
185
|
-
margin-top: 8px;
|
|
186
|
-
margin-left: 8px;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.page-content {
|
|
191
|
-
margin-top: 18px;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
@media (max-width: ${e=>e.theme.breakpoints.values.md}px) {
|
|
195
|
-
.page-header {
|
|
196
|
-
flex-direction: column;
|
|
197
|
-
align-items: flex-start;
|
|
198
|
-
.page-actions,
|
|
199
|
-
.MuiButtonGroup-root {
|
|
200
|
-
width: 100%;
|
|
201
|
-
}
|
|
202
|
-
.MuiButtonGroup-root {
|
|
203
|
-
.MuiButtonBase-root {
|
|
204
|
-
flex: 1;
|
|
205
|
-
}
|
|
206
|
-
.blocklet-action-text {
|
|
207
|
-
display: none;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
.page-title {
|
|
213
|
-
margin-bottom: 15px;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
`,Oc=Object.freeze(Object.defineProperty({__proto__:null,default:mc},Symbol.toStringTag,{value:"Module"}));export{Nt as B,Mt as W,rr as a,Xn as b,de as c,Gr as d,Jn as e,kc as f,Oc as g,Ac as u};
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import{r as h}from"./vendor-react-D-afvo_7.js";import{j as e,a1 as Ne,E as y,a4 as qe,T as U,a3 as w,aa as ue,a2 as pe,ah as Ue,aj as Re,x as Te,R as Me,bH as De,bI as $e,aP as Ve,al as Se,V as He,cn as Ge,cm as Je,aN as Qe,bL as Xe,A as Ie}from"./vendor-mui-core-xF5F4eT7.js";import{b as se,z as Ye,A as Ze,ap as re}from"./vendor-utils-5TjOM6td.js";import{b as M,j as Q,$ as Ae,aC as V,e as ne,a6 as et,am as tt,B as Ee,bj as st,aU as nt,bA as at}from"./vendor-arcblock-DZrZ_x_3.js";import{y as it,F as B,m as ot,H as ye}from"./index-C85gVBzh.js";import{d as J,a as rt}from"./vendor-hooks-BKxTDk_P.js";import{b as he}from"./dashboard-DEaIei4u.js";import{p as lt}from"./util-NSOsPZWM.js";import{W as ke}from"./did-address-D0Fo5eTl.js";import{S as te}from"./shorten-label-J69eHfMN.js";import{I as je}from"./index-DGzAI_hi.js";import{c as ve}from"./index-DoZ2YM4T.js";import{S as ct,a as dt}from"./list-Cy1my35m.js";import{R as Le}from"./relative-time-ChYpdg43.js";import{D as ut,g as pt}from"./traffic-CctA2CCp.js";import{B as Oe}from"./bundle-avatar-3QSGrsNA.js";import{B as ft}from"./index-Cld1HWxz.js";import"./useLocalStorage-DV4AIe5L.js";import"./confirm-dIU5y9cG.js";import"./format-error-C0Ke3VXF.js";import"./PlayArrow-DZfknrYj.js";import"./get-safe-url-Du4BhDgB.js";import"./session-CM1ewS-k.js";import"./useAsyncRetry-Bmo6a1Zp.js";import"./useAsync-Ua5iss51.js";import"./InfoOutlined-C_J3Y0fX.js";import"./useSetState-Crt4S51m.js";import"./index-CHFvfli7.js";import"./iframe-CU0LfRyS.js";import"./LaunchOutlined-DaJw5LME.js";import"./ChevronLeft-CmbkC1dP.js";import"./ChevronRight-DlIj8Fj2.js";import"./index-C-D-nCB1.js";import"./vendor-mui-x-CSUdon8K.js";const Pe=h.createContext({}),{Provider:mt,Consumer:Ss}=Pe;function ht({children:t,blocklet:i=""}){const{api:a,inService:f,ws:{useSubscription:m}}=it(),[u,c]=h.useState([]),[j,A]=h.useState({total:0,pageSize:20,pageCount:0,page:1}),[R,_]=h.useState(!1),E=J(()=>{var T;return(T=i.meta)==null?void 0:T.did},[i]),[K,Y]=h.useState({}),[O,H]=h.useState([]),F=async({page:T=1,pageSize:L=20,...C}={})=>{if(!(R||!E))try{_(!0);const I={paging:{page:T,pageSize:L},...C,userName:C.searchText||"",teamDid:E,dateRange:C.dateRange?[B(C.dateRange[0]).toISOString(),B(C.dateRange[1]).toISOString()]:void 0},{dids:W,...Z}=I;let G="";W.includes("system")&&(G="system");const q=W.filter(z=>z!=="system"),ee=await a.getNotificationSendLog({input:{...Z,source:G,componentDids:q}});Y(I);const ae=ee.list.map(z=>({...z,receiverUser:{...z.receiverUser,avatar:lt(z.receiverUser.avatar,E,f)}}));c(ae),A(ee.paging),_(!1)}catch(I){Q.error(I.message),_(!1)}},g=async()=>{const T=await a.getNotificationComponents({input:{teamDid:E}});H(T.componentDids)},D=h.useCallback(T=>{const L=i.children.find(C=>{var I;return((I=C.meta)==null?void 0:I.did)===T});if(L)return L.ancestors=[i],L},[i]),k=async({notificationReceiverIds:T,channels:L,...C})=>{await a.resendNotification({input:{teamDid:E,notificationReceiverIds:T,channels:L.map(I=>I==="wallet"?M.NOTIFICATION_SEND_CHANNEL.WALLET:I==="pushKit"?M.NOTIFICATION_SEND_CHANNEL.PUSH:I),...C}})},$=h.useCallback(async T=>(await a.getUser({input:{teamDid:E,user:{did:T}}})).user,[a,E]);m(`${M.EVENTS.NOTIFICATION_BLOCKLET_CREATE}`,T=>{T&&(F(K),g())},[K]),h.useEffect(()=>{E&&g()},[E]);const S={loading:R,fetch:F,data:u,paging:j,blocklet:i,getComponent:D,resendNotification:k,getUser:$,componentDids:O};return e.jsx(mt,{value:{notificationRecords:S},children:t})}function Fe(){const{notificationRecords:t}=h.useContext(Pe);return t}var xe={},gt=Ne;Object.defineProperty(xe,"__esModule",{value:!0});var ze=xe.default=void 0,xt=gt(Ae()),bt=e;ze=xe.default=(0,xt.default)((0,bt.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"}),"Block");var be={},St=Ne;Object.defineProperty(be,"__esModule",{value:!0});var Be=be.default=void 0,yt=St(Ae()),jt=e;Be=be.default=(0,yt.default)((0,jt.jsx)("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 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-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline");const vt=(t,i,a="")=>{if(!a||!i)return"";switch(a){case M.NOTIFICATION_SEND_FAILED_REASON.USER_DISABLED:return t("notification.sendStatus.reason.disabled",{channel:i});case M.NOTIFICATION_SEND_FAILED_REASON.CHANNEL_UNAVAILABLE:return t("notification.sendStatus.reason.unavailable",{channel:i});case M.NOTIFICATION_SEND_FAILED_REASON.CHANNEL_DISABLED:return t("notification.sendStatus.reason.notSent",{channel:i});case M.NOTIFICATION_SEND_FAILED_REASON.NOT_ONLINE:return t("notification.sendStatus.reason.offline");default:return a}};function de(t,i,a={}){const{status:f,updatedAt:m,reason:u="",channel:c="wallet"}=a,j=m?t("notification.sendStatus.sentTime",{date:ot(m,i)}):"",A=vt(t,c,u);return f===M.NOTIFICATION_SEND_STATUS.FAILED?{status:"failed",title:t("notification.sendStatus.failed"),sentTime:j,reason:A}:f===M.NOTIFICATION_SEND_STATUS.SENT?{status:"success",title:t("notification.sendStatus.success"),sentTime:j}:{status:"pending",title:t("notification.sendStatus.pending"),reason:A,sentTime:j}}const we={pending:"#aaaaaa",success:"#34BE74",failed:"#D0021B"},ge=["wallet","pushKit","email"],wt=(t,i)=>{var m,u;const{settings:a}=t,f=se(i,"extra.notifications.email",!0);return{available:(u=(m=a==null?void 0:a.notification)==null?void 0:m.email)==null?void 0:u.enabled,enabled:f}},Ct=(t,i)=>{var m,u;const{settings:a}=t,f=se(i,"extra.notifications.push",!0);return{available:(u=(m=a==null?void 0:a.notification)==null?void 0:m.pushKit)==null?void 0:u.enabled,enabled:f}},Nt=t=>({enabled:se(t,"extra.notifications.wallet",!0)}),Rt=t=>({enabled:se(t,"extra.webhooks",[]).length>0}),Ce=(t=3e3)=>new Promise(i=>{setTimeout(()=>{i()},t)}),Tt=(t,i)=>i==="wallet"||i==="webhook"?[{channel:i,type:"enabled",pass:t("notification.sendStatus.reason.enabled",{channel:i}),fail:t("notification.sendStatus.reason.disabled",{channel:i})}]:i==="pushKit"||i==="email"?[{channel:i,type:"available",pass:t("notification.sendStatus.reason.available",{channel:i}),fail:t("notification.sendStatus.reason.unavailable",{channel:i})},{channel:i,type:"enabled",pass:t("notification.sendStatus.reason.enabled",{channel:i}),fail:t("notification.sendStatus.reason.disabled",{channel:i})}]:[],Dt=t=>{const i={},a=B().startOf("day");ge.forEach(u=>{const c=`${u}SendRecord`,A=se(t,c,[]).filter(R=>B(R.sendAt).isSame(a,"day")).length;i[u]=A});const f=se(t,"webhook",{}),m=Object.keys(f??{})??[];return m.length>0&&m.forEach(u=>{const j=(f[u]??[]).filter(A=>B(A.sendAt).isSame(a,"day")).length;i[u]=j}),i};function X({config:t,enableTooltip:i=!0,showTitle:a=!1}){const{status:f,title:m="",sentTime:u="",reason:c=""}=t,j=[m,c].filter(Boolean).join(", ");return e.jsx(qe,{title:i?e.jsxs(e.Fragment,{children:[e.jsx(U,{color:"inherit",sx:{fontSize:12},children:j}),e.jsx("span",{children:u})]}):null,arrow:!0,placement:"top",children:e.jsxs(w,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:1},children:[e.jsxs(w,{position:"relative",minHeight:14,minWidth:14,display:"flex",alignItems:"center",justifyContent:"center",children:[e.jsx(w,{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:we[f],style:{opacity:.15}}),e.jsx(w,{position:"absolute",width:"55%",height:"55%",borderRadius:"50%",bgcolor:we[f]})]}),a?e.jsx(U,{color:"inherit",sx:{fontSize:12},children:m}):null]})})}X.propTypes={config:y.object.isRequired,enableTooltip:y.bool,showTitle:y.bool};X.defaultProps={enableTooltip:!0,showTitle:!1};_e.propTypes={notification:y.object.isRequired,onCancel:y.func,blocklet:y.object.isRequired,resendChannel:y.string,refresh:y.func,tab:y.string};function _e({notification:t,onCancel:i=()=>{},blocklet:a,resendChannel:f="",refresh:m=()=>{},tab:u="info"}){const{t:c,locale:j}=ne(),{getComponent:A,resendNotification:R,getUser:_}=Fe(),[E,K]=h.useState([]),[Y,O]=h.useState([]),[H,F]=h.useState(null),[g,D]=h.useState(null),k=h.useRef({}),$=J(()=>A(t.componentDid)||a,[a,t.componentDid]),S=J(()=>{var s;return(s=t==null?void 0:t.receivers)==null?void 0:s[0]},[t.receivers]),T=J(()=>S==null?void 0:S.receiver,[S]),L=J(()=>S==null?void 0:S.receiverUser,[S]),C=rt({tab:u||"info"}),I=J(()=>Dt(S),[S]),W=h.useCallback(async s=>{const{receiver:l}=S??{};if(!l)return!1;const p=await _(l);return p?s==="wallet"?Nt(p):s==="email"?wt(a,p):s==="pushKit"?Ct(a,p):s==="webhook"?Rt(p):!0:!1},[S,_,a]);h.useEffect(()=>{if(!S)K([]);else{const s=ge.map(p=>{const b=S[`${p}SendStatus`],v=S[`${p}SendAt`],P=S[`${p}SendFailedReason`],We=de(c,j,{status:b,updatedAt:v,reason:P,channel:p});return{type:p==="pushKit"?"Push Kit":p,extra:We}});K(s);const l=(S==null?void 0:S.webhook)||{};O(Object.entries(l))}},[S,j,c]);const Z=h.useCallback(async(s,l="")=>{const{id:p}=S??{};if(p)try{await R({notificationReceiverIds:[p],channels:[s],...s==="webhook"&&l?{webhookUrls:[l]}:{}}),Q.success("Message has been sent!"),s!=="webhook"&&(await Ce(1e3),F(null))}catch(b){console.error("handleResend error",{error:b}),Q.error(b.response?b.response.statusText:b.message)}},[R,S]),G=async(s,l)=>{if(l==null||l.stopPropagation(),I[s.type]>=4){Q.warning(c("notification.resendLimit"));return}if(l&&F(l==null?void 0:l.currentTarget),D({channel:s.type}),!(!s||s.checking)){K(b=>b.map(v=>s.type===v.type?{...v,checking:!0}:v));try{const b=await W(s.type);await Ce(),D({channel:s.type,result:b}),(typeof b=="boolean"&&b||Ye(b)&&Object.values(b).every(v=>!!v))&&(await Z(s.type),m()),K(v=>v.map(P=>s.type===P.type?{...P,checking:!1}:P))}catch(b){console.error("handleResend error",{error:b})}}},q=async(s,l=null)=>{if(l==null||l.stopPropagation(),I[s]>=4){Q.warning(c("notification.resendLimit"));return}O(b=>b.map(v=>s===v[0]?[...v.slice(0,2),!0]:v));try{await Z("webhook",s),O(b=>b.map(v=>s===v[0]?[...v.slice(0,2),!0]:v)),m()}catch(b){console.error("handleResend error",{error:b})}};h.useEffect(()=>{f&&(C.tab="status",setTimeout(()=>{const s=k.current[f];s&&(ge.includes(f)?(F(s),G({type:f})):q(f))},500))},[f]);const ee=()=>{F(null)},ae=h.useCallback(s=>Tt(c,s),[c]),z=!!H,o=z?"check-resend-popover":void 0;function n(){return[{name:c("notification.from"),value:e.jsx(ct,{size:32,blocklet:$,showName:!0,hideDot:!0})},{name:c("notification.to"),value:e.jsx(w,{children:L?e.jsxs(w,{"data-cy":`member-name-${L.fullName}`,display:"flex",alignItems:"center",gap:1,justifyContent:"flex-start",children:[e.jsx(Ee,{src:`${L.avatar}?imageFilter=resize&w=48&h=48`,size:32,did:T,shape:"circle",style:{borderRadius:"100%",overflow:"hidden"}}),e.jsx(te,{children:L.fullName})]},T):e.jsx(ke,{size:14,responsive:!1,compact:!0,copyable:!1,did:T})})},{name:c("notification.notificationTitle"),value:e.jsx(te,{maxLength:50,children:t.title})},{name:c("notification.body"),value:e.jsx(dt,{notification:t,rows:0})},{name:c("notification.createdAt"),value:e.jsx(Le,{value:t.createdAt,locale:j,shouldUpdate:!0})}].map(l=>e.jsx(je,{style:{alignItems:"flex-start"},valueComponent:"div",nameWidth:120,name:l.name,children:l.value},l.name))}const r={info:{label:c("common.basicInfo"),value:"info",component:n},status:{label:c("notification.status"),value:"status"}},d=Object.values(r).map(({label:s,value:l})=>({label:s,value:l})),x=r[C.tab]||r.info,N=s=>{C.tab=s};return e.jsx(et,{title:c("notification.notificationDetails"),onClose:()=>{C.tab="info",F(null),i()},open:!0,PaperProps:{style:{maxWidth:832,maxHeight:"80vh"}},sx:{"& .MuiDialogContent-root":{paddingTop:0}},fullWidth:!0,actionsPosition:"left",children:e.jsxs(It,{children:[e.jsx(w,{mx:3,className:"tabs",children:e.jsx(tt,{tabs:d,current:C.tab,onChange:N,scrollButtons:"auto"})}),e.jsx("div",{className:"body",children:C.tab==="info"?e.jsx(x.component,{}):e.jsxs(w,{children:[E.map(s=>e.jsx(je,{valueComponent:"div",nameWidth:120,name:s.type,children:e.jsxs(w,{className:"channel-item",display:"flex",alignItems:"center",sx:{gap:"4px",fontSize:14},children:[e.jsx(w,{display:"flex",alignItems:"center",sx:{gap:"4px"},children:e.jsx(X,{config:s.extra,showTitle:!0})}),s.extra.status!=="success"&&e.jsxs(U,{ref:l=>{k.current[s.type]=l},component:"span",display:"flex",alignItems:"center",sx:{color:V.primary.main,fontSize:14},className:ve("resend-btn",{disabled:s.checking||I[s.type]>=4}),onClick:l=>G(s,l),children:[s.checking?e.jsx(pe,{size:12,sx:{color:V.primary.main}}):e.jsx(he,{}),e.jsx("span",{style:{marginLeft:4},children:c("notification.resend")})]})]})},s.type)),e.jsx(Ue,{textAlign:"left",sx:{mt:1,mb:1},children:"Webhook"}),e.jsx(w,{className:"notification-resend-section",display:"flex",flexDirection:"column",gap:1,style:{paddingLeft:0},children:Y.map(([s,l,p])=>{const b=l[0],v=de(c,j,{...b,updatedAt:b.sendAt,reason:b.failedReason,channel:"webhook"});return e.jsxs(w,{className:"channel-item",display:"flex",alignItems:"center",sx:{gap:"4px",fontSize:12},children:[e.jsx(te,{maxLength:30,children:s}),e.jsx(w,{display:"flex",alignItems:"center",sx:{gap:"4px"},children:e.jsx(X,{config:v,showTitle:!0})}),v.status!=="success"&&e.jsxs(U,{ref:P=>{k.current[s]=P},component:"span",sx:{color:V.primary.main},className:ve("resend-btn",{disabled:p||I[s]>=4}),onClick:P=>q(s,P),children:[p?e.jsx(pe,{size:12,sx:{color:V.primary.main}}):e.jsx(he,{}),e.jsx("span",{style:{marginLeft:4},children:c("notification.resend")})]})]},s)})})]})}),e.jsx(Re,{id:o,open:z,anchorEl:H,onClose:ee,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},children:e.jsxs(At,{children:[e.jsxs(U,{variant:"body1",component:"div",className:"check-title",children:[g==null?void 0:g.channel," Checking"]}),e.jsx(w,{display:"flex",flexDirection:"column",sx:{gap:"4px"},children:ae(g==null?void 0:g.channel).map(s=>{var v,P;const{type:l,pass:p,fail:b}=s;return!(g!=null&&g.result)||(v=g==null?void 0:g.result)!=null&&v[l]?e.jsxs(U,{variant:"body1",component:"div",className:"check-item",display:"flex",alignItems:"center",sx:{gap:"4px",color:(P=g==null?void 0:g.result)!=null&&P[l]?V.success.main:"inherit"},children:[g!=null&&g.result?e.jsx(Be,{}):e.jsx(pe,{size:12,sx:{color:V.primary.main}}),e.jsx("span",{children:p})]},l):e.jsxs(U,{variant:"body1",component:"div",display:"flex",alignItems:"center",className:"check-item",sx:{gap:"4px",color:V.error.main},children:[e.jsx(ze,{}),e.jsx("span",{children:b})]},l)})})]})})]})})}const It=ue.div`
|
|
2
|
-
& > .notification-row {
|
|
3
|
-
padding: 0;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.tabs {
|
|
7
|
-
margin: 0;
|
|
8
|
-
}
|
|
9
|
-
.body {
|
|
10
|
-
margin-top: 24px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.channel-item {
|
|
14
|
-
display: flex;
|
|
15
|
-
padding: 4px;
|
|
16
|
-
justify-content: flex-start;
|
|
17
|
-
align-items: center;
|
|
18
|
-
gap: 8px;
|
|
19
|
-
> p {
|
|
20
|
-
font-size: 15px;
|
|
21
|
-
}
|
|
22
|
-
.resend-btn {
|
|
23
|
-
svg {
|
|
24
|
-
font-size: 16px;
|
|
25
|
-
}
|
|
26
|
-
display: flex;
|
|
27
|
-
align-items: center;
|
|
28
|
-
font-size: 12px;
|
|
29
|
-
cursor: pointer;
|
|
30
|
-
&.disabled {
|
|
31
|
-
cursor: not-allowed;
|
|
32
|
-
color: ${V.text.disabled};
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
`,At=ue.div`
|
|
37
|
-
padding: 8px 16px;
|
|
38
|
-
.check-title {
|
|
39
|
-
font-weight: 500;
|
|
40
|
-
margin-bottom: 8px;
|
|
41
|
-
&::first-letter {
|
|
42
|
-
text-transform: uppercase;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
.check-item {
|
|
46
|
-
svg {
|
|
47
|
-
font-size: 16px;
|
|
48
|
-
}
|
|
49
|
-
font-size: 12px;
|
|
50
|
-
}
|
|
51
|
-
`;Ke.propTypes={value:y.array.isRequired,onChange:y.func};function Ke({value:t,onChange:i}){const{locale:a}=ne(),f=B().toDate(),[m,u]=h.useState(null),c=h.useCallback(R=>{u(m?null:R.currentTarget)},[m]),j=!!m,A=h.useCallback(R=>{if(!R.startDate||!R.endDate){Q.error("Please select a date range");return}if(B(R.startDate).isAfter(R.endDate)||!B(R.startDate).isValid()||!B(R.endDate).isValid()){Q.error("Invalid date range");return}i([R.startDate,R.endDate]),u(null)},[i]);return e.jsxs("div",{children:[e.jsx(U,{component:"div",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},mb:0,children:e.jsxs(Te,{onClick:c,variant:"outlined",size:"small",color:"inherit",children:[ye(t[0],a)," - ",ye(t[1],a)]})}),e.jsx(Re,{open:j,anchorEl:m,onClose:()=>{u(null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},children:e.jsx(ut,{open:!0,maxDate:f,initialDateRange:{startDate:t[0],endDate:t[1]},toggle:c,definedRanges:pt(f),onChange:A})})]})}oe.propTypes={blocklet:y.object,label:y.string};oe.defaultProps={blocklet:null,label:""};const Et=ue.div`
|
|
52
|
-
display: flex;
|
|
53
|
-
justify-items: flex-start;
|
|
54
|
-
align-items: center;
|
|
55
|
-
gap: 8px;
|
|
56
|
-
.name {
|
|
57
|
-
display: block;
|
|
58
|
-
max-width: 260px;
|
|
59
|
-
white-space: nowrap;
|
|
60
|
-
overflow: hidden;
|
|
61
|
-
text-overflow: ellipsis;
|
|
62
|
-
}
|
|
63
|
-
`;function oe({blocklet:t,label:i}){var a;return e.jsx(Et,{children:t?e.jsxs(e.Fragment,{children:[e.jsx(Oe,{size:24,blocklet:t,ancestors:t.ancestors}),e.jsx("span",{className:"name",children:t.title||((a=t.meta)==null?void 0:a.title)})]}):e.jsx("span",{className:"name",children:i})})}const kt=["receiver","data","createdAt","walletSendStatus","pushKitSendStatus","emailSendStatus"],Lt=()=>Me({components:{MUIDataTableFilter:{styleOverrides:{header:{marginBottom:0,p:{margin:0}},root:{"& .MuiGrid-container":{marginTop:0,"& .MuiGrid-item":{paddingTop:0}}}}},MuiPopover:{styleOverrides:{root:{"&.MuiPopover-root":{"& .MuiPaper-root:has(.filter-container)":{width:"420px"}}}}}}}),fe=(t,i,a)=>(t[a].splice(i,1),t),me=(t,i)=>i.length?!i.includes(t):!1;function Ot({label:t,onDelete:i,index:a}){return e.jsx(Ie,{label:t,variant:"outlined",...a===1?{onDelete:i}:{}})}function Pt(t){var f;const{t:i}=ne();return!((f=t==null?void 0:t.filterList)!=null&&f.filter(m=>m.length).length)?null:e.jsxs(w,{display:"flex",gap:1,alignItems:"center",children:[e.jsx("div",{className:"toolbar-filter-title",children:i("notification.filter")}),e.jsx("div",{className:"toolbar-filter-content",children:e.jsx(at.TableFilterList,{...t,ItemComponent:Ot})})]})}ie.propTypes={status:y.number.isRequired,updatedAt:y.string.isRequired,reason:y.string,channel:y.string,onResend:y.func};function ie({status:t,updatedAt:i,reason:a="",channel:f="wallet",onResend:m}){const{t:u,locale:c}=ne(),j=de(u,c,{status:t,updatedAt:i,reason:a,channel:f});return e.jsxs(w,{display:"flex",alignItems:"center",gap:1,children:[e.jsx(X,{config:j,showTitle:!0}),j.status!=="success"&&e.jsx(Te,{className:"resend-btn",size:"small",startIcon:e.jsx(he,{}),sx:{fontSize:12,color:"rgba(0, 0, 0, 0.87)",fontWeight:400,".MuiButton-startIcon":{mr:"2rpx"}},onClick:m,children:u("notification.resend")})]})}le.propTypes={filterList:y.array.isRequired,onChange:y.func.isRequired,index:y.number.isRequired,column:y.object.isRequired,statusFilterValues:y.array.isRequired,label:y.string.isRequired};function le({filterList:t,onChange:i,index:a,column:f,statusFilterValues:m,label:u}){return e.jsxs(De,{className:"filter-container",children:[e.jsx(Ge,{component:"legend",children:u}),e.jsx(Je,{row:!0,children:m.map(c=>{const j={status:c.status};return e.jsx(Qe,{control:e.jsx(Xe,{checked:t[a].indexOf(c.value)>-1,onChange:A=>{A.target.checked?t[a].push(c.value):t[a]=t[a].filter(R=>R!==c.value),i(t[a],a,f)},name:c.value}),label:e.jsxs("span",{style:{display:"flex",alignItems:"center"},children:[e.jsx(X,{enableTooltip:!1,config:j}),c.label]})},c.value)})})]})}ce.propTypes={list:y.array.isRequired,label:y.string.isRequired,onDelete:y.func.isRequired};function ce({list:t,label:i,onDelete:a}){const{t:f,locale:m}=ne();return e.jsxs(w,{display:"flex",gap:1,alignItems:"center",children:[e.jsxs(U,{children:[i,": "]}),t.map(u=>{const c=de(f,m,{status:u});return e.jsx(Ie,{size:"small",label:e.jsxs(w,{display:"flex",alignItems:"center",sx:{gap:"4rpx"},children:[e.jsx(X,{config:c,enableTooltip:!1}),e.jsx("span",{children:c.title})]}),onDelete:j=>a(j,u)},u)})]})}function Ft(){var z;const{t,locale:i}=ne(),{data:a,paging:f,loading:m,blocklet:u,fetch:c,getComponent:j,componentDids:A}=Fe(),R=h.useRef(null),[_,E]=h.useState(null),[K,Y]=h.useState(""),[O,H]=h.useState(kt),F=`notification-records-${(z=u.meta)==null?void 0:z.did}`,g=st(F),[D,k]=h.useState({searchText:g.searchText||"",pageSize:g.rowsPerPage||10,page:g.page?g.page+1:1,dids:g.dids||[],walletSendStatus:g.walletSendStatus||[],pushKitSendStatus:g.pushKitSendStatus||[],emailSendStatus:g.emailSendStatus||[],dateRange:g.dateRange||[B().subtract(1,"month").startOf("day").toDate(),B().endOf("day").toDate()]}),$=J(()=>{if(!u.children||!u.children.length)return[];const o=[];return u.children.forEach(n=>{var d;const r=n.did||((d=n.meta)==null?void 0:d.did);A.includes(r)&&(n.ancestors=[u],o.push(n))}),o},[A,u]),S=h.useCallback(o=>{const{notification:n}=o,r=Ze(o,"notification");return r.read=!0,n.receivers=[r],n},[]),T=h.useCallback(o=>{const n=S(o);E(n)},[S]);h.useEffect(()=>{c(D)},[D]),h.useEffect(()=>{E(o=>{if(!o)return null;const n=a.find(r=>r.notification.id===o.id);return n?T(n):o})},[a,T]);const L=({page:o,rowsPerPage:n,searchText:r,filterList:d})=>{const[,x=[],N=[],s=[],l=[]]=d;D.pageSize!==n?k(p=>({...p,pageSize:n,page:1})):D.page!==o+1?k(p=>({...p,page:o+1})):D.searchText!==r?k(p=>({...p,searchText:r,page:1})):re(D.walletSendStatus,N)?re(D.pushKitSendStatus,s)?re(D.emailSendStatus,l)?re(D.dids,x)||k(p=>({...p,dids:x,page:1})):k(p=>({...p,emailSendStatus:l,page:1})):k(p=>({...p,pushKitSendStatus:s,page:1})):k(p=>({...p,walletSendStatus:N,page:1}))},C=[{label:t("notification.sendStatus.pending"),value:0,status:"pending"},{label:t("notification.sendStatus.success"),value:1,status:"success"},{label:t("notification.sendStatus.failed"),value:2,status:"failed"}],I=(o,n,r,d)=>{o.stopPropagation();const x=r.filter(N=>N!==n);k(N=>({...N,[d]:x,page:1}))},W=(o,n,r)=>{o.stopPropagation();const d=S(n);E(d),Y(r)},Z=()=>{E(null),Y("")},G=h.useCallback(()=>{c(D)},[c,D]),q=[{label:t("notification.receiver"),name:"receiver",width:200,options:{filter:!1,display:O.includes("receiver"),customBodyRenderLite:o=>{const{receiverUser:n,receiver:r}=a[o];return n?e.jsxs(w,{"data-cy":`member-name-${n.fullName}`,display:"flex",alignItems:"center",gap:1,justifyContent:"flex-start",children:[e.jsx(Ee,{src:`${n.avatar}?imageFilter=resize&w=48&h=48`,size:32,did:r,shape:"circle",style:{borderRadius:"100%",overflow:"hidden"}}),e.jsx(te,{children:n.fullName})]},r):e.jsx(ke,{size:14,responsive:!1,compact:!0,copyable:!1,did:r})}}},{label:t("notification.notificationPreview"),name:"data",width:300,options:{filter:!0,filterType:"custom",customFilterListOptions:{render:o=>o.map((n,r)=>{var x;if(n==="system")return e.jsx("span",{children:t("notification.system")},`system-${r}`);const d=$.find(N=>{var l;return(N.did||((l=N.meta)==null?void 0:l.did))===n});return e.jsx(oe,{blocklet:d,label:(d==null?void 0:d.title)||((x=d==null?void 0:d.meta)==null?void 0:x.title)},n)}),update:(o,n,r)=>(o[r].splice(n,1),o)},filterOptions:{names:$,logic:(o,n)=>n.length?!n.includes(o):!1,display:(o,n,r,d)=>e.jsxs(De,{style:{width:"380px"},children:[e.jsx($e,{id:"demo-simple-select-label",style:{background:"#ffffff"},children:"Sender"}),e.jsxs(Ve,{multiple:!0,value:o[r],renderValue:x=>e.jsx(w,{display:"flex",gap:1,alignItems:"center",style:{overflow:"hidden",textOverflow:"ellipsis"},children:x.map(N=>{var l;if(N==="system")return e.jsx("span",{children:t("notification.system")},N);const s=$.find(p=>{var v;return(p.did||((v=p.meta)==null?void 0:v.did))===N});return e.jsx(oe,{blocklet:s,label:(s==null?void 0:s.title)||((l=s==null?void 0:s.meta)==null?void 0:l.title)},N)})}),onChange:x=>{o[r]=x.target.value,n(o[r],r,d)},children:[e.jsx(Se,{value:"system",children:t("notification.system")}),$.map(x=>{var s,l;const N=x.did||((s=x.meta)==null?void 0:s.did);return e.jsx(Se,{value:N,children:e.jsx(oe,{blocklet:x,label:x.title||((l=x.meta)==null?void 0:l.title)})},N)})]})]})},display:O.includes("data"),customBodyRenderLite:o=>{const n=a[o],{notification:r}=n,d=j(r.componentDid);return e.jsxs(w,{display:"flex",alignItems:"center",gap:1,onClick:x=>{x.stopPropagation(),T(n)},children:[d?e.jsx(Oe,{size:32,blocklet:d,ancestors:d.ancestors??[]}):e.jsx(ft,{blocklet:u,size:32}),e.jsx(te,{maxLength:50,children:r.title})]})}}},{label:"Wallet",name:"walletSendStatus",width:200,options:{display:O.includes("walletSendStatus"),setCellProps:()=>({className:"sent-status-cell"}),filter:!0,filterType:"custom",filterList:D.walletSendStatus??[],customFilterListOptions:{render:o=>e.jsx(ce,{list:o,label:"Wallet",onDelete:(n,r)=>{n.stopPropagation(),I(n,r,q[2].options.filterList,"walletSendStatus")}}),update:fe},filterOptions:{names:C,fullWidth:!0,logic:me,display:(o,n,r,d)=>e.jsx(le,{label:"Wallet",filterList:o,onChange:n,index:r,column:d,statusFilterValues:C})},customBodyRenderLite:o=>{const{walletSendStatus:n,walletSendAt:r,walletSendFailedReason:d}=a[o];return e.jsx(ie,{status:n,updatedAt:r,reason:d,channel:"wallet",onResend:x=>W(x,a[o],"wallet")})}}},{label:"Push Kit",name:"pushKitSendStatus",width:200,options:{display:O.includes("pushKitSendStatus"),setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:o=>{const{pushKitSendStatus:n,pushKitSendAt:r,pushKitSendFailedReason:d}=a[o];return e.jsx(ie,{status:n,updatedAt:r,reason:d,channel:"pushkit",onResend:x=>W(x,a[o],"pushKit")})},filter:!0,filterType:"custom",filterList:D.pushKitSendStatus??[],customFilterListOptions:{render:o=>e.jsx(ce,{list:o,label:"Push Kit",onDelete:(n,r)=>{n.stopPropagation(),I(n,r,q[3].options.filterList,"pushKitSendStatus")}}),update:fe},filterOptions:{names:C,fullWidth:!0,logic:me,display:(o,n,r,d)=>e.jsx(le,{label:"Push Kit",filterList:o,onChange:n,index:r,column:d,statusFilterValues:C})}}},{label:"Email",name:"emailSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),display:O.includes("emailSendStatus"),customBodyRenderLite:o=>{const{emailSendStatus:n,emailSendAt:r,emailSendFailedReason:d}=a[o];return e.jsx(ie,{status:n,updatedAt:r,reason:d,channel:"email",onResend:x=>W(x,a[o],"email")})},filter:!0,filterType:"custom",filterList:D.emailSendStatus??[],customFilterListOptions:{render:o=>e.jsx(ce,{list:o,label:"Email",onDelete:(n,r)=>{n.stopPropagation(),I(n,r,q[4].options.filterList,"emailSendStatus")}}),update:fe},filterOptions:{names:C,fullWidth:!0,logic:me,display:(o,n,r,d)=>e.jsx(le,{label:"Email",filterList:o,onChange:n,index:r,column:d,statusFilterValues:C})}}},{label:"Webhook",name:"webhook",width:200,options:{display:O.includes("webhook"),filter:!1,setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:o=>{const{webhook:n}=a[o];if(!n)return null;const r=Object.entries(n)[0];if(!r)return null;const[d,x]=r,N=x[0];return e.jsx(w,{display:"flex",flexDirection:"column",gap:1,children:e.jsxs(w,{className:"webhook-item",fontSize:12,children:[e.jsx(te,{maxLength:30,children:d},d),e.jsx(ie,{status:N.status,updatedAt:N.sendAt,reason:N.failedReason,channel:"webhook",onResend:s=>W(s,a[o],d)})]},d)})}}},{label:t("common.createdAt"),name:"createdAt",width:200,options:{filter:!1,display:O.includes("createdAt"),customBodyRenderLite:o=>{const{createdAt:n}=a[o];return e.jsx(Le,{value:n,locale:i,shouldUpdate:!0})}}}],ee=o=>{k(n=>({...n,dateRange:o,page:1}))},ae=[e.jsx(Ke,{value:D.dateRange,onChange:ee})];return e.jsxs(w,{ref:R,sx:{overflow:"auto",".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"},".MuiTableCell-root":{paddingRight:"8px",whiteSpace:"nowrap"}},children:[e.jsx(zt,{children:e.jsx(He,{theme:Lt(),children:e.jsx(nt,{className:"main-data",verticalKeyWidth:100,loading:m,locale:i,columns:q,data:a,durable:F,onChange:L,options:{sort:!1,download:!1,print:!1,expandableRowsOnClick:!0,searchPlaceholder:t("common.search"),searchAlwaysOpen:!1,filterType:"checkbox",searchDebounceTime:300,page:f.page-1,rowsPerPage:f.pageSize,count:f.total,...g,searchText:D.searchText,onViewColumnsChange:(o,n)=>{H(n==="add"?r=>[...r,o]:r=>r.filter(d=>d!==o))}},customButtons:ae,components:{TableFilterList:Pt}})})}),_&&e.jsx(_e,{refresh:G,onCancel:Z,notification:_,blocklet:u,resendChannel:K})]})}const zt=ue.div`
|
|
64
|
-
td.MuiTableCell-footer {
|
|
65
|
-
border: none !important;
|
|
66
|
-
}
|
|
67
|
-
.sent-status-cell {
|
|
68
|
-
.resend-btn {
|
|
69
|
-
display: none;
|
|
70
|
-
}
|
|
71
|
-
&:hover {
|
|
72
|
-
.resend-btn {
|
|
73
|
-
display: flex;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
`;Bt.propTypes={blocklet:y.object.isRequired};function Bt({blocklet:t={}}){return e.jsx(ht,{blocklet:t,children:e.jsx(Ft,{})})}export{Bt as default,Lt as getMuiTheme};
|