@konnectio/core 4.2.25 → 4.2.27
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-gp1YogLd.js → ActionField-rurn7YSq.js} +7 -7
- package/dist/ActionField-rurn7YSq.js.br +0 -0
- package/dist/{AvailabilitySkeleton-csEApaWD.js → AvailabilitySkeleton-7tomoSus.js} +11 -11
- package/dist/AvailabilitySkeleton-7tomoSus.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-Cy6mcpQN.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-OFrOXosT.js} +3 -3
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-OFrOXosT.js.br +0 -0
- package/dist/{CheckoutWindow-Cc7iFvrz.js → CheckoutWindow-CL-_t2RO.js} +16 -16
- package/dist/CheckoutWindow-CL-_t2RO.js.br +0 -0
- package/dist/{ErrorMessage-du25Qr6a.js → ErrorMessage-CFMPlZNf.js} +3 -3
- package/dist/ErrorMessage-CFMPlZNf.js.br +0 -0
- package/dist/{EventAvailabilityForm-DWPV-G5E.js → EventAvailabilityForm-DIexB3Et.js} +7 -7
- package/dist/EventAvailabilityForm-DIexB3Et.js.br +0 -0
- package/dist/{Field-ptXfJeFU.js → Field-CoGZNpiZ.js} +4 -4
- package/dist/Field-CoGZNpiZ.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-TAam1O6x.js → Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-C1PT56Xb.js} +3 -3
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-BQABtd_z.js → SelectField.vue_vue_type_style_index_0_lang-K78tVJ24.js} +2438 -2371
- package/dist/SelectField.vue_vue_type_style_index_0_lang-K78tVJ24.js.br +0 -0
- package/dist/{TermsOfService-Cx5AzswQ.js → TermsOfService-Q1Y_rh1C.js} +4 -4
- package/dist/_-BKIl1zAq.js +5 -0
- package/dist/{_.vue_vue_type_style_index_0_lang-2bfNJETA.js → _.vue_vue_type_style_index_0_lang-DgHD0zWv.js} +3 -3
- package/dist/availability.js +6 -6
- package/dist/availability.js.br +0 -0
- package/dist/cancel-reservation.js +5 -5
- package/dist/cancel-reservation.js.br +0 -0
- package/dist/core.css +1 -1
- package/dist/core.css.br +0 -0
- package/dist/deep-link.js +1 -1
- package/dist/deep-link.js.br +0 -0
- package/dist/event.js +111 -111
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +9 -9
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +89 -89
- package/dist/gift-card.js.br +0 -0
- package/dist/{giftCard-D0k6vkQT.js → giftCard-BDwrh2jt.js} +11 -11
- package/dist/giftCard-BDwrh2jt.js.br +0 -0
- package/dist/hotel.js +338 -336
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-B0HkLSUH.js → masonry.plugin-Bej_yRE7.js} +6 -6
- package/dist/masonry.plugin-Bej_yRE7.js.br +0 -0
- package/dist/{mitt-twwE2qts.js → mitt-gcxZCriv.js} +4274 -4359
- package/dist/mitt-gcxZCriv.js.br +0 -0
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/dist/{style-mx4qkibg.js → style-CzTnJo8X.js} +2 -2
- package/dist/style-CzTnJo8X.js.br +0 -0
- package/package.json +3 -3
- package/dist/ActionField-gp1YogLd.js.br +0 -0
- package/dist/AvailabilitySkeleton-csEApaWD.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-Cy6mcpQN.js.br +0 -0
- package/dist/CheckoutWindow-Cc7iFvrz.js.br +0 -0
- package/dist/ErrorMessage-du25Qr6a.js.br +0 -0
- package/dist/EventAvailabilityForm-DWPV-G5E.js.br +0 -0
- package/dist/Field-ptXfJeFU.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-BQABtd_z.js.br +0 -0
- package/dist/_-eXEkfs6X.js +0 -5
- package/dist/giftCard-D0k6vkQT.js.br +0 -0
- package/dist/masonry.plugin-B0HkLSUH.js.br +0 -0
- package/dist/mitt-twwE2qts.js.br +0 -0
- package/dist/style-mx4qkibg.js.br +0 -0
package/dist/event.js.br
CHANGED
|
Binary file
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { d as x, h as v, b as s, e as t, f as a, c as T, u as $, s as k, a as m, w as p, S as B, g as e, j as I, i as D, t as i, z as b, k as N, _ as U, l as F, m as H, p as R } from "./mitt-
|
|
2
|
-
import { _ as A,
|
|
3
|
-
import { u as q } from "./giftCard-
|
|
4
|
-
import { _ as J } from "./_.vue_vue_type_style_index_0_lang-
|
|
5
|
-
import { A as K } from "./ActionField-
|
|
6
|
-
import { E as g } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-
|
|
7
|
-
import { F as y } from "./Field-
|
|
8
|
-
import { E as Q } from "./ErrorMessage-
|
|
9
|
-
import { G as Y } from "./style-
|
|
1
|
+
import { d as x, h as v, b as s, e as t, f as a, c as T, u as $, s as k, a as m, w as p, S as B, g as e, j as I, i as D, t as i, z as b, k as N, _ as U, l as F, m as H, p as R } from "./mitt-gcxZCriv.js";
|
|
2
|
+
import { _ as A, y as C, f as j, I as h, o as z, s as O, C as W } from "./SelectField.vue_vue_type_style_index_0_lang-K78tVJ24.js";
|
|
3
|
+
import { u as q } from "./giftCard-BDwrh2jt.js";
|
|
4
|
+
import { _ as J } from "./_.vue_vue_type_style_index_0_lang-DgHD0zWv.js";
|
|
5
|
+
import { A as K } from "./ActionField-rurn7YSq.js";
|
|
6
|
+
import { E as g } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-C1PT56Xb.js";
|
|
7
|
+
import { F as y } from "./Field-CoGZNpiZ.js";
|
|
8
|
+
import { E as Q } from "./ErrorMessage-CFMPlZNf.js";
|
|
9
|
+
import { G as Y } from "./style-CzTnJo8X.js";
|
|
10
10
|
const Z = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-validation-skeleton-form" }, et = { class: "gift-card-validation-skeleton-text" }, at = { class: "gift-card-validation-skeleton-input" }, nt = /* @__PURE__ */ x({
|
|
11
11
|
__name: "GiftCardValidationSkeleton",
|
|
12
12
|
setup(u) {
|
|
Binary file
|
package/dist/gift-card.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { d as G, u as q, r as O, c as Y, a as y, b as s, w as C, e as l, h as c, i as m, f as t, g as e, n as J, t as L, j as te, C as oe, s as z, D as ne, o as ie, S as se, E as S, G as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { _ as
|
|
6
|
-
import { C as we, a as
|
|
7
|
-
import { E as
|
|
8
|
-
import { F as U } from "./Field-
|
|
9
|
-
import { E as
|
|
10
|
-
import { S as
|
|
11
|
-
const
|
|
1
|
+
import { d as G, u as q, r as O, c as Y, a as y, b as s, w as C, e as l, h as c, i as m, f as t, g as e, n as J, t as L, j as te, C as oe, s as z, D as ne, o as ie, S as se, E as S, G as A, F as re, v as de, z as v, k as ue, _ as ce, l as pe, m as me, p as fe } from "./mitt-gcxZCriv.js";
|
|
2
|
+
import { a as ve, e as T, x as be, _ as x, f as he, d as _e, L as ke, T as M, h as ge, C as ye, v as Ce } from "./SelectField.vue_vue_type_style_index_0_lang-K78tVJ24.js";
|
|
3
|
+
import { G as Ve } from "./style-CzTnJo8X.js";
|
|
4
|
+
import { u as I } from "./giftCard-BDwrh2jt.js";
|
|
5
|
+
import { _ as $e } from "./_.vue_vue_type_style_index_0_lang-DgHD0zWv.js";
|
|
6
|
+
import { C as we, a as Fe, P as Ee, _ as Pe } from "./CheckoutWindow-CL-_t2RO.js";
|
|
7
|
+
import { E as Ue } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-C1PT56Xb.js";
|
|
8
|
+
import { F as U } from "./Field-CoGZNpiZ.js";
|
|
9
|
+
import { E as Te } from "./ErrorMessage-CFMPlZNf.js";
|
|
10
|
+
import { S as Ge } from "./TermsOfService-Q1Y_rh1C.js";
|
|
11
|
+
const Se = { class: "media-selector" }, Ae = ["accept"], Me = { class: "media-selector-wrapper" }, Le = { class: "media-selector-tools" }, qe = { key: 0 }, Be = { key: 1 }, Re = { key: 2 }, Ie = ["src"], xe = /* @__PURE__ */ G({
|
|
12
12
|
__name: "MediaSelector",
|
|
13
13
|
props: {
|
|
14
14
|
modelValue: {},
|
|
@@ -19,7 +19,7 @@ const Ge = { class: "media-selector" }, Se = ["accept"], Me = { class: "media-se
|
|
|
19
19
|
},
|
|
20
20
|
emits: ["update:modelValue"],
|
|
21
21
|
setup(b, { emit: r }) {
|
|
22
|
-
const p = r, o = b, { t: u } = q(), { display: h } =
|
|
22
|
+
const p = r, o = b, { t: u } = q(), { display: h } = ve(), f = O(), _ = Y(() => o.modelValue.base64 !== "");
|
|
23
23
|
function V(a) {
|
|
24
24
|
p("update:modelValue", a);
|
|
25
25
|
}
|
|
@@ -30,7 +30,7 @@ const Ge = { class: "media-selector" }, Se = ["accept"], Me = { class: "media-se
|
|
|
30
30
|
type: ""
|
|
31
31
|
}), f.value && (f.value.value = "");
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function $() {
|
|
34
34
|
f.value && f.value.click();
|
|
35
35
|
}
|
|
36
36
|
function H(a, d) {
|
|
@@ -46,17 +46,17 @@ const Ge = { class: "media-selector" }, Se = ["accept"], Me = { class: "media-se
|
|
|
46
46
|
});
|
|
47
47
|
}, k.readAsDataURL(a);
|
|
48
48
|
}
|
|
49
|
-
async function
|
|
49
|
+
async function w() {
|
|
50
50
|
let a;
|
|
51
51
|
(a = f.value.files) instanceof FileList && H(a[0], V);
|
|
52
52
|
}
|
|
53
|
-
return (a, d) => (s(), y(
|
|
53
|
+
return (a, d) => (s(), y(be, {
|
|
54
54
|
label: a.label,
|
|
55
55
|
required: a.required,
|
|
56
56
|
type: "media"
|
|
57
57
|
}, {
|
|
58
58
|
default: C(() => [
|
|
59
|
-
l("div",
|
|
59
|
+
l("div", Se, [
|
|
60
60
|
l("input", {
|
|
61
61
|
ref_key: "fileInput",
|
|
62
62
|
ref: f,
|
|
@@ -64,29 +64,29 @@ const Ge = { class: "media-selector" }, Se = ["accept"], Me = { class: "media-se
|
|
|
64
64
|
class: "hidden",
|
|
65
65
|
accept: a.validation,
|
|
66
66
|
single: "",
|
|
67
|
-
onChange: d[0] || (d[0] = (g) =>
|
|
68
|
-
}, null, 40,
|
|
67
|
+
onChange: d[0] || (d[0] = (g) => w())
|
|
68
|
+
}, null, 40, Ae),
|
|
69
69
|
l("div", Me, [
|
|
70
|
-
l("ul",
|
|
71
|
-
_.value ? m("", !0) : (s(), c("li",
|
|
70
|
+
l("ul", Le, [
|
|
71
|
+
_.value ? m("", !0) : (s(), c("li", qe, [
|
|
72
72
|
t(T, {
|
|
73
73
|
label: e(u)("uploadFile"),
|
|
74
74
|
type: "button",
|
|
75
75
|
icon: "upload",
|
|
76
76
|
"icon-color": a.iconColor,
|
|
77
|
-
onClickEvent: d[1] || (d[1] = (g) =>
|
|
77
|
+
onClickEvent: d[1] || (d[1] = (g) => $())
|
|
78
78
|
}, null, 8, ["label", "icon-color"])
|
|
79
79
|
])),
|
|
80
|
-
_.value ? (s(), c("li",
|
|
80
|
+
_.value ? (s(), c("li", Be, [
|
|
81
81
|
t(T, {
|
|
82
82
|
label: e(u)("replaceFile"),
|
|
83
83
|
type: "button",
|
|
84
84
|
icon: "repeat-alt",
|
|
85
85
|
"icon-color": a.iconColor,
|
|
86
|
-
onClickEvent: d[2] || (d[2] = (g) =>
|
|
86
|
+
onClickEvent: d[2] || (d[2] = (g) => $())
|
|
87
87
|
}, null, 8, ["label", "icon-color"])
|
|
88
88
|
])) : m("", !0),
|
|
89
|
-
_.value ? (s(), c("li",
|
|
89
|
+
_.value ? (s(), c("li", Re, [
|
|
90
90
|
t(T, {
|
|
91
91
|
label: e(u)("removeFile"),
|
|
92
92
|
type: "button",
|
|
@@ -105,7 +105,7 @@ const Ge = { class: "media-selector" }, Se = ["accept"], Me = { class: "media-se
|
|
|
105
105
|
a.modelValue ? (s(), c("img", {
|
|
106
106
|
key: 0,
|
|
107
107
|
src: a.modelValue.base64
|
|
108
|
-
}, null, 8,
|
|
108
|
+
}, null, 8, Ie)) : m("", !0)
|
|
109
109
|
], 2)
|
|
110
110
|
])
|
|
111
111
|
])
|
|
@@ -134,22 +134,22 @@ function W(b) {
|
|
|
134
134
|
}
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
|
-
typeof W == "function" && W(
|
|
138
|
-
const
|
|
137
|
+
typeof W == "function" && W(xe);
|
|
138
|
+
const De = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-form" }, Ne = /* @__PURE__ */ G({
|
|
139
139
|
__name: "GiftCardSkeleton",
|
|
140
140
|
setup(b) {
|
|
141
|
-
return (r, p) => (s(), c("div",
|
|
142
|
-
l("div",
|
|
141
|
+
return (r, p) => (s(), c("div", De, [
|
|
142
|
+
l("div", He, [
|
|
143
143
|
t(U),
|
|
144
144
|
t(U),
|
|
145
145
|
t(U),
|
|
146
146
|
t(U),
|
|
147
147
|
t(U, { "is-text-area": "" }),
|
|
148
|
-
t(
|
|
148
|
+
t(Ue, { height: "44px" })
|
|
149
149
|
])
|
|
150
150
|
]));
|
|
151
151
|
}
|
|
152
|
-
}),
|
|
152
|
+
}), je = /* @__PURE__ */ x(Ne, [["__scopeId", "data-v-ba3efaa1"]]), ze = { class: "konnectio-accept-terms" }, We = /* @__PURE__ */ G({
|
|
153
153
|
__name: "_",
|
|
154
154
|
props: {
|
|
155
155
|
content: {},
|
|
@@ -157,7 +157,7 @@ const xe = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
|
|
|
157
157
|
},
|
|
158
158
|
setup(b) {
|
|
159
159
|
const { t: r } = q(), p = O(!1);
|
|
160
|
-
return (o, u) => (s(), c("div",
|
|
160
|
+
return (o, u) => (s(), c("div", ze, [
|
|
161
161
|
t(e(oe), {
|
|
162
162
|
keypath: "general.termsAndConditionsNotice",
|
|
163
163
|
tag: "span",
|
|
@@ -177,37 +177,37 @@ const xe = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
|
|
|
177
177
|
]),
|
|
178
178
|
_: 1
|
|
179
179
|
}),
|
|
180
|
-
t(
|
|
180
|
+
t(Ge, {
|
|
181
181
|
modelValue: p.value,
|
|
182
182
|
"onUpdate:modelValue": u[1] || (u[1] = (h) => p.value = h),
|
|
183
183
|
description: o.content
|
|
184
184
|
}, null, 8, ["modelValue", "description"])
|
|
185
185
|
]));
|
|
186
186
|
}
|
|
187
|
-
}),
|
|
187
|
+
}), Ke = /* @__PURE__ */ x(We, [["__scopeId", "data-v-689c045a"]]), Oe = /* @__PURE__ */ G({
|
|
188
188
|
__name: "GiftCard",
|
|
189
189
|
setup(b) {
|
|
190
190
|
const { t: r } = q(), p = I();
|
|
191
|
-
return (o, u) => (s(), y(
|
|
191
|
+
return (o, u) => (s(), y(Ke, {
|
|
192
192
|
content: e(p).termsOfService,
|
|
193
193
|
"button-label": e(r)("giftCard.orderGiftCard")
|
|
194
194
|
}, null, 8, ["content", "button-label"]));
|
|
195
195
|
}
|
|
196
|
-
}),
|
|
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 = {
|
|
197
197
|
key: 0,
|
|
198
198
|
id: "konnectio-select-place-type"
|
|
199
|
-
},
|
|
199
|
+
}, tl = {
|
|
200
200
|
class: /* @__PURE__ */ J(["konnectio-label", "required"])
|
|
201
|
-
},
|
|
201
|
+
}, ol = { id: "konnectio-select-place-type-input" }, nl = ["innerHTML"], il = {
|
|
202
202
|
key: 0,
|
|
203
203
|
id: "konnectio-gift-card-order"
|
|
204
|
-
},
|
|
204
|
+
}, sl = { class: "konnectio-panel" }, rl = {
|
|
205
205
|
key: 1,
|
|
206
206
|
id: "konnectio-gift-card-remarks"
|
|
207
|
-
},
|
|
207
|
+
}, dl = {
|
|
208
208
|
key: 2,
|
|
209
209
|
id: "konnectio-gift-card-order-minimal"
|
|
210
|
-
},
|
|
210
|
+
}, ul = { id: "konnectio-gift-card-recaptcha" }, cl = /* @__PURE__ */ G({
|
|
211
211
|
name: "GiftCardLayout",
|
|
212
212
|
__name: "GiftCard",
|
|
213
213
|
props: {
|
|
@@ -227,9 +227,9 @@ const xe = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
|
|
|
227
227
|
value: _,
|
|
228
228
|
remark: V,
|
|
229
229
|
showValue: D,
|
|
230
|
-
quantity:
|
|
230
|
+
quantity: $,
|
|
231
231
|
media: H,
|
|
232
|
-
placeId:
|
|
232
|
+
placeId: w,
|
|
233
233
|
placeType: a,
|
|
234
234
|
showFormPage: d,
|
|
235
235
|
showPaymentPage: g,
|
|
@@ -238,23 +238,23 @@ const xe = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
|
|
|
238
238
|
hasFilledForm: P,
|
|
239
239
|
hasForcedPlaceType: R,
|
|
240
240
|
isWaitingForResponse: F
|
|
241
|
-
} = z(I()), { initialize: Q, orderGiftCard: N, fetchMetadata: X } = I(), { isRecaptchaEnabled: Z, currency: ee, hasError: le } = z(
|
|
241
|
+
} = z(I()), { initialize: Q, orderGiftCard: N, fetchMetadata: X } = I(), { isRecaptchaEnabled: Z, currency: ee, hasError: le } = z(he());
|
|
242
242
|
return ne(a, () => {
|
|
243
|
-
|
|
243
|
+
w.value = void 0;
|
|
244
244
|
}), ie(() => {
|
|
245
245
|
const E = r.placeType ? parseInt(r.placeType) : void 0;
|
|
246
246
|
Q(E);
|
|
247
|
-
}), (E, n) => (s(), y(
|
|
247
|
+
}), (E, n) => (s(), y(ye, { styling: p.value }, {
|
|
248
248
|
default: C(() => [
|
|
249
249
|
(s(), y(se, null, {
|
|
250
250
|
default: C(() => [
|
|
251
|
-
t(
|
|
251
|
+
t($e, {
|
|
252
252
|
"access-token": E.accessToken,
|
|
253
253
|
"data-layout": E.layout,
|
|
254
254
|
callback: e(X)
|
|
255
255
|
}, {
|
|
256
256
|
default: C(() => [
|
|
257
|
-
e(le) ? (s(), y(
|
|
257
|
+
e(le) ? (s(), y(Te, {
|
|
258
258
|
key: 1,
|
|
259
259
|
title: "Unable to render Gift card module",
|
|
260
260
|
description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
|
|
@@ -263,31 +263,31 @@ const xe = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
|
|
|
263
263
|
id: "konnectio-gift-card-module",
|
|
264
264
|
"data-layout": E.layout
|
|
265
265
|
}, [
|
|
266
|
-
l("div",
|
|
267
|
-
l("h2",
|
|
266
|
+
l("div", Je, [
|
|
267
|
+
l("h2", Qe, [
|
|
268
268
|
l("span", null, L(e(o)("giftCard.title")), 1)
|
|
269
269
|
]),
|
|
270
|
-
l("div",
|
|
271
|
-
S(l("div",
|
|
270
|
+
l("div", Xe, [
|
|
271
|
+
S(l("div", Ze, [
|
|
272
272
|
t(we)
|
|
273
273
|
], 512), [
|
|
274
|
-
[
|
|
274
|
+
[A, e(g)]
|
|
275
275
|
]),
|
|
276
276
|
S(l("div", null, [
|
|
277
277
|
l("p", {
|
|
278
278
|
id: "konnectio-gift-card-description",
|
|
279
279
|
innerHTML: e(o)("giftCard.description")
|
|
280
|
-
}, null, 8,
|
|
280
|
+
}, null, 8, el),
|
|
281
281
|
l("form", null, [
|
|
282
|
-
e(R) ? m("", !0) : (s(), c("div",
|
|
283
|
-
e(k) ? (s(), c("div",
|
|
284
|
-
l("label",
|
|
282
|
+
e(R) ? m("", !0) : (s(), c("div", ll, [
|
|
283
|
+
e(k) ? (s(), c("div", al, [
|
|
284
|
+
l("label", tl, [
|
|
285
285
|
l("span", null, L(e(o)("giftCard.selectType")), 1)
|
|
286
286
|
]),
|
|
287
|
-
l("div",
|
|
287
|
+
l("div", ol, [
|
|
288
288
|
l("ul", null, [
|
|
289
289
|
(s(!0), c(re, null, de(e(k), (i, j) => (s(), c("li", { key: j }, [
|
|
290
|
-
t(
|
|
290
|
+
t(Fe, {
|
|
291
291
|
modelValue: e(a),
|
|
292
292
|
"onUpdate:modelValue": n[0] || (n[0] = (ae) => v(a) ? a.value = ae : null),
|
|
293
293
|
type: "radio",
|
|
@@ -297,10 +297,10 @@ const xe = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
|
|
|
297
297
|
}, null, 8, ["modelValue", "val", "label"])
|
|
298
298
|
]))), 128))
|
|
299
299
|
]),
|
|
300
|
-
e(k)[e(a)] && e(k)[e(a)].data.length > 1 ? (s(), y(
|
|
300
|
+
e(k)[e(a)] && e(k)[e(a)].data.length > 1 ? (s(), y(_e, {
|
|
301
301
|
key: 0,
|
|
302
|
-
modelValue: e(
|
|
303
|
-
"onUpdate:modelValue": n[1] || (n[1] = (i) => v(
|
|
302
|
+
modelValue: e(w),
|
|
303
|
+
"onUpdate:modelValue": n[1] || (n[1] = (i) => v(w) ? w.value = i : null),
|
|
304
304
|
placeholder: e(o)("giftCard.selectPlacePlaceholder"),
|
|
305
305
|
options: e(k)[e(a)].data,
|
|
306
306
|
labelKey: "name",
|
|
@@ -308,9 +308,9 @@ const xe = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
|
|
|
308
308
|
required: ""
|
|
309
309
|
}, null, 8, ["modelValue", "placeholder", "options"])) : m("", !0)
|
|
310
310
|
])
|
|
311
|
-
])) : (s(), y(
|
|
311
|
+
])) : (s(), y(ke, { key: 1 }))
|
|
312
312
|
])),
|
|
313
|
-
t(
|
|
313
|
+
t(M, {
|
|
314
314
|
modelValue: e(u),
|
|
315
315
|
"onUpdate:modelValue": n[2] || (n[2] = (i) => v(u) ? u.value = i : null),
|
|
316
316
|
type: "text",
|
|
@@ -321,7 +321,7 @@ const xe = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
|
|
|
321
321
|
placeholder: e(o)("giftCard.namePlaceholder"),
|
|
322
322
|
required: ""
|
|
323
323
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
324
|
-
t(
|
|
324
|
+
t(M, {
|
|
325
325
|
modelValue: e(h),
|
|
326
326
|
"onUpdate:modelValue": n[3] || (n[3] = (i) => v(h) ? h.value = i : null),
|
|
327
327
|
type: "email",
|
|
@@ -332,7 +332,7 @@ const xe = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
|
|
|
332
332
|
placeholder: e(o)("giftCard.emailPlaceholder"),
|
|
333
333
|
required: ""
|
|
334
334
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
335
|
-
t(
|
|
335
|
+
t(Ee, {
|
|
336
336
|
modelValue: e(f),
|
|
337
337
|
"onUpdate:modelValue": n[4] || (n[4] = (i) => v(f) ? f.value = i : null),
|
|
338
338
|
icon: "phone-office",
|
|
@@ -340,7 +340,7 @@ const xe = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
|
|
|
340
340
|
placeholder: e(o)("giftCard.phonePlaceholder"),
|
|
341
341
|
required: ""
|
|
342
342
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
343
|
-
t(
|
|
343
|
+
t(M, {
|
|
344
344
|
modelValue: e(_),
|
|
345
345
|
"onUpdate:modelValue": n[5] || (n[5] = (i) => v(_) ? _.value = i : null),
|
|
346
346
|
type: "number",
|
|
@@ -353,27 +353,27 @@ const xe = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
|
|
|
353
353
|
}, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
|
|
354
354
|
m("", !0),
|
|
355
355
|
m("", !0),
|
|
356
|
-
t(
|
|
357
|
-
modelValue: e(
|
|
358
|
-
"onUpdate:modelValue": n[8] || (n[8] = (i) => v(
|
|
356
|
+
t(ge, {
|
|
357
|
+
modelValue: e($),
|
|
358
|
+
"onUpdate:modelValue": n[8] || (n[8] = (i) => v($) ? $.value = i : null),
|
|
359
359
|
label: e(o)("giftCard.quantity"),
|
|
360
360
|
icon: "gift-card",
|
|
361
361
|
required: ""
|
|
362
362
|
}, null, 8, ["modelValue", "label"])
|
|
363
363
|
])
|
|
364
364
|
], 512), [
|
|
365
|
-
[
|
|
365
|
+
[A, e(d)]
|
|
366
366
|
]),
|
|
367
367
|
S(l("div", null, [
|
|
368
368
|
l("div", {
|
|
369
369
|
innerHTML: e(o)("giftCard.thankYou")
|
|
370
|
-
}, null, 8,
|
|
370
|
+
}, null, 8, nl)
|
|
371
371
|
], 512), [
|
|
372
|
-
[
|
|
372
|
+
[A, e(B)]
|
|
373
373
|
])
|
|
374
374
|
]),
|
|
375
|
-
E.layout !== "minimal" && e(d) ? (s(), c("div",
|
|
376
|
-
l("div",
|
|
375
|
+
E.layout !== "minimal" && e(d) ? (s(), c("div", il, [
|
|
376
|
+
l("div", sl, [
|
|
377
377
|
t(T, {
|
|
378
378
|
label: e(o)("giftCard.orderGiftCard"),
|
|
379
379
|
"full-width": !0,
|
|
@@ -384,8 +384,8 @@ const xe = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
|
|
|
384
384
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
|
|
385
385
|
])
|
|
386
386
|
])) : m("", !0),
|
|
387
|
-
e(d) ? (s(), c("div",
|
|
388
|
-
t(
|
|
387
|
+
e(d) ? (s(), c("div", rl, [
|
|
388
|
+
t(M, {
|
|
389
389
|
modelValue: e(V),
|
|
390
390
|
"onUpdate:modelValue": n[10] || (n[10] = (i) => v(V) ? V.value = i : null),
|
|
391
391
|
type: "textarea",
|
|
@@ -395,7 +395,7 @@ const xe = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
|
|
|
395
395
|
placeholder: e(o)("giftCard.remarkPlaceholder")
|
|
396
396
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
397
397
|
])) : m("", !0),
|
|
398
|
-
e(d) ? (s(), c("div",
|
|
398
|
+
e(d) ? (s(), c("div", dl, [
|
|
399
399
|
t(T, {
|
|
400
400
|
label: e(o)("giftCard.orderGiftCard"),
|
|
401
401
|
"full-width": !0,
|
|
@@ -407,22 +407,22 @@ const xe = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
|
|
|
407
407
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
|
|
408
408
|
l("div", null, [
|
|
409
409
|
n[12] || (n[12] = l("div", { class: "konnectio-divider" }, null, -1)),
|
|
410
|
-
t(
|
|
410
|
+
t(Oe)
|
|
411
411
|
]),
|
|
412
|
-
S(l("div",
|
|
413
|
-
t(
|
|
412
|
+
S(l("div", ul, [
|
|
413
|
+
t(Pe)
|
|
414
414
|
], 512), [
|
|
415
|
-
[
|
|
415
|
+
[A, e(Z)]
|
|
416
416
|
])
|
|
417
417
|
])) : m("", !0)
|
|
418
418
|
])
|
|
419
|
-
], 8,
|
|
419
|
+
], 8, Ye))
|
|
420
420
|
]),
|
|
421
421
|
_: 1
|
|
422
422
|
}, 8, ["access-token", "data-layout", "callback"])
|
|
423
423
|
]),
|
|
424
424
|
fallback: C(() => [
|
|
425
|
-
t(
|
|
425
|
+
t(je)
|
|
426
426
|
]),
|
|
427
427
|
_: 1
|
|
428
428
|
}))
|
|
@@ -430,8 +430,8 @@ const xe = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
|
|
|
430
430
|
_: 1
|
|
431
431
|
}, 8, ["styling"]));
|
|
432
432
|
}
|
|
433
|
-
}), K = /* @__PURE__ */ x(
|
|
434
|
-
class
|
|
433
|
+
}), K = /* @__PURE__ */ x(cl, [["__scopeId", "data-v-06fd20aa"]]), pl = ue(), ml = ce, fl = ml();
|
|
434
|
+
class vl extends HTMLElement {
|
|
435
435
|
vueApp;
|
|
436
436
|
constructor() {
|
|
437
437
|
super();
|
|
@@ -441,13 +441,13 @@ class fl extends HTMLElement {
|
|
|
441
441
|
}
|
|
442
442
|
connectedCallback() {
|
|
443
443
|
const r = pe(K, this.attributes);
|
|
444
|
-
this.vueApp = me(K, r), this.vueApp.provide("emitter",
|
|
444
|
+
this.vueApp = me(K, r), this.vueApp.provide("emitter", fl), this.vueApp.use(pl), this.vueApp.use(fe), this.vueApp.use(Ve), this.vueApp.use(Ce, { bootstrap: !0 });
|
|
445
445
|
const p = document.createElement("div");
|
|
446
446
|
this.vueApp.mount(p), this.appendChild(p.children[0]);
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
|
-
window.customElements.define("konnectio-gift-card",
|
|
449
|
+
window.customElements.define("konnectio-gift-card", vl);
|
|
450
450
|
export {
|
|
451
|
-
|
|
451
|
+
vl as default
|
|
452
452
|
};
|
|
453
453
|
//# sourceMappingURL=gift-card.js.map
|
package/dist/gift-card.js.br
CHANGED
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { H as V, s as J, r as t, c as a, I as y } from "./mitt-
|
|
2
|
-
import {
|
|
1
|
+
import { H as V, s as J, r as t, c as a, I as y } from "./mitt-gcxZCriv.js";
|
|
2
|
+
import { z as K, a as Q, f as z, G as o, A as h, D as E, w as O, E as X, S } from "./SelectField.vue_vue_type_style_index_0_lang-K78tVJ24.js";
|
|
3
3
|
const $ = V("giftCard", () => {
|
|
4
|
-
const { pay:
|
|
4
|
+
const { pay: D } = K(), { display: G } = Q(), { metaData: w, currencyId: M, hasError: P } = J(z()), x = z(), s = t(o.InitialState), u = h("konnectio_name", "", void 0, { serializer: S.string }), v = h("konnectio_email", "", void 0, { serializer: S.string }), d = h("konnectio_phone", "", void 0, { serializer: S.string }), f = t(""), T = t(1), F = t(!0), b = t(""), i = t({
|
|
5
5
|
base64: "",
|
|
6
6
|
type: "",
|
|
7
7
|
name: ""
|
|
@@ -15,7 +15,7 @@ const $ = V("giftCard", () => {
|
|
|
15
15
|
label: y.t("giftCard.restaurantType"),
|
|
16
16
|
data: []
|
|
17
17
|
}
|
|
18
|
-
}, r =
|
|
18
|
+
}, r = w.value.hotels[0].places;
|
|
19
19
|
return r && r.forEach((n) => {
|
|
20
20
|
e[n.placeType].data.push(n);
|
|
21
21
|
}), Object.fromEntries(
|
|
@@ -35,12 +35,12 @@ const $ = V("giftCard", () => {
|
|
|
35
35
|
}), L = a(() => !(!u.value || !v.value || !(d.value.length >= 5) || !f.value || l.value === void 0)), q = a(() => !(s.value === o.InitialState && c.value)), N = a(() => !!(s.value === o.WaitingForResponse && c.value));
|
|
36
36
|
async function j() {
|
|
37
37
|
try {
|
|
38
|
-
const e = (await
|
|
38
|
+
const e = (await E().get("/gift-card/metadata", {
|
|
39
39
|
params: {
|
|
40
|
-
language:
|
|
40
|
+
language: O()
|
|
41
41
|
}
|
|
42
42
|
})).data;
|
|
43
|
-
e.success !== void 0 ?
|
|
43
|
+
e.success !== void 0 ? P.value = !e.success : P.value = !1, w.value = e;
|
|
44
44
|
} catch {
|
|
45
45
|
G({
|
|
46
46
|
message: y.t("alert.error.couldntFetchMetadata"),
|
|
@@ -49,11 +49,11 @@ const $ = V("giftCard", () => {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
async function B() {
|
|
52
|
-
s.value = o.WaitingForResponse, c.value = !0, await
|
|
52
|
+
s.value = o.WaitingForResponse, c.value = !0, await E().post("/gift-card/create", {
|
|
53
53
|
termsOfserviceURL: window.location.origin,
|
|
54
54
|
checkoutUrl: window.location.origin,
|
|
55
55
|
currencyID: M.value,
|
|
56
|
-
language:
|
|
56
|
+
language: O(),
|
|
57
57
|
amount: f.value,
|
|
58
58
|
quantity: T.value,
|
|
59
59
|
freeText: b.value,
|
|
@@ -67,7 +67,7 @@ const $ = V("giftCard", () => {
|
|
|
67
67
|
placeType: l.value ? l.value.placeType : void 0,
|
|
68
68
|
placeID: l.value ? l.value.id : void 0
|
|
69
69
|
}).then((e) => {
|
|
70
|
-
s.value = o.ReadyToPay, c.value = !1,
|
|
70
|
+
s.value = o.ReadyToPay, c.value = !1, D({
|
|
71
71
|
callback: () => console.log("Callback!"),
|
|
72
72
|
response: e.data
|
|
73
73
|
});
|
|
@@ -106,4 +106,4 @@ const $ = V("giftCard", () => {
|
|
|
106
106
|
export {
|
|
107
107
|
$ as u
|
|
108
108
|
};
|
|
109
|
-
//# sourceMappingURL=giftCard-
|
|
109
|
+
//# sourceMappingURL=giftCard-BDwrh2jt.js.map
|
|
Binary file
|