@alfalab/core-components-confirmation 12.5.3 → 13.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/component.desktop.d.ts +1 -1
  2. package/component.desktop.js +6 -4
  3. package/component.mobile.js +7 -5
  4. package/component.responsive.d.ts +2 -3
  5. package/component.responsive.js +10 -10
  6. package/components/base-confirmation/component.js +11 -7
  7. package/components/base-confirmation/index.css +2 -2
  8. package/components/base-confirmation/index.js +6 -4
  9. package/components/countdown-loader/component.js +1 -1
  10. package/components/countdown-loader/index.css +2 -2
  11. package/components/header/component.js +1 -1
  12. package/components/header/index.css +4 -4
  13. package/components/index.js +6 -4
  14. package/components/screens/fatal-error/component.js +3 -3
  15. package/components/screens/fatal-error/index.css +6 -6
  16. package/components/screens/hint/component.js +3 -3
  17. package/components/screens/hint/index.css +12 -12
  18. package/components/screens/index.js +6 -4
  19. package/components/screens/initial/component.js +23 -11
  20. package/components/screens/initial/countdown-section.js +2 -2
  21. package/components/screens/initial/index.css +17 -20
  22. package/components/screens/initial/index.js +6 -4
  23. package/components/screens/temp-block/component.js +1 -1
  24. package/components/screens/temp-block/index.css +7 -7
  25. package/context.js +2 -0
  26. package/{countdown-section-751424e6.js → countdown-section-b212c5b4.js} +5 -5
  27. package/cssm/component.desktop.d.ts +1 -1
  28. package/cssm/component.desktop.js +5 -3
  29. package/cssm/component.mobile.js +5 -3
  30. package/cssm/component.responsive.d.ts +2 -3
  31. package/cssm/component.responsive.js +9 -9
  32. package/cssm/components/base-confirmation/component.js +9 -5
  33. package/cssm/components/base-confirmation/index.js +5 -3
  34. package/cssm/components/index.js +5 -3
  35. package/cssm/components/screens/fatal-error/component.js +2 -2
  36. package/cssm/components/screens/hint/component.js +2 -2
  37. package/cssm/components/screens/index.js +5 -3
  38. package/cssm/components/screens/initial/component.js +22 -10
  39. package/cssm/components/screens/initial/countdown-section.js +4 -4
  40. package/cssm/components/screens/initial/index.js +5 -3
  41. package/cssm/components/screens/initial/index.module.css +0 -3
  42. package/cssm/context.js +2 -0
  43. package/cssm/desktop.d.ts +1 -1
  44. package/cssm/desktop.js +8 -4
  45. package/cssm/index.d.ts +2 -6
  46. package/cssm/index.js +19 -27
  47. package/cssm/mobile.d.ts +1 -1
  48. package/cssm/mobile.js +8 -4
  49. package/cssm/shared.d.ts +4 -0
  50. package/cssm/shared.js +43 -0
  51. package/cssm/types.d.ts +16 -1
  52. package/desktop.d.ts +1 -1
  53. package/desktop.js +9 -5
  54. package/esm/component.desktop.d.ts +1 -1
  55. package/esm/component.desktop.js +6 -4
  56. package/esm/component.mobile.js +7 -5
  57. package/esm/component.responsive.d.ts +2 -3
  58. package/esm/component.responsive.js +10 -10
  59. package/esm/components/base-confirmation/component.js +11 -7
  60. package/esm/components/base-confirmation/index.css +2 -2
  61. package/esm/components/base-confirmation/index.js +6 -4
  62. package/esm/components/countdown-loader/component.js +1 -1
  63. package/esm/components/countdown-loader/index.css +2 -2
  64. package/esm/components/header/component.js +1 -1
  65. package/esm/components/header/index.css +4 -4
  66. package/esm/components/index.js +6 -4
  67. package/esm/components/screens/fatal-error/component.js +3 -3
  68. package/esm/components/screens/fatal-error/index.css +6 -6
  69. package/esm/components/screens/hint/component.js +3 -3
  70. package/esm/components/screens/hint/index.css +12 -12
  71. package/esm/components/screens/index.js +6 -4
  72. package/esm/components/screens/initial/component.js +19 -7
  73. package/esm/components/screens/initial/countdown-section.js +2 -2
  74. package/esm/components/screens/initial/index.css +17 -20
  75. package/esm/components/screens/initial/index.js +6 -4
  76. package/esm/components/screens/temp-block/component.js +1 -1
  77. package/esm/components/screens/temp-block/index.css +7 -7
  78. package/esm/context.js +2 -0
  79. package/esm/{countdown-section-c4ca26d0.js → countdown-section-83d922ef.js} +5 -5
  80. package/esm/desktop.d.ts +1 -1
  81. package/esm/desktop.js +7 -5
  82. package/esm/index.d.ts +2 -6
  83. package/esm/index.js +18 -15
  84. package/esm/mobile.css +2 -2
  85. package/esm/mobile.d.ts +1 -1
  86. package/esm/mobile.js +7 -5
  87. package/esm/shared.d.ts +4 -0
  88. package/esm/shared.js +20 -0
  89. package/esm/types.d.ts +16 -1
  90. package/index.d.ts +2 -6
  91. package/index.js +17 -25
  92. package/mobile.css +2 -2
  93. package/mobile.d.ts +1 -1
  94. package/mobile.js +9 -5
  95. package/modern/component.desktop.d.ts +1 -1
  96. package/modern/component.desktop.js +6 -4
  97. package/modern/component.mobile.js +7 -5
  98. package/modern/component.responsive.d.ts +2 -3
  99. package/modern/component.responsive.js +10 -10
  100. package/modern/components/base-confirmation/component.js +10 -6
  101. package/modern/components/base-confirmation/index.css +2 -2
  102. package/modern/components/base-confirmation/index.js +6 -4
  103. package/modern/components/countdown-loader/component.js +1 -1
  104. package/modern/components/countdown-loader/index.css +2 -2
  105. package/modern/components/header/component.js +1 -1
  106. package/modern/components/header/index.css +4 -4
  107. package/modern/components/index.js +6 -4
  108. package/modern/components/screens/fatal-error/component.js +3 -3
  109. package/modern/components/screens/fatal-error/index.css +6 -6
  110. package/modern/components/screens/hint/component.js +3 -3
  111. package/modern/components/screens/hint/index.css +12 -12
  112. package/modern/components/screens/index.js +6 -4
  113. package/modern/components/screens/initial/component.js +19 -7
  114. package/modern/components/screens/initial/countdown-section.js +2 -2
  115. package/modern/components/screens/initial/index.css +17 -20
  116. package/modern/components/screens/initial/index.js +6 -4
  117. package/modern/components/screens/temp-block/component.js +1 -1
  118. package/modern/components/screens/temp-block/index.css +7 -7
  119. package/modern/context.js +2 -0
  120. package/modern/{countdown-section-473f17f4.js → countdown-section-ea7af879.js} +5 -5
  121. package/modern/desktop.d.ts +1 -1
  122. package/modern/desktop.js +7 -5
  123. package/modern/index.d.ts +2 -6
  124. package/modern/index.js +18 -15
  125. package/modern/mobile.css +2 -2
  126. package/modern/mobile.d.ts +1 -1
  127. package/modern/mobile.js +7 -5
  128. package/modern/shared.d.ts +4 -0
  129. package/modern/shared.js +20 -0
  130. package/modern/types.d.ts +16 -1
  131. package/package.json +31 -6
  132. package/shared.d.ts +4 -0
  133. package/shared.js +37 -0
  134. package/src/component.desktop.tsx +10 -0
  135. package/src/component.mobile.tsx +13 -0
  136. package/src/component.responsive.tsx +31 -0
  137. package/src/components/base-confirmation/component.tsx +125 -0
  138. package/src/components/base-confirmation/index.module.css +8 -0
  139. package/src/components/base-confirmation/index.ts +1 -0
  140. package/src/components/countdown-loader/component.tsx +37 -0
  141. package/src/components/countdown-loader/index.module.css +7 -0
  142. package/src/components/countdown-loader/index.ts +1 -0
  143. package/src/components/header/component.tsx +28 -0
  144. package/src/components/header/index.module.css +21 -0
  145. package/src/components/header/index.ts +1 -0
  146. package/src/components/index.ts +2 -0
  147. package/src/components/screens/fatal-error/component.tsx +46 -0
  148. package/src/components/screens/fatal-error/index.module.css +23 -0
  149. package/src/components/screens/fatal-error/index.ts +1 -0
  150. package/src/components/screens/hint/component.tsx +94 -0
  151. package/src/components/screens/hint/index.module.css +51 -0
  152. package/src/components/screens/hint/index.ts +1 -0
  153. package/src/components/screens/index.ts +4 -0
  154. package/src/components/screens/initial/component.tsx +203 -0
  155. package/src/components/screens/initial/countdown-section.tsx +79 -0
  156. package/src/components/screens/initial/index.module.css +71 -0
  157. package/src/components/screens/initial/index.ts +1 -0
  158. package/src/components/screens/temp-block/component.tsx +58 -0
  159. package/src/components/screens/temp-block/index.module.css +28 -0
  160. package/src/components/screens/temp-block/index.ts +1 -0
  161. package/src/context.ts +27 -0
  162. package/src/desktop.ts +3 -0
  163. package/src/index.ts +6 -0
  164. package/src/mobile.module.css +3 -0
  165. package/src/mobile.ts +3 -0
  166. package/src/shared.ts +4 -0
  167. package/src/types.ts +228 -0
  168. package/src/utils.ts +107 -0
  169. package/src/vars.css +33 -0
  170. package/types.d.ts +16 -1
  171. package/cssm/responsive.d.ts +0 -2
  172. package/cssm/responsive.js +0 -39
  173. package/esm/responsive.d.ts +0 -2
  174. package/esm/responsive.js +0 -23
  175. package/modern/responsive.d.ts +0 -2
  176. package/modern/responsive.js +0 -22
  177. package/responsive.d.ts +0 -2
  178. package/responsive.js +0 -31
  179. /package/{countdown-section-751424e6.d.ts → countdown-section-b212c5b4.d.ts} +0 -0
  180. /package/esm/{countdown-section-c4ca26d0.d.ts → countdown-section-83d922ef.d.ts} +0 -0
  181. /package/modern/{countdown-section-473f17f4.d.ts → countdown-section-ea7af879.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
2
  import { ConfirmationProps } from "./types";
3
- type DesktopConfirmationProps = Omit<ConfirmationProps, 'mobile'>;
3
+ type DesktopConfirmationProps = Omit<ConfirmationProps, 'mobile' | 'breakpoint'>;
4
4
  declare const ConfirmationDesktop: FC<DesktopConfirmationProps>;
5
5
  export { DesktopConfirmationProps, ConfirmationDesktop };
@@ -11,13 +11,15 @@ require('./context.js');
11
11
  require('./utils.js');
12
12
  require('./types.js');
13
13
  require('./components/screens/initial/component.js');
14
- require('@alfalab/core-components-button');
15
- require('@alfalab/core-components-code-input');
14
+ require('@alfalab/core-components-button/mobile');
15
+ require('@alfalab/core-components-code-input/desktop');
16
+ require('@alfalab/core-components-code-input/mobile');
16
17
  require('@alfalab/core-components-link');
17
18
  require('@alfalab/core-components-typography');
18
19
  require('./components/header/component.js');
19
- require('./countdown-section-751424e6.js');
20
- require('@alfalab/core-components-loader');
20
+ require('./countdown-section-b212c5b4.js');
21
+ require('@alfalab/core-components-button');
22
+ require('@alfalab/core-components-spinner');
21
23
  require('./components/screens/hint/component.js');
22
24
  require('./components/screens/fatal-error/component.js');
23
25
  require('./components/screens/temp-block/component.js');
@@ -11,13 +11,15 @@ require('./context.js');
11
11
  require('./utils.js');
12
12
  require('./types.js');
13
13
  require('./components/screens/initial/component.js');
14
- require('@alfalab/core-components-button');
15
- require('@alfalab/core-components-code-input');
14
+ require('@alfalab/core-components-button/mobile');
15
+ require('@alfalab/core-components-code-input/desktop');
16
+ require('@alfalab/core-components-code-input/mobile');
16
17
  require('@alfalab/core-components-link');
17
18
  require('@alfalab/core-components-typography');
18
19
  require('./components/header/component.js');
19
- require('./countdown-section-751424e6.js');
20
- require('@alfalab/core-components-loader');
20
+ require('./countdown-section-b212c5b4.js');
21
+ require('@alfalab/core-components-button');
22
+ require('@alfalab/core-components-spinner');
21
23
  require('./components/screens/hint/component.js');
22
24
  require('./components/screens/fatal-error/component.js');
23
25
  require('./components/screens/temp-block/component.js');
@@ -28,7 +30,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
28
30
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
29
31
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
30
32
 
31
- var styles = {"container":"confirmation__container_12tpe"};
33
+ var styles = {"container":"confirmation__container_bsppw"};
32
34
  require('./mobile.css')
33
35
 
34
36
  var ConfirmationMobile = function (_a) {
@@ -1,12 +1,11 @@
1
1
  import { FC } from 'react';
2
2
  import { ConfirmationProps } from "./types";
3
- type ResponsiveConfirmationProps = Omit<ConfirmationProps, 'confirmationScreens'> & {
3
+ type ResponsiveConfirmationProps = Omit<ConfirmationProps, 'confirmationScreens' | 'breakpoint'> & {
4
4
  /**
5
5
  * Контрольная точка, с нее начинается desktop версия
6
6
  * @default 1024
7
7
  */
8
8
  breakpoint?: number;
9
9
  };
10
- type ConfirmationMedia = 'desktop' | 'mobile';
11
10
  declare const ConfirmationResponsive: FC<ResponsiveConfirmationProps>;
12
- export { ResponsiveConfirmationProps, ConfirmationMedia, ConfirmationResponsive };
11
+ export { ResponsiveConfirmationProps, ConfirmationResponsive };
@@ -4,22 +4,25 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var tslib = require('tslib');
6
6
  var React = require('react');
7
- var hooks = require('@alfalab/hooks');
7
+ var coreComponentsMq = require('@alfalab/core-components-mq');
8
8
  var component_desktop = require('./component.desktop.js');
9
9
  var component_mobile = require('./component.mobile.js');
10
10
  require('./components/base-confirmation/component.js');
11
11
  require('classnames');
12
+ require('@alfalab/hooks');
12
13
  require('./context.js');
13
14
  require('./utils.js');
14
15
  require('./types.js');
15
16
  require('./components/screens/initial/component.js');
16
- require('@alfalab/core-components-button');
17
- require('@alfalab/core-components-code-input');
17
+ require('@alfalab/core-components-button/mobile');
18
+ require('@alfalab/core-components-code-input/desktop');
19
+ require('@alfalab/core-components-code-input/mobile');
18
20
  require('@alfalab/core-components-link');
19
21
  require('@alfalab/core-components-typography');
20
22
  require('./components/header/component.js');
21
- require('./countdown-section-751424e6.js');
22
- require('@alfalab/core-components-loader');
23
+ require('./countdown-section-b212c5b4.js');
24
+ require('@alfalab/core-components-button');
25
+ require('@alfalab/core-components-spinner');
23
26
  require('./components/screens/hint/component.js');
24
27
  require('./components/screens/fatal-error/component.js');
25
28
  require('./components/screens/temp-block/component.js');
@@ -31,11 +34,8 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
31
34
 
32
35
  var ConfirmationResponsive = function (_a) {
33
36
  var _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, restProps = tslib.__rest(_a, ["breakpoint"]);
34
- var view = hooks.useMedia([
35
- ['mobile', "(max-width: ".concat(breakpoint - 1, "px)")],
36
- ['desktop', "(min-width: ".concat(breakpoint, "px)")],
37
- ], 'desktop')[0];
38
- return view === 'desktop' ? (React__default.default.createElement(component_desktop.ConfirmationDesktop, tslib.__assign({}, restProps))) : (React__default.default.createElement(component_mobile.ConfirmationMobile, tslib.__assign({}, restProps)));
37
+ var isDesktop = coreComponentsMq.useMatchMedia("(min-width: ".concat(breakpoint, "px)"), true)[0];
38
+ return isDesktop ? (React__default.default.createElement(component_desktop.ConfirmationDesktop, tslib.__assign({}, restProps))) : (React__default.default.createElement(component_mobile.ConfirmationMobile, tslib.__assign({ breakpoint: breakpoint }, restProps)));
39
39
  };
40
40
 
41
41
  exports.ConfirmationResponsive = ConfirmationResponsive;
@@ -13,13 +13,15 @@ var components_screens_initial_component = require('../screens/initial/component
13
13
  var components_screens_hint_component = require('../screens/hint/component.js');
14
14
  var components_screens_fatalError_component = require('../screens/fatal-error/component.js');
15
15
  var components_screens_tempBlock_component = require('../screens/temp-block/component.js');
16
- require('@alfalab/core-components-button');
17
- require('@alfalab/core-components-code-input');
16
+ require('@alfalab/core-components-button/mobile');
17
+ require('@alfalab/core-components-code-input/desktop');
18
+ require('@alfalab/core-components-code-input/mobile');
18
19
  require('@alfalab/core-components-link');
19
20
  require('@alfalab/core-components-typography');
20
21
  require('../header/component.js');
21
- require('../../countdown-section-751424e6.js');
22
- require('@alfalab/core-components-loader');
22
+ require('../../countdown-section-b212c5b4.js');
23
+ require('@alfalab/core-components-button');
24
+ require('@alfalab/core-components-spinner');
23
25
  require('../countdown-loader/component.js');
24
26
 
25
27
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
@@ -27,7 +29,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
27
29
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
28
30
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
29
31
 
30
- var styles = {"component":"confirmation__component_ok5k8"};
32
+ var styles = {"component":"confirmation__component_yc1y8"};
31
33
  require('./index.css')
32
34
 
33
35
  var confirmationScreens = {
@@ -37,8 +39,8 @@ var confirmationScreens = {
37
39
  TEMP_BLOCK: components_screens_tempBlock_component.TempBlock,
38
40
  };
39
41
  var BaseConfirmation = function (_a) {
40
- var state = _a.state, screen = _a.screen, _b = _a.alignContent, alignContent = _b === void 0 ? 'left' : _b; _a.children; var _c = _a.requiredCharAmount, requiredCharAmount = _c === void 0 ? 5 : _c, _d = _a.countdownDuration, countdownDuration = _d === void 0 ? utils.ONE_MINUTE : _d, _e = _a.tempBlockDuration, tempBlockDuration = _e === void 0 ? utils.ONE_DAY : _e, phone = _a.phone, blockSmsRetry = _a.blockSmsRetry, dataTestId = _a.dataTestId, className = _a.className, getScreensMap = _a.getScreensMap, onInputFinished = _a.onInputFinished, onChangeState = _a.onChangeState, onSmsRetryClick = _a.onSmsRetryClick, onChangeScreen = _a.onChangeScreen, onFatalErrorOkButtonClick = _a.onFatalErrorOkButtonClick, onTempBlockFinished = _a.onTempBlockFinished, mobile = _a.mobile, _f = _a.clearCodeOnError, clearCodeOnError = _f === void 0 ? true : _f, _g = _a.hideCountdownSection, hideCountdownSection = _g === void 0 ? false : _g, restProps = tslib.__rest(_a, ["state", "screen", "alignContent", "children", "requiredCharAmount", "countdownDuration", "tempBlockDuration", "phone", "blockSmsRetry", "dataTestId", "className", "getScreensMap", "onInputFinished", "onChangeState", "onSmsRetryClick", "onChangeScreen", "onFatalErrorOkButtonClick", "onTempBlockFinished", "mobile", "clearCodeOnError", "hideCountdownSection"]);
41
- var _h = utils.useCountdown(countdownDuration), timeLeft = _h[0], startTimer = _h[1], stopTimer = _h[2];
42
+ var state = _a.state, screen = _a.screen, _b = _a.alignContent, alignContent = _b === void 0 ? 'left' : _b; _a.children; var _c = _a.requiredCharAmount, requiredCharAmount = _c === void 0 ? 5 : _c, _d = _a.countdownDuration, countdownDuration = _d === void 0 ? utils.ONE_MINUTE : _d, _e = _a.tempBlockDuration, tempBlockDuration = _e === void 0 ? utils.ONE_DAY : _e, phone = _a.phone, blockSmsRetry = _a.blockSmsRetry, dataTestId = _a.dataTestId, className = _a.className, getScreensMap = _a.getScreensMap, onInputFinished = _a.onInputFinished, onChangeState = _a.onChangeState, onSmsRetryClick = _a.onSmsRetryClick, onChangeScreen = _a.onChangeScreen, onFatalErrorOkButtonClick = _a.onFatalErrorOkButtonClick, onTempBlockFinished = _a.onTempBlockFinished, mobile = _a.mobile, _f = _a.clearCodeOnError, clearCodeOnError = _f === void 0 ? true : _f, _g = _a.hideCountdownSection, hideCountdownSection = _g === void 0 ? false : _g, _h = _a.breakpoint, breakpoint = _h === void 0 ? 1024 : _h, initialScreenHintSlot = _a.initialScreenHintSlot, restProps = tslib.__rest(_a, ["state", "screen", "alignContent", "children", "requiredCharAmount", "countdownDuration", "tempBlockDuration", "phone", "blockSmsRetry", "dataTestId", "className", "getScreensMap", "onInputFinished", "onChangeState", "onSmsRetryClick", "onChangeScreen", "onFatalErrorOkButtonClick", "onTempBlockFinished", "mobile", "clearCodeOnError", "hideCountdownSection", "breakpoint", "initialScreenHintSlot"]);
43
+ var _j = utils.useCountdown(countdownDuration), timeLeft = _j[0], startTimer = _j[1], stopTimer = _j[2];
42
44
  var prevState = hooks.usePrevious(state);
43
45
  React.useEffect(function () {
44
46
  startTimer();
@@ -85,10 +87,12 @@ var BaseConfirmation = function (_a) {
85
87
  tempBlockDuration: tempBlockDuration,
86
88
  phone: phone,
87
89
  blockSmsRetry: blockSmsRetry,
90
+ breakpoint: breakpoint,
88
91
  onTempBlockFinished: onTempBlockFinished,
89
92
  onChangeState: onChangeState,
90
93
  onChangeScreen: onChangeScreen,
91
94
  clearCodeOnError: clearCodeOnError,
95
+ initialScreenHintSlot: initialScreenHintSlot,
92
96
  onInputFinished: handleInputFinished,
93
97
  onSmsRetryClick: handleSmsRetry,
94
98
  onFatalErrorOkButtonClick: handleFatalErrorOkButtonClick,
@@ -1,4 +1,4 @@
1
- /* hash: d4gh5 */
1
+ /* hash: y79yc */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-text-secondary: rgba(60, 60, 67, 0.66); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -15,7 +15,7 @@
15
15
  } :root {
16
16
  } :root {
17
17
  } :root {
18
- } .confirmation__component_ok5k8 {
18
+ } .confirmation__component_yc1y8 {
19
19
  width: 100%;
20
20
  max-width: 388px;
21
21
  margin: 0 auto;
@@ -11,13 +11,15 @@ require('../../context.js');
11
11
  require('../../utils.js');
12
12
  require('../../types.js');
13
13
  require('../screens/initial/component.js');
14
- require('@alfalab/core-components-button');
15
- require('@alfalab/core-components-code-input');
14
+ require('@alfalab/core-components-button/mobile');
15
+ require('@alfalab/core-components-code-input/desktop');
16
+ require('@alfalab/core-components-code-input/mobile');
16
17
  require('@alfalab/core-components-link');
17
18
  require('@alfalab/core-components-typography');
18
19
  require('../header/component.js');
19
- require('../../countdown-section-751424e6.js');
20
- require('@alfalab/core-components-loader');
20
+ require('../../countdown-section-b212c5b4.js');
21
+ require('@alfalab/core-components-button');
22
+ require('@alfalab/core-components-spinner');
21
23
  require('../screens/hint/component.js');
22
24
  require('../screens/fatal-error/component.js');
23
25
  require('../screens/temp-block/component.js');
@@ -8,7 +8,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
8
8
 
9
9
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
10
10
 
11
- var styles = {"circle":"confirmation__circle_7eoyn"};
11
+ var styles = {"circle":"confirmation__circle_xhpak"};
12
12
  require('./index.css')
13
13
 
14
14
  var SIZE = 16;
@@ -1,4 +1,4 @@
1
- /* hash: 1o2fd */
1
+ /* hash: 3um9q */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-graphic-tertiary: #c1c1c3; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -15,7 +15,7 @@
15
15
  } :root {
16
16
  } :root {
17
17
  } :root {
18
- } .confirmation__circle_7eoyn {
18
+ } .confirmation__circle_xhpak {
19
19
  fill: transparent;
20
20
  stroke: var(--color-light-graphic-tertiary);
21
21
  stroke-width: 2px;
@@ -11,7 +11,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
11
11
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
12
12
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
13
13
 
14
- var styles = {"header":"confirmation__header_13kb8","typography":"confirmation__typography_13kb8","typographyMobile":"confirmation__typographyMobile_13kb8"};
14
+ var styles = {"header":"confirmation__header_1olfk","typography":"confirmation__typography_1olfk","typographyMobile":"confirmation__typographyMobile_1olfk"};
15
15
  require('./index.css')
16
16
 
17
17
  var Header = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: b8a68 */
1
+ /* hash: 16j1o */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -34,15 +34,15 @@
34
34
 
35
35
  /* header */
36
36
  --confirmation-header-font-feature-settings: normal
37
- } .confirmation__header_13kb8.confirmation__header_13kb8 {
37
+ } .confirmation__header_1olfk.confirmation__header_1olfk {
38
38
  margin-bottom: var(--gap-xl);
39
- } .confirmation__typography_13kb8.confirmation__typography_13kb8.confirmation__typography_13kb8 {
39
+ } .confirmation__typography_1olfk.confirmation__typography_1olfk.confirmation__typography_1olfk {
40
40
  font-feature-settings: var(--confirmation-header-font-feature-settings);
41
41
  font-size: var(--confirmation-header-desktop-font-size);
42
42
  line-height: var(--confirmation-header-desktop-line-height);
43
43
  font-weight: var(--confirmation-header-desktop-font-weight);
44
44
  font-family: var(--confirmation-header-desktop-font-family);
45
- } .confirmation__typographyMobile_13kb8.confirmation__typographyMobile_13kb8.confirmation__typographyMobile_13kb8 {
45
+ } .confirmation__typographyMobile_1olfk.confirmation__typographyMobile_1olfk.confirmation__typographyMobile_1olfk {
46
46
  font-feature-settings: var(--confirmation-header-font-feature-settings);
47
47
  font-size: var(--confirmation-header-mobile-font-size);
48
48
  line-height: var(--confirmation-header-mobile-line-height);
@@ -9,16 +9,18 @@ var components_screens_tempBlock_component = require('./screens/temp-block/compo
9
9
  var components_countdownLoader_component = require('./countdown-loader/component.js');
10
10
  require('react');
11
11
  require('classnames');
12
- require('@alfalab/core-components-button');
13
- require('@alfalab/core-components-code-input');
12
+ require('@alfalab/core-components-button/mobile');
13
+ require('@alfalab/core-components-code-input/desktop');
14
+ require('@alfalab/core-components-code-input/mobile');
14
15
  require('@alfalab/core-components-link');
15
16
  require('@alfalab/core-components-typography');
16
17
  require('@alfalab/hooks');
17
18
  require('../context.js');
18
19
  require('../utils.js');
19
20
  require('./header/component.js');
20
- require('../countdown-section-751424e6.js');
21
- require('@alfalab/core-components-loader');
21
+ require('../countdown-section-b212c5b4.js');
22
+ require('@alfalab/core-components-button');
23
+ require('@alfalab/core-components-spinner');
22
24
 
23
25
 
24
26
 
@@ -15,17 +15,17 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
15
15
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
16
16
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
17
17
 
18
- var styles = {"component":"confirmation__component_l7sv4","typographyTheme":"confirmation__typographyTheme_l7sv4","left":"confirmation__left_l7sv4","center":"confirmation__center_l7sv4","button":"confirmation__button_l7sv4"};
18
+ var styles = {"component":"confirmation__component_1bof9","typographyTheme":"confirmation__typographyTheme_1bof9","left":"confirmation__left_1bof9","center":"confirmation__center_1bof9","button":"confirmation__button_1bof9"};
19
19
  require('./index.css')
20
20
 
21
21
  var FatalError = function (_a) {
22
22
  var _b;
23
23
  var mobile = _a.mobile;
24
- var _c = React.useContext(context.ConfirmationContext), alignContent = _c.alignContent, texts = _c.texts, onFatalErrorOkButtonClick = _c.onFatalErrorOkButtonClick;
24
+ var _c = React.useContext(context.ConfirmationContext), alignContent = _c.alignContent, texts = _c.texts, onFatalErrorOkButtonClick = _c.onFatalErrorOkButtonClick, breakpoint = _c.breakpoint;
25
25
  return (React__default.default.createElement("div", { className: cn__default.default(styles.component, styles[alignContent]) },
26
26
  React__default.default.createElement(components_header_component.Header, { mobile: mobile }, texts.fatalErrorTitle),
27
27
  React__default.default.createElement(coreComponentsTypography.Typography.Text, { view: 'primary-medium', color: 'primary', className: cn__default.default((_b = {}, _b[styles.typographyTheme] = !mobile, _b)) }, texts.fatalErrorDescription),
28
- React__default.default.createElement(coreComponentsButton.Button, { size: mobile ? 'xs' : 's', view: 'secondary', onClick: onFatalErrorOkButtonClick, className: styles.button }, texts.fatalErrorButton)));
28
+ React__default.default.createElement(coreComponentsButton.Button, { size: mobile ? 'xs' : 's', view: 'secondary', onClick: onFatalErrorOkButtonClick, className: styles.button, breakpoint: breakpoint }, texts.fatalErrorButton)));
29
29
  };
30
30
 
31
31
  exports.FatalError = FatalError;
@@ -1,4 +1,4 @@
1
- /* hash: l1a4n */
1
+ /* hash: e2xry */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-text-primary: #0e0e0e; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -31,20 +31,20 @@
31
31
  --confirmation-text-color: var(--color-light-text-primary)
32
32
 
33
33
  /* header */
34
- } .confirmation__component_l7sv4 {
34
+ } .confirmation__component_1bof9 {
35
35
  display: flex;
36
36
  flex-direction: column;
37
- } .confirmation__typographyTheme_l7sv4.confirmation__typographyTheme_l7sv4 {
37
+ } .confirmation__typographyTheme_1bof9.confirmation__typographyTheme_1bof9 {
38
38
  font-size: var(--confirmation-text-font-size);
39
39
  line-height: var(--confirmation-text-line-height);
40
40
  font-weight: var(--confirmation-text-font-weight);
41
41
  font-family: var(--confirmation-text-font-family);
42
42
  color: var(--confirmation-text-color);
43
- } .confirmation__left_l7sv4 {
43
+ } .confirmation__left_1bof9 {
44
44
  align-items: flex-start;
45
- } .confirmation__center_l7sv4 {
45
+ } .confirmation__center_1bof9 {
46
46
  align-items: center;
47
47
  text-align: center;
48
- } .confirmation__button_l7sv4 {
48
+ } .confirmation__button_1bof9 {
49
49
  margin-top: var(--gap-2xl);
50
50
  }
@@ -16,13 +16,13 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
16
16
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
17
17
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
18
18
 
19
- var styles = {"component":"confirmation__component_1xpku","center":"confirmation__center_1xpku","text":"confirmation__text_1xpku","typographyTheme":"confirmation__typographyTheme_1xpku","phonesWrap":"confirmation__phonesWrap_1xpku","phoneWrap":"confirmation__phoneWrap_1xpku","phoneLink":"confirmation__phoneLink_1xpku","hintButton":"confirmation__hintButton_1xpku","phoneContentMobile":"confirmation__phoneContentMobile_1xpku"};
19
+ var styles = {"component":"confirmation__component_qgws3","center":"confirmation__center_qgws3","text":"confirmation__text_qgws3","typographyTheme":"confirmation__typographyTheme_qgws3","phonesWrap":"confirmation__phonesWrap_qgws3","phoneWrap":"confirmation__phoneWrap_qgws3","phoneLink":"confirmation__phoneLink_qgws3","hintButton":"confirmation__hintButton_qgws3","phoneContentMobile":"confirmation__phoneContentMobile_qgws3"};
20
20
  require('./index.css')
21
21
 
22
22
  var Hint = function (_a) {
23
23
  var _b, _c, _d, _e, _f, _g;
24
24
  var mobile = _a.mobile;
25
- var _h = React.useContext(context.ConfirmationContext), alignContent = _h.alignContent, texts = _h.texts, onChangeScreen = _h.onChangeScreen, onChangeState = _h.onChangeState;
25
+ var _h = React.useContext(context.ConfirmationContext), alignContent = _h.alignContent, texts = _h.texts, onChangeScreen = _h.onChangeScreen, onChangeState = _h.onChangeState, breakpoint = _h.breakpoint;
26
26
  var handleReturnButtonClick = function () {
27
27
  onChangeScreen('INITIAL');
28
28
  onChangeState('INITIAL');
@@ -42,7 +42,7 @@ var Hint = function (_a) {
42
42
  ? 'В\u00A0Москве и\u00A0за\u00A0границей'
43
43
  : ' \u2014\u00A0в\u00A0Москве и\u00A0за\u00A0границей'))),
44
44
  React__default.default.createElement(coreComponentsTypography.Typography.Text, { view: 'primary-medium', color: 'primary', className: cn__default.default(styles.text, (_g = {}, _g[styles.typographyTheme] = !mobile, _g)) }, "\u0415\u0441\u043B\u0438 \u043D\u043E\u043C\u0435\u0440 \u043D\u0435\u00A0\u043C\u0435\u043D\u044F\u043B\u0441\u044F, \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u043F\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0435\u043D \u0441\u0435\u0440\u0432\u0438\u0441 \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0438 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043C\u0438\u043D\u0443\u0442."),
45
- React__default.default.createElement(coreComponentsButton.Button, { size: mobile ? 'xs' : 's', view: 'secondary', onClick: handleReturnButtonClick, className: styles.hintButton }, texts.hintButton)));
45
+ React__default.default.createElement(coreComponentsButton.Button, { size: mobile ? 'xs' : 's', view: 'secondary', onClick: handleReturnButtonClick, className: styles.hintButton, breakpoint: breakpoint }, texts.hintButton)));
46
46
  };
47
47
 
48
48
  exports.Hint = Hint;
@@ -1,4 +1,4 @@
1
- /* hash: rzbka */
1
+ /* hash: 1cl2j */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-text-primary: #0e0e0e; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -33,38 +33,38 @@
33
33
  --confirmation-text-color: var(--color-light-text-primary)
34
34
 
35
35
  /* header */
36
- } .confirmation__component_1xpku {
36
+ } .confirmation__component_qgws3 {
37
37
  display: flex;
38
38
  flex-direction: column;
39
39
  align-items: flex-start
40
- } .confirmation__component_1xpku span:last-of-type {
40
+ } .confirmation__component_qgws3 span:last-of-type {
41
41
  margin-bottom: 0;
42
- } .confirmation__center_1xpku {
42
+ } .confirmation__center_qgws3 {
43
43
  align-items: center;
44
44
  text-align: center;
45
- } .confirmation__text_1xpku.confirmation__text_1xpku {
45
+ } .confirmation__text_qgws3.confirmation__text_qgws3 {
46
46
  margin-bottom: var(--gap-xl);
47
- } .confirmation__typographyTheme_1xpku.confirmation__typographyTheme_1xpku {
47
+ } .confirmation__typographyTheme_qgws3.confirmation__typographyTheme_qgws3 {
48
48
  font-size: var(--confirmation-text-font-size);
49
49
  line-height: var(--confirmation-text-line-height);
50
50
  font-weight: var(--confirmation-text-font-weight);
51
51
  font-family: var(--confirmation-text-font-family);
52
52
  color: var(--confirmation-text-color);
53
- } .confirmation__phonesWrap_1xpku {
53
+ } .confirmation__phonesWrap_qgws3 {
54
54
  display: flex;
55
55
  flex-direction: column;
56
56
  margin-bottom: var(--gap-xl);
57
- } .confirmation__phoneWrap_1xpku {
57
+ } .confirmation__phoneWrap_qgws3 {
58
58
  margin-bottom: var(--gap-xs)
59
- } .confirmation__phoneWrap_1xpku:last-child {
59
+ } .confirmation__phoneWrap_qgws3:last-child {
60
60
  margin-bottom: 0;
61
- } .confirmation__phoneLink_1xpku.confirmation__phoneLink_1xpku {
61
+ } .confirmation__phoneLink_qgws3.confirmation__phoneLink_qgws3 {
62
62
  font-size: 16px;
63
63
  line-height: 24px;
64
64
  font-weight: 500;
65
- } .confirmation__hintButton_1xpku {
65
+ } .confirmation__hintButton_qgws3 {
66
66
  margin-top: var(--gap-2xl);
67
- } .confirmation__phoneContentMobile_1xpku {
67
+ } .confirmation__phoneContentMobile_qgws3 {
68
68
  display: flex;
69
69
  flex-direction: column;
70
70
  align-items: center;
@@ -8,16 +8,18 @@ var components_screens_fatalError_component = require('./fatal-error/component.j
8
8
  var components_screens_tempBlock_component = require('./temp-block/component.js');
9
9
  require('react');
10
10
  require('classnames');
11
- require('@alfalab/core-components-button');
12
- require('@alfalab/core-components-code-input');
11
+ require('@alfalab/core-components-button/mobile');
12
+ require('@alfalab/core-components-code-input/desktop');
13
+ require('@alfalab/core-components-code-input/mobile');
13
14
  require('@alfalab/core-components-link');
14
15
  require('@alfalab/core-components-typography');
15
16
  require('@alfalab/hooks');
16
17
  require('../../context.js');
17
18
  require('../../utils.js');
18
19
  require('../header/component.js');
19
- require('../../countdown-section-751424e6.js');
20
- require('@alfalab/core-components-loader');
20
+ require('../../countdown-section-b212c5b4.js');
21
+ require('@alfalab/core-components-button');
22
+ require('@alfalab/core-components-spinner');
21
23
  require('../countdown-loader/component.js');
22
24
 
23
25
 
@@ -4,16 +4,18 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
6
  var cn = require('classnames');
7
- var coreComponentsButton = require('@alfalab/core-components-button');
8
- var coreComponentsCodeInput = require('@alfalab/core-components-code-input');
7
+ var mobile = require('@alfalab/core-components-button/mobile');
8
+ var desktop = require('@alfalab/core-components-code-input/desktop');
9
+ var mobile$1 = require('@alfalab/core-components-code-input/mobile');
9
10
  var coreComponentsLink = require('@alfalab/core-components-link');
10
11
  var coreComponentsTypography = require('@alfalab/core-components-typography');
11
12
  var hooks = require('@alfalab/hooks');
12
13
  var context = require('../../../context.js');
13
14
  var components_header_component = require('../../header/component.js');
14
- var components_screens_initial_countdownSection = require('../../../countdown-section-751424e6.js');
15
+ var components_screens_initial_countdownSection = require('../../../countdown-section-b212c5b4.js');
15
16
  require('../../../utils.js');
16
- require('@alfalab/core-components-loader');
17
+ require('@alfalab/core-components-button');
18
+ require('@alfalab/core-components-spinner');
17
19
 
18
20
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
19
21
 
@@ -23,8 +25,8 @@ var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
23
25
  var CODE_SEND_HINT_VISIBLE_DURATION = 2000;
24
26
  var Initial = function (_a) {
25
27
  var _b;
26
- var mobile = _a.mobile;
27
- var _c = React.useContext(context.ConfirmationContext), state = _c.state, alignContent = _c.alignContent, texts = _c.texts, requiredCharAmount = _c.requiredCharAmount, timeLeft = _c.timeLeft, phone = _c.phone, clearCodeOnError = _c.clearCodeOnError, hideCountdownSection = _c.hideCountdownSection, onChangeState = _c.onChangeState, onInputFinished = _c.onInputFinished, onChangeScreen = _c.onChangeScreen, onSmsRetryClick = _c.onSmsRetryClick;
28
+ var mobile$2 = _a.mobile;
29
+ var _c = React.useContext(context.ConfirmationContext), state = _c.state, alignContent = _c.alignContent, texts = _c.texts, requiredCharAmount = _c.requiredCharAmount, timeLeft = _c.timeLeft, phone = _c.phone, clearCodeOnError = _c.clearCodeOnError, hideCountdownSection = _c.hideCountdownSection, initialScreenHintSlot = _c.initialScreenHintSlot, onChangeState = _c.onChangeState, onInputFinished = _c.onInputFinished, onChangeScreen = _c.onChangeScreen, onSmsRetryClick = _c.onSmsRetryClick;
28
30
  var prevState = hooks.usePrevious(state);
29
31
  var inputRef = React.useRef(null);
30
32
  var _d = React.useState(false), codeSendHintVisible = _d[0], setCodeSendHintVisible = _d[1];
@@ -88,16 +90,26 @@ var Initial = function (_a) {
88
90
  }
89
91
  return false;
90
92
  };
93
+ var renderHintButton = function () {
94
+ if (initialScreenHintSlot) {
95
+ return initialScreenHintSlot;
96
+ }
97
+ if (mobile$2) {
98
+ return (React__default.default.createElement(mobile.ButtonMobile, { onClick: handleSmsHintLinkClick, view: 'link', size: 'xs' }, texts.linkToHint));
99
+ }
100
+ return (React__default.default.createElement(coreComponentsLink.Link, { onClick: handleSmsHintLinkClick, className: components_screens_initial_countdownSection.styles.smsComeLink, view: mobile$2 ? 'primary' : 'secondary', pseudo: true }, texts.linkToHint));
101
+ };
91
102
  var processing = ['CODE_CHECKING', 'CODE_SENDING'].includes(state);
92
103
  var timePassed = timeLeft === 0;
104
+ var ComponentCodeInput = mobile$2 ? mobile$1.CodeInputMobile : desktop.CodeInputDesktop;
93
105
  return (React__default.default.createElement("div", { className: cn__default.default(components_screens_initial_countdownSection.styles.component, components_screens_initial_countdownSection.styles[alignContent]) },
94
- React__default.default.createElement(components_header_component.Header, { mobile: mobile }, texts.title),
95
- React__default.default.createElement(coreComponentsTypography.Typography.Text, { view: 'primary-medium', color: 'primary', className: cn__default.default(components_screens_initial_countdownSection.styles.phone, (_b = {}, _b[components_screens_initial_countdownSection.styles.typographyTheme] = !mobile, _b)) },
106
+ React__default.default.createElement(components_header_component.Header, { mobile: mobile$2 }, texts.title),
107
+ React__default.default.createElement(coreComponentsTypography.Typography.Text, { view: 'primary-medium', color: 'primary', className: cn__default.default(components_screens_initial_countdownSection.styles.phone, (_b = {}, _b[components_screens_initial_countdownSection.styles.typographyTheme] = !mobile$2, _b)) },
96
108
  "\u041A\u043E\u0434 \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D \u043D\u0430 ",
97
109
  phone),
98
- React__default.default.createElement(coreComponentsCodeInput.CodeInput, { disabled: processing, error: getCodeInputError(), ref: inputRef, fields: requiredCharAmount, className: cn__default.default(components_screens_initial_countdownSection.styles.containerInput, components_screens_initial_countdownSection.styles.codeInput), onComplete: handleInputComplete, onChange: handleInputChange, clearCodeOnError: clearCodeOnError, onErrorAnimationEnd: handleErrorAnimationEnd }),
99
- !hideCountdownSection && (React__default.default.createElement(components_screens_initial_countdownSection.CountdownSection, { processing: processing, timePassed: timePassed, codeSendHintVisible: codeSendHintVisible, handleSmsRetryClick: handleSmsRetryClick, mobile: mobile })),
100
- mobile ? (React__default.default.createElement(coreComponentsButton.Button, { onClick: handleSmsHintLinkClick, view: 'link', size: 'xs' }, texts.linkToHint)) : (React__default.default.createElement(coreComponentsLink.Link, { onClick: handleSmsHintLinkClick, className: components_screens_initial_countdownSection.styles.smsComeLink, view: mobile ? 'primary' : 'secondary', pseudo: true }, texts.linkToHint))));
110
+ React__default.default.createElement(ComponentCodeInput, { disabled: processing, error: getCodeInputError(), ref: inputRef, fields: requiredCharAmount, className: cn__default.default(components_screens_initial_countdownSection.styles.containerInput, components_screens_initial_countdownSection.styles.codeInput), onComplete: handleInputComplete, onChange: handleInputChange, clearCodeOnError: clearCodeOnError, onErrorAnimationEnd: handleErrorAnimationEnd }),
111
+ !hideCountdownSection && (React__default.default.createElement(components_screens_initial_countdownSection.CountdownSection, { processing: processing, timePassed: timePassed, codeSendHintVisible: codeSendHintVisible, handleSmsRetryClick: handleSmsRetryClick, mobile: mobile$2 })),
112
+ renderHintButton()));
101
113
  };
102
114
 
103
115
  exports.Initial = Initial;
@@ -5,11 +5,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  require('react');
6
6
  require('classnames');
7
7
  require('@alfalab/core-components-button');
8
- require('@alfalab/core-components-loader');
8
+ require('@alfalab/core-components-spinner');
9
9
  require('@alfalab/core-components-typography');
10
10
  require('../../../context.js');
11
11
  require('../../../utils.js');
12
- var components_screens_initial_countdownSection = require('../../../countdown-section-751424e6.js');
12
+ var components_screens_initial_countdownSection = require('../../../countdown-section-b212c5b4.js');
13
13
 
14
14
 
15
15