1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[436],{128:e=>{e.exports={wrapper:"Header_wrapper__oALdz",extraNav:"Header_extraNav__Y_E8F",extraNavList:"Header_extraNavList__ahokV",extraNavLink:"Header_extraNavLink__VaqPI",wrapperNoBanner:"Header_wrapperNoBanner__CDbCw",headerBanner:"Header_headerBanner__GiiM4"}},599:e=>{e.exports={wrapper:"styles_wrapper__MlkAy"}},1767:(e,t,n)=>{"use strict";n.d(t,{aN:()=>R,A5:()=>v,yv:()=>b,Z0:()=>k}),n(6029),n(5729);var o=n(7737);n(3245),n(2365),o.m8,o.pT,o.tP;var i=n(7724),a=n(1735);n(2203);var r=n(9514),s=n(4920),c=n(2756),l=n(2918),u=n(7320);function _(e){if(!e.includes("localhost"))return d(e)}let d=(0,r.A)((0,s.A)("."),(0,c.A)("."),(0,l.A)(2),(0,u.A)("."));var m=n(1589),p=n(5875),E=n(8954);(0,m.A)(p.A,(0,E.A)(0)),n(834),n(7002),n(8417),n(9043),n(1926),n(32),n(7893),n(3601),n(8829),a.default.div.withConfig({componentId:"sc-c3a2cb96-0"})(["",";padding:4px 8px;color:",";"],(0,i.XC)("text2"),(0,i.MF)("bw500")),n(6330),a.default.div.withConfig({componentId:"sc-761b0eff-0"})(["",";margin:0 0 20px;text-align:center;color:",";"],(0,i.XC)("text2"),(0,i.MF)("bw500")),a.default.a.withConfig({componentId:"sc-761b0eff-1"})(["",";cursor:pointer;color:",";"],(0,i.XC)("text2"),(0,i.MF)("primary")),a.default.div.withConfig({componentId:"sc-761b0eff-2"})(["display:flex;margin-top:8px;min-height:28px;position:relative;justify-content:center;"]),a.default.div.withConfig({componentId:"sc-8dff4809-0"})(["",";width:100%;max-width:362px;padding:32px 44px;border-radius:0 0 4px 4px;background:",";margin:40px 0;","{max-width:100%;padding:32px 0;box-shadow:none;}"],(0,i.aX)(300),(0,i.MF)("bw0"),(0,i.Hc)("mobile")),a.default.div.withConfig({componentId:"sc-8dff4809-1"})(["width:100%;padding-bottom:12px;"]),a.default.h2.withConfig({componentId:"sc-8dff4809-2"})(["",";margin:0 0 8px;text-align:center;color:",";"],(0,i.XC)("text2"),(0,i.MF)("bw500")),a.default.h1.withConfig({componentId:"sc-8dff4809-3"})(["",";margin:0 0 8px;text-align:center;color:",";"],(0,i.XC)("title2"),(0,i.MF)("bw700"));var T=n(655),O=n(523),f=n(243),S=n(5176),h=n(7834),g=n(5942),C=n(9737);let N=(0,T.lh)(),I=(0,T.lh)(),k=(0,T.EH)(),A=(0,T.EH)(),b=(0,T.EH)();(0,C.F)({effect:k,reset:N});let R=(0,T.y$)(!1),L=(0,T.y$)(null),v=(0,T.y$)(null),x=(0,T.y$)(null);R.on(I,()=>!0),R.reset(N),L.on(I,(e,t)=>t),L.reset(N),v.on(k.doneData,(e,t)=>t),v.reset(N),x.on(A.doneData,(e,t)=>t),x.reset(N),x.on(b.doneData,(e,t)=>t),N.watch(()=>{let e=_(location.hostname);f.erase(g.$.sessionTokenId,{domain:e})}),L.watch(e=>{if((0,h.O)()&&!(0,p.A)(e)){let t=_(location.hostname);f.set(g.$.sessionTokenId,e,{domain:t})}}),(0,O.sY)({from:k.done.map(({params:e,result:t})=>({...e,...t})),to:A}),k.use(S.wz),A.use(({token:e,role:t})=>"service"===t?S.r_({token:e}):S.Qx({token:e})),b.use(({token:e})=>S.r_({token:e}));let w=(0,T.lh)(),y=(0,T.lh)(),P=(0,T.lh)(),M=(0,T.lh)(),U=(0,T.y$)(null),K=(0,T.y$)(null);U.on(y,(e,t)=>t),U.reset(w),K.on(M,(e,t)=>t),K.reset(P)},2365:(e,t,n)=>{"use strict";n.d(t,{jF:()=>c,om:()=>l});var o=n(6029),i=n(5729),a=n(2074),r=n(7737),s=n(5667);function c({name:e,apiError:t,clearable:n,hideIcon:i,dataTestId:l,...u}){let[_,d,m]=(0,a.Mt)(e),p=d.error&&d.touched?d.error:void 0,E=n&&_.value?(0,o.jsx)(r.bm,{onClick:()=>m.setValue(""),cursor:"pointer"}):(0,o.jsx)(r.vj,{});return(0,o.jsx)(s.pd,{error:p||t,...u,icon:i?void 0:E,..._,dataTestId:l})}function l({name:e,apiError:t,dataTestId:n,...r}){let c=i.useRef(),[u,_,d]=(0,a.Mt)(e),m=c.current?void 0:u.onChange;i.useEffect(()=>{c.current=d.setValue},[d,m]);let p=_.error&&_.touched?_.error:void 0;return(0,o.jsx)(s.SS,{error:p||t,onMaskedValueChange:c.current,...r,...u,dataTestId:n,onChange:m})}},2699:(e,t,n)=>{"use strict";n.d(t,{q:()=>a});var o=n(6029);n(5729);var i=n(5564);let a=e=>(0,o.jsx)(i.Z,{data:(({name:e,url:t,description:n,serviceType:o,providerName:i="ÐÐРЮРÐÐÐÐТ",providerUrl:a,areaServed:r="RU"})=>({"@context":"https://schema.org","@type":"Service",name:e,url:t,description:n,...o?{serviceType:o}:{},provider:{"@type":"Organization",name:i,...a?{url:a}:{}},areaServed:r}))(e)})},3245:(e,t,n)=>{"use strict";n.d(t,{UU:()=>i.UU,tV:()=>i.tV,zu:()=>i.zu,cy:()=>i.cy,em:()=>i.em,S8:()=>i.S8,Pg:()=>i.Pg,oe:()=>i.oe,Ko:()=>i.Ko,Ez:()=>i.Ez,de:()=>i.de,Mg:()=>i.Mg,YG:()=>i.YG}),n(6029),n(5729),n(834);var o=n(1735),i=n(2958);
1n(7002);var a=n(7724);n(8829),o.default.div.withConfig({componentId:"sc-69ef3925-0"})(["position:relative;display:flex;flex-flow:column wrap;height:150px;max-height:150px;width:480px;& label{padding:8px 32px 8px 0px;}","{flex-flow:column;height:unset;max-height:unset;width:300px;& label{padding:10px 0px;}}"],(0,a.Hc)("tablet")),n(2365),n(6330),o.default.div.withConfig({componentId:"sc-47df975e-0"})(["","{min-height:calc(100vh - 90px);}"],(0,a.Hc)("tabletLc")),o.default.div.withConfig({componentId:"sc-47df975e-1"})(["",";color:",";"],(0,a.XC)("title2"),(0,a.MF)("bw700")),o.default.div.withConfig({componentId:"sc-47df975e-2"})(["display:flex;flex-direction:row;justify-content:space-between;padding-bottom:36px;"]),o.default.div.withConfig({componentId:"sc-d9d47aff-0"})(["position:relative;display:flex;flex-flow:row wrap;width:480px;& label{padding:8px 32px 8px 0px;}","{flex-flow:column;width:300px;& label{padding:10px 0px;}}"],(0,a.Hc)("tablet")),o.default.div.withConfig({componentId:"sc-601ca7a7-0"})(["","{min-height:calc(100vh - 90px);}"],(0,a.Hc)("tabletLc")),o.default.div.withConfig({componentId:"sc-601ca7a7-1"})(["",";color:",";"],(0,a.XC)("title2"),(0,a.MF)("bw700")),o.default.div.withConfig({componentId:"sc-601ca7a7-2"})(["display:flex;flex-direction:row;justify-content:space-between;padding-bottom:36px;"]),(0,o.default)("div").withConfig({componentId:"sc-8da3205d-0"})(["display:flex;align-items:center;margin-bottom:24px;"]),(0,o.default)("div").withConfig({componentId:"sc-8da3205d-1"})(["",";margin-right:20px;"],(0,a.XC)("text2")),(0,o.default)("div").withConfig({componentId:"sc-8da3205d-2"})(["",";margin-left:4px;"],(0,a.XC)("subtitle2")),(0,o.default)("div").withConfig({componentId:"sc-8da3205d-3"})(["display:grid;grid-template-columns:72px 1fr;grid-column-gap:8px;"]),n(1767),n(2364),o.default.div.withConfig({componentId:"sc-527b11ea-0"})([" ",";position:fixed;margin:40px 0 0 0;padding:20px 20px 20px 20px;background:",";z-index:2000;","{",";position:fixed;overflow:scroll;max-height:100vh;width:100%;top:0 !important;left:0 !important;margin:0;padding:70px 20px 20px 20px;background:",";z-index:1000;}"],(0,a.aX)(300),(0,a.MF)("bw0"),(0,a.Hc)("tabletLc"),(0,a.aX)(300),(0,a.MF)("bw0")),n(6760),n(7834),o.default.div.withConfig({componentId:"sc-cc0ad8f-0"})(["cursor:pointer;"])},5176:(e,t,n)=>{"use strict";n.d(t,{Qx:()=>r,r_:()=>s,wz:()=>a,kB:()=>l,Nt:()=>c});var o=n(8417),i=n(9043);function a({token:e}){return o.Y.get((0,i.OY)("user/info/",{auth_token:e})).then((0,i.bQ)()).catch((0,i.hi)())}function r({token:e}){return o.Y.get((0,i.OY)("customer/profile/view/",{auth_token:e})).then((0,i.bQ)()).catch((0,i.hi)())}function s({token:e}){return o.Y.get((0,i.OY)("service/profile/view/",{auth_token:e})).then((0,i.bQ)()).catch((0,i.hi)())}function c({countryId:e,regionId:t,cityId:n,token:a}){return o.Y.post("customer/location/update-location/",{auth_token:a,country_id:e,region_id:t,city_id:n}).then((0,i.mi)()).catch((0,i.hi)())}function l({cityId:e,token:t}){return o.Y.post("service/profile/set-city/",{auth_token:t,city_id:e}).then((0,i.mi)()).catch((0,i.hi)())}},5942:(e,t,n)=>{"use strict";n.d(t,{$:()=>i});var o=n(3601);let i={sessionTokenId:"auth_token",apiUrl:"https://api-frontend.uremont.com/v2",apiUrlV1:"https://api-frontend.uremont.com",buildId:o.env.APP_BUILD_ID,sentryDsn:o.env.APP_SENTRY_DSN,uremontOrigin:"https://uremont.com/",isProduction:!0,isSentryInit:"true"===o.env.APP_SENTRY_INIT,StaticImagePrefix:o.env.NEXT_FRANCHISE_URL_IMAGE_PREFIX}},6205:()=>{},6330:(e,t,n)=>{"use strict";var o=n(7724),i=n(1735);function a(e){return(0,i.css)(["","{","}"],(0,o.Hc)(e),r(e))}function r(e){return(0,i.css)(["padding-",":","px;"],(0,o._w)("direction","bottom"),(0,o._w)(e,4))}function s(e){return(0,i.css)(["","{","}"],(0,o.Hc)(e),c(e))}function c(e){return(0,i.css)(["& > :not(:last-child){margin-right:","px;}"],(0,o._w)(e))}function l(e){return(0,i.css)(["","{","}"],(0,o.Hc)(e),u(e))}function u(e){return(0,i.css)(["& > :not(:last-child){margin-bottom:","px;}"],(0,o._w)(e))}i.default.div.withConfig({componentId:"sc-ac6eafb2-0"})(["display:flex;flex-wrap:",";flex-grow:",";flex-basis:",";flex-shrink:",";align-items:",";justify-content:",";width:",";height:",";flex-direction:",";"],(0,o._w)("wrap"),(0,o._w)("grow"),(0,o._w)("basis"),(0,o._w)("shrink"),(0,o._w)("alignItems"),(0,o._w)("justifyContent"),(0,o.dl)("fullWidth","100%"),(0,o.dl)("fullHeight","100%"),(0,o.dl)("column","column","row")),n(5729),i.default.div.withConfig({componentId:"sc-9fe5ad39-0"})([""," "," "," "," "," ",""],(0,o.dl)("desktop",r("desktop")),(0,o.dl)("laptop",a("laptop")),(0,o.dl)("tabletLc",a("tabletLc")),(0,o.dl)("tablet",a("tablet")),(0,o.dl)("mobileLc",a("mobileLc")),(0,o.dl)("mobile",a("mobile"))),i.default.div.withConfig({componentId:"sc-a2a72734-0"})(["display:flex;flex-direction:row;"," "," "," "," "," ",""],(0,o.dl)("desktop",c("desktop")),(0,o.dl)("laptop",s("laptop")),(0,o.dl)("tabletLc",s("tabletLc")),(0,o.dl)("tablet",s("tablet")),(0,o.dl)("mobileLc",s("mobileLc")),(0,o.dl)("mobile",s("mobile"))),i.default.div.withConfig({componentId:"sc-26d80c0b-0"})(["display:flex;flex-direction:column;"," "," "," "," "," ",""],(0,o.dl)("desktop",u("desktop")),(0,o.dl)("laptop",l("laptop")),(0,o.dl)("tabletLc",l("tabletLc")),(0,o.dl)("tablet",l("tablet")),(0,o.dl)("mobileLc",l("mobileLc")),(0,o.dl)("mobile",l("mobile")))},7834:(e,t,n)=>{"use strict";function o(){return!0}n.d(t,{O:()=>o}),n(6029),n(5729)},8267:e=>{e.exports={wrapper:"ProfileMenuService_wrapper__7nJa4",link:"ProfileMenuService_link__tHBJA"}},8417:(e,t,n)=>{"use strict";n.d(t,{V:()=>s,Y:()=>r});var o=n(32),i=n.n(o),a=n(5942);let r=i().create({baseURL:a.$.apiUrl}),s=i().create({baseURL:a.$.apiUrlV1})}
1,8693:(e,t,n)=>{"use strict";n.d(t,{n:()=>a});let o="https://api-frontend.uremont.com",i="https://api-frontend.uremont.com/v2",a={getDescParts:`${o}/common/bid-desc-part/get-desc-parts/`,searchCity:`${o}/map/city/search-items/`,getBidList1:`${o}/common/default/bid-list/`,getMarkList:`${o}/car/mark/get-list/`,getRole:`${o}/user/user/info/`,getProfileCustomer:`${i}/customer/profile/view/`,getProfileService:`${i}/service/profile/view/`,getNotificationCount:`${o}/notification/get-count-unread/`,getCountryId:`${i}/common/default/get-country-id/`,getCountriesList:`${i}/map/country/get-list/`,getPopularCities:`${i}/map/city/get-popular-list/`,getBidList:`${i}/common/default/bid-list/`,getRecommendedServices:`${i}/homepage/recommended-service-list/`,getPublicationList:`${i}/homepage/publication-list/`,getCustomerLastReviewList:`${i}/homepage/customer-last-review-list/`,getTopWorkTypes:`${i}/homepage/top-work-types/`,getSeoPageData:`${i}/common/default/get-seo-page-data/`,getCartCount:`${i}/part/cart/get-user-cart/`,getChatCountCustomer:`${i}/customer/chat/get-count-unread/`,getChatCountService:`${i}/service/chat/get-count-unread/`,getSeoCityList:`${i}/common/seo/get-city-list/`,getSeoServicesByCity:`${i}/common/seo/get-services-by-city/`}},8719:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var o,i=((o={}).EIPOTEKA_IFRAME="eipoteka-iframe",o.NOT_FOUND_PAGE="not-found-page",o.NOT_FOUND_LINK="not-found-link",o.ADVANTAGES_SECTION="advantages-section",o.ADVANTAGES_WHY_LINK="advantages-why-link",o.FAQ_SECTION="faq-section",o.FAQ_ACCORDION="faq-accordion",o.PARTNERS_SECTION="partners-section",o.PARTNERS_SWIPER="partners-swiper",o.REQUEST_FORM="request-form",o.REQUEST_SUCCESS="request-success",o.REQUEST_NAME_INPUT="request-name-input",o.REQUEST_PHONE_INPUT="request-phone-input",o.REQUEST_EMAIL_INPUT="request-email-input",o.REQUEST_AGENT_TYPE_SELECT="request-agent-type-select",o.REQUEST_OFFER_AGREEMENT_CHECKBOX="request-offer-agreement-checkbox",o.REQUEST_PRIVACY_AGREEMENT_CHECKBOX="request-privacy-agreement-checkbox",o.REQUEST_SUBMIT_BUTTON="request-submit-button",o.AGENTS_STATS_SECTION="agents-stats-section",o.AGENTS_STATS_ITEM="agents-stats-item",o.AGENTS_HOW_IT_HELPS_SECTION="agents-how-it-helps-section",o.AGENTS_HOW_IT_HELPS_BLOCK="agents-how-it-helps-block",o.AGENTS_SCROLL_TO_REQUEST_SECTION="agents-scroll-to-request-section",o.AGENTS_SCROLL_TO_REQUEST_BUTTON="agents-scroll-to-request-button",o.STEPS_SECTION="steps-section",o.ALSO_READ_SECTION="also-read-section",o.ALSO_READ_LINK="also-read-link",o.ALSO_READ_KASKO_SECTION="also-read-kasko-section",o.ALSO_READ_KASKO_SLIDER="also-read-kasko-slider",o.ALSO_READ_KASKO_DOT="also-read-kasko-dot",o.APPS_BLOCK_SECTION="apps-block-section",o.APPS_BLOCK_APPSTORE_LINK="apps-block-appstore-link",o.APPS_BLOCK_GOOGLEPLAY_LINK="apps-block-googleplay-link",o.APPS_BLOCK_HUAWEI_LINK="apps-block-huawei-link",o.BENEFIT_CARD="benefit-card",o.FAQ_ITEM="faq-item",o.SLICK_CONTROLLER="slick-controller",o.SLICK_CONTROLLER_PREV="slick-controller-prev",o.SLICK_CONTROLLER_NEXT="slick-controller-next",o.BENEFITS_SECTION="benefits-section",o.BENEFITS_ITEM="benefits-item",o.BENEFITS_FOR_CUSTOMERS_SECTION="benefits-for-customers-section",o.BENEFITS_FOR_CUSTOMERS_ITEM="benefits-for-customers-item",o.BENEFITS_KASKO_SECTION="benefits-kasko-section",o.BENEFITS_KASKO_SLIDER="benefits-kasko-slider",o.BENEFITS_KASKO_DOT="benefits-kasko-dot",o.BLOG_BLOCK_SECTION="blog-block-section",o.BLOG_BLOCK_TABS_PANEL="blog-block-tabs-panel",o.BLOG_BLOCK_TAB="blog-block-tab",o.BLOG_BLOCK_PREVIEW="blog-block-preview",o.BLOG_BLOCK_PUBLICATION="blog-block-publication",o.CALCULATE_FOR_CUSTOMER_SECTION="calculate-for-customer-section",o.CALCULATE_FOR_CUSTOMER_TAB="calculate-for-customer-tab",o.CALCULATE_FOR_CUSTOMER_IPOTEKA_BUTTON="calculate-for-customer-ipoteka-button",o.CALCULATE_FOR_CUSTOMER_CHP_BUTTON="calculate-for-customer-chp-button",o.INSURANCE_TEMPLATE="insurance-template",o.CONTACTS_SECTION="contacts-section",o.CONTACTS_WHATSAPP_LINK="contacts-whatsapp-link",o.CONTACTS_PHONE_LINK="contacts-phone-link",o.CONTACTS_EMAIL_LINK="contacts-email-link",o.CONTACTS_AGENTS_SECTION="contacts-agents-section",o.CONTACTS_AGENTS_WHATSAPP_LINK="contacts-agents-whatsapp-link",o.CONTACTS_AGENTS_PHONE_LINK="contacts-agents-phone-link",o.EOSAGO_SECTION="eosago-section",o.EOSAGO_PLATE_INPUT="eosago-plate-input",o.EOSAGO_NEXT_BUTTON="eosago-next-button",o.EOSAGO_CHOOSE_MARK_BUTTON="eosago-choose-mark-button",o.EXTRA_BENEFIT
1S_SECTION="extra-benefits-section",o.FLOATING_BUTTON="floating-button",o.GET_MORE_SECTION="get-more-section",o.GET_MORE_HOW_IT_WORKS_BUTTON="get-more-how-it-works-button",o.GET_MORE_START_EARNING_BUTTON="get-more-start-earning-button",o.GUARANTEES_SECTION="guarantees-section",o.GUARANTEES_APPLY_BUTTON="guarantees-apply-button",o.HERO_FOR_AGENTS_SECTION="hero-for-agents-section",o.HERO_FOR_CUSTOMERS_SECTION="hero-for-customers-section",o.HERO_KASKO_SECTION="hero-kasko-section",o.HERO_KASKO_BUTTON="hero-kasko-button",o.INCOME_CALCULATOR_SECTION="income-calculator-section",o.INCOME_CALCULATOR_TYPE_BUTTON="income-calculator-type-button",o.INCOME_CALCULATOR_EARN_BUTTON="income-calculator-earn-button",o.RANGE_SLIDER_INPUT="range-slider-input",o.RANGE_SLIDER_EDIT_BUTTON="range-slider-edit-button",o.KASKO_FORM_SECTION="kasko-form-section",o.KASKO_FORM_SUCCESS="kasko-form-success",o.KASKO_FORM_FIO_INPUT="kasko-form-fio-input",o.KASKO_FORM_PHONE_INPUT="kasko-form-phone-input",o.KASKO_FORM_AGREEMENT_CHECKBOX="kasko-form-agreement-checkbox",o.KASKO_FORM_SUBMIT_BUTTON="kasko-form-submit-button",o.KASKO_FORM_FOR_CUSTOMERS_SECTION="kasko-form-for-customers-section",o.KASKO_FORM_FOR_CUSTOMERS_SUCCESS="kasko-form-for-customers-success",o.KASKO_FORM_FOR_CUSTOMERS_FIO_INPUT="kasko-form-for-customers-fio-input",o.KASKO_FORM_FOR_CUSTOMERS_PHONE_INPUT="kasko-form-for-customers-phone-input",o.KASKO_FORM_FOR_CUSTOMERS_AGREEMENT_CHECKBOX="kasko-form-for-customers-agreement-checkbox",o.KASKO_FORM_FOR_CUSTOMERS_AGREEMENT_LINK="kasko-form-for-customers-agreement-link",o.KASKO_FORM_FOR_CUSTOMERS_SUBMIT_BUTTON="kasko-form-for-customers-submit-button",o.FAQ_START_COOPERATION_BUTTON="faq-start-cooperation-button",o.EOSAGO_CALC_SECTION="eosago-calc-section",o.EOSAGO_CALC_IFRAME="eosago-calc-iframe",o.PARTNERS_HORIZONTAL_SECTION="partners-horizontal-section",o.PARTNERS_HORIZONTAL_SWIPER="partners-horizontal-swiper",o.PARTNERS_HORIZONTAL_SLIDE="partners-horizontal-slide",o.PRODUCTS_SECTION="products-section",o.PRODUCTS_ITEM="products-item",o.REVIEW_PREVIEW="review-preview",o.REVIEWS_SECTION="reviews-section",o.REVIEWS_SWIPER="reviews-swiper",o.REVIEWS_SLIDE="reviews-slide",o.REVIEWS_MODAL="reviews-modal",o.REVIEWS_MODAL_CLOSE="reviews-modal-close",o.REVIEWS_BLOCK_SECTION="reviews-block-section",o.SALARY_FOR_AGENTS_SECTION="salary-for-agents-section",o.SPECIAL_SERVICE_SECTION="special-service-section",o.SPECIAL_SERVICE_TABLET_SECTION="special-service-tablet-section",o.STEP_OSAGO_SECTION="step-osago-section",o.STEP_OSAGO_SECTION_ITEM="step-osago-section-item",o.STEPS_FOR_CUSTOMERS_SECTION="steps-for-customers-section",o.STEPS_FOR_CUSTOMERS_PHONE_LINK="steps-for-customers-phone-link",o.STEPS_FOR_CUSTOMERS_CALCULATE_LINK="steps-for-customers-calculate-link",o.STEPS_KASKO_SECTION="steps-kasko-section",o.VIDEO_REVIEWS_SECTION="video-reviews-section",o.VIDEO_REVIEWS_SWIPER="video-reviews-swiper",o.VIDEO_REVIEWS_SLIDE="video-reviews-slide",o)},8829:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var o,i=((o={}).HEADER="header",o.MOBILE_STORE_LINKS="mobile-store-links",o.MOBILE_STORE_APP_STORE="mobile-store-app-store",o.MOBILE_STORE_GOOGLE_PLAY="mobile-store-google-play",o.MOBILE_STORE_APP_GALLERY="mobile-store-app-gallery",o.BUTTON="button",o.BUTTON_CONTENT="button-content",o.APP_FOOTER="app-footer",o.OPEN_LIST="open-list",o.OPEN_LIST_BUTTON="open-list-button",o.OPEN_LIST_ITEM="open-list-item",o.MOBILE_CITIES="mobile-cities",o.MOBILE_CITIES_LINK="mobile-cities-link",o.DESKTOP_CITIES="desktop-cities",o.DESKTOP_CITIES_LINK="desktop-cities-link",o.APP_HEADER="app-header",o.APP_HEADER_BUTTON="app-header-button",o.HEADER_LINKS="header-links",o.HEADER_LINKS_COMMON="header-links-common",o.MAIN_HEADER_LINK="main-header-link",o.PHONE_LINK="phone-link",o.MOBILE_MENU="mobile-menu",o.MENU_BLOCK="menu-block",o.MENU_ITEM="menu-item",o.MENU_LINK_BADGE="menu-link-badge",o.MENU_LINK="menu-link",o.POPUP="popup",o.MAIN_SLIDER="main-slider",o.COMMON_TEMPLATE="common-template",o.UREMONT_TEMPLATE="uremont-template",o.BACK_BUTTON="back-button",o.COUNT="count",o.HINT="hint",o.INVISIBLE_LINK="invisible-link",o.RESPONSIVE_IMAGE="responsive-image",o.SEGMENT="segment",o.ICONED_LINK="iconed-link",o.ICONED_TEXT="iconed-text",o.COUNT_SELECTOR="count-selector",o.SELECT_BUTTON="select-button",o.APP_LINK="app-link",o.DOWNLOAD_MOBILE_APP="download-mobile-app",o.APP_STORE_
1LINK="app-store-link",o.GOOGLE_PLAY_LINK="google-play-link",o.ADVANTAGE="advantage",o.ADVANTAGE_LINK="advantage-link",o.ECOSYSTEM="ecosystem",o.BID_CARD="bid-card",o.LAST_BIDS="last-bids",o.LAST_BIDS_LINK="last-bids-link",o.REVIEW_CARD="review-card",o.REVIEW_TITLE_LINK="review-title-link",o.REVIEW_FEEDBACK_LINK="review-feedback-link",o.LAST_REVIEWS="last-reviews",o.LAST_REVIEWS_LINK="last-reviews-link",o.GEO_LOCATION="geo-location",o.CITY_SELECT="city-select",o.CITY_SELECT_BUTTON="city-select-button",o.CITY_SELECT_BUTTON_COUNTRY="city-select-button-country",o.COUNTRY_SELECT="country-select",o.LOCATION_CITY_SEARCH="location-city-search",o.LOCATION_CITY_SEARCH_BUTTON="location-city-search-button",o.LOCATION_CITY_SEARCH_DROPDOWN="location-city-search-dropdown",o.LOCATION_CONFIRM="location-confirm",o.LOCATION_CONFIRM_YES="location-confirm-yes",o.LOCATION_CONFIRM_CHANGE="location-confirm-change",o.LOCATION_COUNTRY_SEARCH="location-country-search",o.LOCATION_COUNTRY_SEARCH_BUTTON="location-country-search-button",o.LOCATION_COUNTRY_SEARCH_DROPDOWN="location-country-search-dropdown",o.LOCATION_POPULAR_CITIES="location-popular-cities",o.LOCATION_POPULAR_COUNTRIES="location-popular-countries",o.NEWS_CARD="news-card",o.NEWS_SECTION="news-section",o.NEWS_LINK="news-link",o.HERO_TITLE="hero-title",o.HERO_SECTION="hero-section",o.HERO_MAP_LINK="hero-map-link",o.SEARCH_FORM="search-form",o.SEARCH_FORM_WORK="search-form-work",o.SEARCH_FORM_YEAR="search-form-year",o.SEARCH_FORM_MARK="search-form-mark",o.SEARCH_FORM_MODEL="search-form-model",o.SEARCH_FORM_BUTTON="search-form-button",o.FORM_BOX="form-box",o.CONFIRM_CODE="confirm-code",o.CONFIRM_CODE_INPUT="confirm-code-input",o.CONFIRM_CODE_CHANGE_PHONE="confirm-code-change-phone",o.RESEND_CODE_BUTTON="resend-code-button",o.CARD="card",o.CARD_FEEDBACK_LINK="card-feedback-link",o.CARD_TITLE_LINK="card-title-link",o.CARD_PHONE_LINK="card-phone-link",o.MAP_CONTAINER="map-container",o.MAP_BUTTON="map-button",o.TOP_SERVICES="top-services",o.TEXT_LINK="text-link",o.WORK_TYPES="work-types",o.FORM="form",o.FORM_SUBMIT="form-submit",o.FORM_PHONE="form-phone",o)},8831:e=>{e.exports={wrapper:"ProfileMenuCustomer_wrapper__TPO7U",link:"ProfileMenuCustomer_link__39iBj"}},9043:(e,t,n)=>{"use strict";function o(e){return t=>{throw i(t,e)}}function i(e,t=null){let n=e.response?.data?.message;return n||("Network Error"===e.message?"Ðе ÑдалоÑÑ ÑоединиÑÑÑÑ Ñ ÑеÑвеÑом. ÐÑовеÑÑÑе наÑÑÑойки ÑеÑи":t||null)}function a(e,t=null){return e.response?.data?.errors??t}function r(){return e=>{let t=a(e);if(t)throw t;throw i(e)??e}}n.d(t,{xY:()=>O,hi:()=>r,OY:()=>d,bQ:()=>h,u1:()=>i,Yl:()=>a,mi:()=>f,Ot:()=>o,kB:()=>S});var s=n(1589),c=n(5875),l=n(5257),u=n(4642),_=n(4920);function d(e,t){return`${e}${p(Object.entries(t).reduce((e,[t,n])=>{if(m(n))return e;let o=Array.isArray(n)?`${t}=${n.join(`&${t}=`)}`:`${t}=${n}`;return e?`${e}&${o}`:`${e}${o}`},""))}`}let m=(0,s.A)(c.A,l.A),p=(0,u.A)(l.A,(0,_.A)("?"));var E=n(523),T=n(655);let O=e=>(0,E.K0)({effect:e,source:(0,T.y$)(""),mapParams:(e,t)=>({...e,token:t})});function f(){return e=>e.data}function S(e){return t=>{throw a(t,e)}}function h(e){return t=>{if(e){let n=t.data.data;return n?.[e]}return t.data.data}}},9290:(e,t,n)=>{"use strict";let o,i,a,r;n.d(t,{j:()=>ep});var s=n(6029),c=n(5729),l=n(7724),u=n(1735),_=n(8829);function d({isFranchise:e,header:t,children:n,footer:o}){return(0,s.jsxs)(m,{"data-testid":_.o.COMMON_TEMPLATE,isFranchise:e,children:[t,(0,s.jsx)(p,{children:n}),o]})}let m=u.default.div.withConfig({componentId:"sc-798b8270-0"})(["width:100%;display:block;min-height:100vh;padding-top:66px;background:",";",";span > svg{color:",";&:hover{color:",";}}"],(0,l.MF)("bw0"),e=>e.isFranchise?(0,u.css)(["","{padding-top:52px;}"],(0,l.Hc)("tabletLc")):(0,u.css)(["@media (max-width:1170px){padding-top:70px;}"]),(0,l.MF)("textSecondary"),(0,l.MF)("primaryDarker")),p=u.default.main.withConfig({componentId:"sc-798b8270-1"})(["width:100%;display:block;"]);var E=n(7893),T=n(5667),O=n(32),f=n.n(O),S=n(8693);let h=async({isShort:e=0}={})=>{try{let{data:t}=await f().get(S.n.getSeoCityList,{params:{is_short:String(e)}});if(t?.success===!1)return[];return t?.data??[]}catch{return[]}},g=({isShort:e=0}={})=>{let[t,n]=(0,c.useState)([]);return(0,c.useEffect)(()=>{let t=!1;return h({isShort:e}).then(e=>{t||n(e)}
1),()=>{t=!0}},[e]),t};var C=n(1278),N=n(834),I=n.n(N),k=n(771);let A=100,b=(e,t)=>({totalCount:0,pagesCount:0,pageSize:t,page:e}),R=async({cityId:e,page:t=1,pageSize:n=A})=>{try{let{data:o}=await f().get(S.n.getSeoServicesByCity,{params:{city_id:e,page:t,page_size:n}});if(o?.success===!1)return{services:[],pagination:b(t,n)};let i=o?.meta?.pagination;return{services:o?.data?.services??[],pagination:{totalCount:Number(i?.totalCount)||0,pagesCount:Number(i?.pagesCount)||0,pageSize:Number(i?.pageSize)||n,page:Number(i?.page)||t}}}catch{return{services:[],pagination:b(t,n)}}},L=async e=>{if(!e)return[];let t=await R({cityId:e,page:1});return t.pagination.pagesCount<=1?t.services:(await Promise.all(Array.from({length:t.pagination.pagesCount-1},(t,n)=>R({cityId:e,page:n+2})))).reduce((e,t)=>e.concat(t.services),t.services)};var v=n(1702),x=n(3245);let w="city/",y=e=>e.startsWith(w)?e.slice(w.length):e,P=e=>`/city/${y(e)}`,M={moscow:{name:"ÐоÑква",namePrepositional:"ÐоÑкве",nameGenitive:"ÐоÑквÑ"},moskva:{name:"ÐоÑква",namePrepositional:"ÐоÑкве",nameGenitive:"ÐоÑквÑ"},sankt_petersburg:{name:"СанкÑ-ÐеÑеÑбÑÑг",namePrepositional:"СанкÑ-ÐеÑеÑбÑÑге",nameGenitive:"СанкÑ-ÐеÑеÑбÑÑга"},"sankt-peterburg":{name:"СанкÑ-ÐеÑеÑбÑÑг",namePrepositional:"СанкÑ-ÐеÑеÑбÑÑге",nameGenitive:"СанкÑ-ÐеÑеÑбÑÑга"},kazan:{name:"ÐазанÑ",namePrepositional:"Ðазани",nameGenitive:"Ðазани"},krasnodar:{name:"ÐÑаÑнодаÑ",namePrepositional:"ÐÑаÑнодаÑе",nameGenitive:"ÐÑаÑнодаÑа"},voronezh:{name:"ÐоÑонеж",namePrepositional:"ÐоÑонеже",nameGenitive:"ÐоÑонежа"},novosibirsk:{name:"ÐовоÑибиÑÑк",namePrepositional:"ÐовоÑибиÑÑке",nameGenitive:"ÐовоÑибиÑÑка"},ekaterinburg:{name:"ÐкаÑеÑинбÑÑг",namePrepositional:"ÐкаÑеÑинбÑÑге",nameGenitive:"ÐкаÑеÑинбÑÑга"},yekaterinburg:{name:"ÐкаÑеÑинбÑÑг",namePrepositional:"ÐкаÑеÑинбÑÑге",nameGenitive:"ÐкаÑеÑинбÑÑга"},krasnoyarsk:{name:"ÐÑаÑноÑÑÑк",namePrepositional:"ÐÑаÑноÑÑÑке",nameGenitive:"ÐÑаÑноÑÑÑка"},barnaul:{name:"ÐаÑнаÑл",namePrepositional:"ÐаÑнаÑле",nameGenitive:"ÐаÑнаÑла"},celabinsk:{name:"ЧелÑбинÑк",namePrepositional:"ЧелÑбинÑке",nameGenitive:"ЧелÑбинÑка"},chelyabinsk:{name:"ЧелÑбинÑк",namePrepositional:"ЧелÑбинÑке",nameGenitive:"ЧелÑбинÑка"},volgograd:{name:"ÐолгогÑад",namePrepositional:"ÐолгогÑаде",nameGenitive:"ÐолгогÑада"},irkutsk:{name:"ÐÑкÑÑÑк",namePrepositional:"ÐÑкÑÑÑке",nameGenitive:"ÐÑкÑÑÑка"},kaluga:{name:"ÐалÑга",namePrepositional:"ÐалÑге",nameGenitive:"ÐалÑги"},murmansk:{name:"ÐÑÑманÑк",namePrepositional:"ÐÑÑманÑке",nameGenitive:"ÐÑÑманÑка"},nizhniy_novgorod:{name:"Ðижний ÐовгоÑод",namePrepositional:"Ðижнем ÐовгоÑоде",nameGenitive:"Ðижнего ÐовгоÑода"},novokuznetsk:{name:"ÐовокÑзнеÑк",namePrepositional:"ÐовокÑзнеÑке",nameGenitive:"ÐовокÑзнеÑка"},omsk:{name:"ÐмÑк",namePrepositional:"ÐмÑке",nameGenitive:"ÐмÑка"},perm:{name:"ÐеÑмÑ",namePrepositional:"ÐеÑми",nameGenitive:"ÐеÑми"},rostov_on_don:{name:"РоÑÑов-на-ÐонÑ",namePrepositional:"РоÑÑове-на-ÐонÑ",nameGenitive:"РоÑÑова-на-ÐонÑ"},ryazan:{name:"Ð ÑзанÑ",namePrepositional:"Ð Ñзани",nameGenitive:"Ð Ñзани"},samara:{name:"СамаÑа",namePrepositional:"СамаÑе",nameGenitive:"СамаÑÑ"},saratov:{name:"СаÑаÑов",namePrepositional:"СаÑаÑове",nameGenitive:"СаÑаÑова"},sochi:{name:"СоÑи",namePrepositional:"СоÑи",nameGenitive:"СоÑи"},tver:{name:"ТвеÑÑ",namePrepositional:"ТвеÑи",nameGenitive:"ТвеÑи"},tyumen:{name:"ТÑменÑ",namePrepositional:"ТÑмени",nameGenitive:"ТÑмени"},ufa:{name:"УÑа",namePrepositional:"УÑе",nameGenitive:"УÑÑ"},khabarovsk:{name:"ХабаÑовÑк",namePrepositional:"ХабаÑовÑке",nameGenitive:"ХабаÑовÑка"}},U={moscow:"moskva",moskva:"moskva",sankt_petersburg:"sankt-peterburg","sankt-peterburg":"sankt-peterburg",ekaterinburg:"yekaterinburg",yekaterinburg:"yekaterinburg",nizhniy_novgorod:"nizhniy-novgorod","nizhniy-novgorod":"nizhniy-novgorod",rostov_on_don:"rostov-na-donu","rostov-na-donu":"rostov-na-donu",celabinsk:"celabinsk",chelyabinsk:"celabinsk"},K="sto/",B=(e,t)=>{let n=e.trim().replace(/^\/+/,"");if(!n)return{citySlug:t,stoSlug:""};
1let o=(n.startsWith(K)?n.slice(K.length):n).split("/").filter(Boolean);return o.length>=2?{citySlug:o[0],stoSlug:o.slice(1).join("/")}:{citySlug:t,stoSlug:o[0]||""}},F=({dataTestId:e,repairAutoItem:t,uremontMainLink:n,...o})=>{let i=g({isShort:1}),a=(e=>{let t=(0,C.useRouter)(),n=(0,k.Pj)(x.S8),[o,i]=c.useState(null),a=c.useRef({}),r="string"==typeof t.query.slug?t.query.slug:"",s="string"==typeof t.query.city?t.query.city:"",l=n?.id||0;return c.useEffect(()=>{if("/"===t.pathname)return void i(null);let n=!1;return(async()=>{var o;let c,u,_=(o=t.pathname,"/city/[slug]"===o&&r?y(r):"/sto/[city]/[slug]"===o&&s?y(s):null),d=(0,v.ro)(I())(),m=l||d.cityId||0,p=await h({isShort:0});if(n)return;let E=null;if(_){let e,t,n,o,i,a=(i=new Set((t=y(_),n=U[e=y(t)]||e,o=[t,n],Object.entries(U).forEach(([e,i])=>{(i===n||e===n||e===t)&&o.push(e,i)}),o.filter((e,t,n)=>n.indexOf(e)===t)).map(y)),p.find(e=>i.has(y(e.slug))));E={cityId:a?.id||m||0,citySlug:a?y(a.slug):_}}else if(m){let e=p.find(e=>e.id===m);E={cityId:m,citySlug:e?y(e.slug):""}}if(!E)return i(null);if(E.cityId&&!(c=a.current[E.cityId])){let e=await L(E.cityId);if(n)return;let t=(e=>{if(e.length)return e[Math.floor(Math.random()*e.length)]})(e);t?.slug&&(c=t.slug,a.current[E.cityId]=t.slug)}let T=E.citySlug,O=null;if(c){let e=B(c,T);e.citySlug&&(T=e.citySlug),O=((e,t)=>{let{citySlug:n,stoSlug:o}=B(e,t);return n&&o?`/sto/${n}/${o}`:""})(c,T)||null}let f=((e,t="")=>{let n,o;return(o=(n=y(e)).replace(/-/g,"_"),M[n]||M[o]||M[U[n]])?.namePrepositional||t})(T,"");if(!f||!T)return i(null);let S=O||P(T);i({name:`Ð ÐµÐ¼Ð¾Ð½Ñ Ð°Ð²ÑÐ¾Ð¼Ð¾Ð±Ð¸Ð»Ñ Ð² ${f}`,url:(u=e.replace(/\/$/,""),`${u}${S.startsWith("/")?S:`/${S}`}`)})})(),()=>{n=!0}},[t.pathname,r,s,l,e]),o})(n),r=c.useMemo(()=>i.map(e=>({...e,slug:P(e.slug).slice(1)})),[i]),l={...o,uremontMainLink:n,cities:r,repairAutoItem:void 0!==t?t:a},u=(0,s.jsx)(T.jd,{...l});return e?(0,s.jsx)("footer",{"data-testid":e,children:u}):u},G=c.memo(()=>(0,s.jsx)(F,{"data-testid":_.o.APP_FOOTER,uremontMainLink:E.NB,uremontLink:E.$7,autopartsLink:E.S$,serviceLink:E.hM,insuranceLink:E.HV,corparkLink:E.hu,uremontMapLink:E.SI}));G.displayName="AppFooter";var D=n(2988),$=n.n(D),H=n(2862);let j=async({token:e})=>{if(!e)return null;void 0!==o&&o.cancel(),o=f().CancelToken.source();try{let{data:t}=await f().post(`${S.n.getRole}`,{auth_token:e},{cancelToken:o.token});return{role:t.role,roles:t.roles,userId:t.id}}catch(e){return null}},Y=async({token:e,role:t="customer",roles:n})=>{if(!e)return null;void 0!==i&&i.cancel(),i=f().CancelToken.source();let o="service"===t,a=o?S.n.getProfileService:S.n.getProfileCustomer;try{let{data:r}=await f().get(a,{params:{auth_token:e},cancelToken:i.token});if(!r?.success)return null;let s="data"in r&&r.data?r.data:r;return{name:s.name,role:t,roles:n,image:s.logo||(s.images?.length?s.images[0]:null)||null,counters:"counters"in s?s.counters:void 0,...!o&&"customer_discount_level"in s&&{customer_discount_level:s.customer_discount_level}}}catch{return null}},W=async({token:e})=>{void 0!==a&&a.cancel(),a=f().CancelToken.source();try{let{data:t}=await f().post(S.n.getNotificationCount,{auth_token:e},{cancelToken:a.token});return t}catch(e){return e}},z=async({token:e})=>{void 0!==r&&r.cancel(),r=f().CancelToken.source();try{let{data:t}=await f().get(S.n.getChatCountCustomer,{params:{auth_token:e},cancelToken:r.token});return t.data}catch(e){return e}},V=async({token:e})=>{void 0!==r&&r.cancel(),r=f().CancelToken.source();try{let{data:t}=await f().get(S.n.getChatCountService,{params:{auth_token:e},cancelToken:r.token});return t.data}catch(e){return e}};var X=n(5513);n(9683);var q=n(7892),Q=n(8831),Z=n.n(Q);let J=e=>(0,s.jsxs)("div",{...e,className:Z().wrapper,children:[(0,s.jsx)("a",{href:`${E.YE}/cabinet/customer/main`,className:Z().link,children:(0,s.jsx)(T.Um,{icon:q.ww,iconSize:24,textType:"bodyTightRegular",children:"ÐлавнаÑ"})}),(0,s.jsx)("a",{href:`${E.YE}/cabinet/customer/profile`,className:Z().link,children:(0,s.jsx)(T.Um,{icon:q.Gv,iconSize:24,textType:"bodyTightRegular",children:"ÐÑоÑилÑ"})}),(0,s.jsx)("a",{href:`${E.YE}
1/cabinet/customer/chat`,className:Z().link,children:(0,s.jsx)(T.Um,{icon:q.ry,iconSize:24,textType:"bodyTightRegular",children:"ЧаÑ"})}),(0,s.jsx)("a",{href:`${E.YE}/cabinet/customer/bids`,className:Z().link,children:(0,s.jsx)(T.Um,{icon:q.Hj,iconSize:24,textType:"bodyTightRegular",children:"ÐаÑвки"})}),(0,s.jsx)("a",{href:`${E.YE}/cabinet/customer/cars`,className:Z().link,children:(0,s.jsx)(T.Um,{icon:q.TH,iconSize:24,textType:"bodyTightRegular",children:"ÐаÑаж"})})]});var ee=n(8267),et=n.n(ee);let en=e=>(0,s.jsxs)("div",{...e,className:et().wrapper,children:[(0,s.jsx)("a",{href:`${E.zl}/cabinet/service/profile`,className:et().link,children:(0,s.jsx)(T.Um,{icon:q.kl,iconSize:24,textType:"bodyTightRegular",children:"Ðой авÑоÑеÑвиÑ"})}),(0,s.jsx)("a",{href:`${E.zl}/cabinet/service/bids`,className:et().link,children:(0,s.jsx)(T.Um,{icon:q.Hj,iconSize:24,textType:"bodyTightRegular",children:"ÐаÑвки"})}),(0,s.jsx)("a",{href:`${E.zl}/cabinet/service/chat`,className:et().link,children:(0,s.jsx)(T.Um,{icon:q.ry,iconSize:24,textType:"bodyTightRegular",children:"СообÑениÑ"})}),(0,s.jsx)("a",{href:`${E.zl}/cabinet/service/stat`,className:et().link,children:(0,s.jsx)(T.Um,{icon:q.gW,iconSize:24,textType:"bodyTightRegular",children:"ÐналиÑика"})}),(0,s.jsx)("a",{href:`${E.zl}/cabinet/service/finances`,className:et().link,children:(0,s.jsx)(T.Um,{icon:q.uW,iconSize:24,textType:"bodyTightRegular",children:"Ðой баланÑ"})})]});var eo=n(128),ei=n.n(eo);let ea={5:"silver",7:"gold",10:"purple"};var er=n(3083),es=n.n(er);let ec=()=>(0,s.jsx)("div",{}),el=c.memo(function({...e}){let t=e&&e.isFranchise,{logInGoal:n,profile:o}=e,{user:i,setUser:a,token:r,logout:l}=(0,c.useContext)(H.B),[u,d]=(0,c.useState)(null),[m,p]=(0,c.useState)(null),[O,f]=(0,c.useState)(null),[S,h]=(0,c.useState)(0),C=i??o??null,N=g({isShort:0}),k=C?.role==="service",A=!!C,b=k?E.zl+"/cabinet/service/bids":E.YE+"/cabinet/customer/bids",R=(0,c.useCallback)(()=>{h(window.innerWidth)},[]);(0,c.useEffect)(()=>(R(),window.addEventListener("resize",R),()=>{window.removeEventListener("resize",R)}),[R]);let L=(0,c.useMemo)(()=>(t,0),[S,t]),v=(0,c.useCallback)(()=>k?(0,s.jsx)(en,{}):(0,s.jsx)(J,{}),[k]),x=(0,c.useCallback)(()=>{var e,t;n&&(e=n,"function"!=typeof window.ym?Promise.resolve():Promise.race([new Promise(e=>setTimeout(e,500)),new Promise(n=>{window.ym(X.TD,"reachGoal",e,t,n)})]))},[n]),w=k?`${E.zl}/cabinet/service/chat`:`${E.YE}/cabinet/customer/chat`,y=k?"ÐвÑоÑеÑвиÑ":"ÐвÑолÑбиÑелÑ",P=C?.counters?.active_bid??null,M=ea[C?.customer_discount_level?.max_discount_percent],U=(0,c.useCallback)(()=>{k?V({token:r}).then(e=>{let t=Number(e.count);t&&p(t)}):z({token:r}).then(e=>{let t=Number(e.count);t&&p(t)})},[k,r]);((e,t)=>{let[n,o]=(0,c.useState)(null),i=E.Vv??"",a=I().get("auth_token"),r=(0,c.useRef)({handleGetChatCount:t});(0,c.useEffect)(()=>{r.current={handleGetChatCount:t}},[t]);let s=(0,c.useCallback)(e=>{e.on("connect",()=>console.log("Connected to WebSocket")),e.on("disconnect",()=>console.log("Disconnected from WebSocket")),e.on("connect_error",e=>console.error("WebSocket error:",e)),e.on("event",e=>{((e,t)=>{let{event_name:n}=e;"chat_message"===n&&t()})(e,r.current.handleGetChatCount)})},[]);return(0,c.useEffect)(()=>{if(!a||!e)return;let t=es()(i,{query:{id:e,Authorization:`Bearer ${a}`},reconnection:!0,reconnectionAttempts:3,reconnectionDelay:1e3});return s(t),o(t),()=>{t.close()}},[a,e,i,s])})(O,U),(0,c.useEffect)(()=>{o&&a(o)},[o,a]),(0,c.useEffect)(()=>{r&&j({token:r}).then(e=>{e?Y({token:r,role:e.role,roles:e.roles}).then(t=>{t?(f(e.userId),a(t)):l()}):l()})},[r,a,l]),(0,c.useEffect)(()=>{r&&A&&W({token:r}).then(e=>{let t=Number(e.count);t&&d(t)})},[r,A]),(0,c.useEffect)(()=>{r&&U()},[r,U]);let{extraNavLinks:K}=e;return(0,s.jsxs)("div",{className:$()(ei().wrapper,{[ei().wrapperNoBanner]:t}),"data-testid":_.o.HEADER,children:[(0,s.jsx)(T.fi,{headerBannerHeight:Number(L),isAuth:A,authLink:e.authLink??`${E.$7}/join/login`,mainLink:E.NB,chatLink:w,notificationLink:`${E.$7}/notifications`,cartLink:`${E.S$}/cart`,contacts:e.contacts??{},profile:C,badgeBell:u,badgeCart:P,badgeChat:m,renderHeaderBanner:ec,renderProfileItems:v,insuranceLink:E.HV,corpar
1kLink:E.hu,onLogout:l,onLogIn:x,photo:i?.image?.url||"",countBids:m,countMassage:P,role:y,discountStatus:M,isCustomerProfile:!k,customerLink:E.YE,serviceLink:E.zl,bidsLink:b,badgeBids:P,cities:N}),!!K?.length&&(0,s.jsx)("nav",{className:ei().extraNav,"aria-label":"ÐополниÑелÑÐ½Ð°Ñ Ð½Ð°Ð²Ð¸Ð³Ð°ÑиÑ",children:(0,s.jsx)("ul",{className:ei().extraNavList,children:K.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)("a",{className:ei().extraNavLink,href:e.href,children:e.label})},e.href))})})]})});var eu=n(599),e_=n.n(eu),ed=n(8719);let em={phone:"+7 (800) 350-05-07",whatsapp:"https://t.me/uremont_support",mail:"[email protected]"};function ep({children:e,profile:t,authLink:n}){return(0,s.jsx)(d,{header:(0,s.jsx)(el,{profile:t,contacts:em,authLink:n}),footer:(0,s.jsx)(G,{}),children:(0,s.jsx)("div",{className:e_().wrapper,"data-testid":ed.o.INSURANCE_TEMPLATE,children:e})})}},9683:e=>{e.exports={headerLink:"MenuItems_headerLink__qXRGJ",headerTitleLink:"MenuItems_headerTitleLink__yZNeo",headerTitleLinkDesktop:"MenuItems_headerTitleLinkDesktop__WIGdK",headerTitleLinkMobile:"MenuItems_headerTitleLinkMobile__KMiKm"}},9737:(e,t,n)=>{"use strict";n.d(t,{F:()=>i});var o=n(655);function i(e){var t;let n=e.reset||(0,o.lh)(),i=(t=arguments[1],()=>({...t})),a=(0,o.y$)(e.result||null,i("result")).reset(n).on(e.effect.doneData,(e,t)=>t),r=(0,o.y$)(e.error||null,i("error")).reset(n).reset(e.effect).on(e.effect.fail,(e,{error:t})=>t),s=(0,o.y$)(!1,i("done")).reset(n).reset(e.effect).on(e.effect.done,()=>!0);return{result:a,error:r,isDone:s,isFailed:(0,o.y$)(!1,i("failed")).reset(n).reset(e.effect).on(e.effect.fail,()=>!0),isLoading:(0,o.y$)(!1,i("loading")).reset(n).on(e.effect.pending,(e,t)=>t)}}},9789:(e,t,n)=>{"use strict";n.d(t,{AG:()=>c,g7:()=>l});var o=n(6029),i=n(5669),a=n.n(i),r=n(7893);let s=n(3601).env.NEXT_PUBLIC_DEFAULT_OG_IMAGE||(r.YD?`${r.YD}/uremont/images/landing-cars-crave_2.png`:"https://uremont.com/images/uremont_logo.png"),c={uremont:s,insurance:r.YD?`${r.YD}/insurance/images/heroKasko/bg-desktop.png`:s,service:s,corpark:r.YD?`${r.YD}/corpark/images/hero/auto2.png`:s,report:r.YD?`${r.YD}/history/images/background-slogan.png`:s},l=({title:e,description:t,canonical:n,ogImage:i,ogImageAlt:c="UREMONT",ogType:l="website",twitterCard:u="summary_large_image",withHreflang:_=!0,noindex:d=!1})=>{let m=((e,t=r.NB||"https://uremont.com")=>{let n=e?.trim();if(!n)return s;if(/^https?:\/\//i.test(n))return n;let o=t.replace(/\/$/,""),i=n.startsWith("/")?n:`/${n}`;return`${o}${i}`})(i)||s;return(0,o.jsxs)(a(),{children:[(0,o.jsx)("title",{children:e}),(0,o.jsx)("meta",{name:"description",content:t}),d&&(0,o.jsx)("meta",{name:"robots",content:"noindex, follow"}),n&&(0,o.jsx)("link",{rel:"canonical",href:n}),n&&_&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("link",{rel:"alternate",href:n,hrefLang:"ru"}),(0,o.jsx)("link",{rel:"alternate",href:n,hrefLang:"x-default"})]}),(0,o.jsx)("meta",{property:"og:title",content:e}),(0,o.jsx)("meta",{property:"og:description",content:t}),(0,o.jsx)("meta",{property:"og:type",content:l}),n&&(0,o.jsx)("meta",{property:"og:url",content:n}),(0,o.jsx)("meta",{property:"og:image",content:m}),(0,o.jsx)("meta",{property:"og:image:alt",content:c}),(0,o.jsx)("meta",{name:"twitter:card",content:u}),(0,o.jsx)("meta",{name:"twitter:title",content:e}),(0,o.jsx)("meta",{name:"twitter:description",content:t}),(0,o.jsx)("meta",{name:"twitter:image",content:m})]})}}}]);
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.