@konnectio/core 4.0.56-rc48 → 4.0.56-rc49
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-BmdEaU7R.js → ActionField-B9sCmWFD.js} +11 -11
- package/dist/ActionField-B9sCmWFD.js.br +0 -0
- package/dist/{AvailabilitySkeleton-D-WEI9Yg.js → AvailabilitySkeleton-sGz2nSbb.js} +35 -35
- package/dist/AvailabilitySkeleton-sGz2nSbb.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DT5BjPBT.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CPIlC8FY.js} +4 -4
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CPIlC8FY.js.br +0 -0
- package/dist/{CheckoutWindow-DdkwNLy3.js → CheckoutWindow-CrzoIK1a.js} +14 -14
- package/dist/CheckoutWindow-CrzoIK1a.js.br +0 -0
- package/dist/{ErrorMessage-Cyrsqt8X.js → ErrorMessage-SZPwCpu-.js} +4 -4
- package/dist/ErrorMessage-SZPwCpu-.js.br +0 -0
- package/dist/{EventAvailabilityForm-BBVSXf1v.js → EventAvailabilityForm-DFuang-b.js} +27 -27
- package/dist/EventAvailabilityForm-DFuang-b.js.br +0 -0
- package/dist/{Field-cLYq6dB7.js → Field-CLXqVSAA.js} +12 -12
- package/dist/Field-CLXqVSAA.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DdW6bv1b.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CHFFlMbv.js} +2151 -2132
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CHFFlMbv.js.br +0 -0
- package/dist/{TermsOfService-CmEZmmhy.js → TermsOfService-DBwm3BP2.js} +7 -7
- package/dist/TermsOfService-DBwm3BP2.js.br +0 -0
- package/dist/_-BOjhcjBA.js +12 -0
- package/dist/{_.vue_vue_type_style_index_0_lang-CYFSipoN.js → _.vue_vue_type_style_index_0_lang-BNx_Z1PF.js} +11 -11
- package/dist/_.vue_vue_type_style_index_0_lang-BNx_Z1PF.js.br +0 -0
- package/dist/availability.js +40 -41
- package/dist/availability.js.br +0 -0
- package/dist/event.js +113 -113
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +26 -27
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +127 -127
- package/dist/gift-card.js.br +0 -0
- package/dist/{giftCard-B9vV1-Jc.js → giftCard-hEwcI_Rx.js} +11 -11
- package/dist/giftCard-hEwcI_Rx.js.br +0 -0
- package/dist/hotel.js +620 -618
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-CpLUlFxC.js → masonry.plugin-C474cwA-.js} +1026 -1009
- package/dist/masonry.plugin-C474cwA-.js.br +0 -0
- package/dist/navigation.js +2 -2
- package/dist/polyfill.js +800 -800
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/dist/tracing-pAUg9FFo.js +11818 -0
- package/dist/tracing-pAUg9FFo.js.br +0 -0
- package/package.json +1 -1
- package/dist/ActionField-BmdEaU7R.js.br +0 -0
- package/dist/AvailabilitySkeleton-D-WEI9Yg.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DT5BjPBT.js.br +0 -0
- package/dist/CheckoutWindow-DdkwNLy3.js.br +0 -0
- package/dist/ErrorMessage-Cyrsqt8X.js.br +0 -0
- package/dist/EventAvailabilityForm-BBVSXf1v.js.br +0 -0
- package/dist/Field-cLYq6dB7.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DdW6bv1b.js.br +0 -0
- package/dist/TermsOfService-CmEZmmhy.js.br +0 -0
- package/dist/_-BIlhnQ1K.js +0 -12
- package/dist/_.vue_vue_type_style_index_0_lang-CYFSipoN.js.br +0 -0
- package/dist/_commonjsHelpers-ytV6SVHa.js +0 -9541
- package/dist/_commonjsHelpers-ytV6SVHa.js.br +0 -0
- package/dist/giftCard-B9vV1-Jc.js.br +0 -0
- package/dist/masonry.plugin-CpLUlFxC.js.br +0 -0
- package/dist/sentry-D1A53_C5.js +0 -18
- package/dist/tracing-wxeFiHIa.js +0 -2287
- package/dist/tracing-wxeFiHIa.js.br +0 -0
package/dist/gift-card.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { h as B, a as pe, C as
|
|
3
|
-
import { u as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { C as
|
|
6
|
-
import { F as A } from "./Field-
|
|
7
|
-
import { E as
|
|
8
|
-
import { S as Ie } from "./TermsOfService-
|
|
1
|
+
import { d as I, r as K, c as Z, o as s, b as w, w as F, g as t, a as v, f as o, u as e, e as g, n as Y, t as G, i as ae, q as oe, h as ne, S as ie, y as T, z as L, F as se, A as re, x as k, p as de, j as ue, k as ce } from "./tracing-pAUg9FFo.js";
|
|
2
|
+
import { h as B, a as pe, C as S, I as me, E as fe, _ as z, F as be, s as O, b as ve, k as he, L as _e, T as q, l as ge, n as ye, o as ke, p as Ce, q as Ve, H as we, t as Fe } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CHFFlMbv.js";
|
|
3
|
+
import { u as D } from "./giftCard-hEwcI_Rx.js";
|
|
4
|
+
import { _ as $e } from "./_.vue_vue_type_style_index_0_lang-BNx_Z1PF.js";
|
|
5
|
+
import { C as Ee, a as Pe, P as Ue, _ as Ae } from "./CheckoutWindow-CrzoIK1a.js";
|
|
6
|
+
import { F as A } from "./Field-CLXqVSAA.js";
|
|
7
|
+
import { E as Se } from "./ErrorMessage-SZPwCpu-.js";
|
|
8
|
+
import { S as Ie } from "./TermsOfService-DBwm3BP2.js";
|
|
9
9
|
import "./navigation.js";
|
|
10
10
|
(function() {
|
|
11
11
|
try {
|
|
12
12
|
var d = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, n = new Error().stack;
|
|
13
|
-
n && (d._sentryDebugIds = d._sentryDebugIds || {}, d._sentryDebugIds[n] = "
|
|
13
|
+
n && (d._sentryDebugIds = d._sentryDebugIds || {}, d._sentryDebugIds[n] = "85e8594d-e0ab-49f2-998a-5466aed911cd", d._sentryDebugIdIdentifier = "sentry-dbid-85e8594d-e0ab-49f2-998a-5466aed911cd");
|
|
14
14
|
} catch {
|
|
15
15
|
}
|
|
16
16
|
})();
|
|
17
|
-
const
|
|
17
|
+
const Te = { class: "media-selector" }, Le = ["accept"], qe = { class: "media-selector-wrapper" }, Me = { class: "media-selector-tools" }, Ge = { key: 0 }, Be = { key: 1 }, Re = { key: 2 }, xe = ["src"], De = /* @__PURE__ */ I({
|
|
18
18
|
__name: "MediaSelector",
|
|
19
19
|
props: {
|
|
20
20
|
modelValue: {},
|
|
@@ -25,11 +25,11 @@ const Se = { class: "media-selector" }, Te = ["accept"], Le = { class: "media-se
|
|
|
25
25
|
},
|
|
26
26
|
emits: ["update:modelValue"],
|
|
27
27
|
setup(d, { emit: n }) {
|
|
28
|
-
const m = n,
|
|
28
|
+
const m = n, l = d, { t: c } = B(), { display: h } = pe(), p = K(), _ = Z(() => l.modelValue.base64 !== "");
|
|
29
29
|
function u(a) {
|
|
30
30
|
m("update:modelValue", a);
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function y() {
|
|
33
33
|
u({
|
|
34
34
|
base64: "",
|
|
35
35
|
name: "",
|
|
@@ -39,12 +39,12 @@ const Se = { class: "media-selector" }, Te = ["accept"], Le = { class: "media-se
|
|
|
39
39
|
function b() {
|
|
40
40
|
p.value && p.value.click();
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function H(a, f) {
|
|
43
43
|
const [V, R] = [a.name, a.type], C = new FileReader();
|
|
44
44
|
C.onload = function(U) {
|
|
45
45
|
if (U.target) {
|
|
46
|
-
const
|
|
47
|
-
f({ base64:
|
|
46
|
+
const x = U.target.result;
|
|
47
|
+
f({ base64: x, name: V, type: R });
|
|
48
48
|
} else
|
|
49
49
|
h({
|
|
50
50
|
message: c("imageUploadError"),
|
|
@@ -54,7 +54,7 @@ const Se = { class: "media-selector" }, Te = ["accept"], Le = { class: "media-se
|
|
|
54
54
|
}
|
|
55
55
|
async function $() {
|
|
56
56
|
let a;
|
|
57
|
-
(a = p.value.files) instanceof FileList &&
|
|
57
|
+
(a = p.value.files) instanceof FileList && H(a[0], u);
|
|
58
58
|
}
|
|
59
59
|
return (a, f) => (s(), w(me, {
|
|
60
60
|
label: a.label,
|
|
@@ -62,8 +62,8 @@ const Se = { class: "media-selector" }, Te = ["accept"], Le = { class: "media-se
|
|
|
62
62
|
type: "media"
|
|
63
63
|
}, {
|
|
64
64
|
default: F(() => [
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
t("div", Te, [
|
|
66
|
+
t("input", {
|
|
67
67
|
ref_key: "fileInput",
|
|
68
68
|
ref: p,
|
|
69
69
|
type: "file",
|
|
@@ -71,11 +71,11 @@ const Se = { class: "media-selector" }, Te = ["accept"], Le = { class: "media-se
|
|
|
71
71
|
accept: a.validation,
|
|
72
72
|
single: "",
|
|
73
73
|
onChange: f[0] || (f[0] = (V) => $())
|
|
74
|
-
}, null, 40,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
_.value ? g("", !0) : (s(), v("li",
|
|
78
|
-
o(
|
|
74
|
+
}, null, 40, Le),
|
|
75
|
+
t("div", qe, [
|
|
76
|
+
t("ul", Me, [
|
|
77
|
+
_.value ? g("", !0) : (s(), v("li", Ge, [
|
|
78
|
+
o(S, {
|
|
79
79
|
label: e(c)("uploadFile"),
|
|
80
80
|
type: "button",
|
|
81
81
|
icon: "upload",
|
|
@@ -83,8 +83,8 @@ const Se = { class: "media-selector" }, Te = ["accept"], Le = { class: "media-se
|
|
|
83
83
|
onClickEvent: f[1] || (f[1] = (V) => b())
|
|
84
84
|
}, null, 8, ["label", "icon-color"])
|
|
85
85
|
])),
|
|
86
|
-
_.value ? (s(), v("li",
|
|
87
|
-
o(
|
|
86
|
+
_.value ? (s(), v("li", Be, [
|
|
87
|
+
o(S, {
|
|
88
88
|
label: e(c)("replaceFile"),
|
|
89
89
|
type: "button",
|
|
90
90
|
icon: "repeat-alt",
|
|
@@ -92,17 +92,17 @@ const Se = { class: "media-selector" }, Te = ["accept"], Le = { class: "media-se
|
|
|
92
92
|
onClickEvent: f[2] || (f[2] = (V) => b())
|
|
93
93
|
}, null, 8, ["label", "icon-color"])
|
|
94
94
|
])) : g("", !0),
|
|
95
|
-
_.value ? (s(), v("li",
|
|
96
|
-
o(
|
|
95
|
+
_.value ? (s(), v("li", Re, [
|
|
96
|
+
o(S, {
|
|
97
97
|
label: e(c)("removeFile"),
|
|
98
98
|
type: "button",
|
|
99
99
|
icon: "trash-alt",
|
|
100
100
|
"icon-color": a.iconColor,
|
|
101
|
-
onClickEvent: f[3] || (f[3] = (V) =>
|
|
101
|
+
onClickEvent: f[3] || (f[3] = (V) => y())
|
|
102
102
|
}, null, 8, ["label", "icon-color"])
|
|
103
103
|
])) : g("", !0)
|
|
104
104
|
]),
|
|
105
|
-
|
|
105
|
+
t("div", {
|
|
106
106
|
class: Y([
|
|
107
107
|
"media-selector-previewer",
|
|
108
108
|
{ opened: _.value }
|
|
@@ -111,7 +111,7 @@ const Se = { class: "media-selector" }, Te = ["accept"], Le = { class: "media-se
|
|
|
111
111
|
a.modelValue ? (s(), v("img", {
|
|
112
112
|
key: 0,
|
|
113
113
|
src: a.modelValue.base64
|
|
114
|
-
}, null, 8,
|
|
114
|
+
}, null, 8, xe)) : g("", !0)
|
|
115
115
|
], 2)
|
|
116
116
|
])
|
|
117
117
|
])
|
|
@@ -141,11 +141,11 @@ function W(d) {
|
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
143
|
typeof W == "function" && W(De);
|
|
144
|
-
const
|
|
144
|
+
const ze = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-form" }, je = /* @__PURE__ */ I({
|
|
145
145
|
__name: "GiftCardSkeleton",
|
|
146
146
|
setup(d) {
|
|
147
|
-
return (n, m) => (s(), v("div",
|
|
148
|
-
|
|
147
|
+
return (n, m) => (s(), v("div", ze, [
|
|
148
|
+
t("div", He, [
|
|
149
149
|
o(A),
|
|
150
150
|
o(A),
|
|
151
151
|
o(A),
|
|
@@ -155,7 +155,7 @@ const xe = { class: "gift-card-skeleton" }, ze = { class: "gift-card-skeleton-fo
|
|
|
155
155
|
])
|
|
156
156
|
]));
|
|
157
157
|
}
|
|
158
|
-
}),
|
|
158
|
+
}), Ne = /* @__PURE__ */ z(je, [["__scopeId", "data-v-ba3efaa1"]]), Oe = { class: "konnectio-accept-terms" }, We = /* @__PURE__ */ I({
|
|
159
159
|
__name: "_",
|
|
160
160
|
props: {
|
|
161
161
|
content: {},
|
|
@@ -163,22 +163,22 @@ const xe = { class: "gift-card-skeleton" }, ze = { class: "gift-card-skeleton-fo
|
|
|
163
163
|
},
|
|
164
164
|
setup(d) {
|
|
165
165
|
const { t: n } = B(), m = K(!1);
|
|
166
|
-
return (
|
|
166
|
+
return (l, c) => (s(), v("div", Oe, [
|
|
167
167
|
o(e(be), {
|
|
168
168
|
keypath: "general.termsAndConditionsNotice",
|
|
169
169
|
tag: "span",
|
|
170
170
|
scope: "global"
|
|
171
171
|
}, {
|
|
172
172
|
button: F(() => [
|
|
173
|
-
|
|
173
|
+
t("i", null, '"' + G(l.buttonLabel) + '"', 1)
|
|
174
174
|
]),
|
|
175
175
|
terms: F(() => [
|
|
176
|
-
|
|
176
|
+
t("a", {
|
|
177
177
|
class: "konnectio-accept-terms-link",
|
|
178
178
|
target: "_blank",
|
|
179
179
|
onClick: c[0] || (c[0] = ae((h) => m.value = !0, ["prevent"]))
|
|
180
180
|
}, [
|
|
181
|
-
|
|
181
|
+
t("span", null, G(e(n)("general.termsAndConditions")), 1)
|
|
182
182
|
])
|
|
183
183
|
]),
|
|
184
184
|
_: 1
|
|
@@ -186,34 +186,34 @@ const xe = { class: "gift-card-skeleton" }, ze = { class: "gift-card-skeleton-fo
|
|
|
186
186
|
o(Ie, {
|
|
187
187
|
modelValue: m.value,
|
|
188
188
|
"onUpdate:modelValue": c[1] || (c[1] = (h) => m.value = h),
|
|
189
|
-
description:
|
|
189
|
+
description: l.content
|
|
190
190
|
}, null, 8, ["modelValue", "description"])
|
|
191
191
|
]));
|
|
192
192
|
}
|
|
193
|
-
}),
|
|
193
|
+
}), Ke = /* @__PURE__ */ z(We, [["__scopeId", "data-v-f587c956"]]), Ze = /* @__PURE__ */ I({
|
|
194
194
|
__name: "GiftCard",
|
|
195
195
|
setup(d) {
|
|
196
|
-
const { t: n } = B(), m =
|
|
197
|
-
return (
|
|
196
|
+
const { t: n } = B(), m = D();
|
|
197
|
+
return (l, c) => (s(), w(Ke, {
|
|
198
198
|
content: e(m).termsOfService,
|
|
199
199
|
"button-label": e(n)("giftCard.orderGiftCard")
|
|
200
200
|
}, null, 8, ["content", "button-label"]));
|
|
201
201
|
}
|
|
202
|
-
}),
|
|
202
|
+
}), Ye = (d) => (de("data-v-06df89c3"), d = d(), ue(), d), Je = ["data-layout"], Qe = { id: "konnectio-gift-card-wrapper" }, Xe = { id: "konnectio-gift-card-title" }, et = { id: "konnectio-gift-card-content" }, tt = { id: "konnectio-gift-card-payment" }, lt = ["innerHTML"], at = { key: 0 }, ot = {
|
|
203
203
|
key: 0,
|
|
204
204
|
id: "konnectio-select-place-type"
|
|
205
|
-
},
|
|
205
|
+
}, nt = {
|
|
206
206
|
class: /* @__PURE__ */ Y(["konnectio-label", "required"])
|
|
207
|
-
},
|
|
207
|
+
}, it = { id: "konnectio-select-place-type-input" }, st = ["innerHTML"], rt = {
|
|
208
208
|
key: 0,
|
|
209
209
|
id: "konnectio-gift-card-order"
|
|
210
|
-
},
|
|
210
|
+
}, dt = { class: "konnectio-panel" }, ut = {
|
|
211
211
|
key: 1,
|
|
212
212
|
id: "konnectio-gift-card-remarks"
|
|
213
|
-
},
|
|
213
|
+
}, ct = {
|
|
214
214
|
key: 2,
|
|
215
215
|
id: "konnectio-gift-card-order-minimal"
|
|
216
|
-
},
|
|
216
|
+
}, pt = /* @__PURE__ */ Ye(() => /* @__PURE__ */ t("div", { class: "konnectio-divider" }, null, -1)), mt = { id: "konnectio-gift-card-recaptcha" }, ft = /* @__PURE__ */ I({
|
|
217
217
|
name: "GiftCardLayout",
|
|
218
218
|
__name: "GiftCard",
|
|
219
219
|
props: {
|
|
@@ -226,15 +226,15 @@ const xe = { class: "gift-card-skeleton" }, ze = { class: "gift-card-skeleton-fo
|
|
|
226
226
|
const n = d, m = Z(() => ({
|
|
227
227
|
panelMaxWidth: "800px",
|
|
228
228
|
...n.styling
|
|
229
|
-
})), { t } = B(), {
|
|
229
|
+
})), { t: l } = B(), {
|
|
230
230
|
name: c,
|
|
231
231
|
email: h,
|
|
232
232
|
phone: p,
|
|
233
233
|
value: _,
|
|
234
234
|
remark: u,
|
|
235
|
-
showValue:
|
|
235
|
+
showValue: y,
|
|
236
236
|
quantity: b,
|
|
237
|
-
media:
|
|
237
|
+
media: H,
|
|
238
238
|
placeId: $,
|
|
239
239
|
placeType: a,
|
|
240
240
|
showFormPage: f,
|
|
@@ -242,25 +242,25 @@ const xe = { class: "gift-card-skeleton" }, ze = { class: "gift-card-skeleton-fo
|
|
|
242
242
|
showConfirmationPage: R,
|
|
243
243
|
places: C,
|
|
244
244
|
hasFilledForm: U,
|
|
245
|
-
hasForcedPlaceType:
|
|
245
|
+
hasForcedPlaceType: x,
|
|
246
246
|
isWaitingForResponse: E
|
|
247
|
-
} = O(
|
|
247
|
+
} = O(D()), { initialize: J, orderGiftCard: j, fetchMetadata: Q } = D(), { isRecaptchaEnabled: X, currency: ee, hasError: te } = O(ve());
|
|
248
248
|
return oe(a, () => {
|
|
249
249
|
$.value = void 0;
|
|
250
250
|
}), ne(() => {
|
|
251
251
|
const P = n.placeType ? parseInt(n.placeType) : void 0;
|
|
252
252
|
J(P);
|
|
253
|
-
}), (P, r) => (s(), w(
|
|
253
|
+
}), (P, r) => (s(), w(ye, { styling: m.value }, {
|
|
254
254
|
default: F(() => [
|
|
255
255
|
(s(), w(ie, null, {
|
|
256
256
|
default: F(() => [
|
|
257
|
-
o(
|
|
257
|
+
o($e, {
|
|
258
258
|
"access-token": P.accessToken,
|
|
259
259
|
"data-layout": P.layout,
|
|
260
260
|
callback: e(Q)
|
|
261
261
|
}, {
|
|
262
262
|
default: F(() => [
|
|
263
|
-
e(
|
|
263
|
+
e(te) ? (s(), w(Se, {
|
|
264
264
|
key: 1,
|
|
265
265
|
title: "Unable to render Gift card module",
|
|
266
266
|
description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
|
|
@@ -269,33 +269,33 @@ const xe = { class: "gift-card-skeleton" }, ze = { class: "gift-card-skeleton-fo
|
|
|
269
269
|
id: "konnectio-gift-card-module",
|
|
270
270
|
"data-layout": P.layout
|
|
271
271
|
}, [
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
272
|
+
t("div", Qe, [
|
|
273
|
+
t("h2", Xe, [
|
|
274
|
+
t("span", null, G(e(l)("giftCard.title")), 1)
|
|
275
275
|
]),
|
|
276
|
-
|
|
277
|
-
T(
|
|
278
|
-
o(
|
|
276
|
+
t("div", et, [
|
|
277
|
+
T(t("div", tt, [
|
|
278
|
+
o(Ee)
|
|
279
279
|
], 512), [
|
|
280
280
|
[L, e(V)]
|
|
281
281
|
]),
|
|
282
|
-
T(
|
|
283
|
-
|
|
282
|
+
T(t("div", null, [
|
|
283
|
+
t("p", {
|
|
284
284
|
id: "konnectio-gift-card-description",
|
|
285
|
-
innerHTML: e(
|
|
286
|
-
}, null, 8,
|
|
287
|
-
|
|
288
|
-
e(
|
|
289
|
-
e(C) ? (s(), v("div",
|
|
290
|
-
|
|
291
|
-
|
|
285
|
+
innerHTML: e(l)("giftCard.description")
|
|
286
|
+
}, null, 8, lt),
|
|
287
|
+
t("form", null, [
|
|
288
|
+
e(x) ? g("", !0) : (s(), v("div", at, [
|
|
289
|
+
e(C) ? (s(), v("div", ot, [
|
|
290
|
+
t("label", nt, [
|
|
291
|
+
t("span", null, G(e(l)("giftCard.selectType")), 1)
|
|
292
292
|
]),
|
|
293
|
-
|
|
294
|
-
|
|
293
|
+
t("div", it, [
|
|
294
|
+
t("ul", null, [
|
|
295
295
|
(s(!0), v(se, null, re(e(C), (i, N) => (s(), v("li", { key: N }, [
|
|
296
|
-
o(
|
|
296
|
+
o(Pe, {
|
|
297
297
|
modelValue: e(a),
|
|
298
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
298
|
+
"onUpdate:modelValue": r[0] || (r[0] = (le) => k(a) ? a.value = le : null),
|
|
299
299
|
type: "radio",
|
|
300
300
|
name: "placeType",
|
|
301
301
|
val: N,
|
|
@@ -306,8 +306,8 @@ const xe = { class: "gift-card-skeleton" }, ze = { class: "gift-card-skeleton-fo
|
|
|
306
306
|
e(C)[e(a)] && e(C)[e(a)].data.length > 1 ? (s(), w(he, {
|
|
307
307
|
key: 0,
|
|
308
308
|
modelValue: e($),
|
|
309
|
-
"onUpdate:modelValue": r[1] || (r[1] = (i) =>
|
|
310
|
-
placeholder: e(
|
|
309
|
+
"onUpdate:modelValue": r[1] || (r[1] = (i) => k($) ? $.value = i : null),
|
|
310
|
+
placeholder: e(l)("giftCard.selectPlacePlaceholder"),
|
|
311
311
|
options: e(C)[e(a)].data,
|
|
312
312
|
labelKey: "name",
|
|
313
313
|
valueKey: "id",
|
|
@@ -318,42 +318,42 @@ const xe = { class: "gift-card-skeleton" }, ze = { class: "gift-card-skeleton-fo
|
|
|
318
318
|
])),
|
|
319
319
|
o(q, {
|
|
320
320
|
modelValue: e(c),
|
|
321
|
-
"onUpdate:modelValue": r[2] || (r[2] = (i) =>
|
|
321
|
+
"onUpdate:modelValue": r[2] || (r[2] = (i) => k(c) ? c.value = i : null),
|
|
322
322
|
type: "text",
|
|
323
323
|
name: "name",
|
|
324
324
|
autocomplete: "name",
|
|
325
|
-
label: e(
|
|
325
|
+
label: e(l)("giftCard.name"),
|
|
326
326
|
icon: "user-alt",
|
|
327
|
-
placeholder: e(
|
|
327
|
+
placeholder: e(l)("giftCard.namePlaceholder"),
|
|
328
328
|
required: ""
|
|
329
329
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
330
330
|
o(q, {
|
|
331
331
|
modelValue: e(h),
|
|
332
|
-
"onUpdate:modelValue": r[3] || (r[3] = (i) =>
|
|
332
|
+
"onUpdate:modelValue": r[3] || (r[3] = (i) => k(h) ? h.value = i : null),
|
|
333
333
|
type: "email",
|
|
334
334
|
name: "email",
|
|
335
335
|
autocomplete: "email",
|
|
336
|
-
label: e(
|
|
336
|
+
label: e(l)("giftCard.email"),
|
|
337
337
|
icon: "at",
|
|
338
|
-
placeholder: e(
|
|
338
|
+
placeholder: e(l)("giftCard.emailPlaceholder"),
|
|
339
339
|
required: ""
|
|
340
340
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
341
|
-
o(
|
|
341
|
+
o(Ue, {
|
|
342
342
|
modelValue: e(p),
|
|
343
|
-
"onUpdate:modelValue": r[4] || (r[4] = (i) =>
|
|
343
|
+
"onUpdate:modelValue": r[4] || (r[4] = (i) => k(p) ? p.value = i : null),
|
|
344
344
|
icon: "phone-office",
|
|
345
|
-
label: e(
|
|
346
|
-
placeholder: e(
|
|
345
|
+
label: e(l)("giftCard.phone"),
|
|
346
|
+
placeholder: e(l)("giftCard.phonePlaceholder"),
|
|
347
347
|
required: ""
|
|
348
348
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
349
349
|
o(q, {
|
|
350
350
|
modelValue: e(_),
|
|
351
|
-
"onUpdate:modelValue": r[5] || (r[5] = (i) =>
|
|
351
|
+
"onUpdate:modelValue": r[5] || (r[5] = (i) => k(_) ? _.value = i : null),
|
|
352
352
|
type: "number",
|
|
353
353
|
name: "value",
|
|
354
|
-
label: e(
|
|
354
|
+
label: e(l)("giftCard.value"),
|
|
355
355
|
icon: "money-bill",
|
|
356
|
-
placeholder: e(
|
|
356
|
+
placeholder: e(l)("giftCard.valuePlaceholder"),
|
|
357
357
|
suffix: e(ee),
|
|
358
358
|
required: ""
|
|
359
359
|
}, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
|
|
@@ -361,8 +361,8 @@ const xe = { class: "gift-card-skeleton" }, ze = { class: "gift-card-skeleton-fo
|
|
|
361
361
|
g("", !0),
|
|
362
362
|
o(ge, {
|
|
363
363
|
modelValue: e(b),
|
|
364
|
-
"onUpdate:modelValue": r[8] || (r[8] = (i) =>
|
|
365
|
-
label: e(
|
|
364
|
+
"onUpdate:modelValue": r[8] || (r[8] = (i) => k(b) ? b.value = i : null),
|
|
365
|
+
label: e(l)("giftCard.quantity"),
|
|
366
366
|
icon: "gift-card",
|
|
367
367
|
required: ""
|
|
368
368
|
}, null, 8, ["modelValue", "label"])
|
|
@@ -370,65 +370,65 @@ const xe = { class: "gift-card-skeleton" }, ze = { class: "gift-card-skeleton-fo
|
|
|
370
370
|
], 512), [
|
|
371
371
|
[L, e(f)]
|
|
372
372
|
]),
|
|
373
|
-
T(
|
|
374
|
-
|
|
375
|
-
innerHTML: e(
|
|
376
|
-
}, null, 8,
|
|
373
|
+
T(t("div", null, [
|
|
374
|
+
t("div", {
|
|
375
|
+
innerHTML: e(l)("giftCard.thankYou")
|
|
376
|
+
}, null, 8, st)
|
|
377
377
|
], 512), [
|
|
378
378
|
[L, e(R)]
|
|
379
379
|
])
|
|
380
380
|
]),
|
|
381
|
-
P.layout !== "minimal" && e(f) ? (s(), v("div",
|
|
382
|
-
|
|
383
|
-
o(
|
|
384
|
-
label: e(
|
|
381
|
+
P.layout !== "minimal" && e(f) ? (s(), v("div", rt, [
|
|
382
|
+
t("div", dt, [
|
|
383
|
+
o(S, {
|
|
384
|
+
label: e(l)("giftCard.orderGiftCard"),
|
|
385
385
|
"full-width": !0,
|
|
386
386
|
disabled: !e(U),
|
|
387
387
|
"is-loading": e(E),
|
|
388
|
-
"onUpdate:isLoading": r[9] || (r[9] = (i) =>
|
|
389
|
-
onClickEvent: e(
|
|
388
|
+
"onUpdate:isLoading": r[9] || (r[9] = (i) => k(E) ? E.value = i : null),
|
|
389
|
+
onClickEvent: e(j)
|
|
390
390
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
|
|
391
391
|
])
|
|
392
392
|
])) : g("", !0),
|
|
393
|
-
e(f) ? (s(), v("div",
|
|
393
|
+
e(f) ? (s(), v("div", ut, [
|
|
394
394
|
o(q, {
|
|
395
395
|
modelValue: e(u),
|
|
396
|
-
"onUpdate:modelValue": r[10] || (r[10] = (i) =>
|
|
396
|
+
"onUpdate:modelValue": r[10] || (r[10] = (i) => k(u) ? u.value = i : null),
|
|
397
397
|
type: "textarea",
|
|
398
398
|
name: "remark",
|
|
399
|
-
label: e(
|
|
399
|
+
label: e(l)("giftCard.remark"),
|
|
400
400
|
icon: "info-circle",
|
|
401
|
-
placeholder: e(
|
|
401
|
+
placeholder: e(l)("giftCard.remarkPlaceholder")
|
|
402
402
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
403
403
|
])) : g("", !0),
|
|
404
|
-
e(f) ? (s(), v("div",
|
|
405
|
-
o(
|
|
406
|
-
label: e(
|
|
404
|
+
e(f) ? (s(), v("div", ct, [
|
|
405
|
+
o(S, {
|
|
406
|
+
label: e(l)("giftCard.orderGiftCard"),
|
|
407
407
|
"full-width": !0,
|
|
408
408
|
disabled: !e(U),
|
|
409
409
|
"data-test": "orderGiftCard",
|
|
410
410
|
"is-loading": e(E),
|
|
411
|
-
"onUpdate:isLoading": r[11] || (r[11] = (i) =>
|
|
412
|
-
onClickEvent: e(
|
|
411
|
+
"onUpdate:isLoading": r[11] || (r[11] = (i) => k(E) ? E.value = i : null),
|
|
412
|
+
onClickEvent: e(j)
|
|
413
413
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
o(
|
|
414
|
+
t("div", null, [
|
|
415
|
+
pt,
|
|
416
|
+
o(Ze)
|
|
417
417
|
]),
|
|
418
|
-
T(
|
|
419
|
-
o(
|
|
418
|
+
T(t("div", mt, [
|
|
419
|
+
o(Ae)
|
|
420
420
|
], 512), [
|
|
421
421
|
[L, e(X)]
|
|
422
422
|
])
|
|
423
423
|
])) : g("", !0)
|
|
424
424
|
])
|
|
425
|
-
], 8,
|
|
425
|
+
], 8, Je))
|
|
426
426
|
]),
|
|
427
427
|
_: 1
|
|
428
428
|
}, 8, ["access-token", "data-layout", "callback"])
|
|
429
429
|
]),
|
|
430
430
|
fallback: F(() => [
|
|
431
|
-
o(
|
|
431
|
+
o(Ne)
|
|
432
432
|
]),
|
|
433
433
|
_: 1
|
|
434
434
|
}))
|
|
@@ -436,8 +436,8 @@ const xe = { class: "gift-card-skeleton" }, ze = { class: "gift-card-skeleton-fo
|
|
|
436
436
|
_: 1
|
|
437
437
|
}, 8, ["styling"]));
|
|
438
438
|
}
|
|
439
|
-
}), M = /* @__PURE__ */ z(
|
|
440
|
-
class
|
|
439
|
+
}), M = /* @__PURE__ */ z(ft, [["__scopeId", "data-v-06df89c3"]]), bt = ke(), vt = Fe();
|
|
440
|
+
class ht extends HTMLElement {
|
|
441
441
|
vueApp;
|
|
442
442
|
constructor() {
|
|
443
443
|
super();
|
|
@@ -448,24 +448,24 @@ class vl extends HTMLElement {
|
|
|
448
448
|
connectedCallback() {
|
|
449
449
|
const n = typeof M == "function" ? M.options : M;
|
|
450
450
|
let m = Array.isArray(n.props) ? n.props : Object.keys(n.props || {});
|
|
451
|
-
const
|
|
452
|
-
m = m.map(
|
|
451
|
+
const l = (u) => u.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (y, b) => (b ? "-" : "") + y.toLowerCase()), c = (u) => u.replace(/-./g, (y) => y[1].toUpperCase()), h = {};
|
|
452
|
+
m = m.map(l);
|
|
453
453
|
const p = {};
|
|
454
454
|
for (const u of this.attributes) {
|
|
455
455
|
const b = u.name.split(".");
|
|
456
456
|
b.length > 1 && (p[b[0]] || (p[b[0]] = {}), p[b[0]][c(b[1])] = u.value);
|
|
457
457
|
}
|
|
458
458
|
for (const u of m) {
|
|
459
|
-
let
|
|
460
|
-
p.hasOwnProperty(u) && (
|
|
459
|
+
let y = this.attributes.getNamedItem(u)?.value;
|
|
460
|
+
p.hasOwnProperty(u) && (y = p[u]), h[u] = y;
|
|
461
461
|
}
|
|
462
|
-
this.vueApp = ce(M, h), this.vueApp.provide("emitter",
|
|
462
|
+
this.vueApp = ce(M, h), Ce(this.vueApp), this.vueApp.provide("emitter", vt), this.vueApp.use(bt), this.vueApp.use(Ve), this.vueApp.use(we, { bootstrap: !0 });
|
|
463
463
|
const _ = document.createElement("div");
|
|
464
464
|
this.vueApp.mount(_), this.appendChild(_.children[0]);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
|
-
window.customElements.define("konnectio-gift-card",
|
|
467
|
+
window.customElements.define("konnectio-gift-card", ht);
|
|
468
468
|
export {
|
|
469
|
-
|
|
469
|
+
ht as default
|
|
470
470
|
};
|
|
471
471
|
//# sourceMappingURL=gift-card.js.map
|
package/dist/gift-card.js.br
CHANGED
|
Binary file
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { d as K, u as H, a as J, s as Q, b as E, G as s, c as
|
|
2
|
-
import { r as t, c as a } from "./
|
|
1
|
+
import { d as K, u as H, a as J, s as Q, b as E, G as s, c as b, 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-CHFFlMbv.js";
|
|
2
|
+
import { r as t, c as a } from "./tracing-pAUg9FFo.js";
|
|
3
3
|
import "./navigation.js";
|
|
4
4
|
(function() {
|
|
5
5
|
try {
|
|
6
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] = "
|
|
7
|
+
c && (i._sentryDebugIds = i._sentryDebugIds || {}, i._sentryDebugIds[c] = "eafe5163-3cf3-4efd-8393-1a415e8d74c6", i._sentryDebugIdIdentifier = "sentry-dbid-eafe5163-3cf3-4efd-8393-1a415e8d74c6");
|
|
8
8
|
} catch {
|
|
9
9
|
}
|
|
10
10
|
})();
|
|
11
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 =
|
|
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 = b("konnectio_name", "", void 0, { serializer: k.string }), p = b("konnectio_email", "", void 0, { serializer: k.string }), g = b("konnectio_phone", "", void 0, { serializer: k.string }), m = t(""), F = t(1), C = t(!0), D = t(""), u = t({
|
|
13
13
|
base64: "",
|
|
14
14
|
type: "",
|
|
15
15
|
name: ""
|
|
16
|
-
}), R = t(void 0), h = t(0), d = t(!1), y = 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),
|
|
16
|
+
}), R = t(void 0), h = t(0), d = t(!1), y = 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), S = a(() => {
|
|
17
17
|
const e = {
|
|
18
18
|
1: {
|
|
19
19
|
label: w.t("giftCard.hotelType"),
|
|
@@ -32,9 +32,9 @@ const ae = K("giftCard", () => {
|
|
|
32
32
|
}), z = a(() => y.value !== 0), r = a(() => {
|
|
33
33
|
let e;
|
|
34
34
|
if (z.value)
|
|
35
|
-
e =
|
|
35
|
+
e = S.value[y.value].data[0];
|
|
36
36
|
else if (h.value !== 0) {
|
|
37
|
-
const l = R.value, n =
|
|
37
|
+
const l = R.value, n = S.value[h.value].data;
|
|
38
38
|
n.length === 1 ? e = n[0] : l !== void 0 && n.forEach((A) => {
|
|
39
39
|
String(A.id) === String(l) && (e = A);
|
|
40
40
|
});
|
|
@@ -50,7 +50,7 @@ const ae = K("giftCard", () => {
|
|
|
50
50
|
headers: {
|
|
51
51
|
Authorization: v.value,
|
|
52
52
|
Accept: "application/json",
|
|
53
|
-
"Konnectio-Ver": "4.0.56-
|
|
53
|
+
"Konnectio-Ver": "4.0.56-rc49"
|
|
54
54
|
}
|
|
55
55
|
})).data;
|
|
56
56
|
e.success !== void 0 ? I.value = !e.success : I.value = !1, P.value = e;
|
|
@@ -83,7 +83,7 @@ const ae = K("giftCard", () => {
|
|
|
83
83
|
headers: {
|
|
84
84
|
Authorization: v.value,
|
|
85
85
|
Accept: "application/json",
|
|
86
|
-
"Fresh-Booking-Ver": "4.0.56-
|
|
86
|
+
"Fresh-Booking-Ver": "4.0.56-rc49"
|
|
87
87
|
}
|
|
88
88
|
}).then((e) => {
|
|
89
89
|
o.value = s.ReadyToPay, d.value = !1, i({
|
|
@@ -111,7 +111,7 @@ const ae = K("giftCard", () => {
|
|
|
111
111
|
showFormPage: U,
|
|
112
112
|
showPaymentPage: W,
|
|
113
113
|
showConfirmationPage: j,
|
|
114
|
-
places:
|
|
114
|
+
places: S,
|
|
115
115
|
hasFilledForm: L,
|
|
116
116
|
hasForcedPlaceType: z,
|
|
117
117
|
isWaitingForResponse: q,
|
|
@@ -125,4 +125,4 @@ const ae = K("giftCard", () => {
|
|
|
125
125
|
export {
|
|
126
126
|
ae as u
|
|
127
127
|
};
|
|
128
|
-
//# sourceMappingURL=giftCard-
|
|
128
|
+
//# sourceMappingURL=giftCard-hEwcI_Rx.js.map
|
|
Binary file
|