PageSourceSearch

https://tv.mts.by/assets/ssr/AuthPage-Nyz8c65b.js

js mts.by collected 2026-10-01 10:17:37 UTC 25,695 bytes, 1 lines download raw bytes

1import{j as D,c as m,o as U,J as ge,k as w,s as n,l,v as o,n as a,D as e,B as A,$ as vt,H as d,E as Lt,e as Ie,a1 as fe,P as ke,a as Ve,U as V,O as _e,u as be,r as ee,w as Ct,K as Pe,h as Mt,q as Re}from"./vue-D47mIxKn.js";import{u as q,y as z,a as G,dA as yt,aW as se,z as te,w as ie,dG as Tt,dD as i,bc as N,l as wt,q as xt,dH as Ht,bk as St,bG as pe,x as I,d as Fe,am as Q,dI as At,dJ as $e,dK as Ee,a5 as Bt,aV as Pt,I as Rt,J as $t,d3 as he,s as Oe,dE as Et,dF as Ot}from"./sequoia-core-C9opehXT.js";import{A as It,_ as Vt}from"./AuthSlider-BJ_yNTFN.js";import{b as Ne,c as ne,a as oe,g as ve,I as De,L as Ft,ap as Nt}from"./sequoia-ui-4FY3kbpl.js";import{aa as me,z as Dt}from"./svg-BVh902Jo.js";import{S as Ue,b as Ut,c as qt,M as zt,_ as Gt,R as Wt,a as Kt}from"./MegafonSim-BaW8OukA.js";import{S as C}from"./StepOther-Dsz8ZJX1.js";import"./vendor-DAO7f7jf.js";import"./lodash-nRwxe0ET.js";import{_ as Jt,S as Qt,a as jt,b as Xt}from"./StepMultipleLogins.vue_vue_type_script_setup_true_lang-2mqiHF6r.js";import{_ as Yt}from"./StepPromoCode.vue_vue_type_script_setup_true_lang-UkgXLqHA.js";import"./uuid-ay_OU3Vs.js";import"./index-Bp5Q57X0.js";import"./sentry-CoC5n2CV.js";import"./SubscriptionTile-JyTTYwrl.js";const Zt={class:"step-auth"},en={key:0,class:"h3 mb-24 promocode-title"},tn=["innerHTML"],nn={key:2,class:"forgot-password mt-16 text-right description"},on=["innerHTML"],sn=["innerHTML"],qe=D({__name:"StepAuth",props:{title:{default:""},buttonText:{default:""},hasSignInContentBlock:{type:Boolean,default:!1},isPasswordForgotter:{type:Boolean,default:!1}},setup(W){const u=q(),{t:s}=z(),{isLoading:t,phone:b,correctPhoneLength:v,passwordMinLength:y,passwordMaxLength:p,passwordErrorText:_,phoneMask:x,statusForLoginInput:r,statusForPhoneInput:L,passwordAuth:h,onClickOnForgotPassword:H,onInput:M,gaNameComponent:g,isPromoCodeValid:S,canonicalValue:K,auth:$,contentBlock:T}=G(),{onCompletePhoneCallback:k,onIncompletePhoneCallback:E}=yt(),F=m(()=>{var B;return t.value||u.isPhoneMode&&((B=u.authAndReg)==null?void 0:B.phoneMask.use)&&(u.incompletePhoneInitialFlag||u.incompletePhone||se(b.value).length<v.value)||!u.isPhoneMode&&!b.value||h.value.length<y.value}),R=B=>{var J;const f=(J=B.target)==null?void 0:J.value;f&&se(f).length>=Tt&&(u.incompletePhoneInitialFlag=!1,u.authAndReg.phone=f)};return U(()=>{g.value="auth"}),(B,f)=>{var j;const J=ge("router-link");return n(),w("div",Zt,[B.title?(n(),w("h4",en,[o("span",{innerHTML:B.title},null,8,tn),e(S)?(n(),a(Ne,{key:0,class:"promocode-badge",text:e(K),icon:e(me),type:"promocode"},null,8,["text","icon"])):l("",!0)])):l("",!0),o("form",{autocomplete:"off",novalidate:"",onSubmit:f[6]||(f[6]=Lt((...P)=>e($)&&e($)(...P),["prevent"]))},[e(u).isPhoneMode&&e(u).authAndReg.phoneMask.phoneCode?(n(),a(ne,{key:0,modelValue:e(u).authAndReg.phone,"onUpdate:modelValue":f[0]||(f[0]=P=>e(u).authAndReg.phone=P),"input-category":"floating",type:"tel",size:"medium",required:"",mask:e(x),label:e(s)("phone_number_reg"),status:e(L),onFocus:f[1]||(f[1]=P=>e(te)({action:"Фокус в поле телефон"})),onKeypress:e(M),onChange:R,onOnCompletePhoneCallback:e(k),onOnIncompletePhoneCallback:e(E)},null,8,["modelValue","mask","label","status","onKeypress","onOnCompletePhoneCallback","onOnIncompletePhoneCallback"])):(n(),a(ne,{key:1,modelValue:e(u).authAndReg.phone,"onUpdate:modelValue":f[2]||(f[2]=P=>e(u).authAndReg.phone=P),"input-category":"floating",size:"medium",required:"",mask:(j=e(u).authAndReg)==null?void 0:j.loginMask,status:e(r),label:e(s)("login_reg"),onFocus:f[3]||(f[3]=P=>e(te)({action:"Фокус в поле логин"}))},null,8,["modelValue","mask","status","label"])),A(ne,{modelValue:e(h),"onUpdate:modelValue":f[4]||(f[4]=P=>vt(h)?h.value=P:null),"input-category":"floating",size:"medium",icon:"visibility",required:"",minlength:e(y),maxlength:e(p),label:e(s)("password_reg"),message:e(_),status:e(_)?"error":"",onFocus:f[5]||(f[5]=P=>e(te)({action:"Фокус в поле пароль"}))},null,8,["modelValue","minlength","maxlength","label","message","status"]),B.isPasswordForgotter?(n(),w("div",nn,[A(J,{to:"/reset",class:"link nav-underlined mb-16",onClick:e(H),innerHTML:e(s)("forgot_password_reg")},null,8,["onClick","innerHTML"])])):l("",!0),!e(ie)().isMts&&B.hasSignInContentBlock&&e(T)?(n(),w("div",{key:3,class:"content-block mt-16",innerHTML:e(T)},null,8,on)):l("",!0),A(oe,{class:"mt-16",size:"medium","full-width":!0,"is-loading":e(t),disabled:F.value},{default:d(()=>[o("span",{innerHTML:B.buttonText},null,8,sn)]),_:1},8,["is-loading","disabled"])],32)])}}}),an={class:"registration auth-sm"},rn=["innerHTML"],ln=["innerHTML"],un={class:"mb-24"},cn=["innerHTML"],dn={class:"description"},_n={class:"register-link-container text-center mt-16 mb-16 px-0"},pn=D({__name:"AuthSM",setup(W){const u=q(),{t:s}=z(),{initialLoading:t,gaEventAuth:b,flushProcess:v,auth:y,passwordAuth:p,verificationComponentName:_}=G(),x=m(()=>u.isPhoneMode?s("enter_phone_password"):s("enter_login_password")),r=m(()=>u.isPhoneMode?s("registered_login"):s("registered_phone")),L=()=>({title:s("login_meta_title"),meta:[{name:"description",content:s("login_meta_description")},{name:"keywords",content:s("login_meta_keywords")}]}),h=()=>{u.isPhoneMode=!u.isPhoneMode,u.authAndReg.phone="",p.value="",u.incompletePhoneInitialFlag=!0,u.incompletePhone=!1,b({action:`Клик ${u.isPhoneMode?'"Я регистрировался по Ð
1½Ð¾Ð¼ÐµÑ€Ñƒ телефона"':'"Я регистрировался по логину"'}`})};return U(()=>{u.isPhoneMode=!1,u.authAndReg.phone="",_.value="authentication",t.value=!1}),Ie(()=>{v()}),fe(()=>{L()}),(H,M)=>{const g=ge("router-link");return n(),w("div",an,[e(t)?(n(),a(ve,{key:0})):(n(),w(ke,{key:1},[o("h4",{class:"h3 mb-24",innerHTML:e(s)("enter_reg")},null,8,rn),o("div",{class:"description mb-16",innerHTML:x.value},null,8,ln),o("div",un,[o("span",{class:"link nav-underlined",onClick:h,innerHTML:r.value},null,8,cn)]),A(qe,{"is-password-forgotter":!0,"button-text":e(s)("signin_reg"),onAuth:e(y)},null,8,["button-text","onAuth"]),o("div",dn,[o("div",_n,[A(g,{to:"/reg",class:"link nav-underlined",onClick:M[0]||(M[0]=S=>e(b)({action:"Клик - Регистрация"})),innerHTML:e(s)("registration_reg")},null,8,["innerHTML"])])])],64))])}}}),hn={class:"auth-wl"},mn=["innerHTML"],gn=["innerHTML"],fn={class:"provider-phone body1"},kn=["innerHTML"],bn=["textContent"],vn=["innerHTML"],Ln=["innerHTML"],Cn=["innerHTML"],Mn=["innerHTML"],yn=["innerHTML"],Tn=["innerHTML"],wn=D({__name:"AuthWL",setup(W){const u=Ve(),s=q(),{t}=z(),{changeStep:b,auth:v,redirectAfterLogin:y,currentStep:p,phone:_,promoCode:x,isPromoCodeValid:r,promoCodeResultText:L,canonicalValue:h}=G(),H=m(()=>t(s.authAndReg.textBelowLoginButtonId?s.authAndReg.textBelowLoginButtonId:"")),M=()=>{x.value="",r.value=!1,v()},g=async()=>{await u.push("/login"),b(i.promoOffers)};return U(()=>{ie().isMts||(s.isPhoneMode=!1),b(i.auth)}),(S,K)=>(n(),w("div",hn,[e(p)===e(i).auth?(n(),a(qe,{key:0,title:e(t)("enter_reg"),"has-sign-in-content-block":!0,"button-text":e(t)("signin"),onAuth:e(v)},null,8,["title","button-text","onAuth"])):l("",!0),e(p)===e(i).promoCodeUserExist?(n(),a(C,{key:1,title:e(t)("auth_promo_code_error_title"),hasError:!0,"icon-name":"gift","result-step":!0,"has-marker":!0,"button-text":e(t)("auth_promo_code_success_btn"),onClickButton:M},{description:d(()=>[o("span",{innerHTML:e(t)("auth_promo_code_userexist_text")},null,8,mn)]),_:1},8,["title","button-text"])):l("",!0),e(p)===e(i).promoCodeSuccess?(n(),a(C,{key:2,title:e(t)("auth_promo_code_success_title"),"button-text":e(t)("auth_promo_code_success_btn"),"icon-name":"check","icon-class-name":"success",onClickButton:M},{description:d(()=>[o("span",{innerHTML:e(L)||e(t)("auth_promo_code_success_text")},null,8,gn)]),_:1},8,["title","button-text"])):l("",!0),e(p)===e(i).promoOffers?(n(),a(Ue,{key:3})):l("",!0),e(p)===e(i).subscriptionSuccess?(n(),a(C,{key:4,"result-step":!0,"icon-name":"gift",title:e(t)("promocode_subsciribe_success_connect_title"),"button-text":e(t)("signin_reg"),onClickButton:e(y)},{description:d(()=>[o("div",fn,[o("span",{innerHTML:e(t)("phone_number_reg")},null,8,kn),V(": "),o("b",{textContent:_e(e(N)(e(_)))},null,8,bn)])]),afterButton:d(()=>[o("span",{innerHTML:e(t)("benefits_promo_code")},null,8,vn),V(" "),o("b",{innerHTML:e(h)},null,8,Ln),o("div",{class:"font-tertiary",innerHTML:e(L)},null,8,Cn)]),_:1},8,["title","button-text","onClickButton"])):l("",!0),e(p)===e(i).subscriptionFailed?(n(),a(C,{key:5,"result-step":!0,"icon-name":"warning",title:e(t)("auth_promo_subsciribe_fail_connect_title"),"button-text":e(t)("try_again_2"),"button-text2":e(t)("auth_promo_code_next_without_subscribe"),onClickButton:g,onClickButton2:e(y)},{description:d(()=>[o("span",{innerHTML:e(t)("auth_promo_subsciribe_fail_text")},null,8,Mn)]),_:1},8,["title","button-text","button-text2","onClickButton2"])):l("",!0),e(p)===e(i).promoCodeError?(n(),a(C,{key:6,title:e(t)("something_went_wrong"),"button-text":e(t)("signin"),"icon-name":"warning","result-step":!0,onClickButton:e(y)},{description:d(()=>[o("span",{innerHTML:e(t)("auth_promo_code_error_text")},null,8,yn)]),_:1},8,["title","button-text","onClickButton"])):l("",!0),H.value?(n(),w("div",{key:7,class:"text-center mt-16",innerHTML:H.value},null,8,Tn)):l("",!0)]))}}),xn={class:"step-auth-mts"}
1,Hn={key:0,class:"h3 mb-24 promocode-title"},Sn=["innerHTML"],An=["innerHTML"],Bn=["innerHTML"],Pn=["innerHTML"],Rn=["innerHTML"],$n=D({__name:"StepAuthMts",props:{title:{default:""}},emits:["clickNextButton","clickLoginByPasswordButton"],setup(W,{emit:u}){const s=q(),{t}=z(),{phoneMask:b,onInput:v,changeStep:y,isSmsAuth:p,isAuthWithPassword:_,isPromoCodeValid:x,canonicalValue:r,contentBlock:L}=G(),h=u,H=m(()=>{var M;return!x.value&&((M=s.authAndReg)==null?void 0:M.usePromoCodes)});return U(()=>{p.value=_.value=!1}),(M,g)=>(n(),w("div",xn,[M.title?(n(),w("h4",Hn,[o("span",{innerHTML:M.title},null,8,Sn),e(x)?(n(),a(Ne,{key:0,class:"promocode-badge",text:e(r),icon:e(me),type:"promocode"},null,8,["text","icon"])):l("",!0)])):l("",!0),A(ne,{modelValue:e(s).authAndReg.phone,"onUpdate:modelValue":g[0]||(g[0]=S=>e(s).authAndReg.phone=S),"input-category":"floating",type:"tel",size:"medium",required:"",mask:e(b),label:e(t)("phone_number_reg"),onKeypress:e(v)},null,8,["modelValue","mask","label","onKeypress"]),A(oe,{class:"mt-16",size:"medium","full-width":!0,onClick:g[1]||(g[1]=S=>h("clickNextButton"))},{default:d(()=>[o("span",{innerHTML:e(t)("mts_ask_code")},null,8,An)]),_:1}),A(oe,{class:"mt-16","full-width":!0,size:"medium",view:"secondary",onClick:g[2]||(g[2]=S=>h("clickLoginByPasswordButton"))},{default:d(()=>[o("span",{innerHTML:e(t)("mts_login_with_password")},null,8,Bn)]),_:1}),H.value?(n(),a(oe,{key:1,class:"mt-16",type:"button",view:"secondary",size:"medium","with-icon":!0,"full-width":!0,onClick:g[3]||(g[3]=S=>e(y)(e(i).promoCode))},{default:d(()=>[A(De,{svg:e(me)},null,8,["svg"]),o("span",{innerHTML:e(t)("i_have_promo_code")},null,8,Pn)]),_:1})):l("",!0),e(L)?(n(),w("div",{key:2,class:"content-block mt-24",innerHTML:e(L)},null,8,Rn)):l("",!0)]))}}),En={class:"registration auth-and-reg-by-sms-wl"},On=["innerHTML"],In=["innerHTML"],Vn=["innerHTML"],Fn={class:"provider-phone body1"},Nn=["innerHTML"],Dn=["textContent"],Un=["innerHTML"],qn=["innerHTML"],zn=["innerHTML"],Gn=["innerHTML"],Wn=["innerHTML"],Kn=["innerHTML"],Jn=["innerHTML"],Qn=["innerHTML"],jn=["innerHTML"],Xn=o("br",null,null,-1),Yn=["innerHTML"],Zn=["innerHTML"],eo={class:"provider-phone body1"},to=["innerHTML"],no=["textContent"],oo=["innerHTML"],so=["innerHTML"],io=["innerHTML"],ao=["innerHTML"],ro=["innerHTML"],lo=D({__name:"AuthAndRegBySmsWL",setup(W){const u=be(),s=q(),{t,hasTranslation:b}=z(),v=Fe(),y=wt("auth-and-reg-by-sms"),{isAnonymous:p}=xt(),{phone:_,isAuth:x,currentStep:r,initialLoading:L,usePlusInPhoneMethods:h,incompletePhone:H,loginMethod:M,phoneUnsupported:g,flushProcess:S,checkCode:K,passwordAuth:$,changeStep:T,setLoading:k,gaEventAuth:E,showErrorPage:F,redirectAfterLogin:R,handleError:B,prepareFinishRegistration:f,auth:J,start:j,sendCheckedCode:P,getLogins:ae,continueWithoutPromoCode:ze,signIn:Le,tryAgainSelectPromoOffer:Ge,promoCodeRegister:We,selectLogin:Ke,handleSwitch:Je,afterFinishRegistration:Qe,errorText:je,gaNameComponent:Xe,verificationComponentName:Ye,isSmsAuth:Ze,isAuthWithPassword:Ce,phoneUnsupportedMessage:et,promoCode:tt,isPromoCodeValid:X,promoCodeResultText:re,promoCodeId:nt,canonicalValue:Me,isAutoLoginLoading:le,logins:ue,errorMessages:ye,isLoading:ot,onRecaptchaExecute:st,captchaRefreshValue:it,clientAnalyticsShowPage:at,clientAnalyticsClick:ce}=G(),Te=ee(!1),we=ee(!1),de=ee(""),rt=m(()=>se(_.value,h.value.auth)),lt=m(()=>t(de.value==="reg"?s.authAndReg.textBelowRegButtonId:s.authAndReg.textBelowLoginButtonId)),ut=m(()=>{const c=b("description_step_start_auth_sms_step")?t("description_step_start_auth_sms_step"):"",O=b("description_step_start_auth_passwd_step")?t("description_step_start_auth_passwd_step"):"";return s.isPhoneMode?c:O}),ct=m(()=>H.value?t("incomplete_phone_reg"):g.value?et.value:""),Y=m(()=>t(de.value==="reg"?"registration":"enter")),dt=m(()=>M.value===Ht.smsAndPasswd),xe=m(()=>t(`welcome_back_${St().wlAppId}`)),_t=async()=>{if(k(!0),await ae(),X.value&&ue.value.length<=1)return await We();try{switch(ue.value.length){case 0:await pt(),E({action:"Показ страницы - К сожалению, номер не зарегистрирован"});break;case 1:k(!1),x.value?await Le(!0,!0):T(i.phoneFoundBeforeReset);break;default:k(!1),T(i.multipleLogins);break}}catch(c){if(k(!1),c.resStatus===$e)T(i.outdated);else if(c.resStatus===Q.SERVER_ERROR)ye.value.push(c.message);else if(c.resStatus===Ee)F(c);else throw c}},pt=async()=>{try{await I.registration.registerMobileWithToken(s,{languageCode:s.languageCode,ctx:v,params:f()}),await Bt(3e3),await ae(),k(!1),await Qe()}catch(c){if(c.resStatus===$e)T(i.outdated);else if(c.resStatus===Ee)F(c);else if(c.resStatus===Q.BAD_REQUEST)T(i.phoneUnsupported);else throw c;k(!1)}},ht=()=>{Ze.value=!0,T(i.start)},He=()=>{Ce.value=!0,Pe(()=>{s.isPhoneMode=!0})},Se=async()=>
1{if(!le.value){le.value=!0;try{await I.authAndReg.uztelAuth(s,v),I.notifications.showLoginSuccessNotification(s),te({category:"auth",action:"Вход по IP"}),await R()}catch(c){y.error(c),je.value=c.message||"",T(i.autoLoginFailed)}finally{le.value=!1}}},mt=async()=>{k(!0);try{await I.authAndReg.login(s,v,rt.value,$.value),X.value?(we.value=!0,T(i.promoCodeUserExist)):await R()}catch(c){c.resStatus===Q.FORBIDDEN&&await gt()}},gt=async()=>{const c={login:se(_.value,h.value.registration),password:$.value};X.value&&ue.value.length<=1&&(c.promocode=nt.value);try{await At({languageCode:s.languageCode,ctx:v,data:c}),Te.value=!0;const O=X.value?i.promoCodeSuccess:i.finish;T(O)}catch(O){B(O),$.value=""}},Z=async(c=!1)=>{we.value?await R():Te.value?await J():(await ae(),await Le(!0,c))},ft=()=>({title:t("login_meta_title")}),Ae=async()=>{try{await P(),await _t()}catch(c){c.resStatus===Q.NOT_FOUND||c.resStatus===Q.BAD_REQUEST?F(c):ye.value.push(c.message)}},Be=()=>{S(),ce({item:"button_try_again"})},kt=()=>{T(i.promoCode),ce({item:"button_put_another_promocode"})},bt=()=>{ce({item:"button_login"}),Z(!0)};return Ct(K,async c=>{if(ot.value||ie().isMts)return;c.replace(/\D/g,"").length===Pt&&await Ae()}),U(async()=>{pe()&&!p.value&&T(i.promoOffers),Xe.value="login",Ye.value="authentication",s.isPhoneMode=!0,Ce.value=!1,await Pe(()=>{it.value++}),u.query.phone&&(s.authAndReg.phone="+7"+u.query.phone,s.incompletePhoneInitialFlag=!1),L.value=!1,at(r.value)}),fe(()=>{de.value=u.query.type==="reg"?"reg":"",ft()}),Ie(()=>{S(!1)}),(c,O)=>(n(),w("div",En,[e(L)?(n(),a(ve,{key:0})):(n(),w(ke,{key:1},[e(r)===e(i).start?(n(),a(Jt,{key:0,title:Y.value,description:ut.value,"text-below-button":lt.value,"input-phone-message":ct.value,"is-change-phone-mode-visible":dt.value,onClickAuthWithPassword:He,onAutoLogin:Se,onChangePhoneMode:e(Je),onRecaptchaExecute:e(st)},null,8,["title","description","text-below-button","input-phone-message","is-change-phone-mode-visible","onChangePhoneMode","onRecaptchaExecute"])):l("",!0),e(r)===e(i).authMts?(n(),a($n,{key:1,title:e(t)("enter_reg"),"sign-in-content-block":!0,"button-text":e(t)("signin"),onClickNextButton:ht,onClickLoginByPasswordButton:He},null,8,["title","button-text"])):l("",!0),e(r)===e(i).checkCode?(n(),a(Qt,{key:2,title:e(t)("enter"),"is-resend-code-enabled":!e(ie)().isMts,onClickButton:Ae},null,8,["title","is-resend-code-enabled"])):l("",!0),e(r)===e(i).simPassword?(n(),a(Ut,{key:3,title:Y.value,onSendSimPassword:mt},null,8,["title"])):l("",!0),e(r)===e(i).captcha?(n(),a(jt,{key:4,title:e(t)("enter_reg"),onStart:e(j)},null,8,["title","onStart"])):l("",!0),e(r)===e(i).multipleLogins?(n(),a(Xt,{key:5,title:xe.value,description:e(t)("select_login"),onSelectLogin:e(Ke)},null,8,["title","description","onSelectLogin"])):l("",!0),e(r)===e(i).phoneFoundBeforeReset?(n(),a(C,{key:6,title:xe.value,login:e(N)(e(_)),"step-name":e(r),onClickLogin:bt},{description:d(()=>[o("span",{innerHTML:e(t)("phone_already_registered").replace("%phone%",e(N)(e(_)))},null,8,On)]),_:1},8,["title","login","step-name"])):l("",!0),e(r)===e(i).promoCode?(n(),a(Yt,{key:7,title:e(t)("auth_promo_code_title"),description:e(t)("auth_promo_code_description"),"button-text":e(t)("auth_promo_code_btn")},null,8,["title","description","button-text"])):l("",!0),e(r)===e(i).promoCodeNotFound?(n(),a(C,{key:8,title:e(t)("auth_promo_code_error_title"),"button-text":e(t)("enter_another"),"button-text2":e(t)("auth_promo_code_next_without_code"),hasError:!0,"icon-name":"gift","result-step":!0,"has-marker":!0,"step-name":e(r),onClickButton:kt,onClickButton2:e(ze)},{description:d(()=>[o("span",{innerHTML:e(re)||e(t)("auth_promo_code_notFound_description").replace("%code%",e(tt).toUpperCase())},null,8,In)]),_:1},8,["title","button-text","button-text2","step-name","onClickButton2"])):l("",!0),e(r)===e(i).promoCodeUserExist?(n(),a(C,{key:9,title:e(t)("auth_promo_code_error_title"),hasError:!0,"icon-name":"gift","result-step":!0,"has-marker":!0,"step-name":e(r),"button-text":e(t)("auth_promo_code_success_btn"),onClickButton:O[0]||(O[0]=fo=>Z(!0))},{description:d(()=>[o("span",{innerHTML:e(t)("auth_promo_code_userexist_text").replace("%phone%",e(N)(e(_)))},null,8,Vn)]),_:1},8,["title","step-name","button-text"])):l("",!0),e(r)===e(i).promoCodeSuccess?(n(),a(C,{key:10,title:e(t)("auth_promo_code_success_title"),"button-text":e(t)("auth_promo_code_success_btn"),"icon-name":"gift","result-step":!0,"step-name":e(r),onClickButton:Z},{description:d(()=>[o("div",Fn,[o("span",{innerHTML:e(t)("phone_number_reg")},null,8,Nn),V(": "),o("b",{textContent:_e(e(N)(e(_)))},null,8,Dn)])]),afterButton:d(()=>
1[o("span",{innerHTML:e(t)("benefits_promo_code")},null,8,Un),V(" "),o("b",{innerHTML:e(Me)},null,8,qn),o("div",{class:"font-tertiary",innerHTML:e(re)},null,8,zn)]),_:1},8,["title","button-text","step-name"])):l("",!0),e(r)===e(i).autoLoginFailed?(n(),a(C,{key:11,title:e(t)("something_went_wrong"),hasError:!0,"result-step":!0,"icon-name":"warning","button-text":e(t)("try_again_1"),"button-text2":e(t)("signin_another_way"),"step-name":e(r),onClickButton:Se,onClickButton2:e(S)},{description:d(()=>[o("span",{innerHTML:e(t)("auto_login_error_text")},null,8,Gn)]),_:1},8,["title","button-text","button-text2","step-name","onClickButton2"])):l("",!0),e(r)===e(i).finish?(n(),a(C,{key:12,title:e(t)("congratulations"),"button-text":e(t)("watch_reg"),"icon-name":"check","result-step":!0,"step-name":e(r),onClickButton:Z},{description:d(()=>[o("span",{innerHTML:e(t)("phone_number_reg")},null,8,Wn),V(" "),o("b",{class:"phone",innerHTML:e(N)(e(_))},null,8,Kn),V(" "),o("span",{innerHTML:e(t)("is_registered")},null,8,Jn),o("span",{innerHTML:e(t)("start_subscription")},null,8,Qn)]),_:1},8,["title","button-text","step-name"])):l("",!0),e(r)===e(i).outdated?(n(),a(C,{key:13,title:Y.value,"button-text":e(t)("try_again_2"),"step-name":e(r),onClickButton:Be},{description:d(()=>[o("span",{innerHTML:e(t)("session_time_out")},null,8,jn),Xn,o("span",{innerHTML:e(t)("try_again_1")},null,8,Yn)]),_:1},8,["title","button-text","step-name"])):l("",!0),e(r)===e(i).phoneUnsupported?(n(),a(C,{key:14,title:Y.value,"button-text":e(t)("try_again_2"),"step-name":e(r),onClickButton:e(S)},{description:d(()=>[o("span",{innerHTML:e(t)("phone_unsupported_reg_kt")},null,8,Zn)]),_:1},8,["title","button-text","step-name","onClickButton"])):l("",!0),e(r)===e(i).error?(n(),a(C,{key:15,title:e(t)("something_went_wrong"),"button-text":e(t)("try_again_2"),hasError:!0,"icon-name":"warning","result-step":!0,"step-name":e(r),onClickButton:Be},null,8,["title","button-text","step-name"])):l("",!0),e(r)===e(i).promoOffers?(n(),a(Ue,{key:16})):l("",!0),e(r)===e(i).subscriptionSuccess?(n(),a(C,{key:17,"result-step":!0,"icon-name":"gift",title:e(t)("promocode_subsciribe_success_connect_title"),"button-text":e(t)("signin_reg"),"step-name":e(r),onClickButton:e(R)},{description:d(()=>[o("div",eo,[o("span",{innerHTML:e(t)("phone_number_reg")},null,8,to),V(": "),o("b",{textContent:_e(e(N)(e(_)))},null,8,no)])]),afterButton:d(()=>[o("span",{innerHTML:e(t)("benefits_promo_code")},null,8,oo),V(" "),o("b",{innerHTML:e(Me)},null,8,so),o("div",{class:"font-tertiary",innerHTML:e(re)},null,8,io)]),_:1},8,["title","button-text","step-name","onClickButton"])):l("",!0),e(r)===e(i).subscriptionFailed?(n(),a(C,{key:18,"result-step":!0,"icon-name":"warning",title:e(t)("auth_promo_subsciribe_fail_connect_title"),"button-text":e(t)("try_again_2"),"button-text2":e(t)("auth_promo_code_next_without_subscribe"),"step-name":e(r),onClickButton:e(Ge),onClickButton2:e(R)},{description:d(()=>[o("span",{innerHTML:e(t)("auth_promo_subsciribe_fail_text")},null,8,ao)]),_:1},8,["title","button-text","button-text2","step-name","onClickButton","onClickButton2"])):l("",!0),e(r)===e(i).promoCodeError?(n(),a(C,{key:19,title:e(t)("something_went_wrong"),"button-text":e(t)("signin"),"icon-name":"warning","result-step":!0,"step-name":e(r),onClickButton:e(R)},{description:d(()=>[o("span",{innerHTML:e(t)("auth_promo_code_error_text")},null,8,ro)]),_:1},8,["title","button-text","step-name","onClickButton"])):l("",!0),e(r)===e(i).evictedDevices?(n(),a(qt,{key:20,title:e(t)("device_limit"),onClickButton:e(R)},null,8,["title","onClickButton"])):l("",!0)],64))]))}}),uo={class:"registration auto-login"},co=["innerHTML"],_o=D({__name:"AutoLogin",setup(W){const{t:u}=z(),s=Fe(),t=q(),b=be(),v=Ve(),{currentStep:y,changeStep:p}=G(),_=ee(!0);U(()=>{x()});const x=async()=>{var h;const L=((h=b.query)==null?void 0:h.msisdn)||"";if(!L){_.value=!1,p(i.autoLoginMegafonFailed);return}try{const H=b.name||"";await I.authAndReg.autoLoginMegafon(t,s,H,L),Rt.set($t.welcomeScreenConfirmed,"1"),await v.push("/"),H===he.autoLogin18p&&I.notifications.showAutologinMegafonNotification(t)}catch{p(i.autoLoginMegafonFailed)}finally{_.value=!1}},r=()=>{p(i.start),v.push("/login")};return(L,h)=>(n(),w("div",uo,[_.value?(n(),a(ve,{key:0})):l("",!0),!_.value&&e(y)===e(i).autoLoginMegafonFailed?(n(),a(C,{key:1,title:e(u)("enter_reg"),"button-text":e(u)("signin_reg"),onClickButton:r},{description:d(()=>[o("span",{innerHTML:e(u)("auto_login_failed")},null,8,co)]),_:1},8,["title","button-text"])):l("",!0)]))}}),po={class:"auth-header-inner"},ho=["innerHTML"],mo={class:"auth-steps"},go={class:"auth-steps-inner"},Ro=D({__name:"AuthPage",setup(W){const u=be(),s=q(),{t}=z(),{isLoginSms:b,isLoginSmotreshka:v,isLoginN3:y,currentStep:p,selectedPromoCodeOffer:_,initCurrentStep:x}=G(),r=m(()=>s.theme),L=m(()=>Oe.registration.hasAcquiringSelector(s)),h=m(()=>Oe.registration.hasApplicableTrialsSelector(s)),H=m(()=>u.name===he.autoLogin||u.name===he.autoLogin18p),M=m(()=>{const k=pe();return p.value!==i.simPassword&&p.value!==i.promoOffers&&k!=="1"}),g=m(()=>p.value===i.promoOffers),S=m(()=>{var E;const k=pe();return _.value&&((E=k==null?void 0:k.recommendOfferId)==null?void 0:E.split(",").length)>1}),K=m(()=>{var k;return g.value&&((k=u.query)==null?void 0:k.subscribed)!=="true"}),$=m(()=>({title:t("login_meta_title"),meta:[{name:"description",content:t("login_meta_description")},{name:"keywords",content:t("login_meta_keywords")}]})),T=()=>{s.common.isPromoCodeOfferSkipVisible=!0,Et(s,Ot.skipPromoOffers)};return Mt(()=>{x()}),U(()=>{I.modals.hideAllModals(s),I.seo.initMeta(s,$.value)}),fe(()=>{I.seo.initMeta(s,$.value),x()}),(k,E)=>{const F=ge("router-link");return L.value?(n(),a(Kt,{key:1,"with-background":!h.value},{default:d(()=>[A(Wt,{"has-trials":h.value},null,8,["has-trials"])]),_:1},8,["with-background"])):(n(),a(Vt,{key:0},{default:d(()=>[o("div",{class:Re(["auth-header",{"offer-header":g.value}])}
1,[o("div",po,[S.value?(n(),w("button",{key:0,type:"button",class:"button button-action button-back",onClick:E[0]||(E[0]=R=>_.value="")},[A(De,{svg:e(Dt)},null,8,["svg"]),o("span",{class:"button-text",innerHTML:e(t)("all_subscribes")},null,8,ho)])):l("",!0),A(Ft,{"theme-forced":r.value},null,8,["theme-forced"]),K.value?(n(),a(Nt,{key:1,text:e(t)("skip"),class:"skip-button",onSkip:T},null,8,["text"])):l("",!0)])],2),o("div",{class:Re(["auth-content",{"offer-content":g.value}])},[M.value?(n(),a(It,{key:0})):(n(),a(zt,{key:1})),o("div",mo,[o("div",go,[H.value?(n(),a(_o,{key:0})):e(y)?(n(),a(pn,{key:1})):e(v)?(n(),a(Gt,{key:2})):e(b)?(n(),a(lo,{key:3})):(n(),w(ke,{key:4},[A(wn),e(s).authAndReg.restorePassword&&e(s).authAndReg.restorePassword.show?(n(),a(F,{key:0,class:"link nav-underlined",to:"/reset",innerHTML:e(t)("forgot_password")},null,8,["innerHTML"])):l("",!0)],64))])])],2)]),_:1}))}}});export{Ro as default};

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.