@konnectio/core 4.0.86 → 4.0.88
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-DYJq7UlB.js → ActionField-DcT_9OQ-.js} +13 -13
- package/dist/ActionField-DcT_9OQ-.js.br +0 -0
- package/dist/AvailabilitySkeleton-DuS6EF5A.js +322 -0
- package/dist/AvailabilitySkeleton-DuS6EF5A.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Co_ay6cZ.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-gdKPuOKO.js} +262 -262
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-gdKPuOKO.js.br +0 -0
- package/dist/{CheckoutWindow-B9DgFfjD.js → CheckoutWindow-gdDFWtqb.js} +89 -89
- package/dist/CheckoutWindow-gdDFWtqb.js.br +0 -0
- package/dist/{ErrorMessage-BrJqu_VN.js → ErrorMessage-Ve-udIdk.js} +25 -25
- package/dist/ErrorMessage-Ve-udIdk.js.br +0 -0
- package/dist/{EventAvailabilityForm-DYYklH-t.js → EventAvailabilityForm-C4d81ddL.js} +17 -17
- package/dist/EventAvailabilityForm-C4d81ddL.js.br +0 -0
- package/dist/{Field-B35ijVel.js → Field-D-HVbbAz.js} +14 -13
- package/dist/Field-D-HVbbAz.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DVknjZnB.js +21 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B9ABwlx8.js → SelectField.vue_vue_type_style_index_0_lang-HlNLn_PC.js} +5955 -5939
- package/dist/SelectField.vue_vue_type_style_index_0_lang-HlNLn_PC.js.br +0 -0
- package/dist/{TermsOfService-DUi944tV.js → TermsOfService-D3_RZAXa.js} +4 -4
- package/dist/_-C5OzP-8w.js +5 -0
- package/dist/_.vue_vue_type_style_index_0_lang-Cd38IS_v.js +25 -0
- package/dist/availability.js +36 -36
- package/dist/availability.js.br +0 -0
- package/dist/cancel-reservation.js +158 -0
- package/dist/cancel-reservation.js.br +0 -0
- package/dist/deep-link.js +6 -6
- package/dist/deep-link.js.br +0 -0
- package/dist/event.js +349 -348
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +23 -22
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +163 -162
- package/dist/gift-card.js.br +0 -0
- package/dist/{giftCard-B23RukSr.js → giftCard-Cd9Y7fCq.js} +19 -19
- package/dist/giftCard-Cd9Y7fCq.js.br +0 -0
- package/dist/hotel.js +1055 -1057
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-C0UjBCiK.js → masonry.plugin-DjoCgAa8.js} +606 -605
- package/dist/masonry.plugin-DjoCgAa8.js.br +0 -0
- package/dist/mitt-Cg46J41N.js +13059 -0
- package/dist/mitt-Cg46J41N.js.br +0 -0
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/dist/{style-CDpCXUak.js → style-BEbp8L4f.js} +128 -128
- package/dist/style-BEbp8L4f.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +2 -2
- package/dist/ActionField-DYJq7UlB.js.br +0 -0
- package/dist/AvailabilitySkeleton-BQTsJK7s.js +0 -309
- package/dist/AvailabilitySkeleton-BQTsJK7s.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Co_ay6cZ.js.br +0 -0
- package/dist/CheckoutWindow-B9DgFfjD.js.br +0 -0
- package/dist/ErrorMessage-BrJqu_VN.js.br +0 -0
- package/dist/EventAvailabilityForm-DYYklH-t.js.br +0 -0
- package/dist/Field-B35ijVel.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B9ABwlx8.js.br +0 -0
- package/dist/_-DLKVTBBX.js +0 -5
- package/dist/_.vue_vue_type_style_index_0_lang-BYDFId9L.js +0 -25
- package/dist/giftCard-B23RukSr.js.br +0 -0
- package/dist/masonry.plugin-C0UjBCiK.js.br +0 -0
- package/dist/mitt-B_elXQ2J.js +0 -12437
- package/dist/mitt-B_elXQ2J.js.br +0 -0
- package/dist/style-CDpCXUak.js.br +0 -0
package/dist/gift-card.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { a as
|
|
3
|
-
import { G as
|
|
4
|
-
import { u as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { a as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
1
|
+
import { d as G, u as L, r as O, c as Y, a as s, b as y, w as C, e as l, g as c, f as t, i as e, j as m, n as J, t as q, h as te, D as oe, s as z, E as ne, o as ie, S as se, G as A, H as S, F as re, z as de, A as v, k as ue, l as ce, m as pe, p as me, q as fe } from "./mitt-Cg46J41N.js";
|
|
2
|
+
import { a as ve, e as T, r as be, _ as x, g as he, d as ke, L as _e, T as M, f as ge, C as ye, p as Ce } from "./SelectField.vue_vue_type_style_index_0_lang-HlNLn_PC.js";
|
|
3
|
+
import { G as Ve } from "./style-BEbp8L4f.js";
|
|
4
|
+
import { u as I } from "./giftCard-Cd9Y7fCq.js";
|
|
5
|
+
import { _ as $e } from "./_.vue_vue_type_style_index_0_lang-Cd38IS_v.js";
|
|
6
|
+
import { a as we, C as Fe, P as Ee, _ as Pe } from "./CheckoutWindow-gdDFWtqb.js";
|
|
7
|
+
import { E as Ue } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DVknjZnB.js";
|
|
8
|
+
import { F as U } from "./Field-D-HVbbAz.js";
|
|
9
|
+
import { E as Te } from "./ErrorMessage-Ve-udIdk.js";
|
|
10
|
+
import { S as Ge } from "./TermsOfService-D3_RZAXa.js";
|
|
11
|
+
const Ae = { class: "media-selector" }, Se = ["accept"], Me = { class: "media-selector-wrapper" }, qe = { class: "media-selector-tools" }, Le = { key: 0 }, Be = { key: 1 }, Re = { key: 2 }, Ie = ["src"], xe = /* @__PURE__ */ G({
|
|
11
12
|
__name: "MediaSelector",
|
|
12
13
|
props: {
|
|
13
14
|
modelValue: {},
|
|
@@ -17,94 +18,94 @@ const Me = { class: "media-selector" }, qe = ["accept"], Le = { class: "media-se
|
|
|
17
18
|
required: { type: Boolean, default: !1 }
|
|
18
19
|
},
|
|
19
20
|
emits: ["update:modelValue"],
|
|
20
|
-
setup(
|
|
21
|
-
const
|
|
21
|
+
setup(b, { emit: r }) {
|
|
22
|
+
const p = r, o = b, { t: u } = L(), { display: h } = ve(), f = O(), k = Y(() => o.modelValue.base64 !== "");
|
|
22
23
|
function V(a) {
|
|
23
|
-
|
|
24
|
+
p("update:modelValue", a);
|
|
24
25
|
}
|
|
25
26
|
function H() {
|
|
26
27
|
V({
|
|
27
28
|
base64: "",
|
|
28
29
|
name: "",
|
|
29
30
|
type: ""
|
|
30
|
-
}),
|
|
31
|
+
}), f.value && (f.value.value = "");
|
|
31
32
|
}
|
|
32
|
-
function
|
|
33
|
-
|
|
33
|
+
function $() {
|
|
34
|
+
f.value && f.value.click();
|
|
34
35
|
}
|
|
35
36
|
function D(a, d) {
|
|
36
|
-
const [g,
|
|
37
|
-
|
|
38
|
-
if (
|
|
39
|
-
const
|
|
40
|
-
d({ base64:
|
|
37
|
+
const [g, B] = [a.name, a.type], _ = new FileReader();
|
|
38
|
+
_.onload = function(P) {
|
|
39
|
+
if (P.target) {
|
|
40
|
+
const R = P.target.result;
|
|
41
|
+
d({ base64: R, name: g, type: B });
|
|
41
42
|
} else
|
|
42
43
|
h({
|
|
43
44
|
message: u("imageUploadError"),
|
|
44
45
|
type: "error"
|
|
45
46
|
});
|
|
46
|
-
},
|
|
47
|
+
}, _.readAsDataURL(a);
|
|
47
48
|
}
|
|
48
|
-
async function
|
|
49
|
+
async function w() {
|
|
49
50
|
let a;
|
|
50
|
-
(a =
|
|
51
|
+
(a = f.value.files) instanceof FileList && D(a[0], V);
|
|
51
52
|
}
|
|
52
|
-
return (a, d) => (
|
|
53
|
+
return (a, d) => (s(), y(be, {
|
|
53
54
|
label: a.label,
|
|
54
55
|
required: a.required,
|
|
55
56
|
type: "media"
|
|
56
57
|
}, {
|
|
57
58
|
default: C(() => [
|
|
58
|
-
l("div",
|
|
59
|
+
l("div", Ae, [
|
|
59
60
|
l("input", {
|
|
60
61
|
ref_key: "fileInput",
|
|
61
|
-
ref:
|
|
62
|
+
ref: f,
|
|
62
63
|
type: "file",
|
|
63
64
|
class: "hidden",
|
|
64
65
|
accept: a.validation,
|
|
65
66
|
single: "",
|
|
66
|
-
onChange: d[0] || (d[0] = (g) =>
|
|
67
|
-
}, null, 40,
|
|
68
|
-
l("div",
|
|
69
|
-
l("ul",
|
|
70
|
-
|
|
71
|
-
t(
|
|
67
|
+
onChange: d[0] || (d[0] = (g) => w())
|
|
68
|
+
}, null, 40, Se),
|
|
69
|
+
l("div", Me, [
|
|
70
|
+
l("ul", qe, [
|
|
71
|
+
k.value ? m("", !0) : (s(), c("li", Le, [
|
|
72
|
+
t(T, {
|
|
72
73
|
label: e(u)("uploadFile"),
|
|
73
74
|
type: "button",
|
|
74
75
|
icon: "upload",
|
|
75
76
|
"icon-color": a.iconColor,
|
|
76
|
-
onClickEvent: d[1] || (d[1] = (g) =>
|
|
77
|
+
onClickEvent: d[1] || (d[1] = (g) => $())
|
|
77
78
|
}, null, 8, ["label", "icon-color"])
|
|
78
79
|
])),
|
|
79
|
-
|
|
80
|
-
t(
|
|
80
|
+
k.value ? (s(), c("li", Be, [
|
|
81
|
+
t(T, {
|
|
81
82
|
label: e(u)("replaceFile"),
|
|
82
83
|
type: "button",
|
|
83
84
|
icon: "repeat-alt",
|
|
84
85
|
"icon-color": a.iconColor,
|
|
85
|
-
onClickEvent: d[2] || (d[2] = (g) =>
|
|
86
|
+
onClickEvent: d[2] || (d[2] = (g) => $())
|
|
86
87
|
}, null, 8, ["label", "icon-color"])
|
|
87
|
-
])) :
|
|
88
|
-
|
|
89
|
-
t(
|
|
88
|
+
])) : m("", !0),
|
|
89
|
+
k.value ? (s(), c("li", Re, [
|
|
90
|
+
t(T, {
|
|
90
91
|
label: e(u)("removeFile"),
|
|
91
92
|
type: "button",
|
|
92
93
|
icon: "trash-alt",
|
|
93
94
|
"icon-color": a.iconColor,
|
|
94
95
|
onClickEvent: d[3] || (d[3] = (g) => H())
|
|
95
96
|
}, null, 8, ["label", "icon-color"])
|
|
96
|
-
])) :
|
|
97
|
+
])) : m("", !0)
|
|
97
98
|
]),
|
|
98
99
|
l("div", {
|
|
99
|
-
class:
|
|
100
|
+
class: J([
|
|
100
101
|
"media-selector-previewer",
|
|
101
|
-
{ opened:
|
|
102
|
+
{ opened: k.value }
|
|
102
103
|
])
|
|
103
104
|
}, [
|
|
104
|
-
a.modelValue ? (
|
|
105
|
+
a.modelValue ? (s(), c("img", {
|
|
105
106
|
key: 0,
|
|
106
107
|
src: a.modelValue.base64
|
|
107
|
-
}, null, 8,
|
|
108
|
+
}, null, 8, Ie)) : m("", !0)
|
|
108
109
|
], 2)
|
|
109
110
|
])
|
|
110
111
|
])
|
|
@@ -113,8 +114,8 @@ const Me = { class: "media-selector" }, qe = ["accept"], Le = { class: "media-se
|
|
|
113
114
|
}, 8, ["label", "required"]));
|
|
114
115
|
}
|
|
115
116
|
});
|
|
116
|
-
function
|
|
117
|
-
const r =
|
|
117
|
+
function W(b) {
|
|
118
|
+
const r = b;
|
|
118
119
|
r.__i18n = r.__i18n || [], r.__i18n.push({
|
|
119
120
|
locale: "",
|
|
120
121
|
resource: {
|
|
@@ -133,30 +134,30 @@ function z(p) {
|
|
|
133
134
|
}
|
|
134
135
|
});
|
|
135
136
|
}
|
|
136
|
-
typeof
|
|
137
|
-
const
|
|
137
|
+
typeof W == "function" && W(xe);
|
|
138
|
+
const He = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-form" }, Ne = /* @__PURE__ */ G({
|
|
138
139
|
__name: "GiftCardSkeleton",
|
|
139
|
-
setup(
|
|
140
|
-
return (r,
|
|
141
|
-
l("div",
|
|
140
|
+
setup(b) {
|
|
141
|
+
return (r, p) => (s(), c("div", He, [
|
|
142
|
+
l("div", De, [
|
|
142
143
|
t(U),
|
|
143
144
|
t(U),
|
|
144
145
|
t(U),
|
|
145
146
|
t(U),
|
|
146
147
|
t(U, { "is-text-area": "" }),
|
|
147
|
-
t(
|
|
148
|
+
t(Ue, { height: "44px" })
|
|
148
149
|
])
|
|
149
150
|
]));
|
|
150
151
|
}
|
|
151
|
-
}),
|
|
152
|
+
}), je = /* @__PURE__ */ x(Ne, [["__scopeId", "data-v-ba3efaa1"]]), ze = { class: "konnectio-accept-terms" }, We = /* @__PURE__ */ G({
|
|
152
153
|
__name: "_",
|
|
153
154
|
props: {
|
|
154
155
|
content: {},
|
|
155
156
|
buttonLabel: {}
|
|
156
157
|
},
|
|
157
|
-
setup(
|
|
158
|
-
const { t: r } = L(),
|
|
159
|
-
return (o, u) => (
|
|
158
|
+
setup(b) {
|
|
159
|
+
const { t: r } = L(), p = O(!1);
|
|
160
|
+
return (o, u) => (s(), c("div", ze, [
|
|
160
161
|
t(e(oe), {
|
|
161
162
|
keypath: "general.termsAndConditionsNotice",
|
|
162
163
|
tag: "span",
|
|
@@ -169,44 +170,44 @@ const Ne = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
169
170
|
l("a", {
|
|
170
171
|
class: "konnectio-accept-terms-link",
|
|
171
172
|
target: "_blank",
|
|
172
|
-
onClick: u[0] || (u[0] = te((h) =>
|
|
173
|
+
onClick: u[0] || (u[0] = te((h) => p.value = !0, ["prevent"]))
|
|
173
174
|
}, [
|
|
174
175
|
l("span", null, q(e(r)("general.termsAndConditions")), 1)
|
|
175
176
|
])
|
|
176
177
|
]),
|
|
177
178
|
_: 1
|
|
178
179
|
}),
|
|
179
|
-
t(
|
|
180
|
-
modelValue:
|
|
181
|
-
"onUpdate:modelValue": u[1] || (u[1] = (h) =>
|
|
180
|
+
t(Ge, {
|
|
181
|
+
modelValue: p.value,
|
|
182
|
+
"onUpdate:modelValue": u[1] || (u[1] = (h) => p.value = h),
|
|
182
183
|
description: o.content
|
|
183
184
|
}, null, 8, ["modelValue", "description"])
|
|
184
185
|
]));
|
|
185
186
|
}
|
|
186
|
-
}),
|
|
187
|
+
}), Ke = /* @__PURE__ */ x(We, [["__scopeId", "data-v-f587c956"]]), Oe = /* @__PURE__ */ G({
|
|
187
188
|
__name: "GiftCard",
|
|
188
|
-
setup(
|
|
189
|
-
const { t: r } = L(),
|
|
190
|
-
return (o, u) => (
|
|
191
|
-
content: e(
|
|
189
|
+
setup(b) {
|
|
190
|
+
const { t: r } = L(), p = I();
|
|
191
|
+
return (o, u) => (s(), y(Ke, {
|
|
192
|
+
content: e(p).termsOfService,
|
|
192
193
|
"button-label": e(r)("giftCard.orderGiftCard")
|
|
193
194
|
}, null, 8, ["content", "button-label"]));
|
|
194
195
|
}
|
|
195
|
-
}),
|
|
196
|
+
}), Ye = ["data-layout"], Je = { id: "konnectio-gift-card-wrapper" }, Qe = { id: "konnectio-gift-card-title" }, Xe = { id: "konnectio-gift-card-content" }, Ze = { id: "konnectio-gift-card-payment" }, el = ["innerHTML"], ll = { key: 0 }, al = {
|
|
196
197
|
key: 0,
|
|
197
198
|
id: "konnectio-select-place-type"
|
|
198
|
-
},
|
|
199
|
-
class: /* @__PURE__ */
|
|
200
|
-
},
|
|
199
|
+
}, tl = {
|
|
200
|
+
class: /* @__PURE__ */ J(["konnectio-label", "required"])
|
|
201
|
+
}, ol = { id: "konnectio-select-place-type-input" }, nl = ["innerHTML"], il = {
|
|
201
202
|
key: 0,
|
|
202
203
|
id: "konnectio-gift-card-order"
|
|
203
|
-
},
|
|
204
|
+
}, sl = { class: "konnectio-panel" }, rl = {
|
|
204
205
|
key: 1,
|
|
205
206
|
id: "konnectio-gift-card-remarks"
|
|
206
|
-
},
|
|
207
|
+
}, dl = {
|
|
207
208
|
key: 2,
|
|
208
209
|
id: "konnectio-gift-card-order-minimal"
|
|
209
|
-
},
|
|
210
|
+
}, ul = { id: "konnectio-gift-card-recaptcha" }, cl = /* @__PURE__ */ G({
|
|
210
211
|
name: "GiftCardLayout",
|
|
211
212
|
__name: "GiftCard",
|
|
212
213
|
props: {
|
|
@@ -215,103 +216,103 @@ const Ne = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
215
216
|
placeType: {},
|
|
216
217
|
styling: {}
|
|
217
218
|
},
|
|
218
|
-
setup(
|
|
219
|
-
const r =
|
|
219
|
+
setup(b) {
|
|
220
|
+
const r = b, p = Y(() => ({
|
|
220
221
|
panelMaxWidth: "800px",
|
|
221
222
|
...r.styling
|
|
222
223
|
})), { t: o } = L(), {
|
|
223
224
|
name: u,
|
|
224
225
|
email: h,
|
|
225
|
-
phone:
|
|
226
|
-
value:
|
|
226
|
+
phone: f,
|
|
227
|
+
value: k,
|
|
227
228
|
remark: V,
|
|
228
229
|
showValue: H,
|
|
229
|
-
quantity:
|
|
230
|
+
quantity: $,
|
|
230
231
|
media: D,
|
|
231
|
-
placeId:
|
|
232
|
+
placeId: w,
|
|
232
233
|
placeType: a,
|
|
233
234
|
showFormPage: d,
|
|
234
235
|
showPaymentPage: g,
|
|
235
|
-
showConfirmationPage:
|
|
236
|
-
places:
|
|
237
|
-
hasFilledForm:
|
|
238
|
-
hasForcedPlaceType:
|
|
236
|
+
showConfirmationPage: B,
|
|
237
|
+
places: _,
|
|
238
|
+
hasFilledForm: P,
|
|
239
|
+
hasForcedPlaceType: R,
|
|
239
240
|
isWaitingForResponse: F
|
|
240
|
-
} =
|
|
241
|
+
} = z(I()), { initialize: Q, orderGiftCard: N, fetchMetadata: X } = I(), { isRecaptchaEnabled: Z, currency: ee, hasError: le } = z(he());
|
|
241
242
|
return ne(a, () => {
|
|
242
|
-
|
|
243
|
+
w.value = void 0;
|
|
243
244
|
}), ie(() => {
|
|
244
|
-
const
|
|
245
|
-
Q(
|
|
246
|
-
}), (
|
|
245
|
+
const E = r.placeType ? parseInt(r.placeType) : void 0;
|
|
246
|
+
Q(E);
|
|
247
|
+
}), (E, n) => (s(), y(ye, { styling: p.value }, {
|
|
247
248
|
default: C(() => [
|
|
248
|
-
(
|
|
249
|
+
(s(), y(se, null, {
|
|
249
250
|
default: C(() => [
|
|
250
|
-
t(
|
|
251
|
-
"access-token":
|
|
252
|
-
"data-layout":
|
|
251
|
+
t($e, {
|
|
252
|
+
"access-token": E.accessToken,
|
|
253
|
+
"data-layout": E.layout,
|
|
253
254
|
callback: e(X)
|
|
254
255
|
}, {
|
|
255
256
|
default: C(() => [
|
|
256
|
-
e(le) ? (
|
|
257
|
+
e(le) ? (s(), y(Te, {
|
|
257
258
|
key: 1,
|
|
258
259
|
title: "Unable to render Gift card module",
|
|
259
260
|
description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
|
|
260
|
-
})) : (
|
|
261
|
+
})) : (s(), c("div", {
|
|
261
262
|
key: 0,
|
|
262
263
|
id: "konnectio-gift-card-module",
|
|
263
|
-
"data-layout":
|
|
264
|
+
"data-layout": E.layout
|
|
264
265
|
}, [
|
|
265
|
-
l("div",
|
|
266
|
-
l("h2",
|
|
266
|
+
l("div", Je, [
|
|
267
|
+
l("h2", Qe, [
|
|
267
268
|
l("span", null, q(e(o)("giftCard.title")), 1)
|
|
268
269
|
]),
|
|
269
|
-
l("div",
|
|
270
|
-
|
|
271
|
-
t(
|
|
270
|
+
l("div", Xe, [
|
|
271
|
+
A(l("div", Ze, [
|
|
272
|
+
t(we)
|
|
272
273
|
], 512), [
|
|
273
|
-
[
|
|
274
|
+
[S, e(g)]
|
|
274
275
|
]),
|
|
275
|
-
|
|
276
|
+
A(l("div", null, [
|
|
276
277
|
l("p", {
|
|
277
278
|
id: "konnectio-gift-card-description",
|
|
278
279
|
innerHTML: e(o)("giftCard.description")
|
|
279
|
-
}, null, 8,
|
|
280
|
+
}, null, 8, el),
|
|
280
281
|
l("form", null, [
|
|
281
|
-
e(
|
|
282
|
-
e(
|
|
283
|
-
l("label",
|
|
282
|
+
e(R) ? m("", !0) : (s(), c("div", ll, [
|
|
283
|
+
e(_) ? (s(), c("div", al, [
|
|
284
|
+
l("label", tl, [
|
|
284
285
|
l("span", null, q(e(o)("giftCard.selectType")), 1)
|
|
285
286
|
]),
|
|
286
|
-
l("div",
|
|
287
|
+
l("div", ol, [
|
|
287
288
|
l("ul", null, [
|
|
288
|
-
(
|
|
289
|
-
t(
|
|
289
|
+
(s(!0), c(re, null, de(e(_), (i, j) => (s(), c("li", { key: j }, [
|
|
290
|
+
t(Fe, {
|
|
290
291
|
modelValue: e(a),
|
|
291
|
-
"onUpdate:modelValue":
|
|
292
|
+
"onUpdate:modelValue": n[0] || (n[0] = (ae) => v(a) ? a.value = ae : null),
|
|
292
293
|
type: "radio",
|
|
293
294
|
name: "placeType",
|
|
294
295
|
val: j,
|
|
295
|
-
label:
|
|
296
|
+
label: i.label
|
|
296
297
|
}, null, 8, ["modelValue", "val", "label"])
|
|
297
298
|
]))), 128))
|
|
298
299
|
]),
|
|
299
|
-
e(
|
|
300
|
+
e(_)[e(a)] && e(_)[e(a)].data.length > 1 ? (s(), y(ke, {
|
|
300
301
|
key: 0,
|
|
301
|
-
modelValue: e(
|
|
302
|
-
"onUpdate:modelValue":
|
|
302
|
+
modelValue: e(w),
|
|
303
|
+
"onUpdate:modelValue": n[1] || (n[1] = (i) => v(w) ? w.value = i : null),
|
|
303
304
|
placeholder: e(o)("giftCard.selectPlacePlaceholder"),
|
|
304
|
-
options: e(
|
|
305
|
+
options: e(_)[e(a)].data,
|
|
305
306
|
labelKey: "name",
|
|
306
307
|
valueKey: "id",
|
|
307
308
|
required: ""
|
|
308
|
-
}, null, 8, ["modelValue", "placeholder", "options"])) :
|
|
309
|
+
}, null, 8, ["modelValue", "placeholder", "options"])) : m("", !0)
|
|
309
310
|
])
|
|
310
|
-
])) : (
|
|
311
|
+
])) : (s(), y(_e, { key: 1 }))
|
|
311
312
|
])),
|
|
312
313
|
t(M, {
|
|
313
314
|
modelValue: e(u),
|
|
314
|
-
"onUpdate:modelValue":
|
|
315
|
+
"onUpdate:modelValue": n[2] || (n[2] = (i) => v(u) ? u.value = i : null),
|
|
315
316
|
type: "text",
|
|
316
317
|
name: "name",
|
|
317
318
|
autocomplete: "name",
|
|
@@ -322,7 +323,7 @@ const Ne = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
322
323
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
323
324
|
t(M, {
|
|
324
325
|
modelValue: e(h),
|
|
325
|
-
"onUpdate:modelValue":
|
|
326
|
+
"onUpdate:modelValue": n[3] || (n[3] = (i) => v(h) ? h.value = i : null),
|
|
326
327
|
type: "email",
|
|
327
328
|
name: "email",
|
|
328
329
|
autocomplete: "email",
|
|
@@ -331,17 +332,17 @@ const Ne = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
331
332
|
placeholder: e(o)("giftCard.emailPlaceholder"),
|
|
332
333
|
required: ""
|
|
333
334
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
334
|
-
t(
|
|
335
|
-
modelValue: e(
|
|
336
|
-
"onUpdate:modelValue":
|
|
335
|
+
t(Ee, {
|
|
336
|
+
modelValue: e(f),
|
|
337
|
+
"onUpdate:modelValue": n[4] || (n[4] = (i) => v(f) ? f.value = i : null),
|
|
337
338
|
icon: "phone-office",
|
|
338
339
|
label: e(o)("giftCard.phone"),
|
|
339
340
|
placeholder: e(o)("giftCard.phonePlaceholder"),
|
|
340
341
|
required: ""
|
|
341
342
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
342
343
|
t(M, {
|
|
343
|
-
modelValue: e(
|
|
344
|
-
"onUpdate:modelValue":
|
|
344
|
+
modelValue: e(k),
|
|
345
|
+
"onUpdate:modelValue": n[5] || (n[5] = (i) => v(k) ? k.value = i : null),
|
|
345
346
|
type: "number",
|
|
346
347
|
name: "value",
|
|
347
348
|
label: e(o)("giftCard.value"),
|
|
@@ -350,78 +351,78 @@ const Ne = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
350
351
|
suffix: e(ee),
|
|
351
352
|
required: ""
|
|
352
353
|
}, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
t(
|
|
356
|
-
modelValue: e(
|
|
357
|
-
"onUpdate:modelValue":
|
|
354
|
+
m("", !0),
|
|
355
|
+
m("", !0),
|
|
356
|
+
t(ge, {
|
|
357
|
+
modelValue: e($),
|
|
358
|
+
"onUpdate:modelValue": n[8] || (n[8] = (i) => v($) ? $.value = i : null),
|
|
358
359
|
label: e(o)("giftCard.quantity"),
|
|
359
360
|
icon: "gift-card",
|
|
360
361
|
required: ""
|
|
361
362
|
}, null, 8, ["modelValue", "label"])
|
|
362
363
|
])
|
|
363
364
|
], 512), [
|
|
364
|
-
[
|
|
365
|
+
[S, e(d)]
|
|
365
366
|
]),
|
|
366
|
-
|
|
367
|
+
A(l("div", null, [
|
|
367
368
|
l("div", {
|
|
368
369
|
innerHTML: e(o)("giftCard.thankYou")
|
|
369
|
-
}, null, 8,
|
|
370
|
+
}, null, 8, nl)
|
|
370
371
|
], 512), [
|
|
371
|
-
[
|
|
372
|
+
[S, e(B)]
|
|
372
373
|
])
|
|
373
374
|
]),
|
|
374
|
-
|
|
375
|
-
l("div",
|
|
376
|
-
t(
|
|
375
|
+
E.layout !== "minimal" && e(d) ? (s(), c("div", il, [
|
|
376
|
+
l("div", sl, [
|
|
377
|
+
t(T, {
|
|
377
378
|
label: e(o)("giftCard.orderGiftCard"),
|
|
378
379
|
"full-width": !0,
|
|
379
|
-
disabled: !e(
|
|
380
|
+
disabled: !e(P),
|
|
380
381
|
"is-loading": e(F),
|
|
381
|
-
"onUpdate:isLoading":
|
|
382
|
+
"onUpdate:isLoading": n[9] || (n[9] = (i) => v(F) ? F.value = i : null),
|
|
382
383
|
onClickEvent: e(N)
|
|
383
384
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
|
|
384
385
|
])
|
|
385
|
-
])) :
|
|
386
|
-
e(d) ? (
|
|
386
|
+
])) : m("", !0),
|
|
387
|
+
e(d) ? (s(), c("div", rl, [
|
|
387
388
|
t(M, {
|
|
388
389
|
modelValue: e(V),
|
|
389
|
-
"onUpdate:modelValue":
|
|
390
|
+
"onUpdate:modelValue": n[10] || (n[10] = (i) => v(V) ? V.value = i : null),
|
|
390
391
|
type: "textarea",
|
|
391
392
|
name: "remark",
|
|
392
393
|
label: e(o)("giftCard.remark"),
|
|
393
394
|
icon: "info-circle",
|
|
394
395
|
placeholder: e(o)("giftCard.remarkPlaceholder")
|
|
395
396
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
396
|
-
])) :
|
|
397
|
-
e(d) ? (
|
|
398
|
-
t(
|
|
397
|
+
])) : m("", !0),
|
|
398
|
+
e(d) ? (s(), c("div", dl, [
|
|
399
|
+
t(T, {
|
|
399
400
|
label: e(o)("giftCard.orderGiftCard"),
|
|
400
401
|
"full-width": !0,
|
|
401
|
-
disabled: !e(
|
|
402
|
+
disabled: !e(P),
|
|
402
403
|
"data-test": "orderGiftCard",
|
|
403
404
|
"is-loading": e(F),
|
|
404
|
-
"onUpdate:isLoading":
|
|
405
|
+
"onUpdate:isLoading": n[11] || (n[11] = (i) => v(F) ? F.value = i : null),
|
|
405
406
|
onClickEvent: e(N)
|
|
406
407
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
|
|
407
408
|
l("div", null, [
|
|
408
|
-
|
|
409
|
-
t(
|
|
409
|
+
n[12] || (n[12] = l("div", { class: "konnectio-divider" }, null, -1)),
|
|
410
|
+
t(Oe)
|
|
410
411
|
]),
|
|
411
|
-
|
|
412
|
-
t(
|
|
412
|
+
A(l("div", ul, [
|
|
413
|
+
t(Pe)
|
|
413
414
|
], 512), [
|
|
414
|
-
[
|
|
415
|
+
[S, e(Z)]
|
|
415
416
|
])
|
|
416
|
-
])) :
|
|
417
|
+
])) : m("", !0)
|
|
417
418
|
])
|
|
418
|
-
], 8,
|
|
419
|
+
], 8, Ye))
|
|
419
420
|
]),
|
|
420
421
|
_: 1
|
|
421
422
|
}, 8, ["access-token", "data-layout", "callback"])
|
|
422
423
|
]),
|
|
423
424
|
fallback: C(() => [
|
|
424
|
-
t(
|
|
425
|
+
t(je)
|
|
425
426
|
]),
|
|
426
427
|
_: 1
|
|
427
428
|
}))
|
|
@@ -429,8 +430,8 @@ const Ne = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
429
430
|
_: 1
|
|
430
431
|
}, 8, ["styling"]));
|
|
431
432
|
}
|
|
432
|
-
}), K = /* @__PURE__ */ x(
|
|
433
|
-
class
|
|
433
|
+
}), K = /* @__PURE__ */ x(cl, [["__scopeId", "data-v-278e1031"]]), pl = ue(), ml = fe();
|
|
434
|
+
class fl extends HTMLElement {
|
|
434
435
|
vueApp;
|
|
435
436
|
constructor() {
|
|
436
437
|
super();
|
|
@@ -439,14 +440,14 @@ class _l extends HTMLElement {
|
|
|
439
440
|
this.vueApp.unmount();
|
|
440
441
|
}
|
|
441
442
|
connectedCallback() {
|
|
442
|
-
const r =
|
|
443
|
-
this.vueApp =
|
|
444
|
-
const
|
|
445
|
-
this.vueApp.mount(
|
|
443
|
+
const r = ce(K, this.attributes);
|
|
444
|
+
this.vueApp = pe(K, r), this.vueApp.provide("emitter", ml), this.vueApp.use(pl), this.vueApp.use(me), this.vueApp.use(Ve), this.vueApp.use(Ce, { bootstrap: !0 });
|
|
445
|
+
const p = document.createElement("div");
|
|
446
|
+
this.vueApp.mount(p), this.appendChild(p.children[0]);
|
|
446
447
|
}
|
|
447
448
|
}
|
|
448
|
-
window.customElements.define("konnectio-gift-card",
|
|
449
|
+
window.customElements.define("konnectio-gift-card", fl);
|
|
449
450
|
export {
|
|
450
|
-
|
|
451
|
+
fl as default
|
|
451
452
|
};
|
|
452
453
|
//# sourceMappingURL=gift-card.js.map
|
package/dist/gift-card.js.br
CHANGED
|
Binary file
|