1import{r as x,j as a,L as F}from"./main-CMViuH_f.js";import{i as b,a as o}from"./vendor-react-Bjxsyr_G.js";import{c as g,b as O,f as D}from"./feedDataFilters-RDI2ycOW.js";import{T as P}from"./TableData-rsaJzmAi.js";import{F as S}from"./Filters-B_zORFkG.js";import{u as j}from"./vendor-i18n-CmmgQqfv.js";import"./vendor-redux-CkTbKByD.js";import"./vendor-forms-Chlqk9RW.js";import"./useMediaQuery-Bzu3CIqR.js";import"./Checkbox-103DDomz.js";import"./filterStyles-Dc9vUaM-.js";import"./DateTimePicker-DzJlOK33.js";import"./dateUtils-Cn8z919x.js";import"./formatDate-C6Vg3jtv.js";function B(){const{t:s}=j(),[n,u]=b(),[l,f]=o.useState(null),[d,{data:i,isLoading:c}]=g(),m=(i==null?void 0:i.data)||[],y=o.useMemo(()=>[{key:"id",label:"ID"},{key:"feed_type",label:s("REPORTS.FEED_TYPE")},{key:"type",label:s("REPORTS.TYPE")},{key:"note",label:s("REPORTS.NOTE")},{key:"details",label:s("REPORTS.DETAILS"),render:e=>String(e.details||"")},{key:"creation_date",label:s("REPORTS.CREATION_DATE")},{key:"created_at",label:s("REPORTS.CREATED_AT")}],[s]),p=O(s),T=o.useMemo(()=>{const e=[...p],r=e[1].options,t=D(l,r);return e[1]={...e[1],options:t},e},[l,p]),E=[];o.useEffect(()=>{const e={};n.forEach((t,R)=>{e[R]=t});const r=x(e);d(r)},[n,d]);const h=e=>{const r={};for(const t in e)e.hasOwnProperty(t)&&e[t]!==null&&e[t]!==""&&(r[t]=e[t],t==="feedType"&&f(e[t]));u(r)};return c&&m.length===0?a.jsx(F,{}):a.jsx("div",{children:a.jsxs("div",{className:"affiliates",align:"start",children:[a.jsx("h3",{className:"text-start",children:s("REPORTS.INVALID_FEED_DATA")}),a.jsx("div",{className:"flex justify-between items-start w-full",children:a.jsx("div",{className:"items-start pr-0 w-full md:w-2/3",children:a.jsx(S,{config:T,secConfig:E,onFiltersChanged:h})})}),a.jsx("div",{className:"marketing-links table-component__feed-data",children:a.jsx(P,{columns:y,items:m,loading:c,showIndex:!0,hideIndexOnMobile:!0,whiteRows:!0})})]})})}export{B 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.