@builder.io/sdk-react 0.12.5 → 0.12.7

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 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";
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());
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 }) }) }) });
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";
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
+ 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 }) }) }) });
9
9
  }
10
- const O = () => {
11
- switch ($) {
10
+ const _ = () => {
11
+ switch (F) {
12
12
  case "react":
13
13
  case "reactNative":
14
14
  case "rsc":
@@ -20,14 +20,14 @@ const O = () => {
20
20
  return "class";
21
21
  }
22
22
  };
23
- function Ke(e) {
24
- return /* @__PURE__ */ l(
25
- ne,
23
+ function Je(e) {
24
+ return /* @__PURE__ */ c(
25
+ ie,
26
26
  {
27
27
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
28
28
  attributes: {
29
29
  ...e.attributes,
30
- [O()]: `${e.link ? "" : "builder-button"} ${e.attributes[O()] || ""}`,
30
+ [_()]: `${e.link ? "" : "builder-button"} ${e.attributes[_()] || ""}`,
31
31
  ...e.link ? {
32
32
  href: e.link,
33
33
  target: e.openLinkInNewTab ? "_blank" : void 0,
@@ -41,7 +41,7 @@ function Ke(e) {
41
41
  }
42
42
  );
43
43
  }
44
- const ie = pe({
44
+ const oe = Te({
45
45
  content: null,
46
46
  context: {},
47
47
  localState: void 0,
@@ -54,8 +54,8 @@ const ie = pe({
54
54
  inheritedStyles: {},
55
55
  BlocksWrapper: "div",
56
56
  BlocksWrapperProps: {}
57
- }), we = pe({ registeredComponents: {} });
58
- function ze(e) {
57
+ }), Ee = Te({ registeredComponents: {} });
58
+ function Xe(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 Ze = ({
70
70
  builder: e,
71
71
  context: t,
72
72
  event: n,
@@ -78,93 +78,110 @@ const qe = ({
78
78
  builder: e,
79
79
  context: t,
80
80
  event: n
81
- }), Ye = () => ({
81
+ }), et = () => ({
82
82
  isEditing: N(),
83
83
  isBrowser: V(),
84
84
  isServer: !V(),
85
- getUserAttributes: () => Le()
86
- }), Qe = (e, {
85
+ getUserAttributes: () => He()
86
+ }), tt = (e, {
87
87
  isExpression: t = !0
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 = ({
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 = ({
89
89
  code: e,
90
90
  builder: t,
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 l = Ze({
98
98
  builder: t,
99
99
  context: n,
100
100
  event: i,
101
- state: Ge(a, o, r)
101
+ state: Pe({
102
+ rootState: r,
103
+ localState: o,
104
+ rootSetState: a
105
+ })
102
106
  });
103
- return new Function(...c.map(([s]) => s), e)(...c.map(([, s]) => s));
107
+ return new Function(...l.map(([s]) => s), e)(...l.map(([, s]) => s));
104
108
  };
105
- function Ge(e, t, n) {
106
- if (e === t)
107
- throw new Error("rootState === localState");
109
+ function Pe({
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" ? Pe({
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
  }
117
- function Je() {
134
+ function nt() {
118
135
  var e;
119
136
  return typeof process != "undefined" && M((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
120
137
  }
121
- const Xe = () => {
138
+ const it = () => {
122
139
  var i;
123
- if (!Je())
140
+ if (!nt())
124
141
  return !1;
125
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");
126
- return e && t && !n ? (_.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;
127
- }, Ze = (e) => (V() || Xe(), fe(e));
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;
144
+ }, ot = (e) => (V() || it(), ye(e));
128
145
  function j({
129
146
  code: e,
130
147
  context: t,
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
- _.warn("Skipping evaluation of empty code block.");
155
+ O.warn("Skipping evaluation of empty code block.");
139
156
  return;
140
157
  }
141
- const c = {
142
- code: Qe(e, {
143
- isExpression: a
158
+ const l = {
159
+ code: tt(e, {
160
+ isExpression: r
144
161
  }),
145
- builder: Ye(),
162
+ builder: et(),
146
163
  context: t,
147
- event: r,
164
+ event: a,
148
165
  rootSetState: o,
149
166
  rootState: i,
150
167
  localState: n
151
168
  };
152
169
  try {
153
- return Ze(c);
170
+ return ot(l);
154
171
  } catch (s) {
155
- _.error("Failed code evaluation: " + s.message, {
172
+ O.error("Failed code evaluation: " + s.message, {
156
173
  code: e
157
174
  });
158
175
  return;
159
176
  }
160
177
  }
161
- const et = (e, t, n) => {
178
+ const at = (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
- const tt = ({
184
+ const rt = ({
168
185
  block: e,
169
186
  context: t,
170
187
  localState: n,
@@ -173,58 +190,180 @@ const tt = ({
173
190
  }) => {
174
191
  if (!e.bindings)
175
192
  return e;
176
- const r = te(e), a = {
177
- ...r,
193
+ const a = ne(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
- for (const c in e.bindings) {
186
- const s = e.bindings[c], d = j({
202
+ for (const l in e.bindings) {
203
+ const s = e.bindings[l], d = j({
187
204
  code: s,
188
205
  localState: n,
189
206
  rootState: i,
190
207
  rootSetState: o,
191
208
  context: t
192
209
  });
193
- et(a, c, d);
210
+ at(r, l, d);
194
211
  }
195
- return a;
212
+ return r;
196
213
  };
197
- function K({
214
+ function z({
198
215
  block: e,
199
216
  context: t,
200
217
  shouldEvaluateBindings: n,
201
218
  localState: i,
202
219
  rootState: o,
203
- rootSetState: r
220
+ rootSetState: a
204
221
  }) {
205
- const a = e;
206
- return n ? tt({
207
- block: a,
222
+ const r = e;
223
+ return n ? rt({
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;
230
+ }
231
+ function lt(e, t, n = {}) {
232
+ let i, o, a, r = null, l = 0;
233
+ const s = function() {
234
+ l = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
235
+ };
236
+ return function() {
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;
241
+ };
242
+ }
243
+ function $(e, ...t) {
244
+ const n = Object(e);
245
+ for (let i = 1; i < arguments.length; i++) {
246
+ const o = arguments[i];
247
+ if (o != null)
248
+ for (const a in o)
249
+ Object.prototype.hasOwnProperty.call(o, a) && (n[a] = o[a]);
250
+ }
251
+ return n;
252
+ }
253
+ const ae = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
254
+ function ct(e) {
255
+ for (const t of e)
256
+ switch (t.trigger) {
257
+ case "pageLoad":
258
+ Ae(t);
259
+ break;
260
+ case "hover":
261
+ dt(t);
262
+ break;
263
+ case "scrollInView":
264
+ ut(t);
265
+ break;
266
+ }
267
+ }
268
+ function re(e) {
269
+ console.warn(`Cannot animate element: element with ID ${e} not found!`);
270
+ }
271
+ function le(e, t) {
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)
274
+ for (const s of n)
275
+ s in l || (l[s] = i[s]);
276
+ }
277
+ function st(e) {
278
+ const t = [];
279
+ for (const n of e.steps)
280
+ for (const i in n.styles)
281
+ t.indexOf(i) === -1 && t.push(i);
282
+ return t;
283
+ }
284
+ function Ae(e) {
285
+ const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
286
+ if (!t.length) {
287
+ re(e.elementId || e.id || "");
288
+ return;
289
+ }
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(() => {
293
+ n.style.transition = "", n.style.transitionDelay = "";
294
+ }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
295
+ });
296
+ });
297
+ }
298
+ function dt(e) {
299
+ const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
300
+ if (!t.length) {
301
+ re(e.elementId || e.id || "");
302
+ return;
303
+ }
304
+ Array.from(t).forEach((n) => {
305
+ le(e, n);
306
+ const i = e.steps[0].styles, o = e.steps[1].styles;
307
+ function a() {
308
+ $(n.style, i);
309
+ }
310
+ function r() {
311
+ $(n.style, o);
312
+ }
313
+ a(), n.addEventListener("mouseenter", r), n.addEventListener("mouseleave", a), setTimeout(() => {
314
+ n.style.transition = `all ${e.duration}s ${ae(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
315
+ });
316
+ });
317
+ }
318
+ function ut(e) {
319
+ const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
320
+ if (!t.length) {
321
+ re(e.elementId || e.id || "");
322
+ return;
323
+ }
324
+ Array.from(t).forEach((n) => {
325
+ le(e, n);
326
+ let i = !1, o = !1;
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(() => {
330
+ o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
331
+ }, (e.duration + (e.delay || 0)) * 1e3 + 100);
332
+ })) : e.repeat && i && !o && !l(n) && (i = !1, $(n.style, e.steps[0].styles));
333
+ }
334
+ const r = lt(a, 200, {
335
+ leading: !1
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;
340
+ }
341
+ const s = e.steps[0].styles;
342
+ function d() {
343
+ $(n.style, s);
344
+ }
345
+ d(), setTimeout(() => {
346
+ n.style.transition = `all ${e.duration}s ${ae(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
347
+ }), document.addEventListener("scroll", r, {
348
+ capture: !0,
349
+ passive: !0
350
+ }), a();
351
+ });
213
352
  }
214
- const nt = ({
353
+ const mt = ({
215
354
  block: e,
216
355
  context: t,
217
356
  registeredComponents: n
218
357
  }) => {
219
- var r;
220
- const i = (r = K({
358
+ var a;
359
+ const i = (a = z({
221
360
  block: e,
222
361
  localState: t.localState,
223
362
  rootState: t.rootState,
224
363
  rootSetState: t.rootSetState,
225
364
  context: t.context,
226
365
  shouldEvaluateBindings: !1
227
- }).component) == null ? void 0 : r.name;
366
+ }).component) == null ? void 0 : a.name;
228
367
  if (!i)
229
368
  return null;
230
369
  const o = n[i];
@@ -233,7 +372,7 @@ const nt = ({
233
372
  console.warn(`
234
373
  Could not find a registered component named "${i}".
235
374
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
236
- }, it = ({
375
+ }, ft = ({
237
376
  block: e,
238
377
  context: t
239
378
  }) => {
@@ -252,7 +391,7 @@ const nt = ({
252
391
  });
253
392
  if (!Array.isArray(o))
254
393
  return;
255
- const r = n.collection.split(".").pop(), a = n.itemName || (r ? r + "Item" : "item");
394
+ const a = n.collection.split(".").pop(), r = n.itemName || (a ? a + "Item" : "item");
256
395
  return o.map((s, d) => ({
257
396
  context: {
258
397
  ...t,
@@ -260,13 +399,13 @@ const nt = ({
260
399
  ...t.localState,
261
400
  $index: d,
262
401
  $item: s,
263
- [a]: s,
264
- [`$${a}Index`]: d
402
+ [r]: s,
403
+ [`$${r}Index`]: d
265
404
  }
266
405
  },
267
406
  block: i
268
407
  }));
269
- }, Ie = {
408
+ }, Be = {
270
409
  small: {
271
410
  min: 320,
272
411
  default: 321,
@@ -282,11 +421,11 @@ const nt = ({
282
421
  default: 991,
283
422
  max: 1200
284
423
  }
285
- }, he = (e, t = Ie) => `@media (max-width: ${t[e].max}px)`, Te = ({
424
+ }, Se = (e, t = Be) => `@media (max-width: ${t[e].max}px)`, We = ({
286
425
  small: e,
287
426
  medium: t
288
427
  }) => {
289
- const n = te(Ie);
428
+ const n = ne(Be);
290
429
  if (!e || !t)
291
430
  return n;
292
431
  const i = Math.floor(e / 2);
@@ -301,35 +440,35 @@ const nt = ({
301
440
  min: o,
302
441
  default: o + 1
303
442
  };
304
- const r = n.medium.max + 1;
443
+ const a = n.medium.max + 1;
305
444
  return n.large = {
306
445
  max: 2e3,
307
446
  // TODO: decide upper limit
308
- min: r,
309
- default: r + 1
447
+ min: a,
448
+ default: a + 1
310
449
  }, 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]) => {
450
+ }, ht = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Ne = (e) => Object.entries(e).map(([n, i]) => {
312
451
  if (typeof i == "string")
313
- return `${ot(n)}: ${i};`;
314
- }).filter(M), at = (e) => Re(e).join(`
315
- `), J = ({
452
+ return `${ht(n)}: ${i};`;
453
+ }).filter(M), gt = (e) => Ne(e).join(`
454
+ `), X = ({
316
455
  mediaQuery: e,
317
456
  className: t,
318
457
  styles: n
319
458
  }) => {
320
459
  const i = `.${t} {
321
- ${at(n)}
460
+ ${gt(n)}
322
461
  }`;
323
462
  return e ? `${e} {
324
463
  ${i}
325
464
  }` : i;
326
465
  };
327
- function z(e) {
328
- return /* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
466
+ function q(e) {
467
+ return /* @__PURE__ */ c("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
329
468
  }
330
- function rt(e) {
469
+ function bt(e) {
331
470
  function t() {
332
- const i = K({
471
+ const i = z({
333
472
  block: e.block,
334
473
  localState: e.context.localState,
335
474
  rootState: e.context.rootState,
@@ -340,45 +479,45 @@ function rt(e) {
340
479
  return M(i.hide) ? !i.hide : M(i.show) ? i.show : !0;
341
480
  }
342
481
  function n() {
343
- var x;
344
- const i = K({
482
+ var y;
483
+ const i = z({
345
484
  block: e.block,
346
485
  localState: e.context.localState,
347
486
  rootState: e.context.rootState,
348
487
  rootSetState: e.context.rootSetState,
349
488
  context: e.context.context,
350
489
  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) || {}
353
- ), 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
- if (!m)
490
+ }), o = i.responsiveStyles, a = e.context.content, r = We(
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;
493
+ if (!u)
355
494
  return "";
356
- const g = c ? J({
357
- className: m,
358
- styles: c
359
- }) : "", k = s ? J({
360
- className: m,
495
+ const h = l ? X({
496
+ className: u,
497
+ styles: l
498
+ }) : "", p = s ? X({
499
+ className: u,
361
500
  styles: s,
362
- mediaQuery: he(
501
+ mediaQuery: Se(
363
502
  "medium",
364
- a
503
+ r
365
504
  )
366
- }) : "", S = d ? J({
367
- className: m,
505
+ }) : "", b = d ? X({
506
+ className: u,
368
507
  styles: d,
369
- mediaQuery: he(
508
+ mediaQuery: Se(
370
509
  "small",
371
- a
510
+ r
372
511
  )
373
512
  }) : "";
374
- return [g, k, S].join(" ");
513
+ return [h, p, b].join(" ");
375
514
  }
376
- return /* @__PURE__ */ l(h, { children: n() && t() ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(z, { styles: n() }) }) : null });
515
+ return /* @__PURE__ */ c(g, { children: n() && t() ? /* @__PURE__ */ c(g, { children: /* @__PURE__ */ c(q, { styles: n() }) }) : null });
377
516
  }
378
- function lt(e) {
517
+ function yt(e) {
379
518
  return e.charAt(0).toUpperCase() + e.slice(1);
380
519
  }
381
- const ct = (e) => `on${lt(e)}`, st = (e, t) => (n) => j({
520
+ const St = (e) => `on${yt(e)}`, xt = (e, t) => (n) => j({
382
521
  code: e,
383
522
  context: t.context,
384
523
  localState: t.localState,
@@ -387,46 +526,46 @@ const ct = (e) => `on${lt(e)}`, st = (e, t) => (n) => j({
387
526
  event: n,
388
527
  isExpression: !1
389
528
  });
390
- function Ee(e) {
529
+ function $e(e) {
391
530
  var i;
392
531
  const t = {}, n = (i = e.block.actions) != null ? i : {};
393
532
  for (const o in n) {
394
533
  if (!n.hasOwnProperty(o))
395
534
  continue;
396
- const r = n[o];
397
- let a = ct(o);
535
+ const a = n[o];
536
+ let r = St(o);
398
537
  if (e.stripPrefix)
399
- switch ($) {
538
+ switch (F) {
400
539
  case "vue":
401
- a = a.replace("v-on:", "");
540
+ r = r.replace("v-on:", "");
402
541
  break;
403
542
  case "svelte":
404
- a = a.replace("on:", "");
543
+ r = r.replace("on:", "");
405
544
  break;
406
545
  }
407
- t[a] = st(r, e);
546
+ t[r] = xt(a, e);
408
547
  }
409
548
  return t;
410
549
  }
411
- function dt({
550
+ function pt({
412
551
  style: e
413
552
  }) {
414
553
  return e;
415
554
  }
416
- const ut = ({
555
+ const vt = ({
417
556
  block: e,
418
557
  context: t
419
- }) => Pe(dt({
558
+ }) => Ve(pt({
420
559
  style: e.style || {},
421
560
  context: t,
422
561
  block: e
423
562
  }));
424
- function Pe(e) {
425
- switch ($) {
563
+ function Ve(e) {
564
+ switch (F) {
426
565
  case "svelte":
427
566
  case "vue":
428
567
  case "solid":
429
- return Re(e).join(" ");
568
+ return Ne(e).join(" ");
430
569
  case "qwik":
431
570
  case "reactNative":
432
571
  case "react":
@@ -434,45 +573,45 @@ function Pe(e) {
434
573
  return e;
435
574
  }
436
575
  }
437
- function mt({
576
+ function kt({
438
577
  properties: e
439
578
  }) {
440
579
  return e;
441
580
  }
442
- const ft = (e) => ({
581
+ const Ct = (e) => ({
443
582
  href: e.href
444
583
  });
445
- function oe({
584
+ function ce({
446
585
  block: e,
447
586
  context: t
448
587
  }) {
449
588
  var i;
450
589
  const n = {
451
- ...ft(e),
590
+ ...Ct(e),
452
591
  ...e.properties,
453
592
  "builder-id": e.id,
454
- style: ut({
593
+ style: vt({
455
594
  block: e,
456
595
  context: t
457
596
  }),
458
- [O()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
597
+ [_()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
459
598
  };
460
- return mt({
599
+ return kt({
461
600
  properties: n,
462
601
  context: t,
463
602
  block: e
464
603
  });
465
604
  }
466
- function ht(e) {
467
- return /* @__PURE__ */ l(
468
- ne,
605
+ function wt(e) {
606
+ return /* @__PURE__ */ c(
607
+ ie,
469
608
  {
470
609
  TagName: e.Wrapper,
471
- attributes: oe({
610
+ attributes: ce({
472
611
  block: e.block,
473
612
  context: e.context
474
613
  }),
475
- actionAttributes: Ee({
614
+ actionAttributes: $e({
476
615
  block: e.block,
477
616
  rootState: e.context.rootState,
478
617
  rootSetState: e.context.rootSetState,
@@ -484,17 +623,17 @@ function ht(e) {
484
623
  }
485
624
  );
486
625
  }
487
- function gt(e) {
488
- return /* @__PURE__ */ l(
626
+ function It(e) {
627
+ return /* @__PURE__ */ c(
489
628
  e.Wrapper,
490
629
  {
491
630
  ...e.wrapperProps,
492
631
  attributes: e.includeBlockProps ? {
493
- ...oe({
632
+ ...ce({
494
633
  block: e.block,
495
634
  context: e.context
496
635
  }),
497
- ...Ee({
636
+ ...$e({
498
637
  block: e.block,
499
638
  rootState: e.context.rootState,
500
639
  rootSetState: e.context.rootSetState,
@@ -506,45 +645,45 @@ function gt(e) {
506
645
  }
507
646
  );
508
647
  }
509
- const bt = ({
648
+ const Tt = ({
510
649
  componentOptions: e,
511
650
  builderBlock: t,
512
651
  context: n,
513
652
  componentRef: i,
514
653
  includeBlockProps: o,
515
- isInteractive: r,
516
- contextValue: a
654
+ isInteractive: a,
655
+ contextValue: r
517
656
  }) => {
518
- const c = {
657
+ const l = {
519
658
  ...e,
520
659
  /**
521
660
  * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
522
661
  * component itself directly. Otherwise, they are provided to the wrapper element.
523
662
  */
524
663
  ...o ? {
525
- attributes: oe({
664
+ attributes: ce({
526
665
  block: t,
527
- context: a
666
+ context: r
528
667
  })
529
668
  } : {}
530
669
  };
531
- return r ? {
670
+ return a ? {
532
671
  Wrapper: i,
533
672
  block: t,
534
673
  context: n,
535
674
  wrapperProps: e,
536
675
  includeBlockProps: o
537
- } : c;
676
+ } : l;
538
677
  };
539
- function ge(e) {
678
+ function xe(e) {
540
679
  var i;
541
- const [t, n] = v(
542
- () => e.isInteractive ? gt : e.componentRef
680
+ const [t, n] = k(
681
+ () => e.isInteractive ? It : e.componentRef
543
682
  );
544
- return /* @__PURE__ */ l(h, { children: e.componentRef ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
683
+ return /* @__PURE__ */ c(g, { children: e.componentRef ? /* @__PURE__ */ c(g, { children: /* @__PURE__ */ c(
545
684
  t,
546
685
  {
547
- ...bt({
686
+ ...Tt({
548
687
  componentOptions: e.componentOptions,
549
688
  builderBlock: e.builderBlock,
550
689
  context: e.context,
@@ -554,8 +693,8 @@ function ge(e) {
554
693
  isInteractive: e.isInteractive,
555
694
  contextValue: e.context
556
695
  }),
557
- children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
558
- q,
696
+ children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ c(
697
+ Y,
559
698
  {
560
699
  block: o,
561
700
  context: e.context,
@@ -567,10 +706,10 @@ function ge(e) {
567
706
  }
568
707
  ) }) : null });
569
708
  }
570
- function yt(e) {
571
- const [t, n] = v(() => e.repeatContext);
572
- return /* @__PURE__ */ l(ie.Provider, { value: t, children: /* @__PURE__ */ l(
573
- q,
709
+ function Rt(e) {
710
+ const [t, n] = k(() => e.repeatContext);
711
+ return /* @__PURE__ */ c(oe.Provider, { value: t, children: /* @__PURE__ */ c(
712
+ Y,
574
713
  {
575
714
  block: e.block,
576
715
  context: t,
@@ -579,24 +718,24 @@ function yt(e) {
579
718
  }
580
719
  ) });
581
720
  }
582
- function q(e) {
583
- var m, g, k;
721
+ function Y(e) {
722
+ var u, h, p;
584
723
  function t() {
585
- return nt({
724
+ return mt({
586
725
  block: e.block,
587
726
  context: e.context,
588
727
  registeredComponents: e.registeredComponents
589
728
  });
590
729
  }
591
730
  function n() {
592
- return it({
731
+ return ft({
593
732
  block: e.block,
594
733
  context: e.context
595
734
  });
596
735
  }
597
736
  function i() {
598
- var S;
599
- return (S = e.block.repeat) != null && S.collection ? e.block : K({
737
+ var b;
738
+ return (b = e.block.repeat) != null && b.collection ? e.block : z({
600
739
  block: e.block,
601
740
  localState: e.context.localState,
602
741
  rootState: e.context.rootState,
@@ -606,29 +745,29 @@ function q(e) {
606
745
  });
607
746
  }
608
747
  function o() {
609
- var x;
610
- return e.block.tagName === "a" || ((x = i().properties) == null ? void 0 : x.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
611
- }
612
- function r() {
613
- var C, R;
614
- if ((C = e.block.repeat) != null && C.collection)
615
- return !!((R = n == null ? void 0 : n()) != null && R.length);
616
- const S = "hide" in i() ? i().hide : !1;
617
- return ("show" in i() ? i().show : !0) && !S;
748
+ var y;
749
+ return e.block.tagName === "a" || ((y = i().properties) == null ? void 0 : y.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
618
750
  }
619
751
  function a() {
620
- var x, C;
621
- return !((x = t == null ? void 0 : t()) != null && x.component) && !n() ? (C = i().children) != null ? C : [] : [];
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;
757
+ }
758
+ function r() {
759
+ var y, v;
760
+ return !((y = t == null ? void 0 : t()) != null && y.component) && !n() ? (v = i().children) != null ? v : [] : [];
622
761
  }
623
- function c() {
624
- var S, x, C, R, B, w, I, P, W;
762
+ function l() {
763
+ var b, y, v, E, A, w, I, P, B;
625
764
  return {
626
- blockChildren: (S = i().children) != null ? S : [],
627
- componentRef: (x = t == null ? void 0 : t()) == null ? void 0 : x.component,
765
+ blockChildren: (b = i().children) != null ? b : [],
766
+ componentRef: (y = t == null ? void 0 : t()) == null ? void 0 : y.component,
628
767
  componentOptions: {
629
- ...ze(i()),
768
+ ...Xe(i()),
630
769
  builderContext: e.context,
631
- ...((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" ? {
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" ? {
632
771
  builderLinkComponent: e.linkComponent
633
772
  } : {},
634
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" ? {
@@ -640,79 +779,87 @@ function q(e) {
640
779
  registeredComponents: e.registeredComponents,
641
780
  builderBlock: i(),
642
781
  includeBlockProps: ((P = t == null ? void 0 : t()) == null ? void 0 : P.noWrap) === !0,
643
- isInteractive: !((W = t == null ? void 0 : t()) != null && W.isRSC)
782
+ isInteractive: !((B = t == null ? void 0 : t()) != null && B.isRSC)
644
783
  };
645
784
  }
646
- const [s, d] = v(() => e.context);
647
- return /* @__PURE__ */ l(h, { children: r() ? /* @__PURE__ */ A(h, { children: [
648
- /* @__PURE__ */ l(rt, { block: e.block, context: e.context }),
649
- (m = t == null ? void 0 : t()) != null && m.noWrap ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
650
- ge,
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
792
+ }))
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(
797
+ xe,
651
798
  {
652
- componentRef: c().componentRef,
653
- componentOptions: c().componentOptions,
654
- blockChildren: c().blockChildren,
655
- context: c().context,
656
- registeredComponents: c().registeredComponents,
657
- linkComponent: c().linkComponent,
658
- builderBlock: c().builderBlock,
659
- includeBlockProps: c().includeBlockProps,
660
- isInteractive: c().isInteractive
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
661
808
  }
662
- ) }) : /* @__PURE__ */ l(h, { children: n() ? /* @__PURE__ */ l(h, { children: (k = n()) == null ? void 0 : k.map((S, x) => /* @__PURE__ */ l(
663
- yt,
809
+ ) }) : /* @__PURE__ */ c(g, { children: n() ? /* @__PURE__ */ c(g, { children: (p = n()) == null ? void 0 : p.map((b, y) => /* @__PURE__ */ c(
810
+ Rt,
664
811
  {
665
- repeatContext: S.context,
666
- block: S.block,
812
+ repeatContext: b.context,
813
+ block: b.block,
667
814
  registeredComponents: e.registeredComponents,
668
815
  linkComponent: e.linkComponent
669
816
  },
670
- x
671
- )) }) : /* @__PURE__ */ l(h, { children: /* @__PURE__ */ A(
672
- ht,
817
+ y
818
+ )) }) : /* @__PURE__ */ c(g, { children: /* @__PURE__ */ W(
819
+ wt,
673
820
  {
674
821
  Wrapper: o(),
675
822
  block: i(),
676
823
  context: e.context,
677
824
  linkComponent: e.linkComponent,
678
825
  children: [
679
- /* @__PURE__ */ l(
680
- ge,
826
+ /* @__PURE__ */ c(
827
+ xe,
681
828
  {
682
- componentRef: c().componentRef,
683
- componentOptions: c().componentOptions,
684
- blockChildren: c().blockChildren,
685
- context: c().context,
686
- registeredComponents: c().registeredComponents,
687
- linkComponent: c().linkComponent,
688
- builderBlock: c().builderBlock,
689
- includeBlockProps: c().includeBlockProps,
690
- isInteractive: c().isInteractive
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
691
838
  }
692
839
  ),
693
- (g = a()) == null ? void 0 : g.map((S) => /* @__PURE__ */ l(
694
- q,
840
+ (h = r()) == null ? void 0 : h.map((b) => /* @__PURE__ */ c(
841
+ Y,
695
842
  {
696
- block: S,
843
+ block: b,
697
844
  context: s,
698
845
  registeredComponents: e.registeredComponents,
699
846
  linkComponent: e.linkComponent
700
847
  },
701
- S.id
848
+ b.id
702
849
  ))
703
850
  ]
704
851
  }
705
852
  ) }) })
706
853
  ] }) : null });
707
854
  }
708
- function St(e) {
855
+ function Et(e) {
709
856
  function t() {
710
857
  var o;
711
858
  return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
712
859
  }
713
860
  function n() {
714
- var o, r;
715
- N() && !((o = e.blocks) != null && o.length) && ((r = window.parent) == null || r.postMessage(
861
+ var o, a;
862
+ N() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
716
863
  {
717
864
  type: "builder.clickEmptyBlocks",
718
865
  data: {
@@ -724,8 +871,8 @@ function St(e) {
724
871
  ));
725
872
  }
726
873
  function i() {
727
- var o, r;
728
- N() && !((o = e.blocks) != null && o.length) && ((r = window.parent) == null || r.postMessage(
874
+ var o, a;
875
+ N() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
729
876
  {
730
877
  type: "builder.hoverEmptyBlocks",
731
878
  data: {
@@ -736,8 +883,8 @@ function St(e) {
736
883
  "*"
737
884
  ));
738
885
  }
739
- return /* @__PURE__ */ A(h, { children: [
740
- /* @__PURE__ */ l(
886
+ return /* @__PURE__ */ W(g, { children: [
887
+ /* @__PURE__ */ c(
741
888
  e.BlocksWrapper,
742
889
  {
743
890
  className: t() + " props-blocks-wrapper-4f2c12d8",
@@ -751,18 +898,18 @@ function St(e) {
751
898
  children: e.children
752
899
  }
753
900
  ),
754
- /* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-4f2c12d8 {
901
+ /* @__PURE__ */ c("style", { children: `.props-blocks-wrapper-4f2c12d8 {
755
902
  display: flex;
756
903
  flex-direction: column;
757
904
  align-items: stretch;
758
905
  }` })
759
906
  ] });
760
907
  }
761
- function Y(e) {
762
- var i, o, r;
763
- const t = se(ie), n = se(we);
764
- return /* @__PURE__ */ l(
765
- St,
908
+ function Q(e) {
909
+ var i, o, a;
910
+ const t = fe(oe), n = fe(Ee);
911
+ return /* @__PURE__ */ c(
912
+ Et,
766
913
  {
767
914
  blocks: e.blocks,
768
915
  parent: e.parent,
@@ -770,60 +917,60 @@ function Y(e) {
770
917
  styleProp: e.styleProp,
771
918
  BlocksWrapper: (i = e.context) == null ? void 0 : i.BlocksWrapper,
772
919
  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(
774
- q,
920
+ children: e.blocks ? /* @__PURE__ */ c(g, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ c(
921
+ Y,
775
922
  {
776
- block: a,
923
+ block: r,
777
924
  linkComponent: e.linkComponent,
778
925
  context: e.context || t,
779
926
  registeredComponents: e.registeredComponents || n.registeredComponents
780
927
  },
781
- a.id
928
+ r.id
782
929
  )) }) : null
783
930
  }
784
931
  );
785
932
  }
786
- function xt(e) {
787
- var B;
788
- const [t, n] = v(
933
+ function Pt(e) {
934
+ var A;
935
+ const [t, n] = k(
789
936
  () => typeof e.space == "number" ? e.space || 0 : 20
790
- ), [i, o] = v(() => e.columns || []), [r, a] = v(
937
+ ), [i, o] = k(() => e.columns || []), [a, r] = k(
791
938
  () => e.stackColumnsAt || "tablet"
792
939
  );
793
- function c(w) {
940
+ function l(w) {
794
941
  var I;
795
942
  return ((I = i[w]) == null ? void 0 : I.width) || 100 / i.length;
796
943
  }
797
944
  function s(w) {
798
945
  const I = t * (i.length - 1) / i.length;
799
- return `calc(${c(w)}% - ${I}px)`;
946
+ return `calc(${l(w)}% - ${I}px)`;
800
947
  }
801
948
  function d({
802
949
  stackedStyle: w,
803
950
  desktopStyle: I
804
951
  }) {
805
- return r === "tablet" ? w : I;
952
+ return a === "tablet" ? w : I;
806
953
  }
807
- function m({
954
+ function u({
808
955
  stackedStyle: w,
809
956
  desktopStyle: I
810
957
  }) {
811
- return r === "never" ? I : w;
958
+ return a === "never" ? I : w;
812
959
  }
813
- const [g, k] = v(
960
+ const [h, p] = k(
814
961
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
815
962
  );
816
- function S() {
963
+ function b() {
817
964
  return {
818
- "--flex-dir": g,
965
+ "--flex-dir": h,
819
966
  "--flex-dir-tablet": d({
820
- stackedStyle: g,
967
+ stackedStyle: h,
821
968
  desktopStyle: "row"
822
969
  })
823
970
  };
824
971
  }
825
- function x(w) {
826
- const I = w === 0 ? 0 : t, P = s(w), W = `${I}px`, F = "100%", L = 0;
972
+ function y(w) {
973
+ const I = w === 0 ? 0 : t, P = s(w), B = `${I}px`, L = "100%", D = 0;
827
974
  return {
828
975
  ...{
829
976
  display: "flex",
@@ -831,34 +978,34 @@ function xt(e) {
831
978
  alignItems: "stretch"
832
979
  },
833
980
  width: P,
834
- ["marginLeft"]: W,
835
- "--column-width-mobile": m({
836
- stackedStyle: F,
981
+ ["marginLeft"]: B,
982
+ "--column-width-mobile": u({
983
+ stackedStyle: L,
837
984
  desktopStyle: P
838
985
  }),
839
- "--column-margin-left-mobile": m({
840
- stackedStyle: L,
841
- desktopStyle: W
986
+ "--column-margin-left-mobile": u({
987
+ stackedStyle: D,
988
+ desktopStyle: B
842
989
  }),
843
990
  "--column-width-tablet": d({
844
- stackedStyle: F,
991
+ stackedStyle: L,
845
992
  desktopStyle: P
846
993
  }),
847
994
  "--column-margin-left-tablet": d({
848
- stackedStyle: L,
849
- desktopStyle: W
995
+ stackedStyle: D,
996
+ desktopStyle: B
850
997
  })
851
998
  };
852
999
  }
853
- function C(w) {
854
- var P, W;
855
- return Te(
856
- ((W = (P = e.builderContext.content) == null ? void 0 : P.meta) == null ? void 0 : W.breakpoints) || {}
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) || {}
857
1004
  )[w].max;
858
1005
  }
859
- function R() {
1006
+ function E() {
860
1007
  return `
861
- @media (max-width: ${C("medium")}px) {
1008
+ @media (max-width: ${v("medium")}px) {
862
1009
  .${e.builderBlock.id}-breakpoints {
863
1010
  flex-direction: var(--flex-dir-tablet);
864
1011
  align-items: stretch;
@@ -870,7 +1017,7 @@ function xt(e) {
870
1017
  }
871
1018
  }
872
1019
 
873
- @media (max-width: ${C("small")}px) {
1020
+ @media (max-width: ${v("small")}px) {
874
1021
  .${e.builderBlock.id}-breakpoints {
875
1022
  flex-direction: var(--flex-dir);
876
1023
  align-items: stretch;
@@ -883,16 +1030,16 @@ function xt(e) {
883
1030
  },
884
1031
  `;
885
1032
  }
886
- return /* @__PURE__ */ A(h, { children: [
887
- /* @__PURE__ */ A(
1033
+ return /* @__PURE__ */ W(g, { children: [
1034
+ /* @__PURE__ */ W(
888
1035
  "div",
889
1036
  {
890
1037
  className: `builder-columns ${e.builderBlock.id}-breakpoints div-6f826264`,
891
- style: S(),
1038
+ style: b(),
892
1039
  children: [
893
- /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(z, { styles: R() }) }),
894
- (B = e.columns) == null ? void 0 : B.map((w, I) => /* @__PURE__ */ l(
895
- ne,
1040
+ /* @__PURE__ */ c(g, { children: /* @__PURE__ */ c(q, { styles: E() }) }),
1041
+ (A = e.columns) == null ? void 0 : A.map((w, I) => /* @__PURE__ */ c(
1042
+ ie,
896
1043
  {
897
1044
  TagName: w.link ? e.builderLinkComponent || "a" : "div",
898
1045
  actionAttributes: {},
@@ -900,11 +1047,11 @@ function xt(e) {
900
1047
  ...w.link ? {
901
1048
  href: w.link
902
1049
  } : {},
903
- [O()]: "builder-column",
904
- style: Pe(x(I))
1050
+ [_()]: "builder-column",
1051
+ style: Ve(y(I))
905
1052
  },
906
- children: /* @__PURE__ */ l(
907
- Y,
1053
+ children: /* @__PURE__ */ c(
1054
+ Q,
908
1055
  {
909
1056
  path: `component.options.columns.${I}.blocks`,
910
1057
  parent: e.builderBlock.id,
@@ -923,60 +1070,60 @@ function xt(e) {
923
1070
  ]
924
1071
  }
925
1072
  ),
926
- /* @__PURE__ */ l("style", { children: `.div-6f826264 {
1073
+ /* @__PURE__ */ c("style", { children: `.div-6f826264 {
927
1074
  display: flex;
928
1075
  line-height: normal;
929
1076
  }` })
930
1077
  ] });
931
1078
  }
932
- function vt(e) {
933
- return /* @__PURE__ */ l("span", { children: e.children });
1079
+ function At(e) {
1080
+ return /* @__PURE__ */ c("span", { children: e.children });
934
1081
  }
935
- function be(e) {
1082
+ function pe(e) {
936
1083
  return e.replace(/http(s)?:/, "");
937
1084
  }
938
- function kt(e = "", t, n) {
1085
+ function Bt(e = "", t, n) {
939
1086
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
940
1087
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
941
1088
  }
942
- function pt(e, t) {
1089
+ function Wt(e, t) {
943
1090
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
944
1091
  return e;
945
1092
  if (t === "master")
946
- return be(e);
1093
+ return pe(e);
947
1094
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
948
1095
  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}`);
1096
+ const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
1097
+ return pe(`${i[0]}_${a}${o}`);
951
1098
  }
952
1099
  return null;
953
1100
  }
954
- function X(e) {
1101
+ function Z(e) {
955
1102
  if (!e)
956
1103
  return e;
957
1104
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
958
1105
  if (e.match(/builder\.io/)) {
959
1106
  let n = e;
960
1107
  const i = Number(e.split("?width=")[1]);
961
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${kt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1108
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Bt(e, "width", o)} ${o}w`).concat([n]).join(", ");
962
1109
  }
963
- 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;
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;
964
1111
  }
965
- function Ct(e) {
966
- var o, r, a, c;
1112
+ function Nt(e) {
1113
+ var o, a, r, l;
967
1114
  function t() {
968
- var m;
1115
+ var u;
969
1116
  const d = e.image || e.src;
970
1117
  if (!d || // We can auto add srcset for cdn.builder.io and shopify
971
1118
  // images, otherwise you can supply this prop manually
972
1119
  !(d.match(/builder\.io/) || d.match(/cdn\.shopify\.com/)))
973
1120
  return e.srcset;
974
- if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
1121
+ if (e.srcset && ((u = e.image) != null && u.includes("builder.io/api/v1/image"))) {
975
1122
  if (!e.srcset.includes(e.image.split("?")[0]))
976
- return console.debug("Removed given srcset"), X(d);
1123
+ return console.debug("Removed given srcset"), Z(d);
977
1124
  } else if (e.image && !e.srcset)
978
- return X(d);
979
- return X(d);
1125
+ return Z(d);
1126
+ return Z(d);
980
1127
  }
981
1128
  function n() {
982
1129
  var s;
@@ -992,11 +1139,11 @@ function Ct(e) {
992
1139
  };
993
1140
  return e.aspectRatio ? s : void 0;
994
1141
  }
995
- return /* @__PURE__ */ A(h, { children: [
996
- /* @__PURE__ */ A(h, { children: [
997
- /* @__PURE__ */ A("picture", { children: [
998
- n() ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) }) : null,
999
- /* @__PURE__ */ l(
1142
+ return /* @__PURE__ */ W(g, { children: [
1143
+ /* @__PURE__ */ W(g, { children: [
1144
+ /* @__PURE__ */ W("picture", { children: [
1145
+ n() ? /* @__PURE__ */ c(g, { children: /* @__PURE__ */ c("source", { type: "image/webp", srcSet: n() }) }) : null,
1146
+ /* @__PURE__ */ c(
1000
1147
  "img",
1001
1148
  {
1002
1149
  loading: "lazy",
@@ -1014,7 +1161,7 @@ function Ct(e) {
1014
1161
  }
1015
1162
  )
1016
1163
  ] }),
1017
- e.aspectRatio && !((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
1164
+ e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ c(g, { children: /* @__PURE__ */ c(
1018
1165
  "div",
1019
1166
  {
1020
1167
  className: "builder-image-sizer div-40c70c9b",
@@ -1023,10 +1170,10 @@ function Ct(e) {
1023
1170
  }
1024
1171
  }
1025
1172
  ) }) : null,
1026
- (c = (a = e.builderBlock) == null ? void 0 : a.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(h, { children: e.children }) : null,
1027
- !e.fitContent && e.children ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l("div", { className: "div-40c70c9b-2", children: e.children }) }) : 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
1028
1175
  ] }),
1029
- /* @__PURE__ */ l("style", { children: `.img-40c70c9b {
1176
+ /* @__PURE__ */ c("style", { children: `.img-40c70c9b {
1030
1177
  opacity: 1;
1031
1178
  transition: opacity 0.2s ease-in-out;
1032
1179
  }.div-40c70c9b {
@@ -1045,8 +1192,8 @@ function Ct(e) {
1045
1192
  }` })
1046
1193
  ] });
1047
1194
  }
1048
- function wt(e) {
1049
- return /* @__PURE__ */ l(
1195
+ function $t(e) {
1196
+ return /* @__PURE__ */ c(
1050
1197
  "section",
1051
1198
  {
1052
1199
  ...e.attributes,
@@ -1066,7 +1213,7 @@ function wt(e) {
1066
1213
  }
1067
1214
  );
1068
1215
  }
1069
- const It = {
1216
+ const Vt = {
1070
1217
  name: "Core:Button",
1071
1218
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1072
1219
  defaultStyles: {
@@ -1099,7 +1246,7 @@ const It = {
1099
1246
  }],
1100
1247
  static: !0,
1101
1248
  noWrap: !0
1102
- }, Tt = {
1249
+ }, Ft = {
1103
1250
  // TODO: ways to statically preprocess JSON for references, functions, etc
1104
1251
  name: "Columns",
1105
1252
  isRSC: !0,
@@ -1278,7 +1425,7 @@ const It = {
1278
1425
  });
1279
1426
  }
1280
1427
  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();
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();
1282
1429
  }
1283
1430
  }, {
1284
1431
  name: "space",
@@ -1300,7 +1447,7 @@ const It = {
1300
1447
  helperText: "When stacking columns for mobile devices, reverse the ordering",
1301
1448
  advanced: !0
1302
1449
  }]
1303
- }, Rt = {
1450
+ }, Lt = {
1304
1451
  name: "Custom Code",
1305
1452
  static: !0,
1306
1453
  requiredPermissions: ["editCode"],
@@ -1323,21 +1470,21 @@ const It = {
1323
1470
  advanced: !0
1324
1471
  }]
1325
1472
  };
1326
- function Et(e) {
1327
- const t = ee(null), [n, i] = v(() => []), [o, r] = v(() => []);
1328
- return E(() => {
1329
- var c;
1330
- if (!((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
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")
1331
1478
  return;
1332
- const a = t.current.getElementsByTagName("script");
1333
- for (let s = 0; s < a.length; s++) {
1334
- const d = a[s];
1479
+ const r = t.current.getElementsByTagName("script");
1480
+ for (let s = 0; s < r.length; s++) {
1481
+ const d = r[s];
1335
1482
  if (d.src) {
1336
1483
  if (n.includes(d.src))
1337
1484
  continue;
1338
1485
  n.push(d.src);
1339
- const m = document.createElement("script");
1340
- m.async = !0, m.src = d.src, document.head.appendChild(m);
1486
+ const u = document.createElement("script");
1487
+ u.async = !0, u.src = d.src, document.head.appendChild(u);
1341
1488
  } else if (!d.type || [
1342
1489
  "text/javascript",
1343
1490
  "application/javascript",
@@ -1347,12 +1494,12 @@ function Et(e) {
1347
1494
  continue;
1348
1495
  try {
1349
1496
  o.push(d.innerText), new Function(d.innerText)();
1350
- } catch (m) {
1351
- console.warn("`CustomCode`: Error running script:", m);
1497
+ } catch (u) {
1498
+ console.warn("`CustomCode`: Error running script:", u);
1352
1499
  }
1353
1500
  }
1354
1501
  }
1355
- }, []), /* @__PURE__ */ l(
1502
+ }, []), /* @__PURE__ */ c(
1356
1503
  "div",
1357
1504
  {
1358
1505
  ref: t,
@@ -1361,7 +1508,7 @@ function Et(e) {
1361
1508
  }
1362
1509
  );
1363
1510
  }
1364
- const Pt = {
1511
+ const Ot = {
1365
1512
  name: "Embed",
1366
1513
  static: !0,
1367
1514
  inputs: [{
@@ -1386,30 +1533,30 @@ const Pt = {
1386
1533
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1387
1534
  hideFromUI: !0
1388
1535
  }]
1389
- }, Bt = ["text/javascript", "application/javascript", "application/ecmascript"], Wt = (e) => Bt.includes(e.type);
1390
- function At(e) {
1391
- const t = ee(null), [n, i] = v(() => []), [o, r] = v(() => []), [a, c] = v(() => !1);
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);
1392
1539
  function s() {
1393
1540
  if (!t.current || !t.current.getElementsByTagName)
1394
1541
  return;
1395
1542
  const d = t.current.getElementsByTagName("script");
1396
- for (let m = 0; m < d.length; m++) {
1397
- const g = d[m];
1398
- if (g.src && !n.includes(g.src)) {
1399
- n.push(g.src);
1400
- const k = document.createElement("script");
1401
- k.async = !0, k.src = g.src, document.head.appendChild(k);
1402
- } else if (Wt(g) && !o.includes(g.innerText))
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))
1403
1550
  try {
1404
- o.push(g.innerText), new Function(g.innerText)();
1405
- } catch (k) {
1406
- console.warn("`Embed`: Error running script:", k);
1551
+ o.push(h.innerText), new Function(h.innerText)();
1552
+ } catch (p) {
1553
+ console.warn("`Embed`: Error running script:", p);
1407
1554
  }
1408
1555
  }
1409
1556
  }
1410
- return E(() => {
1411
- t.current && !a && (c(!0), s());
1412
- }, [t.current, a]), /* @__PURE__ */ l(
1557
+ return R(() => {
1558
+ t.current && !r && (l(!0), s());
1559
+ }, [t.current, r]), /* @__PURE__ */ c(
1413
1560
  "div",
1414
1561
  {
1415
1562
  className: "builder-embed",
@@ -1418,13 +1565,13 @@ function At(e) {
1418
1565
  }
1419
1566
  );
1420
1567
  }
1421
- const Nt = {
1568
+ const Ht = {
1422
1569
  name: "Fragment",
1423
1570
  static: !0,
1424
1571
  hidden: !0,
1425
1572
  canHaveChildren: !0,
1426
1573
  noWrap: !0
1427
- }, Vt = {
1574
+ }, Mt = {
1428
1575
  name: "Image",
1429
1576
  static: !0,
1430
1577
  image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
@@ -1444,29 +1591,29 @@ const Nt = {
1444
1591
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1445
1592
  onChange: (e) => {
1446
1593
  e.delete("srcset"), e.delete("noWebp");
1447
- function n(a, c = 6e4) {
1594
+ function n(r, l = 6e4) {
1448
1595
  return new Promise((s, d) => {
1449
- const m = document.createElement("img");
1450
- let g = !1;
1451
- m.onload = () => {
1452
- g = !0, s(m);
1453
- }, m.addEventListener("error", (k) => {
1454
- console.warn("Image load failed", k.error), d(k.error);
1455
- }), m.src = a, setTimeout(() => {
1456
- g || d(new Error("Image load timed out"));
1457
- }, c);
1596
+ const u = document.createElement("img");
1597
+ let h = !1;
1598
+ u.onload = () => {
1599
+ h = !0, s(u);
1600
+ }, u.addEventListener("error", (p) => {
1601
+ console.warn("Image load failed", p.error), d(p.error);
1602
+ }), u.src = r, setTimeout(() => {
1603
+ h || d(new Error("Image load timed out"));
1604
+ }, l);
1458
1605
  });
1459
1606
  }
1460
- function i(a) {
1461
- return Math.round(a * 1e3) / 1e3;
1607
+ function i(r) {
1608
+ return Math.round(r * 1e3) / 1e3;
1462
1609
  }
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) => {
1468
- 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));
1610
+ const o = e.get("image"), a = e.get("aspectRatio");
1611
+ if (fetch(o).then((r) => r.blob()).then((r) => {
1612
+ r.type.includes("svg") && e.set("noWebp", !0);
1613
+ }), o && (!a || a === 0.7041))
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));
1470
1617
  });
1471
1618
  }
1472
1619
  }, {
@@ -1524,7 +1671,7 @@ const Nt = {
1524
1671
  advanced: !0,
1525
1672
  defaultValue: 0.7041
1526
1673
  }]
1527
- }, $t = {
1674
+ }, Kt = {
1528
1675
  // friendlyName?
1529
1676
  name: "Raw:Img",
1530
1677
  hideFromInsertMenu: !0,
@@ -1539,8 +1686,8 @@ const Nt = {
1539
1686
  noWrap: !0,
1540
1687
  static: !0
1541
1688
  };
1542
- function Ft(e) {
1543
- return /* @__PURE__ */ l(
1689
+ function zt(e) {
1690
+ return /* @__PURE__ */ c(
1544
1691
  "img",
1545
1692
  {
1546
1693
  style: {
@@ -1554,7 +1701,7 @@ function Ft(e) {
1554
1701
  N() && e.imgSrc || "default-key"
1555
1702
  );
1556
1703
  }
1557
- const Lt = {
1704
+ const qt = {
1558
1705
  name: "Core:Section",
1559
1706
  static: !0,
1560
1707
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1593,7 +1740,7 @@ const Lt = {
1593
1740
  }
1594
1741
  }
1595
1742
  }]
1596
- }, _t = {
1743
+ }, Yt = {
1597
1744
  name: "Slot",
1598
1745
  isRSC: !0,
1599
1746
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1607,9 +1754,9 @@ const Lt = {
1607
1754
  defaultValue: "children"
1608
1755
  }]
1609
1756
  };
1610
- function Ot(e) {
1757
+ function Qt(e) {
1611
1758
  var t, n, i;
1612
- return /* @__PURE__ */ l(
1759
+ return /* @__PURE__ */ c(
1613
1760
  "div",
1614
1761
  {
1615
1762
  style: {
@@ -1618,8 +1765,8 @@ function Ot(e) {
1618
1765
  ...!((t = e.builderContext.context) != null && t.symbolId) && {
1619
1766
  "builder-slot": e.name
1620
1767
  },
1621
- children: /* @__PURE__ */ l(
1622
- Y,
1768
+ children: /* @__PURE__ */ c(
1769
+ Q,
1623
1770
  {
1624
1771
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
1625
1772
  path: `symbol.data.${e.name}`,
@@ -1630,7 +1777,7 @@ function Ot(e) {
1630
1777
  }
1631
1778
  );
1632
1779
  }
1633
- const jt = {
1780
+ const Gt = {
1634
1781
  name: "Symbol",
1635
1782
  noWrap: !0,
1636
1783
  static: !0,
@@ -1663,7 +1810,7 @@ const jt = {
1663
1810
  hideFromUI: !0,
1664
1811
  type: "boolean"
1665
1812
  }]
1666
- }, Dt = {
1813
+ }, Jt = {
1667
1814
  name: "Text",
1668
1815
  static: !0,
1669
1816
  isRSC: !0,
@@ -1682,9 +1829,9 @@ const jt = {
1682
1829
  textAlign: "center"
1683
1830
  }
1684
1831
  };
1685
- function Ut(e) {
1832
+ function Xt(e) {
1686
1833
  var t;
1687
- return /* @__PURE__ */ l(
1834
+ return /* @__PURE__ */ c(
1688
1835
  "div",
1689
1836
  {
1690
1837
  className: "builder-text",
@@ -1695,7 +1842,7 @@ function Ut(e) {
1695
1842
  }
1696
1843
  );
1697
1844
  }
1698
- const Mt = {
1845
+ const Zt = {
1699
1846
  name: "Video",
1700
1847
  canHaveChildren: !0,
1701
1848
  defaultStyles: {
@@ -1777,8 +1924,8 @@ const Mt = {
1777
1924
  advanced: !0
1778
1925
  }]
1779
1926
  };
1780
- function Ht(e) {
1781
- var i, o, r, a, c, s, d;
1927
+ function en(e) {
1928
+ var i, o, a, r, l, s, d;
1782
1929
  function t() {
1783
1930
  return {
1784
1931
  ...e.autoPlay === !0 ? {
@@ -1803,14 +1950,14 @@ function Ht(e) {
1803
1950
  ...t()
1804
1951
  };
1805
1952
  }
1806
- return /* @__PURE__ */ A(
1953
+ return /* @__PURE__ */ W(
1807
1954
  "div",
1808
1955
  {
1809
1956
  style: {
1810
1957
  position: "relative"
1811
1958
  },
1812
1959
  children: [
1813
- /* @__PURE__ */ l(
1960
+ /* @__PURE__ */ c(
1814
1961
  "video",
1815
1962
  {
1816
1963
  className: "builder-video",
@@ -1832,10 +1979,10 @@ function Ht(e) {
1832
1979
  },
1833
1980
  src: e.video || "no-src",
1834
1981
  poster: e.posterImage,
1835
- children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
1982
+ children: e.lazyLoad ? null : /* @__PURE__ */ c("source", { type: "video/mp4", src: e.video })
1836
1983
  }
1837
1984
  ),
1838
- e.aspectRatio && !(e.fitContent && ((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length)) ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
1985
+ e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ c(g, { children: /* @__PURE__ */ c(
1839
1986
  "div",
1840
1987
  {
1841
1988
  style: {
@@ -1846,7 +1993,7 @@ function Ht(e) {
1846
1993
  }
1847
1994
  }
1848
1995
  ) }) : null,
1849
- (c = (a = e.builderBlock) == null ? void 0 : a.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
1996
+ (l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ c(g, { children: /* @__PURE__ */ c(
1850
1997
  "div",
1851
1998
  {
1852
1999
  style: {
@@ -1857,7 +2004,7 @@ function Ht(e) {
1857
2004
  children: e.children
1858
2005
  }
1859
2006
  ) }) : null,
1860
- (d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
2007
+ (d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ c(g, { children: /* @__PURE__ */ c(
1861
2008
  "div",
1862
2009
  {
1863
2010
  style: {
@@ -1878,43 +2025,43 @@ function Ht(e) {
1878
2025
  }
1879
2026
  );
1880
2027
  }
1881
- const ye = () => [{
1882
- component: Ke,
1883
- ...It
2028
+ const ve = () => [{
2029
+ component: Je,
2030
+ ...Vt
1884
2031
  }, {
1885
- component: xt,
1886
- ...Tt
2032
+ component: Pt,
2033
+ ...Ft
1887
2034
  }, {
1888
- component: Et,
1889
- ...Rt
2035
+ component: Dt,
2036
+ ...Lt
1890
2037
  }, {
1891
- component: At,
1892
- ...Pt
2038
+ component: Ut,
2039
+ ...Ot
1893
2040
  }, {
1894
- component: vt,
1895
- ...Nt
2041
+ component: At,
2042
+ ...Ht
1896
2043
  }, {
1897
- component: Ct,
1898
- ...Vt
2044
+ component: Nt,
2045
+ ...Mt
1899
2046
  }, {
1900
- component: Ft,
1901
- ...$t
2047
+ component: zt,
2048
+ ...Kt
1902
2049
  }, {
1903
- component: wt,
1904
- ...Lt
2050
+ component: $t,
2051
+ ...qt
1905
2052
  }, {
1906
- component: hn,
1907
- ...jt
2053
+ component: wn,
2054
+ ...Gt
1908
2055
  }, {
1909
- component: Ut,
1910
- ...Dt
2056
+ component: Xt,
2057
+ ...Jt
1911
2058
  }, {
1912
- component: Ht,
1913
- ...Mt
2059
+ component: en,
2060
+ ...Zt
1914
2061
  }, {
1915
- component: Ot,
1916
- ..._t
1917
- }], Kt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2062
+ component: Qt,
2063
+ ...Yt
2064
+ }], tn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
1918
2065
  function getAndSetVariantId() {
1919
2066
  function setCookie(name, value, days) {
1920
2067
  let expires = '';
@@ -1970,7 +2117,7 @@ const ye = () => [{
1970
2117
  }).join('');
1971
2118
  styleEl.innerHTML = newStyleStr;
1972
2119
  }
1973
- }`, zt = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2120
+ }`, nn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
1974
2121
  if (!navigator.cookieEnabled) {
1975
2122
  return;
1976
2123
  }
@@ -2004,27 +2151,27 @@ const ye = () => [{
2004
2151
  thisScriptEl?.remove();
2005
2152
  }
2006
2153
  return;
2007
- }`, Be = "builderIoAbTest", We = "builderIoRenderContent", U = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2154
+ }`, Fe = "builderIoAbTest", Le = "builderIoRenderContent", H = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2008
2155
  ...t,
2009
2156
  testVariationId: t.id,
2010
2157
  id: e == null ? void 0 : e.id
2011
- })), qt = ({
2158
+ })), on = ({
2012
2159
  canTrack: e,
2013
2160
  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}
2017
- `, Gt = (e, t) => `
2018
- window.${Be}(
2019
- "${t}",${JSON.stringify(e)}, ${Ae}
2020
- )`, Jt = ({
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}
2164
+ `, ln = (e, t) => `
2165
+ window.${Fe}(
2166
+ "${t}",${JSON.stringify(e)}, ${De}
2167
+ )`, cn = ({
2021
2168
  contentId: e,
2022
2169
  variationId: t
2023
- }) => `window.${We}(
2024
- "${t}", "${e}", ${Ae}
2170
+ }) => `window.${Le}(
2171
+ "${t}", "${e}", ${De}
2025
2172
  )`;
2026
- function Z(e) {
2027
- return /* @__PURE__ */ l(
2173
+ function ee(e) {
2174
+ return /* @__PURE__ */ c(
2028
2175
  "script",
2029
2176
  {
2030
2177
  dangerouslySetInnerHTML: { __html: e.scriptStr },
@@ -2032,15 +2179,15 @@ function Z(e) {
2032
2179
  }
2033
2180
  );
2034
2181
  }
2035
- const Xt = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
2036
- function Ne(e, t) {
2182
+ const sn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
2183
+ function Oe(e, t) {
2037
2184
  const n = new URL(t.origin), i = n.hostname;
2038
- return (e || Xt).findIndex((o) => o.startsWith("*.") ? i.endsWith(o.slice(1)) : o === i) > -1;
2185
+ return (e || sn).findIndex((o) => o.startsWith("*.") ? i.endsWith(o.slice(1)) : o === i) > -1;
2039
2186
  }
2040
- function Se(e) {
2187
+ function ke(e) {
2041
2188
  return Math.round(e * 1e3) / 1e3;
2042
2189
  }
2043
- const Zt = (e, t, n = !0) => {
2190
+ const dn = (e, t, n = !0) => {
2044
2191
  if (!(e instanceof HTMLElement))
2045
2192
  return null;
2046
2193
  let i = n ? e : e.parentElement;
@@ -2051,36 +2198,36 @@ const Zt = (e, t, n = !0) => {
2051
2198
  return i;
2052
2199
  } while (i = i.parentElement);
2053
2200
  return null;
2054
- }, en = (e) => Zt(e, (t) => {
2201
+ }, un = (e) => dn(e, (t) => {
2055
2202
  const n = t.getAttribute("builder-id") || t.id;
2056
2203
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
2057
- }), xe = ({
2204
+ }), Ce = ({
2058
2205
  event: e,
2059
2206
  target: t
2060
2207
  }) => {
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);
2208
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = ke(i / n.width), r = ke(o / n.height);
2062
2209
  return {
2063
- x: r,
2064
- y: a
2210
+ x: a,
2211
+ y: r
2065
2212
  };
2066
- }, tn = (e) => {
2067
- const t = e.target, n = t && en(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
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);
2068
2215
  return {
2069
2216
  targetBuilderElement: i || void 0,
2070
2217
  metadata: {
2071
- targetOffset: t ? xe({
2218
+ targetOffset: t ? Ce({
2072
2219
  event: e,
2073
2220
  target: t
2074
2221
  }) : void 0,
2075
- builderTargetOffset: n ? xe({
2222
+ builderTargetOffset: n ? Ce({
2076
2223
  event: e,
2077
2224
  target: n
2078
2225
  }) : void 0,
2079
2226
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
2080
2227
  }
2081
2228
  };
2082
- }, nn = "0.12.5", on = () => {
2083
- _e("insertMenu", {
2229
+ }, fn = "0.12.7", hn = () => {
2230
+ Me("insertMenu", {
2084
2231
  name: "_default",
2085
2232
  default: !0,
2086
2233
  items: [{
@@ -2102,14 +2249,14 @@ const Zt = (e, t, n = !0) => {
2102
2249
  }]
2103
2250
  });
2104
2251
  };
2105
- let ve = !1;
2106
- const an = (e = {}) => {
2252
+ let we = !1;
2253
+ const gn = (e = {}) => {
2107
2254
  var t, n;
2108
- ve || (ve = !0, V() && ((t = window.parent) == null || t.postMessage({
2255
+ we || (we = !0, V() && ((t = window.parent) == null || t.postMessage({
2109
2256
  type: "builder.sdkInfo",
2110
2257
  data: {
2111
- target: $,
2112
- version: nn,
2258
+ target: F,
2259
+ version: fn,
2113
2260
  supportsPatchUpdates: !1,
2114
2261
  // Supports builder-model="..." attribute which is needed to
2115
2262
  // scope our '+ add block' button styling
@@ -2122,8 +2269,8 @@ const an = (e = {}) => {
2122
2269
  options: e
2123
2270
  }
2124
2271
  }, "*"), window.addEventListener("message", (i) => {
2125
- var r, a;
2126
- if (!Ne(e.trustedHosts, i))
2272
+ var a, r;
2273
+ if (!Oe(e.trustedHosts, i))
2127
2274
  return;
2128
2275
  const {
2129
2276
  data: o
@@ -2131,32 +2278,32 @@ const an = (e = {}) => {
2131
2278
  if (o != null && o.type)
2132
2279
  switch (o.type) {
2133
2280
  case "builder.evaluate": {
2134
- const c = o.data.text, s = o.data.arguments || [], d = o.data.id, m = new Function(c);
2135
- let g, k = null;
2281
+ const l = o.data.text, s = o.data.arguments || [], d = o.data.id, u = new Function(l);
2282
+ let h, p = null;
2136
2283
  try {
2137
- g = m.apply(null, s);
2138
- } catch (S) {
2139
- k = S;
2284
+ h = u.apply(null, s);
2285
+ } catch (b) {
2286
+ p = b;
2140
2287
  }
2141
- k ? (r = window.parent) == null || r.postMessage({
2288
+ p ? (a = window.parent) == null || a.postMessage({
2142
2289
  type: "builder.evaluateError",
2143
2290
  data: {
2144
2291
  id: d,
2145
- error: k.message
2292
+ error: p.message
2146
2293
  }
2147
- }, "*") : g && typeof g.then == "function" ? g.then((S) => {
2148
- var x;
2149
- (x = window.parent) == null || x.postMessage({
2294
+ }, "*") : h && typeof h.then == "function" ? h.then((b) => {
2295
+ var y;
2296
+ (y = window.parent) == null || y.postMessage({
2150
2297
  type: "builder.evaluateResult",
2151
2298
  data: {
2152
2299
  id: d,
2153
- result: S
2300
+ result: b
2154
2301
  }
2155
2302
  }, "*");
2156
- }).catch(console.error) : (a = window.parent) == null || a.postMessage({
2303
+ }).catch(console.error) : (r = window.parent) == null || r.postMessage({
2157
2304
  type: "builder.evaluateResult",
2158
2305
  data: {
2159
- result: g,
2306
+ result: h,
2160
2307
  id: d
2161
2308
  }
2162
2309
  }, "*");
@@ -2165,105 +2312,109 @@ const an = (e = {}) => {
2165
2312
  }
2166
2313
  })));
2167
2314
  };
2168
- function rn(e) {
2169
- var L, Q, G, ae, re, le, ce;
2170
- const t = ee(null), [n, i] = v(() => 0);
2171
- v(() => !0);
2172
- function o(u) {
2173
- var b, y;
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);
2319
+ function o(m) {
2320
+ var S, x;
2174
2321
  const f = {
2175
2322
  ...e.builderContextSignal.rootState,
2176
- ...u
2323
+ ...m
2177
2324
  };
2178
- e.builderContextSignal.rootSetState ? (y = (b = e.builderContextSignal).rootSetState) == null || y.call(b, f) : e.setBuilderContextSignal((p) => ({
2179
- ...p,
2325
+ e.builderContextSignal.rootSetState ? (x = (S = e.builderContextSignal).rootSetState) == null || x.call(S, f) : e.setBuilderContextSignal((C) => ({
2326
+ ...C,
2180
2327
  rootState: f
2181
2328
  }));
2182
2329
  }
2183
- function r(u) {
2184
- var b, y, p, T, D;
2330
+ function a(m) {
2331
+ var S, x, C, T, U;
2185
2332
  const f = {
2186
2333
  ...e.builderContextSignal.content,
2187
- ...u,
2334
+ ...m,
2188
2335
  data: {
2189
- ...(b = e.builderContextSignal.content) == null ? void 0 : b.data,
2190
- ...u == null ? void 0 : u.data
2336
+ ...(S = e.builderContextSignal.content) == null ? void 0 : S.data,
2337
+ ...m == null ? void 0 : m.data
2191
2338
  },
2192
2339
  meta: {
2193
- ...(y = e.builderContextSignal.content) == null ? void 0 : y.meta,
2194
- ...u == null ? void 0 : u.meta,
2195
- 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)
2340
+ ...(x = e.builderContextSignal.content) == null ? void 0 : x.meta,
2341
+ ...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)
2196
2343
  }
2197
2344
  };
2198
- e.setBuilderContextSignal(($e) => ({
2199
- ...$e,
2345
+ e.setBuilderContextSignal((je) => ({
2346
+ ...je,
2200
2347
  content: f
2201
2348
  }));
2202
2349
  }
2203
- v(() => 0);
2204
- const [a, c] = v(
2350
+ k(() => 0);
2351
+ const [r, l] = k(
2205
2352
  () => !1
2206
- ), [s, d] = v(
2353
+ ), [s, d] = k(
2207
2354
  () => e.contentWrapper || "div"
2208
2355
  );
2209
- function m(u) {
2210
- var b;
2211
- if (!Ne(e.trustedHosts, u))
2356
+ function u(m) {
2357
+ var S;
2358
+ if (!Oe(e.trustedHosts, m))
2212
2359
  return;
2213
- const { data: f } = u;
2360
+ const { data: f } = m;
2214
2361
  if (f)
2215
2362
  switch (f.type) {
2216
2363
  case "builder.configureSdk": {
2217
- const y = f.data, { breakpoints: p, contentId: T } = y;
2218
- if (!T || T !== ((b = e.builderContextSignal.content) == null ? void 0 : b.id))
2364
+ const x = f.data, { breakpoints: C, contentId: T } = x;
2365
+ if (!T || T !== ((S = e.builderContextSignal.content) == null ? void 0 : S.id))
2219
2366
  return;
2220
- p && r({
2367
+ C && a({
2221
2368
  meta: {
2222
- breakpoints: p
2369
+ breakpoints: C
2223
2370
  }
2224
2371
  }), i(n + 1);
2225
2372
  break;
2226
2373
  }
2374
+ case "builder.triggerAnimation": {
2375
+ Ae(f.data);
2376
+ break;
2377
+ }
2227
2378
  case "builder.contentUpdate": {
2228
- 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));
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));
2230
2381
  break;
2231
2382
  }
2232
2383
  }
2233
2384
  }
2234
- function g() {
2235
- var f, b;
2236
- const u = (b = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : b.jsCode;
2237
- u && j({
2238
- code: u,
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;
2388
+ m && j({
2389
+ code: m,
2239
2390
  context: e.context || {},
2240
2391
  localState: void 0,
2241
2392
  rootState: e.builderContextSignal.rootState,
2242
2393
  rootSetState: e.builderContextSignal.rootSetState
2243
2394
  });
2244
2395
  }
2245
- const [k, S] = v(() => ({})), [x, C] = v(() => !1);
2246
- function R(u) {
2247
- var f, b;
2396
+ const [p, b] = k(() => ({})), [y, v] = k(() => !1);
2397
+ function E(m) {
2398
+ var f, S;
2248
2399
  if (e.builderContextSignal.content) {
2249
- const y = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, p = (b = e.builderContextSignal.content) == null ? void 0 : b.id;
2250
- de({
2400
+ const x = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, C = (S = e.builderContextSignal.content) == null ? void 0 : S.id;
2401
+ he({
2251
2402
  type: "click",
2252
- canTrack: H(e.canTrack),
2253
- contentId: p,
2403
+ canTrack: K(e.canTrack),
2404
+ contentId: C,
2254
2405
  apiKey: e.apiKey,
2255
- variationId: y !== p ? y : void 0,
2256
- ...tn(u),
2257
- unique: !x
2406
+ variationId: x !== C ? x : void 0,
2407
+ ...mn(m),
2408
+ unique: !y
2258
2409
  });
2259
2410
  }
2260
- x || C(!0);
2411
+ y || v(!0);
2261
2412
  }
2262
- function B(u) {
2263
- return u.replace(
2413
+ function A(m) {
2414
+ return m.replace(
2264
2415
  /{{([^}]+)}}/g,
2265
- (f, b) => j({
2266
- code: b,
2416
+ (f, S) => j({
2417
+ code: S,
2267
2418
  context: e.context || {},
2268
2419
  localState: void 0,
2269
2420
  rootState: e.builderContextSignal.rootState,
@@ -2271,27 +2422,27 @@ function rn(e) {
2271
2422
  })
2272
2423
  );
2273
2424
  }
2274
- function w({ url: u, key: f }) {
2275
- De(u).then((b) => b.json()).then((b) => {
2276
- var p, T;
2277
- const y = {
2425
+ function w({ url: m, key: f }) {
2426
+ qe(m).then((S) => S.json()).then((S) => {
2427
+ var C, T;
2428
+ const x = {
2278
2429
  ...e.builderContextSignal.rootState,
2279
- [f]: b
2430
+ [f]: S
2280
2431
  };
2281
- (T = (p = e.builderContextSignal).rootSetState) == null || T.call(p, y), k[f] = !0;
2282
- }).catch((b) => {
2283
- console.error("error fetching dynamic data", u, b);
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);
2284
2435
  });
2285
2436
  }
2286
2437
  function I() {
2287
- var f, b, y;
2288
- const u = (y = (b = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : b.httpRequests) != null ? y : {};
2289
- Object.entries(u).forEach(([p, T]) => {
2290
- if (T && (!k[p] || N())) {
2291
- const D = B(T);
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);
2292
2443
  w({
2293
- url: D,
2294
- key: p
2444
+ url: U,
2445
+ key: C
2295
2446
  });
2296
2447
  }
2297
2448
  });
@@ -2302,7 +2453,7 @@ function rn(e) {
2302
2453
  "builder:component:stateChange",
2303
2454
  {
2304
2455
  detail: {
2305
- state: te(e.builderContextSignal.rootState),
2456
+ state: ne(e.builderContextSignal.rootState),
2306
2457
  ref: {
2307
2458
  name: e.model
2308
2459
  }
@@ -2311,8 +2462,8 @@ function rn(e) {
2311
2462
  )
2312
2463
  );
2313
2464
  }
2314
- function W(u) {
2315
- i(n + 1), window.addEventListener("message", m), on(), an({
2465
+ function B(m) {
2466
+ i(n + 1), window.addEventListener("message", u), hn(), gn({
2316
2467
  ...e.locale ? {
2317
2468
  locale: e.locale
2318
2469
  } : {},
@@ -2328,113 +2479,110 @@ function rn(e) {
2328
2479
  }), Object.values(
2329
2480
  e.builderContextSignal.componentInfos
2330
2481
  ).forEach((f) => {
2331
- var y;
2332
- const b = je(f);
2333
- (y = window.parent) == null || y.postMessage(b, "*");
2482
+ var x;
2483
+ const S = ze(f);
2484
+ (x = window.parent) == null || x.postMessage(S, "*");
2334
2485
  }), window.addEventListener(
2335
2486
  "builder:component:stateChangeListenerActivated",
2336
2487
  P
2337
2488
  );
2338
2489
  }
2339
- function F(u) {
2340
- const f = new URL(location.href).searchParams, b = f.get("builder.preview"), y = f.get(
2341
- `builder.preview.${b}`
2342
- ), p = f.get("apiKey") || f.get("builder.space");
2343
- b === e.model && p === e.apiKey && (!e.content || y === e.content.id) && Ce({
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({
2344
2495
  model: e.model,
2345
2496
  apiKey: e.apiKey,
2346
2497
  apiVersion: e.builderContextSignal.apiVersion
2347
2498
  }).then((T) => {
2348
- T && r(T);
2499
+ T && a(T);
2349
2500
  });
2350
2501
  }
2351
- return E(() => {
2352
- var u;
2353
- return (u = t.current) == null || u.addEventListener(
2502
+ return R(() => {
2503
+ var m;
2504
+ return (m = t.current) == null || m.addEventListener(
2354
2505
  "initeditingbldr",
2355
- W
2506
+ B
2356
2507
  ), () => {
2357
2508
  var f;
2358
2509
  return (f = t.current) == null ? void 0 : f.removeEventListener(
2359
2510
  "initeditingbldr",
2360
- W
2511
+ B
2361
2512
  );
2362
2513
  };
2363
- }, []), E(() => {
2364
- var u;
2365
- return (u = t.current) == null || u.addEventListener(
2514
+ }, []), R(() => {
2515
+ var m;
2516
+ return (m = t.current) == null || m.addEventListener(
2366
2517
  "initpreviewingbldr",
2367
- F
2518
+ L
2368
2519
  ), () => {
2369
2520
  var f;
2370
2521
  return (f = t.current) == null ? void 0 : f.removeEventListener(
2371
2522
  "initpreviewingbldr",
2372
- F
2523
+ L
2373
2524
  );
2374
2525
  };
2375
- }, []), E(() => {
2376
- var u, f;
2526
+ }, []), R(() => {
2527
+ var m, f;
2377
2528
  if (V()) {
2378
- if (N() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && H(e.canTrack)) {
2379
- const y = (u = e.builderContextSignal.content) == null ? void 0 : u.testVariationId, p = (f = e.builderContextSignal.content) == null ? void 0 : f.id, T = e.apiKey;
2380
- de({
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;
2531
+ he({
2381
2532
  type: "impression",
2382
2533
  canTrack: !0,
2383
- contentId: p,
2534
+ contentId: C,
2384
2535
  apiKey: T,
2385
- variationId: y !== p ? y : void 0
2536
+ variationId: x !== C ? x : void 0
2386
2537
  });
2387
2538
  }
2388
- Oe() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
2539
+ Ke() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
2389
2540
  }
2390
- }, []), E(() => {
2391
- e.apiKey || _.error(
2541
+ }, []), R(() => {
2542
+ e.apiKey || O.error(
2392
2543
  "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
2393
- ), g(), I(), P();
2394
- }, []), E(() => {
2395
- e.content && r(e.content);
2396
- }, [e.content]), E(() => {
2397
- }, [a]), E(() => {
2398
- g();
2399
- }, [
2400
- (Q = (L = e.builderContextSignal.content) == null ? void 0 : L.data) == null ? void 0 : Q.jsCode,
2401
- e.builderContextSignal.rootState
2402
- ]), E(() => {
2544
+ ), h(), I(), P();
2545
+ }, []), R(() => {
2546
+ 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(() => {
2403
2551
  I();
2404
- }, [(ae = (G = e.builderContextSignal.content) == null ? void 0 : G.data) == null ? void 0 : ae.httpRequests]), E(() => {
2552
+ }, [(se = (J = e.builderContextSignal.content) == null ? void 0 : J.data) == null ? void 0 : se.httpRequests]), R(() => {
2405
2553
  P();
2406
- }, [e.builderContextSignal.rootState]), E(() => {
2554
+ }, [e.builderContextSignal.rootState]), R(() => {
2407
2555
  e.data && o(e.data);
2408
- }, [e.data]), E(() => {
2556
+ }, [e.data]), R(() => {
2409
2557
  e.locale && o({
2410
2558
  locale: e.locale
2411
2559
  });
2412
- }, [e.locale]), E(() => () => {
2413
- V() && (window.removeEventListener("message", m), window.removeEventListener(
2560
+ }, [e.locale]), R(() => () => {
2561
+ V() && (window.removeEventListener("message", u), window.removeEventListener(
2414
2562
  "builder:component:stateChangeListenerActivated",
2415
2563
  P
2416
2564
  ));
2417
- }, []), /* @__PURE__ */ l(ie.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ Fe(
2565
+ }, []), /* @__PURE__ */ c(oe.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ c(g, { children: /* @__PURE__ */ Ue(
2418
2566
  s,
2419
2567
  {
2420
2568
  key: n,
2421
2569
  ref: t,
2422
- onClick: (u) => R(u),
2423
- "builder-content-id": (re = e.builderContextSignal.content) == null ? void 0 : re.id,
2570
+ onClick: (m) => E(m),
2571
+ "builder-content-id": (de = e.builderContextSignal.content) == null ? void 0 : de.id,
2424
2572
  "builder-model": e.model,
2425
2573
  ...e.showContent ? {} : {
2426
2574
  hidden: !0,
2427
2575
  "aria-hidden": !0
2428
2576
  },
2429
2577
  ...e.contentWrapperProps,
2430
- className: `variant-${((le = e.content) == null ? void 0 : le.testVariationId) || ((ce = e.content) == null ? void 0 : ce.id)}`
2578
+ className: `variant-${((ue = e.content) == null ? void 0 : ue.testVariationId) || ((me = e.content) == null ? void 0 : me.id)}`
2431
2579
  },
2432
2580
  e.children
2433
2581
  ) }) : null });
2434
2582
  }
2435
- 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;
2583
+ const yn = (e) => {
2584
+ var a, r;
2585
+ 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
2586
  let o = "";
2439
2587
  if (i && t && n && (o += `
2440
2588
  @font-face {
@@ -2444,37 +2592,37 @@ font-display: fallback;
2444
2592
  font-weight: 400;
2445
2593
  }
2446
2594
  `.trim()), e.files)
2447
- for (const c in e.files) {
2448
- if (!(String(Number(c)) === c))
2595
+ for (const l in e.files) {
2596
+ if (!(String(Number(l)) === l))
2449
2597
  continue;
2450
- const d = e.files[c];
2598
+ const d = e.files[l];
2451
2599
  d && d !== i && (o += `
2452
2600
  @font-face {
2453
2601
  font-family: "${t}";
2454
2602
  src: url('${d}') format('woff2');
2455
2603
  font-display: fallback;
2456
- font-weight: ${c};
2604
+ font-weight: ${l};
2457
2605
  }
2458
2606
  `.trim());
2459
2607
  }
2460
2608
  return o;
2461
- }, cn = ({
2609
+ }, Sn = ({
2462
2610
  customFonts: e
2463
2611
  }) => {
2464
2612
  var t;
2465
- return ((t = e == null ? void 0 : e.map((n) => ln(n))) == null ? void 0 : t.join(" ")) || "";
2466
- }, sn = ({
2613
+ return ((t = e == null ? void 0 : e.map((n) => yn(n))) == null ? void 0 : t.join(" ")) || "";
2614
+ }, xn = ({
2467
2615
  cssCode: e,
2468
2616
  contentId: t
2469
2617
  }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
2470
- function dn(e) {
2471
- const [t, n] = v(
2618
+ function pn(e) {
2619
+ const [t, n] = k(
2472
2620
  () => `
2473
- ${sn({
2621
+ ${xn({
2474
2622
  cssCode: e.cssCode,
2475
2623
  contentId: e.contentId
2476
2624
  })}
2477
- ${cn({
2625
+ ${Sn({
2478
2626
  customFonts: e.customFonts
2479
2627
  })}
2480
2628
 
@@ -2496,16 +2644,16 @@ ${cn({
2496
2644
  }
2497
2645
  `.trim()
2498
2646
  );
2499
- return /* @__PURE__ */ l(z, { styles: t });
2647
+ return /* @__PURE__ */ c(q, { styles: t });
2500
2648
  }
2501
- const un = ({
2649
+ const vn = ({
2502
2650
  content: e,
2503
2651
  data: t,
2504
2652
  locale: n
2505
2653
  }) => {
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) => {
2654
+ var a, r, l;
2655
+ 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) => {
2509
2657
  s.name && s.defaultValue !== void 0 && (i[s.name] = s.defaultValue);
2510
2658
  }), {
2511
2659
  ...i,
@@ -2515,7 +2663,7 @@ const un = ({
2515
2663
  locale: n
2516
2664
  } : {}
2517
2665
  };
2518
- }, mn = ({
2666
+ }, kn = ({
2519
2667
  content: e,
2520
2668
  data: t
2521
2669
  }) => e ? {
@@ -2526,52 +2674,52 @@ const un = ({
2526
2674
  },
2527
2675
  meta: e == null ? void 0 : e.meta
2528
2676
  } : void 0;
2529
- function ke(e) {
2530
- var s, d, m, g, k, S, x;
2531
- const [t, n] = v(
2677
+ function Ie(e) {
2678
+ var s, d, u, h, p, b, y;
2679
+ const [t, n] = k(
2532
2680
  () => {
2533
- var C, R;
2534
- return Jt({
2681
+ var v, E;
2682
+ return cn({
2535
2683
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2536
- variationId: (C = e.content) == null ? void 0 : C.testVariationId,
2684
+ variationId: (v = e.content) == null ? void 0 : v.testVariationId,
2537
2685
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2538
- contentId: (R = e.content) == null ? void 0 : R.id
2686
+ contentId: (E = e.content) == null ? void 0 : E.id
2539
2687
  });
2540
2688
  }
2541
2689
  );
2542
- function i(C) {
2543
- c((R) => ({
2544
- ...R,
2545
- rootState: C
2690
+ function i(v) {
2691
+ l((E) => ({
2692
+ ...E,
2693
+ rootState: v
2546
2694
  }));
2547
2695
  }
2548
- const [o, r] = v(
2696
+ const [o, a] = k(
2549
2697
  () => [
2550
- ...ye(),
2698
+ ...ve(),
2551
2699
  // While this `components` object is deprecated, we must maintain support for it.
2552
2700
  // Since users are able to override our default components, we need to make sure that we do not break such
2553
2701
  // existing usage.
2554
2702
  // This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
2555
2703
  // which is the new standard way of providing custom components, and must therefore take precedence.
2556
- ...ue,
2704
+ ...ge,
2557
2705
  ...e.customComponents || []
2558
2706
  ].reduce(
2559
- (C, { component: R, ...B }) => ({
2560
- ...C,
2561
- [B.name]: {
2562
- component: R,
2563
- ...me(B)
2707
+ (v, { component: E, ...A }) => ({
2708
+ ...v,
2709
+ [A.name]: {
2710
+ component: E,
2711
+ ...be(A)
2564
2712
  }
2565
2713
  }),
2566
2714
  {}
2567
2715
  )
2568
- ), [a, c] = v(() => ({
2569
- content: mn({
2716
+ ), [r, l] = k(() => ({
2717
+ content: kn({
2570
2718
  content: e.content,
2571
2719
  data: e.data
2572
2720
  }),
2573
2721
  localState: void 0,
2574
- rootState: un({
2722
+ rootState: vn({
2575
2723
  content: e.content,
2576
2724
  data: e.data,
2577
2725
  locale: e.locale
@@ -2581,18 +2729,18 @@ function ke(e) {
2581
2729
  apiKey: e.apiKey,
2582
2730
  apiVersion: e.apiVersion,
2583
2731
  componentInfos: [
2584
- ...ye(),
2732
+ ...ve(),
2585
2733
  // While this `components` object is deprecated, we must maintain support for it.
2586
2734
  // Since users are able to override our default components, we need to make sure that we do not break such
2587
2735
  // existing usage.
2588
2736
  // This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
2589
2737
  // which is the new standard way of providing custom components, and must therefore take precedence.
2590
- ...ue,
2738
+ ...ge,
2591
2739
  ...e.customComponents || []
2592
2740
  ].reduce(
2593
- (C, { component: R, ...B }) => ({
2594
- ...C,
2595
- [B.name]: me(B)
2741
+ (v, { component: E, ...A }) => ({
2742
+ ...v,
2743
+ [A.name]: be(A)
2596
2744
  }),
2597
2745
  {}
2598
2746
  ),
@@ -2600,14 +2748,14 @@ function ke(e) {
2600
2748
  BlocksWrapper: e.blocksWrapper || "div",
2601
2749
  BlocksWrapperProps: e.blocksWrapperProps || {}
2602
2750
  }));
2603
- return /* @__PURE__ */ l(
2604
- we.Provider,
2751
+ return /* @__PURE__ */ c(
2752
+ Ee.Provider,
2605
2753
  {
2606
2754
  value: {
2607
2755
  registeredComponents: o
2608
2756
  },
2609
- children: /* @__PURE__ */ A(
2610
- rn,
2757
+ children: /* @__PURE__ */ W(
2758
+ bn,
2611
2759
  {
2612
2760
  content: e.content,
2613
2761
  data: e.data,
@@ -2619,27 +2767,27 @@ function ke(e) {
2619
2767
  includeRefs: e.includeRefs,
2620
2768
  enrich: e.enrich,
2621
2769
  showContent: e.showContent,
2622
- builderContextSignal: a,
2770
+ builderContextSignal: r,
2623
2771
  contentWrapper: e.contentWrapper,
2624
2772
  contentWrapperProps: e.contentWrapperProps,
2625
2773
  linkComponent: e.linkComponent,
2626
2774
  trustedHosts: e.trustedHosts,
2627
- setBuilderContextSignal: c,
2775
+ setBuilderContextSignal: l,
2628
2776
  children: [
2629
- e.isSsrAbTest ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(Z, { scriptStr: t }) }) : null,
2630
- /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
2631
- dn,
2777
+ e.isSsrAbTest ? /* @__PURE__ */ c(g, { children: /* @__PURE__ */ c(ee, { scriptStr: t }) }) : null,
2778
+ /* @__PURE__ */ c(g, { children: /* @__PURE__ */ c(
2779
+ pn,
2632
2780
  {
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
2781
+ contentId: (s = r.content) == null ? void 0 : s.id,
2782
+ 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
2636
2784
  }
2637
2785
  ) }),
2638
- /* @__PURE__ */ l(
2639
- Y,
2786
+ /* @__PURE__ */ c(
2787
+ Q,
2640
2788
  {
2641
- blocks: (x = (S = a.content) == null ? void 0 : S.data) == null ? void 0 : x.blocks,
2642
- context: a,
2789
+ blocks: (y = (b = r.content) == null ? void 0 : b.data) == null ? void 0 : y.blocks,
2790
+ context: r,
2643
2791
  registeredComponents: o,
2644
2792
  linkComponent: e.linkComponent
2645
2793
  }
@@ -2650,18 +2798,18 @@ function ke(e) {
2650
2798
  }
2651
2799
  );
2652
2800
  }
2653
- function Ve(e) {
2654
- var a, c;
2655
- const [t, n] = v(
2656
- () => qt({
2657
- canTrack: H(e.canTrack),
2801
+ function _e(e) {
2802
+ var r, l;
2803
+ const [t, n] = k(
2804
+ () => on({
2805
+ canTrack: K(e.canTrack),
2658
2806
  content: e.content
2659
2807
  })
2660
2808
  );
2661
2809
  function i() {
2662
2810
  var s;
2663
- return Gt(
2664
- U(e.content).map((d) => ({
2811
+ return ln(
2812
+ H(e.content).map((d) => ({
2665
2813
  id: d.testVariationId,
2666
2814
  testRatio: d.testRatio
2667
2815
  })),
@@ -2669,32 +2817,32 @@ function Ve(e) {
2669
2817
  );
2670
2818
  }
2671
2819
  function o() {
2672
- return U(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
2820
+ return H(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
2673
2821
  }
2674
- function r() {
2822
+ function a() {
2675
2823
  var s;
2676
2824
  return t ? {
2677
2825
  ...e.content,
2678
2826
  testVariationId: (s = e.content) == null ? void 0 : s.id
2679
- } : Ue({
2827
+ } : Ye({
2680
2828
  item: e.content,
2681
- canTrack: H(e.canTrack)
2829
+ canTrack: K(e.canTrack)
2682
2830
  });
2683
2831
  }
2684
- return E(() => {
2685
- }, []), /* @__PURE__ */ A(h, { children: [
2686
- !e.__isNestedRender && $ !== "reactNative" ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(Z, { scriptStr: Qt() }) }) : null,
2687
- t ? /* @__PURE__ */ A(h, { children: [
2688
- /* @__PURE__ */ l(
2689
- z,
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(
2837
+ q,
2690
2838
  {
2691
- id: `variants-styles-${(a = e.content) == null ? void 0 : a.id}`,
2839
+ id: `variants-styles-${(r = e.content) == null ? void 0 : r.id}`,
2692
2840
  styles: o()
2693
2841
  }
2694
2842
  ),
2695
- /* @__PURE__ */ l(Z, { scriptStr: i() }),
2696
- (c = U(e.content)) == null ? void 0 : c.map((s) => /* @__PURE__ */ l(
2697
- ke,
2843
+ /* @__PURE__ */ c(ee, { scriptStr: i() }),
2844
+ (l = H(e.content)) == null ? void 0 : l.map((s) => /* @__PURE__ */ c(
2845
+ Ie,
2698
2846
  {
2699
2847
  content: s,
2700
2848
  showContent: !1,
@@ -2719,10 +2867,10 @@ function Ve(e) {
2719
2867
  s.testVariationId
2720
2868
  ))
2721
2869
  ] }) : null,
2722
- /* @__PURE__ */ l(
2723
- ke,
2870
+ /* @__PURE__ */ c(
2871
+ Ie,
2724
2872
  {
2725
- content: r(),
2873
+ content: a(),
2726
2874
  showContent: !0,
2727
2875
  model: e.model,
2728
2876
  data: e.data,
@@ -2745,13 +2893,13 @@ function Ve(e) {
2745
2893
  )
2746
2894
  ] });
2747
2895
  }
2748
- const fn = async ({
2896
+ const Cn = async ({
2749
2897
  builderContextValue: e,
2750
2898
  symbol: t
2751
2899
  }) => {
2752
2900
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
2753
2901
  (e != null && e.apiKey))
2754
- return Ce({
2902
+ return Re({
2755
2903
  model: t.model,
2756
2904
  apiKey: e.apiKey,
2757
2905
  apiVersion: e.apiVersion,
@@ -2761,50 +2909,50 @@ const fn = async ({
2761
2909
  }
2762
2910
  }
2763
2911
  }).catch((n) => {
2764
- _.error("Could not fetch symbol content: ", n);
2912
+ O.error("Could not fetch symbol content: ", n);
2765
2913
  });
2766
2914
  };
2767
- function hn(e) {
2768
- var r, a, c, s;
2915
+ function wn(e) {
2916
+ var a, r, l, s;
2769
2917
  function t() {
2770
- var d, m;
2918
+ var d, u;
2771
2919
  return [
2772
- e.attributes[O()],
2920
+ e.attributes[_()],
2773
2921
  "builder-symbol",
2774
2922
  (d = e.symbol) != null && d.inline ? "builder-inline-symbol" : void 0,
2775
- (m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
2923
+ (u = e.symbol) != null && u.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
2776
2924
  ].filter(Boolean).join(" ");
2777
2925
  }
2778
- const [n, i] = v(() => {
2926
+ const [n, i] = k(() => {
2779
2927
  var d;
2780
2928
  return (d = e.symbol) == null ? void 0 : d.content;
2781
2929
  });
2782
2930
  function o() {
2783
- n || fn({
2931
+ n || Cn({
2784
2932
  symbol: e.symbol,
2785
2933
  builderContextValue: e.builderContext
2786
2934
  }).then((d) => {
2787
2935
  d && i(d);
2788
2936
  });
2789
2937
  }
2790
- return E(() => {
2791
- }, []), E(() => {
2938
+ return R(() => {
2939
+ }, []), R(() => {
2792
2940
  o();
2793
- }, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ l(
2794
- Ve,
2941
+ }, [e.symbol]), /* @__PURE__ */ c("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ c(
2942
+ _e,
2795
2943
  {
2796
2944
  __isNestedRender: !0,
2797
2945
  apiVersion: e.builderContext.apiVersion,
2798
2946
  apiKey: e.builderContext.apiKey,
2799
2947
  context: {
2800
2948
  ...e.builderContext.context,
2801
- symbolId: (r = e.builderBlock) == null ? void 0 : r.id
2949
+ symbolId: (a = e.builderBlock) == null ? void 0 : a.id
2802
2950
  },
2803
2951
  customComponents: Object.values(e.builderComponents),
2804
2952
  data: {
2805
- ...(a = e.symbol) == null ? void 0 : a.data,
2953
+ ...(r = e.symbol) == null ? void 0 : r.data,
2806
2954
  ...e.builderContext.localState,
2807
- ...(c = n == null ? void 0 : n.data) == null ? void 0 : c.state
2955
+ ...(l = n == null ? void 0 : n.data) == null ? void 0 : l.state
2808
2956
  },
2809
2957
  model: (s = e.symbol) == null ? void 0 : s.model,
2810
2958
  content: n,
@@ -2812,31 +2960,31 @@ function hn(e) {
2812
2960
  }
2813
2961
  ) });
2814
2962
  }
2815
- const Sn = Y, xn = Ve;
2963
+ const En = Q, Pn = _e;
2816
2964
  export {
2817
- Y as Blocks,
2818
- Ke as Button,
2819
- xt as Columns,
2820
- Ve as Content,
2821
- vt as Fragment,
2822
- Ct as Image,
2823
- Sn as RenderBlocks,
2824
- xn as RenderContent,
2825
- wt as Section,
2826
- hn as Symbol,
2827
- Ut as Text,
2828
- Ht as Video,
2829
- pn as _processContentResult,
2830
- je as createRegisterComponentMessage,
2831
- Cn as fetchBuilderProps,
2832
- wn as fetchEntries,
2833
- Ce as fetchOneEntry,
2834
- In as getAllContent,
2835
- Tn as getBuilderSearchParams,
2836
- Rn as getContent,
2965
+ Q as Blocks,
2966
+ Je as Button,
2967
+ Pt as Columns,
2968
+ _e as Content,
2969
+ At as Fragment,
2970
+ Nt as Image,
2971
+ En as RenderBlocks,
2972
+ Pn as RenderContent,
2973
+ $t as Section,
2974
+ wn as Symbol,
2975
+ Xt as Text,
2976
+ en as Video,
2977
+ Wn as _processContentResult,
2978
+ 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,
2837
2985
  N as isEditing,
2838
- Oe as isPreviewing,
2839
- _e as register,
2840
- En as setEditorSettings,
2841
- Pn as track
2986
+ Ke as isPreviewing,
2987
+ Me as register,
2988
+ Dn as setEditorSettings,
2989
+ On as track
2842
2990
  };