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