@konnectio/core 4.0.61 → 4.0.63
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-BXj6PfYZ.js → ActionField-3MggPKk9.js} +4 -4
- package/dist/ActionField-3MggPKk9.js.br +0 -0
- package/dist/{AvailabilitySkeleton-BLnNIU9-.js → AvailabilitySkeleton-DSgC6hn3.js} +17 -17
- package/dist/AvailabilitySkeleton-DSgC6hn3.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CUMQhXcI.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CnYjbggZ.js} +2695 -2695
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CnYjbggZ.js.br +0 -0
- package/dist/{CheckoutWindow-DLuBkYGS.js → CheckoutWindow-DolJgk40.js} +7 -7
- package/dist/CheckoutWindow-DolJgk40.js.br +0 -0
- package/dist/{ErrorMessage-Cy1scjLu.js → ErrorMessage-BksKCxAq.js} +3 -3
- package/dist/ErrorMessage-BksKCxAq.js.br +0 -0
- package/dist/{EventAvailabilityForm-DPs8I6AR.js → EventAvailabilityForm-DZljldrC.js} +12 -12
- package/dist/EventAvailabilityForm-DZljldrC.js.br +0 -0
- package/dist/{Field-53ZoaiDU.js → Field-DGi_AnA6.js} +3 -3
- package/dist/Field-DGi_AnA6.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DigDTbcx.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B7IfVdWJ.js} +1299 -1293
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B7IfVdWJ.js.br +0 -0
- package/dist/TermsOfService-LDUTInOo.js +36 -0
- package/dist/TermsOfService-LDUTInOo.js.br +0 -0
- package/dist/{_-CBiS4A4B.js → _-CBEOFztf.js} +2 -2
- package/dist/{_.vue_vue_type_style_index_0_lang-CukAL2Kn.js → _.vue_vue_type_style_index_0_lang-DjuzMOwH.js} +9 -9
- package/dist/_.vue_vue_type_style_index_0_lang-DjuzMOwH.js.br +0 -0
- package/dist/_commonjsHelpers-DEK47QeC.js +2590 -0
- package/dist/_commonjsHelpers-DEK47QeC.js.br +0 -0
- package/dist/{_sentry-release-injection-file-CE-HFIuO.js → _sentry-release-injection-file-DEszgcWK.js} +3 -3
- package/dist/_sentry-release-injection-file-DEszgcWK.js.br +0 -0
- package/dist/availability.js +43 -43
- package/dist/availability.js.br +0 -0
- package/dist/deep-link.js +2 -2
- package/dist/deep-link.js.br +0 -0
- package/dist/event.js +472 -471
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +36 -36
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +104 -104
- package/dist/gift-card.js.br +0 -0
- package/dist/{giftCard-DxfwOj4W.js → giftCard-DLrIdehA.js} +13 -13
- package/dist/giftCard-DLrIdehA.js.br +0 -0
- package/dist/hotel.js +585 -597
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-DTj3FRoF.js → masonry.plugin-GGoTX7a7.js} +3203 -3137
- package/dist/masonry.plugin-GGoTX7a7.js.br +0 -0
- package/dist/{mitt-BI4s3zkK.js → mitt-DnPlcQNp.js} +2 -2
- package/dist/mitt-DnPlcQNp.js.br +0 -0
- package/dist/polyfill.js +14498 -16958
- package/dist/polyfill.js.br +0 -0
- package/dist/{style-DoXJRC4t.js → style-2RYcVxT9.js} +2 -2
- package/dist/style-2RYcVxT9.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +12 -12
- package/dist/ActionField-BXj6PfYZ.js.br +0 -0
- package/dist/AvailabilitySkeleton-BLnNIU9-.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CUMQhXcI.js.br +0 -0
- package/dist/CheckoutWindow-DLuBkYGS.js.br +0 -0
- package/dist/ErrorMessage-Cy1scjLu.js.br +0 -0
- package/dist/EventAvailabilityForm-DPs8I6AR.js.br +0 -0
- package/dist/Field-53ZoaiDU.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DigDTbcx.js.br +0 -0
- package/dist/TermsOfService-lYI4Wr0J.js +0 -36
- package/dist/TermsOfService-lYI4Wr0J.js.br +0 -0
- package/dist/_.vue_vue_type_style_index_0_lang-CukAL2Kn.js.br +0 -0
- package/dist/_commonjsHelpers-5UvwmKmn.js +0 -17
- package/dist/_sentry-release-injection-file-CE-HFIuO.js.br +0 -0
- package/dist/giftCard-DxfwOj4W.js.br +0 -0
- package/dist/masonry.plugin-DTj3FRoF.js.br +0 -0
- package/dist/mitt-BI4s3zkK.js.br +0 -0
- package/dist/style-DoXJRC4t.js.br +0 -0
package/dist/gift-card.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { u as B, T as pe, s as O, c as me, i as fe, m as be } from "./mitt-
|
|
3
|
-
import { a as ve,
|
|
4
|
-
import { G as
|
|
5
|
-
import { u as x } from "./giftCard-
|
|
6
|
-
import { _ as
|
|
7
|
-
import { a as Ee, C as Pe, P as Ue, _ as
|
|
8
|
-
import { F as
|
|
9
|
-
import { E as Te } from "./ErrorMessage-
|
|
10
|
-
import { S as
|
|
1
|
+
import { d as T, r as K, c as Z, a as s, b as w, w as $, e as t, g as v, f as o, u as e, i as g, n as Y, t as q, h as ae, z as oe, o as ne, S as ie, A as I, B as G, F as se, s as re, v as k, p as de, j as ue, k as ce } from "./_sentry-release-injection-file-DEszgcWK.js";
|
|
2
|
+
import { u as B, T as pe, s as O, c as me, i as fe, m as be } from "./mitt-DnPlcQNp.js";
|
|
3
|
+
import { a as ve, d as S, q as he, E as _e, _ as z, e as ge, o as ye, L as ke, T as L, b as Ce, C as Ve, c as we, n as $e } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B7IfVdWJ.js";
|
|
4
|
+
import { G as Fe } from "./style-2RYcVxT9.js";
|
|
5
|
+
import { u as x } from "./giftCard-DLrIdehA.js";
|
|
6
|
+
import { _ as Ae } from "./_.vue_vue_type_style_index_0_lang-DjuzMOwH.js";
|
|
7
|
+
import { a as Ee, C as Pe, P as Ue, _ as Se } from "./CheckoutWindow-DolJgk40.js";
|
|
8
|
+
import { F as U } from "./Field-DGi_AnA6.js";
|
|
9
|
+
import { E as Te } from "./ErrorMessage-BksKCxAq.js";
|
|
10
|
+
import { S as Ie } from "./TermsOfService-LDUTInOo.js";
|
|
11
11
|
(function() {
|
|
12
12
|
try {
|
|
13
13
|
var d = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, n = new Error().stack;
|
|
14
|
-
n && (d._sentryDebugIds = d._sentryDebugIds || {}, d._sentryDebugIds[n] = "
|
|
14
|
+
n && (d._sentryDebugIds = d._sentryDebugIds || {}, d._sentryDebugIds[n] = "98e12c89-3213-4023-be0f-f031917e34ec", d._sentryDebugIdIdentifier = "sentry-dbid-98e12c89-3213-4023-be0f-f031917e34ec");
|
|
15
15
|
} catch {
|
|
16
16
|
}
|
|
17
17
|
})();
|
|
18
|
-
const
|
|
18
|
+
const Ge = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-selector-wrapper" }, qe = { class: "media-selector-tools" }, Be = { key: 0 }, Re = { key: 1 }, De = { key: 2 }, xe = ["src"], ze = /* @__PURE__ */ T({
|
|
19
19
|
__name: "MediaSelector",
|
|
20
20
|
props: {
|
|
21
21
|
modelValue: {},
|
|
@@ -30,7 +30,7 @@ const Ie = { class: "media-selector" }, Ge = ["accept"], Le = { class: "media-se
|
|
|
30
30
|
function u(a) {
|
|
31
31
|
m("update:modelValue", a);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function y() {
|
|
34
34
|
u({
|
|
35
35
|
base64: "",
|
|
36
36
|
name: "",
|
|
@@ -42,9 +42,9 @@ const Ie = { class: "media-selector" }, Ge = ["accept"], Le = { class: "media-se
|
|
|
42
42
|
}
|
|
43
43
|
function j(a, f) {
|
|
44
44
|
const [V, R] = [a.name, a.type], C = new FileReader();
|
|
45
|
-
C.onload = function(
|
|
46
|
-
if (
|
|
47
|
-
const D =
|
|
45
|
+
C.onload = function(P) {
|
|
46
|
+
if (P.target) {
|
|
47
|
+
const D = P.target.result;
|
|
48
48
|
f({ base64: D, name: V, type: R });
|
|
49
49
|
} else
|
|
50
50
|
h({
|
|
@@ -63,7 +63,7 @@ const Ie = { class: "media-selector" }, Ge = ["accept"], Le = { class: "media-se
|
|
|
63
63
|
type: "media"
|
|
64
64
|
}, {
|
|
65
65
|
default: $(() => [
|
|
66
|
-
t("div",
|
|
66
|
+
t("div", Ge, [
|
|
67
67
|
t("input", {
|
|
68
68
|
ref_key: "fileInput",
|
|
69
69
|
ref: p,
|
|
@@ -72,11 +72,11 @@ const Ie = { class: "media-selector" }, Ge = ["accept"], Le = { class: "media-se
|
|
|
72
72
|
accept: a.validation,
|
|
73
73
|
single: "",
|
|
74
74
|
onChange: f[0] || (f[0] = (V) => F())
|
|
75
|
-
}, null, 40,
|
|
76
|
-
t("div",
|
|
77
|
-
t("ul",
|
|
78
|
-
_.value ? g("", !0) : (s(), v("li",
|
|
79
|
-
o(
|
|
75
|
+
}, null, 40, Le),
|
|
76
|
+
t("div", Me, [
|
|
77
|
+
t("ul", qe, [
|
|
78
|
+
_.value ? g("", !0) : (s(), v("li", Be, [
|
|
79
|
+
o(S, {
|
|
80
80
|
label: e(c)("uploadFile"),
|
|
81
81
|
type: "button",
|
|
82
82
|
icon: "upload",
|
|
@@ -84,8 +84,8 @@ const Ie = { class: "media-selector" }, Ge = ["accept"], Le = { class: "media-se
|
|
|
84
84
|
onClickEvent: f[1] || (f[1] = (V) => b())
|
|
85
85
|
}, null, 8, ["label", "icon-color"])
|
|
86
86
|
])),
|
|
87
|
-
_.value ? (s(), v("li",
|
|
88
|
-
o(
|
|
87
|
+
_.value ? (s(), v("li", Re, [
|
|
88
|
+
o(S, {
|
|
89
89
|
label: e(c)("replaceFile"),
|
|
90
90
|
type: "button",
|
|
91
91
|
icon: "repeat-alt",
|
|
@@ -93,13 +93,13 @@ const Ie = { class: "media-selector" }, Ge = ["accept"], Le = { class: "media-se
|
|
|
93
93
|
onClickEvent: f[2] || (f[2] = (V) => b())
|
|
94
94
|
}, null, 8, ["label", "icon-color"])
|
|
95
95
|
])) : g("", !0),
|
|
96
|
-
_.value ? (s(), v("li",
|
|
97
|
-
o(
|
|
96
|
+
_.value ? (s(), v("li", De, [
|
|
97
|
+
o(S, {
|
|
98
98
|
label: e(c)("removeFile"),
|
|
99
99
|
type: "button",
|
|
100
100
|
icon: "trash-alt",
|
|
101
101
|
"icon-color": a.iconColor,
|
|
102
|
-
onClickEvent: f[3] || (f[3] = (V) =>
|
|
102
|
+
onClickEvent: f[3] || (f[3] = (V) => y())
|
|
103
103
|
}, null, 8, ["label", "icon-color"])
|
|
104
104
|
])) : g("", !0)
|
|
105
105
|
]),
|
|
@@ -112,7 +112,7 @@ const Ie = { class: "media-selector" }, Ge = ["accept"], Le = { class: "media-se
|
|
|
112
112
|
a.modelValue ? (s(), v("img", {
|
|
113
113
|
key: 0,
|
|
114
114
|
src: a.modelValue.base64
|
|
115
|
-
}, null, 8,
|
|
115
|
+
}, null, 8, xe)) : g("", !0)
|
|
116
116
|
], 2)
|
|
117
117
|
])
|
|
118
118
|
])
|
|
@@ -141,22 +141,22 @@ function W(d) {
|
|
|
141
141
|
}
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
|
-
typeof W == "function" && W(
|
|
145
|
-
const
|
|
144
|
+
typeof W == "function" && W(ze);
|
|
145
|
+
const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-form" }, Ne = /* @__PURE__ */ T({
|
|
146
146
|
__name: "GiftCardSkeleton",
|
|
147
147
|
setup(d) {
|
|
148
|
-
return (n, m) => (s(), v("div",
|
|
149
|
-
t("div",
|
|
150
|
-
o(
|
|
151
|
-
o(
|
|
152
|
-
o(
|
|
153
|
-
o(
|
|
154
|
-
o(
|
|
148
|
+
return (n, m) => (s(), v("div", je, [
|
|
149
|
+
t("div", He, [
|
|
150
|
+
o(U),
|
|
151
|
+
o(U),
|
|
152
|
+
o(U),
|
|
153
|
+
o(U),
|
|
154
|
+
o(U, { "is-text-area": "" }),
|
|
155
155
|
o(_e, { height: "44px" })
|
|
156
156
|
])
|
|
157
157
|
]));
|
|
158
158
|
}
|
|
159
|
-
}),
|
|
159
|
+
}), Oe = /* @__PURE__ */ z(Ne, [["__scopeId", "data-v-ba3efaa1"]]), We = { class: "konnectio-accept-terms" }, Ke = /* @__PURE__ */ T({
|
|
160
160
|
__name: "_",
|
|
161
161
|
props: {
|
|
162
162
|
content: {},
|
|
@@ -164,7 +164,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
164
164
|
},
|
|
165
165
|
setup(d) {
|
|
166
166
|
const { t: n } = B(), m = K(!1);
|
|
167
|
-
return (l, c) => (s(), v("div",
|
|
167
|
+
return (l, c) => (s(), v("div", We, [
|
|
168
168
|
o(e(pe), {
|
|
169
169
|
keypath: "general.termsAndConditionsNotice",
|
|
170
170
|
tag: "span",
|
|
@@ -184,37 +184,37 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
184
184
|
]),
|
|
185
185
|
_: 1
|
|
186
186
|
}),
|
|
187
|
-
o(
|
|
187
|
+
o(Ie, {
|
|
188
188
|
modelValue: m.value,
|
|
189
189
|
"onUpdate:modelValue": c[1] || (c[1] = (h) => m.value = h),
|
|
190
190
|
description: l.content
|
|
191
191
|
}, null, 8, ["modelValue", "description"])
|
|
192
192
|
]));
|
|
193
193
|
}
|
|
194
|
-
}),
|
|
194
|
+
}), Ze = /* @__PURE__ */ z(Ke, [["__scopeId", "data-v-f587c956"]]), Ye = /* @__PURE__ */ T({
|
|
195
195
|
__name: "GiftCard",
|
|
196
196
|
setup(d) {
|
|
197
197
|
const { t: n } = B(), m = x();
|
|
198
|
-
return (l, c) => (s(), w(
|
|
198
|
+
return (l, c) => (s(), w(Ze, {
|
|
199
199
|
content: e(m).termsOfService,
|
|
200
200
|
"button-label": e(n)("giftCard.orderGiftCard")
|
|
201
201
|
}, null, 8, ["content", "button-label"]));
|
|
202
202
|
}
|
|
203
|
-
}),
|
|
203
|
+
}), Je = (d) => (de("data-v-278e1031"), d = d(), ue(), d), Qe = ["data-layout"], Xe = { id: "konnectio-gift-card-wrapper" }, et = { id: "konnectio-gift-card-title" }, tt = { id: "konnectio-gift-card-content" }, lt = { id: "konnectio-gift-card-payment" }, at = ["innerHTML"], ot = { key: 0 }, nt = {
|
|
204
204
|
key: 0,
|
|
205
205
|
id: "konnectio-select-place-type"
|
|
206
|
-
},
|
|
206
|
+
}, it = {
|
|
207
207
|
class: /* @__PURE__ */ Y(["konnectio-label", "required"])
|
|
208
|
-
},
|
|
208
|
+
}, st = { id: "konnectio-select-place-type-input" }, rt = ["innerHTML"], dt = {
|
|
209
209
|
key: 0,
|
|
210
210
|
id: "konnectio-gift-card-order"
|
|
211
|
-
},
|
|
211
|
+
}, ut = { class: "konnectio-panel" }, ct = {
|
|
212
212
|
key: 1,
|
|
213
213
|
id: "konnectio-gift-card-remarks"
|
|
214
|
-
},
|
|
214
|
+
}, pt = {
|
|
215
215
|
key: 2,
|
|
216
216
|
id: "konnectio-gift-card-order-minimal"
|
|
217
|
-
},
|
|
217
|
+
}, mt = /* @__PURE__ */ Je(() => /* @__PURE__ */ t("div", { class: "konnectio-divider" }, null, -1)), ft = { id: "konnectio-gift-card-recaptcha" }, bt = /* @__PURE__ */ T({
|
|
218
218
|
name: "GiftCardLayout",
|
|
219
219
|
__name: "GiftCard",
|
|
220
220
|
props: {
|
|
@@ -233,7 +233,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
233
233
|
phone: p,
|
|
234
234
|
value: _,
|
|
235
235
|
remark: u,
|
|
236
|
-
showValue:
|
|
236
|
+
showValue: y,
|
|
237
237
|
quantity: b,
|
|
238
238
|
media: j,
|
|
239
239
|
placeId: F,
|
|
@@ -242,22 +242,22 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
242
242
|
showPaymentPage: V,
|
|
243
243
|
showConfirmationPage: R,
|
|
244
244
|
places: C,
|
|
245
|
-
hasFilledForm:
|
|
245
|
+
hasFilledForm: P,
|
|
246
246
|
hasForcedPlaceType: D,
|
|
247
|
-
isWaitingForResponse:
|
|
247
|
+
isWaitingForResponse: A
|
|
248
248
|
} = O(x()), { initialize: J, orderGiftCard: H, fetchMetadata: Q } = x(), { isRecaptchaEnabled: X, currency: ee, hasError: te } = O(ge());
|
|
249
249
|
return oe(a, () => {
|
|
250
250
|
F.value = void 0;
|
|
251
251
|
}), ne(() => {
|
|
252
|
-
const
|
|
253
|
-
J(
|
|
254
|
-
}), (
|
|
252
|
+
const E = n.placeType ? parseInt(n.placeType) : void 0;
|
|
253
|
+
J(E);
|
|
254
|
+
}), (E, r) => (s(), w(Ve, { styling: m.value }, {
|
|
255
255
|
default: $(() => [
|
|
256
256
|
(s(), w(ie, null, {
|
|
257
257
|
default: $(() => [
|
|
258
|
-
o(
|
|
259
|
-
"access-token":
|
|
260
|
-
"data-layout":
|
|
258
|
+
o(Ae, {
|
|
259
|
+
"access-token": E.accessToken,
|
|
260
|
+
"data-layout": E.layout,
|
|
261
261
|
callback: e(Q)
|
|
262
262
|
}, {
|
|
263
263
|
default: $(() => [
|
|
@@ -268,14 +268,14 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
268
268
|
})) : (s(), v("div", {
|
|
269
269
|
key: 0,
|
|
270
270
|
id: "konnectio-gift-card-module",
|
|
271
|
-
"data-layout":
|
|
271
|
+
"data-layout": E.layout
|
|
272
272
|
}, [
|
|
273
|
-
t("div",
|
|
274
|
-
t("h2",
|
|
273
|
+
t("div", Xe, [
|
|
274
|
+
t("h2", et, [
|
|
275
275
|
t("span", null, q(e(l)("giftCard.title")), 1)
|
|
276
276
|
]),
|
|
277
|
-
t("div",
|
|
278
|
-
I(t("div",
|
|
277
|
+
t("div", tt, [
|
|
278
|
+
I(t("div", lt, [
|
|
279
279
|
o(Ee)
|
|
280
280
|
], 512), [
|
|
281
281
|
[G, e(V)]
|
|
@@ -284,19 +284,19 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
284
284
|
t("p", {
|
|
285
285
|
id: "konnectio-gift-card-description",
|
|
286
286
|
innerHTML: e(l)("giftCard.description")
|
|
287
|
-
}, null, 8,
|
|
287
|
+
}, null, 8, at),
|
|
288
288
|
t("form", null, [
|
|
289
|
-
e(D) ? g("", !0) : (s(), v("div",
|
|
290
|
-
e(C) ? (s(), v("div",
|
|
291
|
-
t("label",
|
|
289
|
+
e(D) ? g("", !0) : (s(), v("div", ot, [
|
|
290
|
+
e(C) ? (s(), v("div", nt, [
|
|
291
|
+
t("label", it, [
|
|
292
292
|
t("span", null, q(e(l)("giftCard.selectType")), 1)
|
|
293
293
|
]),
|
|
294
|
-
t("div",
|
|
294
|
+
t("div", st, [
|
|
295
295
|
t("ul", null, [
|
|
296
296
|
(s(!0), v(se, null, re(e(C), (i, N) => (s(), v("li", { key: N }, [
|
|
297
297
|
o(Pe, {
|
|
298
298
|
modelValue: e(a),
|
|
299
|
-
"onUpdate:modelValue": r[0] || (r[0] = (le) =>
|
|
299
|
+
"onUpdate:modelValue": r[0] || (r[0] = (le) => k(a) ? a.value = le : null),
|
|
300
300
|
type: "radio",
|
|
301
301
|
name: "placeType",
|
|
302
302
|
val: N,
|
|
@@ -304,10 +304,10 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
304
304
|
}, null, 8, ["modelValue", "val", "label"])
|
|
305
305
|
]))), 128))
|
|
306
306
|
]),
|
|
307
|
-
e(C)[e(a)] && e(C)[e(a)].data.length > 1 ? (s(), w(
|
|
307
|
+
e(C)[e(a)] && e(C)[e(a)].data.length > 1 ? (s(), w(ye, {
|
|
308
308
|
key: 0,
|
|
309
309
|
modelValue: e(F),
|
|
310
|
-
"onUpdate:modelValue": r[1] || (r[1] = (i) =>
|
|
310
|
+
"onUpdate:modelValue": r[1] || (r[1] = (i) => k(F) ? F.value = i : null),
|
|
311
311
|
placeholder: e(l)("giftCard.selectPlacePlaceholder"),
|
|
312
312
|
options: e(C)[e(a)].data,
|
|
313
313
|
labelKey: "name",
|
|
@@ -315,11 +315,11 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
315
315
|
required: ""
|
|
316
316
|
}, null, 8, ["modelValue", "placeholder", "options"])) : g("", !0)
|
|
317
317
|
])
|
|
318
|
-
])) : (s(), w(
|
|
318
|
+
])) : (s(), w(ke, { key: 1 }))
|
|
319
319
|
])),
|
|
320
320
|
o(L, {
|
|
321
321
|
modelValue: e(c),
|
|
322
|
-
"onUpdate:modelValue": r[2] || (r[2] = (i) =>
|
|
322
|
+
"onUpdate:modelValue": r[2] || (r[2] = (i) => k(c) ? c.value = i : null),
|
|
323
323
|
type: "text",
|
|
324
324
|
name: "name",
|
|
325
325
|
autocomplete: "name",
|
|
@@ -330,7 +330,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
330
330
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
331
331
|
o(L, {
|
|
332
332
|
modelValue: e(h),
|
|
333
|
-
"onUpdate:modelValue": r[3] || (r[3] = (i) =>
|
|
333
|
+
"onUpdate:modelValue": r[3] || (r[3] = (i) => k(h) ? h.value = i : null),
|
|
334
334
|
type: "email",
|
|
335
335
|
name: "email",
|
|
336
336
|
autocomplete: "email",
|
|
@@ -341,7 +341,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
341
341
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
342
342
|
o(Ue, {
|
|
343
343
|
modelValue: e(p),
|
|
344
|
-
"onUpdate:modelValue": r[4] || (r[4] = (i) =>
|
|
344
|
+
"onUpdate:modelValue": r[4] || (r[4] = (i) => k(p) ? p.value = i : null),
|
|
345
345
|
icon: "phone-office",
|
|
346
346
|
label: e(l)("giftCard.phone"),
|
|
347
347
|
placeholder: e(l)("giftCard.phonePlaceholder"),
|
|
@@ -349,7 +349,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
349
349
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
350
350
|
o(L, {
|
|
351
351
|
modelValue: e(_),
|
|
352
|
-
"onUpdate:modelValue": r[5] || (r[5] = (i) =>
|
|
352
|
+
"onUpdate:modelValue": r[5] || (r[5] = (i) => k(_) ? _.value = i : null),
|
|
353
353
|
type: "number",
|
|
354
354
|
name: "value",
|
|
355
355
|
label: e(l)("giftCard.value"),
|
|
@@ -362,7 +362,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
362
362
|
g("", !0),
|
|
363
363
|
o(Ce, {
|
|
364
364
|
modelValue: e(b),
|
|
365
|
-
"onUpdate:modelValue": r[8] || (r[8] = (i) =>
|
|
365
|
+
"onUpdate:modelValue": r[8] || (r[8] = (i) => k(b) ? b.value = i : null),
|
|
366
366
|
label: e(l)("giftCard.quantity"),
|
|
367
367
|
icon: "gift-card",
|
|
368
368
|
required: ""
|
|
@@ -374,27 +374,27 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
374
374
|
I(t("div", null, [
|
|
375
375
|
t("div", {
|
|
376
376
|
innerHTML: e(l)("giftCard.thankYou")
|
|
377
|
-
}, null, 8,
|
|
377
|
+
}, null, 8, rt)
|
|
378
378
|
], 512), [
|
|
379
379
|
[G, e(R)]
|
|
380
380
|
])
|
|
381
381
|
]),
|
|
382
|
-
|
|
383
|
-
t("div",
|
|
384
|
-
o(
|
|
382
|
+
E.layout !== "minimal" && e(f) ? (s(), v("div", dt, [
|
|
383
|
+
t("div", ut, [
|
|
384
|
+
o(S, {
|
|
385
385
|
label: e(l)("giftCard.orderGiftCard"),
|
|
386
386
|
"full-width": !0,
|
|
387
|
-
disabled: !e(
|
|
388
|
-
"is-loading": e(
|
|
389
|
-
"onUpdate:isLoading": r[9] || (r[9] = (i) =>
|
|
387
|
+
disabled: !e(P),
|
|
388
|
+
"is-loading": e(A),
|
|
389
|
+
"onUpdate:isLoading": r[9] || (r[9] = (i) => k(A) ? A.value = i : null),
|
|
390
390
|
onClickEvent: e(H)
|
|
391
391
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
|
|
392
392
|
])
|
|
393
393
|
])) : g("", !0),
|
|
394
|
-
e(f) ? (s(), v("div",
|
|
394
|
+
e(f) ? (s(), v("div", ct, [
|
|
395
395
|
o(L, {
|
|
396
396
|
modelValue: e(u),
|
|
397
|
-
"onUpdate:modelValue": r[10] || (r[10] = (i) =>
|
|
397
|
+
"onUpdate:modelValue": r[10] || (r[10] = (i) => k(u) ? u.value = i : null),
|
|
398
398
|
type: "textarea",
|
|
399
399
|
name: "remark",
|
|
400
400
|
label: e(l)("giftCard.remark"),
|
|
@@ -402,34 +402,34 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
402
402
|
placeholder: e(l)("giftCard.remarkPlaceholder")
|
|
403
403
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
404
404
|
])) : g("", !0),
|
|
405
|
-
e(f) ? (s(), v("div",
|
|
406
|
-
o(
|
|
405
|
+
e(f) ? (s(), v("div", pt, [
|
|
406
|
+
o(S, {
|
|
407
407
|
label: e(l)("giftCard.orderGiftCard"),
|
|
408
408
|
"full-width": !0,
|
|
409
|
-
disabled: !e(
|
|
409
|
+
disabled: !e(P),
|
|
410
410
|
"data-test": "orderGiftCard",
|
|
411
|
-
"is-loading": e(
|
|
412
|
-
"onUpdate:isLoading": r[11] || (r[11] = (i) =>
|
|
411
|
+
"is-loading": e(A),
|
|
412
|
+
"onUpdate:isLoading": r[11] || (r[11] = (i) => k(A) ? A.value = i : null),
|
|
413
413
|
onClickEvent: e(H)
|
|
414
414
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
|
|
415
415
|
t("div", null, [
|
|
416
|
-
|
|
417
|
-
o(
|
|
416
|
+
mt,
|
|
417
|
+
o(Ye)
|
|
418
418
|
]),
|
|
419
|
-
I(t("div",
|
|
420
|
-
o(
|
|
419
|
+
I(t("div", ft, [
|
|
420
|
+
o(Se)
|
|
421
421
|
], 512), [
|
|
422
422
|
[G, e(X)]
|
|
423
423
|
])
|
|
424
424
|
])) : g("", !0)
|
|
425
425
|
])
|
|
426
|
-
], 8,
|
|
426
|
+
], 8, Qe))
|
|
427
427
|
]),
|
|
428
428
|
_: 1
|
|
429
429
|
}, 8, ["access-token", "data-layout", "callback"])
|
|
430
430
|
]),
|
|
431
431
|
fallback: $(() => [
|
|
432
|
-
o(
|
|
432
|
+
o(Oe)
|
|
433
433
|
]),
|
|
434
434
|
_: 1
|
|
435
435
|
}))
|
|
@@ -437,8 +437,8 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
437
437
|
_: 1
|
|
438
438
|
}, 8, ["styling"]));
|
|
439
439
|
}
|
|
440
|
-
}), M = /* @__PURE__ */ z(
|
|
441
|
-
class
|
|
440
|
+
}), M = /* @__PURE__ */ z(bt, [["__scopeId", "data-v-278e1031"]]), vt = me(), ht = be();
|
|
441
|
+
class _t extends HTMLElement {
|
|
442
442
|
vueApp;
|
|
443
443
|
constructor() {
|
|
444
444
|
super();
|
|
@@ -449,7 +449,7 @@ class ht extends HTMLElement {
|
|
|
449
449
|
connectedCallback() {
|
|
450
450
|
const n = typeof M == "function" ? M.options : M;
|
|
451
451
|
let m = Array.isArray(n.props) ? n.props : Object.keys(n.props || {});
|
|
452
|
-
const l = (u) => u.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (
|
|
452
|
+
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 = {};
|
|
453
453
|
m = m.map(l);
|
|
454
454
|
const p = {};
|
|
455
455
|
for (const u of this.attributes) {
|
|
@@ -457,16 +457,16 @@ class ht extends HTMLElement {
|
|
|
457
457
|
b.length > 1 && (p[b[0]] || (p[b[0]] = {}), p[b[0]][c(b[1])] = u.value);
|
|
458
458
|
}
|
|
459
459
|
for (const u of m) {
|
|
460
|
-
let
|
|
461
|
-
p.hasOwnProperty(u) && (
|
|
460
|
+
let y = this.attributes.getNamedItem(u)?.value;
|
|
461
|
+
p.hasOwnProperty(u) && (y = p[u]), h[u] = y;
|
|
462
462
|
}
|
|
463
|
-
this.vueApp = ce(M, h), this.vueApp.provide("emitter",
|
|
463
|
+
this.vueApp = ce(M, h), we(this.vueApp), this.vueApp.provide("emitter", ht), this.vueApp.use(vt), this.vueApp.use(fe), this.vueApp.use(Fe), this.vueApp.use($e, { bootstrap: !0 });
|
|
464
464
|
const _ = document.createElement("div");
|
|
465
465
|
this.vueApp.mount(_), this.appendChild(_.children[0]);
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
window.customElements.define("konnectio-gift-card",
|
|
468
|
+
window.customElements.define("konnectio-gift-card", _t);
|
|
469
469
|
export {
|
|
470
|
-
|
|
470
|
+
_t as default
|
|
471
471
|
};
|
|
472
472
|
//# sourceMappingURL=gift-card.js.map
|
package/dist/gift-card.js.br
CHANGED
|
Binary file
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as Q, s as X, a as k } from "./mitt-
|
|
3
|
-
import { r as t, c as a } from "./_sentry-release-injection-file-
|
|
1
|
+
import { t as H, a as J, e as A, G as s, v as S, S as w, w as E, p as M, x as K } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B7IfVdWJ.js";
|
|
2
|
+
import { d as Q, s as X, a as k } from "./mitt-DnPlcQNp.js";
|
|
3
|
+
import { r as t, c as a } from "./_sentry-release-injection-file-DEszgcWK.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] = "10190812-cc04-410b-aa3e-421b78f761ee", i._sentryDebugIdIdentifier = "sentry-dbid-10190812-cc04-410b-aa3e-421b78f761ee");
|
|
8
8
|
} catch {
|
|
9
9
|
}
|
|
10
10
|
})();
|
|
11
11
|
const ae = Q("giftCard", () => {
|
|
12
|
-
const { pay: i } = H(), { display: c } = J(), { bearerToken: v, metaData: P, currencyId:
|
|
12
|
+
const { pay: i } = H(), { display: c } = J(), { bearerToken: v, metaData: P, currencyId: O, hasError: I } = X(A()), T = A(), o = t(s.InitialState), f = S("konnectio_name", "", void 0, { serializer: w.string }), p = S("konnectio_email", "", void 0, { serializer: w.string }), g = S("konnectio_phone", "", void 0, { serializer: w.string }), m = t(""), F = t(1), C = t(!0), D = t(""), u = t({
|
|
13
13
|
base64: "",
|
|
14
14
|
type: "",
|
|
15
15
|
name: ""
|
|
@@ -35,17 +35,17 @@ const ae = Q("giftCard", () => {
|
|
|
35
35
|
e = b.value[h.value].data[0];
|
|
36
36
|
else if (y.value !== 0) {
|
|
37
37
|
const l = R.value, n = b.value[y.value].data;
|
|
38
|
-
n.length === 1 ? e = n[0] : l !== void 0 && n.forEach((
|
|
39
|
-
String(
|
|
38
|
+
n.length === 1 ? e = n[0] : l !== void 0 && n.forEach((x) => {
|
|
39
|
+
String(x.id) === String(l) && (e = x);
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
return e;
|
|
43
43
|
}), L = a(() => !(!f.value || !p.value || !(g.value.length >= 5) || !m.value || r.value === void 0)), q = a(() => !(o.value === s.InitialState && d.value)), N = a(() => !!(o.value === s.WaitingForResponse && d.value));
|
|
44
44
|
async function $() {
|
|
45
45
|
try {
|
|
46
|
-
const e = (await
|
|
46
|
+
const e = (await E.get("https://production.hotel-service.konnectio.dk/api/gift-card/metadata", {
|
|
47
47
|
params: {
|
|
48
|
-
language:
|
|
48
|
+
language: M()
|
|
49
49
|
},
|
|
50
50
|
headers: {
|
|
51
51
|
Authorization: v.value,
|
|
@@ -61,11 +61,11 @@ const ae = Q("giftCard", () => {
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
async function B() {
|
|
64
|
-
o.value = s.WaitingForResponse, d.value = !0, await
|
|
64
|
+
o.value = s.WaitingForResponse, d.value = !0, await E.post("https://production.hotel-service.konnectio.dk/api/gift-card/create", {
|
|
65
65
|
termsOfserviceURL: window.location.origin,
|
|
66
66
|
checkoutUrl: window.location.origin,
|
|
67
|
-
currencyID:
|
|
68
|
-
language:
|
|
67
|
+
currencyID: O.value,
|
|
68
|
+
language: M(),
|
|
69
69
|
amount: m.value,
|
|
70
70
|
quantity: F.value,
|
|
71
71
|
freeText: D.value,
|
|
@@ -123,4 +123,4 @@ const ae = Q("giftCard", () => {
|
|
|
123
123
|
export {
|
|
124
124
|
ae as u
|
|
125
125
|
};
|
|
126
|
-
//# sourceMappingURL=giftCard-
|
|
126
|
+
//# sourceMappingURL=giftCard-DLrIdehA.js.map
|
|
Binary file
|