@oneclick.dev/cms-core-modules 0.0.101 → 0.0.103

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 (117) hide show
  1. package/dist/Acquisition-Br1Pfny3.js +1 -0
  2. package/dist/{Acquisition-BJXNY4ko.mjs → Acquisition-CPlZzUBo.mjs} +40 -40
  3. package/dist/AgendaOpeningHoursCard-B7ROIPWw.js +1 -0
  4. package/dist/AgendaOpeningHoursCard-Cp4wxUeK.mjs +172 -0
  5. package/dist/AppointmentListTable-DZJNmTMb.mjs +177 -0
  6. package/dist/AppointmentListTable-Dieu9US_.js +1 -0
  7. package/dist/Audience-BfkrmBuQ.js +1 -0
  8. package/dist/{Audience-CIzVtUvV.mjs → Audience-DTblSAiL.mjs} +89 -89
  9. package/dist/Content-BHr_rPVY.js +1 -0
  10. package/dist/{Content-CWhjurn_.mjs → Content-CYOZKvWK.mjs} +56 -56
  11. package/dist/{ContentEditor-Cjqgb64R.mjs → ContentEditor-B1nfKG_5.mjs} +706 -677
  12. package/dist/{ContentEditor-YgOS3kxS.js → ContentEditor-DdFU8piH.js} +15 -16
  13. package/dist/{Create-6uT9HWar.mjs → Create-BRBh0xjM.mjs} +2 -2
  14. package/dist/{Create-DuZ5nZrX.js → Create-qPeQxkdl.js} +1 -1
  15. package/dist/{DateFormatter-2B0R-DY4.mjs → DateFormatter-Bw-87W31.mjs} +212 -227
  16. package/dist/DateFormatter-CYAD4GBN.js +1 -0
  17. package/dist/{Detail-BZ-iE9vf.js → Detail-C857g62L.js} +1 -1
  18. package/dist/{Detail-CJVMJDP7.mjs → Detail-CujdFApD.mjs} +2 -2
  19. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-DWMqQvHl.mjs +76 -0
  20. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-kpjbVSXg.js +1 -0
  21. package/dist/{Entries-DkRhOt95.js → Entries-BaS6H6ak.js} +1 -1
  22. package/dist/{Entries-dLlCrXXe.mjs → Entries-C8UJkrVC.mjs} +1 -1
  23. package/dist/{Find-Bd1uLqSa.mjs → Find-B24ZEhYM.mjs} +1 -1
  24. package/dist/{NewReservationDialog.vue_vue_type_script_setup_true_lang-Bc946oSc.mjs → NewReservationDialog.vue_vue_type_script_setup_true_lang-9Q7TMm4u.mjs} +37 -37
  25. package/dist/{NewReservationDialog.vue_vue_type_script_setup_true_lang-CqERfyYb.js → NewReservationDialog.vue_vue_type_script_setup_true_lang-DiNzGl-q.js} +1 -1
  26. package/dist/{Overview-DoOASlNz.mjs → Overview-3HWhsqaz.mjs} +2 -2
  27. package/dist/Overview-BrCwozey.js +1 -0
  28. package/dist/{Overview-37nilXzE.js → Overview-CpHhuiaV.js} +1 -1
  29. package/dist/{Overview-DeQQ0FY3.js → Overview-DAxCu9XC.js} +1 -1
  30. package/dist/{Overview-C--dq51X.mjs → Overview-D_T3K6aq.mjs} +1 -1
  31. package/dist/{Overview-CGo4jaaA.mjs → Overview-kaMhsIUq.mjs} +21 -21
  32. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-Cz_22Oce.mjs +2927 -0
  33. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-DPPNc-Z5.js +349 -0
  34. package/dist/SeoHealth-09sEOu3G.js +1 -0
  35. package/dist/{SeoHealth-DVFDz3em.mjs → SeoHealth-BzcWd_w7.mjs} +29 -29
  36. package/dist/TableView-CPAw3h8g.js +4 -0
  37. package/dist/TableView-DXmEF6pY.mjs +6143 -0
  38. package/dist/agenda-BNG05SAq.js +1 -0
  39. package/dist/agenda-D1RxMxBS.mjs +1152 -0
  40. package/dist/availability-CMrRa5y2.mjs +269 -0
  41. package/dist/availability-Cf2YfMwM.js +1 -0
  42. package/dist/booking-data-DgJd0BcM.mjs +889 -0
  43. package/dist/booking-data-Di5GmH_8.js +1 -0
  44. package/dist/cms-core-modules.css +1 -1
  45. package/dist/{exceptions-Bp5BSvxO.js → exceptions-CI0B4xVj.js} +1 -1
  46. package/dist/{exceptions-C97cNZYl.mjs → exceptions-vo8SA5SE.mjs} +68 -68
  47. package/dist/index-BtujSJeg.js +35 -0
  48. package/dist/{index-CrGjxSwa.mjs → index-CrgzoTyR.mjs} +1 -1
  49. package/dist/{index-D2a6wEPh.js → index-DPd3waTN.js} +1 -1
  50. package/dist/{index-CABh6Qn6.mjs → index-DrXxXB2F.mjs} +15 -15
  51. package/dist/{index-B-lVEpFX.mjs → index-MYWjg0zi.mjs} +3 -3
  52. package/dist/index-dOdMm1pV.mjs +1105 -0
  53. package/dist/index.cjs.js +1 -1
  54. package/dist/index.mjs +201 -148
  55. package/dist/interpolation-DEDSLETn.mjs +128 -0
  56. package/dist/interpolation-DERg6Lwt.js +1 -0
  57. package/dist/orders-CzzcFQha.mjs +559 -0
  58. package/dist/orders-ETtbA4aQ.js +1 -0
  59. package/dist/{payment-Bosr0m3u.mjs → payment-C3ohkehF.mjs} +1 -1
  60. package/dist/{payment-DDnC03jb.js → payment-Dfr-Ro-a.js} +1 -1
  61. package/dist/{resources-BtF5RUUq.js → resources-CxeFd57z.js} +1 -1
  62. package/dist/{resources-B7qDBC91.mjs → resources-WI_4SO6T.mjs} +2 -2
  63. package/dist/server-handlers.cjs.js +1 -1
  64. package/dist/server-handlers.mjs +457 -387
  65. package/dist/src/appointments/chat-components/AgendaOpeningHoursCard.vue.d.ts +15 -0
  66. package/dist/src/appointments/components/edit/CustomerInformationFieldEditorDialog.vue.d.ts +17 -5
  67. package/dist/src/appointments/components/edit/EventDialog/BookingsList.vue.d.ts +8 -3
  68. package/dist/src/appointments/components/edit/EventDialog/EventDialog.vue.d.ts +1 -0
  69. package/dist/src/appointments/components/edit/EventDialog/ReservationDetailDialog.vue.d.ts +6 -3
  70. package/dist/src/appointments/components/edit/EventTimeline.vue.d.ts +3 -0
  71. package/dist/src/appointments/components/edit/EventView.vue.d.ts +6 -1
  72. package/dist/src/appointments/components/edit/MetadataSchemaEditorDialog.vue.d.ts +12 -0
  73. package/dist/src/appointments/components/edit/OrderMetadataDisplay.vue.d.ts +21 -0
  74. package/dist/src/appointments/components/edit/dashboard/BookingsList.vue.d.ts +8 -3
  75. package/dist/src/appointments/index.d.ts +53 -0
  76. package/dist/src/appointments/pages/edit/agenda.vue.d.ts +3 -1
  77. package/dist/src/appointments/pages/edit/availability.vue.d.ts +1 -26
  78. package/dist/src/appointments/pages/edit/booking-data.vue.d.ts +65 -0
  79. package/dist/src/appointments/pages/edit/orders.vue.d.ts +7 -3
  80. package/dist/src/appointments/tools.d.ts +52 -0
  81. package/dist/src/appointments/types.d.ts +12 -0
  82. package/dist/src/table/config.d.ts +200 -0
  83. package/dist/src/table/get_data_flow-DEFAULT.json.d.ts +129 -0
  84. package/dist/src/table/index.d.ts +200 -0
  85. package/dist/utils-CanmrIWO.mjs +47 -0
  86. package/dist/utils-Yd6F5mea.js +3 -0
  87. package/package.json +2 -2
  88. package/src/appointments/tools.ts +38 -0
  89. package/dist/Acquisition-DPScJD4t.js +0 -1
  90. package/dist/AppointmentListTable-CQ0WIXtj.js +0 -1
  91. package/dist/AppointmentListTable-aV_UJd6j.mjs +0 -159
  92. package/dist/Audience-Csw1QLmw.js +0 -1
  93. package/dist/Content-dYr7kYT0.js +0 -1
  94. package/dist/DateFormatter-DbtOLV0L.js +0 -1
  95. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-DXa-Xxue.mjs +0 -74
  96. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-ozYrxb2g.js +0 -1
  97. package/dist/Overview-DBu86Ikb.js +0 -1
  98. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-COfCOMsz.js +0 -349
  99. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-CYXkhhdp.mjs +0 -2383
  100. package/dist/SeoHealth-DzftZW1m.js +0 -1
  101. package/dist/TableView-CIJs118q.mjs +0 -5929
  102. package/dist/TableView-DzZYf34i.js +0 -4
  103. package/dist/agenda-DMT75Qfo.mjs +0 -1133
  104. package/dist/agenda-DxD4RMsy.js +0 -1
  105. package/dist/availability-B1D4Fyzi.mjs +0 -629
  106. package/dist/availability-DxrUcYbW.js +0 -1
  107. package/dist/index-BbqRTXuU.js +0 -35
  108. package/dist/index-D4GsbUId.mjs +0 -1091
  109. package/dist/interpolation-BBwG_ON6.mjs +0 -65
  110. package/dist/interpolation-CsOrww73.js +0 -1
  111. package/dist/orders-BRfXlWgV.mjs +0 -397
  112. package/dist/orders-CrCz1WTR.js +0 -1
  113. package/dist/regular-slots-Cc1jmKuC.mjs +0 -222
  114. package/dist/regular-slots-DBs1XVeN.js +0 -1
  115. package/dist/src/appointments/pages/edit/regular-slots.vue.d.ts +0 -2
  116. package/dist/utils-BVKy9S2J.mjs +0 -29
  117. package/dist/utils-D6CaKJbp.js +0 -2
@@ -1,65 +0,0 @@
1
- function y(n, i) {
2
- if (!n) return "";
3
- const r = i?.reduce((t, s) => (t[s.name] = s.value, t), {}) ?? {};
4
- return c(n, l(r));
5
- }
6
- function c(n, i, r = "text") {
7
- const t = n.match(/^\s*\{\{\s*([\s\S]+?)\s*\}\}\s*$/);
8
- return t && !t[1].includes("{{") && !t[1].includes("}}") ? o(t[1].trim(), i) : n.replace(/\{\{\s*([\s\S]+?)\s*\}\}/g, (s, u) => {
9
- const e = o(String(u).trim(), i);
10
- if (r === "js") {
11
- if (e == null) return "null";
12
- if (typeof e == "string") return JSON.stringify(e);
13
- if (typeof e == "number" || typeof e == "boolean") return String(e);
14
- try {
15
- return JSON.stringify(e);
16
- } catch {
17
- return "null";
18
- }
19
- }
20
- if (e == null) return "";
21
- if (typeof e == "string") return e;
22
- if (typeof e == "number" || typeof e == "boolean") return String(e);
23
- try {
24
- return JSON.stringify(e);
25
- } catch {
26
- return String(e);
27
- }
28
- });
29
- }
30
- function o(n, i) {
31
- if (!n) return "";
32
- const r = a(n), t = { ...i };
33
- for (const e of r)
34
- e in t || (t[e] = void 0);
35
- const s = Object.keys(t), u = Object.values(t);
36
- try {
37
- return new Function(...s, `'use strict'; return (${n})`)(...u);
38
- } catch (e) {
39
- console.warn(`Interpolation failed for expression: "${n}"`, e);
40
- return;
41
- }
42
- }
43
- function f(n) {
44
- return /^[$A-Z_][0-9A-Z_$]*$/i.test(n);
45
- }
46
- function l(n) {
47
- const i = ["__proto__", "constructor", "prototype"], r = (t) => {
48
- if (Array.isArray(t)) return t.map(r);
49
- if (t && typeof t == "object") {
50
- const s = {};
51
- for (const u in t)
52
- !i.includes(u) && f(u) && (s[u] = r(t[u]));
53
- return s;
54
- }
55
- return t;
56
- };
57
- return r(n);
58
- }
59
- function a(n) {
60
- const i = n.match(/\b[a-zA-Z_][a-zA-Z0-9_]*\b/g) || [], r = /* @__PURE__ */ new Set(["true", "false", "null", "undefined", "return", "if", "else", "try", "catch", "typeof"]);
61
- return [...new Set(i.filter((t) => !r.has(t)))];
62
- }
63
- export {
64
- y as i
65
- };
@@ -1 +0,0 @@
1
- "use strict";function c(n,i){if(!n)return"";const r=i?.reduce((t,s)=>(t[s.name]=s.value,t),{})??{};return f(n,a(r))}function f(n,i,r="text"){const t=n.match(/^\s*\{\{\s*([\s\S]+?)\s*\}\}\s*$/);return t&&!t[1].includes("{{")&&!t[1].includes("}}")?o(t[1].trim(),i):n.replace(/\{\{\s*([\s\S]+?)\s*\}\}/g,(s,u)=>{const e=o(String(u).trim(),i);if(r==="js"){if(e==null)return"null";if(typeof e=="string")return JSON.stringify(e);if(typeof e=="number"||typeof e=="boolean")return String(e);try{return JSON.stringify(e)}catch{return"null"}}if(e==null)return"";if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean")return String(e);try{return JSON.stringify(e)}catch{return String(e)}})}function o(n,i){if(!n)return"";const r=y(n),t={...i};for(const e of r)e in t||(t[e]=void 0);const s=Object.keys(t),u=Object.values(t);try{return new Function(...s,`'use strict'; return (${n})`)(...u)}catch(e){console.warn(`Interpolation failed for expression: "${n}"`,e);return}}function l(n){return/^[$A-Z_][0-9A-Z_$]*$/i.test(n)}function a(n){const i=["__proto__","constructor","prototype"],r=t=>{if(Array.isArray(t))return t.map(r);if(t&&typeof t=="object"){const s={};for(const u in t)!i.includes(u)&&l(u)&&(s[u]=r(t[u]));return s}return t};return r(n)}function y(n){const i=n.match(/\b[a-zA-Z_][a-zA-Z0-9_]*\b/g)||[],r=new Set(["true","false","null","undefined","return","if","else","try","catch","typeof"]);return[...new Set(i.filter(t=>!r.has(t)))]}exports.interpolateTemplateFromVariableContext=c;
@@ -1,397 +0,0 @@
1
- import { defineComponent as te, ref as w, computed as b, provide as se, onMounted as oe, watch as ae, resolveComponent as x, openBlock as c, createElementBlock as m, Fragment as j, createVNode as r, withCtx as f, createElementVNode as s, unref as o, createTextVNode as C, createBlock as L, toDisplayString as d, createCommentVNode as I, normalizeClass as ne, isRef as re, renderList as ie, normalizeStyle as le, nextTick as ce } from "vue";
2
- import { useRoute as de, useRouter as ue, useOverlayParams as me, useModuleRoute as pe, useModule as fe, useFirebaseIntegration as ge } from "@oneclick.dev/cms-kit";
3
- import { ShoppingBag as V, Users as E, ChevronLeft as ve, ChevronRight as _e, RefreshCw as xe, Search as he, X as ye, Calendar as De, Clock as we } from "lucide-vue-next";
4
- import { F as ke, _ as be } from "./ReservationDetailDialog.vue_vue_type_script_setup_true_lang-CYXkhhdp.mjs";
5
- import { _ as Ce } from "./EditLayout.vue_vue_type_script_setup_true_lang-DXa-Xxue.mjs";
6
- const Ie = { class: "space-y-6" }, Se = { class: "flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4" }, Pe = { class: "text-2xl font-semibold tracking-tight flex items-center gap-2" }, Oe = { class: "flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4" }, Te = { class: "flex items-center gap-1" }, ze = { class: "flex items-center gap-1" }, Ne = { class: "flex items-center gap-2" }, Ae = { class: "flex items-center gap-1" }, Re = { class: "text-sm text-muted-foreground mt-2" }, Be = { class: "relative mb-4" }, Fe = {
7
- key: 0,
8
- class: "mb-3 text-sm text-muted-foreground"
9
- }, Ue = {
10
- key: 1,
11
- class: "flex items-center justify-center py-8"
12
- }, je = {
13
- key: 2,
14
- class: "text-center py-8 text-muted-foreground"
15
- }, Le = {
16
- key: 3,
17
- class: "text-center py-8 text-muted-foreground"
18
- }, Ve = {
19
- key: 4,
20
- class: "space-y-2"
21
- }, Ee = ["onClick"], $e = { class: "flex items-start justify-between" }, He = { class: "flex-1" }, Me = { class: "font-medium" }, qe = { class: "text-sm text-muted-foreground" }, Ye = { class: "text-sm text-muted-foreground" }, Qe = { class: "flex items-center gap-4 flex-wrap mt-1" }, Xe = { class: "flex items-center gap-2 text-xs text-muted-foreground" }, Ge = { class: "flex items-center gap-2 text-xs text-muted-foreground" }, Je = {
22
- key: 0,
23
- class: "flex items-center gap-1 text-xs text-muted-foreground"
24
- }, Ke = { class: "flex items-center gap-2 mt-1 text-xs text-muted-foreground" }, We = { class: "text-right" }, Ze = {
25
- key: 0,
26
- 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"
27
- }, et = {
28
- key: 1,
29
- 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"
30
- }, tt = {
31
- key: 2,
32
- 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"
33
- }, st = {
34
- key: 3,
35
- 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"
36
- }, ot = {
37
- key: 4,
38
- 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"
39
- }, at = {
40
- key: 5,
41
- class: "text-sm font-medium mt-1"
42
- }, mt = /* @__PURE__ */ te({
43
- __name: "orders",
44
- setup(nt) {
45
- const B = de();
46
- ue();
47
- const F = me(), { params: U } = pe(), { config: S } = fe(), z = ge(S.project), g = w([]), P = w([]), k = w(!0), _ = w(""), N = w(null), h = /* @__PURE__ */ new Date(), p = w(/* @__PURE__ */ new Date()), $ = b(() => ({
48
- date: X(p.value),
49
- resource: null
50
- }));
51
- se("event", $);
52
- const H = b(() => {
53
- const e = new Date(h);
54
- e.setDate(h.getDate() - 1);
55
- const t = new Date(h);
56
- return t.setDate(h.getDate() + 1), p.value.toDateString() === h.toDateString() ? "Today" : p.value.toDateString() === e.toDateString() ? "Yesterday" : p.value.toDateString() === t.toDateString() ? "Tomorrow" : p.value.toLocaleDateString("en-US", {
57
- weekday: "long",
58
- month: "long",
59
- day: "numeric",
60
- year: "numeric"
61
- });
62
- }), M = () => {
63
- const e = new Date(p.value);
64
- e.setDate(e.getDate() - 1), p.value = e;
65
- }, q = () => {
66
- const e = new Date(p.value);
67
- e.setDate(e.getDate() + 1), e <= h && (p.value = e);
68
- }, Y = b(() => {
69
- const e = new Date(p.value);
70
- return e.setDate(e.getDate() + 1), e <= h;
71
- }), Q = () => {
72
- p.value = /* @__PURE__ */ new Date();
73
- }, X = (e) => {
74
- const t = e.getFullYear(), n = String(e.getMonth() + 1).padStart(2, "0"), i = String(e.getDate()).padStart(2, "0");
75
- return `${t}-${n}-${i}`;
76
- }, G = (e) => e ? new Date(e).toLocaleTimeString("en-US", {
77
- hour: "2-digit",
78
- minute: "2-digit",
79
- hour12: !1
80
- }) : "", J = (e) => e ? new Date(e).toLocaleDateString("en-US", {
81
- weekday: "short",
82
- month: "short",
83
- day: "numeric"
84
- }) : "", A = b(() => _.value.trim() ? new ke(g.value, {
85
- keys: [
86
- "customerInfo.firstName",
87
- "customerInfo.lastName",
88
- "customerInfo.email",
89
- "customerInfo.phone",
90
- "resourceName"
91
- ],
92
- threshold: 0.3,
93
- ignoreLocation: !0
94
- }).search(_.value).map((t) => t.item) : g.value), O = b(() => ({
95
- spots: g.value.reduce((e, t) => e + (t.spots || 0), 0),
96
- bookings: g.value.length,
97
- revenue: g.value.reduce((e, t) => e + (t.reservationPrice || 0), 0)
98
- })), K = () => {
99
- _.value = "";
100
- }, W = async () => {
101
- try {
102
- const e = U.value.id, t = await z.get(S.agendaCollection, e);
103
- P.value = t?.resources?.filter((n) => n.isActive) || [];
104
- } catch (e) {
105
- console.error("Error loading resources:", e), P.value = [];
106
- }
107
- }, y = async () => {
108
- k.value = !0, g.value = [];
109
- try {
110
- const e = U.value.id, t = new Date(p.value);
111
- t.setHours(0, 0, 0, 0);
112
- const n = new Date(p.value);
113
- n.setHours(23, 59, 59, 999);
114
- const i = await z.find(S.reservationsCollection, {
115
- filters: [
116
- { field: "agendaId", operator: "==", value: e },
117
- { field: "createdAt", operator: ">=", value: t.toISOString() },
118
- { field: "createdAt", operator: "<=", value: n.toISOString() }
119
- ]
120
- });
121
- let v = [];
122
- i.forEach((l) => {
123
- (l.reservations || []).forEach((u) => {
124
- const T = P.value.find((R) => R.id === u.resourceId);
125
- v.push({
126
- customerInfo: l.customerInfo,
127
- amountDue: l.amountDue,
128
- amountPaid: l.amountPaid,
129
- status: l.status,
130
- reservationStatus: u.status,
131
- subtotal: l.subtotal,
132
- total: l.total,
133
- discount: l.discount,
134
- id: l.id,
135
- res_id: u.id,
136
- resourceId: u.resourceId,
137
- spots: u.spots,
138
- date: u.date,
139
- createdAt: l.createdAt,
140
- startTime: u.timeslot?.startTime,
141
- endTime: u.timeslot?.endTime,
142
- reservationPrice: u.totalPrice,
143
- reservationBasePrice: u.basePrice,
144
- reservationAddOnsPrice: u.addOnsPrice,
145
- pricingOptionId: u.pricingOptionId,
146
- pricingOption: u.pricingOption,
147
- resourceName: T?.name || "Unknown",
148
- resourceColor: T?.color
149
- });
150
- });
151
- }), g.value = v.sort((l, D) => (D.createdAt || "").localeCompare(l.createdAt || ""));
152
- } catch (e) {
153
- console.error("Error loading orders:", e), g.value = [];
154
- } finally {
155
- k.value = !1;
156
- }
157
- }, Z = async () => {
158
- await W(), await y();
159
- }, ee = async (e, t) => {
160
- const n = await z.get(S.reservationsCollection, e), i = n?.reservations?.find((v) => v.id === t);
161
- if (i) {
162
- const v = P.value.find((D) => D.id === i.resourceId), l = {
163
- customerInfo: n.customerInfo,
164
- amountDue: n.amountDue,
165
- amountPaid: n.amountPaid,
166
- status: n.status,
167
- reservationStatus: i.status,
168
- subtotal: n.subtotal,
169
- total: n.total,
170
- discount: n.discount,
171
- id: n.id,
172
- res_id: i.id,
173
- resourceId: i.resourceId,
174
- spots: i.spots,
175
- date: i.date,
176
- createdAt: n.createdAt,
177
- startTime: i.timeslot?.startTime,
178
- endTime: i.timeslot?.endTime,
179
- reservationPrice: i.totalPrice,
180
- reservationBasePrice: i.basePrice,
181
- reservationAddOnsPrice: i.addOnsPrice,
182
- pricingOptionId: i.pricingOptionId,
183
- pricingOption: i.pricingOption,
184
- resourceName: v?.name || "Unknown",
185
- resourceColor: v?.color
186
- };
187
- await ce(), N.value?.openDialog(l);
188
- }
189
- };
190
- return Z(), oe(async () => {
191
- const e = F.value.orderId || B.query.orderId, t = F.value.reservationId || B.query.reservationId;
192
- if (e) {
193
- const n = new URL(window.location.href);
194
- n.searchParams.delete("orderId"), n.searchParams.delete("reservationId"), window.history.replaceState(window.history.state, "", n.toString()), await ee(e, t);
195
- }
196
- }), ae(p, () => {
197
- y();
198
- }), (e, t) => {
199
- const n = x("Badge"), i = x("CardTitle"), v = x("CardDescription"), l = x("Button"), D = x("CardHeader"), u = x("Input"), T = x("CardContent"), R = x("Card");
200
- return c(), m(j, null, [
201
- r(Ce, null, {
202
- default: f(() => [
203
- s("div", Ie, [
204
- s("div", Se, [
205
- s("div", null, [
206
- s("h1", Pe, [
207
- r(o(V), { class: "size-6" }),
208
- t[1] || (t[1] = C(" Orders ", -1))
209
- ]),
210
- t[2] || (t[2] = s("p", { class: "text-muted-foreground text-sm mt-1" }, " View orders by when they were placed ", -1))
211
- ])
212
- ]),
213
- r(R, null, {
214
- default: f(() => [
215
- r(D, null, {
216
- default: f(() => [
217
- s("div", Oe, [
218
- s("div", null, [
219
- r(i, { class: "flex items-center gap-2" }, {
220
- default: f(() => [
221
- t[3] || (t[3] = C(" Orders received ", -1)),
222
- o(O).bookings > 0 ? (c(), L(n, {
223
- key: 0,
224
- variant: "secondary"
225
- }, {
226
- default: f(() => [
227
- C(d(o(O).bookings), 1)
228
- ]),
229
- _: 1
230
- })) : I("", !0)
231
- ]),
232
- _: 1
233
- }),
234
- r(v, { class: "flex items-center gap-4 mt-1" }, {
235
- default: f(() => [
236
- s("span", Te, [
237
- r(o(E), { size: 14 }),
238
- C(" " + d(o(O).spots) + " spots ", 1)
239
- ]),
240
- s("span", ze, " €" + d(o(O).revenue.toFixed(2)) + " revenue ", 1)
241
- ]),
242
- _: 1
243
- })
244
- ]),
245
- s("div", Ne, [
246
- s("div", Ae, [
247
- r(l, {
248
- variant: "ghost",
249
- size: "icon",
250
- class: "size-8",
251
- onClick: M
252
- }, {
253
- default: f(() => [
254
- r(o(ve), { size: 16 })
255
- ]),
256
- _: 1
257
- }),
258
- r(l, {
259
- variant: "ghost",
260
- size: "sm",
261
- class: "h-8 px-3 text-xs",
262
- onClick: Q
263
- }, {
264
- default: f(() => [...t[4] || (t[4] = [
265
- C(" Today ", -1)
266
- ])]),
267
- _: 1
268
- }),
269
- r(l, {
270
- variant: "ghost",
271
- size: "icon",
272
- class: "size-8",
273
- onClick: q,
274
- disabled: !o(Y)
275
- }, {
276
- default: f(() => [
277
- r(o(_e), { size: 16 })
278
- ]),
279
- _: 1
280
- }, 8, ["disabled"])
281
- ]),
282
- r(l, {
283
- variant: "ghost",
284
- size: "icon",
285
- onClick: y,
286
- disabled: o(k)
287
- }, {
288
- default: f(() => [
289
- r(o(xe), {
290
- size: 16,
291
- class: ne({ "animate-spin": o(k) })
292
- }, null, 8, ["class"])
293
- ]),
294
- _: 1
295
- }, 8, ["disabled"])
296
- ])
297
- ]),
298
- s("div", Re, d(o(H)), 1)
299
- ]),
300
- _: 1
301
- }),
302
- r(T, null, {
303
- default: f(() => [
304
- s("div", Be, [
305
- r(o(he), {
306
- size: 16,
307
- class: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"
308
- }),
309
- r(u, {
310
- modelValue: o(_),
311
- "onUpdate:modelValue": t[0] || (t[0] = (a) => re(_) ? _.value = a : null),
312
- placeholder: "Search by name, email, or phone...",
313
- class: "pl-9 pr-9"
314
- }, null, 8, ["modelValue"]),
315
- o(_) ? (c(), L(l, {
316
- key: 0,
317
- variant: "ghost",
318
- size: "icon",
319
- class: "absolute right-1 top-1/2 -translate-y-1/2 h-7 w-7",
320
- onClick: K
321
- }, {
322
- default: f(() => [
323
- r(o(ye), { size: 14 })
324
- ]),
325
- _: 1
326
- })) : I("", !0)
327
- ]),
328
- o(_) ? (c(), m("div", Fe, " Showing " + d(o(A).length) + " of " + d(o(g).length) + " orders ", 1)) : I("", !0),
329
- o(k) ? (c(), m("div", Ue, [...t[5] || (t[5] = [
330
- s("div", { class: "animate-spin rounded-full h-8 w-8 border-b-2 border-primary" }, null, -1)
331
- ])])) : o(g).length === 0 ? (c(), m("div", je, [
332
- r(o(V), { class: "size-12 mx-auto mb-3 opacity-50" }),
333
- t[6] || (t[6] = s("p", null, "No orders received on this day", -1))
334
- ])) : o(A).length === 0 ? (c(), m("div", Le, " No orders match your search ")) : (c(), m("div", Ve, [
335
- (c(!0), m(j, null, ie(o(A), (a) => (c(), m("div", {
336
- key: a.res_id || a.id,
337
- class: "p-3 border rounded-lg hover:bg-muted/50 transition-colors cursor-pointer",
338
- onClick: (rt) => o(N)?.openDialog(a)
339
- }, [
340
- s("div", $e, [
341
- s("div", He, [
342
- s("div", Me, d(a.customerInfo?.firstName) + " " + d(a.customerInfo?.lastName || "Unknown Customer"), 1),
343
- s("div", qe, d(a.customerInfo?.email), 1),
344
- s("div", Ye, d(a.customerInfo?.phone), 1),
345
- s("div", Qe, [
346
- s("div", Xe, [
347
- r(o(De), { size: 12 }),
348
- s("span", null, d(J(a.date)) + " · " + d(a.startTime) + " - " + d(a.endTime), 1)
349
- ]),
350
- s("div", Ge, [
351
- r(o(E), { size: 12 }),
352
- s("span", null, d(a.spots) + " spots", 1)
353
- ]),
354
- a.resourceName ? (c(), m("div", Je, [
355
- s("div", {
356
- class: "w-3 h-3 rounded-full",
357
- style: le({ backgroundColor: a.resourceColor || "#6b7280" })
358
- }, null, 4),
359
- s("span", null, d(a.resourceName), 1)
360
- ])) : I("", !0)
361
- ]),
362
- s("div", Ke, [
363
- r(o(we), { size: 12 }),
364
- s("span", null, "Ordered at " + d(G(a.createdAt)), 1)
365
- ])
366
- ]),
367
- s("div", We, [
368
- a.reservationStatus === "needs_approval" ? (c(), m("span", Ze, "Needs Approval")) : a.reservationStatus === "approved" ? (c(), m("span", et, "Approved")) : a.reservationStatus === "rejected" ? (c(), m("span", tt, "Rejected")) : a.reservationStatus === "cancelled" ? (c(), m("span", st, "Cancelled")) : (c(), m("span", ot, "Pending")),
369
- a.reservationPrice || a.reservationPrice === 0 ? (c(), m("div", at, " €" + d(a.reservationPrice.toFixed(2)), 1)) : I("", !0)
370
- ])
371
- ])
372
- ], 8, Ee))), 128))
373
- ]))
374
- ]),
375
- _: 1
376
- })
377
- ]),
378
- _: 1
379
- })
380
- ])
381
- ]),
382
- _: 1
383
- }),
384
- r(be, {
385
- ref_key: "reservationDetailDialog",
386
- ref: N,
387
- onCancelled: y,
388
- onConfirmed: y,
389
- onRejected: y
390
- }, null, 512)
391
- ], 64);
392
- };
393
- }
394
- });
395
- export {
396
- mt as default
397
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),v=require("@oneclick.dev/cms-kit"),i=require("lucide-vue-next"),E=require("./ReservationDetailDialog.vue_vue_type_script_setup_true_lang-COfCOMsz.js"),M=require("./EditLayout.vue_vue_type_script_setup_true_lang-ozYrxb2g.js"),H={class:"space-y-6"},$={class:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4"},Y={class:"text-2xl font-semibold tracking-tight flex items-center gap-2"},K={class:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4"},Q={class:"flex items-center gap-1"},X={class:"flex items-center gap-1"},G={class:"flex items-center gap-2"},J={class:"flex items-center gap-1"},W={class:"text-sm text-muted-foreground mt-2"},Z={class:"relative mb-4"},ee={key:0,class:"mb-3 text-sm text-muted-foreground"},te={key:1,class:"flex items-center justify-center py-8"},oe={key:2,class:"text-center py-8 text-muted-foreground"},ne={key:3,class:"text-center py-8 text-muted-foreground"},se={key:4,class:"space-y-2"},re=["onClick"],ae={class:"flex items-start justify-between"},le={class:"flex-1"},ce={class:"font-medium"},ie={class:"text-sm text-muted-foreground"},de={class:"text-sm text-muted-foreground"},ue={class:"flex items-center gap-4 flex-wrap mt-1"},me={class:"flex items-center gap-2 text-xs text-muted-foreground"},pe={class:"flex items-center gap-2 text-xs text-muted-foreground"},fe={key:0,class:"flex items-center gap-1 text-xs text-muted-foreground"},ge={class:"flex items-center gap-2 mt-1 text-xs text-muted-foreground"},ve={class:"text-right"},_e={key:0,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"},xe={key:1,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"},ye={key:2,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"},he={key:3,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"},ke={key:4,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"},Ne={key:5,class:"text-sm font-medium mt-1"},De=e.defineComponent({__name:"orders",setup(we){const C=v.useRoute();v.useRouter();const S=v.useOverlayParams(),{params:b}=v.useModuleRoute(),{config:x}=v.useModule(),N=v.useFirebaseIntegration(x.project),d=e.ref([]),y=e.ref([]),_=e.ref(!0),m=e.ref(""),D=e.ref(null),p=new Date,c=e.ref(new Date),B=e.computed(()=>({date:A(c.value),resource:null}));e.provide("event",B);const I=e.computed(()=>{const t=new Date(p);t.setDate(p.getDate()-1);const o=new Date(p);return o.setDate(p.getDate()+1),c.value.toDateString()===p.toDateString()?"Today":c.value.toDateString()===t.toDateString()?"Yesterday":c.value.toDateString()===o.toDateString()?"Tomorrow":c.value.toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric",year:"numeric"})}),P=()=>{const t=new Date(c.value);t.setDate(t.getDate()-1),c.value=t},T=()=>{const t=new Date(c.value);t.setDate(t.getDate()+1),t<=p&&(c.value=t)},O=e.computed(()=>{const t=new Date(c.value);return t.setDate(t.getDate()+1),t<=p}),z=()=>{c.value=new Date},A=t=>{const o=t.getFullYear(),s=String(t.getMonth()+1).padStart(2,"0"),r=String(t.getDate()).padStart(2,"0");return`${o}-${s}-${r}`},R=t=>t?new Date(t).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!1}):"",U=t=>t?new Date(t).toLocaleDateString("en-US",{weekday:"short",month:"short",day:"numeric"}):"",w=e.computed(()=>m.value.trim()?new E.Fuse(d.value,{keys:["customerInfo.firstName","customerInfo.lastName","customerInfo.email","customerInfo.phone","resourceName"],threshold:.3,ignoreLocation:!0}).search(m.value).map(o=>o.item):d.value),h=e.computed(()=>({spots:d.value.reduce((t,o)=>t+(o.spots||0),0),bookings:d.value.length,revenue:d.value.reduce((t,o)=>t+(o.reservationPrice||0),0)})),j=()=>{m.value=""},F=async()=>{try{const t=b.value.id,o=await N.get(x.agendaCollection,t);y.value=o?.resources?.filter(s=>s.isActive)||[]}catch(t){console.error("Error loading resources:",t),y.value=[]}},f=async()=>{_.value=!0,d.value=[];try{const t=b.value.id,o=new Date(c.value);o.setHours(0,0,0,0);const s=new Date(c.value);s.setHours(23,59,59,999);const r=await N.find(x.reservationsCollection,{filters:[{field:"agendaId",operator:"==",value:t},{field:"createdAt",operator:">=",value:o.toISOString()},{field:"createdAt",operator:"<=",value:s.toISOString()}]});let u=[];r.forEach(a=>{(a.reservations||[]).forEach(l=>{const k=y.value.find(V=>V.id===l.resourceId);u.push({customerInfo:a.customerInfo,amountDue:a.amountDue,amountPaid:a.amountPaid,status:a.status,reservationStatus:l.status,subtotal:a.subtotal,total:a.total,discount:a.discount,id:a.id,res_id:l.id,resourceId:l.resourceId,spots:l.spots,date:l.date,createdAt:a.createdAt,startTime:l.timeslot?.startTime,endTime:l.timeslot?.endTime,reservationPrice:l.totalPrice,reservationBasePrice:l.basePrice,reservationAddOnsPrice:l.addOnsPrice,pricingOptionId:l.pricingOptionId,pricingOption:l.pricingOption,resourceName:k?.name||"Unknown",resourceColor:k?.color})})}),d.value=u.sort((a,g)=>(g.createdAt||"").localeCompare(a.createdAt||""))}catch(t){console.error("Error loading orders:",t),d.value=[]}finally{_.value=!1}},L=async()=>{await F(),await f()},q=async(t,o)=>{const s=await N.get(x.reservationsCollection,t),r=s?.reservations?.find(u=>u.id===o);if(r){const u=y.value.find(g=>g.id===r.resourceId),a={customerInfo:s.customerInfo,amountDue:s.amountDue,amountPaid:s.amountPaid,status:s.status,reservationStatus:r.status,subtotal:s.subtotal,total:s.total,discount:s.discount,id:s.id,res_id:r.id,resourceId:r.resourceId,spots:r.spots,date:r.date,createdAt:s.createdAt,startTime:r.timeslot?.startTime,endTime:r.timeslot?.endTime,reservationPrice:r.totalPrice,reservationBasePrice:r.basePrice,reservationAddOnsPrice:r.addOnsPrice,pricingOptionId:r.pricingOptionId,pricingOption:r.pricingOption,resourceName:u?.name||"Unknown",resourceColor:u?.color};await e.nextTick(),D.value?.openDialog(a)}};return L(),e.onMounted(async()=>{const t=S.value.orderId||C.query.orderId,o=S.value.reservationId||C.query.reservationId;if(t){const s=new URL(window.location.href);s.searchParams.delete("orderId"),s.searchParams.delete("reservationId"),window.history.replaceState(window.history.state,"",s.toString()),await q(t,o)}}),e.watch(c,()=>{f()}),(t,o)=>{const s=e.resolveComponent("Badge"),r=e.resolveComponent("CardTitle"),u=e.resolveComponent("CardDescription"),a=e.resolveComponent("Button"),g=e.resolveComponent("CardHeader"),l=e.resolveComponent("Input"),k=e.resolveComponent("CardContent"),V=e.resolveComponent("Card");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(M._sfc_main,null,{default:e.withCtx(()=>[e.createElementVNode("div",H,[e.createElementVNode("div",$,[e.createElementVNode("div",null,[e.createElementVNode("h1",Y,[e.createVNode(e.unref(i.ShoppingBag),{class:"size-6"}),o[1]||(o[1]=e.createTextVNode(" Orders ",-1))]),o[2]||(o[2]=e.createElementVNode("p",{class:"text-muted-foreground text-sm mt-1"}," View orders by when they were placed ",-1))])]),e.createVNode(V,null,{default:e.withCtx(()=>[e.createVNode(g,null,{default:e.withCtx(()=>[e.createElementVNode("div",K,[e.createElementVNode("div",null,[e.createVNode(r,{class:"flex items-center gap-2"},{default:e.withCtx(()=>[o[3]||(o[3]=e.createTextVNode(" Orders received ",-1)),e.unref(h).bookings>0?(e.openBlock(),e.createBlock(s,{key:0,variant:"secondary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(h).bookings),1)]),_:1})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(u,{class:"flex items-center gap-4 mt-1"},{default:e.withCtx(()=>[e.createElementVNode("span",Q,[e.createVNode(e.unref(i.Users),{size:14}),e.createTextVNode(" "+e.toDisplayString(e.unref(h).spots)+" spots ",1)]),e.createElementVNode("span",X," €"+e.toDisplayString(e.unref(h).revenue.toFixed(2))+" revenue ",1)]),_:1})]),e.createElementVNode("div",G,[e.createElementVNode("div",J,[e.createVNode(a,{variant:"ghost",size:"icon",class:"size-8",onClick:P},{default:e.withCtx(()=>[e.createVNode(e.unref(i.ChevronLeft),{size:16})]),_:1}),e.createVNode(a,{variant:"ghost",size:"sm",class:"h-8 px-3 text-xs",onClick:z},{default:e.withCtx(()=>[...o[4]||(o[4]=[e.createTextVNode(" Today ",-1)])]),_:1}),e.createVNode(a,{variant:"ghost",size:"icon",class:"size-8",onClick:T,disabled:!e.unref(O)},{default:e.withCtx(()=>[e.createVNode(e.unref(i.ChevronRight),{size:16})]),_:1},8,["disabled"])]),e.createVNode(a,{variant:"ghost",size:"icon",onClick:f,disabled:e.unref(_)},{default:e.withCtx(()=>[e.createVNode(e.unref(i.RefreshCw),{size:16,class:e.normalizeClass({"animate-spin":e.unref(_)})},null,8,["class"])]),_:1},8,["disabled"])])]),e.createElementVNode("div",W,e.toDisplayString(e.unref(I)),1)]),_:1}),e.createVNode(k,null,{default:e.withCtx(()=>[e.createElementVNode("div",Z,[e.createVNode(e.unref(i.Search),{size:16,class:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"}),e.createVNode(l,{modelValue:e.unref(m),"onUpdate:modelValue":o[0]||(o[0]=n=>e.isRef(m)?m.value=n:null),placeholder:"Search by name, email, or phone...",class:"pl-9 pr-9"},null,8,["modelValue"]),e.unref(m)?(e.openBlock(),e.createBlock(a,{key:0,variant:"ghost",size:"icon",class:"absolute right-1 top-1/2 -translate-y-1/2 h-7 w-7",onClick:j},{default:e.withCtx(()=>[e.createVNode(e.unref(i.X),{size:14})]),_:1})):e.createCommentVNode("",!0)]),e.unref(m)?(e.openBlock(),e.createElementBlock("div",ee," Showing "+e.toDisplayString(e.unref(w).length)+" of "+e.toDisplayString(e.unref(d).length)+" orders ",1)):e.createCommentVNode("",!0),e.unref(_)?(e.openBlock(),e.createElementBlock("div",te,[...o[5]||(o[5]=[e.createElementVNode("div",{class:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"},null,-1)])])):e.unref(d).length===0?(e.openBlock(),e.createElementBlock("div",oe,[e.createVNode(e.unref(i.ShoppingBag),{class:"size-12 mx-auto mb-3 opacity-50"}),o[6]||(o[6]=e.createElementVNode("p",null,"No orders received on this day",-1))])):e.unref(w).length===0?(e.openBlock(),e.createElementBlock("div",ne," No orders match your search ")):(e.openBlock(),e.createElementBlock("div",se,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(w),n=>(e.openBlock(),e.createElementBlock("div",{key:n.res_id||n.id,class:"p-3 border rounded-lg hover:bg-muted/50 transition-colors cursor-pointer",onClick:Ve=>e.unref(D)?.openDialog(n)},[e.createElementVNode("div",ae,[e.createElementVNode("div",le,[e.createElementVNode("div",ce,e.toDisplayString(n.customerInfo?.firstName)+" "+e.toDisplayString(n.customerInfo?.lastName||"Unknown Customer"),1),e.createElementVNode("div",ie,e.toDisplayString(n.customerInfo?.email),1),e.createElementVNode("div",de,e.toDisplayString(n.customerInfo?.phone),1),e.createElementVNode("div",ue,[e.createElementVNode("div",me,[e.createVNode(e.unref(i.Calendar),{size:12}),e.createElementVNode("span",null,e.toDisplayString(U(n.date))+" · "+e.toDisplayString(n.startTime)+" - "+e.toDisplayString(n.endTime),1)]),e.createElementVNode("div",pe,[e.createVNode(e.unref(i.Users),{size:12}),e.createElementVNode("span",null,e.toDisplayString(n.spots)+" spots",1)]),n.resourceName?(e.openBlock(),e.createElementBlock("div",fe,[e.createElementVNode("div",{class:"w-3 h-3 rounded-full",style:e.normalizeStyle({backgroundColor:n.resourceColor||"#6b7280"})},null,4),e.createElementVNode("span",null,e.toDisplayString(n.resourceName),1)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",ge,[e.createVNode(e.unref(i.Clock),{size:12}),e.createElementVNode("span",null,"Ordered at "+e.toDisplayString(R(n.createdAt)),1)])]),e.createElementVNode("div",ve,[n.reservationStatus==="needs_approval"?(e.openBlock(),e.createElementBlock("span",_e,"Needs Approval")):n.reservationStatus==="approved"?(e.openBlock(),e.createElementBlock("span",xe,"Approved")):n.reservationStatus==="rejected"?(e.openBlock(),e.createElementBlock("span",ye,"Rejected")):n.reservationStatus==="cancelled"?(e.openBlock(),e.createElementBlock("span",he,"Cancelled")):(e.openBlock(),e.createElementBlock("span",ke,"Pending")),n.reservationPrice||n.reservationPrice===0?(e.openBlock(),e.createElementBlock("div",Ne," €"+e.toDisplayString(n.reservationPrice.toFixed(2)),1)):e.createCommentVNode("",!0)])])],8,re))),128))]))]),_:1})]),_:1})])]),_:1}),e.createVNode(E._sfc_main,{ref_key:"reservationDetailDialog",ref:D,onCancelled:f,onConfirmed:f,onRejected:f},null,512)],64)}}});exports.default=De;