import{_ as f}from"./SmartDataTable-2Nc3Ohem.js";import{d as b,H as d,C as l,h as a,R as m,Q as h,f as n,i as o,x as v,y as i,v as k,c as p,O as V,D as c,V as x,P as C}from"./index-C5GbdPxY.js";import{V as B}from"./VTooltip-DPhSY2Qe.js";import{V as _}from"./VChip-CsS_5IS6.js";import"./VAvatar-RkAR0u0e.js";import"./VImg-BlqLjeEy.js";import"./VSelect-vtfYszIh.js";import"./VTextField-DxEUpn3-.js";import"./index-XcTykuv2.js";import"./forwardRefs-CB8NoG9r.js";import"./VList-C3dIUnee.js";import"./VMenu-CT0Fri-T.js";import"./VOverlay-DlJb3QlW.js";import"./getScrollParent-DE35ecf2.js";import"./VVirtualScroll-BUlcGoHW.js";import"./confirmDialog-CDDTmj30.js";import"./VCard-DptrO3GI.js";import"./VDialog-Dr29crN8.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-kem28dbC.js";import"./_commonjsHelpers-_d1bhYXs.js";import"./VForm-BZc3SavJ.js";import"./VCheckbox-rNAD_QU_.js";import"./VDatePicker-DHBX-k2T.js";import"./VSpacer-79sITyKz.js";import"./VBadge-DZHesqMo.js";import"./TableAgent.vue_vue_type_script_setup_true_lang-XA6R7TPe.js";import"./TableEnum.vue_vue_type_script_setup_true_lang-5ITYgflT.js";import"./TableStatus.vue_vue_type_script_setup_true_lang-BRbfAU0T.js";import"./RoleBadge.vue_vue_type_script_setup_true_lang-Ctl8Qye7.js";import"./VDataTable-BFiF8jPV.js";import"./VTable-M43pjJD_.js";import"./filter-DERJvhSS.js";const T={class:"gap-2 d-flex align-center px-3"},D=b({__name:"TableMembers",props:{item:{}},setup(u){const{t:e}=d();return(r,g)=>(a(),l("div",T,[(a(!0),l(m,null,h(r.item.members,t=>(a(),l(m,{key:t.id},[t.is_main?(a(),n(B,{key:0},{activator:o(({props:s})=>[p(_,V({color:"primary",size:"small"},{ref_for:!0},s),{default:o(()=>[p(x,{icon:"tabler-rosette-discount-check"}),c("  "+i(t.table.name),1)]),_:2},1040)]),default:o(()=>[v("span",null,i(k(e)("seatingplan::tables.primary_table")),1)]),_:2},1024)):(a(),n(_,{key:1,color:"default",size:"small"},{default:o(()=>[c(i(t.table.name),1)]),_:2},1024))],64))),128))]))}}),me=b({__name:"Index",setup(u){const{t:e}=d(),{user:r,can:g}=C(),t=[{title:e("branch::branches.table.branch"),value:"branch.name",sortable:!0,sortable_key:"branch_id",hidden:r==null?void 0:r.assigned_to_branch},{title:e("admin::admin.table.created_by"),value:"created_by.name",sortable:!0,sortable_key:"created_by"},{title:e("seatingplan::table_merges.table.closed_by"),value:"closed_by.name",sortable:!0,sortable_key:"closed_by"},{title:e("seatingplan::table_merges.table.members"),value:"members",sortable:!0,sortable_key:"table_id"},{title:e("seatingplan::table_merges.table.type"),value:"type",sortable:!0},{title:e("seatingplan::table_merges.table.closed_at"),value:"closed_at",sortable:!0},{title:e("admin::admin.table.updated_at"),value:"updated_at",sortable:!0},{title:e("admin::admin.table.created_at"),value:"created_at",sortable:!0}],s={members:{component:D}};return(I,N)=>{const y=f;return a(),n(y,{"api-uri":"/v1/table-merges","cell-components":s,"has-search":!1,headers:t,module:"seatingplan",name:"table_merge",resource:"table_merges"})}}});export{me as default};
