@admin-layout/tailwind-design-pro 10.1.1-alpha.9 → 11.2.1-alpha.1
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/README.md +376 -250
- package/lib/cdm-locales/en/menu.json +2 -1
- package/lib/cdm-locales/en/settings.json +6 -1
- package/lib/cdm-locales/es/menu.json +2 -1
- package/lib/cdm-locales/es/settings.json +6 -1
- package/lib/cdm-locales/index.d.ts +2 -0
- package/lib/cdm-locales/index.d.ts.map +1 -0
- package/lib/cdm-locales/index.ts +1 -0
- package/lib/components/LanguageMenu/LanguageMenu.d.ts +2 -1
- package/lib/components/LanguageMenu/LanguageMenu.d.ts.map +1 -1
- package/lib/components/LanguageMenu/LanguageMenu.js +40 -61
- package/lib/components/LanguageMenu/LanguageMenu.js.map +1 -1
- package/lib/components/Layout/BasicLayout/index.d.ts +6 -5
- package/lib/components/Layout/BasicLayout/index.d.ts.map +1 -1
- package/lib/components/Layout/BasicLayout/index.js +255 -175
- package/lib/components/Layout/BasicLayout/index.js.map +1 -1
- package/lib/components/Layout/BasicLayout/utils.d.ts +4 -2
- package/lib/components/Layout/BasicLayout/utils.d.ts.map +1 -1
- package/lib/components/Layout/BasicLayout/utils.js +80 -109
- package/lib/components/Layout/BasicLayout/utils.js.map +1 -1
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts.map +1 -1
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js +28 -38
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js.map +1 -1
- package/lib/components/Layout/GlobalFooter/Copyright.d.ts +2 -1
- package/lib/components/Layout/GlobalFooter/Copyright.d.ts.map +1 -1
- package/lib/components/Layout/GlobalFooter/Footer.d.ts +2 -1
- package/lib/components/Layout/GlobalFooter/Footer.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/Header.d.ts +0 -1
- package/lib/components/Layout/GlobalHeader/Header.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/Header.js +82 -66
- package/lib/components/Layout/GlobalHeader/Header.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/MainHeader.d.ts +0 -2
- package/lib/components/Layout/GlobalHeader/MainHeader.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/MainHeader.js +119 -162
- package/lib/components/Layout/GlobalHeader/MainHeader.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js +26 -30
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightContent.d.ts +1 -0
- package/lib/components/Layout/GlobalHeader/RightContent.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightContent.js +82 -19
- package/lib/components/Layout/GlobalHeader/RightContent.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightMenu.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightMenu.js +116 -158
- package/lib/components/Layout/GlobalHeader/RightMenu.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/SearchBar.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/SearchBar.js +36 -45
- package/lib/components/Layout/GlobalHeader/SearchBar.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/index.d.ts +0 -1
- package/lib/components/Layout/GlobalHeader/index.d.ts.map +1 -1
- package/lib/components/Layout/ProTailwindLayout.d.ts +2 -2
- package/lib/components/Layout/ProTailwindLayout.d.ts.map +1 -1
- package/lib/components/Layout/ProTailwindLayout.js +70 -9
- package/lib/components/Layout/ProTailwindLayout.js.map +1 -1
- package/lib/components/Layout/Sidebar/BottomMenu.d.ts +4 -0
- package/lib/components/Layout/Sidebar/BottomMenu.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/BottomMenu.js +294 -0
- package/lib/components/Layout/Sidebar/BottomMenu.js.map +1 -0
- package/lib/components/Layout/Sidebar/Divider.d.ts +2 -1
- package/lib/components/Layout/Sidebar/Divider.d.ts.map +1 -1
- package/lib/components/Layout/Sidebar/Divider.js +26 -28
- package/lib/components/Layout/Sidebar/Divider.js.map +1 -1
- package/lib/components/Layout/Sidebar/DynamicIcon.d.ts +1 -1
- package/lib/components/Layout/Sidebar/DynamicIcon.d.ts.map +1 -1
- package/lib/components/Layout/Sidebar/DynamicIcon.js +10 -11
- package/lib/components/Layout/Sidebar/DynamicIcon.js.map +1 -1
- package/lib/components/Layout/Sidebar/MainSidebar.d.ts +5 -0
- package/lib/components/Layout/Sidebar/MainSidebar.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/MainSidebar.js +224 -0
- package/lib/components/Layout/Sidebar/MainSidebar.js.map +1 -0
- package/lib/components/Layout/Sidebar/MainSidebarMenu.d.ts +6 -0
- package/lib/components/Layout/Sidebar/MainSidebarMenu.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/MainSidebarMenu.js +451 -0
- package/lib/components/Layout/Sidebar/MainSidebarMenu.js.map +1 -0
- package/lib/components/Layout/Sidebar/PerplexSidebar.d.ts +4 -0
- package/lib/components/Layout/Sidebar/PerplexSidebar.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/PerplexSidebar.js +254 -0
- package/lib/components/Layout/Sidebar/PerplexSidebar.js.map +1 -0
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.d.ts +4 -0
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.js +318 -0
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.js.map +1 -0
- package/lib/components/Layout/TailwindLayout.d.ts.map +1 -1
- package/lib/components/Layout/TailwindLayout.js +37 -20
- package/lib/components/Layout/TailwindLayout.js.map +1 -1
- package/lib/components/Layout/getPageTitle.js.map +1 -1
- package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts +3 -2
- package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/AdditionalSettings.js +2 -2
- package/lib/components/Layout/slot-fill/AdditionalSettings.js.map +1 -1
- package/lib/components/Layout/slot-fill/Footer.d.ts +3 -2
- package/lib/components/Layout/slot-fill/Footer.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/Footer.js +2 -2
- package/lib/components/Layout/slot-fill/Footer.js.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderNotice.d.ts +3 -2
- package/lib/components/Layout/slot-fill/HeaderNotice.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderNotice.js +7 -0
- package/lib/components/Layout/slot-fill/HeaderNotice.js.map +1 -0
- package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts +2 -1
- package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderSearchBar.js +2 -2
- package/lib/components/Layout/slot-fill/HeaderSearchBar.js.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts +2 -1
- package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderSearchButton.js +2 -2
- package/lib/components/Layout/slot-fill/HeaderSearchButton.js.map +1 -1
- package/lib/components/Layout/slot-fill/Logo.d.ts +5 -0
- package/lib/components/Layout/slot-fill/Logo.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/Logo.js +7 -0
- package/lib/components/Layout/slot-fill/Logo.js.map +1 -0
- package/lib/components/Layout/slot-fill/RightContent.d.ts +2 -1
- package/lib/components/Layout/slot-fill/RightContent.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/RightContent.js +2 -2
- package/lib/components/Layout/slot-fill/RightContent.js.map +1 -1
- package/lib/components/Layout/slot-fill/SideMenuLogo.d.ts +5 -0
- package/lib/components/Layout/slot-fill/SideMenuLogo.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/SideMenuLogo.js +7 -0
- package/lib/components/Layout/slot-fill/SideMenuLogo.js.map +1 -0
- package/lib/components/Layout/slot-fill/index.d.ts +2 -0
- package/lib/components/Layout/slot-fill/index.d.ts.map +1 -1
- package/lib/components/Layout/util.js +1 -1
- package/lib/components/Layout/util.js.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.d.ts +2 -2
- package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.js +190 -499
- package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -1
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.d.ts +8 -0
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.js +21 -0
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.js.map +1 -0
- package/lib/components/SettingDrawer/components/CheckBoxTheme.d.ts +4 -0
- package/lib/components/SettingDrawer/components/CheckBoxTheme.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/CheckBoxTheme.js +119 -0
- package/lib/components/SettingDrawer/components/CheckBoxTheme.js.map +1 -0
- package/lib/components/SettingDrawer/components/DeviceTabs.d.ts +8 -0
- package/lib/components/SettingDrawer/components/DeviceTabs.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/DeviceTabs.js +74 -0
- package/lib/components/SettingDrawer/components/DeviceTabs.js.map +1 -0
- package/lib/components/SettingDrawer/components/InvitationSettings.d.ts +4 -0
- package/lib/components/SettingDrawer/components/InvitationSettings.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/InvitationSettings.js +72 -0
- package/lib/components/SettingDrawer/components/InvitationSettings.js.map +1 -0
- package/lib/components/SettingDrawer/components/LayoutChange.d.ts +4 -0
- package/lib/components/SettingDrawer/components/LayoutChange.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/LayoutChange.js +111 -0
- package/lib/components/SettingDrawer/components/LayoutChange.js.map +1 -0
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.d.ts +21 -0
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.js +106 -0
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.js.map +1 -0
- package/lib/components/SettingDrawer/components/NavigationsModes.d.ts +4 -0
- package/lib/components/SettingDrawer/components/NavigationsModes.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/NavigationsModes.js +322 -0
- package/lib/components/SettingDrawer/components/NavigationsModes.js.map +1 -0
- package/lib/components/SettingDrawer/components/RegionalSettings.d.ts +4 -0
- package/lib/components/SettingDrawer/components/RegionalSettings.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/RegionalSettings.js +519 -0
- package/lib/components/SettingDrawer/components/RegionalSettings.js.map +1 -0
- package/lib/components/SettingDrawer/components/SettingsActions.d.ts +13 -0
- package/lib/components/SettingDrawer/components/SettingsActions.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/SettingsActions.js +42 -0
- package/lib/components/SettingDrawer/components/SettingsActions.js.map +1 -0
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.d.ts +5 -0
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.js +22 -0
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.js.map +1 -0
- package/lib/components/SettingDrawer/components/Switch.d.ts +4 -0
- package/lib/components/SettingDrawer/components/Switch.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/Switch.js +20 -0
- package/lib/components/SettingDrawer/components/Switch.js.map +1 -0
- package/lib/components/SettingDrawer/components/ThemeColor.d.ts +4 -0
- package/lib/components/SettingDrawer/components/ThemeColor.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/ThemeColor.js +45 -0
- package/lib/components/SettingDrawer/components/ThemeColor.js.map +1 -0
- package/lib/components/SettingDrawer/components/ThemeSelector.d.ts +4 -0
- package/lib/components/SettingDrawer/components/ThemeSelector.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/ThemeSelector.js +16 -0
- package/lib/components/SettingDrawer/components/ThemeSelector.js.map +1 -0
- package/lib/components/SettingDrawer/components/WebFontsSelector.d.ts +4 -0
- package/lib/components/SettingDrawer/components/WebFontsSelector.d.ts.map +1 -0
- package/lib/components/SettingDrawer/components/WebFontsSelector.js +22 -0
- package/lib/components/SettingDrawer/components/WebFontsSelector.js.map +1 -0
- package/lib/components/SettingDrawer/hooks/useSettingsOperations.d.ts +18 -0
- package/lib/components/SettingDrawer/hooks/useSettingsOperations.d.ts.map +1 -0
- package/lib/components/SettingDrawer/hooks/useSettingsOperations.js +115 -0
- package/lib/components/SettingDrawer/hooks/useSettingsOperations.js.map +1 -0
- package/lib/components/SettingDrawer/utils/constants.d.ts +11 -0
- package/lib/components/SettingDrawer/utils/constants.d.ts.map +1 -0
- package/lib/components/SettingDrawer/utils/constants.js +77 -0
- package/lib/components/SettingDrawer/utils/constants.js.map +1 -0
- package/lib/components/SettingDrawer/utils/helper.d.ts +37 -0
- package/lib/components/SettingDrawer/utils/helper.d.ts.map +1 -0
- package/lib/components/SettingDrawer/utils/helper.js +154 -0
- package/lib/components/SettingDrawer/utils/helper.js.map +1 -0
- package/lib/components/SettingDrawer/utils/transformers.d.ts +15 -0
- package/lib/components/SettingDrawer/utils/transformers.d.ts.map +1 -0
- package/lib/components/SettingDrawer/utils/transformers.js +73 -0
- package/lib/components/SettingDrawer/utils/transformers.js.map +1 -0
- package/lib/components/SettingDrawer/{types.d.ts → utils/types.d.ts} +14 -0
- package/lib/components/SettingDrawer/utils/types.d.ts.map +1 -0
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts +13 -4
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts.map +1 -1
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js +97 -4
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js.map +1 -1
- package/lib/components/index.d.ts +0 -2
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +1 -1
- package/lib/components/typings.d.ts +20 -6
- package/lib/components/typings.d.ts.map +1 -1
- package/lib/compute.d.ts.map +1 -1
- package/lib/compute.js +10 -2
- package/lib/compute.js.map +1 -1
- package/lib/config/analytics-config.d.ts +59 -0
- package/lib/config/analytics-config.d.ts.map +1 -0
- package/lib/config/constants.js.map +1 -1
- package/lib/config/env-config.d.ts +6 -0
- package/lib/config/env-config.d.ts.map +1 -1
- package/lib/config/env-config.js +21 -1
- package/lib/config/env-config.js.map +1 -1
- package/lib/config/index.d.ts +3 -0
- package/lib/config/index.d.ts.map +1 -0
- package/lib/helpers/DynamicIcon.d.ts +1 -1
- package/lib/helpers/DynamicIcon.d.ts.map +1 -1
- package/lib/helpers/DynamicIcon.js +16 -17
- package/lib/helpers/DynamicIcon.js.map +1 -1
- package/lib/hooks/index.d.ts +0 -3
- package/lib/hooks/index.d.ts.map +1 -1
- package/lib/hooks/useMediaQuery.js.map +1 -1
- package/lib/hooks/useScrollThreshold.js.map +1 -1
- package/lib/hooks/useTailwindTheme.js.map +1 -1
- package/lib/icons.d.ts +2 -0
- package/lib/icons.d.ts.map +1 -1
- package/lib/icons.js +4 -2
- package/lib/icons.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/machines/selectors.d.ts +118 -0
- package/lib/machines/selectors.d.ts.map +1 -0
- package/lib/machines/settingsMachine.d.ts +25 -2
- package/lib/machines/settingsMachine.d.ts.map +1 -1
- package/lib/machines/settingsMachine.js +133 -168
- package/lib/machines/settingsMachine.js.map +1 -1
- package/lib/machines/types.d.ts +107 -9
- package/lib/machines/types.d.ts.map +1 -1
- package/lib/machines/types.js.map +1 -1
- package/lib/module.js.map +1 -1
- package/lib/redux/searchReducer.d.ts +1 -1
- package/lib/redux/searchReducer.d.ts.map +1 -1
- package/lib/redux/searchReducer.js.map +1 -1
- package/lib/routes.json +9 -1
- package/lib/styles/index.css +602 -372
- package/lib/tailwindConfig.d.ts +85 -27
- package/lib/tailwindConfig.d.ts.map +1 -1
- package/lib/tailwindConfig.js +96 -18
- package/lib/tailwindConfig.js.map +1 -1
- package/lib/utils/__tests__/analytics-utils.test.d.ts +2 -0
- package/lib/utils/__tests__/analytics-utils.test.d.ts.map +1 -0
- package/lib/utils/__tests__/configOverrides.test.d.ts +2 -0
- package/lib/utils/__tests__/configOverrides.test.d.ts.map +1 -0
- package/lib/utils/__tests__/menu.test.d.ts +2 -0
- package/lib/utils/__tests__/menu.test.d.ts.map +1 -0
- package/lib/utils/__tests__/selectors.test.d.ts +2 -0
- package/lib/utils/__tests__/selectors.test.d.ts.map +1 -0
- package/lib/utils/__tests__/settingsMachine.test.d.ts +2 -0
- package/lib/utils/__tests__/settingsMachine.test.d.ts.map +1 -0
- package/lib/utils/__tests__/settingsUtils.test.d.ts +2 -0
- package/lib/utils/__tests__/settingsUtils.test.d.ts.map +1 -0
- package/lib/utils/analytics-utils.d.ts +43 -0
- package/lib/utils/analytics-utils.d.ts.map +1 -0
- package/lib/utils/analytics.d.ts +48 -0
- package/lib/utils/analytics.d.ts.map +1 -0
- package/lib/utils/configOverrides.d.ts +213 -0
- package/lib/utils/configOverrides.d.ts.map +1 -0
- package/lib/utils/configOverrides.js +91 -0
- package/lib/utils/configOverrides.js.map +1 -0
- package/lib/utils/isBrowser/index.js.map +1 -1
- package/lib/utils/settingsUtils.d.ts +20 -0
- package/lib/utils/settingsUtils.d.ts.map +1 -0
- package/lib/utils/settingsUtils.js +74 -0
- package/lib/utils/settingsUtils.js.map +1 -0
- package/lib/utils/utils/index.js.map +1 -1
- package/package.json +7 -15
- package/lib/components/Layout/GlobalHeader/Logo.d.ts +0 -4
- package/lib/components/Layout/GlobalHeader/Logo.d.ts.map +0 -1
- package/lib/components/Layout/GlobalHeader/Logo.js +0 -141
- package/lib/components/Layout/GlobalHeader/Logo.js.map +0 -1
- package/lib/components/Layout/Sidebar/Sidebar.d.ts +0 -5
- package/lib/components/Layout/Sidebar/Sidebar.d.ts.map +0 -1
- package/lib/components/Layout/Sidebar/Sidebar.js +0 -186
- package/lib/components/Layout/Sidebar/Sidebar.js.map +0 -1
- package/lib/components/Layout/Sidebar/SidebarMenu.d.ts +0 -4
- package/lib/components/Layout/Sidebar/SidebarMenu.d.ts.map +0 -1
- package/lib/components/Layout/Sidebar/SidebarMenu.js +0 -183
- package/lib/components/Layout/Sidebar/SidebarMenu.js.map +0 -1
- package/lib/components/SettingDrawer/CheckBoxTheme.d.ts +0 -3
- package/lib/components/SettingDrawer/CheckBoxTheme.d.ts.map +0 -1
- package/lib/components/SettingDrawer/CheckBoxTheme.js +0 -123
- package/lib/components/SettingDrawer/CheckBoxTheme.js.map +0 -1
- package/lib/components/SettingDrawer/LayoutChange.d.ts +0 -3
- package/lib/components/SettingDrawer/LayoutChange.d.ts.map +0 -1
- package/lib/components/SettingDrawer/LayoutChange.js +0 -123
- package/lib/components/SettingDrawer/LayoutChange.js.map +0 -1
- package/lib/components/SettingDrawer/NavigationsModes.d.ts +0 -3
- package/lib/components/SettingDrawer/NavigationsModes.d.ts.map +0 -1
- package/lib/components/SettingDrawer/NavigationsModes.js +0 -289
- package/lib/components/SettingDrawer/NavigationsModes.js.map +0 -1
- package/lib/components/SettingDrawer/RegionalSettings.d.ts +0 -3
- package/lib/components/SettingDrawer/RegionalSettings.d.ts.map +0 -1
- package/lib/components/SettingDrawer/RegionalSettings.js +0 -740
- package/lib/components/SettingDrawer/RegionalSettings.js.map +0 -1
- package/lib/components/SettingDrawer/Switch/index.d.ts +0 -3
- package/lib/components/SettingDrawer/Switch/index.d.ts.map +0 -1
- package/lib/components/SettingDrawer/Switch/index.js +0 -22
- package/lib/components/SettingDrawer/Switch/index.js.map +0 -1
- package/lib/components/SettingDrawer/ThemeColor.d.ts +0 -3
- package/lib/components/SettingDrawer/ThemeColor.d.ts.map +0 -1
- package/lib/components/SettingDrawer/ThemeColor.js +0 -35
- package/lib/components/SettingDrawer/ThemeColor.js.map +0 -1
- package/lib/components/SettingDrawer/ThemeSelector.d.ts +0 -3
- package/lib/components/SettingDrawer/ThemeSelector.d.ts.map +0 -1
- package/lib/components/SettingDrawer/ThemeSelector.js +0 -18
- package/lib/components/SettingDrawer/ThemeSelector.js.map +0 -1
- package/lib/components/SettingDrawer/WebFontsSelector.d.ts +0 -3
- package/lib/components/SettingDrawer/WebFontsSelector.d.ts.map +0 -1
- package/lib/components/SettingDrawer/WebFontsSelector.js +0 -24
- package/lib/components/SettingDrawer/WebFontsSelector.js.map +0 -1
- package/lib/components/SettingDrawer/types.d.ts.map +0 -1
- package/lib/components/ThemeProvider/ThemeProvider.d.ts +0 -8
- package/lib/components/ThemeProvider/ThemeProvider.d.ts.map +0 -1
- package/lib/components/ThemeProvider/ThemeProvider.js +0 -60
- package/lib/components/ThemeProvider/ThemeProvider.js.map +0 -1
- package/lib/components/ThemeProvider/ThemeToggle.d.ts +0 -7
- package/lib/components/ThemeProvider/ThemeToggle.d.ts.map +0 -1
- package/lib/components/ThemeProvider/ThemeToggle.js +0 -50
- package/lib/components/ThemeProvider/ThemeToggle.js.map +0 -1
- package/lib/components/ThemeProvider/index.d.ts +0 -4
- package/lib/components/ThemeProvider/index.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/airbnb.d.ts +0 -3
- package/lib/components/ThemeProvider/themes/airbnb.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/airbnb.js +0 -186
- package/lib/components/ThemeProvider/themes/airbnb.js.map +0 -1
- package/lib/components/ThemeProvider/themes/default.d.ts +0 -3
- package/lib/components/ThemeProvider/themes/default.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/default.js +0 -183
- package/lib/components/ThemeProvider/themes/default.js.map +0 -1
- package/lib/components/ThemeProvider/themes/github.d.ts +0 -3
- package/lib/components/ThemeProvider/themes/github.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/github.js +0 -190
- package/lib/components/ThemeProvider/themes/github.js.map +0 -1
- package/lib/components/ThemeProvider/themes/index.d.ts +0 -15
- package/lib/components/ThemeProvider/themes/index.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/index.js +0 -7
- package/lib/components/ThemeProvider/themes/index.js.map +0 -1
- package/lib/components/ThemeProvider/themes/slack.d.ts +0 -3
- package/lib/components/ThemeProvider/themes/slack.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/slack.js +0 -188
- package/lib/components/ThemeProvider/themes/slack.js.map +0 -1
- package/lib/components/ThemeProvider/themes/spotify.d.ts +0 -3
- package/lib/components/ThemeProvider/themes/spotify.d.ts.map +0 -1
- package/lib/components/ThemeProvider/themes/spotify.js +0 -189
- package/lib/components/ThemeProvider/themes/spotify.js.map +0 -1
- package/lib/components/ThemeProvider/types.d.ts +0 -112
- package/lib/components/ThemeProvider/types.d.ts.map +0 -1
- package/lib/components/UI/CardList.d.ts +0 -61
- package/lib/components/UI/CardList.d.ts.map +0 -1
- package/lib/components/UI/CardList.js +0 -43
- package/lib/components/UI/CardList.js.map +0 -1
- package/lib/components/UI/CategoriesTypeList.d.ts +0 -29
- package/lib/components/UI/CategoriesTypeList.d.ts.map +0 -1
- package/lib/components/UI/CategoriesTypeList.js +0 -140
- package/lib/components/UI/CategoriesTypeList.js.map +0 -1
- package/lib/components/UI/LazyLoadingGoogleMarker.d.ts +0 -83
- package/lib/components/UI/LazyLoadingGoogleMarker.d.ts.map +0 -1
- package/lib/components/UI/LazyLoadingGoogleMarker.js +0 -107
- package/lib/components/UI/LazyLoadingGoogleMarker.js.map +0 -1
- package/lib/components/UI/Pagination.d.ts +0 -6
- package/lib/components/UI/Pagination.d.ts.map +0 -1
- package/lib/components/UI/Pagination.js +0 -59
- package/lib/components/UI/Pagination.js.map +0 -1
- package/lib/components/UI/ParamSearchResultContainer.d.ts +0 -99
- package/lib/components/UI/ParamSearchResultContainer.d.ts.map +0 -1
- package/lib/components/UI/ParamSearchResultContainer.js +0 -120
- package/lib/components/UI/ParamSearchResultContainer.js.map +0 -1
- package/lib/components/UI/PropertyCard.d.ts +0 -24
- package/lib/components/UI/PropertyCard.d.ts.map +0 -1
- package/lib/components/UI/PropertyCard.js +0 -375
- package/lib/components/UI/PropertyCard.js.map +0 -1
- package/lib/components/UI/PropertyCardOnMap.d.ts +0 -10
- package/lib/components/UI/PropertyCardOnMap.d.ts.map +0 -1
- package/lib/components/UI/PropertyCardOnMap.js +0 -108
- package/lib/components/UI/PropertyCardOnMap.js.map +0 -1
- package/lib/components/UI/VehicleCard/PricePopover.d.ts +0 -8
- package/lib/components/UI/VehicleCard/PricePopover.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard/PricePopover.js +0 -98
- package/lib/components/UI/VehicleCard/PricePopover.js.map +0 -1
- package/lib/components/UI/VehicleCard/VehicleBadge.d.ts +0 -7
- package/lib/components/UI/VehicleCard/VehicleBadge.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard/VehicleFeature.d.ts +0 -9
- package/lib/components/UI/VehicleCard/VehicleFeature.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard/VehicleFeature.js +0 -23
- package/lib/components/UI/VehicleCard/VehicleFeature.js.map +0 -1
- package/lib/components/UI/VehicleCard/types.d.ts +0 -59
- package/lib/components/UI/VehicleCard/types.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard.d.ts +0 -15
- package/lib/components/UI/VehicleCard.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard.js +0 -166
- package/lib/components/UI/VehicleCard.js.map +0 -1
- package/lib/components/UI/VehicleCardList.d.ts +0 -14
- package/lib/components/UI/VehicleCardList.d.ts.map +0 -1
- package/lib/components/UI/VehicleCardList.js +0 -38
- package/lib/components/UI/VehicleCardList.js.map +0 -1
- package/lib/components/UI/VehicleParamSearchResultContainer.d.ts +0 -90
- package/lib/components/UI/VehicleParamSearchResultContainer.d.ts.map +0 -1
- package/lib/components/UI/icons/LocationIcon.d.ts +0 -7
- package/lib/components/UI/icons/LocationIcon.d.ts.map +0 -1
- package/lib/components/UI/icons/LocationIcon.js +0 -18
- package/lib/components/UI/icons/LocationIcon.js.map +0 -1
- package/lib/components/UI/icons/index.d.ts +0 -2
- package/lib/components/UI/icons/index.d.ts.map +0 -1
- package/lib/components/UI/index.d.ts +0 -10
- package/lib/components/UI/index.d.ts.map +0 -1
- package/lib/components/typings.js +0 -6
- package/lib/components/typings.js.map +0 -1
- package/lib/hooks/use-get-current-lat-long.d.ts +0 -18
- package/lib/hooks/use-get-current-lat-long.d.ts.map +0 -1
- package/lib/hooks/use-get-current-lat-long.js +0 -29
- package/lib/hooks/use-get-current-lat-long.js.map +0 -1
- package/lib/hooks/useWindowSize.d.ts +0 -6
- package/lib/hooks/useWindowSize.d.ts.map +0 -1
- package/lib/hooks/useWindowSize.js +0 -20
- package/lib/hooks/useWindowSize.js.map +0 -1
- package/lib/middlewares/airbnbDatasourcesMiddleware.d.ts +0 -6
- package/lib/middlewares/airbnbDatasourcesMiddleware.d.ts.map +0 -1
- package/lib/middlewares/bookingCarRentalMiddleware.d.ts +0 -6
- package/lib/middlewares/bookingCarRentalMiddleware.d.ts.map +0 -1
- package/lib/middlewares/bookingDatasourcesMiddleware.d.ts +0 -7
- package/lib/middlewares/bookingDatasourcesMiddleware.d.ts.map +0 -1
- package/lib/middlewares/datasourcesMiddleware.d.ts +0 -6
- package/lib/middlewares/datasourcesMiddleware.d.ts.map +0 -1
- package/lib/middlewares/pricelineDatasourcesMiddleware.d.ts +0 -7
- package/lib/middlewares/pricelineDatasourcesMiddleware.d.ts.map +0 -1
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import {jsxs,jsx}from'react/jsx-runtime';import {renderDynamicIcon}from'../../../helpers/DynamicIcon.js';const VehicleFeature = ({
|
|
2
|
-
icon,
|
|
3
|
-
label,
|
|
4
|
-
iconColor = '#6B7280'
|
|
5
|
-
}) => {
|
|
6
|
-
// gray-500
|
|
7
|
-
return jsxs("div", {
|
|
8
|
-
className: "flex items-center bg-gray-50 px-1.5 py-0.5 rounded text-[11px] text-gray-700",
|
|
9
|
-
children: [jsx("div", {
|
|
10
|
-
className: "text-gray-500 mr-0.5",
|
|
11
|
-
children: renderDynamicIcon({
|
|
12
|
-
name: icon,
|
|
13
|
-
style: {
|
|
14
|
-
iconColor: iconColor,
|
|
15
|
-
w: '20px',
|
|
16
|
-
h: '20px'
|
|
17
|
-
}
|
|
18
|
-
})
|
|
19
|
-
}), jsx("span", {
|
|
20
|
-
children: label
|
|
21
|
-
})]
|
|
22
|
-
});
|
|
23
|
-
};export{VehicleFeature as default};//# sourceMappingURL=VehicleFeature.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VehicleFeature.js","sources":["../../../../src/components/UI/VehicleCard/VehicleFeature.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":"yGASA,MAAM,cAAc,GAA+B,CAAC;MACrC;AACX,EAAA,KAAA;AAIgB,EAAA,SAAA,GAAA;AACA,CAAA,KAAA;AACI;AACA,EAAA,OAAAA,IAAA,CAAA,KAAA,EAAA;AACA,IAAA,SAAA,EAAA,8EAAS;AACZ,IAAA,QAAA,EAAA,CAAAC,GAAA,CAAA,KAAA,EAAA;AACJ,MAAA,SAAA,EAAA,sBAEL;AAGZ,MAAE,QAAA,EAAA,iBAAA,CAAA;AAEF,QAAA,IAAA,EAAA;;;;;;;;;;;"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
export interface CarBags {
|
|
2
|
-
count: number;
|
|
3
|
-
size?: string;
|
|
4
|
-
}
|
|
5
|
-
export interface RentalCompany {
|
|
6
|
-
name: string;
|
|
7
|
-
logo?: string;
|
|
8
|
-
rating?: number;
|
|
9
|
-
reviewCount?: string;
|
|
10
|
-
}
|
|
11
|
-
export interface PickupInfo {
|
|
12
|
-
location: string;
|
|
13
|
-
description?: string;
|
|
14
|
-
freePickup?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export interface CarPricing {
|
|
17
|
-
currency: string;
|
|
18
|
-
amount: number | string;
|
|
19
|
-
originalPrice?: string;
|
|
20
|
-
discount?: string;
|
|
21
|
-
period?: string;
|
|
22
|
-
beforeTaxes?: boolean;
|
|
23
|
-
freeCancel?: boolean;
|
|
24
|
-
deals?: number;
|
|
25
|
-
}
|
|
26
|
-
export interface CarActions {
|
|
27
|
-
showInfo?: boolean;
|
|
28
|
-
showEmail?: boolean;
|
|
29
|
-
}
|
|
30
|
-
export interface Car {
|
|
31
|
-
id: string;
|
|
32
|
-
make: string;
|
|
33
|
-
model: string;
|
|
34
|
-
image?: string;
|
|
35
|
-
subtitle?: string;
|
|
36
|
-
tags?: string[];
|
|
37
|
-
isNewListing?: boolean;
|
|
38
|
-
isFavorite?: boolean;
|
|
39
|
-
rating?: number;
|
|
40
|
-
reviews?: string;
|
|
41
|
-
hostStatus?: string;
|
|
42
|
-
location?: string;
|
|
43
|
-
hasAC?: boolean;
|
|
44
|
-
transmission?: string;
|
|
45
|
-
seats?: number;
|
|
46
|
-
bags?: CarBags;
|
|
47
|
-
mileage?: string;
|
|
48
|
-
rentalCompany?: RentalCompany;
|
|
49
|
-
pickupInfo?: PickupInfo;
|
|
50
|
-
pricing?: CarPricing;
|
|
51
|
-
actions?: CarActions;
|
|
52
|
-
source?: string;
|
|
53
|
-
}
|
|
54
|
-
export interface CarCardProps {
|
|
55
|
-
car: Car;
|
|
56
|
-
onFavorite?: (id: string) => void;
|
|
57
|
-
onViewDeal?: (id: string) => void;
|
|
58
|
-
}
|
|
59
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/UI/VehicleCard/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,MAAM,CAAC;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,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IACzB,GAAG,EAAE,GAAG,CAAC;IACT,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type VehicleCardProps = {
|
|
3
|
-
item?: any;
|
|
4
|
-
isSaved?: boolean;
|
|
5
|
-
setFocus?: (index: number) => void;
|
|
6
|
-
setBlur?: (index: number) => void;
|
|
7
|
-
handleLike?: (index: number) => void;
|
|
8
|
-
likeBtnLoading?: boolean;
|
|
9
|
-
categoryTypes?: any[];
|
|
10
|
-
authenticated?: boolean;
|
|
11
|
-
extraIcons?: any[];
|
|
12
|
-
};
|
|
13
|
-
declare const VehicleCard: React.FC<VehicleCardProps>;
|
|
14
|
-
export default VehicleCard;
|
|
15
|
-
//# sourceMappingURL=VehicleCard.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VehicleCard.d.ts","sourceRoot":"","sources":["../../../src/components/UI/VehicleCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAoC1B,KAAK,gBAAgB,GAAG;IACpB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC;CACtB,CAAC;AAEF,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAuK3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {AiFillHeart}from'@react-icons/all-files/ai/AiFillHeart.js';import {AiFillStar}from'@react-icons/all-files/ai/AiFillStar.js';import {AiOutlineHeart}from'@react-icons/all-files/ai/AiOutlineHeart.js';import {FaAward}from'@react-icons/all-files/fa/FaAward.js';import {FaShieldAlt}from'@react-icons/all-files/fa/FaShieldAlt.js';import {FiMapPin}from'@react-icons/all-files/fi/FiMapPin.js';import VehicleFeature from'./VehicleCard/VehicleFeature.js';import PricePopover from'./VehicleCard/PricePopover.js';import {useMemo}from'react';const startCase = str => {
|
|
2
|
-
return str.toLowerCase().split('_').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join(' ');
|
|
3
|
-
};
|
|
4
|
-
const seatWordToNumber = word => {
|
|
5
|
-
const map = {
|
|
6
|
-
ONE: 1,
|
|
7
|
-
TWO: 2,
|
|
8
|
-
THREE: 3,
|
|
9
|
-
FOUR: 4,
|
|
10
|
-
FIVE: 5,
|
|
11
|
-
SIX: 6,
|
|
12
|
-
SEVEN: 7,
|
|
13
|
-
EIGHT: 8,
|
|
14
|
-
NINE: 9,
|
|
15
|
-
TEN: 10
|
|
16
|
-
};
|
|
17
|
-
return map[word.toUpperCase()] || word;
|
|
18
|
-
};
|
|
19
|
-
const VehicleCard = ({
|
|
20
|
-
item,
|
|
21
|
-
isSaved,
|
|
22
|
-
setFocus,
|
|
23
|
-
setBlur,
|
|
24
|
-
handleLike,
|
|
25
|
-
likeBtnLoading,
|
|
26
|
-
categoryTypes,
|
|
27
|
-
authenticated,
|
|
28
|
-
extraIcons = []
|
|
29
|
-
}) => {
|
|
30
|
-
useMemo(() => categoryTypes?.filter(type => item?.types?.includes(type.id)), [item, categoryTypes]);
|
|
31
|
-
return jsx("div", {
|
|
32
|
-
className: "bg-white rounded-lg overflow-hidden border border-gray-200 sm:h-[250px]",
|
|
33
|
-
onMouseEnter: () => setFocus(item.id),
|
|
34
|
-
onMouseLeave: () => setBlur(item.id),
|
|
35
|
-
children: jsxs("div", {
|
|
36
|
-
className: "flex flex-col sm:flex-row sm:h-full",
|
|
37
|
-
children: [jsxs("div", {
|
|
38
|
-
className: "relative w-full sm:w-[240px] h-[200px] sm:h-full flex-shrink-0",
|
|
39
|
-
children: [item.thumbnail?.url && jsx("img", {
|
|
40
|
-
src: item.thumbnail.url,
|
|
41
|
-
alt: item.title,
|
|
42
|
-
className: "w-full h-full object-contain bg-gray-50 p-2"
|
|
43
|
-
}), jsx("button", {
|
|
44
|
-
onClick: () => handleLike?.(item.id),
|
|
45
|
-
className: "absolute top-2 right-2 p-1.5 bg-white/90 backdrop-blur-sm rounded-full hover:bg-white transition-colors duration-200",
|
|
46
|
-
children: item.isUserLike ? jsx(AiFillHeart, {
|
|
47
|
-
className: "h-4 w-4 text-red-500"
|
|
48
|
-
}) : jsx(AiOutlineHeart, {
|
|
49
|
-
className: "h-4 w-4 text-gray-500"
|
|
50
|
-
})
|
|
51
|
-
})]
|
|
52
|
-
}), jsxs("div", {
|
|
53
|
-
className: "flex-1 p-4 flex flex-col",
|
|
54
|
-
children: [jsxs("div", {
|
|
55
|
-
children: [jsxs("div", {
|
|
56
|
-
className: "flex items-start justify-between gap-2 mb-2",
|
|
57
|
-
children: [jsx("h2", {
|
|
58
|
-
className: "text-base font-semibold text-gray-900 truncate",
|
|
59
|
-
children: item.title
|
|
60
|
-
}), item.stats?.averageRating && jsxs("div", {
|
|
61
|
-
className: "flex items-center shrink-0",
|
|
62
|
-
children: [jsx("span", {
|
|
63
|
-
className: "font-semibold text-black-700",
|
|
64
|
-
children: item.stats.averageRating
|
|
65
|
-
}), jsx(AiFillStar, {
|
|
66
|
-
className: "h-3.5 w-3.5 text-yellow-500 ml-0.5"
|
|
67
|
-
}), item.stats?.totalReviews && jsxs("span", {
|
|
68
|
-
className: "text-xs text-gray-600 ml-1",
|
|
69
|
-
children: ["(", item.stats.totalReviews, ")"]
|
|
70
|
-
})]
|
|
71
|
-
})]
|
|
72
|
-
}), jsxs("div", {
|
|
73
|
-
className: "flex flex-wrap items-center gap-2 text-xs mb-2",
|
|
74
|
-
children: [item.orgName && jsxs("span", {
|
|
75
|
-
className: "text-purple-600 flex items-center",
|
|
76
|
-
children: [jsx(FaAward, {
|
|
77
|
-
className: "h-3.5 w-3.5 mr-0.5"
|
|
78
|
-
}), item.orgName]
|
|
79
|
-
}), item.preferences?.details?.freeCancellation && jsxs("span", {
|
|
80
|
-
className: "text-green-600 flex items-center",
|
|
81
|
-
children: [jsx(FaShieldAlt, {
|
|
82
|
-
className: "h-3.5 w-3.5 mr-0.5"
|
|
83
|
-
}), "Free cancellation"]
|
|
84
|
-
})]
|
|
85
|
-
}), item.address?.description && jsxs("div", {
|
|
86
|
-
className: "flex items-center text-xs text-gray-400 mb-3",
|
|
87
|
-
children: [jsx(FiMapPin, {
|
|
88
|
-
className: "h-3.5 w-3.5 mr-0.5 flex-shrink-0"
|
|
89
|
-
}), jsx("span", {
|
|
90
|
-
className: "truncate",
|
|
91
|
-
children: item.address.description
|
|
92
|
-
})]
|
|
93
|
-
})]
|
|
94
|
-
}), jsx("div", {
|
|
95
|
-
className: "flex flex-wrap gap-1.5 mb-4",
|
|
96
|
-
children: Object.entries(item.preferences?.details?.metadata || {}).map(([key, value]) => {
|
|
97
|
-
// Skip non-feature metadata
|
|
98
|
-
if (key === '__typename' || key === 'suitcases') return null;
|
|
99
|
-
const feature = value;
|
|
100
|
-
if (!feature.enable) return null;
|
|
101
|
-
let label = '';
|
|
102
|
-
switch (key) {
|
|
103
|
-
case 'aircon':
|
|
104
|
-
label = 'AC';
|
|
105
|
-
break;
|
|
106
|
-
case 'seats':
|
|
107
|
-
label = `${seatWordToNumber(item.preferences.details.seats.replace('_SEATER', ''))} Seats`;
|
|
108
|
-
break;
|
|
109
|
-
case 'suitcases':
|
|
110
|
-
const small = value.small?.value || 0;
|
|
111
|
-
const big = value.big?.value || 0;
|
|
112
|
-
label = `${small + big} Bags`;
|
|
113
|
-
break;
|
|
114
|
-
case 'unlimitedMileage':
|
|
115
|
-
label = startCase(item.mileage);
|
|
116
|
-
break;
|
|
117
|
-
default:
|
|
118
|
-
label = startCase(key);
|
|
119
|
-
}
|
|
120
|
-
return jsx(VehicleFeature, {
|
|
121
|
-
icon: feature.icon,
|
|
122
|
-
label: label
|
|
123
|
-
}, key);
|
|
124
|
-
})
|
|
125
|
-
}), jsx("div", {
|
|
126
|
-
className: "mt-auto",
|
|
127
|
-
children: jsxs("div", {
|
|
128
|
-
className: "flex items-end justify-between",
|
|
129
|
-
children: [jsxs("div", {
|
|
130
|
-
className: "relative group",
|
|
131
|
-
children: [item.pricingInfo && jsxs(Fragment, {
|
|
132
|
-
children: [jsx("div", {
|
|
133
|
-
className: "space-y-0.5",
|
|
134
|
-
children: jsxs("div", {
|
|
135
|
-
className: "flex items-baseline",
|
|
136
|
-
children: [jsxs("span", {
|
|
137
|
-
className: "text-lg font-bold",
|
|
138
|
-
children: [item.pricingInfo.currency, item.pricingInfo.basePrice]
|
|
139
|
-
}), jsx("span", {
|
|
140
|
-
className: "text-gray-500 text-xs ml-1",
|
|
141
|
-
children: "total"
|
|
142
|
-
})]
|
|
143
|
-
})
|
|
144
|
-
}), jsx(PricePopover, {
|
|
145
|
-
pricing: {
|
|
146
|
-
freeCancel: item.preferences?.details?.freeCancellation,
|
|
147
|
-
currency: item.pricingInfo.currency,
|
|
148
|
-
amount: item.pricingInfo.basePrice,
|
|
149
|
-
period: 'total'
|
|
150
|
-
}
|
|
151
|
-
})]
|
|
152
|
-
}), item.__typename && jsxs("span", {
|
|
153
|
-
className: "text-xs text-gray-400 block mt-1",
|
|
154
|
-
children: ["via ", item.__typename.replace('Vehicle', '')]
|
|
155
|
-
})]
|
|
156
|
-
}), jsx("button", {
|
|
157
|
-
onClick: () => {},
|
|
158
|
-
className: "bg-blue-600 text-white px-4 py-2 text-sm rounded-lg font-medium hover:bg-blue-700 transition-colors duration-200",
|
|
159
|
-
children: "View deal"
|
|
160
|
-
})]
|
|
161
|
-
})
|
|
162
|
-
})]
|
|
163
|
-
})]
|
|
164
|
-
})
|
|
165
|
-
});
|
|
166
|
-
};export{VehicleCard as default};//# sourceMappingURL=VehicleCard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VehicleCard.js","sources":["../../../src/components/UI/VehicleCard.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":"0kBAYA,MAAM,SAAS,GAAG,GAAC,IAAe;AAC9B,EAAA,OAAA,GAAU,CAAA,WAAA,EAAA,CAAA,KAAA,CAAA,GAAA,CAAA,CAAA,GAAA,CAAA,IAAA,IAAA,IAAA,CAAA,MAAA,CAAA,CAAA,CAAA,CAAA,WAAA,EAAA,GAAA,IAAA,CAAA,KAAA,CAAA,CAAA,CAAA,CAAA,CAAA,IAAA,CAAA,GAAA,CAAA;AACL,CAAA;sBACU,GAAA,IAAA,IAAA;WACP,GAAE;SACL,CAAI;AACb,IAAE,GAAA,EAAA,CAAA;AAEF,IAAA,KAAsB,EAAA,CAAA;AAClB,IAAA,IAAA,EAAM;AACF,IAAA,IAAA,EAAA,CAAG;AACH,IAAA,GAAA,EAAA,CAAA;AACA,IAAA,KAAA,EAAA,CAAA;AACA,IAAA,KAAA,EAAA,CAAI;AACJ,IAAA,IAAA,EAAA,CAAA;AACA,IAAA,GAAA,EAAA;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AEF,cAAA,cAA2B,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type VehicleCardListProps = {
|
|
3
|
-
cars?: any[];
|
|
4
|
-
setFocus: (index: number) => void;
|
|
5
|
-
setBlur: (index: number) => void;
|
|
6
|
-
handleLike: (index: number) => void;
|
|
7
|
-
likeBtnLoading: boolean;
|
|
8
|
-
vehicleTypes: any[];
|
|
9
|
-
extraIcons?: any;
|
|
10
|
-
className?: string;
|
|
11
|
-
};
|
|
12
|
-
export declare const VehicleCardList: React.FC<VehicleCardListProps>;
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=VehicleCardList.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VehicleCardList.d.ts","sourceRoot":"","sources":["../../../src/components/UI/VehicleCardList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,KAAK,oBAAoB,GAAG;IACxB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,cAAc,EAAE,OAAO,CAAC;IACxB,YAAY,EAAE,GAAG,EAAE,CAAC;IACpB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA0B1D,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import {jsx}from'react/jsx-runtime';import {useTranslation}from'react-i18next';import {isEmpty}from'lodash-es';import {isUserAuthenticated}from'@adminide-stack/user-auth0-client';import VehicleCard from'./VehicleCard.js';const VehicleCardList = props => {
|
|
2
|
-
const {
|
|
3
|
-
setBlur,
|
|
4
|
-
setFocus,
|
|
5
|
-
cars,
|
|
6
|
-
handleLike,
|
|
7
|
-
likeBtnLoading,
|
|
8
|
-
vehicleTypes,
|
|
9
|
-
extraIcons,
|
|
10
|
-
className = ''
|
|
11
|
-
} = props;
|
|
12
|
-
const {
|
|
13
|
-
t
|
|
14
|
-
} = useTranslation();
|
|
15
|
-
const {
|
|
16
|
-
authenticated
|
|
17
|
-
} = isUserAuthenticated();
|
|
18
|
-
if (isEmpty(cars)) {
|
|
19
|
-
return jsx("div", {
|
|
20
|
-
className: "text-base",
|
|
21
|
-
children: t('property.not_found_any_room')
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
return jsx("div", {
|
|
25
|
-
className: "flex flex-wrap gap-4 flex-col",
|
|
26
|
-
children: cars.map((car, index) => jsx(VehicleCard, {
|
|
27
|
-
item: car,
|
|
28
|
-
isSaved: false,
|
|
29
|
-
setFocus: () => setFocus(index),
|
|
30
|
-
setBlur: setBlur,
|
|
31
|
-
handleLike: handleLike,
|
|
32
|
-
likeBtnLoading: likeBtnLoading,
|
|
33
|
-
categoryTypes: vehicleTypes,
|
|
34
|
-
authenticated: authenticated,
|
|
35
|
-
extraIcons: extraIcons
|
|
36
|
-
}, car.id))
|
|
37
|
-
});
|
|
38
|
-
};export{VehicleCardList};//# sourceMappingURL=VehicleCardList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VehicleCardList.js","sources":["../../../src/components/UI/VehicleCardList.tsx"],"sourcesContent":[null],"names":[],"mappings":"6NAiBa,MAAA,eAAe,GAAmC,KAAC,IAAS;QAC/D;AACN,IAAA;AACA,IAAA,QAAQ;AAER,IAAA,IAAI;cACO;IACX,cAAC;AACD,IAAA,YACI;AAiBR,IAAE,UAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { MutableRefObject } from 'react';
|
|
2
|
-
import { GraphQLError } from 'graphql';
|
|
3
|
-
interface IProperty {
|
|
4
|
-
id: string;
|
|
5
|
-
title: string;
|
|
6
|
-
types: string[];
|
|
7
|
-
name: string;
|
|
8
|
-
description?: string;
|
|
9
|
-
introduction?: string;
|
|
10
|
-
address: any;
|
|
11
|
-
location: string;
|
|
12
|
-
images: any;
|
|
13
|
-
thumbnailUrl?: string;
|
|
14
|
-
thumbnailAlt?: string;
|
|
15
|
-
verificationDocuments?: any;
|
|
16
|
-
info?: any;
|
|
17
|
-
user: any;
|
|
18
|
-
status?: any;
|
|
19
|
-
errors?: any;
|
|
20
|
-
preferences?: any;
|
|
21
|
-
orgName?: string;
|
|
22
|
-
serviceConfiguration?: any;
|
|
23
|
-
totalReview?: number;
|
|
24
|
-
totalStar?: number;
|
|
25
|
-
reviews?: any;
|
|
26
|
-
comments?: any;
|
|
27
|
-
userLikes?: any;
|
|
28
|
-
calendarEvents?: any[];
|
|
29
|
-
isUserLike?: boolean;
|
|
30
|
-
formattedPrice?: number;
|
|
31
|
-
timeZone: string;
|
|
32
|
-
createdAt: any;
|
|
33
|
-
updatedAt?: any;
|
|
34
|
-
stats?: any;
|
|
35
|
-
guideBookId?: string;
|
|
36
|
-
guestSharing?: any;
|
|
37
|
-
}
|
|
38
|
-
interface IAirbnbProperty {
|
|
39
|
-
id: string;
|
|
40
|
-
title: string;
|
|
41
|
-
types: string[];
|
|
42
|
-
name: string;
|
|
43
|
-
description?: string;
|
|
44
|
-
introduction?: string;
|
|
45
|
-
address: any;
|
|
46
|
-
location: string;
|
|
47
|
-
images: any;
|
|
48
|
-
thumbnailUrl?: string;
|
|
49
|
-
thumbnailAlt?: string;
|
|
50
|
-
verificationDocuments?: any;
|
|
51
|
-
info?: any;
|
|
52
|
-
user: any;
|
|
53
|
-
status?: any;
|
|
54
|
-
errors?: any;
|
|
55
|
-
preferences?: any;
|
|
56
|
-
orgName?: string;
|
|
57
|
-
serviceConfiguration?: any;
|
|
58
|
-
totalReview?: number;
|
|
59
|
-
totalStar?: number;
|
|
60
|
-
reviews?: any;
|
|
61
|
-
comments?: any;
|
|
62
|
-
userLikes?: any;
|
|
63
|
-
calendarEvents?: any[];
|
|
64
|
-
isUserLike?: boolean;
|
|
65
|
-
formattedPrice?: number;
|
|
66
|
-
timeZone: string;
|
|
67
|
-
createdAt: any;
|
|
68
|
-
updatedAt?: any;
|
|
69
|
-
stats?: any;
|
|
70
|
-
guideBookId?: string;
|
|
71
|
-
guestSharing?: any;
|
|
72
|
-
}
|
|
73
|
-
interface IParamSearchResultContainer {
|
|
74
|
-
data: IProperty[] | IAirbnbProperty[];
|
|
75
|
-
error: GraphQLError | Error;
|
|
76
|
-
listInnerRef: MutableRefObject<HTMLDivElement>;
|
|
77
|
-
handleSetFocus?: (index: number) => void;
|
|
78
|
-
handleRemoveFocus?: (index: number) => void;
|
|
79
|
-
handleLike?: (index: number) => void;
|
|
80
|
-
extraIcons?: any[];
|
|
81
|
-
currentPage: number;
|
|
82
|
-
totalPages: number;
|
|
83
|
-
totalPropertiesCount: number;
|
|
84
|
-
onPageChange: (page: number) => void;
|
|
85
|
-
likeBtnLoading?: boolean;
|
|
86
|
-
propertyTypes?: any[];
|
|
87
|
-
}
|
|
88
|
-
export declare const ParamSearchResultContainer: (props: IParamSearchResultContainer) => import("react/jsx-runtime").JSX.Element;
|
|
89
|
-
export {};
|
|
90
|
-
//# sourceMappingURL=VehicleParamSearchResultContainer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VehicleParamSearchResultContainer.d.ts","sourceRoot":"","sources":["../../../src/components/UI/VehicleParamSearchResultContainer.tsx"],"names":[],"mappings":"AAAA,OAAc,EAA6C,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAI3F,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AAY,GAAG,KAAK,CAAC;IAI5B,YAAY,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC;IAI/C,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC;CACzB;AAID,eAAO,MAAM,0BAA0B,GAAI,OAAO,2BAA2B,4CA0E5E,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LocationIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/UI/icons/LocationIcon.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,GAAI;;;;;CAAkC,4CAY9D,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import {jsx}from'react/jsx-runtime';const LocationIcon = ({
|
|
2
|
-
className = '',
|
|
3
|
-
w,
|
|
4
|
-
h,
|
|
5
|
-
...props
|
|
6
|
-
}) => jsx("svg", {
|
|
7
|
-
viewBox: "0 0 24 24",
|
|
8
|
-
className: `inline-block ${className}`,
|
|
9
|
-
style: {
|
|
10
|
-
width: w || '1em',
|
|
11
|
-
height: h || '1em'
|
|
12
|
-
},
|
|
13
|
-
...props,
|
|
14
|
-
children: jsx("path", {
|
|
15
|
-
d: "M12.0001 1.49866C7.85965 1.49866 4.50012 4.52256 4.50012 8.24865C4.50012 14.2487 12.0001 22.4986 12.0001 22.4986C12.0001 22.4986 19.5001 14.2487 19.5001 8.24865C19.5001 4.52256 16.1406 1.49866 12.0001 1.49866ZM12.0001 11.9987C11.4068 11.9987 10.8268 11.8227 10.3334 11.4931C9.84006 11.1634 9.45554 10.6949 9.22848 10.1467C9.00142 9.59853 8.94201 8.99533 9.05776 8.41338C9.17352 7.83144 9.45924 7.29689 9.8788 6.87733C10.2984 6.45778 10.8329 6.17205 11.4148 6.0563C11.9968 5.94054 12.6 5.99995 13.1482 6.22702C13.6963 6.45408 14.1649 6.8386 14.4945 7.33194C14.8242 7.82529 15.0001 8.40531 15.0001 8.99865C14.9992 9.79404 14.6829 10.5566 14.1205 11.119C13.5581 11.6814 12.7955 11.9978 12.0001 11.9987Z",
|
|
16
|
-
fill: "currentColor"
|
|
17
|
-
})
|
|
18
|
-
});export{LocationIcon};//# sourceMappingURL=LocationIcon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LocationIcon.js","sources":["../../../../src/components/UI/icons/LocationIcon.tsx"],"sourcesContent":[null],"names":[],"mappings":"oCAEO,MAAM,YAAY,GAAG,CAAC;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/UI/icons/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from './CategoriesTypeList';
|
|
2
|
-
export * from './PropertyCardOnMap';
|
|
3
|
-
export * from './LazyLoadingGoogleMarker';
|
|
4
|
-
export * from './ParamSearchResultContainer';
|
|
5
|
-
export * from './CardList';
|
|
6
|
-
export * from './PropertyCard';
|
|
7
|
-
export * from './Pagination';
|
|
8
|
-
export * from './VehicleCard';
|
|
9
|
-
export * from './VehicleCardList';
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/UI/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typings.js","sources":["../../src/components/typings.ts"],"sourcesContent":[null],"names":[],"mappings":"IAwKY;AAAZ,CAAA,UAAY,UAAU,EAAA;AAClB,EAAA,UAAA,CAAA,QAAA,CAAA,GAAA,QAAA;AACA,EAAA,UAAA,CAAA,SAAA,CAAA,GAAA,SAAA;AACA,EAAA,UAAA,CAAA,MAAA,CAAA,GAAA,MAAA;AACJ,CAAC,EAJW,UAAU,KAAV,UAAU,GAIrB,EAAA,CAAA,CAAA"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* Gets the current Ip address details of user by calling the geolocation
|
|
4
|
-
*
|
|
5
|
-
*/
|
|
6
|
-
interface CurrentLocationLongLatInterface {
|
|
7
|
-
loading: boolean;
|
|
8
|
-
error: Error;
|
|
9
|
-
fetchCurrentLatLong: () => void;
|
|
10
|
-
permissionDenied: boolean;
|
|
11
|
-
location: {
|
|
12
|
-
latitude: number;
|
|
13
|
-
longitude: number;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
export declare function useGetCurrentLongLat(): CurrentLocationLongLatInterface;
|
|
17
|
-
export {};
|
|
18
|
-
//# sourceMappingURL=use-get-current-lat-long.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-get-current-lat-long.d.ts","sourceRoot":"","sources":["../../src/hooks/use-get-current-lat-long.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,UAAU,+BAA+B;IACrC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC;IACb,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,QAAQ,EAAE;QACN,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;KACrB,CAAC;CACL;AAED,wBAAgB,oBAAoB,IAAI,+BAA+B,CA6BtE"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import {reject}from'lodash-es';import originalAsyncFunc from'react-use/lib/useAsyncFn.js';import {useState}from'react';const useAsyncFn = originalAsyncFunc?.default || originalAsyncFunc;
|
|
2
|
-
function useGetCurrentLongLat() {
|
|
3
|
-
const [permissionDenied, setPermissionDenied] = useState(false);
|
|
4
|
-
// const { toastError } = Toast();
|
|
5
|
-
const [state, fetchCurrentLatLong] = useAsyncFn(() => new Promise(resolve => {
|
|
6
|
-
navigator.geolocation.getCurrentPosition(position => {
|
|
7
|
-
setPermissionDenied(false);
|
|
8
|
-
resolve({
|
|
9
|
-
latitude: position.coords.latitude,
|
|
10
|
-
longitude: position.coords.longitude
|
|
11
|
-
});
|
|
12
|
-
}, err => {
|
|
13
|
-
setPermissionDenied(true);
|
|
14
|
-
// toastError(err.message);
|
|
15
|
-
reject(err);
|
|
16
|
-
}, {
|
|
17
|
-
maximumAge: 60000,
|
|
18
|
-
timeout: 5000,
|
|
19
|
-
enableHighAccuracy: true
|
|
20
|
-
});
|
|
21
|
-
}));
|
|
22
|
-
return {
|
|
23
|
-
loading: state.loading,
|
|
24
|
-
location: state.value,
|
|
25
|
-
error: state.error,
|
|
26
|
-
permissionDenied,
|
|
27
|
-
fetchCurrentLatLong
|
|
28
|
-
};
|
|
29
|
-
}export{useGetCurrentLongLat};//# sourceMappingURL=use-get-current-lat-long.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-get-current-lat-long.js","sources":["../../src/hooks/use-get-current-lat-long.ts"],"sourcesContent":[null],"names":[],"mappings":"uHAIA,MAAM,UAAU,GAAI,iBAAyB,EAAE,OAAO,IAAI,iBAAiB;SAiB3D,oBAAoB,GAAA;QAC1B,CAAA,gBAAiB,EAAA,mBAAqB,CAAA,WAAY,CAAA,KAAM,CAAA;;AAG9D,EAAA,MAAA,CAAA,KAAY,EAAA,mBAAqB,CAAA,aAAc,CAAA,MACxC,IACK,OAAA,CAAA,OAAS;aACA,CAAA,8BAAa,CAAA,QACjB,IAAA;yBACsB,CAAA,KAAA,CAAC;AACpB,MAAA,OAAA,CAAA;AACJ,QAAA,QACI,EAAI,QAAA,CAAA,MAAA,CAAA,QAAA;iBACe,EAAA,QAAA,CAAA,MAAK,CAAA;;cAElB;AACV,MAAA,mBACc,KAAK,CAAE;;MAK9B,MAAA,CAAA,GAAA,CAAA;;gBAEK,EAAE,KAAK;aACV,EAAE,IAAK;wBACI,EAAA;;KAEnB;AACL,EAAC,OAAA;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useWindowSize.d.ts","sourceRoot":"","sources":["../../src/hooks/useWindowSize.ts"],"names":[],"mappings":"AAEA,iBAAS,aAAa;;;EAsBrB;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import {useState,useEffect}from'react';function useWindowSize() {
|
|
2
|
-
const [windowSize, setWindowSize] = useState({
|
|
3
|
-
width: typeof window !== 'undefined' ? window.innerWidth : 0,
|
|
4
|
-
// Check if window is defined
|
|
5
|
-
height: typeof window !== 'undefined' ? window.innerHeight : 0 // Check if window is defined
|
|
6
|
-
});
|
|
7
|
-
useEffect(() => {
|
|
8
|
-
function handleResize() {
|
|
9
|
-
setWindowSize({
|
|
10
|
-
width: window.innerWidth,
|
|
11
|
-
height: window.innerHeight
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
// Add event listener for window resize
|
|
15
|
-
window.addEventListener('resize', handleResize);
|
|
16
|
-
// Cleanup the event listener on component unmount
|
|
17
|
-
return () => window.removeEventListener('resize', handleResize);
|
|
18
|
-
}, []);
|
|
19
|
-
return windowSize;
|
|
20
|
-
}export{useWindowSize as default};//# sourceMappingURL=useWindowSize.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useWindowSize.js","sources":["../../src/hooks/useWindowSize.ts"],"sourcesContent":[null],"names":[],"mappings":"uCAEA,SAAS,aAAa,GAAA;AAClB,EAAA,MAAA,CAAA,UAAiB,EAAA,iBAAgB;AAC7B,IAAA,KAAA,EAAA,OAAc,MAAA,KAAW,WAAA,GAAA,MAAoB,CAAA,cAAW;AACxD;AACH,IAAA,MAAE,EAAA,OAAA,MAAA,KAAA,WAAA,GAAA,MAAA,CAAA,WAAA,GAAA,CAAA;IAEH;AACI,EAAA,SAAA,CAAA,MAAqB;AACjB,IAAA,SAAA,YAAa,GAAC;mBACL,CAAA;qBACC,CAAA,UAAoB;AAC7B,QAAA,MAAC,EAAC,MAAA,CAAA;QACP;;AAGA;UAEkD,CAAA,gBAAA,CAAA,QAAA,EAAA,YAAA,CAAA;;IAEtD,OAAO,MAAA,MAAA,CAAA,mBAAA,CAAA,QAAA,EAAA,YAAA,CAAA;AAEP,GAAA,EAAA,EAAA,CAAA;AACJ,EAAC,OAAA,UAAA;AAED"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"airbnbDatasourcesMiddleware.d.ts","sourceRoot":"","sources":["../../src/middlewares/airbnbDatasourcesMiddleware.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,UAAU,GAAU;;;;CAA4B,EAAE,eAAU,EAAE,SAAI,kBAsI9E,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bookingCarRentalMiddleware.d.ts","sourceRoot":"","sources":["../../src/middlewares/bookingCarRentalMiddleware.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,UAAU,GAAU;;;;CAA4B,EAAE,eAAU,EAAE,SAAI,kBAwH9E,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bookingDatasourcesMiddleware.d.ts","sourceRoot":"","sources":["../../src/middlewares/bookingDatasourcesMiddleware.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,UAAU,GAAU;;;;CAA4B,EAAE,eAAU,EAAE,SAAI,kBAmIvE,CAAC;AACF,OAAO,EAAE,UAAU,EAAE,CAAC"}
|