@builder.io/sdk-react 1.0.27 → 1.0.28

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 (70) hide show
  1. package/lib/browser/blocks-exports.cjs +29 -29
  2. package/lib/browser/blocks-exports.mjs +1029 -784
  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-39389b02.cjs} +1 -1
  8. package/lib/browser/{server-entry-805a2c2a.js → server-entry-b2b0b732.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-a6b84a1a.cjs +1 -0
  12. package/lib/edge/accordion-e074c3c9.js +131 -0
  13. package/lib/edge/{blocks-a1399a78.js → blocks-bdc7647a.js} +198 -198
  14. package/lib/edge/{blocks-af5c8ecf.cjs → blocks-e4a4eaeb.cjs} +10 -10
  15. package/lib/edge/blocks-exports.cjs +1 -1
  16. package/lib/edge/blocks-exports.mjs +2 -2
  17. package/lib/edge/{button-0820a5bc.js → button-01688cf0.js} +2 -2
  18. package/lib/edge/{button-16076ac7.cjs → button-4bbf8eb4.cjs} +1 -1
  19. package/lib/edge/{columns-688cc205.js → columns-790f93f0.js} +3 -3
  20. package/lib/edge/{columns-6b8c03be.cjs → columns-c34d9298.cjs} +1 -1
  21. package/lib/edge/content-variants-705d1eae.cjs +134 -0
  22. package/lib/edge/{content-variants-efa4f81b.js → content-variants-843cb1a2.js} +304 -183
  23. package/lib/edge/{form-91166ed6.cjs → form-41fb03d8.cjs} +1 -1
  24. package/lib/edge/{form-cbe7d822.js → form-76a1e4e7.js} +3 -3
  25. package/lib/edge/{get-class-prop-name-47012c9c.cjs → get-class-prop-name-6fd942e6.cjs} +1 -1
  26. package/lib/edge/{get-class-prop-name-4a1bad2b.js → get-class-prop-name-7cac71a7.js} +1 -1
  27. package/lib/edge/{img-14849a5b.js → img-0d46e11b.js} +1 -1
  28. package/lib/edge/{img-d3420f5d.cjs → img-630ec97f.cjs} +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-35460b08.js} +1 -1
  34. package/lib/edge/{input-07becc4d.cjs → input-73e27d61.cjs} +1 -1
  35. package/lib/edge/{select-b05ef24f.js → select-6cf907d7.js} +1 -1
  36. package/lib/edge/{select-e576d7d0.cjs → select-a19b35fb.cjs} +1 -1
  37. package/lib/edge/{server-entry-ee324b22.cjs → server-entry-043747bd.cjs} +1 -1
  38. package/lib/edge/{server-entry-6aaf6054.js → server-entry-0dd5f119.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-944437dd.js → slot-d4235700.js} +3 -3
  42. package/lib/edge/{slot-e139f9b4.cjs → slot-e0434389.cjs} +1 -1
  43. package/lib/edge/{symbol-f7f42446.cjs → symbol-e0e1a334.cjs} +1 -1
  44. package/lib/edge/{symbol-75d1c60d.js → symbol-e58cb0f1.js} +2 -2
  45. package/lib/edge/tabs-a92bfa51.cjs +1 -0
  46. package/lib/edge/{tabs-62e415e1.js → tabs-d5cfc172.js} +20 -20
  47. package/lib/node/blocks-exports.cjs +29 -29
  48. package/lib/node/blocks-exports.mjs +1029 -784
  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-e167306c.js → node-runtime-29789d59.js} +1 -1
  54. package/lib/node/{node-runtime-1bee7133.cjs → node-runtime-ee646b73.cjs} +1 -1
  55. package/lib/node/{server-entry-38fb2258.js → server-entry-0cd65827.js} +1 -1
  56. package/lib/node/{server-entry-db936548.cjs → server-entry-1111c8d8.cjs} +1 -1
  57. package/lib/node/server-entry.cjs +1 -1
  58. package/lib/node/server-entry.mjs +1 -1
  59. package/package.json +1 -1
  60. package/types/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/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-0cd65827.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-29789d59.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 S, 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
+ ((S = l == null ? void 0 : l.meta) == null ? void 0 : S.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 S(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: ${S("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: ${S("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-00cb97e2",
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,11 +1080,11 @@ 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
  }
@@ -1095,71 +1095,71 @@ function Nt(e) {
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,7 @@ function Lt(e) {
1232
1232
  }
1233
1233
  );
1234
1234
  }
1235
- const Dt = {
1235
+ const jt = {
1236
1236
  name: "Core:Button",
1237
1237
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1238
1238
  defaultStyles: {
@@ -1265,7 +1265,7 @@ const Dt = {
1265
1265
  }],
1266
1266
  static: !0,
1267
1267
  noWrap: !0
1268
- }, jt = {
1268
+ }, Ut = {
1269
1269
  // TODO: ways to statically preprocess JSON for references, functions, etc
1270
1270
  name: "Columns",
1271
1271
  isRSC: !0,
@@ -1444,7 +1444,7 @@ const Dt = {
1444
1444
  });
1445
1445
  }
1446
1446
  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();
1447
+ 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
1448
  }
1449
1449
  }, {
1450
1450
  name: "space",
@@ -1472,7 +1472,7 @@ const Dt = {
1472
1472
  hidden: !0,
1473
1473
  canHaveChildren: !0,
1474
1474
  noWrap: !0
1475
- }, Ut = {
1475
+ }, Ht = {
1476
1476
  name: "Image",
1477
1477
  static: !0,
1478
1478
  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 +1492,29 @@ const Dt = {
1492
1492
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1493
1493
  onChange: (e) => {
1494
1494
  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);
1495
+ function n(a, r = 6e4) {
1496
+ return new Promise((c, u) => {
1497
+ const f = document.createElement("img");
1498
+ let d = !1;
1499
+ f.onload = () => {
1500
+ d = !0, c(f);
1501
+ }, f.addEventListener("error", (m) => {
1502
+ console.warn("Image load failed", m.error), u(m.error);
1503
+ }), f.src = a, setTimeout(() => {
1504
+ d || u(new Error("Image load timed out"));
1505
+ }, r);
1506
1506
  });
1507
1507
  }
1508
- function i(r) {
1509
- return Math.round(r * 1e3) / 1e3;
1508
+ function i(a) {
1509
+ return Math.round(a * 1e3) / 1e3;
1510
1510
  }
1511
1511
  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);
1512
+ if (fetch(o).then((a) => a.blob()).then((a) => {
1513
+ a.type.includes("svg") && e.set("noWebp", !0);
1514
1514
  }), 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));
1515
+ return n(o).then((a) => {
1516
+ const r = e.get("aspectRatio");
1517
+ 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
1518
  });
1519
1519
  }
1520
1520
  }, {
@@ -1572,7 +1572,7 @@ const Dt = {
1572
1572
  advanced: !0,
1573
1573
  defaultValue: 0.7041
1574
1574
  }]
1575
- }, Ot = {
1575
+ }, Kt = {
1576
1576
  name: "Core:Section",
1577
1577
  static: !0,
1578
1578
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1611,7 +1611,7 @@ const Dt = {
1611
1611
  }
1612
1612
  }
1613
1613
  }]
1614
- }, Ht = {
1614
+ }, qt = {
1615
1615
  name: "Slot",
1616
1616
  isRSC: !0,
1617
1617
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1625,7 +1625,7 @@ const Dt = {
1625
1625
  defaultValue: "children"
1626
1626
  }]
1627
1627
  };
1628
- function Kt(e) {
1628
+ function _t(e) {
1629
1629
  var t, n, i;
1630
1630
  return /* @__PURE__ */ s(
1631
1631
  "div",
@@ -1637,7 +1637,7 @@ function Kt(e) {
1637
1637
  "builder-slot": e.name
1638
1638
  },
1639
1639
  children: /* @__PURE__ */ s(
1640
- j,
1640
+ D,
1641
1641
  {
1642
1642
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
1643
1643
  path: `symbol.data.${e.name}`,
@@ -1648,7 +1648,7 @@ function Kt(e) {
1648
1648
  }
1649
1649
  );
1650
1650
  }
1651
- const qt = {
1651
+ const zt = {
1652
1652
  name: "Symbol",
1653
1653
  noWrap: !0,
1654
1654
  static: !0,
@@ -1681,7 +1681,7 @@ const qt = {
1681
1681
  hideFromUI: !0,
1682
1682
  type: "boolean"
1683
1683
  }]
1684
- }, oe = {
1684
+ }, ae = {
1685
1685
  "@type": "@builder.io/sdk:Element",
1686
1686
  responsiveStyles: {
1687
1687
  large: {
@@ -1703,7 +1703,7 @@ const qt = {
1703
1703
  text: "New tab"
1704
1704
  }
1705
1705
  }
1706
- }, ae = {
1706
+ }, re = {
1707
1707
  "@type": "@builder.io/sdk:Element",
1708
1708
  responsiveStyles: {
1709
1709
  large: {
@@ -1719,7 +1719,7 @@ const qt = {
1719
1719
  text: "New tab content "
1720
1720
  }
1721
1721
  }
1722
- }, _t = {
1722
+ }, Jt = {
1723
1723
  name: "Builder: Tabs",
1724
1724
  inputs: [{
1725
1725
  name: "tabs",
@@ -1729,16 +1729,16 @@ const qt = {
1729
1729
  name: "label",
1730
1730
  type: "uiBlocks",
1731
1731
  hideFromUI: !0,
1732
- defaultValue: [oe]
1732
+ defaultValue: [ae]
1733
1733
  }, {
1734
1734
  name: "content",
1735
1735
  type: "uiBlocks",
1736
1736
  hideFromUI: !0,
1737
- defaultValue: [ae]
1737
+ defaultValue: [re]
1738
1738
  }],
1739
1739
  defaultValue: [{
1740
1740
  label: [{
1741
- ...oe,
1741
+ ...ae,
1742
1742
  component: {
1743
1743
  name: "Text",
1744
1744
  options: {
@@ -1747,7 +1747,7 @@ const qt = {
1747
1747
  }
1748
1748
  }],
1749
1749
  content: [{
1750
- ...ae,
1750
+ ...re,
1751
1751
  component: {
1752
1752
  name: "Text",
1753
1753
  options: {
@@ -1757,7 +1757,7 @@ const qt = {
1757
1757
  }]
1758
1758
  }, {
1759
1759
  label: [{
1760
- ...oe,
1760
+ ...ae,
1761
1761
  component: {
1762
1762
  name: "Text",
1763
1763
  options: {
@@ -1766,7 +1766,7 @@ const qt = {
1766
1766
  }
1767
1767
  }],
1768
1768
  content: [{
1769
- ...ae,
1769
+ ...re,
1770
1770
  component: {
1771
1771
  name: "Text",
1772
1772
  options: {
@@ -1817,16 +1817,16 @@ const qt = {
1817
1817
  }]
1818
1818
  }]
1819
1819
  };
1820
- function zt(e) {
1820
+ function Yt(e) {
1821
1821
  var l;
1822
1822
  const [t, n] = C(
1823
1823
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
1824
1824
  );
1825
- function i(r) {
1826
- return e.tabs && e.tabs[r].content;
1825
+ function i(a) {
1826
+ return e.tabs && e.tabs[a].content;
1827
1827
  }
1828
- function o(r) {
1829
- return t === r ? e.activeTabStyle : {};
1828
+ function o(a) {
1829
+ a === t && e.collapsible ? n(-1) : n(a);
1830
1830
  }
1831
1831
  return /* @__PURE__ */ V("div", { children: [
1832
1832
  /* @__PURE__ */ s(
@@ -1839,32 +1839,32 @@ function zt(e) {
1839
1839
  justifyContent: e.tabHeaderLayout || "flex-start",
1840
1840
  overflow: "auto"
1841
1841
  },
1842
- children: (l = e.tabs) == null ? void 0 : l.map((r, a) => /* @__PURE__ */ s(
1842
+ children: (l = e.tabs) == null ? void 0 : l.map((a, r) => /* @__PURE__ */ s(
1843
1843
  "span",
1844
1844
  {
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);
1845
+ className: `builder-tab-wrap ${t === r ? "builder-tab-active" : ""}`,
1846
+ style: {
1847
+ ...t === r ? e.activeTabStyle : {}
1849
1848
  },
1849
+ onClick: (c) => o(r),
1850
1850
  children: /* @__PURE__ */ s(
1851
- j,
1851
+ D,
1852
1852
  {
1853
1853
  parent: e.builderBlock.id,
1854
- path: `component.options.tabs.${a}.label`,
1855
- blocks: r.label,
1854
+ path: `component.options.tabs.${r}.label`,
1855
+ blocks: a.label,
1856
1856
  context: e.builderContext,
1857
1857
  registeredComponents: e.builderComponents,
1858
1858
  linkComponent: e.builderLinkComponent
1859
1859
  }
1860
1860
  )
1861
1861
  },
1862
- a
1862
+ r
1863
1863
  ))
1864
1864
  }
1865
1865
  ),
1866
1866
  i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
1867
- j,
1867
+ D,
1868
1868
  {
1869
1869
  parent: e.builderBlock.id,
1870
1870
  path: `component.options.tabs.${t}.content`,
@@ -1876,7 +1876,7 @@ function zt(e) {
1876
1876
  ) }) : null
1877
1877
  ] });
1878
1878
  }
1879
- const Jt = {
1879
+ const Gt = {
1880
1880
  name: "Text",
1881
1881
  static: !0,
1882
1882
  isRSC: !0,
@@ -1895,7 +1895,7 @@ const Jt = {
1895
1895
  textAlign: "center"
1896
1896
  }
1897
1897
  };
1898
- function Yt(e) {
1898
+ function Qt(e) {
1899
1899
  var t;
1900
1900
  return /* @__PURE__ */ s(
1901
1901
  "div",
@@ -1908,7 +1908,249 @@ function Yt(e) {
1908
1908
  }
1909
1909
  );
1910
1910
  }
1911
- const Gt = {
1911
+ const Se = (e) => e.toString();
1912
+ function Xt(e) {
1913
+ var d;
1914
+ const [t, n] = C(() => []);
1915
+ function i() {
1916
+ return !!(e.grid || e.oneAtATime);
1917
+ }
1918
+ function o() {
1919
+ return {
1920
+ display: "flex",
1921
+ alignItems: "stretch",
1922
+ flexDirection: "column",
1923
+ ...e.grid && {
1924
+ flexDirection: "row",
1925
+ alignItems: "flex-start",
1926
+ flexWrap: "wrap"
1927
+ }
1928
+ };
1929
+ }
1930
+ function l() {
1931
+ const g = {
1932
+ ...{
1933
+ display: "flex",
1934
+ flexDirection: "column"
1935
+ },
1936
+ alignItems: "stretch",
1937
+ cursor: "pointer"
1938
+ };
1939
+ return Object.fromEntries(
1940
+ Object.entries(g).filter(([p, I]) => I !== void 0)
1941
+ );
1942
+ }
1943
+ function a(m) {
1944
+ return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
1945
+ }
1946
+ function r(m) {
1947
+ return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
1948
+ }
1949
+ function c() {
1950
+ let m = null;
1951
+ if (e.grid && t.length && document) {
1952
+ const p = t[0];
1953
+ let S = document.querySelector(
1954
+ `.builder-accordion-title[data-index="${p}"]`
1955
+ );
1956
+ if (m = p, S) {
1957
+ let R = S.getBoundingClientRect();
1958
+ for (; S = S && S.nextElementSibling; )
1959
+ if (S) {
1960
+ if (S.classList.contains("builder-accordion-detail"))
1961
+ continue;
1962
+ const P = S.getBoundingClientRect();
1963
+ if (P.left > R.left) {
1964
+ const A = parseInt(
1965
+ S.getAttribute("data-index") || "",
1966
+ 10
1967
+ );
1968
+ isNaN(A) || (R = P, m = A);
1969
+ } else
1970
+ break;
1971
+ }
1972
+ }
1973
+ }
1974
+ return typeof m == "number" && (m = m + 1), m;
1975
+ }
1976
+ function u() {
1977
+ const m = {
1978
+ order: typeof c() == "number" ? c() : void 0,
1979
+ ...e.grid && {
1980
+ width: "100%"
1981
+ }
1982
+ };
1983
+ return Object.fromEntries(
1984
+ Object.entries(m).filter(([g, p]) => p !== void 0)
1985
+ );
1986
+ }
1987
+ function f(m) {
1988
+ t.includes(m) ? n(i() ? [] : t.filter((g) => g !== m)) : n(i() ? [m] : t.concat(m));
1989
+ }
1990
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m, g) => /* @__PURE__ */ V(E, { children: [
1991
+ /* @__PURE__ */ s(
1992
+ "div",
1993
+ {
1994
+ className: a(g),
1995
+ style: {
1996
+ ...l(),
1997
+ width: e.grid ? e.gridRowWidth : void 0,
1998
+ order: c() !== null ? Se(g) : Se(g + 1)
1999
+ },
2000
+ "data-index": g,
2001
+ onClick: (p) => f(g),
2002
+ children: /* @__PURE__ */ s(
2003
+ D,
2004
+ {
2005
+ blocks: m.title,
2006
+ path: `items.${g}.title`,
2007
+ parent: e.builderBlock.id,
2008
+ context: e.builderContext,
2009
+ registeredComponents: e.builderComponents,
2010
+ linkComponent: e.builderLinkComponent
2011
+ }
2012
+ )
2013
+ }
2014
+ ),
2015
+ t.includes(g) ? /* @__PURE__ */ s(
2016
+ "div",
2017
+ {
2018
+ className: r(g),
2019
+ style: u(),
2020
+ children: /* @__PURE__ */ s(
2021
+ D,
2022
+ {
2023
+ blocks: m.detail,
2024
+ path: `items.${g}.detail`,
2025
+ parent: e.builderBlock.id,
2026
+ context: e.builderContext,
2027
+ registeredComponents: e.builderComponents,
2028
+ linkComponent: e.builderLinkComponent
2029
+ }
2030
+ )
2031
+ }
2032
+ ) : null
2033
+ ] })) });
2034
+ }
2035
+ const le = {
2036
+ "@type": "@builder.io/sdk:Element",
2037
+ layerName: "Accordion item title",
2038
+ responsiveStyles: {
2039
+ large: {
2040
+ marginTop: "10px",
2041
+ position: "relative",
2042
+ display: "flex",
2043
+ alignItems: "stretch",
2044
+ flexDirection: "column",
2045
+ paddingBottom: "10px"
2046
+ }
2047
+ },
2048
+ children: [{
2049
+ "@type": "@builder.io/sdk:Element",
2050
+ responsiveStyles: {
2051
+ large: {
2052
+ textAlign: "left",
2053
+ display: "flex",
2054
+ flexDirection: "column"
2055
+ }
2056
+ },
2057
+ component: {
2058
+ name: "Text",
2059
+ options: {
2060
+ text: "I am an accordion title. Click me!"
2061
+ }
2062
+ }
2063
+ }]
2064
+ }, se = {
2065
+ "@type": "@builder.io/sdk:Element",
2066
+ layerName: "Accordion item detail",
2067
+ responsiveStyles: {
2068
+ large: {
2069
+ position: "relative",
2070
+ display: "flex",
2071
+ alignItems: "stretch",
2072
+ flexDirection: "column",
2073
+ marginTop: "10px",
2074
+ paddingBottom: "10px"
2075
+ }
2076
+ },
2077
+ children: [{
2078
+ "@type": "@builder.io/sdk:Element",
2079
+ responsiveStyles: {
2080
+ large: {
2081
+ paddingTop: "50px",
2082
+ textAlign: "left",
2083
+ display: "flex",
2084
+ flexDirection: "column",
2085
+ paddingBottom: "50px"
2086
+ }
2087
+ },
2088
+ component: {
2089
+ name: "Text",
2090
+ options: {
2091
+ text: "I am an accordion detail, hello!"
2092
+ }
2093
+ }
2094
+ }]
2095
+ }, Zt = {
2096
+ name: "Builder:Accordion",
2097
+ canHaveChildren: !0,
2098
+ image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
2099
+ defaultStyles: {
2100
+ display: "flex",
2101
+ flexDirection: "column",
2102
+ alignItems: "stretch"
2103
+ },
2104
+ inputs: [{
2105
+ name: "items",
2106
+ type: "list",
2107
+ broadcast: !0,
2108
+ subFields: [{
2109
+ name: "title",
2110
+ type: "uiBlocks",
2111
+ hideFromUI: !0,
2112
+ defaultValue: [le]
2113
+ }, {
2114
+ name: "detail",
2115
+ type: "uiBlocks",
2116
+ hideFromUI: !0,
2117
+ defaultValue: [se]
2118
+ }],
2119
+ defaultValue: [{
2120
+ title: [le],
2121
+ detail: [se]
2122
+ }, {
2123
+ title: [le],
2124
+ detail: [se]
2125
+ }],
2126
+ showIf: (e) => !e.get("useChildrenForItems")
2127
+ }, {
2128
+ name: "oneAtATime",
2129
+ helperText: "Only allow opening one at a time (collapse all others when new item openned)",
2130
+ type: "boolean",
2131
+ defaultValue: !1
2132
+ }, {
2133
+ name: "grid",
2134
+ helperText: "Display as a grid",
2135
+ type: "boolean",
2136
+ defaultValue: !1
2137
+ }, {
2138
+ name: "gridRowWidth",
2139
+ helperText: "Display as a grid",
2140
+ type: "string",
2141
+ showIf: (e) => e.get("grid"),
2142
+ defaultValue: "25%"
2143
+ }, {
2144
+ name: "useChildrenForItems",
2145
+ type: "boolean",
2146
+ helperText: "Use child elements for each slide, instead of the array. Useful for dynamically repeating items",
2147
+ advanced: !0,
2148
+ defaultValue: !1,
2149
+ onChange: (e) => {
2150
+ e.get("useChildrenForItems") === !0 && e.set("items", []);
2151
+ }
2152
+ }]
2153
+ }, 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,125 @@ 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, S;
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 ? (S = (I = e.builderContext).rootSetState) == null || S.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 S = g.currentTarget, R = e.customHeaders || {};
2535
+ let P;
2536
+ const A = new FormData(S), O = Array.from(
2537
+ g.currentTarget.querySelectorAll("input,select,textarea")
2538
+ ).filter((b) => !!b.name).map((b) => {
2539
+ let h;
2540
+ const y = b.name;
2541
+ if (b instanceof HTMLInputElement)
2542
+ if (b.type === "radio") {
2543
+ if (b.checked)
2544
+ return h = b.name, {
2545
+ key: y,
2546
+ value: h
2305
2547
  };
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);
2548
+ } else if (b.type === "checkbox")
2549
+ h = b.checked;
2550
+ else if (b.type === "number" || b.type === "range") {
2551
+ const x = b.valueAsNumber;
2552
+ isNaN(x) || (h = x);
2311
2553
  } else
2312
- h.type === "file" ? f = h.files : f = h.value;
2554
+ b.type === "file" ? h = b.files : h = b.value;
2313
2555
  else
2314
- f = h.value;
2556
+ h = b.value;
2315
2557
  return {
2316
- key: b,
2317
- value: f
2558
+ key: y,
2559
+ value: h
2318
2560
  };
2319
2561
  });
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;
2562
+ let v = e.contentType;
2563
+ if (e.sendSubmissionsTo === "email" && (v = "multipart/form-data"), Array.from(O).forEach(({ value: b }) => {
2564
+ (b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (v = "multipart/form-data");
2565
+ }), v !== "application/json")
2566
+ P = A;
2325
2567
  else {
2326
- const h = {};
2327
- Array.from(D).forEach(({ value: f, key: b }) => {
2328
- we(h, b, f);
2329
- }), N = JSON.stringify(h);
2568
+ const b = {};
2569
+ Array.from(O).forEach(({ value: h, key: y }) => {
2570
+ Re(b, y, h);
2571
+ }), P = JSON.stringify(b);
2330
2572
  }
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))
2573
+ v && v !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (R["content-type"] = v));
2574
+ const w = new CustomEvent("presubmit", { detail: { body: P } });
2575
+ if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
2334
2576
  return;
2335
2577
  i("sending");
2336
- const A = `${an() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2578
+ const W = `${cn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2337
2579
  e.sendSubmissionsToEmail || ""
2338
2580
  )}&name=${encodeURIComponent(e.name || "")}`;
2339
2581
  fetch(
2340
- e.sendSubmissionsTo === "email" ? A : e.action,
2341
- { body: N, headers: R, method: e.method || "post" }
2582
+ e.sendSubmissionsTo === "email" ? W : e.action,
2583
+ { body: P, headers: R, method: e.method || "post" }
2342
2584
  ).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 }));
2585
+ async (b) => {
2586
+ let h;
2587
+ const y = b.headers.get("content-type");
2588
+ if (y && y.indexOf("application/json") !== -1 ? h = await b.json() : h = await b.text(), !b.ok && e.errorMessagePath) {
2589
+ let x = dn(h, e.errorMessagePath);
2590
+ x && (typeof x != "string" && (x = JSON.stringify(x)), r(x), c({ formErrorMessage: x }));
2349
2591
  }
2350
- if (l(f), i(h.ok ? "success" : "error"), h.ok) {
2351
- const y = new CustomEvent("submit:success", {
2352
- detail: { res: h, body: f }
2592
+ if (l(h), i(b.ok ? "success" : "error"), b.ok) {
2593
+ const x = new CustomEvent("submit:success", {
2594
+ detail: { res: b, body: h }
2353
2595
  });
2354
2596
  if (t.current) {
2355
- if (t.current.dispatchEvent(y), y.defaultPrevented)
2597
+ if (t.current.dispatchEvent(x), x.defaultPrevented)
2356
2598
  return;
2357
2599
  e.resetFormOnSubmit !== !1 && t.current.reset();
2358
2600
  }
2359
2601
  if (e.successUrl)
2360
2602
  if (t.current) {
2361
- const v = new CustomEvent("route", {
2603
+ const k = new CustomEvent("route", {
2362
2604
  detail: { url: e.successUrl }
2363
2605
  });
2364
- t.current.dispatchEvent(v), v.defaultPrevented || (location.href = e.successUrl);
2606
+ t.current.dispatchEvent(k), k.defaultPrevented || (location.href = e.successUrl);
2365
2607
  } else
2366
2608
  location.href = e.successUrl;
2367
2609
  }
2368
2610
  },
2369
- (h) => {
2370
- const f = new CustomEvent("submit:error", {
2371
- detail: { error: h }
2611
+ (b) => {
2612
+ const h = new CustomEvent("submit:error", {
2613
+ detail: { error: b }
2372
2614
  });
2373
- t.current && (t.current.dispatchEvent(f), f.defaultPrevented) || (l(h), i("error"));
2615
+ t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (l(b), i("error"));
2374
2616
  }
2375
2617
  );
2376
2618
  }
2377
2619
  }
2378
- return /* @__PURE__ */ V(w, { children: [
2620
+ return /* @__PURE__ */ V(E, { children: [
2379
2621
  " ",
2380
2622
  /* @__PURE__ */ V(
2381
2623
  "form",
@@ -2385,38 +2627,38 @@ function ln(e) {
2385
2627
  action: !e.sendWithJs && e.action,
2386
2628
  method: e.method,
2387
2629
  name: e.name,
2388
- onSubmit: (p) => m(p),
2630
+ onSubmit: (g) => f(g),
2389
2631
  ...e.attributes,
2390
2632
  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(
2633
+ 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
2634
  _,
2393
2635
  {
2394
- block: p,
2636
+ block: g,
2395
2637
  context: e.builderContext,
2396
2638
  registeredComponents: e.builderComponents,
2397
2639
  linkComponent: e.builderLinkComponent
2398
2640
  },
2399
- `form-block-${S}`
2641
+ `form-block-${p}`
2400
2642
  )) }) : null,
2401
- d() === "error" ? /* @__PURE__ */ s(
2402
- j,
2643
+ u() === "error" ? /* @__PURE__ */ s(
2644
+ D,
2403
2645
  {
2404
2646
  path: "errorMessage",
2405
2647
  blocks: e.errorMessage,
2406
2648
  context: e.builderContext
2407
2649
  }
2408
2650
  ) : null,
2409
- d() === "sending" ? /* @__PURE__ */ s(
2410
- j,
2651
+ u() === "sending" ? /* @__PURE__ */ s(
2652
+ D,
2411
2653
  {
2412
2654
  path: "sendingMessage",
2413
2655
  blocks: e.sendingMessage,
2414
2656
  context: e.builderContext
2415
2657
  }
2416
2658
  ) : 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,
2659
+ u() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-31bf8a14", children: JSON.stringify(o, null, 2) }) : null,
2660
+ u() === "success" ? /* @__PURE__ */ s(
2661
+ D,
2420
2662
  {
2421
2663
  path: "successMessage",
2422
2664
  blocks: e.successMessage,
@@ -2431,7 +2673,7 @@ function ln(e) {
2431
2673
  " "
2432
2674
  ] });
2433
2675
  }
2434
- const sn = {
2676
+ const mn = {
2435
2677
  name: "Form:Input",
2436
2678
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2437
2679
  inputs: [
@@ -2483,12 +2725,12 @@ const sn = {
2483
2725
  borderColor: "#ccc"
2484
2726
  }
2485
2727
  };
2486
- function cn(e) {
2487
- return /* @__PURE__ */ Te(
2728
+ function fn(e) {
2729
+ return /* @__PURE__ */ Ee(
2488
2730
  "input",
2489
2731
  {
2490
2732
  ...e.attributes,
2491
- key: F() && e.defaultValue ? e.defaultValue : "default-key",
2733
+ key: $() && e.defaultValue ? e.defaultValue : "default-key",
2492
2734
  placeholder: e.placeholder,
2493
2735
  type: e.type,
2494
2736
  name: e.name,
@@ -2498,7 +2740,7 @@ function cn(e) {
2498
2740
  }
2499
2741
  );
2500
2742
  }
2501
- const dn = {
2743
+ const hn = {
2502
2744
  name: "Form:Select",
2503
2745
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2504
2746
  defaultStyles: {
@@ -2541,21 +2783,21 @@ const dn = {
2541
2783
  static: !0,
2542
2784
  noWrap: !0
2543
2785
  };
2544
- function un(e) {
2786
+ function gn(e) {
2545
2787
  var t;
2546
- return /* @__PURE__ */ Te(
2788
+ return /* @__PURE__ */ Ee(
2547
2789
  "select",
2548
2790
  {
2549
2791
  ...e.attributes,
2550
2792
  value: e.value,
2551
- key: F() && e.defaultValue ? e.defaultValue : "default-key",
2793
+ key: $() && e.defaultValue ? e.defaultValue : "default-key",
2552
2794
  defaultValue: e.defaultValue,
2553
2795
  name: e.name
2554
2796
  },
2555
2797
  (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
2798
  );
2557
2799
  }
2558
- const mn = {
2800
+ const bn = {
2559
2801
  name: "Form:SubmitButton",
2560
2802
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2561
2803
  defaultStyles: {
@@ -2581,10 +2823,10 @@ const mn = {
2581
2823
  // TODO: defaultChildren
2582
2824
  // canHaveChildren: true,
2583
2825
  };
2584
- function fn(e) {
2826
+ function pn(e) {
2585
2827
  return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
2586
2828
  }
2587
- const hn = {
2829
+ const yn = {
2588
2830
  // friendlyName?
2589
2831
  name: "Raw:Img",
2590
2832
  hideFromInsertMenu: !0,
@@ -2599,7 +2841,7 @@ const hn = {
2599
2841
  noWrap: !0,
2600
2842
  static: !0
2601
2843
  };
2602
- function gn(e) {
2844
+ function xn(e) {
2603
2845
  return /* @__PURE__ */ s(
2604
2846
  "img",
2605
2847
  {
@@ -2611,10 +2853,10 @@ function gn(e) {
2611
2853
  src: e.imgSrc || e.image,
2612
2854
  ...e.attributes
2613
2855
  },
2614
- F() && e.imgSrc || "default-key"
2856
+ $() && e.imgSrc || "default-key"
2615
2857
  );
2616
2858
  }
2617
- const bn = {
2859
+ const Sn = {
2618
2860
  name: "Video",
2619
2861
  canHaveChildren: !0,
2620
2862
  defaultStyles: {
@@ -2696,8 +2938,8 @@ const bn = {
2696
2938
  advanced: !0
2697
2939
  }]
2698
2940
  };
2699
- function pn(e) {
2700
- var i, o, l, r, a, c, d;
2941
+ function vn(e) {
2942
+ var i, o, l, a, r, c, u;
2701
2943
  function t() {
2702
2944
  return {
2703
2945
  ...e.autoPlay === !0 ? {
@@ -2765,7 +3007,7 @@ function pn(e) {
2765
3007
  }
2766
3008
  }
2767
3009
  ) : null,
2768
- (a = (r = e.builderBlock) == null ? void 0 : r.children) != null && a.length && e.fitContent ? /* @__PURE__ */ s(
3010
+ (r = (a = e.builderBlock) == null ? void 0 : a.children) != null && r.length && e.fitContent ? /* @__PURE__ */ s(
2769
3011
  "div",
2770
3012
  {
2771
3013
  style: {
@@ -2776,7 +3018,7 @@ function pn(e) {
2776
3018
  children: e.children
2777
3019
  }
2778
3020
  ) : null,
2779
- (d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ s(
3021
+ (u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length && !e.fitContent ? /* @__PURE__ */ s(
2780
3022
  "div",
2781
3023
  {
2782
3024
  style: {
@@ -2797,58 +3039,61 @@ function pn(e) {
2797
3039
  }
2798
3040
  );
2799
3041
  }
2800
- const yn = () => [{
2801
- component: Qt,
2802
- ...Gt
2803
- }, {
3042
+ const kn = () => [{
2804
3043
  component: tn,
2805
- ...Xt
3044
+ ...en
2806
3045
  }, {
2807
- component: ln,
3046
+ component: rn,
2808
3047
  ...nn
2809
3048
  }, {
2810
- component: cn,
2811
- ...sn
3049
+ component: un,
3050
+ ...ln
2812
3051
  }, {
2813
3052
  component: fn,
2814
3053
  ...mn
2815
3054
  }, {
2816
- component: un,
2817
- ...dn
3055
+ component: pn,
3056
+ ...bn
2818
3057
  }, {
2819
3058
  component: gn,
2820
3059
  ...hn
2821
3060
  }, {
2822
- component: pn,
2823
- ...bn
2824
- }], ye = () => [{
2825
- component: tt,
2826
- ...Dt
3061
+ component: xn,
3062
+ ...yn
2827
3063
  }, {
2828
- component: Nt,
3064
+ component: vn,
3065
+ ...Sn
3066
+ }], ve = () => [{
3067
+ component: ot,
2829
3068
  ...jt
2830
3069
  }, {
2831
3070
  component: Wt,
2832
- ...Mt
3071
+ ...Ut
2833
3072
  }, {
2834
3073
  component: Ft,
2835
- ...Ut
3074
+ ...Mt
2836
3075
  }, {
2837
3076
  component: Lt,
2838
- ...Ot
2839
- }, {
2840
- component: Kt,
2841
3077
  ...Ht
2842
3078
  }, {
2843
- component: Un,
3079
+ component: Ot,
3080
+ ...Kt
3081
+ }, {
3082
+ component: _t,
2844
3083
  ...qt
3084
+ }, {
3085
+ component: qn,
3086
+ ...zt
3087
+ }, {
3088
+ component: Qt,
3089
+ ...Gt
2845
3090
  }, {
2846
3091
  component: Yt,
2847
3092
  ...Jt
2848
3093
  }, {
2849
- component: zt,
2850
- ..._t
2851
- }, ...yn()], xn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3094
+ component: Xt,
3095
+ ...Zt
3096
+ }, ...kn()], Cn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2852
3097
  function getAndSetVariantId() {
2853
3098
  function setCookie(name, value, days) {
2854
3099
  let expires = '';
@@ -2904,7 +3149,7 @@ const yn = () => [{
2904
3149
  }).join('');
2905
3150
  styleEl.innerHTML = newStyleStr;
2906
3151
  }
2907
- }`, Sn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3152
+ }`, Tn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2908
3153
  if (!navigator.cookieEnabled) {
2909
3154
  return;
2910
3155
  }
@@ -2938,26 +3183,26 @@ const yn = () => [{
2938
3183
  thisScriptEl?.remove();
2939
3184
  }
2940
3185
  return;
2941
- }`, Fe = "builderIoAbTest", Le = "builderIoRenderContent", J = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3186
+ }`, Oe = "builderIoAbTest", je = "builderIoRenderContent", J = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2942
3187
  ...t,
2943
3188
  testVariationId: t.id,
2944
3189
  id: e == null ? void 0 : e.id
2945
- })), vn = ({
3190
+ })), In = ({
2946
3191
  canTrack: e,
2947
3192
  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 = ({
3193
+ }) => !(!(J(t).length > 0) || !e || G()), wn = (e) => e === "react" || e === "reactNative", Ue = wn(q), En = () => `
3194
+ window.${Oe} = ${Cn}
3195
+ window.${je} = ${Tn}
3196
+ `, Rn = (e, t) => `
3197
+ window.${Oe}(
3198
+ "${t}",${JSON.stringify(e)}, ${Ue}
3199
+ )`, Vn = ({
2955
3200
  contentId: e,
2956
3201
  variationId: t
2957
- }) => `window.${Le}(
2958
- "${t}", "${e}", ${De}
3202
+ }) => `window.${je}(
3203
+ "${t}", "${e}", ${Ue}
2959
3204
  )`;
2960
- function re(e) {
3205
+ function ce(e) {
2961
3206
  return /* @__PURE__ */ s(
2962
3207
  "script",
2963
3208
  {
@@ -2966,10 +3211,10 @@ function re(e) {
2966
3211
  }
2967
3212
  );
2968
3213
  }
2969
- function xe(e) {
3214
+ function ke(e) {
2970
3215
  return Math.round(e * 1e3) / 1e3;
2971
3216
  }
2972
- const In = (e, t, n = !0) => {
3217
+ const Pn = (e, t, n = !0) => {
2973
3218
  if (!(e instanceof HTMLElement))
2974
3219
  return null;
2975
3220
  let i = n ? e : e.parentElement;
@@ -2980,37 +3225,37 @@ const In = (e, t, n = !0) => {
2980
3225
  return i;
2981
3226
  } while (i = i.parentElement);
2982
3227
  return null;
2983
- }, En = (e) => In(e, (t) => {
3228
+ }, Bn = (e) => Pn(e, (t) => {
2984
3229
  const n = t.getAttribute("builder-id") || t.id;
2985
3230
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
2986
- }), Se = ({
3231
+ }), Ce = ({
2987
3232
  event: e,
2988
3233
  target: t
2989
3234
  }) => {
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);
3235
+ 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
3236
  return {
2992
3237
  x: l,
2993
- y: r
3238
+ y: a
2994
3239
  };
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);
3240
+ }, An = (e) => {
3241
+ const t = e.target, n = t && Bn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2997
3242
  return {
2998
3243
  targetBuilderElement: i || void 0,
2999
3244
  metadata: {
3000
- targetOffset: t ? Se({
3245
+ targetOffset: t ? Ce({
3001
3246
  event: e,
3002
3247
  target: t
3003
3248
  }) : void 0,
3004
- builderTargetOffset: n ? Se({
3249
+ builderTargetOffset: n ? Ce({
3005
3250
  event: e,
3006
3251
  target: n
3007
3252
  }) : void 0,
3008
3253
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3009
3254
  }
3010
3255
  };
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;
3256
+ }, Nn = (e) => {
3257
+ var l, a;
3258
+ 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
3259
  let o = "";
3015
3260
  if (i && t && n && (o += `
3016
3261
  @font-face {
@@ -3020,29 +3265,29 @@ font-display: fallback;
3020
3265
  font-weight: 400;
3021
3266
  }
3022
3267
  `.trim()), e.files)
3023
- for (const a in e.files) {
3024
- if (!(String(Number(a)) === a))
3268
+ for (const r in e.files) {
3269
+ if (!(String(Number(r)) === r))
3025
3270
  continue;
3026
- const d = e.files[a];
3027
- d && d !== i && (o += `
3271
+ const u = e.files[r];
3272
+ u && u !== i && (o += `
3028
3273
  @font-face {
3029
3274
  font-family: "${t}";
3030
- src: url('${d}') format('woff2');
3275
+ src: url('${u}') format('woff2');
3031
3276
  font-display: fallback;
3032
- font-weight: ${a};
3277
+ font-weight: ${r};
3033
3278
  }
3034
3279
  `.trim());
3035
3280
  }
3036
3281
  return o;
3037
- }, Vn = ({
3282
+ }, Wn = ({
3038
3283
  customFonts: e
3039
3284
  }) => {
3040
3285
  var t;
3041
- return ((t = e == null ? void 0 : e.map((n) => Pn(n))) == null ? void 0 : t.join(" ")) || "";
3042
- }, Bn = ({
3286
+ return ((t = e == null ? void 0 : e.map((n) => Nn(n))) == null ? void 0 : t.join(" ")) || "";
3287
+ }, Fn = ({
3043
3288
  cssCode: e,
3044
3289
  contentId: t
3045
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Nn = `
3290
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", $n = `
3046
3291
  .builder-button {
3047
3292
  all: unset;
3048
3293
  }
@@ -3059,39 +3304,39 @@ font-weight: ${a};
3059
3304
  text-align: inherit;
3060
3305
  font-family: inherit;
3061
3306
  }
3062
- `, Wn = (e) => e ? "" : Nn, An = (e) => `variant-${e}`;
3063
- function $n(e) {
3064
- var N, W, D, x, T, A, h;
3307
+ `, Dn = (e) => e ? "" : $n, Ln = (e) => `variant-${e}`;
3308
+ function On(e) {
3309
+ var P, A, O, v, w, W, b;
3065
3310
  const t = ee(null);
3066
- function n(f) {
3067
- var y, v;
3068
- const b = {
3311
+ function n(h) {
3312
+ var x, k;
3313
+ const y = {
3069
3314
  ...e.builderContextSignal.rootState,
3070
- ...f
3315
+ ...h
3071
3316
  };
3072
- e.builderContextSignal.rootSetState ? (v = (y = e.builderContextSignal).rootSetState) == null || v.call(y, b) : e.setBuilderContextSignal((k) => ({
3073
- ...k,
3074
- rootState: b
3317
+ e.builderContextSignal.rootSetState ? (k = (x = e.builderContextSignal).rootSetState) == null || k.call(x, y) : e.setBuilderContextSignal((T) => ({
3318
+ ...T,
3319
+ rootState: y
3075
3320
  }));
3076
3321
  }
3077
- function i(f) {
3078
- var y, v, k, B, M;
3079
- const b = {
3322
+ function i(h) {
3323
+ var x, k, T, N, j;
3324
+ const y = {
3080
3325
  ...e.builderContextSignal.content,
3081
- ...f,
3326
+ ...h,
3082
3327
  data: {
3083
- ...(y = e.builderContextSignal.content) == null ? void 0 : y.data,
3084
- ...f == null ? void 0 : f.data
3328
+ ...(x = e.builderContextSignal.content) == null ? void 0 : x.data,
3329
+ ...h == null ? void 0 : h.data
3085
3330
  },
3086
3331
  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)
3332
+ ...(k = e.builderContextSignal.content) == null ? void 0 : k.meta,
3333
+ ...h == null ? void 0 : h.meta,
3334
+ 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
3335
  }
3091
3336
  };
3092
- e.setBuilderContextSignal(($) => ({
3093
- ...$,
3094
- content: b
3337
+ e.setBuilderContextSignal((F) => ({
3338
+ ...F,
3339
+ content: y
3095
3340
  }));
3096
3341
  }
3097
3342
  function o() {
@@ -3100,37 +3345,37 @@ function $n(e) {
3100
3345
  "aria-hidden": !0
3101
3346
  };
3102
3347
  }
3103
- const [l, r] = C(
3348
+ const [l, a] = C(
3104
3349
  () => e.contentWrapper || "div"
3105
3350
  );
3106
- function a(f) {
3107
- return _e({
3351
+ function r(h) {
3352
+ return Ye({
3108
3353
  model: e.model,
3109
3354
  trustedHosts: e.trustedHosts,
3110
3355
  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({
3356
+ configureSdk: (y) => {
3357
+ var T;
3358
+ const { breakpoints: x, contentId: k } = y;
3359
+ !k || k !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || x && i({
3115
3360
  meta: {
3116
- breakpoints: y
3361
+ breakpoints: x
3117
3362
  }
3118
3363
  });
3119
3364
  },
3120
- animation: (b) => {
3121
- Ve(b);
3365
+ animation: (y) => {
3366
+ Ne(y);
3122
3367
  },
3123
- contentUpdate: (b) => {
3124
- i(b);
3368
+ contentUpdate: (y) => {
3369
+ i(y);
3125
3370
  }
3126
3371
  }
3127
- })(f);
3372
+ })(h);
3128
3373
  }
3129
3374
  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,
3375
+ var y, x;
3376
+ const h = (x = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : x.jsCode;
3377
+ h && K({
3378
+ code: h,
3134
3379
  context: e.context || {},
3135
3380
  localState: void 0,
3136
3381
  rootState: e.builderContextSignal.rootState,
@@ -3141,35 +3386,35 @@ function $n(e) {
3141
3386
  enableCache: !1
3142
3387
  });
3143
3388
  }
3144
- const [d, m] = C(() => ({})), [u, g] = C(() => ({})), [p, S] = C(() => !1);
3145
- function I(f) {
3146
- var b, y;
3389
+ const [u, f] = C(() => ({})), [d, m] = C(() => ({})), [g, p] = C(() => !1);
3390
+ function I(h) {
3391
+ var y, x;
3147
3392
  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({
3393
+ const k = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, T = (x = e.builderContextSignal.content) == null ? void 0 : x.id;
3394
+ he({
3150
3395
  type: "click",
3151
3396
  canTrack: Q(e.canTrack),
3152
- contentId: k,
3397
+ contentId: T,
3153
3398
  apiKey: e.apiKey,
3154
- variationId: v !== k ? v : void 0,
3155
- ...Rn(f),
3156
- unique: !p
3399
+ variationId: k !== T ? k : void 0,
3400
+ ...An(h),
3401
+ unique: !g
3157
3402
  });
3158
3403
  }
3159
- p || S(!0);
3404
+ g || p(!0);
3160
3405
  }
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())
3406
+ function S() {
3407
+ var y, x, k;
3408
+ const h = (k = (x = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : x.httpRequests) != null ? k : {};
3409
+ Object.entries(h).forEach(([T, N]) => {
3410
+ if (!N || d[T] || u[T] && !$())
3166
3411
  return;
3167
- u[k] = !0;
3168
- const M = B.replace(
3412
+ d[T] = !0;
3413
+ const j = N.replace(
3169
3414
  /{{([^}]+)}}/g,
3170
- ($, je) => String(
3415
+ (F, Me) => String(
3171
3416
  K({
3172
- code: je,
3417
+ code: Me,
3173
3418
  context: e.context || {},
3174
3419
  localState: void 0,
3175
3420
  rootState: e.builderContextSignal.rootState,
@@ -3178,24 +3423,24 @@ function $n(e) {
3178
3423
  })
3179
3424
  )
3180
3425
  );
3181
- ze(M).then(($) => $.json()).then(($) => {
3426
+ Ge(j).then((F) => F.json()).then((F) => {
3182
3427
  n({
3183
- [k]: $
3184
- }), d[k] = !0;
3185
- }).catch(($) => {
3186
- console.error("error fetching dynamic data", B, $);
3428
+ [T]: F
3429
+ }), u[T] = !0;
3430
+ }).catch((F) => {
3431
+ console.error("error fetching dynamic data", N, F);
3187
3432
  }).finally(() => {
3188
- u[k] = !1;
3433
+ d[T] = !1;
3189
3434
  });
3190
3435
  });
3191
3436
  }
3192
3437
  function R() {
3193
- F() && window.dispatchEvent(
3438
+ $() && window.dispatchEvent(
3194
3439
  new CustomEvent(
3195
3440
  "builder:component:stateChange",
3196
3441
  {
3197
3442
  detail: {
3198
- state: le(e.builderContextSignal.rootState),
3443
+ state: de(e.builderContextSignal.rootState),
3199
3444
  ref: {
3200
3445
  name: e.model
3201
3446
  }
@@ -3204,10 +3449,10 @@ function $n(e) {
3204
3449
  )
3205
3450
  );
3206
3451
  }
3207
- return P(() => {
3208
- var f, b;
3452
+ return B(() => {
3453
+ var h, y;
3209
3454
  if (G()) {
3210
- if (F() && (window.addEventListener("message", a), Oe(), He({
3455
+ if ($() && (window.addEventListener("message", r), qe(), _e({
3211
3456
  ...e.locale ? {
3212
3457
  locale: e.locale
3213
3458
  } : {},
@@ -3219,98 +3464,98 @@ function $n(e) {
3219
3464
  } : {}
3220
3465
  }), Object.values(
3221
3466
  e.builderContextSignal.componentInfos
3222
- ).forEach((v) => {
3223
- var B;
3224
- const k = Ke(v);
3225
- (B = window.parent) == null || B.postMessage(k, "*");
3467
+ ).forEach((k) => {
3468
+ var N;
3469
+ const T = ze(k);
3470
+ (N = window.parent) == null || N.postMessage(T, "*");
3226
3471
  }), window.addEventListener(
3227
3472
  "builder:component:stateChangeListenerActivated",
3228
3473
  R
3229
3474
  )), 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({
3475
+ const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, T = (y = e.builderContextSignal.content) == null ? void 0 : y.id, N = e.apiKey;
3476
+ he({
3232
3477
  type: "impression",
3233
3478
  canTrack: !0,
3234
- contentId: k,
3235
- apiKey: B,
3236
- variationId: v !== k ? v : void 0
3479
+ contentId: T,
3480
+ apiKey: N,
3481
+ variationId: k !== T ? k : void 0
3237
3482
  });
3238
3483
  }
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({
3484
+ if (Je() && !$()) {
3485
+ const k = new URL(location.href).searchParams, T = k.get("builder.preview"), N = k.get(
3486
+ `builder.preview.${T}`
3487
+ ), j = k.get("apiKey") || k.get("builder.space");
3488
+ T === e.model && j === e.apiKey && (!e.content || N === e.content.id) && Ie({
3244
3489
  model: e.model,
3245
3490
  apiKey: e.apiKey,
3246
3491
  apiVersion: e.builderContextSignal.apiVersion
3247
- }).then(($) => {
3248
- $ && i($);
3492
+ }).then((F) => {
3493
+ F && i(F);
3249
3494
  });
3250
3495
  }
3251
3496
  }
3252
- }, []), P(() => {
3497
+ }, []), B(() => {
3253
3498
  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(() => {
3499
+ "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3500
+ ), c(), S(), R();
3501
+ }, []), B(() => {
3257
3502
  e.content && i(e.content);
3258
- }, [e.content]), P(() => {
3503
+ }, [e.content]), B(() => {
3259
3504
  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(() => {
3505
+ }, [(A = (P = e.builderContextSignal.content) == null ? void 0 : P.data) == null ? void 0 : A.jsCode]), B(() => {
3506
+ S();
3507
+ }, [(v = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : v.httpRequests]), B(() => {
3263
3508
  R();
3264
- }, [e.builderContextSignal.rootState]), P(() => {
3509
+ }, [e.builderContextSignal.rootState]), B(() => {
3265
3510
  e.data && n(e.data);
3266
- }, [e.data]), P(() => {
3511
+ }, [e.data]), B(() => {
3267
3512
  e.locale && n({
3268
3513
  locale: e.locale
3269
3514
  });
3270
- }, [e.locale]), P(() => () => {
3271
- G() && (window.removeEventListener("message", a), window.removeEventListener(
3515
+ }, [e.locale]), B(() => () => {
3516
+ G() && (window.removeEventListener("message", r), window.removeEventListener(
3272
3517
  "builder:component:stateChangeListenerActivated",
3273
3518
  R
3274
3519
  ));
3275
- }, []), /* @__PURE__ */ s(ce.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
3520
+ }, []), /* @__PURE__ */ s(me.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
3276
3521
  l,
3277
3522
  {
3278
3523
  ref: t,
3279
- onClick: (f) => I(f),
3280
- "builder-content-id": (T = e.builderContextSignal.content) == null ? void 0 : T.id,
3524
+ onClick: (h) => I(h),
3525
+ "builder-content-id": (w = e.builderContextSignal.content) == null ? void 0 : w.id,
3281
3526
  "builder-model": e.model,
3282
3527
  ...o(),
3283
3528
  ...e.contentWrapperProps,
3284
- className: An(
3285
- ((A = e.content) == null ? void 0 : A.testVariationId) || ((h = e.content) == null ? void 0 : h.id)
3529
+ className: Ln(
3530
+ ((W = e.content) == null ? void 0 : W.testVariationId) || ((b = e.content) == null ? void 0 : b.id)
3286
3531
  ),
3287
3532
  children: e.children
3288
3533
  }
3289
3534
  ) : null });
3290
3535
  }
3291
- function Fn(e) {
3536
+ function jn(e) {
3292
3537
  const [t, n] = C(
3293
3538
  () => `
3294
- ${Bn({
3539
+ ${Fn({
3295
3540
  cssCode: e.cssCode,
3296
3541
  contentId: e.contentId
3297
3542
  })}
3298
- ${Vn({
3543
+ ${Wn({
3299
3544
  customFonts: e.customFonts
3300
3545
  })}
3301
- ${Wn(e.isNestedRender)}
3546
+ ${Dn(e.isNestedRender)}
3302
3547
  `.trim()
3303
3548
  );
3304
- return /* @__PURE__ */ s(te, { id: "builderio-content", styles: t });
3549
+ return /* @__PURE__ */ s(ne, { id: "builderio-content", styles: t });
3305
3550
  }
3306
- const Ln = ({
3551
+ const Un = ({
3307
3552
  content: e,
3308
3553
  data: t,
3309
3554
  locale: n
3310
3555
  }) => {
3311
- var l, r, a;
3556
+ var l, a, r;
3312
3557
  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) => {
3558
+ return (r = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || r.forEach((c) => {
3314
3559
  c.name && c.defaultValue !== void 0 && (i[c.name] = c.defaultValue);
3315
3560
  }), {
3316
3561
  ...i,
@@ -3320,7 +3565,7 @@ const Ln = ({
3320
3565
  locale: n
3321
3566
  } : {}
3322
3567
  };
3323
- }, Dn = ({
3568
+ }, Mn = ({
3324
3569
  content: e,
3325
3570
  data: t
3326
3571
  }) => e ? {
@@ -3331,46 +3576,46 @@ const Ln = ({
3331
3576
  },
3332
3577
  meta: e == null ? void 0 : e.meta
3333
3578
  } : void 0;
3334
- function ve(e) {
3335
- var c, d, m, u, g, p, S;
3579
+ function Te(e) {
3580
+ var c, u, f, d, m, g, p;
3336
3581
  const [t, n] = C(
3337
3582
  () => {
3338
- var I, E;
3339
- return wn({
3583
+ var I, S;
3584
+ return Vn({
3340
3585
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3341
3586
  variationId: (I = e.content) == null ? void 0 : I.testVariationId,
3342
3587
  // 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
3588
+ contentId: (S = e.content) == null ? void 0 : S.id
3344
3589
  });
3345
3590
  }
3346
3591
  );
3347
3592
  function i(I) {
3348
- a((E) => ({
3349
- ...E,
3593
+ r((S) => ({
3594
+ ...S,
3350
3595
  rootState: I
3351
3596
  }));
3352
3597
  }
3353
3598
  const [o, l] = C(
3354
3599
  () => [
3355
- ...ye(),
3600
+ ...ve(),
3356
3601
  ...e.customComponents || []
3357
3602
  ].reduce(
3358
- (I, { component: E, ...R }) => ({
3603
+ (I, { component: S, ...R }) => ({
3359
3604
  ...I,
3360
3605
  [R.name]: {
3361
- component: E,
3362
- ...fe(R)
3606
+ component: S,
3607
+ ...ge(R)
3363
3608
  }
3364
3609
  }),
3365
3610
  {}
3366
3611
  )
3367
- ), [r, a] = C(() => ({
3368
- content: Dn({
3612
+ ), [a, r] = C(() => ({
3613
+ content: Mn({
3369
3614
  content: e.content,
3370
3615
  data: e.data
3371
3616
  }),
3372
3617
  localState: void 0,
3373
- rootState: Ln({
3618
+ rootState: Un({
3374
3619
  content: e.content,
3375
3620
  data: e.data,
3376
3621
  locale: e.locale
@@ -3380,12 +3625,12 @@ function ve(e) {
3380
3625
  apiKey: e.apiKey,
3381
3626
  apiVersion: e.apiVersion,
3382
3627
  componentInfos: [
3383
- ...ye(),
3628
+ ...ve(),
3384
3629
  ...e.customComponents || []
3385
3630
  ].reduce(
3386
- (I, { component: E, ...R }) => ({
3631
+ (I, { component: S, ...R }) => ({
3387
3632
  ...I,
3388
- [R.name]: fe(R)
3633
+ [R.name]: ge(R)
3389
3634
  }),
3390
3635
  {}
3391
3636
  ),
@@ -3394,13 +3639,13 @@ function ve(e) {
3394
3639
  BlocksWrapperProps: e.blocksWrapperProps || {}
3395
3640
  }));
3396
3641
  return /* @__PURE__ */ s(
3397
- Ie.Provider,
3642
+ Ve.Provider,
3398
3643
  {
3399
3644
  value: {
3400
3645
  registeredComponents: o
3401
3646
  },
3402
3647
  children: /* @__PURE__ */ V(
3403
- $n,
3648
+ On,
3404
3649
  {
3405
3650
  content: e.content,
3406
3651
  data: e.data,
@@ -3411,34 +3656,34 @@ function ve(e) {
3411
3656
  locale: e.locale,
3412
3657
  enrich: e.enrich,
3413
3658
  showContent: e.showContent,
3414
- builderContextSignal: r,
3659
+ builderContextSignal: a,
3415
3660
  contentWrapper: e.contentWrapper,
3416
3661
  contentWrapperProps: e.contentWrapperProps,
3417
3662
  linkComponent: e.linkComponent,
3418
3663
  trustedHosts: e.trustedHosts,
3419
- setBuilderContextSignal: a,
3664
+ setBuilderContextSignal: r,
3420
3665
  children: [
3421
3666
  e.isSsrAbTest ? /* @__PURE__ */ s(
3422
- re,
3667
+ ce,
3423
3668
  {
3424
3669
  id: "builderio-variant-visibility",
3425
3670
  scriptStr: t
3426
3671
  }
3427
3672
  ) : null,
3428
3673
  /* @__PURE__ */ s(
3429
- Fn,
3674
+ jn,
3430
3675
  {
3431
3676
  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
3677
+ contentId: (c = a.content) == null ? void 0 : c.id,
3678
+ cssCode: (f = (u = a.content) == null ? void 0 : u.data) == null ? void 0 : f.cssCode,
3679
+ customFonts: (m = (d = a.content) == null ? void 0 : d.data) == null ? void 0 : m.customFonts
3435
3680
  }
3436
3681
  ),
3437
3682
  /* @__PURE__ */ s(
3438
- j,
3683
+ D,
3439
3684
  {
3440
- blocks: (S = (p = r.content) == null ? void 0 : p.data) == null ? void 0 : S.blocks,
3441
- context: r,
3685
+ blocks: (p = (g = a.content) == null ? void 0 : g.data) == null ? void 0 : p.blocks,
3686
+ context: a,
3442
3687
  registeredComponents: o,
3443
3688
  linkComponent: e.linkComponent
3444
3689
  }
@@ -3449,66 +3694,66 @@ function ve(e) {
3449
3694
  }
3450
3695
  );
3451
3696
  }
3452
- function jn(e) {
3453
- var r;
3697
+ function Hn(e) {
3698
+ var a;
3454
3699
  const [t, n] = C(
3455
- () => vn({
3700
+ () => In({
3456
3701
  canTrack: Q(e.canTrack),
3457
3702
  content: e.content
3458
3703
  })
3459
3704
  );
3460
3705
  function i() {
3461
- var a;
3462
- return Tn(
3706
+ var r;
3707
+ return Rn(
3463
3708
  J(e.content).map((c) => ({
3464
3709
  id: c.testVariationId,
3465
3710
  testRatio: c.testRatio
3466
3711
  })),
3467
- ((a = e.content) == null ? void 0 : a.id) || ""
3712
+ ((r = e.content) == null ? void 0 : r.id) || ""
3468
3713
  );
3469
3714
  }
3470
3715
  function o() {
3471
- return J(e.content).map((a) => `.variant-${a.testVariationId} { display: none; } `).join("");
3716
+ return J(e.content).map((r) => `.variant-${r.testVariationId} { display: none; } `).join("");
3472
3717
  }
3473
3718
  function l() {
3474
- var a;
3719
+ var r;
3475
3720
  return t ? {
3476
3721
  ...e.content,
3477
- testVariationId: (a = e.content) == null ? void 0 : a.id
3478
- } : Je({
3722
+ testVariationId: (r = e.content) == null ? void 0 : r.id
3723
+ } : Qe({
3479
3724
  item: e.content,
3480
3725
  canTrack: Q(e.canTrack)
3481
3726
  });
3482
3727
  }
3483
- return P(() => {
3484
- }, []), /* @__PURE__ */ V(w, { children: [
3728
+ return B(() => {
3729
+ }, []), /* @__PURE__ */ V(E, { children: [
3485
3730
  !e.isNestedRender && q !== "reactNative" ? /* @__PURE__ */ s(
3486
- re,
3731
+ ce,
3487
3732
  {
3488
3733
  id: "builderio-init-variants-fns",
3489
- scriptStr: Cn()
3734
+ scriptStr: En()
3490
3735
  }
3491
3736
  ) : null,
3492
- t ? /* @__PURE__ */ V(w, { children: [
3737
+ t ? /* @__PURE__ */ V(E, { children: [
3493
3738
  /* @__PURE__ */ s(
3494
- te,
3739
+ ne,
3495
3740
  {
3496
3741
  id: "builderio-variants",
3497
3742
  styles: o()
3498
3743
  }
3499
3744
  ),
3500
3745
  /* @__PURE__ */ s(
3501
- re,
3746
+ ce,
3502
3747
  {
3503
3748
  id: "builderio-variants-visibility",
3504
3749
  scriptStr: i()
3505
3750
  }
3506
3751
  ),
3507
- (r = J(e.content)) == null ? void 0 : r.map((a) => /* @__PURE__ */ s(
3508
- ve,
3752
+ (a = J(e.content)) == null ? void 0 : a.map((r) => /* @__PURE__ */ s(
3753
+ Te,
3509
3754
  {
3510
3755
  isNestedRender: e.isNestedRender,
3511
- content: a,
3756
+ content: r,
3512
3757
  showContent: !1,
3513
3758
  model: e.model,
3514
3759
  data: e.data,
@@ -3527,11 +3772,11 @@ function jn(e) {
3527
3772
  contentWrapperProps: e.contentWrapperProps,
3528
3773
  trustedHosts: e.trustedHosts
3529
3774
  },
3530
- a.testVariationId
3775
+ r.testVariationId
3531
3776
  ))
3532
3777
  ] }) : null,
3533
3778
  /* @__PURE__ */ s(
3534
- ve,
3779
+ Te,
3535
3780
  {
3536
3781
  isNestedRender: e.isNestedRender,
3537
3782
  content: l(),
@@ -3556,13 +3801,13 @@ function jn(e) {
3556
3801
  )
3557
3802
  ] });
3558
3803
  }
3559
- const Mn = async ({
3804
+ const Kn = async ({
3560
3805
  builderContextValue: e,
3561
3806
  symbol: t
3562
3807
  }) => {
3563
3808
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
3564
3809
  (e != null && e.apiKey))
3565
- return ke({
3810
+ return Ie({
3566
3811
  model: t.model,
3567
3812
  apiKey: e.apiKey,
3568
3813
  apiVersion: e.apiVersion,
@@ -3575,8 +3820,8 @@ const Mn = async ({
3575
3820
  Z.error("Could not fetch symbol content: ", n);
3576
3821
  });
3577
3822
  };
3578
- function Un(e) {
3579
- var a, c, d, m;
3823
+ function qn(e) {
3824
+ var r, c, u, f;
3580
3825
  function t() {
3581
3826
  return "div";
3582
3827
  }
@@ -3584,46 +3829,46 @@ function Un(e) {
3584
3829
  return "div";
3585
3830
  }
3586
3831
  function i() {
3587
- var u, g;
3832
+ var d, m;
3588
3833
  return [
3589
3834
  e.attributes[H()],
3590
3835
  "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
3836
+ (d = e.symbol) != null && d.inline ? "builder-inline-symbol" : void 0,
3837
+ (m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
3593
3838
  ].filter(Boolean).join(" ");
3594
3839
  }
3595
3840
  const [o, l] = C(() => {
3596
- var u;
3597
- return (u = e.symbol) == null ? void 0 : u.content;
3841
+ var d;
3842
+ return (d = e.symbol) == null ? void 0 : d.content;
3598
3843
  });
3599
- function r() {
3600
- o || Mn({
3844
+ function a() {
3845
+ o || Kn({
3601
3846
  symbol: e.symbol,
3602
3847
  builderContextValue: e.builderContext
3603
- }).then((u) => {
3604
- u && l(u);
3848
+ }).then((d) => {
3849
+ d && l(d);
3605
3850
  });
3606
3851
  }
3607
- return P(() => {
3608
- }, []), P(() => {
3609
- r();
3852
+ return B(() => {
3853
+ }, []), B(() => {
3854
+ a();
3610
3855
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
3611
- jn,
3856
+ Hn,
3612
3857
  {
3613
3858
  isNestedRender: !0,
3614
3859
  apiVersion: e.builderContext.apiVersion,
3615
3860
  apiKey: e.builderContext.apiKey,
3616
3861
  context: {
3617
3862
  ...e.builderContext.context,
3618
- symbolId: (a = e.builderBlock) == null ? void 0 : a.id
3863
+ symbolId: (r = e.builderBlock) == null ? void 0 : r.id
3619
3864
  },
3620
3865
  customComponents: Object.values(e.builderComponents),
3621
3866
  data: {
3622
3867
  ...(c = e.symbol) == null ? void 0 : c.data,
3623
3868
  ...e.builderContext.localState,
3624
- ...(d = o == null ? void 0 : o.data) == null ? void 0 : d.state
3869
+ ...(u = o == null ? void 0 : o.data) == null ? void 0 : u.state
3625
3870
  },
3626
- model: (m = e.symbol) == null ? void 0 : m.model,
3871
+ model: (f = e.symbol) == null ? void 0 : f.model,
3627
3872
  content: o,
3628
3873
  linkComponent: e.builderLinkComponent,
3629
3874
  blocksWrapper: t(),
@@ -3632,15 +3877,15 @@ function Un(e) {
3632
3877
  ) });
3633
3878
  }
3634
3879
  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
3880
+ D as Blocks,
3881
+ me as BuilderContext,
3882
+ ot as Button,
3883
+ Wt as Columns,
3884
+ Hn as Content,
3885
+ Ft as Fragment,
3886
+ Lt as Image,
3887
+ Ot as Section,
3888
+ qn as Symbol,
3889
+ Qt as Text,
3890
+ vn as Video
3646
3891
  };