@abtnode/blocklet-services 1.16.38-beta-20250206-124027-d19174f9 → 1.16.38

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.
Files changed (61) hide show
  1. package/dist/assets/{access-control-CCge1oL1.js → access-control-C2teJfVU.js} +1 -1
  2. package/dist/assets/{add-component-core-DgfihxLk.js → add-component-core-CPpsD6J6.js} +1 -1
  3. package/dist/assets/{add-resource-7IsICmax.js → add-resource-B58xirKn.js} +1 -1
  4. package/dist/assets/{analytics-TJpSRQ0U.js → analytics-DSLmgPH4.js} +1 -1
  5. package/dist/assets/{audit-logs-Cmpi1W3C.js → audit-logs-B4q_aJjT.js} +1 -1
  6. package/dist/assets/{branding-DvOmhlO-.js → branding-DJHfQEXa.js} +2 -2
  7. package/dist/assets/{bundle-avatar-CVPR-VWA.js → bundle-avatar-CECNsBx1.js} +1 -1
  8. package/dist/assets/{complete-DFlfEeq8.js → complete-GB_L0bqz.js} +1 -1
  9. package/dist/assets/{component-B4TCqCq9.js → component-owdd0AfX.js} +1 -1
  10. package/dist/assets/{config-CWw0k-lF.js → config-CunsUiG1.js} +1 -1
  11. package/dist/assets/{config-navigation-BSxC8rMe.js → config-navigation-DxWI0_TS.js} +3 -3
  12. package/dist/assets/{config-space-FncI7vZk.js → config-space-DmsFFfS9.js} +1 -1
  13. package/dist/assets/{confirm-VnlaMCYJ.js → confirm-jlCvNwef.js} +1 -1
  14. package/dist/assets/{connect-BMJqYRR_.js → connect-DawMsOck.js} +1 -1
  15. package/dist/assets/{connect-BaUDr1n9.js → connect-DhYtxWZo.js} +1 -1
  16. package/dist/assets/{connect-to-BCtrzyXz.js → connect-to-wXj-G4Dj.js} +1 -1
  17. package/dist/assets/{dashboard-BlYXv8-_.js → dashboard-CzN7IzAG.js} +5 -6
  18. package/dist/assets/{domain-D_jQLM0y.js → domain-BX3MKy2a.js} +1 -1
  19. package/dist/assets/{domain-list-VKW6BR51.js → domain-list-BBs3Mtre.js} +1 -1
  20. package/dist/assets/{email-B4CxiVlj.js → email-DwDKTVpX.js} +1 -1
  21. package/dist/assets/{exchange-passport-WSOtdHFn.js → exchange-passport-FlFKd1mh.js} +1 -1
  22. package/dist/assets/{form-text-input-DK1EeGmH.js → form-text-input-BNhpSDlL.js} +1 -1
  23. package/dist/assets/{fuel-C6gnDrDp.js → fuel--Zn-NVMs.js} +1 -1
  24. package/dist/assets/{index-IHIFs0xS.js → index-4q215i88.js} +1 -1
  25. package/dist/assets/{index-OLVStAbm.js → index-B8Nio2ig.js} +1 -1
  26. package/dist/assets/{index-BsMAQ8DU.js → index-BMTuDbff.js} +1 -1
  27. package/dist/assets/{index-BKFsxoat.js → index-BoVwrnPM.js} +1 -1
  28. package/dist/assets/{index-CCWy4bNJ.js → index-CFEJrtrO.js} +1 -1
  29. package/dist/assets/{index-CPgC9ANP.js → index-Ce8JlRjK.js} +1 -1
  30. package/dist/assets/{index-F03SYBjJ.js → index-Cgl9CJKn.js} +4 -4
  31. package/dist/assets/{index-Ci4YMWOc.js → index-DIOGsNFt.js} +2 -2
  32. package/dist/assets/{index-C1OMWz5z.js → index-Dkh2u649.js} +1 -1
  33. package/dist/assets/{index-DBcDSlQ1.js → index-Du43_MKm.js} +1 -1
  34. package/dist/assets/{index-9Q9s2JIQ.js → index-bP1urf9D.js} +1 -1
  35. package/dist/assets/{index-CPx2mnQc.js → index-pz6VFmbg.js} +1 -1
  36. package/dist/assets/{index-CHT3_zcp.js → index-x6YOGrxB.js} +3 -3
  37. package/dist/assets/{invitation-B7GR90LX.js → invitation-BZFpUcSJ.js} +1 -1
  38. package/dist/assets/{invite-drfWSU_C.js → invite-BU3Ccpga.js} +1 -1
  39. package/dist/assets/{issue-passport-OOgZ16Sr.js → issue-passport-CYRMlQJ5.js} +1 -1
  40. package/dist/assets/{item-Dk0MVQhL.js → item-Cxj4TDMq.js} +1 -1
  41. package/dist/assets/{layout-CklfSJh5.js → layout-Dtb_WFTA.js} +1 -1
  42. package/dist/assets/{list-BXU4g8bJ.js → list-CASrxNBR.js} +3 -4
  43. package/dist/assets/{log-TdSV1BdF.js → log-COTeJeZn.js} +1 -1
  44. package/dist/assets/{login-BvooVoFg.js → login-DVyUiJRp.js} +1 -1
  45. package/dist/assets/{logo-uploader-BFXtRu_d.js → logo-uploader-BEXp6PuR.js} +3 -3
  46. package/dist/assets/{lost-passport-CfrsO7Zj.js → lost-passport-DEKSH9FW.js} +1 -1
  47. package/dist/assets/{overview-BMGoRD_t.js → overview-4648jAce.js} +1 -1
  48. package/dist/assets/{publish-resource-5VdTaPSW.js → publish-resource-DFVCzFSH.js} +1 -1
  49. package/dist/assets/{relative-time-CrNv1hT0.js → relative-time-D0PKnQr3.js} +1 -1
  50. package/dist/assets/{setup-DVMY47mJ.js → setup-CVG5jVIU.js} +3 -3
  51. package/dist/assets/{start-Xx-Gu1Tv.js → start-1BJlmDvU.js} +1 -1
  52. package/dist/assets/{step-actions-CPwWTp37.js → step-actions-CCkY0hVg.js} +1 -1
  53. package/dist/assets/{traffic-BJyxs8uL.js → traffic-BE5KpYHp.js} +1 -1
  54. package/dist/assets/{transfer-DIbaEHMY.js → transfer-DKKPtRUT.js} +1 -1
  55. package/dist/assets/{unsubscribe-Dfd-2scy.js → unsubscribe-BsAmTGTC.js} +1 -1
  56. package/dist/assets/{user-center-BNQ4tfem.js → user-center-BeBWy2q4.js} +3 -3
  57. package/dist/assets/{util-DyFFAMNF.js → util-DS5jlfDf.js} +1 -1
  58. package/dist/assets/{wrap-locale-BDRmdg3K.js → wrap-locale-DCwm7-9w.js} +1 -1
  59. package/dist/index.html +1 -1
  60. package/dist/service-worker.js +1 -1
  61. package/package.json +21 -21
@@ -1,4 +1,4 @@
1
- import{j as r,aa as m}from"./vendor-mui-core-DHnPlNQK.js";import{C as c}from"./content-layout-DRV8Bqu8.js";import{e as u,j as s}from"./vendor-arcblock-B6bsNHwS.js";import{I as d,h as i}from"./index-Ci4YMWOc.js";const p=m(c)`
1
+ import{j as r,aa as m}from"./vendor-mui-core-DHnPlNQK.js";import{C as c}from"./content-layout-DRV8Bqu8.js";import{e as u,j as s}from"./vendor-arcblock-B6bsNHwS.js";import{I as d,h as i}from"./index-DIOGsNFt.js";const p=m(c)`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{r as m}from"./vendor-react-D-afvo_7.js";import{E as a,j as t,bp as _,a3 as d,T as w,aa as v,t as b,ah as N,am as q,a4 as se,bC as re,aq as ne,as as ie,e as oe}from"./vendor-mui-core-DHnPlNQK.js";import{D as R,a0 as E,ae as B,af as ae,e as U,ag as le,at as ce}from"./vendor-arcblock-B6bsNHwS.js";import{S as de}from"./index-DGE6IUiK.js";import{B as pe}from"./bundle-avatar-CVPR-VWA.js";import{c as T,s as z,H as xe,h as P,f as F,B as ue}from"./index-9Q9s2JIQ.js";import{R as me}from"./relative-time-CrNv1hT0.js";import{a7 as he,y as k}from"./vendor-utils-f0cH60Lr.js";import{D as $}from"./index-Ci4YMWOc.js";import{d as G}from"./vendor-hooks-Dk0Sjyu7.js";import{d as fe}from"./InfoOutlined-BtVOjnjf.js";function Q({attachment:e}){const{data:s}=e;let n="";try{n=new URL(s.url).host}catch{n=s.url}return t.jsxs(_,{target:"_blank",rel:"noopener noreferrer",href:s.url,className:"link",style:{wordBreak:"break-all"},children:[!!n&&t.jsx("span",{className:"url",children:n}),!!s.title&&t.jsx(d,{className:"title",style:{whiteSpace:"unset"},children:s.title}),!!s.description&&t.jsx(d,{className:"description",style:{whiteSpace:"unset",color:"rgba(75, 85, 99, 1)"},children:s.description}),!!s.image&&t.jsx("img",{srcSet:`${$.getImagePath(s.image)}?w=128&h=128&fit=crop&auto=format&dpr=2 2x`,src:`${$.getImagePath(s.image)}?w=128&h=128&fit=crop&auto=format`,alt:s.title||"",loading:"lazy",height:128,style:{borderRadius:"8px",maxWidth:"256px",objectFit:"cover"}})]})}Q.propTypes={attachment:a.object.isRequired};function K({attachment:e}){const{data:s}=e;return t.jsx("img",{srcSet:`${$.getImagePath(s.url)}?w=128&h=128&fit=crop&auto=format&dpr=2 2x`,src:`${$.getImagePath(s.url)}?w=128&h=128&fit=crop&auto=format`,alt:s.title||"",loading:"lazy",height:128,style:{borderRadius:"8px",maxWidth:"256px",objectFit:"cover"}})}K.propTypes={attachment:a.object.isRequired};function D({attachment:e,...s}){var c;const{data:n}=e,r=((c=n.color)==null?void 0:c.toLowerCase())||s.color,l=n.size||s.size,o=n.fontWeight||s.fontWeight||400;let i="14px";return l==="small"?i="12px":l==="normal"?i="14px":l==="big"?i="16px":l==="large"&&(i="18px"),t.jsx("span",{className:"title",style:{fontSize:i,color:r,whiteSpace:"unset",fontWeight:o},children:n.text})}D.propTypes={attachment:a.object.isRequired};L.propTypes={locale:a.string,data:a.object.isRequired};L.defaultProps={locale:"en"};function L({locale:e="en",data:s}){const n={zh:"来自",en:"from"}[e]||"from",r={zh:"接收",en:"Received"}[e]||"Received",o=`https://${T.getUrlHost(s.chainHost)||T.getChainHost(s.chainId)}/explorer/tokens/${s.address}/tx`;let i=s.amount;s.decimal&&(i=s.amount/10**s.decimal);const c=G(()=>({display:"flex",alignItems:"center",rowGap:2,columnGap:4,justifyContent:"space-between",flexWrap:"wrap"}));return t.jsx("a",{href:o,target:"_blank",rel:"noreferrer",children:t.jsxs(d,{display:"flex",flexDirection:"column",children:[t.jsxs(d,{sx:c,children:[t.jsx(w,{component:"div",sx:{fontWeight:700,color:"rgba(3, 7, 18, 1)"},children:r}),t.jsxs(w,{component:"div",align:"right",style:z.summaryStyle,flex:1,children:["+",i," ",s.symbol]})]}),t.jsxs(d,{sx:c,children:[t.jsx(w,{component:"div",style:{...z.remarkStyle,fontSize:14},children:n}),t.jsx(d,{sx:{maxWidth:"252px",fontSize:"14px"},children:t.jsx(R,{did:s.address,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:e})})]})]})})}M.propTypes={locale:a.string,data:a.object.isRequired};M.defaultProps={locale:"en"};function M({locale:e,data:s}){var x,p;const n={zh:"接收",en:"Received"}[e]||"Received",r={zh:"来自",en:"from"}[e]||"from",l=T.getUrlHost(s.chainHost)||T.getChainHost(s.chainId),o=s.did||((p=(x=s==null?void 0:s.credential)==null?void 0:x.issuer)==null?void 0:p.id)||"",i=`https://${l}/explorer/assets/${o}`,c=G(()=>({display:"flex",alignItems:"center",rowGap:2,columnGap:4,justifyContent:"space-between",flexWrap:"wrap"}));return t.jsx(d,{sx:{pr:1},children:t.jsx("a",{href:i,target:"_blank",style:{textDecoration:"none",color:"initial",display:"block"},rel:"noreferrer",children:t.jsxs(d,{display:"flex",flexDirection:"column",children:[t.jsxs(d,{sx:c,children:[t.jsx(w,{component:"div",sx:{fontWeight:700,color:"rgba(3, 7, 18, 1)"},children:n}),t.jsx(w,{component:"div",align:"right",style:z.summaryStyle,children:"+1 Asset"})]}),o?t.jsxs(d,{sx:c,children:[t.jsx(w,{component:"div",style:{...z.remarkStyle,fontSize:14},children:r}),t.jsx(d,{sx:{maxWidth:"252px",fontSize:"14px"},children:t.jsx(R,{did:o,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:e})})]}):null]})})})}O.propTypes={data:a.object.isRequired,locale:a.string};function O({data:e,locale:s="en"}){return t.jsxs("a",{href:e.url,target:"_blank",style:{display:"flex",textDecoration:"none",color:"initial"},rel:"noreferrer",children:[t.jsx("img",{className:"image",src:e.logo,width:50,height:50,alt:""}),t.jsxs("div",{style:{flex:1,marginLeft:"10px"},children:[t.jsx("div",{style:{marginBottom:"6px"},children:e.title}),t.jsx("div",{style:{color:"#a5a5a5",fontSize:10,maxWidth:"252px"},children:t.jsx(R,{did:e.appDID,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:s})})]})]})}A.propTypes={locale:a.string,data:a.object.isRequired};A.defaultProps={locale:"en"};function A({locale:e,data:s}){const n=T.getChainHost(s.chainId),r=`https://${n}/explorer/txs/${s.hash}`,l={zh:"交易详情",en:"Transaction Details"}[e]||"Transaction Details",o={zh:"交易哈希",en:"Transaction Hash"}[e]||"Transaction Hash";return t.jsxs("a",{href:r,target:"_blank",style:{textDecoration:"none",color:"initial",display:"block",fontSize:14},rel:"noreferrer",children:[t.jsx("h6",{style:{color:"#a5a5a5",margin:0},children:n}),t.jsx("p",{style:{color:"#4598fa",margin:0},children:l}),t.jsxs("div",{style:{wordBreak:"break-all"},children:[o,": ",s.hash]})]})}function V({data:e,isMd:s=!1}){return t.jsx(d,{display:"flex",flexDirection:s?"row":"column",justifyContent:"space-between",sx:{width:s?"100%":"auto"},children:e.items.map((n,r)=>t.jsx(D,{attachment:n,color:r===0?"rgba(156, 163, 175, 1)":"",size:r===0?"normal":"big",fontWeight:r===0?400:600},r))})}V.propTypes={data:a.array.isRequired,isMd:a.bool};function J({attachment:e,...s}){const{local:n}=m.useContext(E),r=b(l=>l.breakpoints.down("md"));return t.jsxs(ge,{"data-testid":"attachment-preview",...s,isMd:r,children:[e.type==="link"&&t.jsx(Q,{attachment:e,...s,isMd:r}),e.type==="image"&&t.jsx(K,{attachment:e,isMd:r}),e.type==="text"&&t.jsx(D,{attachment:e,isMd:r}),e.type==="token"&&t.jsx(L,{data:e.data,local:n,isMd:r}),e.type==="asset"||e.type==="vc"?t.jsx(M,{data:e.data,local:n,isMd:r}):null,e.type==="dapp"&&t.jsx(O,{data:e.data,local:n,isMd:r}),e.type==="transaction"&&t.jsx(A,{data:e.data,local:n,...s,isMd:r}),e.type==="divider"&&t.jsx(N,{sx:{mb:1,mt:1},style:{color:B.dividerColor}}),e.type==="combined"&&t.jsx(V,{data:e,isMd:r})]})}const ge=v.div`
1
+ import{r as m}from"./vendor-react-D-afvo_7.js";import{E as a,j as t,bp as _,a3 as d,T as w,aa as v,t as b,ah as N,am as q,a4 as se,bC as re,aq as ne,as as ie,e as oe}from"./vendor-mui-core-DHnPlNQK.js";import{D as R,a0 as E,ae as B,af as ae,e as U,ag as le,at as ce}from"./vendor-arcblock-B6bsNHwS.js";import{S as de}from"./index-DGE6IUiK.js";import{B as pe}from"./bundle-avatar-CECNsBx1.js";import{c as T,s as z,H as xe,h as P,f as F,B as ue}from"./index-bP1urf9D.js";import{R as me}from"./relative-time-D0PKnQr3.js";import{a7 as he,y as k}from"./vendor-utils-f0cH60Lr.js";import{D as $}from"./index-DIOGsNFt.js";import{d as G}from"./vendor-hooks-Dk0Sjyu7.js";import{d as fe}from"./InfoOutlined-BtVOjnjf.js";function Q({attachment:e}){const{data:s}=e;let n="";try{n=new URL(s.url).host}catch{n=s.url}return t.jsxs(_,{target:"_blank",rel:"noopener noreferrer",href:s.url,className:"link",style:{wordBreak:"break-all"},children:[!!n&&t.jsx("span",{className:"url",children:n}),!!s.title&&t.jsx(d,{className:"title",style:{whiteSpace:"unset"},children:s.title}),!!s.description&&t.jsx(d,{className:"description",style:{whiteSpace:"unset",color:"rgba(75, 85, 99, 1)"},children:s.description}),!!s.image&&t.jsx("img",{srcSet:`${$.getImagePath(s.image)}?w=128&h=128&fit=crop&auto=format&dpr=2 2x`,src:`${$.getImagePath(s.image)}?w=128&h=128&fit=crop&auto=format`,alt:s.title||"",loading:"lazy",height:128,style:{borderRadius:"8px",maxWidth:"256px",objectFit:"cover"}})]})}Q.propTypes={attachment:a.object.isRequired};function K({attachment:e}){const{data:s}=e;return t.jsx("img",{srcSet:`${$.getImagePath(s.url)}?w=128&h=128&fit=crop&auto=format&dpr=2 2x`,src:`${$.getImagePath(s.url)}?w=128&h=128&fit=crop&auto=format`,alt:s.title||"",loading:"lazy",height:128,style:{borderRadius:"8px",maxWidth:"256px",objectFit:"cover"}})}K.propTypes={attachment:a.object.isRequired};function D({attachment:e,...s}){var c;const{data:n}=e,r=((c=n.color)==null?void 0:c.toLowerCase())||s.color,l=n.size||s.size,o=n.fontWeight||s.fontWeight||400;let i="14px";return l==="small"?i="12px":l==="normal"?i="14px":l==="big"?i="16px":l==="large"&&(i="18px"),t.jsx("span",{className:"title",style:{fontSize:i,color:r,whiteSpace:"unset",fontWeight:o},children:n.text})}D.propTypes={attachment:a.object.isRequired};L.propTypes={locale:a.string,data:a.object.isRequired};L.defaultProps={locale:"en"};function L({locale:e="en",data:s}){const n={zh:"来自",en:"from"}[e]||"from",r={zh:"接收",en:"Received"}[e]||"Received",o=`https://${T.getUrlHost(s.chainHost)||T.getChainHost(s.chainId)}/explorer/tokens/${s.address}/tx`;let i=s.amount;s.decimal&&(i=s.amount/10**s.decimal);const c=G(()=>({display:"flex",alignItems:"center",rowGap:2,columnGap:4,justifyContent:"space-between",flexWrap:"wrap"}));return t.jsx("a",{href:o,target:"_blank",rel:"noreferrer",children:t.jsxs(d,{display:"flex",flexDirection:"column",children:[t.jsxs(d,{sx:c,children:[t.jsx(w,{component:"div",sx:{fontWeight:700,color:"rgba(3, 7, 18, 1)"},children:r}),t.jsxs(w,{component:"div",align:"right",style:z.summaryStyle,flex:1,children:["+",i," ",s.symbol]})]}),t.jsxs(d,{sx:c,children:[t.jsx(w,{component:"div",style:{...z.remarkStyle,fontSize:14},children:n}),t.jsx(d,{sx:{maxWidth:"252px",fontSize:"14px"},children:t.jsx(R,{did:s.address,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:e})})]})]})})}M.propTypes={locale:a.string,data:a.object.isRequired};M.defaultProps={locale:"en"};function M({locale:e,data:s}){var x,p;const n={zh:"接收",en:"Received"}[e]||"Received",r={zh:"来自",en:"from"}[e]||"from",l=T.getUrlHost(s.chainHost)||T.getChainHost(s.chainId),o=s.did||((p=(x=s==null?void 0:s.credential)==null?void 0:x.issuer)==null?void 0:p.id)||"",i=`https://${l}/explorer/assets/${o}`,c=G(()=>({display:"flex",alignItems:"center",rowGap:2,columnGap:4,justifyContent:"space-between",flexWrap:"wrap"}));return t.jsx(d,{sx:{pr:1},children:t.jsx("a",{href:i,target:"_blank",style:{textDecoration:"none",color:"initial",display:"block"},rel:"noreferrer",children:t.jsxs(d,{display:"flex",flexDirection:"column",children:[t.jsxs(d,{sx:c,children:[t.jsx(w,{component:"div",sx:{fontWeight:700,color:"rgba(3, 7, 18, 1)"},children:n}),t.jsx(w,{component:"div",align:"right",style:z.summaryStyle,children:"+1 Asset"})]}),o?t.jsxs(d,{sx:c,children:[t.jsx(w,{component:"div",style:{...z.remarkStyle,fontSize:14},children:r}),t.jsx(d,{sx:{maxWidth:"252px",fontSize:"14px"},children:t.jsx(R,{did:o,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:e})})]}):null]})})})}O.propTypes={data:a.object.isRequired,locale:a.string};function O({data:e,locale:s="en"}){return t.jsxs("a",{href:e.url,target:"_blank",style:{display:"flex",textDecoration:"none",color:"initial"},rel:"noreferrer",children:[t.jsx("img",{className:"image",src:e.logo,width:50,height:50,alt:""}),t.jsxs("div",{style:{flex:1,marginLeft:"10px"},children:[t.jsx("div",{style:{marginBottom:"6px"},children:e.title}),t.jsx("div",{style:{color:"#a5a5a5",fontSize:10,maxWidth:"252px"},children:t.jsx(R,{did:e.appDID,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:s})})]})]})}A.propTypes={locale:a.string,data:a.object.isRequired};A.defaultProps={locale:"en"};function A({locale:e,data:s}){const n=T.getChainHost(s.chainId),r=`https://${n}/explorer/txs/${s.hash}`,l={zh:"交易详情",en:"Transaction Details"}[e]||"Transaction Details",o={zh:"交易哈希",en:"Transaction Hash"}[e]||"Transaction Hash";return t.jsxs("a",{href:r,target:"_blank",style:{textDecoration:"none",color:"initial",display:"block",fontSize:14},rel:"noreferrer",children:[t.jsx("h6",{style:{color:"#a5a5a5",margin:0},children:n}),t.jsx("p",{style:{color:"#4598fa",margin:0},children:l}),t.jsxs("div",{style:{wordBreak:"break-all"},children:[o,": ",s.hash]})]})}function V({data:e,isMd:s=!1}){return t.jsx(d,{display:"flex",flexDirection:s?"row":"column",justifyContent:"space-between",sx:{width:s?"100%":"auto"},children:e.items.map((n,r)=>t.jsx(D,{attachment:n,color:r===0?"rgba(156, 163, 175, 1)":"",size:r===0?"normal":"big",fontWeight:r===0?400:600},r))})}V.propTypes={data:a.array.isRequired,isMd:a.bool};function J({attachment:e,...s}){const{local:n}=m.useContext(E),r=b(l=>l.breakpoints.down("md"));return t.jsxs(ge,{"data-testid":"attachment-preview",...s,isMd:r,children:[e.type==="link"&&t.jsx(Q,{attachment:e,...s,isMd:r}),e.type==="image"&&t.jsx(K,{attachment:e,isMd:r}),e.type==="text"&&t.jsx(D,{attachment:e,isMd:r}),e.type==="token"&&t.jsx(L,{data:e.data,local:n,isMd:r}),e.type==="asset"||e.type==="vc"?t.jsx(M,{data:e.data,local:n,isMd:r}):null,e.type==="dapp"&&t.jsx(O,{data:e.data,local:n,isMd:r}),e.type==="transaction"&&t.jsx(A,{data:e.data,local:n,...s,isMd:r}),e.type==="divider"&&t.jsx(N,{sx:{mb:1,mt:1},style:{color:B.dividerColor}}),e.type==="combined"&&t.jsx(V,{data:e,isMd:r})]})}const ge=v.div`
2
2
  display: ${({sx:e={}})=>e.display||"flex"};
3
3
  flex-direction: ${({sx:e={}})=>e.flexDirection||"column"};
4
4
  gap: ${({sx:e={}})=>e.gap||1};
@@ -102,11 +102,10 @@ import{r as m}from"./vendor-react-D-afvo_7.js";import{E as a,j as t,bp as _,a3 a
102
102
  .content.ellipsis {
103
103
  overflow: hidden;
104
104
  text-overflow: ellipsis;
105
- display: block
105
+ display: block;
106
106
  display: -webkit-box;
107
107
  -webkit-box-orient: vertical;
108
- max-height: 3em;
109
- line-height: 1.5em;
108
+ -webkit-line-clamp: 2;
110
109
  }
111
110
  }
112
111
  `,Ie=m.memo(Z);Ne.propTypes={data:a.array,blockletMap:a.object,onReadNotification:a.func,inDialog:a.bool};te.propTypes={notification:a.object,blocklet:a.object,onReadNotification:a.func,inDialog:a.bool};ee.propTypes={blocklet:a.object,size:a.number,showName:a.bool,hideDot:a.bool};function ee({blocklet:e,size:s=40,showName:n=!1,hideDot:r=!1}){var i,c;const l=(e==null?void 0:e.did)||((i=e==null?void 0:e.meta)==null?void 0:i.did)||"",o=((e==null?void 0:e.alsoKnownAs)||[]).concat((e==null?void 0:e.appId)||(e==null?void 0:e.appDid)||(e==null?void 0:e.appPid)||"");return t.jsxs(d,{className:"component-avatar",display:"flex",alignItems:"center",sx:{gap:r?"8px":"4px"},children:[!r&&t.jsx("span",{className:"dot"}),e?t.jsx(d,{children:o.includes(l)?t.jsx(ue,{blocklet:e,size:s}):t.jsx(pe,{blocklet:e,ancestors:e.ancestors??[],size:s})}):t.jsx(de,{width:s,height:s}),n&&t.jsx("span",{className:"component-name",children:(c=e==null?void 0:e.meta)==null?void 0:c.title})]})}function te({notification:e,blocklet:s,onReadNotification:n=()=>{},inDialog:r=!1}){const{locale:l}=m.useContext(E),o=oe(),i=b(p=>p.breakpoints.down("sm")),c=m.useMemo(()=>{const{receivers:p=[]}=e;return p.length?p[0].read:!0},[e]),x=m.useMemo(()=>{const{actions:p,action:h}=e;let f=p??[];return!f.length&&h&&(f=[{name:"Visit",link:h}]),f},[e]);return t.jsxs(Re,{className:"notification-row",display:"flex",alignItems:"flex-start",gap:i?1:1.5,sx:{padding:"8px"},isRead:c,onClick:()=>n(e),children:[t.jsx(ee,{blocklet:s,size:i?32:40,isSm:i}),t.jsxs(d,{className:"notification",display:"flex",flexDirection:"column",alignItems:"start",children:[t.jsxs(d,{display:"flex",justifyContent:"start",alignItems:"center",gap:1,className:"header",children:[t.jsx(d,{className:"title",children:e.title}),"·",t.jsx(me,{value:e.createdAt,locale:l,shouldUpdate:!0,style:{color:o.palette.text.secondary,fontSize:"0.875rem",minWidth:"50px",whiteSpace:"nowrap"}})]}),t.jsx(Ie,{notification:e,rows:r?0:2}),x.length>0?t.jsx(d,{display:"flex",justifyContent:"start",alignItems:"center",gap:1,children:x.map((p,h)=>t.jsxs(m.Fragment,{children:[t.jsx(_,{href:p.link,target:"_blank",className:"link",sx:{fontSize:"15px"},children:p.name},p.link),h<x.length-1?t.jsx(N,{orientation:"vertical",sx:{ml:1,mr:1,height:12,borderWidth:"1px"}}):null]},p.link))}):null]})]})}function Ne({data:e,blockletMap:s,onReadNotification:n=()=>{},inDialog:r=!1}){const{t:l}=U(),o=m.useMemo(()=>r?e==null?void 0:e.slice(0,5):e,[r,e]);return e!=null&&e.length?t.jsx(d,{display:"flex",flexDirection:"column",sx:{mt:1,...r?{maxHeight:"calc(-200px + 100vh)",overflow:"auto"}:{}},children:o==null?void 0:o.map(i=>{var x;const c=i.source==="system"?s.get(i.entityId||i.sender):s.get(i.componentDid||i.sender);return((x=i==null?void 0:i.type)==null?void 0:x.toLowerCase())==="passthrough"?null:t.jsx(te,{inDialog:r,notification:i,blocklet:c,onReadNotification:()=>n(i)},i.id)})}):t.jsx(ce,{children:l("common.emptyData")})}const Re=v(d)`