import{Q as c}from"./QPage.17eab31b.js";import{_ as p,T as u,U as b,d as a,o as f,e as g,w as n,h as s,ad as k,j as w,t as C}from"./index.cf09daef.js";import{u as i}from"./announcement.91f9d239.js";import{R,d as A}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 y={mixins:[R],data(){return{store:i(),pagination:{...A,sortBy:"date"}}},methods:{...u(i,["get"]),singleRoute(o){return{name:"Announcement",params:{id:o.id},query:{action:"edit"}}}},computed:{...b(i,["actions","rows","columns","module","toolbar","filters"])}};function q(o,e,P,T,r,_){const l=a("base-btn"),d=a("base-table"),m=a("base-section");return f(),g(c,{padding:""},{default:n(()=>[s(m,{flat:"",bordered:"","no-row":""},{default:n(()=>[s(d,{store:r.store,module:o.module,columns:o.columns,rows:o.rows,actions:o.actions,toolbar:o.toolbar,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("announcements.noData"),"table-key":"announcements",selected:o.selected,"onUpdate:selected":e[1]||(e[1]=t=>o.selected=t),selection:"multiple"},{"body-cell-date":n(t=>[s(l,{onClick:e[0]||(e[0]=k(()=>{},["stop"])),link:"",size:"12px",tag:"a",to:{name:"Announcement",params:{id:t.row.id},query:{action:"edit"}}},{default:n(()=>[w(C(t.value),1)]),_:2},1032,["to"])]),_:1},8,["store","module","columns","rows","actions","toolbar","filters","loading","pagination","onRequest","onActionClicked","onToolbarClicked","onRowClicked","no-data-label","selected"])]),_:1})]),_:1})}var F=p(y,[["render",q]]);export{F as default};
