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