mautourco-components 0.2.30 → 0.2.31

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 (326) hide show
  1. package/dist/components/atoms/Avatar/Avatar.js +1 -12
  2. package/dist/components/atoms/Button/Button.js +1 -12
  3. package/dist/components/atoms/Checkbox/Checkbox.js +2 -13
  4. package/dist/components/atoms/Chip/Chip.js +1 -12
  5. package/dist/components/atoms/Icon/icons/AccomIcon.js +1 -12
  6. package/dist/components/atoms/Icon/icons/AirIcon.js +1 -12
  7. package/dist/components/atoms/Icon/icons/ArrivalIcon.js +1 -12
  8. package/dist/components/atoms/Icon/icons/ArrowDownOutlineIcon.js +1 -12
  9. package/dist/components/atoms/Icon/icons/ArrowRightOutlineIcon.js +1 -12
  10. package/dist/components/atoms/Icon/icons/BadgeAlertIcon.js +1 -12
  11. package/dist/components/atoms/Icon/icons/BikeIcon.js +1 -12
  12. package/dist/components/atoms/Icon/icons/BookingIcon.js +1 -12
  13. package/dist/components/atoms/Icon/icons/Building2OutlineIcon.js +1 -12
  14. package/dist/components/atoms/Icon/icons/BuildingIcon.js +1 -12
  15. package/dist/components/atoms/Icon/icons/BusIcon.js +1 -12
  16. package/dist/components/atoms/Icon/icons/Calendar2Icon.js +1 -12
  17. package/dist/components/atoms/Icon/icons/CalendarIcon.js +1 -12
  18. package/dist/components/atoms/Icon/icons/CalendarOutlineIcon.js +1 -12
  19. package/dist/components/atoms/Icon/icons/CalendarRangeOutlineIcon.js +1 -12
  20. package/dist/components/atoms/Icon/icons/CarFront.js +1 -12
  21. package/dist/components/atoms/Icon/icons/CarIcon.js +1 -12
  22. package/dist/components/atoms/Icon/icons/CatamaranIcon.js +1 -12
  23. package/dist/components/atoms/Icon/icons/Check.js +1 -12
  24. package/dist/components/atoms/Icon/icons/CheckCircleIcon.js +1 -12
  25. package/dist/components/atoms/Icon/icons/Chevron.js +1 -1
  26. package/dist/components/atoms/Icon/icons/ClockIcon.js +1 -12
  27. package/dist/components/atoms/Icon/icons/Close.js +1 -12
  28. package/dist/components/atoms/Icon/icons/CloseCircleIcon.js +1 -12
  29. package/dist/components/atoms/Icon/icons/DeleteIcon.js +1 -12
  30. package/dist/components/atoms/Icon/icons/DepartureIcon.js +1 -12
  31. package/dist/components/atoms/Icon/icons/EyeIcon.js +1 -12
  32. package/dist/components/atoms/Icon/icons/FacebookIcon.js +1 -12
  33. package/dist/components/atoms/Icon/icons/HomeIcon.js +1 -12
  34. package/dist/components/atoms/Icon/icons/Info2Icon.d.ts +4 -0
  35. package/dist/components/atoms/Icon/icons/Info2Icon.js +25 -0
  36. package/dist/components/atoms/Icon/icons/InfoIcon.js +1 -12
  37. package/dist/components/atoms/Icon/icons/Land.js +1 -12
  38. package/dist/components/atoms/Icon/icons/LineIcon.js +1 -12
  39. package/dist/components/atoms/Icon/icons/LinkedInIcon.js +1 -12
  40. package/dist/components/atoms/Icon/icons/LuggageIcon.js +1 -12
  41. package/dist/components/atoms/Icon/icons/MapIcon.js +1 -12
  42. package/dist/components/atoms/Icon/icons/MapPinIcon.js +1 -12
  43. package/dist/components/atoms/Icon/icons/MautoucoLogo.d.ts +0 -1
  44. package/dist/components/atoms/Icon/icons/MautoucoLogo.js +1 -12
  45. package/dist/components/atoms/Icon/icons/MenuIcon.d.ts +0 -1
  46. package/dist/components/atoms/Icon/icons/MenuIcon.js +1 -12
  47. package/dist/components/atoms/Icon/icons/MicroIcon.js +1 -12
  48. package/dist/components/atoms/Icon/icons/MinusIcon.js +1 -12
  49. package/dist/components/atoms/Icon/icons/MoreIcon.js +1 -12
  50. package/dist/components/atoms/Icon/icons/MoreVerticalIcon.js +1 -12
  51. package/dist/components/atoms/Icon/icons/NightIcon.js +1 -12
  52. package/dist/components/atoms/Icon/icons/PlaneIcon.js +1 -12
  53. package/dist/components/atoms/Icon/icons/PlaneLandingOutlineIcon.js +1 -12
  54. package/dist/components/atoms/Icon/icons/PlaneTakeoffOutlineIcon.js +1 -12
  55. package/dist/components/atoms/Icon/icons/PlusCircleIcon.js +1 -12
  56. package/dist/components/atoms/Icon/icons/PlusIcon.js +1 -12
  57. package/dist/components/atoms/Icon/icons/QuotationIcon.js +1 -12
  58. package/dist/components/atoms/Icon/icons/SeaIcon.js +1 -12
  59. package/dist/components/atoms/Icon/icons/Search.js +1 -12
  60. package/dist/components/atoms/Icon/icons/Settings.js +1 -12
  61. package/dist/components/atoms/Icon/icons/ShipIcon.js +1 -12
  62. package/dist/components/atoms/Icon/icons/StopWatchIcon.js +1 -12
  63. package/dist/components/atoms/Icon/icons/StrollerIcon.js +1 -12
  64. package/dist/components/atoms/Icon/icons/TwitterIcon.js +1 -12
  65. package/dist/components/atoms/Icon/icons/User.js +1 -12
  66. package/dist/components/atoms/Icon/icons/UserIcon.js +1 -12
  67. package/dist/components/atoms/Icon/icons/Utensils.js +1 -12
  68. package/dist/components/atoms/Icon/icons/WalletIcon.js +1 -12
  69. package/dist/components/atoms/Icon/icons/Youtube.js +1 -12
  70. package/dist/components/atoms/Icon/icons/registry.d.ts +1 -0
  71. package/dist/components/atoms/Icon/icons/registry.js +2 -0
  72. package/dist/components/atoms/Illustration/illustrations.js +4 -4
  73. package/dist/components/atoms/Inputs/DropdownInput/DropdownInput.js +1 -12
  74. package/dist/components/atoms/Inputs/Input/Input.d.ts +2 -1
  75. package/dist/components/atoms/Inputs/Input/Input.js +2 -13
  76. package/dist/components/atoms/Link/Link.js +4 -15
  77. package/dist/components/atoms/RatingStar/RatingStar.js +2 -13
  78. package/dist/components/atoms/SegmentedButton/SegmentedButton.js +3 -14
  79. package/dist/components/atoms/SelectedValue/SelectedValue.js +1 -12
  80. package/dist/components/atoms/Slider/Slider.js +1 -12
  81. package/dist/components/atoms/Spinner/Spinner.js +1 -12
  82. package/dist/components/atoms/Tab/Tab.js +1 -1
  83. package/dist/components/atoms/Typography/Typography.js +2 -13
  84. package/dist/components/molecules/AccomodationDocket/AccomodationDocket.js +3 -14
  85. package/dist/components/molecules/ActionDropdown/ActionDropdown.d.ts +0 -1
  86. package/dist/components/molecules/ActionDropdown/ActionDropdown.js +5 -16
  87. package/dist/components/molecules/AddItemButton/AddItemButton.js +1 -12
  88. package/dist/components/molecules/BookingPax/BookingPaxAccom.js +3 -14
  89. package/dist/components/molecules/BookingPax/BookingPaxClient/BookingPaxClient.d.ts +0 -1
  90. package/dist/components/molecules/BookingPax/BookingPaxClient/BookingPaxClient.js +5 -5
  91. package/dist/components/molecules/BookingPax/BookingPaxExcursion.js +1 -12
  92. package/dist/components/molecules/BookingPax/BookingPaxHeader.js +2 -2
  93. package/dist/components/molecules/BookingPax/BookingPaxLayout/BookingPaxLayout.d.ts +0 -1
  94. package/dist/components/molecules/BookingPax/BookingPaxLayout/BookingPaxLayout.js +1 -12
  95. package/dist/components/molecules/BookingPax/BookingPaxRemarks.js +1 -12
  96. package/dist/components/molecules/BookingPax/BookingPaxTransfer.js +1 -12
  97. package/dist/components/molecules/BookingResume/BookingResumeLayout/BookingResumeLayout.js +1 -12
  98. package/dist/components/molecules/BookingResume/ResumeAccom/ResumeAccom.js +1 -12
  99. package/dist/components/molecules/BookingResume/ResumeExcursion/ResumeExcursion.js +1 -12
  100. package/dist/components/molecules/BookingResume/ResumeOtherService.js +1 -12
  101. package/dist/components/molecules/BookingResume/ResumeTransfer.js +1 -12
  102. package/dist/components/molecules/Breadcrumbs/Breadcrumbs.js +1 -12
  103. package/dist/components/molecules/Calendar/CalendarInput.js +2 -13
  104. package/dist/components/molecules/Calendar/DateTime.d.ts +9 -9
  105. package/dist/components/molecules/Calendar/DateTime.js +3 -3
  106. package/dist/components/molecules/Calendar/TimePicker.js +1 -12
  107. package/dist/components/molecules/DateDisplay/DateDisplay.js +2 -13
  108. package/dist/components/molecules/DetailsInfo/DetailsAction.js +2 -13
  109. package/dist/components/molecules/DetailsInfo/DetailsAgency/DetailsAgency.js +1 -12
  110. package/dist/components/molecules/DetailsInfo/DetailsClient/DetailsClient.js +1 -12
  111. package/dist/components/molecules/DetailsInfo/DetailsFile.js +1 -12
  112. package/dist/components/molecules/DetailsInfo/DetailsInfo.d.ts +0 -1
  113. package/dist/components/molecules/DialogContentPolicy/CancellationLayout/CancellationLayout.js +1 -12
  114. package/dist/components/molecules/DialogContentPolicy/DialogCancellationAccom.d.ts +0 -1
  115. package/dist/components/molecules/DialogContentPolicy/DialogCancellationAccom.js +1 -12
  116. package/dist/components/molecules/DialogContentPolicy/DialogCancellationExcursion.d.ts +0 -1
  117. package/dist/components/molecules/DialogContentPolicy/DialogCancellationExcursion.js +1 -12
  118. package/dist/components/molecules/DialogContentPolicy/DialogCancellationList.d.ts +3 -3
  119. package/dist/components/molecules/DialogContentPolicy/DialogCancellationList.js +2 -2
  120. package/dist/components/molecules/DialogContentPolicy/DialogContentPolicy.js +1 -12
  121. package/dist/components/molecules/DocketPrices/DocketPrices.js +1 -12
  122. package/dist/components/molecules/ExcursionDocket/ExcursionDocket.js +1 -12
  123. package/dist/components/molecules/FeatureRow/FeatureRow.js +1 -12
  124. package/dist/components/molecules/FromTo/FromTo.d.ts +0 -1
  125. package/dist/components/molecules/FromTo/FromTo.js +1 -12
  126. package/dist/components/molecules/GlobalAmenities/GlobalAmenities.js +1 -12
  127. package/dist/components/molecules/LocationDropdown/LocationDropdown.js +6 -17
  128. package/dist/components/molecules/MultiSelectDropdown/MultiSelectDropdown.d.ts +1 -0
  129. package/dist/components/molecules/MultiSelectDropdown/MultiSelectDropdown.js +23 -28
  130. package/dist/components/molecules/OtherServiceDocket/OtherServiceDocket.js +1 -12
  131. package/dist/components/molecules/Pagination/Pagination.js +4 -15
  132. package/dist/components/molecules/PaxChips/PaxChips.d.ts +11 -0
  133. package/dist/components/molecules/PaxChips/PaxChips.js +9 -0
  134. package/dist/components/molecules/PaxDisplay/PaxDisplay.d.ts +0 -1
  135. package/dist/components/molecules/PaxDisplay/PaxDisplay.js +5 -16
  136. package/dist/components/molecules/PriceDisplay/PriceDisplay.js +1 -12
  137. package/dist/components/molecules/RatingTab/RatingTab.js +1 -12
  138. package/dist/components/molecules/SectionTitle/SectionTitle.js +1 -12
  139. package/dist/components/molecules/ServiceInfo/ServiceInfo.js +2 -13
  140. package/dist/components/molecules/ServiceLanguages/ServiceLanguages.js +1 -12
  141. package/dist/components/molecules/ServiceSelector/ServiceSelector.js +4 -15
  142. package/dist/components/molecules/ServiceTitle/ServiceTitle.js +1 -12
  143. package/dist/components/molecules/Stepper/Stepper.js +1 -12
  144. package/dist/components/molecules/StepperTimeline/StepperTimeline.js +6 -17
  145. package/dist/components/molecules/TabGroup/TabGroup.js +1 -12
  146. package/dist/components/molecules/TableServiceItem/DetailsCol.js +1 -12
  147. package/dist/components/molecules/TableServiceItem/ItemCol.d.ts +0 -1
  148. package/dist/components/molecules/TableServiceItem/ItemCol.js +2 -13
  149. package/dist/components/molecules/TableServiceItem/RowOtherServices.js +1 -12
  150. package/dist/components/molecules/TableServiceItem/RowTransfer.js +1 -12
  151. package/dist/components/molecules/TableServiceItem/index.d.ts +0 -1
  152. package/dist/components/molecules/TextWithBorderBottom/TextWithBorderBottom.js +1 -1
  153. package/dist/components/molecules/TextWithIcon/TextWithIcon.d.ts +0 -1
  154. package/dist/components/molecules/TextWithIcon/TextWithIcon.js +1 -12
  155. package/dist/components/molecules/TimelineItem/ServiceAccommodation.js +1 -12
  156. package/dist/components/molecules/TimelineItem/ServiceExcursion.js +1 -12
  157. package/dist/components/molecules/TimelineItem/ServiceTransfer.js +1 -12
  158. package/dist/components/molecules/TimelineItem/TimelineHeader.js +1 -12
  159. package/dist/components/molecules/TimelineItem/TimelineItem.d.ts +0 -1
  160. package/dist/components/molecules/TimelineItem/TimelineItem.js +1 -12
  161. package/dist/components/molecules/Toast/Toast.css +2107 -0
  162. package/dist/components/molecules/Toast/Toast.d.ts +2 -2
  163. package/dist/components/molecules/Toast/Toast.js +1 -12
  164. package/dist/components/molecules/TooltipDisplay/TooltipDisplay.js +1 -12
  165. package/dist/components/molecules/TransferDocket/TransferDocket.js +2 -13
  166. package/dist/components/molecules/UserCard/UserCard.js +3 -14
  167. package/dist/components/organisms/Booking/BookingDocket/BookingDocket.d.ts +0 -1
  168. package/dist/components/organisms/Booking/BookingDocket/BookingDocket.js +1 -1
  169. package/dist/components/organisms/Booking/BookingHeader.js +1 -12
  170. package/dist/components/organisms/Booking/BookingStep/BookingStep.js +1 -12
  171. package/dist/components/organisms/CarBookingCard/CarBookingCard.js +2 -2
  172. package/dist/components/organisms/CarBookingCard/CarBookingCardSkeleton.js +1 -12
  173. package/dist/components/organisms/CardContainer/CardContainer.js +1 -12
  174. package/dist/components/organisms/DateTimePicker/DateTimePicker.js +1 -12
  175. package/dist/components/organisms/Dialog/Dialog.js +3 -15
  176. package/dist/components/organisms/DialogBookingAddItem/AddItemNewService.d.ts +16 -0
  177. package/dist/components/organisms/DialogBookingAddItem/AddItemNewService.js +44 -0
  178. package/dist/components/organisms/DialogBookingAddItem/AddItemSelector.d.ts +8 -0
  179. package/dist/components/organisms/DialogBookingAddItem/AddItemSelector.js +12 -0
  180. package/dist/components/organisms/DialogBookingAddItem/DialogBookingAddItem.d.ts +17 -0
  181. package/dist/components/organisms/DialogBookingAddItem/DialogBookingAddItem.js +55 -0
  182. package/dist/components/organisms/DialogBookingAddItem/index.d.ts +3 -0
  183. package/dist/components/organisms/DialogBookingAddItem/index.js +3 -0
  184. package/dist/components/organisms/DialogBookingConfirm/BookingCancellationPolicy.d.ts +2 -2
  185. package/dist/components/organisms/DialogBookingConfirm/BookingCancellationPolicy.js +1 -12
  186. package/dist/components/organisms/DialogBookingConfirm/BookingMailSent.js +1 -12
  187. package/dist/components/organisms/DialogBookingConfirm/BookingReference.js +1 -12
  188. package/dist/components/organisms/DialogBookingConfirm/BookingSuccess.js +1 -12
  189. package/dist/components/organisms/DialogBookingConfirm/DialogBookingConfirm.d.ts +4 -0
  190. package/dist/components/organisms/DialogBookingConfirm/DialogBookingConfirm.js +2 -13
  191. package/dist/components/organisms/DialogCancelService/CancelBooking/CancelBooking.css +2117 -0
  192. package/dist/components/organisms/DialogCancelService/CancelBooking/CancelBooking.d.ts +16 -0
  193. package/dist/components/organisms/DialogCancelService/CancelBooking/CancelBooking.js +28 -0
  194. package/dist/components/organisms/{CancelService → DialogCancelService}/CancelPolicy.d.ts +2 -2
  195. package/dist/components/organisms/DialogCancelService/CancelPolicy.js +8 -0
  196. package/dist/components/organisms/DialogCancelService/ConfirmDelete/ConfirmDelete.js +24 -0
  197. package/dist/components/organisms/{CancelService/CancelService.d.ts → DialogCancelService/DialogCancelService.d.ts} +4 -3
  198. package/dist/components/organisms/DialogCancelService/DialogCancelService.js +14 -0
  199. package/dist/components/organisms/DialogCancelService/FromList.js +18 -0
  200. package/dist/components/organisms/DialogCancelService/index.d.ts +5 -0
  201. package/dist/components/organisms/DialogCancelService/index.js +1 -0
  202. package/dist/components/organisms/DialogComparison/DialogComparison.css +2116 -0
  203. package/dist/components/organisms/DialogComparison/DialogComparison.d.ts +24 -0
  204. package/dist/components/organisms/DialogComparison/DialogComparison.js +69 -0
  205. package/dist/components/organisms/DialogDeleteConfirm/DialogDeleteConfirm.d.ts +14 -0
  206. package/dist/components/organisms/DialogDeleteConfirm/DialogDeleteConfirm.js +11 -0
  207. package/dist/components/organisms/DialogSendingMail/DialogSendingMail.d.ts +11 -0
  208. package/dist/components/organisms/DialogSendingMail/DialogSendingMail.js +8 -0
  209. package/dist/components/organisms/DialogSendingMail/DialogSendingMailContent.d.ts +15 -0
  210. package/dist/components/organisms/DialogSendingMail/DialogSendingMailContent.js +49 -0
  211. package/dist/components/organisms/DialogSendingMail/index.d.ts +4 -0
  212. package/dist/components/organisms/DialogSendingMail/index.js +2 -0
  213. package/dist/components/organisms/DialogSendingMail/sending-mail-schema.d.ts +7 -0
  214. package/dist/components/organisms/DialogSendingMail/sending-mail-schema.js +16 -0
  215. package/dist/components/organisms/Docket/Docket.js +8 -19
  216. package/dist/components/organisms/Footer/Footer.js +3 -14
  217. package/dist/components/organisms/MultipleQuotationDocket/MultipleQuotationDocket.js +2 -13
  218. package/dist/components/organisms/PaxSelector/PaxSelector.js +22 -22
  219. package/dist/components/organisms/QuoteHeader/QuoteHeader.js +2 -13
  220. package/dist/components/organisms/RoundTrip/RoundTrip.js +1 -1
  221. package/dist/components/organisms/SearchBarTransfer/SearchBarTransfer.js +5 -5
  222. package/dist/components/organisms/TabCancellationPolicy/CancellationAccom.js +1 -12
  223. package/dist/components/organisms/TabCancellationPolicy/CancellationExcursion.js +1 -12
  224. package/dist/components/organisms/TabCancellationPolicy/CancellationHeader.d.ts +0 -1
  225. package/dist/components/organisms/TabCancellationPolicy/CancellationTransfer.js +1 -12
  226. package/dist/components/organisms/TabCancellationPolicy/HeaderAccom.js +1 -12
  227. package/dist/components/organisms/TabCancellationPolicy/HeaderExcursion/HeaderTransfer.js +1 -12
  228. package/dist/components/organisms/TabCancellationPolicy/PolicyAccom/PolicyAccom.js +1 -12
  229. package/dist/components/organisms/TabCancellationPolicy/PolicyExcursion.js +1 -12
  230. package/dist/components/organisms/TabCancellationPolicy/PolicyTransfer.js +1 -12
  231. package/dist/components/organisms/TabCancellationPolicy/TabCancellationPolicy.d.ts +0 -1
  232. package/dist/components/organisms/TabCancellationPolicy/TabCancellationPolicyLayout/TabCancellationPolicyLayout.js +1 -12
  233. package/dist/components/organisms/TabServiceDetails/Accommodation.js +1 -1
  234. package/dist/components/organisms/TabServiceDetails/DetailContentTransfer.js +1 -12
  235. package/dist/components/organisms/TabServiceDetails/DetailsContentAccom.js +2 -2
  236. package/dist/components/organisms/TabServiceDetails/DetailsContentExcursion.js +1 -12
  237. package/dist/components/organisms/TabServiceDetails/Excursion.js +1 -1
  238. package/dist/components/organisms/TabServiceDetails/TabServiceDetails.d.ts +0 -1
  239. package/dist/components/organisms/TabServiceDetails/TabServiceDetailsLayout/TabServiceDetailsLayout.js +1 -12
  240. package/dist/components/organisms/TabServiceDetails/Transfer.js +1 -1
  241. package/dist/components/organisms/Table/Table.css +48 -32
  242. package/dist/components/organisms/Table/Table.d.ts +4 -1
  243. package/dist/components/organisms/Table/Table.js +19 -16
  244. package/dist/components/organisms/Table/TableCell.d.ts +1 -1
  245. package/dist/components/organisms/Table/TableCell.js +1 -12
  246. package/dist/components/organisms/Table/columns/booking-cancel-service-columns.js +15 -31
  247. package/dist/components/organisms/Table/columns/booking-columns.js +7 -22
  248. package/dist/components/organisms/Table/columns/comparison-columns.d.ts +3 -0
  249. package/dist/components/organisms/Table/columns/comparison-columns.js +97 -0
  250. package/dist/components/organisms/Table/columns/detail-resume-columns.js +16 -31
  251. package/dist/components/organisms/Table/columns/index.d.ts +11 -7
  252. package/dist/components/organisms/Table/columns/index.js +2 -0
  253. package/dist/components/organisms/Table/columns/quotation-columns.d.ts +4 -1
  254. package/dist/components/organisms/Table/columns/quotation-columns.js +10 -19
  255. package/dist/components/organisms/Timeline/Timeline.js +1 -1
  256. package/dist/components/organisms/TopNavigation/DesktopNav.d.ts +0 -1
  257. package/dist/components/organisms/TopNavigation/DesktopNav.js +5 -16
  258. package/dist/components/organisms/TopNavigation/MobileNav.js +9 -20
  259. package/dist/components/organisms/TransferLine/TransferLine.js +1 -1
  260. package/dist/components/ui/button.d.ts +1 -1
  261. package/dist/components/ui/calendar.js +2 -2
  262. package/dist/components/ui/form.d.ts +24 -0
  263. package/dist/components/ui/form.js +79 -0
  264. package/dist/components/ui/label.d.ts +4 -0
  265. package/dist/components/ui/label.js +30 -0
  266. package/dist/hooks/useBookingPax.d.ts +1 -1
  267. package/dist/index.d.ts +26 -15
  268. package/dist/index.js +10 -2
  269. package/dist/lib/price-formatter.d.ts +1 -0
  270. package/dist/lib/price-formatter.js +13 -0
  271. package/dist/lib/shared-constant.d.ts +1 -0
  272. package/dist/lib/shared-constant.js +1 -0
  273. package/dist/lib/utils.d.ts +1 -2
  274. package/dist/lib/utils.js +1 -1
  275. package/dist/styles/tokens/tokens.d.ts +464 -464
  276. package/package.json +7 -3
  277. package/src/components/atoms/Icon/icons/Info2Icon.tsx +42 -0
  278. package/src/components/atoms/Icon/icons/registry.tsx +2 -0
  279. package/src/components/atoms/Inputs/Input/Input.tsx +4 -2
  280. package/src/components/molecules/Calendar/DateTime.tsx +6 -4
  281. package/src/components/molecules/DialogContentPolicy/DialogCancellationList.tsx +6 -6
  282. package/src/components/molecules/DialogContentPolicy/DialogContentPolicy.tsx +1 -1
  283. package/src/components/molecules/MultiSelectDropdown/MultiSelectDropdown.tsx +117 -82
  284. package/src/components/molecules/PaxChips/PaxChips.tsx +30 -0
  285. package/src/components/molecules/TextWithIcon/TextWithIcon.tsx +2 -2
  286. package/src/components/molecules/Toast/Toast.css +27 -0
  287. package/src/components/molecules/Toast/Toast.tsx +9 -9
  288. package/src/components/organisms/Dialog/Dialog.tsx +85 -64
  289. package/src/components/organisms/{BookingAddItem → DialogBookingAddItem}/AddItemNewService.tsx +17 -2
  290. package/src/components/organisms/{BookingAddItem/BookingAddItem.tsx → DialogBookingAddItem/DialogBookingAddItem.tsx} +6 -6
  291. package/src/components/organisms/{BookingAddItem → DialogBookingAddItem}/index.ts +1 -1
  292. package/src/components/organisms/DialogBookingConfirm/BookingCancellationPolicy.tsx +2 -2
  293. package/src/components/organisms/DialogBookingConfirm/DialogBookingConfirm.tsx +14 -2
  294. package/src/components/organisms/DialogCancelService/CancelBooking/CancelBooking.css +24 -0
  295. package/src/components/organisms/DialogCancelService/CancelBooking/CancelBooking.tsx +98 -0
  296. package/src/components/organisms/{CancelService → DialogCancelService}/CancelPolicy.tsx +4 -4
  297. package/src/components/organisms/{CancelService/CancelService.tsx → DialogCancelService/DialogCancelService.tsx} +7 -5
  298. package/src/components/organisms/DialogCancelService/index.ts +6 -0
  299. package/src/components/organisms/DialogComparison/DialogComparison.css +23 -0
  300. package/src/components/organisms/DialogComparison/DialogComparison.tsx +157 -0
  301. package/src/components/organisms/DialogDeleteConfirm/DialogDeleteConfirm.tsx +57 -0
  302. package/src/components/organisms/DialogSendingMail/DialogSendingMail.tsx +27 -0
  303. package/src/components/organisms/DialogSendingMail/DialogSendingMailContent.tsx +115 -0
  304. package/src/components/organisms/DialogSendingMail/index.ts +5 -0
  305. package/src/components/organisms/DialogSendingMail/sending-mail-schema.ts +19 -0
  306. package/src/components/organisms/Table/Table.css +48 -32
  307. package/src/components/organisms/Table/Table.tsx +24 -5
  308. package/src/components/organisms/Table/columns/booking-cancel-service-columns.tsx +16 -32
  309. package/src/components/organisms/Table/columns/booking-columns.tsx +2 -19
  310. package/src/components/organisms/Table/columns/comparison-columns.tsx +140 -0
  311. package/src/components/organisms/Table/columns/detail-resume-columns.tsx +17 -33
  312. package/src/components/organisms/Table/columns/index.ts +2 -0
  313. package/src/components/organisms/Table/columns/quotation-columns.tsx +17 -9
  314. package/src/components/ui/form.tsx +160 -0
  315. package/src/components/ui/label.tsx +22 -0
  316. package/dist/components/organisms/CancelService/CancelPolicy.js +0 -19
  317. package/dist/components/organisms/CancelService/CancelService.js +0 -23
  318. package/dist/components/organisms/CancelService/ConfirmDelete/ConfirmDelete.js +0 -35
  319. package/dist/components/organisms/CancelService/FromList.js +0 -29
  320. /package/dist/components/organisms/{CancelService → DialogCancelService}/ConfirmDelete/ConfirmDelete.css +0 -0
  321. /package/dist/components/organisms/{CancelService → DialogCancelService}/ConfirmDelete/ConfirmDelete.d.ts +0 -0
  322. /package/dist/components/organisms/{CancelService → DialogCancelService}/FromList.d.ts +0 -0
  323. /package/src/components/organisms/{BookingAddItem → DialogBookingAddItem}/AddItemSelector.tsx +0 -0
  324. /package/src/components/organisms/{CancelService → DialogCancelService}/ConfirmDelete/ConfirmDelete.css +0 -0
  325. /package/src/components/organisms/{CancelService → DialogCancelService}/ConfirmDelete/ConfirmDelete.tsx +0 -0
  326. /package/src/components/organisms/{CancelService → DialogCancelService}/FromList.tsx +0 -0
@@ -119,13 +119,13 @@ var AgeSelector = function (_a) {
119
119
  };
120
120
  var ageOptions = ageRange.map(function (age) { return age.toString(); });
121
121
  var displayValue = inputValue || undefined;
122
- return (_jsxs("div", __assign({ className: "pax-selector__age-selector", ref: containerRef }, { children: [_jsxs(Text, __assign({ size: "sm", variant: "regular", className: "pax-selector__age-label" }, { children: [label, required && _jsx("span", __assign({ className: "pax-selector__age-required" }, { children: " *" }))] })), _jsxs("div", __assign({ className: "dropdown-container pax-selector__age-dropdown-container" }, { children: [_jsxs("div", __assign({ className: "dropdown-input ".concat(isOpen ? 'dropdown-input--open pax-selector__age-dropdown-input--open' : '', " ").concat(value !== undefined ? 'dropdown-input--selected' : 'dropdown-input--default', " pax-selector__age-dropdown-input") }, { children: [_jsx("input", { ref: inputRef, type: "text", inputMode: "numeric", className: "dropdown-input__text pax-selector__age-input-text", value: inputValue, onChange: handleInputChange, onBlur: handleInputBlur, onKeyDown: handleInputKeyDown, onFocus: function () { return setIsOpen(false); }, placeholder: "--", "aria-label": "".concat(label, " age"), style: {
122
+ return (_jsxs("div", { className: "pax-selector__age-selector", ref: containerRef, children: [_jsxs(Text, { size: "sm", variant: "regular", className: "pax-selector__age-label", children: [label, required && _jsx("span", { className: "pax-selector__age-required", children: " *" })] }), _jsxs("div", { className: "dropdown-container pax-selector__age-dropdown-container", children: [_jsxs("div", { className: "dropdown-input ".concat(isOpen ? 'dropdown-input--open pax-selector__age-dropdown-input--open' : '', " ").concat(value !== undefined ? 'dropdown-input--selected' : 'dropdown-input--default', " pax-selector__age-dropdown-input"), children: [_jsx("input", { ref: inputRef, type: "text", inputMode: "numeric", className: "dropdown-input__text pax-selector__age-input-text", value: inputValue, onChange: handleInputChange, onBlur: handleInputBlur, onKeyDown: handleInputKeyDown, onFocus: function () { return setIsOpen(false); }, placeholder: "--", "aria-label": "".concat(label, " age"), style: {
123
123
  background: 'transparent',
124
124
  border: 'none',
125
125
  outline: 'none',
126
126
  width: '100%',
127
127
  cursor: 'text',
128
- } }), _jsx("button", __assign({ type: "button", className: "pax-selector__age-dropdown-btn", onClick: function (e) {
128
+ } }), _jsx("button", { type: "button", className: "pax-selector__age-dropdown-btn", onClick: function (e) {
129
129
  e.preventDefault();
130
130
  e.stopPropagation();
131
131
  handleDropdownToggle();
@@ -136,7 +136,7 @@ var AgeSelector = function (_a) {
136
136
  padding: 0,
137
137
  display: 'flex',
138
138
  alignItems: 'center',
139
- } }, { children: _jsx(Icon, { name: "chevron-down", size: "sm", className: "dropdown-input__icon dropdown-input__icon--chevron" }) }))] })), isOpen && (_jsx("div", __assign({ className: "dropdown-menu", role: "listbox" }, { children: ageOptions.map(function (age) { return (_jsx("div", __assign({ className: "dropdown-option ".concat((value === null || value === void 0 ? void 0 : value.toString()) === age ? 'dropdown-option--selected' : ''), onClick: function () { return handleSelect(age); }, role: "option", "aria-selected": (value === null || value === void 0 ? void 0 : value.toString()) === age }, { children: age }), age)); }) })))] }))] })));
139
+ }, children: _jsx(Icon, { name: "chevron-down", size: "sm", className: "dropdown-input__icon dropdown-input__icon--chevron" }) })] }), isOpen && (_jsx("div", { className: "dropdown-menu", role: "listbox", children: ageOptions.map(function (age) { return (_jsx("div", { className: "dropdown-option ".concat((value === null || value === void 0 ? void 0 : value.toString()) === age ? 'dropdown-option--selected' : ''), onClick: function () { return handleSelect(age); }, role: "option", "aria-selected": (value === null || value === void 0 ? void 0 : value.toString()) === age, children: age }, age)); }) }))] })] }));
140
140
  };
141
141
  var StepperRow = function (_a) {
142
142
  var label = _a.label, value = _a.value, _b = _a.min, min = _b === void 0 ? 0 : _b, _c = _a.max, max = _c === void 0 ? 99 : _c, onChange = _a.onChange;
@@ -150,7 +150,7 @@ var StepperRow = function (_a) {
150
150
  onChange(value + 1);
151
151
  }
152
152
  };
153
- return (_jsxs("div", __assign({ className: "pax-selector__stepper" }, { children: [_jsx(Text, __assign({ size: "base", variant: "bold", color: "default", className: "pax-selector__stepper-label" }, { children: label })), _jsxs("div", __assign({ className: "pax-selector__stepper-controls" }, { children: [_jsx("button", __assign({ type: "button", className: "pax-selector__stepper-btn", onClick: handleDecrement, disabled: value <= min, "aria-label": "Decrease ".concat(label) }, { children: _jsx(Icon, { name: "minus", size: "sm" }) })), _jsx("span", __assign({ className: "pax-selector__stepper-count" }, { children: value })), _jsx("button", __assign({ type: "button", className: "pax-selector__stepper-btn", onClick: handleIncrement, disabled: value >= max, "aria-label": "Increase ".concat(label) }, { children: _jsx(Icon, { name: "plus", size: "sm" }) }))] }))] })));
153
+ return (_jsxs("div", { className: "pax-selector__stepper", children: [_jsx(Text, { size: "base", variant: "bold", color: "default", className: "pax-selector__stepper-label", children: label }), _jsxs("div", { className: "pax-selector__stepper-controls", children: [_jsx("button", { type: "button", className: "pax-selector__stepper-btn", onClick: handleDecrement, disabled: value <= min, "aria-label": "Decrease ".concat(label), children: _jsx(Icon, { name: "minus", size: "sm" }) }), _jsx("span", { className: "pax-selector__stepper-count", children: value }), _jsx("button", { type: "button", className: "pax-selector__stepper-btn", onClick: handleIncrement, disabled: value >= max, "aria-label": "Increase ".concat(label), children: _jsx(Icon, { name: "plus", size: "sm" }) })] })] }));
154
154
  };
155
155
  var ClientTypeSelector = function (_a) {
156
156
  var value = _a.value, onChange = _a.onChange;
@@ -173,7 +173,7 @@ var ClientTypeSelector = function (_a) {
173
173
  onChange(type);
174
174
  setIsOpen(false);
175
175
  };
176
- return (_jsxs("div", __assign({ className: "pax-selector__client-type" }, { children: [_jsx(Text, __assign({ size: "sm", variant: "regular", className: "pax-selector__client-type-label" }, { children: "Client type" })), _jsxs("div", __assign({ className: "pax-selector__client-type-select", ref: containerRef }, { children: [_jsxs("button", __assign({ type: "button", className: "pax-selector__client-type-trigger", onClick: function () { return setIsOpen(!isOpen); }, "aria-expanded": isOpen, "aria-haspopup": "listbox" }, { children: [_jsxs("div", __assign({ className: "pax-selector__client-type-content" }, { children: [_jsx(Icon, { name: "user-icon", size: "sm", className: "pax-selector__client-type-icon" }), _jsx("span", __assign({ className: "pax-selector__client-type-text" }, { children: value }))] })), _jsx(Icon, { name: "chevron-down", size: "sm", className: "pax-selector__client-type-chevron ".concat(isOpen ? 'pax-selector__client-type-chevron--open' : '') })] })), isOpen && (_jsx("div", __assign({ className: "pax-selector__client-type-dropdown", role: "listbox" }, { children: CLIENT_TYPES.map(function (type) { return (_jsxs("button", __assign({ type: "button", className: "pax-selector__client-type-option ".concat(value === type ? 'pax-selector__client-type-option--selected' : ''), onClick: function () { return handleSelect(type); }, role: "option", "aria-selected": value === type }, { children: [_jsx(Icon, { name: "user-icon", size: "sm" }), type] }), type)); }) })))] }))] })));
176
+ return (_jsxs("div", { className: "pax-selector__client-type", children: [_jsx(Text, { size: "sm", variant: "regular", className: "pax-selector__client-type-label", children: "Client type" }), _jsxs("div", { className: "pax-selector__client-type-select", ref: containerRef, children: [_jsxs("button", { type: "button", className: "pax-selector__client-type-trigger", onClick: function () { return setIsOpen(!isOpen); }, "aria-expanded": isOpen, "aria-haspopup": "listbox", children: [_jsxs("div", { className: "pax-selector__client-type-content", children: [_jsx(Icon, { name: "user-icon", size: "sm", className: "pax-selector__client-type-icon" }), _jsx("span", { className: "pax-selector__client-type-text", children: value })] }), _jsx(Icon, { name: "chevron-down", size: "sm", className: "pax-selector__client-type-chevron ".concat(isOpen ? 'pax-selector__client-type-chevron--open' : '') })] }), isOpen && (_jsx("div", { className: "pax-selector__client-type-dropdown", role: "listbox", children: CLIENT_TYPES.map(function (type) { return (_jsxs("button", { type: "button", className: "pax-selector__client-type-option ".concat(value === type ? 'pax-selector__client-type-option--selected' : ''), onClick: function () { return handleSelect(type); }, role: "option", "aria-selected": value === type, children: [_jsx(Icon, { name: "user-icon", size: "sm" }), type] }, type)); }) }))] })] }));
177
177
  };
178
178
  var RoomEditor = function (_a) {
179
179
  var room = _a.room, roomNumber = _a.roomNumber, showRemove = _a.showRemove, maxAdults = _a.maxAdults, maxTeens = _a.maxTeens, maxChildren = _a.maxChildren, maxInfants = _a.maxInfants, onChange = _a.onChange, onRemove = _a.onRemove;
@@ -224,25 +224,25 @@ var RoomEditor = function (_a) {
224
224
  var teenAgeChunks = chunkAges(room.teenAges || [], 'Teen');
225
225
  var childAgeChunks = chunkAges(room.childAges || [], 'Child');
226
226
  var infantAgeChunks = chunkAges(room.infantAges || [], 'Infant');
227
- return (_jsxs("div", __assign({ className: "pax-selector__room-container" }, { children: [_jsxs("div", __assign({ className: "pax-selector__room-header" }, { children: [_jsxs("div", __assign({ className: "pax-selector__room-title" }, { children: [_jsxs(Text, __assign({ size: "lg", variant: "bold", color: "accent", className: "pax-selector__room-name" }, { children: ["Room ", roomNumber] })), _jsx(Icon, { name: "home", size: "md", className: "pax-selector__room-icon" })] })), showRemove && (_jsxs("button", __assign({ type: "button", className: "pax-selector__room-remove", onClick: onRemove, "aria-label": "Remove room ".concat(roomNumber) }, { children: [_jsx(Icon, { name: "close", size: "sm", className: "pax-selector__room-remove-icon" }), _jsx("span", __assign({ className: "pax-selector__room-remove-text" }, { children: "Remove" }))] })))] })), _jsxs("div", __assign({ className: "pax-selector__room-content" }, { children: [_jsxs("div", __assign({ className: "pax-selector__steppers" }, { children: [_jsx(StepperRow, { label: "Adult", value: room.adults, max: maxAdults, onChange: function (val) { return handleFieldChange('adults', val); } }), _jsx(StepperRow, { label: "Teen", value: room.teens, max: maxTeens, onChange: function (val) { return handleFieldChange('teens', val); } }), _jsx(StepperRow, { label: "Child", value: room.children, max: maxChildren, onChange: function (val) { return handleFieldChange('children', val); } }), _jsx(StepperRow, { label: "Infant", value: room.infants, max: maxInfants, onChange: function (val) { return handleFieldChange('infants', val); } })] })), (room.teens > 0 || room.children > 0 || room.infants > 0) && (_jsxs("div", __assign({ className: "pax-selector__age-section" }, { children: [_jsx(Text, __assign({ size: "base", variant: "bold", color: "default", className: "pax-selector__age-section-title" }, { children: "Please specify the age :" })), _jsxs("div", __assign({ className: "pax-selector__age-groups" }, { children: [room.teens > 0 &&
228
- teenAgeChunks.map(function (chunk, chunkIndex) { return (_jsx("div", __assign({ className: "pax-selector__age-row" }, { children: chunk.map(function (age, ageIndex) {
227
+ return (_jsxs("div", { className: "pax-selector__room-container", children: [_jsxs("div", { className: "pax-selector__room-header", children: [_jsxs("div", { className: "pax-selector__room-title", children: [_jsxs(Text, { size: "lg", variant: "bold", color: "accent", className: "pax-selector__room-name", children: ["Room ", roomNumber] }), _jsx(Icon, { name: "home", size: "md", className: "pax-selector__room-icon" })] }), showRemove && (_jsxs("button", { type: "button", className: "pax-selector__room-remove", onClick: onRemove, "aria-label": "Remove room ".concat(roomNumber), children: [_jsx(Icon, { name: "close", size: "sm", className: "pax-selector__room-remove-icon" }), _jsx("span", { className: "pax-selector__room-remove-text", children: "Remove" })] }))] }), _jsxs("div", { className: "pax-selector__room-content", children: [_jsxs("div", { className: "pax-selector__steppers", children: [_jsx(StepperRow, { label: "Adult", value: room.adults, max: maxAdults, onChange: function (val) { return handleFieldChange('adults', val); } }), _jsx(StepperRow, { label: "Teen", value: room.teens, max: maxTeens, onChange: function (val) { return handleFieldChange('teens', val); } }), _jsx(StepperRow, { label: "Child", value: room.children, max: maxChildren, onChange: function (val) { return handleFieldChange('children', val); } }), _jsx(StepperRow, { label: "Infant", value: room.infants, max: maxInfants, onChange: function (val) { return handleFieldChange('infants', val); } })] }), (room.teens > 0 || room.children > 0 || room.infants > 0) && (_jsxs("div", { className: "pax-selector__age-section", children: [_jsx(Text, { size: "base", variant: "bold", color: "default", className: "pax-selector__age-section-title", children: "Please specify the age :" }), _jsxs("div", { className: "pax-selector__age-groups", children: [room.teens > 0 &&
228
+ teenAgeChunks.map(function (chunk, chunkIndex) { return (_jsx("div", { className: "pax-selector__age-row", children: chunk.map(function (age, ageIndex) {
229
229
  var actualIndex = chunkIndex * 2 + ageIndex;
230
230
  return (_jsx(AgeSelector, { label: "Teen", value: age, onChange: function (selectedAge) {
231
231
  return handleAgeChange('teenAges', actualIndex, selectedAge);
232
232
  }, ageRange: CHILD_CATEGORY_AGES, required: true }, "teen-".concat(actualIndex)));
233
- }) }), "teen-chunk-".concat(chunkIndex))); }), room.children > 0 &&
234
- childAgeChunks.map(function (chunk, chunkIndex) { return (_jsx("div", __assign({ className: "pax-selector__age-row" }, { children: chunk.map(function (age, ageIndex) {
233
+ }) }, "teen-chunk-".concat(chunkIndex))); }), room.children > 0 &&
234
+ childAgeChunks.map(function (chunk, chunkIndex) { return (_jsx("div", { className: "pax-selector__age-row", children: chunk.map(function (age, ageIndex) {
235
235
  var actualIndex = chunkIndex * 2 + ageIndex;
236
236
  return (_jsx(AgeSelector, { label: "Child", value: age, onChange: function (selectedAge) {
237
237
  return handleAgeChange('childAges', actualIndex, selectedAge);
238
238
  }, ageRange: CHILD_CATEGORY_AGES, required: true }, "child-".concat(actualIndex)));
239
- }) }), "child-chunk-".concat(chunkIndex))); }), room.infants > 0 &&
240
- infantAgeChunks.map(function (chunk, chunkIndex) { return (_jsx("div", __assign({ className: "pax-selector__age-row" }, { children: chunk.map(function (age, ageIndex) {
239
+ }) }, "child-chunk-".concat(chunkIndex))); }), room.infants > 0 &&
240
+ infantAgeChunks.map(function (chunk, chunkIndex) { return (_jsx("div", { className: "pax-selector__age-row", children: chunk.map(function (age, ageIndex) {
241
241
  var actualIndex = chunkIndex * 2 + ageIndex;
242
242
  return (_jsx(AgeSelector, { label: "Infant", value: age, onChange: function (selectedAge) {
243
243
  return handleAgeChange('infantAges', actualIndex, selectedAge);
244
244
  }, ageRange: CHILD_CATEGORY_AGES, required: true }, "infant-".concat(actualIndex)));
245
- }) }), "infant-chunk-".concat(chunkIndex))); })] }))] }))), _jsx(ClientTypeSelector, { value: room.clientType, onChange: function (val) { return handleFieldChange('clientType', val); } })] }))] })));
245
+ }) }, "infant-chunk-".concat(chunkIndex))); })] })] })), _jsx(ClientTypeSelector, { value: room.clientType, onChange: function (val) { return handleFieldChange('clientType', val); } })] })] }));
246
246
  };
247
247
  var PaxSelector = function (_a) {
248
248
  var _b = _a.label, label = _b === void 0 ? 'Number of pax' : _b, value = _a.value, onChange = _a.onChange, onAddRoom = _a.onAddRoom, onDone = _a.onDone, _c = _a.placeholder, placeholder = _c === void 0 ? 'Select pax' : _c, _d = _a.className, className = _d === void 0 ? '' : _d, _e = _a.maxAdults, maxAdults = _e === void 0 ? 10 : _e, _f = _a.maxTeens, maxTeens = _f === void 0 ? 10 : _f, _g = _a.maxChildren, maxChildren = _g === void 0 ? 10 : _g, _h = _a.maxInfants, maxInfants = _h === void 0 ? 10 : _h, _j = _a.showAddRoom, showAddRoom = _j === void 0 ? true : _j, _k = _a.multipleRooms, multipleRooms = _k === void 0 ? false : _k, defaultRooms = _a.defaultRooms, onRoomsChange = _a.onRoomsChange, onRemoveRoom = _a.onRemoveRoom, _l = _a.defaultPaxData, defaultPaxData = _l === void 0 ? DEFAULT_PAX_DATA_WITH_ADULTS : _l, _m = _a.scrollOnOpen, scrollOnOpen = _m === void 0 ? false : _m;
@@ -386,11 +386,11 @@ var PaxSelector = function (_a) {
386
386
  return "".concat(total, " pax");
387
387
  };
388
388
  var hasPax = getTotalPax() > 0;
389
- return (_jsxs("div", __assign({ className: "pax-selector ".concat(className), ref: containerRef }, { children: [_jsxs("button", __assign({ ref: triggerRef, type: "button", className: "pax-selector__trigger", onClick: function () { return setIsOpen(!isOpen); }, "aria-expanded": isOpen, "aria-haspopup": "true" }, { children: [_jsx(Text, __assign({ size: "sm", variant: "regular", className: "pax-selector__label" }, { children: label })), _jsxs("div", __assign({ className: "pax-selector__input ".concat(isOpen ? 'pax-selector__input--active' : '') }, { children: [_jsxs("div", __assign({ className: "pax-selector__input-content" }, { children: [_jsx(Icon, { name: "user-icon", size: "sm", className: "pax-selector__input-icon" }), _jsx("span", __assign({ className: "pax-selector__input-text ".concat(!hasPax ? 'pax-selector__input-placeholder' : '') }, { children: getDisplayText() }))] })), _jsx(Icon, { name: "chevron-down", size: "sm", className: "pax-selector__chevron ".concat(isOpen ? 'pax-selector__chevron--open' : '') })] }))] })), isOpen && (_jsxs("div", __assign({ className: "pax-selector__dropdown" }, { children: [multipleRooms ? (_jsxs(_Fragment, { children: [showAddRoom && (_jsxs("button", __assign({ type: "button", className: "pax-selector__add-room", onClick: handleAddRoom }, { children: [_jsx(Icon, { name: "home", size: "sm", className: "pax-selector__add-room-icon" }), "Add a room", _jsx(Icon, { name: "plus", size: "sm", className: "pax-selector__add-room-icon" })] }))), _jsx("div", __assign({ className: "pax-selector__rooms" }, { children: rooms.map(function (room, index) { return (_jsx(RoomEditor, { room: room, roomNumber: index + 1, showRemove: rooms.length > 1, maxAdults: maxAdults, maxTeens: maxTeens, maxChildren: maxChildren, maxInfants: maxInfants, onChange: function (updatedRoom) { return handleRoomChange(room.roomId, updatedRoom); }, onRemove: function () { return handleRemoveRoom(room.roomId); } }, room.roomId)); }) }))] })) : (
389
+ return (_jsxs("div", { className: "pax-selector ".concat(className), ref: containerRef, children: [_jsxs("button", { ref: triggerRef, type: "button", className: "pax-selector__trigger", onClick: function () { return setIsOpen(!isOpen); }, "aria-expanded": isOpen, "aria-haspopup": "true", children: [_jsx(Text, { size: "sm", variant: "regular", className: "pax-selector__label", children: label }), _jsxs("div", { className: "pax-selector__input ".concat(isOpen ? 'pax-selector__input--active' : ''), children: [_jsxs("div", { className: "pax-selector__input-content", children: [_jsx(Icon, { name: "user-icon", size: "sm", className: "pax-selector__input-icon" }), _jsx("span", { className: "pax-selector__input-text ".concat(!hasPax ? 'pax-selector__input-placeholder' : ''), children: getDisplayText() })] }), _jsx(Icon, { name: "chevron-down", size: "sm", className: "pax-selector__chevron ".concat(isOpen ? 'pax-selector__chevron--open' : '') })] })] }), isOpen && (_jsxs("div", { className: "pax-selector__dropdown", children: [multipleRooms ? (_jsxs(_Fragment, { children: [showAddRoom && (_jsxs("button", { type: "button", className: "pax-selector__add-room", onClick: handleAddRoom, children: [_jsx(Icon, { name: "home", size: "sm", className: "pax-selector__add-room-icon" }), "Add a room", _jsx(Icon, { name: "plus", size: "sm", className: "pax-selector__add-room-icon" })] })), _jsx("div", { className: "pax-selector__rooms", children: rooms.map(function (room, index) { return (_jsx(RoomEditor, { room: room, roomNumber: index + 1, showRemove: rooms.length > 1, maxAdults: maxAdults, maxTeens: maxTeens, maxChildren: maxChildren, maxInfants: maxInfants, onChange: function (updatedRoom) { return handleRoomChange(room.roomId, updatedRoom); }, onRemove: function () { return handleRemoveRoom(room.roomId); } }, room.roomId)); }) })] })) : (
390
390
  /* Single Room Mode */
391
- _jsxs(_Fragment, { children: [_jsxs("div", __assign({ className: "pax-selector__steppers" }, { children: [_jsx(StepperRow, { label: "Adult", value: internalData.adults, max: maxAdults, onChange: function (val) { return handleDataChange('adults', val); } }), _jsx(StepperRow, { label: "Teen", value: internalData.teens, max: maxTeens, onChange: function (val) { return handleDataChange('teens', val); } }), _jsx(StepperRow, { label: "Child", value: internalData.children, max: maxChildren, onChange: function (val) { return handleDataChange('children', val); } }), _jsx(StepperRow, { label: "Infant", value: internalData.infants, max: maxInfants, onChange: function (val) { return handleDataChange('infants', val); } })] })), (internalData.teens > 0 ||
391
+ _jsxs(_Fragment, { children: [_jsxs("div", { className: "pax-selector__steppers", children: [_jsx(StepperRow, { label: "Adult", value: internalData.adults, max: maxAdults, onChange: function (val) { return handleDataChange('adults', val); } }), _jsx(StepperRow, { label: "Teen", value: internalData.teens, max: maxTeens, onChange: function (val) { return handleDataChange('teens', val); } }), _jsx(StepperRow, { label: "Child", value: internalData.children, max: maxChildren, onChange: function (val) { return handleDataChange('children', val); } }), _jsx(StepperRow, { label: "Infant", value: internalData.infants, max: maxInfants, onChange: function (val) { return handleDataChange('infants', val); } })] }), (internalData.teens > 0 ||
392
392
  internalData.children > 0 ||
393
- internalData.infants > 0) && (_jsxs("div", __assign({ className: "pax-selector__age-section" }, { children: [_jsx(Text, __assign({ size: "base", variant: "bold", color: "default", className: "pax-selector__age-section-title" }, { children: "Please specify the age :" })), _jsx("div", __assign({ className: "pax-selector__age-groups" }, { children: (function () {
393
+ internalData.infants > 0) && (_jsxs("div", { className: "pax-selector__age-section", children: [_jsx(Text, { size: "base", variant: "bold", color: "default", className: "pax-selector__age-section-title", children: "Please specify the age :" }), _jsx("div", { className: "pax-selector__age-groups", children: (function () {
394
394
  var chunkAges = function (ages, category) {
395
395
  var chunks = [];
396
396
  for (var i = 0; i < ages.length; i += 2) {
@@ -407,24 +407,24 @@ var PaxSelector = function (_a) {
407
407
  handleDataChange(category, ages);
408
408
  };
409
409
  return (_jsxs(_Fragment, { children: [internalData.teens > 0 &&
410
- teenAgeChunks.map(function (chunk, chunkIndex) { return (_jsx("div", __assign({ className: "pax-selector__age-row" }, { children: chunk.map(function (age, ageIndex) {
410
+ teenAgeChunks.map(function (chunk, chunkIndex) { return (_jsx("div", { className: "pax-selector__age-row", children: chunk.map(function (age, ageIndex) {
411
411
  var actualIndex = chunkIndex * 2 + ageIndex;
412
412
  return (_jsx(AgeSelector, { label: "Teen", value: age, onChange: function (selectedAge) {
413
413
  return handleAgeChange('teenAges', actualIndex, selectedAge);
414
414
  }, ageRange: CHILD_CATEGORY_AGES, required: true }, "teen-".concat(actualIndex)));
415
- }) }), "teen-chunk-".concat(chunkIndex))); }), internalData.children > 0 &&
416
- childAgeChunks.map(function (chunk, chunkIndex) { return (_jsx("div", __assign({ className: "pax-selector__age-row" }, { children: chunk.map(function (age, ageIndex) {
415
+ }) }, "teen-chunk-".concat(chunkIndex))); }), internalData.children > 0 &&
416
+ childAgeChunks.map(function (chunk, chunkIndex) { return (_jsx("div", { className: "pax-selector__age-row", children: chunk.map(function (age, ageIndex) {
417
417
  var actualIndex = chunkIndex * 2 + ageIndex;
418
418
  return (_jsx(AgeSelector, { label: "Child", value: age, onChange: function (selectedAge) {
419
419
  return handleAgeChange('childAges', actualIndex, selectedAge);
420
420
  }, ageRange: CHILD_CATEGORY_AGES, required: true }, "child-".concat(actualIndex)));
421
- }) }), "child-chunk-".concat(chunkIndex))); }), internalData.infants > 0 &&
422
- infantAgeChunks.map(function (chunk, chunkIndex) { return (_jsx("div", __assign({ className: "pax-selector__age-row" }, { children: chunk.map(function (age, ageIndex) {
421
+ }) }, "child-chunk-".concat(chunkIndex))); }), internalData.infants > 0 &&
422
+ infantAgeChunks.map(function (chunk, chunkIndex) { return (_jsx("div", { className: "pax-selector__age-row", children: chunk.map(function (age, ageIndex) {
423
423
  var actualIndex = chunkIndex * 2 + ageIndex;
424
424
  return (_jsx(AgeSelector, { label: "Infant", value: age, onChange: function (selectedAge) {
425
425
  return handleAgeChange('infantAges', actualIndex, selectedAge);
426
426
  }, ageRange: CHILD_CATEGORY_AGES, required: true }, "infant-".concat(actualIndex)));
427
- }) }), "infant-chunk-".concat(chunkIndex))); })] }));
428
- })() }))] }))), _jsx(ClientTypeSelector, { value: internalData.clientType, onChange: function (val) { return handleDataChange('clientType', val); } })] })), _jsxs("div", __assign({ className: "pax-selector__actions" }, { children: [_jsx("button", __assign({ type: "button", className: "pax-selector__clear-btn", onClick: handleClear }, { children: "Clear Pax" })), _jsx("button", __assign({ type: "button", className: "pax-selector__done-btn", onClick: handleDone }, { children: "Done" }))] }))] })))] })));
427
+ }) }, "infant-chunk-".concat(chunkIndex))); })] }));
428
+ })() })] })), _jsx(ClientTypeSelector, { value: internalData.clientType, onChange: function (val) { return handleDataChange('clientType', val); } })] })), _jsxs("div", { className: "pax-selector__actions", children: [_jsx("button", { type: "button", className: "pax-selector__clear-btn", onClick: handleClear, children: "Clear Pax" }), _jsx("button", { type: "button", className: "pax-selector__done-btn", onClick: handleDone, children: "Done" })] })] }))] }));
429
429
  };
430
430
  export default PaxSelector;
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
2
  import Button from '../../atoms/Button/Button';
14
3
  import DropdownInput from '../../atoms/Inputs/DropdownInput/DropdownInput';
@@ -32,10 +21,10 @@ var filterConfig = {
32
21
  };
33
22
  export var QuoteHeader = function (props) {
34
23
  var _a = props.current, current = _a === void 0 ? 'quotation' : _a, onNavigate = props.onNavigate, onNewQuote = props.onNewQuote, onFilterChange = props.onFilterChange;
35
- return (_jsxs("div", __assign({ className: "quote-header" }, { children: [_jsx(Heading, __assign({ level: 4, as: "h1", className: "quote-header__title", color: "accent" }, { children: "Quotation & Booking" })), _jsxs("div", __assign({ className: "flex gap-4" }, { children: [_jsx(Button, __assign({ variant: current === 'quotation' ? 'primary' : 'outline-primary', className: "quote-header__button", onClick: function () { return onNavigate('quotation'); } }, { children: "Quotation" })), _jsx(Button, __assign({ variant: current === 'booking' ? 'primary' : 'outline-primary', className: "quote-header__button", onClick: function () { return onNavigate('booking'); } }, { children: "Booking" }))] })), _jsxs("div", __assign({ className: "quote-header__search-container" }, { children: [_jsx(Input, { placeholder: "Search", icon: "search", iconPosition: "leading", className: "quote-header__search" }), _jsx(Button, __assign({ variant: "primary", leadingIcon: "plus-circle", iconSize: "md", size: "sm", onClick: onNewQuote }, { children: "New quote" }))] })), _jsx("div", __assign({ className: "quote-header__filters" }, { children: Object.entries(filterConfig).map(function (_a) {
24
+ return (_jsxs("div", { className: "quote-header", children: [_jsx(Heading, { level: 4, as: "h1", className: "quote-header__title", color: "accent", children: "Quotation & Booking" }), _jsxs("div", { className: "flex gap-4", children: [_jsx(Button, { variant: current === 'quotation' ? 'primary' : 'outline-primary', className: "quote-header__button", onClick: function () { return onNavigate('quotation'); }, children: "Quotation" }), _jsx(Button, { variant: current === 'booking' ? 'primary' : 'outline-primary', className: "quote-header__button", onClick: function () { return onNavigate('booking'); }, children: "Booking" })] }), _jsxs("div", { className: "quote-header__search-container", children: [_jsx(Input, { placeholder: "Search", icon: "search", iconPosition: "leading", className: "quote-header__search" }), _jsx(Button, { variant: "primary", leadingIcon: "plus-circle", iconSize: "md", size: "sm", onClick: onNewQuote, children: "New quote" })] }), _jsx("div", { className: "quote-header__filters", children: Object.entries(filterConfig).map(function (_a) {
36
25
  var key = _a[0], value = _a[1];
37
26
  return (_jsx(DropdownInput, { placeholder: value.placeholder, options: value.options, onSelect: function (value) {
38
27
  return onFilterChange(key, value);
39
28
  } }, key));
40
- }) }))] })));
29
+ }) })] }));
41
30
  };
@@ -184,6 +184,6 @@ var RoundTrip = function (_a) {
184
184
  var isAccommodationEmpty = checkEmpty && !internalAccommodation;
185
185
  var pickupDropoffOptions = getPickupDropoffOptions();
186
186
  var accommodationOptions = getAccommodationOptions();
187
- return (_jsx("div", __assign({ className: "round-trip ".concat(className), "data-round-trip-id": id }, { children: _jsxs("div", __assign({ className: "round-trip__content" }, { children: [_jsx("div", __assign({ className: "round-trip__field round-trip__field--pax ".concat(isPaxEmpty ? 'round-trip__field--error' : '') }, { children: _jsx(PaxSelector, { label: "Number of pax", value: internalPaxData, onChange: handlePaxChange, placeholder: "2 pax", className: isPaxEmpty ? 'pax-selector--error' : '' }) })), _jsxs("div", __assign({ className: "round-trip__field round-trip__field--dates" }, { children: [_jsx(Text, __assign({ size: "sm", variant: "regular", className: "round-trip__field-label" }, { children: "Arrival date - Departure date" })), _jsx(DateTimePicker, { placeholder: "DD/MM/YYYY - DD/MM/YYYY", mode: "calendar", iconPosition: "left", numberOfMonths: 2, iconBGFull: false, showChevron: true, onValueChange: handleDateRangeChange, selectionMode: "range", defaultValue: internalArrivalDate && internalDepartureDate ? [internalArrivalDate, internalDepartureDate] : undefined, inputClassName: "round-trip__date-picker--input", state: isDateEmpty ? 'error' : undefined })] })), _jsx("div", __assign({ className: "round-trip__field round-trip__field--pickup-dropoff" }, { children: _jsx(LocationDropdown, { label: "Pick up / Drop-off point", options: pickupDropoffOptions.options, groups: pickupDropoffOptions.groups, selectedValue: (internalPickupDropoffPoint === null || internalPickupDropoffPoint === void 0 ? void 0 : internalPickupDropoffPoint.id) || null, onSelectionChange: handlePickupDropoffChange, placeholder: "Select pick-up / drop-off point", direction: undefined, type: "airport-port", showGroupTitles: true, error: isPickupDropoffEmpty }) })), _jsx("div", __assign({ className: "round-trip__field round-trip__field--accommodation" }, { children: _jsx(LocationDropdown, { label: "Accommodation", options: accommodationOptions.options, groups: accommodationOptions.groups, selectedValue: (internalAccommodation === null || internalAccommodation === void 0 ? void 0 : internalAccommodation.id) || null, onSelectionChange: handleAccommodationChange, placeholder: "Select accommodation", direction: "dropoff", type: "accommodation", showGroupTitles: false, error: isAccommodationEmpty }) }))] })) })));
187
+ return (_jsx("div", { className: "round-trip ".concat(className), "data-round-trip-id": id, children: _jsxs("div", { className: "round-trip__content", children: [_jsx("div", { className: "round-trip__field round-trip__field--pax ".concat(isPaxEmpty ? 'round-trip__field--error' : ''), children: _jsx(PaxSelector, { label: "Number of pax", value: internalPaxData, onChange: handlePaxChange, placeholder: "2 pax", className: isPaxEmpty ? 'pax-selector--error' : '' }) }), _jsxs("div", { className: "round-trip__field round-trip__field--dates", children: [_jsx(Text, { size: "sm", variant: "regular", className: "round-trip__field-label", children: "Arrival date - Departure date" }), _jsx(DateTimePicker, { placeholder: "DD/MM/YYYY - DD/MM/YYYY", mode: "calendar", iconPosition: "left", numberOfMonths: 2, iconBGFull: false, showChevron: true, onValueChange: handleDateRangeChange, selectionMode: "range", defaultValue: internalArrivalDate && internalDepartureDate ? [internalArrivalDate, internalDepartureDate] : undefined, inputClassName: "round-trip__date-picker--input", state: isDateEmpty ? 'error' : undefined })] }), _jsx("div", { className: "round-trip__field round-trip__field--pickup-dropoff", children: _jsx(LocationDropdown, { label: "Pick up / Drop-off point", options: pickupDropoffOptions.options, groups: pickupDropoffOptions.groups, selectedValue: (internalPickupDropoffPoint === null || internalPickupDropoffPoint === void 0 ? void 0 : internalPickupDropoffPoint.id) || null, onSelectionChange: handlePickupDropoffChange, placeholder: "Select pick-up / drop-off point", direction: undefined, type: "airport-port", showGroupTitles: true, error: isPickupDropoffEmpty }) }), _jsx("div", { className: "round-trip__field round-trip__field--accommodation", children: _jsx(LocationDropdown, { label: "Accommodation", options: accommodationOptions.options, groups: accommodationOptions.groups, selectedValue: (internalAccommodation === null || internalAccommodation === void 0 ? void 0 : internalAccommodation.id) || null, onSelectionChange: handleAccommodationChange, placeholder: "Select accommodation", direction: "dropoff", type: "accommodation", showGroupTitles: false, error: isAccommodationEmpty }) })] }) }));
188
188
  };
189
189
  export default RoundTrip;
@@ -107,7 +107,7 @@ var SearchBarTransfer = function (_a) {
107
107
  setTransferLines(__spreadArray(__spreadArray([], transferLines, true), [newTransfer], false));
108
108
  };
109
109
  // Render transfer type buttons
110
- var renderTransferTypeButtons = function (onClick) { return (_jsxs("div", __assign({ className: "search-bar-transfer__add-buttons" }, { children: [_jsx(Button, __assign({ variant: "outline-secondary", size: "sm", leadingIcon: "plus", onClick: function () { return onClick("arrival"); } }, { children: "Add Arrival" })), _jsx(Button, __assign({ variant: "outline-secondary", size: "sm", leadingIcon: "plus", onClick: function () { return onClick("departure"); } }, { children: "Add Departure" })), _jsx(Button, __assign({ variant: "outline-secondary", size: "sm", leadingIcon: "plus", onClick: function () { return onClick("inter-hotel"); } }, { children: "Add Inter-Hotel" }))] }))); };
110
+ var renderTransferTypeButtons = function (onClick) { return (_jsxs("div", { className: "search-bar-transfer__add-buttons", children: [_jsx(Button, { variant: "outline-secondary", size: "sm", leadingIcon: "plus", onClick: function () { return onClick("arrival"); }, children: "Add Arrival" }), _jsx(Button, { variant: "outline-secondary", size: "sm", leadingIcon: "plus", onClick: function () { return onClick("departure"); }, children: "Add Departure" }), _jsx(Button, { variant: "outline-secondary", size: "sm", leadingIcon: "plus", onClick: function () { return onClick("inter-hotel"); }, children: "Add Inter-Hotel" })] })); };
111
111
  // Handle adding transfer from round-trip mode (converts round-trip to custom and adds new transfer)
112
112
  var handleAddTransferFromRoundTrip = function (type) {
113
113
  if (!roundTripData) {
@@ -207,7 +207,7 @@ var SearchBarTransfer = function (_a) {
207
207
  onSearch === null || onSearch === void 0 ? void 0 : onSearch(data);
208
208
  }
209
209
  };
210
- return (_jsxs("div", __assign({ className: "search-bar-transfer ".concat(className) }, { children: [_jsxs("div", __assign({ className: "search-bar-transfer__header" }, { children: [_jsx(Heading, __assign({ level: 5, variant: "bold", color: "accent" }, { children: "Select your transfer details" })), _jsx("div", __assign({ className: "search-bar-transfer__mode-selector" }, { children: _jsx(SegmentedButton, { options: modeOptions, value: mode, onChange: handleModeChange, name: "transfer-mode" }) }))] })), mode === "roundtrip" ? (_jsxs(_Fragment, { children: [_jsx(RoundTrip, { id: "roundtrip-main", locations: locations, paxData: roundTripData === null || roundTripData === void 0 ? void 0 : roundTripData.paxData, arrivalDate: roundTripData === null || roundTripData === void 0 ? void 0 : roundTripData.arrivalDate, departureDate: roundTripData === null || roundTripData === void 0 ? void 0 : roundTripData.departureDate, pickupDropoffPoint: (_b = roundTripData === null || roundTripData === void 0 ? void 0 : roundTripData.pickupDropoffPoint) === null || _b === void 0 ? void 0 : _b.id, accommodation: (_c = roundTripData === null || roundTripData === void 0 ? void 0 : roundTripData.accommodation) === null || _c === void 0 ? void 0 : _c.id, onChange: setRoundTripData, checkEmpty: error !== null }), _jsx("div", __assign({ className: "search-bar-transfer__transfer-type" }, { children: renderTransferTypeButtons(handleAddTransferFromRoundTrip) }))] })) : (_jsxs(_Fragment, { children: [_jsxs("div", __assign({ className: "search-bar-transfer__transfer-type" }, { children: [_jsx(Text, __assign({ size: "lg", variant: "bold", color: "subtle", as: "div", className: "search-bar-transfer__transfer-type-label" }, { children: "Select a transfer type you want to add" })), renderTransferTypeButtons(handleAddTransfer)] })), transferLines.length > 0 && (_jsx("div", __assign({ className: "search-bar-transfer__transfer-lines" }, { children: (function () {
210
+ return (_jsxs("div", { className: "search-bar-transfer ".concat(className), children: [_jsxs("div", { className: "search-bar-transfer__header", children: [_jsx(Heading, { level: 5, variant: "bold", color: "accent", children: "Select your transfer details" }), _jsx("div", { className: "search-bar-transfer__mode-selector", children: _jsx(SegmentedButton, { options: modeOptions, value: mode, onChange: handleModeChange, name: "transfer-mode" }) })] }), mode === "roundtrip" ? (_jsxs(_Fragment, { children: [_jsx(RoundTrip, { id: "roundtrip-main", locations: locations, paxData: roundTripData === null || roundTripData === void 0 ? void 0 : roundTripData.paxData, arrivalDate: roundTripData === null || roundTripData === void 0 ? void 0 : roundTripData.arrivalDate, departureDate: roundTripData === null || roundTripData === void 0 ? void 0 : roundTripData.departureDate, pickupDropoffPoint: (_b = roundTripData === null || roundTripData === void 0 ? void 0 : roundTripData.pickupDropoffPoint) === null || _b === void 0 ? void 0 : _b.id, accommodation: (_c = roundTripData === null || roundTripData === void 0 ? void 0 : roundTripData.accommodation) === null || _c === void 0 ? void 0 : _c.id, onChange: setRoundTripData, checkEmpty: error !== null }), _jsx("div", { className: "search-bar-transfer__transfer-type", children: renderTransferTypeButtons(handleAddTransferFromRoundTrip) })] })) : (_jsxs(_Fragment, { children: [_jsxs("div", { className: "search-bar-transfer__transfer-type", children: [_jsx(Text, { size: "lg", variant: "bold", color: "subtle", as: "div", className: "search-bar-transfer__transfer-type-label", children: "Select a transfer type you want to add" }), renderTransferTypeButtons(handleAddTransfer)] }), transferLines.length > 0 && (_jsx("div", { className: "search-bar-transfer__transfer-lines", children: (function () {
211
211
  // Group transfers by type
212
212
  var groupedTransfers = {
213
213
  arrival: [],
@@ -226,10 +226,10 @@ var SearchBarTransfer = function (_a) {
226
226
  departure: { label: "Departure", icon: "departure" },
227
227
  "inter-hotel": { label: "Inter-Hotel", icon: "building" },
228
228
  };
229
- return nonEmptyGroups.map(function (type, groupIndex) { return (_jsxs(React.Fragment, { children: [_jsxs("div", __assign({ className: "search-bar-transfer__category-header" }, { children: [_jsx(Icon, { name: categoryInfo[type].icon, size: "md" }), _jsx(Text, __assign({ size: "md", variant: "bold", color: "default", as: "span" }, { children: categoryInfo[type].label }))] })), groupedTransfers[type].map(function (line) {
229
+ return nonEmptyGroups.map(function (type, groupIndex) { return (_jsxs(React.Fragment, { children: [_jsxs("div", { className: "search-bar-transfer__category-header", children: [_jsx(Icon, { name: categoryInfo[type].icon, size: "md" }), _jsx(Text, { size: "md", variant: "bold", color: "default", as: "span", children: categoryInfo[type].label })] }), groupedTransfers[type].map(function (line) {
230
230
  var _a, _b;
231
231
  return (_jsx(TransferLine, { id: line.id, type: line.type, paxData: line.paxData, transferDate: line.transferDate, pickupPoint: (_a = line.pickupPoint) === null || _a === void 0 ? void 0 : _a.id, dropoffPoint: (_b = line.dropoffPoint) === null || _b === void 0 ? void 0 : _b.id, locations: locations, onDataChange: function (data) { return handleTransferLineChange(line.id, data); }, onDelete: function () { return handleDeleteTransferLine(line.id); }, showDelete: transferLines.length > 1, checkEmpty: error !== null }, line.id));
232
- }), groupIndex < nonEmptyGroups.length - 1 && (_jsx("svg", __assign({ className: "search-bar-transfer__divider", xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "1", viewBox: "0 0 1076 1", fill: "none", preserveAspectRatio: "none" }, { children: _jsx("path", { d: "M0 0.5L1076 0.499906", stroke: "var(--color-border-medium, #A3A3A3)", strokeWidth: "1", strokeDasharray: "10 10" }) })))] }, type)); });
233
- })() })))] })), _jsxs("div", __assign({ className: "search-bar-transfer__actions" }, { children: [_jsx(Checkbox, { checked: sameVehicle, onChange: setSameVehicle, label: "Use the same vehicle for all your transfers" }), _jsxs("div", __assign({ className: "search-bar-transfer__cta" }, { children: [error && (_jsx(Toast, { text: error, type: "danger" })), _jsx(Button, __assign({ variant: "primary", size: "lg", onClick: handleSearch }, { children: "Search" }))] }))] }))] })));
232
+ }), groupIndex < nonEmptyGroups.length - 1 && (_jsx("svg", { className: "search-bar-transfer__divider", xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "1", viewBox: "0 0 1076 1", fill: "none", preserveAspectRatio: "none", children: _jsx("path", { d: "M0 0.5L1076 0.499906", stroke: "var(--color-border-medium, #A3A3A3)", strokeWidth: "1", strokeDasharray: "10 10" }) }))] }, type)); });
233
+ })() }))] })), _jsxs("div", { className: "search-bar-transfer__actions", children: [_jsx(Checkbox, { checked: sameVehicle, onChange: setSameVehicle, label: "Use the same vehicle for all your transfers" }), _jsxs("div", { className: "search-bar-transfer__cta", children: [error && (_jsx(Toast, { text: error, type: "danger" })), _jsx(Button, { variant: "primary", size: "lg", onClick: handleSearch, children: "Search" })] })] })] }));
234
234
  };
235
235
  export default SearchBarTransfer;
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsx as _jsx } from "react/jsx-runtime";
13
2
  import CancellationBody from './CancellationBody';
14
3
  import CancellationHeader from './CancellationHeader';
@@ -31,5 +20,5 @@ import DetailsCancellationPolicy from './TabCancellationPolicy';
31
20
  */
32
21
  export default function CancellationAccom(props) {
33
22
  var hotelName = props.hotelName, pax = props.pax, dates = props.dates, image = props.image, roomPolicies = props.roomPolicies, isOnRequest = props.isOnRequest;
34
- return (_jsx(DetailsCancellationPolicy.Layout, __assign({ title: "Accommodation", icon: "accom", isOnRequest: isOnRequest, image: image, header: _jsx(CancellationHeader, { children: _jsx(CancellationHeader.Accom, { hotelName: hotelName, pax: pax, dates: dates }) }) }, { children: _jsx(CancellationBody, { children: roomPolicies.map(function (roomPolicy, index) { return (_jsx(CancellationBody.Accom, { roomName: roomPolicy.roomName, policies: roomPolicy.policies }, index)); }) }) })));
23
+ return (_jsx(DetailsCancellationPolicy.Layout, { title: "Accommodation", icon: "accom", isOnRequest: isOnRequest, image: image, header: _jsx(CancellationHeader, { children: _jsx(CancellationHeader.Accom, { hotelName: hotelName, pax: pax, dates: dates }) }), children: _jsx(CancellationBody, { children: roomPolicies.map(function (roomPolicy, index) { return (_jsx(CancellationBody.Accom, { roomName: roomPolicy.roomName, policies: roomPolicy.policies }, index)); }) }) }));
35
24
  }
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsx as _jsx } from "react/jsx-runtime";
13
2
  import CancellationBody from './CancellationBody';
14
3
  import CancellationHeader from './CancellationHeader';
@@ -30,5 +19,5 @@ import DetailsCancellationPolicy from './TabCancellationPolicy';
30
19
  */
31
20
  export default function CancellationExcursion(props) {
32
21
  var name = props.name, date = props.date, image = props.image, pickUpPoint = props.pickUpPoint, policies = props.policies;
33
- return (_jsx(DetailsCancellationPolicy.Layout, __assign({ title: "Excursion", icon: "map", isOnRequest: false, image: image, header: _jsx(CancellationHeader, { children: _jsx(CancellationHeader.Excursion, { name: name, date: date }) }) }, { children: _jsx(CancellationBody, { children: _jsx(CancellationBody.Excursion, { pickUpPoint: pickUpPoint, policies: policies }) }) })));
22
+ return (_jsx(DetailsCancellationPolicy.Layout, { title: "Excursion", icon: "map", isOnRequest: false, image: image, header: _jsx(CancellationHeader, { children: _jsx(CancellationHeader.Excursion, { name: name, date: date }) }), children: _jsx(CancellationBody, { children: _jsx(CancellationBody.Excursion, { pickUpPoint: pickUpPoint, policies: policies }) }) }));
34
23
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import HeaderAccom from './HeaderAccom';
3
2
  import HeaderExcursion from './HeaderExcursion';
4
3
  import HeaderTransfer from './HeaderExcursion/HeaderTransfer';
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsx as _jsx } from "react/jsx-runtime";
13
2
  import CancellationBody from './CancellationBody';
14
3
  import CancellationHeader from './CancellationHeader';
@@ -28,5 +17,5 @@ import DetailsCancellationPolicy from './TabCancellationPolicy';
28
17
  */
29
18
  export default function CancellationTransfer(props) {
30
19
  var image = props.image, carName = props.carName, transferData = props.transferData;
31
- return (_jsx(DetailsCancellationPolicy.Layout, __assign({ title: "Transfer", icon: "car", isOnRequest: false, image: image, header: _jsx(CancellationHeader, { children: _jsx(CancellationHeader.Transfer, { data: transferData }) }) }, { children: _jsx(CancellationBody, { children: _jsx(CancellationBody.Transfer, { carName: carName }) }) })));
20
+ return (_jsx(DetailsCancellationPolicy.Layout, { title: "Transfer", icon: "car", isOnRequest: false, image: image, header: _jsx(CancellationHeader, { children: _jsx(CancellationHeader.Transfer, { data: transferData }) }), children: _jsx(CancellationBody, { children: _jsx(CancellationBody.Transfer, { carName: carName }) }) }));
32
21
  }
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
2
  import useStays from '../../../hooks/useStays';
14
3
  import { DateDisplay } from '../../molecules/DateDisplay/DateDisplay';
@@ -30,5 +19,5 @@ import TextWithIcon from '../../molecules/TextWithIcon/TextWithIcon';
30
19
  export default function HeaderAccom(props) {
31
20
  var hotelName = props.hotelName, pax = props.pax, dates = props.dates;
32
21
  var stay = useStays(dates);
33
- return (_jsxs("div", { children: [_jsx(ServiceTitle, { title: hotelName, textSize: "sm" }), _jsx(TextWithIcon, __assign({ icon: "user" }, { children: pax })), _jsx(DateDisplay, { dates: dates, arrowSize: "xs", calendarSize: "xs" }), _jsxs(TextWithIcon, __assign({ icon: "night" }, { children: [stay, " Nights"] }))] }));
22
+ return (_jsxs("div", { children: [_jsx(ServiceTitle, { title: hotelName, textSize: "sm" }), _jsx(TextWithIcon, { icon: "user", children: pax }), _jsx(DateDisplay, { dates: dates, arrowSize: "xs", calendarSize: "xs" }), _jsxs(TextWithIcon, { icon: "night", children: [stay, " Nights"] })] }));
34
23
  }
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
2
  import Icon from '../../../atoms/Icon/Icon';
14
3
  import { Text } from '../../../atoms/Typography/Typography';
@@ -22,5 +11,5 @@ var transferLabel = {
22
11
  };
23
12
  export default function HeaderTransfer(props) {
24
13
  var data = props.data;
25
- return (_jsx("div", __assign({ className: "transfer-header" }, { children: data.map(function (item, index) { return (_jsxs("div", { children: [_jsx(TextWithIcon, __assign({ icon: item.type === 'DEP' ? 'departure' : 'arrival' }, { children: transferLabel[item.type] })), _jsxs(TextWithIcon, __assign({ icon: "user" }, { children: [item.pax, " pax"] })), _jsx(DateDisplay, { dates: [item.date], arrowSize: "xs", calendarSize: "xs" }), _jsxs(Text, __assign({ size: "sm", variant: "medium", leading: "5", className: "flex items-center gap-x-1" }, { children: [item.from, " ", _jsx(Icon, { name: "arrow-right-outline", size: "xs" }), " ", item.to] }))] }, "ht-".concat(index))); }) })));
14
+ return (_jsx("div", { className: "transfer-header", children: data.map(function (item, index) { return (_jsxs("div", { children: [_jsx(TextWithIcon, { icon: item.type === 'DEP' ? 'departure' : 'arrival', children: transferLabel[item.type] }), _jsxs(TextWithIcon, { icon: "user", children: [item.pax, " pax"] }), _jsx(DateDisplay, { dates: [item.date], arrowSize: "xs", calendarSize: "xs" }), _jsxs(Text, { size: "sm", variant: "medium", leading: "5", className: "flex items-center gap-x-1", children: [item.from, " ", _jsx(Icon, { name: "arrow-right-outline", size: "xs" }), " ", item.to] })] }, "ht-".concat(index))); }) }));
26
15
  }
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
13
2
  import Chip from '../../../atoms/Chip/Chip';
14
3
  import { Fragment } from 'react';
@@ -18,5 +7,5 @@ import TextWithIcon from '../../../molecules/TextWithIcon/TextWithIcon';
18
7
  import './PolicyAccom.css';
19
8
  export default function PolicyAccom(props) {
20
9
  var roomName = props.roomName, policies = props.policies, index = props.index;
21
- return (_jsxs("div", __assign({ className: "policy-accom" }, { children: [_jsxs("div", __assign({ className: "grid gap-y-1" }, { children: [_jsxs(TextWithIcon, __assign({ icon: "accom" }, { children: ["Room ", index !== undefined && index + 1] })), _jsx(Text, __assign({ size: "sm" }, { children: roomName }))] })), policies.map(function (policy, index) { return (_jsxs(Fragment, { children: [_jsxs(Chip, __assign({ type: "outline", color: "brand", isBlackText: true }, { children: ["Policy period applies", ' ', _jsx(DateDisplay, { dates: [policy.ValidFrom, policy.ValidTo], textSize: "xs" })] })), _jsxs("div", __assign({ className: "space-y-2" }, { children: [_jsxs(Text, __assign({ variant: "bold", size: "xs", leading: "4" }, { children: [policy.Value, " % of total price"] })), _jsx(Text, __assign({ size: "xs", leading: "4" }, { children: policy.Description }))] }))] }, "policy-".concat(index))); })] })));
10
+ return (_jsxs("div", { className: "policy-accom", children: [_jsxs("div", { className: "grid gap-y-1", children: [_jsxs(TextWithIcon, { icon: "accom", children: ["Room ", index !== undefined && index + 1] }), _jsx(Text, { size: "sm", children: roomName })] }), policies.map(function (policy, index) { return (_jsxs(Fragment, { children: [_jsxs(Chip, { type: "outline", color: "brand", isBlackText: true, children: ["Policy period applies", ' ', _jsx(DateDisplay, { dates: [policy.ValidFrom, policy.ValidTo], textSize: "xs" })] }), _jsxs("div", { className: "space-y-2", children: [_jsxs(Text, { variant: "bold", size: "xs", leading: "4", children: [policy.Value, " % of total price"] }), _jsx(Text, { size: "xs", leading: "4", children: policy.Description })] })] }, "policy-".concat(index))); })] }));
22
11
  }
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
2
  import { Text } from '../../atoms/Typography/Typography';
14
3
  /**
@@ -25,5 +14,5 @@ import { Text } from '../../atoms/Typography/Typography';
25
14
  */
26
15
  export default function PolicyExcursion(props) {
27
16
  var pickUpPoint = props.pickUpPoint, policies = props.policies;
28
- return (_jsxs("div", __assign({ className: "policy-excursion space-y-6" }, { children: [_jsxs("div", __assign({ className: "space-y-2" }, { children: [_jsx(Text, __assign({ variant: "bold", size: "xs", leading: "4" }, { children: "Pick-up point:" })), _jsx(Text, __assign({ size: "xs", leading: "4" }, { children: pickUpPoint }))] })), _jsx(Text, __assign({ size: "xs", leading: "4" }, { children: policies }))] })));
17
+ return (_jsxs("div", { className: "policy-excursion space-y-6", children: [_jsxs("div", { className: "space-y-2", children: [_jsx(Text, { variant: "bold", size: "xs", leading: "4", children: "Pick-up point:" }), _jsx(Text, { size: "xs", leading: "4", children: pickUpPoint })] }), _jsx(Text, { size: "xs", leading: "4", children: policies })] }));
29
18
  }
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
2
  import { Text } from '../../atoms/Typography/Typography';
14
3
  import TextWithIcon from '../../molecules/TextWithIcon/TextWithIcon';
@@ -51,5 +40,5 @@ var policies = [
51
40
  */
52
41
  export default function PolicyTransfer(props) {
53
42
  var carName = props.carName;
54
- return (_jsxs("div", __assign({ className: "policy-excursion" }, { children: [_jsx(TextWithIcon, __assign({ icon: "car", textVariant: "bold", iconSize: "md", textSize: "md" }, { children: carName })), _jsx("div", __assign({ className: "grid grid-cols-2 xl:grid-cols-3 gap-x-4" }, { children: policies.map(function (policy, index) { return (_jsxs("div", __assign({ className: "mt-4" }, { children: [_jsx(Text, __assign({ variant: "medium", size: "sm", leading: "4" }, { children: policy.title })), _jsx("ul", __assign({ className: "pl-8" }, { children: _jsx("li", __assign({ className: "list-disc" }, { children: _jsx(Text, __assign({ size: "sm", leading: "4" }, { children: policy.policy })) })) }))] }), "policy-".concat(index))); }) }))] })));
43
+ return (_jsxs("div", { className: "policy-excursion", children: [_jsx(TextWithIcon, { icon: "car", textVariant: "bold", iconSize: "md", textSize: "md", children: carName }), _jsx("div", { className: "grid grid-cols-2 xl:grid-cols-3 gap-x-4", children: policies.map(function (policy, index) { return (_jsxs("div", { className: "mt-4", children: [_jsx(Text, { variant: "medium", size: "sm", leading: "4", children: policy.title }), _jsx("ul", { className: "pl-8", children: _jsx("li", { className: "list-disc", children: _jsx(Text, { size: "sm", leading: "4", children: policy.policy }) }) })] }, "policy-".concat(index))); }) })] }));
55
44
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import CancellationAccom from './CancellationAccom';
3
2
  import CancellationExcursion from './CancellationExcursion';
4
3
  import CancellationTransfer from './CancellationTransfer';
@@ -1,19 +1,8 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
2
  import Chip from '../../../atoms/Chip/Chip';
14
3
  import TextWithIcon from '../../../molecules/TextWithIcon/TextWithIcon';
15
4
  import './TabCancellationPolicyLayout.css';
16
5
  export default function TabCancellationPolicyLayout(props) {
17
6
  var title = props.title, icon = props.icon, isOnRequest = props.isOnRequest, children = props.children, image = props.image, header = props.header;
18
- return (_jsxs("div", __assign({ className: "details-cancellation-policy__layout" }, { children: [_jsxs(TextWithIcon, __assign({ icon: icon, color: isOnRequest ? 'yellow' : 'accent', textVariant: "bold" }, { children: [title, isOnRequest && _jsx(Chip, __assign({ color: "yellow" }, { children: "On request" }))] })), _jsxs("div", __assign({ className: "details-cancellation-policy__layout-flex" }, { children: [_jsx("figure", { children: _jsx("img", { src: image, alt: title, width: 400, height: 400 }) }), _jsxs("div", __assign({ className: "details-cancellation-policy__layout-content" }, { children: [_jsx("div", __assign({ className: "details-cancellation-policy__layout-content-header" }, { children: header })), _jsx("div", __assign({ className: "details-cancellation-policy__layout-content-body" }, { children: children }))] }))] }))] })));
7
+ return (_jsxs("div", { className: "details-cancellation-policy__layout", children: [_jsxs(TextWithIcon, { icon: icon, color: isOnRequest ? 'yellow' : 'accent', textVariant: "bold", children: [title, isOnRequest && _jsx(Chip, { color: "yellow", children: "On request" })] }), _jsxs("div", { className: "details-cancellation-policy__layout-flex", children: [_jsx("figure", { children: _jsx("img", { src: image, alt: title, width: 400, height: 400 }) }), _jsxs("div", { className: "details-cancellation-policy__layout-content", children: [_jsx("div", { className: "details-cancellation-policy__layout-content-header", children: header }), _jsx("div", { className: "details-cancellation-policy__layout-content-body", children: children })] })] })] }));
19
8
  }
@@ -42,5 +42,5 @@ import TabServiceDetails from './TabServiceDetails';
42
42
  */
43
43
  export var Accommodation = function (props) {
44
44
  var images = props.images, isOnRequest = props.isOnRequest, rest = __rest(props, ["images", "isOnRequest"]);
45
- return (_jsx(TabServiceDetails.Layout, __assign({ title: "Accommodation", icon: "accom", isOnRequest: isOnRequest, images: images, mobileContent: _jsx("div", __assign({ className: "mt-8" }, { children: _jsx(DetailsContentAccom.Body, __assign({}, rest)) })) }, { children: _jsx(DetailsContentAccom, __assign({}, rest)) })));
45
+ return (_jsx(TabServiceDetails.Layout, { title: "Accommodation", icon: "accom", isOnRequest: isOnRequest, images: images, mobileContent: _jsx("div", { className: "mt-8", children: _jsx(DetailsContentAccom.Body, __assign({}, rest)) }), children: _jsx(DetailsContentAccom, __assign({}, rest)) }));
46
46
  };
@@ -1,17 +1,6 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
2
  import Chip from '../../atoms/Chip/Chip';
14
3
  export var DetailContentTransfer = function (props) {
15
4
  var pax = props.pax, clientType = props.clientType, carName = props.carName, airConditioning = props.airConditioning, luggageTruck = props.luggageTruck;
16
- return (_jsxs("div", __assign({ className: "flex gap-4" }, { children: [_jsx(Chip, { type: "outline", color: "brand", label: pax, leadingIcon: "user", isBlackText: true }), _jsx(Chip, { type: "outline", color: "brand", label: "Client type: ".concat(clientType), leadingIcon: "user", isBlackText: true }), _jsx(Chip, { type: "outline", color: "brand", label: carName, leadingIcon: "car", isBlackText: true }), airConditioning && (_jsx(Chip, { type: "outline", color: "brand", label: "Air conditioning", leadingIcon: "air", isBlackText: true })), luggageTruck && (_jsx(Chip, { type: "outline", color: "brand", label: "Luggage truck: ".concat(luggageTruck > 1 ? "x".concat(luggageTruck) : luggageTruck), leadingIcon: "luggage", isBlackText: true }))] })));
5
+ return (_jsxs("div", { className: "flex gap-4", children: [_jsx(Chip, { type: "outline", color: "brand", label: pax, leadingIcon: "user", isBlackText: true }), _jsx(Chip, { type: "outline", color: "brand", label: "Client type: ".concat(clientType), leadingIcon: "user", isBlackText: true }), _jsx(Chip, { type: "outline", color: "brand", label: carName, leadingIcon: "car", isBlackText: true }), airConditioning && (_jsx(Chip, { type: "outline", color: "brand", label: "Air conditioning", leadingIcon: "air", isBlackText: true })), luggageTruck && (_jsx(Chip, { type: "outline", color: "brand", label: "Luggage truck: ".concat(luggageTruck > 1 ? "x".concat(luggageTruck) : luggageTruck), leadingIcon: "luggage", isBlackText: true }))] }));
17
6
  };
@@ -41,7 +41,7 @@ import TextWithIcon from '../../molecules/TextWithIcon/TextWithIcon';
41
41
  */
42
42
  var DetailsContentAccomBody = function (props) {
43
43
  var roomsInfo = props.roomsInfo, globalAmenities = props.globalAmenities;
44
- return (_jsxs("div", __assign({ className: "space-y-4" }, { children: [_jsx("div", __assign({ className: "grid grid-cols-2 gap-x-4" }, { children: roomsInfo.map(function (room, index) { return (_jsxs("div", __assign({ className: "space-y-4" }, { children: [_jsx(TextWithIcon, __assign({ icon: "accom", textVariant: "bold", textSize: "sm" }, { children: room.roomName })), _jsxs("div", __assign({ className: "flex flex-wrap gap-2" }, { children: [_jsxs(Chip, __assign({ color: "brand", type: "outline", leadingIcon: "user", isBlackText: true }, { children: [room.roomPax, " pax"] })), _jsx(Chip, __assign({ color: "brand", type: "outline", leadingIcon: "user", isBlackText: true }, { children: room.clientType })), _jsx(Chip, __assign({ color: "brand", type: "outline", leadingIcon: "utensils", isBlackText: true }, { children: room.mealPlan }))] })), _jsx("div", __assign({ className: "flex flex-wrap gap-2" }, { children: room.roomAmenities.map(function (amenity, index) { return (_jsx(Chip, __assign({ color: "accent", type: "outline", isBlackText: true }, { children: amenity }), "ra-".concat(index))); }) }))] }), "ri-".concat(index))); }) })), _jsxs("div", __assign({ className: "grid grid-cols-2 gap-x-8" }, { children: [_jsx(GlobalAmenities, { amenities: globalAmenities }), _jsx(CardServiceAccom, __assign({ className: "flex items-center justify-center" }, { children: _jsx(Text, __assign({ variant: "bold" }, { children: "Coming soon" })) }))] }))] })));
44
+ return (_jsxs("div", { className: "space-y-4", children: [_jsx("div", { className: "grid grid-cols-2 gap-x-4", children: roomsInfo.map(function (room, index) { return (_jsxs("div", { className: "space-y-4", children: [_jsx(TextWithIcon, { icon: "accom", textVariant: "bold", textSize: "sm", children: room.roomName }), _jsxs("div", { className: "flex flex-wrap gap-2", children: [_jsxs(Chip, { color: "brand", type: "outline", leadingIcon: "user", isBlackText: true, children: [room.roomPax, " pax"] }), _jsx(Chip, { color: "brand", type: "outline", leadingIcon: "user", isBlackText: true, children: room.clientType }), _jsx(Chip, { color: "brand", type: "outline", leadingIcon: "utensils", isBlackText: true, children: room.mealPlan })] }), _jsx("div", { className: "flex flex-wrap gap-2", children: room.roomAmenities.map(function (amenity, index) { return (_jsx(Chip, { color: "accent", type: "outline", isBlackText: true, children: amenity }, "ra-".concat(index))); }) })] }, "ri-".concat(index))); }) }), _jsxs("div", { className: "grid grid-cols-2 gap-x-8", children: [_jsx(GlobalAmenities, { amenities: globalAmenities }), _jsx(CardServiceAccom, { className: "flex items-center justify-center", children: _jsx(Text, { variant: "bold", children: "Coming soon" }) })] })] }));
45
45
  };
46
46
  /**
47
47
  * Details content for the Accommodation component.
@@ -60,6 +60,6 @@ var DetailsContentAccomBody = function (props) {
60
60
  export function DetailsContentAccom(props) {
61
61
  var roomTitle = props.roomTitle, roomDescription = props.roomDescription, rest = __rest(props, ["roomTitle", "roomDescription"]);
62
62
  var isMobile = useMobile(1280).isMobile;
63
- return (_jsxs("div", __assign({ className: "space-y-6" }, { children: [_jsxs("div", __assign({ className: "space-y-4" }, { children: [_jsx(TextWithBorderBottom, __assign({ variant: "bold", size: "xl" }, { children: roomTitle })), _jsx(Text, __assign({ variant: "medium", leading: "5" }, { children: roomDescription }))] })), !isMobile && _jsx(DetailsContentAccomBody, __assign({}, rest))] })));
63
+ return (_jsxs("div", { className: "space-y-6", children: [_jsxs("div", { className: "space-y-4", children: [_jsx(TextWithBorderBottom, { variant: "bold", size: "xl", children: roomTitle }), _jsx(Text, { variant: "medium", leading: "5", children: roomDescription })] }), !isMobile && _jsx(DetailsContentAccomBody, __assign({}, rest))] }));
64
64
  }
65
65
  DetailsContentAccom.Body = DetailsContentAccomBody;