import{o as e}from"./useStore-BLH_7XFg.js";import{T as t,u as n,v as r,y as i}from"./dist-C9VbCov8.js";import{t as a}from"./useSuspenseQuery-0pRt0U_3.js";import{g as o,m as s,p as c}from"./index-C4A4GzcU.js";var l=e();function u(){let{data:e}=a(o);return(0,l.jsxs)(s,{children:[(0,l.jsx)(c,{title:`Cenovnik`,intro:`Cene i trajanja za sve naše usluge. Klikni „Zakaži“ pored usluge da direktno pokreneš zakazivanje.`}),(0,l.jsx)(`div`,{className:`mx-auto max-w-4xl px-4 py-10 space-y-10`,children:[`Manikir`,`Pedikir`,`ORLY`,`Depilacija`].map(a=>{let o=e.filter(e=>e.category===a);return o.length===0?null:(0,l.jsxs)(`section`,{children:[(0,l.jsx)(`h2`,{className:`text-2xl md:text-3xl mb-4`,children:a}),(0,l.jsx)(`div`,{className:`overflow-hidden rounded-2xl border border-border/60 bg-card`,children:o.map((e,a)=>(0,l.jsxs)(`div`,{className:`grid gap-3 p-4 md:grid-cols-[1fr_auto_auto_auto] md:items-center `+(a>0?`border-t border-border/60`:``),children:[(0,l.jsxs)(`div`,{className:`min-w-0`,children:[(0,l.jsx)(`div`,{className:`font-medium truncate`,children:e.name}),(0,l.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:e.providers?.name})]}),(0,l.jsx)(`div`,{className:`text-sm text-muted-foreground md:min-w-[140px]`,children:r(e.duration_minutes)}),(0,l.jsx)(`div`,{className:`text-sm font-semibold md:min-w-[110px] md:text-right`,children:i(e.price==null?null:Number(e.price))}),(0,l.jsx)(n,{asChild:!0,size:`sm`,variant:`outline`,children:(0,l.jsx)(t,{to:`/zakazivanje`,children:`Zakaži`})})]},e.id))})]},a)})})]})}export{u as component};