1import{j as s,R as u}from"./vendor-react.ELhBuE2q.js";import{c as _,b as j,W as w}from"./app-shared.CdUkAbk4.js";import{n as k}from"./notiThemeStyle.DlwZnCOU.js";import{w as N,d as S,b as g,c as f,P as v,S as y}from"./txnAlertStatus.vf8e0KR_.js";import{u as b}from"./vendor-i18n.DvM0XvO9.js";import"./vendor-ui.BSTRh9Ug.js";import"./vendor-router.aN8wpDPU.js";import"./vendor-moment.BLMuvzoS.js";import"./vendor-axios.NIGUFBhG.js";const L=({statusKey:t,color:n})=>{const o=y[t]||"#ffffff",a={width:22,height:22,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:"shrink-0","aria-hidden":!0};return s.jsxs("svg",{...a,children:[s.jsx("circle",{cx:"12",cy:"12",r:"11",fill:n}),t==="success"&&s.jsx("path",{d:"M7 12.4l3.2 3.2L17 8.8",fill:"none",stroke:"#ffffff",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"}),(t==="cancel"||t==="fail")&&s.jsx("path",{d:"M8.2 8.2l7.6 7.6M15.8 8.2l-7.6 7.6",fill:"none",stroke:"#ffffff",strokeWidth:"2.2",strokeLinecap:"round"}),t==="progress"&&s.jsx("path",{d:"M12 6.6V12l3.4 2.2",fill:"none",stroke:o,strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})]})},C=({dataEvent:t,onClose:n})=>{var d;const{t:r}=b(),{themePage:o}=_()||{},a=(o==null?void 0:o.modal)||(o==null?void 0:o.all),{jsonSetting:x}=j()||{},p=k(x,a),c=Array.isArray((d=t==null?void 0:t.data)==null?void 0:d.items)?t.data.items:[];return s.jsx("div",{className:"noti_event_container modal-fit modal-scroll-area h-full",children:s.jsxs("div",{className:"noti_event_body w-full p-[20px] relative flex flex-col items-center gap-[10px]",children:[s.jsx("div",{className:"noti_title",children:r("noti_pending_alerts_title",{count:c.length})}),s.jsx("div",{className:"w-full flex flex-col",children:c.map((h,m)=>{const{kind:i,row:e}=h,l=i==="withdraw"?N(e==null?void 0:e.status):S(e);return s.jsxs(u.Fragment,{children:[m>0&&s.jsx("div",{className:"noti_row_sep"}),s.jsxs("div",{className:"noti_row",children:[s.jsx(L,{statusKey:l.key,color:l.color}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"noti_row_label",children:[r(i==="withdraw"?"withdraw":"deposit"),l.labelKey?` · ${r(l.labelKey)}`:""]}),s.jsx("div",{className:"noti_row_meta",children:g(i,e)})]}),l.key==="progress"?s.jsx("div",{className:"noti_row_amount px-2 py-0.5 rounded-full border",style:v,children:f(i,e)}):s.jsx("div",{className:"noti_row_amount",style:{color:l.color},children:f(i,e)})]})]},`${i}_${(e==null?void 0:e.id)??m}`)})}),s.jsx(w,{styleName:p,className:"noti_action",label:r("acknowledge_all"),onClick:()=>n()})]})})};export{C as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.