import{d as c,r as l,j as u,_ as f,o as b,k as w,l as r,a as x,n as s,F as y}from"./app-DZcRemIr.js";import{A as g}from"./AppLayout-O17sF3e2.js";import{G as k}from"./GlobalTable-DcNRAfk4.js";import{S as h}from"./simpleDatePicker-CE9I3GgK.js";import"./AppSidebarLayout-DzMma2g7.js";import"./index-CA0zsXLm.js";import"./SiifIconBC3-DYQKLzWx.js";import"./SelectValue-CSZtknPb.js";import"./useNonce-PBIDXYJz.js";import"./useKbd-kRIii9yh.js";const _=c({__name:"ListaReporte",setup(t,{expose:e}){e();const i=[{label:"Real Time Report (RTR)"},{label:"Listado de Reportes"}],a=l([]),p=l(),n=l(),o=[{key:"supervisor_nombre",label:"Supervisor",className:"px-4 py-2 whitespace-nowrap text-left"},{key:"rfv_nombre",label:"RFV",className:"px-4 py-2 whitespace-nowrap text-left"},{key:"zona_nombre",label:"Zona",className:"px-4 py-2 whitespace-nowrap text-left"},{key:"brick_descripcion",label:"Brick",className:"px-4 py-2 whitespace-nowrap text-left"},{key:"MesRegistro",label:"Mes/Año",className:"px-4 py-2 whitespace-nowrap text-left"},{key:"porce_cobertura",label:"% Cobertura",className:"px-4 py-2 whitespace-nowrap text-right"},{key:"productoEsperado",label:"Cant. Esperada",className:"px-4 py-2 whitespace-nowrap text-right"},{key:"monto_esperado",label:"Monto Esperado",className:"px-4 py-2 whitespace-nowrap text-right"},{key:"productoFacturado",label:"Cant. Facturada",className:"px-4 py-2 whitespace-nowrap text-right"},{key:"monto_facturado",label:"Monto Facturado",className:"px-4 py-2 whitespace-nowrap text-right"}],m=l([]),d={breadcrumbs:i,rowsVisitas:a,fechaInicio:p,fechaFin:n,TableColumns:o,summaries:m,AppLayout:g,get Head(){return u},GlobalTable:k,SimpleDatePicker:h};return Object.defineProperty(d,"__isScriptSetup",{enumerable:!1,value:!0}),d}}),R={class:"flex h-full flex-1 flex-col gap-4 rounded-xl p-4"},V={class:"flex flex-col md:flex-row gap-4 md:col-span-1"},v={class:"flex-1 min-w-0"},N={class:"flex-1 min-w-0"};function A(t,e,i,a,p,n){return b(),w(y,null,[r(a.Head,{title:"Reporte de Visitas"}),r(a.AppLayout,{breadcrumbs:a.breadcrumbs,class:"max-w-full overflow-x-hidden"},{default:x(()=>[s("div",R,[s("div",V,[s("div",v,[e[5]||(e[5]=s("label",{class:"text-sm font-medium text-gray-700 mb-1 block"},"Desde",-1)),r(a.SimpleDatePicker,{modelValue:a.fechaInicio,"onUpdate:modelValue":e[0]||(e[0]=o=>a.fechaInicio=o)},null,8,["modelValue"])]),s("div",N,[e[6]||(e[6]=s("label",{class:"text-sm font-medium text-gray-700 mb-1 block"},"Hasta",-1)),r(a.SimpleDatePicker,{modelValue:a.fechaFin,"onUpdate:modelValue":e[1]||(e[1]=o=>a.fechaFin=o)},null,8,["modelValue"])])]),r(a.GlobalTable,{columns:a.TableColumns,rows:a.rowsVisitas,"total-records":a.rowsVisitas.length,"current-page":t.pageA,"page-size":t.pageSizeA,actions:[{key:"delete",handler:t.deleteMayorista}],subHeaderProps:{summaries:a.summaries},showSubHeader:"",autoAddActionsColumn:"",onAdd:e[2]||(e[2]=o=>t.showMayoristaModal=!0),"onUpdate:page":e[3]||(e[3]=o=>t.pageA=o),"onUpdate:pageSize":e[4]||(e[4]=o=>t.pageSizeA=o)},null,8,["rows","total-records","current-page","page-size","actions","subHeaderProps"])])]),_:1})],64)}const D=f(_,[["render",A],["__file","/var/www/resources/js/pages/RTR/ListaReporte.vue"]]);export{D as default};
