1import{r as l,O as f,t as C,y as P,j as t,T as v}from"./app-CZw4zvFM.js";import{R as b,C as a}from"./row-M-1fLFv3.js";import{C as i}from"./index-BlW28zjE.js";import{S as c}from"./index-CdtBWlRw.js";import{P as z}from"./index-DLFNfg-G.js";import{E as O}from"./index-DUZSKLIY.js";import{F as H}from"./Table-h9VaYrIX.js";import{T as V}from"./index-GHo0gMzn.js";/* empty css */import"./useBreakpoint-PA8SwT4Z.js";import"./EllipsisOutlined-B7OjL6qX.js";import"./Overflow-uTMTJwUS.js";import"./PlusOutlined-CcDZkb5g.js";import"./makeChartComp-BxGRd6nc.js";import"./callSuper-Cu6FRejo.js";import"./objectWithoutProperties-BntJMkdI.js";import"./index-B8SovKPY.js";import"./move-1krGBtlZ.js";import"./DownOutlined-CTtnvDxu.js";import"./SearchOutlined-C9JuSteG.js";import"./index-BMl25Uzj.js";import"./FileOutlined-Be1gfnhV.js";import"./FolderOpenOutlined-DvOf-kRu.js";import"./HolderOutlined-DIYjOBfk.js";import"./index-6ZORLKDC.js";import"./CaretDownFilled-DBJPTnyl.js";import"./index-ZUebQvBO.js";import"./useBubbleLock-BClqePJl.js";import"./index-DABuY6qb.js";import"./dropdown-BPhbloOu.js";import"./index-D7FWo8t1.js";import"./Addon-DOudmed9.js";import"./index-BPfpx2jp.js";import"./useForm-D-jYjTVi.js";import"./Pagination-CC4nssQR.js";import"./Input-DSSJiXAe.js";import"./CaretUpOutlined-IMJ8VlKe.js";var B={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M553.1 509.1l-77.8 99.2-41.1-52.4a8 8 0 00-12.6 0l-99.8 127.2a7.98 7.98 0 006.3 12.9H696c6.7 0 10.4-7.7 6.3-12.9l-136.5-174a8.1 8.1 0 00-12.7 0zM360 442a40 40 0 1080 0 40 40 0 10-80 0zm494.6-153.4L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file-image",theme:"outlined"};function d(){return d=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},d.apply(this,arguments)}const E=(e,r)=>l.createElement(f,d({},e,{ref:r,icon:B})),u=l.forwardRef(E);var S={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M531.3 574.4l.3-1.4c5.8-23.9 13.1-53.7 7.4-80.7-3.8-21.3-19.5-29.6-32.9-30.2-15.8-.7-29.9 8.3-33.4 21.4-6.6 24-.7 56.8 10.1 98.6-13.6 32.4-35.3 79.5-51.2 107.5-29.6 15.3-69.3 38.9-75.2 68.7-1.2 5.5.2 12.5 3.5 18.8 3.7 7 9.6 12.4 16.5 15 3 1.1 6.6 2 10.8 2 17.6 0 46.1-14.2 84.1-79.4 5.8-1.9 11.8-3.9 17.6-5.9 27.2-9.2 55.4-18.8 80.9-23.1 28.2 15.1 60.3 24.8 82.1 24.8 21.6 0 30.1-12.8 33.3-20.5 5.6-13.5 2.9-30.5-6.2-39.6-13.2-13-45.3-16.4-95.3-10.2-24.6-15-40.7-35.4-52.4-65.8zM421.6 726.3c-13.9 20.2-24.4 30.3-30.1 34.7 6.7-12.3 19.8-25.3 30.1-34.7zm87.6-235.5c5.2 8.9 4.5 35.8.5 49.4-4.9-19.9-5.6-48.1-2.7-51.4.8.1 1.5.7 2.2 2zm-1.6 120.5c10.7 18.5 24.2 34.4 39.1 46.2-21.6 4.9-41.3 13-58.9 20.2-4.2 1.7-8.3 3.4-12.3 5 13.3-24.1 24.4-51.4 32.1-71.4zm155.6 65.5c.1.2.2.5-.4.9h-.2l-.2.3c-.8.5-9 5.3-44.3-8.6 40.6-1.9 45 7.3 45.1 7.4zm191.4-388.2L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file-pdf",theme:"outlined"};function h(){return h=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},h.apply(this,arguments)}const M=(e,r)=>l.createElement(f,h({},e,{ref:r,icon:S})),T=l.forwardRef(M);var L={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M424 476c-4.4 0-8 3.6-8 8v276c0 4.4 3.6 8 8 8h32.5c4.4 0 8-3.6 8-8v-95.5h63.3c59.4 0 96.2-38.9 96.2-94.1 0-54.5-36.3-94.3-96-94.3H424zm150.6 94.3c0 43.4-26.5 54.3-71.2 54.3h-38.9V516.2h56.2c33.8 0 53.9 19.7 53.9 54.1zm280-281.7L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file-ppt",theme:"outlined"};function x(){return x=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},x.apply(this,arguments)}const $=(e,r)=>l.createElement(f,x({},e,{ref:r,icon:L})),I=l.forwardRef($);function D(){const{token:e}=C.useToken();return{infographic:t.jsx(u,{style:{color:e.colorPrimary}}),presentation:t.jsx(I,{style:{color:e.colorWarning}}),report:t.jsx(T,{style:{color:e.colorError}})}}const k={pending:"default",processing:"processing",completed:"success",failed:"error"};function A(e){return new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function It({data:e,loading:r}){const n=D(),{token:o}=C.useToken(),{resolvedAppearance:_}=P(),g=_==="dark"?"classicDark":"classic",w=[{title:"Title",dataIndex:"title",key:"title",render:(s,p)=>t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[n[p.type]||t.jsx(u,{}),t.jsx(v.Text,{ellipsis:!0,style:{maxWidth:200},children:s})]})},{title:"Type",dataIndex:"type_label",key:"type_label"},{title:"Status",dataIndex:"status",key:"status",render:s=>t.jsx(V,{color:k[s]||"default",children:s.charAt(0).toUpperCase()+s.slice(1)})},{title:"Created By",dataIndex:"user_name",key:"user_name",render:s=>t.jsx(v.Text,{type:"secondary",children:s})},{title:"Created",dataIndex:"created_at",key:"created_at",render:s=>A(s)}],y=e.by_type.map(s=>({type:s.label,value:s.count})),j=e.by_status.map(s=>({type:s.status.charAt(0).toUpperCase()+s.status.slice(1),value:s.count}
1)),R={data:y,angleField:"value",colorField:"type",radius:.8,innerRadius:.6,label:{text:"value",position:"outside"},legend:{position:"bottom"},height:220,theme:g},F={data:j,angleField:"value",colorField:"type",radius:.8,innerRadius:.6,label:{text:"value",position:"outside"},legend:{position:"bottom"},height:220,color:[o.colorBorder,o.colorPrimary,o.colorSuccess,o.colorError],theme:g},m=s=>e.by_type.find(p=>p.type===s)?.count||0;return t.jsxs("div",{children:[t.jsxs(b,{gutter:[16,16],style:{marginBottom:24},children:[t.jsx(a,{xs:24,sm:12,md:6,children:t.jsx(i,{size:"small",children:t.jsx(c,{title:"Total Items",value:e.total_items})})}),t.jsx(a,{xs:24,sm:12,md:6,children:t.jsx(i,{size:"small",children:t.jsx(c,{title:"Infographics",value:m("infographic"),prefix:t.jsx(u,{})})})}),t.jsx(a,{xs:24,sm:12,md:6,children:t.jsx(i,{size:"small",children:t.jsx(c,{title:"Presentations",value:m("presentation"),prefix:t.jsx(I,{})})})}),t.jsx(a,{xs:24,sm:12,md:6,children:t.jsx(i,{size:"small",children:t.jsx(c,{title:"Reports",value:m("report"),prefix:t.jsx(T,{})})})})]}),t.jsxs(b,{gutter:[16,16],style:{marginBottom:24},children:[t.jsx(a,{xs:24,lg:12,children:t.jsx(i,{title:"By Content Type",size:"small",children:y.length>0?t.jsx(z,{...R}):t.jsx(O,{description:"No content created"})})}),t.jsx(a,{xs:24,lg:12,children:t.jsx(i,{title:"By Status",size:"small",children:j.length>0?t.jsx(z,{...F}):t.jsx(O,{description:"No content created"})})})]}),t.jsx(i,{title:"Recent Content",size:"small",children:t.jsx(H,{rowKey:"id",columns:w,dataSource:e.recent_items,pagination:!1,size:"small",loading:r,locale:{emptyText:"No content created yet"}})})]})}export{It 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.