@builder.io/sdk-react 1.0.27 → 1.0.29

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 (71) hide show
  1. package/lib/browser/blocks-exports.cjs +29 -29
  2. package/lib/browser/blocks-exports.mjs +1031 -788
  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-60c3f2b2.cjs → server-entry-29038134.cjs} +1 -1
  8. package/lib/browser/{server-entry-805a2c2a.js → server-entry-99f6be25.js} +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-a922b6f1.js +131 -0
  12. package/lib/edge/accordion-cf80a119.cjs +1 -0
  13. package/lib/edge/{blocks-af5c8ecf.cjs → blocks-0b5854b9.cjs} +10 -10
  14. package/lib/edge/{blocks-a1399a78.js → blocks-2cd920f9.js} +198 -198
  15. package/lib/edge/blocks-exports.cjs +1 -1
  16. package/lib/edge/blocks-exports.mjs +2 -2
  17. package/lib/edge/{button-16076ac7.cjs → button-2e6cc4b7.cjs} +1 -1
  18. package/lib/edge/{button-0820a5bc.js → button-e343aea4.js} +2 -2
  19. package/lib/edge/{columns-688cc205.js → columns-5db55b04.js} +5 -5
  20. package/lib/edge/{columns-6b8c03be.cjs → columns-cf320d97.cjs} +2 -2
  21. package/lib/edge/content-variants-d7612a4d.cjs +134 -0
  22. package/lib/edge/{content-variants-efa4f81b.js → content-variants-dd520b38.js} +313 -192
  23. package/lib/edge/form-7248b44c.cjs +1 -0
  24. package/lib/edge/{form-cbe7d822.js → form-a0093dd2.js} +17 -19
  25. package/lib/edge/{get-class-prop-name-47012c9c.cjs → get-class-prop-name-890dc6a6.cjs} +1 -1
  26. package/lib/edge/{get-class-prop-name-4a1bad2b.js → get-class-prop-name-f14607dc.js} +1 -1
  27. package/lib/edge/{img-d3420f5d.cjs → img-960eef70.cjs} +1 -1
  28. package/lib/edge/{img-14849a5b.js → img-ff2f388e.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-534b9f95.js → input-5934355a.js} +1 -1
  34. package/lib/edge/{input-07becc4d.cjs → input-e91374cc.cjs} +1 -1
  35. package/lib/edge/{select-b05ef24f.js → select-298649a8.js} +1 -1
  36. package/lib/edge/{select-e576d7d0.cjs → select-6e9fb36f.cjs} +1 -1
  37. package/lib/edge/{server-entry-ee324b22.cjs → server-entry-7feea5b4.cjs} +1 -1
  38. package/lib/edge/{server-entry-6aaf6054.js → server-entry-d8f1ea14.js} +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-e139f9b4.cjs → slot-3a6d243c.cjs} +1 -1
  42. package/lib/edge/{slot-944437dd.js → slot-5676b4f4.js} +3 -3
  43. package/lib/edge/{symbol-75d1c60d.js → symbol-2df385d5.js} +2 -2
  44. package/lib/edge/{symbol-f7f42446.cjs → symbol-b5a02759.cjs} +1 -1
  45. package/lib/edge/tabs-036057d6.cjs +1 -0
  46. package/lib/edge/{tabs-62e415e1.js → tabs-c2055821.js} +20 -20
  47. package/lib/node/blocks-exports.cjs +29 -29
  48. package/lib/node/blocks-exports.mjs +1034 -791
  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-1bee7133.cjs → node-runtime-4dbd8a34.cjs} +1 -1
  54. package/lib/node/{node-runtime-e167306c.js → node-runtime-502f7164.js} +1 -1
  55. package/lib/node/{server-entry-db936548.cjs → server-entry-4c4c63b3.cjs} +1 -1
  56. package/lib/node/{server-entry-38fb2258.js → server-entry-95efff43.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 +3 -3
  60. package/types/blocks/accordion/accordion.d.ts +4 -0
  61. package/types/blocks/accordion/accordion.types.d.ts +12 -0
  62. package/types/blocks/accordion/component-info.d.ts +2 -0
  63. package/types/blocks/accordion/helpers.d.ts +1 -0
  64. package/types/blocks/accordion/index.d.ts +1 -0
  65. package/types/components/block/animator.d.ts +0 -1
  66. package/types/components/content-variants/content-variants.types.d.ts +1 -1
  67. package/types/constants/sdk-version.d.ts +1 -1
  68. package/types/functions/camel-to-kebab-case.d.ts +1 -1
  69. package/lib/edge/content-variants-4679172a.cjs +0 -134
  70. package/lib/edge/form-91166ed6.cjs +0 -1
  71. package/lib/edge/tabs-4860ef6d.cjs +0 -1
@@ -1,14 +1,14 @@
1
1
  "use client";
2
- var Me = Object.defineProperty;
3
- var Ue = (e, t, n) => t in e ? Me(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
- var ne = (e, t, n) => (Ue(e, typeof t != "symbol" ? t + "" : t, n), n);
5
- import { jsx as s, Fragment as w, jsxs as V } from "react/jsx-runtime";
6
- import { TARGET as q, checkIsDefined as Y, logger as Z, isBrowser as G, fastClone as le, isEditing as F, registerInsertMenu as Oe, setupBrowserForEditing as He, createRegisterComponentMessage as Ke, getDefaultCanTrack as Q, _track as me, isPreviewing as qe, fetchOneEntry as ke, createEditorListener as _e, fetch as ze, serializeComponentInfo as fe, handleABTestingSync as Je } from "./server-entry-38fb2258.js";
7
- import { createContext as Ce, useState as C, useEffect as P, useContext as he, useRef as ee, createElement as Te } from "react";
8
- import { getFunctionArguments as Ye, runInNode as Ge, parseCode as Qe, getBuilderGlobals as Xe, set as we } from "./node-runtime-e167306c.js";
9
- const Ze = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), et = (e) => typeof e == "string" && Ze.has(e.toLowerCase());
10
- function se(e) {
11
- return /* @__PURE__ */ s(w, { children: et(e.TagName) ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(w, { 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 He = Object.defineProperty;
3
+ var Ke = (e, t, n) => t in e ? He(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 E, jsxs as V } from "react/jsx-runtime";
6
+ import { TARGET as q, checkIsDefined as Y, logger as Z, isBrowser as G, fastClone as de, isEditing as $, registerInsertMenu as qe, setupBrowserForEditing as _e, createRegisterComponentMessage as ze, getDefaultCanTrack as Q, _track as he, isPreviewing as Je, fetchOneEntry as Ie, createEditorListener as Ye, fetch as Ge, serializeComponentInfo as ge, handleABTestingSync as Qe } from "./server-entry-95efff43.js";
7
+ import { createContext as we, useState as C, useEffect as B, useContext as be, useRef as ee, createElement as Ee } from "react";
8
+ import { getFunctionArguments as Xe, runInNode as Ze, parseCode as et, getBuilderGlobals as tt, set as Re } from "./node-runtime-502f7164.js";
9
+ const nt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), it = (e) => typeof e == "string" && nt.has(e.toLowerCase());
10
+ function ue(e) {
11
+ return /* @__PURE__ */ s(E, { children: it(e.TagName) ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(E, { 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 }) }) });
12
12
  }
13
13
  const H = () => {
14
14
  switch (q) {
@@ -24,7 +24,7 @@ const H = () => {
24
24
  return "class";
25
25
  }
26
26
  };
27
- function tt(e) {
27
+ function ot(e) {
28
28
  function t() {
29
29
  return {
30
30
  ...e.attributes,
@@ -39,7 +39,7 @@ function tt(e) {
39
39
  };
40
40
  }
41
41
  return /* @__PURE__ */ s(
42
- se,
42
+ ue,
43
43
  {
44
44
  attributes: t(),
45
45
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
@@ -48,7 +48,7 @@ function tt(e) {
48
48
  }
49
49
  );
50
50
  }
51
- const ce = Ce({
51
+ const me = we({
52
52
  content: null,
53
53
  context: {},
54
54
  localState: void 0,
@@ -61,8 +61,8 @@ const ce = Ce({
61
61
  inheritedStyles: {},
62
62
  BlocksWrapper: "div",
63
63
  BlocksWrapperProps: {}
64
- }), Ie = Ce({ registeredComponents: {} });
65
- function nt(e) {
64
+ }), Ve = we({ registeredComponents: {} });
65
+ function at(e) {
66
66
  var t;
67
67
  return {
68
68
  ...(t = e.component) == null ? void 0 : t.options,
@@ -73,28 +73,28 @@ function nt(e) {
73
73
  builderBlock: e
74
74
  };
75
75
  }
76
- const it = ({
76
+ const rt = ({
77
77
  code: e,
78
78
  builder: t,
79
79
  context: n,
80
80
  event: i,
81
81
  localState: o,
82
82
  rootSetState: l,
83
- rootState: r
83
+ rootState: a
84
84
  }) => {
85
- const a = Ye({
85
+ const r = Xe({
86
86
  builder: t,
87
87
  context: n,
88
88
  event: i,
89
- state: Ee({
90
- rootState: r,
89
+ state: Pe({
90
+ rootState: a,
91
91
  localState: o,
92
92
  rootSetState: l
93
93
  })
94
94
  });
95
- return new Function(...a.map(([c]) => c), e)(...a.map(([, c]) => c));
95
+ return new Function(...r.map(([c]) => c), e)(...r.map(([, c]) => c));
96
96
  };
97
- function Ee({
97
+ function Pe({
98
98
  rootState: e,
99
99
  localState: t,
100
100
  rootSetState: n
@@ -104,11 +104,11 @@ function Ee({
104
104
  if (t && o in t)
105
105
  return t[o];
106
106
  const l = i[o];
107
- return typeof l == "object" && l !== null ? Ee({
107
+ return typeof l == "object" && l !== null ? Pe({
108
108
  rootState: l,
109
109
  localState: void 0,
110
- rootSetState: n ? (r) => {
111
- i[o] = r, n(i);
110
+ rootSetState: n ? (a) => {
111
+ i[o] = a, n(i);
112
112
  } : void 0
113
113
  }) : l;
114
114
  },
@@ -119,17 +119,17 @@ function Ee({
119
119
  }
120
120
  });
121
121
  }
122
- function ot() {
122
+ function lt() {
123
123
  var e;
124
124
  return typeof process != "undefined" && Y((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
125
125
  }
126
- const at = () => {
126
+ const st = () => {
127
127
  var i;
128
- if (!ot())
128
+ if (!lt())
129
129
  return !1;
130
130
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
131
131
  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;
132
- }, rt = (e) => G() || at() ? it(e) : Ge(e), L = class L {
132
+ }, ct = (e) => G() || st() ? rt(e) : Ze(e), L = class L {
133
133
  static getCacheKey(t) {
134
134
  return JSON.stringify({
135
135
  ...t,
@@ -147,7 +147,7 @@ const at = () => {
147
147
  });
148
148
  }
149
149
  };
150
- ne(L, "cacheLimit", 20), ne(L, "cache", /* @__PURE__ */ new Map());
150
+ ie(L, "cacheLimit", 20), ie(L, "cache", /* @__PURE__ */ new Map());
151
151
  let U = L;
152
152
  function K({
153
153
  code: e,
@@ -156,42 +156,42 @@ function K({
156
156
  rootState: i,
157
157
  rootSetState: o,
158
158
  event: l,
159
- isExpression: r = !0,
160
- enableCache: a
159
+ isExpression: a = !0,
160
+ enableCache: r
161
161
  }) {
162
162
  if (e === "")
163
163
  return;
164
164
  const c = {
165
- code: Qe(e, {
166
- isExpression: r
165
+ code: et(e, {
166
+ isExpression: a
167
167
  }),
168
- builder: Xe(),
168
+ builder: tt(),
169
169
  context: t,
170
170
  event: l,
171
171
  rootSetState: o,
172
172
  rootState: i,
173
173
  localState: n
174
174
  };
175
- if (a) {
176
- const d = U.getCacheKey(c), m = U.getCachedValue(d);
177
- if (m)
178
- return m.value;
175
+ if (r) {
176
+ const u = U.getCacheKey(c), f = U.getCachedValue(u);
177
+ if (f)
178
+ return f.value;
179
179
  }
180
180
  try {
181
- const d = rt(c);
182
- if (a) {
183
- const m = U.getCacheKey(c);
184
- U.setCachedValue(m, d);
181
+ const u = ct(c);
182
+ if (r) {
183
+ const f = U.getCacheKey(c);
184
+ U.setCachedValue(f, u);
185
185
  }
186
- return d;
187
- } catch (d) {
188
- Z.error("Failed code evaluation: " + d.message, {
186
+ return u;
187
+ } catch (u) {
188
+ Z.error("Failed code evaluation: " + u.message, {
189
189
  code: e
190
190
  });
191
191
  return;
192
192
  }
193
193
  }
194
- const lt = ({
194
+ const dt = ({
195
195
  block: e,
196
196
  context: t,
197
197
  localState: n,
@@ -200,7 +200,7 @@ const lt = ({
200
200
  }) => {
201
201
  if (!e.bindings)
202
202
  return e;
203
- const l = le(e), r = {
203
+ const l = de(e), a = {
204
204
  ...l,
205
205
  properties: {
206
206
  ...l.properties
@@ -209,8 +209,8 @@ const lt = ({
209
209
  ...l.actions
210
210
  }
211
211
  };
212
- for (const a in e.bindings) {
213
- const c = e.bindings[a], d = K({
212
+ for (const r in e.bindings) {
213
+ const c = e.bindings[r], u = K({
214
214
  code: c,
215
215
  localState: n,
216
216
  rootState: i,
@@ -218,9 +218,9 @@ const lt = ({
218
218
  context: t,
219
219
  enableCache: !0
220
220
  });
221
- we(r, a, d);
221
+ Re(a, r, u);
222
222
  }
223
- return r;
223
+ return a;
224
224
  };
225
225
  function X({
226
226
  block: e,
@@ -230,28 +230,29 @@ function X({
230
230
  rootState: o,
231
231
  rootSetState: l
232
232
  }) {
233
- const r = e;
234
- return n ? lt({
235
- block: r,
233
+ const a = e;
234
+ return n ? dt({
235
+ block: a,
236
236
  localState: i,
237
237
  rootState: o,
238
238
  rootSetState: l,
239
239
  context: t
240
- }) : r;
240
+ }) : a;
241
241
  }
242
- function st(e, t, n = {}) {
243
- let i, o, l, r = null, a = 0;
242
+ const te = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
243
+ function ut(e, t, n = {}) {
244
+ let i, o, l, a = null, r = 0;
244
245
  const c = function() {
245
- a = n.leading === !1 ? 0 : Date.now(), r = null, l = e.apply(i, o), r || (i = o = null);
246
+ r = n.leading === !1 ? 0 : Date.now(), a = null, l = e.apply(i, o), a || (i = o = null);
246
247
  };
247
248
  return function() {
248
- const d = Date.now();
249
- !a && n.leading === !1 && (a = d);
250
- const m = t - (d - a);
251
- return i = this, o = arguments, m <= 0 || m > t ? (r && (clearTimeout(r), r = null), a = d, l = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(c, m)), l;
249
+ const u = Date.now();
250
+ !r && n.leading === !1 && (r = u);
251
+ const f = t - (u - r);
252
+ return i = this, o = arguments, f <= 0 || f > t ? (a && (clearTimeout(a), a = null), r = u, l = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(c, f)), l;
252
253
  };
253
254
  }
254
- function O(e, ...t) {
255
+ function M(e, ...t) {
255
256
  const n = Object(e);
256
257
  for (let i = 1; i < arguments.length; i++) {
257
258
  const o = arguments[i];
@@ -261,119 +262,118 @@ function O(e, ...t) {
261
262
  }
262
263
  return n;
263
264
  }
264
- const de = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
265
- function ct(e) {
265
+ function mt(e) {
266
266
  for (const t of e)
267
267
  switch (t.trigger) {
268
268
  case "pageLoad":
269
- Ve(t);
269
+ Ne(t);
270
270
  break;
271
271
  case "scrollInView":
272
- ut(t);
272
+ ht(t);
273
273
  break;
274
274
  }
275
275
  }
276
- function Re(e) {
276
+ function Be(e) {
277
277
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
278
278
  }
279
- function Pe(e, t) {
280
- const n = dt(e), i = getComputedStyle(t), o = e.steps[0].styles, l = e.steps[e.steps.length - 1].styles, r = [o, l];
281
- for (const a of r)
279
+ function Ae(e, t) {
280
+ const n = ft(e), i = getComputedStyle(t), o = e.steps[0].styles, l = e.steps[e.steps.length - 1].styles, a = [o, l];
281
+ for (const r of a)
282
282
  for (const c of n)
283
- c in a || (a[c] = i[c]);
283
+ c in r || (r[c] = i[c]);
284
284
  }
285
- function dt(e) {
285
+ function ft(e) {
286
286
  const t = [];
287
287
  for (const n of e.steps)
288
288
  for (const i in n.styles)
289
289
  t.indexOf(i) === -1 && t.push(i);
290
290
  return t;
291
291
  }
292
- function Ve(e) {
292
+ function Ne(e) {
293
293
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
294
294
  if (!t.length) {
295
- Re(e.elementId || e.id || "");
295
+ Be(e.elementId || e.id || "");
296
296
  return;
297
297
  }
298
298
  Array.from(t).forEach((n) => {
299
- Pe(e, n), n.style.transition = "none", n.style.transitionDelay = "0", O(n.style, e.steps[0].styles), setTimeout(() => {
300
- n.style.transition = `all ${e.duration}s ${de(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), O(n.style, e.steps[1].styles), setTimeout(() => {
299
+ Ae(e, n), n.style.transition = "none", n.style.transitionDelay = "0", M(n.style, e.steps[0].styles), setTimeout(() => {
300
+ n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), M(n.style, e.steps[1].styles), setTimeout(() => {
301
301
  n.style.transition = "", n.style.transitionDelay = "";
302
302
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
303
303
  });
304
304
  });
305
305
  }
306
- function ut(e) {
306
+ function ht(e) {
307
307
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
308
308
  if (!t.length) {
309
- Re(e.elementId || e.id || "");
309
+ Be(e.elementId || e.id || "");
310
310
  return;
311
311
  }
312
312
  Array.from(t).forEach((n) => {
313
- Pe(e, n);
313
+ Ae(e, n);
314
314
  let i = !1, o = !1;
315
315
  function l() {
316
- !i && a(n) ? (i = !0, o = !0, setTimeout(() => {
317
- O(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
316
+ !i && r(n) ? (i = !0, o = !0, setTimeout(() => {
317
+ M(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
318
318
  o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
319
319
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
320
- })) : e.repeat && i && !o && !a(n) && (i = !1, O(n.style, e.steps[0].styles));
320
+ })) : e.repeat && i && !o && !r(n) && (i = !1, M(n.style, e.steps[0].styles));
321
321
  }
322
- const r = st(l, 200, {
322
+ const a = ut(l, 200, {
323
323
  leading: !1
324
324
  });
325
- function a(m) {
326
- const u = m.getBoundingClientRect(), g = window.innerHeight, S = (e.thresholdPercent || 0) / 100 * g;
327
- return u.bottom > S && u.top < g - S;
325
+ function r(f) {
326
+ const d = f.getBoundingClientRect(), m = window.innerHeight, p = (e.thresholdPercent || 0) / 100 * m;
327
+ return d.bottom > p && d.top < m - p;
328
328
  }
329
329
  const c = e.steps[0].styles;
330
- function d() {
331
- O(n.style, c);
330
+ function u() {
331
+ M(n.style, c);
332
332
  }
333
- d(), setTimeout(() => {
334
- n.style.transition = `all ${e.duration}s ${de(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
335
- }), document.addEventListener("scroll", r, {
333
+ u(), setTimeout(() => {
334
+ n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
335
+ }), document.addEventListener("scroll", a, {
336
336
  capture: !0,
337
337
  passive: !0
338
338
  }), l();
339
339
  });
340
340
  }
341
- const mt = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Be = (e) => Object.entries(e).map(([n, i]) => {
341
+ const We = (e) => Object.entries(e).map(([n, i]) => {
342
342
  if (typeof i == "string")
343
- return `${mt(n)}: ${i};`;
344
- }).filter(Y), ft = (e) => Be(e).join(`
343
+ return `${te(n)}: ${i};`;
344
+ }).filter(Y), gt = (e) => We(e).join(`
345
345
  `), z = ({
346
346
  mediaQuery: e,
347
347
  className: t,
348
348
  styles: n
349
349
  }) => {
350
350
  const i = `.${t} {
351
- ${ft(n)}
351
+ ${gt(n)}
352
352
  }`;
353
353
  return e ? `${e} {
354
354
  ${i}
355
355
  }` : i;
356
356
  };
357
- function ht({
357
+ function bt({
358
358
  style: e
359
359
  }) {
360
360
  return e;
361
361
  }
362
- const gt = ({
362
+ const pt = ({
363
363
  block: e,
364
364
  context: t
365
- }) => Ne(ht({
365
+ }) => Fe(bt({
366
366
  style: e.style || {},
367
367
  context: t,
368
368
  block: e
369
369
  }));
370
- function Ne(e) {
370
+ function Fe(e) {
371
371
  switch (q) {
372
372
  case "svelte":
373
373
  case "vue":
374
374
  case "solid":
375
375
  case "angular":
376
- return Be(e).join(" ");
376
+ return We(e).join(" ");
377
377
  case "qwik":
378
378
  case "reactNative":
379
379
  case "react":
@@ -381,7 +381,7 @@ function Ne(e) {
381
381
  return e;
382
382
  }
383
383
  }
384
- const bt = ({
384
+ const yt = ({
385
385
  block: e,
386
386
  context: t,
387
387
  registeredComponents: n
@@ -403,7 +403,7 @@ const bt = ({
403
403
  console.warn(`
404
404
  Could not find a registered component named "${i}".
405
405
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
406
- }, pt = ({
406
+ }, xt = ({
407
407
  block: e,
408
408
  context: t
409
409
  }) => {
@@ -423,21 +423,21 @@ const bt = ({
423
423
  });
424
424
  if (!Array.isArray(o))
425
425
  return;
426
- const l = n.collection.split(".").pop(), r = n.itemName || (l ? l + "Item" : "item");
427
- return o.map((c, d) => ({
426
+ const l = n.collection.split(".").pop(), a = n.itemName || (l ? l + "Item" : "item");
427
+ return o.map((c, u) => ({
428
428
  context: {
429
429
  ...t,
430
430
  localState: {
431
431
  ...t.localState,
432
- $index: d,
432
+ $index: u,
433
433
  $item: c,
434
- [r]: c,
435
- [`$${r}Index`]: d
434
+ [a]: c,
435
+ [`$${a}Index`]: u
436
436
  }
437
437
  },
438
438
  block: i
439
439
  }));
440
- }, yt = (e) => e && (e.isRSC || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e.name)), xt = (e) => e && (e.isRSC || ["Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e.name)), We = {
440
+ }, St = (e) => e && (e.isRSC || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)), vt = (e) => e && (e.isRSC || ["Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)), $e = {
441
441
  small: {
442
442
  min: 320,
443
443
  default: 321,
@@ -453,11 +453,11 @@ const bt = ({
453
453
  default: 991,
454
454
  max: 1200
455
455
  }
456
- }, ge = (e, t = We) => `@media (max-width: ${t[e].max}px)`, Ae = ({
456
+ }, pe = (e, t = $e) => `@media (max-width: ${t[e].max}px)`, De = ({
457
457
  small: e,
458
458
  medium: t
459
459
  }) => {
460
- const n = le(We);
460
+ const n = de($e);
461
461
  if (!e || !t)
462
462
  return n;
463
463
  const i = Math.floor(e / 2);
@@ -480,7 +480,7 @@ const bt = ({
480
480
  default: l + 1
481
481
  }, n;
482
482
  };
483
- function te(e) {
483
+ function ne(e) {
484
484
  return /* @__PURE__ */ s(
485
485
  "style",
486
486
  {
@@ -489,7 +489,7 @@ function te(e) {
489
489
  }
490
490
  );
491
491
  }
492
- function St(e) {
492
+ function kt(e) {
493
493
  function t() {
494
494
  const i = X({
495
495
  block: e.block,
@@ -502,7 +502,7 @@ function St(e) {
502
502
  return Y(i.hide) ? !i.hide : Y(i.show) ? i.show : !0;
503
503
  }
504
504
  function n() {
505
- var E, R, N;
505
+ var x, R, P;
506
506
  const i = X({
507
507
  block: e.block,
508
508
  localState: e.context.localState,
@@ -510,56 +510,56 @@ function St(e) {
510
510
  rootSetState: e.context.rootSetState,
511
511
  context: e.context.context,
512
512
  shouldEvaluateBindings: !0
513
- }), o = i.responsiveStyles, l = e.context.content, r = Ae(
514
- ((E = l == null ? void 0 : l.meta) == null ? void 0 : E.breakpoints) || {}
515
- ), a = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, d = o == null ? void 0 : o.small, m = i.id;
516
- if (!m)
513
+ }), o = i.responsiveStyles, l = e.context.content, a = De(
514
+ ((x = l == null ? void 0 : l.meta) == null ? void 0 : x.breakpoints) || {}
515
+ ), r = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, u = o == null ? void 0 : o.small, f = i.id;
516
+ if (!f)
517
517
  return "";
518
- const u = a ? z({
519
- className: m,
520
- styles: a
521
- }) : "", g = c ? z({
522
- className: m,
518
+ const d = r ? z({
519
+ className: f,
520
+ styles: r
521
+ }) : "", m = c ? z({
522
+ className: f,
523
523
  styles: c,
524
- mediaQuery: ge(
524
+ mediaQuery: pe(
525
525
  "medium",
526
- r
526
+ a
527
527
  )
528
- }) : "", p = d ? z({
529
- className: m,
530
- styles: d,
531
- mediaQuery: ge(
528
+ }) : "", g = u ? z({
529
+ className: f,
530
+ styles: u,
531
+ mediaQuery: pe(
532
532
  "small",
533
- r
533
+ a
534
534
  )
535
- }) : "", S = i.animations && i.animations.find((W) => W.trigger === "hover");
535
+ }) : "", p = i.animations && i.animations.find((A) => A.trigger === "hover");
536
536
  let I = "";
537
- if (S) {
538
- const W = ((N = (R = S.steps) == null ? void 0 : R[1]) == null ? void 0 : N.styles) || {};
537
+ if (p) {
538
+ const A = ((P = (R = p.steps) == null ? void 0 : R[1]) == null ? void 0 : P.styles) || {};
539
539
  I = z({
540
- className: `${m}:hover`,
540
+ className: `${f}:hover`,
541
541
  styles: {
542
- ...W,
543
- transition: `all ${S.duration}s ${de(
544
- S.easing
542
+ ...A,
543
+ transition: `all ${p.duration}s ${te(
544
+ p.easing
545
545
  )}`,
546
- transitionDelay: S.delay ? `${S.delay}s` : "0s"
546
+ transitionDelay: p.delay ? `${p.delay}s` : "0s"
547
547
  }
548
548
  }) || "";
549
549
  }
550
550
  return [
551
- u,
551
+ d,
552
+ m,
552
553
  g,
553
- p,
554
554
  I
555
555
  ].join(" ");
556
556
  }
557
- return /* @__PURE__ */ s(w, { children: n() && t() ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(te, { id: "builderio-block", styles: n() }) }) : null });
557
+ return /* @__PURE__ */ s(E, { children: n() && t() ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(ne, { id: "builderio-block", styles: n() }) }) : null });
558
558
  }
559
- function vt(e) {
559
+ function Ct(e) {
560
560
  return e.charAt(0).toUpperCase() + e.slice(1);
561
561
  }
562
- const kt = (e) => `on${vt(e)}`, Ct = (e, t) => (n) => K({
562
+ const Tt = (e) => `on${Ct(e)}`, It = (e, t) => (n) => K({
563
563
  code: e,
564
564
  context: t.context,
565
565
  localState: t.localState,
@@ -569,66 +569,66 @@ const kt = (e) => `on${vt(e)}`, Ct = (e, t) => (n) => K({
569
569
  isExpression: !1,
570
570
  enableCache: !0
571
571
  });
572
- function $e(e) {
572
+ function Le(e) {
573
573
  var i;
574
574
  const t = {}, n = (i = e.block.actions) != null ? i : {};
575
575
  for (const o in n) {
576
576
  if (!n.hasOwnProperty(o))
577
577
  continue;
578
578
  const l = n[o];
579
- let r = kt(o);
579
+ let a = Tt(o);
580
580
  if (e.stripPrefix)
581
581
  switch (q) {
582
582
  case "vue":
583
- r = r.replace("v-on:", "");
583
+ a = a.replace("v-on:", "");
584
584
  break;
585
585
  case "svelte":
586
- r = r.replace("on:", "");
586
+ a = a.replace("on:", "");
587
587
  break;
588
588
  }
589
- t[r] = Ct(l, e);
589
+ t[a] = It(l, e);
590
590
  }
591
591
  return t;
592
592
  }
593
- function Tt({
593
+ function wt({
594
594
  properties: e
595
595
  }) {
596
596
  return e;
597
597
  }
598
- const wt = (e) => ({
598
+ const Et = (e) => ({
599
599
  href: e.href
600
600
  });
601
- function ue({
601
+ function fe({
602
602
  block: e,
603
603
  context: t
604
604
  }) {
605
605
  var i;
606
606
  const n = {
607
- ...wt(e),
607
+ ...Et(e),
608
608
  ...e.properties,
609
609
  "builder-id": e.id,
610
- style: gt({
610
+ style: pt({
611
611
  block: e,
612
612
  context: t
613
613
  }),
614
614
  [H()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
615
615
  };
616
- return Tt({
616
+ return wt({
617
617
  properties: n,
618
618
  context: t,
619
619
  block: e
620
620
  });
621
621
  }
622
- function It(e) {
622
+ function Rt(e) {
623
623
  return /* @__PURE__ */ s(
624
- se,
624
+ ue,
625
625
  {
626
626
  TagName: e.Wrapper,
627
- attributes: ue({
627
+ attributes: fe({
628
628
  block: e.block,
629
629
  context: e.context
630
630
  }),
631
- actionAttributes: $e({
631
+ actionAttributes: Le({
632
632
  block: e.block,
633
633
  rootState: e.context.rootState,
634
634
  rootSetState: e.context.rootSetState,
@@ -640,14 +640,14 @@ function It(e) {
640
640
  }
641
641
  );
642
642
  }
643
- function Et(e) {
643
+ function Vt(e) {
644
644
  function t() {
645
645
  return e.includeBlockProps ? {
646
- ...ue({
646
+ ...fe({
647
647
  block: e.block,
648
648
  context: e.context
649
649
  }),
650
- ...$e({
650
+ ...Le({
651
651
  block: e.block,
652
652
  rootState: e.context.rootState,
653
653
  rootSetState: e.context.rootSetState,
@@ -658,25 +658,25 @@ function Et(e) {
658
658
  }
659
659
  return /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
660
660
  }
661
- const Rt = ({
661
+ const Pt = ({
662
662
  componentOptions: e,
663
663
  builderBlock: t,
664
664
  context: n,
665
665
  componentRef: i,
666
666
  includeBlockProps: o,
667
667
  isInteractive: l,
668
- contextValue: r
668
+ contextValue: a
669
669
  }) => {
670
- const a = {
670
+ const r = {
671
671
  ...e,
672
672
  /**
673
673
  * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
674
674
  * component itself directly. Otherwise, they are provided to the wrapper element.
675
675
  */
676
676
  ...o ? {
677
- attributes: ue({
677
+ attributes: fe({
678
678
  block: t,
679
- context: r
679
+ context: a
680
680
  })
681
681
  } : {}
682
682
  };
@@ -686,17 +686,17 @@ const Rt = ({
686
686
  context: n,
687
687
  wrapperProps: e,
688
688
  includeBlockProps: o
689
- } : a;
689
+ } : r;
690
690
  };
691
- function be(e) {
691
+ function ye(e) {
692
692
  var i;
693
693
  const [t, n] = C(
694
- () => e.isInteractive ? Et : e.componentRef
694
+ () => e.isInteractive ? Vt : e.componentRef
695
695
  );
696
- return /* @__PURE__ */ s(w, { children: e.componentRef ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
696
+ return /* @__PURE__ */ s(E, { children: e.componentRef ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
697
697
  t,
698
698
  {
699
- ...Rt({
699
+ ...Pt({
700
700
  componentOptions: e.componentOptions,
701
701
  builderBlock: e.builderBlock,
702
702
  context: e.context,
@@ -719,9 +719,9 @@ function be(e) {
719
719
  }
720
720
  ) }) : null });
721
721
  }
722
- function Pt(e) {
722
+ function Bt(e) {
723
723
  const [t, n] = C(() => e.repeatContext);
724
- return /* @__PURE__ */ s(ce.Provider, { value: t, children: /* @__PURE__ */ s(
724
+ return /* @__PURE__ */ s(me.Provider, { value: t, children: /* @__PURE__ */ s(
725
725
  _,
726
726
  {
727
727
  block: e.block,
@@ -732,23 +732,23 @@ function Pt(e) {
732
732
  ) });
733
733
  }
734
734
  function _(e) {
735
- var c, d, m;
735
+ var c, u, f;
736
736
  function t() {
737
- return bt({
737
+ return yt({
738
738
  block: e.block,
739
739
  context: e.context,
740
740
  registeredComponents: e.registeredComponents
741
741
  });
742
742
  }
743
743
  function n() {
744
- return pt({
744
+ return xt({
745
745
  block: e.block,
746
746
  context: e.context
747
747
  });
748
748
  }
749
749
  function i() {
750
- var u;
751
- return (u = e.block.repeat) != null && u.collection ? e.block : X({
750
+ var d;
751
+ return (d = e.block.repeat) != null && d.collection ? e.block : X({
752
752
  block: e.block,
753
753
  localState: e.context.localState,
754
754
  rootState: e.context.rootState,
@@ -758,32 +758,32 @@ function _(e) {
758
758
  });
759
759
  }
760
760
  function o() {
761
- var g;
762
- return e.block.tagName === "a" || ((g = i().properties) == null ? void 0 : g.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
761
+ var m;
762
+ return e.block.tagName === "a" || ((m = i().properties) == null ? void 0 : m.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
763
763
  }
764
764
  function l() {
765
- var p, S;
766
- if ((p = e.block.repeat) != null && p.collection)
767
- return !!((S = n == null ? void 0 : n()) != null && S.length);
768
- const u = "hide" in i() ? i().hide : !1;
769
- return ("show" in i() ? i().show : !0) && !u;
770
- }
771
- function r() {
772
765
  var g, p;
773
- return !((g = t == null ? void 0 : t()) != null && g.component) && !n() ? (p = i().children) != null ? p : [] : [];
766
+ if ((g = e.block.repeat) != null && g.collection)
767
+ return !!((p = n == null ? void 0 : n()) != null && p.length);
768
+ const d = "hide" in i() ? i().hide : !1;
769
+ return ("show" in i() ? i().show : !0) && !d;
774
770
  }
775
771
  function a() {
776
- var u, g, p, S;
772
+ var m, g;
773
+ return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (g = i().children) != null ? g : [] : [];
774
+ }
775
+ function r() {
776
+ var d, m, g, p;
777
777
  return {
778
- blockChildren: (u = i().children) != null ? u : [],
779
- componentRef: (g = t == null ? void 0 : t()) == null ? void 0 : g.component,
778
+ blockChildren: (d = i().children) != null ? d : [],
779
+ componentRef: (m = t == null ? void 0 : t()) == null ? void 0 : m.component,
780
780
  componentOptions: {
781
- ...nt(i()),
781
+ ...at(i()),
782
782
  builderContext: e.context,
783
- ...yt(t()) ? {
783
+ ...St(t()) ? {
784
784
  builderLinkComponent: e.linkComponent
785
785
  } : {},
786
- ...xt(t()) ? {
786
+ ...vt(t()) ? {
787
787
  builderComponents: e.registeredComponents
788
788
  } : {}
789
789
  },
@@ -791,44 +791,44 @@ function _(e) {
791
791
  linkComponent: e.linkComponent,
792
792
  registeredComponents: e.registeredComponents,
793
793
  builderBlock: i(),
794
- includeBlockProps: ((p = t == null ? void 0 : t()) == null ? void 0 : p.noWrap) === !0,
795
- isInteractive: !((S = t == null ? void 0 : t()) != null && S.isRSC)
794
+ includeBlockProps: ((g = t == null ? void 0 : t()) == null ? void 0 : g.noWrap) === !0,
795
+ isInteractive: !((p = t == null ? void 0 : t()) != null && p.isRSC)
796
796
  };
797
797
  }
798
- return P(() => {
799
- const u = i().id, g = i().animations;
800
- g && u && ct(
801
- g.map((p) => ({
802
- ...p,
803
- elementId: u
798
+ return B(() => {
799
+ const d = i().id, m = i().animations;
800
+ m && d && mt(
801
+ m.map((g) => ({
802
+ ...g,
803
+ elementId: d
804
804
  }))
805
805
  );
806
- }, []), /* @__PURE__ */ s(w, { children: l() ? /* @__PURE__ */ V(w, { children: [
807
- /* @__PURE__ */ s(St, { block: e.block, context: e.context }),
808
- (c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
809
- be,
806
+ }, []), /* @__PURE__ */ s(E, { children: l() ? /* @__PURE__ */ V(E, { children: [
807
+ /* @__PURE__ */ s(kt, { block: e.block, context: e.context }),
808
+ (c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
809
+ ye,
810
810
  {
811
- componentRef: a().componentRef,
812
- componentOptions: a().componentOptions,
813
- blockChildren: a().blockChildren,
814
- context: a().context,
815
- registeredComponents: a().registeredComponents,
816
- linkComponent: a().linkComponent,
817
- builderBlock: a().builderBlock,
818
- includeBlockProps: a().includeBlockProps,
819
- isInteractive: a().isInteractive
811
+ componentRef: r().componentRef,
812
+ componentOptions: r().componentOptions,
813
+ blockChildren: r().blockChildren,
814
+ context: r().context,
815
+ registeredComponents: r().registeredComponents,
816
+ linkComponent: r().linkComponent,
817
+ builderBlock: r().builderBlock,
818
+ includeBlockProps: r().includeBlockProps,
819
+ isInteractive: r().isInteractive
820
820
  }
821
- ) }) : /* @__PURE__ */ s(w, { children: n() ? /* @__PURE__ */ s(w, { children: (m = n()) == null ? void 0 : m.map((u, g) => /* @__PURE__ */ s(
822
- Pt,
821
+ ) }) : /* @__PURE__ */ s(E, { children: n() ? /* @__PURE__ */ s(E, { children: (f = n()) == null ? void 0 : f.map((d, m) => /* @__PURE__ */ s(
822
+ Bt,
823
823
  {
824
- repeatContext: u.context,
825
- block: u.block,
824
+ repeatContext: d.context,
825
+ block: d.block,
826
826
  registeredComponents: e.registeredComponents,
827
827
  linkComponent: e.linkComponent
828
828
  },
829
- g
829
+ m
830
830
  )) }) : /* @__PURE__ */ V(
831
- It,
831
+ Rt,
832
832
  {
833
833
  Wrapper: o(),
834
834
  block: i(),
@@ -836,42 +836,42 @@ function _(e) {
836
836
  linkComponent: e.linkComponent,
837
837
  children: [
838
838
  /* @__PURE__ */ s(
839
- be,
839
+ ye,
840
840
  {
841
- componentRef: a().componentRef,
842
- componentOptions: a().componentOptions,
843
- blockChildren: a().blockChildren,
844
- context: a().context,
845
- registeredComponents: a().registeredComponents,
846
- linkComponent: a().linkComponent,
847
- builderBlock: a().builderBlock,
848
- includeBlockProps: a().includeBlockProps,
849
- isInteractive: a().isInteractive
841
+ componentRef: r().componentRef,
842
+ componentOptions: r().componentOptions,
843
+ blockChildren: r().blockChildren,
844
+ context: r().context,
845
+ registeredComponents: r().registeredComponents,
846
+ linkComponent: r().linkComponent,
847
+ builderBlock: r().builderBlock,
848
+ includeBlockProps: r().includeBlockProps,
849
+ isInteractive: r().isInteractive
850
850
  }
851
851
  ),
852
- (d = r()) == null ? void 0 : d.map((u) => /* @__PURE__ */ s(
852
+ (u = a()) == null ? void 0 : u.map((d) => /* @__PURE__ */ s(
853
853
  _,
854
854
  {
855
- block: u,
855
+ block: d,
856
856
  registeredComponents: e.registeredComponents,
857
857
  linkComponent: e.linkComponent,
858
858
  context: e.context
859
859
  },
860
- u.id
860
+ d.id
861
861
  ))
862
862
  ]
863
863
  }
864
864
  ) })
865
865
  ] }) : null });
866
866
  }
867
- function Vt(e) {
867
+ function At(e) {
868
868
  function t() {
869
869
  var o;
870
870
  return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
871
871
  }
872
872
  function n() {
873
873
  var o, l;
874
- F() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
874
+ $() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
875
875
  {
876
876
  type: "builder.clickEmptyBlocks",
877
877
  data: {
@@ -884,7 +884,7 @@ function Vt(e) {
884
884
  }
885
885
  function i() {
886
886
  var o, l;
887
- F() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
887
+ $() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
888
888
  {
889
889
  type: "builder.hoverEmptyBlocks",
890
890
  data: {
@@ -895,7 +895,7 @@ function Vt(e) {
895
895
  "*"
896
896
  ));
897
897
  }
898
- return /* @__PURE__ */ V(w, { children: [
898
+ return /* @__PURE__ */ V(E, { children: [
899
899
  /* @__PURE__ */ s(
900
900
  e.BlocksWrapper,
901
901
  {
@@ -917,11 +917,11 @@ function Vt(e) {
917
917
  }` })
918
918
  ] });
919
919
  }
920
- function j(e) {
920
+ function D(e) {
921
921
  var i, o, l;
922
- const t = he(ce), n = he(Ie);
922
+ const t = be(me), n = be(Ve);
923
923
  return /* @__PURE__ */ s(
924
- Vt,
924
+ At,
925
925
  {
926
926
  blocks: e.blocks,
927
927
  parent: e.parent,
@@ -929,99 +929,99 @@ function j(e) {
929
929
  styleProp: e.styleProp,
930
930
  BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
931
931
  BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
932
- children: e.blocks ? /* @__PURE__ */ s(w, { children: (l = e.blocks) == null ? void 0 : l.map((r) => /* @__PURE__ */ s(
932
+ children: e.blocks ? /* @__PURE__ */ s(E, { children: (l = e.blocks) == null ? void 0 : l.map((a) => /* @__PURE__ */ s(
933
933
  _,
934
934
  {
935
- block: r,
935
+ block: a,
936
936
  linkComponent: e.linkComponent,
937
937
  context: e.context || t,
938
938
  registeredComponents: e.registeredComponents || n.registeredComponents
939
939
  },
940
- r.id
940
+ a.id
941
941
  )) }) : null
942
942
  }
943
943
  );
944
944
  }
945
- const Bt = (e) => `builder-columns ${e}-breakpoints`;
946
- function Nt(e) {
947
- var W, D;
945
+ const Nt = (e) => `builder-columns ${e}-breakpoints`;
946
+ function Wt(e) {
947
+ var A, O;
948
948
  const [t, n] = C(
949
949
  () => typeof e.space == "number" ? e.space || 0 : 20
950
- ), [i, o] = C(() => e.columns || []), [l, r] = C(
950
+ ), [i, o] = C(() => e.columns || []), [l, a] = C(
951
951
  () => e.stackColumnsAt || "tablet"
952
952
  );
953
- function a(x) {
954
- return x.link ? e.builderLinkComponent || "a" : "div";
953
+ function r(v) {
954
+ return v.link ? e.builderLinkComponent || "a" : "div";
955
955
  }
956
- function c(x) {
957
- var T;
958
- return ((T = i[x]) == null ? void 0 : T.width) || 100 / i.length;
956
+ function c(v) {
957
+ var w;
958
+ return ((w = i[v]) == null ? void 0 : w.width) || 100 / i.length;
959
959
  }
960
- function d(x) {
961
- const T = t * (i.length - 1) / i.length;
962
- return `calc(${c(x)}% - ${T}px)`;
960
+ function u(v) {
961
+ const w = t * (i.length - 1) / i.length;
962
+ return `calc(${c(v)}% - ${w}px)`;
963
963
  }
964
- function m({
965
- stackedStyle: x,
966
- desktopStyle: T
964
+ function f({
965
+ stackedStyle: v,
966
+ desktopStyle: w
967
967
  }) {
968
- return l === "tablet" ? x : T;
968
+ return l === "tablet" ? v : w;
969
969
  }
970
- function u({
971
- stackedStyle: x,
972
- desktopStyle: T
970
+ function d({
971
+ stackedStyle: v,
972
+ desktopStyle: w
973
973
  }) {
974
- return l === "never" ? T : x;
974
+ return l === "never" ? w : v;
975
975
  }
976
- const [g, p] = C(
976
+ const [m, g] = C(
977
977
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
978
978
  );
979
- function S() {
979
+ function p() {
980
980
  return {
981
- "--flex-dir": g,
982
- "--flex-dir-tablet": m({
983
- stackedStyle: g,
981
+ "--flex-dir": m,
982
+ "--flex-dir-tablet": f({
983
+ stackedStyle: m,
984
984
  desktopStyle: "row"
985
985
  })
986
986
  };
987
987
  }
988
- function I(x) {
989
- const T = x === 0 ? 0 : t, A = d(x), h = `${T}px`, f = "100%", b = 0;
988
+ function I(v) {
989
+ const w = v === 0 ? 0 : t, W = u(v), b = `${w}px`, h = "100%", y = 0;
990
990
  return {
991
991
  ...{
992
992
  display: "flex",
993
993
  flexDirection: "column",
994
994
  alignItems: "stretch"
995
995
  },
996
- width: A,
997
- ["marginLeft"]: h,
998
- "--column-width-mobile": u({
999
- stackedStyle: f,
1000
- desktopStyle: A
996
+ width: W,
997
+ ["marginLeft"]: b,
998
+ "--column-width-mobile": d({
999
+ stackedStyle: h,
1000
+ desktopStyle: W
1001
1001
  }),
1002
- "--column-margin-left-mobile": u({
1003
- stackedStyle: b,
1004
- desktopStyle: h
1002
+ "--column-margin-left-mobile": d({
1003
+ stackedStyle: y,
1004
+ desktopStyle: b
1005
1005
  }),
1006
- "--column-width-tablet": m({
1007
- stackedStyle: f,
1008
- desktopStyle: A
1006
+ "--column-width-tablet": f({
1007
+ stackedStyle: h,
1008
+ desktopStyle: W
1009
1009
  }),
1010
- "--column-margin-left-tablet": m({
1011
- stackedStyle: b,
1012
- desktopStyle: h
1010
+ "--column-margin-left-tablet": f({
1011
+ stackedStyle: y,
1012
+ desktopStyle: b
1013
1013
  })
1014
1014
  };
1015
1015
  }
1016
- function E(x) {
1017
- var A, h;
1018
- return Ae(
1019
- ((h = (A = e.builderContext.content) == null ? void 0 : A.meta) == null ? void 0 : h.breakpoints) || {}
1020
- )[x].max;
1016
+ function x(v) {
1017
+ var W, b;
1018
+ return De(
1019
+ ((b = (W = e.builderContext.content) == null ? void 0 : W.meta) == null ? void 0 : b.breakpoints) || {}
1020
+ )[v].max;
1021
1021
  }
1022
1022
  function R() {
1023
1023
  return `
1024
- @media (max-width: ${E("medium")}px) {
1024
+ @media (max-width: ${x("medium")}px) {
1025
1025
  .${e.builderBlock.id}-breakpoints {
1026
1026
  flex-direction: var(--flex-dir-tablet);
1027
1027
  align-items: stretch;
@@ -1033,7 +1033,7 @@ function Nt(e) {
1033
1033
  }
1034
1034
  }
1035
1035
 
1036
- @media (max-width: ${E("small")}px) {
1036
+ @media (max-width: ${x("small")}px) {
1037
1037
  .${e.builderBlock.id}-breakpoints {
1038
1038
  flex-direction: var(--flex-dir);
1039
1039
  align-items: stretch;
@@ -1046,33 +1046,33 @@ function Nt(e) {
1046
1046
  },
1047
1047
  `;
1048
1048
  }
1049
- function N(x, T) {
1049
+ function P(v, w) {
1050
1050
  return {
1051
- ...x.link ? {
1052
- href: x.link
1051
+ ...v.link ? {
1052
+ href: v.link
1053
1053
  } : {},
1054
1054
  [H()]: "builder-column",
1055
- style: Ne(I(T))
1055
+ style: Fe(I(w))
1056
1056
  };
1057
1057
  }
1058
- return /* @__PURE__ */ V(w, { children: [
1058
+ return /* @__PURE__ */ V(E, { children: [
1059
1059
  /* @__PURE__ */ V(
1060
1060
  "div",
1061
1061
  {
1062
- className: Bt((W = e.builderBlock) == null ? void 0 : W.id) + " div-00cb97e2",
1063
- style: S(),
1062
+ className: Nt((A = e.builderBlock) == null ? void 0 : A.id) + " div-bade6b34",
1063
+ style: p(),
1064
1064
  children: [
1065
- /* @__PURE__ */ s(te, { id: "builderio-columns", styles: R() }),
1066
- (D = e.columns) == null ? void 0 : D.map((x, T) => /* @__PURE__ */ s(
1067
- se,
1065
+ /* @__PURE__ */ s(ne, { id: "builderio-columns", styles: R() }),
1066
+ (O = e.columns) == null ? void 0 : O.map((v, w) => /* @__PURE__ */ s(
1067
+ ue,
1068
1068
  {
1069
- TagName: a(x),
1069
+ TagName: r(v),
1070
1070
  actionAttributes: {},
1071
- attributes: N(x, T),
1071
+ attributes: P(v, w),
1072
1072
  children: /* @__PURE__ */ s(
1073
- j,
1073
+ D,
1074
1074
  {
1075
- path: `component.options.columns.${T}.blocks`,
1075
+ path: `component.options.columns.${w}.blocks`,
1076
1076
  parent: e.builderBlock.id,
1077
1077
  styleProp: {
1078
1078
  flexGrow: "1"
@@ -1080,86 +1080,86 @@ function Nt(e) {
1080
1080
  context: e.builderContext,
1081
1081
  registeredComponents: e.builderComponents,
1082
1082
  linkComponent: e.builderLinkComponent,
1083
- blocks: x.blocks
1083
+ blocks: v.blocks
1084
1084
  }
1085
1085
  )
1086
1086
  },
1087
- T
1087
+ w
1088
1088
  ))
1089
1089
  ]
1090
1090
  }
1091
1091
  ),
1092
- /* @__PURE__ */ s("style", { children: `.div-00cb97e2 {
1092
+ /* @__PURE__ */ s("style", { children: `.div-bade6b34 {
1093
1093
  display: flex;
1094
1094
  line-height: normal;
1095
1095
  }` })
1096
1096
  ] });
1097
1097
  }
1098
- function Wt(e) {
1098
+ function Ft(e) {
1099
1099
  return /* @__PURE__ */ s("span", { children: e.children });
1100
1100
  }
1101
- function pe(e) {
1101
+ function xe(e) {
1102
1102
  return e.replace(/http(s)?:/, "");
1103
1103
  }
1104
- function At(e = "", t, n) {
1104
+ function $t(e = "", t, n) {
1105
1105
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
1106
1106
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
1107
1107
  }
1108
- function $t(e, t) {
1108
+ function Dt(e, t) {
1109
1109
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1110
1110
  return e;
1111
1111
  if (t === "master")
1112
- return pe(e);
1112
+ return xe(e);
1113
1113
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1114
1114
  if (n) {
1115
1115
  const i = e.split(n[0]), o = n[3], l = t.match("x") ? t : `${t}x`;
1116
- return pe(`${i[0]}_${l}${o}`);
1116
+ return xe(`${i[0]}_${l}${o}`);
1117
1117
  }
1118
1118
  return null;
1119
1119
  }
1120
- function ie(e) {
1120
+ function oe(e) {
1121
1121
  if (!e)
1122
1122
  return e;
1123
1123
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1124
1124
  if (e.match(/builder\.io/)) {
1125
1125
  let n = e;
1126
1126
  const i = Number(e.split("?width=")[1]);
1127
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${At(e, "width", o)} ${o}w`).concat([n]).join(", ");
1127
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${$t(e, "width", o)} ${o}w`).concat([n]).join(", ");
1128
1128
  }
1129
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [$t(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1129
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Dt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1130
1130
  }
1131
- function Ft(e) {
1132
- var o, l, r, a, c, d;
1131
+ function Lt(e) {
1132
+ var o, l, a, r, c, u;
1133
1133
  function t() {
1134
- var g;
1135
- const u = e.image || e.src;
1136
- if (!u || // We can auto add srcset for cdn.builder.io and shopify
1134
+ var m;
1135
+ const d = e.image || e.src;
1136
+ if (!d || // We can auto add srcset for cdn.builder.io and shopify
1137
1137
  // images, otherwise you can supply this prop manually
1138
- !(u.match(/builder\.io/) || u.match(/cdn\.shopify\.com/)))
1138
+ !(d.match(/builder\.io/) || d.match(/cdn\.shopify\.com/)))
1139
1139
  return e.srcset;
1140
- if (e.srcset && ((g = e.image) != null && g.includes("builder.io/api/v1/image"))) {
1140
+ if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
1141
1141
  if (!e.srcset.includes(e.image.split("?")[0]))
1142
- return console.debug("Removed given srcset"), ie(u);
1142
+ return console.debug("Removed given srcset"), oe(d);
1143
1143
  } else if (e.image && !e.srcset)
1144
- return ie(u);
1145
- return ie(u);
1144
+ return oe(d);
1145
+ return oe(d);
1146
1146
  }
1147
1147
  function n() {
1148
- var m;
1149
- return (m = t == null ? void 0 : t()) != null && m.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
1148
+ var f;
1149
+ return (f = t == null ? void 0 : t()) != null && f.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
1150
1150
  }
1151
1151
  function i() {
1152
- const m = {
1152
+ const f = {
1153
1153
  position: "absolute",
1154
1154
  height: "100%",
1155
1155
  width: "100%",
1156
1156
  left: "0px",
1157
1157
  top: "0px"
1158
1158
  };
1159
- return e.aspectRatio ? m : void 0;
1159
+ return e.aspectRatio ? f : void 0;
1160
1160
  }
1161
- return /* @__PURE__ */ V(w, { children: [
1162
- /* @__PURE__ */ V(w, { children: [
1161
+ return /* @__PURE__ */ V(E, { children: [
1162
+ /* @__PURE__ */ V(E, { children: [
1163
1163
  /* @__PURE__ */ V("picture", { children: [
1164
1164
  n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1165
1165
  /* @__PURE__ */ s(
@@ -1189,8 +1189,8 @@ function Ft(e) {
1189
1189
  }
1190
1190
  }
1191
1191
  ) : null,
1192
- (a = (r = e.builderBlock) == null ? void 0 : r.children) != null && a.length && e.fitContent ? /* @__PURE__ */ s(w, { children: e.children }) : null,
1193
- !e.fitContent && ((d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length) ? /* @__PURE__ */ s("div", { className: "div-3ac67dd4-2", children: e.children }) : null
1192
+ (r = (a = e.builderBlock) == null ? void 0 : a.children) != null && r.length && e.fitContent ? /* @__PURE__ */ s(E, { children: e.children }) : null,
1193
+ !e.fitContent && ((u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-3ac67dd4-2", children: e.children }) : null
1194
1194
  ] }),
1195
1195
  /* @__PURE__ */ s("style", { children: `.img-3ac67dd4 {
1196
1196
  opacity: 1;
@@ -1211,7 +1211,7 @@ function Ft(e) {
1211
1211
  }` })
1212
1212
  ] });
1213
1213
  }
1214
- function Lt(e) {
1214
+ function Ot(e) {
1215
1215
  return /* @__PURE__ */ s(
1216
1216
  "section",
1217
1217
  {
@@ -1232,7 +1232,249 @@ function Lt(e) {
1232
1232
  }
1233
1233
  );
1234
1234
  }
1235
- const Dt = {
1235
+ const ae = {
1236
+ "@type": "@builder.io/sdk:Element",
1237
+ layerName: "Accordion item title",
1238
+ responsiveStyles: {
1239
+ large: {
1240
+ marginTop: "10px",
1241
+ position: "relative",
1242
+ display: "flex",
1243
+ alignItems: "stretch",
1244
+ flexDirection: "column",
1245
+ paddingBottom: "10px"
1246
+ }
1247
+ },
1248
+ children: [{
1249
+ "@type": "@builder.io/sdk:Element",
1250
+ responsiveStyles: {
1251
+ large: {
1252
+ textAlign: "left",
1253
+ display: "flex",
1254
+ flexDirection: "column"
1255
+ }
1256
+ },
1257
+ component: {
1258
+ name: "Text",
1259
+ options: {
1260
+ text: "I am an accordion title. Click me!"
1261
+ }
1262
+ }
1263
+ }]
1264
+ }, re = {
1265
+ "@type": "@builder.io/sdk:Element",
1266
+ layerName: "Accordion item detail",
1267
+ responsiveStyles: {
1268
+ large: {
1269
+ position: "relative",
1270
+ display: "flex",
1271
+ alignItems: "stretch",
1272
+ flexDirection: "column",
1273
+ marginTop: "10px",
1274
+ paddingBottom: "10px"
1275
+ }
1276
+ },
1277
+ children: [{
1278
+ "@type": "@builder.io/sdk:Element",
1279
+ responsiveStyles: {
1280
+ large: {
1281
+ paddingTop: "50px",
1282
+ textAlign: "left",
1283
+ display: "flex",
1284
+ flexDirection: "column",
1285
+ paddingBottom: "50px"
1286
+ }
1287
+ },
1288
+ component: {
1289
+ name: "Text",
1290
+ options: {
1291
+ text: "I am an accordion detail, hello!"
1292
+ }
1293
+ }
1294
+ }]
1295
+ }, jt = {
1296
+ name: "Builder:Accordion",
1297
+ canHaveChildren: !0,
1298
+ image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
1299
+ defaultStyles: {
1300
+ display: "flex",
1301
+ flexDirection: "column",
1302
+ alignItems: "stretch"
1303
+ },
1304
+ inputs: [{
1305
+ name: "items",
1306
+ type: "list",
1307
+ broadcast: !0,
1308
+ subFields: [{
1309
+ name: "title",
1310
+ type: "uiBlocks",
1311
+ hideFromUI: !0,
1312
+ defaultValue: [ae]
1313
+ }, {
1314
+ name: "detail",
1315
+ type: "uiBlocks",
1316
+ hideFromUI: !0,
1317
+ defaultValue: [re]
1318
+ }],
1319
+ defaultValue: [{
1320
+ title: [ae],
1321
+ detail: [re]
1322
+ }, {
1323
+ title: [ae],
1324
+ detail: [re]
1325
+ }],
1326
+ showIf: (e) => !e.get("useChildrenForItems")
1327
+ }, {
1328
+ name: "oneAtATime",
1329
+ helperText: "Only allow opening one at a time (collapse all others when new item openned)",
1330
+ type: "boolean",
1331
+ defaultValue: !1
1332
+ }, {
1333
+ name: "grid",
1334
+ helperText: "Display as a grid",
1335
+ type: "boolean",
1336
+ defaultValue: !1
1337
+ }, {
1338
+ name: "gridRowWidth",
1339
+ helperText: "Display as a grid",
1340
+ type: "string",
1341
+ showIf: (e) => e.get("grid"),
1342
+ defaultValue: "25%"
1343
+ }, {
1344
+ name: "useChildrenForItems",
1345
+ type: "boolean",
1346
+ helperText: "Use child elements for each slide, instead of the array. Useful for dynamically repeating items",
1347
+ advanced: !0,
1348
+ defaultValue: !1,
1349
+ onChange: (e) => {
1350
+ e.get("useChildrenForItems") === !0 && e.set("items", []);
1351
+ }
1352
+ }]
1353
+ }, Se = (e) => e.toString();
1354
+ function Ut(e) {
1355
+ var d;
1356
+ const [t, n] = C(() => []);
1357
+ function i() {
1358
+ return !!(e.grid || e.oneAtATime);
1359
+ }
1360
+ function o() {
1361
+ return {
1362
+ display: "flex",
1363
+ alignItems: "stretch",
1364
+ flexDirection: "column",
1365
+ ...e.grid && {
1366
+ flexDirection: "row",
1367
+ alignItems: "flex-start",
1368
+ flexWrap: "wrap"
1369
+ }
1370
+ };
1371
+ }
1372
+ function l() {
1373
+ const g = {
1374
+ ...{
1375
+ display: "flex",
1376
+ flexDirection: "column"
1377
+ },
1378
+ alignItems: "stretch",
1379
+ cursor: "pointer"
1380
+ };
1381
+ return Object.fromEntries(
1382
+ Object.entries(g).filter(([p, I]) => I !== void 0)
1383
+ );
1384
+ }
1385
+ function a(m) {
1386
+ return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
1387
+ }
1388
+ function r(m) {
1389
+ return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
1390
+ }
1391
+ function c() {
1392
+ let m = null;
1393
+ if (e.grid && t.length && document) {
1394
+ const p = t[0];
1395
+ let x = document.querySelector(
1396
+ `.builder-accordion-title[data-index="${p}"]`
1397
+ );
1398
+ if (m = p, x) {
1399
+ let R = x.getBoundingClientRect();
1400
+ for (; x = x && x.nextElementSibling; )
1401
+ if (x) {
1402
+ if (x.classList.contains("builder-accordion-detail"))
1403
+ continue;
1404
+ const P = x.getBoundingClientRect();
1405
+ if (P.left > R.left) {
1406
+ const A = parseInt(
1407
+ x.getAttribute("data-index") || "",
1408
+ 10
1409
+ );
1410
+ isNaN(A) || (R = P, m = A);
1411
+ } else
1412
+ break;
1413
+ }
1414
+ }
1415
+ }
1416
+ return typeof m == "number" && (m = m + 1), m;
1417
+ }
1418
+ function u() {
1419
+ const m = {
1420
+ order: typeof c() == "number" ? c() : void 0,
1421
+ ...e.grid && {
1422
+ width: "100%"
1423
+ }
1424
+ };
1425
+ return Object.fromEntries(
1426
+ Object.entries(m).filter(([g, p]) => p !== void 0)
1427
+ );
1428
+ }
1429
+ function f(m) {
1430
+ t.includes(m) ? n(i() ? [] : t.filter((g) => g !== m)) : n(i() ? [m] : t.concat(m));
1431
+ }
1432
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m, g) => /* @__PURE__ */ V(E, { children: [
1433
+ /* @__PURE__ */ s(
1434
+ "div",
1435
+ {
1436
+ className: a(g),
1437
+ style: {
1438
+ ...l(),
1439
+ width: e.grid ? e.gridRowWidth : void 0,
1440
+ order: c() !== null ? Se(g) : Se(g + 1)
1441
+ },
1442
+ "data-index": g,
1443
+ onClick: (p) => f(g),
1444
+ children: /* @__PURE__ */ s(
1445
+ D,
1446
+ {
1447
+ blocks: m.title,
1448
+ path: `items.${g}.title`,
1449
+ parent: e.builderBlock.id,
1450
+ context: e.builderContext,
1451
+ registeredComponents: e.builderComponents,
1452
+ linkComponent: e.builderLinkComponent
1453
+ }
1454
+ )
1455
+ }
1456
+ ),
1457
+ t.includes(g) ? /* @__PURE__ */ s(
1458
+ "div",
1459
+ {
1460
+ className: r(g),
1461
+ style: u(),
1462
+ children: /* @__PURE__ */ s(
1463
+ D,
1464
+ {
1465
+ blocks: m.detail,
1466
+ path: `items.${g}.detail`,
1467
+ parent: e.builderBlock.id,
1468
+ context: e.builderContext,
1469
+ registeredComponents: e.builderComponents,
1470
+ linkComponent: e.builderLinkComponent
1471
+ }
1472
+ )
1473
+ }
1474
+ ) : null
1475
+ ] })) });
1476
+ }
1477
+ const Mt = {
1236
1478
  name: "Core:Button",
1237
1479
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1238
1480
  defaultStyles: {
@@ -1265,7 +1507,7 @@ const Dt = {
1265
1507
  }],
1266
1508
  static: !0,
1267
1509
  noWrap: !0
1268
- }, jt = {
1510
+ }, Ht = {
1269
1511
  // TODO: ways to statically preprocess JSON for references, functions, etc
1270
1512
  name: "Columns",
1271
1513
  isRSC: !0,
@@ -1444,7 +1686,7 @@ const Dt = {
1444
1686
  });
1445
1687
  }
1446
1688
  const n = e.get("columns");
1447
- Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((l) => !l.get("width")) || n.reduce((a, c) => a + c.get("width"), 0) !== 100) && t();
1689
+ Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((l) => !l.get("width")) || n.reduce((r, c) => r + c.get("width"), 0) !== 100) && t();
1448
1690
  }
1449
1691
  }, {
1450
1692
  name: "space",
@@ -1466,13 +1708,13 @@ const Dt = {
1466
1708
  helperText: "When stacking columns for mobile devices, reverse the ordering",
1467
1709
  advanced: !0
1468
1710
  }]
1469
- }, Mt = {
1711
+ }, Kt = {
1470
1712
  name: "Fragment",
1471
1713
  static: !0,
1472
1714
  hidden: !0,
1473
1715
  canHaveChildren: !0,
1474
1716
  noWrap: !0
1475
- }, Ut = {
1717
+ }, qt = {
1476
1718
  name: "Image",
1477
1719
  static: !0,
1478
1720
  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",
@@ -1492,29 +1734,29 @@ const Dt = {
1492
1734
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1493
1735
  onChange: (e) => {
1494
1736
  e.delete("srcset"), e.delete("noWebp");
1495
- function n(r, a = 6e4) {
1496
- return new Promise((c, d) => {
1497
- const m = document.createElement("img");
1498
- let u = !1;
1499
- m.onload = () => {
1500
- u = !0, c(m);
1501
- }, m.addEventListener("error", (g) => {
1502
- console.warn("Image load failed", g.error), d(g.error);
1503
- }), m.src = r, setTimeout(() => {
1504
- u || d(new Error("Image load timed out"));
1505
- }, a);
1737
+ function n(a, r = 6e4) {
1738
+ return new Promise((c, u) => {
1739
+ const f = document.createElement("img");
1740
+ let d = !1;
1741
+ f.onload = () => {
1742
+ d = !0, c(f);
1743
+ }, f.addEventListener("error", (m) => {
1744
+ console.warn("Image load failed", m.error), u(m.error);
1745
+ }), f.src = a, setTimeout(() => {
1746
+ d || u(new Error("Image load timed out"));
1747
+ }, r);
1506
1748
  });
1507
1749
  }
1508
- function i(r) {
1509
- return Math.round(r * 1e3) / 1e3;
1750
+ function i(a) {
1751
+ return Math.round(a * 1e3) / 1e3;
1510
1752
  }
1511
1753
  const o = e.get("image"), l = e.get("aspectRatio");
1512
- if (fetch(o).then((r) => r.blob()).then((r) => {
1513
- r.type.includes("svg") && e.set("noWebp", !0);
1754
+ if (fetch(o).then((a) => a.blob()).then((a) => {
1755
+ a.type.includes("svg") && e.set("noWebp", !0);
1514
1756
  }), o && (!l || l === 0.7041))
1515
- return n(o).then((r) => {
1516
- const a = e.get("aspectRatio");
1517
- e.get("image") === o && (!a || a === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
1757
+ return n(o).then((a) => {
1758
+ const r = e.get("aspectRatio");
1759
+ e.get("image") === o && (!r || r === 0.7041) && a.width && a.height && (e.set("aspectRatio", i(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
1518
1760
  });
1519
1761
  }
1520
1762
  }, {
@@ -1572,7 +1814,7 @@ const Dt = {
1572
1814
  advanced: !0,
1573
1815
  defaultValue: 0.7041
1574
1816
  }]
1575
- }, Ot = {
1817
+ }, _t = {
1576
1818
  name: "Core:Section",
1577
1819
  static: !0,
1578
1820
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1611,7 +1853,7 @@ const Dt = {
1611
1853
  }
1612
1854
  }
1613
1855
  }]
1614
- }, Ht = {
1856
+ }, zt = {
1615
1857
  name: "Slot",
1616
1858
  isRSC: !0,
1617
1859
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1625,7 +1867,7 @@ const Dt = {
1625
1867
  defaultValue: "children"
1626
1868
  }]
1627
1869
  };
1628
- function Kt(e) {
1870
+ function Jt(e) {
1629
1871
  var t, n, i;
1630
1872
  return /* @__PURE__ */ s(
1631
1873
  "div",
@@ -1637,7 +1879,7 @@ function Kt(e) {
1637
1879
  "builder-slot": e.name
1638
1880
  },
1639
1881
  children: /* @__PURE__ */ s(
1640
- j,
1882
+ D,
1641
1883
  {
1642
1884
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
1643
1885
  path: `symbol.data.${e.name}`,
@@ -1648,7 +1890,7 @@ function Kt(e) {
1648
1890
  }
1649
1891
  );
1650
1892
  }
1651
- const qt = {
1893
+ const Yt = {
1652
1894
  name: "Symbol",
1653
1895
  noWrap: !0,
1654
1896
  static: !0,
@@ -1681,7 +1923,7 @@ const qt = {
1681
1923
  hideFromUI: !0,
1682
1924
  type: "boolean"
1683
1925
  }]
1684
- }, oe = {
1926
+ }, le = {
1685
1927
  "@type": "@builder.io/sdk:Element",
1686
1928
  responsiveStyles: {
1687
1929
  large: {
@@ -1703,7 +1945,7 @@ const qt = {
1703
1945
  text: "New tab"
1704
1946
  }
1705
1947
  }
1706
- }, ae = {
1948
+ }, se = {
1707
1949
  "@type": "@builder.io/sdk:Element",
1708
1950
  responsiveStyles: {
1709
1951
  large: {
@@ -1719,7 +1961,7 @@ const qt = {
1719
1961
  text: "New tab content "
1720
1962
  }
1721
1963
  }
1722
- }, _t = {
1964
+ }, Gt = {
1723
1965
  name: "Builder: Tabs",
1724
1966
  inputs: [{
1725
1967
  name: "tabs",
@@ -1729,16 +1971,16 @@ const qt = {
1729
1971
  name: "label",
1730
1972
  type: "uiBlocks",
1731
1973
  hideFromUI: !0,
1732
- defaultValue: [oe]
1974
+ defaultValue: [le]
1733
1975
  }, {
1734
1976
  name: "content",
1735
1977
  type: "uiBlocks",
1736
1978
  hideFromUI: !0,
1737
- defaultValue: [ae]
1979
+ defaultValue: [se]
1738
1980
  }],
1739
1981
  defaultValue: [{
1740
1982
  label: [{
1741
- ...oe,
1983
+ ...le,
1742
1984
  component: {
1743
1985
  name: "Text",
1744
1986
  options: {
@@ -1747,7 +1989,7 @@ const qt = {
1747
1989
  }
1748
1990
  }],
1749
1991
  content: [{
1750
- ...ae,
1992
+ ...se,
1751
1993
  component: {
1752
1994
  name: "Text",
1753
1995
  options: {
@@ -1757,7 +1999,7 @@ const qt = {
1757
1999
  }]
1758
2000
  }, {
1759
2001
  label: [{
1760
- ...oe,
2002
+ ...le,
1761
2003
  component: {
1762
2004
  name: "Text",
1763
2005
  options: {
@@ -1766,7 +2008,7 @@ const qt = {
1766
2008
  }
1767
2009
  }],
1768
2010
  content: [{
1769
- ...ae,
2011
+ ...se,
1770
2012
  component: {
1771
2013
  name: "Text",
1772
2014
  options: {
@@ -1817,16 +2059,16 @@ const qt = {
1817
2059
  }]
1818
2060
  }]
1819
2061
  };
1820
- function zt(e) {
2062
+ function Qt(e) {
1821
2063
  var l;
1822
2064
  const [t, n] = C(
1823
2065
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
1824
2066
  );
1825
- function i(r) {
1826
- return e.tabs && e.tabs[r].content;
2067
+ function i(a) {
2068
+ return e.tabs && e.tabs[a].content;
1827
2069
  }
1828
- function o(r) {
1829
- return t === r ? e.activeTabStyle : {};
2070
+ function o(a) {
2071
+ a === t && e.collapsible ? n(-1) : n(a);
1830
2072
  }
1831
2073
  return /* @__PURE__ */ V("div", { children: [
1832
2074
  /* @__PURE__ */ s(
@@ -1839,32 +2081,32 @@ function zt(e) {
1839
2081
  justifyContent: e.tabHeaderLayout || "flex-start",
1840
2082
  overflow: "auto"
1841
2083
  },
1842
- children: (l = e.tabs) == null ? void 0 : l.map((r, a) => /* @__PURE__ */ s(
2084
+ children: (l = e.tabs) == null ? void 0 : l.map((a, r) => /* @__PURE__ */ s(
1843
2085
  "span",
1844
2086
  {
1845
- className: `builder-tab-wrap ${t === a ? "builder-tab-active" : ""}`,
1846
- style: o(a),
1847
- onClick: (c) => {
1848
- a === t && e.collapsible ? n(-1) : n(a);
2087
+ className: `builder-tab-wrap ${t === r ? "builder-tab-active" : ""}`,
2088
+ style: {
2089
+ ...t === r ? e.activeTabStyle : {}
1849
2090
  },
2091
+ onClick: (c) => o(r),
1850
2092
  children: /* @__PURE__ */ s(
1851
- j,
2093
+ D,
1852
2094
  {
1853
2095
  parent: e.builderBlock.id,
1854
- path: `component.options.tabs.${a}.label`,
1855
- blocks: r.label,
2096
+ path: `component.options.tabs.${r}.label`,
2097
+ blocks: a.label,
1856
2098
  context: e.builderContext,
1857
2099
  registeredComponents: e.builderComponents,
1858
2100
  linkComponent: e.builderLinkComponent
1859
2101
  }
1860
2102
  )
1861
2103
  },
1862
- a
2104
+ r
1863
2105
  ))
1864
2106
  }
1865
2107
  ),
1866
2108
  i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
1867
- j,
2109
+ D,
1868
2110
  {
1869
2111
  parent: e.builderBlock.id,
1870
2112
  path: `component.options.tabs.${t}.content`,
@@ -1876,7 +2118,7 @@ function zt(e) {
1876
2118
  ) }) : null
1877
2119
  ] });
1878
2120
  }
1879
- const Jt = {
2121
+ const Xt = {
1880
2122
  name: "Text",
1881
2123
  static: !0,
1882
2124
  isRSC: !0,
@@ -1895,7 +2137,7 @@ const Jt = {
1895
2137
  textAlign: "center"
1896
2138
  }
1897
2139
  };
1898
- function Yt(e) {
2140
+ function Zt(e) {
1899
2141
  var t;
1900
2142
  return /* @__PURE__ */ s(
1901
2143
  "div",
@@ -1908,7 +2150,7 @@ function Yt(e) {
1908
2150
  }
1909
2151
  );
1910
2152
  }
1911
- const Gt = {
2153
+ const en = {
1912
2154
  name: "Custom Code",
1913
2155
  static: !0,
1914
2156
  requiredPermissions: ["editCode"],
@@ -1931,32 +2173,32 @@ const Gt = {
1931
2173
  advanced: !0
1932
2174
  }]
1933
2175
  };
1934
- function Qt(e) {
2176
+ function tn(e) {
1935
2177
  const t = ee(null), [n, i] = C(() => []), [o, l] = C(() => []);
1936
- return P(() => {
1937
- var a;
1938
- if (!((a = t.current) != null && a.getElementsByTagName) || typeof window == "undefined")
2178
+ return B(() => {
2179
+ var r;
2180
+ if (!((r = t.current) != null && r.getElementsByTagName) || typeof window == "undefined")
1939
2181
  return;
1940
- const r = t.current.getElementsByTagName("script");
1941
- for (let c = 0; c < r.length; c++) {
1942
- const d = r[c];
1943
- if (d.src) {
1944
- if (n.includes(d.src))
2182
+ const a = t.current.getElementsByTagName("script");
2183
+ for (let c = 0; c < a.length; c++) {
2184
+ const u = a[c];
2185
+ if (u.src) {
2186
+ if (n.includes(u.src))
1945
2187
  continue;
1946
- n.push(d.src);
1947
- const m = document.createElement("script");
1948
- m.async = !0, m.src = d.src, document.head.appendChild(m);
1949
- } else if (!d.type || [
2188
+ n.push(u.src);
2189
+ const f = document.createElement("script");
2190
+ f.async = !0, f.src = u.src, document.head.appendChild(f);
2191
+ } else if (!u.type || [
1950
2192
  "text/javascript",
1951
2193
  "application/javascript",
1952
2194
  "application/ecmascript"
1953
- ].includes(d.type)) {
1954
- if (o.includes(d.innerText))
2195
+ ].includes(u.type)) {
2196
+ if (o.includes(u.innerText))
1955
2197
  continue;
1956
2198
  try {
1957
- o.push(d.innerText), new Function(d.innerText)();
1958
- } catch (m) {
1959
- console.warn("`CustomCode`: Error running script:", m);
2199
+ o.push(u.innerText), new Function(u.innerText)();
2200
+ } catch (f) {
2201
+ console.warn("`CustomCode`: Error running script:", f);
1960
2202
  }
1961
2203
  }
1962
2204
  }
@@ -1969,7 +2211,7 @@ function Qt(e) {
1969
2211
  }
1970
2212
  );
1971
2213
  }
1972
- const Xt = {
2214
+ const nn = {
1973
2215
  name: "Embed",
1974
2216
  static: !0,
1975
2217
  inputs: [{
@@ -1994,30 +2236,30 @@ const Xt = {
1994
2236
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1995
2237
  hideFromUI: !0
1996
2238
  }]
1997
- }, Zt = ["text/javascript", "application/javascript", "application/ecmascript"], en = (e) => Zt.includes(e.type);
1998
- function tn(e) {
1999
- const t = ee(null), [n, i] = C(() => []), [o, l] = C(() => []), [r, a] = C(() => !1);
2239
+ }, on = ["text/javascript", "application/javascript", "application/ecmascript"], an = (e) => on.includes(e.type);
2240
+ function rn(e) {
2241
+ const t = ee(null), [n, i] = C(() => []), [o, l] = C(() => []), [a, r] = C(() => !1);
2000
2242
  function c() {
2001
2243
  if (!t.current || !t.current.getElementsByTagName)
2002
2244
  return;
2003
- const d = t.current.getElementsByTagName("script");
2004
- for (let m = 0; m < d.length; m++) {
2005
- const u = d[m];
2006
- if (u.src && !n.includes(u.src)) {
2007
- n.push(u.src);
2008
- const g = document.createElement("script");
2009
- g.async = !0, g.src = u.src, document.head.appendChild(g);
2010
- } else if (en(u) && !o.includes(u.innerText))
2245
+ const u = t.current.getElementsByTagName("script");
2246
+ for (let f = 0; f < u.length; f++) {
2247
+ const d = u[f];
2248
+ if (d.src && !n.includes(d.src)) {
2249
+ n.push(d.src);
2250
+ const m = document.createElement("script");
2251
+ m.async = !0, m.src = d.src, document.head.appendChild(m);
2252
+ } else if (an(d) && !o.includes(d.innerText))
2011
2253
  try {
2012
- o.push(u.innerText), new Function(u.innerText)();
2013
- } catch (g) {
2014
- console.warn("`Embed`: Error running script:", g);
2254
+ o.push(d.innerText), new Function(d.innerText)();
2255
+ } catch (m) {
2256
+ console.warn("`Embed`: Error running script:", m);
2015
2257
  }
2016
2258
  }
2017
2259
  }
2018
- return P(() => {
2019
- t.current && !r && (a(!0), c());
2020
- }, [t.current, r]), /* @__PURE__ */ s(
2260
+ return B(() => {
2261
+ t.current && !a && (r(!0), c());
2262
+ }, [t.current, a]), /* @__PURE__ */ s(
2021
2263
  "div",
2022
2264
  {
2023
2265
  className: "builder-embed",
@@ -2026,7 +2268,7 @@ function tn(e) {
2026
2268
  }
2027
2269
  );
2028
2270
  }
2029
- const nn = {
2271
+ const ln = {
2030
2272
  name: "Form:Form",
2031
2273
  // editableTags: ['builder-form-error']
2032
2274
  defaults: {
@@ -2257,125 +2499,123 @@ const nn = {
2257
2499
  }
2258
2500
  }
2259
2501
  }]
2260
- }, on = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], an = () => {
2502
+ }, sn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], cn = () => {
2261
2503
  const e = process.env.NODE_ENV || "production";
2262
- return on.includes(e) ? e : "production";
2263
- }, rn = (e, t, n) => {
2504
+ return sn.includes(e) ? e : "production";
2505
+ }, dn = (e, t, n) => {
2264
2506
  const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, l) => o != null ? o[l] : o, e);
2265
2507
  return i === void 0 || i === e ? n : i;
2266
2508
  };
2267
- function ln(e) {
2268
- var u, g;
2269
- const t = ee(null), [n, i] = C(() => "unsubmitted"), [o, l] = C(() => null), [r, a] = C(() => "");
2270
- function c(p) {
2271
- var I, E;
2272
- const S = {
2509
+ function un(e) {
2510
+ var d, m;
2511
+ const t = ee(null), [n, i] = C(() => "unsubmitted"), [o, l] = C(() => null), [a, r] = C(() => "");
2512
+ function c(g) {
2513
+ var I, x;
2514
+ const p = {
2273
2515
  ...e.builderContext.rootState,
2274
- ...p
2516
+ ...g
2275
2517
  };
2276
- e.builderContext.rootSetState ? (E = (I = e.builderContext).rootSetState) == null || E.call(I, S) : e.builderContext.rootState = S;
2518
+ e.builderContext.rootSetState ? (x = (I = e.builderContext).rootSetState) == null || x.call(I, p) : e.builderContext.rootState = p;
2277
2519
  }
2278
- function d() {
2279
- return F() && e.previewState || n;
2520
+ function u() {
2521
+ return $() && e.previewState || n;
2280
2522
  }
2281
- function m(p) {
2523
+ function f(g) {
2282
2524
  var I;
2283
- const S = e.sendWithJs || e.sendSubmissionsTo === "email";
2525
+ const p = e.sendWithJs || e.sendSubmissionsTo === "email";
2284
2526
  if (e.sendSubmissionsTo === "zapier")
2285
- p.preventDefault();
2286
- else if (S) {
2527
+ g.preventDefault();
2528
+ else if (p) {
2287
2529
  if (!(e.action || e.sendSubmissionsTo === "email")) {
2288
- p.preventDefault();
2530
+ g.preventDefault();
2289
2531
  return;
2290
2532
  }
2291
- p.preventDefault();
2292
- const E = p.currentTarget, R = e.customHeaders || {};
2293
- let N;
2294
- const W = new FormData(E), D = Array.from(
2295
- p.currentTarget.querySelectorAll("input,select,textarea")
2296
- ).filter((h) => !!h.name).map((h) => {
2297
- let f;
2298
- const b = h.name;
2299
- if (h instanceof HTMLInputElement)
2300
- if (h.type === "radio") {
2301
- if (h.checked)
2302
- return f = h.name, {
2303
- key: b,
2304
- value: f
2533
+ g.preventDefault();
2534
+ const x = g.currentTarget || g.target, R = e.customHeaders || {};
2535
+ let P;
2536
+ const A = new FormData(x), O = Array.from(x.querySelectorAll("input,select,textarea")).filter((b) => !!b.name).map((b) => {
2537
+ let h;
2538
+ const y = b.name;
2539
+ if (b instanceof HTMLInputElement)
2540
+ if (b.type === "radio") {
2541
+ if (b.checked)
2542
+ return h = b.name, {
2543
+ key: y,
2544
+ value: h
2305
2545
  };
2306
- } else if (h.type === "checkbox")
2307
- f = h.checked;
2308
- else if (h.type === "number" || h.type === "range") {
2309
- const y = h.valueAsNumber;
2310
- isNaN(y) || (f = y);
2546
+ } else if (b.type === "checkbox")
2547
+ h = b.checked;
2548
+ else if (b.type === "number" || b.type === "range") {
2549
+ const S = b.valueAsNumber;
2550
+ isNaN(S) || (h = S);
2311
2551
  } else
2312
- h.type === "file" ? f = h.files : f = h.value;
2552
+ b.type === "file" ? h = b.files : h = b.value;
2313
2553
  else
2314
- f = h.value;
2554
+ h = b.value;
2315
2555
  return {
2316
- key: b,
2317
- value: f
2556
+ key: y,
2557
+ value: h
2318
2558
  };
2319
2559
  });
2320
- let x = e.contentType;
2321
- if (e.sendSubmissionsTo === "email" && (x = "multipart/form-data"), Array.from(D).forEach(({ value: h }) => {
2322
- (h instanceof File || Array.isArray(h) && h[0] instanceof File || h instanceof FileList) && (x = "multipart/form-data");
2323
- }), x !== "application/json")
2324
- N = W;
2560
+ let v = e.contentType;
2561
+ if (e.sendSubmissionsTo === "email" && (v = "multipart/form-data"), Array.from(O).forEach(({ value: b }) => {
2562
+ (b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (v = "multipart/form-data");
2563
+ }), v !== "application/json")
2564
+ P = A;
2325
2565
  else {
2326
- const h = {};
2327
- Array.from(D).forEach(({ value: f, key: b }) => {
2328
- we(h, b, f);
2329
- }), N = JSON.stringify(h);
2566
+ const b = {};
2567
+ Array.from(O).forEach(({ value: h, key: y }) => {
2568
+ Re(b, y, h);
2569
+ }), P = JSON.stringify(b);
2330
2570
  }
2331
- x && x !== "multipart/form-data" && (S && ((I = e.action) != null && I.includes("zapier.com")) || (R["content-type"] = x));
2332
- const T = new CustomEvent("presubmit", { detail: { body: N } });
2333
- if (t.current && (t.current.dispatchEvent(T), T.defaultPrevented))
2571
+ v && v !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (R["content-type"] = v));
2572
+ const w = new CustomEvent("presubmit", { detail: { body: P } });
2573
+ if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
2334
2574
  return;
2335
2575
  i("sending");
2336
- const A = `${an() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2576
+ const W = `${cn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2337
2577
  e.sendSubmissionsToEmail || ""
2338
2578
  )}&name=${encodeURIComponent(e.name || "")}`;
2339
2579
  fetch(
2340
- e.sendSubmissionsTo === "email" ? A : e.action,
2341
- { body: N, headers: R, method: e.method || "post" }
2580
+ e.sendSubmissionsTo === "email" ? W : e.action,
2581
+ { body: P, headers: R, method: e.method || "post" }
2342
2582
  ).then(
2343
- async (h) => {
2344
- let f;
2345
- const b = h.headers.get("content-type");
2346
- if (b && b.indexOf("application/json") !== -1 ? f = await h.json() : f = await h.text(), !h.ok && e.errorMessagePath) {
2347
- let y = rn(f, e.errorMessagePath);
2348
- y && (typeof y != "string" && (y = JSON.stringify(y)), a(y), c({ formErrorMessage: y }));
2583
+ async (b) => {
2584
+ let h;
2585
+ const y = b.headers.get("content-type");
2586
+ if (y && y.indexOf("application/json") !== -1 ? h = await b.json() : h = await b.text(), !b.ok && e.errorMessagePath) {
2587
+ let S = dn(h, e.errorMessagePath);
2588
+ S && (typeof S != "string" && (S = JSON.stringify(S)), r(S), c({ formErrorMessage: S }));
2349
2589
  }
2350
- if (l(f), i(h.ok ? "success" : "error"), h.ok) {
2351
- const y = new CustomEvent("submit:success", {
2352
- detail: { res: h, body: f }
2590
+ if (l(h), i(b.ok ? "success" : "error"), b.ok) {
2591
+ const S = new CustomEvent("submit:success", {
2592
+ detail: { res: b, body: h }
2353
2593
  });
2354
2594
  if (t.current) {
2355
- if (t.current.dispatchEvent(y), y.defaultPrevented)
2595
+ if (t.current.dispatchEvent(S), S.defaultPrevented)
2356
2596
  return;
2357
2597
  e.resetFormOnSubmit !== !1 && t.current.reset();
2358
2598
  }
2359
2599
  if (e.successUrl)
2360
2600
  if (t.current) {
2361
- const v = new CustomEvent("route", {
2601
+ const k = new CustomEvent("route", {
2362
2602
  detail: { url: e.successUrl }
2363
2603
  });
2364
- t.current.dispatchEvent(v), v.defaultPrevented || (location.href = e.successUrl);
2604
+ t.current.dispatchEvent(k), k.defaultPrevented || (location.href = e.successUrl);
2365
2605
  } else
2366
2606
  location.href = e.successUrl;
2367
2607
  }
2368
2608
  },
2369
- (h) => {
2370
- const f = new CustomEvent("submit:error", {
2371
- detail: { error: h }
2609
+ (b) => {
2610
+ const h = new CustomEvent("submit:error", {
2611
+ detail: { error: b }
2372
2612
  });
2373
- t.current && (t.current.dispatchEvent(f), f.defaultPrevented) || (l(h), i("error"));
2613
+ t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (l(b), i("error"));
2374
2614
  }
2375
2615
  );
2376
2616
  }
2377
2617
  }
2378
- return /* @__PURE__ */ V(w, { children: [
2618
+ return /* @__PURE__ */ V(E, { children: [
2379
2619
  " ",
2380
2620
  /* @__PURE__ */ V(
2381
2621
  "form",
@@ -2385,38 +2625,38 @@ function ln(e) {
2385
2625
  action: !e.sendWithJs && e.action,
2386
2626
  method: e.method,
2387
2627
  name: e.name,
2388
- onSubmit: (p) => m(p),
2628
+ onSubmit: (g) => f(g),
2389
2629
  ...e.attributes,
2390
2630
  children: [
2391
- e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(w, { children: (g = (u = e.builderBlock) == null ? void 0 : u.children) == null ? void 0 : g.map((p, S) => /* @__PURE__ */ s(
2631
+ e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(E, { children: (m = (d = e.builderBlock) == null ? void 0 : d.children) == null ? void 0 : m.map((g, p) => /* @__PURE__ */ s(
2392
2632
  _,
2393
2633
  {
2394
- block: p,
2634
+ block: g,
2395
2635
  context: e.builderContext,
2396
2636
  registeredComponents: e.builderComponents,
2397
2637
  linkComponent: e.builderLinkComponent
2398
2638
  },
2399
- `form-block-${S}`
2639
+ `form-block-${p}`
2400
2640
  )) }) : null,
2401
- d() === "error" ? /* @__PURE__ */ s(
2402
- j,
2641
+ u() === "error" ? /* @__PURE__ */ s(
2642
+ D,
2403
2643
  {
2404
2644
  path: "errorMessage",
2405
2645
  blocks: e.errorMessage,
2406
2646
  context: e.builderContext
2407
2647
  }
2408
2648
  ) : null,
2409
- d() === "sending" ? /* @__PURE__ */ s(
2410
- j,
2649
+ u() === "sending" ? /* @__PURE__ */ s(
2650
+ D,
2411
2651
  {
2412
2652
  path: "sendingMessage",
2413
2653
  blocks: e.sendingMessage,
2414
2654
  context: e.builderContext
2415
2655
  }
2416
2656
  ) : null,
2417
- d() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-31bf8a14", children: JSON.stringify(o, null, 2) }) : null,
2418
- d() === "success" ? /* @__PURE__ */ s(
2419
- j,
2657
+ u() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
2658
+ u() === "success" ? /* @__PURE__ */ s(
2659
+ D,
2420
2660
  {
2421
2661
  path: "successMessage",
2422
2662
  blocks: e.successMessage,
@@ -2427,11 +2667,11 @@ function ln(e) {
2427
2667
  }
2428
2668
  ),
2429
2669
  " ",
2430
- /* @__PURE__ */ s("style", { children: ".pre-31bf8a14 { padding: 10px; color: red; text-align: center; }" }),
2670
+ /* @__PURE__ */ s("style", { children: ".pre-3a20f614 { padding: 10px; color: red; text-align: center; }" }),
2431
2671
  " "
2432
2672
  ] });
2433
2673
  }
2434
- const sn = {
2674
+ const mn = {
2435
2675
  name: "Form:Input",
2436
2676
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2437
2677
  inputs: [
@@ -2483,12 +2723,12 @@ const sn = {
2483
2723
  borderColor: "#ccc"
2484
2724
  }
2485
2725
  };
2486
- function cn(e) {
2487
- return /* @__PURE__ */ Te(
2726
+ function fn(e) {
2727
+ return /* @__PURE__ */ Ee(
2488
2728
  "input",
2489
2729
  {
2490
2730
  ...e.attributes,
2491
- key: F() && e.defaultValue ? e.defaultValue : "default-key",
2731
+ key: $() && e.defaultValue ? e.defaultValue : "default-key",
2492
2732
  placeholder: e.placeholder,
2493
2733
  type: e.type,
2494
2734
  name: e.name,
@@ -2498,7 +2738,7 @@ function cn(e) {
2498
2738
  }
2499
2739
  );
2500
2740
  }
2501
- const dn = {
2741
+ const hn = {
2502
2742
  name: "Form:Select",
2503
2743
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2504
2744
  defaultStyles: {
@@ -2541,21 +2781,21 @@ const dn = {
2541
2781
  static: !0,
2542
2782
  noWrap: !0
2543
2783
  };
2544
- function un(e) {
2784
+ function gn(e) {
2545
2785
  var t;
2546
- return /* @__PURE__ */ Te(
2786
+ return /* @__PURE__ */ Ee(
2547
2787
  "select",
2548
2788
  {
2549
2789
  ...e.attributes,
2550
2790
  value: e.value,
2551
- key: F() && e.defaultValue ? e.defaultValue : "default-key",
2791
+ key: $() && e.defaultValue ? e.defaultValue : "default-key",
2552
2792
  defaultValue: e.defaultValue,
2553
2793
  name: e.name
2554
2794
  },
2555
2795
  (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2556
2796
  );
2557
2797
  }
2558
- const mn = {
2798
+ const bn = {
2559
2799
  name: "Form:SubmitButton",
2560
2800
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2561
2801
  defaultStyles: {
@@ -2581,10 +2821,10 @@ const mn = {
2581
2821
  // TODO: defaultChildren
2582
2822
  // canHaveChildren: true,
2583
2823
  };
2584
- function fn(e) {
2824
+ function pn(e) {
2585
2825
  return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
2586
2826
  }
2587
- const hn = {
2827
+ const yn = {
2588
2828
  // friendlyName?
2589
2829
  name: "Raw:Img",
2590
2830
  hideFromInsertMenu: !0,
@@ -2599,7 +2839,7 @@ const hn = {
2599
2839
  noWrap: !0,
2600
2840
  static: !0
2601
2841
  };
2602
- function gn(e) {
2842
+ function xn(e) {
2603
2843
  return /* @__PURE__ */ s(
2604
2844
  "img",
2605
2845
  {
@@ -2611,10 +2851,10 @@ function gn(e) {
2611
2851
  src: e.imgSrc || e.image,
2612
2852
  ...e.attributes
2613
2853
  },
2614
- F() && e.imgSrc || "default-key"
2854
+ $() && e.imgSrc || "default-key"
2615
2855
  );
2616
2856
  }
2617
- const bn = {
2857
+ const Sn = {
2618
2858
  name: "Video",
2619
2859
  canHaveChildren: !0,
2620
2860
  defaultStyles: {
@@ -2696,8 +2936,8 @@ const bn = {
2696
2936
  advanced: !0
2697
2937
  }]
2698
2938
  };
2699
- function pn(e) {
2700
- var i, o, l, r, a, c, d;
2939
+ function vn(e) {
2940
+ var i, o, l, a, r, c, u;
2701
2941
  function t() {
2702
2942
  return {
2703
2943
  ...e.autoPlay === !0 ? {
@@ -2765,7 +3005,7 @@ function pn(e) {
2765
3005
  }
2766
3006
  }
2767
3007
  ) : null,
2768
- (a = (r = e.builderBlock) == null ? void 0 : r.children) != null && a.length && e.fitContent ? /* @__PURE__ */ s(
3008
+ (r = (a = e.builderBlock) == null ? void 0 : a.children) != null && r.length && e.fitContent ? /* @__PURE__ */ s(
2769
3009
  "div",
2770
3010
  {
2771
3011
  style: {
@@ -2776,7 +3016,7 @@ function pn(e) {
2776
3016
  children: e.children
2777
3017
  }
2778
3018
  ) : null,
2779
- (d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ s(
3019
+ (u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length && !e.fitContent ? /* @__PURE__ */ s(
2780
3020
  "div",
2781
3021
  {
2782
3022
  style: {
@@ -2797,58 +3037,61 @@ function pn(e) {
2797
3037
  }
2798
3038
  );
2799
3039
  }
2800
- const yn = () => [{
2801
- component: Qt,
2802
- ...Gt
2803
- }, {
3040
+ const kn = () => [{
2804
3041
  component: tn,
2805
- ...Xt
3042
+ ...en
2806
3043
  }, {
2807
- component: ln,
3044
+ component: rn,
2808
3045
  ...nn
2809
3046
  }, {
2810
- component: cn,
2811
- ...sn
3047
+ component: un,
3048
+ ...ln
2812
3049
  }, {
2813
3050
  component: fn,
2814
3051
  ...mn
2815
3052
  }, {
2816
- component: un,
2817
- ...dn
3053
+ component: pn,
3054
+ ...bn
2818
3055
  }, {
2819
3056
  component: gn,
2820
3057
  ...hn
2821
3058
  }, {
2822
- component: pn,
2823
- ...bn
2824
- }], ye = () => [{
2825
- component: tt,
2826
- ...Dt
3059
+ component: xn,
3060
+ ...yn
2827
3061
  }, {
2828
- component: Nt,
2829
- ...jt
3062
+ component: vn,
3063
+ ...Sn
3064
+ }], ve = () => [{
3065
+ component: ot,
3066
+ ...Mt
2830
3067
  }, {
2831
3068
  component: Wt,
2832
- ...Mt
3069
+ ...Ht
2833
3070
  }, {
2834
3071
  component: Ft,
2835
- ...Ut
3072
+ ...Kt
2836
3073
  }, {
2837
3074
  component: Lt,
2838
- ...Ot
3075
+ ...qt
2839
3076
  }, {
2840
- component: Kt,
2841
- ...Ht
3077
+ component: Ot,
3078
+ ..._t
2842
3079
  }, {
2843
- component: Un,
2844
- ...qt
3080
+ component: Jt,
3081
+ ...zt
2845
3082
  }, {
2846
- component: Yt,
2847
- ...Jt
3083
+ component: qn,
3084
+ ...Yt
2848
3085
  }, {
2849
- component: zt,
2850
- ..._t
2851
- }, ...yn()], xn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3086
+ component: Zt,
3087
+ ...Xt
3088
+ }, {
3089
+ component: Qt,
3090
+ ...Gt
3091
+ }, {
3092
+ component: Ut,
3093
+ ...jt
3094
+ }, ...kn()], Cn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2852
3095
  function getAndSetVariantId() {
2853
3096
  function setCookie(name, value, days) {
2854
3097
  let expires = '';
@@ -2904,7 +3147,7 @@ const yn = () => [{
2904
3147
  }).join('');
2905
3148
  styleEl.innerHTML = newStyleStr;
2906
3149
  }
2907
- }`, Sn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3150
+ }`, Tn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2908
3151
  if (!navigator.cookieEnabled) {
2909
3152
  return;
2910
3153
  }
@@ -2938,26 +3181,26 @@ const yn = () => [{
2938
3181
  thisScriptEl?.remove();
2939
3182
  }
2940
3183
  return;
2941
- }`, Fe = "builderIoAbTest", Le = "builderIoRenderContent", J = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3184
+ }`, Oe = "builderIoAbTest", je = "builderIoRenderContent", J = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2942
3185
  ...t,
2943
3186
  testVariationId: t.id,
2944
3187
  id: e == null ? void 0 : e.id
2945
- })), vn = ({
3188
+ })), In = ({
2946
3189
  canTrack: e,
2947
3190
  content: t
2948
- }) => !(!(J(t).length > 0) || !e || G()), kn = (e) => e === "react" || e === "reactNative", De = kn(q), Cn = () => `
2949
- window.${Fe} = ${xn}
2950
- window.${Le} = ${Sn}
2951
- `, Tn = (e, t) => `
2952
- window.${Fe}(
2953
- "${t}",${JSON.stringify(e)}, ${De}
2954
- )`, wn = ({
3191
+ }) => !(!(J(t).length > 0) || !e || G()), wn = (e) => e === "react" || e === "reactNative", Ue = wn(q), En = () => `
3192
+ window.${Oe} = ${Cn}
3193
+ window.${je} = ${Tn}
3194
+ `, Rn = (e, t) => `
3195
+ window.${Oe}(
3196
+ "${t}",${JSON.stringify(e)}, ${Ue}
3197
+ )`, Vn = ({
2955
3198
  contentId: e,
2956
3199
  variationId: t
2957
- }) => `window.${Le}(
2958
- "${t}", "${e}", ${De}
3200
+ }) => `window.${je}(
3201
+ "${t}", "${e}", ${Ue}
2959
3202
  )`;
2960
- function re(e) {
3203
+ function ce(e) {
2961
3204
  return /* @__PURE__ */ s(
2962
3205
  "script",
2963
3206
  {
@@ -2966,10 +3209,10 @@ function re(e) {
2966
3209
  }
2967
3210
  );
2968
3211
  }
2969
- function xe(e) {
3212
+ function ke(e) {
2970
3213
  return Math.round(e * 1e3) / 1e3;
2971
3214
  }
2972
- const In = (e, t, n = !0) => {
3215
+ const Pn = (e, t, n = !0) => {
2973
3216
  if (!(e instanceof HTMLElement))
2974
3217
  return null;
2975
3218
  let i = n ? e : e.parentElement;
@@ -2980,37 +3223,37 @@ const In = (e, t, n = !0) => {
2980
3223
  return i;
2981
3224
  } while (i = i.parentElement);
2982
3225
  return null;
2983
- }, En = (e) => In(e, (t) => {
3226
+ }, Bn = (e) => Pn(e, (t) => {
2984
3227
  const n = t.getAttribute("builder-id") || t.id;
2985
3228
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
2986
- }), Se = ({
3229
+ }), Ce = ({
2987
3230
  event: e,
2988
3231
  target: t
2989
3232
  }) => {
2990
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, l = xe(i / n.width), r = xe(o / n.height);
3233
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, l = ke(i / n.width), a = ke(o / n.height);
2991
3234
  return {
2992
3235
  x: l,
2993
- y: r
3236
+ y: a
2994
3237
  };
2995
- }, Rn = (e) => {
2996
- const t = e.target, n = t && En(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3238
+ }, An = (e) => {
3239
+ const t = e.target, n = t && Bn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2997
3240
  return {
2998
3241
  targetBuilderElement: i || void 0,
2999
3242
  metadata: {
3000
- targetOffset: t ? Se({
3243
+ targetOffset: t ? Ce({
3001
3244
  event: e,
3002
3245
  target: t
3003
3246
  }) : void 0,
3004
- builderTargetOffset: n ? Se({
3247
+ builderTargetOffset: n ? Ce({
3005
3248
  event: e,
3006
3249
  target: n
3007
3250
  }) : void 0,
3008
3251
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3009
3252
  }
3010
3253
  };
3011
- }, Pn = (e) => {
3012
- var l, r;
3013
- const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (l = e == null ? void 0 : e.files) == null ? void 0 : l.regular;
3254
+ }, Nn = (e) => {
3255
+ var l, a;
3256
+ const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (l = e == null ? void 0 : e.files) == null ? void 0 : l.regular;
3014
3257
  let o = "";
3015
3258
  if (i && t && n && (o += `
3016
3259
  @font-face {
@@ -3020,29 +3263,29 @@ font-display: fallback;
3020
3263
  font-weight: 400;
3021
3264
  }
3022
3265
  `.trim()), e.files)
3023
- for (const a in e.files) {
3024
- if (!(String(Number(a)) === a))
3266
+ for (const r in e.files) {
3267
+ if (!(String(Number(r)) === r))
3025
3268
  continue;
3026
- const d = e.files[a];
3027
- d && d !== i && (o += `
3269
+ const u = e.files[r];
3270
+ u && u !== i && (o += `
3028
3271
  @font-face {
3029
3272
  font-family: "${t}";
3030
- src: url('${d}') format('woff2');
3273
+ src: url('${u}') format('woff2');
3031
3274
  font-display: fallback;
3032
- font-weight: ${a};
3275
+ font-weight: ${r};
3033
3276
  }
3034
3277
  `.trim());
3035
3278
  }
3036
3279
  return o;
3037
- }, Vn = ({
3280
+ }, Wn = ({
3038
3281
  customFonts: e
3039
3282
  }) => {
3040
3283
  var t;
3041
- return ((t = e == null ? void 0 : e.map((n) => Pn(n))) == null ? void 0 : t.join(" ")) || "";
3042
- }, Bn = ({
3284
+ return ((t = e == null ? void 0 : e.map((n) => Nn(n))) == null ? void 0 : t.join(" ")) || "";
3285
+ }, Fn = ({
3043
3286
  cssCode: e,
3044
3287
  contentId: t
3045
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Nn = `
3288
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", $n = `
3046
3289
  .builder-button {
3047
3290
  all: unset;
3048
3291
  }
@@ -3059,39 +3302,39 @@ font-weight: ${a};
3059
3302
  text-align: inherit;
3060
3303
  font-family: inherit;
3061
3304
  }
3062
- `, Wn = (e) => e ? "" : Nn, An = (e) => `variant-${e}`;
3063
- function $n(e) {
3064
- var N, W, D, x, T, A, h;
3305
+ `, Dn = (e) => e ? "" : $n, Ln = (e) => `variant-${e}`;
3306
+ function On(e) {
3307
+ var P, A, O, v, w, W, b;
3065
3308
  const t = ee(null);
3066
- function n(f) {
3067
- var y, v;
3068
- const b = {
3309
+ function n(h) {
3310
+ var S, k;
3311
+ const y = {
3069
3312
  ...e.builderContextSignal.rootState,
3070
- ...f
3313
+ ...h
3071
3314
  };
3072
- e.builderContextSignal.rootSetState ? (v = (y = e.builderContextSignal).rootSetState) == null || v.call(y, b) : e.setBuilderContextSignal((k) => ({
3073
- ...k,
3074
- rootState: b
3315
+ e.builderContextSignal.rootSetState ? (k = (S = e.builderContextSignal).rootSetState) == null || k.call(S, y) : e.setBuilderContextSignal((T) => ({
3316
+ ...T,
3317
+ rootState: y
3075
3318
  }));
3076
3319
  }
3077
- function i(f) {
3078
- var y, v, k, B, M;
3079
- const b = {
3320
+ function i(h) {
3321
+ var S, k, T, N, j;
3322
+ const y = {
3080
3323
  ...e.builderContextSignal.content,
3081
- ...f,
3324
+ ...h,
3082
3325
  data: {
3083
- ...(y = e.builderContextSignal.content) == null ? void 0 : y.data,
3084
- ...f == null ? void 0 : f.data
3326
+ ...(S = e.builderContextSignal.content) == null ? void 0 : S.data,
3327
+ ...h == null ? void 0 : h.data
3085
3328
  },
3086
3329
  meta: {
3087
- ...(v = e.builderContextSignal.content) == null ? void 0 : v.meta,
3088
- ...f == null ? void 0 : f.meta,
3089
- breakpoints: ((k = f == null ? void 0 : f.meta) == null ? void 0 : k.breakpoints) || ((M = (B = e.builderContextSignal.content) == null ? void 0 : B.meta) == null ? void 0 : M.breakpoints)
3330
+ ...(k = e.builderContextSignal.content) == null ? void 0 : k.meta,
3331
+ ...h == null ? void 0 : h.meta,
3332
+ 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)
3090
3333
  }
3091
3334
  };
3092
- e.setBuilderContextSignal(($) => ({
3093
- ...$,
3094
- content: b
3335
+ e.setBuilderContextSignal((F) => ({
3336
+ ...F,
3337
+ content: y
3095
3338
  }));
3096
3339
  }
3097
3340
  function o() {
@@ -3100,37 +3343,37 @@ function $n(e) {
3100
3343
  "aria-hidden": !0
3101
3344
  };
3102
3345
  }
3103
- const [l, r] = C(
3346
+ const [l, a] = C(
3104
3347
  () => e.contentWrapper || "div"
3105
3348
  );
3106
- function a(f) {
3107
- return _e({
3349
+ function r(h) {
3350
+ return Ye({
3108
3351
  model: e.model,
3109
3352
  trustedHosts: e.trustedHosts,
3110
3353
  callbacks: {
3111
- configureSdk: (b) => {
3112
- var k;
3113
- const { breakpoints: y, contentId: v } = b;
3114
- !v || v !== ((k = e.builderContextSignal.content) == null ? void 0 : k.id) || y && i({
3354
+ configureSdk: (y) => {
3355
+ var T;
3356
+ const { breakpoints: S, contentId: k } = y;
3357
+ !k || k !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || S && i({
3115
3358
  meta: {
3116
- breakpoints: y
3359
+ breakpoints: S
3117
3360
  }
3118
3361
  });
3119
3362
  },
3120
- animation: (b) => {
3121
- Ve(b);
3363
+ animation: (y) => {
3364
+ Ne(y);
3122
3365
  },
3123
- contentUpdate: (b) => {
3124
- i(b);
3366
+ contentUpdate: (y) => {
3367
+ i(y);
3125
3368
  }
3126
3369
  }
3127
- })(f);
3370
+ })(h);
3128
3371
  }
3129
3372
  function c() {
3130
- var b, y;
3131
- const f = (y = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : y.jsCode;
3132
- f && K({
3133
- code: f,
3373
+ var y, S;
3374
+ const h = (S = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : S.jsCode;
3375
+ h && K({
3376
+ code: h,
3134
3377
  context: e.context || {},
3135
3378
  localState: void 0,
3136
3379
  rootState: e.builderContextSignal.rootState,
@@ -3141,35 +3384,35 @@ function $n(e) {
3141
3384
  enableCache: !1
3142
3385
  });
3143
3386
  }
3144
- const [d, m] = C(() => ({})), [u, g] = C(() => ({})), [p, S] = C(() => !1);
3145
- function I(f) {
3146
- var b, y;
3387
+ const [u, f] = C(() => ({})), [d, m] = C(() => ({})), [g, p] = C(() => !1);
3388
+ function I(h) {
3389
+ var y, S;
3147
3390
  if (e.builderContextSignal.content) {
3148
- const v = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId, k = (y = e.builderContextSignal.content) == null ? void 0 : y.id;
3149
- me({
3391
+ const k = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, T = (S = e.builderContextSignal.content) == null ? void 0 : S.id;
3392
+ he({
3150
3393
  type: "click",
3151
3394
  canTrack: Q(e.canTrack),
3152
- contentId: k,
3395
+ contentId: T,
3153
3396
  apiKey: e.apiKey,
3154
- variationId: v !== k ? v : void 0,
3155
- ...Rn(f),
3156
- unique: !p
3397
+ variationId: k !== T ? k : void 0,
3398
+ ...An(h),
3399
+ unique: !g
3157
3400
  });
3158
3401
  }
3159
- p || S(!0);
3402
+ g || p(!0);
3160
3403
  }
3161
- function E() {
3162
- var b, y, v;
3163
- const f = (v = (y = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : y.httpRequests) != null ? v : {};
3164
- Object.entries(f).forEach(([k, B]) => {
3165
- if (!B || u[k] || d[k] && !F())
3404
+ function x() {
3405
+ var y, S, k;
3406
+ const h = (k = (S = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : S.httpRequests) != null ? k : {};
3407
+ Object.entries(h).forEach(([T, N]) => {
3408
+ if (!N || d[T] || u[T] && !$())
3166
3409
  return;
3167
- u[k] = !0;
3168
- const M = B.replace(
3410
+ d[T] = !0;
3411
+ const j = N.replace(
3169
3412
  /{{([^}]+)}}/g,
3170
- ($, je) => String(
3413
+ (F, Me) => String(
3171
3414
  K({
3172
- code: je,
3415
+ code: Me,
3173
3416
  context: e.context || {},
3174
3417
  localState: void 0,
3175
3418
  rootState: e.builderContextSignal.rootState,
@@ -3178,24 +3421,24 @@ function $n(e) {
3178
3421
  })
3179
3422
  )
3180
3423
  );
3181
- ze(M).then(($) => $.json()).then(($) => {
3424
+ Ge(j).then((F) => F.json()).then((F) => {
3182
3425
  n({
3183
- [k]: $
3184
- }), d[k] = !0;
3185
- }).catch(($) => {
3186
- console.error("error fetching dynamic data", B, $);
3426
+ [T]: F
3427
+ }), u[T] = !0;
3428
+ }).catch((F) => {
3429
+ console.error("error fetching dynamic data", N, F);
3187
3430
  }).finally(() => {
3188
- u[k] = !1;
3431
+ d[T] = !1;
3189
3432
  });
3190
3433
  });
3191
3434
  }
3192
3435
  function R() {
3193
- F() && window.dispatchEvent(
3436
+ $() && window.dispatchEvent(
3194
3437
  new CustomEvent(
3195
3438
  "builder:component:stateChange",
3196
3439
  {
3197
3440
  detail: {
3198
- state: le(e.builderContextSignal.rootState),
3441
+ state: de(e.builderContextSignal.rootState),
3199
3442
  ref: {
3200
3443
  name: e.model
3201
3444
  }
@@ -3204,10 +3447,10 @@ function $n(e) {
3204
3447
  )
3205
3448
  );
3206
3449
  }
3207
- return P(() => {
3208
- var f, b;
3450
+ return B(() => {
3451
+ var h, y;
3209
3452
  if (G()) {
3210
- if (F() && (window.addEventListener("message", a), Oe(), He({
3453
+ if ($() && (window.addEventListener("message", r), qe(), _e({
3211
3454
  ...e.locale ? {
3212
3455
  locale: e.locale
3213
3456
  } : {},
@@ -3219,98 +3462,98 @@ function $n(e) {
3219
3462
  } : {}
3220
3463
  }), Object.values(
3221
3464
  e.builderContextSignal.componentInfos
3222
- ).forEach((v) => {
3223
- var B;
3224
- const k = Ke(v);
3225
- (B = window.parent) == null || B.postMessage(k, "*");
3465
+ ).forEach((k) => {
3466
+ var N;
3467
+ const T = ze(k);
3468
+ (N = window.parent) == null || N.postMessage(T, "*");
3226
3469
  }), window.addEventListener(
3227
3470
  "builder:component:stateChangeListenerActivated",
3228
3471
  R
3229
3472
  )), e.builderContextSignal.content && Q(e.canTrack)) {
3230
- const v = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, k = (b = e.builderContextSignal.content) == null ? void 0 : b.id, B = e.apiKey;
3231
- me({
3473
+ const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, T = (y = e.builderContextSignal.content) == null ? void 0 : y.id, N = e.apiKey;
3474
+ he({
3232
3475
  type: "impression",
3233
3476
  canTrack: !0,
3234
- contentId: k,
3235
- apiKey: B,
3236
- variationId: v !== k ? v : void 0
3477
+ contentId: T,
3478
+ apiKey: N,
3479
+ variationId: k !== T ? k : void 0
3237
3480
  });
3238
3481
  }
3239
- if (qe() && !F()) {
3240
- const v = new URL(location.href).searchParams, k = v.get("builder.preview"), B = v.get(
3241
- `builder.preview.${k}`
3242
- ), M = v.get("apiKey") || v.get("builder.space");
3243
- k === e.model && M === e.apiKey && (!e.content || B === e.content.id) && ke({
3482
+ if (Je() && !$()) {
3483
+ const k = new URL(location.href).searchParams, T = k.get("builder.preview"), N = k.get(
3484
+ `builder.overrides.${T}`
3485
+ ), j = k.get("apiKey") || k.get("builder.space");
3486
+ T === e.model && j === e.apiKey && (!e.content || N === e.content.id) && Ie({
3244
3487
  model: e.model,
3245
3488
  apiKey: e.apiKey,
3246
3489
  apiVersion: e.builderContextSignal.apiVersion
3247
- }).then(($) => {
3248
- $ && i($);
3490
+ }).then((F) => {
3491
+ F && i(F);
3249
3492
  });
3250
3493
  }
3251
3494
  }
3252
- }, []), P(() => {
3495
+ }, []), B(() => {
3253
3496
  e.apiKey || Z.error(
3254
- "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3255
- ), c(), E(), R();
3256
- }, []), P(() => {
3497
+ "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3498
+ ), c(), x(), R();
3499
+ }, []), B(() => {
3257
3500
  e.content && i(e.content);
3258
- }, [e.content]), P(() => {
3501
+ }, [e.content]), B(() => {
3259
3502
  c();
3260
- }, [(W = (N = e.builderContextSignal.content) == null ? void 0 : N.data) == null ? void 0 : W.jsCode]), P(() => {
3261
- E();
3262
- }, [(x = (D = e.builderContextSignal.content) == null ? void 0 : D.data) == null ? void 0 : x.httpRequests]), P(() => {
3503
+ }, [(A = (P = e.builderContextSignal.content) == null ? void 0 : P.data) == null ? void 0 : A.jsCode]), B(() => {
3504
+ x();
3505
+ }, [(v = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : v.httpRequests]), B(() => {
3263
3506
  R();
3264
- }, [e.builderContextSignal.rootState]), P(() => {
3507
+ }, [e.builderContextSignal.rootState]), B(() => {
3265
3508
  e.data && n(e.data);
3266
- }, [e.data]), P(() => {
3509
+ }, [e.data]), B(() => {
3267
3510
  e.locale && n({
3268
3511
  locale: e.locale
3269
3512
  });
3270
- }, [e.locale]), P(() => () => {
3271
- G() && (window.removeEventListener("message", a), window.removeEventListener(
3513
+ }, [e.locale]), B(() => () => {
3514
+ G() && (window.removeEventListener("message", r), window.removeEventListener(
3272
3515
  "builder:component:stateChangeListenerActivated",
3273
3516
  R
3274
3517
  ));
3275
- }, []), /* @__PURE__ */ s(ce.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
3518
+ }, []), /* @__PURE__ */ s(me.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
3276
3519
  l,
3277
3520
  {
3278
3521
  ref: t,
3279
- onClick: (f) => I(f),
3280
- "builder-content-id": (T = e.builderContextSignal.content) == null ? void 0 : T.id,
3522
+ onClick: (h) => I(h),
3523
+ "builder-content-id": (w = e.builderContextSignal.content) == null ? void 0 : w.id,
3281
3524
  "builder-model": e.model,
3282
3525
  ...o(),
3283
3526
  ...e.contentWrapperProps,
3284
- className: An(
3285
- ((A = e.content) == null ? void 0 : A.testVariationId) || ((h = e.content) == null ? void 0 : h.id)
3527
+ className: Ln(
3528
+ ((W = e.content) == null ? void 0 : W.testVariationId) || ((b = e.content) == null ? void 0 : b.id)
3286
3529
  ),
3287
3530
  children: e.children
3288
3531
  }
3289
3532
  ) : null });
3290
3533
  }
3291
- function Fn(e) {
3534
+ function jn(e) {
3292
3535
  const [t, n] = C(
3293
3536
  () => `
3294
- ${Bn({
3537
+ ${Fn({
3295
3538
  cssCode: e.cssCode,
3296
3539
  contentId: e.contentId
3297
3540
  })}
3298
- ${Vn({
3541
+ ${Wn({
3299
3542
  customFonts: e.customFonts
3300
3543
  })}
3301
- ${Wn(e.isNestedRender)}
3544
+ ${Dn(e.isNestedRender)}
3302
3545
  `.trim()
3303
3546
  );
3304
- return /* @__PURE__ */ s(te, { id: "builderio-content", styles: t });
3547
+ return /* @__PURE__ */ s(ne, { id: "builderio-content", styles: t });
3305
3548
  }
3306
- const Ln = ({
3549
+ const Un = ({
3307
3550
  content: e,
3308
3551
  data: t,
3309
3552
  locale: n
3310
3553
  }) => {
3311
- var l, r, a;
3554
+ var l, a, r;
3312
3555
  const i = {}, o = ((l = e == null ? void 0 : e.data) == null ? void 0 : l.state) || {};
3313
- return (a = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || a.forEach((c) => {
3556
+ return (r = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || r.forEach((c) => {
3314
3557
  c.name && c.defaultValue !== void 0 && (i[c.name] = c.defaultValue);
3315
3558
  }), {
3316
3559
  ...i,
@@ -3320,7 +3563,7 @@ const Ln = ({
3320
3563
  locale: n
3321
3564
  } : {}
3322
3565
  };
3323
- }, Dn = ({
3566
+ }, Mn = ({
3324
3567
  content: e,
3325
3568
  data: t
3326
3569
  }) => e ? {
@@ -3331,46 +3574,46 @@ const Ln = ({
3331
3574
  },
3332
3575
  meta: e == null ? void 0 : e.meta
3333
3576
  } : void 0;
3334
- function ve(e) {
3335
- var c, d, m, u, g, p, S;
3577
+ function Te(e) {
3578
+ var c, u, f, d, m, g, p;
3336
3579
  const [t, n] = C(
3337
3580
  () => {
3338
- var I, E;
3339
- return wn({
3581
+ var I, x;
3582
+ return Vn({
3340
3583
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3341
3584
  variationId: (I = e.content) == null ? void 0 : I.testVariationId,
3342
3585
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3343
- contentId: (E = e.content) == null ? void 0 : E.id
3586
+ contentId: (x = e.content) == null ? void 0 : x.id
3344
3587
  });
3345
3588
  }
3346
3589
  );
3347
3590
  function i(I) {
3348
- a((E) => ({
3349
- ...E,
3591
+ r((x) => ({
3592
+ ...x,
3350
3593
  rootState: I
3351
3594
  }));
3352
3595
  }
3353
3596
  const [o, l] = C(
3354
3597
  () => [
3355
- ...ye(),
3598
+ ...ve(),
3356
3599
  ...e.customComponents || []
3357
3600
  ].reduce(
3358
- (I, { component: E, ...R }) => ({
3601
+ (I, { component: x, ...R }) => ({
3359
3602
  ...I,
3360
3603
  [R.name]: {
3361
- component: E,
3362
- ...fe(R)
3604
+ component: x,
3605
+ ...ge(R)
3363
3606
  }
3364
3607
  }),
3365
3608
  {}
3366
3609
  )
3367
- ), [r, a] = C(() => ({
3368
- content: Dn({
3610
+ ), [a, r] = C(() => ({
3611
+ content: Mn({
3369
3612
  content: e.content,
3370
3613
  data: e.data
3371
3614
  }),
3372
3615
  localState: void 0,
3373
- rootState: Ln({
3616
+ rootState: Un({
3374
3617
  content: e.content,
3375
3618
  data: e.data,
3376
3619
  locale: e.locale
@@ -3380,12 +3623,12 @@ function ve(e) {
3380
3623
  apiKey: e.apiKey,
3381
3624
  apiVersion: e.apiVersion,
3382
3625
  componentInfos: [
3383
- ...ye(),
3626
+ ...ve(),
3384
3627
  ...e.customComponents || []
3385
3628
  ].reduce(
3386
- (I, { component: E, ...R }) => ({
3629
+ (I, { component: x, ...R }) => ({
3387
3630
  ...I,
3388
- [R.name]: fe(R)
3631
+ [R.name]: ge(R)
3389
3632
  }),
3390
3633
  {}
3391
3634
  ),
@@ -3394,13 +3637,13 @@ function ve(e) {
3394
3637
  BlocksWrapperProps: e.blocksWrapperProps || {}
3395
3638
  }));
3396
3639
  return /* @__PURE__ */ s(
3397
- Ie.Provider,
3640
+ Ve.Provider,
3398
3641
  {
3399
3642
  value: {
3400
3643
  registeredComponents: o
3401
3644
  },
3402
3645
  children: /* @__PURE__ */ V(
3403
- $n,
3646
+ On,
3404
3647
  {
3405
3648
  content: e.content,
3406
3649
  data: e.data,
@@ -3411,34 +3654,34 @@ function ve(e) {
3411
3654
  locale: e.locale,
3412
3655
  enrich: e.enrich,
3413
3656
  showContent: e.showContent,
3414
- builderContextSignal: r,
3657
+ builderContextSignal: a,
3415
3658
  contentWrapper: e.contentWrapper,
3416
3659
  contentWrapperProps: e.contentWrapperProps,
3417
3660
  linkComponent: e.linkComponent,
3418
3661
  trustedHosts: e.trustedHosts,
3419
- setBuilderContextSignal: a,
3662
+ setBuilderContextSignal: r,
3420
3663
  children: [
3421
3664
  e.isSsrAbTest ? /* @__PURE__ */ s(
3422
- re,
3665
+ ce,
3423
3666
  {
3424
3667
  id: "builderio-variant-visibility",
3425
3668
  scriptStr: t
3426
3669
  }
3427
3670
  ) : null,
3428
3671
  /* @__PURE__ */ s(
3429
- Fn,
3672
+ jn,
3430
3673
  {
3431
3674
  isNestedRender: e.isNestedRender,
3432
- contentId: (c = r.content) == null ? void 0 : c.id,
3433
- cssCode: (m = (d = r.content) == null ? void 0 : d.data) == null ? void 0 : m.cssCode,
3434
- customFonts: (g = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : g.customFonts
3675
+ contentId: (c = a.content) == null ? void 0 : c.id,
3676
+ cssCode: (f = (u = a.content) == null ? void 0 : u.data) == null ? void 0 : f.cssCode,
3677
+ customFonts: (m = (d = a.content) == null ? void 0 : d.data) == null ? void 0 : m.customFonts
3435
3678
  }
3436
3679
  ),
3437
3680
  /* @__PURE__ */ s(
3438
- j,
3681
+ D,
3439
3682
  {
3440
- blocks: (S = (p = r.content) == null ? void 0 : p.data) == null ? void 0 : S.blocks,
3441
- context: r,
3683
+ blocks: (p = (g = a.content) == null ? void 0 : g.data) == null ? void 0 : p.blocks,
3684
+ context: a,
3442
3685
  registeredComponents: o,
3443
3686
  linkComponent: e.linkComponent
3444
3687
  }
@@ -3449,66 +3692,66 @@ function ve(e) {
3449
3692
  }
3450
3693
  );
3451
3694
  }
3452
- function jn(e) {
3453
- var r;
3695
+ function Hn(e) {
3696
+ var a;
3454
3697
  const [t, n] = C(
3455
- () => vn({
3698
+ () => In({
3456
3699
  canTrack: Q(e.canTrack),
3457
3700
  content: e.content
3458
3701
  })
3459
3702
  );
3460
3703
  function i() {
3461
- var a;
3462
- return Tn(
3704
+ var r;
3705
+ return Rn(
3463
3706
  J(e.content).map((c) => ({
3464
3707
  id: c.testVariationId,
3465
3708
  testRatio: c.testRatio
3466
3709
  })),
3467
- ((a = e.content) == null ? void 0 : a.id) || ""
3710
+ ((r = e.content) == null ? void 0 : r.id) || ""
3468
3711
  );
3469
3712
  }
3470
3713
  function o() {
3471
- return J(e.content).map((a) => `.variant-${a.testVariationId} { display: none; } `).join("");
3714
+ return J(e.content).map((r) => `.variant-${r.testVariationId} { display: none; } `).join("");
3472
3715
  }
3473
3716
  function l() {
3474
- var a;
3717
+ var r;
3475
3718
  return t ? {
3476
3719
  ...e.content,
3477
- testVariationId: (a = e.content) == null ? void 0 : a.id
3478
- } : Je({
3720
+ testVariationId: (r = e.content) == null ? void 0 : r.id
3721
+ } : Qe({
3479
3722
  item: e.content,
3480
3723
  canTrack: Q(e.canTrack)
3481
3724
  });
3482
3725
  }
3483
- return P(() => {
3484
- }, []), /* @__PURE__ */ V(w, { children: [
3726
+ return B(() => {
3727
+ }, []), /* @__PURE__ */ V(E, { children: [
3485
3728
  !e.isNestedRender && q !== "reactNative" ? /* @__PURE__ */ s(
3486
- re,
3729
+ ce,
3487
3730
  {
3488
3731
  id: "builderio-init-variants-fns",
3489
- scriptStr: Cn()
3732
+ scriptStr: En()
3490
3733
  }
3491
3734
  ) : null,
3492
- t ? /* @__PURE__ */ V(w, { children: [
3735
+ t ? /* @__PURE__ */ V(E, { children: [
3493
3736
  /* @__PURE__ */ s(
3494
- te,
3737
+ ne,
3495
3738
  {
3496
3739
  id: "builderio-variants",
3497
3740
  styles: o()
3498
3741
  }
3499
3742
  ),
3500
3743
  /* @__PURE__ */ s(
3501
- re,
3744
+ ce,
3502
3745
  {
3503
3746
  id: "builderio-variants-visibility",
3504
3747
  scriptStr: i()
3505
3748
  }
3506
3749
  ),
3507
- (r = J(e.content)) == null ? void 0 : r.map((a) => /* @__PURE__ */ s(
3508
- ve,
3750
+ (a = J(e.content)) == null ? void 0 : a.map((r) => /* @__PURE__ */ s(
3751
+ Te,
3509
3752
  {
3510
3753
  isNestedRender: e.isNestedRender,
3511
- content: a,
3754
+ content: r,
3512
3755
  showContent: !1,
3513
3756
  model: e.model,
3514
3757
  data: e.data,
@@ -3527,11 +3770,11 @@ function jn(e) {
3527
3770
  contentWrapperProps: e.contentWrapperProps,
3528
3771
  trustedHosts: e.trustedHosts
3529
3772
  },
3530
- a.testVariationId
3773
+ r.testVariationId
3531
3774
  ))
3532
3775
  ] }) : null,
3533
3776
  /* @__PURE__ */ s(
3534
- ve,
3777
+ Te,
3535
3778
  {
3536
3779
  isNestedRender: e.isNestedRender,
3537
3780
  content: l(),
@@ -3556,13 +3799,13 @@ function jn(e) {
3556
3799
  )
3557
3800
  ] });
3558
3801
  }
3559
- const Mn = async ({
3802
+ const Kn = async ({
3560
3803
  builderContextValue: e,
3561
3804
  symbol: t
3562
3805
  }) => {
3563
3806
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
3564
3807
  (e != null && e.apiKey))
3565
- return ke({
3808
+ return Ie({
3566
3809
  model: t.model,
3567
3810
  apiKey: e.apiKey,
3568
3811
  apiVersion: e.apiVersion,
@@ -3575,8 +3818,8 @@ const Mn = async ({
3575
3818
  Z.error("Could not fetch symbol content: ", n);
3576
3819
  });
3577
3820
  };
3578
- function Un(e) {
3579
- var a, c, d, m;
3821
+ function qn(e) {
3822
+ var r, c, u, f;
3580
3823
  function t() {
3581
3824
  return "div";
3582
3825
  }
@@ -3584,46 +3827,46 @@ function Un(e) {
3584
3827
  return "div";
3585
3828
  }
3586
3829
  function i() {
3587
- var u, g;
3830
+ var d, m;
3588
3831
  return [
3589
3832
  e.attributes[H()],
3590
3833
  "builder-symbol",
3591
- (u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
3592
- (g = e.symbol) != null && g.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
3834
+ (d = e.symbol) != null && d.inline ? "builder-inline-symbol" : void 0,
3835
+ (m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
3593
3836
  ].filter(Boolean).join(" ");
3594
3837
  }
3595
3838
  const [o, l] = C(() => {
3596
- var u;
3597
- return (u = e.symbol) == null ? void 0 : u.content;
3839
+ var d;
3840
+ return (d = e.symbol) == null ? void 0 : d.content;
3598
3841
  });
3599
- function r() {
3600
- o || Mn({
3842
+ function a() {
3843
+ o || Kn({
3601
3844
  symbol: e.symbol,
3602
3845
  builderContextValue: e.builderContext
3603
- }).then((u) => {
3604
- u && l(u);
3846
+ }).then((d) => {
3847
+ d && l(d);
3605
3848
  });
3606
3849
  }
3607
- return P(() => {
3608
- }, []), P(() => {
3609
- r();
3850
+ return B(() => {
3851
+ }, []), B(() => {
3852
+ a();
3610
3853
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
3611
- jn,
3854
+ Hn,
3612
3855
  {
3613
3856
  isNestedRender: !0,
3614
3857
  apiVersion: e.builderContext.apiVersion,
3615
3858
  apiKey: e.builderContext.apiKey,
3616
3859
  context: {
3617
3860
  ...e.builderContext.context,
3618
- symbolId: (a = e.builderBlock) == null ? void 0 : a.id
3861
+ symbolId: (r = e.builderBlock) == null ? void 0 : r.id
3619
3862
  },
3620
3863
  customComponents: Object.values(e.builderComponents),
3621
3864
  data: {
3622
3865
  ...(c = e.symbol) == null ? void 0 : c.data,
3623
3866
  ...e.builderContext.localState,
3624
- ...(d = o == null ? void 0 : o.data) == null ? void 0 : d.state
3867
+ ...(u = o == null ? void 0 : o.data) == null ? void 0 : u.state
3625
3868
  },
3626
- model: (m = e.symbol) == null ? void 0 : m.model,
3869
+ model: (f = e.symbol) == null ? void 0 : f.model,
3627
3870
  content: o,
3628
3871
  linkComponent: e.builderLinkComponent,
3629
3872
  blocksWrapper: t(),
@@ -3632,15 +3875,15 @@ function Un(e) {
3632
3875
  ) });
3633
3876
  }
3634
3877
  export {
3635
- j as Blocks,
3636
- ce as BuilderContext,
3637
- tt as Button,
3638
- Nt as Columns,
3639
- jn as Content,
3640
- Wt as Fragment,
3641
- Ft as Image,
3642
- Lt as Section,
3643
- Un as Symbol,
3644
- Yt as Text,
3645
- pn as Video
3878
+ D as Blocks,
3879
+ me as BuilderContext,
3880
+ ot as Button,
3881
+ Wt as Columns,
3882
+ Hn as Content,
3883
+ Ft as Fragment,
3884
+ Lt as Image,
3885
+ Ot as Section,
3886
+ qn as Symbol,
3887
+ Zt as Text,
3888
+ vn as Video
3646
3889
  };