import{_ as g,T as f,U as _,d as s,o as v,e as w,w as t,h as a,ad as m,k as y,g as k,t as h,ae as B}from"./index.cf09daef.js";import{Q as R}from"./QPage.17eab31b.js";import{u as i}from"./blog.5625b48b.js";import{R as V,d as C}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 q={mixins:[V],data(){return{store:i(),pagination:{...C,sortBy:"title"}}},methods:{...f(i,["get","changeActive"]),singleRoute(e){return{name:"Blog",params:{id:e.id},query:{action:"edit",title:e.title}}}},computed:{..._(i,["actions","rows","columns","module","toolbar","filters"])}},U={class:"ellipsis"};function P(e,l,S,z,n,A){const u=s("base-thumbnail"),r=s("base-btn"),c=s("base-tags"),p=s("base-table"),b=s("base-section");return v(),w(R,{padding:""},{default:t(()=>[a(b,{flat:"",bordered:"","no-row":""},{default:t(()=>[a(p,{"hide-label":"",store:n.store,module:e.module,columns:e.columns,rows:e.rows,actions:e.actions,toolbar:e.toolbar,filters:e.filters,loading:e.loading,pagination:n.pagination,onRequest:e.onRequest,onRowClicked:e.rowClicked,"no-data-label":"No blogs avaialble","table-key":"blogs",selection:"multiple",selected:e.selected,"onUpdate:selected":l[2]||(l[2]=o=>e.selected=o),"grid-columns":["thumbnail","title,tags","url"]},{"body-cell-thumbnail":t(o=>[a(u,{size:40,media:o.row.thumbnail},null,8,["media"])]),"body-cell-title":t(o=>[a(r,{onClick:l[0]||(l[0]=m(()=>{},["stop"])),link:"",style:y(o.col.style),tag:"a",to:{name:"Blog",params:{id:o.row.id},query:{action:"edit"}},align:"left"},{default:t(()=>[k("div",U,h(o.value),1)]),_:2},1032,["style","to"])]),"body-cell-url":t(o=>[a(r,{onClick:l[1]||(l[1]=m(()=>{},["stop"])),link:"",icon:"fas fa-earth-americas",href:o.value,tag:"a",target:"__blank"},null,8,["href"])]),"body-cell-tags":t(o=>[a(c,{max:"2",modelValue:o.value,"onUpdate:modelValue":d=>o.value=d,dense:"",square:""},null,8,["modelValue","onUpdate:modelValue"])]),"body-cell-is_active":t(o=>[a(B,{dense:"",size:"xs",color:"green","model-value":o.row.is_active,"onUpdate:modelValue":d=>e.changeActive(o.row)},null,8,["model-value","onUpdate:modelValue"])]),_:1},8,["store","module","columns","rows","actions","toolbar","filters","loading","pagination","onRequest","onRowClicked","selected"])]),_:1})]),_:1})}var L=g(q,[["render",P]]);export{L as default};
