@builder.io/sdk-react 1.0.15 → 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 (52) hide show
  1. package/lib/browser/blocks-exports.cjs +21 -21
  2. package/lib/browser/blocks-exports.mjs +542 -527
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/{server-entry-3d9c0013.js → server-entry-064a8b7f.js} +1 -1
  6. package/lib/browser/{server-entry-60192a70.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-8cf047ac.cjs → blocks-1f59d1c0.cjs} +2 -2
  10. package/lib/edge/blocks-exports.cjs +1 -1
  11. package/lib/edge/blocks-exports.mjs +2 -2
  12. package/lib/edge/{blocks-874a3da2.js → blocks-fe027bf7.js} +10 -4
  13. package/lib/edge/{button-e8062d3a.cjs → button-36ac5d97.cjs} +1 -1
  14. package/lib/edge/{button-f921801d.js → button-8fdd068a.js} +2 -2
  15. package/lib/edge/{columns-cd3277d0.cjs → columns-36bdc015.cjs} +2 -2
  16. package/lib/edge/{columns-3d6fd99f.js → columns-4f789807.js} +27 -27
  17. package/lib/edge/content-variants-87f99284.cjs +134 -0
  18. package/lib/edge/{content-variants-716e35d3.js → content-variants-a26825d5.js} +282 -273
  19. package/lib/edge/{form-ed39d763.js → form-004ab04e.js} +3 -3
  20. package/lib/edge/{form-9e4155f9.cjs → form-6b599bb9.cjs} +1 -1
  21. package/lib/edge/{get-class-prop-name-97c37936.cjs → get-class-prop-name-522545c4.cjs} +1 -1
  22. package/lib/edge/{get-class-prop-name-63df96dc.js → get-class-prop-name-ee5eac9d.js} +1 -1
  23. package/lib/edge/{img-60cd5cd5.js → img-5d36c59d.js} +1 -1
  24. package/lib/edge/{img-4c6f100c.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-cf3adf1f.js → input-211240f4.js} +1 -1
  28. package/lib/edge/{input-2d8eb4bc.cjs → input-34a4e538.cjs} +1 -1
  29. package/lib/edge/{select-8e2ef3ed.cjs → select-a425b313.cjs} +1 -1
  30. package/lib/edge/{select-03974bcf.js → select-e592f42a.js} +1 -1
  31. package/lib/edge/{server-entry-1263a732.cjs → server-entry-04a076eb.cjs} +1 -1
  32. package/lib/edge/{server-entry-24e90a71.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-972c3844.cjs → slot-1547b467.cjs} +1 -1
  36. package/lib/edge/{slot-1408ceff.js → slot-20e9bd0c.js} +3 -3
  37. package/lib/edge/{symbol-781970fe.cjs → symbol-441a42f8.cjs} +1 -1
  38. package/lib/edge/{symbol-80a11943.js → symbol-8aa6a69b.js} +2 -2
  39. package/lib/node/blocks-exports.cjs +11 -11
  40. package/lib/node/blocks-exports.mjs +482 -467
  41. package/lib/node/index.cjs +1 -1
  42. package/lib/node/index.mjs +1 -1
  43. package/lib/node/{server-entry-016a36f7.js → server-entry-a2617044.js} +1 -1
  44. package/lib/node/{server-entry-71df0c38.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/components/content-variants/helpers.d.ts +1 -1
  49. package/types/components/inlined-script.d.ts +1 -1
  50. package/types/components/inlined-styles.d.ts +1 -1
  51. package/types/constants/sdk-version.d.ts +1 -1
  52. package/lib/edge/content-variants-23991643.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-3d9c0013.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,
@@ -525,9 +525,15 @@ const ft = ({
525
525
  }, n;
526
526
  };
527
527
  function Z(e) {
528
- return /* @__PURE__ */ s("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
528
+ return /* @__PURE__ */ s(
529
+ "style",
530
+ {
531
+ dangerouslySetInnerHTML: { __html: e.styles },
532
+ "data-id": e.id
533
+ }
534
+ );
529
535
  }
530
- function gt(e) {
536
+ function bt(e) {
531
537
  function t() {
532
538
  const i = Q({
533
539
  block: e.block,
@@ -540,7 +546,7 @@ function gt(e) {
540
546
  return Y(i.hide) ? !i.hide : Y(i.show) ? i.show : !0;
541
547
  }
542
548
  function n() {
543
- var v;
549
+ var S;
544
550
  const i = Q({
545
551
  block: e.block,
546
552
  localState: e.context.localState,
@@ -549,14 +555,14 @@ function gt(e) {
549
555
  context: e.context.context,
550
556
  shouldEvaluateBindings: !0
551
557
  }), o = i.responsiveStyles, a = e.context.content, r = Ae(
552
- ((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) || {}
553
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;
554
560
  if (!m)
555
561
  return "";
556
- const h = l ? te({
562
+ const f = l ? te({
557
563
  className: m,
558
564
  styles: l
559
- }) : "", b = d ? te({
565
+ }) : "", g = d ? te({
560
566
  className: m,
561
567
  styles: d,
562
568
  mediaQuery: ge(
@@ -571,14 +577,14 @@ function gt(e) {
571
577
  r
572
578
  )
573
579
  }) : "";
574
- return [h, b, y].join(" ");
580
+ return [f, g, y].join(" ");
575
581
  }
576
- return /* @__PURE__ */ s(T, { children: n() && t() ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(Z, { styles: n() }) }) : null });
582
+ return /* @__PURE__ */ s(T, { children: n() && t() ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(Z, { id: "builderio-block", styles: n() }) }) : null });
577
583
  }
578
- function bt(e) {
584
+ function yt(e) {
579
585
  return e.charAt(0).toUpperCase() + e.slice(1);
580
586
  }
581
- const yt = (e) => `on${bt(e)}`, pt = (e, t) => (n) => K({
587
+ const pt = (e) => `on${yt(e)}`, xt = (e, t) => (n) => q({
582
588
  code: e,
583
589
  context: t.context,
584
590
  localState: t.localState,
@@ -595,9 +601,9 @@ function We(e) {
595
601
  if (!n.hasOwnProperty(o))
596
602
  continue;
597
603
  const a = n[o];
598
- let r = yt(o);
604
+ let r = pt(o);
599
605
  if (e.stripPrefix)
600
- switch (q) {
606
+ switch (z) {
601
607
  case "vue":
602
608
  r = r.replace("v-on:", "");
603
609
  break;
@@ -605,7 +611,7 @@ function We(e) {
605
611
  r = r.replace("on:", "");
606
612
  break;
607
613
  }
608
- t[r] = pt(a, e);
614
+ t[r] = xt(a, e);
609
615
  }
610
616
  return t;
611
617
  }
@@ -614,7 +620,7 @@ function St({
614
620
  }) {
615
621
  return e;
616
622
  }
617
- const xt = (e) => ({
623
+ const vt = (e) => ({
618
624
  href: e.href
619
625
  });
620
626
  function de({
@@ -623,14 +629,14 @@ function de({
623
629
  }) {
624
630
  var i;
625
631
  const n = {
626
- ...xt(e),
632
+ ...vt(e),
627
633
  ...e.properties,
628
634
  "builder-id": e.id,
629
- style: mt({
635
+ style: ft({
630
636
  block: e,
631
637
  context: t
632
638
  }),
633
- [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(" ")
634
640
  };
635
641
  return St({
636
642
  properties: n,
@@ -638,7 +644,7 @@ function de({
638
644
  block: e
639
645
  });
640
646
  }
641
- function vt(e) {
647
+ function kt(e) {
642
648
  return /* @__PURE__ */ s(
643
649
  ae,
644
650
  {
@@ -659,7 +665,7 @@ function vt(e) {
659
665
  }
660
666
  );
661
667
  }
662
- function kt(e) {
668
+ function Ct(e) {
663
669
  return /* @__PURE__ */ s(
664
670
  e.Wrapper,
665
671
  {
@@ -681,7 +687,7 @@ function kt(e) {
681
687
  }
682
688
  );
683
689
  }
684
- const Ct = ({
690
+ const wt = ({
685
691
  componentOptions: e,
686
692
  builderBlock: t,
687
693
  context: n,
@@ -713,13 +719,13 @@ const Ct = ({
713
719
  };
714
720
  function be(e) {
715
721
  var i;
716
- const [t, n] = w(
717
- () => e.isInteractive ? kt : e.componentRef
722
+ const [t, n] = k(
723
+ () => e.isInteractive ? Ct : e.componentRef
718
724
  );
719
725
  return /* @__PURE__ */ s(T, { children: e.componentRef ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(
720
726
  t,
721
727
  {
722
- ...Ct({
728
+ ...wt({
723
729
  componentOptions: e.componentOptions,
724
730
  builderBlock: e.builderBlock,
725
731
  context: e.context,
@@ -730,7 +736,7 @@ function be(e) {
730
736
  contextValue: e.context
731
737
  }),
732
738
  children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ s(
733
- z,
739
+ _,
734
740
  {
735
741
  block: o,
736
742
  context: e.context,
@@ -742,10 +748,10 @@ function be(e) {
742
748
  }
743
749
  ) }) : null });
744
750
  }
745
- function wt(e) {
746
- const [t, n] = w(() => e.repeatContext);
751
+ function It(e) {
752
+ const [t, n] = k(() => e.repeatContext);
747
753
  return /* @__PURE__ */ s(re.Provider, { value: t, children: /* @__PURE__ */ s(
748
- z,
754
+ _,
749
755
  {
750
756
  block: e.block,
751
757
  context: t,
@@ -754,24 +760,24 @@ function wt(e) {
754
760
  }
755
761
  ) });
756
762
  }
757
- function z(e) {
763
+ function _(e) {
758
764
  var d, c, m;
759
765
  function t() {
760
- return ft({
766
+ return ht({
761
767
  block: e.block,
762
768
  context: e.context,
763
769
  registeredComponents: e.registeredComponents
764
770
  });
765
771
  }
766
772
  function n() {
767
- return ht({
773
+ return gt({
768
774
  block: e.block,
769
775
  context: e.context
770
776
  });
771
777
  }
772
778
  function i() {
773
- var h;
774
- 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({
775
781
  block: e.block,
776
782
  localState: e.context.localState,
777
783
  rootState: e.context.rootState,
@@ -781,32 +787,32 @@ function z(e) {
781
787
  });
782
788
  }
783
789
  function o() {
784
- var b;
785
- 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";
786
792
  }
787
793
  function a() {
788
- var y, v;
794
+ var y, S;
789
795
  if ((y = e.block.repeat) != null && y.collection)
790
- return !!((v = n == null ? void 0 : n()) != null && v.length);
791
- const h = "hide" in i() ? i().hide : !1;
792
- 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;
793
799
  }
794
800
  function r() {
795
- var b, y;
796
- 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 : [] : [];
797
803
  }
798
804
  function l() {
799
- 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;
800
806
  return {
801
- blockChildren: (h = i().children) != null ? h : [],
802
- 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,
803
809
  componentOptions: {
804
- ...Ge(i()),
810
+ ...Qe(i()),
805
811
  builderContext: e.context,
806
- ...((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" ? {
807
813
  builderLinkComponent: e.linkComponent
808
814
  } : {},
809
- ...((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" ? {
810
816
  builderComponents: e.registeredComponents
811
817
  } : {}
812
818
  },
@@ -818,16 +824,16 @@ function z(e) {
818
824
  isInteractive: !((E = t == null ? void 0 : t()) != null && E.isRSC)
819
825
  };
820
826
  }
821
- return B(() => {
822
- const h = i().id, b = i().animations;
823
- b && h && at(
824
- 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) => ({
825
831
  ...y,
826
- elementId: h
832
+ elementId: f
827
833
  }))
828
834
  );
829
- }, []), /* @__PURE__ */ s(T, { children: a() ? /* @__PURE__ */ A(T, { children: [
830
- /* @__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 }),
831
837
  (d = t == null ? void 0 : t()) != null && d.noWrap ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(
832
838
  be,
833
839
  {
@@ -841,17 +847,17 @@ function z(e) {
841
847
  includeBlockProps: l().includeBlockProps,
842
848
  isInteractive: l().isInteractive
843
849
  }
844
- ) }) : /* @__PURE__ */ s(T, { children: n() ? /* @__PURE__ */ s(T, { children: (m = n()) == null ? void 0 : m.map((h, b) => /* @__PURE__ */ s(
845
- wt,
850
+ ) }) : /* @__PURE__ */ s(T, { children: n() ? /* @__PURE__ */ s(T, { children: (m = n()) == null ? void 0 : m.map((f, g) => /* @__PURE__ */ s(
851
+ It,
846
852
  {
847
- repeatContext: h.context,
848
- block: h.block,
853
+ repeatContext: f.context,
854
+ block: f.block,
849
855
  registeredComponents: e.registeredComponents,
850
856
  linkComponent: e.linkComponent
851
857
  },
852
- b
853
- )) }) : /* @__PURE__ */ A(
854
- vt,
858
+ g
859
+ )) }) : /* @__PURE__ */ B(
860
+ kt,
855
861
  {
856
862
  Wrapper: o(),
857
863
  block: i(),
@@ -872,29 +878,29 @@ function z(e) {
872
878
  isInteractive: l().isInteractive
873
879
  }
874
880
  ),
875
- (c = r()) == null ? void 0 : c.map((h) => /* @__PURE__ */ s(
876
- z,
881
+ (c = r()) == null ? void 0 : c.map((f) => /* @__PURE__ */ s(
882
+ _,
877
883
  {
878
- block: h,
884
+ block: f,
879
885
  registeredComponents: e.registeredComponents,
880
886
  linkComponent: e.linkComponent,
881
887
  context: e.context
882
888
  },
883
- h.id
889
+ f.id
884
890
  ))
885
891
  ]
886
892
  }
887
893
  ) })
888
894
  ] }) : null });
889
895
  }
890
- function It(e) {
896
+ function Tt(e) {
891
897
  function t() {
892
898
  var o;
893
899
  return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
894
900
  }
895
901
  function n() {
896
902
  var o, a;
897
- 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(
898
904
  {
899
905
  type: "builder.clickEmptyBlocks",
900
906
  data: {
@@ -907,7 +913,7 @@ function It(e) {
907
913
  }
908
914
  function i() {
909
915
  var o, a;
910
- 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(
911
917
  {
912
918
  type: "builder.hoverEmptyBlocks",
913
919
  data: {
@@ -918,7 +924,7 @@ function It(e) {
918
924
  "*"
919
925
  ));
920
926
  }
921
- return /* @__PURE__ */ A(T, { children: [
927
+ return /* @__PURE__ */ B(T, { children: [
922
928
  /* @__PURE__ */ s(
923
929
  e.BlocksWrapper,
924
930
  {
@@ -940,11 +946,11 @@ function It(e) {
940
946
  }` })
941
947
  ] });
942
948
  }
943
- function O(e) {
949
+ function U(e) {
944
950
  var i, o, a;
945
951
  const t = fe(re), n = fe(Ie);
946
952
  return /* @__PURE__ */ s(
947
- It,
953
+ Tt,
948
954
  {
949
955
  blocks: e.blocks,
950
956
  parent: e.parent,
@@ -953,7 +959,7 @@ function O(e) {
953
959
  BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
954
960
  BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
955
961
  children: e.blocks ? /* @__PURE__ */ s(T, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ s(
956
- z,
962
+ _,
957
963
  {
958
964
  block: r,
959
965
  linkComponent: e.linkComponent,
@@ -965,47 +971,47 @@ function O(e) {
965
971
  }
966
972
  );
967
973
  }
968
- function Tt(e) {
974
+ function Et(e) {
969
975
  var R;
970
- const [t, n] = w(
976
+ const [t, n] = k(
971
977
  () => typeof e.space == "number" ? e.space || 0 : 20
972
- ), [i, o] = w(() => e.columns || []), [a, r] = w(
978
+ ), [i, o] = k(() => e.columns || []), [a, r] = k(
973
979
  () => e.stackColumnsAt || "tablet"
974
980
  );
975
- function l(S) {
976
- var C;
977
- 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;
978
984
  }
979
- function d(S) {
980
- const C = t * (i.length - 1) / i.length;
981
- 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)`;
982
988
  }
983
989
  function c({
984
- stackedStyle: S,
985
- desktopStyle: C
990
+ stackedStyle: p,
991
+ desktopStyle: w
986
992
  }) {
987
- return a === "tablet" ? S : C;
993
+ return a === "tablet" ? p : w;
988
994
  }
989
995
  function m({
990
- stackedStyle: S,
991
- desktopStyle: C
996
+ stackedStyle: p,
997
+ desktopStyle: w
992
998
  }) {
993
- return a === "never" ? C : S;
999
+ return a === "never" ? w : p;
994
1000
  }
995
- const [h, b] = w(
1001
+ const [f, g] = k(
996
1002
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
997
1003
  );
998
1004
  function y() {
999
1005
  return {
1000
- "--flex-dir": h,
1006
+ "--flex-dir": f,
1001
1007
  "--flex-dir-tablet": c({
1002
- stackedStyle: h,
1008
+ stackedStyle: f,
1003
1009
  desktopStyle: "row"
1004
1010
  })
1005
1011
  };
1006
1012
  }
1007
- function v(S) {
1008
- 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;
1009
1015
  return {
1010
1016
  ...{
1011
1017
  display: "flex",
@@ -1015,32 +1021,32 @@ function Tt(e) {
1015
1021
  width: P,
1016
1022
  ["marginLeft"]: E,
1017
1023
  "--column-width-mobile": m({
1018
- stackedStyle: F,
1024
+ stackedStyle: $,
1019
1025
  desktopStyle: P
1020
1026
  }),
1021
1027
  "--column-margin-left-mobile": m({
1022
- stackedStyle: $,
1028
+ stackedStyle: L,
1023
1029
  desktopStyle: E
1024
1030
  }),
1025
1031
  "--column-width-tablet": c({
1026
- stackedStyle: F,
1032
+ stackedStyle: $,
1027
1033
  desktopStyle: P
1028
1034
  }),
1029
1035
  "--column-margin-left-tablet": c({
1030
- stackedStyle: $,
1036
+ stackedStyle: L,
1031
1037
  desktopStyle: E
1032
1038
  })
1033
1039
  };
1034
1040
  }
1035
- function k(S) {
1041
+ function C(p) {
1036
1042
  var P, E;
1037
1043
  return Ae(
1038
1044
  ((E = (P = e.builderContext.content) == null ? void 0 : P.meta) == null ? void 0 : E.breakpoints) || {}
1039
- )[S].max;
1045
+ )[p].max;
1040
1046
  }
1041
1047
  function I() {
1042
1048
  return `
1043
- @media (max-width: ${k("medium")}px) {
1049
+ @media (max-width: ${C("medium")}px) {
1044
1050
  .${e.builderBlock.id}-breakpoints {
1045
1051
  flex-direction: var(--flex-dir-tablet);
1046
1052
  align-items: stretch;
@@ -1052,7 +1058,7 @@ function Tt(e) {
1052
1058
  }
1053
1059
  }
1054
1060
 
1055
- @media (max-width: ${k("small")}px) {
1061
+ @media (max-width: ${C("small")}px) {
1056
1062
  .${e.builderBlock.id}-breakpoints {
1057
1063
  flex-direction: var(--flex-dir);
1058
1064
  align-items: stretch;
@@ -1065,30 +1071,30 @@ function Tt(e) {
1065
1071
  },
1066
1072
  `;
1067
1073
  }
1068
- return /* @__PURE__ */ A(T, { children: [
1069
- /* @__PURE__ */ A(
1074
+ return /* @__PURE__ */ B(T, { children: [
1075
+ /* @__PURE__ */ B(
1070
1076
  "div",
1071
1077
  {
1072
- className: `builder-columns ${e.builderBlock.id}-breakpoints div-5e636bea`,
1078
+ className: `builder-columns ${e.builderBlock.id}-breakpoints div-003f4b1c`,
1073
1079
  style: y(),
1074
1080
  children: [
1075
- /* @__PURE__ */ s(Z, { styles: I() }),
1076
- (R = e.columns) == null ? void 0 : R.map((S, C) => /* @__PURE__ */ s(
1081
+ /* @__PURE__ */ s(Z, { id: "builderio-columns", styles: I() }),
1082
+ (R = e.columns) == null ? void 0 : R.map((p, w) => /* @__PURE__ */ s(
1077
1083
  ae,
1078
1084
  {
1079
- TagName: S.link ? e.builderLinkComponent || "a" : "div",
1085
+ TagName: p.link ? e.builderLinkComponent || "a" : "div",
1080
1086
  actionAttributes: {},
1081
1087
  attributes: {
1082
- ...S.link ? {
1083
- href: S.link
1088
+ ...p.link ? {
1089
+ href: p.link
1084
1090
  } : {},
1085
- [H()]: "builder-column",
1086
- style: Ve(v(C))
1091
+ [K()]: "builder-column",
1092
+ style: Ve(S(w))
1087
1093
  },
1088
1094
  children: /* @__PURE__ */ s(
1089
- O,
1095
+ U,
1090
1096
  {
1091
- path: `component.options.columns.${C}.blocks`,
1097
+ path: `component.options.columns.${w}.blocks`,
1092
1098
  parent: e.builderBlock.id,
1093
1099
  styleProp: {
1094
1100
  flexGrow: "1"
@@ -1096,32 +1102,32 @@ function Tt(e) {
1096
1102
  context: e.builderContext,
1097
1103
  registeredComponents: e.builderComponents,
1098
1104
  linkComponent: e.builderLinkComponent,
1099
- blocks: S.blocks
1105
+ blocks: p.blocks
1100
1106
  }
1101
1107
  )
1102
1108
  },
1103
- C
1109
+ w
1104
1110
  ))
1105
1111
  ]
1106
1112
  }
1107
1113
  ),
1108
- /* @__PURE__ */ s("style", { children: `.div-5e636bea {
1114
+ /* @__PURE__ */ s("style", { children: `.div-003f4b1c {
1109
1115
  display: flex;
1110
1116
  line-height: normal;
1111
1117
  }` })
1112
1118
  ] });
1113
1119
  }
1114
- function Et(e) {
1120
+ function Rt(e) {
1115
1121
  return /* @__PURE__ */ s("span", { children: e.children });
1116
1122
  }
1117
1123
  function ye(e) {
1118
1124
  return e.replace(/http(s)?:/, "");
1119
1125
  }
1120
- function Rt(e = "", t, n) {
1126
+ function Pt(e = "", t, n) {
1121
1127
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
1122
1128
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
1123
1129
  }
1124
- function Pt(e, t) {
1130
+ function Vt(e, t) {
1125
1131
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1126
1132
  return e;
1127
1133
  if (t === "master")
@@ -1140,11 +1146,11 @@ function ne(e) {
1140
1146
  if (e.match(/builder\.io/)) {
1141
1147
  let n = e;
1142
1148
  const i = Number(e.split("?width=")[1]);
1143
- 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(", ");
1144
1150
  }
1145
- 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;
1146
1152
  }
1147
- function Vt(e) {
1153
+ function Bt(e) {
1148
1154
  var o, a, r, l;
1149
1155
  function t() {
1150
1156
  var m;
@@ -1174,9 +1180,9 @@ function Vt(e) {
1174
1180
  };
1175
1181
  return e.aspectRatio ? d : void 0;
1176
1182
  }
1177
- return /* @__PURE__ */ A(T, { children: [
1178
- /* @__PURE__ */ A(T, { children: [
1179
- /* @__PURE__ */ A("picture", { children: [
1183
+ return /* @__PURE__ */ B(T, { children: [
1184
+ /* @__PURE__ */ B(T, { children: [
1185
+ /* @__PURE__ */ B("picture", { children: [
1180
1186
  n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1181
1187
  /* @__PURE__ */ s(
1182
1188
  "img",
@@ -1227,7 +1233,7 @@ function Vt(e) {
1227
1233
  }` })
1228
1234
  ] });
1229
1235
  }
1230
- function Bt(e) {
1236
+ function At(e) {
1231
1237
  return /* @__PURE__ */ s(
1232
1238
  "section",
1233
1239
  {
@@ -1248,7 +1254,7 @@ function Bt(e) {
1248
1254
  }
1249
1255
  );
1250
1256
  }
1251
- const At = {
1257
+ const Wt = {
1252
1258
  name: "Core:Button",
1253
1259
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1254
1260
  defaultStyles: {
@@ -1281,7 +1287,7 @@ const At = {
1281
1287
  }],
1282
1288
  static: !0,
1283
1289
  noWrap: !0
1284
- }, Wt = {
1290
+ }, Nt = {
1285
1291
  // TODO: ways to statically preprocess JSON for references, functions, etc
1286
1292
  name: "Columns",
1287
1293
  isRSC: !0,
@@ -1482,13 +1488,13 @@ const At = {
1482
1488
  helperText: "When stacking columns for mobile devices, reverse the ordering",
1483
1489
  advanced: !0
1484
1490
  }]
1485
- }, Nt = {
1491
+ }, Ft = {
1486
1492
  name: "Fragment",
1487
1493
  static: !0,
1488
1494
  hidden: !0,
1489
1495
  canHaveChildren: !0,
1490
1496
  noWrap: !0
1491
- }, Ft = {
1497
+ }, $t = {
1492
1498
  name: "Image",
1493
1499
  static: !0,
1494
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",
@@ -1511,13 +1517,13 @@ const At = {
1511
1517
  function n(r, l = 6e4) {
1512
1518
  return new Promise((d, c) => {
1513
1519
  const m = document.createElement("img");
1514
- let h = !1;
1520
+ let f = !1;
1515
1521
  m.onload = () => {
1516
- h = !0, d(m);
1517
- }, m.addEventListener("error", (b) => {
1518
- 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);
1519
1525
  }), m.src = r, setTimeout(() => {
1520
- h || c(new Error("Image load timed out"));
1526
+ f || c(new Error("Image load timed out"));
1521
1527
  }, l);
1522
1528
  });
1523
1529
  }
@@ -1588,7 +1594,7 @@ const At = {
1588
1594
  advanced: !0,
1589
1595
  defaultValue: 0.7041
1590
1596
  }]
1591
- }, $t = {
1597
+ }, Lt = {
1592
1598
  name: "Core:Section",
1593
1599
  static: !0,
1594
1600
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1627,7 +1633,7 @@ const At = {
1627
1633
  }
1628
1634
  }
1629
1635
  }]
1630
- }, Lt = {
1636
+ }, Dt = {
1631
1637
  name: "Slot",
1632
1638
  isRSC: !0,
1633
1639
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1641,7 +1647,7 @@ const At = {
1641
1647
  defaultValue: "children"
1642
1648
  }]
1643
1649
  };
1644
- function Dt(e) {
1650
+ function Mt(e) {
1645
1651
  var t, n, i;
1646
1652
  return /* @__PURE__ */ s(
1647
1653
  "div",
@@ -1653,7 +1659,7 @@ function Dt(e) {
1653
1659
  "builder-slot": e.name
1654
1660
  },
1655
1661
  children: /* @__PURE__ */ s(
1656
- O,
1662
+ U,
1657
1663
  {
1658
1664
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
1659
1665
  path: `symbol.data.${e.name}`,
@@ -1664,7 +1670,7 @@ function Dt(e) {
1664
1670
  }
1665
1671
  );
1666
1672
  }
1667
- const Mt = {
1673
+ const Ot = {
1668
1674
  name: "Symbol",
1669
1675
  noWrap: !0,
1670
1676
  static: !0,
@@ -1697,7 +1703,7 @@ const Mt = {
1697
1703
  hideFromUI: !0,
1698
1704
  type: "boolean"
1699
1705
  }]
1700
- }, Ot = {
1706
+ }, Ut = {
1701
1707
  name: "Text",
1702
1708
  static: !0,
1703
1709
  isRSC: !0,
@@ -1716,7 +1722,7 @@ const Mt = {
1716
1722
  textAlign: "center"
1717
1723
  }
1718
1724
  };
1719
- function Ut(e) {
1725
+ function jt(e) {
1720
1726
  var t;
1721
1727
  return /* @__PURE__ */ s(
1722
1728
  "div",
@@ -1729,7 +1735,7 @@ function Ut(e) {
1729
1735
  }
1730
1736
  );
1731
1737
  }
1732
- const jt = {
1738
+ const Ht = {
1733
1739
  name: "Custom Code",
1734
1740
  static: !0,
1735
1741
  requiredPermissions: ["editCode"],
@@ -1752,9 +1758,9 @@ const jt = {
1752
1758
  advanced: !0
1753
1759
  }]
1754
1760
  };
1755
- function Ht(e) {
1756
- const t = X(null), [n, i] = w(() => []), [o, a] = w(() => []);
1757
- return B(() => {
1761
+ function Kt(e) {
1762
+ const t = X(null), [n, i] = k(() => []), [o, a] = k(() => []);
1763
+ return V(() => {
1758
1764
  var l;
1759
1765
  if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
1760
1766
  return;
@@ -1790,7 +1796,7 @@ function Ht(e) {
1790
1796
  }
1791
1797
  );
1792
1798
  }
1793
- const Kt = {
1799
+ const qt = {
1794
1800
  name: "Embed",
1795
1801
  static: !0,
1796
1802
  inputs: [{
@@ -1815,28 +1821,28 @@ const Kt = {
1815
1821
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1816
1822
  hideFromUI: !0
1817
1823
  }]
1818
- }, qt = ["text/javascript", "application/javascript", "application/ecmascript"], zt = (e) => qt.includes(e.type);
1819
- function _t(e) {
1820
- 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);
1821
1827
  function d() {
1822
1828
  if (!t.current || !t.current.getElementsByTagName)
1823
1829
  return;
1824
1830
  const c = t.current.getElementsByTagName("script");
1825
1831
  for (let m = 0; m < c.length; m++) {
1826
- const h = c[m];
1827
- if (h.src && !n.includes(h.src)) {
1828
- n.push(h.src);
1829
- const b = document.createElement("script");
1830
- b.async = !0, b.src = h.src, document.head.appendChild(b);
1831
- } 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))
1832
1838
  try {
1833
- o.push(h.innerText), new Function(h.innerText)();
1834
- } catch (b) {
1835
- 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);
1836
1842
  }
1837
1843
  }
1838
1844
  }
1839
- return B(() => {
1845
+ return V(() => {
1840
1846
  t.current && !r && (l(!0), d());
1841
1847
  }, [t.current, r]), /* @__PURE__ */ s(
1842
1848
  "div",
@@ -1847,7 +1853,7 @@ function _t(e) {
1847
1853
  }
1848
1854
  );
1849
1855
  }
1850
- const Jt = {
1856
+ const Yt = {
1851
1857
  name: "Form:Form",
1852
1858
  // editableTags: ['builder-form-error']
1853
1859
  defaults: {
@@ -2078,102 +2084,102 @@ const Jt = {
2078
2084
  }
2079
2085
  }
2080
2086
  }]
2081
- }, 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 = () => {
2082
2088
  const e = process.env.NODE_ENV || "production";
2083
- return Yt.includes(e) ? e : "production";
2084
- }, Qt = (e, t, n) => {
2089
+ return Gt.includes(e) ? e : "production";
2090
+ }, Xt = (e, t, n) => {
2085
2091
  const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
2086
2092
  return i === void 0 || i === e ? n : i;
2087
2093
  };
2088
- function Xt(e) {
2089
- var h, b;
2090
- 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(() => "");
2091
2097
  function d(y) {
2092
- var k, I;
2093
- const v = {
2098
+ var C, I;
2099
+ const S = {
2094
2100
  ...e.builderContext.rootState,
2095
2101
  ...y
2096
2102
  };
2097
- 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;
2098
2104
  }
2099
2105
  function c() {
2100
- return W() && e.previewState || n;
2106
+ return N() && e.previewState || n;
2101
2107
  }
2102
2108
  function m(y) {
2103
- var k;
2104
- const v = e.sendWithJs || e.sendSubmissionsTo === "email";
2109
+ var C;
2110
+ const S = e.sendWithJs || e.sendSubmissionsTo === "email";
2105
2111
  if (e.sendSubmissionsTo === "zapier")
2106
2112
  y.preventDefault();
2107
- else if (v) {
2113
+ else if (S) {
2108
2114
  if (!(e.action || e.sendSubmissionsTo === "email")) {
2109
2115
  y.preventDefault();
2110
2116
  return;
2111
2117
  }
2112
2118
  y.preventDefault();
2113
2119
  const I = y.currentTarget, R = e.customHeaders || {};
2114
- let S;
2115
- const C = new FormData(I), P = Array.from(
2120
+ let p;
2121
+ const w = new FormData(I), P = Array.from(
2116
2122
  y.currentTarget.querySelectorAll("input,select,textarea")
2117
2123
  ).filter((u) => !!u.name).map((u) => {
2118
- let f;
2119
- const p = u.name;
2124
+ let h;
2125
+ const v = u.name;
2120
2126
  if (u instanceof HTMLInputElement)
2121
2127
  if (u.type === "radio") {
2122
2128
  if (u.checked)
2123
- return f = u.name, {
2124
- key: p,
2125
- value: f
2129
+ return h = u.name, {
2130
+ key: v,
2131
+ value: h
2126
2132
  };
2127
2133
  } else if (u.type === "checkbox")
2128
- f = u.checked;
2134
+ h = u.checked;
2129
2135
  else if (u.type === "number" || u.type === "range") {
2130
- const g = u.valueAsNumber;
2131
- isNaN(g) || (f = g);
2136
+ const b = u.valueAsNumber;
2137
+ isNaN(b) || (h = b);
2132
2138
  } else
2133
- u.type === "file" ? f = u.files : f = u.value;
2139
+ u.type === "file" ? h = u.files : h = u.value;
2134
2140
  else
2135
- f = u.value;
2141
+ h = u.value;
2136
2142
  return {
2137
- key: p,
2138
- value: f
2143
+ key: v,
2144
+ value: h
2139
2145
  };
2140
2146
  });
2141
2147
  let E = e.contentType;
2142
2148
  if (e.sendSubmissionsTo === "email" && (E = "multipart/form-data"), Array.from(P).forEach(({ value: u }) => {
2143
2149
  (u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (E = "multipart/form-data");
2144
2150
  }), E !== "application/json")
2145
- S = C;
2151
+ p = w;
2146
2152
  else {
2147
2153
  const u = {};
2148
- Array.from(P).forEach(({ value: f, key: p }) => {
2149
- Ee(u, p, f);
2150
- }), S = JSON.stringify(u);
2154
+ Array.from(P).forEach(({ value: h, key: v }) => {
2155
+ Ee(u, v, h);
2156
+ }), p = JSON.stringify(u);
2151
2157
  }
2152
- E && E !== "multipart/form-data" && (v && ((k = e.action) != null && k.includes("zapier.com")) || (R["content-type"] = E));
2153
- const F = new CustomEvent("presubmit", { detail: { body: S } });
2154
- 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))
2155
2161
  return;
2156
2162
  i("sending");
2157
- 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(
2158
2164
  e.sendSubmissionsToEmail || ""
2159
2165
  )}&name=${encodeURIComponent(e.name || "")}`;
2160
2166
  fetch(
2161
- e.sendSubmissionsTo === "email" ? $ : e.action,
2162
- { body: S, headers: R, method: e.method || "post" }
2167
+ e.sendSubmissionsTo === "email" ? L : e.action,
2168
+ { body: p, headers: R, method: e.method || "post" }
2163
2169
  ).then(
2164
2170
  async (u) => {
2165
- let f;
2166
- const p = u.headers.get("content-type");
2167
- if (p && p.indexOf("application/json") !== -1 ? f = await u.json() : f = await u.text(), !u.ok && e.errorMessagePath) {
2168
- let g = Qt(f, e.errorMessagePath);
2169
- 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 }));
2170
2176
  }
2171
- if (a(f), i(u.ok ? "success" : "error"), u.ok) {
2172
- const g = new CustomEvent("submit:success", {
2173
- 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 }
2174
2180
  });
2175
2181
  if (t.current) {
2176
- if (t.current.dispatchEvent(g), g.defaultPrevented)
2182
+ if (t.current.dispatchEvent(b), b.defaultPrevented)
2177
2183
  return;
2178
2184
  e.resetFormOnSubmit !== !1 && t.current.reset();
2179
2185
  }
@@ -2188,17 +2194,17 @@ function Xt(e) {
2188
2194
  }
2189
2195
  },
2190
2196
  (u) => {
2191
- const f = new CustomEvent("submit:error", {
2197
+ const h = new CustomEvent("submit:error", {
2192
2198
  detail: { error: u }
2193
2199
  });
2194
- 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"));
2195
2201
  }
2196
2202
  );
2197
2203
  }
2198
2204
  }
2199
- return /* @__PURE__ */ A(T, { children: [
2205
+ return /* @__PURE__ */ B(T, { children: [
2200
2206
  " ",
2201
- /* @__PURE__ */ A(
2207
+ /* @__PURE__ */ B(
2202
2208
  "form",
2203
2209
  {
2204
2210
  validate: e.validate,
@@ -2209,18 +2215,18 @@ function Xt(e) {
2209
2215
  onSubmit: (y) => m(y),
2210
2216
  ...e.attributes,
2211
2217
  children: [
2212
- 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(
2213
- 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
+ _,
2214
2220
  {
2215
2221
  block: y,
2216
2222
  context: e.builderContext,
2217
2223
  registeredComponents: e.builderComponents,
2218
2224
  linkComponent: e.builderLinkComponent
2219
2225
  },
2220
- `form-block-${v}`
2226
+ `form-block-${S}`
2221
2227
  )) }) : null,
2222
2228
  c() === "error" ? /* @__PURE__ */ s(
2223
- O,
2229
+ U,
2224
2230
  {
2225
2231
  path: "errorMessage",
2226
2232
  blocks: e.errorMessage,
@@ -2228,7 +2234,7 @@ function Xt(e) {
2228
2234
  }
2229
2235
  ) : null,
2230
2236
  c() === "sending" ? /* @__PURE__ */ s(
2231
- O,
2237
+ U,
2232
2238
  {
2233
2239
  path: "sendingMessage",
2234
2240
  blocks: e.sendingMessage,
@@ -2237,7 +2243,7 @@ function Xt(e) {
2237
2243
  ) : null,
2238
2244
  c() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-31bf8a14", children: JSON.stringify(o, null, 2) }) : null,
2239
2245
  c() === "success" ? /* @__PURE__ */ s(
2240
- O,
2246
+ U,
2241
2247
  {
2242
2248
  path: "successMessage",
2243
2249
  blocks: e.successMessage,
@@ -2252,7 +2258,7 @@ function Xt(e) {
2252
2258
  " "
2253
2259
  ] });
2254
2260
  }
2255
- const Zt = {
2261
+ const en = {
2256
2262
  name: "Form:Input",
2257
2263
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2258
2264
  inputs: [
@@ -2304,12 +2310,12 @@ const Zt = {
2304
2310
  borderColor: "#ccc"
2305
2311
  }
2306
2312
  };
2307
- function en(e) {
2313
+ function tn(e) {
2308
2314
  return /* @__PURE__ */ we(
2309
2315
  "input",
2310
2316
  {
2311
2317
  ...e.attributes,
2312
- key: W() && e.defaultValue ? e.defaultValue : "default-key",
2318
+ key: N() && e.defaultValue ? e.defaultValue : "default-key",
2313
2319
  placeholder: e.placeholder,
2314
2320
  type: e.type,
2315
2321
  name: e.name,
@@ -2319,7 +2325,7 @@ function en(e) {
2319
2325
  }
2320
2326
  );
2321
2327
  }
2322
- const tn = {
2328
+ const nn = {
2323
2329
  name: "Form:Select",
2324
2330
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2325
2331
  defaultStyles: {
@@ -2362,21 +2368,21 @@ const tn = {
2362
2368
  static: !0,
2363
2369
  noWrap: !0
2364
2370
  };
2365
- function nn(e) {
2371
+ function on(e) {
2366
2372
  var t;
2367
2373
  return /* @__PURE__ */ we(
2368
2374
  "select",
2369
2375
  {
2370
2376
  ...e.attributes,
2371
2377
  value: e.value,
2372
- key: W() && e.defaultValue ? e.defaultValue : "default-key",
2378
+ key: N() && e.defaultValue ? e.defaultValue : "default-key",
2373
2379
  defaultValue: e.defaultValue,
2374
2380
  name: e.name
2375
2381
  },
2376
2382
  (t = e.options) == null ? void 0 : t.map((n) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }))
2377
2383
  );
2378
2384
  }
2379
- const on = {
2385
+ const an = {
2380
2386
  name: "Form:SubmitButton",
2381
2387
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2382
2388
  defaultStyles: {
@@ -2402,10 +2408,10 @@ const on = {
2402
2408
  // TODO: defaultChildren
2403
2409
  // canHaveChildren: true,
2404
2410
  };
2405
- function an(e) {
2411
+ function rn(e) {
2406
2412
  return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
2407
2413
  }
2408
- const rn = {
2414
+ const ln = {
2409
2415
  // friendlyName?
2410
2416
  name: "Raw:Img",
2411
2417
  hideFromInsertMenu: !0,
@@ -2420,7 +2426,7 @@ const rn = {
2420
2426
  noWrap: !0,
2421
2427
  static: !0
2422
2428
  };
2423
- function ln(e) {
2429
+ function sn(e) {
2424
2430
  return /* @__PURE__ */ s(
2425
2431
  "img",
2426
2432
  {
@@ -2432,10 +2438,10 @@ function ln(e) {
2432
2438
  src: e.imgSrc || e.image,
2433
2439
  ...e.attributes
2434
2440
  },
2435
- W() && e.imgSrc || "default-key"
2441
+ N() && e.imgSrc || "default-key"
2436
2442
  );
2437
2443
  }
2438
- const sn = {
2444
+ const cn = {
2439
2445
  name: "Video",
2440
2446
  canHaveChildren: !0,
2441
2447
  defaultStyles: {
@@ -2517,7 +2523,7 @@ const sn = {
2517
2523
  advanced: !0
2518
2524
  }]
2519
2525
  };
2520
- function cn(e) {
2526
+ function dn(e) {
2521
2527
  var i, o, a, r, l, d, c;
2522
2528
  function t() {
2523
2529
  return {
@@ -2543,7 +2549,7 @@ function cn(e) {
2543
2549
  ...t()
2544
2550
  };
2545
2551
  }
2546
- return /* @__PURE__ */ A(
2552
+ return /* @__PURE__ */ B(
2547
2553
  "div",
2548
2554
  {
2549
2555
  style: {
@@ -2618,55 +2624,55 @@ function cn(e) {
2618
2624
  }
2619
2625
  );
2620
2626
  }
2621
- const dn = () => [{
2622
- component: Ht,
2623
- ...jt
2627
+ const un = () => [{
2628
+ component: Kt,
2629
+ ...Ht
2624
2630
  }, {
2625
- component: _t,
2626
- ...Kt
2631
+ component: Jt,
2632
+ ...qt
2627
2633
  }, {
2628
- component: Xt,
2629
- ...Jt
2634
+ component: Zt,
2635
+ ...Yt
2630
2636
  }, {
2631
- component: en,
2632
- ...Zt
2637
+ component: tn,
2638
+ ...en
2633
2639
  }, {
2634
- component: an,
2635
- ...on
2640
+ component: rn,
2641
+ ...an
2636
2642
  }, {
2637
- component: nn,
2638
- ...tn
2643
+ component: on,
2644
+ ...nn
2639
2645
  }, {
2640
- component: ln,
2641
- ...rn
2646
+ component: sn,
2647
+ ...ln
2642
2648
  }, {
2643
- component: cn,
2644
- ...sn
2649
+ component: dn,
2650
+ ...cn
2645
2651
  }], pe = () => [{
2646
- component: Ye,
2647
- ...At
2648
- }, {
2649
- component: Tt,
2652
+ component: Ge,
2650
2653
  ...Wt
2651
2654
  }, {
2652
2655
  component: Et,
2653
2656
  ...Nt
2654
2657
  }, {
2655
- component: Vt,
2658
+ component: Rt,
2656
2659
  ...Ft
2657
2660
  }, {
2658
2661
  component: Bt,
2659
2662
  ...$t
2660
2663
  }, {
2661
- component: Dt,
2664
+ component: At,
2662
2665
  ...Lt
2663
2666
  }, {
2664
- component: An,
2665
- ...Mt
2667
+ component: Mt,
2668
+ ...Dt
2666
2669
  }, {
2667
- component: Ut,
2670
+ component: Wn,
2668
2671
  ...Ot
2669
- }, ...dn()], un = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2672
+ }, {
2673
+ component: jt,
2674
+ ...Ut
2675
+ }, ...un()], mn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2670
2676
  function getAndSetVariantId() {
2671
2677
  function setCookie(name, value, days) {
2672
2678
  let expires = '';
@@ -2722,7 +2728,7 @@ const dn = () => [{
2722
2728
  }).join('');
2723
2729
  styleEl.innerHTML = newStyleStr;
2724
2730
  }
2725
- }`, mn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2731
+ }`, fn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2726
2732
  if (!navigator.cookieEnabled) {
2727
2733
  return;
2728
2734
  }
@@ -2760,16 +2766,16 @@ const dn = () => [{
2760
2766
  ...t,
2761
2767
  testVariationId: t.id,
2762
2768
  id: e == null ? void 0 : e.id
2763
- })), fn = ({
2769
+ })), hn = ({
2764
2770
  canTrack: e,
2765
2771
  content: t
2766
- }) => !(!(J(t).length > 0) || !e || U()), hn = (e) => e === "react" || e === "reactNative", $e = hn(q), gn = () => `
2767
- window.${Ne} = ${un}
2768
- window.${Fe} = ${mn}
2769
- `, 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) => `
2770
2776
  window.${Ne}(
2771
2777
  "${t}",${JSON.stringify(e)}, ${$e}
2772
- )`, yn = ({
2778
+ )`, pn = ({
2773
2779
  contentId: e,
2774
2780
  variationId: t
2775
2781
  }) => `window.${Fe}(
@@ -2780,14 +2786,14 @@ function ie(e) {
2780
2786
  "script",
2781
2787
  {
2782
2788
  dangerouslySetInnerHTML: { __html: e.scriptStr },
2783
- id: e.id || ""
2789
+ "data-id": e.id
2784
2790
  }
2785
2791
  );
2786
2792
  }
2787
- function Se(e) {
2793
+ function xe(e) {
2788
2794
  return Math.round(e * 1e3) / 1e3;
2789
2795
  }
2790
- const pn = (e, t, n = !0) => {
2796
+ const xn = (e, t, n = !0) => {
2791
2797
  if (!(e instanceof HTMLElement))
2792
2798
  return null;
2793
2799
  let i = n ? e : e.parentElement;
@@ -2798,28 +2804,28 @@ const pn = (e, t, n = !0) => {
2798
2804
  return i;
2799
2805
  } while (i = i.parentElement);
2800
2806
  return null;
2801
- }, Sn = (e) => pn(e, (t) => {
2807
+ }, Sn = (e) => xn(e, (t) => {
2802
2808
  const n = t.getAttribute("builder-id") || t.id;
2803
2809
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
2804
- }), xe = ({
2810
+ }), Se = ({
2805
2811
  event: e,
2806
2812
  target: t
2807
2813
  }) => {
2808
- 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);
2809
2815
  return {
2810
2816
  x: a,
2811
2817
  y: r
2812
2818
  };
2813
- }, xn = (e) => {
2819
+ }, vn = (e) => {
2814
2820
  const t = e.target, n = t && Sn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2815
2821
  return {
2816
2822
  targetBuilderElement: i || void 0,
2817
2823
  metadata: {
2818
- targetOffset: t ? xe({
2824
+ targetOffset: t ? Se({
2819
2825
  event: e,
2820
2826
  target: t
2821
2827
  }) : void 0,
2822
- builderTargetOffset: n ? xe({
2828
+ builderTargetOffset: n ? Se({
2823
2829
  event: e,
2824
2830
  target: n
2825
2831
  }) : void 0,
@@ -2827,70 +2833,70 @@ const pn = (e, t, n = !0) => {
2827
2833
  }
2828
2834
  };
2829
2835
  };
2830
- function vn(e) {
2831
- var R, S, C, P, E, F, $;
2836
+ function kn(e) {
2837
+ var R, p, w, P, E, $, L;
2832
2838
  const t = X(null);
2833
2839
  function n(u) {
2834
- var p, g;
2835
- const f = {
2840
+ var v, b;
2841
+ const h = {
2836
2842
  ...e.builderContextSignal.rootState,
2837
2843
  ...u
2838
2844
  };
2839
- 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) => ({
2840
2846
  ...x,
2841
- rootState: f
2847
+ rootState: h
2842
2848
  }));
2843
2849
  }
2844
2850
  function i(u) {
2845
- var p, g, x, V, D;
2846
- const f = {
2851
+ var v, b, x, A, M;
2852
+ const h = {
2847
2853
  ...e.builderContextSignal.content,
2848
2854
  ...u,
2849
2855
  data: {
2850
- ...(p = e.builderContextSignal.content) == null ? void 0 : p.data,
2856
+ ...(v = e.builderContextSignal.content) == null ? void 0 : v.data,
2851
2857
  ...u == null ? void 0 : u.data
2852
2858
  },
2853
2859
  meta: {
2854
- ...(g = e.builderContextSignal.content) == null ? void 0 : g.meta,
2860
+ ...(b = e.builderContextSignal.content) == null ? void 0 : b.meta,
2855
2861
  ...u == null ? void 0 : u.meta,
2856
- 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)
2857
2863
  }
2858
2864
  };
2859
- e.setBuilderContextSignal((_) => ({
2860
- ..._,
2861
- content: f
2865
+ e.setBuilderContextSignal((W) => ({
2866
+ ...W,
2867
+ content: h
2862
2868
  }));
2863
2869
  }
2864
- const [o, a] = w(
2870
+ const [o, a] = k(
2865
2871
  () => e.contentWrapper || "div"
2866
2872
  );
2867
2873
  function r(u) {
2868
- return Ke({
2874
+ return qe({
2869
2875
  model: e.model,
2870
2876
  trustedHosts: e.trustedHosts,
2871
2877
  callbacks: {
2872
- configureSdk: (f) => {
2878
+ configureSdk: (h) => {
2873
2879
  var x;
2874
- const { breakpoints: p, contentId: g } = f;
2875
- !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({
2876
2882
  meta: {
2877
- breakpoints: p
2883
+ breakpoints: v
2878
2884
  }
2879
2885
  });
2880
2886
  },
2881
- animation: (f) => {
2882
- Re(f);
2887
+ animation: (h) => {
2888
+ Re(h);
2883
2889
  },
2884
- contentUpdate: (f) => {
2885
- i(f);
2890
+ contentUpdate: (h) => {
2891
+ i(h);
2886
2892
  }
2887
2893
  }
2888
2894
  })(u);
2889
2895
  }
2890
2896
  function l() {
2891
- var f, p;
2892
- const u = (p = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : p.jsCode;
2893
- 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({
2894
2900
  code: u,
2895
2901
  context: e.context || {},
2896
2902
  localState: void 0,
@@ -2902,65 +2908,56 @@ function vn(e) {
2902
2908
  enableCache: !1
2903
2909
  });
2904
2910
  }
2905
- const [d, c] = w(() => ({})), [m, h] = w(() => !1);
2906
- function b(u) {
2907
- var f, p;
2911
+ const [d, c] = k(() => ({})), [m, f] = k(() => ({})), [g, y] = k(() => !1);
2912
+ function S(u) {
2913
+ var h, v;
2908
2914
  if (e.builderContextSignal.content) {
2909
- 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;
2910
2916
  ue({
2911
2917
  type: "click",
2912
2918
  canTrack: G(e.canTrack),
2913
2919
  contentId: x,
2914
2920
  apiKey: e.apiKey,
2915
- variationId: g !== x ? g : void 0,
2916
- ...xn(u),
2917
- unique: !m
2921
+ variationId: b !== x ? b : void 0,
2922
+ ...vn(u),
2923
+ unique: !g
2918
2924
  });
2919
2925
  }
2920
- m || h(!0);
2921
- }
2922
- function y(u) {
2923
- return u.replace(
2924
- /{{([^}]+)}}/g,
2925
- (f, p) => String(
2926
- K({
2927
- code: p,
2928
- context: e.context || {},
2929
- localState: void 0,
2930
- rootState: e.builderContextSignal.rootState,
2931
- rootSetState: e.builderContextSignal.rootSetState,
2932
- enableCache: !0
2933
- })
2934
- )
2935
- );
2936
- }
2937
- function v({ url: u, key: f }) {
2938
- qe(u).then((p) => p.json()).then((p) => {
2939
- var x, V;
2940
- const g = {
2941
- ...e.builderContextSignal.rootState,
2942
- [f]: p
2943
- };
2944
- (V = (x = e.builderContextSignal).rootSetState) == null || V.call(x, g), d[f] = !0;
2945
- }).catch((p) => {
2946
- console.error("error fetching dynamic data", u, p);
2947
- });
2926
+ g || y(!0);
2948
2927
  }
2949
- function k() {
2950
- var f, p, g;
2951
- const u = (g = (p = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : p.httpRequests) != null ? g : {};
2952
- Object.entries(u).forEach(([x, V]) => {
2953
- if (V && (!d[x] || W())) {
2954
- const D = y(V);
2955
- v({
2956
- url: D,
2957
- key: x
2958
- });
2959
- }
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
+ });
2960
2957
  });
2961
2958
  }
2962
2959
  function I() {
2963
- W() && window.dispatchEvent(
2960
+ N() && window.dispatchEvent(
2964
2961
  new CustomEvent(
2965
2962
  "builder:component:stateChange",
2966
2963
  {
@@ -2974,10 +2971,10 @@ function vn(e) {
2974
2971
  )
2975
2972
  );
2976
2973
  }
2977
- return B(() => {
2978
- var u, f;
2979
- if (U()) {
2980
- 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({
2981
2978
  ...e.locale ? {
2982
2979
  locale: e.locale
2983
2980
  } : {},
@@ -2989,56 +2986,56 @@ function vn(e) {
2989
2986
  } : {}
2990
2987
  }), Object.values(
2991
2988
  e.builderContextSignal.componentInfos
2992
- ).forEach((g) => {
2993
- var V;
2994
- const x = je(g);
2995
- (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, "*");
2996
2993
  }), window.addEventListener(
2997
2994
  "builder:component:stateChangeListenerActivated",
2998
2995
  I
2999
2996
  )), e.builderContextSignal.content && G(e.canTrack)) {
3000
- 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;
3001
2998
  ue({
3002
2999
  type: "impression",
3003
3000
  canTrack: !0,
3004
3001
  contentId: x,
3005
- apiKey: V,
3006
- variationId: g !== x ? g : void 0
3002
+ apiKey: A,
3003
+ variationId: b !== x ? b : void 0
3007
3004
  });
3008
3005
  }
3009
- if (He()) {
3010
- 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(
3011
3008
  `builder.preview.${x}`
3012
- ), D = g.get("apiKey") || g.get("builder.space");
3013
- 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({
3014
3011
  model: e.model,
3015
3012
  apiKey: e.apiKey,
3016
3013
  apiVersion: e.builderContextSignal.apiVersion
3017
- }).then((_) => {
3018
- _ && i(_);
3014
+ }).then((W) => {
3015
+ W && i(W);
3019
3016
  });
3020
3017
  }
3021
3018
  }
3022
- }, []), B(() => {
3023
- e.apiKey || j.error(
3019
+ }, []), V(() => {
3020
+ e.apiKey || H.error(
3024
3021
  "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3025
- ), l(), k(), I();
3026
- }, []), B(() => {
3022
+ ), l(), C(), I();
3023
+ }, []), V(() => {
3027
3024
  e.content && i(e.content);
3028
- }, [e.content]), B(() => {
3025
+ }, [e.content]), V(() => {
3029
3026
  l();
3030
- }, [(S = (R = e.builderContextSignal.content) == null ? void 0 : R.data) == null ? void 0 : S.jsCode]), B(() => {
3031
- k();
3032
- }, [(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(() => {
3033
3030
  I();
3034
- }, [e.builderContextSignal.rootState]), B(() => {
3031
+ }, [e.builderContextSignal.rootState]), V(() => {
3035
3032
  e.data && n(e.data);
3036
- }, [e.data]), B(() => {
3033
+ }, [e.data]), V(() => {
3037
3034
  e.locale && n({
3038
3035
  locale: e.locale
3039
3036
  });
3040
- }, [e.locale]), B(() => () => {
3041
- U() && (window.removeEventListener("message", r), window.removeEventListener(
3037
+ }, [e.locale]), V(() => () => {
3038
+ j() && (window.removeEventListener("message", r), window.removeEventListener(
3042
3039
  "builder:component:stateChangeListenerActivated",
3043
3040
  I
3044
3041
  ));
@@ -3046,7 +3043,7 @@ function vn(e) {
3046
3043
  o,
3047
3044
  {
3048
3045
  ref: t,
3049
- onClick: (u) => b(u),
3046
+ onClick: (u) => S(u),
3050
3047
  "builder-content-id": (E = e.builderContextSignal.content) == null ? void 0 : E.id,
3051
3048
  "builder-model": e.model,
3052
3049
  ...e.showContent ? {} : {
@@ -3054,12 +3051,12 @@ function vn(e) {
3054
3051
  "aria-hidden": !0
3055
3052
  },
3056
3053
  ...e.contentWrapperProps,
3057
- 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)}`,
3058
3055
  children: e.children
3059
3056
  }
3060
3057
  ) : null });
3061
3058
  }
3062
- const kn = (e) => {
3059
+ const Cn = (e) => {
3063
3060
  var a, r;
3064
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;
3065
3062
  let o = "";
@@ -3085,15 +3082,15 @@ font-weight: ${l};
3085
3082
  `.trim());
3086
3083
  }
3087
3084
  return o;
3088
- }, Cn = ({
3085
+ }, wn = ({
3089
3086
  customFonts: e
3090
3087
  }) => {
3091
3088
  var t;
3092
- return ((t = e == null ? void 0 : e.map((n) => kn(n))) == null ? void 0 : t.join(" ")) || "";
3093
- }, wn = ({
3089
+ return ((t = e == null ? void 0 : e.map((n) => Cn(n))) == null ? void 0 : t.join(" ")) || "";
3090
+ }, In = ({
3094
3091
  cssCode: e,
3095
3092
  contentId: t
3096
- }) => 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 = `
3097
3094
  .builder-button {
3098
3095
  all: unset;
3099
3096
  }
@@ -3110,23 +3107,23 @@ font-weight: ${l};
3110
3107
  text-align: inherit;
3111
3108
  font-family: inherit;
3112
3109
  }
3113
- `, Tn = (e) => e ? "" : In;
3114
- function En(e) {
3115
- const [t, n] = w(
3110
+ `, En = (e) => e ? "" : Tn;
3111
+ function Rn(e) {
3112
+ const [t, n] = k(
3116
3113
  () => `
3117
- ${wn({
3114
+ ${In({
3118
3115
  cssCode: e.cssCode,
3119
3116
  contentId: e.contentId
3120
3117
  })}
3121
- ${Cn({
3118
+ ${wn({
3122
3119
  customFonts: e.customFonts
3123
3120
  })}
3124
- ${Tn(e.isNestedRender)}
3121
+ ${En(e.isNestedRender)}
3125
3122
  `.trim()
3126
3123
  );
3127
- return /* @__PURE__ */ s(Z, { styles: t });
3124
+ return /* @__PURE__ */ s(Z, { id: "builderio-content", styles: t });
3128
3125
  }
3129
- const Rn = ({
3126
+ const Pn = ({
3130
3127
  content: e,
3131
3128
  data: t,
3132
3129
  locale: n
@@ -3143,7 +3140,7 @@ const Rn = ({
3143
3140
  locale: n
3144
3141
  } : {}
3145
3142
  };
3146
- }, Pn = ({
3143
+ }, Vn = ({
3147
3144
  content: e,
3148
3145
  data: t
3149
3146
  }) => e ? {
@@ -3155,31 +3152,31 @@ const Rn = ({
3155
3152
  meta: e == null ? void 0 : e.meta
3156
3153
  } : void 0;
3157
3154
  function ve(e) {
3158
- var d, c, m, h, b, y, v;
3159
- const [t, n] = w(
3155
+ var d, c, m, f, g, y, S;
3156
+ const [t, n] = k(
3160
3157
  () => {
3161
- var k, I;
3162
- return yn({
3158
+ var C, I;
3159
+ return pn({
3163
3160
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3164
- variationId: (k = e.content) == null ? void 0 : k.testVariationId,
3161
+ variationId: (C = e.content) == null ? void 0 : C.testVariationId,
3165
3162
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3166
3163
  contentId: (I = e.content) == null ? void 0 : I.id
3167
3164
  });
3168
3165
  }
3169
3166
  );
3170
- function i(k) {
3167
+ function i(C) {
3171
3168
  l((I) => ({
3172
3169
  ...I,
3173
- rootState: k
3170
+ rootState: C
3174
3171
  }));
3175
3172
  }
3176
- const [o, a] = w(
3173
+ const [o, a] = k(
3177
3174
  () => [
3178
3175
  ...pe(),
3179
3176
  ...e.customComponents || []
3180
3177
  ].reduce(
3181
- (k, { component: I, ...R }) => ({
3182
- ...k,
3178
+ (C, { component: I, ...R }) => ({
3179
+ ...C,
3183
3180
  [R.name]: {
3184
3181
  component: I,
3185
3182
  ...me(R)
@@ -3187,13 +3184,13 @@ function ve(e) {
3187
3184
  }),
3188
3185
  {}
3189
3186
  )
3190
- ), [r, l] = w(() => ({
3191
- content: Pn({
3187
+ ), [r, l] = k(() => ({
3188
+ content: Vn({
3192
3189
  content: e.content,
3193
3190
  data: e.data
3194
3191
  }),
3195
3192
  localState: void 0,
3196
- rootState: Rn({
3193
+ rootState: Pn({
3197
3194
  content: e.content,
3198
3195
  data: e.data,
3199
3196
  locale: e.locale
@@ -3206,8 +3203,8 @@ function ve(e) {
3206
3203
  ...pe(),
3207
3204
  ...e.customComponents || []
3208
3205
  ].reduce(
3209
- (k, { component: I, ...R }) => ({
3210
- ...k,
3206
+ (C, { component: I, ...R }) => ({
3207
+ ...C,
3211
3208
  [R.name]: me(R)
3212
3209
  }),
3213
3210
  {}
@@ -3222,8 +3219,8 @@ function ve(e) {
3222
3219
  value: {
3223
3220
  registeredComponents: o
3224
3221
  },
3225
- children: /* @__PURE__ */ A(
3226
- vn,
3222
+ children: /* @__PURE__ */ B(
3223
+ kn,
3227
3224
  {
3228
3225
  content: e.content,
3229
3226
  data: e.data,
@@ -3241,20 +3238,26 @@ function ve(e) {
3241
3238
  trustedHosts: e.trustedHosts,
3242
3239
  setBuilderContextSignal: l,
3243
3240
  children: [
3244
- e.isSsrAbTest ? /* @__PURE__ */ s(ie, { scriptStr: t }) : null,
3241
+ e.isSsrAbTest ? /* @__PURE__ */ s(
3242
+ ie,
3243
+ {
3244
+ id: "builderio-variant-visibility",
3245
+ scriptStr: t
3246
+ }
3247
+ ) : null,
3245
3248
  /* @__PURE__ */ s(
3246
- En,
3249
+ Rn,
3247
3250
  {
3248
3251
  isNestedRender: e.isNestedRender,
3249
3252
  contentId: (d = r.content) == null ? void 0 : d.id,
3250
3253
  cssCode: (m = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : m.cssCode,
3251
- 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
3252
3255
  }
3253
3256
  ),
3254
3257
  /* @__PURE__ */ s(
3255
- O,
3258
+ U,
3256
3259
  {
3257
- 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,
3258
3261
  context: r,
3259
3262
  registeredComponents: o,
3260
3263
  linkComponent: e.linkComponent
@@ -3266,54 +3269,66 @@ function ve(e) {
3266
3269
  }
3267
3270
  );
3268
3271
  }
3269
- function Vn(e) {
3270
- var r, l;
3271
- const [t, n] = w(
3272
- () => fn({
3272
+ function Bn(e) {
3273
+ var r;
3274
+ const [t, n] = k(
3275
+ () => hn({
3273
3276
  canTrack: G(e.canTrack),
3274
3277
  content: e.content
3275
3278
  })
3276
3279
  );
3277
3280
  function i() {
3278
- var d;
3279
- return bn(
3280
- J(e.content).map((c) => ({
3281
- id: c.testVariationId,
3282
- testRatio: c.testRatio
3281
+ var l;
3282
+ return yn(
3283
+ J(e.content).map((d) => ({
3284
+ id: d.testVariationId,
3285
+ testRatio: d.testRatio
3283
3286
  })),
3284
- ((d = e.content) == null ? void 0 : d.id) || ""
3287
+ ((l = e.content) == null ? void 0 : l.id) || ""
3285
3288
  );
3286
3289
  }
3287
3290
  function o() {
3288
- return J(e.content).map((d) => `.variant-${d.testVariationId} { display: none; } `).join("");
3291
+ return J(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
3289
3292
  }
3290
3293
  function a() {
3291
- var d;
3294
+ var l;
3292
3295
  return t ? {
3293
3296
  ...e.content,
3294
- testVariationId: (d = e.content) == null ? void 0 : d.id
3295
- } : ze({
3297
+ testVariationId: (l = e.content) == null ? void 0 : l.id
3298
+ } : _e({
3296
3299
  item: e.content,
3297
3300
  canTrack: G(e.canTrack)
3298
3301
  });
3299
3302
  }
3300
- return B(() => {
3301
- }, []), /* @__PURE__ */ A(T, { children: [
3302
- !e.isNestedRender && q !== "reactNative" ? /* @__PURE__ */ s(ie, { scriptStr: gn() }) : null,
3303
- t ? /* @__PURE__ */ A(T, { children: [
3303
+ return V(() => {
3304
+ }, []), /* @__PURE__ */ B(T, { children: [
3305
+ !e.isNestedRender && z !== "reactNative" ? /* @__PURE__ */ s(
3306
+ ie,
3307
+ {
3308
+ id: "builderio-init-variants-fns",
3309
+ scriptStr: bn()
3310
+ }
3311
+ ) : null,
3312
+ t ? /* @__PURE__ */ B(T, { children: [
3304
3313
  /* @__PURE__ */ s(
3305
3314
  Z,
3306
3315
  {
3307
- id: `variants-styles-${(r = e.content) == null ? void 0 : r.id}`,
3316
+ id: "builderio-variants",
3308
3317
  styles: o()
3309
3318
  }
3310
3319
  ),
3311
- /* @__PURE__ */ s(ie, { scriptStr: i() }),
3312
- (l = J(e.content)) == null ? void 0 : l.map((d) => /* @__PURE__ */ s(
3320
+ /* @__PURE__ */ s(
3321
+ ie,
3322
+ {
3323
+ id: "builderio-variants-visibility",
3324
+ scriptStr: i()
3325
+ }
3326
+ ),
3327
+ (r = J(e.content)) == null ? void 0 : r.map((l) => /* @__PURE__ */ s(
3313
3328
  ve,
3314
3329
  {
3315
3330
  isNestedRender: e.isNestedRender,
3316
- content: d,
3331
+ content: l,
3317
3332
  showContent: !1,
3318
3333
  model: e.model,
3319
3334
  data: e.data,
@@ -3332,7 +3347,7 @@ function Vn(e) {
3332
3347
  contentWrapperProps: e.contentWrapperProps,
3333
3348
  trustedHosts: e.trustedHosts
3334
3349
  },
3335
- d.testVariationId
3350
+ l.testVariationId
3336
3351
  ))
3337
3352
  ] }) : null,
3338
3353
  /* @__PURE__ */ s(
@@ -3361,7 +3376,7 @@ function Vn(e) {
3361
3376
  )
3362
3377
  ] });
3363
3378
  }
3364
- const Bn = async ({
3379
+ const An = async ({
3365
3380
  builderContextValue: e,
3366
3381
  symbol: t
3367
3382
  }) => {
@@ -3377,37 +3392,37 @@ const Bn = async ({
3377
3392
  }
3378
3393
  }
3379
3394
  }).catch((n) => {
3380
- j.error("Could not fetch symbol content: ", n);
3395
+ H.error("Could not fetch symbol content: ", n);
3381
3396
  });
3382
3397
  };
3383
- function An(e) {
3398
+ function Wn(e) {
3384
3399
  var a, r, l, d;
3385
3400
  function t() {
3386
3401
  var c, m;
3387
3402
  return [
3388
- e.attributes[H()],
3403
+ e.attributes[K()],
3389
3404
  "builder-symbol",
3390
3405
  (c = e.symbol) != null && c.inline ? "builder-inline-symbol" : void 0,
3391
3406
  (m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
3392
3407
  ].filter(Boolean).join(" ");
3393
3408
  }
3394
- const [n, i] = w(() => {
3409
+ const [n, i] = k(() => {
3395
3410
  var c;
3396
3411
  return (c = e.symbol) == null ? void 0 : c.content;
3397
3412
  });
3398
3413
  function o() {
3399
- n || Bn({
3414
+ n || An({
3400
3415
  symbol: e.symbol,
3401
3416
  builderContextValue: e.builderContext
3402
3417
  }).then((c) => {
3403
3418
  c && i(c);
3404
3419
  });
3405
3420
  }
3406
- return B(() => {
3407
- }, []), B(() => {
3421
+ return V(() => {
3422
+ }, []), V(() => {
3408
3423
  o();
3409
3424
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ s(
3410
- Vn,
3425
+ Bn,
3411
3426
  {
3412
3427
  isNestedRender: !0,
3413
3428
  apiVersion: e.builderContext.apiVersion,
@@ -3431,14 +3446,14 @@ function An(e) {
3431
3446
  ) });
3432
3447
  }
3433
3448
  export {
3434
- O as Blocks,
3435
- Ye as Button,
3436
- Tt as Columns,
3437
- Vn as Content,
3438
- Et as Fragment,
3439
- Vt as Image,
3440
- Bt as Section,
3441
- An as Symbol,
3442
- Ut as Text,
3443
- 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
3444
3459
  };