@revolugo/elements 6.9.7-rc.1 → 6.10.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. package/dist/css/fonts.css +1 -1
  2. package/dist/css/revolugo.cancellationpoliciesbadge.B4piKfhY.css +1 -0
  3. package/dist/css/revolugo.creditcardstripeform.C4-vMajR.css +1 -0
  4. package/dist/css/revolugo.index.BNlxBMG6.css +5 -0
  5. package/dist/css/revolugo.preferencesmenu.DQaHGrad.css +1 -0
  6. package/dist/css/{revolugo.webcomponentwrapper.cFJPP6Rp.css → revolugo.webcomponentwrapper.ViqP9D5c.css} +1 -1
  7. package/dist/index.es.min.js +23 -12530
  8. package/dist/index.es.min.js.map +1 -1
  9. package/dist/index.min.js +1 -19
  10. package/dist/index.min.js.map +1 -1
  11. package/dist/revolugo.banktransferdetails.CrYts7zG.min.js +47 -0
  12. package/dist/revolugo.bookingdetailssidebar.C0DYAN9t.min.js +43 -0
  13. package/dist/revolugo.bookingmanager.JgOsiKqb.min.js +26 -0
  14. package/dist/revolugo.cancellationpoliciesbadge.DwMryr_Z.min.js +26 -0
  15. package/dist/revolugo.cancellationpoliciesbadge.props.CjiL_2nY.min.js +28665 -0
  16. package/dist/revolugo.cancellationpolicieslist.BqEiG3z-.min.js +26 -0
  17. package/dist/{revolugo.creditcardform.C1Y8cuiJ.min.js → revolugo.creditcardstripeform.-X97xRfD.min.js} +871 -854
  18. package/dist/revolugo.creditcardstripeform.CI-nHnmu.min.js +50 -0
  19. package/dist/revolugo.currencypickerbtn.CWjb_mKC.min.js +26 -0
  20. package/dist/{revolugo.dialog-attach.blanCM_U.min.js → revolugo.dialog-attach.DCFiPJcB.min.js} +2 -2
  21. package/dist/revolugo.fastbookingflow.DAnw85UE.min.js +36 -0
  22. package/dist/revolugo.fullbookingflow.BfZQWhv3.min.js +26 -0
  23. package/dist/revolugo.hoteldescriptionview.NrMKZYla.min.js +26 -0
  24. package/dist/revolugo.hotelofferlist.DDeV3_eJ.min.js +26 -0
  25. package/dist/revolugo.hoteloffersearchmenu.CztZ1sQ9.min.js +115 -0
  26. package/dist/revolugo.hoteloffersmap.CvcrGyMP.min.js +26 -0
  27. package/dist/revolugo.hoteloffersview.DJ9S13-J.min.js +21 -0
  28. package/dist/revolugo.hotelroomofferlist.C8JfIZKA.min.js +26 -0
  29. package/dist/revolugo.hotelroomoffersbookingflow.D6xFKHrm.min.js +26 -0
  30. package/dist/revolugo.hotelroomoffersearchmenu.Dgayo8K2.min.js +26 -0
  31. package/dist/revolugo.hotelroomoffersview.DcSD1lBK.min.js +26 -0
  32. package/dist/revolugo.index.BQ2Ej3ps.min.js +106 -0
  33. package/dist/revolugo.index.wc.DmhZCepg.min.js +26618 -0
  34. package/dist/revolugo.langpickerbtn.D__PqdSA.min.js +31 -0
  35. package/dist/{revolugo.leaflet-src.esm.DBQWLG1M.min.js → revolugo.leaflet-src.esm.BnEQV3J-.min.js} +16 -16
  36. package/dist/revolugo.min.js +1 -1
  37. package/dist/revolugo.prebookform.PHN43ItN.min.js +26 -0
  38. package/dist/revolugo.preferencesmenu.B-Heg_NW.min.js +24 -0
  39. package/dist/revolugo.preferencesmenu.CyAfWgNn.min.js +935 -0
  40. package/dist/revolugo.roominglisteditor.DqDfcw6H.min.js +26 -0
  41. package/dist/revolugo.storybooktoolbar.BpW-G0Ty.min.js +831 -0
  42. package/dist/revolugo.termsandconditions.Map_4yYE.min.js +31 -0
  43. package/dist/revolugo.vtoolbar.CVF4qXFI.min.js +187 -0
  44. package/dist/revolugo.webcomponentwrapper.9pOOjN92.min.js +30961 -0
  45. package/package.json +6 -6
  46. package/dist/css/revolugo.bdaterangepicker.OLspTh_0.css +0 -1
  47. package/dist/css/revolugo.bhoteloffersfilterbar.BebBKpCh.css +0 -1
  48. package/dist/css/revolugo.bhotelroomsdetails.c1M8WEQ1.css +0 -1
  49. package/dist/css/revolugo.bimagecarousel.B2SxWMbZ.css +0 -1
  50. package/dist/css/revolugo.bookingdetailssidebar.Cp4sLBjD.css +0 -1
  51. package/dist/css/revolugo.bstarrating.CPHKEfup.css +0 -1
  52. package/dist/css/revolugo.btag.T7X_iIkW.css +0 -1
  53. package/dist/css/revolugo.cancellationpoliciesbadge.BLInUr3-.css +0 -1
  54. package/dist/css/revolugo.creditcardform.fTmPR0fS.css +0 -1
  55. package/dist/css/revolugo.creditcardpayment.D2PE5FCt.css +0 -1
  56. package/dist/css/revolugo.fullbookingflow.Bm8JAQF7.css +0 -1
  57. package/dist/css/revolugo.hoteldescriptionview.B-RiiuPY.css +0 -1
  58. package/dist/css/revolugo.hotelofferlist.BkctzTMI.css +0 -1
  59. package/dist/css/revolugo.hoteloffersearchmenuui.ZbUh8ba2.css +0 -1
  60. package/dist/css/revolugo.hoteloffersmap.Z5DFtK0_.css +0 -1
  61. package/dist/css/revolugo.hoteloffersview.CLbnSww6.css +0 -1
  62. package/dist/css/revolugo.hotelroomofferlist.D8JlZt_N.css +0 -1
  63. package/dist/css/revolugo.hotelroomoffersbookingflow.LHa5iHB7.css +0 -1
  64. package/dist/css/revolugo.index.DK7d_h6O.css +0 -1
  65. package/dist/css/revolugo.index.XNPQF1ia.css +0 -5
  66. package/dist/css/revolugo.langpickerbtn.BGnattUJ.css +0 -1
  67. package/dist/css/revolugo.prebookform.DmCR7hLv.css +0 -1
  68. package/dist/css/revolugo.preferencesmenu.fPv_7j-1.css +0 -1
  69. package/dist/css/revolugo.termsandconditions.D8IMR9da.css +0 -1
  70. package/dist/css/revolugo.vautocomplete.CuVjyvcC.css +0 -1
  71. package/dist/css/revolugo.vbadge.C45eZpxy.css +0 -1
  72. package/dist/css/revolugo.vbtn.DpMO1Ky2.css +0 -1
  73. package/dist/css/revolugo.vcard.TERzfknI.css +0 -1
  74. package/dist/css/revolugo.vcheckboxbtn.Bp_BNQWb.css +0 -1
  75. package/dist/css/revolugo.vdialog.DwTSAOeg.css +0 -1
  76. package/dist/css/revolugo.vdivider.CTbbZwnv.css +0 -1
  77. package/dist/css/revolugo.vexpansionpanels.RsCANmDP.css +0 -1
  78. package/dist/css/revolugo.vicon.eIkh7vVK.css +0 -1
  79. package/dist/css/revolugo.vinput.BPiFMorL.css +0 -1
  80. package/dist/css/revolugo.vlabel.BvKaKg7Y.css +0 -1
  81. package/dist/css/revolugo.vlist.-Y4qkukF.css +0 -1
  82. package/dist/css/revolugo.vmenu.DvKwEp1j.css +0 -1
  83. package/dist/css/revolugo.vselect.C5CKHFYB.css +0 -1
  84. package/dist/css/revolugo.vsheet.Dmcoj8cr.css +0 -1
  85. package/dist/css/revolugo.vskeletonloader.BlK8uFkX.css +0 -1
  86. package/dist/css/revolugo.vslidegroup.ECiLCEE9.css +0 -1
  87. package/dist/css/revolugo.vsnackbar.CCfuo3ao.css +0 -1
  88. package/dist/css/revolugo.vtextarea.Dxy6uSvm.css +0 -1
  89. package/dist/css/revolugo.vtextfield.BIH_AWWP.css +0 -1
  90. package/dist/css/revolugo.vtooltip.BHXJTQ4V.css +0 -1
  91. package/dist/css/revolugo.vwindowitem.CWBhiE_Y.css +0 -1
  92. package/dist/revolugo._baseiteratee.Zjxh5X1S.min.js +0 -247
  93. package/dist/revolugo.banktransferdetails.BMe84dqg.min.js +0 -380
  94. package/dist/revolugo.bdaterangepicker.DzOGjDv0.min.js +0 -8327
  95. package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.DMP_pksf.min.js +0 -146
  96. package/dist/revolugo.bhoteloffersfilterbar.Duj0L2BC.min.js +0 -4901
  97. package/dist/revolugo.bhotelroomsdetails.A441NOYj.min.js +0 -965
  98. package/dist/revolugo.bimagecarousel.CeagkLxi.min.js +0 -566
  99. package/dist/revolugo.bookingdetailssidebar.BR9pOQ-A.min.js +0 -870
  100. package/dist/revolugo.bookingdetailssidebar.C_cVgvbV.min.js +0 -24
  101. package/dist/revolugo.bookingmanager.Tqklnltl.min.js +0 -1755
  102. package/dist/revolugo.bpricesummaryskeleton.vue_vue_type_script_setup_true_lang.N9x3mRNq.min.js +0 -66
  103. package/dist/revolugo.bstarrating.vue_vue_type_script_setup_true_lang.vPcVvCoJ.min.js +0 -570
  104. package/dist/revolugo.btag.6i9RpwY_.min.js +0 -375
  105. package/dist/revolugo.cancellationpoliciesbadge.CJhYlUuT.min.js +0 -198
  106. package/dist/revolugo.cancellationpoliciesbadge.Vi2j73X9.min.js +0 -28
  107. package/dist/revolugo.cancellationpolicieslist.BuNsG_i4.min.js +0 -25
  108. package/dist/revolugo.cancellationpolicieslist.CaiWZD9_.min.js +0 -148
  109. package/dist/revolugo.cancellationpolicieslist.props.s6oWxIxG.min.js +0 -21
  110. package/dist/revolugo.case-transformers.BGpZ9qjt.min.js +0 -123
  111. package/dist/revolugo.common.D-l8b0V5.min.js +0 -10
  112. package/dist/revolugo.creditcardform.wbMwrte3.min.js +0 -24
  113. package/dist/revolugo.creditcardpayment.BsQwUNPu.min.js +0 -885
  114. package/dist/revolugo.creditcardpayment.v2TP6g1r.min.js +0 -24
  115. package/dist/revolugo.currencypicker.CCydQxvk.min.js +0 -328
  116. package/dist/revolugo.currencypickerbtn.54OJeTC0.min.js +0 -157
  117. package/dist/revolugo.currencypickerbtn.D0OyHd5Z.min.js +0 -24
  118. package/dist/revolugo.dates.Dma3i1u_.min.js +0 -31
  119. package/dist/revolugo.defaultsdeep.BlZWlkib.min.js +0 -104
  120. package/dist/revolugo.dialog-transition.JX-XGblk.min.js +0 -111
  121. package/dist/revolugo.fastbookingflow.kwlndDrp.min.js +0 -34
  122. package/dist/revolugo.forwardrefs.VVhh1qV3.min.js +0 -70
  123. package/dist/revolugo.fullbookingflow.Cm0oV-cR.min.js +0 -429
  124. package/dist/revolugo.hotel-offer-request.aMUhw0jC.min.js +0 -98
  125. package/dist/revolugo.hoteldescriptionview.Dng4hMzd.min.js +0 -2738
  126. package/dist/revolugo.hoteldescriptionview.ojwTutv4.min.js +0 -24
  127. package/dist/revolugo.hotelofferitemlayout.vue_vue_type_script_setup_true_lang.olnYk_cF.min.js +0 -239
  128. package/dist/revolugo.hotelofferlist.BWC_k60T.min.js +0 -5640
  129. package/dist/revolugo.hotelofferlist.DacSdhyV.min.js +0 -24
  130. package/dist/revolugo.hotelofferrequestcreator.props.BeQuCTZy.min.js +0 -44
  131. package/dist/revolugo.hoteloffersearchmenu.BRYJjrI7.min.js +0 -202
  132. package/dist/revolugo.hoteloffersearchmenuui.CjFznky7.min.js +0 -829
  133. package/dist/revolugo.hoteloffersmap.B4YsCUhB.min.js +0 -8330
  134. package/dist/revolugo.hoteloffersmap.BjCpSBW5.min.js +0 -24
  135. package/dist/revolugo.hoteloffersview.Df1RPsE2.min.js +0 -19
  136. package/dist/revolugo.hoteloffersview.VHsBhOKb.min.js +0 -616
  137. package/dist/revolugo.hotelroomofferlist.kttmW_p0.min.js +0 -24
  138. package/dist/revolugo.hotelroomofferlist.t-3U4Nu4.min.js +0 -2799
  139. package/dist/revolugo.hotelroomofferrequestcreator.props.vFsZDl1K.min.js +0 -171
  140. package/dist/revolugo.hotelroomoffersbookingflow.CcnFaLm4.min.js +0 -1281
  141. package/dist/revolugo.hotelroomoffersearchmenu.FTQxJ_n5.min.js +0 -25
  142. package/dist/revolugo.hotelroomoffersearchmenu.WM6bLEz9.min.js +0 -231
  143. package/dist/revolugo.hotelroomoffersview.4GP75oBd.min.js +0 -24
  144. package/dist/revolugo.hotelroomoffersview.C64pbpV0.min.js +0 -290
  145. package/dist/revolugo.index.CmfloZTT.min.js +0 -67
  146. package/dist/revolugo.index.q2k-tLa2.min.js +0 -1232
  147. package/dist/revolugo.index.wc.BmAtoZjo.min.js +0 -31558
  148. package/dist/revolugo.langpicker.BDDm2CzN.min.js +0 -99
  149. package/dist/revolugo.langpickerbtn.BS-VKFY1.min.js +0 -131
  150. package/dist/revolugo.langpickerbtn.C_Z35YuF.min.js +0 -29
  151. package/dist/revolugo.parsed-props.z2aR0x9r.min.js +0 -40
  152. package/dist/revolugo.pathify.DOgJK7nI.min.js +0 -36
  153. package/dist/revolugo.prebookform.DT2QXZUm.min.js +0 -1527
  154. package/dist/revolugo.prebookform.Dk1v8qZ9.min.js +0 -24
  155. package/dist/revolugo.preferencesmenu.BhDjryBC.min.js +0 -24
  156. package/dist/revolugo.preferencesmenu.DsDw7iXm.min.js +0 -261
  157. package/dist/revolugo.roominglisteditor.ChZhBnZ3.min.js +0 -385
  158. package/dist/revolugo.roominglisteditor.DaPP1NPv.min.js +0 -24
  159. package/dist/revolugo.rounded.BmZawp2x.min.js +0 -68
  160. package/dist/revolugo.ssrboot.CMusFTC5.min.js +0 -18
  161. package/dist/revolugo.storybooktoolbar.CLAq0fXx.min.js +0 -881
  162. package/dist/revolugo.termsandconditions.B8TrVOz1.min.js +0 -404
  163. package/dist/revolugo.termsandconditions.CI0t3pno.min.js +0 -23
  164. package/dist/revolugo.use-breakpoint-service.BmTXBw-9.min.js +0 -39
  165. package/dist/revolugo.use-dialog-attach.ByNAI0vu.min.js +0 -16
  166. package/dist/revolugo.use-html-element.BbD1LjYc.min.js +0 -11
  167. package/dist/revolugo.vautocomplete.D1yqzzar.min.js +0 -445
  168. package/dist/revolugo.vbadge.B1q1ebM4.min.js +0 -112
  169. package/dist/revolugo.vbtn.D-1pZWJQ.min.js +0 -398
  170. package/dist/revolugo.vcard.BhFz1a7-.min.js +0 -313
  171. package/dist/revolugo.vcheckboxbtn.BtTJE9k_.min.js +0 -478
  172. package/dist/revolugo.vdialog.Q1vj1S2Y.min.js +0 -133
  173. package/dist/revolugo.vdivider.Cw22Dcuf.min.js +0 -77
  174. package/dist/revolugo.vexpansionpanels.B6laIhZ5.min.js +0 -262
  175. package/dist/revolugo.vform.DKrc0wCb.min.js +0 -46
  176. package/dist/revolugo.vicon.OZg4Im8p.min.js +0 -105
  177. package/dist/revolugo.vinput.Bo6I7bO4.min.js +0 -463
  178. package/dist/revolugo.vlabel.CK1EiiGY.min.js +0 -48
  179. package/dist/revolugo.vlist.C2mV3Sh6.min.js +0 -1299
  180. package/dist/revolugo.vmenu.C2Y9H_mH.min.js +0 -145
  181. package/dist/revolugo.vselect.ukHPs1U9.min.js +0 -660
  182. package/dist/revolugo.vsheet.COT4-g6w.min.js +0 -72
  183. package/dist/revolugo.vskeletonloader.BUWqKsWc.min.js +0 -136
  184. package/dist/revolugo.vslidegroup.vYhKvZC2.min.js +0 -325
  185. package/dist/revolugo.vsnackbar.DGEvcXxN.min.js +0 -198
  186. package/dist/revolugo.vspacer.DKw4LWvz.min.js +0 -7
  187. package/dist/revolugo.vtextarea.JwpV0Q9q.min.js +0 -2092
  188. package/dist/revolugo.vtextfield.CF6W_mmu.min.js +0 -501
  189. package/dist/revolugo.vtoolbar.8GW_wkyp.min.js +0 -180
  190. package/dist/revolugo.vtooltip.D-CqFjzD.min.js +0 -89
  191. package/dist/revolugo.vwindowitem.DdXQiNtJ.min.js +0 -317
  192. package/dist/revolugo.watch-list.CqLXeMQh.min.js +0 -16
  193. package/dist/revolugo.webcomponentwrapper.DipHFVeJ.min.js +0 -2088
@@ -1,4901 +0,0 @@
1
- import { at as va, au as ae, L as Vt, M as Pt, av as Oe, aw as Le, ax as Ft, ai as ce, V as Ye, ay as ma, az as rt, E as Ie, aA as K, d as Q, H as p, S as xt, ah as Et, G as pa, b as ha, u as ne, r as ba, c as z, o as M, Z as Tt, k as H, N as ga, x as ya, q as wa, X as He, A as ka, w as n, a as r, e as q, g as X, f as E, t as O, p as y, J as Ze, K as Dt, j as Ba, i as G, B as _e, F as ie, D as ee, aB as _a, C as ve, W as qe, m as be, T as Ra, l as ue, O as W, aC as Sa, n as Ma, h as Oa, a2 as Re, aD as st, aE as Ne, af as te, a9 as se, ab as At, aF as et, ap as Ca, a1 as Ve, an as Lt, aG as Ia, ad as fe, aH as Va, a6 as tt, aI as ot, aJ as Pa, ag as Fa, aK as $t, aL as xa, aM as Ht, a3 as nt, aN as Ea, aO as pe, aP as Ta, aQ as Da, Y as qt, aR as Aa, aS as De, ac as La, aT as $a, aU as Ha, aV as qa, aW as Na, aX as za } from "./revolugo.index.wc.BmAtoZjo.min.js";
2
- import { s as Ua } from "./revolugo.dates.Dma3i1u_.min.js";
3
- import { w as ja } from "./revolugo.watch-list.CqLXeMQh.min.js";
4
- import { h as Ka } from "./revolugo.hotelofferrequestcreator.props.BeQuCTZy.min.js";
5
- import { u as Be } from "./revolugo.hotel-offer-request.aMUhw0jC.min.js";
6
- import { p as Nt } from "./revolugo.pathify.DOgJK7nI.min.js";
7
- import { C as Ga } from "./revolugo.cancellationpoliciesbadge.CJhYlUuT.min.js";
8
- import { _ as Wa } from "./revolugo.hotelofferitemlayout.vue_vue_type_script_setup_true_lang.olnYk_cF.min.js";
9
- import { B as Ya, _ as Za } from "./revolugo.bhotelroomsdetails.A441NOYj.min.js";
10
- import { _ as le, B as Xa, c as Qa, d as Ja, u as Pe, m as ze, b as $e, V as re, a as Y, e as zt, f as ei, g as ti, t as ai, h as ii, i as li, j as ri, k as si } from "./revolugo.webcomponentwrapper.DipHFVeJ.min.js";
11
- import { B as oi, r as ni } from "./revolugo.hotelroomofferlist.t-3U4Nu4.min.js";
12
- import { B as ui, _ as ci } from "./revolugo.bstarrating.vue_vue_type_script_setup_true_lang.vPcVvCoJ.min.js";
13
- import { B as ut } from "./revolugo.btag.6i9RpwY_.min.js";
14
- import { _ as di, H as fi } from "./revolugo.hoteldescriptionview.Dng4hMzd.min.js";
15
- import { B as vi, m as mi, V as pi } from "./revolugo.bimagecarousel.CeagkLxi.min.js";
16
- import { u as hi } from "./revolugo.use-breakpoint-service.BmTXBw-9.min.js";
17
- import { u as bi } from "./revolugo.use-dialog-attach.ByNAI0vu.min.js";
18
- import { H as gi } from "./revolugo.hotelroomoffersview.C64pbpV0.min.js";
19
- import { d as yi, R as wi, e as ki, m as Bi, f as _i, a as Ri } from "./revolugo.index.q2k-tLa2.min.js";
20
- import { V as Ue } from "./revolugo.vtooltip.D-CqFjzD.min.js";
21
- import { V as Si } from "./revolugo.vdialog.Q1vj1S2Y.min.js";
22
- import { V as Fe, a as at, b as it, c as Mi } from "./revolugo.vcard.BhFz1a7-.min.js";
23
- import { V as oe, m as Oi } from "./revolugo.vicon.OZg4Im8p.min.js";
24
- import { a as U, b as Ci } from "./revolugo.vbtn.D-1pZWJQ.min.js";
25
- import { V as Ii } from "./revolugo.vautocomplete.D1yqzzar.min.js";
26
- import { V as Xe, a as Vi, b as ct } from "./revolugo.vlist.C2mV3Sh6.min.js";
27
- import { M as Pi, d as dt, g as Fi, f as ft } from "./revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.DMP_pksf.min.js";
28
- import { u as xi, V as vt, m as Ei, a as Ti } from "./revolugo.vinput.Bo6I7bO4.min.js";
29
- import { m as Ut, a as jt, u as Kt, b as Gt, c as Di, d as Ai } from "./revolugo.rounded.BmZawp2x.min.js";
30
- import { V as Li } from "./revolugo.vlabel.CK1EiiGY.min.js";
31
- import { V as mt } from "./revolugo.vtextfield.CF6W_mmu.min.js";
32
- import { V as Ae } from "./revolugo.vdivider.Cw22Dcuf.min.js";
33
- import { V as je } from "./revolugo.vmenu.C2Y9H_mH.min.js";
34
- import { V as Ke } from "./revolugo.vbadge.B1q1ebM4.min.js";
35
- import { u as $i } from "./revolugo.ssrboot.CMusFTC5.min.js";
36
- import { b as Hi } from "./revolugo._baseiteratee.Zjxh5X1S.min.js";
37
- function fa(e) {
38
- try {
39
- if (typeof document < "u") {
40
- window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
41
- sheets: [],
42
- components: []
43
- };
44
- const t = import.meta.url, l = t.slice(0, t.lastIndexOf("/") + 1) + e;
45
- window.REVOLUGO_ELEMENTS_STYLES.sheets.push(l);
46
- for (const i of REVOLUGO_ELEMENTS_STYLES.components)
47
- i(l);
48
- if (e.indexOf("fonts") >= 0) {
49
- const i = document.createElement("link");
50
- i.rel = "stylesheet", linK.href = l, document.head.appendChild(i);
51
- }
52
- }
53
- } catch (t) {
54
- console.error("[revolugo-elements] ", t);
55
- }
56
- }
57
- const Dr = 50;
58
- function qi(e, t) {
59
- return e && e.length ? va(e, Hi(t)) : [];
60
- }
61
- function Ce(e, t = ae.Info) {
62
- switch (t) {
63
- case ae.Trace: {
64
- console.debug(`[TRACE] ${e}`);
65
- break;
66
- }
67
- case ae.Debug: {
68
- console.debug(`[DEBUG] ${e}`);
69
- break;
70
- }
71
- case ae.Info: {
72
- console.info(`[INFO] ${e}`);
73
- break;
74
- }
75
- case ae.Warn: {
76
- console.warn(`[WARN] ${e}`);
77
- break;
78
- }
79
- case ae.Error: {
80
- console.error(`[ERROR] ${e}`);
81
- break;
82
- }
83
- default: {
84
- console.log(`[${ae[t]}] ${e}`);
85
- break;
86
- }
87
- }
88
- }
89
- const pt = {
90
- trace: (e) => Ce(e, ae.Trace),
91
- debug: (e) => Ce(e, ae.Debug),
92
- info: (e) => Ce(e, ae.Info),
93
- warn: (e) => Ce(e, ae.Warn),
94
- error: (e) => Ce(e, ae.Error)
95
- }, Ni = Vt("hotelImages", {
96
- actions: {
97
- async retrieveHotelImages({
98
- hotelId: e,
99
- locale: t
100
- }) {
101
- try {
102
- if (this.hotels[e]?.hotelImages)
103
- return;
104
- this.hotels[e] = { hotelImages: [], isLoading: !0 };
105
- const l = Pt();
106
- if (!l)
107
- return;
108
- const i = await l.hotelImages.retrieve({
109
- id: e,
110
- lang: t
111
- });
112
- this.hotels[e] = { hotelImages: i, isLoading: !1 };
113
- } catch (l) {
114
- console.error("Cannot retrieve hotel images:", l);
115
- }
116
- }
117
- },
118
- getters: {
119
- hotel: (e) => (t) => e.hotels[t]
120
- },
121
- state: () => ({
122
- hotels: {}
123
- })
124
- }), zi = (e) => {
125
- switch (e) {
126
- case Oe.Production:
127
- return "AIzaSyDipOKl8MebRQ5FFK_LgUn6YXiSW45KeEU";
128
- case Oe.Sandbox:
129
- case Oe.Staging:
130
- case Oe.CiCd:
131
- case Oe.Local:
132
- default:
133
- return "AIzaSyDrGcYsSX4u-28bi3vFlQ_D5Lz92GHupP8";
134
- }
135
- }, Ui = Vt("hotelOffers", {
136
- actions: {
137
- addHotelOffers(e) {
138
- this.hotelOffers = qi(
139
- [...this.hotelOffers ?? [], ...e],
140
- "id"
141
- );
142
- },
143
- resetFilters() {
144
- this.filters = {
145
- ...Le,
146
- [K.SortBy]: this.filters[K.SortBy]
147
- };
148
- },
149
- resetHotelOffers() {
150
- this.hotelOffers = [];
151
- },
152
- // eslint-disable-next-line max-lines-per-function
153
- async retrieveHotelOffers(e) {
154
- if (!e.hotelOfferRequestId)
155
- return;
156
- const t = Pt();
157
- if (t) {
158
- const l = {
159
- ...e,
160
- currency: window.RevolugoElements.config.currency,
161
- filterByPrice: this.transformFilterPrices?.join("-"),
162
- filterByReviewRating: this.filters.review_rating || void 0,
163
- filterByStar: this.filters.rating || void 0,
164
- lang: window.RevolugoElements.config.lang,
165
- onlyRecommendedHotelOffers: this.filters.sort_by?.value === ce.TopPicks,
166
- priceHistogramStepCount: ma,
167
- sortBy: this.filters.sort_by?.value,
168
- sortByOrder: this.filters.sort_by?.direction
169
- };
170
- if (this.isPolling && Ye(this.pollingPayload, l))
171
- return;
172
- rt.$emit(Ie.HotelOffersPollingStarted), this.isPolling = !0, this.pollingPayload = l, this.hasError = !1, e.startingAfter || (this.hotelOffers = []), this.hotelOffersCurrency = void 0, await t?.hotelOffers.list(
173
- l,
174
- (i, a) => {
175
- if (!Ye(this.pollingPayload, l))
176
- return;
177
- if (i) {
178
- this.isPolling = !1, this.hasError = !0, console.error("Cannot retrieve hotel offers:", i);
179
- return;
180
- }
181
- if (this.isPolling = (a?.meta?.status ?? "").toLowerCase() !== "complete", !a?.data?.hotelOffers)
182
- return;
183
- e.startingAfter ? this.addHotelOffers(a.data.hotelOffers) : this.hotelOffers = a.data.hotelOffers, rt.$emit(
184
- Ie.HotelOffersRetrieved,
185
- a.data.hotelOffers
186
- ), this.hotelOffersCurrency = a.data.currency, this.priceHistogram = a.data.priceHistogram, this.priceMin = a.data.priceMin, this.priceMax = a.data.priceMax, this.startingAfter = a.meta.startingAfter;
187
- const s = (h) => {
188
- const c = this.getPriceMin, d = this.getPriceMax;
189
- return c === d && c === 0 ? !0 : h >= c && h <= d;
190
- }, u = s(
191
- this.filters.price[0]
192
- ) ? this.filters.price[0] : 0, m = s(
193
- this.filters.price[1]
194
- ) ? this.filters.price[1] : 0;
195
- this.filters = {
196
- ...this.filters,
197
- [K.Price]: [u, m]
198
- };
199
- },
200
- {
201
- maxCallCount: 10
202
- }
203
- ).catch((i) => {
204
- this.isPolling = !1, this.hasError = !0, console.error("Cannot retrieve hotel offers:", i);
205
- });
206
- }
207
- },
208
- saveFilters(e) {
209
- this.filters = {
210
- ...this.filters,
211
- ...e
212
- };
213
- }
214
- },
215
- /* debounce: {
216
- retrieveHotelOffers: 100,
217
- },*/
218
- getters: {
219
- activeFiltersNumber() {
220
- return [
221
- this.isPriceFilterActive,
222
- this.isStarRatingFilterActive,
223
- this.isReviewRatingFilterActive
224
- ].filter(Boolean).length;
225
- },
226
- getPriceMax(e) {
227
- const t = Be();
228
- return !e.priceMax || !e.hotelOffersCurrency ? 0 : Math.round(
229
- dt({
230
- amount: e.priceMax,
231
- currency: e.hotelOffersCurrency
232
- }) / t.nightCount / t.roomCount
233
- );
234
- },
235
- getPriceMin(e) {
236
- const t = Be();
237
- return !e.priceMin || !e.hotelOffersCurrency ? 0 : Math.round(
238
- dt({
239
- amount: e.priceMin,
240
- currency: e.hotelOffersCurrency
241
- }) / t.nightCount / t.roomCount
242
- );
243
- },
244
- isPriceFilterActive(e) {
245
- return e.filters.price[0] !== 0 || e.filters.price[1] !== 0;
246
- },
247
- isReviewRatingFilterActive(e) {
248
- return e.filters.review_rating !== Ft;
249
- },
250
- isStarRatingFilterActive(e) {
251
- return e.filters.rating !== "";
252
- },
253
- priceHistogramStepCount(e) {
254
- return e.priceHistogram ? e.priceHistogram.length : 0;
255
- },
256
- transformFilterPrices(e) {
257
- const t = Be();
258
- if (!(!e.filters.price || e.filters.price[0] === 0 && e.filters.price[1] === 0))
259
- return e.filters.price.map(
260
- (l) => new Pi({
261
- amount: l * t.nightCount * t.roomCount,
262
- currency: window.RevolugoElements.config.currency
263
- }).normalize().floor().getAmount()
264
- );
265
- }
266
- },
267
- state: () => ({
268
- filters: Le,
269
- hasError: !1,
270
- hotelOffers: [],
271
- hotelOffersCurrency: void 0,
272
- isPolling: !1,
273
- pollingPayload: void 0,
274
- priceHistogram: [],
275
- priceMax: 0,
276
- priceMin: 0,
277
- startingAfter: null
278
- })
279
- });
280
- function ji(e) {
281
- return /^([+-]?\d*\.?\d+([Ee][+-]?\d+)?|[+-]?\d*\.?\d+)(px|em|rem|vw|vh|vmin|vmax|%|cm|mm|in|pt|pc|ch|ex|q)$/u.test(
282
- e
283
- );
284
- }
285
- function Qe(e) {
286
- if (e)
287
- return typeof e == "number" ? `${e}px` : typeof e == "string" && (ji(e) || e.startsWith("var")) ? e : Number.isNaN(e) ? "100%" : `${e}px`;
288
- }
289
- const Ar = Q({
290
- data() {
291
- return {
292
- parsedHeight: Qe(this.height)
293
- };
294
- },
295
- watch: {
296
- height: {
297
- handler(e) {
298
- this.parsedHeight = Qe(e);
299
- },
300
- immediate: !0
301
- }
302
- }
303
- }), Lr = (e) => p(() => Qe(e.value));
304
- var de = /* @__PURE__ */ ((e) => (e.DialogFullscreen = "DialogFullscreen", e.HotelDescriptionViewDialog = "HotelDescriptionViewDialog", e.HotelRoomOfferList = "HotelRoomOfferList", e.HotelRoomOffersViewDialog = "HotelRoomOffersViewDialog", e.RoomsDetails = "RoomsDetails", e))(de || {});
305
- const Ki = {
306
- DialogFullscreen: !0,
307
- HotelDescriptionViewDialog: !1,
308
- HotelRoomOfferList: !1,
309
- HotelRoomOffersViewDialog: !1,
310
- RoomsDetails: !0
311
- };
312
- function Gi(e, t) {
313
- return e.adultCount === t.adultCount && e.checkInDate === t.checkInDate && e.checkOutDate === t.checkOutDate && e.children === t.children && e.latitude === t.latitude && e.longitude === t.longitude && e.roomCount === t.roomCount && e.sourceMarket === t.sourceMarket && Ye(e.eventMetadata, t.eventMetadata);
314
- }
315
- const $r = Q({
316
- computed: {
317
- ...Et(Be)
318
- },
319
- created() {
320
- this.$watch(
321
- () => {
322
- const e = this.get("hotelOfferRequest");
323
- return [
324
- e.adultCount,
325
- e.checkInDate,
326
- e.checkOutDate,
327
- e.children,
328
- e.latitude,
329
- e.longitude,
330
- e.roomCount,
331
- e.sourceMarket,
332
- JSON.stringify(e.eventMetadata)
333
- ].join(",");
334
- },
335
- () => {
336
- const e = this.$store.get("hotelOfferRequest");
337
- this.hotelOfferRequestInternal = {
338
- address: this.inputAddress,
339
- adultCount: e.adultCount,
340
- checkInDate: e.checkInDate,
341
- checkOutDate: e.checkOutDate,
342
- children: e.children || null,
343
- latitude: e.latitude,
344
- longitude: e.longitude,
345
- roomCount: e.roomCount,
346
- sourceMarket: e.sourceMarket
347
- };
348
- }
349
- );
350
- },
351
- data() {
352
- const e = Ua(
353
- this.checkInDate,
354
- this.checkOutDate
355
- );
356
- return {
357
- hotelOfferRequestInternal: {
358
- address: this.address,
359
- adultCount: this.adultCount,
360
- checkInDate: e[0],
361
- checkOutDate: e[1],
362
- children: this.children,
363
- hotelOfferRequestId: this.hotelOfferRequestId,
364
- latitude: this.latitude,
365
- longitude: this.longitude,
366
- roomCount: this.roomCount,
367
- sourceMarket: this.sourceMarket
368
- },
369
- inputAddress: this.address
370
- };
371
- },
372
- methods: {
373
- async onBookingApiClientChange() {
374
- await this.dispatch("hotelOfferRequest/resetId"), await this.onHotelOfferRequestInternalChange();
375
- },
376
- // When used in conjunction with HotelOfferSearchMenu, its children (BDateRangePickerMenu or BGuestInputMenu) are able to update the hotelOfferRequestInternal then trigger multiple call to this watcher while we want to trigger the handler only once.
377
- onHotelOfferRequestInternalChange: xt(
378
- async function() {
379
- this.hotelOfferRequestInternal.hotelOfferRequestId && this.hotelOfferRequestInternal.hotelOfferRequestId !== this.$store.get("hotelOfferRequest/id") ? (await this.dispatch(
380
- "hotelOfferRequest/retrieveHotelOfferRequest",
381
- this.hotelOfferRequestInternal.hotelOfferRequestId
382
- ), this.$store.get("hotelOfferRequest/hasError") && await this.dispatch(
383
- "hotelOfferRequest/createHotelOfferRequest",
384
- this.hotelOfferRequestInternal
385
- )) : (!Gi(
386
- this.hotelOfferRequestInternal,
387
- this.$store.get("hotelOfferRequest")
388
- ) || this.inputAddress !== this.hotelOfferRequestInternal.address || !this.$store.get("hotelOfferRequest/id")) && await this.dispatch(
389
- "hotelOfferRequest/createHotelOfferRequest",
390
- this.hotelOfferRequestInternal
391
- );
392
- },
393
- 300
394
- )
395
- },
396
- mixins: [
397
- Nt(),
398
- ja(["bookingApiClient"], "onBookingApiClientChange", {
399
- immediate: !0,
400
- nextTick: !0
401
- })
402
- ],
403
- name: "HotelOfferRequestCreator",
404
- props: Ka,
405
- watch: {
406
- address(e) {
407
- this.hotelOfferRequestInternal = {
408
- ...this.hotelOfferRequestInternal,
409
- address: e,
410
- hotelOfferRequestId: void 0
411
- };
412
- },
413
- adultCount(e) {
414
- this.hotelOfferRequestInternal = {
415
- ...this.hotelOfferRequestInternal,
416
- adultCount: e,
417
- hotelOfferRequestId: void 0
418
- };
419
- },
420
- checkInDate(e) {
421
- this.hotelOfferRequestInternal = {
422
- ...this.hotelOfferRequestInternal,
423
- checkInDate: e,
424
- hotelOfferRequestId: void 0
425
- };
426
- },
427
- checkOutDate(e) {
428
- this.hotelOfferRequestInternal = {
429
- ...this.hotelOfferRequestInternal,
430
- checkOutDate: e,
431
- hotelOfferRequestId: void 0
432
- };
433
- },
434
- children(e) {
435
- this.hotelOfferRequestInternal = {
436
- ...this.hotelOfferRequestInternal,
437
- children: e,
438
- hotelOfferRequestId: void 0
439
- };
440
- },
441
- "config.eventMetadata": {
442
- deep: !0,
443
- handler(e) {
444
- this.hotelOfferRequestInternal = {
445
- ...this.hotelOfferRequestInternal,
446
- eventMetadata: e,
447
- hotelOfferRequestId: void 0
448
- };
449
- }
450
- },
451
- hotelOfferRequestId(e) {
452
- e && (this.hotelOfferRequestInternal = {
453
- ...this.hotelOfferRequestInternal,
454
- hotelOfferRequestId: e
455
- });
456
- },
457
- hotelOfferRequestInternal: {
458
- deep: !0,
459
- async handler() {
460
- await this.onHotelOfferRequestInternalChange();
461
- },
462
- immediate: !0
463
- },
464
- latitude(e) {
465
- this.hotelOfferRequestInternal = {
466
- ...this.hotelOfferRequestInternal,
467
- hotelOfferRequestId: void 0,
468
- latitude: e
469
- };
470
- },
471
- longitude(e) {
472
- this.hotelOfferRequestInternal = {
473
- ...this.hotelOfferRequestInternal,
474
- hotelOfferRequestId: void 0,
475
- longitude: e
476
- };
477
- },
478
- roomCount(e) {
479
- this.hotelOfferRequestInternal = {
480
- ...this.hotelOfferRequestInternal,
481
- hotelOfferRequestId: void 0,
482
- roomCount: e
483
- };
484
- },
485
- sourceMarket(e) {
486
- this.hotelOfferRequestInternal = {
487
- ...this.hotelOfferRequestInternal,
488
- hotelOfferRequestId: void 0,
489
- sourceMarket: e
490
- };
491
- }
492
- }
493
- }), Wi = {
494
- adultCount: {
495
- type: Number
496
- },
497
- checkInDate: {
498
- type: String
499
- },
500
- compact: {
501
- type: Boolean
502
- },
503
- currency: {
504
- required: !0,
505
- type: String
506
- },
507
- features: {
508
- default: () => Ki,
509
- type: Object
510
- },
511
- hideAction: {
512
- default: !1,
513
- type: Boolean
514
- },
515
- hotelOffer: {
516
- required: !0,
517
- type: Object
518
- },
519
- imageCountLimit: {
520
- type: Number
521
- },
522
- isNoLongerAvail: {
523
- default: !1,
524
- type: Boolean
525
- },
526
- nightCount: {
527
- type: Number
528
- },
529
- singleOffer: {
530
- default: !1,
531
- type: Boolean
532
- }
533
- }, Yi = {
534
- clickable: {
535
- default: !1,
536
- type: Boolean
537
- },
538
- height: { type: String },
539
- imageUrls: { required: !0, type: Array },
540
- isLoading: { default: !1, type: Boolean },
541
- lazy: {
542
- default: 0,
543
- type: Number
544
- },
545
- limit: {
546
- default: 80,
547
- type: Number
548
- },
549
- rounded: { type: Boolean },
550
- showThumbnails: { type: Boolean },
551
- slide: { type: Number },
552
- thumbnailUrls: { type: Array },
553
- thumbnailsHeight: {
554
- type: [String, Number]
555
- },
556
- width: { type: String }
557
- }, Zi = {
558
- ...pa(Yi, "imageUrls"),
559
- hotelOffer: {
560
- required: !0,
561
- type: Object
562
- },
563
- imageCountLimit: {
564
- type: Number
565
- }
566
- }, Xi = Q({
567
- components: {
568
- BImageCarousel: vi
569
- },
570
- computed: {
571
- ...Et(Ni),
572
- carouselStyle() {
573
- return {
574
- borderBottomLeftRadius: "0px",
575
- borderTopLeftRadius: "0px",
576
- borderTopRightRadius: "0px"
577
- };
578
- },
579
- hotel() {
580
- return this.$store.get("hotelImages/hotel", this.hotelId);
581
- },
582
- hotelId() {
583
- return this.hotelOffer?.id;
584
- },
585
- imageUrls() {
586
- return mi(this.hotel.hotelImages || []);
587
- }
588
- },
589
- created() {
590
- this.dispatch("hotelImages/retrieveHotelImages", {
591
- hotelId: this.hotelId,
592
- locale: this.$i18n.locale
593
- });
594
- },
595
- mixins: [ha, Nt()],
596
- name: "HotelOfferItem",
597
- props: Zi,
598
- setup() {
599
- const { t: e } = ne();
600
- return {
601
- t: e
602
- };
603
- }
604
- });
605
- function Qi(e, t, l, i, a, s) {
606
- const u = ba("BImageCarousel");
607
- return M(), z(u, {
608
- clickable: "",
609
- height: e.height,
610
- "image-urls": e.imageUrls?.lowres?.slice(0, e.imageCountLimit) || [],
611
- "is-loading": !e.hotel?.hotelImages || e.hotel.isLoading,
612
- lazy: 2,
613
- limit: 15,
614
- rounded: "",
615
- style: Tt(e.carouselStyle),
616
- width: e.width
617
- }, null, 8, ["height", "image-urls", "is-loading", "style", "width"]);
618
- }
619
- const Ji = /* @__PURE__ */ le(Xi, [["render", Qi]]), el = {
620
- key: 1,
621
- class: "hotel-name text-subtitle-1 font-weight-black mr-1 text-primary cursor-pointer"
622
- }, tl = {
623
- key: 0,
624
- class: "text-grey-darken-2 text-caption mt-n1 d-block"
625
- }, al = { key: 0 }, il = { class: "footer bg-white" }, ll = {
626
- class: "mt-2",
627
- style: { cursor: "auto" }
628
- }, Wt = /* @__PURE__ */ Q({
629
- __name: "HotelOfferItem",
630
- props: Wi,
631
- setup(e) {
632
- const t = e, { t: l } = ne(), i = H(!1), a = H(!1), s = H(!1), u = Be(), { adultCount: m, checkInDate: h, nightCount: c } = ga(
633
- Be()
634
- ), d = p(
635
- () => t.adultCount || m.value
636
- ), b = p(
637
- () => t.hotelOffer?.tags?.filter((w) => w.name.length > 30) || []
638
- ), f = p(
639
- () => t.checkInDate || h.value
640
- ), o = p(() => {
641
- if (t.features[de.HotelRoomOffersViewDialog])
642
- return "hotel-room-offers-view";
643
- if (t.features[de.HotelDescriptionViewDialog])
644
- return "hotel-description-view";
645
- }), v = p(
646
- () => t.hotelOffer.distance ? Math.round(t.hotelOffer.distance / 1e3 * 100) / 100 : 0
647
- ), g = p(() => t.hotelOffer.id), _ = p(() => u.$state), k = p(
648
- () => t.hotelOffer.hotelRoomOffers[0]
649
- ), T = p(
650
- () => ya({
651
- bookingDatetime: wa().format(),
652
- cancellationPolicies: k.value.cancellationPolicies,
653
- checkInDate: f.value,
654
- timezone: t.hotelOffer.timezone
655
- }) === 0
656
- ), A = p(
657
- () => t.nightCount || c.value
658
- ), N = p(
659
- () => k.value?.hotelRooms.reduce(
660
- (w, $) => w + ($.count || 0),
661
- 0
662
- ) || 0
663
- ), L = p(
664
- () => t.hotelOffer?.tags?.filter((w) => w.name.length <= 30) || []
665
- ), B = p(() => t.hotelOffer?.venues);
666
- function S() {
667
- window.RevolugoElements.eventBus.$emit(
668
- Ie.HotelOffersItemClick,
669
- t.hotelOffer
670
- ), t.features[de.HotelRoomOfferList] ? a.value ? (a.value = !1, setTimeout(() => {
671
- i.value = !1;
672
- }, 500)) : (i.value = !0, qe(() => {
673
- a.value = !0;
674
- })) : (t.features[de.HotelDescriptionViewDialog] || t.features[de.HotelRoomOffersViewDialog]) && (s.value = !0);
675
- }
676
- function F() {
677
- window.RevolugoElements.eventBus.$emit(
678
- Ie.HotelOffersItemClick,
679
- t.hotelOffer
680
- ), s.value = !0, t.features[de.HotelRoomOffersViewDialog] && (a.value = !1, i.value = !1);
681
- }
682
- He(() => {
683
- t.features[de.HotelRoomOffersViewDialog] && window.RevolugoElements.eventBus.$on(Ie.BookingPolicyCreated, () => {
684
- setTimeout(() => {
685
- s.value = !1;
686
- }, 350);
687
- });
688
- });
689
- const V = p(
690
- () => k.value?.hotelRooms
691
- ), x = H(null), { $breakpointService: C } = hi(x), { $dialogAttach: R } = bi(x);
692
- return (w, $) => (M(), z(Wa, {
693
- ref_key: "root",
694
- ref: x,
695
- class: "hover-card",
696
- compact: w.compact,
697
- "is-rooms-details-visible": w.features.RoomsDetails,
698
- "onClick:hotelOfferItem": S
699
- }, ka({
700
- "hotel-description-view-dialog": n(() => [
701
- o.value ? (M(), z(Si, {
702
- key: 0,
703
- modelValue: s.value,
704
- "onUpdate:modelValue": $[1] || ($[1] = (P) => s.value = P),
705
- attach: y(R),
706
- class: "z-index-over-map",
707
- fullscreen: w.features.DialogFullscreen,
708
- light: "",
709
- transition: "slide-x-reverse-transition"
710
- }, {
711
- default: n(() => [
712
- r(Qa, { "at-root": "" }, {
713
- default: n(() => [
714
- r(Fe, {
715
- class: ve(["overflow-y-auto", {
716
- rounded: !w.features.DialogFullscreen,
717
- "hotel-dialog-card": !w.features.DialogFullscreen
718
- }]),
719
- tile: ""
720
- }, {
721
- default: n(() => [
722
- r(at, null, {
723
- default: n(() => [
724
- o.value === "hotel-room-offers-view" ? (M(), z(gi, ee({
725
- key: 0,
726
- class: "pt-2 pa-md-6",
727
- "hotel-id": g.value
728
- }, _.value), null, 16, ["hotel-id"])) : o.value === "hotel-description-view" ? (M(), z(fi, ee({
729
- key: 1,
730
- class: "pt-2 pa-md-6",
731
- "hotel-id": g.value
732
- }, _.value), null, 16, ["hotel-id"])) : X("", !0)
733
- ]),
734
- _: 1
735
- })
736
- ]),
737
- _: 1
738
- }, 8, ["class"])
739
- ]),
740
- _: 1
741
- }),
742
- r(U, {
743
- class: ve(["close-btn", w.features.DialogFullscreen ? "close-btn-fullscreen" : ""]),
744
- dark: "",
745
- icon: "",
746
- variant: "flat",
747
- onClick: $[0] || ($[0] = (P) => s.value = !1)
748
- }, {
749
- default: n(() => [
750
- r(oe, null, {
751
- default: n(() => $[2] || ($[2] = [
752
- E("fas fa-times")
753
- ])),
754
- _: 1,
755
- __: [2]
756
- })
757
- ]),
758
- _: 1
759
- }, 8, ["class"])
760
- ]),
761
- _: 1
762
- }, 8, ["modelValue", "attach", "fullscreen"])) : X("", !0)
763
- ]),
764
- carousel: n(() => [
765
- r(pi, {
766
- height: w.features.RoomsDetails ? "175px" : "140px",
767
- width: !y(C).xs && !w.compact ? "175px" : "100%"
768
- }, {
769
- default: n(() => [
770
- r(Ji, {
771
- height: w.features.RoomsDetails ? "175px" : "140px",
772
- "hotel-offer": w.hotelOffer,
773
- "image-count-limit": w.imageCountLimit,
774
- width: !y(C).xs && !w.compact ? "175px" : "100%"
775
- }, null, 8, ["height", "hotel-offer", "image-count-limit", "width"])
776
- ]),
777
- _: 1
778
- }, 8, ["height", "width"])
779
- ]),
780
- heading: n(() => [
781
- o.value && w.features.HotelRoomOfferList ? (M(), z(Ue, {
782
- key: 0,
783
- attach: w.$el?.parent,
784
- location: "bottom"
785
- }, {
786
- activator: n(({ props: P }) => [
787
- q("span", ee({ class: "hotel-name text-subtitle-1 font-weight-black mr-1 text-primary cursor-pointer" }, P, {
788
- onClick: _a(F, ["stop"])
789
- }), O(w.hotelOffer.name), 17)
790
- ]),
791
- default: n(() => [
792
- E(O(y(l)("HotelOfferItem.openDialogTooltip", {
793
- value: v.value
794
- })) + " ", 1)
795
- ]),
796
- _: 1
797
- }, 8, ["attach"])) : (M(), G("span", el, O(w.hotelOffer.name), 1)),
798
- r(ci, {
799
- count: w.hotelOffer.rating
800
- }, null, 8, ["count"])
801
- ]),
802
- "review-rating": n(() => [
803
- r(ui, {
804
- features: {
805
- ReviewRatingDetails: !1
806
- },
807
- hotel: w.hotelOffer,
808
- "tooltip-position": "bottom"
809
- }, null, 8, ["hotel"])
810
- ]),
811
- distance: n(() => [
812
- isNaN(v.value) ? X("", !0) : (M(), G("span", tl, O(y(l)("HotelOfferItem.distance", { value: v.value })), 1)),
813
- B.value ? (M(), z(di, {
814
- key: 1,
815
- class: "my-n1",
816
- "venue-travel-times": B.value
817
- }, null, 8, ["venue-travel-times"])) : X("", !0)
818
- ]),
819
- "big-tags": n(() => [
820
- (M(!0), G(ie, null, _e(b.value, (P, J) => (M(), G("div", {
821
- key: J,
822
- class: "align-self-center d-inline-flex flex-wrap",
823
- style: { gap: "0.3em" }
824
- }, [
825
- r(ut, {
826
- color: P.bg,
827
- "pre-icon": `fas fa-${P.faIcon}`,
828
- "text-color": P.color,
829
- "tooltip-content": P.description ?? void 0
830
- }, {
831
- default: n(() => [
832
- E(O(P.name), 1)
833
- ]),
834
- _: 2
835
- }, 1032, ["color", "pre-icon", "text-color", "tooltip-content"])
836
- ]))), 128))
837
- ]),
838
- tags: n(() => [
839
- (M(!0), G(ie, null, _e(L.value, (P, J) => (M(), G("div", {
840
- key: J,
841
- class: "align-self-center d-inline-flex flex-wrap",
842
- style: { gap: "0.3em" }
843
- }, [
844
- r(ut, {
845
- color: P.bg,
846
- "pre-icon": `fas fa-${P.faIcon}`,
847
- "text-color": P.color,
848
- "tooltip-content": P.description ?? void 0
849
- }, {
850
- default: n(() => [
851
- E(O(P.name), 1)
852
- ]),
853
- _: 2
854
- }, 1032, ["color", "pre-icon", "text-color", "tooltip-content"])
855
- ]))), 128))
856
- ]),
857
- "breakfast-option-badge": n(() => [
858
- k.value.breakfastOption === "INCLUDED" ? (M(), z(Za, {
859
- key: 0,
860
- "breakfast-option": k.value.breakfastOption
861
- }, null, 8, ["breakfast-option"])) : X("", !0)
862
- ]),
863
- "package-details": n(() => [
864
- r(Ya, { "hotel-rooms": V.value }, null, 8, ["hotel-rooms"])
865
- ]),
866
- "price-summary": n(() => [
867
- k.value.price ? (M(), G("div", al, [
868
- r(oi, {
869
- "adult-count": d.value,
870
- currency: w.currency,
871
- "is-starting-price": "",
872
- "is-tax-included": "",
873
- "night-count": A.value,
874
- price: k.value.price,
875
- "room-count": N.value,
876
- "round-mode": "round",
877
- "tax-included-price": k.value.taxIncludedPrice
878
- }, null, 8, ["adult-count", "currency", "night-count", "price", "room-count", "tax-included-price"])
879
- ])) : X("", !0)
880
- ]),
881
- footer: n(() => [
882
- q("div", il, [
883
- w.isNoLongerAvail ? (M(), z(Xa, { key: 0 }, {
884
- title: n(() => [
885
- E(O(y(l)("HotelOfferItem.noLongerAvailable")), 1)
886
- ]),
887
- _: 1
888
- })) : i.value ? (M(), z(yi, { key: 1 }, {
889
- default: n(() => [
890
- Ze(q("div", ll, [
891
- i.value ? Ba(w.$slots, "default", { key: 0 }, void 0, !0) : X("", !0)
892
- ], 512), [
893
- [Dt, w.features.HotelRoomOfferList && a.value]
894
- ])
895
- ]),
896
- _: 3
897
- })) : X("", !0)
898
- ])
899
- ]),
900
- _: 2
901
- }, [
902
- T.value ? {
903
- name: "cancellation-policies-badge",
904
- fn: n(() => [
905
- r(Ga, {
906
- "cancellation-policies": k.value.cancellationPolicies,
907
- "check-in-date": f.value,
908
- timezone: w.hotelOffer.timezone
909
- }, null, 8, ["cancellation-policies", "check-in-date", "timezone"])
910
- ]),
911
- key: "0"
912
- } : void 0
913
- ]), 1032, ["compact", "is-rooms-details-visible"]));
914
- }
915
- });
916
- function ht(e) {
917
- const t = e;
918
- t.__i18n = t.__i18n || [], t.__i18n.push({
919
- locale: "",
920
- resource: {
921
- "en-US": {
922
- HotelOfferItem: {
923
- distance: { t: 0, b: { t: 2, i: [{ t: 4, k: "value" }, { t: 3, v: "km from venue" }] } },
924
- noLongerAvailable: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Hotel Offer No Longer available" } },
925
- offerTag: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Best value" }, { t: 2, i: [{ t: 3 }], s: "Best value for your group" }] } },
926
- openDialogTooltip: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Click here to open hotel details" } },
927
- seeRooms: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "See availability" } },
928
- showDetails: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Show details" } }
929
- }
930
- },
931
- "fr-FR": {
932
- HotelOfferItem: {
933
- distance: { t: 0, b: { t: 2, i: [{ t: 4, k: "value" }, { t: 3, v: "km du lieu" }] } },
934
- noLongerAvailable: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Cette offre n'est plus disponible" } },
935
- offerTag: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Meilleur offre" }, { t: 2, i: [{ t: 3 }], s: "Meilleur offre pour votre groupe" }] } },
936
- openDialogTooltip: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Cliquer pour voir les détails" } },
937
- seeRooms: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Voir les disponibilités" } },
938
- showDetails: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Afficher les détails" } }
939
- }
940
- },
941
- "de-DE": {
942
- HotelOfferItem: {
943
- distance: { t: 0, b: { t: 2, i: [{ t: 4, k: "value" }, { t: 3, v: "km vom Veranstaltungsort" }] } },
944
- noLongerAvailable: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Hotelangebot nicht mehr verfügbar" } },
945
- offerTag: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Bestes Preis-Leistungs-Verhältnis" }, { t: 2, i: [{ t: 3 }], s: "Bestes Preis-Leistungs-Verhältnis für Ihre Gruppe" }] } },
946
- openDialogTooltip: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Hier klicken, um Hoteldetails zu öffnen" } },
947
- seeRooms: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Verfügbarkeit prüfen" } },
948
- showDetails: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Details anzeigen" } }
949
- }
950
- },
951
- "es-ES": {
952
- HotelOfferItem: {
953
- distance: { t: 0, b: { t: 2, i: [{ t: 4, k: "value" }, { t: 3, v: "km del lugar" }] } },
954
- noLongerAvailable: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "La oferta del hotel ya no está disponible" } },
955
- offerTag: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Mejor precio" }, { t: 2, i: [{ t: 3 }], s: "Mejor precio para tu grupo" }] } },
956
- openDialogTooltip: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Haz clic aquí para abrir los detalles del hotel" } },
957
- seeRooms: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ver disponibilidad" } },
958
- showDetails: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Mostrar detalles" } }
959
- }
960
- },
961
- "it-IT": {
962
- HotelOfferItem: {
963
- distance: { t: 0, b: { t: 2, i: [{ t: 4, k: "value" }, { t: 3, v: "km dalla sede" }] } },
964
- noLongerAvailable: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Offerta Hotel non più disponibile" } },
965
- offerTag: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Miglior rapporto qualità/prezzo" }, { t: 2, i: [{ t: 3 }], s: "Miglior rapporto qualità/prezzo per il tuo gruppo" }] } },
966
- openDialogTooltip: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Clicca qui per aprire i dettagli dell'hotel" } },
967
- seeRooms: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Vedi disponibilità" } },
968
- showDetails: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Mostra dettagli" } }
969
- }
970
- },
971
- "nl-NL": {
972
- HotelOfferItem: {
973
- distance: { t: 0, b: { t: 2, i: [{ t: 4, k: "value" }, { t: 3, v: "km van de locatie" }] } },
974
- noLongerAvailable: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Hotelaanbieding niet meer beschikbaar" } },
975
- offerTag: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Beste waarde" }, { t: 2, i: [{ t: 3 }], s: "Beste waarde voor uw groep" }] } },
976
- openDialogTooltip: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Klik hier om hoteldetails te openen" } },
977
- seeRooms: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Bekijk beschikbaarheid" } },
978
- showDetails: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Toon details" } }
979
- }
980
- },
981
- "pt-PT": {
982
- HotelOfferItem: {
983
- distance: { t: 0, b: { t: 2, i: [{ t: 4, k: "value" }, { t: 3, v: "km do local" }] } },
984
- noLongerAvailable: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Oferta de Hotel Indisponível" } },
985
- offerTag: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Melhor preço" }, { t: 2, i: [{ t: 3 }], s: "Melhor preço para o seu grupo" }] } },
986
- openDialogTooltip: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Clique aqui para abrir os detalhes do hotel" } },
987
- seeRooms: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ver disponibilidade" } },
988
- showDetails: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Mostrar detalhes" } }
989
- }
990
- }
991
- }
992
- });
993
- }
994
- typeof ht == "function" && ht(Wt);
995
- const Hr = /* @__PURE__ */ le(Wt, [["__scopeId", "data-v-8c9d0b99"]]);
996
- function rl(e, t, l, i) {
997
- function a(s) {
998
- return s instanceof l ? s : new l(function(u) {
999
- u(s);
1000
- });
1001
- }
1002
- return new (l || (l = Promise))(function(s, u) {
1003
- function m(d) {
1004
- try {
1005
- c(i.next(d));
1006
- } catch (b) {
1007
- u(b);
1008
- }
1009
- }
1010
- function h(d) {
1011
- try {
1012
- c(i.throw(d));
1013
- } catch (b) {
1014
- u(b);
1015
- }
1016
- }
1017
- function c(d) {
1018
- d.done ? s(d.value) : a(d.value).then(m, h);
1019
- }
1020
- c((i = i.apply(e, [])).next());
1021
- });
1022
- }
1023
- function sl(e) {
1024
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1025
- }
1026
- var We, bt;
1027
- function ol() {
1028
- return bt || (bt = 1, We = function e(t, l) {
1029
- if (t === l) return !0;
1030
- if (t && l && typeof t == "object" && typeof l == "object") {
1031
- if (t.constructor !== l.constructor) return !1;
1032
- var i, a, s;
1033
- if (Array.isArray(t)) {
1034
- if (i = t.length, i != l.length) return !1;
1035
- for (a = i; a-- !== 0; )
1036
- if (!e(t[a], l[a])) return !1;
1037
- return !0;
1038
- }
1039
- if (t.constructor === RegExp) return t.source === l.source && t.flags === l.flags;
1040
- if (t.valueOf !== Object.prototype.valueOf) return t.valueOf() === l.valueOf();
1041
- if (t.toString !== Object.prototype.toString) return t.toString() === l.toString();
1042
- if (s = Object.keys(t), i = s.length, i !== Object.keys(l).length) return !1;
1043
- for (a = i; a-- !== 0; )
1044
- if (!Object.prototype.hasOwnProperty.call(l, s[a])) return !1;
1045
- for (a = i; a-- !== 0; ) {
1046
- var u = s[a];
1047
- if (!e(t[u], l[u])) return !1;
1048
- }
1049
- return !0;
1050
- }
1051
- return t !== t && l !== l;
1052
- }), We;
1053
- }
1054
- var nl = ol(), ul = /* @__PURE__ */ sl(nl);
1055
- const gt = "__googleMapsScriptId";
1056
- var ke;
1057
- (function(e) {
1058
- e[e.INITIALIZED = 0] = "INITIALIZED", e[e.LOADING = 1] = "LOADING", e[e.SUCCESS = 2] = "SUCCESS", e[e.FAILURE = 3] = "FAILURE";
1059
- })(ke || (ke = {}));
1060
- class he {
1061
- /**
1062
- * Creates an instance of Loader using [[LoaderOptions]]. No defaults are set
1063
- * using this library, instead the defaults are set by the Google Maps
1064
- * JavaScript API server.
1065
- *
1066
- * ```
1067
- * const loader = Loader({apiKey, version: 'weekly', libraries: ['places']});
1068
- * ```
1069
- */
1070
- constructor({ apiKey: t, authReferrerPolicy: l, channel: i, client: a, id: s = gt, language: u, libraries: m = [], mapIds: h, nonce: c, region: d, retries: b = 3, url: f = "https://maps.googleapis.com/maps/api/js", version: o }) {
1071
- if (this.callbacks = [], this.done = !1, this.loading = !1, this.errors = [], this.apiKey = t, this.authReferrerPolicy = l, this.channel = i, this.client = a, this.id = s || gt, this.language = u, this.libraries = m, this.mapIds = h, this.nonce = c, this.region = d, this.retries = b, this.url = f, this.version = o, he.instance) {
1072
- if (!ul(this.options, he.instance.options))
1073
- throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(he.instance.options)}`);
1074
- return he.instance;
1075
- }
1076
- he.instance = this;
1077
- }
1078
- get options() {
1079
- return {
1080
- version: this.version,
1081
- apiKey: this.apiKey,
1082
- channel: this.channel,
1083
- client: this.client,
1084
- id: this.id,
1085
- libraries: this.libraries,
1086
- language: this.language,
1087
- region: this.region,
1088
- mapIds: this.mapIds,
1089
- nonce: this.nonce,
1090
- url: this.url,
1091
- authReferrerPolicy: this.authReferrerPolicy
1092
- };
1093
- }
1094
- get status() {
1095
- return this.errors.length ? ke.FAILURE : this.done ? ke.SUCCESS : this.loading ? ke.LOADING : ke.INITIALIZED;
1096
- }
1097
- get failed() {
1098
- return this.done && !this.loading && this.errors.length >= this.retries + 1;
1099
- }
1100
- /**
1101
- * CreateUrl returns the Google Maps JavaScript API script url given the [[LoaderOptions]].
1102
- *
1103
- * @ignore
1104
- * @deprecated
1105
- */
1106
- createUrl() {
1107
- let t = this.url;
1108
- return t += "?callback=__googleMapsCallback&loading=async", this.apiKey && (t += `&key=${this.apiKey}`), this.channel && (t += `&channel=${this.channel}`), this.client && (t += `&client=${this.client}`), this.libraries.length > 0 && (t += `&libraries=${this.libraries.join(",")}`), this.language && (t += `&language=${this.language}`), this.region && (t += `&region=${this.region}`), this.version && (t += `&v=${this.version}`), this.mapIds && (t += `&map_ids=${this.mapIds.join(",")}`), this.authReferrerPolicy && (t += `&auth_referrer_policy=${this.authReferrerPolicy}`), t;
1109
- }
1110
- deleteScript() {
1111
- const t = document.getElementById(this.id);
1112
- t && t.remove();
1113
- }
1114
- /**
1115
- * Load the Google Maps JavaScript API script and return a Promise.
1116
- * @deprecated, use importLibrary() instead.
1117
- */
1118
- load() {
1119
- return this.loadPromise();
1120
- }
1121
- /**
1122
- * Load the Google Maps JavaScript API script and return a Promise.
1123
- *
1124
- * @ignore
1125
- * @deprecated, use importLibrary() instead.
1126
- */
1127
- loadPromise() {
1128
- return new Promise((t, l) => {
1129
- this.loadCallback((i) => {
1130
- i ? l(i.error) : t(window.google);
1131
- });
1132
- });
1133
- }
1134
- importLibrary(t) {
1135
- return this.execute(), google.maps.importLibrary(t);
1136
- }
1137
- /**
1138
- * Load the Google Maps JavaScript API script with a callback.
1139
- * @deprecated, use importLibrary() instead.
1140
- */
1141
- loadCallback(t) {
1142
- this.callbacks.push(t), this.execute();
1143
- }
1144
- /**
1145
- * Set the script on document.
1146
- */
1147
- setScript() {
1148
- var t, l;
1149
- if (document.getElementById(this.id)) {
1150
- this.callback();
1151
- return;
1152
- }
1153
- const i = {
1154
- key: this.apiKey,
1155
- channel: this.channel,
1156
- client: this.client,
1157
- libraries: this.libraries.length && this.libraries,
1158
- v: this.version,
1159
- mapIds: this.mapIds,
1160
- language: this.language,
1161
- region: this.region,
1162
- authReferrerPolicy: this.authReferrerPolicy
1163
- };
1164
- Object.keys(i).forEach(
1165
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1166
- (s) => !i[s] && delete i[s]
1167
- ), !((l = (t = window?.google) === null || t === void 0 ? void 0 : t.maps) === null || l === void 0) && l.importLibrary || ((s) => {
1168
- let u, m, h, c = "The Google Maps JavaScript API", d = "google", b = "importLibrary", f = "__ib__", o = document, v = window;
1169
- v = v[d] || (v[d] = {});
1170
- const g = v.maps || (v.maps = {}), _ = /* @__PURE__ */ new Set(), k = new URLSearchParams(), T = () => (
1171
- // @ts-ignore
1172
- u || (u = new Promise((A, N) => rl(this, void 0, void 0, function* () {
1173
- var L;
1174
- yield m = o.createElement("script"), m.id = this.id, k.set("libraries", [..._] + "");
1175
- for (h in s)
1176
- k.set(h.replace(/[A-Z]/g, (B) => "_" + B[0].toLowerCase()), s[h]);
1177
- k.set("callback", d + ".maps." + f), m.src = this.url + "?" + k, g[f] = A, m.onerror = () => u = N(Error(c + " could not load.")), m.nonce = this.nonce || ((L = o.querySelector("script[nonce]")) === null || L === void 0 ? void 0 : L.nonce) || "", o.head.append(m);
1178
- })))
1179
- );
1180
- g[b] ? console.warn(c + " only loads once. Ignoring:", s) : g[b] = (A, ...N) => _.add(A) && T().then(() => g[b](A, ...N));
1181
- })(i);
1182
- const a = this.libraries.map((s) => this.importLibrary(s));
1183
- a.length || a.push(this.importLibrary("core")), Promise.all(a).then(() => this.callback(), (s) => {
1184
- const u = new ErrorEvent("error", { error: s });
1185
- this.loadErrorCallback(u);
1186
- });
1187
- }
1188
- /**
1189
- * Reset the loader state.
1190
- */
1191
- reset() {
1192
- this.deleteScript(), this.done = !1, this.loading = !1, this.errors = [], this.onerrorEvent = null;
1193
- }
1194
- resetIfRetryingFailed() {
1195
- this.failed && this.reset();
1196
- }
1197
- loadErrorCallback(t) {
1198
- if (this.errors.push(t), this.errors.length <= this.retries) {
1199
- const l = this.errors.length * Math.pow(2, this.errors.length);
1200
- console.error(`Failed to load Google Maps script, retrying in ${l} ms.`), setTimeout(() => {
1201
- this.deleteScript(), this.setScript();
1202
- }, l);
1203
- } else
1204
- this.onerrorEvent = t, this.callback();
1205
- }
1206
- callback() {
1207
- this.done = !0, this.loading = !1, this.callbacks.forEach((t) => {
1208
- t(this.onerrorEvent);
1209
- }), this.callbacks = [];
1210
- }
1211
- execute() {
1212
- if (this.resetIfRetryingFailed(), !this.loading)
1213
- if (this.done)
1214
- this.callback();
1215
- else {
1216
- if (window.google && window.google.maps && window.google.maps.version) {
1217
- console.warn("Google Maps already loaded outside @googlemaps/js-api-loader. This may result in undesirable behavior as options and script parameters may not match."), this.callback();
1218
- return;
1219
- }
1220
- this.loading = !0, this.setScript();
1221
- }
1222
- }
1223
- }
1224
- const cl = {
1225
- isFlat: {
1226
- default: !0,
1227
- type: Boolean
1228
- },
1229
- locationContext: {
1230
- default: null,
1231
- type: Object
1232
- },
1233
- modelValue: {
1234
- default: null,
1235
- type: Object
1236
- },
1237
- outlined: {
1238
- default: !1,
1239
- type: Boolean
1240
- },
1241
- withDetails: {
1242
- default: !1,
1243
- type: Boolean
1244
- }
1245
- };
1246
- function dl(e) {
1247
- switch (e) {
1248
- case "accounting":
1249
- return "fas fa-calculator";
1250
- case "airport":
1251
- return "fas fa-plane";
1252
- case "amusement_park":
1253
- return "fas fa-funnel-dollar";
1254
- case "aquarium":
1255
- return "fas fa-fish";
1256
- case "art_gallery":
1257
- return "fas fa-paint-brush";
1258
- case "atm":
1259
- return "fas fa-money";
1260
- case "bakery":
1261
- return "fas fa-bread-slice";
1262
- case "bank":
1263
- return "fas fa-university";
1264
- case "bar":
1265
- return "fas fa-cocktail";
1266
- case "beauty_salon":
1267
- return "fas fa-cut";
1268
- case "bicycle_store":
1269
- return "fas fa-bicycle";
1270
- case "book_store":
1271
- return "fas fa-book";
1272
- case "bowling_alley":
1273
- return "fas fa-bowling-ball";
1274
- case "bus_station":
1275
- return "fas fa-bus";
1276
- case "cafe":
1277
- return "fas fa-coffee";
1278
- case "campground":
1279
- return "fas fa-campground";
1280
- case "car_dealer":
1281
- return "fas fa-car";
1282
- case "car_rental":
1283
- return "fas fa-car";
1284
- case "car_repair":
1285
- return "fas fa-wrench";
1286
- case "car_wash":
1287
- return "fas fa-car-wash";
1288
- case "casino":
1289
- return "fas fa-dice";
1290
- case "cemetery":
1291
- return "fas fa-cross";
1292
- case "church":
1293
- return "fas fa-church";
1294
- case "city_hall":
1295
- return "fas fa-city";
1296
- case "clothing_store":
1297
- return "fas fa-tshirt";
1298
- case "convenience_store":
1299
- return "fas fa-shopping-basket";
1300
- case "courthouse":
1301
- return "fas fa-balance-scale";
1302
- case "dentist":
1303
- return "fas fa-tooth";
1304
- case "department_store":
1305
- return "fas fa-store";
1306
- case "doctor":
1307
- return "fas fa-user-md";
1308
- case "drugstore":
1309
- return "fas fa-prescription-bottle-alt";
1310
- case "electrician":
1311
- return "fas fa-bolt";
1312
- case "electronics_store":
1313
- return "fas fa-tv";
1314
- case "embassy":
1315
- return "fas fa-flag";
1316
- case "fire_station":
1317
- return "fas fa-fire-extinguisher";
1318
- case "florist":
1319
- return "fas fa-seedling";
1320
- case "funeral_home":
1321
- return "fas fa-cross";
1322
- case "furniture_store":
1323
- return "fas fa-chair";
1324
- case "gas_station":
1325
- return "fas fa-gas-pump";
1326
- case "gym":
1327
- return "fas fa-dumbbell";
1328
- case "hair_care":
1329
- return "fas fa-cut";
1330
- case "hardware_store":
1331
- return "fas fa-tools";
1332
- case "hindu_temple":
1333
- return "fas fa-om";
1334
- case "home_goods_store":
1335
- return "fas fa-home";
1336
- case "hospital":
1337
- return "fas fa-hospital";
1338
- case "insurance_agency":
1339
- return "fas fa-shield-alt";
1340
- case "jewelry_store":
1341
- return "fas fa-gem";
1342
- case "laundry":
1343
- return "fas fa-tshirt";
1344
- case "lawyer":
1345
- return "fas fa-balance-scale";
1346
- case "library":
1347
- return "fas fa-book-open";
1348
- case "light_rail_station":
1349
- return "fas fa-train";
1350
- case "liquor_store":
1351
- return "fas fa-wine-bottle";
1352
- case "local_government_office":
1353
- return "fas fa-landmark";
1354
- case "locksmith":
1355
- return "fas fa-lock";
1356
- case "lodging":
1357
- return "fas fa-hotel";
1358
- case "meal_delivery":
1359
- return "fas fa-truck";
1360
- case "meal_takeaway":
1361
- return "fas fa-box";
1362
- case "mosque":
1363
- return "fas fa-mosque";
1364
- case "movie_rental":
1365
- return "fas fa-film";
1366
- case "movie_theater":
1367
- return "fas fa-film";
1368
- case "moving_company":
1369
- return "fas fa-truck";
1370
- case "museum":
1371
- return "fas fa-university";
1372
- case "night_club":
1373
- return "fas fa-glass-martini-alt";
1374
- case "painter":
1375
- return "fas fa-paint-roller";
1376
- case "park":
1377
- return "fas fa-tree";
1378
- case "parking":
1379
- return "fas fa-parking";
1380
- case "pet_store":
1381
- return "fas fa-paw";
1382
- case "pharmacy":
1383
- return "fas fa-prescription-bottle-alt";
1384
- case "physiotherapist":
1385
- return "fas fa-briefcase-medical";
1386
- case "plumber":
1387
- return "fas fa-wrench";
1388
- case "police":
1389
- return "fas fa-police";
1390
- case "post_office":
1391
- return "fas fa-mail-bulk";
1392
- case "primary_school":
1393
- return "fas fa-school";
1394
- case "real_estate_agency":
1395
- return "fas fa-building";
1396
- case "restaurant":
1397
- return "fas fa-utensils";
1398
- case "roofing_contractor":
1399
- return "fas fa-tools";
1400
- case "rv_park":
1401
- return "fas fa-campground";
1402
- case "school":
1403
- return "fas fa-graduation-cap";
1404
- case "secondary_school":
1405
- return "fas fa-school";
1406
- case "shoe_store":
1407
- return "fas fa-shoe-prints";
1408
- case "shopping_mall":
1409
- return "fas fa-shopping-mall";
1410
- case "spa":
1411
- return "fas fa-spa";
1412
- case "stadium":
1413
- return "fas fa-stadium";
1414
- case "storage":
1415
- return "fas fa-warehouse";
1416
- case "store":
1417
- return "fas fa-store";
1418
- case "subway_station":
1419
- return "fas fa-subway";
1420
- case "supermarket":
1421
- return "fas fa-shopping-cart";
1422
- case "synagogue":
1423
- return "fas fa-synagogue";
1424
- case "taxi_stand":
1425
- return "fas fa-taxi";
1426
- case "tourist_attraction":
1427
- return "fas fa-map-marked-alt";
1428
- case "train_station":
1429
- return "fas fa-train";
1430
- case "transit_station":
1431
- return "fas fa-bus";
1432
- case "travel_agency":
1433
- return "fas fa-map-marked-alt";
1434
- case "university":
1435
- return "fas fa-graduation-cap";
1436
- case "veterinary_care":
1437
- return "fas fa-paw";
1438
- case "zoo":
1439
- return "fas fa-paw";
1440
- case void 0:
1441
- default:
1442
- return "fas fa-location-dot";
1443
- }
1444
- }
1445
- const Yt = /* @__PURE__ */ Q({
1446
- __name: "BSearchLocationInput",
1447
- props: /* @__PURE__ */ be(cl, {
1448
- modelValue: {},
1449
- modelModifiers: {}
1450
- }),
1451
- emits: ["update:modelValue"],
1452
- setup(e) {
1453
- function t(o) {
1454
- return dl(o?.[0]);
1455
- }
1456
- const { t: l } = ne(), { config: i } = Ra(), a = ue(e, "modelValue"), s = H(""), u = H([]), m = H(!1), h = H(!1), c = p(() => zi(i.value.apiEnvironment)), d = e;
1457
- function b() {
1458
- return new Promise((o) => {
1459
- new he({
1460
- apiKey: c.value,
1461
- libraries: ["places"],
1462
- version: "quarterly"
1463
- }).importLibrary("places").then(({ PlacesService: g }) => {
1464
- const _ = new g(document.createElement("div"));
1465
- if (s.value || o([]), d.locationContext) {
1466
- const k = {
1467
- location: {
1468
- lat: d.locationContext.latitude,
1469
- lng: d.locationContext.longitude
1470
- },
1471
- query: s.value,
1472
- radius: 1e4
1473
- };
1474
- _.textSearch(k, (T) => {
1475
- o(T ?? []);
1476
- });
1477
- } else {
1478
- const k = {
1479
- fields: ["name", "geometry", "types", "formatted_address"],
1480
- query: s.value
1481
- };
1482
- _.findPlaceFromQuery(k, (T) => {
1483
- o(T ?? []);
1484
- });
1485
- }
1486
- }).catch((g) => {
1487
- pt.error(g), o([]);
1488
- });
1489
- });
1490
- }
1491
- const f = xt(async () => {
1492
- try {
1493
- m.value = !0;
1494
- const o = await b();
1495
- return u.value = o.filter((v) => !!v.geometry?.location).map((v) => ({
1496
- icon: t(v.types),
1497
- latitude: v.geometry.location.lat(),
1498
- longitude: v.geometry.location.lng(),
1499
- raw: v,
1500
- subtitle: v.formatted_address ?? "",
1501
- title: Sa([v.name]).join(" ")
1502
- })), m.value = !1, u.value;
1503
- } catch (o) {
1504
- return pt.error(o), m.value = !1, [];
1505
- }
1506
- }, 500);
1507
- return W(s, async (o) => {
1508
- if (!o) {
1509
- u.value = [];
1510
- return;
1511
- }
1512
- await f();
1513
- }), He(() => {
1514
- qe(() => {
1515
- s.value = a.value?.raw?.name || "";
1516
- }).catch((o) => {
1517
- console.error(o);
1518
- });
1519
- }), (o, v) => (M(), z(Ii, {
1520
- class: ve(["search-location-input", { focused: h.value }]),
1521
- density: "compact",
1522
- flat: o.isFlat,
1523
- "hide-details": !o.withDetails,
1524
- "hide-no-data": "",
1525
- "item-title": "title",
1526
- items: u.value,
1527
- placeholder: y(l)("BSearchLocationInput.placeholder"),
1528
- loading: m.value,
1529
- "no-filter": "",
1530
- outlined: o.outlined,
1531
- "return-object": "",
1532
- modelValue: a.value,
1533
- "onUpdate:modelValue": v[0] || (v[0] = (g) => a.value = g),
1534
- search: s.value,
1535
- "onUpdate:search": v[1] || (v[1] = (g) => s.value = g),
1536
- focused: h.value,
1537
- "onUpdate:focused": v[2] || (v[2] = (g) => h.value = g),
1538
- variant: o.outlined ? void 0 : "solo",
1539
- color: "primary",
1540
- "menu-props": {
1541
- contentClass: "elevation-1"
1542
- },
1543
- "list-props": {
1544
- elevation: 0,
1545
- class: "mt-1"
1546
- }
1547
- }, {
1548
- "prepend-inner": n(() => [
1549
- r(oe, { size: "15" }, {
1550
- default: n(() => v[3] || (v[3] = [
1551
- E("fas fa-solid fa-magnifying-glass")
1552
- ])),
1553
- _: 1,
1554
- __: [3]
1555
- })
1556
- ]),
1557
- item: n(({ item: g, props: _ }) => [
1558
- r(Xe, Ma(Oa(_)), {
1559
- prepend: n(() => [
1560
- r(oe, {
1561
- color: "primary",
1562
- size: "25"
1563
- }, {
1564
- default: n(() => [
1565
- E(O(g.raw.icon), 1)
1566
- ]),
1567
- _: 2
1568
- }, 1024)
1569
- ]),
1570
- _: 2
1571
- }, 1040)
1572
- ]),
1573
- _: 1
1574
- }, 8, ["flat", "hide-details", "items", "placeholder", "loading", "outlined", "modelValue", "search", "focused", "variant", "class"]));
1575
- }
1576
- });
1577
- function yt(e) {
1578
- const t = e;
1579
- t.__i18n = t.__i18n || [], t.__i18n.push({
1580
- locale: "",
1581
- resource: {
1582
- "en-US": {
1583
- BSearchLocationInput: {
1584
- label: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Location" } },
1585
- placeholder: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Search for a location" } },
1586
- noDataText: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "No locations found" } }
1587
- }
1588
- },
1589
- "fr-FR": {
1590
- BSearchLocationInput: {
1591
- label: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Adresse" } },
1592
- placeholder: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Entrer une adresse" } },
1593
- noDataText: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Aucun résultat trouvé" } }
1594
- }
1595
- },
1596
- "de-DE": {
1597
- BSearchLocationInput: {
1598
- label: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ort" } },
1599
- placeholder: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Suche nach einem Ort" } },
1600
- noDataText: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Keine Orte gefunden" } }
1601
- }
1602
- },
1603
- "es-ES": {
1604
- BSearchLocationInput: {
1605
- label: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ubicación" } },
1606
- placeholder: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Buscar una ubicación" } },
1607
- noDataText: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "No se encontraron ubicaciones" } }
1608
- }
1609
- },
1610
- "it-IT": {
1611
- BSearchLocationInput: {
1612
- label: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Luogo" } },
1613
- placeholder: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Cerca una località" } },
1614
- noDataText: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Nessuna località trovata" } }
1615
- }
1616
- },
1617
- "nl-NL": {
1618
- BSearchLocationInput: {
1619
- label: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Locatie" } },
1620
- placeholder: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Zoek naar een locatie" } },
1621
- noDataText: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Geen locaties gevonden" } }
1622
- }
1623
- },
1624
- "pt-PT": {
1625
- BSearchLocationInput: {
1626
- label: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Localização" } },
1627
- placeholder: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pesquisar por uma localização" } },
1628
- noDataText: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Nenhuma localização encontrada" } }
1629
- }
1630
- }
1631
- }
1632
- });
1633
- }
1634
- typeof yt == "function" && yt(Yt);
1635
- const qr = /* @__PURE__ */ le(Yt, [["__scopeId", "data-v-ef7430f3"]]), lt = Symbol.for("vuetify:v-slider");
1636
- function Je(e, t, l) {
1637
- const i = l === "vertical", a = t.getBoundingClientRect(), s = "touches" in e ? e.touches[0] : e;
1638
- return i ? s.clientY - (a.top + a.height / 2) : s.clientX - (a.left + a.width / 2);
1639
- }
1640
- function fl(e, t) {
1641
- return "touches" in e && e.touches.length ? e.touches[0][t] : "changedTouches" in e && e.changedTouches.length ? e.changedTouches[0][t] : e[t];
1642
- }
1643
- const vl = Re({
1644
- disabled: {
1645
- type: Boolean,
1646
- default: null
1647
- },
1648
- error: Boolean,
1649
- readonly: {
1650
- type: Boolean,
1651
- default: null
1652
- },
1653
- max: {
1654
- type: [Number, String],
1655
- default: 100
1656
- },
1657
- min: {
1658
- type: [Number, String],
1659
- default: 0
1660
- },
1661
- step: {
1662
- type: [Number, String],
1663
- default: 0
1664
- },
1665
- thumbColor: String,
1666
- thumbLabel: {
1667
- type: [Boolean, String],
1668
- default: void 0,
1669
- validator: (e) => typeof e == "boolean" || e === "always"
1670
- },
1671
- thumbSize: {
1672
- type: [Number, String],
1673
- default: 20
1674
- },
1675
- showTicks: {
1676
- type: [Boolean, String],
1677
- default: !1,
1678
- validator: (e) => typeof e == "boolean" || e === "always"
1679
- },
1680
- ticks: {
1681
- type: [Array, Object]
1682
- },
1683
- tickSize: {
1684
- type: [Number, String],
1685
- default: 2
1686
- },
1687
- color: String,
1688
- trackColor: String,
1689
- trackFillColor: String,
1690
- trackSize: {
1691
- type: [Number, String],
1692
- default: 4
1693
- },
1694
- direction: {
1695
- type: String,
1696
- default: "horizontal",
1697
- validator: (e) => ["vertical", "horizontal"].includes(e)
1698
- },
1699
- reverse: Boolean,
1700
- ...jt(),
1701
- ...Ut({
1702
- elevation: 2
1703
- }),
1704
- ripple: {
1705
- type: Boolean,
1706
- default: !0
1707
- }
1708
- }, "Slider"), ml = (e) => {
1709
- const t = p(() => parseFloat(e.min)), l = p(() => parseFloat(e.max)), i = p(() => Number(e.step) > 0 ? parseFloat(e.step) : 0), a = p(() => Math.max(st(i.value), st(t.value)));
1710
- function s(u) {
1711
- if (u = parseFloat(u), i.value <= 0) return u;
1712
- const m = et(u, t.value, l.value), h = t.value % i.value, c = Math.round((m - h) / i.value) * i.value + h;
1713
- return parseFloat(Math.min(c, l.value).toFixed(a.value));
1714
- }
1715
- return {
1716
- min: t,
1717
- max: l,
1718
- step: i,
1719
- decimals: a,
1720
- roundValue: s
1721
- };
1722
- }, pl = (e) => {
1723
- let {
1724
- props: t,
1725
- steps: l,
1726
- onSliderStart: i,
1727
- onSliderMove: a,
1728
- onSliderEnd: s,
1729
- getActiveThumb: u
1730
- } = e;
1731
- const {
1732
- isRtl: m
1733
- } = Ne(), h = te(t, "reverse"), c = p(() => t.direction === "vertical"), d = p(() => c.value !== h.value), {
1734
- min: b,
1735
- max: f,
1736
- step: o,
1737
- decimals: v,
1738
- roundValue: g
1739
- } = l, _ = p(() => parseInt(t.thumbSize, 10)), k = p(() => parseInt(t.tickSize, 10)), T = p(() => parseInt(t.trackSize, 10)), A = p(() => (f.value - b.value) / o.value), N = te(t, "disabled"), L = p(() => t.error || t.disabled ? void 0 : t.thumbColor ?? t.color), B = p(() => t.error || t.disabled ? void 0 : t.trackColor ?? t.color), S = p(() => t.error || t.disabled ? void 0 : t.trackFillColor ?? t.color), F = se(!1), V = se(0), x = H(), C = H();
1740
- function R(I) {
1741
- const j = x.value?.$el;
1742
- if (!j) return;
1743
- const Te = t.direction === "vertical", sa = Te ? "top" : "left", oa = Te ? "height" : "width", na = Te ? "clientY" : "clientX", {
1744
- [sa]: ua,
1745
- [oa]: ca
1746
- } = j.getBoundingClientRect(), da = fl(I, na);
1747
- let Ge = Math.min(Math.max((da - ua - V.value) / ca, 0), 1) || 0;
1748
- return (Te ? d.value : d.value !== m.value) && (Ge = 1 - Ge), g(b.value + Ge * (f.value - b.value));
1749
- }
1750
- const w = (I) => {
1751
- const j = R(I);
1752
- j != null && s({
1753
- value: j
1754
- }), F.value = !1, V.value = 0;
1755
- }, $ = (I) => {
1756
- const j = R(I);
1757
- C.value = u(I), C.value && (F.value = !0, C.value.contains(I.target) ? V.value = Je(I, C.value, t.direction) : (V.value = 0, j != null && a({
1758
- value: j
1759
- })), j != null && i({
1760
- value: j
1761
- }), qe(() => C.value?.focus()));
1762
- }, P = {
1763
- passive: !0,
1764
- capture: !0
1765
- };
1766
- function J(I) {
1767
- const j = R(I);
1768
- j != null && a({
1769
- value: j
1770
- });
1771
- }
1772
- function ge(I) {
1773
- I.stopPropagation(), I.preventDefault(), w(I), window.removeEventListener("mousemove", J, P), window.removeEventListener("mouseup", ge);
1774
- }
1775
- function me(I) {
1776
- w(I), window.removeEventListener("touchmove", J, P), I.target?.removeEventListener("touchend", me);
1777
- }
1778
- function Se(I) {
1779
- $(I), window.addEventListener("touchmove", J, P), I.target?.addEventListener("touchend", me, {
1780
- passive: !1
1781
- });
1782
- }
1783
- function D(I) {
1784
- I.button === 0 && (I.preventDefault(), $(I), window.addEventListener("mousemove", J, P), window.addEventListener("mouseup", ge, {
1785
- passive: !1
1786
- }));
1787
- }
1788
- const Z = (I) => {
1789
- const j = (I - b.value) / (f.value - b.value) * 100;
1790
- return et(isNaN(j) ? 0 : j, 0, 100);
1791
- }, ye = te(t, "showTicks"), Me = p(() => ye.value ? t.ticks ? Array.isArray(t.ticks) ? t.ticks.map((I) => ({
1792
- value: I,
1793
- position: Z(I),
1794
- label: I.toString()
1795
- })) : Object.keys(t.ticks).map((I) => ({
1796
- value: parseFloat(I),
1797
- position: Z(parseFloat(I)),
1798
- label: t.ticks[I]
1799
- })) : A.value !== 1 / 0 ? At(A.value + 1).map((I) => {
1800
- const j = b.value + I * o.value;
1801
- return {
1802
- value: j,
1803
- position: Z(j)
1804
- };
1805
- }) : [] : []), xe = p(() => Me.value.some((I) => {
1806
- let {
1807
- label: j
1808
- } = I;
1809
- return !!j;
1810
- })), Ee = {
1811
- activeThumbRef: C,
1812
- color: te(t, "color"),
1813
- decimals: v,
1814
- disabled: N,
1815
- direction: te(t, "direction"),
1816
- elevation: te(t, "elevation"),
1817
- hasLabels: xe,
1818
- isReversed: h,
1819
- indexFromEnd: d,
1820
- min: b,
1821
- max: f,
1822
- mousePressed: F,
1823
- numTicks: A,
1824
- onSliderMousedown: D,
1825
- onSliderTouchstart: Se,
1826
- parsedTicks: Me,
1827
- parseMouseMove: R,
1828
- position: Z,
1829
- readonly: te(t, "readonly"),
1830
- rounded: te(t, "rounded"),
1831
- roundValue: g,
1832
- showTicks: ye,
1833
- startOffset: V,
1834
- step: o,
1835
- thumbSize: _,
1836
- thumbColor: L,
1837
- thumbLabel: te(t, "thumbLabel"),
1838
- ticks: te(t, "ticks"),
1839
- tickSize: k,
1840
- trackColor: B,
1841
- trackContainerRef: x,
1842
- trackFillColor: S,
1843
- trackSize: T,
1844
- vertical: c
1845
- };
1846
- return Ca(lt, Ee), Ee;
1847
- }, hl = Re({
1848
- focused: Boolean,
1849
- max: {
1850
- type: Number,
1851
- required: !0
1852
- },
1853
- min: {
1854
- type: Number,
1855
- required: !0
1856
- },
1857
- modelValue: {
1858
- type: Number,
1859
- required: !0
1860
- },
1861
- position: {
1862
- type: Number,
1863
- required: !0
1864
- },
1865
- ripple: {
1866
- type: [Boolean, Object],
1867
- default: !0
1868
- },
1869
- name: String,
1870
- ...ze()
1871
- }, "VSliderThumb"), wt = Ve()({
1872
- name: "VSliderThumb",
1873
- directives: {
1874
- Ripple: wi
1875
- },
1876
- props: hl(),
1877
- emits: {
1878
- "update:modelValue": (e) => !0
1879
- },
1880
- setup(e, t) {
1881
- let {
1882
- slots: l,
1883
- emit: i
1884
- } = t;
1885
- const a = Lt(lt), {
1886
- isRtl: s,
1887
- rtlClasses: u
1888
- } = Ne();
1889
- if (!a) throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");
1890
- const {
1891
- thumbColor: m,
1892
- step: h,
1893
- disabled: c,
1894
- thumbSize: d,
1895
- thumbLabel: b,
1896
- direction: f,
1897
- isReversed: o,
1898
- vertical: v,
1899
- readonly: g,
1900
- elevation: _,
1901
- mousePressed: k,
1902
- decimals: T,
1903
- indexFromEnd: A
1904
- } = a, N = p(() => c.value ? void 0 : _.value), {
1905
- elevationClasses: L
1906
- } = Kt(N), {
1907
- textColorClasses: B,
1908
- textColorStyles: S
1909
- } = Ja(m), {
1910
- pageup: F,
1911
- pagedown: V,
1912
- end: x,
1913
- home: C,
1914
- left: R,
1915
- right: w,
1916
- down: $,
1917
- up: P
1918
- } = Ia, J = [F, V, x, C, R, w, $, P], ge = p(() => h.value ? [1, 2, 3] : [1, 5, 10]);
1919
- function me(D, Z) {
1920
- if (!J.includes(D.key)) return;
1921
- D.preventDefault();
1922
- const ye = h.value || 0.1, Me = (e.max - e.min) / ye;
1923
- if ([R, w, $, P].includes(D.key)) {
1924
- const Ee = (v.value ? [s.value ? R : w, o.value ? $ : P] : A.value !== s.value ? [R, P] : [w, P]).includes(D.key) ? 1 : -1, I = D.shiftKey ? 2 : D.ctrlKey ? 1 : 0;
1925
- Z = Z + Ee * ye * ge.value[I];
1926
- } else if (D.key === C)
1927
- Z = e.min;
1928
- else if (D.key === x)
1929
- Z = e.max;
1930
- else {
1931
- const xe = D.key === V ? 1 : -1;
1932
- Z = Z - xe * ye * (Me > 100 ? Me / 10 : 10);
1933
- }
1934
- return Math.max(e.min, Math.min(e.max, Z));
1935
- }
1936
- function Se(D) {
1937
- const Z = me(D, e.modelValue);
1938
- Z != null && i("update:modelValue", Z);
1939
- }
1940
- return Pe(() => {
1941
- const D = fe(A.value ? 100 - e.position : e.position, "%");
1942
- return r("div", {
1943
- class: ["v-slider-thumb", {
1944
- "v-slider-thumb--focused": e.focused,
1945
- "v-slider-thumb--pressed": e.focused && k.value
1946
- }, e.class, u.value],
1947
- style: [{
1948
- "--v-slider-thumb-position": D,
1949
- "--v-slider-thumb-size": fe(d.value)
1950
- }, e.style],
1951
- role: "slider",
1952
- tabindex: c.value ? -1 : 0,
1953
- "aria-label": e.name,
1954
- "aria-valuemin": e.min,
1955
- "aria-valuemax": e.max,
1956
- "aria-valuenow": e.modelValue,
1957
- "aria-readonly": !!g.value,
1958
- "aria-orientation": f.value,
1959
- onKeydown: g.value ? void 0 : Se
1960
- }, [r("div", {
1961
- class: ["v-slider-thumb__surface", B.value, L.value],
1962
- style: {
1963
- ...S.value
1964
- }
1965
- }, null), Ze(r("div", {
1966
- class: ["v-slider-thumb__ripple", B.value],
1967
- style: S.value
1968
- }, null), [[Va("ripple"), e.ripple, null, {
1969
- circle: !0,
1970
- center: !0
1971
- }]]), r(ki, {
1972
- origin: "bottom center"
1973
- }, {
1974
- default: () => [Ze(r("div", {
1975
- class: "v-slider-thumb__label-container"
1976
- }, [r("div", {
1977
- class: ["v-slider-thumb__label"]
1978
- }, [r("div", null, [l["thumb-label"]?.({
1979
- modelValue: e.modelValue
1980
- }) ?? e.modelValue.toFixed(h.value ? T.value : 1)])])]), [[Dt, b.value && e.focused || b.value === "always"]])]
1981
- })]);
1982
- }), {};
1983
- }
1984
- }), bl = Re({
1985
- start: {
1986
- type: Number,
1987
- required: !0
1988
- },
1989
- stop: {
1990
- type: Number,
1991
- required: !0
1992
- },
1993
- ...ze()
1994
- }, "VSliderTrack"), gl = Ve()({
1995
- name: "VSliderTrack",
1996
- props: bl(),
1997
- emits: {},
1998
- setup(e, t) {
1999
- let {
2000
- slots: l
2001
- } = t;
2002
- const i = Lt(lt);
2003
- if (!i) throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");
2004
- const {
2005
- color: a,
2006
- parsedTicks: s,
2007
- rounded: u,
2008
- showTicks: m,
2009
- tickSize: h,
2010
- trackColor: c,
2011
- trackFillColor: d,
2012
- trackSize: b,
2013
- vertical: f,
2014
- min: o,
2015
- max: v,
2016
- indexFromEnd: g
2017
- } = i, {
2018
- roundedClasses: _
2019
- } = Gt(u), {
2020
- backgroundColorClasses: k,
2021
- backgroundColorStyles: T
2022
- } = $e(d), {
2023
- backgroundColorClasses: A,
2024
- backgroundColorStyles: N
2025
- } = $e(c), L = p(() => `inset-${f.value ? "block" : "inline"}-${g.value ? "end" : "start"}`), B = p(() => f.value ? "height" : "width"), S = p(() => ({
2026
- [L.value]: "0%",
2027
- [B.value]: "100%"
2028
- })), F = p(() => e.stop - e.start), V = p(() => ({
2029
- [L.value]: fe(e.start, "%"),
2030
- [B.value]: fe(F.value, "%")
2031
- })), x = p(() => m.value ? (f.value ? s.value.slice().reverse() : s.value).map((R, w) => {
2032
- const $ = R.value !== o.value && R.value !== v.value ? fe(R.position, "%") : void 0;
2033
- return r("div", {
2034
- key: R.value,
2035
- class: ["v-slider-track__tick", {
2036
- "v-slider-track__tick--filled": R.position >= e.start && R.position <= e.stop,
2037
- "v-slider-track__tick--first": R.value === o.value,
2038
- "v-slider-track__tick--last": R.value === v.value
2039
- }],
2040
- style: {
2041
- [L.value]: $
2042
- }
2043
- }, [(R.label || l["tick-label"]) && r("div", {
2044
- class: "v-slider-track__tick-label"
2045
- }, [l["tick-label"]?.({
2046
- tick: R,
2047
- index: w
2048
- }) ?? R.label])]);
2049
- }) : []);
2050
- return Pe(() => r("div", {
2051
- class: ["v-slider-track", _.value, e.class],
2052
- style: [{
2053
- "--v-slider-track-size": fe(b.value),
2054
- "--v-slider-tick-size": fe(h.value)
2055
- }, e.style]
2056
- }, [r("div", {
2057
- class: ["v-slider-track__background", A.value, {
2058
- "v-slider-track__background--opacity": !!a.value || !d.value
2059
- }],
2060
- style: {
2061
- ...S.value,
2062
- ...N.value
2063
- }
2064
- }, null), r("div", {
2065
- class: ["v-slider-track__fill", k.value],
2066
- style: {
2067
- ...V.value,
2068
- ...T.value
2069
- }
2070
- }, null), m.value && r("div", {
2071
- class: ["v-slider-track__ticks", {
2072
- "v-slider-track__ticks--always-show": m.value === "always"
2073
- }]
2074
- }, [x.value])])), {};
2075
- }
2076
- }), yl = Re({
2077
- ...Ti(),
2078
- ...Ei(),
2079
- ...vl(),
2080
- strict: Boolean,
2081
- modelValue: {
2082
- type: Array,
2083
- default: () => [0, 0]
2084
- }
2085
- }, "VRangeSlider"), wl = Ve()({
2086
- name: "VRangeSlider",
2087
- props: yl(),
2088
- emits: {
2089
- "update:focused": (e) => !0,
2090
- "update:modelValue": (e) => !0,
2091
- end: (e) => !0,
2092
- start: (e) => !0
2093
- },
2094
- setup(e, t) {
2095
- let {
2096
- slots: l,
2097
- emit: i
2098
- } = t;
2099
- const a = H(), s = H(), u = H(), {
2100
- rtlClasses: m
2101
- } = Ne();
2102
- function h(x) {
2103
- if (!a.value || !s.value) return;
2104
- const C = Je(x, a.value.$el, e.direction), R = Je(x, s.value.$el, e.direction), w = Math.abs(C), $ = Math.abs(R);
2105
- return w < $ || w === $ && C < 0 ? a.value.$el : s.value.$el;
2106
- }
2107
- const c = ml(e), d = tt(e, "modelValue", void 0, (x) => x?.length ? x.map((C) => c.roundValue(C)) : [0, 0]), {
2108
- activeThumbRef: b,
2109
- hasLabels: f,
2110
- max: o,
2111
- min: v,
2112
- mousePressed: g,
2113
- onSliderMousedown: _,
2114
- onSliderTouchstart: k,
2115
- position: T,
2116
- trackContainerRef: A,
2117
- readonly: N
2118
- } = pl({
2119
- props: e,
2120
- steps: c,
2121
- onSliderStart: () => {
2122
- i("start", d.value);
2123
- },
2124
- onSliderEnd: (x) => {
2125
- let {
2126
- value: C
2127
- } = x;
2128
- const R = b.value === a.value?.$el ? [C, d.value[1]] : [d.value[0], C];
2129
- !e.strict && R[0] < R[1] && (d.value = R), i("end", d.value);
2130
- },
2131
- onSliderMove: (x) => {
2132
- let {
2133
- value: C
2134
- } = x;
2135
- const [R, w] = d.value;
2136
- !e.strict && R === w && R !== v.value && (b.value = C > R ? s.value?.$el : a.value?.$el, b.value?.focus()), b.value === a.value?.$el ? d.value = [Math.min(C, w), w] : d.value = [R, Math.max(R, C)];
2137
- },
2138
- getActiveThumb: h
2139
- }), {
2140
- isFocused: L,
2141
- focus: B,
2142
- blur: S
2143
- } = xi(e), F = p(() => T(d.value[0])), V = p(() => T(d.value[1]));
2144
- return Pe(() => {
2145
- const x = vt.filterProps(e), C = !!(e.label || l.label || l.prepend);
2146
- return r(vt, ee({
2147
- class: ["v-slider", "v-range-slider", {
2148
- "v-slider--has-labels": !!l["tick-label"] || f.value,
2149
- "v-slider--focused": L.value,
2150
- "v-slider--pressed": g.value,
2151
- "v-slider--disabled": e.disabled
2152
- }, m.value, e.class],
2153
- style: e.style,
2154
- ref: u
2155
- }, x, {
2156
- focused: L.value
2157
- }), {
2158
- ...l,
2159
- prepend: C ? (R) => r(ie, null, [l.label?.(R) ?? (e.label ? r(Li, {
2160
- class: "v-slider__label",
2161
- text: e.label
2162
- }, null) : void 0), l.prepend?.(R)]) : void 0,
2163
- default: (R) => {
2164
- let {
2165
- id: w,
2166
- messagesId: $
2167
- } = R;
2168
- return r("div", {
2169
- class: "v-slider__container",
2170
- onMousedown: N.value ? void 0 : _,
2171
- onTouchstartPassive: N.value ? void 0 : k
2172
- }, [r("input", {
2173
- id: `${w.value}_start`,
2174
- name: e.name || w.value,
2175
- disabled: !!e.disabled,
2176
- readonly: !!e.readonly,
2177
- tabindex: "-1",
2178
- value: d.value[0]
2179
- }, null), r("input", {
2180
- id: `${w.value}_stop`,
2181
- name: e.name || w.value,
2182
- disabled: !!e.disabled,
2183
- readonly: !!e.readonly,
2184
- tabindex: "-1",
2185
- value: d.value[1]
2186
- }, null), r(gl, {
2187
- ref: A,
2188
- start: F.value,
2189
- stop: V.value
2190
- }, {
2191
- "tick-label": l["tick-label"]
2192
- }), r(wt, {
2193
- ref: a,
2194
- "aria-describedby": $.value,
2195
- focused: L && b.value === a.value?.$el,
2196
- modelValue: d.value[0],
2197
- "onUpdate:modelValue": (P) => d.value = [P, d.value[1]],
2198
- onFocus: (P) => {
2199
- B(), b.value = a.value?.$el, o.value !== v.value && d.value[0] === d.value[1] && d.value[1] === v.value && P.relatedTarget !== s.value?.$el && (a.value?.$el.blur(), s.value?.$el.focus());
2200
- },
2201
- onBlur: () => {
2202
- S(), b.value = void 0;
2203
- },
2204
- min: v.value,
2205
- max: d.value[1],
2206
- position: F.value,
2207
- ripple: e.ripple
2208
- }, {
2209
- "thumb-label": l["thumb-label"]
2210
- }), r(wt, {
2211
- ref: s,
2212
- "aria-describedby": $.value,
2213
- focused: L && b.value === s.value?.$el,
2214
- modelValue: d.value[1],
2215
- "onUpdate:modelValue": (P) => d.value = [d.value[0], P],
2216
- onFocus: (P) => {
2217
- B(), b.value = s.value?.$el, o.value !== v.value && d.value[0] === d.value[1] && d.value[0] === o.value && P.relatedTarget !== a.value?.$el && (s.value?.$el.blur(), a.value?.$el.focus());
2218
- },
2219
- onBlur: () => {
2220
- S(), b.value = void 0;
2221
- },
2222
- min: d.value[0],
2223
- max: o.value,
2224
- position: V.value,
2225
- ripple: e.ripple
2226
- }, {
2227
- "thumb-label": l["thumb-label"]
2228
- })]);
2229
- }
2230
- });
2231
- }), {};
2232
- }
2233
- }), kl = { style: { "max-width": "400px" } }, Bl = {
2234
- key: 0,
2235
- class: "chart"
2236
- }, _l = {
2237
- key: 1,
2238
- class: "chart"
2239
- }, Rl = { class: "text-caption" }, Zt = /* @__PURE__ */ Q({
2240
- __name: "BFilterByPrice",
2241
- props: /* @__PURE__ */ be({
2242
- currency: {},
2243
- disabled: { type: Boolean },
2244
- isLoading: { type: Boolean },
2245
- priceHistogram: {},
2246
- priceMax: {},
2247
- priceMin: {},
2248
- step: { default: 1 }
2249
- }, {
2250
- modelValue: {
2251
- default: () => [0, 0]
2252
- },
2253
- modelModifiers: {}
2254
- }),
2255
- emits: ["update:modelValue"],
2256
- setup(e) {
2257
- const { t } = ne(), l = e, i = ue(e, "modelValue"), a = p(
2258
- () => ot([l.priceMin, l.priceMax], (f) => f)
2259
- ), s = p({
2260
- get() {
2261
- return i.value && (i.value[0] || i.value[1]) ? i.value : [a.value[0], a.value[1]];
2262
- },
2263
- set(f) {
2264
- i.value = f;
2265
- }
2266
- }), u = p({
2267
- get() {
2268
- return i.value && i.value[0] || a.value[0];
2269
- },
2270
- set(f) {
2271
- f >= i.value[1] ? i.value = [i.value[1], i.value[1]] : f <= a.value[0] ? i.value = [a.value[0], i.value[1]] : i.value = [f, i.value[1]];
2272
- }
2273
- }), m = p({
2274
- get() {
2275
- return i.value && i.value[1] || a.value[1];
2276
- },
2277
- set(f) {
2278
- f <= i.value[0] ? i.value = [i.value[0], i.value[0]] : a.value[1] <= f ? i.value = [i.value[0], a.value[1]] : i.value = [i.value[0], f];
2279
- }
2280
- }), h = (f) => `${Math.log(f + 1) / Math.log(Math.max(...l.priceHistogram || [])) * 40}px`, c = p(() => Fi(l.currency)), d = () => {
2281
- i.value = [a.value[0], i.value[1]];
2282
- }, b = () => {
2283
- i.value = [i.value[0], a.value[1]];
2284
- };
2285
- return W(
2286
- a,
2287
- (f, o) => {
2288
- i.value && (i.value[0] || i.value[1]) && (o && (f[0] >= o[1] || f[1] <= o[0]) ? i.value = [0, 0] : i.value = ot(
2289
- [
2290
- Math.max(i.value[0], f[0]),
2291
- Math.min(i.value[1], f[1])
2292
- ],
2293
- (v) => v
2294
- ));
2295
- },
2296
- {
2297
- deep: !0,
2298
- immediate: !0
2299
- }
2300
- ), (f, o) => (M(), G("div", kl, [
2301
- r(re, { "no-gutters": "" }, {
2302
- default: n(() => [
2303
- r(Y, null, {
2304
- default: n(() => [
2305
- r(at, {
2306
- class: ve(["filter-price-slider pa-0", f.disabled && "cursor-not-allowed"])
2307
- }, {
2308
- default: n(() => [
2309
- f.isLoading ? (M(), G("ul", Bl, [
2310
- (M(!0), G(ie, null, _e(Array.from(
2311
- { length: 30 },
2312
- () => Math.random() * 35 + 5
2313
- ), () => (M(), G("li", null, o[3] || (o[3] = [
2314
- q("span", { class: "loader" }, null, -1)
2315
- ])))), 256))
2316
- ])) : (M(), G("ul", _l, [
2317
- (M(!0), G(ie, null, _e(f.priceHistogram, (v) => (M(), G("li", null, [
2318
- q("span", {
2319
- style: Tt({ height: h(v), width: "95%" })
2320
- }, null, 4)
2321
- ]))), 256))
2322
- ])),
2323
- r(wl, {
2324
- ref: "range-slider",
2325
- modelValue: s.value,
2326
- "onUpdate:modelValue": o[0] || (o[0] = (v) => s.value = v),
2327
- disabled: f.disabled || f.isLoading,
2328
- max: a.value[1],
2329
- min: a.value[0],
2330
- readonly: f.disabled || f.isLoading,
2331
- step: f.step,
2332
- "thumb-label": !1,
2333
- style: {
2334
- marginInline: "0px",
2335
- marginTop: "-17px"
2336
- },
2337
- "track-color": "#e2e2e2",
2338
- "track-size": "3",
2339
- "thumb-size": "13",
2340
- color: "primary",
2341
- "hide-details": ""
2342
- }, null, 8, ["modelValue", "disabled", "max", "min", "readonly", "step"])
2343
- ]),
2344
- _: 1
2345
- }, 8, ["class"])
2346
- ]),
2347
- _: 1
2348
- })
2349
- ]),
2350
- _: 1
2351
- }),
2352
- r(re, { "no-gutters": "" }, {
2353
- default: n(() => [
2354
- r(Y, null, {
2355
- default: n(() => [
2356
- r(mt, {
2357
- ref: "price-min",
2358
- modelValue: u.value,
2359
- "onUpdate:modelValue": o[1] || (o[1] = (v) => u.value = v),
2360
- clearable: u.value !== a.value[0],
2361
- density: "compact",
2362
- disabled: f.disabled || f.isLoading,
2363
- label: "Min",
2364
- max: m.value,
2365
- min: a.value[0],
2366
- variant: "outlined",
2367
- prefix: c.value,
2368
- step: f.step,
2369
- "hide-details": "",
2370
- type: "number",
2371
- "onClick:clear": d
2372
- }, null, 8, ["modelValue", "clearable", "disabled", "max", "min", "prefix", "step"])
2373
- ]),
2374
- _: 1
2375
- }),
2376
- r(Y, {
2377
- class: "d-flex align-center",
2378
- cols: "1"
2379
- }, {
2380
- default: n(() => [
2381
- r(Ae)
2382
- ]),
2383
- _: 1
2384
- }),
2385
- r(Y, null, {
2386
- default: n(() => [
2387
- r(mt, {
2388
- ref: "price-max",
2389
- modelValue: m.value,
2390
- "onUpdate:modelValue": o[2] || (o[2] = (v) => m.value = v),
2391
- clearable: m.value !== a.value[1],
2392
- density: "compact",
2393
- disabled: f.disabled || f.isLoading,
2394
- label: "Max",
2395
- max: a.value[1],
2396
- min: u.value,
2397
- variant: "outlined",
2398
- prefix: c.value,
2399
- step: f.step,
2400
- "hide-details": "",
2401
- type: "number",
2402
- "onClick:clear": b
2403
- }, null, 8, ["modelValue", "clearable", "disabled", "max", "min", "prefix", "step"])
2404
- ]),
2405
- _: 1
2406
- })
2407
- ]),
2408
- _: 1
2409
- }),
2410
- r(re, { "no-gutters": "" }, {
2411
- default: n(() => [
2412
- r(Y, { class: "text-center" }, {
2413
- default: n(() => [
2414
- q("small", Rl, O(y(t)("BFilterByPrice.pricePerRoomPerNight")), 1)
2415
- ]),
2416
- _: 1
2417
- })
2418
- ]),
2419
- _: 1
2420
- })
2421
- ]));
2422
- }
2423
- });
2424
- function kt(e) {
2425
- const t = e;
2426
- t.__i18n = t.__i18n || [], t.__i18n.push({
2427
- locale: "",
2428
- resource: {
2429
- "en-US": {
2430
- BFilterByPrice: {
2431
- pricePerRoomPerNight: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Price Per Room Per Night" } }
2432
- }
2433
- },
2434
- "fr-FR": {
2435
- BFilterByPrice: {
2436
- pricePerRoomPerNight: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Prix par chambre par nuit" } }
2437
- }
2438
- },
2439
- "de-DE": {
2440
- BFilterByPrice: {
2441
- pricePerRoomPerNight: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Preis pro Zimmer pro Nacht" } }
2442
- }
2443
- },
2444
- "es-ES": {
2445
- BFilterByPrice: {
2446
- pricePerRoomPerNight: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Precio por habitación por noche" } }
2447
- }
2448
- },
2449
- "it-IT": {
2450
- BFilterByPrice: {
2451
- pricePerRoomPerNight: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Prezzo per camera per notte" } }
2452
- }
2453
- },
2454
- "nl-NL": {
2455
- BFilterByPrice: {
2456
- pricePerRoomPerNight: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Prijs per kamer per nacht" } }
2457
- }
2458
- },
2459
- "pt-PT": {
2460
- BFilterByPrice: {
2461
- pricePerRoomPerNight: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Preço por quarto por noite" } }
2462
- }
2463
- }
2464
- }
2465
- });
2466
- }
2467
- typeof kt == "function" && kt(Zt);
2468
- const Xt = /* @__PURE__ */ le(Zt, [["__scopeId", "data-v-084f7f17"]]), Sl = { class: "text-center px-10 pt-4" }, Ml = { class: "font-weight-bold" }, Qt = /* @__PURE__ */ Q({
2469
- __name: "BFilterByPriceMenu",
2470
- props: /* @__PURE__ */ be({
2471
- currency: {},
2472
- disabled: { type: Boolean },
2473
- isLoading: { type: Boolean },
2474
- priceHistogram: {},
2475
- priceMax: {},
2476
- priceMin: {},
2477
- step: {}
2478
- }, {
2479
- modelValue: {},
2480
- modelModifiers: {}
2481
- }),
2482
- emits: ["update:modelValue"],
2483
- setup(e) {
2484
- const { locale: t, t: l } = ne(), i = e, a = ue(e, "modelValue"), s = H([0, 0]), u = H(!1), m = p(
2485
- () => ft({
2486
- amount: a.value?.[1] || i.priceMax,
2487
- currency: i.currency,
2488
- locale: t.value
2489
- })
2490
- ), h = p(
2491
- () => ft({
2492
- amount: a.value?.[0] || i.priceMin,
2493
- currency: i.currency,
2494
- locale: t.value
2495
- })
2496
- ), c = () => {
2497
- a.value = [...s.value], u.value = !1;
2498
- }, d = () => {
2499
- s.value = [...a.value], u.value = !1;
2500
- }, b = () => {
2501
- u.value = !1, a.value = [0, 0];
2502
- }, f = p(() => Pa[i.currency].symbol);
2503
- return W(
2504
- a,
2505
- (o) => {
2506
- o && (s.value = [...o]);
2507
- },
2508
- { immediate: !0 }
2509
- ), W(u, (o) => {
2510
- o || (s.value = [...a.value]);
2511
- }), (o, v) => (M(), z(je, ee(o.$attrs, {
2512
- modelValue: u.value,
2513
- "onUpdate:modelValue": v[1] || (v[1] = (g) => u.value = g),
2514
- attach: o.$parent?.$el,
2515
- persistent: !1,
2516
- "close-on-content-click": !1,
2517
- "max-width": "400px",
2518
- "open-on-click": "",
2519
- location: "bottom"
2520
- }), {
2521
- activator: n(({ props: g }) => [
2522
- r(Ke, {
2523
- color: "grey",
2524
- icon: "fas fa-times",
2525
- style: { cursor: "pointer" },
2526
- "model-value": a.value?.[0] !== 0 || a.value?.[1] !== 0,
2527
- onClick: b
2528
- }, {
2529
- default: n(() => [
2530
- r(Ue, {
2531
- attach: o.$el?.parent,
2532
- location: "bottom",
2533
- color: "grey-darken-3"
2534
- }, {
2535
- activator: n(({ props: _ }) => [
2536
- r(U, ee({
2537
- color: "grey",
2538
- variant: "tonal",
2539
- size: "small"
2540
- }, {
2541
- ...g,
2542
- ..._
2543
- }), {
2544
- default: n(() => [
2545
- q("span", null, [
2546
- q("b", null, O(f.value), 1)
2547
- ])
2548
- ]),
2549
- _: 2
2550
- }, 1040)
2551
- ]),
2552
- default: n(() => [
2553
- o.priceMin !== 0 || o.priceMax !== 0 ? (M(), G(ie, { key: 0 }, [
2554
- E(O(y(l)("BFilterByPriceMenu.tooltip", {
2555
- min: h.value,
2556
- max: m.value
2557
- })), 1)
2558
- ], 64)) : X("", !0)
2559
- ]),
2560
- _: 2
2561
- }, 1032, ["attach"])
2562
- ]),
2563
- _: 2
2564
- }, 1032, ["model-value"])
2565
- ]),
2566
- default: n(() => [
2567
- r(Fe, { elevation: "1" }, {
2568
- default: n(() => [
2569
- q("div", Sl, [
2570
- q("p", Ml, O(y(l)("BFilterByPriceMenu.title")), 1),
2571
- r(Xt, {
2572
- modelValue: s.value,
2573
- "onUpdate:modelValue": v[0] || (v[0] = (g) => s.value = g),
2574
- currency: o.currency,
2575
- "price-min": o.priceMin,
2576
- "price-max": o.priceMax,
2577
- "price-histogram": o.priceHistogram,
2578
- disabled: o.disabled,
2579
- "is-loading": o.isLoading
2580
- }, null, 8, ["modelValue", "currency", "price-min", "price-max", "price-histogram", "disabled", "is-loading"])
2581
- ]),
2582
- r(it, { class: "justify-end mt-2" }, {
2583
- default: n(() => [
2584
- r(U, {
2585
- class: "text-right",
2586
- color: "grey",
2587
- elevation: "0",
2588
- size: "small",
2589
- variant: "text",
2590
- onClick: d
2591
- }, {
2592
- default: n(() => [
2593
- E(O(y(l)("BFilterByPriceMenu.cancel")), 1)
2594
- ]),
2595
- _: 1
2596
- }),
2597
- r(U, {
2598
- class: "text-right",
2599
- color: "error",
2600
- elevation: "0",
2601
- loading: o.isLoading,
2602
- size: "small",
2603
- variant: "text",
2604
- onClick: b
2605
- }, {
2606
- default: n(() => [
2607
- E(O(y(l)("BFilterByPriceMenu.reset")), 1)
2608
- ]),
2609
- _: 1
2610
- }, 8, ["loading"]),
2611
- r(U, {
2612
- class: "text-right",
2613
- color: "success",
2614
- elevation: "0",
2615
- loading: o.isLoading,
2616
- size: "small",
2617
- variant: "flat",
2618
- onClick: c
2619
- }, {
2620
- default: n(() => [
2621
- E(O(y(l)("BFilterByPriceMenu.apply")), 1)
2622
- ]),
2623
- _: 1
2624
- }, 8, ["loading"])
2625
- ]),
2626
- _: 1
2627
- })
2628
- ]),
2629
- _: 1
2630
- })
2631
- ]),
2632
- _: 1
2633
- }, 16, ["modelValue", "attach"]));
2634
- }
2635
- });
2636
- function Bt(e) {
2637
- const t = e;
2638
- t.__i18n = t.__i18n || [], t.__i18n.push({
2639
- locale: "",
2640
- resource: {
2641
- "en-US": {
2642
- BFilterByPriceMenu: {
2643
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Apply" } },
2644
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Cancel" } },
2645
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Reset" } },
2646
- cta: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Price" } },
2647
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "What's your budget ?" } },
2648
- tooltip: { t: 0, b: { t: 2, i: [{ t: 3, v: "Price from " }, { t: 4, k: "min" }, { t: 3, v: " to " }, { t: 4, k: "max" }, { t: 3, v: " per room per night" }] } }
2649
- }
2650
- },
2651
- "fr-FR": {
2652
- BFilterByPriceMenu: {
2653
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Appliquer" } },
2654
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Annuler" } },
2655
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Réinitialiser" } },
2656
- cta: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Prix" } },
2657
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Quel est votre budget ?" } },
2658
- tooltip: { t: 0, b: { t: 2, i: [{ t: 3, v: "Prix de " }, { t: 4, k: "min" }, { t: 3, v: " à " }, { t: 4, k: "max" }, { t: 3, v: " par chambre par nuit" }] } }
2659
- }
2660
- },
2661
- "de-DE": {
2662
- BFilterByPriceMenu: {
2663
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Anwenden" } },
2664
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Abbrechen" } },
2665
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Zurücksetzen" } },
2666
- cta: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Preis" } },
2667
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Was ist Ihr Budget?" } },
2668
- tooltip: { t: 0, b: { t: 2, i: [{ t: 3, v: "Preis von " }, { t: 4, k: "min" }, { t: 3, v: " bis " }, { t: 4, k: "max" }, { t: 3, v: " pro Zimmer pro Nacht" }] } }
2669
- }
2670
- },
2671
- "es-ES": {
2672
- BFilterByPriceMenu: {
2673
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Aplicar" } },
2674
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Cancelar" } },
2675
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Restablecer" } },
2676
- cta: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Precio" } },
2677
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "¿Cuál es tu presupuesto?" } },
2678
- tooltip: { t: 0, b: { t: 2, i: [{ t: 3, v: "Precio de " }, { t: 4, k: "min" }, { t: 3, v: " a " }, { t: 4, k: "max" }, { t: 3, v: " por habitación por noche" }] } }
2679
- }
2680
- },
2681
- "it-IT": {
2682
- BFilterByPriceMenu: {
2683
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Applica" } },
2684
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Annulla" } },
2685
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ripristina" } },
2686
- cta: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Prezzo" } },
2687
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Qual è il tuo budget?" } },
2688
- tooltip: { t: 0, b: { t: 2, i: [{ t: 3, v: "Prezzo da " }, { t: 4, k: "min" }, { t: 3, v: " a " }, { t: 4, k: "max" }, { t: 3, v: " per camera per notte" }] } }
2689
- }
2690
- },
2691
- "nl-NL": {
2692
- BFilterByPriceMenu: {
2693
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Toepassen" } },
2694
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Annuleren" } },
2695
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Reset" } },
2696
- cta: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Prijs" } },
2697
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Wat is uw budget?" } },
2698
- tooltip: { t: 0, b: { t: 2, i: [{ t: 3, v: "Prijs van " }, { t: 4, k: "min" }, { t: 3, v: " tot " }, { t: 4, k: "max" }, { t: 3, v: " per kamer per nacht" }] } }
2699
- }
2700
- },
2701
- "pt-PT": {
2702
- BFilterByPriceMenu: {
2703
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Aplicar" } },
2704
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Cancelar" } },
2705
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Repor" } },
2706
- cta: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Preço" } },
2707
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Qual é o seu orçamento?" } },
2708
- tooltip: { t: 0, b: { t: 2, i: [{ t: 3, v: "Preço de " }, { t: 4, k: "min" }, { t: 3, v: " a " }, { t: 4, k: "max" }, { t: 3, v: " por quarto por noite" }] } }
2709
- }
2710
- }
2711
- }
2712
- });
2713
- }
2714
- typeof Bt == "function" && Bt(Qt);
2715
- const Ol = /* @__PURE__ */ le(Qt, [["__scopeId", "data-v-ceee1657"]]), Jt = /* @__PURE__ */ Q({
2716
- __name: "BFilterByReview",
2717
- props: /* @__PURE__ */ be({
2718
- disabled: { type: Boolean }
2719
- }, {
2720
- modelValue: {},
2721
- modelModifiers: {}
2722
- }),
2723
- emits: ["update:modelValue"],
2724
- setup(e) {
2725
- const t = ue(e, "modelValue"), l = [
2726
- { label: "3+", value: 3 },
2727
- { label: "3.5+", value: 3.5 },
2728
- { label: "4+", value: 4 },
2729
- { label: "4.5+", value: 4.5 }
2730
- ];
2731
- return (i, a) => (M(), z(Ci, {
2732
- modelValue: t.value,
2733
- "onUpdate:modelValue": a[0] || (a[0] = (s) => t.value = s),
2734
- class: "d-flex flex-row justify-center",
2735
- divided: ""
2736
- }, {
2737
- default: n(() => [
2738
- (M(), G(ie, null, _e(l, (s, u) => r(U, {
2739
- key: u,
2740
- class: ve(["px-0", i.disabled && "cursor-not-allowed"]),
2741
- color: "primary",
2742
- disabled: i.disabled,
2743
- variant: "outlined",
2744
- size: "small",
2745
- value: s.value
2746
- }, {
2747
- default: n(() => [
2748
- E(O(s.label), 1)
2749
- ]),
2750
- _: 2
2751
- }, 1032, ["class", "disabled", "value"])), 64))
2752
- ]),
2753
- _: 1
2754
- }, 8, ["modelValue"]));
2755
- }
2756
- }), Cl = { class: "text-center px-10 py-4" }, Il = { class: "font-weight-bold pb-4" }, ea = /* @__PURE__ */ Q({
2757
- __name: "BFilterByReviewMenu",
2758
- props: {
2759
- modelValue: {},
2760
- modelModifiers: {}
2761
- },
2762
- emits: ["update:modelValue"],
2763
- setup(e) {
2764
- const { t } = ne(), l = H(!1), i = ue(e, "modelValue"), a = H(), s = () => {
2765
- a.value = i.value, l.value = !1;
2766
- }, u = () => {
2767
- i.value = void 0, l.value = !1;
2768
- }, m = () => {
2769
- i.value = a.value, l.value = !1;
2770
- };
2771
- return W(
2772
- i,
2773
- (h) => {
2774
- a.value = h;
2775
- },
2776
- {
2777
- immediate: !0
2778
- }
2779
- ), W(l, () => {
2780
- a.value = i.value;
2781
- }), (h, c) => (M(), z(je, ee(h.$attrs, {
2782
- modelValue: l.value,
2783
- "onUpdate:modelValue": c[1] || (c[1] = (d) => l.value = d),
2784
- attach: h.$parent?.$el,
2785
- location: "bottom",
2786
- "close-on-content-click": !1,
2787
- "content-class": "pa-0",
2788
- "open-on-click": ""
2789
- }), {
2790
- activator: n(({ props: d }) => [
2791
- r(Ke, {
2792
- color: "grey",
2793
- icon: "fas fa-times",
2794
- style: { cursor: "pointer" },
2795
- "model-value": !!i.value,
2796
- onClick: u
2797
- }, {
2798
- default: n(() => [
2799
- r(Ue, {
2800
- attach: h.$el?.parent,
2801
- location: "bottom",
2802
- color: "grey-darken-3"
2803
- }, {
2804
- activator: n(({ props: b }) => [
2805
- r(U, ee({
2806
- ...d,
2807
- ...b
2808
- }, {
2809
- color: "grey",
2810
- variant: "tonal",
2811
- size: "small"
2812
- }), {
2813
- default: n(() => [
2814
- q("span", null, [
2815
- q("b", null, O(i.value || 1) + "+", 1)
2816
- ])
2817
- ]),
2818
- _: 2
2819
- }, 1040)
2820
- ]),
2821
- default: n(() => [
2822
- E(" " + O(y(t)("BFilterByReviewMenu.tooltip", i.value || 0, {
2823
- named: { score: i.value }
2824
- })), 1)
2825
- ]),
2826
- _: 2
2827
- }, 1032, ["attach"])
2828
- ]),
2829
- _: 2
2830
- }, 1032, ["model-value"])
2831
- ]),
2832
- default: n(() => [
2833
- r(Fe, { elevation: "1" }, {
2834
- default: n(() => [
2835
- q("div", Cl, [
2836
- q("p", Il, O(y(t)("BFilterByReviewMenu.title")), 1),
2837
- r(Jt, {
2838
- modelValue: a.value,
2839
- "onUpdate:modelValue": c[0] || (c[0] = (d) => a.value = d)
2840
- }, null, 8, ["modelValue"])
2841
- ]),
2842
- r(it, { class: "justify-end pa-2" }, {
2843
- default: n(() => [
2844
- r(U, {
2845
- class: "text-right",
2846
- color: "grey",
2847
- elevation: "0",
2848
- size: "small",
2849
- variant: "text",
2850
- onClick: s
2851
- }, {
2852
- default: n(() => [
2853
- E(O(y(t)("BFilterByReviewMenu.cancel")), 1)
2854
- ]),
2855
- _: 1
2856
- }),
2857
- r(U, {
2858
- class: "text-right",
2859
- color: "error",
2860
- elevation: "0",
2861
- size: "small",
2862
- variant: "text",
2863
- onClick: u
2864
- }, {
2865
- default: n(() => [
2866
- E(O(y(t)("BFilterByReviewMenu.reset")), 1)
2867
- ]),
2868
- _: 1
2869
- }),
2870
- r(U, {
2871
- class: "text-right",
2872
- color: "success",
2873
- elevation: "0",
2874
- variant: "flat",
2875
- size: "small",
2876
- onClick: m
2877
- }, {
2878
- default: n(() => [
2879
- E(O(y(t)("BFilterByReviewMenu.apply")), 1)
2880
- ]),
2881
- _: 1
2882
- })
2883
- ]),
2884
- _: 1
2885
- })
2886
- ]),
2887
- _: 1
2888
- })
2889
- ]),
2890
- _: 1
2891
- }, 16, ["modelValue", "attach"]));
2892
- }
2893
- });
2894
- function _t(e) {
2895
- const t = e;
2896
- t.__i18n = t.__i18n || [], t.__i18n.push({
2897
- locale: "",
2898
- resource: {
2899
- "en-US": {
2900
- BFilterByReviewMenu: {
2901
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Apply" } },
2902
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Cancel" } },
2903
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Reset" } },
2904
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Customer Review Score" } },
2905
- tooltip: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "No customer reviews filter active" }, { t: 2, i: [{ t: 3, v: "Customer reviews above " }, { t: 4, k: "score" }, { t: 3, v: "/5" }] }, { t: 2, i: [{ t: 3, v: "Customer reviews above " }, { t: 4, k: "score" }, { t: 3, v: "/5" }] }] } }
2906
- }
2907
- },
2908
- "fr-FR": {
2909
- BFilterByReviewMenu: {
2910
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Appliquer" } },
2911
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Annuler" } },
2912
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Réinitialiser" } },
2913
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Note des clients" } },
2914
- tooltip: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Aucun filtre de notes des clients" }, { t: 2, i: [{ t: 3, v: "Note des clients au dessus de " }, { t: 4, k: "score" }, { t: 3, v: "/5" }] }, { t: 2, i: [{ t: 3, v: "Note des clients au dessus de " }, { t: 4, k: "score" }, { t: 3, v: "/5" }] }] } }
2915
- }
2916
- },
2917
- "de-DE": {
2918
- BFilterByReviewMenu: {
2919
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Anwenden" } },
2920
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Abbrechen" } },
2921
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Zurücksetzen" } },
2922
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Kundenbewertung" } },
2923
- tooltip: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Keine Kundenbewertungen" }, { t: 2, i: [{ t: 3, v: "Kundenbewertungen über " }, { t: 4, k: "score" }, { t: 3, v: "/5" }] }, { t: 2, i: [{ t: 3, v: "Kundenbewertungen über " }, { t: 4, k: "score" }, { t: 3, v: "/5" }] }] } }
2924
- }
2925
- },
2926
- "es-ES": {
2927
- BFilterByReviewMenu: {
2928
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Aplicar" } },
2929
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Cancelar" } },
2930
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Restablecer" } },
2931
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Reseña de clientes" } },
2932
- tooltip: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "No hay filtro de reseñas de clientes" }, { t: 2, i: [{ t: 3, v: "Reseñas de clientes por encima de " }, { t: 4, k: "score" }, { t: 3, v: "/5" }] }, { t: 2, i: [{ t: 3, v: "Reseñas de clientes por encima de " }, { t: 4, k: "score" }, { t: 3, v: "/5" }] }] } }
2933
- }
2934
- },
2935
- "it-IT": {
2936
- BFilterByReviewMenu: {
2937
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Applica" } },
2938
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Annulla" } },
2939
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ripristina" } },
2940
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Recensione dei clienti" } },
2941
- tooltip: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Nessun filtro di recensioni dei clienti" }, { t: 2, i: [{ t: 3, v: "Recensioni dei clienti sopra " }, { t: 4, k: "score" }, { t: 3, v: "/5" }] }, { t: 2, i: [{ t: 3, v: "Recensioni dei clienti sopra " }, { t: 4, k: "score" }, { t: 3, v: "/5" }] }] } }
2942
- }
2943
- },
2944
- "nl-NL": {
2945
- BFilterByReviewMenu: {
2946
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Toepassen" } },
2947
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Annuleren" } },
2948
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Reset" } },
2949
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Klantbeoordeling" } },
2950
- tooltip: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Geen klantbeoordelingen" }, { t: 2, i: [{ t: 3, v: "Klantbeoordelingen boven " }, { t: 4, k: "score" }, { t: 3, v: "/5" }] }, { t: 2, i: [{ t: 3, v: "Klantbeoordelingen boven " }, { t: 4, k: "score" }, { t: 3, v: "/5" }] }] } }
2951
- }
2952
- },
2953
- "pt-PT": {
2954
- BFilterByReviewMenu: {
2955
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Aplicar" } },
2956
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Cancelar" } },
2957
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Repor" } },
2958
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Avaliação de clientes" } },
2959
- tooltip: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Nenhuma avaliação de clientes" }, { t: 2, i: [{ t: 3, v: "Avaliações de clientes acima de " }, { t: 4, k: "score" }, { t: 3, v: "/5" }] }, { t: 2, i: [{ t: 3, v: "Avaliações de clientes acima de " }, { t: 4, k: "score" }, { t: 3, v: "/5" }] }] } }
2960
- }
2961
- }
2962
- }
2963
- });
2964
- }
2965
- typeof _t == "function" && _t(ea);
2966
- const Vl = /* @__PURE__ */ le(ea, [["__scopeId", "data-v-50071678"]]), Pl = Re({
2967
- name: String,
2968
- itemAriaLabel: {
2969
- type: String,
2970
- default: "$vuetify.rating.ariaLabel.item"
2971
- },
2972
- activeColor: String,
2973
- color: String,
2974
- clearable: Boolean,
2975
- disabled: Boolean,
2976
- emptyIcon: {
2977
- type: nt,
2978
- default: "$ratingEmpty"
2979
- },
2980
- fullIcon: {
2981
- type: nt,
2982
- default: "$ratingFull"
2983
- },
2984
- halfIncrements: Boolean,
2985
- hover: Boolean,
2986
- length: {
2987
- type: [Number, String],
2988
- default: 5
2989
- },
2990
- readonly: Boolean,
2991
- modelValue: {
2992
- type: [Number, String],
2993
- default: 0
2994
- },
2995
- itemLabels: Array,
2996
- itemLabelPosition: {
2997
- type: String,
2998
- default: "top",
2999
- validator: (e) => ["top", "bottom"].includes(e)
3000
- },
3001
- ripple: Boolean,
3002
- ...ze(),
3003
- ...Bi(),
3004
- ...Oi(),
3005
- ...zt(),
3006
- ...Ht()
3007
- }, "VRating"), Fl = Ve()({
3008
- name: "VRating",
3009
- props: Pl(),
3010
- emits: {
3011
- "update:modelValue": (e) => !0
3012
- },
3013
- setup(e, t) {
3014
- let {
3015
- slots: l
3016
- } = t;
3017
- const {
3018
- t: i
3019
- } = Fa(), {
3020
- themeClasses: a
3021
- } = $t(e), s = tt(e, "modelValue"), u = p(() => et(parseFloat(s.value), 0, Number(e.length))), m = p(() => At(Number(e.length), 1)), h = p(() => m.value.flatMap((g) => e.halfIncrements ? [g - 0.5, g] : [g])), c = se(-1), d = p(() => h.value.map((g) => {
3022
- const _ = e.hover && c.value > -1, k = u.value >= g, T = c.value >= g, N = (_ ? T : k) ? e.fullIcon : e.emptyIcon, L = e.activeColor ?? e.color, B = k || T ? L : e.color;
3023
- return {
3024
- isFilled: k,
3025
- isHovered: T,
3026
- icon: N,
3027
- color: B
3028
- };
3029
- })), b = p(() => [0, ...h.value].map((g) => {
3030
- function _() {
3031
- c.value = g;
3032
- }
3033
- function k() {
3034
- c.value = -1;
3035
- }
3036
- function T() {
3037
- e.disabled || e.readonly || (s.value = u.value === g && e.clearable ? 0 : g);
3038
- }
3039
- return {
3040
- onMouseenter: e.hover ? _ : void 0,
3041
- onMouseleave: e.hover ? k : void 0,
3042
- onClick: T
3043
- };
3044
- })), f = p(() => e.name ?? `v-rating-${xa()}`);
3045
- function o(g) {
3046
- let {
3047
- value: _,
3048
- index: k,
3049
- showStar: T = !0
3050
- } = g;
3051
- const {
3052
- onMouseenter: A,
3053
- onMouseleave: N,
3054
- onClick: L
3055
- } = b.value[k + 1], B = `${f.value}-${String(_).replace(".", "-")}`, S = {
3056
- color: d.value[k]?.color,
3057
- density: e.density,
3058
- disabled: e.disabled,
3059
- icon: d.value[k]?.icon,
3060
- ripple: e.ripple,
3061
- size: e.size,
3062
- variant: "plain"
3063
- };
3064
- return r(ie, null, [r("label", {
3065
- for: B,
3066
- class: {
3067
- "v-rating__item--half": e.halfIncrements && _ % 1 > 0,
3068
- "v-rating__item--full": e.halfIncrements && _ % 1 === 0
3069
- },
3070
- onMouseenter: A,
3071
- onMouseleave: N,
3072
- onClick: L
3073
- }, [r("span", {
3074
- class: "v-rating__hidden"
3075
- }, [i(e.itemAriaLabel, _, e.length)]), T ? l.item ? l.item({
3076
- ...d.value[k],
3077
- props: S,
3078
- value: _,
3079
- index: k,
3080
- rating: u.value
3081
- }) : r(U, ee({
3082
- "aria-label": i(e.itemAriaLabel, _, e.length)
3083
- }, S), null) : void 0]), r("input", {
3084
- class: "v-rating__hidden",
3085
- name: f.value,
3086
- id: B,
3087
- type: "radio",
3088
- value: _,
3089
- checked: u.value === _,
3090
- tabindex: -1,
3091
- readonly: e.readonly,
3092
- disabled: e.disabled
3093
- }, null)]);
3094
- }
3095
- function v(g) {
3096
- return l["item-label"] ? l["item-label"](g) : g.label ? r("span", null, [g.label]) : r("span", null, [E(" ")]);
3097
- }
3098
- return Pe(() => {
3099
- const g = !!e.itemLabels?.length || l["item-label"];
3100
- return r(e.tag, {
3101
- class: ["v-rating", {
3102
- "v-rating--hover": e.hover,
3103
- "v-rating--readonly": e.readonly
3104
- }, a.value, e.class],
3105
- style: e.style
3106
- }, {
3107
- default: () => [r(o, {
3108
- value: 0,
3109
- index: -1,
3110
- showStar: !1
3111
- }, null), m.value.map((_, k) => r("div", {
3112
- class: "v-rating__wrapper"
3113
- }, [g && e.itemLabelPosition === "top" ? v({
3114
- value: _,
3115
- index: k,
3116
- label: e.itemLabels?.[k]
3117
- }) : void 0, r("div", {
3118
- class: "v-rating__item"
3119
- }, [e.halfIncrements ? r(ie, null, [r(o, {
3120
- value: _ - 0.5,
3121
- index: k * 2
3122
- }, null), r(o, {
3123
- value: _,
3124
- index: k * 2 + 1
3125
- }, null)]) : r(o, {
3126
- value: _,
3127
- index: k
3128
- }, null)]), g && e.itemLabelPosition === "bottom" ? v({
3129
- value: _,
3130
- index: k,
3131
- label: e.itemLabels?.[k]
3132
- }) : void 0]))]
3133
- });
3134
- }), {};
3135
- }
3136
- }), ta = /* @__PURE__ */ Q({
3137
- __name: "BFilterByStar",
3138
- props: /* @__PURE__ */ be({
3139
- disabled: { type: Boolean }
3140
- }, {
3141
- modelValue: {},
3142
- modelModifiers: {}
3143
- }),
3144
- emits: ["update:modelValue"],
3145
- setup(e) {
3146
- const t = e, l = ue(e, "modelValue"), i = H(Number(l.value?.split(",")[0])), a = p(() => t.disabled ? "grey lighten-1" : "orange");
3147
- return W(i, (s) => {
3148
- l.value = ni(s, 6).join(",");
3149
- }), W(l, (s) => {
3150
- i.value = Number(s?.split(",")[0]);
3151
- }), (s, u) => (M(), z(Fl, {
3152
- modelValue: i.value,
3153
- "onUpdate:modelValue": u[0] || (u[0] = (m) => i.value = m),
3154
- color: a.value,
3155
- class: ve(s.disabled && "cursor-not-allowed"),
3156
- "active-color": a.value,
3157
- density: "compact",
3158
- disabled: s.disabled,
3159
- "empty-icon": "$ratingEmpty",
3160
- hover: "",
3161
- readonly: s.disabled,
3162
- size: "24"
3163
- }, null, 8, ["modelValue", "color", "class", "active-color", "disabled", "readonly"]));
3164
- }
3165
- }), xl = { class: "text-center px-10 pt-4" }, El = { class: "font-weight-bold pb-4" }, aa = /* @__PURE__ */ Q({
3166
- __name: "BFilterByStarMenu",
3167
- props: {
3168
- modelValue: { required: !0 },
3169
- modelModifiers: {}
3170
- },
3171
- emits: ["update:modelValue"],
3172
- setup(e) {
3173
- const { t } = ne(), l = H(!1), i = ue(e, "modelValue"), a = H(""), s = () => {
3174
- a.value = i.value, l.value = !1;
3175
- }, u = () => {
3176
- i.value = "", l.value = !1;
3177
- }, m = () => {
3178
- i.value = a.value, l.value = !1;
3179
- };
3180
- return W(
3181
- i,
3182
- (h) => {
3183
- a.value = h;
3184
- },
3185
- {
3186
- immediate: !0
3187
- }
3188
- ), W(l, () => {
3189
- a.value = i.value;
3190
- }), (h, c) => (M(), z(je, {
3191
- modelValue: l.value,
3192
- "onUpdate:modelValue": c[1] || (c[1] = (d) => l.value = d),
3193
- attach: h.$parent?.$el,
3194
- "close-on-content-click": !1,
3195
- "content-class": "pa-0",
3196
- location: "bottom",
3197
- "open-on-click": ""
3198
- }, {
3199
- activator: n(({ props: d }) => [
3200
- r(Ke, {
3201
- color: "grey",
3202
- icon: "fas fa-times",
3203
- style: { cursor: "pointer" },
3204
- "model-value": !!i.value && i.value !== y(Ea),
3205
- onClick: u
3206
- }, {
3207
- default: n(() => [
3208
- r(Ue, {
3209
- attach: h.$el?.parent,
3210
- color: "grey-darken-3",
3211
- location: "bottom"
3212
- }, {
3213
- activator: n(({ props: b }) => [
3214
- r(U, ee({
3215
- ...d,
3216
- ...b
3217
- }, {
3218
- color: "grey",
3219
- elevation: 0,
3220
- variant: "tonal",
3221
- size: "small"
3222
- }), {
3223
- default: n(() => [
3224
- q("span", null, [
3225
- q("span", null, O(i.value.split(",")[0]), 1),
3226
- r(oe, { id: "star-icon" }, {
3227
- default: n(() => c[2] || (c[2] = [
3228
- E(" fas fa-solid fa-star ")
3229
- ])),
3230
- _: 1,
3231
- __: [2]
3232
- })
3233
- ])
3234
- ]),
3235
- _: 2
3236
- }, 1040)
3237
- ]),
3238
- default: n(() => [
3239
- E(" " + O(y(t)(
3240
- "BFilterByStarMenu.tooltip",
3241
- i.value.split(",")[0] && Number(i.value.split(",")[0]) || 0,
3242
- {
3243
- named: {
3244
- rating: i.value.split(",")[0]
3245
- }
3246
- }
3247
- )), 1)
3248
- ]),
3249
- _: 2
3250
- }, 1032, ["attach"])
3251
- ]),
3252
- _: 2
3253
- }, 1032, ["model-value"])
3254
- ]),
3255
- default: n(() => [
3256
- r(Fe, { elevation: "1" }, {
3257
- default: n(() => [
3258
- q("div", xl, [
3259
- q("p", El, O(y(t)("BFilterByStarMenu.title")), 1),
3260
- r(ta, {
3261
- modelValue: a.value,
3262
- "onUpdate:modelValue": c[0] || (c[0] = (d) => a.value = d)
3263
- }, null, 8, ["modelValue"])
3264
- ]),
3265
- r(it, { class: "justify-end" }, {
3266
- default: n(() => [
3267
- r(U, {
3268
- class: "text-right",
3269
- color: "grey",
3270
- elevation: "0",
3271
- size: "small",
3272
- variant: "text",
3273
- onClick: s
3274
- }, {
3275
- default: n(() => [
3276
- E(O(y(t)("BFilterByStarMenu.cancel")), 1)
3277
- ]),
3278
- _: 1
3279
- }),
3280
- r(U, {
3281
- class: "text-right",
3282
- color: "error",
3283
- size: "small",
3284
- variant: "text",
3285
- onClick: u
3286
- }, {
3287
- default: n(() => [
3288
- E(O(y(t)("BFilterByStarMenu.reset")), 1)
3289
- ]),
3290
- _: 1
3291
- }),
3292
- r(U, {
3293
- class: "text-right",
3294
- color: "success",
3295
- size: "small",
3296
- variant: "flat",
3297
- onClick: m
3298
- }, {
3299
- default: n(() => [
3300
- E(O(y(t)("BFilterByStarMenu.apply")), 1)
3301
- ]),
3302
- _: 1
3303
- })
3304
- ]),
3305
- _: 1
3306
- })
3307
- ]),
3308
- _: 1
3309
- })
3310
- ]),
3311
- _: 1
3312
- }, 8, ["modelValue", "attach"]));
3313
- }
3314
- });
3315
- function Rt(e) {
3316
- const t = e;
3317
- t.__i18n = t.__i18n || [], t.__i18n.push({
3318
- locale: "",
3319
- resource: {
3320
- "en-US": {
3321
- BFilterByStarMenu: {
3322
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Apply" } },
3323
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Cancel" } },
3324
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Reset" } },
3325
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Star Rating" } },
3326
- tooltip: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "No star rating filter active" }, { t: 2, i: [{ t: 3, v: "From " }, { t: 4, k: "rating" }, { t: 3, v: " stars" }] }, { t: 2, i: [{ t: 3, v: "From " }, { t: 4, k: "rating" }, { t: 3, v: " stars" }] }] } }
3327
- }
3328
- },
3329
- "fr-FR": {
3330
- BFilterByStarMenu: {
3331
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Appliquer" } },
3332
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Annuler" } },
3333
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Réinitialiser" } },
3334
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Étoiles" } },
3335
- tooltip: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Aucun filtre d'étoiles" }, { t: 2, i: [{ t: 3, v: "À partir de " }, { t: 4, k: "rating" }, { t: 3, v: " étoiles" }] }, { t: 2, i: [{ t: 3, v: "À partir de " }, { t: 4, k: "rating" }, { t: 3, v: " étoiles" }] }] } }
3336
- }
3337
- },
3338
- "de-DE": {
3339
- BFilterByStarMenu: {
3340
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Anwenden" } },
3341
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Abbrechen" } },
3342
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Zurücksetzen" } },
3343
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Sternebewertung" } },
3344
- tooltip: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Keine Sternebewertung" }, { t: 2, i: [{ t: 3, v: "Von " }, { t: 4, k: "rating" }, { t: 3, v: " Sternen" }] }, { t: 2, i: [{ t: 3, v: "Von " }, { t: 4, k: "rating" }, { t: 3, v: " Sternen" }] }] } }
3345
- }
3346
- },
3347
- "es-ES": {
3348
- BFilterByStarMenu: {
3349
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Aplicar" } },
3350
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Cancelar" } },
3351
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Restablecer" } },
3352
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Puntuación de estrellas" } },
3353
- tooltip: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "No hay filtro de estrellas" }, { t: 2, i: [{ t: 3, v: "De " }, { t: 4, k: "rating" }, { t: 3, v: " estrellas" }] }, { t: 2, i: [{ t: 3, v: "De " }, { t: 4, k: "rating" }, { t: 3, v: " estrellas" }] }] } }
3354
- }
3355
- },
3356
- "it-IT": {
3357
- BFilterByStarMenu: {
3358
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Applica" } },
3359
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Annulla" } },
3360
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ripristina" } },
3361
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Valutazione stelle" } },
3362
- tooltip: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Nessun filtro di stelle" }, { t: 2, i: [{ t: 3, v: "Da " }, { t: 4, k: "rating" }, { t: 3, v: " stelle" }] }, { t: 2, i: [{ t: 3, v: "Da " }, { t: 4, k: "rating" }, { t: 3, v: " stelle" }] }] } }
3363
- }
3364
- },
3365
- "nl-NL": {
3366
- BFilterByStarMenu: {
3367
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Toepassen" } },
3368
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Annuleren" } },
3369
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Resetten" } },
3370
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Sterrenbeoordeling" } },
3371
- tooltip: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Geen sterrenbeoordeling" }, { t: 2, i: [{ t: 3, v: "Van " }, { t: 4, k: "rating" }, { t: 3, v: " sterren" }] }, { t: 2, i: [{ t: 3, v: "Van " }, { t: 4, k: "rating" }, { t: 3, v: " sterren" }] }] } }
3372
- }
3373
- },
3374
- "pt-PT": {
3375
- BFilterByStarMenu: {
3376
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Aplicar" } },
3377
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Cancelar" } },
3378
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Repor" } },
3379
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Classificação por estrelas" } },
3380
- tooltip: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Nenhuma classificação de estrelas" }, { t: 2, i: [{ t: 3, v: "De " }, { t: 4, k: "rating" }, { t: 3, v: " estrelas" }] }, { t: 2, i: [{ t: 3, v: "De " }, { t: 4, k: "rating" }, { t: 3, v: " estrelas" }] }] } }
3381
- }
3382
- }
3383
- }
3384
- });
3385
- }
3386
- typeof Rt == "function" && Rt(aa);
3387
- const Tl = /* @__PURE__ */ le(aa, [["__scopeId", "data-v-6a3f5ba0"]]), Dl = { class: "px-4 font-weight-bold" }, Al = { class: "text-grey-darken-3" }, ia = /* @__PURE__ */ Q({
3388
- __name: "BSortByMenu",
3389
- props: /* @__PURE__ */ be({
3390
- attach: { type: Boolean }
3391
- }, {
3392
- modelValue: {
3393
- default: {
3394
- direction: Da,
3395
- value: Ta
3396
- }
3397
- },
3398
- modelModifiers: {}
3399
- }),
3400
- emits: ["update:modelValue"],
3401
- setup(e) {
3402
- const { t } = ne(), l = H(!1), i = [
3403
- {
3404
- direction: pe.Asc,
3405
- value: ce.TopPicks
3406
- },
3407
- {
3408
- direction: pe.Asc,
3409
- value: ce.Distance
3410
- },
3411
- {
3412
- direction: pe.Asc,
3413
- value: ce.Price
3414
- },
3415
- {
3416
- direction: pe.Desc,
3417
- value: ce.Price
3418
- },
3419
- {
3420
- direction: pe.Asc,
3421
- value: ce.Rating
3422
- },
3423
- {
3424
- direction: pe.Desc,
3425
- value: ce.Rating
3426
- },
3427
- {
3428
- direction: pe.Desc,
3429
- value: ce.ReviewRating
3430
- }
3431
- ], a = ue(e, "modelValue"), s = p({
3432
- get() {
3433
- const m = i.findIndex(
3434
- (h) => h.value === a.value.value && h.direction === a.value.direction
3435
- );
3436
- return m === -1 ? 0 : m;
3437
- },
3438
- set(m) {
3439
- a.value = i[m];
3440
- }
3441
- }), u = (m) => {
3442
- a.value = m;
3443
- };
3444
- return (m, h) => (M(), z(je, {
3445
- modelValue: l.value,
3446
- "onUpdate:modelValue": h[1] || (h[1] = (c) => l.value = c),
3447
- attach: m.attach,
3448
- eager: "",
3449
- location: "bottom",
3450
- width: 260,
3451
- transition: "scroll-y-transition"
3452
- }, {
3453
- activator: n(({ props: c }) => [
3454
- r(U, ee(c, {
3455
- color: "secondary",
3456
- elevation: 0,
3457
- size: "small"
3458
- }), {
3459
- default: n(() => [
3460
- q("span", null, [
3461
- y(t)(`BSortByMenu.options.${a.value.value}.${a.value.direction}.icon`).length ? (M(), z(oe, {
3462
- key: 0,
3463
- class: ve([
3464
- "mr-1",
3465
- y(t)(`BSortByMenu.options.${a.value.value}.${a.value.direction}.style`)
3466
- ]),
3467
- size: "12"
3468
- }, {
3469
- default: n(() => [
3470
- E(O(y(t)(`BSortByMenu.options.${a.value.value}.${a.value.direction}.icon`)), 1)
3471
- ]),
3472
- _: 1
3473
- }, 8, ["class"])) : X("", !0),
3474
- E(" " + O(y(t)(`BSortByMenu.options.${a.value.value}.name`)) + " ", 1),
3475
- r(oe, { size: "10" }, {
3476
- default: n(() => h[2] || (h[2] = [
3477
- E("fas fa-chevron-down")
3478
- ])),
3479
- _: 1,
3480
- __: [2]
3481
- })
3482
- ])
3483
- ]),
3484
- _: 2
3485
- }, 1040)
3486
- ]),
3487
- default: n(() => [
3488
- r(Vi, null, {
3489
- default: n(() => [
3490
- r(Xe, {
3491
- modelValue: s.value,
3492
- "onUpdate:modelValue": h[0] || (h[0] = (c) => s.value = c),
3493
- class: "bg-white pa-0",
3494
- mandatory: ""
3495
- }, {
3496
- default: n(() => [
3497
- r(ct, { class: "pt-2" }, {
3498
- default: n(() => [
3499
- q("small", Dl, O(y(t)("BSortByMenu.prefix")), 1)
3500
- ]),
3501
- _: 1
3502
- }),
3503
- (M(), G(ie, null, _e(i, (c, d) => r(Xe, {
3504
- key: d,
3505
- class: "px-3",
3506
- onClick: (b) => u(c)
3507
- }, {
3508
- default: n(() => [
3509
- r(ct, null, {
3510
- default: n(() => [
3511
- q("small", Al, [
3512
- y(t)(`BSortByMenu.options.${c.value}.${c.direction}.icon`).length ? (M(), z(oe, {
3513
- key: 0,
3514
- class: ve([
3515
- "text-grey-darken-3",
3516
- y(t)(`BSortByMenu.options.${c.value}.${c.direction}.style`)
3517
- ]),
3518
- size: "14",
3519
- style: { "min-width": "24px" }
3520
- }, {
3521
- default: n(() => [
3522
- E(O(y(t)(`BSortByMenu.options.${c.value}.${c.direction}.icon`)), 1)
3523
- ]),
3524
- _: 2
3525
- }, 1032, ["class"])) : X("", !0),
3526
- E(" " + O(y(t)(`BSortByMenu.options.${c.value}.name`)) + " " + O(y(t)(`BSortByMenu.options.${c.value}.${c.direction}.wording`)), 1)
3527
- ])
3528
- ]),
3529
- _: 2
3530
- }, 1024)
3531
- ]),
3532
- _: 2
3533
- }, 1032, ["onClick"])), 64))
3534
- ]),
3535
- _: 1
3536
- }, 8, ["modelValue"])
3537
- ]),
3538
- _: 1
3539
- })
3540
- ]),
3541
- _: 1
3542
- }, 8, ["modelValue", "attach"]));
3543
- }
3544
- });
3545
- function St(e) {
3546
- const t = e;
3547
- t.__i18n = t.__i18n || [], t.__i18n.push({
3548
- locale: "",
3549
- resource: {
3550
- "en-US": {
3551
- BSortByMenu: {
3552
- prefix: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Sort by : " } },
3553
- options: {
3554
- top_picks: {
3555
- asc: {
3556
- wording: { t: 0, b: { static: "", t: 2, i: [] } },
3557
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-heart" } }
3558
- },
3559
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Our Top Picks" } }
3560
- },
3561
- price: {
3562
- asc: {
3563
- wording: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "(lowest first)" } },
3564
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-arrow-trend-up" } }
3565
- },
3566
- desc: {
3567
- wording: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "(highest first)" } },
3568
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-arrow-trend-down" } }
3569
- },
3570
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Price" } }
3571
- },
3572
- distance: {
3573
- asc: {
3574
- wording: { t: 0, b: { static: "", t: 2, i: [] } },
3575
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-person-walking" } }
3576
- },
3577
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Closest" } }
3578
- },
3579
- rating: {
3580
- asc: {
3581
- wording: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "(low to high)" } },
3582
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-solid fa-star-half-stroke" } }
3583
- },
3584
- desc: {
3585
- wording: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "(high to low)" } },
3586
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-solid fa-star-half-stroke" } },
3587
- style: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "mirror" } }
3588
- },
3589
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Stars" } }
3590
- },
3591
- review_rating: {
3592
- desc: {
3593
- wording: { t: 0, b: { static: "", t: 2, i: [] } },
3594
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-solid fa-thumbs-up" } }
3595
- },
3596
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Best Reviewed" } }
3597
- }
3598
- }
3599
- }
3600
- },
3601
- "fr-FR": {
3602
- BSortByMenu: {
3603
- prefix: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Trié par : " } },
3604
- options: {
3605
- top_picks: {
3606
- asc: {
3607
- wording: { t: 0, b: { static: "", t: 2, i: [] } },
3608
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-heart" } }
3609
- },
3610
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Nos préférés" } }
3611
- },
3612
- price: {
3613
- asc: {
3614
- wording: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "(du moins cher au plus cher)" } },
3615
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-arrow-trend-up" } }
3616
- },
3617
- desc: {
3618
- wording: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "(du plus cher au moins cher)" } },
3619
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-arrow-trend-down" } }
3620
- },
3621
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Tarif" } }
3622
- },
3623
- distance: {
3624
- asc: {
3625
- wording: { t: 0, b: { static: "", t: 2, i: [] } },
3626
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-person-walking" } }
3627
- },
3628
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Proche" } }
3629
- },
3630
- rating: {
3631
- asc: {
3632
- wording: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "(croissant)" } },
3633
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-solid fa-star-half-stroke" } }
3634
- },
3635
- desc: {
3636
- wording: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "(décroissant)" } },
3637
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-solid fa-star-half-stroke" } },
3638
- style: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "mirror" } }
3639
- },
3640
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Nombre d'étoiles" } }
3641
- },
3642
- review_rating: {
3643
- desc: {
3644
- wording: { t: 0, b: { static: "", t: 2, i: [] } },
3645
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-solid fa-thumbs-up" } }
3646
- },
3647
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Meilleure note" } }
3648
- }
3649
- }
3650
- }
3651
- },
3652
- "de-DE": {
3653
- BSortByMenu: {
3654
- prefix: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Sortieren nach: " } },
3655
- options: {
3656
- top_picks: {
3657
- asc: {
3658
- wording: { t: 0, b: { static: "", t: 2, i: [] } },
3659
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-heart" } }
3660
- },
3661
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Unsere Top-Empfehlungen" } }
3662
- },
3663
- price: {
3664
- asc: {
3665
- wording: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "(niedrigster zuerst)" } },
3666
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-arrow-trend-up" } }
3667
- },
3668
- desc: {
3669
- wording: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "(höchster zuerst)" } },
3670
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-arrow-trend-down" } }
3671
- },
3672
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Preis" } }
3673
- },
3674
- distance: {
3675
- asc: {
3676
- wording: { t: 0, b: { static: "", t: 2, i: [] } },
3677
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-person-walking" } }
3678
- },
3679
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Am nächsten" } }
3680
- },
3681
- rating: {
3682
- asc: {
3683
- wording: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "(niedrig bis hoch)" } },
3684
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-solid fa-star-half-stroke" } }
3685
- },
3686
- desc: {
3687
- wording: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "(hoch bis niedrig)" } },
3688
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-solid fa-star-half-stroke" } },
3689
- style: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "mirror" } }
3690
- },
3691
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Sterne" } }
3692
- },
3693
- review_rating: {
3694
- desc: {
3695
- wording: { t: 0, b: { static: "", t: 2, i: [] } },
3696
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-solid fa-thumbs-up" } }
3697
- },
3698
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Am besten bewertet" } }
3699
- }
3700
- }
3701
- }
3702
- },
3703
- "es-ES": {
3704
- BSortByMenu: {
3705
- prefix: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ordenar por: " } },
3706
- options: {
3707
- top_picks: {
3708
- asc: {
3709
- wording: { t: 0, b: { static: "", t: 2, i: [] } },
3710
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-heart" } }
3711
- },
3712
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Nuestras recomendaciones" } }
3713
- },
3714
- price: {
3715
- asc: {
3716
- wording: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "(más bajo primero)" } },
3717
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-arrow-trend-up" } }
3718
- },
3719
- desc: {
3720
- wording: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "(más alto primero)" } },
3721
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-arrow-trend-down" } }
3722
- },
3723
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Precio" } }
3724
- },
3725
- distance: {
3726
- asc: {
3727
- wording: { t: 0, b: { static: "", t: 2, i: [] } },
3728
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-person-walking" } }
3729
- },
3730
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Más cercano" } }
3731
- },
3732
- rating: {
3733
- asc: {
3734
- wording: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "(de menor a mayor)" } },
3735
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-solid fa-star-half-stroke" } }
3736
- },
3737
- desc: {
3738
- wording: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "(de mayor a menor)" } },
3739
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-solid fa-star-half-stroke" } },
3740
- style: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "mirror" } }
3741
- },
3742
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Estrellas" } }
3743
- },
3744
- review_rating: {
3745
- desc: {
3746
- wording: { t: 0, b: { static: "", t: 2, i: [] } },
3747
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-solid fa-thumbs-up" } }
3748
- },
3749
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Mejor valorados" } }
3750
- }
3751
- }
3752
- }
3753
- },
3754
- "it-IT": {
3755
- BSortByMenu: {
3756
- prefix: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ordina per: " } },
3757
- options: {
3758
- top_picks: {
3759
- asc: {
3760
- wording: { t: 0, b: { static: "", t: 2, i: [] } },
3761
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-heart" } }
3762
- },
3763
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "I nostri preferiti" } }
3764
- },
3765
- price: {
3766
- asc: {
3767
- wording: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "(più basso)" } },
3768
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-arrow-trend-up" } }
3769
- },
3770
- desc: {
3771
- wording: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "(più alto)" } },
3772
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-arrow-trend-down" } }
3773
- },
3774
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Prezzo" } }
3775
- },
3776
- distance: {
3777
- asc: {
3778
- wording: { t: 0, b: { static: "", t: 2, i: [] } },
3779
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-person-walking" } }
3780
- },
3781
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Più vicino" } }
3782
- },
3783
- rating: {
3784
- asc: {
3785
- wording: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "(dal più basso al più alto)" } },
3786
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-solid fa-star-half-stroke" } }
3787
- },
3788
- desc: {
3789
- wording: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "(dal più alto al più basso)" } },
3790
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-solid fa-star-half-stroke" } },
3791
- style: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "mirror" } }
3792
- },
3793
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Stelle" } }
3794
- },
3795
- review_rating: {
3796
- desc: {
3797
- wording: { t: 0, b: { static: "", t: 2, i: [] } },
3798
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-solid fa-thumbs-up" } }
3799
- },
3800
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Migliori recensioni" } }
3801
- }
3802
- }
3803
- }
3804
- },
3805
- "nl-NL": {
3806
- BSortByMenu: {
3807
- prefix: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Sorteren op: " } },
3808
- options: {
3809
- top_picks: {
3810
- asc: {
3811
- wording: { t: 0, b: { static: "", t: 2, i: [] } },
3812
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-heart" } }
3813
- },
3814
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Onze favorieten" } }
3815
- },
3816
- price: {
3817
- asc: {
3818
- wording: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "(laagste eerst)" } },
3819
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-arrow-trend-up" } }
3820
- },
3821
- desc: {
3822
- wording: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "(hoogste eerst)" } },
3823
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-arrow-trend-down" } }
3824
- },
3825
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Prijs" } }
3826
- },
3827
- distance: {
3828
- asc: {
3829
- wording: { t: 0, b: { static: "", t: 2, i: [] } },
3830
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-person-walking" } }
3831
- },
3832
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Dichtstbijzijnd" } }
3833
- },
3834
- rating: {
3835
- asc: {
3836
- wording: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "(laag naar hoog)" } },
3837
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-solid fa-star-half-stroke" } }
3838
- },
3839
- desc: {
3840
- wording: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "(hoog naar laag)" } },
3841
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-solid fa-star-half-stroke" } },
3842
- style: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "mirror" } }
3843
- },
3844
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Sterren" } }
3845
- },
3846
- review_rating: {
3847
- desc: {
3848
- wording: { t: 0, b: { static: "", t: 2, i: [] } },
3849
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-solid fa-thumbs-up" } }
3850
- },
3851
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Best beoordeeld" } }
3852
- }
3853
- }
3854
- }
3855
- },
3856
- "pt-PT": {
3857
- BSortByMenu: {
3858
- prefix: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ordenar por: " } },
3859
- options: {
3860
- top_picks: {
3861
- asc: {
3862
- wording: { t: 0, b: { static: "", t: 2, i: [] } },
3863
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-heart" } }
3864
- },
3865
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "As nossas escolhas" } }
3866
- },
3867
- price: {
3868
- asc: {
3869
- wording: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "(o mais baixo primeiro)" } },
3870
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-arrow-trend-up" } }
3871
- },
3872
- desc: {
3873
- wording: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "(o mais alto primeiro)" } },
3874
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-arrow-trend-down" } }
3875
- },
3876
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Preço" } }
3877
- },
3878
- distance: {
3879
- asc: {
3880
- wording: { t: 0, b: { static: "", t: 2, i: [] } },
3881
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-person-walking" } }
3882
- },
3883
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Mais perto" } }
3884
- },
3885
- rating: {
3886
- asc: {
3887
- wording: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "(baixo para alto)" } },
3888
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-solid fa-star-half-stroke" } }
3889
- },
3890
- desc: {
3891
- wording: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "(alto para baixo)" } },
3892
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-solid fa-star-half-stroke" } },
3893
- style: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "mirror" } }
3894
- },
3895
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Estrelas" } }
3896
- },
3897
- review_rating: {
3898
- desc: {
3899
- wording: { t: 0, b: { static: "", t: 2, i: [] } },
3900
- icon: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "fas fa-solid fa-thumbs-up" } }
3901
- },
3902
- name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Melhor avaliado" } }
3903
- }
3904
- }
3905
- }
3906
- }
3907
- }
3908
- });
3909
- }
3910
- typeof St == "function" && St(ia);
3911
- const Ll = /* @__PURE__ */ le(ia, [["__scopeId", "data-v-13d63649"]]);
3912
- function $l(e) {
3913
- let {
3914
- rootEl: t,
3915
- isSticky: l,
3916
- layoutItemStyles: i
3917
- } = e;
3918
- const a = se(!1), s = se(0), u = p(() => {
3919
- const c = typeof a.value == "boolean" ? "top" : a.value;
3920
- return [l.value ? {
3921
- top: "auto",
3922
- bottom: "auto",
3923
- height: void 0
3924
- } : void 0, a.value ? {
3925
- [c]: fe(s.value)
3926
- } : {
3927
- top: i.value.top
3928
- }];
3929
- });
3930
- He(() => {
3931
- W(l, (c) => {
3932
- c ? window.addEventListener("scroll", h, {
3933
- passive: !0
3934
- }) : window.removeEventListener("scroll", h);
3935
- }, {
3936
- immediate: !0
3937
- });
3938
- }), qt(() => {
3939
- window.removeEventListener("scroll", h);
3940
- });
3941
- let m = 0;
3942
- function h() {
3943
- const c = m > window.scrollY ? "up" : "down", d = t.value.getBoundingClientRect(), b = parseFloat(i.value.top ?? 0), f = window.scrollY - Math.max(0, s.value - b), o = d.height + Math.max(s.value, b) - window.scrollY - window.innerHeight, v = parseFloat(getComputedStyle(t.value).getPropertyValue("--v-body-scroll-y")) || 0;
3944
- d.height < window.innerHeight - b ? (a.value = "top", s.value = b) : c === "up" && a.value === "bottom" || c === "down" && a.value === "top" ? (s.value = window.scrollY + d.top - v, a.value = !0) : c === "down" && o <= 0 ? (s.value = 0, a.value = "bottom") : c === "up" && f <= 0 && (v ? a.value !== "top" && (s.value = -f + v + b, a.value = "top") : (s.value = d.top + f, a.value = "top")), m = window.scrollY;
3945
- }
3946
- return {
3947
- isStuck: a,
3948
- stickyStyles: u
3949
- };
3950
- }
3951
- const Hl = 100, ql = 20;
3952
- function Mt(e) {
3953
- return (e < 0 ? -1 : 1) * Math.sqrt(Math.abs(e)) * 1.41421356237;
3954
- }
3955
- function Ot(e) {
3956
- if (e.length < 2)
3957
- return 0;
3958
- if (e.length === 2)
3959
- return e[1].t === e[0].t ? 0 : (e[1].d - e[0].d) / (e[1].t - e[0].t);
3960
- let t = 0;
3961
- for (let l = e.length - 1; l > 0; l--) {
3962
- if (e[l].t === e[l - 1].t)
3963
- continue;
3964
- const i = Mt(t), a = (e[l].d - e[l - 1].d) / (e[l].t - e[l - 1].t);
3965
- t += (a - i) * Math.abs(a), l === e.length - 1 && (t *= 0.5);
3966
- }
3967
- return Mt(t) * 1e3;
3968
- }
3969
- function Nl() {
3970
- const e = {};
3971
- function t(a) {
3972
- Array.from(a.changedTouches).forEach((s) => {
3973
- (e[s.identifier] ?? (e[s.identifier] = new Aa(ql))).push([a.timeStamp, s]);
3974
- });
3975
- }
3976
- function l(a) {
3977
- Array.from(a.changedTouches).forEach((s) => {
3978
- delete e[s.identifier];
3979
- });
3980
- }
3981
- function i(a) {
3982
- const s = e[a]?.values().reverse();
3983
- if (!s)
3984
- throw new Error(`No samples for touch id ${a}`);
3985
- const u = s[0], m = [], h = [];
3986
- for (const c of s) {
3987
- if (u[0] - c[0] > Hl) break;
3988
- m.push({
3989
- t: c[0],
3990
- d: c[1].clientX
3991
- }), h.push({
3992
- t: c[0],
3993
- d: c[1].clientY
3994
- });
3995
- }
3996
- return {
3997
- x: Ot(m),
3998
- y: Ot(h),
3999
- get direction() {
4000
- const {
4001
- x: c,
4002
- y: d
4003
- } = this, [b, f] = [Math.abs(c), Math.abs(d)];
4004
- return b > f && c >= 0 ? "right" : b > f && c <= 0 ? "left" : f > b && d >= 0 ? "down" : f > b && d <= 0 ? "up" : zl();
4005
- }
4006
- };
4007
- }
4008
- return {
4009
- addMovement: t,
4010
- endTouch: l,
4011
- getVelocity: i
4012
- };
4013
- }
4014
- function zl() {
4015
- throw new Error();
4016
- }
4017
- function Ul(e) {
4018
- let {
4019
- el: t,
4020
- isActive: l,
4021
- isTemporary: i,
4022
- width: a,
4023
- touchless: s,
4024
- position: u
4025
- } = e;
4026
- He(() => {
4027
- window.addEventListener("touchstart", T, {
4028
- passive: !0
4029
- }), window.addEventListener("touchmove", A, {
4030
- passive: !1
4031
- }), window.addEventListener("touchend", N, {
4032
- passive: !0
4033
- });
4034
- }), qt(() => {
4035
- window.removeEventListener("touchstart", T), window.removeEventListener("touchmove", A), window.removeEventListener("touchend", N);
4036
- });
4037
- const m = p(() => ["left", "right"].includes(u.value)), {
4038
- addMovement: h,
4039
- endTouch: c,
4040
- getVelocity: d
4041
- } = Nl();
4042
- let b = !1;
4043
- const f = se(!1), o = se(0), v = se(0);
4044
- let g;
4045
- function _(B, S) {
4046
- return (u.value === "left" ? B : u.value === "right" ? document.documentElement.clientWidth - B : u.value === "top" ? B : u.value === "bottom" ? document.documentElement.clientHeight - B : we()) - (S ? a.value : 0);
4047
- }
4048
- function k(B) {
4049
- let S = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
4050
- const F = u.value === "left" ? (B - v.value) / a.value : u.value === "right" ? (document.documentElement.clientWidth - B - v.value) / a.value : u.value === "top" ? (B - v.value) / a.value : u.value === "bottom" ? (document.documentElement.clientHeight - B - v.value) / a.value : we();
4051
- return S ? Math.max(0, Math.min(1, F)) : F;
4052
- }
4053
- function T(B) {
4054
- if (s.value) return;
4055
- const S = B.changedTouches[0].clientX, F = B.changedTouches[0].clientY, V = 25, x = u.value === "left" ? S < V : u.value === "right" ? S > document.documentElement.clientWidth - V : u.value === "top" ? F < V : u.value === "bottom" ? F > document.documentElement.clientHeight - V : we(), C = l.value && (u.value === "left" ? S < a.value : u.value === "right" ? S > document.documentElement.clientWidth - a.value : u.value === "top" ? F < a.value : u.value === "bottom" ? F > document.documentElement.clientHeight - a.value : we());
4056
- (x || C || l.value && i.value) && (g = [S, F], v.value = _(m.value ? S : F, l.value), o.value = k(m.value ? S : F), b = v.value > -20 && v.value < 80, c(B), h(B));
4057
- }
4058
- function A(B) {
4059
- const S = B.changedTouches[0].clientX, F = B.changedTouches[0].clientY;
4060
- if (b) {
4061
- if (!B.cancelable) {
4062
- b = !1;
4063
- return;
4064
- }
4065
- const x = Math.abs(S - g[0]), C = Math.abs(F - g[1]);
4066
- (m.value ? x > C && x > 3 : C > x && C > 3) ? (f.value = !0, b = !1) : (m.value ? C : x) > 3 && (b = !1);
4067
- }
4068
- if (!f.value) return;
4069
- B.preventDefault(), h(B);
4070
- const V = k(m.value ? S : F, !1);
4071
- o.value = Math.max(0, Math.min(1, V)), V > 1 ? v.value = _(m.value ? S : F, !0) : V < 0 && (v.value = _(m.value ? S : F, !1));
4072
- }
4073
- function N(B) {
4074
- if (b = !1, !f.value) return;
4075
- h(B), f.value = !1;
4076
- const S = d(B.changedTouches[0].identifier), F = Math.abs(S.x), V = Math.abs(S.y);
4077
- (m.value ? F > V && F > 400 : V > F && V > 3) ? l.value = S.direction === ({
4078
- left: "right",
4079
- right: "left",
4080
- top: "down",
4081
- bottom: "up"
4082
- }[u.value] || we()) : l.value = o.value > 0.5;
4083
- }
4084
- const L = p(() => f.value ? {
4085
- transform: u.value === "left" ? `translateX(calc(-100% + ${o.value * a.value}px))` : u.value === "right" ? `translateX(calc(100% - ${o.value * a.value}px))` : u.value === "top" ? `translateY(calc(-100% + ${o.value * a.value}px))` : u.value === "bottom" ? `translateY(calc(100% - ${o.value * a.value}px))` : we(),
4086
- transition: "none"
4087
- } : void 0);
4088
- return De(f, () => {
4089
- const B = t.value?.style.transform ?? null, S = t.value?.style.transition ?? null;
4090
- La(() => {
4091
- t.value?.style.setProperty("transform", L.value?.transform || "none"), t.value?.style.setProperty("transition", L.value?.transition || null);
4092
- }), $a(() => {
4093
- t.value?.style.setProperty("transform", B), t.value?.style.setProperty("transition", S);
4094
- });
4095
- }), {
4096
- isDragging: f,
4097
- dragProgress: o,
4098
- dragStyles: L
4099
- };
4100
- }
4101
- function we() {
4102
- throw new Error();
4103
- }
4104
- const jl = ["start", "end", "left", "right", "top", "bottom"], Kl = Re({
4105
- color: String,
4106
- disableResizeWatcher: Boolean,
4107
- disableRouteWatcher: Boolean,
4108
- expandOnHover: Boolean,
4109
- floating: Boolean,
4110
- modelValue: {
4111
- type: Boolean,
4112
- default: null
4113
- },
4114
- permanent: Boolean,
4115
- rail: {
4116
- type: Boolean,
4117
- default: null
4118
- },
4119
- railWidth: {
4120
- type: [Number, String],
4121
- default: 56
4122
- },
4123
- scrim: {
4124
- type: [Boolean, String],
4125
- default: !0
4126
- },
4127
- image: String,
4128
- temporary: Boolean,
4129
- persistent: Boolean,
4130
- touchless: Boolean,
4131
- width: {
4132
- type: [Number, String],
4133
- default: 256
4134
- },
4135
- location: {
4136
- type: String,
4137
- default: "start",
4138
- validator: (e) => jl.includes(e)
4139
- },
4140
- sticky: Boolean,
4141
- ...Ai(),
4142
- ...ze(),
4143
- ...ri(),
4144
- ...Na({
4145
- mobile: null
4146
- }),
4147
- ...Ut(),
4148
- ...li(),
4149
- ...jt(),
4150
- ...zt({
4151
- tag: "nav"
4152
- }),
4153
- ...Ht()
4154
- }, "VNavigationDrawer"), Gl = Ve()({
4155
- name: "VNavigationDrawer",
4156
- props: Kl(),
4157
- emits: {
4158
- "update:modelValue": (e) => !0,
4159
- "update:rail": (e) => !0
4160
- },
4161
- setup(e, t) {
4162
- let {
4163
- attrs: l,
4164
- emit: i,
4165
- slots: a
4166
- } = t;
4167
- const {
4168
- isRtl: s
4169
- } = Ne(), {
4170
- themeClasses: u
4171
- } = $t(e), {
4172
- borderClasses: m
4173
- } = Di(e), {
4174
- backgroundColorClasses: h,
4175
- backgroundColorStyles: c
4176
- } = $e(te(e, "color")), {
4177
- elevationClasses: d
4178
- } = Kt(e), {
4179
- displayClasses: b,
4180
- mobile: f
4181
- } = Ha(e), {
4182
- roundedClasses: o
4183
- } = Gt(e), v = ei(), g = tt(e, "modelValue", null, (D) => !!D), {
4184
- ssrBootStyles: _
4185
- } = $i(), {
4186
- scopeId: k
4187
- } = ti(), T = H(), A = se(!1), {
4188
- runOpenDelay: N,
4189
- runCloseDelay: L
4190
- } = si(e, (D) => {
4191
- A.value = D;
4192
- }), B = p(() => e.rail && e.expandOnHover && A.value ? Number(e.width) : Number(e.rail ? e.railWidth : e.width)), S = p(() => ai(e.location, s.value)), F = p(() => e.persistent), V = p(() => !e.permanent && (f.value || e.temporary)), x = p(() => e.sticky && !V.value && S.value !== "bottom");
4193
- De(() => e.expandOnHover && e.rail != null, () => {
4194
- W(A, (D) => i("update:rail", !D));
4195
- }), De(() => !e.disableResizeWatcher, () => {
4196
- W(V, (D) => !e.permanent && qe(() => g.value = !D));
4197
- }), De(() => !e.disableRouteWatcher && !!v, () => {
4198
- W(v.currentRoute, () => V.value && (g.value = !1));
4199
- }), W(() => e.permanent, (D) => {
4200
- D && (g.value = !0);
4201
- }), e.modelValue == null && !V.value && (g.value = e.permanent || !f.value);
4202
- const {
4203
- isDragging: C,
4204
- dragProgress: R
4205
- } = Ul({
4206
- el: T,
4207
- isActive: g,
4208
- isTemporary: V,
4209
- width: B,
4210
- touchless: te(e, "touchless"),
4211
- position: S
4212
- }), w = p(() => {
4213
- const D = V.value ? 0 : e.rail && e.expandOnHover ? Number(e.railWidth) : B.value;
4214
- return C.value ? D * R.value : D;
4215
- }), {
4216
- layoutItemStyles: $,
4217
- layoutItemScrimStyles: P
4218
- } = ii({
4219
- id: e.name,
4220
- order: p(() => parseInt(e.order, 10)),
4221
- position: S,
4222
- layoutSize: w,
4223
- elementSize: B,
4224
- active: p(() => g.value || C.value),
4225
- disableTransitions: p(() => C.value),
4226
- absolute: p(() => (
4227
- // eslint-disable-next-line @typescript-eslint/no-use-before-define
4228
- e.absolute || x.value && typeof J.value != "string"
4229
- ))
4230
- }), {
4231
- isStuck: J,
4232
- stickyStyles: ge
4233
- } = $l({
4234
- rootEl: T,
4235
- isSticky: x,
4236
- layoutItemStyles: $
4237
- }), me = $e(p(() => typeof e.scrim == "string" ? e.scrim : null)), Se = p(() => ({
4238
- ...C.value ? {
4239
- opacity: R.value * 0.2,
4240
- transition: "none"
4241
- } : void 0,
4242
- ...P.value
4243
- }));
4244
- return qa({
4245
- VList: {
4246
- bgColor: "transparent"
4247
- }
4248
- }), Pe(() => {
4249
- const D = a.image || e.image;
4250
- return r(ie, null, [r(e.tag, ee({
4251
- ref: T,
4252
- onMouseenter: N,
4253
- onMouseleave: L,
4254
- class: ["v-navigation-drawer", `v-navigation-drawer--${S.value}`, {
4255
- "v-navigation-drawer--expand-on-hover": e.expandOnHover,
4256
- "v-navigation-drawer--floating": e.floating,
4257
- "v-navigation-drawer--is-hovering": A.value,
4258
- "v-navigation-drawer--rail": e.rail,
4259
- "v-navigation-drawer--temporary": V.value,
4260
- "v-navigation-drawer--persistent": F.value,
4261
- "v-navigation-drawer--active": g.value,
4262
- "v-navigation-drawer--sticky": x.value
4263
- }, u.value, h.value, m.value, b.value, d.value, o.value, e.class],
4264
- style: [c.value, $.value, _.value, ge.value, e.style]
4265
- }, k, l), {
4266
- default: () => [D && r("div", {
4267
- key: "image",
4268
- class: "v-navigation-drawer__img"
4269
- }, [a.image ? r(Ri, {
4270
- key: "image-defaults",
4271
- disabled: !e.image,
4272
- defaults: {
4273
- VImg: {
4274
- alt: "",
4275
- cover: !0,
4276
- height: "inherit",
4277
- src: e.image
4278
- }
4279
- }
4280
- }, a.image) : r(_i, {
4281
- key: "image-img",
4282
- alt: "",
4283
- cover: !0,
4284
- height: "inherit",
4285
- src: e.image
4286
- }, null)]), a.prepend && r("div", {
4287
- class: "v-navigation-drawer__prepend"
4288
- }, [a.prepend?.()]), r("div", {
4289
- class: "v-navigation-drawer__content"
4290
- }, [a.default?.()]), a.append && r("div", {
4291
- class: "v-navigation-drawer__append"
4292
- }, [a.append?.()])]
4293
- }), r(za, {
4294
- name: "fade-transition"
4295
- }, {
4296
- default: () => [V.value && (C.value || g.value) && !!e.scrim && r("div", ee({
4297
- class: ["v-navigation-drawer__scrim", me.backgroundColorClasses.value],
4298
- style: [Se.value, me.backgroundColorStyles.value],
4299
- onClick: () => {
4300
- F.value || (g.value = !1);
4301
- }
4302
- }, k), null)]
4303
- })]);
4304
- }), {
4305
- isStuck: J
4306
- };
4307
- }
4308
- }), Wl = { class: "" }, Yl = { class: "font-weight-bold" }, Zl = { class: "font-weight-bold" }, Xl = { class: "font-weight-bold" }, la = /* @__PURE__ */ Q({
4309
- __name: "HotelOffersFilterBarUI",
4310
- props: /* @__PURE__ */ be({
4311
- currency: {},
4312
- disabled: { type: Boolean },
4313
- isLoading: { type: Boolean },
4314
- priceHistogram: {},
4315
- priceMax: {},
4316
- priceMin: {},
4317
- step: {}
4318
- }, {
4319
- modelValue: { required: !0 },
4320
- modelModifiers: {}
4321
- }),
4322
- emits: ["update:modelValue"],
4323
- setup(e) {
4324
- const { t } = ne(), l = H(!1), i = ue(e, "modelValue"), a = H({
4325
- ...i.value
4326
- }), s = () => {
4327
- i.value = { ...a.value }, l.value = !1;
4328
- }, u = p(
4329
- () => i?.value?.price[0] !== 0 || i?.value?.price[1] !== 0
4330
- ), m = p(
4331
- () => i?.value?.[K.ReviewRating] !== Ft
4332
- ), h = p(
4333
- () => i?.value?.[K.Rating] !== ""
4334
- ), c = p(
4335
- () => [
4336
- u.value,
4337
- h.value,
4338
- m.value
4339
- ].filter(Boolean).length
4340
- ), d = () => {
4341
- a.value = { ...i.value }, l.value = !1;
4342
- }, b = () => {
4343
- i.value = { ...Le }, l.value = !1;
4344
- };
4345
- return W(
4346
- i,
4347
- (f) => {
4348
- a.value = { ...f };
4349
- },
4350
- {
4351
- deep: !0,
4352
- immediate: !0
4353
- }
4354
- ), W(
4355
- l,
4356
- () => {
4357
- a.value = { ...i.value };
4358
- },
4359
- {
4360
- deep: !0,
4361
- immediate: !0
4362
- }
4363
- ), (f, o) => (M(), G("div", null, [
4364
- r(Gl, {
4365
- modelValue: l.value,
4366
- "onUpdate:modelValue": o[3] || (o[3] = (v) => l.value = v),
4367
- temporary: "",
4368
- width: 450
4369
- }, {
4370
- default: n(() => [
4371
- r(Fe, {
4372
- elevation: "0",
4373
- light: ""
4374
- }, {
4375
- default: n(() => [
4376
- r(Mi, {
4377
- class: "py-1",
4378
- style: { "background-color": "#fff", "z-index": "1", position: "fixed", top: "0", width: "100%" }
4379
- }, {
4380
- default: n(() => [
4381
- r(re, { "no-gutters": "" }, {
4382
- default: n(() => [
4383
- r(Y, { cols: "auto" }, {
4384
- default: n(() => [
4385
- r(U, {
4386
- icon: "",
4387
- variant: "text",
4388
- onClick: d,
4389
- size: "small"
4390
- }, {
4391
- default: n(() => [
4392
- r(oe, null, {
4393
- default: n(() => o[9] || (o[9] = [
4394
- E(" fas fa-arrow-left ")
4395
- ])),
4396
- _: 1,
4397
- __: [9]
4398
- })
4399
- ]),
4400
- _: 1
4401
- }),
4402
- q("small", Wl, O(y(t)("BHotelFiltersMenu.filterBy")), 1)
4403
- ]),
4404
- _: 1
4405
- }),
4406
- r(Y, {
4407
- align: "end",
4408
- class: "flex align-center justify-end"
4409
- }, {
4410
- default: n(() => [
4411
- r(U, {
4412
- class: "mr-2",
4413
- color: "primary",
4414
- size: "small",
4415
- variant: "text",
4416
- onClick: d
4417
- }, {
4418
- default: n(() => [
4419
- E(O(y(t)("BHotelFiltersMenu.cancel")), 1)
4420
- ]),
4421
- _: 1
4422
- }),
4423
- r(U, {
4424
- class: "mr-2",
4425
- color: "error",
4426
- size: "small",
4427
- variant: "text",
4428
- onClick: b
4429
- }, {
4430
- default: n(() => [
4431
- E(O(y(t)("BHotelFiltersMenu.reset")), 1)
4432
- ]),
4433
- _: 1
4434
- }),
4435
- r(U, {
4436
- color: "success",
4437
- elevation: "0",
4438
- size: "small",
4439
- onClick: s
4440
- }, {
4441
- default: n(() => [
4442
- E(O(y(t)("BHotelFiltersMenu.apply")), 1)
4443
- ]),
4444
- _: 1
4445
- })
4446
- ]),
4447
- _: 1
4448
- })
4449
- ]),
4450
- _: 1
4451
- })
4452
- ]),
4453
- _: 1
4454
- }),
4455
- r(Ae, { class: "mt-12" }),
4456
- r(at, null, {
4457
- default: n(() => [
4458
- r(re, { class: "my-8" }, {
4459
- default: n(() => [
4460
- r(Y, {
4461
- align: "center",
4462
- class: "px-8",
4463
- cols: "12"
4464
- }, {
4465
- default: n(() => [
4466
- q("p", Yl, O(y(t)("BHotelFiltersMenu.price")), 1),
4467
- r(Xt, {
4468
- modelValue: a.value[y(K).Price],
4469
- "onUpdate:modelValue": o[0] || (o[0] = (v) => a.value[y(K).Price] = v),
4470
- currency: f.currency,
4471
- "is-loading": f.isLoading,
4472
- "price-histogram": f.priceHistogram,
4473
- "price-max": f.priceMax,
4474
- "price-min": f.priceMin
4475
- }, null, 8, ["modelValue", "currency", "is-loading", "price-histogram", "price-max", "price-min"])
4476
- ]),
4477
- _: 1
4478
- })
4479
- ]),
4480
- _: 1
4481
- }),
4482
- r(Ae, { class: "my-6 mx-12" }),
4483
- r(re, { class: "my-8" }, {
4484
- default: n(() => [
4485
- r(Y, {
4486
- align: "center",
4487
- cols: "12"
4488
- }, {
4489
- default: n(() => [
4490
- q("p", Zl, O(y(t)("BHotelFiltersMenu.star")), 1),
4491
- r(ta, {
4492
- modelValue: a.value[y(K).Rating],
4493
- "onUpdate:modelValue": o[1] || (o[1] = (v) => a.value[y(K).Rating] = v)
4494
- }, null, 8, ["modelValue"])
4495
- ]),
4496
- _: 1
4497
- })
4498
- ]),
4499
- _: 1
4500
- }),
4501
- r(Ae, { class: "my-6 mx-12" }),
4502
- r(re, { class: "my-8" }, {
4503
- default: n(() => [
4504
- r(Y, {
4505
- align: "center",
4506
- class: "py-4",
4507
- cols: "12"
4508
- }, {
4509
- default: n(() => [
4510
- q("p", Xl, O(y(t)("BHotelFiltersMenu.review")), 1),
4511
- r(Jt, {
4512
- modelValue: a.value[y(K).ReviewRating],
4513
- "onUpdate:modelValue": o[2] || (o[2] = (v) => a.value[y(K).ReviewRating] = v)
4514
- }, null, 8, ["modelValue"])
4515
- ]),
4516
- _: 1
4517
- })
4518
- ]),
4519
- _: 1
4520
- })
4521
- ]),
4522
- _: 1
4523
- })
4524
- ]),
4525
- _: 1
4526
- })
4527
- ]),
4528
- _: 1
4529
- }, 8, ["modelValue"]),
4530
- r(re, {
4531
- class: "pa-2",
4532
- justify: "space-between"
4533
- }, {
4534
- default: n(() => [
4535
- r(Y, { cols: "auto" }, {
4536
- default: n(() => [
4537
- r(re, { dense: "" }, {
4538
- default: n(() => [
4539
- r(Y, null, {
4540
- default: n(() => [
4541
- r(Ke, {
4542
- bordered: "",
4543
- color: "secondary",
4544
- content: c.value > 0 ? c.value : void 0,
4545
- icon: c.value > 0 ? void 0 : "fas fa-x",
4546
- "model-value": c.value > 0,
4547
- style: { cursor: "pointer" }
4548
- }, {
4549
- default: n(() => [
4550
- r(U, {
4551
- "data-attr": "hotel-offers-filter-bar-filters",
4552
- color: "secondary",
4553
- elevation: 0,
4554
- size: "small",
4555
- onClick: o[4] || (o[4] = (v) => l.value = !0)
4556
- }, {
4557
- default: n(() => [
4558
- r(oe, {
4559
- class: "mr-1",
4560
- size: "14"
4561
- }, {
4562
- default: n(() => o[10] || (o[10] = [
4563
- E(" fas fa-sliders ")
4564
- ])),
4565
- _: 1,
4566
- __: [10]
4567
- }),
4568
- E(O(y(t)("BHotelFiltersMenu.filters")), 1)
4569
- ]),
4570
- _: 1
4571
- })
4572
- ]),
4573
- _: 1
4574
- }, 8, ["content", "icon", "model-value"])
4575
- ]),
4576
- _: 1
4577
- }),
4578
- u.value ? (M(), z(Y, {
4579
- key: 0,
4580
- class: "mx-1"
4581
- }, {
4582
- default: n(() => [
4583
- r(Ol, {
4584
- modelValue: i.value[y(K).Price],
4585
- "onUpdate:modelValue": o[5] || (o[5] = (v) => i.value[y(K).Price] = v),
4586
- currency: f.currency,
4587
- "is-loading": f.isLoading,
4588
- "price-histogram": f.priceHistogram,
4589
- "price-max": f.priceMax,
4590
- "price-min": f.priceMin
4591
- }, null, 8, ["modelValue", "currency", "is-loading", "price-histogram", "price-max", "price-min"])
4592
- ]),
4593
- _: 1
4594
- })) : X("", !0),
4595
- h.value ? (M(), z(Y, {
4596
- key: 1,
4597
- class: "mx-1"
4598
- }, {
4599
- default: n(() => [
4600
- r(Tl, {
4601
- modelValue: i.value[y(K).Rating],
4602
- "onUpdate:modelValue": o[6] || (o[6] = (v) => i.value[y(K).Rating] = v)
4603
- }, null, 8, ["modelValue"])
4604
- ]),
4605
- _: 1
4606
- })) : X("", !0),
4607
- m.value ? (M(), z(Y, {
4608
- key: 2,
4609
- class: "mx-1"
4610
- }, {
4611
- default: n(() => [
4612
- r(Vl, {
4613
- modelValue: i.value[y(K).ReviewRating],
4614
- "onUpdate:modelValue": o[7] || (o[7] = (v) => i.value[y(K).ReviewRating] = v)
4615
- }, null, 8, ["modelValue"])
4616
- ]),
4617
- _: 1
4618
- })) : X("", !0),
4619
- c.value > 1 ? (M(), z(Y, {
4620
- key: 3,
4621
- class: "mx-1"
4622
- }, {
4623
- default: n(() => [
4624
- r(U, {
4625
- color: "grey",
4626
- size: "small",
4627
- variant: "text",
4628
- onClick: b
4629
- }, {
4630
- default: n(() => o[11] || (o[11] = [
4631
- E(" Reset ")
4632
- ])),
4633
- _: 1,
4634
- __: [11]
4635
- })
4636
- ]),
4637
- _: 1
4638
- })) : X("", !0)
4639
- ]),
4640
- _: 1
4641
- })
4642
- ]),
4643
- _: 1
4644
- }),
4645
- r(Y, { cols: "auto" }, {
4646
- default: n(() => [
4647
- r(Ll, {
4648
- modelValue: i.value[y(K).SortBy],
4649
- "onUpdate:modelValue": o[8] || (o[8] = (v) => i.value[y(K).SortBy] = v),
4650
- attach: f.$el
4651
- }, null, 8, ["modelValue", "attach"])
4652
- ]),
4653
- _: 1
4654
- })
4655
- ]),
4656
- _: 1
4657
- })
4658
- ]));
4659
- }
4660
- });
4661
- function Ct(e) {
4662
- const t = e;
4663
- t.__i18n = t.__i18n || [], t.__i18n.push({
4664
- locale: "",
4665
- resource: {
4666
- "en-US": {
4667
- BHotelFiltersMenu: {
4668
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Apply" } },
4669
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Cancel" } },
4670
- filters: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Filters" } },
4671
- filterBy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Filter by" } },
4672
- price: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Price per room per night" } },
4673
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Reset" } },
4674
- review: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Guest Rating" } },
4675
- sortBy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Sort by" } },
4676
- star: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Star Rating" } }
4677
- }
4678
- },
4679
- "fr-FR": {
4680
- BHotelFiltersMenu: {
4681
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Appliquer" } },
4682
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Annuler" } },
4683
- filters: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Filtres" } },
4684
- filterBy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Filtrer par" } },
4685
- price: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Prix par chambre par nuit" } },
4686
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Réinitialiser" } },
4687
- review: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Notes" } },
4688
- sortBy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Trier par" } },
4689
- star: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Étoiles" } }
4690
- }
4691
- },
4692
- "de-DE": {
4693
- BHotelFiltersMenu: {
4694
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Anwenden" } },
4695
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Abbrechen" } },
4696
- filters: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Filter" } },
4697
- filterBy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Filtern nach" } },
4698
- price: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Preis pro Zimmer pro Nacht" } },
4699
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Zurücksetzen" } },
4700
- review: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Gästebewertung" } },
4701
- sortBy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Sortieren nach" } },
4702
- star: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Sternebewertung" } }
4703
- }
4704
- },
4705
- "es-ES": {
4706
- BHotelFiltersMenu: {
4707
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Aplicar" } },
4708
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Cancelar" } },
4709
- filters: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Filtros" } },
4710
- filterBy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Filtrar por" } },
4711
- price: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Precio por habitación por noche" } },
4712
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Restablecer" } },
4713
- review: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Valoración de los huéspedes" } },
4714
- sortBy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ordenar por" } },
4715
- star: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Clasificación por estrellas" } }
4716
- }
4717
- },
4718
- "it-IT": {
4719
- BHotelFiltersMenu: {
4720
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Applica" } },
4721
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Annulla" } },
4722
- filters: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Filtri" } },
4723
- filterBy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Filtra per" } },
4724
- price: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Prezzo per camera a notte" } },
4725
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ripristina" } },
4726
- review: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Valutazione degli ospiti" } },
4727
- sortBy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ordina per" } },
4728
- star: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Classificazione stelle" } }
4729
- }
4730
- },
4731
- "nl-NL": {
4732
- BHotelFiltersMenu: {
4733
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Toepassen" } },
4734
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Annuleren" } },
4735
- filters: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Filters" } },
4736
- filterBy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Filteren op" } },
4737
- price: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Prijs per kamer per nacht" } },
4738
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Reset" } },
4739
- review: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Beoordeling" } },
4740
- sortBy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Sorteren op" } },
4741
- star: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Sterrenclassificatie" } }
4742
- }
4743
- },
4744
- "pt-PT": {
4745
- BHotelFiltersMenu: {
4746
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Aplicar" } },
4747
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Cancelar" } },
4748
- filters: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Filtros" } },
4749
- filterBy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Filtrar por" } },
4750
- price: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Preço por quarto por noite" } },
4751
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Repor" } },
4752
- review: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Avaliação dos hóspedes" } },
4753
- sortBy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ordenar por" } },
4754
- star: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Classificação de estrelas" } }
4755
- }
4756
- }
4757
- }
4758
- });
4759
- }
4760
- typeof Ct == "function" && Ct(la);
4761
- const Ql = /* @__PURE__ */ le(la, [["__scopeId", "data-v-533cff01"]]), Jl = { ref: "root" }, ra = /* @__PURE__ */ Q({
4762
- __name: "BHotelOffersFilterBar",
4763
- setup(e) {
4764
- const t = Ui(), l = H(Le);
4765
- return W(
4766
- l,
4767
- (i) => {
4768
- t.saveFilters(i);
4769
- },
4770
- {
4771
- deep: !0,
4772
- immediate: !0
4773
- }
4774
- ), (i, a) => (M(), G("div", Jl, [
4775
- r(Ql, {
4776
- modelValue: l.value,
4777
- "onUpdate:modelValue": a[0] || (a[0] = (s) => l.value = s),
4778
- currency: i.config.currency,
4779
- "is-loading": y(t).isPolling && !y(t).hotelOffers.length,
4780
- "price-max": y(t).getPriceMax,
4781
- "price-min": y(t).getPriceMin,
4782
- "price-histogram": y(t).priceHistogram
4783
- }, null, 8, ["modelValue", "currency", "is-loading", "price-max", "price-min", "price-histogram"])
4784
- ], 512));
4785
- }
4786
- });
4787
- function It(e) {
4788
- const t = e;
4789
- t.__i18n = t.__i18n || [], t.__i18n.push({
4790
- locale: "",
4791
- resource: {
4792
- "en-US": {
4793
- BHotelFiltersMenu: {
4794
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Apply" } },
4795
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Cancel" } },
4796
- filters: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Filters" } },
4797
- filterBy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Filter by" } },
4798
- price: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Price per room per night" } },
4799
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Reset" } },
4800
- review: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Guest Rating" } },
4801
- sortBy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Sort by" } },
4802
- star: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Star Rating" } }
4803
- }
4804
- },
4805
- "fr-FR": {
4806
- BHotelFiltersMenu: {
4807
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Appliquer" } },
4808
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Annuler" } },
4809
- filters: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Filtres" } },
4810
- filterBy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Filtrer par" } },
4811
- price: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Prix par chambre par nuit" } },
4812
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Réinitialiser" } },
4813
- review: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Notes" } },
4814
- sortBy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Trier par" } },
4815
- star: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Étoiles" } }
4816
- }
4817
- },
4818
- "de-DE": {
4819
- BHotelFiltersMenu: {
4820
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Anwenden" } },
4821
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Abbrechen" } },
4822
- filters: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Filter" } },
4823
- filterBy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Filtern nach" } },
4824
- price: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Preis pro Zimmer pro Nacht" } },
4825
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Zurücksetzen" } },
4826
- review: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Gästebewertung" } },
4827
- sortBy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Sortieren nach" } },
4828
- star: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Sternebewertung" } }
4829
- }
4830
- },
4831
- "es-ES": {
4832
- BHotelFiltersMenu: {
4833
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Aplicar" } },
4834
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Cancelar" } },
4835
- filters: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Filtros" } },
4836
- filterBy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Filtrar por" } },
4837
- price: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Precio por habitación por noche" } },
4838
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Restablecer" } },
4839
- review: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Valoración de los huéspedes" } },
4840
- sortBy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ordenar por" } },
4841
- star: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Clasificación por estrellas" } }
4842
- }
4843
- },
4844
- "it-IT": {
4845
- BHotelFiltersMenu: {
4846
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Applica" } },
4847
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Annulla" } },
4848
- filters: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Filtri" } },
4849
- filterBy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Filtra per" } },
4850
- price: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Prezzo per camera a notte" } },
4851
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ripristina" } },
4852
- review: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Valutazione degli ospiti" } },
4853
- sortBy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ordina per" } },
4854
- star: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Classificazione stelle" } }
4855
- }
4856
- },
4857
- "nl-NL": {
4858
- BHotelFiltersMenu: {
4859
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Toepassen" } },
4860
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Annuleren" } },
4861
- filters: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Filters" } },
4862
- filterBy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Filteren op" } },
4863
- price: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Prijs per kamer per nacht" } },
4864
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Reset" } },
4865
- review: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Beoordeling" } },
4866
- sortBy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Sorteren op" } },
4867
- star: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Sterrenclassificatie" } }
4868
- }
4869
- },
4870
- "pt-PT": {
4871
- BHotelFiltersMenu: {
4872
- apply: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Aplicar" } },
4873
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Cancelar" } },
4874
- filters: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Filtros" } },
4875
- filterBy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Filtrar por" } },
4876
- price: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Preço por quarto por noite" } },
4877
- reset: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Repor" } },
4878
- review: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Avaliação dos hóspedes" } },
4879
- sortBy: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ordenar por" } },
4880
- star: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Classificação de estrelas" } }
4881
- }
4882
- }
4883
- }
4884
- });
4885
- }
4886
- typeof It == "function" && It(ra);
4887
- const Nr = /* @__PURE__ */ le(ra, [["__scopeId", "data-v-548e6303"]]);
4888
- fa("css/revolugo.bhoteloffersfilterbar.BebBKpCh.css");
4889
- export {
4890
- qr as B,
4891
- Dr as D,
4892
- Ki as H,
4893
- de as a,
4894
- Lr as b,
4895
- $r as c,
4896
- Hr as d,
4897
- Nr as e,
4898
- Ar as p,
4899
- Ui as u
4900
- };
4901
- //# sourceMappingURL=revolugo.bhoteloffersfilterbar.Duj0L2BC.min.js.map