@konnectio/core 4.0.5 → 4.0.7

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 (197) hide show
  1. package/dist/{ActionField-0c047379.mjs → ActionField-5ecfc9dc.js} +26 -28
  2. package/dist/ActionField-5ecfc9dc.js.br +0 -0
  3. package/dist/ActionField-ae9b1adf.cjs +1 -0
  4. package/dist/HotelAvailabilityForm-0cd1abda.cjs +1 -0
  5. package/dist/{HotelAvailabilityForm-29f12395.mjs → HotelAvailabilityForm-a7b6f17e.js} +23 -25
  6. package/dist/HotelAvailabilityForm-a7b6f17e.js.br +0 -0
  7. package/dist/NumberField.vue_vue_type_style_index_0_lang-0b6d48f1.cjs +793 -0
  8. package/dist/NumberField.vue_vue_type_style_index_0_lang-ab747739.js +16403 -0
  9. package/dist/NumberField.vue_vue_type_style_index_0_lang-ab747739.js.br +0 -0
  10. package/dist/{ReCaptchaVuePlugin-616ef9b9.mjs → ReCaptchaVuePlugin-05b8ec39.js} +2 -3
  11. package/dist/ReCaptchaVuePlugin-05b8ec39.js.br +0 -0
  12. package/dist/ReCaptchaVuePlugin-08ee5d62.cjs +1 -0
  13. package/dist/{SelectField.vue_vue_type_style_index_0_lang-a45312d1.mjs → SelectField.vue_vue_type_style_index_0_lang-5bdd7db9.js} +1020 -1022
  14. package/dist/SelectField.vue_vue_type_style_index_0_lang-5bdd7db9.js.br +0 -0
  15. package/dist/{SelectField.vue_vue_type_style_index_0_lang-18843626.js → SelectField.vue_vue_type_style_index_0_lang-5f1087dc.cjs} +16 -17
  16. package/dist/{ThankYou-f6205791.mjs → ThankYou-1866d8db.js} +2853 -2825
  17. package/dist/ThankYou-1866d8db.js.br +0 -0
  18. package/dist/ThankYou-5741bcb6.cjs +15 -0
  19. package/dist/{_commonjsHelpers-6763f629.js → _commonjsHelpers-6763f629.cjs} +0 -1
  20. package/dist/{_commonjsHelpers-c5d32002.mjs → _commonjsHelpers-aeeeeb92.js} +2 -3
  21. package/dist/{applyGiftCard-02342491.mjs → applyGiftCard-c5e4aaad.js} +12 -14
  22. package/dist/applyGiftCard-c5e4aaad.js.br +0 -0
  23. package/dist/applyGiftCard-d9ab3dcf.cjs +1 -0
  24. package/dist/assets/typescript/mixins.d.ts +36 -0
  25. package/dist/availability.cjs.js +1 -2
  26. package/dist/availability.cjs.js.br +0 -0
  27. package/dist/availability.d.ts +3 -0
  28. package/dist/availability.es.js +31 -30
  29. package/dist/availability.es.js.br +0 -0
  30. package/dist/components/Alert.vue.d.ts +5 -0
  31. package/dist/components/Alert.vue.d.ts.map +1 -0
  32. package/dist/components/Clickable.vue.d.ts +5 -0
  33. package/dist/components/Clickable.vue.d.ts.map +1 -0
  34. package/dist/components/GoogleNotice.vue.d.ts +4 -0
  35. package/dist/components/GoogleNotice.vue.d.ts.map +1 -0
  36. package/dist/components/Icon.vue.d.ts +5 -0
  37. package/dist/components/Icon.vue.d.ts.map +1 -0
  38. package/dist/components/Loading.vue.d.ts +5 -0
  39. package/dist/components/Loading.vue.d.ts.map +1 -0
  40. package/dist/components/LoadingBlock.vue.d.ts +4 -0
  41. package/dist/components/LoadingBlock.vue.d.ts.map +1 -0
  42. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +5 -0
  43. package/dist/components/forms/EventAvailabilityForm.vue.d.ts.map +1 -0
  44. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +5 -0
  45. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts.map +1 -0
  46. package/dist/components/forms/MultiStepForm.vue.d.ts +5 -0
  47. package/dist/components/forms/MultiStepForm.vue.d.ts.map +1 -0
  48. package/dist/components/forms/ReservationForm.vue.d.ts +5 -0
  49. package/dist/components/forms/ReservationForm.vue.d.ts.map +1 -0
  50. package/dist/components/inputs/Checkbox.vue.d.ts +5 -0
  51. package/dist/components/inputs/Checkbox.vue.d.ts.map +1 -0
  52. package/dist/components/inputs/DateField.vue.d.ts +5 -0
  53. package/dist/components/inputs/DateField.vue.d.ts.map +1 -0
  54. package/dist/components/inputs/InputField.vue.d.ts +5 -0
  55. package/dist/components/inputs/InputField.vue.d.ts.map +1 -0
  56. package/dist/components/inputs/MediaSelector.vue.d.ts +5 -0
  57. package/dist/components/inputs/MediaSelector.vue.d.ts.map +1 -0
  58. package/dist/components/inputs/NumberField.vue.d.ts +5 -0
  59. package/dist/components/inputs/NumberField.vue.d.ts.map +1 -0
  60. package/dist/components/inputs/SelectField.vue.d.ts +5 -0
  61. package/dist/components/inputs/SelectField.vue.d.ts.map +1 -0
  62. package/dist/components/inputs/TextField.vue.d.ts +5 -0
  63. package/dist/components/inputs/TextField.vue.d.ts.map +1 -0
  64. package/dist/components/inputs/TimeField.vue.d.ts +5 -0
  65. package/dist/components/inputs/TimeField.vue.d.ts.map +1 -0
  66. package/dist/components/inputs/grouped/ActionField.vue.d.ts +5 -0
  67. package/dist/components/inputs/grouped/ActionField.vue.d.ts.map +1 -0
  68. package/dist/components/inputs/grouped/CountryField.vue.d.ts +5 -0
  69. package/dist/components/inputs/grouped/CountryField.vue.d.ts.map +1 -0
  70. package/dist/components/inputs/grouped/NameField.vue.d.ts +5 -0
  71. package/dist/components/inputs/grouped/NameField.vue.d.ts.map +1 -0
  72. package/dist/components/inputs/grouped/PhoneField.vue.d.ts +5 -0
  73. package/dist/components/inputs/grouped/PhoneField.vue.d.ts.map +1 -0
  74. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +4 -0
  75. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts.map +1 -0
  76. package/dist/components/listings/Base.vue.d.ts +6 -0
  77. package/dist/components/listings/Base.vue.d.ts.map +1 -0
  78. package/dist/components/listings/Event.vue.d.ts +5 -0
  79. package/dist/components/listings/Event.vue.d.ts.map +1 -0
  80. package/dist/components/listings/Test.vue.d.ts +5 -0
  81. package/dist/components/listings/Test.vue.d.ts.map +1 -0
  82. package/dist/components/modals/Base.vue.d.ts +5 -0
  83. package/dist/components/modals/Base.vue.d.ts.map +1 -0
  84. package/dist/components/modals/Info.vue.d.ts +5 -0
  85. package/dist/components/modals/Info.vue.d.ts.map +1 -0
  86. package/dist/components/modals/Terms.vue.d.ts +4 -0
  87. package/dist/components/modals/Terms.vue.d.ts.map +1 -0
  88. package/dist/components/side-panels/Base.vue.d.ts +5 -0
  89. package/dist/components/side-panels/Base.vue.d.ts.map +1 -0
  90. package/dist/components/side-panels/Hotel.vue.d.ts +4 -0
  91. package/dist/components/side-panels/Hotel.vue.d.ts.map +1 -0
  92. package/dist/components/views/CheckoutWindow.vue.d.ts +5 -0
  93. package/dist/components/views/CheckoutWindow.vue.d.ts.map +1 -0
  94. package/dist/components/views/TermsOfService.vue.d.ts +5 -0
  95. package/dist/components/views/TermsOfService.vue.d.ts.map +1 -0
  96. package/dist/components/views/ThankYou.vue.d.ts +5 -0
  97. package/dist/components/views/ThankYou.vue.d.ts.map +1 -0
  98. package/dist/entries/availability.d.ts +2 -0
  99. package/dist/entries/event.d.ts +2 -0
  100. package/dist/entries/gift-card-validation.d.ts +2 -0
  101. package/dist/entries/gift-card.d.ts +2 -0
  102. package/dist/entries/hotel.d.ts +2 -0
  103. package/dist/entries/navigation.d.ts +1 -0
  104. package/dist/entries/polyfill.d.ts +0 -0
  105. package/dist/event-39706438.cjs +1 -0
  106. package/dist/{event-cc266121.mjs → event-a70cffeb.js} +48 -47
  107. package/dist/event-a70cffeb.js.br +0 -0
  108. package/dist/event.cjs.js +1 -2
  109. package/dist/event.cjs.js.br +0 -0
  110. package/dist/event.d.ts +3 -0
  111. package/dist/event.es.js +175 -174
  112. package/dist/event.es.js.br +0 -0
  113. package/dist/gift-card-validation.cjs.js +1 -2
  114. package/dist/gift-card-validation.cjs.js.br +0 -0
  115. package/dist/gift-card-validation.d.ts +3 -0
  116. package/dist/gift-card-validation.es.js +54 -53
  117. package/dist/gift-card-validation.es.js.br +0 -0
  118. package/dist/gift-card.cjs.js +1 -2
  119. package/dist/gift-card.cjs.js.br +0 -0
  120. package/dist/gift-card.d.ts +3 -0
  121. package/dist/gift-card.es.js +90 -89
  122. package/dist/gift-card.es.js.br +0 -0
  123. package/dist/hotel.cjs.js +5 -6
  124. package/dist/hotel.cjs.js.br +0 -0
  125. package/dist/hotel.d.ts +3 -0
  126. package/dist/hotel.es.js +298 -298
  127. package/dist/hotel.es.js.br +0 -0
  128. package/dist/{index-30f70976.mjs → index-00262c16.js} +64 -69
  129. package/dist/index-00262c16.js.br +0 -0
  130. package/dist/index-58f3b0cc.cjs +1 -0
  131. package/dist/layouts/Availability.vue.d.ts +244 -0
  132. package/dist/layouts/Event.vue.d.ts +244 -0
  133. package/dist/layouts/GiftCard.vue.d.ts +252 -0
  134. package/dist/layouts/GiftCardValidation.vue.d.ts +228 -0
  135. package/dist/layouts/Hotel.vue.d.ts +277 -0
  136. package/dist/layouts/_.vue.d.ts +30 -0
  137. package/dist/navigation.cjs.js +1 -2
  138. package/dist/navigation.d.ts +1 -0
  139. package/dist/navigation.es.js +1 -59
  140. package/dist/{payment-b3022c46.mjs → payment-9e219e9b.js} +221 -223
  141. package/dist/payment-9e219e9b.js.br +0 -0
  142. package/dist/{payment-bfd660a7.js → payment-fbffaa6d.cjs} +2 -3
  143. package/dist/plugins/i18n.d.ts +5 -0
  144. package/dist/polyfill.cjs.js +2 -3
  145. package/dist/polyfill.cjs.js.br +0 -0
  146. package/dist/polyfill.d.ts +1 -0
  147. package/dist/polyfill.es.js +2 -4
  148. package/dist/polyfill.es.js.br +0 -0
  149. package/dist/store/alert.d.ts +28 -0
  150. package/dist/store/applyGiftCard.d.ts +28 -0
  151. package/dist/store/availability.d.ts +37 -0
  152. package/dist/store/event.d.ts +683 -0
  153. package/dist/store/giftCard.d.ts +80 -0
  154. package/dist/store/hotel.d.ts +662 -0
  155. package/dist/store/payment.d.ts +133 -0
  156. package/dist/store/recaptcha.d.ts +1 -0
  157. package/dist/store/tracking.d.ts +24 -0
  158. package/dist/store/utilities.d.ts +317 -0
  159. package/dist/style.css +1 -1
  160. package/dist/style.css.br +0 -0
  161. package/dist/types/index.d.ts +868 -0
  162. package/package.json +27 -11
  163. package/dist/ActionField-0c047379.mjs.br +0 -0
  164. package/dist/ActionField-3640689b.js +0 -2
  165. package/dist/ActionField-3640689b.js.br +0 -0
  166. package/dist/Clickable-386eceb6.mjs +0 -12390
  167. package/dist/Clickable-386eceb6.mjs.br +0 -0
  168. package/dist/Clickable-77afc133.js +0 -768
  169. package/dist/Clickable-77afc133.js.br +0 -0
  170. package/dist/HotelAvailabilityForm-29f12395.mjs.br +0 -0
  171. package/dist/HotelAvailabilityForm-89ba629d.js +0 -2
  172. package/dist/HotelAvailabilityForm-89ba629d.js.br +0 -0
  173. package/dist/NumberField.vue_vue_type_style_index_0_lang-99de44b7.mjs +0 -4027
  174. package/dist/NumberField.vue_vue_type_style_index_0_lang-99de44b7.mjs.br +0 -0
  175. package/dist/NumberField.vue_vue_type_style_index_0_lang-e8efabad.js +0 -28
  176. package/dist/NumberField.vue_vue_type_style_index_0_lang-e8efabad.js.br +0 -0
  177. package/dist/ReCaptchaVuePlugin-0988d77f.js +0 -2
  178. package/dist/ReCaptchaVuePlugin-0988d77f.js.br +0 -0
  179. package/dist/ReCaptchaVuePlugin-616ef9b9.mjs.br +0 -0
  180. package/dist/SelectField.vue_vue_type_style_index_0_lang-18843626.js.br +0 -0
  181. package/dist/SelectField.vue_vue_type_style_index_0_lang-a45312d1.mjs.br +0 -0
  182. package/dist/ThankYou-1096ca5a.js +0 -16
  183. package/dist/ThankYou-1096ca5a.js.br +0 -0
  184. package/dist/ThankYou-f6205791.mjs.br +0 -0
  185. package/dist/applyGiftCard-02342491.mjs.br +0 -0
  186. package/dist/applyGiftCard-e24bae0c.js +0 -2
  187. package/dist/applyGiftCard-e24bae0c.js.br +0 -0
  188. package/dist/event-cc266121.mjs.br +0 -0
  189. package/dist/event-d580e6e8.js +0 -2
  190. package/dist/event-d580e6e8.js.br +0 -0
  191. package/dist/index-30f70976.mjs.br +0 -0
  192. package/dist/index-4e9533a9.js +0 -2
  193. package/dist/index-4e9533a9.js.br +0 -0
  194. package/dist/navigation.cjs.js.br +0 -0
  195. package/dist/navigation.es.js.br +0 -0
  196. package/dist/payment-b3022c46.mjs.br +0 -0
  197. package/dist/payment-bfd660a7.js.br +0 -0
@@ -1,8 +1,7 @@
1
- import { d as b, f as m, o as d, h as i, w as c, b as V, u as t, a as v, C as g, _ as q } from "./Clickable-386eceb6.mjs";
2
- import { v as k, I as B } from "./NumberField.vue_vue_type_style_index_0_lang-99de44b7.mjs";
3
- import { _ as I, T as C } from "./SelectField.vue_vue_type_style_index_0_lang-a45312d1.mjs";
4
- import { _ as F } from "./applyGiftCard-02342491.mjs";
5
- const A = { class: "fresh-booking-action-field" }, h = /* @__PURE__ */ b({
1
+ import { h as f, j as c, c as m, k as d, l as i, w as V, x as v, n as t, m as g, C as q, I as k, _ as B } from "./NumberField.vue_vue_type_style_index_0_lang-ab747739.js";
2
+ import { _ as I, T as C } from "./SelectField.vue_vue_type_style_index_0_lang-5bdd7db9.js";
3
+ import { _ as F } from "./applyGiftCard-c5e4aaad.js";
4
+ const A = { class: "fresh-booking-action-field" }, h = /* @__PURE__ */ f({
6
5
  __name: "ActionField",
7
6
  props: {
8
7
  modelValue: {},
@@ -27,37 +26,37 @@ const A = { class: "fresh-booking-action-field" }, h = /* @__PURE__ */ b({
27
26
  isLoading: { type: Boolean, default: !1 }
28
27
  },
29
28
  emits: ["update:modelValue", "action"],
30
- setup(y, { emit: r }) {
31
- const u = y, l = u.id || k();
32
- function s(e) {
33
- r("update:modelValue", e);
29
+ setup(y, { emit: s }) {
30
+ const u = y, o = u.id || c();
31
+ function r(e) {
32
+ s("update:modelValue", e);
34
33
  }
35
34
  const n = m({
36
35
  get: () => u.modelValue,
37
- set: (e) => s(e)
36
+ set: (e) => r(e)
38
37
  }), p = m({
39
38
  get: () => u.modelValue,
40
- set: (e) => s(e)
39
+ set: (e) => r(e)
41
40
  });
42
- function f() {
43
- r("action");
41
+ function b() {
42
+ s("action");
44
43
  }
45
- return (e, a) => (d(), i(B, {
44
+ return (e, a) => (d(), i(k, {
46
45
  label: e.label,
47
- id: t(l),
46
+ id: t(o),
48
47
  icon: e.icon,
49
48
  "icon-type": e.iconType,
50
49
  required: e.required,
51
50
  type: e.type,
52
51
  readonly: e.readonly
53
52
  }, {
54
- default: c(() => [
55
- V("div", A, [
53
+ default: V(() => [
54
+ v("div", A, [
56
55
  e.type === "dropdown" && e.data ? (d(), i(I, {
57
56
  key: 0,
58
57
  modelValue: n.value,
59
- "onUpdate:modelValue": a[0] || (a[0] = (o) => n.value = o),
60
- id: t(l),
58
+ "onUpdate:modelValue": a[0] || (a[0] = (l) => n.value = l),
59
+ id: t(o),
61
60
  options: e.data,
62
61
  name: e.name,
63
62
  required: e.required,
@@ -65,20 +64,20 @@ const A = { class: "fresh-booking-action-field" }, h = /* @__PURE__ */ b({
65
64
  }, null, 8, ["modelValue", "id", "options", "name", "required", "placeholder"])) : e.type === "number" ? (d(), i(F, {
66
65
  key: 1,
67
66
  modelValue: p.value,
68
- "onUpdate:modelValue": a[1] || (a[1] = (o) => p.value = o),
69
- id: t(l),
67
+ "onUpdate:modelValue": a[1] || (a[1] = (l) => p.value = l),
68
+ id: t(o),
70
69
  "min-value": e.minValue,
71
70
  "max-value": e.maxValue
72
71
  }, null, 8, ["modelValue", "id", "min-value", "max-value"])) : (d(), i(C, {
73
72
  key: 2,
74
73
  modelValue: n.value,
75
- "onUpdate:modelValue": a[2] || (a[2] = (o) => n.value = o),
76
- id: t(l),
74
+ "onUpdate:modelValue": a[2] || (a[2] = (l) => n.value = l),
75
+ id: t(o),
77
76
  name: e.name,
78
77
  required: e.required,
79
78
  placeholder: e.placeholder
80
79
  }, null, 8, ["modelValue", "id", "name", "required", "placeholder"])),
81
- v(g, {
80
+ g(q, {
82
81
  "data-test": `${e.name}Submit`,
83
82
  icon: e.buttonIcon,
84
83
  label: e.buttonLabel,
@@ -88,7 +87,7 @@ const A = { class: "fresh-booking-action-field" }, h = /* @__PURE__ */ b({
88
87
  "is-loading": e.isLoading,
89
88
  disabled: e.buttonDisabled,
90
89
  secondary: e.secondary,
91
- onClickEvent: a[3] || (a[3] = (o) => f())
90
+ onClickEvent: a[3] || (a[3] = (l) => b())
92
91
  }, null, 8, ["data-test", "icon", "label", "icon-color", "styling", "is-loading", "disabled", "secondary"])
93
92
  ])
94
93
  ]),
@@ -96,8 +95,7 @@ const A = { class: "fresh-booking-action-field" }, h = /* @__PURE__ */ b({
96
95
  }, 8, ["label", "id", "icon", "icon-type", "required", "type", "readonly"]));
97
96
  }
98
97
  });
99
- const U = /* @__PURE__ */ q(h, [["__scopeId", "data-v-d9c1b798"]]);
98
+ const w = /* @__PURE__ */ B(h, [["__scopeId", "data-v-07d4466b"]]);
100
99
  export {
101
- U as A
100
+ w as A
102
101
  };
103
- //# sourceMappingURL=ActionField-0c047379.mjs.map
Binary file
@@ -0,0 +1 @@
1
+ "use strict";const l=require("./NumberField.vue_vue_type_style_index_0_lang-0b6d48f1.cjs"),s=require("./SelectField.vue_vue_type_style_index_0_lang-5f1087dc.cjs"),m=require("./applyGiftCard-d9ab3dcf.cjs"),y={class:"fresh-booking-action-field"},b=l.defineComponent({__name:"ActionField",props:{modelValue:{},label:{},buttonLabel:{},buttonIcon:{},buttonIconColor:{},buttonDisabled:{type:Boolean,default:!1},secondary:{type:Boolean,default:!1},name:{},id:{},type:{default:"text"},placeholder:{},icon:{},iconType:{default:"fal"},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},data:{},action:{},minValue:{},maxValue:{},isLoading:{type:Boolean,default:!1}},emits:["update:modelValue","action"],setup(p,{emit:i}){const t=p,n=t.id||l.ranId();function u(e){i("update:modelValue",e)}const d=l.computed({get:()=>t.modelValue,set:e=>u(e)}),r=l.computed({get:()=>t.modelValue,set:e=>u(e)});function c(){i("action")}return(e,o)=>(l.openBlock(),l.createBlock(l.InputField,{label:e.label,id:l.unref(n),icon:e.icon,"icon-type":e.iconType,required:e.required,type:e.type,readonly:e.readonly},{default:l.withCtx(()=>[l.createBaseVNode("div",y,[e.type==="dropdown"&&e.data?(l.openBlock(),l.createBlock(s._sfc_main,{key:0,modelValue:d.value,"onUpdate:modelValue":o[0]||(o[0]=a=>d.value=a),id:l.unref(n),options:e.data,name:e.name,required:e.required,placeholder:e.placeholder},null,8,["modelValue","id","options","name","required","placeholder"])):e.type==="number"?(l.openBlock(),l.createBlock(m._sfc_main,{key:1,modelValue:r.value,"onUpdate:modelValue":o[1]||(o[1]=a=>r.value=a),id:l.unref(n),"min-value":e.minValue,"max-value":e.maxValue},null,8,["modelValue","id","min-value","max-value"])):(l.openBlock(),l.createBlock(s.TextField,{key:2,modelValue:d.value,"onUpdate:modelValue":o[2]||(o[2]=a=>d.value=a),id:l.unref(n),name:e.name,required:e.required,placeholder:e.placeholder},null,8,["modelValue","id","name","required","placeholder"])),l.createVNode(l.Clickable,{"data-test":`${e.name}Submit`,icon:e.buttonIcon,label:e.buttonLabel,"icon-color":e.buttonIconColor,styling:e.action,type:"button","is-loading":e.isLoading,disabled:e.buttonDisabled,secondary:e.secondary,onClickEvent:o[3]||(o[3]=a=>c())},null,8,["data-test","icon","label","icon-color","styling","is-loading","disabled","secondary"])])]),_:1},8,["label","id","icon","icon-type","required","type","readonly"]))}});const f=l._export_sfc(b,[["__scopeId","data-v-07d4466b"]]);exports.ActionField=f;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./NumberField.vue_vue_type_style_index_0_lang-0b6d48f1.cjs"),m=require("./payment-fbffaa6d.cjs"),D=require("./applyGiftCard-d9ab3dcf.cjs"),w={id:"fresh-booking-availability-date-selection"},V={key:0,id:"fresh-booking-availability-guest-selection"},h={id:"fresh-booking-availability-confirmation"},B=e.defineComponent({__name:"HotelAvailabilityForm",props:{booking:{type:Boolean,default:!1},link:{}},setup(_){const d=_,{t:u}=e.useI18n(),{adults:s,children:f,arrivalDate:o,departureDate:r,isExpired:y}=e.storeToRefs(m.useAvailabilityStore()),{reset:k}=m.useAvailabilityStore(),{firstSelectableDateOffset:b,lastSelectableDateOffset:v,disableChildSelection:n,disableAdultSelection:t}=e.storeToRefs(e.useUtilityStore()),c=e.ref([]);e.computed(()=>new Date(new Date().setDate(new Date().getDate()+(b.value-1)))),e.computed(()=>new Date(new Date().setDate(new Date().getDate()+v.value))),e.computed(()=>new Date(new Date().setDate(o.value.getDate()+b.value))),e.computed(()=>new Date(new Date().setDate(o.value.getDate()+(v.value+1))));const p=e.computed(()=>!(!t&&s.value===0));function g(){d.booking===!1?window.location.replace(d.link):p.value&&location.reload()}return e.watch(o,a=>{const l=new Date(new Date(a).setDate(new Date(a).getDate()+1));new Date(r.value)<l&&(r.value=l)}),e.watch(c,a=>{o.value=a[0],r.value=a[1]}),e.onMounted(()=>{y.value&&d.booking&&k(),c.value=[o.value,r.value]}),(a,l)=>(e.openBlock(),e.createElementBlock("form",{id:"fresh-booking-availability-form",class:e.normalizeClass({reservation:a.booking})},[e.createBaseVNode("ul",{id:"fresh-booking-availability-form-content",class:e.normalizeClass([{"is-not-booking-page":!a.booking},{"only-adult-guests":!e.unref(t)&&e.unref(n)},{"only-child-guests":!e.unref(n)&&e.unref(t)},{"no-guests":e.unref(t)&&e.unref(n)},{"all-guests":!e.unref(t)&&!e.unref(n)}])},[e.createBaseVNode("li",w,[e.createVNode(m._sfc_main,{modelValue:c.value,"onUpdate:modelValue":l[0]||(l[0]=i=>c.value=i),label:e.unref(u)("availability.checkInOut"),"icon-placement":"label","min-range":1,range:""},null,8,["modelValue","label"]),e.createCommentVNode("",!0)]),!e.unref(t)||!e.unref(n)?(e.openBlock(),e.createElementBlock("li",V,[e.unref(t)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(D._sfc_main,{key:0,modelValue:e.unref(s),"onUpdate:modelValue":l[3]||(l[3]=i=>e.isRef(s)?s.value=i:null),label:e.unref(u)("availability.adults"),"icon-placement":"label",name:"adults",icon:"male"},null,8,["modelValue","label"])),e.unref(n)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(D._sfc_main,{key:1,modelValue:e.unref(f),"onUpdate:modelValue":l[4]||(l[4]=i=>e.isRef(f)?f.value=i:null),label:e.unref(u)("availability.children"),"icon-placement":"label",name:"children",icon:"child"},null,8,["modelValue","label"]))])):e.createCommentVNode("",!0),e.createBaseVNode("li",h,[e.createVNode(e.Clickable,{label:e.unref(u)("availability.buttonLabel"),disabled:!p.value,onClickEvent:g},null,8,["label","disabled"])])],2)],2))}});const C=e._export_sfc(B,[["__scopeId","data-v-c4e67871"]]);exports.HotelAvailabilityForm=C;
@@ -1,7 +1,6 @@
1
- import { d as F, r as I, f as s, s as _, g as N, o as b, c as y, b as D, a as w, u as e, k as m, h, i as V, C as O, n as C, _ as R } from "./Clickable-386eceb6.mjs";
2
- import { u as $, s as A, h as q } from "./NumberField.vue_vue_type_style_index_0_lang-99de44b7.mjs";
3
- import { a as S, _ as z } from "./payment-b3022c46.mjs";
4
- import { _ as B } from "./applyGiftCard-02342491.mjs";
1
+ import { h as F, q as I, s as y, a as N, r as O, c as s, t as _, o as R, k as b, v as w, x as D, m as h, n as e, y as m, l as V, z as A, C as q, A as C, _ as z } from "./NumberField.vue_vue_type_style_index_0_lang-ab747739.js";
2
+ import { a as S, _ as $ } from "./payment-9e219e9b.js";
3
+ import { _ as B } from "./applyGiftCard-c5e4aaad.js";
5
4
  const L = { id: "fresh-booking-availability-date-selection" }, M = {
6
5
  key: 0,
7
6
  id: "fresh-booking-availability-guest-selection"
@@ -11,32 +10,32 @@ const L = { id: "fresh-booking-availability-date-selection" }, M = {
11
10
  booking: { type: Boolean, default: !1 },
12
11
  link: {}
13
12
  },
14
- setup(H) {
15
- const f = H, { t: u } = $(), {
13
+ setup(x) {
14
+ const v = x, { t: u } = I(), {
16
15
  adults: r,
17
- children: v,
16
+ children: f,
18
17
  arrivalDate: o,
19
18
  departureDate: c,
20
- isExpired: U
21
- } = A(S()), { reset: x } = S(), {
19
+ isExpired: H
20
+ } = y(S()), { reset: U } = S(), {
22
21
  firstSelectableDateOffset: p,
23
22
  lastSelectableDateOffset: g,
24
23
  disableChildSelection: i,
25
24
  disableAdultSelection: t
26
- } = A(q()), d = I([]);
25
+ } = y(N()), d = O([]);
27
26
  s(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (p.value - 1)))), s(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + g.value))), s(() => new Date((/* @__PURE__ */ new Date()).setDate(o.value.getDate() + p.value))), s(() => new Date((/* @__PURE__ */ new Date()).setDate(o.value.getDate() + (g.value + 1))));
28
27
  const k = s(() => !(!t && r.value === 0));
29
28
  function E() {
30
- f.booking === !1 ? window.location.replace(f.link) : k.value && location.reload();
29
+ v.booking === !1 ? window.location.replace(v.link) : k.value && location.reload();
31
30
  }
32
31
  return _(o, (l) => {
33
32
  const a = new Date(new Date(l).setDate(new Date(l).getDate() + 1));
34
33
  new Date(c.value) < a && (c.value = a);
35
34
  }), _(d, (l) => {
36
35
  o.value = l[0], c.value = l[1];
37
- }), N(() => {
38
- U.value && f.booking && x(), d.value = [o.value, c.value];
39
- }), (l, a) => (b(), y("form", {
36
+ }), R(() => {
37
+ H.value && v.booking && U(), d.value = [o.value, c.value];
38
+ }), (l, a) => (b(), w("form", {
40
39
  id: "fresh-booking-availability-form",
41
40
  class: C({ reservation: l.booking })
42
41
  }, [
@@ -51,7 +50,7 @@ const L = { id: "fresh-booking-availability-date-selection" }, M = {
51
50
  ])
52
51
  }, [
53
52
  D("li", L, [
54
- w(z, {
53
+ h($, {
55
54
  modelValue: d.value,
56
55
  "onUpdate:modelValue": a[0] || (a[0] = (n) => d.value = n),
57
56
  label: e(u)("availability.checkInOut"),
@@ -61,20 +60,20 @@ const L = { id: "fresh-booking-availability-date-selection" }, M = {
61
60
  }, null, 8, ["modelValue", "label"]),
62
61
  m("", !0)
63
62
  ]),
64
- !e(t) || !e(i) ? (b(), y("li", M, [
65
- e(t) ? m("", !0) : (b(), h(B, {
63
+ !e(t) || !e(i) ? (b(), w("li", M, [
64
+ e(t) ? m("", !0) : (b(), V(B, {
66
65
  key: 0,
67
66
  modelValue: e(r),
68
- "onUpdate:modelValue": a[3] || (a[3] = (n) => V(r) ? r.value = n : null),
67
+ "onUpdate:modelValue": a[3] || (a[3] = (n) => A(r) ? r.value = n : null),
69
68
  label: e(u)("availability.adults"),
70
69
  "icon-placement": "label",
71
70
  name: "adults",
72
71
  icon: "male"
73
72
  }, null, 8, ["modelValue", "label"])),
74
- e(i) ? m("", !0) : (b(), h(B, {
73
+ e(i) ? m("", !0) : (b(), V(B, {
75
74
  key: 1,
76
- modelValue: e(v),
77
- "onUpdate:modelValue": a[4] || (a[4] = (n) => V(v) ? v.value = n : null),
75
+ modelValue: e(f),
76
+ "onUpdate:modelValue": a[4] || (a[4] = (n) => A(f) ? f.value = n : null),
78
77
  label: e(u)("availability.children"),
79
78
  "icon-placement": "label",
80
79
  name: "children",
@@ -82,7 +81,7 @@ const L = { id: "fresh-booking-availability-date-selection" }, M = {
82
81
  }, null, 8, ["modelValue", "label"]))
83
82
  ])) : m("", !0),
84
83
  D("li", T, [
85
- w(O, {
84
+ h(q, {
86
85
  label: e(u)("availability.buttonLabel"),
87
86
  disabled: !k.value,
88
87
  onClickEvent: E
@@ -92,8 +91,7 @@ const L = { id: "fresh-booking-availability-date-selection" }, M = {
92
91
  ], 2));
93
92
  }
94
93
  });
95
- const Q = /* @__PURE__ */ R(j, [["__scopeId", "data-v-c03fc1b6"]]);
94
+ const P = /* @__PURE__ */ z(j, [["__scopeId", "data-v-c4e67871"]]);
96
95
  export {
97
- Q as H
96
+ P as H
98
97
  };
99
- //# sourceMappingURL=HotelAvailabilityForm-29f12395.mjs.map