PageSourceSearch

https://public.superjob.ru/cdn/sj-front/64818621cca0/desktop/assets/authPassword.d581ff87.chunk.js

js superjob.ru collected 2026-10-01 08:47:05 UTC 9,855 bytes, 1 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[10978],{97258(e,r,t){t.r(r),t.d(r,{default:function(){return w}});var o=t(38744),a=t(83622),s=t(33593),n=t(63696),l=t(85022),i=t(31674),c=t(41506),d=t(87339),u=t(38122),h=t(80733),m=t(54448),f=t(66600),A=t(69544),b=t(17062);const p="_1SNM7",v="YOt0y";var g=t(62540);function C(){const e=(0,l.wA)(),r=(0,l.d4)(e=>e.currentRoute),t=(0,m.K)({nodeValue:u.A.authDialog});n.useEffect(()=>{r.routeParams[i.vI]&&requestAnimationFrame(()=>e((0,c.Ni)("При попытке авторизоваться через социальную сеть произошла ошибка"))),e((0,d.Y)())},[r.routeParams,e]);const o=n.useCallback(e=>(0,g.jsx)("div",{className:p,children:e}),[]),a=n.useCallback(()=>(0,g.jsx)(A.default,{theme:"white"}),[]);return(0,g.jsx)(b.A,{fullWidth:!0,fullHeight:!0,withBgColorGray:!0,renderChildrenWrapper:o,renderHeader:a,children:(0,g.jsx)(f.A,{ref:t,coloredBorder:!0,className:v,bgColor:"white",borderRadius:"1",padding:"6",children:(0,g.jsx)(h.default,{})})})}const j=n.memo(C),w=e=>{if(!e.query[a.gV])return{redirect:{routeName:o.Ay.authLogin}};return{action:(0,s.A)(e),chunks:["authPassword"],component:(0,g.jsx)(j,{})}};t.dn(w)},26773(e,r,t){const o=Object.freeze({icon:"world",color:"gray"}),a=Object.freeze({icon:"search_outline",color:"gray"}),s=Object.freeze({icon:"search_outline",size:"96",color:"gray"}),n=Object.freeze({icon:"info_fill",color:"yellow"}),l=Object.freeze({icon:"check",color:"green",size:"96"}),i=Object.freeze({icon:"mood_bad_outline",color:"gray",size:"96"}),c=Object.freeze({icon:"block",color:"red",size:"96"});t.d(r,["D",0,s,"Is",0,a,"QK",0,i,"ZW",0,l,"be",0,n,"uQ",0,o,"yy",0,c])},75724(e,r,t){var o=t(85022);const a=function(e){return(0,o.d4)(r=>r.cookies[e])};t.d(r,["A",0,a])},90278(e,r,t){var o=t(85022),a=t(22408);const s=function(e){return(0,o.d4)(r=>e.some(e=>(0,a.QO)(r,e)))};t.d(r,["A",0,s])},31421(e,r,t){const o="applicant",a="hr",s=[{id:o,name:o,value:o,label:"Ищу работу"},{id:a,name:a,value:a,label:"Ищу сотрудников"}];t.d(r,["l",0,s,"z",0,o])},93409(e,r,t){var o=t(24885),a=t(19328),s=t(21767),n=t(60395),l=t(31421);const i=e=>{const r=(0,s.tb)(e),t=r.authType,o=r.userType,a=(0,n.yd)(e.currentRoute.routeParams),l=a.authType,i=a.userType;return t||o||l||i},c=e=>e.cookies[a.XJ],d=(0,o.Mz)([i,c],(e,r)=>e||r||l.z);t.d(r,["Cu",0,c,"eV",0,i,"u9",0,d])},80733(e,r,t){t.r(r),t.d(r,{default:function(){return ee}});var o=t(63696),a=t(85022),s=t(84175),n=t.n(s),l=t(32406),i=t(20194),c=t(48925),d=t(85860),u=t(65113),h=t(19328),m=t(22536),f=t(38744),A=t(31674),b=t(72697),p=t(35122),v=t(26773),g=t(38743),C=t(85461),j=t(19863),w=t(55051),y=t(71942),x=t(58107),_=t(9379),S=t(52130),R=t(93474),z=t(52150),k=t(73228),O=t(91705);var P=t(16563),D=t(83672),N=t(1461),E=t(83622),I=t(93409),F=t(11868),L=t(75724),T=t(90278),U=t(79091),M=t(44621),H=t(34626),W=t(66600),V=t(80691),B=t(35178),G=t(94195),K=t(91069),q=t(94261),Y=t(14044),Q=t(62540);const Z={password:"",form:""},X={password:[(0,u.mw)()]},$=[m.A.AUTH_FORM_LOADER,m.A.RESTORE_PASSWORD_LOADER];function J(e){let r=e.hideTitle,t=void 0!==r&&r;const s=(0,a.wA)(),u=(0,T.A)($),J=(0,a.d4)(c.gN),ee=(0,i.zG)(J[E.gV]),re=(0,i.zG)(J.returnUrl),te=(0,i.zG)(J.maskedContactId),oe=(0,a.d4)(I.u9),ae=(0,o.useRef)(!1),se=(0,L.A)(h.KC),ne=(0,F.z)({nodeValue:N.A.sberSms,implicitEventParams:{action:D.A.tap,value:{repeated:!!se}}}).analyticsEventSourceRef,le=(0,F.z)({nodeValue:N.A.sms,implicitEventParams:{action:D.A.tap,value:{}}}).analyticsEventSourceRef;(0,o.useEffect)(()=>{const e=()=>{ae.current&&(0,l.TV)(h.KC,"true",{expires:new Date(Date.now()+p.I.hour)})};return window.addEventListener("pagehide",e),()=>window.removeEventListener("pagehide",e)},[]);const ie=(0,o.useCallback)(()=>{s((0,j.yo)({formId:w.A.USER_PASSWORD_FORM,errors:{}}))},[s]),ce=(0,o.useCallback)(()=>s("hr"===oe?(0,P.cT)({initialLogin:ee,returnUrl:re,maskedContactId:te}):(0,P._s)({phoneMethod:b.Rj.sms,login:ee,destination:(0,d.zU)(ee)?"phone":"email",formId:w.A.USER_PASSWORD_FORM,fieldName:"code"})),[oe,s,ee,re,te]),de=(0,o.useMemo)(()=>
1{if(!(0,d.zU)(ee)||!(0,U.G7)(M.A.sberAccessRecovery))return null;const e=(0,H.qH)(ee).replace(/\D/g,"");return(0,i.O$)(A.Ed,{phone:e,returnUrl:re})},[ee,re]),ue=(0,o.useCallback)(()=>{ae.current=!0},[]),he=(0,o.useCallback)((e,r)=>{const o=(0,d.zU)(ee);return(0,Q.jsx)("form",{onSubmit:r,children:(0,Q.jsxs)(B.A,{spacingVertical:"6",children:[(0,Q.jsxs)(W.A,{flexDirection:"column",alignItems:"center",children:[!t&&(0,Q.jsx)(Y.A,{margin:"0 0 6",size:"h800",children:"Введите пароль"}),(0,Q.jsx)(Y.A,{size:"h400",children:ee})]}),(0,Q.jsx)(n(),{closeable:!0,absolute:!0,stretched:!0,hasToggle:!0,isActive:!!e.form.error,placement:"topCenter",color:"grayTransparent",renderContent:(0,Q.jsx)(G.A,{title:e.form.error||"",textProps:g.nU,icon:v.be}),onClose:ie,children:(0,Q.jsx)(q.A,{...e.password,autoFocus:!0,placeholder:"Пароль"})}),(0,Q.jsx)(V.default,{stretch:!0,inProgress:u,label:"Продолжить",type:"submit",tabIndex:0}),(0,Q.jsxs)(W.A,{alignItems:"center",flexDirection:"column",flexGap:"2",children:[(0,Q.jsx)(Y.A,{size:"h400",children:"Забыли пароль?"}),o&&de&&(0,Q.jsx)(V.default,{stretch:!0,native:!0,skipCapitalize:!0,rootRef:ne,variant:"outline",disabled:u,label:se?"Войти по Сбер ID":"Войти по коду из SMS",as:K.A,url:de,...se?{icon:"sber_full_color",iconSize:"20"}:{},onClick:ue}),(se||!o)&&(0,Q.jsx)(V.default,{...se?{rootRef:le}:{},stretch:!0,skipCapitalize:!0,variant:"outline",disabled:u,label:o?"Войти по коду из SMS":"Восстановить доступ",onClick:ce}),(0,Q.jsx)(V.default,{stretch:!0,label:"Обратиться в службу поддержки",variant:"ghost",as:K.A,routeName:f.Ay.feedbackQuestionCreate,disabled:u})]})]})})},[t,ee,ie,u,ce,de,ue,se,ne,le]),me=(0,o.useCallback)(e=>{let r=e.password;s((e=>{let r=e.loginData,t=e.formId;return async(e,o)=>{const a=_.Hb.getCurrentAuth(o()).authType,s=[m.A.AUTH_FORM_LOADER],n={afterAuthSwitch:!1};a&&(n.afterAuthSwitch=!0),e((0,O.ZE)({loaderIds:s}));try{(0,y.q8)(),await e((0,z.l)({authComplete:!1})),await e((0,R.i)(r)),await e((0,S._)(n))}catch(r){const o=(0,x._R)(r),a=o.errorData,s={form:o.errorMessage||"Произошла неизвестная ошибка, попробуйте ещё раз"},n=(a&&a.details&&a.details.field?a.details.field:void 0)!==k.gW,l={formId:t,errors:s,meta:{showResetButton:n}};await e((0,z.l)({authComplete:!0})),e((0,j.yo)(l))}finally{e((0,O.PW)({loaderIds:s})),(0,y.Ne)()}}})({loginData:{login:ee||"",password:r,preferredAuthType:oe},formId:w.A.USER_PASSWORD_FORM}))},[oe,s,ee]);return(0,Q.jsx)(C.Ay,{formId:w.A.USER_PASSWORD_FORM,initialValues:Z,validators:X,onSubmit:me,children:he})}const ee=(0,o.memo)(J)},44833(e,r,t){t.r(r);var o=t(1129),a=t(67048),s=t(90190);const n=e=>(r,t)=>{const n=(0,o.I)(e);if(!n)return Promise.resolve();return a.LE.get(t(),{id:n})?Promise.resolve():r((0,s.X)({id:n,ignoreNotFoundError:!0}))};t.d(r,["default",0,n])},33593(e,r,t){var o=t(44833);const a=e=>{let r=e.query;return e=>{const t=r.vacancyId;return Promise.all([e((0,o.default)({vacancyId:t}))])}};t.d(r,["A",0,a])},94195(e,r,t){t.d(r,{A:function(){return b}});var o=t(63696),a=t(66600),s=t(70447),n=t(19774),l=t(14044);const i="IDA+D",c="_5Ob79",d="oZnGD",u="Hk7lI",h="GY4Ff",m="YgdLY";var f=t(62540);function A(e){const r=e.title,t=e.text,A=e.icon,b=e.children,p=e.textProps,v=void 0===p?{theme:"black",size:"h200"}:p,g=e.button,C=o.useCallback(e=>{g&&null!=g&&g.onClick&&g.onClick(e)},[g]);return(0,f.jsxs)(a.A,{className:i,children:[(0,f.jsx)(a.A,{className:h,children:(0,f.jsx)(n.Ay,{...A})}),(0,f.jsxs)(a.A,{zeroLineHeight:!0,className:m,children:[r&&(0,f.jsx)(a.A,{className:c,children:(0,f.jsx)(l.A,{theme:v.theme,className:"f-test-info-block-title",children:r})}),t&&(0,f.jsx)(a.A,{className:u,children:(0,f.jsx)(l.A,{...v,children:t})}),g&&(null==g?void 0:g.label)&&(0,f.jsx)("div",{children:(0,f.jsx)(s.A,{...g,className:d,onClick:C})}),b]})]})}const b=o.memo(A)},94261(e,r,t){t.d(r,{A:function(){return h}});var o=t(63696),a=t(4452),s=t.n(a),n=t(89516);const l="rwjc8",i="xR-rS";var c=t(62540);function d(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,r||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}class u extends o.PureComponent{constructor(){super(...arguments),d(this,"state",{showPassword:!1}
1),d(this,"handleShowPasswordClick",()=>{this.setState(e=>({showPassword:!e.showPassword}))})}render(){const e=this.props,r=e.name,t=e.label,o=e.placeholder,a=e.onFocus,d=e.onBlur,u=e.value,h=e.onChange,m=e.tallness,f=e.error,A=e.className,b=e.fieldClassName,p=e.autoFocus,v=e.autoComplete,g=e.border,C=e.disabled,j=this.state.showPassword,w=`${r}-hidden`,y=s()(A,l,i),x=j?"visibility_crossed_outline":"visibility_outline";return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(n.A,{label:t,name:j?w:r,value:u,placeholder:o,className:j?y:A,fieldClassName:b,type:"password",rightIcon:{icon:x,onClick:this.handleShowPasswordClick,color:"gray"},size:m,error:f,autoFocus:p,autoComplete:v,border:g,disabled:C,onChange:h,onBlur:d,onFocus:a}),(0,c.jsx)(n.A,{label:t,name:j?r:w,value:u,placeholder:o,className:j?A:y,fieldClassName:b,rightIcon:{icon:x,onClick:this.handleShowPasswordClick,color:"gray"},size:m,error:f,autoFocus:p,autoComplete:v,border:g,disabled:C,onChange:h,onBlur:d,onFocus:a})]})}}d(u,"defaultProps",{label:"",placeholder:"",className:"",fieldClassName:""});const h=u}}]);

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.