@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.
Files changed (46) hide show
  1. package/dist/{ContentEditor-BAepN3Yd.js → ContentEditor-DKFCmfOs.js} +1 -1
  2. package/dist/{ContentEditor-BPjWW3d1.mjs → ContentEditor-owdOIage.mjs} +1 -1
  3. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-DRVxQswt.js +1 -0
  4. package/dist/{NewReservationDialog.vue_vue_type_script_setup_true_lang-BJitmbPE.mjs → NewReservationDialog.vue_vue_type_script_setup_true_lang-DkgDWC2i.mjs} +130 -125
  5. package/dist/{Overview-DtWvKB3W.mjs → Overview-DiBYtvEX.mjs} +124 -119
  6. package/dist/Overview-qP1guKjx.js +1 -0
  7. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-B7ks5mbf.mjs +2332 -0
  8. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-Vxubki_v.js +349 -0
  9. package/dist/{TableView-_2cP-w_7.js → TableView-BqhL_P45.js} +100 -100
  10. package/dist/{TableView-DlhHyuUZ.mjs → TableView-Dbl8qcUy.mjs} +14991 -14728
  11. package/dist/agenda-DFNJ8C1N.mjs +1136 -0
  12. package/dist/agenda-MjkwV63A.js +1 -0
  13. package/dist/floating-ui.dom-CBBY0Ism.js +1 -0
  14. package/dist/floating-ui.dom-xfqXu4GA.mjs +1138 -0
  15. package/dist/{index-DTago6vW-Bhr8E1Y6.js → index-CgfL8UKf-DAN7RkzR.js} +10 -10
  16. package/dist/{index-DTago6vW-CnomHQ_S.mjs → index-CgfL8UKf-DUUg9HDA.mjs} +904 -875
  17. package/dist/index-DBDq-h4j.js +245 -0
  18. package/dist/{index-BDaVYdkD.mjs → index-X0L4AHBR.mjs} +2406 -2394
  19. package/dist/index-YMaY4uuk-BgpTtr73.js +1 -0
  20. package/dist/{index-YMaY4uuk-BshejgNP.mjs → index-YMaY4uuk-C_xV5K9Z.mjs} +13 -14
  21. package/dist/index.cjs.js +1 -1
  22. package/dist/index.mjs +6 -6
  23. package/dist/orders-Bqa3Z3tH.mjs +356 -0
  24. package/dist/orders-D5GJOZXN.js +1 -0
  25. package/dist/src/appointments/components/edit/EventDialog/ApproveReservationDialog.vue.d.ts +8 -0
  26. package/dist/src/appointments/components/edit/EventDialog/BookingsList.vue.d.ts +39 -9
  27. package/dist/src/appointments/components/edit/EventDialog/CancelReservationDialog.vue.d.ts +2 -2
  28. package/dist/src/appointments/components/edit/EventDialog/RejectReservationDialog.vue.d.ts +8 -0
  29. package/dist/src/appointments/components/edit/EventDialog/ReservationDetailDialog.vue.d.ts +36 -8
  30. package/dist/src/appointments/components/edit/dashboard/BookingsList.vue.d.ts +46 -9
  31. package/dist/src/appointments/components/edit/dashboard/Timeline.vue.d.ts +19 -0
  32. package/dist/src/appointments/pages/edit/orders.vue.d.ts +39 -9
  33. package/package.json +1 -1
  34. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-D50uTpZY.js +0 -1
  35. package/dist/Overview-B_99j5eA.js +0 -1
  36. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-CI8YgHdU.js +0 -345
  37. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-P-MWwcVh.mjs +0 -2093
  38. package/dist/agenda-D81m29_4.mjs +0 -1135
  39. package/dist/agenda-uzPPxgsW.js +0 -1
  40. package/dist/floating-ui.dom-C82nbomj.js +0 -1
  41. package/dist/floating-ui.dom-ouSgPqty.mjs +0 -1133
  42. package/dist/index-DfV8-6ON.js +0 -245
  43. package/dist/index-YMaY4uuk-BxVT7IpO.js +0 -1
  44. package/dist/orders-Bh8w0ueq.mjs +0 -346
  45. package/dist/orders-Dt0zMz97.js +0 -1
  46. package/dist/src/appointments/components/edit/EventDialog/ResendConfirmationDialog.vue.d.ts +0 -4
@@ -1,39 +1,39 @@
1
- import { defineComponent as ie, ref as d, watch as de, inject as re, computed as pe, resolveComponent as n, openBlock as V, createBlock as U, withCtx as t, createVNode as l, unref as p, createTextVNode as u, createElementVNode as o, toDisplayString as S, createElementBlock as N, Fragment as h, renderList as k, normalizeClass as ce } from "vue";
2
- import { Plus as me, CalendarIcon as ve } from "lucide-vue-next";
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 M, h as Se } from "./DateFormatter-DsmlAuYV.mjs";
6
- const De = { class: "@container/new-res-form space-y-5 py-4" }, xe = { class: "grid gap-4" }, be = { class: "grid gap-4 @md/new-res-form:grid-cols-2" }, Pe = { class: "grid gap-2" }, we = { class: "flex gap-2 items-center" }, ye = { class: "grid gap-2" }, Te = { class: "flex gap-2 items-center" }, $e = { class: "grid gap-2" }, Ce = { class: "grid gap-2" }, Ne = { class: "grid gap-4" }, Oe = { class: "grid gap-4 @md/new-res-form:grid-cols-2" }, Fe = { class: "grid gap-2" }, Ie = { class: "grid gap-4 @md/new-res-form:grid-cols-2" }, Ue = { class: "grid gap-2" }, he = { class: "grid gap-2" }, ke = { class: "flex items-center h-9 px-3 text-sm text-muted-foreground" }, Me = { class: "grid gap-4" }, Le = { class: "grid gap-4 @md/new-res-form:grid-cols-2" }, Re = { class: "grid gap-2" }, Be = { class: "grid gap-2" }, Ee = { class: "grid gap-4 @md/new-res-form:grid-cols-2" }, Ae = { class: "grid gap-2" }, je = { class: "grid gap-2" }, He = { class: "mt-4 text-red-400" }, ze = { class: "list-disc pl-4" }, Xe = /* @__PURE__ */ ie({
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(Ge) {
9
- const { params: J } = fe(), { config: L } = ge(), K = _e(L.project), y = d(!1);
10
- de(y, (s) => {
11
- s && (T.value = [], _.value = 1, f.value = 0, c.value = i.value?.resources?.[0]?.id ?? "", m.value = i.value?.pricingOptions?.find((e) => e.isDefault === !0)?.id ?? "", r.value = "", P.value = "", w.value = "", D.value = "", $.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 R = d(!1), i = re("agendaData", d({})), T = d([]), _ = d(1), f = d(0), c = d(""), m = d(""), r = d(""), P = d(""), w = d(""), D = d(""), $ = d(""), Q = q(M()), g = d(), W = new Se("en-US", {
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 (!r.value || !m.value) return "";
17
- const s = i.value?.pricingOptions?.find((I) => I.id === m.value);
18
- if (!s?.duration) return r.value;
19
- const [e, x] = r.value.split(":").map(Number);
20
- if (isNaN(e) || isNaN(x)) return "";
21
- const C = e * 60 + x + s.duration, O = Math.floor(C / 60) % 24, F = C % 60;
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 = [], _.value < 1 && _.value > 9999 && s.push("Please fill in a correct number of spots."), f.value < 0 && (f.value = 0), c.value || s.push("Please select a resource."), m.value || s.push("Please select a type."), g.value || s.push("Please select the booking date."), (!r.value || r.value.length !== 5 || r.value?.indexOf(":") === -1 || !parseInt(r.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."), (!D.value || /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(D.value) === !1) && s.push("Please fill in the correct email of the customer."), T.value = s, s.length === 0;
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
- R.value = !0;
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: D.value,
36
- phone: $.value
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
- flattenedReservations: [`${c.value}_${g.value}_${r.value?.replace(":", "")}`],
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 / _.value).toFixed(2)) ?? 0,
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: i.value?.pricingOptions?.find((e) => e.id === m.value)?.duration || "",
57
- id: i.value?.pricingOptions?.find((e) => e.id === m.value)?.id || "",
58
- name: i.value?.pricingOptions?.find((e) => e.id === m.value)?.name || "",
59
- price: i.value?.pricingOptions?.find((e) => e.id === m.value)?.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: m.value,
63
+ pricingOptionId: v.value,
62
64
  resource: {
63
- avatarLabel: i.value?.resources?.find((e) => e.id === c.value)?.avatarLabel || "",
64
- color: i.value?.resources?.find((e) => e.id === c.value)?.color || "",
65
- description: i.value?.resources?.find((e) => e.id === c.value)?.description || "",
66
- id: i.value?.resources?.find((e) => e.id === c.value)?.id || "",
67
- name: i.value?.resources?.find((e) => e.id === c.value)?.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: c.value,
70
- spots: _.value,
71
+ resourceId: r.value,
72
+ spots: V.value,
71
73
  timeslot: {
72
- startTime: r.value,
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
- R.value = !1, y.value = !1;
83
+ C.value = !1, $.value = !1;
82
84
  }
83
85
  };
84
86
  return (s, e) => {
85
- const x = n("Button"), C = n("DialogTrigger"), O = n("DialogTitle"), F = n("DialogDescription"), I = n("DialogHeader"), v = n("Label"), b = n("Input"), E = n("SelectValue"), A = n("SelectTrigger"), j = 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");
86
- return V(), U(se, {
87
- open: y.value,
88
- "onUpdate:open": e[10] || (e[10] = (a) => y.value = 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(C, { "as-child": "" }, {
93
+ l(N, { "as-child": "" }, {
92
94
  default: t(() => [
93
- l(x, null, {
95
+ l(b, null, {
94
96
  default: t(() => [
95
- l(p(me), { class: "size-4" }),
96
- e[11] || (e[11] = u(" Add Reservation ", -1))
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
- u("Create new reservation", -1)
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", De, [
118
- o("div", xe, [
119
- o("div", be, [
120
- o("div", Pe, [
121
- l(v, null, {
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
- u("Spots/tickets", -1)
125
+ i("Spots/tickets", -1)
124
126
  ])]),
125
127
  _: 1
126
128
  }),
127
- o("div", we, [
128
- l(b, {
129
- modelValue: _.value,
130
- "onUpdate:modelValue": e[0] || (e[0] = (a) => _.value = 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", ye, [
139
- l(v, null, {
140
+ o("div", we, [
141
+ l(m, null, {
140
142
  default: t(() => [...e[14] || (e[14] = [
141
- u("Total price paid", -1)
143
+ i("Total price paid", -1)
142
144
  ])]),
143
145
  _: 1
144
146
  }),
145
- o("div", Te, [
146
- l(b, {
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
- u(" " + S(p(i).currency), 1)
156
+ i(" " + D(c(u).currency), 1)
155
157
  ])
156
158
  ]),
157
- o("div", $e, [
158
- l(v, null, {
159
+ o("div", Ce, [
160
+ l(m, null, {
159
161
  default: t(() => [...e[15] || (e[15] = [
160
- u("Resource", -1)
162
+ i("Resource", -1)
161
163
  ])]),
162
164
  _: 1
163
165
  }),
164
166
  l(G, {
165
- modelValue: c.value,
166
- "onUpdate:modelValue": e[2] || (e[2] = (a) => c.value = a)
167
+ modelValue: r.value,
168
+ "onUpdate:modelValue": e[2] || (e[2] = (a) => r.value = a)
167
169
  }, {
168
170
  default: t(() => [
169
- l(A, { class: "w-full" }, {
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
- (V(!0), N(h, null, k(p(i).resources, (a) => (V(), U(j, {
181
+ (_(!0), y(k, null, M(c(u).resources, (a) => (_(), U(A, {
180
182
  value: a.id
181
183
  }, {
182
184
  default: t(() => [
183
- u(S(a.name), 1)
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", Ce, [
198
- l(v, null, {
199
+ o("div", Te, [
200
+ l(m, null, {
199
201
  default: t(() => [...e[16] || (e[16] = [
200
- u("Type", -1)
202
+ i("Type", -1)
201
203
  ])]),
202
204
  _: 1
203
205
  }),
204
206
  l(G, {
205
- modelValue: m.value,
206
- "onUpdate:modelValue": e[3] || (e[3] = (a) => m.value = a)
207
+ modelValue: v.value,
208
+ "onUpdate:modelValue": e[3] || (e[3] = (a) => v.value = a)
207
209
  }, {
208
210
  default: t(() => [
209
- l(A, { class: "w-full" }, {
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
- (V(!0), N(h, null, k(p(i).pricingOptions, (a) => (V(), U(j, {
221
+ (_(!0), y(k, null, M(c(u).pricingOptions, (a) => (_(), U(A, {
220
222
  value: a.id
221
223
  }, {
222
224
  default: t(() => [
223
- u(S(a.name) + " (" + S(a.duration) + "min) ", 1)
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", Ne, [
240
- o("div", Oe, [
241
- o("div", Fe, [
242
- l(v, null, {
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
- u("Date", -1)
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(x, {
254
+ l(b, {
253
255
  variant: "outline",
254
- class: ce(p(Ve)("w-[240px] justify-start text-left font-normal", !g.value && "text-muted-foreground"))
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(p(ve)),
258
- u(" " + S(g.value ? p(W).format(g.value.toDate(p(M)())) : "Pick a date"), 1)
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] = (ue) => g.value = ue),
275
+ e[4] || (e[4] = (ie) => g.value = ie),
274
276
  a
275
277
  ],
276
- "default-placeholder": p(Q),
278
+ "default-placeholder": c(Q),
277
279
  layout: "month-and-year",
278
280
  "initial-focus": "",
279
- minValue: p(q)(p(M)())
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", Ie, [
290
- o("div", Ue, [
291
- l(v, null, {
291
+ o("div", Fe, [
292
+ o("div", Ie, [
293
+ l(m, null, {
292
294
  default: t(() => [...e[18] || (e[18] = [
293
- u("Start time", -1)
295
+ i("Start time", -1)
294
296
  ])]),
295
297
  _: 1
296
298
  }),
297
299
  l(ae, {
298
- modelValue: r.value,
299
- "onUpdate:modelValue": e[5] || (e[5] = (a) => r.value = 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", he, [
303
- l(v, null, {
304
+ o("div", Ue, [
305
+ l(m, null, {
304
306
  default: t(() => [...e[19] || (e[19] = [
305
- u("End time", -1)
307
+ i("End time", -1)
306
308
  ])]),
307
309
  _: 1
308
310
  }),
309
- o("div", ke, S(p(B) || "--:--"), 1)
311
+ o("div", ke, D(c(B) || "--:--"), 1)
310
312
  ])
311
313
  ])
312
314
  ]),
313
315
  o("div", Me, [
314
- o("div", Le, [
315
- o("div", Re, [
316
- l(v, null, {
316
+ o("div", Re, [
317
+ o("div", Le, [
318
+ l(m, null, {
317
319
  default: t(() => [...e[20] || (e[20] = [
318
- u("Firstname", -1)
320
+ i("Firstname", -1)
319
321
  ])]),
320
322
  _: 1
321
323
  }),
322
- l(b, {
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(v, null, {
330
+ l(m, null, {
329
331
  default: t(() => [...e[21] || (e[21] = [
330
- u("Lastname", -1)
332
+ i("Lastname", -1)
331
333
  ])]),
332
334
  _: 1
333
335
  }),
334
- l(b, {
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", Ae, [
342
- l(v, null, {
343
+ o("div", je, [
344
+ l(m, null, {
343
345
  default: t(() => [...e[22] || (e[22] = [
344
- u("E-mail", -1)
346
+ i("E-mail", -1)
345
347
  ])]),
346
348
  _: 1
347
349
  }),
348
- l(b, {
349
- modelValue: D.value,
350
- "onUpdate:modelValue": e[8] || (e[8] = (a) => D.value = 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", je, [
354
- l(v, null, {
355
+ o("div", Ae, [
356
+ l(m, null, {
355
357
  default: t(() => [...e[23] || (e[23] = [
356
- u("Phone Nr ", -1),
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(b, {
362
- modelValue: $.value,
363
- "onUpdate:modelValue": e[9] || (e[9] = (a) => $.value = 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
- (V(!0), N(h, null, k(T.value, (a) => (V(), N("li", { key: a }, S(a), 1))), 128))
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(x, { onClick: Y }, {
377
- default: t(() => [...e[24] || (e[24] = [
378
- u("Add reservation", -1)
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
- Xe as _
400
+ Ze as _
396
401
  };