@oneclick.dev/cms-core-modules 0.0.116 → 0.0.118

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 (42) hide show
  1. package/dist/{Acquisition-FV3QpaUX.mjs → Acquisition-X5-eksDw.mjs} +2 -2
  2. package/dist/{Audience-ka0b7YPE.mjs → Audience-CXryJ8tc.mjs} +2 -2
  3. package/dist/{ContentEditor-CsbOFg3a.js → ContentEditor-BnOVpmsQ.js} +39 -39
  4. package/dist/{ContentEditor-Df5uWpVC.mjs → ContentEditor-Cm28u_14.mjs} +7082 -5510
  5. package/dist/{Create-BXNLRQag.mjs → Create-BPA2ywrd.mjs} +1 -1
  6. package/dist/{DateFormatter-qbhRYxI_.mjs → DateFormatter-BkKoSf_l.mjs} +5 -5
  7. package/dist/{Detail-BCOcP2ql.mjs → Detail-C1Blq61w.mjs} +1 -1
  8. package/dist/{Detail-ChD5XurA.mjs → Detail-CfsPwl4s.mjs} +17 -17
  9. package/dist/{Detail-DnX7tsqN.mjs → Detail-CtItxMX4.mjs} +1 -1
  10. package/dist/{Detail-Btzwo0Y3.mjs → Detail-Dnpnmy4-.mjs} +1 -1
  11. package/dist/{Find-zN_dKz4p.mjs → Find-BAvaNf90.mjs} +1 -1
  12. package/dist/{NewReservationDialog.vue_vue_type_script_setup_true_lang-BHeMJ6nr.mjs → NewReservationDialog.vue_vue_type_script_setup_true_lang-BXTkYCm_.mjs} +1 -1
  13. package/dist/{Overview-BR_y8x3W.mjs → Overview-BWLxUksJ.mjs} +1 -1
  14. package/dist/{Overview-MpgkLB6m.mjs → Overview-Bjvu9Lfc.mjs} +3 -3
  15. package/dist/{SeoHealth-bVQj_Xgm.mjs → SeoHealth-I2mqiuLm.mjs} +3 -3
  16. package/dist/{TableView-Csv5Lycy.mjs → TableView-BQI3CWll.mjs} +2 -2
  17. package/dist/agenda-Dcsc3QHj.js +1 -0
  18. package/dist/agenda-DyTpFZfY.mjs +1258 -0
  19. package/dist/cms-core-modules.css +1 -1
  20. package/dist/{exceptions-CqityDo9.mjs → exceptions-Dgj54ULn.mjs} +1 -1
  21. package/dist/{index-DZV720u-.mjs → index-52nwosIs.mjs} +45 -45
  22. package/dist/{index-CkVwMqpn.mjs → index-Bnn9LahC.mjs} +52 -52
  23. package/dist/{index-B8GvmAwh.mjs → index-DiTIA8Sh.mjs} +27 -27
  24. package/dist/{index-L54VBzwJ.mjs → index-ar4tbR3i.mjs} +8 -8
  25. package/dist/{index-BIF2RB7k.mjs → index-cC_2cw31.mjs} +4 -4
  26. package/dist/index-g1jAGZGc.mjs +1261 -0
  27. package/dist/{index-CFzn2Lus.mjs → index-hMp4p5qA.mjs} +3 -3
  28. package/dist/index-yrUH3zmq.js +35 -0
  29. package/dist/index.cjs.js +1 -1
  30. package/dist/index.mjs +21 -21
  31. package/dist/{math-BJ-oX_IM.mjs → math-Bkw6u412.mjs} +11 -11
  32. package/dist/{orders-D41GbzIa.mjs → orders-C5NT99Fy.mjs} +82 -82
  33. package/dist/orders-lO3dZ5un.js +1 -0
  34. package/dist/{resources-B-D5MUhV.mjs → resources-CK0oWssj.mjs} +1 -1
  35. package/dist/src/appointments/components/edit/EventDialog/BookingsList.vue.d.ts +1 -0
  36. package/dist/{vee-validate-zod-DNjTLCgh.mjs → vee-validate-zod-CcOwoF6y.mjs} +6 -6
  37. package/package.json +2 -2
  38. package/dist/agenda-BSdlrfxv.mjs +0 -1253
  39. package/dist/agenda-Bev1mO7E.js +0 -1
  40. package/dist/index-CM4eaK5T.mjs +0 -1245
  41. package/dist/index-DliTZzwI.js +0 -35
  42. package/dist/orders-1swJVKw2.js +0 -1
package/dist/index.mjs CHANGED
@@ -54,7 +54,7 @@ const I = "data:image/webp;base64,UklGRg5VAABXRUJQVlA4WAoAAAAMAAAA4wAA4wAAVlA4IJ
54
54
  default: !1
55
55
  }
56
56
  }), l = [
57
- { path: "", component: () => import("./TableView-Csv5Lycy.mjs") }
57
+ { path: "", component: () => import("./TableView-BQI3CWll.mjs") }
58
58
  ], p = [], rA = {
59
59
  component: () => import("./index-Bkq58CeQ.mjs"),
60
60
  metadata: C,
@@ -98,9 +98,9 @@ const I = "data:image/webp;base64,UklGRg5VAABXRUJQVlA4WAoAAAAMAAAA4wAA4wAAVlA4IJ
98
98
  default: "https://preview.com/shop/{{slug}}"
99
99
  }
100
100
  }), M = [
101
- { path: "", component: () => import("./Overview-BR_y8x3W.mjs") },
102
- { path: "/:productId", component: () => import("./Detail-Btzwo0Y3.mjs") },
103
- { path: "/new", component: () => import("./Detail-Btzwo0Y3.mjs") }
101
+ { path: "", component: () => import("./Overview-BWLxUksJ.mjs") },
102
+ { path: "/:productId", component: () => import("./Detail-Dnpnmy4-.mjs") },
103
+ { path: "/new", component: () => import("./Detail-Dnpnmy4-.mjs") }
104
104
  ], s = [
105
105
  { key: "create-product", name: "Create product", description: "Team member can create a new product" },
106
106
  { key: "edit-product", name: "Edit product", description: "Team member can edit a product" },
@@ -186,9 +186,9 @@ const I = "data:image/webp;base64,UklGRg5VAABXRUJQVlA4WAoAAAAMAAAA4wAA4wAAVlA4IJ
186
186
  default: "promo-codes"
187
187
  }
188
188
  }), y = [
189
- { path: "", component: () => import("./Create-BXNLRQag.mjs") },
190
- { path: "/promo-codes", component: () => import("./Find-zN_dKz4p.mjs") },
191
- { path: "/promo-codes/:promoCodeId", component: () => import("./Detail-ChD5XurA.mjs") }
189
+ { path: "", component: () => import("./Create-BPA2ywrd.mjs") },
190
+ { path: "/promo-codes", component: () => import("./Find-BAvaNf90.mjs") },
191
+ { path: "/promo-codes/:promoCodeId", component: () => import("./Detail-CfsPwl4s.mjs") }
192
192
  ], u = [
193
193
  { key: "create-promo-codes", name: "Create promo codes", description: "Team member can create promo codes" },
194
194
  { key: "view-promo-codes", name: "View promo codes", description: "Team member can view promo codes" },
@@ -227,8 +227,8 @@ const I = "data:image/webp;base64,UklGRg5VAABXRUJQVlA4WAoAAAAMAAAA4wAA4wAAVlA4IJ
227
227
  }
228
228
  }), P = [
229
229
  { path: "", component: () => import("./Overview-BCpJNiEB.mjs") },
230
- { path: "/:collectionId", component: () => import("./Detail-BCOcP2ql.mjs") },
231
- { path: "/new", component: () => import("./Detail-BCOcP2ql.mjs") }
230
+ { path: "/:collectionId", component: () => import("./Detail-C1Blq61w.mjs") },
231
+ { path: "/new", component: () => import("./Detail-C1Blq61w.mjs") }
232
232
  ], E = [
233
233
  { key: "create-collection", name: "Create product collection", description: "Team member can create a new product collection" },
234
234
  { key: "edit-collection", name: "Edit product collection", description: "Team member can edit a product collection" },
@@ -257,8 +257,8 @@ const I = "data:image/webp;base64,UklGRg5VAABXRUJQVlA4WAoAAAAMAAAA4wAA4wAAVlA4IJ
257
257
  }
258
258
  }), z = [
259
259
  { path: "", component: () => import("./Overview-CIa1E-HH.mjs") },
260
- { path: "/:optionId", component: () => import("./Detail-DnX7tsqN.mjs") },
261
- { path: "/new", component: () => import("./Detail-DnX7tsqN.mjs") }
260
+ { path: "/:optionId", component: () => import("./Detail-CtItxMX4.mjs") },
261
+ { path: "/new", component: () => import("./Detail-CtItxMX4.mjs") }
262
262
  ], k = [
263
263
  { key: "create-option", name: "Create shipping option", description: "Team member can create a new shipping option" },
264
264
  { key: "edit-option", name: "Edit shipping option", description: "Team member can edit a shipping option" },
@@ -293,11 +293,11 @@ const I = "data:image/webp;base64,UklGRg5VAABXRUJQVlA4WAoAAAAMAAAA4wAA4wAAVlA4IJ
293
293
  description: "Optional. When set, the module will fetch real keyword data from Google Search Console. Use the same site URL format as shown in Search Console."
294
294
  }
295
295
  }), x = [
296
- { path: "", component: () => import("./Overview-MpgkLB6m.mjs") },
297
- { path: "/acquisition", component: () => import("./Acquisition-FV3QpaUX.mjs") },
296
+ { path: "", component: () => import("./Overview-Bjvu9Lfc.mjs") },
297
+ { path: "/acquisition", component: () => import("./Acquisition-X5-eksDw.mjs") },
298
298
  { path: "/content", component: () => import("./Content-CYOZKvWK.mjs") },
299
- { path: "/audience", component: () => import("./Audience-ka0b7YPE.mjs") },
300
- { path: "/seo", component: () => import("./SeoHealth-bVQj_Xgm.mjs") }
299
+ { path: "/audience", component: () => import("./Audience-CXryJ8tc.mjs") },
300
+ { path: "/seo", component: () => import("./SeoHealth-I2mqiuLm.mjs") }
301
301
  ], K = [], S = [
302
302
  {
303
303
  name: "getTopPages",
@@ -557,7 +557,7 @@ const I = "data:image/webp;base64,UklGRg5VAABXRUJQVlA4WAoAAAAMAAAA4wAA4wAAVlA4IJ
557
557
  { path: "", component: () => import("./Overview-lWAyyenp.mjs") },
558
558
  { path: "/collections", component: () => import("./Overview-lWAyyenp.mjs") },
559
559
  { path: "/collections/:collectionId", component: () => import("./Entries-BdhUyJR5.mjs") },
560
- { path: "/collections/:collectionId/:entryId", component: () => import("./ContentEditor-Df5uWpVC.mjs") },
560
+ { path: "/collections/:collectionId/:entryId", component: () => import("./ContentEditor-Cm28u_14.mjs") },
561
561
  { path: "/components", component: () => import("./Components-iU3ZaJm5.mjs") },
562
562
  { path: "/global-styling", component: () => import("./GlobalStyling-Bp2PiOWt.mjs") }
563
563
  ], q = [
@@ -637,14 +637,14 @@ const I = "data:image/webp;base64,UklGRg5VAABXRUJQVlA4WAoAAAAMAAAA4wAA4wAAVlA4IJ
637
637
  { path: "/create/regular", component: () => import("./regular-_05oq5Tx.mjs") },
638
638
  // { path: '/create/full-day', component: () => import('./pages/create/full-day.vue') },
639
639
  // { path: '/create/multi-day', component: () => import('./pages/create/multi-day.vue') },
640
- { path: "/edit/:id", component: () => import("./index-CM4eaK5T.mjs") },
641
- { path: "/edit/:id/agenda", component: () => import("./agenda-BSdlrfxv.mjs") },
642
- { path: "/edit/:id/exceptions", component: () => import("./exceptions-CqityDo9.mjs") },
640
+ { path: "/edit/:id", component: () => import("./index-g1jAGZGc.mjs") },
641
+ { path: "/edit/:id/agenda", component: () => import("./agenda-DyTpFZfY.mjs") },
642
+ { path: "/edit/:id/exceptions", component: () => import("./exceptions-Dgj54ULn.mjs") },
643
643
  { path: "/edit/:id/availability", component: () => import("./availability-D8JdA4rP.mjs") },
644
644
  { path: "/edit/:id/payment", component: () => import("./payment-D5j-68Ig.mjs") },
645
645
  { path: "/edit/:id/refunds", component: () => import("./refunds-D9nTeD2d.mjs") },
646
- { path: "/edit/:id/resources", component: () => import("./resources-B-D5MUhV.mjs") },
647
- { path: "/edit/:id/orders", component: () => import("./orders-D41GbzIa.mjs") },
646
+ { path: "/edit/:id/resources", component: () => import("./resources-CK0oWssj.mjs") },
647
+ { path: "/edit/:id/orders", component: () => import("./orders-C5NT99Fy.mjs") },
648
648
  { path: "/edit/:id/booking-data", component: () => import("./booking-data-Px7XCIfU.mjs") }
649
649
  ], iA = [
650
650
  { key: "create-agendas", name: "Create agendas", description: "Team member can create agendas" },
@@ -62,18 +62,18 @@ function D(t) {
62
62
  return t >= 1 ? g : t <= -1 ? -g : Math.asin(t);
63
63
  }
64
64
  export {
65
- $ as a,
66
- B as b,
67
- D as c,
68
- w as d,
69
- E as e,
70
- I as f,
71
- Q as g,
65
+ b as a,
66
+ I as b,
67
+ E as c,
68
+ z as d,
69
+ Q as e,
70
+ $ as f,
71
+ w as g,
72
72
  g as h,
73
- j as i,
74
- b as j,
75
- z as k,
76
- Z as m,
73
+ Z as i,
74
+ D as j,
75
+ B as k,
76
+ j as m,
77
77
  C as p,
78
78
  k as s,
79
79
  S as t
@@ -1,16 +1,16 @@
1
- import { defineComponent as ke, computed as k, ref as _, provide as be, onMounted as we, watch as te, resolveComponent as b, openBlock as o, createElementBlock as l, Fragment as N, createVNode as r, withCtx as v, createElementVNode as a, unref as n, createTextVNode as w, renderList as L, toDisplayString as i, createBlock as se, createCommentVNode as D, normalizeClass as De, withDirectives as Ce, isRef as ae, vModelText as Ie, normalizeStyle as ne, nextTick as Se } from "vue";
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
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 oe, Users as E, ChevronLeft as je, ChevronRight as Re, RefreshCw as Fe, CalendarIcon as H, Search as Be, X as $e, Clock as re } from "lucide-vue-next";
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
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
5
  import { _ as Ee } from "./EditLayout.vue_vue_type_script_setup_true_lang-pDO9b4Pv.mjs";
6
6
  import { _ as He } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
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 = {
8
8
  key: 0,
9
9
  class: "mb-3 text-sm text-muted-foreground"
10
- }, nt = {
10
+ }, ot = {
11
11
  key: 1,
12
12
  class: "flex items-center justify-center py-8"
13
- }, ot = {
13
+ }, nt = {
14
14
  key: 2,
15
15
  class: "text-center py-8 text-muted-foreground"
16
16
  }, rt = {
@@ -84,11 +84,11 @@ const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:i
84
84
  setup(ts) {
85
85
  const Y = 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), le = k(() => ({
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
88
  date: J(m.value),
89
89
  resource: null
90
90
  }));
91
- be("event", le);
91
+ be("event", ie);
92
92
  const $ = k({
93
93
  get: () => J(m.value),
94
94
  set: (t) => {
@@ -98,7 +98,7 @@ const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:i
98
98
  }
99
99
  m.value = /* @__PURE__ */ new Date(`${t}T00:00:00`);
100
100
  }
101
- }), ie = () => {
101
+ }), de = () => {
102
102
  const t = G.value;
103
103
  if (t) {
104
104
  if (typeof t.showPicker == "function") {
@@ -107,7 +107,7 @@ 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
- }, de = k(() => {
110
+ }, ce = k(() => {
111
111
  const t = new Date(C);
112
112
  t.setDate(C.getDate() - 1);
113
113
  const e = new Date(C);
@@ -117,16 +117,16 @@ const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:i
117
117
  day: "numeric",
118
118
  year: "numeric"
119
119
  });
120
- }), ce = () => {
120
+ }), ue = () => {
121
121
  const t = new Date(m.value);
122
122
  t.setDate(t.getDate() - 1), m.value = t;
123
- }, ue = () => {
123
+ }, me = () => {
124
124
  const t = new Date(m.value);
125
125
  t.setDate(t.getDate() + 1), t <= C && (m.value = t);
126
- }, me = k(() => {
126
+ }, fe = k(() => {
127
127
  const t = new Date(m.value);
128
128
  return t.setDate(t.getDate() + 1), t <= C;
129
- }), fe = () => {
129
+ }), ve = () => {
130
130
  m.value = /* @__PURE__ */ new Date();
131
131
  }, J = (t) => {
132
132
  const e = t.getFullYear(), d = String(t.getMonth() + 1).padStart(2, "0"), u = String(t.getDate()).padStart(2, "0");
@@ -192,7 +192,7 @@ const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:i
192
192
  ],
193
193
  threshold: 0.3,
194
194
  ignoreLocation: !0
195
- }).search(y.value).map((e) => e.item) : x.value), ve = k(() => {
195
+ }).search(y.value).map((e) => e.item) : x.value), ee = k(() => {
196
196
  const t = /* @__PURE__ */ new Map();
197
197
  for (const e of V.value) {
198
198
  t.has(e.id) || t.set(e.id, {
@@ -210,10 +210,10 @@ const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:i
210
210
  d.reservations.push(e), d.totalPrice = typeof e.total == "number" ? e.total : d.totalPrice + (e.reservationPrice || 0), d.totalSpots += e.spots || 0;
211
211
  }
212
212
  return Array.from(t.values());
213
- }), O = k(() => ({
213
+ }), O = k(() => (console.log("orderssss", x.value), {
214
214
  spots: x.value.reduce((t, e) => t + (e.spots || 0), 0),
215
215
  bookings: x.value.length,
216
- revenue: x.value.reduce((t, e) => t + (e.reservationPrice || 0), 0)
216
+ revenue: ee.value.reduce((t, e) => t + (e.totalPrice || 0), 0)
217
217
  })), pe = () => {
218
218
  y.value = "";
219
219
  }, xe = async () => {
@@ -251,7 +251,7 @@ const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:i
251
251
  }
252
252
  }, ge = async () => {
253
253
  await xe(), await h();
254
- }, ee = async (t, e) => {
254
+ }, te = async (t, e) => {
255
255
  const d = await j.get(z.reservationsCollection, t);
256
256
  if (!d) return;
257
257
  const u = { ...d, id: d.id || t }, p = (u.reservations || []).map((f) => Z(u, f));
@@ -279,31 +279,31 @@ const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:i
279
279
  const t = Q.value.orderId || Y.query.orderId, e = Q.value.reservationId || Y.query.reservationId;
280
280
  if (t) {
281
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 ee(t, e);
282
+ d.searchParams.delete("orderId"), d.searchParams.delete("reservationId"), window.history.replaceState(window.history.state, "", d.toString()), await te(t, e);
283
283
  }
284
- }), te(m, () => {
284
+ }), se(m, () => {
285
285
  h();
286
- }), te(I, () => {
286
+ }), se(I, () => {
287
287
  h();
288
288
  }), (t, e) => {
289
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 o(), l(N, null, [
290
+ return n(), l(N, null, [
291
291
  r(Ee, null, {
292
292
  default: v(() => [
293
293
  a("div", qe, [
294
294
  a("div", Ye, [
295
295
  a("div", null, [
296
296
  a("h1", Qe, [
297
- r(n(oe), { class: "size-6" }),
297
+ r(o(re), { class: "size-6" }),
298
298
  e[4] || (e[4] = w(" Orders ", -1))
299
299
  ]),
300
300
  e[5] || (e[5] = a("p", { class: "text-muted-foreground text-sm mt-1" }, " View orders by when they were placed ", -1))
301
301
  ])
302
302
  ]),
303
303
  a("div", Xe, [
304
- (o(), l(N, null, L(["confirmed", "pending", "cancelled"], (s) => r(d, {
304
+ (n(), l(N, null, L(["confirmed", "pending", "cancelled"], (s) => r(d, {
305
305
  key: s,
306
- variant: n(I) === s ? "default" : "ghost",
306
+ variant: o(I) === s ? "default" : "ghost",
307
307
  size: "sm",
308
308
  class: "capitalize",
309
309
  onClick: (c) => I.value = s
@@ -323,12 +323,12 @@ const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:i
323
323
  r(p, { class: "flex items-center gap-2" }, {
324
324
  default: v(() => [
325
325
  e[6] || (e[6] = w(" Orders received ", -1)),
326
- n(O).bookings > 0 ? (o(), se(u, {
326
+ o(O).bookings > 0 ? (n(), ae(u, {
327
327
  key: 0,
328
328
  variant: "secondary"
329
329
  }, {
330
330
  default: v(() => [
331
- w(i(n(O).bookings), 1)
331
+ w(i(o(O).bookings), 1)
332
332
  ]),
333
333
  _: 1
334
334
  })) : D("", !0)
@@ -338,10 +338,10 @@ const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:i
338
338
  r(f, { class: "flex items-center gap-4 mt-1" }, {
339
339
  default: v(() => [
340
340
  a("span", Je, [
341
- r(n(E), { size: 14 }),
342
- w(" " + i(n(O).spots) + " spots ", 1)
341
+ r(o(E), { size: 14 }),
342
+ w(" " + i(o(O).spots) + " spots ", 1)
343
343
  ]),
344
- a("span", Ke, " €" + i(n(O).revenue.toFixed(2)) + i(n(I) === "pending" ? " pending " : n(I) === "cancelled" ? " cancelled " : " ") + "revenue ", 1)
344
+ a("span", Ke, " €" + i(o(O).revenue.toFixed(2)) + i(o(I) === "pending" ? " pending " : o(I) === "cancelled" ? " cancelled " : " ") + "revenue ", 1)
345
345
  ]),
346
346
  _: 1
347
347
  })
@@ -352,10 +352,10 @@ const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:i
352
352
  variant: "outline",
353
353
  size: "icon",
354
354
  class: "size-8",
355
- onClick: ce
355
+ onClick: ue
356
356
  }, {
357
357
  default: v(() => [
358
- r(n(je), { size: 16 })
358
+ r(o(je), { size: 16 })
359
359
  ]),
360
360
  _: 1
361
361
  }),
@@ -363,7 +363,7 @@ const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:i
363
363
  variant: "outline",
364
364
  size: "sm",
365
365
  class: "h-8 px-3 text-xs",
366
- onClick: fe
366
+ onClick: ve
367
367
  }, {
368
368
  default: v(() => [...e[7] || (e[7] = [
369
369
  w(" Today ", -1)
@@ -374,11 +374,11 @@ const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:i
374
374
  variant: "outline",
375
375
  size: "icon",
376
376
  class: "size-8",
377
- onClick: ue,
378
- disabled: !n(me)
377
+ onClick: me,
378
+ disabled: !o(fe)
379
379
  }, {
380
380
  default: v(() => [
381
- r(n(Re), { size: 16 })
381
+ r(o(Re), { size: 16 })
382
382
  ]),
383
383
  _: 1
384
384
  }, 8, ["disabled"])
@@ -387,12 +387,12 @@ const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:i
387
387
  variant: "outline",
388
388
  size: "icon",
389
389
  onClick: h,
390
- disabled: n(P)
390
+ disabled: o(P)
391
391
  }, {
392
392
  default: v(() => [
393
- r(n(Fe), {
393
+ r(o(Fe), {
394
394
  size: 16,
395
- class: De({ "animate-spin": n(P) })
395
+ class: De({ "animate-spin": o(P) })
396
396
  }, null, 8, ["class"])
397
397
  ]),
398
398
  _: 1
@@ -404,23 +404,23 @@ const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:i
404
404
  r(d, {
405
405
  type: "button",
406
406
  variant: "outline",
407
- onClick: ie
407
+ onClick: de
408
408
  }, {
409
409
  default: v(() => [
410
- r(n(H), { class: "size-4" }),
411
- w(" " + i(n(de)), 1)
410
+ r(o(H), { class: "size-4" }),
411
+ w(" " + i(o(ce)), 1)
412
412
  ]),
413
413
  _: 1
414
414
  }),
415
415
  Ce(a("input", {
416
416
  ref_key: "dateInputRef",
417
417
  ref: G,
418
- "onUpdate:modelValue": e[0] || (e[0] = (s) => ae($) ? $.value = s : null),
418
+ "onUpdate:modelValue": e[0] || (e[0] = (s) => oe($) ? $.value = s : null),
419
419
  type: "date",
420
420
  class: "orders-date-picker",
421
421
  "aria-label": "Select order date"
422
422
  }, null, 512), [
423
- [Ie, n($)]
423
+ [Ie, o($)]
424
424
  ])
425
425
  ])
426
426
  ])
@@ -430,17 +430,17 @@ const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:i
430
430
  r(ye, null, {
431
431
  default: v(() => [
432
432
  a("div", st, [
433
- r(n(Be), {
433
+ r(o(Be), {
434
434
  size: 16,
435
435
  class: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"
436
436
  }),
437
437
  r(U, {
438
- modelValue: n(y),
439
- "onUpdate:modelValue": e[1] || (e[1] = (s) => ae(y) ? y.value = s : null),
438
+ modelValue: o(y),
439
+ "onUpdate:modelValue": e[1] || (e[1] = (s) => oe(y) ? y.value = s : null),
440
440
  placeholder: "Search by name, email, or phone...",
441
441
  class: "pl-9 pr-9"
442
442
  }, null, 8, ["modelValue"]),
443
- n(y) ? (o(), se(d, {
443
+ o(y) ? (n(), ae(d, {
444
444
  key: 0,
445
445
  variant: "ghost",
446
446
  size: "icon",
@@ -448,26 +448,26 @@ const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:i
448
448
  onClick: pe
449
449
  }, {
450
450
  default: v(() => [
451
- r(n($e), { size: 14 })
451
+ r(o($e), { size: 14 })
452
452
  ]),
453
453
  _: 1
454
454
  })) : D("", !0)
455
455
  ]),
456
- n(y) ? (o(), l("div", at, " Showing " + i(n(V).length) + " of " + i(n(x).length) + " orders ", 1)) : D("", !0),
457
- n(P) ? (o(), l("div", nt, [...e[8] || (e[8] = [
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] = [
458
458
  a("div", { class: "animate-spin rounded-full h-8 w-8 border-b-2 border-primary" }, null, -1)
459
- ])])) : n(x).length === 0 ? (o(), l("div", ot, [
460
- r(n(oe), { class: "size-12 mx-auto mb-3 opacity-50" }),
459
+ ])])) : o(x).length === 0 ? (n(), l("div", nt, [
460
+ r(o(re), { class: "size-12 mx-auto mb-3 opacity-50" }),
461
461
  e[9] || (e[9] = a("p", null, "No orders received on this day", -1))
462
- ])) : n(V).length === 0 ? (o(), l("div", rt, " No orders match your search ")) : (o(), l("div", lt, [
463
- (o(!0), l(N, null, L(n(ve), (s) => (o(), l("div", {
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", {
464
464
  key: s.id,
465
465
  class: "border rounded-lg overflow-hidden shadow-sm"
466
466
  }, [
467
- s.reservations.length === 1 ? (o(), l("div", {
467
+ s.reservations.length === 1 ? (n(), l("div", {
468
468
  key: 0,
469
469
  class: "p-3 hover:bg-muted/50 transition-colors cursor-pointer",
470
- onClick: (c) => n(A)?.openDialog(s.reservations[0])
470
+ onClick: (c) => o(A)?.openDialog(s.reservations[0])
471
471
  }, [
472
472
  a("div", dt, [
473
473
  a("div", ct, [
@@ -476,14 +476,14 @@ const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:i
476
476
  a("div", ft, i(s.customerInfo?.phone), 1),
477
477
  a("div", vt, [
478
478
  a("div", pt, [
479
- r(n(H), { size: 12 }),
479
+ r(o(H), { size: 12 }),
480
480
  a("span", null, i(W(s.reservations[0].date)) + " · " + i(s.reservations[0].startTime) + " - " + i(s.reservations[0].endTime), 1)
481
481
  ]),
482
482
  a("div", xt, [
483
- r(n(E), { size: 12 }),
483
+ r(o(E), { size: 12 }),
484
484
  a("span", null, i(s.reservations[0].spots) + " spots", 1)
485
485
  ]),
486
- s.reservations[0].resourceName ? (o(), l("div", gt, [
486
+ s.reservations[0].resourceName ? (n(), l("div", gt, [
487
487
  a("div", {
488
488
  class: "w-3 h-3 rounded-full",
489
489
  style: ne({ backgroundColor: s.reservations[0].resourceColor || "#6b7280" })
@@ -492,26 +492,26 @@ const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:i
492
492
  ])) : D("", !0)
493
493
  ]),
494
494
  a("div", _t, [
495
- r(n(re), { size: 12 }),
495
+ r(o(le), { size: 12 }),
496
496
  a("span", null, "Ordered at " + i(K(s.createdAt)), 1)
497
497
  ]),
498
498
  r(q, {
499
499
  metadata: { ...s.reservations[0].metadata, ...s.reservations[0].reservationMetadata },
500
- schema: n(R),
500
+ schema: o(R),
501
501
  "display-filter": ["highlight", "badge"],
502
502
  compact: "",
503
503
  class: "mt-1"
504
504
  }, null, 8, ["metadata", "schema"])
505
505
  ]),
506
506
  a("div", yt, [
507
- s.reservations[0].status === "pending" ? (o(), l("span", ht, "Pending")) : s.reservations[0].status === "cancelled" ? (o(), l("span", kt, "Cancelled")) : s.reservations[0].reservationStatus === "needs_approval" ? (o(), l("span", bt, "Needs Approval")) : s.reservations[0].reservationStatus === "approved" ? (o(), l("span", wt, "Approved")) : s.reservations[0].reservationStatus === "cancelled" ? (o(), l("span", Dt, "Cancelled")) : s.reservations[0].reservationStatus === "rejected" ? (o(), l("span", Ct, "Rejected")) : (o(), l("span", It, "Pending")),
508
- s.reservations[0].reservationPrice || s.reservations[0].reservationPrice === 0 ? (o(), l("div", St, " €" + i(s.reservations[0].reservationPrice.toFixed(2)), 1)) : D("", !0)
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)
509
509
  ])
510
510
  ])
511
- ], 8, it)) : (o(), l(N, { key: 1 }, [
511
+ ], 8, it)) : (n(), l(N, { key: 1 }, [
512
512
  a("div", {
513
513
  class: "p-3 bg-muted/30 hover:bg-muted/50 transition-colors cursor-pointer",
514
- onClick: (c) => n(B)?.openDialog(s)
514
+ onClick: (c) => o(B)?.openDialog(s)
515
515
  }, [
516
516
  a("div", At, [
517
517
  a("div", Nt, [
@@ -530,39 +530,39 @@ const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:i
530
530
  a("div", Tt, i(s.customerInfo?.email), 1),
531
531
  a("div", jt, i(s.customerInfo?.phone), 1),
532
532
  a("div", Rt, [
533
- r(n(re), { size: 12 }),
533
+ r(o(le), { size: 12 }),
534
534
  a("span", null, "Ordered at " + i(K(s.createdAt)), 1)
535
535
  ]),
536
536
  r(q, {
537
537
  metadata: s.metadata,
538
- schema: n(R),
538
+ schema: o(R),
539
539
  "display-filter": ["highlight", "badge"],
540
540
  compact: "",
541
541
  class: "mt-1"
542
542
  }, null, 8, ["metadata", "schema"])
543
543
  ]),
544
544
  a("div", Ft, [
545
- s.status === "pending" ? (o(), l("span", Bt, "Pending")) : s.status === "cancelled" ? (o(), l("span", $t, "Cancelled")) : (o(), l("span", Mt, "Confirmed")),
545
+ s.status === "pending" ? (n(), l("span", Bt, "Pending")) : s.status === "cancelled" ? (n(), l("span", $t, "Cancelled")) : (n(), l("span", Mt, "Confirmed")),
546
546
  a("div", Vt, " €" + i(s.totalPrice.toFixed(2)), 1)
547
547
  ])
548
548
  ])
549
549
  ], 8, Pt),
550
- (o(!0), l(N, null, L(s.reservations, (c) => (o(), l("div", {
550
+ (n(!0), l(N, null, L(s.reservations, (c) => (n(), l("div", {
551
551
  key: c.res_id,
552
552
  class: "p-3 border-t bg-muted/50 dark:bg-transparent dark:hover:bg-muted/50 transition-colors cursor-pointer",
553
- onClick: (ss) => n(A)?.openDialog(c)
553
+ onClick: (ss) => o(A)?.openDialog(c)
554
554
  }, [
555
555
  a("div", Lt, [
556
556
  a("div", Et, [
557
557
  a("div", Ht, [
558
- r(n(H), { size: 12 }),
558
+ r(o(H), { size: 12 }),
559
559
  a("span", null, i(W(c.date)) + " · " + i(c.startTime) + " - " + i(c.endTime), 1)
560
560
  ]),
561
561
  a("div", qt, [
562
- r(n(E), { size: 12 }),
562
+ r(o(E), { size: 12 }),
563
563
  a("span", null, i(c.spots) + " spots", 1)
564
564
  ]),
565
- c.resourceName ? (o(), l("div", Yt, [
565
+ c.resourceName ? (n(), l("div", Yt, [
566
566
  a("div", {
567
567
  class: "w-3 h-3 rounded-full",
568
568
  style: ne({ backgroundColor: c.resourceColor || "#6b7280" })
@@ -570,14 +570,14 @@ const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:i
570
570
  a("span", null, i(c.resourceName), 1)
571
571
  ])) : D("", !0)
572
572
  ]),
573
- c.status === "confirmed" ? (o(), l("div", Qt, [
574
- c.reservationStatus === "needs_approval" ? (o(), l("span", Xt, "Needs Approval")) : c.reservationStatus === "approved" ? (o(), l("span", Gt, "Approved")) : c.reservationStatus === "cancelled" ? (o(), l("span", Jt, "Cancelled")) : c.reservationStatus === "rejected" ? (o(), l("span", Kt, "Rejected")) : (o(), l("span", Wt, "Pending")),
575
- c.reservationPrice || c.reservationPrice === 0 ? (o(), l("div", Zt, " €" + i(c.reservationPrice.toFixed(2)), 1)) : D("", !0)
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)
576
576
  ])) : D("", !0)
577
577
  ]),
578
578
  r(q, {
579
579
  metadata: c.reservationMetadata,
580
- schema: n(R),
580
+ schema: o(R),
581
581
  "display-filter": ["highlight", "badge"],
582
582
  compact: "",
583
583
  class: "mt-1"
@@ -599,26 +599,26 @@ const qe = { class: "space-y-6" }, Ye = { class: "flex flex-col sm:flex-row sm:i
599
599
  r(Ue, {
600
600
  ref_key: "reservationDetailDialog",
601
601
  ref: A,
602
- "agenda-data": n(F),
603
- resources: n(S),
602
+ "agenda-data": o(F),
603
+ resources: o(S),
604
604
  "show-order-link": "",
605
605
  onCancelled: h,
606
606
  onConfirmed: h,
607
607
  onRejected: h,
608
608
  onTransferred: h,
609
- onOpenOrder: e[2] || (e[2] = (s) => ee(s))
609
+ onOpenOrder: e[2] || (e[2] = (s) => te(s))
610
610
  }, null, 8, ["agenda-data", "resources"]),
611
611
  r(Le, {
612
612
  ref_key: "orderDetailDialog",
613
613
  ref: B,
614
- "agenda-data": n(F),
615
- resources: n(S),
614
+ "agenda-data": o(F),
615
+ resources: o(S),
616
616
  onOpenReservation: e[3] || (e[3] = (s) => _e(s))
617
617
  }, null, 8, ["agenda-data", "resources"])
618
618
  ], 64);
619
619
  };
620
620
  }
621
- }), ds = /* @__PURE__ */ He(es, [["__scopeId", "data-v-11463131"]]);
621
+ }), ds = /* @__PURE__ */ He(es, [["__scopeId", "data-v-3e5d1883"]]);
622
622
  export {
623
623
  ds as default
624
624
  };