@builder.io/sdk-react 1.0.16 → 1.0.17

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 (49) hide show
  1. package/lib/browser/blocks-exports.cjs +21 -21
  2. package/lib/browser/blocks-exports.mjs +497 -506
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/{server-entry-afeff3cb.js → server-entry-064a8b7f.js} +1 -1
  6. package/lib/browser/{server-entry-11e01841.cjs → server-entry-a7b75909.cjs} +1 -1
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/{blocks-a0a9d452.cjs → blocks-1f59d1c0.cjs} +1 -1
  10. package/lib/edge/blocks-exports.cjs +1 -1
  11. package/lib/edge/blocks-exports.mjs +2 -2
  12. package/lib/edge/{blocks-8e5cc463.js → blocks-fe027bf7.js} +2 -2
  13. package/lib/edge/{button-66c46316.cjs → button-36ac5d97.cjs} +1 -1
  14. package/lib/edge/{button-764707c4.js → button-8fdd068a.js} +2 -2
  15. package/lib/edge/{columns-0a14db0e.cjs → columns-36bdc015.cjs} +1 -1
  16. package/lib/edge/{columns-0bdc7586.js → columns-4f789807.js} +3 -3
  17. package/lib/edge/content-variants-87f99284.cjs +134 -0
  18. package/lib/edge/{content-variants-db1e0281.js → content-variants-a26825d5.js} +229 -238
  19. package/lib/edge/{form-7a6f998f.js → form-004ab04e.js} +3 -3
  20. package/lib/edge/{form-a5d18c89.cjs → form-6b599bb9.cjs} +1 -1
  21. package/lib/edge/{get-class-prop-name-bbc4d2f3.cjs → get-class-prop-name-522545c4.cjs} +1 -1
  22. package/lib/edge/{get-class-prop-name-49cbb2c6.js → get-class-prop-name-ee5eac9d.js} +1 -1
  23. package/lib/edge/{img-c9630f56.js → img-5d36c59d.js} +1 -1
  24. package/lib/edge/{img-058cb6f0.cjs → img-d311451e.cjs} +1 -1
  25. package/lib/edge/index.cjs +1 -1
  26. package/lib/edge/index.mjs +1 -1
  27. package/lib/edge/{input-3de90790.js → input-211240f4.js} +1 -1
  28. package/lib/edge/{input-ceacd029.cjs → input-34a4e538.cjs} +1 -1
  29. package/lib/edge/{select-df72f987.cjs → select-a425b313.cjs} +1 -1
  30. package/lib/edge/{select-ee266e60.js → select-e592f42a.js} +1 -1
  31. package/lib/edge/{server-entry-ef266884.cjs → server-entry-04a076eb.cjs} +1 -1
  32. package/lib/edge/{server-entry-2b1068fd.js → server-entry-633c4fab.js} +1 -1
  33. package/lib/edge/server-entry.cjs +1 -1
  34. package/lib/edge/server-entry.mjs +1 -1
  35. package/lib/edge/{slot-83d735d6.cjs → slot-1547b467.cjs} +1 -1
  36. package/lib/edge/{slot-f246e67e.js → slot-20e9bd0c.js} +3 -3
  37. package/lib/edge/{symbol-991f09b3.cjs → symbol-441a42f8.cjs} +1 -1
  38. package/lib/edge/{symbol-f68a7357.js → symbol-8aa6a69b.js} +2 -2
  39. package/lib/node/blocks-exports.cjs +10 -10
  40. package/lib/node/blocks-exports.mjs +240 -249
  41. package/lib/node/index.cjs +1 -1
  42. package/lib/node/index.mjs +1 -1
  43. package/lib/node/{server-entry-a221fe66.js → server-entry-a2617044.js} +1 -1
  44. package/lib/node/{server-entry-4ba58cf3.cjs → server-entry-e66a06c7.cjs} +1 -1
  45. package/lib/node/server-entry.cjs +1 -1
  46. package/lib/node/server-entry.mjs +1 -1
  47. package/package.json +1 -1
  48. package/types/constants/sdk-version.d.ts +1 -1
  49. package/lib/edge/content-variants-c03ec7a1.cjs +0 -134
@@ -1,16 +1,16 @@
1
1
  "use client";
2
- var Le = Object.defineProperty;
3
- var De = (e, t, n) => t in e ? Le(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
- var ee = (e, t, n) => (De(e, typeof t != "symbol" ? t + "" : t, n), n);
5
- import { jsx as s, Fragment as T, jsxs as A } from "react/jsx-runtime";
6
- import { TARGET as q, isEditing as W, isBrowser as U, getUserAttributes as Me, checkIsDefined as Y, logger as j, fastClone as oe, registerInsertMenu as Oe, setupBrowserForEditing as Ue, createRegisterComponentMessage as je, getDefaultCanTrack as G, _track as ue, isPreviewing as He, fetchOneEntry as ke, createEditorListener as Ke, fetch as qe, serializeComponentInfo as me, handleABTestingSync as ze } from "./server-entry-afeff3cb.js";
7
- import { createContext as Ce, useState as w, useEffect as B, useContext as fe, useRef as X, createElement as we } from "react";
8
- const _e = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Je = (e) => typeof e == "string" && _e.has(e.toLowerCase());
2
+ var De = Object.defineProperty;
3
+ var Me = (e, t, n) => t in e ? De(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
+ var ee = (e, t, n) => (Me(e, typeof t != "symbol" ? t + "" : t, n), n);
5
+ import { jsx as s, Fragment as T, jsxs as B } from "react/jsx-runtime";
6
+ import { TARGET as z, isEditing as N, isBrowser as j, getUserAttributes as Oe, checkIsDefined as Y, logger as H, fastClone as oe, registerInsertMenu as Ue, setupBrowserForEditing as je, createRegisterComponentMessage as He, getDefaultCanTrack as G, _track as ue, isPreviewing as Ke, fetchOneEntry as ke, createEditorListener as qe, fetch as ze, serializeComponentInfo as me, handleABTestingSync as _e } from "./server-entry-064a8b7f.js";
7
+ import { createContext as Ce, useState as k, useEffect as V, useContext as fe, useRef as X, createElement as we } from "react";
8
+ const Je = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ye = (e) => typeof e == "string" && Je.has(e.toLowerCase());
9
9
  function ae(e) {
10
- return /* @__PURE__ */ s(T, { children: Je(e.TagName) ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(T, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
10
+ return /* @__PURE__ */ s(T, { children: Ye(e.TagName) ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(T, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
11
11
  }
12
- const H = () => {
13
- switch (q) {
12
+ const K = () => {
13
+ switch (z) {
14
14
  case "react":
15
15
  case "reactNative":
16
16
  case "rsc":
@@ -22,13 +22,13 @@ const H = () => {
22
22
  return "class";
23
23
  }
24
24
  };
25
- function Ye(e) {
25
+ function Ge(e) {
26
26
  return /* @__PURE__ */ s(
27
27
  ae,
28
28
  {
29
29
  attributes: {
30
30
  ...e.attributes,
31
- [H()]: `${e.link ? "" : "builder-button"} ${e.attributes[H()] || ""}`,
31
+ [K()]: `${e.link ? "" : "builder-button"} ${e.attributes[K()] || ""}`,
32
32
  ...e.link ? {
33
33
  href: e.link,
34
34
  target: e.openLinkInNewTab ? "_blank" : void 0,
@@ -57,7 +57,7 @@ const re = Ce({
57
57
  BlocksWrapper: "div",
58
58
  BlocksWrapperProps: {}
59
59
  }), Ie = Ce({ registeredComponents: {} });
60
- function Ge(e) {
60
+ function Qe(e) {
61
61
  var t;
62
62
  return {
63
63
  ...(t = e.component) == null ? void 0 : t.options,
@@ -68,7 +68,7 @@ function Ge(e) {
68
68
  builderBlock: e
69
69
  };
70
70
  }
71
- const Qe = ({
71
+ const Xe = ({
72
72
  builder: e,
73
73
  context: t,
74
74
  event: n,
@@ -80,12 +80,12 @@ const Qe = ({
80
80
  builder: e,
81
81
  context: t,
82
82
  event: n
83
- }), Xe = () => ({
84
- isEditing: W(),
85
- isBrowser: U(),
86
- isServer: !U(),
87
- getUserAttributes: () => Me()
88
- }), Ze = (e, {
83
+ }), Ze = () => ({
84
+ isEditing: N(),
85
+ isBrowser: j(),
86
+ isServer: !j(),
87
+ getUserAttributes: () => Oe()
88
+ }), et = (e, {
89
89
  isExpression: t = !0
90
90
  }) => /* 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, he = ({
91
91
  code: e,
@@ -96,7 +96,7 @@ const Qe = ({
96
96
  rootSetState: a,
97
97
  rootState: r
98
98
  }) => {
99
- const l = Qe({
99
+ const l = Xe({
100
100
  builder: t,
101
101
  context: n,
102
102
  event: i,
@@ -133,17 +133,17 @@ function Te({
133
133
  }
134
134
  });
135
135
  }
136
- function et() {
136
+ function tt() {
137
137
  var e;
138
138
  return typeof process != "undefined" && Y((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
139
139
  }
140
- const tt = () => {
140
+ const nt = () => {
141
141
  var i;
142
- if (!et())
142
+ if (!tt())
143
143
  return !1;
144
144
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
145
- return e && t && !n ? (j.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;
146
- }, nt = (e) => (U() || tt(), he(e)), N = class N {
145
+ return e && t && !n ? (H.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;
146
+ }, it = (e) => (j() || nt(), he(e)), F = class F {
147
147
  static getCacheKey(t) {
148
148
  return JSON.stringify({
149
149
  ...t,
@@ -153,17 +153,17 @@ const tt = () => {
153
153
  });
154
154
  }
155
155
  static getCachedValue(t) {
156
- return N.cache.get(t);
156
+ return F.cache.get(t);
157
157
  }
158
158
  static setCachedValue(t, n) {
159
- N.cache.size > 20 && N.cache.delete(N.cache.keys().next().value), N.cache.set(t, {
159
+ F.cache.size > 20 && F.cache.delete(F.cache.keys().next().value), F.cache.set(t, {
160
160
  value: n
161
161
  });
162
162
  }
163
163
  };
164
- ee(N, "cacheLimit", 20), ee(N, "cache", /* @__PURE__ */ new Map());
165
- let M = N;
166
- function K({
164
+ ee(F, "cacheLimit", 20), ee(F, "cache", /* @__PURE__ */ new Map());
165
+ let O = F;
166
+ function q({
167
167
  code: e,
168
168
  context: t,
169
169
  localState: n,
@@ -174,14 +174,14 @@ function K({
174
174
  enableCache: l
175
175
  }) {
176
176
  if (e === "") {
177
- j.warn("Skipping evaluation of empty code block.");
177
+ H.warn("Skipping evaluation of empty code block.");
178
178
  return;
179
179
  }
180
180
  const d = {
181
- code: Ze(e, {
181
+ code: et(e, {
182
182
  isExpression: r
183
183
  }),
184
- builder: Xe(),
184
+ builder: Ze(),
185
185
  context: t,
186
186
  event: a,
187
187
  rootSetState: o,
@@ -189,19 +189,19 @@ function K({
189
189
  localState: n
190
190
  };
191
191
  if (l) {
192
- const c = M.getCacheKey(d), m = M.getCachedValue(c);
192
+ const c = O.getCacheKey(d), m = O.getCachedValue(c);
193
193
  if (m)
194
194
  return m.value;
195
195
  }
196
196
  try {
197
- const c = nt(d);
197
+ const c = it(d);
198
198
  if (l) {
199
- const m = M.getCacheKey(d);
200
- M.setCachedValue(m, c);
199
+ const m = O.getCacheKey(d);
200
+ O.setCachedValue(m, c);
201
201
  }
202
202
  return c;
203
203
  } catch (c) {
204
- j.error("Failed code evaluation: " + c.message, {
204
+ H.error("Failed code evaluation: " + c.message, {
205
205
  code: e
206
206
  });
207
207
  return;
@@ -213,7 +213,7 @@ const Ee = (e, t, n) => {
213
213
  const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
214
214
  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;
215
215
  };
216
- const it = ({
216
+ const ot = ({
217
217
  block: e,
218
218
  context: t,
219
219
  localState: n,
@@ -232,7 +232,7 @@ const it = ({
232
232
  }
233
233
  };
234
234
  for (const l in e.bindings) {
235
- const d = e.bindings[l], c = K({
235
+ const d = e.bindings[l], c = q({
236
236
  code: d,
237
237
  localState: n,
238
238
  rootState: i,
@@ -253,7 +253,7 @@ function Q({
253
253
  rootSetState: a
254
254
  }) {
255
255
  const r = e;
256
- return n ? it({
256
+ return n ? ot({
257
257
  block: r,
258
258
  localState: i,
259
259
  rootState: o,
@@ -261,7 +261,7 @@ function Q({
261
261
  context: t
262
262
  }) : r;
263
263
  }
264
- function ot(e, t, n = {}) {
264
+ function at(e, t, n = {}) {
265
265
  let i, o, a, r = null, l = 0;
266
266
  const d = function() {
267
267
  l = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
@@ -273,7 +273,7 @@ function ot(e, t, n = {}) {
273
273
  return i = this, o = arguments, m <= 0 || m > t ? (r && (clearTimeout(r), r = null), l = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, m)), a;
274
274
  };
275
275
  }
276
- function L(e, ...t) {
276
+ function D(e, ...t) {
277
277
  const n = Object(e);
278
278
  for (let i = 1; i < arguments.length; i++) {
279
279
  const o = arguments[i];
@@ -284,17 +284,17 @@ function L(e, ...t) {
284
284
  return n;
285
285
  }
286
286
  const le = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
287
- function at(e) {
287
+ function rt(e) {
288
288
  for (const t of e)
289
289
  switch (t.trigger) {
290
290
  case "pageLoad":
291
291
  Re(t);
292
292
  break;
293
293
  case "hover":
294
- lt(t);
294
+ st(t);
295
295
  break;
296
296
  case "scrollInView":
297
- st(t);
297
+ ct(t);
298
298
  break;
299
299
  }
300
300
  }
@@ -302,12 +302,12 @@ function se(e) {
302
302
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
303
303
  }
304
304
  function ce(e, t) {
305
- const n = rt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
305
+ const n = lt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
306
306
  for (const l of r)
307
307
  for (const d of n)
308
308
  d in l || (l[d] = i[d]);
309
309
  }
310
- function rt(e) {
310
+ function lt(e) {
311
311
  const t = [];
312
312
  for (const n of e.steps)
313
313
  for (const i in n.styles)
@@ -321,14 +321,14 @@ function Re(e) {
321
321
  return;
322
322
  }
323
323
  Array.from(t).forEach((n) => {
324
- ce(e, n), n.style.transition = "none", n.style.transitionDelay = "0", L(n.style, e.steps[0].styles), setTimeout(() => {
325
- n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), L(n.style, e.steps[1].styles), setTimeout(() => {
324
+ ce(e, n), n.style.transition = "none", n.style.transitionDelay = "0", D(n.style, e.steps[0].styles), setTimeout(() => {
325
+ n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), D(n.style, e.steps[1].styles), setTimeout(() => {
326
326
  n.style.transition = "", n.style.transitionDelay = "";
327
327
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
328
328
  });
329
329
  });
330
330
  }
331
- function lt(e) {
331
+ function st(e) {
332
332
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
333
333
  if (!t.length) {
334
334
  se(e.elementId || e.id || "");
@@ -338,17 +338,17 @@ function lt(e) {
338
338
  ce(e, n);
339
339
  const i = e.steps[0].styles, o = e.steps[1].styles;
340
340
  function a() {
341
- L(n.style, i);
341
+ D(n.style, i);
342
342
  }
343
343
  function r() {
344
- L(n.style, o);
344
+ D(n.style, o);
345
345
  }
346
346
  a(), n.addEventListener("mouseenter", r), n.addEventListener("mouseleave", a), setTimeout(() => {
347
347
  n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
348
348
  });
349
349
  });
350
350
  }
351
- function st(e) {
351
+ function ct(e) {
352
352
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
353
353
  if (!t.length) {
354
354
  se(e.elementId || e.id || "");
@@ -359,21 +359,21 @@ function st(e) {
359
359
  let i = !1, o = !1;
360
360
  function a() {
361
361
  !i && l(n) ? (i = !0, o = !0, setTimeout(() => {
362
- L(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
362
+ D(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
363
363
  o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
364
364
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
365
- })) : e.repeat && i && !o && !l(n) && (i = !1, L(n.style, e.steps[0].styles));
365
+ })) : e.repeat && i && !o && !l(n) && (i = !1, D(n.style, e.steps[0].styles));
366
366
  }
367
- const r = ot(a, 200, {
367
+ const r = at(a, 200, {
368
368
  leading: !1
369
369
  });
370
370
  function l(m) {
371
- const h = m.getBoundingClientRect(), b = window.innerHeight, v = (e.thresholdPercent || 0) / 100 * b;
372
- return h.bottom > v && h.top < b - v;
371
+ const f = m.getBoundingClientRect(), g = window.innerHeight, S = (e.thresholdPercent || 0) / 100 * g;
372
+ return f.bottom > S && f.top < g - S;
373
373
  }
374
374
  const d = e.steps[0].styles;
375
375
  function c() {
376
- L(n.style, d);
376
+ D(n.style, d);
377
377
  }
378
378
  c(), setTimeout(() => {
379
379
  n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
@@ -383,37 +383,37 @@ function st(e) {
383
383
  }), a();
384
384
  });
385
385
  }
386
- const ct = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Pe = (e) => Object.entries(e).map(([n, i]) => {
386
+ const dt = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Pe = (e) => Object.entries(e).map(([n, i]) => {
387
387
  if (typeof i == "string")
388
- return `${ct(n)}: ${i};`;
389
- }).filter(Y), dt = (e) => Pe(e).join(`
388
+ return `${dt(n)}: ${i};`;
389
+ }).filter(Y), ut = (e) => Pe(e).join(`
390
390
  `), te = ({
391
391
  mediaQuery: e,
392
392
  className: t,
393
393
  styles: n
394
394
  }) => {
395
395
  const i = `.${t} {
396
- ${dt(n)}
396
+ ${ut(n)}
397
397
  }`;
398
398
  return e ? `${e} {
399
399
  ${i}
400
400
  }` : i;
401
401
  };
402
- function ut({
402
+ function mt({
403
403
  style: e
404
404
  }) {
405
405
  return e;
406
406
  }
407
- const mt = ({
407
+ const ft = ({
408
408
  block: e,
409
409
  context: t
410
- }) => Ve(ut({
410
+ }) => Ve(mt({
411
411
  style: e.style || {},
412
412
  context: t,
413
413
  block: e
414
414
  }));
415
415
  function Ve(e) {
416
- switch (q) {
416
+ switch (z) {
417
417
  case "svelte":
418
418
  case "vue":
419
419
  case "solid":
@@ -425,7 +425,7 @@ function Ve(e) {
425
425
  return e;
426
426
  }
427
427
  }
428
- const ft = ({
428
+ const ht = ({
429
429
  block: e,
430
430
  context: t,
431
431
  registeredComponents: n
@@ -447,7 +447,7 @@ const ft = ({
447
447
  console.warn(`
448
448
  Could not find a registered component named "${i}".
449
449
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
450
- }, ht = ({
450
+ }, gt = ({
451
451
  block: e,
452
452
  context: t
453
453
  }) => {
@@ -457,7 +457,7 @@ const ft = ({
457
457
  } = e;
458
458
  if (!(n != null && n.collection))
459
459
  return;
460
- const o = K({
460
+ const o = q({
461
461
  code: n.collection,
462
462
  localState: t.localState,
463
463
  rootState: t.rootState,
@@ -533,7 +533,7 @@ function Z(e) {
533
533
  }
534
534
  );
535
535
  }
536
- function gt(e) {
536
+ function bt(e) {
537
537
  function t() {
538
538
  const i = Q({
539
539
  block: e.block,
@@ -546,7 +546,7 @@ function gt(e) {
546
546
  return Y(i.hide) ? !i.hide : Y(i.show) ? i.show : !0;
547
547
  }
548
548
  function n() {
549
- var v;
549
+ var S;
550
550
  const i = Q({
551
551
  block: e.block,
552
552
  localState: e.context.localState,
@@ -555,14 +555,14 @@ function gt(e) {
555
555
  context: e.context.context,
556
556
  shouldEvaluateBindings: !0
557
557
  }), o = i.responsiveStyles, a = e.context.content, r = Ae(
558
- ((v = a == null ? void 0 : a.meta) == null ? void 0 : v.breakpoints) || {}
558
+ ((S = a == null ? void 0 : a.meta) == null ? void 0 : S.breakpoints) || {}
559
559
  ), l = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, m = i.id;
560
560
  if (!m)
561
561
  return "";
562
- const h = l ? te({
562
+ const f = l ? te({
563
563
  className: m,
564
564
  styles: l
565
- }) : "", b = d ? te({
565
+ }) : "", g = d ? te({
566
566
  className: m,
567
567
  styles: d,
568
568
  mediaQuery: ge(
@@ -577,14 +577,14 @@ function gt(e) {
577
577
  r
578
578
  )
579
579
  }) : "";
580
- return [h, b, y].join(" ");
580
+ return [f, g, y].join(" ");
581
581
  }
582
582
  return /* @__PURE__ */ s(T, { children: n() && t() ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(Z, { id: "builderio-block", styles: n() }) }) : null });
583
583
  }
584
- function bt(e) {
584
+ function yt(e) {
585
585
  return e.charAt(0).toUpperCase() + e.slice(1);
586
586
  }
587
- const yt = (e) => `on${bt(e)}`, pt = (e, t) => (n) => K({
587
+ const pt = (e) => `on${yt(e)}`, xt = (e, t) => (n) => q({
588
588
  code: e,
589
589
  context: t.context,
590
590
  localState: t.localState,
@@ -601,9 +601,9 @@ function We(e) {
601
601
  if (!n.hasOwnProperty(o))
602
602
  continue;
603
603
  const a = n[o];
604
- let r = yt(o);
604
+ let r = pt(o);
605
605
  if (e.stripPrefix)
606
- switch (q) {
606
+ switch (z) {
607
607
  case "vue":
608
608
  r = r.replace("v-on:", "");
609
609
  break;
@@ -611,7 +611,7 @@ function We(e) {
611
611
  r = r.replace("on:", "");
612
612
  break;
613
613
  }
614
- t[r] = pt(a, e);
614
+ t[r] = xt(a, e);
615
615
  }
616
616
  return t;
617
617
  }
@@ -620,7 +620,7 @@ function St({
620
620
  }) {
621
621
  return e;
622
622
  }
623
- const xt = (e) => ({
623
+ const vt = (e) => ({
624
624
  href: e.href
625
625
  });
626
626
  function de({
@@ -629,14 +629,14 @@ function de({
629
629
  }) {
630
630
  var i;
631
631
  const n = {
632
- ...xt(e),
632
+ ...vt(e),
633
633
  ...e.properties,
634
634
  "builder-id": e.id,
635
- style: mt({
635
+ style: ft({
636
636
  block: e,
637
637
  context: t
638
638
  }),
639
- [H()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
639
+ [K()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
640
640
  };
641
641
  return St({
642
642
  properties: n,
@@ -644,7 +644,7 @@ function de({
644
644
  block: e
645
645
  });
646
646
  }
647
- function vt(e) {
647
+ function kt(e) {
648
648
  return /* @__PURE__ */ s(
649
649
  ae,
650
650
  {
@@ -665,7 +665,7 @@ function vt(e) {
665
665
  }
666
666
  );
667
667
  }
668
- function kt(e) {
668
+ function Ct(e) {
669
669
  return /* @__PURE__ */ s(
670
670
  e.Wrapper,
671
671
  {
@@ -687,7 +687,7 @@ function kt(e) {
687
687
  }
688
688
  );
689
689
  }
690
- const Ct = ({
690
+ const wt = ({
691
691
  componentOptions: e,
692
692
  builderBlock: t,
693
693
  context: n,
@@ -719,13 +719,13 @@ const Ct = ({
719
719
  };
720
720
  function be(e) {
721
721
  var i;
722
- const [t, n] = w(
723
- () => e.isInteractive ? kt : e.componentRef
722
+ const [t, n] = k(
723
+ () => e.isInteractive ? Ct : e.componentRef
724
724
  );
725
725
  return /* @__PURE__ */ s(T, { children: e.componentRef ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(
726
726
  t,
727
727
  {
728
- ...Ct({
728
+ ...wt({
729
729
  componentOptions: e.componentOptions,
730
730
  builderBlock: e.builderBlock,
731
731
  context: e.context,
@@ -736,7 +736,7 @@ function be(e) {
736
736
  contextValue: e.context
737
737
  }),
738
738
  children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ s(
739
- z,
739
+ _,
740
740
  {
741
741
  block: o,
742
742
  context: e.context,
@@ -748,10 +748,10 @@ function be(e) {
748
748
  }
749
749
  ) }) : null });
750
750
  }
751
- function wt(e) {
752
- const [t, n] = w(() => e.repeatContext);
751
+ function It(e) {
752
+ const [t, n] = k(() => e.repeatContext);
753
753
  return /* @__PURE__ */ s(re.Provider, { value: t, children: /* @__PURE__ */ s(
754
- z,
754
+ _,
755
755
  {
756
756
  block: e.block,
757
757
  context: t,
@@ -760,24 +760,24 @@ function wt(e) {
760
760
  }
761
761
  ) });
762
762
  }
763
- function z(e) {
763
+ function _(e) {
764
764
  var d, c, m;
765
765
  function t() {
766
- return ft({
766
+ return ht({
767
767
  block: e.block,
768
768
  context: e.context,
769
769
  registeredComponents: e.registeredComponents
770
770
  });
771
771
  }
772
772
  function n() {
773
- return ht({
773
+ return gt({
774
774
  block: e.block,
775
775
  context: e.context
776
776
  });
777
777
  }
778
778
  function i() {
779
- var h;
780
- return (h = e.block.repeat) != null && h.collection ? e.block : Q({
779
+ var f;
780
+ return (f = e.block.repeat) != null && f.collection ? e.block : Q({
781
781
  block: e.block,
782
782
  localState: e.context.localState,
783
783
  rootState: e.context.rootState,
@@ -787,32 +787,32 @@ function z(e) {
787
787
  });
788
788
  }
789
789
  function o() {
790
- var b;
791
- return e.block.tagName === "a" || ((b = i().properties) == null ? void 0 : b.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
790
+ var g;
791
+ return e.block.tagName === "a" || ((g = i().properties) == null ? void 0 : g.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
792
792
  }
793
793
  function a() {
794
- var y, v;
794
+ var y, S;
795
795
  if ((y = e.block.repeat) != null && y.collection)
796
- return !!((v = n == null ? void 0 : n()) != null && v.length);
797
- const h = "hide" in i() ? i().hide : !1;
798
- return ("show" in i() ? i().show : !0) && !h;
796
+ return !!((S = n == null ? void 0 : n()) != null && S.length);
797
+ const f = "hide" in i() ? i().hide : !1;
798
+ return ("show" in i() ? i().show : !0) && !f;
799
799
  }
800
800
  function r() {
801
- var b, y;
802
- return !((b = t == null ? void 0 : t()) != null && b.component) && !n() ? (y = i().children) != null ? y : [] : [];
801
+ var g, y;
802
+ return !((g = t == null ? void 0 : t()) != null && g.component) && !n() ? (y = i().children) != null ? y : [] : [];
803
803
  }
804
804
  function l() {
805
- var h, b, y, v, k, I, R, S, C, P, E;
805
+ var f, g, y, S, C, I, R, p, w, P, E;
806
806
  return {
807
- blockChildren: (h = i().children) != null ? h : [],
808
- componentRef: (b = t == null ? void 0 : t()) == null ? void 0 : b.component,
807
+ blockChildren: (f = i().children) != null ? f : [],
808
+ componentRef: (g = t == null ? void 0 : t()) == null ? void 0 : g.component,
809
809
  componentOptions: {
810
- ...Ge(i()),
810
+ ...Qe(i()),
811
811
  builderContext: e.context,
812
- ...((y = t == null ? void 0 : t()) == null ? void 0 : y.name) === "Core:Button" || ((v = t == null ? void 0 : t()) == null ? void 0 : v.name) === "Symbol" || ((k = t == null ? void 0 : t()) == null ? void 0 : k.name) === "Columns" || ((I = t == null ? void 0 : t()) == null ? void 0 : I.name) === "Form:Form" ? {
812
+ ...((y = t == null ? void 0 : t()) == null ? void 0 : y.name) === "Core:Button" || ((S = t == null ? void 0 : t()) == null ? void 0 : S.name) === "Symbol" || ((C = t == null ? void 0 : t()) == null ? void 0 : C.name) === "Columns" || ((I = t == null ? void 0 : t()) == null ? void 0 : I.name) === "Form:Form" ? {
813
813
  builderLinkComponent: e.linkComponent
814
814
  } : {},
815
- ...((R = t == null ? void 0 : t()) == null ? void 0 : R.name) === "Symbol" || ((S = t == null ? void 0 : t()) == null ? void 0 : S.name) === "Columns" || ((C = t == null ? void 0 : t()) == null ? void 0 : C.name) === "Form:Form" ? {
815
+ ...((R = t == null ? void 0 : t()) == null ? void 0 : R.name) === "Symbol" || ((p = t == null ? void 0 : t()) == null ? void 0 : p.name) === "Columns" || ((w = t == null ? void 0 : t()) == null ? void 0 : w.name) === "Form:Form" ? {
816
816
  builderComponents: e.registeredComponents
817
817
  } : {}
818
818
  },
@@ -824,16 +824,16 @@ function z(e) {
824
824
  isInteractive: !((E = t == null ? void 0 : t()) != null && E.isRSC)
825
825
  };
826
826
  }
827
- return B(() => {
828
- const h = i().id, b = i().animations;
829
- b && h && at(
830
- b.filter((y) => y.trigger !== "hover").map((y) => ({
827
+ return V(() => {
828
+ const f = i().id, g = i().animations;
829
+ g && f && rt(
830
+ g.filter((y) => y.trigger !== "hover").map((y) => ({
831
831
  ...y,
832
- elementId: h
832
+ elementId: f
833
833
  }))
834
834
  );
835
- }, []), /* @__PURE__ */ s(T, { children: a() ? /* @__PURE__ */ A(T, { children: [
836
- /* @__PURE__ */ s(gt, { block: e.block, context: e.context }),
835
+ }, []), /* @__PURE__ */ s(T, { children: a() ? /* @__PURE__ */ B(T, { children: [
836
+ /* @__PURE__ */ s(bt, { block: e.block, context: e.context }),
837
837
  (d = t == null ? void 0 : t()) != null && d.noWrap ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(
838
838
  be,
839
839
  {
@@ -847,17 +847,17 @@ function z(e) {
847
847
  includeBlockProps: l().includeBlockProps,
848
848
  isInteractive: l().isInteractive
849
849
  }
850
- ) }) : /* @__PURE__ */ s(T, { children: n() ? /* @__PURE__ */ s(T, { children: (m = n()) == null ? void 0 : m.map((h, b) => /* @__PURE__ */ s(
851
- wt,
850
+ ) }) : /* @__PURE__ */ s(T, { children: n() ? /* @__PURE__ */ s(T, { children: (m = n()) == null ? void 0 : m.map((f, g) => /* @__PURE__ */ s(
851
+ It,
852
852
  {
853
- repeatContext: h.context,
854
- block: h.block,
853
+ repeatContext: f.context,
854
+ block: f.block,
855
855
  registeredComponents: e.registeredComponents,
856
856
  linkComponent: e.linkComponent
857
857
  },
858
- b
859
- )) }) : /* @__PURE__ */ A(
860
- vt,
858
+ g
859
+ )) }) : /* @__PURE__ */ B(
860
+ kt,
861
861
  {
862
862
  Wrapper: o(),
863
863
  block: i(),
@@ -878,29 +878,29 @@ function z(e) {
878
878
  isInteractive: l().isInteractive
879
879
  }
880
880
  ),
881
- (c = r()) == null ? void 0 : c.map((h) => /* @__PURE__ */ s(
882
- z,
881
+ (c = r()) == null ? void 0 : c.map((f) => /* @__PURE__ */ s(
882
+ _,
883
883
  {
884
- block: h,
884
+ block: f,
885
885
  registeredComponents: e.registeredComponents,
886
886
  linkComponent: e.linkComponent,
887
887
  context: e.context
888
888
  },
889
- h.id
889
+ f.id
890
890
  ))
891
891
  ]
892
892
  }
893
893
  ) })
894
894
  ] }) : null });
895
895
  }
896
- function It(e) {
896
+ function Tt(e) {
897
897
  function t() {
898
898
  var o;
899
899
  return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
900
900
  }
901
901
  function n() {
902
902
  var o, a;
903
- W() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
903
+ N() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
904
904
  {
905
905
  type: "builder.clickEmptyBlocks",
906
906
  data: {
@@ -913,7 +913,7 @@ function It(e) {
913
913
  }
914
914
  function i() {
915
915
  var o, a;
916
- W() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
916
+ N() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
917
917
  {
918
918
  type: "builder.hoverEmptyBlocks",
919
919
  data: {
@@ -924,7 +924,7 @@ function It(e) {
924
924
  "*"
925
925
  ));
926
926
  }
927
- return /* @__PURE__ */ A(T, { children: [
927
+ return /* @__PURE__ */ B(T, { children: [
928
928
  /* @__PURE__ */ s(
929
929
  e.BlocksWrapper,
930
930
  {
@@ -946,11 +946,11 @@ function It(e) {
946
946
  }` })
947
947
  ] });
948
948
  }
949
- function O(e) {
949
+ function U(e) {
950
950
  var i, o, a;
951
951
  const t = fe(re), n = fe(Ie);
952
952
  return /* @__PURE__ */ s(
953
- It,
953
+ Tt,
954
954
  {
955
955
  blocks: e.blocks,
956
956
  parent: e.parent,
@@ -959,7 +959,7 @@ function O(e) {
959
959
  BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
960
960
  BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
961
961
  children: e.blocks ? /* @__PURE__ */ s(T, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ s(
962
- z,
962
+ _,
963
963
  {
964
964
  block: r,
965
965
  linkComponent: e.linkComponent,
@@ -971,47 +971,47 @@ function O(e) {
971
971
  }
972
972
  );
973
973
  }
974
- function Tt(e) {
974
+ function Et(e) {
975
975
  var R;
976
- const [t, n] = w(
976
+ const [t, n] = k(
977
977
  () => typeof e.space == "number" ? e.space || 0 : 20
978
- ), [i, o] = w(() => e.columns || []), [a, r] = w(
978
+ ), [i, o] = k(() => e.columns || []), [a, r] = k(
979
979
  () => e.stackColumnsAt || "tablet"
980
980
  );
981
- function l(S) {
982
- var C;
983
- return ((C = i[S]) == null ? void 0 : C.width) || 100 / i.length;
981
+ function l(p) {
982
+ var w;
983
+ return ((w = i[p]) == null ? void 0 : w.width) || 100 / i.length;
984
984
  }
985
- function d(S) {
986
- const C = t * (i.length - 1) / i.length;
987
- return `calc(${l(S)}% - ${C}px)`;
985
+ function d(p) {
986
+ const w = t * (i.length - 1) / i.length;
987
+ return `calc(${l(p)}% - ${w}px)`;
988
988
  }
989
989
  function c({
990
- stackedStyle: S,
991
- desktopStyle: C
990
+ stackedStyle: p,
991
+ desktopStyle: w
992
992
  }) {
993
- return a === "tablet" ? S : C;
993
+ return a === "tablet" ? p : w;
994
994
  }
995
995
  function m({
996
- stackedStyle: S,
997
- desktopStyle: C
996
+ stackedStyle: p,
997
+ desktopStyle: w
998
998
  }) {
999
- return a === "never" ? C : S;
999
+ return a === "never" ? w : p;
1000
1000
  }
1001
- const [h, b] = w(
1001
+ const [f, g] = k(
1002
1002
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
1003
1003
  );
1004
1004
  function y() {
1005
1005
  return {
1006
- "--flex-dir": h,
1006
+ "--flex-dir": f,
1007
1007
  "--flex-dir-tablet": c({
1008
- stackedStyle: h,
1008
+ stackedStyle: f,
1009
1009
  desktopStyle: "row"
1010
1010
  })
1011
1011
  };
1012
1012
  }
1013
- function v(S) {
1014
- const C = S === 0 ? 0 : t, P = d(S), E = `${C}px`, F = "100%", $ = 0;
1013
+ function S(p) {
1014
+ const w = p === 0 ? 0 : t, P = d(p), E = `${w}px`, $ = "100%", L = 0;
1015
1015
  return {
1016
1016
  ...{
1017
1017
  display: "flex",
@@ -1021,32 +1021,32 @@ function Tt(e) {
1021
1021
  width: P,
1022
1022
  ["marginLeft"]: E,
1023
1023
  "--column-width-mobile": m({
1024
- stackedStyle: F,
1024
+ stackedStyle: $,
1025
1025
  desktopStyle: P
1026
1026
  }),
1027
1027
  "--column-margin-left-mobile": m({
1028
- stackedStyle: $,
1028
+ stackedStyle: L,
1029
1029
  desktopStyle: E
1030
1030
  }),
1031
1031
  "--column-width-tablet": c({
1032
- stackedStyle: F,
1032
+ stackedStyle: $,
1033
1033
  desktopStyle: P
1034
1034
  }),
1035
1035
  "--column-margin-left-tablet": c({
1036
- stackedStyle: $,
1036
+ stackedStyle: L,
1037
1037
  desktopStyle: E
1038
1038
  })
1039
1039
  };
1040
1040
  }
1041
- function k(S) {
1041
+ function C(p) {
1042
1042
  var P, E;
1043
1043
  return Ae(
1044
1044
  ((E = (P = e.builderContext.content) == null ? void 0 : P.meta) == null ? void 0 : E.breakpoints) || {}
1045
- )[S].max;
1045
+ )[p].max;
1046
1046
  }
1047
1047
  function I() {
1048
1048
  return `
1049
- @media (max-width: ${k("medium")}px) {
1049
+ @media (max-width: ${C("medium")}px) {
1050
1050
  .${e.builderBlock.id}-breakpoints {
1051
1051
  flex-direction: var(--flex-dir-tablet);
1052
1052
  align-items: stretch;
@@ -1058,7 +1058,7 @@ function Tt(e) {
1058
1058
  }
1059
1059
  }
1060
1060
 
1061
- @media (max-width: ${k("small")}px) {
1061
+ @media (max-width: ${C("small")}px) {
1062
1062
  .${e.builderBlock.id}-breakpoints {
1063
1063
  flex-direction: var(--flex-dir);
1064
1064
  align-items: stretch;
@@ -1071,30 +1071,30 @@ function Tt(e) {
1071
1071
  },
1072
1072
  `;
1073
1073
  }
1074
- return /* @__PURE__ */ A(T, { children: [
1075
- /* @__PURE__ */ A(
1074
+ return /* @__PURE__ */ B(T, { children: [
1075
+ /* @__PURE__ */ B(
1076
1076
  "div",
1077
1077
  {
1078
1078
  className: `builder-columns ${e.builderBlock.id}-breakpoints div-003f4b1c`,
1079
1079
  style: y(),
1080
1080
  children: [
1081
1081
  /* @__PURE__ */ s(Z, { id: "builderio-columns", styles: I() }),
1082
- (R = e.columns) == null ? void 0 : R.map((S, C) => /* @__PURE__ */ s(
1082
+ (R = e.columns) == null ? void 0 : R.map((p, w) => /* @__PURE__ */ s(
1083
1083
  ae,
1084
1084
  {
1085
- TagName: S.link ? e.builderLinkComponent || "a" : "div",
1085
+ TagName: p.link ? e.builderLinkComponent || "a" : "div",
1086
1086
  actionAttributes: {},
1087
1087
  attributes: {
1088
- ...S.link ? {
1089
- href: S.link
1088
+ ...p.link ? {
1089
+ href: p.link
1090
1090
  } : {},
1091
- [H()]: "builder-column",
1092
- style: Ve(v(C))
1091
+ [K()]: "builder-column",
1092
+ style: Ve(S(w))
1093
1093
  },
1094
1094
  children: /* @__PURE__ */ s(
1095
- O,
1095
+ U,
1096
1096
  {
1097
- path: `component.options.columns.${C}.blocks`,
1097
+ path: `component.options.columns.${w}.blocks`,
1098
1098
  parent: e.builderBlock.id,
1099
1099
  styleProp: {
1100
1100
  flexGrow: "1"
@@ -1102,11 +1102,11 @@ function Tt(e) {
1102
1102
  context: e.builderContext,
1103
1103
  registeredComponents: e.builderComponents,
1104
1104
  linkComponent: e.builderLinkComponent,
1105
- blocks: S.blocks
1105
+ blocks: p.blocks
1106
1106
  }
1107
1107
  )
1108
1108
  },
1109
- C
1109
+ w
1110
1110
  ))
1111
1111
  ]
1112
1112
  }
@@ -1117,17 +1117,17 @@ function Tt(e) {
1117
1117
  }` })
1118
1118
  ] });
1119
1119
  }
1120
- function Et(e) {
1120
+ function Rt(e) {
1121
1121
  return /* @__PURE__ */ s("span", { children: e.children });
1122
1122
  }
1123
1123
  function ye(e) {
1124
1124
  return e.replace(/http(s)?:/, "");
1125
1125
  }
1126
- function Rt(e = "", t, n) {
1126
+ function Pt(e = "", t, n) {
1127
1127
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
1128
1128
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
1129
1129
  }
1130
- function Pt(e, t) {
1130
+ function Vt(e, t) {
1131
1131
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1132
1132
  return e;
1133
1133
  if (t === "master")
@@ -1146,11 +1146,11 @@ function ne(e) {
1146
1146
  if (e.match(/builder\.io/)) {
1147
1147
  let n = e;
1148
1148
  const i = Number(e.split("?width=")[1]);
1149
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Rt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1149
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Pt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1150
1150
  }
1151
- 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;
1151
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Vt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1152
1152
  }
1153
- function Vt(e) {
1153
+ function Bt(e) {
1154
1154
  var o, a, r, l;
1155
1155
  function t() {
1156
1156
  var m;
@@ -1180,9 +1180,9 @@ function Vt(e) {
1180
1180
  };
1181
1181
  return e.aspectRatio ? d : void 0;
1182
1182
  }
1183
- return /* @__PURE__ */ A(T, { children: [
1184
- /* @__PURE__ */ A(T, { children: [
1185
- /* @__PURE__ */ A("picture", { children: [
1183
+ return /* @__PURE__ */ B(T, { children: [
1184
+ /* @__PURE__ */ B(T, { children: [
1185
+ /* @__PURE__ */ B("picture", { children: [
1186
1186
  n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1187
1187
  /* @__PURE__ */ s(
1188
1188
  "img",
@@ -1233,7 +1233,7 @@ function Vt(e) {
1233
1233
  }` })
1234
1234
  ] });
1235
1235
  }
1236
- function Bt(e) {
1236
+ function At(e) {
1237
1237
  return /* @__PURE__ */ s(
1238
1238
  "section",
1239
1239
  {
@@ -1254,7 +1254,7 @@ function Bt(e) {
1254
1254
  }
1255
1255
  );
1256
1256
  }
1257
- const At = {
1257
+ const Wt = {
1258
1258
  name: "Core:Button",
1259
1259
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1260
1260
  defaultStyles: {
@@ -1287,7 +1287,7 @@ const At = {
1287
1287
  }],
1288
1288
  static: !0,
1289
1289
  noWrap: !0
1290
- }, Wt = {
1290
+ }, Nt = {
1291
1291
  // TODO: ways to statically preprocess JSON for references, functions, etc
1292
1292
  name: "Columns",
1293
1293
  isRSC: !0,
@@ -1488,13 +1488,13 @@ const At = {
1488
1488
  helperText: "When stacking columns for mobile devices, reverse the ordering",
1489
1489
  advanced: !0
1490
1490
  }]
1491
- }, Nt = {
1491
+ }, Ft = {
1492
1492
  name: "Fragment",
1493
1493
  static: !0,
1494
1494
  hidden: !0,
1495
1495
  canHaveChildren: !0,
1496
1496
  noWrap: !0
1497
- }, Ft = {
1497
+ }, $t = {
1498
1498
  name: "Image",
1499
1499
  static: !0,
1500
1500
  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",
@@ -1517,13 +1517,13 @@ const At = {
1517
1517
  function n(r, l = 6e4) {
1518
1518
  return new Promise((d, c) => {
1519
1519
  const m = document.createElement("img");
1520
- let h = !1;
1520
+ let f = !1;
1521
1521
  m.onload = () => {
1522
- h = !0, d(m);
1523
- }, m.addEventListener("error", (b) => {
1524
- console.warn("Image load failed", b.error), c(b.error);
1522
+ f = !0, d(m);
1523
+ }, m.addEventListener("error", (g) => {
1524
+ console.warn("Image load failed", g.error), c(g.error);
1525
1525
  }), m.src = r, setTimeout(() => {
1526
- h || c(new Error("Image load timed out"));
1526
+ f || c(new Error("Image load timed out"));
1527
1527
  }, l);
1528
1528
  });
1529
1529
  }
@@ -1594,7 +1594,7 @@ const At = {
1594
1594
  advanced: !0,
1595
1595
  defaultValue: 0.7041
1596
1596
  }]
1597
- }, $t = {
1597
+ }, Lt = {
1598
1598
  name: "Core:Section",
1599
1599
  static: !0,
1600
1600
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1633,7 +1633,7 @@ const At = {
1633
1633
  }
1634
1634
  }
1635
1635
  }]
1636
- }, Lt = {
1636
+ }, Dt = {
1637
1637
  name: "Slot",
1638
1638
  isRSC: !0,
1639
1639
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1647,7 +1647,7 @@ const At = {
1647
1647
  defaultValue: "children"
1648
1648
  }]
1649
1649
  };
1650
- function Dt(e) {
1650
+ function Mt(e) {
1651
1651
  var t, n, i;
1652
1652
  return /* @__PURE__ */ s(
1653
1653
  "div",
@@ -1659,7 +1659,7 @@ function Dt(e) {
1659
1659
  "builder-slot": e.name
1660
1660
  },
1661
1661
  children: /* @__PURE__ */ s(
1662
- O,
1662
+ U,
1663
1663
  {
1664
1664
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
1665
1665
  path: `symbol.data.${e.name}`,
@@ -1670,7 +1670,7 @@ function Dt(e) {
1670
1670
  }
1671
1671
  );
1672
1672
  }
1673
- const Mt = {
1673
+ const Ot = {
1674
1674
  name: "Symbol",
1675
1675
  noWrap: !0,
1676
1676
  static: !0,
@@ -1703,7 +1703,7 @@ const Mt = {
1703
1703
  hideFromUI: !0,
1704
1704
  type: "boolean"
1705
1705
  }]
1706
- }, Ot = {
1706
+ }, Ut = {
1707
1707
  name: "Text",
1708
1708
  static: !0,
1709
1709
  isRSC: !0,
@@ -1722,7 +1722,7 @@ const Mt = {
1722
1722
  textAlign: "center"
1723
1723
  }
1724
1724
  };
1725
- function Ut(e) {
1725
+ function jt(e) {
1726
1726
  var t;
1727
1727
  return /* @__PURE__ */ s(
1728
1728
  "div",
@@ -1735,7 +1735,7 @@ function Ut(e) {
1735
1735
  }
1736
1736
  );
1737
1737
  }
1738
- const jt = {
1738
+ const Ht = {
1739
1739
  name: "Custom Code",
1740
1740
  static: !0,
1741
1741
  requiredPermissions: ["editCode"],
@@ -1758,9 +1758,9 @@ const jt = {
1758
1758
  advanced: !0
1759
1759
  }]
1760
1760
  };
1761
- function Ht(e) {
1762
- const t = X(null), [n, i] = w(() => []), [o, a] = w(() => []);
1763
- return B(() => {
1761
+ function Kt(e) {
1762
+ const t = X(null), [n, i] = k(() => []), [o, a] = k(() => []);
1763
+ return V(() => {
1764
1764
  var l;
1765
1765
  if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
1766
1766
  return;
@@ -1796,7 +1796,7 @@ function Ht(e) {
1796
1796
  }
1797
1797
  );
1798
1798
  }
1799
- const Kt = {
1799
+ const qt = {
1800
1800
  name: "Embed",
1801
1801
  static: !0,
1802
1802
  inputs: [{
@@ -1821,28 +1821,28 @@ const Kt = {
1821
1821
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1822
1822
  hideFromUI: !0
1823
1823
  }]
1824
- }, qt = ["text/javascript", "application/javascript", "application/ecmascript"], zt = (e) => qt.includes(e.type);
1825
- function _t(e) {
1826
- const t = X(null), [n, i] = w(() => []), [o, a] = w(() => []), [r, l] = w(() => !1);
1824
+ }, zt = ["text/javascript", "application/javascript", "application/ecmascript"], _t = (e) => zt.includes(e.type);
1825
+ function Jt(e) {
1826
+ const t = X(null), [n, i] = k(() => []), [o, a] = k(() => []), [r, l] = k(() => !1);
1827
1827
  function d() {
1828
1828
  if (!t.current || !t.current.getElementsByTagName)
1829
1829
  return;
1830
1830
  const c = t.current.getElementsByTagName("script");
1831
1831
  for (let m = 0; m < c.length; m++) {
1832
- const h = c[m];
1833
- if (h.src && !n.includes(h.src)) {
1834
- n.push(h.src);
1835
- const b = document.createElement("script");
1836
- b.async = !0, b.src = h.src, document.head.appendChild(b);
1837
- } else if (zt(h) && !o.includes(h.innerText))
1832
+ const f = c[m];
1833
+ if (f.src && !n.includes(f.src)) {
1834
+ n.push(f.src);
1835
+ const g = document.createElement("script");
1836
+ g.async = !0, g.src = f.src, document.head.appendChild(g);
1837
+ } else if (_t(f) && !o.includes(f.innerText))
1838
1838
  try {
1839
- o.push(h.innerText), new Function(h.innerText)();
1840
- } catch (b) {
1841
- console.warn("`Embed`: Error running script:", b);
1839
+ o.push(f.innerText), new Function(f.innerText)();
1840
+ } catch (g) {
1841
+ console.warn("`Embed`: Error running script:", g);
1842
1842
  }
1843
1843
  }
1844
1844
  }
1845
- return B(() => {
1845
+ return V(() => {
1846
1846
  t.current && !r && (l(!0), d());
1847
1847
  }, [t.current, r]), /* @__PURE__ */ s(
1848
1848
  "div",
@@ -1853,7 +1853,7 @@ function _t(e) {
1853
1853
  }
1854
1854
  );
1855
1855
  }
1856
- const Jt = {
1856
+ const Yt = {
1857
1857
  name: "Form:Form",
1858
1858
  // editableTags: ['builder-form-error']
1859
1859
  defaults: {
@@ -2084,102 +2084,102 @@ const Jt = {
2084
2084
  }
2085
2085
  }
2086
2086
  }]
2087
- }, Yt = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Gt = () => {
2087
+ }, Gt = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Qt = () => {
2088
2088
  const e = process.env.NODE_ENV || "production";
2089
- return Yt.includes(e) ? e : "production";
2090
- }, Qt = (e, t, n) => {
2089
+ return Gt.includes(e) ? e : "production";
2090
+ }, Xt = (e, t, n) => {
2091
2091
  const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
2092
2092
  return i === void 0 || i === e ? n : i;
2093
2093
  };
2094
- function Xt(e) {
2095
- var h, b;
2096
- const t = X(null), [n, i] = w(() => "unsubmitted"), [o, a] = w(() => null), [r, l] = w(() => "");
2094
+ function Zt(e) {
2095
+ var f, g;
2096
+ const t = X(null), [n, i] = k(() => "unsubmitted"), [o, a] = k(() => null), [r, l] = k(() => "");
2097
2097
  function d(y) {
2098
- var k, I;
2099
- const v = {
2098
+ var C, I;
2099
+ const S = {
2100
2100
  ...e.builderContext.rootState,
2101
2101
  ...y
2102
2102
  };
2103
- e.builderContext.rootSetState ? (I = (k = e.builderContext).rootSetState) == null || I.call(k, v) : e.builderContext.rootState = v;
2103
+ e.builderContext.rootSetState ? (I = (C = e.builderContext).rootSetState) == null || I.call(C, S) : e.builderContext.rootState = S;
2104
2104
  }
2105
2105
  function c() {
2106
- return W() && e.previewState || n;
2106
+ return N() && e.previewState || n;
2107
2107
  }
2108
2108
  function m(y) {
2109
- var k;
2110
- const v = e.sendWithJs || e.sendSubmissionsTo === "email";
2109
+ var C;
2110
+ const S = e.sendWithJs || e.sendSubmissionsTo === "email";
2111
2111
  if (e.sendSubmissionsTo === "zapier")
2112
2112
  y.preventDefault();
2113
- else if (v) {
2113
+ else if (S) {
2114
2114
  if (!(e.action || e.sendSubmissionsTo === "email")) {
2115
2115
  y.preventDefault();
2116
2116
  return;
2117
2117
  }
2118
2118
  y.preventDefault();
2119
2119
  const I = y.currentTarget, R = e.customHeaders || {};
2120
- let S;
2121
- const C = new FormData(I), P = Array.from(
2120
+ let p;
2121
+ const w = new FormData(I), P = Array.from(
2122
2122
  y.currentTarget.querySelectorAll("input,select,textarea")
2123
2123
  ).filter((u) => !!u.name).map((u) => {
2124
- let f;
2125
- const p = u.name;
2124
+ let h;
2125
+ const v = u.name;
2126
2126
  if (u instanceof HTMLInputElement)
2127
2127
  if (u.type === "radio") {
2128
2128
  if (u.checked)
2129
- return f = u.name, {
2130
- key: p,
2131
- value: f
2129
+ return h = u.name, {
2130
+ key: v,
2131
+ value: h
2132
2132
  };
2133
2133
  } else if (u.type === "checkbox")
2134
- f = u.checked;
2134
+ h = u.checked;
2135
2135
  else if (u.type === "number" || u.type === "range") {
2136
- const g = u.valueAsNumber;
2137
- isNaN(g) || (f = g);
2136
+ const b = u.valueAsNumber;
2137
+ isNaN(b) || (h = b);
2138
2138
  } else
2139
- u.type === "file" ? f = u.files : f = u.value;
2139
+ u.type === "file" ? h = u.files : h = u.value;
2140
2140
  else
2141
- f = u.value;
2141
+ h = u.value;
2142
2142
  return {
2143
- key: p,
2144
- value: f
2143
+ key: v,
2144
+ value: h
2145
2145
  };
2146
2146
  });
2147
2147
  let E = e.contentType;
2148
2148
  if (e.sendSubmissionsTo === "email" && (E = "multipart/form-data"), Array.from(P).forEach(({ value: u }) => {
2149
2149
  (u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (E = "multipart/form-data");
2150
2150
  }), E !== "application/json")
2151
- S = C;
2151
+ p = w;
2152
2152
  else {
2153
2153
  const u = {};
2154
- Array.from(P).forEach(({ value: f, key: p }) => {
2155
- Ee(u, p, f);
2156
- }), S = JSON.stringify(u);
2154
+ Array.from(P).forEach(({ value: h, key: v }) => {
2155
+ Ee(u, v, h);
2156
+ }), p = JSON.stringify(u);
2157
2157
  }
2158
- E && E !== "multipart/form-data" && (v && ((k = e.action) != null && k.includes("zapier.com")) || (R["content-type"] = E));
2159
- const F = new CustomEvent("presubmit", { detail: { body: S } });
2160
- if (t.current && (t.current.dispatchEvent(F), F.defaultPrevented))
2158
+ E && E !== "multipart/form-data" && (S && ((C = e.action) != null && C.includes("zapier.com")) || (R["content-type"] = E));
2159
+ const $ = new CustomEvent("presubmit", { detail: { body: p } });
2160
+ if (t.current && (t.current.dispatchEvent($), $.defaultPrevented))
2161
2161
  return;
2162
2162
  i("sending");
2163
- const $ = `${Gt() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2163
+ const L = `${Qt() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2164
2164
  e.sendSubmissionsToEmail || ""
2165
2165
  )}&name=${encodeURIComponent(e.name || "")}`;
2166
2166
  fetch(
2167
- e.sendSubmissionsTo === "email" ? $ : e.action,
2168
- { body: S, headers: R, method: e.method || "post" }
2167
+ e.sendSubmissionsTo === "email" ? L : e.action,
2168
+ { body: p, headers: R, method: e.method || "post" }
2169
2169
  ).then(
2170
2170
  async (u) => {
2171
- let f;
2172
- const p = u.headers.get("content-type");
2173
- if (p && p.indexOf("application/json") !== -1 ? f = await u.json() : f = await u.text(), !u.ok && e.errorMessagePath) {
2174
- let g = Qt(f, e.errorMessagePath);
2175
- g && (typeof g != "string" && (g = JSON.stringify(g)), l(g), d({ formErrorMessage: g }));
2171
+ let h;
2172
+ const v = u.headers.get("content-type");
2173
+ if (v && v.indexOf("application/json") !== -1 ? h = await u.json() : h = await u.text(), !u.ok && e.errorMessagePath) {
2174
+ let b = Xt(h, e.errorMessagePath);
2175
+ b && (typeof b != "string" && (b = JSON.stringify(b)), l(b), d({ formErrorMessage: b }));
2176
2176
  }
2177
- if (a(f), i(u.ok ? "success" : "error"), u.ok) {
2178
- const g = new CustomEvent("submit:success", {
2179
- detail: { res: u, body: f }
2177
+ if (a(h), i(u.ok ? "success" : "error"), u.ok) {
2178
+ const b = new CustomEvent("submit:success", {
2179
+ detail: { res: u, body: h }
2180
2180
  });
2181
2181
  if (t.current) {
2182
- if (t.current.dispatchEvent(g), g.defaultPrevented)
2182
+ if (t.current.dispatchEvent(b), b.defaultPrevented)
2183
2183
  return;
2184
2184
  e.resetFormOnSubmit !== !1 && t.current.reset();
2185
2185
  }
@@ -2194,17 +2194,17 @@ function Xt(e) {
2194
2194
  }
2195
2195
  },
2196
2196
  (u) => {
2197
- const f = new CustomEvent("submit:error", {
2197
+ const h = new CustomEvent("submit:error", {
2198
2198
  detail: { error: u }
2199
2199
  });
2200
- t.current && (t.current.dispatchEvent(f), f.defaultPrevented) || (a(u), i("error"));
2200
+ t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (a(u), i("error"));
2201
2201
  }
2202
2202
  );
2203
2203
  }
2204
2204
  }
2205
- return /* @__PURE__ */ A(T, { children: [
2205
+ return /* @__PURE__ */ B(T, { children: [
2206
2206
  " ",
2207
- /* @__PURE__ */ A(
2207
+ /* @__PURE__ */ B(
2208
2208
  "form",
2209
2209
  {
2210
2210
  validate: e.validate,
@@ -2215,18 +2215,18 @@ function Xt(e) {
2215
2215
  onSubmit: (y) => m(y),
2216
2216
  ...e.attributes,
2217
2217
  children: [
2218
- e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(T, { children: (b = (h = e.builderBlock) == null ? void 0 : h.children) == null ? void 0 : b.map((y, v) => /* @__PURE__ */ s(
2219
- z,
2218
+ e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(T, { children: (g = (f = e.builderBlock) == null ? void 0 : f.children) == null ? void 0 : g.map((y, S) => /* @__PURE__ */ s(
2219
+ _,
2220
2220
  {
2221
2221
  block: y,
2222
2222
  context: e.builderContext,
2223
2223
  registeredComponents: e.builderComponents,
2224
2224
  linkComponent: e.builderLinkComponent
2225
2225
  },
2226
- `form-block-${v}`
2226
+ `form-block-${S}`
2227
2227
  )) }) : null,
2228
2228
  c() === "error" ? /* @__PURE__ */ s(
2229
- O,
2229
+ U,
2230
2230
  {
2231
2231
  path: "errorMessage",
2232
2232
  blocks: e.errorMessage,
@@ -2234,7 +2234,7 @@ function Xt(e) {
2234
2234
  }
2235
2235
  ) : null,
2236
2236
  c() === "sending" ? /* @__PURE__ */ s(
2237
- O,
2237
+ U,
2238
2238
  {
2239
2239
  path: "sendingMessage",
2240
2240
  blocks: e.sendingMessage,
@@ -2243,7 +2243,7 @@ function Xt(e) {
2243
2243
  ) : null,
2244
2244
  c() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-31bf8a14", children: JSON.stringify(o, null, 2) }) : null,
2245
2245
  c() === "success" ? /* @__PURE__ */ s(
2246
- O,
2246
+ U,
2247
2247
  {
2248
2248
  path: "successMessage",
2249
2249
  blocks: e.successMessage,
@@ -2258,7 +2258,7 @@ function Xt(e) {
2258
2258
  " "
2259
2259
  ] });
2260
2260
  }
2261
- const Zt = {
2261
+ const en = {
2262
2262
  name: "Form:Input",
2263
2263
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2264
2264
  inputs: [
@@ -2310,12 +2310,12 @@ const Zt = {
2310
2310
  borderColor: "#ccc"
2311
2311
  }
2312
2312
  };
2313
- function en(e) {
2313
+ function tn(e) {
2314
2314
  return /* @__PURE__ */ we(
2315
2315
  "input",
2316
2316
  {
2317
2317
  ...e.attributes,
2318
- key: W() && e.defaultValue ? e.defaultValue : "default-key",
2318
+ key: N() && e.defaultValue ? e.defaultValue : "default-key",
2319
2319
  placeholder: e.placeholder,
2320
2320
  type: e.type,
2321
2321
  name: e.name,
@@ -2325,7 +2325,7 @@ function en(e) {
2325
2325
  }
2326
2326
  );
2327
2327
  }
2328
- const tn = {
2328
+ const nn = {
2329
2329
  name: "Form:Select",
2330
2330
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2331
2331
  defaultStyles: {
@@ -2368,21 +2368,21 @@ const tn = {
2368
2368
  static: !0,
2369
2369
  noWrap: !0
2370
2370
  };
2371
- function nn(e) {
2371
+ function on(e) {
2372
2372
  var t;
2373
2373
  return /* @__PURE__ */ we(
2374
2374
  "select",
2375
2375
  {
2376
2376
  ...e.attributes,
2377
2377
  value: e.value,
2378
- key: W() && e.defaultValue ? e.defaultValue : "default-key",
2378
+ key: N() && e.defaultValue ? e.defaultValue : "default-key",
2379
2379
  defaultValue: e.defaultValue,
2380
2380
  name: e.name
2381
2381
  },
2382
2382
  (t = e.options) == null ? void 0 : t.map((n) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }))
2383
2383
  );
2384
2384
  }
2385
- const on = {
2385
+ const an = {
2386
2386
  name: "Form:SubmitButton",
2387
2387
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2388
2388
  defaultStyles: {
@@ -2408,10 +2408,10 @@ const on = {
2408
2408
  // TODO: defaultChildren
2409
2409
  // canHaveChildren: true,
2410
2410
  };
2411
- function an(e) {
2411
+ function rn(e) {
2412
2412
  return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
2413
2413
  }
2414
- const rn = {
2414
+ const ln = {
2415
2415
  // friendlyName?
2416
2416
  name: "Raw:Img",
2417
2417
  hideFromInsertMenu: !0,
@@ -2426,7 +2426,7 @@ const rn = {
2426
2426
  noWrap: !0,
2427
2427
  static: !0
2428
2428
  };
2429
- function ln(e) {
2429
+ function sn(e) {
2430
2430
  return /* @__PURE__ */ s(
2431
2431
  "img",
2432
2432
  {
@@ -2438,10 +2438,10 @@ function ln(e) {
2438
2438
  src: e.imgSrc || e.image,
2439
2439
  ...e.attributes
2440
2440
  },
2441
- W() && e.imgSrc || "default-key"
2441
+ N() && e.imgSrc || "default-key"
2442
2442
  );
2443
2443
  }
2444
- const sn = {
2444
+ const cn = {
2445
2445
  name: "Video",
2446
2446
  canHaveChildren: !0,
2447
2447
  defaultStyles: {
@@ -2523,7 +2523,7 @@ const sn = {
2523
2523
  advanced: !0
2524
2524
  }]
2525
2525
  };
2526
- function cn(e) {
2526
+ function dn(e) {
2527
2527
  var i, o, a, r, l, d, c;
2528
2528
  function t() {
2529
2529
  return {
@@ -2549,7 +2549,7 @@ function cn(e) {
2549
2549
  ...t()
2550
2550
  };
2551
2551
  }
2552
- return /* @__PURE__ */ A(
2552
+ return /* @__PURE__ */ B(
2553
2553
  "div",
2554
2554
  {
2555
2555
  style: {
@@ -2624,55 +2624,55 @@ function cn(e) {
2624
2624
  }
2625
2625
  );
2626
2626
  }
2627
- const dn = () => [{
2628
- component: Ht,
2629
- ...jt
2627
+ const un = () => [{
2628
+ component: Kt,
2629
+ ...Ht
2630
2630
  }, {
2631
- component: _t,
2632
- ...Kt
2631
+ component: Jt,
2632
+ ...qt
2633
2633
  }, {
2634
- component: Xt,
2635
- ...Jt
2634
+ component: Zt,
2635
+ ...Yt
2636
2636
  }, {
2637
- component: en,
2638
- ...Zt
2637
+ component: tn,
2638
+ ...en
2639
2639
  }, {
2640
- component: an,
2641
- ...on
2640
+ component: rn,
2641
+ ...an
2642
2642
  }, {
2643
- component: nn,
2644
- ...tn
2643
+ component: on,
2644
+ ...nn
2645
2645
  }, {
2646
- component: ln,
2647
- ...rn
2646
+ component: sn,
2647
+ ...ln
2648
2648
  }, {
2649
- component: cn,
2650
- ...sn
2649
+ component: dn,
2650
+ ...cn
2651
2651
  }], pe = () => [{
2652
- component: Ye,
2653
- ...At
2654
- }, {
2655
- component: Tt,
2652
+ component: Ge,
2656
2653
  ...Wt
2657
2654
  }, {
2658
2655
  component: Et,
2659
2656
  ...Nt
2660
2657
  }, {
2661
- component: Vt,
2658
+ component: Rt,
2662
2659
  ...Ft
2663
2660
  }, {
2664
2661
  component: Bt,
2665
2662
  ...$t
2666
2663
  }, {
2667
- component: Dt,
2664
+ component: At,
2668
2665
  ...Lt
2669
2666
  }, {
2670
- component: An,
2671
- ...Mt
2667
+ component: Mt,
2668
+ ...Dt
2672
2669
  }, {
2673
- component: Ut,
2670
+ component: Wn,
2674
2671
  ...Ot
2675
- }, ...dn()], un = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2672
+ }, {
2673
+ component: jt,
2674
+ ...Ut
2675
+ }, ...un()], mn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2676
2676
  function getAndSetVariantId() {
2677
2677
  function setCookie(name, value, days) {
2678
2678
  let expires = '';
@@ -2728,7 +2728,7 @@ const dn = () => [{
2728
2728
  }).join('');
2729
2729
  styleEl.innerHTML = newStyleStr;
2730
2730
  }
2731
- }`, mn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2731
+ }`, fn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2732
2732
  if (!navigator.cookieEnabled) {
2733
2733
  return;
2734
2734
  }
@@ -2766,16 +2766,16 @@ const dn = () => [{
2766
2766
  ...t,
2767
2767
  testVariationId: t.id,
2768
2768
  id: e == null ? void 0 : e.id
2769
- })), fn = ({
2769
+ })), hn = ({
2770
2770
  canTrack: e,
2771
2771
  content: t
2772
- }) => !(!(J(t).length > 0) || !e || U()), hn = (e) => e === "react" || e === "reactNative", $e = hn(q), gn = () => `
2773
- window.${Ne} = ${un}
2774
- window.${Fe} = ${mn}
2775
- `, bn = (e, t) => `
2772
+ }) => !(!(J(t).length > 0) || !e || j()), gn = (e) => e === "react" || e === "reactNative", $e = gn(z), bn = () => `
2773
+ window.${Ne} = ${mn}
2774
+ window.${Fe} = ${fn}
2775
+ `, yn = (e, t) => `
2776
2776
  window.${Ne}(
2777
2777
  "${t}",${JSON.stringify(e)}, ${$e}
2778
- )`, yn = ({
2778
+ )`, pn = ({
2779
2779
  contentId: e,
2780
2780
  variationId: t
2781
2781
  }) => `window.${Fe}(
@@ -2790,10 +2790,10 @@ function ie(e) {
2790
2790
  }
2791
2791
  );
2792
2792
  }
2793
- function Se(e) {
2793
+ function xe(e) {
2794
2794
  return Math.round(e * 1e3) / 1e3;
2795
2795
  }
2796
- const pn = (e, t, n = !0) => {
2796
+ const xn = (e, t, n = !0) => {
2797
2797
  if (!(e instanceof HTMLElement))
2798
2798
  return null;
2799
2799
  let i = n ? e : e.parentElement;
@@ -2804,28 +2804,28 @@ const pn = (e, t, n = !0) => {
2804
2804
  return i;
2805
2805
  } while (i = i.parentElement);
2806
2806
  return null;
2807
- }, Sn = (e) => pn(e, (t) => {
2807
+ }, Sn = (e) => xn(e, (t) => {
2808
2808
  const n = t.getAttribute("builder-id") || t.id;
2809
2809
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
2810
- }), xe = ({
2810
+ }), Se = ({
2811
2811
  event: e,
2812
2812
  target: t
2813
2813
  }) => {
2814
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = Se(i / n.width), r = Se(o / n.height);
2814
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = xe(i / n.width), r = xe(o / n.height);
2815
2815
  return {
2816
2816
  x: a,
2817
2817
  y: r
2818
2818
  };
2819
- }, xn = (e) => {
2819
+ }, vn = (e) => {
2820
2820
  const t = e.target, n = t && Sn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2821
2821
  return {
2822
2822
  targetBuilderElement: i || void 0,
2823
2823
  metadata: {
2824
- targetOffset: t ? xe({
2824
+ targetOffset: t ? Se({
2825
2825
  event: e,
2826
2826
  target: t
2827
2827
  }) : void 0,
2828
- builderTargetOffset: n ? xe({
2828
+ builderTargetOffset: n ? Se({
2829
2829
  event: e,
2830
2830
  target: n
2831
2831
  }) : void 0,
@@ -2833,70 +2833,70 @@ const pn = (e, t, n = !0) => {
2833
2833
  }
2834
2834
  };
2835
2835
  };
2836
- function vn(e) {
2837
- var R, S, C, P, E, F, $;
2836
+ function kn(e) {
2837
+ var R, p, w, P, E, $, L;
2838
2838
  const t = X(null);
2839
2839
  function n(u) {
2840
- var p, g;
2841
- const f = {
2840
+ var v, b;
2841
+ const h = {
2842
2842
  ...e.builderContextSignal.rootState,
2843
2843
  ...u
2844
2844
  };
2845
- e.builderContextSignal.rootSetState ? (g = (p = e.builderContextSignal).rootSetState) == null || g.call(p, f) : e.setBuilderContextSignal((x) => ({
2845
+ e.builderContextSignal.rootSetState ? (b = (v = e.builderContextSignal).rootSetState) == null || b.call(v, h) : e.setBuilderContextSignal((x) => ({
2846
2846
  ...x,
2847
- rootState: f
2847
+ rootState: h
2848
2848
  }));
2849
2849
  }
2850
2850
  function i(u) {
2851
- var p, g, x, V, D;
2852
- const f = {
2851
+ var v, b, x, A, M;
2852
+ const h = {
2853
2853
  ...e.builderContextSignal.content,
2854
2854
  ...u,
2855
2855
  data: {
2856
- ...(p = e.builderContextSignal.content) == null ? void 0 : p.data,
2856
+ ...(v = e.builderContextSignal.content) == null ? void 0 : v.data,
2857
2857
  ...u == null ? void 0 : u.data
2858
2858
  },
2859
2859
  meta: {
2860
- ...(g = e.builderContextSignal.content) == null ? void 0 : g.meta,
2860
+ ...(b = e.builderContextSignal.content) == null ? void 0 : b.meta,
2861
2861
  ...u == null ? void 0 : u.meta,
2862
- breakpoints: ((x = u == null ? void 0 : u.meta) == null ? void 0 : x.breakpoints) || ((D = (V = e.builderContextSignal.content) == null ? void 0 : V.meta) == null ? void 0 : D.breakpoints)
2862
+ breakpoints: ((x = u == null ? void 0 : u.meta) == null ? void 0 : x.breakpoints) || ((M = (A = e.builderContextSignal.content) == null ? void 0 : A.meta) == null ? void 0 : M.breakpoints)
2863
2863
  }
2864
2864
  };
2865
- e.setBuilderContextSignal((_) => ({
2866
- ..._,
2867
- content: f
2865
+ e.setBuilderContextSignal((W) => ({
2866
+ ...W,
2867
+ content: h
2868
2868
  }));
2869
2869
  }
2870
- const [o, a] = w(
2870
+ const [o, a] = k(
2871
2871
  () => e.contentWrapper || "div"
2872
2872
  );
2873
2873
  function r(u) {
2874
- return Ke({
2874
+ return qe({
2875
2875
  model: e.model,
2876
2876
  trustedHosts: e.trustedHosts,
2877
2877
  callbacks: {
2878
- configureSdk: (f) => {
2878
+ configureSdk: (h) => {
2879
2879
  var x;
2880
- const { breakpoints: p, contentId: g } = f;
2881
- !g || g !== ((x = e.builderContextSignal.content) == null ? void 0 : x.id) || p && i({
2880
+ const { breakpoints: v, contentId: b } = h;
2881
+ !b || b !== ((x = e.builderContextSignal.content) == null ? void 0 : x.id) || v && i({
2882
2882
  meta: {
2883
- breakpoints: p
2883
+ breakpoints: v
2884
2884
  }
2885
2885
  });
2886
2886
  },
2887
- animation: (f) => {
2888
- Re(f);
2887
+ animation: (h) => {
2888
+ Re(h);
2889
2889
  },
2890
- contentUpdate: (f) => {
2891
- i(f);
2890
+ contentUpdate: (h) => {
2891
+ i(h);
2892
2892
  }
2893
2893
  }
2894
2894
  })(u);
2895
2895
  }
2896
2896
  function l() {
2897
- var f, p;
2898
- const u = (p = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : p.jsCode;
2899
- u && K({
2897
+ var h, v;
2898
+ const u = (v = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : v.jsCode;
2899
+ u && q({
2900
2900
  code: u,
2901
2901
  context: e.context || {},
2902
2902
  localState: void 0,
@@ -2908,65 +2908,56 @@ function vn(e) {
2908
2908
  enableCache: !1
2909
2909
  });
2910
2910
  }
2911
- const [d, c] = w(() => ({})), [m, h] = w(() => !1);
2912
- function b(u) {
2913
- var f, p;
2911
+ const [d, c] = k(() => ({})), [m, f] = k(() => ({})), [g, y] = k(() => !1);
2912
+ function S(u) {
2913
+ var h, v;
2914
2914
  if (e.builderContextSignal.content) {
2915
- const g = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, x = (p = e.builderContextSignal.content) == null ? void 0 : p.id;
2915
+ const b = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, x = (v = e.builderContextSignal.content) == null ? void 0 : v.id;
2916
2916
  ue({
2917
2917
  type: "click",
2918
2918
  canTrack: G(e.canTrack),
2919
2919
  contentId: x,
2920
2920
  apiKey: e.apiKey,
2921
- variationId: g !== x ? g : void 0,
2922
- ...xn(u),
2923
- unique: !m
2921
+ variationId: b !== x ? b : void 0,
2922
+ ...vn(u),
2923
+ unique: !g
2924
2924
  });
2925
2925
  }
2926
- m || h(!0);
2927
- }
2928
- function y(u) {
2929
- return u.replace(
2930
- /{{([^}]+)}}/g,
2931
- (f, p) => String(
2932
- K({
2933
- code: p,
2934
- context: e.context || {},
2935
- localState: void 0,
2936
- rootState: e.builderContextSignal.rootState,
2937
- rootSetState: e.builderContextSignal.rootSetState,
2938
- enableCache: !0
2939
- })
2940
- )
2941
- );
2942
- }
2943
- function v({ url: u, key: f }) {
2944
- qe(u).then((p) => p.json()).then((p) => {
2945
- var x, V;
2946
- const g = {
2947
- ...e.builderContextSignal.rootState,
2948
- [f]: p
2949
- };
2950
- (V = (x = e.builderContextSignal).rootSetState) == null || V.call(x, g), d[f] = !0;
2951
- }).catch((p) => {
2952
- console.error("error fetching dynamic data", u, p);
2953
- });
2926
+ g || y(!0);
2954
2927
  }
2955
- function k() {
2956
- var f, p, g;
2957
- const u = (g = (p = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : p.httpRequests) != null ? g : {};
2958
- Object.entries(u).forEach(([x, V]) => {
2959
- if (V && (!d[x] || W())) {
2960
- const D = y(V);
2961
- v({
2962
- url: D,
2963
- key: x
2964
- });
2965
- }
2928
+ function C() {
2929
+ var h, v, b;
2930
+ const u = (b = (v = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : v.httpRequests) != null ? b : {};
2931
+ Object.entries(u).forEach(([x, A]) => {
2932
+ if (!A || m[x] || d[x] && !N())
2933
+ return;
2934
+ m[x] = !0;
2935
+ const M = A.replace(
2936
+ /{{([^}]+)}}/g,
2937
+ (W, Le) => String(
2938
+ q({
2939
+ code: Le,
2940
+ context: e.context || {},
2941
+ localState: void 0,
2942
+ rootState: e.builderContextSignal.rootState,
2943
+ rootSetState: e.builderContextSignal.rootSetState,
2944
+ enableCache: !0
2945
+ })
2946
+ )
2947
+ );
2948
+ ze(M).then((W) => W.json()).then((W) => {
2949
+ n({
2950
+ [x]: W
2951
+ }), d[x] = !0;
2952
+ }).catch((W) => {
2953
+ console.error("error fetching dynamic data", A, W);
2954
+ }).finally(() => {
2955
+ m[x] = !1;
2956
+ });
2966
2957
  });
2967
2958
  }
2968
2959
  function I() {
2969
- W() && window.dispatchEvent(
2960
+ N() && window.dispatchEvent(
2970
2961
  new CustomEvent(
2971
2962
  "builder:component:stateChange",
2972
2963
  {
@@ -2980,10 +2971,10 @@ function vn(e) {
2980
2971
  )
2981
2972
  );
2982
2973
  }
2983
- return B(() => {
2984
- var u, f;
2985
- if (U()) {
2986
- if (W() && (window.addEventListener("message", r), Oe(), Ue({
2974
+ return V(() => {
2975
+ var u, h;
2976
+ if (j()) {
2977
+ if (N() && (window.addEventListener("message", r), Ue(), je({
2987
2978
  ...e.locale ? {
2988
2979
  locale: e.locale
2989
2980
  } : {},
@@ -2995,56 +2986,56 @@ function vn(e) {
2995
2986
  } : {}
2996
2987
  }), Object.values(
2997
2988
  e.builderContextSignal.componentInfos
2998
- ).forEach((g) => {
2999
- var V;
3000
- const x = je(g);
3001
- (V = window.parent) == null || V.postMessage(x, "*");
2989
+ ).forEach((b) => {
2990
+ var A;
2991
+ const x = He(b);
2992
+ (A = window.parent) == null || A.postMessage(x, "*");
3002
2993
  }), window.addEventListener(
3003
2994
  "builder:component:stateChangeListenerActivated",
3004
2995
  I
3005
2996
  )), e.builderContextSignal.content && G(e.canTrack)) {
3006
- const g = (u = e.builderContextSignal.content) == null ? void 0 : u.testVariationId, x = (f = e.builderContextSignal.content) == null ? void 0 : f.id, V = e.apiKey;
2997
+ const b = (u = e.builderContextSignal.content) == null ? void 0 : u.testVariationId, x = (h = e.builderContextSignal.content) == null ? void 0 : h.id, A = e.apiKey;
3007
2998
  ue({
3008
2999
  type: "impression",
3009
3000
  canTrack: !0,
3010
3001
  contentId: x,
3011
- apiKey: V,
3012
- variationId: g !== x ? g : void 0
3002
+ apiKey: A,
3003
+ variationId: b !== x ? b : void 0
3013
3004
  });
3014
3005
  }
3015
- if (He()) {
3016
- const g = new URL(location.href).searchParams, x = g.get("builder.preview"), V = g.get(
3006
+ if (Ke()) {
3007
+ const b = new URL(location.href).searchParams, x = b.get("builder.preview"), A = b.get(
3017
3008
  `builder.preview.${x}`
3018
- ), D = g.get("apiKey") || g.get("builder.space");
3019
- x === e.model && D === e.apiKey && (!e.content || V === e.content.id) && ke({
3009
+ ), M = b.get("apiKey") || b.get("builder.space");
3010
+ x === e.model && M === e.apiKey && (!e.content || A === e.content.id) && ke({
3020
3011
  model: e.model,
3021
3012
  apiKey: e.apiKey,
3022
3013
  apiVersion: e.builderContextSignal.apiVersion
3023
- }).then((_) => {
3024
- _ && i(_);
3014
+ }).then((W) => {
3015
+ W && i(W);
3025
3016
  });
3026
3017
  }
3027
3018
  }
3028
- }, []), B(() => {
3029
- e.apiKey || j.error(
3019
+ }, []), V(() => {
3020
+ e.apiKey || H.error(
3030
3021
  "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3031
- ), l(), k(), I();
3032
- }, []), B(() => {
3022
+ ), l(), C(), I();
3023
+ }, []), V(() => {
3033
3024
  e.content && i(e.content);
3034
- }, [e.content]), B(() => {
3025
+ }, [e.content]), V(() => {
3035
3026
  l();
3036
- }, [(S = (R = e.builderContextSignal.content) == null ? void 0 : R.data) == null ? void 0 : S.jsCode]), B(() => {
3037
- k();
3038
- }, [(P = (C = e.builderContextSignal.content) == null ? void 0 : C.data) == null ? void 0 : P.httpRequests]), B(() => {
3027
+ }, [(p = (R = e.builderContextSignal.content) == null ? void 0 : R.data) == null ? void 0 : p.jsCode]), V(() => {
3028
+ C();
3029
+ }, [(P = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : P.httpRequests]), V(() => {
3039
3030
  I();
3040
- }, [e.builderContextSignal.rootState]), B(() => {
3031
+ }, [e.builderContextSignal.rootState]), V(() => {
3041
3032
  e.data && n(e.data);
3042
- }, [e.data]), B(() => {
3033
+ }, [e.data]), V(() => {
3043
3034
  e.locale && n({
3044
3035
  locale: e.locale
3045
3036
  });
3046
- }, [e.locale]), B(() => () => {
3047
- U() && (window.removeEventListener("message", r), window.removeEventListener(
3037
+ }, [e.locale]), V(() => () => {
3038
+ j() && (window.removeEventListener("message", r), window.removeEventListener(
3048
3039
  "builder:component:stateChangeListenerActivated",
3049
3040
  I
3050
3041
  ));
@@ -3052,7 +3043,7 @@ function vn(e) {
3052
3043
  o,
3053
3044
  {
3054
3045
  ref: t,
3055
- onClick: (u) => b(u),
3046
+ onClick: (u) => S(u),
3056
3047
  "builder-content-id": (E = e.builderContextSignal.content) == null ? void 0 : E.id,
3057
3048
  "builder-model": e.model,
3058
3049
  ...e.showContent ? {} : {
@@ -3060,12 +3051,12 @@ function vn(e) {
3060
3051
  "aria-hidden": !0
3061
3052
  },
3062
3053
  ...e.contentWrapperProps,
3063
- className: `variant-${((F = e.content) == null ? void 0 : F.testVariationId) || (($ = e.content) == null ? void 0 : $.id)}`,
3054
+ className: `variant-${(($ = e.content) == null ? void 0 : $.testVariationId) || ((L = e.content) == null ? void 0 : L.id)}`,
3064
3055
  children: e.children
3065
3056
  }
3066
3057
  ) : null });
3067
3058
  }
3068
- const kn = (e) => {
3059
+ const Cn = (e) => {
3069
3060
  var a, r;
3070
3061
  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;
3071
3062
  let o = "";
@@ -3091,15 +3082,15 @@ font-weight: ${l};
3091
3082
  `.trim());
3092
3083
  }
3093
3084
  return o;
3094
- }, Cn = ({
3085
+ }, wn = ({
3095
3086
  customFonts: e
3096
3087
  }) => {
3097
3088
  var t;
3098
- return ((t = e == null ? void 0 : e.map((n) => kn(n))) == null ? void 0 : t.join(" ")) || "";
3099
- }, wn = ({
3089
+ return ((t = e == null ? void 0 : e.map((n) => Cn(n))) == null ? void 0 : t.join(" ")) || "";
3090
+ }, In = ({
3100
3091
  cssCode: e,
3101
3092
  contentId: t
3102
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", In = `
3093
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Tn = `
3103
3094
  .builder-button {
3104
3095
  all: unset;
3105
3096
  }
@@ -3116,23 +3107,23 @@ font-weight: ${l};
3116
3107
  text-align: inherit;
3117
3108
  font-family: inherit;
3118
3109
  }
3119
- `, Tn = (e) => e ? "" : In;
3120
- function En(e) {
3121
- const [t, n] = w(
3110
+ `, En = (e) => e ? "" : Tn;
3111
+ function Rn(e) {
3112
+ const [t, n] = k(
3122
3113
  () => `
3123
- ${wn({
3114
+ ${In({
3124
3115
  cssCode: e.cssCode,
3125
3116
  contentId: e.contentId
3126
3117
  })}
3127
- ${Cn({
3118
+ ${wn({
3128
3119
  customFonts: e.customFonts
3129
3120
  })}
3130
- ${Tn(e.isNestedRender)}
3121
+ ${En(e.isNestedRender)}
3131
3122
  `.trim()
3132
3123
  );
3133
3124
  return /* @__PURE__ */ s(Z, { id: "builderio-content", styles: t });
3134
3125
  }
3135
- const Rn = ({
3126
+ const Pn = ({
3136
3127
  content: e,
3137
3128
  data: t,
3138
3129
  locale: n
@@ -3149,7 +3140,7 @@ const Rn = ({
3149
3140
  locale: n
3150
3141
  } : {}
3151
3142
  };
3152
- }, Pn = ({
3143
+ }, Vn = ({
3153
3144
  content: e,
3154
3145
  data: t
3155
3146
  }) => e ? {
@@ -3161,31 +3152,31 @@ const Rn = ({
3161
3152
  meta: e == null ? void 0 : e.meta
3162
3153
  } : void 0;
3163
3154
  function ve(e) {
3164
- var d, c, m, h, b, y, v;
3165
- const [t, n] = w(
3155
+ var d, c, m, f, g, y, S;
3156
+ const [t, n] = k(
3166
3157
  () => {
3167
- var k, I;
3168
- return yn({
3158
+ var C, I;
3159
+ return pn({
3169
3160
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3170
- variationId: (k = e.content) == null ? void 0 : k.testVariationId,
3161
+ variationId: (C = e.content) == null ? void 0 : C.testVariationId,
3171
3162
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3172
3163
  contentId: (I = e.content) == null ? void 0 : I.id
3173
3164
  });
3174
3165
  }
3175
3166
  );
3176
- function i(k) {
3167
+ function i(C) {
3177
3168
  l((I) => ({
3178
3169
  ...I,
3179
- rootState: k
3170
+ rootState: C
3180
3171
  }));
3181
3172
  }
3182
- const [o, a] = w(
3173
+ const [o, a] = k(
3183
3174
  () => [
3184
3175
  ...pe(),
3185
3176
  ...e.customComponents || []
3186
3177
  ].reduce(
3187
- (k, { component: I, ...R }) => ({
3188
- ...k,
3178
+ (C, { component: I, ...R }) => ({
3179
+ ...C,
3189
3180
  [R.name]: {
3190
3181
  component: I,
3191
3182
  ...me(R)
@@ -3193,13 +3184,13 @@ function ve(e) {
3193
3184
  }),
3194
3185
  {}
3195
3186
  )
3196
- ), [r, l] = w(() => ({
3197
- content: Pn({
3187
+ ), [r, l] = k(() => ({
3188
+ content: Vn({
3198
3189
  content: e.content,
3199
3190
  data: e.data
3200
3191
  }),
3201
3192
  localState: void 0,
3202
- rootState: Rn({
3193
+ rootState: Pn({
3203
3194
  content: e.content,
3204
3195
  data: e.data,
3205
3196
  locale: e.locale
@@ -3212,8 +3203,8 @@ function ve(e) {
3212
3203
  ...pe(),
3213
3204
  ...e.customComponents || []
3214
3205
  ].reduce(
3215
- (k, { component: I, ...R }) => ({
3216
- ...k,
3206
+ (C, { component: I, ...R }) => ({
3207
+ ...C,
3217
3208
  [R.name]: me(R)
3218
3209
  }),
3219
3210
  {}
@@ -3228,8 +3219,8 @@ function ve(e) {
3228
3219
  value: {
3229
3220
  registeredComponents: o
3230
3221
  },
3231
- children: /* @__PURE__ */ A(
3232
- vn,
3222
+ children: /* @__PURE__ */ B(
3223
+ kn,
3233
3224
  {
3234
3225
  content: e.content,
3235
3226
  data: e.data,
@@ -3255,18 +3246,18 @@ function ve(e) {
3255
3246
  }
3256
3247
  ) : null,
3257
3248
  /* @__PURE__ */ s(
3258
- En,
3249
+ Rn,
3259
3250
  {
3260
3251
  isNestedRender: e.isNestedRender,
3261
3252
  contentId: (d = r.content) == null ? void 0 : d.id,
3262
3253
  cssCode: (m = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : m.cssCode,
3263
- customFonts: (b = (h = r.content) == null ? void 0 : h.data) == null ? void 0 : b.customFonts
3254
+ customFonts: (g = (f = r.content) == null ? void 0 : f.data) == null ? void 0 : g.customFonts
3264
3255
  }
3265
3256
  ),
3266
3257
  /* @__PURE__ */ s(
3267
- O,
3258
+ U,
3268
3259
  {
3269
- blocks: (v = (y = r.content) == null ? void 0 : y.data) == null ? void 0 : v.blocks,
3260
+ blocks: (S = (y = r.content) == null ? void 0 : y.data) == null ? void 0 : S.blocks,
3270
3261
  context: r,
3271
3262
  registeredComponents: o,
3272
3263
  linkComponent: e.linkComponent
@@ -3278,17 +3269,17 @@ function ve(e) {
3278
3269
  }
3279
3270
  );
3280
3271
  }
3281
- function Vn(e) {
3272
+ function Bn(e) {
3282
3273
  var r;
3283
- const [t, n] = w(
3284
- () => fn({
3274
+ const [t, n] = k(
3275
+ () => hn({
3285
3276
  canTrack: G(e.canTrack),
3286
3277
  content: e.content
3287
3278
  })
3288
3279
  );
3289
3280
  function i() {
3290
3281
  var l;
3291
- return bn(
3282
+ return yn(
3292
3283
  J(e.content).map((d) => ({
3293
3284
  id: d.testVariationId,
3294
3285
  testRatio: d.testRatio
@@ -3304,21 +3295,21 @@ function Vn(e) {
3304
3295
  return t ? {
3305
3296
  ...e.content,
3306
3297
  testVariationId: (l = e.content) == null ? void 0 : l.id
3307
- } : ze({
3298
+ } : _e({
3308
3299
  item: e.content,
3309
3300
  canTrack: G(e.canTrack)
3310
3301
  });
3311
3302
  }
3312
- return B(() => {
3313
- }, []), /* @__PURE__ */ A(T, { children: [
3314
- !e.isNestedRender && q !== "reactNative" ? /* @__PURE__ */ s(
3303
+ return V(() => {
3304
+ }, []), /* @__PURE__ */ B(T, { children: [
3305
+ !e.isNestedRender && z !== "reactNative" ? /* @__PURE__ */ s(
3315
3306
  ie,
3316
3307
  {
3317
3308
  id: "builderio-init-variants-fns",
3318
- scriptStr: gn()
3309
+ scriptStr: bn()
3319
3310
  }
3320
3311
  ) : null,
3321
- t ? /* @__PURE__ */ A(T, { children: [
3312
+ t ? /* @__PURE__ */ B(T, { children: [
3322
3313
  /* @__PURE__ */ s(
3323
3314
  Z,
3324
3315
  {
@@ -3385,7 +3376,7 @@ function Vn(e) {
3385
3376
  )
3386
3377
  ] });
3387
3378
  }
3388
- const Bn = async ({
3379
+ const An = async ({
3389
3380
  builderContextValue: e,
3390
3381
  symbol: t
3391
3382
  }) => {
@@ -3401,37 +3392,37 @@ const Bn = async ({
3401
3392
  }
3402
3393
  }
3403
3394
  }).catch((n) => {
3404
- j.error("Could not fetch symbol content: ", n);
3395
+ H.error("Could not fetch symbol content: ", n);
3405
3396
  });
3406
3397
  };
3407
- function An(e) {
3398
+ function Wn(e) {
3408
3399
  var a, r, l, d;
3409
3400
  function t() {
3410
3401
  var c, m;
3411
3402
  return [
3412
- e.attributes[H()],
3403
+ e.attributes[K()],
3413
3404
  "builder-symbol",
3414
3405
  (c = e.symbol) != null && c.inline ? "builder-inline-symbol" : void 0,
3415
3406
  (m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
3416
3407
  ].filter(Boolean).join(" ");
3417
3408
  }
3418
- const [n, i] = w(() => {
3409
+ const [n, i] = k(() => {
3419
3410
  var c;
3420
3411
  return (c = e.symbol) == null ? void 0 : c.content;
3421
3412
  });
3422
3413
  function o() {
3423
- n || Bn({
3414
+ n || An({
3424
3415
  symbol: e.symbol,
3425
3416
  builderContextValue: e.builderContext
3426
3417
  }).then((c) => {
3427
3418
  c && i(c);
3428
3419
  });
3429
3420
  }
3430
- return B(() => {
3431
- }, []), B(() => {
3421
+ return V(() => {
3422
+ }, []), V(() => {
3432
3423
  o();
3433
3424
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ s(
3434
- Vn,
3425
+ Bn,
3435
3426
  {
3436
3427
  isNestedRender: !0,
3437
3428
  apiVersion: e.builderContext.apiVersion,
@@ -3455,14 +3446,14 @@ function An(e) {
3455
3446
  ) });
3456
3447
  }
3457
3448
  export {
3458
- O as Blocks,
3459
- Ye as Button,
3460
- Tt as Columns,
3461
- Vn as Content,
3462
- Et as Fragment,
3463
- Vt as Image,
3464
- Bt as Section,
3465
- An as Symbol,
3466
- Ut as Text,
3467
- cn as Video
3449
+ U as Blocks,
3450
+ Ge as Button,
3451
+ Et as Columns,
3452
+ Bn as Content,
3453
+ Rt as Fragment,
3454
+ Bt as Image,
3455
+ At as Section,
3456
+ Wn as Symbol,
3457
+ jt as Text,
3458
+ dn as Video
3468
3459
  };