@admin-layout/tailwind-design-pro 10.0.9-alpha.9 → 10.1.1-alpha.0

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.
Files changed (273) hide show
  1. package/README.md +345 -1
  2. package/lib/cdm-locales/en/settings.json +35 -1
  3. package/lib/cdm-locales/es/settings.json +37 -3
  4. package/lib/components/Layout/BasicLayout/index.d.ts +1 -2
  5. package/lib/components/Layout/BasicLayout/index.d.ts.map +1 -1
  6. package/lib/components/Layout/BasicLayout/index.js +146 -42
  7. package/lib/components/Layout/BasicLayout/index.js.map +1 -1
  8. package/lib/components/Layout/BasicLayout/utils.d.ts.map +1 -1
  9. package/lib/components/Layout/BasicLayout/utils.js +1 -1
  10. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts +1 -8
  11. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts.map +1 -1
  12. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js.map +1 -1
  13. package/lib/components/Layout/GlobalFooter/Copyright.d.ts.map +1 -1
  14. package/lib/components/Layout/GlobalFooter/Footer.d.ts.map +1 -1
  15. package/lib/components/Layout/GlobalHeader/Header.d.ts +2 -15
  16. package/lib/components/Layout/GlobalHeader/Header.d.ts.map +1 -1
  17. package/lib/components/Layout/GlobalHeader/Header.js +70 -38
  18. package/lib/components/Layout/GlobalHeader/Header.js.map +1 -1
  19. package/lib/components/Layout/GlobalHeader/Logo.d.ts +4 -0
  20. package/lib/components/Layout/GlobalHeader/Logo.d.ts.map +1 -0
  21. package/lib/components/Layout/GlobalHeader/Logo.js +141 -0
  22. package/lib/components/Layout/GlobalHeader/Logo.js.map +1 -0
  23. package/lib/components/Layout/GlobalHeader/MainHeader.d.ts +6 -0
  24. package/lib/components/Layout/GlobalHeader/MainHeader.d.ts.map +1 -0
  25. package/lib/components/Layout/GlobalHeader/MainHeader.js +230 -0
  26. package/lib/components/Layout/GlobalHeader/MainHeader.js.map +1 -0
  27. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts +1 -12
  28. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts.map +1 -1
  29. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js.map +1 -1
  30. package/lib/components/Layout/GlobalHeader/RightContent.d.ts +1 -13
  31. package/lib/components/Layout/GlobalHeader/RightContent.d.ts.map +1 -1
  32. package/lib/components/Layout/GlobalHeader/RightContent.js.map +1 -1
  33. package/lib/components/Layout/GlobalHeader/RightMenu.d.ts +4 -0
  34. package/lib/components/Layout/GlobalHeader/RightMenu.d.ts.map +1 -0
  35. package/lib/components/Layout/GlobalHeader/RightMenu.js +290 -0
  36. package/lib/components/Layout/GlobalHeader/RightMenu.js.map +1 -0
  37. package/lib/components/Layout/GlobalHeader/SearchBar.d.ts +9 -0
  38. package/lib/components/Layout/GlobalHeader/SearchBar.d.ts.map +1 -0
  39. package/lib/components/Layout/GlobalHeader/SearchBar.js +118 -0
  40. package/lib/components/Layout/GlobalHeader/SearchBar.js.map +1 -0
  41. package/lib/components/Layout/GlobalHeader/index.d.ts +4 -0
  42. package/lib/components/Layout/GlobalHeader/index.d.ts.map +1 -0
  43. package/lib/components/Layout/ProTailwindLayout.d.ts.map +1 -1
  44. package/lib/components/Layout/ProTailwindLayout.js +1 -2
  45. package/lib/components/Layout/ProTailwindLayout.js.map +1 -1
  46. package/lib/components/Layout/Sidebar/Divider.d.ts +1 -31
  47. package/lib/components/Layout/Sidebar/Divider.d.ts.map +1 -1
  48. package/lib/components/Layout/Sidebar/Divider.js.map +1 -1
  49. package/lib/components/Layout/Sidebar/DynamicIcon.d.ts +5 -0
  50. package/lib/components/Layout/Sidebar/DynamicIcon.d.ts.map +1 -0
  51. package/lib/components/Layout/Sidebar/DynamicIcon.js +51 -0
  52. package/lib/components/Layout/Sidebar/DynamicIcon.js.map +1 -0
  53. package/lib/components/Layout/Sidebar/Sidebar.d.ts +1 -12
  54. package/lib/components/Layout/Sidebar/Sidebar.d.ts.map +1 -1
  55. package/lib/components/Layout/Sidebar/Sidebar.js +108 -92
  56. package/lib/components/Layout/Sidebar/Sidebar.js.map +1 -1
  57. package/lib/components/Layout/Sidebar/SidebarMenu.d.ts.map +1 -1
  58. package/lib/components/Layout/Sidebar/SidebarMenu.js +110 -20
  59. package/lib/components/Layout/Sidebar/SidebarMenu.js.map +1 -1
  60. package/lib/components/Layout/TailwindLayout.d.ts.map +1 -1
  61. package/lib/components/Layout/TailwindLayout.js +29 -19
  62. package/lib/components/Layout/TailwindLayout.js.map +1 -1
  63. package/lib/components/Layout/getPageTitle.d.ts +1 -16
  64. package/lib/components/Layout/getPageTitle.d.ts.map +1 -1
  65. package/lib/components/Layout/getPageTitle.js +1 -1
  66. package/lib/components/Layout/getPageTitle.js.map +1 -1
  67. package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts.map +1 -1
  68. package/lib/components/Layout/slot-fill/Footer.d.ts +1 -1
  69. package/lib/components/Layout/slot-fill/Footer.d.ts.map +1 -1
  70. package/lib/components/Layout/slot-fill/Footer.js +6 -6
  71. package/lib/components/Layout/slot-fill/Footer.js.map +1 -1
  72. package/lib/components/Layout/slot-fill/HeaderNotice.d.ts.map +1 -1
  73. package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts +3 -0
  74. package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts.map +1 -0
  75. package/lib/components/Layout/slot-fill/HeaderSearchBar.js +6 -0
  76. package/lib/components/Layout/slot-fill/HeaderSearchBar.js.map +1 -0
  77. package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts +3 -0
  78. package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts.map +1 -0
  79. package/lib/components/Layout/slot-fill/HeaderSearchButton.js +6 -0
  80. package/lib/components/Layout/slot-fill/HeaderSearchButton.js.map +1 -0
  81. package/lib/components/Layout/slot-fill/RightContent.d.ts +3 -0
  82. package/lib/components/Layout/slot-fill/RightContent.d.ts.map +1 -0
  83. package/lib/components/Layout/slot-fill/RightContent.js +6 -0
  84. package/lib/components/Layout/slot-fill/RightContent.js.map +1 -0
  85. package/lib/components/Layout/slot-fill/index.d.ts +3 -0
  86. package/lib/components/Layout/slot-fill/index.d.ts.map +1 -1
  87. package/lib/components/Layout/util.d.ts.map +1 -1
  88. package/lib/components/Layout/util.js +12 -0
  89. package/lib/components/Layout/util.js.map +1 -0
  90. package/lib/components/SettingDrawer/CheckBoxTheme.js +1 -1
  91. package/lib/components/SettingDrawer/LayoutChange.d.ts +1 -1
  92. package/lib/components/SettingDrawer/LayoutChange.d.ts.map +1 -1
  93. package/lib/components/SettingDrawer/LayoutChange.js +75 -17
  94. package/lib/components/SettingDrawer/LayoutChange.js.map +1 -1
  95. package/lib/components/SettingDrawer/NavigationsModes.d.ts +1 -1
  96. package/lib/components/SettingDrawer/NavigationsModes.d.ts.map +1 -1
  97. package/lib/components/SettingDrawer/NavigationsModes.js +18 -10
  98. package/lib/components/SettingDrawer/NavigationsModes.js.map +1 -1
  99. package/lib/components/SettingDrawer/RegionalSettings.d.ts.map +1 -1
  100. package/lib/components/SettingDrawer/RegionalSettings.js +685 -33
  101. package/lib/components/SettingDrawer/RegionalSettings.js.map +1 -1
  102. package/lib/components/SettingDrawer/SettingDrawer.d.ts +1 -1
  103. package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -1
  104. package/lib/components/SettingDrawer/SettingDrawer.js +164 -39
  105. package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -1
  106. package/lib/components/SettingDrawer/WebFontsSelector.d.ts +3 -0
  107. package/lib/components/SettingDrawer/WebFontsSelector.d.ts.map +1 -0
  108. package/lib/components/SettingDrawer/WebFontsSelector.js +24 -0
  109. package/lib/components/SettingDrawer/WebFontsSelector.js.map +1 -0
  110. package/lib/components/SettingDrawer/types.d.ts +23 -2
  111. package/lib/components/SettingDrawer/types.d.ts.map +1 -1
  112. package/lib/components/ThemeProvider/ThemeProvider.d.ts +6 -16
  113. package/lib/components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
  114. package/lib/components/ThemeProvider/ThemeProvider.js +26 -28
  115. package/lib/components/ThemeProvider/ThemeProvider.js.map +1 -1
  116. package/lib/components/ThemeProvider/ThemeToggle.js +50 -0
  117. package/lib/components/ThemeProvider/ThemeToggle.js.map +1 -0
  118. package/lib/components/ThemeProvider/index.d.ts +2 -5
  119. package/lib/components/ThemeProvider/index.d.ts.map +1 -1
  120. package/lib/components/ThemeProvider/themes/airbnb.d.ts +3 -0
  121. package/lib/components/ThemeProvider/themes/airbnb.d.ts.map +1 -0
  122. package/lib/components/ThemeProvider/themes/airbnb.js +186 -0
  123. package/lib/components/ThemeProvider/themes/airbnb.js.map +1 -0
  124. package/lib/components/ThemeProvider/themes/default.d.ts +3 -0
  125. package/lib/components/ThemeProvider/themes/default.d.ts.map +1 -0
  126. package/lib/components/ThemeProvider/themes/default.js +183 -0
  127. package/lib/components/ThemeProvider/themes/default.js.map +1 -0
  128. package/lib/components/ThemeProvider/themes/github.d.ts +3 -0
  129. package/lib/components/ThemeProvider/themes/github.d.ts.map +1 -0
  130. package/lib/components/ThemeProvider/themes/github.js +190 -0
  131. package/lib/components/ThemeProvider/themes/github.js.map +1 -0
  132. package/lib/components/ThemeProvider/themes/index.d.ts +15 -0
  133. package/lib/components/ThemeProvider/themes/index.d.ts.map +1 -0
  134. package/lib/components/ThemeProvider/themes/index.js +7 -0
  135. package/lib/components/ThemeProvider/themes/index.js.map +1 -0
  136. package/lib/components/ThemeProvider/themes/slack.d.ts +3 -0
  137. package/lib/components/ThemeProvider/themes/slack.d.ts.map +1 -0
  138. package/lib/components/ThemeProvider/themes/slack.js +188 -0
  139. package/lib/components/ThemeProvider/themes/slack.js.map +1 -0
  140. package/lib/components/ThemeProvider/themes/spotify.d.ts +3 -0
  141. package/lib/components/ThemeProvider/themes/spotify.d.ts.map +1 -0
  142. package/lib/components/ThemeProvider/themes/spotify.js +189 -0
  143. package/lib/components/ThemeProvider/themes/spotify.js.map +1 -0
  144. package/lib/components/ThemeProvider/types.d.ts +106 -106
  145. package/lib/components/ThemeProvider/types.d.ts.map +1 -1
  146. package/lib/components/UI/CategoriesTypeList.d.ts +29 -0
  147. package/lib/components/UI/CategoriesTypeList.d.ts.map +1 -0
  148. package/lib/components/UI/CategoriesTypeList.js +140 -0
  149. package/lib/components/UI/CategoriesTypeList.js.map +1 -0
  150. package/lib/components/UI/LazyLoadingGoogleMarker.d.ts +83 -0
  151. package/lib/components/UI/LazyLoadingGoogleMarker.d.ts.map +1 -0
  152. package/lib/components/UI/LazyLoadingGoogleMarker.js +107 -0
  153. package/lib/components/UI/LazyLoadingGoogleMarker.js.map +1 -0
  154. package/lib/components/UI/Pagination.d.ts +6 -0
  155. package/lib/components/UI/Pagination.d.ts.map +1 -0
  156. package/lib/components/UI/Pagination.js +59 -0
  157. package/lib/components/UI/Pagination.js.map +1 -0
  158. package/lib/components/UI/ParamSearchResultContainer.d.ts +90 -0
  159. package/lib/components/UI/ParamSearchResultContainer.d.ts.map +1 -0
  160. package/lib/components/UI/ParamSearchResultContainer.js +80 -0
  161. package/lib/components/UI/ParamSearchResultContainer.js.map +1 -0
  162. package/lib/components/UI/PropertyCard.d.ts +24 -0
  163. package/lib/components/UI/PropertyCard.d.ts.map +1 -0
  164. package/lib/components/UI/PropertyCard.js +375 -0
  165. package/lib/components/UI/PropertyCard.js.map +1 -0
  166. package/lib/components/UI/PropertyCardList.d.ts +93 -0
  167. package/lib/components/UI/PropertyCardList.d.ts.map +1 -0
  168. package/lib/components/UI/PropertyCardList.js +41 -0
  169. package/lib/components/UI/PropertyCardList.js.map +1 -0
  170. package/lib/components/UI/PropertyCardOnMap.d.ts +10 -0
  171. package/lib/components/UI/PropertyCardOnMap.d.ts.map +1 -0
  172. package/lib/components/UI/PropertyCardOnMap.js +108 -0
  173. package/lib/components/UI/PropertyCardOnMap.js.map +1 -0
  174. package/lib/components/UI/icons/LocationIcon.d.ts +7 -0
  175. package/lib/components/UI/icons/LocationIcon.d.ts.map +1 -0
  176. package/lib/components/UI/icons/LocationIcon.js +18 -0
  177. package/lib/components/UI/icons/LocationIcon.js.map +1 -0
  178. package/lib/components/UI/icons/index.d.ts +2 -0
  179. package/lib/components/UI/icons/index.d.ts.map +1 -0
  180. package/lib/components/UI/index.d.ts +8 -0
  181. package/lib/components/UI/index.d.ts.map +1 -0
  182. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts +1 -1
  183. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts.map +1 -1
  184. package/lib/components/index.d.ts +4 -0
  185. package/lib/components/index.d.ts.map +1 -0
  186. package/lib/components/index.js +1 -0
  187. package/lib/components/index.js.map +1 -0
  188. package/lib/components/typings.d.ts +128 -51
  189. package/lib/components/typings.d.ts.map +1 -1
  190. package/lib/config/constants.d.ts +8 -0
  191. package/lib/config/constants.d.ts.map +1 -0
  192. package/lib/config/constants.js +32 -0
  193. package/lib/config/constants.js.map +1 -0
  194. package/lib/config/env-config.d.ts +3 -0
  195. package/lib/config/env-config.d.ts.map +1 -1
  196. package/lib/config/env-config.js +19 -1
  197. package/lib/config/env-config.js.map +1 -1
  198. package/lib/helpers/DynamicIcon.d.ts +7 -4
  199. package/lib/helpers/DynamicIcon.d.ts.map +1 -1
  200. package/lib/helpers/DynamicIcon.js +51 -0
  201. package/lib/helpers/DynamicIcon.js.map +1 -0
  202. package/lib/hooks/index.d.ts +6 -0
  203. package/lib/hooks/index.d.ts.map +1 -0
  204. package/lib/hooks/use-get-current-lat-long.d.ts +18 -0
  205. package/lib/hooks/use-get-current-lat-long.d.ts.map +1 -0
  206. package/lib/hooks/use-get-current-lat-long.js +29 -0
  207. package/lib/hooks/use-get-current-lat-long.js.map +1 -0
  208. package/lib/hooks/useMediaQuery.d.ts +14 -0
  209. package/lib/hooks/useMediaQuery.d.ts.map +1 -0
  210. package/lib/hooks/useMediaQuery.js +48 -0
  211. package/lib/hooks/useMediaQuery.js.map +1 -0
  212. package/lib/hooks/useScrollThreshold.d.ts +12 -0
  213. package/lib/hooks/useScrollThreshold.d.ts.map +1 -0
  214. package/lib/hooks/useScrollThreshold.js +60 -0
  215. package/lib/hooks/useScrollThreshold.js.map +1 -0
  216. package/lib/hooks/useTailwindTheme.d.ts +34 -0
  217. package/lib/hooks/useTailwindTheme.d.ts.map +1 -0
  218. package/lib/hooks/useTailwindTheme.js +82 -0
  219. package/lib/hooks/useTailwindTheme.js.map +1 -0
  220. package/lib/hooks/useWindowSize.d.ts +6 -0
  221. package/lib/hooks/useWindowSize.d.ts.map +1 -0
  222. package/lib/hooks/useWindowSize.js +20 -0
  223. package/lib/hooks/useWindowSize.js.map +1 -0
  224. package/lib/icons.d.ts +2 -0
  225. package/lib/icons.d.ts.map +1 -1
  226. package/lib/icons.js +3 -4
  227. package/lib/icons.js.map +1 -1
  228. package/lib/index.d.ts +3 -0
  229. package/lib/index.d.ts.map +1 -1
  230. package/lib/index.js +1 -1
  231. package/lib/index.js.map +1 -1
  232. package/lib/machines/settingsMachine.d.ts +4 -1
  233. package/lib/machines/settingsMachine.d.ts.map +1 -1
  234. package/lib/machines/settingsMachine.js +170 -120
  235. package/lib/machines/settingsMachine.js.map +1 -1
  236. package/lib/machines/types.d.ts +124 -17
  237. package/lib/machines/types.d.ts.map +1 -1
  238. package/lib/machines/types.js +5 -0
  239. package/lib/machines/types.js.map +1 -0
  240. package/lib/module.d.ts +0 -1
  241. package/lib/module.d.ts.map +1 -1
  242. package/lib/module.js +14 -15
  243. package/lib/module.js.map +1 -1
  244. package/lib/redux/index.d.ts +2 -0
  245. package/lib/redux/index.d.ts.map +1 -0
  246. package/lib/redux/searchReducer.d.ts +42 -0
  247. package/lib/redux/searchReducer.d.ts.map +1 -0
  248. package/lib/redux/searchReducer.js +64 -0
  249. package/lib/redux/searchReducer.js.map +1 -0
  250. package/lib/tailwindConfig.d.ts +42 -0
  251. package/lib/tailwindConfig.d.ts.map +1 -0
  252. package/lib/tailwindConfig.js +23 -0
  253. package/lib/tailwindConfig.js.map +1 -0
  254. package/lib/utils/menu.d.ts.map +1 -1
  255. package/lib/utils/test-utils.d.ts.map +1 -1
  256. package/lib/utils/utils/index.d.ts.map +1 -1
  257. package/package.json +6 -6
  258. package/lib/components/Layout/GlobalFooter/Copyright.js +0 -8
  259. package/lib/components/Layout/GlobalFooter/Copyright.js.map +0 -1
  260. package/lib/components/Layout/GlobalFooter/Footer.js +0 -22
  261. package/lib/components/Layout/GlobalFooter/Footer.js.map +0 -1
  262. package/lib/components/ThemeProvider/themeRegistry.d.ts +0 -3
  263. package/lib/components/ThemeProvider/themeRegistry.d.ts.map +0 -1
  264. package/lib/components/ThemeProvider/themeRegistry.js +0 -388
  265. package/lib/components/ThemeProvider/themeRegistry.js.map +0 -1
  266. package/lib/components/ThemeProvider/themeUtils.d.ts +0 -26
  267. package/lib/components/ThemeProvider/themeUtils.d.ts.map +0 -1
  268. package/lib/components/ThemeProvider/themeUtils.js +0 -135
  269. package/lib/components/ThemeProvider/themeUtils.js.map +0 -1
  270. package/lib/components/defaultSettings.d.ts +0 -4
  271. package/lib/components/defaultSettings.d.ts.map +0 -1
  272. package/lib/components/defaultSettings.js +0 -14
  273. package/lib/components/defaultSettings.js.map +0 -1
@@ -0,0 +1,59 @@
1
+ import {jsx}from'react/jsx-runtime';import {Flex,Button}from'@chakra-ui/react';const Pagination = ({
2
+ currentPage,
3
+ totalPages,
4
+ onPageChange
5
+ }) => {
6
+ const renderPageNumbers = () => {
7
+ const pageNumbers = [];
8
+ const maxPagesToShow = 4; // Number of pages to show in the middle
9
+ // Helper function to add page button
10
+ const addPageButton = pageNum => jsx(Button, {
11
+ variant: currentPage === pageNum ? 'solid' : 'ghost',
12
+ colorScheme: currentPage === pageNum ? 'blue' : 'gray',
13
+ size: "sm",
14
+ onClick: () => onPageChange(pageNum),
15
+ mx: 2,
16
+ children: pageNum
17
+ }, pageNum);
18
+ // Add first page
19
+ pageNumbers.push(addPageButton(1));
20
+ // Add ellipsis if needed
21
+ if (currentPage > maxPagesToShow) {
22
+ pageNumbers.push(jsx(Button, {
23
+ variant: "ghost",
24
+ colorScheme: "gray",
25
+ size: "sm",
26
+ isDisabled: true,
27
+ children: "..."
28
+ }, "ellipsis-start"));
29
+ }
30
+ // Calculate start and end page numbers
31
+ const startPage = Math.max(2, currentPage - 1);
32
+ const endPage = Math.min(totalPages - 1, currentPage + 2);
33
+ // Add middle page numbers
34
+ for (let i = startPage; i <= endPage; i++) {
35
+ pageNumbers.push(addPageButton(i));
36
+ }
37
+ // Add ellipsis if needed
38
+ if (endPage < totalPages - 1) {
39
+ pageNumbers.push(jsx(Button, {
40
+ variant: "ghost",
41
+ colorScheme: "gray",
42
+ size: "sm",
43
+ isDisabled: true,
44
+ children: "..."
45
+ }, "ellipsis-end"));
46
+ }
47
+ // Add last page
48
+ if (totalPages > 1) {
49
+ pageNumbers.push(addPageButton(totalPages));
50
+ }
51
+ return pageNumbers;
52
+ };
53
+ return jsx(Flex, {
54
+ justify: "center",
55
+ align: "center",
56
+ mt: 8,
57
+ children: renderPageNumbers()
58
+ });
59
+ };export{Pagination};//# sourceMappingURL=Pagination.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Pagination.js","sources":["../../../src/components/UI/Pagination.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"+EAGO,MAAM,UAAU,GAAG,CAAC;aACjB;YACI;AACN,EAAA;;AAGA,EAAA,MAAA,iBAAmB,GAAA,MAAI;UAaN,WAAA,GAAA,EAAA;UACN,cAAK,GAAC,CAAA,CAAA;;AAGjB,IAAA,MAAA,aAAe,GAAG,OAAc,IAAAA,GAAA,CAAE,MAAC,EAAA;aACpB,EAAA,gBACP,UAA6B,OAAA,GAAO,OAAC;iBAI5C,EAAA,WAAA,KAAA,OAAA,GAAA,MAAA,GAAA,MAAA;UAEsC,EAAA,IAAA;AACvC,MAAA,OAAA,EAAe,MAAA,YAAW,CAAA,OAAe,CAAA;AACzC,MAAA,EAAA,EAAA,CAAA;cAE0B,EAAA;AAC1B,KAAA,EAAA,OAAS,CAAA;;eAER,CAAA,IAAA,CAAA,aAAA,CAAA,CAAA,CAAA,CAAA;;AAGD,IAAA,IAAA,WAAW,GAAG,cAAc,EAAE;iBACf,CAAA,IAAA,CAAAA,IAAK,MACX;QAIT,OAAC,EAAA,OAAA;QAED,WAAgB,EAAA,MAAA;AAChB,QAAA,IAAI,EAAU,IAAA;kBACC,EAAA,IAAC;QAChB,QAAC,EAAA;AAED,OAAA,EAAA,iBAAkB,CAAC;AACvB;;AAOJ,IAAE,MAAA,SAAA,GAAA,IAAA,CAAA,GAAA,CAAA,CAAA,EAAA,WAAA,GAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,90 @@
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=ParamSearchResultContainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ParamSearchResultContainer.d.ts","sourceRoot":"","sources":["../../../src/components/UI/ParamSearchResultContainer.tsx"],"names":[],"mappings":"AAAA,OAAc,EAA6C,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAI3F,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAOvC,UAAU,SAAS;IACf,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,GAAG,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAA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,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"}
@@ -0,0 +1,80 @@
1
+ import {jsxs,jsx}from'react/jsx-runtime';import {useEffect}from'react';import {useTranslation}from'react-i18next';import {PropertyCardList}from'./PropertyCardList.js';import {Pagination}from'./Pagination.js';const ParamSearchResultContainer = props => {
2
+ const {
3
+ data,
4
+ error,
5
+ currentPage,
6
+ totalPropertiesCount,
7
+ totalPages,
8
+ onPageChange,
9
+ handleSetFocus,
10
+ handleRemoveFocus,
11
+ handleLike,
12
+ likeBtnLoading,
13
+ propertyTypes,
14
+ extraIcons
15
+ } = props;
16
+ const {
17
+ t
18
+ } = useTranslation(['common']);
19
+ useEffect(() => {
20
+ if (error) {
21
+ // Create a tailwind toast notification
22
+ const toastDiv = document.createElement('div');
23
+ toastDiv.className = 'fixed top-4 right-4 z-50 w-96 rounded-lg bg-red-50 border border-red-400 p-4 shadow-md';
24
+ toastDiv.innerHTML = `
25
+ <div class="flex justify-between">
26
+ <div class="flex">
27
+ <div class="mr-2 text-red-400">
28
+ <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
29
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
30
+ </svg>
31
+ </div>
32
+ <div>
33
+ <p class="font-medium text-red-800">${t('property.something_went_wrong')}</p>
34
+ <p class="text-sm text-red-800">${error.message}</p>
35
+ </div>
36
+ </div>
37
+ <button class="text-red-800 hover:bg-gray-100 rounded-full p-1" onclick="this.parentElement.parentElement.remove()">
38
+ <svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
39
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
40
+ </svg>
41
+ </button>
42
+ </div>
43
+ `;
44
+ document.body.appendChild(toastDiv);
45
+ setTimeout(() => {
46
+ toastDiv.remove();
47
+ }, 5000);
48
+ }
49
+ }, [error]);
50
+ return jsxs("div", {
51
+ className: "flex flex-col self-stretch relative w-full px-3 sm:px-5 lg:px-7",
52
+ children: [jsx("div", {
53
+ className: "text-lg font-semibold",
54
+ children: t('property.results_on')
55
+ }), jsx("div", {
56
+ className: "text-2xl font-bold",
57
+ children: jsx("span", {
58
+ className: "text-lg ml-5",
59
+ children: t('property.results', {
60
+ totalCount: totalPropertiesCount
61
+ })
62
+ })
63
+ }), jsx(PropertyCardList, {
64
+ rooms: data,
65
+ setFocus: handleSetFocus,
66
+ setBlur: handleRemoveFocus,
67
+ handleLike: handleLike,
68
+ likeBtnLoading: likeBtnLoading,
69
+ propertyTypes: propertyTypes,
70
+ extraIcons: extraIcons
71
+ }), totalPages > 1 && jsx("div", {
72
+ className: "mt-8 mb-8",
73
+ children: jsx(Pagination, {
74
+ currentPage: currentPage,
75
+ totalPages: totalPages,
76
+ onPageChange: onPageChange
77
+ })
78
+ })]
79
+ });
80
+ };export{ParamSearchResultContainer};//# sourceMappingURL=ParamSearchResultContainer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ParamSearchResultContainer.js","sources":["../../../src/components/UI/ParamSearchResultContainer.tsx"],"sourcesContent":[null],"names":[],"mappings":"gNA2Ga,MAAA,0BAA0B,GAAG,KAAC,IAAsC;QACvE;IAeN,IAAM;IAEN,KAAS;eACD;wBACuC;cACjC;AACN,IAAA,YAAA;AACI,IAAA,cAAA;qBACK;;;;;;;;;;AAUyC,IAAA,IAAA,KAAA,EAAA;;;;;;;;;;AAUlD;;;gEAIS,EAAA,CAAA,CAAA,+BAAA,CAAA,CAAA;4DACZ,EAAA,KAAA,CAAA,OAAA,CAAA;AACL;;AAwBJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ interface IPropertyType {
3
+ id: string;
4
+ icon: string;
5
+ description: string;
6
+ category: string;
7
+ name: string;
8
+ imageKey: string;
9
+ created_at: string;
10
+ }
11
+ type PropertyCardProps = {
12
+ room: any;
13
+ isSaved: boolean;
14
+ setFocus: (index: number) => void;
15
+ setBlur: (index: number) => void;
16
+ handleLike: (index: number) => void;
17
+ authenticated: boolean;
18
+ likeBtnLoading: boolean;
19
+ propertyTypes: IPropertyType[];
20
+ extraIcons: any[];
21
+ };
22
+ export declare const PropertyCard: ({ room, isSaved, setFocus, setBlur, handleLike, likeBtnLoading, propertyTypes, authenticated, extraIcons, ...props }: PropertyCardProps & React.HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
23
+ export {};
24
+ //# sourceMappingURL=PropertyCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropertyCard.d.ts","sourceRoot":"","sources":["../../../src/components/UI/PropertyCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAezE,UAAU,aAAa;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,KAAK,iBAAiB,GAAG;IACrB,IAAI,EAAE,GAAG,CAAC;IACV,OAAO,EAAE,OAAO,CAAC;IACjB,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,aAAa,EAAE,OAAO,CAAC;IACvB,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,aAAa,EAAE,CAAC;IAC/B,UAAU,EAAE,GAAG,EAAE,CAAC;CACrB,CAAC;AAgEF,eAAO,MAAM,YAAY,GAAI,sHAW1B,iBAAiB,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,4CA0W1D,CAAC"}
@@ -0,0 +1,375 @@
1
+ import {jsx,Fragment,jsxs}from'react/jsx-runtime';import {useMemo,useState,useEffect,useCallback}from'react';import {BsHeart}from'@react-icons/all-files/bs/BsHeart.js';import {BsStarFill}from'@react-icons/all-files/bs/BsStarFill.js';import {FaUserAlt}from'@react-icons/all-files/fa/FaUserAlt.js';import {useTranslation}from'react-i18next';import {WithAuthentication}from'@adminide-stack/user-auth0-browser/lib/index.component.js';import {Splide,SplideSlide}from'@cdmbase/react-splide';import {useLocation}from'@remix-run/react';import {format}from'date-fns';import {startCase}from'lodash-es';import {useTailwindTheme}from'../../hooks/useTailwindTheme.js';import {useGetCurrentLongLat}from'../../hooks/use-get-current-lat-long.js';import {LocationIcon}from'./icons/LocationIcon.js';import {renderDynamicIcon}from'../../helpers/DynamicIcon.js';import {config}from'../../config/env-config.js';const convertHotelName = name => {
2
+ return name.toLowerCase().replace(/[^a-z0-9\s-]/g, '').replace(/[\s-]+/g, '-').replace(/-+/g, '-');
3
+ };
4
+ const generateHref = (room, from, to, adults, children) => {
5
+ switch (room.__typename) {
6
+ case 'AirbnbProperty':
7
+ return `https://www.airbnb.com/rooms/${room.id}?check_in=${from}&check_out=${to}&guests=${adults + children || 1}`;
8
+ case 'BookingProperty':
9
+ return `https://www.booking.com/hotel/${room.address.city.state.country.id}/${convertHotelName(room.name)}.html`;
10
+ case 'PricelineProperty':
11
+ const propertyId = room.metadata?.id_t;
12
+ const cityId = room?.metadata?.city?.id || '';
13
+ const checkInDate = typeof from === 'string' ? from : format(new Date(from), 'yyyyMMdd');
14
+ const checkOutDate = typeof to === 'string' ? to : format(new Date(to), 'yyyyMMdd');
15
+ const roomCount = 1;
16
+ const adultCount = adults;
17
+ return `https://www.priceline.com/relax/at/${propertyId}/from/${checkInDate}/to/${checkOutDate}/rooms/${roomCount}/adults/${adultCount}?cityId=${cityId}&cur=USD&psl=${propertyId}`;
18
+ default:
19
+ return `/property/${room.id}`;
20
+ }
21
+ };
22
+ const DealCard = ({
23
+ site,
24
+ price
25
+ }) => jsxs("div", {
26
+ className: "flex flex-col items-center p-2 rounded-md",
27
+ children: [jsx("span", {
28
+ className: "text-xs font-bold text-gray-700",
29
+ children: site
30
+ }), jsx("span", {
31
+ className: "text-base font-bold text-black",
32
+ children: typeof price === 'number' ? price.toLocaleString() : price
33
+ })]
34
+ });
35
+ function calculateDuration(checkIn, checkOut) {
36
+ const checkInDate = new Date(checkIn);
37
+ const checkOutDate = new Date(checkOut);
38
+ const duration = Math.ceil((checkOutDate.getTime() - checkInDate.getTime()) / (1000 * 60 * 60 * 24));
39
+ return duration;
40
+ }
41
+ function formatDuration(days) {
42
+ if (days < 7) {
43
+ return `${days} ${days === 1 ? 'day' : 'days'}`;
44
+ } else {
45
+ const weeks = Math.floor(days / 7);
46
+ const remainingDays = days % 7;
47
+ let result = `${weeks} ${weeks === 1 ? 'week' : 'weeks'}`;
48
+ if (remainingDays > 0) {
49
+ result += `, ${remainingDays} ${remainingDays === 1 ? 'day' : 'days'}`;
50
+ }
51
+ return result;
52
+ }
53
+ }
54
+ const PropertyCard = ({
55
+ room,
56
+ isSaved,
57
+ setFocus,
58
+ setBlur,
59
+ handleLike,
60
+ likeBtnLoading,
61
+ propertyTypes,
62
+ authenticated,
63
+ extraIcons = [],
64
+ ...props
65
+ }) => {
66
+ const images = useMemo(() => room?.images?.data.map(({
67
+ url
68
+ }) => ({
69
+ src: url
70
+ })), [room]);
71
+ const [didLike, setDidLike] = useState(false);
72
+ useMemo(() => room?.totalReview == 0 ? 0 : room?.totalStar / room?.totalReview || 0, [room]);
73
+ const {
74
+ isDark,
75
+ grayColor
76
+ } = useTailwindTheme();
77
+ const {
78
+ t
79
+ } = useTranslation(['common', 'property-types']);
80
+ const types = useMemo(() => propertyTypes.filter(item => room?.types?.includes(item.id)), [room, propertyTypes]);
81
+ const {
82
+ fetchCurrentLatLong,
83
+ location} = useGetCurrentLongLat();
84
+ const locationUrl = useLocation();
85
+ const params = new URLSearchParams(locationUrl.search);
86
+ const checkIn = params.get('checkIn') || params.get('from') || '';
87
+ const checkOut = params.get('checkOut') || params.get('to') || '';
88
+ const duration = calculateDuration(checkIn, checkOut);
89
+ const formattedDuration = formatDuration(duration);
90
+ useEffect(() => {
91
+ fetchCurrentLatLong();
92
+ }, []);
93
+ const getPriceType = useCallback(room => {
94
+ const type = room.preferences?.property?.pricing?.option?.priceType;
95
+ if (type === 'HOUR') {
96
+ return t('property.hr');
97
+ }
98
+ return t('property.night');
99
+ }, [t]);
100
+ useCallback(address => {
101
+ if (!location || !address) return null;
102
+ if (typeof window !== 'undefined' && window.google && window.google.maps && window.google.maps.LatLng) {
103
+ const point1 = new window.google.maps.LatLng(location.latitude, location.longitude);
104
+ const point2 = new window.google.maps.LatLng(address.latitude_around, address.longitude_around);
105
+ if (window.google.maps.geometry && window.google.maps.geometry.spherical) {
106
+ const distance = window.google.maps.geometry.spherical.computeDistanceBetween(point1, point2);
107
+ const distanceInMiles = distance * 0.000621371;
108
+ return Math.floor(distanceInMiles);
109
+ } else {
110
+ console.error('Google Maps geometry library is not loaded.');
111
+ return null;
112
+ }
113
+ } else {
114
+ return null;
115
+ }
116
+ }, [location]);
117
+ const searchParams = new URLSearchParams(window.location.search);
118
+ const adults = parseInt(searchParams.get('adults') || '0', 10) || 1;
119
+ const children = parseInt(searchParams.get('children') || '0', 10);
120
+ const amenities = room?.preferences?.property?.amenities;
121
+ const displayedIcons = amenities ? Object.entries(amenities).flatMap(([key, value]) => {
122
+ const enabledAmenities = Object.entries(value ?? {}).filter(([key1, value1]) => value1?.enable && value1?.icon);
123
+ const displayedAmenities = enabledAmenities.slice(0, 8);
124
+ return displayedAmenities.length > 0 ? displayedAmenities.map(([key1, value1]) => renderDynamicIcon({
125
+ name: value1.icon,
126
+ style: {
127
+ iconColor: grayColor,
128
+ w: '20px',
129
+ h: '20px'
130
+ }
131
+ })) : [];
132
+ }) : [];
133
+ const LikeButton = () => jsx(Fragment, {
134
+ children: likeBtnLoading ? jsx("div", {
135
+ className: "w-12 h-12 border-4 border-t-blue-500 rounded-full animate-spin border-gray-200"
136
+ }) : jsx("button", {
137
+ className: `w-7 h-9.5 rounded-full flex items-center justify-center ${didLike ? 'bg-blue-400' : isDark ? 'bg-gray-800' : 'bg-white'}`,
138
+ onClick: () => handleLike(room.id),
139
+ "aria-label": "Select as your favourite",
140
+ children: jsx(BsHeart, {
141
+ className: isDark ? 'text-white' : 'text-gray-800'
142
+ })
143
+ })
144
+ });
145
+ WithAuthentication(LikeButton);
146
+ return jsx(Fragment, {
147
+ children: jsxs("div", {
148
+ className: "flex flex-row p-2 relative",
149
+ onMouseEnter: () => setFocus(room.id),
150
+ onMouseLeave: () => setBlur(room.id),
151
+ ...props,
152
+ children: [room.status === 'pending' && jsxs(Fragment, {
153
+ children: [jsx("div", {
154
+ className: "absolute w-full h-full bg-black bg-opacity-60 rounded-2xl z-10"
155
+ }), jsx("div", {
156
+ className: "absolute left-1/2 top-1/2 transform -translate-x-1/2 translate-y-1/2 text-white z-20",
157
+ children: jsx("p", {
158
+ className: "text-lg font-normal",
159
+ children: t('property.coming_soon')
160
+ })
161
+ })]
162
+ }), jsx("div", {
163
+ className: "w-full max-w-[350px] border border-solid border-gray-200 rounded-2xl overflow-hidden shadow-md transition-all duration-300 hover:transform hover:-translate-y-1 hover:shadow-lg",
164
+ children: jsxs("div", {
165
+ className: "w-full h-full flex flex-col justify-between space-y-4",
166
+ children: [jsxs("div", {
167
+ className: "relative w-full h-full rounded-xl",
168
+ children: [jsx("div", {
169
+ className: "absolute top-2 left-2 bg-green-600 text-white px-3 py-1 rounded-md text-sm font-bold shadow-md z-10",
170
+ children: "Breakfast included"
171
+ }), jsxs(Splide, {
172
+ "aria-label": "Property Images",
173
+ options: {
174
+ type: 'slide',
175
+ drag: 'free',
176
+ perPage: 1,
177
+ perMove: 1,
178
+ lazyLoad: 'sequential',
179
+ wheel: true,
180
+ releaseWheel: true,
181
+ pagination: false,
182
+ speed: 800
183
+ },
184
+ children: [jsx("div", {
185
+ className: "absolute top-2.5 right-2.5 z-10",
186
+ children: jsx(LikeButton, {})
187
+ }), images.map((image, i) => jsx(SplideSlide, {
188
+ children: jsx("a", {
189
+ href: generateHref(room, checkIn, checkOut, adults, children),
190
+ target: "_blank",
191
+ rel: "noopener noreferrer",
192
+ children: jsx("div", {
193
+ className: "w-full h-full rounded-xl",
194
+ children: jsx("img", {
195
+ src: image.src,
196
+ className: "rounded-xl h-[250px] w-full max-w-full object-cover cursor-pointer transition-all duration-500 hover:brightness-50",
197
+ loading: "lazy",
198
+ alt: `Property ${i + 1}`
199
+ }, 'image_' + i)
200
+ }, 'sliderImage_' + i)
201
+ })
202
+ }, 'sliderslide_' + i))]
203
+ })]
204
+ }), jsxs("div", {
205
+ className: "w-full px-4 flex flex-col pt-2",
206
+ children: [jsxs("div", {
207
+ className: "flex flex-wrap items-center space-x-2 mb-2",
208
+ children: [jsxs("span", {
209
+ className: "text-sm font-medium",
210
+ children: [t('property.property_type'), ":"]
211
+ }), types?.map((item, index) => jsx("span", {
212
+ className: "bg-gray-100 text-gray-800 text-xs px-2 py-1 rounded-full capitalize",
213
+ children: t(`property-types:${item.description}`)
214
+ }, index))]
215
+ }), jsx("h3", {
216
+ className: "text-lg font-medium mb-2 line-clamp-2",
217
+ children: room?.title
218
+ }), room?.address && room?.address.city && room?.address.city.state && jsxs("div", {
219
+ className: "flex items-center text-sm text-gray-500 mb-2",
220
+ children: [jsx(LocationIcon, {
221
+ w: "16px",
222
+ h: "20px"
223
+ }), jsxs("span", {
224
+ className: "truncate",
225
+ children: [room?.address.city.name + ', ' + room?.address.city.state.name, room?.address?.number ? ' · ' + room?.address?.number : '']
226
+ })]
227
+ }), displayedIcons.length > 0 && jsx("div", {
228
+ className: "flex space-x-3 mt-2 mb-3",
229
+ children: displayedIcons
230
+ }), jsxs("div", {
231
+ className: "flex flex-wrap space-x-2 mt-1 mb-3",
232
+ children: [room?.preferences?.property?.booking?.policy?.instantBookingEnabled && jsx("span", {
233
+ className: "bg-blue-100 text-blue-800 px-2 py-1 rounded-md text-xs capitalize",
234
+ children: t('property.instant_book')
235
+ }), room?.preferences?.property?.booking?.policy?.cancellation && jsx("span", {
236
+ className: "bg-green-100 text-green-800 px-2 py-1 rounded-md text-xs capitalize",
237
+ children: t('property.cancellation_policy')
238
+ })]
239
+ }), jsxs("div", {
240
+ className: "flex items-center mb-4",
241
+ children: [jsx(FaUserAlt, {
242
+ className: "text-gray-500"
243
+ }), jsxs("span", {
244
+ className: "text-sm text-gray-600 ml-2",
245
+ children: [room?.preferences?.property?.boarding?.maxPeople, " ", t('property.guests')]
246
+ })]
247
+ })]
248
+ }), config.ENABLE_PROPERTY_PRICE_COMPARISON && jsx("div", {
249
+ className: "px-4 w-full",
250
+ children: jsxs("div", {
251
+ className: "w-fit flex gap-4",
252
+ children: [jsx("hr", {
253
+ className: "w-full border-t border-gray-200"
254
+ }), jsxs("div", {
255
+ className: "flex flex-row",
256
+ children: [jsx(DealCard, {
257
+ site: "Vio.com",
258
+ price: 41387
259
+ }), jsx(DealCard, {
260
+ site: "Expedia.com",
261
+ price: 46369
262
+ }), jsx(DealCard, {
263
+ site: "More Deals",
264
+ price: 'View all'
265
+ })]
266
+ }), jsx("hr", {
267
+ className: "w-full border-t border-gray-200"
268
+ })]
269
+ })
270
+ }), jsxs("div", {
271
+ className: "flex flex-col sm:flex-row px-4 pb-4 w-full justify-between items-start sm:items-center",
272
+ children: [jsxs("div", {
273
+ className: "flex flex-col space-y-1 mb-3 sm:mb-0 w-full sm:w-auto",
274
+ children: [jsxs("div", {
275
+ className: "flex items-center",
276
+ children: [jsx(BsStarFill, {
277
+ className: "text-yellow-500 w-3 h-3 mr-1"
278
+ }), jsxs("span", {
279
+ className: "text-[0.832rem] font-bold text-gray-600",
280
+ children: [room?.reviewsOverview ? room.reviewsOverview.rating : 0, " (", room.reviewsOverview ? room.reviewsOverview.ratingCount : 0, ' ', t('property.reviews'), ")"]
281
+ })]
282
+ }), room?.__typename && jsxs("span", {
283
+ className: "text-[0.832rem] text-gray-500",
284
+ children: ["Booking through ", startCase(room.__typename.replace('Property', ''))]
285
+ })]
286
+ }), jsxs("div", {
287
+ className: "flex flex-col items-end space-y-2 w-full sm:w-auto",
288
+ children: [jsxs("div", {
289
+ className: "flex flex-col items-end space-y-1 w-full",
290
+ children: [jsxs("span", {
291
+ className: "text-[0.688rem] text-gray-500 text-right w-full",
292
+ children: [formattedDuration, ", ", adults + children, ' ', adults + children === 1 ? 'guest' : 'guests']
293
+ }), jsxs("div", {
294
+ className: "flex flex-col items-end space-y-0 w-full",
295
+ children: [room.preferences?.property?.pricing?.price?.price_breakdown?.details?.summary?.total !== room.preferences?.property?.pricing?.price?.price_breakdown?.details?.summary?.totalBeforeDiscount && jsxs("div", {
296
+ className: "flex items-center group relative",
297
+ children: [jsx("span", {
298
+ className: "text-xs text-gray-500",
299
+ children: "from"
300
+ }), jsx("span", {
301
+ className: "text-sm font-semibold text-gray-500 line-through ml-1 cursor-help hover:text-gray-600 group-hover:text-gray-600",
302
+ children: room.preferences?.property?.pricing?.price?.price_breakdown?.details?.summary?.totalBeforeDiscount
303
+ }), jsx("div", {
304
+ className: "hidden group-hover:block absolute top-0 right-0 transform -translate-y-full mt-2 w-[300px] shadow-lg bg-white rounded-md p-4 z-50",
305
+ children: jsxs("div", {
306
+ className: "flex flex-col space-y-2",
307
+ children: [room.preferences?.property?.pricing?.price?.price_breakdown?.details?.discounts?.items.map((charge, index) => jsxs("div", {
308
+ className: "flex flex-col",
309
+ children: [jsxs("div", {
310
+ className: "flex justify-between",
311
+ children: [jsx("span", {
312
+ className: "mr-4",
313
+ children: charge.name
314
+ }), jsx("span", {
315
+ className: "font-medium",
316
+ children: charge?.amount_rounded
317
+ })]
318
+ }), charge.details && jsx("span", {
319
+ className: "text-sm font-normal",
320
+ children: charge?.details
321
+ })]
322
+ }, index)), jsxs("div", {
323
+ className: "flex justify-between pt-2 border-t border-gray-200 font-bold",
324
+ children: [jsx("span", {
325
+ children: "Total discount"
326
+ }), jsx("span", {
327
+ children: room.preferences?.property?.pricing?.price?.price_breakdown?.details?.summary?.savings
328
+ })]
329
+ })]
330
+ })
331
+ })]
332
+ }), jsxs("div", {
333
+ className: "relative group",
334
+ children: [jsx("span", {
335
+ className: "text-2xl font-semibold text-right underline cursor-help",
336
+ children: room.preferences?.property?.pricing?.price?.price_breakdown?.details?.summary?.total
337
+ }), jsxs("div", {
338
+ className: "hidden group-hover:block absolute bottom-0 right-0 transform translate-y-full mt-2 w-[300px] shadow-lg bg-white rounded-md z-50",
339
+ children: [jsx("div", {
340
+ className: "font-bold border-b border-gray-200 p-3 text-center",
341
+ children: "Price breakdown"
342
+ }), jsx("div", {
343
+ className: "p-4",
344
+ children: jsx("div", {
345
+ className: "flex flex-col space-y-2",
346
+ children: room.preferences?.property?.pricing?.price?.price_breakdown?.details?.charges?.items?.map((item, index) => jsxs("div", {
347
+ className: "flex justify-between",
348
+ children: [jsx("span", {
349
+ children: item.name
350
+ }), jsx("span", {
351
+ children: item?.amount_rounded
352
+ })]
353
+ }, index))
354
+ })
355
+ })]
356
+ })]
357
+ })]
358
+ }), jsxs("span", {
359
+ className: "text-xs text-gray-500 text-right w-full",
360
+ children: [room?.preferences?.property?.pricing?.price?.price_breakdown?.details?.pricing?.basePrice?.perNight, ' ', "per ", getPriceType(room)]
361
+ })]
362
+ }), jsx("button", {
363
+ className: "bg-blue-500 hover:bg-blue-600 text-white font-semibold py-2 px-4 rounded w-full",
364
+ onClick: () => {
365
+ window.open(generateHref(room, checkIn, checkOut, adults, children), '_blank');
366
+ },
367
+ children: "View deal"
368
+ })]
369
+ })]
370
+ })]
371
+ })
372
+ })]
373
+ }, room.id)
374
+ });
375
+ };export{PropertyCard};//# sourceMappingURL=PropertyCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropertyCard.js","sources":["../../../src/components/UI/PropertyCard.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":"03BAqCA,MAAM,gBAAgB,GAAG,IAAC,IAAwB;AAC9C,EAAA,OAAA,IAAW,CAAA,WAAA,EAAA,CAAA,OAAA,CAAA,eAAA,EAAA,EAAA,CAAA,CAAA,OAAA,CAAA,SAAA,EAAA,GAAA,CAAA,CAAA,OAAA,CAAA,KAAA,EAAA,GAAA,CAAA;AACN,CAAA;AACA,MAAA,YAAQ,GAAA,CAAA,IAAA,EAAA,IAAe,EAAE,EAAE,EAAC,MAAA,EAAA,QAAA,KAAA;AAC5B,EAAA,QAAA,IAAA,CAAA,UAAQ;AACR,IAAA,KAAA,gBAAe;AACxB,MAAE,OAAA,CAAA,6BAAA,EAAA,IAAA,CAAA,EAAA,CAAA,UAAA,EAAA,IAAA,CAAA,WAAA,EAAA,EAAA,CAAA,QAAA,EAAA,MAAA,GAAA,QAAA,IAAA,CAAA,CAAA,CAAA;AAEF,IAAA,KAAkB,iBAAQ;AACtB,MAAA,OAAY,CAAA,8BAAc,EAAA,IAAA,CAAA,OAAA,CAAA,IAAA,CAAA,KAAA,CAAA,OAAA,CAAA,EAAA,CAAA,CAAA,EAAA,gBAAA,CAAA,IAAA,CAAA,IAAA,CAAA,CAAA,KAAA,CAAA;AACtB,IAAA,KAAA,mBAAqB;AACjB,MAAA,MAAA,UAAuC,GAAA,IAAA,CAAA,QAAA,EAAA,IAAA;AAG3C,MAAA,MAAA,MAAsB,GAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,EAAA,IAAA,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