1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[43],{12806:e=>{e.exports={mobilePaddingX:"CatalogSection_mobilePaddingX__r8WnR",products:"CatalogSection_products__mwKmQ CatalogSection_mobilePaddingX__r8WnR",title:"CatalogSection_title__UUHyG CatalogSection_mobilePaddingX__r8WnR",titleHolder:"CatalogSection_titleHolder___Gii1",notion:"CatalogSection_notion__9yVPo",notAvailableMessageHolder:"CatalogSection_notAvailableMessageHolder__IA1Xl",notAvailableMessageText:"CatalogSection_notAvailableMessageText___jORT"}},22004:e=>{e.exports={benefitHolder:"FreePickupBlock_benefitHolder__rU6OR",FreeDeliveryBlock:"FreePickupBlock_FreeDeliveryBlock___FhEj",mainHeader:"FreePickupBlock_mainHeader__Xa5g0",subHeader:"FreePickupBlock_subHeader__cWjsn"}},34770:e=>{e.exports={loaderHolder:"Products_loaderHolder__9pHow"}},36043:(e,i,t)=>{"use strict";t.d(i,{A:()=>e7});var a,r,l,n,o,s,d,c,u,_,m=t(89142),h=t(94070),f=t(57669),p=t(41685),g=t.n(p),v=t(14325),x=t.n(v),b=t(41629),y=t(10223);t(6779);var j=t(65878),C=t(75875);t(24332);var k=t(42401),M=t(16289),N=t(24924),P=t(44066),H=t(9849),w=t.n(H),S=t(46001),E=t.n(S),B=t(3490),A=t(35003),D=t(53196),I=t.n(D);t(15474),t(83563),t(97147);var T=t(40770),F=t.n(T);let O=({banner:e})=>{let i=e.title?.replace(/\*\*(.*?)\*\*/g,"<mark>$1</mark>")??null,[t,a]=(0,h.useState)(!1);return t?(0,m.jsxs)(I(),{className:F().slide,href:e.url??"#",children:[(0,m.jsx)("div",{className:F().backgroundImage,children:(0,m.jsx)(w(),{alt:"",fill:!0,style:{objectPosition:"top",objectFit:"fill"},src:e.mobile_background_image?e.mobile_background_image:"/images/product-image-placeholder.svg",unoptimized:!0})}),(0,m.jsxs)("div",{className:F().slideContent,children:[null!==i&&(0,m.jsx)("div",{className:F().title,dangerouslySetInnerHTML:{__html:i}}),null===e.mobile_image&&(0,m.jsx)("div",{}),null!==e.mobile_image&&(0,m.jsx)("div",{className:F().mobile_image,children:(0,m.jsx)(w(),{alt:"",fill:!0,style:{objectFit:"fill"},src:e.mobile_image,unoptimized:!0})})]})]}):(0,m.jsxs)("a",{className:F().slide_is_loading,children:[(0,m.jsx)(N.aH,{white:!1}),(0,m.jsx)(w(),{alt:"",className:F().invicible_image,fill:!0,style:{objectFit:"contain"},onLoad:()=>a(!0),src:e.mobile_background_image?e.mobile_background_image:"/images/product-image-placeholder.svg",unoptimized:!0})]})},R=({banners:e})=>(0,m.jsxs)("section",{className:E()("container",F().banner),children:[(0,m.jsx)(A.RC,{modules:[B.Ze,B.Vx,B.dK],autoplay:{delay:15e3},loop:!0,pagination:{el:`.${F().pagination}`,type:"bullets",clickable:!0},slidesPerGroup:1,slidesPerView:1,spaceBetween:10,children:e.map(e=>(0,m.jsx)(A.qr,{children:(0,m.jsx)(O,{banner:e})},e.id))}),(0,m.jsx)("div",{className:E()("swiper-pagination",F().pagination)})]});var Z=t(43178),z=t(28471),L=t(88652),U=t(43258),q=t(30503),X=t(21928),V=t(24411),W=t(85278),K=t.n(W);let G=({border:e,modifierGroup:i,onChange:t,selectedModifiers:a})=>{let r=(0,h.useCallback)((e,i,a,r,l,n,o,s)=>{t([{id:e,amount:1,group_id:a,weight:i,energy_amount:r,protein_amount:l,fat_amount:n,carbohydrate_amount:o,fiber_amount:s}])},[t]),l=(0,h.useMemo)(()=>a.map(e=>e.id),[a]);return(0,m.jsx)("div",{className:E()(K().stepper,{[K().stepperContained]:!e,[K().stepperOutlined]:e}),children:i.modifiers.map(e=>(0,m.jsx)("div",{className:E()(K().option,{[K().optionNotSelected]:!l.includes(e.id),[K().optionSelected]:l.includes(e.id)}),onClick:()=>r(e.id,e.weight,i.id,e.energy_amount,e.protein_amount,e.fat_amount,e.carbohydrate_amount,e.fiber_amount),children:e.name},e.id))},i.id)};var Q=t(92435),J=t.n(Q);let $=({modifierGroup:e,onChange:i,selectedModifiers:t})=>{let a=(0,h.useCallback)(e=>{i([{id:e.value,amount:1,group_id:e.group_id,weight:e.weight,energy_amount:e.energy_amount,protein_amount:e.protein_amount,fat_amount:e.fat_amount,carbohydrate_amount:e.carbohydrate_amount,fiber_amount:e.fiber_amount}])},[i]),r=(0,h.useMemo)(()=>[...e.modifiers].sort((e,i)=>e.order-i.order),[e.modifiers]),l=(0,h.useMemo)(()=>r.map(i=>({group_id:e.id,label:i.name,value:i.id,weight:i.weight,energy_amount:i.energy_amount,protein_amount:i.protein_amount,fat_amount:i.fat_amount,carbohydrate_amount:i.carbohydrate_amount,fiber_amount:i.fiber_amount})),[r]),n=l.find(e=>void 0!==t.find(i=>i.id===e.value));return(0,m.jsx)("div",{className:J().select,children:(0,m.jsx)(N.l6,{instanceId:e.id,onChange:a,options:l,value:n})})};var Y=t(68208),ee=t.n(Y);let ei=({modifierGroup:e,onChange:i,selectedModifiers:t})=>{let a=(0,h.useCallback)((e,a,r,l,n,o,s,d)=>{i((0,j._H)(t,{id:e,group_id:r,amount:1,weight:a,energy_amount:l,protein_amount:n,fat_amount:o,carbohydrate_amount:s,fiber_amount:d}))},[i,t]),r=(0,h.useMemo)(()=>t.map(e=>e.id),[t]),l=(0,h.useMemo)(()=>[...e.modifiers].sort((e,i)=>e.order-i.order),[e.modifiers]);return(0,m.jsx)("div",{children:!!e.modifiers.length&&(0,m.jsxs)("div",{className:ee().root,id:"modifier_"+e.id,children:[(0,m.jsxs)("div",{className:ee().title,children:[null==e.name?"ÐополниÑелÑно":e.name,":"]}),(0,m.jsx)("div",{className:ee().checkboxes,children:l.map(i=>(0,m.jsxs)("div",{className:ee().checkboxRow,children:[(0,m.jsx)("div",{className:ee().checkbox,children:(0,m.jsx)(N.Sc,{checked:r.includes(i.id),label:i.name,onChange:()=>
1a(i.id,i.weight,e.id,i.energy_amount,i.protein_amount,i.fat_amount,i.carbohydrate_amount,i.fiber_amount)})}),i.price>0&&(0,m.jsxs)("div",{className:ee().price,children:[i.price," â½"]})]},i.id))})]})})},et=({modifierGroup:e,notSelectedRequiredModifiers:i,onChange:t,selectedModifiers:a})=>{let r=(0,h.useCallback)(i=>{let a=e.modifiers.filter(e=>i==e.id);a.length&&t([{id:a[0].id,group_id:e.id,amount:1,weight:a[0].weight,energy_amount:a[0].energy_amount,protein_amount:a[0].protein_amount,fat_amount:a[0].fat_amount,carbohydrate_amount:a[0].carbohydrate_amount,fiber_amount:a[0].fiber_amount}])},[t,e]),l=(0,h.useMemo)(()=>a.map(e=>e.id),[a]),n=(0,h.useMemo)(()=>!!i.filter(i=>e.id==i.id).length,[e,i]),o=(0,h.useMemo)(()=>[...e.modifiers].sort((e,i)=>e.order-i.order),[e.modifiers]);return(0,m.jsx)("div",{children:!!e.modifiers.length&&(0,m.jsxs)("div",{className:ee().root,id:"modifier_"+e.id,children:[(0,m.jsxs)("div",{className:E()(ee().title,{[ee().errored]:n}),children:[null==e.name?"ÐополниÑелÑно":e.name,":"]}),n&&(0,m.jsx)("div",{className:ee().errorText,children:"ÐожалÑйÑÑа, вÑбеÑиÑе подÑ
одÑÑий ваÑианÑ"}),(0,m.jsx)("div",{className:ee().checkboxes,children:o.map(e=>(0,m.jsxs)("div",{className:ee().checkboxRow,children:[(0,m.jsx)("div",{className:ee().checkbox,children:(0,m.jsx)(N.bH,{checkedValue:l[0],label:e.name,onChange:r,value:e.id})}),e.price>0&&(0,m.jsxs)("div",{className:ee().price,children:[e.price," â½"]})]},e.id))})]})})};var ea=t(56211);let er=({modifierGroup:e,notSelectedRequiredModifiers:i,onChange:t,selectedModifiers:a})=>{let r=e.control_type??ea.D.STEPPER_OUTLINED;return(0,m.jsxs)(m.Fragment,{children:[(r===ea.D.STEPPER||r===ea.D.STEPPER_OUTLINED)&&(0,m.jsx)(G,{border:r===ea.D.STEPPER_OUTLINED,modifierGroup:e,onChange:t,selectedModifiers:a}),r===ea.D.SELECT&&(0,m.jsx)($,{modifierGroup:e,onChange:t,selectedModifiers:a}),r===ea.D.CHECKBOXES&&(!0==e.is_required?(0,m.jsx)(et,{modifierGroup:e,notSelectedRequiredModifiers:i,onChange:t,selectedModifiers:a}):(0,m.jsx)(ei,{modifierGroup:e,notSelectedRequiredModifiers:i,onChange:t,selectedModifiers:a}))]})};var el=t(64084),en=t.n(el);let eo=({className:e,product:i})=>(0,m.jsxs)("div",{className:e,children:[null!==i.discount&&(0,m.jsx)("span",{className:E()(en().label,en().discount),children:"Ñкидка"}),i.is_new&&null===i.discount&&(0,m.jsx)("span",{className:E()(en().label,en().hit),children:"новÑй"})]});var es=t(80879),ed=t(69624),ec=t.n(ed);let eu=[ea.D.STEPPER,ea.D.STEPPER_OUTLINED,ea.D.SELECT],e_=(0,b.PA)(({availableBySchedule:e,category:i,onClick:t,product:a})=>{let[r,l]=(0,h.useState)(!1),{handleModifierChange:n,selectedModifiers:o,selectedModifiersMap:s}=(0,X.BH)(a),{orderParams:d,restaurantSelectModal:c,addProductQuery:u}=(0,q.P)(),_=(0,C._$)(),f=(0,X.Ci)(a,o),p=Math.ceil(1e3*(0,X.FX)(a,o)),g=(0,h.useMemo)(()=>{let e;return a.group_modifiers.length>1?null:(a.group_modifiers.forEach(i=>{let t=i.control_type??ea.D.STEPPER_OUTLINED;void 0===e&&eu.includes(t)&&i.min_amount>0&&(e=i)}),e??null)},[a]),v=(0,h.useMemo)(()=>{let e=!1;return a.group_modifiers.forEach(i=>{let t=!1;i.modifiers.forEach(e=>{e.price>0&&(t=!0)}),t&&(void 0==o.find(e=>e.group_id==i.id)||a.group_modifiers.length>1)&&(e=!0),!0==i.is_required&&(e=!0)}),null==g&&a.group_modifiers.length>0&&(e=!0),e},[a,o,g]),x=(e,i)=>{_.updateItem({itemId:e.id,modifiers:e.modifiers,quantity:i})},b=e=>{_.removeItem(e)},y=()=>t(a),j=()=>{if(null!==d.restaurant){if(v)return void t(a);try{l(!0),_.add({productId:a.id,modifiers:o})}finally{l(!1)}}else{if(v)return void t(a);let e=o.map(e=>e.id);u.add(a.id,e),c.open("")}};(0,h.useEffect)(()=>{if(null!==u.product&&u.product==a.id&&null!==d.restaurant){let e=[];null!==u.modifiers&&u.modifiers.length&&a.group_modifiers.forEach(i=>{i.modifiers.forEach(t=>{null!==u.modifiers&&u.modifiers.includes(t.id)&&e.push({id:t.id,amount:1,group_id:i.id,weight:t.weight,energy_amount:t.energy_amount,protein_amount:t.protein_amount,fat_amount:t.fat_amount,carbohydrate_amount:t.carbohydrate_amount,fiber_amount:t.fiber_amount})})}),u.clear(),setTimeout(()=>{try{l(!0),_.add({productId:a.id,modifiers:e})}finally{l(!1)}},150)}},[a,u,_,j,d]);let k=(0,h.useMemo)(()=>null!==g?s[g.id]??[]:[],[g,s]),{inCartAmount:M,item:P}=(0,h.useMemo)(()=>{let e=_.items.filter(e=>{if(e.product.id==a.id){let i=[];for(let e in s)for(let t in s[e])i.push(s[e][t].id);if(!i.length)return e;{let t=[];
1if(e.modifiers.forEach(e=>{t.push(e.id)}),JSON.stringify(t.sort())==JSON.stringify(i.sort()))return e}}});return e.length?{inCartAmount:e[0].quantity,item:e[0]}:{inCartAmount:0,item:{has_replacement:!1,id:0,product:a,modifiers:[],quantity:0,is_available:0,total_price:0,subtotal_price:0,updated_at:"",discount:null,dont_apply_discount:!1}}},[_,a,k,s]),H=(0,h.useCallback)(()=>{if(!e){let e=document.getElementById(i.code);null!==e&&(0,es.Pj)(e)}},[e,i]);return(0,m.jsxs)("div",{className:ec().card,children:[(0,m.jsx)(eo,{className:ec().label,product:a}),(0,m.jsx)("div",{className:ec().image,children:(0,m.jsx)(N.oX,{alt:a.name,fallbackSrc:null!==a.image_url?a.image_url+".jpg":"/images/product-image-placeholder.svg",fill:!0,contain:!0,loader:V.D,style:{objectPosition:"top",objectFit:"contain"},onClick:y,src:null!==a.image_url?a.image_url+".webp":"/images/product-image-placeholder.svg",unoptimized:!0})}),(0,m.jsxs)("div",{className:ec().content,children:[(0,m.jsx)("div",{className:ec().name,onClick:y,children:a.name}),a.description&&(0,m.jsx)("div",{className:ec().description,children:a.description}),(0,m.jsxs)("div",{className:ec().footer,children:[null!==g&&(0,m.jsx)(er,{modifierGroup:g,notSelectedRequiredModifiers:[],onChange:n(g.id),selectedModifiers:k}),(0,m.jsxs)("div",{className:ec().priceContainer,children:[!v&&M>0&&e?(0,m.jsx)("div",{className:ec().counterHolder,children:(0,m.jsx)(N.Cg,{disableIncrement:30===M,max:30,onChange:e=>{0===e&&void 0!==b?b(P.id):void 0!==x&&x(P,e)},value:M})}):(0,m.jsx)("a",{onClick:H,children:(0,m.jsx)(N.$n,{className:ec().addButton,disabled:!e,loading:r,onClick:j,children:v?"ÐобавиÑÑ":"РкоÑзинÑ"})}),(0,m.jsxs)("div",{className:ec().priceContainerLeft,children:[(0,m.jsxs)("div",{className:ec().weight,children:[p," гÑ."]}),(0,m.jsxs)("div",{className:ec().price,children:[f," â½"]})]})]})]})]})]},a.id)});function em(){return(em=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(null,arguments)}let eh=function(e){return h.createElement("svg",em({width:18,height:18,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=h.createElement("g",{clipPath:"url(#clock_svg__a)",fill:"#6A893E"},h.createElement("path",{d:"M17.986 8.366c-.034-1.082-.317-2.103-.755-3.082a8.871 8.871 0 0 0-2.363-3.146A8.87 8.87 0 0 0 10.213.042C10.03.017 9.843.031 9.66 0h-.07c-.024.025-.055.016-.083.018-.029.003-.045 0-.068 0-.043-.007-.09.016-.13-.018h-.633c-.04.034-.086.011-.13.018h-.068c-.022 0-.06.007-.082-.018h-.106c-.253.038-.51.03-.764.074C5.38.447 3.592 1.454 2.16 3.092 1.05 4.366.365 5.844.077 7.509c-.043.247-.036.498-.077.745v.14c.025.024.016.055.018.083.003.029 0 .045 0 .067-.007.044.016.091-.018.131v.632c.034.04.011.088.018.131v.067c-.002.029.007.06-.018.084v.14c.043.37.06.742.141 1.108.44 1.992 1.425 3.66 2.963 4.999a8.806 8.806 0 0 0 2.947 1.698c.754.26 1.529.436 2.334.453.701.015 1.403.038 2.097-.083 2.139-.373 3.92-1.38 5.347-3.018 1.054-1.21 1.723-2.61 2.038-4.18.154-.773.143-1.556.119-2.34Zm-9.001 7.65c-3.867-.004-7.028-3.175-7.017-7.04.011-3.865 3.172-7.014 7.03-7.008 3.867.004 7.028 3.175 7.019 7.042-.01 3.867-3.173 7.01-7.032 7.007Z"}),h.createElement("path",{d:"M8.25 7.264c0-.684-.004-1.368.003-2.052a.744.744 0 0 1 .533-.705.767.767 0 0 1 .84.284c.115.159.143.339.143.53-.003 1.17 0 2.34-.004 3.511a.366.366 0 0 0 .119.29 490.89 490.89 0 0 1 2.447 2.443c.34.341.369.77.08 1.097a.755.755 0 0 1-1.015.102 1.583 1.583 0 0 1-.169-.152c-.89-.889-1.777-1.781-2.67-2.666a.96.96 0 0 1-.308-.733c.007-.649.002-1.298.002-1.948Z"}))),r||(r=h.createElement("defs",null,h.createElement("clipPath",{id:"clock_svg__a"},h.createElement("path",{fill:"#fff",d:"M0 0h18v18H0z"})))))};function ef(){return(ef=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(null,arguments)}let ep=function(e){return h.createElement("svg",ef({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l||(l=h.createElement("path",{d:"M11.94 7.147H9.88v-4.8c0-1.12-.607-1.347-1.347-.507L8 2.447 3.487 7.58c-.62.7-.36 1.273.573 1.273h2.06v4.8c0 1.12.607 1.347 1.347.507L8 13.553l4.513-5.133c.62-.7.36-1.273-.573-1.273Z",fill:"#7C7C7C"})))};var eg=t(12806),ev=t.n(eg);let ex=(0,h.forwardRef)(({category:e,onProductClick:i,products:t},a)=>{let r=(new Date).getMinutes(),[l,n]=(0,h.useState)(r),o=(0,h.useMemo)(()=>[...t].sort((e,i)=>e.sort-i.sort),[t]);(0,h.useEffect)(()=>{let e=setInterval(()=>{n((new Date).getMinutes())},6e4);return()=>clearInterval(e)},[n]);let s=(0,h.useMemo)(()=>(0,j.e4)(e),[e,l]),d=s?null:(e=>{if(null===e.availability_schedule)return!1;let i=(e=>{let i=new Date;for(let t=0;t<8;t++){let a=!1,r=(0,z.A)(i,{days:t}),l=e.availability_schedule[(0,j.SJ)(r)];if(null!==l){let e=(0,j._B)(r),t=(0,j.Sr)((0,L.A)(l[0].from,"HH:mm",i)),n=(0,j.Sr)((0,L.A)(l[0].to,"HH:mm",i));if(i.toISOString()===r.toISOString()&&(0,U.A)(i,(0,L.A)(l[0].to,"HH:mm",i))&&
1(a=!0),!a)return{day:e,startTime:t,endTime:n}}}return!1})(e);return!!i&&(0,m.jsxs)("div",{className:ev().notAvailableMessageHolder,children:[(0,m.jsx)(eh,{height:18,width:18}),(0,m.jsxs)("div",{className:ev().notAvailableMessageText,color:"secondary-light",children:["ÐоÑÑÑпен Ð´Ð»Ñ Ð·Ð°ÐºÐ°Ð·Ð° ",i.day," Ñ ",i.startTime," до ",i.endTime]})]},"notAvailableMessage")})(e);return(0,m.jsxs)("div",{ref:a,id:e.code,children:[(0,m.jsxs)("div",{className:ev().titleHolder,children:[(0,m.jsx)("h2",{className:ev().title,children:e.name}),e.text?(0,m.jsxs)("div",{className:ev().notion,children:[(0,m.jsx)(ep,{height:16,width:16}),(0,m.jsx)("span",{children:e.text})]}):null]}),(0,m.jsx)("div",{children:d}),(0,m.jsx)("div",{className:ev().products,children:o.map(t=>(0,m.jsx)(e_,{availableBySchedule:s,category:e,onClick:i,product:t},t.id))})]})});ex.displayName="CatalogSection";var eb=t(34770),ey=t.n(eb);let ej=({categories:e,onActiveCategoryChange:i,onProductClick:t,products:a,showCategory:r})=>{let l=e.map(()=>({current:null})),n=(0,Z.A)({sectionElementRefs:l,offsetPx:-110});(0,h.useEffect)(()=>{void 0!==n&&i(e[n]?.code??null)},[n,e,i]);let o=(0,h.useMemo)(()=>g()(a,"category_id"),[a]);return e.length?(0,m.jsx)("div",{className:E()("noPadding-phone-large container"),children:e.map((e,i)=>r(e)?(0,m.jsx)(ex,{ref:l[i],category:e,onProductClick:t,products:o[e.id]??[]},e.id):null)}):(0,m.jsx)("div",{className:ey().loaderHolder,children:(0,m.jsx)(N.aH,{})})};var eC=t(26975);t(61597);var ek=t(47886),eM=t.n(ek);B.Ay.use([B.Ze,B.Vx]);let eN=({activeCategoryCode:e,categories:i,showCategory:t})=>{let[a,r]=(0,h.useState)(null);return(0,h.useEffect)(()=>{let t=i.findIndex(i=>i.code===e);a&&t>0&&a.slideTo(t-1)},[e,i,a]),(0,m.jsx)(eC.A,{innerZ:99,top:0,children:a=>(0,m.jsx)("div",{className:E()(eM().stickyHeader,{[eM().stickyHeaderVisible]:a.status===eC.A.STATUS_FIXED}),children:(0,m.jsxs)("div",{className:E()("container",eM().content),children:[(0,m.jsx)("a",{className:eM().logo,href:"#",onClick:es.m9,children:(0,m.jsx)(w(),{alt:"logo",height:22,src:"/images/logo-bistro.svg",width:77})}),(0,m.jsx)(A.RC,{className:eM().slider,onSwiper:e=>r(e),slidesPerView:"auto",spaceBetween:28,children:i.map(i=>t(i)?(0,m.jsx)(A.qr,{className:E()(eM().category,{[eM().categoryActive]:e===i.code}),children:(0,m.jsx)("a",{className:eM().categoryLink,href:"#"+i.code,onClick:es.m9,children:i.name})},i.id):null)}),(0,m.jsx)("div",{className:eM().cart,children:(0,m.jsx)(N.Kj,{})})]})})})};var eP=t(81170),eH=t.n(eP);let ew=({activeCategoryCode:e,categories:i,showCategory:t})=>{let[a,r]=(0,h.useState)(null);return(0,h.useEffect)(()=>{let t=i.findIndex(i=>i.code===e);a&&t>0&&a.slideTo(t-1)},[e,i,a]),(0,m.jsx)(eC.A,{innerZ:99,top:0,children:a=>{if(a.status===eC.A.STATUS_FIXED||a.status===eC.A.STATUS_ORIGINAL)return(0,m.jsx)("section",{className:E()("container",eH().categories,{[eH().categoriesSticky]:a.status===eC.A.STATUS_FIXED}),children:(0,m.jsx)(A.RC,{className:eH().categoriesSwiper,keyboard:!0,mousewheel:!0,onSwiper:e=>r(e),scrollbar:{draggable:!0},slidesPerView:"auto",spaceBetween:10,threshold:10,children:i.map(i=>t(i)?(0,m.jsx)(A.qr,{className:E()(eH().category,{[eH().categoryActive]:e===i.code}),children:(0,m.jsx)("a",{className:eH().categoryLink,"data-offset-top":50,href:"#"+i.code,onClick:es.m9,children:i.name})},i.id):null)})});return null}})},eS=["energy_amount","protein_amount","fat_amount","carbohydrate_amount","fiber_amount"];var eE=t(83924),eB=t.n(eE),eA=t(92591);let eD=({category:e,onClose:i,product:t})=>{let[a,r]=(0,h.useState)([]),{handleModifierChange:l,selectedModifiers:n,selectedModifiersMap:o}=(0,X.BH)(t),{orderParams:s,restaurantSelectModal:d,addProductQuery:c}=(0,q.P)(),u=(0,C._$)(),_=(e,i)=>{u.updateItem({itemId:e.id,modifiers:e.modifiers,quantity:i})},f=e=>{u.removeItem(e)},p=()=>{let e=t.group_modifiers.filter(e=>!0==e.is_required);if(e.length){let i=e.filter((e,i)=>!n.filter(i=>i.group_id==e.id).length&&(0==i&&(e=>{let i=document.getElementById(e);if(null!==i){let e=i.offsetTop,t=document.getElementById("product_details");null!==t&&(t.scrollTop=e)}})("modifier_"+e.id),!0));if(i.length)return r(i),!1}return r([]),!0},{inCartAmount:g,item:v}=(0,h.useMemo)(()=>{let e=u.items.filter(e=>{if(e.product.id==t.id){let i=[];for(let e in o)for(let t in o[e])i.push(o[e][t].id);if(!i.length)return e;{let t=[];
1if(e.modifiers.forEach(e=>{t.push(e.id)}),JSON.stringify(t.sort())==JSON.stringify(i.sort()))return e}}});return e.length?{inCartAmount:e[0].quantity,item:e[0]}:{inCartAmount:0,item:{has_replacement:!1,id:0,product:t,modifiers:[],quantity:0,is_available:0,total_price:0,subtotal_price:0,updated_at:"",discount:null,dont_apply_discount:!1}}},[u,t,o]),x=(0,X.Pt)(t,n),b=(0,X.Ci)(t,n),y=(0,X.FX)(t,n),k=(0,j.e4)(e),M=eS.some(e=>{let i;return null!=(i=x[e])&&0!==i}),P=g>0&&k?(0,m.jsx)("div",{className:eB().counterHolder,children:(0,m.jsx)(N.Cg,{disableIncrement:30===g,max:30,onChange:e=>{0===e&&void 0!==f?f(v.id):void 0!==_&&_(v,e)},value:g})}):(0,m.jsxs)(N.$n,{className:eB().addButton,disabled:!k,fullWidth:!0,onClick:()=>{if(null!==s.restaurant)p()&&(i(),u.add({productId:t.id,modifiers:n}));else{if(!p())return;i();let e=n.map(e=>e.id);c.add(t.id,e),d.open("")}},children:["ÐобавиÑÑ Ð² коÑÐ·Ð¸Ð½Ñ \xb7 ",(0,eA.$)(b)]}),H=(0,h.useMemo)(()=>[...t.group_modifiers].sort((e,i)=>i.id-e.id),[t.group_modifiers]);return(0,m.jsx)(N.aF,{afterContainer:(0,m.jsx)("div",{className:eB().stickyFooter,children:(0,m.jsx)("div",{className:eB().actionButtonHolder,children:P})}),className:eB().modal,containerClass:eB().modalContainer,id:"product_details",onClose:i,open:!0,children:(0,m.jsxs)("div",{className:eB().container,children:[(0,m.jsx)("div",{className:eB().image,children:(0,m.jsx)(N.oX,{alt:t.name,fallbackSrc:null!==t.image_url?t.image_url+".jpg":"/images/product-image-placeholder.svg",height:312,loader:V.D,style:{objectFit:"contain"},src:null!==t.image_url?t.image_url+".webp":"/images/product-image-placeholder.svg",unoptimized:!0,width:344})}),(0,m.jsxs)("div",{className:eB().content,children:[y>0&&(0,m.jsx)("div",{className:eB().weight,children:(0,eA.c)(y)}),(0,m.jsxs)("div",{className:eB().contentInner,children:[(0,m.jsx)("h2",{className:eB().title,children:t.name}),(0,m.jsx)("div",{className:eB().contentBox,children:(0,m.jsx)("div",{className:eB().foodProperties})})]}),(0,m.jsx)("div",{className:eB().description,children:t.description}),(0,m.jsx)("div",{className:eB().modifiersHolder,children:H.map(e=>(0,m.jsx)(er,{modifierGroup:e,notSelectedRequiredModifiers:a,onChange:l(e.id),selectedModifiers:o[e.id]??[]},e.id))}),(0,m.jsx)("div",{}),(0,m.jsx)("div",{className:eB().actionButtonHolder,children:P}),M?(0,m.jsxs)("div",{className:eB().energyAmounts,children:[x.fat_amount>0?(0,m.jsxs)("div",{children:["ÐиÑÑ \xb7 ",Math.round(10*x.fat_amount)/10," г"]}):null,x.carbohydrate_amount>0?(0,m.jsxs)("div",{children:["Ð£Ð³Ð»ÐµÐ²Ð¾Ð´Ñ \xb7 ",Math.round(10*x.carbohydrate_amount)/10," г"]}):null,x.energy_amount>0?(0,m.jsxs)("div",{children:["ÐнеÑг. ÑенноÑÑÑ \xb7 ",Math.round(10*x.energy_amount)/10," ккал"]}):null,x.protein_amount>0?(0,m.jsxs)("div",{children:["Ðелки \xb7 ",Math.round(10*x.protein_amount)/10," г"]}):null,x.fiber_amount>0?(0,m.jsxs)("div",{children:["ÐлеÑаÑка \xb7 ",Math.round(10*x.fiber_amount)/10," г"]}):null]}):null]})]})})};var eI=t(57560),eT=t.n(eI);function eF(){return(eF=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(null,arguments)}let eO=function(e){return h.createElement("svg",eF({viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=h.createElement("g",{clipPath:"url(#halal_svg__a)"},h.createElement("path",{d:"M55.266 34.37C58.784 19.31 49.429 4.251 34.37.732 19.312-2.785 4.252 6.571.734 21.63-2.784 36.688 6.572 51.747 21.63 55.265c15.058 3.518 30.118-5.837 33.636-20.896Z",fill:"#8DBF4C"}),h.createElement("path",{d:"M17.515 50.419a.537.537 0 0 1-.22-.049 24.803 24.803 0 0 1 0-44.734.505.505 0 0 1 .683.242.538.538 0 0 1-.216.684 23.774 23.774 0 0 0 0 42.882.539.539 0 0 1-.226.974h-.021ZM38.486 50.418a.539.539 0 0 1-.221-.974 23.775 23.775 0 0 0 0-42.883.538.538 0 1 1 .441-.926 24.803 24.803 0 0 1 0 44.735.54.54 0 0 1-.22.048Z",fill:"#fff"}),h.createElement("path",{d:"M18.806 11.126a14.872 14.872 0 0 1 1.545 4.602c.14.769.23 1.545.27 2.325.057.88.024 1.764-.098 2.638-.142.958-.382 1.9-.716 2.81a14.673 14.673 0 0 1-1.345 2.874 6.013 6.013 0 0 1-2.562 2.32 4.517 4.517 0 0 1-1.723.387 5.92 5.92 0 0 1-1.614-.188l-.313-.086c-.107 0-.247-.076-.366-.113a7.453 7.453 0 0 1-.694-.28 4.63 4.63 0 0 1-1.227-.824 3.832 3.832 0 0 1-.813-1.173 3.87 3.87 0 0 1-.35-1.244c-.063-.694
10-1.395.188-2.067a8.48 8.48 0 0 1 .539-1.431c.177-.377.339-.662.452-.856l.178-.29a.177.177 0 0 1 .312.155l-.113.302c-.07.199-.162.495-.259.882-.11.453-.186.914-.226 1.378-.06.567-.012 1.14.14 1.69.134.583.48 1.095.969 1.438.275.171.572.303.883.392.164.047.332.085.5.114.092 0 .156.032.259.043l.323.037a2.901 2.901 0 0 0 1.889-.387 3.552 3.552 0 0 0 1.249-1.55c.316-.737.52-1.518.603-2.315.113-.813.145-1.615.226-2.444.145-1.614.382-3.138.58-4.489.098-.672.21-1.297.308-1.851.097-.555.21-1.077.301-1.459.092-.382.172-.737.237-.958.064-.22.097-.344.097-.344a.19.19 0 0 1 .168-.13.19.19 0 0 1 .074.011.184.184 0 0 1 .13.08ZM21.96 17.762l.087-.075c.082-.064.17-.12.263-.167a2.366 2.366 0 0 1 .953-.28c.22-.015.441.001.657.049.243.042.477.13.689.258.224.145.423.327.586.538l.248.329c.075.124.15.237.226.35.28.44.471.93.565 1.442.032.237.049.463.065.678.016.216 0 .41-.038.587-.025.283-.08.563-.161.834l-.087.302a.119.119 0 0 1-.14.08.113.113 0 0 1-.075-.08s-.027-.108-.08-.296c0-.092-.054-.205-.092-.334a2.157 2.157 0 0 0-.14-.409 4.498 4.498 0 0 0-.188-.452c-.081-.145-.167-.302-.259-.458-.091-.156-.215-.285-.328-.42a2.538 2.538 0 0 0-.587-.484l-.237-.097a2.654 2.654 0 0 1-.43-.177 1.702 1.702 0 0 1-.366-.264l-.334-.318a5.471 5.471 0 0 1-.538-.624 2.891 2.891 0 0 1-.178-.22.532.532 0 0 0-.075-.087.151.151 0 0 1 0-.204h-.006Z",fill:"#fff"}),h.createElement("path",{d:"M20.696 27.844c.393.063.792.081 1.19.054a6.632 6.632 0 0 0 1.178-.183c.384-.099.759-.23 1.12-.393.359-.16.703-.35 1.028-.57.327-.219.637-.461.926-.727.29-.266.56-.552.807-.856.254-.302.49-.618.705-.948.205-.339.42-.667.598-1.022.177-.356.344-.716.538-1.077.194-.36.296-.737.43-1.114.135-.377.264-.754.361-1.141.097-.388.216-.77.302-1.163s.183-.78.253-1.178c.07-.399.156-.786.21-1.19.053-.404.123-.797.167-1.195l.134-1.206 1.84.291a41.064 41.064 0 0 0-.188 1.615 37.416 37.416 0 0 0-.129 1.652 33.511 33.511 0 0 0-.043 3.284c.033 1.057.164 2.11.393 3.143.104.471.25.932.436 1.378.165.366.399.697.69.974.22.209.504.34.806.372.078.005.155.005.232 0H35.014c.246-.007.492-.027.737-.06a5.68 5.68 0 0 0 1.297-.285 4.38 4.38 0 0 0 1.077-.587c.393-.263.883-.651 1.507-1.012a6.894 6.894 0 0 1 2.013-.748 11.955 11.955 0 0 1 3.832-.059l-1.34 2.078a9.49 9.49 0 0 0-.716-1.179 9.984 9.984 0 0 0-.899-1.109 9.06 9.06 0 0 0-.5-.484 6.959 6.959 0 0 0-.538-.43 7.216 7.216 0 0 0-.571-.362 5.123 5.123 0 0 0-.608-.274 3.027 3.027 0 0 0-.313-.102 1.77 1.77 0 0 0-.322-.081 3.896 3.896 0 0 0-.668-.086h-.35l-.344.037c-.24.028-.477.071-.71.13a5.78 5.78 0 0 0-.711.236c-.242.087-.468.205-.705.313-.237.107-.458.253-.695.376l-.683.431a.156.156 0 0 1-.205-.226c.172-.215.352-.43.539-.646.188-.21.387-.41.597-.597.21-.195.432-.375.667-.539a6.154 6.154 0 0 1 1.567-.85l.441-.14.458-.097c.318-.056.64-.085.963-.086.161-.013.323-.013.484 0 .16.006.318.026.474.06.318.052.63.13.937.23.299.104.592.225.877.361.279.143.55.299.813.469.258.166.538.35.748.538.474.386.912.815 1.308 1.28.204.222.398.453.587.695.195.251.374.514.538.786a1.361 1.361 0 0 1-1.163 2.078h-.167c-.538 0-1.076 0-1.544.043-.468.036-.933.11-1.39.22a4.63 4.63 0 0 0-1.135.485c-.36.204-.759.538-1.302.899a7.15 7.15 0 0 1-1.922.926 8.224 8.224 0 0 1-2.04.317H34.46a4.165 4.165 0 0 1-.614-.102 4.215 4.215 0 0 1-2.153-1.249 5.7 5.7 0 0 1-1.125-1.878c-.24-.608-.42-1.237-.539-1.879a19.642 19.642 0 0 1-.247-3.606c0-1.184.108-2.347.237-3.499.07-.581.145-1.152.242-1.722.097-.57.194-1.136.317-1.728v-.065a.933.933 0 0 1 1.83.356l-.226 1.243c-.07.42-.172.829-.258 1.243-.086.415-.2.824-.307 1.233-.107.409-.226.813-.35 1.222-.123.409-.274.802-.42 1.2-.145.398-.317.791-.473 1.19-.156.398-.366.77-.538 1.151a8.26 8.26 0 0 1-.64 1.115c-.238.36-.485.71-.738 1.076-.266.34-.55.665-.85.974a9.225 9.225 0 0 1-2.04 1.588 7.112 7.112 0 0 1-3.71.926 5.646 5.646 0 0 1-1.264-.178.151.151 0 0 1-.05-.275.151.151 0 0 1 .114-.02l.038-.065ZM17.02 41.063a.128.128 0 0 1-.038.108.451.451 0 0 1-.119 0h-.71c-.255.015-.51.015-.765 0-.075 0-.113-.038-.113-.113 0-.22 0-.538.027-.985.027-.447.033-.764.033-.985 0-.108 0-.167-.092-.183a7.324 7.324 0 0 0-1.001-.038 7.617 7.617 0 0 0-1.012.038c-.06 0-.092.075-.092.183v1.938a.134.134 0 0 1-.113.145 6.959 6.959 0 0 1-.775 0 6.476 6.476 0 0 1-.716 0c-.08 0-.118-.06-.118-.13 0-.3 0-.747.043-1.35.043-.603.043-1.077.043-1.357s0-.802-.043-1.442c-.043-.64-.038-1.125-.038-1.443 0-.059.027-.091.087-.091H13.079c.049 0 .07 0 .07.075 0 .205 0 .538-.043.931a8.456 8.456 0 0 0-.048.926c0 .097.027.
1156.08.172.358.035.718.046 1.077.033.343.01.686 0 1.028-.032.065 0 .097-.076.097-.173 0-.199 0-.495-.027-.899-.027-.403-.027-.705-.027-.904 0-.086.032-.13.102-.13h1.475c.08 0 .119.033.119.098 0 .317 0 .796-.038 1.437-.038.64-.043 1.125-.043 1.442 0 .318 0 .754.048 1.357.049.603.07 1.071.07 1.372ZM24.943 41.085c0 .054-.038.086-.108.108a4.84 4.84 0 0 1-.77.032 5.33 5.33 0 0 1-.758-.032.221.221 0 0 1-.178-.189 1.771 1.771 0 0 0-.22-.635c-.372-.02-.744-.02-1.115 0-.248-.03-.5-.03-.748 0a1.147 1.147 0 0 0-.156.442c-.054.231-.118.355-.188.376a7.22 7.22 0 0 1-.948.033c-.42 0-.635-.043-.635-.119 0-.075.312-.958.937-2.648.678-1.83 1.046-2.837 1.103-3.02.032-.107.07-.161.119-.161h.344c.117.006.233.006.35 0h.651c.054 0 .102.043.145.135.135.29.539 1.286 1.185 2.982.646 1.695.99 2.626.99 2.696Zm-2.939-3.768c-.059.124-.156.388-.296.792-.096.246-.17.5-.22.758 0 .049.08.076.247.087h.42c.183 0 .285-.022.307-.065a.184.184 0 0 0 0-.06 4.186 4.186 0 0 0-.189-.753 5.74 5.74 0 0 0-.269-.764v.005ZM30.869 41.262h-3.633a.13.13 0 0 1-.119-.129v-2.707c0-.28 0-.797-.032-1.437s-.027-1.12-.027-1.443c0-.06.038-.091.124-.091h1.55c.038 0 .06.026.054.075v-.005c-.038.538-.07 1.302-.113 2.341v1.954a.07.07 0 0 0 .064.059h.108c.248 0 .619 0 1.114-.038.495-.037.91-.01 1.157-.01.076 0 .113.032.113.091.006.41-.03.82-.107 1.222 0 .075-.043.118-.086.13a.735.735 0 0 1-.167-.012ZM38.862 41.085c0 .054-.038.086-.108.108a4.84 4.84 0 0 1-.77.032 5.33 5.33 0 0 1-.758-.032.221.221 0 0 1-.178-.189 1.771 1.771 0 0 0-.22-.635c-.372-.02-.744-.02-1.115 0a3.132 3.132 0 0 0-.727 0 1.147 1.147 0 0 0-.156.442c-.053.231-.118.355-.188.376a7.22 7.22 0 0 1-.947.033c-.42 0-.635-.043-.635-.119 0-.075.312-.958.936-2.648.678-1.83 1.046-2.837 1.104-3.02.032-.107.07-.161.118-.161h.344c.117.006.234.006.35 0h.652c.053 0 .102.043.145.135.14.29.535 1.284 1.184 2.982.65 1.697.972 2.596.969 2.696Zm-2.939-3.768c-.06.124-.156.388-.296.792-.096.246-.17.5-.22.758 0 .049.08.076.247.087h.409c.183 0 .285-.022.307-.065a.178.178 0 0 0 0-.06 4.17 4.17 0 0 0-.189-.753 5.73 5.73 0 0 0-.258-.764v.005ZM44.788 41.262h-3.633c-.08 0-.124-.059-.124-.129v-2.707c0-.28 0-.797-.032-1.437-.033-.64 0-1.12 0-1.443 0-.06.037-.091.123-.091h1.551c.037 0 .059.026.053.075v-.005c-.032.52-.07 1.3-.112 2.341V39.831a.07.07 0 0 0 .064.059h.108c.247 0 .619 0 1.12-.038.5-.037.882-.021 1.13-.021.075 0 .113.032.113.091.005.41-.031.82-.108 1.222 0 .075-.043.118-.086.13a.735.735 0 0 1-.167-.012Z",fill:"#fff"}))),o||(o=h.createElement("defs",null,h.createElement("clipPath",{id:"halal_svg__a"},h.createElement("path",{fill:"#fff",d:"M0 0h56v56H0z"})))))};function eR(){return(eR=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(null,arguments)}let eZ=function(e){return h.createElement("svg",eR({viewBox:"0 0 62 62",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),s||(s=h.createElement("ellipse",{cx:30.587,cy:31.207,rx:21.08,ry:20.873,fill:"#fff"})),d||(d=h.createElement("path",{d:"M29.284 36.855c-1.507 0-1.81.332-1.81.685v.02c0 .359.303.715 1.81.715 1.507 0 1.78-.333 1.78-.705v-.02c0-.35-.27-.695-1.78-.695ZM39.822 25.804l-.743 1.663h1.504l-.76-1.663ZM24.131 27.466h1.507l-.76-1.662-.747 1.663ZM40.844 34.477c-1.833 0-2.278.918-2.278 1.646v.126c0 .739.478 1.706 2.278 1.706s2.278-.957 2.278-1.696v-.136c0-.728-.489-1.646-2.278-1.646ZM49.22 33.53a.797.797 0 1 0 0 1.592.795.795 0 0 0 .849-.796.8.8 0 0 0-.848-.797Z",fill:"#FA7305"})),c||(c=h.createElement("path",{d:"M46.993 14.373A157.423 157.423 0 0 0 30.588 0 150.403 150.403 0 0 0 0 31.002 150.274 150.274 0 0 0 30.588 62a157.146 157.146 0 0 0 16.405-14.37 158.033 158.033 0 0 0 14.18-16.628 158.034 158.034 0 0 0-14.18-16.629Zm-2.596 9.93h2.413v3.659h3.7v1.756h-6.107l-.006-5.414Zm-6.192 0h3.34l2.729 5.402h-2.68l-.331-.749h-2.846l-.332.749h-2.444l2.564-5.401Zm-8.752 0h2.414v3.659h3.705v1.756h-6.113l-.006-5.414Zm-16.78 0h2.417v1.843h3.058v-1.842h2.424v5.4h-2.424V27.71H15.09v1.996h-2.417v-5.401ZM23.39 37.548c0 1.23-.793 2.75-5.402 2.75h-.52c-4.649 0-5.204-1.972-5.204-2.993v-.097h3.586c.024.17.107.951 1.853.951 1.66 0 1.873-.332 1.873-.635 0-.282-.196-.472-.82-.472h-2.438v-1.929h2.404c.575 0 .75-.17.75-.392 0-.263-.112-.516-1.799-.516-1.687 0-1.77.602-1.79.739h-3.549v-.107c0-.874.449-2.677 5.077-2.677h.471c4.774 0 5.2 1.127 5.2 2.025v.04c0 .762-.738 1.204-1.508 1.33.883.147 1.823.685 1.823 1.916l-.007.067Zm-.252-7.842h-2.444l2.564-5.401h3.35l2.729 5.4h-2.68l-.332-.748H23.48l-.342.749Zm11.57 7.788c0 1.244-.604 2.814-5.312 2.814h-.478c-4.704 0-5.275-2.478-5.275-3.954V36.1c0-1.43.57-3.941 5.312-3.941h.468c4.13 0 4.92
11.52 4.92 2.53v.04h-3.529c-.073-.102-.312-.555-1.52-.555-1.66 0-2.049.948-2.049 1.547v.076c.21-.15.996-.728 3.204-.728h.126c3.224 0 4.12.998 4.12 2.328l.014.096Zm12.05-1.117c0 1.486-.698 3.92-5.645 3.92h-.478c-4.98 0-5.644-2.434-5.644-3.92v-.316c0-1.497.687-3.901 5.644-3.901h.478c4.964 0 5.644 2.404 5.644 3.901v.316Zm2.476.093c-1.272 0-2.248-.865-2.248-2.138 0-1.274.977-2.139 2.248-2.139 1.272 0 2.238.865 2.238 2.139 0 1.273-.996 2.138-2.238 2.138Z",fill:"#FA7305"})))},ez=()=>(0,m.jsx)("div",{className:eT().benefitHolder,children:(0,m.jsxs)("div",{className:eT().halalBlock,children:[(0,m.jsx)(eZ,{}),(0,m.jsxs)("div",{children:[(0,m.jsx)("div",{className:eT().mainHeader,children:"Halal 360\xb0"}),(0,m.jsx)("div",{className:eT().subHeader,children:"Ðо вÑеÑ
пÑоÑеÑÑаÑ
пÑидеÑживаемÑÑ ÑÑандаÑÑа ХалÑлÑ"})]}),(0,m.jsx)(eO,{className:eT().halal2})]})});var eL=t(67020),eU=t(6756);t(38206);var eq=t(30356),eX=t(59564),eV=t.n(eX),eW=t(80228),eK=t.n(eW);function eG(){return(eG=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(null,arguments)}let eQ=function(e){return h.createElement("svg",eG({xmlns:"http://www.w3.org/2000/svg",width:56,height:56,viewBox:"0 0 62 62",fill:"none"},e),u||(u=h.createElement("g",{clipPath:"url(#free-delivery_svg__a)"},h.createElement("path",{d:"M44.526 17.443C37.758 10.663 30.98 5.725 30.98 5.725s-6.768 4.939-13.547 11.718C10.664 24.22 5.725 31 5.725 31s4.939 6.779 11.707 13.557c6.769 6.779 13.547 11.718 13.547 11.718s6.769-4.94 13.547-11.718C51.295 37.78 56.234 31 56.234 31s-4.929-6.779-11.708-13.557Z",fill:"#fff"}),h.createElement("path",{d:"M47.606 14.374C39.287 6.055 30.979 0 30.979 0s-8.308 6.055-16.616 14.374C6.055 22.682 0 31 0 31s6.055 8.318 14.363 16.626C22.671 55.945 30.98 62 30.98 62s8.308-6.055 16.616-14.374C55.903 39.308 61.96 31 61.96 31s-6.056-8.318-14.364-16.626m-8.948 24.355c-3.886 3.896-7.781 6.727-7.781 6.727V41.5c-5.26 0-9.848-.713-9.848-.713s-.713-4.557-.713-9.838c0-5.27.723-9.837.723-9.837s4.557-.713 9.838-.723V16.43s3.885 2.831 7.78 6.727c3.886 3.896 6.728 7.781 6.728 7.781s-2.832 3.896-6.717 7.781",fill:"#FA7305"}))),_||(_=h.createElement("defs",null,h.createElement("clipPath",{id:"free-delivery_svg__a"},h.createElement("path",{fill:"#fff",d:"M0 0h61.969v62H0z"})))))},eJ=()=>{let{localities:e,orderParams:i}=(0,C.Pj)(),t=null!==i?i.restaurantId:null,a=(0,C.iS)(),r=t?(0,j.xg)(e,t):a;return(0,h.useMemo)(()=>{let e=r?.restaurants.find(e=>e.id===t);return(void 0===e&&(e=r?.restaurants.find(e=>e.is_default)??r?.restaurants[0]),null==e||e?.delivery_zones[1]==null)?500:e?.delivery_zones[1].free_delivery_price},[r,t]),(0,m.jsx)("div",{className:eK().benefitHolder,children:(0,m.jsxs)("div",{className:eK().FreeDeliveryBlock,children:[(0,m.jsx)(eQ,{}),(0,m.jsx)("div",{children:(0,m.jsx)("div",{className:eK().mainHeader,children:"ÐоÑÑавка и ÑамовÑвоз"})})]})})};var e$=t(22004),eY=t.n(e$);function e0(){return(e0=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(null,arguments)}let e1=function(e){return h.createElement("svg",e0({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",width:47.976,height:48,style:{shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",imageRendering:"optimizeQuality",fillRule:"evenodd",clipRule:"evenodd"},viewBox:"0 0 24.49 24.5"},e),h.createElement("path",{d:"M18.81 5.68A63.407 63.407 0 0 0 12.24 0 59.713 59.713 0 0 0 0 12.25c3.46 4.66 7.59 8.78 12.24 12.25 2.32-1.74 4.51-3.64 6.57-5.68 2.04-2.06 3.94-4.25 5.68-6.57a62.224 62.224 0 0 0-5.68-6.57zm-6.22 7.01s-.7.11-1.64.16v4.04H9.4v-4.04c-.95-.05-1.67-.16-1.67-.16-.11-.81-.17-1.62-.17-2.43s.06-1.63.17-2.43c0 0 .37-.05.87-.1v1.91h.83V7.68c.26-.01.45-.02.74-.02.28 0 .53 0 .79.02v1.96h.83V7.73c.5.05.81.1.81.1.24 1.61.24 3.25 0 4.87zm2.84-.46-.05.05v4.59h-1.55V7.63l.04.03c.56.42 1.08.88 1.58 1.37.49.5.95 1.04 1.37 1.61-.43.56-.89 1.1-1.39 1.59l.01-.01zm0 0z",style:{fill:"#fa7305",fillRule:"nonzero"}}))},e3=()=>(0,m.jsx)("div",{className:eY().benefitHolder,children:(0,m.jsxs)("div",{className:eY().FreeDeliveryBlock,
1children:[(0,m.jsx)(e1,{}),(0,m.jsx)("div",{children:(0,m.jsx)("div",{className:eY().mainHeader,children:"ÐкÑÑнÑе лÑбимÑе блÑда"})})]})}),e2=[],e7=(0,b.PA)(({localitySlug:e,recommendedProducts:i,restaurantId:t})=>{let[a,r]=(0,h.useState)(null),l=(0,C.wm)(),n=(0,C._$)(),o=(0,f.useRouter)(),s=void 0!==o.query.product_id?parseInt(o.query.product_id):null,d=(0,C.ZC)(s),c=(0,y.useQuery)(eq.e.BANNERS(l?.id),()=>(0,k.Oh)(l?.id),{refetchOnWindowFocus:!1}).data??e2,u=(0,y.useQuery)(eq.e.CATEGORIES(l?.id),()=>(0,k.bW)(l?.id),{refetchOnWindowFocus:!1}).data??e2,_=(0,y.useQuery)(eq.e.PRODUCTS(l?.id),()=>(0,k.d$)(l?.id),{refetchOnWindowFocus:!1}).data??e2;(0,M.s)();let{selectedProduct:p,setSelectedProduct:v}=(({localitySlug:e,products:i})=>{let t=(0,f.useRouter)(),a=void 0!==t.query.product_id?parseInt(t.query.product_id):null,[r,l]=(0,h.useState)(()=>null===a?null:i.find(e=>e.id===a)??null),n=(0,C.ZC)(r);return(0,h.useEffect)(()=>{let e=`/${t.query.localitySlug}`;null===r&&null!==n&&t.push({pathname:e},void 0,{scroll:!1}),null!==r&&a!==r.id&&t.push({pathname:e,query:{product_id:r.id}},void 0,{scroll:!1})},[e,n,a,i,t,r]),{selectedProduct:r,setSelectedProduct:l}})({localitySlug:e,products:_}),{localities:b,orderParams:H}=(0,C.Pj)();(0,h.useEffect)(()=>{null!==H.restaurantId&&t!==H.restaurantId&&H.setRestaurant(H.orderType,{id:t,delivery_zone_id:null,delivery_details:null})},[t,H]),(0,h.useEffect)(()=>{if(null!==s&&d!==s){let e=_.find(e=>e.id===s);void 0!==e&&v(e)}},[_,s,d]),(0,h.useEffect)(()=>{if(null==H.restaurantId){let e=(0,j.xg)(b,t);if(e&&1==e.restaurants.length){let i=e.restaurants.find(e=>e.id===t)??null;if(i){let e=i.delivery_zones.find(e=>e.type===eU.RA.PICKUP);if(void 0===e)throw Error(`Pickup delivery zone doesnt't exist in restaurant #${i.id}`);n.selectRestaurant(eU.RA.PICKUP,{id:t,delivery_zone_id:e.id,delivery_details:null}),n.createCart()}}}},[n,b,H,t]);let w=(0,h.useCallback)(e=>{v(e)},[v]),S=(0,h.useMemo)(()=>x()(u,"id"),[u]),E=(0,h.useCallback)(()=>{v(null)},[v]),B=(0,h.useMemo)(()=>c.filter(e=>e.type===eL.H.DESKTOP),[c]),A=(0,h.useMemo)(()=>c.filter(e=>e.type===eL.H.MOBILE),[c]),D=(0,h.useMemo)(()=>g()(_,"category_id"),[_]),I=(0,h.useCallback)(e=>void 0!==D[e.id],[D]),T=(0,j.xg)(b,t),F="ÐТÐÐ-ÐиÑÑÑо | ÐÑÑÑÑÐ°Ñ Ð´Ð¾ÑÑавка Ñ
алÑлÑ-ÐµÐ´Ñ Ð² "+T?.seo_title;return(0,m.jsxs)(N.PE,{title:F,recommendedProducts:i,isHomePage:!0,children:[(0,m.jsxs)("div",{className:eV().top,children:[(0,m.jsx)(eN,{activeCategoryCode:a,categories:u,showCategory:I}),B.length>0&&(0,m.jsx)(P.l,{banners:B}),A.length>0&&(0,m.jsx)(R,{banners:A}),(0,m.jsx)("div",{id:"menu"}),(0,m.jsx)(ew,{activeCategoryCode:a,categories:u,showCategory:I}),(0,m.jsxs)("div",{className:eV().smallBanners,children:[(0,m.jsx)(ez,{}),(0,m.jsxs)("span",{className:eV().hideMobile,children:[(0,m.jsx)(e3,{}),(0,m.jsx)(eJ,{})]})]})]}),(0,m.jsx)(ej,{categories:u,onActiveCategoryChange:r,onProductClick:w,products:_,showCategory:I}),null!==p&&(0,m.jsx)(eD,{category:S[p.category_id],onClose:E,product:p})]})})},40770:e=>{e.exports={banner:"BannerMobile_banner__LulfX",backgroundImage:"BannerMobile_backgroundImage__tFUtz",slide:"BannerMobile_slide__wBaP6",slideContent:"BannerMobile_slideContent__TCtXF",slide_is_loading:"BannerMobile_slide_is_loading__ikZWd",image:"BannerMobile_image__igZhm",pagination:"BannerMobile_pagination__6lnhj",title:"BannerMobile_title__QtUMA",invicible_image:"BannerMobile_invicible_image__Gc_cU"}},47886:e=>{e.exports={stickyHeader:"StickyHeader_stickyHeader__1Yteg",stickyHeaderVisible:"StickyHeader_stickyHeaderVisible__o3dAv",content:"StickyHeader_content__zyBTy",logo:"StickyHeader_logo__su_T6",slider:"StickyHeader_slider__Mv9oR",category:"StickyHeader_category__ItDtp",categoryLink:"StickyHeader_categoryLink__FHnEU",categoryActive:"StickyHeader_categoryActive__UWG3N",cart:"StickyHeader_cart__s7xtB"}},57560:e=>{e.exports={benefitHolder:"HalalBlock_benefitHolder__TQWYn",halalBlock:"HalalBlock_halalBlock__quDlC",halal2:"HalalBlock_halal2__A9afC",mainHeader:"HalalBlock_mainHeader__ChKAi",subHeader:"HalalBlock_subHeader__48Dc_"}},59564:e=>{e.exports={sheduleInfoModal:"Home_sheduleInfoModal__lDxnU",sheduleInfoModalContainer:"Home_sheduleInfoModalContainer__FTTrx",top:"Home_top__e_5UA",productsSlider:"Home_productsSlider__e7HUd",smallBanners:"Home_smallBanners__fvVeg",hideMobile:"Home_hideMobile__0CXaz"}},64084:e=>{e.exports={label:"ProductLabel_label__9aXtY",discount:"ProductLabel_discount__aZBgy",hit:"ProductLabel_hit__TsqtQ"}},68208:e=>
1{e.exports={title:"CheckboxModifier_title__FW2K4",errored:"CheckboxModifier_errored__XdOmX",checkboxes:"CheckboxModifier_checkboxes___DpnC",checkboxRow:"CheckboxModifier_checkboxRow__SK0iP",checkbox:"CheckboxModifier_checkbox__fis_0",errorText:"CheckboxModifier_errorText__BmWny",price:"CheckboxModifier_price__z0bBJ"}},69624:e=>{e.exports={card:"ProductCard_card__gSftc",image:"ProductCard_image__nLyAl",content:"ProductCard_content__LYkxK",name:"ProductCard_name__CFQ4M",description:"ProductCard_description__KitCv",priceContainerLeft:"ProductCard_priceContainerLeft__12TVD",weight:"ProductCard_weight__kP9Ca",price:"ProductCard_price__0fxdM",priceContainer:"ProductCard_priceContainer__xBKp_",footer:"ProductCard_footer__wHaJ8",addButton:"ProductCard_addButton__4o9Av",label:"ProductCard_label__VlOk_",notAvailableByTimeMessage:"ProductCard_notAvailableByTimeMessage__cDrbq",counterHolder:"ProductCard_counterHolder__gyWOr"}},80228:e=>{e.exports={benefitHolder:"FreeDeliveryBlock_benefitHolder__hXDkA",FreeDeliveryBlock:"FreeDeliveryBlock_FreeDeliveryBlock__HAJFl",mainHeader:"FreeDeliveryBlock_mainHeader__0whWg",subHeader:"FreeDeliveryBlock_subHeader__fypqj"}},81170:e=>{e.exports={categories:"CategoriesMobile_categories__vKWiF",categoriesSwiper:"CategoriesMobile_categoriesSwiper__FbQg2",categoriesSticky:"CategoriesMobile_categoriesSticky__oQzJC",category:"CategoriesMobile_category__Ii4bY",categoryActive:"CategoriesMobile_categoryActive___HqFu",categoryLink:"CategoriesMobile_categoryLink__yikUX"}},83924:e=>{e.exports={modal:"ProductDetails_modal__XXzSR",container:"ProductDetails_container__0S1GG",image:"ProductDetails_image__wPnw0",label:"ProductDetails_label__J3XBJ",delimiter:"ProductDetails_delimiter__FqoEz",content:"ProductDetails_content__LCusQ",title:"ProductDetails_title__bFNzv",contentInner:"ProductDetails_contentInner__uU2Te",propertiesBox:"ProductDetails_propertiesBox__WuWQo",infoIcon:"ProductDetails_infoIcon__qeSAl",infoIconOpen:"ProductDetails_infoIconOpen__ln1cB",weight:"ProductDetails_weight___nz9e",description:"ProductDetails_description__U0UPe",modifiers:"ProductDetails_modifiers__bzis7",addButton:"ProductDetails_addButton__aTI7_",counterHolder:"ProductDetails_counterHolder__0s8EK",stickyFooter:"ProductDetails_stickyFooter__Kli2k",modifiersHolder:"ProductDetails_modifiersHolder__iFJEX",actionButtonHolder:"ProductDetails_actionButtonHolder__28PZt",energyAmounts:"ProductDetails_energyAmounts__lU_LQ"}},85278:e=>{e.exports={stepper:"StepperModifier_stepper__551RN",stepperContained:"StepperModifier_stepperContained__UZa3d",stepperOutlined:"StepperModifier_stepperOutlined__SI8Yq",option:"StepperModifier_option__Wkn60",optionNotSelected:"StepperModifier_optionNotSelected__dpPYj",optionSelected:"StepperModifier_optionSelected__sCPod"}},92435:e=>{e.exports={select:"SelectModifier_select___EnIs"}}}]);
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.