@konnectio/core 4.0.56-rc55 → 4.0.56-rc56
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-BAL1bpnL.js → ActionField-D2cIxYLO.js} +12 -12
- package/dist/ActionField-D2cIxYLO.js.br +0 -0
- package/dist/{AvailabilitySkeleton-BX61UaDK.js → AvailabilitySkeleton-fSj-D3gr.js} +50 -49
- package/dist/AvailabilitySkeleton-fSj-D3gr.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DmlVYsD2.js +8174 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DmlVYsD2.js.br +0 -0
- package/dist/{CheckoutWindow-DufEgcza.js → CheckoutWindow-DDFex8_M.js} +242 -233
- package/dist/CheckoutWindow-DDFex8_M.js.br +0 -0
- package/dist/{ErrorMessage-CbGOS1Nq.js → ErrorMessage-BxEkmAcA.js} +4 -4
- package/dist/ErrorMessage-BxEkmAcA.js.br +0 -0
- package/dist/EventAvailabilityForm-Bh21jXV0.js +120 -0
- package/dist/EventAvailabilityForm-Bh21jXV0.js.br +0 -0
- package/dist/{Field-flvSuRTL.js → Field-C1-c1E69.js} +9 -9
- package/dist/Field-C1-c1E69.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-1m-WZuNW.js +18603 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-1m-WZuNW.js.br +0 -0
- package/dist/TermsOfService-Cf3uVbvE.js +36 -0
- package/dist/TermsOfService-Cf3uVbvE.js.br +0 -0
- package/dist/{_-Wr8LhfrM.js → _-DpyfRShv.js} +3 -3
- package/dist/_.vue_vue_type_style_index_0_lang-DoCplqzK.js +69 -0
- package/dist/_.vue_vue_type_style_index_0_lang-DoCplqzK.js.br +0 -0
- package/dist/_commonjsHelpers-7Ka-lrVJ.js +17 -0
- package/dist/_sentry-release-injection-file-BwRPXfCP.js +11186 -0
- package/dist/_sentry-release-injection-file-BwRPXfCP.js.br +0 -0
- package/dist/availability.js +24 -24
- package/dist/availability.js.br +0 -0
- package/dist/deep-link.js +56 -4
- package/dist/deep-link.js.br +0 -0
- package/dist/event.js +316 -300
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +32 -33
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +87 -88
- package/dist/gift-card.js.br +0 -0
- package/dist/giftCard-D4D0qX4c.js +134 -0
- package/dist/giftCard-D4D0qX4c.js.br +0 -0
- package/dist/hotel.js +211 -211
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-BMRfOcVe.js → masonry.plugin-BJrxifpp.js} +3352 -3334
- package/dist/masonry.plugin-BJrxifpp.js.br +0 -0
- package/dist/mitt-CKlYOuwf.js +4290 -0
- package/dist/mitt-CKlYOuwf.js.br +0 -0
- package/dist/polyfill.js +4523 -4515
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/dist/{tracing-wxeFiHIa.js → tracing-NLDFmjvp.js} +3 -3
- package/dist/tracing-NLDFmjvp.js.br +0 -0
- package/package.json +8 -8
- package/dist/ActionField-BAL1bpnL.js.br +0 -0
- package/dist/AvailabilitySkeleton-BX61UaDK.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CBLGelHH.js +0 -7814
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CBLGelHH.js.br +0 -0
- package/dist/CheckoutWindow-DufEgcza.js.br +0 -0
- package/dist/ErrorMessage-CbGOS1Nq.js.br +0 -0
- package/dist/EventAvailabilityForm-CO2Vt9WR.js +0 -452
- package/dist/EventAvailabilityForm-CO2Vt9WR.js.br +0 -0
- package/dist/Field-flvSuRTL.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BtVEfiNz.js +0 -21414
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BtVEfiNz.js.br +0 -0
- package/dist/TermsOfService-ZtJSXzfs.js +0 -35
- package/dist/TermsOfService-ZtJSXzfs.js.br +0 -0
- package/dist/_.vue_vue_type_style_index_0_lang-1ZRqGUnk.js +0 -68
- package/dist/_.vue_vue_type_style_index_0_lang-1ZRqGUnk.js.br +0 -0
- package/dist/_commonjsHelpers-04Qj4xBt.js +0 -9530
- package/dist/_commonjsHelpers-04Qj4xBt.js.br +0 -0
- package/dist/giftCard-DHP_enh5.js +0 -127
- package/dist/giftCard-DHP_enh5.js.br +0 -0
- package/dist/masonry.plugin-BMRfOcVe.js.br +0 -0
- package/dist/sentry-BSHzssDu.js +0 -18
- package/dist/tracing-wxeFiHIa.js.br +0 -0
package/dist/event.js.br
CHANGED
|
Binary file
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import {
|
|
3
|
-
import { c as
|
|
4
|
-
import {
|
|
5
|
-
import { _ as W } from "./_.vue_vue_type_style_index_0_lang-
|
|
6
|
-
import { A as J } from "./ActionField-
|
|
7
|
-
import { F as
|
|
8
|
-
import { E as K } from "./ErrorMessage-
|
|
9
|
-
import "./deep-link.js";
|
|
1
|
+
import { d as S, 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-BwRPXfCP.js";
|
|
2
|
+
import { u as N, s as x, c as U, i as O, m as z } from "./mitt-CKlYOuwf.js";
|
|
3
|
+
import { u as F, c as H } from "./giftCard-D4D0qX4c.js";
|
|
4
|
+
import { E as k, _ as L, q as E, e as j, I as C, h as R, f as Z, C as q } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-1m-WZuNW.js";
|
|
5
|
+
import { _ as W } from "./_.vue_vue_type_style_index_0_lang-DoCplqzK.js";
|
|
6
|
+
import { A as J } from "./ActionField-D2cIxYLO.js";
|
|
7
|
+
import { F as I } from "./Field-C1-c1E69.js";
|
|
8
|
+
import { E as K } from "./ErrorMessage-BxEkmAcA.js";
|
|
10
9
|
(function() {
|
|
11
10
|
try {
|
|
12
11
|
var r = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, s = new Error().stack;
|
|
13
|
-
s && (r._sentryDebugIds = r._sentryDebugIds || {}, r._sentryDebugIds[s] = "
|
|
12
|
+
s && (r._sentryDebugIds = r._sentryDebugIds || {}, r._sentryDebugIds[s] = "ed835707-a344-48bb-90f3-85348569da37", r._sentryDebugIdIdentifier = "sentry-dbid-ed835707-a344-48bb-90f3-85348569da37");
|
|
14
13
|
} catch {
|
|
15
14
|
}
|
|
16
15
|
})();
|
|
17
|
-
const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-validation-skeleton-form" }, tt = { class: "gift-card-validation-skeleton-text" }, et = { class: "gift-card-validation-skeleton-input" }, at = /* @__PURE__ */
|
|
16
|
+
const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-validation-skeleton-form" }, tt = { class: "gift-card-validation-skeleton-text" }, et = { class: "gift-card-validation-skeleton-input" }, at = /* @__PURE__ */ S({
|
|
18
17
|
__name: "GiftCardValidationSkeleton",
|
|
19
18
|
setup(r) {
|
|
20
|
-
return (s, c) => (f(),
|
|
19
|
+
return (s, c) => (f(), V("div", Q, [
|
|
21
20
|
t("div", Y, [
|
|
22
21
|
t("div", tt, [
|
|
23
22
|
o(k, { height: "20px" }),
|
|
@@ -25,8 +24,8 @@ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-va
|
|
|
25
24
|
o(k, { height: "15px" })
|
|
26
25
|
]),
|
|
27
26
|
t("div", et, [
|
|
28
|
-
o(
|
|
29
|
-
o(
|
|
27
|
+
o(I),
|
|
28
|
+
o(I, { "no-label": "" })
|
|
30
29
|
])
|
|
31
30
|
])
|
|
32
31
|
]));
|
|
@@ -35,7 +34,7 @@ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-va
|
|
|
35
34
|
key: 0,
|
|
36
35
|
id: "konnectio-gift-card-validation-resume",
|
|
37
36
|
class: "konnectio-panel"
|
|
38
|
-
}, it = /* @__PURE__ */
|
|
37
|
+
}, it = /* @__PURE__ */ S({
|
|
39
38
|
name: "GiftCardValidationLayout",
|
|
40
39
|
__name: "GiftCardValidation",
|
|
41
40
|
props: {
|
|
@@ -48,15 +47,15 @@ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-va
|
|
|
48
47
|
...s.styling
|
|
49
48
|
})), { t: i } = N(), {
|
|
50
49
|
voucher: m,
|
|
51
|
-
isValid:
|
|
50
|
+
isValid: h,
|
|
52
51
|
amount: p,
|
|
53
|
-
expirationDate:
|
|
52
|
+
expirationDate: b,
|
|
54
53
|
productName: a,
|
|
55
54
|
isLoading: n
|
|
56
|
-
} = x(E()), { currency: l, hasError: G } = x(
|
|
57
|
-
return (M, d) => (f(), _(
|
|
55
|
+
} = x(E()), { currency: l, hasError: G } = x(j()), { fetchMetadata: D } = F(), { apply: A } = E();
|
|
56
|
+
return (M, d) => (f(), _(q, { styling: c.value }, {
|
|
58
57
|
default: v(() => [
|
|
59
|
-
(f(), _(
|
|
58
|
+
(f(), _(P, null, {
|
|
60
59
|
default: v(() => [
|
|
61
60
|
o(W, {
|
|
62
61
|
"access-token": M.accessToken,
|
|
@@ -67,10 +66,10 @@ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-va
|
|
|
67
66
|
key: 1,
|
|
68
67
|
title: "Unable to render Gift card validation module",
|
|
69
68
|
description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
|
|
70
|
-
})) : (f(),
|
|
69
|
+
})) : (f(), V("form", {
|
|
71
70
|
key: 0,
|
|
72
71
|
id: "konnectio-gift-card-validation-module",
|
|
73
|
-
onSubmit: d[3] || (d[3] =
|
|
72
|
+
onSubmit: d[3] || (d[3] = $((g) => e(A)(), ["prevent"]))
|
|
74
73
|
}, [
|
|
75
74
|
t("h4", null, [
|
|
76
75
|
t("span", null, u(e(i)("giftCardValidation.title")), 1)
|
|
@@ -87,9 +86,9 @@ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-va
|
|
|
87
86
|
placeholder: "XXXXXXXX",
|
|
88
87
|
"is-loading": e(n),
|
|
89
88
|
"onUpdate:isLoading": d[1] || (d[1] = (g) => w(n) ? n.value = g : null),
|
|
90
|
-
onAction: d[2] || (d[2] = (g) => e(
|
|
89
|
+
onAction: d[2] || (d[2] = (g) => e(A)())
|
|
91
90
|
}, null, 8, ["modelValue", "label", "buttonLabel", "is-loading"]),
|
|
92
|
-
!e(n) && e(
|
|
91
|
+
!e(n) && e(h) ? (f(), V("table", st, [
|
|
93
92
|
t("thead", null, [
|
|
94
93
|
t("tr", null, [
|
|
95
94
|
t("th", null, [
|
|
@@ -124,14 +123,14 @@ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-va
|
|
|
124
123
|
t("span", null, u(e(a)), 1)
|
|
125
124
|
]),
|
|
126
125
|
t("td", null, [
|
|
127
|
-
t("span", null, u(e(
|
|
126
|
+
t("span", null, u(e(R)(e(p), e(l))), 1)
|
|
128
127
|
]),
|
|
129
128
|
t("td", null, [
|
|
130
|
-
t("span", null, u(e(
|
|
129
|
+
t("span", null, u(e(Z)(e(b))), 1)
|
|
131
130
|
])
|
|
132
131
|
])
|
|
133
132
|
])
|
|
134
|
-
])) :
|
|
133
|
+
])) : T("", !0)
|
|
135
134
|
], 32))
|
|
136
135
|
]),
|
|
137
136
|
_: 1
|
|
@@ -146,7 +145,7 @@ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-va
|
|
|
146
145
|
_: 1
|
|
147
146
|
}, 8, ["styling"]));
|
|
148
147
|
}
|
|
149
|
-
}), y = /* @__PURE__ */ L(it, [["__scopeId", "data-v-ae703950"]]), lt =
|
|
148
|
+
}), y = /* @__PURE__ */ L(it, [["__scopeId", "data-v-ae703950"]]), lt = U(), rt = z();
|
|
150
149
|
class dt extends HTMLElement {
|
|
151
150
|
vueApp;
|
|
152
151
|
constructor() {
|
|
@@ -158,7 +157,7 @@ class dt extends HTMLElement {
|
|
|
158
157
|
connectedCallback() {
|
|
159
158
|
const s = typeof y == "function" ? y.options : y;
|
|
160
159
|
let c = Array.isArray(s.props) ? s.props : Object.keys(s.props || {});
|
|
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()),
|
|
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()), h = {};
|
|
162
161
|
c = c.map(i);
|
|
163
162
|
const p = {};
|
|
164
163
|
for (const a of this.attributes) {
|
|
@@ -167,11 +166,11 @@ class dt extends HTMLElement {
|
|
|
167
166
|
}
|
|
168
167
|
for (const a of c) {
|
|
169
168
|
let n = this.attributes.getNamedItem(a)?.value;
|
|
170
|
-
p.hasOwnProperty(a) && (n = p[a]),
|
|
169
|
+
p.hasOwnProperty(a) && (n = p[a]), h[a] = n;
|
|
171
170
|
}
|
|
172
|
-
this.vueApp =
|
|
173
|
-
const
|
|
174
|
-
this.vueApp.mount(
|
|
171
|
+
this.vueApp = B(y, h), H(this.vueApp), this.vueApp.provide("emitter", rt), this.vueApp.use(lt), this.vueApp.use(O);
|
|
172
|
+
const b = document.createElement("div");
|
|
173
|
+
this.vueApp.mount(b), this.appendChild(b.children[0]);
|
|
175
174
|
}
|
|
176
175
|
}
|
|
177
176
|
window.customElements.define("konnectio-gift-card-validation", dt);
|
|
Binary file
|
package/dist/gift-card.js
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import {
|
|
3
|
-
import { c as
|
|
4
|
-
import {
|
|
5
|
-
import { _ as
|
|
6
|
-
import {
|
|
7
|
-
import { F as A } from "./Field-
|
|
8
|
-
import { E as Se } from "./ErrorMessage-
|
|
9
|
-
import { S as
|
|
10
|
-
import "./deep-link.js";
|
|
1
|
+
import { d as T, 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 k, p as de, j as ue, k as ce } from "./_sentry-release-injection-file-BwRPXfCP.js";
|
|
2
|
+
import { u as B, T as pe, s as O, c as me, i as fe, m as be } from "./mitt-CKlYOuwf.js";
|
|
3
|
+
import { u as x, c as ve } from "./giftCard-D4D0qX4c.js";
|
|
4
|
+
import { a as he, c as S, p as _e, E as ge, _ as z, e as ye, n as ke, L as Ce, T as M, b as Ve, C as we, m as $e } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-1m-WZuNW.js";
|
|
5
|
+
import { _ as Fe } from "./_.vue_vue_type_style_index_0_lang-DoCplqzK.js";
|
|
6
|
+
import { a as Ee, C as Pe, P as Ue, _ as Ae } from "./CheckoutWindow-DDFex8_M.js";
|
|
7
|
+
import { F as A } from "./Field-C1-c1E69.js";
|
|
8
|
+
import { E as Se } from "./ErrorMessage-BxEkmAcA.js";
|
|
9
|
+
import { S as Te } from "./TermsOfService-Cf3uVbvE.js";
|
|
11
10
|
(function() {
|
|
12
11
|
try {
|
|
13
12
|
var d = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, n = new Error().stack;
|
|
14
|
-
n && (d._sentryDebugIds = d._sentryDebugIds || {}, d._sentryDebugIds[n] = "
|
|
13
|
+
n && (d._sentryDebugIds = d._sentryDebugIds || {}, d._sentryDebugIds[n] = "795da374-b165-4373-aeb7-9b736d1a412b", d._sentryDebugIdIdentifier = "sentry-dbid-795da374-b165-4373-aeb7-9b736d1a412b");
|
|
15
14
|
} catch {
|
|
16
15
|
}
|
|
17
16
|
})();
|
|
18
|
-
const
|
|
17
|
+
const Ie = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-selector-wrapper" }, Ge = { class: "media-selector-tools" }, qe = { key: 0 }, Be = { key: 1 }, Re = { key: 2 }, De = ["src"], xe = /* @__PURE__ */ T({
|
|
19
18
|
__name: "MediaSelector",
|
|
20
19
|
props: {
|
|
21
20
|
modelValue: {},
|
|
@@ -26,12 +25,12 @@ const Te = { class: "media-selector" }, Le = ["accept"], qe = { class: "media-se
|
|
|
26
25
|
},
|
|
27
26
|
emits: ["update:modelValue"],
|
|
28
27
|
setup(d, { emit: n }) {
|
|
29
|
-
const m = n, l = d, { t:
|
|
30
|
-
function
|
|
28
|
+
const m = n, l = d, { t: c } = B(), { display: h } = he(), p = K(), _ = Z(() => l.modelValue.base64 !== "");
|
|
29
|
+
function u(a) {
|
|
31
30
|
m("update:modelValue", a);
|
|
32
31
|
}
|
|
33
32
|
function y() {
|
|
34
|
-
|
|
33
|
+
u({
|
|
35
34
|
base64: "",
|
|
36
35
|
name: "",
|
|
37
36
|
type: ""
|
|
@@ -48,22 +47,22 @@ const Te = { class: "media-selector" }, Le = ["accept"], qe = { class: "media-se
|
|
|
48
47
|
f({ base64: D, name: V, type: R });
|
|
49
48
|
} else
|
|
50
49
|
h({
|
|
51
|
-
message:
|
|
50
|
+
message: c("imageUploadError"),
|
|
52
51
|
type: "error"
|
|
53
52
|
});
|
|
54
53
|
}, C.readAsDataURL(a);
|
|
55
54
|
}
|
|
56
|
-
async function
|
|
55
|
+
async function F() {
|
|
57
56
|
let a;
|
|
58
|
-
(a = p.value.files) instanceof FileList && j(a[0],
|
|
57
|
+
(a = p.value.files) instanceof FileList && j(a[0], u);
|
|
59
58
|
}
|
|
60
|
-
return (a, f) => (s(), w(
|
|
59
|
+
return (a, f) => (s(), w(_e, {
|
|
61
60
|
label: a.label,
|
|
62
61
|
required: a.required,
|
|
63
62
|
type: "media"
|
|
64
63
|
}, {
|
|
65
|
-
default:
|
|
66
|
-
t("div",
|
|
64
|
+
default: $(() => [
|
|
65
|
+
t("div", Ie, [
|
|
67
66
|
t("input", {
|
|
68
67
|
ref_key: "fileInput",
|
|
69
68
|
ref: p,
|
|
@@ -71,13 +70,13 @@ const Te = { class: "media-selector" }, Le = ["accept"], qe = { class: "media-se
|
|
|
71
70
|
class: "hidden",
|
|
72
71
|
accept: a.validation,
|
|
73
72
|
single: "",
|
|
74
|
-
onChange: f[0] || (f[0] = (V) =>
|
|
73
|
+
onChange: f[0] || (f[0] = (V) => F())
|
|
75
74
|
}, null, 40, Le),
|
|
76
|
-
t("div",
|
|
77
|
-
t("ul",
|
|
78
|
-
_.value ? g("", !0) : (s(), v("li",
|
|
75
|
+
t("div", Me, [
|
|
76
|
+
t("ul", Ge, [
|
|
77
|
+
_.value ? g("", !0) : (s(), v("li", qe, [
|
|
79
78
|
o(S, {
|
|
80
|
-
label: e(
|
|
79
|
+
label: e(c)("uploadFile"),
|
|
81
80
|
type: "button",
|
|
82
81
|
icon: "upload",
|
|
83
82
|
"icon-color": a.iconColor,
|
|
@@ -86,7 +85,7 @@ const Te = { class: "media-selector" }, Le = ["accept"], qe = { class: "media-se
|
|
|
86
85
|
])),
|
|
87
86
|
_.value ? (s(), v("li", Be, [
|
|
88
87
|
o(S, {
|
|
89
|
-
label: e(
|
|
88
|
+
label: e(c)("replaceFile"),
|
|
90
89
|
type: "button",
|
|
91
90
|
icon: "repeat-alt",
|
|
92
91
|
"icon-color": a.iconColor,
|
|
@@ -95,7 +94,7 @@ const Te = { class: "media-selector" }, Le = ["accept"], qe = { class: "media-se
|
|
|
95
94
|
])) : g("", !0),
|
|
96
95
|
_.value ? (s(), v("li", Re, [
|
|
97
96
|
o(S, {
|
|
98
|
-
label: e(
|
|
97
|
+
label: e(c)("removeFile"),
|
|
99
98
|
type: "button",
|
|
100
99
|
icon: "trash-alt",
|
|
101
100
|
"icon-color": a.iconColor,
|
|
@@ -142,7 +141,7 @@ function W(d) {
|
|
|
142
141
|
});
|
|
143
142
|
}
|
|
144
143
|
typeof W == "function" && W(xe);
|
|
145
|
-
const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-form" }, He = /* @__PURE__ */
|
|
144
|
+
const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-form" }, He = /* @__PURE__ */ T({
|
|
146
145
|
__name: "GiftCardSkeleton",
|
|
147
146
|
setup(d) {
|
|
148
147
|
return (n, m) => (s(), v("div", ze, [
|
|
@@ -152,11 +151,11 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
152
151
|
o(A),
|
|
153
152
|
o(A),
|
|
154
153
|
o(A, { "is-text-area": "" }),
|
|
155
|
-
o(
|
|
154
|
+
o(ge, { height: "44px" })
|
|
156
155
|
])
|
|
157
156
|
]));
|
|
158
157
|
}
|
|
159
|
-
}), Ne = /* @__PURE__ */ z(He, [["__scopeId", "data-v-ba3efaa1"]]), Oe = { class: "konnectio-accept-terms" }, We = /* @__PURE__ */
|
|
158
|
+
}), Ne = /* @__PURE__ */ z(He, [["__scopeId", "data-v-ba3efaa1"]]), Oe = { class: "konnectio-accept-terms" }, We = /* @__PURE__ */ T({
|
|
160
159
|
__name: "_",
|
|
161
160
|
props: {
|
|
162
161
|
content: {},
|
|
@@ -164,43 +163,43 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
164
163
|
},
|
|
165
164
|
setup(d) {
|
|
166
165
|
const { t: n } = B(), m = K(!1);
|
|
167
|
-
return (l,
|
|
168
|
-
o(e(
|
|
166
|
+
return (l, c) => (s(), v("div", Oe, [
|
|
167
|
+
o(e(pe), {
|
|
169
168
|
keypath: "general.termsAndConditionsNotice",
|
|
170
169
|
tag: "span",
|
|
171
170
|
scope: "global"
|
|
172
171
|
}, {
|
|
173
|
-
button:
|
|
174
|
-
t("i", null, '"' +
|
|
172
|
+
button: $(() => [
|
|
173
|
+
t("i", null, '"' + q(l.buttonLabel) + '"', 1)
|
|
175
174
|
]),
|
|
176
|
-
terms:
|
|
175
|
+
terms: $(() => [
|
|
177
176
|
t("a", {
|
|
178
177
|
class: "konnectio-accept-terms-link",
|
|
179
178
|
target: "_blank",
|
|
180
|
-
onClick:
|
|
179
|
+
onClick: c[0] || (c[0] = ae((h) => m.value = !0, ["prevent"]))
|
|
181
180
|
}, [
|
|
182
|
-
t("span", null,
|
|
181
|
+
t("span", null, q(e(n)("general.termsAndConditions")), 1)
|
|
183
182
|
])
|
|
184
183
|
]),
|
|
185
184
|
_: 1
|
|
186
185
|
}),
|
|
187
|
-
o(
|
|
186
|
+
o(Te, {
|
|
188
187
|
modelValue: m.value,
|
|
189
|
-
"onUpdate:modelValue":
|
|
188
|
+
"onUpdate:modelValue": c[1] || (c[1] = (h) => m.value = h),
|
|
190
189
|
description: l.content
|
|
191
190
|
}, null, 8, ["modelValue", "description"])
|
|
192
191
|
]));
|
|
193
192
|
}
|
|
194
|
-
}), Ke = /* @__PURE__ */ z(We, [["__scopeId", "data-v-f587c956"]]), Ze = /* @__PURE__ */
|
|
193
|
+
}), Ke = /* @__PURE__ */ z(We, [["__scopeId", "data-v-f587c956"]]), Ze = /* @__PURE__ */ T({
|
|
195
194
|
__name: "GiftCard",
|
|
196
195
|
setup(d) {
|
|
197
196
|
const { t: n } = B(), m = x();
|
|
198
|
-
return (l,
|
|
197
|
+
return (l, c) => (s(), w(Ke, {
|
|
199
198
|
content: e(m).termsOfService,
|
|
200
199
|
"button-label": e(n)("giftCard.orderGiftCard")
|
|
201
200
|
}, null, 8, ["content", "button-label"]));
|
|
202
201
|
}
|
|
203
|
-
}), Ye = (d) => (de("data-v-06df89c3"), d = d(),
|
|
202
|
+
}), Ye = (d) => (de("data-v-06df89c3"), d = d(), ue(), 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 = {
|
|
204
203
|
key: 0,
|
|
205
204
|
id: "konnectio-select-place-type"
|
|
206
205
|
}, nt = {
|
|
@@ -208,13 +207,13 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
208
207
|
}, it = { id: "konnectio-select-place-type-input" }, st = ["innerHTML"], rt = {
|
|
209
208
|
key: 0,
|
|
210
209
|
id: "konnectio-gift-card-order"
|
|
211
|
-
}, dt = { class: "konnectio-panel" },
|
|
210
|
+
}, dt = { class: "konnectio-panel" }, ut = {
|
|
212
211
|
key: 1,
|
|
213
212
|
id: "konnectio-gift-card-remarks"
|
|
214
|
-
},
|
|
213
|
+
}, ct = {
|
|
215
214
|
key: 2,
|
|
216
215
|
id: "konnectio-gift-card-order-minimal"
|
|
217
|
-
}, pt = /* @__PURE__ */ Ye(() => /* @__PURE__ */ t("div", { class: "konnectio-divider" }, null, -1)), mt = { id: "konnectio-gift-card-recaptcha" }, ft = /* @__PURE__ */
|
|
216
|
+
}, pt = /* @__PURE__ */ Ye(() => /* @__PURE__ */ t("div", { class: "konnectio-divider" }, null, -1)), mt = { id: "konnectio-gift-card-recaptcha" }, ft = /* @__PURE__ */ T({
|
|
218
217
|
name: "GiftCardLayout",
|
|
219
218
|
__name: "GiftCard",
|
|
220
219
|
props: {
|
|
@@ -228,15 +227,15 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
228
227
|
panelMaxWidth: "800px",
|
|
229
228
|
...n.styling
|
|
230
229
|
})), { t: l } = B(), {
|
|
231
|
-
name:
|
|
230
|
+
name: c,
|
|
232
231
|
email: h,
|
|
233
232
|
phone: p,
|
|
234
233
|
value: _,
|
|
235
|
-
remark:
|
|
234
|
+
remark: u,
|
|
236
235
|
showValue: y,
|
|
237
236
|
quantity: b,
|
|
238
237
|
media: j,
|
|
239
|
-
placeId:
|
|
238
|
+
placeId: F,
|
|
240
239
|
placeType: a,
|
|
241
240
|
showFormPage: f,
|
|
242
241
|
showPaymentPage: V,
|
|
@@ -245,22 +244,22 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
245
244
|
hasFilledForm: U,
|
|
246
245
|
hasForcedPlaceType: D,
|
|
247
246
|
isWaitingForResponse: E
|
|
248
|
-
} = 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(ye());
|
|
249
248
|
return oe(a, () => {
|
|
250
|
-
|
|
249
|
+
F.value = void 0;
|
|
251
250
|
}), ne(() => {
|
|
252
251
|
const P = n.placeType ? parseInt(n.placeType) : void 0;
|
|
253
252
|
J(P);
|
|
254
|
-
}), (P, r) => (s(), w(
|
|
255
|
-
default:
|
|
253
|
+
}), (P, r) => (s(), w(we, { styling: m.value }, {
|
|
254
|
+
default: $(() => [
|
|
256
255
|
(s(), w(ie, null, {
|
|
257
|
-
default:
|
|
258
|
-
o(
|
|
256
|
+
default: $(() => [
|
|
257
|
+
o(Fe, {
|
|
259
258
|
"access-token": P.accessToken,
|
|
260
259
|
"data-layout": P.layout,
|
|
261
260
|
callback: e(Q)
|
|
262
261
|
}, {
|
|
263
|
-
default:
|
|
262
|
+
default: $(() => [
|
|
264
263
|
e(te) ? (s(), w(Se, {
|
|
265
264
|
key: 1,
|
|
266
265
|
title: "Unable to render Gift card module",
|
|
@@ -272,15 +271,15 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
272
271
|
}, [
|
|
273
272
|
t("div", Qe, [
|
|
274
273
|
t("h2", Xe, [
|
|
275
|
-
t("span", null,
|
|
274
|
+
t("span", null, q(e(l)("giftCard.title")), 1)
|
|
276
275
|
]),
|
|
277
276
|
t("div", et, [
|
|
278
|
-
|
|
277
|
+
I(t("div", tt, [
|
|
279
278
|
o(Ee)
|
|
280
279
|
], 512), [
|
|
281
280
|
[L, e(V)]
|
|
282
281
|
]),
|
|
283
|
-
|
|
282
|
+
I(t("div", null, [
|
|
284
283
|
t("p", {
|
|
285
284
|
id: "konnectio-gift-card-description",
|
|
286
285
|
innerHTML: e(l)("giftCard.description")
|
|
@@ -289,7 +288,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
289
288
|
e(D) ? g("", !0) : (s(), v("div", at, [
|
|
290
289
|
e(C) ? (s(), v("div", ot, [
|
|
291
290
|
t("label", nt, [
|
|
292
|
-
t("span", null,
|
|
291
|
+
t("span", null, q(e(l)("giftCard.selectType")), 1)
|
|
293
292
|
]),
|
|
294
293
|
t("div", it, [
|
|
295
294
|
t("ul", null, [
|
|
@@ -304,10 +303,10 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
304
303
|
}, null, 8, ["modelValue", "val", "label"])
|
|
305
304
|
]))), 128))
|
|
306
305
|
]),
|
|
307
|
-
e(C)[e(a)] && e(C)[e(a)].data.length > 1 ? (s(), w(
|
|
306
|
+
e(C)[e(a)] && e(C)[e(a)].data.length > 1 ? (s(), w(ke, {
|
|
308
307
|
key: 0,
|
|
309
|
-
modelValue: e(
|
|
310
|
-
"onUpdate:modelValue": r[1] || (r[1] = (i) => k(
|
|
308
|
+
modelValue: e(F),
|
|
309
|
+
"onUpdate:modelValue": r[1] || (r[1] = (i) => k(F) ? F.value = i : null),
|
|
311
310
|
placeholder: e(l)("giftCard.selectPlacePlaceholder"),
|
|
312
311
|
options: e(C)[e(a)].data,
|
|
313
312
|
labelKey: "name",
|
|
@@ -315,11 +314,11 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
315
314
|
required: ""
|
|
316
315
|
}, null, 8, ["modelValue", "placeholder", "options"])) : g("", !0)
|
|
317
316
|
])
|
|
318
|
-
])) : (s(), w(
|
|
317
|
+
])) : (s(), w(Ce, { key: 1 }))
|
|
319
318
|
])),
|
|
320
|
-
o(
|
|
321
|
-
modelValue: e(
|
|
322
|
-
"onUpdate:modelValue": r[2] || (r[2] = (i) => k(
|
|
319
|
+
o(M, {
|
|
320
|
+
modelValue: e(c),
|
|
321
|
+
"onUpdate:modelValue": r[2] || (r[2] = (i) => k(c) ? c.value = i : null),
|
|
323
322
|
type: "text",
|
|
324
323
|
name: "name",
|
|
325
324
|
autocomplete: "name",
|
|
@@ -328,7 +327,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
328
327
|
placeholder: e(l)("giftCard.namePlaceholder"),
|
|
329
328
|
required: ""
|
|
330
329
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
331
|
-
o(
|
|
330
|
+
o(M, {
|
|
332
331
|
modelValue: e(h),
|
|
333
332
|
"onUpdate:modelValue": r[3] || (r[3] = (i) => k(h) ? h.value = i : null),
|
|
334
333
|
type: "email",
|
|
@@ -347,7 +346,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
347
346
|
placeholder: e(l)("giftCard.phonePlaceholder"),
|
|
348
347
|
required: ""
|
|
349
348
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
350
|
-
o(
|
|
349
|
+
o(M, {
|
|
351
350
|
modelValue: e(_),
|
|
352
351
|
"onUpdate:modelValue": r[5] || (r[5] = (i) => k(_) ? _.value = i : null),
|
|
353
352
|
type: "number",
|
|
@@ -360,7 +359,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
360
359
|
}, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
|
|
361
360
|
g("", !0),
|
|
362
361
|
g("", !0),
|
|
363
|
-
o(
|
|
362
|
+
o(Ve, {
|
|
364
363
|
modelValue: e(b),
|
|
365
364
|
"onUpdate:modelValue": r[8] || (r[8] = (i) => k(b) ? b.value = i : null),
|
|
366
365
|
label: e(l)("giftCard.quantity"),
|
|
@@ -371,7 +370,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
371
370
|
], 512), [
|
|
372
371
|
[L, e(f)]
|
|
373
372
|
]),
|
|
374
|
-
|
|
373
|
+
I(t("div", null, [
|
|
375
374
|
t("div", {
|
|
376
375
|
innerHTML: e(l)("giftCard.thankYou")
|
|
377
376
|
}, null, 8, st)
|
|
@@ -391,10 +390,10 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
391
390
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
|
|
392
391
|
])
|
|
393
392
|
])) : g("", !0),
|
|
394
|
-
e(f) ? (s(), v("div",
|
|
395
|
-
o(
|
|
396
|
-
modelValue: e(
|
|
397
|
-
"onUpdate:modelValue": r[10] || (r[10] = (i) => k(
|
|
393
|
+
e(f) ? (s(), v("div", ut, [
|
|
394
|
+
o(M, {
|
|
395
|
+
modelValue: e(u),
|
|
396
|
+
"onUpdate:modelValue": r[10] || (r[10] = (i) => k(u) ? u.value = i : null),
|
|
398
397
|
type: "textarea",
|
|
399
398
|
name: "remark",
|
|
400
399
|
label: e(l)("giftCard.remark"),
|
|
@@ -402,7 +401,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
402
401
|
placeholder: e(l)("giftCard.remarkPlaceholder")
|
|
403
402
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
404
403
|
])) : g("", !0),
|
|
405
|
-
e(f) ? (s(), v("div",
|
|
404
|
+
e(f) ? (s(), v("div", ct, [
|
|
406
405
|
o(S, {
|
|
407
406
|
label: e(l)("giftCard.orderGiftCard"),
|
|
408
407
|
"full-width": !0,
|
|
@@ -416,7 +415,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
416
415
|
pt,
|
|
417
416
|
o(Ze)
|
|
418
417
|
]),
|
|
419
|
-
|
|
418
|
+
I(t("div", mt, [
|
|
420
419
|
o(Ae)
|
|
421
420
|
], 512), [
|
|
422
421
|
[L, e(X)]
|
|
@@ -428,7 +427,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
428
427
|
_: 1
|
|
429
428
|
}, 8, ["access-token", "data-layout", "callback"])
|
|
430
429
|
]),
|
|
431
|
-
fallback:
|
|
430
|
+
fallback: $(() => [
|
|
432
431
|
o(Ne)
|
|
433
432
|
]),
|
|
434
433
|
_: 1
|
|
@@ -437,7 +436,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
|
|
|
437
436
|
_: 1
|
|
438
437
|
}, 8, ["styling"]));
|
|
439
438
|
}
|
|
440
|
-
}),
|
|
439
|
+
}), G = /* @__PURE__ */ z(ft, [["__scopeId", "data-v-06df89c3"]]), bt = me(), vt = be();
|
|
441
440
|
class ht extends HTMLElement {
|
|
442
441
|
vueApp;
|
|
443
442
|
constructor() {
|
|
@@ -447,20 +446,20 @@ class ht extends HTMLElement {
|
|
|
447
446
|
this.vueApp.unmount();
|
|
448
447
|
}
|
|
449
448
|
connectedCallback() {
|
|
450
|
-
const n = typeof
|
|
449
|
+
const n = typeof G == "function" ? G.options : G;
|
|
451
450
|
let m = Array.isArray(n.props) ? n.props : Object.keys(n.props || {});
|
|
452
|
-
const l = (
|
|
451
|
+
const l = (u) => u.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (y, b) => (b ? "-" : "") + y.toLowerCase()), c = (u) => u.replace(/-./g, (y) => y[1].toUpperCase()), h = {};
|
|
453
452
|
m = m.map(l);
|
|
454
453
|
const p = {};
|
|
455
|
-
for (const
|
|
456
|
-
const b =
|
|
457
|
-
b.length > 1 && (p[b[0]] || (p[b[0]] = {}), p[b[0]][
|
|
454
|
+
for (const u of this.attributes) {
|
|
455
|
+
const b = u.name.split(".");
|
|
456
|
+
b.length > 1 && (p[b[0]] || (p[b[0]] = {}), p[b[0]][c(b[1])] = u.value);
|
|
458
457
|
}
|
|
459
|
-
for (const
|
|
460
|
-
let y = this.attributes.getNamedItem(
|
|
461
|
-
p.hasOwnProperty(
|
|
458
|
+
for (const u of m) {
|
|
459
|
+
let y = this.attributes.getNamedItem(u)?.value;
|
|
460
|
+
p.hasOwnProperty(u) && (y = p[u]), h[u] = y;
|
|
462
461
|
}
|
|
463
|
-
this.vueApp =
|
|
462
|
+
this.vueApp = ce(G, h), ve(this.vueApp), this.vueApp.provide("emitter", vt), this.vueApp.use(bt), this.vueApp.use(fe), this.vueApp.use($e, { bootstrap: !0 });
|
|
464
463
|
const _ = document.createElement("div");
|
|
465
464
|
this.vueApp.mount(_), this.appendChild(_.children[0]);
|
|
466
465
|
}
|
package/dist/gift-card.js.br
CHANGED
|
Binary file
|