(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4867],{2694:function(e,a,s){Promise.resolve().then(s.bind(s,1374))},1374:function(e,a,s){"use strict";s.r(a),s.d(a,{default:function(){return u}});var r=s(7437),n=s(2265),t=s(9376),o=s(8706);function u(){let e=(0,o.T)(),a=(0,t.useRouter)(),[s,u]=(0,n.useState)("asap"),[l,c]=(0,n.useState)("");return(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"text-2xl font-bold mb-6",children:e("delivery_time",{defaultValue:"Koha e Dergeses"})}),(0,r.jsxs)("div",{className:"space-y-3 mb-6",children:[(0,r.jsx)("label",{className:"block bg-white rounded-xl p-4 shadow-sm cursor-pointer border-2 transition-all ".concat("asap"===s?"border-orange-500":"border-transparent"),children:(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("input",{type:"radio",name:"deliveryType",checked:"asap"===s,onChange:()=>u("asap"),className:"accent-orange-500"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"font-medium",children:e("asap",{defaultValue:"Sa me shpejt te jete e mundur"})}),(0,r.jsx)("p",{className:"text-sm text-gray-500",children:e("asap_desc",{defaultValue:"30-60 minuta"})})]})]})}),(0,r.jsx)("label",{className:"block bg-white rounded-xl p-4 shadow-sm cursor-pointer border-2 transition-all ".concat("scheduled"===s?"border-orange-500":"border-transparent"),children:(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("input",{type:"radio",name:"deliveryType",checked:"scheduled"===s,onChange:()=>u("scheduled"),className:"accent-orange-500"}),(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsx)("p",{className:"font-medium",children:e("schedule",{defaultValue:"Programo dergesen"})}),"scheduled"===s&&(0,r.jsx)("input",{type:"datetime-local",value:l,onChange:e=>c(e.target.value),className:"mt-2 w-full border border-gray-300 rounded-lg px-4 py-2 focus:ring-2 focus:ring-orange-500 focus:border-transparent outline-none"})]})]})})]}),(0,r.jsx)("button",{onClick:function(){a.push("/porosi/karta")},className:"w-full bg-orange-500 hover:bg-orange-600 text-white font-semibold px-6 py-3 rounded-lg transition-colors",children:e("continue",{defaultValue:"Vazhdo"})})]})}},9376:function(e,a,s){"use strict";var r=s(5475);s.o(r,"useParams")&&s.d(a,{useParams:function(){return r.useParams}}),s.o(r,"usePathname")&&s.d(a,{usePathname:function(){return r.usePathname}}),s.o(r,"useRouter")&&s.d(a,{useRouter:function(){return r.useRouter}}),s.o(r,"useSearchParams")&&s.d(a,{useSearchParams:function(){return r.useSearchParams}})}},function(e){e.O(0,[8706,2971,2117,1744],function(){return e(e.s=2694)}),_N_E=e.O()}]);