@builder.io/sdk-react 1.1.2 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/lib/browser/blocks-exports.cjs +25 -25
  2. package/lib/browser/blocks-exports.mjs +483 -548
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/init.cjs +1 -1
  6. package/lib/browser/init.mjs +1 -1
  7. package/lib/browser/{server-entry-ed2ca723.js → server-entry-709e09e3.js} +1 -1
  8. package/lib/browser/{server-entry-754040fc.cjs → server-entry-e0454364.cjs} +1 -1
  9. package/lib/browser/server-entry.cjs +1 -1
  10. package/lib/browser/server-entry.mjs +1 -1
  11. package/lib/edge/{accordion-dfb7894d.cjs → accordion-12c2d408.cjs} +1 -1
  12. package/lib/edge/{accordion-3e3c0eb7.js → accordion-bd80745a.js} +1 -1
  13. package/lib/edge/{blocks-b47dedc1.js → blocks-6d6258ba.js} +688 -684
  14. package/lib/edge/{blocks-e68d1b90.cjs → blocks-ac8970f1.cjs} +13 -13
  15. package/lib/edge/blocks-exports.cjs +1 -1
  16. package/lib/edge/blocks-exports.mjs +2 -2
  17. package/lib/edge/{button-03e45213.js → button-4e842584.js} +2 -2
  18. package/lib/edge/{button-eacbdcad.cjs → button-c2e45e64.cjs} +1 -1
  19. package/lib/edge/{columns-858746ca.js → columns-a51238cc.js} +16 -16
  20. package/lib/edge/columns-bc2b0674.cjs +28 -0
  21. package/lib/edge/content-variants-3fe9b1c0.cjs +134 -0
  22. package/lib/edge/{content-variants-c4559dfb.js → content-variants-f3c6baad.js} +127 -196
  23. package/lib/edge/{form-6f2d1077.js → form-00c8cc55.js} +3 -3
  24. package/lib/edge/{form-241a699e.cjs → form-b4cdf7cd.cjs} +1 -1
  25. package/lib/edge/{get-class-prop-name-87b96bca.js → get-class-prop-name-1bbed5bf.js} +1 -1
  26. package/lib/edge/{get-class-prop-name-d471c28c.cjs → get-class-prop-name-3c5f7a7d.cjs} +1 -1
  27. package/lib/edge/{img-a7bbfda3.cjs → img-6671da9a.cjs} +1 -1
  28. package/lib/edge/{img-be88cdbc.js → img-e7db1475.js} +1 -1
  29. package/lib/edge/index.cjs +1 -1
  30. package/lib/edge/index.mjs +1 -1
  31. package/lib/edge/init.cjs +1 -1
  32. package/lib/edge/init.mjs +1 -1
  33. package/lib/edge/{input-f1fbe38b.cjs → input-0f7a9f1c.cjs} +1 -1
  34. package/lib/edge/{input-22d61335.js → input-2db47a83.js} +1 -1
  35. package/lib/edge/{select-6371cc39.js → select-2facacf2.js} +1 -1
  36. package/lib/edge/{select-c58f67e3.cjs → select-f0859c5f.cjs} +1 -1
  37. package/lib/edge/{server-entry-97c99c4d.js → server-entry-75aa714e.js} +1 -1
  38. package/lib/edge/{server-entry-048c3043.cjs → server-entry-ff6a2e2d.cjs} +1 -1
  39. package/lib/edge/server-entry.cjs +1 -1
  40. package/lib/edge/server-entry.mjs +1 -1
  41. package/lib/edge/{slot-e6c31d6c.js → slot-8159ca1d.js} +3 -3
  42. package/lib/edge/{slot-7666ffaf.cjs → slot-aee43b86.cjs} +1 -1
  43. package/lib/edge/{symbol-8e3447aa.js → symbol-36a155f3.js} +2 -2
  44. package/lib/edge/{symbol-a0838c62.cjs → symbol-a244cc31.cjs} +1 -1
  45. package/lib/edge/{tabs-02f569d1.cjs → tabs-4112a80e.cjs} +1 -1
  46. package/lib/edge/{tabs-20114ebb.js → tabs-f5357a4e.js} +3 -3
  47. package/lib/node/blocks-exports.cjs +25 -25
  48. package/lib/node/blocks-exports.mjs +477 -542
  49. package/lib/node/index.cjs +1 -1
  50. package/lib/node/index.mjs +2 -2
  51. package/lib/node/init.cjs +1 -1
  52. package/lib/node/init.mjs +2 -2
  53. package/lib/node/{node-runtime-36670c0e.js → node-runtime-80c4bfc8.js} +1 -1
  54. package/lib/node/{node-runtime-819e5520.cjs → node-runtime-eb72e084.cjs} +1 -1
  55. package/lib/node/{server-entry-cc7910d7.cjs → server-entry-b2103255.cjs} +1 -1
  56. package/lib/node/{server-entry-2910f126.js → server-entry-e8ac67b5.js} +1 -1
  57. package/lib/node/server-entry.cjs +1 -1
  58. package/lib/node/server-entry.mjs +1 -1
  59. package/package.json +1 -1
  60. package/types/components/block/block.helpers.d.ts +8 -8
  61. package/types/constants/sdk-version.d.ts +1 -1
  62. package/lib/edge/columns-26be75b9.cjs +0 -28
  63. package/lib/edge/content-variants-0c5ae6d6.cjs +0 -134
@@ -1,13 +1,13 @@
1
1
  "use client";
2
- var Ke = Object.defineProperty;
3
- var ze = (e, t, n) => t in e ? Ke(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
- var oe = (e, t, n) => (ze(e, typeof t != "symbol" ? t + "" : t, n), n);
5
- import { jsx as s, Fragment as R, jsxs as E } from "react/jsx-runtime";
6
- import { TARGET as z, isEditing as $, isBrowser as M, getUserAttributes as _e, checkIsDefined as G, logger as Z, fastClone as ue, registerInsertMenu as Je, setupBrowserForEditing as Ye, createRegisterComponentMessage as Ge, getDefaultCanTrack as Q, _track as be, isPreviewing as Qe, fetchOneEntry as Re, createEditorListener as Xe, fetch as Ze, serializeComponentInfo as ge, handleABTestingSync as et } from "./server-entry-ed2ca723.js";
7
- import { createContext as Be, useState as C, useEffect as P, useContext as pe, useRef as ee, createElement as Pe } from "react";
8
- const tt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), nt = (e) => typeof e == "string" && tt.has(e.toLowerCase());
9
- function me(e) {
10
- return /* @__PURE__ */ s(R, { children: nt(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { 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 }) }) });
2
+ var qe = Object.defineProperty;
3
+ var Ke = (e, t, n) => t in e ? qe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
+ var ie = (e, t, n) => (Ke(e, typeof t != "symbol" ? t + "" : t, n), n);
5
+ import { jsx as s, Fragment as R, jsxs as P } from "react/jsx-runtime";
6
+ import { TARGET as z, isEditing as $, isBrowser as M, getUserAttributes as ze, checkIsDefined as G, logger as Z, fastClone as de, registerInsertMenu as _e, setupBrowserForEditing as Je, createRegisterComponentMessage as Ye, getDefaultCanTrack as Q, _track as he, isPreviewing as Ge, fetchOneEntry as we, createEditorListener as Qe, fetch as Xe, serializeComponentInfo as ge, handleABTestingSync as Ze } from "./server-entry-709e09e3.js";
7
+ import { createContext as Re, useState as C, useEffect as B, useContext as be, useRef as ee, createElement as Ee } from "react";
8
+ const et = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), tt = (e) => typeof e == "string" && et.has(e.toLowerCase());
9
+ function ue(e) {
10
+ return /* @__PURE__ */ s(R, { children: tt(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { 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
12
  const q = () => {
13
13
  switch (z) {
@@ -23,7 +23,7 @@ const q = () => {
23
23
  return "class";
24
24
  }
25
25
  };
26
- function it(e) {
26
+ function nt(e) {
27
27
  function t() {
28
28
  return {
29
29
  ...e.attributes,
@@ -38,7 +38,7 @@ function it(e) {
38
38
  };
39
39
  }
40
40
  return /* @__PURE__ */ s(
41
- me,
41
+ ue,
42
42
  {
43
43
  attributes: t(),
44
44
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
@@ -47,7 +47,7 @@ function it(e) {
47
47
  }
48
48
  );
49
49
  }
50
- const fe = Be({
50
+ const me = Re({
51
51
  content: null,
52
52
  context: {},
53
53
  localState: void 0,
@@ -60,15 +60,15 @@ const fe = Be({
60
60
  inheritedStyles: {},
61
61
  BlocksWrapper: "div",
62
62
  BlocksWrapperProps: {}
63
- }), Ee = Be({ registeredComponents: {} });
64
- function ot(e) {
63
+ }), Be = Re({ registeredComponents: {} });
64
+ function it(e) {
65
65
  var t;
66
66
  return {
67
67
  ...(t = e.component) == null ? void 0 : t.options,
68
68
  ...e.options
69
69
  };
70
70
  }
71
- const at = ({
71
+ const ot = ({
72
72
  builder: e,
73
73
  context: t,
74
74
  event: n,
@@ -80,14 +80,14 @@ const at = ({
80
80
  builder: e,
81
81
  context: t,
82
82
  event: n
83
- }), rt = () => ({
83
+ }), at = () => ({
84
84
  isEditing: $(),
85
85
  isBrowser: M(),
86
86
  isServer: !M(),
87
- getUserAttributes: () => _e()
88
- }), lt = (e, {
87
+ getUserAttributes: () => ze()
88
+ }), rt = (e, {
89
89
  isExpression: t = !0
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, ye = ({
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, pe = ({
91
91
  code: e,
92
92
  builder: t,
93
93
  context: n,
@@ -96,11 +96,11 @@ const at = ({
96
96
  rootSetState: r,
97
97
  rootState: a
98
98
  }) => {
99
- const l = at({
99
+ const l = ot({
100
100
  builder: t,
101
101
  context: n,
102
102
  event: i,
103
- state: Ve({
103
+ state: Pe({
104
104
  rootState: a,
105
105
  localState: o,
106
106
  rootSetState: r
@@ -108,7 +108,7 @@ const at = ({
108
108
  });
109
109
  return new Function(...l.map(([c]) => c), e)(...l.map(([, c]) => c));
110
110
  };
111
- function Ve({
111
+ function Pe({
112
112
  rootState: e,
113
113
  localState: t,
114
114
  rootSetState: n
@@ -118,7 +118,7 @@ function Ve({
118
118
  if (t && o in t)
119
119
  return t[o];
120
120
  const r = i[o];
121
- return typeof r == "object" && r !== null ? Ve({
121
+ return typeof r == "object" && r !== null ? Pe({
122
122
  rootState: r,
123
123
  localState: void 0,
124
124
  rootSetState: n ? (a) => {
@@ -133,17 +133,17 @@ function Ve({
133
133
  }
134
134
  });
135
135
  }
136
- function st() {
136
+ function lt() {
137
137
  var e;
138
138
  return typeof process != "undefined" && G((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
139
139
  }
140
- const ct = () => {
140
+ const st = () => {
141
141
  var i;
142
- if (!st())
142
+ if (!lt())
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
145
  return e && t && !n ? (Z.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
- }, dt = (e) => (M() || ct(), ye(e)), D = class D {
146
+ }, ct = (e) => (M() || st(), pe(e)), L = class L {
147
147
  static getCacheKey(t) {
148
148
  return JSON.stringify({
149
149
  ...t,
@@ -153,16 +153,16 @@ const ct = () => {
153
153
  });
154
154
  }
155
155
  static getCachedValue(t) {
156
- return D.cache.get(t);
156
+ return L.cache.get(t);
157
157
  }
158
158
  static setCachedValue(t, n) {
159
- D.cache.size > 20 && D.cache.delete(D.cache.keys().next().value), D.cache.set(t, {
159
+ L.cache.size > 20 && L.cache.delete(L.cache.keys().next().value), L.cache.set(t, {
160
160
  value: n
161
161
  });
162
162
  }
163
163
  };
164
- oe(D, "cacheLimit", 20), oe(D, "cache", /* @__PURE__ */ new Map());
165
- let U = D;
164
+ ie(L, "cacheLimit", 20), ie(L, "cache", /* @__PURE__ */ new Map());
165
+ let U = L;
166
166
  function K({
167
167
  code: e,
168
168
  context: t,
@@ -176,10 +176,10 @@ function K({
176
176
  if (e === "")
177
177
  return;
178
178
  const c = {
179
- code: lt(e, {
179
+ code: rt(e, {
180
180
  isExpression: a
181
181
  }),
182
- builder: rt(),
182
+ builder: at(),
183
183
  context: t,
184
184
  event: r,
185
185
  rootSetState: o,
@@ -192,7 +192,7 @@ function K({
192
192
  return f.value;
193
193
  }
194
194
  try {
195
- const u = dt(c);
195
+ const u = ct(c);
196
196
  if (l) {
197
197
  const f = U.getCacheKey(c);
198
198
  U.setCachedValue(f, u);
@@ -205,13 +205,13 @@ function K({
205
205
  return;
206
206
  }
207
207
  }
208
- const Ae = (e, t, n) => {
208
+ const Ve = (e, t, n) => {
209
209
  if (Object(e) !== e)
210
210
  return e;
211
211
  const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
212
212
  return i.slice(0, -1).reduce((o, r, a) => Object(o[r]) === o[r] ? o[r] : o[r] = Math.abs(Number(i[a + 1])) >> 0 === +i[a + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
213
213
  };
214
- const ut = ({
214
+ const dt = ({
215
215
  block: e,
216
216
  context: t,
217
217
  localState: n,
@@ -220,7 +220,7 @@ const ut = ({
220
220
  }) => {
221
221
  if (!e.bindings)
222
222
  return e;
223
- const r = ue(e), a = {
223
+ const r = de(e), a = {
224
224
  ...r,
225
225
  properties: {
226
226
  ...r.properties
@@ -238,7 +238,7 @@ const ut = ({
238
238
  context: t,
239
239
  enableCache: !0
240
240
  });
241
- Ae(a, l, u);
241
+ Ve(a, l, u);
242
242
  }
243
243
  return a;
244
244
  };
@@ -251,7 +251,7 @@ function X({
251
251
  rootSetState: r
252
252
  }) {
253
253
  const a = e;
254
- return n ? ut({
254
+ return n ? dt({
255
255
  block: a,
256
256
  localState: i,
257
257
  rootState: o,
@@ -260,7 +260,7 @@ function X({
260
260
  }) : a;
261
261
  }
262
262
  const te = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
263
- function mt(e, t, n = {}) {
263
+ function ut(e, t, n = {}) {
264
264
  let i, o, r, a = null, l = 0;
265
265
  const c = function() {
266
266
  l = n.leading === !1 ? 0 : Date.now(), a = null, r = e.apply(i, o), a || (i = o = null);
@@ -282,55 +282,55 @@ function H(e, ...t) {
282
282
  }
283
283
  return n;
284
284
  }
285
- function ft(e) {
285
+ function mt(e) {
286
286
  for (const t of e)
287
287
  switch (t.trigger) {
288
288
  case "pageLoad":
289
- Fe(t);
289
+ We(t);
290
290
  break;
291
291
  case "scrollInView":
292
- bt(t);
292
+ ht(t);
293
293
  break;
294
294
  }
295
295
  }
296
- function Ne(e) {
296
+ function Ae(e) {
297
297
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
298
298
  }
299
- function We(e, t) {
300
- const n = ht(e), i = getComputedStyle(t), o = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [o, r];
299
+ function Ne(e, t) {
300
+ const n = ft(e), i = getComputedStyle(t), o = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [o, r];
301
301
  for (const l of a)
302
302
  for (const c of n)
303
303
  c in l || (l[c] = i[c]);
304
304
  }
305
- function ht(e) {
305
+ function ft(e) {
306
306
  const t = [];
307
307
  for (const n of e.steps)
308
308
  for (const i in n.styles)
309
309
  t.indexOf(i) === -1 && t.push(i);
310
310
  return t;
311
311
  }
312
- function Fe(e) {
312
+ function We(e) {
313
313
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
314
314
  if (!t.length) {
315
- Ne(e.elementId || e.id || "");
315
+ Ae(e.elementId || e.id || "");
316
316
  return;
317
317
  }
318
318
  Array.from(t).forEach((n) => {
319
- We(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
319
+ Ne(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
320
320
  n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), H(n.style, e.steps[1].styles), setTimeout(() => {
321
321
  n.style.transition = "", n.style.transitionDelay = "";
322
322
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
323
323
  });
324
324
  });
325
325
  }
326
- function bt(e) {
326
+ function ht(e) {
327
327
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
328
328
  if (!t.length) {
329
- Ne(e.elementId || e.id || "");
329
+ Ae(e.elementId || e.id || "");
330
330
  return;
331
331
  }
332
332
  Array.from(t).forEach((n) => {
333
- We(e, n);
333
+ Ne(e, n);
334
334
  let i = !1, o = !1;
335
335
  function r() {
336
336
  !i && l(n) ? (i = !0, o = !0, setTimeout(() => {
@@ -339,7 +339,7 @@ function bt(e) {
339
339
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
340
340
  })) : e.repeat && i && !o && !l(n) && (i = !1, H(n.style, e.steps[0].styles));
341
341
  }
342
- const a = mt(r, 200, {
342
+ const a = ut(r, 200, {
343
343
  leading: !1
344
344
  });
345
345
  function l(f) {
@@ -358,10 +358,10 @@ function bt(e) {
358
358
  }), r();
359
359
  });
360
360
  }
361
- const $e = (e) => Object.entries(e).map(([n, i]) => {
361
+ const Fe = (e) => Object.entries(e).map(([n, i]) => {
362
362
  if (typeof i == "string")
363
363
  return `${te(n)}: ${i};`;
364
- }).filter(G), gt = (e) => $e(e).join(`
364
+ }).filter(G), gt = (e) => Fe(e).join(`
365
365
  `), J = ({
366
366
  mediaQuery: e,
367
367
  className: t,
@@ -374,26 +374,26 @@ const $e = (e) => Object.entries(e).map(([n, i]) => {
374
374
  ${i}
375
375
  }` : i;
376
376
  };
377
- function pt({
377
+ function bt({
378
378
  style: e
379
379
  }) {
380
380
  return e;
381
381
  }
382
- const yt = ({
382
+ const pt = ({
383
383
  block: e,
384
384
  context: t
385
- }) => Le(pt({
385
+ }) => $e(bt({
386
386
  style: e.style || {},
387
387
  context: t,
388
388
  block: e
389
389
  }));
390
- function Le(e) {
390
+ function $e(e) {
391
391
  switch (z) {
392
392
  case "svelte":
393
393
  case "vue":
394
394
  case "solid":
395
395
  case "angular":
396
- return $e(e).join(" ");
396
+ return Fe(e).join(" ");
397
397
  case "qwik":
398
398
  case "reactNative":
399
399
  case "react":
@@ -401,7 +401,7 @@ function Le(e) {
401
401
  return e;
402
402
  }
403
403
  }
404
- const xt = ({
404
+ const yt = ({
405
405
  block: e,
406
406
  context: t,
407
407
  registeredComponents: n
@@ -423,7 +423,7 @@ const xt = ({
423
423
  console.warn(`
424
424
  Could not find a registered component named "${i}".
425
425
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
426
- }, vt = ({
426
+ }, xt = ({
427
427
  block: e,
428
428
  context: t
429
429
  }) => {
@@ -457,23 +457,27 @@ const xt = ({
457
457
  },
458
458
  block: i
459
459
  }));
460
- }, ne = (e) => ({
461
- // once we bump to a major version, toggle this to `false`.
462
- builderBlock: !0,
463
- // once we bump to a major version, toggle this to `false`.
464
- builderContext: !0,
465
- builderComponents: !1,
466
- builderLinkComponent: !1,
467
- ...e
468
- }), St = (e, t) => e ? ne(e.shouldReceiveBuilderProps).builderLinkComponent ? {
469
- builderLinkComponent: t
470
- } : {} : {}, kt = (e, t) => e ? ne(e.shouldReceiveBuilderProps).builderComponents ? {
471
- builderComponents: t
472
- } : {} : {}, Ct = (e, t) => e ? ne(e.shouldReceiveBuilderProps).builderBlock ? {
473
- builderBlock: t
474
- } : {} : {}, Tt = (e, t) => e ? ne(e.shouldReceiveBuilderProps).builderContext ? {
475
- builderContext: t
476
- } : {} : {}, De = {
460
+ }, vt = (e, t) => {
461
+ var n;
462
+ return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
463
+ builderLinkComponent: t
464
+ } : {};
465
+ }, St = (e, t) => {
466
+ var n;
467
+ return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
468
+ builderComponents: t
469
+ } : {};
470
+ }, kt = (e, t) => {
471
+ var n;
472
+ return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
473
+ builderBlock: t
474
+ } : {};
475
+ }, Ct = (e, t) => {
476
+ var n;
477
+ return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
478
+ builderContext: t
479
+ } : {};
480
+ }, De = {
477
481
  small: {
478
482
  min: 320,
479
483
  default: 321,
@@ -489,11 +493,11 @@ const xt = ({
489
493
  default: 991,
490
494
  max: 1200
491
495
  }
492
- }, xe = (e, t = De) => `@media (max-width: ${t[e].max}px)`, Oe = ({
496
+ }, ye = (e, t = De) => `@media (max-width: ${t[e].max}px)`, Le = ({
493
497
  small: e,
494
498
  medium: t
495
499
  }) => {
496
- const n = ue(De);
500
+ const n = de(De);
497
501
  if (!e || !t)
498
502
  return n;
499
503
  const i = Math.floor(e / 2);
@@ -516,7 +520,7 @@ const xt = ({
516
520
  default: r + 1
517
521
  }, n;
518
522
  };
519
- function ie(e) {
523
+ function ne(e) {
520
524
  return /* @__PURE__ */ s(
521
525
  "style",
522
526
  {
@@ -525,7 +529,7 @@ function ie(e) {
525
529
  }
526
530
  );
527
531
  }
528
- function It(e) {
532
+ function Tt(e) {
529
533
  function t() {
530
534
  const i = X({
531
535
  block: e.block,
@@ -538,7 +542,7 @@ function It(e) {
538
542
  return G(i.hide) ? !i.hide : G(i.show) ? i.show : !0;
539
543
  }
540
544
  function n() {
541
- var x, B, V;
545
+ var x, E, V;
542
546
  const i = X({
543
547
  block: e.block,
544
548
  localState: e.context.localState,
@@ -546,7 +550,7 @@ function It(e) {
546
550
  rootSetState: e.context.rootSetState,
547
551
  context: e.context.context,
548
552
  shouldEvaluateBindings: !0
549
- }), o = i.responsiveStyles, r = e.context.content, a = Oe(
553
+ }), o = i.responsiveStyles, r = e.context.content, a = Le(
550
554
  ((x = r == null ? void 0 : r.meta) == null ? void 0 : x.breakpoints) || {}
551
555
  ), l = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, u = o == null ? void 0 : o.small, f = i.id;
552
556
  if (!f)
@@ -557,21 +561,21 @@ function It(e) {
557
561
  }) : "", m = c ? J({
558
562
  className: f,
559
563
  styles: c,
560
- mediaQuery: xe(
564
+ mediaQuery: ye(
561
565
  "medium",
562
566
  a
563
567
  )
564
- }) : "", b = u ? J({
568
+ }) : "", g = u ? J({
565
569
  className: f,
566
570
  styles: u,
567
- mediaQuery: xe(
571
+ mediaQuery: ye(
568
572
  "small",
569
573
  a
570
574
  )
571
575
  }) : "", p = i.animations && i.animations.find((A) => A.trigger === "hover");
572
576
  let I = "";
573
577
  if (p) {
574
- const A = ((V = (B = p.steps) == null ? void 0 : B[1]) == null ? void 0 : V.styles) || {};
578
+ const A = ((V = (E = p.steps) == null ? void 0 : E[1]) == null ? void 0 : V.styles) || {};
575
579
  I = J({
576
580
  className: `${f}:hover`,
577
581
  styles: {
@@ -586,16 +590,16 @@ function It(e) {
586
590
  return [
587
591
  d,
588
592
  m,
589
- b,
593
+ g,
590
594
  I
591
595
  ].join(" ");
592
596
  }
593
- return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(ie, { id: "builderio-block", styles: n() }) }) : null });
597
+ return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(ne, { id: "builderio-block", styles: n() }) }) : null });
594
598
  }
595
- function wt(e) {
599
+ function It(e) {
596
600
  return e.charAt(0).toUpperCase() + e.slice(1);
597
601
  }
598
- const Rt = (e) => `on${wt(e)}`, Bt = (e, t) => (n) => K({
602
+ const wt = (e) => `on${It(e)}`, Rt = (e, t) => (n) => K({
599
603
  code: e,
600
604
  context: t.context,
601
605
  localState: t.localState,
@@ -605,14 +609,14 @@ const Rt = (e) => `on${wt(e)}`, Bt = (e, t) => (n) => K({
605
609
  isExpression: !1,
606
610
  enableCache: !0
607
611
  });
608
- function je(e) {
612
+ function Oe(e) {
609
613
  var i;
610
614
  const t = {}, n = (i = e.block.actions) != null ? i : {};
611
615
  for (const o in n) {
612
616
  if (!n.hasOwnProperty(o))
613
617
  continue;
614
618
  const r = n[o];
615
- let a = Rt(o);
619
+ let a = wt(o);
616
620
  if (e.stripPrefix)
617
621
  switch (z) {
618
622
  case "vue":
@@ -622,49 +626,49 @@ function je(e) {
622
626
  a = a.replace("on:", "");
623
627
  break;
624
628
  }
625
- t[a] = Bt(r, e);
629
+ t[a] = Rt(r, e);
626
630
  }
627
631
  return t;
628
632
  }
629
- function Pt({
633
+ function Et({
630
634
  properties: e
631
635
  }) {
632
636
  return e;
633
637
  }
634
- const Et = (e) => ({
638
+ const Bt = (e) => ({
635
639
  href: e.href
636
640
  });
637
- function he({
641
+ function fe({
638
642
  block: e,
639
643
  context: t
640
644
  }) {
641
645
  var i;
642
646
  const n = {
643
- ...Et(e),
647
+ ...Bt(e),
644
648
  ...e.properties,
645
649
  "builder-id": e.id,
646
- style: yt({
650
+ style: pt({
647
651
  block: e,
648
652
  context: t
649
653
  }),
650
654
  [q()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
651
655
  };
652
- return Pt({
656
+ return Et({
653
657
  properties: n,
654
658
  context: t,
655
659
  block: e
656
660
  });
657
661
  }
658
- function Vt(e) {
662
+ function Pt(e) {
659
663
  return /* @__PURE__ */ s(
660
- me,
664
+ ue,
661
665
  {
662
666
  TagName: e.Wrapper,
663
- attributes: he({
667
+ attributes: fe({
664
668
  block: e.block,
665
669
  context: e.context
666
670
  }),
667
- actionAttributes: je({
671
+ actionAttributes: Oe({
668
672
  block: e.block,
669
673
  rootState: e.context.rootState,
670
674
  rootSetState: e.context.rootSetState,
@@ -676,14 +680,14 @@ function Vt(e) {
676
680
  }
677
681
  );
678
682
  }
679
- function At(e) {
683
+ function Vt(e) {
680
684
  function t() {
681
685
  return e.includeBlockProps ? {
682
- ...he({
686
+ ...fe({
683
687
  block: e.block,
684
688
  context: e.context
685
689
  }),
686
- ...je({
690
+ ...Oe({
687
691
  block: e.block,
688
692
  rootState: e.context.rootState,
689
693
  rootSetState: e.context.rootSetState,
@@ -694,7 +698,7 @@ function At(e) {
694
698
  }
695
699
  return /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
696
700
  }
697
- const Nt = ({
701
+ const At = ({
698
702
  componentOptions: e,
699
703
  builderBlock: t,
700
704
  context: n,
@@ -710,7 +714,7 @@ const Nt = ({
710
714
  * component itself directly. Otherwise, they are provided to the wrapper element.
711
715
  */
712
716
  ...o ? {
713
- attributes: he({
717
+ attributes: fe({
714
718
  block: t,
715
719
  context: a
716
720
  })
@@ -724,15 +728,15 @@ const Nt = ({
724
728
  includeBlockProps: o
725
729
  } : l;
726
730
  };
727
- function ve(e) {
731
+ function xe(e) {
728
732
  var i;
729
733
  const [t, n] = C(
730
- () => e.isInteractive ? At : e.componentRef
734
+ () => e.isInteractive ? Vt : e.componentRef
731
735
  );
732
736
  return /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
733
737
  t,
734
738
  {
735
- ...Nt({
739
+ ...At({
736
740
  componentOptions: e.componentOptions,
737
741
  builderBlock: e.builderBlock,
738
742
  context: e.context,
@@ -755,9 +759,9 @@ function ve(e) {
755
759
  }
756
760
  ) }) : null });
757
761
  }
758
- function Wt(e) {
762
+ function Nt(e) {
759
763
  const [t, n] = C(() => e.repeatContext);
760
- return /* @__PURE__ */ s(fe.Provider, { value: t, children: /* @__PURE__ */ s(
764
+ return /* @__PURE__ */ s(me.Provider, { value: t, children: /* @__PURE__ */ s(
761
765
  _,
762
766
  {
763
767
  block: e.block,
@@ -770,14 +774,14 @@ function Wt(e) {
770
774
  function _(e) {
771
775
  var c, u, f;
772
776
  function t() {
773
- return xt({
777
+ return yt({
774
778
  block: e.block,
775
779
  context: e.context,
776
780
  registeredComponents: e.registeredComponents
777
781
  });
778
782
  }
779
783
  function n() {
780
- return vt({
784
+ return xt({
781
785
  block: e.block,
782
786
  context: e.context
783
787
  });
@@ -798,27 +802,27 @@ function _(e) {
798
802
  return e.block.tagName === "a" || ((m = i().properties) == null ? void 0 : m.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
799
803
  }
800
804
  function r() {
801
- var b, p;
802
- if ((b = e.block.repeat) != null && b.collection)
805
+ var g, p;
806
+ if ((g = e.block.repeat) != null && g.collection)
803
807
  return !!((p = n == null ? void 0 : n()) != null && p.length);
804
808
  const d = "hide" in i() ? i().hide : !1;
805
809
  return ("show" in i() ? i().show : !0) && !d;
806
810
  }
807
811
  function a() {
808
- var m, b;
809
- return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (b = i().children) != null ? b : [] : [];
812
+ var m, g;
813
+ return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (g = i().children) != null ? g : [] : [];
810
814
  }
811
815
  function l() {
812
- var d, m, b, p;
816
+ var d, m, g, p;
813
817
  return {
814
818
  blockChildren: (d = i().children) != null ? d : [],
815
819
  componentRef: (m = t == null ? void 0 : t()) == null ? void 0 : m.component,
816
820
  componentOptions: {
817
- ...ot(i()),
818
- ...Ct(t(), i()),
819
- ...Tt(t(), e.context),
820
- ...St(t(), e.linkComponent),
821
- ...kt(
821
+ ...it(i()),
822
+ ...kt(t(), i()),
823
+ ...Ct(t(), e.context),
824
+ ...vt(t(), e.linkComponent),
825
+ ...St(
822
826
  t(),
823
827
  e.registeredComponents
824
828
  )
@@ -827,22 +831,22 @@ function _(e) {
827
831
  linkComponent: e.linkComponent,
828
832
  registeredComponents: e.registeredComponents,
829
833
  builderBlock: i(),
830
- includeBlockProps: ((b = t == null ? void 0 : t()) == null ? void 0 : b.noWrap) === !0,
834
+ includeBlockProps: ((g = t == null ? void 0 : t()) == null ? void 0 : g.noWrap) === !0,
831
835
  isInteractive: !((p = t == null ? void 0 : t()) != null && p.isRSC)
832
836
  };
833
837
  }
834
- return P(() => {
838
+ return B(() => {
835
839
  const d = i().id, m = i().animations;
836
- m && d && ft(
837
- m.map((b) => ({
838
- ...b,
840
+ m && d && mt(
841
+ m.map((g) => ({
842
+ ...g,
839
843
  elementId: d
840
844
  }))
841
845
  );
842
- }, []), /* @__PURE__ */ s(R, { children: r() ? /* @__PURE__ */ E(R, { children: [
843
- /* @__PURE__ */ s(It, { block: e.block, context: e.context }),
846
+ }, []), /* @__PURE__ */ s(R, { children: r() ? /* @__PURE__ */ P(R, { children: [
847
+ /* @__PURE__ */ s(Tt, { block: e.block, context: e.context }),
844
848
  (c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
845
- ve,
849
+ xe,
846
850
  {
847
851
  componentRef: l().componentRef,
848
852
  componentOptions: l().componentOptions,
@@ -855,7 +859,7 @@ function _(e) {
855
859
  isInteractive: l().isInteractive
856
860
  }
857
861
  ) }) : /* @__PURE__ */ s(R, { children: n() ? /* @__PURE__ */ s(R, { children: (f = n()) == null ? void 0 : f.map((d, m) => /* @__PURE__ */ s(
858
- Wt,
862
+ Nt,
859
863
  {
860
864
  repeatContext: d.context,
861
865
  block: d.block,
@@ -863,15 +867,15 @@ function _(e) {
863
867
  linkComponent: e.linkComponent
864
868
  },
865
869
  m
866
- )) }) : /* @__PURE__ */ E(
867
- Vt,
870
+ )) }) : /* @__PURE__ */ P(
871
+ Pt,
868
872
  {
869
873
  Wrapper: o(),
870
874
  block: i(),
871
875
  context: e.context,
872
876
  children: [
873
877
  /* @__PURE__ */ s(
874
- ve,
878
+ xe,
875
879
  {
876
880
  componentRef: l().componentRef,
877
881
  componentOptions: l().componentOptions,
@@ -899,7 +903,7 @@ function _(e) {
899
903
  ) })
900
904
  ] }) : null });
901
905
  }
902
- function Ft(e) {
906
+ function Wt(e) {
903
907
  function t() {
904
908
  var o;
905
909
  return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
@@ -930,7 +934,7 @@ function Ft(e) {
930
934
  "*"
931
935
  ));
932
936
  }
933
- return /* @__PURE__ */ E(R, { children: [
937
+ return /* @__PURE__ */ P(R, { children: [
934
938
  /* @__PURE__ */ s(
935
939
  e.BlocksWrapper,
936
940
  {
@@ -952,11 +956,11 @@ function Ft(e) {
952
956
  }` })
953
957
  ] });
954
958
  }
955
- function L(e) {
959
+ function D(e) {
956
960
  var i, o, r;
957
- const t = pe(fe), n = pe(Ee);
961
+ const t = be(me), n = be(Be);
958
962
  return /* @__PURE__ */ s(
959
- Ft,
963
+ Wt,
960
964
  {
961
965
  blocks: e.blocks,
962
966
  parent: e.parent,
@@ -977,8 +981,8 @@ function L(e) {
977
981
  }
978
982
  );
979
983
  }
980
- const $t = (e) => `builder-columns ${e}-breakpoints`;
981
- function Lt(e) {
984
+ const Ft = (e) => `builder-columns ${e}-breakpoints`;
985
+ function $t(e) {
982
986
  var A, O;
983
987
  const [t, n] = C(
984
988
  () => typeof e.space == "number" ? e.space || 0 : 20
@@ -993,8 +997,8 @@ function Lt(e) {
993
997
  return ((w = i[S]) == null ? void 0 : w.width) || 100 / i.length;
994
998
  }
995
999
  function u(S) {
996
- const w = t * (i.length - 1) / i.length;
997
- return `calc(${c(S)}% - ${w}px)`;
1000
+ const w = c(S), N = t * (i.length - 1) * (w / 100);
1001
+ return `calc(${w}% - ${N}px)`;
998
1002
  }
999
1003
  function f({
1000
1004
  stackedStyle: S,
@@ -1008,7 +1012,7 @@ function Lt(e) {
1008
1012
  }) {
1009
1013
  return r === "never" ? w : S;
1010
1014
  }
1011
- const [m, b] = C(
1015
+ const [m, g] = C(
1012
1016
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
1013
1017
  );
1014
1018
  function p() {
@@ -1021,40 +1025,40 @@ function Lt(e) {
1021
1025
  };
1022
1026
  }
1023
1027
  function I(S) {
1024
- const w = S === 0 ? 0 : t, W = u(S), g = `${w}px`, h = "100%", y = 0;
1028
+ const w = S === 0 ? 0 : t, N = u(S), b = `${w}px`, h = "100%", y = 0;
1025
1029
  return {
1026
1030
  ...{
1027
1031
  display: "flex",
1028
1032
  flexDirection: "column",
1029
1033
  alignItems: "stretch"
1030
1034
  },
1031
- width: W,
1032
- ["marginLeft"]: g,
1035
+ width: N,
1036
+ ["marginLeft"]: b,
1033
1037
  "--column-width-mobile": d({
1034
1038
  stackedStyle: h,
1035
- desktopStyle: W
1039
+ desktopStyle: N
1036
1040
  }),
1037
1041
  "--column-margin-left-mobile": d({
1038
1042
  stackedStyle: y,
1039
- desktopStyle: g
1043
+ desktopStyle: b
1040
1044
  }),
1041
1045
  "--column-width-tablet": f({
1042
1046
  stackedStyle: h,
1043
- desktopStyle: W
1047
+ desktopStyle: N
1044
1048
  }),
1045
1049
  "--column-margin-left-tablet": f({
1046
1050
  stackedStyle: y,
1047
- desktopStyle: g
1051
+ desktopStyle: b
1048
1052
  })
1049
1053
  };
1050
1054
  }
1051
1055
  function x(S) {
1052
- var W, g;
1053
- return Oe(
1054
- ((g = (W = e.builderContext.content) == null ? void 0 : W.meta) == null ? void 0 : g.breakpoints) || {}
1056
+ var N, b;
1057
+ return Le(
1058
+ ((b = (N = e.builderContext.content) == null ? void 0 : N.meta) == null ? void 0 : b.breakpoints) || {}
1055
1059
  )[S].max;
1056
1060
  }
1057
- function B() {
1061
+ function E() {
1058
1062
  return `
1059
1063
  @media (max-width: ${x("medium")}px) {
1060
1064
  .${e.builderBlock.id}-breakpoints {
@@ -1087,25 +1091,25 @@ function Lt(e) {
1087
1091
  href: S.link
1088
1092
  } : {},
1089
1093
  [q()]: "builder-column",
1090
- style: Le(I(w))
1094
+ style: $e(I(w))
1091
1095
  };
1092
1096
  }
1093
- return /* @__PURE__ */ E(R, { children: [
1094
- /* @__PURE__ */ E(
1097
+ return /* @__PURE__ */ P(R, { children: [
1098
+ /* @__PURE__ */ P(
1095
1099
  "div",
1096
1100
  {
1097
- className: $t((A = e.builderBlock) == null ? void 0 : A.id) + " div-bade6b34",
1101
+ className: Ft((A = e.builderBlock) == null ? void 0 : A.id) + " div-b622c1bc",
1098
1102
  style: p(),
1099
1103
  children: [
1100
- /* @__PURE__ */ s(ie, { id: "builderio-columns", styles: B() }),
1104
+ /* @__PURE__ */ s(ne, { id: "builderio-columns", styles: E() }),
1101
1105
  (O = e.columns) == null ? void 0 : O.map((S, w) => /* @__PURE__ */ s(
1102
- me,
1106
+ ue,
1103
1107
  {
1104
1108
  TagName: l(S),
1105
1109
  actionAttributes: {},
1106
1110
  attributes: V(S, w),
1107
1111
  children: /* @__PURE__ */ s(
1108
- L,
1112
+ D,
1109
1113
  {
1110
1114
  path: `component.options.columns.${w}.blocks`,
1111
1115
  parent: e.builderBlock.id,
@@ -1124,7 +1128,7 @@ function Lt(e) {
1124
1128
  ]
1125
1129
  }
1126
1130
  ),
1127
- /* @__PURE__ */ s("style", { children: `.div-bade6b34 {
1131
+ /* @__PURE__ */ s("style", { children: `.div-b622c1bc {
1128
1132
  display: flex;
1129
1133
  line-height: normal;
1130
1134
  }` })
@@ -1133,37 +1137,37 @@ function Lt(e) {
1133
1137
  function Dt(e) {
1134
1138
  return /* @__PURE__ */ s("span", { children: e.children });
1135
1139
  }
1136
- function Se(e) {
1140
+ function ve(e) {
1137
1141
  return e.replace(/http(s)?:/, "");
1138
1142
  }
1139
- function Ot(e = "", t, n) {
1143
+ function Lt(e = "", t, n) {
1140
1144
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
1141
1145
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
1142
1146
  }
1143
- function jt(e, t) {
1147
+ function Ot(e, t) {
1144
1148
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1145
1149
  return e;
1146
1150
  if (t === "master")
1147
- return Se(e);
1151
+ return ve(e);
1148
1152
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1149
1153
  if (n) {
1150
1154
  const i = e.split(n[0]), o = n[3], r = t.match("x") ? t : `${t}x`;
1151
- return Se(`${i[0]}_${r}${o}`);
1155
+ return ve(`${i[0]}_${r}${o}`);
1152
1156
  }
1153
1157
  return null;
1154
1158
  }
1155
- function ae(e) {
1159
+ function oe(e) {
1156
1160
  if (!e)
1157
1161
  return e;
1158
1162
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1159
1163
  if (e.match(/builder\.io/)) {
1160
1164
  let n = e;
1161
1165
  const i = Number(e.split("?width=")[1]);
1162
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Ot(e, "width", o)} ${o}w`).concat([n]).join(", ");
1166
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Lt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1163
1167
  }
1164
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [jt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1168
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ot(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1165
1169
  }
1166
- function Ut(e) {
1170
+ function jt(e) {
1167
1171
  var o, r, a, l, c, u;
1168
1172
  function t() {
1169
1173
  var m;
@@ -1174,10 +1178,10 @@ function Ut(e) {
1174
1178
  return e.srcset;
1175
1179
  if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
1176
1180
  if (!e.srcset.includes(e.image.split("?")[0]))
1177
- return console.debug("Removed given srcset"), ae(d);
1181
+ return console.debug("Removed given srcset"), oe(d);
1178
1182
  } else if (e.image && !e.srcset)
1179
- return ae(d);
1180
- return ae(d);
1183
+ return oe(d);
1184
+ return oe(d);
1181
1185
  }
1182
1186
  function n() {
1183
1187
  var f;
@@ -1193,9 +1197,9 @@ function Ut(e) {
1193
1197
  };
1194
1198
  return e.aspectRatio ? f : void 0;
1195
1199
  }
1196
- return /* @__PURE__ */ E(R, { children: [
1197
- /* @__PURE__ */ E(R, { children: [
1198
- /* @__PURE__ */ E("picture", { children: [
1200
+ return /* @__PURE__ */ P(R, { children: [
1201
+ /* @__PURE__ */ P(R, { children: [
1202
+ /* @__PURE__ */ P("picture", { children: [
1199
1203
  n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1200
1204
  /* @__PURE__ */ s(
1201
1205
  "img",
@@ -1247,7 +1251,7 @@ function Ut(e) {
1247
1251
  }` })
1248
1252
  ] });
1249
1253
  }
1250
- function Mt(e) {
1254
+ function Ut(e) {
1251
1255
  return /* @__PURE__ */ s(
1252
1256
  "section",
1253
1257
  {
@@ -1268,7 +1272,7 @@ function Mt(e) {
1268
1272
  }
1269
1273
  );
1270
1274
  }
1271
- const re = {
1275
+ const ae = {
1272
1276
  "@type": "@builder.io/sdk:Element",
1273
1277
  layerName: "Accordion item title",
1274
1278
  responsiveStyles: {
@@ -1297,7 +1301,7 @@ const re = {
1297
1301
  }
1298
1302
  }
1299
1303
  }]
1300
- }, le = {
1304
+ }, re = {
1301
1305
  "@type": "@builder.io/sdk:Element",
1302
1306
  layerName: "Accordion item detail",
1303
1307
  responsiveStyles: {
@@ -1328,7 +1332,7 @@ const re = {
1328
1332
  }
1329
1333
  }
1330
1334
  }]
1331
- }, Ht = {
1335
+ }, Mt = {
1332
1336
  name: "Builder:Accordion",
1333
1337
  canHaveChildren: !0,
1334
1338
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -1345,19 +1349,19 @@ const re = {
1345
1349
  name: "title",
1346
1350
  type: "uiBlocks",
1347
1351
  hideFromUI: !0,
1348
- defaultValue: [re]
1352
+ defaultValue: [ae]
1349
1353
  }, {
1350
1354
  name: "detail",
1351
1355
  type: "uiBlocks",
1352
1356
  hideFromUI: !0,
1353
- defaultValue: [le]
1357
+ defaultValue: [re]
1354
1358
  }],
1355
1359
  defaultValue: [{
1356
- title: [re],
1357
- detail: [le]
1360
+ title: [ae],
1361
+ detail: [re]
1358
1362
  }, {
1359
- title: [re],
1360
- detail: [le]
1363
+ title: [ae],
1364
+ detail: [re]
1361
1365
  }],
1362
1366
  showIf: (e) => !e.get("useChildrenForItems")
1363
1367
  }, {
@@ -1392,8 +1396,8 @@ const re = {
1392
1396
  builderComponents: !0,
1393
1397
  builderLinkComponent: !0
1394
1398
  }
1395
- }, ke = (e) => e.toString();
1396
- function qt(e) {
1399
+ }, Se = (e) => e.toString();
1400
+ function Ht(e) {
1397
1401
  var d;
1398
1402
  const [t, n] = C(() => []);
1399
1403
  function i() {
@@ -1412,7 +1416,7 @@ function qt(e) {
1412
1416
  };
1413
1417
  }
1414
1418
  function r() {
1415
- const b = {
1419
+ const g = {
1416
1420
  ...{
1417
1421
  display: "flex",
1418
1422
  flexDirection: "column"
@@ -1421,7 +1425,7 @@ function qt(e) {
1421
1425
  cursor: "pointer"
1422
1426
  };
1423
1427
  return Object.fromEntries(
1424
- Object.entries(b).filter(([p, I]) => I !== void 0)
1428
+ Object.entries(g).filter(([p, I]) => I !== void 0)
1425
1429
  );
1426
1430
  }
1427
1431
  function a(m) {
@@ -1438,18 +1442,18 @@ function qt(e) {
1438
1442
  `.builder-accordion-title[data-index="${p}"]`
1439
1443
  );
1440
1444
  if (m = p, x) {
1441
- let B = x.getBoundingClientRect();
1445
+ let E = x.getBoundingClientRect();
1442
1446
  for (; x = x && x.nextElementSibling; )
1443
1447
  if (x) {
1444
1448
  if (x.classList.contains("builder-accordion-detail"))
1445
1449
  continue;
1446
1450
  const V = x.getBoundingClientRect();
1447
- if (V.left > B.left) {
1451
+ if (V.left > E.left) {
1448
1452
  const A = parseInt(
1449
1453
  x.getAttribute("data-index") || "",
1450
1454
  10
1451
1455
  );
1452
- isNaN(A) || (B = V, m = A);
1456
+ isNaN(A) || (E = V, m = A);
1453
1457
  } else
1454
1458
  break;
1455
1459
  }
@@ -1465,29 +1469,29 @@ function qt(e) {
1465
1469
  }
1466
1470
  };
1467
1471
  return Object.fromEntries(
1468
- Object.entries(m).filter(([b, p]) => p !== void 0)
1472
+ Object.entries(m).filter(([g, p]) => p !== void 0)
1469
1473
  );
1470
1474
  }
1471
1475
  function f(m) {
1472
- t.includes(m) ? n(i() ? [] : t.filter((b) => b !== m)) : n(i() ? [m] : t.concat(m));
1476
+ t.includes(m) ? n(i() ? [] : t.filter((g) => g !== m)) : n(i() ? [m] : t.concat(m));
1473
1477
  }
1474
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m, b) => /* @__PURE__ */ E(R, { children: [
1478
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m, g) => /* @__PURE__ */ P(R, { children: [
1475
1479
  /* @__PURE__ */ s(
1476
1480
  "div",
1477
1481
  {
1478
- className: a(b),
1482
+ className: a(g),
1479
1483
  style: {
1480
1484
  ...r(),
1481
1485
  width: e.grid ? e.gridRowWidth : void 0,
1482
- order: c() !== null ? ke(b) : ke(b + 1)
1486
+ order: c() !== null ? Se(g) : Se(g + 1)
1483
1487
  },
1484
- "data-index": b,
1485
- onClick: (p) => f(b),
1488
+ "data-index": g,
1489
+ onClick: (p) => f(g),
1486
1490
  children: /* @__PURE__ */ s(
1487
- L,
1491
+ D,
1488
1492
  {
1489
1493
  blocks: m.title,
1490
- path: `items.${b}.title`,
1494
+ path: `items.${g}.title`,
1491
1495
  parent: e.builderBlock.id,
1492
1496
  context: e.builderContext,
1493
1497
  registeredComponents: e.builderComponents,
@@ -1496,16 +1500,16 @@ function qt(e) {
1496
1500
  )
1497
1501
  }
1498
1502
  ),
1499
- t.includes(b) ? /* @__PURE__ */ s(
1503
+ t.includes(g) ? /* @__PURE__ */ s(
1500
1504
  "div",
1501
1505
  {
1502
- className: l(b),
1506
+ className: l(g),
1503
1507
  style: u(),
1504
1508
  children: /* @__PURE__ */ s(
1505
- L,
1509
+ D,
1506
1510
  {
1507
1511
  blocks: m.detail,
1508
- path: `items.${b}.detail`,
1512
+ path: `items.${g}.detail`,
1509
1513
  parent: e.builderBlock.id,
1510
1514
  context: e.builderContext,
1511
1515
  registeredComponents: e.builderComponents,
@@ -1516,7 +1520,7 @@ function qt(e) {
1516
1520
  ) : null
1517
1521
  ] })) });
1518
1522
  }
1519
- const Kt = {
1523
+ const qt = {
1520
1524
  name: "Core:Button",
1521
1525
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1522
1526
  defaultStyles: {
@@ -1550,12 +1554,9 @@ const Kt = {
1550
1554
  static: !0,
1551
1555
  noWrap: !0,
1552
1556
  shouldReceiveBuilderProps: {
1553
- builderBlock: !1,
1554
- builderContext: !1,
1555
- builderComponents: !1,
1556
1557
  builderLinkComponent: !0
1557
1558
  }
1558
- }, zt = {
1559
+ }, Kt = {
1559
1560
  // TODO: ways to statically preprocess JSON for references, functions, etc
1560
1561
  name: "Columns",
1561
1562
  isRSC: !0,
@@ -1762,19 +1763,13 @@ const Kt = {
1762
1763
  builderComponents: !0,
1763
1764
  builderLinkComponent: !0
1764
1765
  }
1765
- }, _t = {
1766
- shouldReceiveBuilderProps: {
1767
- builderBlock: !1,
1768
- builderContext: !1,
1769
- builderComponents: !1,
1770
- builderLinkComponent: !1
1771
- },
1766
+ }, zt = {
1772
1767
  name: "Fragment",
1773
1768
  static: !0,
1774
1769
  hidden: !0,
1775
1770
  canHaveChildren: !0,
1776
1771
  noWrap: !0
1777
- }, Jt = {
1772
+ }, _t = {
1778
1773
  name: "Image",
1779
1774
  static: !0,
1780
1775
  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",
@@ -1880,18 +1875,9 @@ const Kt = {
1880
1875
  defaultValue: 0.7041
1881
1876
  }],
1882
1877
  shouldReceiveBuilderProps: {
1883
- builderBlock: !0,
1884
- builderContext: !1,
1885
- builderComponents: !1,
1886
- builderLinkComponent: !1
1878
+ builderBlock: !0
1887
1879
  }
1888
- }, Yt = {
1889
- shouldReceiveBuilderProps: {
1890
- builderBlock: !1,
1891
- builderContext: !1,
1892
- builderComponents: !1,
1893
- builderLinkComponent: !1
1894
- },
1880
+ }, Jt = {
1895
1881
  name: "Core:Section",
1896
1882
  static: !0,
1897
1883
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1930,7 +1916,7 @@ const Kt = {
1930
1916
  }
1931
1917
  }
1932
1918
  }]
1933
- }, Gt = {
1919
+ }, Yt = {
1934
1920
  name: "Slot",
1935
1921
  isRSC: !0,
1936
1922
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1944,13 +1930,10 @@ const Kt = {
1944
1930
  defaultValue: "children"
1945
1931
  }],
1946
1932
  shouldReceiveBuilderProps: {
1947
- builderBlock: !1,
1948
- builderContext: !0,
1949
- builderComponents: !1,
1950
- builderLinkComponent: !1
1933
+ builderContext: !0
1951
1934
  }
1952
1935
  };
1953
- function Qt(e) {
1936
+ function Gt(e) {
1954
1937
  var t, n, i;
1955
1938
  return /* @__PURE__ */ s(
1956
1939
  "div",
@@ -1962,7 +1945,7 @@ function Qt(e) {
1962
1945
  "builder-slot": e.name
1963
1946
  },
1964
1947
  children: /* @__PURE__ */ s(
1965
- L,
1948
+ D,
1966
1949
  {
1967
1950
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
1968
1951
  path: `symbol.data.${e.name}`,
@@ -1973,7 +1956,7 @@ function Qt(e) {
1973
1956
  }
1974
1957
  );
1975
1958
  }
1976
- const Xt = {
1959
+ const Qt = {
1977
1960
  name: "Symbol",
1978
1961
  noWrap: !0,
1979
1962
  static: !0,
@@ -2012,7 +1995,7 @@ const Xt = {
2012
1995
  builderComponents: !0,
2013
1996
  builderLinkComponent: !0
2014
1997
  }
2015
- }, se = {
1998
+ }, le = {
2016
1999
  "@type": "@builder.io/sdk:Element",
2017
2000
  responsiveStyles: {
2018
2001
  large: {
@@ -2034,7 +2017,7 @@ const Xt = {
2034
2017
  text: "New tab"
2035
2018
  }
2036
2019
  }
2037
- }, ce = {
2020
+ }, se = {
2038
2021
  "@type": "@builder.io/sdk:Element",
2039
2022
  responsiveStyles: {
2040
2023
  large: {
@@ -2050,7 +2033,7 @@ const Xt = {
2050
2033
  text: "New tab content "
2051
2034
  }
2052
2035
  }
2053
- }, Zt = {
2036
+ }, Xt = {
2054
2037
  name: "Builder: Tabs",
2055
2038
  inputs: [{
2056
2039
  name: "tabs",
@@ -2060,16 +2043,16 @@ const Xt = {
2060
2043
  name: "label",
2061
2044
  type: "uiBlocks",
2062
2045
  hideFromUI: !0,
2063
- defaultValue: [se]
2046
+ defaultValue: [le]
2064
2047
  }, {
2065
2048
  name: "content",
2066
2049
  type: "uiBlocks",
2067
2050
  hideFromUI: !0,
2068
- defaultValue: [ce]
2051
+ defaultValue: [se]
2069
2052
  }],
2070
2053
  defaultValue: [{
2071
2054
  label: [{
2072
- ...se,
2055
+ ...le,
2073
2056
  component: {
2074
2057
  name: "Text",
2075
2058
  options: {
@@ -2078,7 +2061,7 @@ const Xt = {
2078
2061
  }
2079
2062
  }],
2080
2063
  content: [{
2081
- ...ce,
2064
+ ...se,
2082
2065
  component: {
2083
2066
  name: "Text",
2084
2067
  options: {
@@ -2088,7 +2071,7 @@ const Xt = {
2088
2071
  }]
2089
2072
  }, {
2090
2073
  label: [{
2091
- ...se,
2074
+ ...le,
2092
2075
  component: {
2093
2076
  name: "Text",
2094
2077
  options: {
@@ -2097,7 +2080,7 @@ const Xt = {
2097
2080
  }
2098
2081
  }],
2099
2082
  content: [{
2100
- ...ce,
2083
+ ...se,
2101
2084
  component: {
2102
2085
  name: "Text",
2103
2086
  options: {
@@ -2154,7 +2137,7 @@ const Xt = {
2154
2137
  builderLinkComponent: !0
2155
2138
  }
2156
2139
  };
2157
- function en(e) {
2140
+ function Zt(e) {
2158
2141
  var r;
2159
2142
  const [t, n] = C(
2160
2143
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
@@ -2165,7 +2148,7 @@ function en(e) {
2165
2148
  function o(a) {
2166
2149
  a === t && e.collapsible ? n(-1) : n(a);
2167
2150
  }
2168
- return /* @__PURE__ */ E("div", { children: [
2151
+ return /* @__PURE__ */ P("div", { children: [
2169
2152
  /* @__PURE__ */ s(
2170
2153
  "div",
2171
2154
  {
@@ -2185,7 +2168,7 @@ function en(e) {
2185
2168
  },
2186
2169
  onClick: (c) => o(l),
2187
2170
  children: /* @__PURE__ */ s(
2188
- L,
2171
+ D,
2189
2172
  {
2190
2173
  parent: e.builderBlock.id,
2191
2174
  path: `component.options.tabs.${l}.label`,
@@ -2201,7 +2184,7 @@ function en(e) {
2201
2184
  }
2202
2185
  ),
2203
2186
  i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
2204
- L,
2187
+ D,
2205
2188
  {
2206
2189
  parent: e.builderBlock.id,
2207
2190
  path: `component.options.tabs.${t}.content`,
@@ -2213,12 +2196,9 @@ function en(e) {
2213
2196
  ) }) : null
2214
2197
  ] });
2215
2198
  }
2216
- const tn = {
2199
+ const en = {
2217
2200
  shouldReceiveBuilderProps: {
2218
- builderBlock: !1,
2219
- builderContext: !1,
2220
- builderComponents: !1,
2221
- builderLinkComponent: !1
2201
+ builderBlock: !1
2222
2202
  },
2223
2203
  name: "Text",
2224
2204
  static: !0,
@@ -2238,7 +2218,7 @@ const tn = {
2238
2218
  textAlign: "center"
2239
2219
  }
2240
2220
  };
2241
- function nn(e) {
2221
+ function tn(e) {
2242
2222
  var t;
2243
2223
  return /* @__PURE__ */ s(
2244
2224
  "div",
@@ -2251,13 +2231,7 @@ function nn(e) {
2251
2231
  }
2252
2232
  );
2253
2233
  }
2254
- const on = {
2255
- shouldReceiveBuilderProps: {
2256
- builderBlock: !1,
2257
- builderContext: !1,
2258
- builderComponents: !1,
2259
- builderLinkComponent: !1
2260
- },
2234
+ const nn = {
2261
2235
  name: "Custom Code",
2262
2236
  static: !0,
2263
2237
  requiredPermissions: ["editCode"],
@@ -2280,9 +2254,9 @@ const on = {
2280
2254
  advanced: !0
2281
2255
  }]
2282
2256
  };
2283
- function an(e) {
2257
+ function on(e) {
2284
2258
  const t = ee(null), [n, i] = C(() => []), [o, r] = C(() => []);
2285
- return P(() => {
2259
+ return B(() => {
2286
2260
  var l;
2287
2261
  if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
2288
2262
  return;
@@ -2318,13 +2292,7 @@ function an(e) {
2318
2292
  }
2319
2293
  );
2320
2294
  }
2321
- const rn = {
2322
- shouldReceiveBuilderProps: {
2323
- builderBlock: !1,
2324
- builderContext: !1,
2325
- builderComponents: !1,
2326
- builderLinkComponent: !1
2327
- },
2295
+ const an = {
2328
2296
  name: "Embed",
2329
2297
  static: !0,
2330
2298
  inputs: [{
@@ -2339,8 +2307,8 @@ const rn = {
2339
2307
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2340
2308
  hideFromUI: !0
2341
2309
  }]
2342
- }, ln = ["text/javascript", "application/javascript", "application/ecmascript"], sn = (e) => ln.includes(e.type);
2343
- function cn(e) {
2310
+ }, rn = ["text/javascript", "application/javascript", "application/ecmascript"], ln = (e) => rn.includes(e.type);
2311
+ function sn(e) {
2344
2312
  const t = ee(null), [n, i] = C(() => []), [o, r] = C(() => []), [a, l] = C(() => !1);
2345
2313
  function c() {
2346
2314
  if (!t.current || !t.current.getElementsByTagName)
@@ -2352,7 +2320,7 @@ function cn(e) {
2352
2320
  n.push(d.src);
2353
2321
  const m = document.createElement("script");
2354
2322
  m.async = !0, m.src = d.src, document.head.appendChild(m);
2355
- } else if (sn(d) && !o.includes(d.innerText))
2323
+ } else if (ln(d) && !o.includes(d.innerText))
2356
2324
  try {
2357
2325
  o.push(d.innerText), new Function(d.innerText)();
2358
2326
  } catch (m) {
@@ -2360,7 +2328,7 @@ function cn(e) {
2360
2328
  }
2361
2329
  }
2362
2330
  }
2363
- return P(() => {
2331
+ return B(() => {
2364
2332
  t.current && !a && (l(!0), c());
2365
2333
  }, [t.current, a]), /* @__PURE__ */ s(
2366
2334
  "div",
@@ -2371,7 +2339,7 @@ function cn(e) {
2371
2339
  }
2372
2340
  );
2373
2341
  }
2374
- const dn = {
2342
+ const cn = {
2375
2343
  name: "Form:Form",
2376
2344
  // editableTags: ['builder-form-error']
2377
2345
  defaults: {
@@ -2608,97 +2576,97 @@ const dn = {
2608
2576
  builderComponents: !0,
2609
2577
  builderLinkComponent: !0
2610
2578
  }
2611
- }, un = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], mn = () => {
2579
+ }, dn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], un = () => {
2612
2580
  const e = process.env.NODE_ENV || "production";
2613
- return un.includes(e) ? e : "production";
2614
- }, fn = (e, t, n) => {
2581
+ return dn.includes(e) ? e : "production";
2582
+ }, mn = (e, t, n) => {
2615
2583
  const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, r) => o != null ? o[r] : o, e);
2616
2584
  return i === void 0 || i === e ? n : i;
2617
2585
  };
2618
- function hn(e) {
2586
+ function fn(e) {
2619
2587
  var d, m;
2620
2588
  const t = ee(null), [n, i] = C(() => "unsubmitted"), [o, r] = C(() => null), [a, l] = C(() => "");
2621
- function c(b) {
2589
+ function c(g) {
2622
2590
  var I, x;
2623
2591
  const p = {
2624
2592
  ...e.builderContext.rootState,
2625
- ...b
2593
+ ...g
2626
2594
  };
2627
2595
  e.builderContext.rootSetState ? (x = (I = e.builderContext).rootSetState) == null || x.call(I, p) : e.builderContext.rootState = p;
2628
2596
  }
2629
2597
  function u() {
2630
2598
  return $() && e.previewState || n;
2631
2599
  }
2632
- function f(b) {
2600
+ function f(g) {
2633
2601
  var I;
2634
2602
  const p = e.sendWithJs || e.sendSubmissionsTo === "email";
2635
2603
  if (e.sendSubmissionsTo === "zapier")
2636
- b.preventDefault();
2604
+ g.preventDefault();
2637
2605
  else if (p) {
2638
2606
  if (!(e.action || e.sendSubmissionsTo === "email")) {
2639
- b.preventDefault();
2607
+ g.preventDefault();
2640
2608
  return;
2641
2609
  }
2642
- b.preventDefault();
2643
- const x = b.currentTarget || b.target, B = e.customHeaders || {};
2610
+ g.preventDefault();
2611
+ const x = g.currentTarget || g.target, E = e.customHeaders || {};
2644
2612
  let V;
2645
- const A = new FormData(x), O = Array.from(x.querySelectorAll("input,select,textarea")).filter((g) => !!g.name).map((g) => {
2613
+ const A = new FormData(x), O = Array.from(x.querySelectorAll("input,select,textarea")).filter((b) => !!b.name).map((b) => {
2646
2614
  let h;
2647
- const y = g.name;
2648
- if (g instanceof HTMLInputElement)
2649
- if (g.type === "radio") {
2650
- if (g.checked)
2651
- return h = g.name, {
2615
+ const y = b.name;
2616
+ if (b instanceof HTMLInputElement)
2617
+ if (b.type === "radio") {
2618
+ if (b.checked)
2619
+ return h = b.name, {
2652
2620
  key: y,
2653
2621
  value: h
2654
2622
  };
2655
- } else if (g.type === "checkbox")
2656
- h = g.checked;
2657
- else if (g.type === "number" || g.type === "range") {
2658
- const v = g.valueAsNumber;
2623
+ } else if (b.type === "checkbox")
2624
+ h = b.checked;
2625
+ else if (b.type === "number" || b.type === "range") {
2626
+ const v = b.valueAsNumber;
2659
2627
  isNaN(v) || (h = v);
2660
2628
  } else
2661
- g.type === "file" ? h = g.files : h = g.value;
2629
+ b.type === "file" ? h = b.files : h = b.value;
2662
2630
  else
2663
- h = g.value;
2631
+ h = b.value;
2664
2632
  return {
2665
2633
  key: y,
2666
2634
  value: h
2667
2635
  };
2668
2636
  });
2669
2637
  let S = e.contentType;
2670
- if (e.sendSubmissionsTo === "email" && (S = "multipart/form-data"), Array.from(O).forEach(({ value: g }) => {
2671
- (g instanceof File || Array.isArray(g) && g[0] instanceof File || g instanceof FileList) && (S = "multipart/form-data");
2638
+ if (e.sendSubmissionsTo === "email" && (S = "multipart/form-data"), Array.from(O).forEach(({ value: b }) => {
2639
+ (b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (S = "multipart/form-data");
2672
2640
  }), S !== "application/json")
2673
2641
  V = A;
2674
2642
  else {
2675
- const g = {};
2643
+ const b = {};
2676
2644
  Array.from(O).forEach(({ value: h, key: y }) => {
2677
- Ae(g, y, h);
2678
- }), V = JSON.stringify(g);
2645
+ Ve(b, y, h);
2646
+ }), V = JSON.stringify(b);
2679
2647
  }
2680
- S && S !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (B["content-type"] = S));
2648
+ S && S !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (E["content-type"] = S));
2681
2649
  const w = new CustomEvent("presubmit", { detail: { body: V } });
2682
2650
  if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
2683
2651
  return;
2684
2652
  i("sending");
2685
- const W = `${mn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2653
+ const N = `${un() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2686
2654
  e.sendSubmissionsToEmail || ""
2687
2655
  )}&name=${encodeURIComponent(e.name || "")}`;
2688
2656
  fetch(
2689
- e.sendSubmissionsTo === "email" ? W : e.action,
2690
- { body: V, headers: B, method: e.method || "post" }
2657
+ e.sendSubmissionsTo === "email" ? N : e.action,
2658
+ { body: V, headers: E, method: e.method || "post" }
2691
2659
  ).then(
2692
- async (g) => {
2660
+ async (b) => {
2693
2661
  let h;
2694
- const y = g.headers.get("content-type");
2695
- if (y && y.indexOf("application/json") !== -1 ? h = await g.json() : h = await g.text(), !g.ok && e.errorMessagePath) {
2696
- let v = fn(h, e.errorMessagePath);
2662
+ const y = b.headers.get("content-type");
2663
+ if (y && y.indexOf("application/json") !== -1 ? h = await b.json() : h = await b.text(), !b.ok && e.errorMessagePath) {
2664
+ let v = mn(h, e.errorMessagePath);
2697
2665
  v && (typeof v != "string" && (v = JSON.stringify(v)), l(v), c({ formErrorMessage: v }));
2698
2666
  }
2699
- if (r(h), i(g.ok ? "success" : "error"), g.ok) {
2667
+ if (r(h), i(b.ok ? "success" : "error"), b.ok) {
2700
2668
  const v = new CustomEvent("submit:success", {
2701
- detail: { res: g, body: h }
2669
+ detail: { res: b, body: h }
2702
2670
  });
2703
2671
  if (t.current) {
2704
2672
  if (t.current.dispatchEvent(v), v.defaultPrevented)
@@ -2715,18 +2683,18 @@ function hn(e) {
2715
2683
  location.href = e.successUrl;
2716
2684
  }
2717
2685
  },
2718
- (g) => {
2686
+ (b) => {
2719
2687
  const h = new CustomEvent("submit:error", {
2720
- detail: { error: g }
2688
+ detail: { error: b }
2721
2689
  });
2722
- t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (r(g), i("error"));
2690
+ t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (r(b), i("error"));
2723
2691
  }
2724
2692
  );
2725
2693
  }
2726
2694
  }
2727
- return /* @__PURE__ */ E(R, { children: [
2695
+ return /* @__PURE__ */ P(R, { children: [
2728
2696
  " ",
2729
- /* @__PURE__ */ E(
2697
+ /* @__PURE__ */ P(
2730
2698
  "form",
2731
2699
  {
2732
2700
  validate: e.validate,
@@ -2734,13 +2702,13 @@ function hn(e) {
2734
2702
  action: !e.sendWithJs && e.action,
2735
2703
  method: e.method,
2736
2704
  name: e.name,
2737
- onSubmit: (b) => f(b),
2705
+ onSubmit: (g) => f(g),
2738
2706
  ...e.attributes,
2739
2707
  children: [
2740
- e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(R, { children: (m = (d = e.builderBlock) == null ? void 0 : d.children) == null ? void 0 : m.map((b, p) => /* @__PURE__ */ s(
2708
+ e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(R, { children: (m = (d = e.builderBlock) == null ? void 0 : d.children) == null ? void 0 : m.map((g, p) => /* @__PURE__ */ s(
2741
2709
  _,
2742
2710
  {
2743
- block: b,
2711
+ block: g,
2744
2712
  context: e.builderContext,
2745
2713
  registeredComponents: e.builderComponents,
2746
2714
  linkComponent: e.builderLinkComponent
@@ -2748,7 +2716,7 @@ function hn(e) {
2748
2716
  `form-block-${p}`
2749
2717
  )) }) : null,
2750
2718
  u() === "error" ? /* @__PURE__ */ s(
2751
- L,
2719
+ D,
2752
2720
  {
2753
2721
  path: "errorMessage",
2754
2722
  blocks: e.errorMessage,
@@ -2756,7 +2724,7 @@ function hn(e) {
2756
2724
  }
2757
2725
  ) : null,
2758
2726
  u() === "sending" ? /* @__PURE__ */ s(
2759
- L,
2727
+ D,
2760
2728
  {
2761
2729
  path: "sendingMessage",
2762
2730
  blocks: e.sendingMessage,
@@ -2765,7 +2733,7 @@ function hn(e) {
2765
2733
  ) : null,
2766
2734
  u() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
2767
2735
  u() === "success" ? /* @__PURE__ */ s(
2768
- L,
2736
+ D,
2769
2737
  {
2770
2738
  path: "successMessage",
2771
2739
  blocks: e.successMessage,
@@ -2780,13 +2748,7 @@ function hn(e) {
2780
2748
  " "
2781
2749
  ] });
2782
2750
  }
2783
- const bn = {
2784
- shouldReceiveBuilderProps: {
2785
- builderBlock: !1,
2786
- builderContext: !1,
2787
- builderComponents: !1,
2788
- builderLinkComponent: !1
2789
- },
2751
+ const hn = {
2790
2752
  name: "Form:Input",
2791
2753
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2792
2754
  inputs: [
@@ -2839,7 +2801,7 @@ const bn = {
2839
2801
  }
2840
2802
  };
2841
2803
  function gn(e) {
2842
- return /* @__PURE__ */ Pe(
2804
+ return /* @__PURE__ */ Ee(
2843
2805
  "input",
2844
2806
  {
2845
2807
  ...e.attributes,
@@ -2853,13 +2815,7 @@ function gn(e) {
2853
2815
  }
2854
2816
  );
2855
2817
  }
2856
- const pn = {
2857
- shouldReceiveBuilderProps: {
2858
- builderBlock: !1,
2859
- builderContext: !1,
2860
- builderComponents: !1,
2861
- builderLinkComponent: !1
2862
- },
2818
+ const bn = {
2863
2819
  name: "Form:Select",
2864
2820
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2865
2821
  defaultStyles: {
@@ -2902,9 +2858,9 @@ const pn = {
2902
2858
  static: !0,
2903
2859
  noWrap: !0
2904
2860
  };
2905
- function yn(e) {
2861
+ function pn(e) {
2906
2862
  var t;
2907
- return /* @__PURE__ */ Pe(
2863
+ return /* @__PURE__ */ Ee(
2908
2864
  "select",
2909
2865
  {
2910
2866
  ...e.attributes,
@@ -2917,13 +2873,7 @@ function yn(e) {
2917
2873
  (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2918
2874
  );
2919
2875
  }
2920
- const xn = {
2921
- shouldReceiveBuilderProps: {
2922
- builderBlock: !1,
2923
- builderContext: !1,
2924
- builderComponents: !1,
2925
- builderLinkComponent: !1
2926
- },
2876
+ const yn = {
2927
2877
  name: "Form:SubmitButton",
2928
2878
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2929
2879
  defaultStyles: {
@@ -2949,16 +2899,10 @@ const xn = {
2949
2899
  // TODO: defaultChildren
2950
2900
  // canHaveChildren: true,
2951
2901
  };
2952
- function vn(e) {
2902
+ function xn(e) {
2953
2903
  return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
2954
2904
  }
2955
- const Sn = {
2956
- shouldReceiveBuilderProps: {
2957
- builderBlock: !1,
2958
- builderContext: !1,
2959
- builderComponents: !1,
2960
- builderLinkComponent: !1
2961
- },
2905
+ const vn = {
2962
2906
  name: "Form:TextArea",
2963
2907
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
2964
2908
  inputs: [{
@@ -2995,7 +2939,7 @@ const Sn = {
2995
2939
  static: !0,
2996
2940
  noWrap: !0
2997
2941
  };
2998
- function kn(e) {
2942
+ function Sn(e) {
2999
2943
  return /* @__PURE__ */ s(
3000
2944
  "textarea",
3001
2945
  {
@@ -3008,13 +2952,7 @@ function kn(e) {
3008
2952
  }
3009
2953
  );
3010
2954
  }
3011
- const Cn = {
3012
- shouldReceiveBuilderProps: {
3013
- builderBlock: !1,
3014
- builderContext: !1,
3015
- builderComponents: !1,
3016
- builderLinkComponent: !1
3017
- },
2955
+ const kn = {
3018
2956
  // friendlyName?
3019
2957
  name: "Raw:Img",
3020
2958
  hideFromInsertMenu: !0,
@@ -3029,7 +2967,7 @@ const Cn = {
3029
2967
  noWrap: !0,
3030
2968
  static: !0
3031
2969
  };
3032
- function Tn(e) {
2970
+ function Cn(e) {
3033
2971
  return /* @__PURE__ */ s(
3034
2972
  "img",
3035
2973
  {
@@ -3044,7 +2982,7 @@ function Tn(e) {
3044
2982
  $() && e.imgSrc || "default-key"
3045
2983
  );
3046
2984
  }
3047
- const In = {
2985
+ const Tn = {
3048
2986
  name: "Video",
3049
2987
  canHaveChildren: !0,
3050
2988
  defaultStyles: {
@@ -3126,13 +3064,10 @@ const In = {
3126
3064
  advanced: !0
3127
3065
  }],
3128
3066
  shouldReceiveBuilderProps: {
3129
- builderBlock: !0,
3130
- builderContext: !1,
3131
- builderComponents: !1,
3132
- builderLinkComponent: !1
3067
+ builderBlock: !0
3133
3068
  }
3134
3069
  };
3135
- function wn(e) {
3070
+ function In(e) {
3136
3071
  var i, o, r, a, l, c, u;
3137
3072
  function t() {
3138
3073
  return {
@@ -3158,7 +3093,7 @@ function wn(e) {
3158
3093
  ...t()
3159
3094
  };
3160
3095
  }
3161
- return /* @__PURE__ */ E(
3096
+ return /* @__PURE__ */ P(
3162
3097
  "div",
3163
3098
  {
3164
3099
  style: {
@@ -3233,64 +3168,64 @@ function wn(e) {
3233
3168
  }
3234
3169
  );
3235
3170
  }
3236
- const Rn = () => [{
3237
- component: an,
3238
- ...on
3171
+ const wn = () => [{
3172
+ component: on,
3173
+ ...nn
3239
3174
  }, {
3240
- component: cn,
3241
- ...rn
3175
+ component: sn,
3176
+ ...an
3242
3177
  }, {
3243
- component: hn,
3244
- ...dn
3178
+ component: fn,
3179
+ ...cn
3245
3180
  }, {
3246
3181
  component: gn,
3247
- ...bn
3182
+ ...hn
3183
+ }, {
3184
+ component: xn,
3185
+ ...yn
3248
3186
  }, {
3249
- component: vn,
3250
- ...xn
3187
+ component: pn,
3188
+ ...bn
3251
3189
  }, {
3252
- component: yn,
3253
- ...pn
3190
+ component: Sn,
3191
+ ...vn
3254
3192
  }, {
3255
- component: kn,
3256
- ...Sn
3193
+ component: Cn,
3194
+ ...kn
3257
3195
  }, {
3258
- component: Tn,
3259
- ...Cn
3196
+ component: In,
3197
+ ...Tn
3198
+ }], ke = () => [{
3199
+ component: nt,
3200
+ ...qt
3260
3201
  }, {
3261
- component: wn,
3262
- ...In
3263
- }], Ce = () => [{
3264
- component: it,
3202
+ component: $t,
3265
3203
  ...Kt
3266
3204
  }, {
3267
- component: Lt,
3205
+ component: Dt,
3268
3206
  ...zt
3269
3207
  }, {
3270
- component: Dt,
3208
+ component: jt,
3271
3209
  ..._t
3272
3210
  }, {
3273
3211
  component: Ut,
3274
3212
  ...Jt
3275
3213
  }, {
3276
- component: Mt,
3214
+ component: Gt,
3277
3215
  ...Yt
3278
3216
  }, {
3279
- component: Qt,
3280
- ...Gt
3217
+ component: Yn,
3218
+ ...Qt
3281
3219
  }, {
3282
- component: Gn,
3283
- ...Xt
3284
- }, {
3285
- component: nn,
3286
- ...tn
3220
+ component: tn,
3221
+ ...en
3287
3222
  }, {
3288
- component: en,
3289
- ...Zt
3223
+ component: Zt,
3224
+ ...Xt
3290
3225
  }, {
3291
- component: qt,
3292
- ...Ht
3293
- }, ...Rn()], Bn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3226
+ component: Ht,
3227
+ ...Mt
3228
+ }, ...wn()], Rn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3294
3229
  function getAndSetVariantId() {
3295
3230
  function setCookie(name, value, days) {
3296
3231
  let expires = '';
@@ -3346,7 +3281,7 @@ const Rn = () => [{
3346
3281
  }).join('');
3347
3282
  styleEl.innerHTML = newStyleStr;
3348
3283
  }
3349
- }`, Pn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3284
+ }`, En = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3350
3285
  if (!navigator.cookieEnabled) {
3351
3286
  return;
3352
3287
  }
@@ -3380,26 +3315,26 @@ const Rn = () => [{
3380
3315
  thisScriptEl?.remove();
3381
3316
  }
3382
3317
  return;
3383
- }`, Ue = "builderIoAbTest", Me = "builderIoRenderContent", Y = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3318
+ }`, je = "builderIoAbTest", Ue = "builderIoRenderContent", Y = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3384
3319
  ...t,
3385
3320
  testVariationId: t.id,
3386
3321
  id: e == null ? void 0 : e.id
3387
- })), En = ({
3322
+ })), Bn = ({
3388
3323
  canTrack: e,
3389
3324
  content: t
3390
- }) => !(!(Y(t).length > 0) || !e || M()), Vn = (e) => e === "react" || e === "reactNative", He = Vn(z), An = () => `
3391
- window.${Ue} = ${Bn}
3392
- window.${Me} = ${Pn}
3393
- `, Nn = (e, t) => `
3394
- window.${Ue}(
3395
- "${t}",${JSON.stringify(e)}, ${He}
3396
- )`, Wn = ({
3325
+ }) => !(!(Y(t).length > 0) || !e || M()), Pn = (e) => e === "react" || e === "reactNative", Me = Pn(z), Vn = () => `
3326
+ window.${je} = ${Rn}
3327
+ window.${Ue} = ${En}
3328
+ `, An = (e, t) => `
3329
+ window.${je}(
3330
+ "${t}",${JSON.stringify(e)}, ${Me}
3331
+ )`, Nn = ({
3397
3332
  contentId: e,
3398
3333
  variationId: t
3399
- }) => `window.${Me}(
3400
- "${t}", "${e}", ${He}
3334
+ }) => `window.${Ue}(
3335
+ "${t}", "${e}", ${Me}
3401
3336
  )`;
3402
- function de(e) {
3337
+ function ce(e) {
3403
3338
  return /* @__PURE__ */ s(
3404
3339
  "script",
3405
3340
  {
@@ -3408,10 +3343,10 @@ function de(e) {
3408
3343
  }
3409
3344
  );
3410
3345
  }
3411
- function Te(e) {
3346
+ function Ce(e) {
3412
3347
  return Math.round(e * 1e3) / 1e3;
3413
3348
  }
3414
- const Fn = (e, t, n = !0) => {
3349
+ const Wn = (e, t, n = !0) => {
3415
3350
  if (!(e instanceof HTMLElement))
3416
3351
  return null;
3417
3352
  let i = n ? e : e.parentElement;
@@ -3422,28 +3357,28 @@ const Fn = (e, t, n = !0) => {
3422
3357
  return i;
3423
3358
  } while (i = i.parentElement);
3424
3359
  return null;
3425
- }, $n = (e) => Fn(e, (t) => {
3360
+ }, Fn = (e) => Wn(e, (t) => {
3426
3361
  const n = t.getAttribute("builder-id") || t.id;
3427
3362
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3428
- }), Ie = ({
3363
+ }), Te = ({
3429
3364
  event: e,
3430
3365
  target: t
3431
3366
  }) => {
3432
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, r = Te(i / n.width), a = Te(o / n.height);
3367
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, r = Ce(i / n.width), a = Ce(o / n.height);
3433
3368
  return {
3434
3369
  x: r,
3435
3370
  y: a
3436
3371
  };
3437
- }, Ln = (e) => {
3438
- const t = e.target, n = t && $n(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3372
+ }, $n = (e) => {
3373
+ const t = e.target, n = t && Fn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3439
3374
  return {
3440
3375
  targetBuilderElement: i || void 0,
3441
3376
  metadata: {
3442
- targetOffset: t ? Ie({
3377
+ targetOffset: t ? Te({
3443
3378
  event: e,
3444
3379
  target: t
3445
3380
  }) : void 0,
3446
- builderTargetOffset: n ? Ie({
3381
+ builderTargetOffset: n ? Te({
3447
3382
  event: e,
3448
3383
  target: n
3449
3384
  }) : void 0,
@@ -3476,15 +3411,15 @@ font-weight: ${l};
3476
3411
  `.trim());
3477
3412
  }
3478
3413
  return o;
3479
- }, On = ({
3414
+ }, Ln = ({
3480
3415
  customFonts: e
3481
3416
  }) => {
3482
3417
  var t;
3483
3418
  return ((t = e == null ? void 0 : e.map((n) => Dn(n))) == null ? void 0 : t.join(" ")) || "";
3484
- }, jn = ({
3419
+ }, On = ({
3485
3420
  cssCode: e,
3486
3421
  contentId: t
3487
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Un = `
3422
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", jn = `
3488
3423
  .builder-button {
3489
3424
  all: unset;
3490
3425
  }
@@ -3501,9 +3436,9 @@ font-weight: ${l};
3501
3436
  text-align: inherit;
3502
3437
  font-family: inherit;
3503
3438
  }
3504
- `, Mn = (e) => e ? "" : Un, Hn = (e) => `variant-${e}`;
3505
- function qn(e) {
3506
- var V, A, O, S, w, W, g;
3439
+ `, Un = (e) => e ? "" : jn, Mn = (e) => `variant-${e}`;
3440
+ function Hn(e) {
3441
+ var V, A, O, S, w, N, b;
3507
3442
  const t = ee(null);
3508
3443
  function n(h) {
3509
3444
  var v, k;
@@ -3517,7 +3452,7 @@ function qn(e) {
3517
3452
  }));
3518
3453
  }
3519
3454
  function i(h) {
3520
- var v, k, T, N, j;
3455
+ var v, k, T, W, j;
3521
3456
  const y = {
3522
3457
  ...e.builderContextSignal.content,
3523
3458
  ...h,
@@ -3528,7 +3463,7 @@ function qn(e) {
3528
3463
  meta: {
3529
3464
  ...(k = e.builderContextSignal.content) == null ? void 0 : k.meta,
3530
3465
  ...h == null ? void 0 : h.meta,
3531
- breakpoints: ((T = h == null ? void 0 : h.meta) == null ? void 0 : T.breakpoints) || ((j = (N = e.builderContextSignal.content) == null ? void 0 : N.meta) == null ? void 0 : j.breakpoints)
3466
+ breakpoints: ((T = h == null ? void 0 : h.meta) == null ? void 0 : T.breakpoints) || ((j = (W = e.builderContextSignal.content) == null ? void 0 : W.meta) == null ? void 0 : j.breakpoints)
3532
3467
  }
3533
3468
  };
3534
3469
  e.setBuilderContextSignal((F) => ({
@@ -3546,7 +3481,7 @@ function qn(e) {
3546
3481
  () => e.contentWrapper || "div"
3547
3482
  );
3548
3483
  function l(h) {
3549
- return Xe({
3484
+ return Qe({
3550
3485
  model: e.model,
3551
3486
  trustedHosts: e.trustedHosts,
3552
3487
  callbacks: {
@@ -3560,7 +3495,7 @@ function qn(e) {
3560
3495
  });
3561
3496
  },
3562
3497
  animation: (y) => {
3563
- Fe(y);
3498
+ We(y);
3564
3499
  },
3565
3500
  contentUpdate: (y) => {
3566
3501
  i(y);
@@ -3583,35 +3518,35 @@ function qn(e) {
3583
3518
  enableCache: !1
3584
3519
  });
3585
3520
  }
3586
- const [u, f] = C(() => ({})), [d, m] = C(() => ({})), [b, p] = C(() => !1);
3521
+ const [u, f] = C(() => ({})), [d, m] = C(() => ({})), [g, p] = C(() => !1);
3587
3522
  function I(h) {
3588
3523
  var y, v;
3589
3524
  if (e.builderContextSignal.content) {
3590
3525
  const k = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, T = (v = e.builderContextSignal.content) == null ? void 0 : v.id;
3591
- be({
3526
+ he({
3592
3527
  type: "click",
3593
3528
  canTrack: Q(e.canTrack),
3594
3529
  contentId: T,
3595
3530
  apiKey: e.apiKey,
3596
3531
  variationId: k !== T ? k : void 0,
3597
- ...Ln(h),
3598
- unique: !b
3532
+ ...$n(h),
3533
+ unique: !g
3599
3534
  });
3600
3535
  }
3601
- b || p(!0);
3536
+ g || p(!0);
3602
3537
  }
3603
3538
  function x() {
3604
3539
  var y, v, k;
3605
3540
  const h = (k = (v = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : v.httpRequests) != null ? k : {};
3606
- Object.entries(h).forEach(([T, N]) => {
3607
- if (!N || d[T] || u[T] && !$())
3541
+ Object.entries(h).forEach(([T, W]) => {
3542
+ if (!W || d[T] || u[T] && !$())
3608
3543
  return;
3609
3544
  d[T] = !0;
3610
- const j = N.replace(
3545
+ const j = W.replace(
3611
3546
  /{{([^}]+)}}/g,
3612
- (F, qe) => String(
3547
+ (F, He) => String(
3613
3548
  K({
3614
- code: qe,
3549
+ code: He,
3615
3550
  context: e.context || {},
3616
3551
  localState: void 0,
3617
3552
  rootState: e.builderContextSignal.rootState,
@@ -3620,24 +3555,24 @@ function qn(e) {
3620
3555
  })
3621
3556
  )
3622
3557
  );
3623
- Ze(j).then((F) => F.json()).then((F) => {
3558
+ Xe(j).then((F) => F.json()).then((F) => {
3624
3559
  n({
3625
3560
  [T]: F
3626
3561
  }), u[T] = !0;
3627
3562
  }).catch((F) => {
3628
- console.error("error fetching dynamic data", N, F);
3563
+ console.error("error fetching dynamic data", W, F);
3629
3564
  }).finally(() => {
3630
3565
  d[T] = !1;
3631
3566
  });
3632
3567
  });
3633
3568
  }
3634
- function B() {
3569
+ function E() {
3635
3570
  $() && window.dispatchEvent(
3636
3571
  new CustomEvent(
3637
3572
  "builder:component:stateChange",
3638
3573
  {
3639
3574
  detail: {
3640
- state: ue(e.builderContextSignal.rootState),
3575
+ state: de(e.builderContextSignal.rootState),
3641
3576
  ref: {
3642
3577
  name: e.model
3643
3578
  }
@@ -3646,10 +3581,10 @@ function qn(e) {
3646
3581
  )
3647
3582
  );
3648
3583
  }
3649
- return P(() => {
3584
+ return B(() => {
3650
3585
  var h, y;
3651
3586
  if (M()) {
3652
- if ($() && (window.addEventListener("message", l), Je(), Ye({
3587
+ if ($() && (window.addEventListener("message", l), _e(), Je({
3653
3588
  ...e.locale ? {
3654
3589
  locale: e.locale
3655
3590
  } : {},
@@ -3662,27 +3597,27 @@ function qn(e) {
3662
3597
  }), Object.values(
3663
3598
  e.builderContextSignal.componentInfos
3664
3599
  ).forEach((k) => {
3665
- var N;
3666
- const T = Ge(k);
3667
- (N = window.parent) == null || N.postMessage(T, "*");
3600
+ var W;
3601
+ const T = Ye(k);
3602
+ (W = window.parent) == null || W.postMessage(T, "*");
3668
3603
  }), window.addEventListener(
3669
3604
  "builder:component:stateChangeListenerActivated",
3670
- B
3605
+ E
3671
3606
  )), e.builderContextSignal.content && Q(e.canTrack)) {
3672
- const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, T = (y = e.builderContextSignal.content) == null ? void 0 : y.id, N = e.apiKey;
3673
- be({
3607
+ const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, T = (y = e.builderContextSignal.content) == null ? void 0 : y.id, W = e.apiKey;
3608
+ he({
3674
3609
  type: "impression",
3675
3610
  canTrack: !0,
3676
3611
  contentId: T,
3677
- apiKey: N,
3612
+ apiKey: W,
3678
3613
  variationId: k !== T ? k : void 0
3679
3614
  });
3680
3615
  }
3681
- if (Qe() && !$()) {
3682
- const k = new URL(location.href).searchParams, T = k.get("builder.preview"), N = k.get(
3616
+ if (Ge() && !$()) {
3617
+ const k = new URL(location.href).searchParams, T = k.get("builder.preview"), W = k.get(
3683
3618
  `builder.overrides.${T}`
3684
3619
  ), j = k.get("apiKey") || k.get("builder.space");
3685
- T === e.model && j === e.apiKey && (!e.content || N === e.content.id) && Re({
3620
+ T === e.model && j === e.apiKey && (!e.content || W === e.content.id) && we({
3686
3621
  model: e.model,
3687
3622
  apiKey: e.apiKey,
3688
3623
  apiVersion: e.builderContextSignal.apiVersion
@@ -3691,30 +3626,30 @@ function qn(e) {
3691
3626
  });
3692
3627
  }
3693
3628
  }
3694
- }, []), P(() => {
3629
+ }, []), B(() => {
3695
3630
  e.apiKey || Z.error(
3696
3631
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3697
- ), c(), x(), B();
3698
- }, []), P(() => {
3632
+ ), c(), x(), E();
3633
+ }, []), B(() => {
3699
3634
  e.content && i(e.content);
3700
- }, [e.content]), P(() => {
3635
+ }, [e.content]), B(() => {
3701
3636
  c();
3702
- }, [(A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.jsCode]), P(() => {
3637
+ }, [(A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.jsCode]), B(() => {
3703
3638
  x();
3704
- }, [(S = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : S.httpRequests]), P(() => {
3705
- B();
3706
- }, [e.builderContextSignal.rootState]), P(() => {
3639
+ }, [(S = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : S.httpRequests]), B(() => {
3640
+ E();
3641
+ }, [e.builderContextSignal.rootState]), B(() => {
3707
3642
  e.data && n(e.data);
3708
- }, [e.data]), P(() => {
3643
+ }, [e.data]), B(() => {
3709
3644
  e.locale && n({
3710
3645
  locale: e.locale
3711
3646
  });
3712
- }, [e.locale]), P(() => () => {
3647
+ }, [e.locale]), B(() => () => {
3713
3648
  M() && (window.removeEventListener("message", l), window.removeEventListener(
3714
3649
  "builder:component:stateChangeListenerActivated",
3715
- B
3650
+ E
3716
3651
  ));
3717
- }, []), /* @__PURE__ */ s(fe.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
3652
+ }, []), /* @__PURE__ */ s(me.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
3718
3653
  r,
3719
3654
  {
3720
3655
  ref: t,
@@ -3723,29 +3658,29 @@ function qn(e) {
3723
3658
  "builder-model": e.model,
3724
3659
  ...o(),
3725
3660
  ...e.contentWrapperProps,
3726
- className: Hn(
3727
- ((W = e.content) == null ? void 0 : W.testVariationId) || ((g = e.content) == null ? void 0 : g.id)
3661
+ className: Mn(
3662
+ ((N = e.content) == null ? void 0 : N.testVariationId) || ((b = e.content) == null ? void 0 : b.id)
3728
3663
  ),
3729
3664
  children: e.children
3730
3665
  }
3731
3666
  ) : null });
3732
3667
  }
3733
- function Kn(e) {
3668
+ function qn(e) {
3734
3669
  const [t, n] = C(
3735
3670
  () => `
3736
- ${jn({
3671
+ ${On({
3737
3672
  cssCode: e.cssCode,
3738
3673
  contentId: e.contentId
3739
3674
  })}
3740
- ${On({
3675
+ ${Ln({
3741
3676
  customFonts: e.customFonts
3742
3677
  })}
3743
- ${Mn(e.isNestedRender)}
3678
+ ${Un(e.isNestedRender)}
3744
3679
  `.trim()
3745
3680
  );
3746
- return /* @__PURE__ */ s(ie, { id: "builderio-content", styles: t });
3681
+ return /* @__PURE__ */ s(ne, { id: "builderio-content", styles: t });
3747
3682
  }
3748
- const zn = ({
3683
+ const Kn = ({
3749
3684
  content: e,
3750
3685
  data: t,
3751
3686
  locale: n
@@ -3762,7 +3697,7 @@ const zn = ({
3762
3697
  locale: n
3763
3698
  } : {}
3764
3699
  };
3765
- }, _n = ({
3700
+ }, zn = ({
3766
3701
  content: e,
3767
3702
  data: t
3768
3703
  }) => e ? {
@@ -3773,12 +3708,12 @@ const zn = ({
3773
3708
  },
3774
3709
  meta: e == null ? void 0 : e.meta
3775
3710
  } : void 0;
3776
- function we(e) {
3777
- var c, u, f, d, m, b, p;
3711
+ function Ie(e) {
3712
+ var c, u, f, d, m, g, p;
3778
3713
  const [t, n] = C(
3779
3714
  () => {
3780
3715
  var I, x;
3781
- return Wn({
3716
+ return Nn({
3782
3717
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3783
3718
  variationId: (I = e.content) == null ? void 0 : I.testVariationId,
3784
3719
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -3794,25 +3729,25 @@ function we(e) {
3794
3729
  }
3795
3730
  const [o, r] = C(
3796
3731
  () => [
3797
- ...Ce(),
3732
+ ...ke(),
3798
3733
  ...e.customComponents || []
3799
3734
  ].reduce(
3800
- (I, { component: x, ...B }) => ({
3735
+ (I, { component: x, ...E }) => ({
3801
3736
  ...I,
3802
- [B.name]: {
3737
+ [E.name]: {
3803
3738
  component: x,
3804
- ...ge(B)
3739
+ ...ge(E)
3805
3740
  }
3806
3741
  }),
3807
3742
  {}
3808
3743
  )
3809
3744
  ), [a, l] = C(() => ({
3810
- content: _n({
3745
+ content: zn({
3811
3746
  content: e.content,
3812
3747
  data: e.data
3813
3748
  }),
3814
3749
  localState: void 0,
3815
- rootState: zn({
3750
+ rootState: Kn({
3816
3751
  content: e.content,
3817
3752
  data: e.data,
3818
3753
  locale: e.locale
@@ -3823,12 +3758,12 @@ function we(e) {
3823
3758
  apiKey: e.apiKey,
3824
3759
  apiVersion: e.apiVersion,
3825
3760
  componentInfos: [
3826
- ...Ce(),
3761
+ ...ke(),
3827
3762
  ...e.customComponents || []
3828
3763
  ].reduce(
3829
- (I, { component: x, ...B }) => ({
3764
+ (I, { component: x, ...E }) => ({
3830
3765
  ...I,
3831
- [B.name]: ge(B)
3766
+ [E.name]: ge(E)
3832
3767
  }),
3833
3768
  {}
3834
3769
  ),
@@ -3837,13 +3772,13 @@ function we(e) {
3837
3772
  BlocksWrapperProps: e.blocksWrapperProps || {}
3838
3773
  }));
3839
3774
  return /* @__PURE__ */ s(
3840
- Ee.Provider,
3775
+ Be.Provider,
3841
3776
  {
3842
3777
  value: {
3843
3778
  registeredComponents: o
3844
3779
  },
3845
- children: /* @__PURE__ */ E(
3846
- qn,
3780
+ children: /* @__PURE__ */ P(
3781
+ Hn,
3847
3782
  {
3848
3783
  content: e.content,
3849
3784
  data: e.data,
@@ -3861,14 +3796,14 @@ function we(e) {
3861
3796
  setBuilderContextSignal: l,
3862
3797
  children: [
3863
3798
  e.isSsrAbTest ? /* @__PURE__ */ s(
3864
- de,
3799
+ ce,
3865
3800
  {
3866
3801
  id: "builderio-variant-visibility",
3867
3802
  scriptStr: t
3868
3803
  }
3869
3804
  ) : null,
3870
3805
  /* @__PURE__ */ s(
3871
- Kn,
3806
+ qn,
3872
3807
  {
3873
3808
  isNestedRender: e.isNestedRender,
3874
3809
  contentId: (c = a.content) == null ? void 0 : c.id,
@@ -3877,9 +3812,9 @@ function we(e) {
3877
3812
  }
3878
3813
  ),
3879
3814
  /* @__PURE__ */ s(
3880
- L,
3815
+ D,
3881
3816
  {
3882
- blocks: (p = (b = a.content) == null ? void 0 : b.data) == null ? void 0 : p.blocks,
3817
+ blocks: (p = (g = a.content) == null ? void 0 : g.data) == null ? void 0 : p.blocks,
3883
3818
  context: a,
3884
3819
  registeredComponents: o,
3885
3820
  linkComponent: e.linkComponent
@@ -3891,17 +3826,17 @@ function we(e) {
3891
3826
  }
3892
3827
  );
3893
3828
  }
3894
- function Jn(e) {
3829
+ function _n(e) {
3895
3830
  var a;
3896
3831
  const [t, n] = C(
3897
- () => En({
3832
+ () => Bn({
3898
3833
  canTrack: Q(e.canTrack),
3899
3834
  content: e.content
3900
3835
  })
3901
3836
  );
3902
3837
  function i() {
3903
3838
  var l;
3904
- return Nn(
3839
+ return An(
3905
3840
  Y(e.content).map((c) => ({
3906
3841
  id: c.testVariationId,
3907
3842
  testRatio: c.testRatio
@@ -3917,38 +3852,38 @@ function Jn(e) {
3917
3852
  return t ? {
3918
3853
  ...e.content,
3919
3854
  testVariationId: (l = e.content) == null ? void 0 : l.id
3920
- } : et({
3855
+ } : Ze({
3921
3856
  item: e.content,
3922
3857
  canTrack: Q(e.canTrack)
3923
3858
  });
3924
3859
  }
3925
- return P(() => {
3926
- }, []), P(() => {
3927
- }), /* @__PURE__ */ E(R, { children: [
3860
+ return B(() => {
3861
+ }, []), B(() => {
3862
+ }), /* @__PURE__ */ P(R, { children: [
3928
3863
  !e.isNestedRender && z !== "reactNative" ? /* @__PURE__ */ s(
3929
- de,
3864
+ ce,
3930
3865
  {
3931
3866
  id: "builderio-init-variants-fns",
3932
- scriptStr: An()
3867
+ scriptStr: Vn()
3933
3868
  }
3934
3869
  ) : null,
3935
- t ? /* @__PURE__ */ E(R, { children: [
3870
+ t ? /* @__PURE__ */ P(R, { children: [
3936
3871
  /* @__PURE__ */ s(
3937
- ie,
3872
+ ne,
3938
3873
  {
3939
3874
  id: "builderio-variants",
3940
3875
  styles: o()
3941
3876
  }
3942
3877
  ),
3943
3878
  /* @__PURE__ */ s(
3944
- de,
3879
+ ce,
3945
3880
  {
3946
3881
  id: "builderio-variants-visibility",
3947
3882
  scriptStr: i()
3948
3883
  }
3949
3884
  ),
3950
3885
  (a = Y(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
3951
- we,
3886
+ Ie,
3952
3887
  {
3953
3888
  isNestedRender: e.isNestedRender,
3954
3889
  content: l,
@@ -3974,7 +3909,7 @@ function Jn(e) {
3974
3909
  ))
3975
3910
  ] }) : null,
3976
3911
  /* @__PURE__ */ s(
3977
- we,
3912
+ Ie,
3978
3913
  {
3979
3914
  isNestedRender: e.isNestedRender,
3980
3915
  content: r(),
@@ -3999,13 +3934,13 @@ function Jn(e) {
3999
3934
  )
4000
3935
  ] });
4001
3936
  }
4002
- const Yn = async ({
3937
+ const Jn = async ({
4003
3938
  builderContextValue: e,
4004
3939
  symbol: t
4005
3940
  }) => {
4006
3941
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
4007
3942
  (e != null && e.apiKey))
4008
- return Re({
3943
+ return we({
4009
3944
  model: t.model,
4010
3945
  apiKey: e.apiKey,
4011
3946
  apiVersion: e.apiVersion,
@@ -4018,7 +3953,7 @@ const Yn = async ({
4018
3953
  Z.error("Could not fetch symbol content: ", n);
4019
3954
  });
4020
3955
  };
4021
- function Gn(e) {
3956
+ function Yn(e) {
4022
3957
  var l, c, u, f;
4023
3958
  function t() {
4024
3959
  return "div";
@@ -4040,18 +3975,18 @@ function Gn(e) {
4040
3975
  return (d = e.symbol) == null ? void 0 : d.content;
4041
3976
  });
4042
3977
  function a() {
4043
- o || Yn({
3978
+ o || Jn({
4044
3979
  symbol: e.symbol,
4045
3980
  builderContextValue: e.builderContext
4046
3981
  }).then((d) => {
4047
3982
  d && r(d);
4048
3983
  });
4049
3984
  }
4050
- return P(() => {
4051
- }, []), P(() => {
3985
+ return B(() => {
3986
+ }, []), B(() => {
4052
3987
  a();
4053
3988
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
4054
- Jn,
3989
+ _n,
4055
3990
  {
4056
3991
  isNestedRender: !0,
4057
3992
  apiVersion: e.builderContext.apiVersion,
@@ -4076,15 +4011,15 @@ function Gn(e) {
4076
4011
  ) });
4077
4012
  }
4078
4013
  export {
4079
- L as Blocks,
4080
- fe as BuilderContext,
4081
- it as Button,
4082
- Lt as Columns,
4083
- Jn as Content,
4014
+ D as Blocks,
4015
+ me as BuilderContext,
4016
+ nt as Button,
4017
+ $t as Columns,
4018
+ _n as Content,
4084
4019
  Dt as Fragment,
4085
- Ut as Image,
4086
- Mt as Section,
4087
- Gn as Symbol,
4088
- nn as Text,
4089
- wn as Video
4020
+ jt as Image,
4021
+ Ut as Section,
4022
+ Yn as Symbol,
4023
+ tn as Text,
4024
+ In as Video
4090
4025
  };