@admin-layout/tailwind-travel-pro 12.2.1-alpha.4 → 12.2.3-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.
Files changed (40) hide show
  1. package/lib/components/CardList.js +22 -20
  2. package/lib/components/CardList.js.map +1 -1
  3. package/lib/components/CategoriesTypeList.d.ts +1 -2
  4. package/lib/components/CategoriesTypeList.d.ts.map +1 -1
  5. package/lib/components/CategoriesTypeList.js +51 -46
  6. package/lib/components/CategoriesTypeList.js.map +1 -1
  7. package/lib/components/LazyLoadingGoogleMarker.js +18 -15
  8. package/lib/components/LazyLoadingGoogleMarker.js.map +1 -1
  9. package/lib/components/Pagination.d.ts +1 -2
  10. package/lib/components/Pagination.d.ts.map +1 -1
  11. package/lib/components/Pagination.js +16 -15
  12. package/lib/components/Pagination.js.map +1 -1
  13. package/lib/components/ParamSearchResultContainer.d.ts +1 -1
  14. package/lib/components/ParamSearchResultContainer.d.ts.map +1 -1
  15. package/lib/components/ParamSearchResultContainer.js +26 -21
  16. package/lib/components/ParamSearchResultContainer.js.map +1 -1
  17. package/lib/components/PropertyCard.d.ts +1 -1
  18. package/lib/components/PropertyCard.d.ts.map +1 -1
  19. package/lib/components/PropertyCard.js +263 -198
  20. package/lib/components/PropertyCard.js.map +1 -1
  21. package/lib/components/PropertyCardOnMap.d.ts +1 -2
  22. package/lib/components/PropertyCardOnMap.d.ts.map +1 -1
  23. package/lib/components/PropertyCardOnMap.js +85 -67
  24. package/lib/components/PropertyCardOnMap.js.map +1 -1
  25. package/lib/components/VehicleCard/PricePopover.js +58 -39
  26. package/lib/components/VehicleCard/PricePopover.js.map +1 -1
  27. package/lib/components/VehicleCard/VehicleFeature.js +17 -13
  28. package/lib/components/VehicleCard/VehicleFeature.js.map +1 -1
  29. package/lib/components/VehicleCard.js +134 -106
  30. package/lib/components/VehicleCard.js.map +1 -1
  31. package/lib/components/VehicleCardList.js +19 -18
  32. package/lib/components/VehicleCardList.js.map +1 -1
  33. package/lib/components/VehicleParamSearchResultContainer.d.ts +2 -2
  34. package/lib/components/VehicleParamSearchResultContainer.d.ts.map +1 -1
  35. package/lib/components/icons/LocationIcon.d.ts +1 -2
  36. package/lib/components/icons/LocationIcon.d.ts.map +1 -1
  37. package/lib/components/icons/LocationIcon.js +8 -7
  38. package/lib/components/icons/LocationIcon.js.map +1 -1
  39. package/lib/index.js +1 -1
  40. package/package.json +5 -5
@@ -1,13 +1,16 @@
1
- import React,{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 {useLocation}from'@remix-run/react';import {Splide,SplideSlide}from'@cdmbase/react-splide';import'@splidejs/react-splide/css';import {startCase}from'lodash-es';import {renderDynamicIcon}from'@admin-layout/tailwind-design-pro/lib/helpers/DynamicIcon.js';import {useTailwindTheme}from'@admin-layout/tailwind-design-pro/lib/hooks/useTailwindTheme.js';import {config}from'../config/env-config.js';import {useGetCurrentLongLat}from'../hooks/use-get-current-lat-long.js';import {LocationIcon}from'./icons/LocationIcon.js';const DealCard = ({
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 {useLocation}from'@remix-run/react';import {Splide,SplideSlide}from'@cdmbase/react-splide';import'@splidejs/react-splide/css';import {startCase}from'lodash-es';import {renderDynamicIcon}from'@admin-layout/tailwind-design-pro/lib/helpers/DynamicIcon.js';import {useTailwindTheme}from'@admin-layout/tailwind-design-pro/lib/hooks/useTailwindTheme.js';import {config}from'../config/env-config.js';import {useGetCurrentLongLat}from'../hooks/use-get-current-lat-long.js';import {LocationIcon}from'./icons/LocationIcon.js';const DealCard = ({
2
2
  site,
3
3
  price
4
- }) => React.createElement("div", {
5
- className: "flex flex-col items-center p-2 rounded-themed"
6
- }, React.createElement("span", {
7
- className: "text-xs font-bold text-muted-foreground"
8
- }, site), React.createElement("span", {
9
- className: "text-base font-bold text-foreground"
10
- }, typeof price === 'number' ? price.toLocaleString() : price));
4
+ }) => jsxs("div", {
5
+ className: "flex flex-col items-center p-2 rounded-themed",
6
+ children: [jsx("span", {
7
+ className: "text-xs font-bold text-muted-foreground",
8
+ children: site
9
+ }), jsx("span", {
10
+ className: "text-base font-bold text-foreground",
11
+ children: typeof price === 'number' ? price.toLocaleString() : price
12
+ })]
13
+ });
11
14
  function calculateDuration(checkIn, checkOut) {
12
15
  const checkInDate = new Date(checkIn);
13
16
  const checkOutDate = new Date(checkOut);
@@ -117,194 +120,256 @@ const PropertyCard = ({
117
120
  }
118
121
  })) : [];
119
122
  }) : [];
120
- const LikeButton = () => React.createElement(React.Fragment, null, likeBtnLoading ? React.createElement("div", {
121
- className: "w-12 h-12 border-4 border-t-primary rounded-full animate-spin border-muted"
122
- }) : React.createElement("button", {
123
- className: `w-10 h-10 rounded-full flex items-center justify-center ${didLike ? 'bg-primary' : 'bg-background'}`,
124
- onClick: () => handleLike(item.id),
125
- "aria-label": "Select as your favourite"
126
- }, React.createElement(BsHeart, {
127
- className: didLike ? 'text-primary-foreground' : 'text-muted-foreground',
128
- fontSize: 20
129
- })));
130
- return React.createElement(React.Fragment, null, React.createElement("div", {
131
- className: "flex flex-row p-2 relative w-[370px] max-w-[370px] h-full",
132
- key: item.id,
133
- onMouseEnter: () => setFocus(item.id),
134
- onMouseLeave: () => setBlur(item.id),
135
- ...props,
136
- style: {
137
- width: '370px',
138
- maxWidth: '370px'
139
- }
140
- }, item?.status === 'pending' && React.createElement(React.Fragment, null, React.createElement("div", {
141
- className: "absolute w-full h-full bg-background/60 rounded-2xl"
142
- }), React.createElement("div", {
143
- className: "absolute left-1/2 top-1/2 transform -translate-x-1/2 translate-y-1/2 text-foreground"
144
- }, React.createElement("p", {
145
- className: "text-lg font-normal"
146
- }, t('property.coming_soon')))), React.createElement("div", {
147
- className: "w-full max-w-[100%] border border-solid border-border rounded-2xl shadow-themed-md transition-all duration-300 hover:transform hover:-translate-y-1 hover:shadow-themed-lg themed-card h-full flex flex-col"
148
- }, React.createElement("div", {
149
- className: "w-full flex flex-col flex-1"
150
- }, React.createElement("div", {
151
- className: "relative w-full rounded-xl overflow-hidden"
152
- }, React.createElement("div", {
153
- className: "flex justify-between items-center"
154
- }, React.createElement("div", {
155
- className: "z-10 absolute top-2 left-2 bg-success text-success-foreground px-3 py-1 rounded-themed text-sm font-bold shadow-themed-md"
156
- }, "Breakfast included"), React.createElement("div", {
157
- className: "absolute top-2.5 right-2.5 z-10"
158
- }, React.createElement(LikeButton, null))), React.createElement(Splide, {
159
- "aria-label": "Property Images",
160
- options: {
161
- type: 'slide',
162
- drag: 'free',
163
- perPage: 1,
164
- perMove: 1,
165
- lazyLoad: 'sequential',
166
- wheel: true,
167
- releaseWheel: true,
168
- pagination: false,
169
- speed: 800
170
- }
171
- }, images.map((image, i) => React.createElement(SplideSlide, {
172
- key: 'sliderslide_' + i
173
- }, React.createElement("a", {
174
- href: "#",
175
- onClick: handleRedirect,
176
- rel: "noopener noreferrer"
177
- }, React.createElement("div", {
178
- className: "w-full h-full rounded-xl",
179
- key: 'sliderImage_' + i
180
- }, React.createElement("img", {
181
- key: 'image_' + i,
182
- src: image.src,
183
- className: "rounded-xl h-[250px] w-full max-w-full object-cover cursor-pointer transition-all duration-500 hover:brightness-50",
184
- loading: "lazy",
185
- alt: `Property ${i + 1}`
186
- }))))))), React.createElement("div", {
187
- className: "flex flex-col flex-1 px-4 pt-4"
188
- }, React.createElement("div", {
189
- className: "flex flex-wrap items-center space-x-2 mb-3"
190
- }, React.createElement("span", {
191
- className: "text-sm font-medium text-foreground"
192
- }, t('property.property_type'), ":"), types?.map((item, index) => React.createElement("span", {
193
- key: index,
194
- className: "bg-muted text-muted-foreground text-xs px-2 py-1 rounded-themed capitalize"
195
- }, t(`property-types:${item.description}`)))), React.createElement("h3", {
196
- className: "text-lg font-medium mb-3 line-clamp-2 text-foreground min-h-[3.5rem]"
197
- }, item?.title), item?.address && item?.address.city && item?.address.city.state && React.createElement("div", {
198
- className: "flex items-center text-sm text-muted-foreground mb-3"
199
- }, React.createElement(LocationIcon, {
200
- w: "16px",
201
- h: "20px"
202
- }), React.createElement("span", {
203
- className: "truncate"
204
- }, item?.address.city.name + ', ' + item?.address.city.state.name, item?.address?.number ? ' · ' + item?.address?.number : '')), displayedIcons.length > 0 && React.createElement("div", {
205
- className: "flex space-x-3 mb-3"
206
- }, displayedIcons), React.createElement("div", {
207
- className: "flex flex-wrap space-x-2 mb-3"
208
- }, item?.preferences?.property?.booking?.policy?.instantBookingEnabled && React.createElement("span", {
209
- className: "bg-primary/10 text-primary px-2 py-1 rounded-themed text-xs capitalize"
210
- }, t('property.instant_book')), item?.preferences?.property?.booking?.policy?.cancellation && React.createElement("span", {
211
- className: "bg-success/10 text-success px-2 py-1 rounded-themed text-xs capitalize"
212
- }, t('property.cancellation_policy'))), React.createElement("div", {
213
- className: "flex items-center mb-4"
214
- }, React.createElement(FaUserAlt, {
215
- className: "text-muted-foreground"
216
- }), React.createElement("span", {
217
- className: "text-sm text-muted-foreground ml-2"
218
- }, item?.preferences?.property?.boarding?.maxPeople, " ", t('property.guests')))), config.ENABLE_PROPERTY_PRICE_COMPARISON && React.createElement("div", {
219
- className: "px-4 w-full"
220
- }, React.createElement("div", {
221
- className: "w-fit flex gap-4"
222
- }, React.createElement("hr", {
223
- className: "w-full border-t border-border"
224
- }), React.createElement("div", {
225
- className: "flex flex-row"
226
- }, React.createElement(DealCard, {
227
- site: "Vio.com",
228
- price: 41387
229
- }), React.createElement(DealCard, {
230
- site: "Expedia.com",
231
- price: 46369
232
- }), React.createElement(DealCard, {
233
- site: "More Deals",
234
- price: 'View all'
235
- })), React.createElement("hr", {
236
- className: "w-full border-t border-border"
237
- }))), React.createElement("div", {
238
- className: "flex flex-col sm:flex-row px-4 pb-4 w-full justify-between items-start sm:items-center mt-auto"
239
- }, React.createElement("div", {
240
- className: "flex flex-col space-y-1 mb-3 sm:mb-0 w-full sm:w-auto"
241
- }, React.createElement("div", {
242
- className: "flex items-center"
243
- }, React.createElement(BsStarFill, {
244
- className: "text-warning w-3 h-3 mr-1"
245
- }), React.createElement("span", {
246
- className: "text-[0.832rem] font-bold text-muted-foreground"
247
- }, item?.reviewsOverview ? item.reviewsOverview.rating : 0, " (", item.reviewsOverview ? item.reviewsOverview.ratingCount : 0, ' ', t('property.reviews'), ")")), item?.__typename && React.createElement("span", {
248
- className: "text-[0.832rem] text-muted-foreground"
249
- }, "Booking through ", startCase(item.__typename.replace('Property', '')))), React.createElement("div", {
250
- className: "flex flex-col items-end space-y-2 w-full sm:w-auto"
251
- }, React.createElement("div", {
252
- className: "flex flex-col items-end space-y-1 w-full"
253
- }, React.createElement("span", {
254
- className: "text-[0.688rem] text-muted-foreground text-right w-full"
255
- }, formattedDuration, ", ", adults + children, ' ', adults + children === 1 ? 'guest' : 'guests'), React.createElement("div", {
256
- className: "flex flex-col items-end space-y-0 w-full"
257
- }, item.preferences?.property?.pricing?.price?.price_breakdown?.details?.summary?.total !== item.preferences?.property?.pricing?.price?.price_breakdown?.details?.summary?.totalBeforeDiscount && React.createElement("div", {
258
- className: "flex items-center group relative"
259
- }, React.createElement("span", {
260
- className: "text-xs text-muted-foreground"
261
- }, "from"), React.createElement("span", {
262
- className: "text-sm font-semibold text-muted-foreground line-through ml-1 cursor-help hover:text-foreground group-hover:text-foreground"
263
- }, item.preferences?.property?.pricing?.price?.price_breakdown?.details?.summary?.totalBeforeDiscount), React.createElement("div", {
264
- className: "hidden group-hover:block absolute top-0 right-0 transform -translate-y-full mt-2 w-[300px] shadow-themed-lg bg-card rounded-themed p-4 z-50"
265
- }, React.createElement("div", {
266
- className: "flex flex-col space-y-2"
267
- }, item.preferences?.property?.pricing?.price?.price_breakdown?.details?.discounts?.items.map((charge, index) => React.createElement("div", {
268
- key: index,
269
- className: "flex flex-col"
270
- }, React.createElement("div", {
271
- className: "flex justify-between"
272
- }, React.createElement("span", {
273
- className: "mr-4 text-foreground"
274
- }, charge.name), React.createElement("span", {
275
- className: "font-medium text-foreground"
276
- }, charge?.amount_rounded)), charge.details && React.createElement("span", {
277
- className: "text-sm font-normal text-muted-foreground"
278
- }, charge?.details))), React.createElement("div", {
279
- className: "flex justify-between pt-2 border-t border-border font-bold"
280
- }, React.createElement("span", {
281
- className: "text-foreground"
282
- }, "Total discount"), React.createElement("span", {
283
- className: "text-foreground"
284
- }, item.preferences?.property?.pricing?.price?.price_breakdown?.details?.summary?.savings))))), React.createElement("div", {
285
- className: "relative group"
286
- }, React.createElement("span", {
287
- className: "text-2xl font-semibold text-right underline cursor-help text-foreground"
288
- }, item.preferences?.property?.pricing?.price?.price_breakdown?.details?.summary?.total), React.createElement("div", {
289
- className: "hidden group-hover:block absolute top-0 right-0 transform -translate-y-full mt-2 w-[300px] shadow-themed-lg bg-card rounded-themed z-50"
290
- }, React.createElement("div", {
291
- className: "font-bold border-b border-border p-3 text-center text-foreground"
292
- }, "Price breakdown"), React.createElement("div", {
293
- className: "p-4"
294
- }, React.createElement("div", {
295
- className: "flex flex-col space-y-2"
296
- }, item.preferences?.property?.pricing?.price?.price_breakdown?.details?.charges?.items?.map((item, index) => React.createElement("div", {
297
- key: index,
298
- className: "flex justify-between"
299
- }, React.createElement("span", {
300
- className: "text-foreground"
301
- }, item.name), React.createElement("span", {
302
- className: "text-foreground"
303
- }, item?.amount_rounded)))))))), React.createElement("span", {
304
- className: "text-xs text-muted-foreground text-right w-full"
305
- }, item?.preferences?.property?.pricing?.price?.price_breakdown?.details?.pricing?.basePrice?.perNight, ' ', "per ", getPriceType(item))), React.createElement("button", {
306
- className: `themed-button p-2 w-full ${isRedirecting ? 'opacity-75 cursor-wait' : ''}`,
307
- onClick: handleRedirect,
308
- disabled: isRedirecting
309
- }, isRedirecting ? 'Loading...' : 'View deal')))))));
123
+ const LikeButton = () => jsx(Fragment, {
124
+ children: likeBtnLoading ? jsx("div", {
125
+ className: "w-12 h-12 border-4 border-t-primary rounded-full animate-spin border-muted"
126
+ }) : jsx("button", {
127
+ className: `w-10 h-10 rounded-full flex items-center justify-center ${didLike ? 'bg-primary' : 'bg-background'}`,
128
+ onClick: () => handleLike(item.id),
129
+ "aria-label": "Select as your favourite",
130
+ children: jsx(BsHeart, {
131
+ className: didLike ? 'text-primary-foreground' : 'text-muted-foreground',
132
+ fontSize: 20
133
+ })
134
+ })
135
+ });
136
+ return jsx(Fragment, {
137
+ children: jsxs("div", {
138
+ className: "flex flex-row p-2 relative w-[370px] max-w-[370px] h-full",
139
+ onMouseEnter: () => setFocus(item.id),
140
+ onMouseLeave: () => setBlur(item.id),
141
+ ...props,
142
+ style: {
143
+ width: '370px',
144
+ maxWidth: '370px'
145
+ },
146
+ children: [item?.status === 'pending' && jsxs(Fragment, {
147
+ children: [jsx("div", {
148
+ className: "absolute w-full h-full bg-background/60 rounded-2xl"
149
+ }), jsx("div", {
150
+ className: "absolute left-1/2 top-1/2 transform -translate-x-1/2 translate-y-1/2 text-foreground",
151
+ children: jsx("p", {
152
+ className: "text-lg font-normal",
153
+ children: t('property.coming_soon')
154
+ })
155
+ })]
156
+ }), jsx("div", {
157
+ className: "w-full max-w-[100%] border border-solid border-border rounded-2xl shadow-themed-md transition-all duration-300 hover:transform hover:-translate-y-1 hover:shadow-themed-lg themed-card h-full flex flex-col",
158
+ children: jsxs("div", {
159
+ className: "w-full flex flex-col flex-1",
160
+ children: [jsxs("div", {
161
+ className: "relative w-full rounded-xl overflow-hidden",
162
+ children: [jsxs("div", {
163
+ className: "flex justify-between items-center",
164
+ children: [jsx("div", {
165
+ className: "z-10 absolute top-2 left-2 bg-success text-success-foreground px-3 py-1 rounded-themed text-sm font-bold shadow-themed-md",
166
+ children: "Breakfast included"
167
+ }), jsx("div", {
168
+ className: "absolute top-2.5 right-2.5 z-10",
169
+ children: jsx(LikeButton, {})
170
+ })]
171
+ }), jsx(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: images.map((image, i) => jsx(SplideSlide, {
185
+ children: jsx("a", {
186
+ href: "#",
187
+ onClick: handleRedirect,
188
+ rel: "noopener noreferrer",
189
+ children: jsx("div", {
190
+ className: "w-full h-full rounded-xl",
191
+ children: jsx("img", {
192
+ src: image.src,
193
+ className: "rounded-xl h-[250px] w-full max-w-full object-cover cursor-pointer transition-all duration-500 hover:brightness-50",
194
+ loading: "lazy",
195
+ alt: `Property ${i + 1}`
196
+ }, 'image_' + i)
197
+ }, 'sliderImage_' + i)
198
+ })
199
+ }, 'sliderslide_' + i))
200
+ })]
201
+ }), jsxs("div", {
202
+ className: "flex flex-col flex-1 px-4 pt-4",
203
+ children: [jsxs("div", {
204
+ className: "flex flex-wrap items-center space-x-2 mb-3",
205
+ children: [jsxs("span", {
206
+ className: "text-sm font-medium text-foreground",
207
+ children: [t('property.property_type'), ":"]
208
+ }), types?.map((item, index) => jsx("span", {
209
+ className: "bg-muted text-muted-foreground text-xs px-2 py-1 rounded-themed capitalize",
210
+ children: t(`property-types:${item.description}`)
211
+ }, index))]
212
+ }), jsx("h3", {
213
+ className: "text-lg font-medium mb-3 line-clamp-2 text-foreground min-h-[3.5rem]",
214
+ children: item?.title
215
+ }), item?.address && item?.address.city && item?.address.city.state && jsxs("div", {
216
+ className: "flex items-center text-sm text-muted-foreground mb-3",
217
+ children: [jsx(LocationIcon, {
218
+ w: "16px",
219
+ h: "20px"
220
+ }), jsxs("span", {
221
+ className: "truncate",
222
+ children: [item?.address.city.name + ', ' + item?.address.city.state.name, item?.address?.number ? ' · ' + item?.address?.number : '']
223
+ })]
224
+ }), displayedIcons.length > 0 && jsx("div", {
225
+ className: "flex space-x-3 mb-3",
226
+ children: displayedIcons
227
+ }), jsxs("div", {
228
+ className: "flex flex-wrap space-x-2 mb-3",
229
+ children: [item?.preferences?.property?.booking?.policy?.instantBookingEnabled && jsx("span", {
230
+ className: "bg-primary/10 text-primary px-2 py-1 rounded-themed text-xs capitalize",
231
+ children: t('property.instant_book')
232
+ }), item?.preferences?.property?.booking?.policy?.cancellation && jsx("span", {
233
+ className: "bg-success/10 text-success px-2 py-1 rounded-themed text-xs capitalize",
234
+ children: t('property.cancellation_policy')
235
+ })]
236
+ }), jsxs("div", {
237
+ className: "flex items-center mb-4",
238
+ children: [jsx(FaUserAlt, {
239
+ className: "text-muted-foreground"
240
+ }), jsxs("span", {
241
+ className: "text-sm text-muted-foreground ml-2",
242
+ children: [item?.preferences?.property?.boarding?.maxPeople, " ", t('property.guests')]
243
+ })]
244
+ })]
245
+ }), config.ENABLE_PROPERTY_PRICE_COMPARISON && jsx("div", {
246
+ className: "px-4 w-full",
247
+ children: jsxs("div", {
248
+ className: "w-fit flex gap-4",
249
+ children: [jsx("hr", {
250
+ className: "w-full border-t border-border"
251
+ }), jsxs("div", {
252
+ className: "flex flex-row",
253
+ children: [jsx(DealCard, {
254
+ site: "Vio.com",
255
+ price: 41387
256
+ }), jsx(DealCard, {
257
+ site: "Expedia.com",
258
+ price: 46369
259
+ }), jsx(DealCard, {
260
+ site: "More Deals",
261
+ price: 'View all'
262
+ })]
263
+ }), jsx("hr", {
264
+ className: "w-full border-t border-border"
265
+ })]
266
+ })
267
+ }), jsxs("div", {
268
+ className: "flex flex-col sm:flex-row px-4 pb-4 w-full justify-between items-start sm:items-center mt-auto",
269
+ children: [jsxs("div", {
270
+ className: "flex flex-col space-y-1 mb-3 sm:mb-0 w-full sm:w-auto",
271
+ children: [jsxs("div", {
272
+ className: "flex items-center",
273
+ children: [jsx(BsStarFill, {
274
+ className: "text-warning w-3 h-3 mr-1"
275
+ }), jsxs("span", {
276
+ className: "text-[0.832rem] font-bold text-muted-foreground",
277
+ children: [item?.reviewsOverview ? item.reviewsOverview.rating : 0, " (", item.reviewsOverview ? item.reviewsOverview.ratingCount : 0, ' ', t('property.reviews'), ")"]
278
+ })]
279
+ }), item?.__typename && jsxs("span", {
280
+ className: "text-[0.832rem] text-muted-foreground",
281
+ children: ["Booking through ", startCase(item.__typename.replace('Property', ''))]
282
+ })]
283
+ }), jsxs("div", {
284
+ className: "flex flex-col items-end space-y-2 w-full sm:w-auto",
285
+ children: [jsxs("div", {
286
+ className: "flex flex-col items-end space-y-1 w-full",
287
+ children: [jsxs("span", {
288
+ className: "text-[0.688rem] text-muted-foreground text-right w-full",
289
+ children: [formattedDuration, ", ", adults + children, ' ', adults + children === 1 ? 'guest' : 'guests']
290
+ }), jsxs("div", {
291
+ className: "flex flex-col items-end space-y-0 w-full",
292
+ children: [item.preferences?.property?.pricing?.price?.price_breakdown?.details?.summary?.total !== item.preferences?.property?.pricing?.price?.price_breakdown?.details?.summary?.totalBeforeDiscount && jsxs("div", {
293
+ className: "flex items-center group relative",
294
+ children: [jsx("span", {
295
+ className: "text-xs text-muted-foreground",
296
+ children: "from"
297
+ }), jsx("span", {
298
+ className: "text-sm font-semibold text-muted-foreground line-through ml-1 cursor-help hover:text-foreground group-hover:text-foreground",
299
+ children: item.preferences?.property?.pricing?.price?.price_breakdown?.details?.summary?.totalBeforeDiscount
300
+ }), jsx("div", {
301
+ className: "hidden group-hover:block absolute top-0 right-0 transform -translate-y-full mt-2 w-[300px] shadow-themed-lg bg-card rounded-themed p-4 z-50",
302
+ children: jsxs("div", {
303
+ className: "flex flex-col space-y-2",
304
+ children: [item.preferences?.property?.pricing?.price?.price_breakdown?.details?.discounts?.items.map((charge, index) => jsxs("div", {
305
+ className: "flex flex-col",
306
+ children: [jsxs("div", {
307
+ className: "flex justify-between",
308
+ children: [jsx("span", {
309
+ className: "mr-4 text-foreground",
310
+ children: charge.name
311
+ }), jsx("span", {
312
+ className: "font-medium text-foreground",
313
+ children: charge?.amount_rounded
314
+ })]
315
+ }), charge.details && jsx("span", {
316
+ className: "text-sm font-normal text-muted-foreground",
317
+ children: charge?.details
318
+ })]
319
+ }, index)), jsxs("div", {
320
+ className: "flex justify-between pt-2 border-t border-border font-bold",
321
+ children: [jsx("span", {
322
+ className: "text-foreground",
323
+ children: "Total discount"
324
+ }), jsx("span", {
325
+ className: "text-foreground",
326
+ children: item.preferences?.property?.pricing?.price?.price_breakdown?.details?.summary?.savings
327
+ })]
328
+ })]
329
+ })
330
+ })]
331
+ }), jsxs("div", {
332
+ className: "relative group",
333
+ children: [jsx("span", {
334
+ className: "text-2xl font-semibold text-right underline cursor-help text-foreground",
335
+ children: item.preferences?.property?.pricing?.price?.price_breakdown?.details?.summary?.total
336
+ }), jsxs("div", {
337
+ className: "hidden group-hover:block absolute top-0 right-0 transform -translate-y-full mt-2 w-[300px] shadow-themed-lg bg-card rounded-themed z-50",
338
+ children: [jsx("div", {
339
+ className: "font-bold border-b border-border p-3 text-center text-foreground",
340
+ children: "Price breakdown"
341
+ }), jsx("div", {
342
+ className: "p-4",
343
+ children: jsx("div", {
344
+ className: "flex flex-col space-y-2",
345
+ children: item.preferences?.property?.pricing?.price?.price_breakdown?.details?.charges?.items?.map((item, index) => jsxs("div", {
346
+ className: "flex justify-between",
347
+ children: [jsx("span", {
348
+ className: "text-foreground",
349
+ children: item.name
350
+ }), jsx("span", {
351
+ className: "text-foreground",
352
+ children: item?.amount_rounded
353
+ })]
354
+ }, index))
355
+ })
356
+ })]
357
+ })]
358
+ })]
359
+ }), jsxs("span", {
360
+ className: "text-xs text-muted-foreground text-right w-full",
361
+ children: [item?.preferences?.property?.pricing?.price?.price_breakdown?.details?.pricing?.basePrice?.perNight, ' ', "per ", getPriceType(item)]
362
+ })]
363
+ }), jsx("button", {
364
+ className: `themed-button p-2 w-full ${isRedirecting ? 'opacity-75 cursor-wait' : ''}`,
365
+ onClick: handleRedirect,
366
+ disabled: isRedirecting,
367
+ children: isRedirecting ? 'Loading...' : 'View deal'
368
+ })]
369
+ })]
370
+ })]
371
+ })
372
+ })]
373
+ }, item.id)
374
+ });
310
375
  };export{PropertyCard};//# sourceMappingURL=PropertyCard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PropertyCard.js","sources":["../../src/components/PropertyCard.tsx"],"sourcesContent":[null],"names":[],"mappings":"kzBAyCS,MAAA,QAAA,GAAQ,CAAA;AACR,EAAA,IAAA;AACA,EAAA;AACT,CAAC,KAAC,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAEF,EAAA,SAAM,EAAA;AAEE,CAAA,EAAA,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA;WACA,EAAA;AAMR,CAAA,EAAA,IAAA,CAAA,EAAS,KAAA,CAAA,aAAkB,CAAA,MAAiB,EAAA;AACxC,EAAA;AACA,CAAA,EAAA,OAAM,kBAAe,QAAS,CAAA,cAAU,EAAA,GAAA,KAAA,CAAA,CAAA;AACxC,SAAA,iBAAsB,CAAA,OAAM,EAAA,QAAY,EAAC;AACzC,EAAA,MAAA,WAAe,GAAC,IAAA,IAAA,CAAA,OAAA,CAAA;AACpB,EAAC,MAAA,YAAA,GAAA,IAAA,IAAA,CAAA,QAAA,CAAA;AAED,EAAA,MAAA,QAAS,GAAA,IAAc,CAAC,IAAY,CAAA,CAAA,YAAA,CAAA,OAAA,EAAA,GAAA,WAAA,CAAA,OAAA,EAAA,KAAA,IAAA,GAAA,EAAA,GAAA,EAAA,GAAA,EAAA,CAAA,CAAA;AAChC,EAAA,OAAI,QAAQ;AACR;SACH,cAAA,CAAA,IAAA,EAAA;UAAO,GAAA,CAAA,EAAA;WACJ,CAAA,EAAM,IAAA,CAAK,CAAA,EAAG,IAAI,KAAC,CAAK,GAAC,KAAO,GAAG,MAAA,CAAA,CAAA;AACnC,EAAA,CAAA,MAAA;AACA,IAAA,MAAA,QAAU,IAAG,CAAA,KAAG,CAAK,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
@@ -1,10 +1,9 @@
1
- import React from 'react';
2
1
  type PropertyCardOnMapProps = {
3
2
  room: any;
4
3
  isSaved: boolean;
5
4
  carouselOptions?: any;
6
5
  className?: string;
7
6
  };
8
- export declare const PropertyCardOnMap: ({ room, isSaved, carouselOptions, className, ...props }: PropertyCardOnMapProps) => React.JSX.Element;
7
+ export declare const PropertyCardOnMap: ({ room, isSaved, carouselOptions, className, ...props }: PropertyCardOnMapProps) => import("react/jsx-runtime").JSX.Element;
9
8
  export {};
10
9
  //# sourceMappingURL=PropertyCardOnMap.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PropertyCardOnMap.d.ts","sourceRoot":"","sources":["../../src/components/PropertyCardOnMap.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAkB5D,KAAK,sBAAsB,GAAG;IAC1B,IAAI,EAAE,GAAG,CAAC;IACV,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,yDAM/B,sBAAsB,sBAiHxB,CAAC"}
1
+ {"version":3,"file":"PropertyCardOnMap.d.ts","sourceRoot":"","sources":["../../src/components/PropertyCardOnMap.tsx"],"names":[],"mappings":"AAkBA,KAAK,sBAAsB,GAAG;IAC1B,IAAI,EAAE,GAAG,CAAC;IACV,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,yDAM/B,sBAAsB,4CAiHxB,CAAC"}