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