import{a as w}from"./Z4eZ-m2s.js";import{O as $,j as B,d as C,w as L,m as s,o as a,b as e,c as u,t as l,F as D,g as x,D as P,G as U,H as j,K as F,e as G,E as I}from"./Bgmy51Qv.js";import{u as N}from"./CYl1ofbh.js";import{u as O}from"./BE7GDBwC.js";import"./7pZkuj9N.js";import"./BHvLfWtM.js";import"./hSbGpNHU.js";import"./DuhDFJjj.js";import"./ByXs6QR-.js";import"./D_7E8SMU.js";import"./DKgjlGGV.js";const R={class:"lite-bold"},S=["value"],V={class:"mx-w-300x"},v={class:"mx-w-300x"},E=["onClick"],Z={__name:"index",setup(H){const{t:r}=$(),c=B({created_at:{title:r("category.date")},name:{title:r("user.name")},email:{title:r("fSale.email")}}),{getDataFromObject:d}=O(),{cbList:i,deleteBulk:f,listPageRef:k,setItemList:g,checkAll:m,deleteNode:h}=N();return(n,o)=>{const _=w;return a(),C(_,{ref_key:"listPageRef",ref:k,"list-api":"getGuestUsers","delete-api":"deleteGuestUser","route-name":"guest-users",name:n.$t("user.users"),gate:"user","add-button":!1,"order-options":s(c),onDeleteBulk:s(f),onList:s(g)},{table:L(({list:b})=>[e("tr",R,[e("th",null,[e("input",{type:"checkbox",onChange:o[0]||(o[0]=(...t)=>s(m)&&s(m)(...t))},null,32)]),e("th",null,l(n.$t("profile.id")),1),e("th",null,l(n.$t("user.name")),1),e("th",null,l(n.$t("fSale.email")),1),e("th",null,l(n.$t("category.created")),1),o[2]||(o[2]=e("th",null,null,-1))]),(a(!0),u(D,null,x(b,(t,y)=>(a(),u("tr",{key:y,class:P({"new-data":!parseInt(t.viewed)})},[e("td",null,[U(e("input",{type:"checkbox",value:t.id,"onUpdate:modelValue":o[1]||(o[1]=p=>j(i)?i.value=p:null)},null,8,S),[[F,s(i)]])]),e("td",null,l(t.id),1),e("td",null,[e("span",V,l(s(d)(t,"name","n/a")),1)]),e("td",null,[e("span",v,l(s(d)(t,"email","n/a")),1)]),e("td",null,l(t.created),1),e("td",null,[n.$can("user","delete")?(a(),u("button",{key:0,onClick:I(p=>s(h)(t),["prevent"]),class:"delete-btn lite-btn"},l(n.$t("category.delete")),9,E)):G("",!0)])],2))),128))]),_:1},8,["name","order-options","onDeleteBulk","onList"])}}};export{Z as default};
