@redneckz/wildless-cms-uni-blocks 0.14.841 → 0.14.842

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 (168) hide show
  1. package/bundle/bundle.umd.js +17 -22
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/ui-kit/Loader/Loader.d.ts +1 -1
  4. package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  5. package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  6. package/dist/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
  7. package/dist/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
  8. package/dist/components/CardTransfer/CardTransfer.js +1 -8
  9. package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  10. package/dist/components/CardTransfer/SubmitFailedDialog.js +1 -1
  11. package/dist/components/CardTransfer/SubmitFailedDialog.js.map +1 -1
  12. package/dist/components/Carousel/renderCarouselCards.js +2 -2
  13. package/dist/components/Carousel/renderCarouselCards.js.map +1 -1
  14. package/dist/components/Footer/HorizontalNavigation.js +1 -1
  15. package/dist/components/Footer/HorizontalNavigation.js.map +1 -1
  16. package/dist/components/Footer/TextInformationLink.js +1 -1
  17. package/dist/components/Footer/TextInformationLink.js.map +1 -1
  18. package/dist/components/Header/HeaderTopMenu.js +1 -1
  19. package/dist/components/Header/HeaderTopMenu.js.map +1 -1
  20. package/dist/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
  21. package/dist/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
  22. package/dist/retail/components/DraftDialog/DraftDialog.js +1 -1
  23. package/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  24. package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
  25. package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  26. package/dist/ui-kit/Calculator/CalculatorStyle.js +1 -1
  27. package/dist/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
  28. package/dist/ui-kit/InputRange/InputRange.js +1 -1
  29. package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  30. package/dist/ui-kit/LinkButton/ButtonInner.js +1 -1
  31. package/dist/ui-kit/LinkButton/ButtonInner.js.map +1 -1
  32. package/dist/ui-kit/Loader/Loader.d.ts +1 -1
  33. package/dist/ui-kit/Loader/Loader.js.map +1 -1
  34. package/dist/ui-kit/ProgressBar/ProgressBar.js +1 -1
  35. package/lib/common.css +1 -1
  36. package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  37. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  38. package/lib/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
  39. package/lib/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
  40. package/lib/components/CardTransfer/CardTransfer.js +1 -8
  41. package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  42. package/lib/components/CardTransfer/SubmitFailedDialog.js +1 -1
  43. package/lib/components/CardTransfer/SubmitFailedDialog.js.map +1 -1
  44. package/lib/components/Carousel/renderCarouselCards.js +2 -2
  45. package/lib/components/Carousel/renderCarouselCards.js.map +1 -1
  46. package/lib/components/Footer/HorizontalNavigation.js +1 -1
  47. package/lib/components/Footer/HorizontalNavigation.js.map +1 -1
  48. package/lib/components/Footer/TextInformationLink.js +1 -1
  49. package/lib/components/Footer/TextInformationLink.js.map +1 -1
  50. package/lib/components/Header/HeaderTopMenu.js +1 -1
  51. package/lib/components/Header/HeaderTopMenu.js.map +1 -1
  52. package/lib/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
  53. package/lib/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
  54. package/lib/retail/components/DraftDialog/DraftDialog.js +1 -1
  55. package/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  56. package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
  57. package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  58. package/lib/ui-kit/Calculator/CalculatorStyle.js +1 -1
  59. package/lib/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
  60. package/lib/ui-kit/InputRange/InputRange.js +1 -1
  61. package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  62. package/lib/ui-kit/LinkButton/ButtonInner.js +1 -1
  63. package/lib/ui-kit/LinkButton/ButtonInner.js.map +1 -1
  64. package/lib/ui-kit/Loader/Loader.d.ts +1 -1
  65. package/lib/ui-kit/Loader/Loader.js.map +1 -1
  66. package/lib/ui-kit/ProgressBar/ProgressBar.fixture.d.ts +4 -1
  67. package/lib/ui-kit/ProgressBar/ProgressBar.js +1 -1
  68. package/mobile/bundle/bundle.umd.js +16 -21
  69. package/mobile/bundle/bundle.umd.min.js +1 -1
  70. package/mobile/bundle/ui-kit/Loader/Loader.d.ts +1 -1
  71. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  72. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  73. package/mobile/dist/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
  74. package/mobile/dist/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
  75. package/mobile/dist/components/CardTransfer/CardTransfer.js +1 -8
  76. package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  77. package/mobile/dist/components/CardTransfer/SubmitFailedDialog.js +1 -1
  78. package/mobile/dist/components/CardTransfer/SubmitFailedDialog.js.map +1 -1
  79. package/mobile/dist/components/Carousel/renderCarouselCards.js +2 -2
  80. package/mobile/dist/components/Carousel/renderCarouselCards.js.map +1 -1
  81. package/mobile/dist/components/Footer/HorizontalNavigation.js +1 -1
  82. package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
  83. package/mobile/dist/components/Footer/TextInformationLink.js +1 -1
  84. package/mobile/dist/components/Footer/TextInformationLink.js.map +1 -1
  85. package/mobile/dist/components/Header/HeaderTopMenu.js +1 -1
  86. package/mobile/dist/components/Header/HeaderTopMenu.js.map +1 -1
  87. package/mobile/dist/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
  88. package/mobile/dist/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
  89. package/mobile/dist/retail/components/DraftDialog/DraftDialog.js +1 -1
  90. package/mobile/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  91. package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
  92. package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  93. package/mobile/dist/ui-kit/Calculator/CalculatorStyle.js +1 -1
  94. package/mobile/dist/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
  95. package/mobile/dist/ui-kit/InputRange/InputRange.js +1 -1
  96. package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  97. package/mobile/dist/ui-kit/LinkButton/ButtonInner.js +1 -1
  98. package/mobile/dist/ui-kit/LinkButton/ButtonInner.js.map +1 -1
  99. package/mobile/dist/ui-kit/Loader/Loader.d.ts +1 -1
  100. package/mobile/dist/ui-kit/Loader/Loader.js.map +1 -1
  101. package/mobile/dist/ui-kit/ProgressBar/ProgressBar.js +1 -1
  102. package/mobile/lib/common.css +1 -1
  103. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  104. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  105. package/mobile/lib/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
  106. package/mobile/lib/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
  107. package/mobile/lib/components/CardTransfer/CardTransfer.js +1 -8
  108. package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  109. package/mobile/lib/components/CardTransfer/SubmitFailedDialog.js +1 -1
  110. package/mobile/lib/components/CardTransfer/SubmitFailedDialog.js.map +1 -1
  111. package/mobile/lib/components/Carousel/renderCarouselCards.js +2 -2
  112. package/mobile/lib/components/Carousel/renderCarouselCards.js.map +1 -1
  113. package/mobile/lib/components/Footer/HorizontalNavigation.js +1 -1
  114. package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
  115. package/mobile/lib/components/Footer/TextInformationLink.js +1 -1
  116. package/mobile/lib/components/Footer/TextInformationLink.js.map +1 -1
  117. package/mobile/lib/components/Header/HeaderTopMenu.js +1 -1
  118. package/mobile/lib/components/Header/HeaderTopMenu.js.map +1 -1
  119. package/mobile/lib/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
  120. package/mobile/lib/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
  121. package/mobile/lib/retail/components/DraftDialog/DraftDialog.js +1 -1
  122. package/mobile/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  123. package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
  124. package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  125. package/mobile/lib/ui-kit/Calculator/CalculatorStyle.js +1 -1
  126. package/mobile/lib/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
  127. package/mobile/lib/ui-kit/InputRange/InputRange.js +1 -1
  128. package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  129. package/mobile/lib/ui-kit/LinkButton/ButtonInner.js +1 -1
  130. package/mobile/lib/ui-kit/LinkButton/ButtonInner.js.map +1 -1
  131. package/mobile/lib/ui-kit/Loader/Loader.d.ts +1 -1
  132. package/mobile/lib/ui-kit/Loader/Loader.js.map +1 -1
  133. package/mobile/lib/ui-kit/ProgressBar/ProgressBar.js +1 -1
  134. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  135. package/mobile/src/components/CalculatorRefinancing/CalculatorRefinancing.tsx +1 -3
  136. package/mobile/src/components/CardTransfer/CardTransfer.tsx +5 -18
  137. package/mobile/src/components/CardTransfer/SubmitFailedDialog.tsx +2 -2
  138. package/mobile/src/components/Carousel/renderCarouselCards.tsx +2 -6
  139. package/mobile/src/components/Footer/HorizontalNavigation.tsx +1 -1
  140. package/mobile/src/components/Footer/TextInformationLink.tsx +1 -1
  141. package/mobile/src/components/Header/HeaderTopMenu.tsx +1 -5
  142. package/mobile/src/retail/components/CaptchaDialog/CaptchaDialog.tsx +4 -4
  143. package/mobile/src/retail/components/DraftDialog/DraftDialog.tsx +1 -1
  144. package/mobile/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +1 -1
  145. package/mobile/src/ui-kit/Calculator/CalculatorStyle.tsx +1 -1
  146. package/mobile/src/ui-kit/InputRange/InputRange.tsx +1 -1
  147. package/mobile/src/ui-kit/LinkButton/ButtonInner.tsx +1 -1
  148. package/mobile/src/ui-kit/Loader/Loader.tsx +1 -1
  149. package/mobile/src/ui-kit/ProgressBar/ProgressBar.tsx +1 -1
  150. package/package.json +1 -1
  151. package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  152. package/src/components/CalculatorRefinancing/CalculatorRefinancing.tsx +1 -3
  153. package/src/components/CardTransfer/CardTransfer.tsx +5 -18
  154. package/src/components/CardTransfer/SubmitFailedDialog.tsx +2 -2
  155. package/src/components/Carousel/renderCarouselCards.tsx +2 -6
  156. package/src/components/Footer/HorizontalNavigation.tsx +1 -1
  157. package/src/components/Footer/TextInformationLink.tsx +1 -1
  158. package/src/components/Header/HeaderTopMenu.tsx +1 -5
  159. package/src/icons/IconName.ts +4 -4
  160. package/src/retail/components/CaptchaDialog/CaptchaDialog.tsx +4 -4
  161. package/src/retail/components/DraftDialog/DraftDialog.tsx +1 -1
  162. package/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +1 -1
  163. package/src/ui-kit/Calculator/CalculatorStyle.tsx +1 -1
  164. package/src/ui-kit/InputRange/InputRange.tsx +1 -1
  165. package/src/ui-kit/LinkButton/ButtonInner.tsx +1 -1
  166. package/src/ui-kit/Loader/Loader.tsx +1 -1
  167. package/src/ui-kit/ProgressBar/ProgressBar.fixture.tsx +4 -1
  168. package/src/ui-kit/ProgressBar/ProgressBar.tsx +1 -1
@@ -513,7 +513,7 @@
513
513
  const ButtonInner = JSX((props) => {
514
514
  const { text, aboveText, appendLeft, appendRight, version = 'primary' } = props;
515
515
  const iconHideStyle = isWithText(props) && 'hidden lg:block';
516
- return (jsxs("div", { className: style(buttonStyle$1(props), 'flex gap-xs'), children: [appendLeft ? (jsx("div", { className: style(iconHideStyle, iconStyleMap$1[version]), children: appendLeft })) : null, isWithText(props) ? (jsxs("div", { className: "whitespace-pre", children: [aboveText ? jsx("div", { className: "text-xs font-light text-left", children: aboveText }) : null, jsx("div", { className: `text-left ${aboveText ? 'text-s -mt-3xs' : 'text-l'}`, children: text })] })) : null, appendRight ? (jsx("div", { className: style(iconHideStyle, iconStyleMap$1[version]), children: appendRight })) : null] }));
516
+ return (jsxs("div", { className: style(buttonStyle$1(props), 'flex gap-xs'), children: [appendLeft ? (jsx("div", { className: style(iconHideStyle, iconStyleMap$1[version]), children: appendLeft })) : null, isWithText(props) ? (jsxs("div", { className: "whitespace-pre", children: [aboveText ? jsx("div", { className: "text-xs font-light text-left", children: aboveText }) : null, jsx("div", { className: `text-left ${aboveText ? 'text-s' : 'text-l'}`, children: text })] })) : null, appendRight ? (jsx("div", { className: style(iconHideStyle, iconStyleMap$1[version]), children: appendRight })) : null] }));
517
517
  });
518
518
  const buttonStyle$1 = (props) => {
519
519
  const { version, aboveText, rounded } = props;
@@ -1578,7 +1578,7 @@
1578
1578
  const handleChange = useCallback((ev) => {
1579
1579
  onChange && onChange(parseDecimal(ev.target?.value));
1580
1580
  }, [onChange]);
1581
- return (jsxs("div", { className: className, children: [jsxs("label", { className: "block relative", children: [title ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-primary-text", children: title })) : null, jsx("input", { className: style('text-h3 w-full h-14', 'pl-m mt-xs box-border', 'text-primary-text', inputValidStyle, inputDisabledStyle), disabled: disabled, onChange: handleChange, ...normalizedProps }), renderRangeWithTicks({ list, min, max, step, disabled, value, onChange })] }), renderRangeCaption(items)] }));
1581
+ return (jsxs("div", { className: className, children: [jsxs("label", { className: "block relative", children: [title ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-primary-text", children: title })) : null, jsx("input", { className: style('text-h3 w-full h-14', 'pl-m box-border', 'text-primary-text', inputValidStyle, inputDisabledStyle), disabled: disabled, onChange: handleChange, ...normalizedProps }), renderRangeWithTicks({ list, min, max, step, disabled, value, onChange })] }), renderRangeCaption(items)] }));
1582
1582
  });
1583
1583
  const closestValue = (list) => (_) => list.reduce((prev, curr) => (Math.abs(curr - _) < Math.abs(prev - _) ? curr : prev));
1584
1584
  const renderRangeCaption = (items) => (jsx("div", { className: "flex justify-between my-xs", children: items.map((item, i) => (jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: item }, String(i)))) }));
@@ -3970,7 +3970,7 @@
3970
3970
  const CalculatorLayout = JSX(({ className, title, children, ...rest }) => (jsxs(BlockWrapper, { className: style('space-y-xl', className), defaultPadding: "p-4xl", ...rest, children: [title ? jsx(Heading, { className: "text-center", title: title }) : null, children] })));
3971
3971
 
3972
3972
  const CalculatorStyle = {
3973
- wrapper: 'flex flex-col justify-between lg:flex-row gap-x-4xl gap-y-7 lg:gap-y-4xl',
3973
+ wrapper: 'flex flex-col justify-between lg:flex-row gap-4xl',
3974
3974
  input: 'flex flex-col lg:w-1/2 gap-2xl',
3975
3975
  result: 'flex flex-col gap-y-xl min-w-52',
3976
3976
  };
@@ -5141,7 +5141,7 @@
5141
5141
  (async () => setCaptcha(URL.createObjectURL(await createCaptcha(phoneNumber))))();
5142
5142
  }, []);
5143
5143
  useEffect(handleCreateCaptcha, []);
5144
- return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg", head: jsx(Logo, {}), onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md", children: [jsxs("div", { className: "flex h-36 w-72", children: [jsx("img", { className: "grow", src: captcha }), jsx(Button, { className: "w-8", embedded: true, onClick: handleCreateCaptcha, children: jsx(Icon, { iconVersion: "normal", name: "RefreshIcon" }) })] }), jsx(Input, { className: "w-[300px]", onChange: setCode, value: code, placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u043E\u0434 \u0441 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0438" }), hasError ? jsx("div", { className: "text-error", children: "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043E\u0434" }) : null, jsxs("div", { className: "flex w-[310px] justify-between", children: [jsx(Button, { version: "secondary", onClick: close, children: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F" }), jsx(SubmitButton$1, { version: "secondary", disabled: !code, onClick: handleCheckCaptcha, children: "\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C" })] }), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
5144
+ return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg", head: jsx(Logo, {}), onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center", children: [jsxs("div", { className: "flex", children: [jsx("img", { className: "grow", src: captcha }), jsx(Button, { className: "w-8", embedded: true, onClick: handleCreateCaptcha, children: jsx(Icon, { iconVersion: "normal", name: "RefreshIcon" }) })] }), jsx(Input, { className: "w-80", onChange: setCode, value: code, placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u043E\u0434 \u0441 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0438" }), hasError ? jsx("div", { className: "text-error", children: "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043E\u0434" }) : null, jsxs("div", { className: "flex w-80 justify-between", children: [jsx(Button, { version: "secondary", onClick: close, children: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F" }), jsx(SubmitButton$1, { version: "secondary", disabled: !code, onClick: handleCheckCaptcha, children: "\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C" })] }), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
5145
5145
  });
5146
5146
 
5147
5147
  const InputCode = JSX(({ values, setValues, hasError, errorText }) => {
@@ -5266,7 +5266,7 @@
5266
5266
  return (jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-xl p-m", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-xl items-center rounded-md", children: [jsx(Headline, { className: "w-full", title: "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430", description: `Мы отправили код на ${phone}`, headlineVersion: "XS", isEmbedded: true, as: "h6" }), code ? (jsx(InputCode, { values: values, setValues: setValues, errorText: errorText, hasError: hasError })) : null, renderText$1(timeNextReq, handleSendCode), withDescription ? (jsxs(RichText, { itemSize: "list-s", children: [jsx("span", { children: "\u0412\u0432\u043E\u0434\u044F \u043A\u043E\u0434, \u044F \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044E, \u0447\u0442\u043E \u043E\u0437\u043D\u0430\u043A\u043E\u043C\u043B\u0435\u043D \u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u044B\u0432\u0430\u044E: " }), jsx("ul", { children: consents?.map((_, i) => (jsx("li", { children: _ }, `${_}-${i}`))) })] })) : null, renderNextButton(isSubmitButtonDisabled, handleSubmit), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
5267
5267
  });
5268
5268
  const renderNextButton = (disabled, onClick) => (jsx(SubmitButton, { text: "\u0414\u0430\u043B\u0435\u0435", disabled: disabled, onClick: onClick }));
5269
- const renderText$1 = (timeNextReq, handleSendCode) => timeNextReq ? (jsxs("div", { className: "flex flex-row text-l font-light text-base", children: ["\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437", jsx(Timer, { className: "ml-1", seconds: timeNextReq })] })) : (jsx(Button, { embedded: true, onClick: handleSendCode, children: jsx(ButtonTitle, { children: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434" }) }));
5269
+ const renderText$1 = (timeNextReq, handleSendCode) => timeNextReq ? (jsxs("div", { className: "flex flex-row text-l font-light text-base", children: ["\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437", jsx(Timer, { className: "pl-2xs", seconds: timeNextReq })] })) : (jsx(Button, { embedded: true, onClick: handleSendCode, children: jsx(ButtonTitle, { children: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434" }) }));
5270
5270
 
5271
5271
  const defaultConsentText = {
5272
5272
  title: 'Подпишите согласие на запрос в БКИ',
@@ -5603,7 +5603,7 @@
5603
5603
  const handleGoToNewTask = useCallback(() => {
5604
5604
  navigator.assign(isCredit ? '/natural/loans/all-goals' : '/natural/creditcards/svoya');
5605
5605
  }, []);
5606
- return (jsx(Dialog, { className: "my-6xl max-w-4xl w-full min-h-fit mx-auto rounded-xl py-0", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center mt-xs md:mt-0 mx-6xl", children: [jsx(Heading, { className: "whitespace-pre-wrap text-center", title: "\u041D\u0430\u0448\u043B\u0438 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u044F\u0432\u043A\u0438", headingType: "h5" }), jsxs("div", { className: "flex flex-col gap-m max-w-lg", children: [jsx(DraftActionButton, { title: "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A\u0430", icon: "BankColorIcon", description: createdDate ? `Черновик от ${formatDate(new Date(createdDate))}` : '', onClick: handleGoToDraft }), jsx(DraftActionButton, { title: isFromLead ? 'Продолжить заполнение текущей заявки' : 'Создать новую заявку', icon: "NewLoanIcon", description: "\u041D\u0430 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u0435 \u043A\u0440\u0435\u0434\u0438\u0442\u0430", onClick: isFromLead ? onClose : handleGoToNewTask })] })] }) }));
5606
+ return (jsx(Dialog, { className: "my-6xl max-w-4xl w-full min-h-fit mx-auto rounded-xl py-0", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center mt-xs mx-6xl", children: [jsx(Heading, { className: "whitespace-pre-wrap text-center", title: "\u041D\u0430\u0448\u043B\u0438 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u044F\u0432\u043A\u0438", headingType: "h5" }), jsxs("div", { className: "flex flex-col gap-m max-w-lg", children: [jsx(DraftActionButton, { title: "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A\u0430", icon: "BankColorIcon", description: createdDate ? `Черновик от ${formatDate(new Date(createdDate))}` : '', onClick: handleGoToDraft }), jsx(DraftActionButton, { title: isFromLead ? 'Продолжить заполнение текущей заявки' : 'Создать новую заявку', icon: "NewLoanIcon", description: "\u041D\u0430 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u0435 \u043A\u0440\u0435\u0434\u0438\u0442\u0430", onClick: isFromLead ? onClose : handleGoToNewTask })] })] }) }));
5607
5607
  });
5608
5608
 
5609
5609
  const EmptyDraftDialog = JSX(function ({ onClose = noop }) {
@@ -6623,7 +6623,7 @@
6623
6623
  const isMobileMode = useMobileMode();
6624
6624
  return (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [title ? (jsx(Heading, { headingType: "h3", as: "h2", className: getAlignStyles(isMobileMode), title: title })) : null, benefitList?.length ? (jsx("div", { className: "flex flex-col @md:flex-row flex-wrap w-full @md:justify-center mt-xl gap-5xl", role: "list", children: benefitList.map(renderBenefit) })) : null] }));
6625
6625
  });
6626
- const renderBenefit = ({ label, description, __html, icon, isDotted = false, iconBgVersion }, i) => (jsxs("div", { className: "flex gap-m items-center @md:basis-1/2 @md:max-w-[500px]", role: "listitem", children: [icon?.icon ? (jsx(RoundedIcon, { className: "shrink-0", iconBgVersion: iconBgVersion, ...icon })) : null, icon?.src ? jsx(Img, { className: "shrink-0", image: icon }) : null, label ? (jsxs("div", { className: "@sm:h-full space-y-xs", children: [jsx(Heading, { headingType: "h6", children: label }), jsx(Text, { size: "text-l", color: "text-secondary-text group-data-secondary:text-white/80", font: "font-light", children: description }), __html ? jsx(RichText, { __html: __html, isDotted: isDotted, itemSize: "list-s" }) : null] })) : null] }, String(i)));
6626
+ const renderBenefit = ({ label, description, __html, icon, isDotted = false, iconBgVersion }, i) => (jsxs("div", { className: "flex gap-m items-center @md:basis-1/2 @md:max-w-lg", role: "listitem", children: [icon?.icon ? (jsx(RoundedIcon, { className: "shrink-0", iconBgVersion: iconBgVersion, ...icon })) : null, icon?.src ? jsx(Img, { className: "shrink-0", image: icon }) : null, label ? (jsxs("div", { className: "@sm:h-full space-y-xs", children: [jsx(Heading, { headingType: "h6", children: label }), jsx(Text, { size: "text-l", color: "text-secondary-text group-data-secondary:text-white/80", font: "font-light", children: description }), __html ? jsx(RichText, { __html: __html, isDotted: isDotted, itemSize: "list-s" }) : null] })) : null] }, String(i)));
6627
6627
 
6628
6628
  const bonusBenefitStyles = 'items-center';
6629
6629
 
@@ -7275,7 +7275,7 @@
7275
7275
  ...field('moneyExtra'),
7276
7276
  value: calcParams.moneyExtra,
7277
7277
  })
7278
- : null, jsx("div", { className: "sm:hidden pt-1 pb-4 border-b border-main-divider", children: paymentTypeElement })] }), jsxs("div", { className: style(CalculatorStyle.result, '@4xl:w-1/2'), children: [jsx(CalculatorValue, { title: "\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u043A\u0440\u0435\u0434\u0438\u0442\u0430", value: calcSource?.totalLoanCost }), jsx(CalculatorValue, { title: "\u0421\u0442\u0430\u0432\u043A\u0430 \u043E\u0442", value: minRate, fractionDigits: 2, postfix: "%" }), jsx(CalculatorValue, { title: "\u0415\u0436\u0435\u043C\u0435\u0441\u044F\u0447\u043D\u044B\u0439 \u043F\u043B\u0430\u0442\u0451\u0436", value: calcParams.monthlyPayment, postfix: "\u20BD" }), calcParams.benefit > 0 ? (jsx(CalculatorValue, { title: "\u0412\u044B\u0433\u043E\u0434\u0430 \u0432 \u043C\u0435\u0441\u044F\u0446", value: calcParams.benefit, postfix: "\u20BD" })) : null, jsx("div", { className: "hidden sm:block mb-lg", children: paymentTypeElement }), renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote)] })] }) }));
7278
+ : null, jsx("div", { className: "sm:hidden pb-m border-b border-main-divider", children: paymentTypeElement })] }), jsxs("div", { className: style(CalculatorStyle.result, '@4xl:w-1/2'), children: [jsx(CalculatorValue, { title: "\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u043A\u0440\u0435\u0434\u0438\u0442\u0430", value: calcSource?.totalLoanCost }), jsx(CalculatorValue, { title: "\u0421\u0442\u0430\u0432\u043A\u0430 \u043E\u0442", value: minRate, fractionDigits: 2, postfix: "%" }), jsx(CalculatorValue, { title: "\u0415\u0436\u0435\u043C\u0435\u0441\u044F\u0447\u043D\u044B\u0439 \u043F\u043B\u0430\u0442\u0451\u0436", value: calcParams.monthlyPayment, postfix: "\u20BD" }), calcParams.benefit > 0 ? (jsx(CalculatorValue, { title: "\u0412\u044B\u0433\u043E\u0434\u0430 \u0432 \u043C\u0435\u0441\u044F\u0446", value: calcParams.benefit, postfix: "\u20BD" })) : null, jsx("div", { className: "hidden sm:block mb-lg", children: paymentTypeElement }), renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote)] })] }) }));
7279
7279
  });
7280
7280
  const renderCreditParamsForm = (params, field) => (jsxs("div", { className: "space-y-lg sm:space-y-s", children: [params.isShowSalaryClient ? (jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u0437\u0430\u0440\u043F\u043B\u0430\u0442\u0443 \u043D\u0430 \u0441\u0447\u0451\u0442 \u0432 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0435", ...field('isSalaryClient'), value: params.isSalaryClient })) : null, params.isShowInsurance ? (jsx(Checkbox, { text: "\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0441\u043D\u0430\u044F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430", ...field('isInsurance'), value: params.isInsurance })) : null, jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u0443\u044E \u0441\u0443\u043C\u043C\u0443", ...field('isExtraMoney'), value: params.isExtraMoney })] }));
7281
7281
 
@@ -7340,7 +7340,7 @@
7340
7340
  const FAILED_TITLE = 'Ошибка перевода';
7341
7341
  const SubmitFailedDialog = ({ onClose, errorCode, errorMessage, }) => {
7342
7342
  const description = errorCode ? `Код ошибки - ${errorCode}` : 'Пожалуйста, повторите позднее';
7343
- return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md space-x-m", children: [jsx(Img, { image: { icon: 'ResponseFailIcon', iconVersion: 'normal' }, width: "136", height: "136" }), jsx(Headline, { className: "w-full", title: FAILED_TITLE, description: description, headlineVersion: "XS", isEmbedded: true }), errorMessage ? (jsxs("div", { className: "bg-secondary-dark rounded-xl px-4 pt-4 pb-8 grid gap-4 grid-cols-12", children: [jsxs("div", { className: "col-span-8", children: [" ", errorMessage] }), jsx("div", { className: "col-span-4", children: jsx(Img, { image: { icon: 'ResponseFailIcon', iconVersion: 'normal' } }) })] })) : null] }) }));
7343
+ return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md space-x-m", children: [jsx(Img, { image: { icon: 'ResponseFailIcon', iconVersion: 'normal' }, width: "136", height: "136" }), jsx(Headline, { className: "w-full", title: FAILED_TITLE, description: description, headlineVersion: "XS", isEmbedded: true }), errorMessage ? (jsxs("div", { className: "bg-secondary-dark rounded-xl p-m grid gap-m grid-cols-12", children: [jsx("div", { className: "col-span-8", children: errorMessage }), jsx("div", { className: "col-span-4", children: jsx(Img, { image: { icon: 'ResponseFailIcon', iconVersion: 'normal' } }) })] })) : null] }) }));
7344
7344
  };
7345
7345
 
7346
7346
  const useSubmitCardTransfer = (formType) => {
@@ -7375,16 +7375,11 @@
7375
7375
  amount: 1500,
7376
7376
  };
7377
7377
  const CardTransfer = JSX(({ className = '', title = DEFAULT_TITLE, label = DEFAULT_LABEL, button, formType = 'private', ...rest }) => {
7378
- const [isDisabled, { setValue: setDisabled }] = useBool(false);
7379
7378
  const handleSubmit = useSubmitCardTransfer(formType);
7380
7379
  const [{ amount }, { field, onSubmit }] = useForm(INITIAL_FORM_STATE, {
7381
7380
  onSubmit: handleSubmit,
7382
7381
  });
7383
- // TODO: dont set state in useEffect
7384
- useEffect(() => {
7385
- setDisabled(amount <= 0);
7386
- }, [amount]);
7387
- return (jsxs(BlockWrapper, { className: style('flex flex-col items-center', className), defaultPadding: "p-6xl", ...rest, children: [title ? (jsx(Heading, { className: "pb-lg xl:pb-4xl self-start xl:self-center", headingType: "h3", title: title })) : null, jsxs("form", { className: "w-full xl:max-w-[468px]", method: "POST", onSubmit: onSubmit, children: [jsx(CurrencyInput, { valid: !isDisabled, label: label, max: MAX_AMOUNT, min: MIN_AMOUNT, ...field('amount', { parse: Number, format: String }) }), jsx("input", { type: "hidden", name: "amount", value: amount }), button?.text ? (jsx(SubmitButton$1, { className: "w-full mt-lg", disabled: isDisabled, children: button.text })) : null] })] }));
7382
+ return (jsxs(BlockWrapper, { className: style('flex flex-col gap-4xl items-center', className), defaultPadding: "p-6xl", ...rest, children: [title ? (jsx(Heading, { className: "self-start xl:self-center", headingType: "h3", title: title })) : null, jsxs("form", { className: "w-full xl:max-w-md space-y-lg", method: "POST", onSubmit: onSubmit, children: [jsx(CurrencyInput, { valid: amount > 0, label: label, max: MAX_AMOUNT, min: MIN_AMOUNT, ...field('amount', { parse: Number, format: String }) }), jsx("input", { type: "hidden", name: "amount", value: amount }), button?.text ? (jsx(SubmitButton$1, { className: "w-full", disabled: amount <= 0, children: button.text })) : null] })] }));
7388
7383
  });
7389
7384
 
7390
7385
  const ITEMS_GAP = 16;
@@ -7416,9 +7411,9 @@
7416
7411
  : null] }, String(blockIndex))),
7417
7412
  });
7418
7413
  };
7419
- const cardWrapperStyle = (_, { someCardsHighlighted }) => style(cardBaseStyle, someCardsHighlighted && (isCardHighlighted(_) ? 'pt-3xl' : 'pt-3xl sm:pt-16'));
7414
+ const cardWrapperStyle = (_, { someCardsHighlighted }) => style(cardBaseStyle, someCardsHighlighted && (isCardHighlighted(_) ? 'pt-3xl' : 'pt-16'));
7420
7415
  const cardStyle = (_, { someCardsHighlighted, showBorder, cardSize = 'normal', }) => style(cardBaseStyle, 'min-w-80', CARD_SIZE_MAP[cardSize], // TODO fix для RecommendationCard
7421
- someCardsHighlighted && (isCardHighlighted(_) ? 'pt-3xl sm:pt-16' : 'pt-3xl'), getBorderStyle(showBorder), showBorder && 'h-full');
7416
+ someCardsHighlighted && (isCardHighlighted(_) ? 'pt-16' : 'pt-3xl'), getBorderStyle(showBorder), showBorder && 'h-full');
7422
7417
  const isCardHighlighted = (_) => _?.content && 'isHighlighting' in _.content && _.content.isHighlighting;
7423
7418
 
7424
7419
  const VISIBLE_ITEM_COUNT = 1;
@@ -7622,7 +7617,7 @@
7622
7617
  return () => clearInterval(timer);
7623
7618
  };
7624
7619
 
7625
- const ProgressBar = JSX(({ step = 10, description, showPercentage = true }) => (jsxs("div", { children: [jsx("div", { className: "h-4 w-full bg-gray relative", children: jsx("div", { className: "h-4 bg-green", style: { width: `${step}%` } }) }), jsxs("div", { className: "relative", children: [showPercentage ? jsxs("div", { className: "absolute left-2/4 text-green", children: [step, "%"] }) : null, description ? jsx("div", { className: "text-right mr-4 text-gray", children: description }) : null] })] })));
7620
+ const ProgressBar = JSX(({ step = 10, description, showPercentage = true }) => (jsxs("div", { children: [jsx("div", { className: "h-4 w-full bg-gray relative", children: jsx("div", { className: "h-4 bg-green", style: { width: `${step}%` } }) }), jsxs("div", { className: "relative", children: [showPercentage ? jsxs("div", { className: "absolute left-2/4 text-green", children: [step, "%"] }) : null, description ? jsx("div", { className: "text-right pr-m text-gray", children: description }) : null] })] })));
7626
7621
 
7627
7622
  const CreditCardFormProgress = JSX(({ step = 1, totalSteps = 6, stepsTitles = [] }) => {
7628
7623
  const progress = useMemo(() => ((step + 1) / totalSteps) * 100, [step, totalSteps]);
@@ -9565,7 +9560,7 @@
9565
9560
  return (jsx("a", { className: style('text-secondary-text', className), href: href, target: target, onClick: onClick, children: text || `Документ ${index}` }));
9566
9561
  });
9567
9562
 
9568
- const HorizontalNavigation = JSX(({ className = '', title, links }) => (jsx("div", { className: className, children: links?.length ? (jsxs("div", { className: "flex justify-between lg:items-center flex-col lg:flex-row gap-lg py-lg border-y border-y-main-divider", children: [jsx("div", { className: "lg:hidden", children: jsx(Text, { size: "text-l", font: "font-normal", children: title }) }), links.map((_, i) => (jsx(HorizontalNavigationLink, { index: i, className: "text-l font-light lg:max-w-[292px]", ..._ }, String(i))))] })) : null })));
9563
+ const HorizontalNavigation = JSX(({ className = '', title, links }) => (jsx("div", { className: className, children: links?.length ? (jsxs("div", { className: "flex justify-between lg:items-center flex-col lg:flex-row gap-lg py-lg border-y border-y-main-divider", children: [jsx("div", { className: "lg:hidden", children: jsx(Text, { size: "text-l", font: "font-normal", children: title }) }), links.map((_, i) => (jsx(HorizontalNavigationLink, { index: i, className: "text-l font-light lg:max-w-72", ..._ }, String(i))))] })) : null })));
9569
9564
 
9570
9565
  const LEFT_COLUMN_STYLE = 'w-full lg:w-52';
9571
9566
 
@@ -9774,7 +9769,7 @@
9774
9769
  const TextInformationLink = JSX(({ className = '', index, ...rest }) => {
9775
9770
  const link = useLink();
9776
9771
  const { href, target, text, onClick } = link(rest);
9777
- return (jsx("a", { className: style('text-xs font-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px]', className), href: href, target: target, onClick: onClick, children: text || `Документ ${index}` }));
9772
+ return (jsx("a", { className: style('text-xs font-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-72', className), href: href, target: target, onClick: onClick, children: text || `Документ ${index}` }));
9778
9773
  });
9779
9774
 
9780
9775
  const TextInformation = JSX(({ className = '', links, license }) => (jsxs("div", { className: style('@container space-y-lg', className), children: [license ? (jsx("div", { children: jsx(Text, { size: "text-xs", font: "font-light", color: "text-secondary-text", children: `\u00a9\u00A02000-${new Date().getFullYear()}\u00A0${license}` }) })) : null, links?.length ? (jsx("div", { className: "flex flex-col @5xl:flex-row justify-start items-start gap-x-lg gap-y-xs", children: links.map((_, i) => (jsx(TextInformationLink, { index: i, ..._ }, String(i)))) })) : null] })));
@@ -10202,7 +10197,7 @@
10202
10197
  }), [navigationItems]);
10203
10198
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
10204
10199
  const { dataFooter, dataHeader, ...logoProps } = logo ?? {};
10205
- return (jsxs("div", { className: "flex items-center justify-between", children: [jsx(Logo, { className: "mr-3xl", bgColor: bgColor, logo: logoProps, data: dataHeader, showTitle: false }), jsx("div", { ref: topItemsListRef, className: "overflow-hidden min-w-[160px] pb-xs mt-xs", role: "menu", children: navigationItems.map((_, i) => (jsx(HeaderTopMenuItem, { className: visibleItemsCount - 1 < i ? 'invisible' : '', active: _ === activeTopItem, observerOptions: observerOptions, onVisibilityChange: topItemsVisibilityHandlers[i], data: _.dataHeader, ..._ }, String(i)))) }), dropDownMenuItems.length ? (jsx(DropdownMenu, { className: "mx-xs", items: dropDownMenuItems, activeItem: activeTopItem, ariaLabel: dropdownMenuAriaLabel })) : null, jsx(HeaderSecondaryMenu, { version: version, className: "ml-auto", search: search, navigationItems: navigationItems, ...headerData })] }));
10200
+ return (jsxs("div", { className: "flex items-center justify-between", children: [jsx(Logo, { className: "mr-3xl", bgColor: bgColor, logo: logoProps, data: dataHeader, showTitle: false }), jsx("div", { ref: topItemsListRef, className: "overflow-hidden min-w-40 pb-xs mt-xs", role: "menu", children: navigationItems.map((_, i) => (jsx(HeaderTopMenuItem, { className: visibleItemsCount - 1 < i ? 'invisible' : '', active: _ === activeTopItem, observerOptions: observerOptions, onVisibilityChange: topItemsVisibilityHandlers[i], data: _.dataHeader, ..._ }, String(i)))) }), dropDownMenuItems.length ? (jsx(DropdownMenu, { className: "mx-xs", items: dropDownMenuItems, activeItem: activeTopItem, ariaLabel: dropdownMenuAriaLabel })) : null, jsx(HeaderSecondaryMenu, { version: version, className: "ml-auto", search: search, navigationItems: navigationItems, ...headerData })] }));
10206
10201
  });
10207
10202
  const handleIntersectionActivation = (index) => (prev) => Math.max(prev, index + 1);
10208
10203
  const handleIntersectionDeactivation = (index) => (prev) => Math.min(prev, index);
@@ -11153,7 +11148,7 @@
11153
11148
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
11154
11149
  });
11155
11150
 
11156
- const packageVersion = "0.14.840";
11151
+ const packageVersion = "0.14.841";
11157
11152
 
11158
11153
  exports.Blocks = Blocks;
11159
11154
  exports.ContentPage = ContentPage;