1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="44792c9b-54c1-41bd-ae7e-3ff620ecff8f",e._sentryDebugIdIdentifier="sentry-dbid-44792c9b-54c1-41bd-ae7e-3ff620ecff8f")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"2026-10-07-e42bdd47"},(self.webpackChunkfront=self.webpackChunkfront||[]).push([[6665],{21240:function(e,t,r){r.d(t,{M:function(){return d}});r(85152);var n=r(88729),a=r(21695),o=r(88962),i=r(42742),c=r(2870),s=r(61372),l=r(62147),u=r(81403),d=function VerificationMethodChoose(e){var t=e.phone,r=e.onBack,d=e.onTelegram,f=e.onMax,h=e.onSms,p=e.isLoginPage,m=e.hasMaxVerification,g=e.isLoadingVerificationButtons,v=e.hideTitle,b=void 0!==v&&v,C=e.showCaptcha,x=e.smartCaptchaComponent,S=e.smartCaptchaError,w=(0,o.k)().isMobile,k=(0,n.$G)().t,y=(0,s.Iu)().isKonsol&&m,_=(0,i.C)(t);return(0,u.jsxs)("div",{className:"flex flex-col gap-6 items-start w-full",children:[(0,u.jsxs)("div",{className:(0,a.Z)("flex flex-col justify-between w-full",{"min-h-full":w&&!p," gap-5":!b,"pt-4":b}),children:[(0,u.jsxs)("div",{className:"flex flex-col gap-4",children:[!b&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(c.ZT,{variant:"h1","data-testid":"main-title",children:k("pages.join.codeStep.chooseTypeCode")}),(0,u.jsx)(c.ZT,{children:k("pages.join.codeStep.willSendTo",{phoneNumber:_})}),C&&!l.A&&S&&(0,u.jsx)(c.ZT,{textColor:"destructive",children:k("common.botError")})]}),C&&!l.A&&x]}),(0,u.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,u.jsx)(c.zx,{size:"lg",className:"w-full",variant:g?"default":"telegram",icon:"TelegrammIcon",onClick:d,isLoading:g,"data-testid":"via-telegram-button",children:k("pages.join.verificationMethodSelect.byTelegram")}),(0,u.jsxs)("div",{className:"flex gap-2 flex-row",children:[y&&(0,u.jsx)(c.zx,{size:"lg",className:"w-full",variant:"default",icon:"MaxIcon",onClick:f,isLoading:g,"data-testid":"via-max-button",children:k("pages.join.verificationMethodSelect.byMax")}),(0,u.jsx)(c.zx,{variant:"default",size:"lg",className:"w-full",icon:"SmsIcon",onClick:h,isLoading:g,"data-testid":"via-sms-button",children:k("pages.join.verificationMethodSelect.bySms")})]})]})]}),p&&(0,u.jsx)(c.zx,{variant:"default",onClick:r,icon:"ArrowBackIcon","data-testid":"use-another-phone-button",children:k("pages.join.codeStep.anotherPhone")})]})}},18856:function(e,t,r){r.d(t,{UU:function(){return n},Yo:function(){return a},ui:function(){return o}});r(95008),r(96425);var n=function openUrlInNewTab(e){var t=document.createElement("a");t.href=e,t.setAttribute("target","_blank"),t.setAttribute("rel","noopener noreferrer"),document.body.appendChild(t),t.click(),document.body.removeChild(t)},a=function openUrl(e){var t=document.createElement("a");t.href=e,document.body.appendChild(t),t.click(),document.body.removeChild(t)},o=function isRussianPhoneNumber(e){return/^\+7([0-5]|[8-9])/.test(e)&&!/^\+7940/.test(e)}},70235:function(e,t,r){r.d(t,{N:function(){return g},R:function(){return p}});var n=r(61249),a=r(29365),o=r(45144),i=r(43658),c=r.n(i),s=r(56289),l=r.n(s),u=r(91413),d=r(81680),f=r(12273),h=r(55489),p=function(e){return e.Sms="sms",e.Telegram="telegram",e.Max="max",e.Email="email",e.Inn="taxpayer_id",e}({}),m=new(c())([p.Max]),g=function useVerificationTypes(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=(0,d.a)({queryKey:["verificationTypes",e],queryFn:function(){var t=(0,o.Z)((0,n.Z)().mark(function _callee(){var t,r;return(0,n.Z)().wrap(function _callee$(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,f.z)({url:"bus/alpha/verifications/verification_types",method:"GET",data:{mobile_phone:e},withPrefix:!1,headers:{"Content-Language":(0,h.sE)(u.ZP.language)}});case 3:return r=n.sent,n.abrupt("return",(0,a.Z)((0,a.Z)({},r),{},{verification_types:l()(t=r.verification_types).call(t,function(e){return!m.has(e)})}));case 7:throw n.prev=7,n.t0=n.catch(0),n.t0;case 10:case"end":return n.stop()}},_callee,null,[[0,7]])}));return function queryFn(){return t.apply(this,arguments)}}(),enabled:t&&!!e,retry:1,refetchOnMount:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1,gcTime:0});return r}},6665:function(e,t,r){r.r(t),r.d(t,{default:function(){return P}});
1var n=r(85152),a=r(2705),o=r(21240),i=r(16555),c=r(2870),s=r(61372),l=r(73092),u=r(80656),d=r(62344),f=r(37580),h=r(61249),p=r(45144),m=r(20390),g=r.n(m),v=r(118),b=r(63641),C=r(70235),x=r(61766),S=r(62147),w=r(77117),k=r(18856),y=r(80288),_=(r(48108),r(67393)),T=r(76435),E=r(81403),P=(0,a.Pi)(function(e){var t,r=e.mobilePlatform,a=(0,i.m)().authStore,m=(0,s.Iu)().config,P=(null===(t=a.temporaryCurrentIdentifiers)||void 0===t?void 0:t.phone)||"",R=function useVerificationFinalize(){var e=(0,i.m)().authStore;return{finalizeVerificationFlow:(0,n.useCallback)(function(t){e.setTemporaryCurrentIdentifiers({verificationsTypes:[t]}),e.setCodeType(t),e.setStatus(l.tD.Code),e.setChooseVerificationStep(!0)},[e])}}(),Z=R.finalizeVerificationFlow,j=function useCaptchaVerification(){var e=(0,f.I)(),t=e.isKonsol,r=e.isKonsolHrm,a=(0,n.useState)(!1),o=(0,u.Z)(a,2),i=o[0],c=o[1],s=(0,d.E)();return{isKonsol:t,isKonsolHrm:r,showCaptcha:i,setShowCaptcha:c,smartCaptchaComponent:s.smartCaptchaComponent,smartCaptchaToken:s.smartCaptchaToken,smartCaptchaError:s.smartCaptchaError,handleSmartErrorToggle:s.handleSmartErrorToggle,handleSmartCaptchaRefresh:s.handleSmartCaptchaRefresh}}(),V=j.isKonsol,M=j.isKonsolHrm,A=j.showCaptcha,I=j.setShowCaptcha,N=j.smartCaptchaComponent,K=j.smartCaptchaToken,U=j.smartCaptchaError,z=j.handleSmartErrorToggle,F=j.handleSmartCaptchaRefresh,B=function useSmsVerificationHandler(e){var t=e.phoneNumber,r=e.verifyPassword,a=e.isKonsol,o=e.showCaptcha,i=e.smartCaptchaToken,c=e.handleSmartErrorToggle,s=e.handleSmartCaptchaRefresh,l=e.setShowCaptcha,u=e.onSuccess,d=(0,x.l)(r),f=d.mutateAsync,m=d.isPending;return{handleSmsVerification:(0,n.useCallback)((0,p.Z)((0,h.Z)().mark(function _callee(){var e,r,n,d,p;return(0,h.Z)().wrap(function _callee$(h){for(;;)switch(h.prev=h.next){case 0:if(!a||!o||S.A||i){h.next=3;break}return c(!0),h.abrupt("return");case 3:return h.prev=3,h.next=6,f({verification_type:C.R.Sms,mobile_phone:t,captcha_token:a&&o?i:void 0});case 6:u(C.R.Sms),h.next=23;break;case 9:if(h.prev=9,h.t0=h.catch(3),d=(null===h.t0||void 0===h.t0||null===(e=h.t0.data)||void 0===e||null===(r=e.errors)||void 0===r?void 0:r[0])||(null===h.t0||void 0===h.t0?void 0:h.t0.message)||"",p=null===h.t0||void 0===h.t0||null===(n=h.t0.response)||void 0===n?void 0:n.status,!a||!g()(d).call(d,"\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u043e\u0439\u0442\u0438 \u043a\u0430\u043f\u0447\u0443")){h.next=17;break}return l(!0),b.A.error(d),h.abrupt("return");case 17:if(!a||429!==p){h.next=21;break}return s(),b.A.error(d||(0,v.t)("errors.captchaInvalid")),h.abrupt("return");case 21:b.A.error(d||(0,v.t)("errors.smsCreateVerificationError")),u(C.R.Sms);case 23:case"end":return h.stop()}},_callee,null,[[3,9]])})),[a,o,i,t,f,c,s,l,u]),isPending:m}}({phoneNumber:P,verifyPassword:a.passwordVerified,isKonsol:V||M,showCaptcha:A,smartCaptchaToken:K,handleSmartErrorToggle:z,handleSmartCaptchaRefresh:F,setShowCaptcha:I,onSuccess:Z}),L=B.handleSmsVerification,H=B.isPending,$=function useTelegramVerificationHandler(e){var t=e.phoneNumber,r=e.verifyPassword,a=e.configId,o=e.onSuccess,i=(0,w.d)().isIOS,c=(0,x.l)(r).mutateAsync;return{handleTelegramVerification:(0,n.useCallback)((0,p.Z)((0,h.Z)().mark(function _callee(){var e,r,n,s;return(0,h.Z)().wrap(function _callee$(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.next=3,c({verification_type:C.R.Telegram,mobile_phone:t});case 3:e=l.sent,r=(0,y.iQ)(e.has_contact,i,a),i?(0,k.Yo)(r):(0,k.UU)(r),o(C.R.Telegram),l.next=13;break;case 9:l.prev=9,l.t0=l.catch(0),b.A.error(null!==(n=null===l.t0||void 0===l.t0||null===(s=l.t0.data)||void 0===s?void 0:s.errors[0])&&void 0!==n?n:(0,v.t)("errors.telegramCreateVerificationError")),o(C.R.Telegram);case 13:case"end":return l.stop()}},_callee,null,[[0,9]])})),[c,t,i,a,o])}}({phoneNumber:P,verifyPassword:a.passwordVerified,configId:m.id,onSuccess:Z}),O=$.handleTelegramVerification,D=function useMaxVerificationHandler(e){var t=e.phoneNumber,r=e.verifyPassword,a=e.isKonsol,o=e.showCaptcha,i=e.smartCaptchaToken,c=e.handleSmartErrorToggle,s=e.configId,l=e.onSuccess,u=(0,x.l)(r).mutateAsync;return{handleMaxVerification:(0,n.useCallback)((0,p.Z)((0,h.Z)().mark(function _callee(){var e,r;return(0,h.Z)().wrap(function _callee$(n){for(;;)switch(n.prev=n.next){case 0:if(a){n.next=2;break}return n.abrupt("return");case 2:if(!o||S.A||i){n.next=5;break}return c(!0),n.abrupt("return");case 5:return n.prev=5,n.next=8,u({verification_type:C.R.Max,mobile_phone:t,captcha_token:o?i:void 0});case 8:(0,k.UU)((0,y.up)(s)),l(C.R.Max),n.next=16;break;case 12:n.prev=12,n.t0=n.catch(5),b.A.error(null!==(e=null===n.t0||void 0===n.t0||null===(r=n.t0.data)||void 0===r?void 0:r.errors[0])&&void 0!==e?e:(0,v.t)("errors.telegramCreateVerificationError")),l(C.R.Max);case 16:case"end":return n.stop()}},_callee,null,[[5,12]])})),[a,o,i,c,u,t,s,l])}}({phoneNumber:P,verifyPassword:a.passwordVerified,isKonsol:V,showCaptcha:A,smartCaptchaToken:K,handleSmartErrorToggle:z,configId:m.id,onSuccess:Z}),G=D.handleMaxVerification,Y=function usePhoneRedirect(e){var t=e.mobilePlatform,r=(0,_.k6)(),a=(0,i.m)().authStore;return{handleRedirectPhoneForm:(0,n.useCallback)(function(){t&&(0,T.pj)("logout"),localStorage.clear(),t?r.push("/mobile/login"):r.push("/login"),a.reset()},[t,r,a])}}({mobilePlatform:r}),q=Y.handleRedirectPhoneForm;return P?(0,E.jsx)(o.M,{isLoginPage:!0,phone:P,onBack:q,onTelegram:O,onMax:G,onSms:L,smartCaptchaComponent:V||M?N:(0,E.jsx)(E.Fragment,{}),showCaptcha:(V||M)&&A,mobilePlatform:r,smartCaptchaError:(V||M)&&U,isLoadingVerificationButtons:H}):(0,E.jsx)("div",{className:"flex items-center justify-center",children:(0,E.jsx)(c.$j,{})})})},62147:function(e,t,r){r.d(t,{A:function(){return a}});var n=r(91396),a=n.Sy||n.Gb},80288:function(e,t,r){r.d(t,{iQ:function(){return u},t0:function(){return i},up:function(){return d}});
1var n=r(12767),a=r.n(n),o=r(90410),i=["/acts/","/contract/","/additional-onboarding/","/offers/"],c={stage:{konsol:"https://t.me/StageKonsolBot"},production:{konsol:"https://t.me/KonsolAppBot"}},s={stage:{konsol:"tg://resolve?domain=StageKonsolBot"},production:{konsol:"tg://resolve?domain=KonsolAppBot"}},l={stage:{konsol:"https://max.ru/id7707418148_2_bot"},production:{konsol:"https://max.ru/id7707418148_bot"}},u=function getTelegramUrl(e,t,r){var n;if("konsol_hrm"===r)return(0,o.O)(t,e?void 0:"start");var i="production",l=t?s:c,u=l[i][r],d=l[i].konsol,f=null!==u&&void 0!==u?u:d;if(e)return f;return a()(n="".concat(f)).call(n,"?start=start")},d=function getMaxUrl(e){var t,r=l.production,n=r.konsol;return null!==(t=r[e])&&void 0!==t?t:n}},61766:function(e,t,r){r.d(t,{l:function(){return p}});var n=r(61249),a=r(29365),o=r(32319),i=r(45144),c=r(2605),s=r(35302),l=r(12273),u=r(91413),d=r(55489),f=["captcha_token"],h=function(e){return e.verifyPassword="verify_session_password",e.createSession="create_session",e}({}),p=function useMutationCreateVerification(e){var t=(0,c.D)({mutationFn:function(){var t=(0,i.Z)((0,n.Z)().mark(function _callee(t){var r,i,c;return(0,n.Z)().wrap(function _callee$(n){for(;;)switch(n.prev=n.next){case 0:return r=t.captcha_token,i=(0,o.Z)(t,f),n.next=3,(0,l.z)({url:s.A.VerificationsAuthPost,method:"POST",headers:{"Content-Language":(0,d.sE)(u.ZP.language)},data:(0,a.Z)((0,a.Z)({},i),{},{action_cipher:e?h.verifyPassword:h.createSession},r&&{captcha_token:r}),withPrefix:!1});case 3:return c=n.sent,n.abrupt("return",c);case 5:case"end":return n.stop()}},_callee)}));return function mutationFn(e){return t.apply(this,arguments)}}()});return t}},62344:function(e,t,r){r.d(t,{E:function(){return u}});var n=r(80656),a=r(85152),o=r(88729),i=r(11290),c=function toggleReducer(e,t){return"boolean"===typeof t?t:!e},s=function useToggle(e){return(0,a.useReducer)(c,e)},l=r(81403),u=function useYandexCaptcha(){var e=(0,a.useState)(""),t=(0,n.Z)(e,2),r=t[0],c=t[1],u=s(!1),d=(0,n.Z)(u,2),f=d[0],h=d[1],p=s(!1),m=(0,n.Z)(p,2),g=m[0],v=m[1],b=(0,a.useState)(0),C=(0,n.Z)(b,2),x=C[0],S=C[1],w=(0,o.$G)().i18n,k=function handleSmartCaptchaRefresh(){r&&(c(""),S(function(e){return e+1}))};return{smartCaptchaComponent:(0,l.jsx)(i.h,{language:w.language,onSuccess:function handleSuccess(e){c(e),h(!1)},onNetworkError:k},x),smartCaptchaToken:r,smartCaptchaVisible:g,smartCaptchaError:f,handleSmartCaptchaToggle:function handleSmartCaptchaToggle(e){return v(e)},handleSmartCaptchaRefresh:k,handleSmartErrorToggle:function handleSmartErrorToggle(e){return h(e)}}}},90410:function(e,t,r){r.d(t,{N:function(){return o},O:function(){return i}});
1var n=r(12767),a=r.n(n),o=(r(95008),r(24757),r(96425),r(83229),function getHrmTelegramBotUsername(){return"konsolhrmapp_bot"}),i=function getHrmTelegramUrl(e,t){var r,n,i=o().replace(/^@/,"");if(!i||!/^[a-zA-Z0-9_]+$/.test(i))throw new Error("REACT_APP_HRM_TELEGRAM_BOT_USERNAME must be configured for HRM");var c=e?"tg://resolve?domain=".concat(i):"https://t.me/".concat(i);return t?a()(r=a()(n="".concat(c)).call(n,e?"&":"?","start=")).call(r,encodeURIComponent(t)):c}},42742:function(e,t,r){r.d(t,{C:function(){return formatPhone}});var n=r(12767),a=r.n(n);r(95008),r(1735);function formatPhone(e){var t,r,n,o;if(!e)return"";var i=e.match(/^\+(\d)(\d{3})(\d{3})(\d{2})(\d{2})$/);return i?a()(t=a()(r=a()(n=a()(o="+".concat(i[1]," (")).call(o,i[2],") ")).call(n,i[3],"-")).call(r,i[4],"-")).call(t,i[5]):e}}}]);
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.