@konnectio/core 4.0.21 → 4.0.22
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-7685b1ca.js → ActionField-4c47ccce.js} +2 -2
- package/dist/ActionField-4c47ccce.js.br +0 -0
- package/dist/{ActionField-f278c92a.cjs → ActionField-83fef1c1.cjs} +1 -1
- package/dist/{AvailabilitySkeleton-b8004f01.cjs → AvailabilitySkeleton-0e77a3ad.cjs} +1 -1
- package/dist/{AvailabilitySkeleton-9f7adad1.js → AvailabilitySkeleton-6ba16e6b.js} +5 -5
- package/dist/AvailabilitySkeleton-6ba16e6b.js.br +0 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-4d19c297.js → DateField.vue_vue_type_style_index_0_lang-6242a55d.js} +6 -6
- package/dist/DateField.vue_vue_type_style_index_0_lang-6242a55d.js.br +0 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-66f33a43.cjs → DateField.vue_vue_type_style_index_0_lang-efec37d7.cjs} +2 -2
- package/dist/{Field-7bca22a3.cjs → Field-72b689c4.cjs} +1 -1
- package/dist/{Field-850f6158.js → Field-d3e306c7.js} +2 -2
- package/dist/Field-d3e306c7.js.br +0 -0
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-9af13100.cjs → NumberField.vue_vue_type_script_setup_true_lang-53cff536.cjs} +1 -1
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-615d58a2.js → NumberField.vue_vue_type_script_setup_true_lang-e9425fa5.js} +2 -2
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-e9425fa5.js.br +0 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-de13480f.js → SelectField.vue_vue_type_style_index_0_lang-b53d9177.js} +3 -3
- package/dist/SelectField.vue_vue_type_style_index_0_lang-b53d9177.js.br +0 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-f2eadc00.cjs → SelectField.vue_vue_type_style_index_0_lang-ed0ef984.cjs} +1 -1
- package/dist/{ThankYou-328e6196.cjs → ThankYou-98807e93.cjs} +2 -2
- package/dist/{ThankYou-ce7a43f1.js → ThankYou-ebdebf4e.js} +105 -102
- package/dist/ThankYou-ebdebf4e.js.br +0 -0
- package/dist/{_-72d06a62.cjs → _-07462fdc.cjs} +1 -1
- package/dist/{_-55d616f9.js → _-f5b07fc1.js} +1 -1
- package/dist/_-f5b07fc1.js.br +0 -0
- package/dist/availability.cjs +2 -2
- package/dist/availability.js +10 -10
- package/dist/availability.js.br +0 -0
- package/dist/components/forms/ReservationForm.vue.d.ts +1 -1
- package/dist/components/listings/Base.vue.d.ts +1 -1
- package/dist/{event-d42b8289.js → event-136853fa.js} +9 -9
- package/dist/event-136853fa.js.br +0 -0
- package/dist/{event-67cf0ebb.cjs → event-5c513f23.cjs} +1 -1
- 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 +243 -243
- package/dist/hotel.js.br +0 -0
- package/dist/{index-85780e6d.cjs → index-c407bc6f.cjs} +1 -1
- package/dist/{index-a6e71920.js → index-eab5c85f.js} +1 -1
- package/dist/index-eab5c85f.js.br +0 -0
- package/dist/polyfill.cjs +1 -1
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +1 -1
- package/dist/ActionField-7685b1ca.js.br +0 -0
- package/dist/AvailabilitySkeleton-9f7adad1.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-4d19c297.js.br +0 -0
- package/dist/Field-850f6158.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-615d58a2.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-de13480f.js.br +0 -0
- package/dist/ThankYou-ce7a43f1.js.br +0 -0
- package/dist/_-55d616f9.js.br +0 -0
- package/dist/event-d42b8289.js.br +0 -0
- package/dist/index-a6e71920.js.br +0 -0
|
@@ -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-
|
|
2
|
-
import { _ as A } from "./NumberField.vue_vue_type_script_setup_true_lang-
|
|
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-b53d9177.js";
|
|
2
|
+
import { _ as A } from "./NumberField.vue_vue_type_script_setup_true_lang-e9425fa5.js";
|
|
3
3
|
const h = { class: "fresh-booking-action-field" }, L = /* @__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-ed0ef984.cjs"),m=require("./NumberField.vue_vue_type_script_setup_true_lang-53cff536.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-ed0ef984.cjs"),b=require("./DateField.vue_vue_type_style_index_0_lang-efec37d7.cjs"),h=require("./NumberField.vue_vue_type_script_setup_true_lang-53cff536.cjs"),x=require("./_-07462fdc.cjs"),_=require("./Field-72b689c4.cjs"),E=["onSubmit"],w=e.defineComponent({__name:"_",props:{type:{default:"submit"}},emits:["submit"],setup(m,{emit:n}){const l=e.ref(!1),o=n,u=m,{verifyRecaptcha:c}=e.useUtilityStore();function r(){l.value=!0,c({callback:v,type:u.type}).then(()=>l.value=!1)}function v(){o("submit")}return(y,k)=>(e.openBlock(),e.createElementBlock("form",{onSubmit:e.withModifiers(r,["prevent"])},[e.renderSlot(y.$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(m){const{t:n}=e.useI18n(),l=m,{adults:o,children:u,arrivalDate:c,departureDate:r,location:v,isExpired:y}=e.storeToRefs(e.useAvailabilityStore()),{reset:k}=e.useAvailabilityStore(),{fetchAvailabilityData:B}=b.useHotelStore(),{areListingsLoading:F,hotelList:S,hasHotelList:p}=e.storeToRefs(b.useHotelStore()),{firstSelectableDateOffset:g,lastSelectableDateOffset:D,disableChildSelection:d,disableAdultSelection:s}=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(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(f,i=>{c.value=i[0],r.value=i[1]}),e.onMounted(()=>{y.value&&l.booking&&k(),f.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(p)}])},[e.unref(p)?(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(b._sfc_main,{modelValue:f.value,"onUpdate:modelValue":t[1]||(t[1]=a=>f.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(p)?(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(p)?(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-9287c752"]]),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(m){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,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, aa as C, c as b, a1 as F, 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 H, T as R, C as ae, v as E, f as le, _ as q } from "./SelectField.vue_vue_type_style_index_0_lang-
|
|
2
|
-
import { u as N, _ as te } from "./DateField.vue_vue_type_style_index_0_lang-
|
|
3
|
-
import { _ as I } from "./NumberField.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { E as z } from "./_-
|
|
5
|
-
import { F as f } from "./Field-
|
|
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, aa as C, c as b, a1 as F, 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 H, T as R, C as ae, v as E, f as le, _ as q } from "./SelectField.vue_vue_type_style_index_0_lang-b53d9177.js";
|
|
2
|
+
import { u as N, _ as te } from "./DateField.vue_vue_type_style_index_0_lang-6242a55d.js";
|
|
3
|
+
import { _ as I } from "./NumberField.vue_vue_type_script_setup_true_lang-e9425fa5.js";
|
|
4
|
+
import { E as z } from "./_-f5b07fc1.js";
|
|
5
|
+
import { F as f } from "./Field-d3e306c7.js";
|
|
6
6
|
const ie = ["onSubmit"], ne = /* @__PURE__ */ S({
|
|
7
7
|
__name: "_",
|
|
8
8
|
props: {
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as Ol, s as rr, u as Nl, aa as Yl, a as Rl, r as Z, c as H, g as Ul, b as Ct, S as $t, Y as El, e as nr, f as br, i as Zt, aH as sn, aI as Il, aw as xa, h as Qe, aC as zt, aJ as Ha, o as ft, ai as Ht, ax as Sr, a1 as Bt, k as S, q as G, m as dt, W as tt, a3 as Ee, w as be, a9 as de, ap as qe, aq as rt, n as y, ak as Xe, B as dn, l as Te, aK as Or, aL as Hl, t as X, ab as ua, v as Ae, ar as Bl, aM as cn, am as ye, x as he, H as Ne, a2 as _e, al as yt, A as Ge, a5 as Ot, aN as Wl, af as Ua, ag as Ea, aO as Ll, aP as Vl, j as Fl, I as ql } from "./SelectField.vue_vue_type_style_index_0_lang-
|
|
2
|
-
import { u as jl } from "./NumberField.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { u as Ql } from "./_-
|
|
1
|
+
import { d as Ol, s as rr, u as Nl, aa as Yl, a as Rl, r as Z, c as H, g as Ul, b as Ct, S as $t, Y as El, e as nr, f as br, i as Zt, aH as sn, aI as Il, aw as xa, h as Qe, aC as zt, aJ as Ha, o as ft, ai as Ht, ax as Sr, a1 as Bt, k as S, q as G, m as dt, W as tt, a3 as Ee, w as be, a9 as de, ap as qe, aq as rt, n as y, ak as Xe, B as dn, l as Te, aK as Or, aL as Hl, t as X, ab as ua, v as Ae, ar as Bl, aM as cn, am as ye, x as he, H as Ne, a2 as _e, al as yt, A as Ge, a5 as Ot, aN as Wl, af as Ua, ag as Ea, aO as Ll, aP as Vl, j as Fl, I as ql } from "./SelectField.vue_vue_type_style_index_0_lang-b53d9177.js";
|
|
2
|
+
import { u as jl } from "./NumberField.vue_vue_type_script_setup_true_lang-e9425fa5.js";
|
|
3
|
+
import { u as Ql } from "./_-f5b07fc1.js";
|
|
4
4
|
const ac = Ol("hotel", () => {
|
|
5
5
|
const e = Ql(), { voucher: t } = rr(jl()), { display: r } = Nl(), {
|
|
6
6
|
adults: n,
|
|
@@ -143,7 +143,7 @@ const ac = Ol("hotel", () => {
|
|
|
143
143
|
headers: {
|
|
144
144
|
Authorization: m.value,
|
|
145
145
|
Accept: "application/json",
|
|
146
|
-
"Fresh-Booking-Ver": "4.0.
|
|
146
|
+
"Fresh-Booking-Ver": "4.0.22"
|
|
147
147
|
}
|
|
148
148
|
})).data;
|
|
149
149
|
d.value = z;
|
|
@@ -171,7 +171,7 @@ const ac = Ol("hotel", () => {
|
|
|
171
171
|
headers: {
|
|
172
172
|
Authorization: m.value,
|
|
173
173
|
Accept: "application/json",
|
|
174
|
-
"Fresh-Booking-Ver": "4.0.
|
|
174
|
+
"Fresh-Booking-Ver": "4.0.22"
|
|
175
175
|
}
|
|
176
176
|
});
|
|
177
177
|
re.status !== 200 ? r({
|
|
@@ -254,7 +254,7 @@ const ac = Ol("hotel", () => {
|
|
|
254
254
|
headers: {
|
|
255
255
|
Authorization: m.value,
|
|
256
256
|
Accept: "application/json",
|
|
257
|
-
"Fresh-Booking-Ver": "4.0.
|
|
257
|
+
"Fresh-Booking-Ver": "4.0.22"
|
|
258
258
|
}
|
|
259
259
|
}).then((ge) => {
|
|
260
260
|
p.value = !1, E.value = !1, e.pay({
|
|
Binary file
|