@redneckz/wildless-cms-uni-blocks 0.8.20 → 0.8.22

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 (253) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +96 -82
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/Calculator/CreditCalculatorForm.d.ts +0 -2
  5. package/bundle/components/Calculator/constants.d.ts +2 -2
  6. package/bundle/components/Calculator/renderInterestPayment.d.ts +9 -1
  7. package/bundle/components/Calculator/renderPaymentType.d.ts +12 -0
  8. package/bundle/components/Calculator/renderRegistrationType.d.ts +10 -0
  9. package/bundle/components/Calculator/useBusinessDepositCalculatorParams.d.ts +3 -2
  10. package/bundle/components/Calculator/useCreditCalculatorParams.d.ts +1 -4
  11. package/bundle/components/Calculator/useDepositCalculatorParams.d.ts +1 -0
  12. package/bundle/components/StepsBlock/StepsBlock.d.ts +1 -1
  13. package/bundle/components/StepsBlock/StepsBlockContent.d.ts +2 -1
  14. package/bundle/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -2
  15. package/bundle/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +2 -0
  16. package/dist/components/Calculator/BusinessDepositCalculatorForm.js +7 -2
  17. package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  18. package/dist/components/Calculator/CreditCalculatorForm.d.ts +0 -2
  19. package/dist/components/Calculator/CreditCalculatorForm.js +7 -15
  20. package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  21. package/dist/components/Calculator/DepositCalculatorForm.js +13 -1
  22. package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  23. package/dist/components/Calculator/constants.d.ts +2 -2
  24. package/dist/components/Calculator/constants.js +6 -7
  25. package/dist/components/Calculator/constants.js.map +1 -1
  26. package/dist/components/Calculator/rangeHelpers.js +1 -1
  27. package/dist/components/Calculator/rangeHelpers.js.map +1 -1
  28. package/dist/components/Calculator/renderInterestPayment.d.ts +9 -1
  29. package/dist/components/Calculator/renderInterestPayment.js +2 -2
  30. package/dist/components/Calculator/renderInterestPayment.js.map +1 -1
  31. package/dist/components/Calculator/renderPaymentType.d.ts +12 -0
  32. package/dist/components/Calculator/renderPaymentType.js +22 -0
  33. package/dist/components/Calculator/renderPaymentType.js.map +1 -0
  34. package/dist/components/Calculator/renderRegistrationType.d.ts +10 -0
  35. package/dist/components/Calculator/renderRegistrationType.js +22 -0
  36. package/dist/components/Calculator/renderRegistrationType.js.map +1 -0
  37. package/dist/components/Calculator/useBusinessDepositCalculatorParams.d.ts +3 -2
  38. package/dist/components/Calculator/useBusinessDepositCalculatorParams.js +1 -1
  39. package/dist/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
  40. package/dist/components/Calculator/useCreditCalculatorParams.d.ts +1 -4
  41. package/dist/components/Calculator/useCreditCalculatorParams.js +2 -4
  42. package/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
  43. package/dist/components/Calculator/useDepositCalculatorParams.d.ts +1 -0
  44. package/dist/components/Calculator/useDepositCalculatorParams.js +2 -1
  45. package/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  46. package/dist/components/Footer/Contacts.js +1 -1
  47. package/dist/components/Footer/Contacts.js.map +1 -1
  48. package/dist/components/Footer/Sitemap.js +7 -5
  49. package/dist/components/Footer/Sitemap.js.map +1 -1
  50. package/dist/components/StepsBlock/StepsBlock.d.ts +1 -1
  51. package/dist/components/StepsBlock/StepsBlock.js +11 -8
  52. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  53. package/dist/components/StepsBlock/StepsBlock.mobile.js +2 -6
  54. package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  55. package/dist/components/StepsBlock/StepsBlockContent.d.ts +2 -1
  56. package/dist/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -2
  57. package/dist/components/StepsBlock/StepsBlockStyleMaps.js +7 -39
  58. package/dist/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
  59. package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +2 -0
  60. package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +5 -1
  61. package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
  62. package/lib/common.css +1 -1
  63. package/lib/components/Calculator/BusinessDepositCalculatorForm.js +7 -2
  64. package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  65. package/lib/components/Calculator/CreditCalculatorForm.d.ts +0 -2
  66. package/lib/components/Calculator/CreditCalculatorForm.js +6 -14
  67. package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  68. package/lib/components/Calculator/DepositCalculatorForm.js +13 -1
  69. package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  70. package/lib/components/Calculator/constants.d.ts +2 -2
  71. package/lib/components/Calculator/constants.js +6 -7
  72. package/lib/components/Calculator/constants.js.map +1 -1
  73. package/lib/components/Calculator/rangeHelpers.js +1 -1
  74. package/lib/components/Calculator/rangeHelpers.js.map +1 -1
  75. package/lib/components/Calculator/renderInterestPayment.d.ts +9 -1
  76. package/lib/components/Calculator/renderInterestPayment.js +2 -2
  77. package/lib/components/Calculator/renderInterestPayment.js.map +1 -1
  78. package/lib/components/Calculator/renderPaymentType.d.ts +12 -0
  79. package/lib/components/Calculator/renderPaymentType.js +19 -0
  80. package/lib/components/Calculator/renderPaymentType.js.map +1 -0
  81. package/lib/components/Calculator/renderRegistrationType.d.ts +10 -0
  82. package/lib/components/Calculator/renderRegistrationType.js +19 -0
  83. package/lib/components/Calculator/renderRegistrationType.js.map +1 -0
  84. package/lib/components/Calculator/useBusinessDepositCalculatorParams.d.ts +3 -2
  85. package/lib/components/Calculator/useBusinessDepositCalculatorParams.js +1 -1
  86. package/lib/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
  87. package/lib/components/Calculator/useCreditCalculatorParams.d.ts +1 -4
  88. package/lib/components/Calculator/useCreditCalculatorParams.js +2 -4
  89. package/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
  90. package/lib/components/Calculator/useDepositCalculatorParams.d.ts +1 -0
  91. package/lib/components/Calculator/useDepositCalculatorParams.js +2 -1
  92. package/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  93. package/lib/components/Footer/Contacts.js +1 -1
  94. package/lib/components/Footer/Contacts.js.map +1 -1
  95. package/lib/components/Footer/Sitemap.js +7 -5
  96. package/lib/components/Footer/Sitemap.js.map +1 -1
  97. package/lib/components/StepsBlock/StepsBlock.d.ts +1 -1
  98. package/lib/components/StepsBlock/StepsBlock.js +12 -9
  99. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  100. package/lib/components/StepsBlock/StepsBlock.mobile.js +3 -7
  101. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  102. package/lib/components/StepsBlock/StepsBlockContent.d.ts +2 -1
  103. package/lib/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -2
  104. package/lib/components/StepsBlock/StepsBlockStyleMaps.js +6 -38
  105. package/lib/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
  106. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +2 -0
  107. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +5 -1
  108. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
  109. package/mobile/bundle/bundle.umd.js +10 -46
  110. package/mobile/bundle/bundle.umd.min.js +1 -1
  111. package/mobile/bundle/components/Calculator/CreditCalculatorForm.d.ts +0 -2
  112. package/mobile/bundle/components/Calculator/constants.d.ts +2 -2
  113. package/mobile/bundle/components/Calculator/renderInterestPayment.d.ts +9 -1
  114. package/mobile/bundle/components/Calculator/renderPaymentType.d.ts +12 -0
  115. package/mobile/bundle/components/Calculator/renderRegistrationType.d.ts +10 -0
  116. package/mobile/bundle/components/Calculator/useBusinessDepositCalculatorParams.d.ts +3 -2
  117. package/mobile/bundle/components/Calculator/useCreditCalculatorParams.d.ts +1 -4
  118. package/mobile/bundle/components/Calculator/useDepositCalculatorParams.d.ts +1 -0
  119. package/mobile/bundle/components/StepsBlock/StepsBlockContent.d.ts +2 -1
  120. package/mobile/bundle/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -2
  121. package/mobile/bundle/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +2 -0
  122. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +7 -2
  123. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  124. package/mobile/dist/components/Calculator/CreditCalculatorForm.d.ts +0 -2
  125. package/mobile/dist/components/Calculator/CreditCalculatorForm.js +7 -15
  126. package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  127. package/mobile/dist/components/Calculator/DepositCalculatorForm.js +13 -1
  128. package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  129. package/mobile/dist/components/Calculator/constants.d.ts +2 -2
  130. package/mobile/dist/components/Calculator/constants.js +6 -7
  131. package/mobile/dist/components/Calculator/constants.js.map +1 -1
  132. package/mobile/dist/components/Calculator/rangeHelpers.js +1 -1
  133. package/mobile/dist/components/Calculator/rangeHelpers.js.map +1 -1
  134. package/mobile/dist/components/Calculator/renderInterestPayment.d.ts +9 -1
  135. package/mobile/dist/components/Calculator/renderInterestPayment.js +2 -2
  136. package/mobile/dist/components/Calculator/renderInterestPayment.js.map +1 -1
  137. package/mobile/dist/components/Calculator/renderPaymentType.d.ts +12 -0
  138. package/mobile/dist/components/Calculator/renderPaymentType.js +22 -0
  139. package/mobile/dist/components/Calculator/renderPaymentType.js.map +1 -0
  140. package/mobile/dist/components/Calculator/renderRegistrationType.d.ts +10 -0
  141. package/mobile/dist/components/Calculator/renderRegistrationType.js +22 -0
  142. package/mobile/dist/components/Calculator/renderRegistrationType.js.map +1 -0
  143. package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.d.ts +3 -2
  144. package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.js +1 -1
  145. package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
  146. package/mobile/dist/components/Calculator/useCreditCalculatorParams.d.ts +1 -4
  147. package/mobile/dist/components/Calculator/useCreditCalculatorParams.js +2 -4
  148. package/mobile/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
  149. package/mobile/dist/components/Calculator/useDepositCalculatorParams.d.ts +1 -0
  150. package/mobile/dist/components/Calculator/useDepositCalculatorParams.js +2 -1
  151. package/mobile/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  152. package/mobile/dist/components/Footer/Contacts.js +1 -1
  153. package/mobile/dist/components/Footer/Contacts.js.map +1 -1
  154. package/mobile/dist/components/Footer/Sitemap.js +7 -5
  155. package/mobile/dist/components/Footer/Sitemap.js.map +1 -1
  156. package/mobile/dist/components/StepsBlock/StepsBlock.js +2 -6
  157. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  158. package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +2 -1
  159. package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -2
  160. package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js +7 -39
  161. package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
  162. package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +2 -0
  163. package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +5 -1
  164. package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
  165. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +7 -2
  166. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  167. package/mobile/lib/components/Calculator/CreditCalculatorForm.d.ts +0 -2
  168. package/mobile/lib/components/Calculator/CreditCalculatorForm.js +6 -14
  169. package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  170. package/mobile/lib/components/Calculator/DepositCalculatorForm.js +13 -1
  171. package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  172. package/mobile/lib/components/Calculator/constants.d.ts +2 -2
  173. package/mobile/lib/components/Calculator/constants.js +6 -7
  174. package/mobile/lib/components/Calculator/constants.js.map +1 -1
  175. package/mobile/lib/components/Calculator/rangeHelpers.js +1 -1
  176. package/mobile/lib/components/Calculator/rangeHelpers.js.map +1 -1
  177. package/mobile/lib/components/Calculator/renderInterestPayment.d.ts +9 -1
  178. package/mobile/lib/components/Calculator/renderInterestPayment.js +2 -2
  179. package/mobile/lib/components/Calculator/renderInterestPayment.js.map +1 -1
  180. package/mobile/lib/components/Calculator/renderPaymentType.d.ts +12 -0
  181. package/mobile/lib/components/Calculator/renderPaymentType.js +19 -0
  182. package/mobile/lib/components/Calculator/renderPaymentType.js.map +1 -0
  183. package/mobile/lib/components/Calculator/renderRegistrationType.d.ts +10 -0
  184. package/mobile/lib/components/Calculator/renderRegistrationType.js +19 -0
  185. package/mobile/lib/components/Calculator/renderRegistrationType.js.map +1 -0
  186. package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.d.ts +3 -2
  187. package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.js +1 -1
  188. package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
  189. package/mobile/lib/components/Calculator/useCreditCalculatorParams.d.ts +1 -4
  190. package/mobile/lib/components/Calculator/useCreditCalculatorParams.js +2 -4
  191. package/mobile/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
  192. package/mobile/lib/components/Calculator/useDepositCalculatorParams.d.ts +1 -0
  193. package/mobile/lib/components/Calculator/useDepositCalculatorParams.js +2 -1
  194. package/mobile/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  195. package/mobile/lib/components/Footer/Contacts.js +1 -1
  196. package/mobile/lib/components/Footer/Contacts.js.map +1 -1
  197. package/mobile/lib/components/Footer/Sitemap.js +7 -5
  198. package/mobile/lib/components/Footer/Sitemap.js.map +1 -1
  199. package/mobile/lib/components/StepsBlock/StepsBlock.js +3 -7
  200. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  201. package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +2 -1
  202. package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -2
  203. package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js +6 -38
  204. package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
  205. package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +2 -0
  206. package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +5 -1
  207. package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
  208. package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +9 -8
  209. package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +8 -22
  210. package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +22 -8
  211. package/mobile/src/components/Calculator/constants.ts +6 -7
  212. package/mobile/src/components/Calculator/rangeHelpers.ts +1 -1
  213. package/mobile/src/components/Calculator/renderInterestPayment.tsx +21 -9
  214. package/mobile/src/components/Calculator/renderPaymentType.tsx +49 -0
  215. package/mobile/src/components/Calculator/renderRegistrationType.tsx +51 -0
  216. package/mobile/src/components/Calculator/useBusinessDepositCalculatorParams.ts +4 -3
  217. package/mobile/src/components/Calculator/useCreditCalculatorParams.ts +3 -8
  218. package/mobile/src/components/Calculator/useDepositCalculatorParams.ts +4 -2
  219. package/mobile/src/components/Catalog/Catalog.ui.json +1 -0
  220. package/mobile/src/components/Footer/Contacts.tsx +1 -1
  221. package/mobile/src/components/Footer/Sitemap.tsx +10 -5
  222. package/mobile/src/components/Gallery/Gallery.ui.json +1 -0
  223. package/mobile/src/components/MiniGallery/MiniGallery.ui.json +1 -0
  224. package/mobile/src/components/StepsBlock/StepsBlock.example.json +3 -1
  225. package/mobile/src/components/StepsBlock/StepsBlock.tsx +23 -27
  226. package/mobile/src/components/StepsBlock/StepsBlockContent.ts +2 -1
  227. package/mobile/src/components/StepsBlock/StepsBlockStyleMaps.ts +6 -40
  228. package/mobile/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +9 -2
  229. package/package.json +1 -1
  230. package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +9 -8
  231. package/src/components/Calculator/CreditCalculatorForm.tsx +8 -22
  232. package/src/components/Calculator/DepositCalculatorForm.tsx +22 -8
  233. package/src/components/Calculator/constants.ts +6 -7
  234. package/src/components/Calculator/rangeHelpers.ts +1 -1
  235. package/src/components/Calculator/renderInterestPayment.tsx +21 -9
  236. package/src/components/Calculator/renderPaymentType.tsx +49 -0
  237. package/src/components/Calculator/renderRegistrationType.tsx +51 -0
  238. package/src/components/Calculator/useBusinessDepositCalculatorParams.ts +4 -3
  239. package/src/components/Calculator/useCreditCalculatorParams.ts +3 -8
  240. package/src/components/Calculator/useDepositCalculatorParams.ts +4 -2
  241. package/src/components/Catalog/Catalog.ui.json +1 -0
  242. package/src/components/Footer/Contacts.tsx +1 -1
  243. package/src/components/Footer/Sitemap.tsx +10 -5
  244. package/src/components/Gallery/Gallery.ui.json +1 -0
  245. package/src/components/MiniGallery/MiniGallery.ui.json +1 -0
  246. package/src/components/StepsBlock/StepsBlock.example.json +3 -1
  247. package/src/components/StepsBlock/StepsBlock.fixture.tsx +4 -0
  248. package/src/components/StepsBlock/StepsBlock.mobile.tsx +23 -27
  249. package/src/components/StepsBlock/StepsBlock.tsx +34 -27
  250. package/src/components/StepsBlock/StepsBlockContent.ts +2 -1
  251. package/src/components/StepsBlock/StepsBlockStyleMaps.ts +6 -40
  252. package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.tsx +22 -5
  253. package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +9 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderPaymentType.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderPaymentType.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAClF,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC;AACjC,MAAM,CAAC,MAAM,YAAY,GAAG,cAAc,CAAC;AAE3C,MAAM,gBAAgB,GAAG;IACvB;QACE,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,aAAa;KACpB;IACD;QACE,EAAE,EAAE,YAAY;QAChB,IAAI,EAAE,oBAAoB;KAC3B;CACF,CAAC;AASF,MAAM,UAAU,iBAAiB,CAAC,EAChC,SAAS,EACT,QAAQ,EACR,KAAK,EACL,WAAW,GAAG,YAAY,GACT;IACjB,OAAO,CACL,0BACG,KAAK,CAAC,CAAC,CAAC,CACP,cAAK,SAAS,EAAC,MAAM,YACnB,KAAC,IAAI,IAAC,KAAK,EAAC,qBAAqB,EAAC,IAAI,EAAC,YAAY,YAChD,KAAK,GACD,GACH,CACP,CAAC,CAAC,CAAC,IAAI,EACR,KAAC,gBAAgB,IACf,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,gBAAgB,EACvB,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,EAC/C,QAAQ,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,QAAQ,IAAI,QAAQ,CAAC,IAAI,KAAK,OAAO,CAAC,GAClE,IACE,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { ListOrientation } from '../../model/ListOrientation';
3
+ interface RegistrationTypeProps {
4
+ isRemoteRegistration: boolean;
5
+ callback?: (value: boolean) => void;
6
+ title?: string;
7
+ orientation?: ListOrientation;
8
+ }
9
+ export declare function renderRegistrationType({ isRemoteRegistration, callback, title, orientation, }: RegistrationTypeProps): JSX.Element;
10
+ export {};
@@ -0,0 +1,19 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
+ import { RadioButtonGroup } from '../../ui-kit/RadioButtonGroup/RadioButtonGroup.js';
3
+ import { Text } from '../../ui-kit/Text/Text.js';
4
+ const REMOTE_REGISTRATION = 'remote';
5
+ const OFFICE_REGISTRATION = 'office';
6
+ const registrationTypeItems = [
7
+ {
8
+ id: OFFICE_REGISTRATION,
9
+ text: 'Офис Банка',
10
+ },
11
+ {
12
+ id: REMOTE_REGISTRATION,
13
+ text: 'Дистанционно',
14
+ },
15
+ ];
16
+ export function renderRegistrationType({ isRemoteRegistration, callback, title, orientation = 'horizontal', }) {
17
+ return (_jsxs("div", { children: [title ? (_jsx("div", { className: "mb-3", children: _jsx(Text, { color: "text-secondary-text", font: "font-light", children: title }) })) : null, _jsx("div", { children: _jsx(RadioButtonGroup, { orientation: orientation, items: registrationTypeItems, checkedItem: isRemoteRegistration ? REMOTE_REGISTRATION : OFFICE_REGISTRATION, onChange: (text) => callback && callback(text === REMOTE_REGISTRATION) }) })] }));
18
+ }
19
+ //# sourceMappingURL=renderRegistrationType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderRegistrationType.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderRegistrationType.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAClF,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,MAAM,mBAAmB,GAAG,QAAQ,CAAC;AACrC,MAAM,mBAAmB,GAAG,QAAQ,CAAC;AAErC,MAAM,qBAAqB,GAAG;IAC5B;QACE,EAAE,EAAE,mBAAmB;QACvB,IAAI,EAAE,YAAY;KACnB;IACD;QACE,EAAE,EAAE,mBAAmB;QACvB,IAAI,EAAE,cAAc;KACrB;CACF,CAAC;AASF,MAAM,UAAU,sBAAsB,CAAC,EACrC,oBAAoB,EACpB,QAAQ,EACR,KAAK,EACL,WAAW,GAAG,YAAY,GACJ;IACtB,OAAO,CACL,0BACG,KAAK,CAAC,CAAC,CAAC,CACP,cAAK,SAAS,EAAC,MAAM,YACnB,KAAC,IAAI,IAAC,KAAK,EAAC,qBAAqB,EAAC,IAAI,EAAC,YAAY,YAChD,KAAK,GACD,GACH,CACP,CAAC,CAAC,CAAC,IAAI,EACR,wBACE,KAAC,gBAAgB,IACf,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,qBAAqB,EAC5B,WAAW,EAAE,oBAAoB,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,mBAAmB,EAC7E,QAAQ,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,QAAQ,IAAI,QAAQ,CAAC,IAAI,KAAK,mBAAmB,CAAC,GAC9E,GACE,IACF,CACP,CAAC;AACJ,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { CommonDepositParams } from './useDepositCalculatorParams';
2
- export interface BusinessCommonDepositParams extends CommonDepositParams {
1
+ export interface BusinessCommonDepositParams {
2
+ isMonthlyInterestPayment: boolean;
3
3
  isReplenished: boolean;
4
4
  isPartialWithdrawal: boolean;
5
5
  isSmallBusiness: boolean;
@@ -20,6 +20,7 @@ export interface BusinessDepositCalculatorParams extends BusinessDepositCalculat
20
20
  income?: number;
21
21
  finalSum?: number;
22
22
  isDisabledOperatingDeposit?: boolean;
23
+ isShowUnknownRate?: boolean;
23
24
  }
24
25
  export declare type BusinessDepositCalculatorData = {
25
26
  rows: BusinessDepositCalculatorSourceBookParams[];
@@ -11,7 +11,7 @@ export const useBusinessDepositCalculatorParams = (userInputParams, sourceBookDi
11
11
  ...DEFAULT_BUSINESS_DEPOSIT_CALCULATOR_PARAMS,
12
12
  ...userInputParams,
13
13
  isDisabledOperatingDeposit,
14
- rate: 0,
14
+ isShowUnknownRate: true,
15
15
  };
16
16
  }
17
17
  const businessDepositCalculatorSourceBookParams = data?.rows?.find((_) => {
@@ -1 +1 @@
1
- {"version":3,"file":"useBusinessDepositCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useBusinessDepositCalculatorParams.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iCAAiC,EACjC,2BAA2B,EAC3B,2BAA2B,EAC3B,sBAAsB,EACtB,0CAA0C,GAC3C,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAkC5D,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAChD,eAAyD,EACzD,aAAsB,EACW,EAAE;IACnC,MAAM,EACJ,SAAS,EACT,UAAU,EACV,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,wBAAwB,GACzB,GAAG,eAAe,CAAC;IACpB,MAAM,IAAI,GAAG,mBAAmB,CAC9B,aAAa,IAAI,iCAAiC,CACnD,CAAC;IAEF,MAAM,kBAAkB,GAAG,aAAa,IAAI,mBAAmB,CAAC;IAChE,MAAM,0BAA0B,GAC9B,SAAS,GAAG,2BAA2B,IAAI,SAAS,GAAG,2BAA2B,CAAC;IAErF,IAAI,SAAS,IAAI,sBAAsB,EAAE;QACvC,OAAO;YACL,GAAG,0CAA0C;YAC7C,GAAG,eAAe;YAClB,0BAA0B;YAC1B,IAAI,EAAE,CAAC;SACR,CAAC;KACH;IACD,MAAM,yCAAyC,GAC7C,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;QACrB,OAAO,CACL,wBAAwB,KAAK,CAAC,CAAC,wBAAwB;YACvD,eAAe,KAAK,CAAC,CAAC,eAAe;YACrC,uBAAuB,CAAC,kBAAkB,EAAE,CAAC,CAAC;YAC9C,gBAAgB,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;YACrD,gBAAgB,CAAC,SAAS,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,EAAE,CA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C,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC;KAChE;AACH,CAAC,CAAC"}
1
+ {"version":3,"file":"useBusinessDepositCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useBusinessDepositCalculatorParams.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iCAAiC,EACjC,2BAA2B,EAC3B,2BAA2B,EAC3B,sBAAsB,EACtB,0CAA0C,GAC3C,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAmC5D,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAChD,eAAyD,EACzD,aAAsB,EACW,EAAE;IACnC,MAAM,EACJ,SAAS,EACT,UAAU,EACV,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,wBAAwB,GACzB,GAAG,eAAe,CAAC;IACpB,MAAM,IAAI,GAAG,mBAAmB,CAC9B,aAAa,IAAI,iCAAiC,CACnD,CAAC;IAEF,MAAM,kBAAkB,GAAG,aAAa,IAAI,mBAAmB,CAAC;IAChE,MAAM,0BAA0B,GAC9B,SAAS,GAAG,2BAA2B,IAAI,SAAS,GAAG,2BAA2B,CAAC;IAErF,IAAI,SAAS,IAAI,sBAAsB,EAAE;QACvC,OAAO;YACL,GAAG,0CAA0C;YAC7C,GAAG,eAAe;YAClB,0BAA0B;YAC1B,iBAAiB,EAAE,IAAI;SACxB,CAAC;KACH;IACD,MAAM,yCAAyC,GAC7C,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;QACrB,OAAO,CACL,wBAAwB,KAAK,CAAC,CAAC,wBAAwB;YACvD,eAAe,KAAK,CAAC,CAAC,eAAe;YACrC,uBAAuB,CAAC,kBAAkB,EAAE,CAAC,CAAC;YAC9C,gBAAgB,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,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F;SAAM;QACL,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,UAAU,GAAG,IAAI,GAAG,SAAS,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC;KAChE;AACH,CAAC,CAAC"}
@@ -8,9 +8,7 @@ export interface CreditCalculatorSourceBookParams extends CommonCreditParams {
8
8
  maxSum: number;
9
9
  minMonths: number;
10
10
  maxMonths: number;
11
- rateBottomRange: number;
12
- rateTopRange: number;
13
- sumBorder: number;
11
+ rate: number;
14
12
  }
15
13
  export interface CreditCalculatorUserInputParams extends CommonCreditParams {
16
14
  isAnnuity: boolean;
@@ -19,7 +17,6 @@ export interface CreditCalculatorUserInputParams extends CommonCreditParams {
19
17
  }
20
18
  export interface CreditCalculatorParams extends CreditCalculatorSourceBookParams, CreditCalculatorUserInputParams {
21
19
  monthlyPayment: number;
22
- finalRate: number;
23
20
  }
24
21
  export declare type CreditCalculatorData = {
25
22
  rows: CreditCalculatorSourceBookParams[];
@@ -12,16 +12,14 @@ export const useCreditCalculatorParams = (userInputParams, sourceBookDir) => {
12
12
  checkRangeByKeys(moneyValue, ['minSum', 'maxSum'], _) &&
13
13
  checkRangeByKeys(monthsValue, ['minMonths', 'maxMonths'], _));
14
14
  }) || DEFAULT_CREDIT_CALCULATOR_PARAMS;
15
- const { rateBottomRange, rateTopRange, sumBorder } = creditCalculatorSourceBookParams;
16
- const finalRate = moneyValue <= sumBorder ? rateBottomRange : rateTopRange;
17
- const monthlyPayment = getMonthlyPayment(finalRate, userInputParams);
15
+ const { rate } = creditCalculatorSourceBookParams;
16
+ const monthlyPayment = getMonthlyPayment(rate, userInputParams);
18
17
  const sourceBookRows = data?.rows || [DEFAULT_CREDIT_CALCULATOR_PARAMS];
19
18
  return {
20
19
  ...creditCalculatorSourceBookParams,
21
20
  ...getRangeByKeys(['minSum', 'maxSum'], sourceBookRows),
22
21
  ...getRangeByKeys(['minMonths', 'maxMonths'], sourceBookRows),
23
22
  ...userInputParams,
24
- finalRate,
25
23
  monthlyPayment,
26
24
  };
27
25
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useCreditCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useCreditCalculatorParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,gCAAgC,EAAE,MAAM,aAAa,CAAC;AACxF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAkC5D,MAAM,CAAC,MAAM,yBAAyB,GAAG,CACvC,eAAgD,EAChD,aAAsB,EACE,EAAE;IAC1B,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,eAAe,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,eAAe,CAAC;IAElG,MAAM,IAAI,GAAG,mBAAmB,CAAuB,aAAa,IAAI,uBAAuB,CAAC,CAAC;IACjG,MAAM,gCAAgC,GACpC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;QACrB,OAAO,CACL,WAAW,KAAK,CAAC,CAAC,WAAW;YAC7B,cAAc,KAAK,CAAC,CAAC,cAAc;YACnC,eAAe,KAAK,CAAC,CAAC,eAAe;YACrC,gBAAgB,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;YACrD,gBAAgB,CAAC,WAAW,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC,EAAE,CAAC,CAAC,CAC7D,CAAC;IACJ,CAAC,CAAC,IAAI,gCAAgC,CAAC;IAEzC,MAAM,EAAE,eAAe,EAAE,YAAY,EAAE,SAAS,EAAE,GAAG,gCAAgC,CAAC;IACtF,MAAM,SAAS,GAAG,UAAU,IAAI,SAAS,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,YAAY,CAAC;IAC3E,MAAM,cAAc,GAAG,iBAAiB,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;IACrE,MAAM,cAAc,GAAG,IAAI,EAAE,IAAI,IAAI,CAAC,gCAAgC,CAAC,CAAC;IAExE,OAAO;QACL,GAAG,gCAAgC;QACnC,GAAG,cAAc,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,cAAc,CAAC;QACvD,GAAG,cAAc,CAAC,CAAC,WAAW,EAAE,WAAW,CAAC,EAAE,cAAc,CAAC;QAC7D,GAAG,eAAe;QAClB,SAAS;QACT,cAAc;KACf,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"useCreditCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useCreditCalculatorParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,gCAAgC,EAAE,MAAM,aAAa,CAAC;AACxF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AA+B5D,MAAM,CAAC,MAAM,yBAAyB,GAAG,CACvC,eAAgD,EAChD,aAAsB,EACE,EAAE;IAC1B,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,eAAe,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,eAAe,CAAC;IAElG,MAAM,IAAI,GAAG,mBAAmB,CAAuB,aAAa,IAAI,uBAAuB,CAAC,CAAC;IACjG,MAAM,gCAAgC,GACpC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;QACrB,OAAO,CACL,WAAW,KAAK,CAAC,CAAC,WAAW;YAC7B,cAAc,KAAK,CAAC,CAAC,cAAc;YACnC,eAAe,KAAK,CAAC,CAAC,eAAe;YACrC,gBAAgB,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;YACrD,gBAAgB,CAAC,WAAW,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC,EAAE,CAAC,CAAC,CAC7D,CAAC;IACJ,CAAC,CAAC,IAAI,gCAAgC,CAAC;IAEzC,MAAM,EAAE,IAAI,EAAE,GAAG,gCAAgC,CAAC;IAClD,MAAM,cAAc,GAAG,iBAAiB,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;IAChE,MAAM,cAAc,GAAG,IAAI,EAAE,IAAI,IAAI,CAAC,gCAAgC,CAAC,CAAC;IAExE,OAAO;QACL,GAAG,gCAAgC;QACnC,GAAG,cAAc,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,cAAc,CAAC;QACvD,GAAG,cAAc,CAAC,CAAC,WAAW,EAAE,WAAW,CAAC,EAAE,cAAc,CAAC;QAC7D,GAAG,eAAe;QAClB,cAAc;KACf,CAAC;AACJ,CAAC,CAAC"}
@@ -1,5 +1,6 @@
1
1
  export interface CommonDepositParams {
2
2
  isMonthlyInterestPayment: boolean;
3
+ isRemoteRegistration: boolean;
3
4
  }
4
5
  export interface DepositCalculatorSourceBookParams extends CommonDepositParams {
5
6
  minSum: number;
@@ -2,9 +2,10 @@ import { DEFAULT_DEPOSIT_CALCULATOR_PARAMS, DEPOSIT_CALC_DEFAULT_DIR } from './c
2
2
  import { checkRangeByKeys, getRangeByKeys } from './rangeHelpers.js';
3
3
  import { useCalculatorParams } from './useCalculatorParams.js';
4
4
  export const useDepositCalculatorParams = (userInputParams, sourceBookDir) => {
5
- const { isMonthlyInterestPayment, moneyValue, monthsValue } = userInputParams;
5
+ const { isMonthlyInterestPayment, isRemoteRegistration, moneyValue, monthsValue } = userInputParams;
6
6
  const data = useCalculatorParams(sourceBookDir || DEPOSIT_CALC_DEFAULT_DIR);
7
7
  const depositCalculatorSourceBookParams = data?.rows?.find((_) => isMonthlyInterestPayment === _.isMonthlyInterestPayment &&
8
+ isRemoteRegistration === _.isRemoteRegistration &&
8
9
  checkRangeByKeys(moneyValue, ['minSum', 'maxSum'], _) &&
9
10
  checkRangeByKeys(monthsValue, ['minMonths', 'maxMonths'], _)) || DEFAULT_DEPOSIT_CALCULATOR_PARAMS;
10
11
  const { rate } = depositCalculatorSourceBookParams;
@@ -1 +1 @@
1
- {"version":3,"file":"useDepositCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useDepositCalculatorParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAC1F,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AA8B5D,MAAM,CAAC,MAAM,0BAA0B,GAAG,CACxC,eAAiD,EACjD,aAAsB,EACG,EAAE;IAC3B,MAAM,EAAE,wBAAwB,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,eAAe,CAAC;IAE9E,MAAM,IAAI,GAAG,mBAAmB,CAC9B,aAAa,IAAI,wBAAwB,CAC1C,CAAC;IAEF,MAAM,iCAAiC,GACrC,IAAI,EAAE,IAAI,EAAE,IAAI,CACd,CAAC,CAAC,EAAE,EAAE,CACJ,wBAAwB,KAAK,CAAC,CAAC,wBAAwB;QACvD,gBAAgB,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;QACrD,gBAAgB,CAAC,WAAW,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC,EAAE,CAAC,CAAC,CAC/D,IAAI,iCAAiC,CAAC;IAEzC,MAAM,EAAE,IAAI,EAAE,GAAG,iCAAiC,CAAC;IAEnD,MAAM,MAAM,GAAG,gBAAgB,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;IACvD,MAAM,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;IACrC,MAAM,cAAc,GAAG,IAAI,EAAE,IAAI,IAAI,CAAC,iCAAiC,CAAC,CAAC;IAEzE,OAAO;QACL,GAAG,iCAAiC;QACpC,GAAG,cAAc,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,cAAc,CAAC;QACvD,GAAG,cAAc,CAAC,CAAC,WAAW,EAAE,WAAW,CAAC,EAAE,cAAc,CAAC;QAC7D,GAAG,eAAe;QAClB,MAAM;QACN,QAAQ;KACT,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,IAAY,EAAE,eAAiD,EAAE,EAAE;IAC3F,MAAM,EAAE,wBAAwB,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,eAAe,CAAC;IAE9E,IAAI,wBAAwB,EAAE;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC,GAAG,UAAU,CAAC,CAAC;KAC1F;SAAM;QACL;;UAEE;QACF,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,UAAU,GAAG,IAAI,GAAG,EAAE,GAAG,WAAW,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC;KACvE;AACH,CAAC,CAAC"}
1
+ {"version":3,"file":"useDepositCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useDepositCalculatorParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAC1F,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AA+B5D,MAAM,CAAC,MAAM,0BAA0B,GAAG,CACxC,eAAiD,EACjD,aAAsB,EACG,EAAE;IAC3B,MAAM,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,UAAU,EAAE,WAAW,EAAE,GAC/E,eAAe,CAAC;IAElB,MAAM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AAC,CAAC;KAC1F;SAAM;QACL;;UAEE;QACF,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,UAAU,GAAG,IAAI,GAAG,EAAE,GAAG,WAAW,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC;KACvE;AACH,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
3
  import { Button } from '../../ui-kit/Button/Button.js';
4
- export const Contacts = JSX(({ className = '', items, hasButton }) => (_jsxs("div", { className: className, children: [items?.length ? items.map(renderContact) : null, hasButton ? (_jsx(Button, { version: "primary", className: "mb-6 w-full", href: "/", target: "_blank", ariaLabel: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C", text: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C" })) : null] })));
4
+ export const Contacts = JSX(({ className = '', items, hasButton }) => (_jsxs("div", { className: className, children: [items?.length ? items.map(renderContact) : null, hasButton ? (_jsx(Button, { version: "primary", className: "mb-6 w-full", href: "https://www.rshb.ru/feedback/question/", target: "_blank", ariaLabel: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C", text: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C" })) : null] })));
5
5
  const renderContact = (item, index) => {
6
6
  const { type, text, description } = item;
7
7
  return (_jsxs("div", { className: "mb-4", children: [_jsx("div", { children: renderText(type, text) }), _jsx("div", { className: "mt-1 text-s-light text-secondary-text", children: description })] }, String(index)));
@@ -1 +1 @@
1
- {"version":3,"file":"Contacts.js","sourceRoot":"","sources":["../../../src/components/Footer/Contacts.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,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ACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,IAAyB,EAAE,IAAI,GAAG,EAAE,EAAE,EAAE;IAC1D,QAAQ,IAAI,EAAE;QACZ,KAAK,KAAK;YACR,OAAO,CACL,YACE,SAAS,EAAC,gEAAgE,EAC1E,IAAI,EAAE,OAAO,SAAS,CAAC,IAAI,CAAC,EAAE,YAE7B,IAAI,GACH,CACL,CAAC;QACJ,KAAK,OAAO;YACV,OAAO,CACL,YAAG,SAAS,EAAC,8CAA8C,EAAC,IAAI,EAAE,UAAU,IAAI,EAAE,YAC/E,IAAI,GACH,CACL,CAAC;QACJ;YACE,OAAO,yBAAO,IAAI,GAAQ,CAAC;KAC9B;AACH,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC"}
@@ -3,18 +3,20 @@ import { JSX } from '@redneckz/uni-jsx';
3
3
  import { useLink } from '../../hooks/useLink.js';
4
4
  import { projectSettings } from '../../ProjectSettings.js';
5
5
  import { useSWRResource } from '../../services/sitemap/useSWRResource.js';
6
+ import { joinPath } from '../../utils/url.js';
6
7
  export const Sitemap = JSX(({ className = '', fallback }) => {
7
- const link = useLink();
8
+ const link = useLink(true);
8
9
  const sitemap = useSWRResource(projectSettings.SITEMAP || 'sitemap', fallback);
9
10
  return (_jsx("div", { className: `flex flex-grow items-start justify-between gap-[54px] xl:gap-5 ${className}`, children: sitemap.topItems?.map((_, i) => renderColumn(link(_), i)) }));
10
11
  });
11
12
  const renderColumn = (menuItem, index) => {
12
13
  const { text, items, href, target, onClick } = menuItem;
13
- return (_jsxs("div", { className: "flex flex-col w-1/5 last:w-1/4 gap-3.5", children: [_jsx("a", { className: "block leading-5 text-l text-primary-text hover:text-primary-main no-underline", href: href, target: target || '_self', onClick: onClick, children: text || `Раздел ${index}` }), items?.map((_, i) => (_jsx(ColumnItem, { ..._, index: i }, String(i))))] }, String(index)));
14
+ return (_jsxs("div", { className: "flex flex-col w-1/5 last:w-1/4 gap-3.5", children: [_jsx("a", { className: "block leading-5 text-l text-primary-text hover:text-primary-main no-underline", href: href, target: target || '_self', onClick: onClick, children: text || `Раздел ${index}` }), items?.map((_, i) => (_jsx(ColumnItem, { ..._, basePath: href, index: i }, String(i))))] }, String(index)));
14
15
  };
15
- const ColumnItem = JSX(({ text, index, ...rest }) => {
16
- const link = useLink();
16
+ const ColumnItem = JSX(({ text, index, basePath, ...rest }) => {
17
+ const isAnotherPortal = projectSettings.BASE_PATH && basePath ? !projectSettings.BASE_PATH.startsWith(basePath) : false;
18
+ const link = useLink(isAnotherPortal);
17
19
  const { href, target, onClick } = link(rest);
18
- return (_jsx("a", { className: "block text-l-light text-secondary-text hover:text-primary-main no-underline", href: href, target: target || '_self', onClick: onClick, children: text || `Раздел ${index}` }));
20
+ return (_jsx("a", { className: "block text-l-light text-secondary-text hover:text-primary-main no-underline", href: isAnotherPortal ? joinPath(basePath, href) : href, target: target || '_self', onClick: onClick, children: text || `Раздел ${index}` }));
19
21
  });
20
22
  //# sourceMappingURL=Sitemap.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Sitemap.js","sourceRoot":"","sources":["../../../src/components/Footer/Sitemap.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAOvE,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CAAe,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;IACxE,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,OAAO,GAAG,cAAc,CAAmB,eAAe,CAAC,OAAO,IAAI,SA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AAE,OAAO,YAEf,IAAI,IAAI,UAAU,KAAK,EAAE,GACxB,EACH,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACpB,KAAC,UAAU,OAAqB,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,IAA1C,MAAM,CAAC,CAAC,CAAC,CAAqC,CAChE,CAAC,KAXM,MAAM,CAAC,KAAK,CAAC,CAYjB,CACP,CAAC;AACJ,CAAC,CAAC;AAOF,MAAM,UAAU,GAAG,GAAG,CAAkB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC7E,MAAM,eAAe,GACnB,eAAe,CAAC,SAAS,IAAI,QAAQ,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,SAAS,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAElG,MAAM,IAAI,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;IACtC,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IAE7C,OAAO,CACL,YACE,SAAS,EAAC,6EAA6E,EACvF,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,EACvD,MAAM,EAAE,MAAM,IAAI,OAAO,EACzB,OAAO,EAAE,OAAO,YAEf,IAAI,IAAI,UAAU,KAAK,EAAE,GACxB,CACL,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -7,7 +7,7 @@ import { RichText } from '../../ui-kit/RichText/RichText.js';
7
7
  import { assertUnreachable } from '../../utils/assertUnreachable.js';
8
8
  import { getIconWithVersion } from '../../utils/getIconWithVersion.js';
9
9
  import { checkCanRenderIcon } from './checkCanRenderIcon.js';
10
- import { STEPS_BLOCK_STYLE_MAPS } from './StepsBlockStyleMaps.js';
10
+ import { STEPS_BLOCK_STYLE } from './StepsBlockStyleMaps.js';
11
11
  const STEPS_SIZE_MAP = {
12
12
  normal: 'h-[70px] w-[70px] min-w-[70px] min-h-[70px]',
13
13
  small: 'h-12 w-12 min-w-12 min-h-12',
@@ -16,10 +16,8 @@ const STEPS_TILE_DESCRIPTION_HEIGHT_MAP = {
16
16
  normal: 'min-h-[70px]',
17
17
  small: 'min-h-12',
18
18
  };
19
- export const StepsBlock = JSX(({ className = '', title, description, showLines = true, steps, size = 'normal', version = 'primary', ...rest }) => {
20
- const styleMap = STEPS_BLOCK_STYLE_MAPS[version];
21
- return (_jsxs(BlockWrapper, { className: `box-border px-4 py-6 flex flex-col ${className}`, version: version, ...rest, children: [title ? _jsx(Heading, { headingType: "h3", className: "text-center", title: title }) : null, description ? (_jsx("p", { className: `text-m-light text-center ${styleMap.description} ${title ? 'mt-2' : ''}`, children: description })) : null, steps?.length ? (_jsx("div", { className: `box-border py-0.5 mb-0.5 mt-5`, children: _jsx("div", { className: "flex flex-col justify-between gap-x-[101px]", children: steps.map(renderStep(size, version, showLines)) }) })) : null] }));
22
- });
19
+ const styleMap = STEPS_BLOCK_STYLE;
20
+ export const StepsBlock = JSX(({ className = '', title, description, showLines = true, steps, size = 'normal', version = 'primary', ...rest }) => (_jsxs(BlockWrapper, { className: `box-border px-4 py-6 flex flex-col ${className}`, version: version, ...rest, children: [title ? _jsx(Heading, { headingType: "h3", className: "text-center", title: title }) : null, description ? (_jsx("p", { className: `text-m-light text-center ${styleMap.description} ${title ? 'mt-2' : ''}`, children: description })) : null, steps?.length ? (_jsx("div", { className: `box-border py-0.5 mb-0.5 mt-5`, children: _jsx("div", { className: "flex flex-col justify-between gap-x-[101px]", children: steps.map(renderStep(size, version, showLines)) }) })) : null] })));
23
21
  // TODO: Create universal function for this case
24
22
  const renderStep = (size, version, showLines) =>
25
23
  // Linter doesn't understand that switch processes all cases
@@ -41,11 +39,9 @@ const renderStep = (size, version, showLines) =>
41
39
  const renderDefaultStep = (size, version, showLines) => (step, i, steps) => {
42
40
  const isLastStep = steps.length - 1 === i;
43
41
  const margin = size === 'normal' ? 'ml-[34px]' : 'ml-6';
44
- const styleMap = STEPS_BLOCK_STYLE_MAPS[version];
45
42
  return (_jsx("div", { children: _jsxs("div", { className: "flex flex-row text-center relative", children: [_jsxs("div", { className: "overflow-hidden flex-shrink-0", children: [renderIconArea(size, version)(step, i), isLastStep ? null : (_jsx("div", { className: `min-h-8 h-full w-0.5 ${showLines ? styleMap.iconConnector : ''} ${margin}` }))] }), _jsxs("div", { className: `flex flex-col justify-center h-fit ${STEPS_TILE_DESCRIPTION_HEIGHT_MAP[size]}`, children: [step.label ? (_jsx("div", { className: "text-m-title-xs font-medium m-0 text-left mb-1", children: step.label })) : null, step.description ? (_jsx("div", { className: `text-s ${styleMap.description} text-left`, children: step.description })) : null] })] }) }, String(i)));
46
43
  };
47
44
  const renderIconArea = (size, version) => (step, i) => {
48
- const styleMap = STEPS_BLOCK_STYLE_MAPS[version];
49
45
  const iconAreaSize = STEPS_SIZE_MAP[size];
50
46
  const iconSize = size === 'normal' ? '38' : '27';
51
47
  const iconTextSize = size === 'normal' ? 'text-m-title' : 'text-m-title-xs';
@@ -1 +1 @@
1
- {"version":3,"file":"StepsBlock.js","sourceRoot":"","sources":["../../../src/components/StepsBlock/StepsBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAIxC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAA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OAAqB,EAAE,EAAE,CAAC,CAAC,IAAU,EAAE,CAAS,EAAE,EAAE;IAC7F,MAAM,YAAY,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;IAE1C,MAAM,QAAQ,GAAG,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IACjD,MAAM,YAAY,GAAG,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,iBAAiB,CAAC;IAE5E,OAAO,CACL,cACE,SAAS,EAAE,GAAG,YAAY,IAAI,QAAQ,CAAC,cAAc,4DAA4D,YAEjH,eAAM,SAAS,EAAE,gCAAgC,YAAY,EAAE,YAC5D,kBAAkB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAChC,KAAC,GAAG,IACF,KAAK,EAAE,kBAAkB,CAAC,EAAE,GAAG,IAAI,CAAC,IAAI,EAAE,EAAE,OAAO,CAAC,EACpD,KAAK,EAAE,QAAQ,EACf,MAAM,EAAE,QAAQ,EAChB,KAAK,SACL,CACH,CAAC,CAAC,CAAC,CACF,yBAAO,CAAC,GAAG,CAAC,GAAQ,CACrB,GACI,GACH,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -43,10 +43,11 @@ export declare type StepsBlockContent = HeadlineCommonProps & {
43
43
  * @maxItems 5
44
44
  */
45
45
  steps?: Step[];
46
+ stepVersion?: BlockVersion;
46
47
  /** @title Кнопка */
47
48
  button?: ButtonWithIconProps;
48
49
  /**
49
- * @title Размер шагов (моб.)
50
+ * @title Размер шагов
50
51
  * @default normal
51
52
  */
52
53
  size?: SizeVersion;
@@ -1,4 +1,3 @@
1
- import type { BlockVersion } from '../../model/BlockVersion';
2
1
  export declare type StyleType = {
3
2
  description: string;
4
3
  iconText: string;
@@ -6,4 +5,4 @@ export declare type StyleType = {
6
5
  iconConnector: string;
7
6
  dot: string;
8
7
  };
9
- export declare const STEPS_BLOCK_STYLE_MAPS: Record<BlockVersion, StyleType>;
8
+ export declare const STEPS_BLOCK_STYLE: StyleType;
@@ -1,40 +1,8 @@
1
- export const STEPS_BLOCK_STYLE_MAPS = {
2
- primary: {
3
- description: '!text-secondary-text text-l-light',
4
- iconText: 'text-secondary-text',
5
- iconBackground: 'bg-main-divider',
6
- iconConnector: 'bg-secondary-light',
7
- dot: 'bg-secondary-text',
8
- },
9
- secondary: {
10
- description: '!text-white/80 text-l-light',
11
- iconText: 'text-white',
12
- iconBackground: 'bg-white/30',
13
- iconConnector: 'bg-white',
14
- dot: 'bg-white/80',
15
- },
16
- gray: {
17
- // TODO Replace this Map with group-data-*
18
- description: '!text-white/80 text-l-light',
19
- iconText: 'text-white',
20
- iconBackground: 'bg-white/30',
21
- iconConnector: 'bg-white',
22
- dot: 'bg-white/80',
23
- },
24
- transparent: {
25
- description: '!text-white/80 text-l-light',
26
- iconText: 'text-white',
27
- iconBackground: 'bg-white/30',
28
- iconConnector: 'bg-white',
29
- dot: 'bg-white/80',
30
- },
31
- '': {
32
- // TODO Replace this Map with group-data-*
33
- description: '!text-white/80 text-l-light',
34
- iconText: 'text-white',
35
- iconBackground: 'bg-white/30',
36
- iconConnector: 'bg-white',
37
- dot: 'bg-white/80',
38
- },
1
+ export const STEPS_BLOCK_STYLE = {
2
+ description: 'text-white/80 text-l-light group-data-primary:text-secondary-text',
3
+ iconText: 'text-white group-data-primary:text-secondary-text',
4
+ iconBackground: 'bg-white/30 group-data-primary:bg-main-divider',
5
+ iconConnector: 'bg-white group-data-primary:bg-secondary-light',
6
+ dot: 'bg-white/80 group-data-primary:bg-secondary-text',
39
7
  };
40
8
  //# sourceMappingURL=StepsBlockStyleMaps.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StepsBlockStyleMaps.js","sourceRoot":"","sources":["../../../src/components/StepsBlock/StepsBlockStyleMaps.ts"],"names":[],"mappings":"AAUA,MAAM,CAAC,MAAM,sBAAsB,GAAoC;IACrE,OAAO,EAAE;QACP,WAAW,EAAE,mCAAmC;QAChD,QAAQ,EAAE,qBAAqB;QAC/B,cAAc,EAAE,iBAAiB;QACjC,aAAa,EAAE,oBAAoB;QACnC,GAAG,EAAE,mBAAmB;KACzB;IACD,SAAS,EAAE;QACT,WAAW,EAAE,6BAA6B;QAC1C,QAAQ,EAAE,YAAY;QACtB,cAAc,EAAE,aAAa;QAC7B,aAAa,EAAE,UAAU;QACzB,GAAG,EAAE,aAAa;KACnB;IACD,IAAI,EAAE;QACJ,0CAA0C;QAC1C,WAAW,EAAE,6BAA6B;QAC1C,QAAQ,EAAE,YAAY;QACtB,cAAc,EAAE,aAAa;QAC7B,aAAa,EAAE,UAAU;QACzB,GAAG,EAAE,aAAa;KACnB;IACD,WAAW,EAAE;QACX,WAAW,EAAE,6BAA6B;QAC1C,QAAQ,EAAE,YAAY;QACtB,cAAc,EAAE,aAAa;QAC7B,aAAa,EAAE,UAAU;QACzB,GAAG,EAAE,aAAa;KACnB;IACD,EAAE,EAAE;QACF,0CAA0C;QAC1C,WAAW,EAAE,6BAA6B;QAC1C,QAAQ,EAAE,YAAY;QACtB,cAAc,EAAE,aAAa;QAC7B,aAAa,EAAE,UAAU;QACzB,GAAG,EAAE,aAAa;KACnB;CACF,CAAC"}
1
+ {"version":3,"file":"StepsBlockStyleMaps.js","sourceRoot":"","sources":["../../../src/components/StepsBlock/StepsBlockStyleMaps.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,MAAM,iBAAiB,GAAc;IAC1C,WAAW,EAAE,mEAAmE;IAChF,QAAQ,EAAE,mDAAmD;IAC7D,cAAc,EAAE,gDAAgD;IAChE,aAAa,EAAE,gDAAgD;IAC/D,GAAG,EAAE,kDAAkD;CACxD,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { ListOrientation } from '../../model/ListOrientation';
1
2
  export interface RadioButtonItem {
2
3
  id: string;
3
4
  text?: string;
@@ -6,6 +7,7 @@ interface RadioButtonGroupProps {
6
7
  items?: RadioButtonItem[];
7
8
  checkedItem?: string;
8
9
  onChange?: (id: string) => void;
10
+ orientation?: ListOrientation;
9
11
  }
10
12
  export declare const RadioButtonGroup: import("@redneckz/uni-jsx").UNIComponent<RadioButtonGroupProps, any, any>;
11
13
  export {};
@@ -1,5 +1,9 @@
1
1
  import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
3
  import { Checkbox } from '../Checkbox/Checkbox.js';
4
- export const RadioButtonGroup = JSX(({ items, checkedItem, onChange: onChangeCheckedItem }) => (_jsx("div", { className: "flex flex-col gap-3", children: items?.map(({ id, text }) => (_jsx(Checkbox, { isRadio: true, text: text, checked: checkedItem === id, onChange: () => onChangeCheckedItem && onChangeCheckedItem(id) }, String(id)))) })));
4
+ const orientationStyleMap = {
5
+ horizontal: 'gap-10',
6
+ vertical: 'flex-col gap-3',
7
+ };
8
+ export const RadioButtonGroup = JSX(({ items, checkedItem, onChange: onChangeCheckedItem, orientation = 'horizontal' }) => (_jsx("div", { className: `flex ${orientationStyleMap[orientation]}`, children: items?.map(({ id, text }) => (_jsx(Checkbox, { isRadio: true, text: text, checked: checkedItem === id, onChange: () => onChangeCheckedItem && onChangeCheckedItem(id) }, String(id)))) })));
5
9
  //# sourceMappingURL=RadioButtonGroup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RadioButtonGroup.js","sourceRoot":"","sources":["../../../src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAahD,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CACjC,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,mBAAmB,EAAE,EAAE,EAAE,CAAC,CACzD,cAAK,SAAS,EAAC,qBAAqB,YACjC,KAAK,EAAE,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAC5B,KAAC,QAAQ,IAEP,OAAO,QACP,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,WAAW,KAAK,EAAE,EAC3B,QAAQ,EAAE,GAAG,EAAE,CAAC,mBAAmB,IAAI,mBAAmB,CAAC,EAAE,CAAC,IAJzD,MAAM,CAAC,EAAE,CAAC,CAKf,CACH,CAAC,GACE,CACP,CACF,CAAC"}
1
+ {"version":3,"file":"RadioButtonGroup.js","sourceRoot":"","sources":["../../../src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAchD,MAAM,mBAAmB,GAAoC;IAC3D,UAAU,EAAE,QAAQ;IACpB,QAAQ,EAAE,gBAAgB;CAC3B,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CACjC,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,mBAAmB,EAAE,WAAW,GAAG,YAAY,EAAE,EAAE,EAAE,CAAC,CACrF,cAAK,SAAS,EAAE,QAAQ,mBAAmB,CAAC,WAAW,CAAC,EAAE,YACvD,KAAK,EAAE,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAC5B,KAAC,QAAQ,IAEP,OAAO,QACP,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,WAAW,KAAK,EAAE,EAC3B,QAAQ,EAAE,GAAG,EAAE,CAAC,mBAAmB,IAAI,mBAAmB,CAAC,EAAE,CAAC,IAJzD,MAAM,CAAC,EAAE,CAAC,CAKf,CACH,CAAC,GACE,CACP,CACF,CAAC"}
@@ -47,7 +47,7 @@ export const BusinessDepositCalculatorForm = JSX<BusinessDepositCalculatorProp>(
47
47
  };
48
48
 
49
49
  const calculatorParams = useBusinessDepositCalculatorParams(userInputParams, sourceBookDir);
50
- const { income, finalSum, rate, depositeName } = calculatorParams;
50
+ const { income, finalSum, rate, depositeName, isShowUnknownRate } = calculatorParams;
51
51
 
52
52
  return (
53
53
  <section className={className}>
@@ -62,14 +62,17 @@ export const BusinessDepositCalculatorForm = JSX<BusinessDepositCalculatorProp>(
62
62
  handleIsPartialWithdrawal,
63
63
  handleIsSmallBusiness,
64
64
  })}
65
- {renderInterestPayment(
65
+ {renderInterestPayment({
66
66
  isMonthlyInterestPayment,
67
- handleIsMonthlyInterestPayment,
68
- 'Выплата процентов',
69
- )}
67
+ callback: handleIsMonthlyInterestPayment,
68
+ title: 'Выплата процентов',
69
+ orientation: 'vertical',
70
+ })}
70
71
  </div>
71
72
  </div>
72
- {rate ? (
73
+ {isShowUnknownRate ? (
74
+ <UnknownRate />
75
+ ) : (
73
76
  <Rate
74
77
  rate={rate}
75
78
  depositeName={depositeName}
@@ -77,8 +80,6 @@ export const BusinessDepositCalculatorForm = JSX<BusinessDepositCalculatorProp>(
77
80
  rateBlockClassName="tracking-[-25px]"
78
81
  unit="%"
79
82
  />
80
- ) : (
81
- <UnknownRate />
82
83
  )}
83
84
 
84
85
  <div className="w-full max-w-[350px]">
@@ -2,7 +2,6 @@ import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
4
4
  import { Checkbox } from '../../ui-kit/Checkbox/Checkbox';
5
- import { RadioButtonGroup } from '../../ui-kit/RadioButtonGroup/RadioButtonGroup';
6
5
  import { style } from '../../utils/style';
7
6
  import type { CommonCalculatorProps } from './CalculatorContent';
8
7
  import { CalculatorValueBlock } from './CalculatorValueBlock';
@@ -10,23 +9,10 @@ import { DEFAULT_MONTHS, DEFAULT_SUM } from './constants';
10
9
  import { Rate } from './Rate';
11
10
  import { renderFootnote } from './renderFootnote';
12
11
  import { renderMonthsInput } from './renderMonthsInput';
12
+ import { renderPaymentType } from './renderPaymentType';
13
13
  import { renderWantedSumInput } from './renderWantedSumInput';
14
14
  import { useCreditCalculatorParams } from './useCreditCalculatorParams';
15
15
 
16
- export const ANNUITY = 'annuity';
17
- export const DIFFERENTIAL = 'differential';
18
-
19
- const paymentTypeItems = [
20
- {
21
- id: ANNUITY,
22
- text: 'Аннуитетный',
23
- },
24
- {
25
- id: DIFFERENTIAL,
26
- text: 'Дифференцированный',
27
- },
28
- ];
29
-
30
16
  export interface CreditCalculatorProp extends CommonCalculatorProps {
31
17
  className?: string;
32
18
  }
@@ -82,21 +68,21 @@ export const CreditCalculatorForm = JSX<CreditCalculatorProp>(
82
68
  </div>
83
69
  <Rate
84
70
  title="Ставка"
85
- rate={calculatorParams.finalRate}
71
+ rate={calculatorParams.rate}
86
72
  rateBlockClassName="tracking-[-25px]"
87
73
  unit="%"
88
74
  />
89
75
  <div className="w-full max-w-[350px]">
90
76
  <CalculatorValueBlock
91
- title={isAnnuity ? 'Ежемесячный платеж' : 'Платёж в первый месяц'}
77
+ title={'Ежемесячный платеж'}
92
78
  value={calculatorParams.monthlyPayment}
93
79
  postfix="₽"
94
80
  />
95
- <RadioButtonGroup
96
- items={paymentTypeItems}
97
- checkedItem={isAnnuity ? ANNUITY : DIFFERENTIAL}
98
- onChange={(text: string) => toggleIsAnnuity(text === ANNUITY)}
99
- />
81
+ {renderPaymentType({
82
+ isAnnuity,
83
+ orientation: 'vertical',
84
+ callback: toggleIsAnnuity,
85
+ })}
100
86
  {renderButtonsSection(buttons, { className: 'mt-7', isVertical: true })}
101
87
  {renderFootnote(footnote)}
102
88
  </div>
@@ -11,6 +11,7 @@ import { Rate } from './Rate';
11
11
  import { renderFootnote } from './renderFootnote';
12
12
  import { renderInterestPayment } from './renderInterestPayment';
13
13
  import { renderMonthsInput } from './renderMonthsInput';
14
+ import { renderRegistrationType } from './renderRegistrationType';
14
15
  import { renderWantedSumInput } from './renderWantedSumInput';
15
16
  import { useDepositCalculatorParams } from './useDepositCalculatorParams';
16
17
 
@@ -28,10 +29,16 @@ export const DepositCalculatorForm = JSX<DepositCalculatorProp>(
28
29
  (_: boolean) => toggleIsMonthlyInterestPayment(_),
29
30
  [],
30
31
  );
32
+ const [isRemoteRegistration, toggleIsRemoteRegistration] = useState(false);
33
+ const handleIsRemoteRegistration = useCallback(
34
+ (_: boolean) => toggleIsRemoteRegistration(_),
35
+ [],
36
+ );
31
37
  const userInputParams = {
32
38
  moneyValue,
33
39
  monthsValue,
34
40
  isMonthlyInterestPayment,
41
+ isRemoteRegistration,
35
42
  };
36
43
  const handleMonthsValue = useCallback((_: number) => setMonthsValue(_), []);
37
44
 
@@ -55,16 +62,23 @@ export const DepositCalculatorForm = JSX<DepositCalculatorProp>(
55
62
  },
56
63
  handleMonthsValue,
57
64
  )}
65
+ <div className="mt-7 flex flex-col gap-y-7">
66
+ {renderInterestPayment({
67
+ isMonthlyInterestPayment,
68
+ callback: handleIsMonthlyInterestPayment,
69
+ title: 'Выплата процентов',
70
+ })}
71
+ {renderRegistrationType({
72
+ isRemoteRegistration,
73
+ callback: handleIsRemoteRegistration,
74
+ title: 'Оформление',
75
+ })}
76
+ </div>
58
77
  </div>
59
- <Rate rate={rate || 1} rateBlockClassName="tracking-[-25px]" unit="%" />
78
+ <Rate rate={rate} rateBlockClassName="tracking-[-25px]" unit="%" />
60
79
  <div className="w-full max-w-[350px]">
61
- {income ? (
62
- <CalculatorValueBlock title="Доход по вкладу" value={income} postfix="₽" prefix="+" />
63
- ) : null}
64
- {finalSum ? (
65
- <CalculatorValueBlock title="Сумма в конце срока" value={finalSum} postfix="₽" />
66
- ) : null}
67
- {renderInterestPayment(isMonthlyInterestPayment, handleIsMonthlyInterestPayment)}
80
+ <CalculatorValueBlock title="Доход по вкладу" value={income} postfix="₽" prefix="+" />
81
+ <CalculatorValueBlock title="Сумма в конце срока" value={finalSum} postfix="₽" />
68
82
  {renderButtonsSection(buttons, { className: 'mt-7', isVertical: true })}
69
83
  {renderFootnote(footnote)}
70
84
  </div>
@@ -3,8 +3,8 @@ import { BusinessDepositCalculatorSourceBookParams } from './useBusinessDepositC
3
3
  import { CreditCalculatorSourceBookParams } from './useCreditCalculatorParams';
4
4
  import { DepositCalculatorSourceBookParams } from './useDepositCalculatorParams';
5
5
 
6
- export const DEFAULT_MIN_SUM = 60000;
7
- export const DEFAULT_MAX_SUM = 2000000;
6
+ export const DEFAULT_MIN_SUM = 30000;
7
+ export const DEFAULT_MAX_SUM = 5000000;
8
8
  export const DEFAULT_SUM = (DEFAULT_MAX_SUM - DEFAULT_MIN_SUM) / 2;
9
9
  export const DEFAULT_MIN_MONTHS = 13;
10
10
  export const DEFAULT_MAX_MONTHS = 60;
@@ -25,12 +25,10 @@ export const DEFAULT_CREDIT_CALCULATOR_PARAMS: CreditCalculatorSourceBookParams
25
25
  maxSum: DEFAULT_MAX_SUM,
26
26
  minMonths: DEFAULT_MIN_MONTHS,
27
27
  maxMonths: DEFAULT_MAX_MONTHS,
28
- rateBottomRange: 12,
29
- rateTopRange: 7,
28
+ rate: 0,
30
29
  isSalaryClient: true,
31
30
  isStateEmployee: true,
32
31
  isInsurance: true,
33
- sumBorder: 999999,
34
32
  };
35
33
 
36
34
  export const DEFAULT_TRAVEL_MIN_SUM = 6000;
@@ -54,8 +52,9 @@ export const DEFAULT_DEPOSIT_CALCULATOR_PARAMS: DepositCalculatorSourceBookParam
54
52
  maxSum: 5000000,
55
53
  minMonths: 2,
56
54
  maxMonths: 120,
57
- rate: 7,
55
+ rate: 0,
58
56
  isMonthlyInterestPayment: true,
57
+ isRemoteRegistration: true,
59
58
  };
60
59
 
61
60
  export const DEFAULT_BUSINESS_DEPOSIT_CALCULATOR_PARAMS: BusinessDepositCalculatorSourceBookParams =
@@ -64,7 +63,7 @@ export const DEFAULT_BUSINESS_DEPOSIT_CALCULATOR_PARAMS: BusinessDepositCalculat
64
63
  maxSum: 500000,
65
64
  minDays: BUSINESS_MIN_DAYS,
66
65
  maxDays: BUSINESS_MAX_DAYS,
67
- rate: 6.6,
66
+ rate: 0,
68
67
  isMonthlyInterestPayment: true,
69
68
  isReplenished: false,
70
69
  isPartialWithdrawal: false,
@@ -21,4 +21,4 @@ export const checkRangeByKeys = <
21
21
  value: number,
22
22
  [minKey, maxKey]: [MinKey, MaxKey],
23
23
  sourceBookRow: T,
24
- ): boolean => value >= sourceBookRow[minKey] && value < sourceBookRow[maxKey];
24
+ ): boolean => value >= sourceBookRow[minKey] && value <= sourceBookRow[maxKey];