1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[750],{4577:(e,n,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/yandex",function(){return t(65397)}])},28829:(e,n,t)=>{"use strict";t.d(n,{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_LINK="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)},65397:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>R});var o=t(6029),i=t(9789),a=t(7893),_=t(55729),c=t(41735),r=t(27724),E=t(41487),l=t(58582),s=t(75176),O=t(86057),T=t(63980);function N(){let{isLoading:e,confirmLoading:n,error:t,needPhoneAuth:i,confirmPhone:c}=function({onSuccess:e,specialRedirectLink:n}={}){let[t,o]=(0,_.useState)(null),[i,a]=(0,_.useState)(!0),[c,r]=(0,_.useState)(!1),[E,l]=(0,_.useState)(!1),[N,I]=(0,_.useState)(null),C=(0,_.useCallback)(async t=>{((0,O.Rz)(t.access_token,t.refresh_token),e)?e():await (0,O.co)({accessToken:t.access_token,specialRedirectLink:n})},[e,n]),d=(0,_.useCallback)(async e=>{if(N){r(!0),o(null);try{let n=(0,O.it)(),{data:t}=await (0,s.rH)({code:e,token:N,...n});await C(t)}catch(e){o((0,T.LH)(e,"ÐÑибка подÑвеÑÐ¶Ð´ÐµÐ½Ð¸Ñ ÑелеÑона"))}finally{r(!1)}}},[N,C]);return(0,_.useEffect)(()=>{(async()=>{try{a(!0);let e=window.location.hash.substring(1),n=new URLSearchParams(e).get("access_token");if(!n)throw Error("Ðе ÑдалоÑÑ Ð¿Ð¾Ð»ÑÑиÑÑ Ñокен Ð¾Ñ Ð¯Ð½Ð´ÐµÐºÑ");let t=sessionStorage.getItem("yandex_auth_data");
1if(!t)throw Error("СеÑÑÐ¸Ñ Ð°Ð²ÑоÑизаÑии ÑÑÑаÑела");let o=JSON.parse(t),{data:i}=await (0,s.gw)({yandex_token:n,countryId:o.countryId??1,reCaptchaToken:o.reCaptchaToken,referral:o.referral??null});if(i.has_phone&&i.access_token)await C(i);else if(i.token)I(i.token),l(!0),a(!1);else throw Error("Ðе ÑдалоÑÑ Ð·Ð°Ð²ÐµÑÑиÑÑ Ð°Ð²ÑоÑизаÑÐ¸Ñ ÑеÑез ЯндекÑ")}catch(e){o((0,T.LH)(e,"ÐÑибка авÑоÑизаÑии ÑеÑез ЯндекÑ")),a(!1)}})()},[C]),{isLoading:i,confirmLoading:c,error:t,needPhoneAuth:E,confirmPhone:d}}({onSuccess:(0,_.useCallback)(()=>{window.opener?(window.opener.postMessage({type:"yandex_auth_success"},window.location.origin),window.close()):window.location.replace(`${a.YE}/cabinet/customer/main`)},[])});return e?(0,o.jsx)(I,{children:(0,o.jsx)(C,{children:"ÐавеÑÑение авÑоÑизаÑии ÑеÑез ЯндекÑ..."})}):i?(0,o.jsxs)(I,{children:[(0,o.jsx)(C,{children:"ÐодÑвеÑждение ÑелеÑона"}),t&&(0,o.jsx)(d,{children:t}),(0,o.jsx)(E.g2,{phone:"Ð²Ð°Ñ Ð½Ð¾Ð¼ÐµÑ",error:!!t,loading:n,changePhoneLink:"/join/login",onSubmit:c})]}):t?(0,o.jsxs)(I,{children:[(0,o.jsx)(d,{children:t}),(0,o.jsx)(l.$,{wide:!0,onClick:()=>window.close(),children:"ÐакÑÑÑÑ Ð¾ÐºÐ½Ð¾"})]}):null}let I=c.default.div.withConfig({componentId:"sc-ae21c46e-0"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;padding:20px;text-align:center;"]),C=c.default.div.withConfig({componentId:"sc-ae21c46e-1"})(["",";color:",";"],(0,r.XC)("bodyTightRegular"),(0,r.MF)("textPrimary")),d=c.default.p.withConfig({componentId:"sc-ae21c46e-2"})(["",";color:",";margin:0 0 20px;"],(0,r.XC)("text2"),(0,r.MF)("danger")),R=()=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.g7,{title:"ÐвÑоÑизаÑÐ¸Ñ ÑеÑез Ð¯Ð½Ð´ÐµÐºÑ | UREMONT",description:"ÐавеÑÑение вÑ
ода ÑеÑез Ð¯Ð½Ð´ÐµÐºÑ ID",canonical:`${a.NB}/auth/yandex`,ogImage:i.AG.uremont,noindex:!0}),(0,o.jsx)(N,{})]})}},e=>{e.O(0,[4477,4568,2592,2203,5465,1156,4981,4436,636,6593,8792],()=>e(e.s=4577)),_N_E=e.O()}]);
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.