@konnectio/core 4.0.56-rc50 → 4.0.56-rc52
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-BQQitCzR.js → ActionField-DIdYUr4q.js} +13 -13
- package/dist/ActionField-DIdYUr4q.js.br +0 -0
- package/dist/{AvailabilitySkeleton-TZiNrJ8t.js → AvailabilitySkeleton-ZjKDUWD5.js} +31 -31
- package/dist/AvailabilitySkeleton-ZjKDUWD5.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DrUxvwDd.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Dv10C6pz.js} +4 -4
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Dv10C6pz.js.br +0 -0
- package/dist/{CheckoutWindow-DBBmXrsX.js → CheckoutWindow-DXyFRc3f.js} +14 -14
- package/dist/CheckoutWindow-DXyFRc3f.js.br +0 -0
- package/dist/{ErrorMessage-Dw-TLplp.js → ErrorMessage-CzmACL-t.js} +4 -4
- package/dist/ErrorMessage-CzmACL-t.js.br +0 -0
- package/dist/EventAvailabilityForm-B6_lpxim.js +452 -0
- package/dist/EventAvailabilityForm-B6_lpxim.js.br +0 -0
- package/dist/{Field-B4x3qSfU.js → Field-CDhrfFEj.js} +12 -12
- package/dist/Field-CDhrfFEj.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CyGcXPO9.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BJlxJLmO.js} +1318 -1328
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BJlxJLmO.js.br +0 -0
- package/dist/{TermsOfService-DLchxC08.js → TermsOfService-CV3L_dLg.js} +10 -10
- package/dist/TermsOfService-CV3L_dLg.js.br +0 -0
- package/dist/_-DsHpGwqH.js +12 -0
- package/dist/_.vue_vue_type_style_index_0_lang-BdZjHOFy.js +68 -0
- package/dist/_.vue_vue_type_style_index_0_lang-BdZjHOFy.js.br +0 -0
- package/dist/_commonjsHelpers-04Qj4xBt.js +9530 -0
- package/dist/_commonjsHelpers-04Qj4xBt.js.br +0 -0
- package/dist/availability.js +41 -41
- package/dist/availability.js.br +0 -0
- package/dist/deep-link.js +2 -2
- package/dist/event.js +156 -151
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +23 -22
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +58 -57
- package/dist/gift-card.js.br +0 -0
- package/dist/{giftCard-9uCMmY6r.js → giftCard-C8PqkLNd.js} +5 -5
- package/dist/giftCard-C8PqkLNd.js.br +0 -0
- package/dist/hotel.js +278 -274
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-C4-Uj22v.js → masonry.plugin-BZn5-UMi.js} +166 -166
- package/dist/masonry.plugin-BZn5-UMi.js.br +0 -0
- package/dist/polyfill.js +727 -725
- package/dist/polyfill.js.br +0 -0
- package/dist/sentry-BSHzssDu.js +18 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/dist/tracing-wxeFiHIa.js +2287 -0
- package/dist/tracing-wxeFiHIa.js.br +0 -0
- package/package.json +1 -1
- package/dist/ActionField-BQQitCzR.js.br +0 -0
- package/dist/AvailabilitySkeleton-TZiNrJ8t.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DrUxvwDd.js.br +0 -0
- package/dist/CheckoutWindow-DBBmXrsX.js.br +0 -0
- package/dist/ErrorMessage-Dw-TLplp.js.br +0 -0
- package/dist/EventAvailabilityForm-DimufYUP.js +0 -437
- package/dist/EventAvailabilityForm-DimufYUP.js.br +0 -0
- package/dist/Field-B4x3qSfU.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CyGcXPO9.js.br +0 -0
- package/dist/TermsOfService-DLchxC08.js.br +0 -0
- package/dist/_-C7wxqlYk.js +0 -12
- package/dist/_.vue_vue_type_style_index_0_lang-BGyUJK1I.js +0 -68
- package/dist/_.vue_vue_type_style_index_0_lang-BGyUJK1I.js.br +0 -0
- package/dist/giftCard-9uCMmY6r.js.br +0 -0
- package/dist/masonry.plugin-C4-Uj22v.js.br +0 -0
- package/dist/tracing-Dm-FNj-F.js +0 -11807
- package/dist/tracing-Dm-FNj-F.js.br +0 -0
package/dist/event.js.br
CHANGED
|
Binary file
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { d as I, o as f, a as A, g as t, f as o, c as X, b as _, w as v, S as B, u as e, t as u, x as w, e as P, i as T, k as $ } from "./
|
|
2
|
-
import { E as k, _ as L, h as N, s as x,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { d as I, o as f, a as A, g as t, f as o, c as X, b as _, w as v, S as B, u as e, t as u, x as w, e as P, i as T, k as $ } from "./_commonjsHelpers-04Qj4xBt.js";
|
|
2
|
+
import { E as k, _ as L, h as N, s as x, t as E, b as U, z as C, A as z, B as O, n as F, o as H, p as j, q as R } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BJlxJLmO.js";
|
|
3
|
+
import { c as Z } from "./sentry-BSHzssDu.js";
|
|
4
|
+
import { u as q } from "./giftCard-C8PqkLNd.js";
|
|
5
|
+
import { _ as W } from "./_.vue_vue_type_style_index_0_lang-BdZjHOFy.js";
|
|
6
|
+
import { A as J } from "./ActionField-DIdYUr4q.js";
|
|
7
|
+
import { F as S } from "./Field-CDhrfFEj.js";
|
|
8
|
+
import { E as K } from "./ErrorMessage-CzmACL-t.js";
|
|
8
9
|
import "./deep-link.js";
|
|
9
10
|
(function() {
|
|
10
11
|
try {
|
|
11
12
|
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] = "
|
|
13
|
+
s && (r._sentryDebugIds = r._sentryDebugIds || {}, r._sentryDebugIds[s] = "a230e431-6b35-4c4d-9ac0-21064bd51575", r._sentryDebugIdIdentifier = "sentry-dbid-a230e431-6b35-4c4d-9ac0-21064bd51575");
|
|
13
14
|
} catch {
|
|
14
15
|
}
|
|
15
16
|
})();
|
|
@@ -47,22 +48,22 @@ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-va
|
|
|
47
48
|
...s.styling
|
|
48
49
|
})), { t: i } = N(), {
|
|
49
50
|
voucher: m,
|
|
50
|
-
isValid:
|
|
51
|
+
isValid: b,
|
|
51
52
|
amount: p,
|
|
52
|
-
expirationDate:
|
|
53
|
+
expirationDate: h,
|
|
53
54
|
productName: a,
|
|
54
55
|
isLoading: n
|
|
55
|
-
} = x(E()), { currency: l, hasError:
|
|
56
|
+
} = x(E()), { currency: l, hasError: G } = x(U()), { fetchMetadata: D } = q(), { apply: V } = E();
|
|
56
57
|
return (M, d) => (f(), _(F, { styling: c.value }, {
|
|
57
58
|
default: v(() => [
|
|
58
59
|
(f(), _(B, null, {
|
|
59
60
|
default: v(() => [
|
|
60
61
|
o(W, {
|
|
61
62
|
"access-token": M.accessToken,
|
|
62
|
-
callback: e(
|
|
63
|
+
callback: e(D)
|
|
63
64
|
}, {
|
|
64
65
|
default: v(() => [
|
|
65
|
-
e(
|
|
66
|
+
e(G) ? (f(), _(K, {
|
|
66
67
|
key: 1,
|
|
67
68
|
title: "Unable to render Gift card validation module",
|
|
68
69
|
description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
|
|
@@ -88,7 +89,7 @@ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-va
|
|
|
88
89
|
"onUpdate:isLoading": d[1] || (d[1] = (g) => w(n) ? n.value = g : null),
|
|
89
90
|
onAction: d[2] || (d[2] = (g) => e(V)())
|
|
90
91
|
}, null, 8, ["modelValue", "label", "buttonLabel", "is-loading"]),
|
|
91
|
-
!e(n) && e(
|
|
92
|
+
!e(n) && e(b) ? (f(), A("table", st, [
|
|
92
93
|
t("thead", null, [
|
|
93
94
|
t("tr", null, [
|
|
94
95
|
t("th", null, [
|
|
@@ -123,10 +124,10 @@ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-va
|
|
|
123
124
|
t("span", null, u(e(a)), 1)
|
|
124
125
|
]),
|
|
125
126
|
t("td", null, [
|
|
126
|
-
t("span", null, u(e(
|
|
127
|
+
t("span", null, u(e(z)(e(p), e(l))), 1)
|
|
127
128
|
]),
|
|
128
129
|
t("td", null, [
|
|
129
|
-
t("span", null, u(e(
|
|
130
|
+
t("span", null, u(e(O)(e(h))), 1)
|
|
130
131
|
])
|
|
131
132
|
])
|
|
132
133
|
])
|
|
@@ -145,7 +146,7 @@ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-va
|
|
|
145
146
|
_: 1
|
|
146
147
|
}, 8, ["styling"]));
|
|
147
148
|
}
|
|
148
|
-
}), y = /* @__PURE__ */ L(it, [["__scopeId", "data-v-ae703950"]]), lt = H(), rt =
|
|
149
|
+
}), y = /* @__PURE__ */ L(it, [["__scopeId", "data-v-ae703950"]]), lt = H(), rt = R();
|
|
149
150
|
class dt extends HTMLElement {
|
|
150
151
|
vueApp;
|
|
151
152
|
constructor() {
|
|
@@ -157,7 +158,7 @@ class dt extends HTMLElement {
|
|
|
157
158
|
connectedCallback() {
|
|
158
159
|
const s = typeof y == "function" ? y.options : y;
|
|
159
160
|
let c = Array.isArray(s.props) ? s.props : Object.keys(s.props || {});
|
|
160
|
-
const i = (a) => a.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (n, l) => (l ? "-" : "") + n.toLowerCase()), m = (a) => a.replace(/-./g, (n) => n[1].toUpperCase()),
|
|
161
|
+
const i = (a) => a.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (n, l) => (l ? "-" : "") + n.toLowerCase()), m = (a) => a.replace(/-./g, (n) => n[1].toUpperCase()), b = {};
|
|
161
162
|
c = c.map(i);
|
|
162
163
|
const p = {};
|
|
163
164
|
for (const a of this.attributes) {
|
|
@@ -166,11 +167,11 @@ class dt extends HTMLElement {
|
|
|
166
167
|
}
|
|
167
168
|
for (const a of c) {
|
|
168
169
|
let n = this.attributes.getNamedItem(a)?.value;
|
|
169
|
-
p.hasOwnProperty(a) && (n = p[a]),
|
|
170
|
+
p.hasOwnProperty(a) && (n = p[a]), b[a] = n;
|
|
170
171
|
}
|
|
171
|
-
this.vueApp = $(y,
|
|
172
|
-
const
|
|
173
|
-
this.vueApp.mount(
|
|
172
|
+
this.vueApp = $(y, b), Z(this.vueApp), this.vueApp.provide("emitter", rt), this.vueApp.use(lt), this.vueApp.use(j);
|
|
173
|
+
const h = document.createElement("div");
|
|
174
|
+
this.vueApp.mount(h), this.appendChild(h.children[0]);
|
|
174
175
|
}
|
|
175
176
|
}
|
|
176
177
|
window.customElements.define("konnectio-gift-card-validation", dt);
|
|
Binary file
|
package/dist/gift-card.js
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { d as I, r as K, c as Z, o as s, b as w, w as F, g as t, a as v, f as o, u as e, e as g, n as Y, t as G, i as ae, q as oe, h as ne, S as ie, y as T, z as L, F as se, A as re, x as k, p as de, j as
|
|
2
|
-
import { h as B, a as pe, C as S, I as me, E as fe, _ as z,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { d as I, r as K, c as Z, o as s, b as w, w as F, g as t, a as v, f as o, u as e, e as g, n as Y, t as G, i as ae, q as oe, h as ne, S as ie, y as T, z as L, F as se, A as re, x as k, p as de, j as ce, k as ue } from "./_commonjsHelpers-04Qj4xBt.js";
|
|
2
|
+
import { h as B, a as pe, C as S, I as me, E as fe, _ as z, D as be, s as O, b as ve, k as he, L as _e, T as q, l as ge, n as ye, o as ke, p as Ce, F as Ve, q as we } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BJlxJLmO.js";
|
|
3
|
+
import { c as Fe } from "./sentry-BSHzssDu.js";
|
|
4
|
+
import { u as x } from "./giftCard-C8PqkLNd.js";
|
|
5
|
+
import { _ as $e } from "./_.vue_vue_type_style_index_0_lang-BdZjHOFy.js";
|
|
6
|
+
import { C as Ee, a as Pe, P as Ue, _ as Ae } from "./CheckoutWindow-DXyFRc3f.js";
|
|
7
|
+
import { F as A } from "./Field-CDhrfFEj.js";
|
|
8
|
+
import { E as Se } from "./ErrorMessage-CzmACL-t.js";
|
|
9
|
+
import { S as Ie } from "./TermsOfService-CV3L_dLg.js";
|
|
9
10
|
import "./deep-link.js";
|
|
10
11
|
(function() {
|
|
11
12
|
try {
|
|
12
13
|
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] = "
|
|
14
|
+
n && (d._sentryDebugIds = d._sentryDebugIds || {}, d._sentryDebugIds[n] = "b65ca2c3-b6c2-42bd-9f95-92b149c4ed6c", d._sentryDebugIdIdentifier = "sentry-dbid-b65ca2c3-b6c2-42bd-9f95-92b149c4ed6c");
|
|
14
15
|
} catch {
|
|
15
16
|
}
|
|
16
17
|
})();
|
|
17
|
-
const Te = { class: "media-selector" }, Le = ["accept"], qe = { class: "media-selector-wrapper" }, Me = { class: "media-selector-tools" }, Ge = { key: 0 }, Be = { key: 1 }, Re = { key: 2 },
|
|
18
|
+
const Te = { class: "media-selector" }, Le = ["accept"], qe = { class: "media-selector-wrapper" }, Me = { class: "media-selector-tools" }, Ge = { key: 0 }, Be = { key: 1 }, Re = { key: 2 }, De = ["src"], xe = /* @__PURE__ */ I({
|
|
18
19
|
__name: "MediaSelector",
|
|
19
20
|
props: {
|
|
20
21
|
modelValue: {},
|
|
@@ -25,12 +26,12 @@ const Te = { class: "media-selector" }, Le = ["accept"], qe = { class: "media-se
|
|
|
25
26
|
},
|
|
26
27
|
emits: ["update:modelValue"],
|
|
27
28
|
setup(d, { emit: n }) {
|
|
28
|
-
const m = n, l = d, { t:
|
|
29
|
-
function
|
|
29
|
+
const m = n, l = d, { t: u } = B(), { display: h } = pe(), p = K(), _ = Z(() => l.modelValue.base64 !== "");
|
|
30
|
+
function c(a) {
|
|
30
31
|
m("update:modelValue", a);
|
|
31
32
|
}
|
|
32
33
|
function y() {
|
|
33
|
-
|
|
34
|
+
c({
|
|
34
35
|
base64: "",
|
|
35
36
|
name: "",
|
|
36
37
|
type: ""
|
|
@@ -39,22 +40,22 @@ const Te = { class: "media-selector" }, Le = ["accept"], qe = { class: "media-se
|
|
|
39
40
|
function b() {
|
|
40
41
|
p.value && p.value.click();
|
|
41
42
|
}
|
|
42
|
-
function
|
|
43
|
+
function j(a, f) {
|
|
43
44
|
const [V, R] = [a.name, a.type], C = new FileReader();
|
|
44
45
|
C.onload = function(U) {
|
|
45
46
|
if (U.target) {
|
|
46
|
-
const
|
|
47
|
-
f({ base64:
|
|
47
|
+
const D = U.target.result;
|
|
48
|
+
f({ base64: D, name: V, type: R });
|
|
48
49
|
} else
|
|
49
50
|
h({
|
|
50
|
-
message:
|
|
51
|
+
message: u("imageUploadError"),
|
|
51
52
|
type: "error"
|
|
52
53
|
});
|
|
53
54
|
}, C.readAsDataURL(a);
|
|
54
55
|
}
|
|
55
56
|
async function $() {
|
|
56
57
|
let a;
|
|
57
|
-
(a = p.value.files) instanceof FileList &&
|
|
58
|
+
(a = p.value.files) instanceof FileList && j(a[0], c);
|
|
58
59
|
}
|
|
59
60
|
return (a, f) => (s(), w(me, {
|
|
60
61
|
label: a.label,
|
|
@@ -76,7 +77,7 @@ const Te = { class: "media-selector" }, Le = ["accept"], qe = { class: "media-se
|
|
|
76
77
|
t("ul", Me, [
|
|
77
78
|
_.value ? g("", !0) : (s(), v("li", Ge, [
|
|
78
79
|
o(S, {
|
|
79
|
-
label: e(
|
|
80
|
+
label: e(u)("uploadFile"),
|
|
80
81
|
type: "button",
|
|
81
82
|
icon: "upload",
|
|
82
83
|
"icon-color": a.iconColor,
|
|
@@ -85,7 +86,7 @@ const Te = { class: "media-selector" }, Le = ["accept"], qe = { class: "media-se
|
|
|
85
86
|
])),
|
|
86
87
|
_.value ? (s(), v("li", Be, [
|
|
87
88
|
o(S, {
|
|
88
|
-
label: e(
|
|
89
|
+
label: e(u)("replaceFile"),
|
|
89
90
|
type: "button",
|
|
90
91
|
icon: "repeat-alt",
|
|
91
92
|
"icon-color": a.iconColor,
|
|
@@ -94,7 +95,7 @@ const Te = { class: "media-selector" }, Le = ["accept"], qe = { class: "media-se
|
|
|
94
95
|
])) : g("", !0),
|
|
95
96
|
_.value ? (s(), v("li", Re, [
|
|
96
97
|
o(S, {
|
|
97
|
-
label: e(
|
|
98
|
+
label: e(u)("removeFile"),
|
|
98
99
|
type: "button",
|
|
99
100
|
icon: "trash-alt",
|
|
100
101
|
"icon-color": a.iconColor,
|
|
@@ -111,7 +112,7 @@ const Te = { class: "media-selector" }, Le = ["accept"], qe = { class: "media-se
|
|
|
111
112
|
a.modelValue ? (s(), v("img", {
|
|
112
113
|
key: 0,
|
|
113
114
|
src: a.modelValue.base64
|
|
114
|
-
}, null, 8,
|
|
115
|
+
}, null, 8, De)) : g("", !0)
|
|
115
116
|
], 2)
|
|
116
117
|
])
|
|
117
118
|
])
|
|
@@ -140,12 +141,12 @@ function W(d) {
|
|
|
140
141
|
}
|
|
141
142
|
});
|
|
142
143
|
}
|
|
143
|
-
typeof W == "function" && W(
|
|
144
|
-
const ze = { class: "gift-card-skeleton" },
|
|
144
|
+
typeof W == "function" && W(xe);
|
|
145
|
+
const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-form" }, He = /* @__PURE__ */ I({
|
|
145
146
|
__name: "GiftCardSkeleton",
|
|
146
147
|
setup(d) {
|
|
147
148
|
return (n, m) => (s(), v("div", ze, [
|
|
148
|
-
t("div",
|
|
149
|
+
t("div", je, [
|
|
149
150
|
o(A),
|
|
150
151
|
o(A),
|
|
151
152
|
o(A),
|
|
@@ -155,7 +156,7 @@ const ze = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
|
|
|
155
156
|
])
|
|
156
157
|
]));
|
|
157
158
|
}
|
|
158
|
-
}), Ne = /* @__PURE__ */ z(
|
|
159
|
+
}), Ne = /* @__PURE__ */ z(He, [["__scopeId", "data-v-ba3efaa1"]]), Oe = { class: "konnectio-accept-terms" }, We = /* @__PURE__ */ I({
|
|
159
160
|
__name: "_",
|
|
160
161
|
props: {
|
|
161
162
|
content: {},
|
|
@@ -163,7 +164,7 @@ const ze = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
|
|
|
163
164
|
},
|
|
164
165
|
setup(d) {
|
|
165
166
|
const { t: n } = B(), m = K(!1);
|
|
166
|
-
return (l,
|
|
167
|
+
return (l, u) => (s(), v("div", Oe, [
|
|
167
168
|
o(e(be), {
|
|
168
169
|
keypath: "general.termsAndConditionsNotice",
|
|
169
170
|
tag: "span",
|
|
@@ -176,7 +177,7 @@ const ze = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
|
|
|
176
177
|
t("a", {
|
|
177
178
|
class: "konnectio-accept-terms-link",
|
|
178
179
|
target: "_blank",
|
|
179
|
-
onClick:
|
|
180
|
+
onClick: u[0] || (u[0] = ae((h) => m.value = !0, ["prevent"]))
|
|
180
181
|
}, [
|
|
181
182
|
t("span", null, G(e(n)("general.termsAndConditions")), 1)
|
|
182
183
|
])
|
|
@@ -185,7 +186,7 @@ const ze = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
|
|
|
185
186
|
}),
|
|
186
187
|
o(Ie, {
|
|
187
188
|
modelValue: m.value,
|
|
188
|
-
"onUpdate:modelValue":
|
|
189
|
+
"onUpdate:modelValue": u[1] || (u[1] = (h) => m.value = h),
|
|
189
190
|
description: l.content
|
|
190
191
|
}, null, 8, ["modelValue", "description"])
|
|
191
192
|
]));
|
|
@@ -193,13 +194,13 @@ const ze = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
|
|
|
193
194
|
}), Ke = /* @__PURE__ */ z(We, [["__scopeId", "data-v-f587c956"]]), Ze = /* @__PURE__ */ I({
|
|
194
195
|
__name: "GiftCard",
|
|
195
196
|
setup(d) {
|
|
196
|
-
const { t: n } = B(), m =
|
|
197
|
-
return (l,
|
|
197
|
+
const { t: n } = B(), m = x();
|
|
198
|
+
return (l, u) => (s(), w(Ke, {
|
|
198
199
|
content: e(m).termsOfService,
|
|
199
200
|
"button-label": e(n)("giftCard.orderGiftCard")
|
|
200
201
|
}, null, 8, ["content", "button-label"]));
|
|
201
202
|
}
|
|
202
|
-
}), Ye = (d) => (de("data-v-06df89c3"), d = d(),
|
|
203
|
+
}), Ye = (d) => (de("data-v-06df89c3"), d = d(), ce(), d), Je = ["data-layout"], Qe = { id: "konnectio-gift-card-wrapper" }, Xe = { id: "konnectio-gift-card-title" }, et = { id: "konnectio-gift-card-content" }, tt = { id: "konnectio-gift-card-payment" }, lt = ["innerHTML"], at = { key: 0 }, ot = {
|
|
203
204
|
key: 0,
|
|
204
205
|
id: "konnectio-select-place-type"
|
|
205
206
|
}, nt = {
|
|
@@ -207,10 +208,10 @@ const ze = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
|
|
|
207
208
|
}, it = { id: "konnectio-select-place-type-input" }, st = ["innerHTML"], rt = {
|
|
208
209
|
key: 0,
|
|
209
210
|
id: "konnectio-gift-card-order"
|
|
210
|
-
}, dt = { class: "konnectio-panel" },
|
|
211
|
+
}, dt = { class: "konnectio-panel" }, ct = {
|
|
211
212
|
key: 1,
|
|
212
213
|
id: "konnectio-gift-card-remarks"
|
|
213
|
-
},
|
|
214
|
+
}, ut = {
|
|
214
215
|
key: 2,
|
|
215
216
|
id: "konnectio-gift-card-order-minimal"
|
|
216
217
|
}, pt = /* @__PURE__ */ Ye(() => /* @__PURE__ */ t("div", { class: "konnectio-divider" }, null, -1)), mt = { id: "konnectio-gift-card-recaptcha" }, ft = /* @__PURE__ */ I({
|
|
@@ -227,14 +228,14 @@ const ze = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
|
|
|
227
228
|
panelMaxWidth: "800px",
|
|
228
229
|
...n.styling
|
|
229
230
|
})), { t: l } = B(), {
|
|
230
|
-
name:
|
|
231
|
+
name: u,
|
|
231
232
|
email: h,
|
|
232
233
|
phone: p,
|
|
233
234
|
value: _,
|
|
234
|
-
remark:
|
|
235
|
+
remark: c,
|
|
235
236
|
showValue: y,
|
|
236
237
|
quantity: b,
|
|
237
|
-
media:
|
|
238
|
+
media: j,
|
|
238
239
|
placeId: $,
|
|
239
240
|
placeType: a,
|
|
240
241
|
showFormPage: f,
|
|
@@ -242,9 +243,9 @@ const ze = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
|
|
|
242
243
|
showConfirmationPage: R,
|
|
243
244
|
places: C,
|
|
244
245
|
hasFilledForm: U,
|
|
245
|
-
hasForcedPlaceType:
|
|
246
|
+
hasForcedPlaceType: D,
|
|
246
247
|
isWaitingForResponse: E
|
|
247
|
-
} = O(
|
|
248
|
+
} = O(x()), { initialize: J, orderGiftCard: H, fetchMetadata: Q } = x(), { isRecaptchaEnabled: X, currency: ee, hasError: te } = O(ve());
|
|
248
249
|
return oe(a, () => {
|
|
249
250
|
$.value = void 0;
|
|
250
251
|
}), ne(() => {
|
|
@@ -285,7 +286,7 @@ const ze = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
|
|
|
285
286
|
innerHTML: e(l)("giftCard.description")
|
|
286
287
|
}, null, 8, lt),
|
|
287
288
|
t("form", null, [
|
|
288
|
-
e(
|
|
289
|
+
e(D) ? g("", !0) : (s(), v("div", at, [
|
|
289
290
|
e(C) ? (s(), v("div", ot, [
|
|
290
291
|
t("label", nt, [
|
|
291
292
|
t("span", null, G(e(l)("giftCard.selectType")), 1)
|
|
@@ -317,8 +318,8 @@ const ze = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
|
|
|
317
318
|
])) : (s(), w(_e, { key: 1 }))
|
|
318
319
|
])),
|
|
319
320
|
o(q, {
|
|
320
|
-
modelValue: e(
|
|
321
|
-
"onUpdate:modelValue": r[2] || (r[2] = (i) => k(
|
|
321
|
+
modelValue: e(u),
|
|
322
|
+
"onUpdate:modelValue": r[2] || (r[2] = (i) => k(u) ? u.value = i : null),
|
|
322
323
|
type: "text",
|
|
323
324
|
name: "name",
|
|
324
325
|
autocomplete: "name",
|
|
@@ -386,14 +387,14 @@ const ze = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
|
|
|
386
387
|
disabled: !e(U),
|
|
387
388
|
"is-loading": e(E),
|
|
388
389
|
"onUpdate:isLoading": r[9] || (r[9] = (i) => k(E) ? E.value = i : null),
|
|
389
|
-
onClickEvent: e(
|
|
390
|
+
onClickEvent: e(H)
|
|
390
391
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
|
|
391
392
|
])
|
|
392
393
|
])) : g("", !0),
|
|
393
|
-
e(f) ? (s(), v("div",
|
|
394
|
+
e(f) ? (s(), v("div", ct, [
|
|
394
395
|
o(q, {
|
|
395
|
-
modelValue: e(
|
|
396
|
-
"onUpdate:modelValue": r[10] || (r[10] = (i) => k(
|
|
396
|
+
modelValue: e(c),
|
|
397
|
+
"onUpdate:modelValue": r[10] || (r[10] = (i) => k(c) ? c.value = i : null),
|
|
397
398
|
type: "textarea",
|
|
398
399
|
name: "remark",
|
|
399
400
|
label: e(l)("giftCard.remark"),
|
|
@@ -401,7 +402,7 @@ const ze = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
|
|
|
401
402
|
placeholder: e(l)("giftCard.remarkPlaceholder")
|
|
402
403
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
403
404
|
])) : g("", !0),
|
|
404
|
-
e(f) ? (s(), v("div",
|
|
405
|
+
e(f) ? (s(), v("div", ut, [
|
|
405
406
|
o(S, {
|
|
406
407
|
label: e(l)("giftCard.orderGiftCard"),
|
|
407
408
|
"full-width": !0,
|
|
@@ -409,7 +410,7 @@ const ze = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
|
|
|
409
410
|
"data-test": "orderGiftCard",
|
|
410
411
|
"is-loading": e(E),
|
|
411
412
|
"onUpdate:isLoading": r[11] || (r[11] = (i) => k(E) ? E.value = i : null),
|
|
412
|
-
onClickEvent: e(
|
|
413
|
+
onClickEvent: e(H)
|
|
413
414
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
|
|
414
415
|
t("div", null, [
|
|
415
416
|
pt,
|
|
@@ -436,7 +437,7 @@ const ze = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
|
|
|
436
437
|
_: 1
|
|
437
438
|
}, 8, ["styling"]));
|
|
438
439
|
}
|
|
439
|
-
}), M = /* @__PURE__ */ z(ft, [["__scopeId", "data-v-06df89c3"]]), bt = ke(), vt =
|
|
440
|
+
}), M = /* @__PURE__ */ z(ft, [["__scopeId", "data-v-06df89c3"]]), bt = ke(), vt = we();
|
|
440
441
|
class ht extends HTMLElement {
|
|
441
442
|
vueApp;
|
|
442
443
|
constructor() {
|
|
@@ -448,18 +449,18 @@ class ht extends HTMLElement {
|
|
|
448
449
|
connectedCallback() {
|
|
449
450
|
const n = typeof M == "function" ? M.options : M;
|
|
450
451
|
let m = Array.isArray(n.props) ? n.props : Object.keys(n.props || {});
|
|
451
|
-
const l = (
|
|
452
|
+
const l = (c) => c.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (y, b) => (b ? "-" : "") + y.toLowerCase()), u = (c) => c.replace(/-./g, (y) => y[1].toUpperCase()), h = {};
|
|
452
453
|
m = m.map(l);
|
|
453
454
|
const p = {};
|
|
454
|
-
for (const
|
|
455
|
-
const b =
|
|
456
|
-
b.length > 1 && (p[b[0]] || (p[b[0]] = {}), p[b[0]][
|
|
455
|
+
for (const c of this.attributes) {
|
|
456
|
+
const b = c.name.split(".");
|
|
457
|
+
b.length > 1 && (p[b[0]] || (p[b[0]] = {}), p[b[0]][u(b[1])] = c.value);
|
|
457
458
|
}
|
|
458
|
-
for (const
|
|
459
|
-
let y = this.attributes.getNamedItem(
|
|
460
|
-
p.hasOwnProperty(
|
|
459
|
+
for (const c of m) {
|
|
460
|
+
let y = this.attributes.getNamedItem(c)?.value;
|
|
461
|
+
p.hasOwnProperty(c) && (y = p[c]), h[c] = y;
|
|
461
462
|
}
|
|
462
|
-
this.vueApp =
|
|
463
|
+
this.vueApp = ue(M, h), Fe(this.vueApp), this.vueApp.provide("emitter", vt), this.vueApp.use(bt), this.vueApp.use(Ce), this.vueApp.use(Ve, { bootstrap: !0 });
|
|
463
464
|
const _ = document.createElement("div");
|
|
464
465
|
this.vueApp.mount(_), this.appendChild(_.children[0]);
|
|
465
466
|
}
|
package/dist/gift-card.js.br
CHANGED
|
Binary file
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { d as K, u as H, a as J, s as Q, b as E, G as s, c as S, i as w, S as k, e as M, g as O, f as X } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-
|
|
2
|
-
import { r as t, c as a } from "./
|
|
1
|
+
import { d as K, u as H, a as J, s as Q, b as E, G as s, c as S, i as w, S as k, e as M, g as O, f as X } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BJlxJLmO.js";
|
|
2
|
+
import { r as t, c as a } from "./_commonjsHelpers-04Qj4xBt.js";
|
|
3
3
|
import "./deep-link.js";
|
|
4
4
|
(function() {
|
|
5
5
|
try {
|
|
6
6
|
var i = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, c = new Error().stack;
|
|
7
|
-
c && (i._sentryDebugIds = i._sentryDebugIds || {}, i._sentryDebugIds[c] = "
|
|
7
|
+
c && (i._sentryDebugIds = i._sentryDebugIds || {}, i._sentryDebugIds[c] = "a90f5065-5d94-43a6-99ed-f12057e8eeba", i._sentryDebugIdIdentifier = "sentry-dbid-a90f5065-5d94-43a6-99ed-f12057e8eeba");
|
|
8
8
|
} catch {
|
|
9
9
|
}
|
|
10
10
|
})();
|
|
@@ -50,7 +50,7 @@ const ae = K("giftCard", () => {
|
|
|
50
50
|
headers: {
|
|
51
51
|
Authorization: v.value,
|
|
52
52
|
Accept: "application/json",
|
|
53
|
-
"Konnectio-Ver": "4.0.56-
|
|
53
|
+
"Konnectio-Ver": "4.0.56-rc52"
|
|
54
54
|
}
|
|
55
55
|
})).data;
|
|
56
56
|
e.success !== void 0 ? I.value = !e.success : I.value = !1, P.value = e;
|
|
@@ -124,4 +124,4 @@ const ae = K("giftCard", () => {
|
|
|
124
124
|
export {
|
|
125
125
|
ae as u
|
|
126
126
|
};
|
|
127
|
-
//# sourceMappingURL=giftCard-
|
|
127
|
+
//# sourceMappingURL=giftCard-C8PqkLNd.js.map
|
|
Binary file
|