@oneclick.dev/cms-core-modules 0.0.110 → 0.0.112

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 (72) hide show
  1. package/dist/{Acquisition-Dt2rREU8.js → Acquisition-DgzDQH51.js} +1 -1
  2. package/dist/{Acquisition-DNCy8nQz.mjs → Acquisition-FV3QpaUX.mjs} +2 -2
  3. package/dist/{Audience-Bs7b0TNm.js → Audience-BSgNvcVb.js} +1 -1
  4. package/dist/{Audience-CUeMVYRy.mjs → Audience-ka0b7YPE.mjs} +2 -2
  5. package/dist/{Components-DXbx0RLV.js → Components-6gTTI_u-.js} +1 -1
  6. package/dist/{Components-C83O-xlF.mjs → Components-iU3ZaJm5.mjs} +32 -32
  7. package/dist/{ContentEditor-D9-1SJ5F.mjs → ContentEditor-C5yNNLeV.mjs} +8446 -7893
  8. package/dist/{ContentEditor-BprPiHMJ.js → ContentEditor-MctMvN7D.js} +53 -53
  9. package/dist/{Create-89z41K73.js → Create--MOBOTA-.js} +1 -1
  10. package/dist/{Create-BCklc_T1.mjs → Create-BXNLRQag.mjs} +1 -1
  11. package/dist/DateFormatter-CSAbE3BC.js +1 -0
  12. package/dist/{DateFormatter-DUxlo8X8.mjs → DateFormatter-qbhRYxI_.mjs} +226 -222
  13. package/dist/{Detail-CNlljBfH.mjs → Detail-ChD5XurA.mjs} +1 -1
  14. package/dist/{Detail-C857g62L.js → Detail-RISEJJab.js} +1 -1
  15. package/dist/{Find-DIISO5GO.mjs → Find-zN_dKz4p.mjs} +1 -1
  16. package/dist/{GlobalStyling-C9VthHWK.mjs → GlobalStyling-Bp2PiOWt.mjs} +648 -502
  17. package/dist/GlobalStyling-fRjfDDeO.js +25 -0
  18. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Baqy-rTT.js +1 -0
  19. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Dx4Bpa2m.mjs +1263 -0
  20. package/dist/{Overview-Di84CsR5.mjs → Overview-98nkJUWN.mjs} +162 -157
  21. package/dist/{Overview-C-Jb_BxY.mjs → Overview-BR_y8x3W.mjs} +1 -1
  22. package/dist/{Overview-DC9io1bk.js → Overview-CX-n6W7d.js} +1 -1
  23. package/dist/Overview-Dl8cMlsr.js +1 -0
  24. package/dist/{Overview-BKAti8nc.mjs → Overview-MpgkLB6m.mjs} +36 -36
  25. package/dist/{SeoHealth-az1YuNF2.js → SeoHealth-C5npw7mE.js} +1 -1
  26. package/dist/{SeoHealth-MC3lSCOY.mjs → SeoHealth-bVQj_Xgm.mjs} +29 -29
  27. package/dist/{TableView-DXHhJ-jm.mjs → TableView-Bf1fdJrD.mjs} +1838 -1822
  28. package/dist/TableView-DNcXyIMu.js +4 -0
  29. package/dist/{agenda-IOqtALWf.js → agenda-BaJu3-1c.js} +1 -1
  30. package/dist/{agenda-DcatSSYQ.mjs → agenda-BwVY_8oM.mjs} +3 -3
  31. package/dist/cms-core-modules.css +1 -1
  32. package/dist/{exceptions-CI0B4xVj.js → exceptions-B6P9UiCj.js} +1 -1
  33. package/dist/{exceptions-YCQkHa6a.mjs → exceptions-De9-FvdP.mjs} +67 -67
  34. package/dist/{index-CpzDEMeC.mjs → index-B8GvmAwh.mjs} +438 -478
  35. package/dist/{index-wjkEPsNx.mjs → index-BIF2RB7k.mjs} +1212 -1316
  36. package/dist/index-ByRsp77L.js +70 -0
  37. package/dist/{index-BhWvXMOp.mjs → index-CFzn2Lus.mjs} +5 -9
  38. package/dist/{index-BFLV54kw.mjs → index-CkVwMqpn.mjs} +1114 -1100
  39. package/dist/index-DL6orwdK.js +35 -0
  40. package/dist/index-DUlYrnXH.js +58 -0
  41. package/dist/index-DZV720u-.mjs +439 -0
  42. package/dist/index-D_nfGegA.js +184 -0
  43. package/dist/index-DtSvAFLL.js +54 -0
  44. package/dist/{index-D30apIn-.mjs → index-L54VBzwJ.mjs} +2 -3
  45. package/dist/{index-BzWmWCo5.mjs → index-hH3e-IYz.mjs} +267 -267
  46. package/dist/index.cjs.js +1 -1
  47. package/dist/index.mjs +17 -17
  48. package/dist/math-BJ-oX_IM.mjs +80 -0
  49. package/dist/math-emotyaF6.js +1 -0
  50. package/dist/{resources-CYOb5Bl6.mjs → resources-DwYxn2Vi.mjs} +1 -1
  51. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Icon.d.ts +15 -0
  52. package/dist/src/contentManager/components/content-editor/tiptap-extensions/Icon.vue.d.ts +92 -0
  53. package/dist/src/contentManager/components/content-editor/tiptap-extensions/ScopedSelectAll.d.ts +1 -2
  54. package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/iconOptions.d.ts +22 -0
  55. package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/useFocus.d.ts +1 -0
  56. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/IconMenu.vue.d.ts +16 -0
  57. package/dist/src/contentManager/components/content-editor/tiptap-menus/element-editor-views/index.d.ts +17 -0
  58. package/package.json +2 -2
  59. package/dist/DateFormatter-CYAD4GBN.js +0 -1
  60. package/dist/GlobalStyling-CnSlXkZc.js +0 -25
  61. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Ceoje52V.js +0 -1
  62. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Dh9jzvE0.mjs +0 -1255
  63. package/dist/Overview-UoZHUMUz.js +0 -1
  64. package/dist/TableView-DQW0A1oG.js +0 -4
  65. package/dist/array-CbATeQbk.js +0 -1
  66. package/dist/array-DT5pE8Gm.mjs +0 -108
  67. package/dist/index-A2kp8Isi.js +0 -75
  68. package/dist/index-B5aBwdxY.js +0 -54
  69. package/dist/index-BiT55eU0.js +0 -58
  70. package/dist/index-G7cIlnGN.js +0 -158
  71. package/dist/index-V78huaSJ.mjs +0 -442
  72. package/dist/index-vHmvbEwa.js +0 -35
@@ -1,10 +1,10 @@
1
- import { defineComponent as X, ref as w, reactive as h, resolveComponent as f, openBlock as a, createBlock as p, withCtx as n, createVNode as s, createTextVNode as m, toDisplayString as R, createElementVNode as t, withDirectives as I, vModelText as O, createElementBlock as F, createCommentVNode as G, computed as Q, normalizeStyle as N, unref as g, onMounted as le, Fragment as W, renderList as Y } from "vue";
2
- import { useConfirmation as ee, useModuleRoute as te, useModuleStorage as oe, useModuleBreadcrumbs as se } from "@oneclick.dev/cms-kit";
3
- import { Circle as B, CircleCheckBig as A, ChevronLeft as ne, Plus as Z } from "lucide-vue-next";
4
- const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }, de = { class: "relative" }, ie = { class: "grid grid-cols-3 gap-2 mb-6" }, ue = { class: "relative" }, ce = { class: "relative" }, me = { class: "relative" }, ye = { class: "grid grid-cols-1 gap-2 mb-6" }, pe = { class: "relative" }, ve = { class: "flex items-center space-x-2" }, be = { class: "flex items-center space-x-2" }, ge = { class: "grid grid-cols-2 gap-2 mb-6" }, fe = { key: 0 }, xe = { class: "relative" }, Ce = { key: 1 }, ke = { class: "relative" }, De = {
1
+ import { defineComponent as se, ref as U, reactive as ne, resolveComponent as g, openBlock as a, createBlock as f, withCtx as r, createVNode as s, createTextVNode as m, toDisplayString as B, createElementVNode as t, withDirectives as J, vModelText as M, createElementBlock as D, createCommentVNode as P, computed as K, normalizeStyle as N, unref as b, onMounted as ce, Fragment as le, renderList as te } from "vue";
2
+ import { useConfirmation as ae, useModuleRoute as me, useModuleStorage as pe, useModuleBreadcrumbs as ye } from "@oneclick.dev/cms-kit";
3
+ import { Circle as R, CircleCheckBig as L, ChevronLeft as ve, Plus as oe, Check as fe, Trash2 as be } from "lucide-vue-next";
4
+ const ge = { class: "grid py-4" }, xe = { class: "grid grid-cols-2 gap-2 mb-6" }, Ce = { class: "relative" }, ke = { class: "grid grid-cols-3 gap-2 mb-6" }, De = { class: "relative" }, Fe = { class: "relative" }, Se = { class: "relative" }, $e = { class: "grid grid-cols-1 gap-2 mb-6" }, Te = { class: "relative" }, we = { class: "flex items-center space-x-2" }, Ve = { class: "flex items-center space-x-2" }, Ue = { class: "grid grid-cols-2 gap-2 mb-6" }, ze = { key: 0 }, Ne = { class: "relative" }, Be = { key: 1 }, Ae = { class: "relative" }, _e = {
5
5
  key: 0,
6
6
  class: "bg-muted px-4 py-2 rounded-md text-sm"
7
- }, Fe = /* @__PURE__ */ X({
7
+ }, Re = /* @__PURE__ */ se({
8
8
  __name: "SectionStyleDialog",
9
9
  props: {
10
10
  buttons: {
@@ -13,8 +13,8 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
13
13
  }
14
14
  },
15
15
  emits: ["add", "edit", "delete"],
16
- setup(P, { expose: j, emit: $ }) {
17
- const { confirm: T } = ee(), U = $, k = w(!1), D = w("create"), y = w(null), c = w(!1), e = h({
16
+ setup(q, { expose: Q, emit: $ }) {
17
+ const { confirm: T } = ae(), A = $, F = U(!1), S = U("create"), v = U(null), c = U(!1), e = ne({
18
18
  name: "",
19
19
  rendering: "class",
20
20
  className: "",
@@ -24,39 +24,39 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
24
24
  titleColor: "#000000",
25
25
  textColor: "#000000"
26
26
  }
27
- }), J = (S) => {
28
- S ? (D.value = "edit", y.value = S.id, c.value = S.id === "DEFAULT", e.name = S.name || "", e.rendering = S.rendering || "class", e.className = S.className || "", e.componentName = S.componentName || "", e.styles.backgroundColor = S.styles.backgroundColor || "#FFFFFF", e.styles.titleColor = S.styles.titleColor || "#000000", e.styles.textColor = S.styles.textColor || "#000000") : (D.value = "create", y.value = null, c.value = !1, e.name = "", e.rendering = "class", e.className = "", e.componentName = "", e.styles.backgroundColor = "#FFFFFF", e.styles.titleColor = "#000000", e.styles.textColor = "#000000"), k.value = !0;
29
- }, _ = () => {
30
- U("add", e), k.value = !1;
31
- }, M = () => {
32
- c.value && (e.name = "Default"), U("edit", { id: y.value, ...e }), k.value = !1;
27
+ }), w = (V) => {
28
+ V ? (S.value = "edit", v.value = V.id, c.value = V.id === "DEFAULT", e.name = V.name || "", e.rendering = V.rendering || "class", e.className = V.className || "", e.componentName = V.componentName || "", e.styles.backgroundColor = V.styles.backgroundColor || "#FFFFFF", e.styles.titleColor = V.styles.titleColor || "#000000", e.styles.textColor = V.styles.textColor || "#000000") : (S.value = "create", v.value = null, c.value = !1, e.name = "", e.rendering = "class", e.className = "", e.componentName = "", e.styles.backgroundColor = "#FFFFFF", e.styles.titleColor = "#000000", e.styles.textColor = "#000000"), F.value = !0;
29
+ }, G = () => {
30
+ A("add", e), F.value = !1;
31
+ }, j = () => {
32
+ c.value && (e.name = "Default"), A("edit", { id: v.value, ...e }), F.value = !1;
33
33
  }, H = async () => {
34
34
  if (c.value) return;
35
- await T("Are you sure you want to delete this theme? This action cannot be undone.", "Delete Theme", "Delete") && (U("delete", y.value), k.value = !1);
36
- }, K = () => {
35
+ await T("Are you sure you want to delete this theme? This action cannot be undone.", "Delete Theme", "Delete") && (A("delete", v.value), F.value = !1);
36
+ }, W = () => {
37
37
  e.styles.backgroundColor = "#FFFFFF", e.styles.titleColor = "#000000", e.styles.textColor = "#000000";
38
38
  };
39
- return j({
40
- openDialog: J
41
- }), (S, i) => {
42
- const u = f("DialogTitle"), l = f("DialogDescription"), q = f("DialogHeader"), z = f("Label"), L = f("Input"), x = f("RadioGroupItem"), V = f("RadioGroup"), E = f("Button"), r = f("DialogFooter"), o = f("DialogScrollContent"), b = f("Dialog");
43
- return a(), p(b, {
44
- open: k.value,
45
- "onUpdate:open": i[10] || (i[10] = (v) => k.value = v)
39
+ return Q({
40
+ openDialog: w
41
+ }), (V, i) => {
42
+ const u = g("DialogTitle"), l = g("DialogDescription"), X = g("DialogHeader"), _ = g("Label"), E = g("Input"), k = g("RadioGroupItem"), z = g("RadioGroup"), O = g("Button"), Y = g("DialogFooter"), I = g("DialogScrollContent"), Z = g("Dialog");
43
+ return a(), f(Z, {
44
+ open: F.value,
45
+ "onUpdate:open": i[10] || (i[10] = (C) => F.value = C)
46
46
  }, {
47
- default: n(() => [
48
- s(o, { class: "sm:max-w-2xl" }, {
49
- default: n(() => [
50
- s(q, null, {
51
- default: n(() => [
47
+ default: r(() => [
48
+ s(I, { class: "sm:max-w-2xl" }, {
49
+ default: r(() => [
50
+ s(X, null, {
51
+ default: r(() => [
52
52
  s(u, null, {
53
- default: n(() => [
54
- m(R(D.value === "create" ? "Add New Section Style" : "Edit Section Style"), 1)
53
+ default: r(() => [
54
+ m(B(S.value === "create" ? "Add New Section Style" : "Edit Section Style"), 1)
55
55
  ]),
56
56
  _: 1
57
57
  }),
58
58
  s(l, null, {
59
- default: n(() => [...i[11] || (i[11] = [
59
+ default: r(() => [...i[11] || (i[11] = [
60
60
  m(" These settings change how this section looks in the editor. To style your live site, add matching CSS or use a custom component. ", -1)
61
61
  ])]),
62
62
  _: 1
@@ -64,22 +64,22 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
64
64
  ]),
65
65
  _: 1
66
66
  }),
67
- t("div", ae, [
68
- t("div", re, [
67
+ t("div", ge, [
68
+ t("div", xe, [
69
69
  t("div", null, [
70
- s(z, {
70
+ s(_, {
71
71
  class: "mb-2",
72
72
  for: "collection-theme-dialog-theme-name"
73
73
  }, {
74
- default: n(() => [...i[12] || (i[12] = [
74
+ default: r(() => [...i[12] || (i[12] = [
75
75
  m("Display name", -1)
76
76
  ])]),
77
77
  _: 1
78
78
  }),
79
- t("div", de, [
80
- s(L, {
79
+ t("div", Ce, [
80
+ s(E, {
81
81
  modelValue: e.name,
82
- "onUpdate:modelValue": i[0] || (i[0] = (v) => e.name = v),
82
+ "onUpdate:modelValue": i[0] || (i[0] = (C) => e.name = C),
83
83
  id: "collection-theme-dialog-theme-name",
84
84
  disabled: c.value
85
85
  }, null, 8, ["modelValue", "disabled"])
@@ -87,83 +87,83 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
87
87
  ])
88
88
  ]),
89
89
  i[21] || (i[21] = t("h2", { class: "font-semibold mb-4" }, "Style Settings", -1)),
90
- t("div", ie, [
90
+ t("div", ke, [
91
91
  t("div", null, [
92
- s(z, {
92
+ s(_, {
93
93
  class: "mb-2",
94
94
  for: "collection-theme-dialog-background-color"
95
95
  }, {
96
- default: n(() => [...i[13] || (i[13] = [
96
+ default: r(() => [...i[13] || (i[13] = [
97
97
  m("Background color", -1)
98
98
  ])]),
99
99
  _: 1
100
100
  }),
101
- t("div", ue, [
102
- I(t("input", {
103
- "onUpdate:modelValue": i[1] || (i[1] = (v) => e.styles.backgroundColor = v),
101
+ t("div", De, [
102
+ J(t("input", {
103
+ "onUpdate:modelValue": i[1] || (i[1] = (C) => e.styles.backgroundColor = C),
104
104
  type: "color",
105
105
  label: "Primary Color",
106
106
  class: "absolute top-0.5 left-1 size-8"
107
107
  }, null, 512), [
108
- [O, e.styles.backgroundColor]
108
+ [M, e.styles.backgroundColor]
109
109
  ]),
110
- s(L, {
110
+ s(E, {
111
111
  modelValue: e.styles.backgroundColor,
112
- "onUpdate:modelValue": i[2] || (i[2] = (v) => e.styles.backgroundColor = v),
112
+ "onUpdate:modelValue": i[2] || (i[2] = (C) => e.styles.backgroundColor = C),
113
113
  class: "pl-12",
114
114
  id: "collection-theme-dialog-background-color"
115
115
  }, null, 8, ["modelValue"])
116
116
  ])
117
117
  ]),
118
118
  t("div", null, [
119
- s(z, {
119
+ s(_, {
120
120
  class: "mb-2",
121
121
  for: "collection-theme-dialog-title-color"
122
122
  }, {
123
- default: n(() => [...i[14] || (i[14] = [
123
+ default: r(() => [...i[14] || (i[14] = [
124
124
  m("Heading color", -1)
125
125
  ])]),
126
126
  _: 1
127
127
  }),
128
- t("div", ce, [
129
- I(t("input", {
130
- "onUpdate:modelValue": i[3] || (i[3] = (v) => e.styles.titleColor = v),
128
+ t("div", Fe, [
129
+ J(t("input", {
130
+ "onUpdate:modelValue": i[3] || (i[3] = (C) => e.styles.titleColor = C),
131
131
  type: "color",
132
132
  label: "Primary Color",
133
133
  class: "absolute top-0.5 left-1 size-8"
134
134
  }, null, 512), [
135
- [O, e.styles.titleColor]
135
+ [M, e.styles.titleColor]
136
136
  ]),
137
- s(L, {
137
+ s(E, {
138
138
  modelValue: e.styles.titleColor,
139
- "onUpdate:modelValue": i[4] || (i[4] = (v) => e.styles.titleColor = v),
139
+ "onUpdate:modelValue": i[4] || (i[4] = (C) => e.styles.titleColor = C),
140
140
  class: "pl-12",
141
141
  id: "collection-theme-dialog-title-color"
142
142
  }, null, 8, ["modelValue"])
143
143
  ])
144
144
  ]),
145
145
  t("div", null, [
146
- s(z, {
146
+ s(_, {
147
147
  class: "mb-2",
148
148
  for: "collection-theme-dialog-text-color"
149
149
  }, {
150
- default: n(() => [...i[15] || (i[15] = [
150
+ default: r(() => [...i[15] || (i[15] = [
151
151
  m("Body text color", -1)
152
152
  ])]),
153
153
  _: 1
154
154
  }),
155
- t("div", me, [
156
- I(t("input", {
157
- "onUpdate:modelValue": i[5] || (i[5] = (v) => e.styles.textColor = v),
155
+ t("div", Se, [
156
+ J(t("input", {
157
+ "onUpdate:modelValue": i[5] || (i[5] = (C) => e.styles.textColor = C),
158
158
  type: "color",
159
159
  label: "Primary Color",
160
160
  class: "absolute top-0.5 left-1 size-8"
161
161
  }, null, 512), [
162
- [O, e.styles.textColor]
162
+ [M, e.styles.textColor]
163
163
  ]),
164
- s(L, {
164
+ s(E, {
165
165
  modelValue: e.styles.textColor,
166
- "onUpdate:modelValue": i[6] || (i[6] = (v) => e.styles.textColor = v),
166
+ "onUpdate:modelValue": i[6] || (i[6] = (C) => e.styles.textColor = C),
167
167
  class: "pl-12",
168
168
  id: "collection-theme-dialog-text-color"
169
169
  }, null, 8, ["modelValue"])
@@ -171,40 +171,40 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
171
171
  ])
172
172
  ]),
173
173
  i[22] || (i[22] = t("h2", { class: "font-semibold mb-4" }, "Rendering Method", -1)),
174
- t("div", ye, [
174
+ t("div", $e, [
175
175
  t("div", null, [
176
- t("div", pe, [
177
- s(z, { class: "mb-4 text-muted-foreground" }, {
178
- default: n(() => [...i[16] || (i[16] = [
176
+ t("div", Te, [
177
+ s(_, { class: "mb-4 text-muted-foreground" }, {
178
+ default: r(() => [...i[16] || (i[16] = [
179
179
  m("Choose how this section should be styled on your site:", -1)
180
180
  ])]),
181
181
  _: 1
182
182
  }),
183
- s(V, {
183
+ s(z, {
184
184
  modelValue: e.rendering,
185
- "onUpdate:modelValue": i[7] || (i[7] = (v) => e.rendering = v),
185
+ "onUpdate:modelValue": i[7] || (i[7] = (C) => e.rendering = C),
186
186
  "default-value": "class"
187
187
  }, {
188
- default: n(() => [
189
- t("div", ve, [
190
- s(x, {
188
+ default: r(() => [
189
+ t("div", we, [
190
+ s(k, {
191
191
  id: "collection-theme-dialog-render-class",
192
192
  value: "class"
193
193
  }),
194
- s(z, { for: "collection-theme-dialog-render-class" }, {
195
- default: n(() => [...i[17] || (i[17] = [
194
+ s(_, { for: "collection-theme-dialog-render-class" }, {
195
+ default: r(() => [...i[17] || (i[17] = [
196
196
  m("Use a CSS class", -1)
197
197
  ])]),
198
198
  _: 1
199
199
  })
200
200
  ]),
201
- t("div", be, [
202
- s(x, {
201
+ t("div", Ve, [
202
+ s(k, {
203
203
  id: "collection-theme-dialog-render-component",
204
204
  value: "component"
205
205
  }),
206
- s(z, { for: "collection-theme-dialog-render-component" }, {
207
- default: n(() => [...i[18] || (i[18] = [
206
+ s(_, { for: "collection-theme-dialog-render-component" }, {
207
+ default: r(() => [...i[18] || (i[18] = [
208
208
  m("Custom component", -1)
209
209
  ])]),
210
210
  _: 1
@@ -216,92 +216,92 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
216
216
  ])
217
217
  ])
218
218
  ]),
219
- t("div", ge, [
220
- e.rendering === "class" ? (a(), F("div", fe, [
221
- s(z, {
219
+ t("div", Ue, [
220
+ e.rendering === "class" ? (a(), D("div", ze, [
221
+ s(_, {
222
222
  class: "mb-2",
223
223
  for: "collection-theme-dialog-class-name"
224
224
  }, {
225
- default: n(() => [...i[19] || (i[19] = [
225
+ default: r(() => [...i[19] || (i[19] = [
226
226
  m("Class name", -1)
227
227
  ])]),
228
228
  _: 1
229
229
  }),
230
- t("div", xe, [
231
- s(L, {
230
+ t("div", Ne, [
231
+ s(E, {
232
232
  modelValue: e.className,
233
- "onUpdate:modelValue": i[8] || (i[8] = (v) => e.className = v),
233
+ "onUpdate:modelValue": i[8] || (i[8] = (C) => e.className = C),
234
234
  id: "collection-theme-dialog-class-name"
235
235
  }, null, 8, ["modelValue"])
236
236
  ])
237
- ])) : (a(), F("div", Ce, [
238
- s(z, {
237
+ ])) : (a(), D("div", Be, [
238
+ s(_, {
239
239
  class: "mb-2",
240
240
  for: "collection-theme-dialog-component-name"
241
241
  }, {
242
- default: n(() => [...i[20] || (i[20] = [
242
+ default: r(() => [...i[20] || (i[20] = [
243
243
  m("Component name", -1)
244
244
  ])]),
245
245
  _: 1
246
246
  }),
247
- t("div", ke, [
248
- s(L, {
247
+ t("div", Ae, [
248
+ s(E, {
249
249
  modelValue: e.componentName,
250
- "onUpdate:modelValue": i[9] || (i[9] = (v) => e.componentName = v),
250
+ "onUpdate:modelValue": i[9] || (i[9] = (C) => e.componentName = C),
251
251
  id: "collection-theme-dialog-component-name"
252
252
  }, null, 8, ["modelValue"])
253
253
  ])
254
254
  ]))
255
255
  ]),
256
- e.rendering === "class" ? (a(), F("pre", De, "." + R(e.className) + ` {
257
- background-color: ` + R(e.styles.backgroundColor) + `;
258
- color: ` + R(e.styles.textColor) + `;
256
+ e.rendering === "class" ? (a(), D("pre", _e, "." + B(e.className) + ` {
257
+ background-color: ` + B(e.styles.backgroundColor) + `;
258
+ color: ` + B(e.styles.textColor) + `;
259
259
 
260
260
  h1, h2, h3, h4, h5, h6 {
261
- color: ` + R(e.styles.titleColor) + `;
261
+ color: ` + B(e.styles.titleColor) + `;
262
262
  }
263
263
  }
264
- `, 1)) : G("", !0)
264
+ `, 1)) : P("", !0)
265
265
  ]),
266
- s(r, null, {
267
- default: n(() => [
268
- D.value === "edit" && !c.value ? (a(), p(E, {
266
+ s(Y, null, {
267
+ default: r(() => [
268
+ S.value === "edit" && !c.value ? (a(), f(O, {
269
269
  key: 0,
270
270
  variant: "destructive",
271
271
  class: "mr-auto",
272
272
  onClick: H
273
273
  }, {
274
- default: n(() => [...i[23] || (i[23] = [
274
+ default: r(() => [...i[23] || (i[23] = [
275
275
  m(" Delete Style ", -1)
276
276
  ])]),
277
277
  _: 1
278
- })) : G("", !0),
279
- D.value === "edit" && c.value ? (a(), p(E, {
278
+ })) : P("", !0),
279
+ S.value === "edit" && c.value ? (a(), f(O, {
280
280
  key: 1,
281
281
  variant: "outline",
282
282
  class: "mr-auto",
283
- onClick: K
283
+ onClick: W
284
284
  }, {
285
- default: n(() => [...i[24] || (i[24] = [
285
+ default: r(() => [...i[24] || (i[24] = [
286
286
  m(" Reset to Default ", -1)
287
287
  ])]),
288
288
  _: 1
289
- })) : G("", !0),
290
- D.value === "create" ? (a(), p(E, {
289
+ })) : P("", !0),
290
+ S.value === "create" ? (a(), f(O, {
291
291
  key: 2,
292
292
  type: "submit",
293
- onClick: _
293
+ onClick: G
294
294
  }, {
295
- default: n(() => [...i[25] || (i[25] = [
295
+ default: r(() => [...i[25] || (i[25] = [
296
296
  m(" Add Style ", -1)
297
297
  ])]),
298
298
  _: 1
299
- })) : (a(), p(E, {
299
+ })) : (a(), f(O, {
300
300
  key: 3,
301
301
  type: "submit",
302
- onClick: M
302
+ onClick: j
303
303
  }, {
304
- default: n(() => [...i[26] || (i[26] = [
304
+ default: r(() => [...i[26] || (i[26] = [
305
305
  m(" Save Changes ", -1)
306
306
  ])]),
307
307
  _: 1
@@ -317,10 +317,10 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
317
317
  }, 8, ["open"]);
318
318
  };
319
319
  }
320
- }), Se = { class: "grid py-4" }, $e = { class: "grid grid-cols-2 gap-2 mb-6" }, Te = { class: "relative" }, Ve = { class: "grid grid-cols-3 gap-2 mb-6" }, we = { class: "relative" }, Ne = { class: "relative" }, Ue = { class: "relative" }, ze = { class: "grid grid-cols-1 gap-2 mb-6" }, Be = { class: "relative" }, Ae = { class: "flex items-center space-x-2" }, Re = { class: "flex items-center space-x-2" }, Le = { class: "grid grid-cols-2 gap-2 mb-6" }, Ee = { key: 0 }, _e = { class: "relative" }, Ie = { key: 1 }, Oe = { class: "relative" }, Ge = {
320
+ }), Le = { class: "grid py-4" }, Ie = { class: "grid grid-cols-2 gap-2 mb-6" }, Ee = { class: "relative" }, Oe = { class: "grid grid-cols-3 gap-2 mb-6" }, Ge = { class: "relative" }, Je = { class: "relative" }, Me = { class: "relative" }, He = { class: "grid grid-cols-1 gap-2 mb-6" }, Pe = { class: "relative" }, je = { class: "flex items-center space-x-2" }, We = { class: "flex items-center space-x-2" }, Ke = { class: "grid grid-cols-2 gap-2 mb-6" }, qe = { key: 0 }, Qe = { class: "relative" }, Xe = { key: 1 }, Ye = { class: "relative" }, Ze = {
321
321
  key: 0,
322
322
  class: "bg-muted px-4 py-2 rounded-md text-sm"
323
- }, Je = /* @__PURE__ */ X({
323
+ }, he = /* @__PURE__ */ se({
324
324
  __name: "ButtonStyleDialog",
325
325
  props: {
326
326
  defaultBackground: {
@@ -329,8 +329,8 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
329
329
  }
330
330
  },
331
331
  emits: ["add", "edit", "delete"],
332
- setup(P, { expose: j, emit: $ }) {
333
- const { confirm: T } = ee(), U = $, k = w(!1), D = w("create"), y = w(null), c = w(!1), e = h({
332
+ setup(q, { expose: Q, emit: $ }) {
333
+ const { confirm: T } = ae(), A = $, F = U(!1), S = U("create"), v = U(null), c = U(!1), e = ne({
334
334
  name: "",
335
335
  rendering: "class",
336
336
  className: "",
@@ -342,18 +342,18 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
342
342
  buttonRoundness: "none",
343
343
  buttonStyle: "default"
344
344
  }
345
- }), J = (u) => {
346
- u ? (D.value = "edit", y.value = u.id, c.value = u.id === "DEFAULT", e.name = u.name || "", e.rendering = u.rendering || "class", e.className = u.className || "", e.componentName = u.componentName || "", e.styles.backgroundColor = u.styles.backgroundColor || "#FFFFFF", e.styles.textColor = u.styles.textColor || "#000000", e.styles.borderColor = u.styles.borderColor || "#000000", e.styles.buttonRoundness = u.styles.buttonRoundness || "none", e.styles.buttonStyle = u.styles.buttonStyle || "default") : (D.value = "create", y.value = null, c.value = !1, e.name = "", e.rendering = "class", e.className = "", e.componentName = "", e.styles.backgroundColor = "#FFFFFF", e.styles.textColor = "#000000", e.styles.borderColor = "#000000", e.styles.buttonRoundness = "none", e.styles.buttonStyle = "default"), k.value = !0;
347
- }, _ = () => {
348
- U("add", e), k.value = !1;
349
- }, M = () => {
350
- c.value && (e.name = "Default"), U("edit", { id: y.value, ...e }), k.value = !1;
345
+ }), w = (u) => {
346
+ u ? (S.value = "edit", v.value = u.id, c.value = u.id === "DEFAULT", e.name = u.name || "", e.rendering = u.rendering || "class", e.className = u.className || "", e.componentName = u.componentName || "", e.styles.backgroundColor = u.styles.backgroundColor || "#FFFFFF", e.styles.textColor = u.styles.textColor || "#000000", e.styles.borderColor = u.styles.borderColor || "#000000", e.styles.buttonRoundness = u.styles.buttonRoundness || "none", e.styles.buttonStyle = u.styles.buttonStyle || "default") : (S.value = "create", v.value = null, c.value = !1, e.name = "", e.rendering = "class", e.className = "", e.componentName = "", e.styles.backgroundColor = "#FFFFFF", e.styles.textColor = "#000000", e.styles.borderColor = "#000000", e.styles.buttonRoundness = "none", e.styles.buttonStyle = "default"), F.value = !0;
347
+ }, G = () => {
348
+ A("add", e), F.value = !1;
349
+ }, j = () => {
350
+ c.value && (e.name = "Default"), A("edit", { id: v.value, ...e }), F.value = !1;
351
351
  }, H = async () => {
352
352
  if (c.value) return;
353
- await T("Are you sure you want to delete this theme? This action cannot be undone.", "Delete Theme", "Delete") && (U("delete", y.value), k.value = !1);
354
- }, K = () => {
353
+ await T("Are you sure you want to delete this theme? This action cannot be undone.", "Delete Theme", "Delete") && (A("delete", v.value), F.value = !1);
354
+ }, W = () => {
355
355
  e.styles.backgroundColor = "#FFFFFF", e.styles.textColor = "#000000", e.styles.borderColor = "#000000", e.styles.buttonRoundness = "none", e.styles.buttonStyle = "default";
356
- }, S = (u) => {
356
+ }, V = (u) => {
357
357
  switch (u) {
358
358
  case "none":
359
359
  return 0;
@@ -366,7 +366,7 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
366
366
  default:
367
367
  return 0;
368
368
  }
369
- }, i = Q(() => {
369
+ }, i = K(() => {
370
370
  let u = "." + e.className + ` {
371
371
  `;
372
372
  return u += ` background-color: ${e.styles.backgroundColor};
@@ -374,31 +374,31 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
374
374
  `, e.styles.buttonStyle === "outline" ? u += ` border: 1px solid ${e.styles.borderColor};
375
375
  ` : e.styles.buttonStyle === "shadow" ? u += ` box-shadow: 0 3px 6px #ccc;
376
376
  ` : e.styles.buttonStyle === "retro" && (u += ` box-shadow: inset 0 0 0 2px ${e.styles.borderColor}, 2px 2px 0 ${e.styles.borderColor};
377
- `), e.styles.buttonRoundness !== "none" && (u += ` border-radius: ${S(e.styles.buttonRoundness)}px;
377
+ `), e.styles.buttonRoundness !== "none" && (u += ` border-radius: ${V(e.styles.buttonRoundness)}px;
378
378
  `), u += `}
379
379
  `, u;
380
380
  });
381
- return j({
382
- openDialog: J
381
+ return Q({
382
+ openDialog: w
383
383
  }), (u, l) => {
384
- const q = f("DialogTitle"), z = f("DialogDescription"), L = f("DialogHeader"), x = f("Label"), V = f("Input"), E = f("RadioGroupItem"), r = f("RadioGroup"), o = f("Button"), b = f("DialogFooter"), v = f("DialogScrollContent"), C = f("Dialog");
385
- return a(), p(C, {
386
- open: k.value,
387
- "onUpdate:open": l[18] || (l[18] = (d) => k.value = d)
384
+ const X = g("DialogTitle"), _ = g("DialogDescription"), E = g("DialogHeader"), k = g("Label"), z = g("Input"), O = g("RadioGroupItem"), Y = g("RadioGroup"), I = g("Button"), Z = g("DialogFooter"), C = g("DialogScrollContent"), h = g("Dialog");
385
+ return a(), f(h, {
386
+ open: F.value,
387
+ "onUpdate:open": l[18] || (l[18] = (d) => F.value = d)
388
388
  }, {
389
- default: n(() => [
390
- s(v, { class: "sm:max-w-2xl" }, {
391
- default: n(() => [
392
- s(L, null, {
393
- default: n(() => [
394
- s(q, null, {
395
- default: n(() => [
396
- m(R(D.value === "create" ? "Add New Button Style" : "Edit Button Style"), 1)
389
+ default: r(() => [
390
+ s(C, { class: "sm:max-w-2xl" }, {
391
+ default: r(() => [
392
+ s(E, null, {
393
+ default: r(() => [
394
+ s(X, null, {
395
+ default: r(() => [
396
+ m(B(S.value === "create" ? "Add New Button Style" : "Edit Button Style"), 1)
397
397
  ]),
398
398
  _: 1
399
399
  }),
400
- s(z, null, {
401
- default: n(() => [...l[19] || (l[19] = [
400
+ s(_, null, {
401
+ default: r(() => [...l[19] || (l[19] = [
402
402
  m(" These settings change how this section looks in the editor. To style your live site, add matching CSS or use a custom component. ", -1)
403
403
  ])]),
404
404
  _: 1
@@ -406,20 +406,20 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
406
406
  ]),
407
407
  _: 1
408
408
  }),
409
- t("div", Se, [
410
- t("div", $e, [
409
+ t("div", Le, [
410
+ t("div", Ie, [
411
411
  t("div", null, [
412
- s(x, {
412
+ s(k, {
413
413
  class: "mb-2",
414
414
  for: "collection-theme-dialog-theme-name"
415
415
  }, {
416
- default: n(() => [...l[20] || (l[20] = [
416
+ default: r(() => [...l[20] || (l[20] = [
417
417
  m("Display name", -1)
418
418
  ])]),
419
419
  _: 1
420
420
  }),
421
- t("div", Te, [
422
- s(V, {
421
+ t("div", Ee, [
422
+ s(z, {
423
423
  modelValue: e.name,
424
424
  "onUpdate:modelValue": l[0] || (l[0] = (d) => e.name = d),
425
425
  id: "collection-theme-dialog-theme-name",
@@ -429,27 +429,27 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
429
429
  ])
430
430
  ]),
431
431
  l[38] || (l[38] = t("h2", { class: "font-semibold mb-4" }, "Style Settings", -1)),
432
- t("div", Ve, [
432
+ t("div", Oe, [
433
433
  t("div", null, [
434
- s(x, {
434
+ s(k, {
435
435
  class: "mb-2",
436
436
  for: "collection-theme-dialog-background-color"
437
437
  }, {
438
- default: n(() => [...l[21] || (l[21] = [
438
+ default: r(() => [...l[21] || (l[21] = [
439
439
  m("Background color", -1)
440
440
  ])]),
441
441
  _: 1
442
442
  }),
443
- t("div", we, [
444
- I(t("input", {
443
+ t("div", Ge, [
444
+ J(t("input", {
445
445
  "onUpdate:modelValue": l[1] || (l[1] = (d) => e.styles.backgroundColor = d),
446
446
  type: "color",
447
447
  label: "Primary Color",
448
448
  class: "absolute top-0.5 left-1 size-8"
449
449
  }, null, 512), [
450
- [O, e.styles.backgroundColor]
450
+ [M, e.styles.backgroundColor]
451
451
  ]),
452
- s(V, {
452
+ s(z, {
453
453
  modelValue: e.styles.backgroundColor,
454
454
  "onUpdate:modelValue": l[2] || (l[2] = (d) => e.styles.backgroundColor = d),
455
455
  class: "pl-12",
@@ -458,25 +458,25 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
458
458
  ])
459
459
  ]),
460
460
  t("div", null, [
461
- s(x, {
461
+ s(k, {
462
462
  class: "mb-2",
463
463
  for: "collection-theme-dialog-text-color"
464
464
  }, {
465
- default: n(() => [...l[22] || (l[22] = [
465
+ default: r(() => [...l[22] || (l[22] = [
466
466
  m("Text color", -1)
467
467
  ])]),
468
468
  _: 1
469
469
  }),
470
- t("div", Ne, [
471
- I(t("input", {
470
+ t("div", Je, [
471
+ J(t("input", {
472
472
  "onUpdate:modelValue": l[3] || (l[3] = (d) => e.styles.textColor = d),
473
473
  type: "color",
474
474
  label: "Primary Color",
475
475
  class: "absolute top-0.5 left-1 size-8"
476
476
  }, null, 512), [
477
- [O, e.styles.textColor]
477
+ [M, e.styles.textColor]
478
478
  ]),
479
- s(V, {
479
+ s(z, {
480
480
  modelValue: e.styles.textColor,
481
481
  "onUpdate:modelValue": l[4] || (l[4] = (d) => e.styles.textColor = d),
482
482
  class: "pl-12",
@@ -485,25 +485,25 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
485
485
  ])
486
486
  ]),
487
487
  t("div", null, [
488
- s(x, {
488
+ s(k, {
489
489
  class: "mb-2",
490
490
  for: "collection-theme-dialog-border-color"
491
491
  }, {
492
- default: n(() => [...l[23] || (l[23] = [
492
+ default: r(() => [...l[23] || (l[23] = [
493
493
  m("Border color", -1)
494
494
  ])]),
495
495
  _: 1
496
496
  }),
497
- t("div", Ue, [
498
- I(t("input", {
497
+ t("div", Me, [
498
+ J(t("input", {
499
499
  "onUpdate:modelValue": l[5] || (l[5] = (d) => e.styles.borderColor = d),
500
500
  type: "color",
501
501
  label: "Primary Color",
502
502
  class: "absolute top-0.5 left-1 size-8"
503
503
  }, null, 512), [
504
- [O, e.styles.borderColor]
504
+ [M, e.styles.borderColor]
505
505
  ]),
506
- s(V, {
506
+ s(z, {
507
507
  modelValue: e.styles.borderColor,
508
508
  "onUpdate:modelValue": l[6] || (l[6] = (d) => e.styles.borderColor = d),
509
509
  class: "pl-12",
@@ -515,25 +515,25 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
515
515
  t("div", {
516
516
  style: N(`--button-background-color: ${e.styles.backgroundColor}; --button-text-color: ${e.styles.textColor}`)
517
517
  }, [
518
- s(x, { class: "mb-4" }, {
519
- default: n(() => [...l[24] || (l[24] = [
518
+ s(k, { class: "mb-4" }, {
519
+ default: r(() => [...l[24] || (l[24] = [
520
520
  m("Shape", -1)
521
521
  ])]),
522
522
  _: 1
523
523
  }),
524
524
  t("div", {
525
525
  class: "grid grid-cols-4 gap-4 mb-6 p-2 rounded",
526
- style: N({ backgroundColor: P.defaultBackground })
526
+ style: N({ backgroundColor: q.defaultBackground })
527
527
  }, [
528
528
  t("div", {
529
529
  class: "flex flex-col gap-2 items-center cursor-pointer",
530
530
  onClick: l[7] || (l[7] = (d) => e.styles.buttonRoundness = "none")
531
531
  }, [
532
532
  l[25] || (l[25] = t("div", { class: "text-center px-8 py-2 bg-[var(--button-background-color)] text-[var(--button-text-color)]" }, "Button", -1)),
533
- e.styles.buttonRoundness !== "none" ? (a(), p(g(B), {
533
+ e.styles.buttonRoundness !== "none" ? (a(), f(b(R), {
534
534
  key: 0,
535
535
  class: "size-4 text-black/30"
536
- })) : (a(), p(g(A), {
536
+ })) : (a(), f(b(L), {
537
537
  key: 1,
538
538
  class: "size-4 text-black"
539
539
  }))
@@ -543,10 +543,10 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
543
543
  onClick: l[8] || (l[8] = (d) => e.styles.buttonRoundness = "small")
544
544
  }, [
545
545
  l[26] || (l[26] = t("div", { class: "text-center px-8 py-2 bg-[var(--button-background-color)] text-[var(--button-text-color)] rounded-[8px]" }, "Button", -1)),
546
- e.styles.buttonRoundness !== "small" ? (a(), p(g(B), {
546
+ e.styles.buttonRoundness !== "small" ? (a(), f(b(R), {
547
547
  key: 0,
548
548
  class: "size-4 text-black/30"
549
- })) : (a(), p(g(A), {
549
+ })) : (a(), f(b(L), {
550
550
  key: 1,
551
551
  class: "size-4 text-black"
552
552
  }))
@@ -556,10 +556,10 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
556
556
  onClick: l[9] || (l[9] = (d) => e.styles.buttonRoundness = "medium")
557
557
  }, [
558
558
  l[27] || (l[27] = t("div", { class: "text-center px-8 py-2 bg-[var(--button-background-color)] text-[var(--button-text-color)] rounded-[12px]" }, "Button", -1)),
559
- e.styles.buttonRoundness !== "medium" ? (a(), p(g(B), {
559
+ e.styles.buttonRoundness !== "medium" ? (a(), f(b(R), {
560
560
  key: 0,
561
561
  class: "size-4 text-black/30"
562
- })) : (a(), p(g(A), {
562
+ })) : (a(), f(b(L), {
563
563
  key: 1,
564
564
  class: "size-4 text-black"
565
565
  }))
@@ -569,34 +569,34 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
569
569
  onClick: l[10] || (l[10] = (d) => e.styles.buttonRoundness = "pill")
570
570
  }, [
571
571
  l[28] || (l[28] = t("div", { class: "text-center px-8 py-2 bg-[var(--button-background-color)] text-[var(--button-text-color)] rounded-[99px]" }, "Button", -1)),
572
- e.styles.buttonRoundness !== "pill" ? (a(), p(g(B), {
572
+ e.styles.buttonRoundness !== "pill" ? (a(), f(b(R), {
573
573
  key: 0,
574
574
  class: "size-4 text-black/30"
575
- })) : (a(), p(g(A), {
575
+ })) : (a(), f(b(L), {
576
576
  key: 1,
577
577
  class: "size-4 text-black"
578
578
  }))
579
579
  ])
580
580
  ], 4),
581
- s(x, { class: "mb-4" }, {
582
- default: n(() => [...l[29] || (l[29] = [
581
+ s(k, { class: "mb-4" }, {
582
+ default: r(() => [...l[29] || (l[29] = [
583
583
  m("Style", -1)
584
584
  ])]),
585
585
  _: 1
586
586
  }),
587
587
  t("div", {
588
588
  class: "grid grid-cols-4 gap-4 mb-6 p-2 rounded",
589
- style: N(`--button-border-radius: ${S(e.styles.buttonRoundness)}px; --button-border-color: ${e.styles.borderColor}; background-color: ${P.defaultBackground}`)
589
+ style: N(`--button-border-radius: ${V(e.styles.buttonRoundness)}px; --button-border-color: ${e.styles.borderColor}; background-color: ${q.defaultBackground}`)
590
590
  }, [
591
591
  t("div", {
592
592
  class: "flex flex-col gap-2 items-center cursor-pointer",
593
593
  onClick: l[11] || (l[11] = (d) => e.styles.buttonStyle = "default")
594
594
  }, [
595
595
  l[30] || (l[30] = t("div", { class: "text-center px-8 py-2 bg-[var(--button-background-color)] text-[var(--button-text-color)] rounded-[var(--button-border-radius)]" }, "Button", -1)),
596
- e.styles.buttonStyle !== "default" ? (a(), p(g(B), {
596
+ e.styles.buttonStyle !== "default" ? (a(), f(b(R), {
597
597
  key: 0,
598
598
  class: "size-4 text-black/30"
599
- })) : (a(), p(g(A), {
599
+ })) : (a(), f(b(L), {
600
600
  key: 1,
601
601
  class: "size-4 text-black"
602
602
  }))
@@ -606,10 +606,10 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
606
606
  onClick: l[12] || (l[12] = (d) => e.styles.buttonStyle = "outline")
607
607
  }, [
608
608
  l[31] || (l[31] = t("div", { class: "text-center px-8 py-2 bg-[var(--button-background-color)] text-[var(--button-text-color)] rounded-[var(--button-border-radius)] border border-[var(--button-border-color)]" }, " Button ", -1)),
609
- e.styles.buttonStyle !== "outline" ? (a(), p(g(B), {
609
+ e.styles.buttonStyle !== "outline" ? (a(), f(b(R), {
610
610
  key: 0,
611
611
  class: "size-4 text-black/30"
612
- })) : (a(), p(g(A), {
612
+ })) : (a(), f(b(L), {
613
613
  key: 1,
614
614
  class: "size-4 text-black"
615
615
  }))
@@ -622,10 +622,10 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
622
622
  class: "text-center px-8 py-2 bg-[var(--button-background-color)] text-[var(--button-text-color)] rounded-[var(--button-border-radius)]",
623
623
  style: { "box-shadow": "0 3px 6px #ccc" }
624
624
  }, " Button ", -1)),
625
- e.styles.buttonStyle !== "shadow" ? (a(), p(g(B), {
625
+ e.styles.buttonStyle !== "shadow" ? (a(), f(b(R), {
626
626
  key: 0,
627
627
  class: "size-4 text-black/30"
628
- })) : (a(), p(g(A), {
628
+ })) : (a(), f(b(L), {
629
629
  key: 1,
630
630
  class: "size-4 text-black"
631
631
  }))
@@ -638,10 +638,10 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
638
638
  class: "text-center px-8 py-2 bg-[var(--button-background-color)] text-[var(--button-text-color)] rounded-[var(--button-border-radius)]",
639
639
  style: N(`box-shadow: inset 0 0 0 2px ${e.styles.borderColor}, 2px 2px 0 ${e.styles.borderColor};`)
640
640
  }, " Button ", 4),
641
- e.styles.buttonStyle !== "retro" ? (a(), p(g(B), {
641
+ e.styles.buttonStyle !== "retro" ? (a(), f(b(R), {
642
642
  key: 0,
643
643
  class: "size-4 text-black/30"
644
- })) : (a(), p(g(A), {
644
+ })) : (a(), f(b(L), {
645
645
  key: 1,
646
646
  class: "size-4 text-black"
647
647
  }))
@@ -649,40 +649,40 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
649
649
  ], 4)
650
650
  ], 4),
651
651
  l[39] || (l[39] = t("h2", { class: "font-semibold mb-4" }, "Rendering Method", -1)),
652
- t("div", ze, [
652
+ t("div", He, [
653
653
  t("div", null, [
654
- t("div", Be, [
655
- s(x, { class: "mb-4 text-muted-foreground" }, {
656
- default: n(() => [...l[33] || (l[33] = [
654
+ t("div", Pe, [
655
+ s(k, { class: "mb-4 text-muted-foreground" }, {
656
+ default: r(() => [...l[33] || (l[33] = [
657
657
  m("Choose how this section should be styled on your site:", -1)
658
658
  ])]),
659
659
  _: 1
660
660
  }),
661
- s(r, {
661
+ s(Y, {
662
662
  modelValue: e.rendering,
663
663
  "onUpdate:modelValue": l[15] || (l[15] = (d) => e.rendering = d),
664
664
  "default-value": "class"
665
665
  }, {
666
- default: n(() => [
667
- t("div", Ae, [
668
- s(E, {
666
+ default: r(() => [
667
+ t("div", je, [
668
+ s(O, {
669
669
  id: "collection-theme-dialog-render-class",
670
670
  value: "class"
671
671
  }),
672
- s(x, { for: "collection-theme-dialog-render-class" }, {
673
- default: n(() => [...l[34] || (l[34] = [
672
+ s(k, { for: "collection-theme-dialog-render-class" }, {
673
+ default: r(() => [...l[34] || (l[34] = [
674
674
  m("Use a CSS class", -1)
675
675
  ])]),
676
676
  _: 1
677
677
  })
678
678
  ]),
679
- t("div", Re, [
680
- s(E, {
679
+ t("div", We, [
680
+ s(O, {
681
681
  id: "collection-theme-dialog-render-component",
682
682
  value: "component"
683
683
  }),
684
- s(x, { for: "collection-theme-dialog-render-component" }, {
685
- default: n(() => [...l[35] || (l[35] = [
684
+ s(k, { for: "collection-theme-dialog-render-component" }, {
685
+ default: r(() => [...l[35] || (l[35] = [
686
686
  m("Custom component", -1)
687
687
  ])]),
688
688
  _: 1
@@ -694,36 +694,36 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
694
694
  ])
695
695
  ])
696
696
  ]),
697
- t("div", Le, [
698
- e.rendering === "class" ? (a(), F("div", Ee, [
699
- s(x, {
697
+ t("div", Ke, [
698
+ e.rendering === "class" ? (a(), D("div", qe, [
699
+ s(k, {
700
700
  class: "mb-2",
701
701
  for: "collection-theme-dialog-class-name"
702
702
  }, {
703
- default: n(() => [...l[36] || (l[36] = [
703
+ default: r(() => [...l[36] || (l[36] = [
704
704
  m("Class name", -1)
705
705
  ])]),
706
706
  _: 1
707
707
  }),
708
- t("div", _e, [
709
- s(V, {
708
+ t("div", Qe, [
709
+ s(z, {
710
710
  modelValue: e.className,
711
711
  "onUpdate:modelValue": l[16] || (l[16] = (d) => e.className = d),
712
712
  id: "collection-theme-dialog-class-name"
713
713
  }, null, 8, ["modelValue"])
714
714
  ])
715
- ])) : (a(), F("div", Ie, [
716
- s(x, {
715
+ ])) : (a(), D("div", Xe, [
716
+ s(k, {
717
717
  class: "mb-2",
718
718
  for: "collection-theme-dialog-component-name"
719
719
  }, {
720
- default: n(() => [...l[37] || (l[37] = [
720
+ default: r(() => [...l[37] || (l[37] = [
721
721
  m("Component name", -1)
722
722
  ])]),
723
723
  _: 1
724
724
  }),
725
- t("div", Oe, [
726
- s(V, {
725
+ t("div", Ye, [
726
+ s(z, {
727
727
  modelValue: e.componentName,
728
728
  "onUpdate:modelValue": l[17] || (l[17] = (d) => e.componentName = d),
729
729
  id: "collection-theme-dialog-component-name"
@@ -731,47 +731,47 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
731
731
  ])
732
732
  ]))
733
733
  ]),
734
- e.rendering === "class" ? (a(), F("pre", Ge, R(i.value), 1)) : G("", !0)
734
+ e.rendering === "class" ? (a(), D("pre", Ze, B(i.value), 1)) : P("", !0)
735
735
  ]),
736
- s(b, null, {
737
- default: n(() => [
738
- D.value === "edit" && !c.value ? (a(), p(o, {
736
+ s(Z, null, {
737
+ default: r(() => [
738
+ S.value === "edit" && !c.value ? (a(), f(I, {
739
739
  key: 0,
740
740
  variant: "destructive",
741
741
  class: "mr-auto",
742
742
  onClick: H
743
743
  }, {
744
- default: n(() => [...l[40] || (l[40] = [
744
+ default: r(() => [...l[40] || (l[40] = [
745
745
  m(" Delete Style ", -1)
746
746
  ])]),
747
747
  _: 1
748
- })) : G("", !0),
749
- D.value === "edit" && c.value ? (a(), p(o, {
748
+ })) : P("", !0),
749
+ S.value === "edit" && c.value ? (a(), f(I, {
750
750
  key: 1,
751
751
  variant: "outline",
752
752
  class: "mr-auto",
753
- onClick: K
753
+ onClick: W
754
754
  }, {
755
- default: n(() => [...l[41] || (l[41] = [
755
+ default: r(() => [...l[41] || (l[41] = [
756
756
  m(" Reset to Default ", -1)
757
757
  ])]),
758
758
  _: 1
759
- })) : G("", !0),
760
- D.value === "create" ? (a(), p(o, {
759
+ })) : P("", !0),
760
+ S.value === "create" ? (a(), f(I, {
761
761
  key: 2,
762
762
  type: "submit",
763
- onClick: _
763
+ onClick: G
764
764
  }, {
765
- default: n(() => [...l[42] || (l[42] = [
765
+ default: r(() => [...l[42] || (l[42] = [
766
766
  m(" Add Style ", -1)
767
767
  ])]),
768
768
  _: 1
769
- })) : (a(), p(o, {
769
+ })) : (a(), f(I, {
770
770
  key: 3,
771
771
  type: "submit",
772
- onClick: M
772
+ onClick: j
773
773
  }, {
774
- default: n(() => [...l[43] || (l[43] = [
774
+ default: r(() => [...l[43] || (l[43] = [
775
775
  m(" Save Changes ", -1)
776
776
  ])]),
777
777
  _: 1
@@ -787,10 +787,10 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
787
787
  }, 8, ["open"]);
788
788
  };
789
789
  }
790
- }), Me = { class: "grid py-4" }, He = { class: "grid grid-cols-2 gap-2 mb-6" }, Pe = { class: "relative" }, je = { class: "grid grid-cols-4 gap-2 mb-6" }, Ke = { class: "relative" }, qe = { class: "relative" }, Qe = { class: "relative" }, We = { class: "relative" }, Xe = { class: "grid grid-cols-1 gap-2 mb-6" }, Ye = { class: "relative" }, Ze = { class: "flex items-center space-x-2" }, he = { class: "flex items-center space-x-2" }, el = { class: "grid grid-cols-2 gap-2 mb-6" }, ll = { key: 0 }, tl = { class: "relative" }, ol = { key: 1 }, sl = { class: "relative" }, nl = {
790
+ }), el = { class: "grid py-4" }, ll = { class: "grid grid-cols-2 gap-2 mb-6" }, tl = { class: "relative" }, ol = { class: "grid grid-cols-4 gap-2 mb-6" }, sl = { class: "relative" }, nl = { class: "relative" }, al = { class: "relative" }, rl = { class: "relative" }, dl = { class: "grid grid-cols-1 gap-2 mb-6" }, il = { class: "relative" }, ul = { class: "flex items-center space-x-2" }, cl = { class: "flex items-center space-x-2" }, ml = { class: "grid grid-cols-2 gap-2 mb-6" }, pl = { key: 0 }, yl = { class: "relative" }, vl = { key: 1 }, fl = { class: "relative" }, bl = {
791
791
  key: 0,
792
792
  class: "bg-muted px-4 py-2 rounded-md text-sm"
793
- }, al = /* @__PURE__ */ X({
793
+ }, gl = /* @__PURE__ */ se({
794
794
  __name: "CardStyleDialog",
795
795
  props: {
796
796
  defaultBackground: {
@@ -799,8 +799,8 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
799
799
  }
800
800
  },
801
801
  emits: ["add", "edit", "delete"],
802
- setup(P, { expose: j, emit: $ }) {
803
- const { confirm: T } = ee(), U = $, k = w(!1), D = w("create"), y = w(null), c = w(!1), e = h({
802
+ setup(q, { expose: Q, emit: $ }) {
803
+ const { confirm: T } = ae(), A = $, F = U(!1), S = U("create"), v = U(null), c = U(!1), e = ne({
804
804
  name: "",
805
805
  rendering: "class",
806
806
  className: "",
@@ -813,18 +813,18 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
813
813
  roundness: "none",
814
814
  style: "default"
815
815
  }
816
- }), J = (u) => {
817
- u ? (D.value = "edit", y.value = u.id, c.value = u.id === "DEFAULT", e.name = u.name || "", e.rendering = u.rendering || "class", e.className = u.className || "", e.componentName = u.componentName || "", e.styles.backgroundColor = u.styles.backgroundColor || "#FFFFFF", e.styles.titleColor = u.styles.titleColor || "#000000", e.styles.textColor = u.styles.textColor || "#000000", e.styles.borderColor = u.styles.borderColor || "#000000", e.styles.roundness = u.styles.roundness || "none", e.styles.style = u.styles.style || "default") : (D.value = "create", y.value = null, c.value = !1, e.name = "", e.rendering = "class", e.className = "", e.componentName = "", e.styles.backgroundColor = "#FFFFFF", e.styles.titleColor = "#000000", e.styles.textColor = "#000000", e.styles.borderColor = "#000000", e.styles.roundness = "none", e.styles.style = "default"), k.value = !0;
818
- }, _ = () => {
819
- U("add", e), k.value = !1;
820
- }, M = () => {
821
- c.value && (e.name = "Default"), U("edit", { id: y.value, ...e }), k.value = !1;
816
+ }), w = (u) => {
817
+ u ? (S.value = "edit", v.value = u.id, c.value = u.id === "DEFAULT", e.name = u.name || "", e.rendering = u.rendering || "class", e.className = u.className || "", e.componentName = u.componentName || "", e.styles.backgroundColor = u.styles.backgroundColor || "#FFFFFF", e.styles.titleColor = u.styles.titleColor || "#000000", e.styles.textColor = u.styles.textColor || "#000000", e.styles.borderColor = u.styles.borderColor || "#000000", e.styles.roundness = u.styles.roundness || "none", e.styles.style = u.styles.style || "default") : (S.value = "create", v.value = null, c.value = !1, e.name = "", e.rendering = "class", e.className = "", e.componentName = "", e.styles.backgroundColor = "#FFFFFF", e.styles.titleColor = "#000000", e.styles.textColor = "#000000", e.styles.borderColor = "#000000", e.styles.roundness = "none", e.styles.style = "default"), F.value = !0;
818
+ }, G = () => {
819
+ A("add", e), F.value = !1;
820
+ }, j = () => {
821
+ c.value && (e.name = "Default"), A("edit", { id: v.value, ...e }), F.value = !1;
822
822
  }, H = async () => {
823
823
  if (c.value) return;
824
- await T("Are you sure you want to delete this theme? This action cannot be undone.", "Delete Theme", "Delete") && (U("delete", y.value), k.value = !1);
825
- }, K = () => {
824
+ await T("Are you sure you want to delete this theme? This action cannot be undone.", "Delete Theme", "Delete") && (A("delete", v.value), F.value = !1);
825
+ }, W = () => {
826
826
  e.styles.backgroundColor = "#FFFFFF", e.styles.titleColor = "#000000", e.styles.textColor = "#000000", e.styles.borderColor = "#000000", e.styles.roundness = "none", e.styles.style = "default";
827
- }, S = (u) => {
827
+ }, V = (u) => {
828
828
  switch (u) {
829
829
  case "none":
830
830
  return 0;
@@ -835,7 +835,7 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
835
835
  default:
836
836
  return 0;
837
837
  }
838
- }, i = Q(() => {
838
+ }, i = K(() => {
839
839
  let u = "." + e.className + ` {
840
840
  `;
841
841
  return u += ` background-color: ${e.styles.backgroundColor};
@@ -843,31 +843,31 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
843
843
  `, e.styles.style === "outline" ? u += ` border: 1px solid ${e.styles.borderColor};
844
844
  ` : e.styles.style === "shadow" ? u += ` box-shadow: 0 3px 6px #ccc;
845
845
  ` : e.styles.style === "retro" && (u += ` box-shadow: inset 0 0 0 2px ${e.styles.borderColor}, 2px 2px 0 ${e.styles.borderColor};
846
- `), e.styles.roundness !== "none" && (u += ` border-radius: ${S(e.styles.roundness)}px;
846
+ `), e.styles.roundness !== "none" && (u += ` border-radius: ${V(e.styles.roundness)}px;
847
847
  `), u += `}
848
848
  `, u;
849
849
  });
850
- return j({
851
- openDialog: J
850
+ return Q({
851
+ openDialog: w
852
852
  }), (u, l) => {
853
- const q = f("DialogTitle"), z = f("DialogDescription"), L = f("DialogHeader"), x = f("Label"), V = f("Input"), E = f("RadioGroupItem"), r = f("RadioGroup"), o = f("Button"), b = f("DialogFooter"), v = f("DialogScrollContent"), C = f("Dialog");
854
- return a(), p(C, {
855
- open: k.value,
856
- "onUpdate:open": l[19] || (l[19] = (d) => k.value = d)
853
+ const X = g("DialogTitle"), _ = g("DialogDescription"), E = g("DialogHeader"), k = g("Label"), z = g("Input"), O = g("RadioGroupItem"), Y = g("RadioGroup"), I = g("Button"), Z = g("DialogFooter"), C = g("DialogScrollContent"), h = g("Dialog");
854
+ return a(), f(h, {
855
+ open: F.value,
856
+ "onUpdate:open": l[19] || (l[19] = (d) => F.value = d)
857
857
  }, {
858
- default: n(() => [
859
- s(v, { class: "sm:max-w-2xl" }, {
860
- default: n(() => [
861
- s(L, null, {
862
- default: n(() => [
863
- s(q, null, {
864
- default: n(() => [
865
- m(R(D.value === "create" ? "Add New Card Style" : "Edit Card Style"), 1)
858
+ default: r(() => [
859
+ s(C, { class: "sm:max-w-2xl" }, {
860
+ default: r(() => [
861
+ s(E, null, {
862
+ default: r(() => [
863
+ s(X, null, {
864
+ default: r(() => [
865
+ m(B(S.value === "create" ? "Add New Card Style" : "Edit Card Style"), 1)
866
866
  ]),
867
867
  _: 1
868
868
  }),
869
- s(z, null, {
870
- default: n(() => [...l[20] || (l[20] = [
869
+ s(_, null, {
870
+ default: r(() => [...l[20] || (l[20] = [
871
871
  m(" These settings change how this section looks in the editor. To style your live site, add matching CSS or use a custom component. ", -1)
872
872
  ])]),
873
873
  _: 1
@@ -875,20 +875,20 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
875
875
  ]),
876
876
  _: 1
877
877
  }),
878
- t("div", Me, [
879
- t("div", He, [
878
+ t("div", el, [
879
+ t("div", ll, [
880
880
  t("div", null, [
881
- s(x, {
881
+ s(k, {
882
882
  class: "mb-2",
883
883
  for: "collection-theme-dialog-theme-name"
884
884
  }, {
885
- default: n(() => [...l[21] || (l[21] = [
885
+ default: r(() => [...l[21] || (l[21] = [
886
886
  m("Display name", -1)
887
887
  ])]),
888
888
  _: 1
889
889
  }),
890
- t("div", Pe, [
891
- s(V, {
890
+ t("div", tl, [
891
+ s(z, {
892
892
  modelValue: e.name,
893
893
  "onUpdate:modelValue": l[0] || (l[0] = (d) => e.name = d),
894
894
  id: "collection-theme-dialog-theme-name",
@@ -898,27 +898,27 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
898
898
  ])
899
899
  ]),
900
900
  l[40] || (l[40] = t("h2", { class: "font-semibold mb-4" }, "Style Settings", -1)),
901
- t("div", je, [
901
+ t("div", ol, [
902
902
  t("div", null, [
903
- s(x, {
903
+ s(k, {
904
904
  class: "mb-2",
905
905
  for: "collection-theme-dialog-background-color"
906
906
  }, {
907
- default: n(() => [...l[22] || (l[22] = [
907
+ default: r(() => [...l[22] || (l[22] = [
908
908
  m("Background color", -1)
909
909
  ])]),
910
910
  _: 1
911
911
  }),
912
- t("div", Ke, [
913
- I(t("input", {
912
+ t("div", sl, [
913
+ J(t("input", {
914
914
  "onUpdate:modelValue": l[1] || (l[1] = (d) => e.styles.backgroundColor = d),
915
915
  type: "color",
916
916
  label: "Background color",
917
917
  class: "absolute top-0.5 left-1 size-8"
918
918
  }, null, 512), [
919
- [O, e.styles.backgroundColor]
919
+ [M, e.styles.backgroundColor]
920
920
  ]),
921
- s(V, {
921
+ s(z, {
922
922
  modelValue: e.styles.backgroundColor,
923
923
  "onUpdate:modelValue": l[2] || (l[2] = (d) => e.styles.backgroundColor = d),
924
924
  class: "pl-12",
@@ -927,25 +927,25 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
927
927
  ])
928
928
  ]),
929
929
  t("div", null, [
930
- s(x, {
930
+ s(k, {
931
931
  class: "mb-2",
932
932
  for: "collection-theme-dialog-title-color"
933
933
  }, {
934
- default: n(() => [...l[23] || (l[23] = [
934
+ default: r(() => [...l[23] || (l[23] = [
935
935
  m("Heading color", -1)
936
936
  ])]),
937
937
  _: 1
938
938
  }),
939
- t("div", qe, [
940
- I(t("input", {
939
+ t("div", nl, [
940
+ J(t("input", {
941
941
  "onUpdate:modelValue": l[3] || (l[3] = (d) => e.styles.titleColor = d),
942
942
  type: "color",
943
943
  label: "Heading color",
944
944
  class: "absolute top-0.5 left-1 size-8"
945
945
  }, null, 512), [
946
- [O, e.styles.titleColor]
946
+ [M, e.styles.titleColor]
947
947
  ]),
948
- s(V, {
948
+ s(z, {
949
949
  modelValue: e.styles.titleColor,
950
950
  "onUpdate:modelValue": l[4] || (l[4] = (d) => e.styles.titleColor = d),
951
951
  class: "pl-12",
@@ -954,25 +954,25 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
954
954
  ])
955
955
  ]),
956
956
  t("div", null, [
957
- s(x, {
957
+ s(k, {
958
958
  class: "mb-2",
959
959
  for: "collection-theme-dialog-text-color"
960
960
  }, {
961
- default: n(() => [...l[24] || (l[24] = [
961
+ default: r(() => [...l[24] || (l[24] = [
962
962
  m("Text color", -1)
963
963
  ])]),
964
964
  _: 1
965
965
  }),
966
- t("div", Qe, [
967
- I(t("input", {
966
+ t("div", al, [
967
+ J(t("input", {
968
968
  "onUpdate:modelValue": l[5] || (l[5] = (d) => e.styles.textColor = d),
969
969
  type: "color",
970
970
  label: "Text color",
971
971
  class: "absolute top-0.5 left-1 size-8"
972
972
  }, null, 512), [
973
- [O, e.styles.textColor]
973
+ [M, e.styles.textColor]
974
974
  ]),
975
- s(V, {
975
+ s(z, {
976
976
  modelValue: e.styles.textColor,
977
977
  "onUpdate:modelValue": l[6] || (l[6] = (d) => e.styles.textColor = d),
978
978
  class: "pl-12",
@@ -981,25 +981,25 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
981
981
  ])
982
982
  ]),
983
983
  t("div", null, [
984
- s(x, {
984
+ s(k, {
985
985
  class: "mb-2",
986
986
  for: "collection-theme-dialog-border-color"
987
987
  }, {
988
- default: n(() => [...l[25] || (l[25] = [
988
+ default: r(() => [...l[25] || (l[25] = [
989
989
  m("Border color", -1)
990
990
  ])]),
991
991
  _: 1
992
992
  }),
993
- t("div", We, [
994
- I(t("input", {
993
+ t("div", rl, [
994
+ J(t("input", {
995
995
  "onUpdate:modelValue": l[7] || (l[7] = (d) => e.styles.borderColor = d),
996
996
  type: "color",
997
997
  label: "Border color",
998
998
  class: "absolute top-0.5 left-1 size-8"
999
999
  }, null, 512), [
1000
- [O, e.styles.borderColor]
1000
+ [M, e.styles.borderColor]
1001
1001
  ]),
1002
- s(V, {
1002
+ s(z, {
1003
1003
  modelValue: e.styles.borderColor,
1004
1004
  "onUpdate:modelValue": l[8] || (l[8] = (d) => e.styles.borderColor = d),
1005
1005
  class: "pl-12",
@@ -1011,15 +1011,15 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
1011
1011
  t("div", {
1012
1012
  style: N(`--card-background-color: ${e.styles.backgroundColor}; --card-title-color: ${e.styles.titleColor}; --card-text-color: ${e.styles.textColor}`)
1013
1013
  }, [
1014
- s(x, { class: "mb-4" }, {
1015
- default: n(() => [...l[26] || (l[26] = [
1014
+ s(k, { class: "mb-4" }, {
1015
+ default: r(() => [...l[26] || (l[26] = [
1016
1016
  m("Shape", -1)
1017
1017
  ])]),
1018
1018
  _: 1
1019
1019
  }),
1020
1020
  t("div", {
1021
1021
  class: "grid grid-cols-3 gap-4 mb-6 p-2 rounded",
1022
- style: N({ backgroundColor: P.defaultBackground })
1022
+ style: N({ backgroundColor: q.defaultBackground })
1023
1023
  }, [
1024
1024
  t("div", {
1025
1025
  class: "flex flex-col gap-2 items-center cursor-pointer",
@@ -1029,10 +1029,10 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
1029
1029
  t("strong", { class: "text-2xl text-[var(--card-title-color)]" }, "Card"),
1030
1030
  t("p", { class: "text-[var(--card-text-color)]" }, "Lorem ipsum dolor sit amet.")
1031
1031
  ], -1)),
1032
- e.styles.roundness !== "none" ? (a(), p(g(B), {
1032
+ e.styles.roundness !== "none" ? (a(), f(b(R), {
1033
1033
  key: 0,
1034
1034
  class: "size-4 text-black/30"
1035
- })) : (a(), p(g(A), {
1035
+ })) : (a(), f(b(L), {
1036
1036
  key: 1,
1037
1037
  class: "size-4 text-black"
1038
1038
  }))
@@ -1045,10 +1045,10 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
1045
1045
  t("strong", { class: "text-2xl text-[var(--card-title-color)]" }, "Card"),
1046
1046
  t("p", { class: "text-[var(--card-text-color)]" }, "Lorem ipsum dolor sit amet.")
1047
1047
  ], -1)),
1048
- e.styles.roundness !== "small" ? (a(), p(g(B), {
1048
+ e.styles.roundness !== "small" ? (a(), f(b(R), {
1049
1049
  key: 0,
1050
1050
  class: "size-4 text-black/30"
1051
- })) : (a(), p(g(A), {
1051
+ })) : (a(), f(b(L), {
1052
1052
  key: 1,
1053
1053
  class: "size-4 text-black"
1054
1054
  }))
@@ -1061,24 +1061,24 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
1061
1061
  t("strong", { class: "text-2xl text-[var(--card-title-color)]" }, "Card"),
1062
1062
  t("p", { class: "text-[var(--card-text-color)]" }, "Lorem ipsum dolor sit amet.")
1063
1063
  ], -1)),
1064
- e.styles.roundness !== "medium" ? (a(), p(g(B), {
1064
+ e.styles.roundness !== "medium" ? (a(), f(b(R), {
1065
1065
  key: 0,
1066
1066
  class: "size-4 text-black/30"
1067
- })) : (a(), p(g(A), {
1067
+ })) : (a(), f(b(L), {
1068
1068
  key: 1,
1069
1069
  class: "size-4 text-black"
1070
1070
  }))
1071
1071
  ])
1072
1072
  ], 4),
1073
- s(x, { class: "mb-4" }, {
1074
- default: n(() => [...l[30] || (l[30] = [
1073
+ s(k, { class: "mb-4" }, {
1074
+ default: r(() => [...l[30] || (l[30] = [
1075
1075
  m("Style", -1)
1076
1076
  ])]),
1077
1077
  _: 1
1078
1078
  }),
1079
1079
  t("div", {
1080
1080
  class: "grid grid-cols-4 gap-4 mb-6 p-2 rounded",
1081
- style: N(`--card-border-radius: ${S(e.styles.roundness)}px; --card-border-color: ${e.styles.borderColor}; background-color: ${P.defaultBackground}`)
1081
+ style: N(`--card-border-radius: ${V(e.styles.roundness)}px; --card-border-color: ${e.styles.borderColor}; background-color: ${q.defaultBackground}`)
1082
1082
  }, [
1083
1083
  t("div", {
1084
1084
  class: "flex flex-col gap-2 items-center cursor-pointer",
@@ -1088,10 +1088,10 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
1088
1088
  t("strong", { class: "text-2xl text-[var(--card-title-color)]" }, "Card"),
1089
1089
  t("p", { class: "text-[var(--card-text-color)]" }, "Lorem ipsum dolor sit amet.")
1090
1090
  ], -1)),
1091
- e.styles.style !== "default" ? (a(), p(g(B), {
1091
+ e.styles.style !== "default" ? (a(), f(b(R), {
1092
1092
  key: 0,
1093
1093
  class: "size-4 text-black/30"
1094
- })) : (a(), p(g(A), {
1094
+ })) : (a(), f(b(L), {
1095
1095
  key: 1,
1096
1096
  class: "size-4 text-black"
1097
1097
  }))
@@ -1104,10 +1104,10 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
1104
1104
  t("strong", { class: "text-2xl text-[var(--card-title-color)]" }, "Card"),
1105
1105
  t("p", { class: "text-[var(--card-text-color)]" }, "Lorem ipsum dolor sit amet.")
1106
1106
  ], -1)),
1107
- e.styles.style !== "outline" ? (a(), p(g(B), {
1107
+ e.styles.style !== "outline" ? (a(), f(b(R), {
1108
1108
  key: 0,
1109
1109
  class: "size-4 text-black/30"
1110
- })) : (a(), p(g(A), {
1110
+ })) : (a(), f(b(L), {
1111
1111
  key: 1,
1112
1112
  class: "size-4 text-black"
1113
1113
  }))
@@ -1123,10 +1123,10 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
1123
1123
  t("strong", { class: "text-2xl text-[var(--card-title-color)]" }, "Card"),
1124
1124
  t("p", { class: "text-[var(--card-text-color)]" }, "Lorem ipsum dolor sit amet.")
1125
1125
  ], -1)),
1126
- e.styles.style !== "shadow" ? (a(), p(g(B), {
1126
+ e.styles.style !== "shadow" ? (a(), f(b(R), {
1127
1127
  key: 0,
1128
1128
  class: "size-4 text-black/30"
1129
- })) : (a(), p(g(A), {
1129
+ })) : (a(), f(b(L), {
1130
1130
  key: 1,
1131
1131
  class: "size-4 text-black"
1132
1132
  }))
@@ -1142,10 +1142,10 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
1142
1142
  t("strong", { class: "text-2xl text-[var(--card-title-color)]" }, "Card", -1),
1143
1143
  t("p", { class: "text-[var(--card-text-color)]" }, "Lorem ipsum dolor sit amet.", -1)
1144
1144
  ])], 4),
1145
- e.styles.style !== "retro" ? (a(), p(g(B), {
1145
+ e.styles.style !== "retro" ? (a(), f(b(R), {
1146
1146
  key: 0,
1147
1147
  class: "size-4 text-black/30"
1148
- })) : (a(), p(g(A), {
1148
+ })) : (a(), f(b(L), {
1149
1149
  key: 1,
1150
1150
  class: "size-4 text-black"
1151
1151
  }))
@@ -1153,40 +1153,40 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
1153
1153
  ], 4)
1154
1154
  ], 4),
1155
1155
  l[41] || (l[41] = t("h2", { class: "font-semibold mb-4" }, "Rendering Method", -1)),
1156
- t("div", Xe, [
1156
+ t("div", dl, [
1157
1157
  t("div", null, [
1158
- t("div", Ye, [
1159
- s(x, { class: "mb-4 text-muted-foreground" }, {
1160
- default: n(() => [...l[35] || (l[35] = [
1158
+ t("div", il, [
1159
+ s(k, { class: "mb-4 text-muted-foreground" }, {
1160
+ default: r(() => [...l[35] || (l[35] = [
1161
1161
  m("Choose how this section should be styled on your site:", -1)
1162
1162
  ])]),
1163
1163
  _: 1
1164
1164
  }),
1165
- s(r, {
1165
+ s(Y, {
1166
1166
  modelValue: e.rendering,
1167
1167
  "onUpdate:modelValue": l[16] || (l[16] = (d) => e.rendering = d),
1168
1168
  "default-value": "class"
1169
1169
  }, {
1170
- default: n(() => [
1171
- t("div", Ze, [
1172
- s(E, {
1170
+ default: r(() => [
1171
+ t("div", ul, [
1172
+ s(O, {
1173
1173
  id: "collection-theme-dialog-render-class",
1174
1174
  value: "class"
1175
1175
  }),
1176
- s(x, { for: "collection-theme-dialog-render-class" }, {
1177
- default: n(() => [...l[36] || (l[36] = [
1176
+ s(k, { for: "collection-theme-dialog-render-class" }, {
1177
+ default: r(() => [...l[36] || (l[36] = [
1178
1178
  m("Use a CSS class", -1)
1179
1179
  ])]),
1180
1180
  _: 1
1181
1181
  })
1182
1182
  ]),
1183
- t("div", he, [
1184
- s(E, {
1183
+ t("div", cl, [
1184
+ s(O, {
1185
1185
  id: "collection-theme-dialog-render-component",
1186
1186
  value: "component"
1187
1187
  }),
1188
- s(x, { for: "collection-theme-dialog-render-component" }, {
1189
- default: n(() => [...l[37] || (l[37] = [
1188
+ s(k, { for: "collection-theme-dialog-render-component" }, {
1189
+ default: r(() => [...l[37] || (l[37] = [
1190
1190
  m("Custom component", -1)
1191
1191
  ])]),
1192
1192
  _: 1
@@ -1198,36 +1198,36 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
1198
1198
  ])
1199
1199
  ])
1200
1200
  ]),
1201
- t("div", el, [
1202
- e.rendering === "class" ? (a(), F("div", ll, [
1203
- s(x, {
1201
+ t("div", ml, [
1202
+ e.rendering === "class" ? (a(), D("div", pl, [
1203
+ s(k, {
1204
1204
  class: "mb-2",
1205
1205
  for: "collection-theme-dialog-class-name"
1206
1206
  }, {
1207
- default: n(() => [...l[38] || (l[38] = [
1207
+ default: r(() => [...l[38] || (l[38] = [
1208
1208
  m("Class name", -1)
1209
1209
  ])]),
1210
1210
  _: 1
1211
1211
  }),
1212
- t("div", tl, [
1213
- s(V, {
1212
+ t("div", yl, [
1213
+ s(z, {
1214
1214
  modelValue: e.className,
1215
1215
  "onUpdate:modelValue": l[17] || (l[17] = (d) => e.className = d),
1216
1216
  id: "collection-theme-dialog-class-name"
1217
1217
  }, null, 8, ["modelValue"])
1218
1218
  ])
1219
- ])) : (a(), F("div", ol, [
1220
- s(x, {
1219
+ ])) : (a(), D("div", vl, [
1220
+ s(k, {
1221
1221
  class: "mb-2",
1222
1222
  for: "collection-theme-dialog-component-name"
1223
1223
  }, {
1224
- default: n(() => [...l[39] || (l[39] = [
1224
+ default: r(() => [...l[39] || (l[39] = [
1225
1225
  m("Component name", -1)
1226
1226
  ])]),
1227
1227
  _: 1
1228
1228
  }),
1229
- t("div", sl, [
1230
- s(V, {
1229
+ t("div", fl, [
1230
+ s(z, {
1231
1231
  modelValue: e.componentName,
1232
1232
  "onUpdate:modelValue": l[18] || (l[18] = (d) => e.componentName = d),
1233
1233
  id: "collection-theme-dialog-component-name"
@@ -1235,47 +1235,47 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
1235
1235
  ])
1236
1236
  ]))
1237
1237
  ]),
1238
- e.rendering === "class" ? (a(), F("pre", nl, R(i.value), 1)) : G("", !0)
1238
+ e.rendering === "class" ? (a(), D("pre", bl, B(i.value), 1)) : P("", !0)
1239
1239
  ]),
1240
- s(b, null, {
1241
- default: n(() => [
1242
- D.value === "edit" && !c.value ? (a(), p(o, {
1240
+ s(Z, null, {
1241
+ default: r(() => [
1242
+ S.value === "edit" && !c.value ? (a(), f(I, {
1243
1243
  key: 0,
1244
1244
  variant: "destructive",
1245
1245
  class: "mr-auto",
1246
1246
  onClick: H
1247
1247
  }, {
1248
- default: n(() => [...l[42] || (l[42] = [
1248
+ default: r(() => [...l[42] || (l[42] = [
1249
1249
  m(" Delete Style ", -1)
1250
1250
  ])]),
1251
1251
  _: 1
1252
- })) : G("", !0),
1253
- D.value === "edit" && c.value ? (a(), p(o, {
1252
+ })) : P("", !0),
1253
+ S.value === "edit" && c.value ? (a(), f(I, {
1254
1254
  key: 1,
1255
1255
  variant: "outline",
1256
1256
  class: "mr-auto",
1257
- onClick: K
1257
+ onClick: W
1258
1258
  }, {
1259
- default: n(() => [...l[43] || (l[43] = [
1259
+ default: r(() => [...l[43] || (l[43] = [
1260
1260
  m(" Reset to Default ", -1)
1261
1261
  ])]),
1262
1262
  _: 1
1263
- })) : G("", !0),
1264
- D.value === "create" ? (a(), p(o, {
1263
+ })) : P("", !0),
1264
+ S.value === "create" ? (a(), f(I, {
1265
1265
  key: 2,
1266
1266
  type: "submit",
1267
- onClick: _
1267
+ onClick: G
1268
1268
  }, {
1269
- default: n(() => [...l[44] || (l[44] = [
1269
+ default: r(() => [...l[44] || (l[44] = [
1270
1270
  m(" Add Style ", -1)
1271
1271
  ])]),
1272
1272
  _: 1
1273
- })) : (a(), p(o, {
1273
+ })) : (a(), f(I, {
1274
1274
  key: 3,
1275
1275
  type: "submit",
1276
- onClick: M
1276
+ onClick: j
1277
1277
  }, {
1278
- default: n(() => [...l[45] || (l[45] = [
1278
+ default: r(() => [...l[45] || (l[45] = [
1279
1279
  m(" Save Changes ", -1)
1280
1280
  ])]),
1281
1281
  _: 1
@@ -1291,298 +1291,444 @@ const ae = { class: "grid py-4" }, re = { class: "grid grid-cols-2 gap-2 mb-6" }
1291
1291
  }, 8, ["open"]);
1292
1292
  };
1293
1293
  }
1294
- }), rl = { class: "w-full" }, dl = { class: "flex items-center justify-between gap-4 w-full my-4" }, il = {
1294
+ }), xl = { class: "w-full" }, Cl = { class: "flex items-center justify-between gap-4 w-full my-4" }, kl = {
1295
1295
  key: 0,
1296
1296
  class: "flex gap-4 flex-wrap mb-8"
1297
- }, ul = ["onClick"], cl = { class: "text-muted-foreground group-hover/item:text-white transition-colors duration-300" }, ml = {
1297
+ }, Dl = ["onClick"], Fl = { class: "text-muted-foreground group-hover/item:text-white transition-colors duration-300" }, Sl = {
1298
1298
  key: 1,
1299
1299
  class: "flex gap-4 flex-wrap mb-8"
1300
- }, yl = {
1300
+ }, $l = {
1301
1301
  key: 2,
1302
1302
  class: "flex gap-4 flex-wrap mb-8"
1303
- }, pl = ["onClick"], vl = { class: "text-muted-foreground group-hover/item:text-white transition-colors duration-300" }, bl = {
1303
+ }, Tl = ["onClick"], wl = { class: "text-muted-foreground group-hover/item:text-white transition-colors duration-300" }, Vl = {
1304
1304
  key: 3,
1305
1305
  class: "flex gap-4 flex-wrap mb-8"
1306
- }, gl = {
1306
+ }, Ul = {
1307
1307
  key: 4,
1308
1308
  class: "flex gap-4 flex-wrap mb-8"
1309
- }, fl = ["onClick"], xl = { class: "text-muted-foreground group-hover/item:text-white transition-colors duration-300" }, Cl = {
1309
+ }, zl = ["onClick"], Nl = { class: "text-muted-foreground group-hover/item:text-white transition-colors duration-300" }, Bl = {
1310
1310
  key: 5,
1311
1311
  class: "flex gap-4 flex-wrap mb-8"
1312
- }, Sl = /* @__PURE__ */ X({
1312
+ }, Al = {
1313
+ key: 6,
1314
+ class: "mb-8"
1315
+ }, _l = { class: "flex flex-wrap items-center gap-3 mb-4" }, Rl = { class: "flex items-center gap-3 rounded-md border border-border px-3 py-2" }, Ll = { class: "font-mono text-sm uppercase" }, Il = {
1316
+ key: 0,
1317
+ class: "flex flex-wrap gap-3"
1318
+ }, El = ["aria-label", "title", "onClick"], Ol = { class: "min-w-24" }, Gl = { class: "font-mono text-sm uppercase" }, Jl = { class: "text-xs text-muted-foreground" }, Ml = {
1319
+ key: 1,
1320
+ class: "text-muted-foreground"
1321
+ }, Hl = {
1322
+ key: 7,
1323
+ class: "flex gap-4 flex-wrap mb-8"
1324
+ }, Kl = /* @__PURE__ */ se({
1313
1325
  __name: "GlobalStyling",
1314
- setup(P) {
1315
- const { navigateTo: j } = te(), { getModuleData: $, setModuleData: T } = oe();
1316
- se(() => [
1326
+ setup(q) {
1327
+ const { navigateTo: Q } = me(), { getModuleData: $, setModuleData: T } = pe();
1328
+ ye(() => [
1317
1329
  { text: "Global Styling" }
1318
1330
  ]);
1319
- const U = w(""), k = w(""), D = w(""), y = w(null), c = w(null), e = w(null), J = Q(() => y.value === null ? null : y.value && y.value.find((r) => r.id === "DEFAULT") ? y.value : [
1331
+ const A = U(""), F = U(""), S = U(""), v = U(null), c = U(null), e = U(null), w = U(null), G = U("#3B82F6"), j = K(() => v.value === null ? null : v.value && v.value.find((n) => n.id === "DEFAULT") ? v.value : [
1320
1332
  { id: "DEFAULT", name: "Default", className: "", styles: { backgroundColor: "#FFFFFF", textColor: "#000000" } },
1321
- ...y.value
1322
- ]), _ = Q(() => J.value?.find((r) => r.id === "DEFAULT")?.styles.backgroundColor ?? "#FFFFFF"), M = Q(() => c.value === null ? null : c.value && c.value.find((r) => r.id === "DEFAULT") ? c.value : [
1333
+ ...v.value
1334
+ ]), H = K(() => j.value?.find((n) => n.id === "DEFAULT")?.styles.backgroundColor ?? "#FFFFFF"), W = K(() => c.value === null ? null : c.value && c.value.find((n) => n.id === "DEFAULT") ? c.value : [
1323
1335
  { id: "DEFAULT", name: "Default", className: "", styles: { backgroundColor: "#FFFFFF", textColor: "#000000" } },
1324
1336
  ...c.value
1325
- ]), H = Q(() => e.value === null ? null : e.value && e.value.find((r) => r.id === "DEFAULT") ? e.value : [
1337
+ ]), V = K(() => e.value === null ? null : e.value && e.value.find((n) => n.id === "DEFAULT") ? e.value : [
1326
1338
  { id: "DEFAULT", name: "Default", className: "", styles: { backgroundColor: "#FFFFFF", textColor: "#000000" } },
1327
1339
  ...e.value
1328
- ]);
1329
- async function K(r) {
1330
- let o = JSON.parse(JSON.stringify(r)), b = crypto.randomUUID();
1331
- o.id = b, y.value.push(o), y.value = await $("sectionThemes") || [], y.value.push(o), T("sectionThemes", y.value);
1340
+ ]), i = K(() => w.value), u = K(() => w.value === null ? !1 : !w.value.some((n) => n.color === C(G.value)));
1341
+ async function l(n) {
1342
+ let o = JSON.parse(JSON.stringify(n)), y = crypto.randomUUID();
1343
+ o.id = y, v.value.push(o), v.value = await $("sectionThemes") || [], v.value.push(o), T("sectionThemes", v.value);
1332
1344
  }
1333
- async function S(r) {
1334
- let o = JSON.parse(JSON.stringify(r)), b = y.value.findIndex((v) => v.id === o.id);
1335
- b !== -1 ? y.value[b] = o : o.id === "DEFAULT" && (Array.isArray(y.value) || (y.value = []), y.value = [
1345
+ async function X(n) {
1346
+ let o = JSON.parse(JSON.stringify(n)), y = v.value.findIndex((x) => x.id === o.id);
1347
+ y !== -1 ? v.value[y] = o : o.id === "DEFAULT" && (Array.isArray(v.value) || (v.value = []), v.value = [
1336
1348
  { id: "DEFAULT", name: "Default", styles: o.styles },
1337
- ...y.value
1338
- ]), y.value = await $("sectionThemes") || [], b = y.value.findIndex((v) => v.id === o.id), b !== -1 ? (y.value[b] = o, T("sectionThemes", y.value)) : o.id === "DEFAULT" && (Array.isArray(y.value) || (y.value = []), y.value = [
1349
+ ...v.value
1350
+ ]), v.value = await $("sectionThemes") || [], y = v.value.findIndex((x) => x.id === o.id), y !== -1 ? (v.value[y] = o, T("sectionThemes", v.value)) : o.id === "DEFAULT" && (Array.isArray(v.value) || (v.value = []), v.value = [
1339
1351
  { id: "DEFAULT", name: "Default", styles: o.styles },
1340
- ...y.value
1341
- ], T("sectionThemes", y.value));
1352
+ ...v.value
1353
+ ], T("sectionThemes", v.value));
1342
1354
  }
1343
- async function i(r) {
1344
- y.value = y.value.filter((o) => o.id !== r), y.value = await $("sectionThemes") || [], y.value = y.value.filter((o) => o.id !== r), T("sectionThemes", y.value);
1355
+ async function _(n) {
1356
+ v.value = v.value.filter((o) => o.id !== n), v.value = await $("sectionThemes") || [], v.value = v.value.filter((o) => o.id !== n), T("sectionThemes", v.value);
1345
1357
  }
1346
- async function u(r) {
1347
- let o = JSON.parse(JSON.stringify(r)), b = crypto.randomUUID();
1348
- o.id = b, c.value.push(o), c.value = await $("buttonThemes") || [], c.value.push(o), T("buttonThemes", c.value);
1358
+ async function E(n) {
1359
+ let o = JSON.parse(JSON.stringify(n)), y = crypto.randomUUID();
1360
+ o.id = y, c.value.push(o), c.value = await $("buttonThemes") || [], c.value.push(o), T("buttonThemes", c.value);
1349
1361
  }
1350
- async function l(r) {
1351
- let o = JSON.parse(JSON.stringify(r)), b = c.value.findIndex((v) => v.id === o.id);
1352
- b !== -1 ? c.value[b] = o : o.id === "DEFAULT" && (Array.isArray(c.value) || (c.value = []), c.value = [
1362
+ async function k(n) {
1363
+ let o = JSON.parse(JSON.stringify(n)), y = c.value.findIndex((x) => x.id === o.id);
1364
+ y !== -1 ? c.value[y] = o : o.id === "DEFAULT" && (Array.isArray(c.value) || (c.value = []), c.value = [
1353
1365
  { id: "DEFAULT", name: "Default", styles: o.styles },
1354
1366
  ...c.value
1355
- ]), c.value = await $("buttonThemes") || [], b = c.value.findIndex((v) => v.id === o.id), b !== -1 ? (c.value[b] = o, T("buttonThemes", c.value)) : o.id === "DEFAULT" && (Array.isArray(c.value) || (c.value = []), c.value = [
1367
+ ]), c.value = await $("buttonThemes") || [], y = c.value.findIndex((x) => x.id === o.id), y !== -1 ? (c.value[y] = o, T("buttonThemes", c.value)) : o.id === "DEFAULT" && (Array.isArray(c.value) || (c.value = []), c.value = [
1356
1368
  { id: "DEFAULT", name: "Default", styles: o.styles },
1357
1369
  ...c.value
1358
1370
  ], T("buttonThemes", c.value));
1359
1371
  }
1360
- async function q(r) {
1361
- c.value = c.value.filter((o) => o.id !== r), c.value = await $("buttonThemes") || [], c.value = c.value.filter((o) => o.id !== r), T("buttonThemes", c.value);
1372
+ async function z(n) {
1373
+ c.value = c.value.filter((o) => o.id !== n), c.value = await $("buttonThemes") || [], c.value = c.value.filter((o) => o.id !== n), T("buttonThemes", c.value);
1362
1374
  }
1363
- const z = function(r) {
1375
+ const O = function(n) {
1364
1376
  let o = {};
1365
- if (o.backgroundColor = r.styles.backgroundColor, o.color = r.styles.textColor, r.styles.buttonStyle === "outline" ? o.border = `1px solid ${r.styles.borderColor}` : r.styles.buttonStyle === "shadow" ? o.boxShadow = "0 3px 6px #ccc" : r.styles.buttonStyle === "retro" && (o.boxShadow = `inset 0 0 0 2px ${r.styles.borderColor}, 2px 2px 0 ${r.styles.borderColor}`), r.styles.buttonRoundness !== "none") {
1366
- let b = 0;
1367
- r.styles.buttonRoundness === "small" ? b = 4 : r.styles.buttonRoundness === "medium" ? b = 8 : r.styles.buttonRoundness === "pill" && (b = 9999), o.borderRadius = `${b}px`;
1377
+ if (o.backgroundColor = n.styles.backgroundColor, o.color = n.styles.textColor, n.styles.buttonStyle === "outline" ? o.border = `1px solid ${n.styles.borderColor}` : n.styles.buttonStyle === "shadow" ? o.boxShadow = "0 3px 6px #ccc" : n.styles.buttonStyle === "retro" && (o.boxShadow = `inset 0 0 0 2px ${n.styles.borderColor}, 2px 2px 0 ${n.styles.borderColor}`), n.styles.buttonRoundness !== "none") {
1378
+ let y = 0;
1379
+ n.styles.buttonRoundness === "small" ? y = 4 : n.styles.buttonRoundness === "medium" ? y = 8 : n.styles.buttonRoundness === "pill" && (y = 9999), o.borderRadius = `${y}px`;
1368
1380
  }
1369
1381
  return o;
1370
1382
  };
1371
- async function L(r) {
1372
- let o = JSON.parse(JSON.stringify(r)), b = crypto.randomUUID();
1373
- o.id = b, e.value.push(o), e.value = await $("cardThemes") || [], e.value.push(o), T("cardThemes", e.value);
1383
+ async function Y(n) {
1384
+ let o = JSON.parse(JSON.stringify(n)), y = crypto.randomUUID();
1385
+ o.id = y, e.value.push(o), e.value = await $("cardThemes") || [], e.value.push(o), T("cardThemes", e.value);
1374
1386
  }
1375
- async function x(r) {
1376
- let o = JSON.parse(JSON.stringify(r)), b = e.value.findIndex((v) => v.id === o.id);
1377
- b !== -1 ? e.value[b] = o : o.id === "DEFAULT" && (Array.isArray(e.value) || (e.value = []), e.value = [
1387
+ async function I(n) {
1388
+ let o = JSON.parse(JSON.stringify(n)), y = e.value.findIndex((x) => x.id === o.id);
1389
+ y !== -1 ? e.value[y] = o : o.id === "DEFAULT" && (Array.isArray(e.value) || (e.value = []), e.value = [
1378
1390
  { id: "DEFAULT", name: "Default", styles: o.styles },
1379
1391
  ...e.value
1380
- ]), e.value = await $("cardThemes") || [], b = e.value.findIndex((v) => v.id === o.id), b !== -1 ? (e.value[b] = o, T("cardThemes", e.value)) : o.id === "DEFAULT" && (Array.isArray(e.value) || (e.value = []), e.value = [
1392
+ ]), e.value = await $("cardThemes") || [], y = e.value.findIndex((x) => x.id === o.id), y !== -1 ? (e.value[y] = o, T("cardThemes", e.value)) : o.id === "DEFAULT" && (Array.isArray(e.value) || (e.value = []), e.value = [
1381
1393
  { id: "DEFAULT", name: "Default", styles: o.styles },
1382
1394
  ...e.value
1383
1395
  ], T("cardThemes", e.value));
1384
1396
  }
1385
- async function V(r) {
1386
- e.value = e.value.filter((o) => o.id !== r), e.value = await $("cardThemes") || [], e.value = e.value.filter((o) => o.id !== r), T("cardThemes", e.value);
1397
+ async function Z(n) {
1398
+ e.value = e.value.filter((o) => o.id !== n), e.value = await $("cardThemes") || [], e.value = e.value.filter((o) => o.id !== n), T("cardThemes", e.value);
1387
1399
  }
1388
- const E = function(r) {
1400
+ function C(n) {
1401
+ return n.startsWith("#") ? n.toUpperCase() : `#${n.toUpperCase()}`;
1402
+ }
1403
+ function h() {
1404
+ return [
1405
+ { id: "WHITE", name: "White", color: "#FFFFFF", isDefault: !1 },
1406
+ { id: "BLACK", name: "Black", color: "#000000", isDefault: !0 }
1407
+ ];
1408
+ }
1409
+ function d(n) {
1410
+ if (!Array.isArray(n)) return [];
1411
+ let o = !1;
1412
+ const y = n.map((x) => {
1413
+ const p = typeof x == "string" ? {
1414
+ id: crypto.randomUUID(),
1415
+ color: C(x),
1416
+ isDefault: !1
1417
+ } : {
1418
+ id: x.id || crypto.randomUUID(),
1419
+ name: x.name,
1420
+ color: C(x.color),
1421
+ isDefault: !!x.isDefault
1422
+ };
1423
+ return p.isDefault && (p.isDefault = !o, o = !0), p;
1424
+ });
1425
+ return y.length && !o && (y[0].isDefault = !0), y;
1426
+ }
1427
+ async function de() {
1428
+ const n = d(await $("iconColors") ?? w.value ?? []), o = C(G.value);
1429
+ if (n.some((y) => y.color === o)) {
1430
+ w.value = n;
1431
+ return;
1432
+ }
1433
+ w.value = [
1434
+ ...n,
1435
+ {
1436
+ id: crypto.randomUUID(),
1437
+ color: o,
1438
+ isDefault: n.length === 0
1439
+ }
1440
+ ], T("iconColors", w.value);
1441
+ }
1442
+ async function ie(n) {
1443
+ const o = d(await $("iconColors") ?? w.value ?? []), y = o.find((p) => p.id === n), x = o.filter((p) => p.id !== n);
1444
+ y?.isDefault && x.length && (x[0].isDefault = !0), w.value = x, T("iconColors", w.value);
1445
+ }
1446
+ async function re(n) {
1447
+ const o = d(await $("iconColors") ?? w.value ?? []);
1448
+ w.value = o.map((y) => ({
1449
+ ...y,
1450
+ isDefault: y.id === n
1451
+ })), T("iconColors", w.value);
1452
+ }
1453
+ const ue = function(n) {
1389
1454
  let o = {};
1390
- if (o.backgroundColor = r.styles.backgroundColor, o.color = r.styles.textColor, r.styles.style === "outline" ? o.border = `1px solid ${r.styles.borderColor}` : r.styles.style === "shadow" ? o.boxShadow = "0 3px 6px #ccc" : r.styles.style === "retro" && (o.boxShadow = `inset 0 0 0 2px ${r.styles.borderColor}, 2px 2px 0 ${r.styles.borderColor}`), r.styles.roundness !== "none") {
1391
- let b = 0;
1392
- r.styles.roundness === "small" ? b = 4 : r.styles.roundness === "medium" && (b = 8), o.borderRadius = `${b}px`;
1455
+ if (o.backgroundColor = n.styles.backgroundColor, o.color = n.styles.textColor, n.styles.style === "outline" ? o.border = `1px solid ${n.styles.borderColor}` : n.styles.style === "shadow" ? o.boxShadow = "0 3px 6px #ccc" : n.styles.style === "retro" && (o.boxShadow = `inset 0 0 0 2px ${n.styles.borderColor}, 2px 2px 0 ${n.styles.borderColor}`), n.styles.roundness !== "none") {
1456
+ let y = 0;
1457
+ n.styles.roundness === "small" ? y = 4 : n.styles.roundness === "medium" && (y = 8), o.borderRadius = `${y}px`;
1393
1458
  }
1394
1459
  return o;
1395
1460
  };
1396
- return le(() => {
1397
- $("sectionThemes").then((r) => {
1398
- y.value = r || [];
1399
- }), $("buttonThemes").then((r) => {
1400
- c.value = r || [];
1401
- }), $("cardThemes").then((r) => {
1402
- e.value = r || [];
1461
+ return ce(() => {
1462
+ $("sectionThemes").then((n) => {
1463
+ v.value = n || [];
1464
+ }), $("buttonThemes").then((n) => {
1465
+ c.value = n || [];
1466
+ }), $("cardThemes").then((n) => {
1467
+ e.value = n || [];
1468
+ }), $("iconColors").then((n) => {
1469
+ if (n == null) {
1470
+ w.value = h(), T("iconColors", w.value);
1471
+ return;
1472
+ }
1473
+ w.value = d(n);
1403
1474
  });
1404
- }), (r, o) => {
1405
- const b = f("Button"), v = f("Skeleton");
1406
- return a(), F(W, null, [
1407
- t("div", rl, [
1408
- t("div", dl, [
1409
- s(b, {
1410
- onClick: o[0] || (o[0] = (C) => g(j)("/")),
1475
+ }), (n, o) => {
1476
+ const y = g("Button"), x = g("Skeleton");
1477
+ return a(), D(le, null, [
1478
+ t("div", xl, [
1479
+ t("div", Cl, [
1480
+ s(y, {
1481
+ onClick: o[0] || (o[0] = (p) => b(Q)("/")),
1411
1482
  variant: "link",
1412
1483
  class: "!pl-0"
1413
1484
  }, {
1414
- default: n(() => [
1415
- s(g(ne), { class: "size-4" }),
1416
- o[4] || (o[4] = m(" Collections ", -1))
1485
+ default: r(() => [
1486
+ s(b(ve), { class: "size-4" }),
1487
+ o[5] || (o[5] = m(" Collections ", -1))
1417
1488
  ]),
1418
1489
  _: 1
1419
1490
  })
1420
1491
  ]),
1421
- o[10] || (o[10] = t("h1", { class: "text-3xl mb-8" }, "Global Styling", -1)),
1422
- o[11] || (o[11] = t("h3", { class: "text-2xl mb-2" }, "Section Variants", -1)),
1423
- o[12] || (o[12] = t("p", { class: "mb-6 max-w-3xl text-muted-foreground" }, " Set up the default design variants for your sections. These styles will be available across all collections by default, but you can choose to disable them within individual collections if needed. ", -1)),
1424
- J.value !== null ? (a(), F("div", il, [
1492
+ o[12] || (o[12] = t("h1", { class: "text-3xl mb-8" }, "Global Styling", -1)),
1493
+ o[13] || (o[13] = t("h3", { class: "text-2xl mb-2" }, "Section Variants", -1)),
1494
+ o[14] || (o[14] = t("p", { class: "mb-6 max-w-3xl text-muted-foreground" }, " Set up the default design variants for your sections. These styles will be available across all collections by default, but you can choose to disable them within individual collections if needed. ", -1)),
1495
+ j.value !== null ? (a(), D("div", kl, [
1425
1496
  t("div", {
1426
1497
  class: "group/item flex flex-col gap-2 items-center",
1427
- onClick: o[1] || (o[1] = (C) => U.value.openDialog())
1498
+ onClick: o[1] || (o[1] = (p) => A.value.openDialog())
1428
1499
  }, [
1429
- s(b, {
1500
+ s(y, {
1430
1501
  variant: "outline",
1431
1502
  class: "size-44 border-dotted",
1432
1503
  tabindex: "-1"
1433
1504
  }, {
1434
- default: n(() => [
1435
- s(g(Z), { class: "size-14" })
1505
+ default: r(() => [
1506
+ s(b(oe), { class: "size-14" })
1436
1507
  ]),
1437
1508
  _: 1
1438
1509
  }),
1439
- o[5] || (o[5] = t("p", { class: "text-muted-foreground group-hover/item:text-white transition-colors duration-300" }, "New Style", -1))
1510
+ o[6] || (o[6] = t("p", { class: "text-muted-foreground group-hover/item:text-white transition-colors duration-300" }, "New Style", -1))
1440
1511
  ]),
1441
- (a(!0), F(W, null, Y(J.value, (C) => (a(), F("div", {
1512
+ (a(!0), D(le, null, te(j.value, (p) => (a(), D("div", {
1442
1513
  class: "group/item flex flex-col gap-2 text-black items-center cursor-pointer hover:brightness-105 transition-all duration-300",
1443
- key: C.id,
1444
- onClick: (d) => U.value.openDialog(C)
1514
+ key: p.id,
1515
+ onClick: (ee) => A.value.openDialog(p)
1445
1516
  }, [
1446
1517
  t("div", {
1447
1518
  class: "flex flex-col items-start rounded-md p-4 size-44",
1448
- style: N({ backgroundColor: C.styles.backgroundColor, border: "1px solid #E5E7EB" })
1519
+ style: N({ backgroundColor: p.styles.backgroundColor, border: "1px solid #E5E7EB" })
1449
1520
  }, [
1450
1521
  t("strong", {
1451
1522
  class: "text-2xl",
1452
- style: N({ color: C.styles.titleColor })
1523
+ style: N({ color: p.styles.titleColor })
1453
1524
  }, "Title", 4),
1454
1525
  t("p", {
1455
1526
  class: "mb-1",
1456
- style: N({ color: C.styles.textColor })
1457
- }, [...o[6] || (o[6] = [
1527
+ style: N({ color: p.styles.textColor })
1528
+ }, [...o[7] || (o[7] = [
1458
1529
  m("Lorem ipsum dolor", -1),
1459
1530
  t("br", null, null, -1),
1460
1531
  m("sit amet.", -1)
1461
1532
  ])], 4),
1462
- C.className ? (a(), F("p", {
1533
+ p.className ? (a(), D("p", {
1463
1534
  key: 0,
1464
1535
  class: "px-3 py-1.5 rounded-[99px]",
1465
- style: N({ backgroundColor: C.styles.textColor, color: C.styles.backgroundColor })
1466
- }, "." + R(C.className), 5)) : G("", !0)
1536
+ style: N({ backgroundColor: p.styles.textColor, color: p.styles.backgroundColor })
1537
+ }, "." + B(p.className), 5)) : P("", !0)
1467
1538
  ], 4),
1468
- t("p", cl, R(C.name), 1)
1469
- ], 8, ul))), 128))
1470
- ])) : (a(), F("div", ml, [
1471
- s(v, { class: "size-44 rounded-md" }),
1472
- s(v, { class: "size-44 rounded-md" })
1539
+ t("p", Fl, B(p.name), 1)
1540
+ ], 8, Dl))), 128))
1541
+ ])) : (a(), D("div", Sl, [
1542
+ s(x, { class: "size-44 rounded-md" }),
1543
+ s(x, { class: "size-44 rounded-md" })
1473
1544
  ])),
1474
- o[13] || (o[13] = t("h3", { class: "text-2xl mb-2" }, "Button Variants", -1)),
1475
- o[14] || (o[14] = t("p", { class: "mb-6 max-w-3xl text-muted-foreground" }, " Define your standard button styles here. Collections can inherit these defaults or customize their own variants for more tailored experiences. ", -1)),
1476
- M.value !== null ? (a(), F("div", yl, [
1545
+ o[15] || (o[15] = t("h3", { class: "text-2xl mb-2" }, "Button Variants", -1)),
1546
+ o[16] || (o[16] = t("p", { class: "mb-6 max-w-3xl text-muted-foreground" }, " Define your standard button styles here. Collections can inherit these defaults or customize their own variants for more tailored experiences. ", -1)),
1547
+ W.value !== null ? (a(), D("div", $l, [
1477
1548
  t("div", {
1478
1549
  class: "group/item flex flex-col gap-2 items-center",
1479
- onClick: o[2] || (o[2] = (C) => k.value.openDialog())
1550
+ onClick: o[2] || (o[2] = (p) => F.value.openDialog())
1480
1551
  }, [
1481
- s(b, {
1552
+ s(y, {
1482
1553
  variant: "outline",
1483
1554
  class: "size-44 border-dotted",
1484
1555
  tabindex: "-1"
1485
1556
  }, {
1486
- default: n(() => [
1487
- s(g(Z), { class: "size-14" })
1557
+ default: r(() => [
1558
+ s(b(oe), { class: "size-14" })
1488
1559
  ]),
1489
1560
  _: 1
1490
1561
  }),
1491
- o[7] || (o[7] = t("p", { class: "text-muted-foreground group-hover/item:text-white transition-colors duration-300" }, "New Style", -1))
1562
+ o[8] || (o[8] = t("p", { class: "text-muted-foreground group-hover/item:text-white transition-colors duration-300" }, "New Style", -1))
1492
1563
  ]),
1493
- (a(!0), F(W, null, Y(M.value, (C) => (a(), F("div", {
1564
+ (a(!0), D(le, null, te(W.value, (p) => (a(), D("div", {
1494
1565
  class: "group/item flex flex-col gap-2 text-black items-center cursor-pointer hover:brightness-105 transition-all duration-300",
1495
- key: C.id,
1496
- onClick: (d) => k.value.openDialog(C)
1566
+ key: p.id,
1567
+ onClick: (ee) => F.value.openDialog(p)
1497
1568
  }, [
1498
1569
  t("div", {
1499
1570
  class: "flex flex-col items-center justify-center rounded-md p-4 size-44",
1500
- style: N({ backgroundColor: _.value })
1571
+ style: N({ backgroundColor: H.value })
1501
1572
  }, [
1502
1573
  t("div", {
1503
- style: N(z(C)),
1574
+ style: N(O(p)),
1504
1575
  class: "px-4 py-2"
1505
1576
  }, " Button ", 4)
1506
1577
  ], 4),
1507
- t("p", vl, R(C.name), 1)
1508
- ], 8, pl))), 128))
1509
- ])) : (a(), F("div", bl, [
1510
- s(v, { class: "size-44 rounded-md" }),
1511
- s(v, { class: "size-44 rounded-md" })
1578
+ t("p", wl, B(p.name), 1)
1579
+ ], 8, Tl))), 128))
1580
+ ])) : (a(), D("div", Vl, [
1581
+ s(x, { class: "size-44 rounded-md" }),
1582
+ s(x, { class: "size-44 rounded-md" })
1512
1583
  ])),
1513
- o[15] || (o[15] = t("h3", { class: "text-2xl mb-2" }, "Card Variants", -1)),
1514
- o[16] || (o[16] = t("p", { class: "mb-6 max-w-3xl text-muted-foreground" }, " Define your standard card styles here. Collections can inherit these defaults or customize their own variants for more tailored experiences. ", -1)),
1515
- H.value !== null ? (a(), F("div", gl, [
1584
+ o[17] || (o[17] = t("h3", { class: "text-2xl mb-2" }, "Card Variants", -1)),
1585
+ o[18] || (o[18] = t("p", { class: "mb-6 max-w-3xl text-muted-foreground" }, " Define your standard card styles here. Collections can inherit these defaults or customize their own variants for more tailored experiences. ", -1)),
1586
+ V.value !== null ? (a(), D("div", Ul, [
1516
1587
  t("div", {
1517
1588
  class: "group/item flex flex-col gap-2 items-center",
1518
- onClick: o[3] || (o[3] = (C) => D.value.openDialog())
1589
+ onClick: o[3] || (o[3] = (p) => S.value.openDialog())
1519
1590
  }, [
1520
- s(b, {
1591
+ s(y, {
1521
1592
  variant: "outline",
1522
1593
  class: "size-44 border-dotted",
1523
1594
  tabindex: "-1"
1524
1595
  }, {
1525
- default: n(() => [
1526
- s(g(Z), { class: "size-14" })
1596
+ default: r(() => [
1597
+ s(b(oe), { class: "size-14" })
1527
1598
  ]),
1528
1599
  _: 1
1529
1600
  }),
1530
- o[8] || (o[8] = t("p", { class: "text-muted-foreground group-hover/item:text-white transition-colors duration-300" }, "New Style", -1))
1601
+ o[9] || (o[9] = t("p", { class: "text-muted-foreground group-hover/item:text-white transition-colors duration-300" }, "New Style", -1))
1531
1602
  ]),
1532
- (a(!0), F(W, null, Y(H.value, (C) => (a(), F("div", {
1603
+ (a(!0), D(le, null, te(V.value, (p) => (a(), D("div", {
1533
1604
  class: "group/item flex flex-col gap-2 text-black items-center cursor-pointer hover:brightness-105 transition-all duration-300",
1534
- key: C.id,
1535
- onClick: (d) => D.value.openDialog(C)
1605
+ key: p.id,
1606
+ onClick: (ee) => S.value.openDialog(p)
1536
1607
  }, [
1537
1608
  t("div", {
1538
1609
  class: "flex flex-col items-center justify-center rounded-md p-4 size-44",
1539
- style: N({ backgroundColor: _.value })
1610
+ style: N({ backgroundColor: H.value })
1540
1611
  }, [
1541
1612
  t("div", {
1542
- style: N(E(C)),
1613
+ style: N(ue(p)),
1543
1614
  class: "p-4"
1544
1615
  }, [
1545
1616
  t("strong", {
1546
1617
  class: "text-2xl",
1547
- style: N({ color: C.styles.titleColor })
1618
+ style: N({ color: p.styles.titleColor })
1548
1619
  }, "Card", 4),
1549
- o[9] || (o[9] = t("p", null, "Lorem ipsum dolor sit amet.", -1))
1620
+ o[10] || (o[10] = t("p", null, "Lorem ipsum dolor sit amet.", -1))
1550
1621
  ], 4)
1551
1622
  ], 4),
1552
- t("p", xl, R(C.name), 1)
1553
- ], 8, fl))), 128))
1554
- ])) : (a(), F("div", Cl, [
1555
- s(v, { class: "size-44 rounded-md" }),
1556
- s(v, { class: "size-44 rounded-md" })
1623
+ t("p", Nl, B(p.name), 1)
1624
+ ], 8, zl))), 128))
1625
+ ])) : (a(), D("div", Bl, [
1626
+ s(x, { class: "size-44 rounded-md" }),
1627
+ s(x, { class: "size-44 rounded-md" })
1628
+ ])),
1629
+ o[19] || (o[19] = t("h3", { class: "text-2xl mb-2" }, "Icon Colors", -1)),
1630
+ o[20] || (o[20] = t("p", { class: "mb-6 max-w-3xl text-muted-foreground" }, " Manage the color options available for icons and choose which one is used by default. ", -1)),
1631
+ i.value !== null ? (a(), D("div", Al, [
1632
+ t("div", _l, [
1633
+ t("label", Rl, [
1634
+ J(t("input", {
1635
+ "onUpdate:modelValue": o[4] || (o[4] = (p) => G.value = p),
1636
+ type: "color",
1637
+ class: "h-9 w-12 cursor-pointer rounded border border-border bg-transparent p-1"
1638
+ }, null, 512), [
1639
+ [M, G.value]
1640
+ ]),
1641
+ t("span", Ll, B(G.value), 1)
1642
+ ]),
1643
+ s(y, {
1644
+ onClick: de,
1645
+ disabled: !u.value
1646
+ }, {
1647
+ default: r(() => [
1648
+ s(b(oe), { class: "size-4" }),
1649
+ o[11] || (o[11] = m(" Add Color ", -1))
1650
+ ]),
1651
+ _: 1
1652
+ }, 8, ["disabled"])
1653
+ ]),
1654
+ i.value.length ? (a(), D("div", Il, [
1655
+ (a(!0), D(le, null, te(i.value, (p) => (a(), D("div", {
1656
+ class: "flex items-center gap-3 rounded-md border border-border p-3",
1657
+ key: p.id
1658
+ }, [
1659
+ t("button", {
1660
+ type: "button",
1661
+ class: "size-10 rounded-md border border-border",
1662
+ style: N({ backgroundColor: p.color }),
1663
+ "aria-label": `Set ${p.color} as default icon color`,
1664
+ title: `Set ${p.color} as default`,
1665
+ onClick: (ee) => re(p.id)
1666
+ }, null, 12, El),
1667
+ t("div", Ol, [
1668
+ t("p", Gl, B(p.color), 1),
1669
+ t("p", Jl, B(p.isDefault ? "Default" : p.name || "Icon color"), 1)
1670
+ ]),
1671
+ s(y, {
1672
+ type: "button",
1673
+ size: "icon",
1674
+ variant: p.isDefault ? "default" : "outline",
1675
+ "aria-pressed": p.isDefault,
1676
+ "aria-label": `Set ${p.color} as default icon color`,
1677
+ title: `Set ${p.color} as default`,
1678
+ onClick: (ee) => re(p.id)
1679
+ }, {
1680
+ default: r(() => [
1681
+ s(b(fe), { class: "size-4" })
1682
+ ]),
1683
+ _: 1
1684
+ }, 8, ["variant", "aria-pressed", "aria-label", "title", "onClick"]),
1685
+ s(y, {
1686
+ type: "button",
1687
+ size: "icon",
1688
+ variant: "outline",
1689
+ "aria-label": `Delete ${p.color}`,
1690
+ title: `Delete ${p.color}`,
1691
+ onClick: (ee) => ie(p.id)
1692
+ }, {
1693
+ default: r(() => [
1694
+ s(b(be), { class: "size-4" })
1695
+ ]),
1696
+ _: 1
1697
+ }, 8, ["aria-label", "title", "onClick"])
1698
+ ]))), 128))
1699
+ ])) : (a(), D("p", Ml, "No icon colors configured."))
1700
+ ])) : (a(), D("div", Hl, [
1701
+ s(x, { class: "size-44 rounded-md" }),
1702
+ s(x, { class: "size-44 rounded-md" })
1557
1703
  ]))
1558
1704
  ]),
1559
- s(Fe, {
1705
+ s(Re, {
1560
1706
  ref_key: "sectionStyleDialog",
1561
- ref: U,
1562
- onAdd: K,
1563
- onEdit: S,
1564
- onDelete: i
1707
+ ref: A,
1708
+ onAdd: l,
1709
+ onEdit: X,
1710
+ onDelete: _
1565
1711
  }, null, 512),
1566
- s(Je, {
1712
+ s(he, {
1567
1713
  ref_key: "buttonStyleDialog",
1568
- ref: k,
1569
- defaultBackground: _.value,
1570
- onAdd: u,
1571
- onEdit: l,
1572
- onDelete: q
1714
+ ref: F,
1715
+ defaultBackground: H.value,
1716
+ onAdd: E,
1717
+ onEdit: k,
1718
+ onDelete: z
1573
1719
  }, null, 8, ["defaultBackground"]),
1574
- s(al, {
1720
+ s(gl, {
1575
1721
  ref_key: "cardStyleDialog",
1576
- ref: D,
1577
- defaultBackground: _.value,
1578
- onAdd: L,
1579
- onEdit: x,
1580
- onDelete: V
1722
+ ref: S,
1723
+ defaultBackground: H.value,
1724
+ onAdd: Y,
1725
+ onEdit: I,
1726
+ onDelete: Z
1581
1727
  }, null, 8, ["defaultBackground"])
1582
1728
  ], 64);
1583
1729
  };
1584
1730
  }
1585
1731
  });
1586
1732
  export {
1587
- Sl as default
1733
+ Kl as default
1588
1734
  };