@oneclick.dev/cms-core-modules 0.0.115 → 0.0.117

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 (107) 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-C5yNNLeV.mjs → ContentEditor-CUe6-NwF.mjs} +17650 -14456
  4. package/dist/{ContentEditor-MctMvN7D.js → ContentEditor-DWoXc0T_.js} +52 -52
  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/EditLayout.vue_vue_type_script_setup_true_lang-gozJKXvM.js +1 -0
  12. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-pDO9b4Pv.mjs +77 -0
  13. package/dist/{Find-zN_dKz4p.mjs → Find-BAvaNf90.mjs} +1 -1
  14. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-BXTkYCm_.mjs +1476 -0
  15. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-C2zwt5UF.js +1 -0
  16. package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-BYSeUW_V.js +925 -0
  17. package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-DwAUYR8p.mjs +5021 -0
  18. package/dist/{Overview-BR_y8x3W.mjs → Overview-BWLxUksJ.mjs} +1 -1
  19. package/dist/{Overview-MpgkLB6m.mjs → Overview-Bjvu9Lfc.mjs} +3 -3
  20. package/dist/Overview-CBahJviK.js +1 -0
  21. package/dist/Overview-CVQ1pkuD.mjs +527 -0
  22. package/dist/{SeoHealth-bVQj_Xgm.mjs → SeoHealth-I2mqiuLm.mjs} +3 -3
  23. package/dist/TableView-BQI3CWll.mjs +6234 -0
  24. package/dist/TableView-Cwal0BPW.js +4 -0
  25. package/dist/agenda-B3nj388v.mjs +1253 -0
  26. package/dist/agenda-Bev1mO7E.js +1 -0
  27. package/dist/availability-ClBGVgE9.js +1 -0
  28. package/dist/availability-D8JdA4rP.mjs +274 -0
  29. package/dist/booking-data-Px7XCIfU.mjs +1024 -0
  30. package/dist/booking-data-aMS1p_3g.js +1 -0
  31. package/dist/cms-core-modules.css +1 -1
  32. package/dist/exceptions-DXqc0Nza.js +1 -0
  33. package/dist/exceptions-Dgj54ULn.mjs +651 -0
  34. package/dist/{index-DZV720u-.mjs → index-52nwosIs.mjs} +45 -45
  35. package/dist/{index-CkVwMqpn.mjs → index-Bnn9LahC.mjs} +52 -52
  36. package/dist/{index-B8GvmAwh.mjs → index-DiTIA8Sh.mjs} +27 -27
  37. package/dist/index-Djp4EBb0.mjs +1245 -0
  38. package/dist/index-DliTZzwI.js +35 -0
  39. package/dist/{index-L54VBzwJ.mjs → index-ar4tbR3i.mjs} +8 -8
  40. package/dist/{index-BIF2RB7k.mjs → index-cC_2cw31.mjs} +4 -4
  41. package/dist/{index-CFzn2Lus.mjs → index-hMp4p5qA.mjs} +3 -3
  42. package/dist/index.cjs.js +1 -1
  43. package/dist/index.mjs +26 -25
  44. package/dist/{math-BJ-oX_IM.mjs → math-Bkw6u412.mjs} +11 -11
  45. package/dist/orders-1swJVKw2.js +1 -0
  46. package/dist/orders-D41GbzIa.mjs +624 -0
  47. package/dist/payment-BJHgpaeT.js +1 -0
  48. package/dist/payment-D5j-68Ig.mjs +1278 -0
  49. package/dist/refunds-D9nTeD2d.mjs +436 -0
  50. package/dist/refunds-oVB2Opib.js +1 -0
  51. package/dist/resources-8WouFvJe.js +1 -0
  52. package/dist/resources-CK0oWssj.mjs +975 -0
  53. package/dist/server-handlers.cjs.js +1 -1
  54. package/dist/server-handlers.mjs +626 -515
  55. package/dist/src/appointments/components/edit/EventDialog/BookingsList.vue.d.ts +146 -5
  56. package/dist/src/appointments/components/edit/EventDialog/CancelRefundReservationDialog.vue.d.ts +33 -0
  57. package/dist/src/appointments/components/edit/EventDialog/OrderDetailDialog.vue.d.ts +26 -8
  58. package/dist/src/appointments/components/edit/EventDialog/RefundDetailsDisplay.vue.d.ts +8 -0
  59. package/dist/src/appointments/components/edit/EventDialog/ReservationDetailDialog.vue.d.ts +91 -5
  60. package/dist/src/appointments/components/edit/EventDialog/TransferReservationDialog.vue.d.ts +20 -3
  61. package/dist/src/appointments/components/edit/NewReservationDialog/ReservationLines.vue.d.ts +5 -0
  62. package/dist/src/appointments/components/edit/OrderMetadataDisplay.vue.d.ts +20 -2
  63. package/dist/src/appointments/components/edit/dashboard/BookingsList.vue.d.ts +240 -0
  64. package/dist/src/appointments/composables/useAgendaMetadataSchema.d.ts +37 -0
  65. package/dist/src/appointments/pages/edit/orders.vue.d.ts +225 -0
  66. package/dist/src/appointments/pages/edit/refunds.vue.d.ts +2 -0
  67. package/dist/src/appointments/server.d.ts +2 -0
  68. package/dist/src/appointments/types.d.ts +6 -0
  69. package/dist/src/appointments/utils/printReservation.d.ts +65 -3
  70. package/dist/src/contentManager/components/content-editor/tiptap-extensions/table/Table.d.ts +36 -0
  71. package/dist/src/contentManager/components/content-editor/tiptap-extensions/table/Table.vue.d.ts +95 -0
  72. package/dist/src/contentManager/components/content-editor/tiptap-extensions/table/TableCell.d.ts +13 -0
  73. package/dist/src/contentManager/components/content-editor/tiptap-extensions/table/TableHeader.d.ts +6 -0
  74. package/dist/src/contentManager/components/content-editor/tiptap-extensions/table/TableRow.d.ts +6 -0
  75. package/dist/src/contentManager/components/content-editor/tiptap-extensions/table/index.d.ts +4 -0
  76. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/TableMenu.vue.d.ts +13 -0
  77. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/index.d.ts +14 -0
  78. package/dist/{vee-validate-zod-DNjTLCgh.mjs → vee-validate-zod-CcOwoF6y.mjs} +6 -6
  79. package/package.json +2 -2
  80. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-DWMqQvHl.mjs +0 -76
  81. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-kpjbVSXg.js +0 -1
  82. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Baqy-rTT.js +0 -1
  83. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Dx4Bpa2m.mjs +0 -1263
  84. package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-COrK1j0S.js +0 -1
  85. package/dist/OrderDetailDialog.vue_vue_type_script_setup_true_lang-Vb3q8EVv.mjs +0 -330
  86. package/dist/Overview-98nkJUWN.mjs +0 -481
  87. package/dist/Overview-Dl8cMlsr.js +0 -1
  88. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-CuwREvXD.js +0 -349
  89. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-GYNZ_yhD.mjs +0 -3077
  90. package/dist/TableView-CVfkyj1k.js +0 -4
  91. package/dist/TableView-zDx0IegJ.mjs +0 -6096
  92. package/dist/agenda-BaJu3-1c.js +0 -1
  93. package/dist/agenda-BwVY_8oM.mjs +0 -1165
  94. package/dist/availability-CMrRa5y2.mjs +0 -269
  95. package/dist/availability-Cf2YfMwM.js +0 -1
  96. package/dist/booking-data-DgJd0BcM.mjs +0 -889
  97. package/dist/booking-data-Di5GmH_8.js +0 -1
  98. package/dist/exceptions-B6P9UiCj.js +0 -1
  99. package/dist/exceptions-De9-FvdP.mjs +0 -646
  100. package/dist/index-DL6orwdK.js +0 -35
  101. package/dist/index-hH3e-IYz.mjs +0 -1187
  102. package/dist/orders-C65SlpJy.mjs +0 -618
  103. package/dist/orders-XVzWAgG1.js +0 -1
  104. package/dist/payment-C3ohkehF.mjs +0 -1080
  105. package/dist/payment-Dfr-Ro-a.js +0 -1
  106. package/dist/resources-CxeFd57z.js +0 -1
  107. package/dist/resources-DwYxn2Vi.mjs +0 -811
@@ -2,7 +2,7 @@ import { defineComponent as z, inject as L, resolveComponent as o, openBlock as
2
2
  import { Import as re, DollarSign as oe, Percent as ne, Truck as se, Info as me, Loader2 as K, UserCog as pe, Plus as Z, Pencil as fe, Trash2 as ve, CalendarIcon as h, List as ce } from "lucide-vue-next";
3
3
  import { useModulePermissions as j, useModuleStorage as W, useConfirmation as _e, useModuleRoute as ge, useProjectSettings as xe, useLogs as ye, useModuleBreadcrumbs as be, useFirebaseIntegration as we } from "@oneclick.dev/cms-kit";
4
4
  import { c as ee } from "./utils-CanmrIWO.mjs";
5
- import { e as Ve, $ as te, a as Ue } from "./DateFormatter-qbhRYxI_.mjs";
5
+ import { $ as Ve, b as te, a as Ue } from "./DateFormatter-BkKoSf_l.mjs";
6
6
  import { t as I } from "./index-RLz1QPrf.mjs";
7
7
  const Ce = /* @__PURE__ */ z({
8
8
  __name: "SingleCode",
@@ -729,10 +729,10 @@ function je(e, t) {
729
729
  throw new Error("Unexpected hour cycle result");
730
730
  }
731
731
  export {
732
- X as $,
732
+ Ve as $,
733
733
  Je as a,
734
- x as b,
735
- Ne as c,
736
- _e as d,
737
- Ve as e
734
+ X as b,
735
+ x as c,
736
+ Ne as d,
737
+ _e as e
738
738
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as B, inject as G, resolveComponent as c, openBlock as r, createBlock as h, withCtx as l, createVNode as t, createElementVNode as s, createTextVNode as d, isRef as j, unref as e, createElementBlock as C, toDisplayString as y, createCommentVNode as g, withModifiers as Y, watch as Z, provide as R, computed as ee, ref as te, onMounted as le } from "vue";
2
- import { f as E, u as N, t as oe, o as q, s as M, e as se } from "./vee-validate-zod-DNjTLCgh.mjs";
2
+ import { u as E, a as N, t as oe, o as q, s as M, f as se } from "./vee-validate-zod-CcOwoF6y.mjs";
3
3
  import { X as ne, ImagePlus as ie, Tag as ae, ChevronRight as re, Trash as ce, Loader2 as W } from "lucide-vue-next";
4
4
  import { g as ue } from "./google-CvtuJwgk.mjs";
5
5
  import { useModulePermissions as de, useModuleRoute as pe, useConfirmation as me, useFirebaseIntegration as fe, useModuleBreadcrumbs as _e } from "@oneclick.dev/cms-kit";
@@ -1,9 +1,9 @@
1
- import { defineComponent as oe, ref as k, withAsyncContext as le, computed as L, resolveComponent as u, openBlock as n, createElementBlock as i, createElementVNode as d, createVNode as o, unref as r, withCtx as l, toDisplayString as m, createTextVNode as s, Fragment as se, renderList as ae, createBlock as _, createCommentVNode as c, normalizeClass as B } from "vue";
1
+ import { defineComponent as oe, ref as k, withAsyncContext as le, computed as L, resolveComponent as u, openBlock as n, createElementBlock as i, createElementVNode as d, createVNode as o, unref as r, withCtx as l, toDisplayString as m, createTextVNode as s, Fragment as se, renderList as ae, createBlock as _, createCommentVNode as f, normalizeClass as B } from "vue";
2
2
  import { Tag as ne, ChevronRight as de, CalendarIcon as j } from "lucide-vue-next";
3
3
  import { c as z } from "./utils-CanmrIWO.mjs";
4
4
  import { useLogs as ue, useModuleRoute as ie, useModuleStorage as re, useFirebaseIntegration as me, useModuleBreadcrumbs as pe } from "@oneclick.dev/cms-kit";
5
- import { e as ve, $ as E, a as ce, c as M } from "./DateFormatter-qbhRYxI_.mjs";
6
- const fe = { class: "relative @container" }, xe = {
5
+ import { $ as ve, b as E, a as fe, d as M } from "./DateFormatter-BkKoSf_l.mjs";
6
+ const ce = { class: "relative @container" }, xe = {
7
7
  key: 0,
8
8
  class: "max-w-5xl mx-auto mt-4"
9
9
  }, ge = { class: "flex flex-row gap-4 justify-between mb-6" }, _e = { class: "flex items-center" }, be = { class: "text-lg font-semibold mx-2 uppercase" }, ye = {
@@ -48,7 +48,7 @@ const fe = { class: "relative @container" }, xe = {
48
48
  let g, w;
49
49
  const b = F, { log: Re, logWarning: We, logError: Ze } = ue(), { params: A, navigateTo: S } = ie(), { getModuleData: G } = re(), { confirm: R } = useConfirmation(), y = k([]);
50
50
  y.value = ([g, w] = le(() => G("promo-types")), g = await g, w(), g || []);
51
- const U = me(b.config.project), t = k(null), C = k(!1), p = L(() => (t.value?.usageCount ?? 0) > 0), f = L(() => y.value.find((V) => V.key === t.value?.type) || null);
51
+ const U = me(b.config.project), t = k(null), C = k(!1), p = L(() => (t.value?.usageCount ?? 0) > 0), c = L(() => y.value.find((V) => V.key === t.value?.type) || null);
52
52
  pe(() => [
53
53
  { text: "Promo codes list", href: t.value?.code ? "/promo-codes" : "" },
54
54
  { text: t.value?.code || "" }
@@ -62,7 +62,7 @@ const fe = { class: "relative @container" }, xe = {
62
62
  };
63
63
  return W(), (V, e) => {
64
64
  const x = u("Button"), v = u("Label"), P = u("Input"), q = u("SelectValue"), O = u("SelectTrigger"), Y = u("SelectItem"), H = u("SelectGroup"), J = u("SelectContent"), K = u("Select"), Q = u("Switch"), I = u("PopoverTrigger"), T = u("Calendar"), N = u("PopoverContent"), D = u("Popover"), X = u("Textarea"), h = u("Loader2"), ee = u("CardContent"), te = u("Card");
65
- return n(), i("div", fe, [
65
+ return n(), i("div", ce, [
66
66
  t.value ? (n(), i("div", xe, [
67
67
  d("div", ge, [
68
68
  d("div", _e, [
@@ -155,28 +155,28 @@ const fe = { class: "relative @container" }, xe = {
155
155
  _: 1
156
156
  }, 8, ["modelValue"]),
157
157
  d("div", Ue, [
158
- f.value?.hasValueField ? (n(), i("div", $e, [
158
+ c.value?.hasValueField ? (n(), i("div", $e, [
159
159
  o(v, {
160
160
  for: "discountValue",
161
161
  class: "text-muted-foreground"
162
162
  }, {
163
163
  default: l(() => [
164
- s(m(f.value?.valueLabel || "Value"), 1)
164
+ s(m(c.value?.valueLabel || "Value"), 1)
165
165
  ]),
166
166
  _: 1
167
167
  }),
168
168
  d("div", Pe, [
169
- f.value?.valuePrefix ? (n(), i("span", Ie, m(f.value?.valuePrefix), 1)) : c("", !0),
169
+ c.value?.valuePrefix ? (n(), i("span", Ie, m(c.value?.valuePrefix), 1)) : f("", !0),
170
170
  o(P, {
171
171
  modelValue: t.value.value,
172
172
  "onUpdate:modelValue": e[3] || (e[3] = (a) => t.value.value = a),
173
173
  id: "discountValue",
174
174
  disabled: p.value
175
175
  }, null, 8, ["modelValue", "disabled"]),
176
- f.value?.valueSuffix ? (n(), i("span", Te, m(f.value?.valueSuffix), 1)) : c("", !0)
176
+ c.value?.valueSuffix ? (n(), i("span", Te, m(c.value?.valueSuffix), 1)) : f("", !0)
177
177
  ])
178
- ])) : c("", !0),
179
- f.value?.allowUnlimitedUses ? (n(), i("div", Ne, [
178
+ ])) : f("", !0),
179
+ c.value?.allowUnlimitedUses ? (n(), i("div", Ne, [
180
180
  o(v, {
181
181
  for: "unlimitedUses",
182
182
  class: "text-muted-foreground"
@@ -200,7 +200,7 @@ const fe = { class: "relative @container" }, xe = {
200
200
  _: 1
201
201
  })
202
202
  ])
203
- ])) : c("", !0)
203
+ ])) : f("", !0)
204
204
  ]),
205
205
  e[28] || (e[28] = d("h3", { class: "font-medium" }, "Availability", -1)),
206
206
  e[29] || (e[29] = d("p", { class: "text-sm text-muted-foreground mb-4" }, "When will this code be available?", -1)),
@@ -239,7 +239,7 @@ const fe = { class: "relative @container" }, xe = {
239
239
  modelValue: t.value.startsAt,
240
240
  "onUpdate:modelValue": e[5] || (e[5] = (a) => t.value.startsAt = a),
241
241
  "initial-focus": "",
242
- minValue: r(ce)()
242
+ minValue: r(fe)()
243
243
  }, null, 8, ["modelValue", "minValue"])
244
244
  ]),
245
245
  _: 1
@@ -248,7 +248,7 @@ const fe = { class: "relative @container" }, xe = {
248
248
  _: 1
249
249
  }),
250
250
  t.value.startsAt ? (n(), i("div", je, [
251
- p.value ? c("", !0) : (n(), _(x, {
251
+ p.value ? f("", !0) : (n(), _(x, {
252
252
  key: 0,
253
253
  onClick: e[6] || (e[6] = (a) => t.value.startsAt = void 0),
254
254
  variant: "link"
@@ -303,7 +303,7 @@ const fe = { class: "relative @container" }, xe = {
303
303
  _: 1
304
304
  }),
305
305
  t.value.expiresAt ? (n(), i("div", Me, [
306
- p.value ? c("", !0) : (n(), _(x, {
306
+ p.value ? f("", !0) : (n(), _(x, {
307
307
  key: 0,
308
308
  onClick: e[8] || (e[8] = (a) => t.value.expiresAt = void 0),
309
309
  variant: "link"
@@ -355,7 +355,7 @@ const fe = { class: "relative @container" }, xe = {
355
355
  C.value ? (n(), _(h, {
356
356
  key: 0,
357
357
  class: "size-4 animate-spin"
358
- })) : c("", !0),
358
+ })) : f("", !0),
359
359
  e[26] || (e[26] = s(" Update Code ", -1))
360
360
  ]),
361
361
  _: 1
@@ -369,7 +369,7 @@ const fe = { class: "relative @container" }, xe = {
369
369
  _: 1
370
370
  }),
371
371
  s(" " + m(t.value), 1)
372
- ])) : c("", !0)
372
+ ])) : f("", !0)
373
373
  ]);
374
374
  };
375
375
  }
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as B, inject as Q, ref as R, resolveComponent as i, openBlock as d, createBlock as O, withCtx as s, createVNode as n, createElementVNode as o, createTextVNode as v, isRef as N, unref as e, createElementBlock as b, toDisplayString as _, createCommentVNode as f, watch as ee, Fragment as X, renderList as H, normalizeClass as te, computed as oe, onMounted as ne, provide as se } from "vue";
2
- import { f as W, u as S, t as le, o as ie, p as J, c as q, s as F, a as ae, e as de } from "./vee-validate-zod-DNjTLCgh.mjs";
2
+ import { u as W, a as S, t as le, o as ie, p as J, c as q, s as F, b as ae, f as de } from "./vee-validate-zod-CcOwoF6y.mjs";
3
3
  import { r as j } from "./countries-BTPvmrsb.mjs";
4
4
  import { ChevronsUpDown as re, Search as ce, Check as ue, X as pe, Tag as me, ChevronRight as fe, Trash as _e, Loader2 as K } from "lucide-vue-next";
5
5
  import { useModulePermissions as xe, useModuleRoute as ve, useConfirmation as be, useFirebaseIntegration as ge, useModuleBreadcrumbs as he } from "@oneclick.dev/cms-kit";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as ne, inject as tt, resolveComponent as v, openBlock as h, createBlock as L, withCtx as f, createVNode as s, createElementVNode as u, createTextVNode as V, isRef as Y, unref as m, createElementBlock as w, toDisplayString as F, createCommentVNode as O, computed as de, watch as re, useTemplateRef as Ee, ref as X, nextTick as Te, Fragment as J, renderList as ie, withModifiers as fe, onMounted as lt, normalizeClass as $e, withKeys as Yt, provide as dt, withAsyncContext as Kt } from "vue";
2
- import { f as xe, u as U, t as qt, o as Se, a as ve, s as H, p as Ne, c as be, b as Ie, d as ut, e as Jt } from "./vee-validate-zod-DNjTLCgh.mjs";
2
+ import { u as xe, a as U, t as qt, o as Se, b as ve, s as H, p as Ne, c as be, d as Ie, e as ut, f as Jt } from "./vee-validate-zod-CcOwoF6y.mjs";
3
3
  import { Info as Wt, GripVertical as Qe, CircleX as Gt, Trash2 as Zt, PlusCircle as ct, Search as ft, ListFilter as Qt, ChevronDown as pt, X as en, ImagePlus as gt, Plus as tn, Tag as nn, ChevronRight as on, Archive as ln, Trash as rn, Loader2 as mt } from "lucide-vue-next";
4
4
  import { animations as yt } from "@formkit/drag-and-drop";
5
5
  import { useConfirmation as Dt, useModuleRoute as St, useFirebaseIntegration as Ct, useModulePermissions as an, useModuleBreadcrumbs as sn } from "@oneclick.dev/cms-kit";
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),s=require("@oneclick.dev/cms-kit"),o=require("lucide-vue-next"),g={key:1,class:"@container mt-4 w-full"},k={class:"flex flex-col space-y-8 @5xl:flex-row @5xl:space-x-8 @5xl:space-y-0 w-full"},_={key:0,class:"hidden @5xl:block @5xl:w-1/4 @7xl:w-1/5"},C={class:"flex flex-col flex-1"},x={key:0,class:"@5xl:hidden"},b=e.defineComponent({__name:"EditLayout",setup(h){const{params:t,resolvePath:n}=s.useModuleRoute(),{hasPermission:l,isAdmin:c}=s.useModulePermissions(),u=s.useRoute();s.useModuleBreadcrumbs(()=>[{text:"Edit"}]);const r=e.computed(()=>{if(!l("edit-agendas"))return[];let i=[{to:n(`/edit/${t.value.id}/`),title:"Overview",icon:o.ClipboardClock,subtitle:"General info and quick details"},{to:n(`/edit/${t.value.id}/agenda`),title:"Agenda",icon:o.Calendar,subtitle:"Manage scheduled events and sessions"},{to:n(`/edit/${t.value.id}/orders`),title:"Orders",icon:o.Receipt,subtitle:"Manage orders and payments"},{title:"Settings",icon:o.CalendarCog,items:[]}].filter(Boolean),a=[l("manage-resources")?{to:n(`/edit/${t.value.id}/resources`),title:"Resource Management",icon:o.User,subtitle:"Manage resources"}:null,l("manage-overrides")?{to:n(`/edit/${t.value.id}/exceptions`),title:"Override Slots",icon:o.CalendarCog,subtitle:"Adjust or block times"}:null,l("manage-availability")?{to:n(`/edit/${t.value.id}/availability`),title:"Availability Settings",icon:o.Tickets,subtitle:"Booking rules & limits"}:null,l("manage-payment")?{to:n(`/edit/${t.value.id}/payment`),title:"Payment Settings",icon:o.HandCoins,subtitle:"Payment options & policies"}:null,c()?{to:n(`/edit/${t.value.id}/refunds`),title:"Refunds",icon:o.BadgeEuro,subtitle:"Cancel & refund flows"}:null,l("manage-booking-data")?{to:n(`/edit/${t.value.id}/booking-data`),title:"Booking Data",icon:o.FileText,subtitle:"Customer form fields & order metadata"}:null].filter(Boolean);return i.find(d=>d.title==="Settings")?.items?.push(...a),i});return(i,a)=>{const d=e.resolveComponent("NuxtLink"),m=e.resolveComponent("VerticalNav"),f=e.resolveComponent("DrawerNav"),p=e.resolveComponent("CardContent"),v=e.resolveComponent("Card");return!e.unref(l)("edit-agendas")&&!e.unref(u).fullPath.endsWith("/agenda")?(e.openBlock(),e.createBlock(d,{key:0,class:"group",to:e.unref(n)(`/edit/${e.unref(t).id}/agenda`)},{default:e.withCtx(()=>[...a[0]||(a[0]=[e.createTextVNode("You have no access to this page. ",-1),e.createElementVNode("span",{class:"group-hover:underline"},"View agenda",-1)])]),_:1},8,["to"])):(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("div",k,[e.unref(l)("edit-agendas")?(e.openBlock(),e.createElementBlock("div",_,[e.createVNode(m,{links:e.unref(r)},null,8,["links"])])):e.createCommentVNode("",!0),e.createElementVNode("div",C,[e.unref(l)("edit-agendas")?(e.openBlock(),e.createElementBlock("div",x,[e.createVNode(f,{links:e.unref(r)},null,8,["links"])])):e.createCommentVNode("",!0),e.createVNode(v,{class:"flex-1 w-full"},{default:e.withCtx(()=>[e.createVNode(p,null,{default:e.withCtx(()=>[e.renderSlot(i.$slots,"default")]),_:3})]),_:3})])])]))}}});exports._sfc_main=b;
@@ -0,0 +1,77 @@
1
+ import { defineComponent as h, computed as y, resolveComponent as o, unref as n, openBlock as s, createBlock as w, withCtx as u, createTextVNode as $, createElementVNode as c, createElementBlock as m, createVNode as d, createCommentVNode as f, renderSlot as N } from "vue";
2
+ import { useModuleRoute as B, useModulePermissions as M, useRoute as V, useModuleBreadcrumbs as P } from "@oneclick.dev/cms-kit";
3
+ import { ClipboardClock as S, Calendar as E, Receipt as L, CalendarCog as g, User as R, Tickets as A, HandCoins as D, BadgeEuro as O, FileText as T } from "lucide-vue-next";
4
+ const j = {
5
+ key: 1,
6
+ class: "@container mt-4 w-full"
7
+ }, q = { class: "flex flex-col space-y-8 @5xl:flex-row @5xl:space-x-8 @5xl:space-y-0 w-full" }, F = {
8
+ key: 0,
9
+ class: "hidden @5xl:block @5xl:w-1/4 @7xl:w-1/5"
10
+ }, G = { class: "flex flex-col flex-1" }, H = {
11
+ key: 0,
12
+ class: "@5xl:hidden"
13
+ }, I = /* @__PURE__ */ h({
14
+ __name: "EditLayout",
15
+ setup(U) {
16
+ const { params: e, resolvePath: t } = B(), { hasPermission: i, isAdmin: v } = M(), _ = V();
17
+ P(() => [
18
+ { text: "Edit" }
19
+ ]);
20
+ const p = y(() => {
21
+ if (!i("edit-agendas")) return [];
22
+ let l = [
23
+ { to: t(`/edit/${e.value.id}/`), title: "Overview", icon: S, subtitle: "General info and quick details" },
24
+ { to: t(`/edit/${e.value.id}/agenda`), title: "Agenda", icon: E, subtitle: "Manage scheduled events and sessions" },
25
+ { to: t(`/edit/${e.value.id}/orders`), title: "Orders", icon: L, subtitle: "Manage orders and payments" },
26
+ { title: "Settings", icon: g, items: [] }
27
+ ].filter(Boolean), a = [
28
+ i("manage-resources") ? { to: t(`/edit/${e.value.id}/resources`), title: "Resource Management", icon: R, subtitle: "Manage resources" } : null,
29
+ i("manage-overrides") ? { to: t(`/edit/${e.value.id}/exceptions`), title: "Override Slots", icon: g, subtitle: "Adjust or block times" } : null,
30
+ i("manage-availability") ? { to: t(`/edit/${e.value.id}/availability`), title: "Availability Settings", icon: A, subtitle: "Booking rules & limits" } : null,
31
+ i("manage-payment") ? { to: t(`/edit/${e.value.id}/payment`), title: "Payment Settings", icon: D, subtitle: "Payment options & policies" } : null,
32
+ v() ? { to: t(`/edit/${e.value.id}/refunds`), title: "Refunds", icon: O, subtitle: "Cancel & refund flows" } : null,
33
+ i("manage-booking-data") ? { to: t(`/edit/${e.value.id}/booking-data`), title: "Booking Data", icon: T, subtitle: "Customer form fields & order metadata" } : null
34
+ ].filter(Boolean);
35
+ return l.find((r) => r.title === "Settings")?.items?.push(...a), l;
36
+ });
37
+ return (l, a) => {
38
+ const r = o("NuxtLink"), k = o("VerticalNav"), x = o("DrawerNav"), b = o("CardContent"), C = o("Card");
39
+ return !n(i)("edit-agendas") && !n(_).fullPath.endsWith("/agenda") ? (s(), w(r, {
40
+ key: 0,
41
+ class: "group",
42
+ to: n(t)(`/edit/${n(e).id}/agenda`)
43
+ }, {
44
+ default: u(() => [...a[0] || (a[0] = [
45
+ $("You have no access to this page. ", -1),
46
+ c("span", { class: "group-hover:underline" }, "View agenda", -1)
47
+ ])]),
48
+ _: 1
49
+ }, 8, ["to"])) : (s(), m("div", j, [
50
+ c("div", q, [
51
+ n(i)("edit-agendas") ? (s(), m("div", F, [
52
+ d(k, { links: n(p) }, null, 8, ["links"])
53
+ ])) : f("", !0),
54
+ c("div", G, [
55
+ n(i)("edit-agendas") ? (s(), m("div", H, [
56
+ d(x, { links: n(p) }, null, 8, ["links"])
57
+ ])) : f("", !0),
58
+ d(C, { class: "flex-1 w-full" }, {
59
+ default: u(() => [
60
+ d(b, null, {
61
+ default: u(() => [
62
+ N(l.$slots, "default")
63
+ ]),
64
+ _: 3
65
+ })
66
+ ]),
67
+ _: 3
68
+ })
69
+ ])
70
+ ])
71
+ ]));
72
+ };
73
+ }
74
+ });
75
+ export {
76
+ I as _
77
+ };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as Y, ref as _, withAsyncContext as M, watch as $, onMounted as Q, resolveComponent as s, openBlock as d, createElementBlock as j, createElementVNode as c, createVNode as t, unref as v, withCtx as l, createTextVNode as o, createBlock as g, createCommentVNode as T, toDisplayString as i, Fragment as h, renderList as G } from "vue";
2
2
  import { useModulePermissions as J, useModuleRoute as K, useModuleStorage as W, useModuleBreadcrumbs as X, useFirebaseIntegration as Z, useRoute as ee, useRouter as te, useOverlayParams as le } from "@oneclick.dev/cms-kit";
3
3
  import { Plus as ne, Search as oe, Loader2 as se, Pencil as ae } from "lucide-vue-next";
4
- import { u as ue } from "./index-L54VBzwJ.mjs";
4
+ import { u as ue } from "./index-ar4tbR3i.mjs";
5
5
  const re = { class: "relative" }, ie = {
6
6
  ref: "container",
7
7
  class: "w-full max-w-5xl mx-auto"