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