@oneclick.dev/cms-core-modules 0.0.102 → 0.0.104
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.
- package/dist/AgendaOpeningHoursCard-B7ROIPWw.js +1 -0
- package/dist/AgendaOpeningHoursCard-Cp4wxUeK.mjs +172 -0
- package/dist/AppointmentListTable-DZJNmTMb.mjs +177 -0
- package/dist/AppointmentListTable-Dieu9US_.js +1 -0
- package/dist/{ContentEditor-Cjqgb64R.mjs → ContentEditor-B1nfKG_5.mjs} +706 -677
- package/dist/{ContentEditor-YgOS3kxS.js → ContentEditor-DdFU8piH.js} +15 -16
- package/dist/{Create-6uT9HWar.mjs → Create-BRBh0xjM.mjs} +2 -2
- package/dist/{Create-DuZ5nZrX.js → Create-qPeQxkdl.js} +1 -1
- package/dist/{DateFormatter-2B0R-DY4.mjs → DateFormatter-Bw-87W31.mjs} +212 -227
- package/dist/DateFormatter-CYAD4GBN.js +1 -0
- package/dist/{Detail-BZ-iE9vf.js → Detail-C857g62L.js} +1 -1
- package/dist/{Detail-CJVMJDP7.mjs → Detail-CujdFApD.mjs} +2 -2
- package/dist/EditLayout.vue_vue_type_script_setup_true_lang-DWMqQvHl.mjs +76 -0
- package/dist/EditLayout.vue_vue_type_script_setup_true_lang-kpjbVSXg.js +1 -0
- package/dist/{Entries-DkRhOt95.js → Entries-BaS6H6ak.js} +1 -1
- package/dist/{Entries-dLlCrXXe.mjs → Entries-C8UJkrVC.mjs} +1 -1
- package/dist/{Find-Bd1uLqSa.mjs → Find-B24ZEhYM.mjs} +1 -1
- package/dist/{NewReservationDialog.vue_vue_type_script_setup_true_lang-Bc946oSc.mjs → NewReservationDialog.vue_vue_type_script_setup_true_lang-9Q7TMm4u.mjs} +37 -37
- 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
- package/dist/{Overview-DoOASlNz.mjs → Overview-3HWhsqaz.mjs} +2 -2
- package/dist/{Overview-37nilXzE.js → Overview-CpHhuiaV.js} +1 -1
- package/dist/{Overview-DeQQ0FY3.js → Overview-DAxCu9XC.js} +1 -1
- package/dist/{Overview-C--dq51X.mjs → Overview-D_T3K6aq.mjs} +1 -1
- package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-Cz_22Oce.mjs +2927 -0
- package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-DPPNc-Z5.js +349 -0
- package/dist/TableView-CPAw3h8g.js +4 -0
- package/dist/TableView-DXmEF6pY.mjs +6143 -0
- package/dist/agenda-BNG05SAq.js +1 -0
- package/dist/agenda-D1RxMxBS.mjs +1152 -0
- package/dist/availability-CMrRa5y2.mjs +269 -0
- package/dist/availability-Cf2YfMwM.js +1 -0
- package/dist/booking-data-DgJd0BcM.mjs +889 -0
- package/dist/booking-data-Di5GmH_8.js +1 -0
- package/dist/cms-core-modules.css +1 -1
- package/dist/{exceptions-Bp5BSvxO.js → exceptions-CI0B4xVj.js} +1 -1
- package/dist/{exceptions-C97cNZYl.mjs → exceptions-vo8SA5SE.mjs} +68 -68
- package/dist/index-BtujSJeg.js +35 -0
- package/dist/{index-CrGjxSwa.mjs → index-CrgzoTyR.mjs} +1 -1
- package/dist/{index-D2a6wEPh.js → index-DPd3waTN.js} +1 -1
- package/dist/{index-CABh6Qn6.mjs → index-DrXxXB2F.mjs} +15 -15
- package/dist/{index-B-lVEpFX.mjs → index-MYWjg0zi.mjs} +3 -3
- package/dist/index-dOdMm1pV.mjs +1105 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.mjs +196 -143
- package/dist/interpolation-DEDSLETn.mjs +128 -0
- package/dist/interpolation-DERg6Lwt.js +1 -0
- package/dist/orders-CzzcFQha.mjs +559 -0
- package/dist/orders-ETtbA4aQ.js +1 -0
- package/dist/{payment-Bosr0m3u.mjs → payment-C3ohkehF.mjs} +1 -1
- package/dist/{payment-DDnC03jb.js → payment-Dfr-Ro-a.js} +1 -1
- package/dist/{resources-BtF5RUUq.js → resources-CxeFd57z.js} +1 -1
- package/dist/{resources-B7qDBC91.mjs → resources-WI_4SO6T.mjs} +2 -2
- package/dist/server-handlers.cjs.js +1 -1
- package/dist/server-handlers.mjs +457 -387
- package/dist/src/appointments/chat-components/AgendaOpeningHoursCard.vue.d.ts +15 -0
- package/dist/src/appointments/components/edit/CustomerInformationFieldEditorDialog.vue.d.ts +17 -5
- package/dist/src/appointments/components/edit/EventDialog/BookingsList.vue.d.ts +8 -3
- package/dist/src/appointments/components/edit/EventDialog/EventDialog.vue.d.ts +1 -0
- package/dist/src/appointments/components/edit/EventDialog/ReservationDetailDialog.vue.d.ts +6 -3
- package/dist/src/appointments/components/edit/EventTimeline.vue.d.ts +3 -0
- package/dist/src/appointments/components/edit/EventView.vue.d.ts +6 -1
- package/dist/src/appointments/components/edit/MetadataSchemaEditorDialog.vue.d.ts +12 -0
- package/dist/src/appointments/components/edit/OrderMetadataDisplay.vue.d.ts +21 -0
- package/dist/src/appointments/components/edit/dashboard/BookingsList.vue.d.ts +8 -3
- package/dist/src/appointments/index.d.ts +53 -0
- package/dist/src/appointments/pages/edit/agenda.vue.d.ts +3 -1
- package/dist/src/appointments/pages/edit/availability.vue.d.ts +1 -26
- package/dist/src/appointments/pages/edit/booking-data.vue.d.ts +65 -0
- package/dist/src/appointments/pages/edit/orders.vue.d.ts +7 -3
- package/dist/src/appointments/tools.d.ts +52 -0
- package/dist/src/appointments/types.d.ts +12 -0
- package/dist/src/table/config.d.ts +200 -0
- package/dist/src/table/get_data_flow-DEFAULT.json.d.ts +129 -0
- package/dist/src/table/index.d.ts +200 -0
- package/dist/utils-CanmrIWO.mjs +47 -0
- package/dist/utils-Yd6F5mea.js +3 -0
- package/package.json +2 -2
- package/src/appointments/tools.ts +38 -0
- package/dist/AppointmentListTable-CQ0WIXtj.js +0 -1
- package/dist/AppointmentListTable-aV_UJd6j.mjs +0 -159
- package/dist/DateFormatter-DbtOLV0L.js +0 -1
- package/dist/EditLayout.vue_vue_type_script_setup_true_lang-DXa-Xxue.mjs +0 -74
- package/dist/EditLayout.vue_vue_type_script_setup_true_lang-ozYrxb2g.js +0 -1
- package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-CL5kbDII.mjs +0 -2782
- package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-DcyyNvf6.js +0 -349
- package/dist/TableView-CIJs118q.mjs +0 -5929
- package/dist/TableView-DzZYf34i.js +0 -4
- package/dist/agenda-CCOjPiwP.mjs +0 -1133
- package/dist/agenda-CNPQfaIQ.js +0 -1
- package/dist/availability-B1D4Fyzi.mjs +0 -629
- package/dist/availability-DxrUcYbW.js +0 -1
- package/dist/index-BOnqrBfY.js +0 -35
- package/dist/index-Bj0qaL1N.mjs +0 -1091
- package/dist/interpolation-BBwG_ON6.mjs +0 -65
- package/dist/interpolation-CsOrww73.js +0 -1
- package/dist/orders-BJV5vRQr.mjs +0 -397
- package/dist/orders-C1C5IEIP.js +0 -1
- package/dist/regular-slots-Cc1jmKuC.mjs +0 -222
- package/dist/regular-slots-DBs1XVeN.js +0 -1
- package/dist/src/appointments/pages/edit/regular-slots.vue.d.ts +0 -2
- package/dist/utils-BVKy9S2J.mjs +0 -29
- package/dist/utils-D6CaKJbp.js +0 -2
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import { defineComponent as $, computed as A, ref as x, onMounted as S, resolveComponent as j, openBlock as i, createElementBlock as u, unref as a, createVNode as c, createElementVNode as e, toDisplayString as n, Fragment as D, renderList as P, normalizeClass as z, withCtx as E, createTextVNode as V } from "vue";
|
|
2
|
-
import { Loader2 as q, CalendarDays as F, ExternalLink as M } from "lucide-vue-next";
|
|
3
|
-
const B = { class: "w-full" }, R = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "flex items-center gap-2 py-3"
|
|
6
|
-
}, U = {
|
|
7
|
-
key: 1,
|
|
8
|
-
class: "text-xs text-destructive py-2"
|
|
9
|
-
}, G = {
|
|
10
|
-
key: 2,
|
|
11
|
-
class: "rounded-xl border bg-background p-4 text-center"
|
|
12
|
-
}, H = {
|
|
13
|
-
key: 3,
|
|
14
|
-
class: "rounded-xl border bg-background overflow-hidden"
|
|
15
|
-
}, J = { class: "overflow-x-auto" }, K = { class: "w-full text-xs" }, O = { class: "px-3 py-2" }, Q = { class: "font-medium truncate max-w-[160px]" }, W = { class: "text-muted-foreground truncate max-w-[160px]" }, X = { class: "px-3 py-2 whitespace-nowrap" }, Y = { class: "px-3 py-2 whitespace-nowrap" }, Z = { class: "px-3 py-2 text-center" }, ee = { class: "px-3 py-2" }, te = { class: "px-3 py-2 text-right font-medium whitespace-nowrap" }, se = { class: "px-3 py-2 border-t bg-muted/20 flex items-center justify-between" }, oe = { class: "text-xs text-muted-foreground" }, ae = /* @__PURE__ */ $({
|
|
16
|
-
__name: "AppointmentListTable",
|
|
17
|
-
props: {
|
|
18
|
-
toolName: {},
|
|
19
|
-
instanceId: {},
|
|
20
|
-
instanceName: {},
|
|
21
|
-
moduleType: {},
|
|
22
|
-
resolvedArgs: {},
|
|
23
|
-
status: {}
|
|
24
|
-
},
|
|
25
|
-
emits: ["submit"],
|
|
26
|
-
setup(f, { emit: b }) {
|
|
27
|
-
const { $useRoute: h, $useModuleApi: v } = useNuxtApp(), m = f, y = b, _ = h(), k = A(() => _.params.slug), w = v(m.instanceId), p = x(!0), l = x(null), d = x([]);
|
|
28
|
-
async function I() {
|
|
29
|
-
const t = m.resolvedArgs?.quantity || 20;
|
|
30
|
-
p.value = !0, l.value = null;
|
|
31
|
-
try {
|
|
32
|
-
const s = await w.get(`/appointments?quantity=${t}`);
|
|
33
|
-
d.value = s.appointments || [], g({
|
|
34
|
-
count: d.value.length,
|
|
35
|
-
appointments: d.value.map((o) => ({
|
|
36
|
-
orderId: o.orderId,
|
|
37
|
-
reservationId: o.reservationId,
|
|
38
|
-
customerName: `${o.customerInfo?.firstName || ""} ${o.customerInfo?.lastName || ""}`.trim(),
|
|
39
|
-
email: o.customerInfo?.email,
|
|
40
|
-
date: o.date,
|
|
41
|
-
startTime: o.startTime,
|
|
42
|
-
endTime: o.endTime,
|
|
43
|
-
spots: o.spots,
|
|
44
|
-
status: o.reservationStatus || o.status,
|
|
45
|
-
price: o.reservationPrice
|
|
46
|
-
}))
|
|
47
|
-
});
|
|
48
|
-
} catch (s) {
|
|
49
|
-
l.value = s?.data?.statusMessage || s?.message || "Failed to load appointments", g(`Error loading appointments: ${l.value}`);
|
|
50
|
-
} finally {
|
|
51
|
-
p.value = !1;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
S(() => {
|
|
55
|
-
I();
|
|
56
|
-
});
|
|
57
|
-
function g(t) {
|
|
58
|
-
m.status !== "completed" && y("submit", t);
|
|
59
|
-
}
|
|
60
|
-
const N = (t) => {
|
|
61
|
-
switch (t) {
|
|
62
|
-
case "approved":
|
|
63
|
-
return "text-emerald-600 dark:text-emerald-400 bg-emerald-50 dark:bg-emerald-900/20";
|
|
64
|
-
case "needs_approval":
|
|
65
|
-
return "text-blue-600 dark:text-blue-400 bg-blue-50 dark:bg-blue-900/20";
|
|
66
|
-
case "rejected":
|
|
67
|
-
case "cancelled":
|
|
68
|
-
return "text-red-600 dark:text-red-400 bg-red-50 dark:bg-red-900/20";
|
|
69
|
-
default:
|
|
70
|
-
return "text-amber-600 dark:text-amber-400 bg-amber-50 dark:bg-amber-900/20";
|
|
71
|
-
}
|
|
72
|
-
}, T = (t) => {
|
|
73
|
-
switch (t) {
|
|
74
|
-
case "approved":
|
|
75
|
-
return "Approved";
|
|
76
|
-
case "needs_approval":
|
|
77
|
-
return "Needs Approval";
|
|
78
|
-
case "rejected":
|
|
79
|
-
return "Rejected";
|
|
80
|
-
case "cancelled":
|
|
81
|
-
return "Cancelled";
|
|
82
|
-
case "confirmed":
|
|
83
|
-
return "Confirmed";
|
|
84
|
-
default:
|
|
85
|
-
return t || "Pending";
|
|
86
|
-
}
|
|
87
|
-
}, C = (t) => t == null ? "—" : `€${t.toFixed(2)}`, L = (t) => {
|
|
88
|
-
if (!t) return "—";
|
|
89
|
-
try {
|
|
90
|
-
return new Date(t).toLocaleDateString("en-US", { weekday: "short", month: "short", day: "numeric" });
|
|
91
|
-
} catch {
|
|
92
|
-
return t;
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
return (t, s) => {
|
|
96
|
-
const o = j("NuxtLink");
|
|
97
|
-
return i(), u("div", B, [
|
|
98
|
-
a(p) ? (i(), u("div", R, [
|
|
99
|
-
c(a(q), { class: "size-4 animate-spin text-muted-foreground" }),
|
|
100
|
-
s[0] || (s[0] = e("span", { class: "text-xs text-muted-foreground" }, "Loading appointments…", -1))
|
|
101
|
-
])) : a(l) ? (i(), u("div", U, n(a(l)), 1)) : a(d).length === 0 ? (i(), u("div", G, [
|
|
102
|
-
c(a(F), { class: "size-8 text-muted-foreground mx-auto mb-2" }),
|
|
103
|
-
s[1] || (s[1] = e("p", { class: "text-sm text-muted-foreground" }, "No recent appointments found.", -1))
|
|
104
|
-
])) : (i(), u("div", H, [
|
|
105
|
-
e("div", J, [
|
|
106
|
-
e("table", K, [
|
|
107
|
-
s[2] || (s[2] = e("thead", null, [
|
|
108
|
-
e("tr", { class: "border-b bg-muted/40" }, [
|
|
109
|
-
e("th", { class: "text-left px-3 py-2 font-medium text-muted-foreground" }, "Customer"),
|
|
110
|
-
e("th", { class: "text-left px-3 py-2 font-medium text-muted-foreground" }, "Date"),
|
|
111
|
-
e("th", { class: "text-left px-3 py-2 font-medium text-muted-foreground" }, "Time"),
|
|
112
|
-
e("th", { class: "text-center px-3 py-2 font-medium text-muted-foreground" }, "Spots"),
|
|
113
|
-
e("th", { class: "text-left px-3 py-2 font-medium text-muted-foreground" }, "Status"),
|
|
114
|
-
e("th", { class: "text-right px-3 py-2 font-medium text-muted-foreground" }, "Price")
|
|
115
|
-
])
|
|
116
|
-
], -1)),
|
|
117
|
-
e("tbody", null, [
|
|
118
|
-
(i(!0), u(D, null, P(a(d), (r) => (i(), u("tr", {
|
|
119
|
-
key: r.reservationId || r.orderId,
|
|
120
|
-
class: "border-b last:border-b-0 hover:bg-muted/30 transition-colors"
|
|
121
|
-
}, [
|
|
122
|
-
e("td", O, [
|
|
123
|
-
e("div", Q, n(r.customerInfo?.firstName) + " " + n(r.customerInfo?.lastName), 1),
|
|
124
|
-
e("div", W, n(r.customerInfo?.email), 1)
|
|
125
|
-
]),
|
|
126
|
-
e("td", X, n(L(r.date)), 1),
|
|
127
|
-
e("td", Y, n(r.startTime) + " – " + n(r.endTime), 1),
|
|
128
|
-
e("td", Z, n(r.spots || 1), 1),
|
|
129
|
-
e("td", ee, [
|
|
130
|
-
e("span", {
|
|
131
|
-
class: z(["inline-block text-[10px] font-medium px-1.5 py-0.5 rounded-full uppercase whitespace-nowrap", N(r.reservationStatus || r.status)])
|
|
132
|
-
}, n(T(r.reservationStatus || r.status)), 3)
|
|
133
|
-
]),
|
|
134
|
-
e("td", te, n(C(r.reservationPrice)), 1)
|
|
135
|
-
]))), 128))
|
|
136
|
-
])
|
|
137
|
-
])
|
|
138
|
-
]),
|
|
139
|
-
e("div", se, [
|
|
140
|
-
e("span", oe, n(a(d).length) + " appointment" + n(a(d).length === 1 ? "" : "s"), 1),
|
|
141
|
-
c(o, {
|
|
142
|
-
to: `/projects/${a(k)}/modules/${f.instanceId}`,
|
|
143
|
-
class: "inline-flex items-center gap-1.5 text-xs text-primary hover:underline"
|
|
144
|
-
}, {
|
|
145
|
-
default: E(() => [
|
|
146
|
-
c(a(M), { class: "size-3" }),
|
|
147
|
-
s[3] || (s[3] = V(" View all ", -1))
|
|
148
|
-
]),
|
|
149
|
-
_: 1
|
|
150
|
-
}, 8, ["to"])
|
|
151
|
-
])
|
|
152
|
-
]))
|
|
153
|
-
]);
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
export {
|
|
158
|
-
ae as default
|
|
159
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function R(e,t){return e-t*Math.floor(e/t)}const Q=1721426;function E(e,t,r,n){t=j(e,t);let a=t-1,o=-2;return r<=2?o=0:T(t)&&(o=-1),Q-1+365*a+Math.floor(a/4)-Math.floor(a/100)+Math.floor(a/400)+Math.floor((367*r-362)/12+o+n)}function T(e){return e%4===0&&(e%100!==0||e%400===0)}function j(e,t){return e==="BC"?1-t:t}function $e(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const ye={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class v{fromJulianDay(t){let r=t,n=r-Q,a=Math.floor(n/146097),o=R(n,146097),c=Math.floor(o/36524),i=R(o,36524),l=Math.floor(i/1461),h=R(i,1461),M=Math.floor(h/365),w=a*400+c*100+l*4+M+(c!==4&&M!==4?1:0),[g,m]=$e(w),y=r-E(g,m,1,1),O=2;r<E(g,m,3,1)?O=0:T(m)&&(O=1);let z=Math.floor(((y+O)*12+373)/367),de=r-E(g,m,z,1)+1;return new p(g,m,z,de)}toJulianDay(t){return E(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return ye[T(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return T(t.year)?366:365}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}function me(e,t){var r,n,a,o;return(o=(a=(r=e.isEqual)===null||r===void 0?void 0:r.call(e,t))!==null&&a!==void 0?a:(n=t.isEqual)===null||n===void 0?void 0:n.call(t,e))!==null&&o!==void 0?o:e.identifier===t.identifier}function be(e){return d(Date.now(),e)}function pe(e){return De(be(e))}function X(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function Me(e,t){return L(e)-L(t)}function L(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let P=null,we=!1;function _(){return P==null&&(P=new Intl.DateTimeFormat().resolvedOptions().timeZone),P}function ee(){return we}function D(e){e=f(e,new v);let t=j(e.era,e.year);return te(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function te(e,t,r,n,a,o,c){let i=new Date;return i.setUTCHours(n,a,o,c),i.setUTCFullYear(e,t-1,r),i.getTime()}function H(e,t){if(t==="UTC")return 0;if(e>0&&t===_()&&!ee())return new Date(e).getTimezoneOffset()*-6e4;let{year:r,month:n,day:a,hour:o,minute:c,second:i}=re(e,t);return te(r,n,a,o,c,i,0)-Math.floor(e/1e3)*1e3}const K=new Map;function re(e,t){let r=K.get(t);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),K.set(t,r));let n=r.formatToParts(new Date(e)),a={};for(let o of n)o.type!=="literal"&&(a[o.type]=o.value);return{year:a.era==="BC"||a.era==="B"?-a.year+1:+a.year,month:+a.month,day:+a.day,hour:a.hour==="24"?0:+a.hour,minute:+a.minute,second:+a.second}}const G=864e5;function ge(e,t,r,n){return(r===n?[r]:[r,n]).filter(o=>ve(e,t,o))}function ve(e,t,r){let n=re(r,t);return e.year===n.year&&e.month===n.month&&e.day===n.day&&e.hour===n.hour&&e.minute===n.minute&&e.second===n.second}function u(e,t,r="compatible"){let n=x(e);if(t==="UTC")return D(n);if(t===_()&&r==="compatible"&&!ee()){n=f(n,new v);let l=new Date,h=j(n.era,n.year);return l.setFullYear(h,n.month-1,n.day),l.setHours(n.hour,n.minute,n.second,n.millisecond),l.getTime()}let a=D(n),o=H(a-G,t),c=H(a+G,t),i=ge(n,t,a-o,a-c);if(i.length===1)return i[0];if(i.length>1)switch(r){case"compatible":case"earlier":return i[0];case"later":return i[i.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(r){case"earlier":return Math.min(a-o,a-c);case"compatible":case"later":return Math.max(a-o,a-c);case"reject":throw new RangeError("No such absolute time found")}}function ne(e,t,r="compatible"){return new Date(u(e,t,r))}function d(e,t){let r=H(e,t),n=new Date(e+r),a=n.getUTCFullYear(),o=n.getUTCMonth()+1,c=n.getUTCDate(),i=n.getUTCHours(),l=n.getUTCMinutes(),h=n.getUTCSeconds(),M=n.getUTCMilliseconds();return new C(a<1?"BC":"AD",a<1?-a+1:a,o,c,t,r,i,l,h,M)}function De(e){return new p(e.calendar,e.era,e.year,e.month,e.day)}function x(e,t){let r=0,n=0,a=0,o=0;if("timeZone"in e)({hour:r,minute:n,second:a,millisecond:o}=e);else if("hour"in e&&!t)return e;return t&&({hour:r,minute:n,second:a,millisecond:o}=t),new S(e.calendar,e.era,e.year,e.month,e.day,r,n,a,o)}function f(e,t){if(me(e.calendar,t))return e;let r=t.fromJulianDay(e.calendar.toJulianDay(e)),n=e.copy();return n.calendar=t,n.era=r.era,n.year=r.year,n.month=r.month,n.day=r.day,b(n),n}function xe(e,t,r){if(e instanceof C)return e.timeZone===t?e:Se(e,t);let n=u(e,t,r);return d(n,t)}function Ie(e){let t=D(e)-e.offset;return new Date(t)}function Se(e,t){let r=D(e)-e.offset;return f(d(r,t),e.calendar)}const I=36e5;function B(e,t){let r=e.copy(),n="hour"in r?Te(r,t):0;F(r,t.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,e),r.month+=t.months||0,q(r),ae(r),r.day+=(t.weeks||0)*7,r.day+=t.days||0,r.day+=n,Ce(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let a=r.calendar.getYearsInEra(r);if(r.year>a){var o,c;let l=(o=(c=r.calendar).isInverseEra)===null||o===void 0?void 0:o.call(c,r);r.year=a,r.month=l?1:r.calendar.getMonthsInYear(r),r.day=l?1:r.calendar.getDaysInMonth(r)}r.month<1&&(r.month=1,r.day=1);let i=r.calendar.getMonthsInYear(r);return r.month>i&&(r.month=i,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function F(e,t){var r,n;!((r=(n=e.calendar).isInverseEra)===null||r===void 0)&&r.call(n,e)&&(t=-t),e.year+=t}function q(e){for(;e.month<1;)F(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,F(e,1)}function Ce(e){for(;e.day<1;)e.month--,q(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,q(e)}function ae(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function b(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),ae(e)}function oe(e){let t={};for(let r in e)typeof e[r]=="number"&&(t[r]=-e[r]);return t}function ce(e,t){return B(e,oe(t))}function J(e,t){let r=e.copy();return t.era!=null&&(r.era=t.era),t.year!=null&&(r.year=t.year),t.month!=null&&(r.month=t.month),t.day!=null&&(r.day=t.day),b(r),r}function U(e,t){let r=e.copy();return t.hour!=null&&(r.hour=t.hour),t.minute!=null&&(r.minute=t.minute),t.second!=null&&(r.second=t.second),t.millisecond!=null&&(r.millisecond=t.millisecond),Ye(r),r}function Ee(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Y(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Y(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Y(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Y(e.hour,24),t}function Ye(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function Y(e,t){let r=e%t;return r<0&&(r+=t),r}function Te(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,Ee(e)}function N(e,t,r,n){let a=e.copy();switch(t){case"era":{let i=e.calendar.getEras(),l=i.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=$(l,r,0,i.length-1,n?.round),a.era=i[l],b(a);break}case"year":var o,c;!((o=(c=a.calendar).isInverseEra)===null||o===void 0)&&o.call(c,a)&&(r=-r),a.year=$(e.year,r,-1/0,9999,n?.round),a.year===-1/0&&(a.year=1),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,e);break;case"month":a.month=$(e.month,r,1,e.calendar.getMonthsInYear(e),n?.round);break;case"day":a.day=$(e.day,r,1,e.calendar.getDaysInMonth(e),n?.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(a),b(a),a}function ie(e,t,r,n){let a=e.copy();switch(t){case"hour":{let o=e.hour,c=0,i=23;if(n?.hourCycle===12){let l=o>=12;c=l?12:0,i=l?23:11}a.hour=$(o,r,c,i,n?.round);break}case"minute":a.minute=$(e.minute,r,0,59,n?.round);break;case"second":a.second=$(e.second,r,0,59,n?.round);break;case"millisecond":a.millisecond=$(e.millisecond,r,0,999,n?.round);break;default:throw new Error("Unsupported field "+t)}return a}function $(e,t,r,n,a=!1){if(a){e+=Math.sign(t),e<r&&(e=n);let o=Math.abs(t);t>0?e=Math.ceil(e/o)*o:e=Math.floor(e/o)*o,e>n&&(e=r)}else e+=t,e<r?e=n-(r-e-1):e>n&&(e=r+(e-n-1));return e}function le(e,t){let r;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let a=B(x(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});r=u(a,e.timeZone)}else r=D(e)-e.offset;r+=t.milliseconds||0,r+=(t.seconds||0)*1e3,r+=(t.minutes||0)*6e4,r+=(t.hours||0)*36e5;let n=d(r,e.timeZone);return f(n,e.calendar)}function Ue(e,t){return le(e,oe(t))}function Be(e,t,r,n){switch(t){case"hour":{let a=0,o=23;if(n?.hourCycle===12){let y=e.hour>=12;a=y?12:0,o=y?23:11}let c=x(e),i=f(U(c,{hour:a}),new v),l=[u(i,e.timeZone,"earlier"),u(i,e.timeZone,"later")].filter(y=>d(y,e.timeZone).day===i.day)[0],h=f(U(c,{hour:o}),new v),M=[u(h,e.timeZone,"earlier"),u(h,e.timeZone,"later")].filter(y=>d(y,e.timeZone).day===h.day).pop(),w=D(e)-e.offset,g=Math.floor(w/I),m=w%I;return w=$(g,r,Math.floor(l/I),Math.floor(M/I),n?.round)*I+m,f(d(w,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return ie(e,t,r,n);case"era":case"year":case"month":case"day":{let a=N(x(e),t,r,n),o=u(a,e.timeZone);return f(d(o,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function Oe(e,t,r){let n=x(e),a=U(J(n,t),t);if(a.compare(n)===0)return e;let o=u(a,e.timeZone,r);return f(d(o,e.timeZone),e.calendar)}const Re=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,Pe=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,se=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function ke(e){let t=e.match(Re);if(!t)throw se.test(e)?new Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date string: "+e);let r=new p(s(t[1],0,9999),s(t[2],1,12),1);return r.day=s(t[3],1,r.calendar.getDaysInMonth(r)),r}function Ae(e){let t=e.match(Pe);if(!t)throw se.test(e)?new Error(`Invalid ISO 8601 date time string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date time string: "+e);let r=s(t[1],-9999,9999),n=r<1?"BC":"AD",a=new S(n,r<1?-r+1:r,s(t[2],1,12),1,t[4]?s(t[4],0,23):0,t[5]?s(t[5],0,59):0,t[6]?s(t[6],0,59):0,t[7]?s(t[7],0,1/0)*1e3:0);return a.day=s(t[3],0,a.calendar.getDaysInMonth(a)),a}function s(e,t,r){let n=Number(e);if(n<t||n>r)throw new RangeError(`Value out of range: ${t} <= ${n} <= ${r}`);return n}function Ze(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function fe(e){let t=f(e,new v),r;return t.era==="BC"?r=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):r=String(t.year).padStart(4,"0"),`${r}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function he(e){return`${fe(e)}T${Ze(e)}`}function He(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let r=Math.floor(e/36e5),n=Math.floor(e%36e5/6e4),a=Math.floor(e%36e5%6e4/1e3),o=`${t}${String(r).padStart(2,"0")}:${String(n).padStart(2,"0")}`;return a!==0&&(o+=`:${String(a).padStart(2,"0")}`),o}function Fe(e){return`${he(e)}${He(e.offset)}[${e.timeZone}]`}function qe(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function V(e,t,r){qe(e,t),t.set(e,r)}function W(e){let t=typeof e[0]=="object"?e.shift():new v,r;if(typeof e[0]=="string")r=e.shift();else{let c=t.getEras();r=c[c.length-1]}let n=e.shift(),a=e.shift(),o=e.shift();return[t,r,n,a,o]}var je=new WeakMap;class p{copy(){return this.era?new p(this.calendar,this.era,this.year,this.month,this.day):new p(this.calendar,this.year,this.month,this.day)}add(t){return B(this,t)}subtract(t){return ce(this,t)}set(t){return J(this,t)}cycle(t,r,n){return N(this,t,r,n)}toDate(t){return ne(this,t)}toString(){return fe(this)}compare(t){return X(this,t)}constructor(...t){V(this,je,{writable:!0,value:void 0});let[r,n,a,o,c]=W(t);this.calendar=r,this.era=n,this.year=a,this.month=o,this.day=c,b(this)}}var _e=new WeakMap;class S{copy(){return this.era?new S(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new S(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return B(this,t)}subtract(t){return ce(this,t)}set(t){return J(U(this,t),t)}cycle(t,r,n){switch(t){case"era":case"year":case"month":case"day":return N(this,t,r,n);default:return ie(this,t,r,n)}}toDate(t,r){return ne(this,t,r)}toString(){return he(this)}compare(t){let r=X(this,t);return r===0?Me(this,x(t)):r}constructor(...t){V(this,_e,{writable:!0,value:void 0});let[r,n,a,o,c]=W(t);this.calendar=r,this.era=n,this.year=a,this.month=o,this.day=c,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,b(this)}}var Je=new WeakMap;class C{copy(){return this.era?new C(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new C(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return le(this,t)}subtract(t){return Ue(this,t)}set(t,r){return Oe(this,t,r)}cycle(t,r,n){return Be(this,t,r,n)}toDate(){return Ie(this)}toString(){return Fe(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-xe(t,this.timeZone).toDate().getTime()}constructor(...t){V(this,Je,{writable:!0,value:void 0});let[r,n,a,o,c]=W(t),i=t.shift(),l=t.shift();this.calendar=r,this.era=n,this.year=a,this.month=o,this.day=c,this.timeZone=i,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,b(this)}}let k=new Map;class Ne{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,r){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(r)}`}formatRangeToParts(t,r){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let n=this.formatter.formatToParts(t),a=this.formatter.formatToParts(r);return[...n.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...a.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return ze()&&(this.resolvedHourCycle||(this.resolvedHourCycle=Le(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,r={}){this.formatter=ue(t,r),this.options=r}}const Ve={true:{ja:"h11"},false:{}};function ue(e,t={}){if(typeof t.hour12=="boolean"&&We()){t={...t};let a=Ve[String(t.hour12)][e.split("-")[0]],o=t.hour12?"h12":"h23";t.hourCycle=a??o,delete t.hour12}let r=e+(t?Object.entries(t).sort((a,o)=>a[0]<o[0]?-1:1).join():"");if(k.has(r))return k.get(r);let n=new Intl.DateTimeFormat(e,t);return k.set(r,n),n}let A=null;function We(){return A==null&&(A=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),A}let Z=null;function ze(){return Z==null&&(Z=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Z}function Le(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let r=ue(e,{...t,timeZone:void 0}),n=parseInt(r.formatToParts(new Date(2020,2,3,0)).find(o=>o.type==="hour").value,10),a=parseInt(r.formatToParts(new Date(2020,2,3,23)).find(o=>o.type==="hour").value,10);if(n===0&&a===23)return"h23";if(n===24&&a===23)return"h24";if(n===0&&a===11)return"h11";if(n===12&&a===11)return"h12";throw new Error("Unexpected hour cycle result")}exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=_;exports.$14e0f24ef4ac5c92$export$d0bdf45af03a6ea3=pe;exports.$35ea8db9cb2ccb90$export$99faa760c7908e4f=p;exports.$fae977aafc393c5c$export$588937bcd60ade55=Ae;exports.$fae977aafc393c5c$export$6b862160d295c8e=ke;exports.$fb18d541ea1ad717$export$ad991b66133851cf=Ne;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { defineComponent as y, ref as w, resolveComponent as n, unref as o, openBlock as s, createBlock as N, withCtx as d, createTextVNode as $, createElementVNode as c, createElementBlock as r, createVNode as a, createCommentVNode as v, renderSlot as M } from "vue";
|
|
2
|
-
import { useModuleRoute as V, useModulePermissions as P, useRoute as A, useModuleBreadcrumbs as B, useModule as E, useFirebaseIntegration as L } from "@oneclick.dev/cms-kit";
|
|
3
|
-
import { ClipboardClock as R, Calendar as S, Receipt as O, User as j, CalendarCog as D, Tickets as T, HandCoins as q } from "lucide-vue-next";
|
|
4
|
-
const F = {
|
|
5
|
-
key: 1,
|
|
6
|
-
class: "@container mt-4 w-full"
|
|
7
|
-
}, G = { class: "flex flex-col space-y-8 @5xl:flex-row @5xl:space-x-8 @5xl:space-y-0 w-full" }, H = {
|
|
8
|
-
key: 0,
|
|
9
|
-
class: "hidden @5xl:block @5xl:w-1/4 @7xl:w-1/5"
|
|
10
|
-
}, I = { class: "flex flex-col flex-1" }, U = {
|
|
11
|
-
key: 0,
|
|
12
|
-
class: "@5xl:hidden"
|
|
13
|
-
}, Q = /* @__PURE__ */ y({
|
|
14
|
-
__name: "EditLayout",
|
|
15
|
-
setup(W) {
|
|
16
|
-
const { params: e, resolvePath: t } = V(), { hasPermission: i } = P(), _ = A();
|
|
17
|
-
B(() => [
|
|
18
|
-
{ text: "Edit" }
|
|
19
|
-
]);
|
|
20
|
-
const { config: u } = E(), g = L(u.project), f = w(null);
|
|
21
|
-
(async () => {
|
|
22
|
-
let l = await g.get(u.agendaCollection, e.value.id);
|
|
23
|
-
f.value = l;
|
|
24
|
-
})();
|
|
25
|
-
const m = [
|
|
26
|
-
{ to: t(`/edit/${e.value.id}/`), title: "Overview", icon: R, subtitle: "General info and quick details" },
|
|
27
|
-
{ to: t(`/edit/${e.value.id}/agenda`), title: "Agenda", icon: S, subtitle: "Manage scheduled events and sessions" },
|
|
28
|
-
{ to: t(`/edit/${e.value.id}/orders`), title: "Orders", icon: O, subtitle: "Manage orders and payments" },
|
|
29
|
-
{ to: t(`/edit/${e.value.id}/resources`), title: "Resource Management", icon: j, subtitle: "Manage resources" },
|
|
30
|
-
{ to: t(`/edit/${e.value.id}/exceptions`), title: "Override Slots", icon: D, subtitle: "Adjust or block times" },
|
|
31
|
-
{ to: t(`/edit/${e.value.id}/availability`), title: "Availability Settings", icon: T, subtitle: "Booking rules & limits" },
|
|
32
|
-
{ to: t(`/edit/${e.value.id}/payment`), title: "Payment Settings", icon: q, subtitle: "Payment options & policies" }
|
|
33
|
-
];
|
|
34
|
-
return (l, p) => {
|
|
35
|
-
const x = n("NuxtLink"), k = n("VerticalNav"), C = n("DrawerNav"), b = n("CardContent"), h = n("Card");
|
|
36
|
-
return !o(i)("edit-agendas") && !o(_).fullPath.endsWith("/agenda") ? (s(), N(x, {
|
|
37
|
-
key: 0,
|
|
38
|
-
class: "group",
|
|
39
|
-
to: o(t)(`/edit/${o(e).id}/agenda`)
|
|
40
|
-
}, {
|
|
41
|
-
default: d(() => [...p[0] || (p[0] = [
|
|
42
|
-
$("You have no access to this page. ", -1),
|
|
43
|
-
c("span", { class: "group-hover:underline" }, "View agenda", -1)
|
|
44
|
-
])]),
|
|
45
|
-
_: 1
|
|
46
|
-
}, 8, ["to"])) : (s(), r("div", F, [
|
|
47
|
-
c("div", G, [
|
|
48
|
-
o(i)("edit-agendas") ? (s(), r("div", H, [
|
|
49
|
-
a(k, { links: m })
|
|
50
|
-
])) : v("", !0),
|
|
51
|
-
c("div", I, [
|
|
52
|
-
o(i)("edit-agendas") ? (s(), r("div", U, [
|
|
53
|
-
a(C, { links: m })
|
|
54
|
-
])) : v("", !0),
|
|
55
|
-
a(h, { class: "flex-1 w-full" }, {
|
|
56
|
-
default: d(() => [
|
|
57
|
-
a(b, null, {
|
|
58
|
-
default: d(() => [
|
|
59
|
-
M(l.$slots, "default")
|
|
60
|
-
]),
|
|
61
|
-
_: 3
|
|
62
|
-
})
|
|
63
|
-
]),
|
|
64
|
-
_: 3
|
|
65
|
-
})
|
|
66
|
-
])
|
|
67
|
-
])
|
|
68
|
-
]));
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
export {
|
|
73
|
-
Q as _
|
|
74
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),s=require("@oneclick.dev/cms-kit"),n=require("lucide-vue-next"),x={key:1,class:"@container mt-4 w-full"},C={class:"flex flex-col space-y-8 @5xl:flex-row @5xl:space-x-8 @5xl:space-y-0 w-full"},k={key:0,class:"hidden @5xl:block @5xl:w-1/4 @7xl:w-1/5"},h={class:"flex flex-col flex-1"},N={key:0,class:"@5xl:hidden"},b=e.defineComponent({__name:"EditLayout",setup(w){const{params:t,resolvePath:o}=s.useModuleRoute(),{hasPermission:a}=s.useModulePermissions(),r=s.useRoute();s.useModuleBreadcrumbs(()=>[{text:"Edit"}]);const{config:i}=s.useModule(),u=s.useFirebaseIntegration(i.project),m=e.ref(null);(async()=>{let l=await u.get(i.agendaCollection,t.value.id);m.value=l})();const c=[{to:o(`/edit/${t.value.id}/`),title:"Overview",icon:n.ClipboardClock,subtitle:"General info and quick details"},{to:o(`/edit/${t.value.id}/agenda`),title:"Agenda",icon:n.Calendar,subtitle:"Manage scheduled events and sessions"},{to:o(`/edit/${t.value.id}/orders`),title:"Orders",icon:n.Receipt,subtitle:"Manage orders and payments"},{to:o(`/edit/${t.value.id}/resources`),title:"Resource Management",icon:n.User,subtitle:"Manage resources"},{to:o(`/edit/${t.value.id}/exceptions`),title:"Override Slots",icon:n.CalendarCog,subtitle:"Adjust or block times"},{to:o(`/edit/${t.value.id}/availability`),title:"Availability Settings",icon:n.Tickets,subtitle:"Booking rules & limits"},{to:o(`/edit/${t.value.id}/payment`),title:"Payment Settings",icon:n.HandCoins,subtitle:"Payment options & policies"}];return(l,d)=>{const p=e.resolveComponent("NuxtLink"),v=e.resolveComponent("VerticalNav"),_=e.resolveComponent("DrawerNav"),g=e.resolveComponent("CardContent"),f=e.resolveComponent("Card");return!e.unref(a)("edit-agendas")&&!e.unref(r).fullPath.endsWith("/agenda")?(e.openBlock(),e.createBlock(p,{key:0,class:"group",to:e.unref(o)(`/edit/${e.unref(t).id}/agenda`)},{default:e.withCtx(()=>[...d[0]||(d[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",x,[e.createElementVNode("div",C,[e.unref(a)("edit-agendas")?(e.openBlock(),e.createElementBlock("div",k,[e.createVNode(v,{links:c})])):e.createCommentVNode("",!0),e.createElementVNode("div",h,[e.unref(a)("edit-agendas")?(e.openBlock(),e.createElementBlock("div",N,[e.createVNode(_,{links:c})])):e.createCommentVNode("",!0),e.createVNode(f,{class:"flex-1 w-full"},{default:e.withCtx(()=>[e.createVNode(g,null,{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3})]),_:3})])])]))}}});exports._sfc_main=b;
|