@konnectio/core 4.0.37 → 4.0.38

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 (66) hide show
  1. package/dist/{ActionField-8e5218c5.js → ActionField-cd683106.js} +2 -2
  2. package/dist/ActionField-cd683106.js.br +0 -0
  3. package/dist/{ActionField-6712c933.cjs → ActionField-dc98863c.cjs} +1 -1
  4. package/dist/{AvailabilitySkeleton-ec96db6b.cjs → AvailabilitySkeleton-2dd88f42.cjs} +1 -1
  5. package/dist/{AvailabilitySkeleton-67ce6e6d.js → AvailabilitySkeleton-64372a3d.js} +5 -5
  6. package/dist/AvailabilitySkeleton-64372a3d.js.br +0 -0
  7. package/dist/{DateField.vue_vue_type_style_index_0_lang-64a0c44b.js → DateField.vue_vue_type_style_index_0_lang-239ef816.js} +1 -1
  8. package/dist/DateField.vue_vue_type_style_index_0_lang-239ef816.js.br +0 -0
  9. package/dist/{DateField.vue_vue_type_style_index_0_lang-0c12cda5.cjs → DateField.vue_vue_type_style_index_0_lang-7267a5fa.cjs} +1 -1
  10. package/dist/{Field-616b5ab4.cjs → Field-825b33aa.cjs} +1 -1
  11. package/dist/{Field-0fa0f987.js → Field-94ac0265.js} +2 -2
  12. package/dist/Field-94ac0265.js.br +0 -0
  13. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-1f92ec10.cjs → NumberField.vue_vue_type_script_setup_true_lang-4b483b4b.cjs} +1 -1
  14. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-c9486f0a.js → NumberField.vue_vue_type_script_setup_true_lang-ab43cf10.js} +1 -1
  15. package/dist/NumberField.vue_vue_type_script_setup_true_lang-ab43cf10.js.br +0 -0
  16. package/dist/{SelectField.vue_vue_type_style_index_0_lang-6bfcccf8.js → SelectField.vue_vue_type_style_index_0_lang-9187c95a.js} +820 -819
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-9187c95a.js.br +0 -0
  18. package/dist/{SelectField.vue_vue_type_style_index_0_lang-2fab4a70.cjs → SelectField.vue_vue_type_style_index_0_lang-a4d7be42.cjs} +32 -32
  19. package/dist/{ThankYou-0bb9b8ba.cjs → ThankYou-2219aecc.cjs} +2 -2
  20. package/dist/{ThankYou-125b27fb.js → ThankYou-d505adc9.js} +7 -7
  21. package/dist/ThankYou-d505adc9.js.br +0 -0
  22. package/dist/{_-f6d1d88b.cjs → _-b9738f5d.cjs} +1 -1
  23. package/dist/{_-3a1d4d62.js → _-e90b6bab.js} +1 -1
  24. package/dist/availability.cjs +2 -2
  25. package/dist/availability.js +10 -10
  26. package/dist/availability.js.br +0 -0
  27. package/dist/components/listings/Base.vue.d.ts +1 -1
  28. package/dist/components/listings/Event.vue.d.ts +1 -1
  29. package/dist/entries/availability.d.ts +1 -1
  30. package/dist/{event-ad6054a0.cjs → event-8dde494e.cjs} +1 -1
  31. package/dist/{event-bf4c7637.js → event-9b5b92a7.js} +7 -7
  32. package/dist/event-9b5b92a7.js.br +0 -0
  33. package/dist/event.cjs +1 -1
  34. package/dist/event.js +9 -9
  35. package/dist/event.js.br +0 -0
  36. package/dist/gift-card-validation.cjs +1 -1
  37. package/dist/gift-card-validation.js +3 -3
  38. package/dist/gift-card-validation.js.br +0 -0
  39. package/dist/gift-card.cjs +1 -1
  40. package/dist/gift-card.js +227 -228
  41. package/dist/gift-card.js.br +0 -0
  42. package/dist/hotel.cjs +1 -1
  43. package/dist/hotel.js +11 -12
  44. package/dist/hotel.js.br +0 -0
  45. package/dist/{index-cc419f8f.js → index-524d9d24.js} +1 -1
  46. package/dist/index-524d9d24.js.br +0 -0
  47. package/dist/{index-f4b84887.cjs → index-85e3a13d.cjs} +1 -1
  48. package/dist/polyfill.cjs +1 -1
  49. package/dist/polyfill.js +1 -1
  50. package/dist/polyfill.js.br +0 -0
  51. package/dist/store/event.d.ts +3 -3
  52. package/dist/store/tracking.d.ts +8 -3
  53. package/dist/store/utilities.d.ts +4 -1
  54. package/dist/style.css +1 -1
  55. package/dist/style.css.br +0 -0
  56. package/dist/types/index.d.ts +1 -1
  57. package/package.json +1 -1
  58. package/dist/ActionField-8e5218c5.js.br +0 -0
  59. package/dist/AvailabilitySkeleton-67ce6e6d.js.br +0 -0
  60. package/dist/DateField.vue_vue_type_style_index_0_lang-64a0c44b.js.br +0 -0
  61. package/dist/Field-0fa0f987.js.br +0 -0
  62. package/dist/NumberField.vue_vue_type_script_setup_true_lang-c9486f0a.js.br +0 -0
  63. package/dist/SelectField.vue_vue_type_style_index_0_lang-6bfcccf8.js.br +0 -0
  64. package/dist/ThankYou-125b27fb.js.br +0 -0
  65. package/dist/event-bf4c7637.js.br +0 -0
  66. package/dist/index-cc419f8f.js.br +0 -0
@@ -1,5 +1,5 @@
1
- import { k as b, l as V, f as m, m as d, n as i, w as v, A as q, B as g, q as t, T as k, p as B, C as I, I as C, _ as A } from "./SelectField.vue_vue_type_style_index_0_lang-6bfcccf8.js";
2
- import { _ as F } from "./NumberField.vue_vue_type_script_setup_true_lang-c9486f0a.js";
1
+ import { k as b, l as V, f as m, m as d, n as i, w as v, A as q, B as g, q as t, T as k, p as B, C as I, I as C, _ as A } from "./SelectField.vue_vue_type_style_index_0_lang-9187c95a.js";
2
+ import { _ as F } from "./NumberField.vue_vue_type_script_setup_true_lang-ab43cf10.js";
3
3
  const L = { class: "fresh-booking-action-field" }, T = /* @__PURE__ */ b({
4
4
  __name: "ActionField",
5
5
  props: {
Binary file
@@ -1 +1 @@
1
- "use strict";const l=require("./SelectField.vue_vue_type_style_index_0_lang-2fab4a70.cjs"),m=require("./NumberField.vue_vue_type_script_setup_true_lang-1f92ec10.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-a4d7be42.cjs"),m=require("./NumberField.vue_vue_type_script_setup_true_lang-4b483b4b.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 +1 @@
1
- "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-2fab4a70.cjs"),E=require("./DateField.vue_vue_type_style_index_0_lang-0c12cda5.cjs"),V=require("./NumberField.vue_vue_type_script_setup_true_lang-1f92ec10.cjs"),x=require("./_-f6d1d88b.cjs"),_=require("./Field-616b5ab4.cjs"),$=["onSubmit"],B=e.defineComponent({__name:"_",props:{type:{default:"submit"}},emits:["submit"],setup(v,{emit:l}){const n=e.ref(!1),o=l,c=v,{verifyRecaptcha:u}=e.useUtilityStore();function r(){n.value=!0,u({callback:p,type:c.type}).then(()=>n.value=!1)}function p(){o("submit")}return(y,k)=>(e.openBlock(),e.createElementBlock("form",{onSubmit:e.withModifiers(r,["prevent"])},[e.renderSlot(y.$slots,"default",{isLoading:n.value})],40,$))}}),U={key:0,class:"konnectio-availability-location"},L={id:"fresh-booking-availability-date-selection"},H={key:1,id:"fresh-booking-availability-guest-selection"},q={id:"fresh-booking-availability-confirmation"},T=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:u,departureDate:r,location:p,isExpired:y}=e.storeToRefs(e.useAvailabilityStore()),{reset:k}=e.useAvailabilityStore(),{fetchAvailabilityData:w}=e.useHotelStore(),{areListingsLoading:F,hotelList:S,hasHotelList:m}=e.storeToRefs(e.useHotelStore()),{firstSelectableDateOffset:g,lastSelectableDateOffset:D,disableChildSelection:d,disableAdultSelection:s}=e.storeToRefs(e.useUtilityStore()),f=e.ref([]),N=e.computed(()=>new Date(new Date().setDate(new Date().getDate()+(g.value-1)))),K=e.computed(()=>new Date(new Date().setDate(new Date().getDate()+D.value))),P=e.computed(()=>new Date(new Date().setDate(u.value.getDate()+g.value))),A=e.computed(()=>new Date(new Date().setDate(u.value.getDate()+(D.value+1)))),b=e.computed(()=>!(!s&&o.value===0)),C=e.computed(()=>typeof n.link!="string");function R(){if(n.booking===!1)if(C.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&&w()}return e.watch(u,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=>{u.value=i[0],r.value=i[1]}),e.onMounted(()=>{y.value&&k(),f.value=[u.value,r.value]}),(i,t)=>(e.openBlock(),e.createBlock(B,{id:"konnectio-availability-form",class:e.normalizeClass({reservation:i.booking}),type:"availability",onSubmit:R},{default:e.withCtx(({isLoading:h})=>[e.createBaseVNode("ul",{id:"konnectio-availability-form-content",class:e.normalizeClass([{"is-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(m)}])},[e.unref(m)?(e.openBlock(),e.createElementBlock("li",U,[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(S),searchable:!1},null,8,["modelValue","label","options"])])):e.createCommentVNode("",!0),e.createBaseVNode("li",L,[e.createVNode(E._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,"min-date":N.value,"max-date":A.value,range:""},null,8,["modelValue","label","min-date","max-date"]),e.createCommentVNode("",!0)]),!e.unref(s)||!e.unref(d)?(e.openBlock(),e.createElementBlock("li",H,[e.unref(s)?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(V._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(V._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",q,[i.booking?(e.openBlock(),e.createBlock(e.Clickable,{key:0,type:"submit",icon:"search","icon-type":"fas",disabled:!b.value,"is-loading":e.unref(F)||h},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":h},null,8,["label","disabled","is-loading"]))])],2)]),_:1},8,["class"]))}});const I=e._export_sfc(T,[["__scopeId","data-v-a901e79d"]]),z={class:"availability-skeleton"},O={key:0,class:"availability-skeleton-navigation"},M={key:1,class:"availability-skeleton-hotel"},j={key:2,class:"availability-skeleton-event"},G=e.defineComponent({__name:"AvailabilitySkeleton",props:{view:{default:"hotel"}},setup(v){return(l,n)=>(e.openBlock(),e.createElementBlock("div",z,[l.view==="both"?(e.openBlock(),e.createElementBlock("div",O,[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),l.view!=="event"?(e.openBlock(),e.createElementBlock("div",M,[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",j,[e.createVNode(_.Field,{"with-icon":""}),e.createVNode(_.Field,{"with-icon":"","no-label":""})]))]))}});const J=e._export_sfc(G,[["__scopeId","data-v-c266ccbc"]]);exports.AvailabilitySkeleton=J;exports.HotelAvailabilityForm=I;exports._sfc_main=B;
1
+ "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-a4d7be42.cjs"),E=require("./DateField.vue_vue_type_style_index_0_lang-7267a5fa.cjs"),V=require("./NumberField.vue_vue_type_script_setup_true_lang-4b483b4b.cjs"),x=require("./_-b9738f5d.cjs"),_=require("./Field-825b33aa.cjs"),$=["onSubmit"],B=e.defineComponent({__name:"_",props:{type:{default:"submit"}},emits:["submit"],setup(v,{emit:l}){const n=e.ref(!1),o=l,c=v,{verifyRecaptcha:u}=e.useUtilityStore();function r(){n.value=!0,u({callback:p,type:c.type}).then(()=>n.value=!1)}function p(){o("submit")}return(y,k)=>(e.openBlock(),e.createElementBlock("form",{onSubmit:e.withModifiers(r,["prevent"])},[e.renderSlot(y.$slots,"default",{isLoading:n.value})],40,$))}}),U={key:0,class:"konnectio-availability-location"},L={id:"fresh-booking-availability-date-selection"},H={key:1,id:"fresh-booking-availability-guest-selection"},q={id:"fresh-booking-availability-confirmation"},T=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:u,departureDate:r,location:p,isExpired:y}=e.storeToRefs(e.useAvailabilityStore()),{reset:k}=e.useAvailabilityStore(),{fetchAvailabilityData:w}=e.useHotelStore(),{areListingsLoading:F,hotelList:S,hasHotelList:m}=e.storeToRefs(e.useHotelStore()),{firstSelectableDateOffset:g,lastSelectableDateOffset:D,disableChildSelection:d,disableAdultSelection:s}=e.storeToRefs(e.useUtilityStore()),f=e.ref([]),N=e.computed(()=>new Date(new Date().setDate(new Date().getDate()+(g.value-1)))),K=e.computed(()=>new Date(new Date().setDate(new Date().getDate()+D.value))),P=e.computed(()=>new Date(new Date().setDate(u.value.getDate()+g.value))),A=e.computed(()=>new Date(new Date().setDate(u.value.getDate()+(D.value+1)))),b=e.computed(()=>!(!s&&o.value===0)),C=e.computed(()=>typeof n.link!="string");function R(){if(n.booking===!1)if(C.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&&w()}return e.watch(u,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=>{u.value=i[0],r.value=i[1]}),e.onMounted(()=>{y.value&&k(),f.value=[u.value,r.value]}),(i,t)=>(e.openBlock(),e.createBlock(B,{id:"konnectio-availability-form",class:e.normalizeClass({reservation:i.booking}),type:"availability",onSubmit:R},{default:e.withCtx(({isLoading:h})=>[e.createBaseVNode("ul",{id:"konnectio-availability-form-content",class:e.normalizeClass([{"is-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(m)}])},[e.unref(m)?(e.openBlock(),e.createElementBlock("li",U,[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(S),searchable:!1},null,8,["modelValue","label","options"])])):e.createCommentVNode("",!0),e.createBaseVNode("li",L,[e.createVNode(E._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,"min-date":N.value,"max-date":A.value,range:""},null,8,["modelValue","label","min-date","max-date"]),e.createCommentVNode("",!0)]),!e.unref(s)||!e.unref(d)?(e.openBlock(),e.createElementBlock("li",H,[e.unref(s)?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(V._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(V._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",q,[i.booking?(e.openBlock(),e.createBlock(e.Clickable,{key:0,type:"submit",icon:"search","icon-type":"fas",disabled:!b.value,"is-loading":e.unref(F)||h},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":h},null,8,["label","disabled","is-loading"]))])],2)]),_:1},8,["class"]))}});const I=e._export_sfc(T,[["__scopeId","data-v-a901e79d"]]),z={class:"availability-skeleton"},O={key:0,class:"availability-skeleton-navigation"},M={key:1,class:"availability-skeleton-hotel"},j={key:2,class:"availability-skeleton-event"},G=e.defineComponent({__name:"AvailabilitySkeleton",props:{view:{default:"hotel"}},setup(v){return(l,n)=>(e.openBlock(),e.createElementBlock("div",z,[l.view==="both"?(e.openBlock(),e.createElementBlock("div",O,[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),l.view!=="event"?(e.openBlock(),e.createElementBlock("div",M,[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",j,[e.createVNode(_.Field,{"with-icon":""}),e.createVNode(_.Field,{"with-icon":"","no-label":""})]))]))}});const J=e._export_sfc(G,[["__scopeId","data-v-c266ccbc"]]);exports.AvailabilitySkeleton=J;exports.HotelAvailabilityForm=I;exports._sfc_main=B;
@@ -1,8 +1,8 @@
1
- import { k as S, r as z, c as M, m as l, v as c, aa as Y, L as Z, D as ee, s as A, ab as C, ac as F, f, a1 as H, o as ae, n as p, w as le, A as $, q as e, p as s, G as g, B as te, x as _, a2 as E, T as N, C as I, y as O, i as ie, _ as G } from "./SelectField.vue_vue_type_style_index_0_lang-6bfcccf8.js";
2
- import { _ as ne } from "./DateField.vue_vue_type_style_index_0_lang-64a0c44b.js";
3
- import { _ as T } from "./NumberField.vue_vue_type_script_setup_true_lang-c9486f0a.js";
4
- import { E as q } from "./_-3a1d4d62.js";
5
- import { F as y } from "./Field-0fa0f987.js";
1
+ import { k as S, r as z, c as M, m as l, v as c, aa as Y, L as Z, D as ee, s as A, ab as C, ac as F, f, a1 as H, o as ae, n as p, w as le, A as $, q as e, p as s, G as g, B as te, x as _, a2 as E, T as N, C as I, y as O, i as ie, _ as G } from "./SelectField.vue_vue_type_style_index_0_lang-9187c95a.js";
2
+ import { _ as ne } from "./DateField.vue_vue_type_style_index_0_lang-239ef816.js";
3
+ import { _ as T } from "./NumberField.vue_vue_type_script_setup_true_lang-ab43cf10.js";
4
+ import { E as q } from "./_-e90b6bab.js";
5
+ import { F as y } from "./Field-94ac0265.js";
6
6
  const oe = ["onSubmit"], se = /* @__PURE__ */ S({
7
7
  __name: "_",
8
8
  props: {
@@ -1,4 +1,4 @@
1
- import { ax as ma, r as te, k as Fe, aE as Vt, aJ as Ma, o as lt, an as Nt, f as G, ay as hr, a1 as Yt, m as C, v as q, p as at, W as Ze, a3 as Re, w as ge, aa as se, aq as Le, ar as Je, q as y, aj as ze, G as Br, n as ke, aK as yr, aL as rl, x as K, ad as ea, y as $e, as as nl, aM as Ir, al as ye, A as he, L as Se, a2 as _e, ak as vt, F as je, a5 as Mt, aN as ll, ah as ka, ai as Ta, aO as ol, aP as il, l as ul, i as sl, I as dl } from "./SelectField.vue_vue_type_style_index_0_lang-6bfcccf8.js";
1
+ import { ax as ma, r as te, k as Fe, aE as Vt, aJ as Ma, o as lt, an as Nt, f as G, ay as hr, a1 as Yt, m as C, v as q, p as at, W as Ze, a3 as Re, w as ge, aa as se, aq as Le, ar as Je, q as y, aj as ze, G as Br, n as ke, aK as yr, aL as rl, x as K, ad as ea, y as $e, as as nl, aM as Ir, al as ye, A as he, L as Se, a2 as _e, ak as vt, F as je, a5 as Mt, aN as ll, ah as ka, ai as Ta, aO as ol, aP as il, l as ul, i as sl, I as dl } from "./SelectField.vue_vue_type_style_index_0_lang-9187c95a.js";
2
2
  function nt(e) {
3
3
  "@babel/helpers - typeof";
4
4
  return nt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {