@oneclick.dev/cms-core-modules 0.0.123 → 0.0.125

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 (223) hide show
  1. package/dist/AppointmentListTable-CWzbwqR-.js +1 -0
  2. package/dist/AppointmentListTable-DoZuBstk.mjs +270 -0
  3. package/dist/ContentEditor-BlNbqkAz.js +324 -0
  4. package/dist/{ContentEditor-MDGolnIP.mjs → ContentEditor-D754iLJS.mjs} +7985 -26820
  5. package/dist/{Detail-Dk8E6_uF.mjs → Detail-BOxWQ1QQ.mjs} +15 -14
  6. package/dist/{Detail-Cn9Bk0u0.mjs → Detail-BfKW0uZE.mjs} +26 -25
  7. package/dist/Detail-DFVu2F38.mjs +11 -0
  8. package/dist/Detail-DJea_fCd.js +1 -0
  9. package/dist/Detail-DPJacXfm.js +1 -0
  10. package/dist/Detail-DSLZ7_bM.js +1 -0
  11. package/dist/Detail-DUGThL9Y.js +1 -0
  12. package/dist/{Detail-B_scnidb.mjs → Detail-D_LlEeHu.mjs} +35 -34
  13. package/dist/Editor-D4evcdhv.mjs +768 -0
  14. package/dist/Editor-gLLtuJbY.js +1 -0
  15. package/dist/FormStatusBadge.vue_vue_type_script_setup_true_lang-BjKpsqT9.js +1 -0
  16. package/dist/FormStatusBadge.vue_vue_type_script_setup_true_lang-D5v5AhLe.mjs +76 -0
  17. package/dist/Knowledge-B66vxz--.js +1 -0
  18. package/dist/Knowledge-BnMTTuJ7.mjs +742 -0
  19. package/dist/Overview-0hFXiuYo.js +1 -0
  20. package/dist/Overview-BE4uYPx0.mjs +745 -0
  21. package/dist/Overview-BTx5LF4J.js +1 -0
  22. package/dist/Overview-CCu2PHai.mjs +289 -0
  23. package/dist/Overview-CQRpFhbJ.mjs +286 -0
  24. package/dist/Overview-CTs7sX4d.js +1 -0
  25. package/dist/Overview-Cj89XXKN.js +1 -0
  26. package/dist/Overview-D2u-leeO.js +1 -0
  27. package/dist/Overview-D_2wozCG.mjs +1733 -0
  28. package/dist/Overview-D_c18mbR.mjs +248 -0
  29. package/dist/Overview-Dffo-zH4.mjs +11 -0
  30. package/dist/Overview-g4Rcj245.js +1 -0
  31. package/dist/{TableCalculationWidget-CrqcLGfU.mjs → TableCalculationWidget-B_LFoOYm.mjs} +3 -3
  32. package/dist/{TableCalculationWidget-CkQPrVUd.js → TableCalculationWidget-CahOIcbk.js} +1 -1
  33. package/dist/TableDataWidget-BwqWFH4A.js +1 -0
  34. package/dist/TableDataWidget-RsVxcDsL.mjs +112 -0
  35. package/dist/TableOverviewCard-BPWCqo56.js +1 -0
  36. package/dist/{TableOverviewCard-Ci0d4o4w.mjs → TableOverviewCard-D667DDag.mjs} +113 -127
  37. package/dist/TableResultView.vue_vue_type_script_setup_true_lang-C3XiOXgb.js +1 -0
  38. package/dist/TableResultView.vue_vue_type_script_setup_true_lang-sp0TLio0.mjs +547 -0
  39. package/dist/{TableRowActionCard-BhdnnPaq.mjs → TableRowActionCard-BPYJ-Kjy.mjs} +95 -101
  40. package/dist/TableRowActionCard-Bnqj1YIe.js +1 -0
  41. package/dist/TableView-CwhZ9YN2.js +4 -0
  42. package/dist/TableView-DX9PKS8N.mjs +9673 -0
  43. package/dist/TemplateBuilder.vue_vue_type_script_setup_true_lang-BgDdzbLe.js +1 -0
  44. package/dist/TemplateBuilder.vue_vue_type_script_setup_true_lang-D85V4nrQ.mjs +2886 -0
  45. package/dist/Test-CzmOmi53.mjs +447 -0
  46. package/dist/Test-USDtNFY1.js +1 -0
  47. package/dist/UserDetail-DpUL3mhk.mjs +1483 -0
  48. package/dist/UserDetail-KRIfxaYd.js +1 -0
  49. package/dist/cms-core-modules.css +1 -1
  50. package/dist/dateRangePresets-CaPVagHY.mjs +453 -0
  51. package/dist/dateRangePresets-gxQCiZ6c.js +1 -0
  52. package/dist/index-6hZ6MYY6.js +1 -0
  53. package/dist/index-BVmmicu3.mjs +14 -0
  54. package/dist/index-CQuN5rKx.js +1 -0
  55. package/dist/index-ChHD_1Cf.js +144 -0
  56. package/dist/index-CnDGeInm.js +1 -0
  57. package/dist/index-CqDTc5Ig.mjs +20 -0
  58. package/dist/index-CvV4nVWI.js +1 -0
  59. package/dist/index-CyvvAdt4.js +1 -0
  60. package/dist/index-DH2z0W_w.mjs +19012 -0
  61. package/dist/index-DIRD7t5_.mjs +20 -0
  62. package/dist/index-DZKzj48V.mjs +17 -0
  63. package/dist/index-OJuBYR60.mjs +57 -0
  64. package/dist/index.cjs.js +1 -1
  65. package/dist/index.mjs +480 -103
  66. package/dist/orders-C_sz8J9b.js +1 -0
  67. package/dist/{orders-BfTLIm7U.mjs → orders-Cgdggzvx.mjs} +84 -84
  68. package/dist/server-handlers.cjs.js +1 -1
  69. package/dist/server-handlers.mjs +2696 -605
  70. package/dist/src/appointments/chat-components/AppointmentListTable.vue.d.ts +3 -0
  71. package/dist/src/appointments/index.d.ts +93 -3
  72. package/dist/src/appointments/reservation-summary.d.ts +48 -0
  73. package/dist/src/appointments/server.d.ts +1 -0
  74. package/dist/src/appointments/tools.d.ts +93 -3
  75. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Container.d.ts +1 -1
  76. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Row.d.ts +7 -0
  77. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Stack.d.ts +7 -0
  78. package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/resizeHistory.d.ts +9 -0
  79. package/dist/src/contentManager/components/content-editor/tiptap-menus/ElementEditorMenu.vue.d.ts +3 -1
  80. package/dist/src/filezone/config.d.ts +31 -0
  81. package/dist/src/filezone/index.d.ts +43 -0
  82. package/dist/src/filezone/index.vue.d.ts +2 -0
  83. package/dist/src/filezone/metadata.d.ts +2 -0
  84. package/dist/src/filezone/pages/Overview.vue.d.ts +4 -0
  85. package/dist/src/filezone/permissions.d.ts +5 -0
  86. package/dist/src/filezone/routes.d.ts +5 -0
  87. package/dist/src/filezone/server.d.ts +36 -0
  88. package/dist/src/firebaseAuthManager/components/DeleteUserDialog.vue.d.ts +25 -0
  89. package/dist/src/firebaseAuthManager/components/ReasonActionDialog.vue.d.ts +23 -0
  90. package/dist/src/firebaseAuthManager/components/UserStatusBadge.vue.d.ts +5 -0
  91. package/dist/src/firebaseAuthManager/config.d.ts +151 -0
  92. package/dist/src/firebaseAuthManager/index.d.ts +163 -0
  93. package/dist/src/firebaseAuthManager/index.vue.d.ts +14 -0
  94. package/dist/src/firebaseAuthManager/metadata.d.ts +2 -0
  95. package/dist/src/firebaseAuthManager/pages/Overview.vue.d.ts +2 -0
  96. package/dist/src/firebaseAuthManager/pages/UserDetail.vue.d.ts +2 -0
  97. package/dist/src/firebaseAuthManager/permissions.d.ts +5 -0
  98. package/dist/src/firebaseAuthManager/routes.d.ts +5 -0
  99. package/dist/src/firebaseAuthManager/server.d.ts +162 -0
  100. package/dist/src/firebaseAuthManager/types.d.ts +84 -0
  101. package/dist/src/formBuilder/components/FormPreviewDialog.vue.d.ts +12 -0
  102. package/dist/src/formBuilder/components/FormStatusBadge.vue.d.ts +9 -0
  103. package/dist/src/formBuilder/config.d.ts +31 -0
  104. package/dist/src/formBuilder/index.d.ts +44 -0
  105. package/dist/src/formBuilder/index.vue.d.ts +14 -0
  106. package/dist/src/formBuilder/lib/forms.d.ts +11 -0
  107. package/dist/src/formBuilder/metadata.d.ts +2 -0
  108. package/dist/src/formBuilder/pages/Editor.vue.d.ts +2 -0
  109. package/dist/src/formBuilder/pages/Overview.vue.d.ts +2 -0
  110. package/dist/src/formBuilder/permissions.d.ts +5 -0
  111. package/dist/src/formBuilder/routes.d.ts +5 -0
  112. package/dist/src/formBuilder/server.d.ts +87 -0
  113. package/dist/src/formBuilder/tools.d.ts +1 -0
  114. package/dist/src/formBuilder/types.d.ts +46 -0
  115. package/dist/src/helpbot/composables/useHelpbotApi.d.ts +18 -0
  116. package/dist/src/helpbot/config.d.ts +17 -0
  117. package/dist/src/helpbot/index.d.ts +29 -0
  118. package/dist/src/helpbot/index.vue.d.ts +2 -0
  119. package/dist/src/helpbot/metadata.d.ts +2 -0
  120. package/dist/src/helpbot/pages/Knowledge.vue.d.ts +4 -0
  121. package/dist/src/helpbot/pages/Overview.vue.d.ts +2 -0
  122. package/dist/src/helpbot/pages/Test.vue.d.ts +4 -0
  123. package/dist/src/helpbot/permissions.d.ts +5 -0
  124. package/dist/src/helpbot/routes.d.ts +5 -0
  125. package/dist/src/helpbot/types.d.ts +42 -0
  126. package/dist/src/index.d.ts +5 -0
  127. package/dist/src/mailTemplates/builder-types.d.ts +40 -0
  128. package/dist/src/mailTemplates/components/BlockRenderer.vue.d.ts +24 -0
  129. package/dist/src/mailTemplates/components/DesignPanel.vue.d.ts +13 -0
  130. package/dist/src/mailTemplates/components/EmailCanvas.vue.d.ts +44 -0
  131. package/dist/src/mailTemplates/components/RichTextEditor.vue.d.ts +10 -0
  132. package/dist/src/mailTemplates/components/RightSidebar.vue.d.ts +18 -0
  133. package/dist/src/mailTemplates/components/SettingsPanel.vue.d.ts +15 -0
  134. package/dist/src/mailTemplates/components/TemplateBuilder.vue.d.ts +2 -0
  135. package/dist/src/mailTemplates/components/TemplateList.vue.d.ts +19 -1
  136. package/dist/src/mailTemplates/components/rich-text.d.ts +6 -0
  137. package/dist/src/mailTemplates/config.d.ts +10 -4
  138. package/dist/src/mailTemplates/defaults.d.ts +10 -0
  139. package/dist/src/mailTemplates/editor-state.d.ts +21 -0
  140. package/dist/src/mailTemplates/index.d.ts +11 -5
  141. package/dist/src/mailTemplates/index.vue.d.ts +2 -4
  142. package/dist/src/mailTemplates/metadata.d.ts +1 -1
  143. package/dist/src/mailTemplates/pages/Detail.vue.d.ts +1 -13
  144. package/dist/src/mailTemplates/pages/Overview.vue.d.ts +1 -13
  145. package/dist/src/mailTemplates/server.d.ts +23 -0
  146. package/dist/src/server-handlers.d.ts +6 -0
  147. package/dist/src/table/badge-filter-utils.d.ts +8 -0
  148. package/dist/src/table/chat-components/TableOverviewCard.vue.d.ts +2 -7
  149. package/dist/src/table/chat-components/TableResultView.vue.d.ts +3 -7
  150. package/dist/src/table/components/TableDisplayCell.vue.d.ts +8 -0
  151. package/dist/src/table/components/columns/BadgeColumnSettings.vue.d.ts +9 -0
  152. package/dist/src/table/components/columns/ColumnColorSelect.vue.d.ts +11 -0
  153. package/dist/src/table/components/columns/ColumnDisplaySettings.vue.d.ts +9 -0
  154. package/dist/src/table/components/columns/ColumnTypeSelect.vue.d.ts +11 -0
  155. package/dist/src/table/components/columns/ColumnValueSourceInput.vue.d.ts +15 -0
  156. package/dist/src/table/components/columns/DialogTableColumnItem.vue.d.ts +8 -11
  157. package/dist/src/table/components/columns/ProgressColumnSettings.vue.d.ts +8 -0
  158. package/dist/src/table/components/stats/StatDialog.vue.d.ts +6 -10
  159. package/dist/src/table/components/stats/Stats.vue.d.ts +9 -15
  160. package/dist/src/table/composables/useTableClock.d.ts +4 -0
  161. package/dist/src/table/display-utils.d.ts +35 -0
  162. package/dist/src/table/row-value.d.ts +1 -0
  163. package/dist/src/table/stat-utils.d.ts +9 -0
  164. package/dist/src/table/tool-utils.d.ts +1 -1
  165. package/dist/src/table/types.d.ts +54 -1
  166. package/dist/src/whatsappBusiness/analytics.d.ts +4 -0
  167. package/dist/src/whatsappBusiness/components/AccountPanel.vue.d.ts +2 -0
  168. package/dist/src/whatsappBusiness/components/InsightsPanel.vue.d.ts +5 -0
  169. package/dist/src/whatsappBusiness/components/TemplateDialog.vue.d.ts +14 -0
  170. package/dist/src/whatsappBusiness/components/TemplatesPanel.vue.d.ts +5 -0
  171. package/dist/src/whatsappBusiness/components/presentation.d.ts +4 -0
  172. package/dist/src/whatsappBusiness/config.d.ts +51 -0
  173. package/dist/src/whatsappBusiness/connection.d.ts +77 -0
  174. package/dist/src/whatsappBusiness/index.d.ts +63 -0
  175. package/dist/src/whatsappBusiness/index.vue.d.ts +5 -0
  176. package/dist/src/whatsappBusiness/metadata.d.ts +2 -0
  177. package/dist/src/whatsappBusiness/pages/Overview.vue.d.ts +2 -0
  178. package/dist/src/whatsappBusiness/permissions.d.ts +5 -0
  179. package/dist/src/whatsappBusiness/provider.d.ts +21 -0
  180. package/dist/src/whatsappBusiness/routes.d.ts +5 -0
  181. package/dist/src/whatsappBusiness/server.d.ts +14 -0
  182. package/dist/src/whatsappBusiness/templates.d.ts +94 -0
  183. package/dist/src/whatsappBusiness/types.d.ts +162 -0
  184. package/dist/{tool-sandbox-DoF1PsyS.js → tool-sandbox-BSkKdH7V.js} +1 -1
  185. package/dist/{tool-sandbox-DdkMLkDK.mjs → tool-sandbox-DU9b1B7v.mjs} +1 -1
  186. package/dist/types-9N-DKxNj.mjs +250 -0
  187. package/dist/types-B5MifmeF.mjs +2696 -0
  188. package/dist/types-Cem0vPo_.js +1 -0
  189. package/dist/types-D5dgTskW.js +1 -0
  190. package/dist/useHelpbotApi-BIIungOh.js +1 -0
  191. package/dist/useHelpbotApi-HC9JSiSn.mjs +229 -0
  192. package/dist/{useTableAgentTools-D5mzGf3A.js → useTableAgentTools-BrUot49I.js} +1 -1
  193. package/dist/{useTableAgentTools-DcN3kYRL.mjs → useTableAgentTools-r5InEI4p.mjs} +8 -8
  194. package/dist/vee-validate-zod-CWZwNTWE.js +1 -0
  195. package/dist/vee-validate-zod-D0WaDgDZ.mjs +1780 -0
  196. package/package.json +2 -2
  197. package/src/appointments/tools.ts +52 -2
  198. package/src/formBuilder/tools.ts +1 -0
  199. package/dist/AppointmentListTable-DZJNmTMb.mjs +0 -177
  200. package/dist/AppointmentListTable-Dieu9US_.js +0 -1
  201. package/dist/ContentEditor-C-Wm48ai.js +0 -467
  202. package/dist/Detail-BCUUNWvp.js +0 -1
  203. package/dist/Detail-Byk781b4.mjs +0 -26
  204. package/dist/Detail-DGg_xXZc.js +0 -1
  205. package/dist/Detail-Sc2qZdxj.js +0 -1
  206. package/dist/Detail-mvSGbnFU.js +0 -1
  207. package/dist/Overview-BDlBCUI_.js +0 -1
  208. package/dist/Overview-Su8ZUbMs.mjs +0 -26
  209. package/dist/TableDataWidget-7qvC3Egd.js +0 -1
  210. package/dist/TableDataWidget-DMTSoGRO.mjs +0 -121
  211. package/dist/TableOverviewCard-AFq-puJs.js +0 -1
  212. package/dist/TableResultView.vue_vue_type_script_setup_true_lang-CBn-Oxl9.mjs +0 -534
  213. package/dist/TableResultView.vue_vue_type_script_setup_true_lang-C_Lv-SmJ.js +0 -1
  214. package/dist/TableRowActionCard-IzB6tNN-.js +0 -1
  215. package/dist/TableView-BkwoKREo.js +0 -4
  216. package/dist/TableView-C4Zyp8d7.mjs +0 -8228
  217. package/dist/TemplateList.vue_vue_type_script_setup_true_lang-B_AtWnHa.js +0 -1
  218. package/dist/TemplateList.vue_vue_type_script_setup_true_lang-Cmovy7kk.mjs +0 -40
  219. package/dist/dateRangePresets-B-l5b_wR.mjs +0 -48
  220. package/dist/dateRangePresets-CPWqst_x.js +0 -1
  221. package/dist/orders-DUa2PVoa.js +0 -1
  222. package/dist/vee-validate-zod-SjDT8X35.mjs +0 -4404
  223. package/dist/vee-validate-zod-VCmLnrtQ.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),l=require("lucide-vue-next"),s={class:"bg-card p-4 rounded-xl mb-4 max-w-sm"},a={class:"flex flex-col gap-4 py-4"},i=e.defineComponent({__name:"TemplateList",setup(d){const o=[{id:1,name:"Account Registratie"},{id:2,name:"Password Reset"},{id:3,name:"Order Bevestiging"},{id:4,name:"Coupon Order Bevestiging"},{id:5,name:"Factuur"},{id:6,name:"Refund"},{id:7,name:"Refund Blauwalg"}];return(u,t)=>{const r=e.resolveComponent("Button");return e.openBlock(),e.createElementBlock("div",s,[t[0]||(t[0]=e.createElementVNode("h2",null,"Mail",-1)),t[1]||(t[1]=e.createElementVNode("p",null,"Templates",-1)),t[2]||(t[2]=e.createElementVNode("hr",null,null,-1)),e.createElementVNode("div",a,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(o,n=>e.createVNode(r,{variant:"outline",key:n.id,class:"justify-start"},{default:e.withCtx(()=>[e.createVNode(e.unref(l.Mail),{class:"mr-2"}),e.createTextVNode(" "+e.toDisplayString(n.name),1)]),_:2},1024)),64))])])}}});exports._sfc_main=i;
@@ -1,40 +0,0 @@
1
- import { defineComponent as l, resolveComponent as d, openBlock as o, createElementBlock as r, createElementVNode as t, Fragment as m, renderList as u, createVNode as s, withCtx as p, unref as c, createTextVNode as f, toDisplayString as g } from "vue";
2
- import { Mail as _ } from "lucide-vue-next";
3
- const x = { class: "bg-card p-4 rounded-xl mb-4 max-w-sm" }, B = { class: "flex flex-col gap-4 py-4" }, R = /* @__PURE__ */ l({
4
- __name: "TemplateList",
5
- setup(v) {
6
- const a = [
7
- { id: 1, name: "Account Registratie" },
8
- { id: 2, name: "Password Reset" },
9
- { id: 3, name: "Order Bevestiging" },
10
- { id: 4, name: "Coupon Order Bevestiging" },
11
- { id: 5, name: "Factuur" },
12
- { id: 6, name: "Refund" },
13
- { id: 7, name: "Refund Blauwalg" }
14
- ];
15
- return (w, e) => {
16
- const i = d("Button");
17
- return o(), r("div", x, [
18
- e[0] || (e[0] = t("h2", null, "Mail", -1)),
19
- e[1] || (e[1] = t("p", null, "Templates", -1)),
20
- e[2] || (e[2] = t("hr", null, null, -1)),
21
- t("div", B, [
22
- (o(), r(m, null, u(a, (n) => s(i, {
23
- variant: "outline",
24
- key: n.id,
25
- class: "justify-start"
26
- }, {
27
- default: p(() => [
28
- s(c(_), { class: "mr-2" }),
29
- f(" " + g(n.name), 1)
30
- ]),
31
- _: 2
32
- }, 1024)), 64))
33
- ])
34
- ]);
35
- };
36
- }
37
- });
38
- export {
39
- R as _
40
- };
@@ -1,48 +0,0 @@
1
- function t(e) {
2
- return new Date(e.getTime() - e.getTimezoneOffset() * 6e4).toISOString().slice(0, 10);
3
- }
4
- function n() {
5
- const e = /* @__PURE__ */ new Date(), a = t(e);
6
- return {
7
- // PAST
8
- today: [a],
9
- yesterday: [t(new Date(e.getFullYear(), e.getMonth(), e.getDate() - 1))],
10
- last7days: [
11
- t(new Date(e.getFullYear(), e.getMonth(), e.getDate() - 6)),
12
- a
13
- ],
14
- lastMonth: [
15
- t(new Date(e.getFullYear(), e.getMonth() - 1, e.getDate())),
16
- a
17
- ],
18
- last6months: [
19
- t(new Date(e.getFullYear(), e.getMonth() - 6, e.getDate())),
20
- a
21
- ],
22
- lastYear: [
23
- t(new Date(e.getFullYear() - 1, e.getMonth(), e.getDate())),
24
- a
25
- ],
26
- // FUTURE
27
- tomorrow: [t(new Date(e.getFullYear(), e.getMonth(), e.getDate() + 1))],
28
- next7days: [
29
- a,
30
- t(new Date(e.getFullYear(), e.getMonth(), e.getDate() + 6))
31
- ],
32
- nextMonth: [
33
- a,
34
- t(new Date(e.getFullYear(), e.getMonth() + 1, e.getDate()))
35
- ],
36
- next6months: [
37
- a,
38
- t(new Date(e.getFullYear(), e.getMonth() + 6, e.getDate()))
39
- ],
40
- nextYear: [
41
- a,
42
- t(new Date(e.getFullYear() + 1, e.getMonth(), e.getDate()))
43
- ]
44
- };
45
- }
46
- export {
47
- n as g
48
- };
@@ -1 +0,0 @@
1
- "use strict";function t(e){return new Date(e.getTime()-e.getTimezoneOffset()*6e4).toISOString().slice(0,10)}function n(){const e=new Date,a=t(e);return{today:[a],yesterday:[t(new Date(e.getFullYear(),e.getMonth(),e.getDate()-1))],last7days:[t(new Date(e.getFullYear(),e.getMonth(),e.getDate()-6)),a],lastMonth:[t(new Date(e.getFullYear(),e.getMonth()-1,e.getDate())),a],last6months:[t(new Date(e.getFullYear(),e.getMonth()-6,e.getDate())),a],lastYear:[t(new Date(e.getFullYear()-1,e.getMonth(),e.getDate())),a],tomorrow:[t(new Date(e.getFullYear(),e.getMonth(),e.getDate()+1))],next7days:[a,t(new Date(e.getFullYear(),e.getMonth(),e.getDate()+6))],nextMonth:[a,t(new Date(e.getFullYear(),e.getMonth()+1,e.getDate()))],next6months:[a,t(new Date(e.getFullYear(),e.getMonth()+6,e.getDate()))],nextYear:[a,t(new Date(e.getFullYear()+1,e.getMonth(),e.getDate()))]}}exports.getDateRangePresets=n;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),v=require("@oneclick.dev/cms-kit"),c=require("lucide-vue-next"),oe=require("./fuse-_CGUd5Zq.js"),ne=require("./EditLayout.vue_vue_type_script_setup_true_lang-D1b9_iiN.js"),g=require("./OrderDetailDialog.vue_vue_type_script_setup_true_lang-DzPOadcU.js"),ae=require("./_plugin-vue_export-helper-BHFhmbuH.js"),re={class:"space-y-6"},se={class:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4"},le={class:"text-2xl font-semibold tracking-tight flex items-center gap-2"},ce={class:"flex gap-1 border rounded-lg p-1 w-fit bg-card"},de={class:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4"},ie={class:"flex items-center gap-1"},ue={class:"flex items-center gap-1"},me={class:"flex items-center gap-2"},pe={class:"flex items-center gap-1"},fe={class:"mt-2 text-sm text-muted-foreground"},xe={class:"orders-date-trigger"},ve={class:"relative mb-4"},ge={key:0,class:"mb-3 text-sm text-muted-foreground"},ke={key:1,class:"flex items-center justify-center py-8"},_e={key:2,class:"text-center py-8 text-muted-foreground"},ye={key:3,class:"text-center py-8 text-muted-foreground"},he={key:4,class:"-mx-6 @5xl:mx-0 @5xl:space-y-2"},Ne=["onClick"],Ve={class:"flex items-start justify-between"},be={class:"flex-1"},we={class:"font-medium"},Ee={class:"text-sm text-muted-foreground"},De={class:"text-sm text-muted-foreground"},Ce={class:"flex items-center gap-4 flex-wrap mt-1"},Be={class:"flex items-center gap-2 text-xs text-muted-foreground"},Se={class:"flex items-center gap-2 text-xs text-muted-foreground"},Ie={key:0,class:"flex items-center gap-1 text-xs text-muted-foreground"},Pe={class:"flex items-center gap-2 mt-1 text-xs text-muted-foreground"},Ae={class:"text-right"},Te={key:0,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"},ze={key:1,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"},Oe={key:2,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"},je={key:3,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"},Re={key:4,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"},Fe={key:5,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"},qe={key:6,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"},Le={key:7,class:"text-sm font-medium mt-1"},Me={key:1},Ue=["onClick"],$e={class:"flex items-start justify-between"},He={class:"flex-1"},Ke={class:"flex items-center flex-wrap gap-x-2"},Qe={class:"font-medium"},Xe={class:"text-sm text-muted-foreground"},Ye={class:"text-sm text-muted-foreground"},Ge={class:"flex items-center gap-2 mt-1 text-xs text-muted-foreground"},Je={class:"text-right"},We={key:0,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"},Ze={key:1,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"},et={key:2,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"},tt={class:"text-sm font-medium mt-1"},ot=["onClick"],nt={class:"flex items-center justify-between"},at={class:"flex items-center gap-4 flex-wrap"},rt={class:"flex items-center gap-2 text-xs text-muted-foreground"},st={class:"flex items-center gap-2 text-xs text-muted-foreground"},lt={key:0,class:"flex items-center gap-1 text-xs text-muted-foreground"},ct={key:0,class:"text-right flex items-center gap-2"},dt={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"},it={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"},ut={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"},mt={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"},pt={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"},ft={key:5,class:"text-sm font-medium"},xt=e.defineComponent({__name:"orders",setup(gt){const P=v.useRoute();v.useRouter();const A=v.useOverlayParams(),{params:V}=v.useModuleRoute(),{config:h}=v.useModule(),b=v.useFirebaseIntegration(h.project),T=e.computed(()=>V.value?.id??V.id??""),{metadataSchema:w}=g.useAgendaMetadataSchema(T),u=e.ref([]),k=e.ref([]),_=e.ref(!0),E=e.ref(null),p=e.ref(""),y=e.ref(null),D=e.ref(null),x=e.ref("confirmed"),z=new Date,d=e.ref(new Date),O=e.ref(null),U=e.computed(()=>({date:j(d.value),resource:null}));e.provide("event",U);const C=e.computed({get:()=>j(d.value),set:o=>{if(!o){d.value=new Date;return}d.value=new Date(`${o}T00:00:00`)}}),$=()=>{const o=O.value;if(o){if(typeof o.showPicker=="function"){o.showPicker();return}o.focus(),o.click()}},H=e.computed(()=>d.value.toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric",year:"numeric"})),K=()=>{const o=new Date(d.value);o.setDate(o.getDate()-1),d.value=o},Q=()=>{const o=new Date(d.value);o.setDate(o.getDate()+1),o<=z&&(d.value=o)},X=e.computed(()=>{const o=new Date(d.value);return o.setDate(o.getDate()+1),o<=z}),Y=()=>{d.value=new Date},j=o=>{const t=o.getFullYear(),a=String(o.getMonth()+1).padStart(2,"0"),s=String(o.getDate()).padStart(2,"0");return`${t}-${a}-${s}`},R=o=>o?new Date(o).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!1}):"",F=o=>o?new Date(o).toLocaleDateString("en-US",{weekday:"short",month:"short",day:"numeric"}):"",q=(o,t)=>{const a=k.value.find(i=>i.id===t.resourceId),s=o.id||o.orderId||t.orderId||"";return{customerInfo:o.customerInfo,amountDue:o.amountDue,amountPaid:o.amountPaid,status:o.status,reservationStatus:t.status,subtotal:o.subtotal,total:o.total,discount:o.discount,id:s,res_id:t.id,resourceId:t.resourceId,spots:t.spots,date:t.date,createdAt:o.createdAt,startTime:t.timeslot?.startTime,endTime:t.timeslot?.endTime,reservationPrice:t.totalPrice,reservationBasePrice:t.basePrice,reservationAddOnsPrice:t.addOnsPrice,pricingOptionId:t.pricingOptionId,pricingOption:t.pricingOption,resourceName:a?.name,resourceColor:a?.color,metadata:o.metadata||{},reservationMetadata:t.metadata||{},refundStatus:t.refundStatus,refundedAt:t.refundedAt,refundedAmount:t.refundedAmount,refunds:Array.isArray(t.refunds)?t.refunds:[],adjustments:o.adjustments||[],reservationAdjustments:t.adjustments||[]}},B=async()=>{await e.nextTick(),await new Promise(o=>{if(typeof requestAnimationFrame=="function"){requestAnimationFrame(()=>o());return}o()})},S=e.computed(()=>p.value.trim()?new oe.Fuse(u.value,{keys:["customerInfo.firstName","customerInfo.lastName","customerInfo.email","customerInfo.phone","resourceName"],threshold:.3,ignoreLocation:!0}).search(p.value).map(t=>t.item):u.value),L=e.computed(()=>{const o=new Map;for(const t of S.value){o.has(t.id)||o.set(t.id,{id:t.id,customerInfo:t.customerInfo,status:t.status,createdAt:t.createdAt,metadata:t.metadata||{},reservations:[],adjustments:t.adjustments||[],totalPrice:0,totalSpots:0});const a=o.get(t.id);a.reservations.push(t),a.totalPrice=typeof t.total=="number"?t.total:a.totalPrice+(t.reservationPrice||0),a.totalSpots+=t.spots||0}return Array.from(o.values())}),N=e.computed(()=>(console.log("orderssss",u.value),{spots:u.value.reduce((o,t)=>o+(t.spots||0),0),bookings:u.value.length,revenue:L.value.reduce((o,t)=>o+(t.totalPrice||0),0)})),G=()=>{p.value=""},J=async()=>{try{const o=await b.get(h.agendaCollection,T.value);E.value=o,k.value=o?.resources?.filter(t=>t.isActive)||[]}catch(o){console.error("Error loading resources:",o),k.value=[]}},f=async()=>{_.value=!0,u.value=[];try{const o=V.value.id,t=new Date(d.value);t.setHours(0,0,0,0);const a=new Date(d.value);a.setHours(23,59,59,999);const s=await b.find(h.reservationsCollection,{filters:[{field:"agendaId",operator:"==",value:o},{field:"createdAt",operator:">=",value:t.toISOString()},{field:"createdAt",operator:"<=",value:a.toISOString()},{field:"status",operator:"==",value:x.value}]});let i=[];s.forEach(l=>{(l.reservations||[]).forEach(I=>{i.push(q(l,I))})}),u.value=i.sort((l,m)=>(m.createdAt||"").localeCompare(l.createdAt||""))}catch(o){console.error("Error loading orders:",o),u.value=[]}finally{_.value=!1}},W=async()=>{await J(),await f()},M=async(o,t)=>{const a=await b.get(h.reservationsCollection,o);if(!a)return;const s={...a,id:a.id||o},i=(s.reservations||[]).map(l=>q(s,l));if(t){const l=i.find(m=>m.res_id===t);if(!l)return;await B(),y.value?.openDialog(l);return}i.length&&(await B(),D.value?.openDialog({id:s.id,customerInfo:s.customerInfo,status:s.status,createdAt:s.createdAt,metadata:s.metadata||{},reservations:i,adjustments:s.adjustments||[],totalPrice:typeof s.total=="number"?s.total:i.reduce((l,m)=>l+(m.reservationPrice||0),0),totalSpots:i.reduce((l,m)=>l+(m.spots||0),0)}))},Z=async o=>{await B(),y.value?.openDialog(o)};return W(),e.onMounted(async()=>{const o=A.value.orderId||P.query.orderId,t=A.value.reservationId||P.query.reservationId;if(o){const a=new URL(window.location.href);a.searchParams.delete("orderId"),a.searchParams.delete("reservationId"),window.history.replaceState(window.history.state,"",a.toString()),await M(o,t)}}),e.watch(d,()=>{f()}),e.watch(x,()=>{f()}),(o,t)=>{const a=e.resolveComponent("Button"),s=e.resolveComponent("Badge"),i=e.resolveComponent("CardTitle"),l=e.resolveComponent("CardDescription"),m=e.resolveComponent("CardHeader"),I=e.resolveComponent("Input"),ee=e.resolveComponent("CardContent"),te=e.resolveComponent("Card");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(ne._sfc_main,null,{default:e.withCtx(()=>[e.createElementVNode("div",re,[e.createElementVNode("div",se,[e.createElementVNode("div",null,[e.createElementVNode("h1",le,[e.createVNode(e.unref(c.ShoppingBag),{class:"size-6"}),t[4]||(t[4]=e.createTextVNode(" Orders ",-1))]),t[5]||(t[5]=e.createElementVNode("p",{class:"text-muted-foreground text-sm mt-1"}," View orders by when they were placed ",-1))])]),e.createElementVNode("div",ce,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(["confirmed","pending","cancelled"],n=>e.createVNode(a,{key:n,variant:e.unref(x)===n?"default":"ghost",size:"sm",class:"capitalize",onClick:r=>x.value=n},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n),1)]),_:2},1032,["variant","onClick"])),64))]),e.createVNode(te,{class:"-mx-6 rounded-none border-x-0 @5xl:mx-0 @5xl:rounded-xl @5xl:border-x-[1px]"},{default:e.withCtx(()=>[e.createVNode(m,null,{default:e.withCtx(()=>[e.createElementVNode("div",de,[e.createElementVNode("div",null,[e.createVNode(i,{class:"flex items-center gap-2"},{default:e.withCtx(()=>[t[6]||(t[6]=e.createTextVNode(" Orders received ",-1)),e.unref(N).bookings>0?(e.openBlock(),e.createBlock(s,{key:0,variant:"secondary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(N).bookings),1)]),_:1})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(l,{class:"flex items-center gap-4 mt-1"},{default:e.withCtx(()=>[e.createElementVNode("span",ie,[e.createVNode(e.unref(c.Users),{size:14}),e.createTextVNode(" "+e.toDisplayString(e.unref(N).spots)+" spots ",1)]),e.createElementVNode("span",ue," €"+e.toDisplayString(e.unref(N).revenue.toFixed(2))+e.toDisplayString(e.unref(x)==="pending"?" pending ":e.unref(x)==="cancelled"?" cancelled ":" ")+"revenue ",1)]),_:1})]),e.createElementVNode("div",me,[e.createElementVNode("div",pe,[e.createVNode(a,{variant:"outline",size:"icon",class:"size-8",onClick:K},{default:e.withCtx(()=>[e.createVNode(e.unref(c.ChevronLeft),{size:16})]),_:1}),e.createVNode(a,{variant:"outline",size:"sm",class:"h-8 px-3 text-xs",onClick:Y},{default:e.withCtx(()=>[...t[7]||(t[7]=[e.createTextVNode(" Today ",-1)])]),_:1}),e.createVNode(a,{variant:"outline",size:"icon",class:"size-8",onClick:Q,disabled:!e.unref(X)},{default:e.withCtx(()=>[e.createVNode(e.unref(c.ChevronRight),{size:16})]),_:1},8,["disabled"])]),e.createVNode(a,{variant:"outline",size:"icon",onClick:f,disabled:e.unref(_)},{default:e.withCtx(()=>[e.createVNode(e.unref(c.RefreshCw),{size:16,class:e.normalizeClass({"animate-spin":e.unref(_)})},null,8,["class"])]),_:1},8,["disabled"])])]),e.createElementVNode("div",fe,[e.createElementVNode("div",xe,[e.createVNode(a,{type:"button",variant:"outline",onClick:$},{default:e.withCtx(()=>[e.createVNode(e.unref(c.CalendarIcon),{class:"size-4"}),e.createTextVNode(" "+e.toDisplayString(e.unref(H)),1)]),_:1}),e.withDirectives(e.createElementVNode("input",{ref_key:"dateInputRef",ref:O,"onUpdate:modelValue":t[0]||(t[0]=n=>e.isRef(C)?C.value=n:null),type:"date",class:"orders-date-picker","aria-label":"Select order date"},null,512),[[e.vModelText,e.unref(C)]])])])]),_:1}),e.createVNode(ee,null,{default:e.withCtx(()=>[e.createElementVNode("div",ve,[e.createVNode(e.unref(c.Search),{size:16,class:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"}),e.createVNode(I,{modelValue:e.unref(p),"onUpdate:modelValue":t[1]||(t[1]=n=>e.isRef(p)?p.value=n:null),placeholder:"Search by name, email, or phone...",class:"pl-9 pr-9"},null,8,["modelValue"]),e.unref(p)?(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:G},{default:e.withCtx(()=>[e.createVNode(e.unref(c.X),{size:14})]),_:1})):e.createCommentVNode("",!0)]),e.unref(p)?(e.openBlock(),e.createElementBlock("div",ge," Showing "+e.toDisplayString(e.unref(S).length)+" of "+e.toDisplayString(e.unref(u).length)+" orders ",1)):e.createCommentVNode("",!0),e.unref(_)?(e.openBlock(),e.createElementBlock("div",ke,[...t[8]||(t[8]=[e.createElementVNode("div",{class:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"},null,-1)])])):e.unref(u).length===0?(e.openBlock(),e.createElementBlock("div",_e,[e.createVNode(e.unref(c.ShoppingBag),{class:"size-12 mx-auto mb-3 opacity-50"}),t[9]||(t[9]=e.createElementVNode("p",null,"No orders received on this day",-1))])):e.unref(S).length===0?(e.openBlock(),e.createElementBlock("div",ye," No orders match your search ")):(e.openBlock(),e.createElementBlock("div",he,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(L),n=>(e.openBlock(),e.createElementBlock("div",{key:n.id,class:"border-t last:border-b @5xl:border @5xl:rounded-lg overflow-hidden @5xl:shadow-sm"},[n.reservations.length===1?(e.openBlock(),e.createElementBlock("div",{key:0,class:"px-6 py-3 @5xl:px-3 hover:bg-muted/50 transition-colors cursor-pointer",onClick:r=>e.unref(y)?.openDialog(n.reservations[0])},[e.createElementVNode("div",Ve,[e.createElementVNode("div",be,[e.createElementVNode("div",we,e.toDisplayString(n.customerInfo?.firstName||n.customerInfo?.lastName?[n.customerInfo?.firstName,n.customerInfo?.lastName].filter(Boolean).join(" "):"Unknown Customer"),1),e.createElementVNode("div",Ee,e.toDisplayString(n.customerInfo?.email),1),e.createElementVNode("div",De,e.toDisplayString(n.customerInfo?.phone),1),e.createElementVNode("div",Ce,[e.createElementVNode("div",Be,[e.createVNode(e.unref(c.CalendarIcon),{size:12}),e.createElementVNode("span",null,e.toDisplayString(F(n.reservations[0].date))+" · "+e.toDisplayString(n.reservations[0].startTime)+" - "+e.toDisplayString(n.reservations[0].endTime),1)]),e.createElementVNode("div",Se,[e.createVNode(e.unref(c.Users),{size:12}),e.createElementVNode("span",null,e.toDisplayString(n.reservations[0].spots)+" spots",1)]),n.reservations[0].resourceName?(e.openBlock(),e.createElementBlock("div",Ie,[e.createElementVNode("div",{class:"w-3 h-3 rounded-full",style:e.normalizeStyle({backgroundColor:n.reservations[0].resourceColor||"#6b7280"})},null,4),e.createElementVNode("span",null,e.toDisplayString(n.reservations[0].resourceName),1)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Pe,[e.createVNode(e.unref(c.Clock),{size:12}),e.createElementVNode("span",null,"Ordered at "+e.toDisplayString(R(n.createdAt)),1)]),e.createVNode(g._sfc_main,{metadata:{...n.reservations[0].metadata,...n.reservations[0].reservationMetadata},schema:e.unref(w),"display-filter":["highlight","badge"],compact:"",class:"mt-1"},null,8,["metadata","schema"])]),e.createElementVNode("div",Ae,[n.reservations[0].status==="pending"?(e.openBlock(),e.createElementBlock("span",Te,"Pending")):n.reservations[0].status==="cancelled"?(e.openBlock(),e.createElementBlock("span",ze,"Cancelled")):n.reservations[0].reservationStatus==="needs_approval"?(e.openBlock(),e.createElementBlock("span",Oe,"Needs Approval")):n.reservations[0].reservationStatus==="approved"?(e.openBlock(),e.createElementBlock("span",je,"Approved")):n.reservations[0].reservationStatus==="cancelled"?(e.openBlock(),e.createElementBlock("span",Re,"Cancelled")):n.reservations[0].reservationStatus==="rejected"?(e.openBlock(),e.createElementBlock("span",Fe,"Rejected")):(e.openBlock(),e.createElementBlock("span",qe,"Pending")),n.reservations[0].reservationPrice||n.reservations[0].reservationPrice===0?(e.openBlock(),e.createElementBlock("div",Le," €"+e.toDisplayString(n.totalPrice.toFixed(2)),1)):e.createCommentVNode("",!0)])])],8,Ne)):(e.openBlock(),e.createElementBlock("div",Me,[e.createElementVNode("div",{class:"px-6 py-3 @5xl:px-3 bg-muted/30 hover:bg-muted/50 transition-colors cursor-pointer",onClick:r=>e.unref(D)?.openDialog(n)},[e.createElementVNode("div",$e,[e.createElementVNode("div",He,[e.createElementVNode("div",Ke,[e.createElementVNode("div",Qe,e.toDisplayString(n.customerInfo?.firstName||n.customerInfo?.lastName?[n.customerInfo?.firstName,n.customerInfo?.lastName].filter(Boolean).join(" "):"Unknown Customer"),1),e.createVNode(s,{variant:"secondary",class:"text-xs whitespace-nowrap"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.reservations.length)+" reservations ",1)]),_:2},1024)]),e.createElementVNode("div",Xe,e.toDisplayString(n.customerInfo?.email),1),e.createElementVNode("div",Ye,e.toDisplayString(n.customerInfo?.phone),1),e.createElementVNode("div",Ge,[e.createVNode(e.unref(c.Clock),{size:12}),e.createElementVNode("span",null,"Ordered at "+e.toDisplayString(R(n.createdAt)),1)]),e.createVNode(g._sfc_main,{metadata:n.metadata,schema:e.unref(w),"display-filter":["highlight","badge"],compact:"",class:"mt-1"},null,8,["metadata","schema"])]),e.createElementVNode("div",Je,[n.status==="pending"?(e.openBlock(),e.createElementBlock("span",We,"Pending")):n.status==="cancelled"?(e.openBlock(),e.createElementBlock("span",Ze,"Cancelled")):(e.openBlock(),e.createElementBlock("span",et,"Confirmed")),e.createElementVNode("div",tt," €"+e.toDisplayString(n.totalPrice.toFixed(2)),1)])])],8,Ue),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.reservations,r=>(e.openBlock(),e.createElementBlock("div",{key:r.res_id,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",onClick:kt=>e.unref(y)?.openDialog(r)},[e.createElementVNode("div",nt,[e.createElementVNode("div",at,[e.createElementVNode("div",rt,[e.createVNode(e.unref(c.CalendarIcon),{size:12}),e.createElementVNode("span",null,e.toDisplayString(F(r.date))+" · "+e.toDisplayString(r.startTime)+" - "+e.toDisplayString(r.endTime),1)]),e.createElementVNode("div",st,[e.createVNode(e.unref(c.Users),{size:12}),e.createElementVNode("span",null,e.toDisplayString(r.spots)+" spots",1)]),r.resourceName?(e.openBlock(),e.createElementBlock("div",lt,[e.createElementVNode("div",{class:"w-3 h-3 rounded-full",style:e.normalizeStyle({backgroundColor:r.resourceColor||"#6b7280"})},null,4),e.createElementVNode("span",null,e.toDisplayString(r.resourceName),1)])):e.createCommentVNode("",!0)]),r.status==="confirmed"?(e.openBlock(),e.createElementBlock("div",ct,[r.reservationStatus==="needs_approval"?(e.openBlock(),e.createElementBlock("span",dt,"Needs Approval")):r.reservationStatus==="approved"?(e.openBlock(),e.createElementBlock("span",it,"Approved")):r.reservationStatus==="cancelled"?(e.openBlock(),e.createElementBlock("span",ut,"Cancelled")):r.reservationStatus==="rejected"?(e.openBlock(),e.createElementBlock("span",mt,"Rejected")):(e.openBlock(),e.createElementBlock("span",pt,"Pending")),r.reservationPrice||r.reservationPrice===0?(e.openBlock(),e.createElementBlock("div",ft," €"+e.toDisplayString(r.reservationPrice.toFixed(2)),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),e.createVNode(g._sfc_main,{metadata:r.reservationMetadata,schema:e.unref(w),"display-filter":["highlight","badge"],compact:"",class:"mt-1"},null,8,["metadata","schema"])],8,ot))),128))]))]))),128))]))]),_:1})]),_:1})])]),_:1}),e.createVNode(g._sfc_main$1,{ref_key:"reservationDetailDialog",ref:y,"agenda-data":e.unref(E),resources:e.unref(k),"show-order-link":"",onCancelled:f,onConfirmed:f,onRejected:f,onTransferred:f,onOpenOrder:t[2]||(t[2]=n=>M(n))},null,8,["agenda-data","resources"]),e.createVNode(g._sfc_main$2,{ref_key:"orderDetailDialog",ref:D,"agenda-data":e.unref(E),resources:e.unref(k),onOpenReservation:t[3]||(t[3]=n=>Z(n))},null,8,["agenda-data","resources"])],64)}}}),vt=ae._export_sfc(xt,[["__scopeId","data-v-5178678e"]]);exports.default=vt;