@konnectio/core 4.0.56-rc36 → 4.0.56-rc38
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-Ct6NhfWq.js → ActionField-DpIf4ghX.js} +2 -2
- package/dist/ActionField-DpIf4ghX.js.br +0 -0
- package/dist/{AvailabilitySkeleton-DOhrMVl4.js → AvailabilitySkeleton-BaxN1_Lw.js} +4 -4
- package/dist/AvailabilitySkeleton-BaxN1_Lw.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-0yAgK-cr.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-BMbBmC3T.js} +2658 -2656
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-BMbBmC3T.js.br +0 -0
- package/dist/{CheckoutWindow-BVIOQbbL.js → CheckoutWindow-DavJkEee.js} +2 -2
- package/dist/CheckoutWindow-DavJkEee.js.br +0 -0
- package/dist/{ErrorMessage-DTSuSB8R.js → ErrorMessage-DLeTIy6d.js} +2 -2
- package/dist/ErrorMessage-DLeTIy6d.js.br +0 -0
- package/dist/{EventAvailabilityForm-DVcDsdr8.js → EventAvailabilityForm-B9-RuFO9.js} +26 -26
- package/dist/EventAvailabilityForm-B9-RuFO9.js.br +0 -0
- package/dist/{Field-IsLH1tNU.js → Field-5fXecW-6.js} +2 -2
- package/dist/Field-5fXecW-6.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BKo1p702.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DBXlWKTZ.js} +23 -23
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DBXlWKTZ.js.br +0 -0
- package/dist/{TermsOfService-BORqI07-.js → TermsOfService-CsQwuk20.js} +3 -3
- package/dist/TermsOfService-CsQwuk20.js.br +0 -0
- package/dist/availability.js +4 -4
- package/dist/availability.js.br +0 -0
- package/dist/event.js +121 -121
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +20 -20
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +39 -39
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.js +180 -180
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-gY-oSFpV.js → masonry.plugin-CkPuevAg.js} +24 -24
- package/dist/masonry.plugin-CkPuevAg.js.br +0 -0
- package/dist/navigation.js +4 -4
- package/dist/polyfill.js +117 -99
- package/dist/polyfill.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-Ct6NhfWq.js.br +0 -0
- package/dist/AvailabilitySkeleton-DOhrMVl4.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-0yAgK-cr.js.br +0 -0
- package/dist/CheckoutWindow-BVIOQbbL.js.br +0 -0
- package/dist/ErrorMessage-DTSuSB8R.js.br +0 -0
- package/dist/EventAvailabilityForm-DVcDsdr8.js.br +0 -0
- package/dist/Field-IsLH1tNU.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BKo1p702.js.br +0 -0
- package/dist/TermsOfService-BORqI07-.js.br +0 -0
- package/dist/masonry.plugin-gY-oSFpV.js.br +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { d as L, o as f, c as A, f as t, e as o, g as X, a as _, w as y, S as M, u as e, t as u, s as w, b as B, i as P, k as T } from "./_commonjsHelpers-UWZO_9XV.js";
|
|
2
|
-
import { E as k, _ as S, u as $, s as x, l as E, o as N, A as C, B as U, D as O, e as z, f as F, g as H, h as j, i as R, m as Z } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-
|
|
3
|
-
import { A as W } from "./ActionField-
|
|
4
|
-
import { F as I } from "./Field-
|
|
5
|
-
import { E as q } from "./ErrorMessage-
|
|
2
|
+
import { E as k, _ as S, u as $, s as x, l as E, o as N, A as C, B as U, D as O, e as z, f as F, g as H, h as j, i as R, m as Z } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DBXlWKTZ.js";
|
|
3
|
+
import { A as W } from "./ActionField-DpIf4ghX.js";
|
|
4
|
+
import { F as I } from "./Field-5fXecW-6.js";
|
|
5
|
+
import { E as q } from "./ErrorMessage-DLeTIy6d.js";
|
|
6
6
|
import "./navigation.js";
|
|
7
7
|
(function() {
|
|
8
8
|
try {
|
|
9
9
|
var r = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, s = new Error().stack;
|
|
10
|
-
s && (r._sentryDebugIds = r._sentryDebugIds || {}, r._sentryDebugIds[s] = "
|
|
10
|
+
s && (r._sentryDebugIds = r._sentryDebugIds || {}, r._sentryDebugIds[s] = "64c17c6f-6cdf-4b95-91e9-558446ade55e", r._sentryDebugIdIdentifier = "sentry-dbid-64c17c6f-6cdf-4b95-91e9-558446ade55e");
|
|
11
11
|
} catch {
|
|
12
12
|
}
|
|
13
13
|
})();
|
|
@@ -31,7 +31,7 @@ const J = { class: "gift-card-validation-skeleton" }, K = { class: "gift-card-va
|
|
|
31
31
|
}), et = /* @__PURE__ */ S(tt, [["__scopeId", "data-v-b1601b74"]]), at = ["innerHTML"], nt = {
|
|
32
32
|
key: 0,
|
|
33
33
|
id: "konnectio-gift-card-validation-resume",
|
|
34
|
-
class: "
|
|
34
|
+
class: "konnectio-panel"
|
|
35
35
|
}, ot = /* @__PURE__ */ L({
|
|
36
36
|
name: "GiftCardValidationLayout",
|
|
37
37
|
__name: "GiftCardValidation",
|
|
@@ -45,9 +45,9 @@ const J = { class: "gift-card-validation-skeleton" }, K = { class: "gift-card-va
|
|
|
45
45
|
...s.styling
|
|
46
46
|
})), { t: i } = $(), {
|
|
47
47
|
voucher: m,
|
|
48
|
-
isValid:
|
|
48
|
+
isValid: h,
|
|
49
49
|
amount: p,
|
|
50
|
-
expirationDate:
|
|
50
|
+
expirationDate: b,
|
|
51
51
|
productName: a,
|
|
52
52
|
isLoading: n
|
|
53
53
|
} = x(E()), { currency: l, hasError: D } = x(N()), { apply: V } = E();
|
|
@@ -67,7 +67,7 @@ const J = { class: "gift-card-validation-skeleton" }, K = { class: "gift-card-va
|
|
|
67
67
|
})) : (f(), A("form", {
|
|
68
68
|
key: 0,
|
|
69
69
|
id: "konnectio-gift-card-validation-module",
|
|
70
|
-
onSubmit: d[3] || (d[3] = P((
|
|
70
|
+
onSubmit: d[3] || (d[3] = P((g) => e(V)(), ["prevent"]))
|
|
71
71
|
}, [
|
|
72
72
|
t("h4", null, [
|
|
73
73
|
t("span", null, u(e(i)("giftCardValidation.title")), 1)
|
|
@@ -77,16 +77,16 @@ const J = { class: "gift-card-validation-skeleton" }, K = { class: "gift-card-va
|
|
|
77
77
|
}, null, 8, at),
|
|
78
78
|
o(W, {
|
|
79
79
|
modelValue: e(m),
|
|
80
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
80
|
+
"onUpdate:modelValue": d[0] || (d[0] = (g) => w(m) ? m.value = g : null),
|
|
81
81
|
icon: "gift-card",
|
|
82
82
|
label: e(i)("booking.reservation.giftCardCode"),
|
|
83
83
|
buttonLabel: e(i)("giftCardValidation.submitButton"),
|
|
84
84
|
placeholder: "XXXXXXXX",
|
|
85
85
|
"is-loading": e(n),
|
|
86
|
-
"onUpdate:isLoading": d[1] || (d[1] = (
|
|
87
|
-
onAction: d[2] || (d[2] = (
|
|
86
|
+
"onUpdate:isLoading": d[1] || (d[1] = (g) => w(n) ? n.value = g : null),
|
|
87
|
+
onAction: d[2] || (d[2] = (g) => e(V)())
|
|
88
88
|
}, null, 8, ["modelValue", "label", "buttonLabel", "is-loading"]),
|
|
89
|
-
!e(n) && e(
|
|
89
|
+
!e(n) && e(h) ? (f(), A("table", nt, [
|
|
90
90
|
t("thead", null, [
|
|
91
91
|
t("tr", null, [
|
|
92
92
|
t("th", null, [
|
|
@@ -124,7 +124,7 @@ const J = { class: "gift-card-validation-skeleton" }, K = { class: "gift-card-va
|
|
|
124
124
|
t("span", null, u(e(U)(e(p), e(l))), 1)
|
|
125
125
|
]),
|
|
126
126
|
t("td", null, [
|
|
127
|
-
t("span", null, u(e(O)(e(
|
|
127
|
+
t("span", null, u(e(O)(e(b))), 1)
|
|
128
128
|
])
|
|
129
129
|
])
|
|
130
130
|
])
|
|
@@ -143,7 +143,7 @@ const J = { class: "gift-card-validation-skeleton" }, K = { class: "gift-card-va
|
|
|
143
143
|
_: 1
|
|
144
144
|
}, 8, ["styling"]));
|
|
145
145
|
}
|
|
146
|
-
}), v = /* @__PURE__ */ S(ot, [["__scopeId", "data-v-
|
|
146
|
+
}), v = /* @__PURE__ */ S(ot, [["__scopeId", "data-v-f43fe5ec"]]), st = H(), it = Z();
|
|
147
147
|
class lt extends HTMLElement {
|
|
148
148
|
vueApp;
|
|
149
149
|
constructor() {
|
|
@@ -155,7 +155,7 @@ class lt extends HTMLElement {
|
|
|
155
155
|
connectedCallback() {
|
|
156
156
|
const s = typeof v == "function" ? v.options : v;
|
|
157
157
|
let c = Array.isArray(s.props) ? s.props : Object.keys(s.props || {});
|
|
158
|
-
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()),
|
|
158
|
+
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 = {};
|
|
159
159
|
c = c.map(i);
|
|
160
160
|
const p = {};
|
|
161
161
|
for (const a of this.attributes) {
|
|
@@ -164,11 +164,11 @@ class lt extends HTMLElement {
|
|
|
164
164
|
}
|
|
165
165
|
for (const a of c) {
|
|
166
166
|
let n = this.attributes.getNamedItem(a)?.value;
|
|
167
|
-
p.hasOwnProperty(a) && (n = p[a]),
|
|
167
|
+
p.hasOwnProperty(a) && (n = p[a]), h[a] = n;
|
|
168
168
|
}
|
|
169
|
-
this.vueApp = T(v,
|
|
170
|
-
const
|
|
171
|
-
this.vueApp.mount(
|
|
169
|
+
this.vueApp = T(v, h), j(this.vueApp), this.vueApp.provide("emitter", it), this.vueApp.use(st), this.vueApp.use(R);
|
|
170
|
+
const b = document.createElement("div");
|
|
171
|
+
this.vueApp.mount(b), this.appendChild(b.children[0]);
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
window.customElements.define("konnectio-gift-card-validation", lt);
|
|
Binary file
|
package/dist/gift-card.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { r as V, g as k, d as O, o as u, a as G, w as R, f as l, c as y, e as o, u as e, b as F, n as ue, t as Y, i as ce, q as pe, h as me, S as fe, v as H, x as K, F as ve, y as ge, s as S, p as
|
|
2
|
-
import { j as ke, k as _e, s as le, o as oe, G as T, q as ae, x as re, S as te, v as Ce, w as Ve, F as we, u as Q, n as Fe, C as z, I as Se, E as Pe, _ as ie, H as Te, a as $e, L as Ee, T as Z, b as Ie, e as Ue, f as Ae, g as Le, h as Ge, i as Re, J as qe, m as Me } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-
|
|
1
|
+
import { r as V, g as k, d as O, o as u, a as G, w as R, f as l, c as y, e as o, u as e, b as F, n as ue, t as Y, i as ce, q as pe, h as me, S as fe, v as H, x as K, F as ve, y as ge, s as S, p as he, j as be, k as ye } from "./_commonjsHelpers-UWZO_9XV.js";
|
|
2
|
+
import { j as ke, k as _e, s as le, o as oe, G as T, q as ae, x as re, S as te, v as Ce, w as Ve, F as we, u as Q, n as Fe, C as z, I as Se, E as Pe, _ as ie, H as Te, a as $e, L as Ee, T as Z, b as Ie, e as Ue, f as Ae, g as Le, h as Ge, i as Re, J as qe, m as Me } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DBXlWKTZ.js";
|
|
3
3
|
import "./navigation.js";
|
|
4
|
-
import { C as De, a as xe, P as Be, _ as ze } from "./CheckoutWindow-
|
|
5
|
-
import { F as B } from "./Field-
|
|
6
|
-
import { E as Oe } from "./ErrorMessage-
|
|
7
|
-
import { S as je } from "./TermsOfService-
|
|
4
|
+
import { C as De, a as xe, P as Be, _ as ze } from "./CheckoutWindow-DavJkEee.js";
|
|
5
|
+
import { F as B } from "./Field-5fXecW-6.js";
|
|
6
|
+
import { E as Oe } from "./ErrorMessage-DLeTIy6d.js";
|
|
7
|
+
import { S as je } from "./TermsOfService-CsQwuk20.js";
|
|
8
8
|
(function() {
|
|
9
9
|
try {
|
|
10
10
|
var c = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, n = new Error().stack;
|
|
11
|
-
n && (c._sentryDebugIds = c._sentryDebugIds || {}, c._sentryDebugIds[n] = "
|
|
11
|
+
n && (c._sentryDebugIds = c._sentryDebugIds || {}, c._sentryDebugIds[n] = "54f6af08-4bb7-4026-a8ef-30e1fd8dcaed", c._sentryDebugIdIdentifier = "sentry-dbid-54f6af08-4bb7-4026-a8ef-30e1fd8dcaed");
|
|
12
12
|
} catch {
|
|
13
13
|
}
|
|
14
14
|
})();
|
|
15
15
|
const ne = ke("giftCard", () => {
|
|
16
|
-
const { pay: c } = _e(), { bearerToken: n, metaData: v, currencyId: t } = le(oe()), m = oe(), d = V(T.InitialState), p = ae("konnectio_name", "", void 0, { serializer: te.string }),
|
|
16
|
+
const { pay: c } = _e(), { bearerToken: n, metaData: v, currencyId: t } = le(oe()), m = oe(), d = V(T.InitialState), p = ae("konnectio_name", "", void 0, { serializer: te.string }), h = ae("konnectio_email", "", void 0, { serializer: te.string }), s = ae("konnectio_phone", "", void 0, { serializer: te.string }), b = V(""), g = V(1), M = V(!0), P = V(""), a = V({
|
|
17
17
|
base64: "",
|
|
18
18
|
type: "",
|
|
19
19
|
name: ""
|
|
@@ -44,19 +44,19 @@ const ne = ke("giftCard", () => {
|
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
return C;
|
|
47
|
-
}), A = k(() => !(!p.value || !
|
|
47
|
+
}), A = k(() => !(!p.value || !h.value || !(s.value.length >= 5) || !b.value || U.value === void 0)), r = k(() => !(d.value === T.InitialState && $.value)), i = k(() => !!(d.value === T.WaitingForResponse && $.value));
|
|
48
48
|
async function W() {
|
|
49
49
|
d.value = T.WaitingForResponse, $.value = !0, await Ce.post("https://production.hotel-service.konnectio.dk/api/gift-card/create", {
|
|
50
50
|
termsOfserviceURL: window.location.origin,
|
|
51
51
|
checkoutUrl: window.location.origin,
|
|
52
52
|
currencyID: t.value,
|
|
53
53
|
language: Ve(),
|
|
54
|
-
amount:
|
|
54
|
+
amount: b.value,
|
|
55
55
|
quantity: g.value,
|
|
56
56
|
freeText: P.value,
|
|
57
57
|
showPrice: M.value,
|
|
58
58
|
contactName: p.value,
|
|
59
|
-
contactEmail:
|
|
59
|
+
contactEmail: h.value,
|
|
60
60
|
contactPhone: s.value,
|
|
61
61
|
imageBase64: we(a.value.base64),
|
|
62
62
|
imageName: a.value.name,
|
|
@@ -67,7 +67,7 @@ const ne = ke("giftCard", () => {
|
|
|
67
67
|
headers: {
|
|
68
68
|
Authorization: n.value,
|
|
69
69
|
Accept: "application/json",
|
|
70
|
-
"Fresh-Booking-Ver": "4.0.56-
|
|
70
|
+
"Fresh-Booking-Ver": "4.0.56-rc38"
|
|
71
71
|
}
|
|
72
72
|
}).then((C) => {
|
|
73
73
|
d.value = T.ReadyToPay, $.value = !1, c({
|
|
@@ -83,9 +83,9 @@ const ne = ke("giftCard", () => {
|
|
|
83
83
|
selectedPlace: U,
|
|
84
84
|
moduleState: d,
|
|
85
85
|
name: p,
|
|
86
|
-
email:
|
|
86
|
+
email: h,
|
|
87
87
|
phone: s,
|
|
88
|
-
value:
|
|
88
|
+
value: b,
|
|
89
89
|
remark: P,
|
|
90
90
|
showValue: M,
|
|
91
91
|
quantity: g,
|
|
@@ -115,11 +115,11 @@ const ne = ke("giftCard", () => {
|
|
|
115
115
|
},
|
|
116
116
|
emits: ["update:modelValue"],
|
|
117
117
|
setup(c, { emit: n }) {
|
|
118
|
-
const v = n, t = c, { t: m } = Q(), { display: d } = Fe(), p = V(),
|
|
118
|
+
const v = n, t = c, { t: m } = Q(), { display: d } = Fe(), p = V(), h = k(() => t.modelValue.base64 !== "");
|
|
119
119
|
function s(a) {
|
|
120
120
|
v("update:modelValue", a);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function b() {
|
|
123
123
|
s({
|
|
124
124
|
base64: "",
|
|
125
125
|
name: "",
|
|
@@ -164,7 +164,7 @@ const ne = ke("giftCard", () => {
|
|
|
164
164
|
}, null, 40, We),
|
|
165
165
|
l("div", He, [
|
|
166
166
|
l("ul", Ke, [
|
|
167
|
-
|
|
167
|
+
h.value ? F("", !0) : (u(), y("li", Ze, [
|
|
168
168
|
o(z, {
|
|
169
169
|
label: e(m)("uploadFile"),
|
|
170
170
|
type: "button",
|
|
@@ -173,7 +173,7 @@ const ne = ke("giftCard", () => {
|
|
|
173
173
|
onClickEvent: f[1] || (f[1] = (w) => g())
|
|
174
174
|
}, null, 8, ["label", "icon-color"])
|
|
175
175
|
])),
|
|
176
|
-
|
|
176
|
+
h.value ? (u(), y("li", Je, [
|
|
177
177
|
o(z, {
|
|
178
178
|
label: e(m)("replaceFile"),
|
|
179
179
|
type: "button",
|
|
@@ -182,20 +182,20 @@ const ne = ke("giftCard", () => {
|
|
|
182
182
|
onClickEvent: f[2] || (f[2] = (w) => g())
|
|
183
183
|
}, null, 8, ["label", "icon-color"])
|
|
184
184
|
])) : F("", !0),
|
|
185
|
-
|
|
185
|
+
h.value ? (u(), y("li", Ye, [
|
|
186
186
|
o(z, {
|
|
187
187
|
label: e(m)("removeFile"),
|
|
188
188
|
type: "button",
|
|
189
189
|
icon: "trash-alt",
|
|
190
190
|
"icon-color": a.iconColor,
|
|
191
|
-
onClickEvent: f[3] || (f[3] = (w) =>
|
|
191
|
+
onClickEvent: f[3] || (f[3] = (w) => b())
|
|
192
192
|
}, null, 8, ["label", "icon-color"])
|
|
193
193
|
])) : F("", !0)
|
|
194
194
|
]),
|
|
195
195
|
l("div", {
|
|
196
196
|
class: ue([
|
|
197
197
|
"media-selector-previewer",
|
|
198
|
-
{ opened:
|
|
198
|
+
{ opened: h.value }
|
|
199
199
|
])
|
|
200
200
|
}, [
|
|
201
201
|
a.modelValue ? (u(), y("img", {
|
|
@@ -289,15 +289,15 @@ const ea = { class: "gift-card-skeleton" }, aa = { class: "gift-card-skeleton-fo
|
|
|
289
289
|
"button-label": e(n)("giftCard.orderGiftCard")
|
|
290
290
|
}, null, 8, ["content", "button-label"]));
|
|
291
291
|
}
|
|
292
|
-
}), ra = (c) => (
|
|
292
|
+
}), ra = (c) => (he("data-v-faae538e"), c = c(), be(), c), da = ["data-layout"], ua = { id: "konnectio-gift-card-wrapper" }, ca = { id: "konnectio-gift-card-title" }, pa = { id: "konnectio-gift-card-content" }, ma = { id: "konnectio-gift-card-payment" }, fa = ["innerHTML"], va = { key: 0 }, ga = {
|
|
293
293
|
key: 0,
|
|
294
|
-
id: "
|
|
295
|
-
},
|
|
296
|
-
class: /* @__PURE__ */ ue(["
|
|
297
|
-
},
|
|
294
|
+
id: "konnectio-select-place-type"
|
|
295
|
+
}, ha = {
|
|
296
|
+
class: /* @__PURE__ */ ue(["konnectio-label", "required"])
|
|
297
|
+
}, ba = { id: "konnectio-select-place-type-input" }, ya = ["innerHTML"], ka = {
|
|
298
298
|
key: 0,
|
|
299
299
|
id: "konnectio-gift-card-order"
|
|
300
|
-
}, _a = { class: "
|
|
300
|
+
}, _a = { class: "konnectio-panel" }, Ca = {
|
|
301
301
|
key: 1,
|
|
302
302
|
id: "konnectio-gift-card-remarks"
|
|
303
303
|
}, Va = {
|
|
@@ -320,9 +320,9 @@ const ea = { class: "gift-card-skeleton" }, aa = { class: "gift-card-skeleton-fo
|
|
|
320
320
|
name: m,
|
|
321
321
|
email: d,
|
|
322
322
|
phone: p,
|
|
323
|
-
value:
|
|
323
|
+
value: h,
|
|
324
324
|
remark: s,
|
|
325
|
-
showValue:
|
|
325
|
+
showValue: b,
|
|
326
326
|
quantity: g,
|
|
327
327
|
media: M,
|
|
328
328
|
placeId: P,
|
|
@@ -377,10 +377,10 @@ const ea = { class: "gift-card-skeleton" }, aa = { class: "gift-card-skeleton-fo
|
|
|
377
377
|
l("form", null, [
|
|
378
378
|
e(D) ? F("", !0) : (u(), y("div", va, [
|
|
379
379
|
e(_) ? (u(), y("div", ga, [
|
|
380
|
-
l("label",
|
|
380
|
+
l("label", ha, [
|
|
381
381
|
l("span", null, Y(e(t)("giftCard.selectType")), 1)
|
|
382
382
|
]),
|
|
383
|
-
l("div",
|
|
383
|
+
l("div", ba, [
|
|
384
384
|
l("ul", null, [
|
|
385
385
|
(u(!0), y(ve, null, ge(e(_), (i, W) => (u(), y("li", { key: W }, [
|
|
386
386
|
o(xe, {
|
|
@@ -437,8 +437,8 @@ const ea = { class: "gift-card-skeleton" }, aa = { class: "gift-card-skeleton-fo
|
|
|
437
437
|
required: ""
|
|
438
438
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
439
439
|
o(Z, {
|
|
440
|
-
modelValue: e(
|
|
441
|
-
"onUpdate:modelValue": r[5] || (r[5] = (i) => S(
|
|
440
|
+
modelValue: e(h),
|
|
441
|
+
"onUpdate:modelValue": r[5] || (r[5] = (i) => S(h) ? h.value = i : null),
|
|
442
442
|
type: "number",
|
|
443
443
|
name: "value",
|
|
444
444
|
label: e(t)("giftCard.value"),
|
|
@@ -526,7 +526,7 @@ const ea = { class: "gift-card-skeleton" }, aa = { class: "gift-card-skeleton-fo
|
|
|
526
526
|
_: 1
|
|
527
527
|
}, 8, ["styling"]));
|
|
528
528
|
}
|
|
529
|
-
}), J = /* @__PURE__ */ ie(Sa, [["__scopeId", "data-v-
|
|
529
|
+
}), J = /* @__PURE__ */ ie(Sa, [["__scopeId", "data-v-faae538e"]]), Pa = Le(), Ta = Me();
|
|
530
530
|
class $a extends HTMLElement {
|
|
531
531
|
vueApp;
|
|
532
532
|
constructor() {
|
|
@@ -538,7 +538,7 @@ class $a extends HTMLElement {
|
|
|
538
538
|
connectedCallback() {
|
|
539
539
|
const n = typeof J == "function" ? J.options : J;
|
|
540
540
|
let v = Array.isArray(n.props) ? n.props : Object.keys(n.props || {});
|
|
541
|
-
const t = (s) => s.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (
|
|
541
|
+
const t = (s) => s.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (b, g) => (g ? "-" : "") + b.toLowerCase()), m = (s) => s.replace(/-./g, (b) => b[1].toUpperCase()), d = {};
|
|
542
542
|
v = v.map(t);
|
|
543
543
|
const p = {};
|
|
544
544
|
for (const s of this.attributes) {
|
|
@@ -546,12 +546,12 @@ class $a extends HTMLElement {
|
|
|
546
546
|
g.length > 1 && (p[g[0]] || (p[g[0]] = {}), p[g[0]][m(g[1])] = s.value);
|
|
547
547
|
}
|
|
548
548
|
for (const s of v) {
|
|
549
|
-
let
|
|
550
|
-
p.hasOwnProperty(s) && (
|
|
549
|
+
let b = this.attributes.getNamedItem(s)?.value;
|
|
550
|
+
p.hasOwnProperty(s) && (b = p[s]), d[s] = b;
|
|
551
551
|
}
|
|
552
552
|
this.vueApp = ye(J, d), Ge(this.vueApp), this.vueApp.provide("emitter", Ta), this.vueApp.use(Pa), this.vueApp.use(Re), this.vueApp.use(qe, { bootstrap: !0 });
|
|
553
|
-
const
|
|
554
|
-
this.vueApp.mount(
|
|
553
|
+
const h = document.createElement("div");
|
|
554
|
+
this.vueApp.mount(h), this.appendChild(h.children[0]);
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
557
|
window.customElements.define("konnectio-gift-card", $a);
|
package/dist/gift-card.js.br
CHANGED
|
Binary file
|