@konnectio/core 4.0.45 → 4.0.47
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-1e9b784f.js → ActionField-4f3afb7a.js} +2 -2
- package/dist/ActionField-4f3afb7a.js.br +0 -0
- package/dist/{ActionField-2a5b0069.cjs → ActionField-da8af28b.cjs} +1 -1
- package/dist/{AvailabilitySkeleton-f2902197.js → AvailabilitySkeleton-25baf60d.js} +15 -15
- package/dist/AvailabilitySkeleton-25baf60d.js.br +0 -0
- package/dist/{AvailabilitySkeleton-548b948c.cjs → AvailabilitySkeleton-850bab7c.cjs} +1 -1
- package/dist/{CheckoutWindow-70c47274.js → CheckoutWindow-709d0b62.js} +10 -10
- package/dist/CheckoutWindow-709d0b62.js.br +0 -0
- package/dist/{CheckoutWindow-b0b45e70.cjs → CheckoutWindow-934aa76e.cjs} +1 -1
- package/dist/Container-6b2be57c.js +59 -0
- package/dist/Container-6b2be57c.js.br +0 -0
- package/dist/Container-c8f449bb.cjs +1 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-d1cb0d52.js → DateField.vue_vue_type_style_index_0_lang-8b005f72.js} +593 -593
- package/dist/DateField.vue_vue_type_style_index_0_lang-8b005f72.js.br +0 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-fd129a1c.cjs → DateField.vue_vue_type_style_index_0_lang-e1874345.cjs} +1 -1
- package/dist/{Field-327ae27e.cjs → Field-594f873a.cjs} +1 -1
- package/dist/{Field-44e97149.js → Field-e99f6db6.js} +2 -2
- package/dist/Field-e99f6db6.js.br +0 -0
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-f3b45625.js → NumberField.vue_vue_type_script_setup_true_lang-6444e842.js} +1 -1
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-6444e842.js.br +0 -0
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-d4ee7977.cjs → NumberField.vue_vue_type_script_setup_true_lang-d6fa6332.cjs} +1 -1
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-656991fc.js → SelectField.vue_vue_type_style_index_0_lang-523f077b.js} +13131 -14953
- package/dist/SelectField.vue_vue_type_style_index_0_lang-523f077b.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-61443b22.cjs +856 -0
- package/dist/{ThankYou-367bae0e.cjs → ThankYou-50682337.cjs} +7 -7
- package/dist/{ThankYou-c78aff79.js → ThankYou-e6d0561f.js} +227 -229
- package/dist/ThankYou-e6d0561f.js.br +0 -0
- package/dist/{_-e7cd8ef2.cjs → _-aa5cc045.cjs} +1 -1
- package/dist/{_-0345553a.js → _-ede2c679.js} +1 -1
- package/dist/availability.cjs +2 -2
- package/dist/availability.js +66 -66
- package/dist/availability.js.br +0 -0
- package/dist/components/Container.vue.d.ts +5 -0
- package/dist/components/Container.vue.d.ts.map +1 -0
- package/dist/components/forms/ReservationForm.vue.d.ts +1 -1
- package/dist/components/listings/Base.vue.d.ts +1 -1
- package/dist/components/listings/Hotel.vue.d.ts +1 -1
- package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +1 -1
- package/dist/{event-15977eb5.cjs → event-773a5d1a.cjs} +1 -1
- package/dist/{event-fa719df8.js → event-ea10e9df.js} +7 -7
- package/dist/event-ea10e9df.js.br +0 -0
- package/dist/event.cjs +1 -1
- package/dist/event.js +116 -117
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.cjs +1 -1
- package/dist/gift-card-validation.js +97 -92
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.cjs +1 -1
- package/dist/gift-card.js +331 -324
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.cjs +8 -8
- package/dist/hotel.js +1588 -1718
- package/dist/hotel.js.br +0 -0
- package/dist/layouts/Availability.vue.d.ts +2 -2
- package/dist/layouts/GiftCard.vue.d.ts +1 -1
- package/dist/layouts/GiftCardValidation.vue.d.ts +2 -2
- package/dist/layouts/Hotel.vue.d.ts +1 -1
- package/dist/layouts/_.vue.d.ts +1 -3
- 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/dist/types/index.d.ts +37 -36
- package/package.json +3 -4
- package/dist/ActionField-1e9b784f.js.br +0 -0
- package/dist/AvailabilitySkeleton-f2902197.js.br +0 -0
- package/dist/CheckoutWindow-70c47274.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-d1cb0d52.js.br +0 -0
- package/dist/Field-44e97149.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-f3b45625.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-656991fc.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-b66917f6.cjs +0 -865
- package/dist/ThankYou-c78aff79.js.br +0 -0
- package/dist/components/modals/Base.vue.d.ts +0 -5
- package/dist/components/modals/Base.vue.d.ts.map +0 -1
- package/dist/components/modals/Info.vue.d.ts +0 -5
- package/dist/components/modals/Info.vue.d.ts.map +0 -1
- package/dist/event-fa719df8.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-523f077b.js";
|
|
2
|
+
import { _ as F } from "./NumberField.vue_vue_type_script_setup_true_lang-6444e842.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-61443b22.cjs"),m=require("./NumberField.vue_vue_type_script_setup_true_lang-d6fa6332.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,8 +1,8 @@
|
|
|
1
|
-
import { k as S, r as z, c as M, m as l, v as u,
|
|
2
|
-
import { _ as ne } 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 u, D as Y, N as Z, F as ee, s as A, aa as B, ab as C, f, a2 as H, o as ae, n as p, w as le, A as $, q as e, p as s, J as g, B as te, x as _, a3 as N, T as E, C as I, y as O, i as ie, _ as J } from "./SelectField.vue_vue_type_style_index_0_lang-523f077b.js";
|
|
2
|
+
import { _ as ne } from "./DateField.vue_vue_type_style_index_0_lang-8b005f72.js";
|
|
3
|
+
import { _ as T } from "./NumberField.vue_vue_type_script_setup_true_lang-6444e842.js";
|
|
4
|
+
import { E as q } from "./_-ede2c679.js";
|
|
5
|
+
import { F as y } from "./Field-e99f6db6.js";
|
|
6
6
|
const oe = /* @__PURE__ */ S({
|
|
7
7
|
__name: "_",
|
|
8
8
|
props: {
|
|
@@ -46,7 +46,7 @@ const oe = /* @__PURE__ */ S({
|
|
|
46
46
|
departureDate: v,
|
|
47
47
|
location: D,
|
|
48
48
|
isExpired: V
|
|
49
|
-
} = A(
|
|
49
|
+
} = A(B()), { reset: L } = B(), { fetchAvailabilityData: j } = C(), { areListingsLoading: G, hotelList: K, hasHotelList: h } = A(C()), {
|
|
50
50
|
firstSelectableDateOffset: R,
|
|
51
51
|
lastSelectableDateOffset: U,
|
|
52
52
|
disableChildSelection: b,
|
|
@@ -75,7 +75,7 @@ const oe = /* @__PURE__ */ S({
|
|
|
75
75
|
type: "availability",
|
|
76
76
|
onSubmit: X
|
|
77
77
|
}, {
|
|
78
|
-
default: le(({ isLoading:
|
|
78
|
+
default: le(({ isLoading: F }) => [
|
|
79
79
|
$("ul", {
|
|
80
80
|
id: "konnectio-availability-form-content",
|
|
81
81
|
class: O([
|
|
@@ -114,8 +114,8 @@ const oe = /* @__PURE__ */ S({
|
|
|
114
114
|
_("", !0)
|
|
115
115
|
]),
|
|
116
116
|
!e(m) || !e(b) ? (l(), u("li", ue, [
|
|
117
|
-
e(m) ? _("", !0) : (l(), u(
|
|
118
|
-
e(h) ? (l(), p(
|
|
117
|
+
e(m) ? _("", !0) : (l(), u(N, { key: 0 }, [
|
|
118
|
+
e(h) ? (l(), p(E, {
|
|
119
119
|
key: 0,
|
|
120
120
|
modelValue: e(r),
|
|
121
121
|
"onUpdate:modelValue": t[4] || (t[4] = (i) => g(r) ? r.value = i : null),
|
|
@@ -137,8 +137,8 @@ const oe = /* @__PURE__ */ S({
|
|
|
137
137
|
icon: "male"
|
|
138
138
|
}, null, 8, ["modelValue", "label", "description"]))
|
|
139
139
|
], 64)),
|
|
140
|
-
e(b) ? _("", !0) : (l(), u(
|
|
141
|
-
e(h) ? (l(), p(
|
|
140
|
+
e(b) ? _("", !0) : (l(), u(N, { key: 1 }, [
|
|
141
|
+
e(h) ? (l(), p(E, {
|
|
142
142
|
key: 0,
|
|
143
143
|
modelValue: e(d),
|
|
144
144
|
"onUpdate:modelValue": t[6] || (t[6] = (i) => g(d) ? d.value = i : null),
|
|
@@ -168,13 +168,13 @@ const oe = /* @__PURE__ */ S({
|
|
|
168
168
|
icon: "search",
|
|
169
169
|
"icon-type": "fas",
|
|
170
170
|
disabled: !x.value,
|
|
171
|
-
"is-loading": e(
|
|
171
|
+
"is-loading": e(G) || F
|
|
172
172
|
}, null, 8, ["disabled", "is-loading"])) : (l(), p(I, {
|
|
173
173
|
key: 1,
|
|
174
174
|
type: "submit",
|
|
175
175
|
label: e(a)("availability.buttonLabel"),
|
|
176
176
|
disabled: !x.value,
|
|
177
|
-
"is-loading":
|
|
177
|
+
"is-loading": F
|
|
178
178
|
}, null, 8, ["label", "disabled", "is-loading"]))
|
|
179
179
|
])
|
|
180
180
|
], 2)
|
|
@@ -183,7 +183,7 @@ const oe = /* @__PURE__ */ S({
|
|
|
183
183
|
}, 8, ["class"]));
|
|
184
184
|
}
|
|
185
185
|
});
|
|
186
|
-
const Ve = /* @__PURE__ */
|
|
186
|
+
const Ve = /* @__PURE__ */ J(ce, [["__scopeId", "data-v-a901e79d"]]), me = { class: "availability-skeleton" }, pe = {
|
|
187
187
|
key: 0,
|
|
188
188
|
class: "availability-skeleton-navigation"
|
|
189
189
|
}, ve = {
|
|
@@ -229,7 +229,7 @@ const Ve = /* @__PURE__ */ G(ce, [["__scopeId", "data-v-a901e79d"]]), me = { cla
|
|
|
229
229
|
]));
|
|
230
230
|
}
|
|
231
231
|
});
|
|
232
|
-
const xe = /* @__PURE__ */
|
|
232
|
+
const xe = /* @__PURE__ */ J(fe, [["__scopeId", "data-v-d044752e"]]);
|
|
233
233
|
export {
|
|
234
234
|
xe as A,
|
|
235
235
|
Ve as H,
|
|
Binary file
|
|
@@ -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-61443b22.cjs"),E=require("./DateField.vue_vue_type_style_index_0_lang-e1874345.cjs"),V=require("./NumberField.vue_vue_type_script_setup_true_lang-d6fa6332.cjs"),x=require("./_-aa5cc045.cjs"),_=require("./Field-594f873a.cjs"),B=e.defineComponent({__name:"_",props:{type:{default:"submit"}},emits:["submit"],setup(v,{emit:l}){const n=e.ref(!1),o=l,u=v,{verifyRecaptcha:r}=e.useUtilityStore();function c(){n.value=!0,r({callback:p,type:u.type}).then(()=>n.value=!1)}function p(){o("submit")}return(y,k)=>(e.openBlock(),e.createElementBlock("form",{onSubmit:e.withModifiers(c,["prevent"])},[e.renderSlot(y.$slots,"default",{isLoading:n.value})],32))}}),U={key:0,class:"konnectio-availability-location"},$={id:"fresh-booking-availability-date-selection"},L={key:1,id:"fresh-booking-availability-guest-selection"},H={id:"fresh-booking-availability-confirmation"},q=e.defineComponent({__name:"HotelAvailabilityForm",props:{booking:{type:Boolean,default:!1},link:{}},setup(v){const{t:l}=e.useI18n(),n=v,{adults:o,children:u,arrivalDate:r,departureDate:c,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)))),J=e.computed(()=>new Date(new Date().setDate(new Date().getDate()+D.value))),K=e.computed(()=>new Date(new Date().setDate(r.value.getDate()+g.value))),A=e.computed(()=>new Date(new Date().setDate(r.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(r,i=>{const t=new Date(new Date(i).setDate(new Date(i).getDate()+1));new Date(c.value)<t&&(c.value=t)}),e.watch(f,i=>{r.value=i[0],c.value=i[1]}),e.onMounted(()=>{y.value&&k(),f.value=[r.value,c.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",$,[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",L,[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(u),"onUpdate:modelValue":t[6]||(t[6]=a=>e.isRef(u)?u.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(u),"onUpdate:modelValue":t[7]||(t[7]=a=>e.isRef(u)?u.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",H,[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 T=e._export_sfc(q,[["__scopeId","data-v-a901e79d"]]),I={class:"availability-skeleton"},z={key:0,class:"availability-skeleton-navigation"},O={key:1,class:"availability-skeleton-hotel"},M={key:2,class:"availability-skeleton-event"},j=e.defineComponent({__name:"AvailabilitySkeleton",props:{view:{default:"hotel"}},setup(v){return(l,n)=>(e.openBlock(),e.createElementBlock("div",I,[l.view==="both"?(e.openBlock(),e.createElementBlock("div",z,[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",O,[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",M,[e.createVNode(_.Field,{"with-icon":""}),e.createVNode(_.Field,{"with-icon":"","no-label":""})]))]))}});const G=e._export_sfc(j,[["__scopeId","data-v-d044752e"]]);exports.AvailabilitySkeleton=G;exports.HotelAvailabilityForm=T;exports._sfc_main=B;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as g, l as k, r as _, o as S, m as p, n as $, w as A, A as d, p as V, q as i, T as C, I as B, _ as v,
|
|
2
|
-
const O = { class: "fresh-booking-phone-input" },
|
|
1
|
+
import { k as g, l as k, r as _, o as S, m as p, n as $, w as A, A as d, p as V, q as i, T as C, I as B, _ as v, ah as I, y as h, ai as T, aj as w, v as b, H as u, x as P, F as N, a6 as f, s as F, c as G, ak as j, Q as E, R as H } from "./SelectField.vue_vue_type_style_index_0_lang-523f077b.js";
|
|
2
|
+
const O = { class: "fresh-booking-phone-input" }, R = /* @__PURE__ */ g({
|
|
3
3
|
__name: "PhoneField",
|
|
4
4
|
props: {
|
|
5
5
|
modelValue: {},
|
|
@@ -68,7 +68,7 @@ const O = { class: "fresh-booking-phone-input" }, U = /* @__PURE__ */ g({
|
|
|
68
68
|
}, 8, ["label", "id", "required", "readonly"]));
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
|
-
const x = /* @__PURE__ */ v(
|
|
71
|
+
const x = /* @__PURE__ */ v(R, [["__scopeId", "data-v-5cd094ab"]]), U = ["required", "type", "name", "readonly", "disabled", "value", "checked"], W = ["data-test"], z = { key: 0 }, D = /* @__PURE__ */ g({
|
|
72
72
|
__name: "Checkbox",
|
|
73
73
|
props: {
|
|
74
74
|
modelValue: { type: [String, Boolean, Number] },
|
|
@@ -116,7 +116,7 @@ const x = /* @__PURE__ */ v(U, [["__scopeId", "data-v-5cd094ab"]]), W = ["requir
|
|
|
116
116
|
value: e.type === "radio" ? e.val : e.modelValue,
|
|
117
117
|
checked: e.type === "radio" ? e.val === e.modelValue : !!e.modelValue,
|
|
118
118
|
onChange: s[0] || (s[0] = (m) => c())
|
|
119
|
-
}), null, 16,
|
|
119
|
+
}), null, 16, U),
|
|
120
120
|
d("div", {
|
|
121
121
|
class: h([
|
|
122
122
|
"fresh-booking-click-box",
|
|
@@ -126,13 +126,13 @@ const x = /* @__PURE__ */ v(U, [["__scopeId", "data-v-5cd094ab"]]), W = ["requir
|
|
|
126
126
|
style: T(e.inputStyle),
|
|
127
127
|
"data-test": e.name,
|
|
128
128
|
onKeyup: s[1] || (s[1] = w((m) => c(), ["enter"]))
|
|
129
|
-
}, null, 46,
|
|
129
|
+
}, null, 46, W),
|
|
130
130
|
e.label ? (p(), b("div", {
|
|
131
131
|
key: 0,
|
|
132
132
|
class: h(["fresh-booking-click-box-label", { "with-price": e.price }])
|
|
133
133
|
}, [
|
|
134
134
|
d("span", null, u(e.label), 1),
|
|
135
|
-
e.price ? (p(), b("span",
|
|
135
|
+
e.price ? (p(), b("span", z, u(e.price), 1)) : P("", !0)
|
|
136
136
|
], 2)) : P("", !0)
|
|
137
137
|
], 2)
|
|
138
138
|
]),
|
|
@@ -140,15 +140,15 @@ const x = /* @__PURE__ */ v(U, [["__scopeId", "data-v-5cd094ab"]]), W = ["requir
|
|
|
140
140
|
}, 8, ["required", "type", "readonly"]));
|
|
141
141
|
}
|
|
142
142
|
});
|
|
143
|
-
const ee = /* @__PURE__ */ v(
|
|
143
|
+
const ee = /* @__PURE__ */ v(D, [["__scopeId", "data-v-7ef656cb"]]), K = { href: "https://policies.google.com/privacy" }, M = { href: "https://policies.google.com/terms" }, Q = /* @__PURE__ */ g({
|
|
144
144
|
__name: "GoogleNotice",
|
|
145
145
|
setup(a) {
|
|
146
146
|
const { t: l } = N();
|
|
147
147
|
return (t, n) => (p(), b("span", null, [
|
|
148
148
|
f(u(i(l)("googleNotice")) + " ", 1),
|
|
149
|
-
d("a",
|
|
149
|
+
d("a", K, u(i(l)("googlePrivacyPolicy")), 1),
|
|
150
150
|
f(" " + u(i(l)("googleAnd")) + " ", 1),
|
|
151
|
-
d("a",
|
|
151
|
+
d("a", M, u(i(l)("googleTOS")), 1),
|
|
152
152
|
f(" " + u(i(l)("googleApply")) + ". ", 1)
|
|
153
153
|
]));
|
|
154
154
|
}
|
|
@@ -176,7 +176,7 @@ function q(a) {
|
|
|
176
176
|
});
|
|
177
177
|
}
|
|
178
178
|
typeof q == "function" && q(Q);
|
|
179
|
-
const J = (a) => (
|
|
179
|
+
const J = (a) => (E("data-v-340cb9ce"), a = a(), H(), a), L = /* @__PURE__ */ J(() => /* @__PURE__ */ d("div", { id: "fresh-booking-payment-checkout" }, null, -1)), X = [
|
|
180
180
|
L
|
|
181
181
|
], Y = /* @__PURE__ */ g({
|
|
182
182
|
__name: "CheckoutWindow",
|
|
Binary file
|
|
@@ -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-61443b22.cjs"),m={class:"fresh-booking-phone-input"},f=e.defineComponent({__name:"PhoneField",props:{modelValue:{},label:{},id:{},placeholder:{},icon:{default:"phone-office"},iconColor:{},iconType:{default:"fal"},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputStyle:{}},emits:["update:modelValue"],setup(a,{emit:l}){const n=l,i=a,s=i.id||e.ranId(),o=e.ref("+45"),d=e.ref("");function p(){n("update:modelValue",`${o.value} ${d.value}`)}return e.onMounted(()=>{if(i.modelValue){const t=i.modelValue.split(" ");o.value=t[0],d.value=t[1]}}),(t,r)=>(e.openBlock(),e.createBlock(e.InputField,{label:t.label,id:e.unref(s),type:"phone",required:t.required,readonly:t.readonly},{default:e.withCtx(()=>[e.createBaseVNode("div",m,[e.createVNode(e.TextField,{modelValue:o.value,"onUpdate:modelValue":r[0]||(r[0]=u=>o.value=u),type:"text",id:e.unref(e.ranId)(),name:"phone-code",autocomplete:"tel-country-code",icon:t.icon,"icon-color":t.iconColor,"icon-type":t.iconType,placeholder:"+45",required:t.required,readonly:t.readonly,"input-style":t.inputStyle,onInput:r[1]||(r[1]=u=>p())},null,8,["modelValue","id","icon","icon-color","icon-type","required","readonly","input-style"]),e.createVNode(e.TextField,{modelValue:d.value,"onUpdate:modelValue":r[2]||(r[2]=u=>d.value=u),type:"number",name:"phone",autocomplete:"tel-national",id:e.unref(s),placeholder:t.placeholder,required:t.required,readonly:t.readonly,"input-style":t.inputStyle,onInput:r[3]||(r[3]=u=>p())},null,8,["modelValue","id","placeholder","required","readonly","input-style"])])]),_:1},8,["label","id","required","readonly"]))}});const h=e._export_sfc(f,[["__scopeId","data-v-5cd094ab"]]),g=["required","type","name","readonly","disabled","value","checked"],b=["data-test"],v={key:0},k=e.defineComponent({__name:"Checkbox",props:{modelValue:{type:[String,Boolean,Number]},numeric:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},label:{},price:{},name:{},readonly:{type:Boolean,default:!1},type:{default:"checkbox"},required:{type:Boolean,default:!1},inputStyle:{},val:{}},emits:["update:modelValue"],setup(a,{emit:l}){const n=a,i=l;function s(){n.readonly!==!0&&i("update:modelValue",n.type==="radio"?n.val:n.numeric?n.modelValue?0:1:!n.modelValue)}return(o,d)=>(e.openBlock(),e.createBlock(e.InputField,{required:o.required,type:o.type,readonly:o.readonly},{default:e.withCtx(()=>[e.createBaseVNode("label",{class:e.normalizeClass(["fresh-booking-click-box-container",{"is-readonly":o.readonly},{"has-label":o.label},o.type==="radio"?"radio":"checkbox"])},[e.createBaseVNode("input",e.mergeProps(o.$attrs,{required:!!o.required,type:o.type,name:o.name,class:"hidden",readonly:!!o.readonly,disabled:!!o.readonly,value:o.type==="radio"?o.val:o.modelValue,checked:o.type==="radio"?o.val===o.modelValue:!!o.modelValue,onChange:d[0]||(d[0]=p=>s())}),null,16,g),e.createBaseVNode("div",{class:e.normalizeClass(["fresh-booking-click-box",{checked:o.type==="radio"?o.val===o.modelValue:!!o.modelValue}]),tabindex:"0",style:e.normalizeStyle(o.inputStyle),"data-test":o.name,onKeyup:d[1]||(d[1]=e.withKeys(p=>s(),["enter"]))},null,46,b),o.label?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["fresh-booking-click-box-label",{"with-price":o.price}])},[e.createBaseVNode("span",null,e.toDisplayString(o.label),1),o.price?(e.openBlock(),e.createElementBlock("span",v,e.toDisplayString(o.price),1)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],2)]),_:1},8,["required","type","readonly"]))}});const _=e._export_sfc(k,[["__scopeId","data-v-7ef656cb"]]),V={href:"https://policies.google.com/privacy"},C={href:"https://policies.google.com/terms"},y=e.defineComponent({__name:"GoogleNotice",setup(a){const{t:l}=e.useI18n();return(n,i)=>(e.openBlock(),e.createElementBlock("span",null,[e.createTextVNode(e.toDisplayString(e.unref(l)("googleNotice"))+" ",1),e.createBaseVNode("a",V,e.toDisplayString(e.unref(l)("googlePrivacyPolicy")),1),e.createTextVNode(" "+e.toDisplayString(e.unref(l)("googleAnd"))+" ",1),e.createBaseVNode("a",C,e.toDisplayString(e.unref(l)("googleTOS")),1),e.createTextVNode(" "+e.toDisplayString(e.unref(l)("googleApply"))+". ",1)]))}});function c(a){const l=a;l.__i18n=l.__i18n||[],l.__i18n.push({locale:"",resource:{da:{googleNotice:{t:0,b:{t:2,i:[{t:3}],s:"Denne side er beskyttet af reCAPTCHA og Google's"}},googlePrivacyPolicy:{t:0,b:{t:2,i:[{t:3}],s:"Privatlivspolitik"}},googleAnd:{t:0,b:{t:2,i:[{t:3}],s:"og"}},googleTOS:{t:0,b:{t:2,i:[{t:3}],s:"Servicevilkår"}},googleApply:{t:0,b:{t:2,i:[{t:3}],s:"er gældende"}}},en:{googleNotice:{t:0,b:{t:2,i:[{t:3}],s:"This site is protected by reCAPTCHA and the Google"}},googlePrivacyPolicy:{t:0,b:{t:2,i:[{t:3}],s:"Privacy Policy"}},googleAnd:{t:0,b:{t:2,i:[{t:3}],s:"and"}},googleTOS:{t:0,b:{t:2,i:[{t:3}],s:"Terms of Service"}},googleApply:{t:0,b:{t:2,i:[{t:3}],s:"apply"}}}}})}typeof c=="function"&&c(y);const B=a=>(e.pushScopeId("data-v-340cb9ce"),a=a(),e.popScopeId(),a),S=B(()=>e.createBaseVNode("div",{id:"fresh-booking-payment-checkout"},null,-1)),N=[S],P=e.defineComponent({__name:"CheckoutWindow",setup(a){const{paymentGatewayId:l}=e.storeToRefs(e.useUtilityStore());return e.onMounted(()=>{const n=document.createElement("script"),i=document.createElement("script");n.setAttribute("src","https://checkout.dibspayment.eu/v1/checkout.js?v=1"),i.setAttribute("src","https://checkout.reepay.com/checkout.js"),document.head.appendChild(n),document.head.appendChild(i)}),(n,i)=>(e.openBlock(),e.createElementBlock("div",null,[e.createBaseVNode("div",{id:"fresh-booking-payment-checkout-wrapper",class:e.normalizeClass({reePay:e.unref(l)===e.unref(e.PaymentGateway).ReePay})},N,2)]))}});const q=e._export_sfc(P,[["__scopeId","data-v-340cb9ce"]]);exports.Checkbox=_;exports.CheckoutWindow=q;exports.PhoneField=h;exports._sfc_main=y;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { k as n, f as a, o as l, m as u, v as p, D as d, _ as s } from "./SelectField.vue_vue_type_style_index_0_lang-523f077b.js";
|
|
2
|
+
const i = { class: "konnectio-container" }, c = /* @__PURE__ */ n({
|
|
3
|
+
__name: "Container",
|
|
4
|
+
props: {
|
|
5
|
+
styling: {}
|
|
6
|
+
},
|
|
7
|
+
setup(t) {
|
|
8
|
+
const r = t, o = a(() => ({
|
|
9
|
+
accentColor: "#6ab1e6",
|
|
10
|
+
accentColorSecondary: "#dae9f8",
|
|
11
|
+
buttonBackground: "#6ab1e6",
|
|
12
|
+
buttonBorder: null,
|
|
13
|
+
buttonBorderRadius: "4px",
|
|
14
|
+
buttonColor: "#FFF",
|
|
15
|
+
buttonFontFamily: "inherit",
|
|
16
|
+
buttonFontSize: "14px",
|
|
17
|
+
buttonFontWeight: "400",
|
|
18
|
+
buttonIconColor: "#FFF",
|
|
19
|
+
buttonTextTransform: "uppercase",
|
|
20
|
+
dangerColor: "red",
|
|
21
|
+
fontColor: "#3b3b3b",
|
|
22
|
+
fontFamily: "inherit",
|
|
23
|
+
fontSize: "16px",
|
|
24
|
+
grayColor: "grey",
|
|
25
|
+
headerColor: "#000",
|
|
26
|
+
inputBorder: "1px solid rgba(0, 0, 0, 0.15)",
|
|
27
|
+
inputBackground: "#f8f8f8",
|
|
28
|
+
inputBorderWidth: "0px 0px 1px",
|
|
29
|
+
inputBorderRadius: "6px",
|
|
30
|
+
inputFontColor: "#000000",
|
|
31
|
+
labelFontColor: "#000000",
|
|
32
|
+
labelFontWeight: "bold",
|
|
33
|
+
labelFontSize: "15px",
|
|
34
|
+
labelPadding: "6px",
|
|
35
|
+
linkColor: "#5d6dca",
|
|
36
|
+
linkHoverColor: "#2e3d90",
|
|
37
|
+
loadingColor: "#000",
|
|
38
|
+
panelBackground: "#ffffff",
|
|
39
|
+
panelBorder: null,
|
|
40
|
+
panelBorderRadius: "5px",
|
|
41
|
+
panelInnerPadding: "12px",
|
|
42
|
+
panelMaxWidth: "none",
|
|
43
|
+
panelPadding: "24px",
|
|
44
|
+
panelShadow: "0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)",
|
|
45
|
+
successColor: "green",
|
|
46
|
+
...r.styling
|
|
47
|
+
}));
|
|
48
|
+
return l(() => {
|
|
49
|
+
const e = document.documentElement.style;
|
|
50
|
+
e.setProperty("--accentColor", o.value.accentColor), e.setProperty("--accentColorSecondary", o.value.accentColorSecondary), e.setProperty("--buttonBackground", o.value.buttonBackground), e.setProperty("--buttonBorder", o.value.buttonBorder), e.setProperty("--buttonBorderRadius", o.value.buttonBorderRadius), e.setProperty("--buttonColor", o.value.buttonColor), e.setProperty("--buttonFontFamily", o.value.buttonFontFamily), e.setProperty("--buttonFontSize", o.value.buttonFontSize), e.setProperty("--buttonFontWeight", o.value.buttonFontWeight), e.setProperty("--buttonTextTransform", o.value.buttonTextTransform), e.setProperty("--dangerColor", o.value.dangerColor), e.setProperty("--fontColor", o.value.fontColor), e.setProperty("--fontFamily", o.value.fontFamily), e.setProperty("--fontSize", o.value.fontSize), e.setProperty("--grayColor", o.value.grayColor), e.setProperty("--headerColor", o.value.headerColor), e.setProperty("--inputBackground", o.value.inputBackground), e.setProperty("--inputBorder", o.value.inputBorder), e.setProperty("--inputBorderRadius", o.value.inputBorderRadius), e.setProperty("--inputBorderWidth", o.value.inputBorderWidth), e.setProperty("--inputFontColor", o.value.inputFontColor), e.setProperty("--labelFontColor", o.value.labelFontColor), e.setProperty("--labelFontWeight", o.value.labelFontWeight), e.setProperty("--labelFontSize", o.value.labelFontSize), e.setProperty("--labelPadding", o.value.labelPadding), e.setProperty("--linkColor", o.value.linkColor), e.setProperty("--linkHoverColor", o.value.linkHoverColor), e.setProperty("--loadingColor", o.value.loadingColor), e.setProperty("--panelBackground", o.value.panelBackground), e.setProperty("--panelBorder", o.value.panelBorder), e.setProperty("--panelBorderRadius", o.value.panelBorderRadius), e.setProperty("--panelInnerPadding", o.value.panelInnerPadding), e.setProperty("--panelMaxWidth", o.value.panelMaxWidth), e.setProperty("--panelPadding", o.value.panelPadding), e.setProperty("--panelShadow", o.value.panelShadow), e.setProperty("--successColor", o.value.successColor);
|
|
51
|
+
}), (e, y) => (u(), p("div", i, [
|
|
52
|
+
d(e.$slots, "default", {}, void 0, !0)
|
|
53
|
+
]));
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
const P = /* @__PURE__ */ s(c, [["__scopeId", "data-v-b8c97ab0"]]);
|
|
57
|
+
export {
|
|
58
|
+
P as C
|
|
59
|
+
};
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("./SelectField.vue_vue_type_style_index_0_lang-61443b22.cjs"),l={class:"konnectio-container"},a=t.defineComponent({__name:"Container",props:{styling:{}},setup(r){const n=r,o=t.computed(()=>({accentColor:"#6ab1e6",accentColorSecondary:"#dae9f8",buttonBackground:"#6ab1e6",buttonBorder:null,buttonBorderRadius:"4px",buttonColor:"#FFF",buttonFontFamily:"inherit",buttonFontSize:"14px",buttonFontWeight:"400",buttonIconColor:"#FFF",buttonTextTransform:"uppercase",dangerColor:"red",fontColor:"#3b3b3b",fontFamily:"inherit",fontSize:"16px",grayColor:"grey",headerColor:"#000",inputBorder:"1px solid rgba(0, 0, 0, 0.15)",inputBackground:"#f8f8f8",inputBorderWidth:"0px 0px 1px",inputBorderRadius:"6px",inputFontColor:"#000000",labelFontColor:"#000000",labelFontWeight:"bold",labelFontSize:"15px",labelPadding:"6px",linkColor:"#5d6dca",linkHoverColor:"#2e3d90",loadingColor:"#000",panelBackground:"#ffffff",panelBorder:null,panelBorderRadius:"5px",panelInnerPadding:"12px",panelMaxWidth:"none",panelPadding:"24px",panelShadow:"0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)",successColor:"green",...n.styling}));return t.onMounted(()=>{const e=document.documentElement.style;e.setProperty("--accentColor",o.value.accentColor),e.setProperty("--accentColorSecondary",o.value.accentColorSecondary),e.setProperty("--buttonBackground",o.value.buttonBackground),e.setProperty("--buttonBorder",o.value.buttonBorder),e.setProperty("--buttonBorderRadius",o.value.buttonBorderRadius),e.setProperty("--buttonColor",o.value.buttonColor),e.setProperty("--buttonFontFamily",o.value.buttonFontFamily),e.setProperty("--buttonFontSize",o.value.buttonFontSize),e.setProperty("--buttonFontWeight",o.value.buttonFontWeight),e.setProperty("--buttonTextTransform",o.value.buttonTextTransform),e.setProperty("--dangerColor",o.value.dangerColor),e.setProperty("--fontColor",o.value.fontColor),e.setProperty("--fontFamily",o.value.fontFamily),e.setProperty("--fontSize",o.value.fontSize),e.setProperty("--grayColor",o.value.grayColor),e.setProperty("--headerColor",o.value.headerColor),e.setProperty("--inputBackground",o.value.inputBackground),e.setProperty("--inputBorder",o.value.inputBorder),e.setProperty("--inputBorderRadius",o.value.inputBorderRadius),e.setProperty("--inputBorderWidth",o.value.inputBorderWidth),e.setProperty("--inputFontColor",o.value.inputFontColor),e.setProperty("--labelFontColor",o.value.labelFontColor),e.setProperty("--labelFontWeight",o.value.labelFontWeight),e.setProperty("--labelFontSize",o.value.labelFontSize),e.setProperty("--labelPadding",o.value.labelPadding),e.setProperty("--linkColor",o.value.linkColor),e.setProperty("--linkHoverColor",o.value.linkHoverColor),e.setProperty("--loadingColor",o.value.loadingColor),e.setProperty("--panelBackground",o.value.panelBackground),e.setProperty("--panelBorder",o.value.panelBorder),e.setProperty("--panelBorderRadius",o.value.panelBorderRadius),e.setProperty("--panelInnerPadding",o.value.panelInnerPadding),e.setProperty("--panelMaxWidth",o.value.panelMaxWidth),e.setProperty("--panelPadding",o.value.panelPadding),e.setProperty("--panelShadow",o.value.panelShadow),e.setProperty("--successColor",o.value.successColor)}),(e,p)=>(t.openBlock(),t.createElementBlock("div",l,[t.renderSlot(e.$slots,"default",{},void 0,!0)]))}});const u=t._export_sfc(a,[["__scopeId","data-v-b8c97ab0"]]);exports.Container=u;
|