(window.webpackJsonp=window.webpackJsonp||[]).push([[175],{1147:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.YandexTarget=void 0,function(t){t.FIRST_CHOICE_ADDRESS="first-choice-address",t.ADD_TO_BASKET="Add-to-basket",t.GO_TO_CART="go-to-cart",t.ORDER_PROCESSING="order-processing",t.CHOICE_PAYMENT="choice_payment",t.SAVE_ORDER="save_order",t.TELEGRAM_START="telegram-start",t.TELEGRAM_END="telegram-end",t.UNIBELL_START="unibell-start",t.UNIBELL_END="unibell-end",t.SORTIROVKA="sortirovka",t.DOPPRODAJI="dopprodaji",t.OCENKAPOPAPNACHALO="ocenkapopapnachalo",t.OCENKAPOPAPZAKRULI="ocenkapopapzakruli",t.INSTALL_APP_ANDROID_BUTTON_CLICK="install_app_android_button_click",t.INSTALL_APP_IOS_BUTTON_CLICK="install_app_ios_button_click",t.AUTHORIZED="authorized",t.NOT_AUTHORIZED="not-authorized",t.SHOW_AUTHORIZATION_MODAL_IN_CART="show-authorization-modal-in-cart",t.LOGGED_IN_CART="logged-in-cart",t.EDIT_QUANTITY_PRODUCT_IN_CART="edit-quantity-product-in-cart",t.REGISTER_BONUS_CARD_IN_CART="register-bonus-card-in-cart",t.CHANGE_DELIVERY_DATE_IN_CARTCHANGE_DELIVERY_DATE_IN_CART="change-delivery-date-in-cartchange-delivery-date-in-cart",t.CHANGE_DELIVERY_TIME_IN_CART="change-delivery-time-in-cart",t.PAID_BY_BONUS_IN_CART="paid-by-bonus-in-cart",t.ORDER_CASH_PAYMENT_TYPE="order-cash-payment-type",t.ORDER_QR_PAYMENT_TYPE="order-qr-payment-type",t.ORDER_ONLINE_PAYMENT_TYPE="order-online-payment-type",t.WHATSAPP_REVVY="whatsapp-revvy",t.SMS="sms",t.DONT_FORGET_TOP="dont-forget-top",t.DONT_FORGET_BOTTOM="dont-forget-bottom",t.SMS_START="sms-start",t.SMS_END="sms-end",t.WHATSAPP_START="whatsapp-start",t.WHATSAPP_END="whatsapp-end",t.WHATSAPP_REVVY_START="whatsapp-revvy-start",t.WHATSAPP_REVVY_END="whatsapp-revvy-end",t.START_COOK="start_cook",t.SEARCH="search"}(e.YandexTarget||(e.YandexTarget={}))},1255:function(t,e,r){var content=r(1329);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(12).default)("7f7cd980",content,!0,{sourceMap:!1})},1328:function(t,e,r){"use strict";r(1255)},1329:function(t,e,r){var n=r(11)(!1);n.push([t.i,'.main-banner[data-v-60b4b00f]{padding:16px 0}.swiper-container[data-v-60b4b00f]{max-height:366px;overflow:hidden;margin-bottom:8px}.main-banners-swiper[data-v-60b4b00f]{max-width:100vw;display:flex}.swiper-slide[data-v-60b4b00f]{display:flex;align-items:center;justify-content:center;border-radius:16px;overflow:hidden;max-width:252px;height:240px}.banner-link[data-v-60b4b00f]{color:inherit;text-decoration:none}.banner-image[data-v-60b4b00f],.banner-images[data-v-60b4b00f],.banner-link[data-v-60b4b00f]{width:100%;height:100%}.banner-image[data-v-60b4b00f]{-o-object-fit:cover;object-fit:cover}.banner-image_desktop[data-v-60b4b00f]{display:none}.banner-navigation[data-v-60b4b00f]{display:flex;align-items:center;justify-content:center;grid-gap:8px;gap:8px}.swiper-pagination[data-v-60b4b00f]{display:flex;position:static;align-items:center;grid-gap:4px;gap:4px;padding:0 6px}.swiper-pagination[data-v-60b4b00f] .swiper-pagination-bullet-active{width:24px;height:8px;background:var(--system-mono-900-alfa60);position:relative;border-radius:9999px;overflow:hidden}.swiper-pagination[data-v-60b4b00f] .swiper-pagination-bullet-active:after{content:"";position:absolute;height:100%;top:0;left:0;background:var(--system-mono-900);border-radius:9999px;animation:poehali-data-v-60b4b00f 15s alternate}.swiper-slide-next[data-v-60b4b00f],.swiper-slide-prev[data-v-60b4b00f]{opacity:.5}@media(min-width:375px){.swiper-slide[data-v-60b4b00f]{max-width:304px;height:290px}.main-banners-swiper[data-v-60b4b00f]{max-width:unset}}@media(min-width:1024px){.swiper-slide[data-v-60b4b00f]{max-width:1172px;height:366px;border-radius:32px}.main-banners-swiper[data-v-60b4b00f]{max-width:unset}.banner-image[data-v-60b4b00f]{height:auto;-o-object-fit:unset;object-fit:unset}.banner-image_mobile[data-v-60b4b00f]{display:none}.banner-image_desktop[data-v-60b4b00f]{display:block}}@keyframes poehali-data-v-60b4b00f{0%{width:0}to{width:100%}}',""]),t.exports=n},1422:function(t,e,r){"use strict";r.r(e);r(8),r(7),r(5),r(14),r(9),r(15);var n=r(2),o=(r(294),r(29),r(33),r(38),r(25),r(123),r(51),r(68),r(27),r(57),r(101)),c=(r(1326),r(1)),l=r(43),d=r(4),h=r(28),f=r(26),m=r(50),v=r(66),y=r.n(v),_=r(23);function w(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function C(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?w(Object(source),!0).forEach((function(e){Object(n.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):w(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var O={name:"MainBannerSlider",components:{GButton:f.default,ArrowBaseIcon:l.default,SwiperSlide:o.SwiperSlide,Swiper:o.Swiper},data:function(){return{Side:h.Side,Sizes:d.Sizes,ButtonTypes:m.ButtonTypes,swiperOptions:{slidesPerView:"auto",centeredSlides:!0,speed:1e3,loop:!0,Routes:_.Routes,navigation:{nextEl:".next-slide",prevEl:".prev-slide"},direction:"horizontal",autoplay:{delay:1e4,disableOnInteraction:!1},pagination:{el:".swiper-pagination",clickable:!0},breakpoints:{640:{spaceBetween:16},375:{spaceBetween:8}}}}},computed:C(C(C(C({},Object(c.mapGetters)("promo",["getBanners"])),Object(c.mapState)("promo",["banners"])),Object(c.mapGetters)("products",["getCategories","getProducts"])),{},{isManyBanners:function(){return this.banners&&this.banners.length>1}}),methods:{isRelativeUrl:function(t){return!!t&&t.startsWith("/")},getLink:function(t){var e=this.findProductByUrl(t.destination_url);if(e)return this.productLink(e);var r=this.isCategoryUrl(t.destination_url)?t.destination_url:_.Routes.LANDING+t.destination_url;return y.a.getNuxtLinkToPath(r,y.a.getCityIdFromVuex(this.$store))},getDestinationUrl:function(t){return t.destination_url?this.isRelativeUrl(t.destination_url)?this.getLink(t):t.destination_url:""},isCategoryUrl:function(t){return this.getCategories.map((function(t){return t.url})).includes(t)},findProductByUrl:function(t){var e=t.match(/\d/g);if(e){var r=Number(e.join(""));return this.getProducts.find((function(t){return t.id===r}))}},productLink:function(t){return y.a.getNuxtLinkToPath(this.$catalogRouter.getProductPath(t),y.a.getCityIdFromVuex(this.$store))},openProductPopup:function(t,e){var r=this;setTimeout((function(){t&&r.$store.dispatch("productPopup/showProductByPayload",{product:t}),r.$router.push(e)}),30)},goLink:function(t){if(t.destination_url)if(this.isRelativeUrl(t.destination_url)){var e=this.getLink(t);this.$catalogRouter.doesPathExist(y.a.cleanCityPath(e))&&this.$nuxt.$emit("scroll-to-path",e);var r=this.findProductByUrl(t.destination_url);if(r)return void this.openProductPopup(r,e);this.$router.push(e)}else window.open(t.destination_url,"_blank").focus()},getLayers:function(t){return t&&t.layers?t.layers:[]}}},x=(r(1328),r(0)),component=Object(x.a)(O,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"main-banner"},[r("div",{staticClass:"swiper-container"},[r("Swiper",{staticClass:"main-banners-swiper",attrs:{options:t.swiperOptions,"data-testid":"mainBanners"}},t._l(t.getBanners,(function(e,n){return r("SwiperSlide",{key:e.destination_url+n,staticClass:"swiper-slide"},[r("a",{staticClass:"banner-link",attrs:{href:t.getDestinationUrl(e)},on:{click:function(r){return r.preventDefault(),t.goLink(e)}}},t._l(t.getLayers(e),(function(n,o){return r("div",{key:o,staticClass:"banner-images"},[n.images.desktop_second?r("img",{staticClass:"banner-image banner-image_desktop",attrs:{src:n.images.desktop_second,alt:e.title,height:"366"}}):t._e(),t._v(" "),n.images.mobile_second?r("img",{staticClass:"banner-image banner-image_mobile",attrs:{src:n.images.mobile_second,alt:e.title,height:"290"}}):t._e()])})),0)])})),1)],1),t._v(" "),t.isManyBanners?r("div",{staticClass:"banner-navigation"},[r("GButton",{staticClass:"prev-slide",attrs:{view:t.ButtonTypes.CLEAR,size:t.Sizes.XS,"only-icon":"",width:"unset"},nativeOn:{click:function(t){t.stopPropagation()}}},[r("ArrowBaseIcon",{attrs:{size:t.Sizes.S}})],1),t._v(" "),r("div",{staticClass:"swiper-pagination"}),t._v(" "),r("GButton",{staticClass:"next-slide",attrs:{view:t.ButtonTypes.CLEAR,size:t.Sizes.XS,"only-icon":"",width:"unset"},nativeOn:{click:function(t){t.stopPropagation()}}},[r("ArrowBaseIcon",{attrs:{size:t.Sizes.S,rotate:t.Side.RIGHT}})],1)],1):t._e()])}),[],!1,null,"60b4b00f",null);e.default=component.exports;installComponents(component,{ArrowBaseIcon:r(43).default,GButton:r(26).default})},1466:function(t,e,r){var content=r(1592);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(12).default)("aa53c61e",content,!0,{sourceMap:!1})},1591:function(t,e,r){"use strict";r(1466)},1592:function(t,e,r){var n=r(11)(!1);n.push([t.i,'.main-page[data-v-5ea38454]{padding-top:62px}@media screen and (max-width:1279px){.main-page[data-v-5ea38454]{padding-top:54px}}.catalog[data-v-5ea38454]{padding:0 16px;position:relative;margin:0 auto;width:100vw}.js-category-observer[data-v-5ea38454]:last-child{padding-bottom:36px}.catalog-inter[data-v-5ea38454],.header-inter[data-v-5ea38454]{position:absolute;top:0;height:0}.main-top-line-wrap[data-v-5ea38454]{top:55px;z-index:90;position:sticky;background-color:var(--system-mono-100);display:flex;margin:0 -16px;transition:top .1s linear}.main-top-line-wrap__intersecting[data-v-5ea38454]{box-shadow:var(--shadow-fixed)}@media(max-width:1024px){.main-top-line-wrap__intersecting[data-v-5ea38454]{margin:-16px -16px 0}}@media(max-width:1279px){.main-top-line-wrap[\\:has\\(.menu-category-wrapper__is-scroll-up\\)][data-v-5ea38454]{top:125px}.main-top-line-wrap[data-v-5ea38454]:has(.menu-category-wrapper__is-scroll-up){top:125px}.main-top-line-wrap__show-mobile-banner[data-v-5ea38454]{top:130px}.main-top-line-wrap__show-mobile-banner[\\:has\\(.menu-category-wrapper__is-scroll-up\\)][data-v-5ea38454]{top:198px}.main-top-line-wrap__show-mobile-banner[data-v-5ea38454]:has(.menu-category-wrapper__is-scroll-up){top:198px}}.category-fix .main-top-line-wrap[data-v-5ea38454]:after{content:"";position:absolute;height:1px;width:100%;bottom:0;left:0;background-color:var(--system-mono-200)}.category-wrap[data-v-5ea38454]{margin:0 auto}@media(min-width:1920px){.category-wrap[data-v-5ea38454]{max-width:1920px}}.category-wrap.isMacOs[data-v-5ea38454]{padding-right:16px}@media(max-width:1023px){.category-wrap.isMacOs[data-v-5ea38454]{padding-right:0}}.hidden-text[data-v-5ea38454]{white-space:nowrap;text-indent:-9999px;height:0;margin:0;padding:0;display:block}.category-wrap__shadow[data-v-5ea38454]{box-shadow:0 4px 30px 0 #000}',""]),t.exports=n},1781:function(t,e,r){"use strict";r.r(e);r(8),r(7),r(14),r(15);var n=r(13),o=r(2),c=(r(16),r(5),r(110),r(20),r(57),r(9),r(25),r(123),r(48),r(17),r(1)),l=r(1582),d=r(66),h=r.n(d),f=r(61),m=r(155),v=r(18),y=r.n(v),_=r(1422),w=r(1519),C=r(60),O=r(170),x=r(306),P=r(305),T=r(1147),R=r(283);function S(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function I(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?S(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):S(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var E={name:"Mainsection",components:{ProductPopup:x.default,CategoryCatalog:w.default,MenuCategory:P.default,MainBannerSlider:_.default},layout:"catalog",data:function(){return{mobileBannerOpened:!1,allowChangeUrl:!0,observerCategory:null,observerBanner:null,blockAutoScrollOnce:!1,scrollInProcess:!1,windowHeight:null,offsetScroll:null,categoryPosition:void 0,categoryIndex:null,isIntersecting:!1}},computed:I(I(I(I(I(I(I(I({},Object(c.mapState)("products",["selectedCategory","products","viewOpacity","currentViewCategoryId"])),Object(c.mapGetters)("products",["getCategories"])),Object(c.mapState)("account",["showMobileAppBanner"])),Object(c.mapState)("delivery",["city"])),Object(c.mapGetters)("auth",["isLoggedIn"])),Object(c.mapState)("promo",["banners"])),Object(c.mapGetters)("meta",["isCatalog"])),{},{categoriesCatalog:function(){return this.getCategories.filter((function(t){return!t.featured}))},isShowBanners:function(){return!!this.banners.length},currentCatalogItem:function(){return this.getCatalogItemByRoutePath(this.$route.path)},isProductRoute:function(){var t;return(null===(t=this.currentCatalogItem)||void 0===t?void 0:t.type)===O.CatalogItemType.PRODUCT},categoryRef:function(){var t=this,e=this.categoriesCatalog.findIndex((function(e){return e.id===t.currentViewCategoryId}));return this.$refs.categoryCatalog[e].$refs.categoryRef},getTitle:function(){var t;return this.$t("foodDeliveryIn",{city:Object(l.cityIn)((null===(t=this.city)||void 0===t?void 0:t.name)||""),company:y.a.NAME})}}),methods:{isRouteCatalog:function(){return Object(m.isIndexPage)(this.$router.currentRoute)},initScrollPrevent:function(){var t=this;this.categoryPosition=this.categoryRef.getBoundingClientRect().top,document.addEventListener("scroll",this.preventScroll),setTimeout((function(){document.removeEventListener("scroll",t.preventScroll),t.categoryPosition=void 0}),100)},preventScroll:function(){this.categoryPosition&&(this.$scrollTo(this.categoryRef,0,{offset:-this.categoryPosition,duration:0}),this.categoryPosition=void 0),document.removeEventListener("scroll",this.preventScroll)},onScrollToPath:function(path){this.scrollToPath(path)},getCatalogItemByRoutePath:function(path){return this.$catalogRouter.getItemByPath(h.a.cleanCityPath(path))},allCategoriesMap:function(t){"function"==typeof t&&document.querySelectorAll(".js-category-observer").forEach((function(e){return t(e)}))},getBannerElement:function(){return document.querySelector(".js-main-slider")},connectCategoryObserver:function(){var t=this,e=new IntersectionObserver((function(e){e.forEach((function(e){if(e.isIntersecting&&!t.scrollInProcess){var r=e.target.querySelector(".js-category-elem"),n=null==r?void 0:r.id.match(/[0-9]+/);if(!n)return;var path=h.a.getNuxtLinkToPath(t.$catalogRouter.getCategoryPathById(n[0]),h.a.getCityIdFromVuex(t.$store));if(!path||path===t.$router.currentRoute.path)return;t.onCatalogScrollChangeURL(path)}}))}),{rootMargin:"-60% 0px -40% 0px",threshold:[0]});this.observerCategory=e,this.allCategoriesMap((function(t){return e.observe(t)}))},disconnectCategoryObserver:function(){var t=this;this.observerCategory&&(this.allCategoriesMap((function(e){return t.observerCategory.unobserve(e)})),this.observerCategory=null)},connectBannerObserver:function(){var t=this;this.observerBanner=new IntersectionObserver((function(e){e.forEach(function(){var e=Object(n.a)(regeneratorRuntime.mark((function e(r){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.allowChangeUrl||!r.isIntersecting||""===h.a.cleanCityPath(t.$router.currentRoute.fullPath,!0)){e.next=9;break}return e.prev=1,e.next=4,t.$router.replace(h.a.getNuxtLinkToPath("/",h.a.getCityIdFromVuex(t.$store)));case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1);case 9:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(t){return e.apply(this,arguments)}}())}),{rootMargin:"50px 0px 0px 0px",threshold:[1]}),this.getBannerElement()&&this.observerBanner.observe(this.getBannerElement())},disconnectBannerObserver:function(){this.observerBanner&&(this.getBannerElement()&&this.observerBanner.unobserve(this.getBannerElement()),this.observerBanner=null)},reconnectObservers:function(){this.disconnectBannerObserver(),this.disconnectCategoryObserver(),this.connectBannerObserver(),this.connectCategoryObserver()},onCatalogScrollChangeURL:function(path){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.allowChangeUrl){e.next=2;break}return e.abrupt("return");case 2:return t.blockAutoScrollOnce=!0,e.prev=3,e.next=6,t.$router.replace({path:path,query:t.$router.currentRoute.query});case 6:e.next=10;break;case 8:e.prev=8,e.t0=e.catch(3);case 10:t.categorySlide();case 11:case"end":return e.stop()}}),e,null,[[3,8]])})))()},categorySlide:function(){var t,e=this;(null===(t=this.currentCatalogItem)||void 0===t?void 0:t.type)===O.CatalogItemType.CATEGORY&&this.$nextTick((function(){var t,r=null===(t=document.querySelector("#swiper-category"))||void 0===t?void 0:t.swiper,n=document.querySelector(".categories__link.js-link-category_id-".concat(e.currentCatalogItem.id));n&&r&&r.slideTo(n.dataset.index,1e3)}))},emitOnProductPopupCloseFunction:function(){var t=this;this.isProductRoute&&this.$nuxt.$emit("popup-product-close-function",(function(){t.allowChangeUrl=!0,t.reconnectObservers()}))},showProductPopup:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.allowChangeUrl=!1,t.emitOnProductPopupCloseFunction(),e.next=4,t.$store.dispatch("productPopup/showProductByRoute",t.$route);case 4:case"end":return e.stop()}}),e)})))()},onRouteChange:function(){this.currentCatalogItem&&(this.currentCatalogItem.type===O.CatalogItemType.PRODUCT&&this.showProductPopup(),this.categorySlide())},scrollToCurrentPathCategoryItem:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.currentCatalogItem){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,t.scrollToCategoryItem(t.currentCatalogItem);case 4:case"end":return e.stop()}}),e)})))()},scrollToPath:function(path){var t=this.$catalogRouter.getItemByPath(h.a.cleanCityPath(path));t&&this.scrollToCategoryItem(t)},scrollToCategoryItem:function(t){var e=this,r=function(){};return r=t.type===O.CatalogItemType.CATEGORY?function(){return document.getElementById("category_id-".concat(t.id))}:function(){return document.getElementsByClassName("js-product_id-".concat(t.id))[0]},new Promise((function(t){setTimeout((function(){var n=r();n?(e.setDimensions(),e.$scrollTo(n,0,{offset:e.offsetScroll,cancelable:!1,force:!1,onDone:t})):t()}),1)}))},setDimensions:function(){this.$screen.width>1280?this.offsetScroll=-200:this.$screen.width>=1024?this.offsetScroll=-162:this.offsetScroll=this.showMobileAppBanner?-254:-280},scrollOnMounted:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.scrollToCurrentPathCategoryItem();case 2:t.$store.commit("products/setViewOpacity",1),(null===(r=t.currentCatalogItem)||void 0===r?void 0:r.type)!==O.CatalogItemType.PRODUCT&&t.reconnectObservers(),t.emitOnProductPopupCloseFunction();case 5:case"end":return e.stop()}}),e)})))()},checkDistance:function(){this.isIntersecting=this.$refs.categoryWrap&&this.$refs.categoryWrap.getBoundingClientRect().top<R.HEADER_HEIGHT}},watch:{$route:{handler:function(t,e){var r=this;e?this.onRouteChange():(this.categorySlide(),this.$nuxt.$once("on-catalog-categories-swiper-init",(function(){return r.categorySlide()}))),this.$store.dispatch("products/findCurrentViewCategoryId")},immediate:!0}},created:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.isProductRoute){e.next=3;break}return e.next=3,t.showProductPopup();case 3:case"end":return e.stop()}}),e)})))()},mounted:function(){var t=this;this.scrollOnMounted(),window.addEventListener("scroll",this.checkDistance),this.$nuxt.$on("scroll-to-path",this.onScrollToPath),this.$store.dispatch("order/gotoStep",C.ORDER_STEPS.ORDER),this.$store.commit("products/setViewOpacity",0),y.a.GET_CATALOG_IN_CLIENT&&this.$store.dispatch("products/loadClientCatalog",null,{root:!0}),setTimeout((function(){t.isLoggedIn?Object(f.sendYandexMetric)(T.YandexTarget.AUTHORIZED):Object(f.sendYandexMetric)(T.YandexTarget.NOT_AUTHORIZED)}),300)},beforeDestroy:function(){this.$nuxt.$off("scroll-to-path",this.onScrollToPath),this.catalogScrollTimeout&&(clearTimeout(this.catalogScrollTimeout),this.catalogScrollTimeout=null),window.removeEventListener("scroll",this.onCatalogScroll)}},A=(r(1591),r(0)),component=Object(A.a)(E,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"main-page",style:{opacity:t.viewOpacity}},[r("div",{staticClass:"header-inter js-header-inter"}),t._v(" "),t.isCatalog?r("h1",{staticClass:"hidden-text"},[t._v(t._s(t.getTitle))]):t._e(),t._v(" "),t.isShowBanners?r("MainBannerSlider"):t._e(),t._v(" "),r("ProductPopup"),t._v(" "),r("div",{staticClass:"catalog js-catalog"},[r("div",{staticClass:"catalog-inter js-catalog-inter"}),t._v(" "),r("div",{staticClass:"main-top-line-wrap",class:{"main-top-line-wrap__intersecting":t.isIntersecting,"main-top-line-wrap__show-mobile-banner":t.showMobileAppBanner}},[t.isRouteCatalog?r("MenuCategory",{attrs:{category:t.categoriesCatalog[0]},on:{startSorting:t.initScrollPrevent}}):t._e()],1),t._v(" "),r("div",{ref:"categoryWrap",staticClass:"category-wrap",class:{isMacOs:t.$device.isMacOS},attrs:{"data-testid":"mainCatalog"}},t._l(t.categoriesCatalog,(function(t){return r("CategoryCatalog",{key:t.id,ref:"categoryCatalog",refInFor:!0,staticClass:"js-category-observer",attrs:{category:t}})})),1)])],1)}),[],!1,null,"5ea38454",null);e.default=component.exports;installComponents(component,{MainBannerSlider:r(1422).default,ProductPopup:r(306).default,MenuCategory:r(305).default,CategoryCatalog:r(1519).default})}}]);