@konnectio/core 4.0.56-rc34 → 4.0.56-rc35
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-BFxssAUy.js → ActionField-Bruv7ZZW.js} +1 -1
- package/dist/ActionField-Bruv7ZZW.js.br +0 -0
- package/dist/{AvailabilitySkeleton-eib112dI.js → AvailabilitySkeleton-DxVPZPw3.js} +3 -3
- package/dist/AvailabilitySkeleton-DxVPZPw3.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-k67k8bxv.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Z4h6wyqj.js} +1 -1
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Z4h6wyqj.js.br +0 -0
- package/dist/{CheckoutWindow-bfxMw5rH.js → CheckoutWindow-Dn3fiFuv.js} +1 -1
- package/dist/CheckoutWindow-Dn3fiFuv.js.br +0 -0
- package/dist/{ErrorMessage-C2hQu_fk.js → ErrorMessage-VK8egk99.js} +1 -1
- package/dist/ErrorMessage-VK8egk99.js.br +0 -0
- package/dist/{EventAvailabilityForm-BCnO0hic.js → EventAvailabilityForm-DbkL5luy.js} +2 -2
- package/dist/EventAvailabilityForm-DbkL5luy.js.br +0 -0
- package/dist/{Field-C9EFQ68f.js → Field-fZ3Q2e9-.js} +1 -1
- package/dist/Field-fZ3Q2e9-.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CBts3caI.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CJgfqs-l.js} +8 -8
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CJgfqs-l.js.br +0 -0
- package/dist/{TermsOfService-Daoe7BlB.js → TermsOfService-2g29W45E.js} +2 -2
- package/dist/availability.js +4 -4
- package/dist/availability.js.br +0 -0
- package/dist/event.js +223 -222
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +4 -4
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +59 -58
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.js +492 -531
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-CPNQhcHy.js → masonry.plugin-WFnnzw7L.js} +642 -602
- package/dist/masonry.plugin-WFnnzw7L.js.br +0 -0
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +5 -5
- package/dist/ActionField-BFxssAUy.js.br +0 -0
- package/dist/AvailabilitySkeleton-eib112dI.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-k67k8bxv.js.br +0 -0
- package/dist/CheckoutWindow-bfxMw5rH.js.br +0 -0
- package/dist/ErrorMessage-C2hQu_fk.js.br +0 -0
- package/dist/EventAvailabilityForm-BCnO0hic.js.br +0 -0
- package/dist/Field-C9EFQ68f.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CBts3caI.js.br +0 -0
- package/dist/masonry.plugin-CPNQhcHy.js.br +0 -0
package/dist/event.js.br
CHANGED
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as G, o as u, c as V, f as t, e as o, E as k, _ as S, i as B, u as N, K as x, L, N as P, a as y, w as v, S as T, g as e, t as d, a2 as w, a3 as C, a4 as $, a5 as D, b as I, q as U, v as O, x as z, A as F, B as H, D as j, G as R } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-
|
|
2
|
-
import { A as Z } from "./ActionField-
|
|
3
|
-
import { F as E } from "./Field-
|
|
4
|
-
import { E as q } from "./ErrorMessage-
|
|
1
|
+
import { d as G, o as u, c as V, f as t, e as o, E as k, _ as S, i as B, u as N, K as x, L, N as P, a as y, w as v, S as T, g as e, t as d, a2 as w, a3 as C, a4 as $, a5 as D, b as I, q as U, v as O, x as z, A as F, B as H, D as j, G as R } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CJgfqs-l.js";
|
|
2
|
+
import { A as Z } from "./ActionField-Bruv7ZZW.js";
|
|
3
|
+
import { F as E } from "./Field-fZ3Q2e9-.js";
|
|
4
|
+
import { E as q } from "./ErrorMessage-VK8egk99.js";
|
|
5
5
|
const K = { class: "gift-card-validation-skeleton" }, W = { class: "gift-card-validation-skeleton-form" }, J = { class: "gift-card-validation-skeleton-text" }, Q = { class: "gift-card-validation-skeleton-input" }, Y = /* @__PURE__ */ G({
|
|
6
6
|
__name: "GiftCardValidationSkeleton",
|
|
7
7
|
setup(_) {
|
|
Binary file
|
package/dist/gift-card.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { H as
|
|
2
|
-
import { C as qe, a as Be, P as xe, _ as ze } from "./CheckoutWindow-
|
|
3
|
-
import { F as z } from "./Field-
|
|
4
|
-
import { E as De } from "./ErrorMessage-
|
|
5
|
-
import { S as Oe } from "./TermsOfService-
|
|
6
|
-
const ne =
|
|
7
|
-
const { pay: g } = pe(), { bearerToken:
|
|
1
|
+
import { H as ce, J as pe, K as le, N as oe, m as V, a6 as T, P as ae, i as k, X as re, R as te, V as me, W as fe, a7 as ve, d as O, u as Y, M as ge, o as d, a as G, w as L, f as l, c as y, e as o, g as e, C as D, b as F, n as ue, I as he, E as be, _ as ie, t as X, q as ye, a8 as ke, a1 as _e, p as Ce, S as Ve, a9 as H, aa as K, F as we, ab as Fe, a2 as P, j as Pe, ac as Se, T as Z, k as Te, v as $e, x as Ee, y as Ue, z as Ae, A as Ie, B as Re, D as Ge, ad as Le, G as Me } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CJgfqs-l.js";
|
|
2
|
+
import { C as qe, a as Be, P as xe, _ as ze } from "./CheckoutWindow-Dn3fiFuv.js";
|
|
3
|
+
import { F as z } from "./Field-fZ3Q2e9-.js";
|
|
4
|
+
import { E as De } from "./ErrorMessage-VK8egk99.js";
|
|
5
|
+
import { S as Oe } from "./TermsOfService-2g29W45E.js";
|
|
6
|
+
const ne = ce("giftCard", () => {
|
|
7
|
+
const { pay: g } = pe(), { bearerToken: u, metaData: v, currencyId: t } = le(oe()), p = oe(), r = V(T.InitialState), c = ae("konnectio_name", "", void 0, { serializer: te.string }), h = ae("konnectio_email", "", void 0, { serializer: te.string }), i = ae("konnectio_phone", "", void 0, { serializer: te.string }), b = V(""), f = V(1), q = V(!0), S = V(""), a = V({
|
|
8
8
|
base64: "",
|
|
9
9
|
type: "",
|
|
10
10
|
name: ""
|
|
@@ -19,23 +19,23 @@ const ne = ue("giftCard", () => {
|
|
|
19
19
|
data: []
|
|
20
20
|
}
|
|
21
21
|
}, M = v.value.hotels[0].places;
|
|
22
|
-
return M && M.forEach((
|
|
23
|
-
C[
|
|
22
|
+
return M && M.forEach((R) => {
|
|
23
|
+
C[R.placeType].data.push(R);
|
|
24
24
|
}), Object.fromEntries(
|
|
25
|
-
Object.entries(C).filter(([,
|
|
25
|
+
Object.entries(C).filter(([, R]) => R.data.length > 0)
|
|
26
26
|
);
|
|
27
27
|
}), W = k(() => _.value !== 0), A = k(() => {
|
|
28
28
|
let C;
|
|
29
29
|
if (W.value)
|
|
30
30
|
C = x.value[_.value].data[0];
|
|
31
31
|
else if (w.value !== 0) {
|
|
32
|
-
const M = m.value,
|
|
33
|
-
|
|
32
|
+
const M = m.value, R = x.value[w.value].data;
|
|
33
|
+
R.length === 1 ? C = R[0] : M !== void 0 && R.forEach((se) => {
|
|
34
34
|
String(se.id) === String(M) && (C = se);
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
return C;
|
|
38
|
-
}),
|
|
38
|
+
}), I = k(() => !(!c.value || !h.value || !(i.value.length >= 5) || !b.value || A.value === void 0)), s = k(() => !(r.value === T.InitialState && $.value)), n = k(() => !!(r.value === T.WaitingForResponse && $.value));
|
|
39
39
|
async function j() {
|
|
40
40
|
r.value = T.WaitingForResponse, $.value = !0, await me.post("https://production.hotel-service.konnectio.dk/api/gift-card/create", {
|
|
41
41
|
termsOfserviceURL: window.location.origin,
|
|
@@ -46,7 +46,7 @@ const ne = ue("giftCard", () => {
|
|
|
46
46
|
quantity: f.value,
|
|
47
47
|
freeText: S.value,
|
|
48
48
|
showPrice: q.value,
|
|
49
|
-
contactName:
|
|
49
|
+
contactName: c.value,
|
|
50
50
|
contactEmail: h.value,
|
|
51
51
|
contactPhone: i.value,
|
|
52
52
|
imageBase64: ve(a.value.base64),
|
|
@@ -56,9 +56,9 @@ const ne = ue("giftCard", () => {
|
|
|
56
56
|
placeID: A.value ? A.value.id : void 0
|
|
57
57
|
}, {
|
|
58
58
|
headers: {
|
|
59
|
-
Authorization:
|
|
59
|
+
Authorization: u.value,
|
|
60
60
|
Accept: "application/json",
|
|
61
|
-
"Fresh-Booking-Ver": "4.0.56-
|
|
61
|
+
"Fresh-Booking-Ver": "4.0.56-rc35"
|
|
62
62
|
}
|
|
63
63
|
}).then((C) => {
|
|
64
64
|
r.value = T.ReadyToPay, $.value = !1, g({
|
|
@@ -73,7 +73,7 @@ const ne = ue("giftCard", () => {
|
|
|
73
73
|
return {
|
|
74
74
|
selectedPlace: A,
|
|
75
75
|
moduleState: r,
|
|
76
|
-
name:
|
|
76
|
+
name: c,
|
|
77
77
|
email: h,
|
|
78
78
|
phone: i,
|
|
79
79
|
value: b,
|
|
@@ -87,7 +87,7 @@ const ne = ue("giftCard", () => {
|
|
|
87
87
|
showPaymentPage: Q,
|
|
88
88
|
showConfirmationPage: N,
|
|
89
89
|
places: x,
|
|
90
|
-
hasFilledForm:
|
|
90
|
+
hasFilledForm: I,
|
|
91
91
|
hasForcedPlaceType: W,
|
|
92
92
|
isWaitingForResponse: n,
|
|
93
93
|
isMetaDataAvailable: s,
|
|
@@ -105,8 +105,8 @@ const ne = ue("giftCard", () => {
|
|
|
105
105
|
required: { type: Boolean, default: !1 }
|
|
106
106
|
},
|
|
107
107
|
emits: ["update:modelValue"],
|
|
108
|
-
setup(g, { emit:
|
|
109
|
-
const v =
|
|
108
|
+
setup(g, { emit: u }) {
|
|
109
|
+
const v = u, t = g, { t: p } = Y(), { display: r } = ge(), c = V(), h = k(() => t.modelValue.base64 !== "");
|
|
110
110
|
function i(a) {
|
|
111
111
|
v("update:modelValue", a);
|
|
112
112
|
}
|
|
@@ -115,10 +115,10 @@ const ne = ue("giftCard", () => {
|
|
|
115
115
|
base64: "",
|
|
116
116
|
name: "",
|
|
117
117
|
type: ""
|
|
118
|
-
}),
|
|
118
|
+
}), c.value && (c.value.value = "");
|
|
119
119
|
}
|
|
120
120
|
function f() {
|
|
121
|
-
|
|
121
|
+
c.value && c.value.click();
|
|
122
122
|
}
|
|
123
123
|
function q(a, m) {
|
|
124
124
|
const [w, $] = [a.name, a.type], _ = new FileReader();
|
|
@@ -135,7 +135,7 @@ const ne = ue("giftCard", () => {
|
|
|
135
135
|
}
|
|
136
136
|
async function S() {
|
|
137
137
|
let a;
|
|
138
|
-
(a =
|
|
138
|
+
(a = c.value.files) instanceof FileList && q(a[0], i);
|
|
139
139
|
}
|
|
140
140
|
return (a, m) => (d(), G(he, {
|
|
141
141
|
label: a.label,
|
|
@@ -146,7 +146,7 @@ const ne = ue("giftCard", () => {
|
|
|
146
146
|
l("div", Ne, [
|
|
147
147
|
l("input", {
|
|
148
148
|
ref_key: "fileInput",
|
|
149
|
-
ref:
|
|
149
|
+
ref: c,
|
|
150
150
|
type: "file",
|
|
151
151
|
class: "hidden",
|
|
152
152
|
accept: a.validation,
|
|
@@ -184,7 +184,7 @@ const ne = ue("giftCard", () => {
|
|
|
184
184
|
])) : F("", !0)
|
|
185
185
|
]),
|
|
186
186
|
l("div", {
|
|
187
|
-
class:
|
|
187
|
+
class: ue([
|
|
188
188
|
"media-selector-previewer",
|
|
189
189
|
{ opened: h.value }
|
|
190
190
|
])
|
|
@@ -202,8 +202,8 @@ const ne = ue("giftCard", () => {
|
|
|
202
202
|
}
|
|
203
203
|
});
|
|
204
204
|
function de(g) {
|
|
205
|
-
const
|
|
206
|
-
|
|
205
|
+
const u = g;
|
|
206
|
+
u.__i18n = u.__i18n || [], u.__i18n.push({
|
|
207
207
|
locale: "",
|
|
208
208
|
resource: {
|
|
209
209
|
da: {
|
|
@@ -225,7 +225,7 @@ typeof de == "function" && de(Ye);
|
|
|
225
225
|
const Qe = { class: "gift-card-skeleton" }, ea = { class: "gift-card-skeleton-form" }, aa = /* @__PURE__ */ O({
|
|
226
226
|
__name: "GiftCardSkeleton",
|
|
227
227
|
setup(g) {
|
|
228
|
-
return (
|
|
228
|
+
return (u, v) => (d(), y("div", Qe, [
|
|
229
229
|
l("div", ea, [
|
|
230
230
|
o(z),
|
|
231
231
|
o(z),
|
|
@@ -243,7 +243,7 @@ const Qe = { class: "gift-card-skeleton" }, ea = { class: "gift-card-skeleton-fo
|
|
|
243
243
|
buttonLabel: {}
|
|
244
244
|
},
|
|
245
245
|
setup(g) {
|
|
246
|
-
const { t:
|
|
246
|
+
const { t: u } = Y(), v = V(!1);
|
|
247
247
|
return (t, p) => (d(), y("div", la, [
|
|
248
248
|
o(e(ke), {
|
|
249
249
|
keypath: "general.termsAndConditionsNotice",
|
|
@@ -259,7 +259,7 @@ const Qe = { class: "gift-card-skeleton" }, ea = { class: "gift-card-skeleton-fo
|
|
|
259
259
|
target: "_blank",
|
|
260
260
|
onClick: p[0] || (p[0] = ye((r) => v.value = !0, ["prevent"]))
|
|
261
261
|
}, [
|
|
262
|
-
l("span", null, X(e(
|
|
262
|
+
l("span", null, X(e(u)("general.termsAndConditions")), 1)
|
|
263
263
|
])
|
|
264
264
|
]),
|
|
265
265
|
_: 1
|
|
@@ -274,20 +274,17 @@ const Qe = { class: "gift-card-skeleton" }, ea = { class: "gift-card-skeleton-fo
|
|
|
274
274
|
}), na = /* @__PURE__ */ ie(oa, [["__scopeId", "data-v-c9c826cf"]]), ia = /* @__PURE__ */ O({
|
|
275
275
|
__name: "GiftCard",
|
|
276
276
|
setup(g) {
|
|
277
|
-
const { t:
|
|
277
|
+
const { t: u } = Y(), v = ne();
|
|
278
278
|
return (t, p) => (d(), G(na, {
|
|
279
279
|
content: e(v).termsOfService,
|
|
280
|
-
"button-label": e(
|
|
280
|
+
"button-label": e(u)("giftCard.orderGiftCard")
|
|
281
281
|
}, null, 8, ["content", "button-label"]));
|
|
282
282
|
}
|
|
283
|
-
}), sa = (g) => (Ue("data-v-
|
|
284
|
-
key: 0,
|
|
285
|
-
id: "konnectio-gift-card-module"
|
|
286
|
-
}, da = { id: "konnectio-gift-card-wrapper" }, ca = { id: "konnectio-gift-card-title" }, ua = { id: "konnectio-gift-card-content" }, pa = { id: "konnectio-gift-card-payment" }, ma = ["innerHTML"], fa = { key: 0 }, va = {
|
|
283
|
+
}), sa = (g) => (Ue("data-v-571cd69e"), g = g(), Ae(), g), ra = ["data-layout"], da = { id: "konnectio-gift-card-wrapper" }, ua = { id: "konnectio-gift-card-title" }, ca = { id: "konnectio-gift-card-content" }, pa = { id: "konnectio-gift-card-payment" }, ma = ["innerHTML"], fa = { key: 0 }, va = {
|
|
287
284
|
key: 0,
|
|
288
285
|
id: "fresh-booking-select-place-type"
|
|
289
286
|
}, ga = {
|
|
290
|
-
class: /* @__PURE__ */
|
|
287
|
+
class: /* @__PURE__ */ ue(["fresh-booking-label", "required"])
|
|
291
288
|
}, ha = { id: "fresh-booking-select-place-type-input" }, ba = ["innerHTML"], ya = {
|
|
292
289
|
key: 0,
|
|
293
290
|
id: "konnectio-gift-card-order"
|
|
@@ -307,13 +304,13 @@ const Qe = { class: "gift-card-skeleton" }, ea = { class: "gift-card-skeleton-fo
|
|
|
307
304
|
styling: {}
|
|
308
305
|
},
|
|
309
306
|
setup(g) {
|
|
310
|
-
const
|
|
307
|
+
const u = g, v = k(() => ({
|
|
311
308
|
panelMaxWidth: "800px",
|
|
312
|
-
...
|
|
309
|
+
...u.styling
|
|
313
310
|
})), { t } = Y(), {
|
|
314
311
|
name: p,
|
|
315
312
|
email: r,
|
|
316
|
-
phone:
|
|
313
|
+
phone: c,
|
|
317
314
|
value: h,
|
|
318
315
|
remark: i,
|
|
319
316
|
showValue: b,
|
|
@@ -332,28 +329,32 @@ const Qe = { class: "gift-card-skeleton" }, ea = { class: "gift-card-skeleton-fo
|
|
|
332
329
|
return _e(a, () => {
|
|
333
330
|
S.value = void 0;
|
|
334
331
|
}), Ce(() => {
|
|
335
|
-
const
|
|
336
|
-
Q(
|
|
337
|
-
}), (
|
|
332
|
+
const I = u.placeType ? parseInt(u.placeType) : void 0;
|
|
333
|
+
Q(I);
|
|
334
|
+
}), (I, s) => (d(), G(Ee, { styling: v.value }, {
|
|
338
335
|
default: L(() => [
|
|
339
336
|
(d(), G(Ve, null, {
|
|
340
337
|
default: L(() => [
|
|
341
338
|
o($e, {
|
|
342
339
|
type: "gift-card",
|
|
343
|
-
"access-token":
|
|
344
|
-
"data-layout":
|
|
340
|
+
"access-token": I.accessToken,
|
|
341
|
+
"data-layout": I.layout
|
|
345
342
|
}, {
|
|
346
343
|
default: L(() => [
|
|
347
344
|
e(A) ? (d(), G(De, {
|
|
348
345
|
key: 1,
|
|
349
346
|
title: "Unable to render Gift card module",
|
|
350
347
|
description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
|
|
351
|
-
})) : (d(), y("div",
|
|
348
|
+
})) : (d(), y("div", {
|
|
349
|
+
key: 0,
|
|
350
|
+
id: "konnectio-gift-card-module",
|
|
351
|
+
"data-layout": I.layout
|
|
352
|
+
}, [
|
|
352
353
|
l("div", da, [
|
|
353
|
-
l("h2",
|
|
354
|
+
l("h2", ua, [
|
|
354
355
|
l("span", null, X(e(t)("giftCard.title")), 1)
|
|
355
356
|
]),
|
|
356
|
-
l("div",
|
|
357
|
+
l("div", ca, [
|
|
357
358
|
H(l("div", pa, [
|
|
358
359
|
o(qe)
|
|
359
360
|
], 512), [
|
|
@@ -419,8 +420,8 @@ const Qe = { class: "gift-card-skeleton" }, ea = { class: "gift-card-skeleton-fo
|
|
|
419
420
|
required: ""
|
|
420
421
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
421
422
|
o(xe, {
|
|
422
|
-
modelValue: e(
|
|
423
|
-
"onUpdate:modelValue": s[4] || (s[4] = (n) => P(
|
|
423
|
+
modelValue: e(c),
|
|
424
|
+
"onUpdate:modelValue": s[4] || (s[4] = (n) => P(c) ? c.value = n : null),
|
|
424
425
|
icon: "phone-office",
|
|
425
426
|
label: e(t)("giftCard.phone"),
|
|
426
427
|
placeholder: e(t)("giftCard.phonePlaceholder"),
|
|
@@ -458,7 +459,7 @@ const Qe = { class: "gift-card-skeleton" }, ea = { class: "gift-card-skeleton-fo
|
|
|
458
459
|
[K, e($)]
|
|
459
460
|
])
|
|
460
461
|
]),
|
|
461
|
-
|
|
462
|
+
I.layout !== "minimal" && e(m) ? (d(), y("div", ya, [
|
|
462
463
|
l("div", ka, [
|
|
463
464
|
o(D, {
|
|
464
465
|
label: e(t)("giftCard.orderGiftCard"),
|
|
@@ -502,7 +503,7 @@ const Qe = { class: "gift-card-skeleton" }, ea = { class: "gift-card-skeleton-fo
|
|
|
502
503
|
])
|
|
503
504
|
])) : F("", !0)
|
|
504
505
|
])
|
|
505
|
-
]))
|
|
506
|
+
], 8, ra))
|
|
506
507
|
]),
|
|
507
508
|
_: 1
|
|
508
509
|
}, 8, ["access-token", "data-layout"])
|
|
@@ -516,7 +517,7 @@ const Qe = { class: "gift-card-skeleton" }, ea = { class: "gift-card-skeleton-fo
|
|
|
516
517
|
_: 1
|
|
517
518
|
}, 8, ["styling"]));
|
|
518
519
|
}
|
|
519
|
-
}), J = /* @__PURE__ */ ie(Fa, [["__scopeId", "data-v-
|
|
520
|
+
}), J = /* @__PURE__ */ ie(Fa, [["__scopeId", "data-v-571cd69e"]]), Pa = Ie(), Sa = Me();
|
|
520
521
|
class Ta extends HTMLElement {
|
|
521
522
|
vueApp;
|
|
522
523
|
constructor() {
|
|
@@ -526,18 +527,18 @@ class Ta extends HTMLElement {
|
|
|
526
527
|
this.vueApp.unmount();
|
|
527
528
|
}
|
|
528
529
|
connectedCallback() {
|
|
529
|
-
const
|
|
530
|
-
let v = Array.isArray(
|
|
530
|
+
const u = typeof J == "function" ? J.options : J;
|
|
531
|
+
let v = Array.isArray(u.props) ? u.props : Object.keys(u.props || {});
|
|
531
532
|
const t = (i) => i.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (b, f) => (f ? "-" : "") + b.toLowerCase()), p = (i) => i.replace(/-./g, (b) => b[1].toUpperCase()), r = {};
|
|
532
533
|
v = v.map(t);
|
|
533
|
-
const
|
|
534
|
+
const c = {};
|
|
534
535
|
for (const i of this.attributes) {
|
|
535
536
|
const f = i.name.split(".");
|
|
536
|
-
f.length > 1 && (
|
|
537
|
+
f.length > 1 && (c[f[0]] || (c[f[0]] = {}), c[f[0]][p(f[1])] = i.value);
|
|
537
538
|
}
|
|
538
539
|
for (const i of v) {
|
|
539
540
|
let b = this.attributes.getNamedItem(i)?.value;
|
|
540
|
-
|
|
541
|
+
c.hasOwnProperty(i) && (b = c[i]), r[i] = b;
|
|
541
542
|
}
|
|
542
543
|
this.vueApp = Re(J, r), this.vueApp.provide("emitter", Sa), this.vueApp.use(Pa), this.vueApp.use(Ge), this.vueApp.use(Le, { bootstrap: !0 });
|
|
543
544
|
const h = document.createElement("div");
|
package/dist/gift-card.js.br
CHANGED
|
Binary file
|