@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.
- package/bundle/bundle.umd.js +101 -82
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/retail/api/apiBaseUrl.d.ts +2 -1
- package/bundle/retail/utils/getBaseUrl.d.ts +1 -0
- package/bundle/retail/validator/validators.d.ts +1 -0
- package/dist/components/CalculatorRko/CalculatorRko.js +16 -16
- package/dist/components/CalculatorRko/CalculatorRko.js.map +1 -1
- package/dist/components/DebitForm/DebitFormStatus.js +2 -2
- package/dist/components/DebitForm/DebitFormStatus.js.map +1 -1
- package/dist/components/RkoTariffCardsTable/RkoTariffCard.js +1 -1
- package/dist/components/RkoTariffCardsTable/RkoTariffCard.js.map +1 -1
- package/dist/components/RkoTariffCardsTable/RkoTariffCardsTable.js +3 -3
- package/dist/components/RkoTariffCardsTable/RkoTariffCardsTable.js.map +1 -1
- package/dist/components/RkoTariffCardsTable/constants.js +1 -1
- package/dist/retail/api/apiBaseUrl.d.ts +2 -1
- package/dist/retail/api/apiBaseUrl.js +3 -2
- package/dist/retail/api/apiBaseUrl.js.map +1 -1
- package/dist/retail/api/doRequest.js +3 -4
- package/dist/retail/api/doRequest.js.map +1 -1
- package/dist/retail/components/Fields/CodeWordField.js +12 -1
- package/dist/retail/components/Fields/CodeWordField.js.map +1 -1
- package/dist/retail/hooks/useLeadFormData.js +3 -2
- package/dist/retail/hooks/useLeadFormData.js.map +1 -1
- package/dist/retail/utils/getBaseUrl.d.ts +1 -0
- package/dist/retail/utils/getBaseUrl.js +13 -0
- package/dist/retail/utils/getBaseUrl.js.map +1 -0
- package/dist/retail/validator/validators.d.ts +1 -0
- package/dist/retail/validator/validators.js +3 -3
- package/dist/retail/validator/validators.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.fixture.d.ts +1 -0
- package/lib/components/CalculatorRko/CalculatorRko.js +16 -16
- package/lib/components/CalculatorRko/CalculatorRko.js.map +1 -1
- package/lib/components/DebitForm/DebitFormStatus.js +2 -2
- package/lib/components/DebitForm/DebitFormStatus.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
- package/lib/components/RkoTariffCardsTable/RkoTariffCard.js +1 -1
- package/lib/components/RkoTariffCardsTable/RkoTariffCard.js.map +1 -1
- package/lib/components/RkoTariffCardsTable/RkoTariffCardsTable.js +3 -3
- package/lib/components/RkoTariffCardsTable/RkoTariffCardsTable.js.map +1 -1
- package/lib/components/RkoTariffCardsTable/constants.js +1 -1
- package/lib/retail/api/apiBaseUrl.d.ts +2 -1
- package/lib/retail/api/apiBaseUrl.js +2 -1
- package/lib/retail/api/apiBaseUrl.js.map +1 -1
- package/lib/retail/api/doRequest.js +3 -4
- package/lib/retail/api/doRequest.js.map +1 -1
- package/lib/retail/components/Fields/CodeWordField.js +12 -1
- package/lib/retail/components/Fields/CodeWordField.js.map +1 -1
- package/lib/retail/hooks/useLeadFormData.js +3 -2
- package/lib/retail/hooks/useLeadFormData.js.map +1 -1
- package/lib/retail/utils/getBaseUrl.d.ts +1 -0
- package/lib/retail/utils/getBaseUrl.js +10 -0
- package/lib/retail/utils/getBaseUrl.js.map +1 -0
- package/lib/retail/validator/validators.d.ts +1 -0
- package/lib/retail/validator/validators.js +1 -1
- package/lib/retail/validator/validators.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +101 -82
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/retail/api/apiBaseUrl.d.ts +2 -1
- package/mobile/bundle/retail/utils/getBaseUrl.d.ts +1 -0
- package/mobile/bundle/retail/validator/validators.d.ts +1 -0
- package/mobile/dist/components/CalculatorRko/CalculatorRko.js +16 -16
- package/mobile/dist/components/CalculatorRko/CalculatorRko.js.map +1 -1
- package/mobile/dist/components/DebitForm/DebitFormStatus.js +2 -2
- package/mobile/dist/components/DebitForm/DebitFormStatus.js.map +1 -1
- package/mobile/dist/components/RkoTariffCardsTable/RkoTariffCard.js +1 -1
- package/mobile/dist/components/RkoTariffCardsTable/RkoTariffCard.js.map +1 -1
- package/mobile/dist/components/RkoTariffCardsTable/RkoTariffCardsTable.js +3 -3
- package/mobile/dist/components/RkoTariffCardsTable/RkoTariffCardsTable.js.map +1 -1
- package/mobile/dist/components/RkoTariffCardsTable/constants.js +1 -1
- package/mobile/dist/retail/api/apiBaseUrl.d.ts +2 -1
- package/mobile/dist/retail/api/apiBaseUrl.js +3 -2
- package/mobile/dist/retail/api/apiBaseUrl.js.map +1 -1
- package/mobile/dist/retail/api/doRequest.js +3 -4
- package/mobile/dist/retail/api/doRequest.js.map +1 -1
- package/mobile/dist/retail/components/Fields/CodeWordField.js +12 -1
- package/mobile/dist/retail/components/Fields/CodeWordField.js.map +1 -1
- package/mobile/dist/retail/hooks/useLeadFormData.js +3 -2
- package/mobile/dist/retail/hooks/useLeadFormData.js.map +1 -1
- package/mobile/dist/retail/utils/getBaseUrl.d.ts +1 -0
- package/mobile/dist/retail/utils/getBaseUrl.js +13 -0
- package/mobile/dist/retail/utils/getBaseUrl.js.map +1 -0
- package/mobile/dist/retail/validator/validators.d.ts +1 -0
- package/mobile/dist/retail/validator/validators.js +3 -3
- package/mobile/dist/retail/validator/validators.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/CalculatorRko/CalculatorRko.js +16 -16
- package/mobile/lib/components/CalculatorRko/CalculatorRko.js.map +1 -1
- package/mobile/lib/components/DebitForm/DebitFormStatus.js +2 -2
- package/mobile/lib/components/DebitForm/DebitFormStatus.js.map +1 -1
- package/mobile/lib/components/RkoTariffCardsTable/RkoTariffCard.js +1 -1
- package/mobile/lib/components/RkoTariffCardsTable/RkoTariffCard.js.map +1 -1
- package/mobile/lib/components/RkoTariffCardsTable/RkoTariffCardsTable.js +3 -3
- package/mobile/lib/components/RkoTariffCardsTable/RkoTariffCardsTable.js.map +1 -1
- package/mobile/lib/components/RkoTariffCardsTable/constants.js +1 -1
- package/mobile/lib/retail/api/apiBaseUrl.d.ts +2 -1
- package/mobile/lib/retail/api/apiBaseUrl.js +2 -1
- package/mobile/lib/retail/api/apiBaseUrl.js.map +1 -1
- package/mobile/lib/retail/api/doRequest.js +3 -4
- package/mobile/lib/retail/api/doRequest.js.map +1 -1
- package/mobile/lib/retail/components/Fields/CodeWordField.js +12 -1
- package/mobile/lib/retail/components/Fields/CodeWordField.js.map +1 -1
- package/mobile/lib/retail/hooks/useLeadFormData.js +3 -2
- package/mobile/lib/retail/hooks/useLeadFormData.js.map +1 -1
- package/mobile/lib/retail/utils/getBaseUrl.d.ts +1 -0
- package/mobile/lib/retail/utils/getBaseUrl.js +10 -0
- package/mobile/lib/retail/utils/getBaseUrl.js.map +1 -0
- package/mobile/lib/retail/validator/validators.d.ts +1 -0
- package/mobile/lib/retail/validator/validators.js +1 -1
- package/mobile/lib/retail/validator/validators.js.map +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +2 -3
- package/mobile/src/components/CalculatorRko/CalculatorRko.tsx +4 -4
- package/mobile/src/components/DebitForm/DebitFormStatus.tsx +2 -2
- package/mobile/src/components/RkoTariffCardsTable/RkoTariffCard.tsx +1 -1
- package/mobile/src/components/RkoTariffCardsTable/RkoTariffCardsTable.tsx +5 -3
- package/mobile/src/components/RkoTariffCardsTable/constants.ts +1 -1
- package/mobile/src/retail/api/apiBaseUrl.ts +2 -1
- package/mobile/src/retail/api/doRequest.ts +13 -17
- package/mobile/src/retail/components/Fields/CodeWordField.tsx +24 -8
- package/mobile/src/retail/hooks/useLeadFormData.ts +4 -3
- package/mobile/src/retail/utils/getBaseUrl.ts +17 -0
- package/mobile/src/retail/validator/validators.ts +1 -1
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationForm.example.json +2 -3
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +1 -2
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.tsx +15 -0
- package/src/components/CalculatorRko/CalculatorRko.tsx +4 -4
- package/src/components/DebitForm/DebitFormStatus.tsx +2 -2
- package/src/components/RkoTariffCardsTable/RkoTariffCard.tsx +1 -1
- package/src/components/RkoTariffCardsTable/RkoTariffCardsTable.tsx +5 -3
- package/src/components/RkoTariffCardsTable/constants.ts +1 -1
- package/src/retail/api/apiBaseUrl.ts +2 -1
- package/src/retail/api/doRequest.ts +13 -17
- package/src/retail/components/Fields/CodeWordField.tsx +24 -8
- package/src/retail/hooks/useLeadFormData.ts +4 -3
- package/src/retail/utils/getBaseUrl.ts +17 -0
- package/src/retail/validator/validators.ts +1 -1
package/bundle/bundle.umd.js
CHANGED
|
@@ -3922,7 +3922,7 @@
|
|
|
3922
3922
|
|
|
3923
3923
|
const ERROR_MESSAGE = 'Некорректно заполненное поле';
|
|
3924
3924
|
const ADDRESS_ERROR_MESSAGE = 'Укажите регион, город/населенный пункт, улицу, дом';
|
|
3925
|
-
const codeWordPattern = /^[
|
|
3925
|
+
const codeWordPattern = /^[а-яёА-ЯЁ\d]+$/u;
|
|
3926
3926
|
const retailCyrillicPattern = /^[\u0400-\u04FF-\s]+$/u;
|
|
3927
3927
|
const retailNotCyrillicPattern = /^(?!\s*$)[^\p{Script=Cyrillic}]+$/u;
|
|
3928
3928
|
const addressDaDataValidate = (address) => Boolean(address.region && (address.city || address.locality) && address.house);
|
|
@@ -4181,7 +4181,17 @@
|
|
|
4181
4181
|
};
|
|
4182
4182
|
|
|
4183
4183
|
const RETAIL_API_BASE_URI = '/light-api-cash/v1';
|
|
4184
|
-
const
|
|
4184
|
+
const NEW_RETAIL_CREDIT_API_BASE_URI = '/api/credit-application';
|
|
4185
|
+
const NEW_RETAIL_CREDIT_CARD_API_BASE_URI = '/api/creditcard-application';
|
|
4186
|
+
|
|
4187
|
+
const getBaseUrl = () => {
|
|
4188
|
+
const isNewMicroservice = globalThis.sessionStorage?.getItem('isNewMicroservice');
|
|
4189
|
+
const productType = globalThis.localStorage?.getItem('productType');
|
|
4190
|
+
const newRetailApi = productType === '"credit"'
|
|
4191
|
+
? NEW_RETAIL_CREDIT_API_BASE_URI
|
|
4192
|
+
: NEW_RETAIL_CREDIT_CARD_API_BASE_URI;
|
|
4193
|
+
return isNewMicroservice ? newRetailApi : RETAIL_API_BASE_URI;
|
|
4194
|
+
};
|
|
4185
4195
|
|
|
4186
4196
|
const getTraceId = () => {
|
|
4187
4197
|
const result = new Uint8Array(8);
|
|
@@ -4200,9 +4210,9 @@
|
|
|
4200
4210
|
}
|
|
4201
4211
|
};
|
|
4202
4212
|
async function doRequest(url, method, body) {
|
|
4203
|
-
const
|
|
4213
|
+
const baseUrl = getBaseUrl();
|
|
4204
4214
|
const traceId = getTraceId();
|
|
4205
|
-
return globalThis?.fetch?.(`${
|
|
4215
|
+
return globalThis?.fetch?.(`${baseUrl}${url}`, {
|
|
4206
4216
|
method,
|
|
4207
4217
|
headers: {
|
|
4208
4218
|
'Content-Type': 'application/json',
|
|
@@ -5107,7 +5117,8 @@
|
|
|
5107
5117
|
|
|
5108
5118
|
const useLeadFormData = (typeField) => {
|
|
5109
5119
|
const isNewMicroservice = checkNewMicroservice();
|
|
5110
|
-
const
|
|
5120
|
+
const baseUrl = getBaseUrl();
|
|
5121
|
+
const { data, error } = useAsyncData(`${baseUrl}${isNewMicroservice ? `/public-data` : ''}/dictionary?dictionaryType=${encodeURIComponent(typeField)}`, fetchData);
|
|
5111
5122
|
if (data && 'errorMessage' in data) {
|
|
5112
5123
|
return { error };
|
|
5113
5124
|
}
|
|
@@ -5271,7 +5282,66 @@
|
|
|
5271
5282
|
|
|
5272
5283
|
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 })));
|
|
5273
5284
|
|
|
5274
|
-
const
|
|
5285
|
+
const autoLayoutKeyboard = (str) => {
|
|
5286
|
+
const replacer = {
|
|
5287
|
+
q: 'й',
|
|
5288
|
+
w: 'ц',
|
|
5289
|
+
e: 'у',
|
|
5290
|
+
r: 'к',
|
|
5291
|
+
t: 'е',
|
|
5292
|
+
y: 'н',
|
|
5293
|
+
u: 'г',
|
|
5294
|
+
i: 'ш',
|
|
5295
|
+
o: 'щ',
|
|
5296
|
+
p: 'з',
|
|
5297
|
+
'[': 'х',
|
|
5298
|
+
']': 'ъ',
|
|
5299
|
+
a: 'ф',
|
|
5300
|
+
s: 'ы',
|
|
5301
|
+
d: 'в',
|
|
5302
|
+
f: 'а',
|
|
5303
|
+
g: 'п',
|
|
5304
|
+
h: 'р',
|
|
5305
|
+
j: 'о',
|
|
5306
|
+
k: 'л',
|
|
5307
|
+
l: 'д',
|
|
5308
|
+
';': 'ж',
|
|
5309
|
+
"'": 'э',
|
|
5310
|
+
z: 'я',
|
|
5311
|
+
x: 'ч',
|
|
5312
|
+
c: 'с',
|
|
5313
|
+
v: 'м',
|
|
5314
|
+
b: 'и',
|
|
5315
|
+
n: 'т',
|
|
5316
|
+
m: 'ь',
|
|
5317
|
+
',': 'б',
|
|
5318
|
+
'.': 'ю',
|
|
5319
|
+
'`': 'ё',
|
|
5320
|
+
'{': 'Х',
|
|
5321
|
+
'}': 'Ъ',
|
|
5322
|
+
':': 'Ж',
|
|
5323
|
+
'~': 'Ё',
|
|
5324
|
+
'"': 'Э',
|
|
5325
|
+
'<': 'Б',
|
|
5326
|
+
'>': 'Ю',
|
|
5327
|
+
'\\': '\\',
|
|
5328
|
+
'^': '^',
|
|
5329
|
+
_: '_',
|
|
5330
|
+
};
|
|
5331
|
+
return str.replace(/[A-z,`~<.>;:\\'"[{\]}]/g, (x) => {
|
|
5332
|
+
return x === x.toLowerCase() ? replacer[x] : replacer[x.toLowerCase()].toUpperCase();
|
|
5333
|
+
});
|
|
5334
|
+
};
|
|
5335
|
+
|
|
5336
|
+
const CodeWordField = JSX(({ field, input }) => {
|
|
5337
|
+
const onChange = useCallback((value) => {
|
|
5338
|
+
const translatedValue = autoLayoutKeyboard(value);
|
|
5339
|
+
if (codeWordPattern.test(translatedValue) || translatedValue.length === 0) {
|
|
5340
|
+
field(input?.name ?? '')?.onChange?.(translatedValue);
|
|
5341
|
+
}
|
|
5342
|
+
}, [field, input]);
|
|
5343
|
+
return (jsx(DaDataInputControl, { label: "\u041A\u043E\u0434\u043E\u0432\u043E\u0435 \u0441\u043B\u043E\u0432\u043E", maxLength: 20, ...field(input?.name ?? ''), ...input, onChange: onChange }));
|
|
5344
|
+
});
|
|
5275
5345
|
|
|
5276
5346
|
const ConfirmationIncomeField = JSX(({ field, input }) => {
|
|
5277
5347
|
const { data: confirmationIncome } = useLeadFormData('INCOME_CERT_UNITED');
|
|
@@ -6180,57 +6250,6 @@
|
|
|
6180
6250
|
];
|
|
6181
6251
|
const MethodObtainField = JSX(({ field, input }) => (jsx(RadioButtonGroupControl, { orientation: "horizontal", items: METHODS_OF_OBTAIN, ...field(input?.name ?? '') })));
|
|
6182
6252
|
|
|
6183
|
-
const autoLayoutKeyboard = (str) => {
|
|
6184
|
-
const replacer = {
|
|
6185
|
-
q: 'й',
|
|
6186
|
-
w: 'ц',
|
|
6187
|
-
e: 'у',
|
|
6188
|
-
r: 'к',
|
|
6189
|
-
t: 'е',
|
|
6190
|
-
y: 'н',
|
|
6191
|
-
u: 'г',
|
|
6192
|
-
i: 'ш',
|
|
6193
|
-
o: 'щ',
|
|
6194
|
-
p: 'з',
|
|
6195
|
-
'[': 'х',
|
|
6196
|
-
']': 'ъ',
|
|
6197
|
-
a: 'ф',
|
|
6198
|
-
s: 'ы',
|
|
6199
|
-
d: 'в',
|
|
6200
|
-
f: 'а',
|
|
6201
|
-
g: 'п',
|
|
6202
|
-
h: 'р',
|
|
6203
|
-
j: 'о',
|
|
6204
|
-
k: 'л',
|
|
6205
|
-
l: 'д',
|
|
6206
|
-
';': 'ж',
|
|
6207
|
-
"'": 'э',
|
|
6208
|
-
z: 'я',
|
|
6209
|
-
x: 'ч',
|
|
6210
|
-
c: 'с',
|
|
6211
|
-
v: 'м',
|
|
6212
|
-
b: 'и',
|
|
6213
|
-
n: 'т',
|
|
6214
|
-
m: 'ь',
|
|
6215
|
-
',': 'б',
|
|
6216
|
-
'.': 'ю',
|
|
6217
|
-
'`': 'ё',
|
|
6218
|
-
'{': 'Х',
|
|
6219
|
-
'}': 'Ъ',
|
|
6220
|
-
':': 'Ж',
|
|
6221
|
-
'~': 'Ё',
|
|
6222
|
-
'"': 'Э',
|
|
6223
|
-
'<': 'Б',
|
|
6224
|
-
'>': 'Ю',
|
|
6225
|
-
'\\': '\\',
|
|
6226
|
-
'^': '^',
|
|
6227
|
-
_: '_',
|
|
6228
|
-
};
|
|
6229
|
-
return str.replace(/[A-z,`~<.>;:\\'"[{\]}]/g, (x) => {
|
|
6230
|
-
return x === x.toLowerCase() ? replacer[x] : replacer[x.toLowerCase()].toUpperCase();
|
|
6231
|
-
});
|
|
6232
|
-
};
|
|
6233
|
-
|
|
6234
6253
|
const MiddleNameField = JSX(({ field, input }) => {
|
|
6235
6254
|
const onChange = useCallback((value) => {
|
|
6236
6255
|
const translatedValue = autoLayoutKeyboard(value);
|
|
@@ -9210,7 +9229,7 @@
|
|
|
9210
9229
|
|
|
9211
9230
|
const RKO_COMMISSIONS_TITLE_MAP = {
|
|
9212
9231
|
tariffName: 'Название тарифа',
|
|
9213
|
-
accountServiceFee: 'Обслуживание
|
|
9232
|
+
accountServiceFee: 'Обслуживание счёта',
|
|
9214
9233
|
transferLegalCountCommission: 'Переводы Юрлицам и ИП',
|
|
9215
9234
|
flTransferSumCommission: 'Переводы физлицам',
|
|
9216
9235
|
cashOutSumCommission: 'Снятие наличных',
|
|
@@ -9271,7 +9290,7 @@
|
|
|
9271
9290
|
const commissions = RKO_COLUMNS_ORDER.map((key) => tariffData[key]);
|
|
9272
9291
|
const isMobileMode = useMobileMode();
|
|
9273
9292
|
const handleOpenDepositClick = () => globalThis?.sessionStorage.setItem('rkoTariffName', tariffName);
|
|
9274
|
-
return (jsxs("div", { className: style(className, 'rounded-xl min-h-24 items-center min-w-0 lg:p-xl p-3xl', isBest
|
|
9293
|
+
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
|
|
9275
9294
|
? 'bg-primary-main text-white relative'
|
|
9276
9295
|
: '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
|
|
9277
9296
|
? renderMobileCard({
|
|
@@ -9289,13 +9308,13 @@
|
|
|
9289
9308
|
const isMobileMode = useMobileMode();
|
|
9290
9309
|
const commissionTypes = getSortedCommissionTypes(items) ?? [];
|
|
9291
9310
|
const columnsCount = commissionTypes.length + 4; // 2 на "Название тарифа" и 2 на кнопку
|
|
9292
|
-
const tableLayoutStyle = `lg:grid lg:grid-cols-${String(columnsCount)} gap-m lg:px-xl px-3xl`;
|
|
9293
|
-
return (jsxs("div", { className: "
|
|
9311
|
+
const tableLayoutStyle = `lg:grid lg:grid-cols-${String(columnsCount)} gap-m lg:px-xl px-3xl order-first lg:mb-m mb-xl`;
|
|
9312
|
+
return (jsxs("div", { className: "w-full flex flex-col mt-s", children: [isMobileMode
|
|
9294
9313
|
? null
|
|
9295
9314
|
: renderRkoTariffsTableHeader({
|
|
9296
9315
|
params: commissionTypes,
|
|
9297
9316
|
className: tableLayoutStyle,
|
|
9298
|
-
}), items.map((item, index) => (jsx("div", { children: jsx(RkoTariffCard, { ...item, className: tableLayoutStyle, currency: currency, openDepositBtnLink: openDepositBtnLink, commissionTypes: commissionTypes }) }, index)))] }));
|
|
9317
|
+
}), items.map((item, index) => (jsx("div", { className: item?.isBest ? 'order-first' : '', children: jsx(RkoTariffCard, { ...item, className: tableLayoutStyle, currency: currency, openDepositBtnLink: openDepositBtnLink, commissionTypes: commissionTypes }) }, index)))] }));
|
|
9299
9318
|
});
|
|
9300
9319
|
|
|
9301
9320
|
const filterByClientType = (data, clientType) => {
|
|
@@ -9524,23 +9543,23 @@
|
|
|
9524
9543
|
const result = markBestTariff(mergedTariffs);
|
|
9525
9544
|
setTariffs(result);
|
|
9526
9545
|
}, [userInputParams, calcTariffs]);
|
|
9527
|
-
return (jsxs("div", { className: style(className, 'bg-white'), children: [jsx(CalculatorLayout, { className: className, title: title, ...rest, children:
|
|
9528
|
-
|
|
9529
|
-
|
|
9530
|
-
|
|
9531
|
-
|
|
9532
|
-
|
|
9533
|
-
|
|
9534
|
-
|
|
9535
|
-
|
|
9536
|
-
|
|
9537
|
-
|
|
9538
|
-
|
|
9539
|
-
|
|
9540
|
-
|
|
9541
|
-
|
|
9542
|
-
});
|
|
9543
|
-
const renderHeading$1 = () => (jsx(Text, { size: "text-h6", font: "font-medium", align: "text-center", className: "block lg:mb-
|
|
9546
|
+
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({
|
|
9547
|
+
title: 'Количество внешних переводов на счета ЮЛ и ИП в месяц, шт',
|
|
9548
|
+
step: 1,
|
|
9549
|
+
min: calcParams.minTransferLegalCount,
|
|
9550
|
+
max: calcParams.maxTransferLegalCount,
|
|
9551
|
+
...field('transferLegalCount'),
|
|
9552
|
+
value: calcParams.transferLegalCount,
|
|
9553
|
+
}), INPUTS_CONFIG.map((config, index) => (jsx("div", { children: renderWantedSumInput({
|
|
9554
|
+
title: config.title,
|
|
9555
|
+
step: config.step,
|
|
9556
|
+
min: calcParams[`min${capitalize(config.key)}`],
|
|
9557
|
+
max: calcParams[`max${capitalize(config.key)}`],
|
|
9558
|
+
...field(config.key),
|
|
9559
|
+
value: calcParams[config.key],
|
|
9560
|
+
}) }, 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) })] })] }));
|
|
9561
|
+
});
|
|
9562
|
+
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" }));
|
|
9544
9563
|
|
|
9545
9564
|
const NumberInput = JSX((props) => {
|
|
9546
9565
|
const { onChange, min, max, defaultValue = '0', fractionDigits = 0, ...inputProps } = props;
|
|
@@ -11622,9 +11641,9 @@
|
|
|
11622
11641
|
return (jsxs("div", { className: "py-lg px-5xl bg-white col-span-12", children: [stepsTitles[step] || null, jsx(ProgressBar, { step: progress, showPercentage: false })] }));
|
|
11623
11642
|
});
|
|
11624
11643
|
|
|
11625
|
-
const INTERNET_BANK_LINK = 'https://online.rshb.ru/
|
|
11644
|
+
const INTERNET_BANK_LINK = 'https://online.rshb.ru/d?l=dcNqSvOE';
|
|
11626
11645
|
const DebitFormStatus = JSX(({ title, description: dsc, sectionInfo, buttonText, isDboClient, ...props }) => {
|
|
11627
|
-
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: "\
|
|
11646
|
+
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] }));
|
|
11628
11647
|
});
|
|
11629
11648
|
const SectionInfo = ({ title, items, }) => {
|
|
11630
11649
|
if (!items) {
|
|
@@ -14144,7 +14163,7 @@
|
|
|
14144
14163
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
14145
14164
|
});
|
|
14146
14165
|
|
|
14147
|
-
const packageVersion = "0.14.
|
|
14166
|
+
const packageVersion = "0.14.1010";
|
|
14148
14167
|
|
|
14149
14168
|
exports.Blocks = Blocks;
|
|
14150
14169
|
exports.ContentPage = ContentPage;
|