@konnectio/core 4.0.9 → 4.0.10
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-f3d5b218.js → ActionField-68f65af4.js} +4 -4
- package/dist/ActionField-68f65af4.js.br +0 -0
- package/dist/ActionField-ab9c01ab.cjs +1 -0
- package/dist/AvailabilitySkeleton-c48588e4.js +382 -0
- package/dist/AvailabilitySkeleton-c48588e4.js.br +0 -0
- package/dist/AvailabilitySkeleton-ca6cf6b6.cjs +1 -0
- package/dist/{payment-cce506b8.js → DateField.vue_vue_type_style_index_0_lang-87ddfed8.js} +3216 -2953
- package/dist/DateField.vue_vue_type_style_index_0_lang-87ddfed8.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-b6694990.cjs +5 -0
- package/dist/Field-b76d82cb.js +42 -0
- package/dist/Field-b76d82cb.js.br +0 -0
- package/dist/Field-d926807f.cjs +1 -0
- package/dist/{applyGiftCard-dea77ba6.js → NumberField.vue_vue_type_script_setup_true_lang-a32b2a11.js} +59 -59
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-a32b2a11.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-a549c70e.cjs +1 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-2bf82818.cjs +806 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-c973d794.js +19169 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-c973d794.js.br +0 -0
- package/dist/{TextField-99e69631.cjs → TextField-528ca68c.cjs} +1 -1
- package/dist/{TextField-b8f4462a.js → TextField-8f6e5ef5.js} +139 -137
- package/dist/TextField-8f6e5ef5.js.br +0 -0
- package/dist/ThankYou-2f3c4efe.js +11777 -0
- package/dist/ThankYou-2f3c4efe.js.br +0 -0
- package/dist/ThankYou-8ae535bf.cjs +54 -0
- package/dist/_-3cff5490.cjs +1 -0
- package/dist/_-734c9d50.js +82 -0
- package/dist/_-734c9d50.js.br +0 -0
- package/dist/assets/typescript/mixins.d.ts +1 -4
- package/dist/availability.cjs +2 -2
- package/dist/availability.js +94 -142
- package/dist/availability.js.br +0 -0
- package/dist/components/Icon.vue.d.ts +1 -1
- package/dist/components/forms/EventAvailabilityForm.vue.d.ts +1 -1
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +1 -1
- package/dist/components/forms/HotelReservationForm.vue.d.ts +4 -0
- package/dist/components/forms/HotelReservationForm.vue.d.ts.map +1 -0
- package/dist/components/forms/MultiStepForm.vue.d.ts +1 -1
- package/dist/components/forms/ReservationForm.vue.d.ts +1 -1
- package/dist/components/forms/_.vue.d.ts +4 -0
- package/dist/components/forms/_.vue.d.ts.map +1 -0
- package/dist/components/inputs/InputField.vue.d.ts +1 -1
- package/dist/components/listings/Base.vue.d.ts +1 -1
- package/dist/components/listings/Event.vue.d.ts +1 -1
- package/dist/components/listings/{Test.vue.d.ts → Hotel.vue.d.ts} +3 -3
- package/dist/components/listings/Hotel.vue.d.ts.map +1 -0
- package/dist/components/modals/Info.vue.d.ts +1 -1
- package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +1 -1
- package/dist/components/skeletons/Field.vue.d.ts +1 -1
- package/dist/components/skeletons/HotelSkeleton.vue.d.ts +1 -1
- package/dist/components/{side-panels/Hotel.vue.d.ts → skeletons/Sidebar.vue.d.ts} +3 -3
- package/dist/components/skeletons/Sidebar.vue.d.ts.map +1 -0
- package/dist/components/skeletons/_.vue.d.ts +1 -1
- package/dist/components/views/CheckoutWindow.vue.d.ts +1 -1
- package/dist/components/views/TermsOfService.vue.d.ts +1 -1
- package/dist/components/views/ThankYou.vue.d.ts +1 -1
- package/dist/event-4662e27c.cjs +1 -0
- package/dist/{event-a9067cf5.js → event-e08d0178.js} +37 -37
- package/dist/event-e08d0178.js.br +0 -0
- package/dist/event.cjs +1 -2
- package/dist/event.js +402 -706
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.cjs +1 -1
- package/dist/gift-card-validation.js +72 -126
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.cjs +1 -1
- package/dist/gift-card.js +302 -390
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.cjs +5 -5
- package/dist/hotel.js +2215 -2229
- package/dist/hotel.js.br +0 -0
- package/dist/{index-ec04c269.cjs → index-a46a0876.cjs} +1 -1
- package/dist/{index-d080b5a0.js → index-c28f52d1.js} +32 -14
- package/dist/index-c28f52d1.js.br +0 -0
- package/dist/layouts/Availability.vue.d.ts +20 -67
- package/dist/layouts/Event.vue.d.ts +16 -242
- package/dist/layouts/GiftCard.vue.d.ts +29 -280
- package/dist/layouts/GiftCardValidation.vue.d.ts +16 -226
- package/dist/layouts/Hotel.vue.d.ts +33 -378
- package/dist/layouts/_.vue.d.ts +31 -20
- package/dist/polyfill.cjs +4 -4
- package/dist/polyfill.js +1586 -1575
- package/dist/polyfill.js.br +0 -0
- package/dist/store/availability.d.ts +1 -1
- package/dist/store/giftCard.d.ts +3 -3
- package/dist/store/hotel.d.ts +318 -204
- package/dist/store/tracking.d.ts +6 -14
- package/dist/store/utilities.d.ts +87 -81
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/dist/types/index.d.ts +44 -8
- package/package.json +21 -21
- package/dist/ActionField-b87d2fd7.cjs +0 -1
- package/dist/ActionField-f3d5b218.js.br +0 -0
- package/dist/AvailabilitySkeleton-019ec202.js +0 -150
- package/dist/AvailabilitySkeleton-019ec202.js.br +0 -0
- package/dist/AvailabilitySkeleton-e288f5be.cjs +0 -1
- package/dist/Field-21bb32d7.cjs +0 -1
- package/dist/Field-6bfeedce.js +0 -59
- package/dist/Field-6bfeedce.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-701aecad.js +0 -17193
- package/dist/SelectField.vue_vue_type_style_index_0_lang-701aecad.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-a370e66d.cjs +0 -797
- package/dist/TextField-b8f4462a.js.br +0 -0
- package/dist/ThankYou-add684c1.cjs +0 -66
- package/dist/ThankYou-edbf753b.js +0 -14279
- package/dist/ThankYou-edbf753b.js.br +0 -0
- package/dist/applyGiftCard-c21f13ac.cjs +0 -1
- package/dist/applyGiftCard-dea77ba6.js.br +0 -0
- package/dist/components/forms/ReservationFormTest.vue.d.ts +0 -5
- package/dist/components/forms/ReservationFormTest.vue.d.ts.map +0 -1
- package/dist/components/listings/Test.vue.d.ts.map +0 -1
- package/dist/components/side-panels/Base.vue.d.ts +0 -5
- package/dist/components/side-panels/Base.vue.d.ts.map +0 -1
- package/dist/components/side-panels/Hotel.vue.d.ts.map +0 -1
- package/dist/event-2c6a2138.cjs +0 -1
- package/dist/event-a9067cf5.js.br +0 -0
- package/dist/index-d080b5a0.js.br +0 -0
- package/dist/payment-95b2392a.cjs +0 -2
- package/dist/payment-cce506b8.js.br +0 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { h as l, k as t, q as a, l as i, t as n, m as o, v as d, _ as r } from "./SelectField.vue_vue_type_style_index_0_lang-c973d794.js";
|
|
2
|
+
import { E as s } from "./_-734c9d50.js";
|
|
3
|
+
const p = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "skeleton-field-label"
|
|
6
|
+
}, _ = { key: 1 }, c = /* @__PURE__ */ l({
|
|
7
|
+
__name: "Field",
|
|
8
|
+
props: {
|
|
9
|
+
withIcon: { type: Boolean, default: !1 },
|
|
10
|
+
noLabel: { type: Boolean, default: !1 },
|
|
11
|
+
isTextArea: { type: Boolean, default: !1 }
|
|
12
|
+
},
|
|
13
|
+
setup(h) {
|
|
14
|
+
return (e, f) => (t(), a("div", {
|
|
15
|
+
class: d([
|
|
16
|
+
"skeleton-field",
|
|
17
|
+
{ "is-text-area": e.isTextArea }
|
|
18
|
+
])
|
|
19
|
+
}, [
|
|
20
|
+
e.noLabel ? (t(), a("div", _)) : (t(), a("div", p, [
|
|
21
|
+
e.withIcon ? (t(), i(s, {
|
|
22
|
+
key: 0,
|
|
23
|
+
height: "15px",
|
|
24
|
+
width: "15px"
|
|
25
|
+
})) : n("", !0),
|
|
26
|
+
o(s, {
|
|
27
|
+
height: "15px",
|
|
28
|
+
width: "30%"
|
|
29
|
+
})
|
|
30
|
+
])),
|
|
31
|
+
o(s, {
|
|
32
|
+
height: e.isTextArea ? "82px" : "44px",
|
|
33
|
+
width: "100%",
|
|
34
|
+
"border-radius": "6px"
|
|
35
|
+
}, null, 8, ["height"])
|
|
36
|
+
], 2));
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
const x = /* @__PURE__ */ r(c, [["__scopeId", "data-v-d3ba4545"]]);
|
|
40
|
+
export {
|
|
41
|
+
x as F
|
|
42
|
+
};
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-2bf82818.cjs"),l=require("./_-3cff5490.cjs"),o={key:0,class:"skeleton-field-label"},n={key:1},a=e.defineComponent({__name:"Field",props:{withIcon:{type:Boolean,default:!1},noLabel:{type:Boolean,default:!1},isTextArea:{type:Boolean,default:!1}},setup(i){return(t,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["skeleton-field",{"is-text-area":t.isTextArea}])},[t.noLabel?(e.openBlock(),e.createElementBlock("div",n)):(e.openBlock(),e.createElementBlock("div",o,[t.withIcon?(e.openBlock(),e.createBlock(l.Element,{key:0,height:"15px",width:"15px"})):e.createCommentVNode("",!0),e.createVNode(l.Element,{height:"15px",width:"30%"})])),e.createVNode(l.Element,{height:t.isTextArea?"82px":"44px",width:"100%","border-radius":"6px"},null,8,["height"])],2))}});const s=e._export_sfc(a,[["__scopeId","data-v-d3ba4545"]]);exports.Field=s;
|
|
@@ -1,5 +1,53 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const D =
|
|
1
|
+
import { d as b, u as V, s as h, a as k, r as t, e as B, f as C, i, h as A, j as I, o as q, k as w, l as N, w as S, m as T, n as u, p as F, I as U } from "./SelectField.vue_vue_type_style_index_0_lang-c973d794.js";
|
|
2
|
+
const D = b("applyGiftCard", () => {
|
|
3
|
+
const { display: o } = V(), { bearerToken: r } = h(k()), a = t(0), l = t(""), n = t(""), e = t(""), s = t(!1), d = t(!1);
|
|
4
|
+
async function p() {
|
|
5
|
+
l.value !== "" ? (d.value = !0, await B.get("http://stage.hotel_service.konnectio.dk/api/gift-card/validate", {
|
|
6
|
+
params: {
|
|
7
|
+
giftcardCode: l.value,
|
|
8
|
+
lang: C()
|
|
9
|
+
},
|
|
10
|
+
headers: {
|
|
11
|
+
Authorization: r.value,
|
|
12
|
+
Accept: "application/json",
|
|
13
|
+
"Fresh-Booking-Ver": "4.0.9"
|
|
14
|
+
}
|
|
15
|
+
}).then((f) => {
|
|
16
|
+
const {
|
|
17
|
+
valid: m,
|
|
18
|
+
amount: y,
|
|
19
|
+
expirationDate: g,
|
|
20
|
+
productName: v
|
|
21
|
+
} = f.data;
|
|
22
|
+
m ? (a.value = y, n.value = g, e.value = v, s.value = !0, o({
|
|
23
|
+
message: i.t("alert.success.giftCardApplied"),
|
|
24
|
+
type: "success"
|
|
25
|
+
})) : (s.value = !1, o({
|
|
26
|
+
message: i.t("alert.error.giftCardInvalid"),
|
|
27
|
+
type: "warning"
|
|
28
|
+
}));
|
|
29
|
+
}), d.value = !1) : o({
|
|
30
|
+
message: i.t("alert.error.giftCardEmpty"),
|
|
31
|
+
type: "error"
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function c() {
|
|
35
|
+
a.value = 0, l.value = "", s.value = !1, o({
|
|
36
|
+
message: i.t("alert.success.giftCardRemoved"),
|
|
37
|
+
type: "success"
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
amount: a,
|
|
42
|
+
voucher: l,
|
|
43
|
+
expirationDate: n,
|
|
44
|
+
productName: e,
|
|
45
|
+
isValid: s,
|
|
46
|
+
isLoading: d,
|
|
47
|
+
apply: p,
|
|
48
|
+
reset: c
|
|
49
|
+
};
|
|
50
|
+
}), G = /* @__PURE__ */ A({
|
|
3
51
|
__name: "NumberField",
|
|
4
52
|
props: {
|
|
5
53
|
modelValue: { default: 0 },
|
|
@@ -23,14 +71,14 @@ const D = /* @__PURE__ */ v({
|
|
|
23
71
|
small: { type: Boolean, default: !1 }
|
|
24
72
|
},
|
|
25
73
|
emits: ["update:modelValue"],
|
|
26
|
-
setup(o, { emit:
|
|
27
|
-
const a = o, l = a.id ||
|
|
74
|
+
setup(o, { emit: r }) {
|
|
75
|
+
const a = o, l = a.id || I();
|
|
28
76
|
function n(e) {
|
|
29
|
-
|
|
77
|
+
r("update:modelValue", e);
|
|
30
78
|
}
|
|
31
|
-
return
|
|
79
|
+
return q(() => {
|
|
32
80
|
a.modelValue || n(a.minValue);
|
|
33
|
-
}), (e, s) => (
|
|
81
|
+
}), (e, s) => (w(), N(U, {
|
|
34
82
|
label: e.label,
|
|
35
83
|
id: u(l),
|
|
36
84
|
icon: e.icon,
|
|
@@ -41,8 +89,8 @@ const D = /* @__PURE__ */ v({
|
|
|
41
89
|
type: e.small ? "fresh-booking-number-picker small" : "fresh-booking-number-picker",
|
|
42
90
|
readonly: e.readonly
|
|
43
91
|
}, {
|
|
44
|
-
default:
|
|
45
|
-
|
|
92
|
+
default: S(() => [
|
|
93
|
+
T(u(F), {
|
|
46
94
|
attrs: { id: u(l) },
|
|
47
95
|
modelValue: e.modelValue,
|
|
48
96
|
min: e.minValue,
|
|
@@ -61,56 +109,8 @@ const D = /* @__PURE__ */ v({
|
|
|
61
109
|
_: 1
|
|
62
110
|
}, 8, ["label", "id", "icon", "icon-color", "icon-type", "icon-placement", "required", "type", "readonly"]));
|
|
63
111
|
}
|
|
64
|
-
}), G = w("applyGiftCard", () => {
|
|
65
|
-
const { display: o } = N(), { bearerToken: i } = S(T()), a = t(0), l = t(""), n = t(""), e = t(""), s = t(!1), d = t(!1);
|
|
66
|
-
async function p() {
|
|
67
|
-
l.value !== "" ? (d.value = !0, await F.get("https://stage.hotel-service.freshbooking.dk/api/gift-card/validate", {
|
|
68
|
-
params: {
|
|
69
|
-
giftCardCode: l.value,
|
|
70
|
-
lang: U()
|
|
71
|
-
},
|
|
72
|
-
headers: {
|
|
73
|
-
Authorization: i.value,
|
|
74
|
-
Accept: "application/json",
|
|
75
|
-
"Fresh-Booking-Ver": "4.0.9"
|
|
76
|
-
}
|
|
77
|
-
}).then((f) => {
|
|
78
|
-
const {
|
|
79
|
-
valid: m,
|
|
80
|
-
amount: y,
|
|
81
|
-
expirationDate: g,
|
|
82
|
-
productName: b
|
|
83
|
-
} = f.data;
|
|
84
|
-
m ? (a.value = y, n.value = g, e.value = b, s.value = !0, o({
|
|
85
|
-
message: r.t("alert.success.giftCardApplied"),
|
|
86
|
-
type: "success"
|
|
87
|
-
})) : (s.value = !1, o({
|
|
88
|
-
message: r.t("alert.error.giftCardInvalid"),
|
|
89
|
-
type: "warning"
|
|
90
|
-
}));
|
|
91
|
-
}), d.value = !1) : o({
|
|
92
|
-
message: r.t("alert.error.giftCardEmpty"),
|
|
93
|
-
type: "error"
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
function c() {
|
|
97
|
-
a.value = 0, l.value = "", s.value = !1, o({
|
|
98
|
-
message: r.t("alert.success.giftCardRemoved"),
|
|
99
|
-
type: "success"
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
return {
|
|
103
|
-
amount: a,
|
|
104
|
-
voucher: l,
|
|
105
|
-
expirationDate: n,
|
|
106
|
-
productName: e,
|
|
107
|
-
isValid: s,
|
|
108
|
-
isLoading: d,
|
|
109
|
-
apply: p,
|
|
110
|
-
reset: c
|
|
111
|
-
};
|
|
112
112
|
});
|
|
113
113
|
export {
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
G as _,
|
|
115
|
+
D as u
|
|
116
116
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-2bf82818.cjs"),g=e.defineStore("applyGiftCard",()=>{const{display:n}=e.useAlertStore(),{bearerToken:i}=e.storeToRefs(e.useUtilityStore()),l=e.ref(0),o=e.ref(""),t=e.ref(""),a=e.ref(""),r=e.ref(!1),d=e.ref(!1);async function s(){o.value!==""?(d.value=!0,await e.axios.get("http://stage.hotel_service.konnectio.dk/api/gift-card/validate",{params:{giftcardCode:o.value,lang:e.getUserLanguage()},headers:{Authorization:i.value,Accept:"application/json","Fresh-Booking-Ver":"4.0.9"}}).then(p=>{const{valid:c,amount:f,expirationDate:m,productName:y}=p.data;c?(l.value=f,t.value=m,a.value=y,r.value=!0,n({message:e.i18n.t("alert.success.giftCardApplied"),type:"success"})):(r.value=!1,n({message:e.i18n.t("alert.error.giftCardInvalid"),type:"warning"}))}),d.value=!1):n({message:e.i18n.t("alert.error.giftCardEmpty"),type:"error"})}function u(){l.value=0,o.value="",r.value=!1,n({message:e.i18n.t("alert.success.giftCardRemoved"),type:"success"})}return{amount:l,voucher:o,expirationDate:t,productName:a,isValid:r,isLoading:d,apply:s,reset:u}}),v=e.defineComponent({__name:"NumberField",props:{modelValue:{default:0},minValue:{default:0},maxValue:{default:1/0},inputtable:{type:Boolean,default:!0},label:{},placeholder:{},icon:{},iconColor:{},iconType:{default:"fal"},iconPlacement:{},step:{default:1},controls:{type:Boolean,default:!0},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},id:{},rounded:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},small:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n,{emit:i}){const l=n,o=l.id||e.ranId();function t(a){i("update:modelValue",a)}return e.onMounted(()=>{l.modelValue||t(l.minValue)}),(a,r)=>(e.openBlock(),e.createBlock(e.InputField,{label:a.label,id:e.unref(o),icon:a.icon,"icon-color":a.iconColor,"icon-type":a.iconType,"icon-placement":a.iconPlacement,required:a.required,type:a.small?"fresh-booking-number-picker small":"fresh-booking-number-picker",readonly:a.readonly},{default:e.withCtx(()=>[e.createVNode(e.unref(e.script),{attrs:{id:e.unref(o)},modelValue:a.modelValue,min:a.minValue,max:a.maxValue,step:a.step,inline:a.inline,controls:a.controls,placeholder:a.placeholder,readonly:a.readonly,inputtable:a.inputtable,rounded:a.rounded,disabled:a.disabled,"onUpdate:modelValue":t},null,8,["attrs","modelValue","min","max","step","inline","controls","placeholder","readonly","inputtable","rounded","disabled"])]),_:1},8,["label","id","icon","icon-color","icon-type","icon-placement","required","type","readonly"]))}});exports._sfc_main=v;exports.useApplyGiftCardStore=g;
|