import{Q as c}from"./QPage.17eab31b.js";import{_ as p,T as g,U as b,d as a,o as f,e as C,w as e,h as s,ad as k,j as w,t as _}from"./index.cf09daef.js";import{u as i}from"./guest-pass.572082f3.js";import{R as P,d as R}from"./mixins.6734cf6a.js";import"./StateSelect.29046ffe.js";import"./index.becf6c0c.js";import"./CitySelect.44fd570a.js";import"./BaseSectionSkeleton.c10f267e.js";import"./QSkeleton.b65f9727.js";import"./page.e779678f.js";import"./QExpansionItem.c46f740a.js";import"./QMenu.c2e9b9fc.js";import"./selection.5d5b72c0.js";import"./SkeletonSinglePage.c6d95753.js";const h={mixins:[P],data(){return{store:i(),pagination:{...R,sortBy:"id"}}},methods:{...g(i,["get"]),singleRoute(o){return{name:"Guest Pass",params:{id:o.id},query:{action:"edit",title:o.name}}}},computed:{...b(i,["actions","rows","columns","module","toolbar","filters"]),getColumns(){return this.columns.filter(o=>o.guard.includes(this.guard))},getToolbar(){return this.toolbar.filter(o=>o.guard.includes(this.guard))}}};function T(o,n,q,y,r,l){const d=a("base-btn"),m=a("base-table"),u=a("base-section");return f(),C(c,{padding:""},{default:e(()=>[s(u,{flat:"",bordered:"","no-row":""},{default:e(()=>[s(m,{store:r.store,module:o.module,columns:l.getColumns,rows:o.rows,actions:o.actions,toolbar:l.getToolbar,filters:o.filters,loading:o.loading,pagination:r.pagination,onRequest:o.onRequest,onActionClicked:o.actionClicked,onToolbarClicked:o.toolbarClicked,onRowClicked:o.rowClicked,"no-data-label":o.$t("guestPasses.noData"),"no-permissions":""},{"body-cell-name":e(t=>[s(d,{onClick:n[0]||(n[0]=k(()=>{},["stop"])),link:"",size:"12px",tag:"a",to:{name:"Guest Pass",params:{id:t.row.id,title:t.row.name},query:{action:"edit"}}},{default:e(()=>[w(_(t.value),1)]),_:2},1032,["to"])]),_:1},8,["store","module","columns","rows","actions","toolbar","filters","loading","pagination","onRequest","onActionClicked","onToolbarClicked","onRowClicked","no-data-label"])]),_:1})]),_:1})}var E=p(h,[["render",T]]);export{E as default};
