@konnectio/core 4.0.18 → 4.0.19
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-4cb5a734.js +100 -0
- package/dist/ActionField-4cb5a734.js.br +0 -0
- package/dist/ActionField-656d204b.cjs +1 -0
- package/dist/AvailabilitySkeleton-00f7fc68.js +223 -0
- package/dist/AvailabilitySkeleton-00f7fc68.js.br +0 -0
- package/dist/AvailabilitySkeleton-8fc17074.cjs +1 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-d1a56eb0.js → DateField.vue_vue_type_style_index_0_lang-36b7ee9e.js} +2227 -2226
- package/dist/DateField.vue_vue_type_style_index_0_lang-36b7ee9e.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-ef9c83d6.cjs +5 -0
- package/dist/{Field-a7c1ed62.cjs → Field-4283160f.cjs} +1 -1
- package/dist/{Field-03e6b847.js → Field-e1af1bbc.js} +5 -5
- package/dist/Field-e1af1bbc.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-a517b062.cjs +1 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-eb9876fc.js +116 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-eb9876fc.js.br +0 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-51defa22.js → SelectField.vue_vue_type_style_index_0_lang-1c999286.js} +4696 -4499
- package/dist/SelectField.vue_vue_type_style_index_0_lang-1c999286.js.br +0 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-03794d02.cjs → SelectField.vue_vue_type_style_index_0_lang-af7c016a.cjs} +46 -46
- package/dist/{ThankYou-3ab29b45.cjs → ThankYou-01175a37.cjs} +2 -2
- package/dist/{ThankYou-f4945877.js → ThankYou-0860a0ab.js} +18 -12
- package/dist/ThankYou-0860a0ab.js.br +0 -0
- package/dist/{_-0787261e.js → _-6db0e1a4.js} +9 -9
- package/dist/_-6db0e1a4.js.br +0 -0
- package/dist/{_-917dcead.cjs → _-b5842a21.cjs} +1 -1
- package/dist/assets/typescript/mixins.d.ts +1 -0
- package/dist/availability.cjs +1 -1
- package/dist/availability.js +7 -7
- package/dist/availability.js.br +0 -0
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +1 -1
- package/dist/components/forms/MultiStepForm.vue.d.ts +1 -1
- 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/{event-208206cf.js → event-52fce8cc.js} +9 -9
- package/dist/event-52fce8cc.js.br +0 -0
- package/dist/event-c717dc05.cjs +1 -0
- package/dist/event.cjs +1 -1
- package/dist/event.js +144 -145
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.cjs +1 -1
- package/dist/gift-card-validation.js +25 -26
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.cjs +1 -1
- package/dist/gift-card.js +36 -37
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.cjs +5 -5
- package/dist/hotel.js +1297 -1173
- package/dist/hotel.js.br +0 -0
- package/dist/{index-5e1ea6f0.js → index-4aff7f4e.js} +1 -1
- package/dist/index-4aff7f4e.js.br +0 -0
- package/dist/{index-7ef3288b.cjs → index-5d223c1a.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 +4 -1
- 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-25ef64cf.js +0 -163
- package/dist/ActionField-25ef64cf.js.br +0 -0
- package/dist/ActionField-86389dfe.cjs +0 -1
- package/dist/AvailabilitySkeleton-3bb4b572.js +0 -200
- package/dist/AvailabilitySkeleton-3bb4b572.js.br +0 -0
- package/dist/AvailabilitySkeleton-a72464a1.cjs +0 -1
- package/dist/DateField.vue_vue_type_style_index_0_lang-d1a56eb0.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-f99302dc.cjs +0 -5
- package/dist/Field-03e6b847.js.br +0 -0
- package/dist/NumberField.vue_vue_type_style_index_0_lang-94fa5765.js +0 -194
- package/dist/NumberField.vue_vue_type_style_index_0_lang-94fa5765.js.br +0 -0
- package/dist/NumberField.vue_vue_type_style_index_0_lang-a779a531.cjs +0 -1
- package/dist/SelectField.vue_vue_type_style_index_0_lang-51defa22.js.br +0 -0
- package/dist/ThankYou-f4945877.js.br +0 -0
- package/dist/_-0787261e.js.br +0 -0
- package/dist/applyGiftCard-ba1da572.cjs +0 -1
- package/dist/applyGiftCard-f2282bd2.js +0 -53
- package/dist/applyGiftCard-f2282bd2.js.br +0 -0
- package/dist/event-07ba3a0e.cjs +0 -1
- package/dist/event-208206cf.js.br +0 -0
- package/dist/index-5e1ea6f0.js.br +0 -0
|
@@ -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-af7c016a.cjs"),l=require("./_-b5842a21.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,5 @@
|
|
|
1
|
-
import { h as l,
|
|
2
|
-
import { E as
|
|
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-1c999286.js";
|
|
2
|
+
import { E as s } from "./_-6db0e1a4.js";
|
|
3
3
|
const p = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "skeleton-field-label"
|
|
@@ -18,17 +18,17 @@ const p = {
|
|
|
18
18
|
])
|
|
19
19
|
}, [
|
|
20
20
|
e.noLabel ? (t(), a("div", _)) : (t(), a("div", p, [
|
|
21
|
-
e.withIcon ? (t(), i(
|
|
21
|
+
e.withIcon ? (t(), i(s, {
|
|
22
22
|
key: 0,
|
|
23
23
|
height: "15px",
|
|
24
24
|
width: "15px"
|
|
25
25
|
})) : n("", !0),
|
|
26
|
-
s
|
|
26
|
+
o(s, {
|
|
27
27
|
height: "15px",
|
|
28
28
|
width: "30%"
|
|
29
29
|
})
|
|
30
30
|
])),
|
|
31
|
-
s
|
|
31
|
+
o(s, {
|
|
32
32
|
height: e.isTextArea ? "82px" : "44px",
|
|
33
33
|
width: "100%",
|
|
34
34
|
"border-radius": "6px"
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-af7c016a.cjs"),g=e.defineStore("applyGiftCard",()=>{const{display:o}=e.useAlertStore(),{bearerToken:d}=e.storeToRefs(e.useUtilityStore()),t=e.ref(0),l=e.ref(""),n=e.ref(""),i=e.ref(""),a=e.ref(!1),r=e.ref(!1);async function s(){l.value!==""?(r.value=!0,await e.axios.get("https://stage.hotel-service.konnectio.dk/api/gift-card/validate",{params:{giftcardCode:l.value,lang:e.getUserLanguage()},headers:{Authorization:d.value,Accept:"application/json","Fresh-Booking-Ver":"4.0.19"}}).then(p=>{const{valid:c,amount:f,expirationDate:m,productName:y}=p.data;c?(t.value=f,n.value=m,i.value=y,a.value=!0,o({message:e.i18n.t("alert.success.giftCardApplied"),type:"success"})):(a.value=!1,o({message:e.i18n.t("alert.error.giftCardInvalid"),type:"warning"}))}),r.value=!1):o({message:e.i18n.t("alert.error.giftCardEmpty"),type:"error"})}function u(){t.value=0,l.value="",a.value=!1,o({message:e.i18n.t("alert.success.giftCardRemoved"),type:"success"})}return{amount:t,voucher:l,expirationDate:n,productName:i,isValid:a,isLoading:r,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(o,{emit:d}){const t=d,l=o,n=l.id||e.ranId();function i(a){t("update:modelValue",a)}return e.onMounted(()=>{l.modelValue||i(l.minValue)}),(a,r)=>(e.openBlock(),e.createBlock(e.InputField,{label:a.label,id:e.unref(n),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(n)},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":i},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;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { d as b, u as V, s as h, a as k, r as o, e as B, f as C, i as r, 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-1c999286.js";
|
|
2
|
+
const D = b("applyGiftCard", () => {
|
|
3
|
+
const { display: l } = V(), { bearerToken: d } = h(k()), t = o(0), a = o(""), n = o(""), s = o(""), e = o(!1), i = o(!1);
|
|
4
|
+
async function p() {
|
|
5
|
+
a.value !== "" ? (i.value = !0, await B.get("https://stage.hotel-service.konnectio.dk/api/gift-card/validate", {
|
|
6
|
+
params: {
|
|
7
|
+
giftcardCode: a.value,
|
|
8
|
+
lang: C()
|
|
9
|
+
},
|
|
10
|
+
headers: {
|
|
11
|
+
Authorization: d.value,
|
|
12
|
+
Accept: "application/json",
|
|
13
|
+
"Fresh-Booking-Ver": "4.0.19"
|
|
14
|
+
}
|
|
15
|
+
}).then((f) => {
|
|
16
|
+
const {
|
|
17
|
+
valid: m,
|
|
18
|
+
amount: y,
|
|
19
|
+
expirationDate: g,
|
|
20
|
+
productName: v
|
|
21
|
+
} = f.data;
|
|
22
|
+
m ? (t.value = y, n.value = g, s.value = v, e.value = !0, l({
|
|
23
|
+
message: r.t("alert.success.giftCardApplied"),
|
|
24
|
+
type: "success"
|
|
25
|
+
})) : (e.value = !1, l({
|
|
26
|
+
message: r.t("alert.error.giftCardInvalid"),
|
|
27
|
+
type: "warning"
|
|
28
|
+
}));
|
|
29
|
+
}), i.value = !1) : l({
|
|
30
|
+
message: r.t("alert.error.giftCardEmpty"),
|
|
31
|
+
type: "error"
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function c() {
|
|
35
|
+
t.value = 0, a.value = "", e.value = !1, l({
|
|
36
|
+
message: r.t("alert.success.giftCardRemoved"),
|
|
37
|
+
type: "success"
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
amount: t,
|
|
42
|
+
voucher: a,
|
|
43
|
+
expirationDate: n,
|
|
44
|
+
productName: s,
|
|
45
|
+
isValid: e,
|
|
46
|
+
isLoading: i,
|
|
47
|
+
apply: p,
|
|
48
|
+
reset: c
|
|
49
|
+
};
|
|
50
|
+
}), G = /* @__PURE__ */ A({
|
|
51
|
+
__name: "NumberField",
|
|
52
|
+
props: {
|
|
53
|
+
modelValue: { default: 0 },
|
|
54
|
+
minValue: { default: 0 },
|
|
55
|
+
maxValue: { default: 1 / 0 },
|
|
56
|
+
inputtable: { type: Boolean, default: !0 },
|
|
57
|
+
label: {},
|
|
58
|
+
placeholder: {},
|
|
59
|
+
icon: {},
|
|
60
|
+
iconColor: {},
|
|
61
|
+
iconType: { default: "fal" },
|
|
62
|
+
iconPlacement: {},
|
|
63
|
+
step: { default: 1 },
|
|
64
|
+
controls: { type: Boolean, default: !0 },
|
|
65
|
+
required: { type: Boolean, default: !1 },
|
|
66
|
+
readonly: { type: Boolean, default: !1 },
|
|
67
|
+
inline: { type: Boolean, default: !1 },
|
|
68
|
+
id: {},
|
|
69
|
+
rounded: { type: Boolean, default: !1 },
|
|
70
|
+
disabled: { type: Boolean, default: !1 },
|
|
71
|
+
small: { type: Boolean, default: !1 }
|
|
72
|
+
},
|
|
73
|
+
emits: ["update:modelValue"],
|
|
74
|
+
setup(l, { emit: d }) {
|
|
75
|
+
const t = d, a = l, n = a.id || I();
|
|
76
|
+
function s(e) {
|
|
77
|
+
t("update:modelValue", e);
|
|
78
|
+
}
|
|
79
|
+
return q(() => {
|
|
80
|
+
a.modelValue || s(a.minValue);
|
|
81
|
+
}), (e, i) => (w(), N(U, {
|
|
82
|
+
label: e.label,
|
|
83
|
+
id: u(n),
|
|
84
|
+
icon: e.icon,
|
|
85
|
+
"icon-color": e.iconColor,
|
|
86
|
+
"icon-type": e.iconType,
|
|
87
|
+
"icon-placement": e.iconPlacement,
|
|
88
|
+
required: e.required,
|
|
89
|
+
type: e.small ? "fresh-booking-number-picker small" : "fresh-booking-number-picker",
|
|
90
|
+
readonly: e.readonly
|
|
91
|
+
}, {
|
|
92
|
+
default: S(() => [
|
|
93
|
+
T(u(F), {
|
|
94
|
+
attrs: { id: u(n) },
|
|
95
|
+
modelValue: e.modelValue,
|
|
96
|
+
min: e.minValue,
|
|
97
|
+
max: e.maxValue,
|
|
98
|
+
step: e.step,
|
|
99
|
+
inline: e.inline,
|
|
100
|
+
controls: e.controls,
|
|
101
|
+
placeholder: e.placeholder,
|
|
102
|
+
readonly: e.readonly,
|
|
103
|
+
inputtable: e.inputtable,
|
|
104
|
+
rounded: e.rounded,
|
|
105
|
+
disabled: e.disabled,
|
|
106
|
+
"onUpdate:modelValue": s
|
|
107
|
+
}, null, 8, ["attrs", "modelValue", "min", "max", "step", "inline", "controls", "placeholder", "readonly", "inputtable", "rounded", "disabled"])
|
|
108
|
+
]),
|
|
109
|
+
_: 1
|
|
110
|
+
}, 8, ["label", "id", "icon", "icon-color", "icon-type", "icon-placement", "required", "type", "readonly"]));
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
export {
|
|
114
|
+
G as _,
|
|
115
|
+
D as u
|
|
116
|
+
};
|