@konnectio/core 4.0.82 → 4.0.84
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-CLQbtAU7.js +100 -0
- package/dist/ActionField-CLQbtAU7.js.br +0 -0
- package/dist/AvailabilitySkeleton-BJPo5KGW.js +309 -0
- package/dist/AvailabilitySkeleton-BJPo5KGW.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-C4S5K4Ed.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CAv6OSp6.js} +1152 -1168
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CAv6OSp6.js.br +0 -0
- package/dist/{CheckoutWindow-DoADcN36.js → CheckoutWindow-C9Sa3vci.js} +159 -174
- package/dist/CheckoutWindow-C9Sa3vci.js.br +0 -0
- package/dist/{ErrorMessage-BxZaXdig.js → ErrorMessage-D6rbHHXd.js} +20 -35
- package/dist/ErrorMessage-D6rbHHXd.js.br +0 -0
- package/dist/EventAvailabilityForm-D-Q1vxsm.js +110 -0
- package/dist/EventAvailabilityForm-D-Q1vxsm.js.br +0 -0
- package/dist/Field-CGT9JUe-.js +43 -0
- package/dist/Field-CGT9JUe-.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DIbBJOzF.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BR0ZkskY.js} +2819 -2807
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BR0ZkskY.js.br +0 -0
- package/dist/TermsOfService-DmwGAt0q.js +28 -0
- package/dist/_-YHi6ciVk.js +5 -0
- package/dist/_.vue_vue_type_style_index_0_lang-DeF9xZEQ.js +25 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +9 -0
- package/dist/availability.js +54 -71
- package/dist/availability.js.br +0 -0
- package/dist/deep-link.js +20 -36
- package/dist/deep-link.js.br +0 -0
- package/dist/event.js +398 -416
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +72 -89
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +175 -192
- package/dist/gift-card.js.br +0 -0
- package/dist/giftCard-C-lmDpUB.js +118 -0
- package/dist/giftCard-C-lmDpUB.js.br +0 -0
- package/dist/hotel.js +1210 -1099
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-DDSHAjDQ.js → masonry.plugin-DL8uXS-9.js} +52 -68
- package/dist/masonry.plugin-DL8uXS-9.js.br +0 -0
- package/dist/mitt-B_elXQ2J.js +12437 -0
- package/dist/mitt-B_elXQ2J.js.br +0 -0
- package/dist/polyfill.js +4216 -7869
- package/dist/polyfill.js.br +0 -0
- package/dist/{style-CT1Yk_a0.js → style-CDpCXUak.js} +391 -406
- package/dist/style-CDpCXUak.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +12 -15
- package/dist/ActionField-Mf3IO8Sg.js +0 -115
- package/dist/ActionField-Mf3IO8Sg.js.br +0 -0
- package/dist/AvailabilitySkeleton-D3xnLMQI.js +0 -296
- package/dist/AvailabilitySkeleton-D3xnLMQI.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-C4S5K4Ed.js.br +0 -0
- package/dist/CheckoutWindow-DoADcN36.js.br +0 -0
- package/dist/ErrorMessage-BxZaXdig.js.br +0 -0
- package/dist/EventAvailabilityForm-Ctz8ENUN.js +0 -126
- package/dist/EventAvailabilityForm-Ctz8ENUN.js.br +0 -0
- package/dist/Field-Bg0N8Vc0.js +0 -58
- package/dist/Field-Bg0N8Vc0.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DIbBJOzF.js.br +0 -0
- package/dist/TermsOfService-CWraQvoB.js +0 -44
- package/dist/TermsOfService-CWraQvoB.js.br +0 -4
- package/dist/_-BEZe3PAF.js +0 -20
- package/dist/_.vue_vue_type_style_index_0_lang-DQzgcH2c.js +0 -40
- package/dist/_.vue_vue_type_style_index_0_lang-DQzgcH2c.js.br +0 -0
- package/dist/_commonjsHelpers-C8ml6AyB.js +0 -25
- package/dist/_commonjsHelpers-C8ml6AyB.js.br +0 -0
- package/dist/_sentry-release-injection-file-8liCQLPI.js +0 -9501
- package/dist/_sentry-release-injection-file-8liCQLPI.js.br +0 -0
- package/dist/giftCard-sImOKdP0.js +0 -134
- package/dist/giftCard-sImOKdP0.js.br +0 -0
- package/dist/masonry.plugin-DDSHAjDQ.js.br +0 -0
- package/dist/mitt-CzL6QOyp.js +0 -2977
- package/dist/mitt-CzL6QOyp.js.br +0 -0
- package/dist/sentry-Cyc40KnT.js +0 -26
- package/dist/style-CT1Yk_a0.js.br +0 -0
- package/dist/tracing-6Srl_nMB.js +0 -2628
- package/dist/tracing-6Srl_nMB.js.br +0 -0
package/dist/gift-card.js
CHANGED
|
@@ -1,30 +1,13 @@
|
|
|
1
|
-
import { d as T, r as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
import { S as Le } from "./TermsOfService-CWraQvoB.js";
|
|
12
|
-
(function() {
|
|
13
|
-
try {
|
|
14
|
-
var d = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, r = new Error().stack;
|
|
15
|
-
r && (d._sentryDebugIds = d._sentryDebugIds || {}, d._sentryDebugIds[r] = "788a2c57-7c62-457c-9ca0-6fc9b5346c2f", d._sentryDebugIdIdentifier = "sentry-dbid-788a2c57-7c62-457c-9ca0-6fc9b5346c2f");
|
|
16
|
-
} catch {
|
|
17
|
-
}
|
|
18
|
-
})();
|
|
19
|
-
{
|
|
20
|
-
var A = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
21
|
-
A._sentryModuleMetadata = A._sentryModuleMetadata || {}, A._sentryModuleMetadata[new Error().stack] = Object.assign(
|
|
22
|
-
{},
|
|
23
|
-
A._sentryModuleMetadata[new Error().stack],
|
|
24
|
-
{ "_sentryBundlerPluginAppKey:konnectio-frontend-core": !0 }
|
|
25
|
-
);
|
|
26
|
-
}
|
|
27
|
-
const qe = { class: "media-selector" }, Be = ["accept"], Ge = { class: "media-selector-wrapper" }, Re = { class: "media-selector-tools" }, De = { key: 0 }, xe = { key: 1 }, He = { key: 2 }, je = ["src"], Ne = /* @__PURE__ */ T({
|
|
1
|
+
import { d as T, u as L, r as O, c as J, a as i, b as y, w as C, e as l, g as c, f as t, i as e, j as f, n as Y, t as q, h as te, G as oe, x as W, H as ne, o as ie, S as se, I as G, J as A, F as re, B as de, C as b, p as ue, k as ce, l as pe, m as me, q as fe, s as ve, v as be } from "./mitt-B_elXQ2J.js";
|
|
2
|
+
import { a as he, c as S, p as _e, E as ke, _ as x, d as ge, n as ye, L as Ce, T as M, b as Ve, C as we, m as $e } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BR0ZkskY.js";
|
|
3
|
+
import { G as Fe } from "./style-CDpCXUak.js";
|
|
4
|
+
import { u as R } from "./giftCard-C-lmDpUB.js";
|
|
5
|
+
import { _ as Pe } from "./_.vue_vue_type_style_index_0_lang-DeF9xZEQ.js";
|
|
6
|
+
import { a as Ee, C as Ue, P as Se, _ as Te } from "./CheckoutWindow-C9Sa3vci.js";
|
|
7
|
+
import { F as U } from "./Field-CGT9JUe-.js";
|
|
8
|
+
import { E as Ge } from "./ErrorMessage-D6rbHHXd.js";
|
|
9
|
+
import { S as Ae } from "./TermsOfService-DmwGAt0q.js";
|
|
10
|
+
const Me = { class: "media-selector" }, qe = ["accept"], Le = { class: "media-selector-wrapper" }, Ie = { class: "media-selector-tools" }, Be = { key: 0 }, Re = { key: 1 }, xe = { key: 2 }, He = ["src"], De = /* @__PURE__ */ T({
|
|
28
11
|
__name: "MediaSelector",
|
|
29
12
|
props: {
|
|
30
13
|
modelValue: {},
|
|
@@ -34,10 +17,10 @@ const qe = { class: "media-selector" }, Be = ["accept"], Ge = { class: "media-se
|
|
|
34
17
|
required: { type: Boolean, default: !1 }
|
|
35
18
|
},
|
|
36
19
|
emits: ["update:modelValue"],
|
|
37
|
-
setup(
|
|
38
|
-
const
|
|
39
|
-
function V(
|
|
40
|
-
|
|
20
|
+
setup(p, { emit: r }) {
|
|
21
|
+
const m = r, o = p, { t: u } = L(), { display: h } = he(), v = O(), _ = J(() => o.modelValue.base64 !== "");
|
|
22
|
+
function V(a) {
|
|
23
|
+
m("update:modelValue", a);
|
|
41
24
|
}
|
|
42
25
|
function H() {
|
|
43
26
|
V({
|
|
@@ -49,79 +32,79 @@ const qe = { class: "media-selector" }, Be = ["accept"], Ge = { class: "media-se
|
|
|
49
32
|
function w() {
|
|
50
33
|
v.value && v.value.click();
|
|
51
34
|
}
|
|
52
|
-
function
|
|
53
|
-
const [
|
|
54
|
-
|
|
55
|
-
if (
|
|
56
|
-
const
|
|
57
|
-
|
|
35
|
+
function D(a, d) {
|
|
36
|
+
const [g, I] = [a.name, a.type], k = new FileReader();
|
|
37
|
+
k.onload = function(E) {
|
|
38
|
+
if (E.target) {
|
|
39
|
+
const B = E.target.result;
|
|
40
|
+
d({ base64: B, name: g, type: I });
|
|
58
41
|
} else
|
|
59
|
-
|
|
60
|
-
message:
|
|
42
|
+
h({
|
|
43
|
+
message: u("imageUploadError"),
|
|
61
44
|
type: "error"
|
|
62
45
|
});
|
|
63
|
-
},
|
|
46
|
+
}, k.readAsDataURL(a);
|
|
64
47
|
}
|
|
65
48
|
async function $() {
|
|
66
|
-
let
|
|
67
|
-
(
|
|
49
|
+
let a;
|
|
50
|
+
(a = v.value.files) instanceof FileList && D(a[0], V);
|
|
68
51
|
}
|
|
69
|
-
return (
|
|
70
|
-
label:
|
|
71
|
-
required:
|
|
52
|
+
return (a, d) => (i(), y(_e, {
|
|
53
|
+
label: a.label,
|
|
54
|
+
required: a.required,
|
|
72
55
|
type: "media"
|
|
73
56
|
}, {
|
|
74
57
|
default: C(() => [
|
|
75
|
-
l("div",
|
|
58
|
+
l("div", Me, [
|
|
76
59
|
l("input", {
|
|
77
60
|
ref_key: "fileInput",
|
|
78
61
|
ref: v,
|
|
79
62
|
type: "file",
|
|
80
63
|
class: "hidden",
|
|
81
|
-
accept:
|
|
64
|
+
accept: a.validation,
|
|
82
65
|
single: "",
|
|
83
|
-
onChange:
|
|
84
|
-
}, null, 40,
|
|
85
|
-
l("div",
|
|
86
|
-
l("ul",
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
label: e(
|
|
66
|
+
onChange: d[0] || (d[0] = (g) => $())
|
|
67
|
+
}, null, 40, qe),
|
|
68
|
+
l("div", Le, [
|
|
69
|
+
l("ul", Ie, [
|
|
70
|
+
_.value ? f("", !0) : (i(), c("li", Be, [
|
|
71
|
+
t(S, {
|
|
72
|
+
label: e(u)("uploadFile"),
|
|
90
73
|
type: "button",
|
|
91
74
|
icon: "upload",
|
|
92
|
-
"icon-color":
|
|
93
|
-
onClickEvent:
|
|
75
|
+
"icon-color": a.iconColor,
|
|
76
|
+
onClickEvent: d[1] || (d[1] = (g) => w())
|
|
94
77
|
}, null, 8, ["label", "icon-color"])
|
|
95
78
|
])),
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
label: e(
|
|
79
|
+
_.value ? (i(), c("li", Re, [
|
|
80
|
+
t(S, {
|
|
81
|
+
label: e(u)("replaceFile"),
|
|
99
82
|
type: "button",
|
|
100
83
|
icon: "repeat-alt",
|
|
101
|
-
"icon-color":
|
|
102
|
-
onClickEvent:
|
|
84
|
+
"icon-color": a.iconColor,
|
|
85
|
+
onClickEvent: d[2] || (d[2] = (g) => w())
|
|
103
86
|
}, null, 8, ["label", "icon-color"])
|
|
104
87
|
])) : f("", !0),
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
label: e(
|
|
88
|
+
_.value ? (i(), c("li", xe, [
|
|
89
|
+
t(S, {
|
|
90
|
+
label: e(u)("removeFile"),
|
|
108
91
|
type: "button",
|
|
109
92
|
icon: "trash-alt",
|
|
110
|
-
"icon-color":
|
|
111
|
-
onClickEvent:
|
|
93
|
+
"icon-color": a.iconColor,
|
|
94
|
+
onClickEvent: d[3] || (d[3] = (g) => H())
|
|
112
95
|
}, null, 8, ["label", "icon-color"])
|
|
113
96
|
])) : f("", !0)
|
|
114
97
|
]),
|
|
115
98
|
l("div", {
|
|
116
|
-
class:
|
|
99
|
+
class: Y([
|
|
117
100
|
"media-selector-previewer",
|
|
118
|
-
{ opened:
|
|
101
|
+
{ opened: _.value }
|
|
119
102
|
])
|
|
120
103
|
}, [
|
|
121
|
-
|
|
104
|
+
a.modelValue ? (i(), c("img", {
|
|
122
105
|
key: 0,
|
|
123
|
-
src:
|
|
124
|
-
}, null, 8,
|
|
106
|
+
src: a.modelValue.base64
|
|
107
|
+
}, null, 8, He)) : f("", !0)
|
|
125
108
|
], 2)
|
|
126
109
|
])
|
|
127
110
|
])
|
|
@@ -130,8 +113,8 @@ const qe = { class: "media-selector" }, Be = ["accept"], Ge = { class: "media-se
|
|
|
130
113
|
}, 8, ["label", "required"]));
|
|
131
114
|
}
|
|
132
115
|
});
|
|
133
|
-
function
|
|
134
|
-
const r =
|
|
116
|
+
function z(p) {
|
|
117
|
+
const r = p;
|
|
135
118
|
r.__i18n = r.__i18n || [], r.__i18n.push({
|
|
136
119
|
locale: "",
|
|
137
120
|
resource: {
|
|
@@ -150,31 +133,31 @@ function O(d) {
|
|
|
150
133
|
}
|
|
151
134
|
});
|
|
152
135
|
}
|
|
153
|
-
typeof
|
|
154
|
-
const
|
|
136
|
+
typeof z == "function" && z(De);
|
|
137
|
+
const Ne = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-form" }, We = /* @__PURE__ */ T({
|
|
155
138
|
__name: "GiftCardSkeleton",
|
|
156
|
-
setup(
|
|
157
|
-
return (r,
|
|
158
|
-
l("div",
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
139
|
+
setup(p) {
|
|
140
|
+
return (r, m) => (i(), c("div", Ne, [
|
|
141
|
+
l("div", je, [
|
|
142
|
+
t(U),
|
|
143
|
+
t(U),
|
|
144
|
+
t(U),
|
|
145
|
+
t(U),
|
|
146
|
+
t(U, { "is-text-area": "" }),
|
|
147
|
+
t(ke, { height: "44px" })
|
|
165
148
|
])
|
|
166
149
|
]));
|
|
167
150
|
}
|
|
168
|
-
}),
|
|
151
|
+
}), ze = /* @__PURE__ */ x(We, [["__scopeId", "data-v-ba3efaa1"]]), Ke = { class: "konnectio-accept-terms" }, Oe = /* @__PURE__ */ T({
|
|
169
152
|
__name: "_",
|
|
170
153
|
props: {
|
|
171
154
|
content: {},
|
|
172
155
|
buttonLabel: {}
|
|
173
156
|
},
|
|
174
|
-
setup(
|
|
175
|
-
const { t: r } =
|
|
176
|
-
return (o,
|
|
177
|
-
|
|
157
|
+
setup(p) {
|
|
158
|
+
const { t: r } = L(), m = O(!1);
|
|
159
|
+
return (o, u) => (i(), c("div", Ke, [
|
|
160
|
+
t(e(oe), {
|
|
178
161
|
keypath: "general.termsAndConditionsNotice",
|
|
179
162
|
tag: "span",
|
|
180
163
|
scope: "global"
|
|
@@ -186,44 +169,44 @@ const ze = { class: "gift-card-skeleton" }, Ke = { class: "gift-card-skeleton-fo
|
|
|
186
169
|
l("a", {
|
|
187
170
|
class: "konnectio-accept-terms-link",
|
|
188
171
|
target: "_blank",
|
|
189
|
-
onClick:
|
|
172
|
+
onClick: u[0] || (u[0] = te((h) => m.value = !0, ["prevent"]))
|
|
190
173
|
}, [
|
|
191
174
|
l("span", null, q(e(r)("general.termsAndConditions")), 1)
|
|
192
175
|
])
|
|
193
176
|
]),
|
|
194
177
|
_: 1
|
|
195
178
|
}),
|
|
196
|
-
|
|
197
|
-
modelValue:
|
|
198
|
-
"onUpdate:modelValue":
|
|
179
|
+
t(Ae, {
|
|
180
|
+
modelValue: m.value,
|
|
181
|
+
"onUpdate:modelValue": u[1] || (u[1] = (h) => m.value = h),
|
|
199
182
|
description: o.content
|
|
200
183
|
}, null, 8, ["modelValue", "description"])
|
|
201
184
|
]));
|
|
202
185
|
}
|
|
203
|
-
}),
|
|
186
|
+
}), Je = /* @__PURE__ */ x(Oe, [["__scopeId", "data-v-f587c956"]]), Ye = /* @__PURE__ */ T({
|
|
204
187
|
__name: "GiftCard",
|
|
205
|
-
setup(
|
|
206
|
-
const { t: r } =
|
|
207
|
-
return (o,
|
|
208
|
-
content: e(
|
|
188
|
+
setup(p) {
|
|
189
|
+
const { t: r } = L(), m = R();
|
|
190
|
+
return (o, u) => (i(), y(Je, {
|
|
191
|
+
content: e(m).termsOfService,
|
|
209
192
|
"button-label": e(r)("giftCard.orderGiftCard")
|
|
210
193
|
}, null, 8, ["content", "button-label"]));
|
|
211
194
|
}
|
|
212
|
-
}),
|
|
195
|
+
}), Qe = (p) => (ue("data-v-278e1031"), p = p(), ce(), p), Xe = ["data-layout"], Ze = { id: "konnectio-gift-card-wrapper" }, el = { id: "konnectio-gift-card-title" }, ll = { id: "konnectio-gift-card-content" }, al = { id: "konnectio-gift-card-payment" }, tl = ["innerHTML"], ol = { key: 0 }, nl = {
|
|
213
196
|
key: 0,
|
|
214
197
|
id: "konnectio-select-place-type"
|
|
215
|
-
},
|
|
216
|
-
class: /* @__PURE__ */
|
|
217
|
-
},
|
|
198
|
+
}, il = {
|
|
199
|
+
class: /* @__PURE__ */ Y(["konnectio-label", "required"])
|
|
200
|
+
}, sl = { id: "konnectio-select-place-type-input" }, rl = ["innerHTML"], dl = {
|
|
218
201
|
key: 0,
|
|
219
202
|
id: "konnectio-gift-card-order"
|
|
220
|
-
},
|
|
203
|
+
}, ul = { class: "konnectio-panel" }, cl = {
|
|
221
204
|
key: 1,
|
|
222
205
|
id: "konnectio-gift-card-remarks"
|
|
223
|
-
},
|
|
206
|
+
}, pl = {
|
|
224
207
|
key: 2,
|
|
225
208
|
id: "konnectio-gift-card-order-minimal"
|
|
226
|
-
},
|
|
209
|
+
}, ml = /* @__PURE__ */ Qe(() => /* @__PURE__ */ l("div", { class: "konnectio-divider" }, null, -1)), fl = { id: "konnectio-gift-card-recaptcha" }, vl = /* @__PURE__ */ T({
|
|
227
210
|
name: "GiftCardLayout",
|
|
228
211
|
__name: "GiftCard",
|
|
229
212
|
props: {
|
|
@@ -232,103 +215,103 @@ const ze = { class: "gift-card-skeleton" }, Ke = { class: "gift-card-skeleton-fo
|
|
|
232
215
|
placeType: {},
|
|
233
216
|
styling: {}
|
|
234
217
|
},
|
|
235
|
-
setup(
|
|
236
|
-
const r =
|
|
218
|
+
setup(p) {
|
|
219
|
+
const r = p, m = J(() => ({
|
|
237
220
|
panelMaxWidth: "800px",
|
|
238
221
|
...r.styling
|
|
239
|
-
})), { t: o } =
|
|
240
|
-
name:
|
|
241
|
-
email:
|
|
222
|
+
})), { t: o } = L(), {
|
|
223
|
+
name: u,
|
|
224
|
+
email: h,
|
|
242
225
|
phone: v,
|
|
243
|
-
value:
|
|
226
|
+
value: _,
|
|
244
227
|
remark: V,
|
|
245
228
|
showValue: H,
|
|
246
229
|
quantity: w,
|
|
247
|
-
media:
|
|
230
|
+
media: D,
|
|
248
231
|
placeId: $,
|
|
249
|
-
placeType:
|
|
250
|
-
showFormPage:
|
|
251
|
-
showPaymentPage:
|
|
252
|
-
showConfirmationPage:
|
|
253
|
-
places:
|
|
254
|
-
hasFilledForm:
|
|
255
|
-
hasForcedPlaceType:
|
|
232
|
+
placeType: a,
|
|
233
|
+
showFormPage: d,
|
|
234
|
+
showPaymentPage: g,
|
|
235
|
+
showConfirmationPage: I,
|
|
236
|
+
places: k,
|
|
237
|
+
hasFilledForm: E,
|
|
238
|
+
hasForcedPlaceType: B,
|
|
256
239
|
isWaitingForResponse: F
|
|
257
|
-
} =
|
|
258
|
-
return ne(
|
|
240
|
+
} = W(R()), { initialize: Q, orderGiftCard: N, fetchMetadata: X } = R(), { isRecaptchaEnabled: Z, currency: ee, hasError: le } = W(ge());
|
|
241
|
+
return ne(a, () => {
|
|
259
242
|
$.value = void 0;
|
|
260
243
|
}), ie(() => {
|
|
261
|
-
const
|
|
262
|
-
|
|
263
|
-
}), (
|
|
244
|
+
const P = r.placeType ? parseInt(r.placeType) : void 0;
|
|
245
|
+
Q(P);
|
|
246
|
+
}), (P, s) => (i(), y(we, { styling: m.value }, {
|
|
264
247
|
default: C(() => [
|
|
265
|
-
(i(),
|
|
248
|
+
(i(), y(se, null, {
|
|
266
249
|
default: C(() => [
|
|
267
|
-
|
|
268
|
-
"access-token":
|
|
269
|
-
"data-layout":
|
|
270
|
-
callback: e(
|
|
250
|
+
t(Pe, {
|
|
251
|
+
"access-token": P.accessToken,
|
|
252
|
+
"data-layout": P.layout,
|
|
253
|
+
callback: e(X)
|
|
271
254
|
}, {
|
|
272
255
|
default: C(() => [
|
|
273
|
-
e(
|
|
256
|
+
e(le) ? (i(), y(Ge, {
|
|
274
257
|
key: 1,
|
|
275
258
|
title: "Unable to render Gift card module",
|
|
276
259
|
description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
|
|
277
|
-
})) : (i(),
|
|
260
|
+
})) : (i(), c("div", {
|
|
278
261
|
key: 0,
|
|
279
262
|
id: "konnectio-gift-card-module",
|
|
280
|
-
"data-layout":
|
|
263
|
+
"data-layout": P.layout
|
|
281
264
|
}, [
|
|
282
|
-
l("div",
|
|
283
|
-
l("h2",
|
|
265
|
+
l("div", Ze, [
|
|
266
|
+
l("h2", el, [
|
|
284
267
|
l("span", null, q(e(o)("giftCard.title")), 1)
|
|
285
268
|
]),
|
|
286
|
-
l("div",
|
|
287
|
-
|
|
288
|
-
|
|
269
|
+
l("div", ll, [
|
|
270
|
+
G(l("div", al, [
|
|
271
|
+
t(Ee)
|
|
289
272
|
], 512), [
|
|
290
|
-
[
|
|
273
|
+
[A, e(g)]
|
|
291
274
|
]),
|
|
292
|
-
|
|
275
|
+
G(l("div", null, [
|
|
293
276
|
l("p", {
|
|
294
277
|
id: "konnectio-gift-card-description",
|
|
295
278
|
innerHTML: e(o)("giftCard.description")
|
|
296
|
-
}, null, 8,
|
|
279
|
+
}, null, 8, tl),
|
|
297
280
|
l("form", null, [
|
|
298
|
-
e(
|
|
299
|
-
e(
|
|
300
|
-
l("label",
|
|
281
|
+
e(B) ? f("", !0) : (i(), c("div", ol, [
|
|
282
|
+
e(k) ? (i(), c("div", nl, [
|
|
283
|
+
l("label", il, [
|
|
301
284
|
l("span", null, q(e(o)("giftCard.selectType")), 1)
|
|
302
285
|
]),
|
|
303
|
-
l("div",
|
|
286
|
+
l("div", sl, [
|
|
304
287
|
l("ul", null, [
|
|
305
|
-
(i(!0),
|
|
306
|
-
|
|
307
|
-
modelValue: e(
|
|
308
|
-
"onUpdate:modelValue": s[0] || (s[0] = (ae) => b(
|
|
288
|
+
(i(!0), c(re, null, de(e(k), (n, j) => (i(), c("li", { key: j }, [
|
|
289
|
+
t(Ue, {
|
|
290
|
+
modelValue: e(a),
|
|
291
|
+
"onUpdate:modelValue": s[0] || (s[0] = (ae) => b(a) ? a.value = ae : null),
|
|
309
292
|
type: "radio",
|
|
310
293
|
name: "placeType",
|
|
311
|
-
val:
|
|
294
|
+
val: j,
|
|
312
295
|
label: n.label
|
|
313
296
|
}, null, 8, ["modelValue", "val", "label"])
|
|
314
297
|
]))), 128))
|
|
315
298
|
]),
|
|
316
|
-
e(
|
|
299
|
+
e(k)[e(a)] && e(k)[e(a)].data.length > 1 ? (i(), y(ye, {
|
|
317
300
|
key: 0,
|
|
318
301
|
modelValue: e($),
|
|
319
302
|
"onUpdate:modelValue": s[1] || (s[1] = (n) => b($) ? $.value = n : null),
|
|
320
303
|
placeholder: e(o)("giftCard.selectPlacePlaceholder"),
|
|
321
|
-
options: e(
|
|
304
|
+
options: e(k)[e(a)].data,
|
|
322
305
|
labelKey: "name",
|
|
323
306
|
valueKey: "id",
|
|
324
307
|
required: ""
|
|
325
308
|
}, null, 8, ["modelValue", "placeholder", "options"])) : f("", !0)
|
|
326
309
|
])
|
|
327
|
-
])) : (i(),
|
|
310
|
+
])) : (i(), y(Ce, { key: 1 }))
|
|
328
311
|
])),
|
|
329
|
-
|
|
330
|
-
modelValue: e(
|
|
331
|
-
"onUpdate:modelValue": s[2] || (s[2] = (n) => b(
|
|
312
|
+
t(M, {
|
|
313
|
+
modelValue: e(u),
|
|
314
|
+
"onUpdate:modelValue": s[2] || (s[2] = (n) => b(u) ? u.value = n : null),
|
|
332
315
|
type: "text",
|
|
333
316
|
name: "name",
|
|
334
317
|
autocomplete: "name",
|
|
@@ -337,9 +320,9 @@ const ze = { class: "gift-card-skeleton" }, Ke = { class: "gift-card-skeleton-fo
|
|
|
337
320
|
placeholder: e(o)("giftCard.namePlaceholder"),
|
|
338
321
|
required: ""
|
|
339
322
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
340
|
-
|
|
341
|
-
modelValue: e(
|
|
342
|
-
"onUpdate:modelValue": s[3] || (s[3] = (n) => b(
|
|
323
|
+
t(M, {
|
|
324
|
+
modelValue: e(h),
|
|
325
|
+
"onUpdate:modelValue": s[3] || (s[3] = (n) => b(h) ? h.value = n : null),
|
|
343
326
|
type: "email",
|
|
344
327
|
name: "email",
|
|
345
328
|
autocomplete: "email",
|
|
@@ -348,7 +331,7 @@ const ze = { class: "gift-card-skeleton" }, Ke = { class: "gift-card-skeleton-fo
|
|
|
348
331
|
placeholder: e(o)("giftCard.emailPlaceholder"),
|
|
349
332
|
required: ""
|
|
350
333
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
351
|
-
|
|
334
|
+
t(Se, {
|
|
352
335
|
modelValue: e(v),
|
|
353
336
|
"onUpdate:modelValue": s[4] || (s[4] = (n) => b(v) ? v.value = n : null),
|
|
354
337
|
icon: "phone-office",
|
|
@@ -356,20 +339,20 @@ const ze = { class: "gift-card-skeleton" }, Ke = { class: "gift-card-skeleton-fo
|
|
|
356
339
|
placeholder: e(o)("giftCard.phonePlaceholder"),
|
|
357
340
|
required: ""
|
|
358
341
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
359
|
-
|
|
360
|
-
modelValue: e(
|
|
361
|
-
"onUpdate:modelValue": s[5] || (s[5] = (n) => b(
|
|
342
|
+
t(M, {
|
|
343
|
+
modelValue: e(_),
|
|
344
|
+
"onUpdate:modelValue": s[5] || (s[5] = (n) => b(_) ? _.value = n : null),
|
|
362
345
|
type: "number",
|
|
363
346
|
name: "value",
|
|
364
347
|
label: e(o)("giftCard.value"),
|
|
365
348
|
icon: "money-bill",
|
|
366
349
|
placeholder: e(o)("giftCard.valuePlaceholder"),
|
|
367
|
-
suffix: e(
|
|
350
|
+
suffix: e(ee),
|
|
368
351
|
required: ""
|
|
369
352
|
}, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
|
|
370
353
|
f("", !0),
|
|
371
354
|
f("", !0),
|
|
372
|
-
|
|
355
|
+
t(Ve, {
|
|
373
356
|
modelValue: e(w),
|
|
374
357
|
"onUpdate:modelValue": s[8] || (s[8] = (n) => b(w) ? w.value = n : null),
|
|
375
358
|
label: e(o)("giftCard.quantity"),
|
|
@@ -378,30 +361,30 @@ const ze = { class: "gift-card-skeleton" }, Ke = { class: "gift-card-skeleton-fo
|
|
|
378
361
|
}, null, 8, ["modelValue", "label"])
|
|
379
362
|
])
|
|
380
363
|
], 512), [
|
|
381
|
-
[
|
|
364
|
+
[A, e(d)]
|
|
382
365
|
]),
|
|
383
|
-
|
|
366
|
+
G(l("div", null, [
|
|
384
367
|
l("div", {
|
|
385
368
|
innerHTML: e(o)("giftCard.thankYou")
|
|
386
|
-
}, null, 8,
|
|
369
|
+
}, null, 8, rl)
|
|
387
370
|
], 512), [
|
|
388
|
-
[
|
|
371
|
+
[A, e(I)]
|
|
389
372
|
])
|
|
390
373
|
]),
|
|
391
|
-
|
|
392
|
-
l("div",
|
|
393
|
-
|
|
374
|
+
P.layout !== "minimal" && e(d) ? (i(), c("div", dl, [
|
|
375
|
+
l("div", ul, [
|
|
376
|
+
t(S, {
|
|
394
377
|
label: e(o)("giftCard.orderGiftCard"),
|
|
395
378
|
"full-width": !0,
|
|
396
|
-
disabled: !e(
|
|
379
|
+
disabled: !e(E),
|
|
397
380
|
"is-loading": e(F),
|
|
398
381
|
"onUpdate:isLoading": s[9] || (s[9] = (n) => b(F) ? F.value = n : null),
|
|
399
382
|
onClickEvent: e(N)
|
|
400
383
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
|
|
401
384
|
])
|
|
402
385
|
])) : f("", !0),
|
|
403
|
-
e(
|
|
404
|
-
|
|
386
|
+
e(d) ? (i(), c("div", cl, [
|
|
387
|
+
t(M, {
|
|
405
388
|
modelValue: e(V),
|
|
406
389
|
"onUpdate:modelValue": s[10] || (s[10] = (n) => b(V) ? V.value = n : null),
|
|
407
390
|
type: "textarea",
|
|
@@ -411,34 +394,34 @@ const ze = { class: "gift-card-skeleton" }, Ke = { class: "gift-card-skeleton-fo
|
|
|
411
394
|
placeholder: e(o)("giftCard.remarkPlaceholder")
|
|
412
395
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
413
396
|
])) : f("", !0),
|
|
414
|
-
e(
|
|
415
|
-
|
|
397
|
+
e(d) ? (i(), c("div", pl, [
|
|
398
|
+
t(S, {
|
|
416
399
|
label: e(o)("giftCard.orderGiftCard"),
|
|
417
400
|
"full-width": !0,
|
|
418
|
-
disabled: !e(
|
|
401
|
+
disabled: !e(E),
|
|
419
402
|
"data-test": "orderGiftCard",
|
|
420
403
|
"is-loading": e(F),
|
|
421
404
|
"onUpdate:isLoading": s[11] || (s[11] = (n) => b(F) ? F.value = n : null),
|
|
422
405
|
onClickEvent: e(N)
|
|
423
406
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
|
|
424
407
|
l("div", null, [
|
|
425
|
-
|
|
426
|
-
|
|
408
|
+
ml,
|
|
409
|
+
t(Ye)
|
|
427
410
|
]),
|
|
428
|
-
|
|
429
|
-
|
|
411
|
+
G(l("div", fl, [
|
|
412
|
+
t(Te)
|
|
430
413
|
], 512), [
|
|
431
|
-
[
|
|
414
|
+
[A, e(Z)]
|
|
432
415
|
])
|
|
433
416
|
])) : f("", !0)
|
|
434
417
|
])
|
|
435
|
-
], 8,
|
|
418
|
+
], 8, Xe))
|
|
436
419
|
]),
|
|
437
420
|
_: 1
|
|
438
421
|
}, 8, ["access-token", "data-layout", "callback"])
|
|
439
422
|
]),
|
|
440
423
|
fallback: C(() => [
|
|
441
|
-
|
|
424
|
+
t(ze)
|
|
442
425
|
]),
|
|
443
426
|
_: 1
|
|
444
427
|
}))
|
|
@@ -446,8 +429,8 @@ const ze = { class: "gift-card-skeleton" }, Ke = { class: "gift-card-skeleton-fo
|
|
|
446
429
|
_: 1
|
|
447
430
|
}, 8, ["styling"]));
|
|
448
431
|
}
|
|
449
|
-
}),
|
|
450
|
-
class
|
|
432
|
+
}), K = /* @__PURE__ */ x(vl, [["__scopeId", "data-v-278e1031"]]), bl = pe(), hl = be();
|
|
433
|
+
class _l extends HTMLElement {
|
|
451
434
|
vueApp;
|
|
452
435
|
constructor() {
|
|
453
436
|
super();
|
|
@@ -456,14 +439,14 @@ class yl extends HTMLElement {
|
|
|
456
439
|
this.vueApp.unmount();
|
|
457
440
|
}
|
|
458
441
|
connectedCallback() {
|
|
459
|
-
const r =
|
|
460
|
-
this.vueApp =
|
|
461
|
-
const
|
|
462
|
-
this.vueApp.mount(
|
|
442
|
+
const r = me(K, this.attributes);
|
|
443
|
+
this.vueApp = fe(K, r), this.vueApp.provide("emitter", hl), this.vueApp.use(bl), this.vueApp.use(ve), this.vueApp.use(Fe), this.vueApp.use($e, { bootstrap: !0 });
|
|
444
|
+
const m = document.createElement("div");
|
|
445
|
+
this.vueApp.mount(m), this.appendChild(m.children[0]);
|
|
463
446
|
}
|
|
464
447
|
}
|
|
465
|
-
window.customElements.define("konnectio-gift-card",
|
|
448
|
+
window.customElements.define("konnectio-gift-card", _l);
|
|
466
449
|
export {
|
|
467
|
-
|
|
450
|
+
_l as default
|
|
468
451
|
};
|
|
469
452
|
//# sourceMappingURL=gift-card.js.map
|
package/dist/gift-card.js.br
CHANGED
|
Binary file
|