@konnectio/core 4.0.116 → 4.0.118
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-hdk1E0k3.js → ActionField--tGPb0Ob.js} +6 -6
- package/dist/ActionField--tGPb0Ob.js.br +0 -0
- package/dist/{AvailabilitySkeleton-B-gApBgP.js → AvailabilitySkeleton-DcJF9jAN.js} +14 -14
- package/dist/AvailabilitySkeleton-DcJF9jAN.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Bt9G4kP9.js +8429 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Bt9G4kP9.js.br +0 -0
- package/dist/{CheckoutWindow-CZxZKnq4.js → CheckoutWindow-0SQ_8VzW.js} +26 -26
- package/dist/CheckoutWindow-0SQ_8VzW.js.br +0 -0
- package/dist/{ErrorMessage-D90bwmSp.js → ErrorMessage-Bwb7Ib84.js} +3 -3
- package/dist/ErrorMessage-Bwb7Ib84.js.br +0 -0
- package/dist/{EventAvailabilityForm-BpPStkoo.js → EventAvailabilityForm-DMLUjzLU.js} +13 -13
- package/dist/EventAvailabilityForm-DMLUjzLU.js.br +0 -0
- package/dist/{Field-uF9D_2Jo.js → Field-CbCFTaTs.js} +4 -4
- package/dist/Field-CbCFTaTs.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-CALV1LOp.js → Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-K7qu_idf.js} +3 -3
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-_eA1et15.js → SelectField.vue_vue_type_style_index_0_lang-D3xQFei_.js} +6919 -6560
- package/dist/SelectField.vue_vue_type_style_index_0_lang-D3xQFei_.js.br +0 -0
- package/dist/{TermsOfService-BS-h674o.js → TermsOfService-BeBLKeU1.js} +4 -4
- package/dist/_-DJq3nquJ.js +5 -0
- package/dist/{_.vue_vue_type_style_index_0_lang-CFiP1E8M.js → _.vue_vue_type_style_index_0_lang-BHgddsWZ.js} +5 -5
- package/dist/availability.js +6 -6
- package/dist/availability.js.br +0 -0
- package/dist/cancel-reservation.js +4 -4
- package/dist/cancel-reservation.js.br +0 -0
- package/dist/deep-link.js +1 -1
- package/dist/deep-link.js.br +0 -0
- package/dist/event.js +627 -474
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +19 -19
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +16 -16
- package/dist/gift-card.js.br +0 -0
- package/dist/{giftCard-B5dQ0wZK.js → giftCard-3jj6EyhQ.js} +23 -23
- package/dist/giftCard-3jj6EyhQ.js.br +0 -0
- package/dist/hotel.js +222 -222
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-DFXguWRk.js → masonry.plugin-B2kZ4Lq-.js} +439 -438
- package/dist/masonry.plugin-B2kZ4Lq-.js.br +0 -0
- package/dist/{mitt-CTfj-lXy.js → mitt-HQsLmGCg.js} +6 -6
- package/dist/mitt-HQsLmGCg.js.br +0 -0
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/dist/{style-BSDdyhMN.js → style-Cc6LpDdk.js} +2 -2
- package/dist/style-Cc6LpDdk.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-hdk1E0k3.js.br +0 -0
- package/dist/AvailabilitySkeleton-B-gApBgP.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-IW8uN3J-.js +0 -8753
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-IW8uN3J-.js.br +0 -0
- package/dist/CheckoutWindow-CZxZKnq4.js.br +0 -0
- package/dist/ErrorMessage-D90bwmSp.js.br +0 -0
- package/dist/EventAvailabilityForm-BpPStkoo.js.br +0 -0
- package/dist/Field-uF9D_2Jo.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-_eA1et15.js.br +0 -0
- package/dist/_-BgEzIeC5.js +0 -5
- package/dist/giftCard-B5dQ0wZK.js.br +0 -0
- package/dist/masonry.plugin-DFXguWRk.js.br +0 -0
- package/dist/mitt-CTfj-lXy.js.br +0 -0
- package/dist/style-BSDdyhMN.js.br +0 -0
package/dist/event.js.br
CHANGED
|
Binary file
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { u as z } from "./giftCard-
|
|
4
|
-
import { _ as J } from "./_.vue_vue_type_style_index_0_lang-
|
|
5
|
-
import { A as K } from "./ActionField
|
|
6
|
-
import { E as g } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-
|
|
7
|
-
import { F as y } from "./Field-
|
|
8
|
-
import { E as Q } from "./ErrorMessage-
|
|
9
|
-
import { G as Y } from "./style-
|
|
10
|
-
const Z = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-validation-skeleton-form" }, et = { class: "gift-card-validation-skeleton-text" }, at = { class: "gift-card-validation-skeleton-input" }, nt = /* @__PURE__ */
|
|
1
|
+
import { d as x, a as s, g as v, e as t, f as a, c as P, u as T, s as k, b as m, w as p, S as $, i as e, t as i, B as b, j as I, h as D, k as N, l as U, m as F, p as H, q as R } from "./mitt-HQsLmGCg.js";
|
|
2
|
+
import { _ as A, y as C, h as j, I as h, o as q, s as O, C as W } from "./SelectField.vue_vue_type_style_index_0_lang-D3xQFei_.js";
|
|
3
|
+
import { u as z } from "./giftCard-3jj6EyhQ.js";
|
|
4
|
+
import { _ as J } from "./_.vue_vue_type_style_index_0_lang-BHgddsWZ.js";
|
|
5
|
+
import { A as K } from "./ActionField--tGPb0Ob.js";
|
|
6
|
+
import { E as g } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-K7qu_idf.js";
|
|
7
|
+
import { F as y } from "./Field-CbCFTaTs.js";
|
|
8
|
+
import { E as Q } from "./ErrorMessage-Bwb7Ib84.js";
|
|
9
|
+
import { G as Y } from "./style-Cc6LpDdk.js";
|
|
10
|
+
const Z = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-validation-skeleton-form" }, et = { class: "gift-card-validation-skeleton-text" }, at = { class: "gift-card-validation-skeleton-input" }, nt = /* @__PURE__ */ x({
|
|
11
11
|
__name: "GiftCardValidationSkeleton",
|
|
12
12
|
setup(u) {
|
|
13
13
|
return (d, l) => (s(), v("div", Z, [
|
|
@@ -24,11 +24,11 @@ const Z = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-v
|
|
|
24
24
|
])
|
|
25
25
|
]));
|
|
26
26
|
}
|
|
27
|
-
}), ot = /* @__PURE__ */
|
|
27
|
+
}), ot = /* @__PURE__ */ A(nt, [["__scopeId", "data-v-b1601b74"]]), it = ["innerHTML"], st = {
|
|
28
28
|
key: 0,
|
|
29
29
|
id: "konnectio-gift-card-validation-resume",
|
|
30
30
|
class: "konnectio-panel"
|
|
31
|
-
}, lt = /* @__PURE__ */
|
|
31
|
+
}, lt = /* @__PURE__ */ x({
|
|
32
32
|
name: "GiftCardValidationLayout",
|
|
33
33
|
__name: "GiftCardValidation",
|
|
34
34
|
props: {
|
|
@@ -36,23 +36,23 @@ const Z = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-v
|
|
|
36
36
|
styling: {}
|
|
37
37
|
},
|
|
38
38
|
setup(u) {
|
|
39
|
-
const d = u, l =
|
|
39
|
+
const d = u, l = P(() => ({
|
|
40
40
|
panelMaxWidth: "800px",
|
|
41
41
|
...d.styling
|
|
42
|
-
})), { t: o } =
|
|
42
|
+
})), { t: o } = T(), {
|
|
43
43
|
voucher: f,
|
|
44
44
|
isValid: G,
|
|
45
45
|
amount: E,
|
|
46
46
|
expirationDate: S,
|
|
47
47
|
productName: w,
|
|
48
48
|
isLoading: c
|
|
49
|
-
} = k(C()), { currency: L, hasError: M } = k(
|
|
50
|
-
return (
|
|
49
|
+
} = k(C()), { currency: L, hasError: M } = k(j()), { fetchMetadata: X } = z(), { apply: _ } = C();
|
|
50
|
+
return (B, n) => (s(), m(W, { styling: l.value }, {
|
|
51
51
|
default: p(() => [
|
|
52
|
-
(s(), m(
|
|
52
|
+
(s(), m($, null, {
|
|
53
53
|
default: p(() => [
|
|
54
54
|
a(J, {
|
|
55
|
-
"access-token":
|
|
55
|
+
"access-token": B.accessToken,
|
|
56
56
|
callback: e(X)
|
|
57
57
|
}, {
|
|
58
58
|
default: p(() => [
|
|
@@ -139,7 +139,7 @@ const Z = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-v
|
|
|
139
139
|
_: 1
|
|
140
140
|
}, 8, ["styling"]));
|
|
141
141
|
}
|
|
142
|
-
}), V = /* @__PURE__ */
|
|
142
|
+
}), V = /* @__PURE__ */ A(lt, [["__scopeId", "data-v-ca768ef6"]]), rt = N(), dt = R();
|
|
143
143
|
class ct extends HTMLElement {
|
|
144
144
|
vueApp;
|
|
145
145
|
constructor() {
|
|
Binary file
|
package/dist/gift-card.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { d as G, u as L, r as O, c as Y, a as s, b as y, w as C, e as l, g as c, f as t, i as e, j as m, n as J, t as q, h as te, D as oe, s as
|
|
2
|
-
import { a as ve, d as T,
|
|
3
|
-
import { G as Ve } from "./style-
|
|
4
|
-
import { u as I } from "./giftCard-
|
|
5
|
-
import { _ as $e } from "./_.vue_vue_type_style_index_0_lang-
|
|
6
|
-
import { a as we, C as Fe, P as Ee, _ as Pe } from "./CheckoutWindow-
|
|
7
|
-
import { E as Ue } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-
|
|
8
|
-
import { F as U } from "./Field-
|
|
9
|
-
import { E as Te } from "./ErrorMessage-
|
|
10
|
-
import { S as Ge } from "./TermsOfService-
|
|
1
|
+
import { d as G, u as L, r as O, c as Y, a as s, b as y, w as C, e as l, g as c, f as t, i as e, j as m, n as J, t as q, h as te, D as oe, s as W, E as ne, o as ie, S as se, G as A, H as S, F as re, A as de, B as v, k as ue, l as ce, m as pe, p as me, q as fe } from "./mitt-HQsLmGCg.js";
|
|
2
|
+
import { a as ve, d as T, x as be, _ as x, h as he, c as ke, L as _e, T as M, g as ge, C as ye, v as Ce } from "./SelectField.vue_vue_type_style_index_0_lang-D3xQFei_.js";
|
|
3
|
+
import { G as Ve } from "./style-Cc6LpDdk.js";
|
|
4
|
+
import { u as I } from "./giftCard-3jj6EyhQ.js";
|
|
5
|
+
import { _ as $e } from "./_.vue_vue_type_style_index_0_lang-BHgddsWZ.js";
|
|
6
|
+
import { a as we, C as Fe, P as Ee, _ as Pe } from "./CheckoutWindow-0SQ_8VzW.js";
|
|
7
|
+
import { E as Ue } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-K7qu_idf.js";
|
|
8
|
+
import { F as U } from "./Field-CbCFTaTs.js";
|
|
9
|
+
import { E as Te } from "./ErrorMessage-Bwb7Ib84.js";
|
|
10
|
+
import { S as Ge } from "./TermsOfService-BeBLKeU1.js";
|
|
11
11
|
const Ae = { class: "media-selector" }, Se = ["accept"], Me = { class: "media-selector-wrapper" }, qe = { class: "media-selector-tools" }, Le = { key: 0 }, Be = { key: 1 }, Re = { key: 2 }, Ie = ["src"], xe = /* @__PURE__ */ G({
|
|
12
12
|
__name: "MediaSelector",
|
|
13
13
|
props: {
|
|
@@ -114,7 +114,7 @@ const Ae = { class: "media-selector" }, Se = ["accept"], Me = { class: "media-se
|
|
|
114
114
|
}, 8, ["label", "required"]));
|
|
115
115
|
}
|
|
116
116
|
});
|
|
117
|
-
function
|
|
117
|
+
function z(b) {
|
|
118
118
|
const r = b;
|
|
119
119
|
r.__i18n = r.__i18n || [], r.__i18n.push({
|
|
120
120
|
locale: "",
|
|
@@ -134,7 +134,7 @@ function W(b) {
|
|
|
134
134
|
}
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
|
-
typeof
|
|
137
|
+
typeof z == "function" && z(xe);
|
|
138
138
|
const He = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-form" }, Ne = /* @__PURE__ */ G({
|
|
139
139
|
__name: "GiftCardSkeleton",
|
|
140
140
|
setup(b) {
|
|
@@ -149,7 +149,7 @@ const He = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
|
|
|
149
149
|
])
|
|
150
150
|
]));
|
|
151
151
|
}
|
|
152
|
-
}), je = /* @__PURE__ */ x(Ne, [["__scopeId", "data-v-ba3efaa1"]]),
|
|
152
|
+
}), je = /* @__PURE__ */ x(Ne, [["__scopeId", "data-v-ba3efaa1"]]), We = { class: "konnectio-accept-terms" }, ze = /* @__PURE__ */ G({
|
|
153
153
|
__name: "_",
|
|
154
154
|
props: {
|
|
155
155
|
content: {},
|
|
@@ -157,7 +157,7 @@ const He = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
|
|
|
157
157
|
},
|
|
158
158
|
setup(b) {
|
|
159
159
|
const { t: r } = L(), p = O(!1);
|
|
160
|
-
return (o, u) => (s(), c("div",
|
|
160
|
+
return (o, u) => (s(), c("div", We, [
|
|
161
161
|
t(e(oe), {
|
|
162
162
|
keypath: "general.termsAndConditionsNotice",
|
|
163
163
|
tag: "span",
|
|
@@ -184,7 +184,7 @@ const He = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
|
|
|
184
184
|
}, null, 8, ["modelValue", "description"])
|
|
185
185
|
]));
|
|
186
186
|
}
|
|
187
|
-
}), Ke = /* @__PURE__ */ x(
|
|
187
|
+
}), Ke = /* @__PURE__ */ x(ze, [["__scopeId", "data-v-689c045a"]]), Oe = /* @__PURE__ */ G({
|
|
188
188
|
__name: "GiftCard",
|
|
189
189
|
setup(b) {
|
|
190
190
|
const { t: r } = L(), p = I();
|
|
@@ -238,7 +238,7 @@ const He = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
|
|
|
238
238
|
hasFilledForm: P,
|
|
239
239
|
hasForcedPlaceType: R,
|
|
240
240
|
isWaitingForResponse: F
|
|
241
|
-
} =
|
|
241
|
+
} = W(I()), { initialize: Q, orderGiftCard: N, fetchMetadata: X } = I(), { isRecaptchaEnabled: Z, currency: ee, hasError: le } = W(he());
|
|
242
242
|
return ne(a, () => {
|
|
243
243
|
w.value = void 0;
|
|
244
244
|
}), ie(() => {
|
package/dist/gift-card.js.br
CHANGED
|
Binary file
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { I as V, s as H, r as t, c as a, J as
|
|
2
|
-
import {
|
|
1
|
+
import { I as V, s as H, r as t, c as a, J as h } from "./mitt-HQsLmGCg.js";
|
|
2
|
+
import { z as K, a as Q, h as E, G as o, A as y, S, D as M, w as O, E as X } from "./SelectField.vue_vue_type_style_index_0_lang-D3xQFei_.js";
|
|
3
3
|
const $ = V("giftCard", () => {
|
|
4
|
-
const { pay:
|
|
4
|
+
const { pay: D } = K(), { display: G } = Q(), { metaData: w, currencyId: x, hasError: P } = H(E()), T = E(), s = t(o.InitialState), u = y("konnectio_name", "", void 0, { serializer: S.string }), v = y("konnectio_email", "", void 0, { serializer: S.string }), d = y("konnectio_phone", "", void 0, { serializer: S.string }), f = t(""), F = t(1), b = t(!0), C = t(""), i = t({
|
|
5
5
|
base64: "",
|
|
6
6
|
type: "",
|
|
7
7
|
name: ""
|
|
8
|
-
}), I = t(void 0), g = t(0), c = t(!1), p = t(0), R = a(() => T.hasMetadata ? T.metaData.hotels[0] : {}),
|
|
8
|
+
}), I = t(void 0), g = t(0), c = t(!1), p = t(0), R = a(() => T.hasMetadata ? T.metaData.hotels[0] : {}), A = a(() => R.value.termsOfService ? R.value.termsOfService : ""), U = a(() => s.value === o.InitialState || s.value === o.WaitingForResponse), W = a(() => s.value === o.ReadyToPay), _ = a(() => s.value === o.PaymentSuccess), m = a(() => {
|
|
9
9
|
const e = {
|
|
10
10
|
1: {
|
|
11
|
-
label:
|
|
11
|
+
label: h.t("giftCard.hotelType"),
|
|
12
12
|
data: []
|
|
13
13
|
},
|
|
14
14
|
2: {
|
|
15
|
-
label:
|
|
15
|
+
label: h.t("giftCard.restaurantType"),
|
|
16
16
|
data: []
|
|
17
17
|
}
|
|
18
18
|
}, r = w.value.hotels[0].places;
|
|
@@ -27,33 +27,33 @@ const $ = V("giftCard", () => {
|
|
|
27
27
|
e = m.value[p.value].data[0];
|
|
28
28
|
else if (g.value !== 0) {
|
|
29
29
|
const r = I.value, n = m.value[g.value].data;
|
|
30
|
-
n.length === 1 ? e = n[0] : r !== void 0 && n.forEach((
|
|
31
|
-
String(
|
|
30
|
+
n.length === 1 ? e = n[0] : r !== void 0 && n.forEach((z) => {
|
|
31
|
+
String(z.id) === String(r) && (e = z);
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
return e;
|
|
35
|
-
}),
|
|
35
|
+
}), L = a(() => !(!u.value || !v.value || !(d.value.length >= 5) || !f.value || l.value === void 0)), q = a(() => !(s.value === o.InitialState && c.value)), N = a(() => !!(s.value === o.WaitingForResponse && c.value));
|
|
36
36
|
async function j() {
|
|
37
37
|
try {
|
|
38
|
-
const e = (await
|
|
38
|
+
const e = (await M().get("/gift-card/metadata", {
|
|
39
39
|
params: {
|
|
40
|
-
language:
|
|
40
|
+
language: O()
|
|
41
41
|
}
|
|
42
42
|
})).data;
|
|
43
43
|
e.success !== void 0 ? P.value = !e.success : P.value = !1, w.value = e;
|
|
44
44
|
} catch {
|
|
45
45
|
G({
|
|
46
|
-
message:
|
|
46
|
+
message: h.t("alert.error.couldntFetchMetadata"),
|
|
47
47
|
type: "warning"
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
async function B() {
|
|
52
|
-
s.value = o.WaitingForResponse, c.value = !0, await
|
|
52
|
+
s.value = o.WaitingForResponse, c.value = !0, await M().post("/gift-card/create", {
|
|
53
53
|
termsOfserviceURL: window.location.origin,
|
|
54
54
|
checkoutUrl: window.location.origin,
|
|
55
|
-
currencyID:
|
|
56
|
-
language:
|
|
55
|
+
currencyID: x.value,
|
|
56
|
+
language: O(),
|
|
57
57
|
amount: f.value,
|
|
58
58
|
quantity: F.value,
|
|
59
59
|
freeText: C.value,
|
|
@@ -67,7 +67,7 @@ const $ = V("giftCard", () => {
|
|
|
67
67
|
placeType: l.value ? l.value.placeType : void 0,
|
|
68
68
|
placeID: l.value ? l.value.id : void 0
|
|
69
69
|
}).then((e) => {
|
|
70
|
-
s.value = o.ReadyToPay, c.value = !1,
|
|
70
|
+
s.value = o.ReadyToPay, c.value = !1, D({
|
|
71
71
|
callback: () => console.log("Callback!"),
|
|
72
72
|
response: e.data
|
|
73
73
|
});
|
|
@@ -89,15 +89,15 @@ const $ = V("giftCard", () => {
|
|
|
89
89
|
media: i,
|
|
90
90
|
placeId: I,
|
|
91
91
|
placeType: g,
|
|
92
|
-
showFormPage:
|
|
93
|
-
showPaymentPage:
|
|
94
|
-
showConfirmationPage:
|
|
92
|
+
showFormPage: U,
|
|
93
|
+
showPaymentPage: W,
|
|
94
|
+
showConfirmationPage: _,
|
|
95
95
|
places: m,
|
|
96
|
-
hasFilledForm:
|
|
96
|
+
hasFilledForm: L,
|
|
97
97
|
hasForcedPlaceType: k,
|
|
98
98
|
isWaitingForResponse: N,
|
|
99
|
-
isMetadataAvailable:
|
|
100
|
-
termsOfService:
|
|
99
|
+
isMetadataAvailable: q,
|
|
100
|
+
termsOfService: A,
|
|
101
101
|
fetchMetadata: j,
|
|
102
102
|
orderGiftCard: B,
|
|
103
103
|
initialize: J
|
|
@@ -106,4 +106,4 @@ const $ = V("giftCard", () => {
|
|
|
106
106
|
export {
|
|
107
107
|
$ as u
|
|
108
108
|
};
|
|
109
|
-
//# sourceMappingURL=giftCard-
|
|
109
|
+
//# sourceMappingURL=giftCard-3jj6EyhQ.js.map
|
|
Binary file
|