@konnectio/core 4.0.12 → 4.0.13

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 (78) hide show
  1. package/dist/{ActionField-311942d2.js → ActionField-54349124.js} +7 -7
  2. package/dist/ActionField-54349124.js.br +0 -0
  3. package/dist/{ActionField-23ce1b2a.cjs → ActionField-74fc14cf.cjs} +1 -1
  4. package/dist/AvailabilitySkeleton-34890eb5.cjs +1 -0
  5. package/dist/AvailabilitySkeleton-f7c1b363.js +189 -0
  6. package/dist/AvailabilitySkeleton-f7c1b363.js.br +0 -0
  7. package/dist/{DateField.vue_vue_type_style_index_0_lang-47e679d1.cjs → DateField.vue_vue_type_style_index_0_lang-41b83959.cjs} +5 -5
  8. package/dist/{DateField.vue_vue_type_style_index_0_lang-ec35955b.js → DateField.vue_vue_type_style_index_0_lang-c5873e66.js} +1805 -1801
  9. package/dist/DateField.vue_vue_type_style_index_0_lang-c5873e66.js.br +0 -0
  10. package/dist/{Field-ff599d13.js → Field-0b82e3dc.js} +2 -2
  11. package/dist/Field-0b82e3dc.js.br +0 -0
  12. package/dist/{Field-dcffacf2.cjs → Field-c8c55b91.cjs} +1 -1
  13. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-2eb1b46f.js → NumberField.vue_vue_type_script_setup_true_lang-001ceb59.js} +8 -8
  14. package/dist/NumberField.vue_vue_type_script_setup_true_lang-001ceb59.js.br +0 -0
  15. package/dist/NumberField.vue_vue_type_script_setup_true_lang-8525b2cd.cjs +1 -0
  16. package/dist/SelectField.vue_vue_type_style_index_0_lang-b92d158e.cjs +802 -0
  17. package/dist/{SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js → SelectField.vue_vue_type_style_index_0_lang-ba987c3e.js} +9985 -9670
  18. package/dist/SelectField.vue_vue_type_style_index_0_lang-ba987c3e.js.br +0 -0
  19. package/dist/{TextField-6f7e37d9.cjs → TextField-52bc45b8.cjs} +27 -27
  20. package/dist/{TextField-cd93b966.js → TextField-cbed3348.js} +2363 -2437
  21. package/dist/TextField-cbed3348.js.br +0 -0
  22. package/dist/{ThankYou-c1878478.js → ThankYou-a6b0d51e.js} +6 -6
  23. package/dist/ThankYou-a6b0d51e.js.br +0 -0
  24. package/dist/{ThankYou-3d74a6dc.cjs → ThankYou-d4fae82e.cjs} +1 -1
  25. package/dist/{_-8772cf9a.js → _-66cf2aa1.js} +5 -5
  26. package/dist/_-66cf2aa1.js.br +0 -0
  27. package/dist/{_-0895679a.cjs → _-f5fc7dd6.cjs} +1 -1
  28. package/dist/availability.cjs +2 -2
  29. package/dist/availability.d.ts +0 -2
  30. package/dist/availability.js +124 -123
  31. package/dist/availability.js.br +0 -0
  32. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +1 -1
  33. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +1 -1
  34. package/dist/entries/availability.d.ts +1 -3
  35. package/dist/event-f2a6108f.cjs +1 -0
  36. package/dist/{event-60e076f2.js → event-f820ba4b.js} +89 -89
  37. package/dist/event-f820ba4b.js.br +0 -0
  38. package/dist/event.cjs +1 -1
  39. package/dist/event.js +65 -65
  40. package/dist/event.js.br +0 -0
  41. package/dist/gift-card-validation.cjs +1 -1
  42. package/dist/gift-card-validation.js +6 -6
  43. package/dist/gift-card-validation.js.br +0 -0
  44. package/dist/gift-card.cjs +1 -1
  45. package/dist/gift-card.js +83 -83
  46. package/dist/gift-card.js.br +0 -0
  47. package/dist/hotel.cjs +5 -5
  48. package/dist/hotel.js +957 -957
  49. package/dist/hotel.js.br +0 -0
  50. package/dist/{index-345407fb.cjs → index-2018df9e.cjs} +1 -1
  51. package/dist/{index-b5d8f4fc.js → index-b69ec10e.js} +2 -2
  52. package/dist/index-b69ec10e.js.br +0 -0
  53. package/dist/polyfill.cjs +1 -1
  54. package/dist/polyfill.js +1 -1
  55. package/dist/polyfill.js.br +0 -0
  56. package/dist/store/event.d.ts +1 -1
  57. package/dist/store/hotel.d.ts +5 -2
  58. package/dist/store/utilities.d.ts +18 -2
  59. package/dist/style.css +1 -1
  60. package/dist/style.css.br +0 -0
  61. package/package.json +4 -5
  62. package/dist/ActionField-311942d2.js.br +0 -0
  63. package/dist/AvailabilitySkeleton-2dfbb28e.js +0 -382
  64. package/dist/AvailabilitySkeleton-2dfbb28e.js.br +0 -0
  65. package/dist/AvailabilitySkeleton-7d9e2680.cjs +0 -1
  66. package/dist/DateField.vue_vue_type_style_index_0_lang-ec35955b.js.br +0 -0
  67. package/dist/Field-ff599d13.js.br +0 -0
  68. package/dist/NumberField.vue_vue_type_script_setup_true_lang-2eb1b46f.js.br +0 -0
  69. package/dist/NumberField.vue_vue_type_script_setup_true_lang-50fc08f1.cjs +0 -1
  70. package/dist/SelectField.vue_vue_type_style_index_0_lang-4755fb8a.cjs +0 -802
  71. package/dist/SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js.br +0 -0
  72. package/dist/TextField-cd93b966.js.br +0 -0
  73. package/dist/ThankYou-c1878478.js.br +0 -0
  74. package/dist/_-8772cf9a.js.br +0 -0
  75. package/dist/event-60e076f2.js.br +0 -0
  76. package/dist/event-8e90a6e3.cjs +0 -1
  77. package/dist/index-b5d8f4fc.js.br +0 -0
  78. package/dist/store/recaptcha.d.ts +0 -1
@@ -1,6 +1,6 @@
1
- import { h as f, j as V, c as p, k as d, l as i, w as v, x as g, n as t, m as q, C as k, I as B, _ as I } from "./SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js";
2
- import { _ as C, T as F } from "./TextField-cd93b966.js";
3
- import { _ as A } from "./NumberField.vue_vue_type_script_setup_true_lang-2eb1b46f.js";
1
+ import { h as f, j as V, c as p, k as d, l as i, w as v, x as g, y as q, n as t, m as k, C as B, I, _ as C } from "./SelectField.vue_vue_type_style_index_0_lang-ba987c3e.js";
2
+ import { T as F } from "./TextField-cbed3348.js";
3
+ import { _ as A } from "./NumberField.vue_vue_type_script_setup_true_lang-001ceb59.js";
4
4
  const h = { class: "fresh-booking-action-field" }, L = /* @__PURE__ */ f({
5
5
  __name: "ActionField",
6
6
  props: {
@@ -41,7 +41,7 @@ const h = { class: "fresh-booking-action-field" }, L = /* @__PURE__ */ f({
41
41
  function c() {
42
42
  s("action");
43
43
  }
44
- return (e, a) => (d(), i(B, {
44
+ return (e, a) => (d(), i(I, {
45
45
  label: e.label,
46
46
  id: t(o),
47
47
  icon: e.icon,
@@ -52,7 +52,7 @@ const h = { class: "fresh-booking-action-field" }, L = /* @__PURE__ */ f({
52
52
  }, {
53
53
  default: v(() => [
54
54
  g("div", h, [
55
- e.type === "dropdown" && e.data ? (d(), i(C, {
55
+ e.type === "dropdown" && e.data ? (d(), i(q, {
56
56
  key: 0,
57
57
  modelValue: n.value,
58
58
  "onUpdate:modelValue": a[0] || (a[0] = (l) => n.value = l),
@@ -77,7 +77,7 @@ const h = { class: "fresh-booking-action-field" }, L = /* @__PURE__ */ f({
77
77
  required: e.required,
78
78
  placeholder: e.placeholder
79
79
  }, null, 8, ["modelValue", "id", "name", "required", "placeholder"])),
80
- q(k, {
80
+ k(B, {
81
81
  "data-test": `${e.name}Submit`,
82
82
  icon: e.buttonIcon,
83
83
  label: e.buttonLabel,
@@ -95,7 +95,7 @@ const h = { class: "fresh-booking-action-field" }, L = /* @__PURE__ */ f({
95
95
  }, 8, ["label", "id", "icon", "icon-type", "required", "type", "readonly"]));
96
96
  }
97
97
  });
98
- const U = /* @__PURE__ */ I(L, [["__scopeId", "data-v-07d4466b"]]);
98
+ const U = /* @__PURE__ */ C(L, [["__scopeId", "data-v-07d4466b"]]);
99
99
  export {
100
100
  U as A
101
101
  };
Binary file
@@ -1 +1 @@
1
- "use strict";const l=require("./SelectField.vue_vue_type_style_index_0_lang-4755fb8a.cjs"),s=require("./TextField-6f7e37d9.cjs"),y=require("./NumberField.vue_vue_type_script_setup_true_lang-50fc08f1.cjs"),b={class:"fresh-booking-action-field"},f=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:c}){const i=c,t=p,a=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 m(){i("action")}return(e,o)=>(l.openBlock(),l.createBlock(l.InputField,{label:e.label,id:l.unref(a),icon:e.icon,"icon-type":e.iconType,required:e.required,type:e.type,readonly:e.readonly},{default:l.withCtx(()=>[l.createBaseVNode("div",b,[e.type==="dropdown"&&e.data?(l.openBlock(),l.createBlock(s._sfc_main,{key:0,modelValue:d.value,"onUpdate:modelValue":o[0]||(o[0]=n=>d.value=n),id:l.unref(a),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(y._sfc_main,{key:1,modelValue:r.value,"onUpdate:modelValue":o[1]||(o[1]=n=>r.value=n),id:l.unref(a),"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]=n=>d.value=n),id:l.unref(a),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]=n=>m())},null,8,["data-test","icon","label","icon-color","styling","is-loading","disabled","secondary"])])]),_:1},8,["label","id","icon","icon-type","required","type","readonly"]))}});const V=l._export_sfc(f,[["__scopeId","data-v-07d4466b"]]);exports.ActionField=V;
1
+ "use strict";const l=require("./SelectField.vue_vue_type_style_index_0_lang-b92d158e.cjs"),m=require("./TextField-52bc45b8.cjs"),y=require("./NumberField.vue_vue_type_script_setup_true_lang-8525b2cd.cjs"),b={class:"fresh-booking-action-field"},f=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(s,{emit:p}){const i=p,t=s,a=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(a),icon:e.icon,"icon-type":e.iconType,required:e.required,type:e.type,readonly:e.readonly},{default:l.withCtx(()=>[l.createBaseVNode("div",b,[e.type==="dropdown"&&e.data?(l.openBlock(),l.createBlock(l._sfc_main,{key:0,modelValue:d.value,"onUpdate:modelValue":o[0]||(o[0]=n=>d.value=n),id:l.unref(a),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(y._sfc_main,{key:1,modelValue:r.value,"onUpdate:modelValue":o[1]||(o[1]=n=>r.value=n),id:l.unref(a),"min-value":e.minValue,"max-value":e.maxValue},null,8,["modelValue","id","min-value","max-value"])):(l.openBlock(),l.createBlock(m.TextField,{key:2,modelValue:d.value,"onUpdate:modelValue":o[2]||(o[2]=n=>d.value=n),id:l.unref(a),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]=n=>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 V=l._export_sfc(f,[["__scopeId","data-v-07d4466b"]]);exports.ActionField=V;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-b92d158e.cjs"),m=require("./DateField.vue_vue_type_style_index_0_lang-41b83959.cjs"),V=require("./NumberField.vue_vue_type_script_setup_true_lang-8525b2cd.cjs"),x=require("./_-f5fc7dd6.cjs"),_=require("./Field-c8c55b91.cjs"),A=["onSubmit"],w=e.defineComponent({__name:"_",props:{type:{default:"submit"}},emits:["submit"],setup(p,{emit:a}){const n=e.ref(!1),s=a,d=p,{verifyRecaptcha:o}=e.useUtilityStore();function r(){n.value=!0,o({callback:v,type:d.type}).then(()=>n.value=!1)}function v(){s("submit")}return(y,b)=>(e.openBlock(),e.createElementBlock("form",{onSubmit:e.withModifiers(r,["prevent"])},[e.renderSlot(y.$slots,"default",{isLoading:n.value})],40,A))}}),C={id:"fresh-booking-availability-date-selection"},$={key:0,id:"fresh-booking-availability-guest-selection"},E={id:"fresh-booking-availability-confirmation"},R=e.defineComponent({__name:"HotelAvailabilityForm",props:{booking:{type:Boolean,default:!1},link:{}},setup(p){const{t:a}=e.useI18n(),n=p,{adults:s,children:d,arrivalDate:o,departureDate:r,location:v,isExpired:y}=e.storeToRefs(m.useAvailabilityStore()),{reset:b}=m.useAvailabilityStore(),{fetchAvailabilityData:S}=m.useHotelStore(),{areListingsLoading:F,hotelList:D}=e.storeToRefs(m.useHotelStore()),{firstSelectableDateOffset:k,lastSelectableDateOffset:g,disableChildSelection:c,disableAdultSelection:u}=e.storeToRefs(e.useUtilityStore()),f=e.ref([]),z=e.computed(()=>new Date(new Date().setDate(new Date().getDate()+(k.value-1)))),M=e.computed(()=>new Date(new Date().setDate(new Date().getDate()+g.value))),j=e.computed(()=>new Date(new Date().setDate(o.value.getDate()+k.value))),G=e.computed(()=>new Date(new Date().setDate(o.value.getDate()+(g.value+1)))),h=e.computed(()=>!(!u&&s.value===0));function B(){n.booking===!1?window.location.replace(n.link):h.value&&S()}return e.watch(o,i=>{const t=new Date(new Date(i).setDate(new Date(i).getDate()+1));new Date(r.value)<t&&(r.value=t)}),e.watch(f,i=>{o.value=i[0],r.value=i[1]}),e.onMounted(()=>{y.value&&n.booking&&b(),f.value=[o.value,r.value]}),(i,t)=>(e.openBlock(),e.createBlock(w,{id:"konnectio-availability-form",class:e.normalizeClass({reservation:i.booking}),type:"availability",onSubmit:B},{default:e.withCtx(({isLoading:N})=>[e.unref(D)?(e.openBlock(),e.createBlock(e._sfc_main,{key:0,modelValue:e.unref(v),"onUpdate:modelValue":t[0]||(t[0]=l=>e.isRef(v)?v.value=l:null),label:e.unref(a)("general.location"),icon:"location-dot","icon-type":"fas","icon-placement":"label",options:e.unref(D),style:{marginBottom:"15px"}},null,8,["modelValue","label","options"])):e.createCommentVNode("",!0),e.createBaseVNode("ul",{id:"konnectio-availability-form-content",class:e.normalizeClass([{"is-not-booking-page":!i.booking},{"only-adult-guests":!e.unref(u)&&e.unref(c)},{"only-child-guests":!e.unref(c)&&e.unref(u)},{"no-guests":e.unref(u)&&e.unref(c)},{"all-guests":!e.unref(u)&&!e.unref(c)}])},[e.createBaseVNode("li",C,[e.createVNode(m._sfc_main,{modelValue:f.value,"onUpdate:modelValue":t[1]||(t[1]=l=>f.value=l),label:e.unref(a)("availability.checkInOut"),"icon-type":"fas","icon-placement":"label","min-range":1,range:""},null,8,["modelValue","label"]),e.createCommentVNode("",!0)]),!e.unref(u)||!e.unref(c)?(e.openBlock(),e.createElementBlock("li",$,[e.unref(u)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(V._sfc_main,{key:0,modelValue:e.unref(s),"onUpdate:modelValue":t[4]||(t[4]=l=>e.isRef(s)?s.value=l:null),label:e.unref(a)("availability.adults"),"icon-type":"fas","icon-placement":"label",name:"adults",icon:"male"},null,8,["modelValue","label"])),e.unref(c)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(V._sfc_main,{key:1,modelValue:e.unref(d),"onUpdate:modelValue":t[5]||(t[5]=l=>e.isRef(d)?d.value=l:null),label:e.unref(a)("availability.children"),"icon-type":"fas","icon-placement":"label",name:"children",icon:"child"},null,8,["modelValue","label"]))])):e.createCommentVNode("",!0),e.createBaseVNode("li",E,[e.createVNode(e.Clickable,{type:"submit",label:e.unref(a)("availability.buttonLabel"),disabled:!h.value,"is-loading":e.unref(F)||N},null,8,["label","disabled","is-loading"])])],2)]),_:1},8,["class"]))}});const U=e._export_sfc(R,[["__scopeId","data-v-a8d56da3"]]),q={class:"availability-skeleton"},H={key:0,class:"availability-skeleton-navigation"},L={key:1,class:"availability-skeleton-hotel"},I={key:2,class:"availability-skeleton-event"},O=e.defineComponent({__name:"AvailabilitySkeleton",props:{view:{default:"hotel"}},setup(p){return(a,n)=>(e.openBlock(),e.createElementBlock("div",q,[a.view==="both"?(e.openBlock(),e.createElementBlock("div",H,[e.createVNode(x.Element,{height:"28px",width:"60px","border-radius":"20px"}),e.createVNode(x.Element,{height:"28px",width:"60px","border-radius":"20px"})])):e.createCommentVNode("",!0),a.view!=="event"?(e.openBlock(),e.createElementBlock("div",L,[e.createVNode(_.Field,{"with-icon":""}),e.createVNode(_.Field,{"with-icon":""}),e.createVNode(_.Field,{"with-icon":""}),e.createVNode(_.Field,{"with-icon":"","no-label":""})])):(e.openBlock(),e.createElementBlock("div",I,[e.createVNode(_.Field,{"with-icon":""}),e.createVNode(_.Field,{"with-icon":"","no-label":""})]))]))}});const T=e._export_sfc(O,[["__scopeId","data-v-c266ccbc"]]);exports.AvailabilitySkeleton=T;exports.HotelAvailabilityForm=U;exports._sfc_main=w;
@@ -0,0 +1,189 @@
1
+ import { h as $, r as I, a as O, k as i, q as b, a8 as G, H as J, z as K, s as w, c as y, a0 as F, o as P, l as k, w as Q, n as e, y as W, B as V, t as p, x, m as l, C as X, v as H, _ as q } from "./SelectField.vue_vue_type_style_index_0_lang-ba987c3e.js";
2
+ import { u as L, a as R, _ as Y } from "./DateField.vue_vue_type_style_index_0_lang-c5873e66.js";
3
+ import { _ as E } from "./NumberField.vue_vue_type_script_setup_true_lang-001ceb59.js";
4
+ import { E as N } from "./_-66cf2aa1.js";
5
+ import { F as v } from "./Field-0b82e3dc.js";
6
+ const Z = ["onSubmit"], ee = /* @__PURE__ */ $({
7
+ __name: "_",
8
+ props: {
9
+ type: { default: "submit" }
10
+ },
11
+ emits: ["submit"],
12
+ setup(D, { emit: t }) {
13
+ const o = I(!1), c = t, f = D, { verifyRecaptcha: r } = O();
14
+ function d() {
15
+ o.value = !0, r({
16
+ callback: _,
17
+ type: f.type
18
+ }).then(() => o.value = !1);
19
+ }
20
+ function _() {
21
+ c("submit");
22
+ }
23
+ return (g, A) => (i(), b("form", {
24
+ onSubmit: J(d, ["prevent"])
25
+ }, [
26
+ G(g.$slots, "default", { isLoading: o.value })
27
+ ], 40, Z));
28
+ }
29
+ }), ae = { id: "fresh-booking-availability-date-selection" }, te = {
30
+ key: 0,
31
+ id: "fresh-booking-availability-guest-selection"
32
+ }, le = { id: "fresh-booking-availability-confirmation" }, ie = /* @__PURE__ */ $({
33
+ __name: "HotelAvailabilityForm",
34
+ props: {
35
+ booking: { type: Boolean, default: !1 },
36
+ link: {}
37
+ },
38
+ setup(D) {
39
+ const { t } = K(), o = D, {
40
+ adults: c,
41
+ children: f,
42
+ arrivalDate: r,
43
+ departureDate: d,
44
+ location: _,
45
+ isExpired: g
46
+ } = w(L()), { reset: A } = L(), { fetchAvailabilityData: z } = R(), { areListingsLoading: M, hotelList: S } = w(R()), {
47
+ firstSelectableDateOffset: B,
48
+ lastSelectableDateOffset: C,
49
+ disableChildSelection: m,
50
+ disableAdultSelection: u
51
+ } = w(O()), h = I([]), ce = y(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (B.value - 1)))), de = y(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + C.value))), me = y(() => new Date((/* @__PURE__ */ new Date()).setDate(r.value.getDate() + B.value))), ve = y(() => new Date((/* @__PURE__ */ new Date()).setDate(r.value.getDate() + (C.value + 1)))), U = y(() => !(!u && c.value === 0));
52
+ function T() {
53
+ o.booking === !1 ? window.location.replace(o.link) : U.value && z();
54
+ }
55
+ return F(r, (s) => {
56
+ const a = new Date(new Date(s).setDate(new Date(s).getDate() + 1));
57
+ new Date(d.value) < a && (d.value = a);
58
+ }), F(h, (s) => {
59
+ r.value = s[0], d.value = s[1];
60
+ }), P(() => {
61
+ g.value && o.booking && A(), h.value = [r.value, d.value];
62
+ }), (s, a) => (i(), k(ee, {
63
+ id: "konnectio-availability-form",
64
+ class: H({ reservation: s.booking }),
65
+ type: "availability",
66
+ onSubmit: T
67
+ }, {
68
+ default: Q(({ isLoading: j }) => [
69
+ e(S) ? (i(), k(W, {
70
+ key: 0,
71
+ modelValue: e(_),
72
+ "onUpdate:modelValue": a[0] || (a[0] = (n) => V(_) ? _.value = n : null),
73
+ label: e(t)("general.location"),
74
+ icon: "location-dot",
75
+ "icon-type": "fas",
76
+ "icon-placement": "label",
77
+ options: e(S),
78
+ style: { marginBottom: "15px" }
79
+ }, null, 8, ["modelValue", "label", "options"])) : p("", !0),
80
+ x("ul", {
81
+ id: "konnectio-availability-form-content",
82
+ class: H([
83
+ { "is-not-booking-page": !s.booking },
84
+ { "only-adult-guests": !e(u) && e(m) },
85
+ { "only-child-guests": !e(m) && e(u) },
86
+ { "no-guests": e(u) && e(m) },
87
+ { "all-guests": !e(u) && !e(m) }
88
+ ])
89
+ }, [
90
+ x("li", ae, [
91
+ l(Y, {
92
+ modelValue: h.value,
93
+ "onUpdate:modelValue": a[1] || (a[1] = (n) => h.value = n),
94
+ label: e(t)("availability.checkInOut"),
95
+ "icon-type": "fas",
96
+ "icon-placement": "label",
97
+ "min-range": 1,
98
+ range: ""
99
+ }, null, 8, ["modelValue", "label"]),
100
+ p("", !0)
101
+ ]),
102
+ !e(u) || !e(m) ? (i(), b("li", te, [
103
+ e(u) ? p("", !0) : (i(), k(E, {
104
+ key: 0,
105
+ modelValue: e(c),
106
+ "onUpdate:modelValue": a[4] || (a[4] = (n) => V(c) ? c.value = n : null),
107
+ label: e(t)("availability.adults"),
108
+ "icon-type": "fas",
109
+ "icon-placement": "label",
110
+ name: "adults",
111
+ icon: "male"
112
+ }, null, 8, ["modelValue", "label"])),
113
+ e(m) ? p("", !0) : (i(), k(E, {
114
+ key: 1,
115
+ modelValue: e(f),
116
+ "onUpdate:modelValue": a[5] || (a[5] = (n) => V(f) ? f.value = n : null),
117
+ label: e(t)("availability.children"),
118
+ "icon-type": "fas",
119
+ "icon-placement": "label",
120
+ name: "children",
121
+ icon: "child"
122
+ }, null, 8, ["modelValue", "label"]))
123
+ ])) : p("", !0),
124
+ x("li", le, [
125
+ l(X, {
126
+ type: "submit",
127
+ label: e(t)("availability.buttonLabel"),
128
+ disabled: !U.value,
129
+ "is-loading": e(M) || j
130
+ }, null, 8, ["label", "disabled", "is-loading"])
131
+ ])
132
+ ], 2)
133
+ ]),
134
+ _: 1
135
+ }, 8, ["class"]));
136
+ }
137
+ });
138
+ const De = /* @__PURE__ */ q(ie, [["__scopeId", "data-v-a8d56da3"]]), ne = { class: "availability-skeleton" }, oe = {
139
+ key: 0,
140
+ class: "availability-skeleton-navigation"
141
+ }, se = {
142
+ key: 1,
143
+ class: "availability-skeleton-hotel"
144
+ }, re = {
145
+ key: 2,
146
+ class: "availability-skeleton-event"
147
+ }, ue = /* @__PURE__ */ $({
148
+ __name: "AvailabilitySkeleton",
149
+ props: {
150
+ view: { default: "hotel" }
151
+ },
152
+ setup(D) {
153
+ return (t, o) => (i(), b("div", ne, [
154
+ t.view === "both" ? (i(), b("div", oe, [
155
+ l(N, {
156
+ height: "28px",
157
+ width: "60px",
158
+ "border-radius": "20px"
159
+ }),
160
+ l(N, {
161
+ height: "28px",
162
+ width: "60px",
163
+ "border-radius": "20px"
164
+ })
165
+ ])) : p("", !0),
166
+ t.view !== "event" ? (i(), b("div", se, [
167
+ l(v, { "with-icon": "" }),
168
+ l(v, { "with-icon": "" }),
169
+ l(v, { "with-icon": "" }),
170
+ l(v, {
171
+ "with-icon": "",
172
+ "no-label": ""
173
+ })
174
+ ])) : (i(), b("div", re, [
175
+ l(v, { "with-icon": "" }),
176
+ l(v, {
177
+ "with-icon": "",
178
+ "no-label": ""
179
+ })
180
+ ]))
181
+ ]));
182
+ }
183
+ });
184
+ const he = /* @__PURE__ */ q(ue, [["__scopeId", "data-v-c266ccbc"]]);
185
+ export {
186
+ he as A,
187
+ De as H,
188
+ ee as _
189
+ };