@builder.io/sdk-react 0.12.5 → 0.12.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsx as l, Fragment as h, jsxs as A } from "react/jsx-runtime";
3
- import { createContext as pe, useState as v, useContext as se, useRef as ee, useEffect as E, createElement as Fe } from "react";
4
- import { T as $, i as N, j as V, k as Le, l as M, m as _, n as te, r as _e, o as H, p as de, a as Oe, c as je, b as Ce, q as De, u as ue, v as me, w as Ue } from "./server-entry-b9bdd327.js";
3
+ import { createContext as pe, useState as v, useContext as se, useRef as ee, useEffect as E, createElement as Le } from "react";
4
+ import { T as $, i as N, j as V, k as _e, l as M, m as _, n as te, r as Oe, o as H, p as de, a as je, c as De, b as Ce, q as Ue, u as ue, v as me, w as Me } from "./server-entry-b9bdd327.js";
5
5
  import { _ as pn, h as Cn, f as wn, g as In, e as Tn, d as Rn, s as En, t as Pn } from "./server-entry-b9bdd327.js";
6
- const Me = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), He = (e) => typeof e == "string" && Me.has(e.toLowerCase());
6
+ const He = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ke = (e) => typeof e == "string" && He.has(e.toLowerCase());
7
7
  function ne(e) {
8
- return /* @__PURE__ */ l(h, { children: He(e.TagName) ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(h, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) : /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) }) });
8
+ return /* @__PURE__ */ l(h, { children: Ke(e.TagName) ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(h, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) : /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) }) });
9
9
  }
10
10
  const O = () => {
11
11
  switch ($) {
@@ -20,7 +20,7 @@ const O = () => {
20
20
  return "class";
21
21
  }
22
22
  };
23
- function Ke(e) {
23
+ function ze(e) {
24
24
  return /* @__PURE__ */ l(
25
25
  ne,
26
26
  {
@@ -55,7 +55,7 @@ const ie = pe({
55
55
  BlocksWrapper: "div",
56
56
  BlocksWrapperProps: {}
57
57
  }), we = pe({ registeredComponents: {} });
58
- function ze(e) {
58
+ function qe(e) {
59
59
  var t;
60
60
  return {
61
61
  ...(t = e.component) == null ? void 0 : t.options,
@@ -66,7 +66,7 @@ function ze(e) {
66
66
  builderBlock: e
67
67
  };
68
68
  }
69
- const qe = ({
69
+ const Ye = ({
70
70
  builder: e,
71
71
  context: t,
72
72
  event: n,
@@ -78,12 +78,12 @@ const qe = ({
78
78
  builder: e,
79
79
  context: t,
80
80
  event: n
81
- }), Ye = () => ({
81
+ }), Qe = () => ({
82
82
  isEditing: N(),
83
83
  isBrowser: V(),
84
84
  isServer: !V(),
85
- getUserAttributes: () => Le()
86
- }), Qe = (e, {
85
+ getUserAttributes: () => _e()
86
+ }), Ge = (e, {
87
87
  isExpression: t = !0
88
88
  }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, fe = ({
89
89
  code: e,
@@ -91,26 +91,43 @@ const qe = ({
91
91
  context: n,
92
92
  event: i,
93
93
  localState: o,
94
- rootSetState: r,
95
- rootState: a
94
+ rootSetState: a,
95
+ rootState: r
96
96
  }) => {
97
- const c = qe({
97
+ const c = Ye({
98
98
  builder: t,
99
99
  context: n,
100
100
  event: i,
101
- state: Ge(a, o, r)
101
+ state: Ie({
102
+ rootState: r,
103
+ localState: o,
104
+ rootSetState: a
105
+ })
102
106
  });
103
107
  return new Function(...c.map(([s]) => s), e)(...c.map(([, s]) => s));
104
108
  };
105
- function Ge(e, t, n) {
106
- if (e === t)
107
- throw new Error("rootState === localState");
109
+ function Ie({
110
+ rootState: e,
111
+ localState: t,
112
+ rootSetState: n
113
+ }) {
108
114
  return new Proxy(e, {
109
- get: (i, o) => t && o in t ? t[o] : e[o],
110
- set: (i, o, r) => {
115
+ get: (i, o) => {
116
+ if (t && o in t)
117
+ return t[o];
118
+ const a = i[o];
119
+ return typeof a == "object" ? Ie({
120
+ rootState: a,
121
+ localState: void 0,
122
+ rootSetState: n ? (r) => {
123
+ i[o] = r, n(i);
124
+ } : void 0
125
+ }) : a;
126
+ },
127
+ set: (i, o, a) => {
111
128
  if (t && o in t)
112
129
  throw new Error("Writing to local state is not allowed as it is read-only.");
113
- return e[o] = r, n == null || n(e), !0;
130
+ return i[o] = a, n == null || n(i), !0;
114
131
  }
115
132
  });
116
133
  }
@@ -131,20 +148,20 @@ function j({
131
148
  localState: n,
132
149
  rootState: i,
133
150
  rootSetState: o,
134
- event: r,
135
- isExpression: a = !0
151
+ event: a,
152
+ isExpression: r = !0
136
153
  }) {
137
154
  if (e === "") {
138
155
  _.warn("Skipping evaluation of empty code block.");
139
156
  return;
140
157
  }
141
158
  const c = {
142
- code: Qe(e, {
143
- isExpression: a
159
+ code: Ge(e, {
160
+ isExpression: r
144
161
  }),
145
- builder: Ye(),
162
+ builder: Qe(),
146
163
  context: t,
147
- event: r,
164
+ event: a,
148
165
  rootSetState: o,
149
166
  rootState: i,
150
167
  localState: n
@@ -162,7 +179,7 @@ const et = (e, t, n) => {
162
179
  if (Object(e) !== e)
163
180
  return e;
164
181
  const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
165
- return i.slice(0, -1).reduce((o, r, a) => Object(o[r]) === o[r] ? o[r] : o[r] = Math.abs(Number(i[a + 1])) >> 0 === +i[a + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
182
+ return i.slice(0, -1).reduce((o, a, r) => Object(o[a]) === o[a] ? o[a] : o[a] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
166
183
  };
167
184
  const tt = ({
168
185
  block: e,
@@ -173,13 +190,13 @@ const tt = ({
173
190
  }) => {
174
191
  if (!e.bindings)
175
192
  return e;
176
- const r = te(e), a = {
177
- ...r,
193
+ const a = te(e), r = {
194
+ ...a,
178
195
  properties: {
179
- ...r.properties
196
+ ...a.properties
180
197
  },
181
198
  actions: {
182
- ...r.actions
199
+ ...a.actions
183
200
  }
184
201
  };
185
202
  for (const c in e.bindings) {
@@ -190,9 +207,9 @@ const tt = ({
190
207
  rootSetState: o,
191
208
  context: t
192
209
  });
193
- et(a, c, d);
210
+ et(r, c, d);
194
211
  }
195
- return a;
212
+ return r;
196
213
  };
197
214
  function K({
198
215
  block: e,
@@ -200,31 +217,31 @@ function K({
200
217
  shouldEvaluateBindings: n,
201
218
  localState: i,
202
219
  rootState: o,
203
- rootSetState: r
220
+ rootSetState: a
204
221
  }) {
205
- const a = e;
222
+ const r = e;
206
223
  return n ? tt({
207
- block: a,
224
+ block: r,
208
225
  localState: i,
209
226
  rootState: o,
210
- rootSetState: r,
227
+ rootSetState: a,
211
228
  context: t
212
- }) : a;
229
+ }) : r;
213
230
  }
214
231
  const nt = ({
215
232
  block: e,
216
233
  context: t,
217
234
  registeredComponents: n
218
235
  }) => {
219
- var r;
220
- const i = (r = K({
236
+ var a;
237
+ const i = (a = K({
221
238
  block: e,
222
239
  localState: t.localState,
223
240
  rootState: t.rootState,
224
241
  rootSetState: t.rootSetState,
225
242
  context: t.context,
226
243
  shouldEvaluateBindings: !1
227
- }).component) == null ? void 0 : r.name;
244
+ }).component) == null ? void 0 : a.name;
228
245
  if (!i)
229
246
  return null;
230
247
  const o = n[i];
@@ -252,7 +269,7 @@ const nt = ({
252
269
  });
253
270
  if (!Array.isArray(o))
254
271
  return;
255
- const r = n.collection.split(".").pop(), a = n.itemName || (r ? r + "Item" : "item");
272
+ const a = n.collection.split(".").pop(), r = n.itemName || (a ? a + "Item" : "item");
256
273
  return o.map((s, d) => ({
257
274
  context: {
258
275
  ...t,
@@ -260,13 +277,13 @@ const nt = ({
260
277
  ...t.localState,
261
278
  $index: d,
262
279
  $item: s,
263
- [a]: s,
264
- [`$${a}Index`]: d
280
+ [r]: s,
281
+ [`$${r}Index`]: d
265
282
  }
266
283
  },
267
284
  block: i
268
285
  }));
269
- }, Ie = {
286
+ }, Te = {
270
287
  small: {
271
288
  min: 320,
272
289
  default: 321,
@@ -282,11 +299,11 @@ const nt = ({
282
299
  default: 991,
283
300
  max: 1200
284
301
  }
285
- }, he = (e, t = Ie) => `@media (max-width: ${t[e].max}px)`, Te = ({
302
+ }, he = (e, t = Te) => `@media (max-width: ${t[e].max}px)`, Re = ({
286
303
  small: e,
287
304
  medium: t
288
305
  }) => {
289
- const n = te(Ie);
306
+ const n = te(Te);
290
307
  if (!e || !t)
291
308
  return n;
292
309
  const i = Math.floor(e / 2);
@@ -301,17 +318,17 @@ const nt = ({
301
318
  min: o,
302
319
  default: o + 1
303
320
  };
304
- const r = n.medium.max + 1;
321
+ const a = n.medium.max + 1;
305
322
  return n.large = {
306
323
  max: 2e3,
307
324
  // TODO: decide upper limit
308
- min: r,
309
- default: r + 1
325
+ min: a,
326
+ default: a + 1
310
327
  }, n;
311
- }, ot = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Re = (e) => Object.entries(e).map(([n, i]) => {
328
+ }, ot = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Ee = (e) => Object.entries(e).map(([n, i]) => {
312
329
  if (typeof i == "string")
313
330
  return `${ot(n)}: ${i};`;
314
- }).filter(M), at = (e) => Re(e).join(`
331
+ }).filter(M), at = (e) => Ee(e).join(`
315
332
  `), J = ({
316
333
  mediaQuery: e,
317
334
  className: t,
@@ -348,8 +365,8 @@ function rt(e) {
348
365
  rootSetState: e.context.rootSetState,
349
366
  context: e.context.context,
350
367
  shouldEvaluateBindings: !0
351
- }), o = i.responsiveStyles, r = e.context.content, a = Te(
352
- ((x = r == null ? void 0 : r.meta) == null ? void 0 : x.breakpoints) || {}
368
+ }), o = i.responsiveStyles, a = e.context.content, r = Re(
369
+ ((x = a == null ? void 0 : a.meta) == null ? void 0 : x.breakpoints) || {}
353
370
  ), c = o == null ? void 0 : o.large, s = o == null ? void 0 : o.medium, d = o == null ? void 0 : o.small, m = i.id;
354
371
  if (!m)
355
372
  return "";
@@ -361,14 +378,14 @@ function rt(e) {
361
378
  styles: s,
362
379
  mediaQuery: he(
363
380
  "medium",
364
- a
381
+ r
365
382
  )
366
383
  }) : "", S = d ? J({
367
384
  className: m,
368
385
  styles: d,
369
386
  mediaQuery: he(
370
387
  "small",
371
- a
388
+ r
372
389
  )
373
390
  }) : "";
374
391
  return [g, k, S].join(" ");
@@ -387,24 +404,24 @@ const ct = (e) => `on${lt(e)}`, st = (e, t) => (n) => j({
387
404
  event: n,
388
405
  isExpression: !1
389
406
  });
390
- function Ee(e) {
407
+ function Pe(e) {
391
408
  var i;
392
409
  const t = {}, n = (i = e.block.actions) != null ? i : {};
393
410
  for (const o in n) {
394
411
  if (!n.hasOwnProperty(o))
395
412
  continue;
396
- const r = n[o];
397
- let a = ct(o);
413
+ const a = n[o];
414
+ let r = ct(o);
398
415
  if (e.stripPrefix)
399
416
  switch ($) {
400
417
  case "vue":
401
- a = a.replace("v-on:", "");
418
+ r = r.replace("v-on:", "");
402
419
  break;
403
420
  case "svelte":
404
- a = a.replace("on:", "");
421
+ r = r.replace("on:", "");
405
422
  break;
406
423
  }
407
- t[a] = st(r, e);
424
+ t[r] = st(a, e);
408
425
  }
409
426
  return t;
410
427
  }
@@ -416,17 +433,17 @@ function dt({
416
433
  const ut = ({
417
434
  block: e,
418
435
  context: t
419
- }) => Pe(dt({
436
+ }) => Be(dt({
420
437
  style: e.style || {},
421
438
  context: t,
422
439
  block: e
423
440
  }));
424
- function Pe(e) {
441
+ function Be(e) {
425
442
  switch ($) {
426
443
  case "svelte":
427
444
  case "vue":
428
445
  case "solid":
429
- return Re(e).join(" ");
446
+ return Ee(e).join(" ");
430
447
  case "qwik":
431
448
  case "reactNative":
432
449
  case "react":
@@ -472,7 +489,7 @@ function ht(e) {
472
489
  block: e.block,
473
490
  context: e.context
474
491
  }),
475
- actionAttributes: Ee({
492
+ actionAttributes: Pe({
476
493
  block: e.block,
477
494
  rootState: e.context.rootState,
478
495
  rootSetState: e.context.rootSetState,
@@ -494,7 +511,7 @@ function gt(e) {
494
511
  block: e.block,
495
512
  context: e.context
496
513
  }),
497
- ...Ee({
514
+ ...Pe({
498
515
  block: e.block,
499
516
  rootState: e.context.rootState,
500
517
  rootSetState: e.context.rootSetState,
@@ -512,8 +529,8 @@ const bt = ({
512
529
  context: n,
513
530
  componentRef: i,
514
531
  includeBlockProps: o,
515
- isInteractive: r,
516
- contextValue: a
532
+ isInteractive: a,
533
+ contextValue: r
517
534
  }) => {
518
535
  const c = {
519
536
  ...e,
@@ -524,11 +541,11 @@ const bt = ({
524
541
  ...o ? {
525
542
  attributes: oe({
526
543
  block: t,
527
- context: a
544
+ context: r
528
545
  })
529
546
  } : {}
530
547
  };
531
- return r ? {
548
+ return a ? {
532
549
  Wrapper: i,
533
550
  block: t,
534
551
  context: n,
@@ -609,14 +626,14 @@ function q(e) {
609
626
  var x;
610
627
  return e.block.tagName === "a" || ((x = i().properties) == null ? void 0 : x.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
611
628
  }
612
- function r() {
629
+ function a() {
613
630
  var C, R;
614
631
  if ((C = e.block.repeat) != null && C.collection)
615
632
  return !!((R = n == null ? void 0 : n()) != null && R.length);
616
633
  const S = "hide" in i() ? i().hide : !1;
617
634
  return ("show" in i() ? i().show : !0) && !S;
618
635
  }
619
- function a() {
636
+ function r() {
620
637
  var x, C;
621
638
  return !((x = t == null ? void 0 : t()) != null && x.component) && !n() ? (C = i().children) != null ? C : [] : [];
622
639
  }
@@ -626,7 +643,7 @@ function q(e) {
626
643
  blockChildren: (S = i().children) != null ? S : [],
627
644
  componentRef: (x = t == null ? void 0 : t()) == null ? void 0 : x.component,
628
645
  componentOptions: {
629
- ...ze(i()),
646
+ ...qe(i()),
630
647
  builderContext: e.context,
631
648
  ...((C = t == null ? void 0 : t()) == null ? void 0 : C.name) === "Core:Button" || ((R = t == null ? void 0 : t()) == null ? void 0 : R.name) === "Symbol" || ((B = t == null ? void 0 : t()) == null ? void 0 : B.name) === "Columns" ? {
632
649
  builderLinkComponent: e.linkComponent
@@ -644,7 +661,7 @@ function q(e) {
644
661
  };
645
662
  }
646
663
  const [s, d] = v(() => e.context);
647
- return /* @__PURE__ */ l(h, { children: r() ? /* @__PURE__ */ A(h, { children: [
664
+ return /* @__PURE__ */ l(h, { children: a() ? /* @__PURE__ */ A(h, { children: [
648
665
  /* @__PURE__ */ l(rt, { block: e.block, context: e.context }),
649
666
  (m = t == null ? void 0 : t()) != null && m.noWrap ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
650
667
  ge,
@@ -690,7 +707,7 @@ function q(e) {
690
707
  isInteractive: c().isInteractive
691
708
  }
692
709
  ),
693
- (g = a()) == null ? void 0 : g.map((S) => /* @__PURE__ */ l(
710
+ (g = r()) == null ? void 0 : g.map((S) => /* @__PURE__ */ l(
694
711
  q,
695
712
  {
696
713
  block: S,
@@ -711,8 +728,8 @@ function St(e) {
711
728
  return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
712
729
  }
713
730
  function n() {
714
- var o, r;
715
- N() && !((o = e.blocks) != null && o.length) && ((r = window.parent) == null || r.postMessage(
731
+ var o, a;
732
+ N() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
716
733
  {
717
734
  type: "builder.clickEmptyBlocks",
718
735
  data: {
@@ -724,8 +741,8 @@ function St(e) {
724
741
  ));
725
742
  }
726
743
  function i() {
727
- var o, r;
728
- N() && !((o = e.blocks) != null && o.length) && ((r = window.parent) == null || r.postMessage(
744
+ var o, a;
745
+ N() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
729
746
  {
730
747
  type: "builder.hoverEmptyBlocks",
731
748
  data: {
@@ -759,7 +776,7 @@ function St(e) {
759
776
  ] });
760
777
  }
761
778
  function Y(e) {
762
- var i, o, r;
779
+ var i, o, a;
763
780
  const t = se(ie), n = se(we);
764
781
  return /* @__PURE__ */ l(
765
782
  St,
@@ -770,15 +787,15 @@ function Y(e) {
770
787
  styleProp: e.styleProp,
771
788
  BlocksWrapper: (i = e.context) == null ? void 0 : i.BlocksWrapper,
772
789
  BlocksWrapperProps: (o = e.context) == null ? void 0 : o.BlocksWrapperProps,
773
- children: e.blocks ? /* @__PURE__ */ l(h, { children: (r = e.blocks) == null ? void 0 : r.map((a) => /* @__PURE__ */ l(
790
+ children: e.blocks ? /* @__PURE__ */ l(h, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
774
791
  q,
775
792
  {
776
- block: a,
793
+ block: r,
777
794
  linkComponent: e.linkComponent,
778
795
  context: e.context || t,
779
796
  registeredComponents: e.registeredComponents || n.registeredComponents
780
797
  },
781
- a.id
798
+ r.id
782
799
  )) }) : null
783
800
  }
784
801
  );
@@ -787,7 +804,7 @@ function xt(e) {
787
804
  var B;
788
805
  const [t, n] = v(
789
806
  () => typeof e.space == "number" ? e.space || 0 : 20
790
- ), [i, o] = v(() => e.columns || []), [r, a] = v(
807
+ ), [i, o] = v(() => e.columns || []), [a, r] = v(
791
808
  () => e.stackColumnsAt || "tablet"
792
809
  );
793
810
  function c(w) {
@@ -802,13 +819,13 @@ function xt(e) {
802
819
  stackedStyle: w,
803
820
  desktopStyle: I
804
821
  }) {
805
- return r === "tablet" ? w : I;
822
+ return a === "tablet" ? w : I;
806
823
  }
807
824
  function m({
808
825
  stackedStyle: w,
809
826
  desktopStyle: I
810
827
  }) {
811
- return r === "never" ? I : w;
828
+ return a === "never" ? I : w;
812
829
  }
813
830
  const [g, k] = v(
814
831
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
@@ -852,7 +869,7 @@ function xt(e) {
852
869
  }
853
870
  function C(w) {
854
871
  var P, W;
855
- return Te(
872
+ return Re(
856
873
  ((W = (P = e.builderContext.content) == null ? void 0 : P.meta) == null ? void 0 : W.breakpoints) || {}
857
874
  )[w].max;
858
875
  }
@@ -901,7 +918,7 @@ function xt(e) {
901
918
  href: w.link
902
919
  } : {},
903
920
  [O()]: "builder-column",
904
- style: Pe(x(I))
921
+ style: Be(x(I))
905
922
  },
906
923
  children: /* @__PURE__ */ l(
907
924
  Y,
@@ -946,8 +963,8 @@ function pt(e, t) {
946
963
  return be(e);
947
964
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
948
965
  if (n) {
949
- const i = e.split(n[0]), o = n[3], r = t.match("x") ? t : `${t}x`;
950
- return be(`${i[0]}_${r}${o}`);
966
+ const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
967
+ return be(`${i[0]}_${a}${o}`);
951
968
  }
952
969
  return null;
953
970
  }
@@ -963,7 +980,7 @@ function X(e) {
963
980
  return e.match(/cdn\.shopify\.com/) ? t.map((n) => [pt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
964
981
  }
965
982
  function Ct(e) {
966
- var o, r, a, c;
983
+ var o, a, r, c;
967
984
  function t() {
968
985
  var m;
969
986
  const d = e.image || e.src;
@@ -1014,7 +1031,7 @@ function Ct(e) {
1014
1031
  }
1015
1032
  )
1016
1033
  ] }),
1017
- e.aspectRatio && !((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
1034
+ e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
1018
1035
  "div",
1019
1036
  {
1020
1037
  className: "builder-image-sizer div-40c70c9b",
@@ -1023,7 +1040,7 @@ function Ct(e) {
1023
1040
  }
1024
1041
  }
1025
1042
  ) }) : null,
1026
- (c = (a = e.builderBlock) == null ? void 0 : a.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(h, { children: e.children }) : null,
1043
+ (c = (r = e.builderBlock) == null ? void 0 : r.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(h, { children: e.children }) : null,
1027
1044
  !e.fitContent && e.children ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l("div", { className: "div-40c70c9b-2", children: e.children }) }) : null
1028
1045
  ] }),
1029
1046
  /* @__PURE__ */ l("style", { children: `.img-40c70c9b {
@@ -1278,7 +1295,7 @@ const It = {
1278
1295
  });
1279
1296
  }
1280
1297
  const n = e.get("columns");
1281
- Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((c, s) => c + s.get("width"), 0) !== 100) && t();
1298
+ Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((c, s) => c + s.get("width"), 0) !== 100) && t();
1282
1299
  }
1283
1300
  }, {
1284
1301
  name: "space",
@@ -1324,14 +1341,14 @@ const It = {
1324
1341
  }]
1325
1342
  };
1326
1343
  function Et(e) {
1327
- const t = ee(null), [n, i] = v(() => []), [o, r] = v(() => []);
1344
+ const t = ee(null), [n, i] = v(() => []), [o, a] = v(() => []);
1328
1345
  return E(() => {
1329
1346
  var c;
1330
1347
  if (!((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
1331
1348
  return;
1332
- const a = t.current.getElementsByTagName("script");
1333
- for (let s = 0; s < a.length; s++) {
1334
- const d = a[s];
1349
+ const r = t.current.getElementsByTagName("script");
1350
+ for (let s = 0; s < r.length; s++) {
1351
+ const d = r[s];
1335
1352
  if (d.src) {
1336
1353
  if (n.includes(d.src))
1337
1354
  continue;
@@ -1388,7 +1405,7 @@ const Pt = {
1388
1405
  }]
1389
1406
  }, Bt = ["text/javascript", "application/javascript", "application/ecmascript"], Wt = (e) => Bt.includes(e.type);
1390
1407
  function At(e) {
1391
- const t = ee(null), [n, i] = v(() => []), [o, r] = v(() => []), [a, c] = v(() => !1);
1408
+ const t = ee(null), [n, i] = v(() => []), [o, a] = v(() => []), [r, c] = v(() => !1);
1392
1409
  function s() {
1393
1410
  if (!t.current || !t.current.getElementsByTagName)
1394
1411
  return;
@@ -1408,8 +1425,8 @@ function At(e) {
1408
1425
  }
1409
1426
  }
1410
1427
  return E(() => {
1411
- t.current && !a && (c(!0), s());
1412
- }, [t.current, a]), /* @__PURE__ */ l(
1428
+ t.current && !r && (c(!0), s());
1429
+ }, [t.current, r]), /* @__PURE__ */ l(
1413
1430
  "div",
1414
1431
  {
1415
1432
  className: "builder-embed",
@@ -1444,7 +1461,7 @@ const Nt = {
1444
1461
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1445
1462
  onChange: (e) => {
1446
1463
  e.delete("srcset"), e.delete("noWebp");
1447
- function n(a, c = 6e4) {
1464
+ function n(r, c = 6e4) {
1448
1465
  return new Promise((s, d) => {
1449
1466
  const m = document.createElement("img");
1450
1467
  let g = !1;
@@ -1452,21 +1469,21 @@ const Nt = {
1452
1469
  g = !0, s(m);
1453
1470
  }, m.addEventListener("error", (k) => {
1454
1471
  console.warn("Image load failed", k.error), d(k.error);
1455
- }), m.src = a, setTimeout(() => {
1472
+ }), m.src = r, setTimeout(() => {
1456
1473
  g || d(new Error("Image load timed out"));
1457
1474
  }, c);
1458
1475
  });
1459
1476
  }
1460
- function i(a) {
1461
- return Math.round(a * 1e3) / 1e3;
1477
+ function i(r) {
1478
+ return Math.round(r * 1e3) / 1e3;
1462
1479
  }
1463
- const o = e.get("image"), r = e.get("aspectRatio");
1464
- if (fetch(o).then((a) => a.blob()).then((a) => {
1465
- a.type.includes("svg") && e.set("noWebp", !0);
1466
- }), o && (!r || r === 0.7041))
1467
- return n(o).then((a) => {
1480
+ const o = e.get("image"), a = e.get("aspectRatio");
1481
+ if (fetch(o).then((r) => r.blob()).then((r) => {
1482
+ r.type.includes("svg") && e.set("noWebp", !0);
1483
+ }), o && (!a || a === 0.7041))
1484
+ return n(o).then((r) => {
1468
1485
  const c = e.get("aspectRatio");
1469
- e.get("image") === o && (!c || c === 0.7041) && a.width && a.height && (e.set("aspectRatio", i(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
1486
+ e.get("image") === o && (!c || c === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
1470
1487
  });
1471
1488
  }
1472
1489
  }, {
@@ -1778,7 +1795,7 @@ const Mt = {
1778
1795
  }]
1779
1796
  };
1780
1797
  function Ht(e) {
1781
- var i, o, r, a, c, s, d;
1798
+ var i, o, a, r, c, s, d;
1782
1799
  function t() {
1783
1800
  return {
1784
1801
  ...e.autoPlay === !0 ? {
@@ -1835,7 +1852,7 @@ function Ht(e) {
1835
1852
  children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
1836
1853
  }
1837
1854
  ),
1838
- e.aspectRatio && !(e.fitContent && ((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length)) ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
1855
+ e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
1839
1856
  "div",
1840
1857
  {
1841
1858
  style: {
@@ -1846,7 +1863,7 @@ function Ht(e) {
1846
1863
  }
1847
1864
  }
1848
1865
  ) }) : null,
1849
- (c = (a = e.builderBlock) == null ? void 0 : a.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
1866
+ (c = (r = e.builderBlock) == null ? void 0 : r.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
1850
1867
  "div",
1851
1868
  {
1852
1869
  style: {
@@ -1879,7 +1896,7 @@ function Ht(e) {
1879
1896
  );
1880
1897
  }
1881
1898
  const ye = () => [{
1882
- component: Ke,
1899
+ component: ze,
1883
1900
  ...It
1884
1901
  }, {
1885
1902
  component: xt,
@@ -2004,24 +2021,24 @@ const ye = () => [{
2004
2021
  thisScriptEl?.remove();
2005
2022
  }
2006
2023
  return;
2007
- }`, Be = "builderIoAbTest", We = "builderIoRenderContent", U = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2024
+ }`, We = "builderIoAbTest", Ae = "builderIoRenderContent", U = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2008
2025
  ...t,
2009
2026
  testVariationId: t.id,
2010
2027
  id: e == null ? void 0 : e.id
2011
2028
  })), qt = ({
2012
2029
  canTrack: e,
2013
2030
  content: t
2014
- }) => !(!(U(t).length > 0) || !e || V()), Yt = (e) => e === "react" || e === "reactNative", Ae = Yt($), Qt = () => `
2015
- window.${Be} = ${Kt}
2016
- window.${We} = ${zt}
2031
+ }) => !(!(U(t).length > 0) || !e || V()), Yt = (e) => e === "react" || e === "reactNative", Ne = Yt($), Qt = () => `
2032
+ window.${We} = ${Kt}
2033
+ window.${Ae} = ${zt}
2017
2034
  `, Gt = (e, t) => `
2018
- window.${Be}(
2019
- "${t}",${JSON.stringify(e)}, ${Ae}
2035
+ window.${We}(
2036
+ "${t}",${JSON.stringify(e)}, ${Ne}
2020
2037
  )`, Jt = ({
2021
2038
  contentId: e,
2022
2039
  variationId: t
2023
- }) => `window.${We}(
2024
- "${t}", "${e}", ${Ae}
2040
+ }) => `window.${Ae}(
2041
+ "${t}", "${e}", ${Ne}
2025
2042
  )`;
2026
2043
  function Z(e) {
2027
2044
  return /* @__PURE__ */ l(
@@ -2033,7 +2050,7 @@ function Z(e) {
2033
2050
  );
2034
2051
  }
2035
2052
  const Xt = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
2036
- function Ne(e, t) {
2053
+ function Ve(e, t) {
2037
2054
  const n = new URL(t.origin), i = n.hostname;
2038
2055
  return (e || Xt).findIndex((o) => o.startsWith("*.") ? i.endsWith(o.slice(1)) : o === i) > -1;
2039
2056
  }
@@ -2058,10 +2075,10 @@ const Zt = (e, t, n = !0) => {
2058
2075
  event: e,
2059
2076
  target: t
2060
2077
  }) => {
2061
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, r = Se(i / n.width), a = Se(o / n.height);
2078
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = Se(i / n.width), r = Se(o / n.height);
2062
2079
  return {
2063
- x: r,
2064
- y: a
2080
+ x: a,
2081
+ y: r
2065
2082
  };
2066
2083
  }, tn = (e) => {
2067
2084
  const t = e.target, n = t && en(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
@@ -2079,8 +2096,8 @@ const Zt = (e, t, n = !0) => {
2079
2096
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
2080
2097
  }
2081
2098
  };
2082
- }, nn = "0.12.5", on = () => {
2083
- _e("insertMenu", {
2099
+ }, nn = "0.12.6", on = () => {
2100
+ Oe("insertMenu", {
2084
2101
  name: "_default",
2085
2102
  default: !0,
2086
2103
  items: [{
@@ -2122,8 +2139,8 @@ const an = (e = {}) => {
2122
2139
  options: e
2123
2140
  }
2124
2141
  }, "*"), window.addEventListener("message", (i) => {
2125
- var r, a;
2126
- if (!Ne(e.trustedHosts, i))
2142
+ var a, r;
2143
+ if (!Ve(e.trustedHosts, i))
2127
2144
  return;
2128
2145
  const {
2129
2146
  data: o
@@ -2138,7 +2155,7 @@ const an = (e = {}) => {
2138
2155
  } catch (S) {
2139
2156
  k = S;
2140
2157
  }
2141
- k ? (r = window.parent) == null || r.postMessage({
2158
+ k ? (a = window.parent) == null || a.postMessage({
2142
2159
  type: "builder.evaluateError",
2143
2160
  data: {
2144
2161
  id: d,
@@ -2153,7 +2170,7 @@ const an = (e = {}) => {
2153
2170
  result: S
2154
2171
  }
2155
2172
  }, "*");
2156
- }).catch(console.error) : (a = window.parent) == null || a.postMessage({
2173
+ }).catch(console.error) : (r = window.parent) == null || r.postMessage({
2157
2174
  type: "builder.evaluateResult",
2158
2175
  data: {
2159
2176
  result: g,
@@ -2180,7 +2197,7 @@ function rn(e) {
2180
2197
  rootState: f
2181
2198
  }));
2182
2199
  }
2183
- function r(u) {
2200
+ function a(u) {
2184
2201
  var b, y, p, T, D;
2185
2202
  const f = {
2186
2203
  ...e.builderContextSignal.content,
@@ -2195,20 +2212,20 @@ function rn(e) {
2195
2212
  breakpoints: ((p = u == null ? void 0 : u.meta) == null ? void 0 : p.breakpoints) || ((D = (T = e.builderContextSignal.content) == null ? void 0 : T.meta) == null ? void 0 : D.breakpoints)
2196
2213
  }
2197
2214
  };
2198
- e.setBuilderContextSignal(($e) => ({
2199
- ...$e,
2215
+ e.setBuilderContextSignal((Fe) => ({
2216
+ ...Fe,
2200
2217
  content: f
2201
2218
  }));
2202
2219
  }
2203
2220
  v(() => 0);
2204
- const [a, c] = v(
2221
+ const [r, c] = v(
2205
2222
  () => !1
2206
2223
  ), [s, d] = v(
2207
2224
  () => e.contentWrapper || "div"
2208
2225
  );
2209
2226
  function m(u) {
2210
2227
  var b;
2211
- if (!Ne(e.trustedHosts, u))
2228
+ if (!Ve(e.trustedHosts, u))
2212
2229
  return;
2213
2230
  const { data: f } = u;
2214
2231
  if (f)
@@ -2217,7 +2234,7 @@ function rn(e) {
2217
2234
  const y = f.data, { breakpoints: p, contentId: T } = y;
2218
2235
  if (!T || T !== ((b = e.builderContextSignal.content) == null ? void 0 : b.id))
2219
2236
  return;
2220
- p && r({
2237
+ p && a({
2221
2238
  meta: {
2222
2239
  breakpoints: p
2223
2240
  }
@@ -2226,7 +2243,7 @@ function rn(e) {
2226
2243
  }
2227
2244
  case "builder.contentUpdate": {
2228
2245
  const y = f.data, p = y.key || y.alias || y.entry || y.modelName, T = y.data;
2229
- p === e.model && (r(T), i(n + 1));
2246
+ p === e.model && (a(T), i(n + 1));
2230
2247
  break;
2231
2248
  }
2232
2249
  }
@@ -2272,7 +2289,7 @@ function rn(e) {
2272
2289
  );
2273
2290
  }
2274
2291
  function w({ url: u, key: f }) {
2275
- De(u).then((b) => b.json()).then((b) => {
2292
+ Ue(u).then((b) => b.json()).then((b) => {
2276
2293
  var p, T;
2277
2294
  const y = {
2278
2295
  ...e.builderContextSignal.rootState,
@@ -2329,7 +2346,7 @@ function rn(e) {
2329
2346
  e.builderContextSignal.componentInfos
2330
2347
  ).forEach((f) => {
2331
2348
  var y;
2332
- const b = je(f);
2349
+ const b = De(f);
2333
2350
  (y = window.parent) == null || y.postMessage(b, "*");
2334
2351
  }), window.addEventListener(
2335
2352
  "builder:component:stateChangeListenerActivated",
@@ -2345,7 +2362,7 @@ function rn(e) {
2345
2362
  apiKey: e.apiKey,
2346
2363
  apiVersion: e.builderContextSignal.apiVersion
2347
2364
  }).then((T) => {
2348
- T && r(T);
2365
+ T && a(T);
2349
2366
  });
2350
2367
  }
2351
2368
  return E(() => {
@@ -2385,21 +2402,18 @@ function rn(e) {
2385
2402
  variationId: y !== p ? y : void 0
2386
2403
  });
2387
2404
  }
2388
- Oe() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
2405
+ je() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
2389
2406
  }
2390
2407
  }, []), E(() => {
2391
2408
  e.apiKey || _.error(
2392
2409
  "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
2393
2410
  ), g(), I(), P();
2394
2411
  }, []), E(() => {
2395
- e.content && r(e.content);
2412
+ e.content && a(e.content);
2396
2413
  }, [e.content]), E(() => {
2397
- }, [a]), E(() => {
2414
+ }, [r]), E(() => {
2398
2415
  g();
2399
- }, [
2400
- (Q = (L = e.builderContextSignal.content) == null ? void 0 : L.data) == null ? void 0 : Q.jsCode,
2401
- e.builderContextSignal.rootState
2402
- ]), E(() => {
2416
+ }, [(Q = (L = e.builderContextSignal.content) == null ? void 0 : L.data) == null ? void 0 : Q.jsCode]), E(() => {
2403
2417
  I();
2404
2418
  }, [(ae = (G = e.builderContextSignal.content) == null ? void 0 : G.data) == null ? void 0 : ae.httpRequests]), E(() => {
2405
2419
  P();
@@ -2414,7 +2428,7 @@ function rn(e) {
2414
2428
  "builder:component:stateChangeListenerActivated",
2415
2429
  P
2416
2430
  ));
2417
- }, []), /* @__PURE__ */ l(ie.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ Fe(
2431
+ }, []), /* @__PURE__ */ l(ie.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ Le(
2418
2432
  s,
2419
2433
  {
2420
2434
  key: n,
@@ -2433,8 +2447,8 @@ function rn(e) {
2433
2447
  ) }) : null });
2434
2448
  }
2435
2449
  const ln = (e) => {
2436
- var r, a;
2437
- const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
2450
+ var a, r;
2451
+ const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
2438
2452
  let o = "";
2439
2453
  if (i && t && n && (o += `
2440
2454
  @font-face {
@@ -2503,9 +2517,9 @@ const un = ({
2503
2517
  data: t,
2504
2518
  locale: n
2505
2519
  }) => {
2506
- var r, a, c;
2507
- const i = {}, o = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
2508
- return (c = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || c.forEach((s) => {
2520
+ var a, r, c;
2521
+ const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
2522
+ return (c = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || c.forEach((s) => {
2509
2523
  s.name && s.defaultValue !== void 0 && (i[s.name] = s.defaultValue);
2510
2524
  }), {
2511
2525
  ...i,
@@ -2545,7 +2559,7 @@ function ke(e) {
2545
2559
  rootState: C
2546
2560
  }));
2547
2561
  }
2548
- const [o, r] = v(
2562
+ const [o, a] = v(
2549
2563
  () => [
2550
2564
  ...ye(),
2551
2565
  // While this `components` object is deprecated, we must maintain support for it.
@@ -2565,7 +2579,7 @@ function ke(e) {
2565
2579
  }),
2566
2580
  {}
2567
2581
  )
2568
- ), [a, c] = v(() => ({
2582
+ ), [r, c] = v(() => ({
2569
2583
  content: mn({
2570
2584
  content: e.content,
2571
2585
  data: e.data
@@ -2619,7 +2633,7 @@ function ke(e) {
2619
2633
  includeRefs: e.includeRefs,
2620
2634
  enrich: e.enrich,
2621
2635
  showContent: e.showContent,
2622
- builderContextSignal: a,
2636
+ builderContextSignal: r,
2623
2637
  contentWrapper: e.contentWrapper,
2624
2638
  contentWrapperProps: e.contentWrapperProps,
2625
2639
  linkComponent: e.linkComponent,
@@ -2630,16 +2644,16 @@ function ke(e) {
2630
2644
  /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
2631
2645
  dn,
2632
2646
  {
2633
- contentId: (s = a.content) == null ? void 0 : s.id,
2634
- cssCode: (m = (d = a.content) == null ? void 0 : d.data) == null ? void 0 : m.cssCode,
2635
- customFonts: (k = (g = a.content) == null ? void 0 : g.data) == null ? void 0 : k.customFonts
2647
+ contentId: (s = r.content) == null ? void 0 : s.id,
2648
+ cssCode: (m = (d = r.content) == null ? void 0 : d.data) == null ? void 0 : m.cssCode,
2649
+ customFonts: (k = (g = r.content) == null ? void 0 : g.data) == null ? void 0 : k.customFonts
2636
2650
  }
2637
2651
  ) }),
2638
2652
  /* @__PURE__ */ l(
2639
2653
  Y,
2640
2654
  {
2641
- blocks: (x = (S = a.content) == null ? void 0 : S.data) == null ? void 0 : x.blocks,
2642
- context: a,
2655
+ blocks: (x = (S = r.content) == null ? void 0 : S.data) == null ? void 0 : x.blocks,
2656
+ context: r,
2643
2657
  registeredComponents: o,
2644
2658
  linkComponent: e.linkComponent
2645
2659
  }
@@ -2650,8 +2664,8 @@ function ke(e) {
2650
2664
  }
2651
2665
  );
2652
2666
  }
2653
- function Ve(e) {
2654
- var a, c;
2667
+ function $e(e) {
2668
+ var r, c;
2655
2669
  const [t, n] = v(
2656
2670
  () => qt({
2657
2671
  canTrack: H(e.canTrack),
@@ -2671,12 +2685,12 @@ function Ve(e) {
2671
2685
  function o() {
2672
2686
  return U(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
2673
2687
  }
2674
- function r() {
2688
+ function a() {
2675
2689
  var s;
2676
2690
  return t ? {
2677
2691
  ...e.content,
2678
2692
  testVariationId: (s = e.content) == null ? void 0 : s.id
2679
- } : Ue({
2693
+ } : Me({
2680
2694
  item: e.content,
2681
2695
  canTrack: H(e.canTrack)
2682
2696
  });
@@ -2688,7 +2702,7 @@ function Ve(e) {
2688
2702
  /* @__PURE__ */ l(
2689
2703
  z,
2690
2704
  {
2691
- id: `variants-styles-${(a = e.content) == null ? void 0 : a.id}`,
2705
+ id: `variants-styles-${(r = e.content) == null ? void 0 : r.id}`,
2692
2706
  styles: o()
2693
2707
  }
2694
2708
  ),
@@ -2722,7 +2736,7 @@ function Ve(e) {
2722
2736
  /* @__PURE__ */ l(
2723
2737
  ke,
2724
2738
  {
2725
- content: r(),
2739
+ content: a(),
2726
2740
  showContent: !0,
2727
2741
  model: e.model,
2728
2742
  data: e.data,
@@ -2765,7 +2779,7 @@ const fn = async ({
2765
2779
  });
2766
2780
  };
2767
2781
  function hn(e) {
2768
- var r, a, c, s;
2782
+ var a, r, c, s;
2769
2783
  function t() {
2770
2784
  var d, m;
2771
2785
  return [
@@ -2791,18 +2805,18 @@ function hn(e) {
2791
2805
  }, []), E(() => {
2792
2806
  o();
2793
2807
  }, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ l(
2794
- Ve,
2808
+ $e,
2795
2809
  {
2796
2810
  __isNestedRender: !0,
2797
2811
  apiVersion: e.builderContext.apiVersion,
2798
2812
  apiKey: e.builderContext.apiKey,
2799
2813
  context: {
2800
2814
  ...e.builderContext.context,
2801
- symbolId: (r = e.builderBlock) == null ? void 0 : r.id
2815
+ symbolId: (a = e.builderBlock) == null ? void 0 : a.id
2802
2816
  },
2803
2817
  customComponents: Object.values(e.builderComponents),
2804
2818
  data: {
2805
- ...(a = e.symbol) == null ? void 0 : a.data,
2819
+ ...(r = e.symbol) == null ? void 0 : r.data,
2806
2820
  ...e.builderContext.localState,
2807
2821
  ...(c = n == null ? void 0 : n.data) == null ? void 0 : c.state
2808
2822
  },
@@ -2812,12 +2826,12 @@ function hn(e) {
2812
2826
  }
2813
2827
  ) });
2814
2828
  }
2815
- const Sn = Y, xn = Ve;
2829
+ const Sn = Y, xn = $e;
2816
2830
  export {
2817
2831
  Y as Blocks,
2818
- Ke as Button,
2832
+ ze as Button,
2819
2833
  xt as Columns,
2820
- Ve as Content,
2834
+ $e as Content,
2821
2835
  vt as Fragment,
2822
2836
  Ct as Image,
2823
2837
  Sn as RenderBlocks,
@@ -2827,7 +2841,7 @@ export {
2827
2841
  Ut as Text,
2828
2842
  Ht as Video,
2829
2843
  pn as _processContentResult,
2830
- je as createRegisterComponentMessage,
2844
+ De as createRegisterComponentMessage,
2831
2845
  Cn as fetchBuilderProps,
2832
2846
  wn as fetchEntries,
2833
2847
  Ce as fetchOneEntry,
@@ -2835,8 +2849,8 @@ export {
2835
2849
  Tn as getBuilderSearchParams,
2836
2850
  Rn as getContent,
2837
2851
  N as isEditing,
2838
- Oe as isPreviewing,
2839
- _e as register,
2852
+ je as isPreviewing,
2853
+ Oe as register,
2840
2854
  En as setEditorSettings,
2841
2855
  Pn as track
2842
2856
  };