(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[324],{39588:function(e,n,t){Promise.resolve().then(t.bind(t,9062))},9062:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return a}});var s=t(57437),i=t(2265),r=t(99376),l=t(53646),c=t(94108);function a(){let{id:e}=(0,r.useParams)(),[n,t]=(0,i.useState)(null),[a,u]=(0,i.useState)(!0),{t:d}=(0,c.Z)();return((0,i.useEffect)(()=>{fetch(`/api/vehicles/${e}`).then(e=>e?.json?.()).then(e=>t(e??null)).catch(()=>{}).finally(()=>u(!1))},[e]),a)?(0,s.jsx)("div",{className:"flex items-center justify-center py-20",children:(0,s.jsx)("div",{className:"animate-spin w-8 h-8 border-4 border-red-600 border-t-transparent rounded-full"})}):(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{className:"font-display text-2xl font-bold tracking-tight mb-6",children:d.admin.vehicles.editVehicle}),n&&(0,s.jsx)(l.w,{vehicle:n})]})}}},function(e){e.O(0,[438,108,646,971,117,744],function(){return e(e.s=39588)}),_N_E=e.O()}]);