(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2379],{79125:function(e,t,n){"use strict";n.d(t,{u:function(){return h}});var s=n(92777),r=n(82262),i=n(45959),a=n(72179),o=n(37247),c=n(59499),l=n(67294),d=n(94184),u=n.n(d),p=n(85893),h=function(e){(0,i.Z)(c,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,o.Z)(c);if(t){var s=(0,o.Z)(this).constructor;e=Reflect.construct(n,arguments,s)}else e=n.apply(this,arguments);return(0,a.Z)(this,e)});function c(){return(0,s.Z)(this,c),n.apply(this,arguments)}return(0,r.Z)(c,[{key:"render",value:function(){var e=this.props,t=e.styles,n=e.contentStyles,s=e.children,r=e.closeModal;return(0,p.jsx)(p.Fragment,{children:(0,p.jsxs)("div",{className:"app-modal",style:t,children:[r&&(0,p.jsx)("div",{onClick:r,className:"close-icon"}),(0,p.jsx)("div",{className:"app-modal-content",style:n,children:s})]})})}}]),c}(l.Component);(0,c.Z)(h,"Header",function(e){var t=e.children,n=e.style,s=e.className;return(0,p.jsx)("div",{className:u()("modal-header-container",(0,c.Z)({},s,s)),style:n,children:t})}),(0,c.Z)(h,"Footer",function(e){var t=e.children,n=e.style,s=e.className;return(0,p.jsx)("div",{className:u()("modal-footer-container",(0,c.Z)({},s,s)),style:n,children:t})})},74594:function(e,t,n){"use strict";n(67294);var s=n(31567),r=n(94184),i=n.n(r),a=n(66596),o=n(44547),c=n(85893);t.Z=function(e){var t=e.distance,n=e.showPinIcon,r=e.className,l=void 0===r?"":r,d=e.showDistance,u=(0,s.$)().t;return(0,c.jsxs)("div",{className:i()("pickup-distance",{},[l]),children:[(0,c.jsxs)("div",{className:"pickup-distance-info",children:[(0,c.jsx)(a.Z,{width:24,height:24,fill:"#979797"}),(void 0===d||d)&&(0,c.jsxs)("p",{className:"distance-value",children:[u("pickUpDistance"),":"," ",(0,c.jsxs)("span",{children:[t," ",u("km")]})]})]}),(0,c.jsxs)("div",{className:"pickup-distance-path-wrapper",children:[(0,c.jsx)("div",{className:"pickup-distance-path",children:(0,c.jsx)("div",{className:"thumb",children:(0,c.jsx)("div",{})})}),void 0!==n&&n&&(0,c.jsx)("div",{className:"pin-icon",children:(0,c.jsx)(o.Z,{})})]})]})}},35144:function(e,t,n){"use strict";n(67294);var s=n(94184),r=n.n(s),i=n(36534),a=n(61484),o=n(30219),c=n(66596),l=n(85893);t.Z=function(e){var t=e.branch,n=e.restaurantName,s=e.selectedBranch,d=e.showDistance,u=e.setSelectedBranch,p=(null==s?void 0:s.branchId)===t.branchId;return(0,l.jsxs)("li",{className:r()("supplier-branch-list__item",{active:p}),onClick:function(){u(t)},children:[(0,l.jsx)(i.Z,{className:"supplier-branch-list__item-radio",value:t.branchId,checked:p}),(0,l.jsxs)("div",{className:"supplier-branch-list__item-info",children:[(0,l.jsx)("p",{className:"supplier-branch-list__item-title",children:n}),(0,l.jsx)("span",{className:"supplier-branch-list__item-address-city",children:t.addressName}),(0,l.jsxs)("div",{className:"supplier-branch-list__item-hours-distance",children:[(0,l.jsxs)("div",{className:"open-hours",children:[(0,l.jsx)(o.Z,{className:"time-icon",width:13,height:13,fill:"#CAC5C2"}),(0,l.jsxs)("span",{children:[t.opensAt,"-",t.closesAt]})]}),(void 0===d||d)&&(0,l.jsxs)("div",{className:"distance",children:[(0,l.jsx)(c.Z,{className:"pickup-icon",width:13,height:13}),(0,l.jsxs)("span",{children:[(0,a.metersToKilometers)(t.distance)," km"]})]})]})]})]})}},88746:function(e,t,n){"use strict";n(67294);var s=n(94184),r=n.n(s),i=n(35144),a=n(85893);t.Z=function(e){var t=e.className,n=void 0===t?"":t,s=e.restaurantName,o=e.showDistance,c=e.branches,l=e.selectedBranch,d=e.setSelectedBranch;return(0,a.jsx)("div",{className:r()("supplier-branch-list",{},[n]),children:(0,a.jsx)("ul",{className:"supplier-branch-list-container",children:(void 0===c?[]:c).map(function(e){return(0,a.jsx)(i.Z,{branch:e,showDistance:o,restaurantName:s,selectedBranch:l,setSelectedBranch:d},e.branchId)})})})}},71129:function(e,t,n){"use strict";n(67294);var s=n(76175),r=n(44547),i=n(85893);t.Z=function(e){var t=e.restaurantName,n=e.restaurantAddress,a=e.onClick;return(0,i.jsxs)(s.z,{className:"supplier-branch-list-open-btn",type:"linear",color:"secondary",preIcon:(0,i.jsx)(r.Z,{}),onClick:a,children:[t,", ",n]})}},61484:function(e,t,n){"use strict";n.r(t),n.d(t,{metersToKilometers:function(){return p}});var s=n(67294),r=n(31567),i=n(85335),a=n(3524),o=n(79125),c=n(76175),l=n(74594),d=n(88746),u=n(85893),p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Number((e/1e3).toFixed(t))};t.default=function(e){var t=e.imagePath,n=e.restaurantName,h=e.branches,f=e.showDistance,m=void 0===f||f,v=e.branchIdToSelectInitially,g=e.closeModal,j=e.onSave,b=(0,s.useState)(null),x=b[0],_=b[1],k=(0,r.$)().t;return(0,s.useEffect)(function(){void 0!==v&&_(h.filter(function(e){return e.branchId===v})[0])},[]),(0,u.jsxs)(a.I,{className:"pickup-modal",headerless:!0,children:[(0,u.jsxs)("div",{className:"pickup-modal-content",children:[(0,u.jsx)("div",{className:"pickup-modal__image-content",children:(0,u.jsx)("img",{src:"".concat(i.MH).concat(t),alt:n})}),(0,u.jsxs)("div",{className:"pickup-modal-heading-info",children:[(0,u.jsx)("h2",{className:"pickup-modal-heading-info-title",children:k("pickupModal.title")}),(0,u.jsx)("p",{className:"pickup-modal-heading-info-description",children:k("pickupModal.description")})]}),(0,u.jsx)(l.Z,{className:"pickup-modal-distance",showPinIcon:!0,showDistance:m&&x,distance:p(null==x?void 0:x.distance)}),(0,u.jsx)(d.Z,{className:"pickup-modal-list",branches:h,showDistance:m,restaurantName:n,selectedBranch:x,setSelectedBranch:_})]}),(0,u.jsxs)(o.u.Footer,{className:"pickup-modal-footer",children:[(0,u.jsx)(c.z,{className:"pickup-modal-footer-btn",type:"fill",color:"secondary",size:"medium",onClick:g,text:k("cancel")}),(0,u.jsx)(c.z,{className:"pickup-modal-footer-btn",type:"fill",color:"primary",size:"medium",disabled:!x,onClick:function(){j(x)},text:k("save")})]})]})}},44547:function(e,t,n){"use strict";var s=n(67294),r=n(85893),i=s.memo(function(e){var t=e.fill,n=void 0===t?"#B71E4E":t,s=e.width,i=e.height;return(0,r.jsxs)("svg",{width:void 0===s?36:s,height:void 0===i?37:i,viewBox:"0 0 36 37",fill:n,xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("ellipse",{cx:"18",cy:"34.6477",rx:"16",ry:"1.46591",fill:"#EFEFEF"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.625 14.8125C29.625 20.8927 25.0312 25.8999 19.1251 26.5529V33.1875C19.1251 33.9124 18.5375 34.5 17.8126 34.5C17.0878 34.5 16.5001 33.9124 16.5001 33.1875V26.5529C10.5939 25.9001 6 20.8928 6 14.8125C6 8.28864 11.2886 3 17.8125 3C24.3364 3 29.625 8.28864 29.625 14.8125ZM17.8125 18.75C19.9871 18.75 21.75 16.9871 21.75 14.8125C21.75 12.6379 19.9871 10.875 17.8125 10.875C15.6379 10.875 13.875 12.6379 13.875 14.8125C13.875 16.9871 15.6379 18.75 17.8125 18.75Z",fill:n})]})});t.Z=i},839:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return ey},default:function(){return eN}});var s=n(59499),r=n(67294),i=n(9008),a=n.n(i),o=n(5152),c=n.n(o),l=n(23665),d=n(11163),u=n(25675),p=n.n(u),h=n(94184),f=n.n(h),m=n(25617),v=n(41664),g=n.n(v),j=n(31567),b=n(92419),x=n(53720),_=n(9698),k=n(38416),y=n(65256),N=n(66417),w=n(85237),S=n(20468),C=n(8695),P=n(83453),B=n(91037),O=n(30219),F=n(45469),Z=n(422),I=n(99460),T=n(87448),D=n(61484),M=n(85335),E=n(79592),A=n(60785),U=n(43344),R=n(26765),L=n(28765),G=n(50029),H=n(87794),W=n.n(H),q=n(96413),z=n(56121),V=n(29577),K=n(90162),$=n.n(K),Q=n(85893),Y=function(e){var t,n=e.shop,s=(0,d.useRouter)(),i=(0,r.useState)(0),a=i[0],o=i[1],c=(0,w.Qf)(),u=(0,m.v9)(c.User.getUser),p=(0,y.s)({item:n,type:l.EntityType.Supplier,SupplierType:M.l_.shop}),h=p.changeFavorite,f=p.removeFromFavorite,v=p.isFavorite,g=(0,m.I0)(),b=(0,r.useState)(""),x=b[0],_=b[1],k=(0,j.$)().t,N=(t=(0,G.Z)(W().mark(function e(){return W().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!u){e.next=10;break}if(!v){e.next=6;break}return e.next=4,f();case 4:e.next=8;break;case 6:return e.next=8,h();case 8:e.next=11;break;case 10:g.modal.openModal({modalId:"login-modal",props:{shouldDisableGlobalScroll:!0}});case 11:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)});return(0,r.useEffect)(function(){var e=function(){if(window.scrollY>10){if(window.scrollY/53>=1){o(1);return}o(window.scrollY/53)}else o(0)};return window.addEventListener("scroll",e),function(){window.removeEventListener("scroll",e)}},[]),(0,r.useEffect)(function(){var e=setTimeout(function(){x.trim().length>=3&&s.push({pathname:"/shops/".concat(s.query.alias,"/0"),query:{t:x}})},300);return function(){clearTimeout(e)}},[x,s]),(0,Q.jsxs)("div",{className:$().ShopMobileTopBar,style:{backgroundColor:"rgba(255,255,255, ".concat(a,")"),borderBottom:"".concat(1===a?"1px solid rgba(202, 197, 194, 0.4)":"")},children:[(0,Q.jsx)("button",{className:$().goBackBtn,onClick:function(){Object.hasOwn(s,"components")&&Object.keys(null==s?void 0:s.components).length>2?s.back():s.push("/shops")},children:(0,Q.jsx)(q.Z,{width:24,height:24,fill:1===a?"#CAC5C2":"#FFF"})}),(0,Q.jsxs)("div",{className:$().searchInputWrapper,children:[(0,Q.jsx)(z.Z,{width:24,height:24,fill:1===a?"#CAC5C2":"#36373c",className:$().searchIcon}),(0,Q.jsx)("input",{type:"text",name:"query",value:x,placeholder:k("search-in-restaurant",{name:n.name}),className:$().searchInput,onChange:function(e){_(e.target.value)},style:{backgroundColor:1==a?"#F4F3F3":""}})]}),(0,Q.jsx)("button",{className:$().addToFavoritesBtn,onClick:N,children:(0,Q.jsx)(V.Z,{width:24,height:24,fill:v?"#b71e4e":1===a?"#CAC5C2":"#FFF"})})]})},X=n(93936),J=n(79213),ee=n.n(J),et=function(e){var t=e.shop,n=(0,j.$)().t;return(0,Q.jsxs)("ul",{className:ee().ShopBreadcrumbs,children:[(0,Q.jsxs)("li",{className:ee().link,children:[(0,Q.jsx)(g(),{href:"/",children:n("home")}),(0,Q.jsx)(X.Z,{width:14,height:14})]}),(0,Q.jsxs)("li",{className:ee().link,children:[(0,Q.jsx)(g(),{href:"/shops",children:n("shops")}),(0,Q.jsx)(X.Z,{width:14,height:14})]}),(0,Q.jsx)("li",{className:ee().link,children:t.name})]})},en=n(90993),es=n(60376),er=n.n(es),ei=n(60057);function ea(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,s)}return n}function eo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ea(Object(n),!0).forEach(function(t){(0,s.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ea(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ec=function(e){var t,n=e.category,s=e.isNotVisible,r=(0,d.useRouter)();return(0,Q.jsx)(g(),{className:er().Category,style:{visibility:void 0!==s&&s?"hidden":"unset"},href:"".concat(r.asPath.split("?")[0],"/").concat(null===(t=n.fullPath)||void 0===t?void 0:t.split("/").slice(1).join("/")),children:n.name})},el=function(e){var t=e.categories,n=(0,d.useRouter)(),s=(0,r.useState)(!1),i=s[0],a=s[1];(0,r.useEffect)(function(){var e=function(){a(!1)};return window.addEventListener("scroll",e),function(){window.removeEventListener("scroll",e)}},[]);var o={trigger:["click"],overlay:(0,Q.jsx)(function(e){var t=e.categories;return(0,Q.jsx)("ul",{className:er().HiddenCategoriesDropdown,children:t.map(function(e){return(0,Q.jsx)("li",{className:er().category,children:(0,Q.jsx)(g(),{href:"".concat(n.asPath,"/").concat(e.alias),children:e.name})},e.id)})})},{categories:t}),visible:i,onOverlayClick:function(){return a(!1)},onVisibleChange:function(e){a(e)},placement:"bottomRight"};return(0,Q.jsx)(Q.Fragment,{children:(0,Q.jsx)(ei.Z,eo(eo({},o),{},{children:(0,Q.jsx)("button",{className:er().HiddenCategoriesDropdownBtn,children:(0,Q.jsx)(en.Z,{})})}))})},ed=function(e){var t=e.categories,n=(0,r.useState)([]),s=n[0],i=n[1],a=(0,r.useState)([]),o=a[0],c=a[1],l=(0,x.i)().isMobile;(0,r.useEffect)(function(){i([]),c([])},[t]);var d=(0,r.useCallback)(function(e){if(l)i(t);else if(null!==e){var n,s=6;for(n=0;n<e.children.length;n++){var r=e.children[n].clientWidth+16;if(s+r<e.getBoundingClientRect().width-34)s+=r;else break}i(t.slice(0,n)),c(t.slice(n))}},[t]);return 0===s.length?(0,Q.jsx)("ul",{className:er().ShopTopCategories,ref:d,children:t.map(function(e){return(0,Q.jsx)("li",{children:(0,Q.jsx)(ec,{category:e,isNotVisible:!0})},e.id)})}):(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)("ul",{className:er().ShopTopCategories,children:s.map(function(e){return(0,Q.jsx)("li",{children:(0,Q.jsx)(ec,{category:e})},e.id)})}),o.length>0&&(0,Q.jsx)(el,{categories:o})]})},eu=n(74594);n(35144),n(88746);var ep=n(71129),eh=n(38446),ef=n(94102),em=n(15154),ev=n(66596),eg=n(5305),ej=n(31577),eb=n.n(ej);function ex(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,s)}return n}function e_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ex(Object(n),!0).forEach(function(t){(0,s.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ex(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ek=c()(function(){return Promise.all([n.e(2117),n.e(7421),n.e(9502),n.e(1175),n.e(1035),n.e(5383)]).then(n.bind(n,12309)).then(function(e){return e.Layout})},{ssr:!1,loadableGenerated:{webpack:function(){return[12309]}}}),ey=!0,eN=function(e){var t=e.shop,n=(0,d.useRouter)(),i=(0,w.Qf)(),o=(0,m.I0)(),c=(0,m.v9)(i.User.getUser),u=(0,m.v9)(i.Basket.getBasket),h=(0,m.v9)(i.Basket.getBasketOrderMode),v=(0,m.v9)(i.shops.getSelected),G=(0,m.v9)(i.User.getDefaultAddress),H=(0,j.$)().t,W=(0,y.s)({item:t,type:l.EntityType.Supplier,SupplierType:t.type}),q=W.changeFavorite,z=W.isFavorite,V=(0,_.Z)(t),K=V.isPickUpEnabled,$=V.selectedBranch,X=V.togglePickup,J=V.openSelectSupplierBranchModal,ee=V.processEnablePickupAfterLogin,en=V.handleRequestToChangeOrderMode,es=(0,x.i)(),er=es.isMobile,ei=es.isTablet,ea=es.isMiddle,eo=es.isLarge,ec=(0,m.v9)(i.Basket.isGroupOrder),el=(0,m.v9)(i.Basket.selectIsOpenBasket),ej=t.rating>=M.tu,ex=o.modal,ey=ex.openModal,eN=(ex.closeAllModal,ex.closeModal);(0,r.useEffect)(function(){o.Basket.getBasketOrderMode();var e=(0,S.o)(n.asPath);setTimeout(function(){if("login"===e.from&&Number(e.enablePickup)&&null!=c&&c.id){var s=t.branches.filter(function(e){return e.isPickupCooperation});if(1===s.length)en({isPickUp:!0,restaurant:e_(e_({},t),{},{branches:t.branches.filter(function(e){return e.isPickupCooperation})}),branchId:t.branches[0].branchId});else if(c.addresses.length){var r=c.addresses.filter(function(e){return e.defaultShippingAddress})[0];(0,C.$f)((0,em.Tb)({supplierId:t.id,lat:r.latitude,lng:r.longitude})).then(function(e){J({restaurant:e_(e_({},t),{},{branches:s}),branches:e.data,showDistance:!0,onSaveCb:function(e){en({isPickUp:!0,restaurant:e_(e_({},t),{},{branches:s}),branchId:e})}})})}else ee({restaurant:e_(e_({},t),{},{branches:s}),isPickUp:!0});n.replace((0,S.v)(n.asPath,["from","enablePickup"]))}},1001)},[null==c?void 0:c.id]),(0,r.useEffect)(function(){null!==v&&v.isClosed&&o.modal.openModal({modalId:"restaurant-closed-modal",props:{shouldDisableGlobalScroll:!0,type:"shop",info:v,openDate:new Date(v.openDate).toISOString()}})},[v]),(0,r.useEffect)(function(){o.shops.setShop({shop:t}),o.searchForm.setQuery(n.query.search)},[o,t,n]),(0,r.useEffect)(function(){o.Basket.getBasketOrderMode();var e=(0,S.o)(n.asPath);setTimeout(function(){if("login"===e.from&&Number(e.enablePickup)&&null!=c&&c.id){var s=t.branches.filter(function(e){return e.isPickupCooperation});if(1===s.length)en({isPickUp:!0,restaurant:e_(e_({},t),{},{branches:t.branches.filter(function(e){return e.isPickupCooperation})}),branchId:t.branches[0].branchId});else if(c.addresses.length){var r=c.addresses.filter(function(e){return e.defaultShippingAddress})[0];(0,C.$f)((0,em.Tb)({supplierId:t.id,lat:r.latitude,lng:r.longitude})).then(function(e){J({restaurant:e_(e_({},t),{},{branches:s}),branches:e.data,showDistance:!0,onSaveCb:function(e){en({isPickUp:!0,restaurant:e_(e_({},t),{},{branches:s}),branchId:e})}})})}else ee({restaurant:e_(e_({},t),{},{branches:s}),isPickUp:!0});n.replace((0,S.v)(n.asPath,["from","enablePickup"]))}},1001)},[null==c?void 0:c.id]),(0,r.useEffect)(function(){null!==v&&v.isClosed&&o.modal.openModal({modalId:"restaurant-closed-modal",props:{shouldDisableGlobalScroll:!0,type:"shop",info:v,openDate:new Date(v.openDate).toISOString()}})},[v]),(0,r.useEffect)(function(){return o.shops.setShop({shop:t}),n.query.search&&o.searchForm.setQuery(n.query.search),function(){o.searchForm.setQuery(""),o.searchForm.setLoading(!1),o.searchForm.clearAllProducts(),o.searchForm.setOpen(!1),o.searchForm.updateMobileSearchOpen(!1)}},[o,t,n]),(0,r.useEffect)(function(){G&&o.shops.fetchShop({alias:n.query.alias})},[G]);var ew=function(e){if(ec)ey({modalId:"error-modal",props:{description:H("pickupIsUnavailable.title"),info:H("pickupIsUnavailable.changeMode"),buttonText:H("good"),buttonOnClick:eN}});else{var n,s,r,i;if(null!==(n=u.basketList)&&void 0!==n&&null!==(s=n.sessionBaskets)&&void 0!==s&&s.length){if(null===(r=u.basketList)||void 0===r?void 0:null===(i=r.sessionBaskets)||void 0===i?void 0:i.some(function(e){return e.basket.some(function(e){return e.id!==(null==t?void 0:t.id)})})){if(null==t||!t.isPickupCooperation)return;ey({modalId:"error-pickUp-modal",props:{orderMode:1===h?2:1,restaurant:t,description:"res.messages[0].body",buttonText:H("ok")}})}else X({isPickUp:e,restaurant:e_(e_({},t),{},{branches:t.branches.filter(function(e){return e.isPickupCooperation})})})}else X({isPickUp:e,restaurant:e_(e_({},t),{},{branches:t.branches.filter(function(e){return e.isPickupCooperation})})})}};return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(a(),{children:[(0,N.Do)(t,"name")&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)("title",{children:t.name}),(0,Q.jsx)("meta",{name:"twitter:title",content:t.name}),(0,Q.jsx)("meta",{property:"og:title",content:t.name})]}),(0,N.Do)(t,"description")&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)("meta",{name:"description",content:(0,N.jW)(t.description)}),(0,Q.jsx)("meta",{property:"og:description",content:(0,N.jW)(t.description)}),(0,Q.jsx)("meta",{name:"twitter:description",content:(0,N.jW)(t.description)})]}),(0,N.Do)(t,"keywords")&&(0,Q.jsx)("meta",{name:"keywords",content:t.keywords}),(0,Q.jsx)("meta",{name:"twitter:image",content:(0,N.Hm)(t.imagesPaths.large)}),(0,Q.jsx)("meta",{property:"og:image",content:(0,N.Hm)(t.imagesPaths.large)}),(0,Q.jsx)("meta",{property:"og:url",content:(0,N.Fi)(n.asPath)}),(0,Q.jsx)("link",{rel:"canonical",href:(0,N.Fi)(n.asPath)}),["hy-AM","en-GB","ru-RU"].map(function(e){return(0,Q.jsx)("link",{rel:"alternate",hrefLang:e,href:(0,N.Fi)("/".concat(e).concat(n.asPath))},e)})]}),(0,Q.jsxs)(ek,{customLayoutClassName:f()(eb().Shop,(0,s.Z)({},eb().withGroupOrder,ec&&(ea||eo))),hasFooter:!0,hasHeader:ea||eo,children:[er||ei?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(Y,{shop:t}),(0,Q.jsx)(U.D,{restaurant:t,isForShop:!0})]}):(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(et,{shop:{name:t.name}}),(0,Q.jsxs)("div",{className:eb().header,style:{"--bg-image":"url(".concat((0,P.N)(t.coverImage),")")},children:[(0,Q.jsx)(p(),{src:(0,P.N)(t.imagesPaths.large),width:84,height:84,alt:t.name,className:eb().logo}),(0,Q.jsxs)("div",{className:eb().info,children:[(0,Q.jsx)("h1",{className:eb().name,children:t.name}),(0,Q.jsxs)("div",{className:eb().props,children:[(0,Q.jsxs)(g(),{href:"/review/".concat(t.alias),className:eb().rating,children:[(0,Q.jsx)(B.Z,{width:24,height:24,fill:ej?"#f6b522":"#FFF"}),(0,Q.jsx)("span",{className:eb().value,children:t.rating})]}),(0,Q.jsxs)("div",{className:eb().workingTime,children:[(0,Q.jsx)(O.Z,{width:24,height:24,fill:"#FFF"}),(0,Q.jsxs)("span",{className:eb().value,children:[t.opensAt," - ",t.closesAt]})]}),+t.priceCategory>0&&(0,Q.jsxs)("div",{className:eb().priceCategory,children:[(0,Q.jsx)("span",{className:f()((0,s.Z)({},eb().active,t.priceCategory>=1)),children:"֏"}),(0,Q.jsx)("span",{className:f()((0,s.Z)({},eb().active,t.priceCategory>=2)),children:"֏"}),(0,Q.jsx)("span",{className:f()((0,s.Z)({},eb().active,3===t.priceCategory)),children:"֏"})]})]})]}),(0,Q.jsxs)("div",{className:eb().meta,children:[(0,Q.jsxs)("div",{className:f()("restaurant-header__footer-actions-pickup",(0,s.Z)({},"restaurant-header__footer-actions-pickup--enabled",null==t?void 0:t.isPickupCooperation)),onClick:function(){null!=t&&t.isPickupCooperation?ew(!K):ew(!1)},children:[(0,Q.jsx)("div",{title:"Delivery",children:(0,Q.jsx)(eg.Z,{width:"22",height:"22",fill:"#847e7b"})}),(0,Q.jsx)(eh.z,{text:K?H("pickUp"):H("delivery"),className:f()("restaurant-header__footer-actions-pickup_btn",{"restaurant-header__footer-actions-pickup_btn-on":K,"restaurant-header__footer-actions-pickup_btn-off":!K}),preIcon:K?(0,Q.jsx)(ev.Z,{width:"22",height:"22",fill:"#36373c"}):(0,Q.jsx)(eg.Z,{width:"22",height:"22",fill:"#36373c"})}),(0,Q.jsx)("div",{title:"Pickup",className:f()((0,s.Z)({},"restaurant-header__footer-actions-pickup_btn--disabled",!(null!=t&&t.isPickupCooperation))),children:(0,Q.jsx)(ev.Z,{width:"22",height:"22",fill:"#847e7b"})})]}),(0,Q.jsx)(R._,{branches:null==t?void 0:t.branches}),(0,Q.jsx)("button",{className:f()(eb().addToFavoritesBtn,(0,s.Z)({},eb().isFavorite,z)),onClick:function(){c?q():(o.modal.closeAllModal(),o.modal.openModal({modalId:"login-modal",props:{shouldDisableGlobalScroll:!0,actionAfterAuth:M.ox.ADD_PRODUCT_TO_FAVORITES,itemInfo:{id:t.id,type:t.type}}}))},children:z?(0,Q.jsx)(F.Z,{width:38,height:38}):(0,Q.jsx)(Z.Z,{width:38,height:38})})]})]})]}),(0,Q.jsx)("div",{className:f()(eb().categories,(0,s.Z)({},eb().isGroupOrder,ec)),children:(0,Q.jsx)(ed,{categories:t.catalogsPlaceholder.map(function(e){return e.category})})}),K&&t.id===h.supplierId&&(0,Q.jsxs)("div",{className:eb().pickupArea,children:[(0,Q.jsx)("h2",{className:eb().pickupTitle,children:H("pickUpNearby")}),(0,Q.jsxs)("div",{className:eb().pickupDistanceAndBranch,children:[!(er||ei)&&(0,Q.jsx)(b.Z,{placement:"bottom",trigger:"hover",zIndex:99999,overlay:(0,Q.jsx)("div",{className:eb().distanceTooltip,children:(0,Q.jsxs)("p",{children:[H("distanceInfo.tooltip.baseInfo"),(0,Q.jsx)("span",{className:"fw-600",children:H("distanceInfo.tooltip.defaultPoint")})]})}),children:(0,Q.jsx)("div",{className:eb().distanceBlock,children:(0,Q.jsx)(eu.Z,{distance:(0,D.metersToKilometers)(null==$?void 0:$.distance)})})}),(0,Q.jsx)(ep.Z,{restaurantName:t.name,restaurantAddress:null==$?void 0:$.addressName,onClick:function(){var e=t.branches.filter(function(e){return e.isPickupCooperation});e.length>1&&J({restaurant:e_(e_({},t),{},{branches:e}),showDistance:!0,selectedBranchId:null==$?void 0:$.branchId,onSaveCb:function(e){(0,C.$f)((0,ef.s1)({orderMode:l.OrderMode.PICK_UP,branchId:e,changeBasket:!0,supplierId:t.id}))}})}})]})]}),t.catalogs.length>0?(0,Q.jsx)(L.g,{externalCatalogs:t.catalogs,skeleton:null}):(0,Q.jsx)("div",{className:eb().catalogsPlaceholder,children:t.catalogsPlaceholder.map(function(e){var n,s,i,a=e.category,o=e.products;return(0,Q.jsxs)(r.Fragment,{children:[(0,Q.jsx)(E.Z,{data:{alias:"/shops/".concat(null==t?void 0:t.alias,"/").concat(null!=a&&a.fullPath?null==a?void 0:null===(n=a.fullPath)||void 0===n?void 0:null===(s=n.split("/"))||void 0===s?void 0:null===(i=s.slice(1))||void 0===i?void 0:i.join("/"):"")},config:{alt_title:a.name,manufacturer_link:""},cssClass:"",padding:0}),(0,Q.jsx)("div",{className:eb().slider,children:(0,Q.jsx)(A.Z,{padding:18,config:{no_border:1},data:o})})]},a.id)})}),(er||ei)&&el&&(0,Q.jsx)(I.Z,{tablet:er||eo}),(er||ei)&&(0,Q.jsx)(T.Z,{setShowHeader:void 0}),(0,Q.jsx)(k._,{})]})]})}},66417:function(e,t,n){"use strict";n.d(t,{Do:function(){return s},Fi:function(){return i},Hm:function(){return a},jW:function(){return r}});var s=function(e,t){return"object"==typeof e&&t in e&&"string"==typeof e[t]},r=function(e){return e.replace(/(<([^>]+)>)/gi,"")},i=function(e){return"".concat("https://buy.am").concat(e)},a=function(e){return"".concat("https://buy.am","/").concat(e)}},20468:function(e,t,n){"use strict";n.d(t,{o:function(){return r},v:function(){return i}});var s=n(16835),r=function(e){var t={},n=e.split("?")[1];return n&&n.split("&").forEach(function(e){var n=e.split("="),r=(0,s.Z)(n,2),i=r[0],a=r[1];t[i]=decodeURIComponent(a||"")}),t},i=function(e,t){var n={},r=e.split("?"),i=r[0];r.length>1&&r[1].split("&").forEach(function(e){var r=e.split("="),i=(0,s.Z)(r,2),a=i[0],o=i[1];t.includes(a)||(n[a]=decodeURIComponent(o||""))});var a=i,o=Object.keys(n);return o.length>0&&(a+="?"+o.map(function(e){return"".concat(e,"=").concat(n[e])}).join("&")),a}},80633:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/shops/[alias]",function(){return n(839)}])},79213:function(e){e.exports={ShopBreadcrumbs:"ShopBreadcrumbs_ShopBreadcrumbs__tUdq8",link:"ShopBreadcrumbs_link__ALBSB"}},90162:function(e){e.exports={ShopMobileTopBar:"ShopMobileTopBar_ShopMobileTopBar__DRV38",goBackBtn:"ShopMobileTopBar_goBackBtn__TgVpE",addToFavoritesBtn:"ShopMobileTopBar_addToFavoritesBtn__BkKzA",searchInputWrapper:"ShopMobileTopBar_searchInputWrapper__ki8pR",searchIcon:"ShopMobileTopBar_searchIcon__XCYDr",searchInput:"ShopMobileTopBar_searchInput__LjEC9"}},60376:function(e){e.exports={ShopTopCategories:"ShopTopCategories_ShopTopCategories__sjPiq",Category:"ShopTopCategories_Category__wFI2i",HiddenCategoriesDropdownBtn:"ShopTopCategories_HiddenCategoriesDropdownBtn__wkpn5",HiddenCategoriesDropdown:"ShopTopCategories_HiddenCategoriesDropdown__CLpjQ",category:"ShopTopCategories_category__ee8ME"}},31577:function(e){e.exports={Shop:"Shop_Shop__h9xPr",withGroupOrder:"Shop_withGroupOrder__rvilR",pickupArea:"Shop_pickupArea__eDeAk",pickupTitle:"Shop_pickupTitle__KiNtU",pickupDistanceAndBranch:"Shop_pickupDistanceAndBranch__4qK8H",distanceBlock:"Shop_distanceBlock__mjF4B",catalogsPlaceholder:"Shop_catalogsPlaceholder__A3wvU",slider:"Shop_slider__INWlF",header:"Shop_header__D8aZ_",logo:"Shop_logo__kaYio",info:"Shop_info__1QWrU",name:"Shop_name___M3FW",props:"Shop_props__T7Vyw",rating:"Shop_rating__fUy3S",workingTime:"Shop_workingTime__fho8_",priceCategory:"Shop_priceCategory__WRtvK",value:"Shop_value__pzO7M",active:"Shop_active__cGbN2",meta:"Shop_meta__eATvE",addToFavoritesBtn:"Shop_addToFavoritesBtn__MnfMe",isFavorite:"Shop_isFavorite__SM8Y_",categories:"Shop_categories__aU_Dt",isGroupOrder:"Shop_isGroupOrder__4Cx3c"}}},function(e){e.O(0,[7433,1664,9072,6964,2442,5557,3825,4201,7051,9460,7448,3869,2640,4450,7741,5864,9469,3344,9774,2888,179],function(){return e(e.s=80633)}),_N_E=e.O()}]);