@oneclick.dev/cms-core-modules 0.0.59 → 0.0.61
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/{Components-D9yIIosM.mjs → Components-C83O-xlF.mjs} +1 -1
- package/dist/{ContentEditor-DCmt_y_R.js → ContentEditor-BAepN3Yd.js} +51 -34
- package/dist/{ContentEditor-CtGeIzC4.mjs → ContentEditor-BPjWW3d1.mjs} +12341 -10099
- package/dist/Create-Bh4g6QW4.js +1 -0
- package/dist/{Create-Bwf1RXdG.mjs → Create-Cf7pvh5G.mjs} +38 -39
- package/dist/DateFormatter-BPPBZp1j.js +1 -0
- package/dist/{CalendarDate-CRT2Viyt.mjs → DateFormatter-DsmlAuYV.mjs} +353 -256
- package/dist/{Detail-CpfOQChd.mjs → Detail-B4b_FLDa.mjs} +2 -2
- package/dist/{Detail-B-PnkcXD.mjs → Detail-BGD75ul4.mjs} +2 -2
- package/dist/{Detail-Dd_OkpcN.js → Detail-BayNaAg9.js} +1 -1
- package/dist/{Detail-C4E1T87K.mjs → Detail-Byk781b4.mjs} +3 -3
- package/dist/{Detail-Cd5CBVN0.js → Detail-CnK-qbhE.js} +1 -1
- package/dist/Detail-CtbWzq-R.js +1 -0
- package/dist/{Detail-CNfTDUE5.js → Detail-Cxd2VMOl.js} +1 -1
- package/dist/{Detail-BVlGSjOq.mjs → Detail-D10shmpK.mjs} +6 -7
- package/dist/{Detail-CwagT6gQ.mjs → Detail-U0mgLKt6.mjs} +2 -2
- package/dist/EditLayout.vue_vue_type_script_setup_true_lang-CcysXzmW.mjs +75 -0
- package/dist/EditLayout.vue_vue_type_script_setup_true_lang-Czu6Dcde.js +1 -0
- package/dist/{Entries-zyhycw1M.mjs → Entries-C6Di46My.mjs} +1 -1
- package/dist/{Find-BPR0uU-Z.mjs → Find-B4sAEx0B.mjs} +2 -2
- package/dist/{Find-BidEQJxT.js → Find-Ds6OvuH6.js} +1 -1
- package/dist/{GlobalStyling-BLQ_1W2y.mjs → GlobalStyling-C9VthHWK.mjs} +1 -1
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-BJitmbPE.mjs +396 -0
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-D50uTpZY.js +1 -0
- package/dist/Overview-B-8TLLjh.js +1 -0
- package/dist/{Overview-CDN88OSM.mjs → Overview-BCpJNiEB.mjs} +1 -1
- package/dist/Overview-B_99j5eA.js +1 -0
- package/dist/{Overview-BLsZMHNW.mjs → Overview-CIa1E-HH.mjs} +1 -1
- package/dist/{Overview-D1nJLBe1.mjs → Overview-CgViRnNc.mjs} +1 -1
- package/dist/Overview-DtWvKB3W.mjs +327 -0
- package/dist/Overview-HvlDEgqi.mjs +862 -0
- package/dist/{Overview-BH3NwvNX.mjs → Overview-Su8ZUbMs.mjs} +3 -3
- package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-CI8YgHdU.js +345 -0
- package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-P-MWwcVh.mjs +2093 -0
- package/dist/{TableView-CS13LLxk.mjs → TableView-DlhHyuUZ.mjs} +48394 -36321
- package/dist/TableView-_2cP-w_7.js +312 -0
- package/dist/{TemplateList.vue_vue_type_script_setup_true_lang-BiLAkhIA.mjs → TemplateList.vue_vue_type_script_setup_true_lang-Cmovy7kk.mjs} +5 -5
- package/dist/{View-C7axVP9t.mjs → View-DDXN0tKD.mjs} +7 -7
- package/dist/View-DfzaVOzS.js +1 -0
- package/dist/agenda-D81m29_4.mjs +1135 -0
- package/dist/agenda-uzPPxgsW.js +1 -0
- package/dist/availability-B-tRp8hB.mjs +629 -0
- package/dist/availability-BiBbzEIM.js +1 -0
- package/dist/{exceptions-D3b18TiY.mjs → exceptions-BFchkR06.mjs} +70 -71
- package/dist/exceptions-C-DPRNQa.js +1 -0
- package/dist/index-4tjmIans.js +1 -0
- package/dist/index-AmUV8LZQ.mjs +176 -0
- package/dist/index-BDaVYdkD.mjs +7763 -0
- package/dist/{index-DT1wWnUk.mjs → index-BWDwEd8D.mjs} +1 -1
- package/dist/{index-CImCyE3L.mjs → index-BfBBm9uY.mjs} +1 -1
- package/dist/{index-DMoyoaks.mjs → index-Bkq58CeQ.mjs} +2 -2
- package/dist/{index-DI6mydpm.mjs → index-CABh6Qn6.mjs} +2 -2
- package/dist/{index-CQiY-oTN.mjs → index-CQkOH2_3.mjs} +1 -1
- package/dist/{index-Bwi1mtkq.mjs → index-CU-tbS5W.mjs} +1 -1
- package/dist/{index-BzuHN-r8.mjs → index-Cpnn_Pxd.mjs} +1 -1
- package/dist/index-CxETuRsG.js +1 -0
- package/dist/{index-DyCHxFp3.mjs → index-DRqJOqUR.mjs} +502 -449
- package/dist/index-DTago6vW-Bhr8E1Y6.js +88 -0
- package/dist/index-DTago6vW-CnomHQ_S.mjs +4123 -0
- package/dist/index-DfV8-6ON.js +245 -0
- package/dist/index-Dnn2SCSl.js +1 -0
- package/dist/{index-BEGU8Kme.mjs → index-Dpl9sU6a.mjs} +2 -2
- package/dist/index-Uf7TwBuW.mjs +110 -0
- package/dist/{index-CKPshlZ8-BQiiP6r_.mjs → index-YMaY4uuk-BshejgNP.mjs} +400 -363
- package/dist/index-YMaY4uuk-BxVT7IpO.js +1 -0
- package/dist/{index--jjEzba7.mjs → index-cOnxXTbF.mjs} +1 -1
- package/dist/index-hlylYYgy.mjs +24 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.mjs +98 -81
- package/dist/orders-Bh8w0ueq.mjs +346 -0
- package/dist/orders-Dt0zMz97.js +1 -0
- package/dist/payment-BQaAqQ5q.js +1 -0
- package/dist/payment-BbWByERf.mjs +1080 -0
- package/dist/regular-1LXNPviB.js +1 -0
- package/dist/regular-_05oq5Tx.mjs +1101 -0
- package/dist/regular-slots-Bs3WJB3U.js +1 -0
- package/dist/regular-slots-C2NYxLPn.mjs +222 -0
- package/dist/resources-DgPnEv76.mjs +811 -0
- package/dist/resources-eb0pivDL.js +1 -0
- package/dist/src/appointments/components/edit/EditLayout.vue.d.ts +2 -2
- package/dist/src/appointments/components/edit/EventDialog/BookingsList.vue.d.ts +92 -0
- package/dist/src/appointments/components/edit/EventDialog/CancelReservationDialog.vue.d.ts +8 -0
- package/dist/src/appointments/components/edit/EventDialog/EventDialog.vue.d.ts +10 -0
- package/dist/src/appointments/components/edit/{EventDialog.vue.d.ts → EventDialog/ResendConfirmationDialog.vue.d.ts} +1 -1
- package/dist/src/appointments/components/edit/EventDialog/ReservationDetailDialog.vue.d.ts +51 -0
- package/dist/src/appointments/components/edit/EventDialog/TimelineChart.vue.d.ts +24 -0
- package/dist/src/appointments/components/edit/EventDialog/TransferReservationDialog.vue.d.ts +4 -0
- package/dist/src/appointments/components/edit/EventTimeline.vue.d.ts +15 -7
- package/dist/src/appointments/components/edit/NewReservationDialog/NewReservationDialog.vue.d.ts +2 -0
- package/dist/src/appointments/components/edit/dashboard/BookingsList.vue.d.ts +68 -0
- package/dist/src/appointments/components/edit/dashboard/Timeline.vue.d.ts +15 -0
- package/dist/src/appointments/components/edit/dashboard/timeline/ResourceSelector.vue.d.ts +50 -0
- package/dist/src/appointments/config.d.ts +30 -0
- package/dist/src/appointments/index.d.ts +32 -5
- package/dist/src/appointments/pages/edit/agenda.vue.d.ts +1 -1
- package/dist/src/appointments/pages/edit/availability.vue.d.ts +1 -1
- package/dist/src/appointments/pages/edit/index.vue.d.ts +1 -1
- package/dist/src/appointments/pages/edit/orders.vue.d.ts +64 -0
- package/dist/src/appointments/pages/edit/payment.vue.d.ts +1 -1
- package/dist/src/appointments/pages/edit/regular-slots.vue.d.ts +1 -1
- package/dist/src/appointments/pages/edit/resources.vue.d.ts +1 -1
- package/dist/src/appointments/routes.d.ts +2 -5
- package/dist/src/appointments/types.d.ts +16 -0
- package/dist/src/appointments/utils/printReservation.d.ts +45 -0
- package/dist/src/content-manager/components/content-editor/ContentStructuredContentSections.vue.d.ts +4 -0
- package/dist/src/content-manager/components/content-editor/PageSettings.vue.d.ts +2 -0
- package/dist/src/content-manager/components/content-editor/SidebarSectionWrapper.vue.d.ts +11 -1
- package/dist/src/content-manager/types.d.ts +5 -0
- package/dist/{vee-validate-zod-BPQyEfpF.js → vee-validate-zod-ByykgYKJ.js} +1 -1
- package/dist/{vee-validate-zod-IXkfh-6Q.mjs → vee-validate-zod-CcOwoF6y.mjs} +4 -4
- package/package.json +4 -2
- package/dist/CalendarDate-CWtpXgpD.js +0 -1
- package/dist/Create-BP8TX6rj.js +0 -1
- package/dist/DateFormatter-BbcSwTs4.js +0 -1
- package/dist/DateFormatter-CbO0PVUK.mjs +0 -99
- package/dist/Detail-DUo6qKqO.js +0 -1
- package/dist/EditLayout.vue_vue_type_script_setup_true_lang-BWuKVkvV.js +0 -1
- package/dist/EditLayout.vue_vue_type_script_setup_true_lang-D0-EcU0_.mjs +0 -55
- package/dist/Overview-BNMZ9MUK.js +0 -1
- package/dist/Overview-CEPodGCn.mjs +0 -311
- package/dist/Overview-CvquDPhB.js +0 -1
- package/dist/Overview-D67UjG6n.mjs +0 -947
- package/dist/RegularSlotEditor.vue_vue_type_script_setup_true_lang-0xZSq0rx.js +0 -1
- package/dist/RegularSlotEditor.vue_vue_type_script_setup_true_lang-Bj_PVLLV.mjs +0 -392
- package/dist/TableView-Dv4YXBD1.js +0 -111
- package/dist/View-7qb_ohVo.js +0 -1
- package/dist/agenda-B49oKGeh.mjs +0 -706
- package/dist/agenda-DipQ5IWP.js +0 -1
- package/dist/availability-C7q9tq6l.js +0 -1
- package/dist/availability-DeCkqiu8.mjs +0 -613
- package/dist/exceptions-DJ9zWX3k.js +0 -1
- package/dist/index-CKPshlZ8-CIz1tDwX.js +0 -1
- package/dist/index-DUeFrD-B.js +0 -1
- package/dist/index-DsnoK4ia.mjs +0 -579
- package/dist/index-WL1P6d3j.js +0 -1
- package/dist/index-_mG-aU3Z.mjs +0 -87
- package/dist/index-_sQDF1pH.js +0 -1
- package/dist/index-klI238nT.mjs +0 -24
- package/dist/payment-kTjsV0Jj.js +0 -1
- package/dist/payment-zpCM0LD-.mjs +0 -981
- package/dist/regular-C4_3YXqx.mjs +0 -602
- package/dist/regular-DFwPEbZO.js +0 -1
- package/dist/regular-slots-4ooEpICB.mjs +0 -67
- package/dist/regular-slots-BAVGbomI.js +0 -1
- package/dist/resources-MpQkSstv.mjs +0 -563
- package/dist/resources-iM28T3dD.js +0 -1
- package/dist/src/appointments/components/edit/RegularSlotEditor.vue.d.ts +0 -16
|
@@ -1,613 +0,0 @@
|
|
|
1
|
-
import { defineComponent as W, ref as S, reactive as J, resolveComponent as a, createBlock as g, openBlock as c, withCtx as i, createVNode as t, createElementVNode as d, createTextVNode as u, createElementBlock as y, createCommentVNode as w, Fragment as j, renderList as H, toDisplayString as M, unref as C } from "vue";
|
|
2
|
-
import { _ as Y } from "./EditLayout.vue_vue_type_script_setup_true_lang-D0-EcU0_.mjs";
|
|
3
|
-
import { Pencil as Z, Eye as h, EyeOff as ee, Trash2 as te, PlusCircle as ie } from "lucide-vue-next";
|
|
4
|
-
import { useModuleRoute as oe, useModule as le, useFirebaseIntegration as ne } from "@oneclick.dev/cms-kit";
|
|
5
|
-
const se = { class: "space-y-6 py-4" }, ae = { key: 0 }, de = { key: 1 }, ue = { class: "flex items-center gap-3" }, re = { class: "w-full flex justify-between items-center" }, me = { class: "flex items-center gap-2 ml-auto" }, ce = /* @__PURE__ */ W({
|
|
6
|
-
__name: "CustomerInformationFieldEditorDialog",
|
|
7
|
-
emits: ["add-field", "update-field", "remove-field"],
|
|
8
|
-
setup(K, { expose: A, emit: T }) {
|
|
9
|
-
const N = T, v = S(!1), l = S("add"), s = J({
|
|
10
|
-
id: "",
|
|
11
|
-
fieldName: "",
|
|
12
|
-
fieldDescription: "",
|
|
13
|
-
fieldType: "text",
|
|
14
|
-
required: !1,
|
|
15
|
-
isNativeField: !1,
|
|
16
|
-
visible: !0,
|
|
17
|
-
options: []
|
|
18
|
-
}), D = [
|
|
19
|
-
{ value: "text", label: "Text Box" },
|
|
20
|
-
{ value: "checkbox", label: "Checkbox" },
|
|
21
|
-
{ value: "radio", label: "Radio Button" },
|
|
22
|
-
{ value: "select", label: "Select" }
|
|
23
|
-
], k = (f) => {
|
|
24
|
-
l.value = f ? "edit" : "add", s.id = f?.id || "", s.fieldName = f?.fieldName || "", s.fieldDescription = f?.fieldDescription || "", s.fieldType = f?.fieldType || "text", s.required = f?.required || !1, s.isNativeField = f?.isNativeField || !1, s.options = f?.options || [], s.visible = f?.visible !== void 0 ? f.visible : !0, v.value = !0;
|
|
25
|
-
}, L = () => {
|
|
26
|
-
v.value = !1;
|
|
27
|
-
}, R = () => {
|
|
28
|
-
N("add-field", { ...s }), v.value = !1;
|
|
29
|
-
}, U = () => {
|
|
30
|
-
N("update-field", { ...s }), v.value = !1;
|
|
31
|
-
}, $ = () => {
|
|
32
|
-
N("remove-field", s.id), v.value = !1;
|
|
33
|
-
};
|
|
34
|
-
return A({
|
|
35
|
-
openDialog: k
|
|
36
|
-
}), (f, n) => {
|
|
37
|
-
const o = a("DialogTitle"), e = a("DialogHeader"), p = a("Label"), b = a("Input"), B = a("SelectValue"), x = a("SelectTrigger"), P = a("SelectItem"), E = a("SelectContent"), V = a("Select"), q = a("TagsInputItemText"), z = a("TagsInputItemDelete"), G = a("TagsInputItem"), F = a("TagsInputInput"), _ = a("TagsInput"), r = a("Checkbox"), I = a("Button"), O = a("DialogFooter"), Q = a("DialogScrollContent"), X = a("Dialog");
|
|
38
|
-
return c(), g(X, {
|
|
39
|
-
open: v.value,
|
|
40
|
-
"onUpdate:open": n[5] || (n[5] = (m) => v.value = m)
|
|
41
|
-
}, {
|
|
42
|
-
default: i(() => [
|
|
43
|
-
t(Q, { class: "sm:max-w-2xl" }, {
|
|
44
|
-
default: i(() => [
|
|
45
|
-
t(e, null, {
|
|
46
|
-
default: i(() => [
|
|
47
|
-
t(o, null, {
|
|
48
|
-
default: i(() => [...n[6] || (n[6] = [
|
|
49
|
-
u("Customer Information", -1)
|
|
50
|
-
])]),
|
|
51
|
-
_: 1
|
|
52
|
-
})
|
|
53
|
-
]),
|
|
54
|
-
_: 1
|
|
55
|
-
}),
|
|
56
|
-
d("div", se, [
|
|
57
|
-
d("div", null, [
|
|
58
|
-
t(p, {
|
|
59
|
-
class: "text-bsmase font-normal mb-1.5",
|
|
60
|
-
for: "customer-info-field-dialog-fieldname"
|
|
61
|
-
}, {
|
|
62
|
-
default: i(() => [...n[7] || (n[7] = [
|
|
63
|
-
u("Field Name", -1)
|
|
64
|
-
])]),
|
|
65
|
-
_: 1
|
|
66
|
-
}),
|
|
67
|
-
t(b, {
|
|
68
|
-
modelValue: s.fieldName,
|
|
69
|
-
"onUpdate:modelValue": n[0] || (n[0] = (m) => s.fieldName = m),
|
|
70
|
-
id: "customer-info-field-dialog-fieldname"
|
|
71
|
-
}, null, 8, ["modelValue"])
|
|
72
|
-
]),
|
|
73
|
-
d("div", null, [
|
|
74
|
-
t(p, {
|
|
75
|
-
class: "text-sm font-normal mb-1.5",
|
|
76
|
-
for: "customer-info-field-dialog-field-description"
|
|
77
|
-
}, {
|
|
78
|
-
default: i(() => [...n[8] || (n[8] = [
|
|
79
|
-
u("Field Description", -1)
|
|
80
|
-
])]),
|
|
81
|
-
_: 1
|
|
82
|
-
}),
|
|
83
|
-
t(b, {
|
|
84
|
-
modelValue: s.fieldDescription,
|
|
85
|
-
"onUpdate:modelValue": n[1] || (n[1] = (m) => s.fieldDescription = m),
|
|
86
|
-
id: "customer-info-field-dialog-field-description"
|
|
87
|
-
}, null, 8, ["modelValue"])
|
|
88
|
-
]),
|
|
89
|
-
s.isNativeField ? w("", !0) : (c(), y("div", ae, [
|
|
90
|
-
t(p, { class: "text-sm font-normal mb-1.5" }, {
|
|
91
|
-
default: i(() => [...n[9] || (n[9] = [
|
|
92
|
-
u("Field Type", -1)
|
|
93
|
-
])]),
|
|
94
|
-
_: 1
|
|
95
|
-
}),
|
|
96
|
-
t(V, {
|
|
97
|
-
modelValue: s.fieldType,
|
|
98
|
-
"onUpdate:modelValue": n[2] || (n[2] = (m) => s.fieldType = m)
|
|
99
|
-
}, {
|
|
100
|
-
default: i(() => [
|
|
101
|
-
t(x, null, {
|
|
102
|
-
default: i(() => [
|
|
103
|
-
t(B, { placeholder: "Select field type" })
|
|
104
|
-
]),
|
|
105
|
-
_: 1
|
|
106
|
-
}),
|
|
107
|
-
t(E, null, {
|
|
108
|
-
default: i(() => [
|
|
109
|
-
(c(), y(j, null, H(D, (m) => t(P, {
|
|
110
|
-
key: m.value,
|
|
111
|
-
value: m.value
|
|
112
|
-
}, {
|
|
113
|
-
default: i(() => [
|
|
114
|
-
u(M(m.label), 1)
|
|
115
|
-
]),
|
|
116
|
-
_: 2
|
|
117
|
-
}, 1032, ["value"])), 64))
|
|
118
|
-
]),
|
|
119
|
-
_: 1
|
|
120
|
-
})
|
|
121
|
-
]),
|
|
122
|
-
_: 1
|
|
123
|
-
}, 8, ["modelValue"])
|
|
124
|
-
])),
|
|
125
|
-
s.fieldType === "select" || s.fieldType === "radio" ? (c(), y("div", de, [
|
|
126
|
-
t(p, {
|
|
127
|
-
class: "text-sm font-normal mb-1.5",
|
|
128
|
-
for: "customer-info-field-dialog-field-new-option"
|
|
129
|
-
}, {
|
|
130
|
-
default: i(() => [...n[10] || (n[10] = [
|
|
131
|
-
u("Options", -1)
|
|
132
|
-
])]),
|
|
133
|
-
_: 1
|
|
134
|
-
}),
|
|
135
|
-
t(_, {
|
|
136
|
-
modelValue: s.options,
|
|
137
|
-
"onUpdate:modelValue": n[3] || (n[3] = (m) => s.options = m)
|
|
138
|
-
}, {
|
|
139
|
-
default: i(() => [
|
|
140
|
-
(c(!0), y(j, null, H(s.options, (m) => (c(), g(G, {
|
|
141
|
-
key: m,
|
|
142
|
-
value: m
|
|
143
|
-
}, {
|
|
144
|
-
default: i(() => [
|
|
145
|
-
t(q),
|
|
146
|
-
t(z)
|
|
147
|
-
]),
|
|
148
|
-
_: 1
|
|
149
|
-
}, 8, ["value"]))), 128)),
|
|
150
|
-
t(F, {
|
|
151
|
-
placeholder: "New option...",
|
|
152
|
-
id: "customer-info-field-dialog-field-new-option"
|
|
153
|
-
})
|
|
154
|
-
]),
|
|
155
|
-
_: 1
|
|
156
|
-
}, 8, ["modelValue"])
|
|
157
|
-
])) : w("", !0),
|
|
158
|
-
d("div", ue, [
|
|
159
|
-
t(r, {
|
|
160
|
-
id: "customer-info-field-dialog-field-required",
|
|
161
|
-
modelValue: s.required,
|
|
162
|
-
"onUpdate:modelValue": n[4] || (n[4] = (m) => s.required = m)
|
|
163
|
-
}, null, 8, ["modelValue"]),
|
|
164
|
-
t(p, {
|
|
165
|
-
for: "customer-info-field-dialog-field-required",
|
|
166
|
-
class: "text-base font-normal cursor-pointer"
|
|
167
|
-
}, {
|
|
168
|
-
default: i(() => [...n[11] || (n[11] = [
|
|
169
|
-
u(" Is this field mandatory? ", -1)
|
|
170
|
-
])]),
|
|
171
|
-
_: 1
|
|
172
|
-
})
|
|
173
|
-
])
|
|
174
|
-
]),
|
|
175
|
-
t(O, { class: "gap-2" }, {
|
|
176
|
-
default: i(() => [
|
|
177
|
-
d("div", re, [
|
|
178
|
-
l.value === "edit" && !s.isNativeField ? (c(), g(I, {
|
|
179
|
-
key: 0,
|
|
180
|
-
variant: "destructive",
|
|
181
|
-
onClick: $
|
|
182
|
-
}, {
|
|
183
|
-
default: i(() => [...n[12] || (n[12] = [
|
|
184
|
-
u(" Remove Field ", -1)
|
|
185
|
-
])]),
|
|
186
|
-
_: 1
|
|
187
|
-
})) : w("", !0),
|
|
188
|
-
d("div", me, [
|
|
189
|
-
t(I, {
|
|
190
|
-
variant: "outline",
|
|
191
|
-
onClick: L
|
|
192
|
-
}, {
|
|
193
|
-
default: i(() => [...n[13] || (n[13] = [
|
|
194
|
-
u(" Cancel ", -1)
|
|
195
|
-
])]),
|
|
196
|
-
_: 1
|
|
197
|
-
}),
|
|
198
|
-
l.value === "add" ? (c(), g(I, {
|
|
199
|
-
key: 0,
|
|
200
|
-
onClick: R
|
|
201
|
-
}, {
|
|
202
|
-
default: i(() => [...n[14] || (n[14] = [
|
|
203
|
-
u(" Add Field ", -1)
|
|
204
|
-
])]),
|
|
205
|
-
_: 1
|
|
206
|
-
})) : (c(), g(I, {
|
|
207
|
-
key: 1,
|
|
208
|
-
onClick: U
|
|
209
|
-
}, {
|
|
210
|
-
default: i(() => [...n[15] || (n[15] = [
|
|
211
|
-
u(" Update Field ", -1)
|
|
212
|
-
])]),
|
|
213
|
-
_: 1
|
|
214
|
-
}))
|
|
215
|
-
])
|
|
216
|
-
])
|
|
217
|
-
]),
|
|
218
|
-
_: 1
|
|
219
|
-
})
|
|
220
|
-
]),
|
|
221
|
-
_: 1
|
|
222
|
-
})
|
|
223
|
-
]),
|
|
224
|
-
_: 1
|
|
225
|
-
}, 8, ["open"]);
|
|
226
|
-
};
|
|
227
|
-
}
|
|
228
|
-
}), pe = {
|
|
229
|
-
key: 0,
|
|
230
|
-
class: "max-w-2xl"
|
|
231
|
-
}, fe = {
|
|
232
|
-
key: 0,
|
|
233
|
-
class: "text-sm text-orange-500 mt-2"
|
|
234
|
-
}, ve = { class: "border rounded-md p-4 mb-4" }, ge = { class: "font-medium text-sm" }, ye = { class: "flex justify-start mt-8" }, Ne = /* @__PURE__ */ W({
|
|
235
|
-
__name: "availability",
|
|
236
|
-
setup(K) {
|
|
237
|
-
const { params: A } = oe(), { config: T } = le(), N = ne(T.project), v = [
|
|
238
|
-
{
|
|
239
|
-
id: "1",
|
|
240
|
-
fieldName: "First Name",
|
|
241
|
-
fieldType: "text",
|
|
242
|
-
required: !0,
|
|
243
|
-
visible: !0,
|
|
244
|
-
isNativeField: !0
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
id: "2",
|
|
248
|
-
fieldName: "Last Name",
|
|
249
|
-
fieldType: "text",
|
|
250
|
-
required: !0,
|
|
251
|
-
visible: !0,
|
|
252
|
-
isNativeField: !0
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
id: "3",
|
|
256
|
-
fieldName: "Phone No",
|
|
257
|
-
fieldType: "tel",
|
|
258
|
-
required: !0,
|
|
259
|
-
visible: !0,
|
|
260
|
-
isNativeField: !0
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
id: "4",
|
|
264
|
-
fieldName: "Email",
|
|
265
|
-
fieldType: "email",
|
|
266
|
-
required: !0,
|
|
267
|
-
visible: !0,
|
|
268
|
-
isNativeField: !0
|
|
269
|
-
}
|
|
270
|
-
], l = J({
|
|
271
|
-
minimumAdvanceNotice: {
|
|
272
|
-
value: 0,
|
|
273
|
-
unit: "minutes"
|
|
274
|
-
},
|
|
275
|
-
serviceVisibility: 60,
|
|
276
|
-
capacity: "",
|
|
277
|
-
maxTicketsPerReservation: "",
|
|
278
|
-
customerInformationFields: [...v]
|
|
279
|
-
}), s = S(!1), D = S(!0), k = S(null), L = async () => {
|
|
280
|
-
s.value = !0;
|
|
281
|
-
try {
|
|
282
|
-
const o = A.value.id;
|
|
283
|
-
if (!o) throw new Error("Missing agenda ID");
|
|
284
|
-
await N.update(T.agendaCollection, o, {
|
|
285
|
-
minimumAdvanceNotice: {
|
|
286
|
-
value: Number(l.minimumAdvanceNotice?.value) || 0,
|
|
287
|
-
unit: l.minimumAdvanceNotice?.unit ?? "minutes"
|
|
288
|
-
},
|
|
289
|
-
serviceVisibility: Math.max(Number(l.serviceVisibility) || 1, 1),
|
|
290
|
-
capacity: Math.max(Number(l.capacity) || 0, 0),
|
|
291
|
-
maxTicketsPerReservation: Math.max(Number(l.maxTicketsPerReservation) || 0, 0),
|
|
292
|
-
customerInformationFields: l.customerInformationFields ?? []
|
|
293
|
-
});
|
|
294
|
-
} catch (o) {
|
|
295
|
-
console.error("Error saving changes:", o);
|
|
296
|
-
} finally {
|
|
297
|
-
s.value = !1;
|
|
298
|
-
}
|
|
299
|
-
}, R = async (o) => {
|
|
300
|
-
delete o.isNativeField, o.fieldType !== "radio" && o.fieldType !== "select" && delete o.options;
|
|
301
|
-
let e = Math.random().toString(36).substr(2, 9);
|
|
302
|
-
for (; l.customerInformationFields.find((p) => p.id === e); )
|
|
303
|
-
e = Math.random().toString(36).substr(2, 9);
|
|
304
|
-
l.customerInformationFields.push({ ...o, id: e });
|
|
305
|
-
}, U = async (o) => {
|
|
306
|
-
o.isNativeField || delete o.isNativeField, o.fieldType !== "radio" && o.fieldType !== "select" && delete o.options;
|
|
307
|
-
const e = l.customerInformationFields.findIndex((p) => p.id === o.id);
|
|
308
|
-
e !== -1 && (l.customerInformationFields[e] = { ...o });
|
|
309
|
-
}, $ = async (o) => {
|
|
310
|
-
l.customerInformationFields = l.customerInformationFields.filter((e) => e.id !== o);
|
|
311
|
-
}, f = async () => {
|
|
312
|
-
try {
|
|
313
|
-
const o = await N.get(T.agendaCollection, A.value.id);
|
|
314
|
-
o && (console.log("Loaded agenda data:", o), l.minimumAdvanceNotice = o.minimumAdvanceNotice || { value: 0, unit: "minutes" }, l.serviceVisibility = o.serviceVisibility || 60, l.capacity = Number(o.capacity) && o.capacity > 0 ? parseInt(o.capacity) : "", l.maxTicketsPerReservation = Number(o.maxTicketsPerReservation) && o.maxTicketsPerReservation > 0 ? parseInt(o.maxTicketsPerReservation) : "", l.customerInformationFields = o.customerInformationFields || [...v]);
|
|
315
|
-
} catch (o) {
|
|
316
|
-
console.error("Error loading agenda data:", o);
|
|
317
|
-
} finally {
|
|
318
|
-
D.value = !1;
|
|
319
|
-
}
|
|
320
|
-
}, n = () => {
|
|
321
|
-
let o = Math.abs(l.minimumAdvanceNotice.value), e = l.minimumAdvanceNotice.unit;
|
|
322
|
-
return o === 1 ? (e.endsWith("s") && (e = e.slice(0, -1)), `Lead time is negative. Bookings remain open for 1 ${e} after the slot has started.`) : `Lead time is negative. Bookings remain open for ${o} ${e} after the slot has started.`;
|
|
323
|
-
};
|
|
324
|
-
return f(), (o, e) => {
|
|
325
|
-
const p = a("Label"), b = a("InputGroupInput"), B = a("Search"), x = a("InputGroupAddon"), P = a("SelectValue"), E = a("SelectTrigger"), V = a("SelectItem"), q = a("SelectGroup"), z = a("SelectContent"), G = a("Select"), F = a("InputGroup"), _ = a("Button");
|
|
326
|
-
return c(), g(Y, null, {
|
|
327
|
-
default: i(() => [
|
|
328
|
-
e[28] || (e[28] = d("h1", { class: "text-lg font-medium mb-8" }, "Availability Settings", -1)),
|
|
329
|
-
D.value ? w("", !0) : (c(), y("div", pe, [
|
|
330
|
-
d("div", null, [
|
|
331
|
-
t(p, {
|
|
332
|
-
for: "lead-time",
|
|
333
|
-
class: "text-base font-medium mb-2"
|
|
334
|
-
}, {
|
|
335
|
-
default: i(() => [...e[7] || (e[7] = [
|
|
336
|
-
u(" Minimum Advance Notice - Lead Time (Optional) ", -1)
|
|
337
|
-
])]),
|
|
338
|
-
_: 1
|
|
339
|
-
}),
|
|
340
|
-
t(F, { class: "max-w-md" }, {
|
|
341
|
-
default: i(() => [
|
|
342
|
-
t(b, {
|
|
343
|
-
placeholder: "0",
|
|
344
|
-
id: "lead-time",
|
|
345
|
-
modelValue: l.minimumAdvanceNotice.value,
|
|
346
|
-
"onUpdate:modelValue": e[0] || (e[0] = (r) => l.minimumAdvanceNotice.value = r),
|
|
347
|
-
modelModifiers: { value: !0 },
|
|
348
|
-
type: "number",
|
|
349
|
-
class: "no-spinner"
|
|
350
|
-
}, null, 8, ["modelValue"]),
|
|
351
|
-
t(x, null, {
|
|
352
|
-
default: i(() => [
|
|
353
|
-
t(B)
|
|
354
|
-
]),
|
|
355
|
-
_: 1
|
|
356
|
-
}),
|
|
357
|
-
t(x, { align: "inline-end" }, {
|
|
358
|
-
default: i(() => [
|
|
359
|
-
t(G, {
|
|
360
|
-
modelValue: l.minimumAdvanceNotice.unit,
|
|
361
|
-
"onUpdate:modelValue": e[1] || (e[1] = (r) => l.minimumAdvanceNotice.unit = r)
|
|
362
|
-
}, {
|
|
363
|
-
default: i(() => [
|
|
364
|
-
t(E, { class: "w-[180px] border-0 bg-transparent -mr-1.5" }, {
|
|
365
|
-
default: i(() => [
|
|
366
|
-
t(P)
|
|
367
|
-
]),
|
|
368
|
-
_: 1
|
|
369
|
-
}),
|
|
370
|
-
t(z, null, {
|
|
371
|
-
default: i(() => [
|
|
372
|
-
t(q, null, {
|
|
373
|
-
default: i(() => [
|
|
374
|
-
t(V, { value: "minutes" }, {
|
|
375
|
-
default: i(() => [...e[8] || (e[8] = [
|
|
376
|
-
u(" Minutes ", -1)
|
|
377
|
-
])]),
|
|
378
|
-
_: 1
|
|
379
|
-
}),
|
|
380
|
-
t(V, { value: "hours" }, {
|
|
381
|
-
default: i(() => [...e[9] || (e[9] = [
|
|
382
|
-
u(" Hours ", -1)
|
|
383
|
-
])]),
|
|
384
|
-
_: 1
|
|
385
|
-
}),
|
|
386
|
-
t(V, { value: "days" }, {
|
|
387
|
-
default: i(() => [...e[10] || (e[10] = [
|
|
388
|
-
u(" Days ", -1)
|
|
389
|
-
])]),
|
|
390
|
-
_: 1
|
|
391
|
-
})
|
|
392
|
-
]),
|
|
393
|
-
_: 1
|
|
394
|
-
})
|
|
395
|
-
]),
|
|
396
|
-
_: 1
|
|
397
|
-
})
|
|
398
|
-
]),
|
|
399
|
-
_: 1
|
|
400
|
-
}, 8, ["modelValue"])
|
|
401
|
-
]),
|
|
402
|
-
_: 1
|
|
403
|
-
})
|
|
404
|
-
]),
|
|
405
|
-
_: 1
|
|
406
|
-
}),
|
|
407
|
-
e[11] || (e[11] = d("p", { class: "text-sm text-muted-foreground mt-2" }, " Set how far in advance a customer must book your slot. ", -1)),
|
|
408
|
-
l.minimumAdvanceNotice.value < 0 ? (c(), y("p", fe, M(n()), 1)) : w("", !0)
|
|
409
|
-
]),
|
|
410
|
-
e[24] || (e[24] = d("hr", { class: "my-8" }, null, -1)),
|
|
411
|
-
d("div", null, [
|
|
412
|
-
t(p, {
|
|
413
|
-
for: "service-visibility",
|
|
414
|
-
class: "text-base font-medium mb-2"
|
|
415
|
-
}, {
|
|
416
|
-
default: i(() => [...e[12] || (e[12] = [
|
|
417
|
-
u(" Service Visibility ", -1)
|
|
418
|
-
])]),
|
|
419
|
-
_: 1
|
|
420
|
-
}),
|
|
421
|
-
t(F, { class: "max-w-md" }, {
|
|
422
|
-
default: i(() => [
|
|
423
|
-
t(b, {
|
|
424
|
-
id: "service-visibility",
|
|
425
|
-
modelValue: l.serviceVisibility,
|
|
426
|
-
"onUpdate:modelValue": e[2] || (e[2] = (r) => l.serviceVisibility = r),
|
|
427
|
-
modelModifiers: { number: !0 },
|
|
428
|
-
placeholder: "1",
|
|
429
|
-
type: "number",
|
|
430
|
-
class: "no-spinner",
|
|
431
|
-
min: "1",
|
|
432
|
-
onBlur: e[3] || (e[3] = (r) => l.serviceVisibility = Math.max(l.serviceVisibility, 1))
|
|
433
|
-
}, null, 8, ["modelValue"]),
|
|
434
|
-
t(x, { align: "inline-end" }, {
|
|
435
|
-
default: i(() => [...e[13] || (e[13] = [
|
|
436
|
-
u(" days ", -1)
|
|
437
|
-
])]),
|
|
438
|
-
_: 1
|
|
439
|
-
})
|
|
440
|
-
]),
|
|
441
|
-
_: 1
|
|
442
|
-
}),
|
|
443
|
-
e[14] || (e[14] = d("p", { class: "text-sm text-muted-foreground mt-2" }, " Set how many days in advance the service is visible to customers. ", -1))
|
|
444
|
-
]),
|
|
445
|
-
e[25] || (e[25] = d("hr", { class: "my-8" }, null, -1)),
|
|
446
|
-
d("div", null, [
|
|
447
|
-
t(p, {
|
|
448
|
-
for: "capacity",
|
|
449
|
-
class: "text-base font-medium mb-2"
|
|
450
|
-
}, {
|
|
451
|
-
default: i(() => [...e[15] || (e[15] = [
|
|
452
|
-
u(" Default Capacity ", -1)
|
|
453
|
-
])]),
|
|
454
|
-
_: 1
|
|
455
|
-
}),
|
|
456
|
-
t(F, { class: "max-w-md" }, {
|
|
457
|
-
default: i(() => [
|
|
458
|
-
t(b, {
|
|
459
|
-
placeholder: "∞",
|
|
460
|
-
type: "number",
|
|
461
|
-
id: "capacity",
|
|
462
|
-
class: "no-spinner",
|
|
463
|
-
min: "1",
|
|
464
|
-
modelValue: l.capacity,
|
|
465
|
-
"onUpdate:modelValue": e[4] || (e[4] = (r) => l.capacity = r),
|
|
466
|
-
modelModifiers: { number: !0 }
|
|
467
|
-
}, null, 8, ["modelValue"]),
|
|
468
|
-
t(x, { align: "inline-end" }, {
|
|
469
|
-
default: i(() => [...e[16] || (e[16] = [
|
|
470
|
-
u(" available spots ", -1)
|
|
471
|
-
])]),
|
|
472
|
-
_: 1
|
|
473
|
-
})
|
|
474
|
-
]),
|
|
475
|
-
_: 1
|
|
476
|
-
}),
|
|
477
|
-
e[17] || (e[17] = d("p", { class: "text-sm text-muted-foreground mt-2" }, " Default number of bookings per time slot. Individual resources can override this with their own capacity. ", -1))
|
|
478
|
-
]),
|
|
479
|
-
e[26] || (e[26] = d("hr", { class: "my-8" }, null, -1)),
|
|
480
|
-
d("div", null, [
|
|
481
|
-
t(p, {
|
|
482
|
-
for: "max-capacity",
|
|
483
|
-
class: "text-base font-medium mb-2"
|
|
484
|
-
}, {
|
|
485
|
-
default: i(() => [...e[18] || (e[18] = [
|
|
486
|
-
u(" Maximum Tickets Per Booking ", -1)
|
|
487
|
-
])]),
|
|
488
|
-
_: 1
|
|
489
|
-
}),
|
|
490
|
-
t(F, { class: "max-w-md" }, {
|
|
491
|
-
default: i(() => [
|
|
492
|
-
t(b, {
|
|
493
|
-
placeholder: "∞",
|
|
494
|
-
type: "number",
|
|
495
|
-
id: "max-capacity",
|
|
496
|
-
class: "no-spinner",
|
|
497
|
-
min: "1",
|
|
498
|
-
modelValue: l.maxTicketsPerReservation,
|
|
499
|
-
"onUpdate:modelValue": e[5] || (e[5] = (r) => l.maxTicketsPerReservation = r),
|
|
500
|
-
modelModifiers: { number: !0 }
|
|
501
|
-
}, null, 8, ["modelValue"]),
|
|
502
|
-
t(x, { align: "inline-end" }, {
|
|
503
|
-
default: i(() => [...e[19] || (e[19] = [
|
|
504
|
-
u(" spots ", -1)
|
|
505
|
-
])]),
|
|
506
|
-
_: 1
|
|
507
|
-
})
|
|
508
|
-
]),
|
|
509
|
-
_: 1
|
|
510
|
-
}),
|
|
511
|
-
e[20] || (e[20] = d("p", { class: "text-sm text-muted-foreground mt-2" }, " Limit how many spots a customer can book in a single reservation. ", -1))
|
|
512
|
-
]),
|
|
513
|
-
e[27] || (e[27] = d("hr", { class: "my-8" }, null, -1)),
|
|
514
|
-
d("div", null, [
|
|
515
|
-
t(p, { class: "text-base font-medium" }, {
|
|
516
|
-
default: i(() => [...e[21] || (e[21] = [
|
|
517
|
-
u(" Customer Information (Optional) ", -1)
|
|
518
|
-
])]),
|
|
519
|
-
_: 1
|
|
520
|
-
}),
|
|
521
|
-
e[23] || (e[23] = d("p", { class: "text-sm text-muted-foreground mb-2" }, " Collect additional details about your customer. ", -1)),
|
|
522
|
-
d("div", ve, [
|
|
523
|
-
(c(!0), y(j, null, H(l.customerInformationFields, (r) => (c(), y("div", {
|
|
524
|
-
key: r.id,
|
|
525
|
-
class: "flex items-center justify-between hover:bg-input/50 px-2 rounded"
|
|
526
|
-
}, [
|
|
527
|
-
d("div", null, [
|
|
528
|
-
d("p", ge, M(r.fieldName), 1)
|
|
529
|
-
]),
|
|
530
|
-
d("div", null, [
|
|
531
|
-
t(_, {
|
|
532
|
-
variant: "ghost",
|
|
533
|
-
size: "icon",
|
|
534
|
-
onClick: (I) => k.value.openDialog(r),
|
|
535
|
-
class: "active:scale-90 transition-transform duration-150"
|
|
536
|
-
}, {
|
|
537
|
-
default: i(() => [
|
|
538
|
-
t(C(Z), { class: "size-4" })
|
|
539
|
-
]),
|
|
540
|
-
_: 1
|
|
541
|
-
}, 8, ["onClick"]),
|
|
542
|
-
t(_, {
|
|
543
|
-
variant: "ghost",
|
|
544
|
-
size: "icon",
|
|
545
|
-
onClick: (I) => r.visible = !r.visible,
|
|
546
|
-
class: "active:scale-90 transition-transform duration-150"
|
|
547
|
-
}, {
|
|
548
|
-
default: i(() => [
|
|
549
|
-
r.visible ? (c(), g(C(h), {
|
|
550
|
-
key: 0,
|
|
551
|
-
class: "size-4"
|
|
552
|
-
})) : (c(), g(C(ee), {
|
|
553
|
-
key: 1,
|
|
554
|
-
class: "size-4"
|
|
555
|
-
}))
|
|
556
|
-
]),
|
|
557
|
-
_: 2
|
|
558
|
-
}, 1032, ["onClick"]),
|
|
559
|
-
t(_, {
|
|
560
|
-
variant: "ghost",
|
|
561
|
-
size: "icon",
|
|
562
|
-
disabled: r.isNativeField,
|
|
563
|
-
onClick: (I) => l.customerInformationFields = l.customerInformationFields.filter((O) => O.id !== r.id),
|
|
564
|
-
class: "active:scale-90 transition-transform duration-150"
|
|
565
|
-
}, {
|
|
566
|
-
default: i(() => [
|
|
567
|
-
t(C(te), { class: "size-4" })
|
|
568
|
-
]),
|
|
569
|
-
_: 1
|
|
570
|
-
}, 8, ["disabled", "onClick"])
|
|
571
|
-
])
|
|
572
|
-
]))), 128)),
|
|
573
|
-
t(_, {
|
|
574
|
-
variant: "outline",
|
|
575
|
-
class: "mt-4",
|
|
576
|
-
onClick: e[6] || (e[6] = (r) => k.value.openDialog())
|
|
577
|
-
}, {
|
|
578
|
-
default: i(() => [
|
|
579
|
-
t(C(ie), { class: "size-4" }),
|
|
580
|
-
e[22] || (e[22] = u(" Add New Field ", -1))
|
|
581
|
-
]),
|
|
582
|
-
_: 1
|
|
583
|
-
})
|
|
584
|
-
]),
|
|
585
|
-
t(ce, {
|
|
586
|
-
ref_key: "customerInfoFieldDialog",
|
|
587
|
-
ref: k,
|
|
588
|
-
onAddField: R,
|
|
589
|
-
onUpdateField: U,
|
|
590
|
-
onRemoveField: $
|
|
591
|
-
}, null, 512)
|
|
592
|
-
]),
|
|
593
|
-
d("div", ye, [
|
|
594
|
-
t(_, {
|
|
595
|
-
onClick: L,
|
|
596
|
-
disabled: s.value
|
|
597
|
-
}, {
|
|
598
|
-
default: i(() => [
|
|
599
|
-
u(M(s.value ? "Saving..." : "Save Changes"), 1)
|
|
600
|
-
]),
|
|
601
|
-
_: 1
|
|
602
|
-
}, 8, ["disabled"])
|
|
603
|
-
])
|
|
604
|
-
]))
|
|
605
|
-
]),
|
|
606
|
-
_: 1
|
|
607
|
-
});
|
|
608
|
-
};
|
|
609
|
-
}
|
|
610
|
-
});
|
|
611
|
-
export {
|
|
612
|
-
Ne as default
|
|
613
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),q=require("./EditLayout.vue_vue_type_script_setup_true_lang-BWuKVkvV.js"),l=require("./CalendarDate-CWtpXgpD.js"),M=require("./DateFormatter-BbcSwTs4.js"),m=require("lucide-vue-next"),j=require("@oneclick.dev/cms-kit"),H={class:"space-y-6 py-4"},O={key:0},J={class:"space-y-2"},Y={class:"flex items-center justify-center w-8 h-8 rounded-full bg-muted"},K={key:0,class:"w-full h-full rounded-full bg-white scale-50"},G={class:"flex items-center justify-center w-8 h-8 rounded-full bg-muted"},Q={key:0,class:"w-full h-full rounded-full bg-white scale-50"},W={key:0,class:"pl-4 pt-2 space-y-1"},X=["onClick"],Z={class:"min-w-0 flex-1"},ee={class:"text-sm font-medium truncate"},te={key:0,class:"w-3 h-3 text-white",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},oe={key:0,class:"text-xs text-amber-600 mt-2"},ne={class:"space-y-3"},ae={class:"flex items-center justify-center w-10 h-10 rounded-full bg-destructive/10"},le={key:0,class:"w-full h-full rounded-full bg-white scale-50"},se={class:"flex items-center justify-center w-10 h-10 rounded-full bg-primary/10"},re={key:0,class:"w-full h-full rounded-full bg-white scale-50"},de={key:1},ce={key:0,class:"text-center py-6 text-muted-foreground text-sm"},ie={key:1,class:"space-y-2 mb-3"},ue={class:"w-full flex justify-between items-center"},me={class:"flex items-center gap-2 ml-auto"},pe=e.defineComponent({__name:"ExceptionDialog",props:{resources:{}},emits:["add-exception","update-exception","remove-exception"],setup(L,{expose:N,emit:_}){const x=new M.$fb18d541ea1ad717$export$ad991b66133851cf("en-US",{dateStyle:"medium"}),k=L,c=_,i=e.ref(!1),v=e.ref("add"),g=e.ref(!1),s=e.ref({start:l.$14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(l.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),end:l.$14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(l.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())}),o=e.reactive({id:"",startDate:"",endDate:"",isClosed:!1,timeslots:[],resourceIds:null}),p=e.computed({get:()=>o.resourceIds===null,set:n=>{n?o.resourceIds=null:o.resourceIds=[]}}),T=n=>{if(o.resourceIds===null)o.resourceIds=[n];else{const t=o.resourceIds.indexOf(n);t===-1?o.resourceIds.push(n):o.resourceIds.splice(t,1)}},$=e.computed(()=>!(!s.value.start||o.resourceIds!==null&&o.resourceIds.length===0)),S=n=>{v.value=n?"edit":"add",n?(o.id=n.id,o.startDate=n.startDate,o.endDate=n.endDate,o.isClosed=n.isClosed,o.timeslots=JSON.parse(JSON.stringify(n.timeslots)),o.resourceIds=n.resourceIds?[...n.resourceIds]:null,s.value={start:l.$fae977aafc393c5c$export$6b862160d295c8e(n.startDate),end:l.$fae977aafc393c5c$export$6b862160d295c8e(n.endDate)}):(o.id="",o.startDate="",o.endDate="",o.isClosed=!1,o.timeslots=[],o.resourceIds=null,s.value={start:l.$14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(l.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),end:l.$14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(l.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())}),i.value=!0},B=()=>{i.value=!1},h=()=>{o.timeslots.push({id:Date.now(),startTime:"",endTime:""})},I=n=>{o.timeslots=o.timeslots.filter(t=>t.id!==n)},y=()=>{if(!s.value.start)return;const n=s.value.start.toString(),t=s.value.end?.toString()||n,r={id:Date.now().toString(),startDate:n,endDate:t,isClosed:o.isClosed,timeslots:o.isClosed?[]:[...o.timeslots],resourceIds:o.resourceIds};c("add-exception",r),i.value=!1},E=()=>{const n=s.value.start.toString(),t=s.value.end?.toString()||n,r={id:o.id,startDate:n,endDate:t,isClosed:o.isClosed,timeslots:o.isClosed?[]:[...o.timeslots],resourceIds:o.resourceIds};c("update-exception",r),i.value=!1},w=()=>{c("remove-exception",o.id),i.value=!1};return N({openDialog:S}),(n,t)=>{const r=e.resolveComponent("DialogTitle"),C=e.resolveComponent("DialogHeader"),V=e.resolveComponent("Label"),f=e.resolveComponent("Button"),z=e.resolveComponent("PopoverTrigger"),A=e.resolveComponent("RangeCalendar"),F=e.resolveComponent("PopoverContent"),R=e.resolveComponent("Popover"),D=e.resolveComponent("Input"),U=e.resolveComponent("Card"),d=e.resolveComponent("DialogFooter"),u=e.resolveComponent("DialogScrollContent"),P=e.resolveComponent("Dialog");return e.openBlock(),e.createBlock(P,{open:i.value,"onUpdate:open":t[6]||(t[6]=a=>i.value=a)},{default:e.withCtx(()=>[e.createVNode(u,{class:"sm:max-w-2xl"},{default:e.withCtx(()=>[e.createVNode(C,null,{default:e.withCtx(()=>[e.createVNode(r,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(v.value==="add"?"Add Exception":"Edit Exception"),1)]),_:1})]),_:1}),e.createElementVNode("div",H,[e.createElementVNode("div",null,[e.createVNode(V,{class:"text-sm font-normal mb-1.5"},{default:e.withCtx(()=>[...t[7]||(t[7]=[e.createTextVNode("Select Date or Date Range",-1)])]),_:1}),e.createVNode(R,{open:g.value,"onUpdate:open":t[1]||(t[1]=a=>g.value=a)},{default:e.withCtx(()=>[e.createVNode(z,{"as-child":""},{default:e.withCtx(()=>[e.createVNode(f,{variant:"outline",class:"w-full justify-start text-left font-normal"},{default:e.withCtx(()=>[e.createVNode(e.unref(m.Calendar),{class:"mr-2 h-4 w-4"}),s.value.start?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.value.end&&s.value.start.toString()!==s.value.end.toString()?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(e.unref(x).format(s.value.start.toDate(e.unref(l.$14e0f24ef4ac5c92$export$aa8b41735afcabd2)())))+" - "+e.toDisplayString(e.unref(x).format(s.value.end.toDate(e.unref(l.$14e0f24ef4ac5c92$export$aa8b41735afcabd2)()))),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(e.unref(x).format(s.value.start.toDate(e.unref(l.$14e0f24ef4ac5c92$export$aa8b41735afcabd2)()))),1)],64))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" Pick a date ")],64))]),_:1})]),_:1}),e.createVNode(F,{class:"w-auto p-0"},{default:e.withCtx(()=>[e.createVNode(A,{modelValue:s.value,"onUpdate:modelValue":t[0]||(t[0]=a=>s.value=a),"initial-focus":"","number-of-months":2,"min-value":e.unref(l.$14e0f24ef4ac5c92$export$d0bdf45af03a6ea3)(e.unref(l.$14e0f24ef4ac5c92$export$aa8b41735afcabd2)())},null,8,["modelValue","min-value"])]),_:1})]),_:1},8,["open"])]),k.resources&&k.resources.length>0?(e.openBlock(),e.createElementBlock("div",O,[e.createVNode(V,{class:"text-sm font-normal mb-1.5"},{default:e.withCtx(()=>[...t[8]||(t[8]=[e.createTextVNode("Apply To",-1)])]),_:1}),e.createElementVNode("div",J,[e.createElementVNode("div",{class:e.normalizeClass(["flex items-center gap-3 p-3 border rounded-lg cursor-pointer hover:bg-accent transition-colors",p.value?"bg-accent border-primary":""]),onClick:t[2]||(t[2]=a=>p.value=!0)},[e.createElementVNode("div",Y,[e.createVNode(e.unref(m.Users),{class:"h-4 w-4 text-muted-foreground"})]),t[9]||(t[9]=e.createElementVNode("div",{class:"flex-1"},[e.createElementVNode("div",{class:"font-medium text-sm"},"All Resources"),e.createElementVNode("div",{class:"text-xs text-muted-foreground"},"Exception applies to all resources")],-1)),e.createElementVNode("div",{class:e.normalizeClass(["w-4 h-4 rounded-full border-2",p.value?"border-primary bg-primary":"border-muted-foreground"])},[p.value?(e.openBlock(),e.createElementBlock("div",K)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(["flex items-center gap-3 p-3 border rounded-lg cursor-pointer hover:bg-accent transition-colors",p.value?"":"bg-accent border-primary"]),onClick:t[3]||(t[3]=a=>p.value=!1)},[e.createElementVNode("div",G,[e.createVNode(e.unref(m.Users),{class:"h-4 w-4 text-muted-foreground"})]),t[10]||(t[10]=e.createElementVNode("div",{class:"flex-1"},[e.createElementVNode("div",{class:"font-medium text-sm"},"Specific Resources"),e.createElementVNode("div",{class:"text-xs text-muted-foreground"},"Select which resources this exception applies to")],-1)),e.createElementVNode("div",{class:e.normalizeClass(["w-4 h-4 rounded-full border-2",p.value?"border-muted-foreground":"border-primary bg-primary"])},[p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Q))],2)],2),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",W,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.resources,a=>(e.openBlock(),e.createElementBlock("div",{key:a.id,class:e.normalizeClass(["flex items-center gap-2 p-2 rounded-md hover:bg-muted cursor-pointer transition-colors",{"bg-muted":o.resourceIds?.includes(a.id),"opacity-50":o.resourceIds&&o.resourceIds.length>0&&!o.resourceIds.includes(a.id)}]),onClick:b=>T(a.id)},[e.createElementVNode("div",{class:"size-6 rounded-full flex items-center justify-center text-white text-xs font-medium flex-shrink-0",style:e.normalizeStyle({backgroundColor:a.color||"#6b7280"})},e.toDisplayString(a.avatarLabel||a.name.charAt(0).toUpperCase()),5),e.createElementVNode("div",Z,[e.createElementVNode("div",ee,e.toDisplayString(a.name),1)]),e.createElementVNode("div",{class:e.normalizeClass(["size-4 rounded border-2 flex items-center justify-center flex-shrink-0",o.resourceIds?.includes(a.id)?"border-primary bg-primary":"border-muted-foreground"])},[o.resourceIds?.includes(a.id)?(e.openBlock(),e.createElementBlock("svg",te,[...t[11]||(t[11]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"3",d:"M5 13l4 4L19 7"},null,-1)])])):e.createCommentVNode("",!0)],2)],10,X))),128)),o.resourceIds?.length===0?(e.openBlock(),e.createElementBlock("p",oe," ⚠️ Please select at least one resource ")):e.createCommentVNode("",!0)]))])])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[e.createVNode(V,{class:"text-sm font-normal mb-1.5"},{default:e.withCtx(()=>[...t[12]||(t[12]=[e.createTextVNode("Exception Type",-1)])]),_:1}),e.createElementVNode("div",ne,[e.createElementVNode("div",{class:e.normalizeClass(["flex items-center gap-3 p-3 border rounded-lg cursor-pointer hover:bg-accent transition-colors",o.isClosed?"bg-accent border-primary":""]),onClick:t[4]||(t[4]=a=>o.isClosed=!0)},[e.createElementVNode("div",ae,[e.createVNode(e.unref(m.BanIcon),{class:"h-5 w-5 text-destructive"})]),t[13]||(t[13]=e.createElementVNode("div",{class:"flex-1"},[e.createElementVNode("div",{class:"font-medium"},"Closed"),e.createElementVNode("div",{class:"text-sm text-muted-foreground"},"No appointments available during this period")],-1)),e.createElementVNode("div",{class:e.normalizeClass(["w-4 h-4 rounded-full border-2",o.isClosed?"border-primary bg-primary":"border-muted-foreground"])},[o.isClosed?(e.openBlock(),e.createElementBlock("div",le)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(["flex items-center gap-3 p-3 border rounded-lg cursor-pointer hover:bg-accent transition-colors",o.isClosed?"":"bg-accent border-primary"]),onClick:t[5]||(t[5]=a=>o.isClosed=!1)},[e.createElementVNode("div",se,[e.createVNode(e.unref(m.Calendar),{class:"h-5 w-5 text-primary"})]),t[14]||(t[14]=e.createElementVNode("div",{class:"flex-1"},[e.createElementVNode("div",{class:"font-medium"},"Custom Hours"),e.createElementVNode("div",{class:"text-sm text-muted-foreground"},"Set specific time slots for this period")],-1)),e.createElementVNode("div",{class:e.normalizeClass(["w-4 h-4 rounded-full border-2",o.isClosed?"border-muted-foreground":"border-primary bg-primary"])},[o.isClosed?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",re))],2)],2)])]),o.isClosed?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",de,[e.createVNode(V,{class:"text-sm font-normal mb-1.5"},{default:e.withCtx(()=>[...t[15]||(t[15]=[e.createTextVNode("Time Slots",-1)])]),_:1}),e.createVNode(U,{class:"p-4"},{default:e.withCtx(()=>[o.timeslots.length===0?(e.openBlock(),e.createElementBlock("div",ce,' No time slots added. Click "Add Time Slot" to create one. ')):(e.openBlock(),e.createElementBlock("div",ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.timeslots,a=>(e.openBlock(),e.createElementBlock("div",{key:a.id,class:"flex items-center gap-2"},[e.createVNode(D,{class:"w-32",modelValue:a.startTime,"onUpdate:modelValue":b=>a.startTime=b,type:"time"},null,8,["modelValue","onUpdate:modelValue"]),t[16]||(t[16]=e.createElementVNode("span",{class:"text-muted-foreground"},"to",-1)),e.createVNode(D,{class:"w-32",modelValue:a.endTime,"onUpdate:modelValue":b=>a.endTime=b,type:"time"},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(f,{variant:"ghost",size:"icon",onClick:b=>I(a.id)},{default:e.withCtx(()=>[e.createVNode(e.unref(m.Trash2),{class:"size-4"})]),_:1},8,["onClick"])]))),128))])),e.createVNode(f,{onClick:h,variant:"outline",size:"sm",class:"w-full"},{default:e.withCtx(()=>[e.createVNode(e.unref(m.Plus),{class:"size-4 mr-1"}),t[17]||(t[17]=e.createTextVNode(" Add Time Slot ",-1))]),_:1})]),_:1})]))]),e.createVNode(d,{class:"gap-2"},{default:e.withCtx(()=>[e.createElementVNode("div",ue,[v.value==="edit"?(e.openBlock(),e.createBlock(f,{key:0,variant:"destructive",onClick:w},{default:e.withCtx(()=>[...t[18]||(t[18]=[e.createTextVNode(" Remove Exception ",-1)])]),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",me,[e.createVNode(f,{variant:"outline",onClick:B},{default:e.withCtx(()=>[...t[19]||(t[19]=[e.createTextVNode(" Cancel ",-1)])]),_:1}),v.value==="add"?(e.openBlock(),e.createBlock(f,{key:0,onClick:y,disabled:!$.value},{default:e.withCtx(()=>[...t[20]||(t[20]=[e.createTextVNode(" Add Exception ",-1)])]),_:1},8,["disabled"])):(e.openBlock(),e.createBlock(f,{key:1,onClick:E,disabled:!$.value},{default:e.withCtx(()=>[...t[21]||(t[21]=[e.createTextVNode(" Update Exception ",-1)])]),_:1},8,["disabled"]))])])]),_:1})]),_:1})]),_:1},8,["open"])}}}),fe={class:"max-w-4xl space-y-6"},ve={key:0,class:"flex"},xe={key:1},Ce={class:"space-y-3"},ke={class:"flex items-start justify-between"},ge={class:"flex-1"},Ve={class:"flex items-center gap-2 mb-1"},Ne={class:"font-medium"},ye={key:0,class:"flex items-center gap-1.5 ml-6 mb-2"},Ee=["title"],be={class:"text-sm text-muted-foreground ml-6"},_e={key:0,class:"text-amber-600"},$e={key:1,class:"space-y-1"},Be={class:"flex flex-wrap gap-2"},he={class:"flex gap-1"},we={key:4,class:"flex justify-end pt-4 border-t"},De=e.defineComponent({__name:"exceptions",setup(L){const N=new M.$fb18d541ea1ad717$export$ad991b66133851cf("en-US",{dateStyle:"medium"}),{params:_}=j.useModuleRoute(),{config:x}=j.useModule(),k=j.useFirebaseIntegration(x.project),c=e.ref([]),i=e.ref([]),v=e.ref(!1),g=e.ref(!0),s=e.ref(),o=n=>!n.resourceIds||n.resourceIds.length===0?null:i.value.filter(t=>n.resourceIds?.includes(t.id)),p=async()=>{try{g.value=!0;const n=await k.get(x.agendaCollection,_.value.id);c.value=n.exceptions||[],i.value=(n.resources||[]).filter(t=>t.isActive)}catch(n){console.error("Error loading exceptions:",n)}finally{g.value=!1}},T=(n,t)=>{const r=l.$fae977aafc393c5c$export$6b862160d295c8e(n),C=l.$fae977aafc393c5c$export$6b862160d295c8e(t);return n===t?N.format(r.toDate(l.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())):`${N.format(r.toDate(l.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()))} - ${N.format(C.toDate(l.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()))}`},$=n=>{c.value.push(n),y()},S=n=>{const t=c.value.findIndex(r=>r.id===n.id);t!==-1&&(c.value[t]=n),y()},B=n=>{c.value=c.value.filter(t=>t.id!==n),y()},h=()=>{s.value?.openDialog()},I=n=>{s.value?.openDialog(n)},y=async()=>{v.value=!0,await k.update(x.agendaCollection,_.value.id,{exceptions:c.value}),v.value=!1},E=e.computed(()=>[...c.value].sort((n,t)=>n.startDate.localeCompare(t.startDate))),w=n=>{const t=l.$fae977aafc393c5c$export$6b862160d295c8e(n),r=l.$14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(l.$14e0f24ef4ac5c92$export$aa8b41735afcabd2());return t.compare(r)<0};return p(),(n,t)=>{const r=e.resolveComponent("Button"),C=e.resolveComponent("Badge"),V=e.resolveComponent("Card"),f=e.resolveComponent("Spinner"),z=e.resolveComponent("EmptyMedia"),A=e.resolveComponent("EmptyTitle"),F=e.resolveComponent("EmptyDescription"),R=e.resolveComponent("EmptyHeader"),D=e.resolveComponent("EmptyContent"),U=e.resolveComponent("Empty");return e.openBlock(),e.createBlock(q._sfc_main,null,{default:e.withCtx(()=>[t[10]||(t[10]=e.createElementVNode("h1",{class:"text-lg font-medium mb-2"},"Exception Management",-1)),t[11]||(t[11]=e.createElementVNode("p",{class:"mb-6 text-muted-foreground text-sm"}," Create exceptions to override your regular schedule. You can close specific dates or set custom hours for special occasions. ",-1)),e.createElementVNode("div",fe,[E.value.length>0?(e.openBlock(),e.createElementBlock("div",ve,[e.createVNode(r,{onClick:h},{default:e.withCtx(()=>[e.createVNode(e.unref(m.Plus),{class:"size-4 mr-1"}),t[0]||(t[0]=e.createTextVNode(" Add Exception ",-1))]),_:1})])):e.createCommentVNode("",!0),E.value.length>0?(e.openBlock(),e.createElementBlock("div",xe,[t[5]||(t[5]=e.createElementVNode("h2",{class:"text-base font-medium mb-3"},"Active Exceptions",-1)),e.createElementVNode("div",Ce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,d=>(e.openBlock(),e.createBlock(V,{key:d.id,class:e.normalizeClass(["p-4",w(d.endDate)?"opacity-60":""])},{default:e.withCtx(()=>[e.createElementVNode("div",ke,[e.createElementVNode("div",ge,[e.createElementVNode("div",Ve,[d.isClosed?(e.openBlock(),e.createBlock(e.unref(m.BanIcon),{key:0,class:"h-4 w-4 text-destructive"})):(e.openBlock(),e.createBlock(e.unref(m.Calendar),{key:1,class:"h-4 w-4 text-primary"})),e.createElementVNode("h3",Ne,e.toDisplayString(T(d.startDate,d.endDate)),1),w(d.endDate)?(e.openBlock(),e.createBlock(C,{key:2,variant:"secondary",class:"text-xs"},{default:e.withCtx(()=>[...t[1]||(t[1]=[e.createTextVNode(" Past ",-1)])]),_:1})):e.createCommentVNode("",!0)]),i.value.length>0?(e.openBlock(),e.createElementBlock("div",ye,[o(d)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o(d),u=>(e.openBlock(),e.createElementBlock("div",{key:u.id,class:"size-5 rounded-full flex items-center justify-center text-white text-[10px] font-medium",style:e.normalizeStyle({backgroundColor:u.color||"#6b7280"}),title:u.name},e.toDisplayString(u.avatarLabel||u.name.charAt(0).toUpperCase()),13,Ee))),128)):(e.openBlock(),e.createBlock(C,{key:1,variant:"outline",class:"text-xs"},{default:e.withCtx(()=>[...t[2]||(t[2]=[e.createTextVNode(" All Resources ",-1)])]),_:1}))])):e.createCommentVNode("",!0),e.createElementVNode("div",be,[d.isClosed?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" Closed - No appointments available ")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[d.timeslots.length===0?(e.openBlock(),e.createElementBlock("div",_e," ⚠️ No time slots defined ")):(e.openBlock(),e.createElementBlock("div",$e,[t[3]||(t[3]=e.createElementVNode("div",{class:"font-medium text-foreground"},"Custom Hours:",-1)),e.createElementVNode("div",Be,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.timeslots,(u,P)=>(e.openBlock(),e.createBlock(C,{key:P,variant:"outline",class:"font-mono text-xs"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.startTime)+" - "+e.toDisplayString(u.endTime),1)]),_:2},1024))),128))])]))],64))])]),e.createElementVNode("div",he,[e.createVNode(r,{variant:"ghost",onClick:u=>I(d)},{default:e.withCtx(()=>[...t[4]||(t[4]=[e.createTextVNode(" Edit ",-1)])]),_:1},8,["onClick"]),e.createVNode(r,{variant:"ghost",size:"icon",onClick:u=>B(d.id)},{default:e.withCtx(()=>[e.createVNode(e.unref(m.Trash2),{class:"size-4 text-destructive"})]),_:1},8,["onClick"])])])]),_:2},1032,["class"]))),128))])])):g.value?(e.openBlock(),e.createBlock(f,{key:2,class:"my-8 size-8"})):(e.openBlock(),e.createBlock(U,{key:3,class:"border border-dashed"},{default:e.withCtx(()=>[e.createVNode(R,null,{default:e.withCtx(()=>[e.createVNode(z,{variant:"icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(m.CalendarPlus))]),_:1}),e.createVNode(A,null,{default:e.withCtx(()=>[...t[6]||(t[6]=[e.createTextVNode("No Exceptions Created",-1)])]),_:1}),e.createVNode(F,null,{default:e.withCtx(()=>[...t[7]||(t[7]=[e.createTextVNode(' Your agenda runs smoothly without any exceptions. Click "Add Exception" to create one. ',-1)])]),_:1})]),_:1}),e.createVNode(D,null,{default:e.withCtx(()=>[e.createVNode(r,{variant:"outline",size:"sm",onClick:h},{default:e.withCtx(()=>[...t[8]||(t[8]=[e.createTextVNode(" Add Exception ",-1)])]),_:1})]),_:1})]),_:1})),v.value?(e.openBlock(),e.createElementBlock("div",we,[...t[9]||(t[9]=[e.createElementVNode("span",null,"Saving...",-1)])])):e.createCommentVNode("",!0)]),e.createVNode(pe,{ref_key:"exceptionDialogRef",ref:s,resources:i.value,onAddException:$,onUpdateException:S,onRemoveException:B},null,8,["resources"])]),_:1})}}});exports.default=De;
|