@konnectio/core 4.1.2 → 4.1.4
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-RCouJ4bL.js → ActionField-C1dgcOKP.js} +11 -11
- package/dist/ActionField-C1dgcOKP.js.br +0 -0
- package/dist/{AvailabilitySkeleton-DMCMhOc1.js → AvailabilitySkeleton-Bazs9H4o.js} +110 -110
- package/dist/AvailabilitySkeleton-Bazs9H4o.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-mLoIG3Dr.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-a1ndpS4g.js} +336 -339
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-a1ndpS4g.js.br +0 -0
- package/dist/{CheckoutWindow-CIVRhVLH.js → CheckoutWindow-BgqyyJoW.js} +194 -199
- package/dist/CheckoutWindow-BgqyyJoW.js.br +0 -0
- package/dist/{ErrorMessage-CRkFYH0N.js → ErrorMessage-BzDrnE0F.js} +4 -4
- package/dist/ErrorMessage-BzDrnE0F.js.br +0 -0
- package/dist/{EventAvailabilityForm-DuzDq1td.js → EventAvailabilityForm-Cw5NkQXM.js} +10 -10
- package/dist/EventAvailabilityForm-Cw5NkQXM.js.br +0 -0
- package/dist/{Field-B89fBG1z.js → Field-BLzufPEA.js} +4 -4
- package/dist/Field-BLzufPEA.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-DHYObk1q.js → Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-DF8uAZlm.js} +3 -3
- package/dist/SelectField.vue_vue_type_style_index_0_lang-eQJ88XWq.js +10617 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-eQJ88XWq.js.br +0 -0
- package/dist/{TermsOfService-B3RWtSMr.js → TermsOfService-BM9pIxg1.js} +5 -5
- package/dist/_-C47qU_gt.js +5 -0
- package/dist/{_.vue_vue_type_style_index_0_lang-CPp11Oc1.js → _.vue_vue_type_style_index_0_lang-alJEghYY.js} +3 -3
- package/dist/availability.js +16 -16
- package/dist/availability.js.br +0 -0
- package/dist/cancel-reservation.js +14 -14
- 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 +13 -13
- package/dist/deep-link.js.br +0 -0
- package/dist/event.js +57 -57
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +24 -24
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +56 -56
- package/dist/gift-card.js.br +0 -0
- package/dist/{giftCard-ovHKnHZ1.js → giftCard-pa0AL3wA.js} +26 -26
- package/dist/giftCard-pa0AL3wA.js.br +0 -0
- package/dist/hotel.js +26 -29
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-DEok8Hbz.js → masonry.plugin-p-oq4FQ9.js} +336 -319
- package/dist/masonry.plugin-p-oq4FQ9.js.br +0 -0
- package/dist/{mitt-Dh_4vPVI.js → mitt-CFrRmK9k.js} +30 -30
- package/dist/mitt-CFrRmK9k.js.br +0 -0
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/dist/{style-CXMzdeVK.js → style-CLWqMWeG.js} +59 -59
- package/dist/style-CLWqMWeG.js.br +0 -0
- package/package.json +7 -7
- package/dist/ActionField-RCouJ4bL.js.br +0 -0
- package/dist/AvailabilitySkeleton-DMCMhOc1.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-mLoIG3Dr.js.br +0 -0
- package/dist/CheckoutWindow-CIVRhVLH.js.br +0 -0
- package/dist/ErrorMessage-CRkFYH0N.js.br +0 -0
- package/dist/EventAvailabilityForm-DuzDq1td.js.br +0 -0
- package/dist/Field-B89fBG1z.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-DpqEmfGX.js +0 -19391
- package/dist/SelectField.vue_vue_type_style_index_0_lang-DpqEmfGX.js.br +0 -0
- package/dist/_-CS3eNenD.js +0 -5
- package/dist/giftCard-ovHKnHZ1.js.br +0 -0
- package/dist/masonry.plugin-DEok8Hbz.js.br +0 -0
- package/dist/mitt-Dh_4vPVI.js.br +0 -0
- package/dist/style-CXMzdeVK.js.br +0 -0
package/dist/gift-card.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { d as G, u as
|
|
2
|
-
import { a as ve, d as T, x as be, _ as x, h as he, c as
|
|
3
|
-
import { G as Ve } from "./style-
|
|
4
|
-
import { u as I } from "./giftCard-
|
|
5
|
-
import { _ as $e } from "./_.vue_vue_type_style_index_0_lang-
|
|
6
|
-
import { a as we, C as Fe, P as Ee, _ as Pe } from "./CheckoutWindow-
|
|
7
|
-
import { E as Ue } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-
|
|
8
|
-
import { F as U } from "./Field-
|
|
9
|
-
import { E as Te } from "./ErrorMessage-
|
|
10
|
-
import { S as Ge } from "./TermsOfService-
|
|
11
|
-
const Ae = { class: "media-selector" }, Se = ["accept"], Me = { class: "media-selector-wrapper" },
|
|
1
|
+
import { d as G, u as q, 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 L, h as te, C as oe, s as z, D as ne, o as ie, S as se, E as A, G as S, F as re, z as de, A as v, k as ue, l as ce, m as pe, p as me, _ as fe } from "./mitt-CFrRmK9k.js";
|
|
2
|
+
import { a as ve, d as T, x as be, _ as x, h as he, c as _e, L as ke, T as M, g as ge, C as ye, v as Ce } from "./SelectField.vue_vue_type_style_index_0_lang-eQJ88XWq.js";
|
|
3
|
+
import { G as Ve } from "./style-CLWqMWeG.js";
|
|
4
|
+
import { u as I } from "./giftCard-pa0AL3wA.js";
|
|
5
|
+
import { _ as $e } from "./_.vue_vue_type_style_index_0_lang-alJEghYY.js";
|
|
6
|
+
import { a as we, C as Fe, P as Ee, _ as Pe } from "./CheckoutWindow-BgqyyJoW.js";
|
|
7
|
+
import { E as Ue } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-DF8uAZlm.js";
|
|
8
|
+
import { F as U } from "./Field-BLzufPEA.js";
|
|
9
|
+
import { E as Te } from "./ErrorMessage-BzDrnE0F.js";
|
|
10
|
+
import { S as Ge } from "./TermsOfService-BM9pIxg1.js";
|
|
11
|
+
const Ae = { class: "media-selector" }, Se = ["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,11 +19,11 @@ const Ae = { 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 } =
|
|
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
|
}
|
|
26
|
-
function
|
|
26
|
+
function D() {
|
|
27
27
|
V({
|
|
28
28
|
base64: "",
|
|
29
29
|
name: "",
|
|
@@ -33,9 +33,9 @@ const Ae = { class: "media-selector" }, Se = ["accept"], Me = { class: "media-se
|
|
|
33
33
|
function $() {
|
|
34
34
|
f.value && f.value.click();
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const [g, B] = [a.name, a.type],
|
|
38
|
-
|
|
36
|
+
function H(a, d) {
|
|
37
|
+
const [g, B] = [a.name, a.type], k = new FileReader();
|
|
38
|
+
k.onload = function(P) {
|
|
39
39
|
if (P.target) {
|
|
40
40
|
const R = P.target.result;
|
|
41
41
|
d({ base64: R, name: g, type: B });
|
|
@@ -44,11 +44,11 @@ const Ae = { class: "media-selector" }, Se = ["accept"], Me = { class: "media-se
|
|
|
44
44
|
message: u("imageUploadError"),
|
|
45
45
|
type: "error"
|
|
46
46
|
});
|
|
47
|
-
},
|
|
47
|
+
}, k.readAsDataURL(a);
|
|
48
48
|
}
|
|
49
49
|
async function w() {
|
|
50
50
|
let a;
|
|
51
|
-
(a = f.value.files) instanceof FileList &&
|
|
51
|
+
(a = f.value.files) instanceof FileList && H(a[0], V);
|
|
52
52
|
}
|
|
53
53
|
return (a, d) => (s(), y(be, {
|
|
54
54
|
label: a.label,
|
|
@@ -67,8 +67,8 @@ const Ae = { class: "media-selector" }, Se = ["accept"], Me = { class: "media-se
|
|
|
67
67
|
onChange: d[0] || (d[0] = (g) => w())
|
|
68
68
|
}, null, 40, Se),
|
|
69
69
|
l("div", Me, [
|
|
70
|
-
l("ul",
|
|
71
|
-
|
|
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",
|
|
@@ -77,7 +77,7 @@ const Ae = { class: "media-selector" }, Se = ["accept"], Me = { class: "media-se
|
|
|
77
77
|
onClickEvent: d[1] || (d[1] = (g) => $())
|
|
78
78
|
}, null, 8, ["label", "icon-color"])
|
|
79
79
|
])),
|
|
80
|
-
|
|
80
|
+
_.value ? (s(), c("li", Be, [
|
|
81
81
|
t(T, {
|
|
82
82
|
label: e(u)("replaceFile"),
|
|
83
83
|
type: "button",
|
|
@@ -86,20 +86,20 @@ const Ae = { class: "media-selector" }, Se = ["accept"], Me = { class: "media-se
|
|
|
86
86
|
onClickEvent: d[2] || (d[2] = (g) => $())
|
|
87
87
|
}, null, 8, ["label", "icon-color"])
|
|
88
88
|
])) : m("", !0),
|
|
89
|
-
|
|
89
|
+
_.value ? (s(), c("li", Re, [
|
|
90
90
|
t(T, {
|
|
91
91
|
label: e(u)("removeFile"),
|
|
92
92
|
type: "button",
|
|
93
93
|
icon: "trash-alt",
|
|
94
94
|
"icon-color": a.iconColor,
|
|
95
|
-
onClickEvent: d[3] || (d[3] = (g) =>
|
|
95
|
+
onClickEvent: d[3] || (d[3] = (g) => D())
|
|
96
96
|
}, null, 8, ["label", "icon-color"])
|
|
97
97
|
])) : m("", !0)
|
|
98
98
|
]),
|
|
99
99
|
l("div", {
|
|
100
100
|
class: J([
|
|
101
101
|
"media-selector-previewer",
|
|
102
|
-
{ opened:
|
|
102
|
+
{ opened: _.value }
|
|
103
103
|
])
|
|
104
104
|
}, [
|
|
105
105
|
a.modelValue ? (s(), c("img", {
|
|
@@ -114,7 +114,7 @@ const Ae = { class: "media-selector" }, Se = ["accept"], Me = { class: "media-se
|
|
|
114
114
|
}, 8, ["label", "required"]));
|
|
115
115
|
}
|
|
116
116
|
});
|
|
117
|
-
function
|
|
117
|
+
function W(b) {
|
|
118
118
|
const r = b;
|
|
119
119
|
r.__i18n = r.__i18n || [], r.__i18n.push({
|
|
120
120
|
locale: "",
|
|
@@ -134,12 +134,12 @@ function z(b) {
|
|
|
134
134
|
}
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
|
-
typeof
|
|
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),
|
|
@@ -149,22 +149,22 @@ const He = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
|
|
|
149
149
|
])
|
|
150
150
|
]));
|
|
151
151
|
}
|
|
152
|
-
}), je = /* @__PURE__ */ x(Ne, [["__scopeId", "data-v-ba3efaa1"]]),
|
|
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: {},
|
|
156
156
|
buttonLabel: {}
|
|
157
157
|
},
|
|
158
158
|
setup(b) {
|
|
159
|
-
const { t: r } =
|
|
160
|
-
return (o, u) => (s(), c("div",
|
|
159
|
+
const { t: r } = q(), p = O(!1);
|
|
160
|
+
return (o, u) => (s(), c("div", ze, [
|
|
161
161
|
t(e(oe), {
|
|
162
162
|
keypath: "general.termsAndConditionsNotice",
|
|
163
163
|
tag: "span",
|
|
164
164
|
scope: "global"
|
|
165
165
|
}, {
|
|
166
166
|
button: C(() => [
|
|
167
|
-
l("i", null, '"' +
|
|
167
|
+
l("i", null, '"' + L(o.buttonLabel) + '"', 1)
|
|
168
168
|
]),
|
|
169
169
|
terms: C(() => [
|
|
170
170
|
l("a", {
|
|
@@ -172,7 +172,7 @@ const He = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
|
|
|
172
172
|
target: "_blank",
|
|
173
173
|
onClick: u[0] || (u[0] = te((h) => p.value = !0, ["prevent"]))
|
|
174
174
|
}, [
|
|
175
|
-
l("span", null,
|
|
175
|
+
l("span", null, L(e(r)("general.termsAndConditions")), 1)
|
|
176
176
|
])
|
|
177
177
|
]),
|
|
178
178
|
_: 1
|
|
@@ -184,10 +184,10 @@ const He = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
|
|
|
184
184
|
}, null, 8, ["modelValue", "description"])
|
|
185
185
|
]));
|
|
186
186
|
}
|
|
187
|
-
}), Ke = /* @__PURE__ */ x(
|
|
187
|
+
}), Ke = /* @__PURE__ */ x(We, [["__scopeId", "data-v-689c045a"]]), Oe = /* @__PURE__ */ G({
|
|
188
188
|
__name: "GiftCard",
|
|
189
189
|
setup(b) {
|
|
190
|
-
const { t: r } =
|
|
190
|
+
const { t: r } = q(), p = I();
|
|
191
191
|
return (o, u) => (s(), y(Ke, {
|
|
192
192
|
content: e(p).termsOfService,
|
|
193
193
|
"button-label": e(r)("giftCard.orderGiftCard")
|
|
@@ -220,25 +220,25 @@ const He = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
|
|
|
220
220
|
const r = b, p = Y(() => ({
|
|
221
221
|
panelMaxWidth: "800px",
|
|
222
222
|
...r.styling
|
|
223
|
-
})), { t: o } =
|
|
223
|
+
})), { t: o } = q(), {
|
|
224
224
|
name: u,
|
|
225
225
|
email: h,
|
|
226
226
|
phone: f,
|
|
227
|
-
value:
|
|
227
|
+
value: _,
|
|
228
228
|
remark: V,
|
|
229
|
-
showValue:
|
|
229
|
+
showValue: D,
|
|
230
230
|
quantity: $,
|
|
231
|
-
media:
|
|
231
|
+
media: H,
|
|
232
232
|
placeId: w,
|
|
233
233
|
placeType: a,
|
|
234
234
|
showFormPage: d,
|
|
235
235
|
showPaymentPage: g,
|
|
236
236
|
showConfirmationPage: B,
|
|
237
|
-
places:
|
|
237
|
+
places: k,
|
|
238
238
|
hasFilledForm: P,
|
|
239
239
|
hasForcedPlaceType: R,
|
|
240
240
|
isWaitingForResponse: F
|
|
241
|
-
} =
|
|
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(() => {
|
|
@@ -265,7 +265,7 @@ const He = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
|
|
|
265
265
|
}, [
|
|
266
266
|
l("div", Je, [
|
|
267
267
|
l("h2", Qe, [
|
|
268
|
-
l("span", null,
|
|
268
|
+
l("span", null, L(e(o)("giftCard.title")), 1)
|
|
269
269
|
]),
|
|
270
270
|
l("div", Xe, [
|
|
271
271
|
A(l("div", Ze, [
|
|
@@ -280,13 +280,13 @@ const He = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
|
|
|
280
280
|
}, null, 8, el),
|
|
281
281
|
l("form", null, [
|
|
282
282
|
e(R) ? m("", !0) : (s(), c("div", ll, [
|
|
283
|
-
e(
|
|
283
|
+
e(k) ? (s(), c("div", al, [
|
|
284
284
|
l("label", tl, [
|
|
285
|
-
l("span", null,
|
|
285
|
+
l("span", null, L(e(o)("giftCard.selectType")), 1)
|
|
286
286
|
]),
|
|
287
287
|
l("div", ol, [
|
|
288
288
|
l("ul", null, [
|
|
289
|
-
(s(!0), c(re, null, de(e(
|
|
289
|
+
(s(!0), c(re, null, de(e(k), (i, j) => (s(), c("li", { key: j }, [
|
|
290
290
|
t(Fe, {
|
|
291
291
|
modelValue: e(a),
|
|
292
292
|
"onUpdate:modelValue": n[0] || (n[0] = (ae) => v(a) ? a.value = ae : null),
|
|
@@ -297,18 +297,18 @@ const He = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
|
|
|
297
297
|
}, null, 8, ["modelValue", "val", "label"])
|
|
298
298
|
]))), 128))
|
|
299
299
|
]),
|
|
300
|
-
e(
|
|
300
|
+
e(k)[e(a)] && e(k)[e(a)].data.length > 1 ? (s(), y(_e, {
|
|
301
301
|
key: 0,
|
|
302
302
|
modelValue: e(w),
|
|
303
303
|
"onUpdate:modelValue": n[1] || (n[1] = (i) => v(w) ? w.value = i : null),
|
|
304
304
|
placeholder: e(o)("giftCard.selectPlacePlaceholder"),
|
|
305
|
-
options: e(
|
|
305
|
+
options: e(k)[e(a)].data,
|
|
306
306
|
labelKey: "name",
|
|
307
307
|
valueKey: "id",
|
|
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
313
|
t(M, {
|
|
314
314
|
modelValue: e(u),
|
|
@@ -341,8 +341,8 @@ const He = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
|
|
|
341
341
|
required: ""
|
|
342
342
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
343
343
|
t(M, {
|
|
344
|
-
modelValue: e(
|
|
345
|
-
"onUpdate:modelValue": n[5] || (n[5] = (i) => v(
|
|
344
|
+
modelValue: e(_),
|
|
345
|
+
"onUpdate:modelValue": n[5] || (n[5] = (i) => v(_) ? _.value = i : null),
|
|
346
346
|
type: "number",
|
|
347
347
|
name: "value",
|
|
348
348
|
label: e(o)("giftCard.value"),
|
|
@@ -430,8 +430,8 @@ const He = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
|
|
|
430
430
|
_: 1
|
|
431
431
|
}, 8, ["styling"]));
|
|
432
432
|
}
|
|
433
|
-
}), K = /* @__PURE__ */ x(cl, [["__scopeId", "data-v-
|
|
434
|
-
class
|
|
433
|
+
}), K = /* @__PURE__ */ x(cl, [["__scopeId", "data-v-aa7653cf"]]), pl = ue(), ml = fe, 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 = ce(K, this.attributes);
|
|
444
|
-
this.vueApp = pe(K, r), this.vueApp.provide("emitter",
|
|
444
|
+
this.vueApp = pe(K, r), this.vueApp.provide("emitter", fl), this.vueApp.use(pl), this.vueApp.use(me), 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,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { z as K, a as Q, h as
|
|
1
|
+
import { H as V, s as J, r as t, c as a, I as y } from "./mitt-CFrRmK9k.js";
|
|
2
|
+
import { z as K, a as Q, h as z, G as o, A as h, S, D as E, w as O, E as X } from "./SelectField.vue_vue_type_style_index_0_lang-eQJ88XWq.js";
|
|
3
3
|
const $ = V("giftCard", () => {
|
|
4
|
-
const { pay: D } = K(), { display: G } = Q(), { metaData: w, currencyId:
|
|
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: ""
|
|
8
|
-
}),
|
|
8
|
+
}), C = t(void 0), g = t(0), c = t(!1), p = t(0), I = a(() => x.metaData.hotels[0]), A = a(() => I.value.termsOfService ? I.value.termsOfService : ""), U = a(() => s.value === o.InitialState || s.value === o.WaitingForResponse), W = a(() => s.value === o.ReadyToPay), _ = a(() => s.value === o.PaymentSuccess), m = a(() => {
|
|
9
9
|
const e = {
|
|
10
10
|
1: {
|
|
11
|
-
label:
|
|
11
|
+
label: y.t("giftCard.hotelType"),
|
|
12
12
|
data: []
|
|
13
13
|
},
|
|
14
14
|
2: {
|
|
15
|
-
label:
|
|
15
|
+
label: y.t("giftCard.restaurantType"),
|
|
16
16
|
data: []
|
|
17
17
|
}
|
|
18
18
|
}, r = w.value.hotels[0].places;
|
|
@@ -21,21 +21,21 @@ const $ = V("giftCard", () => {
|
|
|
21
21
|
}), Object.fromEntries(
|
|
22
22
|
Object.entries(e).filter(([, n]) => n.data.length > 0)
|
|
23
23
|
);
|
|
24
|
-
}),
|
|
24
|
+
}), R = a(() => p.value !== 0), l = a(() => {
|
|
25
25
|
let e;
|
|
26
|
-
if (
|
|
26
|
+
if (R.value)
|
|
27
27
|
e = m.value[p.value].data[0];
|
|
28
28
|
else if (g.value !== 0) {
|
|
29
|
-
const r =
|
|
30
|
-
n.length === 1 ? e = n[0] : r !== void 0 && n.forEach((
|
|
31
|
-
String(
|
|
29
|
+
const r = C.value, n = m.value[g.value].data;
|
|
30
|
+
n.length === 1 ? e = n[0] : r !== void 0 && n.forEach((k) => {
|
|
31
|
+
String(k.id) === String(r) && (e = k);
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
return e;
|
|
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
40
|
language: O()
|
|
41
41
|
}
|
|
@@ -43,21 +43,21 @@ const $ = V("giftCard", () => {
|
|
|
43
43
|
e.success !== void 0 ? P.value = !e.success : P.value = !1, w.value = e;
|
|
44
44
|
} catch {
|
|
45
45
|
G({
|
|
46
|
-
message:
|
|
46
|
+
message: y.t("alert.error.couldntFetchMetadata"),
|
|
47
47
|
type: "warning"
|
|
48
48
|
});
|
|
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
|
-
currencyID:
|
|
55
|
+
currencyID: M.value,
|
|
56
56
|
language: O(),
|
|
57
57
|
amount: f.value,
|
|
58
|
-
quantity:
|
|
59
|
-
freeText:
|
|
60
|
-
showPrice:
|
|
58
|
+
quantity: T.value,
|
|
59
|
+
freeText: b.value,
|
|
60
|
+
showPrice: F.value,
|
|
61
61
|
contactName: u.value,
|
|
62
62
|
contactEmail: v.value,
|
|
63
63
|
contactPhone: d.value,
|
|
@@ -73,7 +73,7 @@ const $ = V("giftCard", () => {
|
|
|
73
73
|
});
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function H(e) {
|
|
77
77
|
e && (p.value = e);
|
|
78
78
|
}
|
|
79
79
|
return {
|
|
@@ -83,27 +83,27 @@ const $ = V("giftCard", () => {
|
|
|
83
83
|
email: v,
|
|
84
84
|
phone: d,
|
|
85
85
|
value: f,
|
|
86
|
-
remark:
|
|
87
|
-
showValue:
|
|
88
|
-
quantity:
|
|
86
|
+
remark: b,
|
|
87
|
+
showValue: F,
|
|
88
|
+
quantity: T,
|
|
89
89
|
media: i,
|
|
90
|
-
placeId:
|
|
90
|
+
placeId: C,
|
|
91
91
|
placeType: g,
|
|
92
92
|
showFormPage: U,
|
|
93
93
|
showPaymentPage: W,
|
|
94
94
|
showConfirmationPage: _,
|
|
95
95
|
places: m,
|
|
96
96
|
hasFilledForm: L,
|
|
97
|
-
hasForcedPlaceType:
|
|
97
|
+
hasForcedPlaceType: R,
|
|
98
98
|
isWaitingForResponse: N,
|
|
99
99
|
isMetadataAvailable: q,
|
|
100
100
|
termsOfService: A,
|
|
101
101
|
fetchMetadata: j,
|
|
102
102
|
orderGiftCard: B,
|
|
103
|
-
initialize:
|
|
103
|
+
initialize: H
|
|
104
104
|
};
|
|
105
105
|
});
|
|
106
106
|
export {
|
|
107
107
|
$ as u
|
|
108
108
|
};
|
|
109
|
-
//# sourceMappingURL=giftCard-
|
|
109
|
+
//# sourceMappingURL=giftCard-pa0AL3wA.js.map
|
|
Binary file
|
package/dist/hotel.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { d as Tt, u as ie, s as $t, r as ct, a as T, b as lt,
|
|
2
|
-
import { h as Oe, b as ke, u as Ii, I as Ot, s as Qt, k as Si, l as lo, q as he, o as ee, _ as pe, c as gn, d as te, F as As, g as Ai, B as Ms, a as Os, H as cs, T as ye, x as _r, J as vr, C as gr, p as ds, K as fs, r as ps, t as ms, v as yr } from "./SelectField.vue_vue_type_style_index_0_lang-
|
|
3
|
-
import { G as br } from "./style-
|
|
4
|
-
import { R as wr, B as yn, L as kr, S as Pr, M as Lr, b as uo, C as Tr, T as xr, V as Cr, a as Sr } from "./masonry.plugin-
|
|
5
|
-
import { A as Ar, H as Mr } from "./AvailabilitySkeleton-
|
|
6
|
-
import { S as Or } from "./TermsOfService-
|
|
7
|
-
import { C as fo, B as Is, P as Ir, a as Br } from "./CheckoutWindow-
|
|
1
|
+
import { d as Tt, u as ie, s as $t, r as ct, a as T, b as lt, y as ir, i as h, w as Y, g as M, e as v, t as I, E as ni, G as Oi, f as B, j as U, z as It, F as bt, q as ro, A as Mt, h as Ss, C as nr, J as or, c as ft, v as sr, K as Ie, o as ne, L as si, M as fe, N as Be, O as ar, P as ce, Q as go, D as oi, R as yo, U as rr, n as mn, S as lr, V as ur, W as hr, k as cr, l as dr, m as fr, p as pr, _ as mr } from "./mitt-CFrRmK9k.js";
|
|
2
|
+
import { h as Oe, b as ke, u as Ii, I as Ot, s as Qt, k as Si, l as lo, q as he, o as ee, _ as pe, c as gn, d as te, F as As, g as Ai, B as Ms, a as Os, H as cs, T as ye, x as _r, J as vr, C as gr, p as ds, K as fs, r as ps, t as ms, v as yr } from "./SelectField.vue_vue_type_style_index_0_lang-eQJ88XWq.js";
|
|
3
|
+
import { G as br } from "./style-CLWqMWeG.js";
|
|
4
|
+
import { R as wr, B as yn, L as kr, S as Pr, M as Lr, b as uo, C as Tr, T as xr, V as Cr, a as Sr } from "./masonry.plugin-p-oq4FQ9.js";
|
|
5
|
+
import { A as Ar, H as Mr } from "./AvailabilitySkeleton-Bazs9H4o.js";
|
|
6
|
+
import { S as Or } from "./TermsOfService-BM9pIxg1.js";
|
|
7
|
+
import { C as fo, B as Is, P as Ir, a as Br } from "./CheckoutWindow-BgqyyJoW.js";
|
|
8
8
|
import { g as Er } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
9
|
-
import { _ as Bs } from "./AvailabilitySkeleton.
|
|
9
|
+
import { _ as Bs } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-a1ndpS4g.js";
|
|
10
10
|
function zr(r, a) {
|
|
11
11
|
for (var s = 0; s < a.length; s++) {
|
|
12
12
|
const l = a[s];
|
|
@@ -364,7 +364,7 @@ const $r = { key: 0 }, jr = { key: 1 }, qr = { key: 0 }, Gr = { class: "konnecti
|
|
|
364
364
|
_: 1
|
|
365
365
|
}, 8, ["modelValue", "label", "options", "readonly", "required"]));
|
|
366
366
|
}
|
|
367
|
-
}), sl = /* @__PURE__ */ pe(ol, [["__scopeId", "data-v-
|
|
367
|
+
}), sl = /* @__PURE__ */ pe(ol, [["__scopeId", "data-v-c4045bfc"]]);
|
|
368
368
|
var Mi = { exports: {} };
|
|
369
369
|
/* @preserve
|
|
370
370
|
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
|
@@ -7807,7 +7807,7 @@ const Zl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAA
|
|
|
7807
7807
|
setup(r) {
|
|
7808
7808
|
const { t: a } = ie(), s = ct(NaN), l = ft(() => !isNaN(s.value)), c = ft(() => d.roomList.find((y) => y.id === s.value) || null), d = r;
|
|
7809
7809
|
function p() {
|
|
7810
|
-
l.value
|
|
7810
|
+
l.value && (d.config.units = 1, d.config.roomId = s.value, d.callback());
|
|
7811
7811
|
}
|
|
7812
7812
|
return (y, _) => (T(), lt(Is, {
|
|
7813
7813
|
title: h(a)("hotel.selectRoomOnMapTitle")
|
|
@@ -8010,7 +8010,7 @@ const Gl = /* @__PURE__ */ Tt({
|
|
|
8010
8010
|
_: 1
|
|
8011
8011
|
}, 8, ["listing-id", "gallery", "name", "description", "layout", "facilities", "prices-from", "includes-breakfast"]));
|
|
8012
8012
|
}
|
|
8013
|
-
}), Kl = /* @__PURE__ */ pe(Gl, [["__scopeId", "data-v-
|
|
8013
|
+
}), Kl = /* @__PURE__ */ pe(Gl, [["__scopeId", "data-v-2bc12cc9"]]), Yl = { class: "konnectio-template-side-panel" }, Jl = { class: "konnectio-template-side-panel-listings" }, Xl = /* @__PURE__ */ Tt({
|
|
8014
8014
|
__name: "Template",
|
|
8015
8015
|
props: {
|
|
8016
8016
|
title: {},
|
|
@@ -8075,7 +8075,7 @@ const Gl = /* @__PURE__ */ Tt({
|
|
|
8075
8075
|
_: 1
|
|
8076
8076
|
}, 8, ["title", "subtitle"]));
|
|
8077
8077
|
}
|
|
8078
|
-
}), Ql = /* @__PURE__ */ pe(Xl, [["__scopeId", "data-v-
|
|
8078
|
+
}), Ql = /* @__PURE__ */ pe(Xl, [["__scopeId", "data-v-a323d25a"]]), tu = { class: "konnectio-template-select-package" }, eu = /* @__PURE__ */ Tt({
|
|
8079
8079
|
__name: "Template",
|
|
8080
8080
|
props: {
|
|
8081
8081
|
id: {},
|
|
@@ -8177,8 +8177,8 @@ const Gl = /* @__PURE__ */ Tt({
|
|
|
8177
8177
|
"icon-type": "fas",
|
|
8178
8178
|
"icon-placement": "label",
|
|
8179
8179
|
"min-range": 1,
|
|
8180
|
-
"start-date": new Date(_.fromDate),
|
|
8181
|
-
"min-date": new Date(_.fromDate),
|
|
8180
|
+
"start-date": _.fromDate !== "0001-01-01T00:00:00Z" ? new Date(_.fromDate) : /* @__PURE__ */ new Date(),
|
|
8181
|
+
"min-date": _.fromDate !== "0001-01-01T00:00:00Z" ? new Date(_.fromDate) : /* @__PURE__ */ new Date(),
|
|
8182
8182
|
"max-date": new Date(_.toDate),
|
|
8183
8183
|
readonly: p.value,
|
|
8184
8184
|
range: ""
|
|
@@ -8194,7 +8194,7 @@ const Gl = /* @__PURE__ */ Tt({
|
|
|
8194
8194
|
_: 1
|
|
8195
8195
|
}, 8, ["listing-id", "name", "description", "gallery", "layout", "to-date", "from-date"]));
|
|
8196
8196
|
}
|
|
8197
|
-
}), su = /* @__PURE__ */ pe(ou, [["__scopeId", "data-v-
|
|
8197
|
+
}), su = /* @__PURE__ */ pe(ou, [["__scopeId", "data-v-bbd1f7b5"]]), ws = /* @__PURE__ */ Tt({
|
|
8198
8198
|
__name: "TimeField",
|
|
8199
8199
|
props: {
|
|
8200
8200
|
modelValue: {},
|
|
@@ -8283,7 +8283,7 @@ const Gl = /* @__PURE__ */ Tt({
|
|
|
8283
8283
|
_: 1
|
|
8284
8284
|
}, 8, ["modelValue", "label", "placeholder", "options", "required"]));
|
|
8285
8285
|
}
|
|
8286
|
-
}), lu = /* @__PURE__ */ pe(ru, [["__scopeId", "data-v-
|
|
8286
|
+
}), lu = /* @__PURE__ */ pe(ru, [["__scopeId", "data-v-a94e1728"]]), uu = /* @__PURE__ */ Tt({
|
|
8287
8287
|
__name: "NameField",
|
|
8288
8288
|
props: {
|
|
8289
8289
|
modelValue: {},
|
|
@@ -8300,7 +8300,6 @@ const Gl = /* @__PURE__ */ Tt({
|
|
|
8300
8300
|
autocomplete: { type: Boolean, default: !1 },
|
|
8301
8301
|
disabled: { type: Boolean, default: !1 },
|
|
8302
8302
|
limit: { default: 1 / 0 },
|
|
8303
|
-
inputStyle: {},
|
|
8304
8303
|
excludeTitle: { type: Boolean, default: !1 }
|
|
8305
8304
|
},
|
|
8306
8305
|
emits: ["update:modelValue", "update:title"],
|
|
@@ -8362,9 +8361,8 @@ const Gl = /* @__PURE__ */ Tt({
|
|
|
8362
8361
|
],
|
|
8363
8362
|
readonly: w.readonly,
|
|
8364
8363
|
"hide-button": "",
|
|
8365
|
-
"input-style": w.inputStyle,
|
|
8366
8364
|
searchable: !1
|
|
8367
|
-
}, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "options", "readonly"
|
|
8365
|
+
}, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "options", "readonly"])),
|
|
8368
8366
|
B(ye, {
|
|
8369
8367
|
modelValue: d.value,
|
|
8370
8368
|
"onUpdate:modelValue": x[1] || (x[1] = (b) => d.value = b),
|
|
@@ -8379,15 +8377,14 @@ const Gl = /* @__PURE__ */ Tt({
|
|
|
8379
8377
|
required: w.required,
|
|
8380
8378
|
readonly: w.readonly,
|
|
8381
8379
|
limit: w.limit,
|
|
8382
|
-
onInput: x[2] || (x[2] = (b) => y())
|
|
8383
|
-
|
|
8384
|
-
}, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "placeholder", "required", "readonly", "limit", "input-style"])
|
|
8380
|
+
onInput: x[2] || (x[2] = (b) => y())
|
|
8381
|
+
}, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "placeholder", "required", "readonly", "limit"])
|
|
8385
8382
|
], 2)
|
|
8386
8383
|
]),
|
|
8387
8384
|
_: 1
|
|
8388
8385
|
}, 8, ["label", "id", "required", "readonly", "limit"]));
|
|
8389
8386
|
}
|
|
8390
|
-
}), hu = /* @__PURE__ */ pe(uu, [["__scopeId", "data-v-
|
|
8387
|
+
}), hu = /* @__PURE__ */ pe(uu, [["__scopeId", "data-v-9d27a2bc"]]), cu = { class: "hotel-skeleton" }, du = { class: "hotel-skeleton-content" }, fu = { class: "hotel-skeleton-sidebar" }, pu = /* @__PURE__ */ Tt({
|
|
8391
8388
|
__name: "HotelSkeleton",
|
|
8392
8389
|
setup(r) {
|
|
8393
8390
|
return (a, s) => (T(), M("div", cu, [
|
|
@@ -8455,7 +8452,7 @@ const ih = /* @__PURE__ */ Tt({
|
|
|
8455
8452
|
styling: {}
|
|
8456
8453
|
},
|
|
8457
8454
|
setup(r) {
|
|
8458
|
-
const a = ur(() => import("./_-
|
|
8455
|
+
const a = ur(() => import("./_-C47qU_gt.js")), s = r, { t: l } = ie(), {
|
|
8459
8456
|
currentLocation: c,
|
|
8460
8457
|
templateID: d,
|
|
8461
8458
|
templateAddons: p,
|
|
@@ -9915,8 +9912,8 @@ function Wh(r = {}) {
|
|
|
9915
9912
|
const a = /* @__PURE__ */ Rh(r);
|
|
9916
9913
|
return a.use(Hh), a.install = Uh(a), a;
|
|
9917
9914
|
}
|
|
9918
|
-
const $h = cr(), jh = Wh(), qh = mr();
|
|
9919
|
-
class
|
|
9915
|
+
const $h = cr(), jh = Wh(), qh = mr, Gh = qh();
|
|
9916
|
+
class Kh extends HTMLElement {
|
|
9920
9917
|
vueApp;
|
|
9921
9918
|
constructor() {
|
|
9922
9919
|
super();
|
|
@@ -9926,13 +9923,13 @@ class Gh extends HTMLElement {
|
|
|
9926
9923
|
}
|
|
9927
9924
|
connectedCallback() {
|
|
9928
9925
|
const a = dr(ks, this.attributes);
|
|
9929
|
-
this.vueApp = fr(ks, a), this.vueApp.provide("emitter",
|
|
9926
|
+
this.vueApp = fr(ks, a), this.vueApp.provide("emitter", Gh), this.vueApp.use(jh), this.vueApp.use($h), this.vueApp.use(Cr), this.vueApp.use(pr), this.vueApp.use(Sr), this.vueApp.use(br), this.vueApp.use(yr, { bootstrap: !0 });
|
|
9930
9927
|
const s = document.createElement("div");
|
|
9931
9928
|
this.vueApp.mount(s), this.appendChild(s.children[0]);
|
|
9932
9929
|
}
|
|
9933
9930
|
}
|
|
9934
|
-
window.customElements.define("konnectio-hotel",
|
|
9931
|
+
window.customElements.define("konnectio-hotel", Kh);
|
|
9935
9932
|
export {
|
|
9936
|
-
|
|
9933
|
+
Kh as default
|
|
9937
9934
|
};
|
|
9938
9935
|
//# sourceMappingURL=hotel.js.map
|
package/dist/hotel.js.br
CHANGED
|
Binary file
|