@konnectio/core 4.0.57 → 4.0.59
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-BsgBhqwb.js → ActionField-GHsNRSZm.js} +3 -3
- package/dist/ActionField-GHsNRSZm.js.br +0 -0
- package/dist/{AvailabilitySkeleton-BCiyhi6I.js → AvailabilitySkeleton-CyvafyOT.js} +6 -6
- package/dist/AvailabilitySkeleton-CyvafyOT.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-D-gqVQco.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-ClSHEX_d.js} +4 -4
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-ClSHEX_d.js.br +0 -0
- package/dist/{CheckoutWindow-COyV5n05.js → CheckoutWindow-BqJ6ZsZD.js} +4 -4
- package/dist/CheckoutWindow-BqJ6ZsZD.js.br +0 -0
- package/dist/{ErrorMessage-Bqmjetwk.js → ErrorMessage-144-POu6.js} +3 -3
- package/dist/ErrorMessage-144-POu6.js.br +0 -0
- package/dist/{EventAvailabilityForm-CnfdAPBG.js → EventAvailabilityForm-CJff-76Z.js} +5 -5
- package/dist/EventAvailabilityForm-CJff-76Z.js.br +0 -0
- package/dist/{Field-8j4srvwh.js → Field-BrI8toPe.js} +3 -3
- package/dist/Field-BrI8toPe.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DzRjaA5x.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BO7fGNh_.js} +11 -10
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BO7fGNh_.js.br +0 -0
- package/dist/{TermsOfService-DzB0damA.js → TermsOfService-DLQtIpLt.js} +5 -5
- package/dist/TermsOfService-DLQtIpLt.js.br +0 -0
- package/dist/{_-BtSFcDLj.js → _-CHRCWC6p.js} +2 -2
- package/dist/{_.vue_vue_type_style_index_0_lang-zf2i08XL.js → _.vue_vue_type_style_index_0_lang-BUoCnNZd.js} +4 -4
- package/dist/_.vue_vue_type_style_index_0_lang-BUoCnNZd.js.br +0 -0
- package/dist/{_commonjsHelpers-DzP9V0uJ.js → _commonjsHelpers-CYyxJoRf.js} +2 -2
- package/dist/{_sentry-release-injection-file-fvkcFI33.js → _sentry-release-injection-file-CkMeg-D2.js} +3 -3
- package/dist/_sentry-release-injection-file-CkMeg-D2.js.br +0 -0
- package/dist/availability.js +74 -71
- package/dist/availability.js.br +0 -0
- package/dist/deep-link.js +2 -2
- package/dist/deep-link.js.br +0 -0
- package/dist/event.js +8 -8
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +31 -31
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +91 -91
- package/dist/gift-card.js.br +0 -0
- package/dist/giftCard-DtBMjMxF.js +126 -0
- package/dist/giftCard-DtBMjMxF.js.br +0 -0
- package/dist/hotel.js +94 -94
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-BX1LxkhS.js → masonry.plugin-Ch8U9Epf.js} +416 -411
- package/dist/masonry.plugin-Ch8U9Epf.js.br +0 -0
- package/dist/{mitt-l8QPdH4v.js → mitt-Cbb-9RWx.js} +2 -2
- package/dist/mitt-Cbb-9RWx.js.br +0 -0
- package/dist/polyfill.js +17221 -14681
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +10 -10
- package/dist/ActionField-BsgBhqwb.js.br +0 -0
- package/dist/AvailabilitySkeleton-BCiyhi6I.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-D-gqVQco.js.br +0 -0
- package/dist/CheckoutWindow-COyV5n05.js.br +0 -0
- package/dist/ErrorMessage-Bqmjetwk.js.br +0 -0
- package/dist/EventAvailabilityForm-CnfdAPBG.js.br +0 -0
- package/dist/Field-8j4srvwh.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DzRjaA5x.js.br +0 -0
- package/dist/TermsOfService-DzB0damA.js.br +0 -0
- package/dist/_.vue_vue_type_style_index_0_lang-zf2i08XL.js.br +0 -0
- package/dist/_sentry-release-injection-file-fvkcFI33.js.br +0 -0
- package/dist/giftCard-DbcQz3eJ.js +0 -134
- package/dist/giftCard-DbcQz3eJ.js.br +0 -0
- package/dist/masonry.plugin-BX1LxkhS.js.br +0 -0
- package/dist/mitt-l8QPdH4v.js.br +0 -0
- package/dist/tracing-z3gaNes7.js +0 -2537
- package/dist/tracing-z3gaNes7.js.br +0 -0
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { u as N, s as x, c as U, i as O, m as z } from "./mitt-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { _ as
|
|
6
|
-
import { A as
|
|
7
|
-
import { F as I } from "./Field-
|
|
8
|
-
import { E as
|
|
1
|
+
import { d as L, a as f, g as V, e as t, f as o, c as X, b as _, w as v, S as P, u as e, t as u, v as w, i as T, h as $, k as B } from "./_sentry-release-injection-file-CkMeg-D2.js";
|
|
2
|
+
import { u as N, s as x, c as U, i as O, m as z } from "./mitt-Cbb-9RWx.js";
|
|
3
|
+
import { E as k, _ as S, q as E, d as F, I as C, h as H, s as j, C as R } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BO7fGNh_.js";
|
|
4
|
+
import { u as Z } from "./giftCard-DtBMjMxF.js";
|
|
5
|
+
import { _ as q } from "./_.vue_vue_type_style_index_0_lang-BUoCnNZd.js";
|
|
6
|
+
import { A as W } from "./ActionField-GHsNRSZm.js";
|
|
7
|
+
import { F as I } from "./Field-BrI8toPe.js";
|
|
8
|
+
import { E as J } from "./ErrorMessage-144-POu6.js";
|
|
9
9
|
(function() {
|
|
10
10
|
try {
|
|
11
11
|
var r = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, s = new Error().stack;
|
|
12
|
-
s && (r._sentryDebugIds = r._sentryDebugIds || {}, r._sentryDebugIds[s] = "
|
|
12
|
+
s && (r._sentryDebugIds = r._sentryDebugIds || {}, r._sentryDebugIds[s] = "e107e9ff-76e5-429a-8dad-1dc784a2edd6", r._sentryDebugIdIdentifier = "sentry-dbid-e107e9ff-76e5-429a-8dad-1dc784a2edd6");
|
|
13
13
|
} catch {
|
|
14
14
|
}
|
|
15
15
|
})();
|
|
16
|
-
const
|
|
16
|
+
const K = { class: "gift-card-validation-skeleton" }, Q = { class: "gift-card-validation-skeleton-form" }, Y = { class: "gift-card-validation-skeleton-text" }, tt = { class: "gift-card-validation-skeleton-input" }, et = /* @__PURE__ */ L({
|
|
17
17
|
__name: "GiftCardValidationSkeleton",
|
|
18
18
|
setup(r) {
|
|
19
|
-
return (s, c) => (f(), V("div",
|
|
20
|
-
t("div",
|
|
21
|
-
t("div",
|
|
19
|
+
return (s, c) => (f(), V("div", K, [
|
|
20
|
+
t("div", Q, [
|
|
21
|
+
t("div", Y, [
|
|
22
22
|
o(k, { height: "20px" }),
|
|
23
23
|
o(k, { height: "15px" }),
|
|
24
24
|
o(k, { height: "15px" })
|
|
25
25
|
]),
|
|
26
|
-
t("div",
|
|
26
|
+
t("div", tt, [
|
|
27
27
|
o(I),
|
|
28
28
|
o(I, { "no-label": "" })
|
|
29
29
|
])
|
|
30
30
|
])
|
|
31
31
|
]));
|
|
32
32
|
}
|
|
33
|
-
}),
|
|
33
|
+
}), at = /* @__PURE__ */ S(et, [["__scopeId", "data-v-b1601b74"]]), nt = ["innerHTML"], ot = {
|
|
34
34
|
key: 0,
|
|
35
35
|
id: "konnectio-gift-card-validation-resume",
|
|
36
36
|
class: "konnectio-panel"
|
|
37
|
-
},
|
|
37
|
+
}, st = /* @__PURE__ */ L({
|
|
38
38
|
name: "GiftCardValidationLayout",
|
|
39
39
|
__name: "GiftCardValidation",
|
|
40
40
|
props: {
|
|
@@ -52,17 +52,17 @@ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-va
|
|
|
52
52
|
expirationDate: b,
|
|
53
53
|
productName: a,
|
|
54
54
|
isLoading: n
|
|
55
|
-
} = x(E()), { currency: l, hasError: G } = x(
|
|
56
|
-
return (M, d) => (f(), _(
|
|
55
|
+
} = x(E()), { currency: l, hasError: G } = x(F()), { fetchMetadata: D } = Z(), { apply: A } = E();
|
|
56
|
+
return (M, d) => (f(), _(R, { styling: c.value }, {
|
|
57
57
|
default: v(() => [
|
|
58
58
|
(f(), _(P, null, {
|
|
59
59
|
default: v(() => [
|
|
60
|
-
o(
|
|
60
|
+
o(q, {
|
|
61
61
|
"access-token": M.accessToken,
|
|
62
62
|
callback: e(D)
|
|
63
63
|
}, {
|
|
64
64
|
default: v(() => [
|
|
65
|
-
e(G) ? (f(), _(
|
|
65
|
+
e(G) ? (f(), _(J, {
|
|
66
66
|
key: 1,
|
|
67
67
|
title: "Unable to render Gift card validation module",
|
|
68
68
|
description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
|
|
@@ -76,8 +76,8 @@ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-va
|
|
|
76
76
|
]),
|
|
77
77
|
t("p", {
|
|
78
78
|
innerHTML: e(i)("giftCardValidation.description")
|
|
79
|
-
}, null, 8,
|
|
80
|
-
o(
|
|
79
|
+
}, null, 8, nt),
|
|
80
|
+
o(W, {
|
|
81
81
|
modelValue: e(m),
|
|
82
82
|
"onUpdate:modelValue": d[0] || (d[0] = (g) => w(m) ? m.value = g : null),
|
|
83
83
|
icon: "gift-card",
|
|
@@ -88,7 +88,7 @@ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-va
|
|
|
88
88
|
"onUpdate:isLoading": d[1] || (d[1] = (g) => w(n) ? n.value = g : null),
|
|
89
89
|
onAction: d[2] || (d[2] = (g) => e(A)())
|
|
90
90
|
}, null, 8, ["modelValue", "label", "buttonLabel", "is-loading"]),
|
|
91
|
-
!e(n) && e(h) ? (f(), V("table",
|
|
91
|
+
!e(n) && e(h) ? (f(), V("table", ot, [
|
|
92
92
|
t("thead", null, [
|
|
93
93
|
t("tr", null, [
|
|
94
94
|
t("th", null, [
|
|
@@ -123,10 +123,10 @@ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-va
|
|
|
123
123
|
t("span", null, u(e(a)), 1)
|
|
124
124
|
]),
|
|
125
125
|
t("td", null, [
|
|
126
|
-
t("span", null, u(e(
|
|
126
|
+
t("span", null, u(e(H)(e(p), e(l))), 1)
|
|
127
127
|
]),
|
|
128
128
|
t("td", null, [
|
|
129
|
-
t("span", null, u(e(
|
|
129
|
+
t("span", null, u(e(j)(e(b))), 1)
|
|
130
130
|
])
|
|
131
131
|
])
|
|
132
132
|
])
|
|
@@ -137,7 +137,7 @@ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-va
|
|
|
137
137
|
}, 8, ["access-token", "callback"])
|
|
138
138
|
]),
|
|
139
139
|
fallback: v(() => [
|
|
140
|
-
o(
|
|
140
|
+
o(at)
|
|
141
141
|
]),
|
|
142
142
|
_: 1
|
|
143
143
|
}))
|
|
@@ -145,8 +145,8 @@ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-va
|
|
|
145
145
|
_: 1
|
|
146
146
|
}, 8, ["styling"]));
|
|
147
147
|
}
|
|
148
|
-
}), y = /* @__PURE__ */
|
|
149
|
-
class
|
|
148
|
+
}), y = /* @__PURE__ */ S(st, [["__scopeId", "data-v-ae703950"]]), it = U(), lt = z();
|
|
149
|
+
class rt extends HTMLElement {
|
|
150
150
|
vueApp;
|
|
151
151
|
constructor() {
|
|
152
152
|
super();
|
|
@@ -168,13 +168,13 @@ class dt extends HTMLElement {
|
|
|
168
168
|
let n = this.attributes.getNamedItem(a)?.value;
|
|
169
169
|
p.hasOwnProperty(a) && (n = p[a]), h[a] = n;
|
|
170
170
|
}
|
|
171
|
-
this.vueApp = B(y, h),
|
|
171
|
+
this.vueApp = B(y, h), this.vueApp.provide("emitter", lt), this.vueApp.use(it), this.vueApp.use(O);
|
|
172
172
|
const b = document.createElement("div");
|
|
173
173
|
this.vueApp.mount(b), this.appendChild(b.children[0]);
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
window.customElements.define("konnectio-gift-card-validation",
|
|
176
|
+
window.customElements.define("konnectio-gift-card-validation", rt);
|
|
177
177
|
export {
|
|
178
|
-
|
|
178
|
+
rt as default
|
|
179
179
|
};
|
|
180
180
|
//# sourceMappingURL=gift-card-validation.js.map
|
|
Binary file
|
package/dist/gift-card.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { u as B, T as pe, s as O, c as me, i as fe, m as be } from "./mitt-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { _ as
|
|
6
|
-
import { a as
|
|
7
|
-
import { F as A } from "./Field-
|
|
8
|
-
import { E as
|
|
9
|
-
import { S as Te } from "./TermsOfService-
|
|
1
|
+
import { d as S, r as K, c as Z, a as s, b as w, w as $, e as t, g as v, f as o, u as e, i as g, n as Y, t as q, h as ae, z as oe, o as ne, S as ie, A as I, B as L, F as se, s as re, v as y, p as de, j as ue, k as ce } from "./_sentry-release-injection-file-CkMeg-D2.js";
|
|
2
|
+
import { u as B, T as pe, s as O, c as me, i as fe, m as be } from "./mitt-Cbb-9RWx.js";
|
|
3
|
+
import { a as ve, c as T, p as he, E as _e, _ as z, d as ge, n as ke, L as ye, T as M, b as Ce, C as Ve, m as we } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BO7fGNh_.js";
|
|
4
|
+
import { u as x } from "./giftCard-DtBMjMxF.js";
|
|
5
|
+
import { _ as $e } from "./_.vue_vue_type_style_index_0_lang-BUoCnNZd.js";
|
|
6
|
+
import { a as Fe, C as Ee, P as Pe, _ as Ue } from "./CheckoutWindow-BqJ6ZsZD.js";
|
|
7
|
+
import { F as A } from "./Field-BrI8toPe.js";
|
|
8
|
+
import { E as Ae } from "./ErrorMessage-144-POu6.js";
|
|
9
|
+
import { S as Te } from "./TermsOfService-DLQtIpLt.js";
|
|
10
10
|
(function() {
|
|
11
11
|
try {
|
|
12
12
|
var d = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, n = new Error().stack;
|
|
13
|
-
n && (d._sentryDebugIds = d._sentryDebugIds || {}, d._sentryDebugIds[n] = "
|
|
13
|
+
n && (d._sentryDebugIds = d._sentryDebugIds || {}, d._sentryDebugIds[n] = "293836a3-7250-4fc7-9d4a-e9cbd7331ff0", d._sentryDebugIdIdentifier = "sentry-dbid-293836a3-7250-4fc7-9d4a-e9cbd7331ff0");
|
|
14
14
|
} catch {
|
|
15
15
|
}
|
|
16
16
|
})();
|
|
17
|
-
const
|
|
17
|
+
const Se = { class: "media-selector" }, Ie = ["accept"], Le = { class: "media-selector-wrapper" }, Me = { class: "media-selector-tools" }, Ge = { key: 0 }, qe = { key: 1 }, Be = { key: 2 }, Re = ["src"], De = /* @__PURE__ */ S({
|
|
18
18
|
__name: "MediaSelector",
|
|
19
19
|
props: {
|
|
20
20
|
modelValue: {},
|
|
@@ -25,11 +25,11 @@ const Ie = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-se
|
|
|
25
25
|
},
|
|
26
26
|
emits: ["update:modelValue"],
|
|
27
27
|
setup(d, { emit: n }) {
|
|
28
|
-
const m = n, l = d, { t: c } = B(), { display: h } =
|
|
28
|
+
const m = n, l = d, { t: c } = B(), { display: h } = ve(), p = K(), _ = Z(() => l.modelValue.base64 !== "");
|
|
29
29
|
function u(a) {
|
|
30
30
|
m("update:modelValue", a);
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function k() {
|
|
33
33
|
u({
|
|
34
34
|
base64: "",
|
|
35
35
|
name: "",
|
|
@@ -56,13 +56,13 @@ const Ie = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-se
|
|
|
56
56
|
let a;
|
|
57
57
|
(a = p.value.files) instanceof FileList && j(a[0], u);
|
|
58
58
|
}
|
|
59
|
-
return (a, f) => (s(), w(
|
|
59
|
+
return (a, f) => (s(), w(he, {
|
|
60
60
|
label: a.label,
|
|
61
61
|
required: a.required,
|
|
62
62
|
type: "media"
|
|
63
63
|
}, {
|
|
64
64
|
default: $(() => [
|
|
65
|
-
t("div",
|
|
65
|
+
t("div", Se, [
|
|
66
66
|
t("input", {
|
|
67
67
|
ref_key: "fileInput",
|
|
68
68
|
ref: p,
|
|
@@ -71,11 +71,11 @@ const Ie = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-se
|
|
|
71
71
|
accept: a.validation,
|
|
72
72
|
single: "",
|
|
73
73
|
onChange: f[0] || (f[0] = (V) => F())
|
|
74
|
-
}, null, 40,
|
|
75
|
-
t("div",
|
|
76
|
-
t("ul",
|
|
77
|
-
_.value ? g("", !0) : (s(), v("li",
|
|
78
|
-
o(
|
|
74
|
+
}, null, 40, Ie),
|
|
75
|
+
t("div", Le, [
|
|
76
|
+
t("ul", Me, [
|
|
77
|
+
_.value ? g("", !0) : (s(), v("li", Ge, [
|
|
78
|
+
o(T, {
|
|
79
79
|
label: e(c)("uploadFile"),
|
|
80
80
|
type: "button",
|
|
81
81
|
icon: "upload",
|
|
@@ -83,8 +83,8 @@ const Ie = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-se
|
|
|
83
83
|
onClickEvent: f[1] || (f[1] = (V) => b())
|
|
84
84
|
}, null, 8, ["label", "icon-color"])
|
|
85
85
|
])),
|
|
86
|
-
_.value ? (s(), v("li",
|
|
87
|
-
o(
|
|
86
|
+
_.value ? (s(), v("li", qe, [
|
|
87
|
+
o(T, {
|
|
88
88
|
label: e(c)("replaceFile"),
|
|
89
89
|
type: "button",
|
|
90
90
|
icon: "repeat-alt",
|
|
@@ -92,13 +92,13 @@ const Ie = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-se
|
|
|
92
92
|
onClickEvent: f[2] || (f[2] = (V) => b())
|
|
93
93
|
}, null, 8, ["label", "icon-color"])
|
|
94
94
|
])) : g("", !0),
|
|
95
|
-
_.value ? (s(), v("li",
|
|
96
|
-
o(
|
|
95
|
+
_.value ? (s(), v("li", Be, [
|
|
96
|
+
o(T, {
|
|
97
97
|
label: e(c)("removeFile"),
|
|
98
98
|
type: "button",
|
|
99
99
|
icon: "trash-alt",
|
|
100
100
|
"icon-color": a.iconColor,
|
|
101
|
-
onClickEvent: f[3] || (f[3] = (V) =>
|
|
101
|
+
onClickEvent: f[3] || (f[3] = (V) => k())
|
|
102
102
|
}, null, 8, ["label", "icon-color"])
|
|
103
103
|
])) : g("", !0)
|
|
104
104
|
]),
|
|
@@ -111,7 +111,7 @@ const Ie = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-se
|
|
|
111
111
|
a.modelValue ? (s(), v("img", {
|
|
112
112
|
key: 0,
|
|
113
113
|
src: a.modelValue.base64
|
|
114
|
-
}, null, 8,
|
|
114
|
+
}, null, 8, Re)) : g("", !0)
|
|
115
115
|
], 2)
|
|
116
116
|
])
|
|
117
117
|
])
|
|
@@ -140,22 +140,22 @@ function W(d) {
|
|
|
140
140
|
}
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
|
-
typeof W == "function" && W(
|
|
144
|
-
const
|
|
143
|
+
typeof W == "function" && W(De);
|
|
144
|
+
const xe = { class: "gift-card-skeleton" }, ze = { class: "gift-card-skeleton-form" }, je = /* @__PURE__ */ S({
|
|
145
145
|
__name: "GiftCardSkeleton",
|
|
146
146
|
setup(d) {
|
|
147
|
-
return (n, m) => (s(), v("div",
|
|
148
|
-
t("div",
|
|
147
|
+
return (n, m) => (s(), v("div", xe, [
|
|
148
|
+
t("div", ze, [
|
|
149
149
|
o(A),
|
|
150
150
|
o(A),
|
|
151
151
|
o(A),
|
|
152
152
|
o(A),
|
|
153
153
|
o(A, { "is-text-area": "" }),
|
|
154
|
-
o(
|
|
154
|
+
o(_e, { height: "44px" })
|
|
155
155
|
])
|
|
156
156
|
]));
|
|
157
157
|
}
|
|
158
|
-
}),
|
|
158
|
+
}), He = /* @__PURE__ */ z(je, [["__scopeId", "data-v-ba3efaa1"]]), Ne = { class: "konnectio-accept-terms" }, Oe = /* @__PURE__ */ S({
|
|
159
159
|
__name: "_",
|
|
160
160
|
props: {
|
|
161
161
|
content: {},
|
|
@@ -163,7 +163,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
163
163
|
},
|
|
164
164
|
setup(d) {
|
|
165
165
|
const { t: n } = B(), m = K(!1);
|
|
166
|
-
return (l, c) => (s(), v("div",
|
|
166
|
+
return (l, c) => (s(), v("div", Ne, [
|
|
167
167
|
o(e(pe), {
|
|
168
168
|
keypath: "general.termsAndConditionsNotice",
|
|
169
169
|
tag: "span",
|
|
@@ -190,30 +190,30 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
190
190
|
}, null, 8, ["modelValue", "description"])
|
|
191
191
|
]));
|
|
192
192
|
}
|
|
193
|
-
}),
|
|
193
|
+
}), We = /* @__PURE__ */ z(Oe, [["__scopeId", "data-v-f587c956"]]), Ke = /* @__PURE__ */ S({
|
|
194
194
|
__name: "GiftCard",
|
|
195
195
|
setup(d) {
|
|
196
196
|
const { t: n } = B(), m = x();
|
|
197
|
-
return (l, c) => (s(), w(
|
|
197
|
+
return (l, c) => (s(), w(We, {
|
|
198
198
|
content: e(m).termsOfService,
|
|
199
199
|
"button-label": e(n)("giftCard.orderGiftCard")
|
|
200
200
|
}, null, 8, ["content", "button-label"]));
|
|
201
201
|
}
|
|
202
|
-
}),
|
|
202
|
+
}), Ze = (d) => (de("data-v-278e1031"), d = d(), ue(), d), Ye = ["data-layout"], Je = { id: "konnectio-gift-card-wrapper" }, Qe = { id: "konnectio-gift-card-title" }, Xe = { id: "konnectio-gift-card-content" }, et = { id: "konnectio-gift-card-payment" }, tt = ["innerHTML"], lt = { key: 0 }, at = {
|
|
203
203
|
key: 0,
|
|
204
204
|
id: "konnectio-select-place-type"
|
|
205
|
-
},
|
|
205
|
+
}, ot = {
|
|
206
206
|
class: /* @__PURE__ */ Y(["konnectio-label", "required"])
|
|
207
|
-
},
|
|
207
|
+
}, nt = { id: "konnectio-select-place-type-input" }, it = ["innerHTML"], st = {
|
|
208
208
|
key: 0,
|
|
209
209
|
id: "konnectio-gift-card-order"
|
|
210
|
-
},
|
|
210
|
+
}, rt = { class: "konnectio-panel" }, dt = {
|
|
211
211
|
key: 1,
|
|
212
212
|
id: "konnectio-gift-card-remarks"
|
|
213
|
-
},
|
|
213
|
+
}, ut = {
|
|
214
214
|
key: 2,
|
|
215
215
|
id: "konnectio-gift-card-order-minimal"
|
|
216
|
-
},
|
|
216
|
+
}, ct = /* @__PURE__ */ Ze(() => /* @__PURE__ */ t("div", { class: "konnectio-divider" }, null, -1)), pt = { id: "konnectio-gift-card-recaptcha" }, mt = /* @__PURE__ */ S({
|
|
217
217
|
name: "GiftCardLayout",
|
|
218
218
|
__name: "GiftCard",
|
|
219
219
|
props: {
|
|
@@ -232,7 +232,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
232
232
|
phone: p,
|
|
233
233
|
value: _,
|
|
234
234
|
remark: u,
|
|
235
|
-
showValue:
|
|
235
|
+
showValue: k,
|
|
236
236
|
quantity: b,
|
|
237
237
|
media: j,
|
|
238
238
|
placeId: F,
|
|
@@ -244,23 +244,23 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
244
244
|
hasFilledForm: U,
|
|
245
245
|
hasForcedPlaceType: D,
|
|
246
246
|
isWaitingForResponse: E
|
|
247
|
-
} = O(x()), { initialize: J, orderGiftCard: H, fetchMetadata: Q } = x(), { isRecaptchaEnabled: X, currency: ee, hasError: te } = O(
|
|
247
|
+
} = O(x()), { initialize: J, orderGiftCard: H, fetchMetadata: Q } = x(), { isRecaptchaEnabled: X, currency: ee, hasError: te } = O(ge());
|
|
248
248
|
return oe(a, () => {
|
|
249
249
|
F.value = void 0;
|
|
250
250
|
}), ne(() => {
|
|
251
251
|
const P = n.placeType ? parseInt(n.placeType) : void 0;
|
|
252
252
|
J(P);
|
|
253
|
-
}), (P, r) => (s(), w(
|
|
253
|
+
}), (P, r) => (s(), w(Ve, { styling: m.value }, {
|
|
254
254
|
default: $(() => [
|
|
255
255
|
(s(), w(ie, null, {
|
|
256
256
|
default: $(() => [
|
|
257
|
-
o(
|
|
257
|
+
o($e, {
|
|
258
258
|
"access-token": P.accessToken,
|
|
259
259
|
"data-layout": P.layout,
|
|
260
260
|
callback: e(Q)
|
|
261
261
|
}, {
|
|
262
262
|
default: $(() => [
|
|
263
|
-
e(te) ? (s(), w(
|
|
263
|
+
e(te) ? (s(), w(Ae, {
|
|
264
264
|
key: 1,
|
|
265
265
|
title: "Unable to render Gift card module",
|
|
266
266
|
description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
|
|
@@ -269,13 +269,13 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
269
269
|
id: "konnectio-gift-card-module",
|
|
270
270
|
"data-layout": P.layout
|
|
271
271
|
}, [
|
|
272
|
-
t("div",
|
|
273
|
-
t("h2",
|
|
272
|
+
t("div", Je, [
|
|
273
|
+
t("h2", Qe, [
|
|
274
274
|
t("span", null, q(e(l)("giftCard.title")), 1)
|
|
275
275
|
]),
|
|
276
|
-
t("div",
|
|
277
|
-
I(t("div",
|
|
278
|
-
o(
|
|
276
|
+
t("div", Xe, [
|
|
277
|
+
I(t("div", et, [
|
|
278
|
+
o(Fe)
|
|
279
279
|
], 512), [
|
|
280
280
|
[L, e(V)]
|
|
281
281
|
]),
|
|
@@ -283,19 +283,19 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
283
283
|
t("p", {
|
|
284
284
|
id: "konnectio-gift-card-description",
|
|
285
285
|
innerHTML: e(l)("giftCard.description")
|
|
286
|
-
}, null, 8,
|
|
286
|
+
}, null, 8, tt),
|
|
287
287
|
t("form", null, [
|
|
288
|
-
e(D) ? g("", !0) : (s(), v("div",
|
|
289
|
-
e(C) ? (s(), v("div",
|
|
290
|
-
t("label",
|
|
288
|
+
e(D) ? g("", !0) : (s(), v("div", lt, [
|
|
289
|
+
e(C) ? (s(), v("div", at, [
|
|
290
|
+
t("label", ot, [
|
|
291
291
|
t("span", null, q(e(l)("giftCard.selectType")), 1)
|
|
292
292
|
]),
|
|
293
|
-
t("div",
|
|
293
|
+
t("div", nt, [
|
|
294
294
|
t("ul", null, [
|
|
295
295
|
(s(!0), v(se, null, re(e(C), (i, N) => (s(), v("li", { key: N }, [
|
|
296
|
-
o(
|
|
296
|
+
o(Ee, {
|
|
297
297
|
modelValue: e(a),
|
|
298
|
-
"onUpdate:modelValue": r[0] || (r[0] = (le) =>
|
|
298
|
+
"onUpdate:modelValue": r[0] || (r[0] = (le) => y(a) ? a.value = le : null),
|
|
299
299
|
type: "radio",
|
|
300
300
|
name: "placeType",
|
|
301
301
|
val: N,
|
|
@@ -306,7 +306,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
306
306
|
e(C)[e(a)] && e(C)[e(a)].data.length > 1 ? (s(), w(ke, {
|
|
307
307
|
key: 0,
|
|
308
308
|
modelValue: e(F),
|
|
309
|
-
"onUpdate:modelValue": r[1] || (r[1] = (i) =>
|
|
309
|
+
"onUpdate:modelValue": r[1] || (r[1] = (i) => y(F) ? F.value = i : null),
|
|
310
310
|
placeholder: e(l)("giftCard.selectPlacePlaceholder"),
|
|
311
311
|
options: e(C)[e(a)].data,
|
|
312
312
|
labelKey: "name",
|
|
@@ -314,11 +314,11 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
314
314
|
required: ""
|
|
315
315
|
}, null, 8, ["modelValue", "placeholder", "options"])) : g("", !0)
|
|
316
316
|
])
|
|
317
|
-
])) : (s(), w(
|
|
317
|
+
])) : (s(), w(ye, { key: 1 }))
|
|
318
318
|
])),
|
|
319
319
|
o(M, {
|
|
320
320
|
modelValue: e(c),
|
|
321
|
-
"onUpdate:modelValue": r[2] || (r[2] = (i) =>
|
|
321
|
+
"onUpdate:modelValue": r[2] || (r[2] = (i) => y(c) ? c.value = i : null),
|
|
322
322
|
type: "text",
|
|
323
323
|
name: "name",
|
|
324
324
|
autocomplete: "name",
|
|
@@ -329,7 +329,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
329
329
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
330
330
|
o(M, {
|
|
331
331
|
modelValue: e(h),
|
|
332
|
-
"onUpdate:modelValue": r[3] || (r[3] = (i) =>
|
|
332
|
+
"onUpdate:modelValue": r[3] || (r[3] = (i) => y(h) ? h.value = i : null),
|
|
333
333
|
type: "email",
|
|
334
334
|
name: "email",
|
|
335
335
|
autocomplete: "email",
|
|
@@ -338,9 +338,9 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
338
338
|
placeholder: e(l)("giftCard.emailPlaceholder"),
|
|
339
339
|
required: ""
|
|
340
340
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
341
|
-
o(
|
|
341
|
+
o(Pe, {
|
|
342
342
|
modelValue: e(p),
|
|
343
|
-
"onUpdate:modelValue": r[4] || (r[4] = (i) =>
|
|
343
|
+
"onUpdate:modelValue": r[4] || (r[4] = (i) => y(p) ? p.value = i : null),
|
|
344
344
|
icon: "phone-office",
|
|
345
345
|
label: e(l)("giftCard.phone"),
|
|
346
346
|
placeholder: e(l)("giftCard.phonePlaceholder"),
|
|
@@ -348,7 +348,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
348
348
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
349
349
|
o(M, {
|
|
350
350
|
modelValue: e(_),
|
|
351
|
-
"onUpdate:modelValue": r[5] || (r[5] = (i) =>
|
|
351
|
+
"onUpdate:modelValue": r[5] || (r[5] = (i) => y(_) ? _.value = i : null),
|
|
352
352
|
type: "number",
|
|
353
353
|
name: "value",
|
|
354
354
|
label: e(l)("giftCard.value"),
|
|
@@ -359,9 +359,9 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
359
359
|
}, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
|
|
360
360
|
g("", !0),
|
|
361
361
|
g("", !0),
|
|
362
|
-
o(
|
|
362
|
+
o(Ce, {
|
|
363
363
|
modelValue: e(b),
|
|
364
|
-
"onUpdate:modelValue": r[8] || (r[8] = (i) =>
|
|
364
|
+
"onUpdate:modelValue": r[8] || (r[8] = (i) => y(b) ? b.value = i : null),
|
|
365
365
|
label: e(l)("giftCard.quantity"),
|
|
366
366
|
icon: "gift-card",
|
|
367
367
|
required: ""
|
|
@@ -373,27 +373,27 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
373
373
|
I(t("div", null, [
|
|
374
374
|
t("div", {
|
|
375
375
|
innerHTML: e(l)("giftCard.thankYou")
|
|
376
|
-
}, null, 8,
|
|
376
|
+
}, null, 8, it)
|
|
377
377
|
], 512), [
|
|
378
378
|
[L, e(R)]
|
|
379
379
|
])
|
|
380
380
|
]),
|
|
381
|
-
P.layout !== "minimal" && e(f) ? (s(), v("div",
|
|
382
|
-
t("div",
|
|
383
|
-
o(
|
|
381
|
+
P.layout !== "minimal" && e(f) ? (s(), v("div", st, [
|
|
382
|
+
t("div", rt, [
|
|
383
|
+
o(T, {
|
|
384
384
|
label: e(l)("giftCard.orderGiftCard"),
|
|
385
385
|
"full-width": !0,
|
|
386
386
|
disabled: !e(U),
|
|
387
387
|
"is-loading": e(E),
|
|
388
|
-
"onUpdate:isLoading": r[9] || (r[9] = (i) =>
|
|
388
|
+
"onUpdate:isLoading": r[9] || (r[9] = (i) => y(E) ? E.value = i : null),
|
|
389
389
|
onClickEvent: e(H)
|
|
390
390
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
|
|
391
391
|
])
|
|
392
392
|
])) : g("", !0),
|
|
393
|
-
e(f) ? (s(), v("div",
|
|
393
|
+
e(f) ? (s(), v("div", dt, [
|
|
394
394
|
o(M, {
|
|
395
395
|
modelValue: e(u),
|
|
396
|
-
"onUpdate:modelValue": r[10] || (r[10] = (i) =>
|
|
396
|
+
"onUpdate:modelValue": r[10] || (r[10] = (i) => y(u) ? u.value = i : null),
|
|
397
397
|
type: "textarea",
|
|
398
398
|
name: "remark",
|
|
399
399
|
label: e(l)("giftCard.remark"),
|
|
@@ -401,34 +401,34 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
401
401
|
placeholder: e(l)("giftCard.remarkPlaceholder")
|
|
402
402
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
403
403
|
])) : g("", !0),
|
|
404
|
-
e(f) ? (s(), v("div",
|
|
405
|
-
o(
|
|
404
|
+
e(f) ? (s(), v("div", ut, [
|
|
405
|
+
o(T, {
|
|
406
406
|
label: e(l)("giftCard.orderGiftCard"),
|
|
407
407
|
"full-width": !0,
|
|
408
408
|
disabled: !e(U),
|
|
409
409
|
"data-test": "orderGiftCard",
|
|
410
410
|
"is-loading": e(E),
|
|
411
|
-
"onUpdate:isLoading": r[11] || (r[11] = (i) =>
|
|
411
|
+
"onUpdate:isLoading": r[11] || (r[11] = (i) => y(E) ? E.value = i : null),
|
|
412
412
|
onClickEvent: e(H)
|
|
413
413
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
|
|
414
414
|
t("div", null, [
|
|
415
|
-
|
|
416
|
-
o(
|
|
415
|
+
ct,
|
|
416
|
+
o(Ke)
|
|
417
417
|
]),
|
|
418
|
-
I(t("div",
|
|
419
|
-
o(
|
|
418
|
+
I(t("div", pt, [
|
|
419
|
+
o(Ue)
|
|
420
420
|
], 512), [
|
|
421
421
|
[L, e(X)]
|
|
422
422
|
])
|
|
423
423
|
])) : g("", !0)
|
|
424
424
|
])
|
|
425
|
-
], 8,
|
|
425
|
+
], 8, Ye))
|
|
426
426
|
]),
|
|
427
427
|
_: 1
|
|
428
428
|
}, 8, ["access-token", "data-layout", "callback"])
|
|
429
429
|
]),
|
|
430
430
|
fallback: $(() => [
|
|
431
|
-
o(
|
|
431
|
+
o(He)
|
|
432
432
|
]),
|
|
433
433
|
_: 1
|
|
434
434
|
}))
|
|
@@ -436,8 +436,8 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
436
436
|
_: 1
|
|
437
437
|
}, 8, ["styling"]));
|
|
438
438
|
}
|
|
439
|
-
}), G = /* @__PURE__ */ z(
|
|
440
|
-
class
|
|
439
|
+
}), G = /* @__PURE__ */ z(mt, [["__scopeId", "data-v-278e1031"]]), ft = me(), bt = be();
|
|
440
|
+
class vt extends HTMLElement {
|
|
441
441
|
vueApp;
|
|
442
442
|
constructor() {
|
|
443
443
|
super();
|
|
@@ -448,7 +448,7 @@ class ht extends HTMLElement {
|
|
|
448
448
|
connectedCallback() {
|
|
449
449
|
const n = typeof G == "function" ? G.options : G;
|
|
450
450
|
let m = Array.isArray(n.props) ? n.props : Object.keys(n.props || {});
|
|
451
|
-
const l = (u) => u.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (
|
|
451
|
+
const l = (u) => u.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (k, b) => (b ? "-" : "") + k.toLowerCase()), c = (u) => u.replace(/-./g, (k) => k[1].toUpperCase()), h = {};
|
|
452
452
|
m = m.map(l);
|
|
453
453
|
const p = {};
|
|
454
454
|
for (const u of this.attributes) {
|
|
@@ -456,16 +456,16 @@ class ht extends HTMLElement {
|
|
|
456
456
|
b.length > 1 && (p[b[0]] || (p[b[0]] = {}), p[b[0]][c(b[1])] = u.value);
|
|
457
457
|
}
|
|
458
458
|
for (const u of m) {
|
|
459
|
-
let
|
|
460
|
-
p.hasOwnProperty(u) && (
|
|
459
|
+
let k = this.attributes.getNamedItem(u)?.value;
|
|
460
|
+
p.hasOwnProperty(u) && (k = p[u]), h[u] = k;
|
|
461
461
|
}
|
|
462
|
-
this.vueApp = ce(G, h),
|
|
462
|
+
this.vueApp = ce(G, h), this.vueApp.provide("emitter", bt), this.vueApp.use(ft), this.vueApp.use(fe), this.vueApp.use(we, { bootstrap: !0 });
|
|
463
463
|
const _ = document.createElement("div");
|
|
464
464
|
this.vueApp.mount(_), this.appendChild(_.children[0]);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
|
-
window.customElements.define("konnectio-gift-card",
|
|
467
|
+
window.customElements.define("konnectio-gift-card", vt);
|
|
468
468
|
export {
|
|
469
|
-
|
|
469
|
+
vt as default
|
|
470
470
|
};
|
|
471
471
|
//# sourceMappingURL=gift-card.js.map
|
package/dist/gift-card.js.br
CHANGED
|
Binary file
|