@konnectio/core 4.0.56-rc44 → 4.0.56-rc46
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-Djfp-835.js → ActionField-l77AHDt_.js} +10 -10
- package/dist/ActionField-l77AHDt_.js.br +0 -0
- package/dist/{AvailabilitySkeleton-DDFsTOcT.js → AvailabilitySkeleton-6QuYlrqw.js} +53 -53
- package/dist/AvailabilitySkeleton-6QuYlrqw.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CV70h5Ny.js +7814 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CV70h5Ny.js.br +0 -0
- package/dist/{CheckoutWindow-CNEuNkIt.js → CheckoutWindow-CNF_LAo6.js} +4 -4
- package/dist/CheckoutWindow-CNF_LAo6.js.br +0 -0
- package/dist/{ErrorMessage-bD3z1ENc.js → ErrorMessage-B0Hm-dJ0.js} +4 -4
- package/dist/ErrorMessage-B0Hm-dJ0.js.br +0 -0
- package/dist/{EventAvailabilityForm-BJ6gzh6V.js → EventAvailabilityForm-BfhYKChb.js} +77 -78
- package/dist/EventAvailabilityForm-BfhYKChb.js.br +0 -0
- package/dist/{Field-BflvstOX.js → Field-BJ8nOhMT.js} +8 -8
- package/dist/Field-BJ8nOhMT.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-hMDyUv2Y.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-eIGiZxmD.js} +2382 -2376
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-eIGiZxmD.js.br +0 -0
- package/dist/TermsOfService-f7DfHbk2.js +35 -0
- package/dist/TermsOfService-f7DfHbk2.js.br +0 -0
- package/dist/{_-DuCIctjS.js → _-CaC826yR.js} +2 -2
- package/dist/_.vue_vue_type_style_index_0_lang-BLztxup-.js +68 -0
- package/dist/_.vue_vue_type_style_index_0_lang-BLztxup-.js.br +0 -0
- package/dist/{_commonjsHelpers-BnQF6Gki.js → _commonjsHelpers-ytV6SVHa.js} +2025 -2027
- package/dist/_commonjsHelpers-ytV6SVHa.js.br +0 -0
- package/dist/availability.js +41 -41
- package/dist/availability.js.br +0 -0
- package/dist/event.js +100 -99
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +25 -25
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +130 -131
- package/dist/gift-card.js.br +0 -0
- package/dist/{giftCard-CWyKVevn.js → giftCard-DhbT2_l0.js} +6 -6
- package/dist/giftCard-DhbT2_l0.js.br +0 -0
- package/dist/hotel.js +275 -274
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-CttzlASt.js → masonry.plugin-CVpZ_aQu.js} +3386 -3355
- package/dist/masonry.plugin-CVpZ_aQu.js.br +0 -0
- package/dist/navigation.js +2 -2
- package/dist/polyfill.js +3830 -3828
- package/dist/polyfill.js.br +0 -0
- package/dist/sentry-D1A53_C5.js +18 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/dist/{tracing-wnoA9-xG.js → tracing-wxeFiHIa.js} +3 -3
- package/dist/tracing-wxeFiHIa.js.br +0 -0
- package/package.json +8 -8
- package/dist/ActionField-Djfp-835.js.br +0 -0
- package/dist/AvailabilitySkeleton-DDFsTOcT.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CsyexEp4.js +0 -7746
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CsyexEp4.js.br +0 -0
- package/dist/CheckoutWindow-CNEuNkIt.js.br +0 -0
- package/dist/ErrorMessage-bD3z1ENc.js.br +0 -0
- package/dist/EventAvailabilityForm-BJ6gzh6V.js.br +0 -0
- package/dist/Field-BflvstOX.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-hMDyUv2Y.js.br +0 -0
- package/dist/TermsOfService-CgTw1PTk.js +0 -35
- package/dist/TermsOfService-CgTw1PTk.js.br +0 -0
- package/dist/_.vue_vue_type_style_index_0_lang-C_NfK1xz.js +0 -71
- package/dist/_.vue_vue_type_style_index_0_lang-C_NfK1xz.js.br +0 -0
- package/dist/_commonjsHelpers-BnQF6Gki.js.br +0 -0
- package/dist/giftCard-CWyKVevn.js.br +0 -0
- package/dist/masonry.plugin-CttzlASt.js.br +0 -0
- package/dist/sentry-6-6DYT4Z.js +0 -18
- package/dist/tracing-wnoA9-xG.js.br +0 -0
package/dist/gift-card.js
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { h as B, a as pe, C as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { S as Ie } from "./TermsOfService-CgTw1PTk.js";
|
|
1
|
+
import { d as S, r as K, c as Z, o as s, b as w, w as F, g as l, 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 y, p as de, j as ue, k as ce } from "./_commonjsHelpers-ytV6SVHa.js";
|
|
2
|
+
import { h as B, a as pe, C as I, I as me, E as fe, _ as z, D as be, s as O, b as ve, k as he, L as _e, T as q, l as ge, n as ke, o as ye, p as Ce, F as Ve, q as we } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-eIGiZxmD.js";
|
|
3
|
+
import { u as x } from "./giftCard-DhbT2_l0.js";
|
|
4
|
+
import { _ as Fe } from "./_.vue_vue_type_style_index_0_lang-BLztxup-.js";
|
|
5
|
+
import { C as $e, a as Ee, P as Pe, _ as Ue } from "./CheckoutWindow-CNF_LAo6.js";
|
|
6
|
+
import { F as A } from "./Field-BJ8nOhMT.js";
|
|
7
|
+
import { E as Ae } from "./ErrorMessage-B0Hm-dJ0.js";
|
|
8
|
+
import { S as Ie } from "./TermsOfService-f7DfHbk2.js";
|
|
10
9
|
import "./navigation.js";
|
|
11
10
|
(function() {
|
|
12
11
|
try {
|
|
13
12
|
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] = "
|
|
13
|
+
n && (d._sentryDebugIds = d._sentryDebugIds || {}, d._sentryDebugIds[n] = "cd09c28f-1876-46d7-9e95-a47667017f04", d._sentryDebugIdIdentifier = "sentry-dbid-cd09c28f-1876-46d7-9e95-a47667017f04");
|
|
15
14
|
} catch {
|
|
16
15
|
}
|
|
17
16
|
})();
|
|
18
|
-
const
|
|
17
|
+
const Se = { class: "media-selector" }, Te = ["accept"], Le = { class: "media-selector-wrapper" }, qe = { class: "media-selector-tools" }, Me = { key: 0 }, Ge = { key: 1 }, Be = { key: 2 }, Re = ["src"], De = /* @__PURE__ */ S({
|
|
19
18
|
__name: "MediaSelector",
|
|
20
19
|
props: {
|
|
21
20
|
modelValue: {},
|
|
@@ -26,11 +25,11 @@ const Te = { class: "media-selector" }, Me = ["accept"], Le = { class: "media-se
|
|
|
26
25
|
},
|
|
27
26
|
emits: ["update:modelValue"],
|
|
28
27
|
setup(d, { emit: n }) {
|
|
29
|
-
const m = n,
|
|
28
|
+
const m = n, t = d, { t: c } = B(), { display: h } = pe(), p = K(), _ = Z(() => t.modelValue.base64 !== "");
|
|
30
29
|
function u(a) {
|
|
31
30
|
m("update:modelValue", a);
|
|
32
31
|
}
|
|
33
|
-
function
|
|
32
|
+
function k() {
|
|
34
33
|
u({
|
|
35
34
|
base64: "",
|
|
36
35
|
name: "",
|
|
@@ -63,8 +62,8 @@ const Te = { class: "media-selector" }, Me = ["accept"], Le = { class: "media-se
|
|
|
63
62
|
type: "media"
|
|
64
63
|
}, {
|
|
65
64
|
default: F(() => [
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
l("div", Se, [
|
|
66
|
+
l("input", {
|
|
68
67
|
ref_key: "fileInput",
|
|
69
68
|
ref: p,
|
|
70
69
|
type: "file",
|
|
@@ -72,11 +71,11 @@ const Te = { class: "media-selector" }, Me = ["accept"], Le = { class: "media-se
|
|
|
72
71
|
accept: a.validation,
|
|
73
72
|
single: "",
|
|
74
73
|
onChange: f[0] || (f[0] = (V) => $())
|
|
75
|
-
}, null, 40,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
_.value ? g("", !0) : (s(), v("li",
|
|
79
|
-
o(
|
|
74
|
+
}, null, 40, Te),
|
|
75
|
+
l("div", Le, [
|
|
76
|
+
l("ul", qe, [
|
|
77
|
+
_.value ? g("", !0) : (s(), v("li", Me, [
|
|
78
|
+
o(I, {
|
|
80
79
|
label: e(c)("uploadFile"),
|
|
81
80
|
type: "button",
|
|
82
81
|
icon: "upload",
|
|
@@ -84,8 +83,8 @@ const Te = { class: "media-selector" }, Me = ["accept"], Le = { class: "media-se
|
|
|
84
83
|
onClickEvent: f[1] || (f[1] = (V) => b())
|
|
85
84
|
}, null, 8, ["label", "icon-color"])
|
|
86
85
|
])),
|
|
87
|
-
_.value ? (s(), v("li",
|
|
88
|
-
o(
|
|
86
|
+
_.value ? (s(), v("li", Ge, [
|
|
87
|
+
o(I, {
|
|
89
88
|
label: e(c)("replaceFile"),
|
|
90
89
|
type: "button",
|
|
91
90
|
icon: "repeat-alt",
|
|
@@ -93,17 +92,17 @@ const Te = { class: "media-selector" }, Me = ["accept"], Le = { class: "media-se
|
|
|
93
92
|
onClickEvent: f[2] || (f[2] = (V) => b())
|
|
94
93
|
}, null, 8, ["label", "icon-color"])
|
|
95
94
|
])) : g("", !0),
|
|
96
|
-
_.value ? (s(), v("li",
|
|
97
|
-
o(
|
|
95
|
+
_.value ? (s(), v("li", Be, [
|
|
96
|
+
o(I, {
|
|
98
97
|
label: e(c)("removeFile"),
|
|
99
98
|
type: "button",
|
|
100
99
|
icon: "trash-alt",
|
|
101
100
|
"icon-color": a.iconColor,
|
|
102
|
-
onClickEvent: f[3] || (f[3] = (V) =>
|
|
101
|
+
onClickEvent: f[3] || (f[3] = (V) => k())
|
|
103
102
|
}, null, 8, ["label", "icon-color"])
|
|
104
103
|
])) : g("", !0)
|
|
105
104
|
]),
|
|
106
|
-
|
|
105
|
+
l("div", {
|
|
107
106
|
class: Y([
|
|
108
107
|
"media-selector-previewer",
|
|
109
108
|
{ opened: _.value }
|
|
@@ -112,7 +111,7 @@ const Te = { class: "media-selector" }, Me = ["accept"], Le = { class: "media-se
|
|
|
112
111
|
a.modelValue ? (s(), v("img", {
|
|
113
112
|
key: 0,
|
|
114
113
|
src: a.modelValue.base64
|
|
115
|
-
}, null, 8,
|
|
114
|
+
}, null, 8, Re)) : g("", !0)
|
|
116
115
|
], 2)
|
|
117
116
|
])
|
|
118
117
|
])
|
|
@@ -141,12 +140,12 @@ function W(d) {
|
|
|
141
140
|
}
|
|
142
141
|
});
|
|
143
142
|
}
|
|
144
|
-
typeof W == "function" && W(
|
|
145
|
-
const
|
|
143
|
+
typeof W == "function" && W(De);
|
|
144
|
+
const xe = { class: "gift-card-skeleton" }, ze = { class: "gift-card-skeleton-form" }, je = /* @__PURE__ */ S({
|
|
146
145
|
__name: "GiftCardSkeleton",
|
|
147
146
|
setup(d) {
|
|
148
|
-
return (n, m) => (s(), v("div",
|
|
149
|
-
|
|
147
|
+
return (n, m) => (s(), v("div", xe, [
|
|
148
|
+
l("div", ze, [
|
|
150
149
|
o(A),
|
|
151
150
|
o(A),
|
|
152
151
|
o(A),
|
|
@@ -156,7 +155,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
156
155
|
])
|
|
157
156
|
]));
|
|
158
157
|
}
|
|
159
|
-
}),
|
|
158
|
+
}), He = /* @__PURE__ */ z(je, [["__scopeId", "data-v-ba3efaa1"]]), Ne = { class: "konnectio-accept-terms" }, Oe = /* @__PURE__ */ S({
|
|
160
159
|
__name: "_",
|
|
161
160
|
props: {
|
|
162
161
|
content: {},
|
|
@@ -164,22 +163,22 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
164
163
|
},
|
|
165
164
|
setup(d) {
|
|
166
165
|
const { t: n } = B(), m = K(!1);
|
|
167
|
-
return (
|
|
166
|
+
return (t, c) => (s(), v("div", Ne, [
|
|
168
167
|
o(e(be), {
|
|
169
168
|
keypath: "general.termsAndConditionsNotice",
|
|
170
169
|
tag: "span",
|
|
171
170
|
scope: "global"
|
|
172
171
|
}, {
|
|
173
172
|
button: F(() => [
|
|
174
|
-
|
|
173
|
+
l("i", null, '"' + G(t.buttonLabel) + '"', 1)
|
|
175
174
|
]),
|
|
176
175
|
terms: F(() => [
|
|
177
|
-
|
|
176
|
+
l("a", {
|
|
178
177
|
class: "konnectio-accept-terms-link",
|
|
179
178
|
target: "_blank",
|
|
180
179
|
onClick: c[0] || (c[0] = ae((h) => m.value = !0, ["prevent"]))
|
|
181
180
|
}, [
|
|
182
|
-
|
|
181
|
+
l("span", null, G(e(n)("general.termsAndConditions")), 1)
|
|
183
182
|
])
|
|
184
183
|
]),
|
|
185
184
|
_: 1
|
|
@@ -187,34 +186,34 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
187
186
|
o(Ie, {
|
|
188
187
|
modelValue: m.value,
|
|
189
188
|
"onUpdate:modelValue": c[1] || (c[1] = (h) => m.value = h),
|
|
190
|
-
description:
|
|
189
|
+
description: t.content
|
|
191
190
|
}, null, 8, ["modelValue", "description"])
|
|
192
191
|
]));
|
|
193
192
|
}
|
|
194
|
-
}),
|
|
193
|
+
}), We = /* @__PURE__ */ z(Oe, [["__scopeId", "data-v-f587c956"]]), Ke = /* @__PURE__ */ S({
|
|
195
194
|
__name: "GiftCard",
|
|
196
195
|
setup(d) {
|
|
197
196
|
const { t: n } = B(), m = x();
|
|
198
|
-
return (
|
|
197
|
+
return (t, c) => (s(), w(We, {
|
|
199
198
|
content: e(m).termsOfService,
|
|
200
199
|
"button-label": e(n)("giftCard.orderGiftCard")
|
|
201
200
|
}, null, 8, ["content", "button-label"]));
|
|
202
201
|
}
|
|
203
|
-
}),
|
|
202
|
+
}), Ze = (d) => (de("data-v-06df89c3"), d = d(), ue(), d), Ye = ["data-layout"], Je = { id: "konnectio-gift-card-wrapper" }, Qe = { id: "konnectio-gift-card-title" }, Xe = { id: "konnectio-gift-card-content" }, el = { id: "konnectio-gift-card-payment" }, ll = ["innerHTML"], tl = { key: 0 }, al = {
|
|
204
203
|
key: 0,
|
|
205
204
|
id: "konnectio-select-place-type"
|
|
206
|
-
},
|
|
205
|
+
}, ol = {
|
|
207
206
|
class: /* @__PURE__ */ Y(["konnectio-label", "required"])
|
|
208
|
-
},
|
|
207
|
+
}, nl = { id: "konnectio-select-place-type-input" }, il = ["innerHTML"], sl = {
|
|
209
208
|
key: 0,
|
|
210
209
|
id: "konnectio-gift-card-order"
|
|
211
|
-
},
|
|
210
|
+
}, rl = { class: "konnectio-panel" }, dl = {
|
|
212
211
|
key: 1,
|
|
213
212
|
id: "konnectio-gift-card-remarks"
|
|
214
|
-
},
|
|
213
|
+
}, ul = {
|
|
215
214
|
key: 2,
|
|
216
215
|
id: "konnectio-gift-card-order-minimal"
|
|
217
|
-
},
|
|
216
|
+
}, cl = /* @__PURE__ */ Ze(() => /* @__PURE__ */ l("div", { class: "konnectio-divider" }, null, -1)), pl = { id: "konnectio-gift-card-recaptcha" }, ml = /* @__PURE__ */ S({
|
|
218
217
|
name: "GiftCardLayout",
|
|
219
218
|
__name: "GiftCard",
|
|
220
219
|
props: {
|
|
@@ -227,13 +226,13 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
227
226
|
const n = d, m = Z(() => ({
|
|
228
227
|
panelMaxWidth: "800px",
|
|
229
228
|
...n.styling
|
|
230
|
-
})), { t
|
|
229
|
+
})), { t } = B(), {
|
|
231
230
|
name: c,
|
|
232
231
|
email: h,
|
|
233
232
|
phone: p,
|
|
234
233
|
value: _,
|
|
235
234
|
remark: u,
|
|
236
|
-
showValue:
|
|
235
|
+
showValue: k,
|
|
237
236
|
quantity: b,
|
|
238
237
|
media: j,
|
|
239
238
|
placeId: $,
|
|
@@ -245,23 +244,23 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
245
244
|
hasFilledForm: U,
|
|
246
245
|
hasForcedPlaceType: D,
|
|
247
246
|
isWaitingForResponse: E
|
|
248
|
-
} = O(x()), { initialize: J, orderGiftCard: H, fetchMetadata: Q } = x(), { isRecaptchaEnabled: X, currency: ee, hasError:
|
|
247
|
+
} = O(x()), { initialize: J, orderGiftCard: H, fetchMetadata: Q } = x(), { isRecaptchaEnabled: X, currency: ee, hasError: le } = O(ve());
|
|
249
248
|
return oe(a, () => {
|
|
250
249
|
$.value = void 0;
|
|
251
250
|
}), ne(() => {
|
|
252
251
|
const P = n.placeType ? parseInt(n.placeType) : void 0;
|
|
253
252
|
J(P);
|
|
254
|
-
}), (P, r) => (s(), w(
|
|
253
|
+
}), (P, r) => (s(), w(ke, { styling: m.value }, {
|
|
255
254
|
default: F(() => [
|
|
256
255
|
(s(), w(ie, null, {
|
|
257
256
|
default: F(() => [
|
|
258
|
-
o(
|
|
257
|
+
o(Fe, {
|
|
259
258
|
"access-token": P.accessToken,
|
|
260
259
|
"data-layout": P.layout,
|
|
261
|
-
|
|
260
|
+
callback: e(Q)
|
|
262
261
|
}, {
|
|
263
262
|
default: F(() => [
|
|
264
|
-
e(
|
|
263
|
+
e(le) ? (s(), w(Ae, {
|
|
265
264
|
key: 1,
|
|
266
265
|
title: "Unable to render Gift card module",
|
|
267
266
|
description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
|
|
@@ -270,33 +269,33 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
270
269
|
id: "konnectio-gift-card-module",
|
|
271
270
|
"data-layout": P.layout
|
|
272
271
|
}, [
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
272
|
+
l("div", Je, [
|
|
273
|
+
l("h2", Qe, [
|
|
274
|
+
l("span", null, G(e(t)("giftCard.title")), 1)
|
|
276
275
|
]),
|
|
277
|
-
|
|
278
|
-
T(
|
|
279
|
-
o(
|
|
276
|
+
l("div", Xe, [
|
|
277
|
+
T(l("div", el, [
|
|
278
|
+
o($e)
|
|
280
279
|
], 512), [
|
|
281
|
-
[
|
|
280
|
+
[L, e(V)]
|
|
282
281
|
]),
|
|
283
|
-
T(
|
|
284
|
-
|
|
282
|
+
T(l("div", null, [
|
|
283
|
+
l("p", {
|
|
285
284
|
id: "konnectio-gift-card-description",
|
|
286
|
-
innerHTML: e(
|
|
287
|
-
}, null, 8,
|
|
288
|
-
|
|
289
|
-
e(D) ? g("", !0) : (s(), v("div",
|
|
290
|
-
e(C) ? (s(), v("div",
|
|
291
|
-
|
|
292
|
-
|
|
285
|
+
innerHTML: e(t)("giftCard.description")
|
|
286
|
+
}, null, 8, ll),
|
|
287
|
+
l("form", null, [
|
|
288
|
+
e(D) ? g("", !0) : (s(), v("div", tl, [
|
|
289
|
+
e(C) ? (s(), v("div", al, [
|
|
290
|
+
l("label", ol, [
|
|
291
|
+
l("span", null, G(e(t)("giftCard.selectType")), 1)
|
|
293
292
|
]),
|
|
294
|
-
|
|
295
|
-
|
|
293
|
+
l("div", nl, [
|
|
294
|
+
l("ul", null, [
|
|
296
295
|
(s(!0), v(se, null, re(e(C), (i, N) => (s(), v("li", { key: N }, [
|
|
297
|
-
o(
|
|
296
|
+
o(Ee, {
|
|
298
297
|
modelValue: e(a),
|
|
299
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
298
|
+
"onUpdate:modelValue": r[0] || (r[0] = (te) => y(a) ? a.value = te : null),
|
|
300
299
|
type: "radio",
|
|
301
300
|
name: "placeType",
|
|
302
301
|
val: N,
|
|
@@ -307,8 +306,8 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
307
306
|
e(C)[e(a)] && e(C)[e(a)].data.length > 1 ? (s(), w(he, {
|
|
308
307
|
key: 0,
|
|
309
308
|
modelValue: e($),
|
|
310
|
-
"onUpdate:modelValue": r[1] || (r[1] = (i) =>
|
|
311
|
-
placeholder: e(
|
|
309
|
+
"onUpdate:modelValue": r[1] || (r[1] = (i) => y($) ? $.value = i : null),
|
|
310
|
+
placeholder: e(t)("giftCard.selectPlacePlaceholder"),
|
|
312
311
|
options: e(C)[e(a)].data,
|
|
313
312
|
labelKey: "name",
|
|
314
313
|
valueKey: "id",
|
|
@@ -317,44 +316,44 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
317
316
|
])
|
|
318
317
|
])) : (s(), w(_e, { key: 1 }))
|
|
319
318
|
])),
|
|
320
|
-
o(
|
|
319
|
+
o(q, {
|
|
321
320
|
modelValue: e(c),
|
|
322
|
-
"onUpdate:modelValue": r[2] || (r[2] = (i) =>
|
|
321
|
+
"onUpdate:modelValue": r[2] || (r[2] = (i) => y(c) ? c.value = i : null),
|
|
323
322
|
type: "text",
|
|
324
323
|
name: "name",
|
|
325
324
|
autocomplete: "name",
|
|
326
|
-
label: e(
|
|
325
|
+
label: e(t)("giftCard.name"),
|
|
327
326
|
icon: "user-alt",
|
|
328
|
-
placeholder: e(
|
|
327
|
+
placeholder: e(t)("giftCard.namePlaceholder"),
|
|
329
328
|
required: ""
|
|
330
329
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
331
|
-
o(
|
|
330
|
+
o(q, {
|
|
332
331
|
modelValue: e(h),
|
|
333
|
-
"onUpdate:modelValue": r[3] || (r[3] = (i) =>
|
|
332
|
+
"onUpdate:modelValue": r[3] || (r[3] = (i) => y(h) ? h.value = i : null),
|
|
334
333
|
type: "email",
|
|
335
334
|
name: "email",
|
|
336
335
|
autocomplete: "email",
|
|
337
|
-
label: e(
|
|
336
|
+
label: e(t)("giftCard.email"),
|
|
338
337
|
icon: "at",
|
|
339
|
-
placeholder: e(
|
|
338
|
+
placeholder: e(t)("giftCard.emailPlaceholder"),
|
|
340
339
|
required: ""
|
|
341
340
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
342
|
-
o(
|
|
341
|
+
o(Pe, {
|
|
343
342
|
modelValue: e(p),
|
|
344
|
-
"onUpdate:modelValue": r[4] || (r[4] = (i) =>
|
|
343
|
+
"onUpdate:modelValue": r[4] || (r[4] = (i) => y(p) ? p.value = i : null),
|
|
345
344
|
icon: "phone-office",
|
|
346
|
-
label: e(
|
|
347
|
-
placeholder: e(
|
|
345
|
+
label: e(t)("giftCard.phone"),
|
|
346
|
+
placeholder: e(t)("giftCard.phonePlaceholder"),
|
|
348
347
|
required: ""
|
|
349
348
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
350
|
-
o(
|
|
349
|
+
o(q, {
|
|
351
350
|
modelValue: e(_),
|
|
352
|
-
"onUpdate:modelValue": r[5] || (r[5] = (i) =>
|
|
351
|
+
"onUpdate:modelValue": r[5] || (r[5] = (i) => y(_) ? _.value = i : null),
|
|
353
352
|
type: "number",
|
|
354
353
|
name: "value",
|
|
355
|
-
label: e(
|
|
354
|
+
label: e(t)("giftCard.value"),
|
|
356
355
|
icon: "money-bill",
|
|
357
|
-
placeholder: e(
|
|
356
|
+
placeholder: e(t)("giftCard.valuePlaceholder"),
|
|
358
357
|
suffix: e(ee),
|
|
359
358
|
required: ""
|
|
360
359
|
}, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
|
|
@@ -362,74 +361,74 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
362
361
|
g("", !0),
|
|
363
362
|
o(ge, {
|
|
364
363
|
modelValue: e(b),
|
|
365
|
-
"onUpdate:modelValue": r[8] || (r[8] = (i) =>
|
|
366
|
-
label: e(
|
|
364
|
+
"onUpdate:modelValue": r[8] || (r[8] = (i) => y(b) ? b.value = i : null),
|
|
365
|
+
label: e(t)("giftCard.quantity"),
|
|
367
366
|
icon: "gift-card",
|
|
368
367
|
required: ""
|
|
369
368
|
}, null, 8, ["modelValue", "label"])
|
|
370
369
|
])
|
|
371
370
|
], 512), [
|
|
372
|
-
[
|
|
371
|
+
[L, e(f)]
|
|
373
372
|
]),
|
|
374
|
-
T(
|
|
375
|
-
|
|
376
|
-
innerHTML: e(
|
|
377
|
-
}, null, 8,
|
|
373
|
+
T(l("div", null, [
|
|
374
|
+
l("div", {
|
|
375
|
+
innerHTML: e(t)("giftCard.thankYou")
|
|
376
|
+
}, null, 8, il)
|
|
378
377
|
], 512), [
|
|
379
|
-
[
|
|
378
|
+
[L, e(R)]
|
|
380
379
|
])
|
|
381
380
|
]),
|
|
382
|
-
P.layout !== "minimal" && e(f) ? (s(), v("div",
|
|
383
|
-
|
|
384
|
-
o(
|
|
385
|
-
label: e(
|
|
381
|
+
P.layout !== "minimal" && e(f) ? (s(), v("div", sl, [
|
|
382
|
+
l("div", rl, [
|
|
383
|
+
o(I, {
|
|
384
|
+
label: e(t)("giftCard.orderGiftCard"),
|
|
386
385
|
"full-width": !0,
|
|
387
386
|
disabled: !e(U),
|
|
388
387
|
"is-loading": e(E),
|
|
389
|
-
"onUpdate:isLoading": r[9] || (r[9] = (i) =>
|
|
388
|
+
"onUpdate:isLoading": r[9] || (r[9] = (i) => y(E) ? E.value = i : null),
|
|
390
389
|
onClickEvent: e(H)
|
|
391
390
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
|
|
392
391
|
])
|
|
393
392
|
])) : g("", !0),
|
|
394
|
-
e(f) ? (s(), v("div",
|
|
395
|
-
o(
|
|
393
|
+
e(f) ? (s(), v("div", dl, [
|
|
394
|
+
o(q, {
|
|
396
395
|
modelValue: e(u),
|
|
397
|
-
"onUpdate:modelValue": r[10] || (r[10] = (i) =>
|
|
396
|
+
"onUpdate:modelValue": r[10] || (r[10] = (i) => y(u) ? u.value = i : null),
|
|
398
397
|
type: "textarea",
|
|
399
398
|
name: "remark",
|
|
400
|
-
label: e(
|
|
399
|
+
label: e(t)("giftCard.remark"),
|
|
401
400
|
icon: "info-circle",
|
|
402
|
-
placeholder: e(
|
|
401
|
+
placeholder: e(t)("giftCard.remarkPlaceholder")
|
|
403
402
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
404
403
|
])) : g("", !0),
|
|
405
|
-
e(f) ? (s(), v("div",
|
|
406
|
-
o(
|
|
407
|
-
label: e(
|
|
404
|
+
e(f) ? (s(), v("div", ul, [
|
|
405
|
+
o(I, {
|
|
406
|
+
label: e(t)("giftCard.orderGiftCard"),
|
|
408
407
|
"full-width": !0,
|
|
409
408
|
disabled: !e(U),
|
|
410
409
|
"data-test": "orderGiftCard",
|
|
411
410
|
"is-loading": e(E),
|
|
412
|
-
"onUpdate:isLoading": r[11] || (r[11] = (i) =>
|
|
411
|
+
"onUpdate:isLoading": r[11] || (r[11] = (i) => y(E) ? E.value = i : null),
|
|
413
412
|
onClickEvent: e(H)
|
|
414
413
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
o(
|
|
414
|
+
l("div", null, [
|
|
415
|
+
cl,
|
|
416
|
+
o(Ke)
|
|
418
417
|
]),
|
|
419
|
-
T(
|
|
420
|
-
o(
|
|
418
|
+
T(l("div", pl, [
|
|
419
|
+
o(Ue)
|
|
421
420
|
], 512), [
|
|
422
|
-
[
|
|
421
|
+
[L, e(X)]
|
|
423
422
|
])
|
|
424
423
|
])) : g("", !0)
|
|
425
424
|
])
|
|
426
|
-
], 8,
|
|
425
|
+
], 8, Ye))
|
|
427
426
|
]),
|
|
428
427
|
_: 1
|
|
429
|
-
}, 8, ["access-token", "data-layout", "
|
|
428
|
+
}, 8, ["access-token", "data-layout", "callback"])
|
|
430
429
|
]),
|
|
431
430
|
fallback: F(() => [
|
|
432
|
-
o(
|
|
431
|
+
o(He)
|
|
433
432
|
]),
|
|
434
433
|
_: 1
|
|
435
434
|
}))
|
|
@@ -437,8 +436,8 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
437
436
|
_: 1
|
|
438
437
|
}, 8, ["styling"]));
|
|
439
438
|
}
|
|
440
|
-
}),
|
|
441
|
-
class
|
|
439
|
+
}), M = /* @__PURE__ */ z(ml, [["__scopeId", "data-v-06df89c3"]]), fl = ye(), bl = we();
|
|
440
|
+
class vl extends HTMLElement {
|
|
442
441
|
vueApp;
|
|
443
442
|
constructor() {
|
|
444
443
|
super();
|
|
@@ -447,26 +446,26 @@ class ht extends HTMLElement {
|
|
|
447
446
|
this.vueApp.unmount();
|
|
448
447
|
}
|
|
449
448
|
connectedCallback() {
|
|
450
|
-
const n = typeof
|
|
449
|
+
const n = typeof M == "function" ? M.options : M;
|
|
451
450
|
let m = Array.isArray(n.props) ? n.props : Object.keys(n.props || {});
|
|
452
|
-
const
|
|
453
|
-
m = m.map(
|
|
451
|
+
const t = (u) => u.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (k, b) => (b ? "-" : "") + k.toLowerCase()), c = (u) => u.replace(/-./g, (k) => k[1].toUpperCase()), h = {};
|
|
452
|
+
m = m.map(t);
|
|
454
453
|
const p = {};
|
|
455
454
|
for (const u of this.attributes) {
|
|
456
455
|
const b = u.name.split(".");
|
|
457
456
|
b.length > 1 && (p[b[0]] || (p[b[0]] = {}), p[b[0]][c(b[1])] = u.value);
|
|
458
457
|
}
|
|
459
458
|
for (const u of m) {
|
|
460
|
-
let
|
|
461
|
-
p.hasOwnProperty(u) && (
|
|
459
|
+
let k = this.attributes.getNamedItem(u)?.value;
|
|
460
|
+
p.hasOwnProperty(u) && (k = p[u]), h[u] = k;
|
|
462
461
|
}
|
|
463
|
-
this.vueApp = ce(
|
|
462
|
+
this.vueApp = ce(M, h), this.vueApp.provide("emitter", bl), this.vueApp.use(fl), this.vueApp.use(Ce), this.vueApp.use(Ve, { bootstrap: !0 });
|
|
464
463
|
const _ = document.createElement("div");
|
|
465
464
|
this.vueApp.mount(_), this.appendChild(_.children[0]);
|
|
466
465
|
}
|
|
467
466
|
}
|
|
468
|
-
window.customElements.define("konnectio-gift-card",
|
|
467
|
+
window.customElements.define("konnectio-gift-card", vl);
|
|
469
468
|
export {
|
|
470
|
-
|
|
469
|
+
vl as default
|
|
471
470
|
};
|
|
472
471
|
//# sourceMappingURL=gift-card.js.map
|
package/dist/gift-card.js.br
CHANGED
|
Binary file
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { d as K, u as H, a as J, s as Q, b as E, G as s, c as S, 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-
|
|
2
|
-
import { r as t, c as a } from "./_commonjsHelpers-
|
|
1
|
+
import { d as K, u as H, a as J, s as Q, b as E, G as s, c as S, 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-eIGiZxmD.js";
|
|
2
|
+
import { r as t, c as a } from "./_commonjsHelpers-ytV6SVHa.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] = "329c1e02-2a6d-4a28-a85a-f7bed4d340c8", i._sentryDebugIdIdentifier = "sentry-dbid-329c1e02-2a6d-4a28-a85a-f7bed4d340c8");
|
|
8
8
|
} catch {
|
|
9
9
|
}
|
|
10
10
|
})();
|
|
@@ -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-rc46"
|
|
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-rc46"
|
|
87
87
|
}
|
|
88
88
|
}).then((e) => {
|
|
89
89
|
o.value = s.ReadyToPay, d.value = !1, i({
|
|
@@ -125,4 +125,4 @@ const ae = K("giftCard", () => {
|
|
|
125
125
|
export {
|
|
126
126
|
ae as u
|
|
127
127
|
};
|
|
128
|
-
//# sourceMappingURL=giftCard-
|
|
128
|
+
//# sourceMappingURL=giftCard-DhbT2_l0.js.map
|
|
Binary file
|