@bookolosystem/engine 4.4.2 → 4.4.4

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 (367) hide show
  1. package/assets/{f785e42/AsideFeatures.COiwmqdD.js → 30e9e45/AsideFeatures.BV2ca2i5.js} +1 -1
  2. package/assets/{f785e42/AsideOrderSummary.D8e93W2R.js → 30e9e45/AsideOrderSummary.Brt7K9DI.js} +1 -1
  3. package/assets/{f785e42/AsideSummary.BgeuEsGw.js → 30e9e45/AsideSummary.BB61VZup.js} +1 -1
  4. package/assets/{f785e42/AuthInfo.jJe7rHuW.js → 30e9e45/AuthInfo.BVt9fvHm.js} +1 -1
  5. package/assets/{f785e42/AuthRegistrationForm.D9yqI16w.js → 30e9e45/AuthRegistrationForm.f0wrP9Zp.js} +1 -1
  6. package/assets/{f785e42/Button.DSwXM1vM.js → 30e9e45/Button.BeiE5OVg.js} +1 -1
  7. package/assets/30e9e45/ButtonBordered.D3aU6uqY.js +1 -0
  8. package/assets/30e9e45/ButtonBorderedThin.gaV5-h3U.js +1 -0
  9. package/assets/30e9e45/ButtonGhosted.CXMzrzFu.js +1 -0
  10. package/assets/30e9e45/ButtonMuted.YLWU8RJN.js +1 -0
  11. package/assets/{f785e42/CalendarFlexible.CEVBs1eN.js → 30e9e45/CalendarFlexible.Du--l1Bx.js} +1 -1
  12. package/assets/{f785e42/Check.1kttjrU5.js → 30e9e45/Check.C3aGjVXm.js} +1 -1
  13. package/assets/{f785e42/CheckinApp.BEzPf4Yi.js → 30e9e45/CheckinApp.CTe4Ix5S.js} +1 -1
  14. package/assets/{f785e42/Circle.ByhP73-w.js → 30e9e45/Circle.DpT3TU5e.js} +1 -1
  15. package/assets/{f785e42/Control.l_F0QhcO.js → 30e9e45/Control.B1vJnLqF.js} +1 -1
  16. package/assets/{f785e42/ControlTelCountryCode.CcdH-ptn.js → 30e9e45/ControlTelCountryCode.CuyNH30D.js} +1 -1
  17. package/assets/{f785e42/DatePicker.Cc0EtZjK.js → 30e9e45/DatePicker.BmuyQEzm.js} +1 -1
  18. package/assets/{f785e42/Details.y2CqCSTf.js → 30e9e45/Details.C32zvzr6.js} +1 -1
  19. package/assets/{f785e42/DialogContent.tdqsNrXE.js → 30e9e45/DialogContent.BGzVxgDS.js} +1 -1
  20. package/assets/{f785e42/Drawer.BtODZWBW.js → 30e9e45/Drawer.DdkpOOsI.js} +1 -1
  21. package/assets/{f785e42/Field.Bw7PCeQ1.js → 30e9e45/Field.BDHsJbAD.js} +1 -1
  22. package/assets/{f785e42/Footer.C6I-AoKD.js → 30e9e45/Footer.nR8MInAn.js} +1 -1
  23. package/assets/{f785e42/FooterLogo.CLtj0dj2.js → 30e9e45/FooterLogo.IpxH1_EO.js} +1 -1
  24. package/assets/{f785e42/Header.CxfzOuTi.js → 30e9e45/Header.BmqqLE6u.js} +1 -1
  25. package/assets/{f785e42/HeaderLanguagePopover.nkhRe96-.js → 30e9e45/HeaderLanguagePopover.D5KQEp1a.js} +1 -1
  26. package/assets/{f785e42/Image.D7YhPEgz.js → 30e9e45/Image.DomBngtp.js} +1 -1
  27. package/assets/{f785e42/InputMask.Bjs0czKj.js → 30e9e45/InputMask.Do9BKfpc.js} +1 -1
  28. package/assets/30e9e45/Main.CAF1TXNp.js +1 -0
  29. package/assets/{f785e42/OrderAccommodation.BUC3iHY0.js → 30e9e45/OrderAccommodation.sqWxoXog.js} +1 -1
  30. package/assets/{f785e42/OrderConfirmedStatus.DymNVdn6.js → 30e9e45/OrderConfirmedStatus.di7PF2gx.js} +1 -1
  31. package/assets/{f785e42/OrderHeader.B-gKOwxl.js → 30e9e45/OrderHeader.5e_3yp6r.js} +1 -1
  32. package/assets/{f785e42/PackageDetailDialogContent.BOOjo_oC.js → 30e9e45/PackageDetailDialogContent.TEs_OhoU.js} +1 -1
  33. package/assets/{f785e42/Popover.Cd-ly7x7.js → 30e9e45/Popover.ChICNzsj.js} +1 -1
  34. package/assets/{f785e42/ReservationEditInfo.CIGUHBBu.js → 30e9e45/ReservationEditInfo.DLAQf0qa.js} +1 -1
  35. package/assets/{f785e42/RoomDetailDialog.CwCxDUXv.js → 30e9e45/RoomDetailDialog.BPXu75lP.js} +1 -1
  36. package/assets/{f785e42/RoomDetailDialogContent.Br2LC7Su.js → 30e9e45/RoomDetailDialogContent.DYtmm89J.js} +1 -1
  37. package/assets/{f785e42/RoomSelect.D3n_KWfl.js → 30e9e45/RoomSelect.Xx2MyjF6.js} +1 -1
  38. package/assets/{f785e42/TextContent.D8bbLDgx.js → 30e9e45/TextContent.Dkl4t8md.js} +1 -1
  39. package/assets/{f785e42/TooltipCursor.ifkFvkBI.js → 30e9e45/TooltipCursor.Cm0IrlzY.js} +1 -1
  40. package/assets/{f785e42/WellnessDetailDialog.sOgi7LNq.js → 30e9e45/WellnessDetailDialog.Bf2Hqxh7.js} +1 -1
  41. package/assets/{f785e42/_...path_.B1vQ0yTt.js → 30e9e45/_...path_.DVuHTtMY.js} +1 -1
  42. package/assets/{f785e42/_code_.iRJURqUl.js → 30e9e45/_code_.BQBxQYFa.js} +1 -1
  43. package/assets/{f785e42/_id_.CoI4Q5Am.js → 30e9e45/_id_.DkvSYBix.js} +1 -1
  44. package/assets/{f785e42/_id_.BTfZK9z2.js → 30e9e45/_id_.kmfPjJ1c.js} +1 -1
  45. package/assets/{f785e42/_uuid_._2C6HTjE.js → 30e9e45/_uuid_.BNcq7gF7.js} +1 -1
  46. package/assets/{f785e42/_uuid_.C3heoeT9.js → 30e9e45/_uuid_.BYdRBN31.js} +1 -1
  47. package/assets/{f785e42/_uuid_.KBA_xyl7.js → 30e9e45/_uuid_.BYod6DOy.js} +1 -1
  48. package/assets/{f785e42/_uuid_.DmWjDAcd.js → 30e9e45/_uuid_.CQbIqxET.js} +1 -1
  49. package/assets/{f785e42/_uuid_.DuAZY6Zm.js → 30e9e45/_uuid_.Cn8fb7E9.js} +1 -1
  50. package/assets/{f785e42/_uuid_.CJYs3QhI.js → 30e9e45/_uuid_.DNMy_ZE9.js} +1 -1
  51. package/assets/{f785e42/_uuid_.Ccr7O8pm.js → 30e9e45/_uuid_.DSNg-d22.js} +1 -1
  52. package/assets/30e9e45/accommodation-terms.Cni9vAeG.js +1 -0
  53. package/assets/{59efd6d/account.CQaAPccx.js → 30e9e45/account.BvHfMCcs.js} +1 -1
  54. package/assets/{59efd6d/account.C9drfXlC.js → 30e9e45/account.DbDvl-51.js} +1 -1
  55. package/assets/{f785e42/app.ce.COA0DnRK.js → 30e9e45/app.ce.CzYpfCUg.js} +2 -2
  56. package/assets/{f785e42/calendar.Cij86reI.js → 30e9e45/calendar.3fDJgNdN.js} +1 -1
  57. package/assets/{f785e42/calendar.CvOiTvHK.js → 30e9e45/calendar.DMIWPtml.js} +1 -1
  58. package/assets/{f785e42/calendarFlexibleDialog.Lm32GQ8D.js → 30e9e45/calendarFlexibleDialog.iE6_fSo6.js} +1 -1
  59. package/assets/{f785e42/chain.BeYCgXY7.js → 30e9e45/chain.Q5i9_6-r.js} +1 -1
  60. package/assets/{f785e42/client.DrMpyevc.js → 30e9e45/client.DrlPwpqz.js} +1 -1
  61. package/assets/30e9e45/config.DhUrL--N.js +1 -0
  62. package/assets/30e9e45/countries.DXV0Z9gI.js +1 -0
  63. package/assets/{f785e42/dateFormatter.dDaZZox0.js → 30e9e45/dateFormatter.Bg9EaFxG.js} +1 -1
  64. package/assets/{f785e42/details.BGQ4YYFa.js → 30e9e45/details.BX3tYU5X.js} +1 -1
  65. package/assets/{f785e42/dist.DK8rat2p.js → 30e9e45/dist.C_hSMUEr.js} +1 -1
  66. package/assets/{f785e42/edit.CjQiqXKN.js → 30e9e45/edit.CAkLqCwP.js} +1 -1
  67. package/assets/{59efd6d/fancybox.CnvI7YCi.js → 30e9e45/fancybox.MtRnSz01.js} +1 -1
  68. package/assets/30e9e45/faq.u4Dsqisw.js +1 -0
  69. package/assets/30e9e45/formatPrice.DafIJMfZ.js +1 -0
  70. package/assets/{f785e42/hotel.BmQNwmkI.js → 30e9e45/hotel.BG-sRF7k.js} +1 -1
  71. package/assets/{f785e42/location.C9x6vzg-.js → 30e9e45/location.wsC0XF2j.js} +2 -2
  72. package/assets/{f785e42/login.BXgUxwJJ.js → 30e9e45/login.DfPhIuVW.js} +1 -1
  73. package/assets/{f785e42/marketing-terms.BvAQfWVF.js → 30e9e45/marketing-terms.DYn-mbbA.js} +1 -1
  74. package/assets/{f785e42/nav.CGVHoM59.js → 30e9e45/nav.DPsV9SaF.js} +1 -1
  75. package/assets/{f785e42/order.LEc70bzD.js → 30e9e45/order.L3X_GhfV.js} +1 -1
  76. package/assets/{f785e42/orders.CNYo8UXg.js → 30e9e45/orders.C15_pKr9.js} +1 -1
  77. package/assets/{f785e42/packages.C83hDrok.js → 30e9e45/packages.BUSZ3CSP.js} +1 -1
  78. package/assets/{f785e42/packages.DoaTmGZq.js → 30e9e45/packages.CVHAM_Aq.js} +1 -1
  79. package/assets/30e9e45/pages.CzLVg47B.js +1 -0
  80. package/assets/30e9e45/pages.Dg3pZWtm.js +1 -0
  81. package/assets/{f785e42/params.DR2mabOE.js → 30e9e45/params.IVBLxJy4.js} +1 -1
  82. package/assets/{f785e42/playground.8Tm_qVVL.js → 30e9e45/playground.0UNlTRmO.js} +1 -1
  83. package/assets/{f785e42/points.eiYNquqf.js → 30e9e45/points.B-ygHBPA.js} +1 -1
  84. package/assets/30e9e45/privacy-policy.B-bdiFOp.js +1 -0
  85. package/assets/{f785e42/ratings.DoQpk5ST.js → 30e9e45/ratings.B0LXjJYc.js} +1 -1
  86. package/assets/{f785e42/register.DmmCNM-C.js → 30e9e45/register.Bq2WPVqo.js} +1 -1
  87. package/assets/{f785e42/request.CQ1-ZILq.js → 30e9e45/request.CjfhhzoL.js} +1 -1
  88. package/assets/{f785e42/reservation.BzOjnZgI.js → 30e9e45/reservation.BHxfogie.js} +1 -1
  89. package/assets/{59efd6d/reservation.ByiSdN9M.js → 30e9e45/reservation.CZFk7XU8.js} +1 -1
  90. package/assets/{f785e42/rewards.PwxwPzjy.js → 30e9e45/rewards.CrThUBbi.js} +1 -1
  91. package/assets/{f785e42/rooms.CzYCycWd.js → 30e9e45/rooms.5CzDEJxO.js} +1 -1
  92. package/assets/{f785e42/rooms.CgrX_Ptg.js → 30e9e45/rooms.DIXp7WEz.js} +1 -1
  93. package/assets/30e9e45/routeParams.CtmTLgcY.js +1 -0
  94. package/assets/{f785e42/sentry.DCbmNEQc.js → 30e9e45/sentry.KM0m2LRs.js} +1 -1
  95. package/assets/{59efd6d/statusDialog.DTGMi517.js → 30e9e45/statusDialog.BVfGKxZd.js} +1 -1
  96. package/assets/{f785e42/summary.H2NC_tWl.js → 30e9e45/summary.De7kGFht.js} +1 -1
  97. package/assets/30e9e45/terms.EY-_5yFI.js +1 -0
  98. package/assets/{59efd6d/toaster.BPMVOpGu.js → 30e9e45/toaster.FT2nZJ8S.js} +1 -1
  99. package/assets/30e9e45/trade-terms.SQYcVKur.js +1 -0
  100. package/assets/{59efd6d/validateFields.U5Mem6Qw.js → 30e9e45/validateFields.BbPmMvzL.js} +1 -1
  101. package/assets/30e9e45/vendor._wA0akn2.js +10 -0
  102. package/assets/30e9e45/vouchers-terms.CDMtvSXH.js +1 -0
  103. package/assets/{f785e42/vouchers.1OVsKP0Z.js → 30e9e45/vouchers.CBMeSKYI.js} +1 -1
  104. package/assets/{f785e42/vue-router.Ba_I7p6z.js → 30e9e45/vue-router.C4jSbFLR.js} +1 -1
  105. package/assets/30e9e45/wellness-terms.BF32eDwD.js +1 -0
  106. package/assets/{f785e42/wellness.Cl3cM2OC.js → 30e9e45/wellness.DTPgorp9.js} +1 -1
  107. package/assets/9abc863/AsideFeatures.BQVvz4cG.js +1 -0
  108. package/assets/9abc863/AsideOrderSummary.WKel7SKl.js +1 -0
  109. package/assets/9abc863/AsideSummary.BCq7srtx.js +1 -0
  110. package/assets/9abc863/AuthInfo.BpaWz9kZ.js +1 -0
  111. package/assets/9abc863/AuthRegistrationForm.BQEOkh8P.js +1 -0
  112. package/assets/9abc863/Button.DENQlfoV.js +1 -0
  113. package/assets/9abc863/ButtonBordered.Buog5XUd.js +1 -0
  114. package/assets/9abc863/ButtonBorderedThin.DQtk8ygl.js +1 -0
  115. package/assets/9abc863/ButtonGhosted.DtSQuUqd.js +1 -0
  116. package/assets/9abc863/ButtonMuted.ClTzhmGk.js +1 -0
  117. package/assets/9abc863/CalendarFlexible.BFUsglcP.js +1 -0
  118. package/assets/9abc863/Check.CGkdXv8U.js +1 -0
  119. package/assets/9abc863/CheckinApp.XKpaXHHH.js +1 -0
  120. package/assets/9abc863/Circle.BqRlZ-Ni.js +1 -0
  121. package/assets/9abc863/Control.DQeuvn0T.js +1 -0
  122. package/assets/9abc863/ControlTelCountryCode.DCl_oZNm.js +1 -0
  123. package/assets/9abc863/DatePicker.CNLqAKwS.js +1 -0
  124. package/assets/9abc863/Details.CB4_wNS3.js +1 -0
  125. package/assets/9abc863/DialogContent.oj4AjH0A.js +1 -0
  126. package/assets/9abc863/Drawer.DGoXFBU0.js +1 -0
  127. package/assets/9abc863/Field.BhjqVj0S.js +1 -0
  128. package/assets/9abc863/Footer.C7h8sj-G.js +1 -0
  129. package/assets/9abc863/FooterLogo.DrkuhAUv.js +1 -0
  130. package/assets/9abc863/Header.DEPnf9q8.js +1 -0
  131. package/assets/9abc863/HeaderLanguagePopover.DegpljKt.js +1 -0
  132. package/assets/9abc863/Image.3wpjIV-N.js +1 -0
  133. package/assets/9abc863/InputMask.B7-_JM_a.js +1 -0
  134. package/assets/9abc863/Main.CK41faK0.js +1 -0
  135. package/assets/9abc863/OrderAccommodation.C9VudX_y.js +4 -0
  136. package/assets/9abc863/OrderConfirmedStatus.DG6GhTD-.js +1 -0
  137. package/assets/9abc863/OrderHeader.DkonsBL9.js +1 -0
  138. package/assets/9abc863/PackageDetailDialogContent.C7QuaUVb.js +1 -0
  139. package/assets/{59efd6d/Popover.BlJPH0zP.js → 9abc863/Popover.-1SUGtsh.js} +1 -1
  140. package/assets/9abc863/ReservationEditInfo.CFwOVwT6.js +1 -0
  141. package/assets/9abc863/RoomDetailDialog.kQfSl3kd.js +1 -0
  142. package/assets/9abc863/RoomDetailDialogContent.D7S_QzBs.js +1 -0
  143. package/assets/9abc863/RoomSelect.Cq_p2m-f.js +1 -0
  144. package/assets/9abc863/TextContent.CXeKtNsr.js +1 -0
  145. package/assets/9abc863/TooltipCursor.DlKId_P9.js +1 -0
  146. package/assets/9abc863/WellnessDetailDialog.BwawOmjk.js +2 -0
  147. package/assets/9abc863/_...path_.dEILBLU0.js +1 -0
  148. package/assets/9abc863/_code_.C_7B6t1P.js +1 -0
  149. package/assets/9abc863/_id_.DCUz1r6c.js +1 -0
  150. package/assets/9abc863/_id_.dW09gnWq.js +1 -0
  151. package/assets/9abc863/_uuid_.6n3lifxQ.js +1 -0
  152. package/assets/9abc863/_uuid_.BJQtn71-.js +1 -0
  153. package/assets/9abc863/_uuid_.BLIrenyi.js +1 -0
  154. package/assets/9abc863/_uuid_.CYTCmn3C.js +1 -0
  155. package/assets/9abc863/_uuid_.Ce6nw3Xr.js +1 -0
  156. package/assets/9abc863/_uuid_.D1OQ86_l.js +1 -0
  157. package/assets/9abc863/_uuid_.tIDrKfzc.js +1 -0
  158. package/assets/9abc863/accommodation-terms.CnlV_Dzs.js +1 -0
  159. package/assets/{f785e42/account.BsTL4CgW.js → 9abc863/account.7ZB6Hvpd.js} +1 -1
  160. package/assets/{f785e42/account.BwfUSF-Q.js → 9abc863/account.BDzjPnm1.js} +1 -1
  161. package/assets/9abc863/app.ce.G58KVpNh.js +2 -0
  162. package/assets/9abc863/calendar.CTxPficj.js +1 -0
  163. package/assets/9abc863/calendar.DrZjOG3Q.js +1 -0
  164. package/assets/9abc863/calendarFlexibleDialog.CiT3ybyU.js +1 -0
  165. package/assets/9abc863/chain.CE4fk6RC.js +38 -0
  166. package/assets/9abc863/client.B35Zk1Vj.js +1 -0
  167. package/assets/9abc863/config.DN5PrzYj.js +1 -0
  168. package/assets/9abc863/countries.DHA-CuXb.js +1 -0
  169. package/assets/9abc863/dateFormatter.Cdnyqc1C.js +1 -0
  170. package/assets/9abc863/details.BEoQsFfe.js +1 -0
  171. package/assets/9abc863/dist.BBvqMcN_.js +1 -0
  172. package/assets/9abc863/dist.b2zlMDTZ.js +7 -0
  173. package/assets/9abc863/edit.C-Yrw0TG.js +1 -0
  174. package/assets/{59efd6d/runtime.Dz7wEVx-.js → 9abc863/experimental.Cr2dpMSf.js} +1 -1
  175. package/assets/{f785e42/fancybox.CJsv9BnL.js → 9abc863/fancybox.BbYneWyM.js} +1 -1
  176. package/assets/9abc863/faq.CwgUlk2b.js +1 -0
  177. package/assets/9abc863/formatPrice.BoNSJ3UV.js +1 -0
  178. package/assets/9abc863/hotel.CHXHOAo8.js +1 -0
  179. package/assets/{59efd6d/location.DzsfXSRv.js → 9abc863/location.BTumxy6W.js} +2 -2
  180. package/assets/9abc863/login.C22c1Cam.js +1 -0
  181. package/assets/9abc863/marketing-terms.BNJlh6LS.js +5 -0
  182. package/assets/9abc863/nav.aNfcLnKd.js +1 -0
  183. package/assets/{59efd6d/order.DWEJt9TP.js → 9abc863/order.Bi7Btnb0.js} +1 -1
  184. package/assets/9abc863/orders.C46CRk3R.js +1 -0
  185. package/assets/9abc863/packages.DsjMQe5W.js +1 -0
  186. package/assets/{59efd6d/packages.DArElInT.js → 9abc863/packages.T-RS_YY1.js} +1 -1
  187. package/assets/9abc863/pages.BSv8hla_.js +1 -0
  188. package/assets/9abc863/pages.CIiNQ8uX.js +1 -0
  189. package/assets/9abc863/params.BYxK9z6w.js +1 -0
  190. package/assets/9abc863/playground.WhUjfMIP.js +1 -0
  191. package/assets/9abc863/points.CVjznhdz.js +1 -0
  192. package/assets/9abc863/privacy-policy.CGT50KhE.js +1 -0
  193. package/assets/9abc863/ratings.BI2RiPA4.js +1 -0
  194. package/assets/9abc863/register.hz6QMgCO.js +1 -0
  195. package/assets/9abc863/request.TS94V7b8.js +1 -0
  196. package/assets/{59efd6d/reservation.DxapSJYL.js → 9abc863/reservation.C4YvgAfn.js} +1 -1
  197. package/assets/{f785e42/reservation.Co3PKchx.js → 9abc863/reservation.DewbR-PT.js} +1 -1
  198. package/assets/9abc863/rewards.DjhBa_UN.js +1 -0
  199. package/assets/9abc863/rooms.6URoZiB2.js +1 -0
  200. package/assets/9abc863/rooms.C22-gNSF.js +1 -0
  201. package/assets/9abc863/routeParams.DU9zPEL5.js +1 -0
  202. package/assets/9abc863/sentry.BdrnpOuv.js +8 -0
  203. package/assets/{f785e42/statusDialog.CWPzBABk.js → 9abc863/statusDialog.CHyOH2aw.js} +1 -1
  204. package/assets/9abc863/summary.Cxx9UDVw.js +1 -0
  205. package/assets/9abc863/terms.cTHjnWYb.js +1 -0
  206. package/assets/{f785e42/toaster.DOHhVfsI.js → 9abc863/toaster.Duospl3o.js} +1 -1
  207. package/assets/9abc863/trade-terms.C80Kz5m2.js +1 -0
  208. package/assets/{f785e42/validateFields.Jh9WdbVA.js → 9abc863/validateFields.D6KwIc71.js} +1 -1
  209. package/assets/{f785e42/vendor.BGu2qkTq.js → 9abc863/vendor.UEAfe26O.js} +4 -4
  210. package/assets/9abc863/vouchers-terms.BWQYzdtq.js +1 -0
  211. package/assets/9abc863/vouchers.B4XC4q7V.js +1 -0
  212. package/assets/9abc863/vue-router.Bw-Vu8cJ.js +1 -0
  213. package/assets/9abc863/wellness-terms.CiXxdQXm.js +1 -0
  214. package/assets/9abc863/wellness.LEkcp4oM.js +1 -0
  215. package/assets/versions.json +1 -1
  216. package/index.min.js +2 -2
  217. package/package.json +1 -1
  218. package/assets/59efd6d/AsideFeatures.DcphzMEG.js +0 -1
  219. package/assets/59efd6d/AsideOrderSummary.CQeLd7kg.js +0 -1
  220. package/assets/59efd6d/AsideSummary.DHcBK-yA.js +0 -1
  221. package/assets/59efd6d/AuthInfo.plfj_ChM.js +0 -1
  222. package/assets/59efd6d/AuthRegistrationForm.CHXbZYcs.js +0 -1
  223. package/assets/59efd6d/Button.DbWAH-EO.js +0 -1
  224. package/assets/59efd6d/ButtonBordered.CFvagATf.js +0 -1
  225. package/assets/59efd6d/ButtonBorderedThin.BngufoXX.js +0 -1
  226. package/assets/59efd6d/ButtonGhosted.Bn0EbKpm.js +0 -1
  227. package/assets/59efd6d/ButtonMuted.CN61yvR6.js +0 -1
  228. package/assets/59efd6d/CalendarFlexible.DHT0QXBH.js +0 -1
  229. package/assets/59efd6d/Check.qoLMunrm.js +0 -1
  230. package/assets/59efd6d/CheckinApp.lKvpDOVO.js +0 -1
  231. package/assets/59efd6d/Circle.C_AtGmX4.js +0 -1
  232. package/assets/59efd6d/Control._MdIIw8Y.js +0 -1
  233. package/assets/59efd6d/ControlTelCountryCode.B8HrOyXn.js +0 -1
  234. package/assets/59efd6d/DatePicker.DnlJtvI2.js +0 -1
  235. package/assets/59efd6d/Details.B860c5Vv.js +0 -1
  236. package/assets/59efd6d/DialogContent.WQaRHaDq.js +0 -1
  237. package/assets/59efd6d/Drawer.DiDqHHmX.js +0 -1
  238. package/assets/59efd6d/Field.CRhy-5Pw.js +0 -1
  239. package/assets/59efd6d/Footer.DcuW-ezp.js +0 -1
  240. package/assets/59efd6d/FooterLogo.18F_PA8-.js +0 -1
  241. package/assets/59efd6d/Header.BileLeyS.js +0 -1
  242. package/assets/59efd6d/HeaderLanguagePopover.BBpPqX4o.js +0 -1
  243. package/assets/59efd6d/Image.CPtwJhB-.js +0 -1
  244. package/assets/59efd6d/InputMask.DtqtIITf.js +0 -1
  245. package/assets/59efd6d/Main.DfN8XE1w.js +0 -1
  246. package/assets/59efd6d/OrderAccommodation.BB1syOCb.js +0 -4
  247. package/assets/59efd6d/OrderConfirmedStatus.CMAqMQ6v.js +0 -1
  248. package/assets/59efd6d/OrderHeader.BrDzIYCl.js +0 -1
  249. package/assets/59efd6d/PackageDetailDialogContent.B42R5J15.js +0 -1
  250. package/assets/59efd6d/ReservationEditInfo.TxSOJ2of.js +0 -1
  251. package/assets/59efd6d/RoomDetailDialog.B2K-UMGh.js +0 -1
  252. package/assets/59efd6d/RoomDetailDialogContent.CBD-Er-H.js +0 -1
  253. package/assets/59efd6d/RoomSelect.JS1C9IrQ.js +0 -1
  254. package/assets/59efd6d/SummaryBar.ogMQbSsj.js +0 -1
  255. package/assets/59efd6d/TextContent.BGMX9VH7.js +0 -1
  256. package/assets/59efd6d/TooltipCursor.RjyFR3Os.js +0 -1
  257. package/assets/59efd6d/VoucherCustomDialog.CNH-3-f1.js +0 -2
  258. package/assets/59efd6d/_...path_.S8Ssh1EN.js +0 -1
  259. package/assets/59efd6d/_code_.Jqakgvqf.js +0 -1
  260. package/assets/59efd6d/_id_.BSq6yO4p.js +0 -1
  261. package/assets/59efd6d/_id_.DgZaeoZx.js +0 -1
  262. package/assets/59efd6d/_uuid_.B5U0_lIW.js +0 -1
  263. package/assets/59efd6d/_uuid_.BeXKV4Ia.js +0 -1
  264. package/assets/59efd6d/_uuid_.Bs9qAAI3.js +0 -1
  265. package/assets/59efd6d/_uuid_.CXtPf-ic.js +0 -1
  266. package/assets/59efd6d/_uuid_.ChiVeSYU.js +0 -1
  267. package/assets/59efd6d/_uuid_.D2MjAQN5.js +0 -1
  268. package/assets/59efd6d/_uuid_.Dipf2-TL.js +0 -1
  269. package/assets/59efd6d/accommodation-terms.DHeMqoru.js +0 -1
  270. package/assets/59efd6d/app.ce.ByQyzaNP.js +0 -2
  271. package/assets/59efd6d/calendar.4Xo1CX2z.js +0 -1
  272. package/assets/59efd6d/calendar.BSVkCEeO.js +0 -1
  273. package/assets/59efd6d/calendarFlexibleDialog.YSmznQv6.js +0 -1
  274. package/assets/59efd6d/chain.Co7KQzd8.js +0 -38
  275. package/assets/59efd6d/client.BRrwKU3d.js +0 -1
  276. package/assets/59efd6d/config.CUL69a1c.js +0 -1
  277. package/assets/59efd6d/countries.WLK3a7wD.js +0 -1
  278. package/assets/59efd6d/dateFormatter.92KVwlJm.js +0 -1
  279. package/assets/59efd6d/details.Bo0FyoGd.js +0 -1
  280. package/assets/59efd6d/dist.C3sXx7lf.js +0 -1
  281. package/assets/59efd6d/dist.DYvVxqLr.js +0 -7
  282. package/assets/59efd6d/edit.Cib2VxLT.js +0 -1
  283. package/assets/59efd6d/faq.CzgA58V6.js +0 -1
  284. package/assets/59efd6d/formatPrice.BQKQYNVF.js +0 -1
  285. package/assets/59efd6d/hotel.CAxrCWfX.js +0 -1
  286. package/assets/59efd6d/login.THOc7kSm.js +0 -1
  287. package/assets/59efd6d/marketing-terms.CVB5zBWh.js +0 -5
  288. package/assets/59efd6d/nav.6IVJA3hs.js +0 -1
  289. package/assets/59efd6d/orders.DIciGpJS.js +0 -1
  290. package/assets/59efd6d/packages.DwKKB_Wo.js +0 -1
  291. package/assets/59efd6d/pages.BAK7UASw.js +0 -1
  292. package/assets/59efd6d/pages.C1-mEEDK.js +0 -1
  293. package/assets/59efd6d/params.CL5uCUi9.js +0 -1
  294. package/assets/59efd6d/playground.BIig6P7E.js +0 -1
  295. package/assets/59efd6d/points.kJY0itYF.js +0 -1
  296. package/assets/59efd6d/privacy-policy.Czq6uOH9.js +0 -1
  297. package/assets/59efd6d/ratings.yh7j6-Vm.js +0 -1
  298. package/assets/59efd6d/register.CQAkTQFp.js +0 -1
  299. package/assets/59efd6d/request.VkbzBP5M.js +0 -1
  300. package/assets/59efd6d/rewards.CaIontYd.js +0 -1
  301. package/assets/59efd6d/rooms.B32-mruI.js +0 -1
  302. package/assets/59efd6d/rooms.Bck9Ktji.js +0 -1
  303. package/assets/59efd6d/routeParams.Ognkkgcz.js +0 -1
  304. package/assets/59efd6d/sentry.DH0RpYWG.js +0 -8
  305. package/assets/59efd6d/summary.C9c_pOT9.js +0 -1
  306. package/assets/59efd6d/terms.DwdcRCPR.js +0 -1
  307. package/assets/59efd6d/trade-terms.B6-c4gxb.js +0 -1
  308. package/assets/59efd6d/vendor.DFPH0ukW.js +0 -10
  309. package/assets/59efd6d/vouchers-terms.CqFh07Pp.js +0 -1
  310. package/assets/59efd6d/vouchers.BSPpCLAP.js +0 -1
  311. package/assets/59efd6d/vue-router.BoW2wX5z.js +0 -1
  312. package/assets/59efd6d/wellness-terms.CAqCEtfw.js +0 -1
  313. package/assets/59efd6d/wellness.D46Lh1V_.js +0 -1
  314. package/assets/f785e42/ButtonBordered.CP-VyF36.js +0 -1
  315. package/assets/f785e42/ButtonBorderedThin.jONrcTDH.js +0 -1
  316. package/assets/f785e42/ButtonGhosted.E76FJ-Mf.js +0 -1
  317. package/assets/f785e42/ButtonMuted.ClXJRdlP.js +0 -1
  318. package/assets/f785e42/Main.B6URJ_XN.js +0 -1
  319. package/assets/f785e42/accommodation-terms.meT5Ns8_.js +0 -1
  320. package/assets/f785e42/config.tpbdABlZ.js +0 -1
  321. package/assets/f785e42/countries.CE6bN6gS.js +0 -1
  322. package/assets/f785e42/faq.BVEgi7EE.js +0 -1
  323. package/assets/f785e42/formatPrice.BEcRqhQn.js +0 -1
  324. package/assets/f785e42/pages.DIf-_Lwj.js +0 -1
  325. package/assets/f785e42/pages._B8SYS_w.js +0 -1
  326. package/assets/f785e42/privacy-policy.K7_5U-6w.js +0 -1
  327. package/assets/f785e42/routeParams.6hpnfcMT.js +0 -1
  328. package/assets/f785e42/terms.BqOMJDFo.js +0 -1
  329. package/assets/f785e42/trade-terms.D83lptj5.js +0 -1
  330. package/assets/f785e42/vouchers-terms.Dg-QZY_H.js +0 -1
  331. package/assets/f785e42/wellness-terms.D9DPXL0C.js +0 -1
  332. /package/assets/{59efd6d/_plugin-vue_export-helper.CuP35eLq.js → 30e9e45/_plugin-vue_export-helper.C0he-f43.js} +0 -0
  333. /package/assets/{59efd6d → 30e9e45}/app.CJTXFzvz.png +0 -0
  334. /package/assets/{59efd6d/basePath.BnA_uz_7.js → 30e9e45/basePath.r_cJ2rNk.js} +0 -0
  335. /package/assets/{59efd6d/closeDetails.DGKC_5ms.js → 30e9e45/closeDetails.DkpsQvZH.js} +0 -0
  336. /package/assets/{59efd6d/dist.S0tDzWRb.js → 30e9e45/dist.Bg1Jxw5z.js} +0 -0
  337. /package/assets/{f785e42/dist.DRl7vaHS.js → 30e9e45/dist.D-oC-Ayb.js} +0 -0
  338. /package/assets/{59efd6d → 30e9e45}/erv.CerNAezh.svg +0 -0
  339. /package/assets/{59efd6d/esm.DfUerpxv.js → 30e9e45/esm.BWWDU1Uq.js} +0 -0
  340. /package/assets/{f785e42/experimental.DlhmGXKW.js → 30e9e45/experimental.CKCA2lzw.js} +0 -0
  341. /package/assets/{59efd6d/getPaymentUrl.CSxF1MBI.js → 30e9e45/getPaymentUrl.CFy-Zfuu.js} +0 -0
  342. /package/assets/{59efd6d/index.es.BTFvRNE7.js → 30e9e45/index.es.ClLP2twn.js} +0 -0
  343. /package/assets/{59efd6d/localeRules.DcjzNGBH.js → 30e9e45/localeRules.Bcy3JgQD.js} +0 -0
  344. /package/assets/{59efd6d/patterns.xZIuXzgX.js → 30e9e45/patterns.NvYoaSWt.js} +0 -0
  345. /package/assets/{59efd6d/plainText.CsaFNMtH.js → 30e9e45/plainText.KchtjZbY.js} +0 -0
  346. /package/assets/{59efd6d/preload.DtURBvkF.js → 30e9e45/preload.BAVX330D.js} +0 -0
  347. /package/assets/{59efd6d/rolldown-runtime.DmxU7x1x.js → 30e9e45/rolldown-runtime.DgnN6u69.js} +0 -0
  348. /package/assets/{59efd6d/signature_pad.BQjw5h_v.js → 30e9e45/signature_pad.D8uLj9gU.js} +0 -0
  349. /package/assets/{59efd6d/staleTimes.Xc2uzF93.js → 30e9e45/staleTimes.DqeAd6cB.js} +0 -0
  350. /package/assets/{59efd6d/togglePassword.BPxRF_R3.js → 30e9e45/togglePassword.CeJbTfKJ.js} +0 -0
  351. /package/assets/{f785e42/_plugin-vue_export-helper.CVuqnCex.js → 9abc863/_plugin-vue_export-helper.C0ijDkGT.js} +0 -0
  352. /package/assets/{f785e42 → 9abc863}/app.CJTXFzvz.png +0 -0
  353. /package/assets/{f785e42/basePath.CZNYxQU8.js → 9abc863/basePath.DKl9za_V.js} +0 -0
  354. /package/assets/{f785e42/closeDetails.Rl_Xi9VJ.js → 9abc863/closeDetails.C8zZD3SJ.js} +0 -0
  355. /package/assets/{f785e42/dist.CR4ffK8_.js → 9abc863/dist.D9SLCwI7.js} +0 -0
  356. /package/assets/{f785e42 → 9abc863}/erv.CerNAezh.svg +0 -0
  357. /package/assets/{f785e42/esm.DHoAkVBq.js → 9abc863/esm.CgggN1_U.js} +0 -0
  358. /package/assets/{f785e42/getPaymentUrl.xa_1GwGz.js → 9abc863/getPaymentUrl.DOaXoJD3.js} +0 -0
  359. /package/assets/{f785e42/index.es.BBH8jX4Z.js → 9abc863/index.es.DgL25r8U.js} +0 -0
  360. /package/assets/{f785e42/localeRules.DuB-8maD.js → 9abc863/localeRules.ISFWYFF6.js} +0 -0
  361. /package/assets/{f785e42/patterns.Bgl0jWnL.js → 9abc863/patterns.CeNuhuLC.js} +0 -0
  362. /package/assets/{f785e42/plainText.CC3Vidi5.js → 9abc863/plainText.B_aBSoJ2.js} +0 -0
  363. /package/assets/{f785e42/preload.vcDpiZHI.js → 9abc863/preload.DxhQL6ww.js} +0 -0
  364. /package/assets/{f785e42/rolldown-runtime.CY69pHGU.js → 9abc863/rolldown-runtime.BQa96kB2.js} +0 -0
  365. /package/assets/{f785e42/signature_pad.DvPpdb2r.js → 9abc863/signature_pad.C07Egmsk.js} +0 -0
  366. /package/assets/{f785e42/staleTimes.BuCDd__I.js → 9abc863/staleTimes.BFpWFXo3.js} +0 -0
  367. /package/assets/{f785e42/togglePassword.D7dAyG22.js → 9abc863/togglePassword.DhXSbA19.js} +0 -0
@@ -1 +1 @@
1
- import{Hn as e,Kn as t,Mn as n,Rn as r,Un as i,Xn as a,Zn as o,at as s,bn as c,dn as l,er as u,gn as d,hn as f,jt as p,ln as m,mn as h,on as g,pn as _,pt as v,tt as y,un as b,vn as x,wn as S,yn as C}from"./vendor.BGu2qkTq.js";import{t as w}from"./Field.Bw7PCeQ1.js";import{t as T}from"./Control.l_F0QhcO.js";import{c as E}from"./client.DrMpyevc.js";import{t as D}from"./config.tpbdABlZ.js";import{n as O,t as k}from"./ControlTelCountryCode.CcdH-ptn.js";import{t as A}from"./patterns.Bgl0jWnL.js";import{r as j}from"./calendarFlexibleDialog.Lm32GQ8D.js";import{t as ee}from"./ButtonMuted.ClXJRdlP.js";import{n as M,r as te,t as N}from"./dateFormatter.dDaZZox0.js";import{t as P}from"./Popover.Cd-ly7x7.js";var F={class:`grid grid-cols-2 gap-3`},I=[`popovertarget`,`onClick`],L={class:`x-title h-10.5 flex items-center justify-center bg-primary text-primary-foreground rounded-t-md`},R={class:o([`x-title sm font-medium flex flex-col items-center gap-1 pt-4 pb-3.25 outline outline-main-tertiary rounded-b-md`,`-outline-offset-1 transition group-hover:outline-primary group-hover:bg-primary/15 md:max-lg:[.x-header_&]:py-8`])},z={class:`x-heading lg`},B={class:`capitalize`},V=[`popovertarget`,`onClick`],H={class:`x-title h-10.5 flex items-center justify-center bg-primary text-primary-foreground rounded-t-md`},U={class:o([`x-title sm font-medium flex flex-col items-center gap-1 pt-4 pb-3.25 outline outline-main-tertiary rounded-b-md`,`-outline-offset-1 transition group-hover:outline-primary group-hover:bg-primary/15 md:max-lg:[.x-header_&]:py-8`])},W={class:`x-heading lg`},G={class:`capitalize`},K=[`id`],q=c({__name:`DateCalendar`,props:{start:{type:String},end:{type:String}},emits:[`update:modelValue`],setup(i,{emit:o}){let{t:c,locale:l}=p(),d=v(j.lg),f=o,g=i,b=t(),x=r(),S=t(),w=t(),T=t(),E=t({start:s(g.start),end:s(g.end)}),D=t(E.value.start.set({day:1}).toString()),O=t(E.value.start.set({day:1}).add({months:d.value?2:1,days:-1}).toString()),k=e=>{D.value=e.set({day:1}).toString(),O.value=e.set({day:1}).add({months:d.value?2:1,days:-1}).toString()},A=e=>{E.value.start=e.start,E.value.end=e.end,f(`update:modelValue`,e),setTimeout(()=>{let e=b.value.$el.querySelector(`[popovertargetaction="toggle"][aria-expanded="true"]`);e&&b.value.hidePopover(e,T.value)},150)};return(t,r)=>{let i=M,o=P;return n(),h(o,{ref_key:`root`,ref:b,refs:{popoverTarget:T.value,popoverTrigger:[S.value,w.value]},class:`x-header-calendar w-full @container`},{default:e(({togglePopover:e})=>[_(`div`,F,[_(`button`,{ref_key:`popoverTriggerArrival`,ref:S,class:`flex flex-col group`,popovertargetaction:`toggle`,popovertarget:a(x),onClick:m(t=>e(S.value,T.value,{anchorElement:b.value.$el,placement:`bottom-start`}),[`prevent`])},[_(`span`,L,u(a(c)(`arrival`)),1),_(`span`,R,[_(`span`,z,u(E.value.start?.day),1),_(`span`,B,u(a(N)(a(l),{month:`long`}).format(a(y)(E.value.start)))+` `+u(E.value.start?.year),1)])],8,I),_(`button`,{ref_key:`popoverTriggerDeparture`,ref:w,class:`flex flex-col group`,popovertargetaction:`toggle`,popovertarget:a(x),onClick:m(t=>e(w.value,T.value,{anchorElement:b.value.$el,placement:`bottom-start`}),[`prevent`])},[_(`span`,H,u(a(c)(`departure`)),1),_(`span`,U,[_(`span`,W,u(E.value.end?.day),1),_(`span`,G,u(a(N)(a(l),{month:`long`}).format(a(y)(E.value.end)))+` `+u(E.value.end?.year),1)])],8,V)]),_(`div`,{id:a(x),ref_key:`popoverTarget`,ref:T,popover:`manual`,class:`x-popover-content flex flex-col border border-main-tertiary shadow-lg p-6 rounded-md w-full max-w-[100cqw] lg:max-w-144`,inert:``},[C(i,{defaultValue:E.value,defaultValueImmediate:!0,"onUpdate:validModelValue":A,"onUpdate:placeholder":k},null,8,[`defaultValue`])],8,K)]),_:1},8,[`refs`])}}}),J={class:`x-reservation-edit-info p-6 md:p-12 bg-body-primary rounded-xl`},Y={class:`x-heading mb-6`},X={class:`grid md:grid-cols-2 lg:flex lg:justify-between gap-3 md:gap-6`},Z={class:`flex gap-4`},Q={class:`flex flex-col gap-1`},ne={class:`x-title sm font-medium`},re={key:0,class:`x-title`},ie={class:`flex gap-4`},ae={class:`flex flex-col gap-1`},oe={class:`x-title sm font-medium`},se={class:`x-title`},ce={class:`flex gap-4`},le={class:`flex flex-col gap-1`},ue={class:`x-title sm font-medium`},de={class:`x-title`},fe={class:`flex gap-4`},pe={class:`flex flex-col gap-1`},me={class:`x-title sm font-medium`},he={class:`x-title`},ge={key:0,class:`flex justify-between flex-wrap gap-4 my-6 pt-6 border-t border-t-main-tertiary`},_e={class:`x-heading`},ve={key:1,class:`flex gap-6 max-md:flex-col`},ye={key:1,class:`grid md:grid-cols-2 gap-3 grow`},be=[`id`],xe=[`for`],Se=[`id`],Ce=[`for`],we={class:`x-group rounded-sm w-full`},Te=[`id`,`pattern`],Ee=[`for`],De=[`id`],$=[`for`],Oe={class:`grid md:grid-cols-3 gap-[inherit] col-span-full`},ke=[`id`],Ae=[`for`],je=[`id`],Me=[`for`],Ne=c({__name:`ReservationEditInfo`,props:{guest:{type:[Object,null]},accommodation:{type:[Object,null]},checkInDate:{type:String},checkOutDate:{type:String},edit:{type:Boolean,default:!0}},setup(r){let{t:o,d:s}=p(),{data:c}=D(),m=E(),v=S(`shadowRoot`),y=t(),j=e=>{m.order.accommodation.checkInDate=e.start?.toString(),m.order.accommodation.checkOutDate=e.end?.toString()};return(t,p)=>{let S=ee,E=te,D=q,M=T,N=w,P=k,F=O;return n(),d(`div`,J,[_(`h1`,Y,u(a(o)(`yourReservation`)),1),_(`ul`,X,[_(`li`,Z,[p[9]||=_(`div`,{class:`size-10 bg-primary flex justify-center items-center rounded-md shrink-0`},[_(`svg`,{"aria-hidden":`true`,class:`size-5 text-primary-foreground`},[_(`use`,{href:`#icon-clock-mini`})])],-1),_(`div`,Q,[_(`div`,ne,u(a(o)(`dateOfStay`)),1),r.accommodation?.checkInDate&&r.accommodation?.checkOutDate?(n(),d(`div`,re,u(a(s)(r.accommodation?.checkInDate,{timeZone:a(c)?.timeZone}))+` – `+u(a(s)(r.accommodation?.checkOutDate,{timeZone:a(c)?.timeZone})),1)):f(``,!0)])]),_(`li`,ie,[p[10]||=_(`div`,{class:`size-10 bg-primary flex justify-center items-center rounded-md shrink-0`},[_(`svg`,{"aria-hidden":`true`,class:`size-5 text-primary-foreground`},[_(`use`,{href:`#icon-user-group-mini`})])],-1),_(`div`,ae,[_(`div`,oe,u(a(o)(`guests`)),1),_(`div`,se,[x(u(r.accommodation?.totalAdults)+` `+u(a(o)(`adultsPlural`,r.accommodation?.totalAdults??0))+` `,1),r.accommodation?.totalChildren>0?(n(),d(b,{key:0},[x(` + `+u(r.accommodation?.totalChildren)+` `+u(a(o)(`childrenPlural`,r.accommodation?.totalChildren))+` (`+u(r.accommodation?.rooms?.flatMap(e=>(e.children??[]).map(e=>e.age)).join(`,`))+`) `,1)],64)):f(``,!0)])])]),_(`li`,ce,[p[11]||=_(`div`,{class:`size-10 bg-primary flex justify-center items-center rounded-md shrink-0`},[_(`svg`,{"aria-hidden":`true`,class:`size-5 text-primary-foreground`},[_(`use`,{href:`#icon-bed-mini`})])],-1),_(`div`,le,[_(`div`,ue,u(a(o)(`numberOfRooms`)),1),_(`div`,de,u(r.accommodation?.totalRooms),1)])]),_(`li`,fe,[p[12]||=_(`div`,{class:`size-10 bg-primary flex justify-center items-center rounded-md shrink-0`},[_(`svg`,{"aria-hidden":`true`,class:`size-5 text-primary-foreground`},[_(`use`,{href:`#icon-moon-mini`})])],-1),_(`div`,pe,[_(`div`,me,u(a(o)(`numberOfNights`)),1),_(`div`,he,u(r.accommodation?.totalNights),1)])])]),r.edit?(n(),d(`div`,ge,[_(`h2`,_e,u(a(o)(`changeDateData`)),1),C(S,{size:`md`,class:`accent-error`,onClick:p[0]||=e=>y.value.root.show()},{default:e(()=>[x(u(a(o)(`cancelReservation`)),1)]),_:1}),(n(),h(l,{to:a(v)},[r.accommodation?.isCancelable?(n(),h(E,{key:0,ref_key:`reservationEditDialog`,ref:y,email:r.guest?.email,code:r.accommodation?.code,cancel:!0},null,8,[`email`,`code`])):f(``,!0)],8,[`to`]))])):f(``,!0),r.edit?(n(),d(`div`,ve,[r.checkInDate&&r.checkOutDate?(n(),h(D,{key:0,class:`md:max-w-67.5 self-start`,start:r.checkInDate,end:r.checkOutDate,"onUpdate:modelValue":j},null,8,[`start`,`end`])):f(``,!0),a(m).order.guest?(n(),d(`div`,ye,[C(N,null,{default:e(()=>[C(M,{size:`md`},{default:e(({uid:e})=>[i(_(`input`,{id:e,"onUpdate:modelValue":p[1]||=e=>a(m).order.guest.firstName=e,name:`firstName`,type:`text`,placeholder:` `,autocomplete:`given-name`,required:``},null,8,be),[[g,a(m).order.guest.firstName]]),_(`label`,{for:e},u(a(o)(`name`)),9,xe)]),_:1})]),_:1}),C(N,null,{default:e(()=>[C(M,{size:`md`},{default:e(({uid:e})=>[i(_(`input`,{id:e,"onUpdate:modelValue":p[2]||=e=>a(m).order.guest.lastName=e,name:`lastName`,type:`text`,placeholder:` `,autocomplete:`family-name`,required:``},null,8,Se),[[g,a(m).order.guest.lastName]]),_(`label`,{for:e},u(a(o)(`surname`)),9,Ce)]),_:1})]),_:1}),C(N,null,{default:e(()=>[_(`div`,we,[C(P,{modelValue:a(m).order.guest.telCountryCode,"onUpdate:modelValue":p[3]||=e=>a(m).order.guest.telCountryCode=e},null,8,[`modelValue`]),C(M,{class:`grow`,size:`md`},{default:e(({uid:e})=>[i(_(`input`,{id:e,"onUpdate:modelValue":p[4]||=e=>a(m).order.guest.telNational=e,name:`telNational`,type:`tel`,pattern:a(A).telNational,placeholder:` `,autocomplete:`tel-national`,required:``},null,8,Te),[[g,a(m).order.guest.telNational]]),_(`label`,{for:e},u(a(o)(`tel`)),9,Ee)]),_:1})])]),_:1}),C(N,null,{default:e(()=>[C(M,{size:`md`},{default:e(({uid:e})=>[i(_(`input`,{id:e,"onUpdate:modelValue":p[5]||=e=>a(m).order.guest.street=e,name:`street`,type:`text`,placeholder:` `,autocomplete:`street-address`,required:``},null,8,De),[[g,a(m).order.guest.street]]),_(`label`,{for:e},u(a(o)(`address`)),9,$)]),_:1})]),_:1}),_(`div`,Oe,[C(N,null,{default:e(()=>[C(M,{size:`md`},{default:e(({uid:e})=>[i(_(`input`,{id:e,"onUpdate:modelValue":p[6]||=e=>a(m).order.guest.city=e,type:`text`,name:`city`,autocomplete:`address-level2`,placeholder:` `,required:``},null,8,ke),[[g,a(m).order.guest.city]]),_(`label`,{for:e},u(a(o)(`city`)),9,Ae)]),_:1})]),_:1}),C(N,null,{default:e(()=>[C(M,{size:`md`},{default:e(({uid:e})=>[i(_(`input`,{id:e,"onUpdate:modelValue":p[7]||=e=>a(m).order.guest.postalCode=e,type:`text`,name:`postalCode`,autocomplete:`postal-code`,placeholder:` `,required:``},null,8,je),[[g,a(m).order.guest.postalCode]]),_(`label`,{for:e},u(a(o)(`postalCode`)),9,Me)]),_:1})]),_:1}),C(N,null,{default:e(()=>[C(F,{modelValue:a(m).order.guest.country,"onUpdate:modelValue":p[8]||=e=>a(m).order.guest.country=e,name:`country`},null,8,[`modelValue`])]),_:1})])])):f(``,!0)])):f(``,!0)])}}});export{Ne as t};
1
+ import{Hn as e,Kn as t,Mn as n,Rn as r,Un as i,Xn as a,Zn as o,at as s,bn as c,dn as l,er as u,gn as d,hn as f,jt as p,ln as m,mn as h,on as g,pn as _,pt as v,tt as y,un as b,vn as x,wn as S,yn as C}from"./vendor._wA0akn2.js";import{t as w}from"./Field.BDHsJbAD.js";import{t as T}from"./Control.B1vJnLqF.js";import{c as E}from"./client.DrlPwpqz.js";import{t as D}from"./config.DhUrL--N.js";import{n as O,t as k}from"./ControlTelCountryCode.CuyNH30D.js";import{t as A}from"./patterns.NvYoaSWt.js";import{r as j}from"./calendarFlexibleDialog.iE6_fSo6.js";import{t as ee}from"./ButtonMuted.YLWU8RJN.js";import{n as M,r as te,t as N}from"./dateFormatter.Bg9EaFxG.js";import{t as P}from"./Popover.ChICNzsj.js";var F={class:`grid grid-cols-2 gap-3`},I=[`popovertarget`,`onClick`],L={class:`x-title h-10.5 flex items-center justify-center bg-primary text-primary-foreground rounded-t-md`},R={class:o([`x-title sm font-medium flex flex-col items-center gap-1 pt-4 pb-3.25 outline outline-main-tertiary rounded-b-md`,`-outline-offset-1 transition group-hover:outline-primary group-hover:bg-primary/15 md:max-lg:[.x-header_&]:py-8`])},z={class:`x-heading lg`},B={class:`capitalize`},V=[`popovertarget`,`onClick`],H={class:`x-title h-10.5 flex items-center justify-center bg-primary text-primary-foreground rounded-t-md`},U={class:o([`x-title sm font-medium flex flex-col items-center gap-1 pt-4 pb-3.25 outline outline-main-tertiary rounded-b-md`,`-outline-offset-1 transition group-hover:outline-primary group-hover:bg-primary/15 md:max-lg:[.x-header_&]:py-8`])},W={class:`x-heading lg`},G={class:`capitalize`},K=[`id`],q=c({__name:`DateCalendar`,props:{start:{type:String},end:{type:String}},emits:[`update:modelValue`],setup(i,{emit:o}){let{t:c,locale:l}=p(),d=v(j.lg),f=o,g=i,b=t(),x=r(),S=t(),w=t(),T=t(),E=t({start:s(g.start),end:s(g.end)}),D=t(E.value.start.set({day:1}).toString()),O=t(E.value.start.set({day:1}).add({months:d.value?2:1,days:-1}).toString()),k=e=>{D.value=e.set({day:1}).toString(),O.value=e.set({day:1}).add({months:d.value?2:1,days:-1}).toString()},A=e=>{E.value.start=e.start,E.value.end=e.end,f(`update:modelValue`,e),setTimeout(()=>{let e=b.value.$el.querySelector(`[popovertargetaction="toggle"][aria-expanded="true"]`);e&&b.value.hidePopover(e,T.value)},150)};return(t,r)=>{let i=M,o=P;return n(),h(o,{ref_key:`root`,ref:b,refs:{popoverTarget:T.value,popoverTrigger:[S.value,w.value]},class:`x-header-calendar w-full @container`},{default:e(({togglePopover:e})=>[_(`div`,F,[_(`button`,{ref_key:`popoverTriggerArrival`,ref:S,class:`flex flex-col group`,popovertargetaction:`toggle`,popovertarget:a(x),onClick:m(t=>e(S.value,T.value,{anchorElement:b.value.$el,placement:`bottom-start`}),[`prevent`])},[_(`span`,L,u(a(c)(`arrival`)),1),_(`span`,R,[_(`span`,z,u(E.value.start?.day),1),_(`span`,B,u(a(N)(a(l),{month:`long`}).format(a(y)(E.value.start)))+` `+u(E.value.start?.year),1)])],8,I),_(`button`,{ref_key:`popoverTriggerDeparture`,ref:w,class:`flex flex-col group`,popovertargetaction:`toggle`,popovertarget:a(x),onClick:m(t=>e(w.value,T.value,{anchorElement:b.value.$el,placement:`bottom-start`}),[`prevent`])},[_(`span`,H,u(a(c)(`departure`)),1),_(`span`,U,[_(`span`,W,u(E.value.end?.day),1),_(`span`,G,u(a(N)(a(l),{month:`long`}).format(a(y)(E.value.end)))+` `+u(E.value.end?.year),1)])],8,V)]),_(`div`,{id:a(x),ref_key:`popoverTarget`,ref:T,popover:`manual`,class:`x-popover-content flex flex-col border border-main-tertiary shadow-lg p-6 rounded-md w-full max-w-[100cqw] lg:max-w-144`,inert:``},[C(i,{defaultValue:E.value,defaultValueImmediate:!0,"onUpdate:validModelValue":A,"onUpdate:placeholder":k},null,8,[`defaultValue`])],8,K)]),_:1},8,[`refs`])}}}),J={class:`x-reservation-edit-info p-6 md:p-12 bg-body-primary rounded-xl`},Y={class:`x-heading mb-6`},X={class:`grid md:grid-cols-2 lg:flex lg:justify-between gap-3 md:gap-6`},Z={class:`flex gap-4`},Q={class:`flex flex-col gap-1`},ne={class:`x-title sm font-medium`},re={key:0,class:`x-title`},ie={class:`flex gap-4`},ae={class:`flex flex-col gap-1`},oe={class:`x-title sm font-medium`},se={class:`x-title`},ce={class:`flex gap-4`},le={class:`flex flex-col gap-1`},ue={class:`x-title sm font-medium`},de={class:`x-title`},fe={class:`flex gap-4`},pe={class:`flex flex-col gap-1`},me={class:`x-title sm font-medium`},he={class:`x-title`},ge={key:0,class:`flex justify-between flex-wrap gap-4 my-6 pt-6 border-t border-t-main-tertiary`},_e={class:`x-heading`},ve={key:1,class:`flex gap-6 max-md:flex-col`},ye={key:1,class:`grid md:grid-cols-2 gap-3 grow`},be=[`id`],xe=[`for`],Se=[`id`],Ce=[`for`],we={class:`x-group rounded-sm w-full`},Te=[`id`,`pattern`],Ee=[`for`],De=[`id`],$=[`for`],Oe={class:`grid md:grid-cols-3 gap-[inherit] col-span-full`},ke=[`id`],Ae=[`for`],je=[`id`],Me=[`for`],Ne=c({__name:`ReservationEditInfo`,props:{guest:{type:[Object,null]},accommodation:{type:[Object,null]},checkInDate:{type:String},checkOutDate:{type:String},edit:{type:Boolean,default:!0}},setup(r){let{t:o,d:s}=p(),{data:c}=D(),m=E(),v=S(`shadowRoot`),y=t(),j=e=>{m.order.accommodation.checkInDate=e.start?.toString(),m.order.accommodation.checkOutDate=e.end?.toString()};return(t,p)=>{let S=ee,E=te,D=q,M=T,N=w,P=k,F=O;return n(),d(`div`,J,[_(`h1`,Y,u(a(o)(`yourReservation`)),1),_(`ul`,X,[_(`li`,Z,[p[9]||=_(`div`,{class:`size-10 bg-primary flex justify-center items-center rounded-md shrink-0`},[_(`svg`,{"aria-hidden":`true`,class:`size-5 text-primary-foreground`},[_(`use`,{href:`#icon-clock-mini`})])],-1),_(`div`,Q,[_(`div`,ne,u(a(o)(`dateOfStay`)),1),r.accommodation?.checkInDate&&r.accommodation?.checkOutDate?(n(),d(`div`,re,u(a(s)(r.accommodation?.checkInDate,{timeZone:a(c)?.timeZone}))+` – `+u(a(s)(r.accommodation?.checkOutDate,{timeZone:a(c)?.timeZone})),1)):f(``,!0)])]),_(`li`,ie,[p[10]||=_(`div`,{class:`size-10 bg-primary flex justify-center items-center rounded-md shrink-0`},[_(`svg`,{"aria-hidden":`true`,class:`size-5 text-primary-foreground`},[_(`use`,{href:`#icon-user-group-mini`})])],-1),_(`div`,ae,[_(`div`,oe,u(a(o)(`guests`)),1),_(`div`,se,[x(u(r.accommodation?.totalAdults)+` `+u(a(o)(`adultsPlural`,r.accommodation?.totalAdults??0))+` `,1),r.accommodation?.totalChildren>0?(n(),d(b,{key:0},[x(` + `+u(r.accommodation?.totalChildren)+` `+u(a(o)(`childrenPlural`,r.accommodation?.totalChildren))+` (`+u(r.accommodation?.rooms?.flatMap(e=>(e.children??[]).map(e=>e.age)).join(`,`))+`) `,1)],64)):f(``,!0)])])]),_(`li`,ce,[p[11]||=_(`div`,{class:`size-10 bg-primary flex justify-center items-center rounded-md shrink-0`},[_(`svg`,{"aria-hidden":`true`,class:`size-5 text-primary-foreground`},[_(`use`,{href:`#icon-bed-mini`})])],-1),_(`div`,le,[_(`div`,ue,u(a(o)(`numberOfRooms`)),1),_(`div`,de,u(r.accommodation?.totalRooms),1)])]),_(`li`,fe,[p[12]||=_(`div`,{class:`size-10 bg-primary flex justify-center items-center rounded-md shrink-0`},[_(`svg`,{"aria-hidden":`true`,class:`size-5 text-primary-foreground`},[_(`use`,{href:`#icon-moon-mini`})])],-1),_(`div`,pe,[_(`div`,me,u(a(o)(`numberOfNights`)),1),_(`div`,he,u(r.accommodation?.totalNights),1)])])]),r.edit?(n(),d(`div`,ge,[_(`h2`,_e,u(a(o)(`changeDateData`)),1),C(S,{size:`md`,class:`accent-error`,onClick:p[0]||=e=>y.value.root.show()},{default:e(()=>[x(u(a(o)(`cancelReservation`)),1)]),_:1}),(n(),h(l,{to:a(v)},[r.accommodation?.isCancelable?(n(),h(E,{key:0,ref_key:`reservationEditDialog`,ref:y,email:r.guest?.email,code:r.accommodation?.code,cancel:!0},null,8,[`email`,`code`])):f(``,!0)],8,[`to`]))])):f(``,!0),r.edit?(n(),d(`div`,ve,[r.checkInDate&&r.checkOutDate?(n(),h(D,{key:0,class:`md:max-w-67.5 self-start`,start:r.checkInDate,end:r.checkOutDate,"onUpdate:modelValue":j},null,8,[`start`,`end`])):f(``,!0),a(m).order.guest?(n(),d(`div`,ye,[C(N,null,{default:e(()=>[C(M,{size:`md`},{default:e(({uid:e})=>[i(_(`input`,{id:e,"onUpdate:modelValue":p[1]||=e=>a(m).order.guest.firstName=e,name:`firstName`,type:`text`,placeholder:` `,autocomplete:`given-name`,required:``},null,8,be),[[g,a(m).order.guest.firstName]]),_(`label`,{for:e},u(a(o)(`name`)),9,xe)]),_:1})]),_:1}),C(N,null,{default:e(()=>[C(M,{size:`md`},{default:e(({uid:e})=>[i(_(`input`,{id:e,"onUpdate:modelValue":p[2]||=e=>a(m).order.guest.lastName=e,name:`lastName`,type:`text`,placeholder:` `,autocomplete:`family-name`,required:``},null,8,Se),[[g,a(m).order.guest.lastName]]),_(`label`,{for:e},u(a(o)(`surname`)),9,Ce)]),_:1})]),_:1}),C(N,null,{default:e(()=>[_(`div`,we,[C(P,{modelValue:a(m).order.guest.telCountryCode,"onUpdate:modelValue":p[3]||=e=>a(m).order.guest.telCountryCode=e},null,8,[`modelValue`]),C(M,{class:`grow`,size:`md`},{default:e(({uid:e})=>[i(_(`input`,{id:e,"onUpdate:modelValue":p[4]||=e=>a(m).order.guest.telNational=e,name:`telNational`,type:`tel`,pattern:a(A).telNational,placeholder:` `,autocomplete:`tel-national`,required:``},null,8,Te),[[g,a(m).order.guest.telNational]]),_(`label`,{for:e},u(a(o)(`tel`)),9,Ee)]),_:1})])]),_:1}),C(N,null,{default:e(()=>[C(M,{size:`md`},{default:e(({uid:e})=>[i(_(`input`,{id:e,"onUpdate:modelValue":p[5]||=e=>a(m).order.guest.street=e,name:`street`,type:`text`,placeholder:` `,autocomplete:`street-address`,required:``},null,8,De),[[g,a(m).order.guest.street]]),_(`label`,{for:e},u(a(o)(`address`)),9,$)]),_:1})]),_:1}),_(`div`,Oe,[C(N,null,{default:e(()=>[C(M,{size:`md`},{default:e(({uid:e})=>[i(_(`input`,{id:e,"onUpdate:modelValue":p[6]||=e=>a(m).order.guest.city=e,type:`text`,name:`city`,autocomplete:`address-level2`,placeholder:` `,required:``},null,8,ke),[[g,a(m).order.guest.city]]),_(`label`,{for:e},u(a(o)(`city`)),9,Ae)]),_:1})]),_:1}),C(N,null,{default:e(()=>[C(M,{size:`md`},{default:e(({uid:e})=>[i(_(`input`,{id:e,"onUpdate:modelValue":p[7]||=e=>a(m).order.guest.postalCode=e,type:`text`,name:`postalCode`,autocomplete:`postal-code`,placeholder:` `,required:``},null,8,je),[[g,a(m).order.guest.postalCode]]),_(`label`,{for:e},u(a(o)(`postalCode`)),9,Me)]),_:1})]),_:1}),C(N,null,{default:e(()=>[C(F,{modelValue:a(m).order.guest.country,"onUpdate:modelValue":p[8]||=e=>a(m).order.guest.country=e,name:`country`},null,8,[`modelValue`])]),_:1})])])):f(``,!0)])):f(``,!0)])}}});export{Ne as t};
@@ -1 +1 @@
1
- import{Dn as e,Hn as t,Kn as n,Mn as r,bn as i,mn as a,yn as o}from"./vendor.BGu2qkTq.js";import{n as s}from"./DialogContent.tdqsNrXE.js";import{t as c}from"./RoomDetailDialogContent.Br2LC7Su.js";var l=i({__name:`RoomDetailDialog`,props:{room:{type:Object},editIndex:{type:Number}},setup(i,{expose:l}){let u=i,d=n();return l({root:d}),(n,i)=>{let l=c,f=s;return r(),a(f,{ref_key:`root`,ref:d},{default:t(()=>[o(l,e(u,{"onClose:dialog":i[0]||=e=>d.value?.close()}),null,16)]),_:1},512)}}});export{l as t};
1
+ import{Dn as e,Hn as t,Kn as n,Mn as r,bn as i,mn as a,yn as o}from"./vendor._wA0akn2.js";import{n as s}from"./DialogContent.BGzVxgDS.js";import{t as c}from"./RoomDetailDialogContent.DYtmm89J.js";var l=i({__name:`RoomDetailDialog`,props:{room:{type:Object},editIndex:{type:Number}},setup(i,{expose:l}){let u=i,d=n();return l({root:d}),(n,i)=>{let l=c,f=s;return r(),a(f,{ref_key:`root`,ref:d},{default:t(()=>[o(l,e(u,{"onClose:dialog":i[0]||=e=>d.value?.close()}),null,16)]),_:1},512)}}});export{l as t};
@@ -1 +1 @@
1
- import{Bn as e,Dn as t,Hn as n,Kn as r,Ln as i,Mn as a,Nn as o,Pn as s,Rn as c,Vn as l,Xn as u,Zn as d,bn as f,d as p,er as m,f as h,gn as g,hn as _,jt as v,kn as y,ln as b,mn as x,p as S,pn as C,pt as w,u as T,un as E,vn as D,wn as O,yn as k}from"./vendor.BGu2qkTq.js";import{t as A}from"./params.DR2mabOE.js";import{n as j,t as M}from"./DialogContent.tdqsNrXE.js";import{t as N}from"./Button.DSwXM1vM.js";import{m as P,o as F,p as I}from"./client.DrMpyevc.js";import{t as L}from"./config.tpbdABlZ.js";import{t as R}from"./_plugin-vue_export-helper.CVuqnCex.js";import{t as z}from"./Circle.ByhP73-w.js";import{i as B,r as ee,t as V}from"./calendarFlexibleDialog.Lm32GQ8D.js";import{t as H}from"./ButtonBordered.CP-VyF36.js";import{t as te}from"./formatPrice.BEcRqhQn.js";import{t as ne}from"./Popover.Cd-ly7x7.js";import{t as U}from"./hotel.BmQNwmkI.js";import{a as W,n as G,r as K,t as q}from"./PackageDetailDialogContent.BOOjo_oC.js";var J=f({__name:`PackageDetailDialog`,props:{roomSelect:{type:Boolean,default:!1},editIndex:{type:Number},package:{type:Object}},setup(e,{expose:i}){let o=e,s=r();return i({root:s}),(e,r)=>{let i=q,c=j;return a(),x(c,{ref_key:`root`,ref:s},{default:n(()=>[k(i,t(o,{"onClose:dialog":r[0]||=e=>s.value?.close()}),null,16)]),_:1},512)}}}),re={class:`x-room-rates-item p-3 border rounded-md flex lg:items-center relative border-main-tertiary @container max-lg:flex-wrap bg-body-primary`},Y={key:0,class:`x-image before:skeleton shrink-0 mr-3`},X=[`src`,`alt`],ie={class:`flex flex-col gap-2 lg:max-w-[50%] max-lg:flex-1`},ae={class:`x-title flex items-baseline gap-0.5`},oe={class:`x-title sm font-medium flex items-baseline gap-1`},se={class:`flex items-center gap-2 lg:gap-4 lg:justify-end lg:ml-auto max-lg:mt-5 max-lg:w-full`},ce={key:0,class:`x-title sm font-medium text-main-secondary`},le=f({__name:`RoomRatesItemPackage`,props:{room:{type:Object}},setup(e){let i=O(`shadowRoot`),{t:s,n:c}=v(),l=A(),{data:d}=L(),{data:f}=U(),p=r(),h=O(`roomDetailDialog`),y=r(),b=r({roomSelect:!1,edit:!1});return o(`packageDetailDialog`,y),(r,o)=>{let v=W,S=N,w=B,T=J;return a(),g(E,null,[C(`div`,re,[e.room?.package?.images?.[0]?.[`1x`]?(a(),g(`div`,Y,[C(`img`,{src:e.room?.package?.images?.[0]?.[`1x`],loading:`lazy`,alt:e.room?.package?.images?.[0]?.alt,width:`64`,height:`64`,class:`size-16 object-cover`},null,8,X)])):_(``,!0),C(`div`,ie,[C(`div`,ae,m(e.room?.package?.name),1),C(`div`,oe,[C(`button`,{class:`x-link text-primary underline transition hocus:text-accent-alt`,onClick:o[0]||=e=>[b.value={roomSelect:!1,edit:!1},y.value.root.show()]},m(u(s)(`showPackageDetail`)),1)])]),C(`div`,se,[k(v,{prices:e.room?.prices},null,8,[`prices`]),e.room?.prices?.finalPriceExtraBeds&&e.room?.prices?.finalPriceExtraBeds>0?(a(),g(`div`,ce,` + `+m(u(c)(e.room?.prices.finalPriceExtraBeds,`decimal`))+` `+m(u(l).currency),1)):_(``,!0)]),e.room?.prices?.finalPrice||u(d)?.allowSuperPromo?(a(),x(S,{key:1,size:`md`,class:`lg:ml-13.5 max-lg:mt-3 max-lg:w-full`,onClick:o[1]||=t=>u(K)({entity:`Package`,room:e.room?.package?.rooms?.find(t=>t.id===e.room?.id),package:e.room?.package,description:`${u(s)(`room`)}: ${e.room?.name}`},{errorDialog:p.value,roomDetailDialog:u(h),editIndex:u(h)?.$props?.editIndex,hotel:u(f),config:u(d),shadowRoot:u(i)})},{default:n(()=>[D(m(u(s)(`book`)),1)]),_:1})):_(``,!0),k(w,{ref_key:`errorDialog`,ref:p,status:`error`,heading:u(s)(`weAreSorry`),text:u(s)(`roomCannotBeBooked`)},null,8,[`heading`,`text`])]),k(T,t({...b.value,package:e.room?.package},{ref_key:`packageDetailDialog`,ref:y}),null,16)],64)}}}),ue={key:0,class:`x-badge sm absolute left-3 -top-1.5 bg-gradient-to-r from-top-gradient-0 to-top-gradient-100`},de={class:`flex flex-col gap-1`},fe={class:`x-title flex items-baseline gap-0.5`},pe={key:0,class:`x-title xs`},me={key:1,class:`x-badge accent-main ml-1.5`},he={key:0},ge={class:`x-title sm font-medium flex items-baseline flex-wrap gap-1`},_e=[`popovertarget`,`onClick`],ve={class:`flex items-center gap-2 lg:gap-4 lg:justify-end lg:ml-auto max-lg:items-end max-lg:mt-4`},ye=[`title`],be=[`aria-label`],xe={key:1,class:`x-title sm font-medium text-main-secondary flex items-center gap-1`},Se=[`id`],Ce={key:0,class:`x-title sm mb-1.5 not-first:mt-4`},we=[`innerHTML`],Te={key:2,class:`x-title sm mb-1.5 not-first:mt-4`},Ee=[`innerHTML`],De=f({__name:`RoomRatesItem`,props:{rate:{type:Object},room:{type:Object}},setup(e){let t=O(`shadowRoot`),o=e,{t:s,n:l}=v(),f=w(ee.touch),y=r(),j=A(),M=F(),{data:P}=L(),{data:I}=U(),R=r(),z=c(),V=r(),H=r(),G=r(o.rate?.prices?.finalPriceExtraBeds>0?`${o.rate?.name} (+${s(`extraBed`)})`:o.rate?.name),q=r(),J=O(`roomDetailDialog`);return(r,o)=>{let c=W,v=N,w=B,O=ne;return a(),x(O,{ref_key:`root`,ref:R,refs:{popoverTrigger:V.value,popoverTarget:H.value},class:`@container group/popover`},{default:n(({togglePopover:r})=>[o[4]||=C(`div`,{class:`fixed inset-0 bg-dark/50 z-20 pointer-events-none transition opacity-0 group-data-open/popover:opacity-100`},null,-1),C(`div`,{class:d([`x-room-rates-item p-3 border rounded-md flex lg:items-center relative @container max-lg:flex-col bg-body-primary`,[`duration-300 transition-[z-index] group-data-open/popover:z-20 group-has-aria-[expanded=false]/popover:transition-discrete`,{"border-error":e.rate?.isFavorite,"border-main":e.rate?.isPrivate,"border-main-tertiary":!e.rate?.isFavorite&&!e.rate?.isPrivate}]])},[e.rate?.isFavorite?(a(),g(`div`,ue,m(u(s)(`mostPopular`)),1)):_(``,!0),C(`div`,de,[C(`div`,fe,[D(m(e.rate?.name)+` `,1),e.rate?.prices?.finalPriceExtraBeds>0?(a(),g(`div`,pe,` (+`+m(u(s)(`extraBed`))+`) `,1)):_(``,!0),e.rate?.isPrivate?(a(),g(`div`,me,[D(m(u(s)(`privateOffer`))+` `,1),e.rate.loginRequired?(a(),g(`span`,he,`- `+m(u(s)(`doLogin`)),1)):_(``,!0)])):_(``,!0)]),C(`div`,ge,[e.rate?.priceType===`refundable`?(a(),g(E,{key:0},[D(m(u(s)(`withMoneyRefund`)),1)],64)):e.rate?.priceType===`nonrefundable`?(a(),g(E,{key:1},[D(m(u(s)(`withoutMoneyRefund`)),1)],64)):e.rate?.priceType===`semirefundable`?(a(),g(E,{key:2},[D(m(u(s)(`withSemiMoneyRefund`)),1)],64)):_(``,!0),C(`button`,{ref_key:`popoverTrigger`,ref:V,class:`x-link text-primary underline transition hocus:text-accent-alt`,popovertargetaction:`toggle`,popovertarget:u(z),onClick:b(e=>r(V.value,H.value,{anchorElement:R.value.$el,offset:4}),[`prevent`])},m(u(s)(`showOfferDetail`)),9,_e)])]),C(`div`,ve,[k(c,{prices:e.rate?.prices},null,8,[`prices`]),e.rate?.prices?.finalPriceExtraBeds&&e.rate?.prices?.finalPriceExtraBeds>0?(a(),g(`div`,{key:0,class:`flex flex-col gap-1.5 items-end`,title:u(s)(`extraBed`)},[e.rate?.prices?.originalPriceExtraBeds&&e.rate?.prices?.originalPriceExtraBeds>0&&e.rate?.prices?.finalPriceExtraBeds!==e.rate?.prices?.originalPriceExtraBeds?(a(),g(`del`,{key:0,class:`x-title sm font-medium text-main-secondary flex items-center gap-2`,"aria-label":u(s)(`originalPrice`)},` + `+m(u(l)(e.rate?.prices.originalPriceExtraBeds,`decimal`))+` `+m(u(j).currency),9,be)):_(``,!0),(a(),x(i(e.rate?.prices?.finalPriceExtraBeds===e.rate?.prices?.originalPriceExtraBeds?`div`:`ins`),{class:`x-title sm font-medium text-main-secondary`,"aria-label":u(s)(`price`)},{default:n(()=>[D(` + `+m(u(l)(e.rate?.prices.finalPriceExtraBeds,`decimal`))+` `+m(u(j).currency),1)]),_:1},8,[`aria-label`]))],8,ye)):_(``,!0),e.rate?.isPrivate&&!u(P)?.localFeeIncluded&&u(j).showPrivateRateLocalFee?(a(),g(`div`,xe,[D(` + `+m(u(l)(u(P)?.localFeeValue*(u(M).data?.[u(M).activeRoom]?.adults??NaN)*u(M).totalNights,`decimal`))+` `+m(u(j).currency)+` `,1),k(u(S),{open:y.value},{default:n(()=>[k(u(T),{"as-child":``,onMouseenter:o[0]||=e=>u(f)&&(y.value=!0),onMouseleave:o[1]||=e=>u(f)&&(y.value=!1)},{default:n(()=>[...o[3]||=[C(`svg`,{class:`size-4 text-primary cursor-default rounded-full outline-0 -outline-offset-1 outline-primary focus-visible:outline-2`},[C(`use`,{href:`#icon-information-circle`})],-1)]]),_:1}),k(u(p),{to:u(t)},{default:n(()=>[k(u(h),{sideOffset:4,side:`bottom`,class:`x-popover-content tooltip shadow`},{default:n(()=>[D(m(u(s)(`localFeeRateInfo`,[u(te)(u(P)?.localFeeValue*(u(M).data?.[u(M).activeRoom]?.adults??NaN)*u(M).totalNights,u(j).currency)])),1)]),_:1})]),_:1},8,[`to`])]),_:1},8,[`open`])])):_(``,!0)]),e.rate?.loginRequired?(a(),x(v,{key:2,to:`/login`,size:`md`,class:`lg:ml-[var(--x-room-rate-item-button-ml,3.5cqw)] max-lg:mt-3`},{default:n(()=>[D(m(u(s)(`signin`)),1)]),_:1})):(a(),g(E,{key:1},[e.rate?.prices?.finalPrice||u(P)?.allowSuperPromo?(a(),x(v,{key:0,size:`md`,class:`lg:ml-[var(--x-room-rate-item-button-ml,3.5cqw)] max-lg:mt-3`,onClick:o[2]||=n=>u(K)({entity:`Room`,rate:e.rate,room:e.room,description:G.value},{editIndex:u(J)?.$props?.editIndex,errorDialog:q.value,roomDetailDialog:u(J),hotel:u(I),config:u(P),shadowRoot:u(t)})},{default:n(()=>[D(m(u(s)(`book`)),1)]),_:1})):_(``,!0)],64)),k(w,{ref_key:`errorDialog`,ref:q,status:`error`,heading:u(s)(`weAreSorry`),text:u(s)(`roomCannotBeBooked`)},null,8,[`heading`,`text`])],2),C(`div`,{id:u(z),ref_key:`popoverTarget`,ref:H,class:`x-popover-content p-6 border-0 border-main-tertiary shadow-lg bottom bottom-start w-[100cqw]`,popover:`manual`,inert:``},[e.rate?.description?(a(),g(`div`,Ce,m(u(s)(`rateDescription`)),1)):_(``,!0),e.rate?.description?(a(),g(`div`,{key:1,class:`x-text xs`,innerHTML:e.rate?.description},null,8,we)):_(``,!0),e.rate?.cancellationPolicy?(a(),g(`div`,Te,m(u(s)(`cancellationPolicy`)),1)):_(``,!0),e.rate?.cancellationPolicy?(a(),g(`div`,{key:3,class:`x-text xs`,innerHTML:e.rate?.cancellationPolicy},null,8,Ee)):_(``,!0)],8,Se)]),_:1},8,[`refs`])}}}),Oe={class:`x-room-rates`},ke={key:0,class:`flex flex-col`},Ae={class:`x-title sm flex items-center gap-1 pt-2 pb-1.5`},Z=f({__name:`RoomRates`,props:{room:{type:Object},defaultMaximumRates:{type:Number}},setup(e){let t=e,{data:i}=L(),o=r(i.value?.showNumberOfRates===0?1/0:t.defaultMaximumRates??i.value?.showNumberOfRates),c=r(t.defaultMaximumRates??o.value??1/0),{t:l}=v();return(t,r)=>{let i=De,o=le,d=H;return a(),g(`div`,Oe,[(a(!0),g(E,null,s(e.room?.rates,(t,n)=>(a(),g(E,{key:t.id},[n+1<=c.value?(a(),x(i,{key:0,room:e.room,rate:t},null,8,[`room`,`rate`])):_(``,!0)],64))),128)),e.room?.package?(a(),g(`div`,ke,[C(`div`,Ae,[r[1]||=C(`svg`,{"aria-hidden":`true`,class:`size-6 text-primary`},[C(`use`,{href:`#icon-packages`})],-1),D(` `+m(u(l)(`dontMissOutPackageDeal`)),1)]),k(o,{room:e.room},null,8,[`room`])])):_(``,!0),e.room?.rates?.length>c.value?(a(),x(d,{key:1,size:`md`,class:`self-center mt-4.5 max-md:mb-4.5`,onClick:r[0]||=e=>c.value=1/0},{default:n(()=>[D(m(u(l)(`showAllRates`))+` `,1),r[2]||=C(`svg`,{"aria-hidden":`true`},[C(`use`,{href:`#icon-plus`})],-1)]),_:1})):_(``,!0)])}}}),je=f({__name:`Svg`,props:{src:{type:String}},setup(t){let n=t,r=e(`host`);async function i(e){let t=await(await fetch(e)).text(),n=new DOMParser().parseFromString(t,`text/html`).body.firstElementChild;!r.value||!n||(r.value.setAttribute(`viewBox`,n?.getAttribute(`viewBox`)??``),r.value.innerHTML=n.innerHTML)}return y(()=>i(n.src)),l(()=>n.src,e=>i(e)),(e,t)=>(a(),g(`svg`,{ref_key:`host`,ref:r},null,512))}}),Me={},Ne={viewBox:`0 0 512 512`,class:`size-6`};function Pe(e,t){return a(),g(`svg`,Ne,[...t[0]||=[C(`path`,{class:`fill-error`,d:`m325.7 6.6993c-20.154-3.6626-40.553-6.0621-58.79-6.529-5.2664-0.13484-10.354-0.11197-15.205 0.08123h-0.0429c-63.368-0.3116-164.21 15.986-210.98 91.022l-0.0042 8e-3c-50.948 78.109-48.148 194.08-23.666 280.29 8.2163 26.444 25.721 62.635 46.477 81.665v2e-3h0.0021c29.547 27.327 64.439 43.238 107.47 51.432l8e-3 2e-3c59.032 8.0651 120.43 12.136 177.43-2.7262 29.595-8.1412 58.426-20.799 83.477-38.648l2e-3 -2e-3 4e-3 -2e-3c27.176-18.781 44.419-44.723 56.189-75.569l2e-3 -2e-3v-4e-3c11.88-30.075 20.074-62.162 23.107-94.439 1.1e-4 -2e-3 -9e-5 -4e-3 0-6e-3 3.3456-64.047-1.9605-165.29-44.695-214.38l-4e-3 -0.0042c-16.938-19.932-51.297-47.772-82.269-57.52l-8e-3 -0.0042c-14.974-4.9979-32.384-9.0457-49.811-12.566-3.018-0.61165-5.6534-1.5504-8.6904-2.1046z`},null,-1),C(`path`,{class:`fill-body-primary origin-[center_bottom] animate-[outer-flicker_0.5s_ease-in-out_infinite]`,d:`m286.03 111c0.97194 26.124-4.4053 50.055-13.471 68.071-9.2127 18.309-22.21 30.565-36.213 32.709h-2e-3l-2e-3 2e-3c-15.643 2.8675-36.629-4.4745-47.232-18.965l-2e-3 -2e-3c-3.9293-5.113-6.3795-10.466-7.9094-15.341-1.9724-6.2869-2.3904-11.696-2.4806-14.865-28.534 30.023-54.752 82.441-47.67 131.88v2e-3c1.6227 11.577 5.2543 22.901 10.59 34.406l6e-3 0.0143 6e-3 0.0144c17.415 44.558 59.986 63.352 91.905 69.896 27.112 5.5535 61.438 0.54134 85.074-15.427 39.41-26.621 68.481-69.853 62.785-114.54v-2e-3l-2e-3 -4e-3c-3.5163-30.74-12.132-60.378-33.024-89.349-9.1499-12.693-21.504-26.115-34.745-40.276-12.739-13.327-21.233-22.054-27.613-28.222z`,fill:`#fff`},null,-1),C(`path`,{class:`fill-error origin-[center_bottom] animate-[inner-flicker_0.5s_ease-in-out_infinite]`,d:`m296.28 339.3c0 24.085-18.07 43.687-40.287 43.687-22.217 0-40.287-19.602-40.287-43.687 0-18.008 21.295-49.452 32.752-66.339 2.4782-3.6613 4.8195-7.1358 5.3052-8.1072 0.1868-0.78456 0.73475-1.4446 1.4695-1.7186 0.90909-0.36114 1.9427-0.0498 2.5529 0.78457 1.5816 2.1046 38.506 52.043 38.506 75.393z`},null,-1)]])}var Q=R(Me,[[`render`,Pe]]),Fe={class:`flex flex-col gap-4 md:gap-6 [.peer+&]:mt-6 md:[.peer+&]:mt-8`},Ie={class:`flex max-md:flex-col justify-between gap-4 md:gap-2 md:items-end`},Le={class:`flex flex-col gap-1 md:gap-2`},Re={key:0,class:`x-title sm flex items-center gap-2.5 text-error`},ze={key:1,class:`x-heading`},Be={class:`x-title sm font-medium flex items-center`},Ve={key:0,class:`flex items-center gap-1.5`},$={key:1,class:`flex items-center gap-1.5`},He={class:`flex flex-col p-3 md:p-6 gap-6 md:gap-12 rounded-md border border-main-tertiary md:grid md:grid-cols-[54.5%_1fr]`},Ue=[`innerHTML`],We={class:`x-title sm font-medium flex flex-col [&>li]:flex [&>li]:gap-4 [&>li]:items-center gap-4`},Ge={key:1,class:`x-heading xs flex flex-wrap items-center gap-y-1 gap-x-3 mt-3 md:mt-6 pt-3 pb-3 md:pb-6`},Ke={key:0},qe={key:1},Je={key:3,class:`border border-main-tertiary rounded-md py-6 px-3 gap-6 flex flex-col`},Ye=[`innerHTML`],Xe={key:4,class:`p-3 bg-body rounded-sm mt-3 md:mt-6`},Ze={class:`x-title sm mb-2`},Qe=[`innerHTML`],$e=f({__name:`RoomDetailDialogContent`,props:{room:{type:Object},editIndex:{type:Number},closeButton:{type:Boolean,default:!0},showRates:{type:Boolean,default:!0},cancellationPolicy:{type:String}},emits:[`close:dialog`],setup(e,{emit:t}){let r=t,i=e,{t:o,d:c}=v(),l=A(),d=F(),f=V(),{data:p}=L(),{data:h}=U();return y(()=>{(p.value?.tracking?.googleGa4||p.value?.tracking?.googleGtm)&&I(`event`,`view_item`,{currency:l.currency,items:[{item_id:i?.room?.id,item_name:i?.room?.name,item_category:`Room`,item_brand:h.value?.chainName,affiliation:h.value?.name,currency:l.currency}]}),p.value?.tracking?.leadhub&&P(`ViewContent`,{products:[{product_id:i?.room?.id}]})}),(t,l)=>{let h=N,v=G,y=Q,b=je,S=Z,w=z,T=M;return a(),x(T,{size:`lg`,class:`flex flex-col mt-13.5 p-3 md:p-6`},{default:n(()=>[e.closeButton?(a(),x(h,{key:0,class:`accent-body-primary shadow-lg sticky top-0 inset-x-0 mx-auto w-fit z-10 -mt-[calc(--spacing(6)+2.625rem)] mb-6 md:-mt-[calc(--spacing(9)+2.625rem)] md:mb-9`,size:`md`,onClick:l[0]||=e=>r(`close:dialog`)},{default:n(()=>[l[2]||=C(`svg`,{"aria-hidden":`true`},[C(`use`,{href:`#icon-x-mark-mini`})],-1),D(` `+m(u(o)(`closeDetail`)),1)]),_:1})):_(``,!0),k(v,{class:`peer`,images:e.room?.images},null,8,[`images`]),C(`div`,Fe,[C(`div`,Ie,[C(`div`,Le,[e.room?.availableCount&&!e.room?.disabled&&e.room?.availableCount<=u(p)?.numberOfRoomsRemaining&&u(p)?.showRoomsRemaining?(a(),g(`div`,Re,[k(y),D(` `+m(u(o)(`roomNthRemaining`,e.room?.availableCount)),1)])):_(``,!0),e.room?.name?(a(),g(`h2`,ze,m(e.room?.name),1)):_(``,!0)]),C(`div`,Be,[e.room?.maxPersons?(a(),g(`div`,Ve,[l[3]||=C(`svg`,{"aria-hidden":`true`,class:`text-primary`},[C(`use`,{href:`#icon-users`})],-1),D(` `+m(u(o)(`max`))+` `+m(e.room?.maxPersons),1)])):_(``,!0),l[5]||=C(`hr`,{class:`w-px h-5 text-main/15 mx-4`},null,-1),e.room?.sizeRoom?(a(),g(`div`,$,[l[4]||=C(`svg`,{"aria-hidden":`true`,class:`text-primary`},[C(`use`,{href:`#icon-arrows-pointing-out`})],-1),C(`span`,null,m(u(o)(`min`))+` `+m(e.room?.sizeRoom)+` m²`,1)])):_(``,!0)])]),C(`div`,He,[e.room?.description?(a(),g(`div`,{key:0,class:`x-text xs`,innerHTML:e.room?.description},null,8,Ue)):_(``,!0),C(`ul`,We,[(a(!0),g(E,null,s(e.room?.amenities,e=>(a(),g(`li`,{key:e.id},[k(b,{class:`size-5 shrink-0 fill-none **:!stroke-accent`,"aria-hidden":`true`,src:e.image},null,8,[`src`]),D(` `+m(e.name),1)]))),128))])])]),e.showRates?(a(),g(`div`,Ge,[u(d).date.start?(a(),g(`span`,Ke,m(u(c)(u(d).date.start.toString(),{dateStyle:`long`,timeZone:u(p)?.timeZone})),1)):_(``,!0),l[6]||=C(`svg`,{"aria-hidden":`true`,class:`size-4 text-main-tertiary -mx-0.5 shrink-0`},[C(`use`,{href:`#icon-arrow-right-micro`})],-1),u(d).date.end?(a(),g(`span`,qe,m(u(c)(u(d).date.end.toString(),{dateStyle:`long`,timeZone:u(p)?.timeZone})),1)):_(``,!0),l[7]||=C(`hr`,{class:`w-px h-3.5 bg-main-tertiary`},null,-1),C(`span`,null,[D(m(u(d).data?.[u(d).activeRoom]?.adults)+` `+m(u(o)(`adultsPlural`,u(d).data?.[u(d).activeRoom]?.adults))+` `,1),u(d).data?.[u(d).activeRoom]?.children.length>0?(a(),g(E,{key:0},[D(` + `+m(u(d).data?.[u(d).activeRoom]?.children.length)+` `+m(u(o)(`childrenPlural`,u(d).data?.[u(d).activeRoom]?.children?.length)),1)],64)):_(``,!0)])])):_(``,!0),!e.room?.disabled&&e.showRates?(a(),x(S,{key:2,room:i.room,"default-maximum-rates":1/0,class:`flex flex-col gap-3 md:gap-1.5`},null,8,[`room`])):e.room?.disabled?(a(),g(`div`,Je,[k(w,{class:`accent-error mx-auto`,icon:`#icon-x-mark`}),e.room?.disabledText?(a(),g(`h2`,{key:0,class:`x-heading text-center max-w-87.5 mx-auto`,innerHTML:e.room?.disabledText},null,8,Ye)):_(``,!0),k(h,{size:`md`,class:`accent-main mx-auto`,onClick:l[1]||=t=>u(f).show({defaultRoomId:e.room?.id})},{default:n(()=>[D(m(u(o)(`showPricesAndAvailability`)),1)]),_:1})])):_(``,!0),e.cancellationPolicy?(a(),g(`div`,Xe,[C(`div`,Ze,m(u(o)(`cancellationPolicy`)),1),C(`div`,{class:`x-text xs`,innerHTML:e.cancellationPolicy},null,8,Qe)])):_(``,!0)]),_:1})}}});export{J as i,Q as n,Z as r,$e as t};
1
+ import{Bn as e,Dn as t,Hn as n,Kn as r,Ln as i,Mn as a,Nn as o,Pn as s,Rn as c,Vn as l,Xn as u,Zn as d,bn as f,d as p,er as m,f as h,gn as g,hn as _,jt as v,kn as y,ln as b,mn as x,p as S,pn as C,pt as w,u as T,un as E,vn as D,wn as O,yn as k}from"./vendor._wA0akn2.js";import{t as A}from"./params.IVBLxJy4.js";import{n as j,t as M}from"./DialogContent.BGzVxgDS.js";import{t as N}from"./Button.BeiE5OVg.js";import{m as P,o as F,p as I}from"./client.DrlPwpqz.js";import{t as L}from"./config.DhUrL--N.js";import{t as R}from"./_plugin-vue_export-helper.C0he-f43.js";import{t as z}from"./Circle.DpT3TU5e.js";import{i as B,r as ee,t as V}from"./calendarFlexibleDialog.iE6_fSo6.js";import{t as H}from"./ButtonBordered.D3aU6uqY.js";import{t as te}from"./formatPrice.DafIJMfZ.js";import{t as ne}from"./Popover.ChICNzsj.js";import{t as U}from"./hotel.BG-sRF7k.js";import{a as W,n as G,r as K,t as q}from"./PackageDetailDialogContent.TEs_OhoU.js";var J=f({__name:`PackageDetailDialog`,props:{roomSelect:{type:Boolean,default:!1},editIndex:{type:Number},package:{type:Object}},setup(e,{expose:i}){let o=e,s=r();return i({root:s}),(e,r)=>{let i=q,c=j;return a(),x(c,{ref_key:`root`,ref:s},{default:n(()=>[k(i,t(o,{"onClose:dialog":r[0]||=e=>s.value?.close()}),null,16)]),_:1},512)}}}),re={class:`x-room-rates-item p-3 border rounded-md flex lg:items-center relative border-main-tertiary @container max-lg:flex-wrap bg-body-primary`},Y={key:0,class:`x-image before:skeleton shrink-0 mr-3`},X=[`src`,`alt`],ie={class:`flex flex-col gap-2 lg:max-w-[50%] max-lg:flex-1`},ae={class:`x-title flex items-baseline gap-0.5`},oe={class:`x-title sm font-medium flex items-baseline gap-1`},se={class:`flex items-center gap-2 lg:gap-4 lg:justify-end lg:ml-auto max-lg:mt-5 max-lg:w-full`},ce={key:0,class:`x-title sm font-medium text-main-secondary`},le=f({__name:`RoomRatesItemPackage`,props:{room:{type:Object}},setup(e){let i=O(`shadowRoot`),{t:s,n:c}=v(),l=A(),{data:d}=L(),{data:f}=U(),p=r(),h=O(`roomDetailDialog`),y=r(),b=r({roomSelect:!1,edit:!1});return o(`packageDetailDialog`,y),(r,o)=>{let v=W,S=N,w=B,T=J;return a(),g(E,null,[C(`div`,re,[e.room?.package?.images?.[0]?.[`1x`]?(a(),g(`div`,Y,[C(`img`,{src:e.room?.package?.images?.[0]?.[`1x`],loading:`lazy`,alt:e.room?.package?.images?.[0]?.alt,width:`64`,height:`64`,class:`size-16 object-cover`},null,8,X)])):_(``,!0),C(`div`,ie,[C(`div`,ae,m(e.room?.package?.name),1),C(`div`,oe,[C(`button`,{class:`x-link text-primary underline transition hocus:text-accent-alt`,onClick:o[0]||=e=>[b.value={roomSelect:!1,edit:!1},y.value.root.show()]},m(u(s)(`showPackageDetail`)),1)])]),C(`div`,se,[k(v,{prices:e.room?.prices},null,8,[`prices`]),e.room?.prices?.finalPriceExtraBeds&&e.room?.prices?.finalPriceExtraBeds>0?(a(),g(`div`,ce,` + `+m(u(c)(e.room?.prices.finalPriceExtraBeds,`decimal`))+` `+m(u(l).currency),1)):_(``,!0)]),e.room?.prices?.finalPrice||u(d)?.allowSuperPromo?(a(),x(S,{key:1,size:`md`,class:`lg:ml-13.5 max-lg:mt-3 max-lg:w-full`,onClick:o[1]||=t=>u(K)({entity:`Package`,room:e.room?.package?.rooms?.find(t=>t.id===e.room?.id),package:e.room?.package,description:`${u(s)(`room`)}: ${e.room?.name}`},{errorDialog:p.value,roomDetailDialog:u(h),editIndex:u(h)?.$props?.editIndex,hotel:u(f),config:u(d),shadowRoot:u(i)})},{default:n(()=>[D(m(u(s)(`book`)),1)]),_:1})):_(``,!0),k(w,{ref_key:`errorDialog`,ref:p,status:`error`,heading:u(s)(`weAreSorry`),text:u(s)(`roomCannotBeBooked`)},null,8,[`heading`,`text`])]),k(T,t({...b.value,package:e.room?.package},{ref_key:`packageDetailDialog`,ref:y}),null,16)],64)}}}),ue={key:0,class:`x-badge sm absolute left-3 -top-1.5 bg-gradient-to-r from-top-gradient-0 to-top-gradient-100`},de={class:`flex flex-col gap-1`},fe={class:`x-title flex items-baseline gap-0.5`},pe={key:0,class:`x-title xs`},me={key:1,class:`x-badge accent-main ml-1.5`},he={key:0},ge={class:`x-title sm font-medium flex items-baseline flex-wrap gap-1`},_e=[`popovertarget`,`onClick`],ve={class:`flex items-center gap-2 lg:gap-4 lg:justify-end lg:ml-auto max-lg:items-end max-lg:mt-4`},ye=[`title`],be=[`aria-label`],xe={key:1,class:`x-title sm font-medium text-main-secondary flex items-center gap-1`},Se=[`id`],Ce={key:0,class:`x-title sm mb-1.5 not-first:mt-4`},we=[`innerHTML`],Te={key:2,class:`x-title sm mb-1.5 not-first:mt-4`},Ee=[`innerHTML`],De=f({__name:`RoomRatesItem`,props:{rate:{type:Object},room:{type:Object}},setup(e){let t=O(`shadowRoot`),o=e,{t:s,n:l}=v(),f=w(ee.touch),y=r(),j=A(),M=F(),{data:P}=L(),{data:I}=U(),R=r(),z=c(),V=r(),H=r(),G=r(o.rate?.prices?.finalPriceExtraBeds>0?`${o.rate?.name} (+${s(`extraBed`)})`:o.rate?.name),q=r(),J=O(`roomDetailDialog`);return(r,o)=>{let c=W,v=N,w=B,O=ne;return a(),x(O,{ref_key:`root`,ref:R,refs:{popoverTrigger:V.value,popoverTarget:H.value},class:`@container group/popover`},{default:n(({togglePopover:r})=>[o[4]||=C(`div`,{class:`fixed inset-0 bg-dark/50 z-20 pointer-events-none transition opacity-0 group-data-open/popover:opacity-100`},null,-1),C(`div`,{class:d([`x-room-rates-item p-3 border rounded-md flex lg:items-center relative @container max-lg:flex-col bg-body-primary`,[`duration-300 transition-[z-index] group-data-open/popover:z-20 group-has-aria-[expanded=false]/popover:transition-discrete`,{"border-error":e.rate?.isFavorite,"border-main":e.rate?.isPrivate,"border-main-tertiary":!e.rate?.isFavorite&&!e.rate?.isPrivate}]])},[e.rate?.isFavorite?(a(),g(`div`,ue,m(u(s)(`mostPopular`)),1)):_(``,!0),C(`div`,de,[C(`div`,fe,[D(m(e.rate?.name)+` `,1),e.rate?.prices?.finalPriceExtraBeds>0?(a(),g(`div`,pe,` (+`+m(u(s)(`extraBed`))+`) `,1)):_(``,!0),e.rate?.isPrivate?(a(),g(`div`,me,[D(m(u(s)(`privateOffer`))+` `,1),e.rate.loginRequired?(a(),g(`span`,he,`- `+m(u(s)(`doLogin`)),1)):_(``,!0)])):_(``,!0)]),C(`div`,ge,[e.rate?.priceType===`refundable`?(a(),g(E,{key:0},[D(m(u(s)(`withMoneyRefund`)),1)],64)):e.rate?.priceType===`nonrefundable`?(a(),g(E,{key:1},[D(m(u(s)(`withoutMoneyRefund`)),1)],64)):e.rate?.priceType===`semirefundable`?(a(),g(E,{key:2},[D(m(u(s)(`withSemiMoneyRefund`)),1)],64)):_(``,!0),C(`button`,{ref_key:`popoverTrigger`,ref:V,class:`x-link text-primary underline transition hocus:text-accent-alt`,popovertargetaction:`toggle`,popovertarget:u(z),onClick:b(e=>r(V.value,H.value,{anchorElement:R.value.$el,offset:4}),[`prevent`])},m(u(s)(`showOfferDetail`)),9,_e)])]),C(`div`,ve,[k(c,{prices:e.rate?.prices},null,8,[`prices`]),e.rate?.prices?.finalPriceExtraBeds&&e.rate?.prices?.finalPriceExtraBeds>0?(a(),g(`div`,{key:0,class:`flex flex-col gap-1.5 items-end`,title:u(s)(`extraBed`)},[e.rate?.prices?.originalPriceExtraBeds&&e.rate?.prices?.originalPriceExtraBeds>0&&e.rate?.prices?.finalPriceExtraBeds!==e.rate?.prices?.originalPriceExtraBeds?(a(),g(`del`,{key:0,class:`x-title sm font-medium text-main-secondary flex items-center gap-2`,"aria-label":u(s)(`originalPrice`)},` + `+m(u(l)(e.rate?.prices.originalPriceExtraBeds,`decimal`))+` `+m(u(j).currency),9,be)):_(``,!0),(a(),x(i(e.rate?.prices?.finalPriceExtraBeds===e.rate?.prices?.originalPriceExtraBeds?`div`:`ins`),{class:`x-title sm font-medium text-main-secondary`,"aria-label":u(s)(`price`)},{default:n(()=>[D(` + `+m(u(l)(e.rate?.prices.finalPriceExtraBeds,`decimal`))+` `+m(u(j).currency),1)]),_:1},8,[`aria-label`]))],8,ye)):_(``,!0),e.rate?.isPrivate&&!u(P)?.localFeeIncluded&&u(j).showPrivateRateLocalFee?(a(),g(`div`,xe,[D(` + `+m(u(l)(u(P)?.localFeeValue*(u(M).data?.[u(M).activeRoom]?.adults??NaN)*u(M).totalNights,`decimal`))+` `+m(u(j).currency)+` `,1),k(u(S),{open:y.value},{default:n(()=>[k(u(T),{"as-child":``,onMouseenter:o[0]||=e=>u(f)&&(y.value=!0),onMouseleave:o[1]||=e=>u(f)&&(y.value=!1)},{default:n(()=>[...o[3]||=[C(`svg`,{class:`size-4 text-primary cursor-default rounded-full outline-0 -outline-offset-1 outline-primary focus-visible:outline-2`},[C(`use`,{href:`#icon-information-circle`})],-1)]]),_:1}),k(u(p),{to:u(t)},{default:n(()=>[k(u(h),{sideOffset:4,side:`bottom`,class:`x-popover-content tooltip shadow`},{default:n(()=>[D(m(u(s)(`localFeeRateInfo`,[u(te)(u(P)?.localFeeValue*(u(M).data?.[u(M).activeRoom]?.adults??NaN)*u(M).totalNights,u(j).currency)])),1)]),_:1})]),_:1},8,[`to`])]),_:1},8,[`open`])])):_(``,!0)]),e.rate?.loginRequired?(a(),x(v,{key:2,to:`/login`,size:`md`,class:`lg:ml-[var(--x-room-rate-item-button-ml,3.5cqw)] max-lg:mt-3`},{default:n(()=>[D(m(u(s)(`signin`)),1)]),_:1})):(a(),g(E,{key:1},[e.rate?.prices?.finalPrice||u(P)?.allowSuperPromo?(a(),x(v,{key:0,size:`md`,class:`lg:ml-[var(--x-room-rate-item-button-ml,3.5cqw)] max-lg:mt-3`,onClick:o[2]||=n=>u(K)({entity:`Room`,rate:e.rate,room:e.room,description:G.value},{editIndex:u(J)?.$props?.editIndex,errorDialog:q.value,roomDetailDialog:u(J),hotel:u(I),config:u(P),shadowRoot:u(t)})},{default:n(()=>[D(m(u(s)(`book`)),1)]),_:1})):_(``,!0)],64)),k(w,{ref_key:`errorDialog`,ref:q,status:`error`,heading:u(s)(`weAreSorry`),text:u(s)(`roomCannotBeBooked`)},null,8,[`heading`,`text`])],2),C(`div`,{id:u(z),ref_key:`popoverTarget`,ref:H,class:`x-popover-content p-6 border-0 border-main-tertiary shadow-lg bottom bottom-start w-[100cqw]`,popover:`manual`,inert:``},[e.rate?.description?(a(),g(`div`,Ce,m(u(s)(`rateDescription`)),1)):_(``,!0),e.rate?.description?(a(),g(`div`,{key:1,class:`x-text xs`,innerHTML:e.rate?.description},null,8,we)):_(``,!0),e.rate?.cancellationPolicy?(a(),g(`div`,Te,m(u(s)(`cancellationPolicy`)),1)):_(``,!0),e.rate?.cancellationPolicy?(a(),g(`div`,{key:3,class:`x-text xs`,innerHTML:e.rate?.cancellationPolicy},null,8,Ee)):_(``,!0)],8,Se)]),_:1},8,[`refs`])}}}),Oe={class:`x-room-rates`},ke={key:0,class:`flex flex-col`},Ae={class:`x-title sm flex items-center gap-1 pt-2 pb-1.5`},Z=f({__name:`RoomRates`,props:{room:{type:Object},defaultMaximumRates:{type:Number}},setup(e){let t=e,{data:i}=L(),o=r(i.value?.showNumberOfRates===0?1/0:t.defaultMaximumRates??i.value?.showNumberOfRates),c=r(t.defaultMaximumRates??o.value??1/0),{t:l}=v();return(t,r)=>{let i=De,o=le,d=H;return a(),g(`div`,Oe,[(a(!0),g(E,null,s(e.room?.rates,(t,n)=>(a(),g(E,{key:t.id},[n+1<=c.value?(a(),x(i,{key:0,room:e.room,rate:t},null,8,[`room`,`rate`])):_(``,!0)],64))),128)),e.room?.package?(a(),g(`div`,ke,[C(`div`,Ae,[r[1]||=C(`svg`,{"aria-hidden":`true`,class:`size-6 text-primary`},[C(`use`,{href:`#icon-packages`})],-1),D(` `+m(u(l)(`dontMissOutPackageDeal`)),1)]),k(o,{room:e.room},null,8,[`room`])])):_(``,!0),e.room?.rates?.length>c.value?(a(),x(d,{key:1,size:`md`,class:`self-center mt-4.5 max-md:mb-4.5`,onClick:r[0]||=e=>c.value=1/0},{default:n(()=>[D(m(u(l)(`showAllRates`))+` `,1),r[2]||=C(`svg`,{"aria-hidden":`true`},[C(`use`,{href:`#icon-plus`})],-1)]),_:1})):_(``,!0)])}}}),je=f({__name:`Svg`,props:{src:{type:String}},setup(t){let n=t,r=e(`host`);async function i(e){let t=await(await fetch(e)).text(),n=new DOMParser().parseFromString(t,`text/html`).body.firstElementChild;!r.value||!n||(r.value.setAttribute(`viewBox`,n?.getAttribute(`viewBox`)??``),r.value.innerHTML=n.innerHTML)}return y(()=>i(n.src)),l(()=>n.src,e=>i(e)),(e,t)=>(a(),g(`svg`,{ref_key:`host`,ref:r},null,512))}}),Me={},Ne={viewBox:`0 0 512 512`,class:`size-6`};function Pe(e,t){return a(),g(`svg`,Ne,[...t[0]||=[C(`path`,{class:`fill-error`,d:`m325.7 6.6993c-20.154-3.6626-40.553-6.0621-58.79-6.529-5.2664-0.13484-10.354-0.11197-15.205 0.08123h-0.0429c-63.368-0.3116-164.21 15.986-210.98 91.022l-0.0042 8e-3c-50.948 78.109-48.148 194.08-23.666 280.29 8.2163 26.444 25.721 62.635 46.477 81.665v2e-3h0.0021c29.547 27.327 64.439 43.238 107.47 51.432l8e-3 2e-3c59.032 8.0651 120.43 12.136 177.43-2.7262 29.595-8.1412 58.426-20.799 83.477-38.648l2e-3 -2e-3 4e-3 -2e-3c27.176-18.781 44.419-44.723 56.189-75.569l2e-3 -2e-3v-4e-3c11.88-30.075 20.074-62.162 23.107-94.439 1.1e-4 -2e-3 -9e-5 -4e-3 0-6e-3 3.3456-64.047-1.9605-165.29-44.695-214.38l-4e-3 -0.0042c-16.938-19.932-51.297-47.772-82.269-57.52l-8e-3 -0.0042c-14.974-4.9979-32.384-9.0457-49.811-12.566-3.018-0.61165-5.6534-1.5504-8.6904-2.1046z`},null,-1),C(`path`,{class:`fill-body-primary origin-[center_bottom] animate-[outer-flicker_0.5s_ease-in-out_infinite]`,d:`m286.03 111c0.97194 26.124-4.4053 50.055-13.471 68.071-9.2127 18.309-22.21 30.565-36.213 32.709h-2e-3l-2e-3 2e-3c-15.643 2.8675-36.629-4.4745-47.232-18.965l-2e-3 -2e-3c-3.9293-5.113-6.3795-10.466-7.9094-15.341-1.9724-6.2869-2.3904-11.696-2.4806-14.865-28.534 30.023-54.752 82.441-47.67 131.88v2e-3c1.6227 11.577 5.2543 22.901 10.59 34.406l6e-3 0.0143 6e-3 0.0144c17.415 44.558 59.986 63.352 91.905 69.896 27.112 5.5535 61.438 0.54134 85.074-15.427 39.41-26.621 68.481-69.853 62.785-114.54v-2e-3l-2e-3 -4e-3c-3.5163-30.74-12.132-60.378-33.024-89.349-9.1499-12.693-21.504-26.115-34.745-40.276-12.739-13.327-21.233-22.054-27.613-28.222z`,fill:`#fff`},null,-1),C(`path`,{class:`fill-error origin-[center_bottom] animate-[inner-flicker_0.5s_ease-in-out_infinite]`,d:`m296.28 339.3c0 24.085-18.07 43.687-40.287 43.687-22.217 0-40.287-19.602-40.287-43.687 0-18.008 21.295-49.452 32.752-66.339 2.4782-3.6613 4.8195-7.1358 5.3052-8.1072 0.1868-0.78456 0.73475-1.4446 1.4695-1.7186 0.90909-0.36114 1.9427-0.0498 2.5529 0.78457 1.5816 2.1046 38.506 52.043 38.506 75.393z`},null,-1)]])}var Q=R(Me,[[`render`,Pe]]),Fe={class:`flex flex-col gap-4 md:gap-6 [.peer+&]:mt-6 md:[.peer+&]:mt-8`},Ie={class:`flex max-md:flex-col justify-between gap-4 md:gap-2 md:items-end`},Le={class:`flex flex-col gap-1 md:gap-2`},Re={key:0,class:`x-title sm flex items-center gap-2.5 text-error`},ze={key:1,class:`x-heading`},Be={class:`x-title sm font-medium flex items-center`},Ve={key:0,class:`flex items-center gap-1.5`},$={key:1,class:`flex items-center gap-1.5`},He={class:`flex flex-col p-3 md:p-6 gap-6 md:gap-12 rounded-md border border-main-tertiary md:grid md:grid-cols-[54.5%_1fr]`},Ue=[`innerHTML`],We={class:`x-title sm font-medium flex flex-col [&>li]:flex [&>li]:gap-4 [&>li]:items-center gap-4`},Ge={key:1,class:`x-heading xs flex flex-wrap items-center gap-y-1 gap-x-3 mt-3 md:mt-6 pt-3 pb-3 md:pb-6`},Ke={key:0},qe={key:1},Je={key:3,class:`border border-main-tertiary rounded-md py-6 px-3 gap-6 flex flex-col`},Ye=[`innerHTML`],Xe={key:4,class:`p-3 bg-body rounded-sm mt-3 md:mt-6`},Ze={class:`x-title sm mb-2`},Qe=[`innerHTML`],$e=f({__name:`RoomDetailDialogContent`,props:{room:{type:Object},editIndex:{type:Number},closeButton:{type:Boolean,default:!0},showRates:{type:Boolean,default:!0},cancellationPolicy:{type:String}},emits:[`close:dialog`],setup(e,{emit:t}){let r=t,i=e,{t:o,d:c}=v(),l=A(),d=F(),f=V(),{data:p}=L(),{data:h}=U();return y(()=>{(p.value?.tracking?.googleGa4||p.value?.tracking?.googleGtm)&&I(`event`,`view_item`,{currency:l.currency,items:[{item_id:i?.room?.id,item_name:i?.room?.name,item_category:`Room`,item_brand:h.value?.chainName,affiliation:h.value?.name,currency:l.currency}]}),p.value?.tracking?.leadhub&&P(`ViewContent`,{products:[{product_id:i?.room?.id}]})}),(t,l)=>{let h=N,v=G,y=Q,b=je,S=Z,w=z,T=M;return a(),x(T,{size:`lg`,class:`flex flex-col mt-13.5 p-3 md:p-6`},{default:n(()=>[e.closeButton?(a(),x(h,{key:0,class:`accent-body-primary shadow-lg sticky top-0 inset-x-0 mx-auto w-fit z-10 -mt-[calc(--spacing(6)+2.625rem)] mb-6 md:-mt-[calc(--spacing(9)+2.625rem)] md:mb-9`,size:`md`,onClick:l[0]||=e=>r(`close:dialog`)},{default:n(()=>[l[2]||=C(`svg`,{"aria-hidden":`true`},[C(`use`,{href:`#icon-x-mark-mini`})],-1),D(` `+m(u(o)(`closeDetail`)),1)]),_:1})):_(``,!0),k(v,{class:`peer`,images:e.room?.images},null,8,[`images`]),C(`div`,Fe,[C(`div`,Ie,[C(`div`,Le,[e.room?.availableCount&&!e.room?.disabled&&e.room?.availableCount<=u(p)?.numberOfRoomsRemaining&&u(p)?.showRoomsRemaining?(a(),g(`div`,Re,[k(y),D(` `+m(u(o)(`roomNthRemaining`,e.room?.availableCount)),1)])):_(``,!0),e.room?.name?(a(),g(`h2`,ze,m(e.room?.name),1)):_(``,!0)]),C(`div`,Be,[e.room?.maxPersons?(a(),g(`div`,Ve,[l[3]||=C(`svg`,{"aria-hidden":`true`,class:`text-primary`},[C(`use`,{href:`#icon-users`})],-1),D(` `+m(u(o)(`max`))+` `+m(e.room?.maxPersons),1)])):_(``,!0),l[5]||=C(`hr`,{class:`w-px h-5 text-main/15 mx-4`},null,-1),e.room?.sizeRoom?(a(),g(`div`,$,[l[4]||=C(`svg`,{"aria-hidden":`true`,class:`text-primary`},[C(`use`,{href:`#icon-arrows-pointing-out`})],-1),C(`span`,null,m(u(o)(`min`))+` `+m(e.room?.sizeRoom)+` m²`,1)])):_(``,!0)])]),C(`div`,He,[e.room?.description?(a(),g(`div`,{key:0,class:`x-text xs`,innerHTML:e.room?.description},null,8,Ue)):_(``,!0),C(`ul`,We,[(a(!0),g(E,null,s(e.room?.amenities,e=>(a(),g(`li`,{key:e.id},[k(b,{class:`size-5 shrink-0 fill-none **:!stroke-accent`,"aria-hidden":`true`,src:e.image},null,8,[`src`]),D(` `+m(e.name),1)]))),128))])])]),e.showRates?(a(),g(`div`,Ge,[u(d).date.start?(a(),g(`span`,Ke,m(u(c)(u(d).date.start.toString(),{dateStyle:`long`,timeZone:u(p)?.timeZone})),1)):_(``,!0),l[6]||=C(`svg`,{"aria-hidden":`true`,class:`size-4 text-main-tertiary -mx-0.5 shrink-0`},[C(`use`,{href:`#icon-arrow-right-micro`})],-1),u(d).date.end?(a(),g(`span`,qe,m(u(c)(u(d).date.end.toString(),{dateStyle:`long`,timeZone:u(p)?.timeZone})),1)):_(``,!0),l[7]||=C(`hr`,{class:`w-px h-3.5 bg-main-tertiary`},null,-1),C(`span`,null,[D(m(u(d).data?.[u(d).activeRoom]?.adults)+` `+m(u(o)(`adultsPlural`,u(d).data?.[u(d).activeRoom]?.adults))+` `,1),u(d).data?.[u(d).activeRoom]?.children.length>0?(a(),g(E,{key:0},[D(` + `+m(u(d).data?.[u(d).activeRoom]?.children.length)+` `+m(u(o)(`childrenPlural`,u(d).data?.[u(d).activeRoom]?.children?.length)),1)],64)):_(``,!0)])])):_(``,!0),!e.room?.disabled&&e.showRates?(a(),x(S,{key:2,room:i.room,"default-maximum-rates":1/0,class:`flex flex-col gap-3 md:gap-1.5`},null,8,[`room`])):e.room?.disabled?(a(),g(`div`,Je,[k(w,{class:`accent-error mx-auto`,icon:`#icon-x-mark`}),e.room?.disabledText?(a(),g(`h2`,{key:0,class:`x-heading text-center max-w-87.5 mx-auto`,innerHTML:e.room?.disabledText},null,8,Ye)):_(``,!0),k(h,{size:`md`,class:`accent-main mx-auto`,onClick:l[1]||=t=>u(f).show({defaultRoomId:e.room?.id})},{default:n(()=>[D(m(u(o)(`showPricesAndAvailability`)),1)]),_:1})])):_(``,!0),e.cancellationPolicy?(a(),g(`div`,Xe,[C(`div`,Ze,m(u(o)(`cancellationPolicy`)),1),C(`div`,{class:`x-text xs`,innerHTML:e.cancellationPolicy},null,8,Qe)])):_(``,!0)]),_:1})}}});export{J as i,Q as n,Z as r,$e as t};
@@ -1 +1 @@
1
- import{Hn as e,In as t,Kn as n,Mn as r,Pn as i,Xn as a,bn as o,er as s,gn as c,hn as l,jt as u,mn as d,pn as f,un as p,vn as m,yn as h}from"./vendor.BGu2qkTq.js";import{t as g}from"./Button.DSwXM1vM.js";import{c as _,o as v}from"./client.DrMpyevc.js";import{r as y}from"./account.BsTL4CgW.js";import{n as b,t as x}from"./calendarFlexibleDialog.Lm32GQ8D.js";import{i as S}from"./calendar.Cij86reI.js";import{t as C}from"./ButtonBorderedThin.jONrcTDH.js";import{t as w}from"./fancybox.CJsv9BnL.js";var T={class:`x-aside-availability p-4 px-3 md:p-6 rounded-xl bg-body-primary flex flex-col gap-3`},E={class:`x-title sm font-medium`},D=o({__name:`AsideAvailability`,props:{type:{default:`rooms`,type:String}},setup(t){let{t:n}=u(),i=x();return(o,l)=>{let u=C;return r(),c(`div`,T,[f(`div`,E,s(a(n)(`flexibleAvailabilityTitle`)),1),h(u,{size:`lg`,class:`gap-2 pl-2 justify-start`,onClick:l[0]||=e=>a(i).show({type:t.type})},{default:e(()=>[l[1]||=f(`svg`,{"aria-hidden":`true`,class:`size-10 text-primary`},[f(`use`,{href:`#icon-calendar-availability-solid`})],-1),m(` `+s(a(n)(`pricesAndAvailability`)),1)]),_:1})])}}}),O={class:`flex flex-col gap-1`},k={class:`x-title xs`},A={class:`x-title transition group-hocus:text-primary group-focus-visible:underline`},j=o({__name:`AsideAccountAuthenticated`,setup(n){let{t:i}=u(),{data:o}=y();return(n,c)=>{let l=t(`RouterLink`);return r(),d(l,{class:`x-aside-account p-4 px-3 md:py-5 md:px-6 bg-accent/15 rounded-xl flex gap-3 group`,to:`/account/orders`},{default:e(()=>[c[0]||=f(`svg`,{"aria-hidden":`true`,class:`size-10 p-2.5 bg-primary text-primary-foreground rounded-sm`},[f(`use`,{href:`#icon-user-mini`})],-1),f(`span`,O,[f(`span`,k,s(a(i)(`helloGoodDay`))+`, `,1),f(`span`,A,s(a(o)?.firstName)+` `+s(a(o)?.lastName),1)])]),_:1})}}}),M={class:`flex flex-col gap-1`},N={class:`x-title xs`},P={class:`x-title transition group-hocus:text-primary group-focus-visible:underline`},F=o({__name:`AsideAccount`,setup(n){let{t:i}=u();return(n,o)=>{let c=t(`RouterLink`);return r(),d(c,{class:`x-aside-account p-4 px-3 md:py-5 md:px-6 bg-body-primary rounded-xl flex gap-3 group items-center`,to:`/login`},{default:e(()=>[o[0]||=f(`svg`,{"aria-hidden":`true`,class:`size-10 p-2.5 bg-body rounded-sm`,viewBox:`0 0 20 20`,fill:`none`},[f(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M7.50004 3.75C7.63584 3.75003 7.76794 3.79429 7.87635 3.87608C7.98475 3.95788 8.06357 4.07275 8.10087 4.20333L8.77837 6.575C8.92425 7.08577 9.19791 7.55092 9.57352 7.92652C9.94912 8.30213 10.4143 8.57579 10.925 8.72167L13.2967 9.39917C13.4272 9.43655 13.542 9.5154 13.6237 9.6238C13.7054 9.7322 13.7496 9.86426 13.7496 10C13.7496 10.1357 13.7054 10.2678 13.6237 10.3762C13.542 10.4846 13.4272 10.5635 13.2967 10.6008L10.925 11.2783C10.4143 11.4242 9.94912 11.6979 9.57352 12.0735C9.19791 12.4491 8.92425 12.9142 8.77837 13.425L8.10087 15.7967C8.06349 15.9272 7.98464 16.0419 7.87624 16.1236C7.76784 16.2054 7.63578 16.2496 7.50004 16.2496C7.36429 16.2496 7.23224 16.2054 7.12384 16.1236C7.01544 16.0419 6.93659 15.9272 6.8992 15.7967L6.2217 13.425C6.07583 12.9142 5.80217 12.4491 5.42656 12.0735C5.05095 11.6979 4.5858 11.4242 4.07504 11.2783L1.70337 10.6008C1.57288 10.5635 1.4581 10.4846 1.37639 10.3762C1.29468 10.2678 1.25049 10.1357 1.25049 10C1.25049 9.86426 1.29468 9.7322 1.37639 9.6238C1.4581 9.5154 1.57288 9.43655 1.70337 9.39917L4.07504 8.72167C4.5858 8.57579 5.05095 8.30213 5.42656 7.92652C5.80217 7.55092 6.07583 7.08577 6.2217 6.575L6.8992 4.20333C6.93651 4.07275 7.01532 3.95788 7.12373 3.87608C7.23214 3.79429 7.36423 3.75003 7.50004 3.75ZM15 1.25C15.1395 1.24992 15.2749 1.29647 15.3848 1.38224C15.4948 1.46801 15.5729 1.58807 15.6067 1.72333L15.8217 2.58667C16.0184 3.37 16.63 3.98167 17.4134 4.17833L18.2767 4.39333C18.4122 4.4269 18.5326 4.50488 18.6186 4.61483C18.7047 4.72479 18.7514 4.86038 18.7514 5C18.7514 5.13962 18.7047 5.27521 18.6186 5.38517C18.5326 5.49512 18.4122 5.5731 18.2767 5.60667L17.4134 5.82167C16.63 6.01833 16.0184 6.63 15.8217 7.41333L15.6067 8.27667C15.5731 8.41219 15.4952 8.53257 15.3852 8.61861C15.2753 8.70465 15.1397 8.7514 15 8.7514C14.8604 8.7514 14.7248 8.70465 14.6149 8.61861C14.5049 8.53257 14.4269 8.41219 14.3934 8.27667L14.1784 7.41333C14.0822 7.02869 13.8833 6.67742 13.603 6.39706C13.3226 6.11671 12.9713 5.91782 12.5867 5.82167L11.7234 5.60667C11.5878 5.5731 11.4675 5.49512 11.3814 5.38517C11.2954 5.27521 11.2486 5.13962 11.2486 5C11.2486 4.86038 11.2954 4.72479 11.3814 4.61483C11.4675 4.50488 11.5878 4.4269 11.7234 4.39333L12.5867 4.17833C12.9713 4.08218 13.3226 3.88329 13.603 3.60294C13.8833 3.32258 14.0822 2.97131 14.1784 2.58667L14.3934 1.72333C14.4272 1.58807 14.5053 1.46801 14.6152 1.38224C14.7252 1.29647 14.8606 1.24992 15 1.25ZM13.75 12.5C13.8813 12.4999 14.0093 12.5412 14.1158 12.6179C14.2223 12.6946 14.3019 12.803 14.3434 12.9275L14.6717 13.9133C14.7967 14.2858 15.0884 14.5792 15.4617 14.7033L16.4475 15.0325C16.5717 15.0742 16.6796 15.1538 16.756 15.2601C16.8325 15.3664 16.8736 15.4941 16.8736 15.625C16.8736 15.7559 16.8325 15.8836 16.756 15.9899C16.6796 16.0962 16.5717 16.1758 16.4475 16.2175L15.4617 16.5467C15.0892 16.6717 14.7959 16.9633 14.6717 17.3367L14.3425 18.3225C14.3009 18.4466 14.2212 18.5546 14.1149 18.631C14.0086 18.7075 13.881 18.7486 13.75 18.7486C13.6191 18.7486 13.4915 18.7075 13.3851 18.631C13.2788 18.5546 13.1992 18.4466 13.1575 18.3225L12.8284 17.3367C12.767 17.1527 12.6637 16.9856 12.5265 16.8485C12.3894 16.7114 12.2223 16.6081 12.0384 16.5467L11.0525 16.2175C10.9284 16.1758 10.8205 16.0962 10.744 15.9899C10.6676 15.8836 10.6265 15.7559 10.6265 15.625C10.6265 15.4941 10.6676 15.3664 10.744 15.2601C10.8205 15.1538 10.9284 15.0742 11.0525 15.0325L12.0384 14.7033C12.4109 14.5783 12.7042 14.2867 12.8284 13.9133L13.1575 12.9275C13.199 12.8031 13.2785 12.6949 13.3848 12.6182C13.4911 12.5414 13.6189 12.5001 13.75 12.5Z`,fill:`currentColor`})],-1),f(`span`,M,[f(`span`,N,s(a(i)(`forExclusiveOffers`)),1),f(`span`,P,s(a(i)(`openPrivateAccount`)),1)])]),_:1})}}}),I=[`href`],L=[`src`,`srcset`,`alt`],R=[`data-active`],z=o({__name:`RoomCarousel`,props:{images:{type:Array}},setup(t){let{t:o}=u(),s=n(),l=n(),m=n(),_=n(),v=n(),y=w(),x=()=>v.value?.children?[...v.value.children].indexOf(v?.value.querySelector(`[data-active]`)):0;return(n,u)=>{let C=S,w=g,T=b;return r(),d(T,{ref_key:`rootElement`,ref:s,refs:{contentElement:l.value,prevElement:m.value,nextElement:_.value,paginationElement:v.value},class:`x-carousel relative lg:max-w-[24rem] xl:max-w-[31.125rem] group`},{default:e(({scrollCarousel:n,setScrollPos:d,scrollPrev:g,scrollNext:b})=>[h(C,{ref_key:`contentElement`,ref:l,class:`rounded-md`,onScroll:e=>[n(l.value.$el,{pagination:{element:v.value}}),d()]},{default:e(()=>[(r(!0),c(p,null,i((t.images||[]).slice(0,10),(e,t)=>(r(),c(`a`,{key:t,class:`x-image w-full before:skeleton before:block cursor-pointer`,"data-fancybox":`gallery`,href:e?.[`3x`]},[f(`img`,{class:`aspect-4/3 rounded-none object-cover`,src:e?.[`1x`],srcset:`${e?.[`1x`]} 1x, ${e?.[`2x`]} 2x`,loading:`lazy`,alt:e?.alt},null,8,L)],8,I))),128))]),_:1},8,[`onScroll`]),f(`div`,{ref_key:`paginationElement`,ref:v,class:`x-carousel-dots absolute bottom-3 inset-x-3 flex justify-center gap-2.25`,"aria-hidden":`true`},[(r(!0),c(p,null,i((t.images||[]).slice(0,10),(e,t)=>(r(),c(`div`,{key:t,ref_for:!0,ref:`paginationItem`,class:`size-1.5 rounded-full bg-light/40 relative before:-inset-1 before:absolute cursor-pointer transition data-active:bg-light`,"data-active":t===0?!0:null},null,8,R))),128))],512),h(w,{variant:`circle`,class:`accent-black bg-black/10 hover:bg-black/30 backdrop-blur-md absolute inset-0 m-auto scale-50 opacity-0 group-hover:opacity-100 group-hover:scale-100`,"aria-label":a(o)(`showPreview`),onClick:u[0]||=e=>a(y).show(s.value.$el,x())},{default:e(()=>[...u[1]||=[f(`svg`,{"aria-hidden":`true`,class:`size-5.5`},[f(`use`,{href:`#icon-magnifying-glass-mini`})],-1)]]),_:1},8,[`aria-label`]),h(w,{ref_key:`prevElement`,ref:m,variant:`circle`,class:`accent-black bg-black/10 hover:bg-black/30 backdrop-blur-md absolute left-3 top-1/2 -mt-6 opacity-0 group-hover:opacity-100 disabled:opacity-0`,disabled:``,"aria-label":a(o)(`previous`),onClick:e=>g()},{default:e(()=>[...u[2]||=[f(`svg`,{"aria-hidden":`true`,class:`size-6`},[f(`use`,{href:`#icon-chevron-left-mini`})],-1)]]),_:1},8,[`aria-label`,`onClick`]),h(w,{ref_key:`nextElement`,ref:_,variant:`circle`,class:`accent-black bg-black/10 hover:bg-black/30 backdrop-blur-md absolute right-3 top-1/2 -mt-6 opacity-0 group-hover:opacity-100 disabled:opacity-0`,"aria-label":a(o)(`next`),onClick:e=>b()},{default:e(()=>[...u[3]||=[f(`svg`,{"aria-hidden":`true`,class:`size-6`},[f(`use`,{href:`#icon-chevron-right-mini`})],-1)]]),_:1},8,[`aria-label`,`onClick`])]),_:1},8,[`refs`])}}}),B={key:0,class:`x-room-select p-3 lg:p-6 bg-body-primary rounded-md flex flex-col gap-2 lg:gap-1.75`},V=[`data-active`],H={class:`flex max-lg:flex-col max-lg:gap-1.5 lg:items-center grow`},U={class:`x-title max-lg:xs lg:sm grow max-w-[10.125rem]`},W={class:`x-title sm flex items-center gap-2 lg:gap-3`},G={key:0,class:`x-title sm text-primary`},K=[`onClick`],q={class:`max-lg:hidden`},J={key:2,"aria-hidden":`true`,class:`size-7 shrink-0 p-1 bg-success text-light rounded-full ml-3 lg:ml-6`},Y=o({__name:`RoomSelect`,setup(e){let{t}=u(),n=v(),o=_();return(e,u)=>a(n).data.length>1?(r(),c(`div`,B,[(r(!0),c(p,null,i(a(n).data,(e,i)=>(r(),c(p,{key:i},[i===0||e.selected||i===a(n).activeRoom?(r(),c(`div`,{key:0,"data-active":i===a(n).activeRoom?`true`:void 0,class:`border border-transparent p-3 rounded-md h-16.5 flex items-center data-active:border-primary`},[f(`div`,H,[f(`div`,U,[e.selected?(r(),c(p,{key:1},[m(s(a(t)(`roomNthSelected`,i+1)),1)],64)):(r(),c(p,{key:0},[m(s(a(t)(`roomNthSelect`,i+1)),1)],64))]),f(`div`,W,[u[0]||=f(`svg`,{"aria-hidden":`true`,class:`size-5 lg:size-7 shrink-0 lg:p-1 lg:bg-primary lg:text-primary-foreground max-lg:text-primary rounded-full`},[f(`use`,{href:`#icon-user-mini`})],-1),m(` `+s(e.adults)+` `+s(a(t)(`adultsPlural`,e.adults))+` `,1),e.children.length>0?(r(),c(p,{key:0},[m(` + `+s(e.children.length)+` `+s(a(t)(`childrenPlural`,e.children.length)),1)],64)):l(``,!0)])]),i===a(n).activeRoom&&!e.selected?(r(),c(`div`,G,s(a(t)(`currentlySelecting`)),1)):(r(),c(`button`,{key:1,class:`x-title sm flex items-center gap-1.5 transition hocus:text-primary`,onClick:e=>a(o).removeAccommodationItemFromCart(i)},[u[1]||=f(`svg`,{"aria-hidden":`true`,class:`size-4`},[f(`use`,{href:`#icon-pencil-micro`})],-1),f(`span`,q,s(a(t)(`roomEdit`)),1)],8,K)),e.selected?(r(),c(`svg`,J,[...u[2]||=[f(`use`,{href:`#icon-check`},null,-1)]])):l(``,!0)],8,V)):l(``,!0)],64))),128))])):l(``,!0)}});export{D as a,j as i,z as n,F as r,Y as t};
1
+ import{Hn as e,In as t,Kn as n,Mn as r,Pn as i,Xn as a,bn as o,er as s,gn as c,hn as l,jt as u,mn as d,pn as f,un as p,vn as m,yn as h}from"./vendor._wA0akn2.js";import{t as g}from"./Button.BeiE5OVg.js";import{c as _,o as v}from"./client.DrlPwpqz.js";import{r as y}from"./account.BvHfMCcs.js";import{n as b,t as x}from"./calendarFlexibleDialog.iE6_fSo6.js";import{i as S}from"./calendar.3fDJgNdN.js";import{t as C}from"./ButtonBorderedThin.gaV5-h3U.js";import{t as w}from"./fancybox.MtRnSz01.js";var T={class:`x-aside-availability p-4 px-3 md:p-6 rounded-xl bg-body-primary flex flex-col gap-3`},E={class:`x-title sm font-medium`},D=o({__name:`AsideAvailability`,props:{type:{default:`rooms`,type:String}},setup(t){let{t:n}=u(),i=x();return(o,l)=>{let u=C;return r(),c(`div`,T,[f(`div`,E,s(a(n)(`flexibleAvailabilityTitle`)),1),h(u,{size:`lg`,class:`gap-2 pl-2 justify-start`,onClick:l[0]||=e=>a(i).show({type:t.type})},{default:e(()=>[l[1]||=f(`svg`,{"aria-hidden":`true`,class:`size-10 text-primary`},[f(`use`,{href:`#icon-calendar-availability-solid`})],-1),m(` `+s(a(n)(`pricesAndAvailability`)),1)]),_:1})])}}}),O={class:`flex flex-col gap-1`},k={class:`x-title xs`},A={class:`x-title transition group-hocus:text-primary group-focus-visible:underline`},j=o({__name:`AsideAccountAuthenticated`,setup(n){let{t:i}=u(),{data:o}=y();return(n,c)=>{let l=t(`RouterLink`);return r(),d(l,{class:`x-aside-account p-4 px-3 md:py-5 md:px-6 bg-accent/15 rounded-xl flex gap-3 group`,to:`/account/orders`},{default:e(()=>[c[0]||=f(`svg`,{"aria-hidden":`true`,class:`size-10 p-2.5 bg-primary text-primary-foreground rounded-sm`},[f(`use`,{href:`#icon-user-mini`})],-1),f(`span`,O,[f(`span`,k,s(a(i)(`helloGoodDay`))+`, `,1),f(`span`,A,s(a(o)?.firstName)+` `+s(a(o)?.lastName),1)])]),_:1})}}}),M={class:`flex flex-col gap-1`},N={class:`x-title xs`},P={class:`x-title transition group-hocus:text-primary group-focus-visible:underline`},F=o({__name:`AsideAccount`,setup(n){let{t:i}=u();return(n,o)=>{let c=t(`RouterLink`);return r(),d(c,{class:`x-aside-account p-4 px-3 md:py-5 md:px-6 bg-body-primary rounded-xl flex gap-3 group items-center`,to:`/login`},{default:e(()=>[o[0]||=f(`svg`,{"aria-hidden":`true`,class:`size-10 p-2.5 bg-body rounded-sm`,viewBox:`0 0 20 20`,fill:`none`},[f(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M7.50004 3.75C7.63584 3.75003 7.76794 3.79429 7.87635 3.87608C7.98475 3.95788 8.06357 4.07275 8.10087 4.20333L8.77837 6.575C8.92425 7.08577 9.19791 7.55092 9.57352 7.92652C9.94912 8.30213 10.4143 8.57579 10.925 8.72167L13.2967 9.39917C13.4272 9.43655 13.542 9.5154 13.6237 9.6238C13.7054 9.7322 13.7496 9.86426 13.7496 10C13.7496 10.1357 13.7054 10.2678 13.6237 10.3762C13.542 10.4846 13.4272 10.5635 13.2967 10.6008L10.925 11.2783C10.4143 11.4242 9.94912 11.6979 9.57352 12.0735C9.19791 12.4491 8.92425 12.9142 8.77837 13.425L8.10087 15.7967C8.06349 15.9272 7.98464 16.0419 7.87624 16.1236C7.76784 16.2054 7.63578 16.2496 7.50004 16.2496C7.36429 16.2496 7.23224 16.2054 7.12384 16.1236C7.01544 16.0419 6.93659 15.9272 6.8992 15.7967L6.2217 13.425C6.07583 12.9142 5.80217 12.4491 5.42656 12.0735C5.05095 11.6979 4.5858 11.4242 4.07504 11.2783L1.70337 10.6008C1.57288 10.5635 1.4581 10.4846 1.37639 10.3762C1.29468 10.2678 1.25049 10.1357 1.25049 10C1.25049 9.86426 1.29468 9.7322 1.37639 9.6238C1.4581 9.5154 1.57288 9.43655 1.70337 9.39917L4.07504 8.72167C4.5858 8.57579 5.05095 8.30213 5.42656 7.92652C5.80217 7.55092 6.07583 7.08577 6.2217 6.575L6.8992 4.20333C6.93651 4.07275 7.01532 3.95788 7.12373 3.87608C7.23214 3.79429 7.36423 3.75003 7.50004 3.75ZM15 1.25C15.1395 1.24992 15.2749 1.29647 15.3848 1.38224C15.4948 1.46801 15.5729 1.58807 15.6067 1.72333L15.8217 2.58667C16.0184 3.37 16.63 3.98167 17.4134 4.17833L18.2767 4.39333C18.4122 4.4269 18.5326 4.50488 18.6186 4.61483C18.7047 4.72479 18.7514 4.86038 18.7514 5C18.7514 5.13962 18.7047 5.27521 18.6186 5.38517C18.5326 5.49512 18.4122 5.5731 18.2767 5.60667L17.4134 5.82167C16.63 6.01833 16.0184 6.63 15.8217 7.41333L15.6067 8.27667C15.5731 8.41219 15.4952 8.53257 15.3852 8.61861C15.2753 8.70465 15.1397 8.7514 15 8.7514C14.8604 8.7514 14.7248 8.70465 14.6149 8.61861C14.5049 8.53257 14.4269 8.41219 14.3934 8.27667L14.1784 7.41333C14.0822 7.02869 13.8833 6.67742 13.603 6.39706C13.3226 6.11671 12.9713 5.91782 12.5867 5.82167L11.7234 5.60667C11.5878 5.5731 11.4675 5.49512 11.3814 5.38517C11.2954 5.27521 11.2486 5.13962 11.2486 5C11.2486 4.86038 11.2954 4.72479 11.3814 4.61483C11.4675 4.50488 11.5878 4.4269 11.7234 4.39333L12.5867 4.17833C12.9713 4.08218 13.3226 3.88329 13.603 3.60294C13.8833 3.32258 14.0822 2.97131 14.1784 2.58667L14.3934 1.72333C14.4272 1.58807 14.5053 1.46801 14.6152 1.38224C14.7252 1.29647 14.8606 1.24992 15 1.25ZM13.75 12.5C13.8813 12.4999 14.0093 12.5412 14.1158 12.6179C14.2223 12.6946 14.3019 12.803 14.3434 12.9275L14.6717 13.9133C14.7967 14.2858 15.0884 14.5792 15.4617 14.7033L16.4475 15.0325C16.5717 15.0742 16.6796 15.1538 16.756 15.2601C16.8325 15.3664 16.8736 15.4941 16.8736 15.625C16.8736 15.7559 16.8325 15.8836 16.756 15.9899C16.6796 16.0962 16.5717 16.1758 16.4475 16.2175L15.4617 16.5467C15.0892 16.6717 14.7959 16.9633 14.6717 17.3367L14.3425 18.3225C14.3009 18.4466 14.2212 18.5546 14.1149 18.631C14.0086 18.7075 13.881 18.7486 13.75 18.7486C13.6191 18.7486 13.4915 18.7075 13.3851 18.631C13.2788 18.5546 13.1992 18.4466 13.1575 18.3225L12.8284 17.3367C12.767 17.1527 12.6637 16.9856 12.5265 16.8485C12.3894 16.7114 12.2223 16.6081 12.0384 16.5467L11.0525 16.2175C10.9284 16.1758 10.8205 16.0962 10.744 15.9899C10.6676 15.8836 10.6265 15.7559 10.6265 15.625C10.6265 15.4941 10.6676 15.3664 10.744 15.2601C10.8205 15.1538 10.9284 15.0742 11.0525 15.0325L12.0384 14.7033C12.4109 14.5783 12.7042 14.2867 12.8284 13.9133L13.1575 12.9275C13.199 12.8031 13.2785 12.6949 13.3848 12.6182C13.4911 12.5414 13.6189 12.5001 13.75 12.5Z`,fill:`currentColor`})],-1),f(`span`,M,[f(`span`,N,s(a(i)(`forExclusiveOffers`)),1),f(`span`,P,s(a(i)(`openPrivateAccount`)),1)])]),_:1})}}}),I=[`href`],L=[`src`,`srcset`,`alt`],R=[`data-active`],z=o({__name:`RoomCarousel`,props:{images:{type:Array}},setup(t){let{t:o}=u(),s=n(),l=n(),m=n(),_=n(),v=n(),y=w(),x=()=>v.value?.children?[...v.value.children].indexOf(v?.value.querySelector(`[data-active]`)):0;return(n,u)=>{let C=S,w=g,T=b;return r(),d(T,{ref_key:`rootElement`,ref:s,refs:{contentElement:l.value,prevElement:m.value,nextElement:_.value,paginationElement:v.value},class:`x-carousel relative lg:max-w-[24rem] xl:max-w-[31.125rem] group`},{default:e(({scrollCarousel:n,setScrollPos:d,scrollPrev:g,scrollNext:b})=>[h(C,{ref_key:`contentElement`,ref:l,class:`rounded-md`,onScroll:e=>[n(l.value.$el,{pagination:{element:v.value}}),d()]},{default:e(()=>[(r(!0),c(p,null,i((t.images||[]).slice(0,10),(e,t)=>(r(),c(`a`,{key:t,class:`x-image w-full before:skeleton before:block cursor-pointer`,"data-fancybox":`gallery`,href:e?.[`3x`]},[f(`img`,{class:`aspect-4/3 rounded-none object-cover`,src:e?.[`1x`],srcset:`${e?.[`1x`]} 1x, ${e?.[`2x`]} 2x`,loading:`lazy`,alt:e?.alt},null,8,L)],8,I))),128))]),_:1},8,[`onScroll`]),f(`div`,{ref_key:`paginationElement`,ref:v,class:`x-carousel-dots absolute bottom-3 inset-x-3 flex justify-center gap-2.25`,"aria-hidden":`true`},[(r(!0),c(p,null,i((t.images||[]).slice(0,10),(e,t)=>(r(),c(`div`,{key:t,ref_for:!0,ref:`paginationItem`,class:`size-1.5 rounded-full bg-light/40 relative before:-inset-1 before:absolute cursor-pointer transition data-active:bg-light`,"data-active":t===0?!0:null},null,8,R))),128))],512),h(w,{variant:`circle`,class:`accent-black bg-black/10 hover:bg-black/30 backdrop-blur-md absolute inset-0 m-auto scale-50 opacity-0 group-hover:opacity-100 group-hover:scale-100`,"aria-label":a(o)(`showPreview`),onClick:u[0]||=e=>a(y).show(s.value.$el,x())},{default:e(()=>[...u[1]||=[f(`svg`,{"aria-hidden":`true`,class:`size-5.5`},[f(`use`,{href:`#icon-magnifying-glass-mini`})],-1)]]),_:1},8,[`aria-label`]),h(w,{ref_key:`prevElement`,ref:m,variant:`circle`,class:`accent-black bg-black/10 hover:bg-black/30 backdrop-blur-md absolute left-3 top-1/2 -mt-6 opacity-0 group-hover:opacity-100 disabled:opacity-0`,disabled:``,"aria-label":a(o)(`previous`),onClick:e=>g()},{default:e(()=>[...u[2]||=[f(`svg`,{"aria-hidden":`true`,class:`size-6`},[f(`use`,{href:`#icon-chevron-left-mini`})],-1)]]),_:1},8,[`aria-label`,`onClick`]),h(w,{ref_key:`nextElement`,ref:_,variant:`circle`,class:`accent-black bg-black/10 hover:bg-black/30 backdrop-blur-md absolute right-3 top-1/2 -mt-6 opacity-0 group-hover:opacity-100 disabled:opacity-0`,"aria-label":a(o)(`next`),onClick:e=>b()},{default:e(()=>[...u[3]||=[f(`svg`,{"aria-hidden":`true`,class:`size-6`},[f(`use`,{href:`#icon-chevron-right-mini`})],-1)]]),_:1},8,[`aria-label`,`onClick`])]),_:1},8,[`refs`])}}}),B={key:0,class:`x-room-select p-3 lg:p-6 bg-body-primary rounded-md flex flex-col gap-2 lg:gap-1.75`},V=[`data-active`],H={class:`flex max-lg:flex-col max-lg:gap-1.5 lg:items-center grow`},U={class:`x-title max-lg:xs lg:sm grow max-w-[10.125rem]`},W={class:`x-title sm flex items-center gap-2 lg:gap-3`},G={key:0,class:`x-title sm text-primary`},K=[`onClick`],q={class:`max-lg:hidden`},J={key:2,"aria-hidden":`true`,class:`size-7 shrink-0 p-1 bg-success text-light rounded-full ml-3 lg:ml-6`},Y=o({__name:`RoomSelect`,setup(e){let{t}=u(),n=v(),o=_();return(e,u)=>a(n).data.length>1?(r(),c(`div`,B,[(r(!0),c(p,null,i(a(n).data,(e,i)=>(r(),c(p,{key:i},[i===0||e.selected||i===a(n).activeRoom?(r(),c(`div`,{key:0,"data-active":i===a(n).activeRoom?`true`:void 0,class:`border border-transparent p-3 rounded-md h-16.5 flex items-center data-active:border-primary`},[f(`div`,H,[f(`div`,U,[e.selected?(r(),c(p,{key:1},[m(s(a(t)(`roomNthSelected`,i+1)),1)],64)):(r(),c(p,{key:0},[m(s(a(t)(`roomNthSelect`,i+1)),1)],64))]),f(`div`,W,[u[0]||=f(`svg`,{"aria-hidden":`true`,class:`size-5 lg:size-7 shrink-0 lg:p-1 lg:bg-primary lg:text-primary-foreground max-lg:text-primary rounded-full`},[f(`use`,{href:`#icon-user-mini`})],-1),m(` `+s(e.adults)+` `+s(a(t)(`adultsPlural`,e.adults))+` `,1),e.children.length>0?(r(),c(p,{key:0},[m(` + `+s(e.children.length)+` `+s(a(t)(`childrenPlural`,e.children.length)),1)],64)):l(``,!0)])]),i===a(n).activeRoom&&!e.selected?(r(),c(`div`,G,s(a(t)(`currentlySelecting`)),1)):(r(),c(`button`,{key:1,class:`x-title sm flex items-center gap-1.5 transition hocus:text-primary`,onClick:e=>a(o).removeAccommodationItemFromCart(i)},[u[1]||=f(`svg`,{"aria-hidden":`true`,class:`size-4`},[f(`use`,{href:`#icon-pencil-micro`})],-1),f(`span`,q,s(a(t)(`roomEdit`)),1)],8,K)),e.selected?(r(),c(`svg`,J,[...u[2]||=[f(`use`,{href:`#icon-check`},null,-1)]])):l(``,!0)],8,V)):l(``,!0)],64))),128))])):l(``,!0)}});export{D as a,j as i,z as n,F as r,Y as t};
@@ -1 +1 @@
1
- import{Kn as e,Mn as t,On as n,Pn as r,Vn as i,bn as a,er as o,gn as s,hn as c,pn as l,un as u}from"./vendor.BGu2qkTq.js";import{W as d}from"./params.DR2mabOE.js";var f={key:0,class:`x-text-content bg-body-primary rounded-xl p-4 md:p-6 flex flex-col gap-3`},p={key:0,class:`x-title lg`},m=[`innerHTML`],h=a({__name:`TextContent`,props:{title:{type:String},text:{type:String},isPending:{type:Boolean}},setup(a){let h=d(),g=a,_=e();return i(()=>g.text,async e=>{e&&(await n(),_.value?.addEventListener(`click`,e=>{let t=e.target;t?.nodeName===`A`&&t?.hash&&(e.preventDefault(),h.replace({hash:t.hash}))}))},{immediate:!0}),(e,n)=>a.title||a.text?(t(),s(`div`,f,[a.title?(t(),s(`h1`,p,o(a.title),1)):c(``,!0),a.isPending?(t(),s(u,{key:1},r(20,e=>(t(),s(u,{key:e},[n[0]||=l(`div`,{class:`skeleton rounded-md h-4 w-2/4`},null,-1),n[1]||=l(`div`,{class:`skeleton rounded-md h-4 w-3/4`},null,-1)],64))),64)):c(``,!0),a.text?(t(),s(`div`,{key:2,ref_key:`textElement`,ref:_,class:`x-text sm`,innerHTML:a.text},null,8,m)):c(``,!0)])):c(``,!0)}});export{h as t};
1
+ import{Kn as e,Mn as t,On as n,Pn as r,Vn as i,bn as a,er as o,gn as s,hn as c,pn as l,un as u}from"./vendor._wA0akn2.js";import{W as d}from"./params.IVBLxJy4.js";var f={key:0,class:`x-text-content bg-body-primary rounded-xl p-4 md:p-6 flex flex-col gap-3`},p={key:0,class:`x-title lg`},m=[`innerHTML`],h=a({__name:`TextContent`,props:{title:{type:String},text:{type:String},isPending:{type:Boolean}},setup(a){let h=d(),g=a,_=e();return i(()=>g.text,async e=>{e&&(await n(),_.value?.addEventListener(`click`,e=>{let t=e.target;t?.nodeName===`A`&&t?.hash&&(e.preventDefault(),h.replace({hash:t.hash}))}))},{immediate:!0}),(e,n)=>a.title||a.text?(t(),s(`div`,f,[a.title?(t(),s(`h1`,p,o(a.title),1)):c(``,!0),a.isPending?(t(),s(u,{key:1},r(20,e=>(t(),s(u,{key:e},[n[0]||=l(`div`,{class:`skeleton rounded-md h-4 w-2/4`},null,-1),n[1]||=l(`div`,{class:`skeleton rounded-md h-4 w-3/4`},null,-1)],64))),64)):c(``,!0),a.text?(t(),s(`div`,{key:2,ref_key:`textElement`,ref:_,class:`x-text sm`,innerHTML:a.text},null,8,m)):c(``,!0)])):c(``,!0)}});export{h as t};
@@ -1 +1 @@
1
- import{Fn as e,Hn as t,Kn as n,Mn as r,Xn as i,bn as a,d as o,f as s,fn as c,kn as l,m as u,mn as d,p as f,u as p,wn as m,yn as h}from"./vendor.BGu2qkTq.js";var g=a({__name:`TooltipCursor`,props:{active:{type:Boolean,default:!0},offset:{type:Number},side:{default:`bottom-start`,type:String},to:{type:null}},setup(a){let g=a,_=m(`shadowRoot`),v=n(!1),y=n({x:0,y:0}),b=c(()=>({getBoundingClientRect:()=>({width:0,height:0,left:y.value.x,right:y.value.x,top:y.value.y,bottom:y.value.y,...y.value})})),x=n();return l(()=>{x.value.$el.addEventListener(`pointerenter`,()=>v.value=g.active),x.value.$el.addEventListener(`pointerleave`,()=>v.value=!1),x.value.$el.addEventListener(`pointermove`,e=>{v.value=g.active,y.value.x=e.clientX,y.value.y=e.clientY})}),(n,c)=>(r(),d(i(u),{"delay-duration":0},{default:t(()=>[e(n.$slots,`trigger`,{setRef:e=>x.value=e}),h(i(f),{open:v.value},{default:t(()=>[h(i(p),{hidden:``,"aria-hidden":`true`,reference:b.value},null,8,[`reference`]),h(i(o),{to:a.to??i(_)},{default:t(()=>[h(i(s),{side:a.side,"side-offset":a.offset??24,class:`x-popover-content tooltip shadow touch:hidden`,"update-position-strategy":`always`},{default:t(()=>[e(n.$slots,`content`)]),_:3},8,[`side`,`side-offset`])]),_:3},8,[`to`])]),_:3},8,[`open`])]),_:3}))}});export{g as t};
1
+ import{Fn as e,Hn as t,Kn as n,Mn as r,Xn as i,bn as a,d as o,f as s,fn as c,kn as l,m as u,mn as d,p as f,u as p,wn as m,yn as h}from"./vendor._wA0akn2.js";var g=a({__name:`TooltipCursor`,props:{active:{type:Boolean,default:!0},offset:{type:Number},side:{default:`bottom-start`,type:String},to:{type:null}},setup(a){let g=a,_=m(`shadowRoot`),v=n(!1),y=n({x:0,y:0}),b=c(()=>({getBoundingClientRect:()=>({width:0,height:0,left:y.value.x,right:y.value.x,top:y.value.y,bottom:y.value.y,...y.value})})),x=n();return l(()=>{x.value.$el.addEventListener(`pointerenter`,()=>v.value=g.active),x.value.$el.addEventListener(`pointerleave`,()=>v.value=!1),x.value.$el.addEventListener(`pointermove`,e=>{v.value=g.active,y.value.x=e.clientX,y.value.y=e.clientY})}),(n,c)=>(r(),d(i(u),{"delay-duration":0},{default:t(()=>[e(n.$slots,`trigger`,{setRef:e=>x.value=e}),h(i(f),{open:v.value},{default:t(()=>[h(i(p),{hidden:``,"aria-hidden":`true`,reference:b.value},null,8,[`reference`]),h(i(o),{to:a.to??i(_)},{default:t(()=>[h(i(s),{side:a.side,"side-offset":a.offset??24,class:`x-popover-content tooltip shadow touch:hidden`,"update-position-strategy":`always`},{default:t(()=>[e(n.$slots,`content`)]),_:3},8,[`side`,`side-offset`])]),_:3},8,[`to`])]),_:3},8,[`open`])]),_:3}))}});export{g as t};
@@ -1,2 +1,2 @@
1
- import{$n as e,C as t,Dn as n,Ft as r,Hn as i,Kn as a,Ln as o,Lt as s,Mn as c,On as l,Pn as u,Rt as d,S as f,Un as p,Vn as m,Xn as h,Yn as g,Zn as _,an as v,at as y,b,bn as x,bt as S,er as C,fn as w,gn as T,hn as E,in as D,jt as O,kn as k,kt as A,ln as ee,mn as j,on as M,ot as N,pn as P,pt as te,rn as F,sn as I,st as ne,un as L,vn as R,wn as z,x as B,yn as V}from"./vendor.BGu2qkTq.js";import{t as H}from"./params.DR2mabOE.js";import{n as U,t as re}from"./DialogContent.tdqsNrXE.js";import{n as W,t as G}from"./Field.Bw7PCeQ1.js";import{t as ie}from"./Button.DSwXM1vM.js";import{t as K}from"./Details.y2CqCSTf.js";import{t as q}from"./Control.l_F0QhcO.js";import{c as J,p as ae,t as Y,x as X}from"./client.DrMpyevc.js";import{t as Z}from"./staleTimes.BuCDd__I.js";import{t as oe}from"./config.tpbdABlZ.js";import{n as Q,t as se}from"./ControlTelCountryCode.CcdH-ptn.js";import{t as $}from"./Check.1kttjrU5.js";import{t as ce}from"./patterns.Bgl0jWnL.js";import{r as le}from"./calendarFlexibleDialog.Lm32GQ8D.js";import{t as ue}from"./formatPrice.BEcRqhQn.js";import{t as de}from"./hotel.BmQNwmkI.js";import{t as fe}from"./ButtonBorderedThin.jONrcTDH.js";import{t as pe}from"./DatePicker.Cc0EtZjK.js";import{a as me,i as he,n as ge}from"./PackageDetailDialogContent.BOOjo_oC.js";const _e=r({key:[`vouchers/types`],query:async()=>await Y().GET(`/vouchers/types`).then(({data:e})=>e),staleTime:Z.never,refetchOnWindowFocus:!1}),ve=(e={})=>{let t=X(),n=H(),r=w(()=>t.type===`promo`&&t.active?t.code:``);return{...s({key:w(()=>[`vouchers`,e?.typeId?.value??`all`]),query:async()=>await Y().GET(`/vouchers`,{params:{query:{promoCode:r.value,preferVoucher:n.preferVoucher,preferProduct:n.preferProduct,filterVoucher:n.filterVoucher,filterVoucherGroup:n.filterVoucherGroup,filterProduct:n.filterProduct,filterType:e?.typeId?.value===`all`?void 0:e?.typeId?.value}}}).then(({data:e})=>e),staleTime:Z.short,refetchOnWindowFocus:!1})}},ye=e=>({...s({key:w(()=>[`vouchers/preview`,e.voucherId,e.price,e.voucherFormat?.value,e.voucherTheme?.value,e.childrenCount,e.roomId,e.nights].filter(e=>e!=null)),query:async()=>await Y().GET(`/vouchers/preview`,{parseAs:`text`,params:{query:{childrenCount:e.childrenCount,nights:e.nights,price:e.price,roomId:e.roomId,voucherFormat:e.voucherFormat?.value,voucherId:e.voucherId,voucherTheme:e.voucherTheme?.value}}}).then(({data:e})=>e),staleTime:Z.longest,refetchOnWindowFocus:!1})});var be=x({__name:`VoucherPreviewIframe`,props:{format:{type:String},dedicationText:{type:String},dedicationFrom:{type:String},dedicationTo:{type:String},isGift:{type:Boolean},previewQuery:{type:Object},templateProps:{type:Object}},setup(t,{expose:n}){let r=t,i=a(),{data:o}=ye(r.previewQuery),s=(e,t)=>{let n=i.value?.contentDocument?.querySelector(`[data-voucher-preview-target="${e}"]`),r=n?.closest(`[data-voucer-preview-block]`);!n||t===void 0||(t===``?(n?.setAttribute(`hidden`,``),r?.setAttribute(`hidden`,``)):(n?.removeAttribute(`hidden`),r?.removeAttribute(`hidden`),n.innerHTML=t?.replaceAll(`
1
+ import{$n as e,C as t,Dn as n,Ft as r,Hn as i,Kn as a,Ln as o,Lt as s,Mn as c,On as l,Pn as u,Rt as d,S as f,Un as p,Vn as m,Xn as h,Yn as g,Zn as _,an as v,at as y,b,bn as x,bt as S,er as C,fn as w,gn as T,hn as E,in as D,jt as O,kn as k,kt as A,ln as ee,mn as j,on as M,ot as N,pn as P,pt as te,rn as F,sn as I,st as ne,un as L,vn as R,wn as z,x as B,yn as V}from"./vendor._wA0akn2.js";import{t as H}from"./params.IVBLxJy4.js";import{n as U,t as re}from"./DialogContent.BGzVxgDS.js";import{n as W,t as G}from"./Field.BDHsJbAD.js";import{t as ie}from"./Button.BeiE5OVg.js";import{t as K}from"./Details.C32zvzr6.js";import{t as q}from"./Control.B1vJnLqF.js";import{c as J,p as ae,t as Y,x as X}from"./client.DrlPwpqz.js";import{t as Z}from"./staleTimes.DqeAd6cB.js";import{t as oe}from"./config.DhUrL--N.js";import{n as Q,t as se}from"./ControlTelCountryCode.CuyNH30D.js";import{t as $}from"./Check.C3aGjVXm.js";import{t as ce}from"./patterns.NvYoaSWt.js";import{r as le}from"./calendarFlexibleDialog.iE6_fSo6.js";import{t as ue}from"./formatPrice.DafIJMfZ.js";import{t as de}from"./hotel.BG-sRF7k.js";import{t as fe}from"./ButtonBorderedThin.gaV5-h3U.js";import{t as pe}from"./DatePicker.BmuyQEzm.js";import{a as me,i as he,n as ge}from"./PackageDetailDialogContent.TEs_OhoU.js";const _e=r({key:[`vouchers/types`],query:async()=>await Y().GET(`/vouchers/types`).then(({data:e})=>e),staleTime:Z.never,refetchOnWindowFocus:!1}),ve=(e={})=>{let t=X(),n=H(),r=w(()=>t.type===`promo`&&t.active?t.code:``);return{...s({key:w(()=>[`vouchers`,e?.typeId?.value??`all`]),query:async()=>await Y().GET(`/vouchers`,{params:{query:{promoCode:r.value,preferVoucher:n.preferVoucher,preferProduct:n.preferProduct,filterVoucher:n.filterVoucher,filterVoucherGroup:n.filterVoucherGroup,filterProduct:n.filterProduct,filterType:e?.typeId?.value===`all`?void 0:e?.typeId?.value}}}).then(({data:e})=>e),staleTime:Z.short,refetchOnWindowFocus:!1})}},ye=e=>({...s({key:w(()=>[`vouchers/preview`,e.voucherId,e.price,e.voucherFormat?.value,e.voucherTheme?.value,e.childrenCount,e.roomId,e.nights].filter(e=>e!=null)),query:async()=>await Y().GET(`/vouchers/preview`,{parseAs:`text`,params:{query:{childrenCount:e.childrenCount,nights:e.nights,price:e.price,roomId:e.roomId,voucherFormat:e.voucherFormat?.value,voucherId:e.voucherId,voucherTheme:e.voucherTheme?.value}}}).then(({data:e})=>e),staleTime:Z.longest,refetchOnWindowFocus:!1})});var be=x({__name:`VoucherPreviewIframe`,props:{format:{type:String},dedicationText:{type:String},dedicationFrom:{type:String},dedicationTo:{type:String},isGift:{type:Boolean},previewQuery:{type:Object},templateProps:{type:Object}},setup(t,{expose:n}){let r=t,i=a(),{data:o}=ye(r.previewQuery),s=(e,t)=>{let n=i.value?.contentDocument?.querySelector(`[data-voucher-preview-target="${e}"]`),r=n?.closest(`[data-voucer-preview-block]`);!n||t===void 0||(t===``?(n?.setAttribute(`hidden`,``),r?.setAttribute(`hidden`,``)):(n?.removeAttribute(`hidden`),r?.removeAttribute(`hidden`),n.innerHTML=t?.replaceAll(`
2
2
  `,`<br>`)))},l=e=>{let t=i.value?.contentDocument?.querySelector(`[data-voucher-preview-target="gift"]`);e?t?.removeAttribute(`hidden`):t?.setAttribute(`hidden`,``)},u=()=>new Promise(e=>{let t=()=>{i.value?.contentDocument?.documentElement?e():requestAnimationFrame(t)};t()});return m([o,()=>i.value],async()=>{if(!o.value||!i.value)return;let e=r?.templateProps?.width,t=r?.templateProps?.fontSize;if(i.value.contentDocument){i.value.contentDocument.open(),i.value.srcdoc=o.value,await u();let n=i.value.contentDocument?.documentElement?.style;n&&Object.assign(n,{transform:e?`scale(calc(100vw/${e}))`:`scale(${r.format===`A5`?`calc(100vw/559px)`:`calc(100vw/794px)`})`,transformOrigin:`top left`,width:`max-content`,overflow:`hidden`,fontSize:t})}s(`message`,r.dedicationText),s(`giftNameFrom`,r.dedicationFrom),s(`giftName`,r.dedicationTo),l(r.isGift)}),m(()=>r.dedicationText,e=>{s(`message`,e)}),m(()=>r.dedicationFrom,e=>{s(`giftNameFrom`,e)}),m(()=>r.dedicationTo,e=>{s(`giftName`,e)}),m(()=>r.isGift,e=>{l(e)}),n({root:i}),(n,r)=>(c(),T(`iframe`,{ref_key:`root`,ref:i,tabindex:`-1`,class:`bg-main-tertiary/50 border border-main-tertiary`,style:e({"aspect-ratio":t.templateProps?.width&&t.templateProps?.height?`${parseInt(t.templateProps?.width)}/${parseInt(t.templateProps?.height)}`:t.format===`A4`?`794/1123`:t.format===`DL`?`794/374`:t.format===`A5`?`559/794`:``})},null,4))}}),xe={key:0,class:`flex flex-col`},Se={class:`x-title sm mb-3`},Ce={class:`flex gap-4 md:pb-6 max-md:flex-col max-md:gap-2`},we=[`value`],Te={key:0,class:`w-9 h-12 fill-transparent stroke-1 mr-2`,viewBox:`0 0 36 50`},Ee={key:1,class:`w-9 h-12 fill-transparent stroke-1 mr-2`,viewBox:`0 0 36 50`},De={key:2,class:`w-9 h-12 fill-transparent stroke-1 mr-2`,viewBox:`0 0 37 50`},Oe={class:`x-title sm`},ke={class:`x-text xs text-main-secondary`},Ae={class:`flex flex-col md:border border-main-tertiary overflow-clip rounded-md relative md:p-6`},je={class:`flex max-md:flex-col md:py-6 gap-6 md:gap-12`},Me={key:0,class:`flex flex-col w-79`},Ne={class:`x-title sm mb-3`},Pe={class:`grid grid-cols-5 gap-1`},Fe=[`checked`,`value`],Ie=[`src`,`alt`],Le=[`for`],Re=[`id`,`maxlength`,`placeholder`],ze={key:0,class:`x-title sm mb-3`},Be={key:1,class:`grid md:grid-cols-2 gap-3`},Ve={class:_([`border border-main-tertiary rounded-md flex p-6 gap-6 outline-2 outline-transparent not-has-disabled:focus-within:border-accent not-has-disabled:focus-within:outline-accent/25`,`transition not-has-disabled:cursor-pointer not-has-disabled:hover:border-accent has-checked:border-accent`])},He={class:`flex flex-col gap-2`},Ue={class:`x-heading xs`},We={class:`x-text sm`},Ge={class:_([`border border-main-tertiary rounded-md flex p-6 gap-6 outline-2 outline-transparent not-has-disabled:focus-within:border-accent not-has-disabled:focus-within:outline-accent/25`,`transition not-has-disabled:cursor-pointer not-has-disabled:hover:border-accent has-checked:border-accent`])},Ke={class:`flex flex-col gap-2`},qe={class:`x-heading xs`},Je={class:`x-text sm`},Ye={tabindex:`-1`},Xe=[`onChange`],Ze={style:{display:`none`}},Qe={class:`grid md:grid-cols-3 gap-3 mt-3 mb-6`},$e=[`id`],et=[`for`],tt=[`id`],nt=[`for`],rt=[`id`],it=[`for`],at={class:`grid md:grid-cols-2 gap-3`},ot={class:`x-title sm col-span-full mb-3`},st=[`id`],ct=[`for`],lt=[`id`],ut=[`for`],dt={class:`x-group rounded-sm w-full`},ft=[`id`,`pattern`],pt=[`for`],mt=[`id`],ht=[`for`],gt=[`id`],_t=[`for`],vt=[`id`],yt=[`for`],bt={class:`flex md:mt-3 items-center md:justify-end gap-3`},xt=[`value`],St=x({__name:`VoucherCustomDialog`,props:{voucher:{type:Object},index:{type:Number}},setup(e,{expose:t}){let n=e,{t:r}=O(),s=J(),{data:l}=oe(),d=a(),f=a(),g=a(),y=a(),b=a(),x=a(),S=a(`virtual`),k=a(),A=a(),N=a(1),te=({currentTarget:e})=>{let t=new FormData(e);s.editVoucherItem({voucherFormat:f.value,voucherTheme:g.value,voucherDedicationText:y.value,voucherDelivery:S.value,count:N.value,voucherCustomized:!0,isGift:k.value,...Object.fromEntries(t)},n.index),d.value.close()},ne=e=>{e&&(Object.entries(s?.orderVouchersItem(n.index)).forEach(([e,t])=>{let n=d.value?.$el?.querySelector(`[name=${e}]`);n&&(n.value=t)}),f.value=s?.orderVouchersItem(n.index)?.voucherFormat,g.value=s?.orderVouchersItem(n.index)?.voucherTheme,y.value=s?.orderVouchersItem(n.index)?.voucherDedicationText,b.value=s?.orderVouchersItem(n.index)?.voucherDedicationFrom,x.value=s?.orderVouchersItem(n.index)?.voucherDedicationTo,S.value=s?.orderVouchersItem(n.index)?.voucherDelivery??`virtual`,k.value=s?.orderVouchersItem(n.index)?.isGift,N.value=s?.orderVouchersItem(n.index)?.count??1,k.value&&(A.value.$el.open=!0,A.value.$el.querySelector(`summary`).nextElementSibling.style.display=``))};return m(()=>s?.orderVouchersItem(n.index),e=>{N.value=e?.count,f.value=e?.voucherFormat},{immediate:!0,deep:!0}),t({root:d}),(t,a)=>{let m=ie,O=be,z=q,B=G,H=$,re=se,J=Q,ae=K,Y=W,X=U;return c(),j(X,{ref_key:`root`,ref:d,"onUpdate:open":ne},{default:i(()=>[V(Y,{class:`x-dialog-content lg flex flex-col mt-13.5 p-3 md:p-6 gap-6 md:gap-3`,onSubmit:ee(te,[`prevent`])},{default:i(()=>[V(m,{class:`accent-body-primary shadow-lg absolute inset-x-0 mx-auto w-fit bottom-full mb-3`,size:`md`,onClick:a[0]||=e=>d.value.close()},{default:i(()=>[a[10]||=P(`svg`,{"aria-hidden":`true`},[P(`use`,{href:`#icon-x-mark-mini`})],-1),R(` `+C(h(r)(`closeDetail`)),1)]),_:1}),e.voucher?.allowedFormats?.length>1?(c(),T(`fieldset`,xe,[P(`legend`,Se,C(h(r)(`selectVoucherFormat`)),1),P(`div`,Ce,[(c(!0),T(L,null,u(e.voucher?.allowedFormats,e=>(c(),T(`label`,{key:e,class:_([`border border-main-tertiary h-16.5 rounded-md flex items-center p-2 gap-1 flex-1 outline-2 outline-transparent not-has-disabled:focus-within:border-accent not-has-disabled:focus-within:outline-accent/25`,`transition not-has-disabled:cursor-pointer not-has-disabled:focus:border-accent has-checked:border-accent`])},[p(P(`input`,{"onUpdate:modelValue":a[1]||=e=>f.value=e,type:`radio`,class:`sr-only`,value:e},null,8,we),[[D,f.value]]),e===`A4`?(c(),T(`svg`,Te,[...a[11]||=[P(`path`,{d:`M35.2139 4L35.2139 46C35.2139 47.933 33.6469 49.5 31.7139 49.5L4 49.5C2.067 49.5 0.499998 47.933 0.499998 46L0.5 4C0.5 2.067 2.067 0.499999 4 0.499999L31.7139 0.5C33.6469 0.500003 35.2139 2.06701 35.2139 4Z`,stroke:`currentColor`},null,-1)]])):e===`DL`?(c(),T(`svg`,Ee,[...a[12]||=[P(`path`,{d:`M34.9551 4L34.9551 46C34.9551 47.933 33.3881 49.5 31.4551 49.5L4.00097 49.5C2.06798 49.5 0.500974 47.933 0.500975 46L0.500976 4C0.500976 2.067 2.06798 0.499999 4.00098 0.499999L31.4551 0.5C33.3881 0.5 34.9551 2.067 34.9551 4Z`,stroke:`currentColor`,"stroke-opacity":`0.15`},null,-1),P(`path`,{d:`M34.7871 20.5L34.7871 29.5C34.7871 31.433 33.2201 33 31.2871 33L4.28711 33C2.35411 33 0.787109 31.433 0.787109 29.5L0.787109 20.5C0.787109 18.567 2.35411 17 4.28711 17L31.2871 17C33.2201 17 34.7871 18.567 34.7871 20.5Z`,stroke:`currentColor`},null,-1)]])):e===`A5`?(c(),T(`svg`,De,[...a[13]||=[P(`path`,{d:`M35.6689 4L35.6689 46C35.6689 47.933 34.1019 49.5 32.1689 49.5L4.16894 49.5C2.23595 49.5 0.668943 47.933 0.668943 46L0.668945 4C0.668945 2.067 2.23595 0.500001 4.16895 0.499999L32.1689 0.5C34.1019 0.500001 35.6689 2.067 35.6689 4Z`,stroke:`currentColor`,"stroke-opacity":`0.15`},null,-1),P(`path`,{d:`M4 13.5L22 13.5C23.933 13.5 25.5 15.067 25.5 17L25.5 46C25.5 47.933 23.933 49.5 22 49.5H4C2.067 49.5 0.5 47.933 0.5 46L0.5 17C0.5 15.067 2.067 13.5 4 13.5Z`,stroke:`currentColor`},null,-1)]])):E(``,!0),P(`span`,Oe,C(e),1),P(`span`,ke,[e===`A4`?(c(),T(L,{key:0},[R(`(210x297 mm)`)],64)):e===`DL`?(c(),T(L,{key:1},[R(`(210x99 mm)`)],64)):e===`A5`?(c(),T(L,{key:2},[R(`(148x210 mm)`)],64)):E(``,!0)])]))),128))])])):E(``,!0),P(`div`,Ae,[E(``,!0),V(O,{class:`mx-auto w-full max-w-122`,format:f.value,previewQuery:{childrenCount:h(s)?.orderVouchersItem(n.index)?.childrenCount,nights:h(s)?.orderVouchersItem(n.index)?.nights,price:h(s).vouchersItemPrice(n.index),roomId:h(s)?.orderVouchersItem(n.index)?.roomId,voucherFormat:w(()=>f.value),voucherId:h(s)?.orderVouchersItem(n.index)?.voucherId,voucherTheme:w(()=>g.value)},dedicationText:y.value,dedicationFrom:b.value,dedicationTo:x.value,isGift:k.value,templateProps:e.voucher?.templateProps},null,8,[`format`,`previewQuery`,`dedicationText`,`dedicationFrom`,`dedicationTo`,`isGift`,`templateProps`])]),P(`div`,je,[e.voucher?.allowedThemes?.length>0?(c(),T(`fieldset`,Me,[P(`legend`,Ne,C(h(r)(`selectVoucherTheme`)),1),P(`div`,Pe,[(c(!0),T(L,null,u(e.voucher?.allowedThemes,(e,t)=>(c(),T(`label`,{key:e.id,class:_([`border border-main-tertiary aspect-square rounded-md outline-2 outline-transparent not-has-disabled:focus-within:border-accent not-has-disabled:focus-within:outline-accent/25`,`transition not-has-disabled:cursor-pointer not-has-disabled:hover:border-accent has-checked:border-accent`])},[p(P(`input`,{"onUpdate:modelValue":a[2]||=e=>g.value=e,name:`voucherTheme`,checked:t===0,value:e?.id,type:`radio`,class:`sr-only`},null,8,Fe),[[D,g.value]]),P(`img`,{src:e?.image,loading:`lazy`,class:`rounded-sm size-full`,alt:e?.name},null,8,Ie)]))),128))])])):E(``,!0),h(l)?.voucherAllowGiftMessage?(c(),j(B,{key:1,class:`flex flex-col flex-grow gap-3`},{default:i(({uid:t})=>[P(`label`,{class:`x-title sm`,for:t},C(h(r)(`writeDedication`))+` (`+C(h(r)(`optional`))+`) `,9,Le),V(z,null,{default:i(()=>[p(P(`textarea`,{id:t,"onUpdate:modelValue":a[3]||=e=>y.value=e,maxlength:e.voucher?.maxDedicationLength,placeholder:`${h(r)(`dedicationText`)} (${h(r)(`maxCharacters`,e.voucher?.maxDedicationLength)})`},null,8,Re),[[M,y.value]])]),_:2},1024)]),_:1})):E(``,!0)]),(c(),j(o(h(l)?.voucherAllowPhysical?`div`:`fieldset`),{class:`flex flex-col`},{default:i(()=>[h(l)?.voucherAllowPhysical?(c(),T(`legend`,ze,C(h(r)(`youCanChooseFromTwoOptions`)),1)):E(``,!0),h(l)?.voucherAllowPhysical?(c(),T(`div`,Be,[P(`label`,Ve,[p(P(`input`,{"onUpdate:modelValue":a[4]||=e=>S.value=e,type:`radio`,class:`sr-only peer`,value:`virtual`},null,512),[[D,S.value]]),a[15]||=P(`span`,{class:_([`size-10 shrink-0 rounded-sm bg-body text-body-foreground flex justify-center items-center`,`transition peer-checked:bg-accent peer-checked:text-accent-foreground`])},[P(`svg`,{class:`size-5`},[P(`use`,{href:`#icon-device-phone-mobile-mini`})])],-1),P(`span`,He,[P(`span`,Ue,C(h(r)(`electronically`)),1),P(`span`,We,C(h(r)(`electronicallyInfo`)),1)])]),P(`label`,Ge,[p(P(`input`,{"onUpdate:modelValue":a[5]||=e=>S.value=e,type:`radio`,value:`physical`,class:`sr-only peer`},null,512),[[D,S.value]]),a[16]||=P(`span`,{class:_([`size-10 shrink-0 rounded-sm bg-body text-body-foreground flex justify-center items-center`,`transition peer-checked:bg-accent peer-checked:text-accent-foreground`])},[P(`svg`,{class:`size-5`},[P(`use`,{href:`#icon-envelope-mini`})])],-1),P(`span`,Ke,[P(`span`,qe,C(h(r)(`inGiftEnvelope`)),1),P(`span`,Je,C(h(r)(`inGiftEnvelopeInfo`)),1)])])])):E(``,!0),h(l)?.voucherAllowSendAsGift?(c(),j(ae,{key:2,ref_key:`isGiftDetails`,ref:A,class:`mt-6`},{default:i(({toggleDetails:e})=>[P(`summary`,Ye,[V(H,{as:`label`},{default:i(()=>[p(P(`input`,{"onUpdate:modelValue":a[6]||=e=>k.value=e,type:`checkbox`,autocomplete:`off`,onChange:t=>e(t.currentTarget)},null,40,Xe),[[F,k.value]]),P(`span`,null,C(h(r)(`sendAsGift`)),1)]),_:2},1024)]),P(`div`,Ze,[P(`div`,Qe,[V(B,null,{default:i(({uid:e})=>[V(z,null,{default:i(()=>[p(P(`input`,{id:e,"onUpdate:modelValue":a[7]||=e=>b.value=e,type:`text`,name:`voucherDedicationFrom`,placeholder:` `},null,8,$e),[[M,b.value]]),P(`label`,{for:e},C(h(r)(`voucherDedicationFrom`)),9,et)]),_:2},1024)]),_:1}),V(B,null,{default:i(({uid:e})=>[V(z,null,{default:i(()=>[p(P(`input`,{id:e,"onUpdate:modelValue":a[8]||=e=>x.value=e,type:`text`,name:`voucherDedicationTo`,placeholder:` `},null,8,tt),[[M,x.value]]),P(`label`,{for:e},C(h(r)(`voucherDedicationTo`)),9,nt)]),_:2},1024)]),_:1}),V(B,null,{default:i(({uid:e})=>[V(z,null,{default:i(()=>[P(`input`,{id:e,type:`email`,name:`email`,placeholder:` `},null,8,rt),P(`label`,{for:e},C(h(r)(`recipientEmail`)),9,it)]),_:2},1024)]),_:1})]),p(P(`fieldset`,at,[P(`legend`,ot,C(h(r)(`deliverToAddress`)),1),V(B,null,{default:i(()=>[V(z,{size:`md`},{default:i(({uid:e})=>[P(`input`,{id:e,name:`firstName`,type:`text`,placeholder:` `,autocomplete:`given-name`},null,8,st),P(`label`,{for:e},C(h(r)(`name`)),9,ct)]),_:1})]),_:1}),V(B,null,{default:i(()=>[V(z,{size:`md`},{default:i(({uid:e})=>[P(`input`,{id:e,name:`lastName`,type:`text`,placeholder:` `,autocomplete:`family-name`},null,8,lt),P(`label`,{for:e},C(h(r)(`surname`)),9,ut)]),_:1})]),_:1}),V(B,null,{default:i(()=>[P(`div`,dt,[V(re),V(z,{class:`grow`,size:`md`},{default:i(({uid:e})=>[P(`input`,{id:e,name:`telNational`,type:`tel`,pattern:h(ce).telNational,placeholder:` `,autocomplete:`tel-national`},null,8,ft),P(`label`,{for:e},C(h(r)(`tel`)),9,pt)]),_:1})])]),_:1}),V(B,null,{default:i(()=>[V(z,{size:`md`},{default:i(({uid:e})=>[P(`input`,{id:e,name:`street`,type:`text`,placeholder:` `,autocomplete:`street-address`},null,8,mt),P(`label`,{for:e},C(h(r)(`streetAddress`)),9,ht)]),_:1})]),_:1}),V(B,null,{default:i(()=>[V(z,{size:`md`},{default:i(({uid:e})=>[P(`input`,{id:e,type:`text`,name:`city`,autocomplete:`address-level2`,placeholder:` `},null,8,gt),P(`label`,{for:e},C(h(r)(`city`)),9,_t)]),_:1})]),_:1}),V(B,null,{default:i(()=>[V(z,{size:`md`},{default:i(({uid:e})=>[P(`input`,{id:e,type:`text`,name:`postalCode`,autocomplete:`postal-code`,placeholder:` `},null,8,vt),P(`label`,{for:e},C(h(r)(`postalCode`)),9,yt)]),_:1})]),_:1}),V(B,null,{default:i(()=>[V(J)]),_:1})],512),[[I,S.value===`physical`]])])]),_:1},512)):E(``,!0)]),_:1})),P(`div`,bt,[V(z,{class:`min-w-24`,size:`md`},{default:i(()=>[p(P(`select`,{"onUpdate:modelValue":a[9]||=e=>N.value=e},[(c(),T(L,null,u(50,e=>P(`option`,{key:e,value:e},C(e)+` `+C(h(r)(`pcs`)),9,xt)),64))],512),[[v,N.value]])]),_:1}),V(m,{class:`max-md:flex-1`,size:`md`,type:`submit`},{default:i(()=>[R(C(h(r)(`saveMyDesign`)),1)]),_:1})])]),_:1})]),_:1},512)}}});const Ct=r({key:[`wellness`],query:async()=>await Y().GET(`/wellness`).then(({data:e})=>e),refetchOnWindowFocus:!1,staleTime:Z.long}),wt=({dateFrom:e,dateTo:t,id:n})=>({...s({key:w(()=>[`wellness/${n}/calendar`,e.value,t.value]),query:async()=>await Y().GET(`/wellness/{id}/calendar`,{params:{query:{dateFrom:e.value,dateTo:t.value},path:{id:n}}}).then(({data:e})=>e),staleTime:Z.short})}),Tt=({date:e,adults:t,items:n,id:r,editIndex:i})=>{let a=w(()=>n?btoa(JSON.stringify(n)):`null`),o=w(()=>[`wellness/${r}/times`,e.value?.toString(),t.value,a.value,i]),c=X(),l=w(()=>c.type===`promo`&&c.active?c.code:``),u=w(()=>c.type===`voucher`&&c.active?c.code:``);return{...s({key:o,query:async()=>e.value?await Y().GET(`/wellness/{id}/times`,{params:{query:{date:e.value.toString(),adults:t.value,editIndex:i,items:n,promoCode:l.value,voucherCode:u.value},path:{id:r}}}).then(({data:e})=>e):[],placeholderData:e=>e,staleTime:Z.short})}},Et=async(e,{time:t,date:n,adults:r,price:i,detailDialog:a,config:o,hotel:s,shadowRoot:c,editIndex:u})=>{let f=J(),p=H();a?.root?.close(),e.wellness&&!e.wellness.prices&&(e.wellness.prices={finalPrice:i}),u===void 0?(f.addWellnessItemToCart({time:t,date:n,adults:r,wellnessId:e.wellness?.id,services:[]},e),he({quantity:1,price:i,value:i,item:e,currency:p.currency,config:o,hotel:s})):(f.editWellnessItem({time:t,date:n,adults:r,wellnessId:e.wellness?.id,services:[]},u),d().invalidateQueries({key:[`order/cart-wellness`]})),await l();let m=c?.querySelector(`.x-aside-summary [data-slot="content"]`);m?.scrollTo({top:m.scrollHeight,behavior:`smooth`})};var Dt={class:`flex flex-col gap-4 md:gap-6 [.peer+&]:mt-6 md:[.peer+&]:mt-8`},Ot={class:`flex flex-col gap-3`},kt={class:`flex max-md:flex-wrap gap-2 items-center justify-between`},At={class:`x-heading`},jt={key:0,class:`x-title sm font-medium`},Mt={class:`x-heading sm`},Nt={class:`x-title flex items-center gap-3`},Pt={class:`flex items-center gap-1`},Ft={key:1},It={class:`flex items-center gap-1`},Lt={key:0},Rt={class:`grid md:grid-cols-[1fr_21.5625rem] gap-3`},zt={class:`border border-main-tertiary rounded-md p-3 md:p-6`},Bt=[`innerHTML`],Vt=[`innerHTML`],Ht=[`innerHTML`],Ut={class:`x-title sm mb-3 mt-6`},Wt={class:`flex items-center gap-2`},Gt={key:0,class:`x-badge lg bordered accent-main rounded-full px-2.5`},Kt={class:`x-text sm`},qt={ref:`configurationElement`,class:`border border-main-tertiary rounded-md p-3 md:p-6 flex flex-col gap-3`},Jt={class:`x-title sm`},Yt={class:`grid grid-cols-3 gap-1`},Xt=[`disabled`,`value`],Zt={class:`x-title sm`},Qt={key:0,class:`x-title xs text-main-secondary`},$t={key:0,class:`x-title sm font-medium`},en={class:`x-title sm flex items-center gap-2 py-4`},tn={key:1,class:`ml-auto`},nn={key:1,ref:`summaryElement`,class:`p-3 bg-primary/15 rounded-md flex items-center justify-between mt-auto`},rn={class:`flex flex-col gap-1`},an={class:`x-title sm font-medium`},on={key:1,class:`skeleton w-14 h-5 rounded-md`},sn=x({__name:`WellnessDetailDialogContent`,props:{editIndex:{type:Number},wellness:{type:Object}},emits:[`close:dialog`],setup(e,{expose:n,emit:r}){let o=e,s=r,{t:l,n:d}=O(),v=te(le.md),x=H(),w=z(`shadowRoot`),ee=z(`wellnessDetailDialog`),M=a(),F=a(o.wellness?.minPersons===o.wellness?.maxPersons?o.wellness?.maxPersons??1:1),I=a(ne(N()).toString()),U=a(ne(N()).add({months:1,days:-1}).toString()),W=a(),G=a(),K=a(9),q=J(),{data:Y}=oe(),{data:X}=de(),{data:Z}=wt({dateFrom:I,dateTo:U,id:o.wellness?.id}),{data:Q,isLoading:se}=Tt({adults:F,date:W,id:o.wellness?.id,editIndex:o.editIndex,items:q.order.wellness.items}),$=S(se,300),ce=e=>Z.value?.includes(e.toString())??!1,he=e=>{I.value=e.set({day:1}).toString(),U.value=e.set({day:1}).add({months:1,days:-1}).toString()};return m(()=>o.editIndex,e=>{e!==void 0&&(W.value=y(q.orderWellnessItem(e).date),G.value=q.orderWellnessItem(e).time,F.value=q.orderWellnessItem(e).adults)},{immediate:!0}),m(()=>o.wellness?.firstAvailableDate,e=>{W.value||!e||o.editIndex||(W.value=y(e))},{immediate:!0}),m(Q,e=>{e&&e?.length>0&&(K.value=e?.length)}),m(G,async()=>{v.value||(await A(),M.value?.$el.scrollIntoView({behavior:`smooth`,block:`end`}))}),k(()=>{(Y.value?.tracking?.googleGa4||Y.value?.tracking?.googleGtm)&&ae(`event`,`view_item`,{currency:x.currency,items:[{item_id:o?.wellness?.id,item_name:o?.wellness?.name,item_category:`Wellness`,item_brand:X.value?.chainName,affiliation:X.value?.name,currency:x.currency}]})}),n({root:M}),(n,r)=>{let a=ie,m=ge,v=pe,y=fe,S=me,O=re;return c(),j(O,{ref_key:`root`,ref:M,size:`lg`,class:`flex flex-col mt-13.5 p-3 md:p-6`},{default:i(()=>[V(a,{class:`accent-body-primary shadow-lg absolute inset-x-0 mx-auto w-fit bottom-full mb-3`,size:`md`,onClick:r[0]||=e=>s(`close:dialog`)},{default:i(()=>[r[5]||=P(`svg`,{"aria-hidden":`true`},[P(`use`,{href:`#icon-x-mark-mini`})],-1),R(` `+C(h(l)(`closeDetail`)),1)]),_:1}),V(m,{class:`peer`,images:e.wellness?.images},null,8,[`images`]),P(`div`,Dt,[P(`div`,Ot,[P(`div`,kt,[P(`h2`,At,C(e.wellness?.name),1),e.wellness?.priceFrom?(c(),T(`div`,jt,[R(C(h(l)(`from`))+` `,1),P(`span`,Mt,C(h(d)(e.wellness?.priceFrom,`decimal`)),1),R(` `+C(h(x).currency),1)])):E(``,!0)]),P(`div`,Nt,[P(`div`,Pt,[r[6]||=P(`svg`,{"aria-hidden":`true`,class:`size-6`},[P(`use`,{href:`#icon-user-mini`})],-1),e.wellness?.minPersons===e.wellness?.maxPersons?(c(),T(`span`,Ft,C(e.wellness?.maxPersons)+` `+C(h(l)(`personPlural`,e.wellness?.maxPersons)),1)):(c(),T(L,{key:0},[R(C(e.wellness?.minPersons)+` - `+C(e.wellness?.maxPersons)+` `+C(h(l)(`personPlural`,e.wellness?.maxPersons)),1)],64))]),P(`div`,It,[r[7]||=P(`svg`,{"aria-hidden":`true`,class:`size-6`},[P(`use`,{href:`#icon-clock-mini`})],-1),e.wellness?.durationDisplayed?(c(),T(`span`,Lt,C(e.wellness?.durationDisplayed),1)):E(``,!0)])])]),P(`div`,Rt,[P(`div`,zt,[P(`div`,{class:`x-text sm`,style:{"--x-text-list-margin-block":`1.5rem`},innerHTML:e.wellness?.summary},null,8,Bt),P(`div`,{class:`x-text sm`,style:{"--x-text-list-margin-block":`1.5rem`},innerHTML:e.wellness?.description},null,8,Vt),P(`div`,{class:`x-text sm`,style:{"--x-text-list-margin-block":`1.5rem`},innerHTML:e.wellness?.equipment},null,8,Ht),P(`div`,Ut,C(h(l)(`availableDays`)),1),P(`div`,Wt,[e.wellness?.daysTitle?(c(),T(`div`,Gt,C(e.wellness?.daysTitle),1)):E(``,!0),P(`div`,Kt,C(h(l)(`atTimeFromTo`,[e.wellness?.timeFrom,e.wellness?.timeTo])),1)])]),P(`div`,qt,[P(`label`,Jt,C(h(l)(`selectDateAndTime`)),1),V(v,{modelValue:W.value,"onUpdate:modelValue":r[1]||=e=>W.value=e,"is-date-unavailable":e=>ce(e),defaultValue:W.value,"onUpdate:placeholder":he},null,8,[`modelValue`,`is-date-unavailable`,`defaultValue`]),P(`div`,Yt,[h($)?(c(!0),T(L,{key:0},u(K.value,e=>(c(),T(`div`,{key:e,class:`skeleton h-15 rounded-md`}))),128)):(c(!0),T(L,{key:1},u(h(Q),(e,t)=>(c(),T(`label`,{key:t,class:_([`border border-main-tertiary rounded-md h-15 flex flex-col items-center justify-center gap-0.5`,`transition not-has-disabled:cursor-pointer not-has-disabled:hocus:border-accent has-checked:border-accent`,`has-disabled:bg-repeating-linear-[1.75] from-body to-main-tertiary`])},[p(P(`input`,{"onUpdate:modelValue":r[2]||=e=>G.value=e,type:`radio`,name:`wellnessTime`,disabled:e.disabled,value:e.time},null,8,Xt),[[D,G.value]]),P(`span`,Zt,C(e.time),1),e.prices?.finalPrice?(c(),T(`span`,Qt,C(h(ue)(e.prices?.finalPrice,h(x).currency)),1)):E(``,!0)]))),128))]),!h($)&&W.value&&h(Q)?.length===0?(c(),T(`div`,$t,C(h(l)(`notAvailableAtThisDate`)),1)):E(``,!0),P(`div`,en,[r[10]||=P(`svg`,{class:`size-5`,"aria-hidden":`true`},[P(`use`,{href:`#icon-user-solid`})],-1),R(` `+C(h(l)(`numberOfPersons`))+` `,1),e.wellness?.minPersons&&e.wellness?.maxPersons&&e.wellness?.minPersons!==e.wellness?.maxPersons?(c(),j(h(t),{key:0,modelValue:F.value,"onUpdate:modelValue":r[3]||=e=>F.value=e,class:`flex items-center ml-auto`,min:e.wellness?.minPersons??1,max:e.wellness?.maxPersons??99,"default-value":e.wellness?.minPersons??1},{default:i(()=>[V(h(f),{"as-child":``},{default:i(()=>[V(y,{variant:`circle`,size:`xs`},{default:i(()=>[...r[8]||=[P(`svg`,{"aria-hidden":`true`},[P(`use`,{href:`#icon-minus-mini`})],-1)]]),_:1})]),_:1}),V(h(b),{class:`x-title sm text-center w-8 bg-transparent`}),V(h(B),{"as-child":``},{default:i(()=>[V(y,{variant:`circle`,size:`xs`},{default:i(()=>[...r[9]||=[P(`svg`,{"aria-hidden":`true`},[P(`use`,{href:`#icon-plus-mini`})],-1)]]),_:1})]),_:1})]),_:1},8,[`modelValue`,`min`,`max`,`default-value`])):(c(),T(`span`,tn,C(e.wellness?.minPersons??1),1))]),G.value?(c(),T(`div`,nn,[P(`div`,rn,[P(`div`,an,C(h(l)(`total`)),1),h(Q)?(c(),j(S,{key:0,prices:h(Q)?.find(e=>e.time===G.value)?.prices,reverse:!0},null,8,[`prices`])):(c(),T(`div`,on))]),V(a,{size:`md`,onClick:r[4]||=t=>h(Et)({entity:`Wellness`,wellness:g(o.wellness)},{adults:F.value,date:W.value.toString(),time:G.value,price:h(Q)?.find(e=>e.time===G.value)?.prices?.finalPrice??NaN,config:h(Y),hotel:h(X),detailDialog:h(ee),shadowRoot:h(w),editIndex:e.editIndex})},{default:i(()=>[R(C(h(l)(`book`)),1)]),_:1})],512)):E(``,!0)],512)])])]),_:1},512)}}}),cn=x({__name:`WellnessDetailDialog`,props:{editIndex:{type:Number},wellness:{type:Object}},setup(e,{expose:t}){let r=e,o=a();return t({root:o}),(t,a)=>{let s=U;return c(),j(s,{ref_key:`root`,ref:o},{default:i(()=>[R(C(e.editIndex)+` `,1),V(sn,n(r,{"onClose:dialog":a[0]||=e=>o.value?.close()}),null,16)]),_:1},512)}}});export{ve as a,be as i,Ct as n,_e as o,St as r,cn as t};
@@ -1 +1 @@
1
- import{Hn as e,Mn as t,Xn as n,bn as r,er as i,gn as a,jt as o,pn as s,vn as c,yn as l}from"./vendor.BGu2qkTq.js";import{t as u}from"./Button.DSwXM1vM.js";var d={class:`py-12 px-2.5 bg-body-primary rounded-xl flex flex-col items-center gap-3 col-span-full`},f={class:`x-heading`},p=r({__name:`[...path]`,setup(r){let{t:p}=o();return(r,o)=>{let m=u;return t(),a(`div`,d,[o[0]||=s(`h1`,{class:`x-heading lg text-center`},` 404 `,-1),s(`div`,f,i(n(p)(`404text`)),1),l(m,{size:`md`,to:`/`,class:`mt-7`},{default:e(()=>[c(i(n(p)(`backToMainPage`)),1)]),_:1})])}}});export{p as default};
1
+ import{Hn as e,Mn as t,Xn as n,bn as r,er as i,gn as a,jt as o,pn as s,vn as c,yn as l}from"./vendor._wA0akn2.js";import{t as u}from"./Button.BeiE5OVg.js";var d={class:`py-12 px-2.5 bg-body-primary rounded-xl flex flex-col items-center gap-3 col-span-full`},f={class:`x-heading`},p=r({__name:`[...path]`,setup(r){let{t:p}=o();return(r,o)=>{let m=u;return t(),a(`div`,d,[o[0]||=s(`h1`,{class:`x-heading lg text-center`},` 404 `,-1),s(`div`,f,i(n(p)(`404text`)),1),l(m,{size:`md`,to:`/`,class:`mt-7`},{default:e(()=>[c(i(n(p)(`backToMainPage`)),1)]),_:1})])}}});export{p as default};
@@ -1 +1 @@
1
- import{Hn as e,In as t,Jn as n,Kn as r,Mn as i,Un as a,Vn as o,Xn as s,Zn as c,bn as l,er as u,gn as d,hn as f,jt as p,ln as m,mn as h,on as g,pn as _,vn as v,yn as y}from"./vendor.BGu2qkTq.js";import{W as b}from"./params.DR2mabOE.js";import{n as x,t as S}from"./Field.Bw7PCeQ1.js";import{t as C}from"./Button.DSwXM1vM.js";import{t as w}from"./Control.l_F0QhcO.js";import"./client.DrMpyevc.js";import"./staleTimes.BuCDd__I.js";import{t as T}from"./togglePassword.D7dAyG22.js";import{i as E}from"./account.BsTL4CgW.js";import{a as D}from"./account.BwfUSF-Q.js";import{t as O}from"./toaster.DOHhVfsI.js";import{t as k}from"./patterns.Bgl0jWnL.js";import{t as A}from"./validateFields.Jh9WdbVA.js";import{t as j}from"./Main.B6URJ_XN.js";import{t as M}from"./routeParams.6hpnfcMT.js";import{t as N}from"./AuthInfo.jJe7rHuW.js";var P={class:`x-auth-login flex flex-col justify-center p-6 md:p-24 rounded-xl bg-body-primary`},F={class:`x-heading text-center mb-9`},I=[`id`,`pattern`,`data-validation-message`],L={class:`ms-auto`},R=[`aria-label`],z=[`for`],B=[`id`,`pattern`,`data-validation-message`],V={class:`ms-auto`},H=[`aria-label`],U=[`for`],W=l({__name:`AuthResetPassword`,setup(l){let{t:f}=p(),h=b(),E=O(),j=n(),N=r(),W=r(),G=M(),{mutate:K,data:q,error:J,asyncStatus:Y}=D(),X=({currentTarget:e})=>{let t=new FormData(e);K(Object.assign({code:G.value.code},Object.fromEntries(t)))};return o(q,e=>{e&&e.response?.status===200&&(h.push(`/login`),E.add({class:`accent-success`,title:f(`success`),text:f(`status.resetPasswordSuccess`)}))}),o([q,J],()=>{!J.value&&!q?.value?.error||(A(j.value?.$el,q?.value?.error?.params),E.add({class:`accent-error`,title:f(`error`),text:J?.value?.toString()??q.value?.error?.message}))}),(n,r)=>{let o=w,l=S,p=t(`RouterLink`),h=C,b=x;return i(),d(`div`,P,[y(b,{ref_key:`form`,ref:j,class:c([`x-form flex flex-col md:p-6 w-full max-w-100 mx-auto`,{invalid:s(J)||s(q)?.error}]),onSubmit:m(X,[`prevent`])},{default:e(()=>[_(`h1`,F,u(s(f)(`resetPassword`)),1),y(l,{class:`mb-3`},{default:e(()=>[y(o,{size:`md`},{default:e(({uid:e})=>[a(_(`input`,{id:e,"onUpdate:modelValue":r[0]||=e=>N.value=e,name:`password`,type:`password`,pattern:s(k).password,"data-validation-message":s(f)(`validation.passwordPattern`),placeholder:` `,autocomplete:`new-password`,required:``},null,8,I),[[g,N.value]]),_(`div`,L,[(i(),d(`svg`,{"aria-label":s(f)(`togglePassword`),role:`button`,class:`transition text-main-tertiary hocus:text-main`,tabindex:`0`,onClick:r[1]||=(...e)=>s(T)&&s(T)(...e)},[...r[4]||=[_(`use`,{href:`#icon-eye-slash-solid`},null,-1)]],8,R))]),_(`label`,{for:e},u(s(f)(`password`)),9,z)]),_:1})]),_:1}),y(l,{class:`mb-3`},{default:e(()=>[y(o,{size:`md`},{default:e(({uid:e})=>[a(_(`input`,{id:e,"onUpdate:modelValue":r[2]||=e=>W.value=e,type:`password`,pattern:N.value===W.value?void 0:``,"data-validation-message":s(f)(`validation.passwordMismatch`),placeholder:` `,autocomplete:`new-password`,required:``},null,8,B),[[g,W.value]]),_(`div`,V,[(i(),d(`svg`,{"aria-label":s(f)(`togglePassword`),role:`button`,class:`transition text-main-tertiary hocus:text-main`,tabindex:`0`,onClick:r[3]||=(...e)=>s(T)&&s(T)(...e)},[...r[5]||=[_(`use`,{href:`#icon-eye-slash-solid`},null,-1)]],8,H))]),_(`label`,{for:e},u(s(f)(`passwordAgain`)),9,U)]),_:1})]),_:1}),y(p,{class:`x-link text-primary underline underline-transparent`,to:`/login`},{default:e(()=>[v(u(s(f)(`backToLogin`)),1)]),_:1}),y(h,{class:`mt-10.5`,type:`submit`,loading:s(Y)===`loading`},{default:e(()=>[v(u(s(f)(`confirm`)),1)]),_:1},8,[`loading`])]),_:1},8,[`class`])])}}}),G=l({__name:`[code]`,setup(t){let{data:n,isPending:r}=E();return(t,a)=>{let o=N,l=W,u=j;return i(),h(u,{class:c([`grid gap-5 min-h-158.5`,{"lg:grid-cols-2":s(n)?.heading!==``||s(n)?.list?.length>0||s(r)}])},{default:e(()=>[s(n)?.heading!==``||s(n)?.list?.length>0||s(r)?(i(),h(o,{key:0,class:`max-lg:order-last`})):f(``,!0),y(l)]),_:1},8,[`class`])}}});export{G as default};
1
+ import{Hn as e,In as t,Jn as n,Kn as r,Mn as i,Un as a,Vn as o,Xn as s,Zn as c,bn as l,er as u,gn as d,hn as f,jt as p,ln as m,mn as h,on as g,pn as _,vn as v,yn as y}from"./vendor._wA0akn2.js";import{W as b}from"./params.IVBLxJy4.js";import{n as x,t as S}from"./Field.BDHsJbAD.js";import{t as C}from"./Button.BeiE5OVg.js";import{t as w}from"./Control.B1vJnLqF.js";import"./client.DrlPwpqz.js";import"./staleTimes.DqeAd6cB.js";import{t as T}from"./togglePassword.CeJbTfKJ.js";import{i as E}from"./account.BvHfMCcs.js";import{a as D}from"./account.DbDvl-51.js";import{t as O}from"./toaster.FT2nZJ8S.js";import{t as k}from"./patterns.NvYoaSWt.js";import{t as A}from"./validateFields.BbPmMvzL.js";import{t as j}from"./Main.CAF1TXNp.js";import{t as M}from"./routeParams.CtmTLgcY.js";import{t as N}from"./AuthInfo.BVt9fvHm.js";var P={class:`x-auth-login flex flex-col justify-center p-6 md:p-24 rounded-xl bg-body-primary`},F={class:`x-heading text-center mb-9`},I=[`id`,`pattern`,`data-validation-message`],L={class:`ms-auto`},R=[`aria-label`],z=[`for`],B=[`id`,`pattern`,`data-validation-message`],V={class:`ms-auto`},H=[`aria-label`],U=[`for`],W=l({__name:`AuthResetPassword`,setup(l){let{t:f}=p(),h=b(),E=O(),j=n(),N=r(),W=r(),G=M(),{mutate:K,data:q,error:J,asyncStatus:Y}=D(),X=({currentTarget:e})=>{let t=new FormData(e);K(Object.assign({code:G.value.code},Object.fromEntries(t)))};return o(q,e=>{e&&e.response?.status===200&&(h.push(`/login`),E.add({class:`accent-success`,title:f(`success`),text:f(`status.resetPasswordSuccess`)}))}),o([q,J],()=>{!J.value&&!q?.value?.error||(A(j.value?.$el,q?.value?.error?.params),E.add({class:`accent-error`,title:f(`error`),text:J?.value?.toString()??q.value?.error?.message}))}),(n,r)=>{let o=w,l=S,p=t(`RouterLink`),h=C,b=x;return i(),d(`div`,P,[y(b,{ref_key:`form`,ref:j,class:c([`x-form flex flex-col md:p-6 w-full max-w-100 mx-auto`,{invalid:s(J)||s(q)?.error}]),onSubmit:m(X,[`prevent`])},{default:e(()=>[_(`h1`,F,u(s(f)(`resetPassword`)),1),y(l,{class:`mb-3`},{default:e(()=>[y(o,{size:`md`},{default:e(({uid:e})=>[a(_(`input`,{id:e,"onUpdate:modelValue":r[0]||=e=>N.value=e,name:`password`,type:`password`,pattern:s(k).password,"data-validation-message":s(f)(`validation.passwordPattern`),placeholder:` `,autocomplete:`new-password`,required:``},null,8,I),[[g,N.value]]),_(`div`,L,[(i(),d(`svg`,{"aria-label":s(f)(`togglePassword`),role:`button`,class:`transition text-main-tertiary hocus:text-main`,tabindex:`0`,onClick:r[1]||=(...e)=>s(T)&&s(T)(...e)},[...r[4]||=[_(`use`,{href:`#icon-eye-slash-solid`},null,-1)]],8,R))]),_(`label`,{for:e},u(s(f)(`password`)),9,z)]),_:1})]),_:1}),y(l,{class:`mb-3`},{default:e(()=>[y(o,{size:`md`},{default:e(({uid:e})=>[a(_(`input`,{id:e,"onUpdate:modelValue":r[2]||=e=>W.value=e,type:`password`,pattern:N.value===W.value?void 0:``,"data-validation-message":s(f)(`validation.passwordMismatch`),placeholder:` `,autocomplete:`new-password`,required:``},null,8,B),[[g,W.value]]),_(`div`,V,[(i(),d(`svg`,{"aria-label":s(f)(`togglePassword`),role:`button`,class:`transition text-main-tertiary hocus:text-main`,tabindex:`0`,onClick:r[3]||=(...e)=>s(T)&&s(T)(...e)},[...r[5]||=[_(`use`,{href:`#icon-eye-slash-solid`},null,-1)]],8,H))]),_(`label`,{for:e},u(s(f)(`passwordAgain`)),9,U)]),_:1})]),_:1}),y(p,{class:`x-link text-primary underline underline-transparent`,to:`/login`},{default:e(()=>[v(u(s(f)(`backToLogin`)),1)]),_:1}),y(h,{class:`mt-10.5`,type:`submit`,loading:s(Y)===`loading`},{default:e(()=>[v(u(s(f)(`confirm`)),1)]),_:1},8,[`loading`])]),_:1},8,[`class`])])}}}),G=l({__name:`[code]`,setup(t){let{data:n,isPending:r}=E();return(t,a)=>{let o=N,l=W,u=j;return i(),h(u,{class:c([`grid gap-5 min-h-158.5`,{"lg:grid-cols-2":s(n)?.heading!==``||s(n)?.list?.length>0||s(r)}])},{default:e(()=>[s(n)?.heading!==``||s(n)?.list?.length>0||s(r)?(i(),h(o,{key:0,class:`max-lg:order-last`})):f(``,!0),y(l)]),_:1},8,[`class`])}}});export{G as default};
@@ -1 +1 @@
1
- import{Dn as e,Mn as t,Xn as n,bn as r,er as i,gn as a,hn as o,jt as s,mn as c,pn as l,un as u,yn as d}from"./vendor.BGu2qkTq.js";import"./params.DR2mabOE.js";import"./localeRules.DuB-8maD.js";import"./DialogContent.tdqsNrXE.js";import"./client.DrMpyevc.js";import"./staleTimes.BuCDd__I.js";import"./config.tpbdABlZ.js";import"./calendarFlexibleDialog.Lm32GQ8D.js";import{t as f}from"./FooterLogo.CLtj0dj2.js";import"./formatPrice.BEcRqhQn.js";import"./hotel.BmQNwmkI.js";import"./fancybox.CJsv9BnL.js";import{t as p}from"./PackageDetailDialogContent.BOOjo_oC.js";import{t as m}from"./routeParams.6hpnfcMT.js";import{t as h}from"./packages.C83hDrok.js";var g={key:0,class:`p-3 md:p-6 min-h-[50dvh] flex flex-col`},_={class:`m-auto`},v={class:`x-title mt-4`},y=r({__name:`[id]`,props:{room:{type:Object},editIndex:{type:Number}},setup(r){let y=r,{t:b}=s(),{data:x,isLoading:S}=h(m().value.id);return(r,s)=>{let m=p,h=f;return t(),a(u,null,[n(S)?(t(),a(`div`,g,[l(`div`,_,[s[0]||=l(`div`,{class:`spinner text-accent m-auto`,style:{"--spinner-inline-size":`1.5rem`,"--spinner-block-size":`1.5rem`,"--spinner-border-width":`0.1875rem`}},null,-1),l(`div`,v,i(n(b)(`momentOfPatience`)),1)])])):n(x)?.error?o(``,!0):(t(),c(m,e({key:1},y,{package:n(x),"close-button":!1,"show-rooms":!1,style:{margin:`auto`}}),null,16,[`package`])),d(h,{class:`mt-6 mx-auto`})],64)}}});export{y as default};
1
+ import{Dn as e,Mn as t,Xn as n,bn as r,er as i,gn as a,hn as o,jt as s,mn as c,pn as l,un as u,yn as d}from"./vendor._wA0akn2.js";import"./params.IVBLxJy4.js";import"./localeRules.Bcy3JgQD.js";import"./DialogContent.BGzVxgDS.js";import"./client.DrlPwpqz.js";import"./staleTimes.DqeAd6cB.js";import"./config.DhUrL--N.js";import"./calendarFlexibleDialog.iE6_fSo6.js";import{t as f}from"./FooterLogo.IpxH1_EO.js";import"./formatPrice.DafIJMfZ.js";import"./hotel.BG-sRF7k.js";import"./fancybox.MtRnSz01.js";import{t as p}from"./PackageDetailDialogContent.TEs_OhoU.js";import{t as m}from"./routeParams.CtmTLgcY.js";import{t as h}from"./packages.BUSZ3CSP.js";var g={key:0,class:`p-3 md:p-6 min-h-[50dvh] flex flex-col`},_={class:`m-auto`},v={class:`x-title mt-4`},y=r({__name:`[id]`,props:{room:{type:Object},editIndex:{type:Number}},setup(r){let y=r,{t:b}=s(),{data:x,isLoading:S}=h(m().value.id);return(r,s)=>{let m=p,h=f;return t(),a(u,null,[n(S)?(t(),a(`div`,g,[l(`div`,_,[s[0]||=l(`div`,{class:`spinner text-accent m-auto`,style:{"--spinner-inline-size":`1.5rem`,"--spinner-block-size":`1.5rem`,"--spinner-border-width":`0.1875rem`}},null,-1),l(`div`,v,i(n(b)(`momentOfPatience`)),1)])])):n(x)?.error?o(``,!0):(t(),c(m,e({key:1},y,{package:n(x),"close-button":!1,"show-rooms":!1,style:{margin:`auto`}}),null,16,[`package`])),d(h,{class:`mt-6 mx-auto`})],64)}}});export{y as default};
@@ -1 +1 @@
1
- import{Dn as e,Mn as t,Xn as n,bn as r,er as i,gn as a,hn as o,jt as s,mn as c,pn as l,un as u,yn as d}from"./vendor.BGu2qkTq.js";import{U as f}from"./params.DR2mabOE.js";import"./localeRules.DuB-8maD.js";import"./DialogContent.tdqsNrXE.js";import"./client.DrMpyevc.js";import"./staleTimes.BuCDd__I.js";import"./config.tpbdABlZ.js";import"./calendarFlexibleDialog.Lm32GQ8D.js";import{t as p}from"./FooterLogo.CLtj0dj2.js";import"./formatPrice.BEcRqhQn.js";import"./hotel.BmQNwmkI.js";import"./fancybox.CJsv9BnL.js";import"./PackageDetailDialogContent.BOOjo_oC.js";import{t as m}from"./routeParams.6hpnfcMT.js";import{t as h}from"./RoomDetailDialogContent.Br2LC7Su.js";import{t as g}from"./rooms.CgrX_Ptg.js";var _={key:0,class:`p-3 md:p-6 min-h-[50dvh] flex flex-col`},v={class:`m-auto`},y={class:`x-title mt-4`},b=r({__name:`[id]`,props:{room:{type:Object},editIndex:{type:Number}},setup(r){let b=r,{t:x}=s(),S=m(),C=f(),{data:w,isLoading:T}=g(S.value.id);return(r,s)=>{let f=h,m=p;return t(),a(u,null,[n(T)?(t(),a(`div`,_,[l(`div`,v,[s[0]||=l(`div`,{class:`spinner text-accent m-auto`,style:{"--spinner-inline-size":`1.5rem`,"--spinner-block-size":`1.5rem`,"--spinner-border-width":`0.1875rem`}},null,-1),l(`div`,y,i(n(x)(`momentOfPatience`)),1)])])):n(w)?.error?o(``,!0):(t(),c(f,e({key:1},b,{room:n(w),"close-button":!1,"show-rates":!1,"cancellation-policy":n(w)?.rates?.find(e=>e.id===+n(C).query.rate)?.cancellationPolicy??``,style:{margin:`auto`}}),null,16,[`room`,`cancellation-policy`])),d(m,{class:`mt-6 mx-auto`})],64)}}});export{b as default};
1
+ import{Dn as e,Mn as t,Xn as n,bn as r,er as i,gn as a,hn as o,jt as s,mn as c,pn as l,un as u,yn as d}from"./vendor._wA0akn2.js";import{U as f}from"./params.IVBLxJy4.js";import"./localeRules.Bcy3JgQD.js";import"./DialogContent.BGzVxgDS.js";import"./client.DrlPwpqz.js";import"./staleTimes.DqeAd6cB.js";import"./config.DhUrL--N.js";import"./calendarFlexibleDialog.iE6_fSo6.js";import{t as p}from"./FooterLogo.IpxH1_EO.js";import"./formatPrice.DafIJMfZ.js";import"./hotel.BG-sRF7k.js";import"./fancybox.MtRnSz01.js";import"./PackageDetailDialogContent.TEs_OhoU.js";import{t as m}from"./routeParams.CtmTLgcY.js";import{t as h}from"./RoomDetailDialogContent.DYtmm89J.js";import{t as g}from"./rooms.DIXp7WEz.js";var _={key:0,class:`p-3 md:p-6 min-h-[50dvh] flex flex-col`},v={class:`m-auto`},y={class:`x-title mt-4`},b=r({__name:`[id]`,props:{room:{type:Object},editIndex:{type:Number}},setup(r){let b=r,{t:x}=s(),S=m(),C=f(),{data:w,isLoading:T}=g(S.value.id);return(r,s)=>{let f=h,m=p;return t(),a(u,null,[n(T)?(t(),a(`div`,_,[l(`div`,v,[s[0]||=l(`div`,{class:`spinner text-accent m-auto`,style:{"--spinner-inline-size":`1.5rem`,"--spinner-block-size":`1.5rem`,"--spinner-border-width":`0.1875rem`}},null,-1),l(`div`,y,i(n(x)(`momentOfPatience`)),1)])])):n(w)?.error?o(``,!0):(t(),c(f,e({key:1},b,{room:n(w),"close-button":!1,"show-rates":!1,"cancellation-policy":n(w)?.rates?.find(e=>e.id===+n(C).query.rate)?.cancellationPolicy??``,style:{margin:`auto`}}),null,16,[`room`,`cancellation-policy`])),d(m,{class:`mt-6 mx-auto`})],64)}}});export{b as default};
@@ -1 +1 @@
1
- import{$t as e,Hn as t,It as n,Mn as r,Pn as i,Pt as a,Qt as o,Un as s,Vn as c,Xn as l,Zn as u,bn as d,er as f,fn as p,gn as m,hn as h,in as g,jt as _,mn as v,on as y,pn as b,un as x,v as ee,vn as S,y as C,yn as w}from"./vendor.BGu2qkTq.js";import{W as T}from"./params.DR2mabOE.js";import{t as E}from"./Button.DSwXM1vM.js";import{t as D}from"./client.DrMpyevc.js";import{t as O}from"./toaster.DOHhVfsI.js";import{t as k}from"./ButtonGhosted.E76FJ-Mf.js";import{t as A}from"./Circle.ByhP73-w.js";import{t as j}from"./routeParams.6hpnfcMT.js";import{t as M}from"./basePath.CZNYxQU8.js";const N=o(`feedback`,{state:()=>({rating:{personal:0,services:0,tidiness:0,comfort:0,location:0,price:0},activeTab:0,activeTabName:`welcome`,positives:``,negatives:``})});var P={class:`x-feedback-rating`},F={class:`flex flex-col md:gap-3 pb-6 md:pb-10`},I={class:`x-title leading-4 sm text-center uppercase text-main-secondary`},L={key:0,class:`x-heading md:lg text-center`},R={class:`flex gap-x-3 mx-auto mb-6 md:mb-10 max-md:flex-col max-md:w-full`},z=[`src`,`alt`],B=[`value`],V={class:`md:contents flex flex-col gap-2 justify-center max-md:min-w-26`},H={class:`x-title xl max-lg:sm md:text-center`},U={class:`flex items-center justify-center size-10 bg-body mt-auto rounded-md opacity-40`,"data-part":`value`},W={class:`x-text block text-center font-semibold text-main-primary/80`},G=d({__name:`FeedbackRating`,props:{heading:{type:String},name:{type:String}},setup(e){let{t}=_(),n=M(),a=N(),o=[{value:1,name:`terrible`},{value:2,name:`bad`},{value:3,name:`ok`},{value:4,name:`good`},{value:5,name:`best`}];return(c,u)=>(r(),m(`div`,P,[b(`div`,F,[b(`span`,I,f(l(t)(`hodnotím`)),1),e.heading?(r(),m(`h2`,L,f(e.heading),1)):h(``,!0)]),b(`div`,R,[(r(),m(x,null,i(o,e=>b(`label`,{key:e.value,class:`x-feedback-card relative cursor-pointer flex max-md:flex-wrap md:flex-col max-md:justify-center items-center gap-6 p-3 md:p-3.5 lg:p-6 md:min-h-64 lg:min-h-73.5 border-2 border-transparent transition-all duration-400 rounded-xl`},[b(`img`,{src:`${l(n)}/images/feedback/${e.name}.svg`,alt:e.name,"data-part":`icon`,class:`size-20 lg:size-28 shrink-0`},null,8,z),s(b(`input`,{"onUpdate:modelValue":u[0]||=e=>l(a).rating[l(a).activeTabName]=e,type:`radio`,name:`rating`,value:e.value,class:`opacity-0 absolute`},null,8,B),[[g,l(a).rating[l(a).activeTabName]]]),b(`div`,V,[b(`h3`,H,f(l(t)(`feedback.${e.name}`)),1),b(`div`,U,[b(`span`,W,f(e.value),1)])])])),64))])]))}});const K=a(()=>({...n({key:[`ratings`],mutation:async e=>{let t=N();return await D().POST(`/ratings`,{body:{ratingHash:e,rating:t.rating,negatives:t.negatives,positives:t.positives}})}})}));var q={class:`x-title sm absolute top-4 right-4`},J={class:`max-w-196`},Y={class:`x-text sm font-medium text-center pt-6 pb-3`},X={class:`x-heading md:lg font-medium text-center pb-6`},Z={class:`x-text sm font-medium text-center pb-10`},Q={class:`flex items-center gap-6`},te={class:`flex items-center gap-6`},ne={class:`x-text sm`},re={class:`w-full grid max-md:grid-cols-1 md:grid-cols-2 gap-x-3 gap-y-6 items-stretch pb-10`},ie={class:`flex flex-col gap-4 md:gap-6`},ae={class:`flex items-center gap-2`},oe={class:`x-text sm`},se={class:`x-control w-full`},ce={class:`flex flex-col gap-3 md:gap-6`},$={class:`flex items-center gap-2`},le={class:`x-text sm`},ue={class:`x-control w-full`},de={class:`flex items-center gap-6 mt-auto`},fe={class:`x-text sm`},pe=d({__name:`[uuid]`,setup(n){let{t:a}=_(),o=T(),d=j(),g=N(),D=O(),{mutate:M,data:P,error:F,asyncStatus:I}=K();c(P,e=>{e&&e.response.status===200&&(o.replace(`/`),D.add({class:`accent-success`,title:a(`success`),text:a(`status.feedbackSuccess`)}))}),c([P,F],()=>{!F.value&&!P?.value?.error||D.add({class:`accent-error`,title:a(`error`),text:F?.value?.toString()??P.value?.error?.message})});let L=p(()=>[`welcome`,...Object.keys(g.rating),`final`]),R=p(()=>L.value.findIndex(e=>e===g.activeTabName));function z(){R.value<L.value.length-1&&(g.activeTabName=L.value[R.value+1])}function B(){R.value>0&&(g.activeTabName=L.value[R.value-1])}return(n,o)=>{let c=A,p=E,_=G,T=k;return r(),v(l(C),{modelValue:l(g).activeTabName,"onUpdate:modelValue":o[3]||=e=>l(g).activeTabName=e,"default-value":`welcome`,class:`relative overflow-clip w-full flex flex-col justify-center bg-light rounded-2xl px-4 py-7 md:p-6 lg:p-10 min-h-86 m-auto`},{default:t(()=>[b(`div`,q,f(L.value.indexOf(l(g).activeTabName)+1)+`/`+f(L.value.length),1),(r(!0),m(x,null,i(L.value,n=>(r(),v(e,{key:n,name:`slide`,"enter-active-class":`duration-400 ease-in-out`,"leave-active-class":`duration-400 ease-in-out`,"enter-from-class":`translate-x-full`,"leave-to-class":`-translate-x-full opacity-0`,mode:`out-in`},{default:t(()=>[(r(),v(l(ee),{key:l(g).activeTabName,value:n,class:`flex flex-col items-center justify-center w-full`,tabindex:`-1`},{default:t(()=>[l(g).activeTabName===`welcome`?(r(),m(x,{key:0},[w(c,{icon:`#icon-chat-bubble-oval-left-ellipsis`}),b(`div`,J,[b(`p`,Y,f(l(a)(`dearCustomer`))+`, `,1),b(`h2`,X,f(l(a)(`feedback.welcomeHeading`)),1),b(`p`,Z,f(l(a)(`feedback.welcomeText`)),1),b(`div`,Q,[w(p,{class:u({"min-w-32 justify-between mx-auto":!0}),onClick:z},{default:t(()=>[S(f(l(a)(`begin`))+` `,1),o[4]||=b(`svg`,{class:`size-6 text-light`},[b(`use`,{href:`#icon-chevron-right-mini`})],-1)]),_:1})])])],64)):h(``,!0),l(g).activeTabName!==`final`&&l(g).activeTabName!==`welcome`?(r(),m(x,{key:1},[w(_,{class:`max-md:w-full`,heading:l(a)(l(g).activeTabName),name:l(g).activeTabName},null,8,[`heading`,`name`]),b(`div`,te,[w(T,{class:`accent-dark`,onClick:B},{default:t(()=>[o[5]||=b(`svg`,{class:`size-4`},[b(`use`,{href:`#icon-arrow-uturn-left`})],-1),b(`span`,ne,f(l(a)(`back`)),1)]),_:1}),w(p,{class:u({"min-w-32 justify-between":!0}),disabled:l(g).rating[l(g).activeTabName]<1,onClick:z},{default:t(()=>[S(f(l(a)(`next`))+` `,1),o[6]||=b(`svg`,{class:`size-6 text-light`},[b(`use`,{href:`#icon-chevron-right-mini`})],-1)]),_:1},8,[`disabled`])])],64)):h(``,!0),l(g).activeTabName===`final`?(r(),m(x,{key:2},[b(`div`,re,[b(`div`,ie,[b(`div`,ae,[o[7]||=b(`div`,{class:`flex items-center justify-center bg-success size-6 rounded-full`},[b(`svg`,{class:`size-4 text-light`},[b(`use`,{href:`#icon-plus-micro`})])],-1),b(`span`,oe,f(l(a)(`feedback.finalPositives`)),1)]),b(`div`,se,[s(b(`textarea`,{"onUpdate:modelValue":o[0]||=e=>l(g).positives=e,class:`w-full max-h-80`},null,512),[[y,l(g).positives]])])]),b(`div`,ce,[b(`div`,$,[o[8]||=b(`div`,{class:`flex items-center justify-center bg-error size-6 rounded-full`},[b(`svg`,{class:`size-4 text-light`},[b(`use`,{href:`#icon-minus-micro`})])],-1),b(`span`,le,f(l(a)(`feedback.finalNegatives`)),1)]),b(`div`,ue,[s(b(`textarea`,{"onUpdate:modelValue":o[1]||=e=>l(g).negatives=e,class:`w-full max-h-80`},null,512),[[y,l(g).negatives]])])])]),b(`div`,de,[w(p,{class:`ghosted gap-2 accent-dark`,onClick:B},{default:t(()=>[o[9]||=b(`svg`,{class:`size-4`},[b(`use`,{href:`#icon-arrow-uturn-left`})],-1),b(`span`,fe,f(l(a)(`back`)),1)]),_:1}),w(p,{disabled:!((l(g).negatives??``).length||(l(g).positives??``).length),loading:l(I)===`loading`,onClick:o[2]||=e=>l(M)(l(d).uuid)},{default:t(()=>[S(f(l(a)(`submitSurvey`))+` `,1),o[10]||=b(`svg`,{class:`size-6 text-light`},[b(`use`,{href:`#icon-chevron-right-mini`})],-1)]),_:1},8,[`disabled`,`loading`])])],64)):h(``,!0)]),_:1},8,[`value`]))]),_:2},1024))),128))]),_:1},8,[`modelValue`])}}});export{pe as default};
1
+ import{$t as e,Hn as t,It as n,Mn as r,Pn as i,Pt as a,Qt as o,Un as s,Vn as c,Xn as l,Zn as u,bn as d,er as f,fn as p,gn as m,hn as h,in as g,jt as _,mn as v,on as y,pn as b,un as x,v as ee,vn as S,y as C,yn as w}from"./vendor._wA0akn2.js";import{W as T}from"./params.IVBLxJy4.js";import{t as E}from"./Button.BeiE5OVg.js";import{t as D}from"./client.DrlPwpqz.js";import{t as O}from"./toaster.FT2nZJ8S.js";import{t as k}from"./ButtonGhosted.CXMzrzFu.js";import{t as A}from"./Circle.DpT3TU5e.js";import{t as j}from"./routeParams.CtmTLgcY.js";import{t as M}from"./basePath.r_cJ2rNk.js";const N=o(`feedback`,{state:()=>({rating:{personal:0,services:0,tidiness:0,comfort:0,location:0,price:0},activeTab:0,activeTabName:`welcome`,positives:``,negatives:``})});var P={class:`x-feedback-rating`},F={class:`flex flex-col md:gap-3 pb-6 md:pb-10`},I={class:`x-title leading-4 sm text-center uppercase text-main-secondary`},L={key:0,class:`x-heading md:lg text-center`},R={class:`flex gap-x-3 mx-auto mb-6 md:mb-10 max-md:flex-col max-md:w-full`},z=[`src`,`alt`],B=[`value`],V={class:`md:contents flex flex-col gap-2 justify-center max-md:min-w-26`},H={class:`x-title xl max-lg:sm md:text-center`},U={class:`flex items-center justify-center size-10 bg-body mt-auto rounded-md opacity-40`,"data-part":`value`},W={class:`x-text block text-center font-semibold text-main-primary/80`},G=d({__name:`FeedbackRating`,props:{heading:{type:String},name:{type:String}},setup(e){let{t}=_(),n=M(),a=N(),o=[{value:1,name:`terrible`},{value:2,name:`bad`},{value:3,name:`ok`},{value:4,name:`good`},{value:5,name:`best`}];return(c,u)=>(r(),m(`div`,P,[b(`div`,F,[b(`span`,I,f(l(t)(`hodnotím`)),1),e.heading?(r(),m(`h2`,L,f(e.heading),1)):h(``,!0)]),b(`div`,R,[(r(),m(x,null,i(o,e=>b(`label`,{key:e.value,class:`x-feedback-card relative cursor-pointer flex max-md:flex-wrap md:flex-col max-md:justify-center items-center gap-6 p-3 md:p-3.5 lg:p-6 md:min-h-64 lg:min-h-73.5 border-2 border-transparent transition-all duration-400 rounded-xl`},[b(`img`,{src:`${l(n)}/images/feedback/${e.name}.svg`,alt:e.name,"data-part":`icon`,class:`size-20 lg:size-28 shrink-0`},null,8,z),s(b(`input`,{"onUpdate:modelValue":u[0]||=e=>l(a).rating[l(a).activeTabName]=e,type:`radio`,name:`rating`,value:e.value,class:`opacity-0 absolute`},null,8,B),[[g,l(a).rating[l(a).activeTabName]]]),b(`div`,V,[b(`h3`,H,f(l(t)(`feedback.${e.name}`)),1),b(`div`,U,[b(`span`,W,f(e.value),1)])])])),64))])]))}});const K=a(()=>({...n({key:[`ratings`],mutation:async e=>{let t=N();return await D().POST(`/ratings`,{body:{ratingHash:e,rating:t.rating,negatives:t.negatives,positives:t.positives}})}})}));var q={class:`x-title sm absolute top-4 right-4`},J={class:`max-w-196`},Y={class:`x-text sm font-medium text-center pt-6 pb-3`},X={class:`x-heading md:lg font-medium text-center pb-6`},Z={class:`x-text sm font-medium text-center pb-10`},Q={class:`flex items-center gap-6`},te={class:`flex items-center gap-6`},ne={class:`x-text sm`},re={class:`w-full grid max-md:grid-cols-1 md:grid-cols-2 gap-x-3 gap-y-6 items-stretch pb-10`},ie={class:`flex flex-col gap-4 md:gap-6`},ae={class:`flex items-center gap-2`},oe={class:`x-text sm`},se={class:`x-control w-full`},ce={class:`flex flex-col gap-3 md:gap-6`},$={class:`flex items-center gap-2`},le={class:`x-text sm`},ue={class:`x-control w-full`},de={class:`flex items-center gap-6 mt-auto`},fe={class:`x-text sm`},pe=d({__name:`[uuid]`,setup(n){let{t:a}=_(),o=T(),d=j(),g=N(),D=O(),{mutate:M,data:P,error:F,asyncStatus:I}=K();c(P,e=>{e&&e.response.status===200&&(o.replace(`/`),D.add({class:`accent-success`,title:a(`success`),text:a(`status.feedbackSuccess`)}))}),c([P,F],()=>{!F.value&&!P?.value?.error||D.add({class:`accent-error`,title:a(`error`),text:F?.value?.toString()??P.value?.error?.message})});let L=p(()=>[`welcome`,...Object.keys(g.rating),`final`]),R=p(()=>L.value.findIndex(e=>e===g.activeTabName));function z(){R.value<L.value.length-1&&(g.activeTabName=L.value[R.value+1])}function B(){R.value>0&&(g.activeTabName=L.value[R.value-1])}return(n,o)=>{let c=A,p=E,_=G,T=k;return r(),v(l(C),{modelValue:l(g).activeTabName,"onUpdate:modelValue":o[3]||=e=>l(g).activeTabName=e,"default-value":`welcome`,class:`relative overflow-clip w-full flex flex-col justify-center bg-light rounded-2xl px-4 py-7 md:p-6 lg:p-10 min-h-86 m-auto`},{default:t(()=>[b(`div`,q,f(L.value.indexOf(l(g).activeTabName)+1)+`/`+f(L.value.length),1),(r(!0),m(x,null,i(L.value,n=>(r(),v(e,{key:n,name:`slide`,"enter-active-class":`duration-400 ease-in-out`,"leave-active-class":`duration-400 ease-in-out`,"enter-from-class":`translate-x-full`,"leave-to-class":`-translate-x-full opacity-0`,mode:`out-in`},{default:t(()=>[(r(),v(l(ee),{key:l(g).activeTabName,value:n,class:`flex flex-col items-center justify-center w-full`,tabindex:`-1`},{default:t(()=>[l(g).activeTabName===`welcome`?(r(),m(x,{key:0},[w(c,{icon:`#icon-chat-bubble-oval-left-ellipsis`}),b(`div`,J,[b(`p`,Y,f(l(a)(`dearCustomer`))+`, `,1),b(`h2`,X,f(l(a)(`feedback.welcomeHeading`)),1),b(`p`,Z,f(l(a)(`feedback.welcomeText`)),1),b(`div`,Q,[w(p,{class:u({"min-w-32 justify-between mx-auto":!0}),onClick:z},{default:t(()=>[S(f(l(a)(`begin`))+` `,1),o[4]||=b(`svg`,{class:`size-6 text-light`},[b(`use`,{href:`#icon-chevron-right-mini`})],-1)]),_:1})])])],64)):h(``,!0),l(g).activeTabName!==`final`&&l(g).activeTabName!==`welcome`?(r(),m(x,{key:1},[w(_,{class:`max-md:w-full`,heading:l(a)(l(g).activeTabName),name:l(g).activeTabName},null,8,[`heading`,`name`]),b(`div`,te,[w(T,{class:`accent-dark`,onClick:B},{default:t(()=>[o[5]||=b(`svg`,{class:`size-4`},[b(`use`,{href:`#icon-arrow-uturn-left`})],-1),b(`span`,ne,f(l(a)(`back`)),1)]),_:1}),w(p,{class:u({"min-w-32 justify-between":!0}),disabled:l(g).rating[l(g).activeTabName]<1,onClick:z},{default:t(()=>[S(f(l(a)(`next`))+` `,1),o[6]||=b(`svg`,{class:`size-6 text-light`},[b(`use`,{href:`#icon-chevron-right-mini`})],-1)]),_:1},8,[`disabled`])])],64)):h(``,!0),l(g).activeTabName===`final`?(r(),m(x,{key:2},[b(`div`,re,[b(`div`,ie,[b(`div`,ae,[o[7]||=b(`div`,{class:`flex items-center justify-center bg-success size-6 rounded-full`},[b(`svg`,{class:`size-4 text-light`},[b(`use`,{href:`#icon-plus-micro`})])],-1),b(`span`,oe,f(l(a)(`feedback.finalPositives`)),1)]),b(`div`,se,[s(b(`textarea`,{"onUpdate:modelValue":o[0]||=e=>l(g).positives=e,class:`w-full max-h-80`},null,512),[[y,l(g).positives]])])]),b(`div`,ce,[b(`div`,$,[o[8]||=b(`div`,{class:`flex items-center justify-center bg-error size-6 rounded-full`},[b(`svg`,{class:`size-4 text-light`},[b(`use`,{href:`#icon-minus-micro`})])],-1),b(`span`,le,f(l(a)(`feedback.finalNegatives`)),1)]),b(`div`,ue,[s(b(`textarea`,{"onUpdate:modelValue":o[1]||=e=>l(g).negatives=e,class:`w-full max-h-80`},null,512),[[y,l(g).negatives]])])])]),b(`div`,de,[w(p,{class:`ghosted gap-2 accent-dark`,onClick:B},{default:t(()=>[o[9]||=b(`svg`,{class:`size-4`},[b(`use`,{href:`#icon-arrow-uturn-left`})],-1),b(`span`,fe,f(l(a)(`back`)),1)]),_:1}),w(p,{disabled:!((l(g).negatives??``).length||(l(g).positives??``).length),loading:l(I)===`loading`,onClick:o[2]||=e=>l(M)(l(d).uuid)},{default:t(()=>[S(f(l(a)(`submitSurvey`))+` `,1),o[10]||=b(`svg`,{class:`size-6 text-light`},[b(`use`,{href:`#icon-chevron-right-mini`})],-1)]),_:1},8,[`disabled`,`loading`])])],64)):h(``,!0)]),_:1},8,[`value`]))]),_:2},1024))),128))]),_:1},8,[`modelValue`])}}});export{pe as default};
@@ -1 +1 @@
1
- import{An as e,Hn as t,Mn as n,Rn as r,Vn as i,Xn as a,bn as o,jt as s,kn as c,ln as l,mn as u,pn as d,yn as f}from"./vendor.BGu2qkTq.js";import{W as p}from"./params.DR2mabOE.js";import"./localeRules.DuB-8maD.js";import"./DialogContent.tdqsNrXE.js";import{n as m}from"./Field.Bw7PCeQ1.js";import{c as h,o as g}from"./client.DrMpyevc.js";import"./staleTimes.BuCDd__I.js";import"./countries.CE6bN6gS.js";import"./config.tpbdABlZ.js";import"./ControlTelCountryCode.CcdH-ptn.js";import{t as _}from"./toaster.DOHhVfsI.js";import"./calendarFlexibleDialog.Lm32GQ8D.js";import"./formatPrice.BEcRqhQn.js";import{a as v}from"./reservation.Co3PKchx.js";import"./dateFormatter.dDaZZox0.js";import"./hotel.BmQNwmkI.js";import{t as y}from"./Main.B6URJ_XN.js";import{t as b}from"./statusDialog.CWPzBABk.js";import"./fancybox.CJsv9BnL.js";import"./PackageDetailDialogContent.BOOjo_oC.js";import{t as x}from"./routeParams.6hpnfcMT.js";import"./RoomDetailDialogContent.Br2LC7Su.js";import"./order.LEc70bzD.js";import{t as S}from"./AsideOrderSummary.D8e93W2R.js";import{i as C,t as w}from"./reservation.BzOjnZgI.js";import{t as T}from"./OrderAccommodation.BUC3iHY0.js";import"./RoomDetailDialog.CwCxDUXv.js";import{t as E}from"./ReservationEditInfo.CIGUHBBu.js";var D={class:`grid md:grid-cols-[1fr_var(--x-main-aside-width)] gap-3 md:gap-6`},O={class:`flex flex-col gap-3`,"data-slot":`content`},k={class:`flex flex-col gap-3 transition-all sticky top-[calc(var(--x-main-sticky-top)+1rem)] self-start`,"data-slot":`aside`},A=o({__name:`[uuid]`,setup(o){let{t:A}=s(),j=p(),M=h(),N=g(),P=_(),F=b(),I=r(),{data:L,error:R,refetch:z}=C({uuid:x().value.uuid}),{data:B,refetch:V}=w(),{data:H,error:U,mutate:W,isLoading:G}=v(),K=()=>{W(M.order)};return i(H,e=>{e?.response?.status===200&&(N.$reset(),M.$reset(),j.push(`/`),P.add({class:`accent-success`,title:A(`success`),text:A(`reservationSuccessfullyChanged`)}))}),i([H,U],()=>{!U.value&&!H?.value?.error||(F.heading=H.value?.error?.messageTitle??A(`error`),F.text=U?.value?.toString()??H.value?.error?.message,F.show())}),i(L,async e=>{if(e){if(!e?.accommodation?.isEditable){F.heading=A(`notEditableTitle`),F.text=e?.accommodation?.notEditableText,F.show(),j.push(`/`);return}M.order.accommodation.uuid=e?.accommodation?.uuid,M.order.accommodation.checkInDate=e?.accommodation?.checkInDate,M.order.accommodation.checkOutDate=e?.accommodation?.checkOutDate,e?.guest&&(M.order.guest=e?.guest),e?.accommodation?.rooms?.forEach((e,t)=>{M.order.accommodation.items[t]={uuid:e?.uuid,guestName:e?.guestName,bedType:e?.bedType,roomId:e?.roomId,rateId:e?.rateId,services:e?.services,packageId:e?.packageId,children:e?.children,adults:e?.adults,mealPlan:e?.mealPlan},M.accommodation[t]={entity:null}}),V()}}),i(B,e=>{e?.forEach((e,t)=>{M.accommodation?.[t]&&(M.accommodation[t].minAdults=L.value?.accommodation?.rooms?.[t]?.minAdults,M.accommodation[t].maxAdults=L.value?.accommodation?.rooms?.[t]?.maxAdults)})}),i([()=>[M.order.accommodation.checkInDate,M.order.accommodation.checkOutDate],M.order.accommodation.items],(e,t)=>{let[n,r]=e?.[0],[i,a]=t?.[0],o=e?.[1];o.some((e,t)=>{let n=M.accommodation?.[t]?.minAdults,r=M.accommodation?.[t]?.maxAdults;return typeof e.adults!=`number`||typeof n!=`number`||typeof r!=`number`?!1:e.adults<n||e.adults>r})||o.find(e=>e.adults===0)||!i&&!a||n===i&&r===a&&t?.[1]===e?.[1]||V()}),i([L,R],()=>{!R.value&&!L?.value?.error||(F.heading=L.value?.error?.messageTitle??A(`error`),F.text=R?.value?.toString()??L.value?.error?.message,F.show(),j.push(`/`))}),c(()=>{L.value&&z()}),e(()=>{N.$reset(),M.$reset()}),(e,r)=>{let i=E,o=T,s=S,c=m,p=y;return n(),u(p,{class:``},{default:t(()=>[f(c,{id:a(I),onSubmit:l(K,[`prevent`])},{default:t(()=>[f(i,{class:`mb-3 md:mb-6`,accommodation:a(L)?.accommodation,guest:a(L)?.guest,"check-in-date":a(M).order.accommodation.checkInDate,"check-out-date":a(M).order.accommodation.checkOutDate},null,8,[`accommodation`,`guest`,`check-in-date`,`check-out-date`]),d(`div`,D,[d(`div`,O,[f(o,{edit:!0})]),d(`aside`,k,[f(s,{form:a(I),edit:!0,isLoading:a(G)},null,8,[`form`,`isLoading`])])])]),_:1},8,[`id`])]),_:1})}}});export{A as default};
1
+ import{An as e,Hn as t,Mn as n,Rn as r,Vn as i,Xn as a,bn as o,jt as s,kn as c,ln as l,mn as u,pn as d,yn as f}from"./vendor._wA0akn2.js";import{W as p}from"./params.IVBLxJy4.js";import"./localeRules.Bcy3JgQD.js";import"./DialogContent.BGzVxgDS.js";import{n as m}from"./Field.BDHsJbAD.js";import{c as h,o as g}from"./client.DrlPwpqz.js";import"./staleTimes.DqeAd6cB.js";import"./countries.DXV0Z9gI.js";import"./config.DhUrL--N.js";import"./ControlTelCountryCode.CuyNH30D.js";import{t as _}from"./toaster.FT2nZJ8S.js";import"./calendarFlexibleDialog.iE6_fSo6.js";import"./formatPrice.DafIJMfZ.js";import{a as v}from"./reservation.CZFk7XU8.js";import"./dateFormatter.Bg9EaFxG.js";import"./hotel.BG-sRF7k.js";import{t as y}from"./Main.CAF1TXNp.js";import{t as b}from"./statusDialog.BVfGKxZd.js";import"./fancybox.MtRnSz01.js";import"./PackageDetailDialogContent.TEs_OhoU.js";import{t as x}from"./routeParams.CtmTLgcY.js";import"./RoomDetailDialogContent.DYtmm89J.js";import"./order.L3X_GhfV.js";import{t as S}from"./AsideOrderSummary.Brt7K9DI.js";import{i as C,t as w}from"./reservation.BHxfogie.js";import{t as T}from"./OrderAccommodation.sqWxoXog.js";import"./RoomDetailDialog.BPXu75lP.js";import{t as E}from"./ReservationEditInfo.DLAQf0qa.js";var D={class:`grid md:grid-cols-[1fr_var(--x-main-aside-width)] gap-3 md:gap-6`},O={class:`flex flex-col gap-3`,"data-slot":`content`},k={class:`flex flex-col gap-3 transition-all sticky top-[calc(var(--x-main-sticky-top)+1rem)] self-start`,"data-slot":`aside`},A=o({__name:`[uuid]`,setup(o){let{t:A}=s(),j=p(),M=h(),N=g(),P=_(),F=b(),I=r(),{data:L,error:R,refetch:z}=C({uuid:x().value.uuid}),{data:B,refetch:V}=w(),{data:H,error:U,mutate:W,isLoading:G}=v(),K=()=>{W(M.order)};return i(H,e=>{e?.response?.status===200&&(N.$reset(),M.$reset(),j.push(`/`),P.add({class:`accent-success`,title:A(`success`),text:A(`reservationSuccessfullyChanged`)}))}),i([H,U],()=>{!U.value&&!H?.value?.error||(F.heading=H.value?.error?.messageTitle??A(`error`),F.text=U?.value?.toString()??H.value?.error?.message,F.show())}),i(L,async e=>{if(e){if(!e?.accommodation?.isEditable){F.heading=A(`notEditableTitle`),F.text=e?.accommodation?.notEditableText,F.show(),j.push(`/`);return}M.order.accommodation.uuid=e?.accommodation?.uuid,M.order.accommodation.checkInDate=e?.accommodation?.checkInDate,M.order.accommodation.checkOutDate=e?.accommodation?.checkOutDate,e?.guest&&(M.order.guest=e?.guest),e?.accommodation?.rooms?.forEach((e,t)=>{M.order.accommodation.items[t]={uuid:e?.uuid,guestName:e?.guestName,bedType:e?.bedType,roomId:e?.roomId,rateId:e?.rateId,services:e?.services,packageId:e?.packageId,children:e?.children,adults:e?.adults,mealPlan:e?.mealPlan},M.accommodation[t]={entity:null}}),V()}}),i(B,e=>{e?.forEach((e,t)=>{M.accommodation?.[t]&&(M.accommodation[t].minAdults=L.value?.accommodation?.rooms?.[t]?.minAdults,M.accommodation[t].maxAdults=L.value?.accommodation?.rooms?.[t]?.maxAdults)})}),i([()=>[M.order.accommodation.checkInDate,M.order.accommodation.checkOutDate],M.order.accommodation.items],(e,t)=>{let[n,r]=e?.[0],[i,a]=t?.[0],o=e?.[1];o.some((e,t)=>{let n=M.accommodation?.[t]?.minAdults,r=M.accommodation?.[t]?.maxAdults;return typeof e.adults!=`number`||typeof n!=`number`||typeof r!=`number`?!1:e.adults<n||e.adults>r})||o.find(e=>e.adults===0)||!i&&!a||n===i&&r===a&&t?.[1]===e?.[1]||V()}),i([L,R],()=>{!R.value&&!L?.value?.error||(F.heading=L.value?.error?.messageTitle??A(`error`),F.text=R?.value?.toString()??L.value?.error?.message,F.show(),j.push(`/`))}),c(()=>{L.value&&z()}),e(()=>{N.$reset(),M.$reset()}),(e,r)=>{let i=E,o=T,s=S,c=m,p=y;return n(),u(p,{class:``},{default:t(()=>[f(c,{id:a(I),onSubmit:l(K,[`prevent`])},{default:t(()=>[f(i,{class:`mb-3 md:mb-6`,accommodation:a(L)?.accommodation,guest:a(L)?.guest,"check-in-date":a(M).order.accommodation.checkInDate,"check-out-date":a(M).order.accommodation.checkOutDate},null,8,[`accommodation`,`guest`,`check-in-date`,`check-out-date`]),d(`div`,D,[d(`div`,O,[f(o,{edit:!0})]),d(`aside`,k,[f(s,{form:a(I),edit:!0,isLoading:a(G)},null,8,[`form`,`isLoading`])])])]),_:1},8,[`id`])]),_:1})}}});export{A as default};
@@ -1 +1 @@
1
- import{Dn as e,Hn as t,Kn as n,Mn as r,Pn as i,Qn as a,Rt as o,Sn as s,Vn as c,Xn as l,Yn as u,Zn as ee,bn as d,er as f,fn as p,gn as m,hn as h,jt as g,mn as _,pn as v,un as y,vn as b,yn as x}from"./vendor.BGu2qkTq.js";import{W as S,t as C}from"./params.DR2mabOE.js";import"./localeRules.DuB-8maD.js";import{n as te,t as ne}from"./DialogContent.tdqsNrXE.js";import{t as re}from"./Button.DSwXM1vM.js";import{_ as w,b as T,c as E,d as D,f as O,g as ie,h as ae,m as oe,o as se,p as k,u as ce,v as A,x as le,y as ue}from"./client.DrMpyevc.js";import"./staleTimes.BuCDd__I.js";import"./countries.CE6bN6gS.js";import{t as de}from"./config.tpbdABlZ.js";import{t as fe}from"./toaster.DOHhVfsI.js";import{t as pe}from"./Circle.ByhP73-w.js";import{t as j}from"./ButtonBordered.CP-VyF36.js";import{t as M}from"./formatPrice.BEcRqhQn.js";import{t as me}from"./hotel.BmQNwmkI.js";import{t as he}from"./Main.B6URJ_XN.js";import{i as ge,n as N,r as P,t as F}from"./OrderConfirmedStatus.DymNVdn6.js";import{t as I}from"./routeParams.6hpnfcMT.js";import{t as L}from"./CheckinApp.BEzPf4Yi.js";import{a as _e}from"./order.LEc70bzD.js";import{t as R}from"./getPaymentUrl.xa_1GwGz.js";var z={class:`x-order-confirmed-vouchers flex flex-col gap-6`},B={class:`x-heading sm`},V={class:`flex flex-col divide-y divide-main-tertiary divide-gap-y-6`},H={class:`flex items-start justify-between mb-4 md:mb-6 gap-4`},U={class:`flex flex-col`},W={class:`x-badge self-start mb-2`},G={class:`x-heading sm`},K={class:`flex flex-col gap-1.5`},q={key:0,class:`flex items-center justify-between`},J={class:`x-title`},Y={class:`x-text sm`},X={class:`flex items-center justify-between`},Z={class:`x-title`},Q={class:`x-text sm`},ve={key:1,class:`flex items-center justify-between`},ye={class:`x-title`},be={class:`x-text sm`},xe={key:2,class:`flex flex-col gap-2.5`},Se={class:`x-title`},Ce=[`innerHTML`],we={class:`flex items-baseline gap-2 justify-end max-md:flex-wrap border-t border-main-tertiary pt-6`},Te={class:`x-heading sm`},Ee={class:`x-title lg font-normal`},De=d({__name:`OrderConfirmedVouchers`,props:{id:{type:[String,null]},uuid:{type:[String,null]},finalPrice:{type:[Number,null]},currency:{type:String},promoCode:{type:[String,null]},guest:{type:[Object,null]},accommodation:{type:[Object,null]},vouchers:{type:[Object,null]},wellness:{type:[Object,null]}},setup(e){let{t:n}=g();return(a,o)=>{let s=j;return r(),m(`div`,z,[v(`h2`,B,f(l(n)(`vouchers`)),1),v(`div`,V,[(r(!0),m(y,null,i(e.vouchers?.items,(i,a)=>(r(),m(`div`,{key:a,class:`flex flex-col`},[v(`div`,H,[v(`div`,U,[v(`div`,W,f(i.type?.name),1),v(`h2`,G,f(i.name),1)]),i?.pdfLink?(r(),_(s,{key:0,download:``,as:`a`,href:i?.pdfLink,target:`_blank`,size:`md`},{default:t(()=>[b(f(l(n)(`download`)),1)]),_:1},8,[`href`])):h(``,!0)]),v(`ul`,K,[i.price?(r(),m(`li`,q,[v(`div`,J,f(l(n)(`price`)),1),v(`div`,Y,f(l(M)(i.price,e.vouchers?.currency)),1)])):h(``,!0),v(`li`,X,[v(`div`,Z,f(l(n)(`deliveryType`)),1),v(`div`,Q,f(i.voucherDelivery===`virtual`?l(n)(`email`):e.vouchers?.deliveryTypeName),1)]),i.voucherFormat?(r(),m(`li`,ve,[v(`div`,ye,f(l(n)(`format`)),1),v(`div`,be,f(i.voucherFormat),1)])):h(``,!0),i.voucherDedicationText?(r(),m(`li`,xe,[v(`div`,Se,f(l(n)(`dedicationText`)),1),v(`div`,{class:`x-text sm`,innerHTML:i.voucherDedicationText},null,8,Ce)])):h(``,!0)])]))),128))]),v(`div`,we,[v(`div`,Te,f(l(n)(`total`)),1),v(`div`,Ee,f(l(M)(e.vouchers?.finalPrice,e.vouchers?.currency)),1)])])}}}),Oe={key:0,class:`x-order-confirmed-wellness flex flex-col gap-6`},ke={class:`x-heading sm`},Ae={class:`x-text`},je={class:`x-title sm mb-6`},Me={class:`grid lg:grid-cols-2 gap-3 lg:gap-6`},Ne={class:`flex gap-4`},Pe={class:`flex flex-col gap-1`},Fe={class:`x-title sm font-medium`},Ie={key:0,class:`x-title`},Le={class:`flex gap-4`},Re={class:`flex flex-col gap-1`},ze={class:`x-title sm font-medium`},Be={class:`x-title`},Ve={class:`flex gap-4`},He={class:`flex flex-col gap-1`},Ue={class:`x-title sm font-medium`},We={class:`x-title`},Ge={class:`flex gap-4`},Ke={class:`flex flex-col gap-1`},qe={class:`x-title sm font-medium`},Je={class:`x-title`},Ye={key:0,class:`flex gap-4 col-span-full`},Xe={class:`flex flex-col gap-1`},Ze={class:`x-title sm font-medium`},Qe={class:`x-title`},$e={key:0,class:`flex flex-col`},et={class:`x-heading sm mb-6`},tt={class:`x-text`},nt={class:`flex flex-col divide-y divide-main-tertiary divide-gap-y-3`},rt={key:0,class:`flex items-center justify-between`},it={class:`x-title`},at={class:`x-text sm font-medium`},ot={key:1,class:`flex items-center justify-between`},st={class:`x-title`},ct={class:`x-text sm font-medium`},lt={key:2,class:`flex items-center justify-between`},ut={class:`x-title`},dt={class:`x-text sm font-medium`},ft={class:`flex items-center gap-2 justify-end max-md:flex-wrap`},pt={class:`x-heading sm`},mt={class:`x-text lg`},ht=d({__name:`OrderConfirmedWellness`,props:{id:{type:[String,null]},uuid:{type:[String,null]},finalPrice:{type:[Number,null]},currency:{type:String},promoCode:{type:[String,null]},guest:{type:[Object,null]},accommodation:{type:[Object,null]},vouchers:{type:[Object,null]},wellness:{type:[Object,null]}},setup(e){let{t,d:n}=g(),a=e;return(o,s)=>e.wellness?(r(),m(`div`,Oe,[v(`h2`,ke,[b(f(l(t)(`wellnessReservation`))+` `,1),v(`span`,Ae,`#`+f(e.wellness?.vs),1)]),(r(!0),m(y,null,i(e.wellness?.items,(e,i)=>(r(),m(`div`,{key:i,class:`flex flex-col mb-2`},[v(`h3`,je,f(l(t)(`nthReservation`,i+1)),1),v(`ul`,Me,[v(`li`,Ne,[s[0]||=v(`div`,{class:`size-10 bg-primary flex justify-center items-center rounded-md shrink-0`,"aria-hidden":`true`},[v(`svg`,{"aria-hidden":`true`,class:`size-5 text-primary-foreground`},[v(`use`,{href:`#icon-calendar-days-mini`})])],-1),v(`div`,Pe,[v(`div`,Fe,f(l(t)(`date`)),1),e?.date?(r(),m(`div`,Ie,f(l(n)(new Date(e.date))),1)):h(``,!0)])]),v(`li`,Le,[s[1]||=v(`div`,{class:`size-10 bg-primary flex justify-center items-center rounded-md shrink-0`,"aria-hidden":`true`},[v(`svg`,{"aria-hidden":`true`,class:`size-5 text-primary-foreground`},[v(`use`,{href:`#icon-clock-mini`})])],-1),v(`div`,Re,[v(`div`,ze,f(l(t)(`time`)),1),v(`div`,Be,[b(f(e?.timeFrom)+` `,1),e?.timeTo?(r(),m(y,{key:0},[b(` – `+f(e?.timeTo),1)],64)):h(``,!0)])])]),v(`li`,Ve,[s[2]||=v(`div`,{class:`size-10 bg-primary flex justify-center items-center rounded-md shrink-0`,"aria-hidden":`true`},[v(`svg`,{"aria-hidden":`true`,class:`size-5 text-primary-foreground`},[v(`use`,{href:`#icon-user-group-mini`})])],-1),v(`div`,He,[v(`div`,Ue,f(l(t)(`numberOfPersons`)),1),v(`div`,We,f(e?.adults),1)])]),v(`li`,Ge,[s[3]||=v(`div`,{class:`size-10 bg-primary flex justify-center items-center rounded-md shrink-0`,"aria-hidden":`true`},[v(`svg`,{"aria-hidden":`true`,class:`size-5 text-primary-foreground`},[v(`use`,{href:`#icon-wellness-solid`})])],-1),v(`div`,Ke,[v(`div`,qe,f(l(t)(`item`)),1),v(`div`,Je,f(e?.wellnessName),1)])]),e?.services&&e.services.length>0?(r(),m(`li`,Ye,[s[4]||=v(`div`,{class:`size-10 bg-primary flex justify-center items-center rounded-md shrink-0`,"aria-hidden":`true`},[v(`svg`,{"aria-hidden":`true`,class:`size-5 text-primary-foreground`},[v(`use`,{href:`#icon-wellness-solid`})])],-1),v(`div`,Xe,[v(`div`,Ze,f(l(t)(`extraServices`)),1),v(`div`,Qe,f(e.services.map(e=>e.name).join(`, `)),1)])])):h(``,!0)])]))),128)),e.guest?(r(),m(`div`,$e,[v(`h2`,et,[b(f(l(t)(`reservingPerson`))+` `,1),v(`span`,tt,`(`+f(e.guest?.firstName)+` `+f(e.guest?.lastName)+`)`,1)]),v(`ul`,nt,[e.guest?.email?(r(),m(`li`,rt,[v(`div`,it,f(l(t)(`email`)),1),v(`div`,at,f(e.guest.email),1)])):h(``,!0),e.guest?.tel?(r(),m(`li`,ot,[v(`div`,st,f(l(t)(`phone`)),1),v(`div`,ct,f(e.guest.tel),1)])):h(``,!0),e.guest?.street||e.guest?.city||e.guest?.postalCode?(r(),m(`li`,lt,[v(`div`,ut,f(l(t)(`address`)),1),v(`div`,dt,f(e.guest?.street)+`, `+f(e.guest?.city)+` `+f(e.guest?.postalCode),1)])):h(``,!0)])])):h(``,!0),v(`div`,ft,[v(`div`,pt,f(l(t)(`total`)),1),v(`div`,mt,f(l(M)(e.wellness.finalPrice,a.currency)),1)])])):h(``,!0)}}),gt={key:0,class:`p-6 bg-body-primary rounded-xl flex items-center max-md:flex-col gap-8 md:gap-6 justify-between col-span-full`},_t={class:`flex flex-col items-start`},vt={class:`x-heading`},yt={class:`flex flex-col gap-5 lg:pr-10`},bt={key:0,class:`flex flex-col gap-1`},xt={class:`x-title sm font-medium text-main-secondary`},St={class:`x-title flex items-center gap-3`},Ct={key:1,class:`flex flex-col gap-1`},wt={class:`x-title sm font-medium text-main-secondary`},Tt={class:`x-title flex items-center gap-3`},Et={key:2,class:`flex flex-col gap-1`},$={class:`x-title sm font-medium text-main-secondary`},Dt={class:`x-title flex items-center gap-3`},Ot={key:1,class:`py-12 px-2.5 bg-body-primary rounded-xl flex flex-col items-center gap-3 col-span-full`},kt={class:`x-heading lg text-center`},At={key:0,class:`bg-body-primary p-3 md:p-6 rounded-xl flex flex-col gap-6`},jt={key:1,class:`skeleton h-svh rounded-xl`},Mt={key:2,class:`bg-body-primary p-3 md:p-6 rounded-xl flex flex-col gap-6`},Nt={key:3,class:`bg-body-primary p-3 md:p-6 rounded-xl flex flex-col gap-6`},Pt={class:`x-heading mb-2`},Ft={class:`x-text`},It=d({__name:`[uuid]`,setup(i){let{t:d}=g(),j=o(),M=S(),z=C(),B=se(),V=E(),H=fe(),U=le(),W=I(),{data:G}=de(),{data:K,error:q,isLoading:J}=_e(W.value.uuid),{data:Y}=me(),X=n(!1),Z=u(V.trackOrder);U.resetPromo(),B.$reset(),V.$reset(),j.invalidateQueries({key:[`account/orders`]}),j.invalidateQueries({key:[`account/points`]}),j.invalidateQueries({key:[`account/rewards`]});let Q=p(()=>K?.value?.accommodation?.paymentType===`payment-online-card`&&!K?.value?.accommodation?.paymentUrlOpened?K?.value?.accommodation?.paymentUrl:K?.value?.vouchers?.paymentType===`payment-online-card`&&!K?.value?.vouchers?.paymentUrlOpened?K?.value?.vouchers?.paymentUrl:K?.value?.wellness?.paymentType===`payment-online-card`&&!K?.value?.wellness?.paymentUrlOpened?K?.value?.wellness?.paymentUrl:null);return c([K,q],()=>{!q?.value&&!K?.value?.error||(M.push(`/`),H.add({class:`accent-error`,title:d(`error`),text:q?.value?.toString()??K.value?.error?.message}))}),c(()=>K.value?.accommodation?.paymentUrl,e=>{e&&(K?.value?.accommodation?.paymentUrlOpened||K?.value?.accommodation?.paymentType!==`payment-online-card`||K?.value?.accommodation?.paid||setTimeout(()=>{X.value=!0,window.location.replace(R(e,z.url))},750))},{immediate:!0}),c(()=>K.value?.vouchers?.paymentUrl,e=>{e&&(K?.value?.vouchers?.paymentUrlOpened||K?.value?.accommodation?.paymentType===`payment-online-card`&&!K?.value?.accommodation?.paymentUrlOpened||K?.value?.vouchers?.paymentType!==`payment-online-card`||K?.value?.vouchers?.paid||setTimeout(()=>{X.value=!0,window.location.replace(R(e,z.url))},750))},{immediate:!0}),c(()=>K.value?.wellness?.paymentUrl,e=>{e&&(K?.value?.wellness?.paymentUrlOpened||K?.value?.accommodation?.paymentType===`payment-online-card`&&!K?.value?.accommodation?.paymentUrlOpened||K?.value?.vouchers?.paymentType===`payment-online-card`&&!K?.value?.vouchers?.paymentUrlOpened||K?.value?.wellness?.paymentType!==`payment-online-card`||K?.value?.wellness?.paid||setTimeout(()=>{X.value=!0,window.location.replace(R(e,z.url))},750))},{immediate:!0}),c(K,e=>{if(!(!e&&K?.value?.error)&&Z){Z=!1;let e=K?.value?.accommodation?.rooms?.map(e=>({item_id:e.roomId,item_name:e.roomName,item_variant:e.packageName||e.rateName,item_category:`Reservation`,item_brand:Y.value?.chainName,affiliation:Y.value?.name,currency:K?.value?.accommodation?.currency,price:Math.round(((e.prices?.finalPrice??NaN)/(K?.value?.accommodation?.totalNights??NaN)+2**-52)*100)/100,quantity:K?.value?.accommodation?.totalNights}))??[],t=K?.value?.vouchers?.items?.map(e=>({item_id:e.voucherId??e.productId,item_name:e.name,item_variant:e.voucherFormat,item_category:e.voucherId?`Voucher`:`Product`,item_brand:Y.value?.chainName,affiliation:Y.value?.name,currency:K?.value?.vouchers?.currency,price:e.price,quantity:1}))??[],n=K?.value?.wellness?.items?.map(e=>({item_id:e.wellnessId,item_name:e.wellnessName,item_category:`Wellness`,item_brand:Y.value?.chainName,affiliation:Y.value?.name,currency:K?.value?.wellness?.currency,price:e.price,quantity:1}))??[],r=(e=>K?.value?.accommodation?.number&&(!K?.value.vouchers||!K?.value.wellness)?e:`${e}_ORDER`)(K?.value?.accommodation?.number??K?.value?.id),i=[...e,...t,...n],a={transaction_id:r,value:K?.value?.finalPrice,currency:K?.value?.currency,check_in:K?.value?.accommodation?.checkInDate,check_out:K?.value?.accommodation?.checkOutDate,email:K?.value?.guest?.email,coupon:K?.value?.promoCode,items:i};if(ae(`Purchase`,{props:{hotelId:Y?.value?.id,...a}}),(G.value?.tracking?.googleGa4||G.value?.tracking?.googleGtm)&&k(`event`,`purchase`,a),G.value?.tracking?.googleAdsId&&G.value?.tracking?.googleAdsLabel&&(k(`set`,`user_data`,{email:K?.value?.guest?.email,phone_number:K?.value?.guest?.tel,address:{first_name:K?.value?.guest?.firstName,last_name:K?.value?.guest?.lastName,city:K?.value?.guest?.city,postal_code:K?.value?.guest?.postalCode,country:K?.value?.guest?.country,street:K?.value?.guest?.street}}),k(`event`,`conversion`,{send_to:`${G.value?.tracking?.googleAdsId}/${G.value?.tracking?.googleAdsLabel}`,value:K?.value?.finalPrice,currency:K?.value?.currency,transaction_id:r})),G.value?.tracking?.thnHotelId&&K?.value?.accommodation&&k(`event`,`thnBookingConfirmation`,{thn:{languageCode:K?.value?.accommodation?.lang,currencyCode:K?.value?.accommodation?.currency,hotelId:Y?.value?.id,hotelName:Y?.value?.name,booking:{id:K?.value?.accommodation?.number,checkIn:K?.value?.accommodation?.checkInDate,checkOut:K?.value?.accommodation?.checkOutDate,totalCost:K?.value?.accommodation?.finalPriceSecondary,promoCode:K?.value?.accommodation?.promoCode}}}),G.value?.tracking?.sklik&&(A.updateIdentities({eid:K.value?.guest?.email,aid:{a1:K?.value?.guest?.country,a2:K?.value?.guest?.city,a3:K?.value?.guest?.street,a5:K?.value?.guest?.postalCode},tid:K?.value?.guest?.tel}),A.conversionHit({id:G.value?.tracking?.sklik,orderId:r,value:K?.value?.finalPrice,consent:z.consent})),G.value?.tracking?.facebookPixel&&O(`track`,`Purchase`,{currency:K?.value?.currency,value:K?.value?.finalPrice},{eventID:K.value?.uuid}),G.value?.tracking?.xPixel&&ue(`track`,`Purchase`,{value:K?.value?.finalPrice,currency:K?.value?.currency,num_items:i.length}),G.value?.tracking?.microsoftAds&&T(`event`,`PRODUCT_PURCHASE`,{ecomm_prodid:r,ecomm_pagetype:`PURCHASE`,revenue_value:K?.value?.finalPrice,currency:K?.value?.currency}),G.value?.tracking?.sojernConversion&&K?.value?.accommodation&&w({id:G.value?.tracking?.sojernConversion,checkIn:K?.value?.accommodation?.checkInDate,checkOut:K?.value?.accommodation?.checkOutDate,guests:K?.value?.accommodation?.totalGuests,hotelCity:Y?.value?.city,hotelName:Y?.value?.name,hotelId:Y?.value?.id,hotelCountry:Y?.value?.country,price:K?.value?.accommodation?.finalPriceSecondary,currency:K?.value?.accommodation?.currencySecondary,reservationNumber:K?.value?.accommodation?.number,rooms:K?.value?.accommodation?.totalRooms}),G.value?.tracking?.leadhub&&K?.value?.accommodation){let e=[...(K?.value?.accommodation?.rooms??[]).map(e=>({product_id:e.roomId,quantity:K?.value?.accommodation?.totalNights}))];oe(`Purchase`,{value:K?.value?.accommodation?.finalPriceSecondary,currency:K?.value?.accommodation?.currencySecondary,email:K?.value?.guest?.email,first_name:K?.value?.guest?.firstName,last_name:K?.value?.guest?.lastName,phone:K?.value?.guest?.tel,order_id:r,products:e})}G.value?.tracking?.quicktextLicense&&K?.value?.accommodation&&ie({event:`confirm`,partner:`Bookolo`,price:K?.value?.accommodation?.finalPriceSecondary,currency:K?.value?.accommodation?.currencySecondary,checkIn:K?.value?.accommodation?.checkInDate,checkOut:K?.value?.accommodation?.checkOutDate,adults:K?.value?.accommodation?.totalAdults,children:K?.value?.accommodation?.totalChildren,rooms:K?.value?.accommodation?.totalRooms}),G.value?.tracking?.dialogShiftClientId&&K?.value?.accommodation&&D({clientId:G.value?.tracking?.dialogShiftClientId,bookingAmount:K?.value?.accommodation?.finalPriceSecondary,roomCount:K?.value?.accommodation?.totalRooms,nightCount:K?.value?.accommodation?.totalNights,currencyCode:K?.value?.accommodation?.currencySecondary}),G.value?.tracking?.dedgeTrackingHotelId&&K?.value?.accommodation&&ce({hotelId:Y?.value?.id,currency:K?.value?.accommodation?.currencySecondary,amount:K?.value?.accommodation?.finalPriceSecondary,amountWithoutTax:K?.value?.accommodation?.finalPriceSecondary,arrival:K?.value?.accommodation?.checkInDate,departure:K?.value?.accommodation?.checkOutDate,bookingReference:K?.value?.accommodation?.number})}},{immediate:!0}),(n,i)=>{let o=pe,c=re,u=F,p=N,g=P,S=ge,C=ht,w=De,T=L,E=he,D=ne,O=te;return r(),m(y,null,[x(E,{class:`grid lg:grid-cols-[1fr_28.25rem] gap-3 mg:gap-6`},{default:t(()=>[[l(K)?.accommodation,l(K)?.vouchers,l(K)?.wellness].filter(Boolean).length>=2?(r(),m(`div`,gt,[v(`div`,_t,[x(o,{class:`accent-success before:bg-accent/15 mb-3`,size:`md`,icon:`#icon-check`}),v(`h1`,vt,f(l(K)?.accommodation?l(d)(`reservationIsConfirmed`):l(d)(`orderIsCompleted`)),1),x(c,{size:`md`,to:`/`,class:`mt-5 md:mt-10`},{default:t(()=>[b(f(l(d)(`backToMainPage`)),1)]),_:1})]),v(`ul`,yt,[l(K)?.accommodation&&(l(K)?.accommodation?.paymentType===`payment-online-card`||l(K)?.accommodation?.paymentType===`bank-transfer`||l(K)?.accommodation?.paid)?(r(),m(`li`,bt,[v(`div`,xt,f(l(d)(`accommodationAndPackages`)),1),v(`div`,St,[l(K)?.accommodation?.paymentType===`payment-online-card`&&!l(K)?.accommodation?.paid?(r(),m(y,{key:0},[x(o,{class:`accent-error before:bg-accent/20`,size:`xs`,icon:`#icon-x-mark-micro`}),b(` `+f(l(d)(`paymentWithCardFailed`)),1)],64)):l(K)?.accommodation?.paymentType===`bank-transfer`&&!l(K)?.accommodation?.paid?(r(),m(y,{key:1},[b(f(l(d)(`waitingForBankTransferPayment`)),1)],64)):l(K)?.accommodation?.paid?(r(),m(y,{key:2},[x(o,{class:`accent-success before:bg-accent/20`,size:`xs`,icon:`#icon-check-micro`}),b(` `+f(l(d)(`paymentSuccessful`)),1)],64)):h(``,!0)])])):h(``,!0),l(K)?.wellness&&(l(K)?.wellness?.paymentType===`payment-online-card`||l(K)?.wellness?.paymentType===`bank-transfer`||l(K)?.wellness?.paid)?(r(),m(`li`,Ct,[v(`div`,wt,f(l(d)(`wellness`)),1),v(`div`,Tt,[l(K)?.wellness?.paymentType===`payment-online-card`&&!l(K)?.wellness?.paid?(r(),m(y,{key:0},[x(o,{class:`accent-error before:bg-accent/20`,size:`xs`,icon:`#icon-x-mark-micro`}),b(` `+f(l(d)(`paymentWithCardFailed`)),1)],64)):l(K)?.wellness?.paymentType===`bank-transfer`&&!l(K)?.wellness?.paid?(r(),m(y,{key:1},[b(f(l(d)(`waitingForBankTransferPayment`)),1)],64)):l(K)?.wellness?.paid?(r(),m(y,{key:2},[x(o,{class:`accent-success before:bg-accent/20`,size:`xs`,icon:`#icon-check-micro`}),b(` `+f(l(d)(`paymentSuccessful`)),1)],64)):h(``,!0)])])):h(``,!0),l(K)?.vouchers&&(l(K)?.vouchers?.paymentType===`payment-online-card`||l(K)?.vouchers?.paymentType===`bank-transfer`||l(K)?.vouchers?.paid)?(r(),m(`li`,Et,[v(`div`,$,f(l(d)(`vouchers`)),1),v(`div`,Dt,[l(K)?.vouchers?.paymentType===`payment-online-card`&&!l(K)?.vouchers?.paid?(r(),m(y,{key:0},[x(o,{class:`accent-error before:bg-accent/20`,size:`xs`,icon:`#icon-x-mark-micro`}),b(` `+f(l(d)(`paymentWithCardFailed`)),1)],64)):l(K)?.vouchers?.paymentType===`bank-transfer`&&!l(K)?.vouchers?.paid?(r(),m(y,{key:1},[b(f(l(d)(`waitingForBankTransferPayment`)),1)],64)):l(K)?.vouchers?.paid?(r(),m(y,{key:2},[x(o,{class:`accent-success before:bg-accent/20`,size:`xs`,icon:`#icon-check-micro`}),b(` `+f(l(d)(`paymentSuccessful`)),1)],64)):h(``,!0)])])):h(``,!0)])])):(r(),m(`div`,Ot,[x(o,{class:`accent-success before:bg-accent/15`,icon:`#icon-check`}),v(`h1`,kt,f(l(K)?.accommodation?l(d)(`reservationIsConfirmed`):l(d)(`orderIsCompleted`)),1),x(c,{size:`md`,to:`/`,class:`mt-7`},{default:t(()=>[b(f(l(d)(`backToMainPage`)),1)]),_:1})])),v(`div`,{class:ee([`flex flex-col gap-6`,{"col-span-full":!l(G)?.showBookoloAppDownload}])},[!l(J)&&l(K)?.accommodation?(r(),m(`div`,At,[l(K)?.accommodation?.paymentType===`payment-online-card`&&!l(K)?.accommodation?.paid&&l(K)?.accommodation?.paymentUrlOpened?(r(),_(u,{key:0,title:l(d)(`paymentWithCardFailed`),status:`error`,icon:`#icon-x-mark-micro`},{default:t(()=>[x(c,{as:`a`,size:`md`,class:`ml-auto max-md:w-full`,href:l(R)(l(K)?.accommodation?.paymentUrl,l(z).url)},{default:t(()=>[b(f(l(d)(`payAccommodation`)),1)]),_:1},8,[`href`])]),_:1},8,[`title`])):h(``,!0),l(K)?.accommodation?.paymentType===`bank-transfer`&&!l(K)?.accommodation?.paid?(r(),_(u,{key:1,title:l(d)(`waitingForBankTransferPayment`),status:`warning`,icon:`#icon-question-mark`},null,8,[`title`])):h(``,!0),l(K)?.accommodation?.paid?(r(),_(u,{key:2,title:l(d)(`paymentSuccessful`),status:`success`,icon:`#icon-check-micro`},null,8,[`title`])):h(``,!0),!l(J)&&l(K)?.accommodation?.bank?(r(),_(p,a(e({key:3},{...l(K)?.accommodation?.bank})),null,16)):h(``,!0),x(g,a(s({...l(K)})),null,16),l(G)?.showBookoloAppReservationScan?(r(),_(S,{key:4,qrCode:l(K)?.accommodation?.qrCode,code:l(K)?.accommodation?.code},null,8,[`qrCode`,`code`])):h(``,!0)])):l(J)?(r(),m(`div`,jt)):h(``,!0),!l(J)&&l(K)?.wellness?(r(),m(`div`,Mt,[l(K)?.wellness?.paymentType===`payment-online-card`&&!l(K)?.wellness?.paid&&l(K)?.wellness?.paymentUrlOpened?(r(),_(u,{key:0,title:l(d)(`paymentWithCardFailed`),status:`error`,icon:`#icon-x-mark-micro`},{default:t(()=>[x(c,{as:`a`,size:`md`,class:`ml-auto max-md:w-full`,href:l(R)(l(K)?.wellness?.paymentUrl,l(z).url)},{default:t(()=>[b(f(l(d)(`payWellness`)),1)]),_:1},8,[`href`])]),_:1},8,[`title`])):h(``,!0),l(K)?.wellness?.paymentType===`bank-transfer`&&!l(K)?.wellness?.paid?(r(),_(u,{key:1,title:l(d)(`waitingForBankTransferPayment`),status:`warning`,icon:`#icon-question-mark`},null,8,[`title`])):h(``,!0),l(K)?.wellness?.paid?(r(),_(u,{key:2,title:l(d)(`paymentSuccessful`),status:`success`,icon:`#icon-check-micro`},null,8,[`title`])):h(``,!0),!l(J)&&l(K)?.wellness?.bank?(r(),_(p,a(e({key:3},{...l(K)?.wellness?.bank})),null,16)):h(``,!0),x(C,a(s({...l(K)})),null,16)])):h(``,!0),!l(J)&&l(K)?.vouchers?(r(),m(`div`,Nt,[l(K)?.vouchers?.paymentType===`payment-online-card`&&!l(K)?.vouchers?.paid&&l(K)?.vouchers?.paymentUrlOpened?(r(),_(u,{key:0,title:l(d)(`paymentWithCardFailed`),status:`error`,icon:`#icon-x-mark-micro`},{default:t(()=>[x(c,{as:`a`,size:`md`,class:`ml-auto max-md:w-full`,href:l(R)(l(K)?.vouchers?.paymentUrl,l(z).url)},{default:t(()=>[b(f(l(K)?.vouchers?.items?.length>1?l(d)(`payVouchers`):l(d)(`payVoucher`)),1)]),_:1},8,[`href`])]),_:1},8,[`title`])):h(``,!0),l(K)?.vouchers?.paymentType===`bank-transfer`&&!l(K)?.vouchers?.paid?(r(),_(u,{key:1,title:l(d)(`waitingForBankTransferPayment`),status:`warning`,icon:`#icon-question-mark`},null,8,[`title`])):h(``,!0),l(K)?.vouchers?.paid?(r(),_(u,{key:2,title:l(d)(`paymentSuccessful`),status:`success`,icon:`#icon-check-micro`},null,8,[`title`])):h(``,!0),!l(J)&&l(K)?.vouchers?.bank?(r(),_(p,a(e({key:3},{...l(K)?.vouchers?.bank})),null,16)):h(``,!0),x(w,a(s({...l(K)})),null,16)])):h(``,!0)],2),l(G)?.showBookoloAppDownload?(r(),_(T,{key:2,class:`transition-all md:sticky md:top-[calc(var(--x-main-sticky-top)+1rem)] self-start`})):h(``,!0)]),_:1}),x(O,{open:l(K)?.accommodation?.paymentType===`payment-online-card`&&!l(K)?.accommodation?.paid&&!l(K)?.accommodation?.paymentUrlOpened||l(K)?.vouchers?.paymentType===`payment-online-card`&&!l(K)?.vouchers?.paid&&!l(K)?.vouchers?.paymentUrlOpened||l(K)?.wellness?.paymentType===`payment-online-card`&&!l(K)?.wellness?.paid&&!l(K)?.wellness?.paymentUrlOpened,closable:!1},{default:t(()=>[x(D,{size:`xs`,class:`flex flex-col text-center items-center py-8 px-16`},{default:t(()=>[x(o,{class:`before:bg-accent/15 mb-4`,icon:`#icon-credit-card-solid`}),v(`div`,Pt,f(l(d)(`momentOfPatience`)),1),v(`div`,Ft,f(l(d)(`paymentGatewayRedirection`)),1),x(c,{as:`a`,class:`mt-6`,size:`md`,href:l(R)(Q.value,l(z).url),disabled:X.value},{default:t(()=>[b(f(l(d)(`redirectNow`)),1)]),_:1},8,[`href`,`disabled`])]),_:1})]),_:1},8,[`open`])],64)}}});export{It as default};
1
+ import{Dn as e,Hn as t,Kn as n,Mn as r,Pn as i,Qn as a,Rt as o,Sn as s,Vn as c,Xn as l,Yn as u,Zn as ee,bn as d,er as f,fn as p,gn as m,hn as h,jt as g,mn as _,pn as v,un as y,vn as b,yn as x}from"./vendor._wA0akn2.js";import{W as S,t as C}from"./params.IVBLxJy4.js";import"./localeRules.Bcy3JgQD.js";import{n as te,t as ne}from"./DialogContent.BGzVxgDS.js";import{t as re}from"./Button.BeiE5OVg.js";import{_ as w,b as T,c as E,d as D,f as O,g as ie,h as ae,m as oe,o as se,p as k,u as ce,v as A,x as le,y as ue}from"./client.DrlPwpqz.js";import"./staleTimes.DqeAd6cB.js";import"./countries.DXV0Z9gI.js";import{t as de}from"./config.DhUrL--N.js";import{t as fe}from"./toaster.FT2nZJ8S.js";import{t as pe}from"./Circle.DpT3TU5e.js";import{t as j}from"./ButtonBordered.D3aU6uqY.js";import{t as M}from"./formatPrice.DafIJMfZ.js";import{t as me}from"./hotel.BG-sRF7k.js";import{t as he}from"./Main.CAF1TXNp.js";import{i as ge,n as N,r as P,t as F}from"./OrderConfirmedStatus.di7PF2gx.js";import{t as I}from"./routeParams.CtmTLgcY.js";import{t as L}from"./CheckinApp.CTe4Ix5S.js";import{a as _e}from"./order.L3X_GhfV.js";import{t as R}from"./getPaymentUrl.CFy-Zfuu.js";var z={class:`x-order-confirmed-vouchers flex flex-col gap-6`},B={class:`x-heading sm`},V={class:`flex flex-col divide-y divide-main-tertiary divide-gap-y-6`},H={class:`flex items-start justify-between mb-4 md:mb-6 gap-4`},U={class:`flex flex-col`},W={class:`x-badge self-start mb-2`},G={class:`x-heading sm`},K={class:`flex flex-col gap-1.5`},q={key:0,class:`flex items-center justify-between`},J={class:`x-title`},Y={class:`x-text sm`},X={class:`flex items-center justify-between`},Z={class:`x-title`},Q={class:`x-text sm`},ve={key:1,class:`flex items-center justify-between`},ye={class:`x-title`},be={class:`x-text sm`},xe={key:2,class:`flex flex-col gap-2.5`},Se={class:`x-title`},Ce=[`innerHTML`],we={class:`flex items-baseline gap-2 justify-end max-md:flex-wrap border-t border-main-tertiary pt-6`},Te={class:`x-heading sm`},Ee={class:`x-title lg font-normal`},De=d({__name:`OrderConfirmedVouchers`,props:{id:{type:[String,null]},uuid:{type:[String,null]},finalPrice:{type:[Number,null]},currency:{type:String},promoCode:{type:[String,null]},guest:{type:[Object,null]},accommodation:{type:[Object,null]},vouchers:{type:[Object,null]},wellness:{type:[Object,null]}},setup(e){let{t:n}=g();return(a,o)=>{let s=j;return r(),m(`div`,z,[v(`h2`,B,f(l(n)(`vouchers`)),1),v(`div`,V,[(r(!0),m(y,null,i(e.vouchers?.items,(i,a)=>(r(),m(`div`,{key:a,class:`flex flex-col`},[v(`div`,H,[v(`div`,U,[v(`div`,W,f(i.type?.name),1),v(`h2`,G,f(i.name),1)]),i?.pdfLink?(r(),_(s,{key:0,download:``,as:`a`,href:i?.pdfLink,target:`_blank`,size:`md`},{default:t(()=>[b(f(l(n)(`download`)),1)]),_:1},8,[`href`])):h(``,!0)]),v(`ul`,K,[i.price?(r(),m(`li`,q,[v(`div`,J,f(l(n)(`price`)),1),v(`div`,Y,f(l(M)(i.price,e.vouchers?.currency)),1)])):h(``,!0),v(`li`,X,[v(`div`,Z,f(l(n)(`deliveryType`)),1),v(`div`,Q,f(i.voucherDelivery===`virtual`?l(n)(`email`):e.vouchers?.deliveryTypeName),1)]),i.voucherFormat?(r(),m(`li`,ve,[v(`div`,ye,f(l(n)(`format`)),1),v(`div`,be,f(i.voucherFormat),1)])):h(``,!0),i.voucherDedicationText?(r(),m(`li`,xe,[v(`div`,Se,f(l(n)(`dedicationText`)),1),v(`div`,{class:`x-text sm`,innerHTML:i.voucherDedicationText},null,8,Ce)])):h(``,!0)])]))),128))]),v(`div`,we,[v(`div`,Te,f(l(n)(`total`)),1),v(`div`,Ee,f(l(M)(e.vouchers?.finalPrice,e.vouchers?.currency)),1)])])}}}),Oe={key:0,class:`x-order-confirmed-wellness flex flex-col gap-6`},ke={class:`x-heading sm`},Ae={class:`x-text`},je={class:`x-title sm mb-6`},Me={class:`grid lg:grid-cols-2 gap-3 lg:gap-6`},Ne={class:`flex gap-4`},Pe={class:`flex flex-col gap-1`},Fe={class:`x-title sm font-medium`},Ie={key:0,class:`x-title`},Le={class:`flex gap-4`},Re={class:`flex flex-col gap-1`},ze={class:`x-title sm font-medium`},Be={class:`x-title`},Ve={class:`flex gap-4`},He={class:`flex flex-col gap-1`},Ue={class:`x-title sm font-medium`},We={class:`x-title`},Ge={class:`flex gap-4`},Ke={class:`flex flex-col gap-1`},qe={class:`x-title sm font-medium`},Je={class:`x-title`},Ye={key:0,class:`flex gap-4 col-span-full`},Xe={class:`flex flex-col gap-1`},Ze={class:`x-title sm font-medium`},Qe={class:`x-title`},$e={key:0,class:`flex flex-col`},et={class:`x-heading sm mb-6`},tt={class:`x-text`},nt={class:`flex flex-col divide-y divide-main-tertiary divide-gap-y-3`},rt={key:0,class:`flex items-center justify-between`},it={class:`x-title`},at={class:`x-text sm font-medium`},ot={key:1,class:`flex items-center justify-between`},st={class:`x-title`},ct={class:`x-text sm font-medium`},lt={key:2,class:`flex items-center justify-between`},ut={class:`x-title`},dt={class:`x-text sm font-medium`},ft={class:`flex items-center gap-2 justify-end max-md:flex-wrap`},pt={class:`x-heading sm`},mt={class:`x-text lg`},ht=d({__name:`OrderConfirmedWellness`,props:{id:{type:[String,null]},uuid:{type:[String,null]},finalPrice:{type:[Number,null]},currency:{type:String},promoCode:{type:[String,null]},guest:{type:[Object,null]},accommodation:{type:[Object,null]},vouchers:{type:[Object,null]},wellness:{type:[Object,null]}},setup(e){let{t,d:n}=g(),a=e;return(o,s)=>e.wellness?(r(),m(`div`,Oe,[v(`h2`,ke,[b(f(l(t)(`wellnessReservation`))+` `,1),v(`span`,Ae,`#`+f(e.wellness?.vs),1)]),(r(!0),m(y,null,i(e.wellness?.items,(e,i)=>(r(),m(`div`,{key:i,class:`flex flex-col mb-2`},[v(`h3`,je,f(l(t)(`nthReservation`,i+1)),1),v(`ul`,Me,[v(`li`,Ne,[s[0]||=v(`div`,{class:`size-10 bg-primary flex justify-center items-center rounded-md shrink-0`,"aria-hidden":`true`},[v(`svg`,{"aria-hidden":`true`,class:`size-5 text-primary-foreground`},[v(`use`,{href:`#icon-calendar-days-mini`})])],-1),v(`div`,Pe,[v(`div`,Fe,f(l(t)(`date`)),1),e?.date?(r(),m(`div`,Ie,f(l(n)(new Date(e.date))),1)):h(``,!0)])]),v(`li`,Le,[s[1]||=v(`div`,{class:`size-10 bg-primary flex justify-center items-center rounded-md shrink-0`,"aria-hidden":`true`},[v(`svg`,{"aria-hidden":`true`,class:`size-5 text-primary-foreground`},[v(`use`,{href:`#icon-clock-mini`})])],-1),v(`div`,Re,[v(`div`,ze,f(l(t)(`time`)),1),v(`div`,Be,[b(f(e?.timeFrom)+` `,1),e?.timeTo?(r(),m(y,{key:0},[b(` – `+f(e?.timeTo),1)],64)):h(``,!0)])])]),v(`li`,Ve,[s[2]||=v(`div`,{class:`size-10 bg-primary flex justify-center items-center rounded-md shrink-0`,"aria-hidden":`true`},[v(`svg`,{"aria-hidden":`true`,class:`size-5 text-primary-foreground`},[v(`use`,{href:`#icon-user-group-mini`})])],-1),v(`div`,He,[v(`div`,Ue,f(l(t)(`numberOfPersons`)),1),v(`div`,We,f(e?.adults),1)])]),v(`li`,Ge,[s[3]||=v(`div`,{class:`size-10 bg-primary flex justify-center items-center rounded-md shrink-0`,"aria-hidden":`true`},[v(`svg`,{"aria-hidden":`true`,class:`size-5 text-primary-foreground`},[v(`use`,{href:`#icon-wellness-solid`})])],-1),v(`div`,Ke,[v(`div`,qe,f(l(t)(`item`)),1),v(`div`,Je,f(e?.wellnessName),1)])]),e?.services&&e.services.length>0?(r(),m(`li`,Ye,[s[4]||=v(`div`,{class:`size-10 bg-primary flex justify-center items-center rounded-md shrink-0`,"aria-hidden":`true`},[v(`svg`,{"aria-hidden":`true`,class:`size-5 text-primary-foreground`},[v(`use`,{href:`#icon-wellness-solid`})])],-1),v(`div`,Xe,[v(`div`,Ze,f(l(t)(`extraServices`)),1),v(`div`,Qe,f(e.services.map(e=>e.name).join(`, `)),1)])])):h(``,!0)])]))),128)),e.guest?(r(),m(`div`,$e,[v(`h2`,et,[b(f(l(t)(`reservingPerson`))+` `,1),v(`span`,tt,`(`+f(e.guest?.firstName)+` `+f(e.guest?.lastName)+`)`,1)]),v(`ul`,nt,[e.guest?.email?(r(),m(`li`,rt,[v(`div`,it,f(l(t)(`email`)),1),v(`div`,at,f(e.guest.email),1)])):h(``,!0),e.guest?.tel?(r(),m(`li`,ot,[v(`div`,st,f(l(t)(`phone`)),1),v(`div`,ct,f(e.guest.tel),1)])):h(``,!0),e.guest?.street||e.guest?.city||e.guest?.postalCode?(r(),m(`li`,lt,[v(`div`,ut,f(l(t)(`address`)),1),v(`div`,dt,f(e.guest?.street)+`, `+f(e.guest?.city)+` `+f(e.guest?.postalCode),1)])):h(``,!0)])])):h(``,!0),v(`div`,ft,[v(`div`,pt,f(l(t)(`total`)),1),v(`div`,mt,f(l(M)(e.wellness.finalPrice,a.currency)),1)])])):h(``,!0)}}),gt={key:0,class:`p-6 bg-body-primary rounded-xl flex items-center max-md:flex-col gap-8 md:gap-6 justify-between col-span-full`},_t={class:`flex flex-col items-start`},vt={class:`x-heading`},yt={class:`flex flex-col gap-5 lg:pr-10`},bt={key:0,class:`flex flex-col gap-1`},xt={class:`x-title sm font-medium text-main-secondary`},St={class:`x-title flex items-center gap-3`},Ct={key:1,class:`flex flex-col gap-1`},wt={class:`x-title sm font-medium text-main-secondary`},Tt={class:`x-title flex items-center gap-3`},Et={key:2,class:`flex flex-col gap-1`},$={class:`x-title sm font-medium text-main-secondary`},Dt={class:`x-title flex items-center gap-3`},Ot={key:1,class:`py-12 px-2.5 bg-body-primary rounded-xl flex flex-col items-center gap-3 col-span-full`},kt={class:`x-heading lg text-center`},At={key:0,class:`bg-body-primary p-3 md:p-6 rounded-xl flex flex-col gap-6`},jt={key:1,class:`skeleton h-svh rounded-xl`},Mt={key:2,class:`bg-body-primary p-3 md:p-6 rounded-xl flex flex-col gap-6`},Nt={key:3,class:`bg-body-primary p-3 md:p-6 rounded-xl flex flex-col gap-6`},Pt={class:`x-heading mb-2`},Ft={class:`x-text`},It=d({__name:`[uuid]`,setup(i){let{t:d}=g(),j=o(),M=S(),z=C(),B=se(),V=E(),H=fe(),U=le(),W=I(),{data:G}=de(),{data:K,error:q,isLoading:J}=_e(W.value.uuid),{data:Y}=me(),X=n(!1),Z=u(V.trackOrder);U.resetPromo(),B.$reset(),V.$reset(),j.invalidateQueries({key:[`account/orders`]}),j.invalidateQueries({key:[`account/points`]}),j.invalidateQueries({key:[`account/rewards`]});let Q=p(()=>K?.value?.accommodation?.paymentType===`payment-online-card`&&!K?.value?.accommodation?.paymentUrlOpened?K?.value?.accommodation?.paymentUrl:K?.value?.vouchers?.paymentType===`payment-online-card`&&!K?.value?.vouchers?.paymentUrlOpened?K?.value?.vouchers?.paymentUrl:K?.value?.wellness?.paymentType===`payment-online-card`&&!K?.value?.wellness?.paymentUrlOpened?K?.value?.wellness?.paymentUrl:null);return c([K,q],()=>{!q?.value&&!K?.value?.error||(M.push(`/`),H.add({class:`accent-error`,title:d(`error`),text:q?.value?.toString()??K.value?.error?.message}))}),c(()=>K.value?.accommodation?.paymentUrl,e=>{e&&(K?.value?.accommodation?.paymentUrlOpened||K?.value?.accommodation?.paymentType!==`payment-online-card`||K?.value?.accommodation?.paid||setTimeout(()=>{X.value=!0,window.location.replace(R(e,z.url))},750))},{immediate:!0}),c(()=>K.value?.vouchers?.paymentUrl,e=>{e&&(K?.value?.vouchers?.paymentUrlOpened||K?.value?.accommodation?.paymentType===`payment-online-card`&&!K?.value?.accommodation?.paymentUrlOpened||K?.value?.vouchers?.paymentType!==`payment-online-card`||K?.value?.vouchers?.paid||setTimeout(()=>{X.value=!0,window.location.replace(R(e,z.url))},750))},{immediate:!0}),c(()=>K.value?.wellness?.paymentUrl,e=>{e&&(K?.value?.wellness?.paymentUrlOpened||K?.value?.accommodation?.paymentType===`payment-online-card`&&!K?.value?.accommodation?.paymentUrlOpened||K?.value?.vouchers?.paymentType===`payment-online-card`&&!K?.value?.vouchers?.paymentUrlOpened||K?.value?.wellness?.paymentType!==`payment-online-card`||K?.value?.wellness?.paid||setTimeout(()=>{X.value=!0,window.location.replace(R(e,z.url))},750))},{immediate:!0}),c(K,e=>{if(!(!e&&K?.value?.error)&&Z){Z=!1;let e=K?.value?.accommodation?.rooms?.map(e=>({item_id:e.roomId,item_name:e.roomName,item_variant:e.packageName||e.rateName,item_category:`Reservation`,item_brand:Y.value?.chainName,affiliation:Y.value?.name,currency:K?.value?.accommodation?.currency,price:Math.round(((e.prices?.finalPrice??NaN)/(K?.value?.accommodation?.totalNights??NaN)+2**-52)*100)/100,quantity:K?.value?.accommodation?.totalNights}))??[],t=K?.value?.vouchers?.items?.map(e=>({item_id:e.voucherId??e.productId,item_name:e.name,item_variant:e.voucherFormat,item_category:e.voucherId?`Voucher`:`Product`,item_brand:Y.value?.chainName,affiliation:Y.value?.name,currency:K?.value?.vouchers?.currency,price:e.price,quantity:1}))??[],n=K?.value?.wellness?.items?.map(e=>({item_id:e.wellnessId,item_name:e.wellnessName,item_category:`Wellness`,item_brand:Y.value?.chainName,affiliation:Y.value?.name,currency:K?.value?.wellness?.currency,price:e.price,quantity:1}))??[],r=(e=>K?.value?.accommodation?.number&&(!K?.value.vouchers||!K?.value.wellness)?e:`${e}_ORDER`)(K?.value?.accommodation?.number??K?.value?.id),i=[...e,...t,...n],a={transaction_id:r,value:K?.value?.finalPrice,currency:K?.value?.currency,check_in:K?.value?.accommodation?.checkInDate,check_out:K?.value?.accommodation?.checkOutDate,email:K?.value?.guest?.email,coupon:K?.value?.promoCode,items:i};if(ae(`Purchase`,{props:{hotelId:Y?.value?.id,...a}}),(G.value?.tracking?.googleGa4||G.value?.tracking?.googleGtm)&&k(`event`,`purchase`,a),G.value?.tracking?.googleAdsId&&G.value?.tracking?.googleAdsLabel&&(k(`set`,`user_data`,{email:K?.value?.guest?.email,phone_number:K?.value?.guest?.tel,address:{first_name:K?.value?.guest?.firstName,last_name:K?.value?.guest?.lastName,city:K?.value?.guest?.city,postal_code:K?.value?.guest?.postalCode,country:K?.value?.guest?.country,street:K?.value?.guest?.street}}),k(`event`,`conversion`,{send_to:`${G.value?.tracking?.googleAdsId}/${G.value?.tracking?.googleAdsLabel}`,value:K?.value?.finalPrice,currency:K?.value?.currency,transaction_id:r})),G.value?.tracking?.thnHotelId&&K?.value?.accommodation&&k(`event`,`thnBookingConfirmation`,{thn:{languageCode:K?.value?.accommodation?.lang,currencyCode:K?.value?.accommodation?.currency,hotelId:Y?.value?.id,hotelName:Y?.value?.name,booking:{id:K?.value?.accommodation?.number,checkIn:K?.value?.accommodation?.checkInDate,checkOut:K?.value?.accommodation?.checkOutDate,totalCost:K?.value?.accommodation?.finalPriceSecondary,promoCode:K?.value?.accommodation?.promoCode}}}),G.value?.tracking?.sklik&&(A.updateIdentities({eid:K.value?.guest?.email,aid:{a1:K?.value?.guest?.country,a2:K?.value?.guest?.city,a3:K?.value?.guest?.street,a5:K?.value?.guest?.postalCode},tid:K?.value?.guest?.tel}),A.conversionHit({id:G.value?.tracking?.sklik,orderId:r,value:K?.value?.finalPrice,consent:z.consent})),G.value?.tracking?.facebookPixel&&O(`track`,`Purchase`,{currency:K?.value?.currency,value:K?.value?.finalPrice},{eventID:K.value?.uuid}),G.value?.tracking?.xPixel&&ue(`track`,`Purchase`,{value:K?.value?.finalPrice,currency:K?.value?.currency,num_items:i.length}),G.value?.tracking?.microsoftAds&&T(`event`,`PRODUCT_PURCHASE`,{ecomm_prodid:r,ecomm_pagetype:`PURCHASE`,revenue_value:K?.value?.finalPrice,currency:K?.value?.currency}),G.value?.tracking?.sojernConversion&&K?.value?.accommodation&&w({id:G.value?.tracking?.sojernConversion,checkIn:K?.value?.accommodation?.checkInDate,checkOut:K?.value?.accommodation?.checkOutDate,guests:K?.value?.accommodation?.totalGuests,hotelCity:Y?.value?.city,hotelName:Y?.value?.name,hotelId:Y?.value?.id,hotelCountry:Y?.value?.country,price:K?.value?.accommodation?.finalPriceSecondary,currency:K?.value?.accommodation?.currencySecondary,reservationNumber:K?.value?.accommodation?.number,rooms:K?.value?.accommodation?.totalRooms}),G.value?.tracking?.leadhub&&K?.value?.accommodation){let e=[...(K?.value?.accommodation?.rooms??[]).map(e=>({product_id:e.roomId,quantity:K?.value?.accommodation?.totalNights}))];oe(`Purchase`,{value:K?.value?.accommodation?.finalPriceSecondary,currency:K?.value?.accommodation?.currencySecondary,email:K?.value?.guest?.email,first_name:K?.value?.guest?.firstName,last_name:K?.value?.guest?.lastName,phone:K?.value?.guest?.tel,order_id:r,products:e})}G.value?.tracking?.quicktextLicense&&K?.value?.accommodation&&ie({event:`confirm`,partner:`Bookolo`,price:K?.value?.accommodation?.finalPriceSecondary,currency:K?.value?.accommodation?.currencySecondary,checkIn:K?.value?.accommodation?.checkInDate,checkOut:K?.value?.accommodation?.checkOutDate,adults:K?.value?.accommodation?.totalAdults,children:K?.value?.accommodation?.totalChildren,rooms:K?.value?.accommodation?.totalRooms}),G.value?.tracking?.dialogShiftClientId&&K?.value?.accommodation&&D({clientId:G.value?.tracking?.dialogShiftClientId,bookingAmount:K?.value?.accommodation?.finalPriceSecondary,roomCount:K?.value?.accommodation?.totalRooms,nightCount:K?.value?.accommodation?.totalNights,currencyCode:K?.value?.accommodation?.currencySecondary}),G.value?.tracking?.dedgeTrackingHotelId&&K?.value?.accommodation&&ce({hotelId:Y?.value?.id,currency:K?.value?.accommodation?.currencySecondary,amount:K?.value?.accommodation?.finalPriceSecondary,amountWithoutTax:K?.value?.accommodation?.finalPriceSecondary,arrival:K?.value?.accommodation?.checkInDate,departure:K?.value?.accommodation?.checkOutDate,bookingReference:K?.value?.accommodation?.number})}},{immediate:!0}),(n,i)=>{let o=pe,c=re,u=F,p=N,g=P,S=ge,C=ht,w=De,T=L,E=he,D=ne,O=te;return r(),m(y,null,[x(E,{class:`grid lg:grid-cols-[1fr_28.25rem] gap-3 mg:gap-6`},{default:t(()=>[[l(K)?.accommodation,l(K)?.vouchers,l(K)?.wellness].filter(Boolean).length>=2?(r(),m(`div`,gt,[v(`div`,_t,[x(o,{class:`accent-success before:bg-accent/15 mb-3`,size:`md`,icon:`#icon-check`}),v(`h1`,vt,f(l(K)?.accommodation?l(d)(`reservationIsConfirmed`):l(d)(`orderIsCompleted`)),1),x(c,{size:`md`,to:`/`,class:`mt-5 md:mt-10`},{default:t(()=>[b(f(l(d)(`backToMainPage`)),1)]),_:1})]),v(`ul`,yt,[l(K)?.accommodation&&(l(K)?.accommodation?.paymentType===`payment-online-card`||l(K)?.accommodation?.paymentType===`bank-transfer`||l(K)?.accommodation?.paid)?(r(),m(`li`,bt,[v(`div`,xt,f(l(d)(`accommodationAndPackages`)),1),v(`div`,St,[l(K)?.accommodation?.paymentType===`payment-online-card`&&!l(K)?.accommodation?.paid?(r(),m(y,{key:0},[x(o,{class:`accent-error before:bg-accent/20`,size:`xs`,icon:`#icon-x-mark-micro`}),b(` `+f(l(d)(`paymentWithCardFailed`)),1)],64)):l(K)?.accommodation?.paymentType===`bank-transfer`&&!l(K)?.accommodation?.paid?(r(),m(y,{key:1},[b(f(l(d)(`waitingForBankTransferPayment`)),1)],64)):l(K)?.accommodation?.paid?(r(),m(y,{key:2},[x(o,{class:`accent-success before:bg-accent/20`,size:`xs`,icon:`#icon-check-micro`}),b(` `+f(l(d)(`paymentSuccessful`)),1)],64)):h(``,!0)])])):h(``,!0),l(K)?.wellness&&(l(K)?.wellness?.paymentType===`payment-online-card`||l(K)?.wellness?.paymentType===`bank-transfer`||l(K)?.wellness?.paid)?(r(),m(`li`,Ct,[v(`div`,wt,f(l(d)(`wellness`)),1),v(`div`,Tt,[l(K)?.wellness?.paymentType===`payment-online-card`&&!l(K)?.wellness?.paid?(r(),m(y,{key:0},[x(o,{class:`accent-error before:bg-accent/20`,size:`xs`,icon:`#icon-x-mark-micro`}),b(` `+f(l(d)(`paymentWithCardFailed`)),1)],64)):l(K)?.wellness?.paymentType===`bank-transfer`&&!l(K)?.wellness?.paid?(r(),m(y,{key:1},[b(f(l(d)(`waitingForBankTransferPayment`)),1)],64)):l(K)?.wellness?.paid?(r(),m(y,{key:2},[x(o,{class:`accent-success before:bg-accent/20`,size:`xs`,icon:`#icon-check-micro`}),b(` `+f(l(d)(`paymentSuccessful`)),1)],64)):h(``,!0)])])):h(``,!0),l(K)?.vouchers&&(l(K)?.vouchers?.paymentType===`payment-online-card`||l(K)?.vouchers?.paymentType===`bank-transfer`||l(K)?.vouchers?.paid)?(r(),m(`li`,Et,[v(`div`,$,f(l(d)(`vouchers`)),1),v(`div`,Dt,[l(K)?.vouchers?.paymentType===`payment-online-card`&&!l(K)?.vouchers?.paid?(r(),m(y,{key:0},[x(o,{class:`accent-error before:bg-accent/20`,size:`xs`,icon:`#icon-x-mark-micro`}),b(` `+f(l(d)(`paymentWithCardFailed`)),1)],64)):l(K)?.vouchers?.paymentType===`bank-transfer`&&!l(K)?.vouchers?.paid?(r(),m(y,{key:1},[b(f(l(d)(`waitingForBankTransferPayment`)),1)],64)):l(K)?.vouchers?.paid?(r(),m(y,{key:2},[x(o,{class:`accent-success before:bg-accent/20`,size:`xs`,icon:`#icon-check-micro`}),b(` `+f(l(d)(`paymentSuccessful`)),1)],64)):h(``,!0)])])):h(``,!0)])])):(r(),m(`div`,Ot,[x(o,{class:`accent-success before:bg-accent/15`,icon:`#icon-check`}),v(`h1`,kt,f(l(K)?.accommodation?l(d)(`reservationIsConfirmed`):l(d)(`orderIsCompleted`)),1),x(c,{size:`md`,to:`/`,class:`mt-7`},{default:t(()=>[b(f(l(d)(`backToMainPage`)),1)]),_:1})])),v(`div`,{class:ee([`flex flex-col gap-6`,{"col-span-full":!l(G)?.showBookoloAppDownload}])},[!l(J)&&l(K)?.accommodation?(r(),m(`div`,At,[l(K)?.accommodation?.paymentType===`payment-online-card`&&!l(K)?.accommodation?.paid&&l(K)?.accommodation?.paymentUrlOpened?(r(),_(u,{key:0,title:l(d)(`paymentWithCardFailed`),status:`error`,icon:`#icon-x-mark-micro`},{default:t(()=>[x(c,{as:`a`,size:`md`,class:`ml-auto max-md:w-full`,href:l(R)(l(K)?.accommodation?.paymentUrl,l(z).url)},{default:t(()=>[b(f(l(d)(`payAccommodation`)),1)]),_:1},8,[`href`])]),_:1},8,[`title`])):h(``,!0),l(K)?.accommodation?.paymentType===`bank-transfer`&&!l(K)?.accommodation?.paid?(r(),_(u,{key:1,title:l(d)(`waitingForBankTransferPayment`),status:`warning`,icon:`#icon-question-mark`},null,8,[`title`])):h(``,!0),l(K)?.accommodation?.paid?(r(),_(u,{key:2,title:l(d)(`paymentSuccessful`),status:`success`,icon:`#icon-check-micro`},null,8,[`title`])):h(``,!0),!l(J)&&l(K)?.accommodation?.bank?(r(),_(p,a(e({key:3},{...l(K)?.accommodation?.bank})),null,16)):h(``,!0),x(g,a(s({...l(K)})),null,16),l(G)?.showBookoloAppReservationScan?(r(),_(S,{key:4,qrCode:l(K)?.accommodation?.qrCode,code:l(K)?.accommodation?.code},null,8,[`qrCode`,`code`])):h(``,!0)])):l(J)?(r(),m(`div`,jt)):h(``,!0),!l(J)&&l(K)?.wellness?(r(),m(`div`,Mt,[l(K)?.wellness?.paymentType===`payment-online-card`&&!l(K)?.wellness?.paid&&l(K)?.wellness?.paymentUrlOpened?(r(),_(u,{key:0,title:l(d)(`paymentWithCardFailed`),status:`error`,icon:`#icon-x-mark-micro`},{default:t(()=>[x(c,{as:`a`,size:`md`,class:`ml-auto max-md:w-full`,href:l(R)(l(K)?.wellness?.paymentUrl,l(z).url)},{default:t(()=>[b(f(l(d)(`payWellness`)),1)]),_:1},8,[`href`])]),_:1},8,[`title`])):h(``,!0),l(K)?.wellness?.paymentType===`bank-transfer`&&!l(K)?.wellness?.paid?(r(),_(u,{key:1,title:l(d)(`waitingForBankTransferPayment`),status:`warning`,icon:`#icon-question-mark`},null,8,[`title`])):h(``,!0),l(K)?.wellness?.paid?(r(),_(u,{key:2,title:l(d)(`paymentSuccessful`),status:`success`,icon:`#icon-check-micro`},null,8,[`title`])):h(``,!0),!l(J)&&l(K)?.wellness?.bank?(r(),_(p,a(e({key:3},{...l(K)?.wellness?.bank})),null,16)):h(``,!0),x(C,a(s({...l(K)})),null,16)])):h(``,!0),!l(J)&&l(K)?.vouchers?(r(),m(`div`,Nt,[l(K)?.vouchers?.paymentType===`payment-online-card`&&!l(K)?.vouchers?.paid&&l(K)?.vouchers?.paymentUrlOpened?(r(),_(u,{key:0,title:l(d)(`paymentWithCardFailed`),status:`error`,icon:`#icon-x-mark-micro`},{default:t(()=>[x(c,{as:`a`,size:`md`,class:`ml-auto max-md:w-full`,href:l(R)(l(K)?.vouchers?.paymentUrl,l(z).url)},{default:t(()=>[b(f(l(K)?.vouchers?.items?.length>1?l(d)(`payVouchers`):l(d)(`payVoucher`)),1)]),_:1},8,[`href`])]),_:1},8,[`title`])):h(``,!0),l(K)?.vouchers?.paymentType===`bank-transfer`&&!l(K)?.vouchers?.paid?(r(),_(u,{key:1,title:l(d)(`waitingForBankTransferPayment`),status:`warning`,icon:`#icon-question-mark`},null,8,[`title`])):h(``,!0),l(K)?.vouchers?.paid?(r(),_(u,{key:2,title:l(d)(`paymentSuccessful`),status:`success`,icon:`#icon-check-micro`},null,8,[`title`])):h(``,!0),!l(J)&&l(K)?.vouchers?.bank?(r(),_(p,a(e({key:3},{...l(K)?.vouchers?.bank})),null,16)):h(``,!0),x(w,a(s({...l(K)})),null,16)])):h(``,!0)],2),l(G)?.showBookoloAppDownload?(r(),_(T,{key:2,class:`transition-all md:sticky md:top-[calc(var(--x-main-sticky-top)+1rem)] self-start`})):h(``,!0)]),_:1}),x(O,{open:l(K)?.accommodation?.paymentType===`payment-online-card`&&!l(K)?.accommodation?.paid&&!l(K)?.accommodation?.paymentUrlOpened||l(K)?.vouchers?.paymentType===`payment-online-card`&&!l(K)?.vouchers?.paid&&!l(K)?.vouchers?.paymentUrlOpened||l(K)?.wellness?.paymentType===`payment-online-card`&&!l(K)?.wellness?.paid&&!l(K)?.wellness?.paymentUrlOpened,closable:!1},{default:t(()=>[x(D,{size:`xs`,class:`flex flex-col text-center items-center py-8 px-16`},{default:t(()=>[x(o,{class:`before:bg-accent/15 mb-4`,icon:`#icon-credit-card-solid`}),v(`div`,Pt,f(l(d)(`momentOfPatience`)),1),v(`div`,Ft,f(l(d)(`paymentGatewayRedirection`)),1),x(c,{as:`a`,class:`mt-6`,size:`md`,href:l(R)(Q.value,l(z).url),disabled:X.value},{default:t(()=>[b(f(l(d)(`redirectNow`)),1)]),_:1},8,[`href`,`disabled`])]),_:1})]),_:1},8,[`open`])],64)}}});export{It as default};
@@ -1 +1 @@
1
- import{An as e,Hn as t,Mn as n,Rn as r,Vn as i,Xn as a,bn as o,jt as s,kn as c,ln as l,mn as u,pn as d,yn as f}from"./vendor.BGu2qkTq.js";import{W as p}from"./params.DR2mabOE.js";import"./localeRules.DuB-8maD.js";import"./DialogContent.tdqsNrXE.js";import{n as m}from"./Field.Bw7PCeQ1.js";import{c as h,o as g}from"./client.DrMpyevc.js";import"./staleTimes.BuCDd__I.js";import"./countries.CE6bN6gS.js";import"./config.tpbdABlZ.js";import"./ControlTelCountryCode.CcdH-ptn.js";import{t as _}from"./toaster.DOHhVfsI.js";import"./calendarFlexibleDialog.Lm32GQ8D.js";import"./formatPrice.BEcRqhQn.js";import{a as v}from"./reservation.Co3PKchx.js";import"./dateFormatter.dDaZZox0.js";import"./hotel.BmQNwmkI.js";import{t as y}from"./Main.B6URJ_XN.js";import{t as b}from"./statusDialog.CWPzBABk.js";import"./fancybox.CJsv9BnL.js";import"./PackageDetailDialogContent.BOOjo_oC.js";import{t as x}from"./routeParams.6hpnfcMT.js";import"./RoomDetailDialogContent.Br2LC7Su.js";import"./order.LEc70bzD.js";import{t as S}from"./AsideOrderSummary.D8e93W2R.js";import{i as C,t as w}from"./reservation.BzOjnZgI.js";import{t as T}from"./OrderAccommodation.BUC3iHY0.js";import"./RoomDetailDialog.CwCxDUXv.js";import{t as E}from"./ReservationEditInfo.CIGUHBBu.js";var D={class:`grid md:grid-cols-[1fr_var(--x-main-aside-width)] gap-3 md:gap-6`},O={class:`flex flex-col gap-3`,"data-slot":`content`},k={class:`flex flex-col gap-3 transition-all sticky top-[calc(var(--x-main-sticky-top)+1rem)] self-start`,"data-slot":`aside`},A=o({__name:`[uuid]`,setup(o){let{t:A}=s(),j=p(),M=h(),N=g(),P=_(),F=b(),I=r(),{data:L,error:R,refetch:z}=C({uuid:x().value.uuid}),{data:B,refetch:V}=w(),{data:H,error:U,mutate:W,isLoading:G}=v(),K=()=>{W(M.order)};return i(H,e=>{e?.response?.status===200&&(N.$reset(),M.$reset(),j.push(`/`),P.add({class:`accent-success`,title:A(`success`),text:A(`reservationSuccessfullyChanged`)}))}),i([H,U],()=>{!U.value&&!H?.value?.error||(F.heading=H.value?.error?.messageTitle??A(`error`),F.text=U?.value?.toString()??H.value?.error?.message,F.show())}),i(L,async e=>{if(e){if(!e?.accommodation?.isEditable){F.heading=A(`notEditableTitle`),F.text=e?.accommodation?.notEditableText,F.show(),j.push(`/`);return}M.order.accommodation.uuid=e?.accommodation?.uuid,M.order.accommodation.checkInDate=e?.accommodation?.checkInDate,M.order.accommodation.checkOutDate=e?.accommodation?.checkOutDate,e?.guest&&(M.order.guest=e?.guest),e?.accommodation?.rooms?.forEach((e,t)=>{M.order.accommodation.items[t]={uuid:e?.uuid,guestName:e?.guestName,bedType:e?.bedType,roomId:e?.roomId,rateId:e?.rateId,services:e?.services,packageId:e?.packageId,children:e?.children,adults:e?.adults,mealPlan:e?.mealPlan},M.accommodation[t]={entity:null}}),V()}}),i(B,e=>{e?.forEach((e,t)=>{M.accommodation?.[t]&&(M.accommodation[t].minAdults=L.value?.accommodation?.rooms?.[t]?.minAdults,M.accommodation[t].maxAdults=L.value?.accommodation?.rooms?.[t]?.maxAdults)})}),i([()=>[M.order.accommodation.checkInDate,M.order.accommodation.checkOutDate],M.order.accommodation.items],(e,t)=>{let[n,r]=e?.[0],[i,a]=t?.[0],o=e?.[1];o.some((e,t)=>{let n=M.accommodation?.[t]?.minAdults,r=M.accommodation?.[t]?.maxAdults;return typeof e.adults!=`number`||typeof n!=`number`||typeof r!=`number`?!1:e.adults<n||e.adults>r})||o.find(e=>e.adults===0)||!i&&!a||n===i&&r===a&&t?.[1]===e?.[1]||V()}),i([L,R],()=>{!R.value&&!L?.value?.error||(F.heading=L.value?.error?.messageTitle??A(`error`),F.text=R?.value?.toString()??L.value?.error?.message,F.show(),j.push(`/`))}),c(()=>{L.value&&z()}),e(()=>{N.$reset(),M.$reset()}),(e,r)=>{let i=E,o=T,s=S,c=m,p=y;return n(),u(p,{class:``},{default:t(()=>[f(c,{id:a(I),onSubmit:l(K,[`prevent`])},{default:t(()=>[f(i,{class:`mb-3 md:mb-6`,accommodation:a(L)?.accommodation,edit:!1},null,8,[`accommodation`]),d(`div`,D,[d(`div`,O,[f(o,{upgrade:!0})]),d(`aside`,k,[f(s,{form:a(I),upgrade:!0,isLoading:a(G)},null,8,[`form`,`isLoading`])])])]),_:1},8,[`id`])]),_:1})}}});export{A as default};
1
+ import{An as e,Hn as t,Mn as n,Rn as r,Vn as i,Xn as a,bn as o,jt as s,kn as c,ln as l,mn as u,pn as d,yn as f}from"./vendor._wA0akn2.js";import{W as p}from"./params.IVBLxJy4.js";import"./localeRules.Bcy3JgQD.js";import"./DialogContent.BGzVxgDS.js";import{n as m}from"./Field.BDHsJbAD.js";import{c as h,o as g}from"./client.DrlPwpqz.js";import"./staleTimes.DqeAd6cB.js";import"./countries.DXV0Z9gI.js";import"./config.DhUrL--N.js";import"./ControlTelCountryCode.CuyNH30D.js";import{t as _}from"./toaster.FT2nZJ8S.js";import"./calendarFlexibleDialog.iE6_fSo6.js";import"./formatPrice.DafIJMfZ.js";import{a as v}from"./reservation.CZFk7XU8.js";import"./dateFormatter.Bg9EaFxG.js";import"./hotel.BG-sRF7k.js";import{t as y}from"./Main.CAF1TXNp.js";import{t as b}from"./statusDialog.BVfGKxZd.js";import"./fancybox.MtRnSz01.js";import"./PackageDetailDialogContent.TEs_OhoU.js";import{t as x}from"./routeParams.CtmTLgcY.js";import"./RoomDetailDialogContent.DYtmm89J.js";import"./order.L3X_GhfV.js";import{t as S}from"./AsideOrderSummary.Brt7K9DI.js";import{i as C,t as w}from"./reservation.BHxfogie.js";import{t as T}from"./OrderAccommodation.sqWxoXog.js";import"./RoomDetailDialog.BPXu75lP.js";import{t as E}from"./ReservationEditInfo.DLAQf0qa.js";var D={class:`grid md:grid-cols-[1fr_var(--x-main-aside-width)] gap-3 md:gap-6`},O={class:`flex flex-col gap-3`,"data-slot":`content`},k={class:`flex flex-col gap-3 transition-all sticky top-[calc(var(--x-main-sticky-top)+1rem)] self-start`,"data-slot":`aside`},A=o({__name:`[uuid]`,setup(o){let{t:A}=s(),j=p(),M=h(),N=g(),P=_(),F=b(),I=r(),{data:L,error:R,refetch:z}=C({uuid:x().value.uuid}),{data:B,refetch:V}=w(),{data:H,error:U,mutate:W,isLoading:G}=v(),K=()=>{W(M.order)};return i(H,e=>{e?.response?.status===200&&(N.$reset(),M.$reset(),j.push(`/`),P.add({class:`accent-success`,title:A(`success`),text:A(`reservationSuccessfullyChanged`)}))}),i([H,U],()=>{!U.value&&!H?.value?.error||(F.heading=H.value?.error?.messageTitle??A(`error`),F.text=U?.value?.toString()??H.value?.error?.message,F.show())}),i(L,async e=>{if(e){if(!e?.accommodation?.isEditable){F.heading=A(`notEditableTitle`),F.text=e?.accommodation?.notEditableText,F.show(),j.push(`/`);return}M.order.accommodation.uuid=e?.accommodation?.uuid,M.order.accommodation.checkInDate=e?.accommodation?.checkInDate,M.order.accommodation.checkOutDate=e?.accommodation?.checkOutDate,e?.guest&&(M.order.guest=e?.guest),e?.accommodation?.rooms?.forEach((e,t)=>{M.order.accommodation.items[t]={uuid:e?.uuid,guestName:e?.guestName,bedType:e?.bedType,roomId:e?.roomId,rateId:e?.rateId,services:e?.services,packageId:e?.packageId,children:e?.children,adults:e?.adults,mealPlan:e?.mealPlan},M.accommodation[t]={entity:null}}),V()}}),i(B,e=>{e?.forEach((e,t)=>{M.accommodation?.[t]&&(M.accommodation[t].minAdults=L.value?.accommodation?.rooms?.[t]?.minAdults,M.accommodation[t].maxAdults=L.value?.accommodation?.rooms?.[t]?.maxAdults)})}),i([()=>[M.order.accommodation.checkInDate,M.order.accommodation.checkOutDate],M.order.accommodation.items],(e,t)=>{let[n,r]=e?.[0],[i,a]=t?.[0],o=e?.[1];o.some((e,t)=>{let n=M.accommodation?.[t]?.minAdults,r=M.accommodation?.[t]?.maxAdults;return typeof e.adults!=`number`||typeof n!=`number`||typeof r!=`number`?!1:e.adults<n||e.adults>r})||o.find(e=>e.adults===0)||!i&&!a||n===i&&r===a&&t?.[1]===e?.[1]||V()}),i([L,R],()=>{!R.value&&!L?.value?.error||(F.heading=L.value?.error?.messageTitle??A(`error`),F.text=R?.value?.toString()??L.value?.error?.message,F.show(),j.push(`/`))}),c(()=>{L.value&&z()}),e(()=>{N.$reset(),M.$reset()}),(e,r)=>{let i=E,o=T,s=S,c=m,p=y;return n(),u(p,{class:``},{default:t(()=>[f(c,{id:a(I),onSubmit:l(K,[`prevent`])},{default:t(()=>[f(i,{class:`mb-3 md:mb-6`,accommodation:a(L)?.accommodation,edit:!1},null,8,[`accommodation`]),d(`div`,D,[d(`div`,O,[f(o,{upgrade:!0})]),d(`aside`,k,[f(s,{form:a(I),upgrade:!0,isLoading:a(G)},null,8,[`form`,`isLoading`])])])]),_:1},8,[`id`])]),_:1})}}});export{A as default};