@redneckz/wildless-cms-uni-blocks 0.8.28 → 0.8.30
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.8.29.js +41 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +127 -97
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Header/HeaderSecondaryMenuButton.d.ts +2 -3
- package/bundle/components/ImgBlock/ImgBlockContent.d.ts +1 -1
- package/bundle/components/StepsBlock/StepsBlockContent.d.ts +4 -1
- package/bundle/components/TariffsTable/TariffsTableContent.d.ts +3 -3
- package/bundle/components/TextBlock/TextBlockContent.d.ts +2 -7
- package/bundle/{services/sitemap → hooks}/fallbackWCMSResource.d.ts +1 -1
- package/bundle/hooks/useLink.d.ts +1 -1
- package/bundle/services/{sitemap/search → search}/jaroWinklerDistance.d.ts +0 -0
- package/bundle/services/{sitemap/search → search}/joinMaps.d.ts +0 -0
- package/bundle/services/{sitemap/search → search}/search.d.ts +0 -0
- package/bundle/services/{sitemap/search → search}/textRank.d.ts +0 -0
- package/bundle/services/{sitemap/search → search}/tokenize.d.ts +0 -0
- package/{dist/services/sitemap → bundle/services/search}/useSearch.d.ts +1 -1
- package/bundle/ui-kit/Button/ButtonProps.d.ts +2 -3
- package/bundle/ui-kit/Dialog/CloseButton.d.ts +7 -0
- package/bundle/ui-kit/Dialog/Dialog.d.ts +7 -0
- package/bundle/ui-kit/Location/LocationProps.d.ts +2 -2
- package/bundle/{model → ui-kit}/PreventableEvent.d.ts +0 -0
- package/bundle/ui-kit/SearchBar/SearchBarInner.d.ts +2 -3
- package/bundle/ui-kit/SearchBar/SearchBarInput.d.ts +9 -0
- package/bundle/{components/Footer → ui-kit/Sitemap}/Sitemap.d.ts +2 -2
- package/bundle/ui-kit/TopItem/TopItem.d.ts +1 -1
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/dist/components/Blocks.js +0 -2
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Footer/Footer.fallback.js +1 -1
- package/dist/components/Footer/Footer.fallback.js.map +1 -1
- package/dist/components/Footer/Footer.js +2 -21
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Header/Header.fallback.js +1 -1
- package/dist/components/Header/Header.fallback.js.map +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/Header/HeaderSecondaryMenuButton.d.ts +2 -3
- package/dist/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/dist/components/ImgBlock/ImgBlockContent.d.ts +1 -1
- package/dist/components/StepsBlock/StepsBlockContent.d.ts +4 -1
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +3 -3
- package/dist/components/TextBlock/TextBlockContent.d.ts +2 -7
- package/dist/{services/sitemap → hooks}/fallbackWCMSResource.d.ts +1 -1
- package/dist/{services/sitemap → hooks}/fallbackWCMSResource.js +0 -0
- package/dist/hooks/fallbackWCMSResource.js.map +1 -0
- package/dist/hooks/useLink.d.ts +1 -1
- package/dist/services/{sitemap/search → search}/jaroWinklerDistance.d.ts +0 -0
- package/dist/services/{sitemap/search → search}/jaroWinklerDistance.js +0 -0
- package/dist/services/search/jaroWinklerDistance.js.map +1 -0
- package/dist/services/{sitemap/search → search}/joinMaps.d.ts +0 -0
- package/dist/services/{sitemap/search → search}/joinMaps.js +0 -0
- package/dist/services/search/joinMaps.js.map +1 -0
- package/dist/services/{sitemap/search → search}/search.d.ts +0 -0
- package/{mobile/dist/services/sitemap → dist/services}/search/search.js +2 -2
- package/dist/services/search/search.js.map +1 -0
- package/dist/services/{sitemap/search → search}/textRank.d.ts +0 -0
- package/{mobile/dist/services/sitemap → dist/services}/search/textRank.js +2 -2
- package/dist/services/search/textRank.js.map +1 -0
- package/dist/services/{sitemap/search → search}/tokenize.d.ts +0 -0
- package/dist/services/{sitemap/search → search}/tokenize.js +0 -0
- package/dist/services/search/tokenize.js.map +1 -0
- package/{lib/services/sitemap → dist/services/search}/useSearch.d.ts +1 -1
- package/{mobile/dist/services/sitemap → dist/services/search}/useSearch.js +1 -1
- package/dist/services/search/useSearch.js.map +1 -0
- package/dist/ui-kit/Button/ButtonProps.d.ts +2 -3
- package/dist/ui-kit/Dialog/CloseButton.d.ts +7 -0
- package/dist/ui-kit/Dialog/CloseButton.js +8 -0
- package/dist/ui-kit/Dialog/CloseButton.js.map +1 -0
- package/dist/ui-kit/Dialog/Dialog.d.ts +7 -0
- package/dist/ui-kit/Dialog/Dialog.js +26 -0
- package/dist/ui-kit/Dialog/Dialog.js.map +1 -0
- package/dist/ui-kit/Location/Location.js +9 -11
- package/dist/ui-kit/Location/Location.js.map +1 -1
- package/dist/ui-kit/Location/LocationProps.d.ts +2 -2
- package/dist/{model → ui-kit}/PreventableEvent.d.ts +0 -0
- package/dist/{model → ui-kit}/PreventableEvent.js +0 -0
- package/dist/ui-kit/PreventableEvent.js.map +1 -0
- package/dist/ui-kit/SearchBar/SearchBarInner.d.ts +2 -3
- package/dist/ui-kit/SearchBar/SearchBarInner.js +46 -14
- package/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/dist/ui-kit/SearchBar/SearchBarInput.d.ts +9 -0
- package/dist/ui-kit/SearchBar/SearchBarInput.js +14 -0
- package/dist/ui-kit/SearchBar/SearchBarInput.js.map +1 -0
- package/{lib/components/Footer → dist/ui-kit/Sitemap}/Sitemap.d.ts +2 -2
- package/dist/ui-kit/Sitemap/Sitemap.js +23 -0
- package/dist/ui-kit/Sitemap/Sitemap.js.map +1 -0
- package/dist/ui-kit/TopItem/TopItem.d.ts +1 -1
- package/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/dist/utils/groupBy.js +6 -6
- package/dist/utils/groupBy.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/lib/components/Blocks.js +0 -2
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Footer/Footer.fallback.js +1 -1
- package/lib/components/Footer/Footer.fallback.js.map +1 -1
- package/lib/components/Footer/Footer.js +2 -21
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Header/Header.fallback.js +1 -1
- package/lib/components/Header/Header.fallback.js.map +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/Header/HeaderSecondaryMenuButton.d.ts +2 -3
- package/lib/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/lib/components/ImgBlock/ImgBlockContent.d.ts +1 -1
- package/lib/components/StepsBlock/StepsBlockContent.d.ts +4 -1
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +3 -3
- package/lib/components/TextBlock/TextBlockContent.d.ts +2 -7
- package/lib/{services/sitemap → hooks}/fallbackWCMSResource.d.ts +1 -1
- package/lib/{services/sitemap → hooks}/fallbackWCMSResource.js +0 -0
- package/lib/hooks/fallbackWCMSResource.js.map +1 -0
- package/lib/hooks/useLink.d.ts +1 -1
- package/lib/services/{sitemap/search → search}/jaroWinklerDistance.d.ts +0 -0
- package/lib/services/{sitemap/search → search}/jaroWinklerDistance.js +0 -0
- package/lib/services/search/jaroWinklerDistance.js.map +1 -0
- package/lib/services/{sitemap/search → search}/joinMaps.d.ts +0 -0
- package/lib/services/{sitemap/search → search}/joinMaps.js +0 -0
- package/lib/services/search/joinMaps.js.map +1 -0
- package/lib/services/{sitemap/search → search}/search.d.ts +0 -0
- package/lib/services/{sitemap/search → search}/search.js +2 -2
- package/lib/services/search/search.js.map +1 -0
- package/lib/services/{sitemap/search → search}/textRank.d.ts +0 -0
- package/{mobile/lib/services/sitemap → lib/services}/search/textRank.js +2 -2
- package/lib/services/search/textRank.js.map +1 -0
- package/lib/services/{sitemap/search → search}/tokenize.d.ts +0 -0
- package/lib/services/{sitemap/search → search}/tokenize.js +0 -0
- package/lib/services/search/tokenize.js.map +1 -0
- package/{mobile/bundle/services/sitemap → lib/services/search}/useSearch.d.ts +1 -1
- package/lib/services/{sitemap → search}/useSearch.js +1 -1
- package/lib/services/search/useSearch.js.map +1 -0
- package/lib/ui-kit/Button/ButtonProps.d.ts +2 -3
- package/lib/ui-kit/Dialog/CloseButton.d.ts +7 -0
- package/lib/ui-kit/Dialog/CloseButton.js +6 -0
- package/lib/ui-kit/Dialog/CloseButton.js.map +1 -0
- package/lib/ui-kit/Dialog/Dialog.d.ts +7 -0
- package/lib/ui-kit/Dialog/Dialog.js +24 -0
- package/lib/ui-kit/Dialog/Dialog.js.map +1 -0
- package/lib/ui-kit/Location/Location.js +9 -11
- package/lib/ui-kit/Location/Location.js.map +1 -1
- package/lib/ui-kit/Location/LocationProps.d.ts +2 -2
- package/lib/{model → ui-kit}/PreventableEvent.d.ts +0 -0
- package/lib/{model → ui-kit}/PreventableEvent.js +0 -0
- package/lib/ui-kit/PreventableEvent.js.map +1 -0
- package/lib/ui-kit/SearchBar/SearchBarInner.d.ts +2 -3
- package/lib/ui-kit/SearchBar/SearchBarInner.js +46 -14
- package/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/lib/ui-kit/SearchBar/SearchBarInput.d.ts +9 -0
- package/lib/ui-kit/SearchBar/SearchBarInput.js +12 -0
- package/lib/ui-kit/SearchBar/SearchBarInput.js.map +1 -0
- package/{mobile/bundle/components/Footer → lib/ui-kit/Sitemap}/Sitemap.d.ts +2 -2
- package/lib/ui-kit/Sitemap/Sitemap.js +21 -0
- package/lib/ui-kit/Sitemap/Sitemap.js.map +1 -0
- package/lib/ui-kit/TopItem/TopItem.d.ts +1 -1
- package/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/lib/utils/groupBy.js +6 -6
- package/lib/utils/groupBy.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +248 -13
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Header/HeaderSecondaryMenuButton.d.ts +2 -3
- package/mobile/bundle/components/ImgBlock/ImgBlockContent.d.ts +1 -1
- package/mobile/bundle/components/StepsBlock/StepsBlockContent.d.ts +4 -1
- package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +3 -3
- package/mobile/bundle/components/TextBlock/TextBlockContent.d.ts +2 -7
- package/mobile/bundle/{services/sitemap → hooks}/fallbackWCMSResource.d.ts +1 -1
- package/mobile/bundle/hooks/useLink.d.ts +1 -1
- package/mobile/bundle/services/{sitemap/search → search}/jaroWinklerDistance.d.ts +0 -0
- package/mobile/bundle/services/{sitemap/search → search}/joinMaps.d.ts +0 -0
- package/mobile/bundle/services/{sitemap/search → search}/search.d.ts +0 -0
- package/mobile/bundle/services/{sitemap/search → search}/textRank.d.ts +0 -0
- package/mobile/bundle/services/{sitemap/search → search}/tokenize.d.ts +0 -0
- package/{bundle/services/sitemap → mobile/bundle/services/search}/useSearch.d.ts +1 -1
- package/mobile/bundle/ui-kit/Button/ButtonProps.d.ts +2 -3
- package/mobile/bundle/ui-kit/Dialog/CloseButton.d.ts +7 -0
- package/mobile/bundle/ui-kit/Dialog/Dialog.d.ts +7 -0
- package/mobile/bundle/ui-kit/Location/LocationProps.d.ts +2 -2
- package/mobile/bundle/{model → ui-kit}/PreventableEvent.d.ts +0 -0
- package/mobile/bundle/ui-kit/SearchBar/SearchBarInner.d.ts +2 -3
- package/mobile/bundle/ui-kit/SearchBar/SearchBarInput.d.ts +9 -0
- package/{dist/components/Footer → mobile/bundle/ui-kit/Sitemap}/Sitemap.d.ts +2 -2
- package/mobile/bundle/ui-kit/TopItem/TopItem.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.fallback.js +1 -1
- package/mobile/dist/components/Footer/Footer.fallback.js.map +1 -1
- package/mobile/dist/components/Header/Header.fallback.js +1 -1
- package/mobile/dist/components/Header/Header.fallback.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenuButton.d.ts +2 -3
- package/mobile/dist/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/mobile/dist/components/ImgBlock/ImgBlockContent.d.ts +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +4 -1
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +3 -3
- package/mobile/dist/components/TextBlock/TextBlockContent.d.ts +2 -7
- package/mobile/dist/hooks/fallbackWCMSResource.d.ts +2 -0
- package/mobile/dist/{services/sitemap → hooks}/fallbackWCMSResource.js +0 -0
- package/mobile/dist/hooks/fallbackWCMSResource.js.map +1 -0
- package/mobile/dist/hooks/useLink.d.ts +1 -1
- package/mobile/dist/services/{sitemap/search → search}/jaroWinklerDistance.d.ts +0 -0
- package/mobile/dist/services/{sitemap/search → search}/jaroWinklerDistance.js +0 -0
- package/mobile/dist/services/search/jaroWinklerDistance.js.map +1 -0
- package/mobile/dist/services/{sitemap/search → search}/joinMaps.d.ts +0 -0
- package/mobile/dist/services/{sitemap/search → search}/joinMaps.js +0 -0
- package/mobile/dist/services/search/joinMaps.js.map +1 -0
- package/mobile/dist/services/{sitemap/search → search}/search.d.ts +0 -0
- package/{dist/services/sitemap → mobile/dist/services}/search/search.js +2 -2
- package/mobile/dist/services/search/search.js.map +1 -0
- package/mobile/dist/services/{sitemap/search → search}/textRank.d.ts +0 -0
- package/{dist/services/sitemap → mobile/dist/services}/search/textRank.js +2 -2
- package/mobile/dist/services/search/textRank.js.map +1 -0
- package/mobile/dist/services/{sitemap/search → search}/tokenize.d.ts +0 -0
- package/mobile/dist/services/{sitemap/search → search}/tokenize.js +0 -0
- package/mobile/dist/services/search/tokenize.js.map +1 -0
- package/mobile/dist/services/search/useSearch.d.ts +8 -0
- package/{dist/services/sitemap → mobile/dist/services/search}/useSearch.js +1 -1
- package/mobile/dist/services/search/useSearch.js.map +1 -0
- package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +2 -3
- package/mobile/dist/ui-kit/Dialog/CloseButton.d.ts +7 -0
- package/mobile/dist/ui-kit/Dialog/CloseButton.js +8 -0
- package/mobile/dist/ui-kit/Dialog/CloseButton.js.map +1 -0
- package/mobile/dist/ui-kit/Dialog/Dialog.d.ts +7 -0
- package/mobile/dist/ui-kit/Dialog/Dialog.js +26 -0
- package/mobile/dist/ui-kit/Dialog/Dialog.js.map +1 -0
- package/mobile/dist/ui-kit/Location/Location.js +9 -11
- package/mobile/dist/ui-kit/Location/Location.js.map +1 -1
- package/mobile/dist/ui-kit/Location/LocationProps.d.ts +2 -2
- package/mobile/dist/{model → ui-kit}/PreventableEvent.d.ts +0 -0
- package/mobile/dist/{model → ui-kit}/PreventableEvent.js +0 -0
- package/mobile/dist/ui-kit/PreventableEvent.js.map +1 -0
- package/mobile/dist/ui-kit/SearchBar/SearchBarInner.d.ts +2 -3
- package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js +46 -14
- package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/mobile/dist/ui-kit/SearchBar/SearchBarInput.d.ts +9 -0
- package/mobile/dist/ui-kit/SearchBar/SearchBarInput.js +14 -0
- package/mobile/dist/ui-kit/SearchBar/SearchBarInput.js.map +1 -0
- package/mobile/dist/ui-kit/Sitemap/Sitemap.d.ts +6 -0
- package/mobile/dist/ui-kit/Sitemap/Sitemap.js +23 -0
- package/mobile/dist/ui-kit/Sitemap/Sitemap.js.map +1 -0
- package/mobile/dist/ui-kit/TopItem/TopItem.d.ts +1 -1
- package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/dist/utils/groupBy.js +6 -6
- package/mobile/dist/utils/groupBy.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.fallback.js +1 -1
- package/mobile/lib/components/Footer/Footer.fallback.js.map +1 -1
- package/mobile/lib/components/Header/Header.fallback.js +1 -1
- package/mobile/lib/components/Header/Header.fallback.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenuButton.d.ts +2 -3
- package/mobile/lib/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/mobile/lib/components/ImgBlock/ImgBlockContent.d.ts +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +4 -1
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +3 -3
- package/mobile/lib/components/TextBlock/TextBlockContent.d.ts +2 -7
- package/mobile/lib/hooks/fallbackWCMSResource.d.ts +2 -0
- package/mobile/lib/{services/sitemap → hooks}/fallbackWCMSResource.js +0 -0
- package/mobile/lib/hooks/fallbackWCMSResource.js.map +1 -0
- package/mobile/lib/hooks/useLink.d.ts +1 -1
- package/mobile/lib/services/{sitemap/search → search}/jaroWinklerDistance.d.ts +0 -0
- package/mobile/lib/services/{sitemap/search → search}/jaroWinklerDistance.js +0 -0
- package/mobile/lib/services/search/jaroWinklerDistance.js.map +1 -0
- package/mobile/lib/services/{sitemap/search → search}/joinMaps.d.ts +0 -0
- package/mobile/lib/services/{sitemap/search → search}/joinMaps.js +0 -0
- package/mobile/lib/services/search/joinMaps.js.map +1 -0
- package/mobile/lib/services/{sitemap/search → search}/search.d.ts +0 -0
- package/mobile/lib/services/{sitemap/search → search}/search.js +2 -2
- package/mobile/lib/services/search/search.js.map +1 -0
- package/mobile/lib/services/{sitemap/search → search}/textRank.d.ts +0 -0
- package/{lib/services/sitemap → mobile/lib/services}/search/textRank.js +2 -2
- package/mobile/lib/services/search/textRank.js.map +1 -0
- package/mobile/lib/services/{sitemap/search → search}/tokenize.d.ts +0 -0
- package/mobile/lib/services/{sitemap/search → search}/tokenize.js +0 -0
- package/mobile/lib/services/search/tokenize.js.map +1 -0
- package/mobile/lib/services/search/useSearch.d.ts +8 -0
- package/mobile/lib/services/{sitemap → search}/useSearch.js +1 -1
- package/mobile/lib/services/search/useSearch.js.map +1 -0
- package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +2 -3
- package/mobile/lib/ui-kit/Dialog/CloseButton.d.ts +7 -0
- package/mobile/lib/ui-kit/Dialog/CloseButton.js +6 -0
- package/mobile/lib/ui-kit/Dialog/CloseButton.js.map +1 -0
- package/mobile/lib/ui-kit/Dialog/Dialog.d.ts +7 -0
- package/mobile/lib/ui-kit/Dialog/Dialog.js +24 -0
- package/mobile/lib/ui-kit/Dialog/Dialog.js.map +1 -0
- package/mobile/lib/ui-kit/Location/Location.js +9 -11
- package/mobile/lib/ui-kit/Location/Location.js.map +1 -1
- package/mobile/lib/ui-kit/Location/LocationProps.d.ts +2 -2
- package/mobile/lib/{model → ui-kit}/PreventableEvent.d.ts +0 -0
- package/mobile/lib/{model → ui-kit}/PreventableEvent.js +0 -0
- package/mobile/lib/ui-kit/PreventableEvent.js.map +1 -0
- package/mobile/lib/ui-kit/SearchBar/SearchBarInner.d.ts +2 -3
- package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js +46 -14
- package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/mobile/lib/ui-kit/SearchBar/SearchBarInput.d.ts +9 -0
- package/mobile/lib/ui-kit/SearchBar/SearchBarInput.js +12 -0
- package/mobile/lib/ui-kit/SearchBar/SearchBarInput.js.map +1 -0
- package/mobile/lib/ui-kit/Sitemap/Sitemap.d.ts +6 -0
- package/mobile/lib/ui-kit/Sitemap/Sitemap.js +21 -0
- package/mobile/lib/ui-kit/Sitemap/Sitemap.js.map +1 -0
- package/mobile/lib/ui-kit/TopItem/TopItem.d.ts +1 -1
- package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/lib/utils/groupBy.js +6 -6
- package/mobile/lib/utils/groupBy.js.map +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +1 -1
- package/mobile/src/components/Footer/Footer.fallback.ts +1 -1
- package/mobile/src/components/Header/Header.fallback.ts +1 -1
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +2 -2
- package/mobile/src/components/Header/HeaderSecondaryMenuButton.tsx +2 -1
- package/mobile/src/components/ImgBlock/ImgBlockContent.ts +1 -1
- package/mobile/src/components/StepsBlock/StepsBlockContent.ts +4 -1
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +4 -3
- package/mobile/src/components/TextBlock/TextBlockContent.ts +3 -8
- package/mobile/src/{services/sitemap → hooks}/fallbackWCMSResource.ts +1 -1
- package/mobile/src/hooks/useLink.ts +1 -1
- package/mobile/src/services/{sitemap/search → search}/jaroWinklerDistance.ts +0 -0
- package/mobile/src/services/{sitemap/search → search}/joinMaps.ts +0 -0
- package/mobile/src/services/{sitemap/search → search}/search.ts +2 -2
- package/mobile/src/services/{sitemap/search → search}/textRank.ts +2 -2
- package/mobile/src/services/{sitemap/search → search}/tokenize.ts +0 -0
- package/{src/services/sitemap → mobile/src/services/search}/useSearch.ts +1 -1
- package/mobile/src/ui-kit/Button/ButtonProps.ts +2 -1
- package/mobile/src/ui-kit/Dialog/CloseButton.tsx +22 -0
- package/mobile/src/ui-kit/Dialog/Dialog.tsx +54 -0
- package/mobile/src/ui-kit/Location/Location.tsx +36 -44
- package/mobile/src/ui-kit/Location/LocationProps.ts +2 -2
- package/mobile/src/{model → ui-kit}/PreventableEvent.ts +0 -0
- package/mobile/src/ui-kit/SearchBar/SearchBarInner.tsx +100 -63
- package/mobile/src/ui-kit/SearchBar/SearchBarInput.tsx +46 -0
- package/mobile/src/{components/Footer → ui-kit/Sitemap}/Sitemap.tsx +12 -8
- package/mobile/src/ui-kit/TopItem/TopItem.tsx +1 -1
- package/mobile/src/utils/groupBy.ts +8 -7
- package/package.json +2 -2
- package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +1 -1
- package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +1 -1
- package/src/components/ApplicationForm/ApplicationFormCredit.tsx +1 -1
- package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +1 -1
- package/src/components/ApplicationForm/ApplicationFormWed.tsx +1 -1
- package/src/components/Blocks.ts +0 -2
- package/src/components/Footer/Footer.fallback.ts +1 -1
- package/src/components/Footer/Footer.tsx +3 -31
- package/src/components/Header/Header.fallback.ts +1 -1
- package/src/components/Header/HeaderSecondaryMenu.tsx +2 -2
- package/src/components/Header/HeaderSecondaryMenuButton.tsx +2 -1
- package/src/components/ImgBlock/ImgBlockContent.ts +1 -1
- package/src/components/StepsBlock/StepsBlockContent.ts +4 -1
- package/src/components/TariffsTable/TariffsTableContent.ts +4 -3
- package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +11 -20
- package/src/components/TextBlock/TextBlockContent.ts +3 -8
- package/src/{services/sitemap → hooks}/fallbackWCMSResource.ts +1 -1
- package/src/hooks/useLink.ts +1 -1
- package/src/services/{sitemap/search → search}/jaroWinklerDistance.ts +0 -0
- package/src/services/{sitemap/search → search}/joinMaps.ts +0 -0
- package/src/services/{sitemap/search → search}/search.ts +2 -2
- package/src/services/{sitemap/search → search}/textRank.ts +2 -2
- package/src/services/{sitemap/search → search}/tokenize.ts +0 -0
- package/{mobile/src/services/sitemap → src/services/search}/useSearch.ts +1 -1
- package/src/ui-kit/Button/ButtonProps.ts +2 -1
- package/src/ui-kit/Dialog/CloseButton.tsx +22 -0
- package/src/ui-kit/Dialog/Dialog.tsx +54 -0
- package/src/ui-kit/Location/Location.fixture.tsx +1 -1
- package/src/ui-kit/Location/Location.tsx +36 -44
- package/src/ui-kit/Location/LocationProps.ts +2 -2
- package/src/{model → ui-kit}/PreventableEvent.ts +0 -0
- package/src/ui-kit/SearchBar/SearchBarInner.tsx +100 -63
- package/src/ui-kit/SearchBar/SearchBarInput.tsx +46 -0
- package/src/{components/Footer → ui-kit/Sitemap}/Sitemap.tsx +12 -8
- package/src/ui-kit/TopItem/TopItem.tsx +1 -1
- package/src/utils/groupBy.ts +8 -7
- package/bundle/components/OtherProducts/OtherProducts.d.ts +0 -5
- package/bundle/components/OtherProducts/OtherProductsContent.d.ts +0 -8
- package/bundle/model/SitemapProps.d.ts +0 -24
- package/dist/components/Footer/Sitemap.js +0 -22
- package/dist/components/Footer/Sitemap.js.map +0 -1
- package/dist/components/OtherProducts/OtherProducts.d.ts +0 -5
- package/dist/components/OtherProducts/OtherProducts.js +0 -9
- package/dist/components/OtherProducts/OtherProducts.js.map +0 -1
- package/dist/components/OtherProducts/OtherProductsContent.d.ts +0 -8
- package/dist/components/OtherProducts/OtherProductsContent.js +0 -2
- package/dist/components/OtherProducts/OtherProductsContent.js.map +0 -1
- package/dist/model/PreventableEvent.js.map +0 -1
- package/dist/model/SitemapProps.d.ts +0 -24
- package/dist/model/SitemapProps.js +0 -2
- package/dist/model/SitemapProps.js.map +0 -1
- package/dist/services/sitemap/fallbackWCMSResource.js.map +0 -1
- package/dist/services/sitemap/search/jaroWinklerDistance.js.map +0 -1
- package/dist/services/sitemap/search/joinMaps.js.map +0 -1
- package/dist/services/sitemap/search/search.js.map +0 -1
- package/dist/services/sitemap/search/textRank.js.map +0 -1
- package/dist/services/sitemap/search/tokenize.js.map +0 -1
- package/dist/services/sitemap/useSearch.js.map +0 -1
- package/lib/components/Footer/Sitemap.js +0 -20
- package/lib/components/Footer/Sitemap.js.map +0 -1
- package/lib/components/OtherProducts/OtherProducts.d.ts +0 -5
- package/lib/components/OtherProducts/OtherProducts.fixture.d.ts +0 -8
- package/lib/components/OtherProducts/OtherProducts.js +0 -7
- package/lib/components/OtherProducts/OtherProducts.js.map +0 -1
- package/lib/components/OtherProducts/OtherProductsContent.d.ts +0 -8
- package/lib/components/OtherProducts/OtherProductsContent.js +0 -2
- package/lib/components/OtherProducts/OtherProductsContent.js.map +0 -1
- package/lib/model/PreventableEvent.js.map +0 -1
- package/lib/model/SitemapProps.d.ts +0 -24
- package/lib/model/SitemapProps.js +0 -2
- package/lib/model/SitemapProps.js.map +0 -1
- package/lib/services/sitemap/fallbackWCMSResource.js.map +0 -1
- package/lib/services/sitemap/search/jaroWinklerDistance.js.map +0 -1
- package/lib/services/sitemap/search/joinMaps.js.map +0 -1
- package/lib/services/sitemap/search/search.js.map +0 -1
- package/lib/services/sitemap/search/textRank.js.map +0 -1
- package/lib/services/sitemap/search/tokenize.js.map +0 -1
- package/lib/services/sitemap/useSearch.js.map +0 -1
- package/mobile/bundle/components/OtherProducts/OtherProducts.d.ts +0 -5
- package/mobile/bundle/components/OtherProducts/OtherProductsContent.d.ts +0 -8
- package/mobile/bundle/model/SitemapProps.d.ts +0 -24
- package/mobile/dist/components/Footer/Sitemap.d.ts +0 -6
- package/mobile/dist/components/Footer/Sitemap.js +0 -22
- package/mobile/dist/components/Footer/Sitemap.js.map +0 -1
- package/mobile/dist/components/OtherProducts/OtherProducts.d.ts +0 -5
- package/mobile/dist/components/OtherProducts/OtherProducts.js +0 -9
- package/mobile/dist/components/OtherProducts/OtherProducts.js.map +0 -1
- package/mobile/dist/components/OtherProducts/OtherProductsContent.d.ts +0 -8
- package/mobile/dist/components/OtherProducts/OtherProductsContent.js +0 -2
- package/mobile/dist/components/OtherProducts/OtherProductsContent.js.map +0 -1
- package/mobile/dist/model/PreventableEvent.js.map +0 -1
- package/mobile/dist/model/SitemapProps.d.ts +0 -24
- package/mobile/dist/model/SitemapProps.js +0 -2
- package/mobile/dist/model/SitemapProps.js.map +0 -1
- package/mobile/dist/services/sitemap/fallbackWCMSResource.d.ts +0 -2
- package/mobile/dist/services/sitemap/fallbackWCMSResource.js.map +0 -1
- package/mobile/dist/services/sitemap/search/jaroWinklerDistance.js.map +0 -1
- package/mobile/dist/services/sitemap/search/joinMaps.js.map +0 -1
- package/mobile/dist/services/sitemap/search/search.js.map +0 -1
- package/mobile/dist/services/sitemap/search/textRank.js.map +0 -1
- package/mobile/dist/services/sitemap/search/tokenize.js.map +0 -1
- package/mobile/dist/services/sitemap/useSearch.d.ts +0 -8
- package/mobile/dist/services/sitemap/useSearch.js.map +0 -1
- package/mobile/lib/components/Footer/Sitemap.d.ts +0 -6
- package/mobile/lib/components/Footer/Sitemap.js +0 -20
- package/mobile/lib/components/Footer/Sitemap.js.map +0 -1
- package/mobile/lib/components/OtherProducts/OtherProducts.d.ts +0 -5
- package/mobile/lib/components/OtherProducts/OtherProducts.js +0 -7
- package/mobile/lib/components/OtherProducts/OtherProducts.js.map +0 -1
- package/mobile/lib/components/OtherProducts/OtherProductsContent.d.ts +0 -8
- package/mobile/lib/components/OtherProducts/OtherProductsContent.js +0 -2
- package/mobile/lib/components/OtherProducts/OtherProductsContent.js.map +0 -1
- package/mobile/lib/model/PreventableEvent.js.map +0 -1
- package/mobile/lib/model/SitemapProps.d.ts +0 -24
- package/mobile/lib/model/SitemapProps.js +0 -2
- package/mobile/lib/model/SitemapProps.js.map +0 -1
- package/mobile/lib/services/sitemap/fallbackWCMSResource.d.ts +0 -2
- package/mobile/lib/services/sitemap/fallbackWCMSResource.js.map +0 -1
- package/mobile/lib/services/sitemap/search/jaroWinklerDistance.js.map +0 -1
- package/mobile/lib/services/sitemap/search/joinMaps.js.map +0 -1
- package/mobile/lib/services/sitemap/search/search.js.map +0 -1
- package/mobile/lib/services/sitemap/search/textRank.js.map +0 -1
- package/mobile/lib/services/sitemap/search/tokenize.js.map +0 -1
- package/mobile/lib/services/sitemap/useSearch.d.ts +0 -8
- package/mobile/lib/services/sitemap/useSearch.js.map +0 -1
- package/mobile/src/components/OtherProducts/OtherProducts.example.json +0 -30
- package/mobile/src/components/OtherProducts/OtherProducts.tsx +0 -17
- package/mobile/src/components/OtherProducts/OtherProducts.ui.json +0 -1
- package/mobile/src/components/OtherProducts/OtherProductsContent.ts +0 -9
- package/mobile/src/model/SitemapProps.ts +0 -27
- package/src/components/OtherProducts/OtherProducts.example.json +0 -30
- package/src/components/OtherProducts/OtherProducts.fixture.tsx +0 -88
- package/src/components/OtherProducts/OtherProducts.tsx +0 -17
- package/src/components/OtherProducts/OtherProducts.ui.json +0 -1
- package/src/components/OtherProducts/OtherProductsContent.ts +0 -9
- package/src/model/SitemapProps.ts +0 -27
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { useLink } from '../../hooks/useLink';
|
|
4
|
+
import type { Region } from '../../hooks/useRegions';
|
|
4
5
|
import { useRegions } from '../../hooks/useRegions';
|
|
6
|
+
import { jaroWinklerDistance } from '../../services/search/jaroWinklerDistance';
|
|
7
|
+
import type { ForeignOffice } from '../../services/sitemap/SitemapData';
|
|
5
8
|
import { Text } from '../../ui-kit/Text/Text';
|
|
6
9
|
import { groupBy } from '../../utils/groupBy';
|
|
10
|
+
import { Dialog, type DialogProps } from '../Dialog/Dialog';
|
|
7
11
|
import { Img } from '../Img/Img';
|
|
8
|
-
import { SearchBar } from './SearchBar';
|
|
9
|
-
import type { ForeignOffice } from '../../services/sitemap/SitemapData';
|
|
10
|
-
import type { Region } from '../../hooks/useRegions';
|
|
11
12
|
import type {
|
|
12
|
-
LocationProps,
|
|
13
13
|
CurrentLocationProps,
|
|
14
|
-
CloseButtonProps,
|
|
15
|
-
RegionLinkProps,
|
|
16
14
|
ForeignOfficeProps,
|
|
15
|
+
LocationProps,
|
|
16
|
+
RegionLinkProps,
|
|
17
17
|
} from './LocationProps';
|
|
18
|
+
import { SearchBar } from './SearchBar';
|
|
18
19
|
|
|
19
20
|
const SEARCH_TERM_MIN_LENGTH = 3;
|
|
20
21
|
|
|
21
22
|
export const Location = JSX<LocationProps>(
|
|
22
|
-
({ currentLocation, onChangeLocation,
|
|
23
|
+
({ currentLocation, onChangeLocation, onClose, foreignOffices }) => {
|
|
23
24
|
const [query, setQuery] = useState('');
|
|
24
25
|
|
|
25
26
|
const regions: Region[] = cleanUpRegions(useRegions()).sort((a, b) =>
|
|
@@ -28,31 +29,34 @@ export const Location = JSX<LocationProps>(
|
|
|
28
29
|
const regionsGroupByLetter: Map<string, Region[]> = groupBy(regions, regionFirstLetter);
|
|
29
30
|
|
|
30
31
|
return (
|
|
31
|
-
<
|
|
32
|
-
|
|
33
|
-
<div
|
|
34
|
-
<CloseButton close={close} />
|
|
32
|
+
<Dialog
|
|
33
|
+
head={
|
|
34
|
+
<div>
|
|
35
35
|
<CurrentLocation currentLocation={currentLocation} />
|
|
36
36
|
<SearchBar onSearch={setQuery} searchTerm={query} className="mb-7" />
|
|
37
37
|
</div>
|
|
38
|
+
}
|
|
39
|
+
onClose={onClose}
|
|
40
|
+
>
|
|
41
|
+
{query && query.length >= SEARCH_TERM_MIN_LENGTH ? (
|
|
42
|
+
<div>
|
|
43
|
+
{regions
|
|
44
|
+
.filter(
|
|
45
|
+
({ name }) =>
|
|
46
|
+
name && jaroWinklerDistance(name.toLowerCase())(query.toLowerCase()) >= 0.8,
|
|
47
|
+
)
|
|
48
|
+
.map(renderRegion({ onChangeLocation, onClose }))}
|
|
49
|
+
</div>
|
|
50
|
+
) : (
|
|
51
|
+
<div className="columns-5">
|
|
52
|
+
{Array.from(regionsGroupByLetter.entries()).map(
|
|
53
|
+
renderRegionGroup({ onChangeLocation, onClose }),
|
|
54
|
+
)}
|
|
55
|
+
</div>
|
|
56
|
+
)}
|
|
38
57
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
{regions
|
|
42
|
-
.filter((region) => region.name?.startsWith(query))
|
|
43
|
-
.map(renderRegion({ onChangeLocation, close }))}
|
|
44
|
-
</div>
|
|
45
|
-
) : (
|
|
46
|
-
<div className="columns-5">
|
|
47
|
-
{Array.from(regionsGroupByLetter.entries()).map(
|
|
48
|
-
renderRegionGroup({ onChangeLocation, close }),
|
|
49
|
-
)}
|
|
50
|
-
</div>
|
|
51
|
-
)}
|
|
52
|
-
|
|
53
|
-
<ForeignOffices foreignOffices={foreignOffices} />
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
58
|
+
<ForeignOffices foreignOffices={foreignOffices} />
|
|
59
|
+
</Dialog>
|
|
56
60
|
);
|
|
57
61
|
},
|
|
58
62
|
);
|
|
@@ -78,32 +82,20 @@ const CurrentLocation = JSX<CurrentLocationProps>(({ currentLocation }) =>
|
|
|
78
82
|
) : null,
|
|
79
83
|
);
|
|
80
84
|
|
|
81
|
-
const CloseButton = JSX<CloseButtonProps>(({ close }) => (
|
|
82
|
-
<button
|
|
83
|
-
className="visible peer-placeholder-shown:invisible absolute top-0 -right-6 w-6 h-6 p-1 bg-transparent cursor-pointer border-none"
|
|
84
|
-
onClick={(e) => {
|
|
85
|
-
e.preventDefault();
|
|
86
|
-
close && close();
|
|
87
|
-
}}
|
|
88
|
-
>
|
|
89
|
-
<Img image={{ icon: 'CloseIcon' }} width="24" height="24" />
|
|
90
|
-
</button>
|
|
91
|
-
));
|
|
92
|
-
|
|
93
85
|
const renderRegionGroup =
|
|
94
|
-
({ onChangeLocation,
|
|
86
|
+
({ onChangeLocation, onClose }: RegionLinkProps & DialogProps) =>
|
|
95
87
|
([letter, regions]: [string, Region[]]) =>
|
|
96
88
|
(
|
|
97
89
|
<div key={letter} className="break-inside-avoid mb-7 w-[224px]">
|
|
98
90
|
<div className="mb-2.5">
|
|
99
91
|
<Text size="text-h6">{letter}</Text>
|
|
100
92
|
</div>
|
|
101
|
-
{regions.map(renderRegion({ onChangeLocation,
|
|
93
|
+
{regions.map(renderRegion({ onChangeLocation, onClose }))}
|
|
102
94
|
</div>
|
|
103
95
|
);
|
|
104
96
|
|
|
105
97
|
const renderRegion =
|
|
106
|
-
({ onChangeLocation,
|
|
98
|
+
({ onChangeLocation, onClose }: RegionLinkProps & DialogProps) =>
|
|
107
99
|
(region: Region) =>
|
|
108
100
|
(
|
|
109
101
|
<div key={region.id} className="mb-1">
|
|
@@ -111,7 +103,7 @@ const renderRegion =
|
|
|
111
103
|
className="cursor-pointer hover:text-primary-hover"
|
|
112
104
|
onClick={() => {
|
|
113
105
|
onChangeLocation && onChangeLocation(region);
|
|
114
|
-
|
|
106
|
+
onClose && onClose();
|
|
115
107
|
}}
|
|
116
108
|
>
|
|
117
109
|
{region.name || ''}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Region } from '../../hooks/useRegions';
|
|
2
|
-
import { ForeignOffice } from '../../services/sitemap/SitemapData';
|
|
3
2
|
import { UniBlockProps } from '../../model/JSXBlock';
|
|
3
|
+
import { ForeignOffice } from '../../services/sitemap/SitemapData';
|
|
4
4
|
|
|
5
5
|
export interface RegionLinkProps {
|
|
6
6
|
onChangeLocation?: (region: Region) => void;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export interface CloseButtonProps {
|
|
10
|
-
|
|
10
|
+
onClose?: () => void;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
export interface CurrentLocationProps {
|
|
File without changes
|
|
@@ -1,72 +1,109 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { useCallback, useEffect, useMemo } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { useBool } from '../../hooks/useBool';
|
|
4
|
+
import type { LinkProps } from '../../model/LinkProps';
|
|
5
|
+
import { useSearch, type SearchResult } from '../../services/search/useSearch';
|
|
6
|
+
import type { TopMenuItem } from '../../services/sitemap/SitemapData';
|
|
7
|
+
import { zip } from '../../utils/zip';
|
|
8
|
+
import { CloseButton } from '../Dialog/CloseButton';
|
|
9
|
+
import { Dialog } from '../Dialog/Dialog';
|
|
10
|
+
import { Sitemap } from '../Sitemap/Sitemap';
|
|
11
|
+
import { SearchBarInput } from './SearchBarInput';
|
|
4
12
|
|
|
5
13
|
export interface SearchBarInnerProps {
|
|
6
14
|
isMobile?: boolean;
|
|
7
15
|
className?: string;
|
|
8
|
-
|
|
9
|
-
onChange?: (value: string) => void;
|
|
10
|
-
onFocus?: () => void;
|
|
16
|
+
topItems?: TopMenuItem[];
|
|
11
17
|
}
|
|
12
18
|
|
|
13
|
-
|
|
14
|
-
({ className, isMobile, value: query, onChange, onFocus }) => {
|
|
15
|
-
const LoupeIconClassName = isMobile ? 'w-5 h-5' : 'w-6 h-6';
|
|
16
|
-
const SearchBarLabelClassName = isMobile ? 'text-s' : 'text-l-light';
|
|
17
|
-
const SearchBarInputClassName = isMobile ? ' placeholder-transparent' : 'h-full';
|
|
18
|
-
const inputPlaceholder = isMobile ? 'some search' : undefined;
|
|
19
|
+
const MIN_QUERY_LEN = 3;
|
|
19
20
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
21
|
+
export const SearchBarInner = JSX<SearchBarInnerProps>(({ className, isMobile, topItems }) => {
|
|
22
|
+
const basePathList = topItems?.map((_) => _.href || '/');
|
|
23
|
+
const [searchResult, searchInputProps] = useSearch(basePathList);
|
|
24
|
+
|
|
25
|
+
const { value, onChange, onFocus } = searchInputProps;
|
|
26
|
+
|
|
27
|
+
const searchItems = useMemo(
|
|
28
|
+
() => combineTopItemsAndSearchResult(topItems)(searchResult),
|
|
29
|
+
[topItems, searchResult],
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
useEffect(() => printSearchItems(searchItems), [searchItems]); // Temp
|
|
33
|
+
|
|
34
|
+
const [isSearchDialogOpen, { setTrue: openSearchDialog, setFalse: hideSearchDialog }] = useBool();
|
|
35
|
+
|
|
36
|
+
const handleInitialInputChange = useCallback(
|
|
37
|
+
(_: string) => {
|
|
38
|
+
onChange(_);
|
|
39
|
+
if (isQueryLongEnough(_)) {
|
|
40
|
+
openSearchDialog();
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
[onChange, isQueryLongEnough],
|
|
44
|
+
);
|
|
45
|
+
const handleInitialInputFocus = useCallback(() => {
|
|
46
|
+
onFocus();
|
|
47
|
+
if (isQueryLongEnough(value)) {
|
|
48
|
+
openSearchDialog();
|
|
49
|
+
}
|
|
50
|
+
}, [value, onFocus]);
|
|
51
|
+
|
|
52
|
+
return (
|
|
53
|
+
<div className={className}>
|
|
54
|
+
<SearchBarInput
|
|
55
|
+
isMobile={isMobile}
|
|
56
|
+
value={value}
|
|
57
|
+
onChange={handleInitialInputChange}
|
|
58
|
+
onFocus={handleInitialInputFocus}
|
|
59
|
+
/>
|
|
60
|
+
{isMobile ? (
|
|
61
|
+
<CloseButton
|
|
62
|
+
className="absolute top-2 right-3"
|
|
63
|
+
onClick={(e) => {
|
|
64
|
+
e.preventDefault();
|
|
65
|
+
onChange('');
|
|
66
|
+
}}
|
|
45
67
|
/>
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
)
|
|
68
|
+
) : null}
|
|
69
|
+
{isSearchDialogOpen ? (
|
|
70
|
+
<Dialog
|
|
71
|
+
head={
|
|
72
|
+
<SearchBarInput
|
|
73
|
+
className="my-5"
|
|
74
|
+
isMobile={isMobile}
|
|
75
|
+
autoFocus={true}
|
|
76
|
+
{...searchInputProps}
|
|
77
|
+
/>
|
|
78
|
+
}
|
|
79
|
+
onClose={hideSearchDialog}
|
|
80
|
+
>
|
|
81
|
+
<Sitemap topItems={searchItems} />
|
|
82
|
+
</Dialog>
|
|
83
|
+
) : null}
|
|
84
|
+
</div>
|
|
85
|
+
);
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
const isQueryLongEnough = (_: string) => _ && _.length >= MIN_QUERY_LEN;
|
|
89
|
+
|
|
90
|
+
const combineTopItemsAndSearchResult =
|
|
91
|
+
(topItems: TopMenuItem[] | undefined) =>
|
|
92
|
+
(searchResult: SearchResult | null | undefined): TopMenuItem[] =>
|
|
93
|
+
topItems?.length && searchResult?.length
|
|
94
|
+
? zip(topItems, searchResult).map(([_, portalSearchResult]) => ({
|
|
95
|
+
..._,
|
|
96
|
+
items: portalSearchResult?.map(
|
|
97
|
+
({ title, uri }): LinkProps => ({ text: title, href: uri }),
|
|
98
|
+
),
|
|
99
|
+
}))
|
|
100
|
+
: [];
|
|
101
|
+
|
|
102
|
+
// Temp
|
|
103
|
+
function printSearchItems(topItems: TopMenuItem[]) {
|
|
104
|
+
for (const _ of topItems.filter(({ items }) => items?.length)) {
|
|
105
|
+
console.group(_.text);
|
|
106
|
+
console.table(_.items, ['text', 'href']);
|
|
107
|
+
console.groupEnd();
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { style } from '../../utils/style';
|
|
4
|
+
import { Img } from '../Img/Img';
|
|
5
|
+
|
|
6
|
+
export interface SearchBarInputProps {
|
|
7
|
+
className?: string;
|
|
8
|
+
isMobile?: boolean;
|
|
9
|
+
value?: string;
|
|
10
|
+
autoFocus?: boolean;
|
|
11
|
+
onChange?: (value: string) => void;
|
|
12
|
+
onFocus?: () => void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const SearchBarInput = JSX<SearchBarInputProps>(
|
|
16
|
+
({ className, isMobile, value, autoFocus, onChange, onFocus }) => {
|
|
17
|
+
const handleChange = useCallback(
|
|
18
|
+
(ev: { target?: { value?: string } }) => {
|
|
19
|
+
onChange && onChange(ev.target?.value || '');
|
|
20
|
+
},
|
|
21
|
+
[onChange],
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
return (
|
|
25
|
+
<div className={style('font-sans relative', className)} role="form">
|
|
26
|
+
<div className="absolute h-full flex items-center pl-4 pointer-events-none">
|
|
27
|
+
<Img image={{ icon: 'LoupeIcon' }} width="24" height="24" />
|
|
28
|
+
</div>
|
|
29
|
+
<input
|
|
30
|
+
className={style(
|
|
31
|
+
'h-12 pl-12 w-full text-l text-black outline-none box-border',
|
|
32
|
+
'border border-solid rounded-md border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text',
|
|
33
|
+
isMobile ? '' : 'h-full',
|
|
34
|
+
)}
|
|
35
|
+
value={value}
|
|
36
|
+
type="text"
|
|
37
|
+
name="search-bar-input"
|
|
38
|
+
placeholder="Поиск по сайту"
|
|
39
|
+
autoFocus={autoFocus}
|
|
40
|
+
onChange={handleChange}
|
|
41
|
+
onFocus={onFocus}
|
|
42
|
+
/>
|
|
43
|
+
</div>
|
|
44
|
+
);
|
|
45
|
+
},
|
|
46
|
+
);
|
|
@@ -2,20 +2,21 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import { useLink } from '../../hooks/useLink';
|
|
3
3
|
import type { LinkProps } from '../../model/LinkProps';
|
|
4
4
|
import { projectSettings } from '../../ProjectSettings';
|
|
5
|
-
import type {
|
|
5
|
+
import type { TopMenuItem } from '../../services/sitemap/SitemapData';
|
|
6
|
+
import { style } from '../../utils/style';
|
|
6
7
|
import { joinPath } from '../../utils/url';
|
|
7
8
|
|
|
8
9
|
export interface SitemapProps {
|
|
9
10
|
className?: string;
|
|
10
|
-
|
|
11
|
+
topItems?: TopMenuItem[];
|
|
11
12
|
}
|
|
12
13
|
|
|
13
|
-
export const Sitemap = JSX<SitemapProps>(({ className
|
|
14
|
+
export const Sitemap = JSX<SitemapProps>(({ className, topItems }) => {
|
|
14
15
|
const link = useLink(true);
|
|
15
16
|
|
|
16
17
|
return (
|
|
17
|
-
<div className={
|
|
18
|
-
{
|
|
18
|
+
<div className={style('flex items-start justify-between', className)}>
|
|
19
|
+
{topItems?.map(link).map(renderColumn)}
|
|
19
20
|
</div>
|
|
20
21
|
);
|
|
21
22
|
});
|
|
@@ -24,9 +25,9 @@ const renderColumn = (menuItem: TopMenuItem & { onClick: () => void }, index: nu
|
|
|
24
25
|
const { text, items, href, target, onClick } = menuItem;
|
|
25
26
|
|
|
26
27
|
return (
|
|
27
|
-
<div key={String(index)} className="flex flex-col
|
|
28
|
+
<div key={String(index)} className="flex flex-col gap-3.5 w-1/4">
|
|
28
29
|
<a
|
|
29
|
-
className="
|
|
30
|
+
className="leading-5 text-l text-primary-text hover:text-primary-main no-underline"
|
|
30
31
|
href={href}
|
|
31
32
|
target={target || '_self'}
|
|
32
33
|
onClick={onClick}
|
|
@@ -54,7 +55,10 @@ const ColumnItem = JSX<ColumnItemProps>(({ text, index, basePath, ...rest }) =>
|
|
|
54
55
|
|
|
55
56
|
return (
|
|
56
57
|
<a
|
|
57
|
-
className=
|
|
58
|
+
className={style(
|
|
59
|
+
'text-l-light text-secondary-text hover:text-primary-main no-underline',
|
|
60
|
+
'overflow-x-hidden overflow-ellipsis whitespace-nowrap',
|
|
61
|
+
)}
|
|
58
62
|
href={isAnotherPortal ? joinPath(basePath, href) : href}
|
|
59
63
|
target={target || '_self'}
|
|
60
64
|
onClick={onClick}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useLink } from '../../hooks/useLink';
|
|
3
3
|
import type { LinkProps } from '../../model/LinkProps';
|
|
4
|
-
import type { PreventableEvent } from '../../model/PreventableEvent';
|
|
5
4
|
import { style } from '../../utils/style';
|
|
5
|
+
import type { PreventableEvent } from '../PreventableEvent';
|
|
6
6
|
|
|
7
7
|
export interface TopItemContent extends LinkProps {
|
|
8
8
|
active?: boolean;
|
package/src/utils/groupBy.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export const groupBy = <K, V>(list:
|
|
2
|
-
const
|
|
3
|
-
|
|
1
|
+
export const groupBy = <K, V>(list: V[], keyGetter: (input: V) => K): Map<K, V[]> => {
|
|
2
|
+
const result = new Map<K, V[]>();
|
|
3
|
+
|
|
4
|
+
for (const item of list) {
|
|
4
5
|
const key = keyGetter(item);
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
const group = result.get(key) || [];
|
|
7
|
+
result.set(key, [...group, item]);
|
|
8
|
+
}
|
|
8
9
|
|
|
9
|
-
return
|
|
10
|
+
return result;
|
|
10
11
|
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { JSXBlock, UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
-
import type { OtherProductsContent } from './OtherProductsContent';
|
|
3
|
-
export interface OtherProductsProps extends OtherProductsContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const OtherProducts: JSXBlock<OtherProductsProps>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { LinkProps } from './LinkProps';
|
|
2
|
-
import type { Picture } from './Picture';
|
|
3
|
-
/**
|
|
4
|
-
* @title Меню
|
|
5
|
-
* @required ["text", "href"]
|
|
6
|
-
*/
|
|
7
|
-
export interface TopMenuItem extends LinkProps {
|
|
8
|
-
/** @title Ссылки */
|
|
9
|
-
items?: LinkProps[];
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* @title Ссылка дополнительного меню
|
|
13
|
-
* @required ["text", "href"]
|
|
14
|
-
*/
|
|
15
|
-
export interface DispositionItem extends LinkProps {
|
|
16
|
-
/** @hidden */
|
|
17
|
-
icon?: Picture;
|
|
18
|
-
}
|
|
19
|
-
export interface SitemapProps {
|
|
20
|
-
/** @title Дополнительное меню */
|
|
21
|
-
topItems?: TopMenuItem[];
|
|
22
|
-
/** @title Дополнительное меню */
|
|
23
|
-
dispositions?: DispositionItem[];
|
|
24
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.Sitemap = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const useLink_1 = require("../../hooks/useLink");
|
|
6
|
-
const ProjectSettings_1 = require("../../ProjectSettings");
|
|
7
|
-
const url_1 = require("../../utils/url");
|
|
8
|
-
exports.Sitemap = (0, uni_jsx_1.JSX)(({ className = '', sitemap }) => {
|
|
9
|
-
const link = (0, useLink_1.useLink)(true);
|
|
10
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: `flex flex-grow items-start justify-between gap-[54px] xl:gap-5 ${className}`, children: sitemap?.topItems?.map((_, i) => renderColumn(link(_), i)) }));
|
|
11
|
-
});
|
|
12
|
-
const renderColumn = (menuItem, index) => {
|
|
13
|
-
const { text, items, href, target, onClick } = menuItem;
|
|
14
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col w-1/5 last:w-1/4 gap-3.5", children: [(0, jsx_runtime_1.jsx)("a", { className: "block leading-5 text-l text-primary-text hover:text-primary-main no-underline", href: href, target: target || '_self', onClick: onClick, children: text || `Раздел ${index}` }), items?.map((_, i) => ((0, jsx_runtime_1.jsx)(ColumnItem, { ..._, basePath: href, index: i }, String(i))))] }, String(index)));
|
|
15
|
-
};
|
|
16
|
-
const ColumnItem = (0, uni_jsx_1.JSX)(({ text, index, basePath, ...rest }) => {
|
|
17
|
-
const isAnotherPortal = ProjectSettings_1.projectSettings.BASE_PATH && basePath ? !ProjectSettings_1.projectSettings.BASE_PATH.startsWith(basePath) : false;
|
|
18
|
-
const link = (0, useLink_1.useLink)(isAnotherPortal);
|
|
19
|
-
const { href, target, onClick } = link(rest);
|
|
20
|
-
return ((0, jsx_runtime_1.jsx)("a", { className: "block text-l-light text-secondary-text hover:text-primary-main no-underline", href: isAnotherPortal ? (0, url_1.joinPath)(basePath, href) : href, target: target || '_self', onClick: onClick, children: text || `Раздел ${index}` }));
|
|
21
|
-
});
|
|
22
|
-
//# sourceMappingURL=Sitemap.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Sitemap.js","sourceRoot":"","sources":["../../../src/components/Footer/Sitemap.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,2DAAwD;AAExD,yCAA2C;AAO9B,QAAA,OAAO,GAAG,IAAA,aAAG,EAAe,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IACvE,MAAM,IAAI,GAAG,IAAA,iBAAO,EAAC,IAAI,CAAC,CAAC;IAE3B,OAAO,CACL,gCAAK,SAAS,E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,OAAO,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IAE7C,OAAO,CACL,8BACE,SAAS,EAAC,6EAA6E,EACvF,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,IAAA,cAAQ,EAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,EACvD,MAAM,EAAE,MAAM,IAAI,OAAO,EACzB,OAAO,EAAE,OAAO,YAEf,IAAI,IAAI,UAAU,KAAK,EAAE,GACxB,CACL,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { JSXBlock, UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
-
import type { OtherProductsContent } from './OtherProductsContent';
|
|
3
|
-
export interface OtherProductsProps extends OtherProductsContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const OtherProducts: JSXBlock<OtherProductsProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.OtherProducts = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const renderChildren_1 = require("../../BlockRenderer/renderChildren");
|
|
6
|
-
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
7
|
-
exports.OtherProducts = (0, uni_jsx_1.JSX)(({ className = '', ...rest }) => ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: `font-sans text-primary-text ${className}`, ...rest, children: (0, renderChildren_1.renderChildren)(rest) })));
|
|
8
|
-
exports.OtherProducts.childrenTypes = ['OtherProductsItem'];
|
|
9
|
-
//# sourceMappingURL=OtherProducts.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OtherProducts.js","sourceRoot":"","sources":["../../../src/components/OtherProducts/OtherProducts.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uEAAoE;AAEpE,4DAAyD;AAK5C,QAAA,aAAa,GAAiC,IAAA,aAAG,EAC5D,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAC/B,uBAAC,2BAAY,IAAC,SAAS,EAAE,+BAA+B,SAAS,EAAE,KAAM,IAAI,YAC1E,IAAA,+BAAc,EAAC,IAAI,CAAC,GACR,CAChB,CACF,CAAC;AAEF,qBAAa,CAAC,aAAa,GAAG,CAAC,mBAAmB,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OtherProductsContent.js","sourceRoot":"","sources":["../../../src/components/OtherProducts/OtherProductsContent.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PreventableEvent.js","sourceRoot":"","sources":["../../src/model/PreventableEvent.ts"],"names":[],"mappings":""}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { LinkProps } from './LinkProps';
|
|
2
|
-
import type { Picture } from './Picture';
|
|
3
|
-
/**
|
|
4
|
-
* @title Меню
|
|
5
|
-
* @required ["text", "href"]
|
|
6
|
-
*/
|
|
7
|
-
export interface TopMenuItem extends LinkProps {
|
|
8
|
-
/** @title Ссылки */
|
|
9
|
-
items?: LinkProps[];
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* @title Ссылка дополнительного меню
|
|
13
|
-
* @required ["text", "href"]
|
|
14
|
-
*/
|
|
15
|
-
export interface DispositionItem extends LinkProps {
|
|
16
|
-
/** @hidden */
|
|
17
|
-
icon?: Picture;
|
|
18
|
-
}
|
|
19
|
-
export interface SitemapProps {
|
|
20
|
-
/** @title Дополнительное меню */
|
|
21
|
-
topItems?: TopMenuItem[];
|
|
22
|
-
/** @title Дополнительное меню */
|
|
23
|
-
dispositions?: DispositionItem[];
|
|
24
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SitemapProps.js","sourceRoot":"","sources":["../../src/model/SitemapProps.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fallbackWCMSResource.js","sourceRoot":"","sources":["../../../src/services/sitemap/fallbackWCMSResource.ts"],"names":[],"mappings":";;AAAA,0CAAuC;AAGhC,MAAM,oBAAoB,GAAG,CAAC,QAAgB,EAAe,EAAE,CAAC,CAAC;IACtE,CAAC,mBAAmB,QAAQ,OAAO,CAAC,EAAE,KAAK,IAAI,EAAE,CAC/C,IAAI,CAAC,KAAK,CAAC,MAAM,IAAA,mBAAQ,EAAC,4BAA4B,QAAQ,OAAO,EAAE,OAAO,CAAC,CAAC;CACnF,CAAC,CAAC;AAHU,QAAA,oBAAoB,wBAG9B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jaroWinklerDistance.js","sourceRoot":"","sources":["../../../../src/services/sitemap/search/jaroWinklerDistance.ts"],"names":[],"mappings":";;AAAA,MAAM,cAAc,GAAG,GAAG,CAAC;AAC3B,MAAM,kBAAkB,GAAG,CAAC,CAAC;AAEtB,MAAM,mBAAmB,GAC9B,CAAC,EAAsB,EAAE,EAAE,CAC3B,CAAC,EAAsB,EAAU,EAAE;IACjC,IAAI,EAAE,KAAK,EAAE,EAAE;QACb,OAAO,CAAC,CAAC;KACV;IAED,IAAI,CAAC,EAAE,IAAI,CAAC,EAAE,EAAE;QACd,OAAO,CAAC,CAAC;KACV;IAED,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IAErD,IAAI,CAAC,KAAK,CAAC,EAAE;QACX,OAAO,CAAC,CAAC;KACV;IAED,MAAM,CAAC,GAAG,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,CAAC;IAErD,MAAM,UAAU,GAAG,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|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"joinMaps.js","sourceRoot":"","sources":["../../../../src/services/sitemap/search/joinMaps.ts"],"names":[],"mappings":";;AAAO,MAAM,QAAQ,GACnB,CAAU,SAA4B,EAAE,QAAW,EAAE,EAAE,CACvD,CAAC,GAAc,EAAE,GAAc,EAAa,EAAE;IAC5C,KAAK,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC,IAAI,GAAG,EAAE;QAC1B,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC;KACtD;IAED,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AARS,QAAA,QAAQ,YAQjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search.js","sourceRoot":"","sources":["../../../../src/services/sitemap/search/search.ts"],"names":[],"mappings":";;AAAA,0DAA4D;AAC5D,4CAAyC;AACzC,+DAA4D;AAC5D,yCAAsC;AACtC,yCAAsC;AACtC,yCAAsC;AAkBtC,MAAM,YAAY,GAAG,GAAG,CAAC;AACzB,MAAM,QAAQ,GAAG,KAAK,CAAC;AAEhB,MAAM,MAAM,GACjB,CAAC,KAAyB,EAAE,EAAE,CAC9B,CAAC,WAAoC,EAAgB,EAAE;IACrD,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,WAAW,IAAI,EAAE,CAAC;IACjD,IAAI,CAAC,KAAK,IAAI,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC,UAAU,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,EAAE;QAC/E,OAAO,EAAE,CAAC;KACX;IAED,MAAM,WAAW,GAAG,IAAA,mBAAQ,EAAC,KAAK,CAAC,CAAC;IACpC,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE;QACvB,OAAO,EAAE,CAAC;KACX;IAED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EAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QACpF,CAAC,CAAC,CAAC,CAAC;AACR,CAAC,CAAC;AARS,QAAA,QAAQ,YAQjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tokenize.js","sourceRoot":"","sources":["../../../../src/services/sitemap/search/tokenize.ts"],"names":[],"mappings":";;AAAA,MAAM,YAAY,GAAG,CAAC,CAAC;AAEhB,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAE,EAAE,CACvC,IAAI;KACD,WAAW,EAAE;KACb,KAAK,CAAC,gBAAgB,CAAC;KACvB,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,IAAI,YAAY,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;AAJnE,QAAA,QAAQ,YAI2D"}
|