1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/PublicProductsCatalog-CRV5RK--.js","assets/vendor-tanstack-BVKRVeFx.js","assets/vendor-supabase-BXk0iSTs.js","assets/vendor-react-DvEUl2kV.js","assets/client-VY4HUT_Q.js","assets/index-CUczFT_R.js","assets/index-CztfCIV3.css","assets/useDebounce-BzQmjLol.js","assets/sonner-D6q-NjzM.js","assets/vendor-radix-BMzjRKVX.js","assets/vendor-icons-BiH2Z9LN.js","assets/useProductBySlug-D6VsGm14.js","assets/badge-CUZHrh6o.js","assets/OptimizedImage-Cmije3i9.js","assets/imageOptimizer-E-joP1M_.js","assets/card-CQzhsazC.js","assets/button-OUjdiLMl.js","assets/input-CCR7bdK9.js","assets/numberFormatting-BS2MrSjy.js","assets/CartButton-DS3OYwTL.js","assets/select-Cs7Ne2a6.js","assets/scroll-area-oc623sDL.js","assets/separator-DkBmZtp7.js","assets/index-CbWxRwq_.js","assets/dialog-DxoXHM7J.js","assets/EmptyCartInstructions-CHU_sOW8.js","assets/collapsible-BhltcT_h.js","assets/index-Dvp0sjZW.js","assets/table-DyEB_4-J.js","assets/popover-Dwua2KdV.js","assets/radio-group-DuqlKEBf.js","assets/label-CvIKZcJx.js","assets/DishOfTheDay-C8n1L56W.js","assets/skeleton-zj38oAv4.js","assets/useDishPrice-Bwa9jZv0.js","assets/ttk-B0QlzNAx.js","assets/PublicHeader-BEunjzo5.js","assets/CitySelectorTrigger-B2eYXlZI.js","assets/alert-dialog-GKF-roi4.js","assets/logo-SUJ-ZkXx.js","assets/PublicFooter-DxPM6hVe.js","assets/useTTKDishes-CbPi23YF.js","assets/JsonLd-CJ_DGvEW.js","assets/PendingCartBanner-B_NuSxey.js"])))=>i.map(i=>d[i]); 2import{_ as w}from"./vendor-supabase-BXk0iSTs.js";import{j as e,r as i}from"./vendor-tanstack-BVKRVeFx.js";import{b as v,f as P}from"./sonner-D6q-NjzM.js";import{u as C}from"./CartButton-DS3OYwTL.js";import{P as T}from"./PublicHeader-BEunjzo5.js";import{P as k}from"./PublicFooter-DxPM6hVe.js";import{C as D,b as O,a as S}from"./card-CQzhsazC.js";import{S as a}from"./skeleton-zj38oAv4.js";import{u as E}from"./useTTKDishes-CbPi23YF.js";import{g as I}from"./imageOptimizer-E-joP1M_.js";import{J as b}from"./JsonLd-CJ_DGvEW.js";import{g as L}from"./CitySelectorTrigger-B2eYXlZI.js";function $(){return e.jsxs("section",{children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx(a,{className:"h-8 w-48 mx-auto mb-2"}),e.jsx(a,{className:"h-5 w-72 mx-auto"})]}),e.jsxs("div",{className:"flex flex-wrap gap-3 mb-6",children:[e.jsx(a,{className:"h-10 w-48"}),e.jsx(a,{className:"h-10 w-40"}),e.jsx(a,{className:"h-10 w-36"})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:Array.from({length:8}).map((s,t)=>e.jsxs(D,{children:[e.jsxs(O,{className:"pb-3",children:[e.jsx(a,{className:"h-6 w-3/4"}),e.jsx(a,{className:"h-4 w-1/2"})]}),e.jsx(S,{children:e.jsxs("div",{className:"space-y-2",children:[e.jsx(a,{className:"h-4 w-full"}),e.jsx(a,{className:"h-4 w-2/3"}),e.jsx(a,{className:"h-8 w-24 mt-4"})]})})]},t))})]})}function y(){return e.jsxs(D,{className:"overflow-hidden border-0",children:[e.jsx(a,{className:"aspect-video w-full"}),e.jsxs(S,{className:"p-4 space-y-3",children:[e.jsx(a,{className:"h-6 w-3/4"}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(a,{className:"h-5 w-20 rounded-full"}),e.jsx(a,{className:"h-5 w-16 rounded-full"}),e.jsx(a,{className:"h-5 w-24 rounded-full"})]})]})]})}function z(){return e.jsxs("section",{className:"py-4",children:[e.jsx("div",{className:"flex items-center justify-between mb-6",children:e.jsxs("div",{children:[e.jsx(a,{className:"h-7 w-80 max-w-full"}),e.jsx(a,{className:"h-4 w-32 mt-1"}),e.jsx(a,{className:"h-4 w-64 max-w-full mt-1"})]})}),e.jsx("div",{className:"md:hidden max-w-md mx-auto min-h-[400px]",children:e.jsx(y,{})}),e.jsxs("div",{className:"hidden md:grid grid-cols-3 gap-6",children:[e.jsx(y,{}),e.jsx(y,{}),e.jsx(y,{})]})]})}function A(s){let t=0;for(let r=0;r<s.length;r++){const n=s.charCodeAt(r);t=(t<<5)-t+n,t=t&t}return t=(t>>>16^t)*73244475,t=(t>>>16^t)*73244475,t=t>>>16^t,t}function N(s,t,r,n=[]){const m=s.filter(c=>{var u;return(u=c.meal_type)==null?void 0:u.includes(t)});if(m.length===0)return null;const l=m.filter(c=>!n.includes(c.id)),f=[...l.length>0?l:m].sort((c,u)=>c.id.localeCompare(u.id)),g=A(`${r}-${t}`),j=Math.abs(g)%f.length;return f[j]}function R(){var f,g,j,_,c,u;const{data:s,isLoading:t}=E(),r=()=>{const o=new Date,d=o.getFullYear(),x=String(o.getMonth()+1).padStart(2,"0"),h=String(o.getDate()).padStart(2,"0");return`${d}-${x}-${h}`},[n,m]=i.useState(()=>r());i.useEffect(()=>{const o=()=>
2{const x=r();m(h=>h!==x?(console.log(`[DishOfTheDay] ÐаÑа обновлена: ${h} -> ${x}`),x):h)};o();const d=setInterval(o,6e4);return()=>clearInterval(d)},[]);const l=i.useMemo(()=>{if(!s||s.length===0)return{breakfast:null,lunch:null,dinner:null};const o=N(s,"breakfast",n,[]),d=N(s,"lunch",n,[o==null?void 0:o.id].filter(Boolean)),x=N(s,"dinner",n,[o==null?void 0:o.id,d==null?void 0:d.id].filter(Boolean));return{breakfast:o,lunch:d,dinner:x}},[s,n]),p=((f=l.breakfast)==null?void 0:f.primary_media_url)||((g=l.breakfast)==null?void 0:g.image_url)||((j=l.lunch)==null?void 0:j.primary_media_url)||((_=l.lunch)==null?void 0:_.image_url)||((c=l.dinner)==null?void 0:c.primary_media_url)||((u=l.dinner)==null?void 0:u.image_url)||null;return{...l,isLoading:t,hasAnyDish:!!(l.breakfast||l.lunch||l.dinner),firstImageUrl:p}}function B(s){i.useEffect(()=>{if(!s)return;const t=I(s,{width:600,quality:55});try{const r=new Date,n=`lcp_${r.getFullYear()}-${String(r.getMonth()+1).padStart(2,"0")}-${String(r.getDate()).padStart(2,"0")}`;localStorage.setItem(n,t),localStorage.setItem("zamorozka_lcp_image",t)}catch{}},[s])}const M=i.lazy(()=>w(()=>import("./PublicProductsCatalog-CRV5RK--.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31])).then(s=>({default:s.PublicProductsCatalog}))),U=i.lazy(()=>w(()=>import("./DishOfTheDay-C8n1L56W.js"),__vite__mapDeps([32,1,2,3,15,8,9,10,12,33,13,14,34,4,5,6,35,19,16,20,17,21,22,18,23,24,25,26,27,28,36,37,38,39,40,41,42])).then(s=>({default:s.DishOfTheDay}))),V=i.lazy(()=>w(()=>import("./PendingCartBanner-B_NuSxey.js"),__vite__mapDeps([43,1,2,16,9,3,8,10,4,5,6,18])).then(s=>({default:s.PendingCartBanner}))),F="zamorozka_pending_cart_token";function H(){return localStorage.getItem(F)?e.jsx(i.Suspense,{fallback:null,children:e.jsx(V,{})}):null}function K(){const[s,t]=i.useState(!1);C();const r=R();B(r.firstImageUrl),i.useEffect(()=>{t(!0);const p=setInterval(()=>{t(!1),setTimeout(()=>{t(!0)},50)},6e4);return()=>clearInterval(p)},[]);const n=L(),m={"@context":"https://schema.org","@type":"Organization",name:"замоÑозка.пÑо",url:n,logo:`${n}/og-image.png`,description:"ÐоÑÑавÑик бÑÑÑÑозамоÑоженнÑÑ
овоÑей, Ñгод и ÑмеÑей Ð´Ð»Ñ ÐºÐ¾Ð¼Ð±Ð¸Ð½Ð°Ñов пиÑаниÑ",contactPoint:{"@type":"ContactPoint",contactType:"sales",availableLanguage:"Russian"}},l={"@context":"https://schema.org","@type":"WebSite",name:"замоÑозка.пÑо",url:n};return e.jsxs("div",{className:"min-h-screen bg-background relative flex flex-col",children:[e.jsxs(P,{children:[e.jsx("title",{children:"ÐамоÑоженнÑе овоÑи и ÑÐ³Ð¾Ð´Ñ Ð¾Ð¿Ñом | замоÑозка.пÑо"}),e.jsx("meta",{name:"description",content:"ÐÑÑÑÑозамоÑоженнÑе овоÑи, ÑÐ³Ð¾Ð´Ñ Ð¸ ÑмеÑи Ð´Ð»Ñ ÐºÐ¾Ð¼Ð±Ð¸Ð½Ð°Ñов обÑеÑÑвенного пиÑаниÑ. ÐпÑовÑе поÑÑавки по РоÑÑии."}),e.jsx("link",{rel:"canonical",href:`${n}/`}),e.jsx("meta",{property:"og:title",content:"ÐамоÑоженнÑе овоÑи и ÑÐ³Ð¾Ð´Ñ Ð¾Ð¿Ñом | замоÑозка.пÑо"}),e.jsx("meta",{property:"og:description",content:"ÐÑÑÑÑозамоÑоженнÑе овоÑи, ÑÐ³Ð¾Ð´Ñ Ð¸ ÑмеÑи Ð´Ð»Ñ ÐºÐ¾Ð¼Ð±Ð¸Ð½Ð°Ñов обÑеÑÑвенного пиÑаниÑ"}),e.jsx("meta",{property:"og:url",content:`${n}/`}),e.jsx("meta",{property:"og:type",content:"website"})]}),e.jsx(b,{data:m}),e.jsx(b,{data:l}),e.jsx(T,{subtitle:"ÐÑÑÑÑозамоÑоженнÑе овоÑи, ÑÐ³Ð¾Ð´Ñ Ð¸ ÑмеÑи",logoSpinning:s}),e.jsxs("main",{className:"container mx-auto px-4 py-8 md:py-12 space-y-8 md:space-y-12 flex-1",children:[e.jsx(H,{}),e.jsx("section",{className:"text-center py-4 min-h-[72px] md:min-h-[88px]",children:e.jsx("h2",{className:"text-xl md:text-2xl lg:text-3xl font-medium text-foreground",children:"ð ÐоÑÑавлÑем замоÑоженнÑе овоÑи, ÑÐ³Ð¾Ð´Ñ Ð¸ ÑмеÑи на комбинаÑÑ Ð¿Ð¸ÑаниÑ"})}),e.jsx(i.Suspense,{fallback:e.jsx(z,{}),children:e.jsx(U,{prefetchedData:r})}),e.jsxs("div",{className:"text-center mb-8",children:[e.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-foreground mb-2",children:"ÐаÑалог пÑодÑкÑии"}),e.jsx("p",{className:"text-muted-foreground",children:"ÐÑÑÑÑозамоÑоженнÑе овоÑи, ÑÐ³Ð¾Ð´Ñ Ð¸ ÑмеÑи Ð´Ð»Ñ ÐºÐ¾Ð¼Ð±Ð¸Ð½Ð°Ñов обÑеÑÑвенного пиÑаниÑ"})]}),e.jsx(i.Suspense,{fallback:e.jsx($,{}),children:e.jsx(M,{})})]}),e.jsx(k,{})]})}function Y(){return e.jsx(v,{children:e.jsx(K,{})})}const re=Object.freeze(Object.defineProperty({__proto__:null,default:Y},Symbol.toStringTag,{value:"Module"}));
2export{re as L,B as a,R as u};
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.