@konnectio/core 4.0.56-rc5 → 4.0.56-rc51
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--byx0Lp1.js → ActionField-CsHUzdDM.js} +41 -32
- package/dist/ActionField-CsHUzdDM.js.br +0 -0
- package/dist/AvailabilitySkeleton-BpS3qH0r.js +294 -0
- package/dist/AvailabilitySkeleton-BpS3qH0r.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-C_Eo6onw.js +7814 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-C_Eo6onw.js.br +0 -0
- package/dist/CheckoutWindow-DQUTHQEL.js +668 -0
- package/dist/CheckoutWindow-DQUTHQEL.js.br +0 -0
- package/dist/ErrorMessage-CWHVx0Pk.js +45 -0
- package/dist/ErrorMessage-CWHVx0Pk.js.br +0 -0
- package/dist/EventAvailabilityForm-Bk4wdYKU.js +437 -0
- package/dist/EventAvailabilityForm-Bk4wdYKU.js.br +0 -0
- package/dist/Field-CIQ61QX5.js +50 -0
- package/dist/Field-CIQ61QX5.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-2iMaQIEk.js +21408 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-2iMaQIEk.js.br +0 -0
- package/dist/TermsOfService-BZzRUgUN.js +35 -0
- package/dist/TermsOfService-BZzRUgUN.js.br +0 -0
- package/dist/_-CRFAvFk8.js +12 -0
- package/dist/_.vue_vue_type_style_index_0_lang-DF6d_VKc.js +68 -0
- package/dist/_.vue_vue_type_style_index_0_lang-DF6d_VKc.js.br +0 -0
- package/dist/_commonjsHelpers-04Qj4xBt.js +9530 -0
- package/dist/_commonjsHelpers-04Qj4xBt.js.br +0 -0
- package/dist/availability.js +96 -147
- package/dist/availability.js.br +0 -0
- package/dist/deep-link.js +10 -0
- package/dist/event.js +733 -495
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +133 -75
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +364 -408
- package/dist/gift-card.js.br +0 -0
- package/dist/giftCard-iMEwS4uA.js +127 -0
- package/dist/giftCard-iMEwS4uA.js.br +0 -0
- package/dist/hotel.js +1482 -2456
- package/dist/hotel.js.br +0 -0
- package/dist/masonry.plugin-BSptmqjG.js +12789 -0
- package/dist/masonry.plugin-BSptmqjG.js.br +0 -0
- package/dist/polyfill.js +15066 -4765
- package/dist/polyfill.js.br +0 -0
- package/dist/sentry-BSHzssDu.js +18 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/dist/tracing-wxeFiHIa.js +2287 -0
- package/dist/tracing-wxeFiHIa.js.br +0 -0
- package/package.json +47 -40
- package/dist/ActionField--byx0Lp1.js.br +0 -0
- package/dist/AvailabilitySkeleton-cL6E9wAp.js +0 -239
- package/dist/AvailabilitySkeleton-cL6E9wAp.js.br +0 -0
- package/dist/CheckoutWindow-_ZUCAYgm.js +0 -205
- package/dist/CheckoutWindow-_ZUCAYgm.js.br +0 -0
- package/dist/Container-6UeOakwz.js +0 -68
- package/dist/Container-6UeOakwz.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-v-NT3HRG.js +0 -8566
- package/dist/DateField.vue_vue_type_style_index_0_lang-v-NT3HRG.js.br +0 -0
- package/dist/Field-GdMucFcQ.js +0 -42
- package/dist/Field-GdMucFcQ.js.br +0 -5
- package/dist/SelectField.vue_vue_type_style_index_0_lang-XwPp5AXD.js +0 -27240
- package/dist/SelectField.vue_vue_type_style_index_0_lang-XwPp5AXD.js.br +0 -0
- package/dist/ThankYou-9pzt2SfJ.js +0 -13475
- package/dist/ThankYou-9pzt2SfJ.js.br +0 -0
- package/dist/_-5uiOrU07.js +0 -19
- package/dist/_commonjsHelpers-4t9S7M5p.js +0 -30
- package/dist/assets/typescript/mixins.d.ts +0 -34
- package/dist/availability.d.ts +0 -3
- package/dist/components/Alert.vue.d.ts +0 -28
- package/dist/components/Alert.vue.d.ts.map +0 -1
- package/dist/components/Clickable.vue.d.ts +0 -60
- package/dist/components/Clickable.vue.d.ts.map +0 -1
- package/dist/components/Container.vue.d.ts +0 -23
- package/dist/components/Container.vue.d.ts.map +0 -1
- package/dist/components/ErrorMessage.vue.d.ts +0 -15
- package/dist/components/ErrorMessage.vue.d.ts.map +0 -1
- package/dist/components/Gallery.vue.d.ts +0 -31
- package/dist/components/Gallery.vue.d.ts.map +0 -1
- package/dist/components/GoogleNotice.vue.d.ts +0 -2
- package/dist/components/GoogleNotice.vue.d.ts.map +0 -1
- package/dist/components/Icon.vue.d.ts +0 -38
- package/dist/components/Icon.vue.d.ts.map +0 -1
- package/dist/components/Loading.vue.d.ts +0 -29
- package/dist/components/Loading.vue.d.ts.map +0 -1
- package/dist/components/Spinner.vue.d.ts +0 -2
- package/dist/components/Spinner.vue.d.ts.map +0 -1
- package/dist/components/forms/EventAvailabilityForm.vue.d.ts +0 -18
- package/dist/components/forms/EventAvailabilityForm.vue.d.ts.map +0 -1
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +0 -34
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts.map +0 -1
- package/dist/components/forms/HotelReservationForm.vue.d.ts +0 -41
- package/dist/components/forms/HotelReservationForm.vue.d.ts.map +0 -1
- package/dist/components/forms/MultiStepForm.vue.d.ts +0 -43
- package/dist/components/forms/MultiStepForm.vue.d.ts.map +0 -1
- package/dist/components/forms/ReservationForm.vue.d.ts +0 -63
- package/dist/components/forms/ReservationForm.vue.d.ts.map +0 -1
- package/dist/components/forms/_.vue.d.ts +0 -42
- package/dist/components/forms/_.vue.d.ts.map +0 -1
- package/dist/components/inputs/Checkbox.vue.d.ts +0 -55
- package/dist/components/inputs/Checkbox.vue.d.ts.map +0 -1
- package/dist/components/inputs/CheckboxField.vue.d.ts +0 -29
- package/dist/components/inputs/CheckboxField.vue.d.ts.map +0 -1
- package/dist/components/inputs/DateField.vue.d.ts +0 -104
- package/dist/components/inputs/DateField.vue.d.ts.map +0 -1
- package/dist/components/inputs/InputField.vue.d.ts +0 -62
- package/dist/components/inputs/InputField.vue.d.ts.map +0 -1
- package/dist/components/inputs/MediaSelector.vue.d.ts +0 -43
- package/dist/components/inputs/MediaSelector.vue.d.ts.map +0 -1
- package/dist/components/inputs/NumberField.vue.d.ts +0 -87
- package/dist/components/inputs/NumberField.vue.d.ts.map +0 -1
- package/dist/components/inputs/SelectField.vue.d.ts +0 -90
- package/dist/components/inputs/SelectField.vue.d.ts.map +0 -1
- package/dist/components/inputs/TextField.vue.d.ts +0 -68
- package/dist/components/inputs/TextField.vue.d.ts.map +0 -1
- package/dist/components/inputs/TimeField.vue.d.ts +0 -44
- package/dist/components/inputs/TimeField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/ActionField.vue.d.ts +0 -72
- package/dist/components/inputs/grouped/ActionField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/CountryField.vue.d.ts +0 -41
- package/dist/components/inputs/grouped/CountryField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/NameField.vue.d.ts +0 -71
- package/dist/components/inputs/grouped/NameField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/PhoneField.vue.d.ts +0 -51
- package/dist/components/inputs/grouped/PhoneField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +0 -47
- package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts.map +0 -1
- package/dist/components/listings/Base.vue.d.ts +0 -56
- package/dist/components/listings/Base.vue.d.ts.map +0 -1
- package/dist/components/listings/Event.vue.d.ts +0 -47
- package/dist/components/listings/Event.vue.d.ts.map +0 -1
- package/dist/components/listings/Hotel.vue.d.ts +0 -16
- package/dist/components/listings/Hotel.vue.d.ts.map +0 -1
- package/dist/components/listings/Template.vue.d.ts +0 -21
- package/dist/components/listings/Template.vue.d.ts.map +0 -1
- package/dist/components/side-panels/Base.vue.d.ts +0 -61
- package/dist/components/side-panels/Base.vue.d.ts.map +0 -1
- package/dist/components/side-panels/ListingInfo.vue.d.ts +0 -18
- package/dist/components/side-panels/ListingInfo.vue.d.ts.map +0 -1
- package/dist/components/side-panels/Template.vue.d.ts +0 -18
- package/dist/components/side-panels/Template.vue.d.ts.map +0 -1
- package/dist/components/side-panels/TermsOfService.vue.d.ts +0 -14
- package/dist/components/side-panels/TermsOfService.vue.d.ts.map +0 -1
- package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +0 -33
- package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts.map +0 -1
- package/dist/components/skeletons/Field.vue.d.ts +0 -36
- package/dist/components/skeletons/Field.vue.d.ts.map +0 -1
- package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +0 -2
- package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts.map +0 -1
- package/dist/components/skeletons/HotelSkeleton.vue.d.ts +0 -2
- package/dist/components/skeletons/HotelSkeleton.vue.d.ts.map +0 -1
- package/dist/components/skeletons/Listing.vue.d.ts +0 -2
- package/dist/components/skeletons/Listing.vue.d.ts.map +0 -1
- package/dist/components/skeletons/Sidebar.vue.d.ts +0 -2
- package/dist/components/skeletons/Sidebar.vue.d.ts.map +0 -1
- package/dist/components/skeletons/_.vue.d.ts +0 -36
- package/dist/components/skeletons/_.vue.d.ts.map +0 -1
- package/dist/components/views/CheckoutWindow.vue.d.ts +0 -2
- package/dist/components/views/CheckoutWindow.vue.d.ts.map +0 -1
- package/dist/components/views/TermsOfService.vue.d.ts +0 -2
- package/dist/components/views/TermsOfService.vue.d.ts.map +0 -1
- package/dist/components/views/ThankYou.vue.d.ts +0 -15
- package/dist/components/views/ThankYou.vue.d.ts.map +0 -1
- package/dist/entries/availability.d.ts +0 -5
- package/dist/entries/event.d.ts +0 -2
- package/dist/entries/gift-card-validation.d.ts +0 -5
- package/dist/entries/gift-card.d.ts +0 -5
- package/dist/entries/hotel.d.ts +0 -5
- package/dist/entries/navigation.d.ts +0 -1
- package/dist/entries/polyfill.d.ts +0 -0
- package/dist/event-jnP6wH4w.js +0 -358
- package/dist/event-jnP6wH4w.js.br +0 -0
- package/dist/event.d.ts +0 -3
- package/dist/gift-card-validation.d.ts +0 -3
- package/dist/gift-card.d.ts +0 -3
- package/dist/hotel.d.ts +0 -3
- package/dist/layouts/Availability.vue.d.ts +0 -25
- package/dist/layouts/Event.vue.d.ts +0 -18
- package/dist/layouts/GiftCard.vue.d.ts +0 -32
- package/dist/layouts/GiftCardValidation.vue.d.ts +0 -18
- package/dist/layouts/Hotel.vue.d.ts +0 -36
- package/dist/layouts/_.vue.d.ts +0 -39
- package/dist/navigation.d.ts +0 -1
- package/dist/navigation.js +0 -1
- package/dist/plugins/i18n.d.ts +0 -5
- package/dist/polyfill.d.ts +0 -1
- package/dist/store/alert.d.ts +0 -28
- package/dist/store/applyGiftCard.d.ts +0 -28
- package/dist/store/availability.d.ts +0 -40
- package/dist/store/event.d.ts +0 -683
- package/dist/store/giftCard.d.ts +0 -83
- package/dist/store/payment.d.ts +0 -139
- package/dist/store/recaptcha.d.ts +0 -28
- package/dist/store/tracking.d.ts +0 -57
- package/dist/store/utilities.d.ts +0 -350
- package/dist/types/index.d.ts +0 -976
package/dist/gift-card.js.br
CHANGED
|
Binary file
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { d as K, u as H, a as J, s as Q, b as E, G as s, c as S, i as w, S as k, e as M, g as O, f as X } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-2iMaQIEk.js";
|
|
2
|
+
import { r as t, c as a } from "./_commonjsHelpers-04Qj4xBt.js";
|
|
3
|
+
import "./deep-link.js";
|
|
4
|
+
(function() {
|
|
5
|
+
try {
|
|
6
|
+
var i = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, c = new Error().stack;
|
|
7
|
+
c && (i._sentryDebugIds = i._sentryDebugIds || {}, i._sentryDebugIds[c] = "443171a3-95c4-481c-a710-f9adcd3685b3", i._sentryDebugIdIdentifier = "sentry-dbid-443171a3-95c4-481c-a710-f9adcd3685b3");
|
|
8
|
+
} catch {
|
|
9
|
+
}
|
|
10
|
+
})();
|
|
11
|
+
const ae = K("giftCard", () => {
|
|
12
|
+
const { pay: i } = H(), { display: c } = J(), { bearerToken: v, metaData: P, currencyId: x, hasError: I } = Q(E()), T = E(), o = t(s.InitialState), f = S("konnectio_name", "", void 0, { serializer: k.string }), p = S("konnectio_email", "", void 0, { serializer: k.string }), g = S("konnectio_phone", "", void 0, { serializer: k.string }), m = t(""), F = t(1), C = t(!0), D = t(""), u = t({
|
|
13
|
+
base64: "",
|
|
14
|
+
type: "",
|
|
15
|
+
name: ""
|
|
16
|
+
}), R = t(void 0), y = t(0), d = t(!1), h = t(0), _ = a(() => T.hasMetadata ? T.metaData.hotels[0] : {}), G = a(() => _.value.termsOfService ? _.value.termsOfService : ""), U = a(() => o.value === s.InitialState || o.value === s.WaitingForResponse), W = a(() => o.value === s.ReadyToPay), j = a(() => o.value === s.PaymentSuccess), b = a(() => {
|
|
17
|
+
const e = {
|
|
18
|
+
1: {
|
|
19
|
+
label: w.t("giftCard.hotelType"),
|
|
20
|
+
data: []
|
|
21
|
+
},
|
|
22
|
+
2: {
|
|
23
|
+
label: w.t("giftCard.restaurantType"),
|
|
24
|
+
data: []
|
|
25
|
+
}
|
|
26
|
+
}, l = P.value.hotels[0].places;
|
|
27
|
+
return l && l.forEach((n) => {
|
|
28
|
+
e[n.placeType].data.push(n);
|
|
29
|
+
}), Object.fromEntries(
|
|
30
|
+
Object.entries(e).filter(([, n]) => n.data.length > 0)
|
|
31
|
+
);
|
|
32
|
+
}), z = a(() => h.value !== 0), r = a(() => {
|
|
33
|
+
let e;
|
|
34
|
+
if (z.value)
|
|
35
|
+
e = b.value[h.value].data[0];
|
|
36
|
+
else if (y.value !== 0) {
|
|
37
|
+
const l = R.value, n = b.value[y.value].data;
|
|
38
|
+
n.length === 1 ? e = n[0] : l !== void 0 && n.forEach((A) => {
|
|
39
|
+
String(A.id) === String(l) && (e = A);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
return e;
|
|
43
|
+
}), L = a(() => !(!f.value || !p.value || !(g.value.length >= 5) || !m.value || r.value === void 0)), q = a(() => !(o.value === s.InitialState && d.value)), N = a(() => !!(o.value === s.WaitingForResponse && d.value));
|
|
44
|
+
async function V() {
|
|
45
|
+
try {
|
|
46
|
+
const e = (await M.get("https://production.hotel-service.konnectio.dk/api/gift-card/metadata", {
|
|
47
|
+
params: {
|
|
48
|
+
language: O()
|
|
49
|
+
},
|
|
50
|
+
headers: {
|
|
51
|
+
Authorization: v.value,
|
|
52
|
+
Accept: "application/json",
|
|
53
|
+
"Konnectio-Ver": "4.0.56-rc51"
|
|
54
|
+
}
|
|
55
|
+
})).data;
|
|
56
|
+
e.success !== void 0 ? I.value = !e.success : I.value = !1, P.value = e;
|
|
57
|
+
} catch {
|
|
58
|
+
c({
|
|
59
|
+
message: w.t("alert.error.couldntFetchMetadata"),
|
|
60
|
+
type: "warning"
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
async function $() {
|
|
65
|
+
o.value = s.WaitingForResponse, d.value = !0, await M.post("https://production.hotel-service.konnectio.dk/api/gift-card/create", {
|
|
66
|
+
termsOfserviceURL: window.location.origin,
|
|
67
|
+
checkoutUrl: window.location.origin,
|
|
68
|
+
currencyID: x.value,
|
|
69
|
+
language: O(),
|
|
70
|
+
amount: m.value,
|
|
71
|
+
quantity: F.value,
|
|
72
|
+
freeText: D.value,
|
|
73
|
+
showPrice: C.value,
|
|
74
|
+
contactName: f.value,
|
|
75
|
+
contactEmail: p.value,
|
|
76
|
+
contactPhone: g.value,
|
|
77
|
+
imageBase64: X(u.value.base64),
|
|
78
|
+
imageName: u.value.name,
|
|
79
|
+
imageFormat: u.value.type,
|
|
80
|
+
placeType: r.value ? r.value.placeType : void 0,
|
|
81
|
+
placeID: r.value ? r.value.id : void 0
|
|
82
|
+
}, {
|
|
83
|
+
headers: {
|
|
84
|
+
Authorization: v.value,
|
|
85
|
+
Accept: "application/json"
|
|
86
|
+
}
|
|
87
|
+
}).then((e) => {
|
|
88
|
+
o.value = s.ReadyToPay, d.value = !1, i({
|
|
89
|
+
callback: () => console.log("Callback!"),
|
|
90
|
+
response: e.data
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
function B(e) {
|
|
95
|
+
e && (h.value = e);
|
|
96
|
+
}
|
|
97
|
+
return {
|
|
98
|
+
selectedPlace: r,
|
|
99
|
+
moduleState: o,
|
|
100
|
+
name: f,
|
|
101
|
+
email: p,
|
|
102
|
+
phone: g,
|
|
103
|
+
value: m,
|
|
104
|
+
remark: D,
|
|
105
|
+
showValue: C,
|
|
106
|
+
quantity: F,
|
|
107
|
+
media: u,
|
|
108
|
+
placeId: R,
|
|
109
|
+
placeType: y,
|
|
110
|
+
showFormPage: U,
|
|
111
|
+
showPaymentPage: W,
|
|
112
|
+
showConfirmationPage: j,
|
|
113
|
+
places: b,
|
|
114
|
+
hasFilledForm: L,
|
|
115
|
+
hasForcedPlaceType: z,
|
|
116
|
+
isWaitingForResponse: N,
|
|
117
|
+
isMetadataAvailable: q,
|
|
118
|
+
termsOfService: G,
|
|
119
|
+
fetchMetadata: V,
|
|
120
|
+
orderGiftCard: $,
|
|
121
|
+
initialize: B
|
|
122
|
+
};
|
|
123
|
+
});
|
|
124
|
+
export {
|
|
125
|
+
ae as u
|
|
126
|
+
};
|
|
127
|
+
//# sourceMappingURL=giftCard-iMEwS4uA.js.map
|
|
Binary file
|