1import{r as d,j as t,x as u}from"./app-MLckdXAM.js";import{D as h}from"./buttons.colVis-Dj176iV8.js";function p({articles:s=[],pageId:o}){var r;const i=((r=window.appConfig)==null?void 0:r.urlAdmin)||"/",n=d.useRef();return d.useEffect(()=>{let e;return n.current&&(e=new h(n.current,{destroy:!0,paging:!0,searching:!0,info:!0,ordering:!0,responsive:!0,pageLength:10,lengthMenu:[5,10,25,50],language:{emptyTable:"No data found.",paginate:{first:'<button class="btn btn-sm btn-outline-primary me-1">First</button>',last:'<button class="btn btn-sm btn-outline-primary ms-1">Last</button>',next:'<button class="btn btn-sm btn-outline-primary ms-1">Next <i class="fa fa-angle-right"></i></button>',previous:'<button class="btn btn-sm btn-outline-primary me-1"><i class="fa fa-angle-left"></i> Prev</button>'}},dom:"<'row my-4'<'col-md-6'l><'col-md-6'f>><'row my-4'<'col-12'tr>><'row my-4'<'col-md-5'i><'col-md-7'p>>"})),()=>{e&&e.destroy()}},[s]),t.jsx("div",{className:"table-responsive",children:t.jsxs("table",{ref:n,className:"table table-bordered table-sm mb-0",style:{width:"100%"},children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{className:"text-center",style:{width:"3%"},children:"No"}),t.jsx("th",{className:"text-center",style:{width:"45%"},children:"Page Title"}),t.jsx("th",{className:"text-center",style:{width:"5%"},children:"Published"}),t.jsx("th",{className:"text-center",style:{width:"5%"},children:"Sort Order"}),t.jsx("th",{className:"text-center",style:{width:"5%"},children:"Action"})]})}),t.jsx("tbody",{children:Array.isArray(s)&&s.length>0?s.map((e,l)=>{const a=(e==null?void 0:e.id)??(e==null?void 0:e.related_id)??null,b=(e==null?void 0:e.name)??(e==null?void 0:e.title)??(e==null?void 0:e.menu_title)??"-",c=Number(e==null?void 0:e.published)===1;return t.jsxs("tr",{children:[t.jsx("td",{className:"text-center",children:l+1}),t.jsx("td",{children:b}),t.jsx("td",{className:"text-center",children:t.jsx("span",{className:`badge ${c?"badge-success":"badge-danger"}`,children:c?"Yes":"No"})}),t.jsx("td",{className:"text-center",children:(e==null?void 0:e.order_id)||0}),t.jsx("td",{className:"text-center",children:a?t.jsx(u,{href:`${i}abouts/component/partner/academic-advisory-council/form/edit?page_id=${o}&id=${a}`,className:"btn btn-sm btn-info",children:t.jsx("i",{className:"fa fa-edit"})}):t.jsx("button",{type:"button",className:"btn btn-sm btn-secondary",disabled:!0,children:t.jsx("i",{className:"fa fa-ban"})})})]},a??l)}):t.jsx("tr",{children:t.jsx("td",{colSpan:5,className:"text-center",children:"No data found."})})})]})})}export{p 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.