@oneclick.dev/cms-core-modules 0.0.61 → 0.0.63
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/{ContentEditor-BAepN3Yd.js → ContentEditor-DKFCmfOs.js} +1 -1
- package/dist/{ContentEditor-BPjWW3d1.mjs → ContentEditor-owdOIage.mjs} +1 -1
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-DRVxQswt.js +1 -0
- package/dist/{NewReservationDialog.vue_vue_type_script_setup_true_lang-BJitmbPE.mjs → NewReservationDialog.vue_vue_type_script_setup_true_lang-DkgDWC2i.mjs} +130 -125
- package/dist/{Overview-DtWvKB3W.mjs → Overview-DiBYtvEX.mjs} +124 -119
- package/dist/Overview-qP1guKjx.js +1 -0
- package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-B7ks5mbf.mjs +2332 -0
- package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-Vxubki_v.js +349 -0
- package/dist/{TableView-_2cP-w_7.js → TableView-BqhL_P45.js} +100 -100
- package/dist/{TableView-DlhHyuUZ.mjs → TableView-Dbl8qcUy.mjs} +14991 -14728
- package/dist/agenda-DFNJ8C1N.mjs +1136 -0
- package/dist/agenda-MjkwV63A.js +1 -0
- package/dist/floating-ui.dom-CBBY0Ism.js +1 -0
- package/dist/floating-ui.dom-xfqXu4GA.mjs +1138 -0
- package/dist/{index-DTago6vW-Bhr8E1Y6.js → index-CgfL8UKf-DAN7RkzR.js} +10 -10
- package/dist/{index-DTago6vW-CnomHQ_S.mjs → index-CgfL8UKf-DUUg9HDA.mjs} +904 -875
- package/dist/index-DBDq-h4j.js +245 -0
- package/dist/{index-BDaVYdkD.mjs → index-X0L4AHBR.mjs} +2406 -2394
- package/dist/index-YMaY4uuk-BgpTtr73.js +1 -0
- package/dist/{index-YMaY4uuk-BshejgNP.mjs → index-YMaY4uuk-C_xV5K9Z.mjs} +13 -14
- package/dist/index.cjs.js +1 -1
- package/dist/index.mjs +6 -6
- package/dist/orders-Bqa3Z3tH.mjs +356 -0
- package/dist/orders-D5GJOZXN.js +1 -0
- package/dist/src/appointments/components/edit/EventDialog/ApproveReservationDialog.vue.d.ts +8 -0
- package/dist/src/appointments/components/edit/EventDialog/BookingsList.vue.d.ts +39 -9
- package/dist/src/appointments/components/edit/EventDialog/CancelReservationDialog.vue.d.ts +2 -2
- package/dist/src/appointments/components/edit/EventDialog/RejectReservationDialog.vue.d.ts +8 -0
- package/dist/src/appointments/components/edit/EventDialog/ReservationDetailDialog.vue.d.ts +36 -8
- package/dist/src/appointments/components/edit/dashboard/BookingsList.vue.d.ts +46 -9
- package/dist/src/appointments/components/edit/dashboard/Timeline.vue.d.ts +19 -0
- package/dist/src/appointments/pages/edit/orders.vue.d.ts +39 -9
- package/package.json +1 -1
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-D50uTpZY.js +0 -1
- package/dist/Overview-B_99j5eA.js +0 -1
- package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-CI8YgHdU.js +0 -345
- package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-P-MWwcVh.mjs +0 -2093
- package/dist/agenda-D81m29_4.mjs +0 -1135
- package/dist/agenda-uzPPxgsW.js +0 -1
- package/dist/floating-ui.dom-C82nbomj.js +0 -1
- package/dist/floating-ui.dom-ouSgPqty.mjs +0 -1133
- package/dist/index-DfV8-6ON.js +0 -245
- package/dist/index-YMaY4uuk-BxVT7IpO.js +0 -1
- package/dist/orders-Bh8w0ueq.mjs +0 -346
- package/dist/orders-Dt0zMz97.js +0 -1
- package/dist/src/appointments/components/edit/EventDialog/ResendConfirmationDialog.vue.d.ts +0 -4
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Plus as
|
|
1
|
+
import { defineComponent as ue, ref as d, watch as de, inject as re, computed as pe, resolveComponent as n, openBlock as _, createBlock as U, withCtx as t, createVNode as l, unref as c, createTextVNode as i, createElementVNode as o, toDisplayString as D, createElementBlock as y, Fragment as k, renderList as M, normalizeClass as ce } from "vue";
|
|
2
|
+
import { Plus as ve, CalendarIcon as me } from "lucide-vue-next";
|
|
3
3
|
import { useModuleRoute as fe, useModule as ge, useFirebaseIntegration as _e } from "@oneclick.dev/cms-kit";
|
|
4
4
|
import { c as Ve } from "./utils-BVKy9S2J.mjs";
|
|
5
|
-
import { o as q, g as
|
|
6
|
-
const
|
|
5
|
+
import { o as q, g as R, h as De } from "./DateFormatter-DsmlAuYV.mjs";
|
|
6
|
+
const Se = { class: "@container/new-res-form space-y-5 py-4" }, be = { class: "grid gap-4" }, xe = { class: "grid gap-4 @md/new-res-form:grid-cols-2" }, ye = { class: "grid gap-2" }, Pe = { class: "flex gap-2 items-center" }, we = { class: "grid gap-2" }, $e = { class: "flex gap-2 items-center" }, Ce = { class: "grid gap-2" }, Te = { class: "grid gap-2" }, he = { class: "grid gap-4" }, Ne = { class: "grid gap-4 @md/new-res-form:grid-cols-2" }, Oe = { class: "grid gap-2" }, Fe = { class: "grid gap-4 @md/new-res-form:grid-cols-2" }, Ie = { class: "grid gap-2" }, Ue = { class: "grid gap-2" }, ke = { class: "flex items-center h-9 px-3 text-sm text-muted-foreground" }, Me = { class: "grid gap-4" }, Re = { class: "grid gap-4 @md/new-res-form:grid-cols-2" }, Le = { class: "grid gap-2" }, Be = { class: "grid gap-2" }, Ee = { class: "grid gap-4 @md/new-res-form:grid-cols-2" }, je = { class: "grid gap-2" }, Ae = { class: "grid gap-2" }, He = { class: "mt-4 text-red-400" }, ze = { class: "list-disc pl-4" }, Ge = { key: 0 }, qe = { key: 1 }, Ze = /* @__PURE__ */ ue({
|
|
7
7
|
__name: "NewReservationDialog",
|
|
8
|
-
setup(
|
|
9
|
-
const { params: J } = fe(), { config: L } = ge(), K = _e(L.project),
|
|
10
|
-
de(
|
|
11
|
-
s && (T.value = [],
|
|
8
|
+
setup(Je) {
|
|
9
|
+
const { params: J } = fe(), { config: L } = ge(), K = _e(L.project), $ = d(!1);
|
|
10
|
+
de($, (s) => {
|
|
11
|
+
s && (T.value = [], V.value = 1, f.value = 0, r.value = u.value?.resources?.[0]?.id ?? "", v.value = u.value?.pricingOptions?.find((e) => e.isDefault === !0)?.id ?? "", p.value = "", P.value = "", w.value = "", S.value = "", h.value = "");
|
|
12
12
|
});
|
|
13
|
-
const
|
|
13
|
+
const C = d(!1), u = re("agendaData", d({})), T = d([]), V = d(1), f = d(0), r = d(""), v = d(""), p = d(""), P = d(""), w = d(""), S = d(""), h = d(""), Q = q(R()), g = d(), W = new De("en-US", {
|
|
14
14
|
dateStyle: "long"
|
|
15
15
|
}), B = pe(() => {
|
|
16
|
-
if (!
|
|
17
|
-
const s =
|
|
18
|
-
if (!s?.duration) return
|
|
19
|
-
const [e,
|
|
20
|
-
if (isNaN(e) || isNaN(
|
|
21
|
-
const
|
|
16
|
+
if (!p.value || !v.value) return "";
|
|
17
|
+
const s = u.value?.pricingOptions?.find((I) => I.id === v.value);
|
|
18
|
+
if (!s?.duration) return p.value;
|
|
19
|
+
const [e, b] = p.value.split(":").map(Number);
|
|
20
|
+
if (isNaN(e) || isNaN(b)) return "";
|
|
21
|
+
const N = e * 60 + b + s.duration, O = Math.floor(N / 60) % 24, F = N % 60;
|
|
22
22
|
return `${O.toString().padStart(2, "0")}:${F.toString().padStart(2, "0")}`;
|
|
23
23
|
}), X = () => {
|
|
24
24
|
const s = [];
|
|
25
|
-
return T.value = [],
|
|
25
|
+
return T.value = [], V.value < 1 && V.value > 9999 && s.push("Please fill in a correct number of spots."), f.value < 0 && (f.value = 0), r.value || s.push("Please select a resource."), v.value || s.push("Please select a type."), g.value || s.push("Please select the booking date."), (!p.value || p.value.length !== 5 || p.value?.indexOf(":") === -1 || !parseInt(p.value?.replace(":", ""))) && s.push("Please select a correct booking time."), P.value || s.push("Please fill in the first name of the customer."), w.value || s.push("Please fill in the last name of the customer."), (!S.value || /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(S.value) === !1) && s.push("Please fill in the correct email of the customer."), T.value = s, s.length === 0;
|
|
26
26
|
}, Y = async () => {
|
|
27
27
|
if (X())
|
|
28
28
|
try {
|
|
29
|
-
|
|
29
|
+
C.value = !0;
|
|
30
30
|
const s = {
|
|
31
31
|
agendaId: J.value.id,
|
|
32
32
|
customerInfo: {
|
|
33
33
|
firstName: P.value,
|
|
34
34
|
lastName: w.value,
|
|
35
|
-
email:
|
|
36
|
-
phone:
|
|
35
|
+
email: S.value,
|
|
36
|
+
phone: h.value
|
|
37
37
|
},
|
|
38
38
|
amountPaid: parseFloat(f.value) ?? 0,
|
|
39
39
|
amountDue: 0,
|
|
@@ -42,34 +42,36 @@ const De = { class: "@container/new-res-form space-y-5 py-4" }, xe = { class: "g
|
|
|
42
42
|
createdAt: /* @__PURE__ */ new Date(),
|
|
43
43
|
updatedAt: /* @__PURE__ */ new Date(),
|
|
44
44
|
discount: 0,
|
|
45
|
-
|
|
45
|
+
flattenedReservationDates: [`${r.value}_${g.value}`],
|
|
46
|
+
flattenedReservations: [`${r.value}_${g.value}_${p.value?.replace(":", "")}`],
|
|
46
47
|
paymentStatus: "paid",
|
|
47
48
|
paymentType: "full",
|
|
48
49
|
reservations: [{
|
|
50
|
+
status: "approved",
|
|
49
51
|
totalPrice: parseFloat(f.value?.toFixed(2)) ?? 0,
|
|
50
|
-
basePrice: parseFloat((f.value /
|
|
52
|
+
basePrice: parseFloat((f.value / V.value).toFixed(2)) ?? 0,
|
|
51
53
|
addOnsPrice: 0,
|
|
52
54
|
addOns: [],
|
|
53
55
|
date: `${g.value}`,
|
|
54
56
|
id: `res_${Date.now()}_${Math.random().toString(36).substring(2, 9)}`,
|
|
55
57
|
pricingOption: {
|
|
56
|
-
duration:
|
|
57
|
-
id:
|
|
58
|
-
name:
|
|
59
|
-
price:
|
|
58
|
+
duration: u.value?.pricingOptions?.find((e) => e.id === v.value)?.duration || "",
|
|
59
|
+
id: u.value?.pricingOptions?.find((e) => e.id === v.value)?.id || "",
|
|
60
|
+
name: u.value?.pricingOptions?.find((e) => e.id === v.value)?.name || "",
|
|
61
|
+
price: u.value?.pricingOptions?.find((e) => e.id === v.value)?.price || ""
|
|
60
62
|
},
|
|
61
|
-
pricingOptionId:
|
|
63
|
+
pricingOptionId: v.value,
|
|
62
64
|
resource: {
|
|
63
|
-
avatarLabel:
|
|
64
|
-
color:
|
|
65
|
-
description:
|
|
66
|
-
id:
|
|
67
|
-
name:
|
|
65
|
+
avatarLabel: u.value?.resources?.find((e) => e.id === r.value)?.avatarLabel || "",
|
|
66
|
+
color: u.value?.resources?.find((e) => e.id === r.value)?.color || "",
|
|
67
|
+
description: u.value?.resources?.find((e) => e.id === r.value)?.description || "",
|
|
68
|
+
id: u.value?.resources?.find((e) => e.id === r.value)?.id || "",
|
|
69
|
+
name: u.value?.resources?.find((e) => e.id === r.value)?.name || ""
|
|
68
70
|
},
|
|
69
|
-
resourceId:
|
|
70
|
-
spots:
|
|
71
|
+
resourceId: r.value,
|
|
72
|
+
spots: V.value,
|
|
71
73
|
timeslot: {
|
|
72
|
-
startTime:
|
|
74
|
+
startTime: p.value,
|
|
73
75
|
endTime: B.value
|
|
74
76
|
}
|
|
75
77
|
}],
|
|
@@ -78,22 +80,22 @@ const De = { class: "@container/new-res-form space-y-5 py-4" }, xe = { class: "g
|
|
|
78
80
|
await K.add(L.reservationsCollection, s);
|
|
79
81
|
} catch {
|
|
80
82
|
} finally {
|
|
81
|
-
|
|
83
|
+
C.value = !1, $.value = !1;
|
|
82
84
|
}
|
|
83
85
|
};
|
|
84
86
|
return (s, e) => {
|
|
85
|
-
const
|
|
86
|
-
return
|
|
87
|
-
open:
|
|
88
|
-
"onUpdate:open": e[10] || (e[10] = (a) =>
|
|
87
|
+
const b = n("Button"), N = n("DialogTrigger"), O = n("DialogTitle"), F = n("DialogDescription"), I = n("DialogHeader"), m = n("Label"), x = n("Input"), E = n("SelectValue"), j = n("SelectTrigger"), A = n("SelectItem"), H = n("SelectGroup"), z = n("SelectContent"), G = n("Select"), Z = n("PopoverTrigger"), ee = n("Calendar"), le = n("PopoverContent"), te = n("Popover"), ae = n("TimeInput"), oe = n("DialogFooter"), ne = n("DialogScrollContent"), se = n("Dialog");
|
|
88
|
+
return _(), U(se, {
|
|
89
|
+
open: $.value,
|
|
90
|
+
"onUpdate:open": e[10] || (e[10] = (a) => $.value = a)
|
|
89
91
|
}, {
|
|
90
92
|
default: t(() => [
|
|
91
|
-
l(
|
|
93
|
+
l(N, { "as-child": "" }, {
|
|
92
94
|
default: t(() => [
|
|
93
|
-
l(
|
|
95
|
+
l(b, null, {
|
|
94
96
|
default: t(() => [
|
|
95
|
-
l(
|
|
96
|
-
e[11] || (e[11] =
|
|
97
|
+
l(c(ve), { class: "size-4" }),
|
|
98
|
+
e[11] || (e[11] = i(" Add Reservation ", -1))
|
|
97
99
|
]),
|
|
98
100
|
_: 1
|
|
99
101
|
})
|
|
@@ -106,7 +108,7 @@ const De = { class: "@container/new-res-form space-y-5 py-4" }, xe = { class: "g
|
|
|
106
108
|
default: t(() => [
|
|
107
109
|
l(O, null, {
|
|
108
110
|
default: t(() => [...e[12] || (e[12] = [
|
|
109
|
-
|
|
111
|
+
i("Create new reservation", -1)
|
|
110
112
|
])]),
|
|
111
113
|
_: 1
|
|
112
114
|
}),
|
|
@@ -114,20 +116,20 @@ const De = { class: "@container/new-res-form space-y-5 py-4" }, xe = { class: "g
|
|
|
114
116
|
]),
|
|
115
117
|
_: 1
|
|
116
118
|
}),
|
|
117
|
-
o("div",
|
|
118
|
-
o("div",
|
|
119
|
-
o("div",
|
|
120
|
-
o("div",
|
|
121
|
-
l(
|
|
119
|
+
o("div", Se, [
|
|
120
|
+
o("div", be, [
|
|
121
|
+
o("div", xe, [
|
|
122
|
+
o("div", ye, [
|
|
123
|
+
l(m, null, {
|
|
122
124
|
default: t(() => [...e[13] || (e[13] = [
|
|
123
|
-
|
|
125
|
+
i("Spots/tickets", -1)
|
|
124
126
|
])]),
|
|
125
127
|
_: 1
|
|
126
128
|
}),
|
|
127
|
-
o("div",
|
|
128
|
-
l(
|
|
129
|
-
modelValue:
|
|
130
|
-
"onUpdate:modelValue": e[0] || (e[0] = (a) =>
|
|
129
|
+
o("div", Pe, [
|
|
130
|
+
l(x, {
|
|
131
|
+
modelValue: V.value,
|
|
132
|
+
"onUpdate:modelValue": e[0] || (e[0] = (a) => V.value = a),
|
|
131
133
|
modelModifiers: { number: !0 },
|
|
132
134
|
type: "number",
|
|
133
135
|
min: "1",
|
|
@@ -135,15 +137,15 @@ const De = { class: "@container/new-res-form space-y-5 py-4" }, xe = { class: "g
|
|
|
135
137
|
}, null, 8, ["modelValue"])
|
|
136
138
|
])
|
|
137
139
|
]),
|
|
138
|
-
o("div",
|
|
139
|
-
l(
|
|
140
|
+
o("div", we, [
|
|
141
|
+
l(m, null, {
|
|
140
142
|
default: t(() => [...e[14] || (e[14] = [
|
|
141
|
-
|
|
143
|
+
i("Total price paid", -1)
|
|
142
144
|
])]),
|
|
143
145
|
_: 1
|
|
144
146
|
}),
|
|
145
|
-
o("div",
|
|
146
|
-
l(
|
|
147
|
+
o("div", $e, [
|
|
148
|
+
l(x, {
|
|
147
149
|
modelValue: f.value,
|
|
148
150
|
"onUpdate:modelValue": e[1] || (e[1] = (a) => f.value = a),
|
|
149
151
|
modelModifiers: { number: !0 },
|
|
@@ -151,22 +153,22 @@ const De = { class: "@container/new-res-form space-y-5 py-4" }, xe = { class: "g
|
|
|
151
153
|
min: "0",
|
|
152
154
|
class: "no-spinner"
|
|
153
155
|
}, null, 8, ["modelValue"]),
|
|
154
|
-
|
|
156
|
+
i(" " + D(c(u).currency), 1)
|
|
155
157
|
])
|
|
156
158
|
]),
|
|
157
|
-
o("div",
|
|
158
|
-
l(
|
|
159
|
+
o("div", Ce, [
|
|
160
|
+
l(m, null, {
|
|
159
161
|
default: t(() => [...e[15] || (e[15] = [
|
|
160
|
-
|
|
162
|
+
i("Resource", -1)
|
|
161
163
|
])]),
|
|
162
164
|
_: 1
|
|
163
165
|
}),
|
|
164
166
|
l(G, {
|
|
165
|
-
modelValue:
|
|
166
|
-
"onUpdate:modelValue": e[2] || (e[2] = (a) =>
|
|
167
|
+
modelValue: r.value,
|
|
168
|
+
"onUpdate:modelValue": e[2] || (e[2] = (a) => r.value = a)
|
|
167
169
|
}, {
|
|
168
170
|
default: t(() => [
|
|
169
|
-
l(
|
|
171
|
+
l(j, { class: "w-full" }, {
|
|
170
172
|
default: t(() => [
|
|
171
173
|
l(E, { placeholder: "Select resource" })
|
|
172
174
|
]),
|
|
@@ -176,11 +178,11 @@ const De = { class: "@container/new-res-form space-y-5 py-4" }, xe = { class: "g
|
|
|
176
178
|
default: t(() => [
|
|
177
179
|
l(H, null, {
|
|
178
180
|
default: t(() => [
|
|
179
|
-
(
|
|
181
|
+
(_(!0), y(k, null, M(c(u).resources, (a) => (_(), U(A, {
|
|
180
182
|
value: a.id
|
|
181
183
|
}, {
|
|
182
184
|
default: t(() => [
|
|
183
|
-
|
|
185
|
+
i(D(a.name), 1)
|
|
184
186
|
]),
|
|
185
187
|
_: 2
|
|
186
188
|
}, 1032, ["value"]))), 256))
|
|
@@ -194,19 +196,19 @@ const De = { class: "@container/new-res-form space-y-5 py-4" }, xe = { class: "g
|
|
|
194
196
|
_: 1
|
|
195
197
|
}, 8, ["modelValue"])
|
|
196
198
|
]),
|
|
197
|
-
o("div",
|
|
198
|
-
l(
|
|
199
|
+
o("div", Te, [
|
|
200
|
+
l(m, null, {
|
|
199
201
|
default: t(() => [...e[16] || (e[16] = [
|
|
200
|
-
|
|
202
|
+
i("Type", -1)
|
|
201
203
|
])]),
|
|
202
204
|
_: 1
|
|
203
205
|
}),
|
|
204
206
|
l(G, {
|
|
205
|
-
modelValue:
|
|
206
|
-
"onUpdate:modelValue": e[3] || (e[3] = (a) =>
|
|
207
|
+
modelValue: v.value,
|
|
208
|
+
"onUpdate:modelValue": e[3] || (e[3] = (a) => v.value = a)
|
|
207
209
|
}, {
|
|
208
210
|
default: t(() => [
|
|
209
|
-
l(
|
|
211
|
+
l(j, { class: "w-full" }, {
|
|
210
212
|
default: t(() => [
|
|
211
213
|
l(E, { placeholder: "Select type" })
|
|
212
214
|
]),
|
|
@@ -216,11 +218,11 @@ const De = { class: "@container/new-res-form space-y-5 py-4" }, xe = { class: "g
|
|
|
216
218
|
default: t(() => [
|
|
217
219
|
l(H, null, {
|
|
218
220
|
default: t(() => [
|
|
219
|
-
(
|
|
221
|
+
(_(!0), y(k, null, M(c(u).pricingOptions, (a) => (_(), U(A, {
|
|
220
222
|
value: a.id
|
|
221
223
|
}, {
|
|
222
224
|
default: t(() => [
|
|
223
|
-
|
|
225
|
+
i(D(a.name) + " (" + D(a.duration) + "min) ", 1)
|
|
224
226
|
]),
|
|
225
227
|
_: 2
|
|
226
228
|
}, 1032, ["value"]))), 256))
|
|
@@ -236,12 +238,12 @@ const De = { class: "@container/new-res-form space-y-5 py-4" }, xe = { class: "g
|
|
|
236
238
|
])
|
|
237
239
|
])
|
|
238
240
|
]),
|
|
239
|
-
o("div",
|
|
240
|
-
o("div",
|
|
241
|
-
o("div",
|
|
242
|
-
l(
|
|
241
|
+
o("div", he, [
|
|
242
|
+
o("div", Ne, [
|
|
243
|
+
o("div", Oe, [
|
|
244
|
+
l(m, null, {
|
|
243
245
|
default: t(() => [...e[17] || (e[17] = [
|
|
244
|
-
|
|
246
|
+
i("Date", -1)
|
|
245
247
|
])]),
|
|
246
248
|
_: 1
|
|
247
249
|
}),
|
|
@@ -249,13 +251,13 @@ const De = { class: "@container/new-res-form space-y-5 py-4" }, xe = { class: "g
|
|
|
249
251
|
default: t(({ close: a }) => [
|
|
250
252
|
l(Z, { "as-child": "" }, {
|
|
251
253
|
default: t(() => [
|
|
252
|
-
l(
|
|
254
|
+
l(b, {
|
|
253
255
|
variant: "outline",
|
|
254
|
-
class: ce(
|
|
256
|
+
class: ce(c(Ve)("w-[240px] justify-start text-left font-normal", !g.value && "text-muted-foreground"))
|
|
255
257
|
}, {
|
|
256
258
|
default: t(() => [
|
|
257
|
-
l(
|
|
258
|
-
|
|
259
|
+
l(c(me)),
|
|
260
|
+
i(" " + D(g.value ? c(W).format(g.value.toDate(c(R)())) : "Pick a date"), 1)
|
|
259
261
|
]),
|
|
260
262
|
_: 1
|
|
261
263
|
}, 8, ["class"])
|
|
@@ -270,13 +272,13 @@ const De = { class: "@container/new-res-form space-y-5 py-4" }, xe = { class: "g
|
|
|
270
272
|
l(ee, {
|
|
271
273
|
modelValue: g.value,
|
|
272
274
|
"onUpdate:modelValue": [
|
|
273
|
-
e[4] || (e[4] = (
|
|
275
|
+
e[4] || (e[4] = (ie) => g.value = ie),
|
|
274
276
|
a
|
|
275
277
|
],
|
|
276
|
-
"default-placeholder":
|
|
278
|
+
"default-placeholder": c(Q),
|
|
277
279
|
layout: "month-and-year",
|
|
278
280
|
"initial-focus": "",
|
|
279
|
-
minValue:
|
|
281
|
+
minValue: c(q)(c(R)())
|
|
280
282
|
}, null, 8, ["modelValue", "default-placeholder", "onUpdate:modelValue", "minValue"])
|
|
281
283
|
]),
|
|
282
284
|
_: 2
|
|
@@ -286,99 +288,102 @@ const De = { class: "@container/new-res-form space-y-5 py-4" }, xe = { class: "g
|
|
|
286
288
|
})
|
|
287
289
|
])
|
|
288
290
|
]),
|
|
289
|
-
o("div",
|
|
290
|
-
o("div",
|
|
291
|
-
l(
|
|
291
|
+
o("div", Fe, [
|
|
292
|
+
o("div", Ie, [
|
|
293
|
+
l(m, null, {
|
|
292
294
|
default: t(() => [...e[18] || (e[18] = [
|
|
293
|
-
|
|
295
|
+
i("Start time", -1)
|
|
294
296
|
])]),
|
|
295
297
|
_: 1
|
|
296
298
|
}),
|
|
297
299
|
l(ae, {
|
|
298
|
-
modelValue:
|
|
299
|
-
"onUpdate:modelValue": e[5] || (e[5] = (a) =>
|
|
300
|
+
modelValue: p.value,
|
|
301
|
+
"onUpdate:modelValue": e[5] || (e[5] = (a) => p.value = a)
|
|
300
302
|
}, null, 8, ["modelValue"])
|
|
301
303
|
]),
|
|
302
|
-
o("div",
|
|
303
|
-
l(
|
|
304
|
+
o("div", Ue, [
|
|
305
|
+
l(m, null, {
|
|
304
306
|
default: t(() => [...e[19] || (e[19] = [
|
|
305
|
-
|
|
307
|
+
i("End time", -1)
|
|
306
308
|
])]),
|
|
307
309
|
_: 1
|
|
308
310
|
}),
|
|
309
|
-
o("div", ke,
|
|
311
|
+
o("div", ke, D(c(B) || "--:--"), 1)
|
|
310
312
|
])
|
|
311
313
|
])
|
|
312
314
|
]),
|
|
313
315
|
o("div", Me, [
|
|
314
|
-
o("div",
|
|
315
|
-
o("div",
|
|
316
|
-
l(
|
|
316
|
+
o("div", Re, [
|
|
317
|
+
o("div", Le, [
|
|
318
|
+
l(m, null, {
|
|
317
319
|
default: t(() => [...e[20] || (e[20] = [
|
|
318
|
-
|
|
320
|
+
i("Firstname", -1)
|
|
319
321
|
])]),
|
|
320
322
|
_: 1
|
|
321
323
|
}),
|
|
322
|
-
l(
|
|
324
|
+
l(x, {
|
|
323
325
|
modelValue: P.value,
|
|
324
326
|
"onUpdate:modelValue": e[6] || (e[6] = (a) => P.value = a)
|
|
325
327
|
}, null, 8, ["modelValue"])
|
|
326
328
|
]),
|
|
327
329
|
o("div", Be, [
|
|
328
|
-
l(
|
|
330
|
+
l(m, null, {
|
|
329
331
|
default: t(() => [...e[21] || (e[21] = [
|
|
330
|
-
|
|
332
|
+
i("Lastname", -1)
|
|
331
333
|
])]),
|
|
332
334
|
_: 1
|
|
333
335
|
}),
|
|
334
|
-
l(
|
|
336
|
+
l(x, {
|
|
335
337
|
modelValue: w.value,
|
|
336
338
|
"onUpdate:modelValue": e[7] || (e[7] = (a) => w.value = a)
|
|
337
339
|
}, null, 8, ["modelValue"])
|
|
338
340
|
])
|
|
339
341
|
]),
|
|
340
342
|
o("div", Ee, [
|
|
341
|
-
o("div",
|
|
342
|
-
l(
|
|
343
|
+
o("div", je, [
|
|
344
|
+
l(m, null, {
|
|
343
345
|
default: t(() => [...e[22] || (e[22] = [
|
|
344
|
-
|
|
346
|
+
i("E-mail", -1)
|
|
345
347
|
])]),
|
|
346
348
|
_: 1
|
|
347
349
|
}),
|
|
348
|
-
l(
|
|
349
|
-
modelValue:
|
|
350
|
-
"onUpdate:modelValue": e[8] || (e[8] = (a) =>
|
|
350
|
+
l(x, {
|
|
351
|
+
modelValue: S.value,
|
|
352
|
+
"onUpdate:modelValue": e[8] || (e[8] = (a) => S.value = a)
|
|
351
353
|
}, null, 8, ["modelValue"])
|
|
352
354
|
]),
|
|
353
|
-
o("div",
|
|
354
|
-
l(
|
|
355
|
+
o("div", Ae, [
|
|
356
|
+
l(m, null, {
|
|
355
357
|
default: t(() => [...e[23] || (e[23] = [
|
|
356
|
-
|
|
358
|
+
i("Phone Nr ", -1),
|
|
357
359
|
o("span", { class: "italic text-xs opacity-50" }, "optional", -1)
|
|
358
360
|
])]),
|
|
359
361
|
_: 1
|
|
360
362
|
}),
|
|
361
|
-
l(
|
|
362
|
-
modelValue:
|
|
363
|
-
"onUpdate:modelValue": e[9] || (e[9] = (a) =>
|
|
363
|
+
l(x, {
|
|
364
|
+
modelValue: h.value,
|
|
365
|
+
"onUpdate:modelValue": e[9] || (e[9] = (a) => h.value = a)
|
|
364
366
|
}, null, 8, ["modelValue"])
|
|
365
367
|
])
|
|
366
368
|
])
|
|
367
369
|
]),
|
|
368
370
|
o("div", He, [
|
|
369
371
|
o("ul", ze, [
|
|
370
|
-
(
|
|
372
|
+
(_(!0), y(k, null, M(T.value, (a) => (_(), y("li", { key: a }, D(a), 1))), 128))
|
|
371
373
|
])
|
|
372
374
|
])
|
|
373
375
|
]),
|
|
374
376
|
l(oe, { class: "gap-2" }, {
|
|
375
377
|
default: t(() => [
|
|
376
|
-
l(
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
378
|
+
l(b, {
|
|
379
|
+
onClick: Y,
|
|
380
|
+
disabled: C.value
|
|
381
|
+
}, {
|
|
382
|
+
default: t(() => [
|
|
383
|
+
C.value ? (_(), y("span", Ge, "Creating...")) : (_(), y("span", qe, "Create reservation"))
|
|
384
|
+
]),
|
|
380
385
|
_: 1
|
|
381
|
-
})
|
|
386
|
+
}, 8, ["disabled"])
|
|
382
387
|
]),
|
|
383
388
|
_: 1
|
|
384
389
|
})
|
|
@@ -392,5 +397,5 @@ const De = { class: "@container/new-res-form space-y-5 py-4" }, xe = { class: "g
|
|
|
392
397
|
}
|
|
393
398
|
});
|
|
394
399
|
export {
|
|
395
|
-
|
|
400
|
+
Ze as _
|
|
396
401
|
};
|