@builder.io/sdk-react 0.12.7 → 0.13.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.
@@ -1,14 +1,14 @@
1
1
  "use client";
2
- import { jsx as c, Fragment as g, jsxs as W } from "react/jsx-runtime";
3
- import { createContext as Te, useState as k, useEffect as R, useContext as fe, useRef as te, createElement as Ue } from "react";
4
- import { T as F, i as N, j as V, k as He, l as M, m as O, n as ne, r as Me, o as K, p as he, a as Ke, c as ze, b as Re, q as qe, u as ge, v as be, w as Ye } from "./server-entry-b9bdd327.js";
5
- import { _ as Wn, h as Nn, f as $n, g as Vn, e as Fn, d as Ln, s as Dn, t as On } from "./server-entry-b9bdd327.js";
2
+ import { jsx as l, Fragment as h, jsxs as W } from "react/jsx-runtime";
3
+ import { createContext as Ie, useState as v, useEffect as T, useContext as fe, useRef as te, createElement as je } from "react";
4
+ import { T as _, i as $, k as V, l as _e, m as M, n as D, o as ne, p as K, q as he, a as He, u as Ue, v as Me, w as Ke, c as ze, e as Te, x as qe, y as ge, z as be, A as Ye } from "./server-entry-a7214151.js";
5
+ import { _ as En, f as Pn, d as An, h as Bn, g as Wn, j as $n, r as Nn, s as Vn, b as Fn, t as Ln } from "./server-entry-a7214151.js";
6
6
  const Qe = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ge = (e) => typeof e == "string" && Qe.has(e.toLowerCase());
7
7
  function ie(e) {
8
- return /* @__PURE__ */ c(g, { children: Ge(e.TagName) ? /* @__PURE__ */ c(g, { children: /* @__PURE__ */ c(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ c(g, { children: typeof e.TagName == "string" ? /* @__PURE__ */ c(g, { children: /* @__PURE__ */ c(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) : /* @__PURE__ */ c(g, { children: /* @__PURE__ */ c(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) }) });
8
+ return /* @__PURE__ */ l(h, { children: Ge(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
- const _ = () => {
11
- switch (F) {
10
+ const O = () => {
11
+ switch (_) {
12
12
  case "react":
13
13
  case "reactNative":
14
14
  case "rsc":
@@ -21,13 +21,13 @@ const _ = () => {
21
21
  }
22
22
  };
23
23
  function Je(e) {
24
- return /* @__PURE__ */ c(
24
+ return /* @__PURE__ */ l(
25
25
  ie,
26
26
  {
27
27
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
28
28
  attributes: {
29
29
  ...e.attributes,
30
- [_()]: `${e.link ? "" : "builder-button"} ${e.attributes[_()] || ""}`,
30
+ [O()]: `${e.link ? "" : "builder-button"} ${e.attributes[O()] || ""}`,
31
31
  ...e.link ? {
32
32
  href: e.link,
33
33
  target: e.openLinkInNewTab ? "_blank" : void 0,
@@ -41,7 +41,7 @@ function Je(e) {
41
41
  }
42
42
  );
43
43
  }
44
- const oe = Te({
44
+ const oe = Ie({
45
45
  content: null,
46
46
  context: {},
47
47
  localState: void 0,
@@ -54,7 +54,7 @@ const oe = Te({
54
54
  inheritedStyles: {},
55
55
  BlocksWrapper: "div",
56
56
  BlocksWrapperProps: {}
57
- }), Ee = Te({ registeredComponents: {} });
57
+ }), Re = Ie({ registeredComponents: {} });
58
58
  function Xe(e) {
59
59
  var t;
60
60
  return {
@@ -79,10 +79,10 @@ const Ze = ({
79
79
  context: t,
80
80
  event: n
81
81
  }), et = () => ({
82
- isEditing: N(),
82
+ isEditing: $(),
83
83
  isBrowser: V(),
84
84
  isServer: !V(),
85
- getUserAttributes: () => He()
85
+ getUserAttributes: () => _e()
86
86
  }), tt = (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, ye = ({
@@ -94,19 +94,19 @@ const Ze = ({
94
94
  rootSetState: a,
95
95
  rootState: r
96
96
  }) => {
97
- const l = Ze({
97
+ const c = Ze({
98
98
  builder: t,
99
99
  context: n,
100
100
  event: i,
101
- state: Pe({
101
+ state: Ee({
102
102
  rootState: r,
103
103
  localState: o,
104
104
  rootSetState: a
105
105
  })
106
106
  });
107
- return new Function(...l.map(([s]) => s), e)(...l.map(([, s]) => s));
107
+ return new Function(...c.map(([s]) => s), e)(...c.map(([, s]) => s));
108
108
  };
109
- function Pe({
109
+ function Ee({
110
110
  rootState: e,
111
111
  localState: t,
112
112
  rootSetState: n
@@ -116,7 +116,7 @@ function Pe({
116
116
  if (t && o in t)
117
117
  return t[o];
118
118
  const a = i[o];
119
- return typeof a == "object" ? Pe({
119
+ return typeof a == "object" ? Ee({
120
120
  rootState: a,
121
121
  localState: void 0,
122
122
  rootSetState: n ? (r) => {
@@ -140,7 +140,7 @@ const it = () => {
140
140
  if (!nt())
141
141
  return !1;
142
142
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
143
- return e && t && !n ? (O.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
143
+ return e && t && !n ? (D.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
144
144
  }, ot = (e) => (V() || it(), ye(e));
145
145
  function j({
146
146
  code: e,
@@ -152,10 +152,10 @@ function j({
152
152
  isExpression: r = !0
153
153
  }) {
154
154
  if (e === "") {
155
- O.warn("Skipping evaluation of empty code block.");
155
+ D.warn("Skipping evaluation of empty code block.");
156
156
  return;
157
157
  }
158
- const l = {
158
+ const c = {
159
159
  code: tt(e, {
160
160
  isExpression: r
161
161
  }),
@@ -167,9 +167,9 @@ function j({
167
167
  localState: n
168
168
  };
169
169
  try {
170
- return ot(l);
170
+ return ot(c);
171
171
  } catch (s) {
172
- O.error("Failed code evaluation: " + s.message, {
172
+ D.error("Failed code evaluation: " + s.message, {
173
173
  code: e
174
174
  });
175
175
  return;
@@ -199,15 +199,15 @@ const rt = ({
199
199
  ...a.actions
200
200
  }
201
201
  };
202
- for (const l in e.bindings) {
203
- const s = e.bindings[l], d = j({
202
+ for (const c in e.bindings) {
203
+ const s = e.bindings[c], d = j({
204
204
  code: s,
205
205
  localState: n,
206
206
  rootState: i,
207
207
  rootSetState: o,
208
208
  context: t
209
209
  });
210
- at(r, l, d);
210
+ at(r, c, d);
211
211
  }
212
212
  return r;
213
213
  };
@@ -229,18 +229,18 @@ function z({
229
229
  }) : r;
230
230
  }
231
231
  function lt(e, t, n = {}) {
232
- let i, o, a, r = null, l = 0;
232
+ let i, o, a, r = null, c = 0;
233
233
  const s = function() {
234
- l = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
234
+ c = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
235
235
  };
236
236
  return function() {
237
237
  const d = Date.now();
238
- !l && n.leading === !1 && (l = d);
239
- const u = t - (d - l);
240
- return i = this, o = arguments, u <= 0 || u > t ? (r && (clearTimeout(r), r = null), l = d, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(s, u)), a;
238
+ !c && n.leading === !1 && (c = d);
239
+ const u = t - (d - c);
240
+ return i = this, o = arguments, u <= 0 || u > t ? (r && (clearTimeout(r), r = null), c = d, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(s, u)), a;
241
241
  };
242
242
  }
243
- function $(e, ...t) {
243
+ function N(e, ...t) {
244
244
  const n = Object(e);
245
245
  for (let i = 1; i < arguments.length; i++) {
246
246
  const o = arguments[i];
@@ -255,7 +255,7 @@ function ct(e) {
255
255
  for (const t of e)
256
256
  switch (t.trigger) {
257
257
  case "pageLoad":
258
- Ae(t);
258
+ Pe(t);
259
259
  break;
260
260
  case "hover":
261
261
  dt(t);
@@ -270,9 +270,9 @@ function re(e) {
270
270
  }
271
271
  function le(e, t) {
272
272
  const n = st(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
273
- for (const l of r)
273
+ for (const c of r)
274
274
  for (const s of n)
275
- s in l || (l[s] = i[s]);
275
+ s in c || (c[s] = i[s]);
276
276
  }
277
277
  function st(e) {
278
278
  const t = [];
@@ -281,15 +281,15 @@ function st(e) {
281
281
  t.indexOf(i) === -1 && t.push(i);
282
282
  return t;
283
283
  }
284
- function Ae(e) {
284
+ function Pe(e) {
285
285
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
286
286
  if (!t.length) {
287
287
  re(e.elementId || e.id || "");
288
288
  return;
289
289
  }
290
290
  Array.from(t).forEach((n) => {
291
- le(e, n), n.style.transition = "none", n.style.transitionDelay = "0", $(n.style, e.steps[0].styles), setTimeout(() => {
292
- n.style.transition = `all ${e.duration}s ${ae(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), $(n.style, e.steps[1].styles), setTimeout(() => {
291
+ le(e, n), n.style.transition = "none", n.style.transitionDelay = "0", N(n.style, e.steps[0].styles), setTimeout(() => {
292
+ n.style.transition = `all ${e.duration}s ${ae(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), N(n.style, e.steps[1].styles), setTimeout(() => {
293
293
  n.style.transition = "", n.style.transitionDelay = "";
294
294
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
295
295
  });
@@ -305,10 +305,10 @@ function dt(e) {
305
305
  le(e, n);
306
306
  const i = e.steps[0].styles, o = e.steps[1].styles;
307
307
  function a() {
308
- $(n.style, i);
308
+ N(n.style, i);
309
309
  }
310
310
  function r() {
311
- $(n.style, o);
311
+ N(n.style, o);
312
312
  }
313
313
  a(), n.addEventListener("mouseenter", r), n.addEventListener("mouseleave", a), setTimeout(() => {
314
314
  n.style.transition = `all ${e.duration}s ${ae(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
@@ -325,22 +325,22 @@ function ut(e) {
325
325
  le(e, n);
326
326
  let i = !1, o = !1;
327
327
  function a() {
328
- !i && l(n) ? (i = !0, o = !0, setTimeout(() => {
329
- $(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
328
+ !i && c(n) ? (i = !0, o = !0, setTimeout(() => {
329
+ N(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
330
330
  o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
331
331
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
332
- })) : e.repeat && i && !o && !l(n) && (i = !1, $(n.style, e.steps[0].styles));
332
+ })) : e.repeat && i && !o && !c(n) && (i = !1, N(n.style, e.steps[0].styles));
333
333
  }
334
334
  const r = lt(a, 200, {
335
335
  leading: !1
336
336
  });
337
- function l(u) {
338
- const h = u.getBoundingClientRect(), p = window.innerHeight, y = (e.thresholdPercent || 0) / 100 * p;
339
- return h.bottom > y && h.top < p - y;
337
+ function c(u) {
338
+ const b = u.getBoundingClientRect(), k = window.innerHeight, y = (e.thresholdPercent || 0) / 100 * k;
339
+ return b.bottom > y && b.top < k - y;
340
340
  }
341
341
  const s = e.steps[0].styles;
342
342
  function d() {
343
- $(n.style, s);
343
+ N(n.style, s);
344
344
  }
345
345
  d(), setTimeout(() => {
346
346
  n.style.transition = `all ${e.duration}s ${ae(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
@@ -405,7 +405,7 @@ const mt = ({
405
405
  },
406
406
  block: i
407
407
  }));
408
- }, Be = {
408
+ }, Ae = {
409
409
  small: {
410
410
  min: 320,
411
411
  default: 321,
@@ -421,11 +421,11 @@ const mt = ({
421
421
  default: 991,
422
422
  max: 1200
423
423
  }
424
- }, Se = (e, t = Be) => `@media (max-width: ${t[e].max}px)`, We = ({
424
+ }, Se = (e, t = Ae) => `@media (max-width: ${t[e].max}px)`, Be = ({
425
425
  small: e,
426
426
  medium: t
427
427
  }) => {
428
- const n = ne(Be);
428
+ const n = ne(Ae);
429
429
  if (!e || !t)
430
430
  return n;
431
431
  const i = Math.floor(e / 2);
@@ -447,10 +447,10 @@ const mt = ({
447
447
  min: a,
448
448
  default: a + 1
449
449
  }, n;
450
- }, ht = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Ne = (e) => Object.entries(e).map(([n, i]) => {
450
+ }, ht = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), We = (e) => Object.entries(e).map(([n, i]) => {
451
451
  if (typeof i == "string")
452
452
  return `${ht(n)}: ${i};`;
453
- }).filter(M), gt = (e) => Ne(e).join(`
453
+ }).filter(M), gt = (e) => We(e).join(`
454
454
  `), X = ({
455
455
  mediaQuery: e,
456
456
  className: t,
@@ -464,7 +464,7 @@ const mt = ({
464
464
  }` : i;
465
465
  };
466
466
  function q(e) {
467
- return /* @__PURE__ */ c("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
467
+ return /* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
468
468
  }
469
469
  function bt(e) {
470
470
  function t() {
@@ -487,22 +487,22 @@ function bt(e) {
487
487
  rootSetState: e.context.rootSetState,
488
488
  context: e.context.context,
489
489
  shouldEvaluateBindings: !0
490
- }), o = i.responsiveStyles, a = e.context.content, r = We(
490
+ }), o = i.responsiveStyles, a = e.context.content, r = Be(
491
491
  ((y = a == null ? void 0 : a.meta) == null ? void 0 : y.breakpoints) || {}
492
- ), l = o == null ? void 0 : o.large, s = o == null ? void 0 : o.medium, d = o == null ? void 0 : o.small, u = i.id;
492
+ ), c = o == null ? void 0 : o.large, s = o == null ? void 0 : o.medium, d = o == null ? void 0 : o.small, u = i.id;
493
493
  if (!u)
494
494
  return "";
495
- const h = l ? X({
495
+ const b = c ? X({
496
496
  className: u,
497
- styles: l
498
- }) : "", p = s ? X({
497
+ styles: c
498
+ }) : "", k = s ? X({
499
499
  className: u,
500
500
  styles: s,
501
501
  mediaQuery: Se(
502
502
  "medium",
503
503
  r
504
504
  )
505
- }) : "", b = d ? X({
505
+ }) : "", S = d ? X({
506
506
  className: u,
507
507
  styles: d,
508
508
  mediaQuery: Se(
@@ -510,9 +510,9 @@ function bt(e) {
510
510
  r
511
511
  )
512
512
  }) : "";
513
- return [h, p, b].join(" ");
513
+ return [b, k, S].join(" ");
514
514
  }
515
- return /* @__PURE__ */ c(g, { children: n() && t() ? /* @__PURE__ */ c(g, { children: /* @__PURE__ */ c(q, { styles: n() }) }) : null });
515
+ return /* @__PURE__ */ l(h, { children: n() && t() ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(q, { styles: n() }) }) : null });
516
516
  }
517
517
  function yt(e) {
518
518
  return e.charAt(0).toUpperCase() + e.slice(1);
@@ -535,7 +535,7 @@ function $e(e) {
535
535
  const a = n[o];
536
536
  let r = St(o);
537
537
  if (e.stripPrefix)
538
- switch (F) {
538
+ switch (_) {
539
539
  case "vue":
540
540
  r = r.replace("v-on:", "");
541
541
  break;
@@ -547,25 +547,25 @@ function $e(e) {
547
547
  }
548
548
  return t;
549
549
  }
550
- function pt({
550
+ function vt({
551
551
  style: e
552
552
  }) {
553
553
  return e;
554
554
  }
555
- const vt = ({
555
+ const pt = ({
556
556
  block: e,
557
557
  context: t
558
- }) => Ve(pt({
558
+ }) => Ne(vt({
559
559
  style: e.style || {},
560
560
  context: t,
561
561
  block: e
562
562
  }));
563
- function Ve(e) {
564
- switch (F) {
563
+ function Ne(e) {
564
+ switch (_) {
565
565
  case "svelte":
566
566
  case "vue":
567
567
  case "solid":
568
- return Ne(e).join(" ");
568
+ return We(e).join(" ");
569
569
  case "qwik":
570
570
  case "reactNative":
571
571
  case "react":
@@ -590,11 +590,11 @@ function ce({
590
590
  ...Ct(e),
591
591
  ...e.properties,
592
592
  "builder-id": e.id,
593
- style: vt({
593
+ style: pt({
594
594
  block: e,
595
595
  context: t
596
596
  }),
597
- [_()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
597
+ [O()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
598
598
  };
599
599
  return kt({
600
600
  properties: n,
@@ -603,7 +603,7 @@ function ce({
603
603
  });
604
604
  }
605
605
  function wt(e) {
606
- return /* @__PURE__ */ c(
606
+ return /* @__PURE__ */ l(
607
607
  ie,
608
608
  {
609
609
  TagName: e.Wrapper,
@@ -624,7 +624,7 @@ function wt(e) {
624
624
  );
625
625
  }
626
626
  function It(e) {
627
- return /* @__PURE__ */ c(
627
+ return /* @__PURE__ */ l(
628
628
  e.Wrapper,
629
629
  {
630
630
  ...e.wrapperProps,
@@ -654,7 +654,7 @@ const Tt = ({
654
654
  isInteractive: a,
655
655
  contextValue: r
656
656
  }) => {
657
- const l = {
657
+ const c = {
658
658
  ...e,
659
659
  /**
660
660
  * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
@@ -673,14 +673,14 @@ const Tt = ({
673
673
  context: n,
674
674
  wrapperProps: e,
675
675
  includeBlockProps: o
676
- } : l;
676
+ } : c;
677
677
  };
678
678
  function xe(e) {
679
679
  var i;
680
- const [t, n] = k(
680
+ const [t, n] = v(
681
681
  () => e.isInteractive ? It : e.componentRef
682
682
  );
683
- return /* @__PURE__ */ c(g, { children: e.componentRef ? /* @__PURE__ */ c(g, { children: /* @__PURE__ */ c(
683
+ return /* @__PURE__ */ l(h, { children: e.componentRef ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
684
684
  t,
685
685
  {
686
686
  ...Tt({
@@ -693,7 +693,7 @@ function xe(e) {
693
693
  isInteractive: e.isInteractive,
694
694
  contextValue: e.context
695
695
  }),
696
- children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ c(
696
+ children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
697
697
  Y,
698
698
  {
699
699
  block: o,
@@ -707,8 +707,8 @@ function xe(e) {
707
707
  ) }) : null });
708
708
  }
709
709
  function Rt(e) {
710
- const [t, n] = k(() => e.repeatContext);
711
- return /* @__PURE__ */ c(oe.Provider, { value: t, children: /* @__PURE__ */ c(
710
+ const [t, n] = v(() => e.repeatContext);
711
+ return /* @__PURE__ */ l(oe.Provider, { value: t, children: /* @__PURE__ */ l(
712
712
  Y,
713
713
  {
714
714
  block: e.block,
@@ -719,7 +719,7 @@ function Rt(e) {
719
719
  ) });
720
720
  }
721
721
  function Y(e) {
722
- var u, h, p;
722
+ var u, b, k;
723
723
  function t() {
724
724
  return mt({
725
725
  block: e.block,
@@ -734,8 +734,8 @@ function Y(e) {
734
734
  });
735
735
  }
736
736
  function i() {
737
- var b;
738
- return (b = e.block.repeat) != null && b.collection ? e.block : z({
737
+ var S;
738
+ return (S = e.block.repeat) != null && S.collection ? e.block : z({
739
739
  block: e.block,
740
740
  localState: e.context.localState,
741
741
  rootState: e.context.rootState,
@@ -749,28 +749,28 @@ function Y(e) {
749
749
  return e.block.tagName === "a" || ((y = i().properties) == null ? void 0 : y.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
750
750
  }
751
751
  function a() {
752
- var v, E;
753
- if ((v = e.block.repeat) != null && v.collection)
754
- return !!((E = n == null ? void 0 : n()) != null && E.length);
755
- const b = "hide" in i() ? i().hide : !1;
756
- return ("show" in i() ? i().show : !0) && !b;
752
+ var x, R;
753
+ if ((x = e.block.repeat) != null && x.collection)
754
+ return !!((R = n == null ? void 0 : n()) != null && R.length);
755
+ const S = "hide" in i() ? i().hide : !1;
756
+ return ("show" in i() ? i().show : !0) && !S;
757
757
  }
758
758
  function r() {
759
- var y, v;
760
- return !((y = t == null ? void 0 : t()) != null && y.component) && !n() ? (v = i().children) != null ? v : [] : [];
759
+ var y, x;
760
+ return !((y = t == null ? void 0 : t()) != null && y.component) && !n() ? (x = i().children) != null ? x : [] : [];
761
761
  }
762
- function l() {
763
- var b, y, v, E, A, w, I, P, B;
762
+ function c() {
763
+ var S, y, x, R, P, C, w, E, B;
764
764
  return {
765
- blockChildren: (b = i().children) != null ? b : [],
765
+ blockChildren: (S = i().children) != null ? S : [],
766
766
  componentRef: (y = t == null ? void 0 : t()) == null ? void 0 : y.component,
767
767
  componentOptions: {
768
768
  ...Xe(i()),
769
769
  builderContext: e.context,
770
- ...((v = t == null ? void 0 : t()) == null ? void 0 : v.name) === "Core:Button" || ((E = t == null ? void 0 : t()) == null ? void 0 : E.name) === "Symbol" || ((A = t == null ? void 0 : t()) == null ? void 0 : A.name) === "Columns" ? {
770
+ ...((x = t == null ? void 0 : t()) == null ? void 0 : x.name) === "Core:Button" || ((R = t == null ? void 0 : t()) == null ? void 0 : R.name) === "Symbol" || ((P = t == null ? void 0 : t()) == null ? void 0 : P.name) === "Columns" ? {
771
771
  builderLinkComponent: e.linkComponent
772
772
  } : {},
773
- ...((w = t == null ? void 0 : t()) == null ? void 0 : w.name) === "Symbol" || ((I = t == null ? void 0 : t()) == null ? void 0 : I.name) === "Columns" ? {
773
+ ...((C = t == null ? void 0 : t()) == null ? void 0 : C.name) === "Symbol" || ((w = t == null ? void 0 : t()) == null ? void 0 : w.name) === "Columns" ? {
774
774
  builderComponents: e.registeredComponents
775
775
  } : {}
776
776
  },
@@ -778,44 +778,44 @@ function Y(e) {
778
778
  linkComponent: e.linkComponent,
779
779
  registeredComponents: e.registeredComponents,
780
780
  builderBlock: i(),
781
- includeBlockProps: ((P = t == null ? void 0 : t()) == null ? void 0 : P.noWrap) === !0,
781
+ includeBlockProps: ((E = t == null ? void 0 : t()) == null ? void 0 : E.noWrap) === !0,
782
782
  isInteractive: !((B = t == null ? void 0 : t()) != null && B.isRSC)
783
783
  };
784
784
  }
785
- const [s, d] = k(() => e.context);
786
- return R(() => {
787
- const b = i().id, y = i().animations;
788
- y && b && ct(
789
- y.filter((v) => v.trigger !== "hover").map((v) => ({
790
- ...v,
791
- elementId: b
785
+ const [s, d] = v(() => e.context);
786
+ return T(() => {
787
+ const S = i().id, y = i().animations;
788
+ y && S && ct(
789
+ y.filter((x) => x.trigger !== "hover").map((x) => ({
790
+ ...x,
791
+ elementId: S
792
792
  }))
793
793
  );
794
- }, []), /* @__PURE__ */ c(g, { children: a() ? /* @__PURE__ */ W(g, { children: [
795
- /* @__PURE__ */ c(bt, { block: e.block, context: e.context }),
796
- (u = t == null ? void 0 : t()) != null && u.noWrap ? /* @__PURE__ */ c(g, { children: /* @__PURE__ */ c(
794
+ }, []), /* @__PURE__ */ l(h, { children: a() ? /* @__PURE__ */ W(h, { children: [
795
+ /* @__PURE__ */ l(bt, { block: e.block, context: e.context }),
796
+ (u = t == null ? void 0 : t()) != null && u.noWrap ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
797
797
  xe,
798
798
  {
799
- componentRef: l().componentRef,
800
- componentOptions: l().componentOptions,
801
- blockChildren: l().blockChildren,
802
- context: l().context,
803
- registeredComponents: l().registeredComponents,
804
- linkComponent: l().linkComponent,
805
- builderBlock: l().builderBlock,
806
- includeBlockProps: l().includeBlockProps,
807
- isInteractive: l().isInteractive
799
+ componentRef: c().componentRef,
800
+ componentOptions: c().componentOptions,
801
+ blockChildren: c().blockChildren,
802
+ context: c().context,
803
+ registeredComponents: c().registeredComponents,
804
+ linkComponent: c().linkComponent,
805
+ builderBlock: c().builderBlock,
806
+ includeBlockProps: c().includeBlockProps,
807
+ isInteractive: c().isInteractive
808
808
  }
809
- ) }) : /* @__PURE__ */ c(g, { children: n() ? /* @__PURE__ */ c(g, { children: (p = n()) == null ? void 0 : p.map((b, y) => /* @__PURE__ */ c(
809
+ ) }) : /* @__PURE__ */ l(h, { children: n() ? /* @__PURE__ */ l(h, { children: (k = n()) == null ? void 0 : k.map((S, y) => /* @__PURE__ */ l(
810
810
  Rt,
811
811
  {
812
- repeatContext: b.context,
813
- block: b.block,
812
+ repeatContext: S.context,
813
+ block: S.block,
814
814
  registeredComponents: e.registeredComponents,
815
815
  linkComponent: e.linkComponent
816
816
  },
817
817
  y
818
- )) }) : /* @__PURE__ */ c(g, { children: /* @__PURE__ */ W(
818
+ )) }) : /* @__PURE__ */ l(h, { children: /* @__PURE__ */ W(
819
819
  wt,
820
820
  {
821
821
  Wrapper: o(),
@@ -823,29 +823,29 @@ function Y(e) {
823
823
  context: e.context,
824
824
  linkComponent: e.linkComponent,
825
825
  children: [
826
- /* @__PURE__ */ c(
826
+ /* @__PURE__ */ l(
827
827
  xe,
828
828
  {
829
- componentRef: l().componentRef,
830
- componentOptions: l().componentOptions,
831
- blockChildren: l().blockChildren,
832
- context: l().context,
833
- registeredComponents: l().registeredComponents,
834
- linkComponent: l().linkComponent,
835
- builderBlock: l().builderBlock,
836
- includeBlockProps: l().includeBlockProps,
837
- isInteractive: l().isInteractive
829
+ componentRef: c().componentRef,
830
+ componentOptions: c().componentOptions,
831
+ blockChildren: c().blockChildren,
832
+ context: c().context,
833
+ registeredComponents: c().registeredComponents,
834
+ linkComponent: c().linkComponent,
835
+ builderBlock: c().builderBlock,
836
+ includeBlockProps: c().includeBlockProps,
837
+ isInteractive: c().isInteractive
838
838
  }
839
839
  ),
840
- (h = r()) == null ? void 0 : h.map((b) => /* @__PURE__ */ c(
840
+ (b = r()) == null ? void 0 : b.map((S) => /* @__PURE__ */ l(
841
841
  Y,
842
842
  {
843
- block: b,
843
+ block: S,
844
844
  context: s,
845
845
  registeredComponents: e.registeredComponents,
846
846
  linkComponent: e.linkComponent
847
847
  },
848
- b.id
848
+ S.id
849
849
  ))
850
850
  ]
851
851
  }
@@ -859,7 +859,7 @@ function Et(e) {
859
859
  }
860
860
  function n() {
861
861
  var o, a;
862
- N() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
862
+ $() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
863
863
  {
864
864
  type: "builder.clickEmptyBlocks",
865
865
  data: {
@@ -872,7 +872,7 @@ function Et(e) {
872
872
  }
873
873
  function i() {
874
874
  var o, a;
875
- N() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
875
+ $() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
876
876
  {
877
877
  type: "builder.hoverEmptyBlocks",
878
878
  data: {
@@ -883,8 +883,8 @@ function Et(e) {
883
883
  "*"
884
884
  ));
885
885
  }
886
- return /* @__PURE__ */ W(g, { children: [
887
- /* @__PURE__ */ c(
886
+ return /* @__PURE__ */ W(h, { children: [
887
+ /* @__PURE__ */ l(
888
888
  e.BlocksWrapper,
889
889
  {
890
890
  className: t() + " props-blocks-wrapper-4f2c12d8",
@@ -898,7 +898,7 @@ function Et(e) {
898
898
  children: e.children
899
899
  }
900
900
  ),
901
- /* @__PURE__ */ c("style", { children: `.props-blocks-wrapper-4f2c12d8 {
901
+ /* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-4f2c12d8 {
902
902
  display: flex;
903
903
  flex-direction: column;
904
904
  align-items: stretch;
@@ -907,8 +907,8 @@ function Et(e) {
907
907
  }
908
908
  function Q(e) {
909
909
  var i, o, a;
910
- const t = fe(oe), n = fe(Ee);
911
- return /* @__PURE__ */ c(
910
+ const t = fe(oe), n = fe(Re);
911
+ return /* @__PURE__ */ l(
912
912
  Et,
913
913
  {
914
914
  blocks: e.blocks,
@@ -917,7 +917,7 @@ function Q(e) {
917
917
  styleProp: e.styleProp,
918
918
  BlocksWrapper: (i = e.context) == null ? void 0 : i.BlocksWrapper,
919
919
  BlocksWrapperProps: (o = e.context) == null ? void 0 : o.BlocksWrapperProps,
920
- children: e.blocks ? /* @__PURE__ */ c(g, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ c(
920
+ children: e.blocks ? /* @__PURE__ */ l(h, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
921
921
  Y,
922
922
  {
923
923
  block: r,
@@ -931,81 +931,81 @@ function Q(e) {
931
931
  );
932
932
  }
933
933
  function Pt(e) {
934
- var A;
935
- const [t, n] = k(
934
+ var P;
935
+ const [t, n] = v(
936
936
  () => typeof e.space == "number" ? e.space || 0 : 20
937
- ), [i, o] = k(() => e.columns || []), [a, r] = k(
937
+ ), [i, o] = v(() => e.columns || []), [a, r] = v(
938
938
  () => e.stackColumnsAt || "tablet"
939
939
  );
940
- function l(w) {
941
- var I;
942
- return ((I = i[w]) == null ? void 0 : I.width) || 100 / i.length;
940
+ function c(C) {
941
+ var w;
942
+ return ((w = i[C]) == null ? void 0 : w.width) || 100 / i.length;
943
943
  }
944
- function s(w) {
945
- const I = t * (i.length - 1) / i.length;
946
- return `calc(${l(w)}% - ${I}px)`;
944
+ function s(C) {
945
+ const w = t * (i.length - 1) / i.length;
946
+ return `calc(${c(C)}% - ${w}px)`;
947
947
  }
948
948
  function d({
949
- stackedStyle: w,
950
- desktopStyle: I
949
+ stackedStyle: C,
950
+ desktopStyle: w
951
951
  }) {
952
- return a === "tablet" ? w : I;
952
+ return a === "tablet" ? C : w;
953
953
  }
954
954
  function u({
955
- stackedStyle: w,
956
- desktopStyle: I
955
+ stackedStyle: C,
956
+ desktopStyle: w
957
957
  }) {
958
- return a === "never" ? I : w;
958
+ return a === "never" ? w : C;
959
959
  }
960
- const [h, p] = k(
960
+ const [b, k] = v(
961
961
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
962
962
  );
963
- function b() {
963
+ function S() {
964
964
  return {
965
- "--flex-dir": h,
965
+ "--flex-dir": b,
966
966
  "--flex-dir-tablet": d({
967
- stackedStyle: h,
967
+ stackedStyle: b,
968
968
  desktopStyle: "row"
969
969
  })
970
970
  };
971
971
  }
972
- function y(w) {
973
- const I = w === 0 ? 0 : t, P = s(w), B = `${I}px`, L = "100%", D = 0;
972
+ function y(C) {
973
+ const w = C === 0 ? 0 : t, E = s(C), B = `${w}px`, F = "100%", L = 0;
974
974
  return {
975
975
  ...{
976
976
  display: "flex",
977
977
  flexDirection: "column",
978
978
  alignItems: "stretch"
979
979
  },
980
- width: P,
980
+ width: E,
981
981
  ["marginLeft"]: B,
982
982
  "--column-width-mobile": u({
983
- stackedStyle: L,
984
- desktopStyle: P
983
+ stackedStyle: F,
984
+ desktopStyle: E
985
985
  }),
986
986
  "--column-margin-left-mobile": u({
987
- stackedStyle: D,
987
+ stackedStyle: L,
988
988
  desktopStyle: B
989
989
  }),
990
990
  "--column-width-tablet": d({
991
- stackedStyle: L,
992
- desktopStyle: P
991
+ stackedStyle: F,
992
+ desktopStyle: E
993
993
  }),
994
994
  "--column-margin-left-tablet": d({
995
- stackedStyle: D,
995
+ stackedStyle: L,
996
996
  desktopStyle: B
997
997
  })
998
998
  };
999
999
  }
1000
- function v(w) {
1001
- var P, B;
1002
- return We(
1003
- ((B = (P = e.builderContext.content) == null ? void 0 : P.meta) == null ? void 0 : B.breakpoints) || {}
1004
- )[w].max;
1000
+ function x(C) {
1001
+ var E, B;
1002
+ return Be(
1003
+ ((B = (E = e.builderContext.content) == null ? void 0 : E.meta) == null ? void 0 : B.breakpoints) || {}
1004
+ )[C].max;
1005
1005
  }
1006
- function E() {
1006
+ function R() {
1007
1007
  return `
1008
- @media (max-width: ${v("medium")}px) {
1008
+ @media (max-width: ${x("medium")}px) {
1009
1009
  .${e.builderBlock.id}-breakpoints {
1010
1010
  flex-direction: var(--flex-dir-tablet);
1011
1011
  align-items: stretch;
@@ -1017,7 +1017,7 @@ function Pt(e) {
1017
1017
  }
1018
1018
  }
1019
1019
 
1020
- @media (max-width: ${v("small")}px) {
1020
+ @media (max-width: ${x("small")}px) {
1021
1021
  .${e.builderBlock.id}-breakpoints {
1022
1022
  flex-direction: var(--flex-dir);
1023
1023
  align-items: stretch;
@@ -1030,30 +1030,30 @@ function Pt(e) {
1030
1030
  },
1031
1031
  `;
1032
1032
  }
1033
- return /* @__PURE__ */ W(g, { children: [
1033
+ return /* @__PURE__ */ W(h, { children: [
1034
1034
  /* @__PURE__ */ W(
1035
1035
  "div",
1036
1036
  {
1037
1037
  className: `builder-columns ${e.builderBlock.id}-breakpoints div-6f826264`,
1038
- style: b(),
1038
+ style: S(),
1039
1039
  children: [
1040
- /* @__PURE__ */ c(g, { children: /* @__PURE__ */ c(q, { styles: E() }) }),
1041
- (A = e.columns) == null ? void 0 : A.map((w, I) => /* @__PURE__ */ c(
1040
+ /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(q, { styles: R() }) }),
1041
+ (P = e.columns) == null ? void 0 : P.map((C, w) => /* @__PURE__ */ l(
1042
1042
  ie,
1043
1043
  {
1044
- TagName: w.link ? e.builderLinkComponent || "a" : "div",
1044
+ TagName: C.link ? e.builderLinkComponent || "a" : "div",
1045
1045
  actionAttributes: {},
1046
1046
  attributes: {
1047
- ...w.link ? {
1048
- href: w.link
1047
+ ...C.link ? {
1048
+ href: C.link
1049
1049
  } : {},
1050
- [_()]: "builder-column",
1051
- style: Ve(y(I))
1050
+ [O()]: "builder-column",
1051
+ style: Ne(y(w))
1052
1052
  },
1053
- children: /* @__PURE__ */ c(
1053
+ children: /* @__PURE__ */ l(
1054
1054
  Q,
1055
1055
  {
1056
- path: `component.options.columns.${I}.blocks`,
1056
+ path: `component.options.columns.${w}.blocks`,
1057
1057
  parent: e.builderBlock.id,
1058
1058
  styleProp: {
1059
1059
  flexGrow: "1"
@@ -1061,25 +1061,25 @@ function Pt(e) {
1061
1061
  context: e.builderContext,
1062
1062
  registeredComponents: e.builderComponents,
1063
1063
  linkComponent: e.builderLinkComponent,
1064
- blocks: w.blocks
1064
+ blocks: C.blocks
1065
1065
  }
1066
1066
  )
1067
1067
  },
1068
- I
1068
+ w
1069
1069
  ))
1070
1070
  ]
1071
1071
  }
1072
1072
  ),
1073
- /* @__PURE__ */ c("style", { children: `.div-6f826264 {
1073
+ /* @__PURE__ */ l("style", { children: `.div-6f826264 {
1074
1074
  display: flex;
1075
1075
  line-height: normal;
1076
1076
  }` })
1077
1077
  ] });
1078
1078
  }
1079
1079
  function At(e) {
1080
- return /* @__PURE__ */ c("span", { children: e.children });
1080
+ return /* @__PURE__ */ l("span", { children: e.children });
1081
1081
  }
1082
- function pe(e) {
1082
+ function ve(e) {
1083
1083
  return e.replace(/http(s)?:/, "");
1084
1084
  }
1085
1085
  function Bt(e = "", t, n) {
@@ -1090,11 +1090,11 @@ function Wt(e, t) {
1090
1090
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1091
1091
  return e;
1092
1092
  if (t === "master")
1093
- return pe(e);
1093
+ return ve(e);
1094
1094
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1095
1095
  if (n) {
1096
1096
  const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
1097
- return pe(`${i[0]}_${a}${o}`);
1097
+ return ve(`${i[0]}_${a}${o}`);
1098
1098
  }
1099
1099
  return null;
1100
1100
  }
@@ -1109,8 +1109,8 @@ function Z(e) {
1109
1109
  }
1110
1110
  return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Wt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1111
1111
  }
1112
- function Nt(e) {
1113
- var o, a, r, l;
1112
+ function $t(e) {
1113
+ var o, a, r, c;
1114
1114
  function t() {
1115
1115
  var u;
1116
1116
  const d = e.image || e.src;
@@ -1139,11 +1139,11 @@ function Nt(e) {
1139
1139
  };
1140
1140
  return e.aspectRatio ? s : void 0;
1141
1141
  }
1142
- return /* @__PURE__ */ W(g, { children: [
1143
- /* @__PURE__ */ W(g, { children: [
1142
+ return /* @__PURE__ */ W(h, { children: [
1143
+ /* @__PURE__ */ W(h, { children: [
1144
1144
  /* @__PURE__ */ W("picture", { children: [
1145
- n() ? /* @__PURE__ */ c(g, { children: /* @__PURE__ */ c("source", { type: "image/webp", srcSet: n() }) }) : null,
1146
- /* @__PURE__ */ c(
1145
+ n() ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) }) : null,
1146
+ /* @__PURE__ */ l(
1147
1147
  "img",
1148
1148
  {
1149
1149
  loading: "lazy",
@@ -1161,7 +1161,7 @@ function Nt(e) {
1161
1161
  }
1162
1162
  )
1163
1163
  ] }),
1164
- e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ c(g, { children: /* @__PURE__ */ c(
1164
+ e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
1165
1165
  "div",
1166
1166
  {
1167
1167
  className: "builder-image-sizer div-40c70c9b",
@@ -1170,10 +1170,10 @@ function Nt(e) {
1170
1170
  }
1171
1171
  }
1172
1172
  ) }) : null,
1173
- (l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ c(g, { children: e.children }) : null,
1174
- !e.fitContent && e.children ? /* @__PURE__ */ c(g, { children: /* @__PURE__ */ c("div", { className: "div-40c70c9b-2", children: e.children }) }) : null
1173
+ (c = (r = e.builderBlock) == null ? void 0 : r.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(h, { children: e.children }) : null,
1174
+ !e.fitContent && e.children ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l("div", { className: "div-40c70c9b-2", children: e.children }) }) : null
1175
1175
  ] }),
1176
- /* @__PURE__ */ c("style", { children: `.img-40c70c9b {
1176
+ /* @__PURE__ */ l("style", { children: `.img-40c70c9b {
1177
1177
  opacity: 1;
1178
1178
  transition: opacity 0.2s ease-in-out;
1179
1179
  }.div-40c70c9b {
@@ -1192,8 +1192,8 @@ function Nt(e) {
1192
1192
  }` })
1193
1193
  ] });
1194
1194
  }
1195
- function $t(e) {
1196
- return /* @__PURE__ */ c(
1195
+ function Nt(e) {
1196
+ return /* @__PURE__ */ l(
1197
1197
  "section",
1198
1198
  {
1199
1199
  ...e.attributes,
@@ -1425,7 +1425,7 @@ const Vt = {
1425
1425
  });
1426
1426
  }
1427
1427
  const n = e.get("columns");
1428
- Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((l, s) => l + s.get("width"), 0) !== 100) && t();
1428
+ 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();
1429
1429
  }
1430
1430
  }, {
1431
1431
  name: "space",
@@ -1471,10 +1471,10 @@ const Vt = {
1471
1471
  }]
1472
1472
  };
1473
1473
  function Dt(e) {
1474
- const t = te(null), [n, i] = k(() => []), [o, a] = k(() => []);
1475
- return R(() => {
1476
- var l;
1477
- if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
1474
+ const t = te(null), [n, i] = v(() => []), [o, a] = v(() => []);
1475
+ return T(() => {
1476
+ var c;
1477
+ if (!((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
1478
1478
  return;
1479
1479
  const r = t.current.getElementsByTagName("script");
1480
1480
  for (let s = 0; s < r.length; s++) {
@@ -1499,7 +1499,7 @@ function Dt(e) {
1499
1499
  }
1500
1500
  }
1501
1501
  }
1502
- }, []), /* @__PURE__ */ c(
1502
+ }, []), /* @__PURE__ */ l(
1503
1503
  "div",
1504
1504
  {
1505
1505
  ref: t,
@@ -1533,30 +1533,30 @@ const Ot = {
1533
1533
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1534
1534
  hideFromUI: !0
1535
1535
  }]
1536
- }, _t = ["text/javascript", "application/javascript", "application/ecmascript"], jt = (e) => _t.includes(e.type);
1537
- function Ut(e) {
1538
- const t = te(null), [n, i] = k(() => []), [o, a] = k(() => []), [r, l] = k(() => !1);
1536
+ }, jt = ["text/javascript", "application/javascript", "application/ecmascript"], _t = (e) => jt.includes(e.type);
1537
+ function Ht(e) {
1538
+ const t = te(null), [n, i] = v(() => []), [o, a] = v(() => []), [r, c] = v(() => !1);
1539
1539
  function s() {
1540
1540
  if (!t.current || !t.current.getElementsByTagName)
1541
1541
  return;
1542
1542
  const d = t.current.getElementsByTagName("script");
1543
1543
  for (let u = 0; u < d.length; u++) {
1544
- const h = d[u];
1545
- if (h.src && !n.includes(h.src)) {
1546
- n.push(h.src);
1547
- const p = document.createElement("script");
1548
- p.async = !0, p.src = h.src, document.head.appendChild(p);
1549
- } else if (jt(h) && !o.includes(h.innerText))
1544
+ const b = d[u];
1545
+ if (b.src && !n.includes(b.src)) {
1546
+ n.push(b.src);
1547
+ const k = document.createElement("script");
1548
+ k.async = !0, k.src = b.src, document.head.appendChild(k);
1549
+ } else if (_t(b) && !o.includes(b.innerText))
1550
1550
  try {
1551
- o.push(h.innerText), new Function(h.innerText)();
1552
- } catch (p) {
1553
- console.warn("`Embed`: Error running script:", p);
1551
+ o.push(b.innerText), new Function(b.innerText)();
1552
+ } catch (k) {
1553
+ console.warn("`Embed`: Error running script:", k);
1554
1554
  }
1555
1555
  }
1556
1556
  }
1557
- return R(() => {
1558
- t.current && !r && (l(!0), s());
1559
- }, [t.current, r]), /* @__PURE__ */ c(
1557
+ return T(() => {
1558
+ t.current && !r && (c(!0), s());
1559
+ }, [t.current, r]), /* @__PURE__ */ l(
1560
1560
  "div",
1561
1561
  {
1562
1562
  className: "builder-embed",
@@ -1565,7 +1565,7 @@ function Ut(e) {
1565
1565
  }
1566
1566
  );
1567
1567
  }
1568
- const Ht = {
1568
+ const Ut = {
1569
1569
  name: "Fragment",
1570
1570
  static: !0,
1571
1571
  hidden: !0,
@@ -1591,17 +1591,17 @@ const Ht = {
1591
1591
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1592
1592
  onChange: (e) => {
1593
1593
  e.delete("srcset"), e.delete("noWebp");
1594
- function n(r, l = 6e4) {
1594
+ function n(r, c = 6e4) {
1595
1595
  return new Promise((s, d) => {
1596
1596
  const u = document.createElement("img");
1597
- let h = !1;
1597
+ let b = !1;
1598
1598
  u.onload = () => {
1599
- h = !0, s(u);
1600
- }, u.addEventListener("error", (p) => {
1601
- console.warn("Image load failed", p.error), d(p.error);
1599
+ b = !0, s(u);
1600
+ }, u.addEventListener("error", (k) => {
1601
+ console.warn("Image load failed", k.error), d(k.error);
1602
1602
  }), u.src = r, setTimeout(() => {
1603
- h || d(new Error("Image load timed out"));
1604
- }, l);
1603
+ b || d(new Error("Image load timed out"));
1604
+ }, c);
1605
1605
  });
1606
1606
  }
1607
1607
  function i(r) {
@@ -1612,8 +1612,8 @@ const Ht = {
1612
1612
  r.type.includes("svg") && e.set("noWebp", !0);
1613
1613
  }), o && (!a || a === 0.7041))
1614
1614
  return n(o).then((r) => {
1615
- const l = e.get("aspectRatio");
1616
- e.get("image") === o && (!l || l === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
1615
+ const c = e.get("aspectRatio");
1616
+ 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));
1617
1617
  });
1618
1618
  }
1619
1619
  }, {
@@ -1687,7 +1687,7 @@ const Ht = {
1687
1687
  static: !0
1688
1688
  };
1689
1689
  function zt(e) {
1690
- return /* @__PURE__ */ c(
1690
+ return /* @__PURE__ */ l(
1691
1691
  "img",
1692
1692
  {
1693
1693
  style: {
@@ -1698,7 +1698,7 @@ function zt(e) {
1698
1698
  src: e.imgSrc || e.image,
1699
1699
  ...e.attributes
1700
1700
  },
1701
- N() && e.imgSrc || "default-key"
1701
+ $() && e.imgSrc || "default-key"
1702
1702
  );
1703
1703
  }
1704
1704
  const qt = {
@@ -1756,7 +1756,7 @@ const qt = {
1756
1756
  };
1757
1757
  function Qt(e) {
1758
1758
  var t, n, i;
1759
- return /* @__PURE__ */ c(
1759
+ return /* @__PURE__ */ l(
1760
1760
  "div",
1761
1761
  {
1762
1762
  style: {
@@ -1765,7 +1765,7 @@ function Qt(e) {
1765
1765
  ...!((t = e.builderContext.context) != null && t.symbolId) && {
1766
1766
  "builder-slot": e.name
1767
1767
  },
1768
- children: /* @__PURE__ */ c(
1768
+ children: /* @__PURE__ */ l(
1769
1769
  Q,
1770
1770
  {
1771
1771
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
@@ -1831,7 +1831,7 @@ const Gt = {
1831
1831
  };
1832
1832
  function Xt(e) {
1833
1833
  var t;
1834
- return /* @__PURE__ */ c(
1834
+ return /* @__PURE__ */ l(
1835
1835
  "div",
1836
1836
  {
1837
1837
  className: "builder-text",
@@ -1925,7 +1925,7 @@ const Zt = {
1925
1925
  }]
1926
1926
  };
1927
1927
  function en(e) {
1928
- var i, o, a, r, l, s, d;
1928
+ var i, o, a, r, c, s, d;
1929
1929
  function t() {
1930
1930
  return {
1931
1931
  ...e.autoPlay === !0 ? {
@@ -1957,7 +1957,7 @@ function en(e) {
1957
1957
  position: "relative"
1958
1958
  },
1959
1959
  children: [
1960
- /* @__PURE__ */ c(
1960
+ /* @__PURE__ */ l(
1961
1961
  "video",
1962
1962
  {
1963
1963
  className: "builder-video",
@@ -1979,10 +1979,10 @@ function en(e) {
1979
1979
  },
1980
1980
  src: e.video || "no-src",
1981
1981
  poster: e.posterImage,
1982
- children: e.lazyLoad ? null : /* @__PURE__ */ c("source", { type: "video/mp4", src: e.video })
1982
+ children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
1983
1983
  }
1984
1984
  ),
1985
- e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ c(g, { children: /* @__PURE__ */ c(
1985
+ e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
1986
1986
  "div",
1987
1987
  {
1988
1988
  style: {
@@ -1993,7 +1993,7 @@ function en(e) {
1993
1993
  }
1994
1994
  }
1995
1995
  ) }) : null,
1996
- (l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ c(g, { children: /* @__PURE__ */ c(
1996
+ (c = (r = e.builderBlock) == null ? void 0 : r.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
1997
1997
  "div",
1998
1998
  {
1999
1999
  style: {
@@ -2004,7 +2004,7 @@ function en(e) {
2004
2004
  children: e.children
2005
2005
  }
2006
2006
  ) }) : null,
2007
- (d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ c(g, { children: /* @__PURE__ */ c(
2007
+ (d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
2008
2008
  "div",
2009
2009
  {
2010
2010
  style: {
@@ -2025,7 +2025,7 @@ function en(e) {
2025
2025
  }
2026
2026
  );
2027
2027
  }
2028
- const ve = () => [{
2028
+ const pe = () => [{
2029
2029
  component: Je,
2030
2030
  ...Vt
2031
2031
  }, {
@@ -2035,22 +2035,22 @@ const ve = () => [{
2035
2035
  component: Dt,
2036
2036
  ...Lt
2037
2037
  }, {
2038
- component: Ut,
2038
+ component: Ht,
2039
2039
  ...Ot
2040
2040
  }, {
2041
2041
  component: At,
2042
- ...Ht
2042
+ ...Ut
2043
2043
  }, {
2044
- component: Nt,
2044
+ component: $t,
2045
2045
  ...Mt
2046
2046
  }, {
2047
2047
  component: zt,
2048
2048
  ...Kt
2049
2049
  }, {
2050
- component: $t,
2050
+ component: Nt,
2051
2051
  ...qt
2052
2052
  }, {
2053
- component: wn,
2053
+ component: vn,
2054
2054
  ...Gt
2055
2055
  }, {
2056
2056
  component: Xt,
@@ -2151,27 +2151,27 @@ const ve = () => [{
2151
2151
  thisScriptEl?.remove();
2152
2152
  }
2153
2153
  return;
2154
- }`, Fe = "builderIoAbTest", Le = "builderIoRenderContent", H = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2154
+ }`, Ve = "builderIoAbTest", Fe = "builderIoRenderContent", U = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2155
2155
  ...t,
2156
2156
  testVariationId: t.id,
2157
2157
  id: e == null ? void 0 : e.id
2158
2158
  })), on = ({
2159
2159
  canTrack: e,
2160
2160
  content: t
2161
- }) => !(!(H(t).length > 0) || !e || V()), an = (e) => e === "react" || e === "reactNative", De = an(F), rn = () => `
2162
- window.${Fe} = ${tn}
2163
- window.${Le} = ${nn}
2161
+ }) => !(!(U(t).length > 0) || !e || V()), an = (e) => e === "react" || e === "reactNative", Le = an(_), rn = () => `
2162
+ window.${Ve} = ${tn}
2163
+ window.${Fe} = ${nn}
2164
2164
  `, ln = (e, t) => `
2165
- window.${Fe}(
2166
- "${t}",${JSON.stringify(e)}, ${De}
2165
+ window.${Ve}(
2166
+ "${t}",${JSON.stringify(e)}, ${Le}
2167
2167
  )`, cn = ({
2168
2168
  contentId: e,
2169
2169
  variationId: t
2170
- }) => `window.${Le}(
2171
- "${t}", "${e}", ${De}
2170
+ }) => `window.${Fe}(
2171
+ "${t}", "${e}", ${Le}
2172
2172
  )`;
2173
2173
  function ee(e) {
2174
- return /* @__PURE__ */ c(
2174
+ return /* @__PURE__ */ l(
2175
2175
  "script",
2176
2176
  {
2177
2177
  dangerouslySetInnerHTML: { __html: e.scriptStr },
@@ -2179,15 +2179,10 @@ function ee(e) {
2179
2179
  }
2180
2180
  );
2181
2181
  }
2182
- const sn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
2183
- function Oe(e, t) {
2184
- const n = new URL(t.origin), i = n.hostname;
2185
- return (e || sn).findIndex((o) => o.startsWith("*.") ? i.endsWith(o.slice(1)) : o === i) > -1;
2186
- }
2187
2182
  function ke(e) {
2188
2183
  return Math.round(e * 1e3) / 1e3;
2189
2184
  }
2190
- const dn = (e, t, n = !0) => {
2185
+ const sn = (e, t, n = !0) => {
2191
2186
  if (!(e instanceof HTMLElement))
2192
2187
  return null;
2193
2188
  let i = n ? e : e.parentElement;
@@ -2198,7 +2193,7 @@ const dn = (e, t, n = !0) => {
2198
2193
  return i;
2199
2194
  } while (i = i.parentElement);
2200
2195
  return null;
2201
- }, un = (e) => dn(e, (t) => {
2196
+ }, dn = (e) => sn(e, (t) => {
2202
2197
  const n = t.getAttribute("builder-id") || t.id;
2203
2198
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
2204
2199
  }), Ce = ({
@@ -2210,8 +2205,8 @@ const dn = (e, t, n = !0) => {
2210
2205
  x: a,
2211
2206
  y: r
2212
2207
  };
2213
- }, mn = (e) => {
2214
- const t = e.target, n = t && un(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2208
+ }, un = (e) => {
2209
+ const t = e.target, n = t && dn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2215
2210
  return {
2216
2211
  targetBuilderElement: i || void 0,
2217
2212
  metadata: {
@@ -2226,165 +2221,74 @@ const dn = (e, t, n = !0) => {
2226
2221
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
2227
2222
  }
2228
2223
  };
2229
- }, fn = "0.12.7", hn = () => {
2230
- Me("insertMenu", {
2231
- name: "_default",
2232
- default: !0,
2233
- items: [{
2234
- name: "Box"
2235
- }, {
2236
- name: "Text"
2237
- }, {
2238
- name: "Image"
2239
- }, {
2240
- name: "Columns"
2241
- }, {
2242
- name: "Core:Section"
2243
- }, {
2244
- name: "Core:Button"
2245
- }, {
2246
- name: "Embed"
2247
- }, {
2248
- name: "Custom Code"
2249
- }]
2250
- });
2251
- };
2252
- let we = !1;
2253
- const gn = (e = {}) => {
2254
- var t, n;
2255
- we || (we = !0, V() && ((t = window.parent) == null || t.postMessage({
2256
- type: "builder.sdkInfo",
2257
- data: {
2258
- target: F,
2259
- version: fn,
2260
- supportsPatchUpdates: !1,
2261
- // Supports builder-model="..." attribute which is needed to
2262
- // scope our '+ add block' button styling
2263
- supportsAddBlockScoping: !0,
2264
- supportsCustomBreakpoints: !0
2265
- }
2266
- }, "*"), (n = window.parent) == null || n.postMessage({
2267
- type: "builder.updateContent",
2268
- data: {
2269
- options: e
2270
- }
2271
- }, "*"), window.addEventListener("message", (i) => {
2272
- var a, r;
2273
- if (!Oe(e.trustedHosts, i))
2274
- return;
2275
- const {
2276
- data: o
2277
- } = i;
2278
- if (o != null && o.type)
2279
- switch (o.type) {
2280
- case "builder.evaluate": {
2281
- const l = o.data.text, s = o.data.arguments || [], d = o.data.id, u = new Function(l);
2282
- let h, p = null;
2283
- try {
2284
- h = u.apply(null, s);
2285
- } catch (b) {
2286
- p = b;
2287
- }
2288
- p ? (a = window.parent) == null || a.postMessage({
2289
- type: "builder.evaluateError",
2290
- data: {
2291
- id: d,
2292
- error: p.message
2293
- }
2294
- }, "*") : h && typeof h.then == "function" ? h.then((b) => {
2295
- var y;
2296
- (y = window.parent) == null || y.postMessage({
2297
- type: "builder.evaluateResult",
2298
- data: {
2299
- id: d,
2300
- result: b
2301
- }
2302
- }, "*");
2303
- }).catch(console.error) : (r = window.parent) == null || r.postMessage({
2304
- type: "builder.evaluateResult",
2305
- data: {
2306
- result: h,
2307
- id: d
2308
- }
2309
- }, "*");
2310
- break;
2311
- }
2312
- }
2313
- })));
2314
2224
  };
2315
- function bn(e) {
2316
- var D, G, J, se, de, ue, me;
2317
- const t = te(null), [n, i] = k(() => 0);
2318
- k(() => !0);
2225
+ function mn(e) {
2226
+ var L, G, J, se, de, ue, me;
2227
+ const t = te(null), [n, i] = v(() => 0);
2228
+ v(() => !0);
2319
2229
  function o(m) {
2320
- var S, x;
2230
+ var g, p;
2321
2231
  const f = {
2322
2232
  ...e.builderContextSignal.rootState,
2323
2233
  ...m
2324
2234
  };
2325
- e.builderContextSignal.rootSetState ? (x = (S = e.builderContextSignal).rootSetState) == null || x.call(S, f) : e.setBuilderContextSignal((C) => ({
2326
- ...C,
2235
+ e.builderContextSignal.rootSetState ? (p = (g = e.builderContextSignal).rootSetState) == null || p.call(g, f) : e.setBuilderContextSignal((I) => ({
2236
+ ...I,
2327
2237
  rootState: f
2328
2238
  }));
2329
2239
  }
2330
2240
  function a(m) {
2331
- var S, x, C, T, U;
2241
+ var g, p, I, A, H;
2332
2242
  const f = {
2333
2243
  ...e.builderContextSignal.content,
2334
2244
  ...m,
2335
2245
  data: {
2336
- ...(S = e.builderContextSignal.content) == null ? void 0 : S.data,
2246
+ ...(g = e.builderContextSignal.content) == null ? void 0 : g.data,
2337
2247
  ...m == null ? void 0 : m.data
2338
2248
  },
2339
2249
  meta: {
2340
- ...(x = e.builderContextSignal.content) == null ? void 0 : x.meta,
2250
+ ...(p = e.builderContextSignal.content) == null ? void 0 : p.meta,
2341
2251
  ...m == null ? void 0 : m.meta,
2342
- breakpoints: ((C = m == null ? void 0 : m.meta) == null ? void 0 : C.breakpoints) || ((U = (T = e.builderContextSignal.content) == null ? void 0 : T.meta) == null ? void 0 : U.breakpoints)
2252
+ breakpoints: ((I = m == null ? void 0 : m.meta) == null ? void 0 : I.breakpoints) || ((H = (A = e.builderContextSignal.content) == null ? void 0 : A.meta) == null ? void 0 : H.breakpoints)
2343
2253
  }
2344
2254
  };
2345
- e.setBuilderContextSignal((je) => ({
2346
- ...je,
2255
+ e.setBuilderContextSignal((Oe) => ({
2256
+ ...Oe,
2347
2257
  content: f
2348
2258
  }));
2349
2259
  }
2350
- k(() => 0);
2351
- const [r, l] = k(
2260
+ v(() => 0);
2261
+ const [r, c] = v(
2352
2262
  () => !1
2353
- ), [s, d] = k(
2263
+ ), [s, d] = v(
2354
2264
  () => e.contentWrapper || "div"
2355
2265
  );
2356
2266
  function u(m) {
2357
- var S;
2358
- if (!Oe(e.trustedHosts, m))
2359
- return;
2360
- const { data: f } = m;
2361
- if (f)
2362
- switch (f.type) {
2363
- case "builder.configureSdk": {
2364
- const x = f.data, { breakpoints: C, contentId: T } = x;
2365
- if (!T || T !== ((S = e.builderContextSignal.content) == null ? void 0 : S.id))
2366
- return;
2367
- C && a({
2267
+ return Ue({
2268
+ model: e.model,
2269
+ trustedHosts: e.trustedHosts,
2270
+ callbacks: {
2271
+ configureSdk: (f) => {
2272
+ var I;
2273
+ const { breakpoints: g, contentId: p } = f;
2274
+ !p || p !== ((I = e.builderContextSignal.content) == null ? void 0 : I.id) || g && (a({
2368
2275
  meta: {
2369
- breakpoints: C
2276
+ breakpoints: g
2370
2277
  }
2371
- }), i(n + 1);
2372
- break;
2373
- }
2374
- case "builder.triggerAnimation": {
2375
- Ae(f.data);
2376
- break;
2377
- }
2378
- case "builder.contentUpdate": {
2379
- const x = f.data, C = x.key || x.alias || x.entry || x.modelName, T = x.data;
2380
- C === e.model && (a(T), i(n + 1));
2381
- break;
2278
+ }), i(n + 1));
2279
+ },
2280
+ animation: (f) => {
2281
+ Pe(f);
2282
+ },
2283
+ contentUpdate: (f) => {
2284
+ a(f), i(n + 1);
2382
2285
  }
2383
2286
  }
2287
+ })(m);
2384
2288
  }
2385
- function h() {
2386
- var f, S;
2387
- const m = (S = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : S.jsCode;
2289
+ function b() {
2290
+ var f, g;
2291
+ const m = (g = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : g.jsCode;
2388
2292
  m && j({
2389
2293
  code: m,
2390
2294
  context: e.context || {},
@@ -2393,28 +2297,28 @@ function bn(e) {
2393
2297
  rootSetState: e.builderContextSignal.rootSetState
2394
2298
  });
2395
2299
  }
2396
- const [p, b] = k(() => ({})), [y, v] = k(() => !1);
2397
- function E(m) {
2398
- var f, S;
2300
+ const [k, S] = v(() => ({})), [y, x] = v(() => !1);
2301
+ function R(m) {
2302
+ var f, g;
2399
2303
  if (e.builderContextSignal.content) {
2400
- const x = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, C = (S = e.builderContextSignal.content) == null ? void 0 : S.id;
2304
+ const p = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, I = (g = e.builderContextSignal.content) == null ? void 0 : g.id;
2401
2305
  he({
2402
2306
  type: "click",
2403
2307
  canTrack: K(e.canTrack),
2404
- contentId: C,
2308
+ contentId: I,
2405
2309
  apiKey: e.apiKey,
2406
- variationId: x !== C ? x : void 0,
2407
- ...mn(m),
2310
+ variationId: p !== I ? p : void 0,
2311
+ ...un(m),
2408
2312
  unique: !y
2409
2313
  });
2410
2314
  }
2411
- y || v(!0);
2315
+ y || x(!0);
2412
2316
  }
2413
- function A(m) {
2317
+ function P(m) {
2414
2318
  return m.replace(
2415
2319
  /{{([^}]+)}}/g,
2416
- (f, S) => j({
2417
- code: S,
2320
+ (f, g) => j({
2321
+ code: g,
2418
2322
  context: e.context || {},
2419
2323
  localState: void 0,
2420
2324
  rootState: e.builderContextSignal.rootState,
@@ -2422,33 +2326,33 @@ function bn(e) {
2422
2326
  })
2423
2327
  );
2424
2328
  }
2425
- function w({ url: m, key: f }) {
2426
- qe(m).then((S) => S.json()).then((S) => {
2427
- var C, T;
2428
- const x = {
2329
+ function C({ url: m, key: f }) {
2330
+ qe(m).then((g) => g.json()).then((g) => {
2331
+ var I, A;
2332
+ const p = {
2429
2333
  ...e.builderContextSignal.rootState,
2430
- [f]: S
2334
+ [f]: g
2431
2335
  };
2432
- (T = (C = e.builderContextSignal).rootSetState) == null || T.call(C, x), p[f] = !0;
2433
- }).catch((S) => {
2434
- console.error("error fetching dynamic data", m, S);
2336
+ (A = (I = e.builderContextSignal).rootSetState) == null || A.call(I, p), k[f] = !0;
2337
+ }).catch((g) => {
2338
+ console.error("error fetching dynamic data", m, g);
2435
2339
  });
2436
2340
  }
2437
- function I() {
2438
- var f, S, x;
2439
- const m = (x = (S = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : S.httpRequests) != null ? x : {};
2440
- Object.entries(m).forEach(([C, T]) => {
2441
- if (T && (!p[C] || N())) {
2442
- const U = A(T);
2443
- w({
2444
- url: U,
2445
- key: C
2341
+ function w() {
2342
+ var f, g, p;
2343
+ const m = (p = (g = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : g.httpRequests) != null ? p : {};
2344
+ Object.entries(m).forEach(([I, A]) => {
2345
+ if (A && (!k[I] || $())) {
2346
+ const H = P(A);
2347
+ C({
2348
+ url: H,
2349
+ key: I
2446
2350
  });
2447
2351
  }
2448
2352
  });
2449
2353
  }
2450
- function P() {
2451
- N() && window.dispatchEvent(
2354
+ function E() {
2355
+ $() && window.dispatchEvent(
2452
2356
  new CustomEvent(
2453
2357
  "builder:component:stateChange",
2454
2358
  {
@@ -2463,7 +2367,7 @@ function bn(e) {
2463
2367
  );
2464
2368
  }
2465
2369
  function B(m) {
2466
- i(n + 1), window.addEventListener("message", u), hn(), gn({
2370
+ i(n + 1), window.addEventListener("message", u), Me(), Ke({
2467
2371
  ...e.locale ? {
2468
2372
  locale: e.locale
2469
2373
  } : {},
@@ -2479,27 +2383,27 @@ function bn(e) {
2479
2383
  }), Object.values(
2480
2384
  e.builderContextSignal.componentInfos
2481
2385
  ).forEach((f) => {
2482
- var x;
2483
- const S = ze(f);
2484
- (x = window.parent) == null || x.postMessage(S, "*");
2386
+ var p;
2387
+ const g = ze(f);
2388
+ (p = window.parent) == null || p.postMessage(g, "*");
2485
2389
  }), window.addEventListener(
2486
2390
  "builder:component:stateChangeListenerActivated",
2487
- P
2391
+ E
2488
2392
  );
2489
2393
  }
2490
- function L(m) {
2491
- const f = new URL(location.href).searchParams, S = f.get("builder.preview"), x = f.get(
2492
- `builder.preview.${S}`
2493
- ), C = f.get("apiKey") || f.get("builder.space");
2494
- S === e.model && C === e.apiKey && (!e.content || x === e.content.id) && Re({
2394
+ function F(m) {
2395
+ const f = new URL(location.href).searchParams, g = f.get("builder.preview"), p = f.get(
2396
+ `builder.preview.${g}`
2397
+ ), I = f.get("apiKey") || f.get("builder.space");
2398
+ g === e.model && I === e.apiKey && (!e.content || p === e.content.id) && Te({
2495
2399
  model: e.model,
2496
2400
  apiKey: e.apiKey,
2497
2401
  apiVersion: e.builderContextSignal.apiVersion
2498
- }).then((T) => {
2499
- T && a(T);
2402
+ }).then((A) => {
2403
+ A && a(A);
2500
2404
  });
2501
2405
  }
2502
- return R(() => {
2406
+ return T(() => {
2503
2407
  var m;
2504
2408
  return (m = t.current) == null || m.addEventListener(
2505
2409
  "initeditingbldr",
@@ -2511,63 +2415,63 @@ function bn(e) {
2511
2415
  B
2512
2416
  );
2513
2417
  };
2514
- }, []), R(() => {
2418
+ }, []), T(() => {
2515
2419
  var m;
2516
2420
  return (m = t.current) == null || m.addEventListener(
2517
2421
  "initpreviewingbldr",
2518
- L
2422
+ F
2519
2423
  ), () => {
2520
2424
  var f;
2521
2425
  return (f = t.current) == null ? void 0 : f.removeEventListener(
2522
2426
  "initpreviewingbldr",
2523
- L
2427
+ F
2524
2428
  );
2525
2429
  };
2526
- }, []), R(() => {
2430
+ }, []), T(() => {
2527
2431
  var m, f;
2528
2432
  if (V()) {
2529
- if (N() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && K(e.canTrack)) {
2530
- const x = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId, C = (f = e.builderContextSignal.content) == null ? void 0 : f.id, T = e.apiKey;
2433
+ if ($() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && K(e.canTrack)) {
2434
+ const p = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId, I = (f = e.builderContextSignal.content) == null ? void 0 : f.id, A = e.apiKey;
2531
2435
  he({
2532
2436
  type: "impression",
2533
2437
  canTrack: !0,
2534
- contentId: C,
2535
- apiKey: T,
2536
- variationId: x !== C ? x : void 0
2438
+ contentId: I,
2439
+ apiKey: A,
2440
+ variationId: p !== I ? p : void 0
2537
2441
  });
2538
2442
  }
2539
- Ke() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
2443
+ He() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
2540
2444
  }
2541
- }, []), R(() => {
2542
- e.apiKey || O.error(
2445
+ }, []), T(() => {
2446
+ e.apiKey || D.error(
2543
2447
  "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
2544
- ), h(), I(), P();
2545
- }, []), R(() => {
2448
+ ), b(), w(), E();
2449
+ }, []), T(() => {
2546
2450
  e.content && a(e.content);
2547
- }, [e.content]), R(() => {
2548
- }, [r]), R(() => {
2549
- h();
2550
- }, [(G = (D = e.builderContextSignal.content) == null ? void 0 : D.data) == null ? void 0 : G.jsCode]), R(() => {
2551
- I();
2552
- }, [(se = (J = e.builderContextSignal.content) == null ? void 0 : J.data) == null ? void 0 : se.httpRequests]), R(() => {
2553
- P();
2554
- }, [e.builderContextSignal.rootState]), R(() => {
2451
+ }, [e.content]), T(() => {
2452
+ }, [r]), T(() => {
2453
+ b();
2454
+ }, [(G = (L = e.builderContextSignal.content) == null ? void 0 : L.data) == null ? void 0 : G.jsCode]), T(() => {
2455
+ w();
2456
+ }, [(se = (J = e.builderContextSignal.content) == null ? void 0 : J.data) == null ? void 0 : se.httpRequests]), T(() => {
2457
+ E();
2458
+ }, [e.builderContextSignal.rootState]), T(() => {
2555
2459
  e.data && o(e.data);
2556
- }, [e.data]), R(() => {
2460
+ }, [e.data]), T(() => {
2557
2461
  e.locale && o({
2558
2462
  locale: e.locale
2559
2463
  });
2560
- }, [e.locale]), R(() => () => {
2464
+ }, [e.locale]), T(() => () => {
2561
2465
  V() && (window.removeEventListener("message", u), window.removeEventListener(
2562
2466
  "builder:component:stateChangeListenerActivated",
2563
- P
2467
+ E
2564
2468
  ));
2565
- }, []), /* @__PURE__ */ c(oe.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ c(g, { children: /* @__PURE__ */ Ue(
2469
+ }, []), /* @__PURE__ */ l(oe.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ je(
2566
2470
  s,
2567
2471
  {
2568
2472
  key: n,
2569
2473
  ref: t,
2570
- onClick: (m) => E(m),
2474
+ onClick: (m) => R(m),
2571
2475
  "builder-content-id": (de = e.builderContextSignal.content) == null ? void 0 : de.id,
2572
2476
  "builder-model": e.model,
2573
2477
  ...e.showContent ? {} : {
@@ -2580,7 +2484,7 @@ function bn(e) {
2580
2484
  e.children
2581
2485
  ) }) : null });
2582
2486
  }
2583
- const yn = (e) => {
2487
+ const fn = (e) => {
2584
2488
  var a, r;
2585
2489
  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;
2586
2490
  let o = "";
@@ -2592,37 +2496,37 @@ font-display: fallback;
2592
2496
  font-weight: 400;
2593
2497
  }
2594
2498
  `.trim()), e.files)
2595
- for (const l in e.files) {
2596
- if (!(String(Number(l)) === l))
2499
+ for (const c in e.files) {
2500
+ if (!(String(Number(c)) === c))
2597
2501
  continue;
2598
- const d = e.files[l];
2502
+ const d = e.files[c];
2599
2503
  d && d !== i && (o += `
2600
2504
  @font-face {
2601
2505
  font-family: "${t}";
2602
2506
  src: url('${d}') format('woff2');
2603
2507
  font-display: fallback;
2604
- font-weight: ${l};
2508
+ font-weight: ${c};
2605
2509
  }
2606
2510
  `.trim());
2607
2511
  }
2608
2512
  return o;
2609
- }, Sn = ({
2513
+ }, hn = ({
2610
2514
  customFonts: e
2611
2515
  }) => {
2612
2516
  var t;
2613
- return ((t = e == null ? void 0 : e.map((n) => yn(n))) == null ? void 0 : t.join(" ")) || "";
2614
- }, xn = ({
2517
+ return ((t = e == null ? void 0 : e.map((n) => fn(n))) == null ? void 0 : t.join(" ")) || "";
2518
+ }, gn = ({
2615
2519
  cssCode: e,
2616
2520
  contentId: t
2617
2521
  }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
2618
- function pn(e) {
2619
- const [t, n] = k(
2522
+ function bn(e) {
2523
+ const [t, n] = v(
2620
2524
  () => `
2621
- ${xn({
2525
+ ${gn({
2622
2526
  cssCode: e.cssCode,
2623
2527
  contentId: e.contentId
2624
2528
  })}
2625
- ${Sn({
2529
+ ${hn({
2626
2530
  customFonts: e.customFonts
2627
2531
  })}
2628
2532
 
@@ -2644,16 +2548,16 @@ ${Sn({
2644
2548
  }
2645
2549
  `.trim()
2646
2550
  );
2647
- return /* @__PURE__ */ c(q, { styles: t });
2551
+ return /* @__PURE__ */ l(q, { styles: t });
2648
2552
  }
2649
- const vn = ({
2553
+ const yn = ({
2650
2554
  content: e,
2651
2555
  data: t,
2652
2556
  locale: n
2653
2557
  }) => {
2654
- var a, r, l;
2558
+ var a, r, c;
2655
2559
  const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
2656
- return (l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || l.forEach((s) => {
2560
+ return (c = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || c.forEach((s) => {
2657
2561
  s.name && s.defaultValue !== void 0 && (i[s.name] = s.defaultValue);
2658
2562
  }), {
2659
2563
  ...i,
@@ -2663,7 +2567,7 @@ const vn = ({
2663
2567
  locale: n
2664
2568
  } : {}
2665
2569
  };
2666
- }, kn = ({
2570
+ }, Sn = ({
2667
2571
  content: e,
2668
2572
  data: t
2669
2573
  }) => e ? {
@@ -2674,28 +2578,28 @@ const vn = ({
2674
2578
  },
2675
2579
  meta: e == null ? void 0 : e.meta
2676
2580
  } : void 0;
2677
- function Ie(e) {
2678
- var s, d, u, h, p, b, y;
2679
- const [t, n] = k(
2581
+ function we(e) {
2582
+ var s, d, u, b, k, S, y;
2583
+ const [t, n] = v(
2680
2584
  () => {
2681
- var v, E;
2585
+ var x, R;
2682
2586
  return cn({
2683
2587
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2684
- variationId: (v = e.content) == null ? void 0 : v.testVariationId,
2588
+ variationId: (x = e.content) == null ? void 0 : x.testVariationId,
2685
2589
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2686
- contentId: (E = e.content) == null ? void 0 : E.id
2590
+ contentId: (R = e.content) == null ? void 0 : R.id
2687
2591
  });
2688
2592
  }
2689
2593
  );
2690
- function i(v) {
2691
- l((E) => ({
2692
- ...E,
2693
- rootState: v
2594
+ function i(x) {
2595
+ c((R) => ({
2596
+ ...R,
2597
+ rootState: x
2694
2598
  }));
2695
2599
  }
2696
- const [o, a] = k(
2600
+ const [o, a] = v(
2697
2601
  () => [
2698
- ...ve(),
2602
+ ...pe(),
2699
2603
  // While this `components` object is deprecated, we must maintain support for it.
2700
2604
  // Since users are able to override our default components, we need to make sure that we do not break such
2701
2605
  // existing usage.
@@ -2704,22 +2608,22 @@ function Ie(e) {
2704
2608
  ...ge,
2705
2609
  ...e.customComponents || []
2706
2610
  ].reduce(
2707
- (v, { component: E, ...A }) => ({
2708
- ...v,
2709
- [A.name]: {
2710
- component: E,
2711
- ...be(A)
2611
+ (x, { component: R, ...P }) => ({
2612
+ ...x,
2613
+ [P.name]: {
2614
+ component: R,
2615
+ ...be(P)
2712
2616
  }
2713
2617
  }),
2714
2618
  {}
2715
2619
  )
2716
- ), [r, l] = k(() => ({
2717
- content: kn({
2620
+ ), [r, c] = v(() => ({
2621
+ content: Sn({
2718
2622
  content: e.content,
2719
2623
  data: e.data
2720
2624
  }),
2721
2625
  localState: void 0,
2722
- rootState: vn({
2626
+ rootState: yn({
2723
2627
  content: e.content,
2724
2628
  data: e.data,
2725
2629
  locale: e.locale
@@ -2729,7 +2633,7 @@ function Ie(e) {
2729
2633
  apiKey: e.apiKey,
2730
2634
  apiVersion: e.apiVersion,
2731
2635
  componentInfos: [
2732
- ...ve(),
2636
+ ...pe(),
2733
2637
  // While this `components` object is deprecated, we must maintain support for it.
2734
2638
  // Since users are able to override our default components, we need to make sure that we do not break such
2735
2639
  // existing usage.
@@ -2738,9 +2642,9 @@ function Ie(e) {
2738
2642
  ...ge,
2739
2643
  ...e.customComponents || []
2740
2644
  ].reduce(
2741
- (v, { component: E, ...A }) => ({
2742
- ...v,
2743
- [A.name]: be(A)
2645
+ (x, { component: R, ...P }) => ({
2646
+ ...x,
2647
+ [P.name]: be(P)
2744
2648
  }),
2745
2649
  {}
2746
2650
  ),
@@ -2748,14 +2652,14 @@ function Ie(e) {
2748
2652
  BlocksWrapper: e.blocksWrapper || "div",
2749
2653
  BlocksWrapperProps: e.blocksWrapperProps || {}
2750
2654
  }));
2751
- return /* @__PURE__ */ c(
2752
- Ee.Provider,
2655
+ return /* @__PURE__ */ l(
2656
+ Re.Provider,
2753
2657
  {
2754
2658
  value: {
2755
2659
  registeredComponents: o
2756
2660
  },
2757
2661
  children: /* @__PURE__ */ W(
2758
- bn,
2662
+ mn,
2759
2663
  {
2760
2664
  content: e.content,
2761
2665
  data: e.data,
@@ -2772,21 +2676,21 @@ function Ie(e) {
2772
2676
  contentWrapperProps: e.contentWrapperProps,
2773
2677
  linkComponent: e.linkComponent,
2774
2678
  trustedHosts: e.trustedHosts,
2775
- setBuilderContextSignal: l,
2679
+ setBuilderContextSignal: c,
2776
2680
  children: [
2777
- e.isSsrAbTest ? /* @__PURE__ */ c(g, { children: /* @__PURE__ */ c(ee, { scriptStr: t }) }) : null,
2778
- /* @__PURE__ */ c(g, { children: /* @__PURE__ */ c(
2779
- pn,
2681
+ e.isSsrAbTest ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(ee, { scriptStr: t }) }) : null,
2682
+ /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
2683
+ bn,
2780
2684
  {
2781
2685
  contentId: (s = r.content) == null ? void 0 : s.id,
2782
2686
  cssCode: (u = (d = r.content) == null ? void 0 : d.data) == null ? void 0 : u.cssCode,
2783
- customFonts: (p = (h = r.content) == null ? void 0 : h.data) == null ? void 0 : p.customFonts
2687
+ customFonts: (k = (b = r.content) == null ? void 0 : b.data) == null ? void 0 : k.customFonts
2784
2688
  }
2785
2689
  ) }),
2786
- /* @__PURE__ */ c(
2690
+ /* @__PURE__ */ l(
2787
2691
  Q,
2788
2692
  {
2789
- blocks: (y = (b = r.content) == null ? void 0 : b.data) == null ? void 0 : y.blocks,
2693
+ blocks: (y = (S = r.content) == null ? void 0 : S.data) == null ? void 0 : y.blocks,
2790
2694
  context: r,
2791
2695
  registeredComponents: o,
2792
2696
  linkComponent: e.linkComponent
@@ -2798,9 +2702,9 @@ function Ie(e) {
2798
2702
  }
2799
2703
  );
2800
2704
  }
2801
- function _e(e) {
2802
- var r, l;
2803
- const [t, n] = k(
2705
+ function De(e) {
2706
+ var r, c;
2707
+ const [t, n] = v(
2804
2708
  () => on({
2805
2709
  canTrack: K(e.canTrack),
2806
2710
  content: e.content
@@ -2809,7 +2713,7 @@ function _e(e) {
2809
2713
  function i() {
2810
2714
  var s;
2811
2715
  return ln(
2812
- H(e.content).map((d) => ({
2716
+ U(e.content).map((d) => ({
2813
2717
  id: d.testVariationId,
2814
2718
  testRatio: d.testRatio
2815
2719
  })),
@@ -2817,7 +2721,7 @@ function _e(e) {
2817
2721
  );
2818
2722
  }
2819
2723
  function o() {
2820
- return H(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
2724
+ return U(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
2821
2725
  }
2822
2726
  function a() {
2823
2727
  var s;
@@ -2829,20 +2733,20 @@ function _e(e) {
2829
2733
  canTrack: K(e.canTrack)
2830
2734
  });
2831
2735
  }
2832
- return R(() => {
2833
- }, []), /* @__PURE__ */ W(g, { children: [
2834
- !e.__isNestedRender && F !== "reactNative" ? /* @__PURE__ */ c(g, { children: /* @__PURE__ */ c(ee, { scriptStr: rn() }) }) : null,
2835
- t ? /* @__PURE__ */ W(g, { children: [
2836
- /* @__PURE__ */ c(
2736
+ return T(() => {
2737
+ }, []), /* @__PURE__ */ W(h, { children: [
2738
+ !e.__isNestedRender && _ !== "reactNative" ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(ee, { scriptStr: rn() }) }) : null,
2739
+ t ? /* @__PURE__ */ W(h, { children: [
2740
+ /* @__PURE__ */ l(
2837
2741
  q,
2838
2742
  {
2839
2743
  id: `variants-styles-${(r = e.content) == null ? void 0 : r.id}`,
2840
2744
  styles: o()
2841
2745
  }
2842
2746
  ),
2843
- /* @__PURE__ */ c(ee, { scriptStr: i() }),
2844
- (l = H(e.content)) == null ? void 0 : l.map((s) => /* @__PURE__ */ c(
2845
- Ie,
2747
+ /* @__PURE__ */ l(ee, { scriptStr: i() }),
2748
+ (c = U(e.content)) == null ? void 0 : c.map((s) => /* @__PURE__ */ l(
2749
+ we,
2846
2750
  {
2847
2751
  content: s,
2848
2752
  showContent: !1,
@@ -2867,8 +2771,8 @@ function _e(e) {
2867
2771
  s.testVariationId
2868
2772
  ))
2869
2773
  ] }) : null,
2870
- /* @__PURE__ */ c(
2871
- Ie,
2774
+ /* @__PURE__ */ l(
2775
+ we,
2872
2776
  {
2873
2777
  content: a(),
2874
2778
  showContent: !0,
@@ -2893,13 +2797,13 @@ function _e(e) {
2893
2797
  )
2894
2798
  ] });
2895
2799
  }
2896
- const Cn = async ({
2800
+ const xn = async ({
2897
2801
  builderContextValue: e,
2898
2802
  symbol: t
2899
2803
  }) => {
2900
2804
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
2901
2805
  (e != null && e.apiKey))
2902
- return Re({
2806
+ return Te({
2903
2807
  model: t.model,
2904
2808
  apiKey: e.apiKey,
2905
2809
  apiVersion: e.apiVersion,
@@ -2909,37 +2813,37 @@ const Cn = async ({
2909
2813
  }
2910
2814
  }
2911
2815
  }).catch((n) => {
2912
- O.error("Could not fetch symbol content: ", n);
2816
+ D.error("Could not fetch symbol content: ", n);
2913
2817
  });
2914
2818
  };
2915
- function wn(e) {
2916
- var a, r, l, s;
2819
+ function vn(e) {
2820
+ var a, r, c, s;
2917
2821
  function t() {
2918
2822
  var d, u;
2919
2823
  return [
2920
- e.attributes[_()],
2824
+ e.attributes[O()],
2921
2825
  "builder-symbol",
2922
2826
  (d = e.symbol) != null && d.inline ? "builder-inline-symbol" : void 0,
2923
2827
  (u = e.symbol) != null && u.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
2924
2828
  ].filter(Boolean).join(" ");
2925
2829
  }
2926
- const [n, i] = k(() => {
2830
+ const [n, i] = v(() => {
2927
2831
  var d;
2928
2832
  return (d = e.symbol) == null ? void 0 : d.content;
2929
2833
  });
2930
2834
  function o() {
2931
- n || Cn({
2835
+ n || xn({
2932
2836
  symbol: e.symbol,
2933
2837
  builderContextValue: e.builderContext
2934
2838
  }).then((d) => {
2935
2839
  d && i(d);
2936
2840
  });
2937
2841
  }
2938
- return R(() => {
2939
- }, []), R(() => {
2842
+ return T(() => {
2843
+ }, []), T(() => {
2940
2844
  o();
2941
- }, [e.symbol]), /* @__PURE__ */ c("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ c(
2942
- _e,
2845
+ }, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ l(
2846
+ De,
2943
2847
  {
2944
2848
  __isNestedRender: !0,
2945
2849
  apiVersion: e.builderContext.apiVersion,
@@ -2952,7 +2856,7 @@ function wn(e) {
2952
2856
  data: {
2953
2857
  ...(r = e.symbol) == null ? void 0 : r.data,
2954
2858
  ...e.builderContext.localState,
2955
- ...(l = n == null ? void 0 : n.data) == null ? void 0 : l.state
2859
+ ...(c = n == null ? void 0 : n.data) == null ? void 0 : c.state
2956
2860
  },
2957
2861
  model: (s = e.symbol) == null ? void 0 : s.model,
2958
2862
  content: n,
@@ -2960,31 +2864,32 @@ function wn(e) {
2960
2864
  }
2961
2865
  ) });
2962
2866
  }
2963
- const En = Q, Pn = _e;
2867
+ const wn = Q, In = De;
2964
2868
  export {
2965
2869
  Q as Blocks,
2966
2870
  Je as Button,
2967
2871
  Pt as Columns,
2968
- _e as Content,
2872
+ De as Content,
2969
2873
  At as Fragment,
2970
- Nt as Image,
2971
- En as RenderBlocks,
2972
- Pn as RenderContent,
2973
- $t as Section,
2974
- wn as Symbol,
2874
+ $t as Image,
2875
+ wn as RenderBlocks,
2876
+ In as RenderContent,
2877
+ Nt as Section,
2878
+ vn as Symbol,
2975
2879
  Xt as Text,
2976
2880
  en as Video,
2977
- Wn as _processContentResult,
2881
+ En as _processContentResult,
2978
2882
  ze as createRegisterComponentMessage,
2979
- Nn as fetchBuilderProps,
2980
- $n as fetchEntries,
2981
- Re as fetchOneEntry,
2982
- Vn as getAllContent,
2983
- Fn as getBuilderSearchParams,
2984
- Ln as getContent,
2985
- N as isEditing,
2986
- Ke as isPreviewing,
2987
- Me as register,
2988
- Dn as setEditorSettings,
2989
- On as track
2883
+ Pn as fetchBuilderProps,
2884
+ An as fetchEntries,
2885
+ Te as fetchOneEntry,
2886
+ Bn as getAllContent,
2887
+ Wn as getBuilderSearchParams,
2888
+ $n as getContent,
2889
+ $ as isEditing,
2890
+ He as isPreviewing,
2891
+ Nn as register,
2892
+ Vn as setEditorSettings,
2893
+ Fn as subscribeToEditor,
2894
+ Ln as track
2990
2895
  };