@oneclick.dev/cms-core-modules 0.0.119 → 0.0.121

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 (65) hide show
  1. package/dist/{ContentEditor-BnOVpmsQ.js → ContentEditor-Dl41qaCh.js} +42 -41
  2. package/dist/{ContentEditor-Cm28u_14.mjs → ContentEditor-u3k-uTny.mjs} +4785 -4492
  3. package/dist/{Detail-C8wQiDcv.js → Detail-BCUUNWvp.js} +1 -1
  4. package/dist/{Detail-CtItxMX4.mjs → Detail-B_scnidb.mjs} +1 -1
  5. package/dist/Detail-Cn9Bk0u0.mjs +852 -0
  6. package/dist/Detail-DGg_xXZc.js +1 -0
  7. package/dist/Detail-Dk8E6_uF.mjs +3731 -0
  8. package/dist/Detail-Sc2qZdxj.js +1 -0
  9. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-4_t0PPqM.mjs +78 -0
  10. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-D1b9_iiN.js +1 -0
  11. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-BdZbcubW.js +1 -0
  12. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-bZidw6RT.mjs +1500 -0
  13. package/dist/Overview-CVgViW3c.mjs +852 -0
  14. package/dist/Overview-DEF-z7Yb.js +1 -0
  15. package/dist/Overview-Tf_ApkWh.js +1 -0
  16. package/dist/{Overview-CVQ1pkuD.mjs → Overview-usm5gPD1.mjs} +131 -131
  17. package/dist/{agenda-BtmnpFmi.js → agenda-B54F8cEr.js} +1 -1
  18. package/dist/{agenda-D0QBOJUy.mjs → agenda-BCKDYOeF.mjs} +7 -7
  19. package/dist/{availability-ClBGVgE9.js → availability-C4v46rha.js} +1 -1
  20. package/dist/{availability-D8JdA4rP.mjs → availability-DVT1Mdxq.mjs} +1 -1
  21. package/dist/{booking-data-aMS1p_3g.js → booking-data-A5JrLY4j.js} +1 -1
  22. package/dist/{booking-data-Px7XCIfU.mjs → booking-data-lZvSYna2.mjs} +1 -1
  23. package/dist/cms-core-modules.css +1 -1
  24. package/dist/{exceptions-Dgj54ULn.mjs → exceptions-DJHfvADv.mjs} +1 -1
  25. package/dist/{exceptions-DXqc0Nza.js → exceptions-DKc8fO1S.js} +1 -1
  26. package/dist/index-Bk3yLv_G.js +35 -0
  27. package/dist/{index-Dnn2SCSl.js → index-CZau1wR8.js} +1 -1
  28. package/dist/{index-DRqJOqUR.mjs → index-DE8rdSjd.mjs} +0 -22
  29. package/dist/index-DU3Ib10Z.mjs +1256 -0
  30. package/dist/index.cjs.js +1 -1
  31. package/dist/index.mjs +35 -33
  32. package/dist/orders-BMosTk6r.js +1 -0
  33. package/dist/{orders-C5NT99Fy.mjs → orders-CElKNc1v.mjs} +229 -234
  34. package/dist/{payment-D5j-68Ig.mjs → payment-DSQ_2FIT.mjs} +1 -1
  35. package/dist/{payment-BJHgpaeT.js → payment-DlgYuea2.js} +1 -1
  36. package/dist/{refunds-oVB2Opib.js → refunds-Cvw9N--u.js} +1 -1
  37. package/dist/{refunds-D9nTeD2d.mjs → refunds-xR936Ted.mjs} +1 -1
  38. package/dist/reports-BQT_GZzU.js +158 -0
  39. package/dist/reports-DksZCTOw.mjs +837 -0
  40. package/dist/{resources-CK0oWssj.mjs → resources-C-5BU9Ux.mjs} +1 -1
  41. package/dist/{resources-8WouFvJe.js → resources-D04yKKVN.js} +1 -1
  42. package/dist/src/appointments/components/edit/NewReservationDialog/QuickReservationAdder.vue.d.ts +2 -0
  43. package/dist/src/appointments/components/edit/NewReservationDialog/ReservationLines.vue.d.ts +1 -0
  44. package/dist/src/productCollections/components/detail/Subcollections.vue.d.ts +2 -0
  45. package/dist/src/productCollections/types.d.ts +1 -4
  46. package/dist/src/products/components/detail/variants/VariantList.vue.d.ts +48 -6
  47. package/dist/src/products/components/detail/variants/dialogs/VariantDialog.vue.d.ts +4 -0
  48. package/dist/{vee-validate-zod-CcOwoF6y.mjs → vee-validate-zod-SjDT8X35.mjs} +92 -90
  49. package/dist/{vee-validate-zod-ByykgYKJ.js → vee-validate-zod-VCmLnrtQ.js} +1 -1
  50. package/package.json +2 -2
  51. package/dist/Detail-C1Blq61w.mjs +0 -585
  52. package/dist/Detail-CPqug27l.js +0 -1
  53. package/dist/Detail-CjuhjPby.js +0 -1
  54. package/dist/Detail-Dnpnmy4-.mjs +0 -3477
  55. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-gozJKXvM.js +0 -1
  56. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-pDO9b4Pv.mjs +0 -77
  57. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-CcMEKZzd.mjs +0 -1476
  58. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-CkFsdcvP.js +0 -1
  59. package/dist/Overview-BWLxUksJ.mjs +0 -860
  60. package/dist/Overview-CBahJviK.js +0 -1
  61. package/dist/Overview-DAxCu9XC.js +0 -1
  62. package/dist/index-BnFWz40Q.mjs +0 -1261
  63. package/dist/index-DcGPR_vt.js +0 -35
  64. package/dist/orders-lO3dZ5un.js +0 -1
  65. /package/dist/src/{productCollections/components/detail/SEO.vue.d.ts → appointments/pages/edit/reports.vue.d.ts} +0 -0
@@ -1,10 +1,10 @@
1
- import { defineComponent as ke, computed as k, ref as _, provide as be, onMounted as we, watch as se, resolveComponent as b, openBlock as n, createElementBlock as l, Fragment as N, createVNode as r, withCtx as v, createElementVNode as a, unref as o, createTextVNode as w, renderList as L, toDisplayString as i, createBlock as ae, createCommentVNode as D, normalizeClass as De, withDirectives as Ce, isRef as oe, vModelText as Ie, normalizeStyle as ne, nextTick as Se } from "vue";
2
- import { useRoute as Pe, useRouter as Ae, useOverlayParams as Ne, useModuleRoute as ze, useModule as Oe, useFirebaseIntegration as Te } from "@oneclick.dev/cms-kit";
3
- import { ShoppingBag as re, Users as E, ChevronLeft as je, ChevronRight as Re, RefreshCw as Fe, CalendarIcon as H, Search as Be, X as $e, Clock as le } from "lucide-vue-next";
4
- import { u as Me, F as Ve, _ as q, a as Ue, b as Le } from "./OrderDetailDialog.vue_vue_type_script_setup_true_lang-DwAUYR8p.mjs";
5
- import { _ as Ee } from "./EditLayout.vue_vue_type_script_setup_true_lang-pDO9b4Pv.mjs";
1
+ import { defineComponent as ke, computed as k, ref as g, provide as be, onMounted as we, watch as se, resolveComponent as b, openBlock as n, createElementBlock as l, Fragment as z, createVNode as r, withCtx as f, createElementVNode as a, unref as o, createTextVNode as w, renderList as U, toDisplayString as d, createBlock as ae, createCommentVNode as D, normalizeClass as De, withDirectives as Ce, isRef as oe, vModelText as Ie, normalizeStyle as ne, nextTick as Se } from "vue";
2
+ import { useRoute as Pe, useRouter as Ae, useOverlayParams as Ne, useModuleRoute as ze, useModule as Oe, useFirebaseIntegration as je } from "@oneclick.dev/cms-kit";
3
+ import { ShoppingBag as re, Users as L, ChevronLeft as Te, ChevronRight as Re, RefreshCw as Fe, CalendarIcon as E, Search as Be, X as $e, Clock as le } from "lucide-vue-next";
4
+ import { u as Me, F as Ve, _ as H, a as Ue, b as Le } from "./OrderDetailDialog.vue_vue_type_script_setup_true_lang-DwAUYR8p.mjs";
5
+ import { _ as Ee } from "./EditLayout.vue_vue_type_script_setup_true_lang-4_t0PPqM.mjs";
6
6
  import { _ as He } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
- const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4" }, Qe = { class: "text-2xl font-semibold tracking-tight flex items-center gap-2" }, Xe = { class: "flex gap-1 border rounded-lg p-1 w-fit" }, Ge = { class: "flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4" }, Je = { class: "flex items-center gap-1" }, Ke = { class: "flex items-center gap-1" }, We = { class: "flex items-center gap-2" }, Ze = { class: "flex items-center gap-1" }, et = { class: "mt-2 text-sm text-muted-foreground" }, tt = { class: "orders-date-trigger" }, st = { class: "relative mb-4" }, at = {
7
+ const qe = { class: "space-y-6" }, Qe = { class: "flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4" }, Xe = { class: "text-2xl font-semibold tracking-tight flex items-center gap-2" }, Ye = { class: "flex gap-1 border rounded-lg p-1 w-fit bg-card" }, Ge = { class: "flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4" }, Je = { class: "flex items-center gap-1" }, Ke = { class: "flex items-center gap-1" }, We = { class: "flex items-center gap-2" }, Ze = { class: "flex items-center gap-1" }, et = { class: "mt-2 text-sm text-muted-foreground" }, tt = { class: "orders-date-trigger" }, st = { class: "relative mb-4" }, at = {
8
8
  key: 0,
9
9
  class: "mb-3 text-sm text-muted-foreground"
10
10
  }, ot = {
@@ -18,11 +18,11 @@ const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:i
18
18
  class: "text-center py-8 text-muted-foreground"
19
19
  }, lt = {
20
20
  key: 4,
21
- class: "space-y-2"
22
- }, it = ["onClick"], dt = { class: "flex items-start justify-between" }, ct = { class: "flex-1" }, ut = { class: "font-medium" }, mt = { class: "text-sm text-muted-foreground" }, ft = { class: "text-sm text-muted-foreground" }, vt = { class: "flex items-center gap-4 flex-wrap mt-1" }, pt = { class: "flex items-center gap-2 text-xs text-muted-foreground" }, xt = { class: "flex items-center gap-2 text-xs text-muted-foreground" }, gt = {
21
+ class: "-mx-6 @5xl:mx-0 @5xl:space-y-2"
22
+ }, dt = ["onClick"], it = { class: "flex items-start justify-between" }, ct = { class: "flex-1" }, ut = { class: "font-medium" }, mt = { class: "text-sm text-muted-foreground" }, ft = { class: "text-sm text-muted-foreground" }, xt = { class: "flex items-center gap-4 flex-wrap mt-1" }, pt = { class: "flex items-center gap-2 text-xs text-muted-foreground" }, vt = { class: "flex items-center gap-2 text-xs text-muted-foreground" }, _t = {
23
23
  key: 0,
24
24
  class: "flex items-center gap-1 text-xs text-muted-foreground"
25
- }, _t = { class: "flex items-center gap-2 mt-1 text-xs text-muted-foreground" }, yt = { class: "text-right" }, ht = {
25
+ }, gt = { class: "flex items-center gap-2 mt-1 text-xs text-muted-foreground" }, ht = { class: "text-right" }, yt = {
26
26
  key: 0,
27
27
  class: "inline-block px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400"
28
28
  }, kt = {
@@ -46,59 +46,59 @@ const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:i
46
46
  }, St = {
47
47
  key: 7,
48
48
  class: "text-sm font-medium mt-1"
49
- }, Pt = ["onClick"], At = { class: "flex items-start justify-between" }, Nt = { class: "flex-1" }, zt = { class: "flex items-center gap-2" }, Ot = { class: "font-medium" }, Tt = { class: "text-sm text-muted-foreground" }, jt = { class: "text-sm text-muted-foreground" }, Rt = { class: "flex items-center gap-2 mt-1 text-xs text-muted-foreground" }, Ft = { class: "text-right" }, Bt = {
49
+ }, Pt = { key: 1 }, At = ["onClick"], Nt = { class: "flex items-start justify-between" }, zt = { class: "flex-1" }, Ot = { class: "flex items-center flex-wrap gap-x-2" }, jt = { class: "font-medium" }, Tt = { class: "text-sm text-muted-foreground" }, Rt = { class: "text-sm text-muted-foreground" }, Ft = { class: "flex items-center gap-2 mt-1 text-xs text-muted-foreground" }, Bt = { class: "text-right" }, $t = {
50
50
  key: 0,
51
51
  class: "inline-block px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400"
52
- }, $t = {
52
+ }, Mt = {
53
53
  key: 1,
54
54
  class: "inline-block px-2 py-1 text-xs rounded-full bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400"
55
- }, Mt = {
55
+ }, Vt = {
56
56
  key: 2,
57
57
  class: "inline-block px-2 py-1 text-xs rounded-full bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400"
58
- }, Vt = { class: "text-sm font-medium mt-1" }, Ut = ["onClick"], Lt = { class: "flex items-center justify-between" }, Et = { class: "flex items-center gap-4 flex-wrap" }, Ht = { class: "flex items-center gap-2 text-xs text-muted-foreground" }, qt = { class: "flex items-center gap-2 text-xs text-muted-foreground" }, Yt = {
58
+ }, Ut = { class: "text-sm font-medium mt-1" }, Lt = ["onClick"], Et = { class: "flex items-center justify-between" }, Ht = { class: "flex items-center gap-4 flex-wrap" }, qt = { class: "flex items-center gap-2 text-xs text-muted-foreground" }, Qt = { class: "flex items-center gap-2 text-xs text-muted-foreground" }, Xt = {
59
59
  key: 0,
60
60
  class: "flex items-center gap-1 text-xs text-muted-foreground"
61
- }, Qt = {
61
+ }, Yt = {
62
62
  key: 0,
63
63
  class: "text-right flex items-center gap-2"
64
- }, Xt = {
64
+ }, Gt = {
65
65
  key: 0,
66
66
  class: "inline-block px-2 py-1 text-xs rounded-full bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-400"
67
- }, Gt = {
67
+ }, Jt = {
68
68
  key: 1,
69
69
  class: "inline-block px-2 py-1 text-xs rounded-full bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400"
70
- }, Jt = {
70
+ }, Kt = {
71
71
  key: 2,
72
72
  class: "inline-block px-2 py-1 text-xs rounded-full bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400"
73
- }, Kt = {
73
+ }, Wt = {
74
74
  key: 3,
75
75
  class: "inline-block px-2 py-1 text-xs rounded-full bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400"
76
- }, Wt = {
76
+ }, Zt = {
77
77
  key: 4,
78
78
  class: "inline-block px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400"
79
- }, Zt = {
79
+ }, es = {
80
80
  key: 5,
81
81
  class: "text-sm font-medium"
82
- }, es = /* @__PURE__ */ ke({
82
+ }, ts = /* @__PURE__ */ ke({
83
83
  __name: "orders",
84
- setup(ts) {
85
- const Y = Pe();
84
+ setup(ss) {
85
+ const q = Pe();
86
86
  Ae();
87
- const Q = Ne(), { params: T } = ze(), { config: z } = Oe(), j = Te(z.project), X = k(() => T.value?.id ?? T.id ?? ""), { metadataSchema: R } = Me(X), x = _([]), S = _([]), P = _(!0), F = _(null), y = _(""), A = _(null), B = _(null), I = _("confirmed"), C = /* @__PURE__ */ new Date(), m = _(/* @__PURE__ */ new Date()), G = _(null), ie = k(() => ({
88
- date: J(m.value),
87
+ const Q = Ne(), { params: O } = ze(), { config: A } = Oe(), j = je(A.project), X = k(() => O.value?.id ?? O.id ?? ""), { metadataSchema: T } = Me(X), v = g([]), I = g([]), S = g(!0), R = g(null), h = g(""), P = g(null), F = g(null), C = g("confirmed"), Y = /* @__PURE__ */ new Date(), x = g(/* @__PURE__ */ new Date()), G = g(null), de = k(() => ({
88
+ date: J(x.value),
89
89
  resource: null
90
90
  }));
91
- be("event", ie);
92
- const $ = k({
93
- get: () => J(m.value),
91
+ be("event", de);
92
+ const B = k({
93
+ get: () => J(x.value),
94
94
  set: (t) => {
95
95
  if (!t) {
96
- m.value = /* @__PURE__ */ new Date();
96
+ x.value = /* @__PURE__ */ new Date();
97
97
  return;
98
98
  }
99
- m.value = /* @__PURE__ */ new Date(`${t}T00:00:00`);
99
+ x.value = /* @__PURE__ */ new Date(`${t}T00:00:00`);
100
100
  }
101
- }), de = () => {
101
+ }), ie = () => {
102
102
  const t = G.value;
103
103
  if (t) {
104
104
  if (typeof t.showPicker == "function") {
@@ -107,30 +107,25 @@ const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:i
107
107
  }
108
108
  t.focus(), t.click();
109
109
  }
110
- }, ce = k(() => {
111
- const t = new Date(C);
112
- t.setDate(C.getDate() - 1);
113
- const e = new Date(C);
114
- return e.setDate(C.getDate() + 1), m.value.toDateString() === C.toDateString() ? "Today" : m.value.toDateString() === t.toDateString() ? "Yesterday" : m.value.toDateString() === e.toDateString() ? "Tomorrow" : m.value.toLocaleDateString("en-US", {
115
- weekday: "long",
116
- month: "long",
117
- day: "numeric",
118
- year: "numeric"
119
- });
120
- }), ue = () => {
121
- const t = new Date(m.value);
122
- t.setDate(t.getDate() - 1), m.value = t;
110
+ }, ce = k(() => x.value.toLocaleDateString("en-US", {
111
+ weekday: "long",
112
+ month: "long",
113
+ day: "numeric",
114
+ year: "numeric"
115
+ })), ue = () => {
116
+ const t = new Date(x.value);
117
+ t.setDate(t.getDate() - 1), x.value = t;
123
118
  }, me = () => {
124
- const t = new Date(m.value);
125
- t.setDate(t.getDate() + 1), t <= C && (m.value = t);
119
+ const t = new Date(x.value);
120
+ t.setDate(t.getDate() + 1), t <= Y && (x.value = t);
126
121
  }, fe = k(() => {
127
- const t = new Date(m.value);
128
- return t.setDate(t.getDate() + 1), t <= C;
129
- }), ve = () => {
130
- m.value = /* @__PURE__ */ new Date();
122
+ const t = new Date(x.value);
123
+ return t.setDate(t.getDate() + 1), t <= Y;
124
+ }), xe = () => {
125
+ x.value = /* @__PURE__ */ new Date();
131
126
  }, J = (t) => {
132
- const e = t.getFullYear(), d = String(t.getMonth() + 1).padStart(2, "0"), u = String(t.getDate()).padStart(2, "0");
133
- return `${e}-${d}-${u}`;
127
+ const e = t.getFullYear(), i = String(t.getMonth() + 1).padStart(2, "0"), u = String(t.getDate()).padStart(2, "0");
128
+ return `${e}-${i}-${u}`;
134
129
  }, K = (t) => t ? new Date(t).toLocaleTimeString("en-US", {
135
130
  hour: "2-digit",
136
131
  minute: "2-digit",
@@ -140,7 +135,7 @@ const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:i
140
135
  month: "short",
141
136
  day: "numeric"
142
137
  }) : "", Z = (t, e) => {
143
- const d = S.value.find((p) => p.id === e.resourceId), u = t.id || t.orderId || e.orderId || "";
138
+ const i = I.value.find((p) => p.id === e.resourceId), u = t.id || t.orderId || e.orderId || "";
144
139
  return {
145
140
  customerInfo: t.customerInfo,
146
141
  amountDue: t.amountDue,
@@ -163,8 +158,8 @@ const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:i
163
158
  reservationAddOnsPrice: e.addOnsPrice,
164
159
  pricingOptionId: e.pricingOptionId,
165
160
  pricingOption: e.pricingOption,
166
- resourceName: d?.name,
167
- resourceColor: d?.color,
161
+ resourceName: i?.name,
162
+ resourceColor: i?.color,
168
163
  metadata: t.metadata || {},
169
164
  reservationMetadata: e.metadata || {},
170
165
  refundStatus: e.refundStatus,
@@ -174,7 +169,7 @@ const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:i
174
169
  adjustments: t.adjustments || [],
175
170
  reservationAdjustments: e.adjustments || []
176
171
  };
177
- }, M = async () => {
172
+ }, $ = async () => {
178
173
  await Se(), await new Promise((t) => {
179
174
  if (typeof requestAnimationFrame == "function") {
180
175
  requestAnimationFrame(() => t());
@@ -182,7 +177,7 @@ const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:i
182
177
  }
183
178
  t();
184
179
  });
185
- }, V = k(() => y.value.trim() ? new Ve(x.value, {
180
+ }, M = k(() => h.value.trim() ? new Ve(v.value, {
186
181
  keys: [
187
182
  "customerInfo.firstName",
188
183
  "customerInfo.lastName",
@@ -192,9 +187,9 @@ const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:i
192
187
  ],
193
188
  threshold: 0.3,
194
189
  ignoreLocation: !0
195
- }).search(y.value).map((e) => e.item) : x.value), ee = k(() => {
190
+ }).search(h.value).map((e) => e.item) : v.value), ee = k(() => {
196
191
  const t = /* @__PURE__ */ new Map();
197
- for (const e of V.value) {
192
+ for (const e of M.value) {
198
193
  t.has(e.id) || t.set(e.id, {
199
194
  id: e.id,
200
195
  customerInfo: e.customerInfo,
@@ -206,62 +201,62 @@ const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:i
206
201
  totalPrice: 0,
207
202
  totalSpots: 0
208
203
  });
209
- const d = t.get(e.id);
210
- d.reservations.push(e), d.totalPrice = typeof e.total == "number" ? e.total : d.totalPrice + (e.reservationPrice || 0), d.totalSpots += e.spots || 0;
204
+ const i = t.get(e.id);
205
+ i.reservations.push(e), i.totalPrice = typeof e.total == "number" ? e.total : i.totalPrice + (e.reservationPrice || 0), i.totalSpots += e.spots || 0;
211
206
  }
212
207
  return Array.from(t.values());
213
- }), O = k(() => (console.log("orderssss", x.value), {
214
- spots: x.value.reduce((t, e) => t + (e.spots || 0), 0),
215
- bookings: x.value.length,
208
+ }), N = k(() => (console.log("orderssss", v.value), {
209
+ spots: v.value.reduce((t, e) => t + (e.spots || 0), 0),
210
+ bookings: v.value.length,
216
211
  revenue: ee.value.reduce((t, e) => t + (e.totalPrice || 0), 0)
217
212
  })), pe = () => {
218
- y.value = "";
219
- }, xe = async () => {
213
+ h.value = "";
214
+ }, ve = async () => {
220
215
  try {
221
- const t = await j.get(z.agendaCollection, X.value);
222
- F.value = t, S.value = t?.resources?.filter((e) => e.isActive) || [];
216
+ const t = await j.get(A.agendaCollection, X.value);
217
+ R.value = t, I.value = t?.resources?.filter((e) => e.isActive) || [];
223
218
  } catch (t) {
224
- console.error("Error loading resources:", t), S.value = [];
219
+ console.error("Error loading resources:", t), I.value = [];
225
220
  }
226
- }, h = async () => {
227
- P.value = !0, x.value = [];
221
+ }, y = async () => {
222
+ S.value = !0, v.value = [];
228
223
  try {
229
- const t = T.value.id, e = new Date(m.value);
224
+ const t = O.value.id, e = new Date(x.value);
230
225
  e.setHours(0, 0, 0, 0);
231
- const d = new Date(m.value);
232
- d.setHours(23, 59, 59, 999);
233
- const u = await j.find(z.reservationsCollection, {
226
+ const i = new Date(x.value);
227
+ i.setHours(23, 59, 59, 999);
228
+ const u = await j.find(A.reservationsCollection, {
234
229
  filters: [
235
230
  { field: "agendaId", operator: "==", value: t },
236
231
  { field: "createdAt", operator: ">=", value: e.toISOString() },
237
- { field: "createdAt", operator: "<=", value: d.toISOString() },
238
- { field: "status", operator: "==", value: I.value }
232
+ { field: "createdAt", operator: "<=", value: i.toISOString() },
233
+ { field: "status", operator: "==", value: C.value }
239
234
  ]
240
235
  });
241
236
  let p = [];
242
- u.forEach((f) => {
243
- (f.reservations || []).forEach((U) => {
244
- p.push(Z(f, U));
237
+ u.forEach((m) => {
238
+ (m.reservations || []).forEach((V) => {
239
+ p.push(Z(m, V));
245
240
  });
246
- }), x.value = p.sort((f, g) => (g.createdAt || "").localeCompare(f.createdAt || ""));
241
+ }), v.value = p.sort((m, _) => (_.createdAt || "").localeCompare(m.createdAt || ""));
247
242
  } catch (t) {
248
- console.error("Error loading orders:", t), x.value = [];
243
+ console.error("Error loading orders:", t), v.value = [];
249
244
  } finally {
250
- P.value = !1;
245
+ S.value = !1;
251
246
  }
252
- }, ge = async () => {
253
- await xe(), await h();
247
+ }, _e = async () => {
248
+ await ve(), await y();
254
249
  }, te = async (t, e) => {
255
- const d = await j.get(z.reservationsCollection, t);
256
- if (!d) return;
257
- const u = { ...d, id: d.id || t }, p = (u.reservations || []).map((f) => Z(u, f));
250
+ const i = await j.get(A.reservationsCollection, t);
251
+ if (!i) return;
252
+ const u = { ...i, id: i.id || t }, p = (u.reservations || []).map((m) => Z(u, m));
258
253
  if (e) {
259
- const f = p.find((g) => g.res_id === e);
260
- if (!f) return;
261
- await M(), A.value?.openDialog(f);
254
+ const m = p.find((_) => _.res_id === e);
255
+ if (!m) return;
256
+ await $(), P.value?.openDialog(m);
262
257
  return;
263
258
  }
264
- p.length && (await M(), B.value?.openDialog({
259
+ p.length && (await $(), F.value?.openDialog({
265
260
  id: u.id,
266
261
  customerInfo: u.customerInfo,
267
262
  status: u.status,
@@ -269,130 +264,130 @@ const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:i
269
264
  metadata: u.metadata || {},
270
265
  reservations: p,
271
266
  adjustments: u.adjustments || [],
272
- totalPrice: typeof u.total == "number" ? u.total : p.reduce((f, g) => f + (g.reservationPrice || 0), 0),
273
- totalSpots: p.reduce((f, g) => f + (g.spots || 0), 0)
267
+ totalPrice: typeof u.total == "number" ? u.total : p.reduce((m, _) => m + (_.reservationPrice || 0), 0),
268
+ totalSpots: p.reduce((m, _) => m + (_.spots || 0), 0)
274
269
  }));
275
- }, _e = async (t) => {
276
- await M(), A.value?.openDialog(t);
270
+ }, ge = async (t) => {
271
+ await $(), P.value?.openDialog(t);
277
272
  };
278
- return ge(), we(async () => {
279
- const t = Q.value.orderId || Y.query.orderId, e = Q.value.reservationId || Y.query.reservationId;
273
+ return _e(), we(async () => {
274
+ const t = Q.value.orderId || q.query.orderId, e = Q.value.reservationId || q.query.reservationId;
280
275
  if (t) {
281
- const d = new URL(window.location.href);
282
- d.searchParams.delete("orderId"), d.searchParams.delete("reservationId"), window.history.replaceState(window.history.state, "", d.toString()), await te(t, e);
276
+ const i = new URL(window.location.href);
277
+ i.searchParams.delete("orderId"), i.searchParams.delete("reservationId"), window.history.replaceState(window.history.state, "", i.toString()), await te(t, e);
283
278
  }
284
- }), se(m, () => {
285
- h();
286
- }), se(I, () => {
287
- h();
279
+ }), se(x, () => {
280
+ y();
281
+ }), se(C, () => {
282
+ y();
288
283
  }), (t, e) => {
289
- const d = b("Button"), u = b("Badge"), p = b("CardTitle"), f = b("CardDescription"), g = b("CardHeader"), U = b("Input"), ye = b("CardContent"), he = b("Card");
290
- return n(), l(N, null, [
284
+ const i = b("Button"), u = b("Badge"), p = b("CardTitle"), m = b("CardDescription"), _ = b("CardHeader"), V = b("Input"), he = b("CardContent"), ye = b("Card");
285
+ return n(), l(z, null, [
291
286
  r(Ee, null, {
292
- default: v(() => [
287
+ default: f(() => [
293
288
  a("div", qe, [
294
- a("div", Ye, [
289
+ a("div", Qe, [
295
290
  a("div", null, [
296
- a("h1", Qe, [
291
+ a("h1", Xe, [
297
292
  r(o(re), { class: "size-6" }),
298
293
  e[4] || (e[4] = w(" Orders ", -1))
299
294
  ]),
300
295
  e[5] || (e[5] = a("p", { class: "text-muted-foreground text-sm mt-1" }, " View orders by when they were placed ", -1))
301
296
  ])
302
297
  ]),
303
- a("div", Xe, [
304
- (n(), l(N, null, L(["confirmed", "pending", "cancelled"], (s) => r(d, {
298
+ a("div", Ye, [
299
+ (n(), l(z, null, U(["confirmed", "pending", "cancelled"], (s) => r(i, {
305
300
  key: s,
306
- variant: o(I) === s ? "default" : "ghost",
301
+ variant: o(C) === s ? "default" : "ghost",
307
302
  size: "sm",
308
303
  class: "capitalize",
309
- onClick: (c) => I.value = s
304
+ onClick: (c) => C.value = s
310
305
  }, {
311
- default: v(() => [
312
- w(i(s), 1)
306
+ default: f(() => [
307
+ w(d(s), 1)
313
308
  ]),
314
309
  _: 2
315
310
  }, 1032, ["variant", "onClick"])), 64))
316
311
  ]),
317
- r(he, null, {
318
- default: v(() => [
319
- r(g, null, {
320
- default: v(() => [
312
+ r(ye, { class: "-mx-6 rounded-none border-x-0 @5xl:mx-0 @5xl:rounded-xl @5xl:border-x-[1px]" }, {
313
+ default: f(() => [
314
+ r(_, null, {
315
+ default: f(() => [
321
316
  a("div", Ge, [
322
317
  a("div", null, [
323
318
  r(p, { class: "flex items-center gap-2" }, {
324
- default: v(() => [
319
+ default: f(() => [
325
320
  e[6] || (e[6] = w(" Orders received ", -1)),
326
- o(O).bookings > 0 ? (n(), ae(u, {
321
+ o(N).bookings > 0 ? (n(), ae(u, {
327
322
  key: 0,
328
323
  variant: "secondary"
329
324
  }, {
330
- default: v(() => [
331
- w(i(o(O).bookings), 1)
325
+ default: f(() => [
326
+ w(d(o(N).bookings), 1)
332
327
  ]),
333
328
  _: 1
334
329
  })) : D("", !0)
335
330
  ]),
336
331
  _: 1
337
332
  }),
338
- r(f, { class: "flex items-center gap-4 mt-1" }, {
339
- default: v(() => [
333
+ r(m, { class: "flex items-center gap-4 mt-1" }, {
334
+ default: f(() => [
340
335
  a("span", Je, [
341
- r(o(E), { size: 14 }),
342
- w(" " + i(o(O).spots) + " spots ", 1)
336
+ r(o(L), { size: 14 }),
337
+ w(" " + d(o(N).spots) + " spots ", 1)
343
338
  ]),
344
- a("span", Ke, " €" + i(o(O).revenue.toFixed(2)) + i(o(I) === "pending" ? " pending " : o(I) === "cancelled" ? " cancelled " : " ") + "revenue ", 1)
339
+ a("span", Ke, " €" + d(o(N).revenue.toFixed(2)) + d(o(C) === "pending" ? " pending " : o(C) === "cancelled" ? " cancelled " : " ") + "revenue ", 1)
345
340
  ]),
346
341
  _: 1
347
342
  })
348
343
  ]),
349
344
  a("div", We, [
350
345
  a("div", Ze, [
351
- r(d, {
346
+ r(i, {
352
347
  variant: "outline",
353
348
  size: "icon",
354
349
  class: "size-8",
355
350
  onClick: ue
356
351
  }, {
357
- default: v(() => [
358
- r(o(je), { size: 16 })
352
+ default: f(() => [
353
+ r(o(Te), { size: 16 })
359
354
  ]),
360
355
  _: 1
361
356
  }),
362
- r(d, {
357
+ r(i, {
363
358
  variant: "outline",
364
359
  size: "sm",
365
360
  class: "h-8 px-3 text-xs",
366
- onClick: ve
361
+ onClick: xe
367
362
  }, {
368
- default: v(() => [...e[7] || (e[7] = [
363
+ default: f(() => [...e[7] || (e[7] = [
369
364
  w(" Today ", -1)
370
365
  ])]),
371
366
  _: 1
372
367
  }),
373
- r(d, {
368
+ r(i, {
374
369
  variant: "outline",
375
370
  size: "icon",
376
371
  class: "size-8",
377
372
  onClick: me,
378
373
  disabled: !o(fe)
379
374
  }, {
380
- default: v(() => [
375
+ default: f(() => [
381
376
  r(o(Re), { size: 16 })
382
377
  ]),
383
378
  _: 1
384
379
  }, 8, ["disabled"])
385
380
  ]),
386
- r(d, {
381
+ r(i, {
387
382
  variant: "outline",
388
383
  size: "icon",
389
- onClick: h,
390
- disabled: o(P)
384
+ onClick: y,
385
+ disabled: o(S)
391
386
  }, {
392
- default: v(() => [
387
+ default: f(() => [
393
388
  r(o(Fe), {
394
389
  size: 16,
395
- class: De({ "animate-spin": o(P) })
390
+ class: De({ "animate-spin": o(S) })
396
391
  }, null, 8, ["class"])
397
392
  ]),
398
393
  _: 1
@@ -401,189 +396,189 @@ const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:i
401
396
  ]),
402
397
  a("div", et, [
403
398
  a("div", tt, [
404
- r(d, {
399
+ r(i, {
405
400
  type: "button",
406
401
  variant: "outline",
407
- onClick: de
402
+ onClick: ie
408
403
  }, {
409
- default: v(() => [
410
- r(o(H), { class: "size-4" }),
411
- w(" " + i(o(ce)), 1)
404
+ default: f(() => [
405
+ r(o(E), { class: "size-4" }),
406
+ w(" " + d(o(ce)), 1)
412
407
  ]),
413
408
  _: 1
414
409
  }),
415
410
  Ce(a("input", {
416
411
  ref_key: "dateInputRef",
417
412
  ref: G,
418
- "onUpdate:modelValue": e[0] || (e[0] = (s) => oe($) ? $.value = s : null),
413
+ "onUpdate:modelValue": e[0] || (e[0] = (s) => oe(B) ? B.value = s : null),
419
414
  type: "date",
420
415
  class: "orders-date-picker",
421
416
  "aria-label": "Select order date"
422
417
  }, null, 512), [
423
- [Ie, o($)]
418
+ [Ie, o(B)]
424
419
  ])
425
420
  ])
426
421
  ])
427
422
  ]),
428
423
  _: 1
429
424
  }),
430
- r(ye, null, {
431
- default: v(() => [
425
+ r(he, null, {
426
+ default: f(() => [
432
427
  a("div", st, [
433
428
  r(o(Be), {
434
429
  size: 16,
435
430
  class: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"
436
431
  }),
437
- r(U, {
438
- modelValue: o(y),
439
- "onUpdate:modelValue": e[1] || (e[1] = (s) => oe(y) ? y.value = s : null),
432
+ r(V, {
433
+ modelValue: o(h),
434
+ "onUpdate:modelValue": e[1] || (e[1] = (s) => oe(h) ? h.value = s : null),
440
435
  placeholder: "Search by name, email, or phone...",
441
436
  class: "pl-9 pr-9"
442
437
  }, null, 8, ["modelValue"]),
443
- o(y) ? (n(), ae(d, {
438
+ o(h) ? (n(), ae(i, {
444
439
  key: 0,
445
440
  variant: "ghost",
446
441
  size: "icon",
447
442
  class: "absolute right-1 top-1/2 -translate-y-1/2 h-7 w-7",
448
443
  onClick: pe
449
444
  }, {
450
- default: v(() => [
445
+ default: f(() => [
451
446
  r(o($e), { size: 14 })
452
447
  ]),
453
448
  _: 1
454
449
  })) : D("", !0)
455
450
  ]),
456
- o(y) ? (n(), l("div", at, " Showing " + i(o(V).length) + " of " + i(o(x).length) + " orders ", 1)) : D("", !0),
457
- o(P) ? (n(), l("div", ot, [...e[8] || (e[8] = [
451
+ o(h) ? (n(), l("div", at, " Showing " + d(o(M).length) + " of " + d(o(v).length) + " orders ", 1)) : D("", !0),
452
+ o(S) ? (n(), l("div", ot, [...e[8] || (e[8] = [
458
453
  a("div", { class: "animate-spin rounded-full h-8 w-8 border-b-2 border-primary" }, null, -1)
459
- ])])) : o(x).length === 0 ? (n(), l("div", nt, [
454
+ ])])) : o(v).length === 0 ? (n(), l("div", nt, [
460
455
  r(o(re), { class: "size-12 mx-auto mb-3 opacity-50" }),
461
456
  e[9] || (e[9] = a("p", null, "No orders received on this day", -1))
462
- ])) : o(V).length === 0 ? (n(), l("div", rt, " No orders match your search ")) : (n(), l("div", lt, [
463
- (n(!0), l(N, null, L(o(ee), (s) => (n(), l("div", {
457
+ ])) : o(M).length === 0 ? (n(), l("div", rt, " No orders match your search ")) : (n(), l("div", lt, [
458
+ (n(!0), l(z, null, U(o(ee), (s) => (n(), l("div", {
464
459
  key: s.id,
465
- class: "border rounded-lg overflow-hidden shadow-sm"
460
+ class: "border-t last:border-b @5xl:border @5xl:rounded-lg overflow-hidden @5xl:shadow-sm"
466
461
  }, [
467
462
  s.reservations.length === 1 ? (n(), l("div", {
468
463
  key: 0,
469
- class: "p-3 hover:bg-muted/50 transition-colors cursor-pointer",
470
- onClick: (c) => o(A)?.openDialog(s.reservations[0])
464
+ class: "px-6 py-3 @5xl:px-3 hover:bg-muted/50 transition-colors cursor-pointer",
465
+ onClick: (c) => o(P)?.openDialog(s.reservations[0])
471
466
  }, [
472
- a("div", dt, [
467
+ a("div", it, [
473
468
  a("div", ct, [
474
- a("div", ut, i(s.customerInfo?.firstName || s.customerInfo?.lastName ? [s.customerInfo?.firstName, s.customerInfo?.lastName].filter(Boolean).join(" ") : "Unknown Customer"), 1),
475
- a("div", mt, i(s.customerInfo?.email), 1),
476
- a("div", ft, i(s.customerInfo?.phone), 1),
477
- a("div", vt, [
469
+ a("div", ut, d(s.customerInfo?.firstName || s.customerInfo?.lastName ? [s.customerInfo?.firstName, s.customerInfo?.lastName].filter(Boolean).join(" ") : "Unknown Customer"), 1),
470
+ a("div", mt, d(s.customerInfo?.email), 1),
471
+ a("div", ft, d(s.customerInfo?.phone), 1),
472
+ a("div", xt, [
478
473
  a("div", pt, [
479
- r(o(H), { size: 12 }),
480
- a("span", null, i(W(s.reservations[0].date)) + " · " + i(s.reservations[0].startTime) + " - " + i(s.reservations[0].endTime), 1)
481
- ]),
482
- a("div", xt, [
483
474
  r(o(E), { size: 12 }),
484
- a("span", null, i(s.reservations[0].spots) + " spots", 1)
475
+ a("span", null, d(W(s.reservations[0].date)) + " · " + d(s.reservations[0].startTime) + " - " + d(s.reservations[0].endTime), 1)
476
+ ]),
477
+ a("div", vt, [
478
+ r(o(L), { size: 12 }),
479
+ a("span", null, d(s.reservations[0].spots) + " spots", 1)
485
480
  ]),
486
- s.reservations[0].resourceName ? (n(), l("div", gt, [
481
+ s.reservations[0].resourceName ? (n(), l("div", _t, [
487
482
  a("div", {
488
483
  class: "w-3 h-3 rounded-full",
489
484
  style: ne({ backgroundColor: s.reservations[0].resourceColor || "#6b7280" })
490
485
  }, null, 4),
491
- a("span", null, i(s.reservations[0].resourceName), 1)
486
+ a("span", null, d(s.reservations[0].resourceName), 1)
492
487
  ])) : D("", !0)
493
488
  ]),
494
- a("div", _t, [
489
+ a("div", gt, [
495
490
  r(o(le), { size: 12 }),
496
- a("span", null, "Ordered at " + i(K(s.createdAt)), 1)
491
+ a("span", null, "Ordered at " + d(K(s.createdAt)), 1)
497
492
  ]),
498
- r(q, {
493
+ r(H, {
499
494
  metadata: { ...s.reservations[0].metadata, ...s.reservations[0].reservationMetadata },
500
- schema: o(R),
495
+ schema: o(T),
501
496
  "display-filter": ["highlight", "badge"],
502
497
  compact: "",
503
498
  class: "mt-1"
504
499
  }, null, 8, ["metadata", "schema"])
505
500
  ]),
506
- a("div", yt, [
507
- s.reservations[0].status === "pending" ? (n(), l("span", ht, "Pending")) : s.reservations[0].status === "cancelled" ? (n(), l("span", kt, "Cancelled")) : s.reservations[0].reservationStatus === "needs_approval" ? (n(), l("span", bt, "Needs Approval")) : s.reservations[0].reservationStatus === "approved" ? (n(), l("span", wt, "Approved")) : s.reservations[0].reservationStatus === "cancelled" ? (n(), l("span", Dt, "Cancelled")) : s.reservations[0].reservationStatus === "rejected" ? (n(), l("span", Ct, "Rejected")) : (n(), l("span", It, "Pending")),
508
- s.reservations[0].reservationPrice || s.reservations[0].reservationPrice === 0 ? (n(), l("div", St, " €" + i(s.totalPrice.toFixed(2)), 1)) : D("", !0)
501
+ a("div", ht, [
502
+ s.reservations[0].status === "pending" ? (n(), l("span", yt, "Pending")) : s.reservations[0].status === "cancelled" ? (n(), l("span", kt, "Cancelled")) : s.reservations[0].reservationStatus === "needs_approval" ? (n(), l("span", bt, "Needs Approval")) : s.reservations[0].reservationStatus === "approved" ? (n(), l("span", wt, "Approved")) : s.reservations[0].reservationStatus === "cancelled" ? (n(), l("span", Dt, "Cancelled")) : s.reservations[0].reservationStatus === "rejected" ? (n(), l("span", Ct, "Rejected")) : (n(), l("span", It, "Pending")),
503
+ s.reservations[0].reservationPrice || s.reservations[0].reservationPrice === 0 ? (n(), l("div", St, " €" + d(s.totalPrice.toFixed(2)), 1)) : D("", !0)
509
504
  ])
510
505
  ])
511
- ], 8, it)) : (n(), l(N, { key: 1 }, [
506
+ ], 8, dt)) : (n(), l("div", Pt, [
512
507
  a("div", {
513
- class: "p-3 bg-muted/30 hover:bg-muted/50 transition-colors cursor-pointer",
514
- onClick: (c) => o(B)?.openDialog(s)
508
+ class: "px-6 py-3 @5xl:px-3 bg-muted/30 hover:bg-muted/50 transition-colors cursor-pointer",
509
+ onClick: (c) => o(F)?.openDialog(s)
515
510
  }, [
516
- a("div", At, [
517
- a("div", Nt, [
518
- a("div", zt, [
519
- a("div", Ot, i(s.customerInfo?.firstName || s.customerInfo?.lastName ? [s.customerInfo?.firstName, s.customerInfo?.lastName].filter(Boolean).join(" ") : "Unknown Customer"), 1),
511
+ a("div", Nt, [
512
+ a("div", zt, [
513
+ a("div", Ot, [
514
+ a("div", jt, d(s.customerInfo?.firstName || s.customerInfo?.lastName ? [s.customerInfo?.firstName, s.customerInfo?.lastName].filter(Boolean).join(" ") : "Unknown Customer"), 1),
520
515
  r(u, {
521
516
  variant: "secondary",
522
- class: "text-xs"
517
+ class: "text-xs whitespace-nowrap"
523
518
  }, {
524
- default: v(() => [
525
- w(i(s.reservations.length) + " reservations ", 1)
519
+ default: f(() => [
520
+ w(d(s.reservations.length) + " reservations ", 1)
526
521
  ]),
527
522
  _: 2
528
523
  }, 1024)
529
524
  ]),
530
- a("div", Tt, i(s.customerInfo?.email), 1),
531
- a("div", jt, i(s.customerInfo?.phone), 1),
532
- a("div", Rt, [
525
+ a("div", Tt, d(s.customerInfo?.email), 1),
526
+ a("div", Rt, d(s.customerInfo?.phone), 1),
527
+ a("div", Ft, [
533
528
  r(o(le), { size: 12 }),
534
- a("span", null, "Ordered at " + i(K(s.createdAt)), 1)
529
+ a("span", null, "Ordered at " + d(K(s.createdAt)), 1)
535
530
  ]),
536
- r(q, {
531
+ r(H, {
537
532
  metadata: s.metadata,
538
- schema: o(R),
533
+ schema: o(T),
539
534
  "display-filter": ["highlight", "badge"],
540
535
  compact: "",
541
536
  class: "mt-1"
542
537
  }, null, 8, ["metadata", "schema"])
543
538
  ]),
544
- a("div", Ft, [
545
- s.status === "pending" ? (n(), l("span", Bt, "Pending")) : s.status === "cancelled" ? (n(), l("span", $t, "Cancelled")) : (n(), l("span", Mt, "Confirmed")),
546
- a("div", Vt, " €" + i(s.totalPrice.toFixed(2)), 1)
539
+ a("div", Bt, [
540
+ s.status === "pending" ? (n(), l("span", $t, "Pending")) : s.status === "cancelled" ? (n(), l("span", Mt, "Cancelled")) : (n(), l("span", Vt, "Confirmed")),
541
+ a("div", Ut, " €" + d(s.totalPrice.toFixed(2)), 1)
547
542
  ])
548
543
  ])
549
- ], 8, Pt),
550
- (n(!0), l(N, null, L(s.reservations, (c) => (n(), l("div", {
544
+ ], 8, At),
545
+ (n(!0), l(z, null, U(s.reservations, (c) => (n(), l("div", {
551
546
  key: c.res_id,
552
- class: "p-3 border-t bg-muted/50 dark:bg-transparent dark:hover:bg-muted/50 transition-colors cursor-pointer",
553
- onClick: (ss) => o(A)?.openDialog(c)
547
+ class: "px-6 py-3 @5xl:px-3 border-t bg-muted/50 dark:bg-transparent dark:hover:bg-muted/50 transition-colors cursor-pointer",
548
+ onClick: (as) => o(P)?.openDialog(c)
554
549
  }, [
555
- a("div", Lt, [
556
- a("div", Et, [
557
- a("div", Ht, [
558
- r(o(H), { size: 12 }),
559
- a("span", null, i(W(c.date)) + " · " + i(c.startTime) + " - " + i(c.endTime), 1)
560
- ]),
550
+ a("div", Et, [
551
+ a("div", Ht, [
561
552
  a("div", qt, [
562
553
  r(o(E), { size: 12 }),
563
- a("span", null, i(c.spots) + " spots", 1)
554
+ a("span", null, d(W(c.date)) + " · " + d(c.startTime) + " - " + d(c.endTime), 1)
555
+ ]),
556
+ a("div", Qt, [
557
+ r(o(L), { size: 12 }),
558
+ a("span", null, d(c.spots) + " spots", 1)
564
559
  ]),
565
- c.resourceName ? (n(), l("div", Yt, [
560
+ c.resourceName ? (n(), l("div", Xt, [
566
561
  a("div", {
567
562
  class: "w-3 h-3 rounded-full",
568
563
  style: ne({ backgroundColor: c.resourceColor || "#6b7280" })
569
564
  }, null, 4),
570
- a("span", null, i(c.resourceName), 1)
565
+ a("span", null, d(c.resourceName), 1)
571
566
  ])) : D("", !0)
572
567
  ]),
573
- c.status === "confirmed" ? (n(), l("div", Qt, [
574
- c.reservationStatus === "needs_approval" ? (n(), l("span", Xt, "Needs Approval")) : c.reservationStatus === "approved" ? (n(), l("span", Gt, "Approved")) : c.reservationStatus === "cancelled" ? (n(), l("span", Jt, "Cancelled")) : c.reservationStatus === "rejected" ? (n(), l("span", Kt, "Rejected")) : (n(), l("span", Wt, "Pending")),
575
- c.reservationPrice || c.reservationPrice === 0 ? (n(), l("div", Zt, " €" + i(c.reservationPrice.toFixed(2)), 1)) : D("", !0)
568
+ c.status === "confirmed" ? (n(), l("div", Yt, [
569
+ c.reservationStatus === "needs_approval" ? (n(), l("span", Gt, "Needs Approval")) : c.reservationStatus === "approved" ? (n(), l("span", Jt, "Approved")) : c.reservationStatus === "cancelled" ? (n(), l("span", Kt, "Cancelled")) : c.reservationStatus === "rejected" ? (n(), l("span", Wt, "Rejected")) : (n(), l("span", Zt, "Pending")),
570
+ c.reservationPrice || c.reservationPrice === 0 ? (n(), l("div", es, " €" + d(c.reservationPrice.toFixed(2)), 1)) : D("", !0)
576
571
  ])) : D("", !0)
577
572
  ]),
578
- r(q, {
573
+ r(H, {
579
574
  metadata: c.reservationMetadata,
580
- schema: o(R),
575
+ schema: o(T),
581
576
  "display-filter": ["highlight", "badge"],
582
577
  compact: "",
583
578
  class: "mt-1"
584
579
  }, null, 8, ["metadata", "schema"])
585
- ], 8, Ut))), 128))
586
- ], 64))
580
+ ], 8, Lt))), 128))
581
+ ]))
587
582
  ]))), 128))
588
583
  ]))
589
584
  ]),
@@ -598,27 +593,27 @@ const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:i
598
593
  }),
599
594
  r(Ue, {
600
595
  ref_key: "reservationDetailDialog",
601
- ref: A,
602
- "agenda-data": o(F),
603
- resources: o(S),
596
+ ref: P,
597
+ "agenda-data": o(R),
598
+ resources: o(I),
604
599
  "show-order-link": "",
605
- onCancelled: h,
606
- onConfirmed: h,
607
- onRejected: h,
608
- onTransferred: h,
600
+ onCancelled: y,
601
+ onConfirmed: y,
602
+ onRejected: y,
603
+ onTransferred: y,
609
604
  onOpenOrder: e[2] || (e[2] = (s) => te(s))
610
605
  }, null, 8, ["agenda-data", "resources"]),
611
606
  r(Le, {
612
607
  ref_key: "orderDetailDialog",
613
- ref: B,
614
- "agenda-data": o(F),
615
- resources: o(S),
616
- onOpenReservation: e[3] || (e[3] = (s) => _e(s))
608
+ ref: F,
609
+ "agenda-data": o(R),
610
+ resources: o(I),
611
+ onOpenReservation: e[3] || (e[3] = (s) => ge(s))
617
612
  }, null, 8, ["agenda-data", "resources"])
618
613
  ], 64);
619
614
  };
620
615
  }
621
- }), ds = /* @__PURE__ */ He(es, [["__scopeId", "data-v-3e5d1883"]]);
616
+ }), cs = /* @__PURE__ */ He(ts, [["__scopeId", "data-v-5178678e"]]);
622
617
  export {
623
- ds as default
618
+ cs as default
624
619
  };