@rulecms/widget-vue 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  var He = Object.defineProperty;
2
2
  var Ge = (e, t, n) => t in e ? He(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var me = (e, t, n) => Ge(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { defineComponent as D, reactive as ze, watch as De, provide as Ye, renderSlot as se, computed as m, openBlock as y, createElementBlock as b, normalizeStyle as S, normalizeClass as B, createBlock as A, resolveDynamicComponent as R, withCtx as F, createTextVNode as ie, toDisplayString as Y, createCommentVNode as W, Fragment as I, normalizeProps as Z, guardReactiveProps as ge, mergeProps as qe, resolveComponent as Xe, renderList as z, createVNode as ne, createElementVNode as $, ref as j, onMounted as Ze, onBeforeUnmount as xe, inject as Je, unref as T } from "vue";
5
- const V = "default";
3
+ var ye = (e, t, n) => Ge(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { defineComponent as D, reactive as ze, watch as De, provide as Ye, renderSlot as se, computed as y, openBlock as m, createElementBlock as b, normalizeStyle as S, normalizeClass as F, createBlock as A, resolveDynamicComponent as R, withCtx as V, createTextVNode as ie, toDisplayString as Y, createCommentVNode as W, Fragment as I, normalizeProps as Z, guardReactiveProps as ge, mergeProps as qe, resolveComponent as Xe, renderList as z, createVNode as ne, createElementVNode as $, ref as B, onMounted as Ze, onBeforeUnmount as xe, inject as Je, unref as T } from "vue";
5
+ const _ = "default";
6
6
  function Te(e, t) {
7
- return !(e != null && e.length) || e === V ? t : `${e}/${t}`;
7
+ return !(e != null && e.length) || e === _ ? t : `${e}/${t}`;
8
8
  }
9
9
  const Qe = `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
10
  function he(e) {
@@ -20,10 +20,10 @@ function et(e) {
20
20
  return he(t == null ? void 0 : t.default) ? t.default : null;
21
21
  }
22
22
  function J(e) {
23
- return e.usesDefaultLibrary ? [V, ...e.libraryIds] : [...e.libraryIds];
23
+ return e.usesDefaultLibrary ? [_, ...e.libraryIds] : [...e.libraryIds];
24
24
  }
25
25
  function be({ registrations: e, referenced: t }) {
26
- if (t.usesDefaultLibrary && !(e != null && e[V]))
26
+ if (t.usesDefaultLibrary && !(e != null && e[_]))
27
27
  throw new Error(Qe);
28
28
  }
29
29
  function tt(e) {
@@ -39,7 +39,7 @@ function tt(e) {
39
39
  function nt(e) {
40
40
  const t = {};
41
41
  for (const [o, s] of e) {
42
- const i = o === V;
42
+ const i = o === _;
43
43
  for (const [c, d] of Object.entries(s.components))
44
44
  t[i ? c : `${o}/${c}`] = d;
45
45
  }
@@ -236,14 +236,14 @@ const Ro = ({ id: e, prefix: t }) => `${t}_${e}`, at = (e) => {
236
236
  }, Wo = (e) => {
237
237
  const t = pt(e);
238
238
  return `${Ee}${t.data}`;
239
- }, ft = "---", yt = "___";
240
- function mt(e, t) {
239
+ }, ft = "---", mt = "___";
240
+ function yt(e, t) {
241
241
  return `${e}${ft}${t}`;
242
242
  }
243
- function _o(e, t, n) {
244
- return `${mt(e, t)}${yt}${n}`;
243
+ function Oo(e, t, n) {
244
+ return `${yt(e, t)}${mt}${n}`;
245
245
  }
246
- function Oo(e) {
246
+ function jo(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`);
@@ -264,7 +264,7 @@ function le({
264
264
  for (const r of i.rows)
265
265
  if ((d = r == null ? void 0 : r.columns) != null && d.length)
266
266
  for (const l of r.columns)
267
- l.collection && s(l.collection.collectionRows), !(!l.type || l.type === re.DroppableBox) && (Re(l.type) || (!((a = l.libraryId) != null && a.length) || l.libraryId === V ? o = !0 : n.add(l.libraryId)));
267
+ l.collection && s(l.collection.collectionRows), !(!l.type || l.type === re.DroppableBox) && (Re(l.type) || (!((a = l.libraryId) != null && a.length) || l.libraryId === _ ? o = !0 : n.add(l.libraryId)));
268
268
  }
269
269
  };
270
270
  s(e);
@@ -281,7 +281,7 @@ function gt() {
281
281
  libraryRegistry: q()
282
282
  };
283
283
  }
284
- const jo = /* @__PURE__ */ D({
284
+ const Bo = /* @__PURE__ */ D({
285
285
  __name: "RuleCMSWidgetProvider",
286
286
  props: {
287
287
  token: {},
@@ -298,7 +298,7 @@ const jo = /* @__PURE__ */ D({
298
298
  { immediate: !0 }
299
299
  ), Ye(Me, n), (o, s) => se(o.$slots, "default");
300
300
  }
301
- }), ht = "1200px", Ne = "500px", We = "820px", Bo = ht, bt = "rulecms", wt = 1920, Ct = {
301
+ }), ht = "1200px", Ne = "500px", We = "820px", Fo = ht, bt = "rulecms", wt = 1920, Ct = {
302
302
  f: "auto",
303
303
  q: "auto",
304
304
  c: "limit"
@@ -323,52 +323,52 @@ const jo = /* @__PURE__ */ D({
323
323
  return encodeURI(
324
324
  `https://res.cloudinary.com/${t}/image/upload/${Lt(i)}/${e}`
325
325
  );
326
- }, Wt = /^--[A-Za-z0-9_-]+$/, _t = 200, _e = (e) => {
326
+ }, Wt = /^--[A-Za-z0-9_-]+$/, Ot = 200, Oe = (e) => {
327
327
  if (typeof e != "string")
328
328
  return !1;
329
329
  const t = e.trim();
330
- return t.length <= _t && Wt.test(t);
330
+ return t.length <= Ot && Wt.test(t);
331
331
  }, k = (e) => `var(${e.trim()})`, w = (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 _e(t) ? t.trim() : void 0;
336
+ return Oe(t) ? t.trim() : void 0;
337
337
  }, P = (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 : !_e(t);
342
- }, Fo = (e, t) => {
341
+ return t == null ? !1 : !Oe(t);
342
+ }, Vo = (e, t) => {
343
343
  const n = w(e);
344
344
  return n ? { [t]: k(n) } : void 0;
345
- }, Ot = (e) => {
345
+ }, jt = (e) => {
346
346
  if (typeof e != "object" || e === null || Array.isArray(e) || P(e))
347
347
  return !1;
348
348
  if (w(e))
349
349
  return !0;
350
350
  const t = e;
351
351
  return t.source === "none" ? !0 : t.source === "url" ? $t(t.url) : t.source === "cloudinary" ? !Pt(t.publicId) || t.cloudName !== void 0 && t.cloudName !== null && !Et(t.cloudName) ? !1 : t.transformations === void 0 || t.transformations === null || Rt(t.transformations) : !1;
352
- }, jt = ["px", "%", "em", "rem", "vh", "vw"], ce = ["inherit", "unset"], Bt = ["allSides", "top", "right", "bottom", "left"], M = (e, t = {}) => {
352
+ }, Bt = ["px", "%", "em", "rem", "vh", "vw"], ce = ["inherit", "unset"], Ft = ["allSides", "top", "right", "bottom", "left"], M = (e, t = {}) => {
353
353
  if (typeof e != "object" || e === null || Array.isArray(e))
354
354
  return !1;
355
355
  const n = e;
356
- return P(e) ? !1 : w(e) ? !0 : n.unit === "auto" ? t.allowAuto !== !1 : n.unit === "keyword" ? t.allowKeywords !== !1 && ce.includes(n.keyword) : jt.includes(n.unit) ? typeof n.value != "number" || !Number.isFinite(n.value) ? !1 : t.allowNegative !== !1 || n.value >= 0 : !1;
357
- }, Ft = (e, t = {}) => {
356
+ return P(e) ? !1 : w(e) ? !0 : n.unit === "auto" ? t.allowAuto !== !1 : n.unit === "keyword" ? t.allowKeywords !== !1 && ce.includes(n.keyword) : Bt.includes(n.unit) ? typeof n.value != "number" || !Number.isFinite(n.value) ? !1 : t.allowNegative !== !1 || n.value >= 0 : !1;
357
+ }, Vt = (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 Bt) {
361
+ for (const o of Ft) {
362
362
  const s = n[o];
363
363
  if (s != null && !M(s, t))
364
364
  return !1;
365
365
  }
366
366
  return !0;
367
- }, Vt = [...ce, "transparent", "currentColor"], Kt = /^(#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|rgba?\([^)]+\)|hsla?\([^)]+\))$/, ae = (e) => {
367
+ }, _t = [...ce, "transparent", "currentColor"], Kt = /^(#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|rgba?\([^)]+\)|hsla?\([^)]+\))$/, ae = (e) => {
368
368
  if (typeof e != "object" || e === null || Array.isArray(e))
369
369
  return !1;
370
370
  const t = e;
371
- return P(e) ? !1 : w(e) ? !0 : t.unit === "keyword" ? Vt.includes(t.keyword) : t.unit === "color" ? typeof t.value == "string" && Kt.test(t.value.trim()) : !1;
371
+ return P(e) ? !1 : w(e) ? !0 : t.unit === "keyword" ? _t.includes(t.keyword) : t.unit === "color" ? typeof t.value == "string" && Kt.test(t.value.trim()) : !1;
372
372
  }, ue = (e) => {
373
373
  const t = w(e);
374
374
  return t ? k(t) : "unit" in e ? e.unit === "keyword" ? e.keyword : e.value.trim() : "";
@@ -500,13 +500,13 @@ const jo = /* @__PURE__ */ D({
500
500
  return !1;
501
501
  }
502
502
  return !(t.blur !== void 0 && t.blur !== null && !M(t.blur, dn) || t.color !== void 0 && t.color !== null && !ae(t.color) || t.inset !== void 0 && t.inset !== null && typeof t.inset != "boolean");
503
- }, fn = (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, yn = (e) => {
503
+ }, fn = (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, mn = (e) => {
504
504
  if (typeof e != "object" || e === null || Array.isArray(e))
505
505
  return !1;
506
506
  const t = e;
507
507
  return P(e) ? !1 : w(e) ? !0 : t.unit === "number" ? typeof t.value == "number" && Number.isFinite(t.value) && t.value > 0 : M(e, { allowAuto: !1, allowNegative: !1 });
508
- }, mn = (e) => typeof e == "object" && e !== null && !Array.isArray(e) ? !P(e) && !!w(e) : typeof e == "number" && Number.isFinite(e) && e >= 0 && e <= 1, gn = (e) => {
509
- if (!Ot(e))
508
+ }, yn = (e) => typeof e == "object" && e !== null && !Array.isArray(e) ? !P(e) && !!w(e) : typeof e == "number" && Number.isFinite(e) && e >= 0 && e <= 1, gn = (e) => {
509
+ if (!jt(e))
510
510
  return {};
511
511
  const t = w(e);
512
512
  if (t)
@@ -548,7 +548,7 @@ const jo = /* @__PURE__ */ D({
548
548
  ];
549
549
  return e.color && n.push(ue(e.color)), e.inset && n.unshift("inset"), { boxShadow: n.join(" ") };
550
550
  }, wn = (e) => `${e.charAt(0).toUpperCase()}${e.slice(1)}`, Cn = (e, t) => {
551
- if (!Ft(e))
551
+ if (!Vt(e))
552
552
  return {};
553
553
  if (e.allSides)
554
554
  return { [t]: N(e.allSides) };
@@ -564,12 +564,12 @@ const jo = /* @__PURE__ */ D({
564
564
  const o = w(e);
565
565
  return o ? { [t]: k(o) } : { [t]: e };
566
566
  }, Sn = (e, t, n = {}) => M(e, n) ? { [t]: N(e) } : {}, In = (e) => {
567
- if (!yn(e))
567
+ if (!mn(e))
568
568
  return {};
569
569
  const t = w(e);
570
570
  return t ? { lineHeight: k(t) } : "unit" in e && e.unit === "number" ? { lineHeight: e.value } : { lineHeight: N(e) };
571
571
  }, kn = (e) => {
572
- if (!mn(e))
572
+ if (!yn(e))
573
573
  return {};
574
574
  const t = w(e);
575
575
  return t ? { opacity: k(t) } : { opacity: e };
@@ -758,7 +758,7 @@ const jo = /* @__PURE__ */ D({
758
758
  default:
759
759
  return {};
760
760
  }
761
- }, Vo = Object.fromEntries(
761
+ }, _o = Object.fromEntries(
762
762
  Object.entries(de).filter(([, e]) => e.kind === "boxSpacing").map(([e, t]) => [
763
763
  e,
764
764
  t.cssProperty
@@ -781,7 +781,7 @@ const jo = /* @__PURE__ */ D({
781
781
  ...c,
782
782
  [d.name]: d.defaultValues
783
783
  }), {});
784
- }, _ = ({
784
+ }, O = ({
785
785
  deviceDisplayType: e,
786
786
  componentAttributes: t
787
787
  }) => {
@@ -822,7 +822,7 @@ function Ce({
822
822
  }) || [], c = En({
823
823
  defaultAttributes: i,
824
824
  userModifiedAttributes: s
825
- }), { styles: d, componentAttributesSpecificToDeviceType: a } = _({
825
+ }), { styles: d, componentAttributesSpecificToDeviceType: a } = O({
826
826
  deviceDisplayType: t,
827
827
  componentAttributes: c
828
828
  }) || {
@@ -866,7 +866,7 @@ function Mn({
866
866
  deviceDisplayType: t
867
867
  }) {
868
868
  var o;
869
- const n = _({
869
+ const n = O({
870
870
  deviceDisplayType: t,
871
871
  componentAttributes: e.rowAttributes
872
872
  });
@@ -878,7 +878,7 @@ function Nn({
878
878
  isComposeMode: n
879
879
  }) {
880
880
  var p;
881
- const o = ((p = _({
881
+ const o = ((p = O({
882
882
  deviceDisplayType: t,
883
883
  componentAttributes: e.rowAttributes
884
884
  })) == null ? void 0 : p.styles) || {}, s = o.justifyContent ?? e.horizontalAlignment ?? we.Center, i = o.alignItems ?? e.verticalAlignment ?? we.Center, c = o.flexDirection ?? "row", d = o.gap ?? e.gap ?? Rn, a = n ? "nowrap" : o.flexWrap ?? e.flexWrap ?? "nowrap", r = o.alignContent ?? e.alignContent ?? void 0, l = /* @__PURE__ */ new Set([
@@ -903,12 +903,12 @@ function Nn({
903
903
  };
904
904
  return r !== void 0 && (u.alignContent = r), u;
905
905
  }
906
- const pe = "css-classes-3-resolutions", Wn = 500, _n = /[\x00-\x1f\x7f]/g, fe = (e) => {
906
+ const pe = "css-classes-3-resolutions", Wn = 500, On = /[\x00-\x1f\x7f]/g, fe = (e) => {
907
907
  if (typeof e != "string")
908
908
  return;
909
909
  const t = /* @__PURE__ */ new Set(), n = [];
910
910
  for (const s of e.split(/\s+/)) {
911
- const i = s.replace(_n, "");
911
+ const i = s.replace(On, "");
912
912
  i && (t.has(i) || (t.add(i), n.push(i)));
913
913
  }
914
914
  if (!n.length)
@@ -921,7 +921,7 @@ const pe = "css-classes-3-resolutions", Wn = 500, _n = /[\x00-\x1f\x7f]/g, fe =
921
921
  o = i;
922
922
  }
923
923
  return o.length ? o : void 0;
924
- }, Oe = "hide-component-3-resolutions", On = [
924
+ }, je = "hide-component-3-resolutions", jn = [
925
925
  "width-3-resolutions",
926
926
  "min-width-3-resolutions",
927
927
  "max-width-3-resolutions",
@@ -936,22 +936,22 @@ const pe = "css-classes-3-resolutions", Wn = 500, _n = /[\x00-\x1f\x7f]/g, fe =
936
936
  "overflow-3-resolutions",
937
937
  "overflow-x-3-resolutions",
938
938
  "overflow-y-3-resolutions",
939
- Oe
940
- ], jn = new Set(
941
- On
939
+ je
940
+ ], Bn = new Set(
941
+ jn
942
942
  );
943
- function Bn({
943
+ function Fn({
944
944
  containerAttributes: e,
945
945
  deviceDisplayType: t
946
946
  }) {
947
947
  var o;
948
- const n = _({
948
+ const n = O({
949
949
  deviceDisplayType: t,
950
950
  componentAttributes: e
951
951
  });
952
- return ((o = n == null ? void 0 : n.componentAttributesSpecificToDeviceType) == null ? void 0 : o[Oe]) === "true";
952
+ return ((o = n == null ? void 0 : n.componentAttributesSpecificToDeviceType) == null ? void 0 : o[je]) === "true";
953
953
  }
954
- function Fn({
954
+ function Vn({
955
955
  containerAttributes: e,
956
956
  deviceDisplayType: t,
957
957
  isComposeMode: n
@@ -961,9 +961,9 @@ function Fn({
961
961
  return { styles: {} };
962
962
  const o = n ? Object.fromEntries(
963
963
  Object.entries(e).filter(
964
- ([c]) => !jn.has(c)
964
+ ([c]) => !Bn.has(c)
965
965
  )
966
- ) : e, s = _({
966
+ ) : e, s = O({
967
967
  deviceDisplayType: t,
968
968
  componentAttributes: o
969
969
  });
@@ -974,10 +974,10 @@ function Fn({
974
974
  )
975
975
  };
976
976
  }
977
- function Vn(e) {
977
+ function _n(e) {
978
978
  return Object.keys(e.styles).length > 0 || !!e.cssClasses;
979
979
  }
980
- const ye = "/";
980
+ const me = "/";
981
981
  function Kn({
982
982
  componentProps: e,
983
983
  ancestorColumnIds: t,
@@ -987,7 +987,7 @@ function Kn({
987
987
  return;
988
988
  const o = [...t ?? [], n];
989
989
  for (let s = 0; s < o.length; s += 1) {
990
- const i = o.slice(s).join(ye), c = e[i];
990
+ const i = o.slice(s).join(me), c = e[i];
991
991
  if (c)
992
992
  return c;
993
993
  }
@@ -1010,14 +1010,14 @@ function Un({
1010
1010
  continue;
1011
1011
  }
1012
1012
  n.push(
1013
- [...i, a.id].join(ye)
1013
+ [...i, a.id].join(me)
1014
1014
  );
1015
1015
  }
1016
1016
  };
1017
1017
  return o(e, []), n;
1018
1018
  }
1019
1019
  function Hn(e, t) {
1020
- const n = `${ye}${e}`;
1020
+ const n = `${me}${e}`;
1021
1021
  return t.some((o) => o === e || o.endsWith(n));
1022
1022
  }
1023
1023
  function Gn({
@@ -1097,13 +1097,13 @@ function Xn(e, t) {
1097
1097
  return !0;
1098
1098
  return !1;
1099
1099
  }
1100
- const je = parseInt(Ne, 10), Be = parseInt(We, 10), Zn = je + 1, Jn = Be + 1;
1100
+ const Be = parseInt(Ne, 10), Fe = parseInt(We, 10), Zn = Be + 1, Jn = Fe + 1;
1101
1101
  function Qn(e) {
1102
1102
  const t = `.${e}-phone`, n = `.${e}-tablet`, o = `.${e}-desktop`;
1103
1103
  return `
1104
1104
  ${t}, ${n}, ${o} { display: none; }
1105
- @media (max-width: ${je}px) { ${t} { display: block; } }
1106
- @media (min-width: ${Zn}px) and (max-width: ${Be}px) { ${n} { display: block; } }
1105
+ @media (max-width: ${Be}px) { ${t} { display: block; } }
1106
+ @media (min-width: ${Zn}px) and (max-width: ${Fe}px) { ${n} { display: block; } }
1107
1107
  @media (min-width: ${Jn}px) { ${o} { display: block; } }
1108
1108
  `.trim();
1109
1109
  }
@@ -1138,32 +1138,32 @@ const eo = ["hidden"], to = /* @__PURE__ */ D({
1138
1138
  const C = h && !v ? 3 : 1;
1139
1139
  return !!(g != null && g.length) && g.length > C;
1140
1140
  }
1141
- const i = m(() => {
1141
+ const i = y(() => {
1142
1142
  var g;
1143
1143
  return (((g = t.displayItemList.containerAttributes) == null ? void 0 : g[Q]) || []).join(`;
1144
1144
  `);
1145
- }), c = m(
1145
+ }), c = y(
1146
1146
  () => i.value ? `.${o} {
1147
1147
  ${i.value}
1148
1148
  }` : ""
1149
- ), d = m(
1150
- () => !t.isComposeMode && Bn({
1149
+ ), d = y(
1150
+ () => !t.isComposeMode && Fn({
1151
1151
  containerAttributes: t.displayItemList.containerAttributes,
1152
1152
  deviceDisplayType: t.deviceDisplayType
1153
1153
  })
1154
- ), a = m(
1155
- () => Fn({
1154
+ ), a = y(
1155
+ () => Vn({
1156
1156
  containerAttributes: t.displayItemList.containerAttributes,
1157
1157
  deviceDisplayType: t.deviceDisplayType,
1158
1158
  isComposeMode: t.isComposeMode
1159
1159
  })
1160
- ), r = m(() => {
1160
+ ), r = y(() => {
1161
1161
  var v;
1162
- const h = ((v = t.displayItemList.containerAttributes) == null ? void 0 : v[Q]) || [], g = Vn(a.value);
1162
+ const h = ((v = t.displayItemList.containerAttributes) == null ? void 0 : v[Q]) || [], g = _n(a.value);
1163
1163
  return t.isComposeMode && !t.isWithinCollection || t.showDropContainers || h.length > 0 || g || s(t.isComposeMode, t.displayItemList.rows, t.isWithinCollection);
1164
- }), l = m(
1164
+ }), l = y(
1165
1165
  () => [i.value ? o : void 0, a.value.cssClasses].filter(Boolean).join(" ")
1166
- ), f = m(() => {
1166
+ ), f = y(() => {
1167
1167
  var g;
1168
1168
  return {
1169
1169
  ...(((g = t.displayItemList.containerAttributes) == null ? void 0 : g[Q]) || []).some((v) => v.toLowerCase().startsWith("height:")) ? {} : { height: t.isWithinCollection ? "auto" : "100%" },
@@ -1171,14 +1171,14 @@ ${i.value}
1171
1171
  flexDirection: "column",
1172
1172
  ...a.value.styles
1173
1173
  };
1174
- }), u = m(() => r.value ? l.value : ""), p = m(() => d.value ? { display: "none" } : r.value ? f.value : { display: "contents" });
1175
- return (h, g) => (y(), b("div", {
1174
+ }), u = y(() => r.value ? l.value : ""), p = y(() => d.value ? { display: "none" } : r.value ? f.value : { display: "contents" });
1175
+ return (h, g) => (m(), b("div", {
1176
1176
  hidden: d.value || void 0,
1177
- class: B(u.value || void 0),
1177
+ class: F(u.value || void 0),
1178
1178
  style: S(p.value)
1179
1179
  }, [
1180
- i.value ? (y(), A(R("style"), { key: 0 }, {
1181
- default: F(() => [
1180
+ i.value ? (m(), A(R("style"), { key: 0 }, {
1181
+ default: V(() => [
1182
1182
  ie(Y(c.value), 1)
1183
1183
  ]),
1184
1184
  _: 1
@@ -1202,35 +1202,35 @@ ${i.value}
1202
1202
  const u = r && !f ? 3 : 1;
1203
1203
  return !!((p = l == null ? void 0 : l.columns) != null && p.length) && l.columns.length > u;
1204
1204
  }
1205
- const o = m(
1205
+ const o = y(
1206
1206
  () => !t.isComposeMode && Mn({ row: t.row, deviceDisplayType: t.deviceDisplayType })
1207
- ), s = m(
1207
+ ), s = y(
1208
1208
  () => t.showDropContainers || Ln(t.row) || n(t.isComposeMode, t.row, t.isWithinCollection)
1209
- ), i = m(
1209
+ ), i = y(
1210
1210
  () => Nn({
1211
1211
  row: t.row,
1212
1212
  deviceDisplayType: t.deviceDisplayType,
1213
1213
  isComposeMode: t.isComposeMode
1214
1214
  })
1215
- ), c = m(() => {
1215
+ ), c = y(() => {
1216
1216
  var l;
1217
- const r = _({
1217
+ const r = O({
1218
1218
  deviceDisplayType: t.deviceDisplayType,
1219
1219
  componentAttributes: t.row.rowAttributes
1220
1220
  });
1221
1221
  return fe(
1222
1222
  (l = r == null ? void 0 : r.componentAttributesSpecificToDeviceType) == null ? void 0 : l[pe]
1223
1223
  ) ?? "";
1224
- }), d = m(() => s.value ? c.value : ""), a = m(() => o.value ? { display: "none" } : s.value ? i.value : { display: "contents" });
1225
- return (r, l) => (y(), b("div", {
1224
+ }), d = y(() => s.value ? c.value : ""), a = y(() => o.value ? { display: "none" } : s.value ? i.value : { display: "contents" });
1225
+ return (r, l) => (m(), b("div", {
1226
1226
  hidden: o.value || void 0,
1227
- class: B(d.value || void 0),
1227
+ class: F(d.value || void 0),
1228
1228
  style: S(a.value)
1229
1229
  }, [
1230
1230
  se(r.$slots, "default")
1231
1231
  ], 14, no));
1232
1232
  }
1233
- }), Fe = [
1233
+ }), Ve = [
1234
1234
  "minWidth",
1235
1235
  "maxWidth",
1236
1236
  "minHeight",
@@ -1282,7 +1282,7 @@ ${i.value}
1282
1282
  "textAlign",
1283
1283
  "textDecoration",
1284
1284
  "textTransform"
1285
- ], so = (e) => e != null && e !== "", io = (e) => e ? Fe.reduce(
1285
+ ], so = (e) => e != null && e !== "", io = (e) => e ? Ve.reduce(
1286
1286
  (t, n) => {
1287
1287
  const o = e[n];
1288
1288
  return so(o) && (t[n] = o), t;
@@ -1292,7 +1292,7 @@ ${i.value}
1292
1292
  if (!e)
1293
1293
  return;
1294
1294
  const t = { ...e };
1295
- for (const n of Fe)
1295
+ for (const n of Ve)
1296
1296
  delete t[n];
1297
1297
  return Object.keys(t).length ? t : void 0;
1298
1298
  }, lo = (e) => Object.keys(e).length > 0, co = (e, t) => {
@@ -1339,50 +1339,52 @@ ${i.value}
1339
1339
  componentAttributes: {},
1340
1340
  components: {},
1341
1341
  styleProps: {},
1342
- widgetInstanceProps: {}
1342
+ widgetInstanceProps: {},
1343
+ mounts: {}
1343
1344
  },
1344
1345
  setup(e) {
1345
- const t = e, n = m(() => t.components[Te(t.libraryId, t.componentType)]), o = m(() => {
1346
+ const t = e, n = y(() => t.components[Te(t.libraryId, t.componentType)]), o = y(() => {
1346
1347
  var h;
1347
1348
  const p = (h = n.value) == null ? void 0 : h.card;
1348
1349
  return p || (console.error(
1349
1350
  `DisplayComponent: Component with type ${t.componentType}${t.libraryId ? ` (library "${t.libraryId}")` : ""} not found in components`
1350
1351
  ), null);
1351
- }), s = m(() => ({
1352
+ }), s = y(() => ({
1352
1353
  componentAttributes: t.componentAttributes,
1353
1354
  styleProps: t.styleProps
1354
- })), i = m(
1355
+ })), i = y(
1355
1356
  () => n.value ? co(n.value, s.value) : !1
1356
- ), c = m(() => io(t.styleProps)), d = m(
1357
+ ), c = y(() => io(t.styleProps)), d = y(
1357
1358
  () => i.value ? ro(t.styleProps) : t.styleProps
1358
- ), a = m(
1359
+ ), a = y(
1359
1360
  () => {
1360
1361
  var p;
1361
1362
  return fe((p = t.componentAttributes) == null ? void 0 : p[pe]);
1362
1363
  }
1363
- ), r = m(() => i.value && lo(c.value)), l = m(
1364
+ ), r = y(() => i.value && lo(c.value)), l = y(
1364
1365
  () => !i.value || (n.value ? ao(n.value, s.value) : !1)
1365
- ), f = m(
1366
+ ), f = y(
1366
1367
  () => !r.value && l.value ? a.value : void 0
1367
- ), u = m(() => ({
1368
+ ), u = y(() => ({
1368
1369
  componentAttributes: t.componentAttributes,
1369
1370
  styleProps: d.value,
1370
1371
  className: f.value,
1371
- widgetInstanceProps: t.widgetInstanceProps
1372
+ widgetInstanceProps: t.widgetInstanceProps,
1373
+ mounts: t.mounts
1372
1374
  }));
1373
- return (p, h) => o.value ? (y(), b(I, { key: 0 }, [
1374
- r.value ? (y(), b("div", {
1375
+ return (p, h) => o.value ? (m(), b(I, { key: 0 }, [
1376
+ r.value ? (m(), b("div", {
1375
1377
  key: 0,
1376
- class: B(a.value || void 0),
1378
+ class: F(a.value || void 0),
1377
1379
  style: S(c.value)
1378
1380
  }, [
1379
- (y(), A(R(o.value), Z(ge(u.value)), null, 16))
1380
- ], 6)) : !l.value && a.value ? (y(), b("div", {
1381
+ (m(), A(R(o.value), Z(ge(u.value)), null, 16))
1382
+ ], 6)) : !l.value && a.value ? (m(), b("div", {
1381
1383
  key: 1,
1382
- class: B(a.value)
1384
+ class: F(a.value)
1383
1385
  }, [
1384
- (y(), A(R(o.value), Z(ge(u.value)), null, 16))
1385
- ], 2)) : (y(), A(R(o.value), Z(qe({ key: 2 }, u.value)), null, 16))
1386
+ (m(), A(R(o.value), Z(ge(u.value)), null, 16))
1387
+ ], 2)) : (m(), A(R(o.value), Z(qe({ key: 2 }, u.value)), null, 16))
1386
1388
  ], 64)) : W("", !0);
1387
1389
  }
1388
1390
  }), po = /* @__PURE__ */ D({
@@ -1397,6 +1399,7 @@ ${i.value}
1397
1399
  plugins: {},
1398
1400
  deviceDisplayType: {},
1399
1401
  componentProps: {},
1402
+ mounts: {},
1400
1403
  ancestorColumnIds: {}
1401
1404
  },
1402
1405
  setup(e) {
@@ -1447,15 +1450,15 @@ ${i.value}
1447
1450
  }
1448
1451
  return (a, r) => {
1449
1452
  const l = Xe("RenderComponentsInner", !0);
1450
- return y(), A(to, {
1453
+ return m(), A(to, {
1451
1454
  "display-item-list": e.displayItemList,
1452
1455
  "is-compose-mode": e.isComposeMode,
1453
1456
  "show-drop-containers": e.showDropContainers,
1454
1457
  "is-within-collection": e.isWithinCollection,
1455
1458
  "device-display-type": e.deviceDisplayType
1456
1459
  }, {
1457
- default: F(() => [
1458
- (y(!0), b(I, null, z(e.displayItemList.rows, (f) => (y(), A(oo, {
1460
+ default: V(() => [
1461
+ (m(!0), b(I, null, z(e.displayItemList.rows, (f) => (m(), A(oo, {
1459
1462
  key: f.id,
1460
1463
  row: f,
1461
1464
  "is-compose-mode": e.isComposeMode,
@@ -1463,12 +1466,12 @@ ${i.value}
1463
1466
  "is-within-collection": e.isWithinCollection,
1464
1467
  "device-display-type": e.deviceDisplayType
1465
1468
  }, {
1466
- default: F(() => [
1467
- (y(!0), b(I, null, z(f.columns, (u) => (y(), b(I, {
1469
+ default: V(() => [
1470
+ (m(!0), b(I, null, z(f.columns, (u) => (m(), b(I, {
1468
1471
  key: u.id
1469
1472
  }, [
1470
- o(u) ? (y(), b(I, { key: 0 }, [
1471
- i(u) ? (y(), A(l, {
1473
+ o(u) ? (m(), b(I, { key: 0 }, [
1474
+ i(u) ? (m(), A(l, {
1472
1475
  key: 0,
1473
1476
  "display-item-list": i(u),
1474
1477
  "is-compose-mode": e.isComposeMode,
@@ -1479,16 +1482,18 @@ ${i.value}
1479
1482
  plugins: e.plugins,
1480
1483
  "device-display-type": e.deviceDisplayType,
1481
1484
  "component-props": e.componentProps,
1485
+ mounts: e.mounts,
1482
1486
  "ancestor-column-ids": c(u.id)
1483
- }, null, 8, ["display-item-list", "is-compose-mode", "widget-collections", "show-drop-containers", "redux-device-display-type", "plugins", "device-display-type", "component-props", "ancestor-column-ids"])) : (y(), A(uo, {
1487
+ }, 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"])) : (m(), A(uo, {
1484
1488
  key: 1,
1485
1489
  "component-type": u.type,
1486
1490
  "library-id": u.libraryId,
1487
1491
  "component-attributes": s(u).componentAttributes,
1488
1492
  components: n(),
1489
1493
  "style-props": s(u).styleProps,
1490
- "widget-instance-props": d(u.id)
1491
- }, null, 8, ["component-type", "library-id", "component-attributes", "components", "style-props", "widget-instance-props"]))
1494
+ "widget-instance-props": d(u.id),
1495
+ mounts: e.mounts
1496
+ }, null, 8, ["component-type", "library-id", "component-attributes", "components", "style-props", "widget-instance-props", "mounts"]))
1492
1497
  ], 64)) : W("", !0)
1493
1498
  ], 64))), 128))
1494
1499
  ]),
@@ -1511,12 +1516,13 @@ ${i.value}
1511
1516
  deviceDisplayType: {},
1512
1517
  plugins: {},
1513
1518
  componentProps: {},
1519
+ mounts: {},
1514
1520
  ancestorColumnIds: {}
1515
1521
  },
1516
1522
  setup(e) {
1517
1523
  return (t, n) => {
1518
1524
  var o, s;
1519
- return (s = (o = e.displayItemList) == null ? void 0 : o.rows) != null && s.length ? (y(), A(po, {
1525
+ return (s = (o = e.displayItemList) == null ? void 0 : o.rows) != null && s.length ? (m(), A(po, {
1520
1526
  key: 0,
1521
1527
  "display-item-list": e.displayItemList,
1522
1528
  "is-compose-mode": e.isComposeMode,
@@ -1527,21 +1533,22 @@ ${i.value}
1527
1533
  plugins: e.plugins,
1528
1534
  "device-display-type": e.deviceDisplayType,
1529
1535
  "component-props": e.componentProps,
1536
+ mounts: e.mounts,
1530
1537
  "ancestor-column-ids": e.ancestorColumnIds
1531
- }, 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", "ancestor-column-ids"])) : W("", !0);
1538
+ }, 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"])) : W("", !0);
1532
1539
  };
1533
1540
  }
1534
- }), Ve = /* @__PURE__ */ D({
1541
+ }), _e = /* @__PURE__ */ D({
1535
1542
  __name: "LibraryStylesheets",
1536
1543
  props: {
1537
1544
  stylesheets: {}
1538
1545
  },
1539
1546
  setup(e) {
1540
- return (t, n) => (y(!0), b(I, null, z(e.stylesheets ?? [], (o) => (y(), A(R("style"), {
1547
+ return (t, n) => (m(!0), b(I, null, z(e.stylesheets ?? [], (o) => (m(), A(R("style"), {
1541
1548
  key: o,
1542
1549
  "data-rulecms-library-stylesheet": ""
1543
1550
  }, {
1544
- default: F(() => [
1551
+ default: V(() => [
1545
1552
  ie(Y(o), 1)
1546
1553
  ]),
1547
1554
  _: 2
@@ -1554,30 +1561,31 @@ ${i.value}
1554
1561
  widgetCollections: {},
1555
1562
  plugins: {},
1556
1563
  componentProps: {},
1564
+ mounts: {},
1557
1565
  scopeIdInput: {}
1558
1566
  },
1559
1567
  setup(e) {
1560
1568
  const t = ["Phone", "Tablet", "Desktop"];
1561
1569
  let n = 0;
1562
- const o = e, s = `rulecms-bp-${++n}`, i = m(() => o.scopeIdInput ?? s), c = m(
1570
+ const o = e, s = `rulecms-bp-${++n}`, i = y(() => o.scopeIdInput ?? s), c = y(
1563
1571
  () => Xn(o.displayItemList, o.widgetCollections)
1564
- ), d = m(() => Qn(i.value));
1572
+ ), d = y(() => Qn(i.value));
1565
1573
  return (a, r) => {
1566
1574
  var l;
1567
- return y(), b(I, null, [
1568
- ne(Ve, {
1575
+ return m(), b(I, null, [
1576
+ ne(_e, {
1569
1577
  stylesheets: (l = e.plugins.sourceComponents) == null ? void 0 : l.stylesheets
1570
1578
  }, null, 8, ["stylesheets"]),
1571
- c.value ? (y(), b(I, { key: 1 }, [
1572
- (y(), A(R("style"), null, {
1573
- default: F(() => [
1579
+ c.value ? (m(), b(I, { key: 1 }, [
1580
+ (m(), A(R("style"), null, {
1581
+ default: V(() => [
1574
1582
  ie(Y(d.value), 1)
1575
1583
  ]),
1576
1584
  _: 1
1577
1585
  })),
1578
- (y(), b(I, null, z(t, (f) => $("div", {
1586
+ (m(), b(I, null, z(t, (f) => $("div", {
1579
1587
  key: f,
1580
- class: B(`${i.value}-${f.toLowerCase()}`)
1588
+ class: F(`${i.value}-${f.toLowerCase()}`)
1581
1589
  }, [
1582
1590
  ne(oe, {
1583
1591
  "display-item-list": e.displayItemList,
@@ -1588,10 +1596,11 @@ ${i.value}
1588
1596
  "redux-device-display-type": "desktop",
1589
1597
  "device-display-type": f,
1590
1598
  plugins: e.plugins,
1591
- "component-props": e.componentProps
1592
- }, null, 8, ["display-item-list", "widget-collections", "device-display-type", "plugins", "component-props"])
1599
+ "component-props": e.componentProps,
1600
+ mounts: e.mounts
1601
+ }, null, 8, ["display-item-list", "widget-collections", "device-display-type", "plugins", "component-props", "mounts"])
1593
1602
  ], 2)), 64))
1594
- ], 64)) : (y(), A(oe, {
1603
+ ], 64)) : (m(), A(oe, {
1595
1604
  key: 0,
1596
1605
  "display-item-list": e.displayItemList,
1597
1606
  "is-compose-mode": !1,
@@ -1601,13 +1610,14 @@ ${i.value}
1601
1610
  "redux-device-display-type": "desktop",
1602
1611
  "device-display-type": "Desktop",
1603
1612
  plugins: e.plugins,
1604
- "component-props": e.componentProps
1605
- }, null, 8, ["display-item-list", "widget-collections", "plugins", "component-props"]))
1613
+ "component-props": e.componentProps,
1614
+ mounts: e.mounts
1615
+ }, null, 8, ["display-item-list", "widget-collections", "plugins", "component-props", "mounts"]))
1606
1616
  ], 64);
1607
1617
  };
1608
1618
  }
1609
1619
  });
1610
- function yo(e, t, n) {
1620
+ function mo(e, t, n) {
1611
1621
  if (e)
1612
1622
  return "Phone";
1613
1623
  if (t)
@@ -1615,7 +1625,7 @@ function yo(e, t, n) {
1615
1625
  const o = (n == null ? void 0 : n.toLowerCase()) || "desktop";
1616
1626
  return o === "phone" ? "Phone" : o === "tablet" ? "Tablet" : "Desktop";
1617
1627
  }
1618
- const mo = `(max-width: ${Ne})`, go = `(max-width: ${We})`, ho = /* @__PURE__ */ D({
1628
+ const yo = `(max-width: ${Ne})`, go = `(max-width: ${We})`, ho = /* @__PURE__ */ D({
1619
1629
  __name: "RenderComponents",
1620
1630
  props: {
1621
1631
  displayItemList: {},
@@ -1625,26 +1635,27 @@ const mo = `(max-width: ${Ne})`, go = `(max-width: ${We})`, ho = /* @__PURE__ */
1625
1635
  showDropContainers: { type: Boolean },
1626
1636
  reduxDeviceDisplayType: {},
1627
1637
  plugins: {},
1628
- componentProps: {}
1638
+ componentProps: {},
1639
+ mounts: {}
1629
1640
  },
1630
1641
  setup(e) {
1631
- const t = e, n = j("Desktop");
1642
+ const t = e, n = B("Desktop");
1632
1643
  let o, s;
1633
1644
  function i() {
1634
- n.value = yo(
1645
+ n.value = mo(
1635
1646
  (o == null ? void 0 : o.matches) ?? !1,
1636
1647
  (s == null ? void 0 : s.matches) ?? !1,
1637
1648
  t.reduxDeviceDisplayType
1638
1649
  );
1639
1650
  }
1640
1651
  return Ze(() => {
1641
- typeof matchMedia == "function" && (o = matchMedia(mo), s = matchMedia(go), o.addEventListener("change", i), s.addEventListener("change", i)), i();
1652
+ typeof matchMedia == "function" && (o = matchMedia(yo), s = matchMedia(go), o.addEventListener("change", i), s.addEventListener("change", i)), i();
1642
1653
  }), xe(() => {
1643
1654
  o == null || o.removeEventListener("change", i), s == null || s.removeEventListener("change", i);
1644
1655
  }), (c, d) => {
1645
1656
  var a;
1646
- return y(), b(I, null, [
1647
- e.isWithinCollection ? W("", !0) : (y(), A(Ve, {
1657
+ return m(), b(I, null, [
1658
+ e.isWithinCollection ? W("", !0) : (m(), A(_e, {
1648
1659
  key: 0,
1649
1660
  stylesheets: (a = e.plugins.sourceComponents) == null ? void 0 : a.stylesheets
1650
1661
  }, null, 8, ["stylesheets"])),
@@ -1657,8 +1668,9 @@ const mo = `(max-width: ${Ne})`, go = `(max-width: ${We})`, ho = /* @__PURE__ */
1657
1668
  "redux-device-display-type": e.reduxDeviceDisplayType,
1658
1669
  "device-display-type": n.value,
1659
1670
  plugins: e.plugins,
1660
- "component-props": e.componentProps
1661
- }, null, 8, ["display-item-list", "is-compose-mode", "is-within-collection", "widget-collections", "show-drop-containers", "redux-device-display-type", "device-display-type", "plugins", "component-props"])
1671
+ "component-props": e.componentProps,
1672
+ mounts: e.mounts
1673
+ }, null, 8, ["display-item-list", "is-compose-mode", "is-within-collection", "widget-collections", "show-drop-containers", "redux-device-display-type", "device-display-type", "plugins", "component-props", "mounts"])
1662
1674
  ], 64);
1663
1675
  };
1664
1676
  }
@@ -1750,10 +1762,11 @@ const Ao = {
1750
1762
  mode: { default: "client-fetch" },
1751
1763
  initialData: {},
1752
1764
  libraries: {},
1753
- componentProps: {}
1765
+ componentProps: {},
1766
+ mounts: {}
1754
1767
  },
1755
1768
  setup(e) {
1756
- const t = e, n = Je(Me, null), o = j(!1), s = j(null), i = j(null), c = j(null), d = m(() => t.mode === "pre-fetched"), a = m(() => ({
1769
+ const t = e, n = Je(Me, null), o = B(!1), s = B(null), i = B(null), c = B(null), d = y(() => t.mode === "pre-fetched"), a = y(() => ({
1757
1770
  sourceComponents: c.value ?? void 0
1758
1771
  }));
1759
1772
  let r = null, l = null, f = !1;
@@ -1762,14 +1775,14 @@ const Ao = {
1762
1775
  c.value = null;
1763
1776
  return;
1764
1777
  }
1765
- const C = t.libraries ?? (n == null ? void 0 : n.libraries), x = n == null ? void 0 : n.libraryRegistry, O = Co({
1778
+ const C = t.libraries ?? (n == null ? void 0 : n.libraries), x = n == null ? void 0 : n.libraryRegistry, j = Co({
1766
1779
  displayItemList: i.value.displayItemList,
1767
1780
  widgetCollections: i.value.widgetCollections,
1768
1781
  libraries: C,
1769
1782
  registry: x
1770
1783
  });
1771
- if (O) {
1772
- c.value = O;
1784
+ if (j) {
1785
+ c.value = j;
1773
1786
  return;
1774
1787
  }
1775
1788
  vo({
@@ -1805,14 +1818,14 @@ const Ao = {
1805
1818
  s.value = t.publishedKey ? "Token is required. Provide it either directly as a prop (`token`) or via RuleCMSWidgetProvider." : L(C) ? "Widget key is required" : "Published key is required", i.value = null;
1806
1819
  return;
1807
1820
  }
1808
- const O = `${t.publishedKey}|${C}`;
1809
- if (l === O && i.value) {
1821
+ const j = `${t.publishedKey}|${C}`;
1822
+ if (l === j && i.value) {
1810
1823
  u();
1811
1824
  return;
1812
1825
  }
1813
1826
  r == null || r.abort(), r = new AbortController();
1814
1827
  const X = r.signal;
1815
- l = O, o.value = !0, s.value = null;
1828
+ l = j, o.value = !0, s.value = null;
1816
1829
  const Ue = $e({ publishedKey: t.publishedKey, token: C, endpoint: x });
1817
1830
  fetch(Ue, {
1818
1831
  method: "GET",
@@ -1856,11 +1869,11 @@ const Ao = {
1856
1869
  { immediate: !0 }
1857
1870
  ), xe(() => {
1858
1871
  r == null || r.abort();
1859
- }), (C, x) => (y(), b("span", {
1872
+ }), (C, x) => (m(), b("span", {
1860
1873
  "data-rulecms-published-key": e.publishedKey,
1861
1874
  style: { display: "contents" }
1862
1875
  }, [
1863
- e.mode !== "pre-fetched" && o.value ? (y(), b("div", {
1876
+ e.mode !== "pre-fetched" && o.value ? (m(), b("div", {
1864
1877
  key: 0,
1865
1878
  style: S(T(Ao))
1866
1879
  }, [
@@ -1871,7 +1884,7 @@ const Ao = {
1871
1884
  style: S(T(Io))
1872
1885
  }, null, 4)
1873
1886
  ], 4)
1874
- ], 4)) : e.mode !== "pre-fetched" && s.value ? (y(), b("div", {
1887
+ ], 4)) : e.mode !== "pre-fetched" && s.value ? (m(), b("div", {
1875
1888
  key: 1,
1876
1889
  style: S(T(Se))
1877
1890
  }, [
@@ -1881,7 +1894,7 @@ const Ao = {
1881
1894
  $("div", {
1882
1895
  style: S(T(ke))
1883
1896
  }, Y(s.value), 5)
1884
- ], 4)) : e.mode !== "pre-fetched" && !i.value ? (y(), b("div", {
1897
+ ], 4)) : e.mode !== "pre-fetched" && !i.value ? (m(), b("div", {
1885
1898
  key: 2,
1886
1899
  style: S(T(Se))
1887
1900
  }, [
@@ -1891,14 +1904,15 @@ const Ao = {
1891
1904
  $("div", {
1892
1905
  style: S(T(ke))
1893
1906
  }, "No widget data available", 4)
1894
- ], 4)) : c.value && i.value ? (y(), b(I, { key: 3 }, [
1895
- d.value ? (y(), A(fo, {
1907
+ ], 4)) : c.value && i.value ? (m(), b(I, { key: 3 }, [
1908
+ d.value ? (m(), A(fo, {
1896
1909
  key: 0,
1897
1910
  "display-item-list": i.value.displayItemList,
1898
1911
  "widget-collections": i.value.widgetCollections,
1899
1912
  plugins: a.value,
1900
- "component-props": e.componentProps
1901
- }, null, 8, ["display-item-list", "widget-collections", "plugins", "component-props"])) : (y(), A(ho, {
1913
+ "component-props": e.componentProps,
1914
+ mounts: e.mounts
1915
+ }, null, 8, ["display-item-list", "widget-collections", "plugins", "component-props", "mounts"])) : (m(), A(ho, {
1902
1916
  key: 1,
1903
1917
  "display-item-list": i.value.displayItemList,
1904
1918
  "is-compose-mode": !1,
@@ -1907,8 +1921,9 @@ const Ao = {
1907
1921
  "show-drop-containers": !1,
1908
1922
  "redux-device-display-type": "desktop",
1909
1923
  plugins: a.value,
1910
- "component-props": e.componentProps
1911
- }, null, 8, ["display-item-list", "widget-collections", "plugins", "component-props"]))
1924
+ "component-props": e.componentProps,
1925
+ mounts: e.mounts
1926
+ }, null, 8, ["display-item-list", "widget-collections", "plugins", "component-props", "mounts"]))
1912
1927
  ], 64)) : W("", !0)
1913
1928
  ], 8, Do));
1914
1929
  }
@@ -1916,7 +1931,7 @@ const Ao = {
1916
1931
  class H extends Error {
1917
1932
  constructor(n, o) {
1918
1933
  super(n);
1919
- me(this, "status");
1934
+ ye(this, "status");
1920
1935
  this.name = "FetchRuleCMSWidgetError", this.status = o;
1921
1936
  }
1922
1937
  }
@@ -1957,12 +1972,12 @@ export {
1957
1972
  Eo as AlignContentTypes,
1958
1973
  fo as BreakpointVariantRender,
1959
1974
  Ee as COLLECTION_TYPE_PREFIX,
1960
- ye as COMPONENT_PROPS_PATH_SEPARATOR,
1975
+ me as COMPONENT_PROPS_PATH_SEPARATOR,
1961
1976
  pe as CSS_CLASSES_ATTRIBUTE_NAME,
1962
- _t as CSS_VARIABLE_NAME_MAX_LENGTH,
1977
+ Ot as CSS_VARIABLE_NAME_MAX_LENGTH,
1963
1978
  Wt as CSS_VARIABLE_NAME_PATTERN,
1964
1979
  bt as DEFAULT_CLOUDINARY_CLOUD_NAME,
1965
- V as DEFAULT_LIBRARY_ID,
1980
+ _ as DEFAULT_LIBRARY_ID,
1966
1981
  Rn as DEFAULT_ROW_GAP,
1967
1982
  ot as DEV_CLIENT_TOKEN_PREFIX,
1968
1983
  lt as DEV_WIDGET_API_PATH,
@@ -1970,10 +1985,10 @@ export {
1970
1985
  uo as DisplayComponent,
1971
1986
  re as DisplayItemTypes,
1972
1987
  Pe as DragItemIdPrefixTypes,
1973
- yt as EMBEDDED_KEY_SEPARATOR,
1988
+ mt as EMBEDDED_KEY_SEPARATOR,
1974
1989
  rn as FLEX_LAYOUT_STYLE_KEYS_THAT_DERIVE_DISPLAY,
1975
1990
  H as FetchRuleCMSWidgetError,
1976
- Oe as HIDE_WIDGET_ATTRIBUTE_NAME,
1991
+ je as HIDE_WIDGET_ATTRIBUTE_NAME,
1977
1992
  we as JustifyContentTypes,
1978
1993
  ft as PUBLISHED_KEY_SEPARATOR,
1979
1994
  rt as PUBLISHED_WIDGET_API_PATH,
@@ -1985,8 +2000,8 @@ export {
1985
2000
  oe as RenderComponentsForDevice,
1986
2001
  po as RenderComponentsInner,
1987
2002
  Uo as RuleCMSWidget,
1988
- jo as RuleCMSWidgetProvider,
1989
- On as WIDGET_ATTRIBUTES_IGNORED_IN_COMPOSE_MODE,
2003
+ Bo as RuleCMSWidgetProvider,
2004
+ jn as WIDGET_ATTRIBUTES_IGNORED_IN_COMPOSE_MODE,
1990
2005
  it as WIDGET_CACHE_API_ORIGIN,
1991
2006
  en as alignContentAllowlist,
1992
2007
  Jt as alignItemsAllowlist,
@@ -1994,8 +2009,8 @@ export {
1994
2009
  sn as backgroundRepeatAllowlist,
1995
2010
  nn as backgroundSizeAllowlist,
1996
2011
  ln as borderStyleKeywords,
1997
- Bt as boxSpacingSideKeys,
1998
- Vo as boxSpacingStyleAttributeEntries,
2012
+ Ft as boxSpacingSideKeys,
2013
+ _o as boxSpacingStyleAttributeEntries,
1999
2014
  Nt as buildCloudinaryBackgroundUrl,
2000
2015
  $e as buildWidgetFetchUrl,
2001
2016
  Un as collectComponentInstancePaths,
@@ -2005,7 +2020,7 @@ export {
2005
2020
  Q as cssAttrArrayKey,
2006
2021
  ht as defaultPageWidth,
2007
2022
  Tn as deriveDisplayFlexIfNeeded,
2008
- Bo as desktopModeWidth,
2023
+ Fo as desktopModeWidth,
2009
2024
  Ho as fetchRuleCMSWidget,
2010
2025
  Gn as findUnmatchedComponentPropsKeys,
2011
2026
  tn as flexDirectionAllowlist,
@@ -2022,20 +2037,20 @@ export {
2022
2037
  An as formatCssEnumStyles,
2023
2038
  Sn as formatCssLengthStyles,
2024
2039
  k as formatCssVariable,
2025
- Fo as formatCssVariableStyles,
2040
+ Vo as formatCssVariableStyles,
2026
2041
  In as formatLineHeightStyles,
2027
2042
  Dn as formatObjectStyleAttribute,
2028
2043
  kn as formatOpacityStyles,
2029
2044
  N as formatSpacingSideValue,
2030
- mt as generatePublishedKey,
2031
- _o as generatePublishedKeyForEmbedded,
2045
+ yt as generatePublishedKey,
2046
+ Oo as generatePublishedKeyForEmbedded,
2032
2047
  Le as getCollectionIdForCollectionType,
2033
2048
  G as getColumnAttributes,
2034
2049
  Ce as getComponentAttributesAndStyles,
2035
2050
  te as getComponentsPluginFromPlugins,
2036
2051
  w as getCssVariableFromLeaf,
2037
2052
  Pn as getDefaultDimensionAttributes,
2038
- _ as getDeviceTypeBasedAttributes,
2053
+ O as getDeviceTypeBasedAttributes,
2039
2054
  Ro as getDragItemId,
2040
2055
  at as getDragItemPrefixAndId,
2041
2056
  ut as getIdAndPrefix,
@@ -2050,25 +2065,25 @@ export {
2050
2065
  Xn as hasDeviceDivergentValues,
2051
2066
  P as hasInvalidCssVariable,
2052
2067
  $n as hasItems,
2053
- Oo as incrementVersion,
2054
- Ot as isBackgroundImageValue,
2068
+ jo as incrementVersion,
2069
+ jt as isBackgroundImageValue,
2055
2070
  cn as isBorderStyleValue,
2056
2071
  an as isBorderValue,
2057
2072
  pn as isBoxShadowValue,
2058
- Ft as isBoxSpacingValue,
2073
+ Vt as isBoxSpacingValue,
2059
2074
  Et as isCloudinaryCloudName,
2060
2075
  Pt as isCloudinaryPublicId,
2061
2076
  Rt as isCloudinaryTransformationString,
2062
2077
  ae as isCssColorValue,
2063
2078
  Ut as isCssEnumValue,
2064
- _e as isCssVariableName,
2079
+ Oe as isCssVariableName,
2065
2080
  L as isDevClientToken,
2066
- yn as isLineHeightValue,
2067
- mn as isOpacityValue,
2081
+ mn as isLineHeightValue,
2082
+ yn as isOpacityValue,
2068
2083
  Mn as isRowHiddenForDevice,
2069
2084
  $t as isSafeImageUrl,
2070
2085
  M as isSpacingSideValue,
2071
- Bn as isWidgetHiddenForDevice,
2086
+ Fn as isWidgetHiddenForDevice,
2072
2087
  Zt as justifyContentAllowlist,
2073
2088
  fe as normalizeCssClasses,
2074
2089
  de as objectStyleAttributeRegistry,
@@ -2078,17 +2093,17 @@ export {
2078
2093
  Te as resolveKey,
2079
2094
  Nn as resolveRowStyles,
2080
2095
  ct as resolveWidgetApiOrigin,
2081
- Fn as resolveWidgetContainerStyles,
2096
+ Vn as resolveWidgetContainerStyles,
2082
2097
  Kn as resolveWidgetInstanceProps,
2083
2098
  Go as resolveWidgetLibraries,
2084
2099
  Ln as rowBasedPropertiesAreAssigned,
2085
2100
  ce as spacingKeywords,
2086
- jt as spacingLengthUnits,
2101
+ Bt as spacingLengthUnits,
2087
2102
  We as tabletModeWidth,
2088
2103
  Yt as textAlignAllowlist,
2089
2104
  qt as textDecorationAllowlist,
2090
2105
  Xt as textTransformAllowlist,
2091
2106
  Re as typeHasPrefix,
2092
2107
  zn as warnUnmatchedComponentProps,
2093
- Vn as widgetBasedPropertiesAreAssigned
2108
+ _n as widgetBasedPropertiesAreAssigned
2094
2109
  };