@builder.io/sdk-react 0.13.2 → 0.13.4

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.
Files changed (36) hide show
  1. package/lib/browser/index.cjs +8 -8
  2. package/lib/browser/index.mjs +90 -90
  3. package/lib/browser/{server-entry-be000726.js → server-entry-2a8acf68.js} +1 -1
  4. package/lib/browser/{server-entry-af9b0dd3.cjs → server-entry-881c178e.cjs} +1 -1
  5. package/lib/browser/server-entry.cjs +1 -1
  6. package/lib/browser/server-entry.mjs +1 -1
  7. package/lib/edge/index.cjs +13 -13
  8. package/lib/edge/index.mjs +105 -105
  9. package/lib/edge/{server-entry-b02b5197.js → server-entry-13732838.js} +1 -1
  10. package/lib/edge/{server-entry-af9b0dd3.cjs → server-entry-881c178e.cjs} +1 -1
  11. package/lib/edge/server-entry.cjs +1 -1
  12. package/lib/edge/server-entry.mjs +1 -1
  13. package/lib/node/index.cjs +6 -6
  14. package/lib/node/index.mjs +283 -283
  15. package/lib/node/{server-entry-6e7475d7.cjs → server-entry-ad7cbbbf.cjs} +1 -1
  16. package/lib/node/{server-entry-9969d641.js → server-entry-c8223f30.js} +1 -1
  17. package/lib/node/server-entry.cjs +1 -1
  18. package/lib/node/server-entry.mjs +1 -1
  19. package/package.json +1 -1
  20. package/types/blocks/columns/columns.d.ts +1 -2
  21. package/types/blocks/columns/columns.types.d.ts +2 -2
  22. package/types/blocks/form/form/form.d.ts +3 -3
  23. package/types/blocks/slot/slot.d.ts +3 -3
  24. package/types/blocks/symbol/symbol.d.ts +1 -2
  25. package/types/blocks/symbol/symbol.types.d.ts +2 -2
  26. package/types/components/block/components/block-wrapper.d.ts +2 -2
  27. package/types/components/block/components/component-ref/component-ref.helpers.d.ts +3 -3
  28. package/types/components/block/components/interactive-element.d.ts +3 -2
  29. package/types/components/blocks/blocks-wrapper.d.ts +2 -2
  30. package/types/components/content/content.types.d.ts +1 -8
  31. package/types/components/content/contentProps.types.d.ts +12 -0
  32. package/types/components/dynamic-renderer/dynamic-renderer.d.ts +4 -3
  33. package/types/constants/sdk-version.d.ts +1 -1
  34. package/types/types/builder-props.d.ts +1 -1
  35. package/types/types/input.d.ts +1 -0
  36. package/types/types/typescript.d.ts +0 -3
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsx, Fragment, jsxs } from "react/jsx-runtime";
3
3
  import { createContext, useState, useEffect, useContext, useRef, createElement } from "react";
4
- import { T as TARGET, i as isEditing, k as isBrowser, l as getUserAttributes, m as fastClone, n as checkIsDefined, o as logger, p as getDefaultCanTrack, q as _track, a as isPreviewing, u as createEditorListener, v as registerInsertMenu, w as setupBrowserForEditing, c as createRegisterComponentMessage, e as fetchOneEntry, x as fetch$1, y as components, z as serializeComponentInfo, A as handleABTestingSync } from "./server-entry-9969d641.js";
5
- import { _ as H, f as K, d as q, h as z, g as J, j as Y, r as G, s as Q, b as X, t as Z } from "./server-entry-9969d641.js";
4
+ import { T as TARGET, i as isEditing, k as isBrowser, l as getUserAttributes, m as fastClone, n as checkIsDefined, o as logger, p as getDefaultCanTrack, q as _track, a as isPreviewing, u as createEditorListener, v as registerInsertMenu, w as setupBrowserForEditing, c as createRegisterComponentMessage, e as fetchOneEntry, x as fetch$1, y as components, z as serializeComponentInfo, A as handleABTestingSync } from "./server-entry-c8223f30.js";
5
+ import { _ as H, f as K, d as q, h as z, g as J, j as Y, r as G, s as Q, b as X, t as Z } from "./server-entry-c8223f30.js";
6
6
  import { createRequire } from "node:module";
7
7
  const EMPTY_HTML_ELEMENTS = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), isEmptyElement = (e) => typeof e == "string" && EMPTY_HTML_ELEMENTS.has(e.toLowerCase());
8
8
  function DynamicRenderer(e) {
@@ -71,9 +71,9 @@ const getFunctionArguments = ({
71
71
  builder: e,
72
72
  context: t,
73
73
  event: n,
74
- state: o
74
+ state: i
75
75
  }) => Object.entries({
76
- state: o,
76
+ state: i,
77
77
  Builder: e,
78
78
  // legacy
79
79
  builder: e,
@@ -90,18 +90,18 @@ const getFunctionArguments = ({
90
90
  code: e,
91
91
  builder: t,
92
92
  context: n,
93
- event: o,
94
- localState: i,
93
+ event: i,
94
+ localState: o,
95
95
  rootSetState: a,
96
96
  rootState: r
97
97
  }) => {
98
98
  const s = getFunctionArguments({
99
99
  builder: t,
100
100
  context: n,
101
- event: o,
101
+ event: i,
102
102
  state: flattenState({
103
103
  rootState: r,
104
- localState: i,
104
+ localState: o,
105
105
  rootSetState: a
106
106
  })
107
107
  });
@@ -113,30 +113,30 @@ function flattenState({
113
113
  rootSetState: n
114
114
  }) {
115
115
  return new Proxy(e, {
116
- get: (o, i) => {
117
- if (t && i in t)
118
- return t[i];
119
- const a = o[i];
116
+ get: (i, o) => {
117
+ if (t && o in t)
118
+ return t[o];
119
+ const a = i[o];
120
120
  return typeof a == "object" ? flattenState({
121
121
  rootState: a,
122
122
  localState: void 0,
123
123
  rootSetState: n ? (r) => {
124
- o[i] = r, n(o);
124
+ i[o] = r, n(i);
125
125
  } : void 0
126
126
  }) : a;
127
127
  },
128
- set: (o, i, a) => {
129
- if (t && i in t)
128
+ set: (i, o, a) => {
129
+ if (t && o in t)
130
130
  throw new Error("Writing to local state is not allowed as it is read-only.");
131
- return o[i] = a, n == null || n(o), !0;
131
+ return i[o] = a, n == null || n(i), !0;
132
132
  }
133
133
  });
134
134
  }
135
135
  const set = (e, t, n) => {
136
136
  if (Object(e) !== e)
137
137
  return e;
138
- const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
139
- return o.slice(0, -1).reduce((i, a, r) => Object(i[a]) === i[a] ? i[a] : i[a] = Math.abs(Number(o[r + 1])) >> 0 === +o[r + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
138
+ const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
139
+ 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;
140
140
  }, noop = () => {
141
141
  };
142
142
  let safeDynamicRequire = noop;
@@ -178,7 +178,7 @@ var refToProxy = (obj) => {
178
178
  code: e,
179
179
  args: t
180
180
  }) => {
181
- const n = t.map(([o]) => `var ${o} = refToProxy(${getSyncValName(o)}); `).join("");
181
+ const n = t.map(([i]) => `var ${i} = refToProxy(${getSyncValName(i)}); `).join("");
182
182
  return `
183
183
  ${REF_TO_PROXY_FN}
184
184
  ${n}
@@ -200,34 +200,34 @@ output;
200
200
  code: e,
201
201
  builder: t,
202
202
  context: n,
203
- event: o,
204
- localState: i,
203
+ event: i,
204
+ localState: o,
205
205
  rootSetState: a,
206
206
  rootState: r
207
207
  }) => {
208
208
  const s = fastClone({
209
209
  ...r,
210
- ...i
210
+ ...o
211
211
  }), l = getFunctionArguments({
212
212
  builder: t,
213
213
  context: n,
214
- event: o,
214
+ event: i,
215
215
  state: s
216
- }), c = getIsolateContext(), u = c.global;
217
- u.setSync("global", u.derefInto()), u.setSync("log", function(...d) {
218
- console.log(...d);
219
- }), u.setSync(BUILDER_SET_STATE_NAME, function(d, m) {
220
- set(r, d, m), a == null || a(r);
221
- }), l.forEach(([d, m]) => {
216
+ }), c = getIsolateContext(), d = c.global;
217
+ d.setSync("global", d.derefInto()), d.setSync("log", function(...u) {
218
+ console.log(...u);
219
+ }), d.setSync(BUILDER_SET_STATE_NAME, function(u, m) {
220
+ set(r, u, m), a == null || a(r);
221
+ }), l.forEach(([u, m]) => {
222
222
  const b = typeof m == "object" ? new ivm.Reference(
223
223
  // workaround: methods with default values for arguments is not being cloned over
224
- d === "builder" ? {
224
+ u === "builder" ? {
225
225
  ...m,
226
226
  getUserAttributes: () => m.getUserAttributes()
227
227
  } : m
228
228
  ) : null;
229
- u.setSync(getSyncValName(d), b);
230
- }), u.setSync(INJECTED_IVM_GLOBAL, ivm);
229
+ d.setSync(getSyncValName(u), b);
230
+ }), d.setSync(INJECTED_IVM_GLOBAL, ivm);
231
231
  const y = processCode({
232
232
  code: e,
233
233
  args: l
@@ -243,18 +243,18 @@ function isNodeRuntime() {
243
243
  return typeof process != "undefined" && checkIsDefined((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
244
244
  }
245
245
  const shouldForceBrowserRuntimeInNode = () => {
246
- var o;
246
+ var i;
247
247
  if (!isNodeRuntime())
248
248
  return !1;
249
- const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
249
+ const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
250
250
  return e && t && !n ? (logger.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;
251
251
  }, chooseBrowserOrServerEval = (e) => isBrowser() || shouldForceBrowserRuntimeInNode() ? runInBrowser(e) : runInNode(e);
252
252
  function evaluate({
253
253
  code: e,
254
254
  context: t,
255
255
  localState: n,
256
- rootState: o,
257
- rootSetState: i,
256
+ rootState: i,
257
+ rootSetState: o,
258
258
  event: a,
259
259
  isExpression: r = !0
260
260
  }) {
@@ -269,8 +269,8 @@ function evaluate({
269
269
  builder: getBuilderGlobals(),
270
270
  context: t,
271
271
  event: a,
272
- rootSetState: i,
273
- rootState: o,
272
+ rootSetState: o,
273
+ rootState: i,
274
274
  localState: n
275
275
  };
276
276
  try {
@@ -289,8 +289,8 @@ const evaluateBindings = ({
289
289
  block: e,
290
290
  context: t,
291
291
  localState: n,
292
- rootState: o,
293
- rootSetState: i
292
+ rootState: i,
293
+ rootSetState: o
294
294
  }) => {
295
295
  if (!e.bindings)
296
296
  return e;
@@ -307,8 +307,8 @@ const evaluateBindings = ({
307
307
  const l = e.bindings[s], c = evaluate({
308
308
  code: l,
309
309
  localState: n,
310
- rootState: o,
311
- rootSetState: i,
310
+ rootState: i,
311
+ rootSetState: o,
312
312
  context: t
313
313
  });
314
314
  set(r, s, c);
@@ -319,38 +319,38 @@ function getProcessedBlock({
319
319
  block: e,
320
320
  context: t,
321
321
  shouldEvaluateBindings: n,
322
- localState: o,
323
- rootState: i,
322
+ localState: i,
323
+ rootState: o,
324
324
  rootSetState: a
325
325
  }) {
326
326
  const r = e;
327
327
  return n ? evaluateBindings({
328
328
  block: r,
329
- localState: o,
330
- rootState: i,
329
+ localState: i,
330
+ rootState: o,
331
331
  rootSetState: a,
332
332
  context: t
333
333
  }) : r;
334
334
  }
335
335
  function throttle(e, t, n = {}) {
336
- let o, i, a, r = null, s = 0;
336
+ let i, o, a, r = null, s = 0;
337
337
  const l = function() {
338
- s = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(o, i), r || (o = i = null);
338
+ s = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
339
339
  };
340
340
  return function() {
341
341
  const c = Date.now();
342
342
  !s && n.leading === !1 && (s = c);
343
- const u = t - (c - s);
344
- return o = this, i = arguments, u <= 0 || u > t ? (r && (clearTimeout(r), r = null), s = c, a = e.apply(o, i), r || (o = i = null)) : !r && n.trailing !== !1 && (r = setTimeout(l, u)), a;
343
+ const d = t - (c - s);
344
+ return i = this, o = arguments, d <= 0 || d > t ? (r && (clearTimeout(r), r = null), s = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(l, d)), a;
345
345
  };
346
346
  }
347
347
  function assign(e, ...t) {
348
348
  const n = Object(e);
349
- for (let o = 1; o < arguments.length; o++) {
350
- const i = arguments[o];
351
- if (i != null)
352
- for (const a in i)
353
- Object.prototype.hasOwnProperty.call(i, a) && (n[a] = i[a]);
349
+ for (let i = 1; i < arguments.length; i++) {
350
+ const o = arguments[i];
351
+ if (o != null)
352
+ for (const a in o)
353
+ Object.prototype.hasOwnProperty.call(o, a) && (n[a] = o[a]);
354
354
  }
355
355
  return n;
356
356
  }
@@ -373,16 +373,16 @@ function warnElementNotPresent(e) {
373
373
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
374
374
  }
375
375
  function augmentAnimation(e, t) {
376
- const n = getAllStylesUsed(e), o = getComputedStyle(t), i = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [i, a];
376
+ const n = getAllStylesUsed(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
377
377
  for (const s of r)
378
378
  for (const l of n)
379
- l in s || (s[l] = o[l]);
379
+ l in s || (s[l] = i[l]);
380
380
  }
381
381
  function getAllStylesUsed(e) {
382
382
  const t = [];
383
383
  for (const n of e.steps)
384
- for (const o in n.styles)
385
- t.indexOf(o) === -1 && t.push(o);
384
+ for (const i in n.styles)
385
+ t.indexOf(i) === -1 && t.push(i);
386
386
  return t;
387
387
  }
388
388
  function triggerAnimation(e) {
@@ -407,12 +407,12 @@ function bindHoverAnimation(e) {
407
407
  }
408
408
  Array.from(t).forEach((n) => {
409
409
  augmentAnimation(e, n);
410
- const o = e.steps[0].styles, i = e.steps[1].styles;
410
+ const i = e.steps[0].styles, o = e.steps[1].styles;
411
411
  function a() {
412
- assign(n.style, o);
412
+ assign(n.style, i);
413
413
  }
414
414
  function r() {
415
- assign(n.style, i);
415
+ assign(n.style, o);
416
416
  }
417
417
  a(), n.addEventListener("mouseenter", r), n.addEventListener("mouseleave", a), setTimeout(() => {
418
418
  n.style.transition = `all ${e.duration}s ${camelCaseToKebabCase(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
@@ -427,19 +427,19 @@ function bindScrollInViewAnimation(e) {
427
427
  }
428
428
  Array.from(t).forEach((n) => {
429
429
  augmentAnimation(e, n);
430
- let o = !1, i = !1;
430
+ let i = !1, o = !1;
431
431
  function a() {
432
- !o && s(n) ? (o = !0, i = !0, setTimeout(() => {
432
+ !i && s(n) ? (i = !0, o = !0, setTimeout(() => {
433
433
  assign(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
434
- i = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
434
+ o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
435
435
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
436
- })) : e.repeat && o && !i && !s(n) && (o = !1, assign(n.style, e.steps[0].styles));
436
+ })) : e.repeat && i && !o && !s(n) && (i = !1, assign(n.style, e.steps[0].styles));
437
437
  }
438
438
  const r = throttle(a, 200, {
439
439
  leading: !1
440
440
  });
441
- function s(u) {
442
- const y = u.getBoundingClientRect(), x = window.innerHeight, m = (e.thresholdPercent || 0) / 100 * x;
441
+ function s(d) {
442
+ const y = d.getBoundingClientRect(), x = window.innerHeight, m = (e.thresholdPercent || 0) / 100 * x;
443
443
  return y.bottom > m && y.top < x - m;
444
444
  }
445
445
  const l = e.steps[0].styles;
@@ -460,7 +460,7 @@ const getComponent = ({
460
460
  registeredComponents: n
461
461
  }) => {
462
462
  var a;
463
- const o = (a = getProcessedBlock({
463
+ const i = (a = getProcessedBlock({
464
464
  block: e,
465
465
  localState: t.localState,
466
466
  rootState: t.rootState,
@@ -468,13 +468,13 @@ const getComponent = ({
468
468
  context: t.context,
469
469
  shouldEvaluateBindings: !1
470
470
  }).component) == null ? void 0 : a.name;
471
- if (!o)
471
+ if (!i)
472
472
  return null;
473
- const i = n[o];
474
- if (i)
475
- return i;
473
+ const o = n[i];
474
+ if (o)
475
+ return o;
476
476
  console.warn(`
477
- Could not find a registered component named "${o}".
477
+ Could not find a registered component named "${i}".
478
478
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
479
479
  }, getRepeatItemData = ({
480
480
  block: e,
@@ -482,21 +482,21 @@ const getComponent = ({
482
482
  }) => {
483
483
  const {
484
484
  repeat: n,
485
- ...o
485
+ ...i
486
486
  } = e;
487
487
  if (!(n != null && n.collection))
488
488
  return;
489
- const i = evaluate({
489
+ const o = evaluate({
490
490
  code: n.collection,
491
491
  localState: t.localState,
492
492
  rootState: t.rootState,
493
493
  rootSetState: t.rootSetState,
494
494
  context: t.context
495
495
  });
496
- if (!Array.isArray(i))
496
+ if (!Array.isArray(o))
497
497
  return;
498
498
  const a = n.collection.split(".").pop(), r = n.itemName || (a ? a + "Item" : "item");
499
- return i.map((l, c) => ({
499
+ return o.map((l, c) => ({
500
500
  context: {
501
501
  ...t,
502
502
  localState: {
@@ -507,7 +507,7 @@ const getComponent = ({
507
507
  [`$${r}Index`]: c
508
508
  }
509
509
  },
510
- block: o
510
+ block: i
511
511
  }));
512
512
  }, SIZES = {
513
513
  small: {
@@ -532,17 +532,17 @@ const getComponent = ({
532
532
  const n = fastClone(SIZES);
533
533
  if (!e || !t)
534
534
  return n;
535
- const o = Math.floor(e / 2);
535
+ const i = Math.floor(e / 2);
536
536
  n.small = {
537
537
  max: e,
538
- min: o,
539
- default: o + 1
538
+ min: i,
539
+ default: i + 1
540
540
  };
541
- const i = n.small.max + 1;
541
+ const o = n.small.max + 1;
542
542
  n.medium = {
543
543
  max: t,
544
- min: i,
545
- default: i + 1
544
+ min: o,
545
+ default: o + 1
546
546
  };
547
547
  const a = n.medium.max + 1;
548
548
  return n.large = {
@@ -551,28 +551,28 @@ const getComponent = ({
551
551
  min: a,
552
552
  default: a + 1
553
553
  }, n;
554
- }, camelToKebabCase = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), convertStyleMapToCSSArray = (e) => Object.entries(e).map(([n, o]) => {
555
- if (typeof o == "string")
556
- return `${camelToKebabCase(n)}: ${o};`;
554
+ }, camelToKebabCase = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), convertStyleMapToCSSArray = (e) => Object.entries(e).map(([n, i]) => {
555
+ if (typeof i == "string")
556
+ return `${camelToKebabCase(n)}: ${i};`;
557
557
  }).filter(checkIsDefined), convertStyleMapToCSS = (e) => convertStyleMapToCSSArray(e).join(`
558
558
  `), createCssClass = ({
559
559
  mediaQuery: e,
560
560
  className: t,
561
561
  styles: n
562
562
  }) => {
563
- const o = `.${t} {
563
+ const i = `.${t} {
564
564
  ${convertStyleMapToCSS(n)}
565
565
  }`;
566
566
  return e ? `${e} {
567
- ${o}
568
- }` : o;
567
+ ${i}
568
+ }` : i;
569
569
  };
570
570
  function InlinedStyles(e) {
571
571
  return /* @__PURE__ */ jsx("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
572
572
  }
573
573
  function BlockStyles(e) {
574
574
  function t() {
575
- const o = getProcessedBlock({
575
+ const i = getProcessedBlock({
576
576
  block: e.block,
577
577
  localState: e.context.localState,
578
578
  rootState: e.context.rootState,
@@ -580,41 +580,41 @@ function BlockStyles(e) {
580
580
  context: e.context.context,
581
581
  shouldEvaluateBindings: !0
582
582
  });
583
- return checkIsDefined(o.hide) ? !o.hide : checkIsDefined(o.show) ? o.show : !0;
583
+ return checkIsDefined(i.hide) ? !i.hide : checkIsDefined(i.show) ? i.show : !0;
584
584
  }
585
585
  function n() {
586
586
  var m;
587
- const o = getProcessedBlock({
587
+ const i = getProcessedBlock({
588
588
  block: e.block,
589
589
  localState: e.context.localState,
590
590
  rootState: e.context.rootState,
591
591
  rootSetState: e.context.rootSetState,
592
592
  context: e.context.context,
593
593
  shouldEvaluateBindings: !0
594
- }), i = o.responsiveStyles, a = e.context.content, r = getSizesForBreakpoints(
594
+ }), o = i.responsiveStyles, a = e.context.content, r = getSizesForBreakpoints(
595
595
  ((m = a == null ? void 0 : a.meta) == null ? void 0 : m.breakpoints) || {}
596
- ), s = i == null ? void 0 : i.large, l = i == null ? void 0 : i.medium, c = i == null ? void 0 : i.small, u = o.id;
597
- if (!u)
596
+ ), s = o == null ? void 0 : o.large, l = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, d = i.id;
597
+ if (!d)
598
598
  return "";
599
599
  const y = s ? createCssClass({
600
- className: u,
600
+ className: d,
601
601
  styles: s
602
602
  }) : "", x = l ? createCssClass({
603
- className: u,
603
+ className: d,
604
604
  styles: l,
605
605
  mediaQuery: getMaxWidthQueryForSize(
606
606
  "medium",
607
607
  r
608
608
  )
609
- }) : "", d = c ? createCssClass({
610
- className: u,
609
+ }) : "", u = c ? createCssClass({
610
+ className: d,
611
611
  styles: c,
612
612
  mediaQuery: getMaxWidthQueryForSize(
613
613
  "small",
614
614
  r
615
615
  )
616
616
  }) : "";
617
- return [y, x, d].join(" ");
617
+ return [y, x, u].join(" ");
618
618
  }
619
619
  return /* @__PURE__ */ jsx(Fragment, { children: n() && t() ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(InlinedStyles, { styles: n() }) }) : null });
620
620
  }
@@ -631,13 +631,13 @@ const getEventHandlerName = (e) => `on${capitalizeFirstLetter(e)}`, createEventH
631
631
  isExpression: !1
632
632
  });
633
633
  function getBlockActions(e) {
634
- var o;
635
- const t = {}, n = (o = e.block.actions) != null ? o : {};
636
- for (const i in n) {
637
- if (!n.hasOwnProperty(i))
634
+ var i;
635
+ const t = {}, n = (i = e.block.actions) != null ? i : {};
636
+ for (const o in n) {
637
+ if (!n.hasOwnProperty(o))
638
638
  continue;
639
- const a = n[i];
640
- let r = getEventHandlerName(i);
639
+ const a = n[o];
640
+ let r = getEventHandlerName(o);
641
641
  if (e.stripPrefix)
642
642
  switch (TARGET) {
643
643
  case "vue":
@@ -689,7 +689,7 @@ function getBlockProperties({
689
689
  block: e,
690
690
  context: t
691
691
  }) {
692
- var o;
692
+ var i;
693
693
  const n = {
694
694
  ...extractRelevantRootBlockProperties(e),
695
695
  ...e.properties,
@@ -698,7 +698,7 @@ function getBlockProperties({
698
698
  block: e,
699
699
  context: t
700
700
  }),
701
- [getClassPropName()]: [e.id, "builder-block", e.class, (o = e.properties) == null ? void 0 : o.class].filter(Boolean).join(" ")
701
+ [getClassPropName()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
702
702
  };
703
703
  return transformBlockProperties({
704
704
  properties: n,
@@ -753,8 +753,8 @@ const getWrapperProps = ({
753
753
  componentOptions: e,
754
754
  builderBlock: t,
755
755
  context: n,
756
- componentRef: o,
757
- includeBlockProps: i,
756
+ componentRef: i,
757
+ includeBlockProps: o,
758
758
  isInteractive: a,
759
759
  contextValue: r
760
760
  }) => {
@@ -764,7 +764,7 @@ const getWrapperProps = ({
764
764
  * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
765
765
  * component itself directly. Otherwise, they are provided to the wrapper element.
766
766
  */
767
- ...i ? {
767
+ ...o ? {
768
768
  attributes: getBlockProperties({
769
769
  block: t,
770
770
  context: r
@@ -772,15 +772,15 @@ const getWrapperProps = ({
772
772
  } : {}
773
773
  };
774
774
  return a ? {
775
- Wrapper: o,
775
+ Wrapper: i,
776
776
  block: t,
777
777
  context: n,
778
778
  wrapperProps: e,
779
- includeBlockProps: i
779
+ includeBlockProps: o
780
780
  } : s;
781
781
  };
782
782
  function ComponentRef(e) {
783
- var o;
783
+ var i;
784
784
  const [t, n] = useState(
785
785
  () => e.isInteractive ? InteractiveElement : e.componentRef
786
786
  );
@@ -797,15 +797,15 @@ function ComponentRef(e) {
797
797
  isInteractive: e.isInteractive,
798
798
  contextValue: e.context
799
799
  }),
800
- children: (o = e.blockChildren) == null ? void 0 : o.map((i) => /* @__PURE__ */ jsx(
800
+ children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ jsx(
801
801
  Block,
802
802
  {
803
- block: i,
803
+ block: o,
804
804
  context: e.context,
805
805
  registeredComponents: e.registeredComponents,
806
806
  linkComponent: e.linkComponent
807
807
  },
808
- i.id
808
+ o.id
809
809
  ))
810
810
  }
811
811
  ) }) : null });
@@ -823,7 +823,7 @@ function RepeatedBlock(e) {
823
823
  ) });
824
824
  }
825
825
  function Block(e) {
826
- var u, y, x;
826
+ var d, y, x;
827
827
  function t() {
828
828
  return getComponent({
829
829
  block: e.block,
@@ -837,9 +837,9 @@ function Block(e) {
837
837
  context: e.context
838
838
  });
839
839
  }
840
- function o() {
841
- var d;
842
- return (d = e.block.repeat) != null && d.collection ? e.block : getProcessedBlock({
840
+ function i() {
841
+ var u;
842
+ return (u = e.block.repeat) != null && u.collection ? e.block : getProcessedBlock({
843
843
  block: e.block,
844
844
  localState: e.context.localState,
845
845
  rootState: e.context.rootState,
@@ -848,28 +848,28 @@ function Block(e) {
848
848
  shouldEvaluateBindings: !0
849
849
  });
850
850
  }
851
- function i() {
851
+ function o() {
852
852
  var m;
853
- return e.block.tagName === "a" || ((m = o().properties) == null ? void 0 : m.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
853
+ return e.block.tagName === "a" || ((m = i().properties) == null ? void 0 : m.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
854
854
  }
855
855
  function a() {
856
856
  var b, I;
857
857
  if ((b = e.block.repeat) != null && b.collection)
858
858
  return !!((I = n == null ? void 0 : n()) != null && I.length);
859
- const d = "hide" in o() ? o().hide : !1;
860
- return ("show" in o() ? o().show : !0) && !d;
859
+ const u = "hide" in i() ? i().hide : !1;
860
+ return ("show" in i() ? i().show : !0) && !u;
861
861
  }
862
862
  function r() {
863
863
  var m, b;
864
- return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (b = o().children) != null ? b : [] : [];
864
+ return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (b = i().children) != null ? b : [] : [];
865
865
  }
866
866
  function s() {
867
- var d, m, b, I, R, S, k, w, E, B, A;
867
+ var u, m, b, I, R, S, k, w, E, B, A;
868
868
  return {
869
- blockChildren: (d = o().children) != null ? d : [],
869
+ blockChildren: (u = i().children) != null ? u : [],
870
870
  componentRef: (m = t == null ? void 0 : t()) == null ? void 0 : m.component,
871
871
  componentOptions: {
872
- ...getBlockComponentOptions(o()),
872
+ ...getBlockComponentOptions(i()),
873
873
  builderContext: e.context,
874
874
  ...((b = t == null ? void 0 : t()) == null ? void 0 : b.name) === "Core:Button" || ((I = t == null ? void 0 : t()) == null ? void 0 : I.name) === "Symbol" || ((R = t == null ? void 0 : t()) == null ? void 0 : R.name) === "Columns" || ((S = t == null ? void 0 : t()) == null ? void 0 : S.name) === "Form:Form" ? {
875
875
  builderLinkComponent: e.linkComponent
@@ -881,23 +881,23 @@ function Block(e) {
881
881
  context: l,
882
882
  linkComponent: e.linkComponent,
883
883
  registeredComponents: e.registeredComponents,
884
- builderBlock: o(),
884
+ builderBlock: i(),
885
885
  includeBlockProps: ((B = t == null ? void 0 : t()) == null ? void 0 : B.noWrap) === !0,
886
886
  isInteractive: !((A = t == null ? void 0 : t()) != null && A.isRSC)
887
887
  };
888
888
  }
889
889
  const [l, c] = useState(() => e.context);
890
890
  return useEffect(() => {
891
- const d = o().id, m = o().animations;
892
- m && d && bindAnimations(
891
+ const u = i().id, m = i().animations;
892
+ m && u && bindAnimations(
893
893
  m.filter((b) => b.trigger !== "hover").map((b) => ({
894
894
  ...b,
895
- elementId: d
895
+ elementId: u
896
896
  }))
897
897
  );
898
898
  }, []), /* @__PURE__ */ jsx(Fragment, { children: a() ? /* @__PURE__ */ jsxs(Fragment, { children: [
899
899
  /* @__PURE__ */ jsx(BlockStyles, { block: e.block, context: e.context }),
900
- (u = t == null ? void 0 : t()) != null && u.noWrap ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
900
+ (d = t == null ? void 0 : t()) != null && d.noWrap ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
901
901
  ComponentRef,
902
902
  {
903
903
  componentRef: s().componentRef,
@@ -910,11 +910,11 @@ function Block(e) {
910
910
  includeBlockProps: s().includeBlockProps,
911
911
  isInteractive: s().isInteractive
912
912
  }
913
- ) }) : /* @__PURE__ */ jsx(Fragment, { children: n() ? /* @__PURE__ */ jsx(Fragment, { children: (x = n()) == null ? void 0 : x.map((d, m) => /* @__PURE__ */ jsx(
913
+ ) }) : /* @__PURE__ */ jsx(Fragment, { children: n() ? /* @__PURE__ */ jsx(Fragment, { children: (x = n()) == null ? void 0 : x.map((u, m) => /* @__PURE__ */ jsx(
914
914
  RepeatedBlock,
915
915
  {
916
- repeatContext: d.context,
917
- block: d.block,
916
+ repeatContext: u.context,
917
+ block: u.block,
918
918
  registeredComponents: e.registeredComponents,
919
919
  linkComponent: e.linkComponent
920
920
  },
@@ -922,8 +922,8 @@ function Block(e) {
922
922
  )) }) : /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(
923
923
  BlockWrapper,
924
924
  {
925
- Wrapper: i(),
926
- block: o(),
925
+ Wrapper: o(),
926
+ block: i(),
927
927
  context: e.context,
928
928
  linkComponent: e.linkComponent,
929
929
  children: [
@@ -941,15 +941,15 @@ function Block(e) {
941
941
  isInteractive: s().isInteractive
942
942
  }
943
943
  ),
944
- (y = r()) == null ? void 0 : y.map((d) => /* @__PURE__ */ jsx(
944
+ (y = r()) == null ? void 0 : y.map((u) => /* @__PURE__ */ jsx(
945
945
  Block,
946
946
  {
947
- block: d,
947
+ block: u,
948
948
  context: l,
949
949
  registeredComponents: e.registeredComponents,
950
950
  linkComponent: e.linkComponent
951
951
  },
952
- d.id
952
+ u.id
953
953
  ))
954
954
  ]
955
955
  }
@@ -958,12 +958,12 @@ function Block(e) {
958
958
  }
959
959
  function BlocksWrapper(e) {
960
960
  function t() {
961
- var i;
962
- return "builder-blocks" + ((i = e.blocks) != null && i.length ? "" : " no-blocks");
961
+ var o;
962
+ return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
963
963
  }
964
964
  function n() {
965
- var i, a;
966
- isEditing() && !((i = e.blocks) != null && i.length) && ((a = window.parent) == null || a.postMessage(
965
+ var o, a;
966
+ isEditing() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
967
967
  {
968
968
  type: "builder.clickEmptyBlocks",
969
969
  data: {
@@ -974,9 +974,9 @@ function BlocksWrapper(e) {
974
974
  "*"
975
975
  ));
976
976
  }
977
- function o() {
978
- var i, a;
979
- isEditing() && !((i = e.blocks) != null && i.length) && ((a = window.parent) == null || a.postMessage(
977
+ function i() {
978
+ var o, a;
979
+ isEditing() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
980
980
  {
981
981
  type: "builder.hoverEmptyBlocks",
982
982
  data: {
@@ -991,18 +991,18 @@ function BlocksWrapper(e) {
991
991
  /* @__PURE__ */ jsx(
992
992
  e.BlocksWrapper,
993
993
  {
994
- className: t() + " props-blocks-wrapper-4f2c12d8",
994
+ className: t() + " props-blocks-wrapper-7354e098",
995
995
  "builder-path": e.path,
996
996
  "builder-parent-id": e.parent,
997
997
  style: e.styleProp,
998
- onClick: (i) => n(),
999
- onMouseEnter: (i) => o(),
1000
- onKeyPress: (i) => n(),
998
+ onClick: (o) => n(),
999
+ onMouseEnter: (o) => i(),
1000
+ onKeyPress: (o) => n(),
1001
1001
  ...e.BlocksWrapperProps,
1002
1002
  children: e.children
1003
1003
  }
1004
1004
  ),
1005
- /* @__PURE__ */ jsx("style", { children: `.props-blocks-wrapper-4f2c12d8 {
1005
+ /* @__PURE__ */ jsx("style", { children: `.props-blocks-wrapper-7354e098 {
1006
1006
  display: flex;
1007
1007
  flex-direction: column;
1008
1008
  align-items: stretch;
@@ -1010,7 +1010,7 @@ function BlocksWrapper(e) {
1010
1010
  ] });
1011
1011
  }
1012
1012
  function Blocks(e) {
1013
- var o, i, a;
1013
+ var i, o, a;
1014
1014
  const t = useContext(builderContext), n = useContext(ComponentsContext);
1015
1015
  return /* @__PURE__ */ jsx(
1016
1016
  BlocksWrapper,
@@ -1019,8 +1019,8 @@ function Blocks(e) {
1019
1019
  parent: e.parent,
1020
1020
  path: e.path,
1021
1021
  styleProp: e.styleProp,
1022
- BlocksWrapper: (o = e.context) == null ? void 0 : o.BlocksWrapper,
1023
- BlocksWrapperProps: (i = e.context) == null ? void 0 : i.BlocksWrapperProps,
1022
+ BlocksWrapper: (i = e.context) == null ? void 0 : i.BlocksWrapper,
1023
+ BlocksWrapperProps: (o = e.context) == null ? void 0 : o.BlocksWrapperProps,
1024
1024
  children: e.blocks ? /* @__PURE__ */ jsx(Fragment, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ jsx(
1025
1025
  Block,
1026
1026
  {
@@ -1038,15 +1038,15 @@ function Columns(e) {
1038
1038
  var R;
1039
1039
  const [t, n] = useState(
1040
1040
  () => typeof e.space == "number" ? e.space || 0 : 20
1041
- ), [o, i] = useState(() => e.columns || []), [a, r] = useState(
1041
+ ), [i, o] = useState(() => e.columns || []), [a, r] = useState(
1042
1042
  () => e.stackColumnsAt || "tablet"
1043
1043
  );
1044
1044
  function s(S) {
1045
1045
  var k;
1046
- return ((k = o[S]) == null ? void 0 : k.width) || 100 / o.length;
1046
+ return ((k = i[S]) == null ? void 0 : k.width) || 100 / i.length;
1047
1047
  }
1048
1048
  function l(S) {
1049
- const k = t * (o.length - 1) / o.length;
1049
+ const k = t * (i.length - 1) / i.length;
1050
1050
  return `calc(${s(S)}% - ${k}px)`;
1051
1051
  }
1052
1052
  function c({
@@ -1055,7 +1055,7 @@ function Columns(e) {
1055
1055
  }) {
1056
1056
  return a === "tablet" ? S : k;
1057
1057
  }
1058
- function u({
1058
+ function d({
1059
1059
  stackedStyle: S,
1060
1060
  desktopStyle: k
1061
1061
  }) {
@@ -1064,7 +1064,7 @@ function Columns(e) {
1064
1064
  const [y, x] = useState(
1065
1065
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
1066
1066
  );
1067
- function d() {
1067
+ function u() {
1068
1068
  return {
1069
1069
  "--flex-dir": y,
1070
1070
  "--flex-dir-tablet": c({
@@ -1083,11 +1083,11 @@ function Columns(e) {
1083
1083
  },
1084
1084
  width: w,
1085
1085
  ["marginLeft"]: E,
1086
- "--column-width-mobile": u({
1086
+ "--column-width-mobile": d({
1087
1087
  stackedStyle: B,
1088
1088
  desktopStyle: w
1089
1089
  }),
1090
- "--column-margin-left-mobile": u({
1090
+ "--column-margin-left-mobile": d({
1091
1091
  stackedStyle: A,
1092
1092
  desktopStyle: E
1093
1093
  }),
@@ -1138,8 +1138,8 @@ function Columns(e) {
1138
1138
  /* @__PURE__ */ jsxs(
1139
1139
  "div",
1140
1140
  {
1141
- className: `builder-columns ${e.builderBlock.id}-breakpoints div-002fb3ba`,
1142
- style: d(),
1141
+ className: `builder-columns ${e.builderBlock.id}-breakpoints div-1046d78c`,
1142
+ style: u(),
1143
1143
  children: [
1144
1144
  /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(InlinedStyles, { styles: I() }) }),
1145
1145
  (R = e.columns) == null ? void 0 : R.map((S, k) => /* @__PURE__ */ jsx(
@@ -1174,7 +1174,7 @@ function Columns(e) {
1174
1174
  ]
1175
1175
  }
1176
1176
  ),
1177
- /* @__PURE__ */ jsx("style", { children: `.div-002fb3ba {
1177
+ /* @__PURE__ */ jsx("style", { children: `.div-1046d78c {
1178
1178
  display: flex;
1179
1179
  line-height: normal;
1180
1180
  }` })
@@ -1187,8 +1187,8 @@ function removeProtocol(e) {
1187
1187
  return e.replace(/http(s)?:/, "");
1188
1188
  }
1189
1189
  function updateQueryParam(e = "", t, n) {
1190
- const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), i = e.indexOf("?") !== -1 ? "&" : "?";
1191
- return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + i + t + "=" + encodeURIComponent(n);
1190
+ const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
1191
+ return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
1192
1192
  }
1193
1193
  function getShopifyImageUrl(e, t) {
1194
1194
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
@@ -1197,8 +1197,8 @@ function getShopifyImageUrl(e, t) {
1197
1197
  return removeProtocol(e);
1198
1198
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1199
1199
  if (n) {
1200
- const o = e.split(n[0]), i = n[3], a = t.match("x") ? t : `${t}x`;
1201
- return removeProtocol(`${o[0]}_${a}${i}`);
1200
+ const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
1201
+ return removeProtocol(`${i[0]}_${a}${o}`);
1202
1202
  }
1203
1203
  return null;
1204
1204
  }
@@ -1208,21 +1208,21 @@ function getSrcSet(e) {
1208
1208
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1209
1209
  if (e.match(/builder\.io/)) {
1210
1210
  let n = e;
1211
- const o = Number(e.split("?width=")[1]);
1212
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((i) => i !== o).map((i) => `${updateQueryParam(e, "width", i)} ${i}w`).concat([n]).join(", ");
1211
+ const i = Number(e.split("?width=")[1]);
1212
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${updateQueryParam(e, "width", o)} ${o}w`).concat([n]).join(", ");
1213
1213
  }
1214
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [getShopifyImageUrl(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1214
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [getShopifyImageUrl(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1215
1215
  }
1216
1216
  function Image(e) {
1217
- var i, a, r, s;
1217
+ var o, a, r, s;
1218
1218
  function t() {
1219
- var u;
1219
+ var d;
1220
1220
  const c = e.image || e.src;
1221
1221
  if (!c || // We can auto add srcset for cdn.builder.io and shopify
1222
1222
  // images, otherwise you can supply this prop manually
1223
1223
  !(c.match(/builder\.io/) || c.match(/cdn\.shopify\.com/)))
1224
1224
  return e.srcset;
1225
- if (e.srcset && ((u = e.image) != null && u.includes("builder.io/api/v1/image"))) {
1225
+ if (e.srcset && ((d = e.image) != null && d.includes("builder.io/api/v1/image"))) {
1226
1226
  if (!e.srcset.includes(e.image.split("?")[0]))
1227
1227
  return console.debug("Removed given srcset"), getSrcSet(c);
1228
1228
  } else if (e.image && !e.srcset)
@@ -1233,7 +1233,7 @@ function Image(e) {
1233
1233
  var l;
1234
1234
  return (l = t == null ? void 0 : t()) != null && l.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
1235
1235
  }
1236
- function o() {
1236
+ function i() {
1237
1237
  const l = {
1238
1238
  position: "absolute",
1239
1239
  height: "100%",
@@ -1256,7 +1256,7 @@ function Image(e) {
1256
1256
  style: {
1257
1257
  objectPosition: e.backgroundPosition || "center",
1258
1258
  objectFit: e.backgroundSize || "cover",
1259
- ...o()
1259
+ ...i()
1260
1260
  },
1261
1261
  className: "builder-image" + (e.className ? " " + e.className : "") + " img-40c70c9b",
1262
1262
  src: e.image,
@@ -1265,7 +1265,7 @@ function Image(e) {
1265
1265
  }
1266
1266
  )
1267
1267
  ] }),
1268
- e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
1268
+ e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
1269
1269
  "div",
1270
1270
  {
1271
1271
  className: "builder-image-sizer div-40c70c9b",
@@ -1524,12 +1524,12 @@ const componentInfo$f = {
1524
1524
  }],
1525
1525
  onChange: (e) => {
1526
1526
  function t() {
1527
- n.forEach((o) => {
1528
- o.delete("width");
1527
+ n.forEach((i) => {
1528
+ i.delete("width");
1529
1529
  });
1530
1530
  }
1531
1531
  const n = e.get("columns");
1532
- Array.isArray(n) && n.find((i) => i.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((s, l) => s + l.get("width"), 0) !== 100) && t();
1532
+ Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((s, l) => s + l.get("width"), 0) !== 100) && t();
1533
1533
  }
1534
1534
  }, {
1535
1535
  name: "space",
@@ -1579,27 +1579,27 @@ const componentInfo$f = {
1579
1579
  e.delete("srcset"), e.delete("noWebp");
1580
1580
  function n(r, s = 6e4) {
1581
1581
  return new Promise((l, c) => {
1582
- const u = document.createElement("img");
1582
+ const d = document.createElement("img");
1583
1583
  let y = !1;
1584
- u.onload = () => {
1585
- y = !0, l(u);
1586
- }, u.addEventListener("error", (x) => {
1584
+ d.onload = () => {
1585
+ y = !0, l(d);
1586
+ }, d.addEventListener("error", (x) => {
1587
1587
  console.warn("Image load failed", x.error), c(x.error);
1588
- }), u.src = r, setTimeout(() => {
1588
+ }), d.src = r, setTimeout(() => {
1589
1589
  y || c(new Error("Image load timed out"));
1590
1590
  }, s);
1591
1591
  });
1592
1592
  }
1593
- function o(r) {
1593
+ function i(r) {
1594
1594
  return Math.round(r * 1e3) / 1e3;
1595
1595
  }
1596
- const i = e.get("image"), a = e.get("aspectRatio");
1597
- if (fetch(i).then((r) => r.blob()).then((r) => {
1596
+ const o = e.get("image"), a = e.get("aspectRatio");
1597
+ if (fetch(o).then((r) => r.blob()).then((r) => {
1598
1598
  r.type.includes("svg") && e.set("noWebp", !0);
1599
- }), i && (!a || a === 0.7041))
1600
- return n(i).then((r) => {
1599
+ }), o && (!a || a === 0.7041))
1600
+ return n(o).then((r) => {
1601
1601
  const s = e.get("aspectRatio");
1602
- e.get("image") === i && (!s || s === 0.7041) && r.width && r.height && (e.set("aspectRatio", o(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
1602
+ e.get("image") === o && (!s || s === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
1603
1603
  });
1604
1604
  }
1605
1605
  }, {
@@ -1711,7 +1711,7 @@ const componentInfo$f = {
1711
1711
  }]
1712
1712
  };
1713
1713
  function Slot(e) {
1714
- var t, n, o;
1714
+ var t, n, i;
1715
1715
  return /* @__PURE__ */ jsx(
1716
1716
  "div",
1717
1717
  {
@@ -1727,7 +1727,7 @@ function Slot(e) {
1727
1727
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
1728
1728
  path: `symbol.data.${e.name}`,
1729
1729
  context: e.builderContext,
1730
- blocks: (o = e.builderContext.rootState) == null ? void 0 : o[e.name]
1730
+ blocks: (i = e.builderContext.rootState) == null ? void 0 : i[e.name]
1731
1731
  }
1732
1732
  )
1733
1733
  }
@@ -1822,7 +1822,7 @@ const componentInfo$7 = {
1822
1822
  }]
1823
1823
  };
1824
1824
  function CustomCode(e) {
1825
- const t = useRef(null), [n, o] = useState(() => []), [i, a] = useState(() => []);
1825
+ const t = useRef(null), [n, i] = useState(() => []), [o, a] = useState(() => []);
1826
1826
  return useEffect(() => {
1827
1827
  var s;
1828
1828
  if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
@@ -1834,19 +1834,19 @@ function CustomCode(e) {
1834
1834
  if (n.includes(c.src))
1835
1835
  continue;
1836
1836
  n.push(c.src);
1837
- const u = document.createElement("script");
1838
- u.async = !0, u.src = c.src, document.head.appendChild(u);
1837
+ const d = document.createElement("script");
1838
+ d.async = !0, d.src = c.src, document.head.appendChild(d);
1839
1839
  } else if (!c.type || [
1840
1840
  "text/javascript",
1841
1841
  "application/javascript",
1842
1842
  "application/ecmascript"
1843
1843
  ].includes(c.type)) {
1844
- if (i.includes(c.innerText))
1844
+ if (o.includes(c.innerText))
1845
1845
  continue;
1846
1846
  try {
1847
- i.push(c.innerText), new Function(c.innerText)();
1848
- } catch (u) {
1849
- console.warn("`CustomCode`: Error running script:", u);
1847
+ o.push(c.innerText), new Function(c.innerText)();
1848
+ } catch (d) {
1849
+ console.warn("`CustomCode`: Error running script:", d);
1850
1850
  }
1851
1851
  }
1852
1852
  }
@@ -1871,9 +1871,9 @@ const componentInfo$6 = {
1871
1871
  onChange: (e) => {
1872
1872
  const t = e.get("url");
1873
1873
  if (t)
1874
- return e.set("content", "Loading..."), fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then((o) => o.json()).then((o) => {
1875
- e.get("url") === t && (o.html ? e.set("content", o.html) : e.set("content", "Invalid url, please try another"));
1876
- }).catch((o) => {
1874
+ return e.set("content", "Loading..."), fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then((i) => i.json()).then((i) => {
1875
+ e.get("url") === t && (i.html ? e.set("content", i.html) : e.set("content", "Invalid url, please try another"));
1876
+ }).catch((i) => {
1877
1877
  e.set("content", "There was an error embedding this URL, please try again or another URL");
1878
1878
  });
1879
1879
  e.delete("content");
@@ -1886,20 +1886,20 @@ const componentInfo$6 = {
1886
1886
  }]
1887
1887
  }, SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "application/ecmascript"], isJsScript = (e) => SCRIPT_MIME_TYPES.includes(e.type);
1888
1888
  function Embed(e) {
1889
- const t = useRef(null), [n, o] = useState(() => []), [i, a] = useState(() => []), [r, s] = useState(() => !1);
1889
+ const t = useRef(null), [n, i] = useState(() => []), [o, a] = useState(() => []), [r, s] = useState(() => !1);
1890
1890
  function l() {
1891
1891
  if (!t.current || !t.current.getElementsByTagName)
1892
1892
  return;
1893
1893
  const c = t.current.getElementsByTagName("script");
1894
- for (let u = 0; u < c.length; u++) {
1895
- const y = c[u];
1894
+ for (let d = 0; d < c.length; d++) {
1895
+ const y = c[d];
1896
1896
  if (y.src && !n.includes(y.src)) {
1897
1897
  n.push(y.src);
1898
1898
  const x = document.createElement("script");
1899
1899
  x.async = !0, x.src = y.src, document.head.appendChild(x);
1900
- } else if (isJsScript(y) && !i.includes(y.innerText))
1900
+ } else if (isJsScript(y) && !o.includes(y.innerText))
1901
1901
  try {
1902
- i.push(y.innerText), new Function(y.innerText)();
1902
+ o.push(y.innerText), new Function(y.innerText)();
1903
1903
  } catch (x) {
1904
1904
  console.warn("`Embed`: Error running script:", x);
1905
1905
  }
@@ -2151,38 +2151,38 @@ const componentInfo$5 = {
2151
2151
  const e = process.env.NODE_ENV || "production";
2152
2152
  return validEnvList.includes(e) ? e : "production";
2153
2153
  }, get = (e, t, n) => {
2154
- const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((i, a) => i != null ? i[a] : i, e);
2155
- return o === void 0 || o === e ? n : o;
2154
+ const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
2155
+ return i === void 0 || i === e ? n : i;
2156
2156
  };
2157
2157
  function FormComponent(e) {
2158
2158
  var y, x;
2159
- const t = useRef(null), [n, o] = useState(() => "unsubmitted"), [i, a] = useState(() => null), [r, s] = useState(() => "");
2160
- function l(d) {
2159
+ const t = useRef(null), [n, i] = useState(() => "unsubmitted"), [o, a] = useState(() => null), [r, s] = useState(() => "");
2160
+ function l(u) {
2161
2161
  var b, I;
2162
2162
  const m = {
2163
2163
  ...e.builderContext.rootState,
2164
- ...d
2164
+ ...u
2165
2165
  };
2166
2166
  e.builderContext.rootSetState ? (I = (b = e.builderContext).rootSetState) == null || I.call(b, m) : e.builderContext.rootState = m;
2167
2167
  }
2168
2168
  function c() {
2169
2169
  return isEditing() && e.previewState || n;
2170
2170
  }
2171
- function u(d) {
2171
+ function d(u) {
2172
2172
  var b;
2173
2173
  const m = e.sendWithJs || e.sendSubmissionsTo === "email";
2174
2174
  if (e.sendSubmissionsTo === "zapier")
2175
- d.preventDefault();
2175
+ u.preventDefault();
2176
2176
  else if (m) {
2177
2177
  if (!(e.action || e.sendSubmissionsTo === "email")) {
2178
- d.preventDefault();
2178
+ u.preventDefault();
2179
2179
  return;
2180
2180
  }
2181
- d.preventDefault();
2182
- const I = d.currentTarget, R = e.customHeaders || {};
2181
+ u.preventDefault();
2182
+ const I = u.currentTarget, R = e.customHeaders || {};
2183
2183
  let S;
2184
2184
  const k = new FormData(I), w = Array.from(
2185
- d.currentTarget.querySelectorAll("input,select,textarea")
2185
+ u.currentTarget.querySelectorAll("input,select,textarea")
2186
2186
  ).filter((f) => !!f.name).map((f) => {
2187
2187
  let C;
2188
2188
  const F = f.name;
@@ -2222,7 +2222,7 @@ function FormComponent(e) {
2222
2222
  const B = new CustomEvent("presubmit", { detail: { body: S } });
2223
2223
  if (t.current && (t.current.dispatchEvent(B), B.defaultPrevented))
2224
2224
  return;
2225
- o("sending");
2225
+ i("sending");
2226
2226
  const A = `${getEnv() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2227
2227
  e.sendSubmissionsToEmail || ""
2228
2228
  )}&name=${encodeURIComponent(e.name || "")}`;
@@ -2237,7 +2237,7 @@ function FormComponent(e) {
2237
2237
  let j = get(C, e.errorMessagePath);
2238
2238
  j && (typeof j != "string" && (j = JSON.stringify(j)), s(j), l({ formErrorMessage: j }));
2239
2239
  }
2240
- if (a(C), o(f.ok ? "success" : "error"), f.ok) {
2240
+ if (a(C), i(f.ok ? "success" : "error"), f.ok) {
2241
2241
  const j = new CustomEvent("submit:success", {
2242
2242
  detail: { res: f, body: C }
2243
2243
  });
@@ -2260,7 +2260,7 @@ function FormComponent(e) {
2260
2260
  const C = new CustomEvent("submit:error", {
2261
2261
  detail: { error: f }
2262
2262
  });
2263
- t.current && (t.current.dispatchEvent(C), C.defaultPrevented) || (a(f), o("error"));
2263
+ t.current && (t.current.dispatchEvent(C), C.defaultPrevented) || (a(f), i("error"));
2264
2264
  }
2265
2265
  );
2266
2266
  }
@@ -2275,14 +2275,14 @@ function FormComponent(e) {
2275
2275
  action: !e.sendWithJs && e.action,
2276
2276
  method: e.method,
2277
2277
  name: e.name,
2278
- onSubmit: (d) => u(d),
2278
+ onSubmit: (u) => d(u),
2279
2279
  ...e.attributes,
2280
2280
  children: [
2281
2281
  " ",
2282
- e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ jsx(Fragment, { children: (x = (y = e.builderBlock) == null ? void 0 : y.children) == null ? void 0 : x.map((d, m) => /* @__PURE__ */ jsx(
2282
+ e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ jsx(Fragment, { children: (x = (y = e.builderBlock) == null ? void 0 : y.children) == null ? void 0 : x.map((u, m) => /* @__PURE__ */ jsx(
2283
2283
  Block,
2284
2284
  {
2285
- block: d,
2285
+ block: u,
2286
2286
  context: e.builderContext,
2287
2287
  registeredComponents: e.builderComponents,
2288
2288
  linkComponent: e.builderLinkComponent
@@ -2308,9 +2308,9 @@ function FormComponent(e) {
2308
2308
  }
2309
2309
  ) }) : null,
2310
2310
  " ",
2311
- c() === "error" && i ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("pre", { className: "builder-form-error-text pre-8fbb5280", children: [
2311
+ c() === "error" && o ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("pre", { className: "builder-form-error-text pre-25b9edf0", children: [
2312
2312
  " ",
2313
- JSON.stringify(i, null, 2),
2313
+ JSON.stringify(o, null, 2),
2314
2314
  " "
2315
2315
  ] }) }) : null,
2316
2316
  " ",
@@ -2327,7 +2327,7 @@ function FormComponent(e) {
2327
2327
  }
2328
2328
  ),
2329
2329
  " ",
2330
- /* @__PURE__ */ jsx("style", { children: ".pre-8fbb5280 { padding: 10px; color: red; text-align: center; }" }),
2330
+ /* @__PURE__ */ jsx("style", { children: ".pre-25b9edf0 { padding: 10px; color: red; text-align: center; }" }),
2331
2331
  " "
2332
2332
  ] });
2333
2333
  }
@@ -2527,7 +2527,7 @@ const componentInfo = {
2527
2527
  type: "file",
2528
2528
  allowedFileTypes: ["mp4"],
2529
2529
  bubble: !0,
2530
- defaultValue: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/assets%2FKQlEmWDxA0coC3PK6UvkrjwkIGI2%2F28cb070609f546cdbe5efa20e931aa4b?alt=media&token=912e9551-7a7c-4dfb-86b6-3da1537d1a7f",
2530
+ defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
2531
2531
  required: !0
2532
2532
  }, {
2533
2533
  name: "posterImage",
@@ -2597,7 +2597,7 @@ const componentInfo = {
2597
2597
  }]
2598
2598
  };
2599
2599
  function Video(e) {
2600
- var o, i, a, r, s, l, c;
2600
+ var i, o, a, r, s, l, c;
2601
2601
  function t() {
2602
2602
  return {
2603
2603
  ...e.autoPlay === !0 ? {
@@ -2638,7 +2638,7 @@ function Video(e) {
2638
2638
  style: {
2639
2639
  width: "100%",
2640
2640
  height: "100%",
2641
- ...(o = e.attributes) == null ? void 0 : o.style,
2641
+ ...(i = e.attributes) == null ? void 0 : i.style,
2642
2642
  objectFit: e.fit,
2643
2643
  objectPosition: e.position,
2644
2644
  // Hack to get object fit to work as expected and
@@ -2654,7 +2654,7 @@ function Video(e) {
2654
2654
  children: e.lazyLoad ? null : /* @__PURE__ */ jsx("source", { type: "video/mp4", src: e.video })
2655
2655
  }
2656
2656
  ),
2657
- e.aspectRatio && !(e.fitContent && ((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length)) ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
2657
+ e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
2658
2658
  "div",
2659
2659
  {
2660
2660
  style: {
@@ -2869,13 +2869,13 @@ function round(e) {
2869
2869
  const findParentElement = (e, t, n = !0) => {
2870
2870
  if (!(e instanceof HTMLElement))
2871
2871
  return null;
2872
- let o = n ? e : e.parentElement;
2872
+ let i = n ? e : e.parentElement;
2873
2873
  do {
2874
- if (!o)
2874
+ if (!i)
2875
2875
  return null;
2876
- if (t(o))
2877
- return o;
2878
- } while (o = o.parentElement);
2876
+ if (t(i))
2877
+ return i;
2878
+ } while (i = i.parentElement);
2879
2879
  return null;
2880
2880
  }, findBuilderParent = (e) => findParentElement(e, (t) => {
2881
2881
  const n = t.getAttribute("builder-id") || t.id;
@@ -2884,15 +2884,15 @@ const findParentElement = (e, t, n = !0) => {
2884
2884
  event: e,
2885
2885
  target: t
2886
2886
  }) => {
2887
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, i = e.clientY - n.top, a = round(o / n.width), r = round(i / n.height);
2887
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = round(i / n.width), r = round(o / n.height);
2888
2888
  return {
2889
2889
  x: a,
2890
2890
  y: r
2891
2891
  };
2892
2892
  }, getInteractionPropertiesForEvent = (e) => {
2893
- const t = e.target, n = t && findBuilderParent(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2893
+ const t = e.target, n = t && findBuilderParent(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2894
2894
  return {
2895
- targetBuilderElement: o || void 0,
2895
+ targetBuilderElement: i || void 0,
2896
2896
  metadata: {
2897
2897
  targetOffset: t ? computeOffset({
2898
2898
  event: e,
@@ -2902,15 +2902,15 @@ const findParentElement = (e, t, n = !0) => {
2902
2902
  event: e,
2903
2903
  target: n
2904
2904
  }) : void 0,
2905
- builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
2905
+ builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
2906
2906
  }
2907
2907
  };
2908
2908
  };
2909
2909
  function EnableEditor(e) {
2910
2910
  var A, f, C, F, j, V, $;
2911
- const t = useRef(null), [n, o] = useState(() => 0);
2911
+ const t = useRef(null), [n, i] = useState(() => 0);
2912
2912
  useState(() => !0);
2913
- function i(g) {
2913
+ function o(g) {
2914
2914
  var p, v;
2915
2915
  const h = {
2916
2916
  ...e.builderContextSignal.rootState,
@@ -2947,7 +2947,7 @@ function EnableEditor(e) {
2947
2947
  ), [l, c] = useState(
2948
2948
  () => e.contentWrapper || "div"
2949
2949
  );
2950
- function u(g) {
2950
+ function d(g) {
2951
2951
  return createEditorListener({
2952
2952
  model: e.model,
2953
2953
  trustedHosts: e.trustedHosts,
@@ -2959,13 +2959,13 @@ function EnableEditor(e) {
2959
2959
  meta: {
2960
2960
  breakpoints: p
2961
2961
  }
2962
- }), o(n + 1));
2962
+ }), i(n + 1));
2963
2963
  },
2964
2964
  animation: (h) => {
2965
2965
  triggerAnimation(h);
2966
2966
  },
2967
2967
  contentUpdate: (h) => {
2968
- a(h), o(n + 1);
2968
+ a(h), i(n + 1);
2969
2969
  }
2970
2970
  }
2971
2971
  })(g);
@@ -2981,7 +2981,7 @@ function EnableEditor(e) {
2981
2981
  rootSetState: e.builderContextSignal.rootSetState
2982
2982
  });
2983
2983
  }
2984
- const [x, d] = useState(() => ({})), [m, b] = useState(() => !1);
2984
+ const [x, u] = useState(() => ({})), [m, b] = useState(() => !1);
2985
2985
  function I(g) {
2986
2986
  var h, p;
2987
2987
  if (e.builderContextSignal.content) {
@@ -3051,7 +3051,7 @@ function EnableEditor(e) {
3051
3051
  );
3052
3052
  }
3053
3053
  function E(g) {
3054
- o(n + 1), window.addEventListener("message", u), registerInsertMenu(), setupBrowserForEditing({
3054
+ i(n + 1), window.addEventListener("message", d), registerInsertMenu(), setupBrowserForEditing({
3055
3055
  ...e.locale ? {
3056
3056
  locale: e.locale
3057
3057
  } : {},
@@ -3140,13 +3140,13 @@ function EnableEditor(e) {
3140
3140
  }, [(F = (C = e.builderContextSignal.content) == null ? void 0 : C.data) == null ? void 0 : F.httpRequests]), useEffect(() => {
3141
3141
  w();
3142
3142
  }, [e.builderContextSignal.rootState]), useEffect(() => {
3143
- e.data && i(e.data);
3143
+ e.data && o(e.data);
3144
3144
  }, [e.data]), useEffect(() => {
3145
- e.locale && i({
3145
+ e.locale && o({
3146
3146
  locale: e.locale
3147
3147
  });
3148
3148
  }, [e.locale]), useEffect(() => () => {
3149
- isBrowser() && (window.removeEventListener("message", u), window.removeEventListener(
3149
+ isBrowser() && (window.removeEventListener("message", d), window.removeEventListener(
3150
3150
  "builder:component:stateChangeListenerActivated",
3151
3151
  w
3152
3152
  ));
@@ -3170,12 +3170,12 @@ function EnableEditor(e) {
3170
3170
  }
3171
3171
  const getCssFromFont = (e) => {
3172
3172
  var a, r;
3173
- const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = (r = e.fileUrl) != null ? r : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
3174
- let i = "";
3175
- if (o && t && n && (i += `
3173
+ 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;
3174
+ let o = "";
3175
+ if (i && t && n && (o += `
3176
3176
  @font-face {
3177
3177
  font-family: "${t}";
3178
- src: local("${n}"), url('${o}') format('woff2');
3178
+ src: local("${n}"), url('${i}') format('woff2');
3179
3179
  font-display: fallback;
3180
3180
  font-weight: 400;
3181
3181
  }
@@ -3184,7 +3184,7 @@ font-weight: 400;
3184
3184
  if (!(String(Number(s)) === s))
3185
3185
  continue;
3186
3186
  const c = e.files[s];
3187
- c && c !== o && (i += `
3187
+ c && c !== i && (o += `
3188
3188
  @font-face {
3189
3189
  font-family: "${t}";
3190
3190
  src: url('${c}') format('woff2');
@@ -3193,7 +3193,7 @@ font-weight: ${s};
3193
3193
  }
3194
3194
  `.trim());
3195
3195
  }
3196
- return i;
3196
+ return o;
3197
3197
  }, getFontCss = ({
3198
3198
  customFonts: e
3199
3199
  }) => {
@@ -3240,12 +3240,12 @@ const getRootStateInitialValue = ({
3240
3240
  locale: n
3241
3241
  }) => {
3242
3242
  var a, r, s;
3243
- const o = {}, i = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
3243
+ const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
3244
3244
  return (s = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || s.forEach((l) => {
3245
- l.name && l.defaultValue !== void 0 && (o[l.name] = l.defaultValue);
3245
+ l.name && l.defaultValue !== void 0 && (i[l.name] = l.defaultValue);
3246
3246
  }), {
3247
- ...o,
3248
3247
  ...i,
3248
+ ...o,
3249
3249
  ...t,
3250
3250
  ...n ? {
3251
3251
  locale: n
@@ -3263,7 +3263,7 @@ const getRootStateInitialValue = ({
3263
3263
  meta: e == null ? void 0 : e.meta
3264
3264
  } : void 0;
3265
3265
  function ContentComponent(e) {
3266
- var l, c, u, y, x, d, m;
3266
+ var l, c, d, y, x, u, m;
3267
3267
  const [t, n] = useState(
3268
3268
  () => {
3269
3269
  var b, I;
@@ -3275,13 +3275,13 @@ function ContentComponent(e) {
3275
3275
  });
3276
3276
  }
3277
3277
  );
3278
- function o(b) {
3278
+ function i(b) {
3279
3279
  s((I) => ({
3280
3280
  ...I,
3281
3281
  rootState: b
3282
3282
  }));
3283
3283
  }
3284
- const [i, a] = useState(
3284
+ const [o, a] = useState(
3285
3285
  () => [
3286
3286
  ...getDefaultRegisteredComponents(),
3287
3287
  // While this `components` object is deprecated, we must maintain support for it.
@@ -3312,7 +3312,7 @@ function ContentComponent(e) {
3312
3312
  data: e.data,
3313
3313
  locale: e.locale
3314
3314
  }),
3315
- rootSetState: o,
3315
+ rootSetState: i,
3316
3316
  context: e.context || {},
3317
3317
  apiKey: e.apiKey,
3318
3318
  apiVersion: e.apiVersion,
@@ -3340,7 +3340,7 @@ function ContentComponent(e) {
3340
3340
  ComponentsContext.Provider,
3341
3341
  {
3342
3342
  value: {
3343
- registeredComponents: i
3343
+ registeredComponents: o
3344
3344
  },
3345
3345
  children: /* @__PURE__ */ jsxs(
3346
3346
  EnableEditor,
@@ -3367,16 +3367,16 @@ function ContentComponent(e) {
3367
3367
  ContentStyles,
3368
3368
  {
3369
3369
  contentId: (l = r.content) == null ? void 0 : l.id,
3370
- cssCode: (u = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : u.cssCode,
3370
+ cssCode: (d = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : d.cssCode,
3371
3371
  customFonts: (x = (y = r.content) == null ? void 0 : y.data) == null ? void 0 : x.customFonts
3372
3372
  }
3373
3373
  ) }),
3374
3374
  /* @__PURE__ */ jsx(
3375
3375
  Blocks,
3376
3376
  {
3377
- blocks: (m = (d = r.content) == null ? void 0 : d.data) == null ? void 0 : m.blocks,
3377
+ blocks: (m = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : m.blocks,
3378
3378
  context: r,
3379
- registeredComponents: i,
3379
+ registeredComponents: o,
3380
3380
  linkComponent: e.linkComponent
3381
3381
  }
3382
3382
  )
@@ -3394,7 +3394,7 @@ function ContentVariants(e) {
3394
3394
  content: e.content
3395
3395
  })
3396
3396
  );
3397
- function o() {
3397
+ function i() {
3398
3398
  var l;
3399
3399
  return getUpdateCookieAndStylesScript(
3400
3400
  getVariants(e.content).map((c) => ({
@@ -3404,7 +3404,7 @@ function ContentVariants(e) {
3404
3404
  ((l = e.content) == null ? void 0 : l.id) || ""
3405
3405
  );
3406
3406
  }
3407
- function i() {
3407
+ function o() {
3408
3408
  return getVariants(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
3409
3409
  }
3410
3410
  function a() {
@@ -3425,10 +3425,10 @@ function ContentVariants(e) {
3425
3425
  InlinedStyles,
3426
3426
  {
3427
3427
  id: `variants-styles-${(r = e.content) == null ? void 0 : r.id}`,
3428
- styles: i()
3428
+ styles: o()
3429
3429
  }
3430
3430
  ),
3431
- /* @__PURE__ */ jsx(InlinedScript, { scriptStr: o() }),
3431
+ /* @__PURE__ */ jsx(InlinedScript, { scriptStr: i() }),
3432
3432
  (s = getVariants(e.content)) == null ? void 0 : s.map((l) => /* @__PURE__ */ jsx(
3433
3433
  ContentComponent,
3434
3434
  {
@@ -3503,29 +3503,29 @@ const fetchSymbolContent = async ({
3503
3503
  function Symbol$1(e) {
3504
3504
  var a, r, s, l;
3505
3505
  function t() {
3506
- var c, u;
3506
+ var c, d;
3507
3507
  return [
3508
3508
  e.attributes[getClassPropName()],
3509
3509
  "builder-symbol",
3510
3510
  (c = e.symbol) != null && c.inline ? "builder-inline-symbol" : void 0,
3511
- (u = e.symbol) != null && u.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
3511
+ (d = e.symbol) != null && d.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
3512
3512
  ].filter(Boolean).join(" ");
3513
3513
  }
3514
- const [n, o] = useState(() => {
3514
+ const [n, i] = useState(() => {
3515
3515
  var c;
3516
3516
  return (c = e.symbol) == null ? void 0 : c.content;
3517
3517
  });
3518
- function i() {
3518
+ function o() {
3519
3519
  n || fetchSymbolContent({
3520
3520
  symbol: e.symbol,
3521
3521
  builderContextValue: e.builderContext
3522
3522
  }).then((c) => {
3523
- c && o(c);
3523
+ c && i(c);
3524
3524
  });
3525
3525
  }
3526
3526
  return useEffect(() => {
3527
3527
  }, []), useEffect(() => {
3528
- i();
3528
+ o();
3529
3529
  }, [e.symbol]), /* @__PURE__ */ jsx("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ jsx(
3530
3530
  ContentVariants,
3531
3531
  {