@konnectio/core 4.0.31 → 4.0.32
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.
- package/dist/{ActionField-cad55dd0.js → ActionField-9f5938c2.js} +2 -2
- package/dist/ActionField-9f5938c2.js.br +0 -0
- package/dist/{ActionField-4146b273.cjs → ActionField-fa3f32a1.cjs} +1 -1
- package/dist/{AvailabilitySkeleton-e50c7f3b.cjs → AvailabilitySkeleton-538f3d7d.cjs} +1 -1
- package/dist/{AvailabilitySkeleton-119a2dda.js → AvailabilitySkeleton-e51a47f6.js} +5 -5
- package/dist/AvailabilitySkeleton-e51a47f6.js.br +0 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-a4445293.js → DateField.vue_vue_type_style_index_0_lang-3ba5667d.js} +1 -1
- package/dist/DateField.vue_vue_type_style_index_0_lang-3ba5667d.js.br +0 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-6e16a80f.cjs → DateField.vue_vue_type_style_index_0_lang-802f8908.cjs} +1 -1
- package/dist/{Field-c6cc5881.js → Field-03744870.js} +2 -2
- package/dist/Field-03744870.js.br +0 -0
- package/dist/{Field-30b9bc8d.cjs → Field-bdb32b2b.cjs} +1 -1
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-dbfb9925.js → NumberField.vue_vue_type_script_setup_true_lang-bd0f0c10.js} +1 -1
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-bd0f0c10.js.br +0 -0
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-9678cc59.cjs → NumberField.vue_vue_type_script_setup_true_lang-f99ee22f.cjs} +1 -1
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-dec7ee54.cjs → SelectField.vue_vue_type_style_index_0_lang-16a9bece.cjs} +55 -55
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-c497c637.js → SelectField.vue_vue_type_style_index_0_lang-510dede6.js} +6242 -6242
- package/dist/SelectField.vue_vue_type_style_index_0_lang-510dede6.js.br +0 -0
- package/dist/{ThankYou-2449c13f.js → ThankYou-78ef3e07.js} +4 -4
- package/dist/ThankYou-78ef3e07.js.br +0 -0
- package/dist/{ThankYou-07315679.cjs → ThankYou-f478d01b.cjs} +1 -1
- package/dist/{_-c92afce5.js → _-2690d08c.js} +1 -1
- package/dist/{_-d75fab60.cjs → _-44b2ad95.cjs} +1 -1
- package/dist/availability.cjs +1 -1
- package/dist/availability.js +7 -7
- package/dist/availability.js.br +0 -0
- package/dist/components/listings/Hotel.vue.d.ts +1 -1
- package/dist/{event-a3ccc3af.cjs → event-42d3e1bb.cjs} +1 -1
- package/dist/{event-1457c6d2.js → event-b4200924.js} +7 -7
- package/dist/event-b4200924.js.br +0 -0
- package/dist/event.cjs +1 -1
- package/dist/event.js +8 -8
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.cjs +1 -1
- package/dist/gift-card-validation.js +3 -3
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.cjs +1 -1
- package/dist/gift-card.js +5 -5
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.cjs +2 -2
- package/dist/hotel.js +105 -105
- package/dist/hotel.js.br +0 -0
- package/dist/{index-51291895.js → index-2e44eb22.js} +1 -1
- package/dist/index-2e44eb22.js.br +0 -0
- package/dist/{index-551fafbf.cjs → index-5d6a654f.cjs} +1 -1
- package/dist/polyfill.cjs +1 -1
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/dist/store/hotel.d.ts +24 -15
- package/dist/store/utilities.d.ts +3 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/ActionField-cad55dd0.js.br +0 -0
- package/dist/AvailabilitySkeleton-119a2dda.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-a4445293.js.br +0 -0
- package/dist/Field-c6cc5881.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-dbfb9925.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-c497c637.js.br +0 -0
- package/dist/ThankYou-2449c13f.js.br +0 -0
- package/dist/event-1457c6d2.js.br +0 -0
- package/dist/index-51291895.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-
|
|
2
|
-
import { _ as F } from "./NumberField.vue_vue_type_script_setup_true_lang-
|
|
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-510dede6.js";
|
|
2
|
+
import { _ as F } from "./NumberField.vue_vue_type_script_setup_true_lang-bd0f0c10.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-
|
|
1
|
+
"use strict";const l=require("./SelectField.vue_vue_type_style_index_0_lang-16a9bece.cjs"),m=require("./NumberField.vue_vue_type_script_setup_true_lang-f99ee22f.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-
|
|
1
|
+
"use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-16a9bece.cjs"),C=require("./DateField.vue_vue_type_style_index_0_lang-802f8908.cjs"),V=require("./NumberField.vue_vue_type_script_setup_true_lang-f99ee22f.cjs"),B=require("./_-44b2ad95.cjs"),_=require("./Field-bdb32b2b.cjs"),R=["onSubmit"],w=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,k)=>(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:k}=e.useAvailabilityStore(),{fetchAvailabilityData:x}=e.useHotelStore(),{areListingsLoading:F,hotelList:S,hasHotelList:m}=e.storeToRefs(e.useHotelStore()),{firstSelectableDateOffset:g,lastSelectableDateOffset:D,disableChildSelection:d,disableAdultSelection:u}=e.storeToRefs(e.useUtilityStore()),f=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(s.value.getDate()+g.value))),P=e.computed(()=>new Date(new Date().setDate(s.value.getDate()+(D.value+1)))),b=e.computed(()=>!(!u&&o.value===0)),N=e.computed(()=>typeof n.link!="string");function A(){if(n.booking===!1)if(N.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&&x()}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&&k(),f.value=[s.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:h})=>[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(S),searchable:!1},null,8,["modelValue","label","options"])])):e.createCommentVNode("",!0),e.createBaseVNode("li",$,[e.createVNode(C._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(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",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(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 q=e._export_sfc(H,[["__scopeId","data-v-ed6687de"]]),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(B.Element,{height:"28px",width:"60px","border-radius":"20px"}),e.createVNode(B.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=w;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { k as S, r as z, c as M, m as l, v as c, aa as W, L as X, D as Y, s as x, ab as C, ac as F, f, a1 as H, o as Z, n as p, w as ee, A as $, q as e, p as s, G as g, B as ae, x as _, a2 as E, T as N, C as I, y as O, i as le, _ as G } from "./SelectField.vue_vue_type_style_index_0_lang-
|
|
2
|
-
import { _ as te } from "./DateField.vue_vue_type_style_index_0_lang-
|
|
3
|
-
import { _ as T } from "./NumberField.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { E as q } from "./_-
|
|
5
|
-
import { F as y } from "./Field-
|
|
1
|
+
import { k as S, r as z, c as M, m as l, v as c, aa as W, L as X, D as Y, s as x, ab as C, ac as F, f, a1 as H, o as Z, n as p, w as ee, A as $, q as e, p as s, G as g, B as ae, x as _, a2 as E, T as N, C as I, y as O, i as le, _ as G } from "./SelectField.vue_vue_type_style_index_0_lang-510dede6.js";
|
|
2
|
+
import { _ as te } from "./DateField.vue_vue_type_style_index_0_lang-3ba5667d.js";
|
|
3
|
+
import { _ as T } from "./NumberField.vue_vue_type_script_setup_true_lang-bd0f0c10.js";
|
|
4
|
+
import { E as q } from "./_-2690d08c.js";
|
|
5
|
+
import { F as y } from "./Field-03744870.js";
|
|
6
6
|
const ie = ["onSubmit"], ne = /* @__PURE__ */ S({
|
|
7
7
|
__name: "_",
|
|
8
8
|
props: {
|
|
Binary file
|
|
@@ -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-
|
|
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-510dede6.js";
|
|
2
2
|
function nt(e) {
|
|
3
3
|
"@babel/helpers - typeof";
|
|
4
4
|
return nt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
Binary file
|