@redneckz/wildless-cms-uni-blocks 0.14.713 → 0.14.715
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 +47 -36
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/renderSubmitButton.d.ts +1 -1
- package/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +1 -0
- package/bundle/components/CreditCardForm/StepsNavigationButtons.d.ts +1 -0
- package/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +1 -1
- package/bundle/components/CreditForm/StepsNavigationButtons.d.ts +1 -0
- package/bundle/components/CreditForm/useCreditFormAPI.d.ts +1 -1
- package/bundle/hooks/useAsyncEffect.d.ts +1 -0
- package/bundle/services/retail/mockLocalStorage.d.ts +1 -0
- package/bundle/ui-kit/Button/Button.d.ts +1 -0
- package/bundle/ui-kit/Loader/Loader.d.ts +1 -0
- package/dist/api/RetailAPI/sendCode.js +3 -4
- package/dist/api/RetailAPI/sendCode.js.map +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +2 -2
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/dist/components/ApplicationLeadForm/renderSubmitButton.d.ts +1 -1
- package/dist/components/ApplicationLeadForm/renderSubmitButton.js +1 -1
- package/dist/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +1 -0
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +10 -7
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/dist/components/CreditCardForm/CreditCardFormStep.js +2 -2
- package/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
- package/dist/components/CreditCardForm/StepsNavigationButtons.d.ts +1 -0
- package/dist/components/CreditCardForm/StepsNavigationButtons.js +2 -2
- package/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
- package/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +1 -1
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js +7 -1
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/dist/components/CreditForm/CreditFormStep.js +2 -2
- package/dist/components/CreditForm/CreditFormStep.js.map +1 -1
- package/dist/components/CreditForm/StepsNavigationButtons.d.ts +1 -0
- package/dist/components/CreditForm/StepsNavigationButtons.js +2 -2
- package/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/dist/components/CreditForm/useCreditFormAPI.d.ts +1 -1
- package/dist/components/CreditForm/useCreditFormAPI.js +7 -1
- package/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/dist/hooks/useAsyncEffect.d.ts +1 -0
- package/dist/hooks/useAsyncEffect.js +15 -0
- package/dist/hooks/useAsyncEffect.js.map +1 -0
- package/dist/services/retail/mockLocalStorage.d.ts +1 -0
- package/dist/services/retail/mockLocalStorage.js +35 -0
- package/dist/services/retail/mockLocalStorage.js.map +1 -0
- package/dist/setup-fixture.js +11 -0
- package/dist/setup-fixture.js.map +1 -1
- package/dist/ui-kit/Button/Button.d.ts +1 -0
- package/dist/ui-kit/Button/Button.js +6 -5
- package/dist/ui-kit/Button/Button.js.map +1 -1
- package/dist/ui-kit/Loader/Loader.d.ts +1 -0
- package/dist/ui-kit/Loader/Loader.js +2 -2
- package/dist/ui-kit/Loader/Loader.js.map +1 -1
- package/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +5 -4
- package/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/lib/api/RetailAPI/sendCode.js +4 -5
- package/lib/api/RetailAPI/sendCode.js.map +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +2 -2
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/lib/components/ApplicationLeadForm/renderSubmitButton.d.ts +1 -1
- package/lib/components/ApplicationLeadForm/renderSubmitButton.js +1 -1
- package/lib/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +1 -0
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +10 -7
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/lib/components/CreditCardForm/CreditCardForm.fixture.d.ts +1 -1
- package/lib/components/CreditCardForm/CreditCardForm.fixture.mobile.d.ts +1 -1
- package/lib/components/CreditCardForm/CreditCardFormStep.js +2 -2
- package/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
- package/lib/components/CreditCardForm/StepsNavigationButtons.d.ts +1 -0
- package/lib/components/CreditCardForm/StepsNavigationButtons.js +2 -2
- package/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
- package/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +1 -1
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js +7 -1
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/lib/components/CreditForm/CreditForm.fixture.d.ts +1 -1
- package/lib/components/CreditForm/CreditForm.fixture.mobile.d.ts +1 -1
- package/lib/components/CreditForm/CreditFormStep.js +2 -2
- package/lib/components/CreditForm/CreditFormStep.js.map +1 -1
- package/lib/components/CreditForm/StepsNavigationButtons.d.ts +1 -0
- package/lib/components/CreditForm/StepsNavigationButtons.js +2 -2
- package/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/lib/components/CreditForm/useCreditFormAPI.d.ts +1 -1
- package/lib/components/CreditForm/useCreditFormAPI.js +7 -1
- package/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/lib/hooks/useAsyncEffect.d.ts +1 -0
- package/lib/hooks/useAsyncEffect.js +12 -0
- package/lib/hooks/useAsyncEffect.js.map +1 -0
- package/lib/services/retail/mockLocalStorage.d.ts +1 -0
- package/lib/services/retail/mockLocalStorage.js +32 -0
- package/lib/services/retail/mockLocalStorage.js.map +1 -0
- package/lib/setup-fixture.js +11 -0
- package/lib/setup-fixture.js.map +1 -1
- package/lib/ui-kit/Button/Button.d.ts +1 -0
- package/lib/ui-kit/Button/Button.js +7 -6
- package/lib/ui-kit/Button/Button.js.map +1 -1
- package/lib/ui-kit/Loader/Loader.d.ts +1 -0
- package/lib/ui-kit/Loader/Loader.js +2 -2
- package/lib/ui-kit/Loader/Loader.js.map +1 -1
- package/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +5 -4
- package/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +47 -36
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/renderSubmitButton.d.ts +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +1 -0
- package/mobile/bundle/components/CreditCardForm/StepsNavigationButtons.d.ts +1 -0
- package/mobile/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +1 -1
- package/mobile/bundle/components/CreditForm/StepsNavigationButtons.d.ts +1 -0
- package/mobile/bundle/components/CreditForm/useCreditFormAPI.d.ts +1 -1
- package/mobile/bundle/hooks/useAsyncEffect.d.ts +1 -0
- package/mobile/bundle/services/retail/mockLocalStorage.d.ts +1 -0
- package/mobile/bundle/ui-kit/Button/Button.d.ts +1 -0
- package/mobile/bundle/ui-kit/Loader/Loader.d.ts +1 -0
- package/mobile/dist/api/RetailAPI/sendCode.js +3 -4
- package/mobile/dist/api/RetailAPI/sendCode.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +2 -2
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.d.ts +1 -1
- package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.js +1 -1
- package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +1 -0
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +10 -7
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js +2 -2
- package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.d.ts +1 -0
- package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js +2 -2
- package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +1 -1
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js +7 -1
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditFormStep.js +2 -2
- package/mobile/dist/components/CreditForm/CreditFormStep.js.map +1 -1
- package/mobile/dist/components/CreditForm/StepsNavigationButtons.d.ts +1 -0
- package/mobile/dist/components/CreditForm/StepsNavigationButtons.js +2 -2
- package/mobile/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/dist/components/CreditForm/useCreditFormAPI.d.ts +1 -1
- package/mobile/dist/components/CreditForm/useCreditFormAPI.js +7 -1
- package/mobile/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/mobile/dist/hooks/useAsyncEffect.d.ts +1 -0
- package/mobile/dist/hooks/useAsyncEffect.js +15 -0
- package/mobile/dist/hooks/useAsyncEffect.js.map +1 -0
- package/mobile/dist/services/retail/mockLocalStorage.d.ts +1 -0
- package/mobile/dist/services/retail/mockLocalStorage.js +35 -0
- package/mobile/dist/services/retail/mockLocalStorage.js.map +1 -0
- package/mobile/dist/setup-fixture.js +11 -0
- package/mobile/dist/setup-fixture.js.map +1 -1
- package/mobile/dist/ui-kit/Button/Button.d.ts +1 -0
- package/mobile/dist/ui-kit/Button/Button.js +6 -5
- package/mobile/dist/ui-kit/Button/Button.js.map +1 -1
- package/mobile/dist/ui-kit/Loader/Loader.d.ts +1 -0
- package/mobile/dist/ui-kit/Loader/Loader.js +2 -2
- package/mobile/dist/ui-kit/Loader/Loader.js.map +1 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +5 -4
- package/mobile/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/mobile/lib/api/RetailAPI/sendCode.js +4 -5
- package/mobile/lib/api/RetailAPI/sendCode.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +2 -2
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.d.ts +1 -1
- package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.js +1 -1
- package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +1 -0
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +10 -7
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js +2 -2
- package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.d.ts +1 -0
- package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js +2 -2
- package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +1 -1
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js +7 -1
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditFormStep.js +2 -2
- package/mobile/lib/components/CreditForm/CreditFormStep.js.map +1 -1
- package/mobile/lib/components/CreditForm/StepsNavigationButtons.d.ts +1 -0
- package/mobile/lib/components/CreditForm/StepsNavigationButtons.js +2 -2
- package/mobile/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/lib/components/CreditForm/useCreditFormAPI.d.ts +1 -1
- package/mobile/lib/components/CreditForm/useCreditFormAPI.js +7 -1
- package/mobile/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/mobile/lib/hooks/useAsyncEffect.d.ts +1 -0
- package/mobile/lib/hooks/useAsyncEffect.js +12 -0
- package/mobile/lib/hooks/useAsyncEffect.js.map +1 -0
- package/mobile/lib/services/retail/mockLocalStorage.d.ts +1 -0
- package/mobile/lib/services/retail/mockLocalStorage.js +32 -0
- package/mobile/lib/services/retail/mockLocalStorage.js.map +1 -0
- package/mobile/lib/setup-fixture.js +11 -0
- package/mobile/lib/setup-fixture.js.map +1 -1
- package/mobile/lib/ui-kit/Button/Button.d.ts +1 -0
- package/mobile/lib/ui-kit/Button/Button.js +7 -6
- package/mobile/lib/ui-kit/Button/Button.js.map +1 -1
- package/mobile/lib/ui-kit/Loader/Loader.d.ts +1 -0
- package/mobile/lib/ui-kit/Loader/Loader.js +2 -2
- package/mobile/lib/ui-kit/Loader/Loader.js.map +1 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +5 -4
- package/mobile/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/mobile/src/api/RetailAPI/sendCode.ts +4 -15
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +2 -2
- package/mobile/src/components/ApplicationLeadForm/renderSubmitButton.tsx +2 -2
- package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +12 -7
- package/mobile/src/components/CreditCardForm/CreditCardFormStep.tsx +2 -2
- package/mobile/src/components/CreditCardForm/StepsNavigationButtons.tsx +17 -12
- package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +7 -2
- package/mobile/src/components/CreditForm/CreditFormStep.tsx +2 -2
- package/mobile/src/components/CreditForm/StepsNavigationButtons.tsx +17 -12
- package/mobile/src/components/CreditForm/useCreditFormAPI.tsx +7 -2
- package/mobile/src/hooks/useAsyncEffect.ts +16 -0
- package/mobile/src/services/retail/mockLocalStorage.ts +40 -0
- package/mobile/src/setup-fixture.ts +12 -0
- package/mobile/src/ui-kit/Button/Button.tsx +7 -3
- package/mobile/src/ui-kit/Loader/Loader.tsx +5 -3
- package/mobile/src/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +5 -4
- package/package.json +1 -1
- package/src/api/RetailAPI/sendCode.ts +4 -15
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +2 -2
- package/src/components/ApplicationLeadForm/renderSubmitButton.tsx +2 -2
- package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +12 -7
- package/src/components/CreditCardForm/CreditCardForm.fixture.mobile.tsx +14 -18
- package/src/components/CreditCardForm/CreditCardForm.fixture.tsx +14 -18
- package/src/components/CreditCardForm/CreditCardFormStep.tsx +2 -2
- package/src/components/CreditCardForm/StepsNavigationButtons.tsx +17 -12
- package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +7 -2
- package/src/components/CreditForm/CreditForm.fixture.mobile.tsx +19 -23
- package/src/components/CreditForm/CreditForm.fixture.tsx +19 -23
- package/src/components/CreditForm/CreditFormStep.tsx +2 -2
- package/src/components/CreditForm/StepsNavigationButtons.tsx +17 -12
- package/src/components/CreditForm/useCreditFormAPI.tsx +7 -2
- package/src/hooks/useAsyncEffect.ts +16 -0
- package/src/services/retail/mockLocalStorage.ts +40 -0
- package/src/setup-fixture.ts +12 -0
- package/src/ui-kit/Button/Button.tsx +7 -3
- package/src/ui-kit/Loader/Loader.tsx +5 -3
- package/src/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +5 -4
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { checkCode } from '../../api/RetailAPI/checkCode.js';
|
|
2
|
+
import { createDraftTask } from '../../api/RetailAPI/createDraftTask.js';
|
|
3
|
+
import { createUserProfile } from '../../api/RetailAPI/createUserProfile.js';
|
|
4
|
+
import { sendCode } from '../../api/RetailAPI/sendCode.js';
|
|
5
|
+
const PHONE = '+11111111111';
|
|
6
|
+
const PROGRAM_ID = '13';
|
|
7
|
+
export const mockLocalStorage = async () => {
|
|
8
|
+
const programId = globalThis.localStorage.getItem('programId') ?? PROGRAM_ID;
|
|
9
|
+
const profileId = globalThis.localStorage.getItem('profileId') ??
|
|
10
|
+
(await createUserProfile({ profile: { phone: PHONE } }));
|
|
11
|
+
await sendCode({
|
|
12
|
+
phoneNumber: PHONE,
|
|
13
|
+
smsCodesSetName: { key: 'AUTHENTICATION' },
|
|
14
|
+
});
|
|
15
|
+
await checkCode({
|
|
16
|
+
smsCodesSetName: { key: 'AUTHENTICATION' },
|
|
17
|
+
smsText: '1234',
|
|
18
|
+
});
|
|
19
|
+
const task = {
|
|
20
|
+
taskId: globalThis.localStorage.getItem('taskId'),
|
|
21
|
+
participantId: globalThis.localStorage.getItem('participantId'),
|
|
22
|
+
};
|
|
23
|
+
if (!task.taskId || !task.participantId) {
|
|
24
|
+
const draft = await createDraftTask({ profileId: Number(profileId), programId });
|
|
25
|
+
Object.assign(task, draft);
|
|
26
|
+
}
|
|
27
|
+
globalThis.localStorage.setItem('programId', programId);
|
|
28
|
+
globalThis.localStorage.setItem('profileId', String(profileId));
|
|
29
|
+
globalThis.localStorage.setItem('taskId', String(task.taskId));
|
|
30
|
+
globalThis.localStorage.setItem('participantId', String(task.participantId));
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=mockLocalStorage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mockLocalStorage.js","sourceRoot":"","sources":["../../../src/services/retail/mockLocalStorage.ts"],"names":[],"mappings":"AAAA,OAAO,E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CAAC,CAAC;KAC5B;IAED,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;IACxD,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,WAAW,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;IAChE,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IAC/D,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,eAAe,EAAE,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC;AAC/E,CAAC,CAAC"}
|
package/lib/setup-fixture.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import '@redneckz/uni-jsx/lib/setup.react';
|
|
2
2
|
import { useEffect, useState } from 'react';
|
|
3
3
|
import { handlerDecorator } from './external/handlerDecorator.js';
|
|
4
|
+
import { locationNavigator } from './external/locationNavigator.js';
|
|
4
5
|
import { useRouter } from './external/useRouter.js';
|
|
5
6
|
import { projectSettings } from './ProjectSettings.js';
|
|
7
|
+
import { noop } from './utils/noop.js';
|
|
6
8
|
import { joinPath } from './utils/url.js';
|
|
7
9
|
import wlc from './wlc.json.js';
|
|
8
10
|
projectSettings.setup(wlc);
|
|
@@ -40,4 +42,13 @@ handlerDecorator.setup((handler) => (ev) => {
|
|
|
40
42
|
}
|
|
41
43
|
handler(ev);
|
|
42
44
|
});
|
|
45
|
+
locationNavigator.setup(() => ({
|
|
46
|
+
assign: noop,
|
|
47
|
+
get href() {
|
|
48
|
+
return globalThis.location.href;
|
|
49
|
+
},
|
|
50
|
+
get origin() {
|
|
51
|
+
return globalThis.location.origin;
|
|
52
|
+
},
|
|
53
|
+
}));
|
|
43
54
|
//# sourceMappingURL=setup-fixture.js.map
|
package/lib/setup-fixture.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-fixture.js","sourceRoot":"","sources":["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AAK,QAAQ,CAAC;IAEvD,IAAI,CAAC,gBAAgB,EAAE;QACrB,EAAE,EAAE,cAAc,EAAE,CAAC;KACtB;IAED,OAAO,CAAC,EAAE,CAAC,CAAC;AACd,CAAC,CAAC,CAAC;AAEH,iBAAiB,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC;IAC7B,MAAM,EAAE,IAAI;IACZ,IAAI,IAAI;QACN,OAAO,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC;IAClC,CAAC;IACD,IAAI,MAAM;QACR,OAAO,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC;IACpC,CAAC;CACF,CAAC,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
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 { style } from '../../utils/style.js';
|
|
4
|
+
import { Loader } from '../Loader/Loader.js';
|
|
4
5
|
import { useButton } from './useButton.js';
|
|
5
6
|
const buttonStyleMap = {
|
|
6
7
|
primary: 'text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active',
|
|
@@ -12,13 +13,13 @@ const secondaryButtonStyleMap = {
|
|
|
12
13
|
};
|
|
13
14
|
export const Button = JSX(({ children, ...props }) => {
|
|
14
15
|
const button = useButton();
|
|
15
|
-
const { className, version = 'primary', active, disabled, type = 'button', rounded = true, role, onClick, } = button(props);
|
|
16
|
-
return (
|
|
16
|
+
const { className, version = 'primary', active, disabled, isLoading, type = 'button', rounded = true, role, onClick, } = button(props);
|
|
17
|
+
return (_jsxs("button", { className: style('font-sans px-9 py-4', 'flex justify-center items-center gap-xs relative', {
|
|
17
18
|
'text-white bg-primary-active': active,
|
|
18
|
-
'bg-main-gray text-main-disabled cursor-not-allowed': disabled,
|
|
19
|
+
'bg-main-gray text-main-disabled cursor-not-allowed': disabled || isLoading,
|
|
19
20
|
'rounded-md': rounded,
|
|
20
|
-
}, !active && !disabled
|
|
21
|
+
}, !active && !disabled && !isLoading
|
|
21
22
|
? style(buttonStyleMap[version], secondaryButtonStyleMap[version])
|
|
22
|
-
: '', className), type: type, role: role, onClick: onClick, children: children }));
|
|
23
|
+
: '', className), type: type, role: role, onClick: onClick, children: [isLoading ? _jsx(Loader, { blur: true, size: "small" }) : null, children] }));
|
|
23
24
|
});
|
|
24
25
|
//# sourceMappingURL=Button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/Button.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/Button.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,cAAc,GAAkC;IACpD,OAAO,EAAE,4EAA4E;IACrF,SAAS,EACP,oGAAoG;CACvG,CAAC;AAEF,MAAM,uBAAuB,GAAkC;IAC7D,OAAO,EAAE,KAAK,CACZ,sEAAsE,EACtE,mFAAmF,EACnF,+CAA+C,CAChD;IACD,SAAS,EAAE,KAAK,CACd,kEAAkE,EAClE,6CAA6C,EAC7C,+CAA+C,CAChD;CACF,CAAC;AAYF,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAc,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAChE,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,MAAM,EACJ,SAAS,EACT,OAAO,GAAG,SAAS,EACnB,MAAM,EACN,QAAQ,EACR,SAAS,EACT,IAAI,GAAG,QAAQ,EACf,OAAO,GAAG,IAAI,EACd,IAAI,EACJ,OAAO,GACR,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAElB,OAAO,CACL,kBACE,SAAS,EAAE,KAAK,CACd,qBAAqB,EACrB,kDAAkD,EAClD;YACE,8BAA8B,EAAE,MAAM;YACtC,oDAAoD,EAAE,QAAQ,IAAI,SAAS;YAC3E,YAAY,EAAE,OAAO;SACtB,EACD,CAAC,MAAM,IAAI,CAAC,QAAQ,IAAI,CAAC,SAAS;YAChC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,uBAAuB,CAAC,OAAO,CAAC,CAAC;YAClE,CAAC,CAAC,EAAE,EACN,SAAS,CACV,EACD,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,aAEf,SAAS,CAAC,CAAC,CAAC,KAAC,MAAM,IAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC,OAAO,GAAG,CAAC,CAAC,CAAC,IAAI,EACtD,QAAQ,IACF,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { style } from '../../utils/style.js';
|
|
4
|
-
export const Loader = JSX(({ color = 'text-primary-main', position = 'absolute', blur = true }) => (_jsx("div", { className: style('flex justify-center items-center h-full w-full z-50', position, {
|
|
4
|
+
export const Loader = JSX(({ color = 'text-primary-main', position = 'absolute', blur = true, size = 'big' }) => (_jsx("div", { className: style('flex justify-center items-center h-full w-full z-50', position, {
|
|
5
5
|
'backdrop-blur': blur,
|
|
6
|
-
}), children: _jsx("div", { className: style('inline-block
|
|
6
|
+
}), children: _jsx("div", { className: style('inline-block ', 'animate-spin rounded-full', 'border-solid border-current', 'border-r-transparent', size === 'small' ? 'border-4 h-8 w-8' : 'border-8 h-28 w-28', color), role: "status" }) })));
|
|
7
7
|
//# sourceMappingURL=Loader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loader.js","sourceRoot":"","sources":["../../../src/ui-kit/Loader/Loader.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"Loader.js","sourceRoot":"","sources":["../../../src/ui-kit/Loader/Loader.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAS1C,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CACvB,CAAC,EAAE,KAAK,GAAG,mBAAmB,EAAE,QAAQ,GAAG,UAAU,EAAE,IAAI,GAAG,IAAI,EAAE,IAAI,GAAG,KAAK,EAAE,EAAE,EAAE,CAAC,CACrF,cACE,SAAS,EAAE,KAAK,CAAC,qDAAqD,EAAE,QAAQ,EAAE;QAChF,eAAe,EAAE,IAAI;KACtB,CAAC,YAEF,cACE,SAAS,EAAE,KAAK,CACd,eAAe,EACf,2BAA2B,EAC3B,6BAA6B,EAC7B,sBAAsB,EACtB,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,oBAAoB,EAC5D,KAAK,CACN,EACD,IAAI,EAAC,QAAQ,GACb,GACE,CACP,CACF,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { useCallback, useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
+
import { useBool } from '@redneckz/uni-jsx/lib/hooks/useBool';
|
|
2
3
|
import { checkCode } from '../../api/RetailAPI/checkCode.js';
|
|
3
4
|
export const useVerifyPhoneDialogSubmit = ({ values, onSuccess, }) => {
|
|
4
5
|
const [errorText, setErrorText] = useState('');
|
|
5
|
-
const [isLoading,
|
|
6
|
+
const [isLoading, { setTrue: startLoading, setFalse: endLoading }] = useBool(false);
|
|
6
7
|
const [timeNextReq, setTimeNextReq] = useState(0);
|
|
7
8
|
const [isTimerStarted, setIsTimerStarted] = useState(false);
|
|
8
9
|
const [attempts, setAttempts] = useState(0);
|
|
@@ -14,19 +15,19 @@ export const useVerifyPhoneDialogSubmit = ({ values, onSuccess, }) => {
|
|
|
14
15
|
setIsTimerStarted(false);
|
|
15
16
|
setTimeNextReq(0);
|
|
16
17
|
setAttempts((_) => _ + 1);
|
|
17
|
-
|
|
18
|
+
startLoading();
|
|
18
19
|
await checkCode({
|
|
19
20
|
smsText: values.join(''),
|
|
20
21
|
smsCodesSetName: { key: 'AUTHENTICATION' },
|
|
21
22
|
});
|
|
22
23
|
resetError();
|
|
23
|
-
onSuccess?.(values.join(''));
|
|
24
|
+
await onSuccess?.(values.join(''));
|
|
24
25
|
}
|
|
25
26
|
catch {
|
|
26
27
|
setErrorText(attempts > 1 ? 'Исчерпан лимит ввода смс-кода' : 'Неверный код');
|
|
27
28
|
}
|
|
28
29
|
finally {
|
|
29
|
-
|
|
30
|
+
endLoading();
|
|
30
31
|
}
|
|
31
32
|
}, [values, attempts]);
|
|
32
33
|
useEffect(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useVerifyPhoneDialogSubmit.js","sourceRoot":"","sources":["../../../src/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAO1D,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAA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441 \u0444\u0430\u043A\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u043C\u0435\u0441\u0442\u0430 \u0436\u0438\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u0430 \u0441\u043E\u0432\u043F\u0430\u0434\u0430\u0435\u0442 \u0441 \u0430\u0434\u0440\u0435\u0441\u043E\u043C \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438", ...getValidation(field('addressMatch'), validatorObj.addressMatch, input?.required) }));
|
|
1989
1989
|
});
|
|
1990
1990
|
|
|
1991
|
-
const Loader = JSX(({ color = 'text-primary-main', position = 'absolute', blur = true }) => (jsx("div", { className: style('flex justify-center items-center h-full w-full z-50', position, {
|
|
1991
|
+
const Loader = JSX(({ color = 'text-primary-main', position = 'absolute', blur = true, size = 'big' }) => (jsx("div", { className: style('flex justify-center items-center h-full w-full z-50', position, {
|
|
1992
1992
|
'backdrop-blur': blur,
|
|
1993
|
-
}), children: jsx("div", { className: style('inline-block
|
|
1993
|
+
}), children: jsx("div", { className: style('inline-block ', 'animate-spin rounded-full', 'border-solid border-current', 'border-r-transparent', size === 'small' ? 'border-4 h-8 w-8' : 'border-8 h-28 w-28', color), role: "status" }) })));
|
|
1994
1994
|
|
|
1995
1995
|
const MapMarkerClusterIcon = '/icons/MapMarkerClusterIcon.svg';
|
|
1996
1996
|
const MapMarkerClusterYellowIcon = '/icons/MapMarkerClusterYellowIcon.svg';
|
|
@@ -3255,14 +3255,14 @@
|
|
|
3255
3255
|
};
|
|
3256
3256
|
const Button = JSX(({ children, ...props }) => {
|
|
3257
3257
|
const button = useButton();
|
|
3258
|
-
const { className, version = 'primary', active, disabled, type = 'button', rounded = true, role, onClick, } = button(props);
|
|
3259
|
-
return (
|
|
3258
|
+
const { className, version = 'primary', active, disabled, isLoading, type = 'button', rounded = true, role, onClick, } = button(props);
|
|
3259
|
+
return (jsxs("button", { className: style('font-sans px-9 py-4', 'flex justify-center items-center gap-xs relative', {
|
|
3260
3260
|
'text-white bg-primary-active': active,
|
|
3261
|
-
'bg-main-gray text-main-disabled cursor-not-allowed': disabled,
|
|
3261
|
+
'bg-main-gray text-main-disabled cursor-not-allowed': disabled || isLoading,
|
|
3262
3262
|
'rounded-md': rounded,
|
|
3263
|
-
}, !active && !disabled
|
|
3263
|
+
}, !active && !disabled && !isLoading
|
|
3264
3264
|
? style(buttonStyleMap[version], secondaryButtonStyleMap[version])
|
|
3265
|
-
: '', className), type: type, role: role, onClick: onClick, children: children }));
|
|
3265
|
+
: '', className), type: type, role: role, onClick: onClick, children: [isLoading ? jsx(Loader, { blur: true, size: "small" }) : null, children] }));
|
|
3266
3266
|
});
|
|
3267
3267
|
|
|
3268
3268
|
const CloseButton = JSX(({ className, onClose }) => (jsx("button", { className: style('flex justify-center items-center w-12 h-12 p-2xs bg-transparent border-none', className), onClick: onClose, title: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C", type: "button", children: jsx(Icon, { name: "CloseIcon", width: "20", height: "20", iconVersion: "gray" }) })));
|
|
@@ -4478,7 +4478,7 @@
|
|
|
4478
4478
|
},
|
|
4479
4479
|
];
|
|
4480
4480
|
|
|
4481
|
-
const renderSubmitButton = (button,
|
|
4481
|
+
const renderSubmitButton = (button, isSending) => (jsx(Button, { className: style('w-full @xl:w-auto'), type: "submit", isLoading: isSending, children: button?.text ? button.text : 'Отправить заявку' }));
|
|
4482
4482
|
|
|
4483
4483
|
const createDraftTask = async (body) => {
|
|
4484
4484
|
const res = await fetchRetailJSON('/user-data/createDraftTask', 'POST', body);
|
|
@@ -4524,10 +4524,9 @@
|
|
|
4524
4524
|
};
|
|
4525
4525
|
};
|
|
4526
4526
|
|
|
4527
|
-
const sendCode = (body) =>
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
Boolean(res?.errorMessage?.startsWith(`Too many request for phoneNumber [${phoneNumber}]`));
|
|
4527
|
+
const sendCode = (body) => doRequest('/sms/sendCode', 'POST', body)
|
|
4528
|
+
.then((res) => res.text())
|
|
4529
|
+
.then((text) => text === 'OK');
|
|
4531
4530
|
|
|
4532
4531
|
const checkCaptcha = (body) => doRequest('/sms/checkCaptcha', 'POST', body)
|
|
4533
4532
|
.then((res) => res.text())
|
|
@@ -4660,7 +4659,7 @@
|
|
|
4660
4659
|
|
|
4661
4660
|
const useVerifyPhoneDialogSubmit = ({ values, onSuccess, }) => {
|
|
4662
4661
|
const [errorText, setErrorText] = useState('');
|
|
4663
|
-
const [isLoading,
|
|
4662
|
+
const [isLoading, { setTrue: startLoading, setFalse: endLoading }] = useBool(false);
|
|
4664
4663
|
const [timeNextReq, setTimeNextReq] = useState(0);
|
|
4665
4664
|
const [isTimerStarted, setIsTimerStarted] = useState(false);
|
|
4666
4665
|
const [attempts, setAttempts] = useState(0);
|
|
@@ -4672,19 +4671,19 @@
|
|
|
4672
4671
|
setIsTimerStarted(false);
|
|
4673
4672
|
setTimeNextReq(0);
|
|
4674
4673
|
setAttempts((_) => _ + 1);
|
|
4675
|
-
|
|
4674
|
+
startLoading();
|
|
4676
4675
|
await checkCode({
|
|
4677
4676
|
smsText: values.join(''),
|
|
4678
4677
|
smsCodesSetName: { key: 'AUTHENTICATION' },
|
|
4679
4678
|
});
|
|
4680
4679
|
resetError();
|
|
4681
|
-
onSuccess?.(values.join(''));
|
|
4680
|
+
await onSuccess?.(values.join(''));
|
|
4682
4681
|
}
|
|
4683
4682
|
catch {
|
|
4684
4683
|
setErrorText(attempts > 1 ? 'Исчерпан лимит ввода смс-кода' : 'Неверный код');
|
|
4685
4684
|
}
|
|
4686
4685
|
finally {
|
|
4687
|
-
|
|
4686
|
+
endLoading();
|
|
4688
4687
|
}
|
|
4689
4688
|
}, [values, attempts]);
|
|
4690
4689
|
useEffect(() => {
|
|
@@ -5135,6 +5134,7 @@
|
|
|
5135
5134
|
|
|
5136
5135
|
const useApplicationLeadApi = ({ inputs, programId, nextStepLink, }) => {
|
|
5137
5136
|
const [responseStatus, setResponseStatus] = useState('');
|
|
5137
|
+
const [isSending, { setTrue: startSending, setFalse: endSending }] = useBool(false);
|
|
5138
5138
|
const saveUserData = useSaveUserData();
|
|
5139
5139
|
const openEsiaLoginDialog = useEsiaLoginDialog(nextStepLink);
|
|
5140
5140
|
const consentBkiDialog = useConsentBkiDialog(openEsiaLoginDialog);
|
|
@@ -5146,6 +5146,7 @@
|
|
|
5146
5146
|
return;
|
|
5147
5147
|
}
|
|
5148
5148
|
try {
|
|
5149
|
+
startSending();
|
|
5149
5150
|
const profileId = await createUserProfile({
|
|
5150
5151
|
profile: { phone: formatPhone(formData.phone) },
|
|
5151
5152
|
});
|
|
@@ -5162,10 +5163,7 @@
|
|
|
5162
5163
|
};
|
|
5163
5164
|
const handleSuccessVerify = async () => {
|
|
5164
5165
|
try {
|
|
5165
|
-
const lastTaskId = await getLastTaskStatus({
|
|
5166
|
-
profileId,
|
|
5167
|
-
programId,
|
|
5168
|
-
});
|
|
5166
|
+
const lastTaskId = await getLastTaskStatus({ profileId, programId });
|
|
5169
5167
|
if (lastTaskId) {
|
|
5170
5168
|
const task = await getTaskById({ taskId: lastTaskId });
|
|
5171
5169
|
verifyPhoneDialog.close();
|
|
@@ -5183,14 +5181,13 @@
|
|
|
5183
5181
|
setResponseStatus('Fail');
|
|
5184
5182
|
}
|
|
5185
5183
|
};
|
|
5186
|
-
const acceptedConsents =
|
|
5187
|
-
.filter((_) => formData[_])
|
|
5188
|
-
.map((_) => CONSENTS[_]?.text);
|
|
5184
|
+
const acceptedConsents = getAcceptedConsents(formData);
|
|
5189
5185
|
verifyPhoneDialog.open({
|
|
5190
5186
|
phone: formData?.phone,
|
|
5191
5187
|
consents: acceptedConsents,
|
|
5192
5188
|
onSuccess: handleSuccessVerify,
|
|
5193
5189
|
});
|
|
5190
|
+
endSending();
|
|
5194
5191
|
}
|
|
5195
5192
|
}
|
|
5196
5193
|
catch {
|
|
@@ -5200,8 +5197,12 @@
|
|
|
5200
5197
|
return {
|
|
5201
5198
|
handleSubmit,
|
|
5202
5199
|
responseStatus,
|
|
5200
|
+
isSending,
|
|
5203
5201
|
};
|
|
5204
5202
|
};
|
|
5203
|
+
const getAcceptedConsents = (formData) => Object.keys(CONSENTS)
|
|
5204
|
+
.filter((_) => formData[_])
|
|
5205
|
+
.map((_) => CONSENTS[_]?.text);
|
|
5205
5206
|
const updateUserData = async ({ programId, profileId, formData, saveUserData, }) => {
|
|
5206
5207
|
const transformedForm = transformOtherConsentsField(formData);
|
|
5207
5208
|
await updateUserProfile(getUpdateUserProfileData(profileId, transformedForm));
|
|
@@ -5388,7 +5389,7 @@
|
|
|
5388
5389
|
const ApplicationLeadForm = JSX(({ className, title, programId = '', nextStepLink = '/credit-lead', button, ...rest }) => {
|
|
5389
5390
|
const inputs = useMemo(() => (applicationFormData?.flatMap((_) => _?.inputs) || []), [applicationFormData]);
|
|
5390
5391
|
const [initialFormState, { isLoading }] = useInitApplicationLead(inputs, nextStepLink);
|
|
5391
|
-
const { handleSubmit, responseStatus } = useApplicationLeadApi({
|
|
5392
|
+
const { handleSubmit, responseStatus, isSending } = useApplicationLeadApi({
|
|
5392
5393
|
inputs,
|
|
5393
5394
|
programId,
|
|
5394
5395
|
nextStepLink,
|
|
@@ -5400,7 +5401,7 @@
|
|
|
5400
5401
|
responseTypeDialog.open({ responseType: responseStatus });
|
|
5401
5402
|
}
|
|
5402
5403
|
}, [responseStatus]);
|
|
5403
|
-
return (jsx(ApplicationFormLayout, { className: style('container space-y-m', className), title: title, ...rest, children: jsxs("form", { onSubmit: onSubmit, className: "space-y-m relative", children: [isLoading ? jsx(Loader, { blur: false }) : null, applicationFormData.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [renderTitle(_.title), renderInputs$2({ field, inputs: _?.inputs })] }, `section-${i}`))), renderSubmitButton(button)] }) }));
|
|
5404
|
+
return (jsx(ApplicationFormLayout, { className: style('container space-y-m', className), title: title, ...rest, children: jsxs("form", { onSubmit: onSubmit, className: "space-y-m relative", children: [isLoading ? jsx(Loader, { blur: false }) : null, applicationFormData.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [renderTitle(_.title), renderInputs$2({ field, inputs: _?.inputs })] }, `section-${i}`))), renderSubmitButton(button, isSending)] }) }));
|
|
5404
5405
|
});
|
|
5405
5406
|
|
|
5406
5407
|
const NotFound = JSX(({ title, description }) => {
|
|
@@ -6971,10 +6972,10 @@
|
|
|
6971
6972
|
});
|
|
6972
6973
|
const getValue$3 = (field) => (name) => field(name)?.value;
|
|
6973
6974
|
|
|
6974
|
-
const StepsNavigationButtons$1 = JSX(({ step, onPrevStep }) => {
|
|
6975
|
+
const StepsNavigationButtons$1 = JSX(({ step, isSending, onPrevStep }) => {
|
|
6975
6976
|
const isFirstStep = step === 0;
|
|
6976
6977
|
const isFinalStep = step === 5;
|
|
6977
|
-
return (jsxs("div", { className: "flex justify-between gap-m", children: [jsx(Button, { onClick: onPrevStep, type: "button", version: "secondary", disabled: isFirstStep, children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(Button, { type: "submit", children: isFinalStep ? 'Отправить заявку' : 'Далее' })] }));
|
|
6978
|
+
return (jsxs("div", { className: "flex justify-between gap-m", children: [jsx(Button, { onClick: onPrevStep, type: "button", version: "secondary", disabled: isFirstStep, children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(Button, { isLoading: isSending, type: "submit", children: isFinalStep ? 'Отправить заявку' : 'Далее' })] }));
|
|
6978
6979
|
});
|
|
6979
6980
|
|
|
6980
6981
|
const getAdditionalInfoData = (formData) => {
|
|
@@ -7264,6 +7265,7 @@
|
|
|
7264
7265
|
};
|
|
7265
7266
|
|
|
7266
7267
|
const useCreditCardFormAPI = ({ step, inputs, onNextStep, onFinish, }) => {
|
|
7268
|
+
const [isSending, { setTrue: startSending, setFalse: endSending }] = useBool(false);
|
|
7267
7269
|
const isFinalStep = step === 5;
|
|
7268
7270
|
const retailFormStore = useRetailFormStore();
|
|
7269
7271
|
const initialState = useMemo(() => getInitialFormState$1(step, retailFormStore.leadForm), [step, retailFormStore.leadForm]);
|
|
@@ -7288,6 +7290,7 @@
|
|
|
7288
7290
|
if (!isValidationSuccess(feedbackValidator(formData))) {
|
|
7289
7291
|
return;
|
|
7290
7292
|
}
|
|
7293
|
+
startSending();
|
|
7291
7294
|
retailFormStore.leadForm = formData;
|
|
7292
7295
|
try {
|
|
7293
7296
|
const { taskId, profileId, participantId } = retailFormStore;
|
|
@@ -7309,21 +7312,24 @@
|
|
|
7309
7312
|
catch (ex) {
|
|
7310
7313
|
// Do nothing
|
|
7311
7314
|
}
|
|
7315
|
+
finally {
|
|
7316
|
+
endSending();
|
|
7317
|
+
}
|
|
7312
7318
|
}, [isFinalStep, resetForm]);
|
|
7313
|
-
return [initialState, handleSubmit];
|
|
7319
|
+
return [initialState, handleSubmit, isSending];
|
|
7314
7320
|
};
|
|
7315
7321
|
const getValue$2 = (formData) => (name) => formData[name];
|
|
7316
7322
|
|
|
7317
7323
|
const CreditCardFormStep = JSX(({ step, sections, isFormFinished, onPrevStep, onNextStep, onFinish }) => {
|
|
7318
7324
|
const inputs = useMemo(() => (sections?.flatMap((_) => _?.inputs) || []), [sections]);
|
|
7319
|
-
const [initialState, onSubmit] = useCreditCardFormAPI({
|
|
7325
|
+
const [initialState, onSubmit, isSending] = useCreditCardFormAPI({
|
|
7320
7326
|
step,
|
|
7321
7327
|
inputs,
|
|
7322
7328
|
onNextStep,
|
|
7323
7329
|
onFinish,
|
|
7324
7330
|
});
|
|
7325
7331
|
const [, { field, onSubmit: handleSubmit }] = useForm(initialState, { onSubmit });
|
|
7326
|
-
return isFormFinished ? (jsx(CreditCardFormStatusTracker, {})) : (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep$1({ sections, field, step }), jsx(StepsNavigationButtons$1, { step: step, onPrevStep: onPrevStep })] }));
|
|
7332
|
+
return isFormFinished ? (jsx(CreditCardFormStatusTracker, {})) : (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep$1({ sections, field, step }), jsx(StepsNavigationButtons$1, { isSending: isSending, step: step, onPrevStep: onPrevStep })] }));
|
|
7327
7333
|
});
|
|
7328
7334
|
|
|
7329
7335
|
const PERSONAL_INFO_CONTENT = [
|
|
@@ -7921,10 +7927,10 @@
|
|
|
7921
7927
|
});
|
|
7922
7928
|
const getValue$1 = (field) => (name) => field(name)?.value;
|
|
7923
7929
|
|
|
7924
|
-
const StepsNavigationButtons = JSX(({ step, onPrevStep }) => {
|
|
7930
|
+
const StepsNavigationButtons = JSX(({ step, onPrevStep, isSending }) => {
|
|
7925
7931
|
const isFirstStep = step === 0;
|
|
7926
7932
|
const isFinalStep = step === 5;
|
|
7927
|
-
return (jsxs("div", { className: 'flex justify-between gap-m', children: [jsx(Button, { onClick: onPrevStep, type: "button", version: "secondary", disabled: isFirstStep, children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(Button, { type: "submit", children: isFinalStep ? 'Отправить заявку' : 'Далее' })] }));
|
|
7933
|
+
return (jsxs("div", { className: 'flex justify-between gap-m', children: [jsx(Button, { onClick: onPrevStep, type: "button", version: "secondary", disabled: isFirstStep, children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(Button, { type: "submit", isLoading: isSending, children: isFinalStep ? 'Отправить заявку' : 'Далее' })] }));
|
|
7928
7934
|
});
|
|
7929
7935
|
|
|
7930
7936
|
const PAYMENT_TYPE_DATA = {
|
|
@@ -8103,6 +8109,7 @@
|
|
|
8103
8109
|
};
|
|
8104
8110
|
|
|
8105
8111
|
const useCreditFormAPI = ({ step, inputs, onNextStep, onFinish, }) => {
|
|
8112
|
+
const [isSending, { setTrue: startSending, setFalse: endSending }] = useBool(false);
|
|
8106
8113
|
const isFinalStep = step === 5;
|
|
8107
8114
|
const retailFormStore = useRetailFormStore();
|
|
8108
8115
|
const initialState = useMemo(() => getInitialFormState(step, retailFormStore.leadForm), [step, retailFormStore.leadForm]);
|
|
@@ -8127,6 +8134,7 @@
|
|
|
8127
8134
|
if (!isValidationSuccess(feedbackValidator(formData))) {
|
|
8128
8135
|
return;
|
|
8129
8136
|
}
|
|
8137
|
+
startSending();
|
|
8130
8138
|
retailFormStore.leadForm = formData;
|
|
8131
8139
|
try {
|
|
8132
8140
|
const { taskId, profileId, participantId } = retailFormStore;
|
|
@@ -8148,8 +8156,11 @@
|
|
|
8148
8156
|
catch (ex) {
|
|
8149
8157
|
// Do nothing
|
|
8150
8158
|
}
|
|
8159
|
+
finally {
|
|
8160
|
+
endSending();
|
|
8161
|
+
}
|
|
8151
8162
|
}, [isFinalStep, resetForm]);
|
|
8152
|
-
return [initialState, handleSubmit];
|
|
8163
|
+
return [initialState, handleSubmit, isSending];
|
|
8153
8164
|
};
|
|
8154
8165
|
const getValue = (formData) => (name) => formData[name];
|
|
8155
8166
|
|
|
@@ -8157,14 +8168,14 @@
|
|
|
8157
8168
|
const { programId } = useRetailFormStore();
|
|
8158
8169
|
const calcData = programsSource?.[programId ?? '']; // Need normalizator useForm, to be save defaultParams
|
|
8159
8170
|
const inputs = useMemo(() => (sections?.flatMap((_) => _?.inputs) || []), [sections]);
|
|
8160
|
-
const [initialState, onSubmit] = useCreditFormAPI({
|
|
8171
|
+
const [initialState, onSubmit, isSending] = useCreditFormAPI({
|
|
8161
8172
|
step,
|
|
8162
8173
|
inputs,
|
|
8163
8174
|
onNextStep,
|
|
8164
8175
|
onFinish,
|
|
8165
8176
|
});
|
|
8166
8177
|
const [, { field, onSubmit: handleSubmit }] = useForm(initialState, { onSubmit });
|
|
8167
|
-
return isFormFinished ? (jsx(CreditFormStatusTracker, {})) : (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep({ sections, field, step, params: { calcData } }), jsx(StepsNavigationButtons, { step: step, onPrevStep: onPrevStep })] }));
|
|
8178
|
+
return isFormFinished ? (jsx(CreditFormStatusTracker, {})) : (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep({ sections, field, step, params: { calcData } }), jsx(StepsNavigationButtons, { step: step, isSending: isSending, onPrevStep: onPrevStep })] }));
|
|
8168
8179
|
});
|
|
8169
8180
|
|
|
8170
8181
|
const stepsSectionsMap = [
|
|
@@ -10107,7 +10118,7 @@
|
|
|
10107
10118
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
10108
10119
|
});
|
|
10109
10120
|
|
|
10110
|
-
const packageVersion = "0.14.
|
|
10121
|
+
const packageVersion = "0.14.714";
|
|
10111
10122
|
|
|
10112
10123
|
exports.Blocks = Blocks;
|
|
10113
10124
|
exports.ContentPage = ContentPage;
|