import{Q as f}from"./QPage.17eab31b.js";import{_ as g,T as k,U as C,d as a,o as r,e as m,w as t,h as n,ad as w,j as y,t as _,f as R,p as q,F as T}from"./index.cf09daef.js";import{u as i}from"./order.42265062.js";import{R as v,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 P={mixins:[v],data(){return{store:i(),pagination:{...A,sortBy:"CREATED_AT_DESC"}}},methods:{...k(i,["get"]),singleRoute(e){return{name:"Order",params:{id:e.id},query:{action:"edit",title:"#"+e.id}}}},computed:{...C(i,["actions","rows","columns","module","toolbar","filters"]),queryParams(){var e;return{...this.pagination,customer:(e=this.$route.query)==null?void 0:e.customer}}}};function B(e,s,E,O,l,S){const u=a("base-btn"),p=a("base-status"),c=a("base-table"),b=a("base-section");return r(),m(f,{padding:""},{default:t(()=>[n(b,{flat:"",bordered:"","no-row":""},{default:t(()=>[n(c,{ref:"orders",store:l.store,module:e.module,columns:e.columns,rows:e.rows,actions:e.actions,toolbar:e.toolbar,filters:e.filters,loading:e.loading,pagination:l.pagination,onRequest:e.onRequest,onActionClicked:e.actionClicked,onToolbarClicked:e.toolbarClicked,onRowClicked:e.rowClicked,selected:e.selected,"onUpdate:selected":s[1]||(s[1]=o=>e.selected=o),selection:"multiple"},{"body-cell-id":t(o=>[n(u,{onClick:s[0]||(s[0]=w(()=>{},["stop"])),link:"",tag:"a",to:{name:"Order",params:{id:o.row.id},query:{action:"view"}}},{default:t(()=>[y(_(o.value),1)]),_:2},1032,["to"])]),"body-cell-status":t(o=>[(r(!0),R(T,null,q(o.value,d=>(r(),m(p,{key:d,type:d},null,8,["type"]))),128))]),_:1},8,["store","module","columns","rows","actions","toolbar","filters","loading","pagination","onRequest","onActionClicked","onToolbarClicked","onRowClicked","selected"])]),_:1})]),_:1})}var I=g(P,[["render",B]]);export{I as default};
