@konnectio/core 4.0.62 → 4.0.64
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-8uyqR4s2.js → ActionField-D28Pe5Bb.js} +33 -25
- package/dist/ActionField-D28Pe5Bb.js.br +0 -0
- package/dist/{AvailabilitySkeleton-DR0TlG1c.js → AvailabilitySkeleton-BGEhEqa-.js} +123 -115
- package/dist/AvailabilitySkeleton-BGEhEqa-.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-IMAsOOYG.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CFzvon5m.js} +1089 -1081
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CFzvon5m.js.br +0 -0
- package/dist/{CheckoutWindow-b6nqgL-q.js → CheckoutWindow-Cv7p0DrF.js} +174 -166
- package/dist/CheckoutWindow-Cv7p0DrF.js.br +0 -0
- package/dist/{ErrorMessage-CTB9P7th.js → ErrorMessage-T11Ou3eh.js} +24 -16
- package/dist/ErrorMessage-T11Ou3eh.js.br +0 -0
- package/dist/EventAvailabilityForm-DeqQKdKV.js +125 -0
- package/dist/EventAvailabilityForm-DeqQKdKV.js.br +0 -0
- package/dist/Field-DcoRYqr8.js +58 -0
- package/dist/Field-DcoRYqr8.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-C-2VAK1P.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B53ZPSma.js} +2031 -2022
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B53ZPSma.js.br +0 -0
- package/dist/TermsOfService-CL0zaNw_.js +44 -0
- package/dist/TermsOfService-CL0zaNw_.js.br +0 -0
- package/dist/_-C5tf0vwv.js +20 -0
- package/dist/_.vue_vue_type_style_index_0_lang-BWAizmh6.js +77 -0
- package/dist/_.vue_vue_type_style_index_0_lang-BWAizmh6.js.br +0 -0
- package/dist/{_commonjsHelpers-DZ_3pocK.js → _commonjsHelpers-BeCRh3Xf.js} +618 -558
- package/dist/_commonjsHelpers-BeCRh3Xf.js.br +0 -0
- package/dist/{_sentry-release-injection-file-gnd2S326.js → _sentry-release-injection-file-CY9ljBue.js} +1643 -1635
- package/dist/_sentry-release-injection-file-CY9ljBue.js.br +0 -0
- package/dist/availability.js +67 -59
- package/dist/availability.js.br +0 -0
- package/dist/deep-link.js +29 -21
- package/dist/deep-link.js.br +0 -0
- package/dist/event.js +276 -260
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +71 -63
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +137 -129
- package/dist/gift-card.js.br +0 -0
- package/dist/giftCard-CHf9cbmB.js +134 -0
- package/dist/giftCard-CHf9cbmB.js.br +0 -0
- package/dist/hotel.js +812 -803
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-BNjra0SH.js → masonry.plugin-q1wqMEhq.js} +860 -852
- package/dist/masonry.plugin-q1wqMEhq.js.br +0 -0
- package/dist/{mitt-B7XZkC8D.js → mitt-CZC0Vuw7.js} +505 -497
- package/dist/mitt-CZC0Vuw7.js.br +0 -0
- package/dist/polyfill.js +6472 -6259
- package/dist/polyfill.js.br +0 -0
- package/dist/{style-lYuGbuqk.js → style-Di3bMYae.js} +392 -384
- package/dist/style-Di3bMYae.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +8 -8
- package/dist/ActionField-8uyqR4s2.js.br +0 -0
- package/dist/AvailabilitySkeleton-DR0TlG1c.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-IMAsOOYG.js.br +0 -0
- package/dist/CheckoutWindow-b6nqgL-q.js.br +0 -0
- package/dist/ErrorMessage-CTB9P7th.js.br +0 -0
- package/dist/EventAvailabilityForm-Dz_XUv-P.js +0 -117
- package/dist/EventAvailabilityForm-Dz_XUv-P.js.br +0 -0
- package/dist/Field-D74LzwJ5.js +0 -50
- package/dist/Field-D74LzwJ5.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-C-2VAK1P.js.br +0 -0
- package/dist/TermsOfService-BWi7ax17.js +0 -36
- package/dist/TermsOfService-BWi7ax17.js.br +0 -0
- package/dist/_-D5EdBcrp.js +0 -12
- package/dist/_.vue_vue_type_style_index_0_lang-DXnzUVHn.js +0 -69
- package/dist/_.vue_vue_type_style_index_0_lang-DXnzUVHn.js.br +0 -0
- package/dist/_commonjsHelpers-DZ_3pocK.js.br +0 -0
- package/dist/_sentry-release-injection-file-gnd2S326.js.br +0 -0
- package/dist/giftCard-Dl1tPQsP.js +0 -126
- package/dist/giftCard-Dl1tPQsP.js.br +0 -0
- package/dist/masonry.plugin-BNjra0SH.js.br +0 -0
- package/dist/mitt-B7XZkC8D.js.br +0 -0
- package/dist/style-lYuGbuqk.js.br +0 -0
package/dist/gift-card.js
CHANGED
|
@@ -1,21 +1,29 @@
|
|
|
1
|
-
import { d as T, r as
|
|
2
|
-
import { u as
|
|
3
|
-
import { a as
|
|
4
|
-
import { G as
|
|
5
|
-
import { u as
|
|
6
|
-
import { _ as Ae } from "./_.vue_vue_type_style_index_0_lang-
|
|
7
|
-
import { a as
|
|
8
|
-
import { F as U } from "./Field-
|
|
9
|
-
import { E as
|
|
10
|
-
import { S as
|
|
1
|
+
import { d as T, r as Z, c as Y, 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 J, t as G, h as oe, z as ne, o as ie, S as se, A as M, B as L, F as re, s as de, v as k, p as ue, j as ce, k as pe } from "./_sentry-release-injection-file-CY9ljBue.js";
|
|
2
|
+
import { u as R, T as me, s as K, c as fe, i as be, m as ve } from "./mitt-CZC0Vuw7.js";
|
|
3
|
+
import { a as he, d as S, q as ye, E as ge, _ as z, e as _e, o as ke, L as Ce, T as q, b as Ve, C as we, c as $e, n as Fe } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B53ZPSma.js";
|
|
4
|
+
import { G as Ee } from "./style-Di3bMYae.js";
|
|
5
|
+
import { u as j } from "./giftCard-CHf9cbmB.js";
|
|
6
|
+
import { _ as Ae } from "./_.vue_vue_type_style_index_0_lang-BWAizmh6.js";
|
|
7
|
+
import { a as Pe, C as Ue, P as Se, _ as Te } from "./CheckoutWindow-Cv7p0DrF.js";
|
|
8
|
+
import { F as U } from "./Field-DcoRYqr8.js";
|
|
9
|
+
import { E as Ie } from "./ErrorMessage-T11Ou3eh.js";
|
|
10
|
+
import { S as Me } from "./TermsOfService-CL0zaNw_.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] = "bf11d96a-1552-4ea9-b151-ae9cf5b862b9", d._sentryDebugIdIdentifier = "sentry-dbid-bf11d96a-1552-4ea9-b151-ae9cf5b862b9");
|
|
15
15
|
} catch {
|
|
16
16
|
}
|
|
17
17
|
})();
|
|
18
|
-
|
|
18
|
+
{
|
|
19
|
+
var I = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
20
|
+
I._sentryModuleMetadata = I._sentryModuleMetadata || {}, I._sentryModuleMetadata[new Error().stack] = Object.assign(
|
|
21
|
+
{},
|
|
22
|
+
I._sentryModuleMetadata[new Error().stack],
|
|
23
|
+
{ "_sentryBundlerPluginAppKey:konnectio-frontend-core": !0 }
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
const Le = { class: "media-selector" }, qe = ["accept"], Be = { class: "media-selector-wrapper" }, Ge = { class: "media-selector-tools" }, Re = { key: 0 }, De = { key: 1 }, xe = { key: 2 }, je = ["src"], ze = /* @__PURE__ */ T({
|
|
19
27
|
__name: "MediaSelector",
|
|
20
28
|
props: {
|
|
21
29
|
modelValue: {},
|
|
@@ -26,11 +34,11 @@ const Ge = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-se
|
|
|
26
34
|
},
|
|
27
35
|
emits: ["update:modelValue"],
|
|
28
36
|
setup(d, { emit: n }) {
|
|
29
|
-
const m = n, l = d, { t: c } =
|
|
37
|
+
const m = n, l = d, { t: c } = R(), { display: h } = he(), p = Z(), y = Y(() => l.modelValue.base64 !== "");
|
|
30
38
|
function u(a) {
|
|
31
39
|
m("update:modelValue", a);
|
|
32
40
|
}
|
|
33
|
-
function
|
|
41
|
+
function _() {
|
|
34
42
|
u({
|
|
35
43
|
base64: "",
|
|
36
44
|
name: "",
|
|
@@ -40,12 +48,12 @@ const Ge = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-se
|
|
|
40
48
|
function b() {
|
|
41
49
|
p.value && p.value.click();
|
|
42
50
|
}
|
|
43
|
-
function
|
|
44
|
-
const [V,
|
|
51
|
+
function O(a, f) {
|
|
52
|
+
const [V, D] = [a.name, a.type], C = new FileReader();
|
|
45
53
|
C.onload = function(P) {
|
|
46
54
|
if (P.target) {
|
|
47
|
-
const
|
|
48
|
-
f({ base64:
|
|
55
|
+
const x = P.target.result;
|
|
56
|
+
f({ base64: x, name: V, type: D });
|
|
49
57
|
} else
|
|
50
58
|
h({
|
|
51
59
|
message: c("imageUploadError"),
|
|
@@ -55,15 +63,15 @@ const Ge = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-se
|
|
|
55
63
|
}
|
|
56
64
|
async function F() {
|
|
57
65
|
let a;
|
|
58
|
-
(a = p.value.files) instanceof FileList &&
|
|
66
|
+
(a = p.value.files) instanceof FileList && O(a[0], u);
|
|
59
67
|
}
|
|
60
|
-
return (a, f) => (s(), w(
|
|
68
|
+
return (a, f) => (s(), w(ye, {
|
|
61
69
|
label: a.label,
|
|
62
70
|
required: a.required,
|
|
63
71
|
type: "media"
|
|
64
72
|
}, {
|
|
65
73
|
default: $(() => [
|
|
66
|
-
t("div",
|
|
74
|
+
t("div", Le, [
|
|
67
75
|
t("input", {
|
|
68
76
|
ref_key: "fileInput",
|
|
69
77
|
ref: p,
|
|
@@ -72,10 +80,10 @@ const Ge = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-se
|
|
|
72
80
|
accept: a.validation,
|
|
73
81
|
single: "",
|
|
74
82
|
onChange: f[0] || (f[0] = (V) => F())
|
|
75
|
-
}, null, 40,
|
|
76
|
-
t("div",
|
|
77
|
-
t("ul",
|
|
78
|
-
|
|
83
|
+
}, null, 40, qe),
|
|
84
|
+
t("div", Be, [
|
|
85
|
+
t("ul", Ge, [
|
|
86
|
+
y.value ? g("", !0) : (s(), v("li", Re, [
|
|
79
87
|
o(S, {
|
|
80
88
|
label: e(c)("uploadFile"),
|
|
81
89
|
type: "button",
|
|
@@ -84,7 +92,7 @@ const Ge = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-se
|
|
|
84
92
|
onClickEvent: f[1] || (f[1] = (V) => b())
|
|
85
93
|
}, null, 8, ["label", "icon-color"])
|
|
86
94
|
])),
|
|
87
|
-
|
|
95
|
+
y.value ? (s(), v("li", De, [
|
|
88
96
|
o(S, {
|
|
89
97
|
label: e(c)("replaceFile"),
|
|
90
98
|
type: "button",
|
|
@@ -93,26 +101,26 @@ const Ge = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-se
|
|
|
93
101
|
onClickEvent: f[2] || (f[2] = (V) => b())
|
|
94
102
|
}, null, 8, ["label", "icon-color"])
|
|
95
103
|
])) : g("", !0),
|
|
96
|
-
|
|
104
|
+
y.value ? (s(), v("li", xe, [
|
|
97
105
|
o(S, {
|
|
98
106
|
label: e(c)("removeFile"),
|
|
99
107
|
type: "button",
|
|
100
108
|
icon: "trash-alt",
|
|
101
109
|
"icon-color": a.iconColor,
|
|
102
|
-
onClickEvent: f[3] || (f[3] = (V) =>
|
|
110
|
+
onClickEvent: f[3] || (f[3] = (V) => _())
|
|
103
111
|
}, null, 8, ["label", "icon-color"])
|
|
104
112
|
])) : g("", !0)
|
|
105
113
|
]),
|
|
106
114
|
t("div", {
|
|
107
|
-
class:
|
|
115
|
+
class: J([
|
|
108
116
|
"media-selector-previewer",
|
|
109
|
-
{ opened:
|
|
117
|
+
{ opened: y.value }
|
|
110
118
|
])
|
|
111
119
|
}, [
|
|
112
120
|
a.modelValue ? (s(), v("img", {
|
|
113
121
|
key: 0,
|
|
114
122
|
src: a.modelValue.base64
|
|
115
|
-
}, null, 8,
|
|
123
|
+
}, null, 8, je)) : g("", !0)
|
|
116
124
|
], 2)
|
|
117
125
|
])
|
|
118
126
|
])
|
|
@@ -142,79 +150,79 @@ function W(d) {
|
|
|
142
150
|
});
|
|
143
151
|
}
|
|
144
152
|
typeof W == "function" && W(ze);
|
|
145
|
-
const
|
|
153
|
+
const Oe = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-form" }, Ne = /* @__PURE__ */ T({
|
|
146
154
|
__name: "GiftCardSkeleton",
|
|
147
155
|
setup(d) {
|
|
148
|
-
return (n, m) => (s(), v("div",
|
|
156
|
+
return (n, m) => (s(), v("div", Oe, [
|
|
149
157
|
t("div", He, [
|
|
150
158
|
o(U),
|
|
151
159
|
o(U),
|
|
152
160
|
o(U),
|
|
153
161
|
o(U),
|
|
154
162
|
o(U, { "is-text-area": "" }),
|
|
155
|
-
o(
|
|
163
|
+
o(ge, { height: "44px" })
|
|
156
164
|
])
|
|
157
165
|
]));
|
|
158
166
|
}
|
|
159
|
-
}),
|
|
167
|
+
}), Ke = /* @__PURE__ */ z(Ne, [["__scopeId", "data-v-ba3efaa1"]]), We = { class: "konnectio-accept-terms" }, Ze = /* @__PURE__ */ T({
|
|
160
168
|
__name: "_",
|
|
161
169
|
props: {
|
|
162
170
|
content: {},
|
|
163
171
|
buttonLabel: {}
|
|
164
172
|
},
|
|
165
173
|
setup(d) {
|
|
166
|
-
const { t: n } =
|
|
174
|
+
const { t: n } = R(), m = Z(!1);
|
|
167
175
|
return (l, c) => (s(), v("div", We, [
|
|
168
|
-
o(e(
|
|
176
|
+
o(e(me), {
|
|
169
177
|
keypath: "general.termsAndConditionsNotice",
|
|
170
178
|
tag: "span",
|
|
171
179
|
scope: "global"
|
|
172
180
|
}, {
|
|
173
181
|
button: $(() => [
|
|
174
|
-
t("i", null, '"' +
|
|
182
|
+
t("i", null, '"' + G(l.buttonLabel) + '"', 1)
|
|
175
183
|
]),
|
|
176
184
|
terms: $(() => [
|
|
177
185
|
t("a", {
|
|
178
186
|
class: "konnectio-accept-terms-link",
|
|
179
187
|
target: "_blank",
|
|
180
|
-
onClick: c[0] || (c[0] =
|
|
188
|
+
onClick: c[0] || (c[0] = oe((h) => m.value = !0, ["prevent"]))
|
|
181
189
|
}, [
|
|
182
|
-
t("span", null,
|
|
190
|
+
t("span", null, G(e(n)("general.termsAndConditions")), 1)
|
|
183
191
|
])
|
|
184
192
|
]),
|
|
185
193
|
_: 1
|
|
186
194
|
}),
|
|
187
|
-
o(
|
|
195
|
+
o(Me, {
|
|
188
196
|
modelValue: m.value,
|
|
189
197
|
"onUpdate:modelValue": c[1] || (c[1] = (h) => m.value = h),
|
|
190
198
|
description: l.content
|
|
191
199
|
}, null, 8, ["modelValue", "description"])
|
|
192
200
|
]));
|
|
193
201
|
}
|
|
194
|
-
}),
|
|
202
|
+
}), Ye = /* @__PURE__ */ z(Ze, [["__scopeId", "data-v-f587c956"]]), Je = /* @__PURE__ */ T({
|
|
195
203
|
__name: "GiftCard",
|
|
196
204
|
setup(d) {
|
|
197
|
-
const { t: n } =
|
|
198
|
-
return (l, c) => (s(), w(
|
|
205
|
+
const { t: n } = R(), m = j();
|
|
206
|
+
return (l, c) => (s(), w(Ye, {
|
|
199
207
|
content: e(m).termsOfService,
|
|
200
208
|
"button-label": e(n)("giftCard.orderGiftCard")
|
|
201
209
|
}, null, 8, ["content", "button-label"]));
|
|
202
210
|
}
|
|
203
|
-
}),
|
|
211
|
+
}), Qe = (d) => (ue("data-v-278e1031"), d = d(), ce(), d), Xe = ["data-layout"], et = { id: "konnectio-gift-card-wrapper" }, tt = { id: "konnectio-gift-card-title" }, lt = { id: "konnectio-gift-card-content" }, at = { id: "konnectio-gift-card-payment" }, ot = ["innerHTML"], nt = { key: 0 }, it = {
|
|
204
212
|
key: 0,
|
|
205
213
|
id: "konnectio-select-place-type"
|
|
206
|
-
},
|
|
207
|
-
class: /* @__PURE__ */
|
|
208
|
-
},
|
|
214
|
+
}, st = {
|
|
215
|
+
class: /* @__PURE__ */ J(["konnectio-label", "required"])
|
|
216
|
+
}, rt = { id: "konnectio-select-place-type-input" }, dt = ["innerHTML"], ut = {
|
|
209
217
|
key: 0,
|
|
210
218
|
id: "konnectio-gift-card-order"
|
|
211
|
-
},
|
|
219
|
+
}, ct = { class: "konnectio-panel" }, pt = {
|
|
212
220
|
key: 1,
|
|
213
221
|
id: "konnectio-gift-card-remarks"
|
|
214
|
-
},
|
|
222
|
+
}, mt = {
|
|
215
223
|
key: 2,
|
|
216
224
|
id: "konnectio-gift-card-order-minimal"
|
|
217
|
-
},
|
|
225
|
+
}, ft = /* @__PURE__ */ Qe(() => /* @__PURE__ */ t("div", { class: "konnectio-divider" }, null, -1)), bt = { id: "konnectio-gift-card-recaptcha" }, vt = /* @__PURE__ */ T({
|
|
218
226
|
name: "GiftCardLayout",
|
|
219
227
|
__name: "GiftCard",
|
|
220
228
|
props: {
|
|
@@ -224,79 +232,79 @@ const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
|
|
|
224
232
|
styling: {}
|
|
225
233
|
},
|
|
226
234
|
setup(d) {
|
|
227
|
-
const n = d, m =
|
|
235
|
+
const n = d, m = Y(() => ({
|
|
228
236
|
panelMaxWidth: "800px",
|
|
229
237
|
...n.styling
|
|
230
|
-
})), { t: l } =
|
|
238
|
+
})), { t: l } = R(), {
|
|
231
239
|
name: c,
|
|
232
240
|
email: h,
|
|
233
241
|
phone: p,
|
|
234
|
-
value:
|
|
242
|
+
value: y,
|
|
235
243
|
remark: u,
|
|
236
|
-
showValue:
|
|
244
|
+
showValue: _,
|
|
237
245
|
quantity: b,
|
|
238
|
-
media:
|
|
246
|
+
media: O,
|
|
239
247
|
placeId: F,
|
|
240
248
|
placeType: a,
|
|
241
249
|
showFormPage: f,
|
|
242
250
|
showPaymentPage: V,
|
|
243
|
-
showConfirmationPage:
|
|
251
|
+
showConfirmationPage: D,
|
|
244
252
|
places: C,
|
|
245
253
|
hasFilledForm: P,
|
|
246
|
-
hasForcedPlaceType:
|
|
247
|
-
isWaitingForResponse:
|
|
248
|
-
} =
|
|
249
|
-
return
|
|
254
|
+
hasForcedPlaceType: x,
|
|
255
|
+
isWaitingForResponse: E
|
|
256
|
+
} = K(j()), { initialize: Q, orderGiftCard: H, fetchMetadata: X } = j(), { isRecaptchaEnabled: ee, currency: te, hasError: le } = K(_e());
|
|
257
|
+
return ne(a, () => {
|
|
250
258
|
F.value = void 0;
|
|
251
|
-
}),
|
|
252
|
-
const
|
|
253
|
-
|
|
254
|
-
}), (
|
|
259
|
+
}), ie(() => {
|
|
260
|
+
const A = n.placeType ? parseInt(n.placeType) : void 0;
|
|
261
|
+
Q(A);
|
|
262
|
+
}), (A, r) => (s(), w(we, { styling: m.value }, {
|
|
255
263
|
default: $(() => [
|
|
256
|
-
(s(), w(
|
|
264
|
+
(s(), w(se, null, {
|
|
257
265
|
default: $(() => [
|
|
258
266
|
o(Ae, {
|
|
259
|
-
"access-token":
|
|
260
|
-
"data-layout":
|
|
261
|
-
callback: e(
|
|
267
|
+
"access-token": A.accessToken,
|
|
268
|
+
"data-layout": A.layout,
|
|
269
|
+
callback: e(X)
|
|
262
270
|
}, {
|
|
263
271
|
default: $(() => [
|
|
264
|
-
e(
|
|
272
|
+
e(le) ? (s(), w(Ie, {
|
|
265
273
|
key: 1,
|
|
266
274
|
title: "Unable to render Gift card module",
|
|
267
275
|
description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
|
|
268
276
|
})) : (s(), v("div", {
|
|
269
277
|
key: 0,
|
|
270
278
|
id: "konnectio-gift-card-module",
|
|
271
|
-
"data-layout":
|
|
279
|
+
"data-layout": A.layout
|
|
272
280
|
}, [
|
|
273
|
-
t("div",
|
|
274
|
-
t("h2",
|
|
275
|
-
t("span", null,
|
|
281
|
+
t("div", et, [
|
|
282
|
+
t("h2", tt, [
|
|
283
|
+
t("span", null, G(e(l)("giftCard.title")), 1)
|
|
276
284
|
]),
|
|
277
|
-
t("div",
|
|
278
|
-
|
|
279
|
-
o(
|
|
285
|
+
t("div", lt, [
|
|
286
|
+
M(t("div", at, [
|
|
287
|
+
o(Pe)
|
|
280
288
|
], 512), [
|
|
281
|
-
[
|
|
289
|
+
[L, e(V)]
|
|
282
290
|
]),
|
|
283
|
-
|
|
291
|
+
M(t("div", null, [
|
|
284
292
|
t("p", {
|
|
285
293
|
id: "konnectio-gift-card-description",
|
|
286
294
|
innerHTML: e(l)("giftCard.description")
|
|
287
|
-
}, null, 8,
|
|
295
|
+
}, null, 8, ot),
|
|
288
296
|
t("form", null, [
|
|
289
|
-
e(
|
|
290
|
-
e(C) ? (s(), v("div",
|
|
291
|
-
t("label",
|
|
292
|
-
t("span", null,
|
|
297
|
+
e(x) ? g("", !0) : (s(), v("div", nt, [
|
|
298
|
+
e(C) ? (s(), v("div", it, [
|
|
299
|
+
t("label", st, [
|
|
300
|
+
t("span", null, G(e(l)("giftCard.selectType")), 1)
|
|
293
301
|
]),
|
|
294
|
-
t("div",
|
|
302
|
+
t("div", rt, [
|
|
295
303
|
t("ul", null, [
|
|
296
|
-
(s(!0), v(
|
|
297
|
-
o(
|
|
304
|
+
(s(!0), v(re, null, de(e(C), (i, N) => (s(), v("li", { key: N }, [
|
|
305
|
+
o(Ue, {
|
|
298
306
|
modelValue: e(a),
|
|
299
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
307
|
+
"onUpdate:modelValue": r[0] || (r[0] = (ae) => k(a) ? a.value = ae : null),
|
|
300
308
|
type: "radio",
|
|
301
309
|
name: "placeType",
|
|
302
310
|
val: N,
|
|
@@ -304,7 +312,7 @@ const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
|
|
|
304
312
|
}, null, 8, ["modelValue", "val", "label"])
|
|
305
313
|
]))), 128))
|
|
306
314
|
]),
|
|
307
|
-
e(C)[e(a)] && e(C)[e(a)].data.length > 1 ? (s(), w(
|
|
315
|
+
e(C)[e(a)] && e(C)[e(a)].data.length > 1 ? (s(), w(ke, {
|
|
308
316
|
key: 0,
|
|
309
317
|
modelValue: e(F),
|
|
310
318
|
"onUpdate:modelValue": r[1] || (r[1] = (i) => k(F) ? F.value = i : null),
|
|
@@ -315,9 +323,9 @@ const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
|
|
|
315
323
|
required: ""
|
|
316
324
|
}, null, 8, ["modelValue", "placeholder", "options"])) : g("", !0)
|
|
317
325
|
])
|
|
318
|
-
])) : (s(), w(
|
|
326
|
+
])) : (s(), w(Ce, { key: 1 }))
|
|
319
327
|
])),
|
|
320
|
-
o(
|
|
328
|
+
o(q, {
|
|
321
329
|
modelValue: e(c),
|
|
322
330
|
"onUpdate:modelValue": r[2] || (r[2] = (i) => k(c) ? c.value = i : null),
|
|
323
331
|
type: "text",
|
|
@@ -328,7 +336,7 @@ const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
|
|
|
328
336
|
placeholder: e(l)("giftCard.namePlaceholder"),
|
|
329
337
|
required: ""
|
|
330
338
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
331
|
-
o(
|
|
339
|
+
o(q, {
|
|
332
340
|
modelValue: e(h),
|
|
333
341
|
"onUpdate:modelValue": r[3] || (r[3] = (i) => k(h) ? h.value = i : null),
|
|
334
342
|
type: "email",
|
|
@@ -339,7 +347,7 @@ const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
|
|
|
339
347
|
placeholder: e(l)("giftCard.emailPlaceholder"),
|
|
340
348
|
required: ""
|
|
341
349
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
342
|
-
o(
|
|
350
|
+
o(Se, {
|
|
343
351
|
modelValue: e(p),
|
|
344
352
|
"onUpdate:modelValue": r[4] || (r[4] = (i) => k(p) ? p.value = i : null),
|
|
345
353
|
icon: "phone-office",
|
|
@@ -347,20 +355,20 @@ const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
|
|
|
347
355
|
placeholder: e(l)("giftCard.phonePlaceholder"),
|
|
348
356
|
required: ""
|
|
349
357
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
350
|
-
o(
|
|
351
|
-
modelValue: e(
|
|
352
|
-
"onUpdate:modelValue": r[5] || (r[5] = (i) => k(
|
|
358
|
+
o(q, {
|
|
359
|
+
modelValue: e(y),
|
|
360
|
+
"onUpdate:modelValue": r[5] || (r[5] = (i) => k(y) ? y.value = i : null),
|
|
353
361
|
type: "number",
|
|
354
362
|
name: "value",
|
|
355
363
|
label: e(l)("giftCard.value"),
|
|
356
364
|
icon: "money-bill",
|
|
357
365
|
placeholder: e(l)("giftCard.valuePlaceholder"),
|
|
358
|
-
suffix: e(
|
|
366
|
+
suffix: e(te),
|
|
359
367
|
required: ""
|
|
360
368
|
}, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
|
|
361
369
|
g("", !0),
|
|
362
370
|
g("", !0),
|
|
363
|
-
o(
|
|
371
|
+
o(Ve, {
|
|
364
372
|
modelValue: e(b),
|
|
365
373
|
"onUpdate:modelValue": r[8] || (r[8] = (i) => k(b) ? b.value = i : null),
|
|
366
374
|
label: e(l)("giftCard.quantity"),
|
|
@@ -369,30 +377,30 @@ const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
|
|
|
369
377
|
}, null, 8, ["modelValue", "label"])
|
|
370
378
|
])
|
|
371
379
|
], 512), [
|
|
372
|
-
[
|
|
380
|
+
[L, e(f)]
|
|
373
381
|
]),
|
|
374
|
-
|
|
382
|
+
M(t("div", null, [
|
|
375
383
|
t("div", {
|
|
376
384
|
innerHTML: e(l)("giftCard.thankYou")
|
|
377
|
-
}, null, 8,
|
|
385
|
+
}, null, 8, dt)
|
|
378
386
|
], 512), [
|
|
379
|
-
[
|
|
387
|
+
[L, e(D)]
|
|
380
388
|
])
|
|
381
389
|
]),
|
|
382
|
-
|
|
383
|
-
t("div",
|
|
390
|
+
A.layout !== "minimal" && e(f) ? (s(), v("div", ut, [
|
|
391
|
+
t("div", ct, [
|
|
384
392
|
o(S, {
|
|
385
393
|
label: e(l)("giftCard.orderGiftCard"),
|
|
386
394
|
"full-width": !0,
|
|
387
395
|
disabled: !e(P),
|
|
388
|
-
"is-loading": e(
|
|
389
|
-
"onUpdate:isLoading": r[9] || (r[9] = (i) => k(
|
|
396
|
+
"is-loading": e(E),
|
|
397
|
+
"onUpdate:isLoading": r[9] || (r[9] = (i) => k(E) ? E.value = i : null),
|
|
390
398
|
onClickEvent: e(H)
|
|
391
399
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
|
|
392
400
|
])
|
|
393
401
|
])) : g("", !0),
|
|
394
|
-
e(f) ? (s(), v("div",
|
|
395
|
-
o(
|
|
402
|
+
e(f) ? (s(), v("div", pt, [
|
|
403
|
+
o(q, {
|
|
396
404
|
modelValue: e(u),
|
|
397
405
|
"onUpdate:modelValue": r[10] || (r[10] = (i) => k(u) ? u.value = i : null),
|
|
398
406
|
type: "textarea",
|
|
@@ -402,34 +410,34 @@ const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
|
|
|
402
410
|
placeholder: e(l)("giftCard.remarkPlaceholder")
|
|
403
411
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
404
412
|
])) : g("", !0),
|
|
405
|
-
e(f) ? (s(), v("div",
|
|
413
|
+
e(f) ? (s(), v("div", mt, [
|
|
406
414
|
o(S, {
|
|
407
415
|
label: e(l)("giftCard.orderGiftCard"),
|
|
408
416
|
"full-width": !0,
|
|
409
417
|
disabled: !e(P),
|
|
410
418
|
"data-test": "orderGiftCard",
|
|
411
|
-
"is-loading": e(
|
|
412
|
-
"onUpdate:isLoading": r[11] || (r[11] = (i) => k(
|
|
419
|
+
"is-loading": e(E),
|
|
420
|
+
"onUpdate:isLoading": r[11] || (r[11] = (i) => k(E) ? E.value = i : null),
|
|
413
421
|
onClickEvent: e(H)
|
|
414
422
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
|
|
415
423
|
t("div", null, [
|
|
416
|
-
|
|
417
|
-
o(
|
|
424
|
+
ft,
|
|
425
|
+
o(Je)
|
|
418
426
|
]),
|
|
419
|
-
|
|
420
|
-
o(
|
|
427
|
+
M(t("div", bt, [
|
|
428
|
+
o(Te)
|
|
421
429
|
], 512), [
|
|
422
|
-
[
|
|
430
|
+
[L, e(ee)]
|
|
423
431
|
])
|
|
424
432
|
])) : g("", !0)
|
|
425
433
|
])
|
|
426
|
-
], 8,
|
|
434
|
+
], 8, Xe))
|
|
427
435
|
]),
|
|
428
436
|
_: 1
|
|
429
437
|
}, 8, ["access-token", "data-layout", "callback"])
|
|
430
438
|
]),
|
|
431
439
|
fallback: $(() => [
|
|
432
|
-
o(
|
|
440
|
+
o(Ke)
|
|
433
441
|
]),
|
|
434
442
|
_: 1
|
|
435
443
|
}))
|
|
@@ -437,8 +445,8 @@ const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
|
|
|
437
445
|
_: 1
|
|
438
446
|
}, 8, ["styling"]));
|
|
439
447
|
}
|
|
440
|
-
}),
|
|
441
|
-
class
|
|
448
|
+
}), B = /* @__PURE__ */ z(vt, [["__scopeId", "data-v-278e1031"]]), ht = fe(), yt = ve();
|
|
449
|
+
class gt extends HTMLElement {
|
|
442
450
|
vueApp;
|
|
443
451
|
constructor() {
|
|
444
452
|
super();
|
|
@@ -447,9 +455,9 @@ class _t extends HTMLElement {
|
|
|
447
455
|
this.vueApp.unmount();
|
|
448
456
|
}
|
|
449
457
|
connectedCallback() {
|
|
450
|
-
const n = typeof
|
|
458
|
+
const n = typeof B == "function" ? B.options : B;
|
|
451
459
|
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, (
|
|
460
|
+
const l = (u) => u.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (_, b) => (b ? "-" : "") + _.toLowerCase()), c = (u) => u.replace(/-./g, (_) => _[1].toUpperCase()), h = {};
|
|
453
461
|
m = m.map(l);
|
|
454
462
|
const p = {};
|
|
455
463
|
for (const u of this.attributes) {
|
|
@@ -457,16 +465,16 @@ class _t extends HTMLElement {
|
|
|
457
465
|
b.length > 1 && (p[b[0]] || (p[b[0]] = {}), p[b[0]][c(b[1])] = u.value);
|
|
458
466
|
}
|
|
459
467
|
for (const u of m) {
|
|
460
|
-
let
|
|
461
|
-
p.hasOwnProperty(u) && (
|
|
468
|
+
let _ = this.attributes.getNamedItem(u)?.value;
|
|
469
|
+
p.hasOwnProperty(u) && (_ = p[u]), h[u] = _;
|
|
462
470
|
}
|
|
463
|
-
this.vueApp =
|
|
464
|
-
const
|
|
465
|
-
this.vueApp.mount(
|
|
471
|
+
this.vueApp = pe(B, h), $e(this.vueApp), this.vueApp.provide("emitter", yt), this.vueApp.use(ht), this.vueApp.use(be), this.vueApp.use(Ee), this.vueApp.use(Fe, { bootstrap: !0 });
|
|
472
|
+
const y = document.createElement("div");
|
|
473
|
+
this.vueApp.mount(y), this.appendChild(y.children[0]);
|
|
466
474
|
}
|
|
467
475
|
}
|
|
468
|
-
window.customElements.define("konnectio-gift-card",
|
|
476
|
+
window.customElements.define("konnectio-gift-card", gt);
|
|
469
477
|
export {
|
|
470
|
-
|
|
478
|
+
gt as default
|
|
471
479
|
};
|
|
472
480
|
//# sourceMappingURL=gift-card.js.map
|
package/dist/gift-card.js.br
CHANGED
|
Binary file
|