@redneckz/wildless-cms-uni-blocks 0.14.174 → 0.14.176
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/bin/migration-scripts/0.14.169.js +1 -1
- package/bin/migration-scripts/0.14.175.js +28 -0
- package/bundle/bundle.umd.js +3 -6
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/ApplicationForm/renderAgreementWithSubmit.js +1 -1
- package/dist/components/ApplicationForm/renderAgreementWithSubmit.js.map +1 -1
- package/dist/components/Calculator/getBonus.js +1 -4
- package/dist/components/Calculator/getBonus.js.map +1 -1
- package/lib/components/ApplicationForm/renderAgreementWithSubmit.js +1 -1
- package/lib/components/ApplicationForm/renderAgreementWithSubmit.js.map +1 -1
- package/lib/components/Calculator/getBonus.js +1 -4
- package/lib/components/Calculator/getBonus.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +3 -6
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderAgreementWithSubmit.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderAgreementWithSubmit.js.map +1 -1
- package/mobile/dist/components/Calculator/getBonus.js +1 -4
- package/mobile/dist/components/Calculator/getBonus.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderAgreementWithSubmit.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderAgreementWithSubmit.js.map +1 -1
- package/mobile/lib/components/Calculator/getBonus.js +1 -4
- package/mobile/lib/components/Calculator/getBonus.js.map +1 -1
- package/mobile/src/components/ApplicationForm/renderAgreementWithSubmit.tsx +1 -1
- package/mobile/src/components/Calculator/getBonus.ts +0 -6
- package/package.json +1 -1
- package/src/components/ApplicationForm/renderAgreementWithSubmit.tsx +1 -1
- package/src/components/Calculator/getBonus.ts +0 -6
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { traversePageBlocks } from '../utils.js';
|
|
2
|
+
|
|
3
|
+
export const description = 'v0.14.175';
|
|
4
|
+
|
|
5
|
+
export default traversePageBlocks(adjustApplicationFormBlock, adjustApplicationCustomFormBlock);
|
|
6
|
+
|
|
7
|
+
function adjustApplicationFormBlock(block) {
|
|
8
|
+
const content = block?.content;
|
|
9
|
+
const link = block?.content?.formBlock?.link;
|
|
10
|
+
if (content && block.type === 'ApplicationForm' && link?.text === 'условиями передачи данных') {
|
|
11
|
+
link.text = `Согласен с ${link.text}`;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function adjustApplicationCustomFormBlock(block) {
|
|
16
|
+
const content = block?.content;
|
|
17
|
+
if (
|
|
18
|
+
!content ||
|
|
19
|
+
block.type !== 'ApplicationFormCorruption' ||
|
|
20
|
+
block.type !== 'ApplicationFormAntiFraud'
|
|
21
|
+
) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
const link = block?.content?.link;
|
|
25
|
+
if (link?.text?.indexOf('Согласен с') === -1) {
|
|
26
|
+
link.text = `Согласен с ${link.text}`;
|
|
27
|
+
}
|
|
28
|
+
}
|
package/bundle/bundle.umd.js
CHANGED
|
@@ -1513,7 +1513,7 @@
|
|
|
1513
1513
|
});
|
|
1514
1514
|
const checkboxStyle = (value) => style('rounded border', value ? 'bg-primary-main' : '');
|
|
1515
1515
|
|
|
1516
|
-
const renderAgreementWithSubmit = (consentDataProcessing, link, button) => (jsxs("div", { className: "flex col-span-2 gap-m flex-col lg:flex-row w-full justify-between items-baseline", children: [jsxs("div", { children: [jsxs("div", { className: "flex gap-3", children: [jsx(Checkbox, { ...consentDataProcessing }), jsx(Footnote, {
|
|
1516
|
+
const renderAgreementWithSubmit = (consentDataProcessing, link, button) => (jsxs("div", { className: "flex col-span-2 gap-m flex-col lg:flex-row w-full justify-between items-baseline", children: [jsxs("div", { children: [jsxs("div", { className: "flex gap-3", children: [jsx(Checkbox, { ...consentDataProcessing }), jsx(Footnote, { link: link })] }), renderErrorText(withValidator(consentDataProcessing, checkboxValidator).error)] }), renderSubmitButton(button)] }));
|
|
1517
1517
|
|
|
1518
1518
|
const formatDate = (date, toTimeStamp = false) => {
|
|
1519
1519
|
if (typeof date === 'string') {
|
|
@@ -2203,10 +2203,7 @@
|
|
|
2203
2203
|
}
|
|
2204
2204
|
|
|
2205
2205
|
const getBonus = (params, bonusTravelValue, bonusOtherValue) => {
|
|
2206
|
-
const {
|
|
2207
|
-
if (bonusTravelValue === minSumTravel && bonusOtherValue === minSumOther) {
|
|
2208
|
-
return [0, 0];
|
|
2209
|
-
}
|
|
2206
|
+
const { maxBonus, prefMonthsNum, prefTravelBonusRate, prefRestBonusRate, travelBonusRate, restBonusRate, } = params;
|
|
2210
2207
|
const prefBonus = Math.min(Math.round(prefTravelBonusRate * bonusTravelValue) +
|
|
2211
2208
|
Math.round(prefRestBonusRate * bonusOtherValue), maxBonus);
|
|
2212
2209
|
const bonus = Math.min(Math.round(travelBonusRate * bonusTravelValue) + Math.round(restBonusRate * bonusOtherValue), maxBonus);
|
|
@@ -6014,7 +6011,7 @@
|
|
|
6014
6011
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6015
6012
|
});
|
|
6016
6013
|
|
|
6017
|
-
const packageVersion = "0.14.
|
|
6014
|
+
const packageVersion = "0.14.175";
|
|
6018
6015
|
|
|
6019
6016
|
exports.Blocks = Blocks;
|
|
6020
6017
|
exports.ContentPage = ContentPage;
|