@konnectio/core 4.0.19 → 4.0.20

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 (65) hide show
  1. package/dist/{ActionField-656d204b.cjs → ActionField-11f4ccee.cjs} +1 -1
  2. package/dist/{ActionField-4cb5a734.js → ActionField-b64a1572.js} +8 -8
  3. package/dist/ActionField-b64a1572.js.br +0 -0
  4. package/dist/{AvailabilitySkeleton-00f7fc68.js → AvailabilitySkeleton-7e2eb59c.js} +5 -5
  5. package/dist/AvailabilitySkeleton-7e2eb59c.js.br +0 -0
  6. package/dist/{AvailabilitySkeleton-8fc17074.cjs → AvailabilitySkeleton-7ffbfe43.cjs} +1 -1
  7. package/dist/{DateField.vue_vue_type_style_index_0_lang-36b7ee9e.js → DateField.vue_vue_type_style_index_0_lang-02fb5e5b.js} +6 -6
  8. package/dist/DateField.vue_vue_type_style_index_0_lang-02fb5e5b.js.br +0 -0
  9. package/dist/{DateField.vue_vue_type_style_index_0_lang-ef9c83d6.cjs → DateField.vue_vue_type_style_index_0_lang-c71c3980.cjs} +2 -2
  10. package/dist/{Field-e1af1bbc.js → Field-b1950c55.js} +2 -2
  11. package/dist/Field-b1950c55.js.br +0 -0
  12. package/dist/{Field-4283160f.cjs → Field-efcdcec2.cjs} +1 -1
  13. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-a517b062.cjs → NumberField.vue_vue_type_script_setup_true_lang-4edef708.cjs} +1 -1
  14. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-eb9876fc.js → NumberField.vue_vue_type_script_setup_true_lang-d5f3da80.js} +2 -2
  15. package/dist/NumberField.vue_vue_type_script_setup_true_lang-d5f3da80.js.br +0 -0
  16. package/dist/{SelectField.vue_vue_type_style_index_0_lang-1c999286.js → SelectField.vue_vue_type_style_index_0_lang-3fb22f7d.js} +35 -35
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-3fb22f7d.js.br +0 -0
  18. package/dist/{SelectField.vue_vue_type_style_index_0_lang-af7c016a.cjs → SelectField.vue_vue_type_style_index_0_lang-5d0dffb8.cjs} +8 -8
  19. package/dist/{ThankYou-01175a37.cjs → ThankYou-74362b99.cjs} +2 -2
  20. package/dist/{ThankYou-0860a0ab.js → ThankYou-aa12ca2d.js} +8 -8
  21. package/dist/ThankYou-aa12ca2d.js.br +0 -0
  22. package/dist/{_-b5842a21.cjs → _-29774432.cjs} +1 -1
  23. package/dist/{_-6db0e1a4.js → _-4e24cc83.js} +1 -1
  24. package/dist/_-4e24cc83.js.br +0 -0
  25. package/dist/availability.cjs +1 -1
  26. package/dist/availability.js +7 -7
  27. package/dist/availability.js.br +0 -0
  28. package/dist/components/forms/ReservationForm.vue.d.ts +1 -1
  29. package/dist/components/inputs/grouped/ActionField.vue.d.ts +1 -1
  30. package/dist/components/inputs/grouped/NameField.vue.d.ts +1 -1
  31. package/dist/components/listings/Hotel.vue.d.ts +1 -1
  32. package/dist/{event-c717dc05.cjs → event-35c4accb.cjs} +1 -1
  33. package/dist/{event-52fce8cc.js → event-9664d920.js} +9 -9
  34. package/dist/event-9664d920.js.br +0 -0
  35. package/dist/event.cjs +1 -1
  36. package/dist/event.js +8 -8
  37. package/dist/event.js.br +0 -0
  38. package/dist/gift-card-validation.cjs +1 -1
  39. package/dist/gift-card-validation.js +3 -3
  40. package/dist/gift-card-validation.js.br +0 -0
  41. package/dist/gift-card.cjs +1 -1
  42. package/dist/gift-card.js +5 -5
  43. package/dist/gift-card.js.br +0 -0
  44. package/dist/hotel.cjs +5 -5
  45. package/dist/hotel.js +1170 -1261
  46. package/dist/hotel.js.br +0 -0
  47. package/dist/{index-4aff7f4e.js → index-61423a7a.js} +1 -1
  48. package/dist/index-61423a7a.js.br +0 -0
  49. package/dist/{index-5d223c1a.cjs → index-c6a01479.cjs} +1 -1
  50. package/dist/polyfill.cjs +1 -1
  51. package/dist/polyfill.js +1 -1
  52. package/dist/polyfill.js.br +0 -0
  53. package/dist/style.css +1 -1
  54. package/dist/style.css.br +0 -0
  55. package/package.json +1 -1
  56. package/dist/ActionField-4cb5a734.js.br +0 -0
  57. package/dist/AvailabilitySkeleton-00f7fc68.js.br +0 -0
  58. package/dist/DateField.vue_vue_type_style_index_0_lang-36b7ee9e.js.br +0 -0
  59. package/dist/Field-e1af1bbc.js.br +0 -0
  60. package/dist/NumberField.vue_vue_type_script_setup_true_lang-eb9876fc.js.br +0 -0
  61. package/dist/SelectField.vue_vue_type_style_index_0_lang-1c999286.js.br +0 -0
  62. package/dist/ThankYou-0860a0ab.js.br +0 -0
  63. package/dist/_-6db0e1a4.js.br +0 -0
  64. package/dist/event-52fce8cc.js.br +0 -0
  65. package/dist/index-4aff7f4e.js.br +0 -0
@@ -1 +1 @@
1
- "use strict";const l=require("./SelectField.vue_vue_type_style_index_0_lang-af7c016a.cjs"),c=require("./NumberField.vue_vue_type_script_setup_true_lang-a517b062.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(s,{emit:p}){const i=p,t=s,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 m(){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(l._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(c._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(l.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=>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 f=l._export_sfc(b,[["__scopeId","data-v-07d4466b"]]);exports.ActionField=f;
1
+ "use strict";const l=require("./SelectField.vue_vue_type_style_index_0_lang-5d0dffb8.cjs"),m=require("./NumberField.vue_vue_type_script_setup_true_lang-4edef708.cjs"),y={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,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(l._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(l.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 b=l._export_sfc(f,[["__scopeId","data-v-ad281c18"]]);exports.ActionField=b;
@@ -1,6 +1,6 @@
1
- import { h as f, j as V, c as m, k as d, l as i, w as v, x as g, y as q, n as t, T as k, m as B, C as I, I as C, _ as F } from "./SelectField.vue_vue_type_style_index_0_lang-1c999286.js";
2
- import { _ as A } from "./NumberField.vue_vue_type_script_setup_true_lang-eb9876fc.js";
3
- const h = { class: "fresh-booking-action-field" }, L = /* @__PURE__ */ f({
1
+ import { h as b, j as V, c as m, k as d, l as i, w as v, x as g, y as q, n as t, T as k, m as B, C as I, I as C, _ as F } from "./SelectField.vue_vue_type_style_index_0_lang-3fb22f7d.js";
2
+ import { _ as A } from "./NumberField.vue_vue_type_script_setup_true_lang-d5f3da80.js";
3
+ const h = { class: "fresh-booking-action-field" }, L = /* @__PURE__ */ b({
4
4
  __name: "ActionField",
5
5
  props: {
6
6
  modelValue: {},
@@ -25,8 +25,8 @@ const h = { class: "fresh-booking-action-field" }, L = /* @__PURE__ */ f({
25
25
  isLoading: { type: Boolean, default: !1 }
26
26
  },
27
27
  emits: ["update:modelValue", "action"],
28
- setup(y, { emit: b }) {
29
- const s = b, u = y, o = u.id || V();
28
+ setup(y, { emit: c }) {
29
+ const s = c, u = y, o = u.id || V();
30
30
  function r(e) {
31
31
  s("update:modelValue", e);
32
32
  }
@@ -37,7 +37,7 @@ const h = { class: "fresh-booking-action-field" }, L = /* @__PURE__ */ f({
37
37
  get: () => u.modelValue,
38
38
  set: (e) => r(e)
39
39
  });
40
- function c() {
40
+ function f() {
41
41
  s("action");
42
42
  }
43
43
  return (e, a) => (d(), i(C, {
@@ -86,7 +86,7 @@ const h = { class: "fresh-booking-action-field" }, L = /* @__PURE__ */ f({
86
86
  "is-loading": e.isLoading,
87
87
  disabled: e.buttonDisabled,
88
88
  secondary: e.secondary,
89
- onClickEvent: a[3] || (a[3] = (l) => c())
89
+ onClickEvent: a[3] || (a[3] = (l) => f())
90
90
  }, null, 8, ["data-test", "icon", "label", "icon-color", "styling", "is-loading", "disabled", "secondary"])
91
91
  ])
92
92
  ]),
@@ -94,7 +94,7 @@ const h = { class: "fresh-booking-action-field" }, L = /* @__PURE__ */ f({
94
94
  }, 8, ["label", "id", "icon", "icon-type", "required", "type", "readonly"]));
95
95
  }
96
96
  });
97
- const w = /* @__PURE__ */ F(L, [["__scopeId", "data-v-07d4466b"]]);
97
+ const w = /* @__PURE__ */ F(L, [["__scopeId", "data-v-ad281c18"]]);
98
98
  export {
99
99
  w as A
100
100
  };
Binary file
@@ -1,8 +1,8 @@
1
- import { h as S, r as O, a as T, k as l, q as u, a9 as Q, H as W, z as X, s as x, c as b, a1 as C, o as Y, l as D, w as Z, x as $, n as e, m as s, B as k, y as ee, t as _, a2 as F, T as H, C as ae, v as R, f as le, _ as q } from "./SelectField.vue_vue_type_style_index_0_lang-1c999286.js";
2
- import { u as E, a as N, _ as te } from "./DateField.vue_vue_type_style_index_0_lang-36b7ee9e.js";
3
- import { _ as I } from "./NumberField.vue_vue_type_script_setup_true_lang-eb9876fc.js";
4
- import { E as z } from "./_-6db0e1a4.js";
5
- import { F as f } from "./Field-e1af1bbc.js";
1
+ import { h as S, r as O, a as T, k as l, q as u, a9 as Q, H as W, z as X, s as x, c as b, a1 as C, o as Y, l as D, w as Z, x as $, n as e, m as s, B as k, y as ee, t as _, a2 as F, T as H, C as ae, v as R, f as le, _ as q } from "./SelectField.vue_vue_type_style_index_0_lang-3fb22f7d.js";
2
+ import { u as E, a as N, _ as te } from "./DateField.vue_vue_type_style_index_0_lang-02fb5e5b.js";
3
+ import { _ as I } from "./NumberField.vue_vue_type_script_setup_true_lang-d5f3da80.js";
4
+ import { E as z } from "./_-4e24cc83.js";
5
+ import { F as f } from "./Field-b1950c55.js";
6
6
  const ie = ["onSubmit"], ne = /* @__PURE__ */ S({
7
7
  __name: "_",
8
8
  props: {
@@ -1 +1 @@
1
- "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-af7c016a.cjs"),m=require("./DateField.vue_vue_type_style_index_0_lang-ef9c83d6.cjs"),h=require("./NumberField.vue_vue_type_script_setup_true_lang-a517b062.cjs"),x=require("./_-b5842a21.cjs"),_=require("./Field-4283160f.cjs"),E=["onSubmit"],w=e.defineComponent({__name:"_",props:{type:{default:"submit"}},emits:["submit"],setup(p,{emit:n}){const l=e.ref(!1),o=n,u=p,{verifyRecaptcha:c}=e.useUtilityStore();function r(){l.value=!0,c({callback:v,type:u.type}).then(()=>l.value=!1)}function v(){o("submit")}return(b,k)=>(e.openBlock(),e.createElementBlock("form",{onSubmit:e.withModifiers(r,["prevent"])},[e.renderSlot(b.$slots,"default",{isLoading:l.value})],40,E))}}),R={key:0,class:"konnectio-availability-location"},$={id:"fresh-booking-availability-date-selection"},L={key:1,id:"fresh-booking-availability-guest-selection"},U={id:"fresh-booking-availability-confirmation"},H=e.defineComponent({__name:"HotelAvailabilityForm",props:{booking:{type:Boolean,default:!1},link:{}},setup(p){const{t:n}=e.useI18n(),l=p,{adults:o,children:u,arrivalDate:c,departureDate:r,location:v,isExpired:b}=e.storeToRefs(m.useAvailabilityStore()),{reset:k}=m.useAvailabilityStore(),{fetchAvailabilityData:B}=m.useHotelStore(),{areListingsLoading:F,hotelList:S,hasHotelList:f}=e.storeToRefs(m.useHotelStore()),{firstSelectableDateOffset:g,lastSelectableDateOffset:D,disableChildSelection:d,disableAdultSelection:s}=e.storeToRefs(e.useUtilityStore()),y=e.ref([]),G=e.computed(()=>new Date(new Date().setDate(new Date().getDate()+(g.value-1)))),J=e.computed(()=>new Date(new Date().setDate(new Date().getDate()+D.value))),K=e.computed(()=>new Date(new Date().setDate(c.value.getDate()+g.value))),P=e.computed(()=>new Date(new Date().setDate(c.value.getDate()+(D.value+1)))),V=e.computed(()=>!(!s&&o.value===0)),N=e.computed(()=>typeof l.link!="string");function A(){if(l.booking===!1)if(N.value){const i=e.getUserLanguage();l.link[i]?window.location.replace(l.link[i]):l.link.en?window.location.replace(l.link.en):console.log("Sprog understøttes ikke")}else window.location.replace(l.link);else V.value&&B()}return e.watch(c,i=>{const t=new Date(new Date(i).setDate(new Date(i).getDate()+1));new Date(r.value)<t&&(r.value=t)}),e.watch(y,i=>{c.value=i[0],r.value=i[1]}),e.onMounted(()=>{b.value&&l.booking&&k(),y.value=[c.value,r.value]}),(i,t)=>(e.openBlock(),e.createBlock(w,{id:"konnectio-availability-form",class:e.normalizeClass({reservation:i.booking}),type:"availability",onSubmit:A},{default:e.withCtx(({isLoading:C})=>[e.createBaseVNode("ul",{id:"konnectio-availability-form-content",class:e.normalizeClass([{"is-not-booking-page":!i.booking},{"only-adult-guests":!e.unref(s)&&e.unref(d)},{"only-child-guests":!e.unref(d)&&e.unref(s)},{"no-guests":e.unref(s)&&e.unref(d)},{"all-guests":!e.unref(s)&&!e.unref(d)},{"has-location":e.unref(f)}])},[e.unref(f)?(e.openBlock(),e.createElementBlock("li",R,[e.createVNode(e._sfc_main,{modelValue:e.unref(v),"onUpdate:modelValue":t[0]||(t[0]=a=>e.isRef(v)?v.value=a:null),label:e.unref(n)("general.location"),icon:"location-dot","icon-type":"fas","icon-placement":"label",options:e.unref(S),searchable:!1},null,8,["modelValue","label","options"])])):e.createCommentVNode("",!0),e.createBaseVNode("li",$,[e.createVNode(m._sfc_main,{modelValue:y.value,"onUpdate:modelValue":t[1]||(t[1]=a=>y.value=a),label:e.unref(n)("availability.checkInOut"),"icon-type":"fas","icon-placement":"label","min-range":1,range:""},null,8,["modelValue","label"]),e.createCommentVNode("",!0)]),!e.unref(s)||!e.unref(d)?(e.openBlock(),e.createElementBlock("li",L,[e.unref(s)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.unref(f)?(e.openBlock(),e.createBlock(e.TextField,{key:0,modelValue:e.unref(o),"onUpdate:modelValue":t[4]||(t[4]=a=>e.isRef(o)?o.value=a:null),label:e.unref(n)("availability.adults"),"icon-type":"fas","icon-placement":"label",name:"adults",icon:"male"},null,8,["modelValue","label"])):(e.openBlock(),e.createBlock(h._sfc_main,{key:1,modelValue:e.unref(o),"onUpdate:modelValue":t[5]||(t[5]=a=>e.isRef(o)?o.value=a:null),label:e.unref(n)("availability.adults"),"icon-type":"fas","icon-placement":"label",name:"adults",icon:"male"},null,8,["modelValue","label"]))],64)),e.unref(d)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.unref(f)?(e.openBlock(),e.createBlock(e.TextField,{key:0,modelValue:e.unref(u),"onUpdate:modelValue":t[6]||(t[6]=a=>e.isRef(u)?u.value=a:null),label:e.unref(n)("availability.children"),"icon-type":"fas","icon-placement":"label",name:"children",icon:"child"},null,8,["modelValue","label"])):(e.openBlock(),e.createBlock(h._sfc_main,{key:1,modelValue:e.unref(u),"onUpdate:modelValue":t[7]||(t[7]=a=>e.isRef(u)?u.value=a:null),label:e.unref(n)("availability.children"),"icon-type":"fas","icon-placement":"label",name:"children",icon:"child"},null,8,["modelValue","label"]))],64))])):e.createCommentVNode("",!0),e.createBaseVNode("li",U,[e.createVNode(e.Clickable,{type:"submit",label:e.unref(n)("availability.buttonLabel"),disabled:!V.value,"is-loading":e.unref(F)||C},null,8,["label","disabled","is-loading"])])],2)]),_:1},8,["class"]))}});const q=e._export_sfc(H,[["__scopeId","data-v-4e84897d"]]),T={class:"availability-skeleton"},I={key:0,class:"availability-skeleton-navigation"},z={key:1,class:"availability-skeleton-hotel"},O={key:2,class:"availability-skeleton-event"},M=e.defineComponent({__name:"AvailabilitySkeleton",props:{view:{default:"hotel"}},setup(p){return(n,l)=>(e.openBlock(),e.createElementBlock("div",T,[n.view==="both"?(e.openBlock(),e.createElementBlock("div",I,[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),n.view!=="event"?(e.openBlock(),e.createElementBlock("div",z,[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",O,[e.createVNode(_.Field,{"with-icon":""}),e.createVNode(_.Field,{"with-icon":"","no-label":""})]))]))}});const j=e._export_sfc(M,[["__scopeId","data-v-c266ccbc"]]);exports.AvailabilitySkeleton=j;exports.HotelAvailabilityForm=q;exports._sfc_main=w;
1
+ "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-5d0dffb8.cjs"),m=require("./DateField.vue_vue_type_style_index_0_lang-c71c3980.cjs"),h=require("./NumberField.vue_vue_type_script_setup_true_lang-4edef708.cjs"),x=require("./_-29774432.cjs"),_=require("./Field-efcdcec2.cjs"),E=["onSubmit"],w=e.defineComponent({__name:"_",props:{type:{default:"submit"}},emits:["submit"],setup(p,{emit:n}){const l=e.ref(!1),o=n,u=p,{verifyRecaptcha:c}=e.useUtilityStore();function r(){l.value=!0,c({callback:v,type:u.type}).then(()=>l.value=!1)}function v(){o("submit")}return(b,k)=>(e.openBlock(),e.createElementBlock("form",{onSubmit:e.withModifiers(r,["prevent"])},[e.renderSlot(b.$slots,"default",{isLoading:l.value})],40,E))}}),R={key:0,class:"konnectio-availability-location"},$={id:"fresh-booking-availability-date-selection"},L={key:1,id:"fresh-booking-availability-guest-selection"},U={id:"fresh-booking-availability-confirmation"},H=e.defineComponent({__name:"HotelAvailabilityForm",props:{booking:{type:Boolean,default:!1},link:{}},setup(p){const{t:n}=e.useI18n(),l=p,{adults:o,children:u,arrivalDate:c,departureDate:r,location:v,isExpired:b}=e.storeToRefs(m.useAvailabilityStore()),{reset:k}=m.useAvailabilityStore(),{fetchAvailabilityData:B}=m.useHotelStore(),{areListingsLoading:F,hotelList:S,hasHotelList:f}=e.storeToRefs(m.useHotelStore()),{firstSelectableDateOffset:g,lastSelectableDateOffset:D,disableChildSelection:d,disableAdultSelection:s}=e.storeToRefs(e.useUtilityStore()),y=e.ref([]),G=e.computed(()=>new Date(new Date().setDate(new Date().getDate()+(g.value-1)))),J=e.computed(()=>new Date(new Date().setDate(new Date().getDate()+D.value))),K=e.computed(()=>new Date(new Date().setDate(c.value.getDate()+g.value))),P=e.computed(()=>new Date(new Date().setDate(c.value.getDate()+(D.value+1)))),V=e.computed(()=>!(!s&&o.value===0)),N=e.computed(()=>typeof l.link!="string");function A(){if(l.booking===!1)if(N.value){const i=e.getUserLanguage();l.link[i]?window.location.replace(l.link[i]):l.link.en?window.location.replace(l.link.en):console.log("Sprog understøttes ikke")}else window.location.replace(l.link);else V.value&&B()}return e.watch(c,i=>{const t=new Date(new Date(i).setDate(new Date(i).getDate()+1));new Date(r.value)<t&&(r.value=t)}),e.watch(y,i=>{c.value=i[0],r.value=i[1]}),e.onMounted(()=>{b.value&&l.booking&&k(),y.value=[c.value,r.value]}),(i,t)=>(e.openBlock(),e.createBlock(w,{id:"konnectio-availability-form",class:e.normalizeClass({reservation:i.booking}),type:"availability",onSubmit:A},{default:e.withCtx(({isLoading:C})=>[e.createBaseVNode("ul",{id:"konnectio-availability-form-content",class:e.normalizeClass([{"is-not-booking-page":!i.booking},{"only-adult-guests":!e.unref(s)&&e.unref(d)},{"only-child-guests":!e.unref(d)&&e.unref(s)},{"no-guests":e.unref(s)&&e.unref(d)},{"all-guests":!e.unref(s)&&!e.unref(d)},{"has-location":e.unref(f)}])},[e.unref(f)?(e.openBlock(),e.createElementBlock("li",R,[e.createVNode(e._sfc_main,{modelValue:e.unref(v),"onUpdate:modelValue":t[0]||(t[0]=a=>e.isRef(v)?v.value=a:null),label:e.unref(n)("general.location"),icon:"location-dot","icon-type":"fas","icon-placement":"label",options:e.unref(S),searchable:!1},null,8,["modelValue","label","options"])])):e.createCommentVNode("",!0),e.createBaseVNode("li",$,[e.createVNode(m._sfc_main,{modelValue:y.value,"onUpdate:modelValue":t[1]||(t[1]=a=>y.value=a),label:e.unref(n)("availability.checkInOut"),"icon-type":"fas","icon-placement":"label","min-range":1,range:""},null,8,["modelValue","label"]),e.createCommentVNode("",!0)]),!e.unref(s)||!e.unref(d)?(e.openBlock(),e.createElementBlock("li",L,[e.unref(s)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.unref(f)?(e.openBlock(),e.createBlock(e.TextField,{key:0,modelValue:e.unref(o),"onUpdate:modelValue":t[4]||(t[4]=a=>e.isRef(o)?o.value=a:null),label:e.unref(n)("availability.adults"),"icon-type":"fas","icon-placement":"label",name:"adults",icon:"male"},null,8,["modelValue","label"])):(e.openBlock(),e.createBlock(h._sfc_main,{key:1,modelValue:e.unref(o),"onUpdate:modelValue":t[5]||(t[5]=a=>e.isRef(o)?o.value=a:null),label:e.unref(n)("availability.adults"),"icon-type":"fas","icon-placement":"label",name:"adults",icon:"male"},null,8,["modelValue","label"]))],64)),e.unref(d)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.unref(f)?(e.openBlock(),e.createBlock(e.TextField,{key:0,modelValue:e.unref(u),"onUpdate:modelValue":t[6]||(t[6]=a=>e.isRef(u)?u.value=a:null),label:e.unref(n)("availability.children"),"icon-type":"fas","icon-placement":"label",name:"children",icon:"child"},null,8,["modelValue","label"])):(e.openBlock(),e.createBlock(h._sfc_main,{key:1,modelValue:e.unref(u),"onUpdate:modelValue":t[7]||(t[7]=a=>e.isRef(u)?u.value=a:null),label:e.unref(n)("availability.children"),"icon-type":"fas","icon-placement":"label",name:"children",icon:"child"},null,8,["modelValue","label"]))],64))])):e.createCommentVNode("",!0),e.createBaseVNode("li",U,[e.createVNode(e.Clickable,{type:"submit",label:e.unref(n)("availability.buttonLabel"),disabled:!V.value,"is-loading":e.unref(F)||C},null,8,["label","disabled","is-loading"])])],2)]),_:1},8,["class"]))}});const q=e._export_sfc(H,[["__scopeId","data-v-4e84897d"]]),T={class:"availability-skeleton"},I={key:0,class:"availability-skeleton-navigation"},z={key:1,class:"availability-skeleton-hotel"},O={key:2,class:"availability-skeleton-event"},M=e.defineComponent({__name:"AvailabilitySkeleton",props:{view:{default:"hotel"}},setup(p){return(n,l)=>(e.openBlock(),e.createElementBlock("div",T,[n.view==="both"?(e.openBlock(),e.createElementBlock("div",I,[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),n.view!=="event"?(e.openBlock(),e.createElementBlock("div",z,[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",O,[e.createVNode(_.Field,{"with-icon":""}),e.createVNode(_.Field,{"with-icon":"","no-label":""})]))]))}});const j=e._export_sfc(M,[["__scopeId","data-v-c266ccbc"]]);exports.AvailabilitySkeleton=j;exports.HotelAvailabilityForm=q;exports._sfc_main=w;
@@ -1,6 +1,6 @@
1
- import { d as qn, b as et, c as H, Y as jn, S as tt, s as rr, u as Bo, a as Wo, r as Z, g as Lo, e as nr, f as br, i as Zt, aG as sn, aH as Vo, av as xa, h as Qe, aB as zt, aI as Ha, o as ht, ah as Ht, aw as Sr, a1 as Bt, k as S, q as G, m as vt, W as rt, a3 as Ee, w as be, a9 as de, ao as qe, ap as ot, n as y, aj as Xe, B as dn, l as De, aJ as Or, aK as Fo, t as X, aa as ua, v as Ae, aq as qo, aL as cn, al as ye, x as he, H as Ne, a2 as _e, ak as wt, A as Ge, a5 as Ot, aM as jo, ae as Ua, af as Ea, aN as Qo, aO as zo, j as Go, I as Ko } from "./SelectField.vue_vue_type_style_index_0_lang-1c999286.js";
2
- import { u as Xo } from "./NumberField.vue_vue_type_script_setup_true_lang-eb9876fc.js";
3
- import { u as Zo } from "./_-6db0e1a4.js";
1
+ import { d as qn, b as et, c as H, Y as jn, S as tt, s as rr, u as Bo, a as Wo, r as Z, g as Lo, e as nr, f as br, i as Zt, aG as sn, aH as Vo, av as xa, h as Qe, aB as zt, aI as Ha, o as ht, ah as Ht, aw as Sr, a1 as Bt, k as S, q as G, m as vt, W as rt, a3 as Ee, w as be, a9 as de, ao as qe, ap as ot, n as y, aj as Xe, B as dn, l as De, aJ as Or, aK as Fo, t as X, aa as ua, v as Ae, aq as qo, aL as cn, al as ye, x as he, H as Ne, a2 as _e, ak as wt, A as Ge, a5 as Ot, aM as jo, ae as Ua, af as Ea, aN as Qo, aO as zo, j as Go, I as Ko } from "./SelectField.vue_vue_type_style_index_0_lang-3fb22f7d.js";
2
+ import { u as Xo } from "./NumberField.vue_vue_type_script_setup_true_lang-d5f3da80.js";
3
+ import { u as Zo } from "./_-4e24cc83.js";
4
4
  const vn = 2, mn = 0, fn = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 1)).setHours(12, 0, 0, 0)), pn = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 2)).setHours(12, 0, 0, 0)), hn = NaN, Jo = qn("availability", () => {
5
5
  const e = et("konnectio_expiry_date", /* @__PURE__ */ new Date(), void 0, { serializer: tt.date }), t = et("konnectio_adults", vn, void 0, { serializer: tt.number }), r = et("konnectio_children", mn, void 0, { serializer: tt.number }), n = et("konnectio_arrival_date", fn(), void 0, { serializer: tt.date }), a = et("konnectio_departure_date", pn(), void 0, { serializer: tt.date }), o = et("konnectio_location", hn, void 0, { serializer: tt.number });
6
6
  function l(k) {
@@ -172,7 +172,7 @@ const vn = 2, mn = 0, fn = () => new Date(new Date((/* @__PURE__ */ new Date()).
172
172
  headers: {
173
173
  Authorization: m.value,
174
174
  Accept: "application/json",
175
- "Fresh-Booking-Ver": "4.0.19"
175
+ "Fresh-Booking-Ver": "4.0.20"
176
176
  }
177
177
  })).data;
178
178
  d.value = z;
@@ -200,7 +200,7 @@ const vn = 2, mn = 0, fn = () => new Date(new Date((/* @__PURE__ */ new Date()).
200
200
  headers: {
201
201
  Authorization: m.value,
202
202
  Accept: "application/json",
203
- "Fresh-Booking-Ver": "4.0.19"
203
+ "Fresh-Booking-Ver": "4.0.20"
204
204
  }
205
205
  });
206
206
  re.status !== 200 ? r({
@@ -283,7 +283,7 @@ const vn = 2, mn = 0, fn = () => new Date(new Date((/* @__PURE__ */ new Date()).
283
283
  headers: {
284
284
  Authorization: m.value,
285
285
  Accept: "application/json",
286
- "Fresh-Booking-Ver": "4.0.19"
286
+ "Fresh-Booking-Ver": "4.0.20"
287
287
  }
288
288
  }).then((ge) => {
289
289
  p.value = !1, I.value = !1, e.pay({