@konnectio/core 4.6.0 → 4.7.0
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-B7UmJY0Z.js → ActionField-DcJ46kr8.js} +2 -2
- package/dist/ActionField-DcJ46kr8.js.br +0 -0
- package/dist/ActionField-DcJ46kr8.js.gz +0 -0
- package/dist/{AvailabilitySkeleton-BUHF365q.js → AvailabilitySkeleton-D_WemNm7.js} +3 -3
- package/dist/AvailabilitySkeleton-D_WemNm7.js.br +0 -0
- package/dist/{AvailabilitySkeleton-BUHF365q.js.gz → AvailabilitySkeleton-D_WemNm7.js.gz} +0 -0
- package/dist/{CheckoutWindow-0YZfQh0h.js → CheckoutWindow-Cxf3LsRu.js} +2 -2
- package/dist/CheckoutWindow-Cxf3LsRu.js.br +0 -0
- package/dist/CheckoutWindow-Cxf3LsRu.js.gz +0 -0
- package/dist/{ErrorMessage-DAJHMXps.js → ErrorMessage-CWRDhW-r.js} +2 -2
- package/dist/ErrorMessage-CWRDhW-r.js.br +0 -0
- package/dist/ErrorMessage-CWRDhW-r.js.gz +0 -0
- package/dist/{EventAvailabilityForm-CYqJiGK-.js → EventAvailabilityForm--wnnA59l.js} +3 -3
- package/dist/EventAvailabilityForm--wnnA59l.js.br +0 -0
- package/dist/EventAvailabilityForm--wnnA59l.js.gz +0 -0
- package/dist/{Field-Bot3mYQN.js → Field-C0HFlyA-.js} +2 -2
- package/dist/Field-C0HFlyA-.js.br +0 -0
- package/dist/Field-C0HFlyA-.js.gz +0 -0
- package/dist/{HotelAvailabilityForm-B7kyXx-7.js → HotelAvailabilityForm-CXhF2zZd.js} +3 -3
- package/dist/HotelAvailabilityForm-CXhF2zZd.js.br +0 -0
- package/dist/HotelAvailabilityForm-CXhF2zZd.js.gz +0 -0
- package/dist/{SelectField-hnSeKsyE.js → SelectField-BuepNFGh.js} +18 -5
- package/dist/SelectField-BuepNFGh.js.br +0 -0
- package/dist/SelectField-BuepNFGh.js.gz +0 -0
- package/dist/{TermsOfService-BNMlDWlr.js → TermsOfService-CI6N0yyP.js} +3 -3
- package/dist/TermsOfService-CI6N0yyP.js.br +0 -0
- package/dist/TermsOfService-CI6N0yyP.js.gz +1 -0
- package/dist/{_-C-uU-YJK.js → _-CrX9aXtd.js} +2 -2
- package/dist/_-CrX9aXtd.js.br +0 -0
- package/dist/_-CrX9aXtd.js.gz +0 -0
- package/dist/availability.js +28 -41
- package/dist/availability.js.br +0 -0
- package/dist/availability.js.gz +0 -0
- package/dist/cancel-reservation.js +34 -47
- package/dist/cancel-reservation.js.br +0 -0
- package/dist/cancel-reservation.js.gz +0 -0
- package/dist/core.css +1 -1
- package/dist/core.css.br +0 -0
- package/dist/core.css.gz +0 -0
- package/dist/deep-link.js +11 -24
- package/dist/deep-link.js.br +0 -0
- package/dist/deep-link.js.gz +0 -0
- package/dist/{dist-BRLG6yf0.js → dist-Bmb1V_bQ.js} +4 -4
- package/dist/dist-Bmb1V_bQ.js.br +0 -0
- package/dist/dist-Bmb1V_bQ.js.gz +0 -0
- package/dist/event.js +141 -154
- package/dist/event.js.br +0 -0
- package/dist/event.js.gz +0 -0
- package/dist/gift-card-validation.js +37 -50
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card-validation.js.gz +0 -0
- package/dist/gift-card.js +92 -105
- package/dist/gift-card.js.br +0 -0
- package/dist/gift-card.js.gz +0 -0
- package/dist/{giftCard-DVmVkjIL.js → giftCard-4K4sLoYc.js} +2 -2
- package/dist/giftCard-4K4sLoYc.js.br +0 -0
- package/dist/giftCard-4K4sLoYc.js.gz +0 -0
- package/dist/hotel.js +1204 -1217
- package/dist/hotel.js.br +0 -0
- package/dist/hotel.js.gz +0 -0
- package/dist/{masonry.plugin-BE-hxMX3.js → masonry.plugin-CB5zqVnY.js} +28 -24
- package/dist/masonry.plugin-CB5zqVnY.js.br +0 -0
- package/dist/masonry.plugin-CB5zqVnY.js.gz +0 -0
- package/dist/{mitt-CC88Lv06.js → mitt-D_sfUt2u.js} +534 -520
- package/dist/mitt-D_sfUt2u.js.br +0 -0
- package/dist/{mitt-CC88Lv06.js.gz → mitt-D_sfUt2u.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-BYpuwNCr.js → style-DxH0isic.js} +2 -2
- package/dist/style-DxH0isic.js.br +0 -0
- package/dist/style-DxH0isic.js.gz +0 -0
- package/dist-wix/availability.js +593 -71
- package/dist-wix/event.js +591 -69
- package/dist-wix/gift-card-validation.js +590 -68
- package/dist-wix/gift-card.js +592 -70
- package/dist-wix/hotel.js +591 -69
- package/package.json +4 -4
- package/dist/ActionField-B7UmJY0Z.js.br +0 -0
- package/dist/ActionField-B7UmJY0Z.js.gz +0 -0
- package/dist/AvailabilitySkeleton-BUHF365q.js.br +0 -0
- package/dist/CheckoutWindow-0YZfQh0h.js.br +0 -0
- package/dist/CheckoutWindow-0YZfQh0h.js.gz +0 -0
- package/dist/ErrorMessage-DAJHMXps.js.br +0 -0
- package/dist/ErrorMessage-DAJHMXps.js.gz +0 -0
- package/dist/EventAvailabilityForm-CYqJiGK-.js.br +0 -0
- package/dist/EventAvailabilityForm-CYqJiGK-.js.gz +0 -0
- package/dist/Field-Bot3mYQN.js.br +0 -0
- package/dist/Field-Bot3mYQN.js.gz +0 -0
- package/dist/HotelAvailabilityForm-B7kyXx-7.js.br +0 -0
- package/dist/HotelAvailabilityForm-B7kyXx-7.js.gz +0 -0
- package/dist/SelectField-hnSeKsyE.js.br +0 -0
- package/dist/SelectField-hnSeKsyE.js.gz +0 -0
- package/dist/TermsOfService-BNMlDWlr.js.br +0 -0
- package/dist/TermsOfService-BNMlDWlr.js.gz +0 -3
- package/dist/_-C-uU-YJK.js.br +0 -0
- package/dist/_-C-uU-YJK.js.gz +0 -4
- package/dist/dist-BRLG6yf0.js.br +0 -0
- package/dist/dist-BRLG6yf0.js.gz +0 -0
- package/dist/giftCard-DVmVkjIL.js.br +0 -0
- package/dist/giftCard-DVmVkjIL.js.gz +0 -0
- package/dist/masonry.plugin-BE-hxMX3.js.br +0 -0
- package/dist/masonry.plugin-BE-hxMX3.js.gz +0 -0
- package/dist/mitt-CC88Lv06.js.br +0 -0
- package/dist/style-BYpuwNCr.js.br +0 -0
- package/dist/style-BYpuwNCr.js.gz +0 -0
package/dist/event.js.br
CHANGED
|
Binary file
|
package/dist/event.js.gz
CHANGED
|
Binary file
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { At as e, D as t, E as n, Et as r, M as i, O as a, P as o, S as s, T as c, Y as l, c as u, dt as d, gt as f, k as p, o as m,
|
|
2
|
-
import { E as
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { n as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
1
|
+
import { At as e, D as t, E as n, Et as r, M as i, O as a, P as o, S as s, T as c, Y as l, c as u, dt as d, gt as f, k as p, o as m, r as h, s as g, t as _, u as v, y } from "./mitt-D_sfUt2u.js";
|
|
2
|
+
import { E as b, G as x, J as S, S as C, b as w, j as T, x as E } from "./SelectField-BuepNFGh.js";
|
|
3
|
+
import { t as D } from "./_-CrX9aXtd.js";
|
|
4
|
+
import { t as O } from "./ErrorMessage-CWRDhW-r.js";
|
|
5
|
+
import { n as k, t as A } from "./Field-C0HFlyA-.js";
|
|
6
|
+
import { t as j } from "./style-DxH0isic.js";
|
|
7
|
+
import { t as M } from "./ActionField-DcJ46kr8.js";
|
|
8
|
+
import { t as N } from "./giftCard-4K4sLoYc.js";
|
|
9
9
|
//#region src/components/skeletons/GiftCardValidationSkeleton.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
-
var
|
|
10
|
+
var P = { class: "gift-card-validation-skeleton" }, F = { class: "gift-card-validation-skeleton-form" }, I = { class: "gift-card-validation-skeleton-text" }, L = { class: "gift-card-validation-skeleton-input" }, R = /*#__PURE__*/ C(/* @__PURE__ */ o({
|
|
11
11
|
__name: "GiftCardValidationSkeleton",
|
|
12
12
|
setup(e) {
|
|
13
|
-
return (e, t) => (l(), p("div",
|
|
14
|
-
i(
|
|
15
|
-
i(
|
|
16
|
-
i(
|
|
17
|
-
]), n("div",
|
|
13
|
+
return (e, t) => (l(), p("div", P, [n("div", F, [n("div", I, [
|
|
14
|
+
i(k, { height: "20px" }),
|
|
15
|
+
i(k, { height: "15px" }),
|
|
16
|
+
i(k, { height: "15px" })
|
|
17
|
+
]), n("div", L, [i(A), i(A, { "no-label": "" })])])]));
|
|
18
18
|
}
|
|
19
|
-
}), [["__scopeId", "data-v-b1601b74"]]),
|
|
19
|
+
}), [["__scopeId", "data-v-b1601b74"]]), z = ["innerHTML"], B = {
|
|
20
20
|
key: 0,
|
|
21
21
|
id: "konnectio-gift-card-validation-resume",
|
|
22
22
|
class: "konnectio-panel"
|
|
23
|
-
},
|
|
23
|
+
}, V = /*#__PURE__*/ C(/* @__PURE__ */ o({
|
|
24
24
|
name: "GiftCardValidationLayout",
|
|
25
25
|
__name: "GiftCardValidation",
|
|
26
26
|
props: {
|
|
@@ -31,85 +31,72 @@ var F = { class: "gift-card-validation-skeleton" }, I = { class: "gift-card-vali
|
|
|
31
31
|
let u = o, h = c(() => ({
|
|
32
32
|
panelMaxWidth: "800px",
|
|
33
33
|
...u.styling
|
|
34
|
-
})), { t: g } = m(), { voucher: _, isValid:
|
|
35
|
-
return (c, u) => (l(), t(
|
|
34
|
+
})), { t: g } = m(), { voucher: _, isValid: C, amount: k, expirationDate: A, productName: j, isLoading: P } = v(T()), { currency: F, hasError: I } = v(b()), { fetchMetadata: L } = N(), { apply: V } = T();
|
|
35
|
+
return (c, u) => (l(), t(w, { styling: h.value }, {
|
|
36
36
|
default: d(() => [(l(), t(s, null, {
|
|
37
|
-
default: d(() => [i(
|
|
37
|
+
default: d(() => [i(D, {
|
|
38
38
|
"access-token": o.accessToken,
|
|
39
39
|
callback: r(L)
|
|
40
40
|
}, {
|
|
41
|
-
default: d(() => [r(I) ? (l(), t(
|
|
41
|
+
default: d(() => [r(I) ? (l(), t(O, {
|
|
42
42
|
key: 1,
|
|
43
43
|
title: "Unable to render Gift card validation module",
|
|
44
44
|
description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
|
|
45
45
|
})) : (l(), p("form", {
|
|
46
46
|
key: 0,
|
|
47
47
|
id: "konnectio-gift-card-validation-module",
|
|
48
|
-
onSubmit: u[3] ||=
|
|
48
|
+
onSubmit: u[3] ||= y((e) => r(V)(), ["prevent"])
|
|
49
49
|
}, [
|
|
50
50
|
n("h4", null, [n("span", null, e(r(g)("giftCardValidation.title")), 1)]),
|
|
51
|
-
n("p", { innerHTML: r(g)("giftCardValidation.description") }, null, 8,
|
|
52
|
-
i(
|
|
51
|
+
n("p", { innerHTML: r(g)("giftCardValidation.description") }, null, 8, z),
|
|
52
|
+
i(M, {
|
|
53
53
|
modelValue: r(_),
|
|
54
54
|
"onUpdate:modelValue": u[0] ||= (e) => f(_) ? _.value = e : null,
|
|
55
55
|
icon: "gift-card",
|
|
56
56
|
label: r(g)("booking.reservation.giftCardCode"),
|
|
57
57
|
buttonLabel: r(g)("giftCardValidation.submitButton"),
|
|
58
58
|
placeholder: "XXXXXXXX",
|
|
59
|
-
"is-loading": r(
|
|
60
|
-
"onUpdate:isLoading": u[1] ||= (e) => f(
|
|
61
|
-
onAction: u[2] ||= (e) => r(
|
|
59
|
+
"is-loading": r(P),
|
|
60
|
+
"onUpdate:isLoading": u[1] ||= (e) => f(P) ? P.value = e : null,
|
|
61
|
+
onAction: u[2] ||= (e) => r(V)()
|
|
62
62
|
}, null, 8, [
|
|
63
63
|
"modelValue",
|
|
64
64
|
"label",
|
|
65
65
|
"buttonLabel",
|
|
66
66
|
"is-loading"
|
|
67
67
|
]),
|
|
68
|
-
!r(
|
|
69
|
-
n("th", null, [n("span", null, e(r(g)("giftCardValidation.giftCard")), 1), i(
|
|
68
|
+
!r(P) && r(C) ? (l(), p("table", B, [n("thead", null, [n("tr", null, [
|
|
69
|
+
n("th", null, [n("span", null, e(r(g)("giftCardValidation.giftCard")), 1), i(E, {
|
|
70
70
|
icon: "gift-card",
|
|
71
71
|
type: "fas",
|
|
72
72
|
color: "header"
|
|
73
73
|
})]),
|
|
74
|
-
n("th", null, [n("span", null, e(r(g)("giftCardValidation.balance")), 1), i(
|
|
74
|
+
n("th", null, [n("span", null, e(r(g)("giftCardValidation.balance")), 1), i(E, {
|
|
75
75
|
icon: "money-bill",
|
|
76
76
|
type: "fas",
|
|
77
77
|
color: "header"
|
|
78
78
|
})]),
|
|
79
|
-
n("th", null, [n("span", null, e(r(g)("giftCardValidation.expirationDate")), 1), i(
|
|
79
|
+
n("th", null, [n("span", null, e(r(g)("giftCardValidation.expirationDate")), 1), i(E, {
|
|
80
80
|
icon: "timer",
|
|
81
81
|
type: "fas",
|
|
82
82
|
color: "header"
|
|
83
83
|
})])
|
|
84
84
|
])]), n("tbody", null, [n("tr", null, [
|
|
85
85
|
n("td", null, [n("span", null, e(r(j)), 1)]),
|
|
86
|
-
n("td", null, [n("span", null, e(r(
|
|
87
|
-
n("td", null, [n("span", null, e(r(
|
|
86
|
+
n("td", null, [n("span", null, e(r(S)(r(k), r(F))), 1)]),
|
|
87
|
+
n("td", null, [n("span", null, e(r(x)(r(A))), 1)])
|
|
88
88
|
])])])) : a("", !0)
|
|
89
89
|
], 32))]),
|
|
90
90
|
_: 1
|
|
91
91
|
}, 8, ["access-token", "callback"])]),
|
|
92
|
-
fallback: d(() => [i(
|
|
92
|
+
fallback: d(() => [i(R)]),
|
|
93
93
|
_: 1
|
|
94
94
|
}))]),
|
|
95
95
|
_: 1
|
|
96
96
|
}, 8, ["styling"]));
|
|
97
97
|
}
|
|
98
|
-
}), [["__scopeId", "data-v-ca768ef6"]]),
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
super();
|
|
102
|
-
}
|
|
103
|
-
disconnectedCallback() {
|
|
104
|
-
this.vueApp.unmount();
|
|
105
|
-
}
|
|
106
|
-
connectedCallback() {
|
|
107
|
-
let e = _(H, this.attributes);
|
|
108
|
-
this.vueApp = h(H, e), this.vueApp.provide("emitter", W), this.vueApp.use(U), this.vueApp.use(g), this.vueApp.use(M);
|
|
109
|
-
let t = document.createElement("div");
|
|
110
|
-
this.vueApp.mount(t), this.appendChild(t.children[0]);
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
window.customElements.define("konnectio-gift-card-validation", G);
|
|
98
|
+
}), [["__scopeId", "data-v-ca768ef6"]]), H = u(), U = _(), W = g("konnectio-gift-card-validation", V, (e) => {
|
|
99
|
+
e.provide("emitter", U), e.use(H), e.use(h), e.use(j);
|
|
100
|
+
});
|
|
114
101
|
//#endregion
|
|
115
|
-
export {
|
|
102
|
+
export { W as default };
|
|
Binary file
|
|
Binary file
|
package/dist/gift-card.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { $ as e, At as t, D as n, Dt as r, E as i, Et as a, M as o, O as s, P as c, S as l, T as u, Y as d, _ as f, a as p, bt as m, c as h, dt as g, ft as _, gt as v, k as y, lt as b, o as x,
|
|
2
|
-
import { t as
|
|
3
|
-
import { E as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import { i as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
1
|
+
import { $ as e, At as t, D as n, Dt as r, E as i, Et as a, M as o, O as s, P as c, S as l, T as u, Y as d, _ as f, a as p, bt as m, c as h, dt as g, ft as _, gt as v, k as y, lt as b, o as x, q as S, r as C, s as w, t as T, u as E, x as ee, y as D } from "./mitt-D_sfUt2u.js";
|
|
2
|
+
import { t as O } from "./dist-Bmb1V_bQ.js";
|
|
3
|
+
import { E as te, M as k, S as A, _ as j, b as ne, n as M, r as re, t as N, v as P, y as F } from "./SelectField-BuepNFGh.js";
|
|
4
|
+
import { t as I } from "./_-CrX9aXtd.js";
|
|
5
|
+
import { t as L } from "./ErrorMessage-CWRDhW-r.js";
|
|
6
|
+
import { n as R, t as z } from "./Field-C0HFlyA-.js";
|
|
7
|
+
import { t as B } from "./style-DxH0isic.js";
|
|
8
|
+
import { i as ie, n as ae, r as oe, t as se } from "./CheckoutWindow-Cxf3LsRu.js";
|
|
9
|
+
import { t as V } from "./giftCard-4K4sLoYc.js";
|
|
10
|
+
import { t as H } from "./TermsOfService-CI6N0yyP.js";
|
|
11
11
|
//#region src/components/inputs/MediaSelector.vue?vue&type=script&setup=true&lang.ts
|
|
12
|
-
var
|
|
12
|
+
var U = { class: "media-selector" }, W = ["accept"], G = { class: "media-selector-wrapper" }, K = { class: "media-selector-tools" }, q = { key: 0 }, J = { key: 1 }, Y = { key: 2 }, X = ["src"], Z = /*@__PURE__*/ c({
|
|
13
13
|
__name: "MediaSelector",
|
|
14
14
|
props: {
|
|
15
15
|
modelValue: {},
|
|
@@ -23,7 +23,7 @@ var V = { class: "media-selector" }, H = ["accept"], U = { class: "media-selecto
|
|
|
23
23
|
},
|
|
24
24
|
emits: ["update:modelValue"],
|
|
25
25
|
setup(e, { emit: t }) {
|
|
26
|
-
let c = t, l = e, { t: f } = x(), { display: p } =
|
|
26
|
+
let c = t, l = e, { t: f } = x(), { display: p } = k(), h = m(), _ = u(() => l.modelValue.base64 !== "");
|
|
27
27
|
function v(e) {
|
|
28
28
|
c("update:modelValue", e);
|
|
29
29
|
}
|
|
@@ -57,12 +57,12 @@ var V = { class: "media-selector" }, H = ["accept"], U = { class: "media-selecto
|
|
|
57
57
|
let e;
|
|
58
58
|
(e = h.value.files) instanceof FileList && C(e[0], v);
|
|
59
59
|
}
|
|
60
|
-
return (t, c) => (d(), n(
|
|
60
|
+
return (t, c) => (d(), n(j, {
|
|
61
61
|
label: e.label,
|
|
62
62
|
required: e.required,
|
|
63
63
|
type: "media"
|
|
64
64
|
}, {
|
|
65
|
-
default: g(() => [i("div",
|
|
65
|
+
default: g(() => [i("div", U, [i("input", {
|
|
66
66
|
ref_key: "fileInput",
|
|
67
67
|
ref: h,
|
|
68
68
|
type: "file",
|
|
@@ -70,22 +70,22 @@ var V = { class: "media-selector" }, H = ["accept"], U = { class: "media-selecto
|
|
|
70
70
|
accept: e.validation,
|
|
71
71
|
single: "",
|
|
72
72
|
onChange: c[0] ||= (e) => w()
|
|
73
|
-
}, null, 40,
|
|
74
|
-
_.value ? s("", !0) : (d(), y("li",
|
|
73
|
+
}, null, 40, W), i("div", G, [i("ul", K, [
|
|
74
|
+
_.value ? s("", !0) : (d(), y("li", q, [o(P, {
|
|
75
75
|
label: a(f)("uploadFile"),
|
|
76
76
|
type: "button",
|
|
77
77
|
icon: "upload",
|
|
78
78
|
"icon-color": e.iconColor,
|
|
79
79
|
onClickEvent: c[1] ||= (e) => S()
|
|
80
80
|
}, null, 8, ["label", "icon-color"])])),
|
|
81
|
-
_.value ? (d(), y("li",
|
|
81
|
+
_.value ? (d(), y("li", J, [o(P, {
|
|
82
82
|
label: a(f)("replaceFile"),
|
|
83
83
|
type: "button",
|
|
84
84
|
icon: "repeat-alt",
|
|
85
85
|
"icon-color": e.iconColor,
|
|
86
86
|
onClickEvent: c[2] ||= (e) => S()
|
|
87
87
|
}, null, 8, ["label", "icon-color"])])) : s("", !0),
|
|
88
|
-
_.value ? (d(), y("li",
|
|
88
|
+
_.value ? (d(), y("li", Y, [o(P, {
|
|
89
89
|
label: a(f)("removeFile"),
|
|
90
90
|
type: "button",
|
|
91
91
|
icon: "trash-alt",
|
|
@@ -95,14 +95,14 @@ var V = { class: "media-selector" }, H = ["accept"], U = { class: "media-selecto
|
|
|
95
95
|
]), i("div", { class: r(["media-selector-previewer", { opened: _.value }]) }, [e.modelValue ? (d(), y("img", {
|
|
96
96
|
key: 0,
|
|
97
97
|
src: e.modelValue.base64
|
|
98
|
-
}, null, 8,
|
|
98
|
+
}, null, 8, X)) : s("", !0)], 2)])])]),
|
|
99
99
|
_: 1
|
|
100
100
|
}, 8, ["label", "required"]));
|
|
101
101
|
}
|
|
102
102
|
});
|
|
103
103
|
//#endregion
|
|
104
104
|
//#region src/components/inputs/MediaSelector.vue?vue&type=i18n&index=0&lang.yaml
|
|
105
|
-
function
|
|
105
|
+
function Q(e) {
|
|
106
106
|
let t = e;
|
|
107
107
|
t.__i18n = t.__i18n || [], t.__i18n.push({
|
|
108
108
|
locale: "",
|
|
@@ -180,22 +180,22 @@ function X(e) {
|
|
|
180
180
|
}
|
|
181
181
|
//#endregion
|
|
182
182
|
//#region src/components/inputs/MediaSelector.vue
|
|
183
|
-
typeof
|
|
183
|
+
typeof Q == "function" && Q(Z);
|
|
184
184
|
//#endregion
|
|
185
185
|
//#region src/components/skeletons/GiftCardSkeleton.vue?vue&type=script&setup=true&lang.ts
|
|
186
|
-
var
|
|
186
|
+
var ce = { class: "gift-card-skeleton" }, le = { class: "gift-card-skeleton-form" }, ue = /*#__PURE__*/ A(/* @__PURE__ */ c({
|
|
187
187
|
__name: "GiftCardSkeleton",
|
|
188
188
|
setup(e) {
|
|
189
|
-
return (e, t) => (d(), y("div",
|
|
190
|
-
o(
|
|
191
|
-
o(
|
|
192
|
-
o(
|
|
193
|
-
o(
|
|
194
|
-
o(
|
|
195
|
-
o(
|
|
189
|
+
return (e, t) => (d(), y("div", ce, [i("div", le, [
|
|
190
|
+
o(z),
|
|
191
|
+
o(z),
|
|
192
|
+
o(z),
|
|
193
|
+
o(z),
|
|
194
|
+
o(z, { "is-text-area": "" }),
|
|
195
|
+
o(R, { height: "44px" })
|
|
196
196
|
])]));
|
|
197
197
|
}
|
|
198
|
-
}), [["__scopeId", "data-v-ba3efaa1"]]),
|
|
198
|
+
}), [["__scopeId", "data-v-ba3efaa1"]]), de = { class: "konnectio-accept-terms" }, fe = /*#__PURE__*/ A(/* @__PURE__ */ c({
|
|
199
199
|
__name: "_",
|
|
200
200
|
props: {
|
|
201
201
|
content: {},
|
|
@@ -203,7 +203,7 @@ var de = { class: "gift-card-skeleton" }, fe = { class: "gift-card-skeleton-form
|
|
|
203
203
|
},
|
|
204
204
|
setup(e) {
|
|
205
205
|
let { t: n } = x(), r = m(!1);
|
|
206
|
-
return (s, c) => (d(), y("div",
|
|
206
|
+
return (s, c) => (d(), y("div", de, [o(a(p), {
|
|
207
207
|
keypath: "general.termsAndConditionsNotice",
|
|
208
208
|
tag: "span",
|
|
209
209
|
scope: "global"
|
|
@@ -212,37 +212,37 @@ var de = { class: "gift-card-skeleton" }, fe = { class: "gift-card-skeleton-form
|
|
|
212
212
|
terms: g(() => [i("a", {
|
|
213
213
|
class: "konnectio-accept-terms-link",
|
|
214
214
|
target: "_blank",
|
|
215
|
-
onClick: c[0] ||=
|
|
215
|
+
onClick: c[0] ||= D((e) => r.value = !0, ["prevent"])
|
|
216
216
|
}, [i("span", null, t(a(n)("general.termsAndConditions")), 1)])]),
|
|
217
217
|
_: 1
|
|
218
|
-
}), o(
|
|
218
|
+
}), o(H, {
|
|
219
219
|
modelValue: r.value,
|
|
220
220
|
"onUpdate:modelValue": c[1] ||= (e) => r.value = e,
|
|
221
221
|
description: e.content
|
|
222
222
|
}, null, 8, ["modelValue", "description"])]));
|
|
223
223
|
}
|
|
224
|
-
}), [["__scopeId", "data-v-689c045a"]]),
|
|
224
|
+
}), [["__scopeId", "data-v-689c045a"]]), pe = /* @__PURE__ */ c({
|
|
225
225
|
__name: "GiftCard",
|
|
226
226
|
setup(e) {
|
|
227
|
-
let { t } = x(), r =
|
|
228
|
-
return (e, i) => (d(), n(
|
|
227
|
+
let { t } = x(), r = V();
|
|
228
|
+
return (e, i) => (d(), n(fe, {
|
|
229
229
|
content: a(r).termsOfService,
|
|
230
230
|
"button-label": a(t)("giftCard.orderGiftCard")
|
|
231
231
|
}, null, 8, ["content", "button-label"]));
|
|
232
232
|
}
|
|
233
|
-
}),
|
|
233
|
+
}), me = ["data-layout"], he = { id: "konnectio-gift-card-wrapper" }, ge = { id: "konnectio-gift-card-title" }, _e = { id: "konnectio-gift-card-content" }, ve = { id: "konnectio-gift-card-payment" }, ye = ["innerHTML"], be = { key: 0 }, $ = {
|
|
234
234
|
key: 0,
|
|
235
235
|
id: "konnectio-select-place-type"
|
|
236
|
-
},
|
|
236
|
+
}, xe = { class: /*@__PURE__*/ r(["konnectio-label", "required"]) }, Se = { id: "konnectio-select-place-type-input" }, Ce = ["innerHTML"], we = {
|
|
237
237
|
key: 0,
|
|
238
238
|
id: "konnectio-gift-card-order"
|
|
239
|
-
},
|
|
239
|
+
}, Te = { class: "konnectio-panel" }, Ee = {
|
|
240
240
|
key: 1,
|
|
241
241
|
id: "konnectio-gift-card-remarks"
|
|
242
|
-
},
|
|
242
|
+
}, De = {
|
|
243
243
|
key: 2,
|
|
244
244
|
id: "konnectio-gift-card-order-minimal"
|
|
245
|
-
},
|
|
245
|
+
}, Oe = { id: "konnectio-gift-card-recaptcha" }, ke = /*#__PURE__*/ A(/* @__PURE__ */ c({
|
|
246
246
|
name: "GiftCardLayout",
|
|
247
247
|
__name: "GiftCard",
|
|
248
248
|
props: {
|
|
@@ -255,20 +255,20 @@ var de = { class: "gift-card-skeleton" }, fe = { class: "gift-card-skeleton-form
|
|
|
255
255
|
let c = r, p = u(() => ({
|
|
256
256
|
panelMaxWidth: "800px",
|
|
257
257
|
...c.styling
|
|
258
|
-
})), { t: m } = x(), { name: h, email:
|
|
259
|
-
return b(
|
|
258
|
+
})), { t: m } = x(), { name: h, email: C, phone: w, value: T, remark: D, showValue: O, quantity: k, media: A, placeId: j, placeType: R, showFormPage: z, showPaymentPage: B, showConfirmationPage: H, places: U, hasFilledForm: W, hasForcedPlaceType: G, isWaitingForResponse: K } = E(V()), { initialize: q, orderGiftCard: J, fetchMetadata: Y } = V(), { isRecaptchaEnabled: X, currency: Z, hasError: Q } = E(te());
|
|
259
|
+
return b(R, () => {
|
|
260
260
|
j.value = void 0;
|
|
261
|
-
}),
|
|
261
|
+
}), S(() => {
|
|
262
262
|
let e = c.placeType ? parseInt(c.placeType) : void 0;
|
|
263
|
-
|
|
264
|
-
}), (c, u) => (d(), n(
|
|
263
|
+
q(e);
|
|
264
|
+
}), (c, u) => (d(), n(ne, { styling: p.value }, {
|
|
265
265
|
default: g(() => [(d(), n(l, null, {
|
|
266
|
-
default: g(() => [o(
|
|
266
|
+
default: g(() => [o(I, {
|
|
267
267
|
"access-token": r.accessToken,
|
|
268
268
|
"data-layout": r.layout,
|
|
269
|
-
callback: a(
|
|
269
|
+
callback: a(Y)
|
|
270
270
|
}, {
|
|
271
|
-
default: g(() => [a(
|
|
271
|
+
default: g(() => [a(Q) ? (d(), n(L, {
|
|
272
272
|
key: 1,
|
|
273
273
|
title: "Unable to render Gift card module",
|
|
274
274
|
description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
|
|
@@ -276,17 +276,17 @@ var de = { class: "gift-card-skeleton" }, fe = { class: "gift-card-skeleton-form
|
|
|
276
276
|
key: 0,
|
|
277
277
|
id: "konnectio-gift-card-module",
|
|
278
278
|
"data-layout": r.layout
|
|
279
|
-
}, [i("div",
|
|
280
|
-
i("h2",
|
|
281
|
-
i("div",
|
|
282
|
-
_(i("div",
|
|
279
|
+
}, [i("div", he, [
|
|
280
|
+
i("h2", ge, [i("span", null, t(a(m)("giftCard.title")), 1)]),
|
|
281
|
+
i("div", _e, [
|
|
282
|
+
_(i("div", ve, [o(se)], 512), [[f, a(B)]]),
|
|
283
283
|
_(i("div", null, [i("p", {
|
|
284
284
|
id: "konnectio-gift-card-description",
|
|
285
285
|
innerHTML: a(m)("giftCard.description")
|
|
286
|
-
}, null, 8,
|
|
287
|
-
a(
|
|
288
|
-
modelValue: a(
|
|
289
|
-
"onUpdate:modelValue": u[0] ||= (e) => v(
|
|
286
|
+
}, null, 8, ye), i("form", null, [
|
|
287
|
+
a(G) ? s("", !0) : (d(), y("div", be, [a(U) ? (d(), y("div", $, [i("label", xe, [i("span", null, t(a(m)("giftCard.selectType")), 1)]), i("div", Se, [i("ul", null, [(d(!0), y(ee, null, e(a(U), (e, t) => (d(), y("li", { key: t }, [o(oe, {
|
|
288
|
+
modelValue: a(R),
|
|
289
|
+
"onUpdate:modelValue": u[0] ||= (e) => v(R) ? R.value = e : null,
|
|
290
290
|
type: "radio",
|
|
291
291
|
name: "placeType",
|
|
292
292
|
val: t,
|
|
@@ -295,12 +295,12 @@ var de = { class: "gift-card-skeleton" }, fe = { class: "gift-card-skeleton-form
|
|
|
295
295
|
"modelValue",
|
|
296
296
|
"val",
|
|
297
297
|
"label"
|
|
298
|
-
])]))), 128))]), a(
|
|
298
|
+
])]))), 128))]), a(U)[a(R)] && a(U)[a(R)].data.length > 1 ? (d(), n(N, {
|
|
299
299
|
key: 0,
|
|
300
300
|
modelValue: a(j),
|
|
301
301
|
"onUpdate:modelValue": u[1] ||= (e) => v(j) ? j.value = e : null,
|
|
302
302
|
placeholder: a(m)("giftCard.selectPlacePlaceholder"),
|
|
303
|
-
options: a(
|
|
303
|
+
options: a(U)[a(R)].data,
|
|
304
304
|
labelKey: "name",
|
|
305
305
|
valueKey: "id",
|
|
306
306
|
required: ""
|
|
@@ -308,8 +308,8 @@ var de = { class: "gift-card-skeleton" }, fe = { class: "gift-card-skeleton-form
|
|
|
308
308
|
"modelValue",
|
|
309
309
|
"placeholder",
|
|
310
310
|
"options"
|
|
311
|
-
])) : s("", !0)])])) : (d(), n(
|
|
312
|
-
o(
|
|
311
|
+
])) : s("", !0)])])) : (d(), n(F, { key: 1 }))])),
|
|
312
|
+
o(M, {
|
|
313
313
|
modelValue: a(h),
|
|
314
314
|
"onUpdate:modelValue": u[2] ||= (e) => v(h) ? h.value = e : null,
|
|
315
315
|
type: "text",
|
|
@@ -324,9 +324,9 @@ var de = { class: "gift-card-skeleton" }, fe = { class: "gift-card-skeleton-form
|
|
|
324
324
|
"label",
|
|
325
325
|
"placeholder"
|
|
326
326
|
]),
|
|
327
|
-
o(
|
|
328
|
-
modelValue: a(
|
|
329
|
-
"onUpdate:modelValue": u[3] ||= (e) => v(
|
|
327
|
+
o(M, {
|
|
328
|
+
modelValue: a(C),
|
|
329
|
+
"onUpdate:modelValue": u[3] ||= (e) => v(C) ? C.value = e : null,
|
|
330
330
|
type: "email",
|
|
331
331
|
name: "email",
|
|
332
332
|
autocomplete: "email",
|
|
@@ -339,7 +339,7 @@ var de = { class: "gift-card-skeleton" }, fe = { class: "gift-card-skeleton-form
|
|
|
339
339
|
"label",
|
|
340
340
|
"placeholder"
|
|
341
341
|
]),
|
|
342
|
-
o(
|
|
342
|
+
o(ie, {
|
|
343
343
|
modelValue: a(w),
|
|
344
344
|
"onUpdate:modelValue": u[4] ||= (e) => v(w) ? w.value = e : null,
|
|
345
345
|
icon: "phone-office",
|
|
@@ -351,7 +351,7 @@ var de = { class: "gift-card-skeleton" }, fe = { class: "gift-card-skeleton-form
|
|
|
351
351
|
"label",
|
|
352
352
|
"placeholder"
|
|
353
353
|
]),
|
|
354
|
-
o(
|
|
354
|
+
o(M, {
|
|
355
355
|
modelValue: a(T),
|
|
356
356
|
"onUpdate:modelValue": u[5] ||= (e) => v(T) ? T.value = e : null,
|
|
357
357
|
type: "number",
|
|
@@ -359,7 +359,7 @@ var de = { class: "gift-card-skeleton" }, fe = { class: "gift-card-skeleton-form
|
|
|
359
359
|
label: a(m)("giftCard.value"),
|
|
360
360
|
icon: "money-bill",
|
|
361
361
|
placeholder: a(m)("giftCard.valuePlaceholder"),
|
|
362
|
-
suffix: a(
|
|
362
|
+
suffix: a(Z),
|
|
363
363
|
required: ""
|
|
364
364
|
}, null, 8, [
|
|
365
365
|
"modelValue",
|
|
@@ -369,32 +369,32 @@ var de = { class: "gift-card-skeleton" }, fe = { class: "gift-card-skeleton-form
|
|
|
369
369
|
]),
|
|
370
370
|
s("", !0),
|
|
371
371
|
s("", !0),
|
|
372
|
-
o(
|
|
372
|
+
o(re, {
|
|
373
373
|
modelValue: a(k),
|
|
374
374
|
"onUpdate:modelValue": u[8] ||= (e) => v(k) ? k.value = e : null,
|
|
375
375
|
label: a(m)("giftCard.quantity"),
|
|
376
376
|
icon: "gift-card",
|
|
377
377
|
required: ""
|
|
378
378
|
}, null, 8, ["modelValue", "label"])
|
|
379
|
-
])], 512), [[f, a(
|
|
380
|
-
_(i("div", null, [i("div", { innerHTML: a(m)("giftCard.thankYou") }, null, 8,
|
|
379
|
+
])], 512), [[f, a(z)]]),
|
|
380
|
+
_(i("div", null, [i("div", { innerHTML: a(m)("giftCard.thankYou") }, null, 8, Ce)], 512), [[f, a(H)]])
|
|
381
381
|
]),
|
|
382
|
-
r.layout !== "minimal" && a(
|
|
382
|
+
r.layout !== "minimal" && a(z) ? (d(), y("div", we, [i("div", Te, [o(P, {
|
|
383
383
|
label: a(m)("giftCard.orderGiftCard"),
|
|
384
384
|
"full-width": !0,
|
|
385
|
-
disabled: !a(
|
|
386
|
-
"is-loading": a(
|
|
387
|
-
"onUpdate:isLoading": u[9] ||= (e) => v(
|
|
388
|
-
onClickEvent: a(
|
|
385
|
+
disabled: !a(W),
|
|
386
|
+
"is-loading": a(K),
|
|
387
|
+
"onUpdate:isLoading": u[9] ||= (e) => v(K) ? K.value = e : null,
|
|
388
|
+
onClickEvent: a(J)
|
|
389
389
|
}, null, 8, [
|
|
390
390
|
"label",
|
|
391
391
|
"disabled",
|
|
392
392
|
"is-loading",
|
|
393
393
|
"onClickEvent"
|
|
394
394
|
])])])) : s("", !0),
|
|
395
|
-
a(
|
|
396
|
-
modelValue: a(
|
|
397
|
-
"onUpdate:modelValue": u[10] ||= (e) => v(
|
|
395
|
+
a(z) ? (d(), y("div", Ee, [o(M, {
|
|
396
|
+
modelValue: a(D),
|
|
397
|
+
"onUpdate:modelValue": u[10] ||= (e) => v(D) ? D.value = e : null,
|
|
398
398
|
type: "textarea",
|
|
399
399
|
name: "remark",
|
|
400
400
|
label: a(m)("giftCard.remark"),
|
|
@@ -405,52 +405,39 @@ var de = { class: "gift-card-skeleton" }, fe = { class: "gift-card-skeleton-form
|
|
|
405
405
|
"label",
|
|
406
406
|
"placeholder"
|
|
407
407
|
])])) : s("", !0),
|
|
408
|
-
a(
|
|
409
|
-
o(
|
|
408
|
+
a(z) ? (d(), y("div", De, [
|
|
409
|
+
o(P, {
|
|
410
410
|
label: a(m)("giftCard.orderGiftCard"),
|
|
411
411
|
"full-width": !0,
|
|
412
|
-
disabled: !a(
|
|
412
|
+
disabled: !a(W),
|
|
413
413
|
"data-test": "orderGiftCard",
|
|
414
|
-
"is-loading": a(
|
|
415
|
-
"onUpdate:isLoading": u[11] ||= (e) => v(
|
|
416
|
-
onClickEvent: a(
|
|
414
|
+
"is-loading": a(K),
|
|
415
|
+
"onUpdate:isLoading": u[11] ||= (e) => v(K) ? K.value = e : null,
|
|
416
|
+
onClickEvent: a(J)
|
|
417
417
|
}, null, 8, [
|
|
418
418
|
"label",
|
|
419
419
|
"disabled",
|
|
420
420
|
"is-loading",
|
|
421
421
|
"onClickEvent"
|
|
422
422
|
]),
|
|
423
|
-
i("div", null, [u[12] ||= i("div", { class: "konnectio-divider" }, null, -1), o(
|
|
424
|
-
_(i("div",
|
|
423
|
+
i("div", null, [u[12] ||= i("div", { class: "konnectio-divider" }, null, -1), o(pe)]),
|
|
424
|
+
_(i("div", Oe, [o(ae)], 512), [[f, a(X)]])
|
|
425
425
|
])) : s("", !0)
|
|
426
|
-
])], 8,
|
|
426
|
+
])], 8, me))]),
|
|
427
427
|
_: 1
|
|
428
428
|
}, 8, [
|
|
429
429
|
"access-token",
|
|
430
430
|
"data-layout",
|
|
431
431
|
"callback"
|
|
432
432
|
])]),
|
|
433
|
-
fallback: g(() => [o(
|
|
433
|
+
fallback: g(() => [o(ue)]),
|
|
434
434
|
_: 1
|
|
435
435
|
}))]),
|
|
436
436
|
_: 1
|
|
437
437
|
}, 8, ["styling"]));
|
|
438
438
|
}
|
|
439
|
-
}), [["__scopeId", "data-v-06fd20aa"]]),
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
super();
|
|
443
|
-
}
|
|
444
|
-
disconnectedCallback() {
|
|
445
|
-
this.vueApp.unmount();
|
|
446
|
-
}
|
|
447
|
-
connectedCallback() {
|
|
448
|
-
let e = T(Q, this.attributes);
|
|
449
|
-
this.vueApp = S(Q, e), this.vueApp.provide("emitter", Ne), this.vueApp.use(k), this.vueApp.use(Me), this.vueApp.use(w), this.vueApp.use(R);
|
|
450
|
-
let t = document.createElement("div");
|
|
451
|
-
this.vueApp.mount(t), this.appendChild(t.children[0]);
|
|
452
|
-
}
|
|
453
|
-
};
|
|
454
|
-
window.customElements.define("konnectio-gift-card", $);
|
|
439
|
+
}), [["__scopeId", "data-v-06fd20aa"]]), Ae = h(), je = T(), Me = w("konnectio-gift-card", ke, (e) => {
|
|
440
|
+
e.provide("emitter", je), e.use(O), e.use(Ae), e.use(C), e.use(B);
|
|
441
|
+
});
|
|
455
442
|
//#endregion
|
|
456
|
-
export {
|
|
443
|
+
export { Me as default };
|
package/dist/gift-card.js.br
CHANGED
|
Binary file
|
package/dist/gift-card.js.gz
CHANGED
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as e, bt as t, l as n, n as r, u as i } from "./mitt-
|
|
2
|
-
import { A as a, E as o, M as s, P as c, T as l, V as u, at as d, et as f, lt as p } from "./SelectField-
|
|
1
|
+
import { T as e, bt as t, l as n, n as r, u as i } from "./mitt-D_sfUt2u.js";
|
|
2
|
+
import { A as a, E as o, M as s, P as c, T as l, V as u, at as d, et as f, lt as p } from "./SelectField-BuepNFGh.js";
|
|
3
3
|
//#region src/store/giftCard.ts
|
|
4
4
|
var m = n("giftCard", () => {
|
|
5
5
|
let { pay: n } = a(), { display: m } = s(), { metaData: h, currencyId: g, hasError: _ } = i(o()), v = o(), y = t(f.InitialState), b = p("konnectio_name", "", void 0, { serializer: d.string }), x = p("konnectio_email", "", void 0, { serializer: d.string }), S = p("konnectio_phone", "", void 0, { serializer: d.string }), C = t(""), w = t(1), T = t(!0), E = t(""), D = t({
|
|
Binary file
|
|
Binary file
|