lf-pagebuilder-vue 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,11 +1,12 @@
1
- import { defineComponent as H, ref as S, computed as K, createElementBlock as i, openBlock as s, Fragment as B, createElementVNode as t, createCommentVNode as P, withModifiers as oe, withDirectives as R, vModelText as Y, normalizeClass as L, toDisplayString as p, renderList as V, vModelSelect as J, vModelCheckbox as te, createBlock as ie, createTextVNode as T, unref as G, onMounted as le, createVNode as q, watch as ee, nextTick as be, withCtx as de, vShow as ge, reactive as fe } from "vue";
2
- import { listComponents as pe } from "libreria-astro-lefebvre";
3
- import { QuillEditor as ve } from "@vueup/vue-quill";
1
+ import { defineComponent as H, ref as S, computed as K, createElementBlock as r, openBlock as a, Fragment as B, createCommentVNode as P, createElementVNode as t, withModifiers as oe, withDirectives as R, vModelText as Y, normalizeClass as G, toDisplayString as p, renderList as V, vModelSelect as J, vModelCheckbox as te, createBlock as ie, createTextVNode as T, unref as q, onMounted as le, createVNode as L, watch as ee, nextTick as ge, withCtx as de, vShow as fe, reactive as pe } from "vue";
2
+ import { listComponents as ve } from "libreria-astro-lefebvre";
3
+ import { QuillEditor as xe } from "@vueup/vue-quill";
4
4
  import ue from "vuedraggable";
5
- const xe = H({
5
+ const he = H({
6
6
  props: {
7
7
  isComponentMode: Boolean,
8
8
  fullwidthMode: Boolean,
9
+ debugMode: Boolean,
9
10
  toggleComponentModeFunction: Function,
10
11
  toggleFullwidthMode: Function,
11
12
  importConfigurationFunction: Function,
@@ -28,37 +29,37 @@ const xe = H({
28
29
  "update:parametersPageConfiguration.seo.description"
29
30
  ],
30
31
  setup(e) {
31
- const o = e.renderApiDomain || "http://localhost:8003", g = S(""), x = S(!1), f = K({
32
+ const o = e.renderApiDomain || "http://localhost:8003", g = S(""), h = S(!1), f = K({
32
33
  get() {
33
- var k, A;
34
+ var k, I;
34
35
  const m = (k = e.globalPageConfiguration) == null ? void 0 : k.find((w) => w.section === e.sectionSelected);
35
- return ((A = m == null ? void 0 : m.config) == null ? void 0 : A.width) || "";
36
+ return ((I = m == null ? void 0 : m.config) == null ? void 0 : I.width) || "";
36
37
  },
37
38
  set(m) {
38
- var A;
39
- const k = (A = e.globalPageConfiguration) == null ? void 0 : A.find((w) => w.section === e.sectionSelected);
39
+ var I;
40
+ const k = (I = e.globalPageConfiguration) == null ? void 0 : I.find((w) => w.section === e.sectionSelected);
40
41
  k && (k.config || (k.config = {}), k.config.width = m);
41
42
  }
42
- }), u = () => {
43
+ }), c = () => {
43
44
  const m = {
44
45
  pageConfig: e.globalPageConfiguration,
45
46
  paramsConfig: e.parametersPageConfiguration
46
- }, k = JSON.stringify(m), A = new CustomEvent("lf-pagebuilder:export", {
47
+ }, k = JSON.stringify(m), I = new CustomEvent("lf-pagebuilder:export", {
47
48
  detail: { ...m, inputId: e.inputId }
48
49
  });
49
- document.dispatchEvent(A);
50
+ document.dispatchEvent(I);
50
51
  const w = window.open("", "Preview", "width='100vw',height='100vh'");
51
52
  w && (w.document.body.innerText = k, w.document.close());
52
- }, a = () => {
53
+ }, n = () => {
53
54
  const m = {
54
55
  pageConfig: e.globalPageConfiguration,
55
56
  paramsConfig: e.parametersPageConfiguration
56
57
  }, k = JSON.stringify(m);
57
58
  b(k);
58
- const A = new CustomEvent("lf-pagebuilder:save", {
59
+ const I = new CustomEvent("lf-pagebuilder:save", {
59
60
  detail: { ...m, inputId: e.inputId }
60
61
  });
61
- if (document.dispatchEvent(A), e.inputId) {
62
+ if (document.dispatchEvent(I), e.inputId) {
62
63
  const w = document.getElementById(e.inputId);
63
64
  w && (w.value = k);
64
65
  }
@@ -78,28 +79,28 @@ const xe = H({
78
79
  "Content-Type": "application/json"
79
80
  },
80
81
  body: k
81
- }).then((A) => A.text()).then((A) => {
82
+ }).then((I) => I.text()).then((I) => {
82
83
  const w = window.open("", "Preview", "width='100vw',height='100vh'");
83
84
  if (!w) return;
84
- const c = new DOMParser().parseFromString(A, "text/html"), $ = [];
85
+ const u = new DOMParser().parseFromString(I, "text/html"), C = [];
85
86
  function j(N, X = 0) {
86
87
  if (!N || N.nodeType !== 1) return;
87
88
  const Z = N.tagName.toLowerCase();
88
- ["h1", "h2", "h3", "h4", "h5", "h6", "a", "p", "article", "section", "header", "footer"].includes(Z) && $.push({
89
+ ["h1", "h2", "h3", "h4", "h5", "h6", "a", "p", "article", "section", "header", "footer"].includes(Z) && C.push({
89
90
  tag: Z,
90
91
  text: (N.textContent || "").trim().slice(0, 80),
91
92
  depth: X
92
93
  }), Array.from(N.children).forEach((_) => j(_, X + 1));
93
94
  }
94
- j(c.body);
95
+ j(u.body);
95
96
  let D = '<h2>Estructura SEO</h2><ul style="font-family:monospace">';
96
- $.forEach((N) => {
97
+ C.forEach((N) => {
97
98
  D += `<li style="margin-left:${N.depth * 20}px"><b>${N.tag}</b>: ${N.text}</li>`;
98
99
  }), D += "</ul>", w.document.body.innerHTML = D, w.document.close();
99
100
  });
100
101
  },
101
102
  importConfig: g,
102
- showAdvancedConfig: x,
103
+ showAdvancedConfig: h,
103
104
  previewFunction: () => {
104
105
  const m = {
105
106
  pageConfig: e.globalPageConfiguration,
@@ -111,25 +112,25 @@ const xe = H({
111
112
  "Content-Type": "application/json"
112
113
  },
113
114
  body: k
114
- }).then((A) => A.text()).then((A) => {
115
+ }).then((I) => I.text()).then((I) => {
115
116
  const w = window.open("", "Preview", "width='100vw',height='100vh'");
116
- w && (w.document.body.innerHTML = A, w.document.querySelectorAll("script").forEach((c) => {
117
+ w && (w.document.body.innerHTML = I, w.document.querySelectorAll("script").forEach((u) => {
117
118
  var j;
118
- const $ = w.document.createElement("script");
119
- c.src ? $.src = c.src : $.textContent = c.textContent, (j = c.parentNode) == null || j.replaceChild($, c);
119
+ const C = w.document.createElement("script");
120
+ u.src ? C.src = u.src : C.textContent = u.textContent, (j = u.parentNode) == null || j.replaceChild(C, u);
120
121
  }), w.document.close());
121
122
  });
122
123
  },
123
124
  importFunction: () => {
124
125
  e.importConfigurationFunction && e.importConfigurationFunction(g.value), g.value = "";
125
126
  },
126
- exportFunction: u,
127
- saveButtonAction: a,
127
+ exportFunction: c,
128
+ saveButtonAction: n,
128
129
  loadFromLocalStorage: () => {
129
130
  const m = e.inputId ? `pageBuilderConfig_${e.inputId}` : "pageBuilderConfig", k = localStorage.getItem(m);
130
131
  if (k && e.importConfigurationFunction) {
131
- const A = JSON.parse(k);
132
- e.importConfigurationFunction(A);
132
+ const I = JSON.parse(k);
133
+ e.importConfigurationFunction(I);
133
134
  }
134
135
  },
135
136
  toggleExpandScreen: () => {
@@ -139,18 +140,21 @@ const xe = H({
139
140
  sectionWidth: f
140
141
  };
141
142
  }
142
- }), he = (e, o) => {
143
+ }), we = (e, o) => {
143
144
  const g = e.__vccOpts || e;
144
- for (const [x, f] of o)
145
- g[x] = f;
145
+ for (const [h, f] of o)
146
+ g[h] = f;
146
147
  return g;
147
- }, we = { class: "flex justify-end items-center w-full p-3 gap-3" }, ye = { class: "flex justify-between gap-3 px-5 py-3 bg-white mx-3 rounded-xl border border-slate-200 mb-6 sticky top-2 z-9999 shadow-lg backdrop-blur-sm" }, Ce = { class: "flex gap-2" }, $e = { class: "flex gap-2" }, ke = ["value"], Se = ["value"], Pe = { value: "full" }, Fe = { value: "1/2" }, je = { value: "1/3" }, Ie = { value: "2/3" }, Me = { value: "1/4" }, Ae = { value: "3/4" }, Be = { value: "1/5" }, Ee = { value: "2/5" }, Te = { value: "3/5" }, De = { value: "4/5" }, Oe = { key: 0 }, Re = { key: 1 }, Ne = { class: "flex items-center gap-2" }, Ve = {
148
+ }, ye = {
148
149
  key: 0,
150
+ class: "flex justify-end items-center w-full p-3 gap-3"
151
+ }, Ce = { class: "flex justify-between gap-3 px-5 py-3 bg-white mx-3 rounded-xl border border-slate-200 mb-6 sticky top-2 z-9999 shadow-lg backdrop-blur-sm" }, $e = { class: "flex gap-2" }, ke = { class: "flex gap-2" }, Se = ["value"], Pe = ["value"], Fe = { value: "full" }, je = { value: "1/2" }, Me = { value: "1/3" }, Ie = { value: "2/3" }, Ae = { value: "1/4" }, Be = { value: "3/4" }, Ee = { value: "1/5" }, Te = { value: "2/5" }, De = { value: "3/5" }, Oe = { value: "4/5" }, Re = { key: 0 }, Ne = { key: 1 }, Ve = { class: "flex items-center gap-2" }, Ue = {
152
+ key: 1,
149
153
  class: "bg-white border border-slate-200 rounded-2xl p-5 mx-3 mb-6 shadow-lg"
150
- }, Ue = { class: "flex flex-row gap-4 w-full" }, ze = { class: "border border-slate-200 rounded-xl p-5 w-full bg-gradient-to-br from-slate-50 to-white" }, qe = { class: "flex flex-col gap-3 border-b border-slate-200 pb-4 w-full" }, Le = { class: "mb-3" }, Ge = { class: "flex items-center gap-3 cursor-pointer group" }, Je = { class: "mb-3" }, He = { class: "flex items-center gap-3 cursor-pointer group" }, We = { class: "mb-3" }, Ye = { class: "mb-3" }, Ke = { class: "mb-3" }, Qe = { class: "border border-slate-200 rounded-xl p-5 w-full bg-gradient-to-br from-slate-50 to-white" }, Xe = { class: "flex justify-between items-center mb-4" }, Ze = { class: "flex flex-col gap-3 border-b border-slate-200 pb-4 w-full" }, _e = { class: "mb-3" }, et = { class: "mb-3" }, tt = { class: "mb-3" };
151
- function ot(e, o, g, x, f, u) {
152
- return s(), i(B, null, [
153
- t("div", we, [
154
+ }, ze = { class: "flex flex-row gap-4 w-full" }, qe = { class: "border border-slate-200 rounded-xl p-5 w-full bg-gradient-to-br from-slate-50 to-white" }, Le = { class: "flex flex-col gap-3 border-b border-slate-200 pb-4 w-full" }, Ge = { class: "mb-3" }, Je = { class: "flex items-center gap-3 cursor-pointer group" }, He = { class: "mb-3" }, We = { class: "flex items-center gap-3 cursor-pointer group" }, Ye = { class: "mb-3" }, Ke = { class: "mb-3" }, Qe = { class: "mb-3" }, Xe = { class: "border border-slate-200 rounded-xl p-5 w-full bg-gradient-to-br from-slate-50 to-white" }, Ze = { class: "flex justify-between items-center mb-4" }, _e = { class: "flex flex-col gap-3 border-b border-slate-200 pb-4 w-full" }, et = { class: "mb-3" }, tt = { class: "mb-3" }, ot = { class: "mb-3" };
155
+ function lt(e, o, g, h, f, c) {
156
+ return a(), r(B, null, [
157
+ e.debugMode ? (a(), r("div", ye, [
154
158
  o[30] || (o[30] = t("span", { class: "bg-rose-50 px-3 py-1 rounded-full border border-rose-200 text-rose-400 text-xs font-medium me-4" }, "Todo lo de esta barra desaparecerá →", -1)),
155
159
  t("form", {
156
160
  onSubmit: o[2] || (o[2] = oe(() => {
@@ -158,7 +162,7 @@ function ot(e, o, g, x, f, u) {
158
162
  class: "flex gap-2"
159
163
  }, [
160
164
  R(t("input", {
161
- "onUpdate:modelValue": o[0] || (o[0] = (a) => e.importConfig = a),
165
+ "onUpdate:modelValue": o[0] || (o[0] = (n) => e.importConfig = n),
162
166
  type: "text",
163
167
  class: "bg-white border border-slate-200 rounded-lg px-3 py-1.5 text-sm focus:outline-none focus:ring-2 focus:ring-emerald-500/20 focus:border-emerald-400",
164
168
  name: "",
@@ -168,108 +172,109 @@ function ot(e, o, g, x, f, u) {
168
172
  [Y, e.importConfig]
169
173
  ]),
170
174
  t("button", {
171
- onClick: o[1] || (o[1] = (a) => e.importFunction()),
175
+ onClick: o[1] || (o[1] = (n) => e.importFunction()),
172
176
  class: "cursor-pointer bg-white hover:bg-slate-700 hover:text-white border border-slate-200 hover:border-slate-700 rounded-lg px-3 py-1.5 text-sm font-medium transition-all duration-200 shadow-sm hover:shadow-md"
173
177
  }, "🏯 Importar")
174
178
  ], 32),
175
179
  t("button", {
176
- onClick: o[3] || (o[3] = (a) => e.exportFunction()),
180
+ onClick: o[3] || (o[3] = (n) => e.exportFunction()),
177
181
  class: "cursor-pointer bg-white hover:bg-slate-700 hover:text-white border border-slate-200 hover:border-slate-700 rounded-lg px-3 py-1.5 text-sm font-medium transition-all duration-200 shadow-sm hover:shadow-md"
178
182
  }, "🚀 Exportar")
179
- ]),
180
- t("div", ye, [
181
- t("div", Ce, [
183
+ ])) : P("", !0),
184
+ t("div", Ce, [
185
+ t("div", $e, [
182
186
  t("button", {
183
- class: L([[e.isComponentMode ? "bg-gradient-to-r from-slate-600 to-slate-700 border-slate-700 text-white shadow-md" : "bg-white hover:bg-slate-100"], "cursor-pointer border border-slate-200 rounded-lg py-1.5 px-3 text-sm font-medium transition-all duration-200"]),
184
- onClick: o[4] || (o[4] = (a) => {
187
+ class: G([[e.isComponentMode ? "bg-gradient-to-r from-slate-600 to-slate-700 border-slate-700 text-white shadow-md" : "bg-white hover:bg-slate-100"], "cursor-pointer border border-slate-200 rounded-lg py-1.5 px-3 text-sm font-medium transition-all duration-200"]),
188
+ onClick: o[4] || (o[4] = (n) => {
185
189
  var b;
186
190
  return (b = e.toggleComponentModeFunction) == null ? void 0 : b.call(e);
187
191
  })
188
192
  }, p(e.isComponentMode ? "⚒️ Modo Configuración" : "👁️ Modo Visual"), 3),
189
193
  t("button", {
190
- class: L([[e.fullwidthMode ? "bg-white hover:bg-slate-100" : "bg-gradient-to-r from-slate-600 to-slate-700 border-slate-700 text-white shadow-md"], "cursor-pointer border border-slate-200 rounded-lg py-1.5 px-3 text-sm font-medium transition-all duration-200"]),
191
- onClick: o[5] || (o[5] = (a) => {
194
+ class: G([[e.fullwidthMode ? "bg-white hover:bg-slate-100" : "bg-gradient-to-r from-slate-600 to-slate-700 border-slate-700 text-white shadow-md"], "cursor-pointer border border-slate-200 rounded-lg py-1.5 px-3 text-sm font-medium transition-all duration-200"]),
195
+ onClick: o[5] || (o[5] = (n) => {
192
196
  var b;
193
197
  return (b = e.toggleFullwidthMode) == null ? void 0 : b.call(e);
194
198
  })
195
199
  }, p(e.fullwidthMode ? "⚒️ Comps. Plegados" : "👁️ Comps. Desplegados"), 3)
196
200
  ]),
197
- t("div", $e, [
201
+ t("div", ke, [
198
202
  t("select", {
199
203
  value: e.sectionSelected,
200
- onChange: o[6] || (o[6] = (a) => e.$emit("update:sectionSelected", a.target.value)),
204
+ onChange: o[6] || (o[6] = (n) => e.$emit("update:sectionSelected", n.target.value)),
201
205
  class: "bg-white border border-slate-200 rounded-lg px-3 py-1.5 cursor-pointer text-sm focus:outline-none focus:ring-2 focus:ring-emerald-500/20 focus:border-emerald-400 transition-colors"
202
206
  }, [
203
- (s(!0), i(B, null, V(e.availableSections, (a, b) => (s(), i("option", {
207
+ (a(!0), r(B, null, V(e.availableSections, (n, b) => (a(), r("option", {
204
208
  key: b,
205
- value: a
206
- }, p(a), 9, Se))), 128))
207
- ], 40, ke),
209
+ value: n
210
+ }, p(n), 9, Pe))), 128))
211
+ ], 40, Se),
208
212
  R(t("select", {
209
213
  class: "bg-white border border-slate-200 rounded-lg px-3 py-1.5 cursor-pointer text-sm focus:outline-none focus:ring-2 focus:ring-emerald-500/20 focus:border-emerald-400 transition-colors",
210
- "onUpdate:modelValue": o[7] || (o[7] = (a) => e.sectionWidth = a)
214
+ "onUpdate:modelValue": o[7] || (o[7] = (n) => e.sectionWidth = n)
211
215
  }, [
212
216
  o[31] || (o[31] = t("option", {
213
217
  disabled: "",
214
218
  value: ""
215
219
  }, "Selecciona el ancho de la sección", -1)),
216
- t("option", Pe, "Sección " + p(e.sectionSelected) + " ocupa todo el ancho de la página", 1),
217
- t("option", Fe, "Sección " + p(e.sectionSelected) + " ocupa 1/2 del ancho de la página", 1),
218
- t("option", je, "Sección " + p(e.sectionSelected) + " ocupa 1/3 del ancho de la página", 1),
220
+ t("option", Fe, "Sección " + p(e.sectionSelected) + " ocupa todo el ancho de la página", 1),
221
+ t("option", je, "Sección " + p(e.sectionSelected) + " ocupa 1/2 del ancho de la página", 1),
222
+ t("option", Me, "Sección " + p(e.sectionSelected) + " ocupa 1/3 del ancho de la página", 1),
219
223
  t("option", Ie, "Sección " + p(e.sectionSelected) + " ocupa 2/3 del ancho de la página", 1),
220
- t("option", Me, "Sección " + p(e.sectionSelected) + " ocupa 1/4 del ancho de la página", 1),
221
- t("option", Ae, "Sección " + p(e.sectionSelected) + " ocupa 3/4 del ancho de la página", 1),
222
- t("option", Be, "Sección " + p(e.sectionSelected) + " ocupa 1/5 del ancho de la página", 1),
223
- t("option", Ee, "Sección " + p(e.sectionSelected) + " ocupa 2/5 del ancho de la página", 1),
224
- t("option", Te, "Sección " + p(e.sectionSelected) + " ocupa 3/5 del ancho de la página", 1),
225
- t("option", De, "Sección " + p(e.sectionSelected) + " ocupa 4/5 del ancho de la página", 1)
224
+ t("option", Ae, "Sección " + p(e.sectionSelected) + " ocupa 1/4 del ancho de la página", 1),
225
+ t("option", Be, "Sección " + p(e.sectionSelected) + " ocupa 3/4 del ancho de la página", 1),
226
+ t("option", Ee, "Sección " + p(e.sectionSelected) + " ocupa 1/5 del ancho de la página", 1),
227
+ t("option", Te, "Sección " + p(e.sectionSelected) + " ocupa 2/5 del ancho de la página", 1),
228
+ t("option", De, "Sección " + p(e.sectionSelected) + " ocupa 3/5 del ancho de la página", 1),
229
+ t("option", Oe, "Sección " + p(e.sectionSelected) + " ocupa 4/5 del ancho de la página", 1)
226
230
  ], 512), [
227
231
  [J, e.sectionWidth]
228
232
  ]),
229
233
  t("button", {
230
- class: L([
234
+ class: G([
231
235
  "cursor-pointer border rounded-lg py-1.5 px-3 text-sm font-medium transition-all duration-200 flex items-center gap-2",
232
236
  e.showAdvancedConfig ? "bg-gradient-to-r from-amber-500 to-orange-500 border-amber-500 text-white shadow-md" : "bg-white border-slate-200 hover:bg-slate-100"
233
237
  ]),
234
- onClick: o[8] || (o[8] = (a) => e.showAdvancedConfig = !e.showAdvancedConfig)
238
+ onClick: o[8] || (o[8] = (n) => e.showAdvancedConfig = !e.showAdvancedConfig)
235
239
  }, [
236
240
  o[32] || (o[32] = t("span", null, "⚙️ Página", -1)),
237
- e.showAdvancedConfig ? (s(), i("span", Oe, "▲")) : (s(), i("span", Re, "▼"))
241
+ e.showAdvancedConfig ? (a(), r("span", Re, "▲")) : (a(), r("span", Ne, "▼"))
238
242
  ], 2)
239
243
  ]),
240
- t("div", Ne, [
244
+ t("div", Ve, [
241
245
  t("button", {
242
- onClick: o[9] || (o[9] = (a) => e.previewFunction()),
246
+ onClick: o[9] || (o[9] = (n) => e.previewFunction()),
243
247
  class: "cursor-pointer bg-white hover:bg-violet-500 hover:text-white hover:border-violet-500 border border-slate-200 rounded-lg px-3 py-1.5 text-sm font-medium transition-all duration-200 shadow-sm hover:shadow-md"
244
248
  }, "🔎 Preview"),
245
249
  t("button", {
246
- onClick: o[10] || (o[10] = (a) => e.saveButtonAction()),
250
+ onClick: o[10] || (o[10] = (n) => e.saveButtonAction()),
247
251
  title: "No es un guardado real, simplemente almacena la configuración en el navegador para recuperarla luego",
248
252
  class: "cursor-pointer bg-gradient-to-r from-emerald-500 to-teal-500 hover:from-emerald-600 hover:to-teal-600 text-white border border-emerald-500 rounded-lg px-3 py-1.5 text-sm font-medium transition-all duration-200 shadow-sm hover:shadow-md"
249
253
  }, "💾 Guardar"),
250
- t("button", {
251
- onClick: o[11] || (o[11] = (a) => e.loadFromLocalStorage()),
254
+ e.debugMode ? (a(), r("button", {
255
+ key: 0,
256
+ onClick: o[11] || (o[11] = (n) => e.loadFromLocalStorage()),
252
257
  class: "cursor-pointer bg-white hover:bg-blue-500 hover:text-white hover:border-blue-500 border border-slate-200 rounded-lg px-3 py-1.5 text-sm font-medium transition-all duration-200 shadow-sm hover:shadow-md"
253
- }, "⤵️ Cargar"),
258
+ }, "⤵️ Cargar")) : P("", !0),
254
259
  t("button", {
255
- onClick: o[12] || (o[12] = (a) => e.toggleExpandScreen()),
260
+ onClick: o[12] || (o[12] = (n) => e.toggleExpandScreen()),
256
261
  title: "Expandir / Contraer Pagebuilder",
257
262
  class: "cursor-pointer bg-white hover:bg-slate-700 hover:text-white hover:border-slate-700 border border-slate-200 rounded-lg px-3 py-1.5 text-xl transition-all duration-200 shadow-sm hover:shadow-md ms-2"
258
263
  }, "◳")
259
264
  ])
260
265
  ]),
261
- e.showAdvancedConfig && e.parametersPageConfiguration ? (s(), i("div", Ve, [
262
- t("div", Ue, [
263
- t("div", ze, [
266
+ e.showAdvancedConfig && e.parametersPageConfiguration ? (a(), r("div", Ue, [
267
+ t("div", ze, [
268
+ t("div", qe, [
264
269
  o[38] || (o[38] = t("h2", { class: "text-lg font-bold mb-4 text-slate-700" }, "Configuración Avanzada", -1)),
265
270
  o[39] || (o[39] = t("h3", { class: "font-semibold mb-3 text-slate-600" }, "Configuración Global", -1)),
266
- t("div", qe, [
267
- t("div", Le, [
268
- t("label", Ge, [
271
+ t("div", Le, [
272
+ t("div", Ge, [
273
+ t("label", Je, [
269
274
  R(t("input", {
270
275
  type: "checkbox",
271
- "onUpdate:modelValue": o[13] || (o[13] = (a) => e.parametersPageConfiguration.global.sidebarEnabled = a),
272
- onChange: o[14] || (o[14] = (a) => e.$emit("update:parametersPageConfiguration.global.sidebarEnabled", a.target.value)),
276
+ "onUpdate:modelValue": o[13] || (o[13] = (n) => e.parametersPageConfiguration.global.sidebarEnabled = n),
277
+ onChange: o[14] || (o[14] = (n) => e.$emit("update:parametersPageConfiguration.global.sidebarEnabled", n.target.value)),
273
278
  class: "w-5 h-5 rounded border-slate-300 text-emerald-500 focus:ring-emerald-500 cursor-pointer"
274
279
  }, null, 544), [
275
280
  [te, e.parametersPageConfiguration.global.sidebarEnabled]
@@ -277,12 +282,12 @@ function ot(e, o, g, x, f, u) {
277
282
  o[33] || (o[33] = t("span", { class: "text-slate-600 group-hover:text-slate-800 transition-colors" }, "Sidebar Habilitado", -1))
278
283
  ])
279
284
  ]),
280
- t("div", Je, [
281
- t("label", He, [
285
+ t("div", He, [
286
+ t("label", We, [
282
287
  R(t("input", {
283
288
  type: "checkbox",
284
- "onUpdate:modelValue": o[15] || (o[15] = (a) => e.parametersPageConfiguration.global.renderAsBodyPart = a),
285
- onChange: o[16] || (o[16] = (a) => e.$emit("update:parametersPageConfiguration.global.renderAsBodyPart", a.target.value)),
289
+ "onUpdate:modelValue": o[15] || (o[15] = (n) => e.parametersPageConfiguration.global.renderAsBodyPart = n),
290
+ onChange: o[16] || (o[16] = (n) => e.$emit("update:parametersPageConfiguration.global.renderAsBodyPart", n.target.value)),
286
291
  class: "w-5 h-5 rounded border-slate-300 text-emerald-500 focus:ring-emerald-500 cursor-pointer"
287
292
  }, null, 544), [
288
293
  [te, e.parametersPageConfiguration.global.renderAsBodyPart]
@@ -290,15 +295,15 @@ function ot(e, o, g, x, f, u) {
290
295
  o[34] || (o[34] = t("span", { class: "text-slate-600 group-hover:text-slate-800 transition-colors" }, "Renderizar como parte del BODY (Sin etiquetas HTML, HEAD, BODY)", -1))
291
296
  ])
292
297
  ]),
293
- t("div", We, [
298
+ t("div", Ye, [
294
299
  o[35] || (o[35] = t("label", {
295
300
  for: "headSlot",
296
301
  class: "block text-sm font-medium text-slate-600 mb-2"
297
302
  }, " Código al final de la sección <head> ", -1)),
298
303
  R(t("textarea", {
299
304
  id: "headSlot",
300
- "onUpdate:modelValue": o[17] || (o[17] = (a) => e.parametersPageConfiguration.global.headSlot = a),
301
- onInput: o[18] || (o[18] = (a) => e.$emit("update:parametersPageConfiguration.global.headSlot", a.target.value)),
305
+ "onUpdate:modelValue": o[17] || (o[17] = (n) => e.parametersPageConfiguration.global.headSlot = n),
306
+ onInput: o[18] || (o[18] = (n) => e.$emit("update:parametersPageConfiguration.global.headSlot", n.target.value)),
302
307
  class: "w-full px-4 py-3 border border-slate-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-emerald-500/20 focus:border-emerald-400 bg-white text-sm font-mono transition-colors",
303
308
  placeholder: "Contenido para el head",
304
309
  rows: "3"
@@ -306,15 +311,15 @@ function ot(e, o, g, x, f, u) {
306
311
  [Y, e.parametersPageConfiguration.global.headSlot]
307
312
  ])
308
313
  ]),
309
- t("div", Ye, [
314
+ t("div", Ke, [
310
315
  o[36] || (o[36] = t("label", {
311
316
  for: "bodyBeginSlot",
312
317
  class: "block text-sm font-medium text-slate-600 mb-2"
313
318
  }, " Código al principio de la sección <body> ", -1)),
314
319
  R(t("textarea", {
315
320
  id: "bodyBeginSlot",
316
- "onUpdate:modelValue": o[19] || (o[19] = (a) => e.parametersPageConfiguration.global.bodyBeginSlot = a),
317
- onInput: o[20] || (o[20] = (a) => e.$emit("update:parametersPageConfiguration.global.bodyBeginSlot", a.target.value)),
321
+ "onUpdate:modelValue": o[19] || (o[19] = (n) => e.parametersPageConfiguration.global.bodyBeginSlot = n),
322
+ onInput: o[20] || (o[20] = (n) => e.$emit("update:parametersPageConfiguration.global.bodyBeginSlot", n.target.value)),
318
323
  class: "w-full px-4 py-3 border border-slate-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-emerald-500/20 focus:border-emerald-400 bg-white text-sm font-mono transition-colors",
319
324
  placeholder: "Contenido para el inicio del body",
320
325
  rows: "3"
@@ -322,15 +327,15 @@ function ot(e, o, g, x, f, u) {
322
327
  [Y, e.parametersPageConfiguration.global.bodyBeginSlot]
323
328
  ])
324
329
  ]),
325
- t("div", Ke, [
330
+ t("div", Qe, [
326
331
  o[37] || (o[37] = t("label", {
327
332
  for: "footerSlot",
328
333
  class: "block text-sm font-medium text-slate-600 mb-2"
329
334
  }, " Código al final de la sección <body>, dentro de la etiqueta <footer> ", -1)),
330
335
  R(t("textarea", {
331
336
  id: "footerSlot",
332
- "onUpdate:modelValue": o[21] || (o[21] = (a) => e.parametersPageConfiguration.global.footerSlot = a),
333
- onInput: o[22] || (o[22] = (a) => e.$emit("update:parametersPageConfiguration.global.footerSlot", a.target.value)),
337
+ "onUpdate:modelValue": o[21] || (o[21] = (n) => e.parametersPageConfiguration.global.footerSlot = n),
338
+ onInput: o[22] || (o[22] = (n) => e.$emit("update:parametersPageConfiguration.global.footerSlot", n.target.value)),
334
339
  class: "w-full px-4 py-3 border border-slate-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-emerald-500/20 focus:border-emerald-400 bg-white text-sm font-mono transition-colors",
335
340
  placeholder: "Contenido para el footer",
336
341
  rows: "3"
@@ -340,24 +345,24 @@ function ot(e, o, g, x, f, u) {
340
345
  ])
341
346
  ])
342
347
  ]),
343
- t("div", Qe, [
344
- t("div", Xe, [
348
+ t("div", Xe, [
349
+ t("div", Ze, [
345
350
  o[40] || (o[40] = t("h2", { class: "text-lg font-bold text-slate-700" }, "Configuración SEO", -1)),
346
351
  t("button", {
347
- onClick: o[23] || (o[23] = (a) => e.validateSeo()),
352
+ onClick: o[23] || (o[23] = (n) => e.validateSeo()),
348
353
  class: "cursor-pointer bg-gradient-to-r from-violet-500 to-purple-500 hover:from-violet-600 hover:to-purple-600 text-white border border-violet-500 rounded-lg px-4 py-1.5 text-sm font-medium transition-all duration-200 shadow-sm hover:shadow-md"
349
354
  }, "🦄 Validar SEO")
350
355
  ]),
351
- t("div", Ze, [
352
- t("div", _e, [
356
+ t("div", _e, [
357
+ t("div", et, [
353
358
  o[42] || (o[42] = t("label", {
354
359
  for: "robotsIndex",
355
360
  class: "block text-sm font-medium text-slate-600 mb-2"
356
361
  }, " Indexación de robots ", -1)),
357
362
  R(t("select", {
358
363
  id: "robotsIndex",
359
- "onUpdate:modelValue": o[24] || (o[24] = (a) => e.parametersPageConfiguration.seo.robots = a),
360
- onChange: o[25] || (o[25] = (a) => e.$emit("update:parametersPageConfiguration.seo.robots", a.target.value)),
364
+ "onUpdate:modelValue": o[24] || (o[24] = (n) => e.parametersPageConfiguration.seo.robots = n),
365
+ onChange: o[25] || (o[25] = (n) => e.$emit("update:parametersPageConfiguration.seo.robots", n.target.value)),
361
366
  class: "w-full px-4 py-2.5 border border-slate-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-emerald-500/20 focus:border-emerald-400 bg-white text-sm transition-colors cursor-pointer"
362
367
  }, [...o[41] || (o[41] = [
363
368
  t("option", { value: "index, follow" }, "Index Follow", -1),
@@ -366,7 +371,7 @@ function ot(e, o, g, x, f, u) {
366
371
  [J, e.parametersPageConfiguration.seo.robots]
367
372
  ])
368
373
  ]),
369
- t("div", et, [
374
+ t("div", tt, [
370
375
  o[43] || (o[43] = t("label", {
371
376
  for: "pageTitle",
372
377
  class: "block text-sm font-medium text-slate-600 mb-2"
@@ -374,23 +379,23 @@ function ot(e, o, g, x, f, u) {
374
379
  R(t("input", {
375
380
  id: "pageTitle",
376
381
  type: "text",
377
- "onUpdate:modelValue": o[26] || (o[26] = (a) => e.parametersPageConfiguration.seo.title = a),
378
- onInput: o[27] || (o[27] = (a) => e.$emit("update:parametersPageConfiguration.seo.title", a.target.value)),
382
+ "onUpdate:modelValue": o[26] || (o[26] = (n) => e.parametersPageConfiguration.seo.title = n),
383
+ onInput: o[27] || (o[27] = (n) => e.$emit("update:parametersPageConfiguration.seo.title", n.target.value)),
379
384
  class: "w-full px-4 py-2.5 border border-slate-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-emerald-500/20 focus:border-emerald-400 bg-white text-sm transition-colors",
380
385
  placeholder: "Ingresa el título de la página"
381
386
  }, null, 544), [
382
387
  [Y, e.parametersPageConfiguration.seo.title]
383
388
  ])
384
389
  ]),
385
- t("div", tt, [
390
+ t("div", ot, [
386
391
  o[44] || (o[44] = t("label", {
387
392
  for: "pageDescription",
388
393
  class: "block text-sm font-medium text-slate-600 mb-2"
389
394
  }, " Descripción de la página ", -1)),
390
395
  R(t("textarea", {
391
396
  id: "pageDescription",
392
- "onUpdate:modelValue": o[28] || (o[28] = (a) => e.parametersPageConfiguration.seo.description = a),
393
- onInput: o[29] || (o[29] = (a) => e.$emit("update:parametersPageConfiguration.seo.description", a.target.value)),
397
+ "onUpdate:modelValue": o[28] || (o[28] = (n) => e.parametersPageConfiguration.seo.description = n),
398
+ onInput: o[29] || (o[29] = (n) => e.$emit("update:parametersPageConfiguration.seo.description", n.target.value)),
394
399
  class: "w-full px-4 py-3 border border-slate-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-emerald-500/20 focus:border-emerald-400 bg-white text-sm transition-colors",
395
400
  placeholder: "Ingresa la descripción de la página",
396
401
  rows: "3"
@@ -404,13 +409,13 @@ function ot(e, o, g, x, f, u) {
404
409
  ])) : P("", !0)
405
410
  ], 64);
406
411
  }
407
- const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
412
+ const nt = /* @__PURE__ */ we(he, [["render", lt]]), at = {
408
413
  key: 0,
409
414
  class: "absolute top-0 left-0 bg-white/90 w-full h-full z-100"
410
- }, at = { class: "w-full flex justify-end p-4" }, rt = ["for"], st = {
415
+ }, rt = { class: "w-full flex justify-end p-4" }, st = ["for"], it = {
411
416
  key: 0,
412
417
  class: "text-red-500"
413
- }, it = ["id", "name", "placeholder", "required", "value", "onInput"], dt = ["id", "name", "data-mandatoryCrops", "placeholder", "required", "value", "onInput"], ut = ["id", "name", "required", "value", "onInput"], ct = ["value"], mt = ["id", "name", "required", "checked", "onChange"], re = /* @__PURE__ */ H({
418
+ }, dt = ["id", "name", "placeholder", "required", "value", "onInput"], ut = ["id", "name", "data-mandatoryCrops", "placeholder", "required", "value", "onInput"], ct = ["id", "name", "required", "value", "onInput"], mt = ["value"], bt = ["id", "name", "required", "checked", "onChange"], re = /* @__PURE__ */ H({
414
419
  __name: "FieldsForm",
415
420
  props: {
416
421
  object: {
@@ -427,111 +432,111 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
427
432
  }
428
433
  },
429
434
  setup(e) {
430
- const o = e, g = (x, f) => {
431
- const u = (o.object.fields || []).find((a) => a.name === x);
432
- u && (u.example_value = f);
435
+ const o = e, g = (h, f) => {
436
+ const c = (o.object.fields || []).find((n) => n.name === h);
437
+ c && (c.example_value = f);
433
438
  };
434
- return (x, f) => (s(), i(B, null, [
435
- e.showForm ? (s(), i("div", nt)) : P("", !0),
439
+ return (h, f) => (a(), r(B, null, [
440
+ e.showForm ? (a(), r("div", at)) : P("", !0),
436
441
  t("div", {
437
- class: L(e.showForm ? "relative top-0 w-full text-slate-600 border-1 my-2 px-4 pt-2 pb-3 w-full border-slate-200 bg-slate-50 inline-block rounded-lg flex flex-col z-101" : "hidden")
442
+ class: G(e.showForm ? "relative top-0 w-full text-slate-600 border-1 my-2 px-4 pt-2 pb-3 w-full border-slate-200 bg-slate-50 inline-block rounded-lg flex flex-col z-101" : "hidden")
438
443
  }, [
439
- t("div", at, [
444
+ t("div", rt, [
440
445
  t("span", {
441
446
  onClick: f[0] || (f[0] = //@ts-ignore
442
- (...u) => e.toggleShowForm && e.toggleShowForm(...u)),
447
+ (...c) => e.toggleShowForm && e.toggleShowForm(...c)),
443
448
  class: "cursor-pointer hover:scale-125 transition-all duration-300"
444
449
  }, "❌")
445
450
  ]),
446
451
  t("form", null, [
447
- (s(!0), i(B, null, V(e.object.fields, (u, a) => (s(), i("div", {
448
- key: a,
452
+ (a(!0), r(B, null, V(e.object.fields, (c, n) => (a(), r("div", {
453
+ key: n,
449
454
  class: "mb-4"
450
455
  }, [
451
456
  t("label", {
452
- for: `${e.object.id}-${u.name}-${a}`,
457
+ for: `${e.object.id}-${c.name}-${n}`,
453
458
  class: "block text-sm font-medium mb-1"
454
459
  }, [
455
- T(p(u.label) + " ", 1),
456
- u.mandatory ? (s(), i("span", st, "*")) : P("", !0)
457
- ], 8, rt),
458
- u.type === "text" ? (s(), i("input", {
460
+ T(p(c.label) + " ", 1),
461
+ c.mandatory ? (a(), r("span", it, "*")) : P("", !0)
462
+ ], 8, st),
463
+ c.type === "text" ? (a(), r("input", {
459
464
  key: 0,
460
- id: `${e.object.id}-${u.name}-${a}`,
461
- name: `${e.object.id}-${u.name}-${a}`,
465
+ id: `${e.object.id}-${c.name}-${n}`,
466
+ name: `${e.object.id}-${c.name}-${n}`,
462
467
  type: "text",
463
468
  class: "w-full px-3 py-2 border border-slate-300 rounded focus:outline-none focus:ring-2 focus:ring-blue-400",
464
- placeholder: u.label,
465
- required: u.mandatory,
466
- value: u.example_value,
467
- onInput: (b) => g(u.name, b.target.value)
468
- }, null, 40, it)) : P("", !0),
469
- u.type === "image" ? (s(), i("input", {
469
+ placeholder: c.label,
470
+ required: c.mandatory,
471
+ value: c.example_value,
472
+ onInput: (b) => g(c.name, b.target.value)
473
+ }, null, 40, dt)) : P("", !0),
474
+ c.type === "image" ? (a(), r("input", {
470
475
  key: 1,
471
- id: `${e.object.id}-${u.name}-${a}`,
472
- name: `${e.object.id}-${u.name}-${a}`,
473
- "data-mandatoryCrops": u.image_cuts ? JSON.stringify(u.image_cuts) : null,
476
+ id: `${e.object.id}-${c.name}-${n}`,
477
+ name: `${e.object.id}-${c.name}-${n}`,
478
+ "data-mandatoryCrops": c.image_cuts ? JSON.stringify(c.image_cuts) : null,
474
479
  type: "text",
475
480
  class: "js-limbo w-full px-3 py-2 border border-slate-300 rounded focus:outline-none focus:ring-2 focus:ring-blue-400",
476
- placeholder: u.label,
477
- required: u.mandatory,
478
- value: u.example_value,
479
- onInput: (b) => g(u.name, b.target.value)
480
- }, null, 40, dt)) : u.type === "textArea" ? (s(), ie(G(ve), {
481
+ placeholder: c.label,
482
+ required: c.mandatory,
483
+ value: c.example_value,
484
+ onInput: (b) => g(c.name, b.target.value)
485
+ }, null, 40, ut)) : c.type === "textArea" ? (a(), ie(q(xe), {
481
486
  key: 2,
482
487
  theme: "snow",
483
- id: `${e.object.id}-${u.name}-${a}`,
484
- name: `${e.object.id}-${u.name}-${a}`,
488
+ id: `${e.object.id}-${c.name}-${n}`,
489
+ name: `${e.object.id}-${c.name}-${n}`,
485
490
  rows: "3",
486
491
  class: "w-full px-3 py-2 border border-slate-300 rounded focus:outline-none focus:ring-2 focus:ring-blue-400 z-9999",
487
- placeholder: u.label,
488
- required: u.mandatory,
492
+ placeholder: c.label,
493
+ required: c.mandatory,
489
494
  "onUpdate:content": (b) => {
490
- g(u.name, b);
495
+ g(c.name, b);
491
496
  },
492
- content: u.example_value,
493
- modelValue: u.example_value,
494
- "onUpdate:modelValue": (b) => u.example_value = b,
497
+ content: c.example_value,
498
+ modelValue: c.example_value,
499
+ "onUpdate:modelValue": (b) => c.example_value = b,
495
500
  contentType: "html"
496
- }, null, 8, ["id", "name", "placeholder", "required", "onUpdate:content", "content", "modelValue", "onUpdate:modelValue"])) : u.type === "select" ? (s(), i("select", {
501
+ }, null, 8, ["id", "name", "placeholder", "required", "onUpdate:content", "content", "modelValue", "onUpdate:modelValue"])) : c.type === "select" ? (a(), r("select", {
497
502
  key: 3,
498
- id: `${e.object.id}-${u.name}-${a}`,
499
- name: `${e.object.id}-${u.name}-${a}`,
503
+ id: `${e.object.id}-${c.name}-${n}`,
504
+ name: `${e.object.id}-${c.name}-${n}`,
500
505
  class: "w-full px-3 py-2 border border-slate-300 rounded focus:outline-none focus:ring-2 focus:ring-blue-400",
501
- required: u.mandatory,
502
- value: u.example_value,
503
- onInput: (b) => g(u.name, b.target.value)
506
+ required: c.mandatory,
507
+ value: c.example_value,
508
+ onInput: (b) => g(c.name, b.target.value)
504
509
  }, [
505
510
  f[1] || (f[1] = t("option", {
506
511
  disabled: "",
507
512
  value: ""
508
513
  }, "Seleccione una opción", -1)),
509
- (s(!0), i(B, null, V(u.options || [], (b, C) => (s(), i("option", {
510
- key: C,
514
+ (a(!0), r(B, null, V(c.options || [], (b, $) => (a(), r("option", {
515
+ key: $,
511
516
  value: b
512
- }, p(b), 9, ct))), 128))
513
- ], 40, ut)) : u.type === "boolean" ? (s(), i("input", {
517
+ }, p(b), 9, mt))), 128))
518
+ ], 40, ct)) : c.type === "boolean" ? (a(), r("input", {
514
519
  key: 4,
515
- id: `${e.object.id}-${u.name}-${a}`,
516
- name: `${e.object.id}-${u.name}-${a}`,
520
+ id: `${e.object.id}-${c.name}-${n}`,
521
+ name: `${e.object.id}-${c.name}-${n}`,
517
522
  type: "checkbox",
518
523
  class: "h-4 w-4 text-blue-600 focus:ring-blue-500 border-slate-300 rounded inline-block",
519
- required: u.mandatory,
520
- checked: u.example_value,
521
- onChange: (b) => g(u.name, b.target.checked)
522
- }, null, 40, mt)) : P("", !0)
524
+ required: c.mandatory,
525
+ checked: c.example_value,
526
+ onChange: (b) => g(c.name, b.target.checked)
527
+ }, null, 40, bt)) : P("", !0)
523
528
  ]))), 128))
524
529
  ])
525
530
  ], 2)
526
531
  ], 64));
527
532
  }
528
- }), bt = { class: "space-y-4" }, gt = ["disabled"], ft = ["value"], pt = { class: "space-y-3" }, vt = {
533
+ }), gt = { class: "space-y-4" }, ft = ["disabled"], pt = ["value"], vt = { class: "space-y-3" }, xt = {
529
534
  key: 0,
530
535
  class: "overflow-y-auto space-y-3"
531
- }, xt = { class: "block text-sm font-semibold text-slate-600 mb-2" }, ht = ["onChange", "disabled"], wt = ["value"], yt = ["onChange", "disabled"], Ct = ["onInput", "disabled", "placeholder"], $t = ["disabled"], kt = {
536
+ }, ht = { class: "block text-sm font-semibold text-slate-600 mb-2" }, wt = ["onChange", "disabled"], yt = ["value"], Ct = ["onChange", "disabled"], $t = ["onInput", "disabled", "placeholder"], kt = ["disabled"], St = {
532
537
  key: 0,
533
538
  class: "animate-spin"
534
- }, St = { key: 1 }, Pt = /* @__PURE__ */ H({
539
+ }, Pt = { key: 1 }, Ft = /* @__PURE__ */ H({
535
540
  __name: "SourceFilter",
536
541
  props: {
537
542
  onSubmit: {
@@ -548,13 +553,13 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
548
553
  }
549
554
  },
550
555
  setup(e) {
551
- const o = e, g = S(!1), x = S(null), f = S({}), u = K(() => {
552
- const r = o.isProduction;
556
+ const o = e, g = S(!1), h = S(null), f = S({}), c = K(() => {
557
+ const s = o.isProduction;
553
558
  return [
554
559
  {
555
560
  id: "origen1",
556
561
  name: "El Derecho",
557
- apiUrl: r ? "https://elderecho.com/feed" : "https://led-dev-elderecho-dev.eu.els.local/feed",
562
+ apiUrl: s ? "https://elderecho.com/feed" : "https://led-dev-elderecho-dev.eu.els.local/feed",
558
563
  filters: [
559
564
  { id: "title", label: "Título del Post", type: "text" },
560
565
  { id: "category", label: "Slug de la Categoría", type: "text" },
@@ -568,7 +573,7 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
568
573
  {
569
574
  id: "origen2",
570
575
  name: "Formación",
571
- apiUrl: r ? "https://lefebvre.es/formacion/feed" : "http://led-dev-lefebvre-dev.eu.els.local/formacion/feed",
576
+ apiUrl: s ? "https://lefebvre.es/formacion/feed" : "http://led-dev-lefebvre-dev.eu.els.local/formacion/feed",
572
577
  filters: [
573
578
  { id: "id", label: "ID del curso", type: "text" },
574
579
  { id: "title", label: "Título del Post", type: "text" },
@@ -580,41 +585,41 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
580
585
  {
581
586
  id: "origen3",
582
587
  name: "Derecholocal",
583
- apiUrl: r ? "https://derecholocal.es/feed" : "https://led-dev-derecholocal-dev.eu.els.local/feed",
588
+ apiUrl: s ? "https://derecholocal.es/feed" : "https://led-dev-derecholocal-dev.eu.els.local/feed",
584
589
  filters: []
585
590
  },
586
591
  {
587
592
  id: "origen4",
588
593
  name: "EspacioAsesoría",
589
- apiUrl: r ? "https://espacioasesoria.com/feed" : "https://led-dev-espacioasesoria-dev.eu.els.local/feed",
594
+ apiUrl: s ? "https://espacioasesoria.com/feed" : "https://led-dev-espacioasesoria-dev.eu.els.local/feed",
590
595
  filters: []
591
596
  },
592
597
  {
593
598
  id: "origen5",
594
599
  name: "EspacioPymes",
595
- apiUrl: r ? "https://espaciopymes.com/feed" : "https://led-dev-espaciopymes-dev.eu.els.local/feed",
600
+ apiUrl: s ? "https://espaciopymes.com/feed" : "https://led-dev-espaciopymes-dev.eu.els.local/feed",
596
601
  filters: []
597
602
  }
598
603
  ];
599
- }), a = K(() => {
600
- if (!x.value)
604
+ }), n = K(() => {
605
+ if (!h.value)
601
606
  return [];
602
- const r = u.value.find((l) => l.id === x.value);
603
- return r ? r.filters : [];
604
- }), b = (r, l) => {
605
- f.value[r] = l;
606
- }, C = () => {
607
+ const s = c.value.find((l) => l.id === h.value);
608
+ return s ? s.filters : [];
609
+ }), b = (s, l) => {
610
+ f.value[s] = l;
611
+ }, $ = () => {
607
612
  f.value = {};
608
- }, I = async () => {
613
+ }, M = async () => {
609
614
  g.value = !0;
610
- const r = u.value.find((n) => n.id === x.value);
611
- if (!r) {
615
+ const s = c.value.find((i) => i.id === h.value);
616
+ if (!s) {
612
617
  console.error("Origen no encontrado"), g.value = !1;
613
618
  return;
614
619
  }
615
- const l = new URL(r.apiUrl);
616
- Object.keys(f.value).forEach((n) => {
617
- f.value[n] && l.searchParams.append(n, f.value[n]);
620
+ const l = new URL(s.apiUrl);
621
+ Object.keys(f.value).forEach((i) => {
622
+ f.value[i] && l.searchParams.append(i, f.value[i]);
618
623
  });
619
624
  try {
620
625
  const m = await (await fetch(l.toString(), {
@@ -622,110 +627,110 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
622
627
  headers: {
623
628
  Accept: "text/xml, application/xml"
624
629
  }
625
- })).text(), A = new DOMParser().parseFromString(m, "text/xml"), w = Array.from(A.querySelectorAll("item")).map((d) => {
626
- const c = {};
627
- return Array.from(d.children).forEach(($) => {
628
- $.children.length > 0 ? Array.from($.children).forEach((j) => {
629
- const D = `${$.nodeName}_${j.nodeName}`;
630
- c[D] = j.textContent || "";
631
- }) : c[$.nodeName] = $.textContent || "";
632
- }), c;
630
+ })).text(), I = new DOMParser().parseFromString(m, "text/xml"), w = Array.from(I.querySelectorAll("item")).map((d) => {
631
+ const u = {};
632
+ return Array.from(d.children).forEach((C) => {
633
+ C.children.length > 0 ? Array.from(C.children).forEach((j) => {
634
+ const D = `${C.nodeName}_${j.nodeName}`;
635
+ u[D] = j.textContent || "";
636
+ }) : u[C.nodeName] = C.textContent || "";
637
+ }), u;
633
638
  });
634
639
  o.onSubmit(w);
635
- } catch (n) {
636
- console.error("Error al aplicar filtros:", n), o.onSubmit([]);
640
+ } catch (i) {
641
+ console.error("Error al aplicar filtros:", i), o.onSubmit([]);
637
642
  } finally {
638
- const n = {
639
- name: r.name,
643
+ const i = {
644
+ name: s.name,
640
645
  url: l.toString()
641
646
  };
642
- o.updateFeedCriteria(n), g.value = !1;
647
+ o.updateFeedCriteria(i), g.value = !1;
643
648
  }
644
649
  };
645
- return (r, l) => (s(), i("div", bt, [
650
+ return (s, l) => (a(), r("div", gt, [
646
651
  t("div", null, [
647
652
  l[1] || (l[1] = t("label", { class: "block text-sm font-semibold text-slate-600 mb-2" }, "Seleccionar origen:", -1)),
648
653
  R(t("select", {
649
- "onUpdate:modelValue": l[0] || (l[0] = (n) => x.value = n),
654
+ "onUpdate:modelValue": l[0] || (l[0] = (i) => h.value = i),
650
655
  class: "w-full px-3 py-2.5 bg-white border border-slate-200 rounded-lg shadow-sm focus:border-emerald-400 focus:ring-2 focus:ring-emerald-500/20 transition-all duration-200 disabled:bg-slate-100 disabled:cursor-not-allowed cursor-pointer",
651
- onChange: C,
656
+ onChange: $,
652
657
  disabled: g.value
653
658
  }, [
654
- (s(!0), i(B, null, V(u.value, (n) => (s(), i("option", {
655
- key: n.id,
656
- value: n.id
657
- }, p(n.name), 9, ft))), 128))
658
- ], 40, gt), [
659
- [J, x.value]
659
+ (a(!0), r(B, null, V(c.value, (i) => (a(), r("option", {
660
+ key: i.id,
661
+ value: i.id
662
+ }, p(i.name), 9, pt))), 128))
663
+ ], 40, ft), [
664
+ [J, h.value]
660
665
  ])
661
666
  ]),
662
- t("div", pt, [
663
- a.value.length > 0 ? (s(), i("div", vt, [
664
- (s(!0), i(B, null, V(a.value, (n) => (s(), i("div", {
665
- key: n.id,
667
+ t("div", vt, [
668
+ n.value.length > 0 ? (a(), r("div", xt, [
669
+ (a(!0), r(B, null, V(n.value, (i) => (a(), r("div", {
670
+ key: i.id,
666
671
  class: "bg-gradient-to-br from-slate-50 to-white p-4 rounded-xl border border-slate-200"
667
672
  }, [
668
- t("label", xt, p(n.label) + ":", 1),
669
- n.type === "select" ? (s(), i("select", {
673
+ t("label", ht, p(i.label) + ":", 1),
674
+ i.type === "select" ? (a(), r("select", {
670
675
  key: 0,
671
676
  class: "w-full px-3 py-2.5 bg-white border border-slate-200 rounded-lg shadow-sm focus:border-emerald-400 focus:ring-2 focus:ring-emerald-500/20 transition-all duration-200 disabled:bg-slate-100 disabled:cursor-not-allowed cursor-pointer",
672
- onChange: (m) => b(n.id, m.target.value),
677
+ onChange: (m) => b(i.id, m.target.value),
673
678
  disabled: g.value
674
679
  }, [
675
680
  l[2] || (l[2] = t("option", { value: "" }, "Seleccionar...", -1)),
676
- (s(!0), i(B, null, V(n.options, (m) => (s(), i("option", {
681
+ (a(!0), r(B, null, V(i.options, (m) => (a(), r("option", {
677
682
  key: m,
678
683
  value: m
679
- }, p(m), 9, wt))), 128))
680
- ], 40, ht)) : n.type === "date" ? (s(), i("input", {
684
+ }, p(m), 9, yt))), 128))
685
+ ], 40, wt)) : i.type === "date" ? (a(), r("input", {
681
686
  key: 1,
682
687
  type: "date",
683
688
  class: "w-full px-3 py-2.5 bg-white border border-slate-200 rounded-lg shadow-sm focus:border-emerald-400 focus:ring-2 focus:ring-emerald-500/20 transition-all duration-200 disabled:bg-slate-100 disabled:cursor-not-allowed",
684
- onChange: (m) => b(n.id, m.target.value),
689
+ onChange: (m) => b(i.id, m.target.value),
685
690
  disabled: g.value
686
- }, null, 40, yt)) : n.type === "text" ? (s(), i("input", {
691
+ }, null, 40, Ct)) : i.type === "text" ? (a(), r("input", {
687
692
  key: 2,
688
693
  type: "text",
689
694
  class: "w-full px-3 py-2.5 bg-white border border-slate-200 rounded-lg shadow-sm focus:border-emerald-400 focus:ring-2 focus:ring-emerald-500/20 transition-all duration-200 disabled:bg-slate-100 disabled:cursor-not-allowed",
690
- onInput: (m) => b(n.id, m.target.value),
695
+ onInput: (m) => b(i.id, m.target.value),
691
696
  disabled: g.value,
692
- placeholder: n.label
693
- }, null, 40, Ct)) : P("", !0)
697
+ placeholder: i.label
698
+ }, null, 40, $t)) : P("", !0)
694
699
  ]))), 128))
695
700
  ])) : P("", !0),
696
701
  t("button", {
697
- onClick: I,
702
+ onClick: M,
698
703
  class: "cursor-pointer w-full bg-gradient-to-r from-emerald-500 to-teal-500 text-white font-semibold px-4 py-3 rounded-xl shadow-md hover:from-emerald-600 hover:to-teal-600 hover:shadow-lg transform hover:-translate-y-0.5 transition-all duration-200 disabled:from-slate-300 disabled:to-slate-400 disabled:cursor-not-allowed disabled:transform-none disabled:shadow-none flex items-center justify-center gap-2",
699
704
  disabled: g.value
700
705
  }, [
701
- g.value ? (s(), i("span", kt, "⏳")) : (s(), i("span", St, "🔍")),
706
+ g.value ? (a(), r("span", St, "⏳")) : (a(), r("span", Pt, "🔍")),
702
707
  T(" " + p(g.value ? "Conectando con el feed..." : "Aplicar Filtros"), 1)
703
- ], 8, $t)
708
+ ], 8, kt)
704
709
  ])
705
710
  ]));
706
711
  }
707
- }), Ft = { class: "fixed top-0 left-0 w-full h-full bg-gradient-to-br from-slate-50 via-white to-slate-100 flex flex-col z-9999 p-6" }, jt = { class: "w-full flex justify-between items-center mb-4" }, It = { class: "w-full flex-1 bg-white/60 rounded-2xl flex gap-5 p-5 overflow-hidden backdrop-blur-sm border border-slate-200 shadow-inner" }, Mt = { class: "flex-1 flex flex-col gap-5" }, At = { class: "flex flex-col bg-white rounded-2xl shadow-lg border border-slate-200 p-5 overflow-y-auto" }, Bt = {
712
+ }), jt = { class: "fixed top-0 left-0 w-full h-full bg-gradient-to-br from-slate-50 via-white to-slate-100 flex flex-col z-9999 p-6" }, Mt = { class: "w-full flex justify-between items-center mb-4" }, It = { class: "w-full flex-1 bg-white/60 rounded-2xl flex gap-5 p-5 overflow-hidden backdrop-blur-sm border border-slate-200 shadow-inner" }, At = { class: "flex-1 flex flex-col gap-5" }, Bt = { class: "flex flex-col bg-white rounded-2xl shadow-lg border border-slate-200 p-5 overflow-y-auto" }, Et = {
708
713
  key: 0,
709
714
  class: "mb-4 p-4 bg-gradient-to-br from-emerald-50 to-teal-50 rounded-xl border border-emerald-200 w-full flex-shrink-0 text-sm font-medium text-emerald-700"
710
- }, Et = { class: "list-none mt-3 space-y-2 text-slate-600" }, Tt = { class: "flex items-start gap-2" }, Dt = { class: "font-semibold text-slate-700" }, Ot = { class: "flex items-start gap-2" }, Rt = { class: "font-semibold text-slate-700" }, Nt = { class: "font-semibold text-slate-700" }, Vt = { class: "flex items-start gap-2" }, Ut = { class: "flex flex-wrap gap-2 mt-1" }, zt = { class: "font-semibold text-slate-700" }, qt = { class: "text-emerald-600" }, Lt = { class: "flex flex-col gap-4 w-full" }, Gt = { class: "flex items-center gap-3 cursor-pointer group" }, Jt = {
715
+ }, Tt = { class: "list-none mt-3 space-y-2 text-slate-600" }, Dt = { class: "flex items-start gap-2" }, Ot = { class: "font-semibold text-slate-700" }, Rt = { class: "flex items-start gap-2" }, Nt = { class: "font-semibold text-slate-700" }, Vt = { class: "font-semibold text-slate-700" }, Ut = { class: "flex items-start gap-2" }, zt = { class: "flex flex-wrap gap-2 mt-1" }, qt = { class: "font-semibold text-slate-700" }, Lt = { class: "text-emerald-600" }, Gt = { class: "flex flex-col gap-4 w-full" }, Jt = { class: "flex items-center gap-3 cursor-pointer group" }, Ht = {
711
716
  key: 0,
712
717
  class: "flex flex-col gap-4 ml-8 p-4 bg-gradient-to-br from-slate-50 to-white rounded-xl border border-slate-200"
713
- }, Ht = { class: "flex flex-col gap-2" }, Wt = { class: "flex flex-col gap-2" }, Yt = { class: "flex-1 flex flex-col bg-white rounded-2xl shadow-lg border border-slate-200 p-5 overflow-y-auto" }, Kt = { class: "flex-1 flex flex-col bg-white rounded-2xl shadow-lg border border-slate-200 p-5 overflow-y-auto" }, Qt = {
718
+ }, Wt = { class: "flex flex-col gap-2" }, Yt = { class: "flex flex-col gap-2" }, Kt = { class: "flex-1 flex flex-col bg-white rounded-2xl shadow-lg border border-slate-200 p-5 overflow-y-auto" }, Qt = { class: "flex-1 flex flex-col bg-white rounded-2xl shadow-lg border border-slate-200 p-5 overflow-y-auto" }, Xt = {
714
719
  key: 0,
715
720
  class: "flex-1 flex flex-col items-center justify-center text-slate-400"
716
- }, Xt = {
721
+ }, Zt = {
717
722
  key: 1,
718
723
  class: "space-y-3"
719
- }, Zt = ["onClick"], _t = { class: "font-bold text-slate-800 mb-2" }, eo = { class: "text-sm text-slate-600 line-clamp-2" }, to = { class: "flex-1 flex flex-col bg-white rounded-2xl shadow-lg border border-slate-200 p-5 overflow-y-auto" }, oo = {
724
+ }, _t = ["onClick"], eo = { class: "font-bold text-slate-800 mb-2" }, to = { class: "text-sm text-slate-600 line-clamp-2" }, oo = { class: "flex-1 flex flex-col bg-white rounded-2xl shadow-lg border border-slate-200 p-5 overflow-y-auto" }, lo = {
720
725
  key: 0,
721
726
  class: "flex-1 flex flex-col items-center justify-center text-slate-400"
722
- }, lo = {
727
+ }, no = {
723
728
  key: 1,
724
729
  class: "space-y-3"
725
- }, no = { class: "block text-sm font-bold text-slate-700 mb-2 flex items-center gap-2" }, ao = ["onUpdate:modelValue"], ro = ["value"], so = {
730
+ }, ao = { class: "block text-sm font-bold text-slate-700 mb-2 flex items-center gap-2" }, ro = ["onUpdate:modelValue"], so = ["value"], io = {
726
731
  key: 0,
727
732
  class: "mt-3 p-3 bg-gradient-to-br from-emerald-50 to-teal-50 rounded-lg border border-emerald-200"
728
- }, io = { class: "mt-1 text-sm font-medium text-slate-700 break-words" }, uo = /* @__PURE__ */ H({
733
+ }, uo = { class: "mt-1 text-sm font-medium text-slate-700 break-words" }, co = /* @__PURE__ */ H({
729
734
  __name: "FeedComponent",
730
735
  props: {
731
736
  object: {
@@ -746,69 +751,69 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
746
751
  }
747
752
  },
748
753
  setup(e) {
749
- const o = e, g = S(null), x = S(null), f = S(!1), u = S(1), a = S("horizontal"), b = S({}), C = S(null), I = (w) => {
754
+ const o = e, g = S(null), h = S(null), f = S(!1), c = S(1), n = S("horizontal"), b = S({}), $ = S(null), M = (w) => {
750
755
  g.value = w;
751
- }, r = (w) => {
752
- x.value = w;
756
+ }, s = (w) => {
757
+ h.value = w;
753
758
  }, l = () => {
754
759
  const w = o.object.fields.filter((d) => d.mappedTo).map((d) => {
755
- var c;
760
+ var u;
756
761
  return {
757
762
  fieldName: d.name,
758
763
  mappedTo: d.mappedTo,
759
- value: ((c = x.value) == null ? void 0 : c[d.mappedTo]) ?? null
764
+ value: ((u = h.value) == null ? void 0 : u[d.mappedTo]) ?? null
760
765
  };
761
766
  });
762
- C.value = {
767
+ $.value = {
763
768
  ...b.value,
764
769
  dynamicUpdate: f.value,
765
- elementCount: u.value,
766
- orientation: a.value,
767
- mapping: w.map(({ fieldName: d, mappedTo: c }) => ({ fieldName: d, mappedTo: c }))
768
- }, o.updateObjectByFeedContent && o.updateObjectByFeedContent(w, C.value), o.toggleFeedSection();
769
- }, n = (w) => {
770
+ elementCount: c.value,
771
+ orientation: n.value,
772
+ mapping: w.map(({ fieldName: d, mappedTo: u }) => ({ fieldName: d, mappedTo: u }))
773
+ }, o.updateObjectByFeedContent && o.updateObjectByFeedContent(w, $.value), o.toggleFeedSection();
774
+ }, i = (w) => {
770
775
  b.value = w;
771
776
  }, m = () => {
772
777
  var w;
773
- (w = o.object) != null && w.repeat_data && (C.value = o.object.repeat_data, f.value = o.object.repeat_data.dynamicUpdate || !1, u.value = o.object.repeat_data.elementCount || 1, a.value = o.object.repeat_data.orientation || "horizontal", b.value = {
778
+ (w = o.object) != null && w.repeat_data && ($.value = o.object.repeat_data, f.value = o.object.repeat_data.dynamicUpdate || !1, c.value = o.object.repeat_data.elementCount || 1, n.value = o.object.repeat_data.orientation || "horizontal", b.value = {
774
779
  name: o.object.repeat_data.name,
775
780
  url: o.object.repeat_data.url
776
781
  });
777
782
  }, k = () => {
778
- C.value = null, f.value = !1, u.value = 1, a.value = "horizontal", b.value = {}, o.updateObjectByFeedContent && o.updateObjectByFeedContent([], null);
779
- }, A = () => {
783
+ $.value = null, f.value = !1, c.value = 1, n.value = "horizontal", b.value = {}, o.updateObjectByFeedContent && o.updateObjectByFeedContent([], null);
784
+ }, I = () => {
780
785
  var w;
781
- C.value && (C.value = {
782
- ...C.value,
786
+ $.value && ($.value = {
787
+ ...$.value,
783
788
  dynamicUpdate: f.value,
784
- elementCount: u.value,
785
- orientation: a.value
786
- }, o.updateObjectByFeedContent && o.updateObjectByFeedContent(((w = C.value.mapping) == null ? void 0 : w.map((d) => ({
789
+ elementCount: c.value,
790
+ orientation: n.value
791
+ }, o.updateObjectByFeedContent && o.updateObjectByFeedContent(((w = $.value.mapping) == null ? void 0 : w.map((d) => ({
787
792
  fieldName: d.fieldName,
788
793
  mappedTo: d.mappedTo,
789
794
  value: null
790
- }))) || [], C.value));
795
+ }))) || [], $.value));
791
796
  };
792
797
  return le(() => {
793
798
  m();
794
- }), (w, d) => (s(), i("div", Ft, [
795
- t("div", jt, [
799
+ }), (w, d) => (a(), r("div", jt, [
800
+ t("div", Mt, [
796
801
  d[5] || (d[5] = t("h2", { class: "text-2xl font-bold bg-gradient-to-r from-slate-700 to-slate-500 bg-clip-text text-transparent flex items-center gap-3" }, [
797
802
  t("span", { class: "text-3xl" }, "🍺"),
798
803
  T(" Configuración de Feed ")
799
804
  ], -1)),
800
805
  t("button", {
801
806
  onClick: d[0] || (d[0] = //@ts-ignore
802
- (...c) => e.toggleFeedSection && e.toggleFeedSection(...c)),
807
+ (...u) => e.toggleFeedSection && e.toggleFeedSection(...u)),
803
808
  class: "cursor-pointer group w-10 h-10 flex items-center justify-center bg-white hover:bg-red-50 border border-red-200 hover:border-red-400 text-red-400 hover:text-red-600 rounded-full font-semibold shadow-sm hover:shadow-lg transition-all duration-200"
804
809
  }, [...d[4] || (d[4] = [
805
810
  t("span", { class: "text-lg" }, "✕", -1)
806
811
  ])])
807
812
  ]),
808
813
  t("div", It, [
809
- t("div", Mt, [
810
- t("div", At, [
811
- C.value && C.value.dynamicUpdate ? (s(), i("div", Bt, [
814
+ t("div", At, [
815
+ t("div", Bt, [
816
+ $.value && $.value.dynamicUpdate ? (a(), r("div", Et, [
812
817
  t("div", { class: "flex justify-between items-start" }, [
813
818
  d[8] || (d[8] = t("p", { class: "flex items-center gap-2" }, [
814
819
  t("span", { class: "text-emerald-500" }, "✓"),
@@ -816,7 +821,7 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
816
821
  ], -1)),
817
822
  t("div", { class: "flex items-center gap-2" }, [
818
823
  t("button", {
819
- onClick: A,
824
+ onClick: I,
820
825
  class: "cursor-pointer px-3 py-1.5 bg-white hover:bg-emerald-50 text-emerald-500 hover:text-emerald-600 border border-emerald-200 hover:border-emerald-300 rounded-lg text-xs font-semibold transition-all duration-200 flex items-center gap-1 shadow-sm"
821
826
  }, [...d[6] || (d[6] = [
822
827
  t("span", null, "💾", -1),
@@ -831,70 +836,70 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
831
836
  ])])
832
837
  ])
833
838
  ]),
834
- t("ul", Et, [
835
- t("li", Tt, [
839
+ t("ul", Tt, [
840
+ t("li", Dt, [
836
841
  d[9] || (d[9] = t("span", { class: "text-emerald-400" }, "→", -1)),
837
842
  d[10] || (d[10] = T(" Conectar con ", -1)),
838
- t("span", Dt, p(C.value.name), 1)
843
+ t("span", Ot, p($.value.name), 1)
839
844
  ]),
840
- t("li", Ot, [
845
+ t("li", Rt, [
841
846
  d[11] || (d[11] = t("span", { class: "text-emerald-400" }, "→", -1)),
842
847
  d[12] || (d[12] = T(" Recuperar ", -1)),
843
- t("span", Rt, p(C.value.elementCount), 1),
848
+ t("span", Nt, p($.value.elementCount), 1),
844
849
  d[13] || (d[13] = T(" items (", -1)),
845
- t("span", Nt, p(C.value.orientation), 1),
850
+ t("span", Vt, p($.value.orientation), 1),
846
851
  d[14] || (d[14] = T(")", -1))
847
852
  ]),
848
- t("li", Vt, [
853
+ t("li", Ut, [
849
854
  d[17] || (d[17] = t("span", { class: "text-emerald-400" }, "→", -1)),
850
855
  t("div", null, [
851
856
  d[16] || (d[16] = T(" Mapeo: ", -1)),
852
- t("div", Ut, [
853
- (s(!0), i(B, null, V(C.value.mapping, (c, $) => (s(), i("span", {
854
- key: $,
857
+ t("div", zt, [
858
+ (a(!0), r(B, null, V($.value.mapping, (u, C) => (a(), r("span", {
859
+ key: C,
855
860
  class: "inline-flex items-center gap-1 px-2 py-0.5 bg-white rounded-full text-xs border border-slate-200"
856
861
  }, [
857
- t("span", zt, p(c.fieldName), 1),
862
+ t("span", qt, p(u.fieldName), 1),
858
863
  d[15] || (d[15] = t("span", { class: "text-slate-400" }, "←", -1)),
859
- t("span", qt, p(c.mappedTo), 1)
864
+ t("span", Lt, p(u.mappedTo), 1)
860
865
  ]))), 128))
861
866
  ])
862
867
  ])
863
868
  ])
864
869
  ])
865
870
  ])) : P("", !0),
866
- t("div", Lt, [
867
- t("label", Gt, [
871
+ t("div", Gt, [
872
+ t("label", Jt, [
868
873
  R(t("input", {
869
874
  type: "checkbox",
870
- "onUpdate:modelValue": d[1] || (d[1] = (c) => f.value = c),
875
+ "onUpdate:modelValue": d[1] || (d[1] = (u) => f.value = u),
871
876
  class: "w-5 h-5 text-emerald-500 border-2 border-slate-300 rounded focus:ring-emerald-500 cursor-pointer"
872
877
  }, null, 512), [
873
878
  [te, f.value]
874
879
  ]),
875
880
  d[18] || (d[18] = t("span", { class: "font-medium text-slate-700 group-hover:text-slate-900 transition-colors" }, "Actualizar dinámicamente según criterios del feed", -1))
876
881
  ]),
877
- f.value ? (s(), i("div", Jt, [
878
- t("div", Ht, [
882
+ f.value ? (a(), r("div", Ht, [
883
+ t("div", Wt, [
879
884
  d[19] || (d[19] = t("label", { class: "text-sm font-semibold text-slate-600" }, "Cantidad de elementos:", -1)),
880
885
  R(t("input", {
881
886
  type: "number",
882
- "onUpdate:modelValue": d[2] || (d[2] = (c) => u.value = c),
887
+ "onUpdate:modelValue": d[2] || (d[2] = (u) => c.value = u),
883
888
  min: "1",
884
889
  class: "w-32 px-3 py-2 border border-slate-200 rounded-lg focus:ring-2 focus:ring-emerald-500/20 focus:border-emerald-400 transition-colors"
885
890
  }, null, 512), [
886
891
  [
887
892
  Y,
888
- u.value,
893
+ c.value,
889
894
  void 0,
890
895
  { number: !0 }
891
896
  ]
892
897
  ])
893
898
  ]),
894
- t("div", Wt, [
899
+ t("div", Yt, [
895
900
  d[21] || (d[21] = t("label", { class: "text-sm font-semibold text-slate-600" }, "Orientación:", -1)),
896
901
  R(t("select", {
897
- "onUpdate:modelValue": d[3] || (d[3] = (c) => a.value = c),
902
+ "onUpdate:modelValue": d[3] || (d[3] = (u) => n.value = u),
898
903
  class: "w-48 px-3 py-2 border border-slate-200 rounded-lg focus:ring-2 focus:ring-emerald-500/20 focus:border-emerald-400 bg-white transition-colors cursor-pointer"
899
904
  }, [...d[20] || (d[20] = [
900
905
  t("option", {
@@ -903,73 +908,73 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
903
908
  }, "Horizontal", -1),
904
909
  t("option", { value: "vertical" }, "Vertical", -1)
905
910
  ])], 512), [
906
- [J, a.value]
911
+ [J, n.value]
907
912
  ])
908
913
  ])
909
914
  ])) : P("", !0)
910
915
  ])
911
916
  ]),
912
- t("div", Yt, [
917
+ t("div", Kt, [
913
918
  d[22] || (d[22] = t("h3", { class: "text-lg font-bold mb-5 text-slate-700 pb-2 flex items-center gap-2 border-b border-slate-100" }, [
914
919
  t("span", { class: "text-xl" }, "🔍"),
915
920
  T(" Orígenes y Filtros ")
916
921
  ], -1)),
917
- q(Pt, {
918
- onSubmit: I,
919
- updateFeedCriteria: n,
922
+ L(Ft, {
923
+ onSubmit: M,
924
+ updateFeedCriteria: i,
920
925
  isProduction: e.isProduction
921
926
  }, null, 8, ["isProduction"])
922
927
  ])
923
928
  ]),
924
- t("div", Kt, [
929
+ t("div", Qt, [
925
930
  d[24] || (d[24] = t("h3", { class: "text-lg font-bold mb-5 text-slate-700 pb-2 flex items-center gap-2 border-b border-slate-100" }, [
926
931
  t("span", { class: "text-xl" }, "📰"),
927
932
  T(" Noticias ")
928
933
  ], -1)),
929
- !g.value || g.value.length === 0 ? (s(), i("div", Qt, [...d[23] || (d[23] = [
934
+ !g.value || g.value.length === 0 ? (a(), r("div", Xt, [...d[23] || (d[23] = [
930
935
  t("span", { class: "text-5xl mb-3 opacity-50" }, "📭", -1),
931
936
  t("p", { class: "text-sm font-medium" }, "No hay noticias disponibles", -1),
932
937
  t("p", { class: "text-xs mt-1 text-slate-300" }, "Selecciona un origen para cargar noticias", -1)
933
- ])])) : (s(), i("ul", Xt, [
934
- (s(!0), i(B, null, V(g.value, (c, $) => (s(), i("li", {
935
- key: $,
938
+ ])])) : (a(), r("ul", Zt, [
939
+ (a(!0), r(B, null, V(g.value, (u, C) => (a(), r("li", {
940
+ key: C,
936
941
  class: "p-4 bg-gradient-to-br from-slate-50 to-white rounded-xl shadow-sm hover:shadow-md cursor-pointer hover:scale-[1.01] transition-all duration-200 border border-slate-200 hover:border-emerald-300",
937
- onClick: (j) => r(c)
942
+ onClick: (j) => s(u)
938
943
  }, [
939
- t("h4", _t, p(c.title || c.titulo || "Sin título"), 1),
940
- t("p", eo, p(c.description || c.descripcion || c.content || "Sin descripción"), 1)
941
- ], 8, Zt))), 128))
944
+ t("h4", eo, p(u.title || u.titulo || "Sin título"), 1),
945
+ t("p", to, p(u.description || u.descripcion || u.content || "Sin descripción"), 1)
946
+ ], 8, _t))), 128))
942
947
  ]))
943
948
  ]),
944
- t("div", to, [
949
+ t("div", oo, [
945
950
  d[30] || (d[30] = t("h3", { class: "text-lg font-bold mb-5 text-slate-700 pb-2 flex items-center gap-2 border-b border-slate-100" }, [
946
951
  t("span", { class: "text-xl" }, "🔗"),
947
952
  T(" Relacionar Noticia ")
948
953
  ], -1)),
949
- x.value ? (s(), i("div", lo, [
950
- (s(!0), i(B, null, V(e.object.fields, (c, $) => (s(), i("div", {
951
- key: $,
954
+ h.value ? (a(), r("div", no, [
955
+ (a(!0), r(B, null, V(e.object.fields, (u, C) => (a(), r("div", {
956
+ key: C,
952
957
  class: "p-4 bg-gradient-to-br from-slate-50 to-white rounded-xl border border-slate-200"
953
958
  }, [
954
- t("label", no, [
959
+ t("label", ao, [
955
960
  d[26] || (d[26] = t("span", { class: "text-base" }, "⚙️", -1)),
956
- T(" " + p(c.name), 1)
961
+ T(" " + p(u.name), 1)
957
962
  ]),
958
963
  R(t("select", {
959
- "onUpdate:modelValue": (j) => c.mappedTo = j,
964
+ "onUpdate:modelValue": (j) => u.mappedTo = j,
960
965
  class: "w-full px-3 py-2.5 border border-slate-200 rounded-lg focus:ring-2 focus:ring-emerald-500/20 focus:border-emerald-400 transition-all bg-white cursor-pointer"
961
966
  }, [
962
967
  d[27] || (d[27] = t("option", { value: "" }, "-- Seleccionar campo --", -1)),
963
- (s(!0), i(B, null, V(x.value, (j, D) => (s(), i("option", {
968
+ (a(!0), r(B, null, V(h.value, (j, D) => (a(), r("option", {
964
969
  key: D,
965
970
  value: D
966
- }, p(D), 9, ro))), 128))
967
- ], 8, ao), [
968
- [J, c.mappedTo]
971
+ }, p(D), 9, so))), 128))
972
+ ], 8, ro), [
973
+ [J, u.mappedTo]
969
974
  ]),
970
- c.mappedTo ? (s(), i("div", so, [
975
+ u.mappedTo ? (a(), r("div", io, [
971
976
  d[28] || (d[28] = t("span", { class: "text-xs font-semibold text-emerald-600 uppercase tracking-wide" }, "Vista previa:", -1)),
972
- t("p", io, p(x.value[c.mappedTo]), 1)
977
+ t("p", uo, p(h.value[u.mappedTo]), 1)
973
978
  ])) : P("", !0)
974
979
  ]))), 128)),
975
980
  t("button", {
@@ -979,7 +984,7 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
979
984
  t("span", { class: "text-lg" }, "✓", -1),
980
985
  t("span", null, "Alimentar el componente", -1)
981
986
  ])])
982
- ])) : (s(), i("div", oo, [...d[25] || (d[25] = [
987
+ ])) : (a(), r("div", lo, [...d[25] || (d[25] = [
983
988
  t("span", { class: "text-5xl mb-3 opacity-50" }, "👆", -1),
984
989
  t("p", { class: "text-sm font-medium text-center" }, [
985
990
  T("Selecciona una noticia"),
@@ -991,29 +996,29 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
991
996
  ])
992
997
  ]));
993
998
  }
994
- }), co = { class: "absolute -top-2.5 left-3 text-[11px] font-medium tracking-wide bg-gradient-to-r from-slate-700 to-slate-600 text-white px-3 py-0.5 rounded-full shadow-sm" }, mo = { class: "w-full text-right flex justify-between items-center mt-1" }, bo = { class: "flex gap-3 items-center" }, go = { class: "bg-rose-50 border border-rose-200 text-rose-500 px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wider rounded-md" }, fo = {
999
+ }), mo = { class: "absolute -top-2.5 left-3 text-[11px] font-medium tracking-wide bg-gradient-to-r from-slate-700 to-slate-600 text-white px-3 py-0.5 rounded-full shadow-sm" }, bo = { class: "w-full text-right flex justify-between items-center mt-1" }, go = { class: "flex gap-3 items-center" }, fo = { class: "bg-rose-50 border border-rose-200 text-rose-500 px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wider rounded-md" }, po = {
995
1000
  key: 0,
996
1001
  class: "flex-1 flex justify-center"
997
- }, po = { class: "flex justify-end items-center gap-3" }, vo = { class: "bg-violet-50 border border-violet-200 text-violet-600 rounded-md px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wider" }, xo = {
1002
+ }, vo = { class: "flex justify-end items-center gap-3" }, xo = { class: "bg-violet-50 border border-violet-200 text-violet-600 rounded-md px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wider" }, ho = {
998
1003
  key: 0,
999
1004
  class: "flex gap-1 bg-slate-50 rounded-lg p-1"
1000
- }, ho = {
1005
+ }, wo = {
1001
1006
  key: 0,
1002
1007
  class: "text-[10px] bg-amber-100 text-amber-700 px-1.5 rounded-full font-medium"
1003
- }, wo = { class: "mt-2 flex items-center" }, yo = { class: "font-medium text-slate-700" }, Co = { key: 0 }, $o = { key: 1 }, ko = {
1008
+ }, yo = { class: "mt-2 flex items-center" }, Co = { class: "font-medium text-slate-700" }, $o = { key: 0 }, ko = { key: 1 }, So = {
1004
1009
  key: 0,
1005
1010
  class: "mt-3 p-3 bg-gradient-to-r from-sky-50 to-blue-50 rounded-lg text-sm text-slate-600 border border-sky-100"
1006
- }, So = { class: "mt-3 flex gap-1.5 flex-wrap" }, Po = { class: "absolute top-0 left-0 w-full h-full opacity-0 group-hover:opacity-100 bg-gradient-to-br from-white/90 via-slate-50/95 to-slate-100/90 backdrop-blur-[2px] z-99 transition-all duration-300 rounded-xl" }, Fo = { class: "flex justify-center h-full items-center p-4 gap-3" }, jo = {
1011
+ }, Po = { class: "mt-3 flex gap-1.5 flex-wrap" }, Fo = { class: "absolute top-0 left-0 w-full h-full opacity-0 group-hover:opacity-100 bg-gradient-to-br from-white/90 via-slate-50/95 to-slate-100/90 backdrop-blur-[2px] z-99 transition-all duration-300 rounded-xl" }, jo = { class: "flex justify-center h-full items-center p-4 gap-3" }, Mo = {
1007
1012
  key: 0,
1008
1013
  title: "Mover componente",
1009
1014
  class: "handle cursor-grab flex items-center bg-white border border-slate-200 px-4 py-2 rounded-xl hover:bg-slate-700 hover:border-slate-700 hover:text-white shadow-sm hover:shadow-md transition-all duration-200 group/btn"
1010
1015
  }, Io = {
1011
1016
  key: 1,
1012
1017
  class: "flex-1 flex justify-center items-center"
1013
- }, Mo = { class: "flex flex-col items-center" }, Ao = {
1018
+ }, Ao = { class: "flex flex-col items-center" }, Bo = {
1014
1019
  key: 0,
1015
1020
  class: "text-[10px] mt-0.5 opacity-70"
1016
- }, Bo = ["id"], ce = /* @__PURE__ */ H({
1021
+ }, Eo = ["id"], ce = /* @__PURE__ */ H({
1017
1022
  __name: "InitialComponent",
1018
1023
  props: {
1019
1024
  object: {
@@ -1037,49 +1042,49 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
1037
1042
  }
1038
1043
  },
1039
1044
  setup(e) {
1040
- const o = e, g = Math.random().toString(36).substring(2, 15), x = S(!1), f = S(!1), u = S(null), a = S(null), b = S(!1), C = S(!1);
1045
+ const o = e, g = Math.random().toString(36).substring(2, 15), h = S(!1), f = S(!1), c = S(null), n = S(null), b = S(!1), $ = S(!1);
1041
1046
  ee(() => o.isComponentMode, (d) => {
1042
- d || I();
1047
+ d || M();
1043
1048
  }), ee(() => o.object, () => {
1044
- I();
1049
+ M();
1045
1050
  }, { deep: !0 }), ee(b, async (d) => {
1046
- d && (await be(), w());
1051
+ d && (await ge(), w());
1047
1052
  });
1048
- const I = () => {
1049
- u.value && clearTimeout(u.value), u.value = setTimeout(() => {
1053
+ const M = () => {
1054
+ c.value && clearTimeout(c.value), c.value = setTimeout(() => {
1050
1055
  w();
1051
1056
  }, 500);
1052
- }, r = () => {
1057
+ }, s = () => {
1053
1058
  if (o.isComponentMode) return;
1054
- const d = new IntersectionObserver((c) => {
1055
- c.forEach(($) => {
1056
- $.isIntersecting && !b.value && (b.value = !0, d.disconnect());
1059
+ const d = new IntersectionObserver((u) => {
1060
+ u.forEach((C) => {
1061
+ C.isIntersecting && !b.value && (b.value = !0, d.disconnect());
1057
1062
  });
1058
1063
  }, { threshold: 0.1 });
1059
- a.value && d.observe(a.value);
1060
- }, l = (d, c) => {
1061
- const $ = (o.object.fields || []).find((j) => j.name === d);
1062
- $ && ($.example_value = c);
1063
- }, n = (d, c) => {
1064
- d.forEach(($) => {
1065
- $.value !== void 0 && l($.fieldName, $.value);
1066
- }), o.object.repeat_data = c;
1064
+ n.value && d.observe(n.value);
1065
+ }, l = (d, u) => {
1066
+ const C = (o.object.fields || []).find((j) => j.name === d);
1067
+ C && (C.example_value = u);
1068
+ }, i = (d, u) => {
1069
+ d.forEach((C) => {
1070
+ C.value !== void 0 && l(C.fieldName, C.value);
1071
+ }), o.object.repeat_data = u;
1067
1072
  }, m = () => {
1068
1073
  f.value = !f.value;
1069
1074
  }, k = () => {
1070
- C.value = !C.value;
1071
- }, A = () => {
1075
+ $.value = !$.value;
1076
+ }, I = () => {
1072
1077
  w(!0).then((d) => {
1073
- const c = window.open("", "Preview", "width=1200,height=800");
1074
- if (!c) {
1078
+ const u = window.open("", "Preview", "width=1200,height=800");
1079
+ if (!u) {
1075
1080
  alert("El navegador bloqueó la ventana emergente. Por favor, permite los popups para este sitio.");
1076
1081
  return;
1077
1082
  }
1078
- c.document.body.innerHTML = d, c.document.querySelectorAll("script").forEach((j) => {
1083
+ u.document.body.innerHTML = d, u.document.querySelectorAll("script").forEach((j) => {
1079
1084
  var N;
1080
- const D = c.document.createElement("script");
1085
+ const D = u.document.createElement("script");
1081
1086
  j.src ? D.src = j.src : D.textContent = j.textContent, (N = j.parentNode) == null || N.replaceChild(D, j);
1082
- }), c.document.close();
1087
+ }), u.document.close();
1083
1088
  });
1084
1089
  }, w = (d = !1) => {
1085
1090
  var j;
@@ -1090,11 +1095,11 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
1090
1095
  const N = document.getElementById(g);
1091
1096
  return N && (N.innerHTML = D), Promise.resolve("");
1092
1097
  }
1093
- const c = o.renderApiDomain ? o.renderApiDomain + "/api/preview-comp/" : "http://localhost:8003/api/preview-comp/", $ = JSON.stringify({ obj: o.object }, null, 2);
1094
- return fetch(c, {
1098
+ const u = o.renderApiDomain ? o.renderApiDomain + "/api/preview-comp/" : "http://localhost:8003/api/preview-comp/", C = JSON.stringify({ obj: o.object }, null, 2);
1099
+ return fetch(u, {
1095
1100
  method: "POST",
1096
1101
  headers: { "Content-Type": "application/json" },
1097
- body: $
1102
+ body: C
1098
1103
  }).then((D) => D.text()).then((D) => {
1099
1104
  if (d)
1100
1105
  return D;
@@ -1103,25 +1108,25 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
1103
1108
  });
1104
1109
  };
1105
1110
  return le(() => {
1106
- r();
1107
- }), (d, c) => (s(), i("div", null, [
1108
- C.value ? (s(), ie(uo, {
1111
+ s();
1112
+ }), (d, u) => (a(), r("div", null, [
1113
+ $.value ? (a(), ie(co, {
1109
1114
  key: 0,
1110
- updateObjectByFeedContent: n,
1115
+ updateObjectByFeedContent: i,
1111
1116
  toggleFeedSection: k,
1112
1117
  object: e.object,
1113
1118
  isProduction: e.isProduction
1114
1119
  }, null, 8, ["object", "isProduction"])) : P("", !0),
1115
1120
  t("div", {
1116
1121
  ref_key: "rootElement",
1117
- ref: a,
1118
- class: L(["min-h-[100px] relative group hover:shadow-lg hover:shadow-slate-200/50 duration-300 ease-out js-draggable-element text-slate-600 border border-slate-200 hover:border-slate-300 px-5 pt-3 pb-4 w-full bg-white inline-block rounded-xl flex flex-col mb-3 z-0 shadow-sm", { "overflow-hidden": !e.isComponentMode }])
1122
+ ref: n,
1123
+ class: G(["min-h-[100px] relative group hover:shadow-lg hover:shadow-slate-200/50 duration-300 ease-out js-draggable-element text-slate-600 border border-slate-200 hover:border-slate-300 px-5 pt-3 pb-4 w-full bg-white inline-block rounded-xl flex flex-col mb-3 z-0 shadow-sm", { "overflow-hidden": !e.isComponentMode }])
1119
1124
  }, [
1120
- e.isComponentMode ? (s(), i(B, { key: 0 }, [
1121
- t("span", co, p(e.object.component_name), 1),
1122
- t("div", mo, [
1123
- t("div", bo, [
1124
- c[8] || (c[8] = t("div", { class: "handle cursor-grab text-slate-400 hover:text-slate-600 text-lg transition-colors" }, [
1125
+ e.isComponentMode ? (a(), r(B, { key: 0 }, [
1126
+ t("span", mo, p(e.object.component_name), 1),
1127
+ t("div", bo, [
1128
+ t("div", go, [
1129
+ u[8] || (u[8] = t("div", { class: "handle cursor-grab text-slate-400 hover:text-slate-600 text-lg transition-colors" }, [
1125
1130
  t("svg", {
1126
1131
  class: "w-5 h-5",
1127
1132
  fill: "currentColor",
@@ -1130,28 +1135,28 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
1130
1135
  t("path", { d: "M7 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 2zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 14zm6-8a2 2 0 1 0-.001-4.001A2 2 0 0 0 13 6zm0 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 14z" })
1131
1136
  ])
1132
1137
  ], -1)),
1133
- t("span", go, p(e.object.category), 1)
1138
+ t("span", fo, p(e.object.category), 1)
1134
1139
  ]),
1135
- e.fullwidthMode ? (s(), i("div", fo, [
1140
+ e.fullwidthMode ? (a(), r("div", po, [
1136
1141
  t("div", {
1137
1142
  class: "bg-gradient-to-r from-emerald-500 to-teal-500 hover:from-emerald-600 hover:to-teal-600 text-white rounded-lg px-4 py-1.5 text-xs font-medium cursor-pointer shadow-sm hover:shadow transition-all duration-200",
1138
- onClick: c[0] || (c[0] = ($) => {
1143
+ onClick: u[0] || (u[0] = (C) => {
1139
1144
  var j;
1140
1145
  return (j = e.addComponentToColumn) == null ? void 0 : j.call(e, e.object);
1141
1146
  })
1142
1147
  }, "Seleccionar")
1143
1148
  ])) : P("", !0),
1144
- t("div", po, [
1145
- t("span", vo, p(e.object.framework), 1),
1146
- e.insideComponentBox ? P("", !0) : (s(), i("div", xo, [
1149
+ t("div", vo, [
1150
+ t("span", xo, p(e.object.framework), 1),
1151
+ e.insideComponentBox ? P("", !0) : (a(), r("div", ho, [
1147
1152
  t("div", {
1148
1153
  title: "Previsualizar Dummy",
1149
- onClick: c[1] || (c[1] = ($) => A()),
1154
+ onClick: u[1] || (u[1] = (C) => I()),
1150
1155
  class: "p-1.5 rounded-md hover:bg-white hover:shadow-sm cursor-pointer transition-all duration-200 text-base"
1151
1156
  }, "🔍"),
1152
1157
  t("div", {
1153
1158
  title: "Editar configuración",
1154
- onClick: c[2] || (c[2] = ($) => f.value = !f.value),
1159
+ onClick: u[2] || (u[2] = (C) => f.value = !f.value),
1155
1160
  class: "p-1.5 rounded-md hover:bg-white hover:shadow-sm cursor-pointer transition-all duration-200 text-base"
1156
1161
  }, "⚙️"),
1157
1162
  t("div", {
@@ -1159,43 +1164,43 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
1159
1164
  onClick: k,
1160
1165
  class: "p-1.5 rounded-md hover:bg-white hover:shadow-sm cursor-pointer transition-all duration-200 text-base flex items-center gap-1"
1161
1166
  }, [
1162
- c[9] || (c[9] = T("⚡ ", -1)),
1163
- e.object.repeat_data ? (s(), i("span", ho, p(e.object.repeat_data.elementCount), 1)) : P("", !0)
1167
+ u[9] || (u[9] = T("⚡ ", -1)),
1168
+ e.object.repeat_data ? (a(), r("span", wo, p(e.object.repeat_data.elementCount), 1)) : P("", !0)
1164
1169
  ]),
1165
- e.removeComponent ? (s(), i("div", {
1170
+ e.removeComponent ? (a(), r("div", {
1166
1171
  key: 0,
1167
1172
  title: "Eliminar componente",
1168
- onClick: c[3] || (c[3] = ($) => e.removeComponent(e.object, e.section || "")),
1173
+ onClick: u[3] || (u[3] = (C) => e.removeComponent(e.object, e.section || "")),
1169
1174
  class: "p-1.5 rounded-md hover:bg-red-50 hover:shadow-sm cursor-pointer transition-all duration-200 text-base"
1170
1175
  }, "🗑️")) : P("", !0)
1171
1176
  ]))
1172
1177
  ])
1173
1178
  ]),
1174
- q(re, {
1179
+ L(re, {
1175
1180
  toggleShowForm: m,
1176
1181
  object: e.object,
1177
1182
  showForm: f.value
1178
1183
  }, null, 8, ["object", "showForm"]),
1179
- t("div", wo, [
1180
- t("span", yo, p(e.object.name), 1),
1184
+ t("div", yo, [
1185
+ t("span", Co, p(e.object.name), 1),
1181
1186
  t("button", {
1182
- onClick: c[4] || (c[4] = ($) => x.value = !x.value),
1187
+ onClick: u[4] || (u[4] = (C) => h.value = !h.value),
1183
1188
  class: "ms-2 cursor-pointer text-xs text-slate-400 hover:text-slate-600 transition-colors w-5 h-5 rounded-full hover:bg-slate-100 flex items-center justify-center"
1184
1189
  }, [
1185
- x.value ? (s(), i("span", $o, "▲")) : (s(), i("span", Co, "▼"))
1190
+ h.value ? (a(), r("span", ko, "▲")) : (a(), r("span", $o, "▼"))
1186
1191
  ])
1187
1192
  ]),
1188
- x.value ? (s(), i("div", ko, p(e.object.description), 1)) : P("", !0),
1189
- t("div", So, [
1190
- (s(!0), i(B, null, V(e.object.tags, ($, j) => (s(), i("span", {
1193
+ h.value ? (a(), r("div", So, p(e.object.description), 1)) : P("", !0),
1194
+ t("div", Po, [
1195
+ (a(!0), r(B, null, V(e.object.tags, (C, j) => (a(), r("span", {
1191
1196
  key: j,
1192
1197
  class: "bg-slate-50 text-slate-500 px-2.5 py-1 rounded-full text-[11px] font-medium border border-slate-100 hover:border-slate-200 hover:bg-slate-100 transition-colors cursor-default"
1193
- }, p($), 1))), 128))
1198
+ }, p(C), 1))), 128))
1194
1199
  ])
1195
- ], 64)) : b.value ? (s(), i(B, { key: 1 }, [
1196
- t("div", Po, [
1197
- t("div", Fo, [
1198
- e.insideComponentBox && !e.fullwidthMode || !e.insideComponentBox ? (s(), i("div", jo, [...c[10] || (c[10] = [
1200
+ ], 64)) : b.value ? (a(), r(B, { key: 1 }, [
1201
+ t("div", Fo, [
1202
+ t("div", jo, [
1203
+ e.insideComponentBox && !e.fullwidthMode || !e.insideComponentBox ? (a(), r("div", Mo, [...u[10] || (u[10] = [
1199
1204
  t("div", { class: "flex flex-col items-center" }, [
1200
1205
  t("svg", {
1201
1206
  class: "w-6 h-6 mb-1 text-slate-400 group-hover/btn:text-white",
@@ -1207,27 +1212,27 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
1207
1212
  t("span", { class: "text-xs font-medium" }, "Mover")
1208
1213
  ], -1)
1209
1214
  ])])) : P("", !0),
1210
- e.insideComponentBox && e.fullwidthMode ? (s(), i("div", Io, [
1215
+ e.insideComponentBox && e.fullwidthMode ? (a(), r("div", Io, [
1211
1216
  t("div", {
1212
1217
  title: "Agregar componente a la columna",
1213
- onClick: c[5] || (c[5] = ($) => {
1218
+ onClick: u[5] || (u[5] = (C) => {
1214
1219
  var j;
1215
1220
  return (j = e.addComponentToColumn) == null ? void 0 : j.call(e, e.object);
1216
1221
  }),
1217
1222
  class: "cursor-pointer flex items-center bg-gradient-to-r from-emerald-500 to-teal-500 hover:from-emerald-600 hover:to-teal-600 text-white px-6 py-3 rounded-xl shadow-md hover:shadow-lg transition-all duration-200"
1218
- }, [...c[11] || (c[11] = [
1223
+ }, [...u[11] || (u[11] = [
1219
1224
  t("div", { class: "flex flex-col items-center" }, [
1220
1225
  t("span", { class: "text-2xl mb-1" }, "🚀"),
1221
1226
  t("span", { class: "text-sm font-medium" }, "Seleccionar")
1222
1227
  ], -1)
1223
1228
  ])])
1224
1229
  ])) : P("", !0),
1225
- e.insideComponentBox ? P("", !0) : (s(), i(B, { key: 2 }, [
1230
+ e.insideComponentBox ? P("", !0) : (a(), r(B, { key: 2 }, [
1226
1231
  t("div", {
1227
1232
  title: "Configurar componente",
1228
- onClick: c[6] || (c[6] = ($) => f.value = !f.value),
1233
+ onClick: u[6] || (u[6] = (C) => f.value = !f.value),
1229
1234
  class: "cursor-pointer flex items-center bg-white border border-slate-200 px-4 py-2 rounded-xl hover:bg-slate-700 hover:border-slate-700 hover:text-white shadow-sm hover:shadow-md transition-all duration-200 group/btn"
1230
- }, [...c[12] || (c[12] = [
1235
+ }, [...u[12] || (u[12] = [
1231
1236
  t("div", { class: "flex flex-col items-center" }, [
1232
1237
  t("span", { class: "text-xl mb-1" }, "⚙️"),
1233
1238
  t("span", { class: "text-xs font-medium" }, "Configurar")
@@ -1238,18 +1243,18 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
1238
1243
  onClick: k,
1239
1244
  class: "cursor-pointer flex items-center bg-white border border-slate-200 px-4 py-2 rounded-xl hover:bg-amber-500 hover:border-amber-500 hover:text-white shadow-sm hover:shadow-md transition-all duration-200 group/btn"
1240
1245
  }, [
1241
- t("div", Mo, [
1242
- c[13] || (c[13] = t("span", { class: "text-xl mb-1" }, "⚡", -1)),
1243
- c[14] || (c[14] = t("span", { class: "text-xs font-medium" }, "Beber de contenido", -1)),
1244
- e.object.repeat_data && e.object.repeat_data.dynamicUpdate ? (s(), i("span", Ao, "Carga " + p(e.object.repeat_data.elementCount) + " elementos", 1)) : P("", !0)
1246
+ t("div", Ao, [
1247
+ u[13] || (u[13] = t("span", { class: "text-xl mb-1" }, "⚡", -1)),
1248
+ u[14] || (u[14] = t("span", { class: "text-xs font-medium" }, "Beber de contenido", -1)),
1249
+ e.object.repeat_data && e.object.repeat_data.dynamicUpdate ? (a(), r("span", Bo, "Carga " + p(e.object.repeat_data.elementCount) + " elementos", 1)) : P("", !0)
1245
1250
  ])
1246
1251
  ]),
1247
- e.removeComponent ? (s(), i("div", {
1252
+ e.removeComponent ? (a(), r("div", {
1248
1253
  key: 0,
1249
1254
  title: "Eliminar componente",
1250
- onClick: c[7] || (c[7] = ($) => e.removeComponent(e.object, e.section || "")),
1255
+ onClick: u[7] || (u[7] = (C) => e.removeComponent(e.object, e.section || "")),
1251
1256
  class: "cursor-pointer flex items-center bg-white border border-slate-200 px-4 py-2 rounded-xl hover:bg-red-500 hover:border-red-500 hover:text-white shadow-sm hover:shadow-md transition-all duration-200 group/btn"
1252
- }, [...c[15] || (c[15] = [
1257
+ }, [...u[15] || (u[15] = [
1253
1258
  t("div", { class: "flex flex-col items-center" }, [
1254
1259
  t("span", { class: "text-xl mb-1" }, "🗑️"),
1255
1260
  t("span", { class: "text-xs font-medium" }, "Eliminar")
@@ -1258,32 +1263,32 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
1258
1263
  ], 64))
1259
1264
  ])
1260
1265
  ]),
1261
- q(re, {
1266
+ L(re, {
1262
1267
  toggleShowForm: m,
1263
1268
  object: e.object,
1264
1269
  showForm: f.value
1265
1270
  }, null, 8, ["object", "showForm"]),
1266
1271
  t("div", {
1267
- id: G(g),
1272
+ id: q(g),
1268
1273
  class: "w-full h-full flex items-center justify-center"
1269
- }, null, 8, Bo)
1274
+ }, null, 8, Eo)
1270
1275
  ], 64)) : P("", !0)
1271
1276
  ], 2)
1272
1277
  ]));
1273
1278
  }
1274
- }), Eo = { class: "absolute top-1 left-2 px-2 flex gap-3 items-center" }, To = {
1279
+ }), To = { class: "absolute top-1 left-2 px-2 flex gap-3 items-center" }, Do = {
1275
1280
  key: 0,
1276
1281
  class: "text-[10px] font-medium text-slate-400 bg-white/80 backdrop-blur-sm px-2 py-0.5 rounded-full shadow-sm"
1277
- }, Do = { class: "text-slate-600" }, Oo = {
1282
+ }, Oo = { class: "text-slate-600" }, Ro = {
1278
1283
  key: 1,
1279
1284
  class: "text-[10px] font-medium text-slate-400 bg-white/80 backdrop-blur-sm px-2 py-0.5 rounded-full shadow-sm"
1280
- }, Ro = { class: "text-slate-600" }, No = {
1285
+ }, No = { class: "text-slate-600" }, Vo = {
1281
1286
  key: 2,
1282
1287
  class: "text-[10px] font-medium text-slate-400 bg-white/80 backdrop-blur-sm px-2 py-0.5 rounded-full shadow-sm"
1283
- }, Vo = { class: "text-slate-600" }, Uo = {
1288
+ }, Uo = { class: "text-slate-600" }, zo = {
1284
1289
  key: 0,
1285
1290
  class: "my-4 w-full rounded-xl bg-white border border-slate-200 p-4 z-10 hidden group-hover:block shadow-lg"
1286
- }, zo = { class: "p-4 bg-gradient-to-br from-slate-50 to-white rounded-lg w-full" }, qo = { class: "flex flex-col" }, Lo = ["for"], Go = ["id"], Jo = ["value"], Ho = { class: "flex flex-col" }, Wo = ["for"], Yo = ["id"], Ko = ["value"], Qo = { class: "flex flex-col" }, Xo = ["for"], Zo = ["id"], _o = ["value"], el = { class: "absolute bottom-0 flex flex-col gap-1 w-full opacity-0 transition-all duration-300 group-hover:opacity-100" }, tl = { class: "flex justify-between gap-2 bg-white/90 backdrop-blur-sm rounded-t-xl px-3 py-1.5 shadow-sm border border-b-0 border-slate-200" }, ol = { class: "flex gap-1" }, ll = /* @__PURE__ */ H({
1291
+ }, qo = { class: "p-4 bg-gradient-to-br from-slate-50 to-white rounded-lg w-full" }, Lo = { class: "flex flex-col" }, Go = ["for"], Jo = ["id"], Ho = ["value"], Wo = { class: "flex flex-col" }, Yo = ["for"], Ko = ["id"], Qo = ["value"], Xo = { class: "flex flex-col" }, Zo = ["for"], _o = ["id"], el = ["value"], tl = { class: "absolute bottom-0 flex flex-col gap-1 w-full opacity-0 transition-all duration-300 group-hover:opacity-100" }, ol = { class: "flex justify-between gap-2 bg-white/90 backdrop-blur-sm rounded-t-xl px-3 py-1.5 shadow-sm border border-b-0 border-slate-200" }, ll = { class: "flex gap-1" }, nl = /* @__PURE__ */ H({
1287
1292
  __name: "ColConfig",
1288
1293
  props: {
1289
1294
  globalPageConfiguration: Array,
@@ -1328,169 +1333,169 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
1328
1333
  { label: "Columna (componentes unos encima de otros)", value: "flex-col" },
1329
1334
  { label: "Fila (componentes unos al lado de otros)", value: "flex-row" }
1330
1335
  ]
1331
- }, x = S(""), f = S(""), u = S(""), a = S(!1), b = K(() => {
1332
- var l, n, m, k;
1333
- const I = (l = o.globalPageConfiguration) == null ? void 0 : l.find(
1334
- (A) => A.section === o.section
1335
- ), r = (k = (m = (n = I == null ? void 0 : I.rows) == null ? void 0 : n[o.rowIndex]) == null ? void 0 : m.columns) == null ? void 0 : k[o.columnIndex];
1336
- return (r == null ? void 0 : r.config) || {};
1337
- }), C = (I, r) => {
1336
+ }, h = S(""), f = S(""), c = S(""), n = S(!1), b = K(() => {
1337
+ var l, i, m, k;
1338
+ const M = (l = o.globalPageConfiguration) == null ? void 0 : l.find(
1339
+ (I) => I.section === o.section
1340
+ ), s = (k = (m = (i = M == null ? void 0 : M.rows) == null ? void 0 : i[o.rowIndex]) == null ? void 0 : m.columns) == null ? void 0 : k[o.columnIndex];
1341
+ return (s == null ? void 0 : s.config) || {};
1342
+ }), $ = (M, s) => {
1338
1343
  var k;
1339
- const l = x.value || g.width[0].value, n = f.value || g.gap[0].value, m = u.value || "";
1340
- (k = o.updateColConfig) == null || k.call(o, I, r, o.section || "", l, n, m), a.value = !1;
1344
+ const l = h.value || g.width[0].value, i = f.value || g.gap[0].value, m = c.value || "";
1345
+ (k = o.updateColConfig) == null || k.call(o, M, s, o.section || "", l, i, m), n.value = !1;
1341
1346
  };
1342
- return (I, r) => (s(), i(B, null, [
1343
- t("div", Eo, [
1344
- b.value.width !== void 0 ? (s(), i("span", To, [
1345
- r[12] || (r[12] = T(" Ancho: ", -1)),
1346
- t("span", Do, p(b.value.width), 1)
1347
+ return (M, s) => (a(), r(B, null, [
1348
+ t("div", To, [
1349
+ b.value.width !== void 0 ? (a(), r("span", Do, [
1350
+ s[12] || (s[12] = T(" Ancho: ", -1)),
1351
+ t("span", Oo, p(b.value.width), 1)
1347
1352
  ])) : P("", !0),
1348
- b.value.gap !== void 0 ? (s(), i("span", Oo, [
1349
- r[13] || (r[13] = T(" Gap: ", -1)),
1350
- t("span", Ro, p(b.value.gap), 1)
1353
+ b.value.gap !== void 0 ? (a(), r("span", Ro, [
1354
+ s[13] || (s[13] = T(" Gap: ", -1)),
1355
+ t("span", No, p(b.value.gap), 1)
1351
1356
  ])) : P("", !0),
1352
- b.value.flexDirection !== void 0 ? (s(), i("span", No, [
1353
- r[14] || (r[14] = T(" Flex: ", -1)),
1354
- t("span", Vo, p(b.value.flexDirection), 1)
1357
+ b.value.flexDirection !== void 0 ? (a(), r("span", Vo, [
1358
+ s[14] || (s[14] = T(" Flex: ", -1)),
1359
+ t("span", Uo, p(b.value.flexDirection), 1)
1355
1360
  ])) : P("", !0)
1356
1361
  ]),
1357
- a.value ? (s(), i("div", Uo, [
1358
- t("div", zo, [
1362
+ n.value ? (a(), r("div", zo, [
1363
+ t("div", qo, [
1359
1364
  t("form", {
1360
- onSubmit: r[4] || (r[4] = oe(() => {
1365
+ onSubmit: s[4] || (s[4] = oe(() => {
1361
1366
  }, ["prevent"])),
1362
1367
  class: "flex gap-5 w-full justify-center items-end flex-wrap"
1363
1368
  }, [
1364
- t("div", qo, [
1369
+ t("div", Lo, [
1365
1370
  t("label", {
1366
1371
  for: `colwidth-${e.rowIndex}-${e.columnIndex}`,
1367
1372
  class: "block text-sm font-medium text-slate-600 mb-1.5"
1368
- }, "Ancho:", 8, Lo),
1373
+ }, "Ancho:", 8, Go),
1369
1374
  R(t("select", {
1370
- "onUpdate:modelValue": r[0] || (r[0] = (l) => x.value = l),
1375
+ "onUpdate:modelValue": s[0] || (s[0] = (l) => h.value = l),
1371
1376
  id: `colwidth-${e.rowIndex}-${e.columnIndex}`,
1372
1377
  class: "block w-full border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-emerald-500/20 focus:border-emerald-400 bg-white hover:border-slate-300 transition-colors"
1373
1378
  }, [
1374
- r[15] || (r[15] = t("option", { value: "" }, "Selecciona...", -1)),
1375
- (s(!0), i(B, null, V(g.width, (l) => (s(), i("option", {
1379
+ s[15] || (s[15] = t("option", { value: "" }, "Selecciona...", -1)),
1380
+ (a(!0), r(B, null, V(g.width, (l) => (a(), r("option", {
1376
1381
  key: l.value,
1377
1382
  value: l.value
1378
- }, p(l.label), 9, Jo))), 128))
1379
- ], 8, Go), [
1380
- [J, x.value]
1383
+ }, p(l.label), 9, Ho))), 128))
1384
+ ], 8, Jo), [
1385
+ [J, h.value]
1381
1386
  ])
1382
1387
  ]),
1383
- t("div", Ho, [
1388
+ t("div", Wo, [
1384
1389
  t("label", {
1385
1390
  for: `colgap-${e.rowIndex}-${e.columnIndex}`,
1386
1391
  class: "block text-sm font-medium text-slate-600 mb-1.5"
1387
- }, "Gap:", 8, Wo),
1392
+ }, "Gap:", 8, Yo),
1388
1393
  R(t("select", {
1389
- "onUpdate:modelValue": r[1] || (r[1] = (l) => f.value = l),
1394
+ "onUpdate:modelValue": s[1] || (s[1] = (l) => f.value = l),
1390
1395
  id: `colgap-${e.rowIndex}-${e.columnIndex}`,
1391
1396
  class: "block w-full border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-emerald-500/20 focus:border-emerald-400 bg-white hover:border-slate-300 transition-colors"
1392
1397
  }, [
1393
- r[16] || (r[16] = t("option", { value: "" }, "Selecciona...", -1)),
1394
- (s(!0), i(B, null, V(g.gap, (l) => (s(), i("option", {
1398
+ s[16] || (s[16] = t("option", { value: "" }, "Selecciona...", -1)),
1399
+ (a(!0), r(B, null, V(g.gap, (l) => (a(), r("option", {
1395
1400
  key: l.value,
1396
1401
  value: l.value
1397
- }, p(l.label), 9, Ko))), 128))
1398
- ], 8, Yo), [
1402
+ }, p(l.label), 9, Qo))), 128))
1403
+ ], 8, Ko), [
1399
1404
  [J, f.value]
1400
1405
  ])
1401
1406
  ]),
1402
- t("div", Qo, [
1407
+ t("div", Xo, [
1403
1408
  t("label", {
1404
1409
  for: `flexdir-${e.rowIndex}-${e.columnIndex}`,
1405
1410
  class: "block text-sm font-medium text-slate-600 mb-1.5"
1406
- }, "Dirección:", 8, Xo),
1411
+ }, "Dirección:", 8, Zo),
1407
1412
  R(t("select", {
1408
- "onUpdate:modelValue": r[2] || (r[2] = (l) => u.value = l),
1413
+ "onUpdate:modelValue": s[2] || (s[2] = (l) => c.value = l),
1409
1414
  id: `flexdir-${e.rowIndex}-${e.columnIndex}`,
1410
1415
  class: "block w-full border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-emerald-500/20 focus:border-emerald-400 bg-white hover:border-slate-300 transition-colors"
1411
1416
  }, [
1412
- r[17] || (r[17] = t("option", { value: "" }, "Selecciona...", -1)),
1413
- (s(!0), i(B, null, V(g.flexDirection, (l) => (s(), i("option", {
1417
+ s[17] || (s[17] = t("option", { value: "" }, "Selecciona...", -1)),
1418
+ (a(!0), r(B, null, V(g.flexDirection, (l) => (a(), r("option", {
1414
1419
  key: l.value,
1415
1420
  value: l.value
1416
- }, p(l.label), 9, _o))), 128))
1417
- ], 8, Zo), [
1418
- [J, u.value]
1421
+ }, p(l.label), 9, el))), 128))
1422
+ ], 8, _o), [
1423
+ [J, c.value]
1419
1424
  ])
1420
1425
  ]),
1421
1426
  t("button", {
1422
1427
  type: "submit",
1423
1428
  class: "bg-gradient-to-r from-emerald-500 to-teal-500 hover:from-emerald-600 hover:to-teal-600 text-white px-5 py-2 rounded-lg font-medium shadow-sm hover:shadow-md transition-all duration-200 cursor-pointer",
1424
- onClick: r[3] || (r[3] = (l) => {
1425
- C(e.rowIndex, e.columnIndex), a.value = !1;
1429
+ onClick: s[3] || (s[3] = (l) => {
1430
+ $(e.rowIndex, e.columnIndex), n.value = !1;
1426
1431
  })
1427
1432
  }, " Guardar ")
1428
1433
  ], 32)
1429
1434
  ])
1430
1435
  ])) : P("", !0),
1431
- t("div", el, [
1436
+ t("div", tl, [
1432
1437
  t("div", {
1433
- class: L(["flex flex-row", { "justify-between": e.section && e.section !== "Sidebar", "justify-center": e.section === "Sidebar" }])
1438
+ class: G(["flex flex-row", { "justify-between": e.section && e.section !== "Sidebar", "justify-center": e.section === "Sidebar" }])
1434
1439
  }, [
1435
- e.section && e.section !== "Sidebar" ? (s(), i("button", {
1440
+ e.section && e.section !== "Sidebar" ? (a(), r("button", {
1436
1441
  key: 0,
1437
1442
  title: "Añadir columna a la izquierda",
1438
- onClick: r[5] || (r[5] = (l) => {
1439
- var n;
1440
- return (n = e.addCol) == null ? void 0 : n.call(e, e.rowIndex, e.columnIndex, e.section, "left");
1443
+ onClick: s[5] || (s[5] = (l) => {
1444
+ var i;
1445
+ return (i = e.addCol) == null ? void 0 : i.call(e, e.rowIndex, e.columnIndex, e.section, "left");
1441
1446
  }),
1442
1447
  class: "ms-2 bg-white px-3 py-1 cursor-pointer rounded-t-lg border border-b-0 border-slate-200 hover:bg-emerald-500 hover:border-emerald-500 hover:text-white text-slate-600 transition-all duration-200 shadow-sm hover:shadow-md font-medium"
1443
1448
  }, "+")) : P("", !0),
1444
- t("div", tl, [
1449
+ t("div", ol, [
1445
1450
  t("button", {
1446
1451
  title: "Configurar columna",
1447
- onClick: r[6] || (r[6] = (l) => a.value = !a.value),
1448
- class: L(["px-2.5 py-1 rounded-lg cursor-pointer transition-all duration-200", a.value ? "bg-amber-100 text-amber-700 shadow-sm" : "bg-slate-100 text-slate-600 hover:bg-amber-500 hover:text-white"])
1452
+ onClick: s[6] || (s[6] = (l) => n.value = !n.value),
1453
+ class: G(["px-2.5 py-1 rounded-lg cursor-pointer transition-all duration-200", n.value ? "bg-amber-100 text-amber-700 shadow-sm" : "bg-slate-100 text-slate-600 hover:bg-amber-500 hover:text-white"])
1449
1454
  }, "⚙️", 2),
1450
- t("div", ol, [
1451
- e.section && e.section !== "Sidebar" ? (s(), i("span", {
1455
+ t("div", ll, [
1456
+ e.section && e.section !== "Sidebar" ? (a(), r("span", {
1452
1457
  key: 0,
1453
1458
  title: "Mover columna a la izquierda",
1454
- onClick: r[7] || (r[7] = (l) => {
1455
- var n;
1456
- return (n = e.moveCol) == null ? void 0 : n.call(e, e.rowIndex, e.columnIndex, e.section, "left");
1459
+ onClick: s[7] || (s[7] = (l) => {
1460
+ var i;
1461
+ return (i = e.moveCol) == null ? void 0 : i.call(e, e.rowIndex, e.columnIndex, e.section, "left");
1457
1462
  }),
1458
1463
  class: "bg-slate-100 px-2.5 py-1 cursor-pointer rounded-lg transition-all duration-200 text-slate-400 hover:bg-blue-500 hover:text-white"
1459
1464
  }, "◁")) : P("", !0),
1460
- e.fullwidthMode ? (s(), i("span", {
1465
+ e.fullwidthMode ? (a(), r("span", {
1461
1466
  key: 1,
1462
1467
  title: "Añadir componente",
1463
- onClick: r[8] || (r[8] = (l) => {
1464
- var n;
1465
- return (n = e.addComponentFunction) == null ? void 0 : n.call(e, e.rowIndex, e.columnIndex, e.section || "");
1468
+ onClick: s[8] || (s[8] = (l) => {
1469
+ var i;
1470
+ return (i = e.addComponentFunction) == null ? void 0 : i.call(e, e.rowIndex, e.columnIndex, e.section || "");
1466
1471
  }),
1467
1472
  class: "bg-slate-100 px-2.5 py-1 cursor-pointer rounded-lg transition-all duration-200 text-slate-400 hover:bg-violet-500 hover:text-white"
1468
1473
  }, " 📦 ")) : P("", !0),
1469
- e.section && e.section !== "Sidebar" ? (s(), i("span", {
1474
+ e.section && e.section !== "Sidebar" ? (a(), r("span", {
1470
1475
  key: 2,
1471
1476
  title: "Mover columna a la derecha",
1472
- onClick: r[9] || (r[9] = (l) => {
1473
- var n;
1474
- return (n = e.moveCol) == null ? void 0 : n.call(e, e.rowIndex, e.columnIndex, e.section, "right");
1477
+ onClick: s[9] || (s[9] = (l) => {
1478
+ var i;
1479
+ return (i = e.moveCol) == null ? void 0 : i.call(e, e.rowIndex, e.columnIndex, e.section, "right");
1475
1480
  }),
1476
1481
  class: "bg-slate-100 px-2.5 py-1 cursor-pointer rounded-lg transition-all duration-200 text-slate-400 hover:bg-blue-500 hover:text-white"
1477
1482
  }, "▷ ")) : P("", !0)
1478
1483
  ]),
1479
1484
  t("button", {
1480
1485
  title: "Eliminar columna",
1481
- onClick: r[10] || (r[10] = (l) => {
1482
- var n;
1483
- return (n = e.removeCol) == null ? void 0 : n.call(e, e.rowIndex, e.columnIndex, e.section || "");
1486
+ onClick: s[10] || (s[10] = (l) => {
1487
+ var i;
1488
+ return (i = e.removeCol) == null ? void 0 : i.call(e, e.rowIndex, e.columnIndex, e.section || "");
1484
1489
  }),
1485
1490
  class: "bg-slate-100 px-2.5 py-1 rounded-lg cursor-pointer transition-all duration-200 text-slate-600 hover:bg-red-500 hover:text-white"
1486
1491
  }, "🗑️")
1487
1492
  ]),
1488
- e.section && e.section !== "Sidebar" ? (s(), i("button", {
1493
+ e.section && e.section !== "Sidebar" ? (a(), r("button", {
1489
1494
  key: 1,
1490
1495
  title: "Añadir columna a la derecha",
1491
- onClick: r[11] || (r[11] = (l) => {
1492
- var n;
1493
- return (n = e.addCol) == null ? void 0 : n.call(e, e.rowIndex, e.columnIndex, e.section, "right");
1496
+ onClick: s[11] || (s[11] = (l) => {
1497
+ var i;
1498
+ return (i = e.addCol) == null ? void 0 : i.call(e, e.rowIndex, e.columnIndex, e.section, "right");
1494
1499
  }),
1495
1500
  class: "me-2 bg-white px-3 py-1 cursor-pointer rounded-t-lg border border-b-0 border-slate-200 hover:bg-emerald-500 hover:border-emerald-500 hover:text-white text-slate-600 transition-all duration-200 shadow-sm hover:shadow-md font-medium"
1496
1501
  }, "+")) : P("", !0)
@@ -1498,19 +1503,19 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
1498
1503
  ])
1499
1504
  ], 64));
1500
1505
  }
1501
- }), nl = { class: "absolute -top-1 px-2 gap-4 w-full justify-between hidden css-pb-row-config" }, al = { class: "flex gap-1.5" }, rl = { class: "flex gap-4 items-center" }, sl = { class: "inline-block" }, il = {
1506
+ }), al = { class: "absolute -top-1 px-2 gap-4 w-full justify-between hidden css-pb-row-config" }, rl = { class: "flex gap-1.5" }, sl = { class: "flex gap-4 items-center" }, il = { class: "inline-block" }, dl = {
1502
1507
  key: 0,
1503
1508
  class: "text-xs font-medium text-slate-400 bg-slate-50 px-2 py-1 rounded-full"
1504
- }, dl = { class: "text-slate-600" }, ul = {
1509
+ }, ul = { class: "text-slate-600" }, cl = {
1505
1510
  key: 1,
1506
1511
  class: "text-xs font-medium text-slate-400 bg-slate-50 px-2 py-1 rounded-full"
1507
- }, cl = { class: "text-slate-600" }, ml = {
1512
+ }, ml = { class: "text-slate-600" }, bl = {
1508
1513
  key: 2,
1509
1514
  class: "text-xs font-medium text-slate-400 bg-slate-50 px-2 py-1 rounded-full"
1510
- }, bl = { class: "text-slate-600" }, gl = { class: "flex gap-1.5" }, fl = {
1515
+ }, gl = { class: "text-slate-600" }, fl = { class: "flex gap-1.5" }, pl = {
1511
1516
  key: 0,
1512
1517
  class: "z-1"
1513
- }, pl = { class: "p-5 bg-white rounded-xl shadow-lg border border-slate-100 w-full mt-8" }, vl = { class: "flex flex-col" }, xl = ["for"], hl = ["id"], wl = ["value"], yl = { class: "flex flex-col" }, Cl = ["for"], $l = ["id"], kl = ["value"], Sl = { class: "flex flex-col" }, Pl = ["for"], Fl = ["id"], jl = ["value"], Il = /* @__PURE__ */ H({
1518
+ }, vl = { class: "p-5 bg-white rounded-xl shadow-lg border border-slate-100 w-full mt-8" }, xl = { class: "flex flex-col" }, hl = ["for"], wl = ["id"], yl = ["value"], Cl = { class: "flex flex-col" }, $l = ["for"], kl = ["id"], Sl = ["value"], Pl = { class: "flex flex-col" }, Fl = ["for"], jl = ["id"], Ml = ["value"], Il = /* @__PURE__ */ H({
1514
1519
  __name: "RowConfig",
1515
1520
  props: {
1516
1521
  rowIndex: {
@@ -1551,24 +1556,24 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
1551
1556
  { label: "3/5", value: "3/5" },
1552
1557
  { label: "4/5", value: "4/5" }
1553
1558
  ]
1554
- }, x = S(""), f = S(""), u = S(""), a = S(!1), b = S(!1), C = K(() => {
1555
- var l, n;
1556
- const r = (l = o.globalPageConfiguration) == null ? void 0 : l.find(
1559
+ }, h = S(""), f = S(""), c = S(""), n = S(!1), b = S(!1), $ = K(() => {
1560
+ var l, i;
1561
+ const s = (l = o.globalPageConfiguration) == null ? void 0 : l.find(
1557
1562
  (m) => m.section === o.section
1558
1563
  );
1559
- return (n = r == null ? void 0 : r.rows) != null && n[o.rowIndex] ? r.rows[o.rowIndex].config || {} : {};
1560
- }), I = (r) => {
1564
+ return (i = s == null ? void 0 : s.rows) != null && i[o.rowIndex] ? s.rows[o.rowIndex].config || {} : {};
1565
+ }), M = (s) => {
1561
1566
  var k;
1562
- const l = x.value || g.padding[0].value, n = f.value || g.gap[0].value, m = u.value || g.width[0].value;
1563
- (k = o.updateRowConfig) == null || k.call(o, r, o.section || "", l, n, m), a.value = !1;
1567
+ const l = h.value || g.padding[0].value, i = f.value || g.gap[0].value, m = c.value || g.width[0].value;
1568
+ (k = o.updateRowConfig) == null || k.call(o, s, o.section || "", l, i, m), n.value = !1;
1564
1569
  };
1565
- return (r, l) => (s(), i(B, null, [
1566
- t("div", nl, [
1570
+ return (s, l) => (a(), r(B, null, [
1571
+ t("div", al, [
1567
1572
  t("div", null, [
1568
- t("div", al, [
1573
+ t("div", rl, [
1569
1574
  t("button", {
1570
1575
  title: "Agregar fila",
1571
- onClick: l[0] || (l[0] = (n) => {
1576
+ onClick: l[0] || (l[0] = (i) => {
1572
1577
  var m;
1573
1578
  (m = e.addRow) == null || m.call(e, e.rowIndex, e.section || ""), b.value = !1;
1574
1579
  }),
@@ -1576,7 +1581,7 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
1576
1581
  }, "+"),
1577
1582
  t("button", {
1578
1583
  title: "Mover fila hacia arriba",
1579
- onClick: l[1] || (l[1] = (n) => {
1584
+ onClick: l[1] || (l[1] = (i) => {
1580
1585
  var m;
1581
1586
  (m = e.moveRow) == null || m.call(e, e.rowIndex, e.section || "", "up"), b.value = !1;
1582
1587
  }),
@@ -1584,7 +1589,7 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
1584
1589
  }, "△"),
1585
1590
  t("button", {
1586
1591
  title: "Mover fila hacia abajo",
1587
- onClick: l[2] || (l[2] = (n) => {
1592
+ onClick: l[2] || (l[2] = (i) => {
1588
1593
  var m;
1589
1594
  (m = e.moveRow) == null || m.call(e, e.rowIndex, e.section || "", "down"), b.value = !1;
1590
1595
  }),
@@ -1592,32 +1597,32 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
1592
1597
  }, "▽")
1593
1598
  ])
1594
1599
  ]),
1595
- t("div", rl, [
1596
- t("div", sl, [
1600
+ t("div", sl, [
1601
+ t("div", il, [
1597
1602
  t("button", {
1598
1603
  title: "Configurar la fila",
1599
- onClick: l[3] || (l[3] = (n) => a.value = !a.value),
1600
- class: L(["cursor-pointer rounded-b-lg border border-t-0 px-3 py-1 transition-all duration-200 shadow-sm hover:shadow-md", a.value ? "bg-amber-100 border-amber-300 text-amber-700" : "bg-white border-slate-200 text-slate-600 hover:bg-amber-500 hover:border-amber-500 hover:text-white"])
1604
+ onClick: l[3] || (l[3] = (i) => n.value = !n.value),
1605
+ class: G(["cursor-pointer rounded-b-lg border border-t-0 px-3 py-1 transition-all duration-200 shadow-sm hover:shadow-md", n.value ? "bg-amber-100 border-amber-300 text-amber-700" : "bg-white border-slate-200 text-slate-600 hover:bg-amber-500 hover:border-amber-500 hover:text-white"])
1601
1606
  }, "⚙️", 2)
1602
1607
  ]),
1603
- C.value.padding !== void 0 ? (s(), i("span", il, [
1608
+ $.value.padding !== void 0 ? (a(), r("span", dl, [
1604
1609
  l[10] || (l[10] = T(" Padding: ", -1)),
1605
- t("span", dl, p(C.value.padding), 1)
1610
+ t("span", ul, p($.value.padding), 1)
1606
1611
  ])) : P("", !0),
1607
- C.value.gap !== void 0 ? (s(), i("span", ul, [
1612
+ $.value.gap !== void 0 ? (a(), r("span", cl, [
1608
1613
  l[11] || (l[11] = T(" Gap: ", -1)),
1609
- t("span", cl, p(C.value.gap), 1)
1614
+ t("span", ml, p($.value.gap), 1)
1610
1615
  ])) : P("", !0),
1611
- C.value.width !== void 0 ? (s(), i("span", ml, [
1616
+ $.value.width !== void 0 ? (a(), r("span", bl, [
1612
1617
  l[12] || (l[12] = T(" Ancho: ", -1)),
1613
- t("span", bl, p(C.value.width), 1)
1618
+ t("span", gl, p($.value.width), 1)
1614
1619
  ])) : P("", !0)
1615
1620
  ]),
1616
1621
  t("div", null, [
1617
- t("div", gl, [
1622
+ t("div", fl, [
1618
1623
  t("button", {
1619
1624
  title: "Eliminar fila",
1620
- onClick: l[4] || (l[4] = (n) => {
1625
+ onClick: l[4] || (l[4] = (i) => {
1621
1626
  var m;
1622
1627
  (m = e.removeRow) == null || m.call(e, e.rowIndex, e.section || ""), b.value = !1;
1623
1628
  }),
@@ -1626,75 +1631,75 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
1626
1631
  ])
1627
1632
  ])
1628
1633
  ]),
1629
- a.value ? (s(), i("div", fl, [
1630
- t("div", pl, [
1634
+ n.value ? (a(), r("div", pl, [
1635
+ t("div", vl, [
1631
1636
  t("form", {
1632
1637
  onSubmit: l[9] || (l[9] = oe(() => {
1633
1638
  }, ["prevent"])),
1634
1639
  class: "flex gap-6 w-full justify-center items-end flex-wrap"
1635
1640
  }, [
1636
- t("div", vl, [
1641
+ t("div", xl, [
1637
1642
  t("label", {
1638
1643
  for: `padding-${e.rowIndex}`,
1639
1644
  class: "block text-sm font-medium text-slate-600 mb-1.5"
1640
- }, "Padding:", 8, xl),
1645
+ }, "Padding:", 8, hl),
1641
1646
  R(t("select", {
1642
- "onUpdate:modelValue": l[5] || (l[5] = (n) => x.value = n),
1647
+ "onUpdate:modelValue": l[5] || (l[5] = (i) => h.value = i),
1643
1648
  id: `padding-${e.rowIndex}`,
1644
1649
  class: "block w-full border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-emerald-500/20 focus:border-emerald-400 bg-slate-50 hover:bg-white transition-colors"
1645
1650
  }, [
1646
1651
  l[13] || (l[13] = t("option", { value: "" }, "Selecciona...", -1)),
1647
- (s(!0), i(B, null, V(g.padding, (n) => (s(), i("option", {
1648
- key: n.value,
1649
- value: n.value
1650
- }, p(n.label), 9, wl))), 128))
1651
- ], 8, hl), [
1652
- [J, x.value]
1652
+ (a(!0), r(B, null, V(g.padding, (i) => (a(), r("option", {
1653
+ key: i.value,
1654
+ value: i.value
1655
+ }, p(i.label), 9, yl))), 128))
1656
+ ], 8, wl), [
1657
+ [J, h.value]
1653
1658
  ])
1654
1659
  ]),
1655
- t("div", yl, [
1660
+ t("div", Cl, [
1656
1661
  t("label", {
1657
1662
  for: `gap-${e.rowIndex}`,
1658
1663
  class: "block text-sm font-medium text-slate-600 mb-1.5"
1659
- }, "Gap:", 8, Cl),
1664
+ }, "Gap:", 8, $l),
1660
1665
  R(t("select", {
1661
- "onUpdate:modelValue": l[6] || (l[6] = (n) => f.value = n),
1666
+ "onUpdate:modelValue": l[6] || (l[6] = (i) => f.value = i),
1662
1667
  id: `gap-${e.rowIndex}`,
1663
1668
  class: "block w-full border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-emerald-500/20 focus:border-emerald-400 bg-slate-50 hover:bg-white transition-colors"
1664
1669
  }, [
1665
1670
  l[14] || (l[14] = t("option", { value: "" }, "Selecciona...", -1)),
1666
- (s(!0), i(B, null, V(g.gap, (n) => (s(), i("option", {
1667
- key: n.value,
1668
- value: n.value
1669
- }, p(n.label), 9, kl))), 128))
1670
- ], 8, $l), [
1671
+ (a(!0), r(B, null, V(g.gap, (i) => (a(), r("option", {
1672
+ key: i.value,
1673
+ value: i.value
1674
+ }, p(i.label), 9, Sl))), 128))
1675
+ ], 8, kl), [
1671
1676
  [J, f.value]
1672
1677
  ])
1673
1678
  ]),
1674
- t("div", Sl, [
1679
+ t("div", Pl, [
1675
1680
  t("label", {
1676
1681
  for: `width-${e.rowIndex}`,
1677
1682
  class: "block text-sm font-medium text-slate-600 mb-1.5"
1678
- }, "Ancho:", 8, Pl),
1683
+ }, "Ancho:", 8, Fl),
1679
1684
  R(t("select", {
1680
- "onUpdate:modelValue": l[7] || (l[7] = (n) => u.value = n),
1685
+ "onUpdate:modelValue": l[7] || (l[7] = (i) => c.value = i),
1681
1686
  id: `width-${e.rowIndex}`,
1682
1687
  class: "block w-full border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-emerald-500/20 focus:border-emerald-400 bg-slate-50 hover:bg-white transition-colors"
1683
1688
  }, [
1684
1689
  l[15] || (l[15] = t("option", { value: "" }, "Selecciona...", -1)),
1685
- (s(!0), i(B, null, V(g.width, (n) => (s(), i("option", {
1686
- key: n.value,
1687
- value: n.value
1688
- }, p(n.label), 9, jl))), 128))
1689
- ], 8, Fl), [
1690
- [J, u.value]
1690
+ (a(!0), r(B, null, V(g.width, (i) => (a(), r("option", {
1691
+ key: i.value,
1692
+ value: i.value
1693
+ }, p(i.label), 9, Ml))), 128))
1694
+ ], 8, jl), [
1695
+ [J, c.value]
1691
1696
  ])
1692
1697
  ]),
1693
1698
  t("button", {
1694
1699
  type: "submit",
1695
1700
  class: "bg-gradient-to-r from-emerald-500 to-teal-500 hover:from-emerald-600 hover:to-teal-600 text-white px-5 py-2 rounded-lg font-medium shadow-sm hover:shadow-md transition-all duration-200 cursor-pointer",
1696
- onClick: l[8] || (l[8] = (n) => {
1697
- I(e.rowIndex), b.value = !1;
1701
+ onClick: l[8] || (l[8] = (i) => {
1702
+ M(e.rowIndex), b.value = !1;
1698
1703
  })
1699
1704
  }, " Guardar ")
1700
1705
  ], 32)
@@ -1702,7 +1707,7 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
1702
1707
  ])) : P("", !0)
1703
1708
  ], 64));
1704
1709
  }
1705
- }), Ml = ["id"], Al = { class: "flex flex-row w-full gap-3 mt-6" }, Bl = ["id"], El = /* @__PURE__ */ H({
1710
+ }), Al = ["id"], Bl = { class: "flex flex-row w-full gap-3 mt-6" }, El = ["id"], Tl = /* @__PURE__ */ H({
1706
1711
  __name: "BodySection",
1707
1712
  props: {
1708
1713
  isComponentMode: Boolean,
@@ -1726,19 +1731,19 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
1726
1731
  }
1727
1732
  },
1728
1733
  setup(e) {
1729
- const o = e, g = S(!1), x = K(() => {
1730
- var u;
1731
- const f = (u = o.globalPageConfiguration) == null ? void 0 : u.find(
1732
- (a) => a.section === o.sectionSelected
1734
+ const o = e, g = S(!1), h = K(() => {
1735
+ var c;
1736
+ const f = (c = o.globalPageConfiguration) == null ? void 0 : c.find(
1737
+ (n) => n.section === o.sectionSelected
1733
1738
  );
1734
1739
  return (f == null ? void 0 : f.rows) || [];
1735
1740
  });
1736
- return (f, u) => (s(!0), i(B, null, V(x.value, (a, b) => (s(), i("div", {
1741
+ return (f, c) => (a(!0), r(B, null, V(h.value, (n, b) => (a(), r("div", {
1737
1742
  key: "row-" + b,
1738
1743
  id: "row-" + e.sectionSelected + "-" + b,
1739
1744
  class: "flex flex-col gap-3 w-full p-5 bg-white border border-slate-200 rounded-2xl js-row relative items-center hover:border-slate-300 hover:shadow-lg transition-all duration-300 css-pb-row group/row"
1740
1745
  }, [
1741
- q(Il, {
1746
+ L(Il, {
1742
1747
  moveRow: e.moveRow,
1743
1748
  addRow: e.addRow,
1744
1749
  removeRow: e.removeRow,
@@ -1747,28 +1752,28 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
1747
1752
  rowIndex: b,
1748
1753
  section: e.sectionSelected
1749
1754
  }, null, 8, ["moveRow", "addRow", "removeRow", "globalPageConfiguration", "updateRowConfig", "rowIndex", "section"]),
1750
- t("div", Al, [
1751
- (s(!0), i(B, null, V(a.columns, (C, I) => (s(), i("div", {
1752
- class: L([
1755
+ t("div", Bl, [
1756
+ (a(!0), r(B, null, V(n.columns, ($, M) => (a(), r("div", {
1757
+ class: G([
1753
1758
  "hover:shadow-md overflow-hidden dragging-zone border relative border-slate-200 shadow-sm w-full p-5 pt-10 min-h-[200px] rounded-xl flex flex-col gap-3 items-center before:content-['Columna'] before:absolute before:text-slate-300 before:text-7xl before:font-bold before:bottom-4 before:left-2 before:-rotate-12 before:opacity-30 before:duration-300 before:transition-opacity group hover:before:opacity-50 transition-all duration-300",
1754
1759
  g.value ? "bg-gradient-to-b from-emerald-50 to-emerald-100 border-emerald-300 shadow-emerald-100" : "bg-gradient-to-b from-slate-50 to-slate-100"
1755
1760
  ]),
1756
- key: "column-" + I,
1757
- id: "col-" + e.sectionSelected + "-" + b + "-" + I
1761
+ key: "column-" + M,
1762
+ id: "col-" + e.sectionSelected + "-" + b + "-" + M
1758
1763
  }, [
1759
- q(G(ue), {
1764
+ L(q(ue), {
1760
1765
  class: "h-full w-full mb-4",
1761
- list: C.components,
1766
+ list: $.components,
1762
1767
  group: { name: "draggingGroup", pull: !0, put: !0 },
1763
1768
  "item-key": "name",
1764
1769
  handle: ".handle",
1765
- onStart: u[0] || (u[0] = (r) => g.value = !0),
1766
- onEnd: u[1] || (u[1] = (r) => g.value = !1)
1770
+ onStart: c[0] || (c[0] = (s) => g.value = !0),
1771
+ onEnd: c[1] || (c[1] = (s) => g.value = !1)
1767
1772
  }, {
1768
- item: de(({ element: r }) => [
1769
- q(ce, {
1773
+ item: de(({ element: s }) => [
1774
+ L(ce, {
1770
1775
  renderApiDomain: e.renderApiDomain,
1771
- object: r,
1776
+ object: s,
1772
1777
  "is-component-mode": e.isComponentMode,
1773
1778
  removeComponent: e.removeComponent,
1774
1779
  section: e.sectionSelected,
@@ -1777,7 +1782,7 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
1777
1782
  ]),
1778
1783
  _: 1
1779
1784
  }, 8, ["list"]),
1780
- q(ll, {
1785
+ L(nl, {
1781
1786
  section: e.sectionSelected,
1782
1787
  globalPageConfiguration: e.globalPageConfiguration,
1783
1788
  updateColConfig: e.updateColConfig,
@@ -1787,13 +1792,13 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
1787
1792
  removeCol: e.removeCol,
1788
1793
  moveCol: e.moveCol,
1789
1794
  rowIndex: b,
1790
- columnIndex: I
1795
+ columnIndex: M
1791
1796
  }, null, 8, ["section", "globalPageConfiguration", "updateColConfig", "addComponentFunction", "fullwidthMode", "addCol", "removeCol", "moveCol", "rowIndex", "columnIndex"])
1792
- ], 10, Bl))), 128))
1797
+ ], 10, El))), 128))
1793
1798
  ])
1794
- ], 8, Ml))), 128));
1799
+ ], 8, Al))), 128));
1795
1800
  }
1796
- }), Tl = { class: "flex justify-between items-center mb-4" }, Dl = { class: "text-xs" }, Ol = { class: "flex flex-wrap gap-2 mb-4 bg-white border border-slate-200 p-4 rounded-xl shadow-sm" }, Rl = ["value", "checked"], Nl = { class: "my-3" }, Vl = { class: "relative" }, Ul = { class: "component-library dragging-zone w-full p-5 min-h-[200px] border border-slate-200 bg-white rounded-xl flex flex-col gap-4 items-center shadow-sm" }, zl = {
1801
+ }), Dl = { class: "flex justify-between items-center mb-4" }, Ol = { class: "text-xs" }, Rl = { class: "flex flex-wrap gap-2 mb-4 bg-white border border-slate-200 p-4 rounded-xl shadow-sm" }, Nl = ["value", "checked"], Vl = { class: "my-3" }, Ul = { class: "relative" }, zl = { class: "component-library dragging-zone w-full p-5 min-h-[200px] border border-slate-200 bg-white rounded-xl flex flex-col gap-4 items-center shadow-sm" }, ql = {
1797
1802
  key: 0,
1798
1803
  class: "text-center py-8 text-slate-400"
1799
1804
  }, se = /* @__PURE__ */ H({
@@ -1823,25 +1828,25 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
1823
1828
  "Formulario",
1824
1829
  "Título",
1825
1830
  "SEO"
1826
- ], g = S(!0), x = S([]), f = S(""), u = S(pe()), a = K(() => {
1827
- const I = f.value.toLowerCase(), r = Object.values(u.value), l = (n) => (n.name.toLowerCase() + n.description.toLowerCase() + n.tags.join(" ").toLowerCase()).includes(I);
1828
- return x.value.length > 0 ? r.filter(
1829
- (n) => x.value.includes(n.category) && l(n)
1830
- ) : r.filter(l);
1831
- }), b = (I) => {
1832
- f.value = I.target.value;
1833
- }, C = (I) => {
1834
- const r = I.target, l = r.value;
1835
- r.checked ? x.value.includes(l) || x.value.push(l) : x.value = x.value.filter((n) => n !== l);
1831
+ ], g = S(!0), h = S([]), f = S(""), c = S(ve()), n = K(() => {
1832
+ const M = f.value.toLowerCase(), s = Object.values(c.value), l = (i) => (i.name.toLowerCase() + i.description.toLowerCase() + i.tags.join(" ").toLowerCase()).includes(M);
1833
+ return h.value.length > 0 ? s.filter(
1834
+ (i) => h.value.includes(i.category) && l(i)
1835
+ ) : s.filter(l);
1836
+ }), b = (M) => {
1837
+ f.value = M.target.value;
1838
+ }, $ = (M) => {
1839
+ const s = M.target, l = s.value;
1840
+ s.checked ? h.value.includes(l) || h.value.push(l) : h.value = h.value.filter((i) => i !== l);
1836
1841
  };
1837
- return (I, r) => (s(), i(B, null, [
1838
- r[6] || (r[6] = t("h1", { class: "text-center text-2xl font-semibold mb-4 text-slate-700 tracking-tight" }, "Componentes", -1)),
1839
- t("div", Tl, [
1842
+ return (M, s) => (a(), r(B, null, [
1843
+ s[6] || (s[6] = t("h1", { class: "text-center text-2xl font-semibold mb-4 text-slate-700 tracking-tight" }, "Componentes", -1)),
1844
+ t("div", Dl, [
1840
1845
  t("button", {
1841
- onClick: r[0] || (r[0] = (l) => g.value = !g.value),
1846
+ onClick: s[0] || (s[0] = (l) => g.value = !g.value),
1842
1847
  class: "mb-3 px-4 py-2 bg-white rounded-lg border border-slate-200 hover:border-slate-300 hover:shadow-sm transition-all duration-200 cursor-pointer text-slate-600 font-medium flex items-center gap-2"
1843
1848
  }, [
1844
- r[2] || (r[2] = t("svg", {
1849
+ s[2] || (s[2] = t("svg", {
1845
1850
  class: "w-4 h-4",
1846
1851
  fill: "none",
1847
1852
  stroke: "currentColor",
@@ -1854,37 +1859,37 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
1854
1859
  d: "M3 4a1 1 0 011-1h16a1 1 0 011 1v2.586a1 1 0 01-.293.707l-6.414 6.414a1 1 0 00-.293.707V17l-4 4v-6.586a1 1 0 00-.293-.707L3.293 7.293A1 1 0 013 6.586V4z"
1855
1860
  })
1856
1861
  ], -1)),
1857
- r[3] || (r[3] = t("span", null, "Filtros", -1)),
1858
- t("span", Dl, p(g.value ? "▲" : "▼"), 1)
1862
+ s[3] || (s[3] = t("span", null, "Filtros", -1)),
1863
+ t("span", Ol, p(g.value ? "▲" : "▼"), 1)
1859
1864
  ]),
1860
1865
  t("button", {
1861
- class: L([[e.isComponentMode ? "bg-gradient-to-r from-slate-600 to-slate-700 border-slate-700 text-white shadow-md" : "bg-white hover:bg-slate-100"], "cursor-pointer border border-slate-200 rounded-lg py-1.5 px-3 text-sm font-medium transition-all duration-200"]),
1862
- onClick: r[1] || (r[1] = (l) => {
1863
- var n;
1864
- return (n = e.toggleComponentModeFunction) == null ? void 0 : n.call(e);
1866
+ class: G([[e.isComponentMode ? "bg-gradient-to-r from-slate-600 to-slate-700 border-slate-700 text-white shadow-md" : "bg-white hover:bg-slate-100"], "cursor-pointer border border-slate-200 rounded-lg py-1.5 px-3 text-sm font-medium transition-all duration-200"]),
1867
+ onClick: s[1] || (s[1] = (l) => {
1868
+ var i;
1869
+ return (i = e.toggleComponentModeFunction) == null ? void 0 : i.call(e);
1865
1870
  })
1866
1871
  }, p(e.isComponentMode ? "⚒️ Modo Configuración" : "👁️ Modo Visual"), 3)
1867
1872
  ]),
1868
- R(t("div", Ol, [
1869
- (s(), i(B, null, V(o, (l) => t("label", {
1873
+ R(t("div", Rl, [
1874
+ (a(), r(B, null, V(o, (l) => t("label", {
1870
1875
  key: l,
1871
- class: L(["flex items-center gap-2 text-xs bg-slate-50 hover:bg-slate-100 px-3 py-2 rounded-lg cursor-pointer transition-colors duration-200 border border-transparent hover:border-slate-200", { "bg-emerald-50 border-emerald-200 text-emerald-700": x.value.includes(l) }])
1876
+ class: G(["flex items-center gap-2 text-xs bg-slate-50 hover:bg-slate-100 px-3 py-2 rounded-lg cursor-pointer transition-colors duration-200 border border-transparent hover:border-slate-200", { "bg-emerald-50 border-emerald-200 text-emerald-700": h.value.includes(l) }])
1872
1877
  }, [
1873
1878
  t("input", {
1874
1879
  type: "checkbox",
1875
1880
  value: l,
1876
- checked: x.value.includes(l),
1877
- onInput: C,
1881
+ checked: h.value.includes(l),
1882
+ onInput: $,
1878
1883
  class: "w-4 h-4 rounded border-slate-300 text-emerald-500 focus:ring-emerald-500"
1879
- }, null, 40, Rl),
1884
+ }, null, 40, Nl),
1880
1885
  T(" " + p(l), 1)
1881
1886
  ], 2)), 64))
1882
1887
  ], 512), [
1883
- [ge, g.value]
1888
+ [fe, g.value]
1884
1889
  ]),
1885
- t("div", Nl, [
1886
- t("div", Vl, [
1887
- r[4] || (r[4] = t("svg", {
1890
+ t("div", Vl, [
1891
+ t("div", Ul, [
1892
+ s[4] || (s[4] = t("svg", {
1888
1893
  class: "absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-slate-400",
1889
1894
  fill: "none",
1890
1895
  stroke: "currentColor",
@@ -1905,16 +1910,16 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
1905
1910
  }, null, 32)
1906
1911
  ])
1907
1912
  ]),
1908
- t("div", Ul, [
1909
- q(G(ue), {
1913
+ t("div", zl, [
1914
+ L(q(ue), {
1910
1915
  class: "w-full flex flex-col gap-4",
1911
- list: a.value,
1916
+ list: n.value,
1912
1917
  group: { name: "draggingGroup", pull: "clone", put: !1 },
1913
1918
  itemKey: "name",
1914
1919
  clone: (l) => JSON.parse(JSON.stringify(l))
1915
1920
  }, {
1916
1921
  item: de(({ element: l }) => [
1917
- q(ce, {
1922
+ L(ce, {
1918
1923
  renderApiDomain: e.renderApiDomain,
1919
1924
  object: l,
1920
1925
  "is-component-mode": e.isComponentMode,
@@ -1927,7 +1932,7 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
1927
1932
  ]),
1928
1933
  _: 1
1929
1934
  }, 8, ["list", "clone"]),
1930
- a.value.length === 0 ? (s(), i("div", zl, [...r[5] || (r[5] = [
1935
+ n.value.length === 0 ? (a(), r("div", ql, [...s[5] || (s[5] = [
1931
1936
  t("svg", {
1932
1937
  class: "w-12 h-12 mx-auto mb-3 opacity-50",
1933
1938
  fill: "none",
@@ -1947,17 +1952,18 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
1947
1952
  ])
1948
1953
  ], 64));
1949
1954
  }
1950
- }), ql = { class: "flex flex-col w-full transition-all duration-300 lf-page-builder bg-gradient-to-br from-slate-50 to-slate-100 min-h-screen" }, Ll = { class: "relative flex flex-row flex-wrap" }, Gl = { class: "w-full flex justify-end py-4 pe-4" }, Jl = { class: "w-3/4" }, Hl = {
1955
+ }), Ll = { class: "flex flex-col w-full transition-all duration-300 lf-page-builder bg-gradient-to-br from-slate-50 to-slate-100 min-h-screen" }, Gl = { class: "relative flex flex-row flex-wrap" }, Jl = { class: "w-full flex justify-end py-4 pe-4" }, Hl = { class: "w-3/4" }, Wl = {
1951
1956
  key: 1,
1952
1957
  class: "w-1/4 px-3 overflow-y-auto h-screen sticky top-0"
1953
- }, Xl = /* @__PURE__ */ H({
1958
+ }, Zl = /* @__PURE__ */ H({
1954
1959
  __name: "Pagebuilder",
1955
1960
  props: {
1956
1961
  isProduction: { type: Boolean },
1962
+ debugMode: { type: Boolean },
1957
1963
  inputId: {}
1958
1964
  },
1959
1965
  setup(e) {
1960
- const o = e, g = o.isProduction ?? !1, x = o.inputId ?? null, f = g ? "https://render-api.lefebvre.es" : "https://led-dev-astro-render-api-dev.eu.els.local", u = S(!0), a = S(void 0), b = S([]), C = S({ rowIndex: null, columnIndex: null, section: null }), I = S(!1), r = S(!1), l = S({
1966
+ const o = e, g = o.isProduction ?? !1, h = o.debugMode ?? !1, f = o.inputId ?? null, c = g ? "https://render-api.lefebvre.es" : "https://led-dev-astro-render-api-dev.eu.els.local", n = S(!0), b = S(void 0), $ = S([]), M = S({ rowIndex: null, columnIndex: null, section: null }), s = S(!1), l = S(!1), i = S({
1961
1967
  global: {
1962
1968
  sidebarEnabled: !1,
1963
1969
  renderAsBodyPart: !1,
@@ -1970,7 +1976,7 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
1970
1976
  description: "",
1971
1977
  robots: "index, follow"
1972
1978
  }
1973
- }), n = fe([
1979
+ }), m = pe([
1974
1980
  {
1975
1981
  section: "Header",
1976
1982
  config: { width: "full" },
@@ -1993,44 +1999,44 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
1993
1999
  }
1994
2000
  ]);
1995
2001
  le(() => {
1996
- m();
2002
+ k();
1997
2003
  });
1998
- const m = () => {
1999
- if (b.value = ["Header", "Footer", "Body", "Sidebar"], a.value = "Body", x) {
2000
- const y = document.getElementById(x);
2004
+ const k = () => {
2005
+ if ($.value = ["Header", "Footer", "Body", "Sidebar"], b.value = "Body", f) {
2006
+ const y = document.getElementById(f);
2001
2007
  if (y) {
2002
- const h = y.value;
2003
- if (h)
2008
+ const x = y.value;
2009
+ if (x)
2004
2010
  try {
2005
- const v = typeof h == "string" ? JSON.parse(h) : h;
2006
- (v && typeof v == "object" && !Array.isArray(v) ? Object.keys(v).length > 0 : Array.isArray(v) ? v.length > 0 : !1) && ae(h);
2011
+ const v = typeof x == "string" ? JSON.parse(x) : x;
2012
+ (v && typeof v == "object" && !Array.isArray(v) ? Object.keys(v).length > 0 : Array.isArray(v) ? v.length > 0 : !1) && ae(x);
2007
2013
  } catch (v) {
2008
2014
  console.error("Error parsing input value:", v);
2009
2015
  }
2010
2016
  }
2011
2017
  }
2012
- }, k = () => {
2013
- r.value = !r.value;
2014
- }, A = () => {
2015
- u.value = !u.value;
2016
- }, w = (y, h, v, F, M) => {
2018
+ }, I = () => {
2019
+ l.value = !l.value;
2020
+ }, w = () => {
2021
+ n.value = !n.value;
2022
+ }, d = (y, x, v, F, A) => {
2017
2023
  var O;
2018
- const E = n.find((U) => U.section === h);
2024
+ const E = m.find((U) => U.section === x);
2019
2025
  (O = E == null ? void 0 : E.rows) != null && O[y] && (E.rows[y].config = {
2020
2026
  padding: v,
2021
2027
  gap: F,
2022
- width: M
2028
+ width: A
2023
2029
  });
2024
- }, d = (y, h, v, F, M, E) => {
2030
+ }, u = (y, x, v, F, A, E) => {
2025
2031
  var U, z, W;
2026
- const O = n.find((Q) => Q.section === v);
2027
- (W = (z = (U = O == null ? void 0 : O.rows) == null ? void 0 : U[y]) == null ? void 0 : z.columns) != null && W[h] && (O.rows[y].columns[h].config = {
2032
+ const O = m.find((Q) => Q.section === v);
2033
+ (W = (z = (U = O == null ? void 0 : O.rows) == null ? void 0 : U[y]) == null ? void 0 : z.columns) != null && W[x] && (O.rows[y].columns[x].config = {
2028
2034
  width: F,
2029
- gap: M,
2035
+ gap: A,
2030
2036
  flexDirection: E
2031
2037
  });
2032
- }, c = async (y, h) => {
2033
- const v = n.find((F) => F.section === h);
2038
+ }, C = async (y, x) => {
2039
+ const v = m.find((F) => F.section === x);
2034
2040
  if (v) {
2035
2041
  const F = {
2036
2042
  config: {},
@@ -2040,139 +2046,140 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
2040
2046
  }
2041
2047
  await new Promise((F) => {
2042
2048
  setTimeout(() => {
2043
- const M = document.getElementById(`row-${h}-${(y ?? 0) + 1}`);
2044
- M ? (M.scrollIntoView({ behavior: "smooth", block: "center" }), M.classList.add("selected-delay"), setTimeout(() => {
2045
- M.classList.remove("selected-delay"), F();
2049
+ const A = document.getElementById(`row-${x}-${(y ?? 0) + 1}`);
2050
+ A ? (A.scrollIntoView({ behavior: "smooth", block: "center" }), A.classList.add("selected-delay"), setTimeout(() => {
2051
+ A.classList.remove("selected-delay"), F();
2046
2052
  }, 3e3)) : F();
2047
2053
  }, 0);
2048
2054
  });
2049
- }, $ = (y, h) => {
2050
- const v = n.find((F) => F.section === h);
2055
+ }, j = (y, x) => {
2056
+ const v = m.find((F) => F.section === x);
2051
2057
  !(v != null && v.rows) || v.rows.length <= 1 || v.rows.splice(y, 1);
2052
- }, j = (y, h, v = "down") => {
2058
+ }, D = (y, x, v = "down") => {
2053
2059
  var U;
2054
- const F = n.find((z) => z.section === h);
2060
+ const F = m.find((z) => z.section === x);
2055
2061
  if (!((U = F == null ? void 0 : F.rows) != null && U[y]) || v === "up" && y === 0 || v === "down" && y === F.rows.length - 1)
2056
2062
  return;
2057
- const M = F.rows, E = M.splice(y, 1)[0], O = v === "down" ? y + 1 : y - 1;
2058
- M.splice(O, 0, E);
2059
- }, D = async (y, h, v, F = "right") => {
2063
+ const A = F.rows, E = A.splice(y, 1)[0], O = v === "down" ? y + 1 : y - 1;
2064
+ A.splice(O, 0, E);
2065
+ }, N = async (y, x, v, F = "right") => {
2060
2066
  var O;
2061
- const M = F === "left" ? h : h + 1, E = n.find((U) => U.section === v);
2062
- (O = E == null ? void 0 : E.rows) != null && O[y] && E.rows[y].columns.splice(M, 0, {
2067
+ const A = F === "left" ? x : x + 1, E = m.find((U) => U.section === v);
2068
+ (O = E == null ? void 0 : E.rows) != null && O[y] && E.rows[y].columns.splice(A, 0, {
2063
2069
  config: {},
2064
2070
  components: []
2065
2071
  }), await new Promise((U) => {
2066
2072
  setTimeout(() => {
2067
- const z = document.getElementById(`col-${v}-${y}-${M}`);
2073
+ const z = document.getElementById(`col-${v}-${y}-${A}`);
2068
2074
  z ? (z.scrollIntoView({ behavior: "smooth", block: "center" }), z.classList.add("selected-delay"), setTimeout(() => {
2069
2075
  z.classList.remove("selected-delay"), U();
2070
2076
  }, 3e3)) : U();
2071
2077
  }, 0);
2072
2078
  });
2073
- }, N = (y, h, v) => {
2079
+ }, X = (y, x, v) => {
2074
2080
  var E, O;
2075
- const F = n.find((U) => U.section === v), M = (O = (E = F == null ? void 0 : F.rows) == null ? void 0 : E[y]) == null ? void 0 : O.columns;
2076
- !M || M.length <= 1 || M.splice(h, 1);
2077
- }, X = (y, h, v, F = "right") => {
2081
+ const F = m.find((U) => U.section === v), A = (O = (E = F == null ? void 0 : F.rows) == null ? void 0 : E[y]) == null ? void 0 : O.columns;
2082
+ !A || A.length <= 1 || A.splice(x, 1);
2083
+ }, Z = (y, x, v, F = "right") => {
2078
2084
  var z;
2079
- const M = n.find((W) => W.section === v);
2080
- if (!((z = M == null ? void 0 : M.rows) != null && z[y]) || F === "left" && h === 0 || F === "right" && h === M.rows[y].columns.length - 1)
2085
+ const A = m.find((W) => W.section === v);
2086
+ if (!((z = A == null ? void 0 : A.rows) != null && z[y]) || F === "left" && x === 0 || F === "right" && x === A.rows[y].columns.length - 1)
2081
2087
  return;
2082
- const E = M.rows[y].columns, O = E.splice(h, 1)[0], U = F === "right" ? h + 1 : h - 1;
2088
+ const E = A.rows[y].columns, O = E.splice(x, 1)[0], U = F === "right" ? x + 1 : x - 1;
2083
2089
  E.splice(U, 0, O);
2084
- }, Z = (y, h) => {
2090
+ }, _ = (y, x) => {
2085
2091
  var F;
2086
- const v = n.find((M) => M.section === h);
2087
- (F = v == null ? void 0 : v.rows) == null || F.forEach((M) => {
2088
- M.columns.forEach((E) => {
2092
+ const v = m.find((A) => A.section === x);
2093
+ (F = v == null ? void 0 : v.rows) == null || F.forEach((A) => {
2094
+ A.columns.forEach((E) => {
2089
2095
  const O = E.components.indexOf(y);
2090
2096
  O !== -1 && E.components.splice(O, 1);
2091
2097
  });
2092
2098
  });
2093
- }, _ = (y, h, v) => {
2094
- I.value = !0, C.value = { rowIndex: y, columnIndex: h, section: v };
2099
+ }, me = (y, x, v) => {
2100
+ s.value = !0, M.value = { rowIndex: y, columnIndex: x, section: v };
2095
2101
  }, ne = (y) => {
2096
- var M, E, O, U;
2097
- const { rowIndex: h, columnIndex: v, section: F } = C.value;
2098
- if (h !== null && v !== null) {
2099
- const z = JSON.parse(JSON.stringify(y)), W = n.find((me) => me.section === F), Q = (U = (O = (E = (M = W == null ? void 0 : W.rows) == null ? void 0 : M[h]) == null ? void 0 : E.columns) == null ? void 0 : O[v]) == null ? void 0 : U.components;
2102
+ var A, E, O, U;
2103
+ const { rowIndex: x, columnIndex: v, section: F } = M.value;
2104
+ if (x !== null && v !== null) {
2105
+ const z = JSON.parse(JSON.stringify(y)), W = m.find((be) => be.section === F), Q = (U = (O = (E = (A = W == null ? void 0 : W.rows) == null ? void 0 : A[x]) == null ? void 0 : E.columns) == null ? void 0 : O[v]) == null ? void 0 : U.components;
2100
2106
  Q == null || Q.push(z);
2101
2107
  }
2102
- I.value = !1;
2108
+ s.value = !1;
2103
2109
  }, ae = (y) => {
2104
- const h = typeof y == "string" ? JSON.parse(y) : y;
2105
- n.length = 0, n.push(...h.pageConfig || []), h.paramsConfig && (l.value = { ...l.value, ...h.paramsConfig });
2110
+ const x = typeof y == "string" ? JSON.parse(y) : y;
2111
+ m.length = 0, m.push(...x.pageConfig || []), x.paramsConfig && (i.value = { ...i.value, ...x.paramsConfig });
2106
2112
  };
2107
- return (y, h) => (s(), i("div", ql, [
2108
- q(lt, {
2109
- sectionSelected: a.value,
2110
- "onUpdate:sectionSelected": h[0] || (h[0] = (v) => a.value = v),
2111
- parametersPageConfiguration: l.value,
2112
- "onUpdate:parametersPageConfiguration": h[1] || (h[1] = (v) => l.value = v),
2113
- globalPageConfiguration: n,
2114
- availableSections: b.value,
2113
+ return (y, x) => (a(), r("div", Ll, [
2114
+ L(nt, {
2115
+ sectionSelected: b.value,
2116
+ "onUpdate:sectionSelected": x[0] || (x[0] = (v) => b.value = v),
2117
+ parametersPageConfiguration: i.value,
2118
+ "onUpdate:parametersPageConfiguration": x[1] || (x[1] = (v) => i.value = v),
2119
+ globalPageConfiguration: m,
2120
+ availableSections: $.value,
2115
2121
  importConfigurationFunction: ae,
2116
- isComponentMode: r.value,
2117
- toggleComponentModeFunction: k,
2118
- fullwidthMode: u.value,
2119
- toggleFullwidthMode: A,
2120
- renderApiDomain: G(f),
2121
- inputId: G(x)
2122
- }, null, 8, ["sectionSelected", "parametersPageConfiguration", "globalPageConfiguration", "availableSections", "isComponentMode", "fullwidthMode", "renderApiDomain", "inputId"]),
2123
- t("div", Ll, [
2124
- u.value ? (s(), i("div", {
2122
+ isComponentMode: l.value,
2123
+ toggleComponentModeFunction: I,
2124
+ fullwidthMode: n.value,
2125
+ toggleFullwidthMode: w,
2126
+ renderApiDomain: q(c),
2127
+ inputId: q(f),
2128
+ debugMode: q(h)
2129
+ }, null, 8, ["sectionSelected", "parametersPageConfiguration", "globalPageConfiguration", "availableSections", "isComponentMode", "fullwidthMode", "renderApiDomain", "inputId", "debugMode"]),
2130
+ t("div", Gl, [
2131
+ n.value ? (a(), r("div", {
2125
2132
  key: 0,
2126
- class: L(["w-full overflow-y-auto fixed top-0 left-0 h-full bg-gradient-to-br from-slate-100 via-white to-slate-50 z-9999 px-4 flex justify-start flex flex-col items-center backdrop-blur-sm", I.value ? "" : "hidden"])
2133
+ class: G(["w-full overflow-y-auto fixed top-0 left-0 h-full bg-gradient-to-br from-slate-100 via-white to-slate-50 z-9999 px-4 flex justify-start flex flex-col items-center backdrop-blur-sm", s.value ? "" : "hidden"])
2127
2134
  }, [
2128
- t("div", Gl, [
2135
+ t("div", Jl, [
2129
2136
  t("div", {
2130
2137
  class: "cursor-pointer w-10 h-10 flex items-center justify-center rounded-full bg-white shadow-md hover:shadow-lg hover:bg-red-50 text-slate-400 hover:text-red-500 transition-all duration-200 text-xl font-light",
2131
- onClick: h[2] || (h[2] = (v) => I.value = !1)
2138
+ onClick: x[2] || (x[2] = (v) => s.value = !1)
2132
2139
  }, "✕")
2133
2140
  ]),
2134
- t("div", Jl, [
2135
- q(se, {
2136
- renderApiDomain: G(f),
2137
- isComponentMode: r.value,
2138
- fullwidthMode: u.value,
2139
- columnToInsert: C.value,
2141
+ t("div", Hl, [
2142
+ L(se, {
2143
+ renderApiDomain: q(c),
2144
+ isComponentMode: l.value,
2145
+ fullwidthMode: n.value,
2146
+ columnToInsert: M.value,
2140
2147
  addComponentToColumn: ne,
2141
- toggleComponentModeFunction: k,
2142
- isProduction: G(g)
2148
+ toggleComponentModeFunction: I,
2149
+ isProduction: q(g)
2143
2150
  }, null, 8, ["renderApiDomain", "isComponentMode", "fullwidthMode", "columnToInsert", "isProduction"])
2144
2151
  ])
2145
- ], 2)) : (s(), i("div", Hl, [
2146
- q(se, {
2147
- renderApiDomain: G(f),
2148
- isComponentMode: r.value,
2149
- fullwidthMode: u.value,
2150
- columnToInsert: C.value,
2152
+ ], 2)) : (a(), r("div", Wl, [
2153
+ L(se, {
2154
+ renderApiDomain: q(c),
2155
+ isComponentMode: l.value,
2156
+ fullwidthMode: n.value,
2157
+ columnToInsert: M.value,
2151
2158
  addComponentToColumn: ne,
2152
- toggleComponentModeFunction: k,
2153
- isProduction: G(g)
2159
+ toggleComponentModeFunction: I,
2160
+ isProduction: q(g)
2154
2161
  }, null, 8, ["renderApiDomain", "isComponentMode", "fullwidthMode", "columnToInsert", "isProduction"])
2155
2162
  ])),
2156
2163
  t("div", {
2157
- class: L([u.value ? "w-full px-4" : "w-3/4 ps-3", "flex flex-col gap-5"])
2164
+ class: G([n.value ? "w-full px-4" : "w-3/4 ps-3", "flex flex-col gap-5"])
2158
2165
  }, [
2159
- q(El, {
2160
- globalPageConfiguration: n,
2161
- isComponentMode: r.value,
2162
- removeComponent: Z,
2163
- addComponentFunction: _,
2164
- fullwidthMode: u.value,
2165
- addCol: D,
2166
- addRow: c,
2167
- removeRow: $,
2168
- removeCol: N,
2169
- moveCol: X,
2170
- updateRowConfig: w,
2171
- updateColConfig: d,
2172
- moveRow: j,
2173
- sectionSelected: a.value,
2174
- renderApiDomain: G(f),
2175
- isProduction: G(g)
2166
+ L(Tl, {
2167
+ globalPageConfiguration: m,
2168
+ isComponentMode: l.value,
2169
+ removeComponent: _,
2170
+ addComponentFunction: me,
2171
+ fullwidthMode: n.value,
2172
+ addCol: N,
2173
+ addRow: C,
2174
+ removeRow: j,
2175
+ removeCol: X,
2176
+ moveCol: Z,
2177
+ updateRowConfig: d,
2178
+ updateColConfig: u,
2179
+ moveRow: D,
2180
+ sectionSelected: b.value,
2181
+ renderApiDomain: q(c),
2182
+ isProduction: q(g)
2176
2183
  }, null, 8, ["globalPageConfiguration", "isComponentMode", "fullwidthMode", "sectionSelected", "renderApiDomain", "isProduction"])
2177
2184
  ], 2)
2178
2185
  ])
@@ -2180,15 +2187,15 @@ const lt = /* @__PURE__ */ he(xe, [["render", ot]]), nt = {
2180
2187
  }
2181
2188
  });
2182
2189
  export {
2183
- El as BodySection,
2184
- ll as ColConfig,
2190
+ Tl as BodySection,
2191
+ nl as ColConfig,
2185
2192
  se as ComponentsBox,
2186
- uo as FeedComponent,
2193
+ co as FeedComponent,
2187
2194
  re as FieldsForm,
2188
- lt as GlobalConfig,
2195
+ nt as GlobalConfig,
2189
2196
  ce as InitialComponent,
2190
- Xl as Pagebuilder,
2197
+ Zl as Pagebuilder,
2191
2198
  Il as RowConfig,
2192
- Pt as SourceFilter,
2193
- Xl as default
2199
+ Ft as SourceFilter,
2200
+ Zl as default
2194
2201
  };