@redneckz/wildless-cms-uni-blocks 0.14.1006 → 0.14.1012

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 (137) hide show
  1. package/bundle/bundle.umd.js +101 -82
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/retail/api/apiBaseUrl.d.ts +2 -1
  4. package/bundle/retail/utils/getBaseUrl.d.ts +1 -0
  5. package/bundle/retail/validator/validators.d.ts +1 -0
  6. package/dist/components/CalculatorRko/CalculatorRko.js +16 -16
  7. package/dist/components/CalculatorRko/CalculatorRko.js.map +1 -1
  8. package/dist/components/DebitForm/DebitFormStatus.js +2 -2
  9. package/dist/components/DebitForm/DebitFormStatus.js.map +1 -1
  10. package/dist/components/RkoTariffCardsTable/RkoTariffCard.js +1 -1
  11. package/dist/components/RkoTariffCardsTable/RkoTariffCard.js.map +1 -1
  12. package/dist/components/RkoTariffCardsTable/RkoTariffCardsTable.js +3 -3
  13. package/dist/components/RkoTariffCardsTable/RkoTariffCardsTable.js.map +1 -1
  14. package/dist/components/RkoTariffCardsTable/constants.js +1 -1
  15. package/dist/retail/api/apiBaseUrl.d.ts +2 -1
  16. package/dist/retail/api/apiBaseUrl.js +3 -2
  17. package/dist/retail/api/apiBaseUrl.js.map +1 -1
  18. package/dist/retail/api/doRequest.js +3 -4
  19. package/dist/retail/api/doRequest.js.map +1 -1
  20. package/dist/retail/components/Fields/CodeWordField.js +12 -1
  21. package/dist/retail/components/Fields/CodeWordField.js.map +1 -1
  22. package/dist/retail/hooks/useLeadFormData.js +3 -2
  23. package/dist/retail/hooks/useLeadFormData.js.map +1 -1
  24. package/dist/retail/utils/getBaseUrl.d.ts +1 -0
  25. package/dist/retail/utils/getBaseUrl.js +13 -0
  26. package/dist/retail/utils/getBaseUrl.js.map +1 -0
  27. package/dist/retail/validator/validators.d.ts +1 -0
  28. package/dist/retail/validator/validators.js +3 -3
  29. package/dist/retail/validator/validators.js.map +1 -1
  30. package/lib/common.css +1 -1
  31. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.fixture.d.ts +1 -0
  32. package/lib/components/CalculatorRko/CalculatorRko.js +16 -16
  33. package/lib/components/CalculatorRko/CalculatorRko.js.map +1 -1
  34. package/lib/components/DebitForm/DebitFormStatus.js +2 -2
  35. package/lib/components/DebitForm/DebitFormStatus.js.map +1 -1
  36. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
  37. package/lib/components/RkoTariffCardsTable/RkoTariffCard.js +1 -1
  38. package/lib/components/RkoTariffCardsTable/RkoTariffCard.js.map +1 -1
  39. package/lib/components/RkoTariffCardsTable/RkoTariffCardsTable.js +3 -3
  40. package/lib/components/RkoTariffCardsTable/RkoTariffCardsTable.js.map +1 -1
  41. package/lib/components/RkoTariffCardsTable/constants.js +1 -1
  42. package/lib/retail/api/apiBaseUrl.d.ts +2 -1
  43. package/lib/retail/api/apiBaseUrl.js +2 -1
  44. package/lib/retail/api/apiBaseUrl.js.map +1 -1
  45. package/lib/retail/api/doRequest.js +3 -4
  46. package/lib/retail/api/doRequest.js.map +1 -1
  47. package/lib/retail/components/Fields/CodeWordField.js +12 -1
  48. package/lib/retail/components/Fields/CodeWordField.js.map +1 -1
  49. package/lib/retail/hooks/useLeadFormData.js +3 -2
  50. package/lib/retail/hooks/useLeadFormData.js.map +1 -1
  51. package/lib/retail/utils/getBaseUrl.d.ts +1 -0
  52. package/lib/retail/utils/getBaseUrl.js +10 -0
  53. package/lib/retail/utils/getBaseUrl.js.map +1 -0
  54. package/lib/retail/validator/validators.d.ts +1 -0
  55. package/lib/retail/validator/validators.js +1 -1
  56. package/lib/retail/validator/validators.js.map +1 -1
  57. package/mobile/bundle/bundle.umd.js +101 -82
  58. package/mobile/bundle/bundle.umd.min.js +1 -1
  59. package/mobile/bundle/retail/api/apiBaseUrl.d.ts +2 -1
  60. package/mobile/bundle/retail/utils/getBaseUrl.d.ts +1 -0
  61. package/mobile/bundle/retail/validator/validators.d.ts +1 -0
  62. package/mobile/dist/components/CalculatorRko/CalculatorRko.js +16 -16
  63. package/mobile/dist/components/CalculatorRko/CalculatorRko.js.map +1 -1
  64. package/mobile/dist/components/DebitForm/DebitFormStatus.js +2 -2
  65. package/mobile/dist/components/DebitForm/DebitFormStatus.js.map +1 -1
  66. package/mobile/dist/components/RkoTariffCardsTable/RkoTariffCard.js +1 -1
  67. package/mobile/dist/components/RkoTariffCardsTable/RkoTariffCard.js.map +1 -1
  68. package/mobile/dist/components/RkoTariffCardsTable/RkoTariffCardsTable.js +3 -3
  69. package/mobile/dist/components/RkoTariffCardsTable/RkoTariffCardsTable.js.map +1 -1
  70. package/mobile/dist/components/RkoTariffCardsTable/constants.js +1 -1
  71. package/mobile/dist/retail/api/apiBaseUrl.d.ts +2 -1
  72. package/mobile/dist/retail/api/apiBaseUrl.js +3 -2
  73. package/mobile/dist/retail/api/apiBaseUrl.js.map +1 -1
  74. package/mobile/dist/retail/api/doRequest.js +3 -4
  75. package/mobile/dist/retail/api/doRequest.js.map +1 -1
  76. package/mobile/dist/retail/components/Fields/CodeWordField.js +12 -1
  77. package/mobile/dist/retail/components/Fields/CodeWordField.js.map +1 -1
  78. package/mobile/dist/retail/hooks/useLeadFormData.js +3 -2
  79. package/mobile/dist/retail/hooks/useLeadFormData.js.map +1 -1
  80. package/mobile/dist/retail/utils/getBaseUrl.d.ts +1 -0
  81. package/mobile/dist/retail/utils/getBaseUrl.js +13 -0
  82. package/mobile/dist/retail/utils/getBaseUrl.js.map +1 -0
  83. package/mobile/dist/retail/validator/validators.d.ts +1 -0
  84. package/mobile/dist/retail/validator/validators.js +3 -3
  85. package/mobile/dist/retail/validator/validators.js.map +1 -1
  86. package/mobile/lib/common.css +1 -1
  87. package/mobile/lib/components/CalculatorRko/CalculatorRko.js +16 -16
  88. package/mobile/lib/components/CalculatorRko/CalculatorRko.js.map +1 -1
  89. package/mobile/lib/components/DebitForm/DebitFormStatus.js +2 -2
  90. package/mobile/lib/components/DebitForm/DebitFormStatus.js.map +1 -1
  91. package/mobile/lib/components/RkoTariffCardsTable/RkoTariffCard.js +1 -1
  92. package/mobile/lib/components/RkoTariffCardsTable/RkoTariffCard.js.map +1 -1
  93. package/mobile/lib/components/RkoTariffCardsTable/RkoTariffCardsTable.js +3 -3
  94. package/mobile/lib/components/RkoTariffCardsTable/RkoTariffCardsTable.js.map +1 -1
  95. package/mobile/lib/components/RkoTariffCardsTable/constants.js +1 -1
  96. package/mobile/lib/retail/api/apiBaseUrl.d.ts +2 -1
  97. package/mobile/lib/retail/api/apiBaseUrl.js +2 -1
  98. package/mobile/lib/retail/api/apiBaseUrl.js.map +1 -1
  99. package/mobile/lib/retail/api/doRequest.js +3 -4
  100. package/mobile/lib/retail/api/doRequest.js.map +1 -1
  101. package/mobile/lib/retail/components/Fields/CodeWordField.js +12 -1
  102. package/mobile/lib/retail/components/Fields/CodeWordField.js.map +1 -1
  103. package/mobile/lib/retail/hooks/useLeadFormData.js +3 -2
  104. package/mobile/lib/retail/hooks/useLeadFormData.js.map +1 -1
  105. package/mobile/lib/retail/utils/getBaseUrl.d.ts +1 -0
  106. package/mobile/lib/retail/utils/getBaseUrl.js +10 -0
  107. package/mobile/lib/retail/utils/getBaseUrl.js.map +1 -0
  108. package/mobile/lib/retail/validator/validators.d.ts +1 -0
  109. package/mobile/lib/retail/validator/validators.js +1 -1
  110. package/mobile/lib/retail/validator/validators.js.map +1 -1
  111. package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +2 -3
  112. package/mobile/src/components/CalculatorRko/CalculatorRko.tsx +4 -4
  113. package/mobile/src/components/DebitForm/DebitFormStatus.tsx +2 -2
  114. package/mobile/src/components/RkoTariffCardsTable/RkoTariffCard.tsx +1 -1
  115. package/mobile/src/components/RkoTariffCardsTable/RkoTariffCardsTable.tsx +5 -3
  116. package/mobile/src/components/RkoTariffCardsTable/constants.ts +1 -1
  117. package/mobile/src/retail/api/apiBaseUrl.ts +2 -1
  118. package/mobile/src/retail/api/doRequest.ts +13 -17
  119. package/mobile/src/retail/components/Fields/CodeWordField.tsx +24 -8
  120. package/mobile/src/retail/hooks/useLeadFormData.ts +4 -3
  121. package/mobile/src/retail/utils/getBaseUrl.ts +17 -0
  122. package/mobile/src/retail/validator/validators.ts +1 -1
  123. package/package.json +1 -1
  124. package/src/components/ApplicationForm/ApplicationForm.example.json +2 -3
  125. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +1 -2
  126. package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.tsx +15 -0
  127. package/src/components/CalculatorRko/CalculatorRko.tsx +4 -4
  128. package/src/components/DebitForm/DebitFormStatus.tsx +2 -2
  129. package/src/components/RkoTariffCardsTable/RkoTariffCard.tsx +1 -1
  130. package/src/components/RkoTariffCardsTable/RkoTariffCardsTable.tsx +5 -3
  131. package/src/components/RkoTariffCardsTable/constants.ts +1 -1
  132. package/src/retail/api/apiBaseUrl.ts +2 -1
  133. package/src/retail/api/doRequest.ts +13 -17
  134. package/src/retail/components/Fields/CodeWordField.tsx +24 -8
  135. package/src/retail/hooks/useLeadFormData.ts +4 -3
  136. package/src/retail/utils/getBaseUrl.ts +17 -0
  137. package/src/retail/validator/validators.ts +1 -1
@@ -3930,7 +3930,7 @@
3930
3930
 
3931
3931
  const ERROR_MESSAGE = 'Некорректно заполненное поле';
3932
3932
  const ADDRESS_ERROR_MESSAGE = 'Укажите регион, город/населенный пункт, улицу, дом';
3933
- const codeWordPattern = /^[0-9а-яё]*$/i;
3933
+ const codeWordPattern = /^[а-яёА-ЯЁ\d]+$/u;
3934
3934
  const retailCyrillicPattern = /^[\u0400-\u04FF-\s]+$/u;
3935
3935
  const retailNotCyrillicPattern = /^(?!\s*$)[^\p{Script=Cyrillic}]+$/u;
3936
3936
  const addressDaDataValidate = (address) => Boolean(address.region && (address.city || address.locality) && address.house);
@@ -4189,7 +4189,17 @@
4189
4189
  };
4190
4190
 
4191
4191
  const RETAIL_API_BASE_URI = '/light-api-cash/v1';
4192
- const NEW_RETAIL_API_BASE_URI = '/api/credit-application';
4192
+ const NEW_RETAIL_CREDIT_API_BASE_URI = '/api/credit-application';
4193
+ const NEW_RETAIL_CREDIT_CARD_API_BASE_URI = '/api/creditcard-application';
4194
+
4195
+ const getBaseUrl = () => {
4196
+ const isNewMicroservice = globalThis.sessionStorage?.getItem('isNewMicroservice');
4197
+ const productType = globalThis.localStorage?.getItem('productType');
4198
+ const newRetailApi = productType === '"credit"'
4199
+ ? NEW_RETAIL_CREDIT_API_BASE_URI
4200
+ : NEW_RETAIL_CREDIT_CARD_API_BASE_URI;
4201
+ return isNewMicroservice ? newRetailApi : RETAIL_API_BASE_URI;
4202
+ };
4193
4203
 
4194
4204
  const getTraceId = () => {
4195
4205
  const result = new Uint8Array(8);
@@ -4208,9 +4218,9 @@
4208
4218
  }
4209
4219
  };
4210
4220
  async function doRequest(url, method, body) {
4211
- const isNewMicroservice = checkNewMicroservice();
4221
+ const baseUrl = getBaseUrl();
4212
4222
  const traceId = getTraceId();
4213
- return globalThis?.fetch?.(`${isNewMicroservice ? NEW_RETAIL_API_BASE_URI : RETAIL_API_BASE_URI}${url}`, {
4223
+ return globalThis?.fetch?.(`${baseUrl}${url}`, {
4214
4224
  method,
4215
4225
  headers: {
4216
4226
  'Content-Type': 'application/json',
@@ -5115,7 +5125,8 @@
5115
5125
 
5116
5126
  const useLeadFormData = (typeField) => {
5117
5127
  const isNewMicroservice = checkNewMicroservice();
5118
- const { data, error } = useAsyncData(`${isNewMicroservice ? `${NEW_RETAIL_API_BASE_URI}/public-data` : RETAIL_API_BASE_URI}/dictionary?dictionaryType=${encodeURIComponent(typeField)}`, fetchData);
5128
+ const baseUrl = getBaseUrl();
5129
+ const { data, error } = useAsyncData(`${baseUrl}${isNewMicroservice ? `/public-data` : ''}/dictionary?dictionaryType=${encodeURIComponent(typeField)}`, fetchData);
5119
5130
  if (data && 'errorMessage' in data) {
5120
5131
  return { error };
5121
5132
  }
@@ -5279,7 +5290,66 @@
5279
5290
 
5280
5291
  const ChildrenField = JSX(({ field, input }) => (jsx(DaDataInputControl, { label: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u0435\u0442\u0435\u0439 \u0434\u043E 18 \u043B\u0435\u0442", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", isInteger: true, type: "number", ...field(input?.name ?? ''), ...input })));
5281
5292
 
5282
- const CodeWordField = JSX(({ field, input }) => (jsx(DaDataInputControl, { label: "\u041A\u043E\u0434\u043E\u0432\u043E\u0435 \u0441\u043B\u043E\u0432\u043E", maxLength: 20, ...field(input?.name ?? ''), ...input })));
5293
+ const autoLayoutKeyboard = (str) => {
5294
+ const replacer = {
5295
+ q: 'й',
5296
+ w: 'ц',
5297
+ e: 'у',
5298
+ r: 'к',
5299
+ t: 'е',
5300
+ y: 'н',
5301
+ u: 'г',
5302
+ i: 'ш',
5303
+ o: 'щ',
5304
+ p: 'з',
5305
+ '[': 'х',
5306
+ ']': 'ъ',
5307
+ a: 'ф',
5308
+ s: 'ы',
5309
+ d: 'в',
5310
+ f: 'а',
5311
+ g: 'п',
5312
+ h: 'р',
5313
+ j: 'о',
5314
+ k: 'л',
5315
+ l: 'д',
5316
+ ';': 'ж',
5317
+ "'": 'э',
5318
+ z: 'я',
5319
+ x: 'ч',
5320
+ c: 'с',
5321
+ v: 'м',
5322
+ b: 'и',
5323
+ n: 'т',
5324
+ m: 'ь',
5325
+ ',': 'б',
5326
+ '.': 'ю',
5327
+ '`': 'ё',
5328
+ '{': 'Х',
5329
+ '}': 'Ъ',
5330
+ ':': 'Ж',
5331
+ '~': 'Ё',
5332
+ '"': 'Э',
5333
+ '<': 'Б',
5334
+ '>': 'Ю',
5335
+ '\\': '\\',
5336
+ '^': '^',
5337
+ _: '_',
5338
+ };
5339
+ return str.replace(/[A-z,`~<.>;:\\'"[{\]}]/g, (x) => {
5340
+ return x === x.toLowerCase() ? replacer[x] : replacer[x.toLowerCase()].toUpperCase();
5341
+ });
5342
+ };
5343
+
5344
+ const CodeWordField = JSX(({ field, input }) => {
5345
+ const onChange = useCallback((value) => {
5346
+ const translatedValue = autoLayoutKeyboard(value);
5347
+ if (codeWordPattern.test(translatedValue) || translatedValue.length === 0) {
5348
+ field(input?.name ?? '')?.onChange?.(translatedValue);
5349
+ }
5350
+ }, [field, input]);
5351
+ return (jsx(DaDataInputControl, { label: "\u041A\u043E\u0434\u043E\u0432\u043E\u0435 \u0441\u043B\u043E\u0432\u043E", maxLength: 20, ...field(input?.name ?? ''), ...input, onChange: onChange }));
5352
+ });
5283
5353
 
5284
5354
  const ConfirmationIncomeField = JSX(({ field, input }) => {
5285
5355
  const { data: confirmationIncome } = useLeadFormData('INCOME_CERT_UNITED');
@@ -6188,57 +6258,6 @@
6188
6258
  ];
6189
6259
  const MethodObtainField = JSX(({ field, input }) => (jsx(RadioButtonGroupControl, { orientation: "horizontal", items: METHODS_OF_OBTAIN, ...field(input?.name ?? '') })));
6190
6260
 
6191
- const autoLayoutKeyboard = (str) => {
6192
- const replacer = {
6193
- q: 'й',
6194
- w: 'ц',
6195
- e: 'у',
6196
- r: 'к',
6197
- t: 'е',
6198
- y: 'н',
6199
- u: 'г',
6200
- i: 'ш',
6201
- o: 'щ',
6202
- p: 'з',
6203
- '[': 'х',
6204
- ']': 'ъ',
6205
- a: 'ф',
6206
- s: 'ы',
6207
- d: 'в',
6208
- f: 'а',
6209
- g: 'п',
6210
- h: 'р',
6211
- j: 'о',
6212
- k: 'л',
6213
- l: 'д',
6214
- ';': 'ж',
6215
- "'": 'э',
6216
- z: 'я',
6217
- x: 'ч',
6218
- c: 'с',
6219
- v: 'м',
6220
- b: 'и',
6221
- n: 'т',
6222
- m: 'ь',
6223
- ',': 'б',
6224
- '.': 'ю',
6225
- '`': 'ё',
6226
- '{': 'Х',
6227
- '}': 'Ъ',
6228
- ':': 'Ж',
6229
- '~': 'Ё',
6230
- '"': 'Э',
6231
- '<': 'Б',
6232
- '>': 'Ю',
6233
- '\\': '\\',
6234
- '^': '^',
6235
- _: '_',
6236
- };
6237
- return str.replace(/[A-z,`~<.>;:\\'"[{\]}]/g, (x) => {
6238
- return x === x.toLowerCase() ? replacer[x] : replacer[x.toLowerCase()].toUpperCase();
6239
- });
6240
- };
6241
-
6242
6261
  const MiddleNameField = JSX(({ field, input }) => {
6243
6262
  const onChange = useCallback((value) => {
6244
6263
  const translatedValue = autoLayoutKeyboard(value);
@@ -9206,7 +9225,7 @@
9206
9225
 
9207
9226
  const RKO_COMMISSIONS_TITLE_MAP = {
9208
9227
  tariffName: 'Название тарифа',
9209
- accountServiceFee: 'Обслуживание счета',
9228
+ accountServiceFee: 'Обслуживание счёта',
9210
9229
  transferLegalCountCommission: 'Переводы Юрлицам и ИП',
9211
9230
  flTransferSumCommission: 'Переводы физлицам',
9212
9231
  cashOutSumCommission: 'Снятие наличных',
@@ -9267,7 +9286,7 @@
9267
9286
  const commissions = RKO_COLUMNS_ORDER.map((key) => tariffData[key]);
9268
9287
  const isMobileMode = useMobileMode();
9269
9288
  const handleOpenDepositClick = () => globalThis?.sessionStorage.setItem('rkoTariffName', tariffName);
9270
- return (jsxs("div", { className: style(className, 'rounded-xl min-h-24 items-center min-w-0 lg:p-xl p-3xl', isBest
9289
+ return (jsxs("div", { className: style(className, 'rounded-xl min-h-24 items-center min-w-0 lg:p-xl p-3xl lg:mb-m mb-xl', isBest
9271
9290
  ? 'bg-primary-main text-white relative'
9272
9291
  : 'bg-white text-primary-text border border-solid border-gray'), children: [jsxs("div", { className: "col-span-2", children: [jsx(Heading, { headingType: isMobileMode ? 'h2' : 'h6', title: tariffName }), jsx(Text, { size: "text-xs", children: tariffDesc })] }), isMobileMode
9273
9292
  ? renderMobileCard({
@@ -9285,13 +9304,13 @@
9285
9304
  const isMobileMode = useMobileMode();
9286
9305
  const commissionTypes = getSortedCommissionTypes(items) ?? [];
9287
9306
  const columnsCount = commissionTypes.length + 4; // 2 на "Название тарифа" и 2 на кнопку
9288
- const tableLayoutStyle = `lg:grid lg:grid-cols-${String(columnsCount)} gap-m lg:px-xl px-3xl`;
9289
- return (jsxs("div", { className: "lg:space-y-m space-y-xl w-full", children: [isMobileMode
9307
+ const tableLayoutStyle = `lg:grid lg:grid-cols-${String(columnsCount)} gap-m lg:px-xl px-3xl order-first lg:mb-m mb-xl`;
9308
+ return (jsxs("div", { className: "w-full flex flex-col mt-s", children: [isMobileMode
9290
9309
  ? null
9291
9310
  : renderRkoTariffsTableHeader({
9292
9311
  params: commissionTypes,
9293
9312
  className: tableLayoutStyle,
9294
- }), items.map((item, index) => (jsx("div", { children: jsx(RkoTariffCard, { ...item, className: tableLayoutStyle, currency: currency, openDepositBtnLink: openDepositBtnLink, commissionTypes: commissionTypes }) }, index)))] }));
9313
+ }), items.map((item, index) => (jsx("div", { className: item?.isBest ? 'order-first' : '', children: jsx(RkoTariffCard, { ...item, className: tableLayoutStyle, currency: currency, openDepositBtnLink: openDepositBtnLink, commissionTypes: commissionTypes }) }, index)))] }));
9295
9314
  });
9296
9315
 
9297
9316
  const filterByClientType = (data, clientType) => {
@@ -9520,23 +9539,23 @@
9520
9539
  const result = markBestTariff(mergedTariffs);
9521
9540
  setTariffs(result);
9522
9541
  }, [userInputParams, calcTariffs]);
9523
- return (jsxs("div", { className: style(className, 'bg-white'), children: [jsx(CalculatorLayout, { className: className, title: title, ...rest, children: jsxs("section", { className: style(CalculatorStyle.wrapperMax, className), children: [jsxs("div", { className: CalculatorStyle.inputMax, children: [renderCountInput({
9524
- title: 'Количество внешних переводов на счета ЮЛ и ИП в месяц, шт',
9525
- step: 1,
9526
- min: calcParams.minTransferLegalCount,
9527
- max: calcParams.maxTransferLegalCount,
9528
- ...field('transferLegalCount'),
9529
- value: calcParams.transferLegalCount,
9530
- }), INPUTS_CONFIG.map((config, index) => (jsx("div", { children: renderWantedSumInput({
9531
- title: config.title,
9532
- step: config.step,
9533
- min: calcParams[`min${capitalize(config.key)}`],
9534
- max: calcParams[`max${capitalize(config.key)}`],
9535
- ...field(config.key),
9536
- value: calcParams[config.key],
9537
- }) }, index)))] }), jsx("div", { className: style(CalculatorStyle.result), children: renderFootnote(footnote) })] }) }), jsxs(BlockWrapper, { className: style('flex flex-col gap-4xl items-center', className), defaultPadding: "p-4xl pt-0", ...rest, children: [renderHeading$1(), tariffs ? (jsx(RkoTariffCardsTable, { items: tariffs, currency: RKO_DEFAULT_CURRENCY, openDepositBtnLink: openDepositBtnLink })) : (jsx(Loader, { position: "static" }))] })] }));
9538
- });
9539
- const renderHeading$1 = () => (jsx(Text, { size: "text-h6", font: "font-medium", align: "text-center", className: "block lg:mb-0 mb-m", children: "\u0420\u0430\u0441\u0447\u0435\u0442\u044B \u0437\u0430 \u043E\u0434\u0438\u043D \u043C\u0435\u0441\u044F\u0446 \u043F\u043E \u0432\u0432\u0435\u0434\u0435\u043D\u043D\u044B\u043C \u0432\u044B\u0448\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430\u043C" }));
9542
+ return (jsxs("div", { className: style(className, 'bg-white'), children: [jsx(CalculatorLayout, { className: className, title: title, ...rest, children: jsx("section", { className: style(CalculatorStyle.wrapperMax, className), children: jsxs("div", { className: CalculatorStyle.inputMax, children: [renderCountInput({
9543
+ title: 'Количество внешних переводов на счета ЮЛ и ИП в месяц, шт',
9544
+ step: 1,
9545
+ min: calcParams.minTransferLegalCount,
9546
+ max: calcParams.maxTransferLegalCount,
9547
+ ...field('transferLegalCount'),
9548
+ value: calcParams.transferLegalCount,
9549
+ }), INPUTS_CONFIG.map((config, index) => (jsx("div", { children: renderWantedSumInput({
9550
+ title: config.title,
9551
+ step: config.step,
9552
+ min: calcParams[`min${capitalize(config.key)}`],
9553
+ max: calcParams[`max${capitalize(config.key)}`],
9554
+ ...field(config.key),
9555
+ value: calcParams[config.key],
9556
+ }) }, index)))] }) }) }), jsxs(BlockWrapper, { className: style('flex flex-col items-center', className), defaultPadding: "p-4xl pt-0", ...rest, children: [renderHeading$1(), tariffs ? (jsx(RkoTariffCardsTable, { items: tariffs, currency: RKO_DEFAULT_CURRENCY, openDepositBtnLink: openDepositBtnLink })) : (jsx(Loader, { position: "static" })), jsx("div", { className: style(CalculatorStyle.result), children: renderFootnote(footnote) })] })] }));
9557
+ });
9558
+ const renderHeading$1 = () => (jsx(Text, { size: "text-h6", font: "font-medium", align: "text-center", className: "block lg:mb-xl mb-m", children: "\u0420\u0430\u0441\u0447\u0451\u0442\u044B \u0437\u0430 \u043E\u0434\u0438\u043D \u043C\u0435\u0441\u044F\u0446 \u043F\u043E \u0432\u0432\u0435\u0434\u0435\u043D\u043D\u044B\u043C \u0432\u044B\u0448\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430\u043C" }));
9540
9559
 
9541
9560
  const NumberInput = JSX((props) => {
9542
9561
  const { onChange, min, max, defaultValue = '0', fractionDigits = 0, ...inputProps } = props;
@@ -11614,9 +11633,9 @@
11614
11633
  return (jsxs("div", { className: "py-lg px-5xl bg-white col-span-12", children: [stepsTitles[step] || null, jsx(ProgressBar, { step: progress, showPercentage: false })] }));
11615
11634
  });
11616
11635
 
11617
- const INTERNET_BANK_LINK = 'https://online.rshb.ru/ib6/wf2/retail/ib/loginretaildefault';
11636
+ const INTERNET_BANK_LINK = 'https://online.rshb.ru/d?l=dcNqSvOE';
11618
11637
  const DebitFormStatus = JSX(({ title, description: dsc, sectionInfo, buttonText, isDboClient, ...props }) => {
11619
- return (jsxs(BlockWrapper, { ...props, children: [jsx("div", { className: "flex flex-col md:flex-row items-center", children: jsx(Headline, { headlineVersion: "M", title: title, description: dsc, align: "text-left", padding: "p-xl", className: "w-full" }) }), jsx(SectionInfo, { items: sectionInfo }), buttonText ? (jsx(LinkButton, { href: "/natural", text: buttonText, version: "primary", className: "w-full mt-lg" })) : null, isDboClient ? (jsxs("div", { className: "flex flex-col md:flex-row md:gap-lg", children: [jsx(LinkButton, { href: "/natural/debetcards", text: "\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E", version: "primary", className: "w-full mt-lg" }), jsx(LinkButton, { href: INTERNET_BANK_LINK, text: "\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u0438\u043D\u0442\u0435\u0440\u043D\u0435\u0442 \u0431\u0430\u043D\u043A", version: "primary", className: "w-full mt-lg" })] })) : null] }));
11638
+ return (jsxs(BlockWrapper, { ...props, children: [jsx("div", { className: "flex flex-col md:flex-row items-center", children: jsx(Headline, { headlineVersion: "M", title: title, description: dsc, align: "text-left", padding: "p-xl", className: "w-full" }) }), jsx(SectionInfo, { items: sectionInfo }), buttonText ? (jsx(LinkButton, { href: "/natural", text: buttonText, version: "primary", className: "w-full mt-lg" })) : null, isDboClient ? (jsxs("div", { className: "flex flex-col md:flex-row md:gap-lg", children: [jsx(LinkButton, { href: "/natural/debetcards", text: "\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E", version: "primary", className: "w-full mt-lg" }), jsx(LinkButton, { href: INTERNET_BANK_LINK, text: "\u0412\u044B\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0432 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0438", version: "primary", className: "w-full mt-lg" })] })) : null] }));
11620
11639
  });
11621
11640
  const SectionInfo = ({ title, items, }) => {
11622
11641
  if (!items) {
@@ -13926,7 +13945,7 @@
13926
13945
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
13927
13946
  });
13928
13947
 
13929
- const packageVersion = "0.14.1005";
13948
+ const packageVersion = "0.14.1010";
13930
13949
 
13931
13950
  exports.Blocks = Blocks;
13932
13951
  exports.ContentPage = ContentPage;