@konnectio/core 4.0.83 → 4.0.84
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-BA-fYDFE.js → ActionField-CLQbtAU7.js} +3 -3
- package/dist/ActionField-CLQbtAU7.js.br +0 -0
- package/dist/AvailabilitySkeleton-BJPo5KGW.js +309 -0
- package/dist/AvailabilitySkeleton-BJPo5KGW.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Qc9hcPxa.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CAv6OSp6.js} +18 -19
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CAv6OSp6.js.br +0 -0
- package/dist/{CheckoutWindow-BWvzwZp7.js → CheckoutWindow-C9Sa3vci.js} +62 -62
- package/dist/CheckoutWindow-C9Sa3vci.js.br +0 -0
- package/dist/{ErrorMessage-Cznv1pOA.js → ErrorMessage-D6rbHHXd.js} +3 -3
- package/dist/ErrorMessage-D6rbHHXd.js.br +0 -0
- package/dist/{EventAvailabilityForm-CCIRdxiD.js → EventAvailabilityForm-D-Q1vxsm.js} +18 -19
- package/dist/EventAvailabilityForm-D-Q1vxsm.js.br +0 -0
- package/dist/{Field-BvDQnKDq.js → Field-CGT9JUe-.js} +5 -5
- package/dist/Field-CGT9JUe-.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-9lyXRaoC.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BR0ZkskY.js} +1217 -1190
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BR0ZkskY.js.br +0 -0
- package/dist/TermsOfService-DmwGAt0q.js +28 -0
- package/dist/_-YHi6ciVk.js +5 -0
- package/dist/{_.vue_vue_type_style_index_0_lang-JXEPTW6b.js → _.vue_vue_type_style_index_0_lang-DeF9xZEQ.js} +5 -5
- package/dist/availability.js +23 -24
- package/dist/availability.js.br +0 -0
- package/dist/deep-link.js +5 -6
- package/dist/deep-link.js.br +0 -0
- package/dist/event.js +72 -74
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +21 -22
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +67 -68
- package/dist/gift-card.js.br +0 -0
- package/dist/{giftCard-DA27WKsi.js → giftCard-C-lmDpUB.js} +27 -28
- package/dist/giftCard-C-lmDpUB.js.br +0 -0
- package/dist/hotel.js +1269 -1143
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-C22IPiCy.js → masonry.plugin-DL8uXS-9.js} +6 -7
- package/dist/masonry.plugin-DL8uXS-9.js.br +0 -0
- package/dist/mitt-B_elXQ2J.js +12437 -0
- package/dist/mitt-B_elXQ2J.js.br +0 -0
- package/dist/polyfill.js +2427 -2378
- package/dist/polyfill.js.br +0 -0
- package/dist/{style-CF23zZwv.js → style-CDpCXUak.js} +67 -67
- package/dist/style-CDpCXUak.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +12 -13
- package/dist/ActionField-BA-fYDFE.js.br +0 -0
- package/dist/AvailabilitySkeleton-cs1R6FqT.js +0 -281
- package/dist/AvailabilitySkeleton-cs1R6FqT.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Qc9hcPxa.js.br +0 -0
- package/dist/CheckoutWindow-BWvzwZp7.js.br +0 -0
- package/dist/ErrorMessage-Cznv1pOA.js.br +0 -0
- package/dist/EventAvailabilityForm-CCIRdxiD.js.br +0 -0
- package/dist/Field-BvDQnKDq.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-9lyXRaoC.js.br +0 -0
- package/dist/TermsOfService-GFdUcU5a.js +0 -29
- package/dist/_-CApO2y_W.js +0 -5
- package/dist/giftCard-DA27WKsi.js.br +0 -0
- package/dist/masonry.plugin-C22IPiCy.js.br +0 -0
- package/dist/mitt-QLRlCcPH.js +0 -2962
- package/dist/mitt-QLRlCcPH.js.br +0 -0
- package/dist/style-CF23zZwv.js.br +0 -0
- package/dist/vue.esm-bundler-BkY4vCIk.js +0 -9485
- package/dist/vue.esm-bundler-BkY4vCIk.js.br +0 -0
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { d as x, a as s, g as v, e as t, f as a, c as T, b as m, w as p, S as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { G as Y } from "./style-CF23zZwv.js";
|
|
1
|
+
import { d as x, a as s, g as v, e as t, f as a, c as T, u as $, x as k, b as m, w as p, S as B, i as e, t as i, C, j as I, h as D, l as N, m as U, q as F, s as H, v as q } from "./mitt-B_elXQ2J.js";
|
|
2
|
+
import { E as h, _ as A, q as b, d as R, I as g, g as j, s as O, C as W } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BR0ZkskY.js";
|
|
3
|
+
import { u as z } from "./giftCard-C-lmDpUB.js";
|
|
4
|
+
import { _ as J } from "./_.vue_vue_type_style_index_0_lang-DeF9xZEQ.js";
|
|
5
|
+
import { A as K } from "./ActionField-CLQbtAU7.js";
|
|
6
|
+
import { F as y } from "./Field-CGT9JUe-.js";
|
|
7
|
+
import { E as Q } from "./ErrorMessage-D6rbHHXd.js";
|
|
8
|
+
import { G as Y } from "./style-CDpCXUak.js";
|
|
10
9
|
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
10
|
__name: "GiftCardValidationSkeleton",
|
|
12
11
|
setup(u) {
|
|
@@ -39,17 +38,17 @@ const Z = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-v
|
|
|
39
38
|
const d = u, l = T(() => ({
|
|
40
39
|
panelMaxWidth: "800px",
|
|
41
40
|
...d.styling
|
|
42
|
-
})), { t: o } =
|
|
41
|
+
})), { t: o } = $(), {
|
|
43
42
|
voucher: f,
|
|
44
43
|
isValid: G,
|
|
45
44
|
amount: E,
|
|
46
45
|
expirationDate: S,
|
|
47
46
|
productName: w,
|
|
48
47
|
isLoading: c
|
|
49
|
-
} = b(
|
|
50
|
-
return (P, n) => (s(), m(
|
|
48
|
+
} = k(b()), { currency: L, hasError: M } = k(R()), { fetchMetadata: X } = z(), { apply: _ } = b();
|
|
49
|
+
return (P, n) => (s(), m(W, { styling: l.value }, {
|
|
51
50
|
default: p(() => [
|
|
52
|
-
(s(), m(
|
|
51
|
+
(s(), m(B, null, {
|
|
53
52
|
default: p(() => [
|
|
54
53
|
a(J, {
|
|
55
54
|
"access-token": P.accessToken,
|
|
@@ -63,7 +62,7 @@ const Z = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-v
|
|
|
63
62
|
})) : (s(), v("form", {
|
|
64
63
|
key: 0,
|
|
65
64
|
id: "konnectio-gift-card-validation-module",
|
|
66
|
-
onSubmit: n[3] || (n[3] =
|
|
65
|
+
onSubmit: n[3] || (n[3] = D((r) => e(_)(), ["prevent"]))
|
|
67
66
|
}, [
|
|
68
67
|
t("h4", null, [
|
|
69
68
|
t("span", null, i(e(o)("giftCardValidation.title")), 1)
|
|
@@ -73,13 +72,13 @@ const Z = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-v
|
|
|
73
72
|
}, null, 8, it),
|
|
74
73
|
a(K, {
|
|
75
74
|
modelValue: e(f),
|
|
76
|
-
"onUpdate:modelValue": n[0] || (n[0] = (r) =>
|
|
75
|
+
"onUpdate:modelValue": n[0] || (n[0] = (r) => C(f) ? f.value = r : null),
|
|
77
76
|
icon: "gift-card",
|
|
78
77
|
label: e(o)("booking.reservation.giftCardCode"),
|
|
79
78
|
buttonLabel: e(o)("giftCardValidation.submitButton"),
|
|
80
79
|
placeholder: "XXXXXXXX",
|
|
81
80
|
"is-loading": e(c),
|
|
82
|
-
"onUpdate:isLoading": n[1] || (n[1] = (r) =>
|
|
81
|
+
"onUpdate:isLoading": n[1] || (n[1] = (r) => C(c) ? c.value = r : null),
|
|
83
82
|
onAction: n[2] || (n[2] = (r) => e(_)())
|
|
84
83
|
}, null, 8, ["modelValue", "label", "buttonLabel", "is-loading"]),
|
|
85
84
|
!e(c) && e(G) ? (s(), v("table", st, [
|
|
@@ -117,14 +116,14 @@ const Z = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-v
|
|
|
117
116
|
t("span", null, i(e(w)), 1)
|
|
118
117
|
]),
|
|
119
118
|
t("td", null, [
|
|
120
|
-
t("span", null, i(e(
|
|
119
|
+
t("span", null, i(e(j)(e(E), e(L))), 1)
|
|
121
120
|
]),
|
|
122
121
|
t("td", null, [
|
|
123
|
-
t("span", null, i(e(
|
|
122
|
+
t("span", null, i(e(O)(e(S))), 1)
|
|
124
123
|
])
|
|
125
124
|
])
|
|
126
125
|
])
|
|
127
|
-
])) :
|
|
126
|
+
])) : I("", !0)
|
|
128
127
|
], 32))
|
|
129
128
|
]),
|
|
130
129
|
_: 1
|
|
@@ -139,7 +138,7 @@ const Z = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-v
|
|
|
139
138
|
_: 1
|
|
140
139
|
}, 8, ["styling"]));
|
|
141
140
|
}
|
|
142
|
-
}), V = /* @__PURE__ */ A(lt, [["__scopeId", "data-v-ae703950"]]), rt =
|
|
141
|
+
}), V = /* @__PURE__ */ A(lt, [["__scopeId", "data-v-ae703950"]]), rt = N(), dt = q();
|
|
143
142
|
class ct extends HTMLElement {
|
|
144
143
|
vueApp;
|
|
145
144
|
constructor() {
|
|
@@ -149,8 +148,8 @@ class ct extends HTMLElement {
|
|
|
149
148
|
this.vueApp.unmount();
|
|
150
149
|
}
|
|
151
150
|
connectedCallback() {
|
|
152
|
-
const d =
|
|
153
|
-
this.vueApp =
|
|
151
|
+
const d = U(V, this.attributes);
|
|
152
|
+
this.vueApp = F(V, d), this.vueApp.provide("emitter", dt), this.vueApp.use(rt), this.vueApp.use(H), this.vueApp.use(Y);
|
|
154
153
|
const l = document.createElement("div");
|
|
155
154
|
this.vueApp.mount(l), this.appendChild(l.children[0]);
|
|
156
155
|
}
|
|
Binary file
|
package/dist/gift-card.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { _ as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
const Me = { class: "media-selector" }, Le = ["accept"], qe = { class: "media-selector-wrapper" }, Be = { class: "media-selector-tools" }, Ie = { key: 0 }, Re = { key: 1 }, xe = { key: 2 }, He = ["src"], De = /* @__PURE__ */ S({
|
|
1
|
+
import { d as T, u as L, r as O, c as J, a as i, b as y, w as C, e as l, g as c, f as t, i as e, j as f, n as Y, t as q, h as te, G as oe, x as W, H as ne, o as ie, S as se, I as G, J as A, F as re, B as de, C as b, p as ue, k as ce, l as pe, m as me, q as fe, s as ve, v as be } from "./mitt-B_elXQ2J.js";
|
|
2
|
+
import { a as he, c as S, p as _e, E as ke, _ as x, d as ge, n as ye, L as Ce, T as M, b as Ve, C as we, m as $e } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BR0ZkskY.js";
|
|
3
|
+
import { G as Fe } from "./style-CDpCXUak.js";
|
|
4
|
+
import { u as R } from "./giftCard-C-lmDpUB.js";
|
|
5
|
+
import { _ as Pe } from "./_.vue_vue_type_style_index_0_lang-DeF9xZEQ.js";
|
|
6
|
+
import { a as Ee, C as Ue, P as Se, _ as Te } from "./CheckoutWindow-C9Sa3vci.js";
|
|
7
|
+
import { F as U } from "./Field-CGT9JUe-.js";
|
|
8
|
+
import { E as Ge } from "./ErrorMessage-D6rbHHXd.js";
|
|
9
|
+
import { S as Ae } from "./TermsOfService-DmwGAt0q.js";
|
|
10
|
+
const Me = { class: "media-selector" }, qe = ["accept"], Le = { class: "media-selector-wrapper" }, Ie = { class: "media-selector-tools" }, Be = { key: 0 }, Re = { key: 1 }, xe = { key: 2 }, He = ["src"], De = /* @__PURE__ */ T({
|
|
12
11
|
__name: "MediaSelector",
|
|
13
12
|
props: {
|
|
14
13
|
modelValue: {},
|
|
@@ -19,7 +18,7 @@ const Me = { class: "media-selector" }, Le = ["accept"], qe = { class: "media-se
|
|
|
19
18
|
},
|
|
20
19
|
emits: ["update:modelValue"],
|
|
21
20
|
setup(p, { emit: r }) {
|
|
22
|
-
const m = r, o = p, { t: u } =
|
|
21
|
+
const m = r, o = p, { t: u } = L(), { display: h } = he(), v = O(), _ = J(() => o.modelValue.base64 !== "");
|
|
23
22
|
function V(a) {
|
|
24
23
|
m("update:modelValue", a);
|
|
25
24
|
}
|
|
@@ -34,11 +33,11 @@ const Me = { class: "media-selector" }, Le = ["accept"], qe = { class: "media-se
|
|
|
34
33
|
v.value && v.value.click();
|
|
35
34
|
}
|
|
36
35
|
function D(a, d) {
|
|
37
|
-
const [g,
|
|
36
|
+
const [g, I] = [a.name, a.type], k = new FileReader();
|
|
38
37
|
k.onload = function(E) {
|
|
39
38
|
if (E.target) {
|
|
40
|
-
const
|
|
41
|
-
d({ base64:
|
|
39
|
+
const B = E.target.result;
|
|
40
|
+
d({ base64: B, name: g, type: I });
|
|
42
41
|
} else
|
|
43
42
|
h({
|
|
44
43
|
message: u("imageUploadError"),
|
|
@@ -65,11 +64,11 @@ const Me = { class: "media-selector" }, Le = ["accept"], qe = { class: "media-se
|
|
|
65
64
|
accept: a.validation,
|
|
66
65
|
single: "",
|
|
67
66
|
onChange: d[0] || (d[0] = (g) => $())
|
|
68
|
-
}, null, 40,
|
|
69
|
-
l("div",
|
|
70
|
-
l("ul",
|
|
71
|
-
_.value ? f("", !0) : (i(), c("li",
|
|
72
|
-
t(
|
|
67
|
+
}, null, 40, qe),
|
|
68
|
+
l("div", Le, [
|
|
69
|
+
l("ul", Ie, [
|
|
70
|
+
_.value ? f("", !0) : (i(), c("li", Be, [
|
|
71
|
+
t(S, {
|
|
73
72
|
label: e(u)("uploadFile"),
|
|
74
73
|
type: "button",
|
|
75
74
|
icon: "upload",
|
|
@@ -78,7 +77,7 @@ const Me = { class: "media-selector" }, Le = ["accept"], qe = { class: "media-se
|
|
|
78
77
|
}, null, 8, ["label", "icon-color"])
|
|
79
78
|
])),
|
|
80
79
|
_.value ? (i(), c("li", Re, [
|
|
81
|
-
t(
|
|
80
|
+
t(S, {
|
|
82
81
|
label: e(u)("replaceFile"),
|
|
83
82
|
type: "button",
|
|
84
83
|
icon: "repeat-alt",
|
|
@@ -87,7 +86,7 @@ const Me = { class: "media-selector" }, Le = ["accept"], qe = { class: "media-se
|
|
|
87
86
|
}, null, 8, ["label", "icon-color"])
|
|
88
87
|
])) : f("", !0),
|
|
89
88
|
_.value ? (i(), c("li", xe, [
|
|
90
|
-
t(
|
|
89
|
+
t(S, {
|
|
91
90
|
label: e(u)("removeFile"),
|
|
92
91
|
type: "button",
|
|
93
92
|
icon: "trash-alt",
|
|
@@ -97,7 +96,7 @@ const Me = { class: "media-selector" }, Le = ["accept"], qe = { class: "media-se
|
|
|
97
96
|
])) : f("", !0)
|
|
98
97
|
]),
|
|
99
98
|
l("div", {
|
|
100
|
-
class:
|
|
99
|
+
class: Y([
|
|
101
100
|
"media-selector-previewer",
|
|
102
101
|
{ opened: _.value }
|
|
103
102
|
])
|
|
@@ -114,7 +113,7 @@ const Me = { class: "media-selector" }, Le = ["accept"], qe = { class: "media-se
|
|
|
114
113
|
}, 8, ["label", "required"]));
|
|
115
114
|
}
|
|
116
115
|
});
|
|
117
|
-
function
|
|
116
|
+
function z(p) {
|
|
118
117
|
const r = p;
|
|
119
118
|
r.__i18n = r.__i18n || [], r.__i18n.push({
|
|
120
119
|
locale: "",
|
|
@@ -134,8 +133,8 @@ function W(p) {
|
|
|
134
133
|
}
|
|
135
134
|
});
|
|
136
135
|
}
|
|
137
|
-
typeof
|
|
138
|
-
const Ne = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-form" },
|
|
136
|
+
typeof z == "function" && z(De);
|
|
137
|
+
const Ne = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-form" }, We = /* @__PURE__ */ T({
|
|
139
138
|
__name: "GiftCardSkeleton",
|
|
140
139
|
setup(p) {
|
|
141
140
|
return (r, m) => (i(), c("div", Ne, [
|
|
@@ -149,22 +148,22 @@ const Ne = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
149
148
|
])
|
|
150
149
|
]));
|
|
151
150
|
}
|
|
152
|
-
}),
|
|
151
|
+
}), ze = /* @__PURE__ */ x(We, [["__scopeId", "data-v-ba3efaa1"]]), Ke = { class: "konnectio-accept-terms" }, Oe = /* @__PURE__ */ T({
|
|
153
152
|
__name: "_",
|
|
154
153
|
props: {
|
|
155
154
|
content: {},
|
|
156
155
|
buttonLabel: {}
|
|
157
156
|
},
|
|
158
157
|
setup(p) {
|
|
159
|
-
const { t: r } =
|
|
158
|
+
const { t: r } = L(), m = O(!1);
|
|
160
159
|
return (o, u) => (i(), c("div", Ke, [
|
|
161
|
-
t(e(
|
|
160
|
+
t(e(oe), {
|
|
162
161
|
keypath: "general.termsAndConditionsNotice",
|
|
163
162
|
tag: "span",
|
|
164
163
|
scope: "global"
|
|
165
164
|
}, {
|
|
166
165
|
button: C(() => [
|
|
167
|
-
l("i", null, '"' +
|
|
166
|
+
l("i", null, '"' + q(o.buttonLabel) + '"', 1)
|
|
168
167
|
]),
|
|
169
168
|
terms: C(() => [
|
|
170
169
|
l("a", {
|
|
@@ -172,32 +171,32 @@ const Ne = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
172
171
|
target: "_blank",
|
|
173
172
|
onClick: u[0] || (u[0] = te((h) => m.value = !0, ["prevent"]))
|
|
174
173
|
}, [
|
|
175
|
-
l("span", null,
|
|
174
|
+
l("span", null, q(e(r)("general.termsAndConditions")), 1)
|
|
176
175
|
])
|
|
177
176
|
]),
|
|
178
177
|
_: 1
|
|
179
178
|
}),
|
|
180
|
-
t(
|
|
179
|
+
t(Ae, {
|
|
181
180
|
modelValue: m.value,
|
|
182
181
|
"onUpdate:modelValue": u[1] || (u[1] = (h) => m.value = h),
|
|
183
182
|
description: o.content
|
|
184
183
|
}, null, 8, ["modelValue", "description"])
|
|
185
184
|
]));
|
|
186
185
|
}
|
|
187
|
-
}),
|
|
186
|
+
}), Je = /* @__PURE__ */ x(Oe, [["__scopeId", "data-v-f587c956"]]), Ye = /* @__PURE__ */ T({
|
|
188
187
|
__name: "GiftCard",
|
|
189
188
|
setup(p) {
|
|
190
|
-
const { t: r } =
|
|
191
|
-
return (o, u) => (i(), y(
|
|
189
|
+
const { t: r } = L(), m = R();
|
|
190
|
+
return (o, u) => (i(), y(Je, {
|
|
192
191
|
content: e(m).termsOfService,
|
|
193
192
|
"button-label": e(r)("giftCard.orderGiftCard")
|
|
194
193
|
}, null, 8, ["content", "button-label"]));
|
|
195
194
|
}
|
|
196
|
-
}), Qe = (p) => (
|
|
195
|
+
}), Qe = (p) => (ue("data-v-278e1031"), p = p(), ce(), p), Xe = ["data-layout"], Ze = { id: "konnectio-gift-card-wrapper" }, el = { id: "konnectio-gift-card-title" }, ll = { id: "konnectio-gift-card-content" }, al = { id: "konnectio-gift-card-payment" }, tl = ["innerHTML"], ol = { key: 0 }, nl = {
|
|
197
196
|
key: 0,
|
|
198
197
|
id: "konnectio-select-place-type"
|
|
199
198
|
}, il = {
|
|
200
|
-
class: /* @__PURE__ */
|
|
199
|
+
class: /* @__PURE__ */ Y(["konnectio-label", "required"])
|
|
201
200
|
}, sl = { id: "konnectio-select-place-type-input" }, rl = ["innerHTML"], dl = {
|
|
202
201
|
key: 0,
|
|
203
202
|
id: "konnectio-gift-card-order"
|
|
@@ -207,7 +206,7 @@ const Ne = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
207
206
|
}, pl = {
|
|
208
207
|
key: 2,
|
|
209
208
|
id: "konnectio-gift-card-order-minimal"
|
|
210
|
-
}, ml = /* @__PURE__ */ Qe(() => /* @__PURE__ */ l("div", { class: "konnectio-divider" }, null, -1)), fl = { id: "konnectio-gift-card-recaptcha" }, vl = /* @__PURE__ */
|
|
209
|
+
}, ml = /* @__PURE__ */ Qe(() => /* @__PURE__ */ l("div", { class: "konnectio-divider" }, null, -1)), fl = { id: "konnectio-gift-card-recaptcha" }, vl = /* @__PURE__ */ T({
|
|
211
210
|
name: "GiftCardLayout",
|
|
212
211
|
__name: "GiftCard",
|
|
213
212
|
props: {
|
|
@@ -217,10 +216,10 @@ const Ne = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
217
216
|
styling: {}
|
|
218
217
|
},
|
|
219
218
|
setup(p) {
|
|
220
|
-
const r = p, m =
|
|
219
|
+
const r = p, m = J(() => ({
|
|
221
220
|
panelMaxWidth: "800px",
|
|
222
221
|
...r.styling
|
|
223
|
-
})), { t: o } =
|
|
222
|
+
})), { t: o } = L(), {
|
|
224
223
|
name: u,
|
|
225
224
|
email: h,
|
|
226
225
|
phone: v,
|
|
@@ -233,20 +232,20 @@ const Ne = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
233
232
|
placeType: a,
|
|
234
233
|
showFormPage: d,
|
|
235
234
|
showPaymentPage: g,
|
|
236
|
-
showConfirmationPage:
|
|
235
|
+
showConfirmationPage: I,
|
|
237
236
|
places: k,
|
|
238
237
|
hasFilledForm: E,
|
|
239
|
-
hasForcedPlaceType:
|
|
238
|
+
hasForcedPlaceType: B,
|
|
240
239
|
isWaitingForResponse: F
|
|
241
|
-
} =
|
|
242
|
-
return
|
|
240
|
+
} = W(R()), { initialize: Q, orderGiftCard: N, fetchMetadata: X } = R(), { isRecaptchaEnabled: Z, currency: ee, hasError: le } = W(ge());
|
|
241
|
+
return ne(a, () => {
|
|
243
242
|
$.value = void 0;
|
|
244
|
-
}),
|
|
243
|
+
}), ie(() => {
|
|
245
244
|
const P = r.placeType ? parseInt(r.placeType) : void 0;
|
|
246
245
|
Q(P);
|
|
247
246
|
}), (P, s) => (i(), y(we, { styling: m.value }, {
|
|
248
247
|
default: C(() => [
|
|
249
|
-
(i(), y(
|
|
248
|
+
(i(), y(se, null, {
|
|
250
249
|
default: C(() => [
|
|
251
250
|
t(Pe, {
|
|
252
251
|
"access-token": P.accessToken,
|
|
@@ -254,7 +253,7 @@ const Ne = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
254
253
|
callback: e(X)
|
|
255
254
|
}, {
|
|
256
255
|
default: C(() => [
|
|
257
|
-
e(le) ? (i(), y(
|
|
256
|
+
e(le) ? (i(), y(Ge, {
|
|
258
257
|
key: 1,
|
|
259
258
|
title: "Unable to render Gift card module",
|
|
260
259
|
description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
|
|
@@ -265,28 +264,28 @@ const Ne = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
265
264
|
}, [
|
|
266
265
|
l("div", Ze, [
|
|
267
266
|
l("h2", el, [
|
|
268
|
-
l("span", null,
|
|
267
|
+
l("span", null, q(e(o)("giftCard.title")), 1)
|
|
269
268
|
]),
|
|
270
269
|
l("div", ll, [
|
|
271
|
-
|
|
270
|
+
G(l("div", al, [
|
|
272
271
|
t(Ee)
|
|
273
272
|
], 512), [
|
|
274
|
-
[
|
|
273
|
+
[A, e(g)]
|
|
275
274
|
]),
|
|
276
|
-
|
|
275
|
+
G(l("div", null, [
|
|
277
276
|
l("p", {
|
|
278
277
|
id: "konnectio-gift-card-description",
|
|
279
278
|
innerHTML: e(o)("giftCard.description")
|
|
280
279
|
}, null, 8, tl),
|
|
281
280
|
l("form", null, [
|
|
282
|
-
e(
|
|
281
|
+
e(B) ? f("", !0) : (i(), c("div", ol, [
|
|
283
282
|
e(k) ? (i(), c("div", nl, [
|
|
284
283
|
l("label", il, [
|
|
285
|
-
l("span", null,
|
|
284
|
+
l("span", null, q(e(o)("giftCard.selectType")), 1)
|
|
286
285
|
]),
|
|
287
286
|
l("div", sl, [
|
|
288
287
|
l("ul", null, [
|
|
289
|
-
(i(!0), c(
|
|
288
|
+
(i(!0), c(re, null, de(e(k), (n, j) => (i(), c("li", { key: j }, [
|
|
290
289
|
t(Ue, {
|
|
291
290
|
modelValue: e(a),
|
|
292
291
|
"onUpdate:modelValue": s[0] || (s[0] = (ae) => b(a) ? a.value = ae : null),
|
|
@@ -332,7 +331,7 @@ const Ne = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
332
331
|
placeholder: e(o)("giftCard.emailPlaceholder"),
|
|
333
332
|
required: ""
|
|
334
333
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
335
|
-
t(
|
|
334
|
+
t(Se, {
|
|
336
335
|
modelValue: e(v),
|
|
337
336
|
"onUpdate:modelValue": s[4] || (s[4] = (n) => b(v) ? v.value = n : null),
|
|
338
337
|
icon: "phone-office",
|
|
@@ -362,19 +361,19 @@ const Ne = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
362
361
|
}, null, 8, ["modelValue", "label"])
|
|
363
362
|
])
|
|
364
363
|
], 512), [
|
|
365
|
-
[
|
|
364
|
+
[A, e(d)]
|
|
366
365
|
]),
|
|
367
|
-
|
|
366
|
+
G(l("div", null, [
|
|
368
367
|
l("div", {
|
|
369
368
|
innerHTML: e(o)("giftCard.thankYou")
|
|
370
369
|
}, null, 8, rl)
|
|
371
370
|
], 512), [
|
|
372
|
-
[
|
|
371
|
+
[A, e(I)]
|
|
373
372
|
])
|
|
374
373
|
]),
|
|
375
374
|
P.layout !== "minimal" && e(d) ? (i(), c("div", dl, [
|
|
376
375
|
l("div", ul, [
|
|
377
|
-
t(
|
|
376
|
+
t(S, {
|
|
378
377
|
label: e(o)("giftCard.orderGiftCard"),
|
|
379
378
|
"full-width": !0,
|
|
380
379
|
disabled: !e(E),
|
|
@@ -396,7 +395,7 @@ const Ne = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
396
395
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
397
396
|
])) : f("", !0),
|
|
398
397
|
e(d) ? (i(), c("div", pl, [
|
|
399
|
-
t(
|
|
398
|
+
t(S, {
|
|
400
399
|
label: e(o)("giftCard.orderGiftCard"),
|
|
401
400
|
"full-width": !0,
|
|
402
401
|
disabled: !e(E),
|
|
@@ -407,12 +406,12 @@ const Ne = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
407
406
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
|
|
408
407
|
l("div", null, [
|
|
409
408
|
ml,
|
|
410
|
-
t(
|
|
409
|
+
t(Ye)
|
|
411
410
|
]),
|
|
412
|
-
|
|
413
|
-
t(
|
|
411
|
+
G(l("div", fl, [
|
|
412
|
+
t(Te)
|
|
414
413
|
], 512), [
|
|
415
|
-
[
|
|
414
|
+
[A, e(Z)]
|
|
416
415
|
])
|
|
417
416
|
])) : f("", !0)
|
|
418
417
|
])
|
|
@@ -422,7 +421,7 @@ const Ne = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
422
421
|
}, 8, ["access-token", "data-layout", "callback"])
|
|
423
422
|
]),
|
|
424
423
|
fallback: C(() => [
|
|
425
|
-
t(
|
|
424
|
+
t(ze)
|
|
426
425
|
]),
|
|
427
426
|
_: 1
|
|
428
427
|
}))
|
|
@@ -430,7 +429,7 @@ const Ne = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
430
429
|
_: 1
|
|
431
430
|
}, 8, ["styling"]));
|
|
432
431
|
}
|
|
433
|
-
}), K = /* @__PURE__ */ x(vl, [["__scopeId", "data-v-278e1031"]]), bl =
|
|
432
|
+
}), K = /* @__PURE__ */ x(vl, [["__scopeId", "data-v-278e1031"]]), bl = pe(), hl = be();
|
|
434
433
|
class _l extends HTMLElement {
|
|
435
434
|
vueApp;
|
|
436
435
|
constructor() {
|
|
@@ -440,8 +439,8 @@ class _l extends HTMLElement {
|
|
|
440
439
|
this.vueApp.unmount();
|
|
441
440
|
}
|
|
442
441
|
connectedCallback() {
|
|
443
|
-
const r =
|
|
444
|
-
this.vueApp =
|
|
442
|
+
const r = me(K, this.attributes);
|
|
443
|
+
this.vueApp = fe(K, r), this.vueApp.provide("emitter", hl), this.vueApp.use(bl), this.vueApp.use(ve), this.vueApp.use(Fe), this.vueApp.use($e, { bootstrap: !0 });
|
|
445
444
|
const m = document.createElement("div");
|
|
446
445
|
this.vueApp.mount(m), this.appendChild(m.children[0]);
|
|
447
446
|
}
|
package/dist/gift-card.js.br
CHANGED
|
Binary file
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const { pay: E } = H(), { display: G } = J(), { bearerToken: w, metaData: P, currencyId: D, hasError: T } = X(M()), b = M(), o = t(s.InitialState), u = h("konnectio_name", "", void 0, { serializer: y.string }), v = h("konnectio_email", "", void 0, { serializer: y.string }), d = h("konnectio_phone", "", void 0, { serializer: y.string }), p = t(""), k = t(1), F = t(!0), C = t(""), l = t({
|
|
1
|
+
import { r as V, a as H, d as A, G as s, t as h, S as y, v as M, o as O, w as J } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BR0ZkskY.js";
|
|
2
|
+
import { K as Q, x as X, r as t, c as a, L as S } from "./mitt-B_elXQ2J.js";
|
|
3
|
+
const ee = Q("giftCard", () => {
|
|
4
|
+
const { pay: E } = V(), { display: G } = H(), { bearerToken: w, metaData: P, currencyId: D, hasError: T } = X(A()), b = A(), o = t(s.InitialState), u = h("konnectio_name", "", void 0, { serializer: y.string }), v = h("konnectio_email", "", void 0, { serializer: y.string }), d = h("konnectio_phone", "", void 0, { serializer: y.string }), p = t(""), k = t(1), F = t(!0), C = t(""), l = t({
|
|
6
5
|
base64: "",
|
|
7
6
|
type: "",
|
|
8
7
|
name: ""
|
|
9
|
-
}), R = t(void 0), f = t(0), c = t(!1),
|
|
8
|
+
}), R = t(void 0), f = t(0), c = t(!1), g = t(0), z = a(() => b.hasMetadata ? b.metaData.hotels[0] : {}), L = a(() => z.value.termsOfService ? z.value.termsOfService : ""), U = a(() => o.value === s.InitialState || o.value === s.WaitingForResponse), W = a(() => o.value === s.ReadyToPay), _ = a(() => o.value === s.PaymentSuccess), m = a(() => {
|
|
10
9
|
const e = {
|
|
11
10
|
1: {
|
|
12
11
|
label: S.t("giftCard.hotelType"),
|
|
@@ -22,23 +21,23 @@ const ae = Q("giftCard", () => {
|
|
|
22
21
|
}), Object.fromEntries(
|
|
23
22
|
Object.entries(e).filter(([, n]) => n.data.length > 0)
|
|
24
23
|
);
|
|
25
|
-
}), I = a(() =>
|
|
24
|
+
}), I = a(() => g.value !== 0), i = a(() => {
|
|
26
25
|
let e;
|
|
27
26
|
if (I.value)
|
|
28
|
-
e =
|
|
27
|
+
e = m.value[g.value].data[0];
|
|
29
28
|
else if (f.value !== 0) {
|
|
30
|
-
const r = R.value, n =
|
|
31
|
-
n.length === 1 ? e = n[0] : r !== void 0 && n.forEach((
|
|
32
|
-
String(
|
|
29
|
+
const r = R.value, n = m.value[f.value].data;
|
|
30
|
+
n.length === 1 ? e = n[0] : r !== void 0 && n.forEach((x) => {
|
|
31
|
+
String(x.id) === String(r) && (e = x);
|
|
33
32
|
});
|
|
34
33
|
}
|
|
35
34
|
return e;
|
|
36
|
-
}),
|
|
35
|
+
}), j = a(() => !(!u.value || !v.value || !(d.value.length >= 5) || !p.value || i.value === void 0)), q = a(() => !(o.value === s.InitialState && c.value)), N = a(() => !!(o.value === s.WaitingForResponse && c.value));
|
|
37
36
|
async function $() {
|
|
38
37
|
try {
|
|
39
|
-
const e = (await
|
|
38
|
+
const e = (await M.get("https://production.hotel-service.konnectio.com/api/gift-card/metadata", {
|
|
40
39
|
params: {
|
|
41
|
-
language:
|
|
40
|
+
language: O()
|
|
42
41
|
},
|
|
43
42
|
headers: {
|
|
44
43
|
Authorization: w.value,
|
|
@@ -54,11 +53,11 @@ const ae = Q("giftCard", () => {
|
|
|
54
53
|
}
|
|
55
54
|
}
|
|
56
55
|
async function B() {
|
|
57
|
-
o.value = s.WaitingForResponse, c.value = !0, await
|
|
56
|
+
o.value = s.WaitingForResponse, c.value = !0, await M.post("https://production.hotel-service.konnectio.com/api/gift-card/create", {
|
|
58
57
|
termsOfserviceURL: window.location.origin,
|
|
59
58
|
checkoutUrl: window.location.origin,
|
|
60
59
|
currencyID: D.value,
|
|
61
|
-
language:
|
|
60
|
+
language: O(),
|
|
62
61
|
amount: p.value,
|
|
63
62
|
quantity: k.value,
|
|
64
63
|
freeText: C.value,
|
|
@@ -66,7 +65,7 @@ const ae = Q("giftCard", () => {
|
|
|
66
65
|
contactName: u.value,
|
|
67
66
|
contactEmail: v.value,
|
|
68
67
|
contactPhone: d.value,
|
|
69
|
-
imageBase64:
|
|
68
|
+
imageBase64: J(l.value.base64),
|
|
70
69
|
imageName: l.value.name,
|
|
71
70
|
imageFormat: l.value.type,
|
|
72
71
|
placeType: i.value ? i.value.placeType : void 0,
|
|
@@ -83,8 +82,8 @@ const ae = Q("giftCard", () => {
|
|
|
83
82
|
});
|
|
84
83
|
});
|
|
85
84
|
}
|
|
86
|
-
function
|
|
87
|
-
e && (
|
|
85
|
+
function K(e) {
|
|
86
|
+
e && (g.value = e);
|
|
88
87
|
}
|
|
89
88
|
return {
|
|
90
89
|
selectedPlace: i,
|
|
@@ -99,21 +98,21 @@ const ae = Q("giftCard", () => {
|
|
|
99
98
|
media: l,
|
|
100
99
|
placeId: R,
|
|
101
100
|
placeType: f,
|
|
102
|
-
showFormPage:
|
|
103
|
-
showPaymentPage:
|
|
104
|
-
showConfirmationPage:
|
|
105
|
-
places:
|
|
106
|
-
hasFilledForm:
|
|
101
|
+
showFormPage: U,
|
|
102
|
+
showPaymentPage: W,
|
|
103
|
+
showConfirmationPage: _,
|
|
104
|
+
places: m,
|
|
105
|
+
hasFilledForm: j,
|
|
107
106
|
hasForcedPlaceType: I,
|
|
108
107
|
isWaitingForResponse: N,
|
|
109
108
|
isMetadataAvailable: q,
|
|
110
|
-
termsOfService:
|
|
109
|
+
termsOfService: L,
|
|
111
110
|
fetchMetadata: $,
|
|
112
111
|
orderGiftCard: B,
|
|
113
|
-
initialize:
|
|
112
|
+
initialize: K
|
|
114
113
|
};
|
|
115
114
|
});
|
|
116
115
|
export {
|
|
117
|
-
|
|
116
|
+
ee as u
|
|
118
117
|
};
|
|
119
|
-
//# sourceMappingURL=giftCard-
|
|
118
|
+
//# sourceMappingURL=giftCard-C-lmDpUB.js.map
|
|
Binary file
|