@revolugo/elements 6.8.2-beta.34 → 6.8.2-beta.35

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 (117) hide show
  1. package/dist/css/{revolugo.bdaterangepicker.D1e8WHUE.css → revolugo.bdaterangepicker.B6KA5TYs.css} +1 -1
  2. package/dist/css/revolugo.hoteloffersearchmenuui.ZbUh8ba2.css +1 -0
  3. package/dist/css/{revolugo.hoteloffersmap.DZ9zVlMs.css → revolugo.hoteloffersmap.Cp2vN-VQ.css} +1 -1
  4. package/dist/css/revolugo.hoteloffersview.CNI6b2S9.css +1 -0
  5. package/dist/index.es.min.js +422 -420
  6. package/dist/index.es.min.js.map +1 -1
  7. package/dist/index.min.js +5 -5
  8. package/dist/index.min.js.map +1 -1
  9. package/dist/{revolugo._baseiteratee.BEP1-p3y.min.js → revolugo._baseiteratee.DXs1qceQ.min.js} +35 -35
  10. package/dist/{revolugo.banktransferdetails.CjbztzfC.min.js → revolugo.banktransferdetails.CW2vXY85.min.js} +9 -9
  11. package/dist/{revolugo.bdaterangepicker.CFyhGruk.min.js → revolugo.bdaterangepicker.DafS75a7.min.js} +2179 -2183
  12. package/dist/{revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.B2bk2KpX.min.js → revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.DPBPNagF.min.js} +4 -4
  13. package/dist/{revolugo.bhoteloffersfilterbar.CFOOtTvL.min.js → revolugo.bhoteloffersfilterbar.DhuoHmwA.min.js} +958 -772
  14. package/dist/{revolugo.bhotelroomsdetails.Be5zxifu.min.js → revolugo.bhotelroomsdetails.D8jmONal.min.js} +26 -26
  15. package/dist/{revolugo.bimagecarousel.CxOf9dZ6.min.js → revolugo.bimagecarousel.DAQ3mwvt.min.js} +20 -20
  16. package/dist/{revolugo.bookingdetailssidebar.CSH8m1C4.min.js → revolugo.bookingdetailssidebar.DIcRSjPd.min.js} +4 -4
  17. package/dist/{revolugo.bookingdetailssidebar.B5Pj0On4.min.js → revolugo.bookingdetailssidebar.mwjjuWpw.min.js} +11 -11
  18. package/dist/{revolugo.bookingmanager.csPvGATG.min.js → revolugo.bookingmanager.Bwyo12Gi.min.js} +20 -20
  19. package/dist/{revolugo.bpricesummaryskeleton.CHX7Jssj.min.js → revolugo.bpricesummaryskeleton.tb9ZpC9J.min.js} +4 -4
  20. package/dist/{revolugo.bstarrating.vue_vue_type_script_setup_true_lang.VA13CkuK.min.js → revolugo.bstarrating.vue_vue_type_script_setup_true_lang.DCYjk9Yx.min.js} +8 -8
  21. package/dist/{revolugo.btag.Dv4uxsYv.min.js → revolugo.btag.DeeJpOs_.min.js} +28 -28
  22. package/dist/{revolugo.cancellationpoliciesbadge.CRBkLci9.min.js → revolugo.cancellationpoliciesbadge.DMIEO0nz.min.js} +4 -4
  23. package/dist/{revolugo.cancellationpoliciesbadge._2J26Hqf.min.js → revolugo.cancellationpoliciesbadge.DqsmQWTm.min.js} +12 -12
  24. package/dist/{revolugo.cancellationpolicieslist.pqHwlUuQ.min.js → revolugo.cancellationpolicieslist.BbjzLOjx.min.js} +4 -4
  25. package/dist/{revolugo.cancellationpolicieslist.DQNG2iB8.min.js → revolugo.cancellationpolicieslist.CyDAFW-m.min.js} +3 -3
  26. package/dist/{revolugo.case-transformers.DP17jA4x.min.js → revolugo.case-transformers.CwyDt9X7.min.js} +5 -5
  27. package/dist/{revolugo.creditcardform.BZRrbM7V.min.js → revolugo.creditcardform.DHTyvc89.min.js} +4 -4
  28. package/dist/{revolugo.creditcardform.BxjCDGvO.min.js → revolugo.creditcardform.dkQfjqbu.min.js} +58 -58
  29. package/dist/{revolugo.creditcardpayment.BT1kN8zt.min.js → revolugo.creditcardpayment.Bq-J4NTM.min.js} +4 -4
  30. package/dist/{revolugo.creditcardpayment.DoY6phPa.min.js → revolugo.creditcardpayment.C4p394gY.min.js} +18 -18
  31. package/dist/{revolugo.currencypicker.B2tV48Y5.min.js → revolugo.currencypicker.CaX_fZ0_.min.js} +9 -9
  32. package/dist/{revolugo.currencypickerbtn.DE8oV1V1.min.js → revolugo.currencypickerbtn.CVNX9x8D.min.js} +4 -4
  33. package/dist/{revolugo.currencypickerbtn.DMU3GWjB.min.js → revolugo.currencypickerbtn.uWFp8h9g.min.js} +14 -14
  34. package/dist/revolugo.dates.BeQtrIUt.min.js +31 -0
  35. package/dist/revolugo.defaultsdeep.E3Weft6W.min.js +104 -0
  36. package/dist/{revolugo.dialog-attach.DpGIwuG0.min.js → revolugo.dialog-attach.fTomESSY.min.js} +2 -2
  37. package/dist/{revolugo.dialog-transition.Ckkqh-sq.min.js → revolugo.dialog-transition.DSC7a95s.min.js} +3 -3
  38. package/dist/{revolugo.fastbookingflow.CuXq-6GN.min.js → revolugo.fastbookingflow.B-Cd7O1h.min.js} +4 -4
  39. package/dist/{revolugo.fullbookingflow.D4ACgY8T.min.js → revolugo.fullbookingflow.JHD1Liiy.min.js} +17 -17
  40. package/dist/{revolugo.hotel-offer-request.DcAw3ks9.min.js → revolugo.hotel-offer-request.Ba2CYCdK.min.js} +2 -2
  41. package/dist/{revolugo.hoteldescriptionview.CnCdP9SI.min.js → revolugo.hoteldescriptionview.CCt_zuXQ.min.js} +32 -32
  42. package/dist/{revolugo.hoteldescriptionview.OsbnClid.min.js → revolugo.hoteldescriptionview.iLYeoUcR.min.js} +4 -4
  43. package/dist/{revolugo.hotelofferitemlayout.Dpe1_FMy.min.js → revolugo.hotelofferitemlayout.D_8KH6Ux.min.js} +9 -9
  44. package/dist/{revolugo.hotelofferlist.BJycC4Of.min.js → revolugo.hotelofferlist.BVOA8ZY3.min.js} +4 -4
  45. package/dist/{revolugo.hotelofferlist.DYq8K7Ct.min.js → revolugo.hotelofferlist.Df6mIcIm.min.js} +460 -454
  46. package/dist/revolugo.hotelofferrequestcreator.props.BeQuCTZy.min.js +44 -0
  47. package/dist/revolugo.hoteloffersearchmenu.fP0SPGFx.min.js +202 -0
  48. package/dist/revolugo.hoteloffersearchmenuui.ZCJrqlcB.min.js +829 -0
  49. package/dist/{revolugo.hoteloffersmap.DSsq4XP-.min.js → revolugo.hoteloffersmap.BrQcEn6b.min.js} +4 -4
  50. package/dist/{revolugo.hoteloffersmap.BL2dyzha.min.js → revolugo.hoteloffersmap.D5OO9zxd.min.js} +33 -33
  51. package/dist/{revolugo.hoteloffersview.BGrm1eOU.min.js → revolugo.hoteloffersview.Bsf-pmsP.min.js} +4 -4
  52. package/dist/{revolugo.hoteloffersview.gV8BZDE8.min.js → revolugo.hoteloffersview.Cv_PrU8G.min.js} +48 -49
  53. package/dist/{revolugo.hotelroomofferlist.D4fuEiKU.min.js → revolugo.hotelroomofferlist.DmGesgWE.min.js} +57 -56
  54. package/dist/{revolugo.hotelroomofferlist.BCUPuDy5.min.js → revolugo.hotelroomofferlist.qwZmdThC.min.js} +4 -4
  55. package/dist/{revolugo.hotelroomofferrequestcreator.props.Dv34pWYy.min.js → revolugo.hotelroomofferrequestcreator.props.D_X7on-H.min.js} +2 -2
  56. package/dist/{revolugo.hotelroomoffersbookingflow.MX7B4HS4.min.js → revolugo.hotelroomoffersbookingflow.CZclRz_J.min.js} +33 -33
  57. package/dist/{revolugo.hotelroomoffersearchmenu.D4ClroPA.min.js → revolugo.hotelroomoffersearchmenu.BP5KuNq8.min.js} +21 -20
  58. package/dist/{revolugo.hotelroomoffersearchmenu.D08ut6Wr.min.js → revolugo.hotelroomoffersearchmenu.DAxG-xqw.min.js} +5 -5
  59. package/dist/{revolugo.hotelroomoffersview.B-v9bQrO.min.js → revolugo.hotelroomoffersview.BgByzQq6.min.js} +12 -12
  60. package/dist/{revolugo.hotelroomoffersview.Cw2QLEZr.min.js → revolugo.hotelroomoffersview.D9gjWnIZ.min.js} +4 -4
  61. package/dist/revolugo.index.Bds6iekQ.min.js +67 -0
  62. package/dist/{revolugo.index.Bv92K2Ye.min.js → revolugo.index.Jxvf1PFa.min.js} +71 -71
  63. package/dist/{revolugo.index.wc.B0qizvXE.min.js → revolugo.index.wc.CwyY7Qwx.min.js} +5172 -5082
  64. package/dist/{revolugo.langpicker.BdYeJHS7.min.js → revolugo.langpicker.D6xDoW3U.min.js} +12 -12
  65. package/dist/{revolugo.langpickerbtn.B8zEJnmF.min.js → revolugo.langpickerbtn.HH5zReNp.min.js} +10 -10
  66. package/dist/{revolugo.langpickerbtn.DkfWevjb.min.js → revolugo.langpickerbtn.Hnk_6Ibc.min.js} +4 -4
  67. package/dist/revolugo.min.js +1 -1
  68. package/dist/revolugo.pathify.BVUhMr3Z.min.js +36 -0
  69. package/dist/{revolugo.prebookform.BhwJWvTS.min.js → revolugo.prebookform.Dog7HcLu.min.js} +21 -21
  70. package/dist/{revolugo.prebookform.Dt8Xq1UF.min.js → revolugo.prebookform.Dv7SgXnU.min.js} +4 -4
  71. package/dist/{revolugo.roominglisteditor.uWkpBxvd.min.js → revolugo.roominglisteditor.BLvTUiYr.min.js} +9 -9
  72. package/dist/{revolugo.roominglisteditor.D5FNAQom.min.js → revolugo.roominglisteditor.Bk2lIs5I.min.js} +4 -4
  73. package/dist/{revolugo.rounded.D6QsXHPb.min.js → revolugo.rounded.Cqycgkgu.min.js} +2 -2
  74. package/dist/{revolugo.ssrboot._seCU8hc.min.js → revolugo.ssrboot.d_lNFEaA.min.js} +4 -4
  75. package/dist/{revolugo.storybooktoolbar.Dr0gID6q.min.js → revolugo.storybooktoolbar.Cry8rOs6.min.js} +107 -108
  76. package/dist/{revolugo.termsandconditions.BWJftZCJ.min.js → revolugo.termsandconditions.B4cJPs4z.min.js} +4 -4
  77. package/dist/{revolugo.termsandconditions.DWwdFEEM.min.js → revolugo.termsandconditions.CP39qReJ.min.js} +4 -4
  78. package/dist/{revolugo.use-breakpoint-service.DcFKehRh.min.js → revolugo.use-breakpoint-service.T4GTT5bW.min.js} +3 -3
  79. package/dist/{revolugo.use-dialog-attach.Cu1mmZwk.min.js → revolugo.use-dialog-attach.tpY0trN9.min.js} +3 -3
  80. package/dist/revolugo.use-html-element.n0V_T8SX.min.js +11 -0
  81. package/dist/{revolugo.vautocomplete.BQCHxH2B.min.js → revolugo.vautocomplete.0LoBsyoD.min.js} +68 -68
  82. package/dist/{revolugo.vbadge.rFVXHHsE.min.js → revolugo.vbadge.BIu8Bf7n.min.js} +21 -21
  83. package/dist/{revolugo.vbtn.z2Nv2s_A.min.js → revolugo.vbtn.a6WFz1Bp.min.js} +44 -44
  84. package/dist/{revolugo.vcard.CqvpQb0V.min.js → revolugo.vcard.N_Wac83X.min.js} +30 -30
  85. package/dist/{revolugo.vcheckboxbtn.CIrc7Wp1.min.js → revolugo.vcheckboxbtn.CllPJG2d.min.js} +62 -62
  86. package/dist/{revolugo.vdialog.Ct2ri8RU.min.js → revolugo.vdialog.CkGXysfq.min.js} +15 -15
  87. package/dist/{revolugo.vdivider.DswPwlPP.min.js → revolugo.vdivider.BdexbeXk.min.js} +8 -8
  88. package/dist/{revolugo.vexpansionpanels.YyEBCJNN.min.js → revolugo.vexpansionpanels.JpHsjrqt.min.js} +33 -33
  89. package/dist/{revolugo.vform.B4SOVz4C.min.js → revolugo.vform.Dt5OkLsK.min.js} +10 -10
  90. package/dist/{revolugo.vicon.DxyPKaIP.min.js → revolugo.vicon.Xwi5lUjX.min.js} +21 -21
  91. package/dist/{revolugo.vinput.JVdEYSkJ.min.js → revolugo.vinput.CD7lhK2w.min.js} +57 -57
  92. package/dist/{revolugo.vlabel.9R__MfVL.min.js → revolugo.vlabel.DiCV_YS8.min.js} +3 -3
  93. package/dist/{revolugo.vlist.Cys3PIO8.min.js → revolugo.vlist.DC7UsAn1.min.js} +36 -36
  94. package/dist/{revolugo.vmenu.BdoJ6DB5.min.js → revolugo.vmenu.DQ3XhScv.min.js} +26 -26
  95. package/dist/{revolugo.vselect.CZ2KGl2h.min.js → revolugo.vselect.BSFUUjXr.min.js} +50 -50
  96. package/dist/{revolugo.vsheet.CtMgmHlk.min.js → revolugo.vsheet.X1hpR7Ic.min.js} +16 -16
  97. package/dist/{revolugo.vskeletonloader.C7hmbjSV.min.js → revolugo.vskeletonloader.JJ0gYYv-.min.js} +9 -9
  98. package/dist/{revolugo.vslidegroup.dHznmG62.min.js → revolugo.vslidegroup.BiNeZDPG.min.js} +52 -52
  99. package/dist/{revolugo.vsnackbar.DLo2YKIP.min.js → revolugo.vsnackbar.CYzYDlHW.min.js} +19 -19
  100. package/dist/revolugo.vspacer.nsVoXvJE.min.js +7 -0
  101. package/dist/{revolugo.vtextarea.CQJ0M6wH.min.js → revolugo.vtextarea.D_NTkzBX.min.js} +28 -28
  102. package/dist/{revolugo.vtextfield.UPzgmfaI.min.js → revolugo.vtextfield.DkSiBN62.min.js} +63 -63
  103. package/dist/{revolugo.vtoolbar.B5MVJuVl.min.js → revolugo.vtoolbar.CsEhs-Fl.min.js} +22 -22
  104. package/dist/{revolugo.vtooltip.C5jWcj_9.min.js → revolugo.vtooltip.DbyAYfTV.min.js} +9 -9
  105. package/dist/{revolugo.vwindowitem.QqHY3FYk.min.js → revolugo.vwindowitem.bEXafVUE.min.js} +32 -32
  106. package/dist/{revolugo.watch-list.Z34YwPPD.min.js → revolugo.watch-list.BSfnSWtB.min.js} +2 -2
  107. package/dist/{revolugo.webcomponentwrapper.r7aHwfWr.min.js → revolugo.webcomponentwrapper.BA74s5EB.min.js} +172 -172
  108. package/package.json +1 -1
  109. package/dist/css/revolugo.bhotelsearchbar.Bl5_UFe8.css +0 -1
  110. package/dist/css/revolugo.hoteloffersview.CL1wiz4I.css +0 -1
  111. package/dist/revolugo.bhotelsearchbar.kzKlxvh9.min.js +0 -944
  112. package/dist/revolugo.defaultsdeep.D8dmkJFl.min.js +0 -104
  113. package/dist/revolugo.hotelofferrequestcreator.CG7emkhL.min.js +0 -231
  114. package/dist/revolugo.hoteloffersearchmenu.DgYbtckm.min.js +0 -47
  115. package/dist/revolugo.pathify.CF3DF_XP.min.js +0 -58
  116. package/dist/revolugo.use-html-element.DgyiCLuP.min.js +0 -11
  117. package/dist/revolugo.vspacer.DxNikbPN.min.js +0 -7
@@ -1,944 +0,0 @@
1
- import { d as y, b as w, u as _, q as I, i as v, a as s, w as n, c as p, g as M, r as B, D as F, e as c, f as h, t as i, o as l, k as S, H as Z, V as W, J as x, B as L, F as N, j as tt } from "./revolugo.index.wc.B0qizvXE.min.js";
2
- import { s as O } from "./revolugo.pathify.CF3DF_XP.min.js";
3
- import { B as et } from "./revolugo.bdaterangepicker.CFyhGruk.min.js";
4
- import { d as z } from "./revolugo.dialog-attach.DpGIwuG0.min.js";
5
- import { _ as U, C as nt, V as $, a as C } from "./revolugo.webcomponentwrapper.r7aHwfWr.min.js";
6
- import { a as g } from "./revolugo.vbtn.z2Nv2s_A.min.js";
7
- import { V } from "./revolugo.vicon.DxyPKaIP.min.js";
8
- import { V as st } from "./revolugo.vbadge.rFVXHHsE.min.js";
9
- import { V as q } from "./revolugo.vmenu.BdoJ6DB5.min.js";
10
- import { V as Y, b as at } from "./revolugo.vcard.CqvpQb0V.min.js";
11
- import { a as ot, V as R, b as E } from "./revolugo.vlist.Cys3PIO8.min.js";
12
- import { V as it } from "./revolugo.vinput.JVdEYSkJ.min.js";
13
- import { V as lt } from "./revolugo.vspacer.DxNikbPN.min.js";
14
- import { V as ut } from "./revolugo.vform.B4SOVz4C.min.js";
15
- import { V as rt } from "./revolugo.index.Bv92K2Ye.min.js";
16
- function Q(t) {
17
- try {
18
- if (typeof document < "u") {
19
- window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
20
- sheets: [],
21
- components: []
22
- };
23
- const e = import.meta.url, o = e.slice(0, e.lastIndexOf("/") + 1) + t;
24
- window.REVOLUGO_ELEMENTS_STYLES.sheets.push(o);
25
- for (const u of REVOLUGO_ELEMENTS_STYLES.components)
26
- u(o);
27
- if (t.indexOf("fonts") >= 0) {
28
- const u = document.createElement("link");
29
- u.rel = "stylesheet", linK.href = o, document.head.appendChild(u);
30
- }
31
- }
32
- } catch (e) {
33
- console.error("[revolugo-elements] ", e);
34
- }
35
- }
36
- const dt = {
37
- modelValue: {
38
- type: Array
39
- }
40
- }, H = y({
41
- components: {
42
- BDateRangePicker: et
43
- },
44
- computed: {
45
- nightCount() {
46
- return !this.model || this.model.length < 2 ? 0 : I(this.model[1]).diff(I(this.model[0]), "day");
47
- },
48
- readableDateRange() {
49
- return this.model && this.model.map(
50
- (t) => I(t).toDate().toLocaleString(this.$i18n.locale, {
51
- day: "2-digit",
52
- month: "short",
53
- weekday: "short",
54
- year: "numeric"
55
- })
56
- );
57
- },
58
- today() {
59
- return I().format("YYYY-MM-DD");
60
- }
61
- },
62
- data() {
63
- return {
64
- isMenuOpen: !1,
65
- model: this.modelValue
66
- };
67
- },
68
- methods: {
69
- dateRangeUpdated() {
70
- this.isMenuOpen = !1, this.$emit("update:modelValue", this.model);
71
- }
72
- },
73
- mixins: [w, z],
74
- name: "DateRangePickerMenu",
75
- props: dt,
76
- setup() {
77
- const { t } = _();
78
- return {
79
- t
80
- };
81
- },
82
- watch: {
83
- model() {
84
- this.dateRangeUpdated();
85
- },
86
- modelValue: {
87
- deep: !0,
88
- handler(t) {
89
- t && (this.model = O(t[0], t[1]));
90
- },
91
- immediate: !0
92
- }
93
- }
94
- });
95
- function G(t) {
96
- const e = t;
97
- e.__i18n = e.__i18n || [], e.__i18n.push({
98
- locale: "",
99
- resource: {
100
- "en-US": {
101
- BDateRangePickerMenu: {
102
- checkIn: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Check-in" } },
103
- checkOut: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Check-out" } },
104
- date: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Dates" } },
105
- nights: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "night" }, { t: 2, i: [{ t: 3 }], s: "nights" }] } },
106
- traveler: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Travelers" } },
107
- room: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Rooms" } }
108
- }
109
- },
110
- "fr-FR": {
111
- BDateRangePickerMenu: {
112
- checkIn: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Arrivée" } },
113
- checkOut: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Départ" } },
114
- date: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Dates" } },
115
- nights: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "nuit" }, { t: 2, i: [{ t: 3 }], s: "nuits" }] } },
116
- traveler: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Voyageurs" } },
117
- room: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Chambres" } }
118
- }
119
- },
120
- "de-DE": {
121
- BDateRangePickerMenu: {
122
- checkIn: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Check-in" } },
123
- checkOut: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Check-out" } },
124
- date: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Daten" } },
125
- nights: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Nacht" }, { t: 2, i: [{ t: 3 }], s: "Nächte" }] } },
126
- traveler: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Reisende" } },
127
- room: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Zimmer" } }
128
- }
129
- },
130
- "es-ES": {
131
- BDateRangePickerMenu: {
132
- checkIn: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Entrada" } },
133
- checkOut: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Salida" } },
134
- date: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Fechas" } },
135
- nights: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "noche" }, { t: 2, i: [{ t: 3 }], s: "noches" }] } },
136
- traveler: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Viajeros" } },
137
- room: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Habitaciones" } }
138
- }
139
- },
140
- "it-IT": {
141
- BDateRangePickerMenu: {
142
- checkIn: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Check-in" } },
143
- checkOut: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Check-out" } },
144
- date: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Date" } },
145
- nights: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "notte" }, { t: 2, i: [{ t: 3 }], s: "notti" }] } },
146
- traveler: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Viaggiatori" } },
147
- room: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Camere" } }
148
- }
149
- },
150
- "nl-NL": {
151
- BDateRangePickerMenu: {
152
- checkIn: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Check-in" } },
153
- checkOut: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Check-out" } },
154
- date: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Datums" } },
155
- nights: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "nacht" }, { t: 2, i: [{ t: 3 }], s: "nachten" }] } },
156
- traveler: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Reizigers" } },
157
- room: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Kamers" } }
158
- }
159
- },
160
- "pt-PT": {
161
- BDateRangePickerMenu: {
162
- checkIn: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Check-in" } },
163
- checkOut: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Check-out" } },
164
- date: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Datas" } },
165
- nights: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "noite" }, { t: 2, i: [{ t: 3 }], s: "noites" }] } },
166
- traveler: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Viajantes" } },
167
- room: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Quartos" } }
168
- }
169
- }
170
- }
171
- });
172
- }
173
- function mt(t, e, o, u, m, b) {
174
- const r = B("BDateRangePicker");
175
- return l(), v("div", null, [
176
- s(q, {
177
- modelValue: t.isMenuOpen,
178
- "onUpdate:modelValue": e[1] || (e[1] = (a) => t.isMenuOpen = a),
179
- attach: t.$dialogAttach,
180
- class: "date-range-picker",
181
- "close-on-content-click": !1,
182
- "min-width": t.$breakpointService.xs ? "100%" : "570px"
183
- }, {
184
- activator: n(({ props: a }) => [
185
- s(g, F(a, {
186
- color: "primary",
187
- "data-cy": "b-date-range-picker-btn",
188
- "data-attr": "b-date-range-picker-btn",
189
- elevation: "0",
190
- "min-width": "100%",
191
- size: "small"
192
- }), {
193
- default: n(() => [
194
- s(V, { class: "pr-1" }, {
195
- default: n(() => e[2] || (e[2] = [
196
- h(" fas fa-calendar-days ")
197
- ])),
198
- _: 1,
199
- __: [2]
200
- }),
201
- c("b", null, i(t.readableDateRange && t.readableDateRange[0] || t.t("BDateRangePickerMenu.checkIn")), 1),
202
- s(V, { class: "mx-1" }, {
203
- default: n(() => e[3] || (e[3] = [
204
- h(" fas fa-long-arrow-alt-right ")
205
- ])),
206
- _: 1,
207
- __: [3]
208
- }),
209
- s(st, {
210
- bordered: "",
211
- color: "secondary",
212
- content: `${t.nightCount} ${t.t("BDateRangePickerMenu.nights", {
213
- n: t.nightCount
214
- })}`,
215
- "offset-x": "0",
216
- "offset-y": "-5",
217
- floating: "",
218
- style: { "z-index": "1" },
219
- "model-value": t.nightCount > 0
220
- }, {
221
- default: n(() => [
222
- c("b", null, i(t.readableDateRange && t.readableDateRange[1] || t.t("BDateRangePickerMenu.checkOut")), 1)
223
- ]),
224
- _: 1
225
- }, 8, ["content", "model-value"])
226
- ]),
227
- _: 2
228
- }, 1040)
229
- ]),
230
- default: n(() => [
231
- t.isMenuOpen ? (l(), p(r, {
232
- key: 0,
233
- modelValue: t.model,
234
- "onUpdate:modelValue": e[0] || (e[0] = (a) => t.model = a),
235
- class: "ma-0"
236
- }, null, 8, ["modelValue"])) : M("", !0)
237
- ]),
238
- _: 1
239
- }, 8, ["modelValue", "attach", "min-width"])
240
- ]);
241
- }
242
- typeof G == "function" && G(H);
243
- const ct = /* @__PURE__ */ U(H, [["render", mt], ["__scopeId", "data-v-f0602770"]]), ht = /\.\d*[09]{10}\d*$/u, P = (t, e = 1e11) => ht.test(String(t)) ? Math.round(t * e) / e : t, pt = { class: "d-flex align-center" }, bt = /* @__PURE__ */ y({
244
- __name: "BNumberInput",
245
- props: {
246
- max: { default: Number.POSITIVE_INFINITY },
247
- min: { default: Number.NEGATIVE_INFINITY },
248
- step: { default: 1 },
249
- modelValue: {}
250
- },
251
- emits: ["update:modelValue"],
252
- setup(t, { emit: e }) {
253
- const o = t, u = e, m = S(), b = S(0), r = S(200), a = Z(
254
- () => `${Math.max(String(o.modelValue).length, 3) + 4}ch`
255
- );
256
- function d() {
257
- u(
258
- "update:modelValue",
259
- P(o.modelValue - o.step)
260
- );
261
- }
262
- function f() {
263
- u(
264
- "update:modelValue",
265
- P(o.modelValue + o.step)
266
- );
267
- }
268
- function A(D) {
269
- m.value = window.setInterval(() => {
270
- D(), b.value += r.value, b.value > 1e3 && (m.value && clearInterval(m.value), m.value = void 0, r.value /= 2, b.value = 0, A(D));
271
- }, r.value);
272
- }
273
- function k() {
274
- m.value && clearInterval(m.value), m.value = void 0, r.value = 200, b.value = 0;
275
- }
276
- function X() {
277
- f(), A(() => {
278
- f();
279
- });
280
- }
281
- function J() {
282
- d(), A(() => {
283
- d();
284
- });
285
- }
286
- return (D, _t) => (l(), v("div", pt, [
287
- s(g, {
288
- color: "primary",
289
- disabled: o.modelValue === o.min,
290
- elevation: "0",
291
- icon: "",
292
- variant: "outlined",
293
- size: "x-small",
294
- onMousedown: J,
295
- onMouseout: k,
296
- onMouseup: k
297
- }, {
298
- default: n(() => [
299
- s(V, { icon: "fas fa-minus" })
300
- ]),
301
- _: 1
302
- }, 8, ["disabled"]),
303
- c("b", {
304
- class: "text-primary px-4 text-center",
305
- style: W({
306
- width: a.value
307
- })
308
- }, i(o.modelValue), 5),
309
- s(g, {
310
- color: "primary",
311
- disabled: o.modelValue === o.max,
312
- elevation: "0",
313
- icon: "",
314
- variant: "outlined",
315
- size: "x-small",
316
- onMousedown: X,
317
- onMouseout: k,
318
- onMouseup: k
319
- }, {
320
- default: n(() => [
321
- s(V, { icon: "fas fa-plus" })
322
- ]),
323
- _: 1
324
- }, 8, ["disabled"])
325
- ]));
326
- }
327
- }), ft = 200, gt = 200, Ct = 5, vt = 200, T = 4, Vt = {
328
- maxAdultCount: {
329
- default: ft,
330
- type: Number
331
- },
332
- maxChildCount: {
333
- default: gt,
334
- type: Number
335
- },
336
- maxRoomCount: {
337
- default: vt,
338
- type: Number
339
- },
340
- modelValue: { type: Object }
341
- }, kt = /^(?:[0-9]|0[1-9]|1[0-7])(,(?:[1-9]|0[1-9]|1[0-7]))*,*$/u, K = y({
342
- components: {
343
- BNumberInput: bt
344
- },
345
- computed: {
346
- adultCountRange() {
347
- return [
348
- this.roomCount,
349
- Math.min(this.maxAdultCount, this.roomCount * T)
350
- ];
351
- },
352
- childCount: {
353
- get() {
354
- return this.childrenFormatted.length;
355
- },
356
- set(t) {
357
- this.children = t > this.childrenFormatted.length ? [...this.childrenFormatted, -1].join(",") : this.childrenFormatted.slice(0, -1).join(",");
358
- }
359
- },
360
- childCountRange() {
361
- return [0, this.adultCount * Ct];
362
- },
363
- childrenFormatted: {
364
- get() {
365
- return this.children?.length ? this.children.split(",").map(Number) : [];
366
- },
367
- set(t) {
368
- this.children = t.join(",");
369
- }
370
- },
371
- childrenSelectOptions() {
372
- return Array.from({ length: 18 }, (t, e) => ({
373
- text: e === 0 ? this.t("BGuestsInputs.under12months").toString() : `${e} ${this.t("BGuestsInputs.age", { n: e })}`,
374
- value: e
375
- }));
376
- },
377
- roomCountRange() {
378
- return [
379
- Math.ceil(this.adultCount / T),
380
- Math.min(this.maxRoomCount, this.adultCount)
381
- ];
382
- }
383
- },
384
- data() {
385
- return {
386
- adultCount: this.modelValue?.adultCount ?? 1,
387
- children: this.modelValue?.children ?? null,
388
- childrenRules: [(t) => t > -1],
389
- isMenuOpen: !1,
390
- previousState: {
391
- adultCount: this.modelValue?.adultCount ?? 1,
392
- children: this.modelValue?.children ?? null,
393
- roomCount: this.modelValue?.roomCount ?? 1
394
- },
395
- roomCount: this.modelValue?.roomCount ?? 1,
396
- valid: !1
397
- };
398
- },
399
- methods: {
400
- adultCountUpdated(t) {
401
- this.adultCount = t, this.roomCount = Math.min(
402
- Math.max(this.roomCount, this.roomCountRange[0]),
403
- this.roomCountRange[1]
404
- );
405
- },
406
- emitValue() {
407
- this.$emit("update:modelValue", {
408
- adultCount: this.adultCount,
409
- children: this.children,
410
- roomCount: this.roomCount
411
- });
412
- },
413
- onCancel(t) {
414
- this.adultCount = this.previousState.adultCount, this.children = this.previousState.children, this.roomCount = this.previousState.roomCount, t === !0 && (this.isMenuOpen = !1);
415
- },
416
- onChildAgeUpdate(t, e) {
417
- const o = t.target, u = Number(o.value);
418
- this.childrenFormatted = [
419
- ...this.childrenFormatted.slice(0, e),
420
- u,
421
- ...this.childrenFormatted.slice(e + 1)
422
- ];
423
- },
424
- onSave() {
425
- this.$refs.form?.validate() && (this.previousState = {
426
- adultCount: this.adultCount,
427
- children: this.children,
428
- roomCount: this.roomCount
429
- }, this.emitValue(), this.isMenuOpen = !1);
430
- },
431
- roomCountUpdated(t) {
432
- this.roomCount = t, this.adultCount = Math.min(
433
- Math.max(this.adultCount, this.adultCountRange[0]),
434
- this.adultCountRange[1]
435
- );
436
- }
437
- },
438
- mixins: [w, z],
439
- name: "BGuestsInputs",
440
- props: Vt,
441
- setup() {
442
- const { t } = _();
443
- return {
444
- t
445
- };
446
- },
447
- watch: {
448
- isMenuOpen(t) {
449
- t === !1 ? this.emitValue() : this.previousState = {
450
- adultCount: this.adultCount,
451
- children: this.children,
452
- roomCount: this.roomCount
453
- };
454
- },
455
- modelValue: {
456
- deep: !0,
457
- handler(t, e) {
458
- t && (t.children && kt.test(t.children) ? (this.children = t.children.replace(/(^,*)|(,*$)/gu, ""), this.childrenFormatted.length > this.childCountRange[1] && (this.children = this.childrenFormatted.slice(this.childCountRange[1]).join(","))) : this.children = null, t.adultCount && (!e || t.adultCount !== e.adultCount) ? (this.adultCount = Math.min(t.adultCount, this.maxAdultCount), this.roomCount = Math.min(
459
- Math.max(t.roomCount || 0, this.roomCountRange[0]),
460
- this.roomCountRange[1]
461
- )) : t.roomCount && (!e || t.roomCount !== e.roomCount) && (this.roomCount = Math.min(t.roomCount, this.maxRoomCount), this.adultCount = Math.min(
462
- Math.max(t.adultCount || 0, this.adultCountRange[0]),
463
- this.adultCountRange[1]
464
- )), this.emitValue());
465
- },
466
- immediate: !0
467
- }
468
- }
469
- });
470
- function j(t) {
471
- const e = t;
472
- e.__i18n = e.__i18n || [], e.__i18n.push({
473
- locale: "",
474
- resource: {
475
- "en-US": {
476
- BGuestsInputs: {
477
- age: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "year old" }, { t: 2, i: [{ t: 3 }], s: "years old" }] } },
478
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Cancel" } },
479
- children: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Child" }, { t: 2, i: [{ t: 3 }], s: "Children" }] } },
480
- childrenAgeRange: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ages 0 - 17" } },
481
- childrenLabel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "To find a place to stay that fits your entire group along with correct prices, we need to know how old your children will be at check-out." } },
482
- requiredChildAge: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Age required" } },
483
- rooms: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Room" }, { t: 2, i: [{ t: 3 }], s: "Rooms" }] } },
484
- save: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Save" } },
485
- travelers: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Adult" }, { t: 2, i: [{ t: 3 }], s: "Adults" }] } },
486
- under12months: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Under 12 months" } }
487
- }
488
- },
489
- "fr-FR": {
490
- BGuestsInputs: {
491
- age: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "an" }, { t: 2, i: [{ t: 3 }], s: "ans" }] } },
492
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Annuler" } },
493
- children: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Enfant" }, { t: 2, i: [{ t: 3 }], s: "Enfant" }, { t: 2, i: [{ t: 3 }], s: "Enfants" }] } },
494
- childrenAgeRange: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "De 0 à 17 ans" } },
495
- childrenLabel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pour trouver un hébergement pouvant accueillir votre groupe et afficher les bons tarifs, nous avons besoin de connaître l'âge qu'auront vos enfants à la fin du séjour." } },
496
- requiredChildAge: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Age requis" } },
497
- rooms: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Chambre" }, { t: 2, i: [{ t: 3 }], s: "Chambres" }] } },
498
- save: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Enregistrer" } },
499
- travelers: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Adulte" }, { t: 2, i: [{ t: 3 }], s: "Adultes" }] } },
500
- under12months: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Moins de 12 mois" } }
501
- }
502
- },
503
- "de-DE": {
504
- BGuestsInputs: {
505
- age: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Jahr alt" }, { t: 2, i: [{ t: 3 }], s: "Jahre alt" }] } },
506
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Abbrechen" } },
507
- children: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Kind" }, { t: 2, i: [{ t: 3 }], s: "Kinder" }] } },
508
- childrenAgeRange: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Alter 0 - 17" } },
509
- childrenLabel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Um eine Unterkunft zu finden, die für Ihre gesamte Gruppe geeignet ist und die korrekten Preise anzeigt, müssen wir wissen, wie alt Ihre Kinder beim Check-out sein werden." } },
510
- requiredChildAge: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Alter erforderlich" } },
511
- rooms: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Zimmer" }, { t: 2, i: [{ t: 3 }], s: "Zimmer" }] } },
512
- save: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Speichern" } },
513
- travelers: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Erwachsener" }, { t: 2, i: [{ t: 3 }], s: "Erwachsene" }] } },
514
- under12months: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Unter 12 Monate" } }
515
- }
516
- },
517
- "es-ES": {
518
- BGuestsInputs: {
519
- age: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "año" }, { t: 2, i: [{ t: 3 }], s: "años" }] } },
520
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Cancelar" } },
521
- children: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Niño" }, { t: 2, i: [{ t: 3 }], s: "Niños" }] } },
522
- childrenAgeRange: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Edades de 0 a 17" } },
523
- childrenLabel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Para encontrar un alojamiento que se adapte a todo tu grupo y mostrar los precios correctos, necesitamos saber cuántos años tendrán tus hijos al hacer el check-out." } },
524
- requiredChildAge: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Edad requerida" } },
525
- rooms: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Habitación" }, { t: 2, i: [{ t: 3 }], s: "Habitaciones" }] } },
526
- save: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Guardar" } },
527
- travelers: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Adulto" }, { t: 2, i: [{ t: 3 }], s: "Adultos" }] } },
528
- under12months: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Menos de 12 meses" } }
529
- }
530
- },
531
- "it-IT": {
532
- BGuestsInputs: {
533
- age: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "anno" }, { t: 2, i: [{ t: 3 }], s: "anni" }] } },
534
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Annulla" } },
535
- children: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Bambino" }, { t: 2, i: [{ t: 3 }], s: "Bambini" }] } },
536
- childrenAgeRange: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Età 0 - 17" } },
537
- childrenLabel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Per trovare un alloggio adatto a tutto il tuo gruppo e visualizzare i prezzi corretti, dobbiamo sapere quanti anni avranno i tuoi figli al momento del check-out." } },
538
- requiredChildAge: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Età richiesta" } },
539
- rooms: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Camera" }, { t: 2, i: [{ t: 3 }], s: "Camere" }] } },
540
- save: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Salva" } },
541
- travelers: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Adulto" }, { t: 2, i: [{ t: 3 }], s: "Adulti" }] } },
542
- under12months: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Meno di 12 mesi" } }
543
- }
544
- },
545
- "nl-NL": {
546
- BGuestsInputs: {
547
- age: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "jaar oud" }, { t: 2, i: [{ t: 3 }], s: "jaren oud" }] } },
548
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Annuleren" } },
549
- children: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Kind" }, { t: 2, i: [{ t: 3 }], s: "Kinderen" }] } },
550
- childrenAgeRange: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Leeftijd 0 - 17" } },
551
- childrenLabel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Om een verblijfplaats te vinden die geschikt is voor uw hele groep en de juiste prijzen weergeeft, moeten we weten hoe oud uw kinderen zijn bij het uitchecken." } },
552
- requiredChildAge: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Leeftijd vereist" } },
553
- rooms: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Kamer" }, { t: 2, i: [{ t: 3 }], s: "Kamers" }] } },
554
- save: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Opslaan" } },
555
- travelers: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Volwassene" }, { t: 2, i: [{ t: 3 }], s: "Volwassenen" }] } },
556
- under12months: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Jonger dan 12 maanden" } }
557
- }
558
- },
559
- "pt-PT": {
560
- BGuestsInputs: {
561
- age: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "ano" }, { t: 2, i: [{ t: 3 }], s: "anos" }] } },
562
- cancel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Cancelar" } },
563
- children: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Criança" }, { t: 2, i: [{ t: 3 }], s: "Crianças" }] } },
564
- childrenAgeRange: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Idades 0 - 17" } },
565
- childrenLabel: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Para encontrar um alojamento adequado a todo o seu grupo e apresentar os preços corretos, precisamos de saber quantos anos terão os seus filhos no check-out." } },
566
- requiredChildAge: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Idade obrigatória" } },
567
- rooms: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Quarto" }, { t: 2, i: [{ t: 3 }], s: "Quartos" }] } },
568
- save: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Guardar" } },
569
- travelers: { t: 0, b: { t: 1, c: [{ t: 2, i: [{ t: 3 }], s: "Adulto" }, { t: 2, i: [{ t: 3 }], s: "Adultos" }] } },
570
- under12months: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Menos de 12 meses" } }
571
- }
572
- }
573
- }
574
- });
575
- }
576
- const It = { class: "d-flex align-center" }, Rt = { class: "d-flex align-center" }, Mt = { class: "d-block text-caption" }, Bt = ["value", "onInput"], yt = {
577
- value: "-1",
578
- disabled: "",
579
- selected: ""
580
- }, At = ["value"], Dt = { class: "d-flex align-center" };
581
- function St(t, e, o, u, m, b) {
582
- const r = B("BNumberInput");
583
- return l(), p(q, {
584
- modelValue: t.isMenuOpen,
585
- "onUpdate:modelValue": e[5] || (e[5] = (a) => t.isMenuOpen = a),
586
- attach: t.$dialogAttach,
587
- "close-on-content-click": !1,
588
- "max-width": t.$breakpointService.xs ? "100%" : "340px",
589
- "min-width": t.$breakpointService.xs ? "100%" : "340px",
590
- "offset-y": ""
591
- }, {
592
- activator: n(({ props: a }) => [
593
- s(g, F(a, {
594
- block: "",
595
- color: "primary",
596
- "data-cy": "b-guests-inputs-button",
597
- "data-attr": "b-guests-inputs-button",
598
- elevation: "0",
599
- size: "small"
600
- }), {
601
- default: n(() => [
602
- s(V, {
603
- class: "pr-2",
604
- style: "font-size: 12px;"
605
- }, {
606
- default: n(() => e[6] || (e[6] = [
607
- h(" fas fa-user ")
608
- ])),
609
- _: 1,
610
- __: [6]
611
- }),
612
- c("b", null, i(t.adultCount) + " " + i(t.t("BGuestsInputs.travelers", { n: t.adultCount })) + "   |    " + i(t.childCount) + " " + i(t.t("BGuestsInputs.children", { n: t.childCount })) + "   |    " + i(t.roomCount) + " " + i(t.t("BGuestsInputs.rooms", { n: t.roomCount })), 1)
613
- ]),
614
- _: 2
615
- }, 1040)
616
- ]),
617
- default: n(() => [
618
- x((l(), p(Y, { elevation: "1" }, {
619
- default: n(() => [
620
- s(ut, {
621
- ref: "form",
622
- modelValue: t.valid,
623
- "onUpdate:modelValue": e[4] || (e[4] = (a) => t.valid = a)
624
- }, {
625
- default: n(() => [
626
- s(ot, { density: "compact" }, {
627
- default: n(() => [
628
- s(R, { "data-cy": "adult-count-input" }, {
629
- default: n(() => [
630
- c("div", It, [
631
- s(E, { class: "font-weight-medium" }, {
632
- default: n(() => [
633
- h(i(t.t("BGuestsInputs.travelers", { n: 2 })), 1)
634
- ]),
635
- _: 1
636
- }),
637
- s(r, {
638
- class: "ml-auto",
639
- modelValue: t.adultCount,
640
- "onUpdate:modelValue": [
641
- e[0] || (e[0] = (a) => t.adultCount = a),
642
- t.adultCountUpdated
643
- ],
644
- "data-cy": "b-guests-inputs-adult-count-input",
645
- "data-attr": "b-guests-inputs-adult-count-input",
646
- max: t.maxAdultCount,
647
- min: 1
648
- }, null, 8, ["modelValue", "max", "onUpdate:modelValue"])
649
- ])
650
- ]),
651
- _: 1
652
- }),
653
- s(R, {
654
- class: "mt-2",
655
- "data-cy": "children-count-input"
656
- }, {
657
- default: n(() => [
658
- c("div", Rt, [
659
- s(E, { class: "font-weight-medium" }, {
660
- default: n(() => [
661
- h(i(t.t("BGuestsInputs.children", { n: 2 })) + " ", 1),
662
- c("span", Mt, i(t.t("BGuestsInputs.childrenAgeRange")), 1)
663
- ]),
664
- _: 1
665
- }),
666
- s(r, {
667
- class: "ml-auto",
668
- modelValue: t.childCount,
669
- "onUpdate:modelValue": e[1] || (e[1] = (a) => t.childCount = a),
670
- "data-cy": "b-guests-inputs-child-count-input",
671
- "data-attr": "b-guests-inputs-child-count-input",
672
- max: t.childCountRange[1],
673
- min: 0
674
- }, null, 8, ["modelValue", "max"])
675
- ])
676
- ]),
677
- _: 1
678
- }),
679
- t.childCount > 0 ? (l(), p(R, { key: 0 }, {
680
- default: n(() => [
681
- s($, { class: "mt-2" }, {
682
- default: n(() => [
683
- (l(!0), v(N, null, L(t.childrenFormatted, (a, d) => (l(), p(C, {
684
- key: d,
685
- class: "pt-0",
686
- cols: "6",
687
- sm: "6"
688
- }, {
689
- default: n(() => [
690
- s(it, {
691
- class: "child-age-input",
692
- "model-value": t.childrenFormatted[d],
693
- rules: t.childrenRules,
694
- "hide-details": ""
695
- }, {
696
- default: n(() => [
697
- c("select", {
698
- class: "child-age-input-select rounded w-full pa-2 text-body-2",
699
- value: t.childrenFormatted[d],
700
- onInput: (f) => t.onChildAgeUpdate(f, d)
701
- }, [
702
- c("option", yt, i(t.t("BGuestsInputs.requiredChildAge")), 1),
703
- (l(!0), v(N, null, L(t.childrenSelectOptions, (f) => (l(), v("option", {
704
- value: f.value
705
- }, i(f.text), 9, At))), 256))
706
- ], 40, Bt)
707
- ]),
708
- _: 2
709
- }, 1032, ["model-value", "rules"])
710
- ]),
711
- _: 2
712
- }, 1024))), 128))
713
- ]),
714
- _: 1
715
- })
716
- ]),
717
- _: 1
718
- })) : M("", !0),
719
- s(R, {
720
- class: "mt-2",
721
- "data-cy": "room-count-input"
722
- }, {
723
- default: n(() => [
724
- c("div", Dt, [
725
- s(E, { class: "font-weight-medium" }, {
726
- default: n(() => [
727
- h(i(t.t("BGuestsInputs.rooms", { n: 2 })), 1)
728
- ]),
729
- _: 1
730
- }),
731
- s(r, {
732
- class: "ml-auto",
733
- modelValue: t.roomCount,
734
- "onUpdate:modelValue": [
735
- e[2] || (e[2] = (a) => t.roomCount = a),
736
- t.roomCountUpdated
737
- ],
738
- "data-cy": "b-guests-inputs-room-count-input",
739
- "data-attr": "b-guests-inputs-room-count-input",
740
- max: t.maxRoomCount,
741
- min: 1
742
- }, null, 8, ["modelValue", "max", "onUpdate:modelValue"])
743
- ])
744
- ]),
745
- _: 1
746
- })
747
- ]),
748
- _: 1
749
- }),
750
- s(at, null, {
751
- default: n(() => [
752
- s(lt),
753
- s(g, {
754
- class: "text-right",
755
- color: "primary",
756
- elevation: "0",
757
- size: "small",
758
- variant: "text",
759
- onClick: e[3] || (e[3] = (a) => t.onCancel(!0))
760
- }, {
761
- default: n(() => [
762
- h(i(t.t("BGuestsInputs.cancel")), 1)
763
- ]),
764
- _: 1
765
- }),
766
- s(g, {
767
- class: "text-right",
768
- color: "primary",
769
- elevation: "0",
770
- size: "small",
771
- onClick: t.onSave
772
- }, {
773
- default: n(() => [
774
- h(i(t.t("BGuestsInputs.save")), 1)
775
- ]),
776
- _: 1
777
- }, 8, ["onClick"])
778
- ]),
779
- _: 1
780
- })
781
- ]),
782
- _: 1
783
- }, 8, ["modelValue"])
784
- ]),
785
- _: 1
786
- })), [
787
- [nt, t.onCancel]
788
- ])
789
- ]),
790
- _: 1
791
- }, 8, ["modelValue", "attach", "max-width", "min-width"]);
792
- }
793
- typeof j == "function" && j(K);
794
- const Et = /* @__PURE__ */ U(K, [["render", St], ["__scopeId", "data-v-bd00fed9"]]), Ot = {
795
- isFetching: { type: Boolean },
796
- loadingBarEnabled: {
797
- default: !0,
798
- type: Boolean
799
- },
800
- modelValue: {
801
- required: !0,
802
- type: Object
803
- },
804
- withBorder: {
805
- default: !1,
806
- type: Boolean
807
- }
808
- }, $t = y({
809
- components: {
810
- BDateRangePickerMenu: ct,
811
- BGuestsInputs: Et
812
- },
813
- computed: {
814
- dateRange: {
815
- get() {
816
- return O(
817
- this.modelValue.checkInDate,
818
- this.modelValue.checkOutDate
819
- );
820
- },
821
- set(t) {
822
- if (t[0] !== this.modelValue.checkInDate || t[1] !== this.modelValue.checkOutDate) {
823
- const [e, o] = O(...t);
824
- this.emitValue({
825
- ...this.modelValue,
826
- checkInDate: e,
827
- checkOutDate: o
828
- });
829
- }
830
- }
831
- },
832
- guestsInputsValue: {
833
- get() {
834
- return {
835
- adultCount: this.modelValue.adultCount,
836
- children: this.modelValue.children,
837
- roomCount: this.modelValue.roomCount
838
- };
839
- },
840
- set(t) {
841
- (t.adultCount !== this.modelValue.adultCount || t.children !== this.modelValue.children || t.roomCount !== this.modelValue.roomCount) && this.emitValue({
842
- ...this.modelValue,
843
- adultCount: t.adultCount,
844
- children: t.children,
845
- roomCount: t.roomCount
846
- });
847
- }
848
- }
849
- },
850
- methods: {
851
- emitValue(t) {
852
- this.$emit("update:modelValue", t);
853
- }
854
- },
855
- mixins: [w],
856
- name: "HotelSearchBar",
857
- props: Ot,
858
- setup() {
859
- const { t } = _();
860
- return {
861
- t
862
- };
863
- }
864
- });
865
- function wt(t, e, o, u, m, b) {
866
- const r = B("BDateRangePickerMenu"), a = B("BGuestsInputs");
867
- return l(), p(Y, {
868
- class: "pa-0",
869
- color: "transparent",
870
- elevation: "0",
871
- style: {
872
- overflow: "visible"
873
- }
874
- }, {
875
- default: n(() => [
876
- s($, { dense: "" }, {
877
- default: n(() => [
878
- s(C, {
879
- "align-self": "end",
880
- cols: "12",
881
- sm: "6"
882
- }, {
883
- default: n(() => [
884
- s(r, {
885
- modelValue: t.dateRange,
886
- "onUpdate:modelValue": e[0] || (e[0] = (d) => t.dateRange = d)
887
- }, null, 8, ["modelValue"])
888
- ]),
889
- _: 1
890
- }),
891
- s(C, {
892
- "align-self": "end",
893
- cols: "12",
894
- sm: t.$slots.after ? "5" : "6"
895
- }, {
896
- default: n(() => [
897
- s(a, {
898
- modelValue: t.guestsInputsValue,
899
- "onUpdate:modelValue": e[1] || (e[1] = (d) => t.guestsInputsValue = d)
900
- }, null, 8, ["modelValue"])
901
- ]),
902
- _: 1
903
- }, 8, ["sm"]),
904
- t.$slots.after ? (l(), p(C, {
905
- key: 0,
906
- class: "text-right",
907
- cols: "1"
908
- }, {
909
- default: n(() => [
910
- tt(t.$slots, "after", {}, void 0, !0)
911
- ]),
912
- _: 3
913
- })) : M("", !0)
914
- ]),
915
- _: 3
916
- }),
917
- s($, { "no-gutters": "" }, {
918
- default: n(() => [
919
- s(C, {
920
- cols: "12",
921
- sm: t.$slots.after ? "11" : "12"
922
- }, {
923
- default: n(() => [
924
- t.loadingBarEnabled && t.isFetching ? (l(), p(rt, {
925
- key: 0,
926
- color: "secondary",
927
- indeterminate: ""
928
- })) : M("", !0)
929
- ]),
930
- _: 1
931
- }, 8, ["sm"])
932
- ]),
933
- _: 1
934
- })
935
- ]),
936
- _: 3
937
- });
938
- }
939
- const Qt = /* @__PURE__ */ U($t, [["render", wt], ["__scopeId", "data-v-56630038"]]);
940
- Q("css/revolugo.bhotelsearchbar.Bl5_UFe8.css");
941
- export {
942
- Qt as B
943
- };
944
- //# sourceMappingURL=revolugo.bhotelsearchbar.kzKlxvh9.min.js.map