"use strict";(globalThis["webpackChunkbaggisowtfaresystem"]=globalThis["webpackChunkbaggisowtfaresystem"]||[]).push([[770],{2770:(e,a,l)=>{l.r(a),l.d(a,{default:()=>R});var t=l(1347),o=l(4187),s=l(3022),i=l(8338),n=l(991),u=l.n(n),d=l(588);const r={class:"row justify-between items-center q-mb-md"},c={class:"row q-col-gutter-md"},m={class:"col-12 col-sm-4"},v={class:"col-12 col-sm-4"},p={class:"col-12 col-sm-4"},g={class:"row q-mt-md"},f={class:"col-12"},b={__name:"StatementHeaderReport",setup(e){const{canRead:a,canExport:l}=(0,d.J)(),n=a("finance"),b=l("finance"),k=(0,s.A)(),h=(0,i.i)(),y=(0,o.KR)(""),q=(0,o.KR)(u()().startOf("month").format("YYYY-MM-DD")),w=(0,o.KR)(u()().format("YYYY-MM-DD")),V=[{label:"1-2 hesap",value:["1","2"]},{label:"1-3 hesap",value:["1","3"]}],D=(0,o.KR)(V[0].value);async function F(){if(!b.value)return void k.notify({type:"negative",message:"PDF export yetkiniz yok",position:"top-right"});if(console.log("▶️ [DEBUG] handlestHeadDownload:",y.value,q.value,w.value,D.value),!y.value||!q.value||!w.value)return void k.notify({type:"warning",message:"⚠️ Cari ve tarih seçmeden PDF alınamaz!",position:"top-right"});const e=await h.handlestHeadDownload(y.value,q.value,w.value,D.value);k.notify({type:e.ok?"positive":"negative",message:e.message,position:"top-right"})}return(e,a)=>{const l=(0,t.g2)("q-btn"),s=(0,t.g2)("q-separator"),i=(0,t.g2)("q-input"),u=(0,t.g2)("q-select"),d=(0,t.g2)("q-card"),k=(0,t.g2)("q-page");return(0,o.R1)(n)?((0,t.uX)(),(0,t.Wv)(k,{key:0,class:"q-pa-md page-col"},{default:(0,t.k6)(()=>[(0,t.Lk)("div",r,[a[4]||(a[4]=(0,t.Lk)("div",{class:"text-h6"},"📄 Cari Hesap Raporu",-1)),(0,o.R1)(b)?((0,t.uX)(),(0,t.Wv)(l,{key:0,color:"red",icon:"picture_as_pdf",label:"PDF Yazdır",push:"",glossy:"",onClick:F})):(0,t.Q3)("",!0)]),(0,t.bF)(s,{spaced:""}),(0,t.bF)(d,{flat:"",bordered:"",class:"q-pa-md q-mt-md"},{default:(0,t.k6)(()=>[(0,t.Lk)("div",c,[(0,t.Lk)("div",m,[(0,t.bF)(i,{modelValue:y.value,"onUpdate:modelValue":a[0]||(a[0]=e=>y.value=e),label:"Cari Kod",filled:"",dense:"",clearable:""},null,8,["modelValue"])]),(0,t.Lk)("div",v,[(0,t.bF)(i,{modelValue:q.value,"onUpdate:modelValue":a[1]||(a[1]=e=>q.value=e),label:"Başlangıç Tarihi",filled:"",dense:""},null,8,["modelValue"])]),(0,t.Lk)("div",p,[(0,t.bF)(i,{modelValue:w.value,"onUpdate:modelValue":a[2]||(a[2]=e=>w.value=e),label:"Bitiş Tarihi",filled:"",dense:""},null,8,["modelValue"])])]),(0,t.Lk)("div",g,[(0,t.Lk)("div",f,[(0,t.bF)(u,{modelValue:D.value,"onUpdate:modelValue":a[3]||(a[3]=e=>D.value=e),options:V,label:"Parasal İşlem Tipi","emit-value":"","map-options":"",filled:""},null,8,["modelValue"])])])]),_:1})]),_:1})):((0,t.uX)(),(0,t.Wv)(k,{key:1,class:"q-pa-md flex flex-center"},{default:(0,t.k6)(()=>[...a[5]||(a[5]=[(0,t.Lk)("div",{class:"text-negative text-subtitle1"}," Bu module erisim yetkiniz yok. ",-1)])]),_:1}))}}};var k=l(5013),h=l(2677),y=l(6915),q=l(3341),w=l(6067),V=l(6941),D=l(272),F=l.n(D);const L=b,R=L;F()(b,"components",{QPage:k.A,QBtn:h.A,QSeparator:y.A,QCard:q.A,QInput:w.A,QSelect:V.A})}}]);