@konnectio/core 4.0.10 → 4.0.12
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-23ce1b2a.cjs +1 -0
- package/dist/{ActionField-68f65af4.js → ActionField-311942d2.js} +21 -21
- package/dist/ActionField-311942d2.js.br +0 -0
- package/dist/{AvailabilitySkeleton-c48588e4.js → AvailabilitySkeleton-2dfbb28e.js} +80 -80
- package/dist/AvailabilitySkeleton-2dfbb28e.js.br +0 -0
- package/dist/AvailabilitySkeleton-7d9e2680.cjs +1 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-b6694990.cjs → DateField.vue_vue_type_style_index_0_lang-47e679d1.cjs} +3 -3
- package/dist/{DateField.vue_vue_type_style_index_0_lang-87ddfed8.js → DateField.vue_vue_type_style_index_0_lang-ec35955b.js} +1816 -1820
- package/dist/DateField.vue_vue_type_style_index_0_lang-ec35955b.js.br +0 -0
- package/dist/{Field-d926807f.cjs → Field-dcffacf2.cjs} +1 -1
- package/dist/{Field-b76d82cb.js → Field-ff599d13.js} +2 -2
- package/dist/Field-ff599d13.js.br +0 -0
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-a32b2a11.js → NumberField.vue_vue_type_script_setup_true_lang-2eb1b46f.js} +28 -28
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-2eb1b46f.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-50fc08f1.cjs +1 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-4755fb8a.cjs +802 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-c973d794.js → SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js} +7754 -7718
- package/dist/SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js.br +0 -0
- package/dist/TextField-6f7e37d9.cjs +54 -0
- package/dist/{TextField-8f6e5ef5.js → TextField-cd93b966.js} +3241 -3241
- package/dist/TextField-cd93b966.js.br +0 -0
- package/dist/{ThankYou-8ae535bf.cjs → ThankYou-3d74a6dc.cjs} +2 -2
- package/dist/{ThankYou-2f3c4efe.js → ThankYou-c1878478.js} +48 -47
- package/dist/ThankYou-c1878478.js.br +0 -0
- package/dist/{_-3cff5490.cjs → _-0895679a.cjs} +1 -1
- package/dist/{_-734c9d50.js → _-8772cf9a.js} +1 -1
- package/dist/_-8772cf9a.js.br +0 -0
- package/dist/availability.cjs +1 -1
- package/dist/availability.js +7 -7
- package/dist/availability.js.br +0 -0
- package/dist/{event-e08d0178.js → event-60e076f2.js} +36 -36
- package/dist/event-60e076f2.js.br +0 -0
- package/dist/event-8e90a6e3.cjs +1 -0
- package/dist/event.cjs +1 -1
- package/dist/event.js +98 -98
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.cjs +1 -1
- package/dist/gift-card-validation.js +4 -4
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.cjs +1 -1
- package/dist/gift-card.js +192 -192
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.cjs +5 -5
- package/dist/hotel.js +1406 -1395
- package/dist/hotel.js.br +0 -0
- package/dist/index-345407fb.cjs +1 -0
- package/dist/{index-c28f52d1.js → index-b5d8f4fc.js} +83 -83
- package/dist/index-b5d8f4fc.js.br +0 -0
- package/dist/polyfill.cjs +4 -4
- package/dist/polyfill.js +3311 -3398
- package/dist/polyfill.js.br +0 -0
- package/dist/store/payment.d.ts +1 -1
- package/package.json +6 -6
- package/dist/ActionField-68f65af4.js.br +0 -0
- package/dist/ActionField-ab9c01ab.cjs +0 -1
- package/dist/AvailabilitySkeleton-c48588e4.js.br +0 -0
- package/dist/AvailabilitySkeleton-ca6cf6b6.cjs +0 -1
- package/dist/DateField.vue_vue_type_style_index_0_lang-87ddfed8.js.br +0 -0
- package/dist/Field-b76d82cb.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-a32b2a11.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-a549c70e.cjs +0 -1
- package/dist/SelectField.vue_vue_type_style_index_0_lang-2bf82818.cjs +0 -806
- package/dist/SelectField.vue_vue_type_style_index_0_lang-c973d794.js.br +0 -0
- package/dist/TextField-528ca68c.cjs +0 -54
- package/dist/TextField-8f6e5ef5.js.br +0 -0
- package/dist/ThankYou-2f3c4efe.js.br +0 -0
- package/dist/_-734c9d50.js.br +0 -0
- package/dist/event-4662e27c.cjs +0 -1
- package/dist/event-e08d0178.js.br +0 -0
- package/dist/index-a46a0876.cjs +0 -1
- package/dist/index-c28f52d1.js.br +0 -0
package/dist/event.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { h as ge, y as he, u as Ie, s as H, a as ke, r as We, c as Ye, k as t, l as b, U as He, w as g, x as l, m as r, B as h, z as n, n as e, V as Ke, W as ie, q as i, X as re, t as u, Y as Qe, D as $, Z as Xe, _ as fe, o as Ze, $ as je, A as D, a0 as V, a1 as w, a2 as ue, O as de, a3 as me, a4 as Je, a5 as x, F as ce, H as xe, K as Ge, L as el, N as ll, a6 as nl, M as tl, P as al } from "./SelectField.vue_vue_type_style_index_0_lang-
|
|
2
|
-
import { P as ol, C as pe, a as sl, S as il, i as rl } from "./index-
|
|
3
|
-
import { B as ul, M as dl, R as ml, T as cl, x as pl } from "./ThankYou-
|
|
4
|
-
import { u as K } from "./event-
|
|
5
|
-
import { A as vl } from "./ActionField-
|
|
6
|
-
import { T as ve } from "./TextField-
|
|
7
|
-
import { _ as bl } from "./DateField.vue_vue_type_style_index_0_lang-
|
|
8
|
-
import { _ as G } from "./NumberField.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { h as ge, y as he, u as Ie, s as H, a as ke, r as We, c as Ye, k as t, l as b, U as He, w as g, x as l, m as r, B as h, z as n, n as e, V as Ke, W as ie, q as i, X as re, t as u, Y as Qe, D as $, Z as Xe, _ as fe, o as Ze, $ as je, A as D, a0 as V, a1 as w, a2 as ue, O as de, a3 as me, a4 as Je, a5 as x, F as ce, H as xe, K as Ge, L as el, N as ll, a6 as nl, M as tl, P as al } from "./SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js";
|
|
2
|
+
import { P as ol, C as pe, a as sl, S as il, i as rl } from "./index-b5d8f4fc.js";
|
|
3
|
+
import { B as ul, M as dl, R as ml, T as cl, x as pl } from "./ThankYou-c1878478.js";
|
|
4
|
+
import { u as K } from "./event-60e076f2.js";
|
|
5
|
+
import { A as vl } from "./ActionField-311942d2.js";
|
|
6
|
+
import { T as ve } from "./TextField-cd93b966.js";
|
|
7
|
+
import { _ as bl } from "./DateField.vue_vue_type_style_index_0_lang-ec35955b.js";
|
|
8
|
+
import { _ as G } from "./NumberField.vue_vue_type_script_setup_true_lang-2eb1b46f.js";
|
|
9
9
|
import "./_commonjsHelpers-c5d32002.js";
|
|
10
|
-
import "./_-
|
|
10
|
+
import "./_-8772cf9a.js";
|
|
11
11
|
const gl = { class: "fresh-booking-event-listing-information" }, hl = { key: 0 }, kl = { key: 1 }, fl = /* @__PURE__ */ ge({
|
|
12
12
|
__name: "Event",
|
|
13
13
|
props: {
|
|
@@ -31,7 +31,7 @@ const gl = { class: "fresh-booking-event-listing-information" }, hl = { key: 0 }
|
|
|
31
31
|
callback: {}
|
|
32
32
|
},
|
|
33
33
|
setup(B) {
|
|
34
|
-
const
|
|
34
|
+
const { t: a } = he(), v = B, { display: E } = Ie(), { currency: z } = H(ke()), {
|
|
35
35
|
maxNumberOfPeople: C,
|
|
36
36
|
numberOfPeople: Q,
|
|
37
37
|
eventId: U,
|
|
@@ -40,15 +40,15 @@ const gl = { class: "fresh-booking-event-listing-information" }, hl = { key: 0 }
|
|
|
40
40
|
getTemplateAvailability: N,
|
|
41
41
|
getEventAvailability: S,
|
|
42
42
|
isEventListingLoading: O
|
|
43
|
-
} = K(), P = We(0), I = Ye(() => O(
|
|
44
|
-
P.value > 0 ? (U.value =
|
|
43
|
+
} = K(), P = We(0), I = Ye(() => O(v.listingId)), X = () => {
|
|
44
|
+
P.value > 0 ? (U.value = v.listingId, Q.value = P.value, N(v.callback)) : E({
|
|
45
45
|
type: "error",
|
|
46
|
-
message:
|
|
46
|
+
message: a("alert.error.selectPeople")
|
|
47
47
|
});
|
|
48
48
|
}, k = () => {
|
|
49
|
-
P.value > 0 ? (U.value =
|
|
49
|
+
P.value > 0 ? (U.value = v.listingId, R.value = v.tableGroupId, Q.value = P.value, S(v.callback)) : E({
|
|
50
50
|
type: "error",
|
|
51
|
-
message:
|
|
51
|
+
message: a("alert.error.selectPeople")
|
|
52
52
|
});
|
|
53
53
|
};
|
|
54
54
|
return (s, f) => (t(), b(ul, {
|
|
@@ -63,8 +63,8 @@ const gl = { class: "fresh-booking-event-listing-information" }, hl = { key: 0 }
|
|
|
63
63
|
modelValue: P.value,
|
|
64
64
|
"onUpdate:modelValue": f[0] || (f[0] = (F) => P.value = F),
|
|
65
65
|
type: "number",
|
|
66
|
-
label: e(
|
|
67
|
-
buttonLabel: s.soldOut ? e(
|
|
66
|
+
label: e(a)("event.numberOfGuests"),
|
|
67
|
+
buttonLabel: s.soldOut ? e(a)("event.soldOut") : e(a)("event.bookNowButton"),
|
|
68
68
|
buttonDisabled: s.soldOut,
|
|
69
69
|
"min-value": s.type === "event" ? 1 : s.minimumPersonCount,
|
|
70
70
|
"max-value": s.type === "event" ? s.maxOnlineReservationLimit || 1 / 0 : e(C),
|
|
@@ -105,7 +105,7 @@ const gl = { class: "fresh-booking-event-listing-information" }, hl = { key: 0 }
|
|
|
105
105
|
icon: "user-alt",
|
|
106
106
|
color: "header"
|
|
107
107
|
}),
|
|
108
|
-
l("span", null, n(`1 - ${s.maxOnlineReservationLimit} ${e(
|
|
108
|
+
l("span", null, n(`1 - ${s.maxOnlineReservationLimit} ${e(a)("general.people")}`), 1)
|
|
109
109
|
])) : u("", !0)
|
|
110
110
|
])
|
|
111
111
|
]),
|
|
@@ -126,14 +126,14 @@ const gl = { class: "fresh-booking-event-listing-information" }, hl = { key: 0 }
|
|
|
126
126
|
icon: "user-alt",
|
|
127
127
|
color: "header"
|
|
128
128
|
}),
|
|
129
|
-
l("span", null, n(`${s.minimumPersonCount} - ${e(C)} ${e(
|
|
129
|
+
l("span", null, n(`${s.minimumPersonCount} - ${e(C)} ${e(a)("general.people")}`), 1)
|
|
130
130
|
]),
|
|
131
131
|
l("li", null, [
|
|
132
132
|
r(h, {
|
|
133
133
|
icon: "money-bill",
|
|
134
134
|
color: "header"
|
|
135
135
|
}),
|
|
136
|
-
l("span", null, n(`${e(
|
|
136
|
+
l("span", null, n(`${e(a)("general.pricesFrom")} ${e($)(s.fromPrice, e(z))}`), 1)
|
|
137
137
|
])
|
|
138
138
|
])
|
|
139
139
|
]),
|
|
@@ -156,8 +156,8 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
|
|
|
156
156
|
styling: {}
|
|
157
157
|
},
|
|
158
158
|
setup(B) {
|
|
159
|
-
const { t:
|
|
160
|
-
searchDate:
|
|
159
|
+
const { t: a } = he(), {
|
|
160
|
+
searchDate: v,
|
|
161
161
|
addons: E,
|
|
162
162
|
products: z,
|
|
163
163
|
numberOfDays: C,
|
|
@@ -209,7 +209,7 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
|
|
|
209
209
|
hideEvents: Me,
|
|
210
210
|
hideEventTemplates: ze
|
|
211
211
|
} = H(ke());
|
|
212
|
-
return Ze(() => Re()), je(
|
|
212
|
+
return Ze(() => Re()), je(v, () => Ne()), (se, d) => (t(), b(xe, {
|
|
213
213
|
id: "fresh-booking-event-module",
|
|
214
214
|
class: "fresh-booking-app",
|
|
215
215
|
type: "event",
|
|
@@ -226,9 +226,9 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
|
|
|
226
226
|
availability: g(({ next: Y }) => [
|
|
227
227
|
l("div", yl, [
|
|
228
228
|
r(bl, {
|
|
229
|
-
modelValue: e(
|
|
230
|
-
"onUpdate:modelValue": d[0] || (d[0] = (y) => D(
|
|
231
|
-
label: e(
|
|
229
|
+
modelValue: e(v),
|
|
230
|
+
"onUpdate:modelValue": d[0] || (d[0] = (y) => D(v) ? v.value = y : null),
|
|
231
|
+
label: e(a)("event.selectDate"),
|
|
232
232
|
"min-date": /* @__PURE__ */ new Date()
|
|
233
233
|
}, null, 8, ["modelValue", "label", "min-date"])
|
|
234
234
|
]),
|
|
@@ -240,16 +240,16 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
|
|
|
240
240
|
type: "fal",
|
|
241
241
|
color: "header"
|
|
242
242
|
}),
|
|
243
|
-
l("span", null, n(e(
|
|
243
|
+
l("span", null, n(e(a)("event.eventsTitle")), 1)
|
|
244
244
|
]),
|
|
245
245
|
l("ul", Vl, [
|
|
246
246
|
(t(!0), i(V, null, w(e($e), ({
|
|
247
247
|
id: y,
|
|
248
|
-
days:
|
|
249
|
-
name:
|
|
248
|
+
days: o,
|
|
249
|
+
name: c,
|
|
250
250
|
timeFrom: _,
|
|
251
|
-
timeTo:
|
|
252
|
-
fromDate:
|
|
251
|
+
timeTo: m,
|
|
252
|
+
fromDate: p,
|
|
253
253
|
toDate: q,
|
|
254
254
|
tableGroupID: Z,
|
|
255
255
|
description: j,
|
|
@@ -261,13 +261,13 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
|
|
|
261
261
|
"listing-id": y,
|
|
262
262
|
"table-group-id": Z,
|
|
263
263
|
description: j,
|
|
264
|
-
name:
|
|
265
|
-
days:
|
|
266
|
-
"from-date":
|
|
264
|
+
name: c,
|
|
265
|
+
days: o,
|
|
266
|
+
"from-date": p,
|
|
267
267
|
"to-date": q,
|
|
268
268
|
"max-online-reservation-limit": M,
|
|
269
269
|
"time-from": _,
|
|
270
|
-
"time-to":
|
|
270
|
+
"time-to": m,
|
|
271
271
|
"sold-out": J,
|
|
272
272
|
callback: Y
|
|
273
273
|
}, null, 8, ["listing-id", "table-group-id", "description", "name", "days", "from-date", "to-date", "max-online-reservation-limit", "time-from", "time-to", "sold-out", "callback"]))), 128))
|
|
@@ -280,27 +280,27 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
|
|
|
280
280
|
type: "fal",
|
|
281
281
|
color: "header"
|
|
282
282
|
}),
|
|
283
|
-
l("span", null, n(e(
|
|
283
|
+
l("span", null, n(e(a)("event.stayTitle")), 1)
|
|
284
284
|
]),
|
|
285
285
|
l("ul", Pl, [
|
|
286
286
|
(t(!0), i(V, null, w(e(Ee), ({
|
|
287
287
|
id: y,
|
|
288
|
-
name:
|
|
289
|
-
fromDate:
|
|
288
|
+
name: o,
|
|
289
|
+
fromDate: c,
|
|
290
290
|
toDate: _,
|
|
291
|
-
minimumPersonCount:
|
|
292
|
-
fromPrice:
|
|
291
|
+
minimumPersonCount: m,
|
|
292
|
+
fromPrice: p,
|
|
293
293
|
description: q
|
|
294
294
|
}) => (t(), b(be, {
|
|
295
295
|
key: y,
|
|
296
296
|
type: "template",
|
|
297
297
|
"listing-id": y,
|
|
298
|
-
name:
|
|
298
|
+
name: o,
|
|
299
299
|
description: q,
|
|
300
|
-
"from-date":
|
|
300
|
+
"from-date": c,
|
|
301
301
|
"to-date": _,
|
|
302
|
-
"minimum-person-count":
|
|
303
|
-
fromPrice:
|
|
302
|
+
"minimum-person-count": m,
|
|
303
|
+
fromPrice: p,
|
|
304
304
|
callback: Y
|
|
305
305
|
}, null, 8, ["listing-id", "name", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "callback"]))), 128))
|
|
306
306
|
])
|
|
@@ -311,62 +311,62 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
|
|
|
311
311
|
e(Ae) ? (t(), b(ml, {
|
|
312
312
|
key: 0,
|
|
313
313
|
remark: e(S),
|
|
314
|
-
"onUpdate:remark": d[8] || (d[8] = (
|
|
314
|
+
"onUpdate:remark": d[8] || (d[8] = (o) => D(S) ? S.value = o : null),
|
|
315
315
|
"is-filled": e(Fe),
|
|
316
316
|
"is-loading": e(Ve),
|
|
317
317
|
"base-price": e(ye),
|
|
318
318
|
"total-price": e(_e),
|
|
319
319
|
"weekend-fee": e(Le),
|
|
320
320
|
"room-upgrade": e(we),
|
|
321
|
-
onPrev: (
|
|
322
|
-
onNext: (
|
|
321
|
+
onPrev: (o) => e(qe)(y),
|
|
322
|
+
onNext: (o) => e(Se)(Y)
|
|
323
323
|
}, {
|
|
324
324
|
form: g(() => [
|
|
325
325
|
e(ne) === e(de).FullDayEvent ? (t(), b(G, {
|
|
326
326
|
key: 0,
|
|
327
327
|
modelValue: e(C),
|
|
328
|
-
"onUpdate:modelValue": d[1] || (d[1] = (
|
|
329
|
-
label: e(
|
|
328
|
+
"onUpdate:modelValue": d[1] || (d[1] = (o) => D(C) ? C.value = o : null),
|
|
329
|
+
label: e(a)("event.numberOfDays"),
|
|
330
330
|
"min-value": 1,
|
|
331
331
|
required: ""
|
|
332
332
|
}, null, 8, ["modelValue", "label"])) : u("", !0),
|
|
333
333
|
r(ve, {
|
|
334
334
|
modelValue: e(U),
|
|
335
|
-
"onUpdate:modelValue": d[2] || (d[2] = (
|
|
335
|
+
"onUpdate:modelValue": d[2] || (d[2] = (o) => D(U) ? U.value = o : null),
|
|
336
336
|
type: "text",
|
|
337
|
-
label: e(
|
|
337
|
+
label: e(a)("booking.reservation.name"),
|
|
338
338
|
icon: "user-alt",
|
|
339
|
-
placeholder: e(
|
|
339
|
+
placeholder: e(a)("booking.reservation.namePlaceholder"),
|
|
340
340
|
required: ""
|
|
341
341
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
342
342
|
r(ve, {
|
|
343
343
|
modelValue: e(N),
|
|
344
|
-
"onUpdate:modelValue": d[3] || (d[3] = (
|
|
345
|
-
label: e(
|
|
344
|
+
"onUpdate:modelValue": d[3] || (d[3] = (o) => D(N) ? N.value = o : null),
|
|
345
|
+
label: e(a)("booking.reservation.email"),
|
|
346
346
|
type: "email",
|
|
347
347
|
name: "email",
|
|
348
348
|
autocomplete: "email",
|
|
349
349
|
icon: "at",
|
|
350
|
-
placeholder: e(
|
|
350
|
+
placeholder: e(a)("booking.reservation.emailPlaceholder"),
|
|
351
351
|
required: ""
|
|
352
352
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
353
353
|
r(ol, {
|
|
354
354
|
modelValue: e(R),
|
|
355
|
-
"onUpdate:modelValue": d[4] || (d[4] = (
|
|
356
|
-
label: e(
|
|
355
|
+
"onUpdate:modelValue": d[4] || (d[4] = (o) => D(R) ? R.value = o : null),
|
|
356
|
+
label: e(a)("booking.reservation.phone"),
|
|
357
357
|
icon: "phone-office",
|
|
358
|
-
placeholder: e(
|
|
358
|
+
placeholder: e(a)("booking.reservation.phonePlaceholder"),
|
|
359
359
|
required: ""
|
|
360
360
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
361
361
|
u("", !0),
|
|
362
362
|
e(W) && e(W).length > 0 ? (t(), i("ul", Tl, [
|
|
363
363
|
(t(!0), i(V, null, w(e(W), ({
|
|
364
|
-
roomGroupID:
|
|
365
|
-
addons:
|
|
364
|
+
roomGroupID: o,
|
|
365
|
+
addons: c,
|
|
366
366
|
adultPerRoom: _
|
|
367
|
-
},
|
|
367
|
+
}, m) => (t(), i("li", { key: o }, [
|
|
368
368
|
l("h5", null, [
|
|
369
|
-
l("span", null, n(e(
|
|
369
|
+
l("span", null, n(e(a)("booking.reservation.room")) + " #" + n(m + 1), 1),
|
|
370
370
|
me(" ("),
|
|
371
371
|
r(h, {
|
|
372
372
|
icon: "male",
|
|
@@ -379,22 +379,22 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
|
|
|
379
379
|
l("thead", null, [
|
|
380
380
|
l("tr", null, [
|
|
381
381
|
l("th", null, [
|
|
382
|
-
l("span", null, n(e(
|
|
382
|
+
l("span", null, n(e(a)("booking.reservation.addons")), 1)
|
|
383
383
|
]),
|
|
384
384
|
El,
|
|
385
385
|
l("th", Ol, [
|
|
386
|
-
l("span", null, n(e(
|
|
386
|
+
l("span", null, n(e(a)("booking.availability.price")), 1)
|
|
387
387
|
])
|
|
388
388
|
])
|
|
389
389
|
]),
|
|
390
390
|
l("tbody", null, [
|
|
391
|
-
(t(!0), i(V, null, w(
|
|
392
|
-
addonID:
|
|
391
|
+
(t(!0), i(V, null, w(c, ({
|
|
392
|
+
addonID: p,
|
|
393
393
|
cardinality: q,
|
|
394
394
|
name: Z,
|
|
395
395
|
price: j,
|
|
396
396
|
quantityStrategy: J
|
|
397
|
-
}) => (t(), i("tr", { key:
|
|
397
|
+
}) => (t(), i("tr", { key: p }, [
|
|
398
398
|
l("td", null, [
|
|
399
399
|
l("b", null, n(Z), 1),
|
|
400
400
|
Dl,
|
|
@@ -403,19 +403,19 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
|
|
|
403
403
|
l("td", wl, [
|
|
404
404
|
q === 3 ? (t(), b(G, {
|
|
405
405
|
key: 0,
|
|
406
|
-
modelValue: e(E)[`${
|
|
407
|
-
"onUpdate:modelValue": (M) => e(E)[`${
|
|
406
|
+
modelValue: e(E)[`${o}.${p}.${m}`],
|
|
407
|
+
"onUpdate:modelValue": (M) => e(E)[`${o}.${p}.${m}`] = M,
|
|
408
408
|
small: !0,
|
|
409
409
|
"min-value": 0
|
|
410
410
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : (t(), b(pe, {
|
|
411
411
|
key: 1,
|
|
412
|
-
modelValue: e(E)[`${
|
|
413
|
-
"onUpdate:modelValue": (M) => e(E)[`${
|
|
412
|
+
modelValue: e(E)[`${o}.${p}.${m}`],
|
|
413
|
+
"onUpdate:modelValue": (M) => e(E)[`${o}.${p}.${m}`] = M,
|
|
414
414
|
numeric: !0
|
|
415
415
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]))
|
|
416
416
|
]),
|
|
417
417
|
l("td", Ll, [
|
|
418
|
-
l("span", null, n(e($)(e(ae)(
|
|
418
|
+
l("span", null, n(e($)(e(ae)(p, o, m), e(k))), 1)
|
|
419
419
|
])
|
|
420
420
|
]))), 128))
|
|
421
421
|
]),
|
|
@@ -424,7 +424,7 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
|
|
|
424
424
|
Bl,
|
|
425
425
|
l("td", Cl, [
|
|
426
426
|
l("u", null, [
|
|
427
|
-
l("span", null, n(e($)(e(oe)(
|
|
427
|
+
l("span", null, n(e($)(e(oe)(o, m), e(k))), 1)
|
|
428
428
|
])
|
|
429
429
|
])
|
|
430
430
|
])
|
|
@@ -434,58 +434,58 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
|
|
|
434
434
|
])) : u("", !0),
|
|
435
435
|
e(ne) !== e(de).FullDayEvent && !e(T) ? (t(), i("div", Ul, [
|
|
436
436
|
l("label", Fl, [
|
|
437
|
-
l("span", null, n(e(
|
|
437
|
+
l("span", null, n(e(a)("event.selectArrivalTime")), 1)
|
|
438
438
|
]),
|
|
439
439
|
l("ul", Al, [
|
|
440
|
-
(t(!0), i(V, null, w(e(De), (
|
|
440
|
+
(t(!0), i(V, null, w(e(De), (o, c) => (t(), i("li", { key: c }, [
|
|
441
441
|
r(pe, {
|
|
442
442
|
modelValue: e(O),
|
|
443
443
|
"onUpdate:modelValue": d[7] || (d[7] = (_) => D(O) ? O.value = _ : null),
|
|
444
444
|
type: "radio",
|
|
445
445
|
name: "eventTimeTable",
|
|
446
|
-
val:
|
|
447
|
-
label: e(x)(
|
|
446
|
+
val: o.time,
|
|
447
|
+
label: e(x)(o.time)
|
|
448
448
|
}, null, 8, ["modelValue", "val", "label"])
|
|
449
449
|
]))), 128))
|
|
450
450
|
])
|
|
451
451
|
])) : u("", !0),
|
|
452
452
|
e(Be) ? (t(), i("div", Rl, [
|
|
453
453
|
l("label", Nl, [
|
|
454
|
-
l("span", null, n(e(
|
|
454
|
+
l("span", null, n(e(a)("event.selectProducts")), 1)
|
|
455
455
|
]),
|
|
456
456
|
l("table", Sl, [
|
|
457
457
|
l("thead", null, [
|
|
458
458
|
l("tr", null, [
|
|
459
459
|
l("th", null, [
|
|
460
|
-
l("span", null, n(e(
|
|
460
|
+
l("span", null, n(e(a)("booking.reservation.addons")), 1)
|
|
461
461
|
]),
|
|
462
462
|
ql,
|
|
463
463
|
l("th", Ml, [
|
|
464
|
-
l("span", null, n(e(
|
|
464
|
+
l("span", null, n(e(a)("booking.availability.price")), 1)
|
|
465
465
|
])
|
|
466
466
|
])
|
|
467
467
|
]),
|
|
468
468
|
l("tbody", null, [
|
|
469
|
-
(t(!0), i(V, null, w(e(Oe).products, ({ productID:
|
|
469
|
+
(t(!0), i(V, null, w(e(Oe).products, ({ productID: o, productName: c, price: _, description: m }) => (t(), i("tr", { key: o }, [
|
|
470
470
|
l("td", null, [
|
|
471
471
|
l("b", null, [
|
|
472
|
-
l("span", null, n(
|
|
472
|
+
l("span", null, n(c), 1)
|
|
473
473
|
]),
|
|
474
474
|
zl,
|
|
475
|
-
l("span", null, n(
|
|
475
|
+
l("span", null, n(m), 1),
|
|
476
476
|
Il,
|
|
477
477
|
l("span", null, n(e($)(_, e(k))), 1)
|
|
478
478
|
]),
|
|
479
479
|
l("td", Wl, [
|
|
480
480
|
r(G, {
|
|
481
|
-
modelValue: e(z)[
|
|
482
|
-
"onUpdate:modelValue": (
|
|
481
|
+
modelValue: e(z)[o],
|
|
482
|
+
"onUpdate:modelValue": (p) => e(z)[o] = p,
|
|
483
483
|
small: !0,
|
|
484
484
|
"min-value": 0
|
|
485
485
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
486
486
|
]),
|
|
487
487
|
l("td", Yl, [
|
|
488
|
-
l("span", null, n(e($)(e(ae)(
|
|
488
|
+
l("span", null, n(e($)(e(ae)(o), e(k))), 1)
|
|
489
489
|
])
|
|
490
490
|
]))), 128))
|
|
491
491
|
])
|
|
@@ -494,42 +494,42 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
|
|
|
494
494
|
]),
|
|
495
495
|
resume: g(() => [
|
|
496
496
|
l("li", null, [
|
|
497
|
-
l("span", null, n(e(
|
|
497
|
+
l("span", null, n(e(a)("event.numberOfGuests")), 1),
|
|
498
498
|
l("b", null, n(e(s)), 1)
|
|
499
499
|
]),
|
|
500
500
|
e(T) ? (t(), i("li", Hl, [
|
|
501
|
-
l("span", null, n(e(
|
|
501
|
+
l("span", null, n(e(a)("event.numberOfRooms")), 1),
|
|
502
502
|
l("b", null, n(e(F)), 1)
|
|
503
503
|
])) : u("", !0),
|
|
504
504
|
e(T) ? (t(), i("li", Kl, [
|
|
505
|
-
l("span", null, n(e(
|
|
505
|
+
l("span", null, n(e(a)("event.numberOfDays")), 1),
|
|
506
506
|
l("b", null, n(e(f)), 1)
|
|
507
507
|
])) : u("", !0),
|
|
508
508
|
e(T) ? (t(), i("li", Ql, [
|
|
509
|
-
l("span", null, n(e(
|
|
509
|
+
l("span", null, n(e(a)("booking.reservation.arrival")), 1),
|
|
510
510
|
l("b", null, n(e(ce)(e(le))), 1)
|
|
511
511
|
])) : u("", !0),
|
|
512
512
|
e(T) ? (t(), i("li", Xl, [
|
|
513
|
-
l("span", null, n(e(
|
|
513
|
+
l("span", null, n(e(a)("booking.reservation.departure")), 1),
|
|
514
514
|
l("b", null, n(e(ce)(e(le), e(f))), 1)
|
|
515
515
|
])) : u("", !0),
|
|
516
516
|
!e(T) && e(O) ? (t(), i("li", Zl, [
|
|
517
|
-
l("span", null, n(e(
|
|
517
|
+
l("span", null, n(e(a)("event.startOfEvent")), 1),
|
|
518
518
|
l("b", null, n(e(x)(e(O))), 1)
|
|
519
519
|
])) : u("", !0),
|
|
520
520
|
!e(T) && e(ee) ? (t(), i("li", jl, [
|
|
521
|
-
l("span", null, n(e(
|
|
521
|
+
l("span", null, n(e(a)("event.lengthOfEvent")), 1),
|
|
522
522
|
l("b", null, n(e(x)(e(ee))), 1)
|
|
523
523
|
])) : u("", !0),
|
|
524
524
|
!e(T) && e(te) > 0 ? (t(), i("li", Jl, [
|
|
525
|
-
l("span", null, n(e(
|
|
525
|
+
l("span", null, n(e(a)("booking.availability.basePrice")), 1),
|
|
526
526
|
l("b", null, n(e($)(e(te), e(k))), 1)
|
|
527
527
|
])) : u("", !0)
|
|
528
528
|
]),
|
|
529
529
|
expenses: g(() => [
|
|
530
|
-
(t(!0), i(V, null, w(e(W), ({ roomGroupID:
|
|
531
|
-
l("span", null, n(e(
|
|
532
|
-
l("b", null, n(e($)(e(oe)(
|
|
530
|
+
(t(!0), i(V, null, w(e(W), ({ roomGroupID: o }, c) => (t(), i("li", { key: o }, [
|
|
531
|
+
l("span", null, n(e(a)("booking.reservation.addons")) + " - " + n(e(a)("booking.reservation.room")) + " #" + n(c + 1), 1),
|
|
532
|
+
l("b", null, n(e($)(e(oe)(o, c), e(k))), 1)
|
|
533
533
|
]))), 128))
|
|
534
534
|
]),
|
|
535
535
|
_: 2
|
|
@@ -540,7 +540,7 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
|
|
|
540
540
|
]),
|
|
541
541
|
confirmation: g(() => [
|
|
542
542
|
r(cl, {
|
|
543
|
-
message: e(
|
|
543
|
+
message: e(a)("event.confirmationMessage")
|
|
544
544
|
}, null, 8, ["message"])
|
|
545
545
|
]),
|
|
546
546
|
_: 1
|
package/dist/event.js.br
CHANGED
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-4755fb8a.cjs"),c=require("./NumberField.vue_vue_type_script_setup_true_lang-50fc08f1.cjs"),_=require("./ActionField-23ce1b2a.cjs");require("./TextField-6f7e37d9.cjs");require("./_commonjsHelpers-6763f629.cjs");const y=o=>(e.pushScopeId("data-v-5d5827dc"),o=o(),e.popScopeId(),o),N=["innerHTML"],B={key:0,id:"fresh-booking-gift-card-validation-resume",class:"fresh-booking-panel"},m=y(()=>e.createBaseVNode("span",null,"Loading...",-1)),C=e.defineComponent({name:"GiftCardValidationLayout",__name:"GiftCardValidation",props:{accessToken:{},styling:{}},setup(o){const{t:a}=e.useI18n(),{voucher:l,isValid:u,amount:p,expirationDate:f,productName:V,isLoading:i}=e.storeToRefs(c.useApplyGiftCardStore()),{currency:g}=e.storeToRefs(e.useUtilityStore()),{apply:s}=c.useApplyGiftCardStore();return(d,t)=>(e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(e._sfc_main,{id:"fresh-booking-gift-card-validation-module","access-token":d.accessToken,type:"gift-card",styling:d.styling},{default:e.withCtx(()=>[e.createBaseVNode("form",{onSubmit:t[3]||(t[3]=e.withModifiers(n=>e.unref(s)(),["prevent"]))},[e.createBaseVNode("h4",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.title")),1)]),e.createBaseVNode("p",{innerHTML:e.unref(a)("giftCardValidation.description")},null,8,N),e.createVNode(_.ActionField,{modelValue:e.unref(l),"onUpdate:modelValue":t[0]||(t[0]=n=>e.isRef(l)?l.value=n:null),icon:"gift-card",label:e.unref(a)("booking.reservation.giftCardCode"),buttonLabel:e.unref(a)("giftCardValidation.submitButton"),placeholder:"XXXXXXXX","is-loading":e.unref(i),"onUpdate:isLoading":t[1]||(t[1]=n=>e.isRef(i)?i.value=n:null),onAction:t[2]||(t[2]=n=>e.unref(s)())},null,8,["modelValue","label","buttonLabel","is-loading"]),!e.unref(i)&&e.unref(u)?(e.openBlock(),e.createElementBlock("table",B,[e.createBaseVNode("thead",null,[e.createBaseVNode("tr",null,[e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.giftCard")),1),e.createVNode(e.Icon,{icon:"gift-card",type:"fas",color:"header"})]),e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.balance")),1),e.createVNode(e.Icon,{icon:"money-bill",type:"fas",color:"header"})]),e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.expirationDate")),1),e.createVNode(e.Icon,{icon:"timer",type:"fas",color:"header"})])])]),e.createBaseVNode("tbody",null,[e.createBaseVNode("tr",null,[e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(V)),1)]),e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(e.unref(p),e.unref(g))),1)]),e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showDate)(e.unref(f))),1)])])])])):e.createCommentVNode("",!0)],32)]),_:1},8,["access-token","styling"])]),fallback:e.withCtx(()=>[m]),_:1}))}});const b=e._export_sfc(C,[["__scopeId","data-v-5d5827dc"]]),r=e.createApp({components:{GiftCardValidation:b}}),v=e.createPinia();r.use(v);r.use(e.instance);r.mount("#konnectio-gift-card-validation-app");module.exports=r;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { h as L, y as S, s as g, a as X, k as _, l as w, w as u, m as l, x as a, z as o, n as t, A as y, q as x, B as p, D as A, F as B, t as G, G as I, H as D, J as N, K as T, L as M, _ as H, M as P, N as U, P as $ } from "./SelectField.vue_vue_type_style_index_0_lang-
|
|
2
|
-
import { u as b } from "./NumberField.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { A as F } from "./ActionField-
|
|
4
|
-
import "./TextField-
|
|
1
|
+
import { h as L, y as S, s as g, a as X, k as _, l as w, w as u, m as l, x as a, z as o, n as t, A as y, q as x, B as p, D as A, F as B, t as G, G as I, H as D, J as N, K as T, L as M, _ as H, M as P, N as U, P as $ } from "./SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js";
|
|
2
|
+
import { u as b } from "./NumberField.vue_vue_type_script_setup_true_lang-2eb1b46f.js";
|
|
3
|
+
import { A as F } from "./ActionField-311942d2.js";
|
|
4
|
+
import "./TextField-cd93b966.js";
|
|
5
5
|
import "./_commonjsHelpers-c5d32002.js";
|
|
6
6
|
const R = (s) => (T("data-v-5d5827dc"), s = s(), M(), s), q = ["innerHTML"], z = {
|
|
7
7
|
key: 0,
|
|
Binary file
|
package/dist/gift-card.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-2bf82818.cjs"),V=require("./index-a46a0876.cjs"),M=require("./_-3cff5490.cjs"),x=require("./TextField-528ca68c.cjs"),R=require("./Field-d926807f.cjs");require("./_commonjsHelpers-6763f629.cjs");const U=e.defineStore("giftCard",()=>{e.useAlertStore();const{pay:y}=M.usePaymentStore(),{bearerToken:l,metaData:o}=e.storeToRefs(e.useUtilityStore()),t=e.ref(e.GiftCardModuleState.InitialState),g=e.useStorage("freshBookingName","",void 0,{serializer:e.StorageSerializers.string}),d=e.useStorage("freshBookingEmail","",void 0,{serializer:e.StorageSerializers.string}),c=e.useStorage("freshBookingPhone","",void 0,{serializer:e.StorageSerializers.string}),p=e.ref(""),F=e.ref(1),C=e.ref(!0),k=e.ref(""),s=e.ref({base64:"",type:"",name:""}),n=e.ref(void 0),i=e.ref(0),f=e.ref(!1),m=e.ref(0),h=e.computed(()=>t.value===e.GiftCardModuleState.InitialState||t.value===e.GiftCardModuleState.WaitingForResponse),B=e.computed(()=>t.value===e.GiftCardModuleState.ReadyToPay),v=e.computed(()=>t.value===e.GiftCardModuleState.PaymentSuccess),w=e.computed(()=>{const u={1:{label:e.i18n.t("giftCard.hotelType"),data:[]},2:{label:e.i18n.t("giftCard.restaurantType"),data:[]}},a=o.value.places;return a&&a.forEach(_=>{u[_.placeType].data.push(_)}),Object.fromEntries(Object.entries(u).filter(([,_])=>_.data.length>0))}),T=e.computed(()=>m.value!==0),b=e.computed(()=>{let u;if(T.value)u=w.value[m.value].data[0];else if(i.value!==0){const a=n.value,_=w.value[i.value].data;_.length===1?u=_[0]:a!==void 0&&_.forEach(z=>{String(z.id)===String(a)&&(u=z)})}return u}),E=e.computed(()=>!(!g.value||!d.value||!(c.value.length>=5)||!p.value||b.value===void 0)),q=e.computed(()=>!(t.value===e.GiftCardModuleState.InitialState&&f.value)),P=e.computed(()=>!!(t.value===e.GiftCardModuleState.WaitingForResponse&&f.value));async function N(){t.value=e.GiftCardModuleState.WaitingForResponse,f.value=!0,await e.axios.post("http://stage.hotel_service.konnectio.dk/api/gift-card/create",{termsOfserviceURL:"https://freshbooking.dk",checkoutUrl:"https://freshbooking.dk",currencyID:o.value.currency.id,language:e.getUserLanguage(),amount:p.value,quantity:F.value,freeText:k.value,showPrice:C.value,contactName:g.value,contactEmail:d.value,contactPhone:c.value,imageBase64:e.b2a(s.value.base64),imageName:s.value.name,imageFormat:s.value.type,placeType:b.value?b.value.placeType:void 0,placeID:b.value?b.value.id:void 0},{headers:{Authorization:l.value,Accept:"application/json","Fresh-Booking-Ver":"4.0.9"}}).then(u=>{t.value=e.GiftCardModuleState.ReadyToPay,f.value=!1,y({callback:()=>console.log("Callback!"),response:u.data})})}function r(u){u&&(m.value=u)}return{moduleState:t,name:g,email:d,phone:c,value:p,remark:k,showValue:C,quantity:F,media:s,placeId:n,placeType:i,showFormPage:h,showPaymentPage:B,showConfirmationPage:v,places:w,hasFilledForm:E,hasForcedPlaceType:T,isWaitingForResponse:P,isMetaDataAvailable:q,orderGiftCard:N,initialize:r}}),$={class:"media-selector"},D=["accept"],I={class:"media-selector-wrapper"},L={class:"media-selector-tools"},A={key:0},W={key:1},j={key:2},H=["src"],O=e.defineComponent({__name:"MediaSelector",props:{modelValue:{},validation:{default:"image/*"},iconColor:{default:"#000"},label:{},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(y,{emit:l}){const o=y,{t}=e.useI18n(),{display:g}=e.useAlertStore(),d=e.ref(),c=e.computed(()=>o.modelValue.base64!=="");function p(n){l("update:modelValue",n)}function F(){p({base64:"",name:"",type:""}),d.value&&(d.value.value="")}function C(){d.value&&d.value.click()}function k(n,i){const[f,m]=[n.name,n.type],h=new FileReader;h.onload=function(B){if(B.target){const v=B.target.result;i({base64:v,name:f,type:m})}else g({message:t("imageUploadError"),type:"error"})},h.readAsDataURL(n)}async function s(){let n;(n=d.value.files)instanceof FileList&&k(n[0],p)}return(n,i)=>(e.openBlock(),e.createBlock(e.InputField,{label:n.label,required:n.required,type:"media"},{default:e.withCtx(()=>[e.createBaseVNode("div",$,[e.createBaseVNode("input",{ref_key:"fileInput",ref:d,type:"file",class:"hidden",accept:n.validation,single:"",onChange:i[0]||(i[0]=f=>s())},null,40,D),e.createBaseVNode("div",I,[e.createBaseVNode("ul",L,[c.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",A,[e.createVNode(e.Clickable,{label:e.unref(t)("uploadFile"),type:"button",icon:"upload","icon-color":n.iconColor,onClickEvent:i[1]||(i[1]=f=>C())},null,8,["label","icon-color"])])),c.value?(e.openBlock(),e.createElementBlock("li",W,[e.createVNode(e.Clickable,{label:e.unref(t)("replaceFile"),type:"button",icon:"repeat-alt","icon-color":n.iconColor,onClickEvent:i[2]||(i[2]=f=>C())},null,8,["label","icon-color"])])):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("li",j,[e.createVNode(e.Clickable,{label:e.unref(t)("removeFile"),type:"button",icon:"trash-alt","icon-color":n.iconColor,onClickEvent:i[3]||(i[3]=f=>F())},null,8,["label","icon-color"])])):e.createCommentVNode("",!0)]),e.createBaseVNode("div",{class:e.normalizeClass(["media-selector-previewer",{opened:c.value}])},[n.modelValue?(e.openBlock(),e.createElementBlock("img",{key:0,src:n.modelValue.base64},null,8,H)):e.createCommentVNode("",!0)],2)])])]),_:1},8,["label","required"]))}});function G(y){const l=y;l.__i18n=l.__i18n||[],l.__i18n.push({locale:"",resource:{da:{uploadFile:o=>{const{normalize:t}=o;return t(["Upload billede"])},removeFile:o=>{const{normalize:t}=o;return t(["Fjern billede"])},replaceFile:o=>{const{normalize:t}=o;return t(["Ersat billede"])},imageUploadError:o=>{const{normalize:t}=o;return t(["Der skete en fejl under billede upload!"])}},en:{uploadFile:o=>{const{normalize:t}=o;return t(["Upload image"])},removeFile:o=>{const{normalize:t}=o;return t(["Remove image"])},replaceFile:o=>{const{normalize:t}=o;return t(["Replace image"])},imageUploadError:o=>{const{normalize:t}=o;return t(["An error occurred under image upload!"])}}}})}typeof G=="function"&&G(O);const K={class:"gift-card-skeleton"},Y={class:"gift-card-skeleton-form"},J=e.defineComponent({__name:"GiftCardSkeleton",setup(y){return(l,o)=>(e.openBlock(),e.createElementBlock("div",K,[e.createBaseVNode("div",Y,[e.createVNode(R.Field),e.createVNode(R.Field),e.createVNode(R.Field),e.createVNode(R.Field),e.createVNode(R.Field,{"is-text-area":""}),e.createVNode(M.Element,{height:"44px"})])]))}});const Q=e._export_sfc(J,[["__scopeId","data-v-2600a731"]]),X={key:0,id:"fresh-booking-gift-card-wrapper"},Z={id:"fresh-booking-gift-card-title"},ee={id:"fresh-booking-gift-card-content"},te={id:"fresh-booking-gift-card-payment"},ae=["innerHTML"],le={key:0},oe={key:0,id:"fresh-booking-select-place-type"},ne={class:e.normalizeClass(["fresh-booking-label","required"])},re={id:"fresh-booking-select-place-type-input"},ie=["innerHTML"],de={key:0,id:"fresh-booking-gift-card-order"},se={class:"fresh-booking-panel"},ue={key:1,id:"fresh-booking-gift-card-remarks"},ce={key:2,id:"fresh-booking-gift-card-order-minimal","sticky-side":"bottom"},fe={id:"fresh-booking-gift-card-recaptcha"},pe=e.defineComponent({name:"GiftCardLayout",__name:"GiftCard",props:{accessToken:{},layout:{default:"minimal"},placeType:{},styling:{}},setup(y){const{t:l}=e.useI18n(),{name:o,email:t,phone:g,value:d,remark:c,showValue:p,quantity:F,media:C,placeId:k,placeType:s,showFormPage:n,showPaymentPage:i,showConfirmationPage:f,places:m,hasFilledForm:h,hasForcedPlaceType:B,isWaitingForResponse:v,isMetaDataAvailable:w}=e.storeToRefs(U()),{initialize:T,orderGiftCard:b}=U(),{isRecaptchaEnabled:E,currency:q}=e.storeToRefs(e.useUtilityStore());async function P(){await b()}return e.watch(s,()=>{k.value=void 0}),e.onMounted(()=>{T()}),(N,r)=>{const u=e.resolveDirective("sticky");return e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(e._sfc_main,{id:"fresh-booking-gift-card-module",type:"gift-card","access-token":N.accessToken,"data-layout":N.layout,styling:N.styling,"sticky-container":""},{default:e.withCtx(()=>[e.unref(w)?(e.openBlock(),e.createElementBlock("div",X,[e.createBaseVNode("h4",Z,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(l)("giftCard.title")),1)]),e.createBaseVNode("div",ee,[e.withDirectives(e.createBaseVNode("div",te,[e.createVNode(V.CheckoutWindow)],512),[[e.vShow,e.unref(i)]]),e.withDirectives(e.createBaseVNode("div",null,[e.createBaseVNode("p",{id:"fresh-booking-gift-card-description",innerHTML:e.unref(l)("giftCard.description")},null,8,ae),e.createBaseVNode("form",null,[e.createVNode(x.TextField,{modelValue:e.unref(o),"onUpdate:modelValue":r[0]||(r[0]=a=>e.isRef(o)?o.value=a:null),type:"text",name:"name",autocomplete:"name",label:e.unref(l)("giftCard.name"),icon:"user-alt",placeholder:e.unref(l)("giftCard.namePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(x.TextField,{modelValue:e.unref(t),"onUpdate:modelValue":r[1]||(r[1]=a=>e.isRef(t)?t.value=a:null),type:"email",name:"email",autocomplete:"email",label:e.unref(l)("giftCard.email"),icon:"at",placeholder:e.unref(l)("giftCard.emailPlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(V.PhoneField,{modelValue:e.unref(g),"onUpdate:modelValue":r[2]||(r[2]=a=>e.isRef(g)?g.value=a:null),icon:"phone-office",label:e.unref(l)("giftCard.phone"),placeholder:e.unref(l)("giftCard.phonePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.unref(B)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",le,[e.unref(m)?(e.openBlock(),e.createElementBlock("div",oe,[e.createBaseVNode("label",ne,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(l)("giftCard.selectType")),1)]),e.createBaseVNode("div",re,[e.createBaseVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m),(a,_)=>(e.openBlock(),e.createElementBlock("li",{key:_},[e.createVNode(V.Checkbox,{modelValue:e.unref(s),"onUpdate:modelValue":r[3]||(r[3]=z=>e.isRef(s)?s.value=z:null),type:"radio",name:"placeType",val:_,label:a.label},null,8,["modelValue","val","label"])]))),128))]),e.unref(m)[e.unref(s)]&&e.unref(m)[e.unref(s)].data.length>1?(e.openBlock(),e.createBlock(x._sfc_main,{key:0,modelValue:e.unref(k),"onUpdate:modelValue":r[4]||(r[4]=a=>e.isRef(k)?k.value=a:null),placeholder:e.unref(l)("giftCard.selectPlacePlaceholder"),options:e.unref(m)[e.unref(s)].data,labelKey:"name",valueKey:"id",required:""},null,8,["modelValue","placeholder","options"])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createBlock(e.Loading,{key:1}))])),e.createVNode(x.TextField,{modelValue:e.unref(d),"onUpdate:modelValue":r[5]||(r[5]=a=>e.isRef(d)?d.value=a:null),type:"number",name:"value",label:e.unref(l)("giftCard.value"),icon:"money-bill",placeholder:e.unref(l)("giftCard.valuePlaceholder"),suffix:e.unref(q),required:""},null,8,["modelValue","label","placeholder","suffix"]),e.createVNode(V.Checkbox,{modelValue:e.unref(p),"onUpdate:modelValue":r[6]||(r[6]=a=>e.isRef(p)?p.value=a:null),type:"checkbox",name:"showValue",label:e.unref(l)("giftCard.showValue"),checked:e.unref(p)},null,8,["modelValue","label","checked"]),e.createCommentVNode("",!0),e.createCommentVNode("",!0)])],512),[[e.vShow,e.unref(n)]]),e.withDirectives(e.createBaseVNode("div",null,[e.createBaseVNode("div",{innerHTML:e.unref(l)("giftCard.thankYou")},null,8,ie)],512),[[e.vShow,e.unref(f)]])]),N.layout!=="minimal"&&e.unref(n)?(e.openBlock(),e.createElementBlock("div",de,[e.createBaseVNode("div",se,[e.createVNode(e.Clickable,{label:e.unref(l)("giftCard.orderGiftCard"),"full-width":!0,disabled:!e.unref(h),"is-loading":e.unref(v),"onUpdate:isLoading":r[9]||(r[9]=a=>e.isRef(v)?v.value=a:null),onClickEvent:P},null,8,["label","disabled","is-loading"])])])):e.createCommentVNode("",!0),e.unref(n)?(e.openBlock(),e.createElementBlock("div",ue,[e.createVNode(x.TextField,{modelValue:e.unref(c),"onUpdate:modelValue":r[10]||(r[10]=a=>e.isRef(c)?c.value=a:null),type:"textarea",name:"remark",label:e.unref(l)("giftCard.remark"),icon:"info-circle",placeholder:e.unref(l)("giftCard.remarkPlaceholder")},null,8,["modelValue","label","placeholder"])])):e.createCommentVNode("",!0),e.unref(n)?e.withDirectives((e.openBlock(),e.createElementBlock("div",ce,[e.createVNode(e.Clickable,{label:e.unref(l)("giftCard.orderGiftCard"),"full-width":!0,disabled:!e.unref(h),"data-test":"orderGiftCard","is-loading":e.unref(v),"onUpdate:isLoading":r[11]||(r[11]=a=>e.isRef(v)?v.value=a:null),onClickEvent:P},null,8,["label","disabled","is-loading"]),e.withDirectives(e.createBaseVNode("div",fe,[e.createVNode(V._sfc_main)],512),[[e.vShow,e.unref(E)]])])),[[u]]):e.createCommentVNode("",!0)])):(e.openBlock(),e.createBlock(e.Loading,{key:1}))]),_:1},8,["access-token","data-layout","styling"])]),fallback:e.withCtx(()=>[e.createVNode(Q)]),_:1})}}});const me=e._export_sfc(pe,[["__scopeId","data-v-e4aa1e4c"]]),_e=e.createPinia(),ve=e.zo(),S=e.createApp({components:{GiftCard:me}});S.use(_e);S.use(e.instance);S.use(ve);S.use(V.StickyPlugin);S.use(V.install,{bootstrap:!1});S.mount("#konnectio-gift-card-app");
|
|
1
|
+
"use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-4755fb8a.cjs"),V=require("./index-345407fb.cjs"),M=require("./_-0895679a.cjs"),x=require("./TextField-6f7e37d9.cjs"),R=require("./Field-dcffacf2.cjs");require("./_commonjsHelpers-6763f629.cjs");const U=e.defineStore("giftCard",()=>{e.useAlertStore();const{pay:y}=M.usePaymentStore(),{bearerToken:l,metaData:o}=e.storeToRefs(e.useUtilityStore()),t=e.ref(e.GiftCardModuleState.InitialState),p=e.useStorage("freshBookingName","",void 0,{serializer:e.StorageSerializers.string}),g=e.useStorage("freshBookingEmail","",void 0,{serializer:e.StorageSerializers.string}),s=e.useStorage("freshBookingPhone","",void 0,{serializer:e.StorageSerializers.string}),f=e.ref(""),C=e.ref(1),w=e.ref(!0),v=e.ref(""),u=e.ref({base64:"",type:"",name:""}),k=e.ref(void 0),n=e.ref(0),i=e.ref(!1),d=e.ref(0),B=e.computed(()=>t.value===e.GiftCardModuleState.InitialState||t.value===e.GiftCardModuleState.WaitingForResponse),N=e.computed(()=>t.value===e.GiftCardModuleState.ReadyToPay),m=e.computed(()=>t.value===e.GiftCardModuleState.PaymentSuccess),h=e.computed(()=>{const c={1:{label:e.i18n.t("giftCard.hotelType"),data:[]},2:{label:e.i18n.t("giftCard.restaurantType"),data:[]}},a=o.value.places;return a&&a.forEach(_=>{c[_.placeType].data.push(_)}),Object.fromEntries(Object.entries(c).filter(([,_])=>_.data.length>0))}),T=e.computed(()=>d.value!==0),b=e.computed(()=>{let c;if(T.value)c=h.value[d.value].data[0];else if(n.value!==0){const a=k.value,_=h.value[n.value].data;_.length===1?c=_[0]:a!==void 0&&_.forEach(z=>{String(z.id)===String(a)&&(c=z)})}return c}),E=e.computed(()=>!(!p.value||!g.value||!(s.value.length>=5)||!f.value||b.value===void 0)),q=e.computed(()=>!(t.value===e.GiftCardModuleState.InitialState&&i.value)),P=e.computed(()=>!!(t.value===e.GiftCardModuleState.WaitingForResponse&&i.value));async function S(){t.value=e.GiftCardModuleState.WaitingForResponse,i.value=!0,await e.axios.post("https://stage.hotel-service.konnectio.dk/api/gift-card/create",{termsOfserviceURL:"https://freshbooking.dk",checkoutUrl:"https://freshbooking.dk",currencyID:o.value.currency.id,language:e.getUserLanguage(),amount:f.value,quantity:C.value,freeText:v.value,showPrice:w.value,contactName:p.value,contactEmail:g.value,contactPhone:s.value,imageBase64:e.b2a(u.value.base64),imageName:u.value.name,imageFormat:u.value.type,placeType:b.value?b.value.placeType:void 0,placeID:b.value?b.value.id:void 0},{headers:{Authorization:l.value,Accept:"application/json","Fresh-Booking-Ver":"4.0.12"}}).then(c=>{t.value=e.GiftCardModuleState.ReadyToPay,i.value=!1,y({callback:()=>console.log("Callback!"),response:c.data})})}function r(c){c&&(d.value=c)}return{moduleState:t,name:p,email:g,phone:s,value:f,remark:v,showValue:w,quantity:C,media:u,placeId:k,placeType:n,showFormPage:B,showPaymentPage:N,showConfirmationPage:m,places:h,hasFilledForm:E,hasForcedPlaceType:T,isWaitingForResponse:P,isMetaDataAvailable:q,orderGiftCard:S,initialize:r}}),$={class:"media-selector"},D=["accept"],I={class:"media-selector-wrapper"},L={class:"media-selector-tools"},A={key:0},W={key:1},j={key:2},H=["src"],O=e.defineComponent({__name:"MediaSelector",props:{modelValue:{},validation:{default:"image/*"},iconColor:{default:"#000"},label:{},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(y,{emit:l}){const o=l,t=y,{t:p}=e.useI18n(),{display:g}=e.useAlertStore(),s=e.ref(),f=e.computed(()=>t.modelValue.base64!=="");function C(n){o("update:modelValue",n)}function w(){C({base64:"",name:"",type:""}),s.value&&(s.value.value="")}function v(){s.value&&s.value.click()}function u(n,i){const[d,B]=[n.name,n.type],N=new FileReader;N.onload=function(m){if(m.target){const h=m.target.result;i({base64:h,name:d,type:B})}else g({message:p("imageUploadError"),type:"error"})},N.readAsDataURL(n)}async function k(){let n;(n=s.value.files)instanceof FileList&&u(n[0],C)}return(n,i)=>(e.openBlock(),e.createBlock(e.InputField,{label:n.label,required:n.required,type:"media"},{default:e.withCtx(()=>[e.createBaseVNode("div",$,[e.createBaseVNode("input",{ref_key:"fileInput",ref:s,type:"file",class:"hidden",accept:n.validation,single:"",onChange:i[0]||(i[0]=d=>k())},null,40,D),e.createBaseVNode("div",I,[e.createBaseVNode("ul",L,[f.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",A,[e.createVNode(e.Clickable,{label:e.unref(p)("uploadFile"),type:"button",icon:"upload","icon-color":n.iconColor,onClickEvent:i[1]||(i[1]=d=>v())},null,8,["label","icon-color"])])),f.value?(e.openBlock(),e.createElementBlock("li",W,[e.createVNode(e.Clickable,{label:e.unref(p)("replaceFile"),type:"button",icon:"repeat-alt","icon-color":n.iconColor,onClickEvent:i[2]||(i[2]=d=>v())},null,8,["label","icon-color"])])):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("li",j,[e.createVNode(e.Clickable,{label:e.unref(p)("removeFile"),type:"button",icon:"trash-alt","icon-color":n.iconColor,onClickEvent:i[3]||(i[3]=d=>w())},null,8,["label","icon-color"])])):e.createCommentVNode("",!0)]),e.createBaseVNode("div",{class:e.normalizeClass(["media-selector-previewer",{opened:f.value}])},[n.modelValue?(e.openBlock(),e.createElementBlock("img",{key:0,src:n.modelValue.base64},null,8,H)):e.createCommentVNode("",!0)],2)])])]),_:1},8,["label","required"]))}});function G(y){const l=y;l.__i18n=l.__i18n||[],l.__i18n.push({locale:"",resource:{da:{uploadFile:o=>{const{normalize:t}=o;return t(["Upload billede"])},removeFile:o=>{const{normalize:t}=o;return t(["Fjern billede"])},replaceFile:o=>{const{normalize:t}=o;return t(["Ersat billede"])},imageUploadError:o=>{const{normalize:t}=o;return t(["Der skete en fejl under billede upload!"])}},en:{uploadFile:o=>{const{normalize:t}=o;return t(["Upload image"])},removeFile:o=>{const{normalize:t}=o;return t(["Remove image"])},replaceFile:o=>{const{normalize:t}=o;return t(["Replace image"])},imageUploadError:o=>{const{normalize:t}=o;return t(["An error occurred under image upload!"])}}}})}typeof G=="function"&&G(O);const K={class:"gift-card-skeleton"},Y={class:"gift-card-skeleton-form"},J=e.defineComponent({__name:"GiftCardSkeleton",setup(y){return(l,o)=>(e.openBlock(),e.createElementBlock("div",K,[e.createBaseVNode("div",Y,[e.createVNode(R.Field),e.createVNode(R.Field),e.createVNode(R.Field),e.createVNode(R.Field),e.createVNode(R.Field,{"is-text-area":""}),e.createVNode(M.Element,{height:"44px"})])]))}});const Q=e._export_sfc(J,[["__scopeId","data-v-2600a731"]]),X={key:0,id:"fresh-booking-gift-card-wrapper"},Z={id:"fresh-booking-gift-card-title"},ee={id:"fresh-booking-gift-card-content"},te={id:"fresh-booking-gift-card-payment"},ae=["innerHTML"],le={key:0},oe={key:0,id:"fresh-booking-select-place-type"},ne={class:e.normalizeClass(["fresh-booking-label","required"])},re={id:"fresh-booking-select-place-type-input"},ie=["innerHTML"],de={key:0,id:"fresh-booking-gift-card-order"},se={class:"fresh-booking-panel"},ue={key:1,id:"fresh-booking-gift-card-remarks"},ce={key:2,id:"fresh-booking-gift-card-order-minimal","sticky-side":"bottom"},fe={id:"fresh-booking-gift-card-recaptcha"},pe=e.defineComponent({name:"GiftCardLayout",__name:"GiftCard",props:{accessToken:{},layout:{default:"minimal"},placeType:{},styling:{}},setup(y){const{t:l}=e.useI18n(),{name:o,email:t,phone:p,value:g,remark:s,showValue:f,quantity:C,media:w,placeId:v,placeType:u,showFormPage:k,showPaymentPage:n,showConfirmationPage:i,places:d,hasFilledForm:B,hasForcedPlaceType:N,isWaitingForResponse:m,isMetaDataAvailable:h}=e.storeToRefs(U()),{initialize:T,orderGiftCard:b}=U(),{isRecaptchaEnabled:E,currency:q}=e.storeToRefs(e.useUtilityStore());async function P(){await b()}return e.watch(u,()=>{v.value=void 0}),e.onMounted(()=>{T()}),(S,r)=>{const c=e.resolveDirective("sticky");return e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(e._sfc_main,{id:"fresh-booking-gift-card-module",type:"gift-card","access-token":S.accessToken,"data-layout":S.layout,styling:S.styling,"sticky-container":""},{default:e.withCtx(()=>[e.unref(h)?(e.openBlock(),e.createElementBlock("div",X,[e.createBaseVNode("h4",Z,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(l)("giftCard.title")),1)]),e.createBaseVNode("div",ee,[e.withDirectives(e.createBaseVNode("div",te,[e.createVNode(V.CheckoutWindow)],512),[[e.vShow,e.unref(n)]]),e.withDirectives(e.createBaseVNode("div",null,[e.createBaseVNode("p",{id:"fresh-booking-gift-card-description",innerHTML:e.unref(l)("giftCard.description")},null,8,ae),e.createBaseVNode("form",null,[e.createVNode(x.TextField,{modelValue:e.unref(o),"onUpdate:modelValue":r[0]||(r[0]=a=>e.isRef(o)?o.value=a:null),type:"text",name:"name",autocomplete:"name",label:e.unref(l)("giftCard.name"),icon:"user-alt",placeholder:e.unref(l)("giftCard.namePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(x.TextField,{modelValue:e.unref(t),"onUpdate:modelValue":r[1]||(r[1]=a=>e.isRef(t)?t.value=a:null),type:"email",name:"email",autocomplete:"email",label:e.unref(l)("giftCard.email"),icon:"at",placeholder:e.unref(l)("giftCard.emailPlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(V.PhoneField,{modelValue:e.unref(p),"onUpdate:modelValue":r[2]||(r[2]=a=>e.isRef(p)?p.value=a:null),icon:"phone-office",label:e.unref(l)("giftCard.phone"),placeholder:e.unref(l)("giftCard.phonePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.unref(N)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",le,[e.unref(d)?(e.openBlock(),e.createElementBlock("div",oe,[e.createBaseVNode("label",ne,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(l)("giftCard.selectType")),1)]),e.createBaseVNode("div",re,[e.createBaseVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d),(a,_)=>(e.openBlock(),e.createElementBlock("li",{key:_},[e.createVNode(V.Checkbox,{modelValue:e.unref(u),"onUpdate:modelValue":r[3]||(r[3]=z=>e.isRef(u)?u.value=z:null),type:"radio",name:"placeType",val:_,label:a.label},null,8,["modelValue","val","label"])]))),128))]),e.unref(d)[e.unref(u)]&&e.unref(d)[e.unref(u)].data.length>1?(e.openBlock(),e.createBlock(x._sfc_main,{key:0,modelValue:e.unref(v),"onUpdate:modelValue":r[4]||(r[4]=a=>e.isRef(v)?v.value=a:null),placeholder:e.unref(l)("giftCard.selectPlacePlaceholder"),options:e.unref(d)[e.unref(u)].data,labelKey:"name",valueKey:"id",required:""},null,8,["modelValue","placeholder","options"])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createBlock(e.Loading,{key:1}))])),e.createVNode(x.TextField,{modelValue:e.unref(g),"onUpdate:modelValue":r[5]||(r[5]=a=>e.isRef(g)?g.value=a:null),type:"number",name:"value",label:e.unref(l)("giftCard.value"),icon:"money-bill",placeholder:e.unref(l)("giftCard.valuePlaceholder"),suffix:e.unref(q),required:""},null,8,["modelValue","label","placeholder","suffix"]),e.createVNode(V.Checkbox,{modelValue:e.unref(f),"onUpdate:modelValue":r[6]||(r[6]=a=>e.isRef(f)?f.value=a:null),type:"checkbox",name:"showValue",label:e.unref(l)("giftCard.showValue"),checked:e.unref(f)},null,8,["modelValue","label","checked"]),e.createCommentVNode("",!0),e.createCommentVNode("",!0)])],512),[[e.vShow,e.unref(k)]]),e.withDirectives(e.createBaseVNode("div",null,[e.createBaseVNode("div",{innerHTML:e.unref(l)("giftCard.thankYou")},null,8,ie)],512),[[e.vShow,e.unref(i)]])]),S.layout!=="minimal"&&e.unref(k)?(e.openBlock(),e.createElementBlock("div",de,[e.createBaseVNode("div",se,[e.createVNode(e.Clickable,{label:e.unref(l)("giftCard.orderGiftCard"),"full-width":!0,disabled:!e.unref(B),"is-loading":e.unref(m),"onUpdate:isLoading":r[9]||(r[9]=a=>e.isRef(m)?m.value=a:null),onClickEvent:P},null,8,["label","disabled","is-loading"])])])):e.createCommentVNode("",!0),e.unref(k)?(e.openBlock(),e.createElementBlock("div",ue,[e.createVNode(x.TextField,{modelValue:e.unref(s),"onUpdate:modelValue":r[10]||(r[10]=a=>e.isRef(s)?s.value=a:null),type:"textarea",name:"remark",label:e.unref(l)("giftCard.remark"),icon:"info-circle",placeholder:e.unref(l)("giftCard.remarkPlaceholder")},null,8,["modelValue","label","placeholder"])])):e.createCommentVNode("",!0),e.unref(k)?e.withDirectives((e.openBlock(),e.createElementBlock("div",ce,[e.createVNode(e.Clickable,{label:e.unref(l)("giftCard.orderGiftCard"),"full-width":!0,disabled:!e.unref(B),"data-test":"orderGiftCard","is-loading":e.unref(m),"onUpdate:isLoading":r[11]||(r[11]=a=>e.isRef(m)?m.value=a:null),onClickEvent:P},null,8,["label","disabled","is-loading"]),e.withDirectives(e.createBaseVNode("div",fe,[e.createVNode(V._sfc_main)],512),[[e.vShow,e.unref(E)]])])),[[c]]):e.createCommentVNode("",!0)])):(e.openBlock(),e.createBlock(e.Loading,{key:1}))]),_:1},8,["access-token","data-layout","styling"])]),fallback:e.withCtx(()=>[e.createVNode(Q)]),_:1})}}});const me=e._export_sfc(pe,[["__scopeId","data-v-e4aa1e4c"]]),_e=e.createPinia(),ve=e.zo(),F=e.createApp({components:{GiftCard:me}});F.use(_e);F.use(e.instance);F.use(ve);F.use(V.StickyPlugin);F.use(V.install,{bootstrap:!1});F.mount("#konnectio-gift-card-app");
|