@abtnode/blocklet-services 1.16.39-beta-20250211-055232-54765cee → 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
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import{E as i,j as t,a3 as I,x as B,bG as te,aa as q,bH as oe,bI as ne,aP as ae,bJ as se,M as ie,al as A,t as re,a2 as W}from"./vendor-mui-core-xF5F4eT7.js";import{a1 as N,e as le,H as ce,an as de,b as ue}from"./vendor-arcblock-DE69EmW_.js";import{r as c,u as pe,l as fe}from"./vendor-react-D-afvo_7.js";import{d as T}from"./vendor-hooks-BKxTDk_P.js";import{x as me}from"./vendor-utils-5TjOM6td.js";import{N as ge}from"./list-D3MtvbeT.js";import{B as he}from"./bundle-avatar-7g1gtR_Q.js";import{Q as xe}from"./index-DVfi3VUs.js";import"./index-CHFvfli7.js";import"./index-DUVrFM9m.js";import"./relative-time-Bkhqzrgv.js";import"./InfoOutlined-C8xfkBe6.js";K.propTypes={theme:i.string,type:i.oneOf(["button","line"]),onSelectType:i.func,extra:i.node,loading:i.bool,currentTab:i.oneOf(["info","success","warning","error",""])};function K({theme:p="dark",type:s="button",onSelectType:f,extra:x=void 0,currentTab:m="",loading:r=!1,...d}){const g=[{label:"All",value:""},{label:"Info",value:"info"},{label:"Success",value:"success"},{label:"Warning",value:"warning"},{label:"Error",value:"error"}],h=e=>{(e!==m||!r)&&f(e)},b=c.useMemo(()=>{const e={width:"100%",bgcolor:p==="dark"?"#F9FAFB":"",overflowY:"auto",paddingTop:"5px",whiteSpace:"nowrap",borderRadius:0,display:"flex",justifyContent:"space-between",alignItems:"flex-end",flexWrap:"wrap",gap:"8px"};return s==="line"?Object.assign(e,{}):e},[s,p]),v=(e,l,u)=>t.jsx(B,{disabled:r,onClick:()=>h(e.value),className:`profile-button ${l?"active":""}`,...d,children:e.label},e.value||u),o=(e,l,u)=>t.jsx(B,{variant:"text",disabled:r,onClick:()=>h(e.value),className:`profile-line-button ${l?"active":""}`,...d,children:e.label},e.value||u);return t.jsxs(I,{className:"severity-tabs",sx:b,children:[t.jsx("div",{style:d.isMd?{flex:"0 0 100%"}:{},children:g==null?void 0:g.map((e,l)=>{const u=m===(e==null?void 0:e.value);return s==="line"?t.jsx(c.Fragment,{children:o(e,u,l)},e.value||l):t.jsx(c.Fragment,{children:v(e,u,l)},e.value||l)})}),x]})}U.propTypes={paging:i.objectOf(i.any).isRequired,loading:i.bool.isRequired,onChange:i.func.isRequired};function U({loading:p,paging:s,onChange:f}){const{t:x}=c.useContext(N);if(s.pageCount<=0)return null;const m=(g,h)=>{f({page:h+1})},r=g=>{const h=Number(g.target.value);f({page:1,pageSize:h})},d=s.page-1<=0?0:s.page-1;return t.jsx(I,{mt:2,display:"flex",justifyContent:"flex-end",children:t.jsx(te,{disabled:p,count:s.total,page:d,rowsPerPageOptions:[10,20,50,100],labelRowsPerPage:x("pagination.rowsPerPage"),labelDisplayedRows:({from:g,to:h,count:b})=>`${g}–${h} / ${b!==-1?b:`${x()}more than ${h}`}`,rowsPerPage:s.pageSize,onPageChange:m,onRowsPerPageChange:r})})}const be=c.memo(U);V.propTypes={selectedId:i.string,blockletMap:i.object,onSelectChange:i.func,loading:i.bool,filterType:i.oneOf(["component","entity"])};const we=q.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-items: flex-start;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: 8px;
|
|
6
|
+
.name {
|
|
7
|
+
display: block;
|
|
8
|
+
max-width: 260px;
|
|
9
|
+
white-space: nowrap;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
text-overflow: ellipsis;
|
|
12
|
+
}
|
|
13
|
+
`;function V({selectedId:p="",filterType:s="component",blockletMap:f=new Map,onSelectChange:x=()=>{},loading:m=!1}){const[r,d]=c.useState(""),{t:g}=c.useContext(N),h=o=>{if(m)return;const e=o.target.value;x(e==="all"?"":e)},b=c.useMemo(()=>{if(!f.size)return[];const o=[];return Array.from(f).forEach(([,e])=>{var P,k;const l=e.did||((P=e.meta)==null?void 0:P.did),u=e.title||((k=e.meta)==null?void 0:k.title)||"",w=e.appPid||e.appDid,M=u.toLowerCase().includes(r.toLowerCase());(s==="component"&&w!==l&&M||s==="entity"&&w===l&&M)&&o.push(e)}),o},[f,r,s]),v=c.useMemo(()=>{var e;const o=b.find(l=>{var u;return(l.did||((u=l.meta)==null?void 0:u.did))===p});return(o==null?void 0:o.did)||((e=o==null?void 0:o.meta)==null?void 0:e.did)||p||"all"},[b,p]);return f.size?t.jsxs(oe,{sx:{minWidth:240,maxWidth:300},children:[t.jsx(ne,{id:"demo-simple-select-label",children:"Sender"}),t.jsxs(ae,{value:v,onChange:h,onClose:()=>d(""),size:"small",label:"Sender",MenuProps:{autoFocus:!1,PaperProps:{style:{maxHeight:400,overflowY:"auto"}}},variant:"outlined",children:[t.jsx(se,{children:t.jsx(ie,{autoFocus:!0,value:r,placeholder:"Search",variant:"outlined",size:"small",fullWidth:!0,onChange:o=>d(o.target.value),onKeyDown:o=>{o.key!=="Escape"&&o.stopPropagation()}})}),t.jsx(A,{value:"all",children:g("common.all")}),s==="component"&&t.jsx(A,{value:"system",children:g("notification.system")}),b.map(o=>{var u,w;const e=o.did||((u=o.meta)==null?void 0:u.did),l=o.title||((w=o.meta)==null?void 0:w.title);return t.jsx(A,{value:e,children:t.jsxs(we,{children:[t.jsx(he,{size:24,blocklet:o,ancestors:o.ancestors}),t.jsx("span",{className:"name",children:l})]})},e)})]})]}):null}const Ce=c.memo(V),je=q.div`
|
|
14
|
+
.MuiContainer-root {
|
|
15
|
+
padding-right: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.profile-button.MuiButtonBase-root {
|
|
19
|
+
border-radius: 9999px;
|
|
20
|
+
margin-right: 2px;
|
|
21
|
+
color: #4b5563;
|
|
22
|
+
padding: 5px 12px;
|
|
23
|
+
line-height: 22px;
|
|
24
|
+
font-size: 13px;
|
|
25
|
+
border: 1px solid transparent;
|
|
26
|
+
}
|
|
27
|
+
.profile-button.active.MuiButtonBase-root {
|
|
28
|
+
background-color: #ffffff;
|
|
29
|
+
color: #030712;
|
|
30
|
+
border: 1px solid #e5e7eb !important;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.profile-line-button.MuiButtonBase-root {
|
|
34
|
+
margin-right: 2px;
|
|
35
|
+
color: #4b5563;
|
|
36
|
+
padding: 5px 12px;
|
|
37
|
+
line-height: 22px;
|
|
38
|
+
font-size: 13px;
|
|
39
|
+
border: none !important;
|
|
40
|
+
border-radius: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.profile-line-button.active.MuiButtonBase-root {
|
|
44
|
+
color: rgba(3, 7, 18, 1);
|
|
45
|
+
border-bottom: 1px solid rgba(3, 7, 18, 1) !important;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.profile-button.MuiButtonBase-root:last-of-type,
|
|
49
|
+
.profile-line-button.MuiButtonBase-root {
|
|
50
|
+
margin-right: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.profile-button.MuiButtonBase-root:hover {
|
|
54
|
+
background-color: #ffffff;
|
|
55
|
+
color: #030712;
|
|
56
|
+
border: 1px solid #e5e7eb;
|
|
57
|
+
}
|
|
58
|
+
.profile-line-button.MuiButtonBase-root:hover {
|
|
59
|
+
color: rgba(3, 7, 18, 1);
|
|
60
|
+
background-color: unset;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
* {
|
|
64
|
+
scrollbar-width: none; /* Firefox */
|
|
65
|
+
-ms-overflow-style: none; /* IE and Edge */
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
*::-webkit-scrollbar {
|
|
69
|
+
display: none; /* Chrome, Safari and Opera */
|
|
70
|
+
}
|
|
71
|
+
`;_.propTypes={blocklets:i.array,context:i.object,pagination:i.bool,inDialog:i.bool,filterType:i.oneOf(["component","entity"]),toViewAll:i.func,tabType:i.oneOf(["button","line"]),enableMarkAllAsRead:i.bool};function _({blocklets:p=[],context:s,pagination:f=!0,tabType:x="button",inDialog:m=!1,filterType:r="component",toViewAll:d=()=>{},enableMarkAllAsRead:g=!0}){const{data:h,paging:b,refresh:v,loading:o,params:e,onReadNotification:l,unReadCount:u,componentDids:w}=s,M=a=>{v({...e,severity:a,paging:{...e.paging,page:1}})},P=re(a=>a.breakpoints.down("md")),[k]=pe(),R=T(()=>k.get("id"),[k]),{t:Q}=c.useContext(N),[Y,E]=c.useState(!1);c.useEffect(()=>{setTimeout(()=>{const a=document.getElementById(R);a&&a.scrollIntoView({behavior:"smooth",block:"center"}),E(!0)},100),setTimeout(()=>{E(!1)},3e3)},[R]);const[F,z]=c.useState(!1),G=async()=>{z(!0),s.makeAllAsRead&&typeof s.makeAllAsRead=="function"&&await s.makeAllAsRead(),z(!1)},L=c.useCallback(a=>{const{blocklet:n={}}=window,j=[n==null?void 0:n.did,...((n==null?void 0:n.ancestors)||[]).map(y=>y)];return(w==null?void 0:w.includes(a))||j.findIndex(y=>y===a)>-1},[w]),O=c.useMemo(()=>{const a=new Map;return p.length&&p.forEach(n=>{var y,$,D;const j=(n==null?void 0:n.did)||((y=n.meta)==null?void 0:y.did);j&&!a.has(j)&&(n.ancestors=[],a.set(j,n),(($=n==null?void 0:n.alsoKnownAs)==null?void 0:$.length)>0&&n.alsoKnownAs.forEach(C=>{a.has(C)||a.set(C,n)})),((D=n==null?void 0:n.children)==null?void 0:D.length)>0&&n.children.forEach(C=>{var H;const S=(C==null?void 0:C.did)||((H=C.meta)==null?void 0:H.did);S&&!a.has(S)&&L(S)&&(C.ancestors=[n],a.set(S,C))})}),a},[p,L]),J=a=>{v({...e,paging:{...e.paging,...a}})},X=a=>{var n,j;!a||(j=(n=a.receivers)==null?void 0:n[0])!=null&&j.read||l(a.id).then(()=>{m&&d()})},Z=a=>{if(o)return;let n={};r==="component"?n={entityId:"",componentDid:a}:r==="entity"&&(n={componentDid:"",entityId:a}),v({...e,...n,paging:{...e.paging,page:1}})},ee=T(()=>r==="component"?e.componentDid||"":r==="entity"&&e.entityId||"",[e,r]);return t.jsxs(je,{children:[t.jsx(K,{currentTab:e.severity,type:x,theme:"light",isMd:P,onSelectType:M,extra:m?null:[u>0&&g&&t.jsxs(B,{disabled:F||o,onClick:G,sx:{ml:P?0:"auto"},children:[F&&t.jsx(W,{size:16,style:{marginRight:"1em"}}),Q("notification.markAllAsRead")]},"make-all-read"),t.jsx(Ce,{onSelectChange:Z,selectedId:ee,filterType:r,blockletMap:O,loading:o},"component-filter")]}),o?t.jsx(I,{sx:{display:"flex",width:"100%",minHeight:400,justifyContent:"center",alignItems:"center"},children:t.jsx(W,{sx:{color:"#4598fa"}})}):t.jsx(ge,{data:h,blockletMap:O,onReadNotification:X,inDialog:m,highlightId:R,highlight:!m&&Y}),f?t.jsx(be,{loading:o,paging:b,onChange:J}):null]})}const ve=c.memo(_);function Fe(){const s=fe().tab,{t:f}=le(),x=xe(),m=T(()=>{var r;return{...window.blocklet,meta:{did:window.blocklet.did,name:window.blocklet.did},children:(r=window==null?void 0:window.blocklet)==null?void 0:r.componentMountPoints.map(d=>({...d,meta:{...d,did:d.did,name:d.name||d.title||"",logo:"logo.png"}}))}});return t.jsxs(t.Fragment,{children:[t.jsx(ce,{children:t.jsx("title",{children:f("pageTitle.userCenter")})}),t.jsx(de,{currentTab:s?me(ue.WELLKNOWN_SERVICE_PATH_PREFIX,"user",s):"",disableAutoRedirect:s==="settings",children:s==="notifications"?t.jsx(ve,{blocklets:[m],context:x}):null})]})}export{Fe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a1 as l,j as d}from"./vendor-mui-core-xF5F4eT7.js";import{$ as h,b as u}from"./vendor-arcblock-
|
|
1
|
+
import{a1 as l,j as d}from"./vendor-mui-core-xF5F4eT7.js";import{$ as h,b as u}from"./vendor-arcblock-DE69EmW_.js";import{g as c}from"./vendor-react-D-afvo_7.js";import{ab as p,a5 as P,h as x}from"./index-DVfi3VUs.js";var f={},v=l;Object.defineProperty(f,"__esModule",{value:!0});var E=f.default=void 0,R=v(h()),g=d;E=f.default=(0,R.default)((0,g.jsx)("path",{d:"M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2M1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2"}),"ShoppingCart");const s=p;var m=(e,t)=>s(e)===s(t);const _=c(m),y=(e,t)=>{if(e.type===u.ROUTING_RULE_TYPES.REDIRECT){if(!e.url)return new Error(`${t("router.validation.redirectUrlRequired")}`);if(!e.redirectCode)return new Error(`redirect ${t("router.validation.redirectCodeRequired")}`)}else if(e.type===u.ROUTING_RULE_TYPES.BLOCKLET&&!e.did)return new Error(t("router.validation.didRequired"));return null},$=(e,t)=>{const r=y(e,t);return r||(e.pathPrefix.length?e.pathPrefix.length>150?new Error(t("router.validation.pathPrefixTooLong",{length:150})):null:new Error(t("router.validation.pathPrefixCannotBeEmpty")))},T=({params:e,blocklet:t})=>{if(t){const r=(t.children||[]).find(n=>P.hasStartEngine(n.meta)&&_(n.mountPoint,e.pathPrefix));let i="";return r&&(i=r.mountPoint),t.meta.group!=="gateway"&&e.pathPrefix==="/"&&(i="/"),i}return""},q=({params:e,blocklets:t,blocklet:r,locale:i="en"})=>{if(r&&T({params:e,blocklet:r}))return{zh:`挂载点 ${e.pathPrefix} 已存在,请使用其他挂载点`,en:`The mount point ${e.pathPrefix} already exist, please use another mount point`}[i];const n=t.find(a=>a.meta.did===e.did);if(!n)return"";const o=n.meta.interfaces.find(a=>a.type==="web");return o&&o.prefix!==x.BLOCKLET_DYNAMIC_PATH_PREFIX&&e.pathPrefix!==o.prefix?{zh:`该 blocklet 只能挂载在 ${o.prefix}`,en:`This blocklet can only be mounted on ${o.prefix}`}[i]:""},C=e=>{if(!e||typeof e!="string")return e;let t=e.trim();try{return t=t.toLowerCase(),t.startsWith("http://")||t.startsWith("https://")?new URL(t).hostname:t}catch(r){return console.error("format domain failed",r),t}};export{$ as a,E as d,T as e,C as p,q as v};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{x as i}from"./vendor-utils-5TjOM6td.js";import{b as e}from"./vendor-arcblock-
|
|
1
|
+
import{x as i}from"./vendor-utils-5TjOM6td.js";import{b as e}from"./vendor-arcblock-DE69EmW_.js";function t(R,A,n){if(R&&R.startsWith(e.USER_AVATAR_URL_PREFIX)){const r=window.env.apiPrefix||"/";return n?i(r,e.USER_AVATAR_PATH_PREFIX,R.replace(e.USER_AVATAR_URL_PREFIX,"")):i(r,e.USER_AVATAR_PATH_PREFIX,A,R.replace(e.USER_AVATAR_URL_PREFIX,""))}return R}const s=(R,A)=>R.nodeOwner&&R.nodeOwner.did===A,E=(R,A)=>R&&R.did===A;export{E as a,s as i,t as p};
|