module.exports=[193695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},70864,a=>{a.n(a.i(233290))},345538,a=>{a.n(a.i(563588))},43619,a=>{a.n(a.i(379962))},13718,a=>{a.n(a.i(685523))},118198,a=>{a.n(a.i(545518))},262212,a=>{a.n(a.i(866114))},922882,a=>{a.n(a.i(146927))},976590,a=>{"use strict";let b=(0,a.i(211857).registerClientReference)(function(){throw Error("Attempted to call TurnosPageClient() from the server but TurnosPageClient is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/caja/turnos-page-client.tsx <module evaluation>","TurnosPageClient");a.s(["TurnosPageClient",0,b])},924488,a=>{"use strict";let b=(0,a.i(211857).registerClientReference)(function(){throw Error("Attempted to call TurnosPageClient() from the server but TurnosPageClient is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/caja/turnos-page-client.tsx","TurnosPageClient");a.s(["TurnosPageClient",0,b])},274743,a=>{"use strict";a.i(976590);var b=a.i(924488);a.n(b)},16021,a=>{"use strict";var b=a.i(907997),c=a.i(800717);a.i(570396);var d=a.i(673727),e=a.i(794431),f=a.i(642448),g=a.i(681036),h=a.i(274743);async function i(){let a=await (0,e.getServerSession)(f.authOptions);a?.user||(0,d.redirect)("/login"),["Admin","Cajero","Supervisor"].includes(a.user.role)||(0,d.redirect)("/dashboard");let i=await (0,g.getActiveCashSession)(parseInt(a.user.id)),j=i?{...i,fondo_inicial:i.fondo_inicial.toString(),total_ventas_efectivo:i.total_ventas_efectivo?.toString()||"0",total_ventas_nequi:i.total_ventas_nequi?.toString()||"0",total_ventas_tarjeta:i.total_ventas_tarjeta?.toString()||"0",total_ventas_transferencia:i.total_ventas_transferencia?.toString()||"0",total_ingresos_adicionales:i.total_ingresos_adicionales?.toString()||"0",total_retiros:i.total_retiros?.toString()||"0",total_gastos:i.total_gastos?.toString()||"0",efectivo_esperado:i.efectivo_esperado?.toString()||"0",efectivo_contado:i.efectivo_contado?.toString()||null,diferencia:i.diferencia?.toString()||null}:null;return(0,b.jsx)(c.Suspense,{fallback:(0,b.jsx)("div",{children:"Cargando..."}),children:(0,b.jsx)(h.TurnosPageClient,{sesionCaja:j,userId:parseInt(a.user.id),userRole:a.user.role})})}a.s(["default",()=>i,"dynamic",0,"force-dynamic"])}];

//# sourceMappingURL=%5Broot-of-the-server%5D__204f6539._.js.map