@konnectio/core 4.8.3 → 4.8.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-BmK388lK.js → ActionField-DNhrzibV.js} +42 -42
- package/dist/ActionField-DNhrzibV.js.br +0 -0
- package/dist/ActionField-DNhrzibV.js.gz +0 -0
- package/dist/{AvailabilitySkeleton-BCEm7qR0.js → AvailabilitySkeleton-DyHPcQ3l.js} +1863 -1863
- package/dist/AvailabilitySkeleton-DyHPcQ3l.js.br +0 -0
- package/dist/AvailabilitySkeleton-DyHPcQ3l.js.gz +0 -0
- package/dist/{CheckoutWindow-DvJ7vnNs.js → CheckoutWindow-C7AVcaIo.js} +446 -446
- package/dist/CheckoutWindow-C7AVcaIo.js.br +0 -0
- package/dist/CheckoutWindow-C7AVcaIo.js.gz +0 -0
- package/dist/{ErrorMessage-KXjD72UF.js → ErrorMessage-i6VD5R-W.js} +12 -12
- package/dist/ErrorMessage-i6VD5R-W.js.br +0 -0
- package/dist/ErrorMessage-i6VD5R-W.js.gz +0 -0
- package/dist/{EventAvailabilityForm-CYlTT_Hr.js → EventAvailabilityForm-B5degNGN.js} +28 -28
- package/dist/EventAvailabilityForm-B5degNGN.js.br +0 -0
- package/dist/EventAvailabilityForm-B5degNGN.js.gz +0 -0
- package/dist/{Field-BDefa6ac.js → Field-CysA6ZKB.js} +14 -14
- package/dist/Field-CysA6ZKB.js.br +0 -0
- package/dist/Field-CysA6ZKB.js.gz +0 -0
- package/dist/HotelAvailabilityForm-BGzRuNRM.js +320 -0
- package/dist/HotelAvailabilityForm-BGzRuNRM.js.br +0 -0
- package/dist/HotelAvailabilityForm-BGzRuNRM.js.gz +0 -0
- package/dist/{SelectField-D7e73Bye.js → SelectField-BUeYRCxc.js} +2947 -3417
- package/dist/SelectField-BUeYRCxc.js.br +0 -0
- package/dist/SelectField-BUeYRCxc.js.gz +0 -0
- package/dist/TermsOfService-DgMhoS_V.js +17 -0
- package/dist/TermsOfService-DgMhoS_V.js.br +0 -0
- package/dist/TermsOfService-DgMhoS_V.js.gz +0 -0
- package/dist/_-DFyJPf6E.js +25 -0
- package/dist/_-DFyJPf6E.js.br +0 -0
- package/dist/_-DFyJPf6E.js.gz +0 -0
- package/dist/availability.js +40 -40
- package/dist/availability.js.br +0 -0
- package/dist/availability.js.gz +0 -0
- package/dist/cancel-reservation.js +58 -58
- package/dist/cancel-reservation.js.br +0 -0
- package/dist/cancel-reservation.js.gz +0 -0
- package/dist/deep-link.js +12 -12
- package/dist/deep-link.js.br +0 -0
- package/dist/deep-link.js.gz +0 -0
- package/dist/{dist-Div6l3C2.js → dist-CS5pBdeg.js} +22 -22
- package/dist/dist-CS5pBdeg.js.br +0 -0
- package/dist/dist-CS5pBdeg.js.gz +0 -0
- package/dist/{dist-B3QSYyxo.js → dist-D4fD_33g.js} +5 -5
- package/dist/dist-D4fD_33g.js.br +0 -0
- package/dist/dist-D4fD_33g.js.gz +0 -0
- package/dist/event.js +371 -371
- package/dist/event.js.br +0 -0
- package/dist/event.js.gz +0 -0
- package/dist/gift-card-validation.js +49 -49
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card-validation.js.gz +0 -0
- package/dist/gift-card.js +161 -161
- package/dist/gift-card.js.br +0 -0
- package/dist/gift-card.js.gz +0 -0
- package/dist/{giftCard-DPU-N3nF.js → giftCard-ChLbvI2n.js} +15 -15
- package/dist/giftCard-ChLbvI2n.js.br +0 -0
- package/dist/giftCard-ChLbvI2n.js.gz +0 -0
- package/dist/hotel.js +776 -776
- package/dist/hotel.js.br +0 -0
- package/dist/hotel.js.gz +0 -0
- package/dist/{i18n-BF6zkld-.js → i18n-_behsDNX.js} +1030 -530
- package/dist/i18n-_behsDNX.js.br +0 -0
- package/dist/{i18n-BF6zkld-.js.gz → i18n-_behsDNX.js.gz} +0 -0
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/dist/polyfill.js.gz +0 -0
- package/dist/{style-Bb9B24D1.js → style-DWSfukOm.js} +372 -372
- package/dist/style-DWSfukOm.js.br +0 -0
- package/dist/style-DWSfukOm.js.gz +0 -0
- package/dist-wix/availability.js +29 -29
- package/dist-wix/event.js +4 -4
- package/dist-wix/gift-card-validation.js +21 -21
- package/dist-wix/gift-card.js +25 -25
- package/dist-wix/hotel.js +4 -4
- package/package.json +5 -4
- package/dist/ActionField-BmK388lK.js.br +0 -0
- package/dist/ActionField-BmK388lK.js.gz +0 -0
- package/dist/AvailabilitySkeleton-BCEm7qR0.js.br +0 -0
- package/dist/AvailabilitySkeleton-BCEm7qR0.js.gz +0 -0
- package/dist/CheckoutWindow-DvJ7vnNs.js.br +0 -0
- package/dist/CheckoutWindow-DvJ7vnNs.js.gz +0 -0
- package/dist/ErrorMessage-KXjD72UF.js.br +0 -0
- package/dist/ErrorMessage-KXjD72UF.js.gz +0 -0
- package/dist/EventAvailabilityForm-CYlTT_Hr.js.br +0 -0
- package/dist/EventAvailabilityForm-CYlTT_Hr.js.gz +0 -0
- package/dist/Field-BDefa6ac.js.br +0 -0
- package/dist/Field-BDefa6ac.js.gz +0 -0
- package/dist/HotelAvailabilityForm-DoEwqvzD.js +0 -320
- package/dist/HotelAvailabilityForm-DoEwqvzD.js.br +0 -0
- package/dist/HotelAvailabilityForm-DoEwqvzD.js.gz +0 -0
- package/dist/SelectField-D7e73Bye.js.br +0 -0
- package/dist/SelectField-D7e73Bye.js.gz +0 -0
- package/dist/TermsOfService-CAeM3I9r.js +0 -17
- package/dist/TermsOfService-CAeM3I9r.js.br +0 -0
- package/dist/TermsOfService-CAeM3I9r.js.gz +0 -0
- package/dist/_-B4tCu0BU.js +0 -25
- package/dist/_-B4tCu0BU.js.br +0 -0
- package/dist/_-B4tCu0BU.js.gz +0 -2
- package/dist/dist-B3QSYyxo.js.br +0 -0
- package/dist/dist-B3QSYyxo.js.gz +0 -0
- package/dist/dist-Div6l3C2.js.br +0 -0
- package/dist/dist-Div6l3C2.js.gz +0 -0
- package/dist/giftCard-DPU-N3nF.js.br +0 -0
- package/dist/giftCard-DPU-N3nF.js.gz +0 -0
- package/dist/i18n-BF6zkld-.js.br +0 -0
- package/dist/style-Bb9B24D1.js.br +0 -0
- package/dist/style-Bb9B24D1.js.gz +0 -0
package/dist/gift-card.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { E as
|
|
4
|
-
import { a as ce, c as le, i as ue, l as de, r as fe, s as pe, t as me } from "./CheckoutWindow-
|
|
5
|
-
import { t as he } from "./_-
|
|
6
|
-
import { t as ge } from "./ErrorMessage-
|
|
7
|
-
import { n as M, t as N } from "./Field-
|
|
8
|
-
import { t as P } from "./style-
|
|
9
|
-
import { t as F } from "./giftCard-
|
|
10
|
-
import { t as I } from "./TermsOfService-
|
|
1
|
+
import { A as e, At as t, D as n, E as r, L as i, M as a, N as o, P as s, Pt as c, Q as l, S as u, _t as d, a as f, bt as p, et as m, gt as h, h as g, i as _, it as v, j as y, jt as b, mt as x, n as S, o as C, p as w, w as T, wt as E, z as D } from "./i18n-_behsDNX.js";
|
|
2
|
+
import { t as O } from "./dist-CS5pBdeg.js";
|
|
3
|
+
import { E as ee, N as te, S as k, T as ne, _ as re, b as ie, n as A, r as ae, t as oe, v as j, y as se } from "./SelectField-BUeYRCxc.js";
|
|
4
|
+
import { a as ce, c as le, i as ue, l as de, r as fe, s as pe, t as me } from "./CheckoutWindow-C7AVcaIo.js";
|
|
5
|
+
import { t as he } from "./_-DFyJPf6E.js";
|
|
6
|
+
import { t as ge } from "./ErrorMessage-i6VD5R-W.js";
|
|
7
|
+
import { n as M, t as N } from "./Field-CysA6ZKB.js";
|
|
8
|
+
import { t as P } from "./style-DWSfukOm.js";
|
|
9
|
+
import { t as F } from "./giftCard-ChLbvI2n.js";
|
|
10
|
+
import { t as I } from "./TermsOfService-DgMhoS_V.js";
|
|
11
11
|
//#region src/components/inputs/MediaSelector.vue?vue&type=script&setup=true&lang.ts
|
|
12
|
-
var L = { class: "media-selector" }, R = ["accept"], z = { class: "media-selector-wrapper" }, B = { class: "media-selector-tools" }, V = { key: 0 }, H = { key: 1 }, U = { key: 2 }, W = ["src"], G = /*@__PURE__*/
|
|
12
|
+
var L = { class: "media-selector" }, R = ["accept"], z = { class: "media-selector-wrapper" }, B = { class: "media-selector-tools" }, V = { key: 0 }, H = { key: 1 }, U = { key: 2 }, W = ["src"], G = /*@__PURE__*/ D({
|
|
13
13
|
__name: "MediaSelector",
|
|
14
14
|
props: {
|
|
15
15
|
modelValue: {},
|
|
@@ -22,22 +22,22 @@ var L = { class: "media-selector" }, R = ["accept"], z = { class: "media-selecto
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
emits: ["update:modelValue"],
|
|
25
|
-
setup(
|
|
26
|
-
let
|
|
27
|
-
function
|
|
28
|
-
|
|
25
|
+
setup(n, { emit: r }) {
|
|
26
|
+
let c = r, l = n, { t: u } = f(), { display: d } = te(), p = E(), g = e(() => l.modelValue.base64 !== "");
|
|
27
|
+
function _(e) {
|
|
28
|
+
c("update:modelValue", e);
|
|
29
29
|
}
|
|
30
30
|
function v() {
|
|
31
|
-
|
|
31
|
+
_({
|
|
32
32
|
base64: "",
|
|
33
33
|
name: "",
|
|
34
34
|
type: ""
|
|
35
|
-
}),
|
|
35
|
+
}), p.value && (p.value.value = "");
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
|
|
37
|
+
function x() {
|
|
38
|
+
p.value && p.value.click();
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function S(e, t) {
|
|
41
41
|
let [n, r] = [e.name, e.type], i = new FileReader();
|
|
42
42
|
i.onload = function(e) {
|
|
43
43
|
if (e.target) {
|
|
@@ -47,55 +47,55 @@ var L = { class: "media-selector" }, R = ["accept"], z = { class: "media-selecto
|
|
|
47
47
|
name: n,
|
|
48
48
|
type: r
|
|
49
49
|
});
|
|
50
|
-
} else
|
|
51
|
-
message:
|
|
50
|
+
} else d({
|
|
51
|
+
message: u("imageUploadError"),
|
|
52
52
|
type: "error"
|
|
53
53
|
});
|
|
54
54
|
}, i.readAsDataURL(e);
|
|
55
55
|
}
|
|
56
|
-
async function
|
|
56
|
+
async function C() {
|
|
57
57
|
let e;
|
|
58
|
-
(e =
|
|
58
|
+
(e = p.value.files) instanceof FileList && S(e[0], _);
|
|
59
59
|
}
|
|
60
|
-
return (
|
|
61
|
-
label:
|
|
62
|
-
required:
|
|
60
|
+
return (e, r) => (m(), a(re, {
|
|
61
|
+
label: n.label,
|
|
62
|
+
required: n.required,
|
|
63
63
|
type: "media"
|
|
64
64
|
}, {
|
|
65
|
-
default:
|
|
65
|
+
default: h(() => [y("div", L, [y("input", {
|
|
66
66
|
ref_key: "fileInput",
|
|
67
|
-
ref:
|
|
67
|
+
ref: p,
|
|
68
68
|
type: "file",
|
|
69
69
|
class: "hidden",
|
|
70
|
-
accept:
|
|
70
|
+
accept: n.validation,
|
|
71
71
|
single: "",
|
|
72
|
-
onChange:
|
|
73
|
-
}, null, 40, R),
|
|
74
|
-
|
|
75
|
-
label:
|
|
72
|
+
onChange: r[0] ||= (e) => C()
|
|
73
|
+
}, null, 40, R), y("div", z, [y("ul", B, [
|
|
74
|
+
g.value ? o("", !0) : (m(), s("li", V, [i(j, {
|
|
75
|
+
label: t(u)("uploadFile"),
|
|
76
76
|
type: "button",
|
|
77
77
|
icon: "upload",
|
|
78
|
-
"icon-color":
|
|
79
|
-
onClickEvent:
|
|
78
|
+
"icon-color": n.iconColor,
|
|
79
|
+
onClickEvent: r[1] ||= (e) => x()
|
|
80
80
|
}, null, 8, ["label", "icon-color"])])),
|
|
81
|
-
|
|
82
|
-
label:
|
|
81
|
+
g.value ? (m(), s("li", H, [i(j, {
|
|
82
|
+
label: t(u)("replaceFile"),
|
|
83
83
|
type: "button",
|
|
84
84
|
icon: "repeat-alt",
|
|
85
|
-
"icon-color":
|
|
86
|
-
onClickEvent:
|
|
87
|
-
}, null, 8, ["label", "icon-color"])])) :
|
|
88
|
-
|
|
89
|
-
label:
|
|
85
|
+
"icon-color": n.iconColor,
|
|
86
|
+
onClickEvent: r[2] ||= (e) => x()
|
|
87
|
+
}, null, 8, ["label", "icon-color"])])) : o("", !0),
|
|
88
|
+
g.value ? (m(), s("li", U, [i(j, {
|
|
89
|
+
label: t(u)("removeFile"),
|
|
90
90
|
type: "button",
|
|
91
91
|
icon: "trash-alt",
|
|
92
|
-
"icon-color":
|
|
93
|
-
onClickEvent:
|
|
94
|
-
}, null, 8, ["label", "icon-color"])])) :
|
|
95
|
-
]),
|
|
92
|
+
"icon-color": n.iconColor,
|
|
93
|
+
onClickEvent: r[3] ||= (e) => v()
|
|
94
|
+
}, null, 8, ["label", "icon-color"])])) : o("", !0)
|
|
95
|
+
]), y("div", { class: b(["media-selector-previewer", { opened: g.value }]) }, [n.modelValue ? (m(), s("img", {
|
|
96
96
|
key: 0,
|
|
97
|
-
src:
|
|
98
|
-
}, null, 8, W)) :
|
|
97
|
+
src: n.modelValue.base64
|
|
98
|
+
}, null, 8, W)) : o("", !0)], 2)])])]),
|
|
99
99
|
_: 1
|
|
100
100
|
}, 8, ["label", "required"]));
|
|
101
101
|
}
|
|
@@ -183,57 +183,57 @@ function K(e) {
|
|
|
183
183
|
typeof K == "function" && K(G);
|
|
184
184
|
//#endregion
|
|
185
185
|
//#region src/components/skeletons/GiftCardSkeleton.vue?vue&type=script&setup=true&lang.ts
|
|
186
|
-
var q = { class: "gift-card-skeleton" }, J = { class: "gift-card-skeleton-form" }, _e = /*#__PURE__*/
|
|
186
|
+
var q = { class: "gift-card-skeleton" }, J = { class: "gift-card-skeleton-form" }, _e = /*#__PURE__*/ k(/* @__PURE__ */ D({
|
|
187
187
|
__name: "GiftCardSkeleton",
|
|
188
188
|
setup(e) {
|
|
189
|
-
return (e, t) => (
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
189
|
+
return (e, t) => (m(), s("div", q, [y("div", J, [
|
|
190
|
+
i(N),
|
|
191
|
+
i(N),
|
|
192
|
+
i(N),
|
|
193
|
+
i(N),
|
|
194
|
+
i(N, { "is-text-area": "" }),
|
|
195
|
+
i(M, { height: "44px" })
|
|
196
196
|
])]));
|
|
197
197
|
}
|
|
198
|
-
}), [["__scopeId", "data-v-952c68dd"]]), Y = { class: "konnectio-accept-terms" }, X = /*#__PURE__*/
|
|
198
|
+
}), [["__scopeId", "data-v-952c68dd"]]), Y = { class: "konnectio-accept-terms" }, X = /*#__PURE__*/ k(/* @__PURE__ */ D({
|
|
199
199
|
__name: "_",
|
|
200
200
|
props: {
|
|
201
201
|
content: {},
|
|
202
202
|
buttonLabel: {}
|
|
203
203
|
},
|
|
204
204
|
setup(e) {
|
|
205
|
-
let { t } =
|
|
206
|
-
return (
|
|
205
|
+
let { t: n } = f(), r = E(!1);
|
|
206
|
+
return (a, o) => (m(), s("div", Y, [i(t(_), {
|
|
207
207
|
keypath: "general.termsAndConditionsNotice",
|
|
208
208
|
tag: "span",
|
|
209
209
|
scope: "global"
|
|
210
210
|
}, {
|
|
211
|
-
button:
|
|
212
|
-
terms:
|
|
211
|
+
button: h(() => [y("i", null, "\"" + c(e.buttonLabel) + "\"", 1)]),
|
|
212
|
+
terms: h(() => [y("a", {
|
|
213
213
|
class: "konnectio-accept-terms-link",
|
|
214
214
|
target: "_blank",
|
|
215
|
-
onClick:
|
|
216
|
-
}, [
|
|
215
|
+
onClick: o[0] ||= T((e) => r.value = !0, ["prevent"])
|
|
216
|
+
}, [y("span", null, c(t(n)("general.termsAndConditions")), 1)])]),
|
|
217
217
|
_: 1
|
|
218
|
-
}),
|
|
219
|
-
modelValue:
|
|
220
|
-
"onUpdate:modelValue":
|
|
218
|
+
}), i(I, {
|
|
219
|
+
modelValue: r.value,
|
|
220
|
+
"onUpdate:modelValue": o[1] ||= (e) => r.value = e,
|
|
221
221
|
description: e.content
|
|
222
222
|
}, null, 8, ["modelValue", "description"])]));
|
|
223
223
|
}
|
|
224
|
-
}), [["__scopeId", "data-v-93ef3159"]]), ve = /* @__PURE__ */
|
|
224
|
+
}), [["__scopeId", "data-v-93ef3159"]]), ve = /* @__PURE__ */ D({
|
|
225
225
|
__name: "GiftCard",
|
|
226
226
|
setup(e) {
|
|
227
|
-
let { t: n } =
|
|
228
|
-
return (e,
|
|
229
|
-
content:
|
|
230
|
-
"button-label":
|
|
227
|
+
let { t: n } = f(), r = F();
|
|
228
|
+
return (e, i) => (m(), a(X, {
|
|
229
|
+
content: t(r).termsOfService,
|
|
230
|
+
"button-label": t(n)("giftCard.orderGiftCard")
|
|
231
231
|
}, null, 8, ["content", "button-label"]));
|
|
232
232
|
}
|
|
233
233
|
}), ye = ["data-layout"], be = { id: "konnectio-gift-card-wrapper" }, xe = { id: "konnectio-gift-card-title" }, Se = { id: "konnectio-gift-card-content" }, Ce = { id: "konnectio-gift-card-payment" }, we = ["innerHTML"], Te = { key: 0 }, Ee = {
|
|
234
234
|
key: 0,
|
|
235
235
|
id: "konnectio-select-place-type"
|
|
236
|
-
}, De = { class: /*@__PURE__*/
|
|
236
|
+
}, De = { class: /*@__PURE__*/ b(["konnectio-label", "required"]) }, Oe = { id: "konnectio-select-place-type-input" }, ke = ["innerHTML"], Z = {
|
|
237
237
|
key: 0,
|
|
238
238
|
id: "konnectio-gift-card-order"
|
|
239
239
|
}, Ae = { class: "konnectio-panel" }, je = {
|
|
@@ -242,7 +242,7 @@ var q = { class: "gift-card-skeleton" }, J = { class: "gift-card-skeleton-form"
|
|
|
242
242
|
}, Me = {
|
|
243
243
|
key: 2,
|
|
244
244
|
id: "konnectio-gift-card-order-minimal"
|
|
245
|
-
}, Ne = { id: "konnectio-gift-card-recaptcha" }, Q = /*#__PURE__*/
|
|
245
|
+
}, Ne = { id: "konnectio-gift-card-recaptcha" }, Q = /*#__PURE__*/ k(/* @__PURE__ */ D({
|
|
246
246
|
name: "GiftCardLayout",
|
|
247
247
|
__name: "GiftCard",
|
|
248
248
|
props: {
|
|
@@ -251,12 +251,12 @@ var q = { class: "gift-card-skeleton" }, J = { class: "gift-card-skeleton-form"
|
|
|
251
251
|
placeType: {},
|
|
252
252
|
styling: {}
|
|
253
253
|
},
|
|
254
|
-
setup(
|
|
255
|
-
let
|
|
254
|
+
setup(_) {
|
|
255
|
+
let b = _, S = e(() => ({
|
|
256
256
|
panelMaxWidth: "800px",
|
|
257
|
-
...
|
|
258
|
-
})), { t:
|
|
259
|
-
de.useHttpClient(pe(
|
|
257
|
+
...b.styling
|
|
258
|
+
})), { t: C } = f(), { name: w, email: T, phone: E, value: D, remark: O, showValue: te, quantity: k, media: re, placeId: M, placeType: N, showFormPage: P, showPaymentPage: I, showConfirmationPage: L, places: R, hasFilledForm: z, hasForcedPlaceType: B, isWaitingForResponse: V } = g(F()), { initialize: H, orderGiftCard: U, fetchMetadata: W, giftCardPayload: G } = F(), { isRecaptchaEnabled: K, currency: q, hasError: J } = g(ee());
|
|
259
|
+
de.useHttpClient(pe(ne()));
|
|
260
260
|
let Y = le("post", "/gift-card/create", G());
|
|
261
261
|
Y.setValidationTimeout(600);
|
|
262
262
|
function X(e) {
|
|
@@ -269,51 +269,51 @@ var q = { class: "gift-card-skeleton" }, J = { class: "gift-card-skeleton-form"
|
|
|
269
269
|
let e = await U();
|
|
270
270
|
e && Y.setErrors(e);
|
|
271
271
|
}
|
|
272
|
-
return
|
|
272
|
+
return x(w, () => X("contactName")), x(T, () => X("contactEmail")), x(E, () => X("contactPhone")), x(D, () => X("amount")), x(k, () => X("quantity")), x(N, () => {
|
|
273
273
|
M.value = void 0;
|
|
274
|
-
}),
|
|
275
|
-
let e =
|
|
274
|
+
}), l(() => {
|
|
275
|
+
let e = b.placeType ? parseInt(b.placeType) : void 0;
|
|
276
276
|
H(e);
|
|
277
|
-
}), (
|
|
278
|
-
default:
|
|
279
|
-
default:
|
|
280
|
-
"access-token":
|
|
281
|
-
"data-layout":
|
|
282
|
-
callback:
|
|
277
|
+
}), (e, l) => (m(), a(ie, { styling: S.value }, {
|
|
278
|
+
default: h(() => [(m(), a(n, null, {
|
|
279
|
+
default: h(() => [i(he, {
|
|
280
|
+
"access-token": _.accessToken,
|
|
281
|
+
"data-layout": _.layout,
|
|
282
|
+
callback: t(W)
|
|
283
283
|
}, {
|
|
284
|
-
default:
|
|
284
|
+
default: h(() => [t(J) ? (m(), a(ge, {
|
|
285
285
|
key: 1,
|
|
286
286
|
title: "Unable to render Gift card module",
|
|
287
287
|
description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
|
|
288
|
-
})) : (
|
|
288
|
+
})) : (m(), s("div", {
|
|
289
289
|
key: 0,
|
|
290
290
|
id: "konnectio-gift-card-module",
|
|
291
|
-
"data-layout":
|
|
292
|
-
}, [
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
291
|
+
"data-layout": _.layout
|
|
292
|
+
}, [y("div", be, [
|
|
293
|
+
y("h2", xe, [y("span", null, c(t(C)("giftCard.title")), 1)]),
|
|
294
|
+
y("div", Se, [
|
|
295
|
+
d(y("div", Ce, [i(me)], 512), [[u, t(I)]]),
|
|
296
|
+
d(y("div", null, [y("p", {
|
|
297
297
|
id: "konnectio-gift-card-description",
|
|
298
|
-
innerHTML:
|
|
299
|
-
}, null, 8, we),
|
|
300
|
-
|
|
301
|
-
modelValue:
|
|
302
|
-
"onUpdate:modelValue":
|
|
298
|
+
innerHTML: t(C)("giftCard.description")
|
|
299
|
+
}, null, 8, we), y("form", null, [
|
|
300
|
+
t(B) ? o("", !0) : (m(), s("div", Te, [t(R) ? (m(), s("div", Ee, [y("label", De, [y("span", null, c(t(C)("giftCard.selectType")), 1)]), y("div", Oe, [y("ul", null, [(m(!0), s(r, null, v(t(R), (e, n) => (m(), s("li", { key: n }, [i(ue, {
|
|
301
|
+
modelValue: t(N),
|
|
302
|
+
"onUpdate:modelValue": l[0] ||= (e) => p(N) ? N.value = e : null,
|
|
303
303
|
type: "radio",
|
|
304
304
|
name: "placeType",
|
|
305
|
-
val:
|
|
305
|
+
val: n,
|
|
306
306
|
label: e.label
|
|
307
307
|
}, null, 8, [
|
|
308
308
|
"modelValue",
|
|
309
309
|
"val",
|
|
310
310
|
"label"
|
|
311
|
-
])]))), 128))]),
|
|
311
|
+
])]))), 128))]), t(R)[t(N)] && t(R)[t(N)].data.length > 1 ? (m(), a(oe, {
|
|
312
312
|
key: 0,
|
|
313
|
-
modelValue:
|
|
314
|
-
"onUpdate:modelValue":
|
|
315
|
-
placeholder:
|
|
316
|
-
options:
|
|
313
|
+
modelValue: t(M),
|
|
314
|
+
"onUpdate:modelValue": l[1] ||= (e) => p(M) ? M.value = e : null,
|
|
315
|
+
placeholder: t(C)("giftCard.selectPlacePlaceholder"),
|
|
316
|
+
options: t(R)[t(N)].data,
|
|
317
317
|
labelKey: "name",
|
|
318
318
|
valueKey: "id",
|
|
319
319
|
required: ""
|
|
@@ -321,16 +321,16 @@ var q = { class: "gift-card-skeleton" }, J = { class: "gift-card-skeleton-form"
|
|
|
321
321
|
"modelValue",
|
|
322
322
|
"placeholder",
|
|
323
323
|
"options"
|
|
324
|
-
])) :
|
|
325
|
-
|
|
326
|
-
modelValue:
|
|
327
|
-
"onUpdate:modelValue":
|
|
324
|
+
])) : o("", !0)])])) : (m(), a(se, { key: 1 }))])),
|
|
325
|
+
i(A, {
|
|
326
|
+
modelValue: t(w),
|
|
327
|
+
"onUpdate:modelValue": l[2] ||= (e) => p(w) ? w.value = e : null,
|
|
328
328
|
type: "text",
|
|
329
329
|
name: "name",
|
|
330
330
|
autocomplete: "name",
|
|
331
|
-
label:
|
|
331
|
+
label: t(C)("giftCard.name"),
|
|
332
332
|
icon: "user-alt",
|
|
333
|
-
placeholder:
|
|
333
|
+
placeholder: t(C)("giftCard.namePlaceholder"),
|
|
334
334
|
error: Q("contactName"),
|
|
335
335
|
required: ""
|
|
336
336
|
}, null, 8, [
|
|
@@ -339,15 +339,15 @@ var q = { class: "gift-card-skeleton" }, J = { class: "gift-card-skeleton-form"
|
|
|
339
339
|
"placeholder",
|
|
340
340
|
"error"
|
|
341
341
|
]),
|
|
342
|
-
|
|
343
|
-
modelValue:
|
|
344
|
-
"onUpdate:modelValue":
|
|
342
|
+
i(A, {
|
|
343
|
+
modelValue: t(T),
|
|
344
|
+
"onUpdate:modelValue": l[3] ||= (e) => p(T) ? T.value = e : null,
|
|
345
345
|
type: "email",
|
|
346
346
|
name: "email",
|
|
347
347
|
autocomplete: "email",
|
|
348
|
-
label:
|
|
348
|
+
label: t(C)("giftCard.email"),
|
|
349
349
|
icon: "at",
|
|
350
|
-
placeholder:
|
|
350
|
+
placeholder: t(C)("giftCard.emailPlaceholder"),
|
|
351
351
|
error: Q("contactEmail"),
|
|
352
352
|
required: ""
|
|
353
353
|
}, null, 8, [
|
|
@@ -356,12 +356,12 @@ var q = { class: "gift-card-skeleton" }, J = { class: "gift-card-skeleton-form"
|
|
|
356
356
|
"placeholder",
|
|
357
357
|
"error"
|
|
358
358
|
]),
|
|
359
|
-
|
|
360
|
-
modelValue:
|
|
361
|
-
"onUpdate:modelValue":
|
|
359
|
+
i(ce, {
|
|
360
|
+
modelValue: t(E),
|
|
361
|
+
"onUpdate:modelValue": l[4] ||= (e) => p(E) ? E.value = e : null,
|
|
362
362
|
icon: "phone-office",
|
|
363
|
-
label:
|
|
364
|
-
placeholder:
|
|
363
|
+
label: t(C)("giftCard.phone"),
|
|
364
|
+
placeholder: t(C)("giftCard.phonePlaceholder"),
|
|
365
365
|
error: Q("contactPhone"),
|
|
366
366
|
required: ""
|
|
367
367
|
}, null, 8, [
|
|
@@ -370,15 +370,15 @@ var q = { class: "gift-card-skeleton" }, J = { class: "gift-card-skeleton-form"
|
|
|
370
370
|
"placeholder",
|
|
371
371
|
"error"
|
|
372
372
|
]),
|
|
373
|
-
|
|
374
|
-
modelValue:
|
|
375
|
-
"onUpdate:modelValue":
|
|
373
|
+
i(A, {
|
|
374
|
+
modelValue: t(D),
|
|
375
|
+
"onUpdate:modelValue": l[5] ||= (e) => p(D) ? D.value = e : null,
|
|
376
376
|
type: "number",
|
|
377
377
|
name: "value",
|
|
378
|
-
label:
|
|
378
|
+
label: t(C)("giftCard.value"),
|
|
379
379
|
icon: "money-bill",
|
|
380
|
-
placeholder:
|
|
381
|
-
suffix:
|
|
380
|
+
placeholder: t(C)("giftCard.valuePlaceholder"),
|
|
381
|
+
suffix: t(q),
|
|
382
382
|
error: Q("amount"),
|
|
383
383
|
required: ""
|
|
384
384
|
}, null, 8, [
|
|
@@ -388,12 +388,12 @@ var q = { class: "gift-card-skeleton" }, J = { class: "gift-card-skeleton-form"
|
|
|
388
388
|
"suffix",
|
|
389
389
|
"error"
|
|
390
390
|
]),
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
modelValue:
|
|
395
|
-
"onUpdate:modelValue":
|
|
396
|
-
label:
|
|
391
|
+
o("", !0),
|
|
392
|
+
o("", !0),
|
|
393
|
+
i(ae, {
|
|
394
|
+
modelValue: t(k),
|
|
395
|
+
"onUpdate:modelValue": l[8] ||= (e) => p(k) ? k.value = e : null,
|
|
396
|
+
label: t(C)("giftCard.quantity"),
|
|
397
397
|
icon: "gift-card",
|
|
398
398
|
error: Q("quantity"),
|
|
399
399
|
required: ""
|
|
@@ -402,51 +402,51 @@ var q = { class: "gift-card-skeleton" }, J = { class: "gift-card-skeleton-form"
|
|
|
402
402
|
"label",
|
|
403
403
|
"error"
|
|
404
404
|
])
|
|
405
|
-
])], 512), [[
|
|
406
|
-
|
|
405
|
+
])], 512), [[u, t(P)]]),
|
|
406
|
+
d(y("div", null, [y("div", { innerHTML: t(C)("giftCard.thankYou") }, null, 8, ke)], 512), [[u, t(L)]])
|
|
407
407
|
]),
|
|
408
|
-
|
|
409
|
-
label:
|
|
408
|
+
_.layout !== "minimal" && t(P) ? (m(), s("div", Z, [y("div", Ae, [i(j, {
|
|
409
|
+
label: t(C)("giftCard.orderGiftCard"),
|
|
410
410
|
"full-width": !0,
|
|
411
|
-
disabled: !
|
|
412
|
-
"is-loading":
|
|
413
|
-
"onUpdate:isLoading":
|
|
411
|
+
disabled: !t(z),
|
|
412
|
+
"is-loading": t(V),
|
|
413
|
+
"onUpdate:isLoading": l[9] ||= (e) => p(V) ? V.value = e : null,
|
|
414
414
|
onClickEvent: $
|
|
415
415
|
}, null, 8, [
|
|
416
416
|
"label",
|
|
417
417
|
"disabled",
|
|
418
418
|
"is-loading"
|
|
419
|
-
])])])) :
|
|
420
|
-
|
|
421
|
-
modelValue:
|
|
422
|
-
"onUpdate:modelValue":
|
|
419
|
+
])])])) : o("", !0),
|
|
420
|
+
t(P) ? (m(), s("div", je, [i(A, {
|
|
421
|
+
modelValue: t(O),
|
|
422
|
+
"onUpdate:modelValue": l[10] ||= (e) => p(O) ? O.value = e : null,
|
|
423
423
|
type: "textarea",
|
|
424
424
|
name: "remark",
|
|
425
|
-
label:
|
|
425
|
+
label: t(C)("giftCard.remark"),
|
|
426
426
|
icon: "info-circle",
|
|
427
|
-
placeholder:
|
|
427
|
+
placeholder: t(C)("giftCard.remarkPlaceholder")
|
|
428
428
|
}, null, 8, [
|
|
429
429
|
"modelValue",
|
|
430
430
|
"label",
|
|
431
431
|
"placeholder"
|
|
432
|
-
])])) :
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
label:
|
|
432
|
+
])])) : o("", !0),
|
|
433
|
+
t(P) ? (m(), s("div", Me, [
|
|
434
|
+
i(j, {
|
|
435
|
+
label: t(C)("giftCard.orderGiftCard"),
|
|
436
436
|
"full-width": !0,
|
|
437
|
-
disabled: !
|
|
437
|
+
disabled: !t(z),
|
|
438
438
|
"data-test": "orderGiftCard",
|
|
439
|
-
"is-loading":
|
|
440
|
-
"onUpdate:isLoading":
|
|
439
|
+
"is-loading": t(V),
|
|
440
|
+
"onUpdate:isLoading": l[11] ||= (e) => p(V) ? V.value = e : null,
|
|
441
441
|
onClickEvent: $
|
|
442
442
|
}, null, 8, [
|
|
443
443
|
"label",
|
|
444
444
|
"disabled",
|
|
445
445
|
"is-loading"
|
|
446
446
|
]),
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
])) :
|
|
447
|
+
y("div", null, [l[12] ||= y("div", { class: "konnectio-divider" }, null, -1), i(ve)]),
|
|
448
|
+
d(y("div", Ne, [i(fe)], 512), [[u, t(K)]])
|
|
449
|
+
])) : o("", !0)
|
|
450
450
|
])], 8, ye))]),
|
|
451
451
|
_: 1
|
|
452
452
|
}, 8, [
|
|
@@ -454,14 +454,14 @@ var q = { class: "gift-card-skeleton" }, J = { class: "gift-card-skeleton-form"
|
|
|
454
454
|
"data-layout",
|
|
455
455
|
"callback"
|
|
456
456
|
])]),
|
|
457
|
-
fallback:
|
|
457
|
+
fallback: h(() => [i(_e)]),
|
|
458
458
|
_: 1
|
|
459
459
|
}))]),
|
|
460
460
|
_: 1
|
|
461
461
|
}, 8, ["styling"]));
|
|
462
462
|
}
|
|
463
|
-
}), [["__scopeId", "data-v-779afb5c"]]), $ =
|
|
464
|
-
e.use(
|
|
463
|
+
}), [["__scopeId", "data-v-779afb5c"]]), $ = w(), Pe = C("konnectio-gift-card", Q, (e) => {
|
|
464
|
+
e.use(O), e.use($), e.use(S), e.use(P);
|
|
465
465
|
});
|
|
466
466
|
//#endregion
|
|
467
467
|
export { Pe as default };
|
package/dist/gift-card.js.br
CHANGED
|
Binary file
|
package/dist/gift-card.js.gz
CHANGED
|
Binary file
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { E as
|
|
1
|
+
import { A as e, d as t, h as n, m as r, s as i, t as a, wt as o } from "./i18n-_behsDNX.js";
|
|
2
|
+
import { E as s, I as c, N as l, T as u, j as d, ot as f, q as p } from "./SelectField-BUeYRCxc.js";
|
|
3
3
|
//#region src/store/giftCard.ts
|
|
4
|
-
var m =
|
|
5
|
-
let { pay:
|
|
4
|
+
var m = r("giftCard", () => {
|
|
5
|
+
let { pay: r } = d(), { display: m } = l(), { metaData: h, currencyId: g, hasError: _ } = n(s()), v = s(), y = o(f.InitialState), b = t("konnectio_name", "", void 0, { serializer: i.string }), x = t("konnectio_email", "", void 0, { serializer: i.string }), S = t("konnectio_phone", "", void 0, { serializer: i.string }), C = o(""), w = o(1), T = o(!0), E = o(""), D = o({
|
|
6
6
|
base64: "",
|
|
7
7
|
type: "",
|
|
8
8
|
name: ""
|
|
9
|
-
}), O =
|
|
9
|
+
}), O = o(void 0), k = o(0), A = o(!1), j = o(0), M = e(() => v.metaData.hotels[0]), N = e(() => M.value.termsOfService ? M.value.termsOfService : ""), P = e(() => y.value === f.InitialState || y.value === f.WaitingForResponse), F = e(() => y.value === f.ReadyToPay), I = e(() => y.value === f.PaymentSuccess), L = e(() => {
|
|
10
10
|
let e = {
|
|
11
11
|
1: {
|
|
12
|
-
label:
|
|
12
|
+
label: a.t("giftCard.hotelType"),
|
|
13
13
|
data: []
|
|
14
14
|
},
|
|
15
15
|
2: {
|
|
16
|
-
label:
|
|
16
|
+
label: a.t("giftCard.restaurantType"),
|
|
17
17
|
data: []
|
|
18
18
|
}
|
|
19
19
|
}, t = h.value.hotels?.[0]?.places;
|
|
20
20
|
return t && t.forEach((t) => {
|
|
21
21
|
e[t.placeType].data.push(t);
|
|
22
22
|
}), Object.fromEntries(Object.entries(e).filter(([, e]) => e.data.length > 0));
|
|
23
|
-
}), R =
|
|
23
|
+
}), R = e(() => j.value !== 0), z = e(() => {
|
|
24
24
|
let e;
|
|
25
25
|
if (R.value) e = L.value[j.value]?.data[0];
|
|
26
26
|
else if (k.value !== 0) {
|
|
@@ -30,14 +30,14 @@ var m = e("giftCard", () => {
|
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
return e;
|
|
33
|
-
}), B =
|
|
33
|
+
}), B = e(() => !(!b.value || !x.value || !(S.value.length >= 5) || !C.value || z.value === void 0)), V = e(() => !(y.value === f.InitialState && A.value)), H = e(() => !!(y.value === f.WaitingForResponse && A.value));
|
|
34
34
|
async function U() {
|
|
35
35
|
try {
|
|
36
|
-
let e = (await
|
|
36
|
+
let e = (await u().get("/gift-card/metadata", { params: { language: p() } })).data;
|
|
37
37
|
e.success === void 0 ? _.value = !1 : _.value = !e.success, h.value = e;
|
|
38
38
|
} catch {
|
|
39
39
|
m({
|
|
40
|
-
message:
|
|
40
|
+
message: a.t("alert.error.couldntFetchMetadata"),
|
|
41
41
|
type: "warning"
|
|
42
42
|
});
|
|
43
43
|
}
|
|
@@ -55,7 +55,7 @@ var m = e("giftCard", () => {
|
|
|
55
55
|
contactName: b.value,
|
|
56
56
|
contactEmail: x.value,
|
|
57
57
|
contactPhone: S.value,
|
|
58
|
-
imageBase64:
|
|
58
|
+
imageBase64: c(D.value.base64),
|
|
59
59
|
imageName: D.value.name,
|
|
60
60
|
imageFormat: D.value.type,
|
|
61
61
|
placeType: z.value ? z.value.placeType : void 0,
|
|
@@ -65,12 +65,12 @@ var m = e("giftCard", () => {
|
|
|
65
65
|
async function G() {
|
|
66
66
|
y.value = f.WaitingForResponse, A.value = !0;
|
|
67
67
|
try {
|
|
68
|
-
let
|
|
69
|
-
y.value = f.ReadyToPay, A.value = !1,
|
|
68
|
+
let e = await u().post("/gift-card/create", W());
|
|
69
|
+
y.value = f.ReadyToPay, A.value = !1, r({
|
|
70
70
|
callback: (e) => {
|
|
71
71
|
e === 2 && (y.value = f.PaymentSuccess);
|
|
72
72
|
},
|
|
73
|
-
response:
|
|
73
|
+
response: e.data,
|
|
74
74
|
enableHostedRedirect: !0
|
|
75
75
|
});
|
|
76
76
|
return;
|
|
Binary file
|
|
Binary file
|