1import{u as d,j as a,F as p}from"./components-CQCvpWKF.js";import{E as n,C as m,T as x}from"./constants-CGURA1jD.js";import{B as h,P as j,a as b,C as s,T as r,I as E,c as f,b as v}from"./Page-DsIpu0Ao.js";import{I as T}from"./InlineGrid-CrKCQlRG.js";import{S as l}from"./Select-GuUtahcZ.js";import{D as S}from"./DataTable-B3rA65Rw.js";import"./context-BPdKkLnc.js";import"./Sticky-MVCg3lKZ.js";function g(){const{logs:i,filters:t,summary:o}=d(),u=i.map(e=>[new Date(e.createdAt).toLocaleString(),e.order.orderNumber,e.channel,n[e.eventType],e.recipient,a.jsx(h,{tone:e.status==="FAILED"?"critical":"success",children:e.status},`${e.id}-status`),e.providerResponseId||"None"]);return a.jsx(j,{title:"Notification logs",children:a.jsxs(b,{gap:"500",children:[a.jsx(T,{columns:{xs:1,sm:2,md:4},gap:"400",children:Object.entries(o).map(([e,c])=>a.jsxs(s,{children:[a.jsx(r,{as:"p",variant:"heading2xl",children:c}),a.jsx(r,{as:"p",tone:"subdued",children:e})]},e))}),a.jsx(s,{children:a.jsx(p,{method:"get",children:a.jsxs(E,{gap:"300",blockAlign:"end",children:[a.jsx(f,{name:"q",label:"Search",defaultValue:t.q,autoComplete:"off"}),a.jsx(l,{name:"channel",label:"Channel",defaultValue:t.channel,options:[{label:"All",value:""},...m.map(e=>({label:e,value:e}))]}),a.jsx(l,{name:"status",label:"Status",defaultValue:t.status,options:[{label:"All",value:""},...["SENT","DELIVERED","FAILED","BOUNCED"].map(e=>({label:e,value:e}))]}),a.jsx(l,{name:"eventType",label:"Event",defaultValue:t.eventType,options:[{label:"All",value:""},...x.map(e=>({label:n[e],value:e}))]}),a.jsx(v,{submit:!0,children:"Apply"})]})})}),a.jsx(s,{children:a.jsx(S,{columnContentTypes:["text","text","text","text","text","text","text"],headings:["Timestamp","Order","Channel","Event","Recipient","Status","Provider ID"],rows:u})})]})})}export{g 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.