@konnectio/core 4.0.1 → 4.0.2
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-138c1747.mjs +104 -0
- package/dist/ActionField-138c1747.mjs.br +0 -0
- package/dist/ActionField-2b6751b4.js +2 -0
- package/dist/ActionField-2b6751b4.js.br +0 -0
- package/dist/Clickable-26efd8d0.mjs +3497 -0
- package/dist/Clickable-26efd8d0.mjs.br +0 -0
- package/dist/Clickable-6b252cca.js +763 -0
- package/dist/Clickable-6b252cca.js.br +0 -0
- package/dist/HotelAvailabilityForm-56badafa.js +2 -0
- package/dist/HotelAvailabilityForm-56badafa.js.br +0 -0
- package/dist/HotelAvailabilityForm-a550be2e.mjs +100 -0
- package/dist/HotelAvailabilityForm-a550be2e.mjs.br +0 -0
- package/dist/NumberField.vue_vue_type_style_index_0_lang-778e8361.mjs +5918 -0
- package/dist/NumberField.vue_vue_type_style_index_0_lang-778e8361.mjs.br +0 -0
- package/dist/NumberField.vue_vue_type_style_index_0_lang-de20cf9f.js +56 -0
- package/dist/NumberField.vue_vue_type_style_index_0_lang-de20cf9f.js.br +0 -0
- package/dist/ReCaptchaVuePlugin-59863bbf.mjs +377 -0
- package/dist/ReCaptchaVuePlugin-59863bbf.mjs.br +0 -0
- package/dist/ReCaptchaVuePlugin-809f1dcc.js +2 -0
- package/dist/ReCaptchaVuePlugin-809f1dcc.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-aa7a93a7.js +57 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-aa7a93a7.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-b4fb229d.mjs +10110 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-b4fb229d.mjs.br +0 -0
- package/dist/ThankYou-103d0395.js +16 -0
- package/dist/ThankYou-103d0395.js.br +0 -0
- package/dist/ThankYou-95c1eef3.mjs +8520 -0
- package/dist/ThankYou-95c1eef3.mjs.br +0 -0
- package/dist/_commonjsHelpers-10dfc225.mjs +9 -0
- package/dist/_commonjsHelpers-87b0abe8.js +2 -0
- package/dist/applyGiftCard-2eac2416.js +2 -0
- package/dist/applyGiftCard-2eac2416.js.br +0 -0
- package/dist/applyGiftCard-fb6fb8f4.mjs +118 -0
- package/dist/applyGiftCard-fb6fb8f4.mjs.br +0 -0
- package/dist/availability.cjs.js +2 -0
- package/dist/availability.cjs.js.br +0 -0
- package/dist/availability.es.js +186 -0
- package/dist/availability.es.js.br +0 -0
- package/dist/event-b7b4870b.js +2 -0
- package/dist/event-b7b4870b.js.br +0 -0
- package/dist/event-d697bdb9.mjs +329 -0
- package/dist/event-d697bdb9.mjs.br +0 -0
- package/dist/event.cjs.js +2 -0
- package/dist/event.cjs.js.br +0 -0
- package/dist/event.es.js +648 -0
- package/dist/event.es.js.br +0 -0
- package/dist/gift-card-validation.cjs.js +2 -0
- package/dist/gift-card-validation.cjs.js.br +9 -0
- package/dist/gift-card-validation.es.js +173 -0
- package/dist/gift-card-validation.es.js.br +0 -0
- package/dist/gift-card.cjs.js +2 -0
- package/dist/gift-card.cjs.js.br +0 -0
- package/dist/gift-card.es.js +587 -0
- package/dist/gift-card.es.js.br +0 -0
- package/dist/hotel.cjs.js +20 -0
- package/dist/hotel.cjs.js.br +0 -0
- package/dist/hotel.es.js +2395 -0
- package/dist/hotel.es.js.br +0 -0
- package/dist/index-76459611.mjs +656 -0
- package/dist/index-76459611.mjs.br +0 -0
- package/dist/index-95820cc1.js +2 -0
- package/dist/index-95820cc1.js.br +0 -0
- package/dist/navigation.cjs.js +2 -0
- package/dist/navigation.cjs.js.br +0 -0
- package/dist/navigation.es.js +60 -0
- package/dist/navigation.es.js.br +0 -0
- package/dist/payment-215f120d.js +3 -0
- package/dist/payment-215f120d.js.br +0 -0
- package/dist/payment-31263275.mjs +8149 -0
- package/dist/payment-31263275.mjs.br +0 -0
- package/dist/polyfill.cjs.js +5 -0
- package/dist/polyfill.cjs.js.br +0 -0
- package/dist/polyfill.es.js +6766 -0
- package/dist/polyfill.es.js.br +0 -0
- package/dist/style.css +1 -0
- package/dist/style.css.br +0 -0
- package/package.json +3 -1
- package/dist/admin.js +0 -2
- package/dist/admin.js.br +0 -0
- package/dist/assets/ActionField-d1b315e3.js +0 -2
- package/dist/assets/ActionField-d1b315e3.js.br +0 -0
- package/dist/assets/Alert-2cd22061.js +0 -2
- package/dist/assets/Alert-2cd22061.js.br +0 -0
- package/dist/assets/Clickable-19c9ecdc.js +0 -2
- package/dist/assets/Clickable-19c9ecdc.js.br +0 -0
- package/dist/assets/GoogleNotice-83805aa2.js +0 -2
- package/dist/assets/GoogleNotice-83805aa2.js.br +0 -0
- package/dist/assets/HotelAvailabilityForm-53fa6ecb.js +0 -2
- package/dist/assets/HotelAvailabilityForm-53fa6ecb.js.br +0 -0
- package/dist/assets/Icon-6c933148.js +0 -2
- package/dist/assets/Icon-6c933148.js.br +0 -0
- package/dist/assets/NumberField.vue_vue_type_style_index_0_lang-9b1b90b2.js +0 -2
- package/dist/assets/NumberField.vue_vue_type_style_index_0_lang-9b1b90b2.js.br +0 -0
- package/dist/assets/SelectField.vue_vue_type_style_index_0_lang-c5d2bf7d.js +0 -2
- package/dist/assets/SelectField.vue_vue_type_style_index_0_lang-c5d2bf7d.js.br +0 -0
- package/dist/assets/ThankYou-29820212.js +0 -5
- package/dist/assets/ThankYou-29820212.js.br +0 -0
- package/dist/assets/applyGiftCard-39571f2e.js +0 -2
- package/dist/assets/applyGiftCard-39571f2e.js.br +0 -0
- package/dist/assets/event-79c562c0.js +0 -2
- package/dist/assets/event-79c562c0.js.br +0 -0
- package/dist/assets/payment-a3a9b5dd.js +0 -2
- package/dist/assets/payment-a3a9b5dd.js.br +0 -0
- package/dist/assets/style.css +0 -1
- package/dist/assets/style.css.br +0 -0
- package/dist/assets/vendor-65ee0d78.js +0 -889
- package/dist/assets/vendor-65ee0d78.js.br +0 -0
- package/dist/availability.js +0 -2
- package/dist/availability.js.br +0 -0
- package/dist/event.js +0 -2
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +0 -2
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +0 -2
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.js +0 -2
- package/dist/hotel.js.br +0 -0
- package/dist/manifest.json +0 -231
- package/dist/manifest.json.br +0 -0
- package/dist/navigation.js +0 -2
- package/dist/navigation.js.br +0 -0
- package/dist/polyfill.js +0 -2
package/dist/event.es.js
ADDED
|
@@ -0,0 +1,648 @@
|
|
|
1
|
+
import { defineComponent as ve, ref as je, computed as Qe, openBlock as t, createBlock as y, unref as e, createSlots as Ye, withCtx as f, createVNode as u, createElementVNode as o, toDisplayString as l, createElementBlock as r, createCommentVNode as d, onMounted as He, watch as Je, isRef as R, Fragment as _, renderList as S, createTextVNode as se, pushScopeId as Ke, popScopeId as Xe, createApp as Ze } from "vue";
|
|
2
|
+
import { u as ye, b as Ge, s as ee, B as xe, e as eo, f as re, g as ue, h as oo, j as F, k as lo, _ as no, O as de, l as to, m as G, n as me, d as ao, c as io, a as so, i as ro } from "./NumberField.vue_vue_type_style_index_0_lang-778e8361.mjs";
|
|
3
|
+
import { B as uo, M as mo, R as co, C as po, T as bo, z as go, V as vo, x as yo } from "./ThankYou-95c1eef3.mjs";
|
|
4
|
+
import { P as fo, C as ce, S as ko, i as ho } from "./index-76459611.mjs";
|
|
5
|
+
import { u as Y } from "./event-d697bdb9.mjs";
|
|
6
|
+
import { I as h, _ as fe, L as pe } from "./Clickable-26efd8d0.mjs";
|
|
7
|
+
import { A as Co } from "./ActionField-138c1747.mjs";
|
|
8
|
+
import { T as be } from "./SelectField.vue_vue_type_style_index_0_lang-b4fb229d.mjs";
|
|
9
|
+
import { _ as _o } from "./payment-31263275.mjs";
|
|
10
|
+
import { _ as x } from "./applyGiftCard-fb6fb8f4.mjs";
|
|
11
|
+
import "./_commonjsHelpers-10dfc225.mjs";
|
|
12
|
+
const Bo = { class: "fresh-booking-event-listing-information" }, Po = { key: 0 }, Vo = { key: 1 }, Fo = /* @__PURE__ */ ve({
|
|
13
|
+
__name: "Event",
|
|
14
|
+
props: {
|
|
15
|
+
name: {},
|
|
16
|
+
type: {},
|
|
17
|
+
description: {},
|
|
18
|
+
fromDate: {},
|
|
19
|
+
toDate: {},
|
|
20
|
+
listingId: {},
|
|
21
|
+
tableGroupId: {},
|
|
22
|
+
days: {},
|
|
23
|
+
timeFrom: {},
|
|
24
|
+
timeTo: {},
|
|
25
|
+
maxOnlineReservationLimit: {},
|
|
26
|
+
minimumPersonCount: {},
|
|
27
|
+
fromPrice: {},
|
|
28
|
+
gallery: {},
|
|
29
|
+
soldOut: { type: Boolean, default: !1 },
|
|
30
|
+
styling: {},
|
|
31
|
+
layout: {},
|
|
32
|
+
trackingEnabled: { type: Boolean },
|
|
33
|
+
callback: {}
|
|
34
|
+
},
|
|
35
|
+
setup(T) {
|
|
36
|
+
const i = T, { t: a } = ye(), { display: E } = Ge(), {
|
|
37
|
+
currency: $,
|
|
38
|
+
maxNumberOfPeople: L,
|
|
39
|
+
numberOfPeople: D,
|
|
40
|
+
eventId: H,
|
|
41
|
+
tableGroupId: U
|
|
42
|
+
} = ee(Y()), {
|
|
43
|
+
getTemplateAvailability: A,
|
|
44
|
+
getEventAvailability: z,
|
|
45
|
+
isEventListingLoading: N
|
|
46
|
+
} = Y(), b = je(0), M = Qe(() => N(i.listingId)), J = () => {
|
|
47
|
+
b.value > 0 ? (H.value = i.listingId, D.value = b.value, A(i.callback)) : E({
|
|
48
|
+
type: "error",
|
|
49
|
+
message: a("alert.error.selectPeople")
|
|
50
|
+
});
|
|
51
|
+
}, K = () => {
|
|
52
|
+
b.value > 0 ? (H.value = i.listingId, U.value = i.tableGroupId, D.value = b.value, z(i.callback)) : E({
|
|
53
|
+
type: "error",
|
|
54
|
+
message: a("alert.error.selectPeople")
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
return (n, P) => (t(), y(uo, {
|
|
58
|
+
"listing-id": n.listingId,
|
|
59
|
+
gallery: n.gallery,
|
|
60
|
+
name: n.name,
|
|
61
|
+
description: n.description,
|
|
62
|
+
layout: e(xe).Event,
|
|
63
|
+
styling: n.styling,
|
|
64
|
+
currency: e($)
|
|
65
|
+
}, Ye({
|
|
66
|
+
action: f(() => [
|
|
67
|
+
u(Co, {
|
|
68
|
+
modelValue: b.value,
|
|
69
|
+
"onUpdate:modelValue": P[0] || (P[0] = (O) => b.value = O),
|
|
70
|
+
type: "number",
|
|
71
|
+
label: e(a)("event.numberOfGuests"),
|
|
72
|
+
buttonLabel: n.soldOut ? e(a)("event.soldOut") : e(a)("event.bookNowButton"),
|
|
73
|
+
buttonDisabled: n.soldOut,
|
|
74
|
+
"min-value": n.type === "event" ? 1 : n.minimumPersonCount,
|
|
75
|
+
"max-value": n.type === "event" ? n.maxOnlineReservationLimit || 1 / 0 : e(L),
|
|
76
|
+
"is-loading": M.value,
|
|
77
|
+
"onUpdate:isLoading": P[1] || (P[1] = (O) => M.value = O),
|
|
78
|
+
onAction: P[2] || (P[2] = (O) => n.type === "event" ? K() : J())
|
|
79
|
+
}, null, 8, ["modelValue", "label", "buttonLabel", "buttonDisabled", "min-value", "max-value", "is-loading"])
|
|
80
|
+
]),
|
|
81
|
+
_: 2
|
|
82
|
+
}, [
|
|
83
|
+
n.type === "event" ? {
|
|
84
|
+
name: "description",
|
|
85
|
+
fn: f(() => [
|
|
86
|
+
o("ul", Bo, [
|
|
87
|
+
o("li", null, [
|
|
88
|
+
u(h, {
|
|
89
|
+
icon: "calendar-range",
|
|
90
|
+
"icon-color": n.styling.headerColor
|
|
91
|
+
}, null, 8, ["icon-color"]),
|
|
92
|
+
o("span", null, l(e(eo)(n.days)), 1)
|
|
93
|
+
]),
|
|
94
|
+
e(re)(n.fromDate, n.toDate) < 180 ? (t(), r("li", Po, [
|
|
95
|
+
u(h, {
|
|
96
|
+
icon: "calendar-days",
|
|
97
|
+
"icon-color": n.styling.headerColor
|
|
98
|
+
}, null, 8, ["icon-color"]),
|
|
99
|
+
o("span", null, l(e(ue)(n.fromDate, n.toDate)), 1)
|
|
100
|
+
])) : d("", !0),
|
|
101
|
+
o("li", null, [
|
|
102
|
+
u(h, {
|
|
103
|
+
icon: "calendar-clock",
|
|
104
|
+
"icon-color": n.styling.headerColor
|
|
105
|
+
}, null, 8, ["icon-color"]),
|
|
106
|
+
o("span", null, l(e(oo)(n.timeFrom, n.timeTo)), 1)
|
|
107
|
+
]),
|
|
108
|
+
n.maxOnlineReservationLimit ? (t(), r("li", Vo, [
|
|
109
|
+
u(h, {
|
|
110
|
+
icon: "user-alt",
|
|
111
|
+
"icon-color": n.styling.headerColor
|
|
112
|
+
}, null, 8, ["icon-color"]),
|
|
113
|
+
o("span", null, l(`1 - ${n.maxOnlineReservationLimit} ${e(a)("general.people")}`), 1)
|
|
114
|
+
])) : d("", !0)
|
|
115
|
+
])
|
|
116
|
+
]),
|
|
117
|
+
key: "0"
|
|
118
|
+
} : {
|
|
119
|
+
name: "description",
|
|
120
|
+
fn: f(() => [
|
|
121
|
+
o("ul", { class: "fresh-booking-event-listing-information" }, [
|
|
122
|
+
e(re)(n.fromDate, n.toDate) < 180 ? (t(), r("li", { key: 0 }, [
|
|
123
|
+
u(h, {
|
|
124
|
+
icon: "calendar-days",
|
|
125
|
+
"icon-color": n.styling.headerColor
|
|
126
|
+
}, null, 8, ["icon-color"]),
|
|
127
|
+
o("span", null, l(e(ue)(n.fromDate, n.toDate, !0)), 1)
|
|
128
|
+
])) : d("", !0),
|
|
129
|
+
o("li", null, [
|
|
130
|
+
u(h, {
|
|
131
|
+
icon: "user-alt",
|
|
132
|
+
"icon-color": n.styling.headerColor
|
|
133
|
+
}, null, 8, ["icon-color"]),
|
|
134
|
+
o("span", null, l(`${n.minimumPersonCount} - ${e(L)} ${e(a)("general.people")}`), 1)
|
|
135
|
+
]),
|
|
136
|
+
o("li", null, [
|
|
137
|
+
u(h, {
|
|
138
|
+
icon: "money-bill",
|
|
139
|
+
"icon-color": n.styling.headerColor
|
|
140
|
+
}, null, 8, ["icon-color"]),
|
|
141
|
+
o("span", null, l(`${e(a)("general.pricesFrom")} ${e(F)(n.fromPrice, e($))}`), 1)
|
|
142
|
+
])
|
|
143
|
+
])
|
|
144
|
+
]),
|
|
145
|
+
key: "1"
|
|
146
|
+
}
|
|
147
|
+
]), 1032, ["listing-id", "gallery", "name", "description", "layout", "styling", "currency"]));
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
const ge = /* @__PURE__ */ fe(Fo, [["__scopeId", "data-v-c907b452"]]), w = (T) => (Ke("data-v-7a0ec33b"), T = T(), Xe(), T), To = { class: "fresh-booking-panel" }, Eo = {
|
|
151
|
+
key: 0,
|
|
152
|
+
id: "fresh-booking-event-overview"
|
|
153
|
+
}, $o = { class: "fresh-booking-event-listings" }, Oo = { class: "fresh-booking-event-listings" }, Ro = {
|
|
154
|
+
key: 2,
|
|
155
|
+
id: "fresh-booking-event-addons"
|
|
156
|
+
}, So = { class: "fresh-booking-table" }, Do = /* @__PURE__ */ w(() => /* @__PURE__ */ o("th", { class: "fresh-booking-event-addons-input" }, null, -1)), wo = { class: "fresh-booking-event-addons-price" }, Lo = /* @__PURE__ */ w(() => /* @__PURE__ */ o("br", null, null, -1)), Uo = { class: "fresh-booking-event-addons-input" }, Ao = { class: "fresh-booking-event-addons-price" }, zo = /* @__PURE__ */ w(() => /* @__PURE__ */ o("td", { colspan: "2" }, null, -1)), No = { class: "fresh-booking-event-addons-price" }, Io = { key: 3 }, Wo = { class: "fresh-booking-label required" }, qo = { id: "fresh-booking-event-table" }, Mo = { key: 4 }, jo = { class: "fresh-booking-label required" }, Qo = { class: "fresh-booking-table" }, Yo = /* @__PURE__ */ w(() => /* @__PURE__ */ o("th", { class: "fresh-booking-event-addons-input" }, null, -1)), Ho = { class: "fresh-booking-event-addons-price" }, Jo = /* @__PURE__ */ w(() => /* @__PURE__ */ o("br", null, null, -1)), Ko = /* @__PURE__ */ w(() => /* @__PURE__ */ o("br", null, null, -1)), Xo = { class: "fresh-booking-event-addons-input" }, Zo = { class: "fresh-booking-event-addons-price" }, Go = { key: 0 }, xo = { key: 1 }, el = { key: 2 }, ol = { key: 3 }, ll = { key: 4 }, nl = { key: 5 }, tl = { key: 6 }, al = /* @__PURE__ */ ve({
|
|
157
|
+
__name: "Event",
|
|
158
|
+
props: {
|
|
159
|
+
accessToken: {},
|
|
160
|
+
accentColor: {},
|
|
161
|
+
buttonBackground: {},
|
|
162
|
+
buttonBorder: {},
|
|
163
|
+
buttonBorderRadius: {},
|
|
164
|
+
buttonColor: {},
|
|
165
|
+
buttonFontFamily: {},
|
|
166
|
+
buttonFontSize: {},
|
|
167
|
+
buttonFontWeight: {},
|
|
168
|
+
buttonIconColor: {},
|
|
169
|
+
buttonTextTransform: {},
|
|
170
|
+
dangerColor: {},
|
|
171
|
+
fontColor: {},
|
|
172
|
+
fontFamily: {},
|
|
173
|
+
fontSize: {},
|
|
174
|
+
grayColor: {},
|
|
175
|
+
headerColor: {},
|
|
176
|
+
inputBackground: {},
|
|
177
|
+
inputBorder: {},
|
|
178
|
+
inputBorderRadius: {},
|
|
179
|
+
inputFontColor: {},
|
|
180
|
+
labelFontWeight: {},
|
|
181
|
+
labelPadding: {},
|
|
182
|
+
linkColor: {},
|
|
183
|
+
loadingColor: {},
|
|
184
|
+
panelBackground: {},
|
|
185
|
+
panelBorder: {},
|
|
186
|
+
panelBorderRadius: {},
|
|
187
|
+
panelPadding: {},
|
|
188
|
+
successColor: {}
|
|
189
|
+
},
|
|
190
|
+
setup(T) {
|
|
191
|
+
const i = T, { t: a } = ye(), {
|
|
192
|
+
searchDate: E,
|
|
193
|
+
addons: $,
|
|
194
|
+
products: L,
|
|
195
|
+
numberOfDays: D,
|
|
196
|
+
discountCode: H,
|
|
197
|
+
name: U,
|
|
198
|
+
phone: A,
|
|
199
|
+
email: z,
|
|
200
|
+
remark: N,
|
|
201
|
+
arrivalTime: b,
|
|
202
|
+
title: M,
|
|
203
|
+
subtitle: J,
|
|
204
|
+
slideshow: K,
|
|
205
|
+
currency: n,
|
|
206
|
+
numberOfPeople: P,
|
|
207
|
+
numberOfTotalDays: O,
|
|
208
|
+
numberOfRooms: ke,
|
|
209
|
+
basePrice: he,
|
|
210
|
+
totalPrice: Ce,
|
|
211
|
+
isPaymentLoading: _e,
|
|
212
|
+
hasEvents: Be,
|
|
213
|
+
hasTemplates: Pe,
|
|
214
|
+
getEvents: Ve,
|
|
215
|
+
getTemplates: Fe,
|
|
216
|
+
getEventData: Te,
|
|
217
|
+
getTemplateData: j,
|
|
218
|
+
getEventTableData: Ee,
|
|
219
|
+
length: oe,
|
|
220
|
+
roomUpgrade: $e,
|
|
221
|
+
weekendFee: Oe,
|
|
222
|
+
fromDate: le,
|
|
223
|
+
hasProducts: Re,
|
|
224
|
+
eventRateType: ne,
|
|
225
|
+
isMetaDataAvailable: Se,
|
|
226
|
+
areListingsAvailable: De,
|
|
227
|
+
isReservationFormFilled: we,
|
|
228
|
+
isAvailabilityDataAvailable: Le,
|
|
229
|
+
getEventImages: Ue,
|
|
230
|
+
isTemplateEvent: V,
|
|
231
|
+
tableBasePrice: te
|
|
232
|
+
} = ee(Y()), {
|
|
233
|
+
initialize: Ae,
|
|
234
|
+
validateDiscountCode: ul,
|
|
235
|
+
fetchListings: ze,
|
|
236
|
+
createBooking: Ne,
|
|
237
|
+
localAddonPrice: ae,
|
|
238
|
+
totalAddonPrice: ie,
|
|
239
|
+
reset: Ie
|
|
240
|
+
} = Y(), {
|
|
241
|
+
hideEvents: We,
|
|
242
|
+
hideEventTemplates: qe
|
|
243
|
+
} = ee(lo());
|
|
244
|
+
He(() => Ae()), Je(E, () => ze());
|
|
245
|
+
const Me = {
|
|
246
|
+
"--accentColor": i.accentColor,
|
|
247
|
+
"--buttonBackground": i.buttonBackground,
|
|
248
|
+
"--buttonBorder": i.buttonBorder,
|
|
249
|
+
"--buttonBorderRadius": i.buttonBorderRadius,
|
|
250
|
+
"--buttonColor": i.buttonColor,
|
|
251
|
+
"--buttonFontFamily": i.buttonFontFamily,
|
|
252
|
+
"--buttonFontSize": i.buttonFontSize,
|
|
253
|
+
"--buttonFontWeight": i.buttonFontWeight,
|
|
254
|
+
"--buttonTextTransform": i.buttonTextTransform,
|
|
255
|
+
"--dangerColor": i.dangerColor,
|
|
256
|
+
"--fontColor": i.fontColor,
|
|
257
|
+
"--fontFamily": i.fontFamily,
|
|
258
|
+
"--fontSize": i.fontSize,
|
|
259
|
+
"--grayColor": i.grayColor,
|
|
260
|
+
"--headerColor": i.headerColor,
|
|
261
|
+
"--inputBackground": i.inputBackground,
|
|
262
|
+
"--inputBorder": i.inputBorder,
|
|
263
|
+
"--inputBorderRadius": i.inputBorderRadius,
|
|
264
|
+
"--inputFontColor": i.inputFontColor,
|
|
265
|
+
"--labelFontWeight": i.labelFontWeight,
|
|
266
|
+
"--labelPadding": i.labelPadding,
|
|
267
|
+
"--linkColor": i.linkColor,
|
|
268
|
+
"--loadingColor": i.loadingColor,
|
|
269
|
+
"--panelBackground": i.panelBackground,
|
|
270
|
+
"--panelBorder": i.panelBorder,
|
|
271
|
+
"--panelBorderRadius": i.panelBorderRadius,
|
|
272
|
+
"--panelPadding": i.panelPadding,
|
|
273
|
+
"--successColor": i.successColor
|
|
274
|
+
};
|
|
275
|
+
return (m, c) => (t(), y(no, {
|
|
276
|
+
id: "fresh-booking-event-module",
|
|
277
|
+
class: "fresh-booking-app",
|
|
278
|
+
type: "event",
|
|
279
|
+
"access-token": m.accessToken,
|
|
280
|
+
style: Me
|
|
281
|
+
}, {
|
|
282
|
+
default: f(() => [
|
|
283
|
+
e(Se) ? (t(), y(mo, {
|
|
284
|
+
key: 0,
|
|
285
|
+
slideshow: e(K),
|
|
286
|
+
title: e(M),
|
|
287
|
+
subtitle: e(J)
|
|
288
|
+
}, {
|
|
289
|
+
availability: f(({ next: Q }) => [
|
|
290
|
+
o("div", To, [
|
|
291
|
+
u(_o, {
|
|
292
|
+
modelValue: e(E),
|
|
293
|
+
"onUpdate:modelValue": c[0] || (c[0] = (k) => R(E) ? E.value = k : null),
|
|
294
|
+
label: e(a)("event.selectDate"),
|
|
295
|
+
"min-date": /* @__PURE__ */ new Date()
|
|
296
|
+
}, null, 8, ["modelValue", "label", "min-date"])
|
|
297
|
+
]),
|
|
298
|
+
e(De) ? (t(), r("div", Eo, [
|
|
299
|
+
e(Be) && !e(We) ? (t(), r(_, { key: 0 }, [
|
|
300
|
+
o("h2", null, [
|
|
301
|
+
u(h, {
|
|
302
|
+
icon: "clock-seven",
|
|
303
|
+
type: "fal",
|
|
304
|
+
"icon-color": m.headerColor
|
|
305
|
+
}, null, 8, ["icon-color"]),
|
|
306
|
+
o("span", null, l(e(a)("event.eventsTitle")), 1)
|
|
307
|
+
]),
|
|
308
|
+
o("ul", $o, [
|
|
309
|
+
(t(!0), r(_, null, S(e(Ve), ({
|
|
310
|
+
id: k,
|
|
311
|
+
days: s,
|
|
312
|
+
name: g,
|
|
313
|
+
timeFrom: C,
|
|
314
|
+
timeTo: p,
|
|
315
|
+
fromDate: v,
|
|
316
|
+
toDate: I,
|
|
317
|
+
tableGroupID: W,
|
|
318
|
+
description: X,
|
|
319
|
+
soldOut: Z,
|
|
320
|
+
maxOnlineReservationLimit: q
|
|
321
|
+
}) => (t(), y(ge, {
|
|
322
|
+
key: k,
|
|
323
|
+
type: "event",
|
|
324
|
+
"listing-id": k,
|
|
325
|
+
"table-group-id": W,
|
|
326
|
+
gallery: e(Ue)(k),
|
|
327
|
+
description: X,
|
|
328
|
+
name: g,
|
|
329
|
+
days: s,
|
|
330
|
+
"from-date": v,
|
|
331
|
+
"to-date": I,
|
|
332
|
+
"max-online-reservation-limit": q,
|
|
333
|
+
"time-from": C,
|
|
334
|
+
"time-to": p,
|
|
335
|
+
"sold-out": Z,
|
|
336
|
+
styling: {
|
|
337
|
+
headerColor: m.headerColor,
|
|
338
|
+
fontColor: m.fontColor,
|
|
339
|
+
fontSize: m.fontSize,
|
|
340
|
+
fontFamily: m.fontFamily,
|
|
341
|
+
panelPadding: m.panelPadding
|
|
342
|
+
},
|
|
343
|
+
callback: Q
|
|
344
|
+
}, null, 8, ["listing-id", "table-group-id", "gallery", "description", "name", "days", "from-date", "to-date", "max-online-reservation-limit", "time-from", "time-to", "sold-out", "styling", "callback"]))), 128))
|
|
345
|
+
])
|
|
346
|
+
], 64)) : d("", !0),
|
|
347
|
+
e(Pe) && !e(qe) ? (t(), r(_, { key: 1 }, [
|
|
348
|
+
o("h2", null, [
|
|
349
|
+
u(h, {
|
|
350
|
+
icon: "stars",
|
|
351
|
+
type: "fal",
|
|
352
|
+
"icon-color": m.headerColor
|
|
353
|
+
}, null, 8, ["icon-color"]),
|
|
354
|
+
o("span", null, l(e(a)("event.stayTitle")), 1)
|
|
355
|
+
]),
|
|
356
|
+
o("ul", Oo, [
|
|
357
|
+
(t(!0), r(_, null, S(e(Fe), ({
|
|
358
|
+
id: k,
|
|
359
|
+
name: s,
|
|
360
|
+
fromDate: g,
|
|
361
|
+
toDate: C,
|
|
362
|
+
minimumPersonCount: p,
|
|
363
|
+
fromPrice: v,
|
|
364
|
+
description: I,
|
|
365
|
+
imageUrl: W
|
|
366
|
+
}) => (t(), y(ge, {
|
|
367
|
+
key: k,
|
|
368
|
+
type: "template",
|
|
369
|
+
"listing-id": k,
|
|
370
|
+
gallery: W,
|
|
371
|
+
name: s,
|
|
372
|
+
description: I,
|
|
373
|
+
"from-date": g,
|
|
374
|
+
"to-date": C,
|
|
375
|
+
"minimum-person-count": p,
|
|
376
|
+
fromPrice: v,
|
|
377
|
+
styling: {
|
|
378
|
+
headerColor: m.headerColor,
|
|
379
|
+
fontColor: m.fontColor,
|
|
380
|
+
fontSize: m.fontSize,
|
|
381
|
+
fontFamily: m.fontFamily,
|
|
382
|
+
panelPadding: m.panelPadding
|
|
383
|
+
},
|
|
384
|
+
callback: Q
|
|
385
|
+
}, null, 8, ["listing-id", "gallery", "name", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "styling", "callback"]))), 128))
|
|
386
|
+
])
|
|
387
|
+
], 64)) : d("", !0)
|
|
388
|
+
])) : (t(), y(pe, { key: 1 }))
|
|
389
|
+
]),
|
|
390
|
+
reservation: f(({ next: Q, prev: k }) => [
|
|
391
|
+
e(Le) ? (t(), y(co, {
|
|
392
|
+
key: 0,
|
|
393
|
+
remark: e(N),
|
|
394
|
+
"onUpdate:remark": c[8] || (c[8] = (s) => R(N) ? N.value = s : null),
|
|
395
|
+
"is-filled": e(we),
|
|
396
|
+
"is-loading": e(_e),
|
|
397
|
+
currency: e(n),
|
|
398
|
+
"base-price": e(he),
|
|
399
|
+
"button-icon-color": m.buttonIconColor,
|
|
400
|
+
"total-price": e(Ce),
|
|
401
|
+
"weekend-fee": e(Oe),
|
|
402
|
+
"room-upgrade": e($e),
|
|
403
|
+
onPrev: (s) => e(Ie)(k),
|
|
404
|
+
onNext: (s) => e(Ne)(Q)
|
|
405
|
+
}, {
|
|
406
|
+
form: f(() => [
|
|
407
|
+
e(ne) === e(de).FullDayEvent ? (t(), y(x, {
|
|
408
|
+
key: 0,
|
|
409
|
+
modelValue: e(D),
|
|
410
|
+
"onUpdate:modelValue": c[1] || (c[1] = (s) => R(D) ? D.value = s : null),
|
|
411
|
+
label: e(a)("event.numberOfDays"),
|
|
412
|
+
"min-value": 1,
|
|
413
|
+
required: ""
|
|
414
|
+
}, null, 8, ["modelValue", "label"])) : d("", !0),
|
|
415
|
+
u(be, {
|
|
416
|
+
modelValue: e(U),
|
|
417
|
+
"onUpdate:modelValue": c[2] || (c[2] = (s) => R(U) ? U.value = s : null),
|
|
418
|
+
type: "text",
|
|
419
|
+
label: e(a)("booking.reservation.name"),
|
|
420
|
+
icon: "user-alt",
|
|
421
|
+
placeholder: e(a)("booking.reservation.namePlaceholder"),
|
|
422
|
+
required: ""
|
|
423
|
+
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
424
|
+
u(be, {
|
|
425
|
+
modelValue: e(z),
|
|
426
|
+
"onUpdate:modelValue": c[3] || (c[3] = (s) => R(z) ? z.value = s : null),
|
|
427
|
+
label: e(a)("booking.reservation.email"),
|
|
428
|
+
type: "email",
|
|
429
|
+
name: "email",
|
|
430
|
+
autocomplete: "email",
|
|
431
|
+
icon: "at",
|
|
432
|
+
placeholder: e(a)("booking.reservation.emailPlaceholder"),
|
|
433
|
+
required: ""
|
|
434
|
+
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
435
|
+
u(fo, {
|
|
436
|
+
modelValue: e(A),
|
|
437
|
+
"onUpdate:modelValue": c[4] || (c[4] = (s) => R(A) ? A.value = s : null),
|
|
438
|
+
label: e(a)("booking.reservation.phone"),
|
|
439
|
+
icon: "phone-office",
|
|
440
|
+
placeholder: e(a)("booking.reservation.phonePlaceholder"),
|
|
441
|
+
required: ""
|
|
442
|
+
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
443
|
+
d("", !0),
|
|
444
|
+
e(j) && e(j).length > 0 ? (t(), r("ul", Ro, [
|
|
445
|
+
(t(!0), r(_, null, S(e(j), ({
|
|
446
|
+
roomGroupID: s,
|
|
447
|
+
addons: g,
|
|
448
|
+
adultPerRoom: C
|
|
449
|
+
}, p) => (t(), r("li", { key: s }, [
|
|
450
|
+
o("h5", null, [
|
|
451
|
+
o("span", null, l(e(a)("booking.reservation.room")) + " #" + l(p + 1), 1),
|
|
452
|
+
se(" ("),
|
|
453
|
+
u(h, {
|
|
454
|
+
icon: "male",
|
|
455
|
+
type: "fas",
|
|
456
|
+
"icon-color": m.headerColor
|
|
457
|
+
}, null, 8, ["icon-color"]),
|
|
458
|
+
se(" " + l(C) + ") ", 1)
|
|
459
|
+
]),
|
|
460
|
+
o("table", So, [
|
|
461
|
+
o("thead", null, [
|
|
462
|
+
o("tr", null, [
|
|
463
|
+
o("th", null, [
|
|
464
|
+
o("span", null, l(e(a)("booking.reservation.addons")), 1)
|
|
465
|
+
]),
|
|
466
|
+
Do,
|
|
467
|
+
o("th", wo, [
|
|
468
|
+
o("span", null, l(e(a)("booking.availability.price")), 1)
|
|
469
|
+
])
|
|
470
|
+
])
|
|
471
|
+
]),
|
|
472
|
+
o("tbody", null, [
|
|
473
|
+
(t(!0), r(_, null, S(g, ({
|
|
474
|
+
addonID: v,
|
|
475
|
+
cardinality: I,
|
|
476
|
+
name: W,
|
|
477
|
+
price: X,
|
|
478
|
+
quantityStrategy: Z
|
|
479
|
+
}) => (t(), r("tr", { key: v }, [
|
|
480
|
+
o("td", null, [
|
|
481
|
+
o("b", null, l(W), 1),
|
|
482
|
+
Lo,
|
|
483
|
+
o("span", null, l(e(F)(X, e(n))) + " " + l(e(to)(Z)), 1)
|
|
484
|
+
]),
|
|
485
|
+
o("td", Uo, [
|
|
486
|
+
I === 3 ? (t(), y(x, {
|
|
487
|
+
key: 0,
|
|
488
|
+
modelValue: e($)[`${s}.${v}.${p}`],
|
|
489
|
+
"onUpdate:modelValue": (q) => e($)[`${s}.${v}.${p}`] = q,
|
|
490
|
+
small: !0,
|
|
491
|
+
"min-value": 0
|
|
492
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : (t(), y(ce, {
|
|
493
|
+
key: 1,
|
|
494
|
+
modelValue: e($)[`${s}.${v}.${p}`],
|
|
495
|
+
"onUpdate:modelValue": (q) => e($)[`${s}.${v}.${p}`] = q,
|
|
496
|
+
numeric: !0
|
|
497
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"]))
|
|
498
|
+
]),
|
|
499
|
+
o("td", Ao, [
|
|
500
|
+
o("span", null, l(e(F)(e(ae)(v, s, p), e(n))), 1)
|
|
501
|
+
])
|
|
502
|
+
]))), 128))
|
|
503
|
+
]),
|
|
504
|
+
o("tfoot", null, [
|
|
505
|
+
o("tr", null, [
|
|
506
|
+
zo,
|
|
507
|
+
o("td", No, [
|
|
508
|
+
o("u", null, [
|
|
509
|
+
o("span", null, l(e(F)(e(ie)(s, p), e(n))), 1)
|
|
510
|
+
])
|
|
511
|
+
])
|
|
512
|
+
])
|
|
513
|
+
])
|
|
514
|
+
])
|
|
515
|
+
]))), 128))
|
|
516
|
+
])) : d("", !0),
|
|
517
|
+
e(ne) !== e(de).FullDayEvent && !e(V) ? (t(), r("div", Io, [
|
|
518
|
+
o("label", Wo, [
|
|
519
|
+
o("span", null, l(e(a)("event.selectArrivalTime")), 1)
|
|
520
|
+
]),
|
|
521
|
+
o("ul", qo, [
|
|
522
|
+
(t(!0), r(_, null, S(e(Ee), (s, g) => (t(), r("li", { key: g }, [
|
|
523
|
+
u(ce, {
|
|
524
|
+
modelValue: e(b),
|
|
525
|
+
"onUpdate:modelValue": c[7] || (c[7] = (C) => R(b) ? b.value = C : null),
|
|
526
|
+
type: "radio",
|
|
527
|
+
name: "eventTimeTable",
|
|
528
|
+
val: s.time,
|
|
529
|
+
label: e(G)(s.time)
|
|
530
|
+
}, null, 8, ["modelValue", "val", "label"])
|
|
531
|
+
]))), 128))
|
|
532
|
+
])
|
|
533
|
+
])) : d("", !0),
|
|
534
|
+
e(Re) ? (t(), r("div", Mo, [
|
|
535
|
+
o("label", jo, [
|
|
536
|
+
o("span", null, l(e(a)("event.selectProducts")), 1)
|
|
537
|
+
]),
|
|
538
|
+
o("table", Qo, [
|
|
539
|
+
o("thead", null, [
|
|
540
|
+
o("tr", null, [
|
|
541
|
+
o("th", null, [
|
|
542
|
+
o("span", null, l(e(a)("booking.reservation.addons")), 1)
|
|
543
|
+
]),
|
|
544
|
+
Yo,
|
|
545
|
+
o("th", Ho, [
|
|
546
|
+
o("span", null, l(e(a)("booking.availability.price")), 1)
|
|
547
|
+
])
|
|
548
|
+
])
|
|
549
|
+
]),
|
|
550
|
+
o("tbody", null, [
|
|
551
|
+
(t(!0), r(_, null, S(e(Te).products, ({ productID: s, productName: g, price: C, description: p }) => (t(), r("tr", { key: s }, [
|
|
552
|
+
o("td", null, [
|
|
553
|
+
o("b", null, [
|
|
554
|
+
o("span", null, l(g), 1)
|
|
555
|
+
]),
|
|
556
|
+
Jo,
|
|
557
|
+
o("span", null, l(p), 1),
|
|
558
|
+
Ko,
|
|
559
|
+
o("span", null, l(e(F)(C, e(n))), 1)
|
|
560
|
+
]),
|
|
561
|
+
o("td", Xo, [
|
|
562
|
+
u(x, {
|
|
563
|
+
modelValue: e(L)[s],
|
|
564
|
+
"onUpdate:modelValue": (v) => e(L)[s] = v,
|
|
565
|
+
small: !0,
|
|
566
|
+
"min-value": 0
|
|
567
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
568
|
+
]),
|
|
569
|
+
o("td", Zo, [
|
|
570
|
+
o("span", null, l(e(F)(e(ae)(s), e(n))), 1)
|
|
571
|
+
])
|
|
572
|
+
]))), 128))
|
|
573
|
+
])
|
|
574
|
+
])
|
|
575
|
+
])) : d("", !0)
|
|
576
|
+
]),
|
|
577
|
+
resume: f(() => [
|
|
578
|
+
o("li", null, [
|
|
579
|
+
o("span", null, l(e(a)("event.numberOfGuests")), 1),
|
|
580
|
+
o("b", null, l(e(P)), 1)
|
|
581
|
+
]),
|
|
582
|
+
e(V) ? (t(), r("li", Go, [
|
|
583
|
+
o("span", null, l(e(a)("event.numberOfRooms")), 1),
|
|
584
|
+
o("b", null, l(e(ke)), 1)
|
|
585
|
+
])) : d("", !0),
|
|
586
|
+
e(V) ? (t(), r("li", xo, [
|
|
587
|
+
o("span", null, l(e(a)("event.numberOfDays")), 1),
|
|
588
|
+
o("b", null, l(e(O)), 1)
|
|
589
|
+
])) : d("", !0),
|
|
590
|
+
e(V) ? (t(), r("li", el, [
|
|
591
|
+
o("span", null, l(e(a)("booking.reservation.arrival")), 1),
|
|
592
|
+
o("b", null, l(e(me)(e(le))), 1)
|
|
593
|
+
])) : d("", !0),
|
|
594
|
+
e(V) ? (t(), r("li", ol, [
|
|
595
|
+
o("span", null, l(e(a)("booking.reservation.departure")), 1),
|
|
596
|
+
o("b", null, l(e(me)(e(le), e(O))), 1)
|
|
597
|
+
])) : d("", !0),
|
|
598
|
+
!e(V) && e(b) ? (t(), r("li", ll, [
|
|
599
|
+
o("span", null, l(e(a)("event.startOfEvent")), 1),
|
|
600
|
+
o("b", null, l(e(G)(e(b))), 1)
|
|
601
|
+
])) : d("", !0),
|
|
602
|
+
!e(V) && e(oe) ? (t(), r("li", nl, [
|
|
603
|
+
o("span", null, l(e(a)("event.lengthOfEvent")), 1),
|
|
604
|
+
o("b", null, l(e(G)(e(oe))), 1)
|
|
605
|
+
])) : d("", !0),
|
|
606
|
+
!e(V) && e(te) > 0 ? (t(), r("li", tl, [
|
|
607
|
+
o("span", null, l(e(a)("booking.availability.basePrice")), 1),
|
|
608
|
+
o("b", null, l(e(F)(e(te), e(n))), 1)
|
|
609
|
+
])) : d("", !0)
|
|
610
|
+
]),
|
|
611
|
+
expenses: f(() => [
|
|
612
|
+
(t(!0), r(_, null, S(e(j), ({ roomGroupID: s }, g) => (t(), r("li", { key: s }, [
|
|
613
|
+
o("span", null, l(e(a)("booking.reservation.addons")) + " - " + l(e(a)("booking.reservation.room")) + " #" + l(g + 1), 1),
|
|
614
|
+
o("b", null, l(e(F)(e(ie)(s, g), e(n))), 1)
|
|
615
|
+
]))), 128))
|
|
616
|
+
]),
|
|
617
|
+
_: 2
|
|
618
|
+
}, 1032, ["remark", "is-filled", "is-loading", "currency", "base-price", "button-icon-color", "total-price", "weekend-fee", "room-upgrade", "onPrev", "onNext"])) : d("", !0)
|
|
619
|
+
]),
|
|
620
|
+
payment: f(() => [
|
|
621
|
+
u(po)
|
|
622
|
+
]),
|
|
623
|
+
confirmation: f(() => [
|
|
624
|
+
u(bo, {
|
|
625
|
+
message: e(a)("event.confirmationMessage"),
|
|
626
|
+
currency: e(n)
|
|
627
|
+
}, null, 8, ["message", "currency"])
|
|
628
|
+
]),
|
|
629
|
+
_: 1
|
|
630
|
+
}, 8, ["slideshow", "title", "subtitle"])) : (t(), y(pe, { key: 1 }))
|
|
631
|
+
]),
|
|
632
|
+
_: 1
|
|
633
|
+
}, 8, ["access-token"]));
|
|
634
|
+
}
|
|
635
|
+
});
|
|
636
|
+
const il = /* @__PURE__ */ fe(al, [["__scopeId", "data-v-7a0ec33b"]]);
|
|
637
|
+
process.env.NODE_ENV === "production" && ao.flare.light();
|
|
638
|
+
const sl = io(), rl = go(), B = Ze({ components: { Event: il } });
|
|
639
|
+
B.use(so.flareVue);
|
|
640
|
+
B.use(sl);
|
|
641
|
+
B.use(rl);
|
|
642
|
+
B.use(ko);
|
|
643
|
+
B.use(vo);
|
|
644
|
+
B.use(ro);
|
|
645
|
+
B.use(yo);
|
|
646
|
+
B.use(ho, { bootstrap: !1 });
|
|
647
|
+
B.mount("#fresh-booking-event-app");
|
|
648
|
+
//# sourceMappingURL=event.es.js.map
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),t=require("./NumberField.vue_vue_type_style_index_0_lang-de20cf9f.js"),f=require("./applyGiftCard-2eac2416.js"),y=require("./ActionField-2b6751b4.js"),u=require("./Clickable-6b252cca.js");require("./SelectField.vue_vue_type_style_index_0_lang-aa7a93a7.js");require("./_commonjsHelpers-87b0abe8.js");const B=a=>(e.pushScopeId("data-v-64c7a8a4"),a=a(),e.popScopeId(),a),N=["innerHTML"],F={key:0,id:"fresh-booking-gift-card-validation-resume",class:"fresh-booking-panel"},E=B(()=>e.createElementVNode("span",null,"Loading...",-1)),k=e.defineComponent({__name:"GiftCardValidation",props:{accessToken:{},accentColor:{},buttonBackground:{},buttonBorder:{},buttonBorderRadius:{},buttonColor:{},buttonFontFamily:{},buttonFontSize:{},buttonTextTransform:{},buttonFontWeight:{},fontColor:{},fontFamily:{},fontSize:{},fontWeight:{},grayColor:{},headerColor:{},headerFontSize:{},inputBackground:{},inputBorder:{},inputBorderRadius:{},inputFontColor:{},labelFontWeight:{},labelPadding:{},loadingColor:{},panelBackground:{},panelBorder:{},panelBorderRadius:{},panelPadding:{}},setup(a){const o=a,{t:r}=t.useI18n(),{voucher:c,isValid:g,amount:m,expirationDate:b,productName:C,isLoading:i}=t.storeToRefs(f.useApplyGiftCardStore()),{currency:V}=t.storeToRefs(t.useUtilityStore()),{apply:p}=f.useApplyGiftCardStore(),h={"--accentColor":o.accentColor,"--buttonBackground":o.buttonBackground,"--buttonBorder":o.buttonBorder,"--buttonBorderRadius":o.buttonBorderRadius,"--buttonColor":o.buttonColor,"--buttonFontFamily":o.buttonFontFamily,"--buttonFontSize":o.buttonFontSize,"--buttonTextTransform":o.buttonTextTransform,"--buttonFontWeight":o.buttonFontWeight,"--fontColor":o.fontColor,"--fontFamily":o.fontFamily,"--fontSize":o.fontSize,"--fontWeight":o.fontWeight,"--grayColor":o.grayColor,"--headerColor":o.headerColor,"--headerFontSize":o.headerFontSize,"--inputBackground":o.inputBackground,"--inputBorder":o.inputBorder,"--inputBorderRadius":o.inputBorderRadius,"--inputFontColor":o.inputFontColor,"--labelFontWeight":o.labelFontWeight,"--labelPadding":o.labelPadding,"--loadingColor":o.loadingColor,"--panelBackground":o.panelBackground,"--panelBorder":o.panelBorder,"--panelBorderRadius":o.panelBorderRadius,"--panelPadding":o.panelPadding};return(d,n)=>(e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(t._sfc_main,{id:"fresh-booking-gift-card-validation-module",class:"fresh-booking-app","access-token":d.accessToken,type:"gift-card",style:h},{default:e.withCtx(()=>[e.createElementVNode("form",{onSubmit:n[3]||(n[3]=e.withModifiers(l=>e.unref(p)(),["prevent"]))},[e.createElementVNode("h4",null,[e.createElementVNode("span",null,e.toDisplayString(e.unref(r)("giftCardValidation.title")),1)]),e.createElementVNode("p",{innerHTML:e.unref(r)("giftCardValidation.description")},null,8,N),e.createVNode(y.ActionField,{modelValue:e.unref(c),"onUpdate:modelValue":n[0]||(n[0]=l=>e.isRef(c)?c.value=l:null),icon:"gift-card",label:e.unref(r)("booking.reservation.giftCardCode"),buttonLabel:e.unref(r)("giftCardValidation.submitButton"),placeholder:"XXXXXXXX","is-loading":e.unref(i),"onUpdate:isLoading":n[1]||(n[1]=l=>e.isRef(i)?i.value=l:null),onAction:n[2]||(n[2]=l=>e.unref(p)())},null,8,["modelValue","label","buttonLabel","is-loading"]),!e.unref(i)&&e.unref(g)?(e.openBlock(),e.createElementBlock("table",F,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",null,[e.createElementVNode("span",null,e.toDisplayString(e.unref(r)("giftCardValidation.giftCard")),1),e.createVNode(u.Icon,{icon:"gift-card",type:"fas","icon-color":d.headerColor},null,8,["icon-color"])]),e.createElementVNode("th",null,[e.createElementVNode("span",null,e.toDisplayString(e.unref(r)("giftCardValidation.balance")),1),e.createVNode(u.Icon,{icon:"money-bill",type:"fas","icon-color":d.headerColor},null,8,["icon-color"])]),e.createElementVNode("th",null,[e.createElementVNode("span",null,e.toDisplayString(e.unref(r)("giftCardValidation.expirationDate")),1),e.createVNode(u.Icon,{icon:"timer",type:"fas","icon-color":d.headerColor},null,8,["icon-color"])])])]),e.createElementVNode("tbody",null,[e.createElementVNode("tr",null,[e.createElementVNode("td",null,[e.createElementVNode("span",null,e.toDisplayString(e.unref(C)),1)]),e.createElementVNode("td",null,[e.createElementVNode("span",null,e.toDisplayString(e.unref(t.showPrice)(e.unref(m),e.unref(V))),1)]),e.createElementVNode("td",null,[e.createElementVNode("span",null,e.toDisplayString(e.unref(t.showDate)(e.unref(b))),1)])])])])):e.createCommentVNode("",!0)],32)]),_:1},8,["access-token"])]),fallback:e.withCtx(()=>[E]),_:1}))}});const _=u._export_sfc(k,[["__scopeId","data-v-64c7a8a4"]]);process.env.NODE_ENV==="production"&&t.distExports.flare.light("rzAIZ4UzZcOlUo0F0ZcYWETY9Z6JXf82");const s=e.createApp({components:{GiftCardValidation:_}}),S=t.createPinia();s.use(t.distExports$1.flareVue);s.use(S);s.use(t.instance);s.mount("#fresh-booking-gift-card-validation-app");
|
|
2
|
+
//# sourceMappingURL=gift-card-validation.cjs.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
� ��8�|1�va��T��˩}����Fr�\ch�0�����睓����j SbDNȩ�����?A4J'D�J���9��'~1M>3_��G���4�H]�6hTJe���ROR��>Z�V�o��p���_U�g!X�
|
|
2
|
+
��R�^�#^F�_zenS��oOx(�RT�,�z���Ah�$LМͦ��2%d�M���}�m�����E�K��t��*|�o�/�^&�x=�@'��b F10��{ �U�U����"�"�@�s�D���&�%����x�E��ʁ�.�����ַC1���H��Bۯ0U�,!�d@����Z:)Eъd(
|
|
3
|
+
�
|
|
4
|
+
U��$��\M��
|
|
5
|
+
)����#T�u�FQ,��.P�t!T�9�4��É@Nqp�pМEl
|
|
6
|
+
-�c�e���pmX�
|
|
7
|
+
?Si~�@�A0�C �����T�k�x��D>l?���=ɀ��b0��a6��a�� FJD�u
|
|
8
|
+
�(��>�ݷ
|
|
9
|
+
e�
|