@konnectio/core 4.0.24 → 4.0.26

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 (76) hide show
  1. package/dist/{ActionField-8ee667bd.cjs → ActionField-341a2fae.cjs} +1 -1
  2. package/dist/{ActionField-b2ee8f91.js → ActionField-e518ac9a.js} +2 -2
  3. package/dist/ActionField-e518ac9a.js.br +0 -0
  4. package/dist/AvailabilitySkeleton-29c1edbb.cjs +1 -0
  5. package/dist/{AvailabilitySkeleton-16a3be88.js → AvailabilitySkeleton-52c00b2c.js} +89 -81
  6. package/dist/AvailabilitySkeleton-52c00b2c.js.br +0 -0
  7. package/dist/{DateField.vue_vue_type_style_index_0_lang-a4abbe86.js → DateField.vue_vue_type_style_index_0_lang-7e9bf5a9.js} +2487 -2486
  8. package/dist/DateField.vue_vue_type_style_index_0_lang-7e9bf5a9.js.br +0 -0
  9. package/dist/DateField.vue_vue_type_style_index_0_lang-e3a9747e.cjs +5 -0
  10. package/dist/{Field-f5f98938.js → Field-a02a9614.js} +2 -2
  11. package/dist/Field-a02a9614.js.br +0 -0
  12. package/dist/{Field-877b4588.cjs → Field-a3929646.cjs} +1 -1
  13. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-f72da2f4.cjs → NumberField.vue_vue_type_script_setup_true_lang-0c2b2bf3.cjs} +1 -1
  14. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-5bf8b187.js → NumberField.vue_vue_type_script_setup_true_lang-7249ebd2.js} +2 -2
  15. package/dist/NumberField.vue_vue_type_script_setup_true_lang-7249ebd2.js.br +0 -0
  16. package/dist/{SelectField.vue_vue_type_style_index_0_lang-f136675d.js → SelectField.vue_vue_type_style_index_0_lang-b6764902.js} +2502 -2499
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-b6764902.js.br +0 -0
  18. package/dist/{SelectField.vue_vue_type_style_index_0_lang-727c44d8.cjs → SelectField.vue_vue_type_style_index_0_lang-cef08480.cjs} +36 -36
  19. package/dist/{ThankYou-f027d958.cjs → ThankYou-0777df9a.cjs} +6 -6
  20. package/dist/{ThankYou-58baa41d.js → ThankYou-35cb92aa.js} +39 -36
  21. package/dist/ThankYou-35cb92aa.js.br +0 -0
  22. package/dist/{_-e0a2fd6e.js → _-6878c22f.js} +1 -1
  23. package/dist/_-6878c22f.js.br +0 -0
  24. package/dist/{_-573e46fc.cjs → _-e84d1f5c.cjs} +1 -1
  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/Gallery.vue.d.ts +4 -0
  29. package/dist/components/Gallery.vue.d.ts.map +1 -0
  30. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +1 -1
  31. package/dist/components/inputs/InputField.vue.d.ts +1 -1
  32. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +3 -2
  33. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts.map +1 -1
  34. package/dist/components/listings/Hotel.vue.d.ts +1 -1
  35. package/dist/components/modals/Info.vue.d.ts +1 -1
  36. package/dist/{event-01f44344.cjs → event-6a63c75b.cjs} +1 -1
  37. package/dist/{event-3e48b8ad.js → event-9e559956.js} +9 -9
  38. package/dist/event-9e559956.js.br +0 -0
  39. package/dist/event.cjs +1 -1
  40. package/dist/event.js +8 -8
  41. package/dist/event.js.br +0 -0
  42. package/dist/gift-card-validation.cjs +1 -1
  43. package/dist/gift-card-validation.js +3 -3
  44. package/dist/gift-card-validation.js.br +0 -0
  45. package/dist/gift-card.cjs +1 -1
  46. package/dist/gift-card.js +5 -5
  47. package/dist/gift-card.js.br +0 -0
  48. package/dist/hotel.cjs +5 -5
  49. package/dist/hotel.js +1628 -1545
  50. package/dist/hotel.js.br +0 -0
  51. package/dist/{index-931022d3.js → index-96ff0142.js} +1 -1
  52. package/dist/index-96ff0142.js.br +0 -0
  53. package/dist/{index-68332b8a.cjs → index-af967975.cjs} +1 -1
  54. package/dist/polyfill.cjs +1 -1
  55. package/dist/polyfill.js +1 -1
  56. package/dist/polyfill.js.br +0 -0
  57. package/dist/store/event.d.ts +1 -1
  58. package/dist/store/hotel.d.ts +113 -95
  59. package/dist/store/payment.d.ts +1 -1
  60. package/dist/store/utilities.d.ts +97 -91
  61. package/dist/style.css +1 -1
  62. package/dist/style.css.br +0 -0
  63. package/dist/types/index.d.ts +39 -1
  64. package/package.json +1 -1
  65. package/dist/ActionField-b2ee8f91.js.br +0 -0
  66. package/dist/AvailabilitySkeleton-16a3be88.js.br +0 -0
  67. package/dist/AvailabilitySkeleton-83a2e2c6.cjs +0 -1
  68. package/dist/DateField.vue_vue_type_style_index_0_lang-4caf9daf.cjs +0 -5
  69. package/dist/DateField.vue_vue_type_style_index_0_lang-a4abbe86.js.br +0 -0
  70. package/dist/Field-f5f98938.js.br +0 -0
  71. package/dist/NumberField.vue_vue_type_script_setup_true_lang-5bf8b187.js.br +0 -0
  72. package/dist/SelectField.vue_vue_type_style_index_0_lang-f136675d.js.br +0 -0
  73. package/dist/ThankYou-58baa41d.js.br +0 -0
  74. package/dist/_-e0a2fd6e.js.br +0 -0
  75. package/dist/event-3e48b8ad.js.br +0 -0
  76. package/dist/index-931022d3.js.br +0 -0
@@ -1 +1 @@
1
- "use strict";const l=require("./SelectField.vue_vue_type_style_index_0_lang-727c44d8.cjs"),m=require("./NumberField.vue_vue_type_script_setup_true_lang-f72da2f4.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
+ "use strict";const l=require("./SelectField.vue_vue_type_style_index_0_lang-cef08480.cjs"),m=require("./NumberField.vue_vue_type_script_setup_true_lang-0c2b2bf3.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,5 +1,5 @@
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-f136675d.js";
2
- import { _ as A } from "./NumberField.vue_vue_type_script_setup_true_lang-5bf8b187.js";
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-b6764902.js";
2
+ import { _ as A } from "./NumberField.vue_vue_type_script_setup_true_lang-7249ebd2.js";
3
3
  const h = { class: "fresh-booking-action-field" }, L = /* @__PURE__ */ b({
4
4
  __name: "ActionField",
5
5
  props: {
Binary file
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-cef08480.cjs"),k=require("./DateField.vue_vue_type_style_index_0_lang-e3a9747e.cjs"),B=require("./NumberField.vue_vue_type_script_setup_true_lang-0c2b2bf3.cjs"),w=require("./_-e84d1f5c.cjs"),_=require("./Field-a3929646.cjs"),R=["onSubmit"],x=e.defineComponent({__name:"_",props:{type:{default:"submit"}},emits:["submit"],setup(v,{emit:l}){const n=e.ref(!1),o=l,c=v,{verifyRecaptcha:s}=e.useUtilityStore();function r(){n.value=!0,s({callback:p,type:c.type}).then(()=>n.value=!1)}function p(){o("submit")}return(y,g)=>(e.openBlock(),e.createElementBlock("form",{onSubmit:e.withModifiers(r,["prevent"])},[e.renderSlot(y.$slots,"default",{isLoading:n.value})],40,R))}}),E={key:0,class:"konnectio-availability-location"},$={id:"fresh-booking-availability-date-selection"},U={key:1,id:"fresh-booking-availability-guest-selection"},L={id:"fresh-booking-availability-confirmation"},H=e.defineComponent({__name:"HotelAvailabilityForm",props:{booking:{type:Boolean,default:!1},link:{}},setup(v){const{t:l}=e.useI18n(),n=v,{adults:o,children:c,arrivalDate:s,departureDate:r,location:p,isExpired:y}=e.storeToRefs(e.useAvailabilityStore()),{reset:g}=e.useAvailabilityStore(),{fetchAvailabilityData:F}=k.useHotelStore(),{areListingsLoading:S,hotelList:N,hasHotelList:m}=e.storeToRefs(k.useHotelStore()),{firstSelectableDateOffset:D,lastSelectableDateOffset:h,disableChildSelection:d,disableAdultSelection:u}=e.storeToRefs(e.useUtilityStore()),f=e.ref([]),G=e.computed(()=>new Date(new Date().setDate(new Date().getDate()+(D.value-1)))),J=e.computed(()=>new Date(new Date().setDate(new Date().getDate()+h.value))),K=e.computed(()=>new Date(new Date().setDate(s.value.getDate()+D.value))),P=e.computed(()=>new Date(new Date().setDate(s.value.getDate()+(h.value+1)))),b=e.computed(()=>!(!u&&o.value===0)),A=e.computed(()=>typeof n.link!="string");function C(){if(n.booking===!1)if(A.value){const i=e.getUserLanguage();n.link[i]?window.location.replace(n.link[i]):n.link.en?window.location.replace(n.link.en):console.log("Sprog understøttes ikke")}else window.location.replace(n.link);else b.value&&F()}return e.watch(s,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=>{s.value=i[0],r.value=i[1]}),e.onMounted(()=>{y.value&&g(),f.value=[s.value,r.value]}),(i,t)=>(e.openBlock(),e.createBlock(x,{id:"konnectio-availability-form",class:e.normalizeClass({reservation:i.booking}),type:"availability",onSubmit:C},{default:e.withCtx(({isLoading:V})=>[e.createBaseVNode("ul",{id:"konnectio-availability-form-content",class:e.normalizeClass([{"is-booking-page":i.booking},{"only-adult-guests":!e.unref(u)&&e.unref(d)},{"only-child-guests":!e.unref(d)&&e.unref(u)},{"no-guests":e.unref(u)&&e.unref(d)},{"all-guests":!e.unref(u)&&!e.unref(d)},{"has-location":e.unref(m)}])},[e.unref(m)?(e.openBlock(),e.createElementBlock("li",E,[e.createVNode(e._sfc_main,{modelValue:e.unref(p),"onUpdate:modelValue":t[0]||(t[0]=a=>e.isRef(p)?p.value=a:null),label:e.unref(l)("general.location"),icon:"location-dot","icon-type":"fas","icon-placement":"label",options:e.unref(N),searchable:!1},null,8,["modelValue","label","options"])])):e.createCommentVNode("",!0),e.createBaseVNode("li",$,[e.createVNode(k._sfc_main,{modelValue:f.value,"onUpdate:modelValue":t[1]||(t[1]=a=>f.value=a),label:e.unref(l)("availability.checkInOut"),"icon-type":"fas","icon-placement":"label","min-range":1,range:""},null,8,["modelValue","label"]),e.createCommentVNode("",!0)]),!e.unref(u)||!e.unref(d)?(e.openBlock(),e.createElementBlock("li",U,[e.unref(u)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.unref(m)?(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(l)("availability.adults"),description:e.unref(l)("general.adultAgeRange"),"icon-type":"fas","icon-placement":"label",name:"adults",icon:"male"},null,8,["modelValue","label","description"])):(e.openBlock(),e.createBlock(B._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(l)("availability.adults"),description:e.unref(l)("general.adultAgeRange"),"icon-type":"fas","icon-placement":"label",name:"adults",icon:"male"},null,8,["modelValue","label","description"]))],64)),e.unref(d)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.unref(m)?(e.openBlock(),e.createBlock(e.TextField,{key:0,modelValue:e.unref(c),"onUpdate:modelValue":t[6]||(t[6]=a=>e.isRef(c)?c.value=a:null),label:e.unref(l)("availability.children"),description:e.unref(l)("general.childAgeRange"),"icon-type":"fas","icon-placement":"label",name:"children",icon:"child"},null,8,["modelValue","label","description"])):(e.openBlock(),e.createBlock(B._sfc_main,{key:1,modelValue:e.unref(c),"onUpdate:modelValue":t[7]||(t[7]=a=>e.isRef(c)?c.value=a:null),label:e.unref(l)("availability.children"),description:e.unref(l)("general.childAgeRange"),"icon-type":"fas","icon-placement":"label",name:"children",icon:"child"},null,8,["modelValue","label","description"]))],64))])):e.createCommentVNode("",!0),e.createBaseVNode("li",L,[i.booking?(e.openBlock(),e.createBlock(e.Clickable,{key:0,type:"submit",icon:"search","icon-type":"fas",disabled:!b.value,"is-loading":e.unref(S)||V},null,8,["disabled","is-loading"])):(e.openBlock(),e.createBlock(e.Clickable,{key:1,type:"submit",label:e.unref(l)("availability.buttonLabel"),disabled:!b.value,"is-loading":V},null,8,["label","disabled","is-loading"]))])],2)]),_:1},8,["class"]))}});const q=e._export_sfc(H,[["__scopeId","data-v-d78a1562"]]),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(v){return(l,n)=>(e.openBlock(),e.createElementBlock("div",T,[l.view==="both"?(e.openBlock(),e.createElementBlock("div",I,[e.createVNode(w.Element,{height:"28px",width:"60px","border-radius":"20px"}),e.createVNode(w.Element,{height:"28px",width:"60px","border-radius":"20px"})])):e.createCommentVNode("",!0),l.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=x;
@@ -1,29 +1,29 @@
1
- import { h as $, r as O, a as T, k as t, q as c, aa as Q, H as W, z as X, s as x, ab as B, c as b, a1 as C, o as Y, l as D, w as Z, x as A, n as e, m as s, B as g, y as ee, t as _, a2 as F, T as H, C as ae, v as E, f as le, _ as q } from "./SelectField.vue_vue_type_style_index_0_lang-f136675d.js";
2
- import { u as N, _ as te } from "./DateField.vue_vue_type_style_index_0_lang-a4abbe86.js";
3
- import { _ as I } from "./NumberField.vue_vue_type_script_setup_true_lang-5bf8b187.js";
4
- import { E as z } from "./_-e0a2fd6e.js";
5
- import { F as f } from "./Field-f5f98938.js";
6
- const ie = ["onSubmit"], ne = /* @__PURE__ */ $({
1
+ import { h as S, r as q, a as M, k as l, q as c, aa as W, H as X, z as Y, s as A, ab as C, c as f, a1 as F, o as Z, l as p, w as ee, x as $, n as e, m as s, B as D, y as ae, t as _, a2 as H, T as E, C as N, v as I, f as le, _ as j } from "./SelectField.vue_vue_type_style_index_0_lang-b6764902.js";
2
+ import { u as z, _ as te } from "./DateField.vue_vue_type_style_index_0_lang-7e9bf5a9.js";
3
+ import { _ as O } from "./NumberField.vue_vue_type_script_setup_true_lang-7249ebd2.js";
4
+ import { E as T } from "./_-6878c22f.js";
5
+ import { F as y } from "./Field-a02a9614.js";
6
+ const ie = ["onSubmit"], ne = /* @__PURE__ */ S({
7
7
  __name: "_",
8
8
  props: {
9
9
  type: { default: "submit" }
10
10
  },
11
11
  emits: ["submit"],
12
12
  setup(k, { emit: a }) {
13
- const n = O(!1), r = a, u = k, { verifyRecaptcha: d } = T();
14
- function p() {
13
+ const n = q(!1), r = a, u = k, { verifyRecaptcha: d } = M();
14
+ function v() {
15
15
  n.value = !0, d({
16
- callback: y,
16
+ callback: g,
17
17
  type: u.type
18
18
  }).then(() => n.value = !1);
19
19
  }
20
- function y() {
20
+ function g() {
21
21
  r("submit");
22
22
  }
23
- return (V, S) => (t(), c("form", {
24
- onSubmit: W(p, ["prevent"])
23
+ return (V, L) => (l(), c("form", {
24
+ onSubmit: X(v, ["prevent"])
25
25
  }, [
26
- Q(V.$slots, "default", { isLoading: n.value })
26
+ W(V.$slots, "default", { isLoading: n.value })
27
27
  ], 40, ie));
28
28
  }
29
29
  }), oe = {
@@ -32,77 +32,77 @@ const ie = ["onSubmit"], ne = /* @__PURE__ */ $({
32
32
  }, se = { id: "fresh-booking-availability-date-selection" }, re = {
33
33
  key: 1,
34
34
  id: "fresh-booking-availability-guest-selection"
35
- }, ce = { id: "fresh-booking-availability-confirmation" }, ue = /* @__PURE__ */ $({
35
+ }, ce = { id: "fresh-booking-availability-confirmation" }, ue = /* @__PURE__ */ S({
36
36
  __name: "HotelAvailabilityForm",
37
37
  props: {
38
38
  booking: { type: Boolean, default: !1 },
39
39
  link: {}
40
40
  },
41
41
  setup(k) {
42
- const { t: a } = X(), n = k, {
42
+ const { t: a } = Y(), n = k, {
43
43
  adults: r,
44
44
  children: u,
45
45
  arrivalDate: d,
46
- departureDate: p,
47
- location: y,
46
+ departureDate: v,
47
+ location: g,
48
48
  isExpired: V
49
- } = x(B()), { reset: S } = B(), { fetchAvailabilityData: M } = N(), { areListingsLoading: j, hotelList: G, hasHotelList: h } = x(N()), {
50
- firstSelectableDateOffset: L,
51
- lastSelectableDateOffset: R,
52
- disableChildSelection: v,
49
+ } = A(C()), { reset: L } = C(), { fetchAvailabilityData: G } = z(), { areListingsLoading: J, hotelList: K, hasHotelList: h } = A(z()), {
50
+ firstSelectableDateOffset: R,
51
+ lastSelectableDateOffset: U,
52
+ disableChildSelection: b,
53
53
  disableAdultSelection: m
54
- } = x(T()), w = O([]), fe = b(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (L.value - 1)))), _e = b(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + R.value))), ye = b(() => new Date((/* @__PURE__ */ new Date()).setDate(d.value.getDate() + L.value))), De = b(() => new Date((/* @__PURE__ */ new Date()).setDate(d.value.getDate() + (R.value + 1)))), U = b(() => !(!m && r.value === 0)), J = b(() => typeof n.link != "string");
55
- function K() {
54
+ } = A(M()), w = q([]), fe = f(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (R.value - 1)))), ye = f(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + U.value))), _e = f(() => new Date((/* @__PURE__ */ new Date()).setDate(d.value.getDate() + R.value))), ge = f(() => new Date((/* @__PURE__ */ new Date()).setDate(d.value.getDate() + (U.value + 1)))), x = f(() => !(!m && r.value === 0)), P = f(() => typeof n.link != "string");
55
+ function Q() {
56
56
  if (n.booking === !1)
57
- if (J.value) {
57
+ if (P.value) {
58
58
  const o = le();
59
59
  n.link[o] ? window.location.replace(n.link[o]) : n.link.en ? window.location.replace(n.link.en) : console.log("Sprog understøttes ikke");
60
60
  } else
61
61
  window.location.replace(n.link);
62
62
  else
63
- U.value && M();
63
+ x.value && G();
64
64
  }
65
- return C(d, (o) => {
66
- const l = new Date(new Date(o).setDate(new Date(o).getDate() + 1));
67
- new Date(p.value) < l && (p.value = l);
68
- }), C(w, (o) => {
69
- d.value = o[0], p.value = o[1];
70
- }), Y(() => {
71
- V.value && S(), w.value = [d.value, p.value];
72
- }), (o, l) => (t(), D(ne, {
65
+ return F(d, (o) => {
66
+ const t = new Date(new Date(o).setDate(new Date(o).getDate() + 1));
67
+ new Date(v.value) < t && (v.value = t);
68
+ }), F(w, (o) => {
69
+ d.value = o[0], v.value = o[1];
70
+ }), Z(() => {
71
+ V.value && L(), w.value = [d.value, v.value];
72
+ }), (o, t) => (l(), p(ne, {
73
73
  id: "konnectio-availability-form",
74
- class: E({ reservation: o.booking }),
74
+ class: I({ reservation: o.booking }),
75
75
  type: "availability",
76
- onSubmit: K
76
+ onSubmit: Q
77
77
  }, {
78
- default: Z(({ isLoading: P }) => [
79
- A("ul", {
78
+ default: ee(({ isLoading: B }) => [
79
+ $("ul", {
80
80
  id: "konnectio-availability-form-content",
81
- class: E([
82
- { "is-not-booking-page": !o.booking },
83
- { "only-adult-guests": !e(m) && e(v) },
84
- { "only-child-guests": !e(v) && e(m) },
85
- { "no-guests": e(m) && e(v) },
86
- { "all-guests": !e(m) && !e(v) },
81
+ class: I([
82
+ { "is-booking-page": o.booking },
83
+ { "only-adult-guests": !e(m) && e(b) },
84
+ { "only-child-guests": !e(b) && e(m) },
85
+ { "no-guests": e(m) && e(b) },
86
+ { "all-guests": !e(m) && !e(b) },
87
87
  { "has-location": e(h) }
88
88
  ])
89
89
  }, [
90
- e(h) ? (t(), c("li", oe, [
91
- s(ee, {
92
- modelValue: e(y),
93
- "onUpdate:modelValue": l[0] || (l[0] = (i) => g(y) ? y.value = i : null),
90
+ e(h) ? (l(), c("li", oe, [
91
+ s(ae, {
92
+ modelValue: e(g),
93
+ "onUpdate:modelValue": t[0] || (t[0] = (i) => D(g) ? g.value = i : null),
94
94
  label: e(a)("general.location"),
95
95
  icon: "location-dot",
96
96
  "icon-type": "fas",
97
97
  "icon-placement": "label",
98
- options: e(G),
98
+ options: e(K),
99
99
  searchable: !1
100
100
  }, null, 8, ["modelValue", "label", "options"])
101
101
  ])) : _("", !0),
102
- A("li", se, [
102
+ $("li", se, [
103
103
  s(te, {
104
104
  modelValue: w.value,
105
- "onUpdate:modelValue": l[1] || (l[1] = (i) => w.value = i),
105
+ "onUpdate:modelValue": t[1] || (t[1] = (i) => w.value = i),
106
106
  label: e(a)("availability.checkInOut"),
107
107
  "icon-type": "fas",
108
108
  "icon-placement": "label",
@@ -111,22 +111,22 @@ const ie = ["onSubmit"], ne = /* @__PURE__ */ $({
111
111
  }, null, 8, ["modelValue", "label"]),
112
112
  _("", !0)
113
113
  ]),
114
- !e(m) || !e(v) ? (t(), c("li", re, [
115
- e(m) ? _("", !0) : (t(), c(F, { key: 0 }, [
116
- e(h) ? (t(), D(H, {
114
+ !e(m) || !e(b) ? (l(), c("li", re, [
115
+ e(m) ? _("", !0) : (l(), c(H, { key: 0 }, [
116
+ e(h) ? (l(), p(E, {
117
117
  key: 0,
118
118
  modelValue: e(r),
119
- "onUpdate:modelValue": l[4] || (l[4] = (i) => g(r) ? r.value = i : null),
119
+ "onUpdate:modelValue": t[4] || (t[4] = (i) => D(r) ? r.value = i : null),
120
120
  label: e(a)("availability.adults"),
121
121
  description: e(a)("general.adultAgeRange"),
122
122
  "icon-type": "fas",
123
123
  "icon-placement": "label",
124
124
  name: "adults",
125
125
  icon: "male"
126
- }, null, 8, ["modelValue", "label", "description"])) : (t(), D(I, {
126
+ }, null, 8, ["modelValue", "label", "description"])) : (l(), p(O, {
127
127
  key: 1,
128
128
  modelValue: e(r),
129
- "onUpdate:modelValue": l[5] || (l[5] = (i) => g(r) ? r.value = i : null),
129
+ "onUpdate:modelValue": t[5] || (t[5] = (i) => D(r) ? r.value = i : null),
130
130
  label: e(a)("availability.adults"),
131
131
  description: e(a)("general.adultAgeRange"),
132
132
  "icon-type": "fas",
@@ -135,21 +135,21 @@ const ie = ["onSubmit"], ne = /* @__PURE__ */ $({
135
135
  icon: "male"
136
136
  }, null, 8, ["modelValue", "label", "description"]))
137
137
  ], 64)),
138
- e(v) ? _("", !0) : (t(), c(F, { key: 1 }, [
139
- e(h) ? (t(), D(H, {
138
+ e(b) ? _("", !0) : (l(), c(H, { key: 1 }, [
139
+ e(h) ? (l(), p(E, {
140
140
  key: 0,
141
141
  modelValue: e(u),
142
- "onUpdate:modelValue": l[6] || (l[6] = (i) => g(u) ? u.value = i : null),
142
+ "onUpdate:modelValue": t[6] || (t[6] = (i) => D(u) ? u.value = i : null),
143
143
  label: e(a)("availability.children"),
144
144
  description: e(a)("general.childAgeRange"),
145
145
  "icon-type": "fas",
146
146
  "icon-placement": "label",
147
147
  name: "children",
148
148
  icon: "child"
149
- }, null, 8, ["modelValue", "label", "description"])) : (t(), D(I, {
149
+ }, null, 8, ["modelValue", "label", "description"])) : (l(), p(O, {
150
150
  key: 1,
151
151
  modelValue: e(u),
152
- "onUpdate:modelValue": l[7] || (l[7] = (i) => g(u) ? u.value = i : null),
152
+ "onUpdate:modelValue": t[7] || (t[7] = (i) => D(u) ? u.value = i : null),
153
153
  label: e(a)("availability.children"),
154
154
  description: e(a)("general.childAgeRange"),
155
155
  "icon-type": "fas",
@@ -159,13 +159,21 @@ const ie = ["onSubmit"], ne = /* @__PURE__ */ $({
159
159
  }, null, 8, ["modelValue", "label", "description"]))
160
160
  ], 64))
161
161
  ])) : _("", !0),
162
- A("li", ce, [
163
- s(ae, {
162
+ $("li", ce, [
163
+ o.booking ? (l(), p(N, {
164
+ key: 0,
165
+ type: "submit",
166
+ icon: "search",
167
+ "icon-type": "fas",
168
+ disabled: !x.value,
169
+ "is-loading": e(J) || B
170
+ }, null, 8, ["disabled", "is-loading"])) : (l(), p(N, {
171
+ key: 1,
164
172
  type: "submit",
165
173
  label: e(a)("availability.buttonLabel"),
166
- disabled: !U.value,
167
- "is-loading": e(j) || P
168
- }, null, 8, ["label", "disabled", "is-loading"])
174
+ disabled: !x.value,
175
+ "is-loading": B
176
+ }, null, 8, ["label", "disabled", "is-loading"]))
169
177
  ])
170
178
  ], 2)
171
179
  ]),
@@ -173,7 +181,7 @@ const ie = ["onSubmit"], ne = /* @__PURE__ */ $({
173
181
  }, 8, ["class"]));
174
182
  }
175
183
  });
176
- const xe = /* @__PURE__ */ q(ue, [["__scopeId", "data-v-cb0dfdfc"]]), de = { class: "availability-skeleton" }, me = {
184
+ const xe = /* @__PURE__ */ j(ue, [["__scopeId", "data-v-d78a1562"]]), de = { class: "availability-skeleton" }, me = {
177
185
  key: 0,
178
186
  class: "availability-skeleton-navigation"
179
187
  }, pe = {
@@ -182,36 +190,36 @@ const xe = /* @__PURE__ */ q(ue, [["__scopeId", "data-v-cb0dfdfc"]]), de = { cla
182
190
  }, ve = {
183
191
  key: 2,
184
192
  class: "availability-skeleton-event"
185
- }, be = /* @__PURE__ */ $({
193
+ }, be = /* @__PURE__ */ S({
186
194
  __name: "AvailabilitySkeleton",
187
195
  props: {
188
196
  view: { default: "hotel" }
189
197
  },
190
198
  setup(k) {
191
- return (a, n) => (t(), c("div", de, [
192
- a.view === "both" ? (t(), c("div", me, [
193
- s(z, {
199
+ return (a, n) => (l(), c("div", de, [
200
+ a.view === "both" ? (l(), c("div", me, [
201
+ s(T, {
194
202
  height: "28px",
195
203
  width: "60px",
196
204
  "border-radius": "20px"
197
205
  }),
198
- s(z, {
206
+ s(T, {
199
207
  height: "28px",
200
208
  width: "60px",
201
209
  "border-radius": "20px"
202
210
  })
203
211
  ])) : _("", !0),
204
- a.view !== "event" ? (t(), c("div", pe, [
205
- s(f, { "with-icon": "" }),
206
- s(f, { "with-icon": "" }),
207
- s(f, { "with-icon": "" }),
208
- s(f, {
212
+ a.view !== "event" ? (l(), c("div", pe, [
213
+ s(y, { "with-icon": "" }),
214
+ s(y, { "with-icon": "" }),
215
+ s(y, { "with-icon": "" }),
216
+ s(y, {
209
217
  "with-icon": "",
210
218
  "no-label": ""
211
219
  })
212
- ])) : (t(), c("div", ve, [
213
- s(f, { "with-icon": "" }),
214
- s(f, {
220
+ ])) : (l(), c("div", ve, [
221
+ s(y, { "with-icon": "" }),
222
+ s(y, {
215
223
  "with-icon": "",
216
224
  "no-label": ""
217
225
  })
@@ -219,7 +227,7 @@ const xe = /* @__PURE__ */ q(ue, [["__scopeId", "data-v-cb0dfdfc"]]), de = { cla
219
227
  ]));
220
228
  }
221
229
  });
222
- const Ae = /* @__PURE__ */ q(be, [["__scopeId", "data-v-c266ccbc"]]);
230
+ const Ae = /* @__PURE__ */ j(be, [["__scopeId", "data-v-c266ccbc"]]);
223
231
  export {
224
232
  Ae as A,
225
233
  xe as H,