import{_ as x,a as O,r as w,aR as A,ad as R,aX as W,e as t,o as $,g as C,c as e,w as n,F as H,i as _,t as l,j as u,az as K,aD as M,aE as N,n as V,v as j,a5 as z,a6 as E}from"./app-DGDivIsO.js";import{D as F}from"./DateRangePicker-Cv35KR84.js";import{A as S}from"./AdminPageHeader-ff2SFNbk.js";import{P as U}from"./Payments-BRoVEFOH.js";import{W as X}from"./WalletOutlined-BWavXDFa.js";import{B as q}from"./BankOutlined-BLv8FL7q.js";import"./index-C2QBqMxH.js";import"./datatable-Cnt5bvOi.js";import"./filter-_TPdNMe8.js";import"./UserInfo-u_wyRiK9.js";import"./fields-DMP5eaRW.js";const G={components:{AdminPageHeader:S,Payments:U,DateRangePicker:F,WalletOutlined:X,BankOutlined:q},setup(){const{permsArray:a}=O(),s=w("cash"),m=A(),o=R({dates:[]});return W(()=>{a.value.includes("customers_view")||a.value.includes("suppliers_view")||a.value.includes("admin")||m.push("admin.dashboard.index")}),{activeType:s,filters:o}}};function I(a,s,m,o,J,L){const f=K,g=t("router-link"),i=M,b=N,y=t("AdminPageHeader"),k=t("DateRangePicker"),c=V,d=j,v=t("admin-page-filters"),h=t("WalletOutlined"),p=z,P=t("BankOutlined"),B=E,D=t("Payments"),T=t("admin-page-table-content");return $(),C(H,null,[e(y,null,{header:n(()=>[e(f,{title:a.$t("menu.cash_bank"),class:"p-0"},null,8,["title"])]),breadcrumb:n(()=>[e(b,{separator:"-",style:{"font-size":"12px"}},{default:n(()=>[e(i,null,{default:n(()=>[e(g,{to:{name:"admin.dashboard.index"}},{default:n(()=>[_(l(a.$t("menu.dashboard")),1)]),_:1})]),_:1}),e(i,null,{default:n(()=>[_(l(a.$t("menu.cash_bank")),1)]),_:1})]),_:1})]),_:1}),e(v,null,{default:n(()=>[e(d,{gutter:[16,16],justify:"end"},{default:n(()=>[e(c,{xs:24,sm:24,md:12,lg:6,xl:4},{default:n(()=>[e(k,{onDateTimeChanged:s[0]||(s[0]=r=>{o.filters.dates=r})})]),_:1})]),_:1})]),_:1}),e(T,null,{default:n(()=>[e(d,null,{default:n(()=>[e(c,{span:24},{default:n(()=>[e(B,{activeKey:o.activeType,"onUpdate:activeKey":s[1]||(s[1]=r=>o.activeType=r)},{default:n(()=>[e(p,{key:"cash"},{tab:n(()=>[u("span",null,[e(h),_(" "+l(a.$t("payments.cash")),1)])]),_:1}),e(p,{key:"bank"},{tab:n(()=>[u("span",null,[e(P),_(" "+l(a.$t("payments.bank")),1)])]),_:1})]),_:1},8,["activeKey"])]),_:1})]),_:1}),e(D,{dates:o.filters.dates,paymentMode:o.activeType},null,8,["dates","paymentMode"])]),_:1})],64)}const re=x(G,[["render",I]]);export{re as default};
