1import{u as l,j as e}from"./app-C4JvTZ4X.js";import{T as d}from"./TableCellAvatar-BKDZhXRd.js";import{D as m}from"./DeleteItemButton-COcgce2A.js";import{E as p,V as n}from"./ViewItemButton-BvOYKAwV.js";import{R as b}from"./RecoverItemButton-DiXlI6Nm.js";import{N as x}from"./NoDataDisplay-A1bi0TIj.js";import{T as t,a as s,b as j}from"./TableHeadWithSort-DtZ-s-oE.js";import{T as c,a as u,b as i,c as h,d as f,e as o}from"./TableCellDate-BrXTSwLg.js";/* empty css */import"./avatar-SZNIcfMU.js";import"./index-CncQ0HDQ.js";import"./index-C1Q1gb3i.js";import"./index-Brt361Md.js";import"./index-BUMI5Alo.js";import"./index-BCqfIV5N.js";import"./index-BnEBJ9Wz.js";import"./utils-D-_GmQbo.js";import"./use-initials-DfFBynvq.js";import"./button-DwBH6lL2.js";import"./index-DS3HsZ3l.js";import"./dialog-BIWoJHtY.js";import"./index-CU5i4-2y.js";import"./index-ZA8bFkQr.js";import"./index-DKCyn46H.js";import"./index-D3-XjAM9.js";import"./index-C7FVmubS.js";import"./index-DVpavd6F.js";import"./index-gurXTEHv.js";import"./x-7V8JLukm.js";import"./createLucideIcon-CG5pTxDe.js";import"./use-permission-CK130x0H.js";import"./use-translation-DHeTNDjg.js";import"./index-Biqe_qgI.js";import"./TooltipButton-tq94Z8F0.js";import"./tooltip-CfAoH_lu.js";import"./index-C2zllJwD.js";import"./index-1Iy5L9JG.js";import"./index-DelJNRNC.js";import"./trash-2-Ck_sCjel.js";import"./triangle-alert-Ch5p_wxt.js";import"./loader-circle-Bg_lRT1l.js";import"./square-pen-C1cNFQKM.js";import"./view-CRzJxBYd.js";import"./badge-DAswhXgg.js";const pe=()=>{const{tableData:r}=l().props;return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"table-data-container",children:e.jsxs(c,{children:[e.jsx(u,{className:"table-header",children:e.jsxs(i,{children:[e.jsx(t,{field:"id",label:"ID"}),e.jsx(t,{label:"Action"}),e.jsx(t,{label:"Image"}),e.jsx(t,{field:"name",label:"Name"}),e.jsx(t,{field:"name_kh",label:"Name Khmer"}),e.jsx(t,{field:"short_description",label:"Short Description"}),e.jsx(t,{field:"short_description_kh",label:"Short Description Khmer"}),e.jsx(t,{field:"created_at",label:"Created at"}),e.jsx(t,{field:"created_by",label:"Created by"}),e.jsx(t,{field:"updated_at",label:"Updated at"}),e.jsx(t,{field:"updated_by",label:"Updated by"})]})}),e.jsx(h,{className:"table-body rounded-md",children:r?.data?.map((a,_)=>e.jsxs(i,{className:"table-row",children:[e.jsx(s,{value:a.id}),e.jsx(j,{children:a.deleted_at?e.jsx(b,{deleted_at:a.deleted_at,recoverPath:`/admin/website-infos/${a.id}/recover`,permission:"user update"}):e.jsxs(e.Fragment,{children:[e.jsx(p,{url:`/admin/website-infos/${a.id}/edit`,permission:"website_info update"}),e.jsx(n,{url:`/admin/website-infos/${a.id}`,permission:"website_info view"}),e.jsx(m,{deletePath:"/admin/website-infos/",id:a.id,permission:"website_info delete"})]})}),e.jsx(f,{children:e.jsx(d,{className:"rounded-none border-none object-contain",alt:a.name,image:`/assets/images/website_infos/thumb/${a.image}`})}),e.jsx(s,{value:a.name}),e.jsx(s,{value:a.name_kh}),e.jsx(s,{value:a.short_description}),e.jsx(s,{value:a.short_description_kh}),e.jsx(o,{value:a.created_at}),e.jsx(s,{value:a.created_user?.name}),e.jsx(o,{value:a.updated_at}),e.jsx(s,{value:a.updated_user?.name})]},a.id))})]})}),r?.data?.length<1&&e.jsx(x,{})]})};export{pe 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.