1import{r as l,j as e,h as d,b as x}from"./index-CAG7YFZd.js";import{u as f}from"./useRestaurantBackNavigation-cKY6jkKX.js";import{L as b}from"./lenis-DhnUlvj-.js";import{L as p}from"./label-DOheiz4C.js";import{A as g}from"./arrow-left-CpWyexvK.js";import{Z as j}from"./zap-i38W4zla.js";import"./index-CAaHGHf1.js";import"./index-CBAjRXir.js";const m=l.createContext({}),u=l.forwardRef(({className:r,value:t,onValueChange:o,...i},n)=>e.jsx(m.Provider,{value:{value:t,onValueChange:o},children:e.jsx("div",{ref:n,className:d("space-y-2",r),...i})}));u.displayName="RadioGroup";const h=l.forwardRef(({className:r,value:t,...o},i)=>{const{value:n,onValueChange:s}=l.useContext(m),a=n===t;return e.jsx("button",{type:"button",ref:i,role:"radio","aria-checked":a,onClick:()=>s?.(t),className:d("aspect-square h-4 w-4 rounded-full border-2 border-gray-300 transition-colors",a&&"border-blue-600 bg-blue-600",r),...o,children:a&&e.jsx("div",{className:"h-full w-full rounded-full bg-white scale-50"})})});h.displayName="RadioGroupItem";function B(){x();const r=f(),[t,o]=l.useState("30");l.useEffect(()=>{const s=new b({duration:1.2,easing:c=>Math.min(1,1.001-Math.pow(2,-10*c)),smoothWheel:!0});function a(c){s.raf(c),requestAnimationFrame(a)}return requestAnimationFrame(a),()=>{s.destroy()}},[]);const i=()=>{r()},n=[{value:"30",label:"30 minutes"},{value:"60",label:"1 hour"},{value:"90",label:"1 hour 30 minutes"},{value:"120",label:"2 hours"}];return e.jsxs("div",{className:"min-h-screen bg-white flex flex-col",children:[e.jsx("div",{className:"bg-white border-b border-gray-200 px-4 py-3 sticky top-0 z-50",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("button",{onClick:r,className:"p-1.5 hover:bg-gray-100 rounded-lg transition-colors","aria-label":"Go back",children:e.jsx(g,{className:"w-6 h-6 text-gray-900"})}),e.jsx("h1",{className:"text-lg font-bold text-gray-900",children:"Rush in kitchen"})]})}),e.jsxs("div",{className:"flex-1 overflow-y-auto px-4 py-6",children:[e.jsxs("div",{className:"bg-blue-50 rounded-lg p-4 mb-6 flex items-start gap-4",children:[e.jsx("div",{className:"w-14 h-14 rounded-full bg-gradient-to-br from-[#B80B3D] to-[#66001D] flex items-center justify-center shrink-0",children:e.jsx(j,{className:"w-7 h-7 text-white",strokeWidth:2.5,fill:"white"})}),e.jsx("p",{className:"text-sm text-gray-900 leading-relaxed flex-1 pt-1",children:"Inform us when your kitchen is in rush and you need more time to manage orders"})]}),e.jsxs("div",{className:"mb-8",children:[e.jsx("h2",{className:"text-base font-bold text-gray-900 mb-4",children:"How this helps you"}),e.jsx("div",{className:"space-y-3",children:["Get more time to prepare food","Show correct delivery time to customers","Avoid crowding of riders at your restaurant"].map((s,a)=>e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-6 h-6 rounded-full bg-gray-200 flex items-center justify-center shrink-0",children:e.jsx("span",{className:"text-xs font-semibold text-gray-700",children:a+1})}),e.jsx("p",{className:"text-sm text-gray-900",children:s})]},a))})]}),e.jsxs("div",{className:"mb-6",children:[e.jsx("h2",{className:"text-base font-bold text-gray-900 mb-4",children:"Increase food preparation time for the next"}),e.jsx(u,{value:t,onValueChange:o,className:"space-y-4",children:n.map(s=>e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(h,{value:s.value,id:s.value,className:"h-5 w-5"}),e.jsx(p,{htmlFor:s.value,className:"text-sm text-gray-900 font-normal cursor-pointer flex-1",children:s.label})]},s.value))})]})]}),e.jsx("div",{className:"px-4 pb-6 pt-4 bg-white border-t border-gray-200",children:e.jsx("button",{onClick:i,className:"w-full bg-gradient-to-br from-[#B80B3D] to-[#66001D] hover:bg-blue-700 text-white font-semibold py-3 px-4 rounded-lg transition-colors",children:"Confirm"})})]})}export{B as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.