@bookolosystem/engine 4.4.3 → 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 (149) hide show
  1. package/assets/{f785e42/AsideFeatures.COiwmqdD.js → 9abc863/AsideFeatures.BQVvz4cG.js} +1 -1
  2. package/assets/{f785e42/AsideOrderSummary.D8e93W2R.js → 9abc863/AsideOrderSummary.WKel7SKl.js} +1 -1
  3. package/assets/{f785e42/AsideSummary.BgeuEsGw.js → 9abc863/AsideSummary.BCq7srtx.js} +1 -1
  4. package/assets/{f785e42/AuthInfo.jJe7rHuW.js → 9abc863/AuthInfo.BpaWz9kZ.js} +1 -1
  5. package/assets/{f785e42/AuthRegistrationForm.D9yqI16w.js → 9abc863/AuthRegistrationForm.BQEOkh8P.js} +1 -1
  6. package/assets/{f785e42/Button.DSwXM1vM.js → 9abc863/Button.DENQlfoV.js} +1 -1
  7. package/assets/9abc863/ButtonBordered.Buog5XUd.js +1 -0
  8. package/assets/9abc863/ButtonBorderedThin.DQtk8ygl.js +1 -0
  9. package/assets/9abc863/ButtonGhosted.DtSQuUqd.js +1 -0
  10. package/assets/9abc863/ButtonMuted.ClTzhmGk.js +1 -0
  11. package/assets/{f785e42/CalendarFlexible.CEVBs1eN.js → 9abc863/CalendarFlexible.BFUsglcP.js} +1 -1
  12. package/assets/{f785e42/Check.1kttjrU5.js → 9abc863/Check.CGkdXv8U.js} +1 -1
  13. package/assets/{f785e42/CheckinApp.BEzPf4Yi.js → 9abc863/CheckinApp.XKpaXHHH.js} +1 -1
  14. package/assets/{f785e42/Circle.ByhP73-w.js → 9abc863/Circle.BqRlZ-Ni.js} +1 -1
  15. package/assets/{f785e42/Control.l_F0QhcO.js → 9abc863/Control.DQeuvn0T.js} +1 -1
  16. package/assets/{f785e42/ControlTelCountryCode.CcdH-ptn.js → 9abc863/ControlTelCountryCode.DCl_oZNm.js} +1 -1
  17. package/assets/{f785e42/DatePicker.Cc0EtZjK.js → 9abc863/DatePicker.CNLqAKwS.js} +1 -1
  18. package/assets/{f785e42/Details.y2CqCSTf.js → 9abc863/Details.CB4_wNS3.js} +1 -1
  19. package/assets/{f785e42/DialogContent.tdqsNrXE.js → 9abc863/DialogContent.oj4AjH0A.js} +1 -1
  20. package/assets/{f785e42/Drawer.BtODZWBW.js → 9abc863/Drawer.DGoXFBU0.js} +1 -1
  21. package/assets/{f785e42/Field.Bw7PCeQ1.js → 9abc863/Field.BhjqVj0S.js} +1 -1
  22. package/assets/{f785e42/Footer.C6I-AoKD.js → 9abc863/Footer.C7h8sj-G.js} +1 -1
  23. package/assets/{f785e42/FooterLogo.CLtj0dj2.js → 9abc863/FooterLogo.DrkuhAUv.js} +1 -1
  24. package/assets/9abc863/Header.DEPnf9q8.js +1 -0
  25. package/assets/{f785e42/HeaderLanguagePopover.nkhRe96-.js → 9abc863/HeaderLanguagePopover.DegpljKt.js} +1 -1
  26. package/assets/{f785e42/Image.D7YhPEgz.js → 9abc863/Image.3wpjIV-N.js} +1 -1
  27. package/assets/{f785e42/InputMask.Bjs0czKj.js → 9abc863/InputMask.B7-_JM_a.js} +1 -1
  28. package/assets/9abc863/Main.CK41faK0.js +1 -0
  29. package/assets/{f785e42/OrderAccommodation.BUC3iHY0.js → 9abc863/OrderAccommodation.C9VudX_y.js} +1 -1
  30. package/assets/{f785e42/OrderConfirmedStatus.DymNVdn6.js → 9abc863/OrderConfirmedStatus.DG6GhTD-.js} +1 -1
  31. package/assets/{f785e42/OrderHeader.B-gKOwxl.js → 9abc863/OrderHeader.DkonsBL9.js} +1 -1
  32. package/assets/{f785e42/PackageDetailDialogContent.BOOjo_oC.js → 9abc863/PackageDetailDialogContent.C7QuaUVb.js} +1 -1
  33. package/assets/{f785e42/Popover.Cd-ly7x7.js → 9abc863/Popover.-1SUGtsh.js} +1 -1
  34. package/assets/{f785e42/ReservationEditInfo.CIGUHBBu.js → 9abc863/ReservationEditInfo.CFwOVwT6.js} +1 -1
  35. package/assets/{f785e42/RoomDetailDialog.CwCxDUXv.js → 9abc863/RoomDetailDialog.kQfSl3kd.js} +1 -1
  36. package/assets/{f785e42/RoomDetailDialogContent.Br2LC7Su.js → 9abc863/RoomDetailDialogContent.D7S_QzBs.js} +1 -1
  37. package/assets/{f785e42/RoomSelect.D3n_KWfl.js → 9abc863/RoomSelect.Cq_p2m-f.js} +1 -1
  38. package/assets/{f785e42/TextContent.D8bbLDgx.js → 9abc863/TextContent.CXeKtNsr.js} +1 -1
  39. package/assets/{f785e42/TooltipCursor.ifkFvkBI.js → 9abc863/TooltipCursor.DlKId_P9.js} +1 -1
  40. package/assets/{f785e42/WellnessDetailDialog.sOgi7LNq.js → 9abc863/WellnessDetailDialog.BwawOmjk.js} +1 -1
  41. package/assets/{f785e42/_...path_.B1vQ0yTt.js → 9abc863/_...path_.dEILBLU0.js} +1 -1
  42. package/assets/{f785e42/_code_.iRJURqUl.js → 9abc863/_code_.C_7B6t1P.js} +1 -1
  43. package/assets/{f785e42/_id_.BTfZK9z2.js → 9abc863/_id_.DCUz1r6c.js} +1 -1
  44. package/assets/{f785e42/_id_.CoI4Q5Am.js → 9abc863/_id_.dW09gnWq.js} +1 -1
  45. package/assets/{f785e42/_uuid_._2C6HTjE.js → 9abc863/_uuid_.6n3lifxQ.js} +1 -1
  46. package/assets/{f785e42/_uuid_.DuAZY6Zm.js → 9abc863/_uuid_.BJQtn71-.js} +1 -1
  47. package/assets/{f785e42/_uuid_.KBA_xyl7.js → 9abc863/_uuid_.BLIrenyi.js} +1 -1
  48. package/assets/{f785e42/_uuid_.C3heoeT9.js → 9abc863/_uuid_.CYTCmn3C.js} +1 -1
  49. package/assets/{f785e42/_uuid_.CJYs3QhI.js → 9abc863/_uuid_.Ce6nw3Xr.js} +1 -1
  50. package/assets/{f785e42/_uuid_.Ccr7O8pm.js → 9abc863/_uuid_.D1OQ86_l.js} +1 -1
  51. package/assets/{f785e42/_uuid_.DmWjDAcd.js → 9abc863/_uuid_.tIDrKfzc.js} +1 -1
  52. package/assets/9abc863/accommodation-terms.CnlV_Dzs.js +1 -0
  53. package/assets/{f785e42/account.BsTL4CgW.js → 9abc863/account.7ZB6Hvpd.js} +1 -1
  54. package/assets/{f785e42/account.BwfUSF-Q.js → 9abc863/account.BDzjPnm1.js} +1 -1
  55. package/assets/{f785e42/app.ce.COA0DnRK.js → 9abc863/app.ce.G58KVpNh.js} +2 -2
  56. package/assets/{f785e42/calendar.CvOiTvHK.js → 9abc863/calendar.CTxPficj.js} +1 -1
  57. package/assets/{f785e42/calendar.Cij86reI.js → 9abc863/calendar.DrZjOG3Q.js} +1 -1
  58. package/assets/{f785e42/calendarFlexibleDialog.Lm32GQ8D.js → 9abc863/calendarFlexibleDialog.CiT3ybyU.js} +1 -1
  59. package/assets/{f785e42/chain.BeYCgXY7.js → 9abc863/chain.CE4fk6RC.js} +1 -1
  60. package/assets/9abc863/client.B35Zk1Vj.js +1 -0
  61. package/assets/9abc863/config.DN5PrzYj.js +1 -0
  62. package/assets/9abc863/countries.DHA-CuXb.js +1 -0
  63. package/assets/{f785e42/dateFormatter.dDaZZox0.js → 9abc863/dateFormatter.Cdnyqc1C.js} +1 -1
  64. package/assets/9abc863/details.BEoQsFfe.js +1 -0
  65. package/assets/{f785e42/dist.DK8rat2p.js → 9abc863/dist.BBvqMcN_.js} +1 -1
  66. package/assets/{f785e42/edit.CjQiqXKN.js → 9abc863/edit.C-Yrw0TG.js} +1 -1
  67. package/assets/{f785e42/fancybox.CJsv9BnL.js → 9abc863/fancybox.BbYneWyM.js} +1 -1
  68. package/assets/9abc863/faq.CwgUlk2b.js +1 -0
  69. package/assets/9abc863/formatPrice.BoNSJ3UV.js +1 -0
  70. package/assets/{f785e42/hotel.BmQNwmkI.js → 9abc863/hotel.CHXHOAo8.js} +1 -1
  71. package/assets/{f785e42/location.C9x6vzg-.js → 9abc863/location.BTumxy6W.js} +2 -2
  72. package/assets/{f785e42/login.BXgUxwJJ.js → 9abc863/login.C22c1Cam.js} +1 -1
  73. package/assets/{f785e42/marketing-terms.BvAQfWVF.js → 9abc863/marketing-terms.BNJlh6LS.js} +1 -1
  74. package/assets/{f785e42/nav.CGVHoM59.js → 9abc863/nav.aNfcLnKd.js} +1 -1
  75. package/assets/{f785e42/order.LEc70bzD.js → 9abc863/order.Bi7Btnb0.js} +1 -1
  76. package/assets/{f785e42/orders.CNYo8UXg.js → 9abc863/orders.C46CRk3R.js} +1 -1
  77. package/assets/{f785e42/packages.DoaTmGZq.js → 9abc863/packages.DsjMQe5W.js} +1 -1
  78. package/assets/{f785e42/packages.C83hDrok.js → 9abc863/packages.T-RS_YY1.js} +1 -1
  79. package/assets/9abc863/pages.BSv8hla_.js +1 -0
  80. package/assets/9abc863/pages.CIiNQ8uX.js +1 -0
  81. package/assets/{f785e42/params.DR2mabOE.js → 9abc863/params.BYxK9z6w.js} +1 -1
  82. package/assets/{f785e42/playground.8Tm_qVVL.js → 9abc863/playground.WhUjfMIP.js} +1 -1
  83. package/assets/{f785e42/points.eiYNquqf.js → 9abc863/points.CVjznhdz.js} +1 -1
  84. package/assets/9abc863/privacy-policy.CGT50KhE.js +1 -0
  85. package/assets/{f785e42/ratings.DoQpk5ST.js → 9abc863/ratings.BI2RiPA4.js} +1 -1
  86. package/assets/{f785e42/register.DmmCNM-C.js → 9abc863/register.hz6QMgCO.js} +1 -1
  87. package/assets/{f785e42/request.CQ1-ZILq.js → 9abc863/request.TS94V7b8.js} +1 -1
  88. package/assets/{f785e42/reservation.BzOjnZgI.js → 9abc863/reservation.C4YvgAfn.js} +1 -1
  89. package/assets/{f785e42/reservation.Co3PKchx.js → 9abc863/reservation.DewbR-PT.js} +1 -1
  90. package/assets/{f785e42/rewards.PwxwPzjy.js → 9abc863/rewards.DjhBa_UN.js} +1 -1
  91. package/assets/{f785e42/rooms.CgrX_Ptg.js → 9abc863/rooms.6URoZiB2.js} +1 -1
  92. package/assets/{f785e42/rooms.CzYCycWd.js → 9abc863/rooms.C22-gNSF.js} +1 -1
  93. package/assets/9abc863/routeParams.DU9zPEL5.js +1 -0
  94. package/assets/{f785e42/sentry.DCbmNEQc.js → 9abc863/sentry.BdrnpOuv.js} +1 -1
  95. package/assets/{f785e42/statusDialog.CWPzBABk.js → 9abc863/statusDialog.CHyOH2aw.js} +1 -1
  96. package/assets/{f785e42/summary.H2NC_tWl.js → 9abc863/summary.Cxx9UDVw.js} +1 -1
  97. package/assets/9abc863/terms.cTHjnWYb.js +1 -0
  98. package/assets/{f785e42/toaster.DOHhVfsI.js → 9abc863/toaster.Duospl3o.js} +1 -1
  99. package/assets/9abc863/trade-terms.C80Kz5m2.js +1 -0
  100. package/assets/{f785e42/validateFields.Jh9WdbVA.js → 9abc863/validateFields.D6KwIc71.js} +1 -1
  101. package/assets/{f785e42/vendor.BGu2qkTq.js → 9abc863/vendor.UEAfe26O.js} +4 -4
  102. package/assets/9abc863/vouchers-terms.BWQYzdtq.js +1 -0
  103. package/assets/{f785e42/vouchers.1OVsKP0Z.js → 9abc863/vouchers.B4XC4q7V.js} +1 -1
  104. package/assets/{f785e42/vue-router.Ba_I7p6z.js → 9abc863/vue-router.Bw-Vu8cJ.js} +1 -1
  105. package/assets/9abc863/wellness-terms.CiXxdQXm.js +1 -0
  106. package/assets/{f785e42/wellness.Cl3cM2OC.js → 9abc863/wellness.LEkcp4oM.js} +1 -1
  107. package/assets/versions.json +1 -1
  108. package/index.min.js +2 -2
  109. package/package.json +1 -1
  110. package/assets/f785e42/ButtonBordered.CP-VyF36.js +0 -1
  111. package/assets/f785e42/ButtonBorderedThin.jONrcTDH.js +0 -1
  112. package/assets/f785e42/ButtonGhosted.E76FJ-Mf.js +0 -1
  113. package/assets/f785e42/ButtonMuted.ClXJRdlP.js +0 -1
  114. package/assets/f785e42/Header.CxfzOuTi.js +0 -1
  115. package/assets/f785e42/Main.B6URJ_XN.js +0 -1
  116. package/assets/f785e42/accommodation-terms.meT5Ns8_.js +0 -1
  117. package/assets/f785e42/client.DrMpyevc.js +0 -1
  118. package/assets/f785e42/config.tpbdABlZ.js +0 -1
  119. package/assets/f785e42/countries.CE6bN6gS.js +0 -1
  120. package/assets/f785e42/details.BGQ4YYFa.js +0 -1
  121. package/assets/f785e42/faq.BVEgi7EE.js +0 -1
  122. package/assets/f785e42/formatPrice.BEcRqhQn.js +0 -1
  123. package/assets/f785e42/pages.DIf-_Lwj.js +0 -1
  124. package/assets/f785e42/pages._B8SYS_w.js +0 -1
  125. package/assets/f785e42/privacy-policy.K7_5U-6w.js +0 -1
  126. package/assets/f785e42/routeParams.6hpnfcMT.js +0 -1
  127. package/assets/f785e42/terms.BqOMJDFo.js +0 -1
  128. package/assets/f785e42/trade-terms.D83lptj5.js +0 -1
  129. package/assets/f785e42/vouchers-terms.Dg-QZY_H.js +0 -1
  130. package/assets/f785e42/wellness-terms.D9DPXL0C.js +0 -1
  131. /package/assets/{f785e42/_plugin-vue_export-helper.CVuqnCex.js → 9abc863/_plugin-vue_export-helper.C0ijDkGT.js} +0 -0
  132. /package/assets/{f785e42 → 9abc863}/app.CJTXFzvz.png +0 -0
  133. /package/assets/{f785e42/basePath.CZNYxQU8.js → 9abc863/basePath.DKl9za_V.js} +0 -0
  134. /package/assets/{f785e42/closeDetails.Rl_Xi9VJ.js → 9abc863/closeDetails.C8zZD3SJ.js} +0 -0
  135. /package/assets/{f785e42/dist.CR4ffK8_.js → 9abc863/dist.D9SLCwI7.js} +0 -0
  136. /package/assets/{f785e42/dist.DRl7vaHS.js → 9abc863/dist.b2zlMDTZ.js} +0 -0
  137. /package/assets/{f785e42 → 9abc863}/erv.CerNAezh.svg +0 -0
  138. /package/assets/{f785e42/esm.DHoAkVBq.js → 9abc863/esm.CgggN1_U.js} +0 -0
  139. /package/assets/{f785e42/experimental.DlhmGXKW.js → 9abc863/experimental.Cr2dpMSf.js} +0 -0
  140. /package/assets/{f785e42/getPaymentUrl.xa_1GwGz.js → 9abc863/getPaymentUrl.DOaXoJD3.js} +0 -0
  141. /package/assets/{f785e42/index.es.BBH8jX4Z.js → 9abc863/index.es.DgL25r8U.js} +0 -0
  142. /package/assets/{f785e42/localeRules.DuB-8maD.js → 9abc863/localeRules.ISFWYFF6.js} +0 -0
  143. /package/assets/{f785e42/patterns.Bgl0jWnL.js → 9abc863/patterns.CeNuhuLC.js} +0 -0
  144. /package/assets/{f785e42/plainText.CC3Vidi5.js → 9abc863/plainText.B_aBSoJ2.js} +0 -0
  145. /package/assets/{f785e42/preload.vcDpiZHI.js → 9abc863/preload.DxhQL6ww.js} +0 -0
  146. /package/assets/{f785e42/rolldown-runtime.CY69pHGU.js → 9abc863/rolldown-runtime.BQa96kB2.js} +0 -0
  147. /package/assets/{f785e42/signature_pad.DvPpdb2r.js → 9abc863/signature_pad.C07Egmsk.js} +0 -0
  148. /package/assets/{f785e42/staleTimes.BuCDd__I.js → 9abc863/staleTimes.BFpWFXo3.js} +0 -0
  149. /package/assets/{f785e42/togglePassword.D7dAyG22.js → 9abc863/togglePassword.DhXSbA19.js} +0 -0
@@ -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.UEAfe26O.js";import{t as g}from"./Button.DENQlfoV.js";import{c as _,o as v}from"./client.B35Zk1Vj.js";import{r as y}from"./account.7ZB6Hvpd.js";import{n as b,t as x}from"./calendarFlexibleDialog.CiT3ybyU.js";import{i as S}from"./calendar.DrZjOG3Q.js";import{t as C}from"./ButtonBorderedThin.DQtk8ygl.js";import{t as w}from"./fancybox.BbYneWyM.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.UEAfe26O.js";import{W as d}from"./params.BYxK9z6w.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.UEAfe26O.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.UEAfe26O.js";import{t as H}from"./params.BYxK9z6w.js";import{n as U,t as re}from"./DialogContent.oj4AjH0A.js";import{n as W,t as G}from"./Field.BhjqVj0S.js";import{t as ie}from"./Button.DENQlfoV.js";import{t as K}from"./Details.CB4_wNS3.js";import{t as q}from"./Control.DQeuvn0T.js";import{c as J,p as ae,t as Y,x as X}from"./client.B35Zk1Vj.js";import{t as Z}from"./staleTimes.BFpWFXo3.js";import{t as oe}from"./config.DN5PrzYj.js";import{n as Q,t as se}from"./ControlTelCountryCode.DCl_oZNm.js";import{t as $}from"./Check.CGkdXv8U.js";import{t as ce}from"./patterns.CeNuhuLC.js";import{r as le}from"./calendarFlexibleDialog.CiT3ybyU.js";import{t as ue}from"./formatPrice.BoNSJ3UV.js";import{t as de}from"./hotel.CHXHOAo8.js";import{t as fe}from"./ButtonBorderedThin.DQtk8ygl.js";import{t as pe}from"./DatePicker.CNLqAKwS.js";import{a as me,i as he,n as ge}from"./PackageDetailDialogContent.C7QuaUVb.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.UEAfe26O.js";import{t as u}from"./Button.DENQlfoV.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.UEAfe26O.js";import{W as b}from"./params.BYxK9z6w.js";import{n as x,t as S}from"./Field.BhjqVj0S.js";import{t as C}from"./Button.DENQlfoV.js";import{t as w}from"./Control.DQeuvn0T.js";import"./client.B35Zk1Vj.js";import"./staleTimes.BFpWFXo3.js";import{t as T}from"./togglePassword.DhXSbA19.js";import{i as E}from"./account.7ZB6Hvpd.js";import{a as D}from"./account.BDzjPnm1.js";import{t as O}from"./toaster.Duospl3o.js";import{t as k}from"./patterns.CeNuhuLC.js";import{t as A}from"./validateFields.D6KwIc71.js";import{t as j}from"./Main.CK41faK0.js";import{t as M}from"./routeParams.DU9zPEL5.js";import{t as N}from"./AuthInfo.BpaWz9kZ.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{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.UEAfe26O.js";import{U as f}from"./params.BYxK9z6w.js";import"./localeRules.ISFWYFF6.js";import"./DialogContent.oj4AjH0A.js";import"./client.B35Zk1Vj.js";import"./staleTimes.BFpWFXo3.js";import"./config.DN5PrzYj.js";import"./calendarFlexibleDialog.CiT3ybyU.js";import{t as p}from"./FooterLogo.DrkuhAUv.js";import"./formatPrice.BoNSJ3UV.js";import"./hotel.CHXHOAo8.js";import"./fancybox.BbYneWyM.js";import"./PackageDetailDialogContent.C7QuaUVb.js";import{t as m}from"./routeParams.DU9zPEL5.js";import{t as h}from"./RoomDetailDialogContent.D7S_QzBs.js";import{t as g}from"./rooms.6URoZiB2.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{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.UEAfe26O.js";import"./params.BYxK9z6w.js";import"./localeRules.ISFWYFF6.js";import"./DialogContent.oj4AjH0A.js";import"./client.B35Zk1Vj.js";import"./staleTimes.BFpWFXo3.js";import"./config.DN5PrzYj.js";import"./calendarFlexibleDialog.CiT3ybyU.js";import{t as f}from"./FooterLogo.DrkuhAUv.js";import"./formatPrice.BoNSJ3UV.js";import"./hotel.CHXHOAo8.js";import"./fancybox.BbYneWyM.js";import{t as p}from"./PackageDetailDialogContent.C7QuaUVb.js";import{t as m}from"./routeParams.DU9zPEL5.js";import{t as h}from"./packages.T-RS_YY1.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{$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.UEAfe26O.js";import{W as T}from"./params.BYxK9z6w.js";import{t as E}from"./Button.DENQlfoV.js";import{t as D}from"./client.B35Zk1Vj.js";import{t as O}from"./toaster.Duospl3o.js";import{t as k}from"./ButtonGhosted.DtSQuUqd.js";import{t as A}from"./Circle.BqRlZ-Ni.js";import{t as j}from"./routeParams.DU9zPEL5.js";import{t as M}from"./basePath.DKl9za_V.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{t as e}from"./preload.vcDpiZHI.js";import{An as t,Dn as n,Hn as r,In as i,Jn as a,Kn as o,Mn as s,Pn as c,Rt as l,Vn as u,Xn as d,Zn as f,bn 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,u as w,un as T,ut as E,vn as D,yn as O}from"./vendor.BGu2qkTq.js";import{W as k,t as A}from"./params.DR2mabOE.js";import"./localeRules.DuB-8maD.js";import{n as j,t as M}from"./DialogContent.tdqsNrXE.js";import{n as N,t as P}from"./Field.Bw7PCeQ1.js";import{t as F}from"./Button.DSwXM1vM.js";import{t as I}from"./Control.l_F0QhcO.js";import"./client.DrMpyevc.js";import"./staleTimes.BuCDd__I.js";import"./countries.CE6bN6gS.js";import{t as L}from"./config.tpbdABlZ.js";import{n as R,t as ee}from"./ControlTelCountryCode.CcdH-ptn.js";import{t as te}from"./Check.1kttjrU5.js";import{t as z}from"./toaster.DOHhVfsI.js";import{t as B}from"./patterns.Bgl0jWnL.js";import{t as V}from"./validateFields.Jh9WdbVA.js";import{t as H}from"./ButtonGhosted.E76FJ-Mf.js";import{t as ne}from"./ButtonBordered.CP-VyF36.js";import{o as U,r as W}from"./reservation.Co3PKchx.js";import{t as G}from"./hotel.BmQNwmkI.js";import{t as K}from"./Main.B6URJ_XN.js";import{t as q}from"./routeParams.6hpnfcMT.js";import{t as J}from"./CheckinApp.BEzPf4Yi.js";import{i as Y}from"./reservation.BzOjnZgI.js";import{t as X}from"./InputMask.Bjs0czKj.js";var Z={class:`border-b border-b-main-secondary`},re={key:0,class:`x-info text-error validity mt-1`},ie=p({__name:`ControlSignature`,props:{invalid:{type:Boolean},value:{type:String}},setup(n,{expose:i}){let c=n,{t:l}=v(),p=A(),h=o(),b=o(),x=a(c.invalid??!1),S;function w(){let e=Math.max(window.devicePixelRatio||1,1);h.value.width=h.value.offsetWidth*e,h.value.height=h.value.offsetHeight*e,h.value.getContext(`2d`).scale(e,e)}function E(){b.value=S.toDataURL(`image/png`),x.value=!1}let D=()=>{S.clear()};return u(()=>c.invalid,e=>{x.value=e}),y(async()=>{let{default:t}=await e(async()=>{let{default:e}=await import(`./signature_pad.DvPpdb2r.js`);return{default:e}},[]);S=new t(h.value,{penColor:p.theme===`dark`?`rgb(255 255 255)`:`rgb(0 0 0)`}),w(),c.value&&await S.fromDataURL(c.value),window.addEventListener(`resize`,w),S.addEventListener(`endStroke`,E)}),t(()=>{window.removeEventListener(`resize`,w),S.removeEventListener(`endStroke`,E)}),i({output:b}),(e,t)=>{let n=H;return s(),g(T,null,[C(`div`,{class:f([`x-control-signature pb-6 px-6 rounded-md bg-body-primary border relative`,{"border-error":x.value,"border-main-tertiary":!x.value}])},[C(`div`,Z,[C(`canvas`,{ref_key:`canvas`,ref:h,class:`w-full h-[82px]`},null,512),O(n,{class:`accent-main absolute right-1.5 top-1.5`,size:`xs`,variant:`circle`,type:`button`,"aria-label":d(l)(`clear`),onClick:D},{default:r(()=>[...t[0]||=[C(`svg`,{"aria-hidden":`true`,class:`size-4`},[C(`use`,{href:`#icon-arrow-uturn-left-micro`})],-1)]]),_:1},8,[`aria-label`])])],2),x.value?(s(),g(`div`,re,m(d(l)(`fillThisField`)),1)):_(``,!0)],64)}}});const ae=e=>{navigator.clipboard.writeText(e)};var oe={class:`x-heading sm mb-6`},se=[`placeholder`],ce={class:`flex flex-wrap gap-2 justify-between text-main-secondary`},le={class:`x-title sm`},ue=p({__name:`CheckinShareDialog`,props:{uuid:{type:[String,null]}},setup(e,{expose:t}){let n=e,{t:i}=v(),a=E(),c=q(),l=z(),f=o(),p=o(),g=o(!1),{data:_,mutate:y,error:T,asyncStatus:k}=U(),A=({currentTarget:e})=>{let t=Object.fromEntries(new FormData(e));y(Object.assign(t,{uuid:n?.uuid}))};u(_,e=>{e?.response?.status===200&&(f.value.close(),l.add({class:`accent-success`,title:i(`success`),text:i(`checkinSuccessInfo`)}))}),u([_,T],()=>{!T.value&&!_?.value?.error||(V(p.value?.$el,_?.value?.error?.params),l.add({class:`accent-error`,title:i(`error`),text:T?.value?.toString()??_.value?.error?.message}))});let L=()=>{ae(`${a.value.origin+a.value.pathname}#/reservation/checkin/${c.value.id}/${n.uuid}`),g.value=!0,setTimeout(()=>{g.value=!1},750)};return t({root:f}),(e,t)=>{let n=H,o=I,c=P,l=F,u=N,_=M,v=j;return s(),x(v,{ref_key:`root`,ref:f},{default:r(()=>[O(_,{class:`flex flex-col p-6 rounded-xl`},{default:r(()=>[O(n,{class:`accent-main absolute right-4 top-4`,size:`xs`,variant:`circle`,"aria-label":d(i)(`close`),onClick:t[0]||=e=>f.value.close()},{default:r(()=>[...t[1]||=[C(`svg`,{"aria-hidden":`true`},[C(`use`,{href:`#icon-x-mark-mini`})],-1)]]),_:1},8,[`aria-label`]),C(`h1`,oe,m(d(i)(`reservationShare`)),1),O(u,{ref_key:`form`,ref:p,class:`flex gap-2.5 mb-6`,onSubmit:b(A,[`prevent`])},{default:r(()=>[O(c,{class:`grow`},{default:r(()=>[O(o,{size:`md`,class:`not-has-user-invalid:border-accent`},{default:r(()=>[C(`input`,{type:`email`,name:`email`,placeholder:d(i)(`enterEmail`),required:``,autofocus:``},null,8,se)]),_:1})]),_:1}),O(l,{size:`md`,type:`submit`,loading:d(k)===`loading`},{default:r(()=>[D(m(d(i)(`shareCheckin`)),1)]),_:1},8,[`loading`])]),_:1},512),C(`div`,ce,[C(`div`,le,m(d(i)(`orCopyLink`))+`: `,1),O(d(S),{open:g.value},{default:r(()=>[O(d(w),{"as-child":``},{default:r(()=>[C(`button`,{class:`x-link sm flex items-center gap-1 underline underline-transparent`,onClick:L},[D(m(d(a).host+d(a).pathname)+` `,1),t[2]||=C(`svg`,{class:`size-3 text-accent shrink-0`,"aria-hidden":`true`},[C(`use`,{href:`#icon-square-2-stack-micro`})],-1)])]),_:1}),O(d(h),{sideOffset:4,side:`top`,class:`x-popover-content tooltip shadow`},{default:r(()=>[D(m(d(i)(`copiedToClipboard`)),1)]),_:1})]),_:1},8,[`open`])])]),_:1})]),_:1},512)}}}),de=[`data-open`],fe={class:`p-3 min-h-16.5 flex items-center max-md:flex-wrap transition-all group-data-open:p-4 group-data-open:md:p-6 max-md:gap-y-1`},pe={class:`x-title sm mr-2 order-first`},me={key:0,class:`text-normal`},he={key:0,class:`x-title sm text-primary md:ml-auto`},ge={key:1,class:`md:ml-auto flex items-center gap-5 max-md:contents`},_e={key:2,class:`md:ml-auto flex gap-4 max-md:mt-1 max-md:gap-2`},ve={class:`x-heading xs mb-6`},ye={class:`grid md:grid-cols-2 gap-3 md:gap-6`},be=[`id`,`value`],xe=[`for`],Se=[`id`,`value`],Ce=[`for`],we=[`id`,`value`],Te=[`for`],Ee=[`id`,`value`,`required`],De=[`for`],Oe=[`id`,`value`],ke=[`for`],Ae=[`id`],je=[`for`],Me={class:`x-heading xs mb-6`},Ne={class:`grid md:grid-cols-2 gap-3 md:gap-6`},Pe=[`id`,`value`],Fe=[`for`],Ie=[`id`,`value`],Le=[`for`],Re=[`id`,`value`],ze=[`for`],Be={class:`x-heading xs mb-6`},Ve={class:`grid md:grid-cols-2 gap-3 md:gap-6`},He={class:`x-group rounded-sm w-full`},Ue=[`id`,`value`,`pattern`],We=[`for`],Ge=[`id`,`value`],Ke=[`for`],qe={key:0},Je={class:`x-heading xs mb-6`},Ye={class:`grid md:grid-cols-12 gap-3 md:gap-6`},Xe=[`id`],Ze=[`for`],Qe=[`id`],$e=[`for`],et=[`id`],tt=[`for`],nt={class:`x-heading xs mb-6`},rt={class:`flex flex-col gap-2.5`},it=[`id`,`checked`],at=[`id`,`checked`],Q=!0,ot=p({__name:`CheckinRoomItem`,props:{checkinCompleted:{type:Boolean},checkinClosed:{type:Boolean},index:{type:Number},guest:{type:Object}},setup(e){let t={BASE_URL:`https://v4.bookoloengine.com/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,VITE_API_URL:`https://api.bookoloengine.com/desktop/v1`,VITE_BASE_URL:`https://v4.bookoloengine.com/`,VITE_DEBUG:`false`,VITE_FONT_URL:`https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap`,VITE_GOOGLE_MAPS_API_KEY:`AIzaSyDMusEQNO0rIJ86vZoowmPD2U2g5Ma8LOQ`,VITE_LOCALES_URL:`https://www.bookoloengine.com/userfiles/api/desktop/locales`,VITE_NAME:`bookolosystem-engine`,VITE_NAME_BANNER:`bookolosystem-banner`,VITE_PLAUSIBLE_URL:`https://plausible.newlogic.cz/js/script.outbound-links.js`,VITE_SENTRY_DSN:`https://015bded0d2216dceb2c50582f80e5f83@sentry.newlogic.cz/58`},{t:c}=v(),p=l(),h=e,y=z(),{data:S}=L(),w=a(!1),E=a(),k=a(h.checkinCompleted),A=o(),j=a(!1),M=o(),H=o({uuid:``}),{data:U,mutate:G,error:K,asyncStatus:q}=W(),J=()=>{w.value=!w.value},Y=({currentTarget:e})=>{let t=Object.fromEntries(new FormData(e));if(!A.value.output){j.value=!0;return}G(Object.assign(t,{uuid:h?.guest?.uuid,id:h?.guest?.id,signature:A.value.output}))};return u(U,e=>{e?.response?.status===200&&(w.value=!1,k.value=!0,p.invalidateQueries({key:[`reservation`]}))}),u([U,K],()=>{!K.value&&!U?.value?.error||(V(E.value?.$el,U?.value?.error?.params),y.add({class:`accent-error`,title:c(`error`),text:K?.value?.toString()??U.value?.error?.message}))}),(a,o)=>{let l=F,u=ne,p=ue,h=I,v=P,y=R,L=ee,z=X,V=ie,U=i(`RouterLink`),W=i(`i18n-t`),G=te,K=N;return s(),g(`div`,{class:f([`x-checkin-room-item outline outline-transparent -outline-offset-1 rounded-md group`,`transition-all data-open:outline-primary has-[+[data-open]]:border-transparent`]),"data-open":w.value?``:null},[C(`div`,fe,[C(`div`,pe,[e.guest?.firstName||e.guest?.lastName?(s(),g(T,{key:0},[D(m(e.guest?.firstName)+` `+m(e.guest?.lastName),1)],64)):(s(),g(T,{key:1},[D(m(d(c)(`guest`))+` `+m(e.index)+` `,1),e.guest?.type===`child`?(s(),g(`span`,me,` (`+m(d(c)(`childrenSingular`))+`) `,1)):_(``,!0)],64))]),C(`div`,{class:f([`x-badge md muted order-first`,{"accent-error":!k.value,"accent-success":k.value}])},[k.value?(s(),g(T,{key:1},[D(m(d(c)(`filled`)),1)],64)):(s(),g(T,{key:0},[D(m(d(c)(`notFilled`)),1)],64))],2),e.checkinClosed?(s(),g(`div`,he,m(d(c)(`onlineCheckinClosed`)),1)):k.value?(s(),g(`div`,ge,[C(`button`,{class:`x-title sm flex items-center gap-1.5 underline underline-transparent hocus:text-primary`,onClick:J},[o[1]||=C(`svg`,{"aria-hidden":`true`,class:`size-4`},[C(`use`,{href:`#icon-pencil-micro`})],-1),D(` `+m(d(c)(`editCheckin`)),1)]),o[2]||=C(`svg`,{"aria-hidden":`true`,class:`size-7 text-success max-md:order-first max-md:ml-auto`},[C(`use`,{href:`#icon-check-circle-solid`})],-1)])):(s(),g(`div`,_e,[w.value?_(``,!0):(s(),x(l,{key:0,size:`md`,onClick:J},{default:r(()=>[D(m(d(c)(`fillCheckin`)),1)]),_:1})),O(u,{size:`md`,class:`accent-main`,onClick:o[0]||=t=>[H.value={uuid:e.guest?.uuid},M.value.root.show()]},{default:r(()=>[D(m(d(c)(`shareCheckin`)),1)]),_:1}),O(p,n({ref_key:`checkinShareDialog`,ref:M},{...H.value}),null,16)]))]),w.value?(s(),x(K,{key:0,ref_key:`form`,ref:E,class:`p-4 md:p-6 flex flex-col gap-8`,onSubmit:b(Y,[`prevent`])},{default:r(()=>[C(`fieldset`,null,[C(`legend`,ve,m(d(c)(`personalDetails`)),1),C(`div`,ye,[O(v,null,{default:r(()=>[O(h,{size:`md`},{default:r(({uid:t})=>[C(`input`,{id:t,value:e.guest?.firstName,type:`text`,name:`firstName`,autocomplete:`given-name`,placeholder:` `,required:Q},null,8,be),C(`label`,{for:t},m(d(c)(`yourFirstname`)),9,xe)]),_:1})]),_:1}),O(v,null,{default:r(()=>[O(h,{size:`md`},{default:r(({uid:t})=>[C(`input`,{id:t,value:e.guest?.lastName,type:`text`,name:`lastName`,autocomplete:`family-name`,placeholder:` `,required:Q},null,8,Se),C(`label`,{for:t},m(d(c)(`yourLastname`)),9,Ce)]),_:1})]),_:1}),O(v,null,{default:r(()=>[O(h,{size:`md`},{default:r(({uid:t})=>[C(`input`,{id:t,value:e.guest?.birthDate,type:`date`,name:`birthDate`,autocomplete:`bday`,placeholder:` `,required:Q},null,8,we),C(`label`,{for:t},m(d(c)(`birthdate`)),9,Te)]),_:1})]),_:1}),O(v,null,{default:r(()=>[O(h,{size:`md`},{default:r(({uid:t})=>[C(`input`,{id:t,value:e.guest?.idNumber,type:`text`,name:`idNumber`,placeholder:` `,required:e.guest?.onlineCheckinIdNumberRequired},null,8,Ee),C(`label`,{for:t},m(d(c)(`idNumber`)),9,De)]),_:1})]),_:1}),O(v,null,{default:r(()=>[O(y,{name:`citizenship`,value:e.guest?.citizenship,required:Q,label:d(c)(`stateCitizenship`)},null,8,[`value`,`label`])]),_:1}),e.guest?.onlineCheckinShowLicensePlate||d(t).VITE_DEBUG===`true`?(s(),x(v,{key:0},{default:r(()=>[O(h,{size:`md`},{default:r(({uid:t})=>[C(`input`,{id:t,value:e.guest?.licensePlate,type:`text`,name:`licensePlate`,placeholder:` `},null,8,Oe),C(`label`,{for:t},m(d(c)(`licencePlate`)),9,ke)]),_:1})]),_:1})):_(``,!0),e.guest?.onlineCheckinShowVisa||d(t).VITE_DEBUG===`true`?(s(),x(v,{key:1},{default:r(()=>[O(h,{size:`md`},{default:r(({uid:e})=>[C(`input`,{id:e,type:`text`,name:`visa`,placeholder:` `},null,8,Ae),C(`label`,{for:e},m(d(c)(`visaNumber`)),9,je)]),_:1})]),_:1})):_(``,!0)])]),C(`fieldset`,null,[C(`legend`,Me,m(d(c)(`residence`)),1),C(`div`,Ne,[O(v,null,{default:r(()=>[O(h,{size:`md`},{default:r(({uid:t})=>[C(`input`,{id:t,value:e.guest?.street,type:`text`,name:`street`,autocomplete:`street-address`,placeholder:` `,required:Q},null,8,Pe),C(`label`,{for:t},m(d(c)(`streetAddress`)),9,Fe)]),_:1})]),_:1}),O(v,null,{default:r(()=>[O(h,{size:`md`},{default:r(({uid:t})=>[C(`input`,{id:t,value:e.guest?.city,type:`text`,name:`city`,autocomplete:`address-level2`,placeholder:` `,required:Q},null,8,Ie),C(`label`,{for:t},m(d(c)(`city`)),9,Le)]),_:1})]),_:1}),O(v,null,{default:r(()=>[O(h,{size:`md`},{default:r(({uid:t})=>[C(`input`,{id:t,value:e.guest?.postalCode,type:`text`,name:`postalCode`,autocomplete:`postal-code`,placeholder:` `,required:Q},null,8,Re),C(`label`,{for:t},m(d(c)(`postalCode`)),9,ze)]),_:1})]),_:1}),O(v,null,{default:r(()=>[O(y,{value:e.guest?.country,required:Q},null,8,[`value`])]),_:1})])]),C(`fieldset`,null,[C(`legend`,Be,m(d(c)(`contactDetails`)),1),C(`div`,Ve,[O(v,null,{default:r(()=>[C(`div`,He,[O(L,{value:e.guest?.telCountryCode},null,8,[`value`]),O(h,{class:`grow`,size:`md`},{default:r(({uid:t})=>[C(`input`,{id:t,value:e.guest?.telNational,name:`telNational`,type:`tel`,pattern:d(B).telNational,placeholder:` `,autocomplete:`tel-national`,required:Q},null,8,Ue),C(`label`,{for:t},m(d(c)(`tel`)),9,We)]),_:1})])]),_:1}),O(v,null,{default:r(()=>[O(h,{size:`md`},{default:r(({uid:t})=>[C(`input`,{id:t,value:e.guest?.email,name:`email`,type:`email`,placeholder:` `,autocomplete:`email`,required:Q},null,8,Ge),C(`label`,{for:t},m(d(c)(`email`)),9,Ke)]),_:1})]),_:1})])]),e.guest?.onlineCheckinShowCreditCard||d(t).VITE_DEBUG===`true`?(s(),g(`fieldset`,qe,[C(`legend`,Je,m(d(c)(`creditCard`)),1),C(`div`,Ye,[O(v,{class:`col-span-8`},{default:r(()=>[O(h,{size:`md`},{default:r(({uid:e})=>[O(z,{"allowed-card-types":d(S)?.creditCardTypes,type:`cc-number`},{default:r(({setRef:t})=>[C(`input`,{id:e,ref:t,type:`text`,name:`cardNumber`,placeholder:` `,autocomplete:`cc-number`,required:Q},null,8,Xe)]),_:2},1032,[`allowed-card-types`]),C(`label`,{for:e},m(d(c)(`cardNumber`)),9,Ze)]),_:1})]),_:1}),O(v,{class:`col-span-4`},{default:r(()=>[O(h,{size:`md`},{default:r(({uid:e})=>[O(z,{type:`cc-exp`},{default:r(({setRef:t})=>[C(`input`,{id:e,ref:t,name:`cardExpiry`,type:`text`,placeholder:`__/__`,maxlength:`5`,autocomplete:`cc-exp`,class:`focus:placeholder:text-main-secondary`,required:Q},null,8,Qe)]),_:2},1024),C(`label`,{for:e},m(d(c)(`expDate`)),9,$e)]),_:1})]),_:1}),O(v,{class:`col-span-12`},{default:r(()=>[O(h,{size:`md`},{default:r(({uid:e})=>[C(`input`,{id:e,type:`text`,name:`cardName`,placeholder:` `,autocomplete:`cc-name`,required:Q},null,8,et),C(`label`,{for:e},m(d(c)(`nameOnCard`)),9,tt)]),_:1})]),_:1})])])):_(``,!0),C(`fieldset`,null,[C(`legend`,nt,m(d(c)(`signature`)),1),O(v,null,{default:r(()=>[O(V,{ref_key:`signature`,ref:A,value:e.guest?.signature,invalid:j.value},null,8,[`value`,`invalid`])]),_:1})]),C(`fieldset`,rt,[O(v,null,{default:r(()=>[O(G,null,{default:r(({uid:t})=>[C(`input`,{id:t,type:`checkbox`,checked:e.guest?.onlineCheckinCompleted,required:Q},null,8,it),O(W,{for:t,keypath:`agreeWith`,tag:`label`},{default:r(()=>[O(U,{class:`underline transition hocus:text-primary`,to:`/text/privacy-policy`},{default:r(()=>[D(m(d(c)(`agreeWithSlot.personalData`)),1)]),_:1})]),_:1},8,[`for`])]),_:1})]),_:1}),e.guest?.onlineCheckinShowTradeTerms||d(t).VITE_DEBUG===`true`?(s(),x(v,{key:0},{default:r(()=>[O(G,null,{default:r(({uid:t})=>[C(`input`,{id:t,checked:e.guest?.onlineCheckinCompleted,type:`checkbox`,required:Q},null,8,at),O(W,{for:t,keypath:`agreeWith`,tag:`label`},{default:r(()=>[O(U,{class:`underline transition hocus:text-primary`,to:`/text/trade-terms`},{default:r(()=>[D(m(d(c)(`agreeWithSlot.termsConditions`)),1)]),_:1})]),_:1},8,[`for`])]),_:1})]),_:1})):_(``,!0)]),O(l,{size:`md`,class:`mr-auto`,type:`submit`,loading:d(q)===`loading`},{default:r(()=>[D(m(d(c)(`saveCheckin`)),1)]),_:1},8,[`loading`])]),_:1},512)):_(``,!0)],8,de)}}}),st={class:`x-checkin-room card p-3 md:p-6 bg-body-primary rounded-xl flex flex-col gap-6.5`},ct={class:`flex gap-5`},lt={class:`x-image rounded-md before:skeleton h-17.5`},ut=[`src`,`alt`],dt={class:`flex flex-col gap-1`},ft={class:`x-heading sm`},pt={class:`x-text xs`},mt={class:`x-title sm text-primary mt-auto`},ht={class:`flex flex-col divide-y divide-main-tertiary`},gt=p({__name:`CheckinRoom`,props:{room:{type:Object}},setup(e){let t={BASE_URL:`https://v4.bookoloengine.com/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,VITE_API_URL:`https://api.bookoloengine.com/desktop/v1`,VITE_BASE_URL:`https://v4.bookoloengine.com/`,VITE_DEBUG:`false`,VITE_FONT_URL:`https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap`,VITE_GOOGLE_MAPS_API_KEY:`AIzaSyDMusEQNO0rIJ86vZoowmPD2U2g5Ma8LOQ`,VITE_LOCALES_URL:`https://www.bookoloengine.com/userfiles/api/desktop/locales`,VITE_NAME:`bookolosystem-engine`,VITE_NAME_BANNER:`bookolosystem-banner`,VITE_PLAUSIBLE_URL:`https://plausible.newlogic.cz/js/script.outbound-links.js`,VITE_SENTRY_DSN:`https://015bded0d2216dceb2c50582f80e5f83@sentry.newlogic.cz/58`},{t:n}=v();return(r,i)=>{let a=ot;return s(),g(`div`,st,[C(`div`,ct,[C(`div`,lt,[C(`img`,{src:e.room?.roomImage?.[`1x`],class:`aspect-4/3 object-cover`,loading:`lazy`,alt:e.room?.roomImage?.alt},null,8,ut)]),C(`div`,dt,[C(`h2`,ft,m(e.room?.roomName),1),C(`div`,pt,[D(m(e.room?.rateName)+` `,1),e.room?.prices?.finalPriceExtraBeds?(s(),g(T,{key:0},[D(` (+`+m(d(n)(`extraBed`))+`) `,1)],64)):_(``,!0)]),C(`div`,mt,m(d(n)(`filled`))+` `+m(e.room?.guests?.filter(e=>e?.onlineCheckinCompleted)?.length)+`/`+m(e.room?.guests?.length),1)])]),C(`div`,ht,[(s(!0),g(T,null,c(e.room?.guests,(e,n)=>(s(),x(a,{key:n,ref_for:!0,ref:`rooms`,index:n+1,guest:e,"checkin-completed":e?.onlineCheckinCompleted,"checkin-closed":!e?.onlineCheckinAllowed&&d(t).VITE_DEBUG!==`true`},null,8,[`index`,`guest`,`checkin-completed`,`checkin-closed`]))),128))])])}}}),_t={class:`x-checkin-info card p-4 md:p-6 bg-body-primary rounded-xl flex flex-col gap-5`},vt={class:`x-heading sm flex items-center`},yt={key:0,class:`x-badge md muted accent-success ml-auto -my-0.5`},$={class:`flex flex-col gap-5`},bt={class:`flex gap-4`},xt={class:`flex flex-col gap-1 grow`},St={class:`x-title sm font-medium`},Ct={key:0,class:`x-title`},wt={key:1,class:`skeleton h-5 rounded-md w-full max-w-2/5`},Tt={class:`flex gap-4`},Et={class:`flex flex-col gap-1 grow`},Dt={key:0,class:`x-title sm font-medium`},Ot={key:1,class:`skeleton h-4 rounded-md w-full max-w-32`},kt={key:2,class:`x-title`},At={key:3,class:`skeleton h-5 rounded-md w-3/4`},jt={class:`x-text xs`},Mt=p({__name:`CheckinInfo`,props:{checkInDate:{type:[String,null]},checkOutDate:{type:[String,null]},completed:{type:Boolean}},setup(e){let{data:t}=L(),{t:n,d:r}=v(),{data:i,isPending:a}=G();return(o,c)=>(s(),g(`div`,_t,[C(`h1`,vt,[D(m(d(n)(`onlineCheckin`))+` `,1),e.completed?(s(),g(`div`,yt,m(d(n)(`completed`)),1)):_(``,!0)]),C(`ul`,$,[C(`li`,bt,[c[0]||=C(`div`,{class:`size-10 bg-primary flex justify-center items-center rounded-md shrink-0`,"aria-hidden":`true`},[C(`svg`,{"aria-hidden":`true`,class:`size-5 text-primary-foreground`},[C(`use`,{href:`#icon-clock-mini`})])],-1),C(`div`,xt,[C(`div`,St,m(d(n)(`dateOfStay`)),1),e.checkInDate&&e.checkOutDate?(s(),g(`div`,Ct,m(d(r)(e.checkInDate,{timeZone:d(t)?.timeZone}))+` – `+m(d(r)(e.checkOutDate,{timeZone:d(t)?.timeZone})),1)):(s(),g(`div`,wt))])]),C(`li`,Tt,[c[1]||=C(`div`,{class:`size-10 bg-primary flex justify-center items-center rounded-md shrink-0`,"aria-hidden":`true`},[C(`svg`,{"aria-hidden":`true`,class:`size-5 text-primary-foreground`},[C(`use`,{href:`#icon-map-pin-mini`})])],-1),C(`div`,Et,[d(a)?(s(),g(`div`,Ot)):(s(),g(`div`,Dt,m(d(i)?.name),1)),d(a)?(s(),g(`div`,At)):(s(),g(`div`,kt,m(d(i)?.street)+` `+m(d(i)?.postalCode)+` `+m(d(i)?.city)+` - `+m(d(i)?.country),1))])])]),C(`div`,jt,m(d(n)(`checkinDescription`)),1)]))}}),Nt={class:`flex flex-col gap-2.5`},Pt=p({__name:`[uuid]`,setup(e){let t=k(),{t:n}=v(),i=z(),{data:a,error:o}=Y({guestUuid:q().value.uuid});return u([a,o],()=>{!o.value&&!a?.value?.error||(t.push(`/`),i.add({class:`accent-error`,title:n(`error`),text:o?.value?.toString()??a.value?.error?.message}))}),(e,t)=>{let n=Mt,i=gt,o=J,l=K;return s(),x(l,{class:`grid lg:grid-cols-[1fr_28.25rem] gap-3 lg:gap-6`},{default:r(()=>[C(`div`,Nt,[O(n,{"check-in-date":d(a)?.accommodation?.checkInDate,"check-out-date":d(a)?.accommodation?.checkOutDate,completed:d(a)?.accommodation?.onlineCheckinCompleted},null,8,[`check-in-date`,`check-out-date`,`completed`]),(s(!0),g(T,null,c(d(a)?.accommodation?.rooms,(e,t)=>(s(),x(i,{key:t,room:e},null,8,[`room`]))),128))]),O(o,{class:`transition-all md:sticky md:top-[calc(var(--x-main-sticky-top)+1rem)] self-start`})]),_:1})}}});export{Pt as default};
1
+ import{t as e}from"./preload.DxhQL6ww.js";import{An as t,Dn as n,Hn as r,In as i,Jn as a,Kn as o,Mn as s,Pn as c,Rt as l,Vn as u,Xn as d,Zn as f,bn 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,u as w,un as T,ut as E,vn as D,yn as O}from"./vendor.UEAfe26O.js";import{W as k,t as A}from"./params.BYxK9z6w.js";import"./localeRules.ISFWYFF6.js";import{n as j,t as M}from"./DialogContent.oj4AjH0A.js";import{n as N,t as P}from"./Field.BhjqVj0S.js";import{t as F}from"./Button.DENQlfoV.js";import{t as I}from"./Control.DQeuvn0T.js";import"./client.B35Zk1Vj.js";import"./staleTimes.BFpWFXo3.js";import"./countries.DHA-CuXb.js";import{t as L}from"./config.DN5PrzYj.js";import{n as R,t as ee}from"./ControlTelCountryCode.DCl_oZNm.js";import{t as te}from"./Check.CGkdXv8U.js";import{t as z}from"./toaster.Duospl3o.js";import{t as B}from"./patterns.CeNuhuLC.js";import{t as V}from"./validateFields.D6KwIc71.js";import{t as H}from"./ButtonGhosted.DtSQuUqd.js";import{t as ne}from"./ButtonBordered.Buog5XUd.js";import{o as U,r as W}from"./reservation.DewbR-PT.js";import{t as G}from"./hotel.CHXHOAo8.js";import{t as K}from"./Main.CK41faK0.js";import{t as q}from"./routeParams.DU9zPEL5.js";import{t as J}from"./CheckinApp.XKpaXHHH.js";import{i as Y}from"./reservation.C4YvgAfn.js";import{t as X}from"./InputMask.B7-_JM_a.js";var Z={class:`border-b border-b-main-secondary`},re={key:0,class:`x-info text-error validity mt-1`},ie=p({__name:`ControlSignature`,props:{invalid:{type:Boolean},value:{type:String}},setup(n,{expose:i}){let c=n,{t:l}=v(),p=A(),h=o(),b=o(),x=a(c.invalid??!1),S;function w(){let e=Math.max(window.devicePixelRatio||1,1);h.value.width=h.value.offsetWidth*e,h.value.height=h.value.offsetHeight*e,h.value.getContext(`2d`).scale(e,e)}function E(){b.value=S.toDataURL(`image/png`),x.value=!1}let D=()=>{S.clear()};return u(()=>c.invalid,e=>{x.value=e}),y(async()=>{let{default:t}=await e(async()=>{let{default:e}=await import(`./signature_pad.C07Egmsk.js`);return{default:e}},[]);S=new t(h.value,{penColor:p.theme===`dark`?`rgb(255 255 255)`:`rgb(0 0 0)`}),w(),c.value&&await S.fromDataURL(c.value),window.addEventListener(`resize`,w),S.addEventListener(`endStroke`,E)}),t(()=>{window.removeEventListener(`resize`,w),S.removeEventListener(`endStroke`,E)}),i({output:b}),(e,t)=>{let n=H;return s(),g(T,null,[C(`div`,{class:f([`x-control-signature pb-6 px-6 rounded-md bg-body-primary border relative`,{"border-error":x.value,"border-main-tertiary":!x.value}])},[C(`div`,Z,[C(`canvas`,{ref_key:`canvas`,ref:h,class:`w-full h-[82px]`},null,512),O(n,{class:`accent-main absolute right-1.5 top-1.5`,size:`xs`,variant:`circle`,type:`button`,"aria-label":d(l)(`clear`),onClick:D},{default:r(()=>[...t[0]||=[C(`svg`,{"aria-hidden":`true`,class:`size-4`},[C(`use`,{href:`#icon-arrow-uturn-left-micro`})],-1)]]),_:1},8,[`aria-label`])])],2),x.value?(s(),g(`div`,re,m(d(l)(`fillThisField`)),1)):_(``,!0)],64)}}});const ae=e=>{navigator.clipboard.writeText(e)};var oe={class:`x-heading sm mb-6`},se=[`placeholder`],ce={class:`flex flex-wrap gap-2 justify-between text-main-secondary`},le={class:`x-title sm`},ue=p({__name:`CheckinShareDialog`,props:{uuid:{type:[String,null]}},setup(e,{expose:t}){let n=e,{t:i}=v(),a=E(),c=q(),l=z(),f=o(),p=o(),g=o(!1),{data:_,mutate:y,error:T,asyncStatus:k}=U(),A=({currentTarget:e})=>{let t=Object.fromEntries(new FormData(e));y(Object.assign(t,{uuid:n?.uuid}))};u(_,e=>{e?.response?.status===200&&(f.value.close(),l.add({class:`accent-success`,title:i(`success`),text:i(`checkinSuccessInfo`)}))}),u([_,T],()=>{!T.value&&!_?.value?.error||(V(p.value?.$el,_?.value?.error?.params),l.add({class:`accent-error`,title:i(`error`),text:T?.value?.toString()??_.value?.error?.message}))});let L=()=>{ae(`${a.value.origin+a.value.pathname}#/reservation/checkin/${c.value.id}/${n.uuid}`),g.value=!0,setTimeout(()=>{g.value=!1},750)};return t({root:f}),(e,t)=>{let n=H,o=I,c=P,l=F,u=N,_=M,v=j;return s(),x(v,{ref_key:`root`,ref:f},{default:r(()=>[O(_,{class:`flex flex-col p-6 rounded-xl`},{default:r(()=>[O(n,{class:`accent-main absolute right-4 top-4`,size:`xs`,variant:`circle`,"aria-label":d(i)(`close`),onClick:t[0]||=e=>f.value.close()},{default:r(()=>[...t[1]||=[C(`svg`,{"aria-hidden":`true`},[C(`use`,{href:`#icon-x-mark-mini`})],-1)]]),_:1},8,[`aria-label`]),C(`h1`,oe,m(d(i)(`reservationShare`)),1),O(u,{ref_key:`form`,ref:p,class:`flex gap-2.5 mb-6`,onSubmit:b(A,[`prevent`])},{default:r(()=>[O(c,{class:`grow`},{default:r(()=>[O(o,{size:`md`,class:`not-has-user-invalid:border-accent`},{default:r(()=>[C(`input`,{type:`email`,name:`email`,placeholder:d(i)(`enterEmail`),required:``,autofocus:``},null,8,se)]),_:1})]),_:1}),O(l,{size:`md`,type:`submit`,loading:d(k)===`loading`},{default:r(()=>[D(m(d(i)(`shareCheckin`)),1)]),_:1},8,[`loading`])]),_:1},512),C(`div`,ce,[C(`div`,le,m(d(i)(`orCopyLink`))+`: `,1),O(d(S),{open:g.value},{default:r(()=>[O(d(w),{"as-child":``},{default:r(()=>[C(`button`,{class:`x-link sm flex items-center gap-1 underline underline-transparent`,onClick:L},[D(m(d(a).host+d(a).pathname)+` `,1),t[2]||=C(`svg`,{class:`size-3 text-accent shrink-0`,"aria-hidden":`true`},[C(`use`,{href:`#icon-square-2-stack-micro`})],-1)])]),_:1}),O(d(h),{sideOffset:4,side:`top`,class:`x-popover-content tooltip shadow`},{default:r(()=>[D(m(d(i)(`copiedToClipboard`)),1)]),_:1})]),_:1},8,[`open`])])]),_:1})]),_:1},512)}}}),de=[`data-open`],fe={class:`p-3 min-h-16.5 flex items-center max-md:flex-wrap transition-all group-data-open:p-4 group-data-open:md:p-6 max-md:gap-y-1`},pe={class:`x-title sm mr-2 order-first`},me={key:0,class:`text-normal`},he={key:0,class:`x-title sm text-primary md:ml-auto`},ge={key:1,class:`md:ml-auto flex items-center gap-5 max-md:contents`},_e={key:2,class:`md:ml-auto flex gap-4 max-md:mt-1 max-md:gap-2`},ve={class:`x-heading xs mb-6`},ye={class:`grid md:grid-cols-2 gap-3 md:gap-6`},be=[`id`,`value`],xe=[`for`],Se=[`id`,`value`],Ce=[`for`],we=[`id`,`value`],Te=[`for`],Ee=[`id`,`value`,`required`],De=[`for`],Oe=[`id`,`value`],ke=[`for`],Ae=[`id`],je=[`for`],Me={class:`x-heading xs mb-6`},Ne={class:`grid md:grid-cols-2 gap-3 md:gap-6`},Pe=[`id`,`value`],Fe=[`for`],Ie=[`id`,`value`],Le=[`for`],Re=[`id`,`value`],ze=[`for`],Be={class:`x-heading xs mb-6`},Ve={class:`grid md:grid-cols-2 gap-3 md:gap-6`},He={class:`x-group rounded-sm w-full`},Ue=[`id`,`value`,`pattern`],We=[`for`],Ge=[`id`,`value`],Ke=[`for`],qe={key:0},Je={class:`x-heading xs mb-6`},Ye={class:`grid md:grid-cols-12 gap-3 md:gap-6`},Xe=[`id`],Ze=[`for`],Qe=[`id`],$e=[`for`],et=[`id`],tt=[`for`],nt={class:`x-heading xs mb-6`},rt={class:`flex flex-col gap-2.5`},it=[`id`,`checked`],at=[`id`,`checked`],Q=!0,ot=p({__name:`CheckinRoomItem`,props:{checkinCompleted:{type:Boolean},checkinClosed:{type:Boolean},index:{type:Number},guest:{type:Object}},setup(e){let t={BASE_URL:`https://v4.bookoloengine.com/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,VITE_API_URL:`https://api.bookoloengine.com/desktop/v1`,VITE_BASE_URL:`https://v4.bookoloengine.com/`,VITE_DEBUG:`false`,VITE_FONT_URL:`https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap`,VITE_GOOGLE_MAPS_API_KEY:`AIzaSyDMusEQNO0rIJ86vZoowmPD2U2g5Ma8LOQ`,VITE_LOCALES_URL:`https://www.bookoloengine.com/userfiles/api/desktop/locales`,VITE_NAME:`bookolosystem-engine`,VITE_NAME_BANNER:`bookolosystem-banner`,VITE_PLAUSIBLE_URL:`https://plausible.newlogic.cz/js/script.outbound-links.js`,VITE_SENTRY_DSN:`https://015bded0d2216dceb2c50582f80e5f83@sentry.newlogic.cz/58`},{t:c}=v(),p=l(),h=e,y=z(),{data:S}=L(),w=a(!1),E=a(),k=a(h.checkinCompleted),A=o(),j=a(!1),M=o(),H=o({uuid:``}),{data:U,mutate:G,error:K,asyncStatus:q}=W(),J=()=>{w.value=!w.value},Y=({currentTarget:e})=>{let t=Object.fromEntries(new FormData(e));if(!A.value.output){j.value=!0;return}G(Object.assign(t,{uuid:h?.guest?.uuid,id:h?.guest?.id,signature:A.value.output}))};return u(U,e=>{e?.response?.status===200&&(w.value=!1,k.value=!0,p.invalidateQueries({key:[`reservation`]}))}),u([U,K],()=>{!K.value&&!U?.value?.error||(V(E.value?.$el,U?.value?.error?.params),y.add({class:`accent-error`,title:c(`error`),text:K?.value?.toString()??U.value?.error?.message}))}),(a,o)=>{let l=F,u=ne,p=ue,h=I,v=P,y=R,L=ee,z=X,V=ie,U=i(`RouterLink`),W=i(`i18n-t`),G=te,K=N;return s(),g(`div`,{class:f([`x-checkin-room-item outline outline-transparent -outline-offset-1 rounded-md group`,`transition-all data-open:outline-primary has-[+[data-open]]:border-transparent`]),"data-open":w.value?``:null},[C(`div`,fe,[C(`div`,pe,[e.guest?.firstName||e.guest?.lastName?(s(),g(T,{key:0},[D(m(e.guest?.firstName)+` `+m(e.guest?.lastName),1)],64)):(s(),g(T,{key:1},[D(m(d(c)(`guest`))+` `+m(e.index)+` `,1),e.guest?.type===`child`?(s(),g(`span`,me,` (`+m(d(c)(`childrenSingular`))+`) `,1)):_(``,!0)],64))]),C(`div`,{class:f([`x-badge md muted order-first`,{"accent-error":!k.value,"accent-success":k.value}])},[k.value?(s(),g(T,{key:1},[D(m(d(c)(`filled`)),1)],64)):(s(),g(T,{key:0},[D(m(d(c)(`notFilled`)),1)],64))],2),e.checkinClosed?(s(),g(`div`,he,m(d(c)(`onlineCheckinClosed`)),1)):k.value?(s(),g(`div`,ge,[C(`button`,{class:`x-title sm flex items-center gap-1.5 underline underline-transparent hocus:text-primary`,onClick:J},[o[1]||=C(`svg`,{"aria-hidden":`true`,class:`size-4`},[C(`use`,{href:`#icon-pencil-micro`})],-1),D(` `+m(d(c)(`editCheckin`)),1)]),o[2]||=C(`svg`,{"aria-hidden":`true`,class:`size-7 text-success max-md:order-first max-md:ml-auto`},[C(`use`,{href:`#icon-check-circle-solid`})],-1)])):(s(),g(`div`,_e,[w.value?_(``,!0):(s(),x(l,{key:0,size:`md`,onClick:J},{default:r(()=>[D(m(d(c)(`fillCheckin`)),1)]),_:1})),O(u,{size:`md`,class:`accent-main`,onClick:o[0]||=t=>[H.value={uuid:e.guest?.uuid},M.value.root.show()]},{default:r(()=>[D(m(d(c)(`shareCheckin`)),1)]),_:1}),O(p,n({ref_key:`checkinShareDialog`,ref:M},{...H.value}),null,16)]))]),w.value?(s(),x(K,{key:0,ref_key:`form`,ref:E,class:`p-4 md:p-6 flex flex-col gap-8`,onSubmit:b(Y,[`prevent`])},{default:r(()=>[C(`fieldset`,null,[C(`legend`,ve,m(d(c)(`personalDetails`)),1),C(`div`,ye,[O(v,null,{default:r(()=>[O(h,{size:`md`},{default:r(({uid:t})=>[C(`input`,{id:t,value:e.guest?.firstName,type:`text`,name:`firstName`,autocomplete:`given-name`,placeholder:` `,required:Q},null,8,be),C(`label`,{for:t},m(d(c)(`yourFirstname`)),9,xe)]),_:1})]),_:1}),O(v,null,{default:r(()=>[O(h,{size:`md`},{default:r(({uid:t})=>[C(`input`,{id:t,value:e.guest?.lastName,type:`text`,name:`lastName`,autocomplete:`family-name`,placeholder:` `,required:Q},null,8,Se),C(`label`,{for:t},m(d(c)(`yourLastname`)),9,Ce)]),_:1})]),_:1}),O(v,null,{default:r(()=>[O(h,{size:`md`},{default:r(({uid:t})=>[C(`input`,{id:t,value:e.guest?.birthDate,type:`date`,name:`birthDate`,autocomplete:`bday`,placeholder:` `,required:Q},null,8,we),C(`label`,{for:t},m(d(c)(`birthdate`)),9,Te)]),_:1})]),_:1}),O(v,null,{default:r(()=>[O(h,{size:`md`},{default:r(({uid:t})=>[C(`input`,{id:t,value:e.guest?.idNumber,type:`text`,name:`idNumber`,placeholder:` `,required:e.guest?.onlineCheckinIdNumberRequired},null,8,Ee),C(`label`,{for:t},m(d(c)(`idNumber`)),9,De)]),_:1})]),_:1}),O(v,null,{default:r(()=>[O(y,{name:`citizenship`,value:e.guest?.citizenship,required:Q,label:d(c)(`stateCitizenship`)},null,8,[`value`,`label`])]),_:1}),e.guest?.onlineCheckinShowLicensePlate||d(t).VITE_DEBUG===`true`?(s(),x(v,{key:0},{default:r(()=>[O(h,{size:`md`},{default:r(({uid:t})=>[C(`input`,{id:t,value:e.guest?.licensePlate,type:`text`,name:`licensePlate`,placeholder:` `},null,8,Oe),C(`label`,{for:t},m(d(c)(`licencePlate`)),9,ke)]),_:1})]),_:1})):_(``,!0),e.guest?.onlineCheckinShowVisa||d(t).VITE_DEBUG===`true`?(s(),x(v,{key:1},{default:r(()=>[O(h,{size:`md`},{default:r(({uid:e})=>[C(`input`,{id:e,type:`text`,name:`visa`,placeholder:` `},null,8,Ae),C(`label`,{for:e},m(d(c)(`visaNumber`)),9,je)]),_:1})]),_:1})):_(``,!0)])]),C(`fieldset`,null,[C(`legend`,Me,m(d(c)(`residence`)),1),C(`div`,Ne,[O(v,null,{default:r(()=>[O(h,{size:`md`},{default:r(({uid:t})=>[C(`input`,{id:t,value:e.guest?.street,type:`text`,name:`street`,autocomplete:`street-address`,placeholder:` `,required:Q},null,8,Pe),C(`label`,{for:t},m(d(c)(`streetAddress`)),9,Fe)]),_:1})]),_:1}),O(v,null,{default:r(()=>[O(h,{size:`md`},{default:r(({uid:t})=>[C(`input`,{id:t,value:e.guest?.city,type:`text`,name:`city`,autocomplete:`address-level2`,placeholder:` `,required:Q},null,8,Ie),C(`label`,{for:t},m(d(c)(`city`)),9,Le)]),_:1})]),_:1}),O(v,null,{default:r(()=>[O(h,{size:`md`},{default:r(({uid:t})=>[C(`input`,{id:t,value:e.guest?.postalCode,type:`text`,name:`postalCode`,autocomplete:`postal-code`,placeholder:` `,required:Q},null,8,Re),C(`label`,{for:t},m(d(c)(`postalCode`)),9,ze)]),_:1})]),_:1}),O(v,null,{default:r(()=>[O(y,{value:e.guest?.country,required:Q},null,8,[`value`])]),_:1})])]),C(`fieldset`,null,[C(`legend`,Be,m(d(c)(`contactDetails`)),1),C(`div`,Ve,[O(v,null,{default:r(()=>[C(`div`,He,[O(L,{value:e.guest?.telCountryCode},null,8,[`value`]),O(h,{class:`grow`,size:`md`},{default:r(({uid:t})=>[C(`input`,{id:t,value:e.guest?.telNational,name:`telNational`,type:`tel`,pattern:d(B).telNational,placeholder:` `,autocomplete:`tel-national`,required:Q},null,8,Ue),C(`label`,{for:t},m(d(c)(`tel`)),9,We)]),_:1})])]),_:1}),O(v,null,{default:r(()=>[O(h,{size:`md`},{default:r(({uid:t})=>[C(`input`,{id:t,value:e.guest?.email,name:`email`,type:`email`,placeholder:` `,autocomplete:`email`,required:Q},null,8,Ge),C(`label`,{for:t},m(d(c)(`email`)),9,Ke)]),_:1})]),_:1})])]),e.guest?.onlineCheckinShowCreditCard||d(t).VITE_DEBUG===`true`?(s(),g(`fieldset`,qe,[C(`legend`,Je,m(d(c)(`creditCard`)),1),C(`div`,Ye,[O(v,{class:`col-span-8`},{default:r(()=>[O(h,{size:`md`},{default:r(({uid:e})=>[O(z,{"allowed-card-types":d(S)?.creditCardTypes,type:`cc-number`},{default:r(({setRef:t})=>[C(`input`,{id:e,ref:t,type:`text`,name:`cardNumber`,placeholder:` `,autocomplete:`cc-number`,required:Q},null,8,Xe)]),_:2},1032,[`allowed-card-types`]),C(`label`,{for:e},m(d(c)(`cardNumber`)),9,Ze)]),_:1})]),_:1}),O(v,{class:`col-span-4`},{default:r(()=>[O(h,{size:`md`},{default:r(({uid:e})=>[O(z,{type:`cc-exp`},{default:r(({setRef:t})=>[C(`input`,{id:e,ref:t,name:`cardExpiry`,type:`text`,placeholder:`__/__`,maxlength:`5`,autocomplete:`cc-exp`,class:`focus:placeholder:text-main-secondary`,required:Q},null,8,Qe)]),_:2},1024),C(`label`,{for:e},m(d(c)(`expDate`)),9,$e)]),_:1})]),_:1}),O(v,{class:`col-span-12`},{default:r(()=>[O(h,{size:`md`},{default:r(({uid:e})=>[C(`input`,{id:e,type:`text`,name:`cardName`,placeholder:` `,autocomplete:`cc-name`,required:Q},null,8,et),C(`label`,{for:e},m(d(c)(`nameOnCard`)),9,tt)]),_:1})]),_:1})])])):_(``,!0),C(`fieldset`,null,[C(`legend`,nt,m(d(c)(`signature`)),1),O(v,null,{default:r(()=>[O(V,{ref_key:`signature`,ref:A,value:e.guest?.signature,invalid:j.value},null,8,[`value`,`invalid`])]),_:1})]),C(`fieldset`,rt,[O(v,null,{default:r(()=>[O(G,null,{default:r(({uid:t})=>[C(`input`,{id:t,type:`checkbox`,checked:e.guest?.onlineCheckinCompleted,required:Q},null,8,it),O(W,{for:t,keypath:`agreeWith`,tag:`label`},{default:r(()=>[O(U,{class:`underline transition hocus:text-primary`,to:`/text/privacy-policy`},{default:r(()=>[D(m(d(c)(`agreeWithSlot.personalData`)),1)]),_:1})]),_:1},8,[`for`])]),_:1})]),_:1}),e.guest?.onlineCheckinShowTradeTerms||d(t).VITE_DEBUG===`true`?(s(),x(v,{key:0},{default:r(()=>[O(G,null,{default:r(({uid:t})=>[C(`input`,{id:t,checked:e.guest?.onlineCheckinCompleted,type:`checkbox`,required:Q},null,8,at),O(W,{for:t,keypath:`agreeWith`,tag:`label`},{default:r(()=>[O(U,{class:`underline transition hocus:text-primary`,to:`/text/trade-terms`},{default:r(()=>[D(m(d(c)(`agreeWithSlot.termsConditions`)),1)]),_:1})]),_:1},8,[`for`])]),_:1})]),_:1})):_(``,!0)]),O(l,{size:`md`,class:`mr-auto`,type:`submit`,loading:d(q)===`loading`},{default:r(()=>[D(m(d(c)(`saveCheckin`)),1)]),_:1},8,[`loading`])]),_:1},512)):_(``,!0)],8,de)}}}),st={class:`x-checkin-room card p-3 md:p-6 bg-body-primary rounded-xl flex flex-col gap-6.5`},ct={class:`flex gap-5`},lt={class:`x-image rounded-md before:skeleton h-17.5`},ut=[`src`,`alt`],dt={class:`flex flex-col gap-1`},ft={class:`x-heading sm`},pt={class:`x-text xs`},mt={class:`x-title sm text-primary mt-auto`},ht={class:`flex flex-col divide-y divide-main-tertiary`},gt=p({__name:`CheckinRoom`,props:{room:{type:Object}},setup(e){let t={BASE_URL:`https://v4.bookoloengine.com/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,VITE_API_URL:`https://api.bookoloengine.com/desktop/v1`,VITE_BASE_URL:`https://v4.bookoloengine.com/`,VITE_DEBUG:`false`,VITE_FONT_URL:`https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap`,VITE_GOOGLE_MAPS_API_KEY:`AIzaSyDMusEQNO0rIJ86vZoowmPD2U2g5Ma8LOQ`,VITE_LOCALES_URL:`https://www.bookoloengine.com/userfiles/api/desktop/locales`,VITE_NAME:`bookolosystem-engine`,VITE_NAME_BANNER:`bookolosystem-banner`,VITE_PLAUSIBLE_URL:`https://plausible.newlogic.cz/js/script.outbound-links.js`,VITE_SENTRY_DSN:`https://015bded0d2216dceb2c50582f80e5f83@sentry.newlogic.cz/58`},{t:n}=v();return(r,i)=>{let a=ot;return s(),g(`div`,st,[C(`div`,ct,[C(`div`,lt,[C(`img`,{src:e.room?.roomImage?.[`1x`],class:`aspect-4/3 object-cover`,loading:`lazy`,alt:e.room?.roomImage?.alt},null,8,ut)]),C(`div`,dt,[C(`h2`,ft,m(e.room?.roomName),1),C(`div`,pt,[D(m(e.room?.rateName)+` `,1),e.room?.prices?.finalPriceExtraBeds?(s(),g(T,{key:0},[D(` (+`+m(d(n)(`extraBed`))+`) `,1)],64)):_(``,!0)]),C(`div`,mt,m(d(n)(`filled`))+` `+m(e.room?.guests?.filter(e=>e?.onlineCheckinCompleted)?.length)+`/`+m(e.room?.guests?.length),1)])]),C(`div`,ht,[(s(!0),g(T,null,c(e.room?.guests,(e,n)=>(s(),x(a,{key:n,ref_for:!0,ref:`rooms`,index:n+1,guest:e,"checkin-completed":e?.onlineCheckinCompleted,"checkin-closed":!e?.onlineCheckinAllowed&&d(t).VITE_DEBUG!==`true`},null,8,[`index`,`guest`,`checkin-completed`,`checkin-closed`]))),128))])])}}}),_t={class:`x-checkin-info card p-4 md:p-6 bg-body-primary rounded-xl flex flex-col gap-5`},vt={class:`x-heading sm flex items-center`},yt={key:0,class:`x-badge md muted accent-success ml-auto -my-0.5`},$={class:`flex flex-col gap-5`},bt={class:`flex gap-4`},xt={class:`flex flex-col gap-1 grow`},St={class:`x-title sm font-medium`},Ct={key:0,class:`x-title`},wt={key:1,class:`skeleton h-5 rounded-md w-full max-w-2/5`},Tt={class:`flex gap-4`},Et={class:`flex flex-col gap-1 grow`},Dt={key:0,class:`x-title sm font-medium`},Ot={key:1,class:`skeleton h-4 rounded-md w-full max-w-32`},kt={key:2,class:`x-title`},At={key:3,class:`skeleton h-5 rounded-md w-3/4`},jt={class:`x-text xs`},Mt=p({__name:`CheckinInfo`,props:{checkInDate:{type:[String,null]},checkOutDate:{type:[String,null]},completed:{type:Boolean}},setup(e){let{data:t}=L(),{t:n,d:r}=v(),{data:i,isPending:a}=G();return(o,c)=>(s(),g(`div`,_t,[C(`h1`,vt,[D(m(d(n)(`onlineCheckin`))+` `,1),e.completed?(s(),g(`div`,yt,m(d(n)(`completed`)),1)):_(``,!0)]),C(`ul`,$,[C(`li`,bt,[c[0]||=C(`div`,{class:`size-10 bg-primary flex justify-center items-center rounded-md shrink-0`,"aria-hidden":`true`},[C(`svg`,{"aria-hidden":`true`,class:`size-5 text-primary-foreground`},[C(`use`,{href:`#icon-clock-mini`})])],-1),C(`div`,xt,[C(`div`,St,m(d(n)(`dateOfStay`)),1),e.checkInDate&&e.checkOutDate?(s(),g(`div`,Ct,m(d(r)(e.checkInDate,{timeZone:d(t)?.timeZone}))+` – `+m(d(r)(e.checkOutDate,{timeZone:d(t)?.timeZone})),1)):(s(),g(`div`,wt))])]),C(`li`,Tt,[c[1]||=C(`div`,{class:`size-10 bg-primary flex justify-center items-center rounded-md shrink-0`,"aria-hidden":`true`},[C(`svg`,{"aria-hidden":`true`,class:`size-5 text-primary-foreground`},[C(`use`,{href:`#icon-map-pin-mini`})])],-1),C(`div`,Et,[d(a)?(s(),g(`div`,Ot)):(s(),g(`div`,Dt,m(d(i)?.name),1)),d(a)?(s(),g(`div`,At)):(s(),g(`div`,kt,m(d(i)?.street)+` `+m(d(i)?.postalCode)+` `+m(d(i)?.city)+` - `+m(d(i)?.country),1))])])]),C(`div`,jt,m(d(n)(`checkinDescription`)),1)]))}}),Nt={class:`flex flex-col gap-2.5`},Pt=p({__name:`[uuid]`,setup(e){let t=k(),{t:n}=v(),i=z(),{data:a,error:o}=Y({guestUuid:q().value.uuid});return u([a,o],()=>{!o.value&&!a?.value?.error||(t.push(`/`),i.add({class:`accent-error`,title:n(`error`),text:o?.value?.toString()??a.value?.error?.message}))}),(e,t)=>{let n=Mt,i=gt,o=J,l=K;return s(),x(l,{class:`grid lg:grid-cols-[1fr_28.25rem] gap-3 lg:gap-6`},{default:r(()=>[C(`div`,Nt,[O(n,{"check-in-date":d(a)?.accommodation?.checkInDate,"check-out-date":d(a)?.accommodation?.checkOutDate,completed:d(a)?.accommodation?.onlineCheckinCompleted},null,8,[`check-in-date`,`check-out-date`,`completed`]),(s(!0),g(T,null,c(d(a)?.accommodation?.rooms,(e,t)=>(s(),x(i,{key:t,room:e},null,8,[`room`]))),128))]),O(o,{class:`transition-all md:sticky md:top-[calc(var(--x-main-sticky-top)+1rem)] self-start`})]),_:1})}}});export{Pt 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.UEAfe26O.js";import{W as S,t as C}from"./params.BYxK9z6w.js";import"./localeRules.ISFWYFF6.js";import{n as te,t as ne}from"./DialogContent.oj4AjH0A.js";import{t as re}from"./Button.DENQlfoV.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.B35Zk1Vj.js";import"./staleTimes.BFpWFXo3.js";import"./countries.DHA-CuXb.js";import{t as de}from"./config.DN5PrzYj.js";import{t as fe}from"./toaster.Duospl3o.js";import{t as pe}from"./Circle.BqRlZ-Ni.js";import{t as j}from"./ButtonBordered.Buog5XUd.js";import{t as M}from"./formatPrice.BoNSJ3UV.js";import{t as me}from"./hotel.CHXHOAo8.js";import{t as he}from"./Main.CK41faK0.js";import{i as ge,n as N,r as P,t as F}from"./OrderConfirmedStatus.DG6GhTD-.js";import{t as I}from"./routeParams.DU9zPEL5.js";import{t as L}from"./CheckinApp.XKpaXHHH.js";import{a as _e}from"./order.Bi7Btnb0.js";import{t as R}from"./getPaymentUrl.DOaXoJD3.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,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.UEAfe26O.js";import{W as p}from"./params.BYxK9z6w.js";import"./localeRules.ISFWYFF6.js";import"./DialogContent.oj4AjH0A.js";import{n as m}from"./Field.BhjqVj0S.js";import{c as h,o as g}from"./client.B35Zk1Vj.js";import"./staleTimes.BFpWFXo3.js";import"./countries.DHA-CuXb.js";import"./config.DN5PrzYj.js";import"./ControlTelCountryCode.DCl_oZNm.js";import{t as _}from"./toaster.Duospl3o.js";import"./calendarFlexibleDialog.CiT3ybyU.js";import"./formatPrice.BoNSJ3UV.js";import{a as v}from"./reservation.DewbR-PT.js";import"./dateFormatter.Cdnyqc1C.js";import"./hotel.CHXHOAo8.js";import{t as y}from"./Main.CK41faK0.js";import{t as b}from"./statusDialog.CHyOH2aw.js";import"./fancybox.BbYneWyM.js";import"./PackageDetailDialogContent.C7QuaUVb.js";import{t as x}from"./routeParams.DU9zPEL5.js";import"./RoomDetailDialogContent.D7S_QzBs.js";import"./order.Bi7Btnb0.js";import{t as S}from"./AsideOrderSummary.WKel7SKl.js";import{i as C,t as w}from"./reservation.C4YvgAfn.js";import{t as T}from"./OrderAccommodation.C9VudX_y.js";import"./RoomDetailDialog.kQfSl3kd.js";import{t as E}from"./ReservationEditInfo.CFwOVwT6.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{Hn as e,In as t,Kn as n,Mn as r,Pn as i,Vn as a,Xn as o,bn as s,er as c,fn as l,gn as u,hn as d,jt as f,ln as ee,mn as p,pn as m,un as h,vn as g,yn as _}from"./vendor.BGu2qkTq.js";import{W as v,t as y}from"./params.DR2mabOE.js";import"./localeRules.DuB-8maD.js";import{n as te,t as ne}from"./Field.Bw7PCeQ1.js";import{t as re}from"./Button.DSwXM1vM.js";import"./client.DrMpyevc.js";import"./staleTimes.BuCDd__I.js";import{t as b}from"./countries.CE6bN6gS.js";import{t as x}from"./config.tpbdABlZ.js";import{t as ie}from"./Check.1kttjrU5.js";import{t as S}from"./toaster.DOHhVfsI.js";import{t as C}from"./formatPrice.BEcRqhQn.js";import{i as ae}from"./reservation.Co3PKchx.js";import{t as w}from"./hotel.BmQNwmkI.js";import{t as T}from"./Main.B6URJ_XN.js";import{t as E}from"./routeParams.6hpnfcMT.js";import{t as oe}from"./getPaymentUrl.xa_1GwGz.js";import{i as D,n as se}from"./reservation.BzOjnZgI.js";var ce={key:0,class:`flex flex-col gap-5`},O={class:`x-heading xs`},k={key:1,class:`flex flex-col gap-5`},A={class:`x-heading xs`},j={class:`flex flex-col gap-3`},M={class:`x-title sm`},N={class:`x-title sm`},P={key:0,class:`x-title text-right`},F={class:`py-2.5 px-3 bg-accent/15 rounded-md`},I={class:`flex items-center justify-between mb-3`},L={class:`x-heading xs`},R={class:`x-heading xs text-accent`},z={class:`x-text xs`},B={key:2,class:`flex flex-col gap-5`},V={class:`x-heading xs`},H={class:`x-text xs`},U={key:3,class:`flex flex-col gap-5`},W={class:`x-heading xs`},G={class:`x-text xs`},le={key:4,class:`flex flex-col gap-2 pr-4`},ue=[`id`],de=[`id`],K=s({__name:`CheckoutSummary`,props:{uuid:{type:String},paymentUrl:{type:String},completed:{type:Boolean}},setup(s){let v=s,{t:b}=f(),x=n(v.completed),w=n(!1),T=S(),E=y(),{data:D,isPending:K}=se({uuid:v.uuid}),{mutate:q,data:J,error:Y,isLoading:X}=ae();a(J,e=>{e?.response?.status===200&&(x.value=!0)}),a([J,Y],()=>{!Y.value&&!J?.value?.error||T.add({class:`accent-error`,title:b(`error`),text:Y?.value?.toString()??J.value?.error?.message})}),a(()=>v.completed,e=>{x.value||=e});let Z=()=>{D.value&&D.value?.length>0?(w.value=!0,window.location.replace(oe(v.paymentUrl,E.url))):q({accommodation:{uuid:v.uuid}})},Q=l(()=>D?.value?.reduce((e,t)=>e+(t.price??0)*(t.count??1),0));return(n,a)=>{let s=t(`RouterLink`),l=t(`i18n-t`),f=ie,v=ne,y=re,S=te;return r(),p(S,{class:`x-checkout-summary card p-4 md:p-6 bg-body-primary rounded-xl flex flex-col gap-4 md:gap-8`,onSubmit:ee(Z,[`prevent`])},{default:e(()=>[o(K)&&!x.value?(r(),u(`div`,ce,[a[0]||=m(`div`,{class:`rounded-md bg-accent text-accent-foreground size-10 flex justify-center items-center`},[m(`span`,{class:`spinner`})],-1),m(`h2`,O,c(o(b)(`momentOfPatience`)),1)])):o(D)?.length>0&&!x.value?(r(),u(`div`,k,[m(`h2`,A,c(o(b)(`additionalServicesToPay`)),1),m(`div`,j,[(r(!0),u(h,null,i(o(D),(e,t)=>(r(),u(`div`,{key:t,class:`grid items-center grid-cols-[3fr_2rem_1fr]`},[m(`div`,M,[g(c(e.text)+` - `,1),a[1]||=m(`span`,{class:`font-medium text-main-secondary`},`zvíře/noc`,-1)]),m(`div`,N,c(e.count),1),e.price>=0?(r(),u(`div`,P,c(o(C)(e.price,e.currency)),1)):d(``,!0)]))),128))]),m(`div`,F,[m(`div`,I,[m(`div`,L,c(o(b)(`totalAmount`)),1),m(`div`,R,c(o(C)(Q.value,o(D)?.[0]?.currency)),1)]),m(`div`,z,c(o(b)(`includingVat`)),1)])])):x.value?(r(),u(`div`,U,[a[3]||=m(`div`,{class:`rounded-md bg-accent text-accent-foreground size-10 flex justify-center items-center`},[m(`svg`,null,[m(`use`,{href:`#icon-check-mini`})])],-1),m(`h2`,W,c(o(b)(`status.checkoutSuccess`)),1),m(`div`,G,c(o(b)(`checkoutPaidInfoCompleted`)),1)])):(r(),u(`div`,B,[a[2]||=m(`div`,{class:`rounded-md bg-accent text-accent-foreground size-10 flex justify-center items-center`},[m(`svg`,null,[m(`use`,{href:`#icon-check-mini`})])],-1),m(`h2`,V,c(o(b)(`everythingIsPaid`)),1),m(`div`,H,c(o(b)(`checkoutPaidInfo`)),1)])),!x.value&&x.value!==void 0?(r(),u(`div`,le,[_(v,null,{default:e(()=>[_(f,null,{default:e(({uid:t})=>[m(`input`,{id:t,type:`checkbox`,required:``},null,8,ue),_(l,{for:t,keypath:`agreeWith`,tag:`label`},{default:e(()=>[_(s,{class:`underline transition hocus:text-primary`,to:`/text/privacy-policy`},{default:e(()=>[g(c(o(b)(`agreeWithSlot.personalData`)),1)]),_:1})]),_:1},8,[`for`])]),_:1})]),_:1}),_(v,null,{default:e(()=>[_(f,null,{default:e(({uid:t})=>[m(`input`,{id:t,type:`checkbox`,required:``},null,8,de),_(l,{for:t,keypath:`agreeWith`,tag:`label`},{default:e(()=>[_(s,{class:`underline transition hocus:text-primary`,to:`/text/trade-terms`},{default:e(()=>[g(c(o(b)(`agreeWithSlot.termsConditions`)),1)]),_:1})]),_:1},8,[`for`])]),_:1})]),_:1})])):d(``,!0),!x.value&&x.value!==void 0?(r(),p(y,{key:5,disabled:o(K)||void 0,loading:o(X)||w.value,type:`submit`,class:`self-start`},{default:e(()=>[g(c(o(b)(`completeOnlineCheckout`)),1)]),_:1},8,[`disabled`,`loading`])):d(``,!0)]),_:1})}}}),q={class:`x-checkout-room card p-3 md:p-6 bg-body-primary rounded-xl flex flex-col gap-6.5`},J={class:`flex gap-5`},Y={class:`x-image rounded-md before:skeleton h-17.5`},X=[`src`,`alt`],Z={class:`flex flex-col justify-center gap-1`},Q={class:`x-heading sm`},fe={class:`x-text xs`},pe={key:0,class:`flex flex-col`},me={class:`x-heading xs pb-5 mb-3 border-b border-b-main-tertiary`},he={class:`flex flex-col divide-y divide-main-tertiary divide-gap-y-3`},ge={class:`flex items-center justify-between`},_e={class:`x-title`},ve={class:`x-text sm font-medium`},ye={class:`flex items-center justify-between`},be={class:`x-title`},xe={class:`x-text sm font-medium`},Se={class:`flex items-center justify-between`},Ce={class:`x-title`},we={class:`x-text sm font-medium`},Te={class:`flex items-center justify-between`},Ee={class:`x-title`},De={class:`x-text sm font-medium`},Oe=s({__name:`CheckoutRoom`,props:{guest:{type:[Object,null]},room:{type:Object}},setup(e){let{t}=f(),{data:n}=b();return(i,a)=>(r(),u(`div`,q,[m(`div`,J,[m(`div`,Y,[m(`img`,{src:e.room?.roomImage?.[`1x`],class:`aspect-4/3 object-cover`,loading:`lazy`,alt:e.room?.roomImage?.alt},null,8,X)]),m(`div`,Z,[m(`h2`,Q,c(e.room?.roomName),1),m(`div`,fe,[g(c(e.room?.rateName)+` `,1),e.room?.prices?.finalPriceExtraBeds?(r(),u(h,{key:0},[g(` (+`+c(o(t)(`extraBed`))+`) `,1)],64)):d(``,!0)])])]),e.guest?(r(),u(`div`,pe,[m(`h2`,me,c(e.guest?.firstName)+` `+c(e.guest?.lastName),1),m(`ul`,he,[m(`li`,ge,[m(`div`,_e,c(o(t)(`email`)),1),m(`div`,ve,c(e.guest?.email),1)]),m(`li`,ye,[m(`div`,be,c(o(t)(`tel`)),1),m(`div`,xe,c(e.guest?.tel),1)]),m(`li`,Se,[m(`div`,Ce,c(o(t)(`country`)),1),m(`div`,we,c(o(n)?.find(t=>t.code===e.guest?.country)?.name),1)]),m(`li`,Te,[m(`div`,Ee,c(o(t)(`address`)),1),m(`div`,De,c(e.guest?.street)+`, `+c(e.guest?.city)+`, `+c(e.guest?.postalCode),1)])])])):d(``,!0)]))}}),ke={class:`x-checkin-info card p-4 md:p-6 bg-body-primary rounded-xl flex flex-col gap-5`},Ae={class:`x-heading sm`},je={class:`x-text`},Me={class:`grid lg:grid-cols-2 gap-3 lg:gap-6`},Ne={class:`flex gap-4`},Pe={class:`flex flex-col gap-1 grow`},Fe={class:`x-title sm font-medium`},Ie={key:0,class:`x-title`},Le={key:1,class:`skeleton h-5 rounded-md w-full max-w-2/5`},Re={class:`flex gap-4`},ze={class:`flex flex-col gap-1`},Be={class:`x-title sm font-medium`},Ve={class:`x-title`},$={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 grow`},qe={key:0,class:`x-title sm font-medium`},Je={key:1,class:`skeleton h-4 rounded-md w-full max-w-32`},Ye={key:2,class:`x-title`},Xe={key:3,class:`skeleton h-5 rounded-md w-3/4`},Ze=s({__name:`CheckoutInfo`,props:{accommodation:{type:[Object,null]},checkInDate:{type:[String,null]},checkOutDate:{type:[String,null]},completed:{type:Boolean}},setup(e){let{data:t}=x(),{t:n,d:i}=f(),{data:a,isPending:s}=w();return(l,f)=>(r(),u(`div`,ke,[m(`h1`,Ae,[g(c(o(n)(`onlineCheckout`))+` `,1),m(`span`,je,`#`+c(e.accommodation?.number),1)]),m(`ul`,Me,[m(`li`,Ne,[f[0]||=m(`div`,{class:`size-10 bg-primary flex justify-center items-center rounded-md shrink-0`,"aria-hidden":`true`},[m(`svg`,{"aria-hidden":`true`,class:`size-5 text-primary-foreground`},[m(`use`,{href:`#icon-clock-mini`})])],-1),m(`div`,Pe,[m(`div`,Fe,c(o(n)(`dateOfStay`)),1),e.checkInDate&&e.checkOutDate?(r(),u(`div`,Ie,c(o(i)(e.checkInDate,{timeZone:o(t)?.timeZone}))+` – `+c(o(i)(e.checkOutDate,{timeZone:o(t)?.timeZone})),1)):(r(),u(`div`,Le))])]),m(`li`,Re,[f[1]||=m(`div`,{class:`size-10 bg-primary flex justify-center items-center rounded-md shrink-0`,"aria-hidden":`true`},[m(`svg`,{"aria-hidden":`true`,class:`size-5 text-primary-foreground`},[m(`use`,{href:`#icon-user-group-mini`})])],-1),m(`div`,ze,[m(`div`,Be,c(o(n)(`guests`)),1),m(`div`,Ve,[g(c(e.accommodation?.totalAdults)+` `+c(o(n)(`adultsPlural`,e.accommodation?.totalAdults??0))+` `,1),e.accommodation?.totalChildren>0?(r(),u(h,{key:0},[g(` + `+c(e.accommodation?.totalChildren)+` `+c(o(n)(`childrenPlural`,e.accommodation?.totalChildren))+` (`+c(e.accommodation?.rooms?.flatMap(e=>(e.children??[]).map(e=>e.age)).join(`,`))+`) `,1)],64)):d(``,!0)])])]),m(`li`,$,[f[2]||=m(`div`,{class:`size-10 bg-primary flex justify-center items-center rounded-md shrink-0`,"aria-hidden":`true`},[m(`svg`,{"aria-hidden":`true`,class:`size-5 text-primary-foreground`},[m(`use`,{href:`#icon-bed-mini`})])],-1),m(`div`,He,[m(`div`,Ue,c(o(n)(`numberOfRooms`)),1),m(`div`,We,c(e.accommodation?.totalRooms),1)])]),m(`li`,Ge,[f[3]||=m(`div`,{class:`size-10 bg-primary flex justify-center items-center rounded-md shrink-0`,"aria-hidden":`true`},[m(`svg`,{"aria-hidden":`true`,class:`size-5 text-primary-foreground`},[m(`use`,{href:`#icon-map-pin-mini`})])],-1),m(`div`,Ke,[o(s)?(r(),u(`div`,Je)):(r(),u(`div`,qe,c(o(a)?.name),1)),o(s)?(r(),u(`div`,Xe)):(r(),u(`div`,Ye,c(o(a)?.street)+` `+c(o(a)?.postalCode)+` `+c(o(a)?.city)+` - `+c(o(a)?.country),1))])])])]))}}),Qe={class:`flex flex-col gap-2.5`},$e=s({__name:`[uuid]`,setup(t){let n=v(),{t:s}=f(),c=S(),{data:l,error:d}=D({uuid:E().value.uuid});return a([l,d],()=>{!d.value&&!l?.value?.error||(n.push(`/`),c.add({class:`accent-error`,title:s(`error`),text:d?.value?.toString()??l.value?.error?.message}))}),(t,n)=>{let a=Ze,s=Oe,c=K,d=T;return r(),p(d,{class:`grid lg:grid-cols-[1fr_28.25rem] gap-3 lg:gap-6`},{default:e(()=>[m(`div`,Qe,[_(a,{"check-in-date":o(l)?.accommodation?.checkInDate,"check-out-date":o(l)?.accommodation?.checkOutDate,accommodation:o(l)?.accommodation,guest:o(l)?.guest},null,8,[`check-in-date`,`check-out-date`,`accommodation`,`guest`]),(r(!0),u(h,null,i(o(l)?.accommodation?.rooms,(e,t)=>(r(),p(s,{key:t,room:e,guest:e.guests?.[0]},null,8,[`room`,`guest`]))),128))]),_(c,{uuid:o(l)?.accommodation?.uuid,paymentUrl:o(l)?.accommodation?.checkoutPaymentUrl,completed:o(l)?.accommodation?.onlineCheckoutCompleted,class:`transition-all md:sticky md:top-[calc(var(--x-main-sticky-top)+1rem)] self-start`},null,8,[`uuid`,`paymentUrl`,`completed`])]),_:1})}}});export{$e as default};
1
+ import{Hn as e,In as t,Kn as n,Mn as r,Pn as i,Vn as a,Xn as o,bn as s,er as c,fn as l,gn as u,hn as d,jt as f,ln as ee,mn as p,pn as m,un as h,vn as g,yn as _}from"./vendor.UEAfe26O.js";import{W as v,t as y}from"./params.BYxK9z6w.js";import"./localeRules.ISFWYFF6.js";import{n as te,t as ne}from"./Field.BhjqVj0S.js";import{t as re}from"./Button.DENQlfoV.js";import"./client.B35Zk1Vj.js";import"./staleTimes.BFpWFXo3.js";import{t as b}from"./countries.DHA-CuXb.js";import{t as x}from"./config.DN5PrzYj.js";import{t as ie}from"./Check.CGkdXv8U.js";import{t as S}from"./toaster.Duospl3o.js";import{t as C}from"./formatPrice.BoNSJ3UV.js";import{i as ae}from"./reservation.DewbR-PT.js";import{t as w}from"./hotel.CHXHOAo8.js";import{t as T}from"./Main.CK41faK0.js";import{t as E}from"./routeParams.DU9zPEL5.js";import{t as oe}from"./getPaymentUrl.DOaXoJD3.js";import{i as D,n as se}from"./reservation.C4YvgAfn.js";var ce={key:0,class:`flex flex-col gap-5`},O={class:`x-heading xs`},k={key:1,class:`flex flex-col gap-5`},A={class:`x-heading xs`},j={class:`flex flex-col gap-3`},M={class:`x-title sm`},N={class:`x-title sm`},P={key:0,class:`x-title text-right`},F={class:`py-2.5 px-3 bg-accent/15 rounded-md`},I={class:`flex items-center justify-between mb-3`},L={class:`x-heading xs`},R={class:`x-heading xs text-accent`},z={class:`x-text xs`},B={key:2,class:`flex flex-col gap-5`},V={class:`x-heading xs`},H={class:`x-text xs`},U={key:3,class:`flex flex-col gap-5`},W={class:`x-heading xs`},G={class:`x-text xs`},le={key:4,class:`flex flex-col gap-2 pr-4`},ue=[`id`],de=[`id`],K=s({__name:`CheckoutSummary`,props:{uuid:{type:String},paymentUrl:{type:String},completed:{type:Boolean}},setup(s){let v=s,{t:b}=f(),x=n(v.completed),w=n(!1),T=S(),E=y(),{data:D,isPending:K}=se({uuid:v.uuid}),{mutate:q,data:J,error:Y,isLoading:X}=ae();a(J,e=>{e?.response?.status===200&&(x.value=!0)}),a([J,Y],()=>{!Y.value&&!J?.value?.error||T.add({class:`accent-error`,title:b(`error`),text:Y?.value?.toString()??J.value?.error?.message})}),a(()=>v.completed,e=>{x.value||=e});let Z=()=>{D.value&&D.value?.length>0?(w.value=!0,window.location.replace(oe(v.paymentUrl,E.url))):q({accommodation:{uuid:v.uuid}})},Q=l(()=>D?.value?.reduce((e,t)=>e+(t.price??0)*(t.count??1),0));return(n,a)=>{let s=t(`RouterLink`),l=t(`i18n-t`),f=ie,v=ne,y=re,S=te;return r(),p(S,{class:`x-checkout-summary card p-4 md:p-6 bg-body-primary rounded-xl flex flex-col gap-4 md:gap-8`,onSubmit:ee(Z,[`prevent`])},{default:e(()=>[o(K)&&!x.value?(r(),u(`div`,ce,[a[0]||=m(`div`,{class:`rounded-md bg-accent text-accent-foreground size-10 flex justify-center items-center`},[m(`span`,{class:`spinner`})],-1),m(`h2`,O,c(o(b)(`momentOfPatience`)),1)])):o(D)?.length>0&&!x.value?(r(),u(`div`,k,[m(`h2`,A,c(o(b)(`additionalServicesToPay`)),1),m(`div`,j,[(r(!0),u(h,null,i(o(D),(e,t)=>(r(),u(`div`,{key:t,class:`grid items-center grid-cols-[3fr_2rem_1fr]`},[m(`div`,M,[g(c(e.text)+` - `,1),a[1]||=m(`span`,{class:`font-medium text-main-secondary`},`zvíře/noc`,-1)]),m(`div`,N,c(e.count),1),e.price>=0?(r(),u(`div`,P,c(o(C)(e.price,e.currency)),1)):d(``,!0)]))),128))]),m(`div`,F,[m(`div`,I,[m(`div`,L,c(o(b)(`totalAmount`)),1),m(`div`,R,c(o(C)(Q.value,o(D)?.[0]?.currency)),1)]),m(`div`,z,c(o(b)(`includingVat`)),1)])])):x.value?(r(),u(`div`,U,[a[3]||=m(`div`,{class:`rounded-md bg-accent text-accent-foreground size-10 flex justify-center items-center`},[m(`svg`,null,[m(`use`,{href:`#icon-check-mini`})])],-1),m(`h2`,W,c(o(b)(`status.checkoutSuccess`)),1),m(`div`,G,c(o(b)(`checkoutPaidInfoCompleted`)),1)])):(r(),u(`div`,B,[a[2]||=m(`div`,{class:`rounded-md bg-accent text-accent-foreground size-10 flex justify-center items-center`},[m(`svg`,null,[m(`use`,{href:`#icon-check-mini`})])],-1),m(`h2`,V,c(o(b)(`everythingIsPaid`)),1),m(`div`,H,c(o(b)(`checkoutPaidInfo`)),1)])),!x.value&&x.value!==void 0?(r(),u(`div`,le,[_(v,null,{default:e(()=>[_(f,null,{default:e(({uid:t})=>[m(`input`,{id:t,type:`checkbox`,required:``},null,8,ue),_(l,{for:t,keypath:`agreeWith`,tag:`label`},{default:e(()=>[_(s,{class:`underline transition hocus:text-primary`,to:`/text/privacy-policy`},{default:e(()=>[g(c(o(b)(`agreeWithSlot.personalData`)),1)]),_:1})]),_:1},8,[`for`])]),_:1})]),_:1}),_(v,null,{default:e(()=>[_(f,null,{default:e(({uid:t})=>[m(`input`,{id:t,type:`checkbox`,required:``},null,8,de),_(l,{for:t,keypath:`agreeWith`,tag:`label`},{default:e(()=>[_(s,{class:`underline transition hocus:text-primary`,to:`/text/trade-terms`},{default:e(()=>[g(c(o(b)(`agreeWithSlot.termsConditions`)),1)]),_:1})]),_:1},8,[`for`])]),_:1})]),_:1})])):d(``,!0),!x.value&&x.value!==void 0?(r(),p(y,{key:5,disabled:o(K)||void 0,loading:o(X)||w.value,type:`submit`,class:`self-start`},{default:e(()=>[g(c(o(b)(`completeOnlineCheckout`)),1)]),_:1},8,[`disabled`,`loading`])):d(``,!0)]),_:1})}}}),q={class:`x-checkout-room card p-3 md:p-6 bg-body-primary rounded-xl flex flex-col gap-6.5`},J={class:`flex gap-5`},Y={class:`x-image rounded-md before:skeleton h-17.5`},X=[`src`,`alt`],Z={class:`flex flex-col justify-center gap-1`},Q={class:`x-heading sm`},fe={class:`x-text xs`},pe={key:0,class:`flex flex-col`},me={class:`x-heading xs pb-5 mb-3 border-b border-b-main-tertiary`},he={class:`flex flex-col divide-y divide-main-tertiary divide-gap-y-3`},ge={class:`flex items-center justify-between`},_e={class:`x-title`},ve={class:`x-text sm font-medium`},ye={class:`flex items-center justify-between`},be={class:`x-title`},xe={class:`x-text sm font-medium`},Se={class:`flex items-center justify-between`},Ce={class:`x-title`},we={class:`x-text sm font-medium`},Te={class:`flex items-center justify-between`},Ee={class:`x-title`},De={class:`x-text sm font-medium`},Oe=s({__name:`CheckoutRoom`,props:{guest:{type:[Object,null]},room:{type:Object}},setup(e){let{t}=f(),{data:n}=b();return(i,a)=>(r(),u(`div`,q,[m(`div`,J,[m(`div`,Y,[m(`img`,{src:e.room?.roomImage?.[`1x`],class:`aspect-4/3 object-cover`,loading:`lazy`,alt:e.room?.roomImage?.alt},null,8,X)]),m(`div`,Z,[m(`h2`,Q,c(e.room?.roomName),1),m(`div`,fe,[g(c(e.room?.rateName)+` `,1),e.room?.prices?.finalPriceExtraBeds?(r(),u(h,{key:0},[g(` (+`+c(o(t)(`extraBed`))+`) `,1)],64)):d(``,!0)])])]),e.guest?(r(),u(`div`,pe,[m(`h2`,me,c(e.guest?.firstName)+` `+c(e.guest?.lastName),1),m(`ul`,he,[m(`li`,ge,[m(`div`,_e,c(o(t)(`email`)),1),m(`div`,ve,c(e.guest?.email),1)]),m(`li`,ye,[m(`div`,be,c(o(t)(`tel`)),1),m(`div`,xe,c(e.guest?.tel),1)]),m(`li`,Se,[m(`div`,Ce,c(o(t)(`country`)),1),m(`div`,we,c(o(n)?.find(t=>t.code===e.guest?.country)?.name),1)]),m(`li`,Te,[m(`div`,Ee,c(o(t)(`address`)),1),m(`div`,De,c(e.guest?.street)+`, `+c(e.guest?.city)+`, `+c(e.guest?.postalCode),1)])])])):d(``,!0)]))}}),ke={class:`x-checkin-info card p-4 md:p-6 bg-body-primary rounded-xl flex flex-col gap-5`},Ae={class:`x-heading sm`},je={class:`x-text`},Me={class:`grid lg:grid-cols-2 gap-3 lg:gap-6`},Ne={class:`flex gap-4`},Pe={class:`flex flex-col gap-1 grow`},Fe={class:`x-title sm font-medium`},Ie={key:0,class:`x-title`},Le={key:1,class:`skeleton h-5 rounded-md w-full max-w-2/5`},Re={class:`flex gap-4`},ze={class:`flex flex-col gap-1`},Be={class:`x-title sm font-medium`},Ve={class:`x-title`},$={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 grow`},qe={key:0,class:`x-title sm font-medium`},Je={key:1,class:`skeleton h-4 rounded-md w-full max-w-32`},Ye={key:2,class:`x-title`},Xe={key:3,class:`skeleton h-5 rounded-md w-3/4`},Ze=s({__name:`CheckoutInfo`,props:{accommodation:{type:[Object,null]},checkInDate:{type:[String,null]},checkOutDate:{type:[String,null]},completed:{type:Boolean}},setup(e){let{data:t}=x(),{t:n,d:i}=f(),{data:a,isPending:s}=w();return(l,f)=>(r(),u(`div`,ke,[m(`h1`,Ae,[g(c(o(n)(`onlineCheckout`))+` `,1),m(`span`,je,`#`+c(e.accommodation?.number),1)]),m(`ul`,Me,[m(`li`,Ne,[f[0]||=m(`div`,{class:`size-10 bg-primary flex justify-center items-center rounded-md shrink-0`,"aria-hidden":`true`},[m(`svg`,{"aria-hidden":`true`,class:`size-5 text-primary-foreground`},[m(`use`,{href:`#icon-clock-mini`})])],-1),m(`div`,Pe,[m(`div`,Fe,c(o(n)(`dateOfStay`)),1),e.checkInDate&&e.checkOutDate?(r(),u(`div`,Ie,c(o(i)(e.checkInDate,{timeZone:o(t)?.timeZone}))+` – `+c(o(i)(e.checkOutDate,{timeZone:o(t)?.timeZone})),1)):(r(),u(`div`,Le))])]),m(`li`,Re,[f[1]||=m(`div`,{class:`size-10 bg-primary flex justify-center items-center rounded-md shrink-0`,"aria-hidden":`true`},[m(`svg`,{"aria-hidden":`true`,class:`size-5 text-primary-foreground`},[m(`use`,{href:`#icon-user-group-mini`})])],-1),m(`div`,ze,[m(`div`,Be,c(o(n)(`guests`)),1),m(`div`,Ve,[g(c(e.accommodation?.totalAdults)+` `+c(o(n)(`adultsPlural`,e.accommodation?.totalAdults??0))+` `,1),e.accommodation?.totalChildren>0?(r(),u(h,{key:0},[g(` + `+c(e.accommodation?.totalChildren)+` `+c(o(n)(`childrenPlural`,e.accommodation?.totalChildren))+` (`+c(e.accommodation?.rooms?.flatMap(e=>(e.children??[]).map(e=>e.age)).join(`,`))+`) `,1)],64)):d(``,!0)])])]),m(`li`,$,[f[2]||=m(`div`,{class:`size-10 bg-primary flex justify-center items-center rounded-md shrink-0`,"aria-hidden":`true`},[m(`svg`,{"aria-hidden":`true`,class:`size-5 text-primary-foreground`},[m(`use`,{href:`#icon-bed-mini`})])],-1),m(`div`,He,[m(`div`,Ue,c(o(n)(`numberOfRooms`)),1),m(`div`,We,c(e.accommodation?.totalRooms),1)])]),m(`li`,Ge,[f[3]||=m(`div`,{class:`size-10 bg-primary flex justify-center items-center rounded-md shrink-0`,"aria-hidden":`true`},[m(`svg`,{"aria-hidden":`true`,class:`size-5 text-primary-foreground`},[m(`use`,{href:`#icon-map-pin-mini`})])],-1),m(`div`,Ke,[o(s)?(r(),u(`div`,Je)):(r(),u(`div`,qe,c(o(a)?.name),1)),o(s)?(r(),u(`div`,Xe)):(r(),u(`div`,Ye,c(o(a)?.street)+` `+c(o(a)?.postalCode)+` `+c(o(a)?.city)+` - `+c(o(a)?.country),1))])])])]))}}),Qe={class:`flex flex-col gap-2.5`},$e=s({__name:`[uuid]`,setup(t){let n=v(),{t:s}=f(),c=S(),{data:l,error:d}=D({uuid:E().value.uuid});return a([l,d],()=>{!d.value&&!l?.value?.error||(n.push(`/`),c.add({class:`accent-error`,title:s(`error`),text:d?.value?.toString()??l.value?.error?.message}))}),(t,n)=>{let a=Ze,s=Oe,c=K,d=T;return r(),p(d,{class:`grid lg:grid-cols-[1fr_28.25rem] gap-3 lg:gap-6`},{default:e(()=>[m(`div`,Qe,[_(a,{"check-in-date":o(l)?.accommodation?.checkInDate,"check-out-date":o(l)?.accommodation?.checkOutDate,accommodation:o(l)?.accommodation,guest:o(l)?.guest},null,8,[`check-in-date`,`check-out-date`,`accommodation`,`guest`]),(r(!0),u(h,null,i(o(l)?.accommodation?.rooms,(e,t)=>(r(),p(s,{key:t,room:e,guest:e.guests?.[0]},null,8,[`room`,`guest`]))),128))]),_(c,{uuid:o(l)?.accommodation?.uuid,paymentUrl:o(l)?.accommodation?.checkoutPaymentUrl,completed:o(l)?.accommodation?.onlineCheckoutCompleted,class:`transition-all md:sticky md:top-[calc(var(--x-main-sticky-top)+1rem)] self-start`},null,8,[`uuid`,`paymentUrl`,`completed`])]),_:1})}}});export{$e as default};
@@ -1 +1 @@
1
- import{Mn as e,Vn as t,Xn as n,bn as r,er as i,gn as a,jt as o,pn as s}from"./vendor.BGu2qkTq.js";import{W as c,t as l}from"./params.DR2mabOE.js";import{c as u}from"./client.DrMpyevc.js";import"./staleTimes.BuCDd__I.js";import{t as d}from"./statusDialog.CWPzBABk.js";import{t as f}from"./routeParams.6hpnfcMT.js";import{r as p,t as m}from"./reservation.BzOjnZgI.js";var h={class:`p-3 md:p-6 bg-body-primary rounded-xl card min-h-[50dvh] flex flex-col`},g={class:`m-auto`},_={class:`x-title mt-4`},v=r({__name:`[uuid]`,setup(r){let{t:v}=o(),y=c(),b=f(),x=d(),S=u(),C=l(),{data:w,error:T}=p({uuid:b.value.uuid}),{data:E,refetch:D}=m();return t(w,async e=>{!e&&!w?.value?.error||(C.currency=w.value?.accommodation?.currency,S.order.accommodation.offerVariantUuid=e?.accommodation?.offerVariantUuid,S.order.accommodation.checkInDate=e?.accommodation?.checkInDate,S.order.accommodation.checkOutDate=e?.accommodation?.checkOutDate,e?.guest&&(S.order.guest=e?.guest),e?.accommodation?.rooms?.forEach((e,t)=>{S.order.accommodation.items[t]={offerItemUuid:e?.offerItemUuid,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},S.accommodation[t]={entity:null}}),D())}),t(E,e=>{e?.forEach((e,t)=>{S.accommodation?.[t]&&(S.accommodation[t].minAdults=w.value?.accommodation?.rooms?.[t]?.minAdults,S.accommodation[t].maxAdults=w.value?.accommodation?.rooms?.[t]?.maxAdults)}),y.push(`/order/summary`)},{once:!0}),t([w,T],()=>{!T.value&&!w?.value?.error||(x.heading=w.value?.error?.messageTitle??v(`error`),x.text=T?.value?.toString()??w.value?.error?.message,x.show(),y.replace(`/`))}),(t,r)=>(e(),a(`div`,h,[s(`div`,g,[r[0]||=s(`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),s(`div`,_,i(n(v)(`momentOfPatience`)),1)])]))}});export{v as default};
1
+ import{Mn as e,Vn as t,Xn as n,bn as r,er as i,gn as a,jt as o,pn as s}from"./vendor.UEAfe26O.js";import{W as c,t as l}from"./params.BYxK9z6w.js";import{c as u}from"./client.B35Zk1Vj.js";import"./staleTimes.BFpWFXo3.js";import{t as d}from"./statusDialog.CHyOH2aw.js";import{t as f}from"./routeParams.DU9zPEL5.js";import{r as p,t as m}from"./reservation.C4YvgAfn.js";var h={class:`p-3 md:p-6 bg-body-primary rounded-xl card min-h-[50dvh] flex flex-col`},g={class:`m-auto`},_={class:`x-title mt-4`},v=r({__name:`[uuid]`,setup(r){let{t:v}=o(),y=c(),b=f(),x=d(),S=u(),C=l(),{data:w,error:T}=p({uuid:b.value.uuid}),{data:E,refetch:D}=m();return t(w,async e=>{!e&&!w?.value?.error||(C.currency=w.value?.accommodation?.currency,S.order.accommodation.offerVariantUuid=e?.accommodation?.offerVariantUuid,S.order.accommodation.checkInDate=e?.accommodation?.checkInDate,S.order.accommodation.checkOutDate=e?.accommodation?.checkOutDate,e?.guest&&(S.order.guest=e?.guest),e?.accommodation?.rooms?.forEach((e,t)=>{S.order.accommodation.items[t]={offerItemUuid:e?.offerItemUuid,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},S.accommodation[t]={entity:null}}),D())}),t(E,e=>{e?.forEach((e,t)=>{S.accommodation?.[t]&&(S.accommodation[t].minAdults=w.value?.accommodation?.rooms?.[t]?.minAdults,S.accommodation[t].maxAdults=w.value?.accommodation?.rooms?.[t]?.maxAdults)}),y.push(`/order/summary`)},{once:!0}),t([w,T],()=>{!T.value&&!w?.value?.error||(x.heading=w.value?.error?.messageTitle??v(`error`),x.text=T?.value?.toString()??w.value?.error?.message,x.show(),y.replace(`/`))}),(t,r)=>(e(),a(`div`,h,[s(`div`,g,[r[0]||=s(`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),s(`div`,_,i(n(v)(`momentOfPatience`)),1)])]))}});export{v as default};