@konnectio/core 4.0.56-rc23 → 4.0.56-rc25
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-BUeonTqc.js → ActionField-7P8dDME0.js} +10 -10
- package/dist/ActionField-7P8dDME0.js.br +0 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-Ts9271hZ.js → AvailabilitySkeleton-kd2z0IL5.js} +1376 -1324
- package/dist/AvailabilitySkeleton-kd2z0IL5.js.br +0 -0
- package/dist/{CheckoutWindow-sws5X9v2.js → CheckoutWindow-Cru3v8It.js} +26 -26
- package/dist/CheckoutWindow-Cru3v8It.js.br +0 -0
- package/dist/{ErrorMessage-GzJ2T5_d.js → ErrorMessage-5TxZYuTj.js} +1 -1
- package/dist/ErrorMessage-5TxZYuTj.js.br +0 -0
- package/dist/EventAvailabilityForm--XuKLthM.js +325 -0
- package/dist/EventAvailabilityForm--XuKLthM.js.br +0 -0
- package/dist/{_-hKpeUU4C.js → Field-pY1XGbPQ.js} +13128 -12492
- package/dist/Field-pY1XGbPQ.js.br +0 -0
- package/dist/HotelAvailabilityForm-hWTsZCGI.js +164 -0
- package/dist/HotelAvailabilityForm-hWTsZCGI.js.br +0 -0
- package/dist/availability.js +22 -21
- package/dist/availability.js.br +0 -0
- package/dist/event.js +578 -304
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +41 -42
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +69 -70
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.js +1081 -2224
- package/dist/hotel.js.br +0 -0
- package/dist/masonry.plugin-MNkmNEdZ.js +12726 -0
- package/dist/masonry.plugin-MNkmNEdZ.js.br +0 -0
- package/dist/polyfill.js +3014 -2962
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +8 -8
- package/dist/ActionField-BUeonTqc.js.br +0 -9
- package/dist/AvailabilitySkeleton-gympaD6B.js +0 -217
- package/dist/AvailabilitySkeleton-gympaD6B.js.br +0 -0
- package/dist/CheckoutWindow-sws5X9v2.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-Ts9271hZ.js.br +0 -0
- package/dist/ErrorMessage-GzJ2T5_d.js.br +0 -0
- package/dist/EventAvailabilityForm-c0u7rObv.js +0 -367
- package/dist/EventAvailabilityForm-c0u7rObv.js.br +0 -0
- package/dist/Field-hjOjPQhC.js +0 -41
- package/dist/Field-hjOjPQhC.js.br +0 -0
- package/dist/ThankYou-d129mmKn.js +0 -11549
- package/dist/ThankYou-d129mmKn.js.br +0 -0
- package/dist/_-hKpeUU4C.js.br +0 -0
package/dist/event.js.br
CHANGED
|
Binary file
|
|
@@ -1,79 +1,78 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { A as
|
|
3
|
-
|
|
4
|
-
const H = { class: "gift-card-validation-skeleton" }, O = { class: "gift-card-validation-skeleton-form" }, R = { class: "gift-card-validation-skeleton-text" }, Z = { class: "gift-card-validation-skeleton-input" }, q = /* @__PURE__ */ L({
|
|
1
|
+
import { d as w, f as h, g as S, h as t, k as s, $ as _, a0 as y, x as X, u as E, s as V, P as A, c as $, n as x, z as m, S as G, A as c, j as e, l as L, a1 as k, a2 as T, a3 as B, m as D, t as I, D as M, E as N, J as z, K as P, L as U, M as j } from "./Field-pY1XGbPQ.js";
|
|
2
|
+
import { A as H } from "./ActionField-7P8dDME0.js";
|
|
3
|
+
const O = { class: "gift-card-validation-skeleton" }, F = { class: "gift-card-validation-skeleton-form" }, R = { class: "gift-card-validation-skeleton-text" }, Z = { class: "gift-card-validation-skeleton-input" }, J = /* @__PURE__ */ w({
|
|
5
4
|
__name: "GiftCardValidationSkeleton",
|
|
6
|
-
setup(
|
|
7
|
-
return (n, l) => (h(), S("div",
|
|
8
|
-
t("div",
|
|
5
|
+
setup(C) {
|
|
6
|
+
return (n, l) => (h(), S("div", O, [
|
|
7
|
+
t("div", F, [
|
|
9
8
|
t("div", R, [
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
s(_, { height: "20px" }),
|
|
10
|
+
s(_, { height: "15px" }),
|
|
11
|
+
s(_, { height: "15px" })
|
|
13
12
|
]),
|
|
14
13
|
t("div", Z, [
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
s(y),
|
|
15
|
+
s(y, { "no-label": "" })
|
|
17
16
|
])
|
|
18
17
|
])
|
|
19
18
|
]));
|
|
20
19
|
}
|
|
21
|
-
}),
|
|
20
|
+
}), K = /* @__PURE__ */ X(J, [["__scopeId", "data-v-b1601b74"]]), q = ["innerHTML"], Q = {
|
|
22
21
|
key: 0,
|
|
23
22
|
id: "fresh-booking-gift-card-validation-resume",
|
|
24
23
|
class: "fresh-booking-panel"
|
|
25
|
-
},
|
|
24
|
+
}, W = /* @__PURE__ */ w({
|
|
26
25
|
name: "GiftCardValidationLayout",
|
|
27
26
|
__name: "GiftCardValidation",
|
|
28
27
|
props: {
|
|
29
28
|
accessToken: {},
|
|
30
29
|
styling: {}
|
|
31
30
|
},
|
|
32
|
-
setup(
|
|
31
|
+
setup(C) {
|
|
33
32
|
const { t: n } = E(), {
|
|
34
33
|
voucher: l,
|
|
35
|
-
isValid:
|
|
36
|
-
amount:
|
|
34
|
+
isValid: v,
|
|
35
|
+
amount: b,
|
|
37
36
|
expirationDate: f,
|
|
38
37
|
productName: d,
|
|
39
38
|
isLoading: p
|
|
40
|
-
} =
|
|
41
|
-
return (i, r) => (h(),
|
|
39
|
+
} = V(A()), { currency: a } = V($()), { apply: o } = A();
|
|
40
|
+
return (i, r) => (h(), x(N, { styling: i.styling }, {
|
|
42
41
|
default: m(() => [
|
|
43
|
-
(h(),
|
|
42
|
+
(h(), x(G, null, {
|
|
44
43
|
default: m(() => [
|
|
45
|
-
|
|
44
|
+
s(M, {
|
|
46
45
|
id: "fresh-booking-gift-card-validation-module",
|
|
47
46
|
"access-token": i.accessToken,
|
|
48
47
|
type: "gift-card"
|
|
49
48
|
}, {
|
|
50
49
|
default: m(() => [
|
|
51
50
|
t("form", {
|
|
52
|
-
onSubmit: r[3] || (r[3] =
|
|
51
|
+
onSubmit: r[3] || (r[3] = I((u) => e(o)(), ["prevent"]))
|
|
53
52
|
}, [
|
|
54
53
|
t("h4", null, [
|
|
55
54
|
t("span", null, c(e(n)("giftCardValidation.title")), 1)
|
|
56
55
|
]),
|
|
57
56
|
t("p", {
|
|
58
57
|
innerHTML: e(n)("giftCardValidation.description")
|
|
59
|
-
}, null, 8,
|
|
60
|
-
|
|
58
|
+
}, null, 8, q),
|
|
59
|
+
s(H, {
|
|
61
60
|
modelValue: e(l),
|
|
62
|
-
"onUpdate:modelValue": r[0] || (r[0] = (u) =>
|
|
61
|
+
"onUpdate:modelValue": r[0] || (r[0] = (u) => L(l) ? l.value = u : null),
|
|
63
62
|
icon: "gift-card",
|
|
64
63
|
label: e(n)("booking.reservation.giftCardCode"),
|
|
65
64
|
buttonLabel: e(n)("giftCardValidation.submitButton"),
|
|
66
65
|
placeholder: "XXXXXXXX",
|
|
67
66
|
"is-loading": e(p),
|
|
68
|
-
"onUpdate:isLoading": r[1] || (r[1] = (u) =>
|
|
69
|
-
onAction: r[2] || (r[2] = (u) => e(
|
|
67
|
+
"onUpdate:isLoading": r[1] || (r[1] = (u) => L(p) ? p.value = u : null),
|
|
68
|
+
onAction: r[2] || (r[2] = (u) => e(o)())
|
|
70
69
|
}, null, 8, ["modelValue", "label", "buttonLabel", "is-loading"]),
|
|
71
|
-
!e(p) && e(
|
|
70
|
+
!e(p) && e(v) ? (h(), S("table", Q, [
|
|
72
71
|
t("thead", null, [
|
|
73
72
|
t("tr", null, [
|
|
74
73
|
t("th", null, [
|
|
75
74
|
t("span", null, c(e(n)("giftCardValidation.giftCard")), 1),
|
|
76
|
-
|
|
75
|
+
s(k, {
|
|
77
76
|
icon: "gift-card",
|
|
78
77
|
type: "fas",
|
|
79
78
|
color: "header"
|
|
@@ -81,7 +80,7 @@ const H = { class: "gift-card-validation-skeleton" }, O = { class: "gift-card-va
|
|
|
81
80
|
]),
|
|
82
81
|
t("th", null, [
|
|
83
82
|
t("span", null, c(e(n)("giftCardValidation.balance")), 1),
|
|
84
|
-
|
|
83
|
+
s(k, {
|
|
85
84
|
icon: "money-bill",
|
|
86
85
|
type: "fas",
|
|
87
86
|
color: "header"
|
|
@@ -89,7 +88,7 @@ const H = { class: "gift-card-validation-skeleton" }, O = { class: "gift-card-va
|
|
|
89
88
|
]),
|
|
90
89
|
t("th", null, [
|
|
91
90
|
t("span", null, c(e(n)("giftCardValidation.expirationDate")), 1),
|
|
92
|
-
|
|
91
|
+
s(k, {
|
|
93
92
|
icon: "timer",
|
|
94
93
|
type: "fas",
|
|
95
94
|
color: "header"
|
|
@@ -103,21 +102,21 @@ const H = { class: "gift-card-validation-skeleton" }, O = { class: "gift-card-va
|
|
|
103
102
|
t("span", null, c(e(d)), 1)
|
|
104
103
|
]),
|
|
105
104
|
t("td", null, [
|
|
106
|
-
t("span", null, c(e(
|
|
105
|
+
t("span", null, c(e(T)(e(b), e(a))), 1)
|
|
107
106
|
]),
|
|
108
107
|
t("td", null, [
|
|
109
|
-
t("span", null, c(e(
|
|
108
|
+
t("span", null, c(e(B)(e(f))), 1)
|
|
110
109
|
])
|
|
111
110
|
])
|
|
112
111
|
])
|
|
113
|
-
])) :
|
|
112
|
+
])) : D("", !0)
|
|
114
113
|
], 32)
|
|
115
114
|
]),
|
|
116
115
|
_: 1
|
|
117
116
|
}, 8, ["access-token"])
|
|
118
117
|
]),
|
|
119
118
|
fallback: m(() => [
|
|
120
|
-
|
|
119
|
+
s(K)
|
|
121
120
|
]),
|
|
122
121
|
_: 1
|
|
123
122
|
}))
|
|
@@ -125,7 +124,7 @@ const H = { class: "gift-card-validation-skeleton" }, O = { class: "gift-card-va
|
|
|
125
124
|
_: 1
|
|
126
125
|
}, 8, ["styling"]));
|
|
127
126
|
}
|
|
128
|
-
}), g = /* @__PURE__ */ X(
|
|
127
|
+
}), g = /* @__PURE__ */ X(W, [["__scopeId", "data-v-b19b4a0e"]]), Y = z(), tt = j();
|
|
129
128
|
class et extends HTMLElement {
|
|
130
129
|
vueApp;
|
|
131
130
|
constructor() {
|
|
@@ -137,18 +136,18 @@ class et extends HTMLElement {
|
|
|
137
136
|
connectedCallback() {
|
|
138
137
|
const n = typeof g == "function" ? g.options : g;
|
|
139
138
|
let l = Array.isArray(n.props) ? n.props : Object.keys(n.props || {});
|
|
140
|
-
const
|
|
141
|
-
l = l.map(
|
|
139
|
+
const v = (a) => a.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (o, i) => (i ? "-" : "") + o.toLowerCase()), b = (a) => a.replace(/-./g, (o) => o[1].toUpperCase()), f = {};
|
|
140
|
+
l = l.map(v);
|
|
142
141
|
const d = {};
|
|
143
142
|
for (const a of this.attributes) {
|
|
144
143
|
const i = a.name.split(".");
|
|
145
|
-
i.length > 1 && (d[i[0]] || (d[i[0]] = {}), d[i[0]][
|
|
144
|
+
i.length > 1 && (d[i[0]] || (d[i[0]] = {}), d[i[0]][b(i[1])] = a.value);
|
|
146
145
|
}
|
|
147
146
|
for (const a of l) {
|
|
148
|
-
let
|
|
149
|
-
d.hasOwnProperty(a) && (
|
|
147
|
+
let o = this.attributes.getNamedItem(a)?.value;
|
|
148
|
+
d.hasOwnProperty(a) && (o = d[a]), f[a] = o;
|
|
150
149
|
}
|
|
151
|
-
this.vueApp =
|
|
150
|
+
this.vueApp = P(g, f), this.vueApp.provide("emitter", tt), this.vueApp.use(Y), this.vueApp.use(U);
|
|
152
151
|
const p = document.createElement("div");
|
|
153
152
|
this.vueApp.mount(p), this.appendChild(p.children[0]);
|
|
154
153
|
}
|
|
Binary file
|
package/dist/gift-card.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { B as
|
|
3
|
-
import {
|
|
4
|
-
import { E as ze } from "./ErrorMessage-GzJ2T5_d.js";
|
|
1
|
+
import { N as ue, O as pe, s as ee, c as ae, r as w, ag as T, U as Q, e as y, Y as ie, W as X, X as me, v as fe, ah as ve, d as Y, u as le, Q as he, f as d, n as M, z, h as o, g as k, k as n, j as e, C as D, m as F, q as de, I as ge, a0 as B, $ as be, x as ce, w as ye, o as ke, S as _e, A as se, ai as W, aj as N, F as Ce, ab as Ve, l as P, _ as we, ak as Fe, T as H, p as Pe, D as Se, E as Te, G as $e, H as Ee, J as Ue, K as Ae, L as Ie, af as Ge, M as Me } from "./Field-pY1XGbPQ.js";
|
|
2
|
+
import { B as Re, a as Le, C as qe, P as xe, _ as Be } from "./CheckoutWindow-Cru3v8It.js";
|
|
3
|
+
import { E as ze } from "./ErrorMessage-5TxZYuTj.js";
|
|
5
4
|
const te = ue("giftCard", () => {
|
|
6
|
-
const { pay: v } = pe(), { bearerToken: c, metaData: _, currencyId: t } = ee(ae()), b = ae(), u = w(T.InitialState), r =
|
|
5
|
+
const { pay: v } = pe(), { bearerToken: c, metaData: _, currencyId: t } = ee(ae()), b = ae(), u = w(T.InitialState), r = Q("konnectio_name", "", void 0, { serializer: X.string }), f = Q("konnectio_email", "", void 0, { serializer: X.string }), i = Q("konnectio_phone", "", void 0, { serializer: X.string }), h = w(""), m = w(1), q = w(!0), S = w(""), a = w({
|
|
7
6
|
base64: "",
|
|
8
7
|
type: "",
|
|
9
8
|
name: ""
|
|
10
|
-
}), p = w(void 0), V = w(0), $ = w(!1), C = w(0), E = y(() => b.metaData.hotels[0]),
|
|
9
|
+
}), p = w(void 0), V = w(0), $ = w(!1), C = w(0), E = y(() => b.metaData.hotels[0]), x = y(() => E.value.termsOfService ? E.value.termsOfService : ""), U = y(() => u.value === T.InitialState || u.value === T.WaitingForResponse), oe = y(() => u.value === T.ReadyToPay), Z = y(() => u.value === T.PaymentSuccess), R = y(() => {
|
|
11
10
|
const g = {
|
|
12
11
|
1: {
|
|
13
12
|
label: ie.t("giftCard.hotelType"),
|
|
@@ -17,8 +16,8 @@ const te = ue("giftCard", () => {
|
|
|
17
16
|
label: ie.t("giftCard.restaurantType"),
|
|
18
17
|
data: []
|
|
19
18
|
}
|
|
20
|
-
},
|
|
21
|
-
return
|
|
19
|
+
}, L = _.value.hotels[0].places;
|
|
20
|
+
return L && L.forEach((I) => {
|
|
22
21
|
g[I.placeType].data.push(I);
|
|
23
22
|
}), Object.fromEntries(
|
|
24
23
|
Object.entries(g).filter(([, I]) => I.data.length > 0)
|
|
@@ -26,15 +25,15 @@ const te = ue("giftCard", () => {
|
|
|
26
25
|
}), O = y(() => C.value !== 0), A = y(() => {
|
|
27
26
|
let g;
|
|
28
27
|
if (O.value)
|
|
29
|
-
g =
|
|
28
|
+
g = R.value[C.value].data[0];
|
|
30
29
|
else if (V.value !== 0) {
|
|
31
|
-
const
|
|
32
|
-
I.length === 1 ? g = I[0] :
|
|
33
|
-
String(ne.id) === String(
|
|
30
|
+
const L = p.value, I = R.value[V.value].data;
|
|
31
|
+
I.length === 1 ? g = I[0] : L !== void 0 && I.forEach((ne) => {
|
|
32
|
+
String(ne.id) === String(L) && (g = ne);
|
|
34
33
|
});
|
|
35
34
|
}
|
|
36
35
|
return g;
|
|
37
|
-
}),
|
|
36
|
+
}), J = y(() => !(!r.value || !f.value || !(i.value.length >= 5) || !h.value || A.value === void 0)), G = y(() => !(u.value === T.InitialState && $.value)), s = y(() => !!(u.value === T.WaitingForResponse && $.value));
|
|
38
37
|
async function l() {
|
|
39
38
|
u.value = T.WaitingForResponse, $.value = !0, await me.post("https://production.hotel-service.konnectio.dk/api/gift-card/create", {
|
|
40
39
|
termsOfserviceURL: window.location.origin,
|
|
@@ -57,7 +56,7 @@ const te = ue("giftCard", () => {
|
|
|
57
56
|
headers: {
|
|
58
57
|
Authorization: c.value,
|
|
59
58
|
Accept: "application/json",
|
|
60
|
-
"Fresh-Booking-Ver": "4.0.56-
|
|
59
|
+
"Fresh-Booking-Ver": "4.0.56-rc25"
|
|
61
60
|
}
|
|
62
61
|
}).then((g) => {
|
|
63
62
|
u.value = T.ReadyToPay, $.value = !1, v({
|
|
@@ -66,7 +65,7 @@ const te = ue("giftCard", () => {
|
|
|
66
65
|
});
|
|
67
66
|
});
|
|
68
67
|
}
|
|
69
|
-
function
|
|
68
|
+
function j(g) {
|
|
70
69
|
g && (C.value = g);
|
|
71
70
|
}
|
|
72
71
|
return {
|
|
@@ -84,17 +83,17 @@ const te = ue("giftCard", () => {
|
|
|
84
83
|
placeType: V,
|
|
85
84
|
showFormPage: U,
|
|
86
85
|
showPaymentPage: oe,
|
|
87
|
-
showConfirmationPage:
|
|
88
|
-
places:
|
|
89
|
-
hasFilledForm:
|
|
86
|
+
showConfirmationPage: Z,
|
|
87
|
+
places: R,
|
|
88
|
+
hasFilledForm: J,
|
|
90
89
|
hasForcedPlaceType: O,
|
|
91
90
|
isWaitingForResponse: s,
|
|
92
91
|
isMetaDataAvailable: G,
|
|
93
|
-
termsOfService:
|
|
92
|
+
termsOfService: x,
|
|
94
93
|
orderGiftCard: l,
|
|
95
|
-
initialize:
|
|
94
|
+
initialize: j
|
|
96
95
|
};
|
|
97
|
-
}), De = { class: "media-selector" }, Oe = ["accept"],
|
|
96
|
+
}), De = { class: "media-selector" }, Oe = ["accept"], je = { class: "media-selector-wrapper" }, We = { class: "media-selector-tools" }, Ne = { key: 0 }, He = { key: 1 }, Ke = { key: 2 }, Ye = ["src"], Ze = /* @__PURE__ */ Y({
|
|
98
97
|
__name: "MediaSelector",
|
|
99
98
|
props: {
|
|
100
99
|
modelValue: {},
|
|
@@ -123,8 +122,8 @@ const te = ue("giftCard", () => {
|
|
|
123
122
|
const [V, $] = [a.name, a.type], C = new FileReader();
|
|
124
123
|
C.onload = function(E) {
|
|
125
124
|
if (E.target) {
|
|
126
|
-
const
|
|
127
|
-
p({ base64:
|
|
125
|
+
const x = E.target.result;
|
|
126
|
+
p({ base64: x, name: V, type: $ });
|
|
128
127
|
} else
|
|
129
128
|
u({
|
|
130
129
|
message: b("imageUploadError"),
|
|
@@ -136,7 +135,7 @@ const te = ue("giftCard", () => {
|
|
|
136
135
|
let a;
|
|
137
136
|
(a = r.value.files) instanceof FileList && q(a[0], i);
|
|
138
137
|
}
|
|
139
|
-
return (a, p) => (d(),
|
|
138
|
+
return (a, p) => (d(), M(ge, {
|
|
140
139
|
label: a.label,
|
|
141
140
|
required: a.required,
|
|
142
141
|
type: "media"
|
|
@@ -152,9 +151,9 @@ const te = ue("giftCard", () => {
|
|
|
152
151
|
single: "",
|
|
153
152
|
onChange: p[0] || (p[0] = (V) => S())
|
|
154
153
|
}, null, 40, Oe),
|
|
155
|
-
o("div",
|
|
156
|
-
o("ul",
|
|
157
|
-
f.value ? F("", !0) : (d(), k("li",
|
|
154
|
+
o("div", je, [
|
|
155
|
+
o("ul", We, [
|
|
156
|
+
f.value ? F("", !0) : (d(), k("li", Ne, [
|
|
158
157
|
n(D, {
|
|
159
158
|
label: e(b)("uploadFile"),
|
|
160
159
|
type: "button",
|
|
@@ -163,7 +162,7 @@ const te = ue("giftCard", () => {
|
|
|
163
162
|
onClickEvent: p[1] || (p[1] = (V) => m())
|
|
164
163
|
}, null, 8, ["label", "icon-color"])
|
|
165
164
|
])),
|
|
166
|
-
f.value ? (d(), k("li",
|
|
165
|
+
f.value ? (d(), k("li", He, [
|
|
167
166
|
n(D, {
|
|
168
167
|
label: e(b)("replaceFile"),
|
|
169
168
|
type: "button",
|
|
@@ -191,7 +190,7 @@ const te = ue("giftCard", () => {
|
|
|
191
190
|
a.modelValue ? (d(), k("img", {
|
|
192
191
|
key: 0,
|
|
193
192
|
src: a.modelValue.base64
|
|
194
|
-
}, null, 8,
|
|
193
|
+
}, null, 8, Ye)) : F("", !0)
|
|
195
194
|
], 2)
|
|
196
195
|
])
|
|
197
196
|
])
|
|
@@ -220,26 +219,26 @@ function re(v) {
|
|
|
220
219
|
}
|
|
221
220
|
});
|
|
222
221
|
}
|
|
223
|
-
typeof re == "function" && re(
|
|
224
|
-
const
|
|
222
|
+
typeof re == "function" && re(Ze);
|
|
223
|
+
const Je = { class: "gift-card-skeleton" }, Qe = { class: "gift-card-skeleton-form" }, Xe = /* @__PURE__ */ Y({
|
|
225
224
|
__name: "GiftCardSkeleton",
|
|
226
225
|
setup(v) {
|
|
227
|
-
return (c, _) => (d(), k("div",
|
|
228
|
-
o("div",
|
|
229
|
-
n(
|
|
230
|
-
n(
|
|
231
|
-
n(
|
|
232
|
-
n(
|
|
233
|
-
n(
|
|
226
|
+
return (c, _) => (d(), k("div", Je, [
|
|
227
|
+
o("div", Qe, [
|
|
228
|
+
n(B),
|
|
229
|
+
n(B),
|
|
230
|
+
n(B),
|
|
231
|
+
n(B),
|
|
232
|
+
n(B, { "is-text-area": "" }),
|
|
234
233
|
n(be, { height: "44px" })
|
|
235
234
|
])
|
|
236
235
|
]));
|
|
237
236
|
}
|
|
238
|
-
}), ea = /* @__PURE__ */ ce(
|
|
237
|
+
}), ea = /* @__PURE__ */ ce(Xe, [["__scopeId", "data-v-ba3efaa1"]]), aa = /* @__PURE__ */ Y({
|
|
239
238
|
__name: "GiftCard",
|
|
240
239
|
setup(v) {
|
|
241
240
|
const { t: c } = le(), _ = te();
|
|
242
|
-
return (t, b) => (d(),
|
|
241
|
+
return (t, b) => (d(), M(Re, {
|
|
243
242
|
content: e(_).termsOfService,
|
|
244
243
|
"button-label": e(c)("giftCard.orderGiftCard")
|
|
245
244
|
}, null, 8, ["content", "button-label"]));
|
|
@@ -261,7 +260,7 @@ const Xe = { class: "gift-card-skeleton" }, Ye = { class: "gift-card-skeleton-fo
|
|
|
261
260
|
}, ha = {
|
|
262
261
|
key: 2,
|
|
263
262
|
id: "konnectio-gift-card-order-minimal"
|
|
264
|
-
}, ga = /* @__PURE__ */ ta(() => /* @__PURE__ */ o("div", { class: "konnectio-divider" }, null, -1)), ba = { id: "konnectio-gift-card-recaptcha" }, ya = /* @__PURE__ */
|
|
263
|
+
}, ga = /* @__PURE__ */ ta(() => /* @__PURE__ */ o("div", { class: "konnectio-divider" }, null, -1)), ba = { id: "konnectio-gift-card-recaptcha" }, ya = /* @__PURE__ */ Y({
|
|
265
264
|
name: "GiftCardLayout",
|
|
266
265
|
__name: "GiftCard",
|
|
267
266
|
props: {
|
|
@@ -290,18 +289,18 @@ const Xe = { class: "gift-card-skeleton" }, Ye = { class: "gift-card-skeleton-fo
|
|
|
290
289
|
showConfirmationPage: $,
|
|
291
290
|
places: C,
|
|
292
291
|
hasFilledForm: E,
|
|
293
|
-
hasForcedPlaceType:
|
|
292
|
+
hasForcedPlaceType: x,
|
|
294
293
|
isWaitingForResponse: U,
|
|
295
294
|
isMetaDataAvailable: oe
|
|
296
|
-
} = ee(te()), { initialize:
|
|
295
|
+
} = ee(te()), { initialize: Z, orderGiftCard: R } = te(), { isRecaptchaEnabled: O, currency: A, hasError: J } = ee(ae());
|
|
297
296
|
return ye(a, () => {
|
|
298
297
|
S.value = void 0;
|
|
299
298
|
}), ke(() => {
|
|
300
299
|
const G = c.placeType ? parseInt(c.placeType) : void 0;
|
|
301
|
-
|
|
302
|
-
}), (G, s) => (d(),
|
|
300
|
+
Z(G);
|
|
301
|
+
}), (G, s) => (d(), M(Te, { styling: _.value }, {
|
|
303
302
|
default: z(() => [
|
|
304
|
-
(d(),
|
|
303
|
+
(d(), M(_e, null, {
|
|
305
304
|
default: z(() => [
|
|
306
305
|
n(Se, {
|
|
307
306
|
id: "konnectio-gift-card-module",
|
|
@@ -310,7 +309,7 @@ const Xe = { class: "gift-card-skeleton" }, Ye = { class: "gift-card-skeleton-fo
|
|
|
310
309
|
"data-layout": G.layout
|
|
311
310
|
}, {
|
|
312
311
|
default: z(() => [
|
|
313
|
-
e(
|
|
312
|
+
e(J) ? (d(), M(ze, {
|
|
314
313
|
key: 1,
|
|
315
314
|
title: "Unable to render Gift card module",
|
|
316
315
|
description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
|
|
@@ -319,36 +318,36 @@ const Xe = { class: "gift-card-skeleton" }, Ye = { class: "gift-card-skeleton-fo
|
|
|
319
318
|
o("span", null, se(e(t)("giftCard.title")), 1)
|
|
320
319
|
]),
|
|
321
320
|
o("div", na, [
|
|
322
|
-
|
|
323
|
-
n(
|
|
321
|
+
W(o("div", ia, [
|
|
322
|
+
n(Le)
|
|
324
323
|
], 512), [
|
|
325
|
-
[
|
|
324
|
+
[N, e(V)]
|
|
326
325
|
]),
|
|
327
|
-
|
|
326
|
+
W(o("div", null, [
|
|
328
327
|
o("p", {
|
|
329
328
|
id: "konnectio-gift-card-description",
|
|
330
329
|
innerHTML: e(t)("giftCard.description")
|
|
331
330
|
}, null, 8, sa),
|
|
332
331
|
o("form", null, [
|
|
333
|
-
e(
|
|
332
|
+
e(x) ? F("", !0) : (d(), k("div", ra, [
|
|
334
333
|
e(C) ? (d(), k("div", da, [
|
|
335
334
|
o("label", ca, [
|
|
336
335
|
o("span", null, se(e(t)("giftCard.selectType")), 1)
|
|
337
336
|
]),
|
|
338
337
|
o("div", ua, [
|
|
339
338
|
o("ul", null, [
|
|
340
|
-
(d(!0), k(Ce, null, Ve(e(C), (l,
|
|
339
|
+
(d(!0), k(Ce, null, Ve(e(C), (l, j) => (d(), k("li", { key: j }, [
|
|
341
340
|
n(qe, {
|
|
342
341
|
modelValue: e(a),
|
|
343
342
|
"onUpdate:modelValue": s[0] || (s[0] = (g) => P(a) ? a.value = g : null),
|
|
344
343
|
type: "radio",
|
|
345
344
|
name: "placeType",
|
|
346
|
-
val:
|
|
345
|
+
val: j,
|
|
347
346
|
label: l.label
|
|
348
347
|
}, null, 8, ["modelValue", "val", "label"])
|
|
349
348
|
]))), 128))
|
|
350
349
|
]),
|
|
351
|
-
e(C)[e(a)] && e(C)[e(a)].data.length > 1 ? (d(),
|
|
350
|
+
e(C)[e(a)] && e(C)[e(a)].data.length > 1 ? (d(), M(we, {
|
|
352
351
|
key: 0,
|
|
353
352
|
modelValue: e(S),
|
|
354
353
|
"onUpdate:modelValue": s[1] || (s[1] = (l) => P(S) ? S.value = l : null),
|
|
@@ -359,9 +358,9 @@ const Xe = { class: "gift-card-skeleton" }, Ye = { class: "gift-card-skeleton-fo
|
|
|
359
358
|
required: ""
|
|
360
359
|
}, null, 8, ["modelValue", "placeholder", "options"])) : F("", !0)
|
|
361
360
|
])
|
|
362
|
-
])) : (d(),
|
|
361
|
+
])) : (d(), M(Fe, { key: 1 }))
|
|
363
362
|
])),
|
|
364
|
-
n(
|
|
363
|
+
n(H, {
|
|
365
364
|
modelValue: e(b),
|
|
366
365
|
"onUpdate:modelValue": s[2] || (s[2] = (l) => P(b) ? b.value = l : null),
|
|
367
366
|
type: "text",
|
|
@@ -372,7 +371,7 @@ const Xe = { class: "gift-card-skeleton" }, Ye = { class: "gift-card-skeleton-fo
|
|
|
372
371
|
placeholder: e(t)("giftCard.namePlaceholder"),
|
|
373
372
|
required: ""
|
|
374
373
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
375
|
-
n(
|
|
374
|
+
n(H, {
|
|
376
375
|
modelValue: e(u),
|
|
377
376
|
"onUpdate:modelValue": s[3] || (s[3] = (l) => P(u) ? u.value = l : null),
|
|
378
377
|
type: "email",
|
|
@@ -383,7 +382,7 @@ const Xe = { class: "gift-card-skeleton" }, Ye = { class: "gift-card-skeleton-fo
|
|
|
383
382
|
placeholder: e(t)("giftCard.emailPlaceholder"),
|
|
384
383
|
required: ""
|
|
385
384
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
386
|
-
n(
|
|
385
|
+
n(xe, {
|
|
387
386
|
modelValue: e(r),
|
|
388
387
|
"onUpdate:modelValue": s[4] || (s[4] = (l) => P(r) ? r.value = l : null),
|
|
389
388
|
icon: "phone-office",
|
|
@@ -391,7 +390,7 @@ const Xe = { class: "gift-card-skeleton" }, Ye = { class: "gift-card-skeleton-fo
|
|
|
391
390
|
placeholder: e(t)("giftCard.phonePlaceholder"),
|
|
392
391
|
required: ""
|
|
393
392
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
394
|
-
n(
|
|
393
|
+
n(H, {
|
|
395
394
|
modelValue: e(f),
|
|
396
395
|
"onUpdate:modelValue": s[5] || (s[5] = (l) => P(f) ? f.value = l : null),
|
|
397
396
|
type: "number",
|
|
@@ -413,14 +412,14 @@ const Xe = { class: "gift-card-skeleton" }, Ye = { class: "gift-card-skeleton-fo
|
|
|
413
412
|
}, null, 8, ["modelValue", "label"])
|
|
414
413
|
])
|
|
415
414
|
], 512), [
|
|
416
|
-
[
|
|
415
|
+
[N, e(p)]
|
|
417
416
|
]),
|
|
418
|
-
|
|
417
|
+
W(o("div", null, [
|
|
419
418
|
o("div", {
|
|
420
419
|
innerHTML: e(t)("giftCard.thankYou")
|
|
421
420
|
}, null, 8, pa)
|
|
422
421
|
], 512), [
|
|
423
|
-
[
|
|
422
|
+
[N, e($)]
|
|
424
423
|
])
|
|
425
424
|
]),
|
|
426
425
|
G.layout !== "minimal" && e(p) ? (d(), k("div", ma, [
|
|
@@ -431,12 +430,12 @@ const Xe = { class: "gift-card-skeleton" }, Ye = { class: "gift-card-skeleton-fo
|
|
|
431
430
|
disabled: !e(E),
|
|
432
431
|
"is-loading": e(U),
|
|
433
432
|
"onUpdate:isLoading": s[9] || (s[9] = (l) => P(U) ? U.value = l : null),
|
|
434
|
-
onClickEvent: e(
|
|
433
|
+
onClickEvent: e(R)
|
|
435
434
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
|
|
436
435
|
])
|
|
437
436
|
])) : F("", !0),
|
|
438
437
|
e(p) ? (d(), k("div", va, [
|
|
439
|
-
n(
|
|
438
|
+
n(H, {
|
|
440
439
|
modelValue: e(i),
|
|
441
440
|
"onUpdate:modelValue": s[10] || (s[10] = (l) => P(i) ? i.value = l : null),
|
|
442
441
|
type: "textarea",
|
|
@@ -454,16 +453,16 @@ const Xe = { class: "gift-card-skeleton" }, Ye = { class: "gift-card-skeleton-fo
|
|
|
454
453
|
"data-test": "orderGiftCard",
|
|
455
454
|
"is-loading": e(U),
|
|
456
455
|
"onUpdate:isLoading": s[11] || (s[11] = (l) => P(U) ? U.value = l : null),
|
|
457
|
-
onClickEvent: e(
|
|
456
|
+
onClickEvent: e(R)
|
|
458
457
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
|
|
459
458
|
o("div", null, [
|
|
460
459
|
ga,
|
|
461
460
|
n(aa)
|
|
462
461
|
]),
|
|
463
|
-
|
|
464
|
-
n(
|
|
462
|
+
W(o("div", ba, [
|
|
463
|
+
n(Be)
|
|
465
464
|
], 512), [
|
|
466
|
-
[
|
|
465
|
+
[N, e(O)]
|
|
467
466
|
])
|
|
468
467
|
])) : F("", !0)
|
|
469
468
|
]))
|
|
@@ -480,7 +479,7 @@ const Xe = { class: "gift-card-skeleton" }, Ye = { class: "gift-card-skeleton-fo
|
|
|
480
479
|
_: 1
|
|
481
480
|
}, 8, ["styling"]));
|
|
482
481
|
}
|
|
483
|
-
}), K = /* @__PURE__ */ ce(ya, [["__scopeId", "data-v-30c8e35c"]]), ka = Ue(), _a =
|
|
482
|
+
}), K = /* @__PURE__ */ ce(ya, [["__scopeId", "data-v-30c8e35c"]]), ka = Ue(), _a = Me();
|
|
484
483
|
class Ca extends HTMLElement {
|
|
485
484
|
vueApp;
|
|
486
485
|
constructor() {
|
package/dist/gift-card.js.br
CHANGED
|
Binary file
|