import{d as h,t as v,r,X as k,o as e,c as s,b as t,M as p,N as _,H as g,a as u,u as i,Q as B,e as C,G as H}from"../../../../common/index.DXvi0yH9.js";const N={class:"stwlite-tw-border stwlite-tw-border-gray-200 stwlite-tw-border-solid stwlite-tw-rounded-lg stwlite-tw-overflow-hidden"},S={class:"stwlite-tw-bg-gray-50 stwlite-tw-px-6 stwlite-tw-py-3 stwlite-tw-border-0 stwlite-tw-border-b stwlite-tw-border-gray-200 stwlite-tw-border-solid"},I={class:"stwlite-tw-grid stwlite-tw-grid-cols-12 stwlite-tw-gap-4 stwlite-tw-text-left stwlite-tw-text-xs stwlite-tw-font-medium stwlite-tw-text-gray-500 stwlite-tw-uppercase stwlite-tw-tracking-wider"},L={key:0},M={class:"stwlite-tw-grid stwlite-tw-grid-cols-12 stwlite-tw-gap-4 stwlite-tw-text-left stwlite-tw-text-xs stwlite-tw-text-gray-500 stwlite-tw-tracking-wider"},T=["innerHTML"],j={key:1,class:"stwlite-tw-px-6 stwlite-tw-py-12"},V={class:"stwlite-tw-text-center"},q={class:"mx-auto stwlite-tw-w-16 stwlite-tw-h-16 stwlite-tw-bg-gray-100 stwlite-tw-rounded-full stwlite-tw-flex stwlite-tw-items-center stwlite-tw-justify-center stwlite-tw-mb-4"},z={class:"stwlite-tw-text-gray-500 stwlite-tw-text-sm"},G=h({__name:"TableControl",props:{params:{type:Object,required:!0}},setup(x){var n;const m=x,{params:y}=v(m),l=y.value;r((n=l.paginated)!=null?n:!1);const o=l.fields,b=r(l.classes),d=r(l.data);return(D,E)=>{const f=k("ShoppingBag");return e(),s("div",{class:g(b.value)},[t("div",N,[t("div",S,[t("div",I,[(e(!0),s(p,null,_(i(o),w=>{var a;return e(),s("div",{key:w.dataIndex,class:g("col-span-".concat((a=w.width)!=null?a:2))},u(w.title),3)}),128))])]),d.value.length>0?(e(),s("div",L,[(e(!0),s(p,null,_(d.value,(w,a)=>{var c;return e(),s("div",{key:w.id,class:"stwlite-tw-px-6 stwlite-tw-py-3 stwlite-tw-border-0 stwlite-tw-border-b stwlite-tw-border-gray-200 stwlite-tw-border-solid"},[t("div",M,[t("div",{class:"stwlite-tw-col-span-3 stwlite-tw-inline-flex stwlite-tw-items-center",innerHTML:i(B)((c=w[i(o)[a].dataIndex])!=null?c:"")},null,8,T)])])}),128))])):(e(),s("div",j,[t("div",V,[t("div",q,[C(f,{class:"stwlite-tw-w-6 stwlite-tw-h-6 stwlite-tw-text-gray-400"})]),t("p",z,u(i(H)("empty_table",i(wp.i18n.__)("No data found","saveto-wishlist-lite-for-woocommerce"))),1)])]))])],2)}}});export{G as default};
