System.register(["../../../../common/index-legacy.DRKniymH.js"],(function(t,e){"use strict";var s,w,l,i,r,a,d,o,n,c,g,u,p,x,y;return{setters:[t=>{s=t.d,w=t.t,l=t.r,i=t.X,r=t.o,a=t.c,d=t.b,o=t.M,n=t.N,c=t.H,g=t.a,u=t.u,p=t.Q,x=t.e,y=t.G}],execute:function(){const e={class:"stwlite-tw-border stwlite-tw-border-gray-200 stwlite-tw-border-solid stwlite-tw-rounded-lg stwlite-tw-overflow-hidden"},b={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"},v={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"},m={key:0},f={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"},h=["innerHTML"],k={key:1,class:"stwlite-tw-px-6 stwlite-tw-py-12"},_={class:"stwlite-tw-text-center"},j={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"},H={class:"stwlite-tw-text-gray-500 stwlite-tw-text-sm"};t("default",s({__name:"TableControl",props:{params:{type:Object,required:!0}},setup(t){const s=t,{params:M}=w(s),T=M.value;l(T.paginated??!1);const I=T.fields,L=l(T.classes),N=l(T.data);return(t,s)=>{const w=i("ShoppingBag");return r(),a("div",{class:c(L.value)},[d("div",e,[d("div",b,[d("div",v,[(r(!0),a(o,null,n(u(I),(t=>(r(),a("div",{key:t.dataIndex,class:c(`col-span-${t.width??2}`)},g(t.title),3)))),128))])]),N.value.length>0?(r(),a("div",m,[(r(!0),a(o,null,n(N.value,((t,e)=>(r(),a("div",{key:t.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"},[d("div",f,[d("div",{class:"stwlite-tw-col-span-3 stwlite-tw-inline-flex stwlite-tw-items-center",innerHTML:u(p)(t[u(I)[e].dataIndex]??"")},null,8,h)])])))),128))])):(r(),a("div",k,[d("div",_,[d("div",j,[x(w,{class:"stwlite-tw-w-6 stwlite-tw-h-6 stwlite-tw-text-gray-400"})]),d("p",H,g(u(y)("empty_table",u(wp.i18n.__)("No data found","saveto-wishlist-lite-for-woocommerce"))),1)])]))])],2)}}}))}}}));
