<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">!function(t){function e(e){for(var r,i,u=e[0],s=e[1],a=e[2],f=0,p=[];f&lt;u.length;f++)i=u[f],Object.prototype.hasOwnProperty.call(o,i)&amp;&amp;o[i]&amp;&amp;p.push(o[i][0]),o[i]=0;for(r in s)Object.prototype.hasOwnProperty.call(s,r)&amp;&amp;(t[r]=s[r]);for(l&amp;&amp;l(e);p.length;)p.shift()();return c.push.apply(c,a||[]),n()}function n(){for(var t,e=0;e&lt;c.length;e++){for(var n=c[e],r=!0,u=1;u&lt;n.length;u++){var s=n[u];0!==o[s]&amp;&amp;(r=!1)}r&amp;&amp;(c.splice(e--,1),t=i(i.s=n[0]))}return t}var r={},o={14:0},c=[];function i(e){if(r[e])return r[e].exports;var n=r[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=t,i.c=r,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&amp;&amp;Symbol.toStringTag&amp;&amp;Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&amp;e&amp;&amp;(t=i(t)),8&amp;e)return t;if(4&amp;e&amp;&amp;"object"==typeof t&amp;&amp;t&amp;&amp;t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&amp;e&amp;&amp;"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&amp;&amp;t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/";var u=window.webpackJsonp=window.webpackJsonp||[],s=u.push.bind(u);u.push=e,u=u.slice();for(var a=0;a&lt;u.length;a++)e(u[a]);var l=s;c.push([165,0]),n()}({104:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(9);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&amp;&amp;(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e&lt;arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u={setClientId:function(t,e){return c(c({},t),{},{clientId:e})}},s=Object(r.createSymbiote)({},u,"CLIENT"),a=s.actions,l=s.reducer;s.types;e.b=l},124:function(t,e,n){t.exports=n(184)},165:function(t,e,n){"use strict";n.r(e);var r=n(0),o=n(3),c=n(2),i=n(11),u=n.n(i),s=n(6),a=n(8),l=n(10);function f(t){return(f="function"==typeof Symbol&amp;&amp;"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;"function"==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){for(var n=0;n&lt;e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&amp;&amp;(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d(t);if(e){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(t,e){return!e||"object"!==f(e)&amp;&amp;"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v=function(t){!function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&amp;&amp;y(t,e)}(i,t);var e,n,o,c=h(i);function i(){return p(this,i),c.apply(this,arguments)}return e=i,(n=[{key:"render",value:function(t,e,n){var o=t.onClick,c=t.isAuthenticated;return Object(r.h)("button",{onClick:o,className:Object(l.a)({"s-head-actions__action_type_user-white":c,"s-head-actions__action_type_login":!c},["s-head-actions__action"])})}}])&amp;&amp;b(e.prototype,n),o&amp;&amp;b(e,o),i}(r.Component);function O(t){var e=t.user,n=t.isMobile;return Object(r.h)("div",{className:Object(l.a)({"s-auth-menu__client_type_mobile-menu":n},["s-auth-menu__client"])},Object(r.h)("div",{className:"s-avatar s-auth-menu__client-avatar"},e.image?Object(r.h)("img",{src:e.image,srcSet:e.imageSet,alt:e.name,className:"s-avatar__image"}):Object(r.h)("span",{className:"s-avatar__initials"},e.initials)),Object(r.h)("div",null,Object(r.h)("p",null,e.name),null!==e.email?Object(r.h)("p",{className:"s-text__gray s-text__small"},e.email):null!==e.phone&amp;&amp;Object(r.h)("p",{className:"s-text__gray s-text__small"},e.phone),null!==e.groupName&amp;&amp;Object(r.h)("p",{className:"s-text__gray s-text__small s-auth-menu__client-role"},e.groupName)))}var j,_=n(25);function w(t){return(w="function"==typeof Symbol&amp;&amp;"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;"function"==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?"symbol":typeof t})(t)}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function S(t,e){for(var n=0;n&lt;e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&amp;&amp;(r.writable=!0),Object.defineProperty(t,r.key,r)}}function P(t,e){return(P=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function k(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=T(t);if(e){var o=T(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return R(this,n)}}function R(t,e){return!e||"object"!==w(e)&amp;&amp;"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function T(t){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var x="orders",C="payments",E="feedback",N="preferences",B="logout",A=Object(c.d)({title:"userMenu.header"})(j=Object(o.b)((function(t){return{user:t.user,userMenu:t.dictionaries.userMenu}}),_.a)(j=function(t){!function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&amp;&amp;P(t,e)}(i,t);var e,n,o,c=k(i);function i(){return g(this,i),c.apply(this,arguments)}return e=i,o=[{key:"getMenuItemClass",value:function(t){var e="";switch(t){case E:e="s-auth-menu__item_type_messages";break;case x:e="s-auth-menu__item_type_orders";break;case C:e="s-auth-menu__item_type_payments";break;case N:e="s-auth-menu__item_type_preferences";break;case B:e="s-auth-menu__item_type_logout";break;default:e="s-auth-menu__balance"}return e}}],(n=[{key:"render",value:function(t,e,n){return Object(r.h)(s.d,{onClose:t.closeDialog,isShow:t.isShow,self:s.d.positions.topLeft,anchor:s.d.positions.bottomLeft,qutterX:-24},Object(r.h)("div",{className:"s-auth-menu"},Object(r.h)(O,{user:t.user}),t.userMenu.map((function(t){return Object(r.h)("a",{href:t.route,className:"s-auth-menu__item ".concat(i.getMenuItemClass(t.uid)),dangerouslySetInnerHTML:{__html:t.name}})}))))}}])&amp;&amp;S(e.prototype,n),o&amp;&amp;S(e,o),i}(r.Component))||j)||j;function M(t){return(M="function"==typeof Symbol&amp;&amp;"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;"function"==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?"symbol":typeof t})(t)}function I(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function D(t,e){for(var n=0;n&lt;e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&amp;&amp;(r.writable=!0),Object.defineProperty(t,r.key,r)}}function L(t,e){return(L=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function F(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=W(t);if(e){var o=W(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return H(this,n)}}function H(t,e){return!e||"object"!==M(e)&amp;&amp;"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function W(t){return(W=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var U,q=function(t){!function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&amp;&amp;L(t,e)}(u,t);var e,n,o,i=F(u);function u(){var t;I(this,u);for(var e=arguments.length,n=new Array(e),r=0;r&lt;e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))).state={isShowDialog:!1},t.onClick=function(){t.props.isAuthenticated?t.setState({isShowDialog:!0}):t.props.onShowModal()},t}return e=u,(n=[{key:"render",value:function(t,e,n){var o=this,i=t.isAuthenticated,u=e.isShowDialog;return Object(r.h)(r.Fragment,null,Object(r.h)("button",{onClick:this.onClick,style:{position:"relative"},className:Object(l.a)({"s-head-actions__action_type_user-white":i,"s-head-actions__action_type_login":!i},["s-head-actions__action"])},Object(r.h)("span",{className:"s-head-actions__action-inner"},Object(r.h)(c.c,{id:i?"common.myProfile":"common.signIn"}))),Object(r.h)(A,{isShow:u,closeDialog:function(){return o.setState({isShowDialog:!1})}}))}}])&amp;&amp;D(e.prototype,n),o&amp;&amp;D(e,o),u}(r.Component),G=n(70);function z(t){return(z="function"==typeof Symbol&amp;&amp;"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;"function"==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?"symbol":typeof t})(t)}function K(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function J(t,e){for(var n=0;n&lt;e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&amp;&amp;(r.writable=!0),Object.defineProperty(t,r.key,r)}}function V(t,e){return(V=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function X(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Q(t);if(e){var o=Q(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $(this,n)}}function $(t,e){return!e||"object"!==z(e)&amp;&amp;"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Q(t){return(Q=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Y,Z="orders",tt="payments",et="feedback",nt="preferences",rt="logout",ot=Object(c.d)({title:"userMenu.header"})(U=Object(o.b)((function(t){return{user:t.user,userMenu:t.dictionaries.userMenu}}),_.a)(U=function(t){!function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&amp;&amp;V(t,e)}(i,t);var e,n,o,c=X(i);function i(){return K(this,i),c.apply(this,arguments)}return e=i,o=[{key:"getMenuItemClass",value:function(t){var e="";switch(t){case et:e="s25-mobile-menu-item_feedback";break;case Z:e="s25-mobile-menu-item_orders";break;case tt:e="s25-mobile-menu-item_payments";break;case nt:e="s25-mobile-menu-item_preferences";break;case rt:e="s25-mobile-menu-item_logout";break;default:e="s-auth-menu__balance"}return e}}],(n=[{key:"componentDidMount",value:function(){this.props.setTitle(this.props.title)}},{key:"render",value:function(t,e,n){return Object(r.h)("div",null,Object(r.h)(O,{user:t.user,isMobile:!0}),Object(r.h)(G.a,null,t.userMenu.map((function(t){return Object(r.h)(G.b,{key:t.uid,customClass:i.getMenuItemClass(t.uid),label:t.name,url:t.route},t.uid===et&amp;&amp;t.notifications&gt;0&amp;&amp;Object(r.h)("span",{className:"s-notice s-notice_color_red",style:{marginLeft:"3px"}},t.notifications))}))))}}])&amp;&amp;J(e.prototype,n),o&amp;&amp;J(e,o),i}(r.Component))||U)||U,ct=n(27),it=n(1),ut=n.n(it),st=n(23),at=n(12),lt=window.s25_actions,ft=function(t){var e=t.login,n=t.password;return Object(at.a)(lt.login).post({login:{mail:e,password:n}})},pt=function(t){var e=t.login,n=t.password;return Object(at.a)(lt.register).post({register:{login:e,password:n}})},bt=function(t){var e=t.login;return Object(at.a)(lt.recover).post({recover:{mail:e}})},yt=function(t){var e=t.clientId,n=t.contacts;return Object(at.a)(lt.recoverStep2).post({recover_choose:{id:e,contacts:n}})},ht=function(t){var e=t.code;return Object(at.a)(lt.confirmSms).post({recover_sms:{code:e}})},mt=function(t){var e=t.phone,n=t.cfToken;return Object(at.a)(lt.loginPhoneConfirm).post({phone:e,cfToken:n})},dt=function(t){var e=t.code;return Object(at.a)(lt.loginSmsCodeConfirm).post({code:e})},vt=n(20),Ot=n(26);function jt(t){return(jt="function"==typeof Symbol&amp;&amp;"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;"function"==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?"symbol":typeof t})(t)}function _t(t,e,n,r,o,c,i){try{var u=t[c](i),s=u.value}catch(a){return void n(a)}u.done?e(s):Promise.resolve(s).then(r,o)}function wt(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var c=t.apply(e,n);function i(t){_t(c,r,o,i,u,"next",t)}function u(t){_t(c,r,o,i,u,"throw",t)}i(void 0)}))}}function gt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function St(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pt(t,e){for(var n=0;n&lt;e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&amp;&amp;(r.writable=!0),Object.defineProperty(t,r.key,r)}}function kt(t,e){return(kt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Rt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=xt(t);if(e){var o=xt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tt(this,n)}}function Tt(t,e){return!e||"object"!==jt(e)&amp;&amp;"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function xt(t){return(xt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ct,Et=Object(c.d)({modalTitle:"login.header",labelLogin:"common.emailOrPhone",labelPassword:"login.password"})(Y=Object(o.b)((function(t){return{deck:t.auth.deck}}),_.a)(Y=function(t){!function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&amp;&amp;kt(t,e)}(u,t);var e,n,o,i=Rt(u);function u(){var t;St(this,u);for(var e=arguments.length,n=new Array(e),r=0;r&lt;e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))).state={errors:[],isPending:!1,login:null,password:null},t.setField=function(e){return function(n){t.setState(gt({},e,n.target.value))}},t.onSubmit=function(){var e=wt(ut.a.mark((function e(n){var r,o,c,i;return ut.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.preventDefault(),t.setState({isPending:!0}),r=t.state,o=r.login,c=r.password,e.next=5,ft({login:o,password:c});case 5:i=e.sent,t.setState({isPending:!1}),"success"===i.status&amp;&amp;(t.sendGtmEvent(Ot.c.success),window.showPreloader(),location.reload()),"error"===i.status&amp;&amp;(t.sendGtmEvent(Ot.c.error),t.setState({errors:[i.errors]}));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),t}return e=u,(n=[{key:"componentWillMount",value:function(){this.props.setTitle(this.props.modalTitle)}},{key:"sendGtmEvent",value:function(t){(new Ot.f).dispatch({status:t,method:Ot.b.email})}},{key:"render",value:function(t,e,n){var o=this;return Object(r.h)("form",{onSubmit:this.onSubmit,className:"s-mobile-login"},Object(r.h)("div",{className:"s-form__row"},Object(r.h)(vt.b,{onInput:this.setField("login"),className:"s-input_size_wide",tabIndex:"1",label:t.labelLogin,placeholder:t.labelLogin})),Object(r.h)("div",{className:"s-form__row"},Object(r.h)(vt.b,{onInput:this.setField("password"),type:"password",className:"s-input_size_wide",tabIndex:"2",label:t.labelPassword,placeholder:t.labelPassword})),e.errors.length&gt;0&amp;&amp;Object(r.h)(st.a,{errors:e.errors}),Object(r.h)("div",{className:"s-form__row s-form__row_type_submit"},Object(r.h)("button",{type:"submit",className:Object(l.a)({disabled:e.isPending},["s-button s-popup__submit"])},Object(r.h)(c.c,{id:"login.submit"}))),Object(r.h)("div",{className:"s-mobile-login__actions"},Object(r.h)("button",{onClick:function(){return o.props.slideTo(wr.recover)},type:"button",className:"s-link",style:{marginBottom:"24px"}},Object(r.h)(c.c,{id:"common.recoverPassword"})),t.isAllowedSmsAuth&amp;&amp;Object(r.h)("button",{onClick:function(){return o.props.slideBack()},type:"button",className:"s-link"},Object(r.h)(c.c,{id:"login.loginByPhone"}))))}}])&amp;&amp;Pt(e.prototype,n),o&amp;&amp;Pt(e,o),u}(r.Component))||Y)||Y,Nt=n(65),Bt=n(60),At=n(104);function Mt(t){return(Mt="function"==typeof Symbol&amp;&amp;"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;"function"==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?"symbol":typeof t})(t)}function It(t,e,n,r,o,c,i){try{var u=t[c](i),s=u.value}catch(a){return void n(a)}u.done?e(s):Promise.resolve(s).then(r,o)}function Dt(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var c=t.apply(e,n);function i(t){It(c,r,o,i,u,"next",t)}function u(t){It(c,r,o,i,u,"throw",t)}i(void 0)}))}}function Lt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ft(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ht(t,e){for(var n=0;n&lt;e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&amp;&amp;(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Wt(t,e){return(Wt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ut(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Gt(t);if(e){var o=Gt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qt(this,n)}}function qt(t,e){return!e||"object"!==Mt(e)&amp;&amp;"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Gt(t){return(Gt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var zt=Object(c.d)({label:"recover.login"})(Ct=Object(o.b)((function(t){return{slider:t.authSlider}}),{setRecoverTypes:Bt.a.setTypes,setRecoverMessages:Bt.a.setMessages,setClientId:At.a.setClientId,slideBack:Nt.a.slideBack})(Ct=function(t){!function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&amp;&amp;Wt(t,e)}(u,t);var e,n,o,i=Ut(u);function u(){var t;Ft(this,u);for(var e=arguments.length,n=new Array(e),r=0;r&lt;e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))).state={errors:[],login:"",isPending:!1},t.setField=function(e){return function(n){t.setState(Lt({},e,n.target.value))}},t.loginByEmail=function(){t.props.slider.slideBack(),t.props.slideBack(wr.loginSms)},t.onSubmit=function(){var e=Dt(ut.a.mark((function e(n){var r,o;return ut.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.preventDefault(),t.setState({isPending:!0}),r=t.state.login,e.next=5,bt({login:r});case 5:o=e.sent,t.setState({isPending:!1}),"success"===o.status&amp;&amp;(t.props.setRecoverTypes(o.recover.types),t.props.setRecoverMessages(o.recover.messages),t.props.setClientId(o.clientId),t.props.onSuccess()),"error"===o.status&amp;&amp;t.setState({errors:[o.errors]});case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),t}return e=u,(n=[{key:"render",value:function(t,e,n){return Object(r.h)("form",{onSubmit:this.onSubmit,className:"s-mobile-login"},Object(r.h)("div",{className:"s-text__centered",style:{marginBottom:"24px"}},Object(r.h)(c.c,{id:"recover.description"})),Object(r.h)("div",{className:"s-form__row"},Object(r.h)(vt.b,{onInput:this.setField("login"),label:t.label,placeholder:t.label,value:e.login,id:"register_mail"})),e.errors.length&gt;0&amp;&amp;Object(r.h)(st.a,{errors:e.errors}),Object(r.h)("div",{className:"s-form__row s-form__row_type_submit"},Object(r.h)("button",{type:"submit",className:Object(l.a)({disabled:e.isPending},["s-button s-popup__submit"])},Object(r.h)(c.c,{id:"recover.submit"}))),Object(r.h)("div",{className:"s-popup__auth-actions"},Object(r.h)("button",{onClick:this.loginByEmail,type:"button",className:"s-link"},Object(r.h)(c.c,{id:"login.loginByMail"}))))}}])&amp;&amp;Ht(e.prototype,n),o&amp;&amp;Ht(e,o),u}(r.Component))||Ct)||Ct;function Kt(t){return(Kt="function"==typeof Symbol&amp;&amp;"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;"function"==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?"symbol":typeof t})(t)}var Jt=["selected","title","description"];function Vt(){return(Vt=Object.assign||function(t){for(var e=1;e&lt;arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&amp;&amp;(t[r]=n[r])}return t}).apply(this,arguments)}function Xt(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},c=Object.keys(t);for(r=0;r&lt;c.length;r++)n=c[r],e.indexOf(n)&gt;=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(r=0;r&lt;c.length;r++)n=c[r],e.indexOf(n)&gt;=0||Object.prototype.propertyIsEnumerable.call(t,n)&amp;&amp;(o[n]=t[n])}return o}function $t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qt(t,e){for(var n=0;n&lt;e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&amp;&amp;(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Yt(t,e){return(Yt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Zt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ee(t);if(e){var o=ee(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return te(this,n)}}function te(t,e){return!e||"object"!==Kt(e)&amp;&amp;"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ee(t){return(ee=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ne,re=function(t){!function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&amp;&amp;Yt(t,e)}(i,t);var e,n,o,c=Zt(i);function i(){return $t(this,i),c.apply(this,arguments)}return e=i,(n=[{key:"render",value:function(t,e,n){var o=t.selected,c=t.title,i=t.description,u=Xt(t,Jt);return Object(r.h)("label",{className:"s25-option".concat(o?" s25-option_selected":"")},Object(r.h)("input",Vt({},u,{type:"radio",className:"s25-option__input"})),Object(r.h)("div",{className:"s25-option__icon"}),Object(r.h)("div",{className:"s25-option__body"},Object(r.h)("div",{className:"s25-option__title"},c),Object(r.h)("div",{className:"s25-option__description text-secondary text-small"},i),u.children))}}])&amp;&amp;Qt(e.prototype,n),o&amp;&amp;Qt(e,o),i}(r.Component);function oe(t){return(oe="function"==typeof Symbol&amp;&amp;"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;"function"==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?"symbol":typeof t})(t)}function ce(t,e,n,r,o,c,i){try{var u=t[c](i),s=u.value}catch(a){return void n(a)}u.done?e(s):Promise.resolve(s).then(r,o)}function ie(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var c=t.apply(e,n);function i(t){ce(c,r,o,i,u,"next",t)}function u(t){ce(c,r,o,i,u,"throw",t)}i(void 0)}))}}function ue(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function se(t,e){for(var n=0;n&lt;e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&amp;&amp;(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ae(t,e){return(ae=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function le(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=pe(t);if(e){var o=pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fe(this,n)}}function fe(t,e){return!e||"object"!==oe(e)&amp;&amp;"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function pe(t){return(pe=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function be(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&amp;&amp;(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ye(t){for(var e=1;e&lt;arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?be(Object(n),!0).forEach((function(e){he(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function he(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var me,de=Object(c.d)({modalTitle:"recover.almostDone"})(ne=Object(o.b)((function(t){return{recoverOptions:t.recover.types,currentRecoverType:t.recover.currentType,clientId:t.user.clientId}}),ye(ye({},Bt.a),_.a))(ne=function(t){!function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&amp;&amp;ae(t,e)}(s,t);var e,n,o,i=le(s);function s(){var t;ue(this,s);for(var e=arguments.length,n=new Array(e),r=0;r&lt;e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))).state={isPending:!1},t.onSubmit=function(){var e=ie(ut.a.mark((function e(n){var r,o;return ut.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.preventDefault(),t.setState({isPending:!0}),r=t.props.clientId,e.next=5,yt({clientId:r,contacts:t.getCurrentType()});case 5:o=e.sent,t.setState({isPending:!1}),"success"===o.status&amp;&amp;t.props.onSuccess(),"error"===o.status&amp;&amp;t.setState({errors:[o.errors]});case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),t.onSelectOption=function(e){t.props.setCurrentType(e.target.value)},t}return e=s,(n=[{key:"componentWillMount",value:function(){this.props.setTitle(this.props.modalTitle)}},{key:"getCurrentType",value:function(){return this.props.currentRecoverType?this.props.currentRecoverType:(this.props.setCurrentType(this.props.recoverOptions[0].value),this.props.recoverOptions[0].value)}},{key:"render",value:function(t,e,n){var o=this,i=t.recoverOptions;if(!i)return null;var s=this.getCurrentType();return Object(r.h)("form",{onSubmit:this.onSubmit,className:"s-mobile-login"},Object(r.h)("p",{className:"s-text__centered"},Object(r.h)(c.c,{id:"recover.almostDoneDescription"})),Object(r.h)("div",null,i.map((function(t){var e=t.value,n=t.label,c=t.description,i=e===s;return Object(r.h)(re,{onChange:o.onSelectOption,key:e,value:e,name:"recover_type",selected:i,title:n,description:c})}))),Object(r.h)("div",{className:"s-form__row s-form__row_mt_24"},Object(r.h)("button",{type:"submit",className:u()({disabled:e.isPending},"s-button s-popup__submit s-button_size_wide")},Object(r.h)(c.c,{id:"recover.submit"}))))}}])&amp;&amp;se(e.prototype,n),o&amp;&amp;se(e,o),s}(r.Component))||ne)||ne;function ve(t){return(ve="function"==typeof Symbol&amp;&amp;"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;"function"==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?"symbol":typeof t})(t)}function Oe(t,e,n,r,o,c,i){try{var u=t[c](i),s=u.value}catch(a){return void n(a)}u.done?e(s):Promise.resolve(s).then(r,o)}function je(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var c=t.apply(e,n);function i(t){Oe(c,r,o,i,u,"next",t)}function u(t){Oe(c,r,o,i,u,"throw",t)}i(void 0)}))}}function _e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function we(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ge(t,e){for(var n=0;n&lt;e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&amp;&amp;(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Se(t,e){return(Se=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Pe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Re(t);if(e){var o=Re(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ke(this,n)}}function ke(t,e){return!e||"object"!==ve(e)&amp;&amp;"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Re(t){return(Re=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Te,xe=Object(o.b)(null,_.a)(me=function(t){!function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&amp;&amp;Se(t,e)}(u,t);var e,n,o,i=Pe(u);function u(){var t;we(this,u);for(var e=arguments.length,n=new Array(e),r=0;r&lt;e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))).state={errors:[],login:null},t.setField=function(e){return function(n){t.setState(_e({},e,n.target.value))}},t.onSubmit=je(ut.a.mark((function e(){var n,r,o,c;return ut.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.setState({isPending:!0}),n=t.state,r=n.login,o=n.password,e.next=4,pt({login:r,password:o});case 4:c=e.sent,t.setState({isPending:!1}),"success"===c.status&amp;&amp;(window.showPreloader(),location.reload()),"error"===c.status&amp;&amp;t.setState({errors:[c.errors]});case 8:case"end":return e.stop()}}),e)}))),t}return e=u,(n=[{key:"render",value:function(t,e,n){return Object(r.h)("div",{className:"s-mobile-login"},Object(r.h)("div",{className:"s-form__row"},Object(r.h)("label",{className:"s-form__label-block",htmlFor:"register_mail"},Object(r.h)(c.c,{id:"recover.login"})),Object(r.h)("input",{onInput:this.setField("login"),className:"s-input s-input_size_wide",type:"text",tabIndex:"1",id:"recover_password"})),e.errors.length&gt;0&amp;&amp;Object(r.h)(st.a,{errors:e.errors}),Object(r.h)("div",{className:"s-form__row s-form__row_type_submit"},Object(r.h)("button",{onClick:this.onSubmit,type:"submit",className:Object(l.a)({disabled:e.isPending},["s-button s-popup__submit"])},Object(r.h)(c.c,{id:"recover.submit"}))))}}])&amp;&amp;ge(e.prototype,n),o&amp;&amp;ge(e,o),u}(r.Component))||me;function Ce(t){return(Ce="function"==typeof Symbol&amp;&amp;"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;"function"==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?"symbol":typeof t})(t)}function Ee(t,e,n,r,o,c,i){try{var u=t[c](i),s=u.value}catch(a){return void n(a)}u.done?e(s):Promise.resolve(s).then(r,o)}function Ne(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var c=t.apply(e,n);function i(t){Ee(c,r,o,i,u,"next",t)}function u(t){Ee(c,r,o,i,u,"throw",t)}i(void 0)}))}}function Be(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ae(t,e){for(var n=0;n&lt;e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&amp;&amp;(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Me(t,e){return(Me=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ie(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Le(t);if(e){var o=Le(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return De(this,n)}}function De(t,e){return!e||"object"!==Ce(e)&amp;&amp;"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Le(t){return(Le=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Fe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&amp;&amp;(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function He(t){for(var e=1;e&lt;arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Fe(Object(n),!0).forEach((function(e){We(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function We(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ue,qe=Object(c.d)({modalTitle:"recover.enterSmsCode"})(Te=Object(o.b)((function(t){return{recover:t.recover,clientId:t.user.clientId}}),He(He({},Bt.a),{},{setTitle:_.a.setTitle}))(Te=function(t){!function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&amp;&amp;Me(t,e)}(s,t);var e,n,o,i,u=Ie(s);function s(){var t;Be(this,s);for(var e=arguments.length,n=new Array(e),r=0;r&lt;e;r++)n[r]=arguments[r];return(t=u.call.apply(u,[this].concat(n))).state={isSuccessRecover:!1,isPending:!1,isNewSmsCode:!1,errors:[]},t.onSubmit=function(){var e=Ne(ut.a.mark((function e(n){var r,o;return ut.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.props.recover.smsAttempts-1,t.props.setSmsAttempts(r),t.setState({isPending:!0}),e.next=5,ht({code:n});case 5:if("error"!==(o=e.sent).status){e.next=12;break}if(0!==r){e.next=11;break}return e.next=10,t.requestNewSmsCode();case 10:return e.abrupt("return");case 11:t.setState({errors:[o.errors]});case 12:"success"===o.status&amp;&amp;(t.setState({isSuccessRecover:!0}),window.showPreloader(),location.assign(o.successUrl)),t.setState({isPending:!1});case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),t}return e=s,(n=[{key:"componentWillMount",value:function(){this.props.setTitle(this.props.modalTitle)}},{key:"requestNewSmsCode",value:(i=Ne(ut.a.mark((function t(){var e,n,r;return ut.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.props,n=e.clientId,r=e.recover,t.next=3,yt({clientId:n,contacts:r.currentType});case 3:this.setState({isNewSmsCode:!0,isPending:!1,errors:[]}),this.props.setSmsAttempts(3);case 5:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"render",value:function(t,e,n){var o=t.recover,i=o.messages,u=o.isAllowDealers,s=o.smsAttempts;return Object(r.h)("div",{className:"s-mobile-login s-text__centered"},e.isSuccessRecover&amp;&amp;Object(r.h)("div",{className:"s-text__h4"},Object(r.h)(c.c,{id:"recover.mailSent"})),!e.isSuccessRecover&amp;&amp;Object(r.h)(r.Fragment,null,Object(r.h)("div",null,e.isNewSmsCode?Object(r.h)("div",{style:{margin:"10px 0"},dangerouslySetInnerHTML:{__html:i.phoneInstructionsLimit}}):Object(r.h)("div",null,Object(r.h)("p",{style:{margin:"10px 0"},dangerouslySetInnerHTML:{__html:i.phoneInstructions}}),Object(r.h)("p",{className:"s-text__notice"},Object(r.h)(c.c,{id:"recover.dontLeave"})))),Object(r.h)("form",{className:"s-form s-form_block_recover-sms"},Object(r.h)("div",{className:"s-recover-login__code"},Object(r.h)(vt.a,{length:4,onSubmitHandler:this.onSubmit}),!u&amp;&amp;Object(r.h)("div",{className:"s-signin-sms__attempt-count"},Object(r.h)(c.c,{id:"common.attempts",plural:3-s}))),e.errors.length&gt;0&amp;&amp;Object(r.h)(st.a,{errors:e.errors}))))}}])&amp;&amp;Ae(e.prototype,n),o&amp;&amp;Ae(e,o),s}(r.Component))||Te)||Te;function Ge(t){return(Ge="function"==typeof Symbol&amp;&amp;"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;"function"==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?"symbol":typeof t})(t)}function ze(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ke(t,e){for(var n=0;n&lt;e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&amp;&amp;(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Je(t,e){return(Je=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ve(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=$e(t);if(e){var o=$e(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xe(this,n)}}function Xe(t,e){return!e||"object"!==Ge(e)&amp;&amp;"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function $e(t){return($e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Qe,Ye=Object(c.d)({modalTitle:"recover.mailSent"})(Ue=Object(o.b)((function(t){return{currentRecoverType:t.recover.currentType,messages:t.recover.messages}}),_.a)(Ue=function(t){!function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&amp;&amp;Je(t,e)}(u,t);var e,n,o,i=Ve(u);function u(){return ze(this,u),i.apply(this,arguments)}return e=u,(n=[{key:"componentWillMount",value:function(){"mail"===this.props.currentRecoverType&amp;&amp;this.props.setTitle("")}},{key:"render",value:function(t,e,n){var o=t.currentRecoverType;return Object(r.h)("div",{className:"s-login-recovery"},"mail"===o&amp;&amp;Object(r.h)("div",{className:"s-login-recovery__mail"},Object(r.h)("div",{className:"s-text__h4"},Object(r.h)(c.c,{id:"recover.mailSent"}))),"phone"===o&amp;&amp;Object(r.h)(qe,null))}}])&amp;&amp;Ke(e.prototype,n),o&amp;&amp;Ke(e,o),u}(r.Component))||Ue)||Ue;function Ze(t){return(Ze="function"==typeof Symbol&amp;&amp;"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;"function"==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?"symbol":typeof t})(t)}function tn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function en(t,e){for(var n=0;n&lt;e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&amp;&amp;(r.writable=!0),Object.defineProperty(t,r.key,r)}}function nn(t,e){return(nn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function rn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=cn(t);if(e){var o=cn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return on(this,n)}}function on(t,e){return!e||"object"!==Ze(e)&amp;&amp;"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function cn(t){return(cn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var un=0,sn=1,an=2,ln=3,fn=Object(c.d)({modalTitle:"recover.header"})(Qe=Object(o.b)(null,_.a)(Qe=function(t){!function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&amp;&amp;nn(t,e)}(i,t);var e,n,o,c=rn(i);function i(){var t;tn(this,i);for(var e=arguments.length,n=new Array(e),r=0;r&lt;e;r++)n[r]=arguments[r];return(t=c.call.apply(c,[this].concat(n))).state={step:un},t.setStep=function(e){t.setState({step:e})},t}return e=i,(n=[{key:"componentWillMount",value:function(){this.props.setTitle(this.props.modalTitle)}},{key:"render",value:function(t,e,n){var o=this;return e.step===un?Object(r.h)(zt,{onSuccess:function(){return o.setStep(sn)}}):e.step===sn?Object(r.h)(de,{onSuccess:function(){return o.setStep(an)}}):e.step===an?Object(r.h)(Ye,null):e.step===ln?Object(r.h)(xe,null):null}}])&amp;&amp;en(e.prototype,n),o&amp;&amp;en(e,o),i}(r.Component))||Qe)||Qe,pn=n(48);function bn(t){return(bn="function"==typeof Symbol&amp;&amp;"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;"function"==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?"symbol":typeof t})(t)}function yn(){return(yn=Object.assign||function(t){for(var e=1;e&lt;arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&amp;&amp;(t[r]=n[r])}return t}).apply(this,arguments)}function hn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mn(t,e){for(var n=0;n&lt;e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&amp;&amp;(r.writable=!0),Object.defineProperty(t,r.key,r)}}function dn(t,e){return(dn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function vn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=jn(t);if(e){var o=jn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return On(this,n)}}function On(t,e){return!e||"object"!==bn(e)&amp;&amp;"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function jn(t){return(jn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _n=function(t){!function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&amp;&amp;dn(t,e)}(i,t);var e,n,o,c=vn(i);function i(){return hn(this,i),c.apply(this,arguments)}return e=i,(n=[{key:"render",value:function(t,e,n){return Object(r.h)(vt.c,yn({wrapClassName:"f-layout__cell s-login-sms__phone",placeholder:"+7 ___ ___-__-__"},t),t.children)}}])&amp;&amp;mn(e.prototype,n),o&amp;&amp;mn(e,o),i}(r.Component);function wn(t){return(wn="function"==typeof Symbol&amp;&amp;"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;"function"==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?"symbol":typeof t})(t)}function gn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Sn(t,e){for(var n=0;n&lt;e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&amp;&amp;(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Pn(t,e){return(Pn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function kn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Tn(t);if(e){var o=Tn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Rn(this,n)}}function Rn(t,e){return!e||"object"!==wn(e)&amp;&amp;"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Tn(t){return(Tn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var xn,Cn=function(t){!function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&amp;&amp;Pn(t,e)}(i,t);var e,n,o,c=kn(i);function i(){return gn(this,i),c.apply(this,arguments)}return e=i,(n=[{key:"componentWillMount",value:function(){var t=this;window.setTimeout((function(){window.turnstile.render("#myWidget",{sitekey:t.props.sitekey,callback:function(e){return t.props.tokenHandler(e)}})}),100)}},{key:"render",value:function(t,e,n){return Object(r.h)("div",{id:"myWidget",className:"cf-turnstile"})}}])&amp;&amp;Sn(e.prototype,n),o&amp;&amp;Sn(e,o),i}(r.Component);function En(t){return(En="function"==typeof Symbol&amp;&amp;"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;"function"==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?"symbol":typeof t})(t)}function Nn(t,e,n,r,o,c,i){try{var u=t[c](i),s=u.value}catch(a){return void n(a)}u.done?e(s):Promise.resolve(s).then(r,o)}function Bn(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var c=t.apply(e,n);function i(t){Nn(c,r,o,i,u,"next",t)}function u(t){Nn(c,r,o,i,u,"throw",t)}i(void 0)}))}}function An(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Mn(t,e){for(var n=0;n&lt;e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&amp;&amp;(r.writable=!0),Object.defineProperty(t,r.key,r)}}function In(t,e){return(In=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Dn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Fn(t);if(e){var o=Fn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ln(this,n)}}function Ln(t,e){return!e||"object"!==En(e)&amp;&amp;"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Fn(t){return(Fn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Hn,Wn=Object(c.d)({phoneLabel:"smsLogin.phoneNumber",modalTitle:"smsLogin.header"})(xn=Object(o.b)(null,_.a)(xn=function(t){!function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&amp;&amp;In(t,e)}(u,t);var e,n,o,i=Dn(u);function u(){var t;An(this,u);for(var e=arguments.length,n=new Array(e),r=0;r&lt;e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))).state={phone:"",cfToken:"",isPending:!1},t.setPhone=function(e){return t.setState({phone:e})},t.onSubmitPhone=function(){var e=Bn(ut.a.mark((function e(n){return ut.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.preventDefault(),t.setState({isPending:!0}),e.next=4,t.props.onSubmitHandler(pn.c.format(t.state.phone),t.state.cfToken);case 4:t.setState({isPending:!1});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),t.tokenHandler=function(e){return t.setState({cfToken:e})},t}return e=u,(n=[{key:"isCaptchaEnabled",value:function(){return window.cfCaptcha.enabled}},{key:"getSiteKey",value:function(){return window.cfCaptcha.siteKey}},{key:"componentWillMount",value:function(){this.props.setTitle(window.isMobile()?this.props.modalTitle:"")}},{key:"render",value:function(t,e,n){var o="";return this.isCaptchaEnabled()&amp;&amp;(o=Object(r.h)(Cn,{sitekey:this.getSiteKey(),tokenHandler:this.tokenHandler})),Object(r.h)("form",{className:"s-login-sms",onSubmit:this.onSubmitPhone},Object(r.h)("div",{className:"text-h4 text-center hide-under-desktop"},t.isTryAgain?Object(r.h)(c.c,{id:"smsLogin.tryAgain"}):Object(r.h)(c.c,{id:"smsLogin.header"})),!t.isTryAgain&amp;&amp;Object(r.h)("div",{className:"s-login-sms__description"},Object(r.h)(c.c,{id:"smsLogin.description"})),Object(r.h)("div",{style:{marginTop:"24px"}},Object(r.h)(_n,{autofocus:!0,onInput:this.setPhone,value:e.phone,label:t.phoneLabel,placeholder:"+7 ___ ___-__-__",id:"auth_sms_phone"},Object(r.h)("button",{className:Object(l.a)({disabled:e.isPending||e.phone.length&lt;11||this.isCaptchaEnabled()&amp;&amp;0===e.cfToken.length},["s-button s-login-sms__button-mobile"]),type:"submit"}))),o,Object(r.h)("div",{className:"s-login-sms__submit"},Object(r.h)("button",{className:Object(l.a)({disabled:e.isPending||e.phone.length&lt;11||this.isCaptchaEnabled()&amp;&amp;0===e.cfToken.length},["s-button s-button_size_wide s-login-sms__button-desktop"]),type:"submit"},Object(r.h)(c.c,{id:"smsLogin.submit"}))),t.errors.length&gt;0&amp;&amp;Object(r.h)(st.a,{errors:t.errors}))}}])&amp;&amp;Mn(e.prototype,n),o&amp;&amp;Mn(e,o),u}(r.Component))||xn)||xn;function Un(t){return(Un="function"==typeof Symbol&amp;&amp;"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;"function"==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?"symbol":typeof t})(t)}function qn(t,e,n,r,o,c,i){try{var u=t[c](i),s=u.value}catch(a){return void n(a)}u.done?e(s):Promise.resolve(s).then(r,o)}function Gn(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var c=t.apply(e,n);function i(t){qn(c,r,o,i,u,"next",t)}function u(t){qn(c,r,o,i,u,"throw",t)}i(void 0)}))}}function zn(t){return function(t){if(Array.isArray(t))return Kn(t)}(t)||function(t){if("undefined"!=typeof Symbol&amp;&amp;null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Kn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&amp;&amp;t.constructor&amp;&amp;(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kn(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kn(t,e){(null==e||e&gt;t.length)&amp;&amp;(e=t.length);for(var n=0,r=new Array(e);n&lt;e;n++)r[n]=t[n];return r}function Jn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Vn(t,e){for(var n=0;n&lt;e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&amp;&amp;(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Xn(t,e){return(Xn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function $n(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Yn(t);if(e){var o=Yn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Qn(this,n)}}function Qn(t,e){return!e||"object"!==Un(e)&amp;&amp;"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Yn(t){return(Yn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Zn,tr=Object(c.d)({i18nInstruction:"smsLogin.instruction",i18EnterCode:"smsLogin.enterSmsCode"})(Hn=Object(o.b)(null,_.a)(Hn=function(t){!function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&amp;&amp;Xn(t,e)}(u,t);var e,n,o,i=$n(u);function u(){var t;Jn(this,u);for(var e=arguments.length,n=new Array(e),r=0;r&lt;e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))).state={attempts:3},t.onInput=function(e){return function(n){var r=zn(t.state.codes);r[e]=n.data,t.setState({currentIndex:e+1,codes:r}),e===r.length-1&amp;&amp;t.base.dispatchEvent(new Event("submit"))}},t.onSubmit=function(){var e=Gn(ut.a.mark((function e(n){var r;return ut.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.state.attempts-1,t.setState({attempts:r,isPending:!0}),e.next=4,t.props.onSubmitHandler(n);case 4:t.setState({isPending:!1});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),t}return e=u,(n=[{key:"componentDidMount",value:function(){this.props.setTitle(this.props.i18EnterCode),document.addEventListener("keydown",this.onBackspace)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.onBackspace)}},{key:"render",value:function(t,e,n){return Object(r.h)("div",{className:"s-signin-sms"},Object(r.h)("button",{onClick:this.props.backToPhoneForm,type:"button",className:"s25-modal__back"}),Object(r.h)("p",{className:"s-signin-sms__code-description"},t.i18nInstruction.replace("{phone}",t.phone)),Object(r.h)(vt.a,{length:4,onSubmitHandler:this.onSubmit}),Object(r.h)("div",{className:"s-signin-sms__input-wrap"},Object(r.h)("span",{className:"s-signin-sms__attempt-count"},Object(r.h)(c.c,{id:"common.attempts",plural:3-e.attempts}))),t.errors.length&gt;0&amp;&amp;Object(r.h)(st.a,{errors:t.errors}))}}])&amp;&amp;Vn(e.prototype,n),o&amp;&amp;Vn(e,o),u}(r.Component))||Hn)||Hn;function er(t){return(er="function"==typeof Symbol&amp;&amp;"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;"function"==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?"symbol":typeof t})(t)}function nr(t,e,n,r,o,c,i){try{var u=t[c](i),s=u.value}catch(a){return void n(a)}u.done?e(s):Promise.resolve(s).then(r,o)}function rr(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var c=t.apply(e,n);function i(t){nr(c,r,o,i,u,"next",t)}function u(t){nr(c,r,o,i,u,"throw",t)}i(void 0)}))}}function or(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cr(t,e){for(var n=0;n&lt;e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&amp;&amp;(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ir(t,e){return(ir=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ur(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ar(t);if(e){var o=ar(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return sr(this,n)}}function sr(t,e){return!e||"object"!==er(e)&amp;&amp;"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ar(t){return(ar=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var lr,fr=Object(c.d)({agreement:"common.agreement"})(Zn=Object(o.b)((function(t){return{isNeedConfirmSms:t.auth.isNeedConfirmSms}}),_.a)(Zn=function(t){!function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&amp;&amp;ir(t,e)}(u,t);var e,n,o,i=ur(u);function u(){var t;or(this,u);for(var e=arguments.length,n=new Array(e),r=0;r&lt;e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))).state={isTryAgain:!1,phone:"",cfToken:"",errors:[]},t.onSubmitPhone=function(){var e=rr(ut.a.mark((function e(n,r){var o;return ut.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,mt({phone:n,cfToken:r});case 2:"success"===(o=e.sent).status&amp;&amp;(t.props.setIsNeedConfirmSms(!0),t.setState({errors:[],phone:n,cfToken:r})),"error"===o.status&amp;&amp;t.setState({errors:[o.errors]});case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),t.onSubmitSmsCode=function(){var e=rr(ut.a.mark((function e(n){var r;return ut.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,dt({code:n});case 2:return"success"===(r=e.sent).status&amp;&amp;(t.sendGtmEvent(Ot.c.success),t.setState({errors:[]}),window.showPreloader(),location.reload()),"reset_pin"===r.status&amp;&amp;(t.sendGtmEvent(Ot.c.error),t.props.setIsNeedConfirmSms(!1),t.setState({isTryAgain:!0})),e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),t.backToPhoneForm=function(){t.props.setIsNeedConfirmSms(!1)},t.loginByMail=function(){t.props.slideTo(wr.loginPassword)},t}return e=u,(n=[{key:"componentWillUnmount",value:function(){this.props.setIsNeedConfirmSms(!1)}},{key:"sendGtmEvent",value:function(t){(new Ot.f).dispatch({status:t,method:Ot.b.phone})}},{key:"render",value:function(t,e,n){return Object(r.h)("div",{className:"s-mobile-login"},!t.isNeedConfirmSms&amp;&amp;Object(r.h)(Wn,{errors:e.errors,isTryAgain:e.isTryAgain,onSubmitHandler:this.onSubmitPhone}),t.isNeedConfirmSms&amp;&amp;Object(r.h)(tr,{onSubmitHandler:this.onSubmitSmsCode,backToPhoneForm:this.backToPhoneForm,phone:e.phone,errors:e.errors}),Object(r.h)("div",{className:"s-login-sms__mail-link"},Object(r.h)("button",{onClick:this.loginByMail,type:"button",className:"s-link"},Object(r.h)(c.c,{id:"login.loginByMail"}))),!t.isNeedConfirmSms&amp;&amp;Object(r.h)("p",{className:"s-login-sms__agreement",dangerouslySetInnerHTML:{__html:t.agreement}}))}}])&amp;&amp;cr(e.prototype,n),o&amp;&amp;cr(e,o),u}(r.Component))||Zn)||Zn;function pr(t){return(pr="function"==typeof Symbol&amp;&amp;"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;"function"==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?"symbol":typeof t})(t)}function br(t,e){for(var n=0;n&lt;e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&amp;&amp;(r.writable=!0),Object.defineProperty(t,r.key,r)}}function yr(t,e){return(yr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function hr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=dr(t);if(e){var o=dr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mr(this,n)}}function mr(t,e){return!e||"object"!==pr(e)&amp;&amp;"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function dr(t){return(dr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function vr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&amp;&amp;(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Or(t){for(var e=1;e&lt;arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vr(Object(n),!0).forEach((function(e){jr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function jr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _r,wr={loginPassword:"loginPassword",loginSms:"loginSms",loginSmsConfirm:"loginSmsConfirm",smsCode:"smsCode",recover:"recover"},gr=Object(o.b)((function(t){return{authSlider:t.authSlider,isAllowedSmsAuth:t.auth.isAllowedSmsAuth}}),Or(Or({},_.a),Nt.a))(lr=function(t){!function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&amp;&amp;yr(t,e)}(i,t);var e,n,o,c=hr(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),e=c.call(this,t);var n=t.isAllowedSmsAuth?wr.loginSms:wr.loginPassword;return e.props.authSlider.slideTo(n),e}return e=i,(n=[{key:"componentWillUnmount",value:function(){this.props.authSlider.reset()}},{key:"render",value:function(t,e,n){return Object(r.h)(ct.a,{slider:t.authSlider},t.isAllowedSmsAuth&amp;&amp;Object(r.h)(ct.c,{key:wr.loginSms},Object(r.h)(fr,{slideTo:t.slideTo})),Object(r.h)(ct.c,{key:wr.loginPassword},Object(r.h)(Et,{slideTo:t.slideTo,slideBack:t.slideBack,isAllowedSmsAuth:t.isAllowedSmsAuth})),Object(r.h)(ct.c,{key:wr.recover},Object(r.h)(fn,null)))}}])&amp;&amp;br(e.prototype,n),o&amp;&amp;br(e,o),i}(r.Component))||lr;function Sr(t){return(Sr="function"==typeof Symbol&amp;&amp;"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;"function"==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?"symbol":typeof t})(t)}function Pr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kr(t,e){for(var n=0;n&lt;e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&amp;&amp;(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Rr(t,e){return(Rr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Tr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Cr(t);if(e){var o=Cr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xr(this,n)}}function xr(t,e){return!e||"object"!==Sr(e)&amp;&amp;"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Cr(t){return(Cr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Er,Nr=Object(o.b)((function(t){return{socialServices:t.dictionaries.socialServices}}))(_r=function(t){!function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&amp;&amp;Rr(t,e)}(i,t);var e,n,o,c=Tr(i);function i(){return Pr(this,i),c.apply(this,arguments)}return e=i,(n=[{key:"render",value:function(t,e,n){var o=t.socialServices;return Object(r.h)("ul",{className:"s-oauth__services s-social"},o.map((function(t){return Object(r.h)("li",{className:"s-social__item"},Object(r.h)("a",{href:t.url,className:"s-social__icon s-social__icon_site_".concat(t.uid)},t.name))})))}}])&amp;&amp;kr(e.prototype,n),o&amp;&amp;kr(e,o),i}(r.Component))||_r;function Br(t){return(Br="function"==typeof Symbol&amp;&amp;"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;"function"==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?"symbol":typeof t})(t)}function Ar(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Mr(t,e){for(var n=0;n&lt;e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&amp;&amp;(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ir(t,e){return(Ir=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Dr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Fr(t);if(e){var o=Fr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Lr(this,n)}}function Lr(t,e){return!e||"object"!==Br(e)&amp;&amp;"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Fr(t){return(Fr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Hr={desktopBtn:document.querySelector(".js-auth-desktop-action"),desktopFixedBtn:document.querySelector(".js-auth-desktop-fixed"),mobileBtn:document.querySelector(".js-auth-mobile-action")};Object.values(Hr).filter((function(t){return t})).forEach((function(t){return t.innerHTML=null}));var Wr=Object(o.b)((function(t){return{isAuthenticated:t.auth.isAuthenticated,title:t.auth.title,authSlider:t.authSlider}}),Nt.a)(Er=function(t){!function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&amp;&amp;e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&amp;&amp;Ir(t,e)}(i,t);var e,n,o,c=Dr(i);function i(){var t;Ar(this,i);for(var e=arguments.length,n=new Array(e),r=0;r&lt;e;r++)n[r]=arguments[r];return(t=c.call.apply(c,[this].concat(n))).state={isShowModal:window.location.search.includes("login=1")},t.showModal=function(){return t.setState({isShowModal:!0})},t.closeModal=function(){t.setState({isShowModal:!1})},t.onBack=function(){return t.props.slideBack()},t}return e=i,(n=[{key:"componentDidMount",value:function(){window.eventService.on("mobile-menu:open-login",this.showModal)}},{key:"isShowSocialIcons",value:function(){var t=this.props,e=t.isAuthenticated,n=t.authSlider;return!e&amp;&amp;n.currentSlide===wr.loginPassword}},{key:"render",value:function(t,e,n){var o=t.title,c=t.isAuthenticated;return Object(r.h)(r.Fragment,null,null!==Hr.mobileBtn&amp;&amp;Object(a.a)(Object(r.h)(v,{onClick:this.showModal,isAuthenticated:c}),Hr.mobileBtn),null!==Hr.desktopBtn&amp;&amp;Object(a.a)(Object(r.h)(q,{onShowModal:this.showModal,isAuthenticated:c}),Hr.desktopBtn),null!==Hr.desktopFixedBtn&amp;&amp;Object(a.a)(Object(r.h)(q,{onShowModal:this.showModal,isAuthenticated:c}),Hr.desktopFixedBtn),Object(r.h)(s.b,{onClose:this.closeModal,onBack:this.onBack,isShow:e.isShowModal,hasBack:t.authSlider.hasPrevious(),className:"s-mobile-login-dialog"},o&amp;&amp;Object(r.h)(s.b.Header,null,o),Object(r.h)(s.b.Body,{className:u()({"s-auth-menu__body":c})},c?Object(r.h)(ot,null):Object(r.h)(gr,null)),this.isShowSocialIcons()&amp;&amp;Object(r.h)(s.b.Footer,{className:"s-oauth s-oauth_type_popup"},Object(r.h)(Nr,null))))}}])&amp;&amp;Mr(e.prototype,n),o&amp;&amp;Mr(e,o),i}(r.Component))||Er,Ur=n(124),qr=n.n(Ur);!function(){window.s25AuthState.authSlider=new ct.b;var t=qr()(window.s25AuthState);Object(r.render)(Object(r.h)(o.a,{store:t},Object(r.h)(c.a,{definition:window.s25AuthI18},Object(r.h)(Wr,null))),document.body,document.body.lastElementChild)}()},184:function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return m}));var r=n(15),o=n(44),c=n(25),i=n(60),u=n(104),s=n(65),a=Object(r.b)({recover:i.b,auth:c.b,authSlider:s.b,user:u.b,dictionaries:function(t){return t||{}}}),l=n(1),f=n.n(l),p=n(4),b=f.a.mark(y);function y(){return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(p.a)([]);case 2:case"end":return t.stop()}}),b)}var h=Object(o.a)();function m(){var t=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{},e=Object(r.d)(a,t,Object(r.a)(h));return h.run(y),e}},25:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(9);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&amp;&amp;(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e&lt;arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u={setTitle:function(t,e){return c(c({},t),{},{title:e})},setIsNeedConfirmSms:function(t,e){return c(c({},t),{},{isNeedConfirmSms:e})}},s=Object(r.createSymbiote)({},u,"AUTH"),a=s.actions,l=s.reducer;s.types;e.b=l},60:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(9);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&amp;&amp;(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e&lt;arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u={setTypes:function(t,e){return c(c({},t),{},{types:e})},setMessages:function(t,e){return c(c({},t),{},{messages:e})},setCurrentType:function(t,e){return c(c({},t),{},{currentType:e})},setSmsAttempts:function(t,e){return c(c({},t),{},{smsAttempts:e})}},s=Object(r.createSymbiote)({},u,"RECOVER"),a=s.actions,l=s.reducer;s.types;e.b=l},65:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(9),o=n(27),c=Object(r.createSymbiote)(new o.b,o.d,"AUTH_SLIDER"),i=c.actions,u=c.reducer;c.types;e.b=u}});</pre></body></html>