@oneclick.dev/cms-core-modules 0.0.52 → 0.0.54

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 (128) hide show
  1. package/dist/CalendarDate-CRT2Viyt.mjs +830 -0
  2. package/dist/CalendarDate-CWtpXgpD.js +1 -0
  3. package/dist/Components-D9yIIosM.mjs +623 -0
  4. package/dist/Components-DXbx0RLV.js +1 -0
  5. package/dist/ContentEditor-DRJFQKCv.mjs +34915 -0
  6. package/dist/ContentEditor-DzTi8fSZ.js +290 -0
  7. package/dist/Create-BP8TX6rj.js +1 -0
  8. package/dist/Create-Bwf1RXdG.mjs +1248 -0
  9. package/dist/DateFormatter-BbcSwTs4.js +1 -0
  10. package/dist/DateFormatter-CbO0PVUK.mjs +99 -0
  11. package/dist/Detail-B-PnkcXD.mjs +3473 -0
  12. package/dist/Detail-BVlGSjOq.mjs +380 -0
  13. package/dist/Detail-C4E1T87K.mjs +26 -0
  14. package/dist/Detail-CNfTDUE5.js +1 -0
  15. package/dist/Detail-Cd5CBVN0.js +1 -0
  16. package/dist/Detail-CpfOQChd.mjs +585 -0
  17. package/dist/Detail-CwagT6gQ.mjs +650 -0
  18. package/dist/Detail-DUo6qKqO.js +1 -0
  19. package/dist/Detail-Dd_OkpcN.js +1 -0
  20. package/dist/Detail-mvSGbnFU.js +1 -0
  21. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-BWuKVkvV.js +1 -0
  22. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-D0-EcU0_.mjs +55 -0
  23. package/dist/Entries-DcpPvlYj.js +1 -0
  24. package/dist/Entries-QLMtTYLX.mjs +713 -0
  25. package/dist/Find-BPR0uU-Z.mjs +229 -0
  26. package/dist/Find-BidEQJxT.js +1 -0
  27. package/dist/GlobalStyling-CMzPRd18.js +17 -0
  28. package/dist/GlobalStyling-DoLHUJeV.mjs +988 -0
  29. package/dist/Overview-BDlBCUI_.js +1 -0
  30. package/dist/Overview-BH3NwvNX.mjs +26 -0
  31. package/dist/Overview-BLsZMHNW.mjs +178 -0
  32. package/dist/Overview-BNMZ9MUK.js +1 -0
  33. package/dist/Overview-BbvfH1u-.js +1 -0
  34. package/dist/Overview-CDN88OSM.mjs +190 -0
  35. package/dist/Overview-CEPodGCn.mjs +311 -0
  36. package/dist/Overview-CvquDPhB.js +1 -0
  37. package/dist/Overview-D54pjmI6.mjs +633 -0
  38. package/dist/Overview-D67UjG6n.mjs +947 -0
  39. package/dist/Overview-KT2Mgfh5.js +1 -0
  40. package/dist/Overview-T-lsy3UZ.js +1 -0
  41. package/dist/RegularSlotEditor.vue_vue_type_script_setup_true_lang-0xZSq0rx.js +1 -0
  42. package/dist/RegularSlotEditor.vue_vue_type_script_setup_true_lang-Bj_PVLLV.mjs +392 -0
  43. package/dist/TableView-CpO53xcX.js +111 -0
  44. package/dist/TableView-D9J5rUls.mjs +72921 -0
  45. package/dist/TemplateList.vue_vue_type_script_setup_true_lang-B_AtWnHa.js +1 -0
  46. package/dist/TemplateList.vue_vue_type_script_setup_true_lang-BiLAkhIA.mjs +40 -0
  47. package/dist/View-DlHBZbFu.js +1 -0
  48. package/dist/View-Dv5QMrSn.mjs +25 -0
  49. package/dist/_plugin-vue_export-helper-BHFhmbuH.js +1 -0
  50. package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
  51. package/dist/agenda-B49oKGeh.mjs +706 -0
  52. package/dist/agenda-DipQ5IWP.js +1 -0
  53. package/dist/availability-C7q9tq6l.js +1 -0
  54. package/dist/availability-DeCkqiu8.mjs +613 -0
  55. package/dist/cms-core-modules.css +1 -1
  56. package/dist/countries-BTPvmrsb.mjs +4 -0
  57. package/dist/countries-CgZ081No.js +1 -0
  58. package/dist/exceptions-D3b18TiY.mjs +647 -0
  59. package/dist/exceptions-DJ9zWX3k.js +1 -0
  60. package/dist/floating-ui.dom-C82nbomj.js +1 -0
  61. package/dist/floating-ui.dom-ouSgPqty.mjs +1133 -0
  62. package/dist/google-CvtuJwgk.mjs +4 -0
  63. package/dist/google-D4N3gb01.js +1 -0
  64. package/dist/index--jjEzba7.mjs +24 -0
  65. package/dist/index-9HVlmvK3.js +1 -0
  66. package/dist/index-BEGU8Kme.mjs +12 -0
  67. package/dist/index-Bwi1mtkq.mjs +24 -0
  68. package/dist/index-BzuHN-r8.mjs +24 -0
  69. package/dist/index-CImCyE3L.mjs +24 -0
  70. package/dist/index-CKPshlZ8-BQiiP6r_.mjs +1264 -0
  71. package/dist/index-CKPshlZ8-CIz1tDwX.js +1 -0
  72. package/dist/index-CQiY-oTN.mjs +24 -0
  73. package/dist/index-CSxYBeVA.js +1 -0
  74. package/dist/index-CkiNvRzs.js +1 -0
  75. package/dist/index-Co4ON2Di.js +1 -0
  76. package/dist/index-CwqrAU-H.js +1 -0
  77. package/dist/index-Cz-baGax.js +1 -0
  78. package/dist/index-D2a6wEPh.js +1 -0
  79. package/dist/index-DFQGVHTs.js +1 -0
  80. package/dist/index-DI6mydpm.mjs +138 -0
  81. package/dist/index-DMoyoaks.mjs +22 -0
  82. package/dist/index-DT1wWnUk.mjs +24 -0
  83. package/dist/index-DUeFrD-B.js +1 -0
  84. package/dist/index-DsnoK4ia.mjs +579 -0
  85. package/dist/index-R2oUDsjx.js +1 -0
  86. package/dist/index-RLz1QPrf.mjs +203 -0
  87. package/dist/index-UtjLbLw-.js +1 -0
  88. package/dist/index-_mG-aU3Z.mjs +87 -0
  89. package/dist/index-_sQDF1pH.js +1 -0
  90. package/dist/index-ijdf0d9-.js +1 -0
  91. package/dist/index-klI238nT.mjs +24 -0
  92. package/dist/index.cjs.js +1 -357
  93. package/dist/index.mjs +287 -69281
  94. package/dist/interpolation-BNUjI7LH.js +1 -0
  95. package/dist/interpolation-BpGXqOz8.mjs +59 -0
  96. package/dist/payment-kTjsV0Jj.js +1 -0
  97. package/dist/payment-zpCM0LD-.mjs +981 -0
  98. package/dist/regular-C4_3YXqx.mjs +602 -0
  99. package/dist/regular-DFwPEbZO.js +1 -0
  100. package/dist/regular-slots-4ooEpICB.mjs +67 -0
  101. package/dist/regular-slots-BAVGbomI.js +1 -0
  102. package/dist/resources-MpQkSstv.mjs +563 -0
  103. package/dist/resources-iM28T3dD.js +1 -0
  104. package/dist/src/appointments/components/edit/PaymentAddons/Addon.vue.d.ts +12 -2
  105. package/dist/src/appointments/index.d.ts +4 -28
  106. package/dist/src/appointments/routes.d.ts +3 -9
  107. package/dist/src/content-manager/index.d.ts +5 -147
  108. package/dist/src/content-manager/routes.d.ts +4 -128
  109. package/dist/src/custom/index.d.ts +2 -2
  110. package/dist/src/custom/routes.d.ts +1 -1
  111. package/dist/src/lib/interpolation.d.ts +2 -2
  112. package/dist/src/mail-templates/index.d.ts +2 -30
  113. package/dist/src/mail-templates/routes.d.ts +1 -11
  114. package/dist/src/product-collections/index.d.ts +2 -30
  115. package/dist/src/product-collections/routes.d.ts +1 -11
  116. package/dist/src/products/index.d.ts +2 -30
  117. package/dist/src/products/routes.d.ts +1 -11
  118. package/dist/src/promo-codes/index.d.ts +2 -30
  119. package/dist/src/promo-codes/routes.d.ts +1 -11
  120. package/dist/src/shipping-options/index.d.ts +2 -30
  121. package/dist/src/shipping-options/routes.d.ts +1 -11
  122. package/dist/src/table/index.d.ts +2 -70
  123. package/dist/src/table/routes.d.ts +1 -51
  124. package/dist/utils-BVKy9S2J.mjs +29 -0
  125. package/dist/utils-D6CaKJbp.js +2 -0
  126. package/dist/vee-validate-zod-BPQyEfpF.js +1 -0
  127. package/dist/vee-validate-zod-IXkfh-6Q.mjs +4402 -0
  128. package/package.json +28 -29
@@ -0,0 +1,380 @@
1
+ import { defineComponent as oe, ref as k, withAsyncContext as le, computed as L, resolveComponent as u, createElementBlock as i, openBlock as n, createCommentVNode as f, createElementVNode as d, createVNode as o, createTextVNode as s, unref as r, withCtx as l, toDisplayString as m, Fragment as se, renderList as ae, createBlock as _, normalizeClass as B } from "vue";
2
+ import { Tag as ne, ChevronRight as de, CalendarIcon as j } from "lucide-vue-next";
3
+ import { c as z } from "./utils-BVKy9S2J.mjs";
4
+ import { useLogs as ue, useModuleRoute as ie, useModuleStorage as re, useFirebaseIntegration as me, useModuleBreadcrumbs as pe } from "@oneclick.dev/cms-kit";
5
+ import { g as E, n as ve, t as M } from "./CalendarDate-CRT2Viyt.mjs";
6
+ import { $ as fe } from "./DateFormatter-CbO0PVUK.mjs";
7
+ const ce = { class: "relative @container" }, xe = {
8
+ key: 0,
9
+ class: "max-w-5xl mx-auto mt-4"
10
+ }, 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 = {
11
+ key: 0,
12
+ class: "bg-green-500 text-green-950 px-2 py-1 rounded-lg text-xs"
13
+ }, Ce = {
14
+ key: 1,
15
+ class: "bg-gray-500 text-gray-950 px-2 py-1 rounded-lg text-xs"
16
+ }, Ve = { class: "font-medium mb-2 uppercase" }, ke = { class: "mb-6" }, we = { key: 0 }, Ae = { key: 1 }, Se = { key: 2 }, Ue = { class: "flex flex-wrap gap-12 mb-6" }, $e = {
17
+ key: 0,
18
+ class: "grid gap-2"
19
+ }, Pe = { class: "flex items-center gap-2" }, Ie = {
20
+ key: 0,
21
+ class: "text-lg"
22
+ }, Te = {
23
+ key: 1,
24
+ class: "text-lg"
25
+ }, Ne = {
26
+ key: 1,
27
+ class: "grid gap-2"
28
+ }, De = { class: "flex items-center space-x-2" }, Le = { class: "flex gap-4 mb-6" }, Be = { class: "flex flex-col" }, je = {
29
+ key: 0,
30
+ class: "-ml-2"
31
+ }, ze = {
32
+ key: 1,
33
+ class: "text-xs text-muted-foreground mt-2"
34
+ }, Ee = { class: "flex flex-col" }, Me = {
35
+ key: 0,
36
+ class: "-ml-2"
37
+ }, Fe = {
38
+ key: 1,
39
+ class: "text-xs text-muted-foreground mt-2"
40
+ }, Ge = { class: "flex justify-end gap-2 mt-6" }, Qe = /* @__PURE__ */ oe({
41
+ __name: "Detail",
42
+ props: {
43
+ config: {
44
+ type: Object,
45
+ required: !0
46
+ }
47
+ },
48
+ async setup(F) {
49
+ let g, w;
50
+ const b = F, { log: Re, logWarning: We, logError: Ze } = ue(), { params: A, navigateTo: S } = ie(), { getModuleData: G } = re(), { confirm: R } = useConfirmation(), y = k([]);
51
+ y.value = ([g, w] = le(() => G("promo-types")), g = await g, w(), g || []);
52
+ 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);
53
+ pe(() => [
54
+ { text: "Promo codes list", href: t.value?.code ? "/promo-codes" : "" },
55
+ { text: t.value?.code || "" }
56
+ ]);
57
+ const $ = new fe("en-US", {
58
+ dateStyle: "long"
59
+ }), W = async () => {
60
+ t.value = await U.get(b.config.promoCodeCollection, A.value.promoCodeId), t.value.startsAt = M(t.value?.startsAt?.replace(/\.\d{3}Z$/, "")), t.value.expiresAt = M(t.value?.expiresAt?.replace(/\.\d{3}Z$/, ""));
61
+ }, Z = async () => {
62
+ await R(`Are you sure you want to delete the code "${t.value?.code}"?`) && (await U.remove(b.config.promoCodeCollection, A.value.promoCodeId), S("/promo-codes"));
63
+ };
64
+ return W(), (V, e) => {
65
+ 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");
66
+ return n(), i("div", ce, [
67
+ t.value ? (n(), i("div", xe, [
68
+ d("div", ge, [
69
+ d("div", _e, [
70
+ o(x, {
71
+ variant: "ghost",
72
+ onClick: e[0] || (e[0] = (a) => r(S)("/promo-codes"))
73
+ }, {
74
+ default: l(() => [
75
+ o(r(ne), { class: "size-4" })
76
+ ]),
77
+ _: 1
78
+ }),
79
+ o(r(de), { class: "size-3" }),
80
+ d("h1", be, m(t.value.code), 1),
81
+ t.value.expiresAt > /* @__PURE__ */ new Date() ? (n(), i("span", ye, "Active")) : (n(), i("span", Ce, "Expired"))
82
+ ])
83
+ ]),
84
+ o(te, null, {
85
+ default: l(() => [
86
+ o(ee, null, {
87
+ default: l(() => [
88
+ d("h3", Ve, m(t.value.code), 1),
89
+ d("p", ke, [
90
+ e[14] || (e[14] = s(" This promo code has been created on ", -1)),
91
+ d("strong", null, m(new Date(t.value.createdAt).toLocaleString()), 1),
92
+ e[15] || (e[15] = s(".", -1)),
93
+ e[16] || (e[16] = d("br", null, null, -1)),
94
+ t.value.usageCount === 1 ? (n(), i("span", we, [...e[11] || (e[11] = [
95
+ s("It has been used ", -1),
96
+ d("strong", null, "1 time", -1),
97
+ s(", so you can't edit it.", -1)
98
+ ])])) : t.value.usageCount > 1 ? (n(), i("span", Ae, [
99
+ e[12] || (e[12] = s("It has been used ", -1)),
100
+ d("strong", null, m(t.value.usageCount) + " times", 1),
101
+ e[13] || (e[13] = s(", so you can't edit it.", -1))
102
+ ])) : (n(), i("span", Se, "It has not been used yet."))
103
+ ]),
104
+ o(v, {
105
+ for: "code",
106
+ class: "text-muted-foreground mb-2"
107
+ }, {
108
+ default: l(() => [...e[17] || (e[17] = [
109
+ s("Promo Code", -1)
110
+ ])]),
111
+ _: 1
112
+ }),
113
+ o(P, {
114
+ id: "code",
115
+ modelValue: t.value.code,
116
+ "onUpdate:modelValue": e[1] || (e[1] = (a) => t.value.code = a),
117
+ disabled: p.value,
118
+ class: "mb-6 uppercase"
119
+ }, null, 8, ["modelValue", "disabled"]),
120
+ d("div", null, [
121
+ e[27] || (e[27] = d("h3", { class: "font-medium mb-2" }, "Value", -1)),
122
+ o(K, {
123
+ modelValue: t.value.type,
124
+ "onUpdate:modelValue": e[2] || (e[2] = (a) => t.value.type = a)
125
+ }, {
126
+ default: l(() => [
127
+ o(O, {
128
+ class: "w-[200px] mb-4",
129
+ disabled: p.value
130
+ }, {
131
+ default: l(() => [
132
+ o(q, { placeholder: "Select a promo type" })
133
+ ]),
134
+ _: 1
135
+ }, 8, ["disabled"]),
136
+ o(J, null, {
137
+ default: l(() => [
138
+ o(H, null, {
139
+ default: l(() => [
140
+ (n(!0), i(se, null, ae(y.value, (a) => (n(), _(Y, {
141
+ key: a.key,
142
+ value: a.key
143
+ }, {
144
+ default: l(() => [
145
+ s(m(a.label), 1)
146
+ ]),
147
+ _: 2
148
+ }, 1032, ["value"]))), 128))
149
+ ]),
150
+ _: 1
151
+ })
152
+ ]),
153
+ _: 1
154
+ })
155
+ ]),
156
+ _: 1
157
+ }, 8, ["modelValue"]),
158
+ d("div", Ue, [
159
+ c.value?.hasValueField ? (n(), i("div", $e, [
160
+ o(v, {
161
+ for: "discountValue",
162
+ class: "text-muted-foreground"
163
+ }, {
164
+ default: l(() => [
165
+ s(m(c.value?.valueLabel || "Value"), 1)
166
+ ]),
167
+ _: 1
168
+ }),
169
+ d("div", Pe, [
170
+ c.value?.valuePrefix ? (n(), i("span", Ie, m(c.value?.valuePrefix), 1)) : f("", !0),
171
+ o(P, {
172
+ modelValue: t.value.value,
173
+ "onUpdate:modelValue": e[3] || (e[3] = (a) => t.value.value = a),
174
+ id: "discountValue",
175
+ disabled: p.value
176
+ }, null, 8, ["modelValue", "disabled"]),
177
+ c.value?.valueSuffix ? (n(), i("span", Te, m(c.value?.valueSuffix), 1)) : f("", !0)
178
+ ])
179
+ ])) : f("", !0),
180
+ c.value?.allowUnlimitedUses ? (n(), i("div", Ne, [
181
+ o(v, {
182
+ for: "unlimitedUses",
183
+ class: "text-muted-foreground"
184
+ }, {
185
+ default: l(() => [...e[18] || (e[18] = [
186
+ s("Unlimited Uses", -1)
187
+ ])]),
188
+ _: 1
189
+ }),
190
+ d("div", De, [
191
+ o(Q, {
192
+ id: "unlimitedUses",
193
+ modelValue: t.value.unlimitedUses,
194
+ "onUpdate:modelValue": e[4] || (e[4] = (a) => t.value.unlimitedUses = a),
195
+ disabled: p.value
196
+ }, null, 8, ["modelValue", "disabled"]),
197
+ o(v, { for: "unlimitedUses" }, {
198
+ default: l(() => [
199
+ s(m(t.value.unlimitedUses ? "Yes" : "No"), 1)
200
+ ]),
201
+ _: 1
202
+ })
203
+ ])
204
+ ])) : f("", !0)
205
+ ]),
206
+ e[28] || (e[28] = d("h3", { class: "font-medium" }, "Availability", -1)),
207
+ e[29] || (e[29] = d("p", { class: "text-sm text-muted-foreground mb-4" }, "When will this code be available?", -1)),
208
+ d("div", Le, [
209
+ d("div", Be, [
210
+ o(v, { class: "text-muted-foreground mb-2" }, {
211
+ default: l(() => [...e[19] || (e[19] = [
212
+ s("Available from", -1)
213
+ ])]),
214
+ _: 1
215
+ }),
216
+ o(D, null, {
217
+ default: l(() => [
218
+ o(I, { "as-child": "" }, {
219
+ default: l(() => [
220
+ o(x, {
221
+ variant: "outline",
222
+ class: B(r(z)(
223
+ "w-[280px] justify-start text-left font-normal",
224
+ !t.value.startsAt && "text-muted-foreground"
225
+ )),
226
+ disabled: p.value
227
+ }, {
228
+ default: l(() => [
229
+ o(r(j), { class: "mr-2 h-4 w-4" }),
230
+ s(" " + m(t.value.startsAt ? r($).format(t.value.startsAt.toDate(r(E)())) : "Pick a date"), 1)
231
+ ]),
232
+ _: 1
233
+ }, 8, ["class", "disabled"])
234
+ ]),
235
+ _: 1
236
+ }),
237
+ o(N, { class: "w-auto p-0" }, {
238
+ default: l(() => [
239
+ o(T, {
240
+ modelValue: t.value.startsAt,
241
+ "onUpdate:modelValue": e[5] || (e[5] = (a) => t.value.startsAt = a),
242
+ "initial-focus": "",
243
+ minValue: r(ve)()
244
+ }, null, 8, ["modelValue", "minValue"])
245
+ ]),
246
+ _: 1
247
+ })
248
+ ]),
249
+ _: 1
250
+ }),
251
+ t.value.startsAt ? (n(), i("div", je, [
252
+ p.value ? f("", !0) : (n(), _(x, {
253
+ key: 0,
254
+ onClick: e[6] || (e[6] = (a) => t.value.startsAt = void 0),
255
+ variant: "link"
256
+ }, {
257
+ default: l(() => [...e[20] || (e[20] = [
258
+ s("Clear", -1)
259
+ ])]),
260
+ _: 1
261
+ }))
262
+ ])) : (n(), i("p", ze, "Not set - codes will be available immediately"))
263
+ ]),
264
+ d("div", Ee, [
265
+ o(v, { class: "text-muted-foreground mb-2" }, {
266
+ default: l(() => [...e[21] || (e[21] = [
267
+ s("Until", -1)
268
+ ])]),
269
+ _: 1
270
+ }),
271
+ o(D, null, {
272
+ default: l(() => [
273
+ o(I, { "as-child": "" }, {
274
+ default: l(() => [
275
+ o(x, {
276
+ variant: "outline",
277
+ class: B(r(z)(
278
+ "w-[280px] justify-start text-left font-normal",
279
+ !t.value.expiresAt && "text-muted-foreground"
280
+ )),
281
+ disabled: p.value
282
+ }, {
283
+ default: l(() => [
284
+ o(r(j), { class: "mr-2 h-4 w-4" }),
285
+ s(" " + m(t.value.expiresAt ? r($).format(t.value.expiresAt.toDate(r(E)())) : "Pick a date"), 1)
286
+ ]),
287
+ _: 1
288
+ }, 8, ["class", "disabled"])
289
+ ]),
290
+ _: 1
291
+ }),
292
+ o(N, { class: "w-auto p-0" }, {
293
+ default: l(() => [
294
+ o(T, {
295
+ modelValue: t.value.expiresAt,
296
+ "onUpdate:modelValue": e[7] || (e[7] = (a) => t.value.expiresAt = a),
297
+ "initial-focus": "",
298
+ minValue: t.value.startsAt
299
+ }, null, 8, ["modelValue", "minValue"])
300
+ ]),
301
+ _: 1
302
+ })
303
+ ]),
304
+ _: 1
305
+ }),
306
+ t.value.expiresAt ? (n(), i("div", Me, [
307
+ p.value ? f("", !0) : (n(), _(x, {
308
+ key: 0,
309
+ onClick: e[8] || (e[8] = (a) => t.value.expiresAt = void 0),
310
+ variant: "link"
311
+ }, {
312
+ default: l(() => [...e[22] || (e[22] = [
313
+ s("Clear", -1)
314
+ ])]),
315
+ _: 1
316
+ }))
317
+ ])) : (n(), i("p", Fe, "Not set - codes will never expire"))
318
+ ])
319
+ ]),
320
+ o(v, {
321
+ for: "note",
322
+ class: "text-lg font-medium"
323
+ }, {
324
+ default: l(() => [...e[23] || (e[23] = [
325
+ s("Note", -1)
326
+ ])]),
327
+ _: 1
328
+ }),
329
+ o(v, {
330
+ for: "note",
331
+ class: "font-normal text-sm text-muted-foreground mb-2"
332
+ }, {
333
+ default: l(() => [...e[24] || (e[24] = [
334
+ s("Internal note, you can always edit this later", -1)
335
+ ])]),
336
+ _: 1
337
+ }),
338
+ o(X, {
339
+ modelValue: t.value.note,
340
+ "onUpdate:modelValue": e[9] || (e[9] = (a) => t.value.note = a),
341
+ id: "note"
342
+ }, null, 8, ["modelValue"]),
343
+ d("div", Ge, [
344
+ o(x, {
345
+ variant: "destructive",
346
+ onClick: e[10] || (e[10] = (a) => Z()),
347
+ disabled: C.value
348
+ }, {
349
+ default: l(() => [...e[25] || (e[25] = [
350
+ s(" Delete Code ", -1)
351
+ ])]),
352
+ _: 1
353
+ }, 8, ["disabled"]),
354
+ o(x, { disabled: C.value }, {
355
+ default: l(() => [
356
+ C.value ? (n(), _(h, {
357
+ key: 0,
358
+ class: "size-4 animate-spin"
359
+ })) : f("", !0),
360
+ e[26] || (e[26] = s(" Update Code ", -1))
361
+ ]),
362
+ _: 1
363
+ }, 8, ["disabled"])
364
+ ])
365
+ ])
366
+ ]),
367
+ _: 1
368
+ })
369
+ ]),
370
+ _: 1
371
+ }),
372
+ s(" " + m(t.value), 1)
373
+ ])) : f("", !0)
374
+ ]);
375
+ };
376
+ }
377
+ });
378
+ export {
379
+ Qe as default
380
+ };
@@ -0,0 +1,26 @@
1
+ import { defineComponent as r, onMounted as n, createElementBlock as c, openBlock as s, createVNode as a } from "vue";
2
+ import { useModuleBreadcrumbs as i, useFirebaseIntegration as p } from "@oneclick.dev/cms-kit";
3
+ import { _ as m } from "./TemplateList.vue_vue_type_script_setup_true_lang-BiLAkhIA.mjs";
4
+ const u = { class: "relative" }, b = /* @__PURE__ */ r({
5
+ __name: "Detail",
6
+ props: {
7
+ config: {
8
+ type: Object,
9
+ required: !0
10
+ }
11
+ },
12
+ setup(e) {
13
+ const t = e;
14
+ i(() => []), p(t.config.project);
15
+ const o = async () => {
16
+ };
17
+ return n(() => {
18
+ o();
19
+ }), (_, l) => (s(), c("div", u, [
20
+ a(m)
21
+ ]));
22
+ }
23
+ });
24
+ export {
25
+ b as default
26
+ };