@redneckz/wildless-cms-uni-blocks 0.14.831 → 0.14.833
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/migration-scripts/{0.14.828.js → 0.14.832.js} +3 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +76 -103
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -5
- package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +5 -0
- package/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +1 -2
- package/bundle/components/GalleryLayout/useSortProductBlocks.d.ts +2 -0
- package/bundle/external/useRouter.d.ts +2 -6
- package/bundle/model/Fallback.d.ts +0 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -5
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +5 -10
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +5 -0
- package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js +7 -0
- package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +1 -2
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +4 -4
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/dist/components/Blocks.js +0 -6
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +0 -4
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/GalleryLayout/GalleryLayout.js +11 -5
- package/dist/components/GalleryLayout/GalleryLayout.js.map +1 -1
- package/dist/components/GalleryLayout/useSortProductBlocks.d.ts +2 -0
- package/dist/components/GalleryLayout/useSortProductBlocks.js +21 -0
- package/dist/components/GalleryLayout/useSortProductBlocks.js.map +1 -0
- package/dist/components/Header/HeaderSecondaryMenu.js +2 -1
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.js +1 -1
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/StickyBottomMenu/BurgerMenuDialog.js +5 -5
- package/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/dist/components/TabsLayout/TabsLayout.js +13 -12
- package/dist/components/TabsLayout/TabsLayout.js.map +1 -1
- package/dist/external/useRouter.d.ts +2 -6
- package/dist/external/useRouter.js +0 -3
- package/dist/external/useRouter.js.map +1 -1
- package/dist/hooks/useActiveRoute.js +1 -1
- package/dist/hooks/useActiveRoute.js.map +1 -1
- package/dist/model/Fallback.d.ts +0 -1
- package/dist/services/search/useSearch.js +18 -1
- package/dist/services/search/useSearch.js.map +1 -1
- package/dist/setup-fixture.js +0 -3
- package/dist/setup-fixture.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -5
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -6
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +5 -0
- package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js +6 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +1 -2
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +1 -1
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/lib/components/Blocks.js +0 -6
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +0 -4
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/GalleryLayout/GalleryLayout.js +11 -5
- package/lib/components/GalleryLayout/GalleryLayout.js.map +1 -1
- package/lib/components/GalleryLayout/useSortProductBlocks.d.ts +2 -0
- package/lib/components/GalleryLayout/useSortProductBlocks.js +18 -0
- package/lib/components/GalleryLayout/useSortProductBlocks.js.map +1 -0
- package/lib/components/Header/HeaderSecondaryMenu.js +2 -1
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +0 -2
- package/lib/components/ProductBlock/ProductBlock.js +1 -1
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/StickyBottomMenu/BurgerMenuDialog.js +6 -6
- package/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/lib/components/TabsLayout/TabsLayout.js +13 -12
- package/lib/components/TabsLayout/TabsLayout.js.map +1 -1
- package/lib/external/useRouter.d.ts +2 -6
- package/lib/external/useRouter.js +0 -3
- package/lib/external/useRouter.js.map +1 -1
- package/lib/hooks/useActiveRoute.js +1 -1
- package/lib/hooks/useActiveRoute.js.map +1 -1
- package/lib/model/Fallback.d.ts +0 -1
- package/lib/services/search/useSearch.js +18 -1
- package/lib/services/search/useSearch.js.map +1 -1
- package/lib/setup-fixture.js +0 -3
- package/lib/setup-fixture.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +61 -65
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -5
- package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +5 -0
- package/mobile/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +1 -2
- package/mobile/bundle/components/GalleryLayout/useSortProductBlocks.d.ts +2 -0
- package/mobile/bundle/external/useRouter.d.ts +2 -6
- package/mobile/bundle/model/Fallback.d.ts +0 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -5
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +5 -10
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +5 -0
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js +7 -0
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +1 -2
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +4 -4
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/dist/components/Blocks.js +0 -4
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/GalleryLayout/GalleryLayout.js +11 -5
- package/mobile/dist/components/GalleryLayout/GalleryLayout.js.map +1 -1
- package/mobile/dist/components/GalleryLayout/useSortProductBlocks.d.ts +2 -0
- package/mobile/dist/components/GalleryLayout/useSortProductBlocks.js +21 -0
- package/mobile/dist/components/GalleryLayout/useSortProductBlocks.js.map +1 -0
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +2 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlock.js +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js +5 -5
- package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/mobile/dist/components/TabsLayout/TabsLayout.js +13 -12
- package/mobile/dist/components/TabsLayout/TabsLayout.js.map +1 -1
- package/mobile/dist/external/useRouter.d.ts +2 -6
- package/mobile/dist/external/useRouter.js +0 -3
- package/mobile/dist/external/useRouter.js.map +1 -1
- package/mobile/dist/hooks/useActiveRoute.js +1 -1
- package/mobile/dist/hooks/useActiveRoute.js.map +1 -1
- package/mobile/dist/model/Fallback.d.ts +0 -1
- package/mobile/dist/services/search/useSearch.js +18 -1
- package/mobile/dist/services/search/useSearch.js.map +1 -1
- package/mobile/dist/setup-fixture.js +0 -3
- package/mobile/dist/setup-fixture.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -5
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -6
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +5 -0
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js +6 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +1 -2
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/lib/components/Blocks.js +0 -4
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/GalleryLayout/GalleryLayout.js +11 -5
- package/mobile/lib/components/GalleryLayout/GalleryLayout.js.map +1 -1
- package/mobile/lib/components/GalleryLayout/useSortProductBlocks.d.ts +2 -0
- package/mobile/lib/components/GalleryLayout/useSortProductBlocks.js +18 -0
- package/mobile/lib/components/GalleryLayout/useSortProductBlocks.js.map +1 -0
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +2 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlock.js +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js +6 -6
- package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/mobile/lib/components/TabsLayout/TabsLayout.js +13 -12
- package/mobile/lib/components/TabsLayout/TabsLayout.js.map +1 -1
- package/mobile/lib/external/useRouter.d.ts +2 -6
- package/mobile/lib/external/useRouter.js +0 -3
- package/mobile/lib/external/useRouter.js.map +1 -1
- package/mobile/lib/hooks/useActiveRoute.js +1 -1
- package/mobile/lib/hooks/useActiveRoute.js.map +1 -1
- package/mobile/lib/model/Fallback.d.ts +0 -1
- package/mobile/lib/services/search/useSearch.js +18 -1
- package/mobile/lib/services/search/useSearch.js.map +1 -1
- package/mobile/lib/setup-fixture.js +0 -3
- package/mobile/lib/setup-fixture.js.map +1 -1
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +5 -7
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +6 -0
- package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +1 -2
- package/mobile/src/components/Blocks.ts +0 -4
- package/mobile/src/components/GalleryLayout/GalleryLayout.tsx +32 -19
- package/mobile/src/components/GalleryLayout/useSortProductBlocks.ts +25 -0
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +12 -9
- package/mobile/src/components/ProductBlock/ProductBlock.example.json +1 -11
- package/mobile/src/components/ProductBlock/ProductBlock.tsx +0 -1
- package/mobile/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +8 -6
- package/mobile/src/components/TabsLayout/TabsLayout.tsx +14 -12
- package/mobile/src/external/useRouter.ts +2 -9
- package/mobile/src/hooks/useActiveRoute.ts +1 -1
- package/mobile/src/model/Fallback.ts +0 -1
- package/mobile/src/services/search/useSearch.ts +24 -3
- package/mobile/src/setup-fixture.ts +0 -3
- package/package.json +1 -21
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +5 -7
- package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +6 -0
- package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +1 -2
- package/src/components/Blocks.mobile.ts +0 -4
- package/src/components/Blocks.ts +0 -6
- package/src/components/ContentPage/ContentPage.fixture.mobile.tsx +1 -4
- package/src/components/ContentPage/ContentPage.fixture.tsx +2 -7
- package/src/components/GalleryLayout/GalleryLayout.tsx +32 -19
- package/src/components/GalleryLayout/useSortProductBlocks.ts +25 -0
- package/src/components/Header/HeaderSecondaryMenu.tsx +12 -9
- package/src/components/ProductBlock/ProductBlock.example.json +1 -11
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +0 -28
- package/src/components/ProductBlock/ProductBlock.tsx +0 -1
- package/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +8 -6
- package/src/components/TabsLayout/TabsLayout.tsx +14 -12
- package/src/external/useRouter.ts +2 -9
- package/src/hooks/useActiveRoute.ts +1 -1
- package/src/icons/IconName.ts +4 -4
- package/src/model/Fallback.ts +0 -1
- package/src/services/search/useSearch.ts +24 -3
- package/src/setup-fixture.ts +0 -3
- package/bundle/components/ContentPage/computeAPIFallback.d.ts +0 -4
- package/bundle/components/ContentPage/loadModuleFallback.d.ts +0 -2
- package/bundle/components/ContentPage/mapSlot.d.ts +0 -2
- package/bundle/components/ContentPage/normalizeBlock.d.ts +0 -3
- package/bundle/components/ContentPage/normalizeBlock.mobile.d.ts +0 -3
- package/bundle/components/ContentPage/normalizePage.d.ts +0 -3
- package/bundle/components/ContentPage/toMobileBlock.d.ts +0 -2
- package/bundle/components/InvestmentInfo/InvestmentInfo.d.ts +0 -5
- package/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +0 -43
- package/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +0 -5
- package/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +0 -18
- package/bundle/components/UnitBlock/UnitBlock.d.ts +0 -6
- package/bundle/components/UnitBlock/UnitBlockContent.d.ts +0 -6
- package/bundle/content-page-repository/ContentPageRepository.d.ts +0 -10
- package/bundle/content-page-repository/JSONDocContentBox.d.ts +0 -8
- package/bundle/content-page-repository/TransformationOptions.d.ts +0 -4
- package/bundle/content-page-repository/clearAttachmentHref.d.ts +0 -2
- package/bundle/content-page-repository/computeImgOutputPath.d.ts +0 -3
- package/bundle/content-page-repository/extensions.d.ts +0 -3
- package/bundle/content-page-repository/index.d.ts +0 -3
- package/bundle/content-page-repository/mapJSON.d.ts +0 -1
- package/bundle/content-page-repository/mergePages.d.ts +0 -2
- package/bundle/content-page-repository/replaceHeadingTags.d.ts +0 -1
- package/bundle/content-page-repository/resizeImg.d.ts +0 -3
- package/bundle/content-page-repository/transformAttachmentLink.d.ts +0 -3
- package/bundle/content-page-repository/transformContentPage.d.ts +0 -4
- package/bundle/content-page-repository/transformDocument.d.ts +0 -3
- package/bundle/content-page-repository/transformHTML.d.ts +0 -1
- package/bundle/content-page-repository/transformImg.d.ts +0 -12
- package/bundle/content-page-repository/transformMarkdown.d.ts +0 -1
- package/bundle/content-page-repository/transformPicture.d.ts +0 -3
- package/dist/components/ContentPage/computeAPIFallback.d.ts +0 -4
- package/dist/components/ContentPage/computeAPIFallback.js +0 -36
- package/dist/components/ContentPage/computeAPIFallback.js.map +0 -1
- package/dist/components/ContentPage/loadModuleFallback.d.ts +0 -2
- package/dist/components/ContentPage/loadModuleFallback.js +0 -36
- package/dist/components/ContentPage/loadModuleFallback.js.map +0 -1
- package/dist/components/ContentPage/mapSlot.d.ts +0 -2
- package/dist/components/ContentPage/mapSlot.js +0 -16
- package/dist/components/ContentPage/mapSlot.js.map +0 -1
- package/dist/components/ContentPage/normalizeBlock.d.ts +0 -3
- package/dist/components/ContentPage/normalizeBlock.js +0 -15
- package/dist/components/ContentPage/normalizeBlock.js.map +0 -1
- package/dist/components/ContentPage/normalizeBlock.mobile.d.ts +0 -3
- package/dist/components/ContentPage/normalizeBlock.mobile.js +0 -18
- package/dist/components/ContentPage/normalizeBlock.mobile.js.map +0 -1
- package/dist/components/ContentPage/normalizePage.d.ts +0 -3
- package/dist/components/ContentPage/normalizePage.js +0 -6
- package/dist/components/ContentPage/normalizePage.js.map +0 -1
- package/dist/components/ContentPage/toMobileBlock.d.ts +0 -2
- package/dist/components/ContentPage/toMobileBlock.js +0 -12
- package/dist/components/ContentPage/toMobileBlock.js.map +0 -1
- package/dist/components/InvestmentInfo/InvestmentInfo.d.ts +0 -5
- package/dist/components/InvestmentInfo/InvestmentInfo.js +0 -47
- package/dist/components/InvestmentInfo/InvestmentInfo.js.map +0 -1
- package/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +0 -43
- package/dist/components/InvestmentInfo/InvestmentInfoContent.js +0 -2
- package/dist/components/InvestmentInfo/InvestmentInfoContent.js.map +0 -1
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +0 -5
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +0 -26
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +0 -1
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +0 -18
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +0 -2
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +0 -1
- package/dist/components/UnitBlock/UnitBlock.d.ts +0 -6
- package/dist/components/UnitBlock/UnitBlock.js +0 -11
- package/dist/components/UnitBlock/UnitBlock.js.map +0 -1
- package/dist/components/UnitBlock/UnitBlockContent.d.ts +0 -6
- package/dist/components/UnitBlock/UnitBlockContent.js +0 -2
- package/dist/components/UnitBlock/UnitBlockContent.js.map +0 -1
- package/dist/content-page-repository/ContentPageRepository.d.ts +0 -10
- package/dist/content-page-repository/ContentPageRepository.js +0 -31
- package/dist/content-page-repository/ContentPageRepository.js.map +0 -1
- package/dist/content-page-repository/JSONDocContentBox.d.ts +0 -8
- package/dist/content-page-repository/JSONDocContentBox.js +0 -39
- package/dist/content-page-repository/JSONDocContentBox.js.map +0 -1
- package/dist/content-page-repository/TransformationOptions.d.ts +0 -4
- package/dist/content-page-repository/TransformationOptions.js +0 -2
- package/dist/content-page-repository/TransformationOptions.js.map +0 -1
- package/dist/content-page-repository/clearAttachmentHref.d.ts +0 -2
- package/dist/content-page-repository/clearAttachmentHref.js +0 -6
- package/dist/content-page-repository/clearAttachmentHref.js.map +0 -1
- package/dist/content-page-repository/computeImgOutputPath.d.ts +0 -3
- package/dist/content-page-repository/computeImgOutputPath.js +0 -18
- package/dist/content-page-repository/computeImgOutputPath.js.map +0 -1
- package/dist/content-page-repository/extensions.d.ts +0 -3
- package/dist/content-page-repository/extensions.js +0 -18
- package/dist/content-page-repository/extensions.js.map +0 -1
- package/dist/content-page-repository/index.d.ts +0 -3
- package/dist/content-page-repository/index.js +0 -9
- package/dist/content-page-repository/index.js.map +0 -1
- package/dist/content-page-repository/mapJSON.d.ts +0 -1
- package/dist/content-page-repository/mapJSON.js +0 -26
- package/dist/content-page-repository/mapJSON.js.map +0 -1
- package/dist/content-page-repository/mergePages.d.ts +0 -2
- package/dist/content-page-repository/mergePages.js +0 -7
- package/dist/content-page-repository/mergePages.js.map +0 -1
- package/dist/content-page-repository/replaceHeadingTags.d.ts +0 -1
- package/dist/content-page-repository/replaceHeadingTags.js +0 -5
- package/dist/content-page-repository/replaceHeadingTags.js.map +0 -1
- package/dist/content-page-repository/resizeImg.d.ts +0 -3
- package/dist/content-page-repository/resizeImg.js +0 -19
- package/dist/content-page-repository/resizeImg.js.map +0 -1
- package/dist/content-page-repository/transformAttachmentLink.d.ts +0 -3
- package/dist/content-page-repository/transformAttachmentLink.js +0 -40
- package/dist/content-page-repository/transformAttachmentLink.js.map +0 -1
- package/dist/content-page-repository/transformContentPage.d.ts +0 -4
- package/dist/content-page-repository/transformContentPage.js +0 -78
- package/dist/content-page-repository/transformContentPage.js.map +0 -1
- package/dist/content-page-repository/transformDocument.d.ts +0 -3
- package/dist/content-page-repository/transformDocument.js +0 -38
- package/dist/content-page-repository/transformDocument.js.map +0 -1
- package/dist/content-page-repository/transformHTML.d.ts +0 -1
- package/dist/content-page-repository/transformHTML.js +0 -54
- package/dist/content-page-repository/transformHTML.js.map +0 -1
- package/dist/content-page-repository/transformImg.d.ts +0 -12
- package/dist/content-page-repository/transformImg.js +0 -51
- package/dist/content-page-repository/transformImg.js.map +0 -1
- package/dist/content-page-repository/transformMarkdown.d.ts +0 -1
- package/dist/content-page-repository/transformMarkdown.js +0 -18
- package/dist/content-page-repository/transformMarkdown.js.map +0 -1
- package/dist/content-page-repository/transformPicture.d.ts +0 -3
- package/dist/content-page-repository/transformPicture.js +0 -28
- package/dist/content-page-repository/transformPicture.js.map +0 -1
- package/lib/components/ContentPage/computeAPIFallback.d.ts +0 -4
- package/lib/components/ContentPage/computeAPIFallback.js +0 -33
- package/lib/components/ContentPage/computeAPIFallback.js.map +0 -1
- package/lib/components/ContentPage/loadModuleFallback.d.ts +0 -2
- package/lib/components/ContentPage/loadModuleFallback.js +0 -10
- package/lib/components/ContentPage/loadModuleFallback.js.map +0 -1
- package/lib/components/ContentPage/mapSlot.d.ts +0 -2
- package/lib/components/ContentPage/mapSlot.js +0 -13
- package/lib/components/ContentPage/mapSlot.js.map +0 -1
- package/lib/components/ContentPage/normalizeBlock.d.ts +0 -3
- package/lib/components/ContentPage/normalizeBlock.js +0 -12
- package/lib/components/ContentPage/normalizeBlock.js.map +0 -1
- package/lib/components/ContentPage/normalizeBlock.mobile.d.ts +0 -3
- package/lib/components/ContentPage/normalizeBlock.mobile.js +0 -15
- package/lib/components/ContentPage/normalizeBlock.mobile.js.map +0 -1
- package/lib/components/ContentPage/normalizePage.d.ts +0 -3
- package/lib/components/ContentPage/normalizePage.js +0 -3
- package/lib/components/ContentPage/normalizePage.js.map +0 -1
- package/lib/components/ContentPage/toMobileBlock.d.ts +0 -2
- package/lib/components/ContentPage/toMobileBlock.js +0 -9
- package/lib/components/ContentPage/toMobileBlock.js.map +0 -1
- package/lib/components/InvestmentInfo/InvestmentInfo.d.ts +0 -5
- package/lib/components/InvestmentInfo/InvestmentInfo.fixture.d.ts +0 -7
- package/lib/components/InvestmentInfo/InvestmentInfo.js +0 -45
- package/lib/components/InvestmentInfo/InvestmentInfo.js.map +0 -1
- package/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +0 -43
- package/lib/components/InvestmentInfo/InvestmentInfoContent.js +0 -2
- package/lib/components/InvestmentInfo/InvestmentInfoContent.js.map +0 -1
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +0 -5
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.d.ts +0 -5
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.mobile.d.ts +0 -5
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +0 -24
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +0 -1
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +0 -18
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +0 -2
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +0 -1
- package/lib/components/UnitBlock/UnitBlock.d.ts +0 -6
- package/lib/components/UnitBlock/UnitBlock.fixture.d.ts +0 -6
- package/lib/components/UnitBlock/UnitBlock.fixture.mobile.d.ts +0 -6
- package/lib/components/UnitBlock/UnitBlock.js +0 -9
- package/lib/components/UnitBlock/UnitBlock.js.map +0 -1
- package/lib/components/UnitBlock/UnitBlockContent.d.ts +0 -6
- package/lib/components/UnitBlock/UnitBlockContent.js +0 -2
- package/lib/components/UnitBlock/UnitBlockContent.js.map +0 -1
- package/lib/content-page-repository/ContentPageRepository.d.ts +0 -10
- package/lib/content-page-repository/ContentPageRepository.js +0 -25
- package/lib/content-page-repository/ContentPageRepository.js.map +0 -1
- package/lib/content-page-repository/JSONDocContentBox.d.ts +0 -8
- package/lib/content-page-repository/JSONDocContentBox.js +0 -36
- package/lib/content-page-repository/JSONDocContentBox.js.map +0 -1
- package/lib/content-page-repository/TransformationOptions.d.ts +0 -4
- package/lib/content-page-repository/TransformationOptions.js +0 -2
- package/lib/content-page-repository/TransformationOptions.js.map +0 -1
- package/lib/content-page-repository/clearAttachmentHref.d.ts +0 -2
- package/lib/content-page-repository/clearAttachmentHref.js +0 -3
- package/lib/content-page-repository/clearAttachmentHref.js.map +0 -1
- package/lib/content-page-repository/computeImgOutputPath.d.ts +0 -3
- package/lib/content-page-repository/computeImgOutputPath.js +0 -12
- package/lib/content-page-repository/computeImgOutputPath.js.map +0 -1
- package/lib/content-page-repository/extensions.d.ts +0 -3
- package/lib/content-page-repository/extensions.js +0 -16
- package/lib/content-page-repository/extensions.js.map +0 -1
- package/lib/content-page-repository/index.d.ts +0 -3
- package/lib/content-page-repository/index.js +0 -4
- package/lib/content-page-repository/index.js.map +0 -1
- package/lib/content-page-repository/mapJSON.d.ts +0 -1
- package/lib/content-page-repository/mapJSON.js +0 -23
- package/lib/content-page-repository/mapJSON.js.map +0 -1
- package/lib/content-page-repository/mergePages.d.ts +0 -2
- package/lib/content-page-repository/mergePages.js +0 -4
- package/lib/content-page-repository/mergePages.js.map +0 -1
- package/lib/content-page-repository/replaceHeadingTags.d.ts +0 -1
- package/lib/content-page-repository/replaceHeadingTags.js +0 -2
- package/lib/content-page-repository/replaceHeadingTags.js.map +0 -1
- package/lib/content-page-repository/resizeImg.d.ts +0 -3
- package/lib/content-page-repository/resizeImg.js +0 -13
- package/lib/content-page-repository/resizeImg.js.map +0 -1
- package/lib/content-page-repository/transformAttachmentLink.d.ts +0 -3
- package/lib/content-page-repository/transformAttachmentLink.js +0 -34
- package/lib/content-page-repository/transformAttachmentLink.js.map +0 -1
- package/lib/content-page-repository/transformContentPage.d.ts +0 -4
- package/lib/content-page-repository/transformContentPage.js +0 -71
- package/lib/content-page-repository/transformContentPage.js.map +0 -1
- package/lib/content-page-repository/transformDocument.d.ts +0 -3
- package/lib/content-page-repository/transformDocument.js +0 -32
- package/lib/content-page-repository/transformDocument.js.map +0 -1
- package/lib/content-page-repository/transformHTML.d.ts +0 -1
- package/lib/content-page-repository/transformHTML.js +0 -25
- package/lib/content-page-repository/transformHTML.js.map +0 -1
- package/lib/content-page-repository/transformImg.d.ts +0 -12
- package/lib/content-page-repository/transformImg.js +0 -45
- package/lib/content-page-repository/transformImg.js.map +0 -1
- package/lib/content-page-repository/transformMarkdown.d.ts +0 -1
- package/lib/content-page-repository/transformMarkdown.js +0 -12
- package/lib/content-page-repository/transformMarkdown.js.map +0 -1
- package/lib/content-page-repository/transformPicture.d.ts +0 -3
- package/lib/content-page-repository/transformPicture.js +0 -22
- package/lib/content-page-repository/transformPicture.js.map +0 -1
- package/mobile/bundle/components/ContentPage/computeAPIFallback.d.ts +0 -4
- package/mobile/bundle/components/ContentPage/loadModuleFallback.d.ts +0 -2
- package/mobile/bundle/components/ContentPage/mapSlot.d.ts +0 -2
- package/mobile/bundle/components/ContentPage/normalizeBlock.d.ts +0 -3
- package/mobile/bundle/components/ContentPage/normalizePage.d.ts +0 -3
- package/mobile/bundle/components/ContentPage/toMobileBlock.d.ts +0 -2
- package/mobile/bundle/components/InvestmentInfo/InvestmentInfo.d.ts +0 -5
- package/mobile/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +0 -43
- package/mobile/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +0 -5
- package/mobile/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +0 -18
- package/mobile/bundle/components/UnitBlock/UnitBlock.d.ts +0 -6
- package/mobile/bundle/components/UnitBlock/UnitBlockContent.d.ts +0 -6
- package/mobile/bundle/content-page-repository/ContentPageRepository.d.ts +0 -10
- package/mobile/bundle/content-page-repository/JSONDocContentBox.d.ts +0 -8
- package/mobile/bundle/content-page-repository/TransformationOptions.d.ts +0 -4
- package/mobile/bundle/content-page-repository/clearAttachmentHref.d.ts +0 -2
- package/mobile/bundle/content-page-repository/computeImgOutputPath.d.ts +0 -3
- package/mobile/bundle/content-page-repository/extensions.d.ts +0 -3
- package/mobile/bundle/content-page-repository/index.d.ts +0 -3
- package/mobile/bundle/content-page-repository/mapJSON.d.ts +0 -1
- package/mobile/bundle/content-page-repository/mergePages.d.ts +0 -2
- package/mobile/bundle/content-page-repository/replaceHeadingTags.d.ts +0 -1
- package/mobile/bundle/content-page-repository/resizeImg.d.ts +0 -3
- package/mobile/bundle/content-page-repository/transformAttachmentLink.d.ts +0 -3
- package/mobile/bundle/content-page-repository/transformContentPage.d.ts +0 -4
- package/mobile/bundle/content-page-repository/transformDocument.d.ts +0 -3
- package/mobile/bundle/content-page-repository/transformHTML.d.ts +0 -1
- package/mobile/bundle/content-page-repository/transformImg.d.ts +0 -12
- package/mobile/bundle/content-page-repository/transformMarkdown.d.ts +0 -1
- package/mobile/bundle/content-page-repository/transformPicture.d.ts +0 -3
- package/mobile/dist/components/ContentPage/computeAPIFallback.d.ts +0 -4
- package/mobile/dist/components/ContentPage/computeAPIFallback.js +0 -36
- package/mobile/dist/components/ContentPage/computeAPIFallback.js.map +0 -1
- package/mobile/dist/components/ContentPage/loadModuleFallback.d.ts +0 -2
- package/mobile/dist/components/ContentPage/loadModuleFallback.js +0 -36
- package/mobile/dist/components/ContentPage/loadModuleFallback.js.map +0 -1
- package/mobile/dist/components/ContentPage/mapSlot.d.ts +0 -2
- package/mobile/dist/components/ContentPage/mapSlot.js +0 -16
- package/mobile/dist/components/ContentPage/mapSlot.js.map +0 -1
- package/mobile/dist/components/ContentPage/normalizeBlock.d.ts +0 -3
- package/mobile/dist/components/ContentPage/normalizeBlock.js +0 -18
- package/mobile/dist/components/ContentPage/normalizeBlock.js.map +0 -1
- package/mobile/dist/components/ContentPage/normalizePage.d.ts +0 -3
- package/mobile/dist/components/ContentPage/normalizePage.js +0 -6
- package/mobile/dist/components/ContentPage/normalizePage.js.map +0 -1
- package/mobile/dist/components/ContentPage/toMobileBlock.d.ts +0 -2
- package/mobile/dist/components/ContentPage/toMobileBlock.js +0 -12
- package/mobile/dist/components/ContentPage/toMobileBlock.js.map +0 -1
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.d.ts +0 -5
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +0 -47
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +0 -1
- package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +0 -43
- package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.js +0 -2
- package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.js.map +0 -1
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +0 -5
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +0 -26
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +0 -1
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +0 -18
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +0 -2
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +0 -1
- package/mobile/dist/components/UnitBlock/UnitBlock.d.ts +0 -6
- package/mobile/dist/components/UnitBlock/UnitBlock.js +0 -11
- package/mobile/dist/components/UnitBlock/UnitBlock.js.map +0 -1
- package/mobile/dist/components/UnitBlock/UnitBlockContent.d.ts +0 -6
- package/mobile/dist/components/UnitBlock/UnitBlockContent.js +0 -2
- package/mobile/dist/components/UnitBlock/UnitBlockContent.js.map +0 -1
- package/mobile/dist/content-page-repository/ContentPageRepository.d.ts +0 -10
- package/mobile/dist/content-page-repository/ContentPageRepository.js +0 -31
- package/mobile/dist/content-page-repository/ContentPageRepository.js.map +0 -1
- package/mobile/dist/content-page-repository/JSONDocContentBox.d.ts +0 -8
- package/mobile/dist/content-page-repository/JSONDocContentBox.js +0 -39
- package/mobile/dist/content-page-repository/JSONDocContentBox.js.map +0 -1
- package/mobile/dist/content-page-repository/TransformationOptions.d.ts +0 -4
- package/mobile/dist/content-page-repository/TransformationOptions.js +0 -2
- package/mobile/dist/content-page-repository/TransformationOptions.js.map +0 -1
- package/mobile/dist/content-page-repository/clearAttachmentHref.d.ts +0 -2
- package/mobile/dist/content-page-repository/clearAttachmentHref.js +0 -6
- package/mobile/dist/content-page-repository/clearAttachmentHref.js.map +0 -1
- package/mobile/dist/content-page-repository/computeImgOutputPath.d.ts +0 -3
- package/mobile/dist/content-page-repository/computeImgOutputPath.js +0 -18
- package/mobile/dist/content-page-repository/computeImgOutputPath.js.map +0 -1
- package/mobile/dist/content-page-repository/extensions.d.ts +0 -3
- package/mobile/dist/content-page-repository/extensions.js +0 -18
- package/mobile/dist/content-page-repository/extensions.js.map +0 -1
- package/mobile/dist/content-page-repository/index.d.ts +0 -3
- package/mobile/dist/content-page-repository/index.js +0 -9
- package/mobile/dist/content-page-repository/index.js.map +0 -1
- package/mobile/dist/content-page-repository/mapJSON.d.ts +0 -1
- package/mobile/dist/content-page-repository/mapJSON.js +0 -26
- package/mobile/dist/content-page-repository/mapJSON.js.map +0 -1
- package/mobile/dist/content-page-repository/mergePages.d.ts +0 -2
- package/mobile/dist/content-page-repository/mergePages.js +0 -7
- package/mobile/dist/content-page-repository/mergePages.js.map +0 -1
- package/mobile/dist/content-page-repository/replaceHeadingTags.d.ts +0 -1
- package/mobile/dist/content-page-repository/replaceHeadingTags.js +0 -5
- package/mobile/dist/content-page-repository/replaceHeadingTags.js.map +0 -1
- package/mobile/dist/content-page-repository/resizeImg.d.ts +0 -3
- package/mobile/dist/content-page-repository/resizeImg.js +0 -19
- package/mobile/dist/content-page-repository/resizeImg.js.map +0 -1
- package/mobile/dist/content-page-repository/transformAttachmentLink.d.ts +0 -3
- package/mobile/dist/content-page-repository/transformAttachmentLink.js +0 -40
- package/mobile/dist/content-page-repository/transformAttachmentLink.js.map +0 -1
- package/mobile/dist/content-page-repository/transformContentPage.d.ts +0 -4
- package/mobile/dist/content-page-repository/transformContentPage.js +0 -78
- package/mobile/dist/content-page-repository/transformContentPage.js.map +0 -1
- package/mobile/dist/content-page-repository/transformDocument.d.ts +0 -3
- package/mobile/dist/content-page-repository/transformDocument.js +0 -38
- package/mobile/dist/content-page-repository/transformDocument.js.map +0 -1
- package/mobile/dist/content-page-repository/transformHTML.d.ts +0 -1
- package/mobile/dist/content-page-repository/transformHTML.js +0 -54
- package/mobile/dist/content-page-repository/transformHTML.js.map +0 -1
- package/mobile/dist/content-page-repository/transformImg.d.ts +0 -12
- package/mobile/dist/content-page-repository/transformImg.js +0 -51
- package/mobile/dist/content-page-repository/transformImg.js.map +0 -1
- package/mobile/dist/content-page-repository/transformMarkdown.d.ts +0 -1
- package/mobile/dist/content-page-repository/transformMarkdown.js +0 -18
- package/mobile/dist/content-page-repository/transformMarkdown.js.map +0 -1
- package/mobile/dist/content-page-repository/transformPicture.d.ts +0 -3
- package/mobile/dist/content-page-repository/transformPicture.js +0 -28
- package/mobile/dist/content-page-repository/transformPicture.js.map +0 -1
- package/mobile/lib/components/ContentPage/computeAPIFallback.d.ts +0 -4
- package/mobile/lib/components/ContentPage/computeAPIFallback.js +0 -33
- package/mobile/lib/components/ContentPage/computeAPIFallback.js.map +0 -1
- package/mobile/lib/components/ContentPage/loadModuleFallback.d.ts +0 -2
- package/mobile/lib/components/ContentPage/loadModuleFallback.js +0 -10
- package/mobile/lib/components/ContentPage/loadModuleFallback.js.map +0 -1
- package/mobile/lib/components/ContentPage/mapSlot.d.ts +0 -2
- package/mobile/lib/components/ContentPage/mapSlot.js +0 -13
- package/mobile/lib/components/ContentPage/mapSlot.js.map +0 -1
- package/mobile/lib/components/ContentPage/normalizeBlock.d.ts +0 -3
- package/mobile/lib/components/ContentPage/normalizeBlock.js +0 -15
- package/mobile/lib/components/ContentPage/normalizeBlock.js.map +0 -1
- package/mobile/lib/components/ContentPage/normalizePage.d.ts +0 -3
- package/mobile/lib/components/ContentPage/normalizePage.js +0 -3
- package/mobile/lib/components/ContentPage/normalizePage.js.map +0 -1
- package/mobile/lib/components/ContentPage/toMobileBlock.d.ts +0 -2
- package/mobile/lib/components/ContentPage/toMobileBlock.js +0 -9
- package/mobile/lib/components/ContentPage/toMobileBlock.js.map +0 -1
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.d.ts +0 -5
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +0 -45
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +0 -1
- package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +0 -43
- package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.js +0 -2
- package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.js.map +0 -1
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +0 -5
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +0 -24
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +0 -1
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +0 -18
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +0 -2
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +0 -1
- package/mobile/lib/components/UnitBlock/UnitBlock.d.ts +0 -6
- package/mobile/lib/components/UnitBlock/UnitBlock.js +0 -9
- package/mobile/lib/components/UnitBlock/UnitBlock.js.map +0 -1
- package/mobile/lib/components/UnitBlock/UnitBlockContent.d.ts +0 -6
- package/mobile/lib/components/UnitBlock/UnitBlockContent.js +0 -2
- package/mobile/lib/components/UnitBlock/UnitBlockContent.js.map +0 -1
- package/mobile/lib/content-page-repository/ContentPageRepository.d.ts +0 -10
- package/mobile/lib/content-page-repository/ContentPageRepository.js +0 -25
- package/mobile/lib/content-page-repository/ContentPageRepository.js.map +0 -1
- package/mobile/lib/content-page-repository/JSONDocContentBox.d.ts +0 -8
- package/mobile/lib/content-page-repository/JSONDocContentBox.js +0 -36
- package/mobile/lib/content-page-repository/JSONDocContentBox.js.map +0 -1
- package/mobile/lib/content-page-repository/TransformationOptions.d.ts +0 -4
- package/mobile/lib/content-page-repository/TransformationOptions.js +0 -2
- package/mobile/lib/content-page-repository/TransformationOptions.js.map +0 -1
- package/mobile/lib/content-page-repository/clearAttachmentHref.d.ts +0 -2
- package/mobile/lib/content-page-repository/clearAttachmentHref.js +0 -3
- package/mobile/lib/content-page-repository/clearAttachmentHref.js.map +0 -1
- package/mobile/lib/content-page-repository/computeImgOutputPath.d.ts +0 -3
- package/mobile/lib/content-page-repository/computeImgOutputPath.js +0 -12
- package/mobile/lib/content-page-repository/computeImgOutputPath.js.map +0 -1
- package/mobile/lib/content-page-repository/extensions.d.ts +0 -3
- package/mobile/lib/content-page-repository/extensions.js +0 -16
- package/mobile/lib/content-page-repository/extensions.js.map +0 -1
- package/mobile/lib/content-page-repository/index.d.ts +0 -3
- package/mobile/lib/content-page-repository/index.js +0 -4
- package/mobile/lib/content-page-repository/index.js.map +0 -1
- package/mobile/lib/content-page-repository/mapJSON.d.ts +0 -1
- package/mobile/lib/content-page-repository/mapJSON.js +0 -23
- package/mobile/lib/content-page-repository/mapJSON.js.map +0 -1
- package/mobile/lib/content-page-repository/mergePages.d.ts +0 -2
- package/mobile/lib/content-page-repository/mergePages.js +0 -4
- package/mobile/lib/content-page-repository/mergePages.js.map +0 -1
- package/mobile/lib/content-page-repository/replaceHeadingTags.d.ts +0 -1
- package/mobile/lib/content-page-repository/replaceHeadingTags.js +0 -2
- package/mobile/lib/content-page-repository/replaceHeadingTags.js.map +0 -1
- package/mobile/lib/content-page-repository/resizeImg.d.ts +0 -3
- package/mobile/lib/content-page-repository/resizeImg.js +0 -13
- package/mobile/lib/content-page-repository/resizeImg.js.map +0 -1
- package/mobile/lib/content-page-repository/transformAttachmentLink.d.ts +0 -3
- package/mobile/lib/content-page-repository/transformAttachmentLink.js +0 -34
- package/mobile/lib/content-page-repository/transformAttachmentLink.js.map +0 -1
- package/mobile/lib/content-page-repository/transformContentPage.d.ts +0 -4
- package/mobile/lib/content-page-repository/transformContentPage.js +0 -71
- package/mobile/lib/content-page-repository/transformContentPage.js.map +0 -1
- package/mobile/lib/content-page-repository/transformDocument.d.ts +0 -3
- package/mobile/lib/content-page-repository/transformDocument.js +0 -32
- package/mobile/lib/content-page-repository/transformDocument.js.map +0 -1
- package/mobile/lib/content-page-repository/transformHTML.d.ts +0 -1
- package/mobile/lib/content-page-repository/transformHTML.js +0 -25
- package/mobile/lib/content-page-repository/transformHTML.js.map +0 -1
- package/mobile/lib/content-page-repository/transformImg.d.ts +0 -12
- package/mobile/lib/content-page-repository/transformImg.js +0 -45
- package/mobile/lib/content-page-repository/transformImg.js.map +0 -1
- package/mobile/lib/content-page-repository/transformMarkdown.d.ts +0 -1
- package/mobile/lib/content-page-repository/transformMarkdown.js +0 -12
- package/mobile/lib/content-page-repository/transformMarkdown.js.map +0 -1
- package/mobile/lib/content-page-repository/transformPicture.d.ts +0 -3
- package/mobile/lib/content-page-repository/transformPicture.js +0 -22
- package/mobile/lib/content-page-repository/transformPicture.js.map +0 -1
- package/mobile/src/components/ContentPage/computeAPIFallback.ts +0 -67
- package/mobile/src/components/ContentPage/loadModuleFallback.ts +0 -11
- package/mobile/src/components/ContentPage/mapSlot.ts +0 -18
- package/mobile/src/components/ContentPage/normalizeBlock.ts +0 -25
- package/mobile/src/components/ContentPage/normalizePage.ts +0 -8
- package/mobile/src/components/ContentPage/toMobileBlock.ts +0 -11
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.example.json +0 -53
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +0 -131
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.ui.json +0 -13
- package/mobile/src/components/InvestmentInfo/InvestmentInfoContent.ts +0 -51
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +0 -14
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +0 -94
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +0 -24
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts +0 -22
- package/mobile/src/components/UnitBlock/UnitBlock.example.json +0 -9
- package/mobile/src/components/UnitBlock/UnitBlock.tsx +0 -17
- package/mobile/src/components/UnitBlock/UnitBlock.ui.json +0 -1
- package/mobile/src/components/UnitBlock/UnitBlockContent.ts +0 -7
- package/mobile/src/content-page-repository/ContentPageRepository.ts +0 -31
- package/mobile/src/content-page-repository/JSONDocContentBox.ts +0 -56
- package/mobile/src/content-page-repository/TransformationOptions.ts +0 -4
- package/mobile/src/content-page-repository/clearAttachmentHref.ts +0 -3
- package/mobile/src/content-page-repository/computeImgOutputPath.ts +0 -21
- package/mobile/src/content-page-repository/extensions.ts +0 -17
- package/mobile/src/content-page-repository/index.ts +0 -3
- package/mobile/src/content-page-repository/mapJSON.ts +0 -30
- package/mobile/src/content-page-repository/mergePages.ts +0 -8
- package/mobile/src/content-page-repository/replaceHeadingTags.ts +0 -2
- package/mobile/src/content-page-repository/resizeImg.ts +0 -17
- package/mobile/src/content-page-repository/transformAttachmentLink.ts +0 -46
- package/mobile/src/content-page-repository/transformContentPage.ts +0 -102
- package/mobile/src/content-page-repository/transformDocument.ts +0 -43
- package/mobile/src/content-page-repository/transformHTML.ts +0 -28
- package/mobile/src/content-page-repository/transformImg.ts +0 -81
- package/mobile/src/content-page-repository/transformMarkdown.ts +0 -14
- package/mobile/src/content-page-repository/transformPicture.ts +0 -35
- package/src/components/ContentPage/computeAPIFallback.ts +0 -67
- package/src/components/ContentPage/loadModuleFallback.ts +0 -11
- package/src/components/ContentPage/mapSlot.ts +0 -18
- package/src/components/ContentPage/normalizeBlock.mobile.ts +0 -25
- package/src/components/ContentPage/normalizeBlock.ts +0 -21
- package/src/components/ContentPage/normalizePage.ts +0 -8
- package/src/components/ContentPage/toMobileBlock.ts +0 -11
- package/src/components/InvestmentInfo/InvestmentInfo.example.json +0 -53
- package/src/components/InvestmentInfo/InvestmentInfo.fixture.tsx +0 -109
- package/src/components/InvestmentInfo/InvestmentInfo.tsx +0 -131
- package/src/components/InvestmentInfo/InvestmentInfo.ui.json +0 -13
- package/src/components/InvestmentInfo/InvestmentInfoContent.ts +0 -51
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +0 -14
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.mobile.tsx +0 -47
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.tsx +0 -47
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +0 -94
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +0 -24
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts +0 -22
- package/src/components/UnitBlock/UnitBlock.example.json +0 -9
- package/src/components/UnitBlock/UnitBlock.fixture.mobile.tsx +0 -27
- package/src/components/UnitBlock/UnitBlock.fixture.tsx +0 -27
- package/src/components/UnitBlock/UnitBlock.tsx +0 -17
- package/src/components/UnitBlock/UnitBlock.ui.json +0 -1
- package/src/components/UnitBlock/UnitBlockContent.ts +0 -7
- package/src/content-page-repository/ContentPageRepository.ts +0 -31
- package/src/content-page-repository/JSONDocContentBox.ts +0 -56
- package/src/content-page-repository/TransformationOptions.ts +0 -4
- package/src/content-page-repository/clearAttachmentHref.ts +0 -3
- package/src/content-page-repository/computeImgOutputPath.ts +0 -21
- package/src/content-page-repository/extensions.ts +0 -17
- package/src/content-page-repository/index.ts +0 -3
- package/src/content-page-repository/mapJSON.ts +0 -30
- package/src/content-page-repository/mergePages.ts +0 -8
- package/src/content-page-repository/replaceHeadingTags.ts +0 -2
- package/src/content-page-repository/resizeImg.ts +0 -17
- package/src/content-page-repository/transformAttachmentLink.ts +0 -46
- package/src/content-page-repository/transformContentPage.ts +0 -102
- package/src/content-page-repository/transformDocument.ts +0 -43
- package/src/content-page-repository/transformHTML.ts +0 -28
- package/src/content-page-repository/transformImg.ts +0 -81
- package/src/content-page-repository/transformMarkdown.ts +0 -14
- package/src/content-page-repository/transformPicture.ts +0 -35
|
@@ -2,10 +2,5 @@ import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
|
2
2
|
import { type ApplicationLeadFormContent } from './ApplicationLeadFormContent';
|
|
3
3
|
interface ApplicationLeadFormProps extends ApplicationLeadFormContent, UniBlockProps {
|
|
4
4
|
}
|
|
5
|
-
export declare enum EsiaStatuses {
|
|
6
|
-
Success = "SUCCESS",
|
|
7
|
-
Error = "ERROR",
|
|
8
|
-
Pending = "PENDING"
|
|
9
|
-
}
|
|
10
5
|
export declare const ApplicationLeadForm: import("@redneckz/uni-jsx").UNIComponent<ApplicationLeadFormProps, any, any>;
|
|
11
6
|
export {};
|
|
@@ -3,6 +3,11 @@ import { type TextProps, type TitleProps } from '../../model/HeadlineType';
|
|
|
3
3
|
import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
|
|
4
4
|
import { type InputRetailSectionsType } from '../../retail/model/InputSectionsType';
|
|
5
5
|
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
6
|
+
export declare enum EsiaStatuses {
|
|
7
|
+
Success = "SUCCESS",
|
|
8
|
+
Error = "ERROR",
|
|
9
|
+
Pending = "PENDING"
|
|
10
|
+
}
|
|
6
11
|
export declare type SubmitButtonProps = TextProps & {
|
|
7
12
|
version?: LinkButtonVersion;
|
|
8
13
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { type LeadFormState } from '../../retail/model/LeadFormState';
|
|
2
2
|
import { type FieldRetailDef } from '../../retail/model/RetailFormContent';
|
|
3
|
-
import { EsiaStatuses } from './
|
|
4
|
-
import { type ProductType } from './ApplicationLeadFormContent';
|
|
3
|
+
import { EsiaStatuses, type ProductType } from './ApplicationLeadFormContent';
|
|
5
4
|
declare type InitApplicationLeadProps = {
|
|
6
5
|
inputs: FieldRetailDef[];
|
|
7
6
|
nextStepLink: string;
|
|
@@ -3,13 +3,9 @@ interface RouterOptions {
|
|
|
3
3
|
}
|
|
4
4
|
export interface Router {
|
|
5
5
|
pathname: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
basePath?: string;
|
|
9
|
-
push: (url: string, as?: string, options?: RouterOptions) => void;
|
|
10
|
-
replace: (url: string, as?: string, options?: RouterOptions) => void;
|
|
6
|
+
push: (url: string, options?: RouterOptions) => void;
|
|
7
|
+
replace: (url: string, options?: RouterOptions) => void;
|
|
11
8
|
back: () => void;
|
|
12
|
-
isReady: boolean;
|
|
13
9
|
}
|
|
14
10
|
export declare function useRouter(): Router;
|
|
15
11
|
export declare namespace useRouter {
|
|
@@ -2,10 +2,5 @@ import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
|
2
2
|
import { type ApplicationLeadFormContent } from './ApplicationLeadFormContent';
|
|
3
3
|
interface ApplicationLeadFormProps extends ApplicationLeadFormContent, UniBlockProps {
|
|
4
4
|
}
|
|
5
|
-
export declare enum EsiaStatuses {
|
|
6
|
-
Success = "SUCCESS",
|
|
7
|
-
Error = "ERROR",
|
|
8
|
-
Pending = "PENDING"
|
|
9
|
-
}
|
|
10
5
|
export declare const ApplicationLeadForm: import("@redneckz/uni-jsx").UNIComponent<ApplicationLeadFormProps, any, any>;
|
|
11
6
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.ApplicationLeadForm =
|
|
2
|
+
exports.ApplicationLeadForm = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
/* eslint-disable max-lines-per-function */
|
|
5
5
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
@@ -17,17 +17,12 @@ const ResponseTypeDialog_1 = require("../../ui-kit/ResponseTypeDialog/ResponseTy
|
|
|
17
17
|
const Text_1 = require("../../ui-kit/Text/Text");
|
|
18
18
|
const style_1 = require("../../utils/style");
|
|
19
19
|
const applicationFormData_1 = require("./applicationFormData");
|
|
20
|
+
const ApplicationLeadFormContent_1 = require("./ApplicationLeadFormContent");
|
|
20
21
|
const EsiaLoginBanner_1 = require("./EsiaLoginBanner");
|
|
21
22
|
const renderInputs_1 = require("./renderInputs");
|
|
22
23
|
const renderSubmitButton_1 = require("./renderSubmitButton");
|
|
23
24
|
const useApplicationLeadApi_1 = require("./useApplicationLeadApi");
|
|
24
25
|
const useInitApplicationLead_1 = require("./useInitApplicationLead");
|
|
25
|
-
var EsiaStatuses;
|
|
26
|
-
(function (EsiaStatuses) {
|
|
27
|
-
EsiaStatuses["Success"] = "SUCCESS";
|
|
28
|
-
EsiaStatuses["Error"] = "ERROR";
|
|
29
|
-
EsiaStatuses["Pending"] = "PENDING";
|
|
30
|
-
})(EsiaStatuses = exports.EsiaStatuses || (exports.EsiaStatuses = {}));
|
|
31
26
|
exports.ApplicationLeadForm = (0, uni_jsx_1.JSX)(({ className, title, programId = '', nextStepLink = '/credit-lead', button, productType = 'credit', data, ...rest }) => {
|
|
32
27
|
const [esiaStatus, setEsiaStatus] = (0, hooks_1.useState)();
|
|
33
28
|
const leadForm = (0, hooks_1.useRef)(null);
|
|
@@ -40,7 +35,7 @@ exports.ApplicationLeadForm = (0, uni_jsx_1.JSX)(({ className, title, programId
|
|
|
40
35
|
nextStepLink,
|
|
41
36
|
productType,
|
|
42
37
|
setEsiaStatus,
|
|
43
|
-
esiaAuthSuccess: esiaStatus === EsiaStatuses.Success,
|
|
38
|
+
esiaAuthSuccess: esiaStatus === ApplicationLeadFormContent_1.EsiaStatuses.Success,
|
|
44
39
|
});
|
|
45
40
|
const { isSending, ok, handleSubmit } = (0, useApplicationLeadApi_1.useApplicationLeadApi)({
|
|
46
41
|
programId,
|
|
@@ -64,11 +59,11 @@ exports.ApplicationLeadForm = (0, uni_jsx_1.JSX)(({ className, title, programId
|
|
|
64
59
|
block: 'start',
|
|
65
60
|
});
|
|
66
61
|
}
|
|
67
|
-
if (esiaStatus === EsiaStatuses.Success) {
|
|
62
|
+
if (esiaStatus === ApplicationLeadFormContent_1.EsiaStatuses.Success) {
|
|
68
63
|
reset();
|
|
69
64
|
}
|
|
70
65
|
}, [leadForm?.current, esiaStatus]);
|
|
71
|
-
return ((0, jsx_runtime_1.jsxs)(ApplicationFormLayout_1.ApplicationFormLayout, { className: (0, style_1.style)('container space-y-m', className), title: title, ...rest, children: [!esiaStatus ? (0, jsx_runtime_1.jsx)(EsiaLoginBanner_1.EsiaLoginBanner, {}) : null, (0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, className: "space-y-m relative", ref: leadForm, children: [esiaStatus === EsiaStatuses.Pending ? (0, jsx_runtime_1.jsx)(Loader_1.Loader, { blur: false }) : null, applicationFormData.map((_, i) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)((0, inputColumnStyle_1.inputColumnStyles)(_.columns), 'grid gap-x-m'), children: [(0, renderTitle_1.renderTitle)(_.title), (0, renderInputs_1.renderInputs)({ field, inputs: _?.inputs }, productType)] }, `section-${i}`))), (0, renderSubmitButton_1.renderSubmitButton)(button, isSending), esiaStatus === EsiaStatuses.Error ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-medium", color: "text-error", children: "\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0413\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438 \u0434\u043B\u044F \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u044F \u0437\u0430\u044F\u0432\u043A\u0438 \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u043E\u043B\u044F \u0432\u0440\u0443\u0447\u043D\u0443\u044E." })) : null] })] }));
|
|
66
|
+
return ((0, jsx_runtime_1.jsxs)(ApplicationFormLayout_1.ApplicationFormLayout, { className: (0, style_1.style)('container space-y-m', className), title: title, ...rest, children: [!esiaStatus ? (0, jsx_runtime_1.jsx)(EsiaLoginBanner_1.EsiaLoginBanner, {}) : null, (0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, className: "space-y-m relative", ref: leadForm, children: [esiaStatus === ApplicationLeadFormContent_1.EsiaStatuses.Pending ? (0, jsx_runtime_1.jsx)(Loader_1.Loader, { blur: false }) : null, applicationFormData.map((_, i) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)((0, inputColumnStyle_1.inputColumnStyles)(_.columns), 'grid gap-x-m'), children: [(0, renderTitle_1.renderTitle)(_.title), (0, renderInputs_1.renderInputs)({ field, inputs: _?.inputs }, productType)] }, `section-${i}`))), (0, renderSubmitButton_1.renderSubmitButton)(button, isSending), esiaStatus === ApplicationLeadFormContent_1.EsiaStatuses.Error ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-medium", color: "text-error", children: "\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0413\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438 \u0434\u043B\u044F \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u044F \u0437\u0430\u044F\u0432\u043A\u0438 \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u043E\u043B\u044F \u0432\u0440\u0443\u0447\u043D\u0443\u044E." })) : null] })] }));
|
|
72
67
|
});
|
|
73
68
|
const getInputs = (applicationFormData) => (applicationFormData?.flatMap((_) => _?.inputs) || []);
|
|
74
69
|
const getExtendedValidatorObj = (productType) => ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationLeadForm.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/ApplicationLeadForm.tsx"],"names":[],"mappings":";;;AAAA,2CAA2C;AAC3C,+CAAwC;AACxC,uDAAmF;AACnF,yDAAsD;AAGtD,sGAAmG;AACnG,sEAAmE;AACnE,oGAAiG;AACjG,oEAAiE;AACjE,kFAA6E;AAC7E,8EAA4E;AAC5E,oEAAiE;AACjE,uDAAoD;AACpD,2FAAwF;AACxF,iDAA8C;AAE9C,6CAA0C;AAC1C,+DAA+D;
|
|
1
|
+
{"version":3,"file":"ApplicationLeadForm.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/ApplicationLeadForm.tsx"],"names":[],"mappings":";;;AAAA,2CAA2C;AAC3C,+CAAwC;AACxC,uDAAmF;AACnF,yDAAsD;AAGtD,sGAAmG;AACnG,sEAAmE;AACnE,oGAAiG;AACjG,oEAAiE;AACjE,kFAA6E;AAC7E,8EAA4E;AAC5E,oEAAiE;AACjE,uDAAoD;AACpD,2FAAwF;AACxF,iDAA8C;AAE9C,6CAA0C;AAC1C,+DAA+D;AAC/D,6EAIsC;AACtC,uDAAoD;AACpD,iDAA8C;AAC9C,6DAA0D;AAC1D,mEAAgE;AAChE,qEAAkE;AAIrD,QAAA,mBAAmB,GAAG,IAAA,aAAG,EACpC,CAAC,EACC,SAAS,EACT,KAAK,EACL,SAAS,GAAG,EAAE,EACd,YAAY,GAAG,cAAc,EAC7B,MAAM,EACN,WAAW,GAAG,QAAQ,EACtB,IAAI,EACJ,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,GAAgB,CAAC;IAC7D,MAAM,QAAQ,GAAG,IAAA,cAAM,EAAyB,IAAI,CAAC,CAAC;IACtD,MAAM,mBAAmB,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE,CAAC,IAAA,4CAAsB,EAAC,WAAW,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAC9F,MAAM,MAAM,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE,CAAC,SAAS,CAAC,mBAAmB,CAAC,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC;IAEpF,MAAM,oBAAoB,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC,WAAW,CAAC,EAAE,CAAC,WA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,CAAC;AAE7E,MAAM,uBAAuB,GAAG,CAAC,WAAwB,EAAE,EAAE,CAAC,CAAC;IAC7D,GAAG,2BAAY;IACf,eAAe,EAAE,IAAA,2DAA4B,EAAC,WAAW,CAAC;CAC3D,CAAC,CAAC"}
|
|
@@ -3,6 +3,11 @@ import { type TextProps, type TitleProps } from '../../model/HeadlineType';
|
|
|
3
3
|
import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
|
|
4
4
|
import { type InputRetailSectionsType } from '../../retail/model/InputSectionsType';
|
|
5
5
|
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
6
|
+
export declare enum EsiaStatuses {
|
|
7
|
+
Success = "SUCCESS",
|
|
8
|
+
Error = "ERROR",
|
|
9
|
+
Pending = "PENDING"
|
|
10
|
+
}
|
|
6
11
|
export declare type SubmitButtonProps = TextProps & {
|
|
7
12
|
version?: LinkButtonVersion;
|
|
8
13
|
};
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.EsiaStatuses = void 0;
|
|
3
|
+
var EsiaStatuses;
|
|
4
|
+
(function (EsiaStatuses) {
|
|
5
|
+
EsiaStatuses["Success"] = "SUCCESS";
|
|
6
|
+
EsiaStatuses["Error"] = "ERROR";
|
|
7
|
+
EsiaStatuses["Pending"] = "PENDING";
|
|
8
|
+
})(EsiaStatuses = exports.EsiaStatuses || (exports.EsiaStatuses = {}));
|
|
2
9
|
//# sourceMappingURL=ApplicationLeadFormContent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationLeadFormContent.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"ApplicationLeadFormContent.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts"],"names":[],"mappings":";;AAMA,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,+BAAe,CAAA;IACf,mCAAmB,CAAA;AACrB,CAAC,EAJW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAIvB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { type LeadFormState } from '../../retail/model/LeadFormState';
|
|
2
2
|
import { type FieldRetailDef } from '../../retail/model/RetailFormContent';
|
|
3
|
-
import { EsiaStatuses } from './
|
|
4
|
-
import { type ProductType } from './ApplicationLeadFormContent';
|
|
3
|
+
import { EsiaStatuses, type ProductType } from './ApplicationLeadFormContent';
|
|
5
4
|
declare type InitApplicationLeadProps = {
|
|
6
5
|
inputs: FieldRetailDef[];
|
|
7
6
|
nextStepLink: string;
|
|
@@ -3,7 +3,7 @@ exports.useInitApplicationLead = void 0;
|
|
|
3
3
|
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
4
4
|
const useSetter_1 = require("../../hooks/useSetter");
|
|
5
5
|
const esiaRequestProfile_1 = require("../../retail/api/esiaRequestProfile");
|
|
6
|
-
const
|
|
6
|
+
const ApplicationLeadFormContent_1 = require("./ApplicationLeadFormContent");
|
|
7
7
|
const getInitialFormState_1 = require("./getInitialFormState");
|
|
8
8
|
const parseEsiaProfile_1 = require("./parseEsiaProfile");
|
|
9
9
|
const useLeadFormStore_1 = require("./useLeadFormStore");
|
|
@@ -12,7 +12,7 @@ const useInitApplicationLead = ({ inputs, productType, setEsiaStatus, esiaAuthSu
|
|
|
12
12
|
const saveForm = (0, useSetter_1.useSetter)(leadFormStore, 'leadForm');
|
|
13
13
|
const initialFormState = (0, hooks_1.useMemo)(() => (0, getInitialFormState_1.getInitialFormState)(inputs, leadFormStore.leadForm, esiaAuthSuccess), [inputs, leadFormStore.leadForm]);
|
|
14
14
|
const requestEsiaProfile = (0, hooks_1.useCallback)(async (code, state) => {
|
|
15
|
-
setEsiaStatus(
|
|
15
|
+
setEsiaStatus(ApplicationLeadFormContent_1.EsiaStatuses.Pending);
|
|
16
16
|
try {
|
|
17
17
|
const data = await (0, esiaRequestProfile_1.esiaRequestProfile)({
|
|
18
18
|
code,
|
|
@@ -26,11 +26,11 @@ const useInitApplicationLead = ({ inputs, productType, setEsiaStatus, esiaAuthSu
|
|
|
26
26
|
..._,
|
|
27
27
|
...parsedData,
|
|
28
28
|
}));
|
|
29
|
-
setEsiaStatus(
|
|
29
|
+
setEsiaStatus(ApplicationLeadFormContent_1.EsiaStatuses.Success);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
catch {
|
|
33
|
-
setEsiaStatus(
|
|
33
|
+
setEsiaStatus(ApplicationLeadFormContent_1.EsiaStatuses.Error);
|
|
34
34
|
}
|
|
35
35
|
}, []);
|
|
36
36
|
(0, hooks_1.useEffect)(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInitApplicationLead.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/useInitApplicationLead.ts"],"names":[],"mappings":";;AAAA,uDAA8E;AAC9E,qDAAkD;AAClD,4EAAyE;AAGzE
|
|
1
|
+
{"version":3,"file":"useInitApplicationLead.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/useInitApplicationLead.ts"],"names":[],"mappings":";;AAAA,uDAA8E;AAC9E,qDAAkD;AAClD,4EAAyE;AAGzE,6EAA8E;AAC9E,+DAA4D;AAC5D,yDAAsD;AACtD,yDAAsD;AAU/C,MAAM,sBAAsB,GAAG,CAAC,EACrC,MAAM,EACN,WAAW,EACX,aAAa,EACb,eAAe,GACU,EAAiB,EAAE;IAC5C,MAAM,aAAa,GAAG,IAAA,mCAAgB,GAAE,CAAC;IACzC,MAAM,QAAQ,GAAG,IAAA,qBAAS,EAAC,aAAa,EAAE,UAAU,CAAC,CAAC;IAEtD,MAAM,gBAAgB,GAAG,IAAA,eAAO,EAC9B,GAAG,EAAE,CAAC,IAAA,yCAAmB,EAAC,MAAM,EAAE,aAAa,CAAC,QAAQ,EAAE,eAAe,CAAC,EAC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CAAC;YACzC,cAAc,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;SAC3C;IACH,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,gBAAgB,CAAC;AAC1B,CAAC,CAAC;AAtDW,QAAA,sBAAsB,0BAsDjC"}
|
|
@@ -35,12 +35,10 @@ const Headline_1 = require("./Headline/Headline");
|
|
|
35
35
|
const HorizontalLayout_1 = require("./HorizontalLayout/HorizontalLayout");
|
|
36
36
|
const ImgBlock_1 = require("./ImgBlock/ImgBlock");
|
|
37
37
|
const InsuranceAmountBlock_1 = require("./InsuranceAmountBlock/InsuranceAmountBlock");
|
|
38
|
-
const InvestmentInfo_1 = require("./InvestmentInfo/InvestmentInfo");
|
|
39
38
|
const LinkDocs_1 = require("./LinkDocs/LinkDocs");
|
|
40
39
|
const MobileAppTile_1 = require("./MobileAppTile/MobileAppTile");
|
|
41
40
|
const OfficesAtmsMap_1 = require("./OfficesAtmsMap/OfficesAtmsMap");
|
|
42
41
|
const ProductBlock_1 = require("./ProductBlock/ProductBlock");
|
|
43
|
-
const RepresentativeOfficeInfo_1 = require("./RepresentativeOfficeInfo/RepresentativeOfficeInfo");
|
|
44
42
|
const RichTextBlock_1 = require("./RichTextBlock/RichTextBlock");
|
|
45
43
|
const RollupItem_1 = require("./RollupItem/RollupItem");
|
|
46
44
|
const StepsBlock_1 = require("./StepsBlock/StepsBlock");
|
|
@@ -48,7 +46,6 @@ const StickyBottomMenu_1 = require("./StickyBottomMenu/StickyBottomMenu");
|
|
|
48
46
|
const TabsLayout_1 = require("./TabsLayout/TabsLayout");
|
|
49
47
|
const TariffsTable_1 = require("./TariffsTable/TariffsTable");
|
|
50
48
|
const TextBlock_1 = require("./TextBlock/TextBlock");
|
|
51
|
-
const UnitBlock_1 = require("./UnitBlock/UnitBlock");
|
|
52
49
|
const VerticalLayout_1 = require("./VerticalLayout/VerticalLayout");
|
|
53
50
|
const Video_1 = require("./Video/Video");
|
|
54
51
|
exports.Blocks = {
|
|
@@ -83,12 +80,10 @@ exports.Blocks = {
|
|
|
83
80
|
HorizontalLayout: HorizontalLayout_1.HorizontalLayout,
|
|
84
81
|
ImgBlock: ImgBlock_1.ImgBlock,
|
|
85
82
|
InsuranceAmountBlock: InsuranceAmountBlock_1.InsuranceAmountBlock,
|
|
86
|
-
InvestmentInfo: InvestmentInfo_1.InvestmentInfo,
|
|
87
83
|
LinkDocs: LinkDocs_1.LinkDocs,
|
|
88
84
|
MobileAppTile: MobileAppTile_1.MobileAppTile,
|
|
89
85
|
OfficesAtmsMap: OfficesAtmsMap_1.OfficesAtmsMap,
|
|
90
86
|
ProductBlock: ProductBlock_1.ProductBlock,
|
|
91
|
-
RepresentativeOfficeInfo: RepresentativeOfficeInfo_1.RepresentativeOfficeInfo,
|
|
92
87
|
RichTextBlock: RichTextBlock_1.RichTextBlock,
|
|
93
88
|
RollupItem: RollupItem_1.RollupItem,
|
|
94
89
|
StepsBlock: StepsBlock_1.StepsBlock,
|
|
@@ -96,7 +91,6 @@ exports.Blocks = {
|
|
|
96
91
|
TabsLayout: TabsLayout_1.TabsLayout,
|
|
97
92
|
TariffsTable: TariffsTable_1.TariffsTable,
|
|
98
93
|
TextBlock: TextBlock_1.TextBlock,
|
|
99
|
-
UnitBlock: UnitBlock_1.UnitBlock,
|
|
100
94
|
VerticalLayout: VerticalLayout_1.VerticalLayout,
|
|
101
95
|
Video: Video_1.Video,
|
|
102
96
|
ApplicationLeadForm: ApplicationLeadForm_1.ApplicationLeadForm,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Blocks.js","sourceRoot":"","sources":["../../src/components/Blocks.ts"],"names":[],"mappings":";;AAEA,4CAAyC;AACzC,uEAAoE;AACpE,mFAAgF;AAChF,yFAAsF;AACtF,iEAA8D;AAC9D,gFAA6E;AAC7E,8DAA2D;AAC3D,uEAAoE;AACpE,qGAAkG;AAClG,0EAAuE;AACvE,6EAA0E;AAC1E,yFAAsF;AACtF,8DAA2D;AAC3D,kDAA+C;AAC/C,8DAA2D;AAC3D,mFAAgF;AAChF,iEAA8D;AAC9D,wGAAqG;AACrG,mFAAgF;AAChF,iEAA8D;AAC9D,oEAAiE;AACjE,wDAAqD;AACrD,qDAAkD;AAClD,6EAA0E;AAC1E,wDAAqD;AACrD,wDAAqD;AACrD,0EAAuE;AACvE,4CAAyC;AACzC,iEAA8D;AAC9D,8DAA2D;AAC3D,4CAAyC;AACzC,kDAA+C;AAC/C,0EAAuE;AACvE,kDAA+C;AAC/C,sFAAmF;AACnF,
|
|
1
|
+
{"version":3,"file":"Blocks.js","sourceRoot":"","sources":["../../src/components/Blocks.ts"],"names":[],"mappings":";;AAEA,4CAAyC;AACzC,uEAAoE;AACpE,mFAAgF;AAChF,yFAAsF;AACtF,iEAA8D;AAC9D,gFAA6E;AAC7E,8DAA2D;AAC3D,uEAAoE;AACpE,qGAAkG;AAClG,0EAAuE;AACvE,6EAA0E;AAC1E,yFAAsF;AACtF,8DAA2D;AAC3D,kDAA+C;AAC/C,8DAA2D;AAC3D,mFAAgF;AAChF,iEAA8D;AAC9D,wGAAqG;AACrG,mFAAgF;AAChF,iEAA8D;AAC9D,oEAAiE;AACjE,wDAAqD;AACrD,qDAAkD;AAClD,6EAA0E;AAC1E,wDAAqD;AACrD,wDAAqD;AACrD,0EAAuE;AACvE,4CAAyC;AACzC,iEAA8D;AAC9D,8DAA2D;AAC3D,4CAAyC;AACzC,kDAA+C;AAC/C,0EAAuE;AACvE,kDAA+C;AAC/C,sFAAmF;AACnF,kDAA+C;AAC/C,iEAA8D;AAC9D,oEAAiE;AACjE,8DAA2D;AAC3D,iEAA8D;AAC9D,wDAAqD;AACrD,wDAAqD;AACrD,0EAAuE;AACvE,wDAAqD;AACrD,8DAA2D;AAC3D,qDAAkD;AAClD,oEAAiE;AACjE,yCAAsC;AAEzB,QAAA,MAAM,GAAmB;IACpC,MAAM,EAAN,eAAM;IACN,eAAe,EAAf,iCAAe;IACf,qBAAqB,EAArB,6CAAqB;IACrB,a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("./LinkDocs/LinkDocs");
|
|
|
36
36
|
const MobileAppTile_1 = require("./MobileAppTile/MobileAppTile");
|
|
37
37
|
const OfficesAtmsMap_1 = require("./OfficesAtmsMap/OfficesAtmsMap");
|
|
38
38
|
const ProductBlock_1 = require("./ProductBlock/ProductBlock");
|
|
39
|
-
const RepresentativeOfficeInfo_1 = require("./RepresentativeOfficeInfo/RepresentativeOfficeInfo");
|
|
40
39
|
const RichTextBlock_1 = require("./RichTextBlock/RichTextBlock");
|
|
41
40
|
const RollupItem_1 = require("./RollupItem/RollupItem");
|
|
42
41
|
const StepsBlock_1 = require("./StepsBlock/StepsBlock");
|
|
@@ -44,7 +43,6 @@ const StickyBottomMenu_1 = require("./StickyBottomMenu/StickyBottomMenu");
|
|
|
44
43
|
const TabsLayout_1 = require("./TabsLayout/TabsLayout");
|
|
45
44
|
const TariffsTable_1 = require("./TariffsTable/TariffsTable");
|
|
46
45
|
const TextBlock_1 = require("./TextBlock/TextBlock");
|
|
47
|
-
const UnitBlock_1 = require("./UnitBlock/UnitBlock");
|
|
48
46
|
const VerticalLayout_1 = require("./VerticalLayout/VerticalLayout");
|
|
49
47
|
exports.Blocks = {
|
|
50
48
|
AdTile: AdTile_1.AdTile,
|
|
@@ -80,7 +78,6 @@ exports.Blocks = {
|
|
|
80
78
|
MobileAppTile: MobileAppTile_1.MobileAppTile,
|
|
81
79
|
OfficesAtmsMap: OfficesAtmsMap_1.OfficesAtmsMap,
|
|
82
80
|
ProductBlock: ProductBlock_1.ProductBlock,
|
|
83
|
-
RepresentativeOfficeInfo: RepresentativeOfficeInfo_1.RepresentativeOfficeInfo,
|
|
84
81
|
RichTextBlock: RichTextBlock_1.RichTextBlock,
|
|
85
82
|
RollupItem: RollupItem_1.RollupItem,
|
|
86
83
|
StepsBlock: StepsBlock_1.StepsBlock,
|
|
@@ -88,7 +85,6 @@ exports.Blocks = {
|
|
|
88
85
|
TabsLayout: TabsLayout_1.TabsLayout,
|
|
89
86
|
TariffsTable: TariffsTable_1.TariffsTable,
|
|
90
87
|
TextBlock: TextBlock_1.TextBlock,
|
|
91
|
-
UnitBlock: UnitBlock_1.UnitBlock,
|
|
92
88
|
VerticalLayout: VerticalLayout_1.VerticalLayout,
|
|
93
89
|
ApplicationLeadForm: ApplicationLeadForm_1.ApplicationLeadForm,
|
|
94
90
|
CreditCardForm: CreditCardForm_1.CreditCardForm,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Blocks.mobile.js","sourceRoot":"","sources":["../../src/components/Blocks.mobile.ts"],"names":[],"mappings":";;AAEA,4CAAyC;AACzC,uEAAoE;AACpE,mFAAgF;AAChF,yFAAsF;AACtF,iEAA8D;AAC9D,gFAA6E;AAC7E,8DAA2D;AAC3D,uEAAoE;AACpE,qGAAkG;AAClG,0EAAuE;AACvE,6EAA0E;AAC1E,yFAAsF;AACtF,8DAA2D;AAC3D,kDAA+C;AAC/C,8DAA2D;AAC3D,mFAAgF;AAChF,iEAA8D;AAC9D,wGAAqG;AACrG,mFAAgF;AAChF,oEAAiE;AACjE,wDAAqD;AACrD,6EAA0E;AAC1E,wDAAqD;AACrD,wDAAqD;AACrD,0EAAuE;AACvE,4CAAyC;AACzC,iEAA8D;AAC9D,8DAA2D;AAC3D,4CAAyC;AACzC,kDAA+C;AAC/C,0EAAuE;AACvE,kDAA+C;AAC/C,kDAA+C;AAC/C,iEAA8D;AAC9D,oEAAiE;AACjE,8DAA2D;AAC3D,
|
|
1
|
+
{"version":3,"file":"Blocks.mobile.js","sourceRoot":"","sources":["../../src/components/Blocks.mobile.ts"],"names":[],"mappings":";;AAEA,4CAAyC;AACzC,uEAAoE;AACpE,mFAAgF;AAChF,yFAAsF;AACtF,iEAA8D;AAC9D,gFAA6E;AAC7E,8DAA2D;AAC3D,uEAAoE;AACpE,qGAAkG;AAClG,0EAAuE;AACvE,6EAA0E;AAC1E,yFAAsF;AACtF,8DAA2D;AAC3D,kDAA+C;AAC/C,8DAA2D;AAC3D,mFAAgF;AAChF,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,EAAR,mBAAQ;IACR,aAAa,EAAb,6BAAa;IACb,cAAc,EAAd,+BAAc;IACd,YAAY,EAAZ,2BAAY;IACZ,aAAa,EAAb,6BAAa;IACb,UAAU,EAAV,uBAAU;IACV,UAAU,EAAV,uBAAU;IACV,gBAAgB,EAAhB,mCAAgB;IAChB,UAAU,EAAV,uBAAU;IACV,YAAY,EAAZ,2BAAY;IACZ,SAAS,EAAT,qBAAS;IACT,cAAc,EAAd,+BAAc;IACd,mBAAmB,EAAnB,yCAAmB;IACnB,cAAc,EAAd,+BAAc;IACd,UAAU,EAAV,uBAAU;CACX,CAAC"}
|
|
@@ -10,6 +10,7 @@ const getBorderStyle_1 = require("../../utils/getBorderStyle");
|
|
|
10
10
|
const getInnerPadding_1 = require("../../utils/getInnerPadding");
|
|
11
11
|
const style_1 = require("../../utils/style");
|
|
12
12
|
const gapStyles_1 = require("../HorizontalLayout/gapStyles");
|
|
13
|
+
const useSortProductBlocks_1 = require("./useSortProductBlocks");
|
|
13
14
|
const MIN_LENGTH_CHILD = 5;
|
|
14
15
|
const SHORT_TILE_INDEXES = [1, 2, 3, 4];
|
|
15
16
|
const LINK_SCHEMA = {
|
|
@@ -31,10 +32,14 @@ const LINK_SCHEMA = {
|
|
|
31
32
|
required: ['href'],
|
|
32
33
|
},
|
|
33
34
|
};
|
|
34
|
-
exports.GalleryLayout = (0, UniBlock_1.UniBlock)(({ className = '', padding = 'p-0', gap = '', isInnerPadding = true, version = 'transparent', isTheme = false, isCardBorder = false,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
exports.GalleryLayout = (0, UniBlock_1.UniBlock)(({ className = '', padding = 'p-0', gap = '', isInnerPadding = true, version = 'transparent', isTheme = false, isCardBorder = false, block = {}, ...rest }) => {
|
|
36
|
+
const blocks = (0, useSortProductBlocks_1.useSortProductBlocks)(block);
|
|
37
|
+
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('grid grid-cols-1 sm:grid-cols-1 lg:grid-cols-4 lg:auto-rows-fr', gapStyles_1.gapStyles[gap], className), padding: padding, version: version, isTheme: isTheme, ...rest, children: (0, renderChildren_1.renderChildren)({
|
|
38
|
+
...rest,
|
|
39
|
+
block: { ...block, blocks },
|
|
40
|
+
renderProps: getRenderProps({ isInnerPadding, isCardBorder }),
|
|
41
|
+
}) }));
|
|
42
|
+
}, {
|
|
38
43
|
childrenTypes: ['ProductBlock'],
|
|
39
44
|
childSchema: () => LINK_SCHEMA,
|
|
40
45
|
allowRemoveChild: (slot) => (slot?.blocks ?? []).length > MIN_LENGTH_CHILD,
|
|
@@ -50,9 +55,10 @@ const blockDecoratorWrapper = (blockDecorator, idx = 0) => (props, i) => blockDe
|
|
|
50
55
|
...props,
|
|
51
56
|
render: (renderProps) => productBlockDecorator(idx)({ ...props, ...renderProps }, i),
|
|
52
57
|
}, `wrap_${i}`) ?? productBlockDecorator(idx)(props, i);
|
|
58
|
+
const visibilityByIdx = (i) => (Number(i) < 5 ? '' : 'hidden');
|
|
53
59
|
const productBlockDecorator = (idx) => ({ blockClassName, block, render }, i) => {
|
|
54
60
|
const modifiedBlock = modifyBlock(block, idx);
|
|
55
|
-
return ((0, jsx_runtime_1.jsx)(LinkWrapper_1.LinkWrapper, { ...modifiedBlock.content?.link, className: getChildStyle(idx), children: render({
|
|
61
|
+
return ((0, jsx_runtime_1.jsx)(LinkWrapper_1.LinkWrapper, { ...modifiedBlock.content?.link, className: (0, style_1.style)(visibilityByIdx(idx), getChildStyle(idx)), children: render({
|
|
56
62
|
blockClassName: (0, style_1.style)(blockClassName, 'h-full'),
|
|
57
63
|
block: modifiedBlock,
|
|
58
64
|
}) }, String(i)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GalleryLayout.js","sourceRoot":"","sources":["../../../src/components/GalleryLayout/GalleryLayout.tsx"],"names":[],"mappings":";;;AACA,iEAA8D;AAE9D,uEAAoE;AAIpE,4DAAyD;AACzD,sEAAmE;AACnE,sDAAmD;AAEnD,+DAA4D;AAC5D,iEAA8D;AAC9D,6CAA0C;AAC1C,6DAA0D;
|
|
1
|
+
{"version":3,"file":"GalleryLayout.js","sourceRoot":"","sources":["../../../src/components/GalleryLayout/GalleryLayout.tsx"],"names":[],"mappings":";;;AACA,iEAA8D;AAE9D,uEAAoE;AAIpE,4DAAyD;AACzD,sEAAmE;AACnE,sDAAmD;AAEnD,+DAA4D;AAC5D,iEAA8D;AAC9D,6CAA0C;AAC1C,6DAA0D;AAG1D,iEAA8D;AAE9D,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAC3B,MAAM,kBAAkB,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AACxC,MAAM,WAAW,GAA0C;IACzD,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,EAAE,IAAI,EAAE,+BAA+B,EAAE;YACzC;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,IAAI,EAAE;wBACJ,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,EAAE,IAAI,EAAE,0BAA0B,EAAE;wBAC3C,KAAK,EAAE,yBAAyB;qBACjC;iBACF;aACF;SACF;QACD,KAAK,EAAE,+CAA+C;QACtD,QAAQ,EAAE,CAAC,MAAM,CAAC;KACnB;CACF,CAAC;AAIW,QAAA,aAAa,GAAG,IAAA,mBAAQ,EACnC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,OAAO,GAAG,KAAK,EACf,GAAG,GAAG,EAAE,EACR,cAAc,GAAG,IAAI,EACrB,OAAO,GAAG,aAAa,EACvB,OAAO,GAAG,KAAK,EACf,YAAY,GAAG,KAAK,EACpB,KAAK,GAAG,EAAE,EACV,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,MAAM,GAAG,IAAA,2CAAoB,EAAC,KAAK,CAAC,CAAC;IAE3C,OAAO,CACL,uBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EACd,gE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O,CAAC,WAAW,CAAC;QAC3B,OAAO,OAAO,CAAC,QAAQ,CAAC;QAExB,IAAI,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE;YACtB,OAAO,OAAO,CAAC,OAAO,CAAC;SACxB;QAED,OAAO,CAAC,YAAY,GAAG,EAAE,GAAG,OAAO,CAAC,YAAY,EAAE,SAAS,EAAE,mBAAmB,EAAE,CAAC;KACpF;SAAM;QACL,IAAI,CAAC,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;YAClC,OAAO,OAAO,CAAC,IAAI,CAAC;SACrB;KACF;IAED,OAAO,EAAE,GAAG,KAAK,EAAE,OAAO,EAAE,CAAC;AAC/B,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.useSortProductBlocks = void 0;
|
|
3
|
+
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
4
|
+
const useSessionStore_1 = require("@redneckz/uni-jsx/lib/Store/useSessionStore");
|
|
5
|
+
const useSortProductBlocks = (parentBlock = {}) => {
|
|
6
|
+
const [blocks, setBlocks] = (0, hooks_1.useState)(parentBlock.blocks ?? []);
|
|
7
|
+
const sessionStore = (0, useSessionStore_1.useSessionStore)();
|
|
8
|
+
const offerIds = sessionStore?.offerIds || [];
|
|
9
|
+
const sortedBlocks = (0, hooks_1.useMemo)(() => {
|
|
10
|
+
const blocksMap = new Map(parentBlock.blocks?.map((block) => [block?.__id, block]) ?? []);
|
|
11
|
+
const blocksByOfferIds = offerIds
|
|
12
|
+
.map((id) => blocksMap.get(id))
|
|
13
|
+
.filter((block) => Boolean(block));
|
|
14
|
+
const tailBlocks = blocks.filter(({ __id = '' }) => !offerIds.includes(__id));
|
|
15
|
+
return [...blocksByOfferIds, ...tailBlocks];
|
|
16
|
+
}, [blocks, offerIds]);
|
|
17
|
+
(0, hooks_1.useEffect)(() => setBlocks(sortedBlocks), []);
|
|
18
|
+
return blocks;
|
|
19
|
+
};
|
|
20
|
+
exports.useSortProductBlocks = useSortProductBlocks;
|
|
21
|
+
//# sourceMappingURL=useSortProductBlocks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSortProductBlocks.js","sourceRoot":"","sources":["../../../src/components/GalleryLayout/useSortProductBlocks.ts"],"names":[],"mappings":";;AAAA,uDAA2E;AAC3E,iFAA8E;AAGvE,MAAM,oBAAoB,GAAG,CAAC,cAAwB,EAAE,EAAc,EAAE;IAC7E,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAC,WAAW,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC;IAC/D,MAAM,YAAY,GAAG,IAAA,iCAAe,GAAE,CAAC;IACvC,MAAM,QAAQ,GAAa,YAAY,EAAE,QAAQ,IAAI,EAAE,CAAC;IAExD,MAAM,YAAY,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QAChC,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,WAAW,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;QAE1F,MAAM,gBAAgB,GAAG,QAAQ;aAC9B,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;aAC9B,MAAM,CAAC,CAAC,KAAK,EAAqB,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;QAExD,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,GAAG,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;QAE9E,OAAO,CAAC,GAAG,gBAAgB,EAAE,GAAG,UAAU,CAAC,CAAC;IAC9C,CAAC,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;IAEvB,IAAA,iBAAS,EAAC,GAAG,EAAE,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,EAAE,CAAC,CAAC;IAE7C,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AApBW,QAAA,oBAAoB,wBAoB/B"}
|
|
@@ -5,6 +5,7 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
6
|
const getAspectsWithInclude_1 = require("../../hooks/useAspects/aspects/getAspectsWithInclude");
|
|
7
7
|
const useLocation_1 = require("../../hooks/useLocation");
|
|
8
|
+
const ClientOnly_1 = require("../../ui-kit/ClientOnly");
|
|
8
9
|
const useDialog_1 = require("../../ui-kit/DialogManager/useDialog");
|
|
9
10
|
const LocationDialog_1 = require("../../ui-kit/LocationDialog/LocationDialog");
|
|
10
11
|
const SearchDialog_1 = require("../../ui-kit/SearchDialog/SearchDialog");
|
|
@@ -18,6 +19,6 @@ exports.HeaderSecondaryMenu = (0, uni_jsx_1.JSX)(({ className, version, ...rest
|
|
|
18
19
|
const locationDialog = (0, useDialog_1.useDialog)(LocationDialog_1.LocationDialog, rest);
|
|
19
20
|
const openSearchDialog = (0, hooks_1.useCallback)(() => searchDialog.open({}), [searchDialog]);
|
|
20
21
|
const openLocationDialog = (0, hooks_1.useCallback)(() => locationDialog.open({}), [locationDialog]);
|
|
21
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex items-center ml-5 md:max-w-[300px] xl:max-w-full gap-lg', className), role: "navigation", children: [rest?.branches?.visible ? ((0, jsx_runtime_1.jsx)(TopItem_1.TopItem, { className: "whitespace-nowrap text-ellipsis overflow-hidden", flat: true, href: "#", text: currentLocation?.name, data: (0, getAspectsWithInclude_1.getAspectsWithInclude)(rest?.branches?.dataClick, currentLocation?.name ?? ''), onClick: openLocationDialog })) : null, rest?.officesAtms?.href ? ((0, jsx_runtime_1.jsx)(TopItem_1.TopItem, { className: "whitespace-nowrap", flat: true, ...rest.officesAtms })) : null, (0, jsx_runtime_1.jsx)(HeaderSecondaryMenuButton_1.HeaderSecondaryMenuButton, { image: { icon: 'LoupeIcon', iconVersion }, ariaLabel: rest?.search?.ariaLabel ?? 'Поиск', onClick: openSearchDialog, data: rest?.search?.data })] }));
|
|
22
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex items-center ml-5 md:max-w-[300px] xl:max-w-full gap-lg', className), role: "navigation", children: [currentLocation?.name && rest?.branches?.visible ? ((0, jsx_runtime_1.jsx)(ClientOnly_1.ClientOnly, { children: (0, jsx_runtime_1.jsx)(TopItem_1.TopItem, { className: "whitespace-nowrap text-ellipsis overflow-hidden", flat: true, href: "#", text: currentLocation?.name, data: (0, getAspectsWithInclude_1.getAspectsWithInclude)(rest?.branches?.dataClick, currentLocation?.name ?? ''), onClick: openLocationDialog }) })) : null, rest?.officesAtms?.href ? ((0, jsx_runtime_1.jsx)(TopItem_1.TopItem, { className: "whitespace-nowrap", flat: true, ...rest.officesAtms })) : null, (0, jsx_runtime_1.jsx)(HeaderSecondaryMenuButton_1.HeaderSecondaryMenuButton, { image: { icon: 'LoupeIcon', iconVersion }, ariaLabel: rest?.search?.ariaLabel ?? 'Поиск', onClick: openSearchDialog, data: rest?.search?.data })] }));
|
|
22
23
|
});
|
|
23
24
|
//# sourceMappingURL=HeaderSecondaryMenu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderSecondaryMenu.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderSecondaryMenu.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA0D;AAI1D,gGAA6F;AAC7F,yDAAsD;AAGtD,oEAAiE;AACjE,+EAA4E;AAC5E,yEAAsE;AACtE,0DAAuD;AACvD,6CAA0C;AAC1C,2EAAwE;AAO3D,QAAA,mBAAmB,G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B,EAAC,IAAI,EAAE,IAAI,KAAM,IAAI,CAAC,WAAW,GAAI,CAC5E,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,qDAAyB,IACxB,KAAK,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,EACzC,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,IAAI,OAAO,EAC7C,OAAO,EAAE,gBAAgB,EACzB,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,GACxB,IACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -5,5 +5,5 @@ const BaseProductTile_1 = require("../../ui-kit/BaseProductTile/BaseProductTile"
|
|
|
5
5
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
6
6
|
const UniBlock_1 = require("../../UniBlock/UniBlock");
|
|
7
7
|
const style_1 = require("../../utils/style");
|
|
8
|
-
exports.ProductBlock = (0, UniBlock_1.UniBlock)(({ className, padding, defaultPadding, ...rest }) => ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('overflow-hidden flex flex-col gap-3xl box-border', className), padding: "p-0", ...rest, children: (0, jsx_runtime_1.jsx)(BaseProductTile_1.BaseProductTile, { defaultPadding: defaultPadding || 'p-6xl', padding: padding, className: "grow h-full", ...rest }) }))
|
|
8
|
+
exports.ProductBlock = (0, UniBlock_1.UniBlock)(({ className, padding, defaultPadding, ...rest }) => ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('overflow-hidden flex flex-col gap-3xl box-border', className), padding: "p-0", ...rest, children: (0, jsx_runtime_1.jsx)(BaseProductTile_1.BaseProductTile, { defaultPadding: defaultPadding || 'p-6xl', padding: padding, className: "grow h-full", ...rest }) })));
|
|
9
9
|
//# sourceMappingURL=ProductBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductBlock.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlock.tsx"],"names":[],"mappings":";;;AAAA,kFAA+E;AAC/E,4DAAyD;AACzD,sDAAmD;AAEnD,6CAA0C;AAK7B,QAAA,YAAY,GAAG,IAAA,mBAAQ,EAClC,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CACnD,uBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EAAC,kDAAkD,EAAE,SAAS,CAAC,EAC/E,OAAO,EAAC,KAAK,KACT,IAAI,YAER,uBAAC,iCAAe,IACd,cAAc,EAAE,cAAc,IAAI,OAAO,EACzC,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,aAAa,KACnB,IAAI,GACR,GACW,CAChB,
|
|
1
|
+
{"version":3,"file":"ProductBlock.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlock.tsx"],"names":[],"mappings":";;;AAAA,kFAA+E;AAC/E,4DAAyD;AACzD,sDAAmD;AAEnD,6CAA0C;AAK7B,QAAA,YAAY,GAAG,IAAA,mBAAQ,EAClC,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CACnD,uBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EAAC,kDAAkD,EAAE,SAAS,CAAC,EAC/E,OAAO,EAAC,KAAK,KACT,IAAI,YAER,uBAAC,iCAAe,IACd,cAAc,EAAE,cAAc,IAAI,OAAO,EACzC,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,aAAa,KACnB,IAAI,GACR,GACW,CAChB,CACF,CAAC"}
|
|
@@ -14,14 +14,14 @@ exports.BurgerMenuDialog = (0, uni_jsx_1.JSX)(({ menuRef, menuItem, locationDial
|
|
|
14
14
|
const locationDialog = (0, useDialog_1.useDialog)(LocationDialog_1.LocationDialog, locationDialogProps);
|
|
15
15
|
const { name: location } = (0, useLocation_1.useLocation)();
|
|
16
16
|
const menuDimensions = menuRef?.current?.getBoundingClientRect();
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
const iframeWindow = globalThis.frames['burger-menu-iframe'];
|
|
17
|
+
const handleIframeLoad = (0, hooks_1.useCallback)(() => {
|
|
18
|
+
const iframeWindow = globalThis?.frames['burger-menu-iframe'];
|
|
20
19
|
const ifDoc = document.getElementsByTagName('iframe')['iframe-dialog'];
|
|
21
20
|
ifDoc.style.height = String(ifDoc?.contentWindow?.document.body.offsetHeight) + 'px';
|
|
21
|
+
const basePath = (0, getBasePath_1.getBasePath)(Env_1.env.SITE_URL);
|
|
22
22
|
iframeWindow.postMessage({ type: 'currentTab', data: basePath?.slice(1) }, '*');
|
|
23
23
|
iframeWindow.postMessage({ type: 'currentLocation', data: location }, '*');
|
|
24
|
-
};
|
|
24
|
+
}, [Env_1.env.SITE_URL]);
|
|
25
25
|
(0, hooks_1.useEffect)(() => {
|
|
26
26
|
const iframeWindow = globalThis.frames['burger-menu-iframe'];
|
|
27
27
|
iframeWindow.postMessage({ type: 'currentLocation', data: location }, '*');
|
|
@@ -46,6 +46,6 @@ exports.BurgerMenuDialog = (0, uni_jsx_1.JSX)(({ menuRef, menuItem, locationDial
|
|
|
46
46
|
globalThis.removeEventListener('message', onMessage);
|
|
47
47
|
};
|
|
48
48
|
}, [onClose]);
|
|
49
|
-
return ((0, jsx_runtime_1.jsx)(StickyBottomMenuDialog_1.StickyBottomMenuDialog, { head: (0, jsx_runtime_1.jsx)("div", { className: "flex items-center justify-center px-xl", children: (0, jsx_runtime_1.jsx)(Heading_1.Heading, { as: "h4", title: menuItem?.title, className: "font-medium" }) }), onClick: (e) => e.stopPropagation(), onClose: onClose, children: (0, jsx_runtime_1.jsx)("div", { className: "bg-white pb-20 pt-1 text-l", children: (0, jsx_runtime_1.jsx)("iframe", { id: "iframe-dialog", name: "burger-menu-iframe", onLoad:
|
|
49
|
+
return ((0, jsx_runtime_1.jsx)(StickyBottomMenuDialog_1.StickyBottomMenuDialog, { head: (0, jsx_runtime_1.jsx)("div", { className: "flex items-center justify-center px-xl", children: (0, jsx_runtime_1.jsx)(Heading_1.Heading, { as: "h4", title: menuItem?.title, className: "font-medium" }) }), onClick: (e) => e.stopPropagation(), onClose: onClose, children: (0, jsx_runtime_1.jsx)("div", { className: "bg-white pb-20 pt-1 text-l", children: (0, jsx_runtime_1.jsx)("iframe", { id: "iframe-dialog", name: "burger-menu-iframe", onLoad: handleIframeLoad, src: menuItem?.src, width: menuDimensions?.width || 0 }) }) }));
|
|
50
50
|
});
|
|
51
51
|
//# sourceMappingURL=BurgerMenuDialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BurgerMenuDialog.js","sourceRoot":"","sources":["../../../src/components/StickyBottomMenu/BurgerMenuDialog.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"BurgerMenuDialog.js","sourceRoot":"","sources":["../../../src/components/StickyBottomMenu/BurgerMenuDialog.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAqE;AAIrE,mCAAgC;AAChC,yDAAsD;AACtD,oEAAiE;AACjE,0DAAuD;AACvD,+EAA4E;AAC5E,yDAAsD;AACtD,qEAAkE;AASrD,QAAA,gBAAgB,GAAG,IAAA,aAAG,EACjC,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,OAAO,EAAE,EAAE,EAAE;IACtD,MAAM,cAAc,GAAG,IAAA,qBAAS,EAAC,+BAAc,EAAE,mBAAmB,CAAC,CAAC;IACtE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,IAAA,yBAAW,GAAE,CAAC;IACzC,MAAM,cAAc,GAAG,OAAO,EAAE,OAAO,EAAE,qBAAqB,EAAE,CAAC;IAEjE,MAAM,gBAAgB,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE;QACxC,MAAM,YAAY,GAAW,UAAU,EAAE,MAAM,CAAC,oBAAoB,CAAC,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AAK,QAAQ,EAAE;gBAC5B,MAAM,KAAK,GAAsB,QAAQ,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC,eAAe,CAAC,CAAC;gBAC1F,IAAI,KAAK,IAAI,KAAK,CAAC,KAAK,EAAE;oBACxB,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;iBACjD;aACF;QACH,CAAC,CAAC;QACF,UAAU,CAAC,gBAAgB,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;QAElD,OAAO,GAAG,EAAE;YACV,UAAU,CAAC,mBAAmB,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;QACvD,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEd,OAAO,CACL,uBAAC,+CAAsB,IACrB,IAAI,EACF,gCAAK,SAAS,EAAC,wCAAwC,YACrD,uBAAC,iBAAO,IAAC,EAAE,EAAC,IAAI,EAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAC,aAAa,GAAG,GAC/D,EAER,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,EAAE,EACnC,OAAO,EAAE,OAAO,YAEhB,gCAAK,SAAS,EAAC,4BAA4B,YACzC,mCACE,EAAE,EAAC,eAAe,EAClB,IAAI,EAAC,oBAAoB,EACzB,MAAM,EAAE,gBAAgB,EACxB,GAAG,EAAE,QAAQ,EAAE,GAAG,EAClB,KAAK,EAAE,cAAc,EAAE,KAAK,IAAI,CAAC,GACjC,GACE,GACiB,CAC1B,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -9,39 +9,40 @@ const UniBlock_1 = require("../../UniBlock/UniBlock");
|
|
|
9
9
|
const getUrlParams_1 = require("../../utils/getUrlParams");
|
|
10
10
|
const style_1 = require("../../utils/style");
|
|
11
11
|
const renderTabsLayout_1 = require("./renderTabsLayout");
|
|
12
|
+
const STICKY_STYLE = 'sticky top-1 z-20';
|
|
12
13
|
exports.TabsLayout = (0, UniBlock_1.UniBlock)(
|
|
13
14
|
// eslint-disable-next-line max-lines-per-function
|
|
14
15
|
({ className = '', tabs = [], block, tabsType, showCounter = false, isSticky = false, ...rest }) => {
|
|
15
|
-
const id = getId(block
|
|
16
|
+
const id = getId(block || {});
|
|
16
17
|
const router = (0, useRouter_1.useRouter)();
|
|
17
18
|
const isEveryLink = tabs.every((_) => _?.type === 'link');
|
|
19
|
+
const query = new URLSearchParams(globalThis?.location?.search || '');
|
|
20
|
+
const currentQueryParam = query.get[id];
|
|
18
21
|
const tabsCounted = showCounter
|
|
19
22
|
? tabs.map((_) => ({
|
|
20
23
|
..._,
|
|
21
24
|
count: _?.type === 'group' ? block?.slots?.[_?.tabName ?? '']?.length ?? 0 : 0,
|
|
22
25
|
}))
|
|
23
26
|
: tabs;
|
|
24
|
-
const { isReady } = router;
|
|
25
27
|
const [activeTabIndex, setActiveTabIndex] = (0, hooks_1.useState)(getInitSelectedIndex(tabsCounted, (0, getUrlParams_1.getUrlParams)(id)));
|
|
26
28
|
const activeItem = tabsCounted[activeTabIndex];
|
|
27
29
|
const defaultSelectedTab = tabsCounted.findIndex((_) => Boolean(_.selected));
|
|
28
30
|
//TODO: Вынести в отдельный хук
|
|
29
31
|
(0, hooks_1.useEffect)(() => {
|
|
30
|
-
const defaultTabIndex =
|
|
31
|
-
? tabsCounted.findIndex((_, i) => _.type === 'group' && (_?.tabName ?? String(i)) ===
|
|
32
|
+
const defaultTabIndex = currentQueryParam
|
|
33
|
+
? tabsCounted.findIndex((_, i) => _.type === 'group' && (_?.tabName ?? String(i)) === currentQueryParam)
|
|
32
34
|
: defaultSelectedTab;
|
|
33
35
|
setActiveTabIndex(defaultTabIndex === -1 ? 0 : defaultTabIndex);
|
|
34
|
-
}, [
|
|
36
|
+
}, [defaultSelectedTab, currentQueryParam]);
|
|
35
37
|
const slotName = getSlotName(tabsCounted[activeTabIndex], activeTabIndex);
|
|
36
38
|
const updateUrlSearchTabParam = (_, i) => {
|
|
37
|
-
const searchParams = new URLSearchParams(router.query);
|
|
38
39
|
if (_.text) {
|
|
39
|
-
|
|
40
|
+
query.set(id, _?.tabName ?? String(i));
|
|
40
41
|
}
|
|
41
42
|
else {
|
|
42
|
-
|
|
43
|
+
query.delete(id);
|
|
43
44
|
}
|
|
44
|
-
router.replace(`${router.pathname}?${
|
|
45
|
+
router.replace(`${router.pathname}?${query}`, { scroll: false });
|
|
45
46
|
};
|
|
46
47
|
const handleChange = (0, hooks_1.useCallback)((_) => {
|
|
47
48
|
const index = tabsCounted.indexOf(_);
|
|
@@ -51,10 +52,10 @@ exports.TabsLayout = (0, UniBlock_1.UniBlock)(
|
|
|
51
52
|
updateUrlSearchTabParam(_, index);
|
|
52
53
|
}
|
|
53
54
|
}, [tabsCounted]);
|
|
54
|
-
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)({
|
|
55
|
+
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)({ [STICKY_STYLE]: [isSticky, isEveryLink].every(Boolean) }, className), defaultPadding: "p-0", block: block, ...rest, children: [(0, renderTabsLayout_1.renderTabsLayout)({
|
|
55
56
|
className: (0, style_1.style)({
|
|
56
|
-
'pb-1': block?.slots
|
|
57
|
-
|
|
57
|
+
'pb-1': [block?.slots, tabsType === 'default'].every(Boolean),
|
|
58
|
+
[STICKY_STYLE]: [isSticky, !isEveryLink].every(Boolean),
|
|
58
59
|
}),
|
|
59
60
|
items: getItems(tabs, tabsCounted),
|
|
60
61
|
activeItem,
|