@rulecms/widget-vue 0.6.0 → 0.7.0

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,32 +1,32 @@
1
- var et = Object.defineProperty;
2
- var tt = (e, t, n) => t in e ? et(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var we = (e, t, n) => tt(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { defineComponent as D, reactive as nt, watch as Le, provide as ot, renderSlot as le, computed as h, openBlock as y, createElementBlock as b, normalizeStyle as S, normalizeClass as H, createBlock as w, resolveDynamicComponent as M, withCtx as E, createTextVNode as z, toDisplayString as U, createCommentVNode as P, Fragment as A, normalizeProps as Q, guardReactiveProps as Ce, mergeProps as st, resolveComponent as it, createVNode as j, renderList as O, createElementVNode as W, ref as _, onMounted as rt, onBeforeUnmount as Re, inject as lt, unref as x } from "vue";
5
- const G = "default";
6
- function Me(e, t) {
7
- return !(e != null && e.length) || e === G ? t : `${e}/${t}`;
1
+ var kt = Object.defineProperty;
2
+ var Tt = (e, t, n) => t in e ? kt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var Pe = (e, t, n) => Tt(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { defineComponent as A, reactive as It, watch as Be, provide as Pt, renderSlot as pe, computed as g, openBlock as f, createElementBlock as b, normalizeStyle as I, normalizeClass as G, createBlock as C, resolveDynamicComponent as P, withCtx as T, createTextVNode as R, toDisplayString as L, createCommentVNode as k, Fragment as E, normalizeProps as oe, guardReactiveProps as De, mergeProps as Dt, resolveComponent as $t, createVNode as $, renderList as F, createElementVNode as V, ref as Y, onMounted as Lt, onBeforeUnmount as Ke, inject as xt, unref as j } from "vue";
5
+ const X = "default";
6
+ function ze(e, t) {
7
+ return !(e != null && e.length) || e === X ? t : `${e}/${t}`;
8
8
  }
9
- const ct = `RuleCMS widget: this widget config uses components from the default component library, but no "default" library is registered. The default library is registered by the consumer app: add the RuleCMS default source components package as a direct dependency and register it, e.g. libraries: { default: sourceComponentsModule } (statically imported for SSR) or libraries: { default: () => import('<default source components package>') }. See the @rulecms/widget-vue README.`;
10
- function ve(e) {
9
+ const Rt = `RuleCMS widget: this widget config uses components from the default component library, but no "default" library is registered. The default library is registered by the consumer app: add the RuleCMS default source components package as a direct dependency and register it, e.g. libraries: { default: sourceComponentsModule } (statically imported for SSR) or libraries: { default: () => import('<default source components package>') }. See the @rulecms/widget-vue README.`;
10
+ function $e(e) {
11
11
  if (!e || typeof e != "object")
12
12
  return !1;
13
13
  const t = e;
14
14
  return !!t.manifest && typeof t.manifest == "object" && !!t.components && typeof t.components == "object" && !Array.isArray(t.components);
15
15
  }
16
- function at(e) {
17
- if (ve(e))
16
+ function Ot(e) {
17
+ if ($e(e))
18
18
  return e;
19
19
  const t = e;
20
- return ve(t == null ? void 0 : t.default) ? t.default : null;
20
+ return $e(t == null ? void 0 : t.default) ? t.default : null;
21
21
  }
22
- function ee(e) {
23
- return e.usesDefaultLibrary ? [G, ...e.libraryIds] : [...e.libraryIds];
22
+ function se(e) {
23
+ return e.usesDefaultLibrary ? [X, ...e.libraryIds] : [...e.libraryIds];
24
24
  }
25
- function Ae({ registrations: e, referenced: t }) {
26
- if (t.usesDefaultLibrary && !(e != null && e[G]))
27
- throw new Error(ct);
25
+ function Le({ registrations: e, referenced: t }) {
26
+ if (t.usesDefaultLibrary && !(e != null && e[X]))
27
+ throw new Error(Rt);
28
28
  }
29
- function ut(e) {
29
+ function _t(e) {
30
30
  const t = [], n = /* @__PURE__ */ new Set();
31
31
  for (const o of e.values()) {
32
32
  if (typeof o.stylesheet != "string")
@@ -36,109 +36,109 @@ function ut(e) {
36
36
  }
37
37
  return t.length > 0 ? t : void 0;
38
38
  }
39
- function dt(e) {
39
+ function jt(e) {
40
40
  const t = {};
41
41
  for (const [o, s] of e) {
42
- const i = o === G;
43
- for (const [r, u] of Object.entries(s.components))
44
- t[i ? r : `${o}/${r}`] = u;
42
+ const i = o === X;
43
+ for (const [r, l] of Object.entries(s.components))
44
+ t[i ? r : `${o}/${r}`] = l;
45
45
  }
46
- const n = ut(e);
46
+ const n = _t(e);
47
47
  return n ? { components: t, stylesheets: n } : { components: t };
48
48
  }
49
- function J() {
49
+ function te() {
50
50
  const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
51
51
  let s = 0;
52
52
  function i(c, a) {
53
- var d;
54
- e.get(c) !== a && ((d = a.manifest) != null && d.id && a.manifest.id !== c && console.warn(
53
+ var p;
54
+ e.get(c) !== a && ((p = a.manifest) != null && p.id && a.manifest.id !== c && console.warn(
55
55
  `RuleCMS widget: component library registered as "${c}" declares manifest id "${a.manifest.id}". The registered id wins for resolution.`
56
56
  ), e.set(c, a), s += 1);
57
57
  }
58
58
  function r(c) {
59
- const a = ee(c), d = [...a].sort().join("|"), p = o.get(d);
60
- if (p && p.loadedVersion === s)
61
- return p.plugin;
62
- const l = /* @__PURE__ */ new Map();
63
- for (const f of a) {
64
- const I = e.get(f);
65
- I && l.set(f, I);
59
+ const a = se(c), p = [...a].sort().join("|"), y = o.get(p);
60
+ if (y && y.loadedVersion === s)
61
+ return y.plugin;
62
+ const d = /* @__PURE__ */ new Map();
63
+ for (const m of a) {
64
+ const S = e.get(m);
65
+ S && d.set(m, S);
66
66
  }
67
- const g = dt(l);
68
- return o.set(d, { loadedVersion: s, plugin: g }), g;
67
+ const h = jt(d);
68
+ return o.set(p, { loadedVersion: s, plugin: h }), h;
69
69
  }
70
- function u(c) {
71
- Ae(c);
72
- const { registrations: a, referenced: d } = c;
73
- for (const p of ee(d)) {
74
- if (e.has(p) || n.has(p))
70
+ function l(c) {
71
+ Le(c);
72
+ const { registrations: a, referenced: p } = c;
73
+ for (const y of se(p)) {
74
+ if (e.has(y) || n.has(y))
75
75
  continue;
76
- const l = a == null ? void 0 : a[p];
77
- if (!l) {
76
+ const d = a == null ? void 0 : a[y];
77
+ if (!d) {
78
78
  console.error(
79
- `RuleCMS widget: no component library registered for libraryId "${p}"; its components will not render.`
80
- ), n.set(p, new Error(`No registration for libraryId "${p}"`));
79
+ `RuleCMS widget: no component library registered for libraryId "${y}"; its components will not render.`
80
+ ), n.set(y, new Error(`No registration for libraryId "${y}"`));
81
81
  continue;
82
82
  }
83
- if (typeof l == "function")
83
+ if (typeof d == "function")
84
84
  return null;
85
- i(p, l);
85
+ i(y, d);
86
86
  }
87
- return r(d);
87
+ return r(p);
88
88
  }
89
- async function m(c) {
90
- Ae(c);
91
- const { registrations: a, referenced: d } = c, p = ee(d);
89
+ async function u(c) {
90
+ Le(c);
91
+ const { registrations: a, referenced: p } = c, y = se(p);
92
92
  return await Promise.all(
93
- p.map(async (l) => {
94
- if (e.has(l) || n.has(l))
93
+ y.map(async (d) => {
94
+ if (e.has(d) || n.has(d))
95
95
  return;
96
- const g = a == null ? void 0 : a[l];
97
- if (!g) {
96
+ const h = a == null ? void 0 : a[d];
97
+ if (!h) {
98
98
  console.error(
99
- `RuleCMS widget: no component library registered for libraryId "${l}"; its components will not render.`
100
- ), n.set(l, new Error(`No registration for libraryId "${l}"`));
99
+ `RuleCMS widget: no component library registered for libraryId "${d}"; its components will not render.`
100
+ ), n.set(d, new Error(`No registration for libraryId "${d}"`));
101
101
  return;
102
102
  }
103
- if (typeof g != "function") {
104
- i(l, g);
103
+ if (typeof h != "function") {
104
+ i(d, h);
105
105
  return;
106
106
  }
107
- let f = t.get(l);
108
- f || (f = g().then((I) => {
109
- const v = at(I);
110
- if (!v)
107
+ let m = t.get(d);
108
+ m || (m = h().then((S) => {
109
+ const w = Ot(S);
110
+ if (!w)
111
111
  throw new Error(
112
- `Registration for libraryId "${l}" did not resolve to a ComponentLibraryModule (expected { manifest, components }).`
112
+ `Registration for libraryId "${d}" did not resolve to a ComponentLibraryModule (expected { manifest, components }).`
113
113
  );
114
- i(l, v);
115
- }).catch((I) => {
116
- n.set(l, I), console.error(
117
- `RuleCMS widget: failed to load component library "${l}":`,
118
- I
114
+ i(d, w);
115
+ }).catch((S) => {
116
+ n.set(d, S), console.error(
117
+ `RuleCMS widget: failed to load component library "${d}":`,
118
+ S
119
119
  );
120
120
  }).finally(() => {
121
- t.delete(l);
122
- }), t.set(l, f)), await f;
121
+ t.delete(d);
122
+ }), t.set(d, m)), await m;
123
123
  })
124
- ), r(d);
124
+ ), r(p);
125
125
  }
126
- return { resolveSync: u, resolve: m };
126
+ return { resolveSync: l, resolve: u };
127
127
  }
128
- const ls = {
128
+ const nr = {
129
129
  Preview: "Preview",
130
130
  Compose: "Compose",
131
131
  RenderedPage: "RenderedPage"
132
- }, ce = {
132
+ }, fe = {
133
133
  DroppableBox: "droppable-box"
134
- }, Ie = {
134
+ }, xe = {
135
135
  FlexStart: "flex-start",
136
136
  FlexEnd: "flex-end",
137
137
  Center: "center",
138
138
  SpaceBetween: "space-between",
139
139
  SpaceAround: "space-around",
140
140
  SpaceEvenly: "space-evenly"
141
- }, cs = {
141
+ }, or = {
142
142
  FlexStart: "flex-start",
143
143
  FlexEnd: "flex-end",
144
144
  Center: "center",
@@ -146,49 +146,49 @@ const ls = {
146
146
  SpaceAround: "space-around",
147
147
  SpaceEvenly: "space-evenly",
148
148
  Stretch: "stretch"
149
- }, se = "cssAttrArray", as = {
149
+ }, ce = "cssAttrArray", sr = {
150
150
  Phone: "phone",
151
151
  Tablet: "tablet",
152
152
  Desktop: "desktop"
153
- }, Ne = {
153
+ }, He = {
154
154
  ComposerComponent: "ComposerWidget",
155
155
  Collection: "Collection",
156
156
  MoveComponentHandle: "MoveWidgetHandle"
157
- }, We = `${Ne.Collection}_`, pt = "dev.", ft = "https://rulecms.com", yt = "https://widget-cache.rulecms.com", mt = "/api/v1/c/widget/get", gt = "/api/v1/c/dev/widget/get";
158
- function B(e) {
159
- return typeof e == "string" && e.startsWith(pt);
157
+ }, Ue = `${He.Collection}_`, Mt = "dev.", Nt = "https://rulecms.com", Wt = "https://widget-cache.rulecms.com", Vt = "/api/v1/c/widget/get", Ft = "/api/v1/c/dev/widget/get";
158
+ function K(e) {
159
+ return typeof e == "string" && e.startsWith(Mt);
160
160
  }
161
- function ht(e, t) {
162
- return t ? t.replace(/\/$/, "") : B(e) ? ft : yt;
161
+ function Bt(e, t) {
162
+ return t ? t.replace(/\/$/, "") : K(e) ? Nt : Wt;
163
163
  }
164
- function Oe({
164
+ function Ye({
165
165
  publishedKey: e,
166
166
  token: t,
167
167
  endpoint: n
168
168
  }) {
169
- const o = B(t), s = o ? gt : mt, i = o ? new URLSearchParams({ widgetKey: e, token: t }) : new URLSearchParams({ publishedKey: e, token: t });
170
- return `${ht(t, n)}${s}?${i.toString()}`;
169
+ const o = K(t), s = o ? Ft : Vt, i = o ? new URLSearchParams({ widgetKey: e, token: t }) : new URLSearchParams({ publishedKey: e, token: t });
170
+ return `${Bt(t, n)}${s}?${i.toString()}`;
171
171
  }
172
- const us = ({ id: e, prefix: t }) => `${t}_${e}`, bt = (e) => {
172
+ const ir = ({ id: e, prefix: t }) => `${t}_${e}`, Kt = (e) => {
173
173
  if (!(e != null && e.length) || !e.includes("_")) {
174
174
  console.error(`Invalid drag item id: ${e}. Type does not exist.`);
175
175
  return;
176
176
  }
177
- return wt(e);
178
- }, je = (e) => e.includes("_"), wt = (e) => {
177
+ return zt(e);
178
+ }, Ge = (e) => e.includes("_"), zt = (e) => {
179
179
  const t = e.indexOf("_"), n = e.substring(0, t), o = e.substring(t + 1);
180
180
  return {
181
181
  prefix: n,
182
182
  id: o
183
183
  };
184
- }, Ve = (e) => {
185
- if (!je(e))
184
+ }, Xe = (e) => {
185
+ if (!Ge(e))
186
186
  return;
187
- const n = bt(e);
188
- return (n == null ? void 0 : n.prefix) === Ne.Collection || console.error(
187
+ const n = Kt(e);
188
+ return (n == null ? void 0 : n.prefix) === He.Collection || console.error(
189
189
  "getCollectionIdForCollectionType - Invalid component type: ${componentType}. Invalid prefix type."
190
190
  ), n == null ? void 0 : n.id;
191
- }, ds = (e) => {
191
+ }, rr = (e) => {
192
192
  if (!(e != null && e.length)) {
193
193
  console.error("getNameAndInstanceIdFromWidgetKey: Missing widget key");
194
194
  return;
@@ -203,13 +203,13 @@ const us = ({ id: e, prefix: t }) => `${t}_${e}`, bt = (e) => {
203
203
  return { name: n, instanceId: t[1] };
204
204
  const s = t[1].split("@");
205
205
  return { name: n, instanceId: s[0], parentId: s[1] };
206
- }, ps = (e) => {
206
+ }, lr = (e) => {
207
207
  if (!(e != null && e.length))
208
208
  return { errorMessage: "getNameFromWidgetKey: Missing widget key" };
209
209
  const t = e.split("$");
210
210
  return t.length < 2 ? { errorMessage: "getNameFromWidgetKey: Invalid widget key format" } : { name: t[0] };
211
- }, Ct = (e) => {
212
- var s, i, r, u;
211
+ }, Ht = (e) => {
212
+ var s, i, r, l;
213
213
  if (!e)
214
214
  return { error: "getWidgetKeyForCollection: Missing collection" };
215
215
  if (!((s = e.name) != null && s.length))
@@ -217,10 +217,10 @@ const us = ({ id: e, prefix: t }) => `${t}_${e}`, bt = (e) => {
217
217
  const t = (i = e.name) == null ? void 0 : i.trim().toLowerCase();
218
218
  if (!((r = e.id) != null && r.length))
219
219
  return { error: "getWidgetKeyForCollection: Missing collection id" };
220
- const o = ((u = e.parentId) == null ? void 0 : u.length) ? `${e.id}@${e.parentId}` : `${e.id}`;
220
+ const o = ((l = e.parentId) == null ? void 0 : l.length) ? `${e.id}@${e.parentId}` : `${e.id}`;
221
221
  return { data: `${t}$${o}` };
222
- }, vt = (e) => {
223
- var s, i, r, u;
222
+ }, Ut = (e) => {
223
+ var s, i, r, l;
224
224
  if (!e)
225
225
  return { error: "getWidgetKeyForPublishedCollection: Missing collection" };
226
226
  if (!((s = e.name) != null && s.length))
@@ -228,22 +228,22 @@ const us = ({ id: e, prefix: t }) => `${t}_${e}`, bt = (e) => {
228
228
  const t = (i = e.name) == null ? void 0 : i.trim().toLowerCase();
229
229
  if (!((r = e.publishedKey) != null && r.length))
230
230
  return { error: "getWidgetKeyForPublishedCollection: Missing collection publishedKey" };
231
- const o = ((u = e.parentId) == null ? void 0 : u.length) ? `${e.publishedKey}@${e.parentId}` : `${e.publishedKey}`;
231
+ const o = ((l = e.parentId) == null ? void 0 : l.length) ? `${e.publishedKey}@${e.parentId}` : `${e.publishedKey}`;
232
232
  return { data: `${t}$${o}` };
233
- }, fs = (e) => {
234
- const t = Ct(e);
235
- return `${We}${t.data}`;
236
- }, ys = (e) => {
237
- const t = vt(e);
238
- return `${We}${t.data}`;
239
- }, At = "---", It = "___";
240
- function St(e, t) {
241
- return `${e}${At}${t}`;
233
+ }, cr = (e) => {
234
+ const t = Ht(e);
235
+ return `${Ue}${t.data}`;
236
+ }, ar = (e) => {
237
+ const t = Ut(e);
238
+ return `${Ue}${t.data}`;
239
+ }, Yt = "---", Gt = "___";
240
+ function Xt(e, t) {
241
+ return `${e}${Yt}${t}`;
242
242
  }
243
- function ms(e, t, n) {
244
- return `${St(e, t)}${It}${n}`;
243
+ function ur(e, t, n) {
244
+ return `${Xt(e, t)}${Gt}${n}`;
245
245
  }
246
- function gs(e) {
246
+ function dr(e) {
247
247
  const t = e.split(".");
248
248
  if (t.length !== 3)
249
249
  throw new Error(`Invalid version format: ${e}. Expected format: x.y.z`);
@@ -252,19 +252,19 @@ function gs(e) {
252
252
  throw new Error(`Invalid patch version: ${t[2]}. Expected a number.`);
253
253
  return `${n}.${o}.${s + 1}`;
254
254
  }
255
- function ae({
255
+ function ye({
256
256
  displayItemList: e,
257
257
  widgetCollections: t
258
258
  }) {
259
259
  const n = /* @__PURE__ */ new Set();
260
260
  let o = !1;
261
261
  const s = (i) => {
262
- var r, u, m;
262
+ var r, l, u;
263
263
  if ((r = i == null ? void 0 : i.rows) != null && r.length) {
264
264
  for (const c of i.rows)
265
- if ((u = c == null ? void 0 : c.columns) != null && u.length)
265
+ if ((l = c == null ? void 0 : c.columns) != null && l.length)
266
266
  for (const a of c.columns)
267
- a.collection && s(a.collection.collectionRows), !(!a.type || a.type === ce.DroppableBox) && (je(a.type) || (!((m = a.libraryId) != null && m.length) || a.libraryId === G ? o = !0 : n.add(a.libraryId)));
267
+ a.collection && s(a.collection.collectionRows), !(!a.type || a.type === fe.DroppableBox) && (Ge(a.type) || (!((u = a.libraryId) != null && u.length) || a.libraryId === X ? o = !0 : n.add(a.libraryId)));
268
268
  }
269
269
  };
270
270
  s(e);
@@ -272,16 +272,16 @@ function ae({
272
272
  s(i == null ? void 0 : i.collectionRows);
273
273
  return { libraryIds: Array.from(n), usesDefaultLibrary: o };
274
274
  }
275
- const Be = Symbol("rulecms-widget-context");
276
- function Dt() {
275
+ const Je = Symbol("rulecms-widget-context");
276
+ function Jt() {
277
277
  return {
278
278
  token: "",
279
279
  endpoint: void 0,
280
280
  libraries: void 0,
281
- libraryRegistry: J()
281
+ libraryRegistry: te()
282
282
  };
283
283
  }
284
- const hs = /* @__PURE__ */ D({
284
+ const pr = /* @__PURE__ */ A({
285
285
  __name: "RuleCMSWidgetProvider",
286
286
  props: {
287
287
  token: {},
@@ -289,97 +289,97 @@ const hs = /* @__PURE__ */ D({
289
289
  libraries: {}
290
290
  },
291
291
  setup(e) {
292
- const t = e, n = nt(Dt());
293
- return Le(
292
+ const t = e, n = It(Jt());
293
+ return Be(
294
294
  () => [t.token, t.endpoint, t.libraries],
295
295
  () => {
296
296
  n.token = t.token, n.endpoint = t.endpoint, n.libraries = t.libraries;
297
297
  },
298
298
  { immediate: !0 }
299
- ), ot(Be, n), (o, s) => le(o.$slots, "default");
299
+ ), Pt(Je, n), (o, s) => pe(o.$slots, "default");
300
300
  }
301
- }), kt = "1200px", Fe = "500px", Ke = "820px", bs = kt, Tt = "rulecms", xt = 1920, Et = {
301
+ }), Zt = "1200px", Ze = "500px", qe = "820px", fr = Zt, qt = "rulecms", Qt = 1920, en = {
302
302
  f: "auto",
303
303
  q: "auto",
304
304
  c: "limit"
305
- }, Pt = /^[A-Za-z0-9][A-Za-z0-9._\-/]*$/, $t = 300, Lt = /^[A-Za-z0-9][A-Za-z0-9_-]*$/, Rt = 100, Mt = /^https:\/\/[^\s"'()\\<>]+$/, Nt = 2e3, Wt = /^[A-Za-z0-9_,.:\-/]*$/, Ot = 300, jt = (e) => typeof e == "string" && e.length <= $t && Pt.test(e), Vt = (e) => typeof e == "string" && e.length <= Rt && Lt.test(e), Bt = (e) => typeof e == "string" && e.length <= Nt && Mt.test(e), Ft = (e) => typeof e == "string" && e.length <= Ot && Wt.test(e), Kt = (e) => Object.entries(e).map(([t, n]) => `${t}_${n}`).join(","), Ut = (e) => {
305
+ }, tn = /^[A-Za-z0-9][A-Za-z0-9._\-/]*$/, nn = 300, on = /^[A-Za-z0-9][A-Za-z0-9_-]*$/, sn = 100, rn = /^https:\/\/[^\s"'()\\<>]+$/, ln = 2e3, cn = /^[A-Za-z0-9_,.:\-/]*$/, an = 300, un = (e) => typeof e == "string" && e.length <= nn && tn.test(e), dn = (e) => typeof e == "string" && e.length <= sn && on.test(e), pn = (e) => typeof e == "string" && e.length <= ln && rn.test(e), fn = (e) => typeof e == "string" && e.length <= an && cn.test(e), yn = (e) => Object.entries(e).map(([t, n]) => `${t}_${n}`).join(","), mn = (e) => {
306
306
  const t = {};
307
307
  for (const n of e.split(",")) {
308
308
  const o = n.trim(), s = o.indexOf("_");
309
309
  s <= 0 || (t[o.slice(0, s)] = o.slice(s + 1));
310
310
  }
311
311
  return t;
312
- }, _t = ({
312
+ }, hn = ({
313
313
  publicId: e,
314
- cloudName: t = Tt,
314
+ cloudName: t = qt,
315
315
  transformations: n,
316
- width: o = xt
316
+ width: o = Qt
317
317
  }) => {
318
- const s = typeof n == "string" ? Ut(n) : n, i = {
319
- ...Et,
318
+ const s = typeof n == "string" ? mn(n) : n, i = {
319
+ ...en,
320
320
  ...s,
321
321
  w: o
322
322
  };
323
323
  return encodeURI(
324
- `https://res.cloudinary.com/${t}/image/upload/${Kt(i)}/${e}`
324
+ `https://res.cloudinary.com/${t}/image/upload/${yn(i)}/${e}`
325
325
  );
326
- }, Ht = /^--[A-Za-z0-9_-]+$/, zt = 200, ue = (e) => {
326
+ }, gn = /^--[A-Za-z0-9_-]+$/, bn = 200, U = (e) => {
327
327
  if (typeof e != "string")
328
328
  return !1;
329
329
  const t = e.trim();
330
- return t.length <= zt && Ht.test(t);
331
- }, k = (e) => `var(${e.trim()})`, C = (e) => {
330
+ return t.length <= bn && gn.test(t);
331
+ }, _ = (e) => `var(${e.trim()})`, v = (e) => {
332
332
  if (typeof e != "object" || e === null || Array.isArray(e))
333
333
  return;
334
334
  const t = e.cssVariable;
335
335
  if (t != null)
336
- return ue(t) ? t.trim() : void 0;
337
- }, $ = (e) => {
336
+ return U(t) ? t.trim() : void 0;
337
+ }, M = (e) => {
338
338
  if (typeof e != "object" || e === null || Array.isArray(e))
339
339
  return !1;
340
340
  const t = e.cssVariable;
341
- return t == null ? !1 : !ue(t);
342
- }, ws = (e, t) => {
343
- const n = C(e);
344
- return n ? { [t]: k(n) } : void 0;
345
- }, Gt = (e) => {
346
- if (typeof e != "object" || e === null || Array.isArray(e) || $(e))
341
+ return t == null ? !1 : !U(t);
342
+ }, yr = (e, t) => {
343
+ const n = v(e);
344
+ return n ? { [t]: _(n) } : void 0;
345
+ }, Cn = (e) => {
346
+ if (typeof e != "object" || e === null || Array.isArray(e) || M(e))
347
347
  return !1;
348
- if (C(e))
348
+ if (v(e))
349
349
  return !0;
350
350
  const t = e;
351
- return t.source === "none" ? !0 : t.source === "url" ? Bt(t.url) : t.source === "cloudinary" ? !jt(t.publicId) || t.cloudName !== void 0 && t.cloudName !== null && !Vt(t.cloudName) ? !1 : t.transformations === void 0 || t.transformations === null || Ft(t.transformations) : !1;
352
- }, Yt = ["px", "%", "em", "rem", "vh", "vw"], de = ["inherit", "unset"], qt = ["allSides", "top", "right", "bottom", "left"], F = (e, t = {}) => {
351
+ return t.source === "none" ? !0 : t.source === "url" ? pn(t.url) : t.source === "cloudinary" ? !un(t.publicId) || t.cloudName !== void 0 && t.cloudName !== null && !dn(t.cloudName) ? !1 : t.transformations === void 0 || t.transformations === null || fn(t.transformations) : !1;
352
+ }, wn = ["px", "%", "em", "rem", "vh", "vw"], me = ["inherit", "unset"], vn = ["allSides", "top", "right", "bottom", "left"], z = (e, t = {}) => {
353
353
  if (typeof e != "object" || e === null || Array.isArray(e))
354
354
  return !1;
355
355
  const n = e;
356
- return $(e) ? !1 : C(e) ? !0 : n.unit === "auto" ? t.allowAuto !== !1 : n.unit === "keyword" ? t.allowKeywords !== !1 && de.includes(n.keyword) : Yt.includes(n.unit) ? typeof n.value != "number" || !Number.isFinite(n.value) ? !1 : t.allowNegative !== !1 || n.value >= 0 : !1;
357
- }, Xt = (e, t = {}) => {
356
+ return M(e) ? !1 : v(e) ? !0 : n.unit === "auto" ? t.allowAuto !== !1 : n.unit === "keyword" ? t.allowKeywords !== !1 && me.includes(n.keyword) : wn.includes(n.unit) ? typeof n.value != "number" || !Number.isFinite(n.value) ? !1 : t.allowNegative !== !1 || n.value >= 0 : !1;
357
+ }, An = (e, t = {}) => {
358
358
  if (typeof e != "object" || e === null || Array.isArray(e))
359
359
  return !1;
360
360
  const n = e;
361
- for (const o of qt) {
361
+ for (const o of vn) {
362
362
  const s = n[o];
363
- if (s != null && !F(s, t))
363
+ if (s != null && !z(s, t))
364
364
  return !1;
365
365
  }
366
366
  return !0;
367
- }, Zt = [...de, "transparent", "currentColor"], Jt = /^(#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|rgba?\([^)]+\)|hsla?\([^)]+\))$/, pe = (e) => {
367
+ }, Sn = [...me, "transparent", "currentColor"], En = /^(#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|rgba?\([^)]+\)|hsla?\([^)]+\))$/, he = (e) => {
368
368
  if (typeof e != "object" || e === null || Array.isArray(e))
369
369
  return !1;
370
370
  const t = e;
371
- return $(e) ? !1 : C(e) ? !0 : t.unit === "keyword" ? Zt.includes(t.keyword) : t.unit === "color" ? typeof t.value == "string" && Jt.test(t.value.trim()) : !1;
372
- }, fe = (e) => {
373
- const t = C(e);
374
- return t ? k(t) : "unit" in e ? e.unit === "keyword" ? e.keyword : e.value.trim() : "";
375
- }, Qt = (e, t) => typeof e == "object" && e !== null && !Array.isArray(e) ? !$(e) && !!C(e) : typeof e != "string" || !e.length ? !1 : t.includes(e) ? !0 : de.includes(e), en = [
371
+ return M(e) ? !1 : v(e) ? !0 : t.unit === "keyword" ? Sn.includes(t.keyword) : t.unit === "color" ? typeof t.value == "string" && En.test(t.value.trim()) : !1;
372
+ }, ge = (e) => {
373
+ const t = v(e);
374
+ return t ? _(t) : "unit" in e ? e.unit === "keyword" ? e.keyword : e.value.trim() : "";
375
+ }, kn = (e, t) => typeof e == "object" && e !== null && !Array.isArray(e) ? !M(e) && !!v(e) : typeof e != "string" || !e.length ? !1 : t.includes(e) ? !0 : me.includes(e), Tn = [
376
376
  'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
377
377
  'Georgia, "Times New Roman", Times, serif',
378
378
  "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",
379
379
  "Arial, Helvetica, sans-serif",
380
380
  '"Helvetica Neue", Helvetica, Arial, sans-serif',
381
381
  "Verdana, Geneva, sans-serif"
382
- ], tn = [
382
+ ], In = [
383
383
  "normal",
384
384
  "bold",
385
385
  "100",
@@ -391,43 +391,43 @@ const hs = /* @__PURE__ */ D({
391
391
  "700",
392
392
  "800",
393
393
  "900"
394
- ], nn = ["normal", "italic", "oblique"], on = [
394
+ ], Pn = ["normal", "italic", "oblique"], Dn = [
395
395
  "left",
396
396
  "center",
397
397
  "right",
398
398
  "justify",
399
399
  "start",
400
400
  "end"
401
- ], sn = [
401
+ ], $n = [
402
402
  "none",
403
403
  "underline",
404
404
  "line-through",
405
405
  "overline"
406
- ], rn = [
406
+ ], Ln = [
407
407
  "none",
408
408
  "uppercase",
409
409
  "lowercase",
410
410
  "capitalize"
411
- ], te = [
411
+ ], ie = [
412
412
  "visible",
413
413
  "hidden",
414
414
  "scroll",
415
415
  "auto",
416
416
  "clip"
417
- ], ln = ["auto", "none"], cn = [
417
+ ], xn = ["auto", "none"], Rn = [
418
418
  "flex-start",
419
419
  "flex-end",
420
420
  "center",
421
421
  "space-between",
422
422
  "space-around",
423
423
  "space-evenly"
424
- ], an = [
424
+ ], On = [
425
425
  "flex-start",
426
426
  "flex-end",
427
427
  "center",
428
428
  "baseline",
429
429
  "stretch"
430
- ], un = ["wrap", "nowrap"], dn = [
430
+ ], _n = ["wrap", "nowrap"], jn = [
431
431
  "flex-start",
432
432
  "flex-end",
433
433
  "center",
@@ -435,12 +435,12 @@ const hs = /* @__PURE__ */ D({
435
435
  "space-around",
436
436
  "space-evenly",
437
437
  "stretch"
438
- ], pn = [
438
+ ], Mn = [
439
439
  "row",
440
440
  "row-reverse",
441
441
  "column",
442
442
  "column-reverse"
443
- ], fn = ["cover", "contain", "auto"], yn = [
443
+ ], Nn = ["cover", "contain", "auto"], Wn = [
444
444
  "center center",
445
445
  "center top",
446
446
  "center bottom",
@@ -450,20 +450,20 @@ const hs = /* @__PURE__ */ D({
450
450
  "right center",
451
451
  "right top",
452
452
  "right bottom"
453
- ], mn = [
453
+ ], Vn = [
454
454
  "no-repeat",
455
455
  "repeat",
456
456
  "repeat-x",
457
457
  "repeat-y",
458
458
  "space",
459
459
  "round"
460
- ], gn = [
460
+ ], Fn = [
461
461
  "justifyContent",
462
462
  "alignItems",
463
463
  "flexWrap",
464
464
  "alignContent",
465
465
  "flexDirection"
466
- ], hn = [
466
+ ], Bn = [
467
467
  "none",
468
468
  "solid",
469
469
  "dashed",
@@ -473,107 +473,107 @@ const hs = /* @__PURE__ */ D({
473
473
  "ridge",
474
474
  "inset",
475
475
  "outset"
476
- ], bn = (e) => typeof e == "object" && e !== null && !Array.isArray(e) ? !$(e) && !!C(e) : hn.includes(e), wn = (e) => {
476
+ ], Kn = (e) => typeof e == "object" && e !== null && !Array.isArray(e) ? !M(e) && !!v(e) : Bn.includes(e), zn = (e) => {
477
477
  if (typeof e != "object" || e === null || Array.isArray(e))
478
478
  return !1;
479
479
  const t = e;
480
- return $(e) ? !1 : C(e) ? !0 : !(t.width !== void 0 && t.width !== null && !F(t.width, { allowAuto: !1, allowNegative: !1 }) || t.style !== void 0 && t.style !== null && !bn(t.style) || t.color !== void 0 && t.color !== null && !pe(t.color));
481
- }, Cn = {
480
+ return M(e) ? !1 : v(e) ? !0 : !(t.width !== void 0 && t.width !== null && !z(t.width, { allowAuto: !1, allowNegative: !1 }) || t.style !== void 0 && t.style !== null && !Kn(t.style) || t.color !== void 0 && t.color !== null && !he(t.color));
481
+ }, Hn = {
482
482
  allowAuto: !1,
483
483
  allowKeywords: !1,
484
484
  allowNegative: !0
485
- }, vn = {
485
+ }, Un = {
486
486
  allowAuto: !1,
487
487
  allowKeywords: !1,
488
488
  allowNegative: !1
489
- }, An = (e) => {
489
+ }, Yn = (e) => {
490
490
  if (typeof e != "object" || e === null || Array.isArray(e))
491
491
  return !1;
492
492
  const t = e;
493
- if ($(e))
493
+ if (M(e))
494
494
  return !1;
495
- if (C(e))
495
+ if (v(e))
496
496
  return !0;
497
497
  for (const n of ["offsetX", "offsetY", "spread"]) {
498
498
  const o = t[n];
499
- if (o != null && !F(o, Cn))
499
+ if (o != null && !z(o, Hn))
500
500
  return !1;
501
501
  }
502
- return !(t.blur !== void 0 && t.blur !== null && !F(t.blur, vn) || t.color !== void 0 && t.color !== null && !pe(t.color) || t.inset !== void 0 && t.inset !== null && typeof t.inset != "boolean");
503
- }, In = (e) => e ? e.cssVariable !== void 0 && e.cssVariable !== null || e.offsetX !== void 0 || e.offsetY !== void 0 || e.blur !== void 0 || e.spread !== void 0 || e.color !== void 0 : !1, Sn = (e) => {
502
+ return !(t.blur !== void 0 && t.blur !== null && !z(t.blur, Un) || t.color !== void 0 && t.color !== null && !he(t.color) || t.inset !== void 0 && t.inset !== null && typeof t.inset != "boolean");
503
+ }, Gn = (e) => e ? e.cssVariable !== void 0 && e.cssVariable !== null || e.offsetX !== void 0 || e.offsetY !== void 0 || e.blur !== void 0 || e.spread !== void 0 || e.color !== void 0 : !1, Xn = (e) => {
504
504
  if (typeof e != "object" || e === null || Array.isArray(e))
505
505
  return !1;
506
506
  const t = e;
507
- return $(e) ? !1 : C(e) ? !0 : t.unit === "number" ? typeof t.value == "number" && Number.isFinite(t.value) && t.value > 0 : F(e, { allowAuto: !1, allowNegative: !1 });
508
- }, Dn = (e) => typeof e == "object" && e !== null && !Array.isArray(e) ? !$(e) && !!C(e) : typeof e == "number" && Number.isFinite(e) && e >= 0 && e <= 1, kn = (e) => {
509
- if (!Gt(e))
507
+ return M(e) ? !1 : v(e) ? !0 : t.unit === "number" ? typeof t.value == "number" && Number.isFinite(t.value) && t.value > 0 : z(e, { allowAuto: !1, allowNegative: !1 });
508
+ }, Jn = (e) => typeof e == "object" && e !== null && !Array.isArray(e) ? !M(e) && !!v(e) : typeof e == "number" && Number.isFinite(e) && e >= 0 && e <= 1, Zn = (e) => {
509
+ if (!Cn(e))
510
510
  return {};
511
- const t = C(e);
511
+ const t = v(e);
512
512
  if (t)
513
- return { backgroundImage: k(t) };
513
+ return { backgroundImage: _(t) };
514
514
  const n = e;
515
515
  return n.source === "none" ? { backgroundImage: "none" } : n.source === "url" ? { backgroundImage: `url("${n.url}")` } : {
516
- backgroundImage: `url("${_t({
516
+ backgroundImage: `url("${hn({
517
517
  publicId: n.publicId,
518
518
  cloudName: n.cloudName,
519
519
  transformations: n.transformations
520
520
  })}")`
521
521
  };
522
- }, K = (e) => {
523
- const t = C(e);
524
- return t ? k(t) : "unit" in e ? e.unit === "auto" ? "auto" : e.unit === "keyword" ? e.keyword : `${e.value}${e.unit}` : "";
525
- }, Tn = (e) => {
526
- if (!wn(e))
522
+ }, H = (e) => {
523
+ const t = v(e);
524
+ return t ? _(t) : "unit" in e ? e.unit === "auto" ? "auto" : e.unit === "keyword" ? e.keyword : `${e.value}${e.unit}` : "";
525
+ }, qn = (e) => {
526
+ if (!zn(e))
527
527
  return {};
528
- const t = C(e);
528
+ const t = v(e);
529
529
  if (t)
530
- return { border: k(t) };
530
+ return { border: _(t) };
531
531
  const n = {};
532
- if (e.width && (n.borderWidth = K(e.width)), e.style) {
533
- const o = C(e.style);
534
- n.borderStyle = o ? k(o) : e.style;
532
+ if (e.width && (n.borderWidth = H(e.width)), e.style) {
533
+ const o = v(e.style);
534
+ n.borderStyle = o ? _(o) : e.style;
535
535
  }
536
- return e.color && (n.borderColor = fe(e.color)), n;
537
- }, q = (e) => e ? K(e) : "0px", xn = (e) => {
538
- if (!An(e) || !In(e))
536
+ return e.color && (n.borderColor = ge(e.color)), n;
537
+ }, Z = (e) => e ? H(e) : "0px", Qn = (e) => {
538
+ if (!Yn(e) || !Gn(e))
539
539
  return {};
540
- const t = C(e);
540
+ const t = v(e);
541
541
  if (t)
542
- return { boxShadow: k(t) };
542
+ return { boxShadow: _(t) };
543
543
  const n = [
544
- q(e.offsetX),
545
- q(e.offsetY),
546
- q(e.blur),
547
- q(e.spread)
544
+ Z(e.offsetX),
545
+ Z(e.offsetY),
546
+ Z(e.blur),
547
+ Z(e.spread)
548
548
  ];
549
- return e.color && n.push(fe(e.color)), e.inset && n.unshift("inset"), { boxShadow: n.join(" ") };
550
- }, En = (e) => `${e.charAt(0).toUpperCase()}${e.slice(1)}`, Pn = (e, t) => {
551
- if (!Xt(e))
549
+ return e.color && n.push(ge(e.color)), e.inset && n.unshift("inset"), { boxShadow: n.join(" ") };
550
+ }, eo = (e) => `${e.charAt(0).toUpperCase()}${e.slice(1)}`, to = (e, t) => {
551
+ if (!An(e))
552
552
  return {};
553
553
  if (e.allSides)
554
- return { [t]: K(e.allSides) };
554
+ return { [t]: H(e.allSides) };
555
555
  const n = {};
556
556
  for (const o of ["top", "right", "bottom", "left"]) {
557
557
  const s = e[o];
558
- s && (n[`${t}${En(o)}`] = K(s));
558
+ s && (n[`${t}${eo(o)}`] = H(s));
559
559
  }
560
560
  return n;
561
- }, $n = (e, t) => pe(e) ? { [t]: fe(e) } : {}, Ln = (e, t, n) => {
562
- if (!Qt(e, n))
561
+ }, no = (e, t) => he(e) ? { [t]: ge(e) } : {}, oo = (e, t, n) => {
562
+ if (!kn(e, n))
563
563
  return {};
564
- const o = C(e);
565
- return o ? { [t]: k(o) } : { [t]: e };
566
- }, Rn = (e, t, n = {}) => F(e, n) ? { [t]: K(e) } : {}, Mn = (e) => {
567
- if (!Sn(e))
564
+ const o = v(e);
565
+ return o ? { [t]: _(o) } : { [t]: e };
566
+ }, so = (e, t, n = {}) => z(e, n) ? { [t]: H(e) } : {}, io = (e) => {
567
+ if (!Xn(e))
568
568
  return {};
569
- const t = C(e);
570
- return t ? { lineHeight: k(t) } : "unit" in e && e.unit === "number" ? { lineHeight: e.value } : { lineHeight: K(e) };
571
- }, Nn = (e) => {
572
- if (!Dn(e))
569
+ const t = v(e);
570
+ return t ? { lineHeight: _(t) } : "unit" in e && e.unit === "number" ? { lineHeight: e.value } : { lineHeight: H(e) };
571
+ }, ro = (e) => {
572
+ if (!Jn(e))
573
573
  return {};
574
- const t = C(e);
575
- return t ? { opacity: k(t) } : { opacity: e };
576
- }, ye = {
574
+ const t = v(e);
575
+ return t ? { opacity: _(t) } : { opacity: e };
576
+ }, be = {
577
577
  // Box spacing (4-sided)
578
578
  "margin-3-resolutions": { kind: "boxSpacing", cssProperty: "margin" },
579
579
  "padding-3-resolutions": { kind: "boxSpacing", cssProperty: "padding" },
@@ -627,44 +627,44 @@ const hs = /* @__PURE__ */ D({
627
627
  "justify-content-3-resolutions": {
628
628
  kind: "enum",
629
629
  cssProperty: "justifyContent",
630
- allowedValues: cn
630
+ allowedValues: Rn
631
631
  },
632
632
  "align-items-3-resolutions": {
633
633
  kind: "enum",
634
634
  cssProperty: "alignItems",
635
- allowedValues: an
635
+ allowedValues: On
636
636
  },
637
637
  "flex-wrap-3-resolutions": {
638
638
  kind: "enum",
639
639
  cssProperty: "flexWrap",
640
- allowedValues: un
640
+ allowedValues: _n
641
641
  },
642
642
  "align-content-3-resolutions": {
643
643
  kind: "enum",
644
644
  cssProperty: "alignContent",
645
- allowedValues: dn
645
+ allowedValues: jn
646
646
  },
647
647
  "flex-direction-3-resolutions": {
648
648
  kind: "enum",
649
649
  cssProperty: "flexDirection",
650
- allowedValues: pn
650
+ allowedValues: Mn
651
651
  },
652
652
  // Overflow — shorthand and longhands are independent attributes; when
653
653
  // both are set, the browser's cascade decides the effective overflow.
654
654
  "overflow-3-resolutions": {
655
655
  kind: "enum",
656
656
  cssProperty: "overflow",
657
- allowedValues: te
657
+ allowedValues: ie
658
658
  },
659
659
  "overflow-x-3-resolutions": {
660
660
  kind: "enum",
661
661
  cssProperty: "overflowX",
662
- allowedValues: te
662
+ allowedValues: ie
663
663
  },
664
664
  "overflow-y-3-resolutions": {
665
665
  kind: "enum",
666
666
  cssProperty: "overflowY",
667
- allowedValues: te
667
+ allowedValues: ie
668
668
  },
669
669
  // Color
670
670
  // Pointer input. On an overlay layer this is lifted onto the absolutely
@@ -672,7 +672,7 @@ const hs = /* @__PURE__ */ D({
672
672
  "pointer-events-3-resolutions": {
673
673
  kind: "enum",
674
674
  cssProperty: "pointerEvents",
675
- allowedValues: ln
675
+ allowedValues: xn
676
676
  },
677
677
  "background-color-3-resolutions": { kind: "color", cssProperty: "backgroundColor" },
678
678
  "color-3-resolutions": { kind: "color", cssProperty: "color" },
@@ -683,17 +683,17 @@ const hs = /* @__PURE__ */ D({
683
683
  "background-size-3-resolutions": {
684
684
  kind: "enum",
685
685
  cssProperty: "backgroundSize",
686
- allowedValues: fn
686
+ allowedValues: Nn
687
687
  },
688
688
  "background-position-3-resolutions": {
689
689
  kind: "enum",
690
690
  cssProperty: "backgroundPosition",
691
- allowedValues: yn
691
+ allowedValues: Wn
692
692
  },
693
693
  "background-repeat-3-resolutions": {
694
694
  kind: "enum",
695
695
  cssProperty: "backgroundRepeat",
696
- allowedValues: mn
696
+ allowedValues: Vn
697
697
  },
698
698
  // Opacity (0–1 number)
699
699
  "opacity-3-resolutions": { kind: "opacity" },
@@ -701,7 +701,7 @@ const hs = /* @__PURE__ */ D({
701
701
  "font-family-3-resolutions": {
702
702
  kind: "enum",
703
703
  cssProperty: "fontFamily",
704
- allowedValues: en
704
+ allowedValues: Tn
705
705
  },
706
706
  "font-size-3-resolutions": {
707
707
  kind: "length",
@@ -711,12 +711,12 @@ const hs = /* @__PURE__ */ D({
711
711
  "font-weight-3-resolutions": {
712
712
  kind: "enum",
713
713
  cssProperty: "fontWeight",
714
- allowedValues: tn
714
+ allowedValues: In
715
715
  },
716
716
  "font-style-3-resolutions": {
717
717
  kind: "enum",
718
718
  cssProperty: "fontStyle",
719
- allowedValues: nn
719
+ allowedValues: Pn
720
720
  },
721
721
  "line-height-3-resolutions": { kind: "lineHeight" },
722
722
  "letter-spacing-3-resolutions": {
@@ -727,66 +727,66 @@ const hs = /* @__PURE__ */ D({
727
727
  "text-align-3-resolutions": {
728
728
  kind: "enum",
729
729
  cssProperty: "textAlign",
730
- allowedValues: on
730
+ allowedValues: Dn
731
731
  },
732
732
  "text-decoration-3-resolutions": {
733
733
  kind: "enum",
734
734
  cssProperty: "textDecoration",
735
- allowedValues: sn
735
+ allowedValues: $n
736
736
  },
737
737
  "text-transform-3-resolutions": {
738
738
  kind: "enum",
739
739
  cssProperty: "textTransform",
740
- allowedValues: rn
740
+ allowedValues: Ln
741
741
  }
742
- }, Wn = (e, t) => {
743
- const n = ye[e];
742
+ }, lo = (e, t) => {
743
+ const n = be[e];
744
744
  if (!n)
745
745
  return {};
746
746
  switch (n.kind) {
747
747
  case "boxSpacing":
748
- return Pn(t, n.cssProperty);
748
+ return to(t, n.cssProperty);
749
749
  case "length":
750
- return Rn(t, n.cssProperty, n.capabilities);
750
+ return so(t, n.cssProperty, n.capabilities);
751
751
  case "border":
752
- return Tn(t);
752
+ return qn(t);
753
753
  case "boxShadow":
754
- return xn(t);
754
+ return Qn(t);
755
755
  case "color":
756
- return $n(t, n.cssProperty);
756
+ return no(t, n.cssProperty);
757
757
  case "opacity":
758
- return Nn(t);
758
+ return ro(t);
759
759
  case "enum":
760
- return Ln(t, n.cssProperty, n.allowedValues);
760
+ return oo(t, n.cssProperty, n.allowedValues);
761
761
  case "lineHeight":
762
- return Mn(t);
762
+ return io(t);
763
763
  case "backgroundImage":
764
- return kn(t);
764
+ return Zn(t);
765
765
  default:
766
766
  return {};
767
767
  }
768
- }, Cs = Object.fromEntries(
769
- Object.entries(ye).filter(([, e]) => e.kind === "boxSpacing").map(([e, t]) => [
768
+ }, mr = Object.fromEntries(
769
+ Object.entries(be).filter(([, e]) => e.kind === "boxSpacing").map(([e, t]) => [
770
770
  e,
771
771
  t.cssProperty
772
772
  ])
773
- ), On = (e) => e != null && e !== "", jn = (e) => e ? !gn.some(
774
- (n) => On(e[n])
775
- ) || e.display === "flex" ? e : { ...e, display: "flex" } : {}, Vn = ({
773
+ ), co = (e) => e != null && e !== "", ao = (e) => e ? !Fn.some(
774
+ (n) => co(e[n])
775
+ ) || e.display === "flex" ? e : { ...e, display: "flex" } : {}, uo = ({
776
776
  dbEntryType: e,
777
777
  libraryId: t,
778
778
  sourceComponentsPlugin: n
779
779
  }) => {
780
780
  if (!(e != null && e.length))
781
781
  return;
782
- const o = n.components[Me(t, e)];
782
+ const o = n.components[ze(t, e)];
783
783
  if (!o || !("defaultAttributeValues" in o))
784
784
  return;
785
785
  const i = o.defaultAttributeValues;
786
786
  if (i != null && i.length)
787
- return i.reduce((r, u) => ({
787
+ return i.reduce((r, l) => ({
788
788
  ...r,
789
- [u.name]: u.defaultValues
789
+ [l.name]: l.defaultValues
790
790
  }), {});
791
791
  }, N = ({
792
792
  deviceDisplayType: e,
@@ -800,8 +800,8 @@ const hs = /* @__PURE__ */ D({
800
800
  )) {
801
801
  if (!s.includes("3-resolutions") || !i)
802
802
  continue;
803
- const r = i.all, u = r ?? i[e.toLowerCase()];
804
- o[s] = u, ye[s] && Object.assign(n, Wn(s, u));
803
+ const r = i.all, l = r ?? i[e.toLowerCase()];
804
+ o[s] = l, be[s] && Object.assign(n, lo(s, l));
805
805
  }
806
806
  return Object.keys(n).length || Object.keys(o).length ? {
807
807
  styles: Object.keys(n).length ? n : void 0,
@@ -809,27 +809,27 @@ const hs = /* @__PURE__ */ D({
809
809
  o
810
810
  ).length ? o : void 0
811
811
  } : void 0;
812
- }, Bn = ({
812
+ }, po = ({
813
813
  defaultAttributes: e,
814
814
  userModifiedAttributes: t
815
815
  }) => e ? t ? { ...e, ...t } : e : t;
816
- function Z(e) {
816
+ function ee(e) {
817
817
  return e.componentAttributes ?? e.widgetAttributes;
818
818
  }
819
- function Se({
819
+ function Re({
820
820
  col: e,
821
821
  deviceDisplayType: t,
822
822
  isComposeMode: n,
823
823
  sourceComponentsPlugin: o
824
824
  }) {
825
- const s = Z(e), i = Vn({
825
+ const s = ee(e), i = uo({
826
826
  dbEntryType: e.type,
827
827
  libraryId: e.libraryId,
828
828
  sourceComponentsPlugin: o
829
- }) || [], r = Bn({
829
+ }) || [], r = po({
830
830
  defaultAttributes: i,
831
831
  userModifiedAttributes: s
832
- }), { styles: u, componentAttributesSpecificToDeviceType: m } = N({
832
+ }), { styles: l, componentAttributesSpecificToDeviceType: u } = N({
833
833
  deviceDisplayType: t,
834
834
  componentAttributes: r
835
835
  }) || {
@@ -838,37 +838,45 @@ function Se({
838
838
  };
839
839
  let c = {};
840
840
  const a = {};
841
- if (u)
842
- for (const [p, l] of Object.entries(u))
843
- n && a[p] || (c = {
841
+ if (l)
842
+ for (const [d, h] of Object.entries(l))
843
+ n && a[d] || (c = {
844
844
  ...c,
845
- [p]: l
845
+ [d]: h
846
846
  });
847
- let d = Z(e);
848
- for (const p in m)
849
- if (p.includes("3-resolutions")) {
850
- d = {
851
- ...Z(e) || {},
852
- ...m || {}
847
+ let p = ee(e);
848
+ for (const d in u)
849
+ if (d.includes("3-resolutions")) {
850
+ p = {
851
+ ...ee(e) || {},
852
+ ...u || {}
853
853
  };
854
854
  break;
855
855
  }
856
+ const y = ao(c);
857
+ if (n && y.pointerEvents !== void 0) {
858
+ const d = { ...y };
859
+ return delete d.pointerEvents, {
860
+ componentAttributesBasedOnDevice: p,
861
+ componentStyles: d
862
+ };
863
+ }
856
864
  return {
857
- componentAttributesBasedOnDevice: d,
858
- componentStyles: jn(c)
865
+ componentAttributesBasedOnDevice: p,
866
+ componentStyles: y
859
867
  };
860
868
  }
861
- const Fn = (e) => {
869
+ const fo = (e) => {
862
870
  const t = (e == null ? void 0 : e.rows) || [];
863
871
  for (const n of t)
864
872
  if (((n == null ? void 0 : n.columns) || []).length > 0)
865
873
  return !0;
866
874
  return (e == null ? void 0 : e.containerAttributes) && Object.keys(e.containerAttributes).length > 0;
867
- }, Kn = "var(--sl-spacing-x-small)";
868
- function Un(e) {
875
+ }, yo = "var(--sl-spacing-x-small)";
876
+ function mo(e) {
869
877
  return e != null && e.horizontalAlignment || e != null && e.verticalAlignment || e != null && e.flexWrap || e != null && e.gap || e != null && e.alignContent ? !0 : !!(e != null && e.rowAttributes && Object.keys(e.rowAttributes).length > 0);
870
878
  }
871
- function _n({
879
+ function ho({
872
880
  row: e,
873
881
  deviceDisplayType: t
874
882
  }) {
@@ -879,16 +887,16 @@ function _n({
879
887
  });
880
888
  return ((o = n == null ? void 0 : n.componentAttributesSpecificToDeviceType) == null ? void 0 : o["hide-component-3-resolutions"]) === "true";
881
889
  }
882
- function Hn({
890
+ function go({
883
891
  row: e,
884
892
  deviceDisplayType: t,
885
893
  isComposeMode: n
886
894
  }) {
887
- var l;
888
- const o = ((l = N({
895
+ var d;
896
+ const o = ((d = N({
889
897
  deviceDisplayType: t,
890
898
  componentAttributes: e.rowAttributes
891
- })) == null ? void 0 : l.styles) || {}, s = o.justifyContent ?? e.horizontalAlignment ?? Ie.Center, i = o.alignItems ?? e.verticalAlignment ?? Ie.Center, r = o.flexDirection ?? "row", u = o.gap ?? e.gap ?? Kn, m = n ? "nowrap" : o.flexWrap ?? e.flexWrap ?? "nowrap", c = o.alignContent ?? e.alignContent ?? void 0, a = /* @__PURE__ */ new Set([
899
+ })) == null ? void 0 : d.styles) || {}, s = o.justifyContent ?? e.horizontalAlignment ?? xe.Center, i = o.alignItems ?? e.verticalAlignment ?? xe.Center, r = o.flexDirection ?? "row", l = o.gap ?? e.gap ?? yo, u = n ? "nowrap" : o.flexWrap ?? e.flexWrap ?? "nowrap", c = o.alignContent ?? e.alignContent ?? void 0, a = /* @__PURE__ */ new Set([
892
900
  "justifyContent",
893
901
  "alignItems",
894
902
  "flexDirection",
@@ -896,26 +904,26 @@ function Hn({
896
904
  "flexWrap",
897
905
  "alignContent",
898
906
  "display"
899
- ]), d = {};
900
- for (const [g, f] of Object.entries(o))
901
- a.has(g) || (d[g] = f);
902
- const p = {
907
+ ]), p = {};
908
+ for (const [h, m] of Object.entries(o))
909
+ a.has(h) || (p[h] = m);
910
+ const y = {
903
911
  display: "flex",
904
912
  flexDirection: r,
905
- gap: u,
906
- flexWrap: m,
913
+ gap: l,
914
+ flexWrap: u,
907
915
  justifyContent: s,
908
916
  alignItems: i,
909
- ...d
917
+ ...p
910
918
  };
911
- return c !== void 0 && (p.alignContent = c), p;
919
+ return c !== void 0 && (y.alignContent = c), y;
912
920
  }
913
- const me = "css-classes-3-resolutions", zn = 500, Gn = /[\x00-\x1f\x7f]/g, ge = (e) => {
921
+ const Ce = "css-classes-3-resolutions", bo = 500, Co = /[\x00-\x1f\x7f]/g, we = (e) => {
914
922
  if (typeof e != "string")
915
923
  return;
916
924
  const t = /* @__PURE__ */ new Set(), n = [];
917
925
  for (const s of e.split(/\s+/)) {
918
- const i = s.replace(Gn, "");
926
+ const i = s.replace(Co, "");
919
927
  i && (t.has(i) || (t.add(i), n.push(i)));
920
928
  }
921
929
  if (!n.length)
@@ -923,12 +931,12 @@ const me = "css-classes-3-resolutions", zn = 500, Gn = /[\x00-\x1f\x7f]/g, ge =
923
931
  let o = "";
924
932
  for (const s of n) {
925
933
  const i = o ? `${o} ${s}` : s;
926
- if (i.length > zn)
934
+ if (i.length > bo)
927
935
  break;
928
936
  o = i;
929
937
  }
930
938
  return o.length ? o : void 0;
931
- }, Ue = "hide-component-3-resolutions", Yn = "pointer-events-3-resolutions", qn = [
939
+ }, Qe = "hide-component-3-resolutions", wo = "pointer-events-3-resolutions", vo = [
932
940
  "width-3-resolutions",
933
941
  "min-width-3-resolutions",
934
942
  "max-width-3-resolutions",
@@ -943,12 +951,12 @@ const me = "css-classes-3-resolutions", zn = 500, Gn = /[\x00-\x1f\x7f]/g, ge =
943
951
  "overflow-3-resolutions",
944
952
  "overflow-x-3-resolutions",
945
953
  "overflow-y-3-resolutions",
946
- Ue,
947
- Yn
948
- ], Xn = new Set(
949
- qn
954
+ Qe,
955
+ wo
956
+ ], Ao = new Set(
957
+ vo
950
958
  );
951
- function he({
959
+ function ve({
952
960
  containerAttributes: e,
953
961
  deviceDisplayType: t
954
962
  }) {
@@ -957,9 +965,9 @@ function he({
957
965
  deviceDisplayType: t,
958
966
  componentAttributes: e
959
967
  });
960
- return ((o = n == null ? void 0 : n.componentAttributesSpecificToDeviceType) == null ? void 0 : o[Ue]) === "true";
968
+ return ((o = n == null ? void 0 : n.componentAttributesSpecificToDeviceType) == null ? void 0 : o[Qe]) === "true";
961
969
  }
962
- function _e({
970
+ function et({
963
971
  containerAttributes: e,
964
972
  deviceDisplayType: t,
965
973
  isComposeMode: n
@@ -969,7 +977,7 @@ function _e({
969
977
  return { styles: {} };
970
978
  const o = n ? Object.fromEntries(
971
979
  Object.entries(e).filter(
972
- ([r]) => !Xn.has(r)
980
+ ([r]) => !Ao.has(r)
973
981
  )
974
982
  ) : e, s = N({
975
983
  deviceDisplayType: t,
@@ -977,28 +985,28 @@ function _e({
977
985
  });
978
986
  return {
979
987
  styles: (s == null ? void 0 : s.styles) ?? {},
980
- cssClasses: ge(
981
- (i = s == null ? void 0 : s.componentAttributesSpecificToDeviceType) == null ? void 0 : i[me]
988
+ cssClasses: we(
989
+ (i = s == null ? void 0 : s.componentAttributesSpecificToDeviceType) == null ? void 0 : i[Ce]
982
990
  )
983
991
  };
984
992
  }
985
- function Zn(e) {
993
+ function So(e) {
986
994
  return Object.keys(e.styles).length > 0 || !!e.cssClasses;
987
995
  }
988
- function He({
996
+ function tt({
989
997
  containerAttributes: e,
990
998
  widgetContainerStyles: t
991
999
  }) {
992
- return ((e == null ? void 0 : e[se]) || []).some(
1000
+ return ((e == null ? void 0 : e[ce]) || []).some(
993
1001
  (o) => o.toLowerCase().startsWith("height:")
994
1002
  ) || t.styles.height !== void 0;
995
1003
  }
996
- const Jn = "z-index-3-resolutions", ze = 0;
997
- function Qn(e) {
1004
+ const Eo = "z-index-3-resolutions", nt = 0;
1005
+ function ko(e) {
998
1006
  var t, n;
999
1007
  return !!((n = (t = e == null ? void 0 : e.overlayLayers) == null ? void 0 : t.layers) != null && n.length);
1000
1008
  }
1001
- function De({
1009
+ function Oe({
1002
1010
  containerAttributes: e,
1003
1011
  deviceDisplayType: t
1004
1012
  }) {
@@ -1006,7 +1014,7 @@ function De({
1006
1014
  const n = N({
1007
1015
  deviceDisplayType: t,
1008
1016
  componentAttributes: e
1009
- }), o = (s = n == null ? void 0 : n.componentAttributesSpecificToDeviceType) == null ? void 0 : s[Jn];
1017
+ }), o = (s = n == null ? void 0 : n.componentAttributesSpecificToDeviceType) == null ? void 0 : s[Eo];
1010
1018
  if (typeof o == "number" && Number.isFinite(o))
1011
1019
  return o;
1012
1020
  if (typeof o == "string" && o.trim().length) {
@@ -1014,12 +1022,12 @@ function De({
1014
1022
  if (Number.isFinite(i))
1015
1023
  return i;
1016
1024
  }
1017
- return ze;
1025
+ return nt;
1018
1026
  }
1019
- function eo(e, t) {
1027
+ function To(e, t) {
1020
1028
  return e + t + 1;
1021
1029
  }
1022
- function to({
1030
+ function Io({
1023
1031
  containerAttributes: e,
1024
1032
  deviceDisplayType: t
1025
1033
  }) {
@@ -1030,17 +1038,17 @@ function to({
1030
1038
  }), o = (s = n == null ? void 0 : n.styles) == null ? void 0 : s.pointerEvents;
1031
1039
  return typeof o == "string" ? o : void 0;
1032
1040
  }
1033
- function no({
1041
+ function Po({
1034
1042
  layer: e,
1035
1043
  deviceDisplayType: t
1036
1044
  }) {
1037
1045
  var n;
1038
- return (n = e == null ? void 0 : e.rows) != null && n.length ? he({
1046
+ return (n = e == null ? void 0 : e.rows) != null && n.length ? ve({
1039
1047
  containerAttributes: e.containerAttributes,
1040
1048
  deviceDisplayType: t
1041
1049
  }) : !0;
1042
1050
  }
1043
- function oo({
1051
+ function Do({
1044
1052
  isWithinCollection: e,
1045
1053
  baseDeclaresOwnHeight: t,
1046
1054
  baseZIndex: n
@@ -1051,10 +1059,10 @@ function oo({
1051
1059
  display: "flex",
1052
1060
  flexDirection: "column",
1053
1061
  ...t ? {} : { height: e ? "auto" : "100%" },
1054
- ...n === ze ? {} : { zIndex: n }
1062
+ ...n === nt ? {} : { zIndex: n }
1055
1063
  };
1056
1064
  }
1057
- function so({
1065
+ function $o({
1058
1066
  zIndex: e,
1059
1067
  pointerEvents: t
1060
1068
  }) {
@@ -1069,8 +1077,8 @@ function so({
1069
1077
  ...t ? { pointerEvents: t } : {}
1070
1078
  };
1071
1079
  }
1072
- const be = "/";
1073
- function io({
1080
+ const Ae = "/";
1081
+ function Lo({
1074
1082
  componentProps: e,
1075
1083
  ancestorColumnIds: t,
1076
1084
  columnId: n
@@ -1079,40 +1087,40 @@ function io({
1079
1087
  return;
1080
1088
  const o = [...t ?? [], n];
1081
1089
  for (let s = 0; s < o.length; s += 1) {
1082
- const i = o.slice(s).join(be), r = e[i];
1090
+ const i = o.slice(s).join(Ae), r = e[i];
1083
1091
  if (r)
1084
1092
  return r;
1085
1093
  }
1086
1094
  }
1087
- function ro({
1095
+ function xo({
1088
1096
  displayItemList: e,
1089
1097
  widgetCollections: t
1090
1098
  }) {
1091
1099
  const n = [], o = (s, i) => {
1092
1100
  var r;
1093
1101
  if ((r = s == null ? void 0 : s.rows) != null && r.length)
1094
- for (const u of s.rows)
1095
- for (const m of u.columns) {
1096
- if (!m.id || m.type === ce.DroppableBox)
1102
+ for (const l of s.rows)
1103
+ for (const u of l.columns) {
1104
+ if (!u.id || u.type === fe.DroppableBox)
1097
1105
  continue;
1098
- const c = Ve(m.type);
1106
+ const c = Xe(u.type);
1099
1107
  if (c != null && c.length) {
1100
- const a = m.collection ?? (t == null ? void 0 : t[c]);
1101
- a && !i.includes(m.id) && o(a.collectionRows, [...i, m.id]);
1108
+ const a = u.collection ?? (t == null ? void 0 : t[c]);
1109
+ a && !i.includes(u.id) && o(a.collectionRows, [...i, u.id]);
1102
1110
  continue;
1103
1111
  }
1104
1112
  n.push(
1105
- [...i, m.id].join(be)
1113
+ [...i, u.id].join(Ae)
1106
1114
  );
1107
1115
  }
1108
1116
  };
1109
1117
  return o(e, []), n;
1110
1118
  }
1111
- function lo(e, t) {
1112
- const n = `${be}${e}`;
1119
+ function Ro(e, t) {
1120
+ const n = `${Ae}${e}`;
1113
1121
  return t.some((o) => o === e || o.endsWith(n));
1114
1122
  }
1115
- function co({
1123
+ function Oo({
1116
1124
  componentProps: e,
1117
1125
  displayItemList: t,
1118
1126
  widgetCollections: n
@@ -1120,13 +1128,13 @@ function co({
1120
1128
  const o = e ? Object.keys(e) : [];
1121
1129
  if (!o.length)
1122
1130
  return [];
1123
- const s = ro({
1131
+ const s = xo({
1124
1132
  displayItemList: t,
1125
1133
  widgetCollections: n
1126
1134
  });
1127
- return o.filter((i) => !lo(i, s));
1135
+ return o.filter((i) => !Ro(i, s));
1128
1136
  }
1129
- function ao({
1137
+ function _o({
1130
1138
  componentProps: e,
1131
1139
  displayItemList: t,
1132
1140
  widgetCollections: n,
@@ -1134,7 +1142,7 @@ function ao({
1134
1142
  }) {
1135
1143
  if (process.env.NODE_ENV === "production")
1136
1144
  return;
1137
- const s = co({
1145
+ const s = Oo({
1138
1146
  componentProps: e,
1139
1147
  displayItemList: t,
1140
1148
  widgetCollections: n
@@ -1143,68 +1151,68 @@ function ao({
1143
1151
  `RuleCMSWidget "${o}": componentProps ${s.map((i) => `"${i}"`).join(", ")} ${s.length === 1 ? "matches" : "match"} no component in this widget, so those props were not passed to anything. Keys are column ids from the widget config — the composer's Modify drawer shows the id of the selected component.`
1144
1152
  );
1145
1153
  }
1146
- function uo(e) {
1154
+ function jo(e) {
1147
1155
  return typeof e == "object" && e !== null && !Array.isArray(e);
1148
1156
  }
1149
- function po(e) {
1157
+ function Mo(e) {
1150
1158
  if (e.all !== void 0 && e.all !== null)
1151
1159
  return !1;
1152
1160
  const t = e.phone, n = e.tablet, o = e.desktop;
1153
1161
  return t !== n || t !== o || n !== o;
1154
1162
  }
1155
- function ie(e) {
1163
+ function ae(e) {
1156
1164
  var t, n;
1157
1165
  if (!((t = e == null ? void 0 : e.rows) != null && t.length))
1158
1166
  return !1;
1159
- if (ne(e.containerAttributes))
1167
+ if (re(e.containerAttributes))
1160
1168
  return !0;
1161
1169
  for (const o of e.rows) {
1162
- if (ne(o.rowAttributes))
1170
+ if (re(o.rowAttributes))
1163
1171
  return !0;
1164
1172
  for (const s of o.columns)
1165
- if (ne(Z(s)))
1173
+ if (re(ee(s)))
1166
1174
  return !0;
1167
1175
  }
1168
1176
  for (const o of ((n = e.overlayLayers) == null ? void 0 : n.layers) ?? [])
1169
- if (ie(o))
1177
+ if (ae(o))
1170
1178
  return !0;
1171
1179
  return !1;
1172
1180
  }
1173
- function ne(e) {
1181
+ function re(e) {
1174
1182
  if (!e)
1175
1183
  return !1;
1176
1184
  for (const [t, n] of Object.entries(e))
1177
- if (!(!t.includes("3-resolutions") || !uo(n))) {
1185
+ if (!(!t.includes("3-resolutions") || !jo(n))) {
1178
1186
  if (t === "hide-component-3-resolutions") {
1179
1187
  const o = n, s = (i) => i === "true" || i === !0;
1180
1188
  if (s(o.phone) !== s(o.tablet) || s(o.phone) !== s(o.desktop))
1181
1189
  return !0;
1182
1190
  continue;
1183
1191
  }
1184
- if (po(n))
1192
+ if (Mo(n))
1185
1193
  return !0;
1186
1194
  }
1187
1195
  return !1;
1188
1196
  }
1189
- function fo(e, t) {
1190
- if (ie(e))
1197
+ function No(e, t) {
1198
+ if (ae(e))
1191
1199
  return !0;
1192
1200
  for (const n of Object.values(t))
1193
- if (ie(n.collectionRows))
1201
+ if (ae(n.collectionRows))
1194
1202
  return !0;
1195
1203
  return !1;
1196
1204
  }
1197
- const Ge = parseInt(Fe, 10), Ye = parseInt(Ke, 10), yo = Ge + 1, mo = Ye + 1;
1198
- function go(e) {
1205
+ const ot = parseInt(Ze, 10), st = parseInt(qe, 10), Wo = ot + 1, Vo = st + 1;
1206
+ function Fo(e) {
1199
1207
  const t = `.${e}-phone`, n = `.${e}-tablet`, o = `.${e}-desktop`;
1200
1208
  return `
1201
1209
  ${t}, ${n}, ${o} { display: none; }
1202
- @media (max-width: ${Ge}px) { ${t} { display: block; } }
1203
- @media (min-width: ${yo}px) and (max-width: ${Ye}px) { ${n} { display: block; } }
1204
- @media (min-width: ${mo}px) { ${o} { display: block; } }
1210
+ @media (max-width: ${ot}px) { ${t} { display: block; } }
1211
+ @media (min-width: ${Wo}px) and (max-width: ${st}px) { ${n} { display: block; } }
1212
+ @media (min-width: ${Vo}px) { ${o} { display: block; } }
1205
1213
  `.trim();
1206
1214
  }
1207
- function oe(e) {
1215
+ function le(e) {
1208
1216
  if (!e)
1209
1217
  throw new Error("Source components plugin is required, but no plugins were provided");
1210
1218
  const t = e.sourceComponents;
@@ -1218,7 +1226,7 @@ function oe(e) {
1218
1226
  );
1219
1227
  return t;
1220
1228
  }
1221
- const ho = ["hidden"], ke = /* @__PURE__ */ D({
1229
+ const Bo = ["hidden"], _e = /* @__PURE__ */ A({
1222
1230
  __name: "EmbedInVerticalContainer",
1223
1231
  props: {
1224
1232
  displayItemList: {},
@@ -1231,59 +1239,59 @@ const ho = ["hidden"], ke = /* @__PURE__ */ D({
1231
1239
  const t = e;
1232
1240
  let n = 0;
1233
1241
  const o = `rulecms-vc-${++n}`;
1234
- function s(g, f, I) {
1235
- const v = g && !I ? 3 : 1;
1236
- return !!(f != null && f.length) && f.length > v;
1242
+ function s(h, m, S) {
1243
+ const w = h && !S ? 3 : 1;
1244
+ return !!(m != null && m.length) && m.length > w;
1237
1245
  }
1238
- const i = h(() => {
1239
- var f;
1240
- return (((f = t.displayItemList.containerAttributes) == null ? void 0 : f[se]) || []).join(`;
1246
+ const i = g(() => {
1247
+ var m;
1248
+ return (((m = t.displayItemList.containerAttributes) == null ? void 0 : m[ce]) || []).join(`;
1241
1249
  `);
1242
- }), r = h(
1250
+ }), r = g(
1243
1251
  () => i.value ? `.${o} {
1244
1252
  ${i.value}
1245
1253
  }` : ""
1246
- ), u = h(
1247
- () => !t.isComposeMode && he({
1254
+ ), l = g(
1255
+ () => !t.isComposeMode && ve({
1248
1256
  containerAttributes: t.displayItemList.containerAttributes,
1249
1257
  deviceDisplayType: t.deviceDisplayType
1250
1258
  })
1251
- ), m = h(
1252
- () => _e({
1259
+ ), u = g(
1260
+ () => et({
1253
1261
  containerAttributes: t.displayItemList.containerAttributes,
1254
1262
  deviceDisplayType: t.deviceDisplayType,
1255
1263
  isComposeMode: t.isComposeMode
1256
1264
  })
1257
- ), c = h(() => {
1258
- var I;
1259
- const g = ((I = t.displayItemList.containerAttributes) == null ? void 0 : I[se]) || [], f = Zn(m.value);
1260
- return t.isComposeMode && !t.isWithinCollection || t.showDropContainers || g.length > 0 || f || s(t.isComposeMode, t.displayItemList.rows, t.isWithinCollection);
1261
- }), a = h(
1262
- () => [i.value ? o : void 0, m.value.cssClasses].filter(Boolean).join(" ")
1263
- ), d = h(() => ({
1264
- ...He({
1265
+ ), c = g(() => {
1266
+ var S;
1267
+ const h = ((S = t.displayItemList.containerAttributes) == null ? void 0 : S[ce]) || [], m = So(u.value);
1268
+ return t.isComposeMode && !t.isWithinCollection || t.showDropContainers || h.length > 0 || m || s(t.isComposeMode, t.displayItemList.rows, t.isWithinCollection);
1269
+ }), a = g(
1270
+ () => [i.value ? o : void 0, u.value.cssClasses].filter(Boolean).join(" ")
1271
+ ), p = g(() => ({
1272
+ ...tt({
1265
1273
  containerAttributes: t.displayItemList.containerAttributes,
1266
- widgetContainerStyles: m.value
1274
+ widgetContainerStyles: u.value
1267
1275
  }) ? {} : { height: t.isWithinCollection ? "auto" : "100%" },
1268
1276
  display: "flex",
1269
1277
  flexDirection: "column",
1270
- ...m.value.styles
1271
- })), p = h(() => c.value ? a.value : ""), l = h(() => u.value ? { display: "none" } : c.value ? d.value : { display: "contents" });
1272
- return (g, f) => (y(), b("div", {
1273
- hidden: u.value || void 0,
1274
- class: H(p.value || void 0),
1275
- style: S(l.value)
1278
+ ...u.value.styles
1279
+ })), y = g(() => c.value ? a.value : ""), d = g(() => l.value ? { display: "none" } : c.value ? p.value : { display: "contents" });
1280
+ return (h, m) => (f(), b("div", {
1281
+ hidden: l.value || void 0,
1282
+ class: G(y.value || void 0),
1283
+ style: I(d.value)
1276
1284
  }, [
1277
- i.value ? (y(), w(M("style"), { key: 0 }, {
1278
- default: E(() => [
1279
- z(U(r.value), 1)
1285
+ i.value ? (f(), C(P("style"), { key: 0 }, {
1286
+ default: T(() => [
1287
+ R(L(r.value), 1)
1280
1288
  ]),
1281
1289
  _: 1
1282
- })) : P("", !0),
1283
- le(g.$slots, "default")
1284
- ], 14, ho));
1290
+ })) : k("", !0),
1291
+ pe(h.$slots, "default")
1292
+ ], 14, Bo));
1285
1293
  }
1286
- }), bo = ["hidden"], Te = /* @__PURE__ */ D({
1294
+ }), Ko = ["hidden"], je = /* @__PURE__ */ A({
1287
1295
  __name: "EmbedInRow",
1288
1296
  props: {
1289
1297
  row: {},
@@ -1294,40 +1302,40 @@ ${i.value}
1294
1302
  },
1295
1303
  setup(e) {
1296
1304
  const t = e;
1297
- function n(c, a, d) {
1298
- var l;
1299
- const p = c && !d ? 3 : 1;
1300
- return !!((l = a == null ? void 0 : a.columns) != null && l.length) && a.columns.length > p;
1305
+ function n(c, a, p) {
1306
+ var d;
1307
+ const y = c && !p ? 3 : 1;
1308
+ return !!((d = a == null ? void 0 : a.columns) != null && d.length) && a.columns.length > y;
1301
1309
  }
1302
- const o = h(
1303
- () => !t.isComposeMode && _n({ row: t.row, deviceDisplayType: t.deviceDisplayType })
1304
- ), s = h(
1305
- () => t.showDropContainers || Un(t.row) || n(t.isComposeMode, t.row, t.isWithinCollection)
1306
- ), i = h(
1307
- () => Hn({
1310
+ const o = g(
1311
+ () => !t.isComposeMode && ho({ row: t.row, deviceDisplayType: t.deviceDisplayType })
1312
+ ), s = g(
1313
+ () => t.showDropContainers || mo(t.row) || n(t.isComposeMode, t.row, t.isWithinCollection)
1314
+ ), i = g(
1315
+ () => go({
1308
1316
  row: t.row,
1309
1317
  deviceDisplayType: t.deviceDisplayType,
1310
1318
  isComposeMode: t.isComposeMode
1311
1319
  })
1312
- ), r = h(() => {
1320
+ ), r = g(() => {
1313
1321
  var a;
1314
1322
  const c = N({
1315
1323
  deviceDisplayType: t.deviceDisplayType,
1316
1324
  componentAttributes: t.row.rowAttributes
1317
1325
  });
1318
- return ge(
1319
- (a = c == null ? void 0 : c.componentAttributesSpecificToDeviceType) == null ? void 0 : a[me]
1326
+ return we(
1327
+ (a = c == null ? void 0 : c.componentAttributesSpecificToDeviceType) == null ? void 0 : a[Ce]
1320
1328
  ) ?? "";
1321
- }), u = h(() => s.value ? r.value : ""), m = h(() => o.value ? { display: "none" } : s.value ? i.value : { display: "contents" });
1322
- return (c, a) => (y(), b("div", {
1329
+ }), l = g(() => s.value ? r.value : ""), u = g(() => o.value ? { display: "none" } : s.value ? i.value : { display: "contents" });
1330
+ return (c, a) => (f(), b("div", {
1323
1331
  hidden: o.value || void 0,
1324
- class: H(u.value || void 0),
1325
- style: S(m.value)
1332
+ class: G(l.value || void 0),
1333
+ style: I(u.value)
1326
1334
  }, [
1327
- le(c.$slots, "default")
1328
- ], 14, bo));
1335
+ pe(c.$slots, "default")
1336
+ ], 14, Ko));
1329
1337
  }
1330
- }), qe = [
1338
+ }), it = [
1331
1339
  "minWidth",
1332
1340
  "maxWidth",
1333
1341
  "minHeight",
@@ -1379,20 +1387,20 @@ ${i.value}
1379
1387
  "textAlign",
1380
1388
  "textDecoration",
1381
1389
  "textTransform"
1382
- ], wo = (e) => e != null && e !== "", Co = (e) => e ? qe.reduce(
1390
+ ], zo = (e) => e != null && e !== "", Ho = (e) => e ? it.reduce(
1383
1391
  (t, n) => {
1384
1392
  const o = e[n];
1385
- return wo(o) && (t[n] = o), t;
1393
+ return zo(o) && (t[n] = o), t;
1386
1394
  },
1387
1395
  {}
1388
- ) : {}, vo = (e) => {
1396
+ ) : {}, Uo = (e) => {
1389
1397
  if (!e)
1390
1398
  return;
1391
1399
  const t = { ...e };
1392
- for (const n of qe)
1400
+ for (const n of it)
1393
1401
  delete t[n];
1394
1402
  return Object.keys(t).length ? t : void 0;
1395
- }, Ao = (e) => Object.keys(e).length > 0, Io = (e, t) => {
1403
+ }, Yo = (e) => Object.keys(e).length > 0, Go = (e, t) => {
1396
1404
  const n = (e == null ? void 0 : e.noContainer) ?? !1, o = e == null ? void 0 : e.resolveNoContainer;
1397
1405
  if (typeof o != "function")
1398
1406
  return n;
@@ -1410,7 +1418,7 @@ ${i.value}
1410
1418
  );
1411
1419
  }
1412
1420
  return n;
1413
- }, So = (e, t) => {
1421
+ }, Xo = (e, t) => {
1414
1422
  const n = e == null ? void 0 : e.resolveRendersOwnElement;
1415
1423
  if (typeof n != "function")
1416
1424
  return !1;
@@ -1428,7 +1436,7 @@ ${i.value}
1428
1436
  );
1429
1437
  }
1430
1438
  return !1;
1431
- }, xe = /* @__PURE__ */ D({
1439
+ }, Me = /* @__PURE__ */ A({
1432
1440
  __name: "DisplayComponent",
1433
1441
  props: {
1434
1442
  componentType: {},
@@ -1440,51 +1448,51 @@ ${i.value}
1440
1448
  mounts: {}
1441
1449
  },
1442
1450
  setup(e) {
1443
- const t = e, n = h(() => t.components[Me(t.libraryId, t.componentType)]), o = h(() => {
1444
- var g;
1445
- const l = (g = n.value) == null ? void 0 : g.card;
1446
- return l || (console.error(
1451
+ const t = e, n = g(() => t.components[ze(t.libraryId, t.componentType)]), o = g(() => {
1452
+ var h;
1453
+ const d = (h = n.value) == null ? void 0 : h.card;
1454
+ return d || (console.error(
1447
1455
  `DisplayComponent: Component with type ${t.componentType}${t.libraryId ? ` (library "${t.libraryId}")` : ""} not found in components`
1448
1456
  ), null);
1449
- }), s = h(() => ({
1457
+ }), s = g(() => ({
1450
1458
  componentAttributes: t.componentAttributes,
1451
1459
  styleProps: t.styleProps
1452
- })), i = h(
1453
- () => n.value ? Io(n.value, s.value) : !1
1454
- ), r = h(() => Co(t.styleProps)), u = h(
1455
- () => i.value ? vo(t.styleProps) : t.styleProps
1456
- ), m = h(
1460
+ })), i = g(
1461
+ () => n.value ? Go(n.value, s.value) : !1
1462
+ ), r = g(() => Ho(t.styleProps)), l = g(
1463
+ () => i.value ? Uo(t.styleProps) : t.styleProps
1464
+ ), u = g(
1457
1465
  () => {
1458
- var l;
1459
- return ge((l = t.componentAttributes) == null ? void 0 : l[me]);
1466
+ var d;
1467
+ return we((d = t.componentAttributes) == null ? void 0 : d[Ce]);
1460
1468
  }
1461
- ), c = h(() => i.value && Ao(r.value)), a = h(
1462
- () => !i.value || (n.value ? So(n.value, s.value) : !1)
1463
- ), d = h(
1464
- () => !c.value && a.value ? m.value : void 0
1465
- ), p = h(() => ({
1469
+ ), c = g(() => i.value && Yo(r.value)), a = g(
1470
+ () => !i.value || (n.value ? Xo(n.value, s.value) : !1)
1471
+ ), p = g(
1472
+ () => !c.value && a.value ? u.value : void 0
1473
+ ), y = g(() => ({
1466
1474
  componentAttributes: t.componentAttributes,
1467
- styleProps: u.value,
1468
- className: d.value,
1475
+ styleProps: l.value,
1476
+ className: p.value,
1469
1477
  widgetInstanceProps: t.widgetInstanceProps,
1470
1478
  mounts: t.mounts
1471
1479
  }));
1472
- return (l, g) => o.value ? (y(), b(A, { key: 0 }, [
1473
- c.value ? (y(), b("div", {
1480
+ return (d, h) => o.value ? (f(), b(E, { key: 0 }, [
1481
+ c.value ? (f(), b("div", {
1474
1482
  key: 0,
1475
- class: H(m.value || void 0),
1476
- style: S(r.value)
1483
+ class: G(u.value || void 0),
1484
+ style: I(r.value)
1477
1485
  }, [
1478
- (y(), w(M(o.value), Q(Ce(p.value)), null, 16))
1479
- ], 6)) : !a.value && m.value ? (y(), b("div", {
1486
+ (f(), C(P(o.value), oe(De(y.value)), null, 16))
1487
+ ], 6)) : !a.value && u.value ? (f(), b("div", {
1480
1488
  key: 1,
1481
- class: H(m.value)
1489
+ class: G(u.value)
1482
1490
  }, [
1483
- (y(), w(M(o.value), Q(Ce(p.value)), null, 16))
1484
- ], 2)) : (y(), w(M(o.value), Q(st({ key: 2 }, p.value)), null, 16))
1485
- ], 64)) : P("", !0);
1491
+ (f(), C(P(o.value), oe(De(y.value)), null, 16))
1492
+ ], 2)) : (f(), C(P(o.value), oe(Dt({ key: 2 }, y.value)), null, 16))
1493
+ ], 64)) : k("", !0);
1486
1494
  }
1487
- }), Do = ["data-rulecms-overlay-layer"], ko = /* @__PURE__ */ D({
1495
+ }), Jo = ["data-rulecms-overlay-layer"], Zo = /* @__PURE__ */ A({
1488
1496
  __name: "RenderComponentsInner",
1489
1497
  props: {
1490
1498
  displayItemList: {},
@@ -1500,122 +1508,122 @@ ${i.value}
1500
1508
  ancestorColumnIds: {}
1501
1509
  },
1502
1510
  setup(e) {
1503
- const t = e, n = () => oe(t.plugins).components, o = h(
1504
- () => !t.isComposeMode && Qn(t.displayItemList) && !he({
1511
+ const t = e, n = () => le(t.plugins).components, o = g(
1512
+ () => !t.isComposeMode && ko(t.displayItemList) && !ve({
1505
1513
  containerAttributes: t.displayItemList.containerAttributes,
1506
1514
  deviceDisplayType: t.deviceDisplayType
1507
1515
  })
1508
- ), s = h(() => {
1509
- const d = De({
1516
+ ), s = g(() => {
1517
+ const p = Oe({
1510
1518
  containerAttributes: t.displayItemList.containerAttributes,
1511
1519
  deviceDisplayType: t.deviceDisplayType
1512
1520
  });
1513
- return oo({
1521
+ return Do({
1514
1522
  isWithinCollection: t.isWithinCollection,
1515
- baseDeclaresOwnHeight: He({
1523
+ baseDeclaresOwnHeight: tt({
1516
1524
  containerAttributes: t.displayItemList.containerAttributes,
1517
- widgetContainerStyles: _e({
1525
+ widgetContainerStyles: et({
1518
1526
  containerAttributes: t.displayItemList.containerAttributes,
1519
1527
  deviceDisplayType: t.deviceDisplayType,
1520
1528
  isComposeMode: t.isComposeMode
1521
1529
  })
1522
1530
  }),
1523
- baseZIndex: d
1531
+ baseZIndex: p
1524
1532
  });
1525
- }), i = h(() => {
1526
- var l;
1527
- const d = ((l = t.displayItemList.overlayLayers) == null ? void 0 : l.layers) ?? [], p = De({
1533
+ }), i = g(() => {
1534
+ var d;
1535
+ const p = ((d = t.displayItemList.overlayLayers) == null ? void 0 : d.layers) ?? [], y = Oe({
1528
1536
  containerAttributes: t.displayItemList.containerAttributes,
1529
1537
  deviceDisplayType: t.deviceDisplayType
1530
1538
  });
1531
- return d.flatMap((g, f) => no({ layer: g, deviceDisplayType: t.deviceDisplayType }) ? [] : [
1539
+ return p.flatMap((h, m) => Po({ layer: h, deviceDisplayType: t.deviceDisplayType }) ? [] : [
1532
1540
  {
1533
- index: f,
1534
- layer: g,
1535
- boxStyles: so({
1536
- zIndex: eo(p, f),
1537
- pointerEvents: to({
1538
- containerAttributes: g.containerAttributes,
1541
+ index: m,
1542
+ layer: h,
1543
+ boxStyles: $o({
1544
+ zIndex: To(y, m),
1545
+ pointerEvents: Io({
1546
+ containerAttributes: h.containerAttributes,
1539
1547
  deviceDisplayType: t.deviceDisplayType
1540
1548
  })
1541
1549
  })
1542
1550
  }
1543
1551
  ]);
1544
1552
  });
1545
- function r(d) {
1546
- if (t.isComposeMode && d.type === ce.DroppableBox)
1553
+ function r(p) {
1554
+ if (t.isComposeMode && p.type === fe.DroppableBox)
1547
1555
  return !1;
1548
- const { componentAttributesBasedOnDevice: p } = Se({
1549
- col: d,
1556
+ const { componentAttributesBasedOnDevice: y } = Re({
1557
+ col: p,
1550
1558
  deviceDisplayType: t.deviceDisplayType,
1551
1559
  isComposeMode: t.isComposeMode,
1552
- sourceComponentsPlugin: oe(t.plugins)
1553
- }), l = !!p && p["hide-component-3-resolutions"] === "true";
1554
- return !(!t.isComposeMode && l);
1560
+ sourceComponentsPlugin: le(t.plugins)
1561
+ }), d = !!y && y["hide-component-3-resolutions"] === "true";
1562
+ return !(!t.isComposeMode && d);
1555
1563
  }
1556
- function u(d) {
1557
- const { componentAttributesBasedOnDevice: p, componentStyles: l } = Se({
1558
- col: d,
1564
+ function l(p) {
1565
+ const { componentAttributesBasedOnDevice: y, componentStyles: d } = Re({
1566
+ col: p,
1559
1567
  deviceDisplayType: t.deviceDisplayType,
1560
1568
  isComposeMode: t.isComposeMode,
1561
- sourceComponentsPlugin: oe(t.plugins)
1569
+ sourceComponentsPlugin: le(t.plugins)
1562
1570
  });
1563
1571
  return {
1564
- componentAttributes: p,
1565
- styleProps: l
1572
+ componentAttributes: y,
1573
+ styleProps: d
1566
1574
  };
1567
1575
  }
1568
- function m(d) {
1569
- const p = Ve(d.type);
1570
- if (!(p != null && p.length))
1576
+ function u(p) {
1577
+ const y = Xe(p.type);
1578
+ if (!(y != null && y.length))
1571
1579
  return null;
1572
- const l = d.collection ?? t.widgetCollections[p];
1573
- if (!l)
1580
+ const d = p.collection ?? t.widgetCollections[y];
1581
+ if (!d)
1574
1582
  throw new Error(
1575
- `DisplayCollection - Collection with ID ${p} not found in widgetCollections. Available collections: ${Object.keys(t.widgetCollections).join(", ")}`
1583
+ `DisplayCollection - Collection with ID ${y} not found in widgetCollections. Available collections: ${Object.keys(t.widgetCollections).join(", ")}`
1576
1584
  );
1577
- return !l.collectionRows || !Fn(l.collectionRows) ? null : l.collectionRows;
1585
+ return !d.collectionRows || !fo(d.collectionRows) ? null : d.collectionRows;
1578
1586
  }
1579
- function c(d) {
1580
- return [...t.ancestorColumnIds ?? [], d];
1587
+ function c(p) {
1588
+ return [...t.ancestorColumnIds ?? [], p];
1581
1589
  }
1582
- function a(d) {
1583
- return io({
1590
+ function a(p) {
1591
+ return Lo({
1584
1592
  componentProps: t.componentProps,
1585
1593
  ancestorColumnIds: t.ancestorColumnIds,
1586
- columnId: d
1594
+ columnId: p
1587
1595
  });
1588
1596
  }
1589
- return (d, p) => {
1590
- const l = it("RenderComponentsInner", !0);
1591
- return o.value ? (y(), b("div", {
1597
+ return (p, y) => {
1598
+ const d = $t("RenderComponentsInner", !0);
1599
+ return o.value ? (f(), b("div", {
1592
1600
  key: 0,
1593
- style: S(s.value)
1601
+ style: I(s.value)
1594
1602
  }, [
1595
- j(ke, {
1603
+ $(_e, {
1596
1604
  "display-item-list": e.displayItemList,
1597
1605
  "is-compose-mode": e.isComposeMode,
1598
1606
  "show-drop-containers": e.showDropContainers,
1599
1607
  "is-within-collection": e.isWithinCollection,
1600
1608
  "device-display-type": e.deviceDisplayType
1601
1609
  }, {
1602
- default: E(() => [
1603
- (y(!0), b(A, null, O(e.displayItemList.rows, (g) => (y(), w(Te, {
1604
- key: g.id,
1605
- row: g,
1610
+ default: T(() => [
1611
+ (f(!0), b(E, null, F(e.displayItemList.rows, (h) => (f(), C(je, {
1612
+ key: h.id,
1613
+ row: h,
1606
1614
  "is-compose-mode": e.isComposeMode,
1607
1615
  "show-drop-containers": e.showDropContainers,
1608
1616
  "is-within-collection": e.isWithinCollection,
1609
1617
  "device-display-type": e.deviceDisplayType
1610
1618
  }, {
1611
- default: E(() => [
1612
- (y(!0), b(A, null, O(g.columns, (f) => (y(), b(A, {
1613
- key: f.id
1619
+ default: T(() => [
1620
+ (f(!0), b(E, null, F(h.columns, (m) => (f(), b(E, {
1621
+ key: m.id
1614
1622
  }, [
1615
- r(f) ? (y(), b(A, { key: 0 }, [
1616
- m(f) ? (y(), w(l, {
1623
+ r(m) ? (f(), b(E, { key: 0 }, [
1624
+ u(m) ? (f(), C(d, {
1617
1625
  key: 0,
1618
- "display-item-list": m(f),
1626
+ "display-item-list": u(m),
1619
1627
  "is-compose-mode": e.isComposeMode,
1620
1628
  "is-within-collection": !0,
1621
1629
  "widget-collections": e.widgetCollections,
@@ -1625,18 +1633,18 @@ ${i.value}
1625
1633
  "device-display-type": e.deviceDisplayType,
1626
1634
  "component-props": e.componentProps,
1627
1635
  mounts: e.mounts,
1628
- "ancestor-column-ids": c(f.id)
1629
- }, null, 8, ["display-item-list", "is-compose-mode", "widget-collections", "show-drop-containers", "redux-device-display-type", "plugins", "device-display-type", "component-props", "mounts", "ancestor-column-ids"])) : (y(), w(xe, {
1636
+ "ancestor-column-ids": c(m.id)
1637
+ }, null, 8, ["display-item-list", "is-compose-mode", "widget-collections", "show-drop-containers", "redux-device-display-type", "plugins", "device-display-type", "component-props", "mounts", "ancestor-column-ids"])) : (f(), C(Me, {
1630
1638
  key: 1,
1631
- "component-type": f.type,
1632
- "library-id": f.libraryId,
1633
- "component-attributes": u(f).componentAttributes,
1639
+ "component-type": m.type,
1640
+ "library-id": m.libraryId,
1641
+ "component-attributes": l(m).componentAttributes,
1634
1642
  components: n(),
1635
- "style-props": u(f).styleProps,
1636
- "widget-instance-props": a(f.id),
1643
+ "style-props": l(m).styleProps,
1644
+ "widget-instance-props": a(m.id),
1637
1645
  mounts: e.mounts
1638
1646
  }, null, 8, ["component-type", "library-id", "component-attributes", "components", "style-props", "widget-instance-props", "mounts"]))
1639
- ], 64)) : P("", !0)
1647
+ ], 64)) : k("", !0)
1640
1648
  ], 64))), 128))
1641
1649
  ]),
1642
1650
  _: 2
@@ -1644,13 +1652,13 @@ ${i.value}
1644
1652
  ]),
1645
1653
  _: 1
1646
1654
  }, 8, ["display-item-list", "is-compose-mode", "show-drop-containers", "is-within-collection", "device-display-type"]),
1647
- (y(!0), b(A, null, O(i.value, (g) => (y(), b("div", {
1648
- key: g.index,
1649
- "data-rulecms-overlay-layer": g.index,
1650
- style: S(g.boxStyles)
1655
+ (f(!0), b(E, null, F(i.value, (h) => (f(), b("div", {
1656
+ key: h.index,
1657
+ "data-rulecms-overlay-layer": h.index,
1658
+ style: I(h.boxStyles)
1651
1659
  }, [
1652
- j(l, {
1653
- "display-item-list": g.layer,
1660
+ $(d, {
1661
+ "display-item-list": h.layer,
1654
1662
  "is-compose-mode": e.isComposeMode,
1655
1663
  "is-within-collection": !1,
1656
1664
  "widget-collections": e.widgetCollections,
@@ -1662,8 +1670,8 @@ ${i.value}
1662
1670
  mounts: e.mounts,
1663
1671
  "ancestor-column-ids": e.ancestorColumnIds
1664
1672
  }, null, 8, ["display-item-list", "is-compose-mode", "widget-collections", "redux-device-display-type", "plugins", "device-display-type", "component-props", "mounts", "ancestor-column-ids"])
1665
- ], 12, Do))), 128))
1666
- ], 4)) : (y(), w(ke, {
1673
+ ], 12, Jo))), 128))
1674
+ ], 4)) : (f(), C(_e, {
1667
1675
  key: 1,
1668
1676
  "display-item-list": e.displayItemList,
1669
1677
  "is-compose-mode": e.isComposeMode,
@@ -1671,23 +1679,23 @@ ${i.value}
1671
1679
  "is-within-collection": e.isWithinCollection,
1672
1680
  "device-display-type": e.deviceDisplayType
1673
1681
  }, {
1674
- default: E(() => [
1675
- (y(!0), b(A, null, O(e.displayItemList.rows, (g) => (y(), w(Te, {
1676
- key: g.id,
1677
- row: g,
1682
+ default: T(() => [
1683
+ (f(!0), b(E, null, F(e.displayItemList.rows, (h) => (f(), C(je, {
1684
+ key: h.id,
1685
+ row: h,
1678
1686
  "is-compose-mode": e.isComposeMode,
1679
1687
  "show-drop-containers": e.showDropContainers,
1680
1688
  "is-within-collection": e.isWithinCollection,
1681
1689
  "device-display-type": e.deviceDisplayType
1682
1690
  }, {
1683
- default: E(() => [
1684
- (y(!0), b(A, null, O(g.columns, (f) => (y(), b(A, {
1685
- key: f.id
1691
+ default: T(() => [
1692
+ (f(!0), b(E, null, F(h.columns, (m) => (f(), b(E, {
1693
+ key: m.id
1686
1694
  }, [
1687
- r(f) ? (y(), b(A, { key: 0 }, [
1688
- m(f) ? (y(), w(l, {
1695
+ r(m) ? (f(), b(E, { key: 0 }, [
1696
+ u(m) ? (f(), C(d, {
1689
1697
  key: 0,
1690
- "display-item-list": m(f),
1698
+ "display-item-list": u(m),
1691
1699
  "is-compose-mode": e.isComposeMode,
1692
1700
  "is-within-collection": !0,
1693
1701
  "widget-collections": e.widgetCollections,
@@ -1697,18 +1705,18 @@ ${i.value}
1697
1705
  "device-display-type": e.deviceDisplayType,
1698
1706
  "component-props": e.componentProps,
1699
1707
  mounts: e.mounts,
1700
- "ancestor-column-ids": c(f.id)
1701
- }, null, 8, ["display-item-list", "is-compose-mode", "widget-collections", "show-drop-containers", "redux-device-display-type", "plugins", "device-display-type", "component-props", "mounts", "ancestor-column-ids"])) : (y(), w(xe, {
1708
+ "ancestor-column-ids": c(m.id)
1709
+ }, null, 8, ["display-item-list", "is-compose-mode", "widget-collections", "show-drop-containers", "redux-device-display-type", "plugins", "device-display-type", "component-props", "mounts", "ancestor-column-ids"])) : (f(), C(Me, {
1702
1710
  key: 1,
1703
- "component-type": f.type,
1704
- "library-id": f.libraryId,
1705
- "component-attributes": u(f).componentAttributes,
1711
+ "component-type": m.type,
1712
+ "library-id": m.libraryId,
1713
+ "component-attributes": l(m).componentAttributes,
1706
1714
  components: n(),
1707
- "style-props": u(f).styleProps,
1708
- "widget-instance-props": a(f.id),
1715
+ "style-props": l(m).styleProps,
1716
+ "widget-instance-props": a(m.id),
1709
1717
  mounts: e.mounts
1710
1718
  }, null, 8, ["component-type", "library-id", "component-attributes", "components", "style-props", "widget-instance-props", "mounts"]))
1711
- ], 64)) : P("", !0)
1719
+ ], 64)) : k("", !0)
1712
1720
  ], 64))), 128))
1713
1721
  ]),
1714
1722
  _: 2
@@ -1718,7 +1726,7 @@ ${i.value}
1718
1726
  }, 8, ["display-item-list", "is-compose-mode", "show-drop-containers", "is-within-collection", "device-display-type"]));
1719
1727
  };
1720
1728
  }
1721
- }), re = /* @__PURE__ */ D({
1729
+ }), ue = /* @__PURE__ */ A({
1722
1730
  __name: "RenderComponentsForDevice",
1723
1731
  props: {
1724
1732
  displayItemList: {},
@@ -1736,7 +1744,7 @@ ${i.value}
1736
1744
  setup(e) {
1737
1745
  return (t, n) => {
1738
1746
  var o, s;
1739
- return (s = (o = e.displayItemList) == null ? void 0 : o.rows) != null && s.length ? (y(), w(ko, {
1747
+ return (s = (o = e.displayItemList) == null ? void 0 : o.rows) != null && s.length ? (f(), C(Zo, {
1740
1748
  key: 0,
1741
1749
  "display-item-list": e.displayItemList,
1742
1750
  "is-compose-mode": e.isComposeMode,
@@ -1749,26 +1757,26 @@ ${i.value}
1749
1757
  "component-props": e.componentProps,
1750
1758
  mounts: e.mounts,
1751
1759
  "ancestor-column-ids": e.ancestorColumnIds
1752
- }, null, 8, ["display-item-list", "is-compose-mode", "is-within-collection", "widget-collections", "show-drop-containers", "redux-device-display-type", "plugins", "device-display-type", "component-props", "mounts", "ancestor-column-ids"])) : P("", !0);
1760
+ }, null, 8, ["display-item-list", "is-compose-mode", "is-within-collection", "widget-collections", "show-drop-containers", "redux-device-display-type", "plugins", "device-display-type", "component-props", "mounts", "ancestor-column-ids"])) : k("", !0);
1753
1761
  };
1754
1762
  }
1755
- }), Xe = /* @__PURE__ */ D({
1763
+ }), rt = /* @__PURE__ */ A({
1756
1764
  __name: "LibraryStylesheets",
1757
1765
  props: {
1758
1766
  stylesheets: {}
1759
1767
  },
1760
1768
  setup(e) {
1761
- return (t, n) => (y(!0), b(A, null, O(e.stylesheets ?? [], (o) => (y(), w(M("style"), {
1769
+ return (t, n) => (f(!0), b(E, null, F(e.stylesheets ?? [], (o) => (f(), C(P("style"), {
1762
1770
  key: o,
1763
1771
  "data-rulecms-library-stylesheet": ""
1764
1772
  }, {
1765
- default: E(() => [
1766
- z(U(o), 1)
1773
+ default: T(() => [
1774
+ R(L(o), 1)
1767
1775
  ]),
1768
1776
  _: 2
1769
1777
  }, 1024))), 128));
1770
1778
  }
1771
- }), To = /* @__PURE__ */ D({
1779
+ }), qo = /* @__PURE__ */ A({
1772
1780
  __name: "BreakpointVariantRender",
1773
1781
  props: {
1774
1782
  displayItemList: {},
@@ -1781,40 +1789,40 @@ ${i.value}
1781
1789
  setup(e) {
1782
1790
  const t = ["Phone", "Tablet", "Desktop"];
1783
1791
  let n = 0;
1784
- const o = e, s = `rulecms-bp-${++n}`, i = h(() => o.scopeIdInput ?? s), r = h(
1785
- () => fo(o.displayItemList, o.widgetCollections)
1786
- ), u = h(() => go(i.value));
1787
- return (m, c) => {
1792
+ const o = e, s = `rulecms-bp-${++n}`, i = g(() => o.scopeIdInput ?? s), r = g(
1793
+ () => No(o.displayItemList, o.widgetCollections)
1794
+ ), l = g(() => Fo(i.value));
1795
+ return (u, c) => {
1788
1796
  var a;
1789
- return y(), b(A, null, [
1790
- j(Xe, {
1797
+ return f(), b(E, null, [
1798
+ $(rt, {
1791
1799
  stylesheets: (a = e.plugins.sourceComponents) == null ? void 0 : a.stylesheets
1792
1800
  }, null, 8, ["stylesheets"]),
1793
- r.value ? (y(), b(A, { key: 1 }, [
1794
- (y(), w(M("style"), null, {
1795
- default: E(() => [
1796
- z(U(u.value), 1)
1801
+ r.value ? (f(), b(E, { key: 1 }, [
1802
+ (f(), C(P("style"), null, {
1803
+ default: T(() => [
1804
+ R(L(l.value), 1)
1797
1805
  ]),
1798
1806
  _: 1
1799
1807
  })),
1800
- (y(), b(A, null, O(t, (d) => W("div", {
1801
- key: d,
1802
- class: H(`${i.value}-${d.toLowerCase()}`)
1808
+ (f(), b(E, null, F(t, (p) => V("div", {
1809
+ key: p,
1810
+ class: G(`${i.value}-${p.toLowerCase()}`)
1803
1811
  }, [
1804
- j(re, {
1812
+ $(ue, {
1805
1813
  "display-item-list": e.displayItemList,
1806
1814
  "is-compose-mode": !1,
1807
1815
  "is-within-collection": !1,
1808
1816
  "widget-collections": e.widgetCollections,
1809
1817
  "show-drop-containers": !1,
1810
1818
  "redux-device-display-type": "desktop",
1811
- "device-display-type": d,
1819
+ "device-display-type": p,
1812
1820
  plugins: e.plugins,
1813
1821
  "component-props": e.componentProps,
1814
1822
  mounts: e.mounts
1815
1823
  }, null, 8, ["display-item-list", "widget-collections", "device-display-type", "plugins", "component-props", "mounts"])
1816
1824
  ], 2)), 64))
1817
- ], 64)) : (y(), w(re, {
1825
+ ], 64)) : (f(), C(ue, {
1818
1826
  key: 0,
1819
1827
  "display-item-list": e.displayItemList,
1820
1828
  "is-compose-mode": !1,
@@ -1831,7 +1839,7 @@ ${i.value}
1831
1839
  };
1832
1840
  }
1833
1841
  });
1834
- function xo(e, t, n) {
1842
+ function Qo(e, t, n) {
1835
1843
  if (e)
1836
1844
  return "Phone";
1837
1845
  if (t)
@@ -1839,7 +1847,7 @@ function xo(e, t, n) {
1839
1847
  const o = (n == null ? void 0 : n.toLowerCase()) || "desktop";
1840
1848
  return o === "phone" ? "Phone" : o === "tablet" ? "Tablet" : "Desktop";
1841
1849
  }
1842
- const Eo = `(max-width: ${Fe})`, Po = `(max-width: ${Ke})`, $o = /* @__PURE__ */ D({
1850
+ const es = `(max-width: ${Ze})`, ts = `(max-width: ${qe})`, ns = /* @__PURE__ */ A({
1843
1851
  __name: "RenderComponents",
1844
1852
  props: {
1845
1853
  displayItemList: {},
@@ -1853,27 +1861,27 @@ const Eo = `(max-width: ${Fe})`, Po = `(max-width: ${Ke})`, $o = /* @__PURE__ */
1853
1861
  mounts: {}
1854
1862
  },
1855
1863
  setup(e) {
1856
- const t = e, n = _("Desktop");
1864
+ const t = e, n = Y("Desktop");
1857
1865
  let o, s;
1858
1866
  function i() {
1859
- n.value = xo(
1867
+ n.value = Qo(
1860
1868
  (o == null ? void 0 : o.matches) ?? !1,
1861
1869
  (s == null ? void 0 : s.matches) ?? !1,
1862
1870
  t.reduxDeviceDisplayType
1863
1871
  );
1864
1872
  }
1865
- return rt(() => {
1866
- typeof matchMedia == "function" && (o = matchMedia(Eo), s = matchMedia(Po), o.addEventListener("change", i), s.addEventListener("change", i)), i();
1867
- }), Re(() => {
1873
+ return Lt(() => {
1874
+ typeof matchMedia == "function" && (o = matchMedia(es), s = matchMedia(ts), o.addEventListener("change", i), s.addEventListener("change", i)), i();
1875
+ }), Ke(() => {
1868
1876
  o == null || o.removeEventListener("change", i), s == null || s.removeEventListener("change", i);
1869
- }), (r, u) => {
1870
- var m;
1871
- return y(), b(A, null, [
1872
- e.isWithinCollection ? P("", !0) : (y(), w(Xe, {
1877
+ }), (r, l) => {
1878
+ var u;
1879
+ return f(), b(E, null, [
1880
+ e.isWithinCollection ? k("", !0) : (f(), C(rt, {
1873
1881
  key: 0,
1874
- stylesheets: (m = e.plugins.sourceComponents) == null ? void 0 : m.stylesheets
1882
+ stylesheets: (u = e.plugins.sourceComponents) == null ? void 0 : u.stylesheets
1875
1883
  }, null, 8, ["stylesheets"])),
1876
- j(re, {
1884
+ $(ue, {
1877
1885
  "display-item-list": e.displayItemList,
1878
1886
  "is-compose-mode": e.isComposeMode,
1879
1887
  "is-within-collection": e.isWithinCollection,
@@ -1889,10 +1897,14 @@ const Eo = `(max-width: ${Fe})`, Po = `(max-width: ${Ke})`, $o = /* @__PURE__ */
1889
1897
  };
1890
1898
  }
1891
1899
  });
1892
- function Ze(e) {
1900
+ function lt(e) {
1893
1901
  return e !== !1;
1894
1902
  }
1895
- const Lo = (e) => e.replace(/\\/g, "\\\\").replace(/"/g, '\\"'), Ro = (e) => e.replace(/[^A-Za-z0-9_-]/g, (t) => `\\${t}`), Mo = ["</", "<script", "@import", "javascript:", "vbscript:", "expression("], No = /[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f]/, Wo = /[\s{};"]/, Oo = /^[A-Za-z0-9_:%./[\]%-]+$/, jo = (e) => {
1903
+ const os = ["utilities", "components"], ss = new Set(os), ct = (e) => typeof e == "string" && ss.has(e), is = (e) => e.split(`
1904
+ `).map((t) => t.length > 0 ? ` ${t}` : t).join(`
1905
+ `), rs = (e, t) => e ? ct(t) ? `@layer ${t} {
1906
+ ${is(e)}
1907
+ }` : e : null, ls = (e) => e.replace(/\\/g, "\\\\").replace(/"/g, '\\"'), cs = (e) => e.replace(/[^A-Za-z0-9_-]/g, (t) => `\\${t}`), as = ["</", "<script", "@import", "javascript:", "vbscript:", "expression("], us = /[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f]/, ds = /[\s{};"]/, ps = /^[A-Za-z0-9_:%./[\]%-]+$/, fs = (e) => {
1896
1908
  let t = 0;
1897
1909
  for (const n of e)
1898
1910
  if (n === "{")
@@ -1900,104 +1912,674 @@ const Lo = (e) => e.replace(/\\/g, "\\\\").replace(/"/g, '\\"'), Ro = (e) => e.r
1900
1912
  else if (n === "}" && (t -= 1, t < 0))
1901
1913
  return !1;
1902
1914
  return t === 0;
1903
- }, Vo = (e) => {
1915
+ }, ys = (e) => {
1904
1916
  const t = e.startsWith(".") ? e.slice(1) : e;
1905
- return !t || t.length > 200 || t.startsWith(".") || Wo.test(t) ? !1 : Oo.test(t);
1906
- }, Bo = (e) => {
1917
+ return !t || t.length > 200 || t.startsWith(".") || ds.test(t) ? !1 : ps.test(t);
1918
+ }, ms = (e) => {
1907
1919
  const t = e.trim();
1908
- if (!t || t.length > 4e3 || No.test(t) || !jo(t))
1920
+ if (!t || t.length > 4e3 || us.test(t) || !fs(t))
1909
1921
  return !1;
1910
1922
  const n = t.toLowerCase();
1911
- return !Mo.some((o) => n.includes(o));
1912
- }, Fo = (e) => {
1923
+ return !as.some((o) => n.includes(o));
1924
+ }, hs = (e) => {
1913
1925
  if (!e)
1914
1926
  return {};
1915
1927
  const t = {};
1916
1928
  for (const [n, o] of Object.entries(e)) {
1917
1929
  const s = n.startsWith(".") ? n.slice(1) : n.trim();
1918
- if (!Vo(s) || typeof o != "string")
1930
+ if (!ys(s) || typeof o != "string")
1919
1931
  continue;
1920
1932
  const i = o.trim();
1921
- Bo(i) && (t[s] = i);
1933
+ ms(i) && (t[s] = i);
1922
1934
  }
1923
1935
  return t;
1924
- }, Ko = (e) => e.split(`
1936
+ }, gs = (e) => e.split(`
1925
1937
  `).map((t) => ` ${t}`).join(`
1926
- `), Uo = (e, t, n) => {
1927
- if (!Ze(n))
1938
+ `), bs = (e, t, n, o) => {
1939
+ if (!lt(n))
1928
1940
  return null;
1929
- const o = Fo(t), s = Object.keys(o);
1930
- if (s.length === 0 || !e)
1941
+ const s = hs(t), i = Object.keys(s);
1942
+ if (i.length === 0 || !e)
1931
1943
  return null;
1932
- const i = `[data-rulecms-published-key="${Lo(e)}"]`;
1933
- return s.sort((r, u) => r.localeCompare(u)).map(
1934
- (r) => `${i} .${Ro(r)} {
1935
- ${Ko(o[r])}
1944
+ const r = `[data-rulecms-published-key="${ls(e)}"]`, l = i.sort((u, c) => u.localeCompare(c)).map(
1945
+ (u) => `${r} .${cs(u)} {
1946
+ ${gs(s[u])}
1936
1947
  }`
1937
1948
  ).join(`
1938
1949
  `);
1939
- }, _o = /* @__PURE__ */ D({
1950
+ return rs(l, o);
1951
+ }, Cs = /* @__PURE__ */ A({
1940
1952
  __name: "ProjectCssClassesStylesheet",
1941
1953
  props: {
1942
1954
  publishedKey: {},
1943
- classes: {}
1955
+ classes: {},
1956
+ classLayer: {}
1944
1957
  },
1945
1958
  setup(e) {
1946
- const t = e, n = h(
1947
- () => Uo(t.publishedKey, t.classes)
1959
+ const t = e, n = g(
1960
+ () => bs(
1961
+ t.publishedKey,
1962
+ t.classes,
1963
+ void 0,
1964
+ t.classLayer
1965
+ )
1948
1966
  );
1949
- return (o, s) => n.value ? (y(), w(M("style"), {
1967
+ return (o, s) => n.value ? (f(), C(P("style"), {
1950
1968
  key: 0,
1951
1969
  "data-rulecms-project-class-definitions": ""
1952
1970
  }, {
1953
- default: E(() => [
1954
- z(U(n.value), 1)
1971
+ default: T(() => [
1972
+ R(L(n.value), 1)
1973
+ ]),
1974
+ _: 1
1975
+ })) : k("", !0);
1976
+ }
1977
+ });
1978
+ function Se(e) {
1979
+ return e !== !1;
1980
+ }
1981
+ const at = (e) => e.replace(/\\/g, "\\\\").replace(/"/g, '\\"'), ws = /* @__PURE__ */ new Set([
1982
+ "serif",
1983
+ "sans-serif",
1984
+ "monospace",
1985
+ "cursive",
1986
+ "fantasy",
1987
+ "system-ui",
1988
+ "ui-sans-serif",
1989
+ "ui-serif",
1990
+ "ui-monospace",
1991
+ "ui-rounded",
1992
+ "emoji",
1993
+ "math",
1994
+ "fangsong"
1995
+ ]), vs = /^[a-zA-Z_\u00A0-\uFFFF-][a-zA-Z0-9_\u00A0-\uFFFF-]*$/, As = /url\(|@|[{};\\<>]|javascript:/i, Ss = /url\(|@|[{};\\<>]|javascript:|expression\(/i, Es = /^--[A-Za-z_][\w-]*$/, ks = /^[A-Za-z0-9 ]+$/, Ts = /* @__PURE__ */ new Set([100, 200, 300, 400, 500, 600, 700, 800, 900]), Is = 4, Ps = 8, Ds = 255, de = (e) => ws.has(e.toLowerCase()) || vs.test(e) ? e : `"${e.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`, Ne = (e) => typeof e == "string" && e.trim() !== "" && e.trim().length <= 80 && !e.includes(",") && !As.test(e), $s = (e) => typeof e == "string" && Es.test(e.trim()) && e.trim().length <= 80, Ls = (e) => typeof e == "string" && e.trim() !== "" && e.trim().length <= 400 && !Ss.test(e), xs = (e) => typeof e != "number" || !Number.isInteger(e) || e < 0 || e > Ds ? null : e, Rs = (e, t, n) => {
1996
+ if (!Array.isArray(e))
1997
+ return [];
1998
+ const o = [];
1999
+ for (const s of e) {
2000
+ if (!s || typeof s != "object" || o.length >= Is)
2001
+ continue;
2002
+ const i = s;
2003
+ if (!$s(i.name))
2004
+ continue;
2005
+ const r = i.name.trim();
2006
+ if (t.has(r))
2007
+ continue;
2008
+ const l = [], u = /* @__PURE__ */ new Set();
2009
+ for (const a of i.overrideColors ?? []) {
2010
+ if (l.length >= Ps)
2011
+ break;
2012
+ const p = xs(a == null ? void 0 : a.index);
2013
+ p === null || u.has(p) || !Ls(a == null ? void 0 : a.color) || (u.add(p), l.push({ index: p, color: a.color.trim() }));
2014
+ }
2015
+ l.sort((a, p) => a.index - p.index);
2016
+ const c = i.applyToWidget === !0 && !n.current;
2017
+ c && (n.current = !0), t.add(r), o.push({
2018
+ name: r,
2019
+ ...l.length > 0 ? { overrideColors: l } : {},
2020
+ ...c ? { applyToWidget: !0 } : {}
2021
+ });
2022
+ }
2023
+ return o;
2024
+ }, ne = (e) => {
2025
+ var r;
2026
+ if (!Array.isArray(e))
2027
+ return [];
2028
+ const t = [], n = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), s = { current: !1 };
2029
+ let i = !1;
2030
+ for (const l of e) {
2031
+ if (!l || !Ne(l.family))
2032
+ continue;
2033
+ const u = l.family.trim(), c = u.toLowerCase();
2034
+ if (n.has(c) || t.length >= 12)
2035
+ continue;
2036
+ const a = (l.fallbacks ?? []).filter(Ne).slice(0, 8), p = typeof l.cssVariable == "string" && U(l.cssVariable.trim()) ? l.cssVariable.trim() : void 0;
2037
+ let y = { kind: "stack-only" };
2038
+ if (((r = l.source) == null ? void 0 : r.kind) === "google") {
2039
+ if (!ks.test(u))
2040
+ continue;
2041
+ const S = (Array.isArray(l.source.weights) ? l.source.weights : []).filter((w) => typeof w == "number" && Ts.has(w)).filter((w, D, O) => O.indexOf(w) === D).sort((w, D) => w - D);
2042
+ if (S.length === 0)
2043
+ continue;
2044
+ y = { kind: "google", weights: S };
2045
+ }
2046
+ n.add(c);
2047
+ const d = l.applyToWidget === !0 && !i;
2048
+ d && (i = !0);
2049
+ const h = Rs(l.palettes, o, s);
2050
+ t.push({
2051
+ family: u,
2052
+ ...p ? { cssVariable: p } : {},
2053
+ fallbacks: a,
2054
+ applyToWidget: d,
2055
+ source: y,
2056
+ ...h.length > 0 ? { palettes: h } : {}
2057
+ });
2058
+ }
2059
+ return t;
2060
+ }, Os = (e) => {
2061
+ const t = ne(e).filter((n) => n.source.kind === "google").map((n) => {
2062
+ const o = n.source.kind === "google" ? n.source.weights.join(";") : "400";
2063
+ return `family=${n.family.replace(/ /g, "+")}:wght@${o}`;
2064
+ });
2065
+ return t.length === 0 ? null : `https://fonts.googleapis.com/css2?${t.join("&")}&display=swap`;
2066
+ }, _s = (e) => [de(e.family), ...(e.fallbacks ?? []).map(de)].join(", "), js = (e) => {
2067
+ const t = [];
2068
+ for (const n of e)
2069
+ for (const o of n.palettes ?? []) {
2070
+ const s = [` font-family: ${de(n.family)};`];
2071
+ if (o.overrideColors && o.overrideColors.length > 0) {
2072
+ const i = o.overrideColors.map((r) => `${r.index} ${r.color}`).join(", ");
2073
+ s.push(` override-colors: ${i};`);
2074
+ }
2075
+ t.push(`@font-palette-values ${o.name} {
2076
+ ${s.join(`
2077
+ `)}
2078
+ }`);
2079
+ }
2080
+ return t.length > 0 ? t.join(`
2081
+
2082
+ `) : null;
2083
+ }, Ms = (e) => {
2084
+ for (const t of e)
2085
+ for (const n of t.palettes ?? [])
2086
+ if (n.applyToWidget)
2087
+ return n.name;
2088
+ }, Ns = (e, t, n) => {
2089
+ if (!Se(n) || !e)
2090
+ return null;
2091
+ const o = ne(t), s = [];
2092
+ for (const c of o) {
2093
+ const a = _s(c);
2094
+ c.cssVariable && s.push(` ${c.cssVariable}: ${a};`), c.applyToWidget && s.push(
2095
+ ` font-family: ${c.cssVariable ? `var(${c.cssVariable})` : a};`
2096
+ );
2097
+ }
2098
+ const i = Ms(o);
2099
+ i && s.push(` font-palette: ${i};`);
2100
+ const r = js(o), l = `[data-rulecms-published-key="${at(e)}"] > *`, u = s.length > 0 ? `${l} {
2101
+ ${s.join(`
2102
+ `)}
2103
+ }` : null;
2104
+ return !r && !u ? null : r ? u ? `${r}
2105
+
2106
+ ${u}` : r : u;
2107
+ }, Ws = ["href"], Vs = /* @__PURE__ */ A({
2108
+ __name: "ProjectCssFontsStylesheet",
2109
+ props: {
2110
+ publishedKey: {},
2111
+ fonts: {},
2112
+ includeFontFaces: { type: [Boolean, null] }
2113
+ },
2114
+ setup(e) {
2115
+ const t = e, n = g(() => ne(t.fonts)), o = g(
2116
+ () => Se(t.includeFontFaces) ? Os(n.value) : null
2117
+ ), s = g(
2118
+ () => Ns(t.publishedKey, n.value, t.includeFontFaces)
2119
+ );
2120
+ return (i, r) => (f(), b(E, null, [
2121
+ o.value ? (f(), b("link", {
2122
+ key: 0,
2123
+ rel: "stylesheet",
2124
+ href: o.value,
2125
+ "data-rulecms-project-fonts": ""
2126
+ }, null, 8, Ws)) : k("", !0),
2127
+ s.value ? (f(), C(P("style"), {
2128
+ key: 1,
2129
+ "data-rulecms-project-fonts": ""
2130
+ }, {
2131
+ default: T(() => [
2132
+ R(L(s.value), 1)
2133
+ ]),
2134
+ _: 1
2135
+ })) : k("", !0)
2136
+ ], 64));
2137
+ }
2138
+ });
2139
+ function ut(e) {
2140
+ return e !== !1;
2141
+ }
2142
+ const Fs = 80, Bs = 4e3, Ks = 32, dt = [
2143
+ "url(",
2144
+ "@import",
2145
+ "@font-face",
2146
+ "@media",
2147
+ "@keyframes",
2148
+ "</",
2149
+ "<script",
2150
+ "javascript:",
2151
+ "expression(",
2152
+ "behavior:"
2153
+ ], zs = /[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f]/, Hs = /^[A-Za-z_][\w-]*$/, Us = (e) => {
2154
+ let t = 0;
2155
+ for (const n of e)
2156
+ if (n === "{")
2157
+ t += 1;
2158
+ else if (n === "}" && (t -= 1, t < 0))
2159
+ return !1;
2160
+ return t === 0;
2161
+ }, Ys = (e) => {
2162
+ if (!e || e.length > Fs || e.includes("@") || e.includes(".") || /\s/.test(e))
2163
+ return !1;
2164
+ const t = e.toLowerCase();
2165
+ return dt.some((n) => t.includes(n)) ? !1 : Hs.test(e);
2166
+ }, Gs = (e) => {
2167
+ const t = e.trim();
2168
+ if (t === "")
2169
+ return !1;
2170
+ const n = t.toLowerCase();
2171
+ if (n === "from" || n === "to")
2172
+ return !0;
2173
+ const o = t.match(/^(\d{1,3}(?:\.\d+)?)%$/);
2174
+ if (!o)
2175
+ return !1;
2176
+ const s = Number(o[1]);
2177
+ return s >= 0 && s <= 100;
2178
+ }, Xs = (e) => {
2179
+ let t = 0;
2180
+ const n = e.length;
2181
+ let o = 0;
2182
+ const s = () => {
2183
+ for (; t < n && /\s/.test(e[t]); )
2184
+ t += 1;
2185
+ };
2186
+ for (s(); t < n; ) {
2187
+ const i = e.indexOf("{", t);
2188
+ if (i === -1 || !e.slice(t, i).trim().split(",").every((c) => Gs(c)))
2189
+ return !1;
2190
+ t = i + 1;
2191
+ const l = e.indexOf("}", t);
2192
+ if (l === -1)
2193
+ return !1;
2194
+ const u = e.slice(t, l);
2195
+ if (u.includes("{") || u.includes("}") || u.includes("@"))
2196
+ return !1;
2197
+ t = l + 1, o += 1, s();
2198
+ }
2199
+ return o > 0;
2200
+ }, Js = (e) => {
2201
+ const t = e.trim();
2202
+ if (!t || t.length > Bs || zs.test(t) || !Us(t))
2203
+ return !1;
2204
+ const n = t.toLowerCase();
2205
+ return dt.some((o) => n.includes(o)) || t.includes("@") ? !1 : Xs(t);
2206
+ }, pt = (e) => {
2207
+ if (!e)
2208
+ return {};
2209
+ const t = {};
2210
+ for (const [n, o] of Object.entries(e)) {
2211
+ const s = n.trim();
2212
+ if (!Ys(s) || t[s] !== void 0 || typeof o != "string")
2213
+ continue;
2214
+ const i = o.trim();
2215
+ if (Js(i) && (t[s] = i, Object.keys(t).length === Ks))
2216
+ break;
2217
+ }
2218
+ return Object.fromEntries(
2219
+ Object.entries(t).sort(([n], [o]) => n.localeCompare(o))
2220
+ );
2221
+ }, Zs = (e) => e.split(`
2222
+ `).map((t) => ` ${t}`).join(`
2223
+ `), qs = (e, t, n) => {
2224
+ if (!ut(n))
2225
+ return null;
2226
+ const o = pt(t), s = Object.keys(o);
2227
+ return s.length === 0 ? null : s.map((i) => `@keyframes ${i} {
2228
+ ${Zs(o[i])}
2229
+ }`).join(`
2230
+
2231
+ `);
2232
+ }, Qs = /* @__PURE__ */ A({
2233
+ __name: "ProjectCssKeyframesStylesheet",
2234
+ props: {
2235
+ publishedKey: {},
2236
+ keyframes: {}
2237
+ },
2238
+ setup(e) {
2239
+ const t = e, n = g(
2240
+ () => qs(t.publishedKey, t.keyframes)
2241
+ );
2242
+ return (o, s) => n.value ? (f(), C(P("style"), {
2243
+ key: 0,
2244
+ "data-rulecms-project-keyframes": ""
2245
+ }, {
2246
+ default: T(() => [
2247
+ R(L(n.value), 1)
1955
2248
  ]),
1956
2249
  _: 1
1957
- })) : P("", !0);
2250
+ })) : k("", !0);
1958
2251
  }
1959
- }), Ho = (e) => e.replace(/\\/g, "\\\\").replace(/"/g, '\\"'), zo = /[{};]/, Go = (e) => {
2252
+ }), ft = (e) => e !== !1, ei = 80, ti = 2e3, ni = 16, yt = ["url(", "@", "</", "<script", "javascript:", "expression("], oi = /[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f]/, si = /^--[A-Za-z_][\w-]*$/, ii = (e) => {
2253
+ for (const t of e)
2254
+ if (t === "{" || t === "}")
2255
+ return !1;
2256
+ return !0;
2257
+ }, ri = (e) => {
2258
+ if (!e || e.length > ei || e.includes("@") || e.includes(".") || /\s/.test(e))
2259
+ return !1;
2260
+ const t = e.toLowerCase();
2261
+ return yt.some((n) => t.includes(n)) ? !1 : si.test(e);
2262
+ }, li = (e) => {
2263
+ const t = e.trim();
2264
+ if (!t || t.length > ti || oi.test(t) || !ii(t))
2265
+ return !1;
2266
+ const n = t.toLowerCase();
2267
+ return !yt.some((o) => n.includes(o));
2268
+ }, mt = (e) => {
1960
2269
  if (!e)
1961
2270
  return {};
1962
2271
  const t = {};
1963
2272
  for (const [n, o] of Object.entries(e)) {
1964
- if (!ue(n) || typeof o != "string")
2273
+ const s = n.trim();
2274
+ if (!ri(s) || t[s] !== void 0 || typeof o != "string")
2275
+ continue;
2276
+ const i = o.trim();
2277
+ if (li(i) && (t[s] = i, Object.keys(t).length === ni))
2278
+ break;
2279
+ }
2280
+ return Object.fromEntries(
2281
+ Object.entries(t).sort(([n], [o]) => n.localeCompare(o))
2282
+ );
2283
+ }, ci = (e) => e.split(`
2284
+ `).map((t) => ` ${t}`).join(`
2285
+ `), ai = (e, t, n) => {
2286
+ if (!ft(n))
2287
+ return null;
2288
+ const o = mt(t), s = Object.keys(o);
2289
+ return s.length === 0 ? null : s.map((i) => `@position-try ${i} {
2290
+ ${ci(o[i])}
2291
+ }`).join(`
2292
+
2293
+ `);
2294
+ }, ui = /* @__PURE__ */ A({
2295
+ __name: "ProjectCssPositionTryStylesheet",
2296
+ props: {
2297
+ publishedKey: {},
2298
+ positionTry: {}
2299
+ },
2300
+ setup(e) {
2301
+ const t = e, n = g(
2302
+ () => ai(t.publishedKey, t.positionTry)
2303
+ );
2304
+ return (o, s) => n.value ? (f(), C(P("style"), {
2305
+ key: 0,
2306
+ "data-rulecms-project-position-try": ""
2307
+ }, {
2308
+ default: T(() => [
2309
+ R(L(n.value), 1)
2310
+ ]),
2311
+ _: 1
2312
+ })) : k("", !0);
2313
+ }
2314
+ });
2315
+ function ht(e) {
2316
+ return e !== !1;
2317
+ }
2318
+ const di = [
2319
+ "*",
2320
+ "<number>",
2321
+ "<integer>",
2322
+ "<length>",
2323
+ "<percentage>",
2324
+ "<length-percentage>",
2325
+ "<color>",
2326
+ "<angle>",
2327
+ "<time>",
2328
+ "<transform-function>",
2329
+ "<transform-list>"
2330
+ ], pi = new Set(di), fi = /[{};]/, yi = 40, mi = 200, hi = (e) => typeof e == "string" && pi.has(e), gi = (e, t) => t !== "*" && e === "" ? !1 : t === "*" && e === "" ? !0 : !(e.length > mi || fi.test(e) || e.includes("url(") || e.includes("@")), gt = (e) => {
2331
+ if (!Array.isArray(e))
2332
+ return [];
2333
+ const t = [], n = /* @__PURE__ */ new Set();
2334
+ for (const o of e) {
2335
+ if (!o || typeof o.name != "string" || !U(o.name.trim()))
2336
+ continue;
2337
+ const s = o.name.trim();
2338
+ if (n.has(s) || t.length >= yi || !hi(o.syntax) || typeof o.inherits != "boolean")
2339
+ continue;
2340
+ const i = typeof o.initialValue == "string" ? o.initialValue.trim() : "";
2341
+ gi(i, o.syntax) && (n.add(s), t.push({
2342
+ name: s,
2343
+ syntax: o.syntax,
2344
+ inherits: o.inherits,
2345
+ initialValue: i
2346
+ }));
2347
+ }
2348
+ return t;
2349
+ }, bi = (e) => {
2350
+ const t = [
2351
+ `@property ${e.name} {`,
2352
+ ` syntax: "${e.syntax}";`,
2353
+ ` inherits: ${e.inherits ? "true" : "false"};`
2354
+ ];
2355
+ return e.initialValue !== "" && t.push(` initial-value: ${e.initialValue};`), t.push("}"), t.join(`
2356
+ `);
2357
+ }, Ci = (e, t, n) => {
2358
+ if (!ht(n))
2359
+ return null;
2360
+ const o = gt(t);
2361
+ return o.length === 0 ? null : o.map(bi).join(`
2362
+
2363
+ `);
2364
+ }, wi = /* @__PURE__ */ A({
2365
+ __name: "ProjectCssPropertiesStylesheet",
2366
+ props: {
2367
+ publishedKey: {},
2368
+ cssProperties: {}
2369
+ },
2370
+ setup(e) {
2371
+ const t = e, n = g(
2372
+ () => Ci(t.publishedKey, t.cssProperties)
2373
+ );
2374
+ return (o, s) => n.value ? (f(), C(P("style"), {
2375
+ key: 0,
2376
+ "data-rulecms-project-css-properties": ""
2377
+ }, {
2378
+ default: T(() => [
2379
+ R(L(n.value), 1)
2380
+ ]),
2381
+ _: 1
2382
+ })) : k("", !0);
2383
+ }
2384
+ });
2385
+ function bt(e) {
2386
+ return e !== !1;
2387
+ }
2388
+ const Ct = (e) => e.replace(/\\/g, "\\\\").replace(/"/g, '\\"'), vi = /[{};]/, Ai = (e) => {
2389
+ if (!e)
2390
+ return {};
2391
+ const t = {};
2392
+ for (const [n, o] of Object.entries(e)) {
2393
+ if (!U(n) || typeof o != "string")
1965
2394
  continue;
1966
2395
  const s = o.trim();
1967
- s === "" || zo.test(s) || (t[n.trim()] = s);
2396
+ s === "" || vi.test(s) || (t[n.trim()] = s);
1968
2397
  }
1969
2398
  return t;
1970
- }, Yo = (e, t) => {
1971
- const n = Go(t), o = Object.keys(n);
1972
- if (o.length === 0 || !e)
2399
+ }, Si = (e, t, n) => {
2400
+ if (!bt(n))
1973
2401
  return null;
1974
- const s = `[data-rulecms-published-key="${Ho(e)}"] > *`, i = o.sort((r, u) => r.localeCompare(u)).map((r) => ` ${r}: ${n[r]};`).join(`
2402
+ const o = Ai(t), s = Object.keys(o);
2403
+ if (s.length === 0 || !e)
2404
+ return null;
2405
+ const i = `[data-rulecms-published-key="${Ct(e)}"] > *`, r = s.sort((l, u) => l.localeCompare(u)).map((l) => ` ${l}: ${o[l]};`).join(`
1975
2406
  `);
1976
- return `${s} {
1977
- ${i}
2407
+ return `${i} {
2408
+ ${r}
1978
2409
  }`;
1979
- }, qo = /* @__PURE__ */ D({
2410
+ };
2411
+ function wt(e) {
2412
+ return e !== !1;
2413
+ }
2414
+ const Ei = 5, ki = 200, Ti = [
2415
+ { kind: "prefers-color-scheme", value: "dark" },
2416
+ { kind: "prefers-color-scheme", value: "light" },
2417
+ { kind: "html-class", value: "dark" },
2418
+ { kind: "data-theme", value: "dark" },
2419
+ { kind: "data-theme", value: "light" }
2420
+ ], Ii = /[{};]/, Pi = (e) => {
2421
+ if (typeof e != "object" || e === null || Array.isArray(e))
2422
+ return !1;
2423
+ const t = e;
2424
+ return Ti.some(
2425
+ (n) => n.kind === t.kind && n.value === t.value
2426
+ );
2427
+ }, Di = (e) => {
2428
+ if (!e || typeof e != "object" || Array.isArray(e))
2429
+ return {};
2430
+ const t = {};
2431
+ for (const [n, o] of Object.entries(e)) {
2432
+ if (!U(n) || typeof o != "string")
2433
+ continue;
2434
+ const s = o.trim();
2435
+ s === "" || Ii.test(s) || s.includes("url(") || s.includes("@") || (t[n.trim()] = s);
2436
+ }
2437
+ return Object.fromEntries(
2438
+ Object.entries(t).sort(([n], [o]) => n.localeCompare(o))
2439
+ );
2440
+ }, vt = (e) => {
2441
+ if (!Array.isArray(e))
2442
+ return [];
2443
+ const t = [], n = /* @__PURE__ */ new Set();
2444
+ let o = 0;
2445
+ for (const s of e) {
2446
+ if (!s || !Pi(s.condition))
2447
+ continue;
2448
+ const i = `${s.condition.kind}:${s.condition.value}`;
2449
+ if (n.has(i))
2450
+ continue;
2451
+ const r = Di(s.variables), l = o + Object.keys(r).length;
2452
+ if (!(Object.keys(r).length === 0 || l > ki) && (n.add(i), o = l, t.push({ condition: s.condition, variables: r }), t.length === Ei))
2453
+ break;
2454
+ }
2455
+ return t;
2456
+ }, $i = (e, t) => {
2457
+ const n = Object.entries(e).map(([o, s]) => ` ${o}: ${s};`);
2458
+ return `${t} {
2459
+ ${n.join(`
2460
+ `)}
2461
+ }`;
2462
+ }, Li = (e) => e.split(`
2463
+ `).map((t) => ` ${t}`).join(`
2464
+ `), xi = (e, t) => {
2465
+ const n = $i(e.variables, t), { kind: o, value: s } = e.condition;
2466
+ return o === "prefers-color-scheme" ? `@media (prefers-color-scheme: ${s}) {
2467
+ ${Li(n)}
2468
+ }` : o === "html-class" ? `html.${s} ${n}` : `[data-theme="${s}"] ${n}`;
2469
+ }, Ri = (e, t, n) => {
2470
+ if (!wt(n) || !e)
2471
+ return null;
2472
+ const o = vt(t);
2473
+ if (o.length === 0)
2474
+ return null;
2475
+ const s = `[data-rulecms-published-key="${Ct(e)}"] > *`;
2476
+ return o.map((i) => xi(i, s)).join(`
2477
+
2478
+ `);
2479
+ }, Oi = /* @__PURE__ */ A({
2480
+ __name: "ProjectCssThemesStylesheet",
2481
+ props: {
2482
+ publishedKey: {},
2483
+ themes: {}
2484
+ },
2485
+ setup(e) {
2486
+ const t = e, n = g(
2487
+ () => Ri(t.publishedKey, t.themes)
2488
+ );
2489
+ return (o, s) => n.value ? (f(), C(P("style"), {
2490
+ key: 0,
2491
+ "data-rulecms-project-themes": ""
2492
+ }, {
2493
+ default: T(() => [
2494
+ R(L(n.value), 1)
2495
+ ]),
2496
+ _: 1
2497
+ })) : k("", !0);
2498
+ }
2499
+ }), _i = /* @__PURE__ */ A({
1980
2500
  __name: "ProjectCssVariablesStylesheet",
1981
2501
  props: {
1982
2502
  publishedKey: {},
1983
2503
  variables: {}
1984
2504
  },
1985
2505
  setup(e) {
1986
- const t = e, n = h(
1987
- () => Yo(t.publishedKey, t.variables)
2506
+ const t = e, n = g(
2507
+ () => Si(t.publishedKey, t.variables)
1988
2508
  );
1989
- return (o, s) => n.value ? (y(), w(M("style"), {
2509
+ return (o, s) => n.value ? (f(), C(P("style"), {
1990
2510
  key: 0,
1991
2511
  "data-rulecms-project-css-variables": ""
1992
2512
  }, {
1993
- default: E(() => [
1994
- z(U(n.value), 1)
2513
+ default: T(() => [
2514
+ R(L(n.value), 1)
1995
2515
  ]),
1996
2516
  _: 1
1997
- })) : P("", !0);
2517
+ })) : k("", !0);
1998
2518
  }
1999
2519
  });
2000
- function Xo(e) {
2520
+ function At(e) {
2521
+ return e !== !1;
2522
+ }
2523
+ const ji = [
2524
+ "light",
2525
+ "dark",
2526
+ "light dark"
2527
+ ], Mi = ["auto", "thin", "none"], Ni = new Set(ji), Wi = new Set(Mi), Vi = /[{};]|url\(|@/i, Fi = (e) => typeof e == "string" && e.trim() !== "" && e.trim().length <= 400 && !Vi.test(e), q = (e) => Fi(e) ? e.trim() : void 0, St = (e) => {
2528
+ if (!e || typeof e != "object" || Array.isArray(e))
2529
+ return null;
2530
+ const t = q(e.selectionBackground), n = q(e.selectionColor), o = q(e.caretColor), s = q(e.scrollbarColor), i = {
2531
+ ...typeof e.colorScheme == "string" && Ni.has(e.colorScheme) ? { colorScheme: e.colorScheme } : {},
2532
+ ...t ? { selectionBackground: t } : {},
2533
+ ...n ? { selectionColor: n } : {},
2534
+ ...o ? { caretColor: o } : {},
2535
+ ...s ? { scrollbarColor: s } : {},
2536
+ ...typeof e.scrollbarWidth == "string" && Wi.has(e.scrollbarWidth) ? { scrollbarWidth: e.scrollbarWidth } : {}
2537
+ };
2538
+ return Object.keys(i).length > 0 ? i : null;
2539
+ }, Bi = (e, t, n) => {
2540
+ if (!At(n) || !e)
2541
+ return null;
2542
+ const o = St(t);
2543
+ if (!o)
2544
+ return null;
2545
+ const s = `[data-rulecms-published-key="${at(e)}"]`, i = [];
2546
+ o.colorScheme && i.push(` color-scheme: ${o.colorScheme};`), o.caretColor && i.push(` caret-color: ${o.caretColor};`), o.scrollbarWidth && i.push(` scrollbar-width: ${o.scrollbarWidth};`), o.scrollbarColor && i.push(` scrollbar-color: ${o.scrollbarColor};`);
2547
+ const r = [];
2548
+ o.selectionBackground && r.push(` background: ${o.selectionBackground};`), o.selectionColor && r.push(` color: ${o.selectionColor};`);
2549
+ const l = [];
2550
+ return i.length > 0 && l.push(`${s} > * {
2551
+ ${i.join(`
2552
+ `)}
2553
+ }`), r.length > 0 && l.push(`${s} > * ::selection {
2554
+ ${r.join(`
2555
+ `)}
2556
+ }`), l.length > 0 ? l.join(`
2557
+ `) : null;
2558
+ }, Ki = /* @__PURE__ */ A({
2559
+ __name: "ProjectCssWidgetChromeStylesheet",
2560
+ props: {
2561
+ publishedKey: {},
2562
+ widgetChrome: {}
2563
+ },
2564
+ setup(e) {
2565
+ const t = e, n = g(
2566
+ () => Bi(t.publishedKey, t.widgetChrome)
2567
+ );
2568
+ return (o, s) => n.value ? (f(), C(P("style"), {
2569
+ key: 0,
2570
+ "data-rulecms-project-widget-chrome": ""
2571
+ }, {
2572
+ default: T(() => [
2573
+ R(L(n.value), 1)
2574
+ ]),
2575
+ _: 1
2576
+ })) : k("", !0);
2577
+ }
2578
+ });
2579
+ function zi(e) {
2580
+ return e !== !1;
2581
+ }
2582
+ function Hi(e) {
2001
2583
  const t = {};
2002
2584
  return Object.entries(e).forEach(([n, o]) => {
2003
2585
  const s = { ...o };
@@ -2011,64 +2593,72 @@ function Xo(e) {
2011
2593
  s.parentId && (i = `${i}@${s.parentId}`), t[i] = s;
2012
2594
  }), t;
2013
2595
  }
2014
- function Zo(e) {
2596
+ function Ui(e) {
2015
2597
  return typeof e.itemList == "string" ? JSON.parse(e.itemList) : e.itemList;
2016
2598
  }
2017
- function Je(e) {
2599
+ function Et(e) {
2600
+ const t = ne(e.fontFaces), n = pt(e.keyframes), o = vt(e.themes), s = gt(e.cssProperties), i = St(e.widgetChrome), r = mt(e.positionTry), l = zi(e.includeClassLayer) && ct(e.classLayer) ? e.classLayer : void 0;
2018
2601
  return {
2019
- displayItemList: Zo(e.widget),
2020
- widgetCollections: Xo(e.childCollections),
2602
+ displayItemList: Ui(e.widget),
2603
+ widgetCollections: Hi(e.childCollections),
2021
2604
  ...e.libraries ? { libraries: e.libraries } : {},
2022
- ...e.cssVariables && Object.keys(e.cssVariables).length > 0 ? { cssVariables: e.cssVariables } : {},
2023
- ...Ze(e.includeClassDefinitions) && e.classDefinitions && Object.keys(e.classDefinitions).length > 0 ? { classDefinitions: e.classDefinitions } : {}
2605
+ ...bt(e.includeCssVariables) && e.cssVariables && Object.keys(e.cssVariables).length > 0 ? { cssVariables: e.cssVariables } : {},
2606
+ ...lt(e.includeClassDefinitions) && e.classDefinitions && Object.keys(e.classDefinitions).length > 0 ? { classDefinitions: e.classDefinitions } : {},
2607
+ ...Se(e.includeFontFaces) && t.length > 0 ? { fontFaces: t } : {},
2608
+ ...ut(e.includeKeyframes) && Object.keys(n).length > 0 ? { keyframes: n } : {},
2609
+ ...wt(e.includeThemes) && o.length > 0 ? { themes: o } : {},
2610
+ ...ht(e.includeCssProperties) && s.length > 0 ? { cssProperties: s } : {},
2611
+ ...At(e.includeWidgetChrome) && i ? { widgetChrome: i } : {},
2612
+ ...l ? { classLayer: l } : {},
2613
+ ...ft(e.includePositionTry) && Object.keys(r).length > 0 ? { positionTry: r } : {}
2024
2614
  };
2025
2615
  }
2026
- function Jo(e) {
2027
- const t = e.registry ?? J(), n = ae({
2616
+ function Yi(e) {
2617
+ const t = e.registry ?? te(), n = ye({
2028
2618
  displayItemList: e.displayItemList,
2029
2619
  widgetCollections: e.widgetCollections
2030
2620
  });
2031
2621
  return t.resolveSync({ registrations: e.libraries, referenced: n });
2032
2622
  }
2033
- function Qo(e) {
2034
- const t = e.registry ?? J(), n = ae({
2623
+ function Gi(e) {
2624
+ const t = e.registry ?? te(), n = ye({
2035
2625
  displayItemList: e.displayItemList,
2036
2626
  widgetCollections: e.widgetCollections
2037
2627
  });
2038
2628
  return t.resolve({ registrations: e.libraries, referenced: n });
2039
2629
  }
2040
- const es = {
2630
+ const Xi = {
2041
2631
  display: "flex",
2042
2632
  justifyContent: "center",
2043
2633
  alignItems: "center",
2044
2634
  padding: "3rem",
2045
2635
  color: "#e2e8f0"
2046
- }, ts = {
2636
+ }, Ji = {
2047
2637
  display: "flex",
2048
2638
  alignItems: "center",
2049
2639
  gap: "1rem"
2050
- }, ns = {
2640
+ }, Zi = {
2051
2641
  width: "40px",
2052
2642
  height: "40px",
2053
2643
  border: "4px solid #4a5568",
2054
2644
  borderTopColor: "#63b3ed",
2055
2645
  borderRadius: "50%",
2056
2646
  animation: "spin 1s linear infinite"
2057
- }, Ee = {
2647
+ }, We = {
2058
2648
  padding: "1.5rem",
2059
2649
  backgroundColor: "#742a2a",
2060
2650
  border: "1px solid #9b2c2c",
2061
2651
  borderRadius: "8px",
2062
2652
  color: "#fed7d7"
2063
- }, Pe = {
2653
+ }, Ve = {
2064
2654
  fontSize: "16px",
2065
2655
  fontWeight: "600",
2066
2656
  marginBottom: "0.5rem",
2067
2657
  color: "#feb2b2"
2068
- }, $e = {
2658
+ }, Fe = {
2069
2659
  fontSize: "14px",
2070
2660
  color: "#fed7d7"
2071
- }, os = `
2661
+ }, qi = `
2072
2662
  @keyframes spin {
2073
2663
  from {
2074
2664
  transform: rotate(0deg);
@@ -2077,7 +2667,7 @@ const es = {
2077
2667
  transform: rotate(360deg);
2078
2668
  }
2079
2669
  }
2080
- `, vs = "data-rulecms-published-key", ss = ["data-rulecms-published-key"], As = /* @__PURE__ */ D({
2670
+ `, hr = "data-rulecms-published-key", Qi = ["data-rulecms-published-key"], gr = /* @__PURE__ */ A({
2081
2671
  __name: "RuleCMSWidget",
2082
2672
  props: {
2083
2673
  publishedKey: {},
@@ -2090,94 +2680,94 @@ const es = {
2090
2680
  mounts: {}
2091
2681
  },
2092
2682
  setup(e) {
2093
- const t = e, n = lt(Be, null), o = _(!1), s = _(null), i = _(null), r = _(null), u = h(() => t.mode === "pre-fetched"), m = h(() => ({
2683
+ const t = e, n = xt(Je, null), o = Y(!1), s = Y(null), i = Y(null), r = Y(null), l = g(() => t.mode === "pre-fetched"), u = g(() => ({
2094
2684
  sourceComponents: r.value ?? void 0
2095
2685
  }));
2096
- let c = null, a = null, d = !1;
2097
- function p() {
2686
+ let c = null, a = null, p = !1;
2687
+ function y() {
2098
2688
  if (!i.value) {
2099
2689
  r.value = null;
2100
2690
  return;
2101
2691
  }
2102
- const v = t.libraries ?? (n == null ? void 0 : n.libraries), T = n == null ? void 0 : n.libraryRegistry, L = Jo({
2692
+ const w = t.libraries ?? (n == null ? void 0 : n.libraries), D = n == null ? void 0 : n.libraryRegistry, O = Yi({
2103
2693
  displayItemList: i.value.displayItemList,
2104
2694
  widgetCollections: i.value.widgetCollections,
2105
- libraries: v,
2106
- registry: T
2695
+ libraries: w,
2696
+ registry: D
2107
2697
  });
2108
- if (L) {
2109
- r.value = L;
2698
+ if (O) {
2699
+ r.value = O;
2110
2700
  return;
2111
2701
  }
2112
- Qo({
2702
+ Gi({
2113
2703
  displayItemList: i.value.displayItemList,
2114
2704
  widgetCollections: i.value.widgetCollections,
2115
- libraries: v,
2116
- registry: T
2117
- }).then((V) => {
2118
- r.value = V;
2705
+ libraries: w,
2706
+ registry: D
2707
+ }).then((B) => {
2708
+ r.value = B;
2119
2709
  });
2120
2710
  }
2121
- function l() {
2122
- i.value && ao({
2711
+ function d() {
2712
+ i.value && _o({
2123
2713
  componentProps: t.componentProps,
2124
2714
  displayItemList: i.value.displayItemList,
2125
2715
  widgetCollections: i.value.widgetCollections,
2126
2716
  publishedKey: t.publishedKey
2127
2717
  });
2128
2718
  }
2129
- function g() {
2130
- if (d || typeof document > "u")
2719
+ function h() {
2720
+ if (p || typeof document > "u")
2131
2721
  return;
2132
- const v = "rulecms-widget-spinner-styles";
2133
- if (!document.getElementById(v)) {
2134
- const T = document.createElement("style");
2135
- T.id = v, T.textContent = os, document.head.appendChild(T);
2722
+ const w = "rulecms-widget-spinner-styles";
2723
+ if (!document.getElementById(w)) {
2724
+ const D = document.createElement("style");
2725
+ D.id = w, D.textContent = qi, document.head.appendChild(D);
2136
2726
  }
2137
- d = !0;
2727
+ p = !0;
2138
2728
  }
2139
- function f() {
2140
- const v = t.token ?? (n == null ? void 0 : n.token), T = t.endpoint ?? (n == null ? void 0 : n.endpoint);
2141
- if (!t.publishedKey || !v) {
2142
- s.value = t.publishedKey ? "Token is required. Provide it either directly as a prop (`token`) or via RuleCMSWidgetProvider." : B(v) ? "Widget key is required" : "Published key is required", i.value = null;
2729
+ function m() {
2730
+ const w = t.token ?? (n == null ? void 0 : n.token), D = t.endpoint ?? (n == null ? void 0 : n.endpoint);
2731
+ if (!t.publishedKey || !w) {
2732
+ s.value = t.publishedKey ? "Token is required. Provide it either directly as a prop (`token`) or via RuleCMSWidgetProvider." : K(w) ? "Widget key is required" : "Published key is required", i.value = null;
2143
2733
  return;
2144
2734
  }
2145
- const L = `${t.publishedKey}|${v}`;
2146
- if (a === L && i.value) {
2147
- p();
2735
+ const O = `${t.publishedKey}|${w}`;
2736
+ if (a === O && i.value) {
2737
+ y();
2148
2738
  return;
2149
2739
  }
2150
2740
  c == null || c.abort(), c = new AbortController();
2151
- const V = c.signal;
2152
- a = L, o.value = !0, s.value = null;
2153
- const Qe = Oe({ publishedKey: t.publishedKey, token: v, endpoint: T });
2154
- fetch(Qe, {
2741
+ const B = c.signal;
2742
+ a = O, o.value = !0, s.value = null;
2743
+ const J = Ye({ publishedKey: t.publishedKey, token: w, endpoint: D });
2744
+ fetch(J, {
2155
2745
  method: "GET",
2156
2746
  headers: { "Content-Type": "application/json" },
2157
- ...B(v) ? { cache: "no-store" } : {},
2158
- signal: V
2159
- }).then(async (R) => {
2160
- if (R.ok) {
2161
- const Y = await R.json();
2162
- Y.success ? (i.value = Je(Y.data), s.value = null, p(), l()) : (s.value = "Failed to fetch widget data", i.value = null);
2747
+ ...K(w) ? { cache: "no-store" } : {},
2748
+ signal: B
2749
+ }).then(async (x) => {
2750
+ if (x.ok) {
2751
+ const W = await x.json();
2752
+ W.success ? (i.value = Et(W.data), s.value = null, y(), d()) : (s.value = "Failed to fetch widget data", i.value = null);
2163
2753
  } else {
2164
- const Y = await R.json().catch(() => ({ error: "Unknown error" }));
2165
- s.value = Y.error || `Request failed with status ${R.status}`, i.value = null;
2754
+ const W = await x.json().catch(() => ({ error: "Unknown error" }));
2755
+ s.value = W.error || `Request failed with status ${x.status}`, i.value = null;
2166
2756
  }
2167
- }).catch((R) => {
2168
- R instanceof DOMException && R.name === "AbortError" || (console.error("Error fetching widget:", R), s.value = "Failed to fetch widget", i.value = null);
2757
+ }).catch((x) => {
2758
+ x instanceof DOMException && x.name === "AbortError" || (console.error("Error fetching widget:", x), s.value = "Failed to fetch widget", i.value = null);
2169
2759
  }).finally(() => {
2170
2760
  o.value = !1;
2171
2761
  });
2172
2762
  }
2173
- function I() {
2763
+ function S() {
2174
2764
  if (t.mode === "pre-fetched") {
2175
- i.value = t.initialData ?? null, o.value = !1, s.value = null, p(), l();
2765
+ i.value = t.initialData ?? null, o.value = !1, s.value = null, y(), d();
2176
2766
  return;
2177
2767
  }
2178
- g(), f();
2768
+ h(), m();
2179
2769
  }
2180
- return Le(
2770
+ return Be(
2181
2771
  () => [
2182
2772
  t.publishedKey,
2183
2773
  t.token,
@@ -2188,65 +2778,90 @@ const es = {
2188
2778
  t.componentProps
2189
2779
  ],
2190
2780
  () => {
2191
- I();
2781
+ S();
2192
2782
  },
2193
2783
  { immediate: !0 }
2194
- ), Re(() => {
2784
+ ), Ke(() => {
2195
2785
  c == null || c.abort();
2196
- }), (v, T) => {
2197
- var L, V;
2198
- return y(), b("span", {
2786
+ }), (w, D) => {
2787
+ var O, B, J, x, W, Ee, ke, Te, Ie;
2788
+ return f(), b("span", {
2199
2789
  "data-rulecms-published-key": e.publishedKey,
2200
2790
  style: { display: "contents" }
2201
2791
  }, [
2202
- j(qo, {
2792
+ $(Vs, {
2793
+ "published-key": e.publishedKey,
2794
+ fonts: (O = i.value) == null ? void 0 : O.fontFaces
2795
+ }, null, 8, ["published-key", "fonts"]),
2796
+ $(Qs, {
2797
+ "published-key": e.publishedKey,
2798
+ keyframes: (B = i.value) == null ? void 0 : B.keyframes
2799
+ }, null, 8, ["published-key", "keyframes"]),
2800
+ $(Oi, {
2801
+ "published-key": e.publishedKey,
2802
+ themes: (J = i.value) == null ? void 0 : J.themes
2803
+ }, null, 8, ["published-key", "themes"]),
2804
+ $(wi, {
2805
+ "published-key": e.publishedKey,
2806
+ "css-properties": (x = i.value) == null ? void 0 : x.cssProperties
2807
+ }, null, 8, ["published-key", "css-properties"]),
2808
+ $(Ki, {
2809
+ "published-key": e.publishedKey,
2810
+ "widget-chrome": (W = i.value) == null ? void 0 : W.widgetChrome
2811
+ }, null, 8, ["published-key", "widget-chrome"]),
2812
+ $(ui, {
2813
+ "published-key": e.publishedKey,
2814
+ "position-try": (Ee = i.value) == null ? void 0 : Ee.positionTry
2815
+ }, null, 8, ["published-key", "position-try"]),
2816
+ $(_i, {
2203
2817
  "published-key": e.publishedKey,
2204
- variables: (L = i.value) == null ? void 0 : L.cssVariables
2818
+ variables: (ke = i.value) == null ? void 0 : ke.cssVariables
2205
2819
  }, null, 8, ["published-key", "variables"]),
2206
- j(_o, {
2820
+ $(Cs, {
2207
2821
  "published-key": e.publishedKey,
2208
- classes: (V = i.value) == null ? void 0 : V.classDefinitions
2209
- }, null, 8, ["published-key", "classes"]),
2210
- e.mode !== "pre-fetched" && o.value ? (y(), b("div", {
2822
+ classes: (Te = i.value) == null ? void 0 : Te.classDefinitions,
2823
+ "class-layer": (Ie = i.value) == null ? void 0 : Ie.classLayer
2824
+ }, null, 8, ["published-key", "classes", "class-layer"]),
2825
+ e.mode !== "pre-fetched" && o.value ? (f(), b("div", {
2211
2826
  key: 0,
2212
- style: S(x(es))
2827
+ style: I(j(Xi))
2213
2828
  }, [
2214
- W("div", {
2215
- style: S(x(ts))
2829
+ V("div", {
2830
+ style: I(j(Ji))
2216
2831
  }, [
2217
- W("div", {
2218
- style: S(x(ns))
2832
+ V("div", {
2833
+ style: I(j(Zi))
2219
2834
  }, null, 4)
2220
2835
  ], 4)
2221
- ], 4)) : e.mode !== "pre-fetched" && s.value ? (y(), b("div", {
2836
+ ], 4)) : e.mode !== "pre-fetched" && s.value ? (f(), b("div", {
2222
2837
  key: 1,
2223
- style: S(x(Ee))
2838
+ style: I(j(We))
2224
2839
  }, [
2225
- W("div", {
2226
- style: S(x(Pe))
2840
+ V("div", {
2841
+ style: I(j(Ve))
2227
2842
  }, "Error Loading Widget", 4),
2228
- W("div", {
2229
- style: S(x($e))
2230
- }, U(s.value), 5)
2231
- ], 4)) : e.mode !== "pre-fetched" && !i.value ? (y(), b("div", {
2843
+ V("div", {
2844
+ style: I(j(Fe))
2845
+ }, L(s.value), 5)
2846
+ ], 4)) : e.mode !== "pre-fetched" && !i.value ? (f(), b("div", {
2232
2847
  key: 2,
2233
- style: S(x(Ee))
2848
+ style: I(j(We))
2234
2849
  }, [
2235
- W("div", {
2236
- style: S(x(Pe))
2850
+ V("div", {
2851
+ style: I(j(Ve))
2237
2852
  }, "No Widget Data", 4),
2238
- W("div", {
2239
- style: S(x($e))
2853
+ V("div", {
2854
+ style: I(j(Fe))
2240
2855
  }, "No widget data available", 4)
2241
- ], 4)) : r.value && i.value ? (y(), b(A, { key: 3 }, [
2242
- u.value ? (y(), w(To, {
2856
+ ], 4)) : r.value && i.value ? (f(), b(E, { key: 3 }, [
2857
+ l.value ? (f(), C(qo, {
2243
2858
  key: 0,
2244
2859
  "display-item-list": i.value.displayItemList,
2245
2860
  "widget-collections": i.value.widgetCollections,
2246
- plugins: m.value,
2861
+ plugins: u.value,
2247
2862
  "component-props": e.componentProps,
2248
2863
  mounts: e.mounts
2249
- }, null, 8, ["display-item-list", "widget-collections", "plugins", "component-props", "mounts"])) : (y(), w($o, {
2864
+ }, null, 8, ["display-item-list", "widget-collections", "plugins", "component-props", "mounts"])) : (f(), C(ns, {
2250
2865
  key: 1,
2251
2866
  "display-item-list": i.value.displayItemList,
2252
2867
  "is-compose-mode": !1,
@@ -2254,203 +2869,203 @@ const es = {
2254
2869
  "widget-collections": i.value.widgetCollections,
2255
2870
  "show-drop-containers": !1,
2256
2871
  "redux-device-display-type": "desktop",
2257
- plugins: m.value,
2872
+ plugins: u.value,
2258
2873
  "component-props": e.componentProps,
2259
2874
  mounts: e.mounts
2260
2875
  }, null, 8, ["display-item-list", "widget-collections", "plugins", "component-props", "mounts"]))
2261
- ], 64)) : P("", !0)
2262
- ], 8, ss);
2876
+ ], 64)) : k("", !0)
2877
+ ], 8, Qi);
2263
2878
  };
2264
2879
  }
2265
2880
  });
2266
- class X extends Error {
2881
+ class Q extends Error {
2267
2882
  constructor(n, o) {
2268
2883
  super(n);
2269
- we(this, "status");
2884
+ Pe(this, "status");
2270
2885
  this.name = "FetchRuleCMSWidgetError", this.status = o;
2271
2886
  }
2272
2887
  }
2273
- async function Is(e) {
2888
+ async function br(e) {
2274
2889
  const { publishedKey: t, token: n, endpoint: o, fetchOptions: s } = e;
2275
2890
  if (!t)
2276
- throw new X(
2277
- B(n) ? "Widget key is required" : "Published key is required"
2891
+ throw new Q(
2892
+ K(n) ? "Widget key is required" : "Published key is required"
2278
2893
  );
2279
2894
  if (!n)
2280
- throw new X("Token is required");
2281
- const i = Oe({ publishedKey: t, token: n, endpoint: o }), r = await fetch(i, {
2895
+ throw new Q("Token is required");
2896
+ const i = Ye({ publishedKey: t, token: n, endpoint: o }), r = await fetch(i, {
2282
2897
  method: "GET",
2283
2898
  headers: { "Content-Type": "application/json" },
2284
- ...B(n) ? { cache: "no-store" } : {},
2899
+ ...K(n) ? { cache: "no-store" } : {},
2285
2900
  ...s
2286
2901
  });
2287
2902
  if (!r.ok) {
2288
- const m = await r.json().catch(() => ({ error: "Unknown error" }));
2289
- throw new X(
2290
- m.error || `Request failed with status ${r.status}`,
2903
+ const u = await r.json().catch(() => ({ error: "Unknown error" }));
2904
+ throw new Q(
2905
+ u.error || `Request failed with status ${r.status}`,
2291
2906
  r.status
2292
2907
  );
2293
2908
  }
2294
- const u = await r.json();
2295
- if (!u.success)
2296
- throw new X("Failed to fetch widget data");
2297
- return Je(u.data);
2909
+ const l = await r.json();
2910
+ if (!l.success)
2911
+ throw new Q("Failed to fetch widget data");
2912
+ return Et(l.data);
2298
2913
  }
2299
- async function Ss(e) {
2300
- const { data: t, libraries: n } = e, o = ae({
2914
+ async function Cr(e) {
2915
+ const { data: t, libraries: n } = e, o = ye({
2301
2916
  displayItemList: t.displayItemList,
2302
2917
  widgetCollections: t.widgetCollections
2303
2918
  });
2304
- return J().resolve({ registrations: n, referenced: o });
2919
+ return te().resolve({ registrations: n, referenced: o });
2305
2920
  }
2306
2921
  export {
2307
- cs as AlignContentTypes,
2308
- To as BreakpointVariantRender,
2309
- We as COLLECTION_TYPE_PREFIX,
2310
- be as COMPONENT_PROPS_PATH_SEPARATOR,
2311
- me as CSS_CLASSES_ATTRIBUTE_NAME,
2312
- zt as CSS_VARIABLE_NAME_MAX_LENGTH,
2313
- Ht as CSS_VARIABLE_NAME_PATTERN,
2314
- ze as DEFAULT_BASE_Z_INDEX,
2315
- Tt as DEFAULT_CLOUDINARY_CLOUD_NAME,
2316
- G as DEFAULT_LIBRARY_ID,
2317
- Kn as DEFAULT_ROW_GAP,
2318
- pt as DEV_CLIENT_TOKEN_PREFIX,
2319
- gt as DEV_WIDGET_API_PATH,
2320
- as as DeviceDisplayTypes,
2321
- xe as DisplayComponent,
2322
- ce as DisplayItemTypes,
2323
- Ne as DragItemIdPrefixTypes,
2324
- It as EMBEDDED_KEY_SEPARATOR,
2325
- gn as FLEX_LAYOUT_STYLE_KEYS_THAT_DERIVE_DISPLAY,
2326
- X as FetchRuleCMSWidgetError,
2327
- Ue as HIDE_WIDGET_ATTRIBUTE_NAME,
2328
- Ie as JustifyContentTypes,
2329
- Yn as POINTER_EVENTS_ATTRIBUTE_NAME,
2330
- At as PUBLISHED_KEY_SEPARATOR,
2331
- mt as PUBLISHED_WIDGET_API_PATH,
2332
- ls as PageViewTypes,
2333
- ft as RULECMS_API_ORIGIN,
2334
- vs as RULECMS_PUBLISHED_KEY_ATTRIBUTE,
2335
- Be as RULECMS_WIDGET_CONTEXT_KEY,
2336
- $o as RenderComponents,
2337
- re as RenderComponentsForDevice,
2338
- ko as RenderComponentsInner,
2339
- As as RuleCMSWidget,
2340
- hs as RuleCMSWidgetProvider,
2341
- qn as WIDGET_ATTRIBUTES_IGNORED_IN_COMPOSE_MODE,
2342
- yt as WIDGET_CACHE_API_ORIGIN,
2343
- Jn as Z_INDEX_WIDGET_ATTRIBUTE_NAME,
2344
- dn as alignContentAllowlist,
2345
- an as alignItemsAllowlist,
2346
- yn as backgroundPositionAllowlist,
2347
- mn as backgroundRepeatAllowlist,
2348
- fn as backgroundSizeAllowlist,
2349
- hn as borderStyleKeywords,
2350
- qt as boxSpacingSideKeys,
2351
- Cs as boxSpacingStyleAttributeEntries,
2352
- _t as buildCloudinaryBackgroundUrl,
2353
- so as buildOverlayLayerBoxStyles,
2354
- oo as buildOverlayStackStyles,
2355
- Oe as buildWidgetFetchUrl,
2356
- ro as collectComponentInstancePaths,
2357
- ae as collectReferencedLibraryIds,
2358
- dt as composeSourceComponentsPlugin,
2359
- J as createComponentLibraryRegistry,
2360
- se as cssAttrArrayKey,
2361
- kt as defaultPageWidth,
2362
- jn as deriveDisplayFlexIfNeeded,
2363
- bs as desktopModeWidth,
2364
- Is as fetchRuleCMSWidget,
2365
- co as findUnmatchedComponentPropsKeys,
2366
- pn as flexDirectionAllowlist,
2367
- un as flexWrapAllowlist,
2368
- en as fontFamilyAllowlist,
2369
- nn as fontStyleAllowlist,
2370
- tn as fontWeightAllowlist,
2371
- kn as formatBackgroundImageStyles,
2372
- Tn as formatBorderStyles,
2373
- xn as formatBoxShadowStyles,
2374
- Pn as formatBoxSpacingStyles,
2375
- $n as formatCssColorStyles,
2376
- fe as formatCssColorValue,
2377
- Ln as formatCssEnumStyles,
2378
- Rn as formatCssLengthStyles,
2379
- k as formatCssVariable,
2380
- ws as formatCssVariableStyles,
2381
- Mn as formatLineHeightStyles,
2382
- Wn as formatObjectStyleAttribute,
2383
- Nn as formatOpacityStyles,
2384
- K as formatSpacingSideValue,
2385
- St as generatePublishedKey,
2386
- ms as generatePublishedKeyForEmbedded,
2387
- Ve as getCollectionIdForCollectionType,
2388
- Z as getColumnAttributes,
2389
- Se as getComponentAttributesAndStyles,
2390
- oe as getComponentsPluginFromPlugins,
2391
- C as getCssVariableFromLeaf,
2392
- Vn as getDefaultDimensionAttributes,
2922
+ or as AlignContentTypes,
2923
+ qo as BreakpointVariantRender,
2924
+ Ue as COLLECTION_TYPE_PREFIX,
2925
+ Ae as COMPONENT_PROPS_PATH_SEPARATOR,
2926
+ Ce as CSS_CLASSES_ATTRIBUTE_NAME,
2927
+ bn as CSS_VARIABLE_NAME_MAX_LENGTH,
2928
+ gn as CSS_VARIABLE_NAME_PATTERN,
2929
+ nt as DEFAULT_BASE_Z_INDEX,
2930
+ qt as DEFAULT_CLOUDINARY_CLOUD_NAME,
2931
+ X as DEFAULT_LIBRARY_ID,
2932
+ yo as DEFAULT_ROW_GAP,
2933
+ Mt as DEV_CLIENT_TOKEN_PREFIX,
2934
+ Ft as DEV_WIDGET_API_PATH,
2935
+ sr as DeviceDisplayTypes,
2936
+ Me as DisplayComponent,
2937
+ fe as DisplayItemTypes,
2938
+ He as DragItemIdPrefixTypes,
2939
+ Gt as EMBEDDED_KEY_SEPARATOR,
2940
+ Fn as FLEX_LAYOUT_STYLE_KEYS_THAT_DERIVE_DISPLAY,
2941
+ Q as FetchRuleCMSWidgetError,
2942
+ Qe as HIDE_WIDGET_ATTRIBUTE_NAME,
2943
+ xe as JustifyContentTypes,
2944
+ wo as POINTER_EVENTS_ATTRIBUTE_NAME,
2945
+ Yt as PUBLISHED_KEY_SEPARATOR,
2946
+ Vt as PUBLISHED_WIDGET_API_PATH,
2947
+ nr as PageViewTypes,
2948
+ Nt as RULECMS_API_ORIGIN,
2949
+ hr as RULECMS_PUBLISHED_KEY_ATTRIBUTE,
2950
+ Je as RULECMS_WIDGET_CONTEXT_KEY,
2951
+ ns as RenderComponents,
2952
+ ue as RenderComponentsForDevice,
2953
+ Zo as RenderComponentsInner,
2954
+ gr as RuleCMSWidget,
2955
+ pr as RuleCMSWidgetProvider,
2956
+ vo as WIDGET_ATTRIBUTES_IGNORED_IN_COMPOSE_MODE,
2957
+ Wt as WIDGET_CACHE_API_ORIGIN,
2958
+ Eo as Z_INDEX_WIDGET_ATTRIBUTE_NAME,
2959
+ jn as alignContentAllowlist,
2960
+ On as alignItemsAllowlist,
2961
+ Wn as backgroundPositionAllowlist,
2962
+ Vn as backgroundRepeatAllowlist,
2963
+ Nn as backgroundSizeAllowlist,
2964
+ Bn as borderStyleKeywords,
2965
+ vn as boxSpacingSideKeys,
2966
+ mr as boxSpacingStyleAttributeEntries,
2967
+ hn as buildCloudinaryBackgroundUrl,
2968
+ $o as buildOverlayLayerBoxStyles,
2969
+ Do as buildOverlayStackStyles,
2970
+ Ye as buildWidgetFetchUrl,
2971
+ xo as collectComponentInstancePaths,
2972
+ ye as collectReferencedLibraryIds,
2973
+ jt as composeSourceComponentsPlugin,
2974
+ te as createComponentLibraryRegistry,
2975
+ ce as cssAttrArrayKey,
2976
+ Zt as defaultPageWidth,
2977
+ ao as deriveDisplayFlexIfNeeded,
2978
+ fr as desktopModeWidth,
2979
+ br as fetchRuleCMSWidget,
2980
+ Oo as findUnmatchedComponentPropsKeys,
2981
+ Mn as flexDirectionAllowlist,
2982
+ _n as flexWrapAllowlist,
2983
+ Tn as fontFamilyAllowlist,
2984
+ Pn as fontStyleAllowlist,
2985
+ In as fontWeightAllowlist,
2986
+ Zn as formatBackgroundImageStyles,
2987
+ qn as formatBorderStyles,
2988
+ Qn as formatBoxShadowStyles,
2989
+ to as formatBoxSpacingStyles,
2990
+ no as formatCssColorStyles,
2991
+ ge as formatCssColorValue,
2992
+ oo as formatCssEnumStyles,
2993
+ so as formatCssLengthStyles,
2994
+ _ as formatCssVariable,
2995
+ yr as formatCssVariableStyles,
2996
+ io as formatLineHeightStyles,
2997
+ lo as formatObjectStyleAttribute,
2998
+ ro as formatOpacityStyles,
2999
+ H as formatSpacingSideValue,
3000
+ Xt as generatePublishedKey,
3001
+ ur as generatePublishedKeyForEmbedded,
3002
+ Xe as getCollectionIdForCollectionType,
3003
+ ee as getColumnAttributes,
3004
+ Re as getComponentAttributesAndStyles,
3005
+ le as getComponentsPluginFromPlugins,
3006
+ v as getCssVariableFromLeaf,
3007
+ uo as getDefaultDimensionAttributes,
2393
3008
  N as getDeviceTypeBasedAttributes,
2394
- us as getDragItemId,
2395
- bt as getDragItemPrefixAndId,
2396
- wt as getIdAndPrefix,
2397
- Bn as getMergedAttributes,
2398
- ds as getNameAndInstanceIdFromWidgetKey,
2399
- ps as getNameFromWidgetKey,
2400
- eo as getOverlayLayerZIndex,
2401
- Ct as getWidgetKeyForCollection,
2402
- fs as getWidgetKeyForCollectionWithPrefix,
2403
- vt as getWidgetKeyForPublishedCollection,
2404
- ys as getWidgetKeyForPublishedCollectionWithPrefix,
2405
- In as hasBoxShadowLeaf,
2406
- fo as hasDeviceDivergentValues,
2407
- $ as hasInvalidCssVariable,
2408
- Fn as hasItems,
2409
- Qn as hasOverlayLayers,
2410
- gs as incrementVersion,
2411
- Gt as isBackgroundImageValue,
2412
- bn as isBorderStyleValue,
2413
- wn as isBorderValue,
2414
- An as isBoxShadowValue,
2415
- Xt as isBoxSpacingValue,
2416
- Vt as isCloudinaryCloudName,
2417
- jt as isCloudinaryPublicId,
2418
- Ft as isCloudinaryTransformationString,
2419
- pe as isCssColorValue,
2420
- Qt as isCssEnumValue,
2421
- ue as isCssVariableName,
2422
- B as isDevClientToken,
2423
- Sn as isLineHeightValue,
2424
- Dn as isOpacityValue,
2425
- no as isOverlayLayerEmptyForDevice,
2426
- _n as isRowHiddenForDevice,
2427
- Bt as isSafeImageUrl,
2428
- F as isSpacingSideValue,
2429
- he as isWidgetHiddenForDevice,
2430
- cn as justifyContentAllowlist,
2431
- ge as normalizeCssClasses,
2432
- ye as objectStyleAttributeRegistry,
2433
- te as overflowAllowlist,
2434
- Fe as phoneModeWidth,
2435
- ln as pointerEventsAllowlist,
2436
- Je as prepareRuleCMSWidgetData,
2437
- De as resolveBaseZIndex,
2438
- Me as resolveKey,
2439
- to as resolveOverlayLayerPointerEvents,
2440
- Hn as resolveRowStyles,
2441
- ht as resolveWidgetApiOrigin,
2442
- _e as resolveWidgetContainerStyles,
2443
- io as resolveWidgetInstanceProps,
2444
- Ss as resolveWidgetLibraries,
2445
- Un as rowBasedPropertiesAreAssigned,
2446
- de as spacingKeywords,
2447
- Yt as spacingLengthUnits,
2448
- Ke as tabletModeWidth,
2449
- on as textAlignAllowlist,
2450
- sn as textDecorationAllowlist,
2451
- rn as textTransformAllowlist,
2452
- je as typeHasPrefix,
2453
- ao as warnUnmatchedComponentProps,
2454
- Zn as widgetBasedPropertiesAreAssigned,
2455
- He as widgetDeclaresOwnHeight
3009
+ ir as getDragItemId,
3010
+ Kt as getDragItemPrefixAndId,
3011
+ zt as getIdAndPrefix,
3012
+ po as getMergedAttributes,
3013
+ rr as getNameAndInstanceIdFromWidgetKey,
3014
+ lr as getNameFromWidgetKey,
3015
+ To as getOverlayLayerZIndex,
3016
+ Ht as getWidgetKeyForCollection,
3017
+ cr as getWidgetKeyForCollectionWithPrefix,
3018
+ Ut as getWidgetKeyForPublishedCollection,
3019
+ ar as getWidgetKeyForPublishedCollectionWithPrefix,
3020
+ Gn as hasBoxShadowLeaf,
3021
+ No as hasDeviceDivergentValues,
3022
+ M as hasInvalidCssVariable,
3023
+ fo as hasItems,
3024
+ ko as hasOverlayLayers,
3025
+ dr as incrementVersion,
3026
+ Cn as isBackgroundImageValue,
3027
+ Kn as isBorderStyleValue,
3028
+ zn as isBorderValue,
3029
+ Yn as isBoxShadowValue,
3030
+ An as isBoxSpacingValue,
3031
+ dn as isCloudinaryCloudName,
3032
+ un as isCloudinaryPublicId,
3033
+ fn as isCloudinaryTransformationString,
3034
+ he as isCssColorValue,
3035
+ kn as isCssEnumValue,
3036
+ U as isCssVariableName,
3037
+ K as isDevClientToken,
3038
+ Xn as isLineHeightValue,
3039
+ Jn as isOpacityValue,
3040
+ Po as isOverlayLayerEmptyForDevice,
3041
+ ho as isRowHiddenForDevice,
3042
+ pn as isSafeImageUrl,
3043
+ z as isSpacingSideValue,
3044
+ ve as isWidgetHiddenForDevice,
3045
+ Rn as justifyContentAllowlist,
3046
+ we as normalizeCssClasses,
3047
+ be as objectStyleAttributeRegistry,
3048
+ ie as overflowAllowlist,
3049
+ Ze as phoneModeWidth,
3050
+ xn as pointerEventsAllowlist,
3051
+ Et as prepareRuleCMSWidgetData,
3052
+ Oe as resolveBaseZIndex,
3053
+ ze as resolveKey,
3054
+ Io as resolveOverlayLayerPointerEvents,
3055
+ go as resolveRowStyles,
3056
+ Bt as resolveWidgetApiOrigin,
3057
+ et as resolveWidgetContainerStyles,
3058
+ Lo as resolveWidgetInstanceProps,
3059
+ Cr as resolveWidgetLibraries,
3060
+ mo as rowBasedPropertiesAreAssigned,
3061
+ me as spacingKeywords,
3062
+ wn as spacingLengthUnits,
3063
+ qe as tabletModeWidth,
3064
+ Dn as textAlignAllowlist,
3065
+ $n as textDecorationAllowlist,
3066
+ Ln as textTransformAllowlist,
3067
+ Ge as typeHasPrefix,
3068
+ _o as warnUnmatchedComponentProps,
3069
+ So as widgetBasedPropertiesAreAssigned,
3070
+ tt as widgetDeclaresOwnHeight
2456
3071
  };