@redneckz/wildless-cms-uni-blocks 0.14.884 → 0.14.886
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 +220 -58
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/renderAgreementSubmit.d.ts +6 -1
- package/bundle/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +2 -1
- package/bundle/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -1
- package/bundle/components/DebitForm/DebitFormStepsData.d.ts +1 -0
- package/bundle/components/DebitForm/utils.d.ts +2 -0
- package/bundle/retail/components/DraftDialog/EmptyDraftDialog.d.ts +4 -1
- package/bundle/retail/components/DraftDialog/creditProgramCodes.d.ts +39 -0
- package/bundle/retail/components/DraftDialog/utils.d.ts +5 -34
- package/bundle/retail/model/LeadFormState.d.ts +0 -1
- package/dist/components/ApplicationForm/ApplicationForm.js +6 -1
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/renderAgreementSubmit.d.ts +6 -1
- package/dist/components/ApplicationForm/renderAgreementSubmit.js +2 -1
- package/dist/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/dist/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +2 -1
- package/dist/components/ApplicationLeadForm/EsiaLoginBanner.js +2 -2
- package/dist/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -1
- package/dist/components/ApplicationLeadForm/consents.js +0 -4
- package/dist/components/ApplicationLeadForm/consents.js.map +1 -1
- package/dist/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -1
- package/dist/components/ApplicationLeadForm/renderAgreementSubmit.js +1 -1
- package/dist/components/ApplicationLeadForm/renderAgreementSubmit.js.map +1 -1
- package/dist/components/DebitForm/DebitForm.js +5 -1
- package/dist/components/DebitForm/DebitForm.js.map +1 -1
- package/dist/components/DebitForm/DebitFormStepsData.d.ts +1 -0
- package/dist/components/DebitForm/DebitFormStepsData.js +122 -6
- package/dist/components/DebitForm/DebitFormStepsData.js.map +1 -1
- package/dist/components/DebitForm/formStateMap.js +1 -0
- package/dist/components/DebitForm/formStateMap.js.map +1 -1
- package/dist/components/DebitForm/utils.d.ts +2 -0
- package/dist/components/DebitForm/utils.js +2 -0
- package/dist/components/DebitForm/utils.js.map +1 -1
- package/dist/retail/adaptors/getPersonalInfoData.js +4 -1
- package/dist/retail/adaptors/getPersonalInfoData.js.map +1 -1
- package/dist/retail/components/DraftDialog/DraftDialog.js +7 -14
- package/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/dist/retail/components/DraftDialog/EmptyDraftDialog.d.ts +4 -1
- package/dist/retail/components/DraftDialog/EmptyDraftDialog.js +4 -2
- package/dist/retail/components/DraftDialog/EmptyDraftDialog.js.map +1 -1
- package/dist/retail/components/DraftDialog/creditProgramCodes.d.ts +39 -0
- package/dist/retail/components/DraftDialog/creditProgramCodes.js +39 -0
- package/dist/retail/components/DraftDialog/creditProgramCodes.js.map +1 -0
- package/dist/retail/components/DraftDialog/useDraftDialog.js +1 -1
- package/dist/retail/components/DraftDialog/useDraftDialog.js.map +1 -1
- package/dist/retail/components/DraftDialog/utils.d.ts +5 -34
- package/dist/retail/components/DraftDialog/utils.js +23 -24
- package/dist/retail/components/DraftDialog/utils.js.map +1 -1
- package/dist/retail/components/Fields/CardCategoryField.js +8 -2
- package/dist/retail/components/Fields/CardCategoryField.js.map +1 -1
- package/dist/retail/model/LeadFormState.d.ts +0 -1
- package/dist/ui-kit/FormField/getObjectValidator.js +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.js +6 -1
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/renderAgreementSubmit.d.ts +6 -1
- package/lib/components/ApplicationForm/renderAgreementSubmit.js +2 -1
- package/lib/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/lib/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +2 -1
- package/lib/components/ApplicationLeadForm/EsiaLoginBanner.js +2 -2
- package/lib/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -1
- package/lib/components/ApplicationLeadForm/consents.js +0 -4
- package/lib/components/ApplicationLeadForm/consents.js.map +1 -1
- package/lib/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -1
- package/lib/components/ApplicationLeadForm/renderAgreementSubmit.js +1 -1
- package/lib/components/ApplicationLeadForm/renderAgreementSubmit.js.map +1 -1
- package/lib/components/DebitForm/DebitForm.js +5 -1
- package/lib/components/DebitForm/DebitForm.js.map +1 -1
- package/lib/components/DebitForm/DebitFormStepsData.d.ts +1 -0
- package/lib/components/DebitForm/DebitFormStepsData.js +122 -6
- package/lib/components/DebitForm/DebitFormStepsData.js.map +1 -1
- package/lib/components/DebitForm/formStateMap.js +1 -0
- package/lib/components/DebitForm/formStateMap.js.map +1 -1
- package/lib/components/DebitForm/utils.d.ts +2 -0
- package/lib/components/DebitForm/utils.js +2 -0
- package/lib/components/DebitForm/utils.js.map +1 -1
- package/lib/retail/adaptors/getPersonalInfoData.js +4 -1
- package/lib/retail/adaptors/getPersonalInfoData.js.map +1 -1
- package/lib/retail/components/DraftDialog/DraftDialog.js +6 -13
- package/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/lib/retail/components/DraftDialog/EmptyDraftDialog.d.ts +4 -1
- package/lib/retail/components/DraftDialog/EmptyDraftDialog.js +4 -2
- package/lib/retail/components/DraftDialog/EmptyDraftDialog.js.map +1 -1
- package/lib/retail/components/DraftDialog/creditProgramCodes.d.ts +39 -0
- package/lib/retail/components/DraftDialog/creditProgramCodes.js +37 -0
- package/lib/retail/components/DraftDialog/creditProgramCodes.js.map +1 -0
- package/lib/retail/components/DraftDialog/useDraftDialog.js +1 -1
- package/lib/retail/components/DraftDialog/useDraftDialog.js.map +1 -1
- package/lib/retail/components/DraftDialog/utils.d.ts +5 -34
- package/lib/retail/components/DraftDialog/utils.js +21 -23
- package/lib/retail/components/DraftDialog/utils.js.map +1 -1
- package/lib/retail/components/Fields/CardCategoryField.js +9 -3
- package/lib/retail/components/Fields/CardCategoryField.js.map +1 -1
- package/lib/retail/model/LeadFormState.d.ts +0 -1
- package/lib/ui-kit/FormField/getObjectValidator.js +1 -1
- package/mobile/bundle/bundle.umd.js +220 -58
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/renderAgreementSubmit.d.ts +6 -1
- package/mobile/bundle/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +2 -1
- package/mobile/bundle/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -1
- package/mobile/bundle/components/DebitForm/DebitFormStepsData.d.ts +1 -0
- package/mobile/bundle/components/DebitForm/utils.d.ts +2 -0
- package/mobile/bundle/retail/components/DraftDialog/EmptyDraftDialog.d.ts +4 -1
- package/mobile/bundle/retail/components/DraftDialog/creditProgramCodes.d.ts +39 -0
- package/mobile/bundle/retail/components/DraftDialog/utils.d.ts +5 -34
- package/mobile/bundle/retail/model/LeadFormState.d.ts +0 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +6 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.d.ts +6 -1
- package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.js +2 -1
- package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +2 -1
- package/mobile/dist/components/ApplicationLeadForm/EsiaLoginBanner.js +2 -2
- package/mobile/dist/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/consents.js +0 -4
- package/mobile/dist/components/ApplicationLeadForm/consents.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -1
- package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.js +1 -1
- package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.js.map +1 -1
- package/mobile/dist/components/DebitForm/DebitForm.js +5 -1
- package/mobile/dist/components/DebitForm/DebitForm.js.map +1 -1
- package/mobile/dist/components/DebitForm/DebitFormStepsData.d.ts +1 -0
- package/mobile/dist/components/DebitForm/DebitFormStepsData.js +122 -6
- package/mobile/dist/components/DebitForm/DebitFormStepsData.js.map +1 -1
- package/mobile/dist/components/DebitForm/formStateMap.js +1 -0
- package/mobile/dist/components/DebitForm/formStateMap.js.map +1 -1
- package/mobile/dist/components/DebitForm/utils.d.ts +2 -0
- package/mobile/dist/components/DebitForm/utils.js +2 -0
- package/mobile/dist/components/DebitForm/utils.js.map +1 -1
- package/mobile/dist/retail/adaptors/getPersonalInfoData.js +4 -1
- package/mobile/dist/retail/adaptors/getPersonalInfoData.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js +7 -14
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/EmptyDraftDialog.d.ts +4 -1
- package/mobile/dist/retail/components/DraftDialog/EmptyDraftDialog.js +4 -2
- package/mobile/dist/retail/components/DraftDialog/EmptyDraftDialog.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/creditProgramCodes.d.ts +39 -0
- package/mobile/dist/retail/components/DraftDialog/creditProgramCodes.js +39 -0
- package/mobile/dist/retail/components/DraftDialog/creditProgramCodes.js.map +1 -0
- package/mobile/dist/retail/components/DraftDialog/useDraftDialog.js +1 -1
- package/mobile/dist/retail/components/DraftDialog/useDraftDialog.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/utils.d.ts +5 -34
- package/mobile/dist/retail/components/DraftDialog/utils.js +23 -24
- package/mobile/dist/retail/components/DraftDialog/utils.js.map +1 -1
- package/mobile/dist/retail/components/Fields/CardCategoryField.js +8 -2
- package/mobile/dist/retail/components/Fields/CardCategoryField.js.map +1 -1
- package/mobile/dist/retail/model/LeadFormState.d.ts +0 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +6 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.d.ts +6 -1
- package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.js +2 -1
- package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +2 -1
- package/mobile/lib/components/ApplicationLeadForm/EsiaLoginBanner.js +2 -2
- package/mobile/lib/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/consents.js +0 -4
- package/mobile/lib/components/ApplicationLeadForm/consents.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -1
- package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.js +1 -1
- package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.js.map +1 -1
- package/mobile/lib/components/DebitForm/DebitForm.js +5 -1
- package/mobile/lib/components/DebitForm/DebitForm.js.map +1 -1
- package/mobile/lib/components/DebitForm/DebitFormStepsData.d.ts +1 -0
- package/mobile/lib/components/DebitForm/DebitFormStepsData.js +122 -6
- package/mobile/lib/components/DebitForm/DebitFormStepsData.js.map +1 -1
- package/mobile/lib/components/DebitForm/formStateMap.js +1 -0
- package/mobile/lib/components/DebitForm/formStateMap.js.map +1 -1
- package/mobile/lib/components/DebitForm/utils.d.ts +2 -0
- package/mobile/lib/components/DebitForm/utils.js +2 -0
- package/mobile/lib/components/DebitForm/utils.js.map +1 -1
- package/mobile/lib/retail/adaptors/getPersonalInfoData.js +4 -1
- package/mobile/lib/retail/adaptors/getPersonalInfoData.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js +6 -13
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/EmptyDraftDialog.d.ts +4 -1
- package/mobile/lib/retail/components/DraftDialog/EmptyDraftDialog.js +4 -2
- package/mobile/lib/retail/components/DraftDialog/EmptyDraftDialog.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/creditProgramCodes.d.ts +39 -0
- package/mobile/lib/retail/components/DraftDialog/creditProgramCodes.js +37 -0
- package/mobile/lib/retail/components/DraftDialog/creditProgramCodes.js.map +1 -0
- package/mobile/lib/retail/components/DraftDialog/useDraftDialog.js +1 -1
- package/mobile/lib/retail/components/DraftDialog/useDraftDialog.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/utils.d.ts +5 -34
- package/mobile/lib/retail/components/DraftDialog/utils.js +21 -23
- package/mobile/lib/retail/components/DraftDialog/utils.js.map +1 -1
- package/mobile/lib/retail/components/Fields/CardCategoryField.js +9 -3
- package/mobile/lib/retail/components/Fields/CardCategoryField.js.map +1 -1
- package/mobile/lib/retail/model/LeadFormState.d.ts +0 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +4 -3
- package/mobile/src/components/ApplicationForm/renderAgreementSubmit.tsx +13 -6
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +3 -1
- package/mobile/src/components/ApplicationLeadForm/EsiaLoginBanner.tsx +16 -11
- package/mobile/src/components/ApplicationLeadForm/consents.ts +0 -4
- package/mobile/src/components/ApplicationLeadForm/renderAgreementSubmit.tsx +9 -5
- package/mobile/src/components/DebitForm/DebitForm.tsx +6 -1
- package/mobile/src/components/DebitForm/DebitFormStepsData.tsx +123 -6
- package/mobile/src/components/DebitForm/formStateMap.tsx +1 -0
- package/mobile/src/components/DebitForm/utils.ts +2 -0
- package/mobile/src/retail/adaptors/getPersonalInfoData.tsx +4 -1
- package/mobile/src/retail/components/DraftDialog/DraftDialog.tsx +6 -13
- package/mobile/src/retail/components/DraftDialog/EmptyDraftDialog.tsx +8 -2
- package/mobile/src/retail/components/DraftDialog/creditProgramCodes.ts +40 -0
- package/mobile/src/retail/components/DraftDialog/useDraftDialog.tsx +1 -1
- package/mobile/src/retail/components/DraftDialog/utils.ts +22 -27
- package/mobile/src/retail/components/Fields/CardCategoryField.tsx +14 -3
- package/mobile/src/retail/model/LeadFormState.ts +0 -1
- package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +1 -1
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationForm.example.json +1 -1
- package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +1 -1
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +1 -1
- package/src/components/ApplicationForm/ApplicationForm.tsx +4 -3
- package/src/components/ApplicationForm/renderAgreementSubmit.tsx +13 -6
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +3 -1
- package/src/components/ApplicationLeadForm/EsiaLoginBanner.tsx +16 -11
- package/src/components/ApplicationLeadForm/consents.ts +0 -4
- package/src/components/ApplicationLeadForm/renderAgreementSubmit.tsx +9 -5
- package/src/components/DebitForm/DebitForm.tsx +6 -1
- package/src/components/DebitForm/DebitFormStepsData.tsx +123 -6
- package/src/components/DebitForm/formStateMap.tsx +1 -0
- package/src/components/DebitForm/utils.ts +2 -0
- package/src/retail/adaptors/getPersonalInfoData.tsx +4 -1
- package/src/retail/components/DraftDialog/DraftDialog.tsx +6 -13
- package/src/retail/components/DraftDialog/EmptyDraftDialog.tsx +8 -2
- package/src/retail/components/DraftDialog/creditProgramCodes.ts +40 -0
- package/src/retail/components/DraftDialog/useDraftDialog.tsx +1 -1
- package/src/retail/components/DraftDialog/utils.ts +22 -27
- package/src/retail/components/Fields/CardCategoryField.tsx +14 -3
- package/src/retail/model/LeadFormState.ts +0 -1
- package/src/ui-kit/FormField/getObjectValidator.tsx +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPersonalInfoData.js","sourceRoot":"","sources":["../../../src/retail/adaptors/getPersonalInfoData.tsx"],"names":[],"mappings":";;AAAA,uDAAoD;AACpD,yDAAsD;AAGtD,mCAA0E;AAEnE,MAAM,mBAAmB,GAAG,CAAC,QAAuB,EAAwB,EAAE;IACnF,MAAM,EACJ,IAAI,EACJ,OAAO,EACP,UAAU,EACV,eAAe,GAAG,EAAE,EACpB,KAAK,GAAG,EAAE,EACV,KAAK,EACL,GAAG,EACH,UAAU,EACV,YAAY,GAAG,EAAE,EACjB,WAAW,EACX,SAAS,EACT,QAAQ,EACR,kBAAkB,EAClB,SAAS,EACT,2BAA2B,EAC3B,OAAO,EACP,mBAAmB,EACnB,WAAW,EACX,YAAY,GACb,GAAG,QAAQ,CAAC;IAEb,OAAO;QACL,SAAS,EAAE,IAAA,uBAAU,EAAC,eAAe,EAAE,IAAI,CAAC;QAC5C,OAAO,EAAE,UAAU;QACnB,IAAI;QACJ,OAAO;QACP,UAAU;QACV,YAAY,EAAE,IAAA,uBAAU,EAAC,YAAY,EAAE,IAAI,CAAC;QAC5C,WAAW;QACX,SAAS;QACT,QAAQ;QACR,kBAAkB,EAAE,kBAAkB,EAAE,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC;QACxD,gBAAgB,EAAE,SAAS;QAC3B,gBAAgB,EAAE,2BAA2B;YAC3C,CAAC,CAAC,IAAA,uBAAU,EAAC,2BAA2B,EAAE,IAAI,CAAC;YAC/C,CAAC,CAAC,SAAS;QACb,YAAY,EAAE,YAAY;QAC1B,WAAW,EAAE,OAAO;QACpB,mBAAmB,EAAE,IAAA,8BAAsB,EAAC;YAC1C,KAAK,EAAE,IAAA,yBAAW,EAAC,KAAK,CAAC;YACzB,KAAK;SACN,CAAC;QACF,oBAAoB,EAAE,IAAA,+BAAuB,EAAC,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"getPersonalInfoData.js","sourceRoot":"","sources":["../../../src/retail/adaptors/getPersonalInfoData.tsx"],"names":[],"mappings":";;AAAA,uDAAoD;AACpD,yDAAsD;AAGtD,mCAA0E;AAEnE,MAAM,mBAAmB,GAAG,CAAC,QAAuB,EAAwB,EAAE;IACnF,MAAM,EACJ,IAAI,EACJ,OAAO,EACP,UAAU,EACV,eAAe,GAAG,EAAE,EACpB,KAAK,GAAG,EAAE,EACV,KAAK,EACL,GAAG,EACH,UAAU,EACV,YAAY,GAAG,EAAE,EACjB,WAAW,EACX,SAAS,EACT,QAAQ,EACR,kBAAkB,EAClB,SAAS,EACT,2BAA2B,EAC3B,OAAO,EACP,mBAAmB,EACnB,WAAW,EACX,YAAY,GACb,GAAG,QAAQ,CAAC;IAEb,OAAO;QACL,SAAS,EAAE,IAAA,uBAAU,EAAC,eAAe,EAAE,IAAI,CAAC;QAC5C,OAAO,EAAE,UAAU;QACnB,IAAI;QACJ,OAAO;QACP,UAAU;QACV,YAAY,EAAE,IAAA,uBAAU,EAAC,YAAY,EAAE,IAAI,CAAC;QAC5C,WAAW;QACX,SAAS;QACT,QAAQ;QACR,kBAAkB,EAAE,kBAAkB,EAAE,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC;QACxD,gBAAgB,EAAE,SAAS;QAC3B,gBAAgB,EAAE,2BAA2B;YAC3C,CAAC,CAAC,IAAA,uBAAU,EAAC,2BAA2B,EAAE,IAAI,CAAC;YAC/C,CAAC,CAAC,SAAS;QACb,YAAY,EAAE,YAAY;QAC1B,WAAW,EAAE,OAAO;QACpB,mBAAmB,EAAE,IAAA,8BAAsB,EAAC;YAC1C,KAAK,EAAE,IAAA,yBAAW,EAAC,KAAK,CAAC;YACzB,KAAK;SACN,CAAC;QACF,oBAAoB,EAAE,IAAA,+BAAuB,EAAC;YAC5C,mBAAmB;YACnB,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,WAAW;SAC9D,CAAC;QACF,QAAQ,EAAE,GAAG;YACX,CAAC,CAAC;gBACE,GAAG,EAAE,GAAG,KAAK,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO;aACtC;YACH,CAAC,CAAC,SAAS;KACd,CAAC;AACJ,CAAC,CAAC;AAtDW,QAAA,mBAAmB,uBAsD9B"}
|
|
@@ -9,6 +9,7 @@ const Heading_1 = require("../../../ui-kit/Heading/Heading");
|
|
|
9
9
|
const formatDate_1 = require("../../../utils/formatDate");
|
|
10
10
|
const noop_1 = require("../../../utils/noop");
|
|
11
11
|
const useRetailFormStore_1 = require("../../hooks/useRetailFormStore");
|
|
12
|
+
const creditProgramCodes_1 = require("./creditProgramCodes");
|
|
12
13
|
const DraftActionButton_1 = require("./DraftActionButton");
|
|
13
14
|
const parseDraftTask_1 = require("./parseDraftTask");
|
|
14
15
|
const utils_1 = require("./utils");
|
|
@@ -16,17 +17,9 @@ exports.DraftDialog = (0, uni_jsx_1.JSX)(function ({ task, isFromLead = false, i
|
|
|
16
17
|
const retailFormStore = (0, useRetailFormStore_1.useRetailFormStore)();
|
|
17
18
|
const navigator = (0, locationNavigator_1.locationNavigator)();
|
|
18
19
|
const { participants, creditProgram, createdDate = '', id: taskId } = task;
|
|
19
|
-
const programmId =
|
|
20
|
-
const isCredit = Boolean(
|
|
21
|
-
const
|
|
22
|
-
if (isDebit) {
|
|
23
|
-
return '/debit-card-lead';
|
|
24
|
-
}
|
|
25
|
-
else if (isCredit) {
|
|
26
|
-
return '/credit-lead';
|
|
27
|
-
}
|
|
28
|
-
return '/credit-card-lead';
|
|
29
|
-
};
|
|
20
|
+
const programmId = creditProgramCodes_1.creditProgramCodeToProductIdMap[creditProgram.code];
|
|
21
|
+
const isCredit = Boolean(creditProgramCodes_1.creditCodesToProgrammIdMap[creditProgram.code]);
|
|
22
|
+
const productData = (0, utils_1.getProductData)(isDebit, isCredit);
|
|
30
23
|
const { id: participantId, profile } = participants[0];
|
|
31
24
|
const handleGoToDraft = (0, hooks_1.useCallback)(() => {
|
|
32
25
|
const taskFromDraft = (0, parseDraftTask_1.parseDraftTask)(task);
|
|
@@ -38,11 +31,11 @@ exports.DraftDialog = (0, uni_jsx_1.JSX)(function ({ task, isFromLead = false, i
|
|
|
38
31
|
if (profile?.id) {
|
|
39
32
|
sendAspects(profile.id, taskId);
|
|
40
33
|
}
|
|
41
|
-
navigator.assign(
|
|
34
|
+
navigator.assign(productData.nextStepLink);
|
|
42
35
|
}, []);
|
|
43
36
|
const handleGoToNewTask = (0, hooks_1.useCallback)(() => {
|
|
44
|
-
navigator.assign(
|
|
37
|
+
navigator.assign(productData.newTaskLink);
|
|
45
38
|
}, []);
|
|
46
|
-
return ((0, jsx_runtime_1.jsx)(Dialog_1.Dialog, { className: "my-6xl max-w-4xl w-full min-h-fit mx-auto rounded-xl py-0", onClose: onClose, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-lg items-center mt-xs mx-6xl", children: [(0, jsx_runtime_1.jsx)(Heading_1.Heading, { className: "whitespace-pre-wrap text-center", title: "\u041D\u0430\u0448\u043B\u0438 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u044F\u0432\u043A\u0438", headingType: "h5" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-m max-w-lg", children: [(0, jsx_runtime_1.jsx)(DraftActionButton_1.DraftActionButton, { title: "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A\u0430", icon: "BankColorIcon", description: createdDate ? `Черновик от ${(0, formatDate_1.formatDate)(new Date(createdDate))}` : '', onClick: handleGoToDraft }), (0, jsx_runtime_1.jsx)(DraftActionButton_1.DraftActionButton, { title: isFromLead ? 'Продолжить заполнение текущей заявки' : 'Создать новую заявку', icon: "NewLoanIcon", description:
|
|
39
|
+
return ((0, jsx_runtime_1.jsx)(Dialog_1.Dialog, { className: "my-6xl max-w-4xl w-full min-h-fit mx-auto rounded-xl py-0", onClose: onClose, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-lg items-center mt-xs mx-6xl", children: [(0, jsx_runtime_1.jsx)(Heading_1.Heading, { className: "whitespace-pre-wrap text-center", title: "\u041D\u0430\u0448\u043B\u0438 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u044F\u0432\u043A\u0438", headingType: "h5" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-m max-w-lg", children: [(0, jsx_runtime_1.jsx)(DraftActionButton_1.DraftActionButton, { title: "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A\u0430", icon: "BankColorIcon", description: createdDate ? `Черновик от ${(0, formatDate_1.formatDate)(new Date(createdDate))}` : '', onClick: handleGoToDraft }), (0, jsx_runtime_1.jsx)(DraftActionButton_1.DraftActionButton, { title: isFromLead ? 'Продолжить заполнение текущей заявки' : 'Создать новую заявку', icon: "NewLoanIcon", description: productData.description, onClick: isFromLead ? onClose : handleGoToNewTask })] })] }) }));
|
|
47
40
|
});
|
|
48
41
|
//# sourceMappingURL=DraftDialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DraftDialog.js","sourceRoot":"","sources":["../../../../src/retail/components/DraftDialog/DraftDialog.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA0D;AAC1D,2EAAwE;AAExE,iEAA8D;AAC9D,6DAA0D;AAC1D,0DAAuD;AACvD,8CAA2C;AAE3C,uEAAoE;AACpE,2DAAwD;AACxD,qDAAkD;AAClD,
|
|
1
|
+
{"version":3,"file":"DraftDialog.js","sourceRoot":"","sources":["../../../../src/retail/components/DraftDialog/DraftDialog.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA0D;AAC1D,2EAAwE;AAExE,iEAA8D;AAC9D,6DAA0D;AAC1D,0DAAuD;AACvD,8CAA2C;AAE3C,uEAAoE;AACpE,6DAAmG;AACnG,2DAAwD;AACxD,qDAAkD;AAClD,mCAAyC;AAS5B,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,UAAU,EACzD,IAAI,EACJ,UAAU,GAAG,KAAK,EAClB,OAAO,GAAG,KAAK,EACf,WAAW,GAAG,WAAI,EAClB,OAAO,GAAG,WAAI,GACf;IACC,MAAM,eAAe,GAAG,IAAA,uCAAkB,GAAE,CAAC;IAC7C,MAAM,SAAS,GAAG,IAAA,qCAAiB,GAAE,CAAC;IAEtC,MAAM,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,GAAG,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAE3E,MAAM,UAAU,GAAW,oDAA+B,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAC/E,MAAM,QAAQ,GAAG,OAAO,CAAC,+CAA0B,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;IACzE,MAAM,WAAW,GAAG,IAAA,sBAAc,EAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IAEtD,MAAM,EAAE,EAAE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AC,CAAC,EAAE,EAClF,OAAO,EAAE,eAAe,GACxB,EACF,uBAAC,qCAAiB,IAChB,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,sCAAsC,CAAC,CAAC,CAAC,sBAAsB,EACnF,IAAI,EAAC,aAAa,EAClB,WAAW,EAAE,WAAW,CAAC,WAAW,EACpC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,iBAAiB,GACjD,IACE,IACF,GACC,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
import type { OnCloseProps } from '../../../model/OnCloseProps';
|
|
2
|
-
export
|
|
2
|
+
export interface EmptyDraftDialogProps extends OnCloseProps {
|
|
3
|
+
isDebit?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const EmptyDraftDialog: import("@redneckz/uni-jsx").UNIComponent<EmptyDraftDialogProps, any, any>;
|
|
@@ -9,10 +9,12 @@ const Dialog_1 = require("../../../ui-kit/DialogManager/Dialog");
|
|
|
9
9
|
const Heading_1 = require("../../../ui-kit/Heading/Heading");
|
|
10
10
|
const Paragraph_1 = require("../../../ui-kit/Paragraph/Paragraph");
|
|
11
11
|
const noop_1 = require("../../../utils/noop");
|
|
12
|
-
|
|
12
|
+
const utils_1 = require("./utils");
|
|
13
|
+
exports.EmptyDraftDialog = (0, uni_jsx_1.JSX)(function ({ isDebit, onClose = noop_1.noop }) {
|
|
13
14
|
const navigator = (0, locationNavigator_1.locationNavigator)();
|
|
15
|
+
const productData = (0, utils_1.getProductData)(isDebit);
|
|
14
16
|
const handleGoNewTask = (0, hooks_1.useCallback)(() => {
|
|
15
|
-
navigator.assign(
|
|
17
|
+
navigator.assign(productData.newTaskLink);
|
|
16
18
|
}, []);
|
|
17
19
|
const handleGoMainPage = (0, hooks_1.useCallback)(() => {
|
|
18
20
|
navigator.assign('/');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmptyDraftDialog.js","sourceRoot":"","sources":["../../../../src/retail/components/DraftDialog/EmptyDraftDialog.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA0D;AAC1D,2EAAwE;AAExE,0DAAuD;AACvD,iEAA8D;AAC9D,6DAA0D;AAC1D,mEAAgE;AAChE,8CAA2C;
|
|
1
|
+
{"version":3,"file":"EmptyDraftDialog.js","sourceRoot":"","sources":["../../../../src/retail/components/DraftDialog/EmptyDraftDialog.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA0D;AAC1D,2EAAwE;AAExE,0DAAuD;AACvD,iEAA8D;AAC9D,6DAA0D;AAC1D,mEAAgE;AAChE,8CAA2C;AAC3C,mCAAyC;AAM5B,QAAA,gBAAgB,GAAG,IAAA,aAAG,EAAwB,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,WAAI,EAAE;IAC9F,MAAM,SAAS,GAAG,IAAA,qCAAiB,GAAE,CAAC;IACtC,MAAM,WAAW,GAAG,IAAA,sBAAc,EAAC,OAAO,CAAC,CAAC;IAE5C,MAAM,eAAe,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE;QACvC,SAAS,CAAC,MAAM,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;IAC5C,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,gBAAgB,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE;QACxC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACxB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,uBAAC,eAAM,IACL,SAAS,EAAC,kEAAkE,EAC5E,OAAO,EAAE,OAAO,YAEhB,iCAAK,SAAS,EAAC,sBAAsB,aACnC,uBAAC,iBAAO,IAAC,SAAS,EAAC,aAAa,EAAC,KAAK,EAAC,8FAAmB,EAAC,WAAW,EAAC,IAAI,GAAG,EAC9E,uBAAC,qBAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,aAAa,0nBAGhC,EAEZ,uBAAC,eAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAC,QAAQ,EAAC,OAAO,EAAE,eAAe,2IAExD,EAET,uBAAC,eAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAC,WAAW,EAAC,SAAS,EAAC,QAAQ,EAAC,OAAO,EAAE,gBAAgB,+HAE7E,IACL,GACC,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare const creditCodesToProgrammIdMap: {
|
|
2
|
+
credit_cash: string;
|
|
3
|
+
credit_cash_single_doc: string;
|
|
4
|
+
credit_mcx: string;
|
|
5
|
+
family_offer_credit: string;
|
|
6
|
+
gas_engine_fuel: string;
|
|
7
|
+
pension_credit: string;
|
|
8
|
+
ref_credit: string;
|
|
9
|
+
ref_credit_single_doc: string;
|
|
10
|
+
self_employed: string;
|
|
11
|
+
summer_cash: string;
|
|
12
|
+
summer_cash_pens: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const creditProgramCodeToProductIdMap: {
|
|
15
|
+
amur_debit_card: string;
|
|
16
|
+
owner_debit_card: string;
|
|
17
|
+
pension_debit_card: string;
|
|
18
|
+
salary_debit_card: string;
|
|
19
|
+
vordi_debit_card: string;
|
|
20
|
+
eco_debit_card: string;
|
|
21
|
+
junior_debit_card: string;
|
|
22
|
+
appetit_debit_card: string;
|
|
23
|
+
owner_debit_card_plus: string;
|
|
24
|
+
owner_debit_card_pens_plus: string;
|
|
25
|
+
amur_card: string;
|
|
26
|
+
owner_card: string;
|
|
27
|
+
travel_card: string;
|
|
28
|
+
credit_cash: string;
|
|
29
|
+
credit_cash_single_doc: string;
|
|
30
|
+
credit_mcx: string;
|
|
31
|
+
family_offer_credit: string;
|
|
32
|
+
gas_engine_fuel: string;
|
|
33
|
+
pension_credit: string;
|
|
34
|
+
ref_credit: string;
|
|
35
|
+
ref_credit_single_doc: string;
|
|
36
|
+
self_employed: string;
|
|
37
|
+
summer_cash: string;
|
|
38
|
+
summer_cash_pens: string;
|
|
39
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* eslint-disable camelcase */
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.creditProgramCodeToProductIdMap = exports.creditCodesToProgrammIdMap = void 0;
|
|
4
|
+
exports.creditCodesToProgrammIdMap = {
|
|
5
|
+
credit_cash: '10',
|
|
6
|
+
credit_cash_single_doc: '28',
|
|
7
|
+
credit_mcx: '39',
|
|
8
|
+
family_offer_credit: '41',
|
|
9
|
+
gas_engine_fuel: '33',
|
|
10
|
+
pension_credit: '12',
|
|
11
|
+
ref_credit: '11',
|
|
12
|
+
ref_credit_single_doc: '29',
|
|
13
|
+
self_employed: '34',
|
|
14
|
+
summer_cash: '35',
|
|
15
|
+
summer_cash_pens: '36',
|
|
16
|
+
};
|
|
17
|
+
const debitCardCodesToProgrammIdMap = {
|
|
18
|
+
amur_debit_card: '17',
|
|
19
|
+
owner_debit_card: '16',
|
|
20
|
+
pension_debit_card: '18',
|
|
21
|
+
salary_debit_card: '38',
|
|
22
|
+
vordi_debit_card: '40',
|
|
23
|
+
eco_debit_card: '42',
|
|
24
|
+
junior_debit_card: '43',
|
|
25
|
+
appetit_debit_card: '44',
|
|
26
|
+
owner_debit_card_plus: '46',
|
|
27
|
+
owner_debit_card_pens_plus: '47',
|
|
28
|
+
};
|
|
29
|
+
const cardCodesToProgrammIdMap = {
|
|
30
|
+
amur_card: '14',
|
|
31
|
+
owner_card: '13',
|
|
32
|
+
travel_card: '15',
|
|
33
|
+
};
|
|
34
|
+
exports.creditProgramCodeToProductIdMap = {
|
|
35
|
+
...exports.creditCodesToProgrammIdMap,
|
|
36
|
+
...cardCodesToProgrammIdMap,
|
|
37
|
+
...debitCardCodesToProgrammIdMap,
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=creditProgramCodes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"creditProgramCodes.js","sourceRoot":"","sources":["../../../../src/retail/components/DraftDialog/creditProgramCodes.ts"],"names":[],"mappings":"AAAA,8BAA8B;;;AAEjB,QAAA,0BAA0B,GAAG;IACxC,WAAW,EAAE,IAAI;IACjB,sBAAsB,EAAE,IAAI;IAC5B,UAAU,EAAE,IAAI;IAChB,mBAAmB,EAAE,IAAI;IACzB,eAAe,EAAE,IAAI;IACrB,cAAc,EAAE,IAAI;IACpB,UAAU,EAAE,IAAI;IAChB,qBAAqB,EAAE,IAAI;IAC3B,aAAa,EAAE,IAAI;IACnB,WAAW,EAAE,IAAI;IACjB,gBAAgB,EAAE,IAAI;CACvB,CAAC;AAEF,MAAM,6BAA6B,GAAG;IACpC,eAAe,EAAE,IAAI;IACrB,gBAAgB,EAAE,IAAI;IACtB,kBAAkB,EAAE,IAAI;IACxB,iBAAiB,EAAE,IAAI;IACvB,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE,IAAI;IACpB,iBAAiB,EAAE,IAAI;IACvB,kBAAkB,EAAE,IAAI;IACxB,qBAAqB,EAAE,IAAI;IAC3B,0BAA0B,EAAE,IAAI;CACjC,CAAC;AAEF,MAAM,wBAAwB,GAAG;IAC/B,SAAS,EAAE,IAAI;IACf,UAAU,EAAE,IAAI;IAChB,WAAW,EAAE,IAAI;CAClB,CAAC;AAEW,QAAA,+BAA+B,GAAG;IAC7C,GAAG,kCAA0B;IAC7B,GAAG,wBAAwB;IAC3B,GAAG,6BAA6B;CACjC,CAAC"}
|
|
@@ -10,7 +10,7 @@ const useDraftDialog = () => {
|
|
|
10
10
|
open: ({ task, isFromLead, isDebit, onClose, sendAspects }) => {
|
|
11
11
|
task
|
|
12
12
|
? openDraftDialog({ task, isFromLead, isDebit, onClose, sendAspects })
|
|
13
|
-
: openEmptyDraftDialog({});
|
|
13
|
+
: openEmptyDraftDialog({ isDebit });
|
|
14
14
|
},
|
|
15
15
|
};
|
|
16
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDraftDialog.js","sourceRoot":"","sources":["../../../../src/retail/components/DraftDialog/useDraftDialog.tsx"],"names":[],"mappings":";;AAAA,uEAAoE;AACpE,+CAAmE;AACnE,yDAAsD;AAE/C,MAAM,cAAc,GAAG,GAAG,EAAE;IACjC,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,IAAA,qBAAS,EAAC,yBAAW,CAAC,CAAC;IACzD,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,GAAG,IAAA,qBAAS,EAAC,mCAAgB,CAAC,CAAC;IAEnE,OAAO;QACL,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAA6B,EAAE,EAAE;YACvF,IAAI;gBACF,CAAC,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;gBACtE,CAAC,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"useDraftDialog.js","sourceRoot":"","sources":["../../../../src/retail/components/DraftDialog/useDraftDialog.tsx"],"names":[],"mappings":";;AAAA,uEAAoE;AACpE,+CAAmE;AACnE,yDAAsD;AAE/C,MAAM,cAAc,GAAG,GAAG,EAAE;IACjC,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,IAAA,qBAAS,EAAC,yBAAW,CAAC,CAAC;IACzD,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,GAAG,IAAA,qBAAS,EAAC,mCAAgB,CAAC,CAAC;IAEnE,OAAO;QACL,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAA6B,EAAE,EAAE;YACvF,IAAI;gBACF,CAAC,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;gBACtE,CAAC,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;QACxC,CAAC;KACF,CAAC;AACJ,CAAC,CAAC;AAXW,QAAA,cAAc,kBAWzB"}
|
|
@@ -34,40 +34,6 @@ export declare const INCOME_CERTIFICATE: {
|
|
|
34
34
|
PFR_CERTIFICATE: string;
|
|
35
35
|
OTHER: string;
|
|
36
36
|
};
|
|
37
|
-
export declare const creditCodesToProgrammIdMap: {
|
|
38
|
-
credit_cash: string;
|
|
39
|
-
credit_cash_single_doc: string;
|
|
40
|
-
credit_mcx: string;
|
|
41
|
-
family_offer_credit: string;
|
|
42
|
-
gas_engine_fuel: string;
|
|
43
|
-
pension_credit: string;
|
|
44
|
-
ref_credit: string;
|
|
45
|
-
ref_credit_single_doc: string;
|
|
46
|
-
self_employed: string;
|
|
47
|
-
summer_cash: string;
|
|
48
|
-
summer_cash_pens: string;
|
|
49
|
-
};
|
|
50
|
-
export declare const cardCodesToProgrammIdMap: {
|
|
51
|
-
amur_card: string;
|
|
52
|
-
owner_card: string;
|
|
53
|
-
travel_card: string;
|
|
54
|
-
};
|
|
55
|
-
export declare const creditProgramCodeToProductIdMap: {
|
|
56
|
-
amur_card: string;
|
|
57
|
-
owner_card: string;
|
|
58
|
-
travel_card: string;
|
|
59
|
-
credit_cash: string;
|
|
60
|
-
credit_cash_single_doc: string;
|
|
61
|
-
credit_mcx: string;
|
|
62
|
-
family_offer_credit: string;
|
|
63
|
-
gas_engine_fuel: string;
|
|
64
|
-
pension_credit: string;
|
|
65
|
-
ref_credit: string;
|
|
66
|
-
ref_credit_single_doc: string;
|
|
67
|
-
self_employed: string;
|
|
68
|
-
summer_cash: string;
|
|
69
|
-
summer_cash_pens: string;
|
|
70
|
-
};
|
|
71
37
|
export declare const getParticipantIncomes: (participantIncomes: Participant['participantIncomes']) => {
|
|
72
38
|
wages: string | undefined;
|
|
73
39
|
mandatoryPayments: string | undefined;
|
|
@@ -146,3 +112,8 @@ export declare const getParticipantGender: (gender: Participant['genderCd']) =>
|
|
|
146
112
|
sex: string;
|
|
147
113
|
} | null;
|
|
148
114
|
export declare const getSelectValue: (option?: DictionaryItem, map?: Record<string, string>) => Option | undefined;
|
|
115
|
+
export declare const getProductData: (isDebit?: boolean, isCredit?: boolean) => {
|
|
116
|
+
nextStepLink: string;
|
|
117
|
+
newTaskLink: string;
|
|
118
|
+
description: string;
|
|
119
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/* eslint-disable camelcase */
|
|
2
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getSelectValue = exports.getParticipantGender = exports.getParticipantContacts = exports.getParticipantAddresses = exports.getParticipantIncomes = exports.
|
|
2
|
+
exports.getProductData = exports.getSelectValue = exports.getParticipantGender = exports.getParticipantContacts = exports.getParticipantAddresses = exports.getParticipantIncomes = exports.INCOME_CERTIFICATE = exports.EMPLOYMENT_TYPE = void 0;
|
|
4
3
|
const getFamilyStatusAndIncomeData_1 = require("../../adaptors/getFamilyStatusAndIncomeData");
|
|
5
4
|
exports.EMPLOYMENT_TYPE = {
|
|
6
5
|
WORK: 'Работаю',
|
|
@@ -12,28 +11,6 @@ exports.INCOME_CERTIFICATE = {
|
|
|
12
11
|
PFR_CERTIFICATE: 'Получаю зарплату на счет/карту в другом банке',
|
|
13
12
|
OTHER: 'Другое',
|
|
14
13
|
};
|
|
15
|
-
exports.creditCodesToProgrammIdMap = {
|
|
16
|
-
credit_cash: '10',
|
|
17
|
-
credit_cash_single_doc: '28',
|
|
18
|
-
credit_mcx: '39',
|
|
19
|
-
family_offer_credit: '41',
|
|
20
|
-
gas_engine_fuel: '33',
|
|
21
|
-
pension_credit: '12',
|
|
22
|
-
ref_credit: '11',
|
|
23
|
-
ref_credit_single_doc: '29',
|
|
24
|
-
self_employed: '34',
|
|
25
|
-
summer_cash: '35',
|
|
26
|
-
summer_cash_pens: '36',
|
|
27
|
-
};
|
|
28
|
-
exports.cardCodesToProgrammIdMap = {
|
|
29
|
-
amur_card: '14',
|
|
30
|
-
owner_card: '13',
|
|
31
|
-
travel_card: '15',
|
|
32
|
-
};
|
|
33
|
-
exports.creditProgramCodeToProductIdMap = {
|
|
34
|
-
...exports.creditCodesToProgrammIdMap,
|
|
35
|
-
...exports.cardCodesToProgrammIdMap,
|
|
36
|
-
};
|
|
37
14
|
const getParticipantIncomes = (participantIncomes) => {
|
|
38
15
|
const wages = participantIncomes?.find((contact) => contact.incomeTypeCd.key === "WAGES" /* EIncomesType.WAGES */)?.value;
|
|
39
16
|
const mandatoryPayments = participantIncomes?.find((contact) => contact.incomeTypeCd.key === "MANDATORY_PAYMENTS" /* EIncomesType.MANDATORY_PAYMENTS */)?.value;
|
|
@@ -94,4 +71,26 @@ const getSelectValue = (option, map) => {
|
|
|
94
71
|
: undefined;
|
|
95
72
|
};
|
|
96
73
|
exports.getSelectValue = getSelectValue;
|
|
74
|
+
const getProductData = (isDebit = false, isCredit = false) => {
|
|
75
|
+
if (isDebit) {
|
|
76
|
+
return {
|
|
77
|
+
nextStepLink: '/debit-card-lead',
|
|
78
|
+
newTaskLink: '/natural/debetcards',
|
|
79
|
+
description: 'На дебетовую карту',
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
else if (isCredit) {
|
|
83
|
+
return {
|
|
84
|
+
nextStepLink: '/credit-lead',
|
|
85
|
+
newTaskLink: '/natural/loans/all-goals',
|
|
86
|
+
description: 'На получение кредита',
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
nextStepLink: '/credit-card-lead',
|
|
91
|
+
newTaskLink: '/natural/creditcards/svoya',
|
|
92
|
+
description: 'На получение кредитной карты',
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
exports.getProductData = getProductData;
|
|
97
96
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/retail/components/DraftDialog/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/retail/components/DraftDialog/utils.ts"],"names":[],"mappings":";;AACA,8FAAiF;AA8BpE,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,WAAW;CACrB,CAAC;AAEW,QAAA,kBAAkB,GAAG;IAChC,cAAc,EAAE,uCAAuC;IACvD,mBAAmB,EAAE,qCAAqC;IAC1D,eAAe,EAAE,+CAA+C;IAChE,KAAK,EAAE,QAAQ;CAChB,CAAC;AAEK,MAAM,qBAAqB,GAAG,CAAC,kBAAqD,EAAE,EAAE;IAC7F,MAAM,KAAK,GAAG,kBAAkB,EAAE,IAAI,CACpC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,GAAG,qCAAuB,CAC7D,EAAE,KAAK,CAAC;IACT,MAAM,iBAAiB,GAAG,kBAAkB,EAAE,IAAI,CAChD,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,GAAG,+DAAoC,CAC1E,EAAE,KAAK,CAAC;IACT,MAAM,gBAAgB,GAAG,kBAAkB,EAAE,IAAI,CAC/C,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,GAAG,6DAAmC,CACzE,EAAE,KAAK,CAAC;IACT,MAAM,WAAW,GAAG,kBAAkB,EAAE,IAAI,CAC1C,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,GAAG,mDAA8B,CACpE,EAAE,KAAK,CAAC;IACT,MAAM,aAAa,GAAG,kBAAkB,EAAE,IAAI,CAC5C,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,GAAG,uDAAgC,CACtE,EAAE,KAAK,CAAC;IACT,MAAM,YAAY,GAAG,kBAAkB,EAAE,IAAI,CAC3C,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAA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O;YACL,YAAY,EAAE,cAAc;YAC5B,WAAW,EAAE,0BAA0B;YACvC,WAAW,EAAE,sBAAsB;SACpC,CAAC;KACH;IAED,OAAO;QACL,YAAY,EAAE,mBAAmB;QACjC,WAAW,EAAE,4BAA4B;QACzC,WAAW,EAAE,8BAA8B;KAC5C,CAAC;AACJ,CAAC,CAAC;AApBW,QAAA,cAAc,kBAoBzB"}
|
|
@@ -12,17 +12,23 @@ exports.CardCategoryField = (0, uni_jsx_1.JSX)(({ field, input }) => {
|
|
|
12
12
|
const [programId] = (0, useLocalStorage_1.useLocalStorage)('programId');
|
|
13
13
|
const { value: selectedCardCategory, onChange: cardCategoryChange } = field('cardCategory');
|
|
14
14
|
const selectedPaymentSystem = field('paymentSystem')?.value?.key;
|
|
15
|
+
const getCardCategoryValue = (0, hooks_1.useCallback)((fetchedCardTypes) => fetchedCardTypes.length === 1
|
|
16
|
+
? {
|
|
17
|
+
key: fetchedCardTypes[0].key,
|
|
18
|
+
text: fetchedCardTypes[0].value,
|
|
19
|
+
}
|
|
20
|
+
: null, []);
|
|
15
21
|
(0, hooks_1.useEffect)(() => {
|
|
16
22
|
if (selectedPaymentSystem && programId) {
|
|
17
23
|
(async () => {
|
|
18
24
|
const fetchedCardTypes = await (0, getCardTypes_1.getCardTypes)(selectedPaymentSystem, programId);
|
|
19
25
|
setCardTypes(fetchedCardTypes);
|
|
20
26
|
if (!isValidCardCategory(fetchedCardTypes, selectedCardCategory)) {
|
|
21
|
-
cardCategoryChange
|
|
27
|
+
cardCategoryChange?.(getCardCategoryValue(fetchedCardTypes));
|
|
22
28
|
}
|
|
23
29
|
})();
|
|
24
30
|
}
|
|
25
|
-
}, [selectedPaymentSystem]);
|
|
31
|
+
}, [selectedPaymentSystem, getCardCategoryValue]);
|
|
26
32
|
const description = (0, hooks_1.useMemo)(() => cardTypes?.find((_) => _.key === selectedCardCategory?.key)?.description, [cardTypes, selectedCardCategory]);
|
|
27
33
|
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(SelectField_1.SelectField, { field: field, source: cardTypes, label: "\u041A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u044F \u043A\u0430\u0440\u0442\u044B", fieldName: "cardCategory", input: input }), description ? (0, jsx_runtime_1.jsx)(InfoCard_1.InfoCard, { __html: description }) : null] }));
|
|
28
34
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardCategoryField.js","sourceRoot":"","sources":["../../../../src/retail/components/Fields/CardCategoryField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"CardCategoryField.js","sourceRoot":"","sources":["../../../../src/retail/components/Fields/CardCategoryField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAwF;AACxF,oEAAiE;AAEjE,gEAA6D;AAE7D,yDAAyE;AACzE,+CAA4C;AAE/B,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE;IAC1E,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAAiB,EAAE,CAAC,CAAC;IAC/D,MAAM,CAAC,SAAS,CAAC,GAAG,IAAA,iCAAe,EAAS,WAAW,CAAC,CAAC;IACzD,MAAM,EAAE,KAAK,EAAE,oBAAoB,EAAE,QAAQ,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC;IAC5F,MAAM,qBAAqB,GAAG,KAAK,CAAC,eAAe,CAAC,EAAE,KAAK,EAAE,GAAG,CAAC;IAEjE,MAAM,oBAAoB,GAAG,IAAA,mBAAW,EACtC,CAAC,gBAAgC,EAAE,EAAE,CACnC,gBAAgB,CAAC,MAAM,KAAK,CAAC;QAC3B,CAAC,CAAC;YACE,GAAG,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,GAAG;YAC5B,IAAI,EAAE,gBAAgB,CAAC,CAAC,C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AoB,EAAE,GAAG,CAAC,CAAC"}
|
|
@@ -51,7 +51,7 @@ const getFormValidator = (fieldDefs, externalValidatorObj = {}) => {
|
|
|
51
51
|
exports.getFormValidator = getFormValidator;
|
|
52
52
|
const byNonEmptyValidator = (validator = {}) => ({ name }) => Boolean(validator[name ?? '']);
|
|
53
53
|
const byCondition = (formState) => (fieldDef) => !fieldDef?.condition ||
|
|
54
|
-
fieldDef.condition.values.
|
|
54
|
+
fieldDef.condition.values.some((_) => {
|
|
55
55
|
const dependencyValue = formState?.[fieldDef?.condition?.name ?? ''];
|
|
56
56
|
return _ === (dependencyValue?.key ?? dependencyValue);
|
|
57
57
|
});
|