lf-pagebuilder-vue 0.0.1 → 0.0.3

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