@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.cjs +58 -13
- package/dist/index.d.ts +169 -15
- package/dist/index.js +1507 -892
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
const
|
|
6
|
-
function
|
|
7
|
-
return !(e != null && e.length) || e ===
|
|
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
|
|
10
|
-
function
|
|
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
|
|
17
|
-
if (
|
|
16
|
+
function Ot(e) {
|
|
17
|
+
if ($e(e))
|
|
18
18
|
return e;
|
|
19
19
|
const t = e;
|
|
20
|
-
return
|
|
20
|
+
return $e(t == null ? void 0 : t.default) ? t.default : null;
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
return e.usesDefaultLibrary ? [
|
|
22
|
+
function se(e) {
|
|
23
|
+
return e.usesDefaultLibrary ? [X, ...e.libraryIds] : [...e.libraryIds];
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
if (t.usesDefaultLibrary && !(e != null && e[
|
|
27
|
-
throw new Error(
|
|
25
|
+
function Le({ registrations: e, referenced: t }) {
|
|
26
|
+
if (t.usesDefaultLibrary && !(e != null && e[X]))
|
|
27
|
+
throw new Error(Rt);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
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
|
|
39
|
+
function jt(e) {
|
|
40
40
|
const t = {};
|
|
41
41
|
for (const [o, s] of e) {
|
|
42
|
-
const i = o ===
|
|
43
|
-
for (const [r,
|
|
44
|
-
t[i ? r : `${o}/${r}`] =
|
|
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 =
|
|
46
|
+
const n = _t(e);
|
|
47
47
|
return n ? { components: t, stylesheets: n } : { components: t };
|
|
48
48
|
}
|
|
49
|
-
function
|
|
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
|
|
54
|
-
e.get(c) !== a && ((
|
|
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 =
|
|
60
|
-
if (
|
|
61
|
-
return
|
|
62
|
-
const
|
|
63
|
-
for (const
|
|
64
|
-
const
|
|
65
|
-
|
|
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
|
|
68
|
-
return o.set(
|
|
67
|
+
const h = jt(d);
|
|
68
|
+
return o.set(p, { loadedVersion: s, plugin: h }), h;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
|
|
72
|
-
const { registrations: a, referenced:
|
|
73
|
-
for (const
|
|
74
|
-
if (e.has(
|
|
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
|
|
77
|
-
if (!
|
|
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 "${
|
|
80
|
-
), n.set(
|
|
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
|
|
83
|
+
if (typeof d == "function")
|
|
84
84
|
return null;
|
|
85
|
-
i(
|
|
85
|
+
i(y, d);
|
|
86
86
|
}
|
|
87
|
-
return r(
|
|
87
|
+
return r(p);
|
|
88
88
|
}
|
|
89
|
-
async function
|
|
90
|
-
|
|
91
|
-
const { registrations: a, referenced:
|
|
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
|
-
|
|
94
|
-
if (e.has(
|
|
93
|
+
y.map(async (d) => {
|
|
94
|
+
if (e.has(d) || n.has(d))
|
|
95
95
|
return;
|
|
96
|
-
const
|
|
97
|
-
if (!
|
|
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 "${
|
|
100
|
-
), n.set(
|
|
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
|
|
104
|
-
i(
|
|
103
|
+
if (typeof h != "function") {
|
|
104
|
+
i(d, h);
|
|
105
105
|
return;
|
|
106
106
|
}
|
|
107
|
-
let
|
|
108
|
-
|
|
109
|
-
const
|
|
110
|
-
if (!
|
|
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 "${
|
|
112
|
+
`Registration for libraryId "${d}" did not resolve to a ComponentLibraryModule (expected { manifest, components }).`
|
|
113
113
|
);
|
|
114
|
-
i(
|
|
115
|
-
}).catch((
|
|
116
|
-
n.set(
|
|
117
|
-
`RuleCMS widget: failed to load component library "${
|
|
118
|
-
|
|
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(
|
|
122
|
-
}), t.set(
|
|
121
|
+
t.delete(d);
|
|
122
|
+
}), t.set(d, m)), await m;
|
|
123
123
|
})
|
|
124
|
-
), r(
|
|
124
|
+
), r(p);
|
|
125
125
|
}
|
|
126
|
-
return { resolveSync:
|
|
126
|
+
return { resolveSync: l, resolve: u };
|
|
127
127
|
}
|
|
128
|
-
const
|
|
128
|
+
const nr = {
|
|
129
129
|
Preview: "Preview",
|
|
130
130
|
Compose: "Compose",
|
|
131
131
|
RenderedPage: "RenderedPage"
|
|
132
|
-
},
|
|
132
|
+
}, fe = {
|
|
133
133
|
DroppableBox: "droppable-box"
|
|
134
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
149
|
+
}, ce = "cssAttrArray", sr = {
|
|
150
150
|
Phone: "phone",
|
|
151
151
|
Tablet: "tablet",
|
|
152
152
|
Desktop: "desktop"
|
|
153
|
-
},
|
|
153
|
+
}, He = {
|
|
154
154
|
ComposerComponent: "ComposerWidget",
|
|
155
155
|
Collection: "Collection",
|
|
156
156
|
MoveComponentHandle: "MoveWidgetHandle"
|
|
157
|
-
},
|
|
158
|
-
function
|
|
159
|
-
return typeof e == "string" && e.startsWith(
|
|
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
|
|
162
|
-
return t ? t.replace(/\/$/, "") :
|
|
161
|
+
function Bt(e, t) {
|
|
162
|
+
return t ? t.replace(/\/$/, "") : K(e) ? Nt : Wt;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function Ye({
|
|
165
165
|
publishedKey: e,
|
|
166
166
|
token: t,
|
|
167
167
|
endpoint: n
|
|
168
168
|
}) {
|
|
169
|
-
const o =
|
|
170
|
-
return `${
|
|
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
|
|
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
|
|
178
|
-
},
|
|
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
|
-
},
|
|
185
|
-
if (!
|
|
184
|
+
}, Xe = (e) => {
|
|
185
|
+
if (!Ge(e))
|
|
186
186
|
return;
|
|
187
|
-
const n =
|
|
188
|
-
return (n == null ? void 0 : n.prefix) ===
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
212
|
-
var s, i, r,
|
|
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 = ((
|
|
220
|
+
const o = ((l = e.parentId) == null ? void 0 : l.length) ? `${e.id}@${e.parentId}` : `${e.id}`;
|
|
221
221
|
return { data: `${t}$${o}` };
|
|
222
|
-
},
|
|
223
|
-
var s, i, r,
|
|
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 = ((
|
|
231
|
+
const o = ((l = e.parentId) == null ? void 0 : l.length) ? `${e.publishedKey}@${e.parentId}` : `${e.publishedKey}`;
|
|
232
232
|
return { data: `${t}$${o}` };
|
|
233
|
-
},
|
|
234
|
-
const t =
|
|
235
|
-
return `${
|
|
236
|
-
},
|
|
237
|
-
const t =
|
|
238
|
-
return `${
|
|
239
|
-
},
|
|
240
|
-
function
|
|
241
|
-
return `${e}${
|
|
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
|
|
244
|
-
return `${
|
|
243
|
+
function ur(e, t, n) {
|
|
244
|
+
return `${Xt(e, t)}${Gt}${n}`;
|
|
245
245
|
}
|
|
246
|
-
function
|
|
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
|
|
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,
|
|
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 ((
|
|
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 ===
|
|
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
|
|
276
|
-
function
|
|
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:
|
|
281
|
+
libraryRegistry: te()
|
|
282
282
|
};
|
|
283
283
|
}
|
|
284
|
-
const
|
|
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 =
|
|
293
|
-
return
|
|
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
|
-
),
|
|
299
|
+
), Pt(Je, n), (o, s) => pe(o.$slots, "default");
|
|
300
300
|
}
|
|
301
|
-
}),
|
|
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
|
-
},
|
|
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
|
-
},
|
|
312
|
+
}, hn = ({
|
|
313
313
|
publicId: e,
|
|
314
|
-
cloudName: t =
|
|
314
|
+
cloudName: t = qt,
|
|
315
315
|
transformations: n,
|
|
316
|
-
width: o =
|
|
316
|
+
width: o = Qt
|
|
317
317
|
}) => {
|
|
318
|
-
const s = typeof n == "string" ?
|
|
319
|
-
...
|
|
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/${
|
|
324
|
+
`https://res.cloudinary.com/${t}/image/upload/${yn(i)}/${e}`
|
|
325
325
|
);
|
|
326
|
-
},
|
|
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 <=
|
|
331
|
-
},
|
|
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
|
|
337
|
-
},
|
|
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 : !
|
|
342
|
-
},
|
|
343
|
-
const n =
|
|
344
|
-
return n ? { [t]:
|
|
345
|
-
},
|
|
346
|
-
if (typeof e != "object" || e === null || Array.isArray(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 (
|
|
348
|
+
if (v(e))
|
|
349
349
|
return !0;
|
|
350
350
|
const t = e;
|
|
351
|
-
return t.source === "none" ? !0 : t.source === "url" ?
|
|
352
|
-
},
|
|
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
|
|
357
|
-
},
|
|
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
|
|
361
|
+
for (const o of vn) {
|
|
362
362
|
const s = n[o];
|
|
363
|
-
if (s != null && !
|
|
363
|
+
if (s != null && !z(s, t))
|
|
364
364
|
return !1;
|
|
365
365
|
}
|
|
366
366
|
return !0;
|
|
367
|
-
},
|
|
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
|
|
372
|
-
},
|
|
373
|
-
const t =
|
|
374
|
-
return t ?
|
|
375
|
-
},
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
401
|
+
], $n = [
|
|
402
402
|
"none",
|
|
403
403
|
"underline",
|
|
404
404
|
"line-through",
|
|
405
405
|
"overline"
|
|
406
|
-
],
|
|
406
|
+
], Ln = [
|
|
407
407
|
"none",
|
|
408
408
|
"uppercase",
|
|
409
409
|
"lowercase",
|
|
410
410
|
"capitalize"
|
|
411
|
-
],
|
|
411
|
+
], ie = [
|
|
412
412
|
"visible",
|
|
413
413
|
"hidden",
|
|
414
414
|
"scroll",
|
|
415
415
|
"auto",
|
|
416
416
|
"clip"
|
|
417
|
-
],
|
|
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
|
-
],
|
|
424
|
+
], On = [
|
|
425
425
|
"flex-start",
|
|
426
426
|
"flex-end",
|
|
427
427
|
"center",
|
|
428
428
|
"baseline",
|
|
429
429
|
"stretch"
|
|
430
|
-
],
|
|
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
|
-
],
|
|
438
|
+
], Mn = [
|
|
439
439
|
"row",
|
|
440
440
|
"row-reverse",
|
|
441
441
|
"column",
|
|
442
442
|
"column-reverse"
|
|
443
|
-
],
|
|
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
|
-
],
|
|
453
|
+
], Vn = [
|
|
454
454
|
"no-repeat",
|
|
455
455
|
"repeat",
|
|
456
456
|
"repeat-x",
|
|
457
457
|
"repeat-y",
|
|
458
458
|
"space",
|
|
459
459
|
"round"
|
|
460
|
-
],
|
|
460
|
+
], Fn = [
|
|
461
461
|
"justifyContent",
|
|
462
462
|
"alignItems",
|
|
463
463
|
"flexWrap",
|
|
464
464
|
"alignContent",
|
|
465
465
|
"flexDirection"
|
|
466
|
-
],
|
|
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
|
-
],
|
|
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
|
|
481
|
-
},
|
|
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
|
-
},
|
|
485
|
+
}, Un = {
|
|
486
486
|
allowAuto: !1,
|
|
487
487
|
allowKeywords: !1,
|
|
488
488
|
allowNegative: !1
|
|
489
|
-
},
|
|
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 (
|
|
493
|
+
if (M(e))
|
|
494
494
|
return !1;
|
|
495
|
-
if (
|
|
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 && !
|
|
499
|
+
if (o != null && !z(o, Hn))
|
|
500
500
|
return !1;
|
|
501
501
|
}
|
|
502
|
-
return !(t.blur !== void 0 && t.blur !== null && !
|
|
503
|
-
},
|
|
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
|
|
508
|
-
},
|
|
509
|
-
if (!
|
|
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 =
|
|
511
|
+
const t = v(e);
|
|
512
512
|
if (t)
|
|
513
|
-
return { backgroundImage:
|
|
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("${
|
|
516
|
+
backgroundImage: `url("${hn({
|
|
517
517
|
publicId: n.publicId,
|
|
518
518
|
cloudName: n.cloudName,
|
|
519
519
|
transformations: n.transformations
|
|
520
520
|
})}")`
|
|
521
521
|
};
|
|
522
|
-
},
|
|
523
|
-
const t =
|
|
524
|
-
return t ?
|
|
525
|
-
},
|
|
526
|
-
if (!
|
|
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 =
|
|
528
|
+
const t = v(e);
|
|
529
529
|
if (t)
|
|
530
|
-
return { border:
|
|
530
|
+
return { border: _(t) };
|
|
531
531
|
const n = {};
|
|
532
|
-
if (e.width && (n.borderWidth =
|
|
533
|
-
const o =
|
|
534
|
-
n.borderStyle = o ?
|
|
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 =
|
|
537
|
-
},
|
|
538
|
-
if (!
|
|
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 =
|
|
540
|
+
const t = v(e);
|
|
541
541
|
if (t)
|
|
542
|
-
return { boxShadow:
|
|
542
|
+
return { boxShadow: _(t) };
|
|
543
543
|
const n = [
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
544
|
+
Z(e.offsetX),
|
|
545
|
+
Z(e.offsetY),
|
|
546
|
+
Z(e.blur),
|
|
547
|
+
Z(e.spread)
|
|
548
548
|
];
|
|
549
|
-
return e.color && n.push(
|
|
550
|
-
},
|
|
551
|
-
if (!
|
|
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]:
|
|
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}${
|
|
558
|
+
s && (n[`${t}${eo(o)}`] = H(s));
|
|
559
559
|
}
|
|
560
560
|
return n;
|
|
561
|
-
},
|
|
562
|
-
if (!
|
|
561
|
+
}, no = (e, t) => he(e) ? { [t]: ge(e) } : {}, oo = (e, t, n) => {
|
|
562
|
+
if (!kn(e, n))
|
|
563
563
|
return {};
|
|
564
|
-
const o =
|
|
565
|
-
return o ? { [t]:
|
|
566
|
-
},
|
|
567
|
-
if (!
|
|
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 =
|
|
570
|
-
return t ? { lineHeight:
|
|
571
|
-
},
|
|
572
|
-
if (!
|
|
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 =
|
|
575
|
-
return t ? { opacity:
|
|
576
|
-
},
|
|
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:
|
|
630
|
+
allowedValues: Rn
|
|
631
631
|
},
|
|
632
632
|
"align-items-3-resolutions": {
|
|
633
633
|
kind: "enum",
|
|
634
634
|
cssProperty: "alignItems",
|
|
635
|
-
allowedValues:
|
|
635
|
+
allowedValues: On
|
|
636
636
|
},
|
|
637
637
|
"flex-wrap-3-resolutions": {
|
|
638
638
|
kind: "enum",
|
|
639
639
|
cssProperty: "flexWrap",
|
|
640
|
-
allowedValues:
|
|
640
|
+
allowedValues: _n
|
|
641
641
|
},
|
|
642
642
|
"align-content-3-resolutions": {
|
|
643
643
|
kind: "enum",
|
|
644
644
|
cssProperty: "alignContent",
|
|
645
|
-
allowedValues:
|
|
645
|
+
allowedValues: jn
|
|
646
646
|
},
|
|
647
647
|
"flex-direction-3-resolutions": {
|
|
648
648
|
kind: "enum",
|
|
649
649
|
cssProperty: "flexDirection",
|
|
650
|
-
allowedValues:
|
|
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:
|
|
657
|
+
allowedValues: ie
|
|
658
658
|
},
|
|
659
659
|
"overflow-x-3-resolutions": {
|
|
660
660
|
kind: "enum",
|
|
661
661
|
cssProperty: "overflowX",
|
|
662
|
-
allowedValues:
|
|
662
|
+
allowedValues: ie
|
|
663
663
|
},
|
|
664
664
|
"overflow-y-3-resolutions": {
|
|
665
665
|
kind: "enum",
|
|
666
666
|
cssProperty: "overflowY",
|
|
667
|
-
allowedValues:
|
|
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:
|
|
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:
|
|
686
|
+
allowedValues: Nn
|
|
687
687
|
},
|
|
688
688
|
"background-position-3-resolutions": {
|
|
689
689
|
kind: "enum",
|
|
690
690
|
cssProperty: "backgroundPosition",
|
|
691
|
-
allowedValues:
|
|
691
|
+
allowedValues: Wn
|
|
692
692
|
},
|
|
693
693
|
"background-repeat-3-resolutions": {
|
|
694
694
|
kind: "enum",
|
|
695
695
|
cssProperty: "backgroundRepeat",
|
|
696
|
-
allowedValues:
|
|
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:
|
|
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:
|
|
714
|
+
allowedValues: In
|
|
715
715
|
},
|
|
716
716
|
"font-style-3-resolutions": {
|
|
717
717
|
kind: "enum",
|
|
718
718
|
cssProperty: "fontStyle",
|
|
719
|
-
allowedValues:
|
|
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:
|
|
730
|
+
allowedValues: Dn
|
|
731
731
|
},
|
|
732
732
|
"text-decoration-3-resolutions": {
|
|
733
733
|
kind: "enum",
|
|
734
734
|
cssProperty: "textDecoration",
|
|
735
|
-
allowedValues:
|
|
735
|
+
allowedValues: $n
|
|
736
736
|
},
|
|
737
737
|
"text-transform-3-resolutions": {
|
|
738
738
|
kind: "enum",
|
|
739
739
|
cssProperty: "textTransform",
|
|
740
|
-
allowedValues:
|
|
740
|
+
allowedValues: Ln
|
|
741
741
|
}
|
|
742
|
-
},
|
|
743
|
-
const n =
|
|
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
|
|
748
|
+
return to(t, n.cssProperty);
|
|
749
749
|
case "length":
|
|
750
|
-
return
|
|
750
|
+
return so(t, n.cssProperty, n.capabilities);
|
|
751
751
|
case "border":
|
|
752
|
-
return
|
|
752
|
+
return qn(t);
|
|
753
753
|
case "boxShadow":
|
|
754
|
-
return
|
|
754
|
+
return Qn(t);
|
|
755
755
|
case "color":
|
|
756
|
-
return
|
|
756
|
+
return no(t, n.cssProperty);
|
|
757
757
|
case "opacity":
|
|
758
|
-
return
|
|
758
|
+
return ro(t);
|
|
759
759
|
case "enum":
|
|
760
|
-
return
|
|
760
|
+
return oo(t, n.cssProperty, n.allowedValues);
|
|
761
761
|
case "lineHeight":
|
|
762
|
-
return
|
|
762
|
+
return io(t);
|
|
763
763
|
case "backgroundImage":
|
|
764
|
-
return
|
|
764
|
+
return Zn(t);
|
|
765
765
|
default:
|
|
766
766
|
return {};
|
|
767
767
|
}
|
|
768
|
-
},
|
|
769
|
-
Object.entries(
|
|
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
|
-
),
|
|
774
|
-
(n) =>
|
|
775
|
-
) || e.display === "flex" ? e : { ...e, display: "flex" } : {},
|
|
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[
|
|
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,
|
|
787
|
+
return i.reduce((r, l) => ({
|
|
788
788
|
...r,
|
|
789
|
-
[
|
|
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,
|
|
804
|
-
o[s] =
|
|
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
|
-
},
|
|
812
|
+
}, po = ({
|
|
813
813
|
defaultAttributes: e,
|
|
814
814
|
userModifiedAttributes: t
|
|
815
815
|
}) => e ? t ? { ...e, ...t } : e : t;
|
|
816
|
-
function
|
|
816
|
+
function ee(e) {
|
|
817
817
|
return e.componentAttributes ?? e.widgetAttributes;
|
|
818
818
|
}
|
|
819
|
-
function
|
|
819
|
+
function Re({
|
|
820
820
|
col: e,
|
|
821
821
|
deviceDisplayType: t,
|
|
822
822
|
isComposeMode: n,
|
|
823
823
|
sourceComponentsPlugin: o
|
|
824
824
|
}) {
|
|
825
|
-
const s =
|
|
825
|
+
const s = ee(e), i = uo({
|
|
826
826
|
dbEntryType: e.type,
|
|
827
827
|
libraryId: e.libraryId,
|
|
828
828
|
sourceComponentsPlugin: o
|
|
829
|
-
}) || [], r =
|
|
829
|
+
}) || [], r = po({
|
|
830
830
|
defaultAttributes: i,
|
|
831
831
|
userModifiedAttributes: s
|
|
832
|
-
}), { styles:
|
|
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 (
|
|
842
|
-
for (const [
|
|
843
|
-
n && a[
|
|
841
|
+
if (l)
|
|
842
|
+
for (const [d, h] of Object.entries(l))
|
|
843
|
+
n && a[d] || (c = {
|
|
844
844
|
...c,
|
|
845
|
-
[
|
|
845
|
+
[d]: h
|
|
846
846
|
});
|
|
847
|
-
let
|
|
848
|
-
for (const
|
|
849
|
-
if (
|
|
850
|
-
|
|
851
|
-
...
|
|
852
|
-
...
|
|
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:
|
|
858
|
-
componentStyles:
|
|
865
|
+
componentAttributesBasedOnDevice: p,
|
|
866
|
+
componentStyles: y
|
|
859
867
|
};
|
|
860
868
|
}
|
|
861
|
-
const
|
|
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
|
-
},
|
|
868
|
-
function
|
|
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
|
|
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
|
|
890
|
+
function go({
|
|
883
891
|
row: e,
|
|
884
892
|
deviceDisplayType: t,
|
|
885
893
|
isComposeMode: n
|
|
886
894
|
}) {
|
|
887
|
-
var
|
|
888
|
-
const o = ((
|
|
895
|
+
var d;
|
|
896
|
+
const o = ((d = N({
|
|
889
897
|
deviceDisplayType: t,
|
|
890
898
|
componentAttributes: e.rowAttributes
|
|
891
|
-
})) == null ? void 0 :
|
|
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
|
-
]),
|
|
900
|
-
for (const [
|
|
901
|
-
a.has(
|
|
902
|
-
const
|
|
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:
|
|
906
|
-
flexWrap:
|
|
913
|
+
gap: l,
|
|
914
|
+
flexWrap: u,
|
|
907
915
|
justifyContent: s,
|
|
908
916
|
alignItems: i,
|
|
909
|
-
...
|
|
917
|
+
...p
|
|
910
918
|
};
|
|
911
|
-
return c !== void 0 && (
|
|
919
|
+
return c !== void 0 && (y.alignContent = c), y;
|
|
912
920
|
}
|
|
913
|
-
const
|
|
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(
|
|
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 >
|
|
934
|
+
if (i.length > bo)
|
|
927
935
|
break;
|
|
928
936
|
o = i;
|
|
929
937
|
}
|
|
930
938
|
return o.length ? o : void 0;
|
|
931
|
-
},
|
|
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
|
-
|
|
947
|
-
|
|
948
|
-
],
|
|
949
|
-
|
|
954
|
+
Qe,
|
|
955
|
+
wo
|
|
956
|
+
], Ao = new Set(
|
|
957
|
+
vo
|
|
950
958
|
);
|
|
951
|
-
function
|
|
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[
|
|
968
|
+
return ((o = n == null ? void 0 : n.componentAttributesSpecificToDeviceType) == null ? void 0 : o[Qe]) === "true";
|
|
961
969
|
}
|
|
962
|
-
function
|
|
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]) => !
|
|
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:
|
|
981
|
-
(i = s == null ? void 0 : s.componentAttributesSpecificToDeviceType) == null ? void 0 : i[
|
|
988
|
+
cssClasses: we(
|
|
989
|
+
(i = s == null ? void 0 : s.componentAttributesSpecificToDeviceType) == null ? void 0 : i[Ce]
|
|
982
990
|
)
|
|
983
991
|
};
|
|
984
992
|
}
|
|
985
|
-
function
|
|
993
|
+
function So(e) {
|
|
986
994
|
return Object.keys(e.styles).length > 0 || !!e.cssClasses;
|
|
987
995
|
}
|
|
988
|
-
function
|
|
996
|
+
function tt({
|
|
989
997
|
containerAttributes: e,
|
|
990
998
|
widgetContainerStyles: t
|
|
991
999
|
}) {
|
|
992
|
-
return ((e == null ? void 0 : e[
|
|
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
|
|
997
|
-
function
|
|
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
|
|
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[
|
|
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
|
|
1025
|
+
return nt;
|
|
1018
1026
|
}
|
|
1019
|
-
function
|
|
1027
|
+
function To(e, t) {
|
|
1020
1028
|
return e + t + 1;
|
|
1021
1029
|
}
|
|
1022
|
-
function
|
|
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
|
|
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 ?
|
|
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
|
|
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 ===
|
|
1062
|
+
...n === nt ? {} : { zIndex: n }
|
|
1055
1063
|
};
|
|
1056
1064
|
}
|
|
1057
|
-
function
|
|
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
|
|
1073
|
-
function
|
|
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(
|
|
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
|
|
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
|
|
1095
|
-
for (const
|
|
1096
|
-
if (!
|
|
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 =
|
|
1106
|
+
const c = Xe(u.type);
|
|
1099
1107
|
if (c != null && c.length) {
|
|
1100
|
-
const a =
|
|
1101
|
-
a && !i.includes(
|
|
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,
|
|
1113
|
+
[...i, u.id].join(Ae)
|
|
1106
1114
|
);
|
|
1107
1115
|
}
|
|
1108
1116
|
};
|
|
1109
1117
|
return o(e, []), n;
|
|
1110
1118
|
}
|
|
1111
|
-
function
|
|
1112
|
-
const n = `${
|
|
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
|
|
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 =
|
|
1131
|
+
const s = xo({
|
|
1124
1132
|
displayItemList: t,
|
|
1125
1133
|
widgetCollections: n
|
|
1126
1134
|
});
|
|
1127
|
-
return o.filter((i) => !
|
|
1135
|
+
return o.filter((i) => !Ro(i, s));
|
|
1128
1136
|
}
|
|
1129
|
-
function
|
|
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 =
|
|
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
|
|
1154
|
+
function jo(e) {
|
|
1147
1155
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
1148
1156
|
}
|
|
1149
|
-
function
|
|
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
|
|
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 (
|
|
1167
|
+
if (re(e.containerAttributes))
|
|
1160
1168
|
return !0;
|
|
1161
1169
|
for (const o of e.rows) {
|
|
1162
|
-
if (
|
|
1170
|
+
if (re(o.rowAttributes))
|
|
1163
1171
|
return !0;
|
|
1164
1172
|
for (const s of o.columns)
|
|
1165
|
-
if (
|
|
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 (
|
|
1177
|
+
if (ae(o))
|
|
1170
1178
|
return !0;
|
|
1171
1179
|
return !1;
|
|
1172
1180
|
}
|
|
1173
|
-
function
|
|
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") || !
|
|
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 (
|
|
1192
|
+
if (Mo(n))
|
|
1185
1193
|
return !0;
|
|
1186
1194
|
}
|
|
1187
1195
|
return !1;
|
|
1188
1196
|
}
|
|
1189
|
-
function
|
|
1190
|
-
if (
|
|
1197
|
+
function No(e, t) {
|
|
1198
|
+
if (ae(e))
|
|
1191
1199
|
return !0;
|
|
1192
1200
|
for (const n of Object.values(t))
|
|
1193
|
-
if (
|
|
1201
|
+
if (ae(n.collectionRows))
|
|
1194
1202
|
return !0;
|
|
1195
1203
|
return !1;
|
|
1196
1204
|
}
|
|
1197
|
-
const
|
|
1198
|
-
function
|
|
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: ${
|
|
1203
|
-
@media (min-width: ${
|
|
1204
|
-
@media (min-width: ${
|
|
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
|
|
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
|
|
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(
|
|
1235
|
-
const
|
|
1236
|
-
return !!(
|
|
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 =
|
|
1239
|
-
var
|
|
1240
|
-
return (((
|
|
1246
|
+
const i = g(() => {
|
|
1247
|
+
var m;
|
|
1248
|
+
return (((m = t.displayItemList.containerAttributes) == null ? void 0 : m[ce]) || []).join(`;
|
|
1241
1249
|
`);
|
|
1242
|
-
}), r =
|
|
1250
|
+
}), r = g(
|
|
1243
1251
|
() => i.value ? `.${o} {
|
|
1244
1252
|
${i.value}
|
|
1245
1253
|
}` : ""
|
|
1246
|
-
),
|
|
1247
|
-
() => !t.isComposeMode &&
|
|
1254
|
+
), l = g(
|
|
1255
|
+
() => !t.isComposeMode && ve({
|
|
1248
1256
|
containerAttributes: t.displayItemList.containerAttributes,
|
|
1249
1257
|
deviceDisplayType: t.deviceDisplayType
|
|
1250
1258
|
})
|
|
1251
|
-
),
|
|
1252
|
-
() =>
|
|
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 =
|
|
1258
|
-
var
|
|
1259
|
-
const
|
|
1260
|
-
return t.isComposeMode && !t.isWithinCollection || t.showDropContainers ||
|
|
1261
|
-
}), a =
|
|
1262
|
-
() => [i.value ? o : void 0,
|
|
1263
|
-
),
|
|
1264
|
-
...
|
|
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:
|
|
1274
|
+
widgetContainerStyles: u.value
|
|
1267
1275
|
}) ? {} : { height: t.isWithinCollection ? "auto" : "100%" },
|
|
1268
1276
|
display: "flex",
|
|
1269
1277
|
flexDirection: "column",
|
|
1270
|
-
...
|
|
1271
|
-
})),
|
|
1272
|
-
return (
|
|
1273
|
-
hidden:
|
|
1274
|
-
class:
|
|
1275
|
-
style:
|
|
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 ? (
|
|
1278
|
-
default:
|
|
1279
|
-
|
|
1285
|
+
i.value ? (f(), C(P("style"), { key: 0 }, {
|
|
1286
|
+
default: T(() => [
|
|
1287
|
+
R(L(r.value), 1)
|
|
1280
1288
|
]),
|
|
1281
1289
|
_: 1
|
|
1282
|
-
})) :
|
|
1283
|
-
|
|
1284
|
-
], 14,
|
|
1290
|
+
})) : k("", !0),
|
|
1291
|
+
pe(h.$slots, "default")
|
|
1292
|
+
], 14, Bo));
|
|
1285
1293
|
}
|
|
1286
|
-
}),
|
|
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,
|
|
1298
|
-
var
|
|
1299
|
-
const
|
|
1300
|
-
return !!((
|
|
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 =
|
|
1303
|
-
() => !t.isComposeMode &&
|
|
1304
|
-
), s =
|
|
1305
|
-
() => t.showDropContainers ||
|
|
1306
|
-
), i =
|
|
1307
|
-
() =>
|
|
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 =
|
|
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
|
|
1319
|
-
(a = c == null ? void 0 : c.componentAttributesSpecificToDeviceType) == null ? void 0 : a[
|
|
1326
|
+
return we(
|
|
1327
|
+
(a = c == null ? void 0 : c.componentAttributesSpecificToDeviceType) == null ? void 0 : a[Ce]
|
|
1320
1328
|
) ?? "";
|
|
1321
|
-
}),
|
|
1322
|
-
return (c, a) => (
|
|
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:
|
|
1325
|
-
style:
|
|
1332
|
+
class: G(l.value || void 0),
|
|
1333
|
+
style: I(u.value)
|
|
1326
1334
|
}, [
|
|
1327
|
-
|
|
1328
|
-
], 14,
|
|
1335
|
+
pe(c.$slots, "default")
|
|
1336
|
+
], 14, Ko));
|
|
1329
1337
|
}
|
|
1330
|
-
}),
|
|
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
|
-
],
|
|
1390
|
+
], zo = (e) => e != null && e !== "", Ho = (e) => e ? it.reduce(
|
|
1383
1391
|
(t, n) => {
|
|
1384
1392
|
const o = e[n];
|
|
1385
|
-
return
|
|
1393
|
+
return zo(o) && (t[n] = o), t;
|
|
1386
1394
|
},
|
|
1387
1395
|
{}
|
|
1388
|
-
) : {},
|
|
1396
|
+
) : {}, Uo = (e) => {
|
|
1389
1397
|
if (!e)
|
|
1390
1398
|
return;
|
|
1391
1399
|
const t = { ...e };
|
|
1392
|
-
for (const n of
|
|
1400
|
+
for (const n of it)
|
|
1393
1401
|
delete t[n];
|
|
1394
1402
|
return Object.keys(t).length ? t : void 0;
|
|
1395
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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 =
|
|
1444
|
-
var
|
|
1445
|
-
const
|
|
1446
|
-
return
|
|
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 =
|
|
1457
|
+
}), s = g(() => ({
|
|
1450
1458
|
componentAttributes: t.componentAttributes,
|
|
1451
1459
|
styleProps: t.styleProps
|
|
1452
|
-
})), i =
|
|
1453
|
-
() => n.value ?
|
|
1454
|
-
), r =
|
|
1455
|
-
() => i.value ?
|
|
1456
|
-
),
|
|
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
|
|
1459
|
-
return
|
|
1466
|
+
var d;
|
|
1467
|
+
return we((d = t.componentAttributes) == null ? void 0 : d[Ce]);
|
|
1460
1468
|
}
|
|
1461
|
-
), c =
|
|
1462
|
-
() => !i.value || (n.value ?
|
|
1463
|
-
),
|
|
1464
|
-
() => !c.value && a.value ?
|
|
1465
|
-
),
|
|
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:
|
|
1468
|
-
className:
|
|
1475
|
+
styleProps: l.value,
|
|
1476
|
+
className: p.value,
|
|
1469
1477
|
widgetInstanceProps: t.widgetInstanceProps,
|
|
1470
1478
|
mounts: t.mounts
|
|
1471
1479
|
}));
|
|
1472
|
-
return (
|
|
1473
|
-
c.value ? (
|
|
1480
|
+
return (d, h) => o.value ? (f(), b(E, { key: 0 }, [
|
|
1481
|
+
c.value ? (f(), b("div", {
|
|
1474
1482
|
key: 0,
|
|
1475
|
-
class:
|
|
1476
|
-
style:
|
|
1483
|
+
class: G(u.value || void 0),
|
|
1484
|
+
style: I(r.value)
|
|
1477
1485
|
}, [
|
|
1478
|
-
(
|
|
1479
|
-
], 6)) : !a.value &&
|
|
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:
|
|
1489
|
+
class: G(u.value)
|
|
1482
1490
|
}, [
|
|
1483
|
-
(
|
|
1484
|
-
], 2)) : (
|
|
1485
|
-
], 64)) :
|
|
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
|
-
}),
|
|
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 = () =>
|
|
1504
|
-
() => !t.isComposeMode &&
|
|
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 =
|
|
1509
|
-
const
|
|
1516
|
+
), s = g(() => {
|
|
1517
|
+
const p = Oe({
|
|
1510
1518
|
containerAttributes: t.displayItemList.containerAttributes,
|
|
1511
1519
|
deviceDisplayType: t.deviceDisplayType
|
|
1512
1520
|
});
|
|
1513
|
-
return
|
|
1521
|
+
return Do({
|
|
1514
1522
|
isWithinCollection: t.isWithinCollection,
|
|
1515
|
-
baseDeclaresOwnHeight:
|
|
1523
|
+
baseDeclaresOwnHeight: tt({
|
|
1516
1524
|
containerAttributes: t.displayItemList.containerAttributes,
|
|
1517
|
-
widgetContainerStyles:
|
|
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:
|
|
1531
|
+
baseZIndex: p
|
|
1524
1532
|
});
|
|
1525
|
-
}), i =
|
|
1526
|
-
var
|
|
1527
|
-
const
|
|
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
|
|
1539
|
+
return p.flatMap((h, m) => Po({ layer: h, deviceDisplayType: t.deviceDisplayType }) ? [] : [
|
|
1532
1540
|
{
|
|
1533
|
-
index:
|
|
1534
|
-
layer:
|
|
1535
|
-
boxStyles:
|
|
1536
|
-
zIndex:
|
|
1537
|
-
pointerEvents:
|
|
1538
|
-
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(
|
|
1546
|
-
if (t.isComposeMode &&
|
|
1553
|
+
function r(p) {
|
|
1554
|
+
if (t.isComposeMode && p.type === fe.DroppableBox)
|
|
1547
1555
|
return !1;
|
|
1548
|
-
const { componentAttributesBasedOnDevice:
|
|
1549
|
-
col:
|
|
1556
|
+
const { componentAttributesBasedOnDevice: y } = Re({
|
|
1557
|
+
col: p,
|
|
1550
1558
|
deviceDisplayType: t.deviceDisplayType,
|
|
1551
1559
|
isComposeMode: t.isComposeMode,
|
|
1552
|
-
sourceComponentsPlugin:
|
|
1553
|
-
}),
|
|
1554
|
-
return !(!t.isComposeMode &&
|
|
1560
|
+
sourceComponentsPlugin: le(t.plugins)
|
|
1561
|
+
}), d = !!y && y["hide-component-3-resolutions"] === "true";
|
|
1562
|
+
return !(!t.isComposeMode && d);
|
|
1555
1563
|
}
|
|
1556
|
-
function
|
|
1557
|
-
const { componentAttributesBasedOnDevice:
|
|
1558
|
-
col:
|
|
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:
|
|
1569
|
+
sourceComponentsPlugin: le(t.plugins)
|
|
1562
1570
|
});
|
|
1563
1571
|
return {
|
|
1564
|
-
componentAttributes:
|
|
1565
|
-
styleProps:
|
|
1572
|
+
componentAttributes: y,
|
|
1573
|
+
styleProps: d
|
|
1566
1574
|
};
|
|
1567
1575
|
}
|
|
1568
|
-
function
|
|
1569
|
-
const
|
|
1570
|
-
if (!(
|
|
1576
|
+
function u(p) {
|
|
1577
|
+
const y = Xe(p.type);
|
|
1578
|
+
if (!(y != null && y.length))
|
|
1571
1579
|
return null;
|
|
1572
|
-
const
|
|
1573
|
-
if (!
|
|
1580
|
+
const d = p.collection ?? t.widgetCollections[y];
|
|
1581
|
+
if (!d)
|
|
1574
1582
|
throw new Error(
|
|
1575
|
-
`DisplayCollection - Collection with ID ${
|
|
1583
|
+
`DisplayCollection - Collection with ID ${y} not found in widgetCollections. Available collections: ${Object.keys(t.widgetCollections).join(", ")}`
|
|
1576
1584
|
);
|
|
1577
|
-
return !
|
|
1585
|
+
return !d.collectionRows || !fo(d.collectionRows) ? null : d.collectionRows;
|
|
1578
1586
|
}
|
|
1579
|
-
function c(
|
|
1580
|
-
return [...t.ancestorColumnIds ?? [],
|
|
1587
|
+
function c(p) {
|
|
1588
|
+
return [...t.ancestorColumnIds ?? [], p];
|
|
1581
1589
|
}
|
|
1582
|
-
function a(
|
|
1583
|
-
return
|
|
1590
|
+
function a(p) {
|
|
1591
|
+
return Lo({
|
|
1584
1592
|
componentProps: t.componentProps,
|
|
1585
1593
|
ancestorColumnIds: t.ancestorColumnIds,
|
|
1586
|
-
columnId:
|
|
1594
|
+
columnId: p
|
|
1587
1595
|
});
|
|
1588
1596
|
}
|
|
1589
|
-
return (
|
|
1590
|
-
const
|
|
1591
|
-
return o.value ? (
|
|
1597
|
+
return (p, y) => {
|
|
1598
|
+
const d = $t("RenderComponentsInner", !0);
|
|
1599
|
+
return o.value ? (f(), b("div", {
|
|
1592
1600
|
key: 0,
|
|
1593
|
-
style:
|
|
1601
|
+
style: I(s.value)
|
|
1594
1602
|
}, [
|
|
1595
|
-
|
|
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:
|
|
1603
|
-
(
|
|
1604
|
-
key:
|
|
1605
|
-
row:
|
|
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:
|
|
1612
|
-
(
|
|
1613
|
-
key:
|
|
1619
|
+
default: T(() => [
|
|
1620
|
+
(f(!0), b(E, null, F(h.columns, (m) => (f(), b(E, {
|
|
1621
|
+
key: m.id
|
|
1614
1622
|
}, [
|
|
1615
|
-
r(
|
|
1616
|
-
m
|
|
1623
|
+
r(m) ? (f(), b(E, { key: 0 }, [
|
|
1624
|
+
u(m) ? (f(), C(d, {
|
|
1617
1625
|
key: 0,
|
|
1618
|
-
"display-item-list": m
|
|
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(
|
|
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"])) : (
|
|
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":
|
|
1632
|
-
"library-id":
|
|
1633
|
-
"component-attributes":
|
|
1639
|
+
"component-type": m.type,
|
|
1640
|
+
"library-id": m.libraryId,
|
|
1641
|
+
"component-attributes": l(m).componentAttributes,
|
|
1634
1642
|
components: n(),
|
|
1635
|
-
"style-props":
|
|
1636
|
-
"widget-instance-props": a(
|
|
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)) :
|
|
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
|
-
(
|
|
1648
|
-
key:
|
|
1649
|
-
"data-rulecms-overlay-layer":
|
|
1650
|
-
style:
|
|
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
|
-
|
|
1653
|
-
"display-item-list":
|
|
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,
|
|
1666
|
-
], 4)) : (
|
|
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:
|
|
1675
|
-
(
|
|
1676
|
-
key:
|
|
1677
|
-
row:
|
|
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:
|
|
1684
|
-
(
|
|
1685
|
-
key:
|
|
1691
|
+
default: T(() => [
|
|
1692
|
+
(f(!0), b(E, null, F(h.columns, (m) => (f(), b(E, {
|
|
1693
|
+
key: m.id
|
|
1686
1694
|
}, [
|
|
1687
|
-
r(
|
|
1688
|
-
m
|
|
1695
|
+
r(m) ? (f(), b(E, { key: 0 }, [
|
|
1696
|
+
u(m) ? (f(), C(d, {
|
|
1689
1697
|
key: 0,
|
|
1690
|
-
"display-item-list": m
|
|
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(
|
|
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"])) : (
|
|
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":
|
|
1704
|
-
"library-id":
|
|
1705
|
-
"component-attributes":
|
|
1711
|
+
"component-type": m.type,
|
|
1712
|
+
"library-id": m.libraryId,
|
|
1713
|
+
"component-attributes": l(m).componentAttributes,
|
|
1706
1714
|
components: n(),
|
|
1707
|
-
"style-props":
|
|
1708
|
-
"widget-instance-props": a(
|
|
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)) :
|
|
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
|
-
}),
|
|
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 ? (
|
|
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"])) :
|
|
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
|
-
}),
|
|
1763
|
+
}), rt = /* @__PURE__ */ A({
|
|
1756
1764
|
__name: "LibraryStylesheets",
|
|
1757
1765
|
props: {
|
|
1758
1766
|
stylesheets: {}
|
|
1759
1767
|
},
|
|
1760
1768
|
setup(e) {
|
|
1761
|
-
return (t, n) => (
|
|
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:
|
|
1766
|
-
|
|
1773
|
+
default: T(() => [
|
|
1774
|
+
R(L(o), 1)
|
|
1767
1775
|
]),
|
|
1768
1776
|
_: 2
|
|
1769
1777
|
}, 1024))), 128));
|
|
1770
1778
|
}
|
|
1771
|
-
}),
|
|
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 =
|
|
1785
|
-
() =>
|
|
1786
|
-
),
|
|
1787
|
-
return (
|
|
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
|
|
1790
|
-
|
|
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 ? (
|
|
1794
|
-
(
|
|
1795
|
-
default:
|
|
1796
|
-
|
|
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
|
-
(
|
|
1801
|
-
key:
|
|
1802
|
-
class:
|
|
1808
|
+
(f(), b(E, null, F(t, (p) => V("div", {
|
|
1809
|
+
key: p,
|
|
1810
|
+
class: G(`${i.value}-${p.toLowerCase()}`)
|
|
1803
1811
|
}, [
|
|
1804
|
-
|
|
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":
|
|
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)) : (
|
|
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
|
|
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
|
|
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 =
|
|
1864
|
+
const t = e, n = Y("Desktop");
|
|
1857
1865
|
let o, s;
|
|
1858
1866
|
function i() {
|
|
1859
|
-
n.value =
|
|
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
|
|
1866
|
-
typeof matchMedia == "function" && (o = matchMedia(
|
|
1867
|
-
}),
|
|
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,
|
|
1870
|
-
var
|
|
1871
|
-
return
|
|
1872
|
-
e.isWithinCollection ?
|
|
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: (
|
|
1882
|
+
stylesheets: (u = e.plugins.sourceComponents) == null ? void 0 : u.stylesheets
|
|
1875
1883
|
}, null, 8, ["stylesheets"])),
|
|
1876
|
-
|
|
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
|
|
1900
|
+
function lt(e) {
|
|
1893
1901
|
return e !== !1;
|
|
1894
1902
|
}
|
|
1895
|
-
const
|
|
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
|
-
},
|
|
1915
|
+
}, ys = (e) => {
|
|
1904
1916
|
const t = e.startsWith(".") ? e.slice(1) : e;
|
|
1905
|
-
return !t || t.length > 200 || t.startsWith(".") ||
|
|
1906
|
-
},
|
|
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 ||
|
|
1920
|
+
if (!t || t.length > 4e3 || us.test(t) || !fs(t))
|
|
1909
1921
|
return !1;
|
|
1910
1922
|
const n = t.toLowerCase();
|
|
1911
|
-
return !
|
|
1912
|
-
},
|
|
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 (!
|
|
1930
|
+
if (!ys(s) || typeof o != "string")
|
|
1919
1931
|
continue;
|
|
1920
1932
|
const i = o.trim();
|
|
1921
|
-
|
|
1933
|
+
ms(i) && (t[s] = i);
|
|
1922
1934
|
}
|
|
1923
1935
|
return t;
|
|
1924
|
-
},
|
|
1936
|
+
}, gs = (e) => e.split(`
|
|
1925
1937
|
`).map((t) => ` ${t}`).join(`
|
|
1926
|
-
`),
|
|
1927
|
-
if (!
|
|
1938
|
+
`), bs = (e, t, n, o) => {
|
|
1939
|
+
if (!lt(n))
|
|
1928
1940
|
return null;
|
|
1929
|
-
const
|
|
1930
|
-
if (
|
|
1941
|
+
const s = hs(t), i = Object.keys(s);
|
|
1942
|
+
if (i.length === 0 || !e)
|
|
1931
1943
|
return null;
|
|
1932
|
-
const
|
|
1933
|
-
|
|
1934
|
-
|
|
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
|
-
|
|
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 =
|
|
1947
|
-
() =>
|
|
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 ? (
|
|
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:
|
|
1954
|
-
|
|
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
|
-
})) :
|
|
2250
|
+
})) : k("", !0);
|
|
1958
2251
|
}
|
|
1959
|
-
}),
|
|
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
|
-
|
|
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 === "" ||
|
|
2396
|
+
s === "" || vi.test(s) || (t[n.trim()] = s);
|
|
1968
2397
|
}
|
|
1969
2398
|
return t;
|
|
1970
|
-
},
|
|
1971
|
-
|
|
1972
|
-
if (o.length === 0 || !e)
|
|
2399
|
+
}, Si = (e, t, n) => {
|
|
2400
|
+
if (!bt(n))
|
|
1973
2401
|
return null;
|
|
1974
|
-
const
|
|
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 `${
|
|
1977
|
-
${
|
|
2407
|
+
return `${i} {
|
|
2408
|
+
${r}
|
|
1978
2409
|
}`;
|
|
1979
|
-
}
|
|
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 =
|
|
1987
|
-
() =>
|
|
2506
|
+
const t = e, n = g(
|
|
2507
|
+
() => Si(t.publishedKey, t.variables)
|
|
1988
2508
|
);
|
|
1989
|
-
return (o, s) => n.value ? (
|
|
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:
|
|
1994
|
-
|
|
2513
|
+
default: T(() => [
|
|
2514
|
+
R(L(n.value), 1)
|
|
1995
2515
|
]),
|
|
1996
2516
|
_: 1
|
|
1997
|
-
})) :
|
|
2517
|
+
})) : k("", !0);
|
|
1998
2518
|
}
|
|
1999
2519
|
});
|
|
2000
|
-
function
|
|
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
|
|
2596
|
+
function Ui(e) {
|
|
2015
2597
|
return typeof e.itemList == "string" ? JSON.parse(e.itemList) : e.itemList;
|
|
2016
2598
|
}
|
|
2017
|
-
function
|
|
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:
|
|
2020
|
-
widgetCollections:
|
|
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
|
-
...
|
|
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
|
|
2027
|
-
const t = e.registry ??
|
|
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
|
|
2034
|
-
const t = e.registry ??
|
|
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
|
|
2630
|
+
const Xi = {
|
|
2041
2631
|
display: "flex",
|
|
2042
2632
|
justifyContent: "center",
|
|
2043
2633
|
alignItems: "center",
|
|
2044
2634
|
padding: "3rem",
|
|
2045
2635
|
color: "#e2e8f0"
|
|
2046
|
-
},
|
|
2636
|
+
}, Ji = {
|
|
2047
2637
|
display: "flex",
|
|
2048
2638
|
alignItems: "center",
|
|
2049
2639
|
gap: "1rem"
|
|
2050
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
2653
|
+
}, Ve = {
|
|
2064
2654
|
fontSize: "16px",
|
|
2065
2655
|
fontWeight: "600",
|
|
2066
2656
|
marginBottom: "0.5rem",
|
|
2067
2657
|
color: "#feb2b2"
|
|
2068
|
-
},
|
|
2658
|
+
}, Fe = {
|
|
2069
2659
|
fontSize: "14px",
|
|
2070
2660
|
color: "#fed7d7"
|
|
2071
|
-
},
|
|
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
|
-
`,
|
|
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 =
|
|
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,
|
|
2097
|
-
function
|
|
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
|
|
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:
|
|
2106
|
-
registry:
|
|
2695
|
+
libraries: w,
|
|
2696
|
+
registry: D
|
|
2107
2697
|
});
|
|
2108
|
-
if (
|
|
2109
|
-
r.value =
|
|
2698
|
+
if (O) {
|
|
2699
|
+
r.value = O;
|
|
2110
2700
|
return;
|
|
2111
2701
|
}
|
|
2112
|
-
|
|
2702
|
+
Gi({
|
|
2113
2703
|
displayItemList: i.value.displayItemList,
|
|
2114
2704
|
widgetCollections: i.value.widgetCollections,
|
|
2115
|
-
libraries:
|
|
2116
|
-
registry:
|
|
2117
|
-
}).then((
|
|
2118
|
-
r.value =
|
|
2705
|
+
libraries: w,
|
|
2706
|
+
registry: D
|
|
2707
|
+
}).then((B) => {
|
|
2708
|
+
r.value = B;
|
|
2119
2709
|
});
|
|
2120
2710
|
}
|
|
2121
|
-
function
|
|
2122
|
-
i.value &&
|
|
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
|
|
2130
|
-
if (
|
|
2719
|
+
function h() {
|
|
2720
|
+
if (p || typeof document > "u")
|
|
2131
2721
|
return;
|
|
2132
|
-
const
|
|
2133
|
-
if (!document.getElementById(
|
|
2134
|
-
const
|
|
2135
|
-
|
|
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
|
-
|
|
2727
|
+
p = !0;
|
|
2138
2728
|
}
|
|
2139
|
-
function
|
|
2140
|
-
const
|
|
2141
|
-
if (!t.publishedKey || !
|
|
2142
|
-
s.value = t.publishedKey ? "Token is required. Provide it either directly as a prop (`token`) or via RuleCMSWidgetProvider." :
|
|
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
|
|
2146
|
-
if (a ===
|
|
2147
|
-
|
|
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
|
|
2152
|
-
a =
|
|
2153
|
-
const
|
|
2154
|
-
fetch(
|
|
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
|
-
...
|
|
2158
|
-
signal:
|
|
2159
|
-
}).then(async (
|
|
2160
|
-
if (
|
|
2161
|
-
const
|
|
2162
|
-
|
|
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
|
|
2165
|
-
s.value =
|
|
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((
|
|
2168
|
-
|
|
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
|
|
2763
|
+
function S() {
|
|
2174
2764
|
if (t.mode === "pre-fetched") {
|
|
2175
|
-
i.value = t.initialData ?? null, o.value = !1, s.value = null,
|
|
2765
|
+
i.value = t.initialData ?? null, o.value = !1, s.value = null, y(), d();
|
|
2176
2766
|
return;
|
|
2177
2767
|
}
|
|
2178
|
-
|
|
2768
|
+
h(), m();
|
|
2179
2769
|
}
|
|
2180
|
-
return
|
|
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
|
-
|
|
2781
|
+
S();
|
|
2192
2782
|
},
|
|
2193
2783
|
{ immediate: !0 }
|
|
2194
|
-
),
|
|
2784
|
+
), Ke(() => {
|
|
2195
2785
|
c == null || c.abort();
|
|
2196
|
-
}), (
|
|
2197
|
-
var
|
|
2198
|
-
return
|
|
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
|
-
|
|
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: (
|
|
2818
|
+
variables: (ke = i.value) == null ? void 0 : ke.cssVariables
|
|
2205
2819
|
}, null, 8, ["published-key", "variables"]),
|
|
2206
|
-
|
|
2820
|
+
$(Cs, {
|
|
2207
2821
|
"published-key": e.publishedKey,
|
|
2208
|
-
classes: (
|
|
2209
|
-
|
|
2210
|
-
|
|
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:
|
|
2827
|
+
style: I(j(Xi))
|
|
2213
2828
|
}, [
|
|
2214
|
-
|
|
2215
|
-
style:
|
|
2829
|
+
V("div", {
|
|
2830
|
+
style: I(j(Ji))
|
|
2216
2831
|
}, [
|
|
2217
|
-
|
|
2218
|
-
style:
|
|
2832
|
+
V("div", {
|
|
2833
|
+
style: I(j(Zi))
|
|
2219
2834
|
}, null, 4)
|
|
2220
2835
|
], 4)
|
|
2221
|
-
], 4)) : e.mode !== "pre-fetched" && s.value ? (
|
|
2836
|
+
], 4)) : e.mode !== "pre-fetched" && s.value ? (f(), b("div", {
|
|
2222
2837
|
key: 1,
|
|
2223
|
-
style:
|
|
2838
|
+
style: I(j(We))
|
|
2224
2839
|
}, [
|
|
2225
|
-
|
|
2226
|
-
style:
|
|
2840
|
+
V("div", {
|
|
2841
|
+
style: I(j(Ve))
|
|
2227
2842
|
}, "Error Loading Widget", 4),
|
|
2228
|
-
|
|
2229
|
-
style:
|
|
2230
|
-
},
|
|
2231
|
-
], 4)) : e.mode !== "pre-fetched" && !i.value ? (
|
|
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:
|
|
2848
|
+
style: I(j(We))
|
|
2234
2849
|
}, [
|
|
2235
|
-
|
|
2236
|
-
style:
|
|
2850
|
+
V("div", {
|
|
2851
|
+
style: I(j(Ve))
|
|
2237
2852
|
}, "No Widget Data", 4),
|
|
2238
|
-
|
|
2239
|
-
style:
|
|
2853
|
+
V("div", {
|
|
2854
|
+
style: I(j(Fe))
|
|
2240
2855
|
}, "No widget data available", 4)
|
|
2241
|
-
], 4)) : r.value && i.value ? (
|
|
2242
|
-
|
|
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:
|
|
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"])) : (
|
|
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:
|
|
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)) :
|
|
2262
|
-
], 8,
|
|
2876
|
+
], 64)) : k("", !0)
|
|
2877
|
+
], 8, Qi);
|
|
2263
2878
|
};
|
|
2264
2879
|
}
|
|
2265
2880
|
});
|
|
2266
|
-
class
|
|
2881
|
+
class Q extends Error {
|
|
2267
2882
|
constructor(n, o) {
|
|
2268
2883
|
super(n);
|
|
2269
|
-
|
|
2884
|
+
Pe(this, "status");
|
|
2270
2885
|
this.name = "FetchRuleCMSWidgetError", this.status = o;
|
|
2271
2886
|
}
|
|
2272
2887
|
}
|
|
2273
|
-
async function
|
|
2888
|
+
async function br(e) {
|
|
2274
2889
|
const { publishedKey: t, token: n, endpoint: o, fetchOptions: s } = e;
|
|
2275
2890
|
if (!t)
|
|
2276
|
-
throw new
|
|
2277
|
-
|
|
2891
|
+
throw new Q(
|
|
2892
|
+
K(n) ? "Widget key is required" : "Published key is required"
|
|
2278
2893
|
);
|
|
2279
2894
|
if (!n)
|
|
2280
|
-
throw new
|
|
2281
|
-
const 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
|
-
...
|
|
2899
|
+
...K(n) ? { cache: "no-store" } : {},
|
|
2285
2900
|
...s
|
|
2286
2901
|
});
|
|
2287
2902
|
if (!r.ok) {
|
|
2288
|
-
const
|
|
2289
|
-
throw new
|
|
2290
|
-
|
|
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
|
|
2295
|
-
if (!
|
|
2296
|
-
throw new
|
|
2297
|
-
return
|
|
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
|
|
2300
|
-
const { data: t, libraries: n } = e, o =
|
|
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
|
|
2919
|
+
return te().resolve({ registrations: n, referenced: o });
|
|
2305
2920
|
}
|
|
2306
2921
|
export {
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
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
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
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
|
};
|