module.exports=[63021,(a,b,c)=>{b.exports=a.x("@prisma/client-2c3a283f134fdcb6",()=>require("@prisma/client-2c3a283f134fdcb6"))},54799,(a,b,c)=>{b.exports=a.x("crypto",()=>require("crypto"))},93695,(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"))},50645,a=>{a.n(a.i(27572))},43619,a=>{a.n(a.i(79962))},13718,a=>{a.n(a.i(85523))},18198,a=>{a.n(a.i(45518))},62212,a=>{a.n(a.i(66114))},70844,a=>{a.n(a.i(92359))},61968,a=>{"use strict";a.s(["VoterForm",()=>b]);let b=(0,a.i(11857).registerClientReference)(function(){throw Error("Attempted to call VoterForm() from the server but VoterForm 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]/src/components/voters/VoterForm.tsx <module evaluation>","VoterForm")},91736,a=>{"use strict";a.s(["VoterForm",()=>b]);let b=(0,a.i(11857).registerClientReference)(function(){throw Error("Attempted to call VoterForm() from the server but VoterForm 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]/src/components/voters/VoterForm.tsx","VoterForm")},8593,a=>{"use strict";a.i(61968);var b=a.i(91736);a.n(b)},29311,a=>{"use strict";var b=a.i(7997),c=a.i(9307);a.i(70396);var d=a.i(73727),e=a.i(66518),f=a.i(8593);async function g(a){return await e.default.voter.findUnique({where:{id:a}})}async function h({params:a}){await (0,c.auth)()||(0,d.redirect)("/login");let{id:e}=await a,h=await g(e);return h||(0,d.notFound)(),(0,b.jsxs)("div",{className:"space-y-6",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("h1",{className:"text-2xl font-bold",children:"Edit Voter"}),(0,b.jsxs)("p",{className:"text-muted-foreground",children:["Update voter information for ",h.name]})]}),(0,b.jsx)(f.VoterForm,{voter:{...h,dateOfBirth:h.dateOfBirth.toISOString(),mobileNumber:h.mobileNumber||void 0}})]})}a.s(["default",()=>h])}];

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