@redneckz/wildless-cms-uni-blocks 0.14.142 → 0.14.144
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/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +112 -72
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +9 -2
- package/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +13 -0
- package/bundle/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +10 -0
- package/bundle/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
- package/bundle/components/ApplicationForm/acquiringTypes.d.ts +2 -2
- package/bundle/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -1
- package/bundle/components/ApplicationForm/renderCreditDataOrganization.d.ts +1 -1
- package/bundle/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/bundle/components/ApplicationForm/renderRegion.d.ts +6 -6
- package/bundle/components/ApplicationForm/renderRegionDepartment.d.ts +1 -1
- package/bundle/components/ApplicationForm/renderUserData.d.ts +1 -1
- package/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -0
- package/bundle/components/ProductBlock/ProductBlock.d.ts +2 -2
- package/bundle/components/UnitBlock/UnitBlockContent.d.ts +1 -0
- package/bundle/ui-kit/BaseTile/BaseTile.d.ts +2 -2
- package/bundle/ui-kit/Unit/UnitProps.d.ts +3 -0
- package/bundle/utils/formatPhone.d.ts +1 -0
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +19 -12
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormAntiFraud.js +2 -2
- package/dist/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +3 -2
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +9 -2
- package/dist/components/ApplicationForm/ApplicationFormCorruption.js +5 -4
- package/dist/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +13 -0
- package/dist/components/ApplicationForm/ApplicationFormCredit.js +2 -1
- package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js +2 -1
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormFeedback.js +4 -3
- package/dist/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormIndividuals.js +2 -1
- package/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +10 -0
- package/dist/components/ApplicationForm/ApplicationFormSelfCollection.js +48 -0
- package/dist/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationFormWed.js +2 -1
- package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/dist/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
- package/dist/components/ApplicationForm/EmbeddableForms.js +2 -0
- package/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -1
- package/dist/components/ApplicationForm/acquiringTypes.d.ts +2 -2
- package/dist/components/ApplicationForm/acquiringTypes.js +8 -7
- package/dist/components/ApplicationForm/acquiringTypes.js.map +1 -1
- package/dist/components/ApplicationForm/handleSubmit.js +4 -3
- package/dist/components/ApplicationForm/handleSubmit.js.map +1 -1
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -1
- package/dist/components/ApplicationForm/renderAcquiringRegion.js +2 -1
- package/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/dist/components/ApplicationForm/renderCreditDataOrganization.d.ts +1 -1
- package/dist/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/dist/components/ApplicationForm/renderRegion.d.ts +6 -6
- package/dist/components/ApplicationForm/renderRegion.js +4 -1
- package/dist/components/ApplicationForm/renderRegion.js.map +1 -1
- package/dist/components/ApplicationForm/renderRegionDepartment.d.ts +1 -1
- package/dist/components/ApplicationForm/renderRegionDepartment.js +2 -1
- package/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/dist/components/ApplicationForm/renderUserData.d.ts +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -0
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -5
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/dist/components/ContentPage/renderContentPageHead.js +2 -2
- package/dist/components/ContentPage/renderContentPageHead.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.d.ts +2 -2
- package/dist/components/ProductBlock/ProductBlock.js +1 -0
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/UnitBlock/UnitBlockContent.d.ts +1 -0
- package/dist/ui-kit/BaseTile/BaseTile.d.ts +2 -2
- package/dist/ui-kit/BaseTile/BaseTile.js +0 -1
- package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableBody.js +1 -1
- package/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/dist/ui-kit/InnerTable/renderInnerTableRow.js +4 -5
- package/dist/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
- package/dist/ui-kit/Unit/UnitProps.d.ts +3 -0
- package/dist/utils/formatPhone.d.ts +1 -0
- package/dist/utils/formatPhone.js +5 -0
- package/dist/utils/formatPhone.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +1 -0
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +19 -12
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormAntiFraud.js +2 -2
- package/lib/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +3 -2
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +9 -2
- package/lib/components/ApplicationForm/ApplicationFormCorruption.js +5 -4
- package/lib/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +13 -0
- package/lib/components/ApplicationForm/ApplicationFormCredit.js +2 -1
- package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js +2 -1
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormFeedback.js +4 -3
- package/lib/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormIndividuals.js +2 -1
- package/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +10 -0
- package/lib/components/ApplicationForm/ApplicationFormSelfCollection.js +46 -0
- package/lib/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -0
- package/lib/components/ApplicationForm/ApplicationFormWed.js +2 -1
- package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/lib/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
- package/lib/components/ApplicationForm/EmbeddableForms.js +2 -0
- package/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -1
- package/lib/components/ApplicationForm/acquiringTypes.d.ts +2 -2
- package/lib/components/ApplicationForm/acquiringTypes.js +8 -7
- package/lib/components/ApplicationForm/acquiringTypes.js.map +1 -1
- package/lib/components/ApplicationForm/handleSubmit.js +4 -3
- package/lib/components/ApplicationForm/handleSubmit.js.map +1 -1
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -1
- package/lib/components/ApplicationForm/renderAcquiringRegion.js +2 -1
- package/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/lib/components/ApplicationForm/renderCreditDataOrganization.d.ts +1 -1
- package/lib/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/lib/components/ApplicationForm/renderRegion.d.ts +6 -6
- package/lib/components/ApplicationForm/renderRegion.js +4 -1
- package/lib/components/ApplicationForm/renderRegion.js.map +1 -1
- package/lib/components/ApplicationForm/renderRegionDepartment.d.ts +1 -1
- package/lib/components/ApplicationForm/renderRegionDepartment.js +2 -1
- package/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -0
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -5
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/lib/components/ContentPage/renderContentPageHead.js +2 -2
- package/lib/components/ContentPage/renderContentPageHead.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.d.ts +2 -2
- package/lib/components/ProductBlock/ProductBlock.js +1 -0
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/UnitBlock/UnitBlockContent.d.ts +1 -0
- package/lib/ui-kit/BaseTile/BaseTile.d.ts +2 -2
- package/lib/ui-kit/BaseTile/BaseTile.js +0 -1
- package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableBody.js +1 -1
- package/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/lib/ui-kit/InnerTable/renderInnerTableRow.js +4 -5
- package/lib/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
- package/lib/ui-kit/Unit/UnitProps.d.ts +3 -0
- package/lib/utils/formatPhone.d.ts +1 -0
- package/lib/utils/formatPhone.js +2 -0
- package/lib/utils/formatPhone.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +112 -72
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +9 -2
- package/mobile/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +13 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +10 -0
- package/mobile/bundle/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
- package/mobile/bundle/components/ApplicationForm/acquiringTypes.d.ts +2 -2
- package/mobile/bundle/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -1
- package/mobile/bundle/components/ApplicationForm/renderCreditDataOrganization.d.ts +1 -1
- package/mobile/bundle/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/mobile/bundle/components/ApplicationForm/renderRegion.d.ts +6 -6
- package/mobile/bundle/components/ApplicationForm/renderRegionDepartment.d.ts +1 -1
- package/mobile/bundle/components/ApplicationForm/renderUserData.d.ts +1 -1
- package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -0
- package/mobile/bundle/components/ProductBlock/ProductBlock.d.ts +2 -2
- package/mobile/bundle/components/UnitBlock/UnitBlockContent.d.ts +1 -0
- package/mobile/bundle/ui-kit/BaseTile/BaseTile.d.ts +2 -2
- package/mobile/bundle/ui-kit/Unit/UnitProps.d.ts +3 -0
- package/mobile/bundle/utils/formatPhone.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +19 -12
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormAntiFraud.js +2 -2
- package/mobile/dist/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +3 -2
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +9 -2
- package/mobile/dist/components/ApplicationForm/ApplicationFormCorruption.js +5 -4
- package/mobile/dist/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +13 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +2 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +2 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.js +4 -3
- package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js +2 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +10 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormSelfCollection.js +48 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +2 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/EmbeddableForms.js +2 -0
- package/mobile/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/acquiringTypes.d.ts +2 -2
- package/mobile/dist/components/ApplicationForm/acquiringTypes.js +8 -7
- package/mobile/dist/components/ApplicationForm/acquiringTypes.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/handleSubmit.js +4 -3
- package/mobile/dist/components/ApplicationForm/handleSubmit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js +2 -1
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegion.d.ts +6 -6
- package/mobile/dist/components/ApplicationForm/renderRegion.js +4 -1
- package/mobile/dist/components/ApplicationForm/renderRegion.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js +2 -1
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderUserData.d.ts +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -0
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -5
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/dist/components/ContentPage/renderContentPageHead.js +2 -2
- package/mobile/dist/components/ContentPage/renderContentPageHead.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlock.d.ts +2 -2
- package/mobile/dist/components/ProductBlock/ProductBlock.js +1 -0
- package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/dist/components/UnitBlock/UnitBlockContent.d.ts +1 -0
- package/mobile/dist/ui-kit/BaseTile/BaseTile.d.ts +2 -2
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js +0 -1
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/renderInnerTableRow.js +4 -5
- package/mobile/dist/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
- package/mobile/dist/ui-kit/Unit/UnitProps.d.ts +3 -0
- package/mobile/dist/utils/formatPhone.d.ts +1 -0
- package/mobile/dist/utils/formatPhone.js +5 -0
- package/mobile/dist/utils/formatPhone.js.map +1 -0
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +19 -12
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAntiFraud.js +2 -2
- package/mobile/lib/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +3 -2
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +9 -2
- package/mobile/lib/components/ApplicationForm/ApplicationFormCorruption.js +5 -4
- package/mobile/lib/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +13 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +2 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +2 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.js +4 -3
- package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js +2 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +10 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormSelfCollection.js +46 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +2 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
- package/mobile/lib/components/ApplicationForm/EmbeddableForms.js +2 -0
- package/mobile/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/acquiringTypes.d.ts +2 -2
- package/mobile/lib/components/ApplicationForm/acquiringTypes.js +8 -7
- package/mobile/lib/components/ApplicationForm/acquiringTypes.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/handleSubmit.js +4 -3
- package/mobile/lib/components/ApplicationForm/handleSubmit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js +2 -1
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegion.d.ts +6 -6
- package/mobile/lib/components/ApplicationForm/renderRegion.js +4 -1
- package/mobile/lib/components/ApplicationForm/renderRegion.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js +2 -1
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderUserData.d.ts +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -0
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -5
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/lib/components/ContentPage/renderContentPageHead.js +2 -2
- package/mobile/lib/components/ContentPage/renderContentPageHead.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlock.d.ts +2 -2
- package/mobile/lib/components/ProductBlock/ProductBlock.js +1 -0
- package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/lib/components/UnitBlock/UnitBlockContent.d.ts +1 -0
- package/mobile/lib/ui-kit/BaseTile/BaseTile.d.ts +2 -2
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js +0 -1
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/renderInnerTableRow.js +4 -5
- package/mobile/lib/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
- package/mobile/lib/ui-kit/Unit/UnitProps.d.ts +3 -0
- package/mobile/lib/utils/formatPhone.d.ts +1 -0
- package/mobile/lib/utils/formatPhone.js +2 -0
- package/mobile/lib/utils/formatPhone.js.map +1 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +23 -15
- package/mobile/src/components/ApplicationForm/ApplicationFormAntiFraud.tsx +2 -3
- package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +3 -3
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +12 -2
- package/mobile/src/components/ApplicationForm/ApplicationFormCorruption.tsx +5 -10
- package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +16 -3
- package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +2 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormFeedback.tsx +5 -10
- package/mobile/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +2 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormSelfCollection.tsx +81 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +2 -1
- package/mobile/src/components/ApplicationForm/EmbeddableForms.tsx +2 -0
- package/mobile/src/components/ApplicationForm/acquiringTypes.ts +11 -9
- package/mobile/src/components/ApplicationForm/handleSubmit.tsx +4 -3
- package/mobile/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +4 -4
- package/mobile/src/components/ApplicationForm/renderAcquiringRegion.tsx +4 -12
- package/mobile/src/components/ApplicationForm/renderCreditDataOrganization.tsx +1 -1
- package/mobile/src/components/ApplicationForm/renderCreditParameters.tsx +1 -1
- package/mobile/src/components/ApplicationForm/renderRegion.tsx +29 -15
- package/mobile/src/components/ApplicationForm/renderRegionDepartment.tsx +3 -12
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +23 -9
- package/mobile/src/components/ContentPage/renderContentPageHead.tsx +2 -2
- package/mobile/src/components/ProductBlock/ProductBlock.tsx +14 -10
- package/mobile/src/components/UnitBlock/UnitBlockContent.ts +1 -0
- package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +2 -4
- package/mobile/src/ui-kit/InnerTable/InnerTableBody.tsx +3 -3
- package/mobile/src/ui-kit/InnerTable/renderInnerTableRow.tsx +5 -14
- package/mobile/src/ui-kit/Unit/UnitProps.ts +3 -0
- package/mobile/src/utils/formatPhone.ts +1 -0
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +14 -0
- package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +23 -15
- package/src/components/ApplicationForm/ApplicationFormAntiFraud.tsx +2 -3
- package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +3 -3
- package/src/components/ApplicationForm/ApplicationFormContent.ts +12 -2
- package/src/components/ApplicationForm/ApplicationFormCorruption.tsx +5 -10
- package/src/components/ApplicationForm/ApplicationFormCredit.tsx +16 -3
- package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +2 -1
- package/src/components/ApplicationForm/ApplicationFormFeedback.tsx +5 -10
- package/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +2 -1
- package/src/components/ApplicationForm/ApplicationFormSelfCollection.tsx +81 -0
- package/src/components/ApplicationForm/ApplicationFormWed.tsx +2 -1
- package/src/components/ApplicationForm/EmbeddableForms.tsx +2 -0
- package/src/components/ApplicationForm/acquiringTypes.ts +11 -9
- package/src/components/ApplicationForm/handleSubmit.tsx +4 -3
- package/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +4 -4
- package/src/components/ApplicationForm/renderAcquiringRegion.tsx +4 -12
- package/src/components/ApplicationForm/renderCreditDataOrganization.tsx +1 -1
- package/src/components/ApplicationForm/renderCreditParameters.tsx +1 -1
- package/src/components/ApplicationForm/renderRegion.tsx +29 -15
- package/src/components/ApplicationForm/renderRegionDepartment.tsx +3 -12
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +23 -9
- package/src/components/ContentPage/renderContentPageHead.tsx +2 -2
- package/src/components/ProductBlock/ProductBlock.tsx +14 -10
- package/src/components/UnitBlock/UnitBlockContent.ts +1 -0
- package/src/ui-kit/BaseTile/BaseTile.tsx +2 -4
- package/src/ui-kit/InnerTable/InnerTableBody.tsx +3 -3
- package/src/ui-kit/InnerTable/renderInnerTableRow.tsx +5 -14
- package/src/ui-kit/Unit/UnitProps.ts +3 -0
- package/src/utils/formatPhone.ts +1 -0
- package/bundle/components/ApplicationForm/CreditFormState.d.ts +0 -13
- package/dist/components/ApplicationForm/CreditFormState.d.ts +0 -13
- package/dist/components/ApplicationForm/CreditFormState.js +0 -2
- package/dist/components/ApplicationForm/CreditFormState.js.map +0 -1
- package/lib/components/ApplicationForm/CreditFormState.d.ts +0 -13
- package/lib/components/ApplicationForm/CreditFormState.js +0 -2
- package/lib/components/ApplicationForm/CreditFormState.js.map +0 -1
- package/mobile/bundle/components/ApplicationForm/CreditFormState.d.ts +0 -13
- package/mobile/dist/components/ApplicationForm/CreditFormState.d.ts +0 -13
- package/mobile/dist/components/ApplicationForm/CreditFormState.js +0 -2
- package/mobile/dist/components/ApplicationForm/CreditFormState.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/CreditFormState.d.ts +0 -13
- package/mobile/lib/components/ApplicationForm/CreditFormState.js +0 -2
- package/mobile/lib/components/ApplicationForm/CreditFormState.js.map +0 -1
- package/mobile/src/components/ApplicationForm/CreditFormState.ts +0 -14
- package/src/components/ApplicationForm/CreditFormState.ts +0 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseTile.js","sourceRoot":"","sources":["../../../src/ui-kit/BaseTile/BaseTile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oDAAoD,CAAC;AAC1F,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAIlD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAe1C,MAAM,iBAAiB,GAA0B;IAC/C,KAAK,EAAE,gBAAgB;IACvB,MAAM,EAAE,iBAAiB;IACzB,GAAG,EAAE,cAAc;CACpB,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"BaseTile.js","sourceRoot":"","sources":["../../../src/ui-kit/BaseTile/BaseTile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oDAAoD,CAAC;AAC1F,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAIlD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAe1C,MAAM,iBAAiB,GAA0B;IAC/C,KAAK,EAAE,gBAAgB;IACvB,MAAM,EAAE,iBAAiB;IACzB,GAAG,EAAE,cAAc;CACpB,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CACzB,CAAC,EACC,SAAS,EACT,OAAO,GAAG,SAAS,EACnB,cAAc,EACd,OAAO,GAAG,EAAE,EACZ,KAAK,GAAG,EAAE,EACV,UAAU,GAAG,EAAE,EACf,OAAO,EACP,SAAS,EACT,UAAU,EACV,UAAU,EACV,oBAAoB,GAAG,KAAK,EAC5B,gBAAgB,GAAG,KAAK,EACxB,cAAc,EACd,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,WAAW,GAAG,WAAW,CAAC,CAAC,EAAqB,EAAE,EAAE;QACxD,EAAE,EAAE,cAAc,EAAE,CAAC;QACrB,MAAM,CAAC,IAAI,EAAE,CAAC;IAChB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,eAAK,SAAS,EAAE,QAAQ,CAAC,OAAO,EAAE,cAAc,EAAE,SAAS,CAAC,aACzD,cAAc,CAAC,CAAC,CAAC,oBAAoB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,EAClE,KAAK,CAAC,CAAC,CAAC,cAAK,SAAS,EAAC,iBAAiB,YAAE,KAAK,GAAO,CAAC,CAAC,CAAC,IAAI,EAC9D,eACE,SAAS,EAAE,KAAK,CACd,yDAAyD,EACzD,SAAS,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,EAAE,CACzC,aAEA,oBAAoB,CAAC,SAAS,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,EACtE,eACE,SAAS,EAAE,KAAK,CACd,cAAc,EACd,UAAU,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,EACnC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,EACvB,QAAQ,EAAE,+DAA+D;wBACzE,6BAA6B,CAC9B,aAED,eAAK,SAAS,EAAC,2BAA2B,aACvC,UAAU,EACV,QAAQ,IACL,EACL,eAAe,CACd,cAAc,CAAC,EAAE,GAAG,IAAI,EAAE,UAAU,EAAE,EAAE,SAAS,EAAE,mBAAmB,EAAE,EAAE,CAAC,CAC5E,EACA,oBAAoB,CAAC,UAAU,EAAE;gCAChC,SAAS,EAAE,KAAK,CACd,sCAAsC,EACtC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAAE,EACjD,aAAa,CAAC,oBAAoB,CAAC,EACnC,mBAAmB,CAAC,gBAAgB,CAAC,CACtC;gCACD,UAAU;6BACX,CAAC,EACD,aAAa,CAAC,OAAO,CAAC,IACnB,IACF,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,OAAO,GAAG,EAAE,EAAE,cAAc,GAAG,EAAE,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE,CACrE,KAAK,CAAC,gDAAgD,EAAE,OAAO,IAAI,cAAc,EAAE,SAAS,CAAC,CAAC;AAEhG,MAAM,YAAY,GAAG,CAAC,oBAA6B,EAAE,EAAE,CACrD,oBAAoB,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,gBAAgB,CAAC;AAEzD,MAAM,aAAa,GAAG,CAAC,oBAA6B,EAAE,EAAE,CACtD,oBAAoB,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,EAAE,CAAC;AAExD,MAAM,aAAa,GAAG,CAAC,OAAc,EAAE,EAAE,CACvC,OAAO,CAAC,CAAC,CAAC,cAAK,SAAS,EAAC,UAAU,YAAE,OAAO,GAAO,CAAC,CAAC,CAAC,IAAI,CAAC;AAE7D,MAAM,eAAe,GAAG,CAAC,SAA4B,EAAE,EAAE,CACvD,SAAS,IAAI,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,CAC/B,cAAK,SAAS,EAAC,8BAA8B,YAAE,SAAS,GAAO,CAChE,CAAC,CAAC,CAAC,IAAI,CAAC;AAEX,MAAM,oBAAoB,GAAG,CAC3B,KAAwB,EACxB,EAAE,SAAS,EAAE,UAAU,EAA8C,EACrE,EAAE,CACF,KAAK,CAAC,CAAC,CAAC,CACN,cACE,SAAS,EAAE,KAAK,CACd,gCAAgC,EAChC,UAAU,IAAI,iBAAiB,CAAC,UAAU,CAAC,EAC3C,SAAS,CACV,YAEA,KAAK,GACF,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AAEX,MAAM,mBAAmB,GAAG,CAAC,gBAAyB,EAAE,EAAE,CACxD,gBAAgB,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { InnerTableBodyItem } from './InnerTableBodyItem.js';
|
|
|
5
5
|
export const InnerTableBody = JSX(({ activeTabIndex, items }) => {
|
|
6
6
|
return (_jsx("div", { children: items.map((_, tableIdx) => {
|
|
7
7
|
const key = `activeTabIdx:${activeTabIndex}-tableIdx:${tableIdx}`;
|
|
8
|
-
return (_jsxs("div", { className: "w-full @container", children: [_jsx("div", { className: "flex
|
|
8
|
+
return (_jsxs("div", { className: "w-full @container", children: [_jsx("div", { className: "flex py-m sm:px-m bg-white @4xl:bg-gray relative", children: _jsx(Text, { size: "text-xl", align: "text-left", children: _.title }) }), _jsx("div", { className: "w-full sm:pl-xs overflow-hidden transition-height duration-500 ease-in-out", children: _jsx("div", { className: "relative", children: _jsx(InnerTableBodyItem, { rows: _.rowsData }) }) })] }, key));
|
|
9
9
|
}) }));
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=InnerTableBody.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InnerTableBody.js","sourceRoot":"","sources":["../../../src/ui-kit/InnerTable/InnerTableBody.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAQ1D,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAsB,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,EAAE,EAAE;IACnF,OAAO,CACL,wBACG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE;YACzB,MAAM,GAAG,GAAG,gBAAgB,cAAc,aAAa,QAAQ,EAAE,CAAC;YAElE,OAAO,CACL,eAAe,SAAS,EAAC,mBAAmB,aAC1C,cAAK,SAAS,EAAC,
|
|
1
|
+
{"version":3,"file":"InnerTableBody.js","sourceRoot":"","sources":["../../../src/ui-kit/InnerTable/InnerTableBody.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAQ1D,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAsB,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,EAAE,EAAE;IACnF,OAAO,CACL,wBACG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE;YACzB,MAAM,GAAG,GAAG,gBAAgB,cAAc,aAAa,QAAQ,EAAE,CAAC;YAElE,OAAO,CACL,eAAe,SAAS,EAAC,mBAAmB,aAC1C,cAAK,SAAS,EAAC,kDAAkD,YAC/D,KAAC,IAAI,IAAC,IAAI,EAAC,SAAS,EAAC,KAAK,EAAC,WAAW,YACnC,CAAC,CAAC,KAAK,GACH,GACH,EACN,cAAK,SAAS,EAAC,4EAA4E,YACzF,cAAK,SAAS,EAAC,UAAU,YACvB,KAAC,kBAAkB,IAAC,IAAI,EAAE,CAAC,CAAC,QAAQ,GAAI,GACpC,GACF,KAVE,GAAG,CAWP,CACP,CAAC;QACJ,CAAC,CAAC,GACE,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { Text } from '../../ui-kit/Text/Text.js';
|
|
2
3
|
import { style } from '../../utils/style.js';
|
|
3
|
-
import { Text } from '../Text/Text.js';
|
|
4
4
|
import { getHorizontalShift } from './getHorizontalShift.js';
|
|
5
5
|
export const renderInnerTableRow = (activeColumnIndex) => (rowData, rowIdx) => {
|
|
6
6
|
if (!rowData?.length) {
|
|
@@ -8,10 +8,9 @@ export const renderInnerTableRow = (activeColumnIndex) => (rowData, rowIdx) => {
|
|
|
8
8
|
}
|
|
9
9
|
const [headerColumn, ...columns] = rowData;
|
|
10
10
|
const columnsStyle = style('flex duration-1000 text-center', rowIdx !== 0 ? 'font-normal' : 'font-light');
|
|
11
|
-
return (_jsxs("div", { className: "flex border-main-divider border-b border-solid h-full", children: [headerColumn?.data ? (_jsx("div", { className: "w-56 min-w-56 py-lg", children: _jsx(Text, { size: "text-xl", font: "font-light", children: headerColumn.data }) })) : null, _jsx("div", { className: "flex flex-grow overflow-hidden", children: _jsx("div", { className: columnsStyle, style: {
|
|
11
|
+
return (_jsxs("div", { className: "flex border-main-divider border-b border-solid h-full", children: [headerColumn?.data ? (_jsx("div", { className: "whitespace-pre-wrap sm:whitespace-normal w-48 sm:w-56 sm:min-w-56 py-lg pr-lg sm:pr-0", children: _jsx(Text, { size: "text-xl", font: "font-light", children: headerColumn.data }) })) : null, _jsx("div", { className: "flex flex-grow overflow-hidden", children: _jsx("div", { className: columnsStyle, style: {
|
|
12
12
|
transform: `translateX(-${getHorizontalShift(columns, activeColumnIndex)}px)`,
|
|
13
|
-
}, children: columns?.map((_, i) => (_jsxs("div", { className: "flex flex-col flex-grow gap-s justify-center py-xl odd:bg-main-divider", children: [_?.data ?
|
|
13
|
+
}, children: columns?.map((_, i) => (_jsxs("div", { className: "flex flex-col flex-grow gap-s justify-center py-xl odd:bg-main-divider", children: [_?.data ? _jsx(Text, { size: "text-xl", children: _.data }) : null, _?.cols ? renderCols(_.cols, activeColumnIndex) : null] }, `row${i}`))) }) })] }, String(rowIdx)));
|
|
14
14
|
};
|
|
15
|
-
const
|
|
16
|
-
const renderCols = (cols, rowIndex) => cols?.length > 0 ? (_jsx("div", { className: "flex", children: cols.map((data, i) => (_jsx("div", { className: "w-20 mx-lg", children: _jsx(Text, { size: "text-h6", color: ColsColor(rowIndex === 0), children: data }) }, String(i)))) })) : null;
|
|
15
|
+
const renderCols = (cols, rowIndex) => cols?.length > 0 ? (_jsx("div", { className: style('flex', rowIndex === 0 ? 'text-secondary-text' : ''), children: cols.map((data, i) => (_jsx("div", { className: "w-20 mx-lg", children: _jsx(Text, { size: "text-h6", font: "font-light", children: data }) }, String(i)))) })) : null;
|
|
17
16
|
//# sourceMappingURL=renderInnerTableRow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderInnerTableRow.js","sourceRoot":"","sources":["../../../src/ui-kit/InnerTable/renderInnerTableRow.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"renderInnerTableRow.js","sourceRoot":"","sources":["../../../src/ui-kit/InnerTable/renderInnerTableRow.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,MAAM,CAAC,MAAM,mBAAmB,GAC9B,CAAC,iBAAyB,EAAE,EAAE,CAAC,CAAC,OAAmB,EAAE,MAAc,EAAE,EAAE;IACrE,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE;QACpB,OAAO,IAAI,CAAC;KACb;IACD,MAAM,CAAC,YAAY,EAAE,GAAG,OAAO,CAAC,GAAG,OAAO,CAAC;IAC3C,MAAM,YAAY,GAAG,KAAK,CACxB,gCAAgC,EAChC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,YAAY,CAC5C,CAAC;IAEF,OAAO,CACL,eAA0B,SAAS,EAAC,uDAAuD,aACxF,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC,CACpB,cAAK,SAAS,EAAC,uFAAuF,YACpG,KAAC,IAAI,IAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,YAAY,YACnC,YAAY,CAAC,IAAI,GACb,GACH,CACP,CAAC,CAAC,CAAC,IAAI,EACR,cAAK,SAAS,EAAC,gCAAgC,YAC7C,cACE,SAAS,EAAE,YAAY,EACvB,KAAK,EAAE;wBACL,SAAS,EAAE,eAAe,kBAAkB,CAAC,OAAO,EAAE,iBAAiB,CAAC,KAAK;qBAC9E,YAEA,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,eAEE,SAAS,EAAC,wEAAwE,aAEjF,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,IAAI,EAAC,SAAS,YAAE,CAAC,CAAC,IAAI,GAAQ,CAAC,CAAC,CAAC,IAAI,EACrD,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,IAAI,KAJlD,MAAM,CAAC,EAAE,CAKV,CACP,CAAC,GACE,GACF,KAzBE,MAAM,CAAC,MAAM,CAAC,CA0BlB,CACP,CAAC;AACJ,CAAC,CAAC;AAEJ,MAAM,UAAU,GAAG,CAAC,IAAc,EAAE,QAAgB,EAAE,EAAE,CACtD,IAAI,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CACjB,cAAK,SAAS,EAAE,KAAK,CAAC,MAAM,EAAE,QAAQ,KAAK,CAAC,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,CAAC,YACvE,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACrB,cAAqB,SAAS,EAAC,YAAY,YACzC,KAAC,IAAI,IAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,YAAY,YACnC,IAAI,GACA,IAHC,MAAM,CAAC,CAAC,CAAC,CAIb,CACP,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const formatPhone: (phone: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatPhone.js","sourceRoot":"","sources":["../../src/utils/formatPhone.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC"}
|
|
@@ -700,7 +700,6 @@
|
|
|
700
700
|
imageAlign,
|
|
701
701
|
}), renderButtons(buttons)] })] })] }));
|
|
702
702
|
});
|
|
703
|
-
BaseTile.childrenTypes = ['UnitBlock'];
|
|
704
703
|
const getStyle = (padding = '', defaultPadding = '', className = '') => style('relative flex flex-col gap-3xl overflow-hidden', padding || defaultPadding, className);
|
|
705
704
|
const rowSpanStyle = (isImageAlwaysOnRight) => isImageAlwaysOnRight ? 'row-span-2' : '@xl:row-span-2';
|
|
706
705
|
const positionStyle = (isImageAlwaysOnRight) => isImageAlwaysOnRight ? 'col-start-2 self-center' : '';
|
|
@@ -827,6 +826,7 @@
|
|
|
827
826
|
const renderTags = (tags) => (tags?.length ? jsx(Tags, { tags: tags }) : null);
|
|
828
827
|
|
|
829
828
|
const ProductBlock = JSX(({ className, padding, ...rest }) => (jsx(BlockWrapper, { className: style('overflow-hidden flex flex-col gap-3xl box-border', className), padding: "p-0", ...rest, children: jsx(BaseProductTile, { defaultPadding: "p-6xl", padding: padding, className: "grow h-full", ...rest }) })));
|
|
829
|
+
ProductBlock.childrenTypes = ['UnitBlock'];
|
|
830
830
|
|
|
831
831
|
const isFilled = (_) => _ !== null && _ !== undefined;
|
|
832
832
|
|
|
@@ -1009,6 +1009,8 @@
|
|
|
1009
1009
|
];
|
|
1010
1010
|
};
|
|
1011
1011
|
|
|
1012
|
+
const formatPhone = (phone) => phone.replace(/[^+\d]/g, '');
|
|
1013
|
+
|
|
1012
1014
|
const objectValidator = (validatorsMap) => (o) => (o &&
|
|
1013
1015
|
Object.entries(validatorsMap).flatMap(([key, validator]) => validator(o[key]))) ||
|
|
1014
1016
|
[];
|
|
@@ -1097,23 +1099,24 @@
|
|
|
1097
1099
|
const phoneValidator = pattern(/^(\+7)?[\s-]?\(?[0-9]{3}\)?[\s-]?[0-9]{3}[\s-]?[0-9]{2}[\s-]?[0-9]{2}$/)(ERROR_MESSAGE);
|
|
1098
1100
|
const checkboxValidator = validator((_) => typeof _ === 'boolean' && _)(ERROR_MESSAGE);
|
|
1099
1101
|
|
|
1100
|
-
const renderAcquiringDataOrganization = (field, title) => (jsx(ApplicationFieldsetLayout, { title: title, firstChildren: jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", ...withValidator(field('fullName'), defaultValidator) }), jsx(InputControl, { label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", ...withValidator(field('name'), nameValidator) })] }), secondChildren: jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) }), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] }) }));
|
|
1102
|
+
const renderAcquiringDataOrganization = (field, title) => (jsx(ApplicationFieldsetLayout, { title: title, firstChildren: jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438*", ...withValidator(field('fullName'), defaultValidator) }), jsx(InputControl, { label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E*", ...withValidator(field('name'), nameValidator) })] }), secondChildren: jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u0418\u041D\u041D*", ...withValidator(field('inn'), innValidator) }), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D*", ...withValidator(field('phone'), phoneValidator) })] }) }));
|
|
1101
1103
|
|
|
1102
1104
|
const ACQUIRING_TYPES = [
|
|
1103
1105
|
{
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
{
|
|
1107
|
-
name: 'Мобильный эквайринг',
|
|
1106
|
+
text: 'Торговый эквайринг',
|
|
1107
|
+
key: 'trade',
|
|
1108
1108
|
},
|
|
1109
1109
|
{
|
|
1110
|
-
|
|
1110
|
+
text: 'СБП-эквайринг',
|
|
1111
|
+
key: 'sbp',
|
|
1111
1112
|
},
|
|
1112
1113
|
{
|
|
1113
|
-
|
|
1114
|
+
text: 'Интернет-эквайринг',
|
|
1115
|
+
key: 'internet',
|
|
1114
1116
|
},
|
|
1115
1117
|
{
|
|
1116
|
-
|
|
1118
|
+
text: 'Все виды эквайринга',
|
|
1119
|
+
key: 'all',
|
|
1117
1120
|
},
|
|
1118
1121
|
];
|
|
1119
1122
|
|
|
@@ -1221,7 +1224,12 @@
|
|
|
1221
1224
|
|
|
1222
1225
|
const SelectControl = JSX(({ className = '', error, ...rest }) => (jsxs("div", { className: className, children: [jsx(Select, { ...rest, valid: !error }), renderErrorText(error)] })));
|
|
1223
1226
|
|
|
1224
|
-
|
|
1227
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1228
|
+
const renderRegion$1 = (regions, field) => {
|
|
1229
|
+
return (jsx(SelectControl, { className: "w-full", label: "\u0424\u0438\u043B\u0438\u0430\u043B", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0438\u043B\u0438\u0430\u043B", isSearch: true, options: regions.map(({ code = '', name = '' }) => ({ key: code, text: name })), ...withValidator(field('region'), defaultValidator) }));
|
|
1230
|
+
};
|
|
1231
|
+
|
|
1232
|
+
const renderAcquiringRegion = ({ field, title, regions }) => (jsx(ApplicationFieldsetLayout, { title: title, firstChildren: jsx("div", { className: formChildrenStyle, children: jsx(SelectControl, { label: "\u0412\u0438\u0434 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433\u0430", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433", options: ACQUIRING_TYPES, ...withValidator(field('acquiringType'), defaultValidator) }) }), secondChildren: jsx("div", { className: formChildrenStyle, children: renderRegion$1(regions, field) }) }));
|
|
1225
1233
|
|
|
1226
1234
|
const SlideCheckbox = JSX(({ value = false, text, type = 'checkbox', onChange }) => (jsxs("div", { role: type, "aria-checked": value, className: "flex justify-start items-center w-full cursor-pointer mb-s", onClick: () => onChange && onChange(!value), children: [jsx("div", { className: style('relative flex-shrink-0 duration-300 w-9 h-5 mr-s rounded-2xl', value ? 'bg-primary-main' : 'bg-main-divider'), children: jsx("div", { className: style('absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded-full', value ? 'left-1/2' : 'left-[5%]') }) }), text ? (jsx(Text, { size: "text-l", font: "font-light", color: "text-primary-text", children: text })) : null] })));
|
|
1227
1235
|
|
|
@@ -1259,8 +1267,8 @@
|
|
|
1259
1267
|
|
|
1260
1268
|
const renderSubmitButton = (button, className) => (jsx(Button, { className: style('w-full @xl:w-auto', className), type: "submit", children: button?.text ? button.text : 'Отправить заявку' }));
|
|
1261
1269
|
|
|
1262
|
-
const initialFormState$
|
|
1263
|
-
acquiringType: { key: 'Торговый эквайринг' },
|
|
1270
|
+
const initialFormState$9 = {
|
|
1271
|
+
acquiringType: { key: 'trade', text: 'Торговый эквайринг' },
|
|
1264
1272
|
fullName: '',
|
|
1265
1273
|
inn: '',
|
|
1266
1274
|
name: '',
|
|
@@ -1280,21 +1288,27 @@
|
|
|
1280
1288
|
const { button, link, onSubmit } = props;
|
|
1281
1289
|
const handleSubmit = useCallback((formState) => {
|
|
1282
1290
|
const { acquiringType, region, fullName, inn, name, phone, onlineCheckout, posTerminal } = formState;
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1291
|
+
const isTradeAcquiring = getSlideCheckboxes(acquiringType?.key);
|
|
1292
|
+
const partnerComments = `Вид эквайринга=${acquiringType?.text || ''}${isTradeAcquiring
|
|
1293
|
+
? `/Онлайн касса=${onlineCheckout}/POS-терминал=${posTerminal}`
|
|
1294
|
+
: '/Онлайн касса=false/POS-терминал=false'}`;
|
|
1295
|
+
const submitData = {
|
|
1296
|
+
typeForm: 'acqr',
|
|
1297
|
+
region: region?.text || '',
|
|
1298
|
+
partnerComments,
|
|
1299
|
+
fullName,
|
|
1300
|
+
inn,
|
|
1301
|
+
name,
|
|
1302
|
+
phone: formatPhone(phone),
|
|
1303
|
+
};
|
|
1304
|
+
isValidationSuccess(acquiringValidator(formState)) && onSubmit(submitData, false);
|
|
1293
1305
|
}, [onSubmit]);
|
|
1294
|
-
const [, { field, ...formProps }] = useForm(initialFormState$
|
|
1306
|
+
const [, { field, ...formProps }] = useForm(initialFormState$9, handleSubmit);
|
|
1295
1307
|
const regions = useGetRegions();
|
|
1296
|
-
|
|
1308
|
+
const isSlideCheckboxes = getSlideCheckboxes(field('acquiringType').value?.key);
|
|
1309
|
+
return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [renderAcquiringRegion({ regions, field, title: 'Вид эквайринга и регион' }), renderAcquiringDataOrganization(field, 'Данные организации'), isSlideCheckboxes ? renderSlideCheckboxes(field) : null, renderSubmitButton(button), jsx(Footnote, { link: link })] }));
|
|
1297
1310
|
});
|
|
1311
|
+
const getSlideCheckboxes = (type) => type === 'all' || type === 'trade';
|
|
1298
1312
|
|
|
1299
1313
|
const SVG = JSX(({ className, viewBox, fill = 'none', width, height, paths, ...commonOptions }) => {
|
|
1300
1314
|
return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: className, viewBox: viewBox, fill: fill, width: width, height: height, children: paths.map(({ d, fill: pathFill, ...options }, i) => {
|
|
@@ -1490,7 +1504,7 @@
|
|
|
1490
1504
|
};
|
|
1491
1505
|
const renderUserData = (field, isBirthday = true) => (jsxs("div", { children: [jsx(InputControl, { label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F*", ...withValidator(field('surname'), nameValidator) }), jsx(InputControl, { label: "\u0418\u043C\u044F*", ...withValidator(field('name'), nameValidator) }), jsx(InputControl, { label: "\u041E\u0442\u0447\u0435\u0441\u0442\u0432\u043E (\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E, \u043F\u0440\u0438 \u043D\u0430\u043B\u0438\u0447\u0438\u0438)", ...field('middleName') }), isBirthday ? (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F*", ...withValidator(field('birthday'), defaultValidator) })) : null] }));
|
|
1492
1506
|
|
|
1493
|
-
const initialFormState$
|
|
1507
|
+
const initialFormState$8 = {
|
|
1494
1508
|
...initialUserFormState,
|
|
1495
1509
|
typeForm: { key: 'ANTIFRAUD', text: 'Предупреждение о мошенничестве' },
|
|
1496
1510
|
phone: '',
|
|
@@ -1499,7 +1513,7 @@
|
|
|
1499
1513
|
comment: '',
|
|
1500
1514
|
consentDataProcessing: false,
|
|
1501
1515
|
};
|
|
1502
|
-
const feedbackValidator$
|
|
1516
|
+
const feedbackValidator$2 = objectValidator({
|
|
1503
1517
|
typeForm: defaultValidator,
|
|
1504
1518
|
surname: defaultValidator,
|
|
1505
1519
|
name: nameValidator,
|
|
@@ -1515,19 +1529,17 @@
|
|
|
1515
1529
|
const submitData = {
|
|
1516
1530
|
...usedFields,
|
|
1517
1531
|
typeForm: typeForm.key,
|
|
1518
|
-
phone: phone
|
|
1532
|
+
phone: formatPhone(phone),
|
|
1519
1533
|
};
|
|
1520
|
-
isValidationSuccess(feedbackValidator$
|
|
1534
|
+
isValidationSuccess(feedbackValidator$2(formState)) && onSubmit(submitData, true);
|
|
1521
1535
|
}, [onSubmit]);
|
|
1522
|
-
const [, { field, ...formProps }] = useForm(initialFormState$
|
|
1536
|
+
const [, { field, ...formProps }] = useForm(initialFormState$8, handleSubmit);
|
|
1523
1537
|
return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, { firstChildren: jsxs("div", { className: oneColumnFormStyle, children: [renderUserData(field, true), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D*", ...withValidator(field('phone'), phoneValidator) }), jsx(CheckboxWithError, { ...withValidator(field('isClient'), checkboxValidator), text: '\u042F\u0432\u043B\u044F\u044E\u0441\u044C \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u043C \u0431\u0430\u043D\u043A\u0430 \u0410\u041E "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A"' }), jsx(InputControl, { ...withValidator(field('comment'), defaultValidator), placeholder: "\u041A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0439*", isTextarea: true }), renderAgreementWithSubmit(field('consentDataProcessing'), link, button)] }) }) }));
|
|
1524
1538
|
});
|
|
1525
1539
|
|
|
1526
1540
|
const renderBusinessCardDataOrganization = (field) => (jsx(ApplicationFieldsetLayout, { firstChildren: jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", ...withValidator(field('name'), nameValidator) }), jsx(InputControl, { label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) })] }), secondChildren: jsxs("div", { className: formChildrenStyle, children: [jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) }), jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('mail'), defaultValidator) })] }) }));
|
|
1527
1541
|
|
|
1528
|
-
const
|
|
1529
|
-
|
|
1530
|
-
const initialFormState$6 = {
|
|
1542
|
+
const initialFormState$7 = {
|
|
1531
1543
|
name: '',
|
|
1532
1544
|
phone: '',
|
|
1533
1545
|
inn: '',
|
|
@@ -1551,15 +1563,15 @@
|
|
|
1551
1563
|
name,
|
|
1552
1564
|
inn,
|
|
1553
1565
|
mail,
|
|
1554
|
-
phone: phone
|
|
1566
|
+
phone: formatPhone(phone),
|
|
1555
1567
|
});
|
|
1556
1568
|
}, [onSubmit]);
|
|
1557
|
-
const [, { field, ...formProps }] = useForm(initialFormState$
|
|
1569
|
+
const [, { field, ...formProps }] = useForm(initialFormState$7, handleSubmit);
|
|
1558
1570
|
const regions = useGetRegions();
|
|
1559
|
-
return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [renderRegion$1(
|
|
1571
|
+
return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [renderRegion$1(regions, field), renderBusinessCardDataOrganization(field), renderSubmitButton(button), jsx(Footnote, { link: link })] }));
|
|
1560
1572
|
});
|
|
1561
1573
|
|
|
1562
|
-
const initialFormState$
|
|
1574
|
+
const initialFormState$6 = {
|
|
1563
1575
|
...initialUserFormState,
|
|
1564
1576
|
typeForm: { key: 'CORRUPTION', text: 'Факты коррупции' },
|
|
1565
1577
|
phone: '',
|
|
@@ -1567,7 +1579,7 @@
|
|
|
1567
1579
|
comment: '',
|
|
1568
1580
|
consentDataProcessing: false,
|
|
1569
1581
|
};
|
|
1570
|
-
const feedbackValidator = objectValidator({
|
|
1582
|
+
const feedbackValidator$1 = objectValidator({
|
|
1571
1583
|
typeForm: defaultValidator,
|
|
1572
1584
|
surname: defaultValidator,
|
|
1573
1585
|
name: nameValidator,
|
|
@@ -1584,13 +1596,13 @@
|
|
|
1584
1596
|
...usedFields,
|
|
1585
1597
|
typeForm: typeForm.key,
|
|
1586
1598
|
regionBranch: region?.text,
|
|
1587
|
-
phone: phone
|
|
1599
|
+
phone: formatPhone(phone),
|
|
1588
1600
|
};
|
|
1589
|
-
isValidationSuccess(feedbackValidator(formState)) && onSubmit(submitData, true);
|
|
1601
|
+
isValidationSuccess(feedbackValidator$1(formState)) && onSubmit(submitData, true);
|
|
1590
1602
|
}, [onSubmit]);
|
|
1591
|
-
const [, { field, ...formProps }] = useForm(initialFormState$
|
|
1592
|
-
const
|
|
1593
|
-
return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, { firstChildren: jsxs("div", { className: oneColumnFormStyle, children: [renderUserData(field, false),
|
|
1603
|
+
const [, { field, ...formProps }] = useForm(initialFormState$6, handleSubmit);
|
|
1604
|
+
const regions = useGetRegions();
|
|
1605
|
+
return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, { firstChildren: jsxs("div", { className: oneColumnFormStyle, children: [renderUserData(field, false), renderRegion$1(regions, field), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D*", ...withValidator(field('phone'), phoneValidator) }), jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430*", ...withValidator(field('email'), defaultValidator) }), jsx(InputControl, { ...withValidator(field('comment'), defaultValidator), placeholder: "\u0412\u0430\u0448\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435*", isTextarea: true }), renderAgreementWithSubmit(field('consentDataProcessing'), link, button)] }) }) }));
|
|
1594
1606
|
});
|
|
1595
1607
|
|
|
1596
1608
|
const BRANCHES_URL = '/api/v1/branches';
|
|
@@ -1673,12 +1685,12 @@
|
|
|
1673
1685
|
|
|
1674
1686
|
const renderCreditParameters = (field, title) => (jsx(ApplicationFieldsetLayout, { title: title, firstChildren: jsx("div", { className: formChildrenStyle, children: jsx(InputRange, { title: "\u0421\u0443\u043C\u043C\u0430, \u20BD", items: ITEMS_CREDIT_AMOUNT, min: MIN_CREDIT_AMOUNT, max: MAX_CREDIT_AMOUNT, ...field('amount') }) }), secondChildren: jsx("div", { className: formChildrenStyle, children: jsx(InputRange, { title: "\u0421\u0440\u043E\u043A, \u043C\u0435\u0441\u044F\u0446\u0435\u0432", items: ITEMS_CREDIT_TERM, min: MIN_CREDIT_TERM, max: MAX_CREDIT_TERM, ...field('term') }) }) }));
|
|
1675
1687
|
|
|
1676
|
-
const renderRegionDepartment = ({ title, regions, branches, field, }) => (jsx(ApplicationFieldsetLayout, { title: title, firstChildren: jsx("div", { className: formChildrenStyle, children:
|
|
1688
|
+
const renderRegionDepartment = ({ title, regions, branches, field, }) => (jsx(ApplicationFieldsetLayout, { title: title, firstChildren: jsx("div", { className: formChildrenStyle, children: renderRegion$1(regions, field) }), secondChildren: jsx("div", { className: formChildrenStyle, children: jsx(SelectControl, { label: "\u0410\u0434\u0440\u0435\u0441", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441", options: branches.map(({ branchCode = '', address = '' }) => ({
|
|
1677
1689
|
key: branchCode,
|
|
1678
1690
|
text: address,
|
|
1679
1691
|
})), ...withValidator(field('department'), defaultValidator) }) }) }));
|
|
1680
1692
|
|
|
1681
|
-
const initialFormState$
|
|
1693
|
+
const initialFormState$5 = {
|
|
1682
1694
|
amount: MIN_CREDIT_AMOUNT,
|
|
1683
1695
|
term: 12,
|
|
1684
1696
|
fullName: '',
|
|
@@ -1706,20 +1718,20 @@
|
|
|
1706
1718
|
fullName,
|
|
1707
1719
|
inn,
|
|
1708
1720
|
name,
|
|
1709
|
-
phone: phone
|
|
1721
|
+
phone: formatPhone(phone),
|
|
1710
1722
|
mail,
|
|
1711
1723
|
region: region?.text || '',
|
|
1712
1724
|
department: department?.text || '',
|
|
1713
1725
|
partnerComments: `Сумма=${amount}/Срок=${term}/Выручка=${annualRevenue}`,
|
|
1714
1726
|
});
|
|
1715
1727
|
}, [onSubmit]);
|
|
1716
|
-
const [formState, { field, ...formProps }] = useForm(initialFormState$
|
|
1728
|
+
const [formState, { field, ...formProps }] = useForm(initialFormState$5, handleSubmit);
|
|
1717
1729
|
const regions = useGetRegions();
|
|
1718
1730
|
const branches = useBranches(formState.region?.key).filter((branch) => branch?.address);
|
|
1719
1731
|
return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [renderCreditParameters(field, 'Параметры'), renderCreditDataOrganization(field, 'Данные организации'), renderRegionDepartment({ regions, branches, field, title: 'Офис банка' }), renderSubmitButton(button), jsx(Footnote, { link: link })] }));
|
|
1720
1732
|
});
|
|
1721
1733
|
|
|
1722
|
-
const initialFormState$
|
|
1734
|
+
const initialFormState$4 = {
|
|
1723
1735
|
name: '',
|
|
1724
1736
|
phone: '',
|
|
1725
1737
|
};
|
|
@@ -1734,10 +1746,10 @@
|
|
|
1734
1746
|
onSubmit({
|
|
1735
1747
|
typeForm: 'dpst',
|
|
1736
1748
|
name,
|
|
1737
|
-
phone: phone
|
|
1749
|
+
phone: formatPhone(phone),
|
|
1738
1750
|
});
|
|
1739
1751
|
}, [onSubmit]);
|
|
1740
|
-
const [, { field, ...formProps }] = useForm(initialFormState$
|
|
1752
|
+
const [, { field, ...formProps }] = useForm(initialFormState$4, handleSubmit);
|
|
1741
1753
|
return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, { title: "\u041E\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u0437\u0430\u044F\u0432\u043A\u0443 \u0438 \u043C\u044B \u043E\u0442\u0432\u0435\u0442\u0438\u043C \u043D\u0430 \u043B\u044E\u0431\u044B\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u043F\u043E \u0434\u0435\u043F\u043E\u0437\u0438\u0442\u0430\u043C", firstChildren: jsxs("div", { className: oneColumnFormStyle, children: [jsx(InputControl, { label: "\u0418\u043C\u044F", ...withValidator(field('name'), nameValidator) }), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) }), renderSubmitButton(button), jsx(Footnote, { link: link })] }) }) }));
|
|
1742
1754
|
});
|
|
1743
1755
|
|
|
@@ -1784,7 +1796,7 @@
|
|
|
1784
1796
|
name: formState.name,
|
|
1785
1797
|
middleName: formState.middleName,
|
|
1786
1798
|
feedbackMethod: formState.feedbackMethod.text,
|
|
1787
|
-
phoneNumber: formState.phone
|
|
1799
|
+
phoneNumber: formatPhone(formState.phone),
|
|
1788
1800
|
secondaryPhoneNumber: formState.secondaryPhone?.replace(/[^+\d]/g, ''),
|
|
1789
1801
|
email: formState.email,
|
|
1790
1802
|
bankEmpolee: formState.bankEmpolee,
|
|
@@ -1810,7 +1822,7 @@
|
|
|
1810
1822
|
inn: formState.inn,
|
|
1811
1823
|
fullName: formState.fullName,
|
|
1812
1824
|
feedbackMethod: formState.feedbackMethod.text,
|
|
1813
|
-
phone: formState.phone
|
|
1825
|
+
phone: formatPhone(formState.phone),
|
|
1814
1826
|
secondaryPhoneNumber: formState?.secondaryPhone,
|
|
1815
1827
|
mail: formState.email,
|
|
1816
1828
|
bankEmpolee: formState.bankEmpolee,
|
|
@@ -1833,7 +1845,7 @@
|
|
|
1833
1845
|
middleName: formState.middleName,
|
|
1834
1846
|
birthday: formState.birthday,
|
|
1835
1847
|
feedbackMethod: formState.feedbackMethod.text,
|
|
1836
|
-
phoneNumber: formState.phone
|
|
1848
|
+
phoneNumber: formatPhone(formState.phone),
|
|
1837
1849
|
email: formState.email,
|
|
1838
1850
|
comment: formState.comment,
|
|
1839
1851
|
consentDataProcessing: formState.consentDataProcessing,
|
|
@@ -1841,7 +1853,7 @@
|
|
|
1841
1853
|
isValidationSuccess(feedbackValidator(formState)) && onSubmit(submitData, true);
|
|
1842
1854
|
};
|
|
1843
1855
|
|
|
1844
|
-
const initialFormState$
|
|
1856
|
+
const initialFormState$3 = {
|
|
1845
1857
|
...initialUserFormState,
|
|
1846
1858
|
typeForm: { key: 'FEEDBACK', text: 'Задать вопрос по продуктам и услугам' },
|
|
1847
1859
|
serviceDirection: { key: 'Физическое лицо' },
|
|
@@ -1865,12 +1877,12 @@
|
|
|
1865
1877
|
handleSubmitIndividual(feedbackFormState, onSubmit);
|
|
1866
1878
|
}
|
|
1867
1879
|
}, [onSubmit]);
|
|
1868
|
-
const [formState, { field, ...formProps }] = useForm(initialFormState$
|
|
1869
|
-
const
|
|
1870
|
-
const
|
|
1880
|
+
const [formState, { field, ...formProps }] = useForm(initialFormState$3, handleSubmit);
|
|
1881
|
+
const regions = useGetRegions();
|
|
1882
|
+
const addressByBranch = useBranches(formState?.region?.key).filter((branch) => branch?.address);
|
|
1871
1883
|
const isQualityService = field('typeForm').value?.key === 'FEEDBACK_QS';
|
|
1872
1884
|
const isLegalEntity = getLegalEntity(field('typeForm').value?.key, field('serviceDirection').value?.key);
|
|
1873
|
-
return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, { firstChildren: jsxs("div", { className: oneColumnFormStyle, children: [jsx(SelectControl, { label: "\u0422\u0435\u043C\u0430*", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0442\u0435\u043C\u0443", options: FEEDBACK_TYPES, ...withValidator(field('typeForm'), defaultValidator) }), isQualityService ? (jsx(SelectControl, { label: "\u041D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F*", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435", options: SERVICE_DIRECTIONS, ...withValidator(field('serviceDirection'), defaultValidator) })) : null,
|
|
1885
|
+
return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, { firstChildren: jsxs("div", { className: oneColumnFormStyle, children: [jsx(SelectControl, { label: "\u0422\u0435\u043C\u0430*", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0442\u0435\u043C\u0443", options: FEEDBACK_TYPES, ...withValidator(field('typeForm'), defaultValidator) }), isQualityService ? (jsx(SelectControl, { label: "\u041D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F*", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435", options: SERVICE_DIRECTIONS, ...withValidator(field('serviceDirection'), defaultValidator) })) : null, renderRegion$1(regions, field), isQualityService ? (jsx(SelectControl, { label: "\u0410\u0434\u0440\u0435\u0441*", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441", options: addressByBranch.map(({ branchCode = '', address = '' }) => ({
|
|
1874
1886
|
key: branchCode,
|
|
1875
1887
|
text: address,
|
|
1876
1888
|
})), ...withValidator(field('addressBranch'), defaultValidator) })) : null, renderUserData(field, true), isLegalEntity ? (jsxs("div", { children: [jsx(InputControl, { label: "\u0418\u041D\u041D*", ...withValidator(field('inn'), innValidator) }), jsx(InputControl, { label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", ...field('fullName') })] })) : null, jsx(SelectControl, { label: "\u0421\u043F\u043E\u0441\u043E\u0431 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u043E\u0442\u0432\u0435\u0442\u0430*", options: FEEDBACK_METHOD, ...withValidator(field('feedbackMethod'), defaultValidator) }), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D*", ...withValidator(field('phone'), phoneValidator) }), isQualityService ? (jsxs("div", { children: [jsx(PhoneInputControl, { label: "\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u0442\u0435\u043B\u0435\u0444\u043E\u043D", ...field('secondaryPhone') }), jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430*", ...withValidator(field('email'), defaultValidator) }), jsx(InputControl, { label: "\u0424\u0418\u041E \u0438\u043B\u0438 \u0434\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u0432\u0448\u0435\u0433\u043E \u0412\u0430\u0441 \u0441\u043E\u0442\u0440\u0443\u0434\u043D\u0438\u043A\u0430 \u0411\u0430\u043D\u043A\u0430", ...field('bankEmpolee') }), jsx(InputControl, { label: "\u0414\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u044F \u0432 \u0411\u0430\u043D\u043A", ...field('applicationDate') })] })) : (jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430*", ...withValidator(field('email'), defaultValidator) })), jsx(InputControl, { ...withValidator(field('comment'), defaultValidator), placeholder: "\u0412\u0430\u0448\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435*", isTextarea: true }), renderAgreementWithSubmit(field('consentDataProcessing'), link, button)] }) }) }));
|
|
@@ -1889,7 +1901,7 @@
|
|
|
1889
1901
|
return (jsxs("div", { className: "container space-y-s", children: [regions ? (jsx(SelectControl, { label: "\u0412\u0430\u0448 \u0440\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D", isSearch: true, options: regions.map(({ name = '' }) => ({ key: name, text: name })), value: region, onChange: setRegion })) : null, regionHref ? (jsx("div", { className: "text-center", children: jsx(LinkButton, { href: regionHref, target: "_blank", className: style('p-m w-full @xl:w-auto', buttonStyle), children: button?.text ? button.text : 'Перейти' }) })) : null] }));
|
|
1890
1902
|
});
|
|
1891
1903
|
|
|
1892
|
-
const initialFormState$
|
|
1904
|
+
const initialFormState$2 = {
|
|
1893
1905
|
...initialUserFormState,
|
|
1894
1906
|
phone: '',
|
|
1895
1907
|
email: '',
|
|
@@ -1915,15 +1927,43 @@
|
|
|
1915
1927
|
middleName,
|
|
1916
1928
|
email,
|
|
1917
1929
|
consentDataProcessing,
|
|
1918
|
-
phoneNumber: phone
|
|
1930
|
+
phoneNumber: formatPhone(phone),
|
|
1919
1931
|
birthday: birthday?.toISOString().slice(0, 10) || '',
|
|
1920
1932
|
product: product || '',
|
|
1921
1933
|
}, true);
|
|
1922
1934
|
}, [onSubmit]);
|
|
1923
|
-
const [, { field, ...formProps }] = useForm(initialFormState$
|
|
1935
|
+
const [, { field, ...formProps }] = useForm(initialFormState$2, handleSubmit);
|
|
1924
1936
|
return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [jsx(ApplicationFieldsetLayout, { firstChildren: jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F", ...withValidator(field('surname'), nameValidator) }), jsx(InputControl, { label: "\u041E\u0442\u0447\u0435\u0441\u0442\u0432\u043E", ...withValidator(field('middleName'), nameValidator) }), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] }), secondChildren: jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u0418\u043C\u044F", ...withValidator(field('name'), nameValidator) }), jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F*", ...withValidator(field('birthday'), defaultValidator) }), jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('email'), defaultValidator) })] }) }), renderAgreementWithSubmit(field('consentDataProcessing'), link, button)] }));
|
|
1925
1937
|
});
|
|
1926
1938
|
|
|
1939
|
+
const initialFormState$1 = {
|
|
1940
|
+
...initialUserFormState,
|
|
1941
|
+
typeForm: { key: 'SELFCOLLECTION', text: 'Самоинкассация' },
|
|
1942
|
+
fullName: '',
|
|
1943
|
+
phone: '',
|
|
1944
|
+
};
|
|
1945
|
+
const feedbackValidator = objectValidator({
|
|
1946
|
+
typeForm: defaultValidator,
|
|
1947
|
+
region: defaultValidator,
|
|
1948
|
+
fullName: defaultValidator,
|
|
1949
|
+
phone: phoneValidator,
|
|
1950
|
+
});
|
|
1951
|
+
const ApplicationFormSelfCollection = JSX(({ button, link, onSubmit }) => {
|
|
1952
|
+
const handleSubmit = useCallback((formState) => {
|
|
1953
|
+
const { typeForm, region, fullName, phone } = formState;
|
|
1954
|
+
const submitData = {
|
|
1955
|
+
typeForm: typeForm.key,
|
|
1956
|
+
region: region?.text,
|
|
1957
|
+
name: fullName,
|
|
1958
|
+
phone: formatPhone(phone),
|
|
1959
|
+
};
|
|
1960
|
+
isValidationSuccess(feedbackValidator(formState)) && onSubmit(submitData, true);
|
|
1961
|
+
}, [onSubmit]);
|
|
1962
|
+
const [, { field, ...formProps }] = useForm(initialFormState$1, handleSubmit);
|
|
1963
|
+
const regions = useGetRegions();
|
|
1964
|
+
return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, { firstChildren: jsxs("div", { className: oneColumnFormStyle, children: [jsx(InputControl, { label: "\u0424\u0418\u041E*", ...withValidator(field('fullName'), defaultValidator) }), renderRegion$1(regions, field), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D*", ...withValidator(field('phone'), phoneValidator) }), renderSubmitButton(button), jsx(Footnote, { link: link })] }) }) }));
|
|
1965
|
+
});
|
|
1966
|
+
|
|
1927
1967
|
const renderContacts = () => (jsxs("div", { className: "flex gap-xl", children: [jsxs("a", { className: "flex gap-s items-center text-primary-text no-underline", href: `tel:8 (800) 200-78-70`, "aria-label": "8 (800) 200-78-70", children: [jsx(Img, { image: { icon: 'PhoneIcon' }, width: "24", height: "24" }), jsx("span", { children: "8 (800) 200-78-70" })] }), jsxs("a", { className: "flex gap-s items-center text-primary-text no-underline", "aria-label": "ved@rshb.ru", href: `mailto:ved@rshb.ru`, children: [jsx(Img, { image: { icon: 'MailIcon' }, width: "24", height: "24" }), jsx("span", { children: "ved@rshb.ru" })] })] }));
|
|
1928
1968
|
|
|
1929
1969
|
const Radio = JSX(({ name, text, value, checked, onChange, className }) => (jsx("div", { className: className, children: jsxs("label", { className: "font-sans flex gap-s items-center relative cursor-pointer", children: [jsx("input", { className: "appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-primary-hover\n checked:border-2 checked:!border-primary-main focus:checked:border-primary-main focus:border-primary-text active:border-primary-text\n after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main outline-none rounded-full cursor-pointer", type: "radio", value: value, name: name, checked: checked, onChange: (_) => onChange(_.target.value) }), text ? jsx(Text, { color: "text-primary-text", children: text }) : null] }) })));
|
|
@@ -1979,7 +2019,7 @@
|
|
|
1979
2019
|
typeForm: 'KVED',
|
|
1980
2020
|
fullName,
|
|
1981
2021
|
name,
|
|
1982
|
-
phone: phone
|
|
2022
|
+
phone: formatPhone(phone),
|
|
1983
2023
|
text,
|
|
1984
2024
|
vedTypes: getVedTypes(vedTypes),
|
|
1985
2025
|
PartnerComments: text,
|
|
@@ -2008,6 +2048,7 @@
|
|
|
2008
2048
|
ApplicationFormFeedback,
|
|
2009
2049
|
ApplicationFormAntiFraud,
|
|
2010
2050
|
ApplicationFormCorruption,
|
|
2051
|
+
ApplicationFormSelfCollection,
|
|
2011
2052
|
};
|
|
2012
2053
|
|
|
2013
2054
|
const ResponseNotification = JSX(({ responseType }) => {
|
|
@@ -3350,12 +3391,12 @@
|
|
|
3350
3391
|
return (jsxs("div", { className: "py-lg border-b border-main-divider", children: [title ? (jsx("div", { className: "opacity-80", children: jsx(Text, { size: "text-m", color: "text-secondary-text", children: title }) })) : null, description ? (jsx("div", { className: "mt-2xs", children: jsx(Text, { size: "text-xl", color: "text-primary-text", children: description }) })) : null, buttons?.length ? (jsx("div", { className: "text-primary-main", children: renderButtonsSection(buttons) })) : null] }, String(i)));
|
|
3351
3392
|
};
|
|
3352
3393
|
|
|
3353
|
-
const
|
|
3354
|
-
const CarouselTariffsCard = JSX(({ className = '', title, align = 'text-center', icon, button, cardCells = [], ...rest }) => {
|
|
3394
|
+
const CarouselTariffsCard = JSX(({ className = '', title, align = 'text-center', icon, button, visibleCellsCount = 1, cardCells = [], ...rest }) => {
|
|
3355
3395
|
const cellsNode = cardCells.map(renderCardInfo);
|
|
3356
|
-
const visibleCells =
|
|
3357
|
-
|
|
3358
|
-
|
|
3396
|
+
const [visibleCells, hiddenCells] = visibleCellsCount > 0
|
|
3397
|
+
? [cellsNode.slice(0, visibleCellsCount), cellsNode.slice(visibleCellsCount)]
|
|
3398
|
+
: [cellsNode, []];
|
|
3399
|
+
return (jsxs(BlockWrapper, { className: style('flex flex-col', className), defaultPadding: "p-2xl", ...rest, children: [isIcon(icon) ? (jsx("div", { className: "self-center", children: jsx(Img, { image: icon }) })) : null, title ? (jsx(Heading, { className: style('pt-xs', align), headingType: "h5", title: title })) : null, button?.text ? jsx(LinkButton, { className: "w-full mt-m mb-lg", ...button }) : null, hiddenCells.length ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs("div", { children: [visibleCells, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenCells })] })), renderFoldButton: cardCells.length > 1 ? renderFoldButton$2 : null })) : (jsx("div", { children: visibleCells }))] }));
|
|
3359
3400
|
});
|
|
3360
3401
|
const renderFoldButton$2 = ({ isUnfolded, onToggle }) => (jsxs("button", { className: "w-full cursor-pointer text-primary-main pt-lg flex justify-between items-center", onClick: onToggle, children: [jsx("div", { children: isUnfolded ? 'Скрыть' : 'Подробнее о тарифе' }), jsx(Icon, { className: "text-primary-text", name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16" })] }));
|
|
3361
3402
|
|
|
@@ -4952,19 +4993,18 @@
|
|
|
4952
4993
|
}
|
|
4953
4994
|
const [headerColumn, ...columns] = rowData;
|
|
4954
4995
|
const columnsStyle = style('flex duration-1000 text-center', rowIdx !== 0 ? 'font-normal' : 'font-light');
|
|
4955
|
-
return (jsxs("div", { className: "flex border-main-divider border-b border-solid h-full", children: [headerColumn?.data ? (jsx("div", { className: "w-56 min-w-56 py-lg", children: jsx(Text, { size: "text-xl", font: "font-light", children: headerColumn.data }) })) : null, jsx("div", { className: "flex flex-grow overflow-hidden", children: jsx("div", { className: columnsStyle, style: {
|
|
4996
|
+
return (jsxs("div", { className: "flex border-main-divider border-b border-solid h-full", children: [headerColumn?.data ? (jsx("div", { className: "whitespace-pre-wrap sm:whitespace-normal w-48 sm:w-56 sm:min-w-56 py-lg pr-lg sm:pr-0", children: jsx(Text, { size: "text-xl", font: "font-light", children: headerColumn.data }) })) : null, jsx("div", { className: "flex flex-grow overflow-hidden", children: jsx("div", { className: columnsStyle, style: {
|
|
4956
4997
|
transform: `translateX(-${getHorizontalShift(columns, activeColumnIndex)}px)`,
|
|
4957
|
-
}, children: columns?.map((_, i) => (jsxs("div", { className: "flex flex-col flex-grow gap-s justify-center py-xl odd:bg-main-divider", children: [_?.data ?
|
|
4998
|
+
}, children: columns?.map((_, i) => (jsxs("div", { className: "flex flex-col flex-grow gap-s justify-center py-xl odd:bg-main-divider", children: [_?.data ? jsx(Text, { size: "text-xl", children: _.data }) : null, _?.cols ? renderCols(_.cols, activeColumnIndex) : null] }, `row${i}`))) }) })] }, String(rowIdx)));
|
|
4958
4999
|
};
|
|
4959
|
-
const
|
|
4960
|
-
const renderCols = (cols, rowIndex) => cols?.length > 0 ? (jsx("div", { className: "flex", children: cols.map((data, i) => (jsx("div", { className: "w-20 mx-lg", children: jsx(Text, { size: "text-h6", color: ColsColor(rowIndex === 0), children: data }) }, String(i)))) })) : null;
|
|
5000
|
+
const renderCols = (cols, rowIndex) => cols?.length > 0 ? (jsx("div", { className: style('flex', rowIndex === 0 ? 'text-secondary-text' : ''), children: cols.map((data, i) => (jsx("div", { className: "w-20 mx-lg", children: jsx(Text, { size: "text-h6", font: "font-light", children: data }) }, String(i)))) })) : null;
|
|
4961
5001
|
|
|
4962
5002
|
const InnerTableBodyItem = JSX(({ rows }) => (jsx(SwipeListContainer, { visibleItemCount: 0, snapAlign: "snap-start", children: jsx("div", { children: rows?.map(renderInnerTableRow(0)) }) })));
|
|
4963
5003
|
|
|
4964
5004
|
const InnerTableBody = JSX(({ activeTabIndex, items }) => {
|
|
4965
5005
|
return (jsx("div", { children: items.map((_, tableIdx) => {
|
|
4966
5006
|
const key = `activeTabIdx:${activeTabIndex}-tableIdx:${tableIdx}`;
|
|
4967
|
-
return (jsxs("div", { className: "w-full @container", children: [jsx("div", { className: "flex
|
|
5007
|
+
return (jsxs("div", { className: "w-full @container", children: [jsx("div", { className: "flex py-m sm:px-m bg-white @4xl:bg-gray relative", children: jsx(Text, { size: "text-xl", align: "text-left", children: _.title }) }), jsx("div", { className: "w-full sm:pl-xs overflow-hidden transition-height duration-500 ease-in-out", children: jsx("div", { className: "relative", children: jsx(InnerTableBodyItem, { rows: _.rowsData }) }) })] }, key));
|
|
4968
5008
|
}) }));
|
|
4969
5009
|
});
|
|
4970
5010
|
|
|
@@ -5656,7 +5696,7 @@
|
|
|
5656
5696
|
|
|
5657
5697
|
const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
|
|
5658
5698
|
|
|
5659
|
-
const packageVersion = "0.14.
|
|
5699
|
+
const packageVersion = "0.14.143";
|
|
5660
5700
|
|
|
5661
5701
|
exports.Blocks = Blocks;
|
|
5662
5702
|
exports.ContentPage = ContentPage;
|