@builder.io/sdk-react 1.0.27 → 1.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/lib/browser/blocks-exports.cjs +29 -29
  2. package/lib/browser/blocks-exports.mjs +1031 -788
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/init.cjs +1 -1
  6. package/lib/browser/init.mjs +1 -1
  7. package/lib/browser/{server-entry-60c3f2b2.cjs → server-entry-29038134.cjs} +1 -1
  8. package/lib/browser/{server-entry-805a2c2a.js → server-entry-99f6be25.js} +1 -1
  9. package/lib/browser/server-entry.cjs +1 -1
  10. package/lib/browser/server-entry.mjs +1 -1
  11. package/lib/edge/accordion-a922b6f1.js +131 -0
  12. package/lib/edge/accordion-cf80a119.cjs +1 -0
  13. package/lib/edge/{blocks-af5c8ecf.cjs → blocks-0b5854b9.cjs} +10 -10
  14. package/lib/edge/{blocks-a1399a78.js → blocks-2cd920f9.js} +198 -198
  15. package/lib/edge/blocks-exports.cjs +1 -1
  16. package/lib/edge/blocks-exports.mjs +2 -2
  17. package/lib/edge/{button-16076ac7.cjs → button-2e6cc4b7.cjs} +1 -1
  18. package/lib/edge/{button-0820a5bc.js → button-e343aea4.js} +2 -2
  19. package/lib/edge/{columns-688cc205.js → columns-5db55b04.js} +5 -5
  20. package/lib/edge/{columns-6b8c03be.cjs → columns-cf320d97.cjs} +2 -2
  21. package/lib/edge/content-variants-d7612a4d.cjs +134 -0
  22. package/lib/edge/{content-variants-efa4f81b.js → content-variants-dd520b38.js} +313 -192
  23. package/lib/edge/form-7248b44c.cjs +1 -0
  24. package/lib/edge/{form-cbe7d822.js → form-a0093dd2.js} +17 -19
  25. package/lib/edge/{get-class-prop-name-47012c9c.cjs → get-class-prop-name-890dc6a6.cjs} +1 -1
  26. package/lib/edge/{get-class-prop-name-4a1bad2b.js → get-class-prop-name-f14607dc.js} +1 -1
  27. package/lib/edge/{img-d3420f5d.cjs → img-960eef70.cjs} +1 -1
  28. package/lib/edge/{img-14849a5b.js → img-ff2f388e.js} +1 -1
  29. package/lib/edge/index.cjs +1 -1
  30. package/lib/edge/index.mjs +1 -1
  31. package/lib/edge/init.cjs +1 -1
  32. package/lib/edge/init.mjs +1 -1
  33. package/lib/edge/{input-534b9f95.js → input-5934355a.js} +1 -1
  34. package/lib/edge/{input-07becc4d.cjs → input-e91374cc.cjs} +1 -1
  35. package/lib/edge/{select-b05ef24f.js → select-298649a8.js} +1 -1
  36. package/lib/edge/{select-e576d7d0.cjs → select-6e9fb36f.cjs} +1 -1
  37. package/lib/edge/{server-entry-ee324b22.cjs → server-entry-7feea5b4.cjs} +1 -1
  38. package/lib/edge/{server-entry-6aaf6054.js → server-entry-d8f1ea14.js} +1 -1
  39. package/lib/edge/server-entry.cjs +1 -1
  40. package/lib/edge/server-entry.mjs +1 -1
  41. package/lib/edge/{slot-e139f9b4.cjs → slot-3a6d243c.cjs} +1 -1
  42. package/lib/edge/{slot-944437dd.js → slot-5676b4f4.js} +3 -3
  43. package/lib/edge/{symbol-75d1c60d.js → symbol-2df385d5.js} +2 -2
  44. package/lib/edge/{symbol-f7f42446.cjs → symbol-b5a02759.cjs} +1 -1
  45. package/lib/edge/tabs-036057d6.cjs +1 -0
  46. package/lib/edge/{tabs-62e415e1.js → tabs-c2055821.js} +20 -20
  47. package/lib/node/blocks-exports.cjs +29 -29
  48. package/lib/node/blocks-exports.mjs +1034 -791
  49. package/lib/node/index.cjs +1 -1
  50. package/lib/node/index.mjs +2 -2
  51. package/lib/node/init.cjs +1 -1
  52. package/lib/node/init.mjs +2 -2
  53. package/lib/node/{node-runtime-1bee7133.cjs → node-runtime-4dbd8a34.cjs} +1 -1
  54. package/lib/node/{node-runtime-e167306c.js → node-runtime-502f7164.js} +1 -1
  55. package/lib/node/{server-entry-db936548.cjs → server-entry-4c4c63b3.cjs} +1 -1
  56. package/lib/node/{server-entry-38fb2258.js → server-entry-95efff43.js} +1 -1
  57. package/lib/node/server-entry.cjs +1 -1
  58. package/lib/node/server-entry.mjs +1 -1
  59. package/package.json +3 -3
  60. package/types/blocks/accordion/accordion.d.ts +4 -0
  61. package/types/blocks/accordion/accordion.types.d.ts +12 -0
  62. package/types/blocks/accordion/component-info.d.ts +2 -0
  63. package/types/blocks/accordion/helpers.d.ts +1 -0
  64. package/types/blocks/accordion/index.d.ts +1 -0
  65. package/types/components/block/animator.d.ts +0 -1
  66. package/types/components/content-variants/content-variants.types.d.ts +1 -1
  67. package/types/constants/sdk-version.d.ts +1 -1
  68. package/types/functions/camel-to-kebab-case.d.ts +1 -1
  69. package/lib/edge/content-variants-4679172a.cjs +0 -134
  70. package/lib/edge/form-91166ed6.cjs +0 -1
  71. package/lib/edge/tabs-4860ef6d.cjs +0 -1
@@ -1,16 +1,16 @@
1
1
  "use client";
2
- var Ue = Object.defineProperty;
3
- var je = (e, t, n) => t in e ? Ue(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
- var ne = (e, t, n) => (je(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 z, isEditing as F, isBrowser as j, getUserAttributes as He, checkIsDefined as G, logger as Z, fastClone as le, registerInsertMenu as Ke, setupBrowserForEditing as qe, createRegisterComponentMessage as ze, getDefaultCanTrack as Q, _track as me, isPreviewing as _e, fetchOneEntry as Ce, createEditorListener as Je, fetch as Ye, serializeComponentInfo as fe, handleABTestingSync as Ge } from "./server-entry-805a2c2a.js";
7
- import { createContext as Te, useState as C, useEffect as P, useContext as he, useRef as ee, createElement as we } from "react";
8
- const Qe = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Xe = (e) => typeof e == "string" && Qe.has(e.toLowerCase());
9
- function se(e) {
10
- return /* @__PURE__ */ s(w, { children: Xe(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 Ke = Object.defineProperty;
3
+ var qe = (e, t, n) => t in e ? Ke(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
+ var ie = (e, t, n) => (qe(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 _, isEditing as $, isBrowser as M, getUserAttributes as _e, checkIsDefined as G, logger as Z, fastClone as de, registerInsertMenu as ze, setupBrowserForEditing as Je, createRegisterComponentMessage as Ye, getDefaultCanTrack as Q, _track as he, isPreviewing as Ge, fetchOneEntry as we, createEditorListener as Qe, fetch as Xe, serializeComponentInfo as ge, handleABTestingSync as Ze } from "./server-entry-99f6be25.js";
7
+ import { createContext as Ee, useState as C, useEffect as P, useContext as be, useRef as ee, createElement as Re } from "react";
8
+ const et = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), tt = (e) => typeof e == "string" && et.has(e.toLowerCase());
9
+ function ue(e) {
10
+ return /* @__PURE__ */ s(E, { children: tt(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 }) }) });
11
11
  }
12
12
  const K = () => {
13
- switch (z) {
13
+ switch (_) {
14
14
  case "react":
15
15
  case "reactNative":
16
16
  case "rsc":
@@ -23,7 +23,7 @@ const K = () => {
23
23
  return "class";
24
24
  }
25
25
  };
26
- function Ze(e) {
26
+ function nt(e) {
27
27
  function t() {
28
28
  return {
29
29
  ...e.attributes,
@@ -38,7 +38,7 @@ function Ze(e) {
38
38
  };
39
39
  }
40
40
  return /* @__PURE__ */ s(
41
- se,
41
+ ue,
42
42
  {
43
43
  attributes: t(),
44
44
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
@@ -47,7 +47,7 @@ function Ze(e) {
47
47
  }
48
48
  );
49
49
  }
50
- const ce = Te({
50
+ const me = Ee({
51
51
  content: null,
52
52
  context: {},
53
53
  localState: void 0,
@@ -60,8 +60,8 @@ const ce = Te({
60
60
  inheritedStyles: {},
61
61
  BlocksWrapper: "div",
62
62
  BlocksWrapperProps: {}
63
- }), Ie = Te({ registeredComponents: {} });
64
- function et(e) {
63
+ }), Ve = Ee({ registeredComponents: {} });
64
+ function it(e) {
65
65
  var t;
66
66
  return {
67
67
  ...(t = e.component) == null ? void 0 : t.options,
@@ -72,7 +72,7 @@ function et(e) {
72
72
  builderBlock: e
73
73
  };
74
74
  }
75
- const tt = ({
75
+ const ot = ({
76
76
  builder: e,
77
77
  context: t,
78
78
  event: n,
@@ -84,35 +84,35 @@ const tt = ({
84
84
  builder: e,
85
85
  context: t,
86
86
  event: n
87
- }), nt = () => ({
88
- isEditing: F(),
89
- isBrowser: j(),
90
- isServer: !j(),
91
- getUserAttributes: () => He()
92
- }), it = (e, {
87
+ }), at = () => ({
88
+ isEditing: $(),
89
+ isBrowser: M(),
90
+ isServer: !M(),
91
+ getUserAttributes: () => _e()
92
+ }), rt = (e, {
93
93
  isExpression: t = !0
94
- }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, ge = ({
94
+ }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, pe = ({
95
95
  code: e,
96
96
  builder: t,
97
97
  context: n,
98
98
  event: i,
99
99
  localState: o,
100
- rootSetState: a,
101
- rootState: r
100
+ rootSetState: r,
101
+ rootState: a
102
102
  }) => {
103
- const l = tt({
103
+ const l = ot({
104
104
  builder: t,
105
105
  context: n,
106
106
  event: i,
107
- state: Ee({
108
- rootState: r,
107
+ state: Be({
108
+ rootState: a,
109
109
  localState: o,
110
- rootSetState: a
110
+ rootSetState: r
111
111
  })
112
112
  });
113
113
  return new Function(...l.map(([c]) => c), e)(...l.map(([, c]) => c));
114
114
  };
115
- function Ee({
115
+ function Be({
116
116
  rootState: e,
117
117
  localState: t,
118
118
  rootSetState: n
@@ -121,33 +121,33 @@ function Ee({
121
121
  get: (i, o) => {
122
122
  if (t && o in t)
123
123
  return t[o];
124
- const a = i[o];
125
- return typeof a == "object" && a !== null ? Ee({
126
- rootState: a,
124
+ const r = i[o];
125
+ return typeof r == "object" && r !== null ? Be({
126
+ rootState: r,
127
127
  localState: void 0,
128
- rootSetState: n ? (r) => {
129
- i[o] = r, n(i);
128
+ rootSetState: n ? (a) => {
129
+ i[o] = a, n(i);
130
130
  } : void 0
131
- }) : a;
131
+ }) : r;
132
132
  },
133
- set: (i, o, a) => {
133
+ set: (i, o, r) => {
134
134
  if (t && o in t)
135
135
  throw new Error("Writing to local state is not allowed as it is read-only.");
136
- return i[o] = a, n == null || n(i), !0;
136
+ return i[o] = r, n == null || n(i), !0;
137
137
  }
138
138
  });
139
139
  }
140
- function ot() {
140
+ function lt() {
141
141
  var e;
142
142
  return typeof process != "undefined" && G((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
143
143
  }
144
- const at = () => {
144
+ const st = () => {
145
145
  var i;
146
- if (!ot())
146
+ if (!lt())
147
147
  return !1;
148
148
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
149
149
  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;
150
- }, rt = (e) => (j() || at(), ge(e)), L = class L {
150
+ }, ct = (e) => (M() || st(), pe(e)), L = class L {
151
151
  static getCacheKey(t) {
152
152
  return JSON.stringify({
153
153
  ...t,
@@ -165,7 +165,7 @@ const at = () => {
165
165
  });
166
166
  }
167
167
  };
168
- ne(L, "cacheLimit", 20), ne(L, "cache", /* @__PURE__ */ new Map());
168
+ ie(L, "cacheLimit", 20), ie(L, "cache", /* @__PURE__ */ new Map());
169
169
  let U = L;
170
170
  function q({
171
171
  code: e,
@@ -173,49 +173,49 @@ function q({
173
173
  localState: n,
174
174
  rootState: i,
175
175
  rootSetState: o,
176
- event: a,
177
- isExpression: r = !0,
176
+ event: r,
177
+ isExpression: a = !0,
178
178
  enableCache: l
179
179
  }) {
180
180
  if (e === "")
181
181
  return;
182
182
  const c = {
183
- code: it(e, {
184
- isExpression: r
183
+ code: rt(e, {
184
+ isExpression: a
185
185
  }),
186
- builder: nt(),
186
+ builder: at(),
187
187
  context: t,
188
- event: a,
188
+ event: r,
189
189
  rootSetState: o,
190
190
  rootState: i,
191
191
  localState: n
192
192
  };
193
193
  if (l) {
194
- const d = U.getCacheKey(c), m = U.getCachedValue(d);
195
- if (m)
196
- return m.value;
194
+ const u = U.getCacheKey(c), f = U.getCachedValue(u);
195
+ if (f)
196
+ return f.value;
197
197
  }
198
198
  try {
199
- const d = rt(c);
199
+ const u = ct(c);
200
200
  if (l) {
201
- const m = U.getCacheKey(c);
202
- U.setCachedValue(m, d);
201
+ const f = U.getCacheKey(c);
202
+ U.setCachedValue(f, u);
203
203
  }
204
- return d;
205
- } catch (d) {
206
- Z.error("Failed code evaluation: " + d.message, {
204
+ return u;
205
+ } catch (u) {
206
+ Z.error("Failed code evaluation: " + u.message, {
207
207
  code: e
208
208
  });
209
209
  return;
210
210
  }
211
211
  }
212
- const Re = (e, t, n) => {
212
+ const Pe = (e, t, n) => {
213
213
  if (Object(e) !== e)
214
214
  return e;
215
215
  const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
216
- return i.slice(0, -1).reduce((o, a, r) => Object(o[a]) === o[a] ? o[a] : o[a] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
216
+ return i.slice(0, -1).reduce((o, r, a) => Object(o[r]) === o[r] ? o[r] : o[r] = Math.abs(Number(i[a + 1])) >> 0 === +i[a + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
217
217
  };
218
- const lt = ({
218
+ const dt = ({
219
219
  block: e,
220
220
  context: t,
221
221
  localState: n,
@@ -224,17 +224,17 @@ const lt = ({
224
224
  }) => {
225
225
  if (!e.bindings)
226
226
  return e;
227
- const a = le(e), r = {
228
- ...a,
227
+ const r = de(e), a = {
228
+ ...r,
229
229
  properties: {
230
- ...a.properties
230
+ ...r.properties
231
231
  },
232
232
  actions: {
233
- ...a.actions
233
+ ...r.actions
234
234
  }
235
235
  };
236
236
  for (const l in e.bindings) {
237
- const c = e.bindings[l], d = q({
237
+ const c = e.bindings[l], u = q({
238
238
  code: c,
239
239
  localState: n,
240
240
  rootState: i,
@@ -242,9 +242,9 @@ const lt = ({
242
242
  context: t,
243
243
  enableCache: !0
244
244
  });
245
- Re(r, l, d);
245
+ Pe(a, l, u);
246
246
  }
247
- return r;
247
+ return a;
248
248
  };
249
249
  function X({
250
250
  block: e,
@@ -252,27 +252,28 @@ function X({
252
252
  shouldEvaluateBindings: n,
253
253
  localState: i,
254
254
  rootState: o,
255
- rootSetState: a
255
+ rootSetState: r
256
256
  }) {
257
- const r = e;
258
- return n ? lt({
259
- block: r,
257
+ const a = e;
258
+ return n ? dt({
259
+ block: a,
260
260
  localState: i,
261
261
  rootState: o,
262
- rootSetState: a,
262
+ rootSetState: r,
263
263
  context: t
264
- }) : r;
264
+ }) : a;
265
265
  }
266
- function st(e, t, n = {}) {
267
- let i, o, a, r = null, l = 0;
266
+ const te = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
267
+ function ut(e, t, n = {}) {
268
+ let i, o, r, a = null, l = 0;
268
269
  const c = function() {
269
- l = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
270
+ l = n.leading === !1 ? 0 : Date.now(), a = null, r = e.apply(i, o), a || (i = o = null);
270
271
  };
271
272
  return function() {
272
- const d = Date.now();
273
- !l && n.leading === !1 && (l = d);
274
- const m = t - (d - l);
275
- return i = this, o = arguments, m <= 0 || m > t ? (r && (clearTimeout(r), r = null), l = d, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(c, m)), a;
273
+ const u = Date.now();
274
+ !l && n.leading === !1 && (l = u);
275
+ const f = t - (u - l);
276
+ return i = this, o = arguments, f <= 0 || f > t ? (a && (clearTimeout(a), a = null), l = u, r = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(c, f)), r;
276
277
  };
277
278
  }
278
279
  function H(e, ...t) {
@@ -280,124 +281,123 @@ function H(e, ...t) {
280
281
  for (let i = 1; i < arguments.length; i++) {
281
282
  const o = arguments[i];
282
283
  if (o != null)
283
- for (const a in o)
284
- Object.prototype.hasOwnProperty.call(o, a) && (n[a] = o[a]);
284
+ for (const r in o)
285
+ Object.prototype.hasOwnProperty.call(o, r) && (n[r] = o[r]);
285
286
  }
286
287
  return n;
287
288
  }
288
- const de = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
289
- function ct(e) {
289
+ function mt(e) {
290
290
  for (const t of e)
291
291
  switch (t.trigger) {
292
292
  case "pageLoad":
293
- Be(t);
293
+ We(t);
294
294
  break;
295
295
  case "scrollInView":
296
- ut(t);
296
+ ht(t);
297
297
  break;
298
298
  }
299
299
  }
300
- function Pe(e) {
300
+ function Ae(e) {
301
301
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
302
302
  }
303
- function Ve(e, t) {
304
- const n = dt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
305
- for (const l of r)
303
+ function Ne(e, t) {
304
+ const n = ft(e), i = getComputedStyle(t), o = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [o, r];
305
+ for (const l of a)
306
306
  for (const c of n)
307
307
  c in l || (l[c] = i[c]);
308
308
  }
309
- function dt(e) {
309
+ function ft(e) {
310
310
  const t = [];
311
311
  for (const n of e.steps)
312
312
  for (const i in n.styles)
313
313
  t.indexOf(i) === -1 && t.push(i);
314
314
  return t;
315
315
  }
316
- function Be(e) {
316
+ function We(e) {
317
317
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
318
318
  if (!t.length) {
319
- Pe(e.elementId || e.id || "");
319
+ Ae(e.elementId || e.id || "");
320
320
  return;
321
321
  }
322
322
  Array.from(t).forEach((n) => {
323
- Ve(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
324
- n.style.transition = `all ${e.duration}s ${de(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), H(n.style, e.steps[1].styles), setTimeout(() => {
323
+ Ne(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
324
+ n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), H(n.style, e.steps[1].styles), setTimeout(() => {
325
325
  n.style.transition = "", n.style.transitionDelay = "";
326
326
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
327
327
  });
328
328
  });
329
329
  }
330
- function ut(e) {
330
+ function ht(e) {
331
331
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
332
332
  if (!t.length) {
333
- Pe(e.elementId || e.id || "");
333
+ Ae(e.elementId || e.id || "");
334
334
  return;
335
335
  }
336
336
  Array.from(t).forEach((n) => {
337
- Ve(e, n);
337
+ Ne(e, n);
338
338
  let i = !1, o = !1;
339
- function a() {
339
+ function r() {
340
340
  !i && l(n) ? (i = !0, o = !0, setTimeout(() => {
341
- H(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
341
+ H(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
342
342
  o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
343
343
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
344
344
  })) : e.repeat && i && !o && !l(n) && (i = !1, H(n.style, e.steps[0].styles));
345
345
  }
346
- const r = st(a, 200, {
346
+ const a = ut(r, 200, {
347
347
  leading: !1
348
348
  });
349
- function l(m) {
350
- const u = m.getBoundingClientRect(), g = window.innerHeight, S = (e.thresholdPercent || 0) / 100 * g;
351
- return u.bottom > S && u.top < g - S;
349
+ function l(f) {
350
+ const d = f.getBoundingClientRect(), m = window.innerHeight, p = (e.thresholdPercent || 0) / 100 * m;
351
+ return d.bottom > p && d.top < m - p;
352
352
  }
353
353
  const c = e.steps[0].styles;
354
- function d() {
354
+ function u() {
355
355
  H(n.style, c);
356
356
  }
357
- d(), setTimeout(() => {
358
- n.style.transition = `all ${e.duration}s ${de(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
359
- }), document.addEventListener("scroll", r, {
357
+ u(), setTimeout(() => {
358
+ n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
359
+ }), document.addEventListener("scroll", a, {
360
360
  capture: !0,
361
361
  passive: !0
362
- }), a();
362
+ }), r();
363
363
  });
364
364
  }
365
- const mt = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Ae = (e) => Object.entries(e).map(([n, i]) => {
365
+ const Fe = (e) => Object.entries(e).map(([n, i]) => {
366
366
  if (typeof i == "string")
367
- return `${mt(n)}: ${i};`;
368
- }).filter(G), ft = (e) => Ae(e).join(`
367
+ return `${te(n)}: ${i};`;
368
+ }).filter(G), gt = (e) => Fe(e).join(`
369
369
  `), J = ({
370
370
  mediaQuery: e,
371
371
  className: t,
372
372
  styles: n
373
373
  }) => {
374
374
  const i = `.${t} {
375
- ${ft(n)}
375
+ ${gt(n)}
376
376
  }`;
377
377
  return e ? `${e} {
378
378
  ${i}
379
379
  }` : i;
380
380
  };
381
- function ht({
381
+ function bt({
382
382
  style: e
383
383
  }) {
384
384
  return e;
385
385
  }
386
- const gt = ({
386
+ const pt = ({
387
387
  block: e,
388
388
  context: t
389
- }) => We(ht({
389
+ }) => $e(bt({
390
390
  style: e.style || {},
391
391
  context: t,
392
392
  block: e
393
393
  }));
394
- function We(e) {
395
- switch (z) {
394
+ function $e(e) {
395
+ switch (_) {
396
396
  case "svelte":
397
397
  case "vue":
398
398
  case "solid":
399
399
  case "angular":
400
- return Ae(e).join(" ");
400
+ return Fe(e).join(" ");
401
401
  case "qwik":
402
402
  case "reactNative":
403
403
  case "react":
@@ -405,20 +405,20 @@ function We(e) {
405
405
  return e;
406
406
  }
407
407
  }
408
- const bt = ({
408
+ const yt = ({
409
409
  block: e,
410
410
  context: t,
411
411
  registeredComponents: n
412
412
  }) => {
413
- var a;
414
- const i = (a = X({
413
+ var r;
414
+ const i = (r = X({
415
415
  block: e,
416
416
  localState: t.localState,
417
417
  rootState: t.rootState,
418
418
  rootSetState: t.rootSetState,
419
419
  context: t.context,
420
420
  shouldEvaluateBindings: !1
421
- }).component) == null ? void 0 : a.name;
421
+ }).component) == null ? void 0 : r.name;
422
422
  if (!i)
423
423
  return null;
424
424
  const o = n[i];
@@ -427,7 +427,7 @@ const bt = ({
427
427
  console.warn(`
428
428
  Could not find a registered component named "${i}".
429
429
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
430
- }, yt = ({
430
+ }, xt = ({
431
431
  block: e,
432
432
  context: t
433
433
  }) => {
@@ -447,21 +447,21 @@ const bt = ({
447
447
  });
448
448
  if (!Array.isArray(o))
449
449
  return;
450
- const a = n.collection.split(".").pop(), r = n.itemName || (a ? a + "Item" : "item");
451
- return o.map((c, d) => ({
450
+ const r = n.collection.split(".").pop(), a = n.itemName || (r ? r + "Item" : "item");
451
+ return o.map((c, u) => ({
452
452
  context: {
453
453
  ...t,
454
454
  localState: {
455
455
  ...t.localState,
456
- $index: d,
456
+ $index: u,
457
457
  $item: c,
458
- [r]: c,
459
- [`$${r}Index`]: d
458
+ [a]: c,
459
+ [`$${a}Index`]: u
460
460
  }
461
461
  },
462
462
  block: i
463
463
  }));
464
- }, pt = (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)), Ne = {
464
+ }, 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)), De = {
465
465
  small: {
466
466
  min: 320,
467
467
  default: 321,
@@ -477,11 +477,11 @@ const bt = ({
477
477
  default: 991,
478
478
  max: 1200
479
479
  }
480
- }, be = (e, t = Ne) => `@media (max-width: ${t[e].max}px)`, $e = ({
480
+ }, ye = (e, t = De) => `@media (max-width: ${t[e].max}px)`, Le = ({
481
481
  small: e,
482
482
  medium: t
483
483
  }) => {
484
- const n = le(Ne);
484
+ const n = de(De);
485
485
  if (!e || !t)
486
486
  return n;
487
487
  const i = Math.floor(e / 2);
@@ -496,15 +496,15 @@ const bt = ({
496
496
  min: o,
497
497
  default: o + 1
498
498
  };
499
- const a = n.medium.max + 1;
499
+ const r = n.medium.max + 1;
500
500
  return n.large = {
501
501
  max: 2e3,
502
502
  // TODO: decide upper limit
503
- min: a,
504
- default: a + 1
503
+ min: r,
504
+ default: r + 1
505
505
  }, n;
506
506
  };
507
- function te(e) {
507
+ function ne(e) {
508
508
  return /* @__PURE__ */ s(
509
509
  "style",
510
510
  {
@@ -513,7 +513,7 @@ function te(e) {
513
513
  }
514
514
  );
515
515
  }
516
- function St(e) {
516
+ function kt(e) {
517
517
  function t() {
518
518
  const i = X({
519
519
  block: e.block,
@@ -526,7 +526,7 @@ function St(e) {
526
526
  return G(i.hide) ? !i.hide : G(i.show) ? i.show : !0;
527
527
  }
528
528
  function n() {
529
- var E, R, A;
529
+ var x, R, B;
530
530
  const i = X({
531
531
  block: e.block,
532
532
  localState: e.context.localState,
@@ -534,56 +534,56 @@ function St(e) {
534
534
  rootSetState: e.context.rootSetState,
535
535
  context: e.context.context,
536
536
  shouldEvaluateBindings: !0
537
- }), o = i.responsiveStyles, a = e.context.content, r = $e(
538
- ((E = a == null ? void 0 : a.meta) == null ? void 0 : E.breakpoints) || {}
539
- ), l = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, d = o == null ? void 0 : o.small, m = i.id;
540
- if (!m)
537
+ }), o = i.responsiveStyles, r = e.context.content, a = Le(
538
+ ((x = r == null ? void 0 : r.meta) == null ? void 0 : x.breakpoints) || {}
539
+ ), l = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, u = o == null ? void 0 : o.small, f = i.id;
540
+ if (!f)
541
541
  return "";
542
- const u = l ? J({
543
- className: m,
542
+ const d = l ? J({
543
+ className: f,
544
544
  styles: l
545
- }) : "", g = c ? J({
546
- className: m,
545
+ }) : "", m = c ? J({
546
+ className: f,
547
547
  styles: c,
548
- mediaQuery: be(
548
+ mediaQuery: ye(
549
549
  "medium",
550
- r
550
+ a
551
551
  )
552
- }) : "", y = d ? J({
553
- className: m,
554
- styles: d,
555
- mediaQuery: be(
552
+ }) : "", g = u ? J({
553
+ className: f,
554
+ styles: u,
555
+ mediaQuery: ye(
556
556
  "small",
557
- r
557
+ a
558
558
  )
559
- }) : "", S = i.animations && i.animations.find((W) => W.trigger === "hover");
559
+ }) : "", p = i.animations && i.animations.find((A) => A.trigger === "hover");
560
560
  let I = "";
561
- if (S) {
562
- const W = ((A = (R = S.steps) == null ? void 0 : R[1]) == null ? void 0 : A.styles) || {};
561
+ if (p) {
562
+ const A = ((B = (R = p.steps) == null ? void 0 : R[1]) == null ? void 0 : B.styles) || {};
563
563
  I = J({
564
- className: `${m}:hover`,
564
+ className: `${f}:hover`,
565
565
  styles: {
566
- ...W,
567
- transition: `all ${S.duration}s ${de(
568
- S.easing
566
+ ...A,
567
+ transition: `all ${p.duration}s ${te(
568
+ p.easing
569
569
  )}`,
570
- transitionDelay: S.delay ? `${S.delay}s` : "0s"
570
+ transitionDelay: p.delay ? `${p.delay}s` : "0s"
571
571
  }
572
572
  }) || "";
573
573
  }
574
574
  return [
575
- u,
575
+ d,
576
+ m,
576
577
  g,
577
- y,
578
578
  I
579
579
  ].join(" ");
580
580
  }
581
- return /* @__PURE__ */ s(w, { children: n() && t() ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(te, { id: "builderio-block", styles: n() }) }) : null });
581
+ return /* @__PURE__ */ s(E, { children: n() && t() ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(ne, { id: "builderio-block", styles: n() }) }) : null });
582
582
  }
583
- function vt(e) {
583
+ function Ct(e) {
584
584
  return e.charAt(0).toUpperCase() + e.slice(1);
585
585
  }
586
- const kt = (e) => `on${vt(e)}`, Ct = (e, t) => (n) => q({
586
+ const Tt = (e) => `on${Ct(e)}`, It = (e, t) => (n) => q({
587
587
  code: e,
588
588
  context: t.context,
589
589
  localState: t.localState,
@@ -593,66 +593,66 @@ const kt = (e) => `on${vt(e)}`, Ct = (e, t) => (n) => q({
593
593
  isExpression: !1,
594
594
  enableCache: !0
595
595
  });
596
- function Fe(e) {
596
+ function Oe(e) {
597
597
  var i;
598
598
  const t = {}, n = (i = e.block.actions) != null ? i : {};
599
599
  for (const o in n) {
600
600
  if (!n.hasOwnProperty(o))
601
601
  continue;
602
- const a = n[o];
603
- let r = kt(o);
602
+ const r = n[o];
603
+ let a = Tt(o);
604
604
  if (e.stripPrefix)
605
- switch (z) {
605
+ switch (_) {
606
606
  case "vue":
607
- r = r.replace("v-on:", "");
607
+ a = a.replace("v-on:", "");
608
608
  break;
609
609
  case "svelte":
610
- r = r.replace("on:", "");
610
+ a = a.replace("on:", "");
611
611
  break;
612
612
  }
613
- t[r] = Ct(a, e);
613
+ t[a] = It(r, e);
614
614
  }
615
615
  return t;
616
616
  }
617
- function Tt({
617
+ function wt({
618
618
  properties: e
619
619
  }) {
620
620
  return e;
621
621
  }
622
- const wt = (e) => ({
622
+ const Et = (e) => ({
623
623
  href: e.href
624
624
  });
625
- function ue({
625
+ function fe({
626
626
  block: e,
627
627
  context: t
628
628
  }) {
629
629
  var i;
630
630
  const n = {
631
- ...wt(e),
631
+ ...Et(e),
632
632
  ...e.properties,
633
633
  "builder-id": e.id,
634
- style: gt({
634
+ style: pt({
635
635
  block: e,
636
636
  context: t
637
637
  }),
638
638
  [K()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
639
639
  };
640
- return Tt({
640
+ return wt({
641
641
  properties: n,
642
642
  context: t,
643
643
  block: e
644
644
  });
645
645
  }
646
- function It(e) {
646
+ function Rt(e) {
647
647
  return /* @__PURE__ */ s(
648
- se,
648
+ ue,
649
649
  {
650
650
  TagName: e.Wrapper,
651
- attributes: ue({
651
+ attributes: fe({
652
652
  block: e.block,
653
653
  context: e.context
654
654
  }),
655
- actionAttributes: Fe({
655
+ actionAttributes: Oe({
656
656
  block: e.block,
657
657
  rootState: e.context.rootState,
658
658
  rootSetState: e.context.rootSetState,
@@ -664,14 +664,14 @@ function It(e) {
664
664
  }
665
665
  );
666
666
  }
667
- function Et(e) {
667
+ function Vt(e) {
668
668
  function t() {
669
669
  return e.includeBlockProps ? {
670
- ...ue({
670
+ ...fe({
671
671
  block: e.block,
672
672
  context: e.context
673
673
  }),
674
- ...Fe({
674
+ ...Oe({
675
675
  block: e.block,
676
676
  rootState: e.context.rootState,
677
677
  rootSetState: e.context.rootSetState,
@@ -682,14 +682,14 @@ function Et(e) {
682
682
  }
683
683
  return /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
684
684
  }
685
- const Rt = ({
685
+ const Bt = ({
686
686
  componentOptions: e,
687
687
  builderBlock: t,
688
688
  context: n,
689
689
  componentRef: i,
690
690
  includeBlockProps: o,
691
- isInteractive: a,
692
- contextValue: r
691
+ isInteractive: r,
692
+ contextValue: a
693
693
  }) => {
694
694
  const l = {
695
695
  ...e,
@@ -698,13 +698,13 @@ const Rt = ({
698
698
  * component itself directly. Otherwise, they are provided to the wrapper element.
699
699
  */
700
700
  ...o ? {
701
- attributes: ue({
701
+ attributes: fe({
702
702
  block: t,
703
- context: r
703
+ context: a
704
704
  })
705
705
  } : {}
706
706
  };
707
- return a ? {
707
+ return r ? {
708
708
  Wrapper: i,
709
709
  block: t,
710
710
  context: n,
@@ -712,15 +712,15 @@ const Rt = ({
712
712
  includeBlockProps: o
713
713
  } : l;
714
714
  };
715
- function ye(e) {
715
+ function xe(e) {
716
716
  var i;
717
717
  const [t, n] = C(
718
- () => e.isInteractive ? Et : e.componentRef
718
+ () => e.isInteractive ? Vt : e.componentRef
719
719
  );
720
- return /* @__PURE__ */ s(w, { children: e.componentRef ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
720
+ return /* @__PURE__ */ s(E, { children: e.componentRef ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
721
721
  t,
722
722
  {
723
- ...Rt({
723
+ ...Bt({
724
724
  componentOptions: e.componentOptions,
725
725
  builderBlock: e.builderBlock,
726
726
  context: e.context,
@@ -731,7 +731,7 @@ function ye(e) {
731
731
  contextValue: e.context
732
732
  }),
733
733
  children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ s(
734
- _,
734
+ z,
735
735
  {
736
736
  block: o,
737
737
  context: e.context,
@@ -745,8 +745,8 @@ function ye(e) {
745
745
  }
746
746
  function Pt(e) {
747
747
  const [t, n] = C(() => e.repeatContext);
748
- return /* @__PURE__ */ s(ce.Provider, { value: t, children: /* @__PURE__ */ s(
749
- _,
748
+ return /* @__PURE__ */ s(me.Provider, { value: t, children: /* @__PURE__ */ s(
749
+ z,
750
750
  {
751
751
  block: e.block,
752
752
  context: t,
@@ -755,24 +755,24 @@ function Pt(e) {
755
755
  }
756
756
  ) });
757
757
  }
758
- function _(e) {
759
- var c, d, m;
758
+ function z(e) {
759
+ var c, u, f;
760
760
  function t() {
761
- return bt({
761
+ return yt({
762
762
  block: e.block,
763
763
  context: e.context,
764
764
  registeredComponents: e.registeredComponents
765
765
  });
766
766
  }
767
767
  function n() {
768
- return yt({
768
+ return xt({
769
769
  block: e.block,
770
770
  context: e.context
771
771
  });
772
772
  }
773
773
  function i() {
774
- var u;
775
- return (u = e.block.repeat) != null && u.collection ? e.block : X({
774
+ var d;
775
+ return (d = e.block.repeat) != null && d.collection ? e.block : X({
776
776
  block: e.block,
777
777
  localState: e.context.localState,
778
778
  rootState: e.context.rootState,
@@ -782,32 +782,32 @@ function _(e) {
782
782
  });
783
783
  }
784
784
  function o() {
785
- var g;
786
- return e.block.tagName === "a" || ((g = i().properties) == null ? void 0 : g.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
787
- }
788
- function a() {
789
- var y, S;
790
- if ((y = e.block.repeat) != null && y.collection)
791
- return !!((S = n == null ? void 0 : n()) != null && S.length);
792
- const u = "hide" in i() ? i().hide : !1;
793
- return ("show" in i() ? i().show : !0) && !u;
785
+ var m;
786
+ return e.block.tagName === "a" || ((m = i().properties) == null ? void 0 : m.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
794
787
  }
795
788
  function r() {
796
- var g, y;
797
- return !((g = t == null ? void 0 : t()) != null && g.component) && !n() ? (y = i().children) != null ? y : [] : [];
789
+ var g, p;
790
+ if ((g = e.block.repeat) != null && g.collection)
791
+ return !!((p = n == null ? void 0 : n()) != null && p.length);
792
+ const d = "hide" in i() ? i().hide : !1;
793
+ return ("show" in i() ? i().show : !0) && !d;
794
+ }
795
+ function a() {
796
+ var m, g;
797
+ return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (g = i().children) != null ? g : [] : [];
798
798
  }
799
799
  function l() {
800
- var u, g, y, S;
800
+ var d, m, g, p;
801
801
  return {
802
- blockChildren: (u = i().children) != null ? u : [],
803
- componentRef: (g = t == null ? void 0 : t()) == null ? void 0 : g.component,
802
+ blockChildren: (d = i().children) != null ? d : [],
803
+ componentRef: (m = t == null ? void 0 : t()) == null ? void 0 : m.component,
804
804
  componentOptions: {
805
- ...et(i()),
805
+ ...it(i()),
806
806
  builderContext: e.context,
807
- ...pt(t()) ? {
807
+ ...St(t()) ? {
808
808
  builderLinkComponent: e.linkComponent
809
809
  } : {},
810
- ...xt(t()) ? {
810
+ ...vt(t()) ? {
811
811
  builderComponents: e.registeredComponents
812
812
  } : {}
813
813
  },
@@ -815,22 +815,22 @@ function _(e) {
815
815
  linkComponent: e.linkComponent,
816
816
  registeredComponents: e.registeredComponents,
817
817
  builderBlock: i(),
818
- includeBlockProps: ((y = t == null ? void 0 : t()) == null ? void 0 : y.noWrap) === !0,
819
- isInteractive: !((S = t == null ? void 0 : t()) != null && S.isRSC)
818
+ includeBlockProps: ((g = t == null ? void 0 : t()) == null ? void 0 : g.noWrap) === !0,
819
+ isInteractive: !((p = t == null ? void 0 : t()) != null && p.isRSC)
820
820
  };
821
821
  }
822
822
  return P(() => {
823
- const u = i().id, g = i().animations;
824
- g && u && ct(
825
- g.map((y) => ({
826
- ...y,
827
- elementId: u
823
+ const d = i().id, m = i().animations;
824
+ m && d && mt(
825
+ m.map((g) => ({
826
+ ...g,
827
+ elementId: d
828
828
  }))
829
829
  );
830
- }, []), /* @__PURE__ */ s(w, { children: a() ? /* @__PURE__ */ V(w, { children: [
831
- /* @__PURE__ */ s(St, { block: e.block, context: e.context }),
832
- (c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
833
- ye,
830
+ }, []), /* @__PURE__ */ s(E, { children: r() ? /* @__PURE__ */ V(E, { children: [
831
+ /* @__PURE__ */ s(kt, { block: e.block, context: e.context }),
832
+ (c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
833
+ xe,
834
834
  {
835
835
  componentRef: l().componentRef,
836
836
  componentOptions: l().componentOptions,
@@ -842,17 +842,17 @@ function _(e) {
842
842
  includeBlockProps: l().includeBlockProps,
843
843
  isInteractive: l().isInteractive
844
844
  }
845
- ) }) : /* @__PURE__ */ s(w, { children: n() ? /* @__PURE__ */ s(w, { children: (m = n()) == null ? void 0 : m.map((u, g) => /* @__PURE__ */ s(
845
+ ) }) : /* @__PURE__ */ s(E, { children: n() ? /* @__PURE__ */ s(E, { children: (f = n()) == null ? void 0 : f.map((d, m) => /* @__PURE__ */ s(
846
846
  Pt,
847
847
  {
848
- repeatContext: u.context,
849
- block: u.block,
848
+ repeatContext: d.context,
849
+ block: d.block,
850
850
  registeredComponents: e.registeredComponents,
851
851
  linkComponent: e.linkComponent
852
852
  },
853
- g
853
+ m
854
854
  )) }) : /* @__PURE__ */ V(
855
- It,
855
+ Rt,
856
856
  {
857
857
  Wrapper: o(),
858
858
  block: i(),
@@ -860,7 +860,7 @@ function _(e) {
860
860
  linkComponent: e.linkComponent,
861
861
  children: [
862
862
  /* @__PURE__ */ s(
863
- ye,
863
+ xe,
864
864
  {
865
865
  componentRef: l().componentRef,
866
866
  componentOptions: l().componentOptions,
@@ -873,29 +873,29 @@ function _(e) {
873
873
  isInteractive: l().isInteractive
874
874
  }
875
875
  ),
876
- (d = r()) == null ? void 0 : d.map((u) => /* @__PURE__ */ s(
877
- _,
876
+ (u = a()) == null ? void 0 : u.map((d) => /* @__PURE__ */ s(
877
+ z,
878
878
  {
879
- block: u,
879
+ block: d,
880
880
  registeredComponents: e.registeredComponents,
881
881
  linkComponent: e.linkComponent,
882
882
  context: e.context
883
883
  },
884
- u.id
884
+ d.id
885
885
  ))
886
886
  ]
887
887
  }
888
888
  ) })
889
889
  ] }) : null });
890
890
  }
891
- function Vt(e) {
891
+ function At(e) {
892
892
  function t() {
893
893
  var o;
894
894
  return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
895
895
  }
896
896
  function n() {
897
- var o, a;
898
- F() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
897
+ var o, r;
898
+ $() && !((o = e.blocks) != null && o.length) && ((r = window.parent) == null || r.postMessage(
899
899
  {
900
900
  type: "builder.clickEmptyBlocks",
901
901
  data: {
@@ -907,8 +907,8 @@ function Vt(e) {
907
907
  ));
908
908
  }
909
909
  function i() {
910
- var o, a;
911
- F() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
910
+ var o, r;
911
+ $() && !((o = e.blocks) != null && o.length) && ((r = window.parent) == null || r.postMessage(
912
912
  {
913
913
  type: "builder.hoverEmptyBlocks",
914
914
  data: {
@@ -919,7 +919,7 @@ function Vt(e) {
919
919
  "*"
920
920
  ));
921
921
  }
922
- return /* @__PURE__ */ V(w, { children: [
922
+ return /* @__PURE__ */ V(E, { children: [
923
923
  /* @__PURE__ */ s(
924
924
  e.BlocksWrapper,
925
925
  {
@@ -941,11 +941,11 @@ function Vt(e) {
941
941
  }` })
942
942
  ] });
943
943
  }
944
- function M(e) {
945
- var i, o, a;
946
- const t = he(ce), n = he(Ie);
944
+ function D(e) {
945
+ var i, o, r;
946
+ const t = be(me), n = be(Ve);
947
947
  return /* @__PURE__ */ s(
948
- Vt,
948
+ At,
949
949
  {
950
950
  blocks: e.blocks,
951
951
  parent: e.parent,
@@ -953,99 +953,99 @@ function M(e) {
953
953
  styleProp: e.styleProp,
954
954
  BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
955
955
  BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
956
- children: e.blocks ? /* @__PURE__ */ s(w, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ s(
957
- _,
956
+ children: e.blocks ? /* @__PURE__ */ s(E, { children: (r = e.blocks) == null ? void 0 : r.map((a) => /* @__PURE__ */ s(
957
+ z,
958
958
  {
959
- block: r,
959
+ block: a,
960
960
  linkComponent: e.linkComponent,
961
961
  context: e.context || t,
962
962
  registeredComponents: e.registeredComponents || n.registeredComponents
963
963
  },
964
- r.id
964
+ a.id
965
965
  )) }) : null
966
966
  }
967
967
  );
968
968
  }
969
- const Bt = (e) => `builder-columns ${e}-breakpoints`;
970
- function At(e) {
971
- var W, D;
969
+ const Nt = (e) => `builder-columns ${e}-breakpoints`;
970
+ function Wt(e) {
971
+ var A, O;
972
972
  const [t, n] = C(
973
973
  () => typeof e.space == "number" ? e.space || 0 : 20
974
- ), [i, o] = C(() => e.columns || []), [a, r] = C(
974
+ ), [i, o] = C(() => e.columns || []), [r, a] = C(
975
975
  () => e.stackColumnsAt || "tablet"
976
976
  );
977
- function l(x) {
978
- return x.link ? e.builderLinkComponent || "a" : "div";
977
+ function l(v) {
978
+ return v.link ? e.builderLinkComponent || "a" : "div";
979
979
  }
980
- function c(x) {
981
- var T;
982
- return ((T = i[x]) == null ? void 0 : T.width) || 100 / i.length;
980
+ function c(v) {
981
+ var w;
982
+ return ((w = i[v]) == null ? void 0 : w.width) || 100 / i.length;
983
983
  }
984
- function d(x) {
985
- const T = t * (i.length - 1) / i.length;
986
- return `calc(${c(x)}% - ${T}px)`;
984
+ function u(v) {
985
+ const w = t * (i.length - 1) / i.length;
986
+ return `calc(${c(v)}% - ${w}px)`;
987
987
  }
988
- function m({
989
- stackedStyle: x,
990
- desktopStyle: T
988
+ function f({
989
+ stackedStyle: v,
990
+ desktopStyle: w
991
991
  }) {
992
- return a === "tablet" ? x : T;
992
+ return r === "tablet" ? v : w;
993
993
  }
994
- function u({
995
- stackedStyle: x,
996
- desktopStyle: T
994
+ function d({
995
+ stackedStyle: v,
996
+ desktopStyle: w
997
997
  }) {
998
- return a === "never" ? T : x;
998
+ return r === "never" ? w : v;
999
999
  }
1000
- const [g, y] = C(
1000
+ const [m, g] = C(
1001
1001
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
1002
1002
  );
1003
- function S() {
1003
+ function p() {
1004
1004
  return {
1005
- "--flex-dir": g,
1006
- "--flex-dir-tablet": m({
1007
- stackedStyle: g,
1005
+ "--flex-dir": m,
1006
+ "--flex-dir-tablet": f({
1007
+ stackedStyle: m,
1008
1008
  desktopStyle: "row"
1009
1009
  })
1010
1010
  };
1011
1011
  }
1012
- function I(x) {
1013
- const T = x === 0 ? 0 : t, N = d(x), h = `${T}px`, f = "100%", b = 0;
1012
+ function I(v) {
1013
+ const w = v === 0 ? 0 : t, W = u(v), b = `${w}px`, h = "100%", y = 0;
1014
1014
  return {
1015
1015
  ...{
1016
1016
  display: "flex",
1017
1017
  flexDirection: "column",
1018
1018
  alignItems: "stretch"
1019
1019
  },
1020
- width: N,
1021
- ["marginLeft"]: h,
1022
- "--column-width-mobile": u({
1023
- stackedStyle: f,
1024
- desktopStyle: N
1020
+ width: W,
1021
+ ["marginLeft"]: b,
1022
+ "--column-width-mobile": d({
1023
+ stackedStyle: h,
1024
+ desktopStyle: W
1025
1025
  }),
1026
- "--column-margin-left-mobile": u({
1027
- stackedStyle: b,
1028
- desktopStyle: h
1026
+ "--column-margin-left-mobile": d({
1027
+ stackedStyle: y,
1028
+ desktopStyle: b
1029
1029
  }),
1030
- "--column-width-tablet": m({
1031
- stackedStyle: f,
1032
- desktopStyle: N
1030
+ "--column-width-tablet": f({
1031
+ stackedStyle: h,
1032
+ desktopStyle: W
1033
1033
  }),
1034
- "--column-margin-left-tablet": m({
1035
- stackedStyle: b,
1036
- desktopStyle: h
1034
+ "--column-margin-left-tablet": f({
1035
+ stackedStyle: y,
1036
+ desktopStyle: b
1037
1037
  })
1038
1038
  };
1039
1039
  }
1040
- function E(x) {
1041
- var N, h;
1042
- return $e(
1043
- ((h = (N = e.builderContext.content) == null ? void 0 : N.meta) == null ? void 0 : h.breakpoints) || {}
1044
- )[x].max;
1040
+ function x(v) {
1041
+ var W, b;
1042
+ return Le(
1043
+ ((b = (W = e.builderContext.content) == null ? void 0 : W.meta) == null ? void 0 : b.breakpoints) || {}
1044
+ )[v].max;
1045
1045
  }
1046
1046
  function R() {
1047
1047
  return `
1048
- @media (max-width: ${E("medium")}px) {
1048
+ @media (max-width: ${x("medium")}px) {
1049
1049
  .${e.builderBlock.id}-breakpoints {
1050
1050
  flex-direction: var(--flex-dir-tablet);
1051
1051
  align-items: stretch;
@@ -1057,7 +1057,7 @@ function At(e) {
1057
1057
  }
1058
1058
  }
1059
1059
 
1060
- @media (max-width: ${E("small")}px) {
1060
+ @media (max-width: ${x("small")}px) {
1061
1061
  .${e.builderBlock.id}-breakpoints {
1062
1062
  flex-direction: var(--flex-dir);
1063
1063
  align-items: stretch;
@@ -1070,33 +1070,33 @@ function At(e) {
1070
1070
  },
1071
1071
  `;
1072
1072
  }
1073
- function A(x, T) {
1073
+ function B(v, w) {
1074
1074
  return {
1075
- ...x.link ? {
1076
- href: x.link
1075
+ ...v.link ? {
1076
+ href: v.link
1077
1077
  } : {},
1078
1078
  [K()]: "builder-column",
1079
- style: We(I(T))
1079
+ style: $e(I(w))
1080
1080
  };
1081
1081
  }
1082
- return /* @__PURE__ */ V(w, { children: [
1082
+ return /* @__PURE__ */ V(E, { children: [
1083
1083
  /* @__PURE__ */ V(
1084
1084
  "div",
1085
1085
  {
1086
- className: Bt((W = e.builderBlock) == null ? void 0 : W.id) + " div-00cb97e2",
1087
- style: S(),
1086
+ className: Nt((A = e.builderBlock) == null ? void 0 : A.id) + " div-bade6b34",
1087
+ style: p(),
1088
1088
  children: [
1089
- /* @__PURE__ */ s(te, { id: "builderio-columns", styles: R() }),
1090
- (D = e.columns) == null ? void 0 : D.map((x, T) => /* @__PURE__ */ s(
1091
- se,
1089
+ /* @__PURE__ */ s(ne, { id: "builderio-columns", styles: R() }),
1090
+ (O = e.columns) == null ? void 0 : O.map((v, w) => /* @__PURE__ */ s(
1091
+ ue,
1092
1092
  {
1093
- TagName: l(x),
1093
+ TagName: l(v),
1094
1094
  actionAttributes: {},
1095
- attributes: A(x, T),
1095
+ attributes: B(v, w),
1096
1096
  children: /* @__PURE__ */ s(
1097
- M,
1097
+ D,
1098
1098
  {
1099
- path: `component.options.columns.${T}.blocks`,
1099
+ path: `component.options.columns.${w}.blocks`,
1100
1100
  parent: e.builderBlock.id,
1101
1101
  styleProp: {
1102
1102
  flexGrow: "1"
@@ -1104,86 +1104,86 @@ function At(e) {
1104
1104
  context: e.builderContext,
1105
1105
  registeredComponents: e.builderComponents,
1106
1106
  linkComponent: e.builderLinkComponent,
1107
- blocks: x.blocks
1107
+ blocks: v.blocks
1108
1108
  }
1109
1109
  )
1110
1110
  },
1111
- T
1111
+ w
1112
1112
  ))
1113
1113
  ]
1114
1114
  }
1115
1115
  ),
1116
- /* @__PURE__ */ s("style", { children: `.div-00cb97e2 {
1116
+ /* @__PURE__ */ s("style", { children: `.div-bade6b34 {
1117
1117
  display: flex;
1118
1118
  line-height: normal;
1119
1119
  }` })
1120
1120
  ] });
1121
1121
  }
1122
- function Wt(e) {
1122
+ function Ft(e) {
1123
1123
  return /* @__PURE__ */ s("span", { children: e.children });
1124
1124
  }
1125
- function pe(e) {
1125
+ function Se(e) {
1126
1126
  return e.replace(/http(s)?:/, "");
1127
1127
  }
1128
- function Nt(e = "", t, n) {
1128
+ function $t(e = "", t, n) {
1129
1129
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
1130
1130
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
1131
1131
  }
1132
- function $t(e, t) {
1132
+ function Dt(e, t) {
1133
1133
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1134
1134
  return e;
1135
1135
  if (t === "master")
1136
- return pe(e);
1136
+ return Se(e);
1137
1137
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1138
1138
  if (n) {
1139
- const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
1140
- return pe(`${i[0]}_${a}${o}`);
1139
+ const i = e.split(n[0]), o = n[3], r = t.match("x") ? t : `${t}x`;
1140
+ return Se(`${i[0]}_${r}${o}`);
1141
1141
  }
1142
1142
  return null;
1143
1143
  }
1144
- function ie(e) {
1144
+ function oe(e) {
1145
1145
  if (!e)
1146
1146
  return e;
1147
1147
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1148
1148
  if (e.match(/builder\.io/)) {
1149
1149
  let n = e;
1150
1150
  const i = Number(e.split("?width=")[1]);
1151
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Nt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1151
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${$t(e, "width", o)} ${o}w`).concat([n]).join(", ");
1152
1152
  }
1153
- 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;
1153
+ 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;
1154
1154
  }
1155
- function Ft(e) {
1156
- var o, a, r, l, c, d;
1155
+ function Lt(e) {
1156
+ var o, r, a, l, c, u;
1157
1157
  function t() {
1158
- var g;
1159
- const u = e.image || e.src;
1160
- if (!u || // We can auto add srcset for cdn.builder.io and shopify
1158
+ var m;
1159
+ const d = e.image || e.src;
1160
+ if (!d || // We can auto add srcset for cdn.builder.io and shopify
1161
1161
  // images, otherwise you can supply this prop manually
1162
- !(u.match(/builder\.io/) || u.match(/cdn\.shopify\.com/)))
1162
+ !(d.match(/builder\.io/) || d.match(/cdn\.shopify\.com/)))
1163
1163
  return e.srcset;
1164
- if (e.srcset && ((g = e.image) != null && g.includes("builder.io/api/v1/image"))) {
1164
+ if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
1165
1165
  if (!e.srcset.includes(e.image.split("?")[0]))
1166
- return console.debug("Removed given srcset"), ie(u);
1166
+ return console.debug("Removed given srcset"), oe(d);
1167
1167
  } else if (e.image && !e.srcset)
1168
- return ie(u);
1169
- return ie(u);
1168
+ return oe(d);
1169
+ return oe(d);
1170
1170
  }
1171
1171
  function n() {
1172
- var m;
1173
- return (m = t == null ? void 0 : t()) != null && m.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
1172
+ var f;
1173
+ return (f = t == null ? void 0 : t()) != null && f.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
1174
1174
  }
1175
1175
  function i() {
1176
- const m = {
1176
+ const f = {
1177
1177
  position: "absolute",
1178
1178
  height: "100%",
1179
1179
  width: "100%",
1180
1180
  left: "0px",
1181
1181
  top: "0px"
1182
1182
  };
1183
- return e.aspectRatio ? m : void 0;
1183
+ return e.aspectRatio ? f : void 0;
1184
1184
  }
1185
- return /* @__PURE__ */ V(w, { children: [
1186
- /* @__PURE__ */ V(w, { children: [
1185
+ return /* @__PURE__ */ V(E, { children: [
1186
+ /* @__PURE__ */ V(E, { children: [
1187
1187
  /* @__PURE__ */ V("picture", { children: [
1188
1188
  n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1189
1189
  /* @__PURE__ */ s(
@@ -1204,7 +1204,7 @@ function Ft(e) {
1204
1204
  }
1205
1205
  )
1206
1206
  ] }),
1207
- e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ s(
1207
+ e.aspectRatio && !((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ s(
1208
1208
  "div",
1209
1209
  {
1210
1210
  className: "builder-image-sizer div-3ac67dd4",
@@ -1213,8 +1213,8 @@ function Ft(e) {
1213
1213
  }
1214
1214
  }
1215
1215
  ) : null,
1216
- (l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(w, { children: e.children }) : null,
1217
- !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
1216
+ (l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(E, { children: e.children }) : null,
1217
+ !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
1218
1218
  ] }),
1219
1219
  /* @__PURE__ */ s("style", { children: `.img-3ac67dd4 {
1220
1220
  opacity: 1;
@@ -1235,7 +1235,7 @@ function Ft(e) {
1235
1235
  }` })
1236
1236
  ] });
1237
1237
  }
1238
- function Lt(e) {
1238
+ function Ot(e) {
1239
1239
  return /* @__PURE__ */ s(
1240
1240
  "section",
1241
1241
  {
@@ -1256,7 +1256,249 @@ function Lt(e) {
1256
1256
  }
1257
1257
  );
1258
1258
  }
1259
- const Dt = {
1259
+ const ae = {
1260
+ "@type": "@builder.io/sdk:Element",
1261
+ layerName: "Accordion item title",
1262
+ responsiveStyles: {
1263
+ large: {
1264
+ marginTop: "10px",
1265
+ position: "relative",
1266
+ display: "flex",
1267
+ alignItems: "stretch",
1268
+ flexDirection: "column",
1269
+ paddingBottom: "10px"
1270
+ }
1271
+ },
1272
+ children: [{
1273
+ "@type": "@builder.io/sdk:Element",
1274
+ responsiveStyles: {
1275
+ large: {
1276
+ textAlign: "left",
1277
+ display: "flex",
1278
+ flexDirection: "column"
1279
+ }
1280
+ },
1281
+ component: {
1282
+ name: "Text",
1283
+ options: {
1284
+ text: "I am an accordion title. Click me!"
1285
+ }
1286
+ }
1287
+ }]
1288
+ }, re = {
1289
+ "@type": "@builder.io/sdk:Element",
1290
+ layerName: "Accordion item detail",
1291
+ responsiveStyles: {
1292
+ large: {
1293
+ position: "relative",
1294
+ display: "flex",
1295
+ alignItems: "stretch",
1296
+ flexDirection: "column",
1297
+ marginTop: "10px",
1298
+ paddingBottom: "10px"
1299
+ }
1300
+ },
1301
+ children: [{
1302
+ "@type": "@builder.io/sdk:Element",
1303
+ responsiveStyles: {
1304
+ large: {
1305
+ paddingTop: "50px",
1306
+ textAlign: "left",
1307
+ display: "flex",
1308
+ flexDirection: "column",
1309
+ paddingBottom: "50px"
1310
+ }
1311
+ },
1312
+ component: {
1313
+ name: "Text",
1314
+ options: {
1315
+ text: "I am an accordion detail, hello!"
1316
+ }
1317
+ }
1318
+ }]
1319
+ }, jt = {
1320
+ name: "Builder:Accordion",
1321
+ canHaveChildren: !0,
1322
+ image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
1323
+ defaultStyles: {
1324
+ display: "flex",
1325
+ flexDirection: "column",
1326
+ alignItems: "stretch"
1327
+ },
1328
+ inputs: [{
1329
+ name: "items",
1330
+ type: "list",
1331
+ broadcast: !0,
1332
+ subFields: [{
1333
+ name: "title",
1334
+ type: "uiBlocks",
1335
+ hideFromUI: !0,
1336
+ defaultValue: [ae]
1337
+ }, {
1338
+ name: "detail",
1339
+ type: "uiBlocks",
1340
+ hideFromUI: !0,
1341
+ defaultValue: [re]
1342
+ }],
1343
+ defaultValue: [{
1344
+ title: [ae],
1345
+ detail: [re]
1346
+ }, {
1347
+ title: [ae],
1348
+ detail: [re]
1349
+ }],
1350
+ showIf: (e) => !e.get("useChildrenForItems")
1351
+ }, {
1352
+ name: "oneAtATime",
1353
+ helperText: "Only allow opening one at a time (collapse all others when new item openned)",
1354
+ type: "boolean",
1355
+ defaultValue: !1
1356
+ }, {
1357
+ name: "grid",
1358
+ helperText: "Display as a grid",
1359
+ type: "boolean",
1360
+ defaultValue: !1
1361
+ }, {
1362
+ name: "gridRowWidth",
1363
+ helperText: "Display as a grid",
1364
+ type: "string",
1365
+ showIf: (e) => e.get("grid"),
1366
+ defaultValue: "25%"
1367
+ }, {
1368
+ name: "useChildrenForItems",
1369
+ type: "boolean",
1370
+ helperText: "Use child elements for each slide, instead of the array. Useful for dynamically repeating items",
1371
+ advanced: !0,
1372
+ defaultValue: !1,
1373
+ onChange: (e) => {
1374
+ e.get("useChildrenForItems") === !0 && e.set("items", []);
1375
+ }
1376
+ }]
1377
+ }, ve = (e) => e.toString();
1378
+ function Ut(e) {
1379
+ var d;
1380
+ const [t, n] = C(() => []);
1381
+ function i() {
1382
+ return !!(e.grid || e.oneAtATime);
1383
+ }
1384
+ function o() {
1385
+ return {
1386
+ display: "flex",
1387
+ alignItems: "stretch",
1388
+ flexDirection: "column",
1389
+ ...e.grid && {
1390
+ flexDirection: "row",
1391
+ alignItems: "flex-start",
1392
+ flexWrap: "wrap"
1393
+ }
1394
+ };
1395
+ }
1396
+ function r() {
1397
+ const g = {
1398
+ ...{
1399
+ display: "flex",
1400
+ flexDirection: "column"
1401
+ },
1402
+ alignItems: "stretch",
1403
+ cursor: "pointer"
1404
+ };
1405
+ return Object.fromEntries(
1406
+ Object.entries(g).filter(([p, I]) => I !== void 0)
1407
+ );
1408
+ }
1409
+ function a(m) {
1410
+ return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
1411
+ }
1412
+ function l(m) {
1413
+ return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
1414
+ }
1415
+ function c() {
1416
+ let m = null;
1417
+ if (e.grid && t.length && document) {
1418
+ const p = t[0];
1419
+ let x = document.querySelector(
1420
+ `.builder-accordion-title[data-index="${p}"]`
1421
+ );
1422
+ if (m = p, x) {
1423
+ let R = x.getBoundingClientRect();
1424
+ for (; x = x && x.nextElementSibling; )
1425
+ if (x) {
1426
+ if (x.classList.contains("builder-accordion-detail"))
1427
+ continue;
1428
+ const B = x.getBoundingClientRect();
1429
+ if (B.left > R.left) {
1430
+ const A = parseInt(
1431
+ x.getAttribute("data-index") || "",
1432
+ 10
1433
+ );
1434
+ isNaN(A) || (R = B, m = A);
1435
+ } else
1436
+ break;
1437
+ }
1438
+ }
1439
+ }
1440
+ return typeof m == "number" && (m = m + 1), m;
1441
+ }
1442
+ function u() {
1443
+ const m = {
1444
+ order: typeof c() == "number" ? c() : void 0,
1445
+ ...e.grid && {
1446
+ width: "100%"
1447
+ }
1448
+ };
1449
+ return Object.fromEntries(
1450
+ Object.entries(m).filter(([g, p]) => p !== void 0)
1451
+ );
1452
+ }
1453
+ function f(m) {
1454
+ t.includes(m) ? n(i() ? [] : t.filter((g) => g !== m)) : n(i() ? [m] : t.concat(m));
1455
+ }
1456
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m, g) => /* @__PURE__ */ V(E, { children: [
1457
+ /* @__PURE__ */ s(
1458
+ "div",
1459
+ {
1460
+ className: a(g),
1461
+ style: {
1462
+ ...r(),
1463
+ width: e.grid ? e.gridRowWidth : void 0,
1464
+ order: c() !== null ? ve(g) : ve(g + 1)
1465
+ },
1466
+ "data-index": g,
1467
+ onClick: (p) => f(g),
1468
+ children: /* @__PURE__ */ s(
1469
+ D,
1470
+ {
1471
+ blocks: m.title,
1472
+ path: `items.${g}.title`,
1473
+ parent: e.builderBlock.id,
1474
+ context: e.builderContext,
1475
+ registeredComponents: e.builderComponents,
1476
+ linkComponent: e.builderLinkComponent
1477
+ }
1478
+ )
1479
+ }
1480
+ ),
1481
+ t.includes(g) ? /* @__PURE__ */ s(
1482
+ "div",
1483
+ {
1484
+ className: l(g),
1485
+ style: u(),
1486
+ children: /* @__PURE__ */ s(
1487
+ D,
1488
+ {
1489
+ blocks: m.detail,
1490
+ path: `items.${g}.detail`,
1491
+ parent: e.builderBlock.id,
1492
+ context: e.builderContext,
1493
+ registeredComponents: e.builderComponents,
1494
+ linkComponent: e.builderLinkComponent
1495
+ }
1496
+ )
1497
+ }
1498
+ ) : null
1499
+ ] })) });
1500
+ }
1501
+ const Mt = {
1260
1502
  name: "Core:Button",
1261
1503
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1262
1504
  defaultStyles: {
@@ -1289,7 +1531,7 @@ const Dt = {
1289
1531
  }],
1290
1532
  static: !0,
1291
1533
  noWrap: !0
1292
- }, Mt = {
1534
+ }, Ht = {
1293
1535
  // TODO: ways to statically preprocess JSON for references, functions, etc
1294
1536
  name: "Columns",
1295
1537
  isRSC: !0,
@@ -1468,7 +1710,7 @@ const Dt = {
1468
1710
  });
1469
1711
  }
1470
1712
  const n = e.get("columns");
1471
- Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((l, c) => l + c.get("width"), 0) !== 100) && t();
1713
+ Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((l, c) => l + c.get("width"), 0) !== 100) && t();
1472
1714
  }
1473
1715
  }, {
1474
1716
  name: "space",
@@ -1490,13 +1732,13 @@ const Dt = {
1490
1732
  helperText: "When stacking columns for mobile devices, reverse the ordering",
1491
1733
  advanced: !0
1492
1734
  }]
1493
- }, Ot = {
1735
+ }, Kt = {
1494
1736
  name: "Fragment",
1495
1737
  static: !0,
1496
1738
  hidden: !0,
1497
1739
  canHaveChildren: !0,
1498
1740
  noWrap: !0
1499
- }, Ut = {
1741
+ }, qt = {
1500
1742
  name: "Image",
1501
1743
  static: !0,
1502
1744
  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",
@@ -1516,29 +1758,29 @@ const Dt = {
1516
1758
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1517
1759
  onChange: (e) => {
1518
1760
  e.delete("srcset"), e.delete("noWebp");
1519
- function n(r, l = 6e4) {
1520
- return new Promise((c, d) => {
1521
- const m = document.createElement("img");
1522
- let u = !1;
1523
- m.onload = () => {
1524
- u = !0, c(m);
1525
- }, m.addEventListener("error", (g) => {
1526
- console.warn("Image load failed", g.error), d(g.error);
1527
- }), m.src = r, setTimeout(() => {
1528
- u || d(new Error("Image load timed out"));
1761
+ function n(a, l = 6e4) {
1762
+ return new Promise((c, u) => {
1763
+ const f = document.createElement("img");
1764
+ let d = !1;
1765
+ f.onload = () => {
1766
+ d = !0, c(f);
1767
+ }, f.addEventListener("error", (m) => {
1768
+ console.warn("Image load failed", m.error), u(m.error);
1769
+ }), f.src = a, setTimeout(() => {
1770
+ d || u(new Error("Image load timed out"));
1529
1771
  }, l);
1530
1772
  });
1531
1773
  }
1532
- function i(r) {
1533
- return Math.round(r * 1e3) / 1e3;
1774
+ function i(a) {
1775
+ return Math.round(a * 1e3) / 1e3;
1534
1776
  }
1535
- const o = e.get("image"), a = e.get("aspectRatio");
1536
- if (fetch(o).then((r) => r.blob()).then((r) => {
1537
- r.type.includes("svg") && e.set("noWebp", !0);
1538
- }), o && (!a || a === 0.7041))
1539
- return n(o).then((r) => {
1777
+ const o = e.get("image"), r = e.get("aspectRatio");
1778
+ if (fetch(o).then((a) => a.blob()).then((a) => {
1779
+ a.type.includes("svg") && e.set("noWebp", !0);
1780
+ }), o && (!r || r === 0.7041))
1781
+ return n(o).then((a) => {
1540
1782
  const l = e.get("aspectRatio");
1541
- e.get("image") === o && (!l || l === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
1783
+ e.get("image") === o && (!l || l === 0.7041) && a.width && a.height && (e.set("aspectRatio", i(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
1542
1784
  });
1543
1785
  }
1544
1786
  }, {
@@ -1596,7 +1838,7 @@ const Dt = {
1596
1838
  advanced: !0,
1597
1839
  defaultValue: 0.7041
1598
1840
  }]
1599
- }, jt = {
1841
+ }, _t = {
1600
1842
  name: "Core:Section",
1601
1843
  static: !0,
1602
1844
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1635,7 +1877,7 @@ const Dt = {
1635
1877
  }
1636
1878
  }
1637
1879
  }]
1638
- }, Ht = {
1880
+ }, zt = {
1639
1881
  name: "Slot",
1640
1882
  isRSC: !0,
1641
1883
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1649,7 +1891,7 @@ const Dt = {
1649
1891
  defaultValue: "children"
1650
1892
  }]
1651
1893
  };
1652
- function Kt(e) {
1894
+ function Jt(e) {
1653
1895
  var t, n, i;
1654
1896
  return /* @__PURE__ */ s(
1655
1897
  "div",
@@ -1661,7 +1903,7 @@ function Kt(e) {
1661
1903
  "builder-slot": e.name
1662
1904
  },
1663
1905
  children: /* @__PURE__ */ s(
1664
- M,
1906
+ D,
1665
1907
  {
1666
1908
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
1667
1909
  path: `symbol.data.${e.name}`,
@@ -1672,7 +1914,7 @@ function Kt(e) {
1672
1914
  }
1673
1915
  );
1674
1916
  }
1675
- const qt = {
1917
+ const Yt = {
1676
1918
  name: "Symbol",
1677
1919
  noWrap: !0,
1678
1920
  static: !0,
@@ -1705,7 +1947,7 @@ const qt = {
1705
1947
  hideFromUI: !0,
1706
1948
  type: "boolean"
1707
1949
  }]
1708
- }, oe = {
1950
+ }, le = {
1709
1951
  "@type": "@builder.io/sdk:Element",
1710
1952
  responsiveStyles: {
1711
1953
  large: {
@@ -1727,7 +1969,7 @@ const qt = {
1727
1969
  text: "New tab"
1728
1970
  }
1729
1971
  }
1730
- }, ae = {
1972
+ }, se = {
1731
1973
  "@type": "@builder.io/sdk:Element",
1732
1974
  responsiveStyles: {
1733
1975
  large: {
@@ -1743,7 +1985,7 @@ const qt = {
1743
1985
  text: "New tab content "
1744
1986
  }
1745
1987
  }
1746
- }, zt = {
1988
+ }, Gt = {
1747
1989
  name: "Builder: Tabs",
1748
1990
  inputs: [{
1749
1991
  name: "tabs",
@@ -1753,16 +1995,16 @@ const qt = {
1753
1995
  name: "label",
1754
1996
  type: "uiBlocks",
1755
1997
  hideFromUI: !0,
1756
- defaultValue: [oe]
1998
+ defaultValue: [le]
1757
1999
  }, {
1758
2000
  name: "content",
1759
2001
  type: "uiBlocks",
1760
2002
  hideFromUI: !0,
1761
- defaultValue: [ae]
2003
+ defaultValue: [se]
1762
2004
  }],
1763
2005
  defaultValue: [{
1764
2006
  label: [{
1765
- ...oe,
2007
+ ...le,
1766
2008
  component: {
1767
2009
  name: "Text",
1768
2010
  options: {
@@ -1771,7 +2013,7 @@ const qt = {
1771
2013
  }
1772
2014
  }],
1773
2015
  content: [{
1774
- ...ae,
2016
+ ...se,
1775
2017
  component: {
1776
2018
  name: "Text",
1777
2019
  options: {
@@ -1781,7 +2023,7 @@ const qt = {
1781
2023
  }]
1782
2024
  }, {
1783
2025
  label: [{
1784
- ...oe,
2026
+ ...le,
1785
2027
  component: {
1786
2028
  name: "Text",
1787
2029
  options: {
@@ -1790,7 +2032,7 @@ const qt = {
1790
2032
  }
1791
2033
  }],
1792
2034
  content: [{
1793
- ...ae,
2035
+ ...se,
1794
2036
  component: {
1795
2037
  name: "Text",
1796
2038
  options: {
@@ -1841,16 +2083,16 @@ const qt = {
1841
2083
  }]
1842
2084
  }]
1843
2085
  };
1844
- function _t(e) {
1845
- var a;
2086
+ function Qt(e) {
2087
+ var r;
1846
2088
  const [t, n] = C(
1847
2089
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
1848
2090
  );
1849
- function i(r) {
1850
- return e.tabs && e.tabs[r].content;
2091
+ function i(a) {
2092
+ return e.tabs && e.tabs[a].content;
1851
2093
  }
1852
- function o(r) {
1853
- return t === r ? e.activeTabStyle : {};
2094
+ function o(a) {
2095
+ a === t && e.collapsible ? n(-1) : n(a);
1854
2096
  }
1855
2097
  return /* @__PURE__ */ V("div", { children: [
1856
2098
  /* @__PURE__ */ s(
@@ -1863,20 +2105,20 @@ function _t(e) {
1863
2105
  justifyContent: e.tabHeaderLayout || "flex-start",
1864
2106
  overflow: "auto"
1865
2107
  },
1866
- children: (a = e.tabs) == null ? void 0 : a.map((r, l) => /* @__PURE__ */ s(
2108
+ children: (r = e.tabs) == null ? void 0 : r.map((a, l) => /* @__PURE__ */ s(
1867
2109
  "span",
1868
2110
  {
1869
2111
  className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
1870
- style: o(l),
1871
- onClick: (c) => {
1872
- l === t && e.collapsible ? n(-1) : n(l);
2112
+ style: {
2113
+ ...t === l ? e.activeTabStyle : {}
1873
2114
  },
2115
+ onClick: (c) => o(l),
1874
2116
  children: /* @__PURE__ */ s(
1875
- M,
2117
+ D,
1876
2118
  {
1877
2119
  parent: e.builderBlock.id,
1878
2120
  path: `component.options.tabs.${l}.label`,
1879
- blocks: r.label,
2121
+ blocks: a.label,
1880
2122
  context: e.builderContext,
1881
2123
  registeredComponents: e.builderComponents,
1882
2124
  linkComponent: e.builderLinkComponent
@@ -1888,7 +2130,7 @@ function _t(e) {
1888
2130
  }
1889
2131
  ),
1890
2132
  i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
1891
- M,
2133
+ D,
1892
2134
  {
1893
2135
  parent: e.builderBlock.id,
1894
2136
  path: `component.options.tabs.${t}.content`,
@@ -1900,7 +2142,7 @@ function _t(e) {
1900
2142
  ) }) : null
1901
2143
  ] });
1902
2144
  }
1903
- const Jt = {
2145
+ const Xt = {
1904
2146
  name: "Text",
1905
2147
  static: !0,
1906
2148
  isRSC: !0,
@@ -1919,7 +2161,7 @@ const Jt = {
1919
2161
  textAlign: "center"
1920
2162
  }
1921
2163
  };
1922
- function Yt(e) {
2164
+ function Zt(e) {
1923
2165
  var t;
1924
2166
  return /* @__PURE__ */ s(
1925
2167
  "div",
@@ -1932,7 +2174,7 @@ function Yt(e) {
1932
2174
  }
1933
2175
  );
1934
2176
  }
1935
- const Gt = {
2177
+ const en = {
1936
2178
  name: "Custom Code",
1937
2179
  static: !0,
1938
2180
  requiredPermissions: ["editCode"],
@@ -1955,32 +2197,32 @@ const Gt = {
1955
2197
  advanced: !0
1956
2198
  }]
1957
2199
  };
1958
- function Qt(e) {
1959
- const t = ee(null), [n, i] = C(() => []), [o, a] = C(() => []);
2200
+ function tn(e) {
2201
+ const t = ee(null), [n, i] = C(() => []), [o, r] = C(() => []);
1960
2202
  return P(() => {
1961
2203
  var l;
1962
2204
  if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
1963
2205
  return;
1964
- const r = t.current.getElementsByTagName("script");
1965
- for (let c = 0; c < r.length; c++) {
1966
- const d = r[c];
1967
- if (d.src) {
1968
- if (n.includes(d.src))
2206
+ const a = t.current.getElementsByTagName("script");
2207
+ for (let c = 0; c < a.length; c++) {
2208
+ const u = a[c];
2209
+ if (u.src) {
2210
+ if (n.includes(u.src))
1969
2211
  continue;
1970
- n.push(d.src);
1971
- const m = document.createElement("script");
1972
- m.async = !0, m.src = d.src, document.head.appendChild(m);
1973
- } else if (!d.type || [
2212
+ n.push(u.src);
2213
+ const f = document.createElement("script");
2214
+ f.async = !0, f.src = u.src, document.head.appendChild(f);
2215
+ } else if (!u.type || [
1974
2216
  "text/javascript",
1975
2217
  "application/javascript",
1976
2218
  "application/ecmascript"
1977
- ].includes(d.type)) {
1978
- if (o.includes(d.innerText))
2219
+ ].includes(u.type)) {
2220
+ if (o.includes(u.innerText))
1979
2221
  continue;
1980
2222
  try {
1981
- o.push(d.innerText), new Function(d.innerText)();
1982
- } catch (m) {
1983
- console.warn("`CustomCode`: Error running script:", m);
2223
+ o.push(u.innerText), new Function(u.innerText)();
2224
+ } catch (f) {
2225
+ console.warn("`CustomCode`: Error running script:", f);
1984
2226
  }
1985
2227
  }
1986
2228
  }
@@ -1993,7 +2235,7 @@ function Qt(e) {
1993
2235
  }
1994
2236
  );
1995
2237
  }
1996
- const Xt = {
2238
+ const nn = {
1997
2239
  name: "Embed",
1998
2240
  static: !0,
1999
2241
  inputs: [{
@@ -2018,30 +2260,30 @@ const Xt = {
2018
2260
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2019
2261
  hideFromUI: !0
2020
2262
  }]
2021
- }, Zt = ["text/javascript", "application/javascript", "application/ecmascript"], en = (e) => Zt.includes(e.type);
2022
- function tn(e) {
2023
- const t = ee(null), [n, i] = C(() => []), [o, a] = C(() => []), [r, l] = C(() => !1);
2263
+ }, on = ["text/javascript", "application/javascript", "application/ecmascript"], an = (e) => on.includes(e.type);
2264
+ function rn(e) {
2265
+ const t = ee(null), [n, i] = C(() => []), [o, r] = C(() => []), [a, l] = C(() => !1);
2024
2266
  function c() {
2025
2267
  if (!t.current || !t.current.getElementsByTagName)
2026
2268
  return;
2027
- const d = t.current.getElementsByTagName("script");
2028
- for (let m = 0; m < d.length; m++) {
2029
- const u = d[m];
2030
- if (u.src && !n.includes(u.src)) {
2031
- n.push(u.src);
2032
- const g = document.createElement("script");
2033
- g.async = !0, g.src = u.src, document.head.appendChild(g);
2034
- } else if (en(u) && !o.includes(u.innerText))
2269
+ const u = t.current.getElementsByTagName("script");
2270
+ for (let f = 0; f < u.length; f++) {
2271
+ const d = u[f];
2272
+ if (d.src && !n.includes(d.src)) {
2273
+ n.push(d.src);
2274
+ const m = document.createElement("script");
2275
+ m.async = !0, m.src = d.src, document.head.appendChild(m);
2276
+ } else if (an(d) && !o.includes(d.innerText))
2035
2277
  try {
2036
- o.push(u.innerText), new Function(u.innerText)();
2037
- } catch (g) {
2038
- console.warn("`Embed`: Error running script:", g);
2278
+ o.push(d.innerText), new Function(d.innerText)();
2279
+ } catch (m) {
2280
+ console.warn("`Embed`: Error running script:", m);
2039
2281
  }
2040
2282
  }
2041
2283
  }
2042
2284
  return P(() => {
2043
- t.current && !r && (l(!0), c());
2044
- }, [t.current, r]), /* @__PURE__ */ s(
2285
+ t.current && !a && (l(!0), c());
2286
+ }, [t.current, a]), /* @__PURE__ */ s(
2045
2287
  "div",
2046
2288
  {
2047
2289
  className: "builder-embed",
@@ -2050,7 +2292,7 @@ function tn(e) {
2050
2292
  }
2051
2293
  );
2052
2294
  }
2053
- const nn = {
2295
+ const ln = {
2054
2296
  name: "Form:Form",
2055
2297
  // editableTags: ['builder-form-error']
2056
2298
  defaults: {
@@ -2281,125 +2523,123 @@ const nn = {
2281
2523
  }
2282
2524
  }
2283
2525
  }]
2284
- }, on = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], an = () => {
2526
+ }, sn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], cn = () => {
2285
2527
  const e = process.env.NODE_ENV || "production";
2286
- return on.includes(e) ? e : "production";
2287
- }, rn = (e, t, n) => {
2288
- const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
2528
+ return sn.includes(e) ? e : "production";
2529
+ }, dn = (e, t, n) => {
2530
+ const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, r) => o != null ? o[r] : o, e);
2289
2531
  return i === void 0 || i === e ? n : i;
2290
2532
  };
2291
- function ln(e) {
2292
- var u, g;
2293
- const t = ee(null), [n, i] = C(() => "unsubmitted"), [o, a] = C(() => null), [r, l] = C(() => "");
2294
- function c(y) {
2295
- var I, E;
2296
- const S = {
2533
+ function un(e) {
2534
+ var d, m;
2535
+ const t = ee(null), [n, i] = C(() => "unsubmitted"), [o, r] = C(() => null), [a, l] = C(() => "");
2536
+ function c(g) {
2537
+ var I, x;
2538
+ const p = {
2297
2539
  ...e.builderContext.rootState,
2298
- ...y
2540
+ ...g
2299
2541
  };
2300
- e.builderContext.rootSetState ? (E = (I = e.builderContext).rootSetState) == null || E.call(I, S) : e.builderContext.rootState = S;
2542
+ e.builderContext.rootSetState ? (x = (I = e.builderContext).rootSetState) == null || x.call(I, p) : e.builderContext.rootState = p;
2301
2543
  }
2302
- function d() {
2303
- return F() && e.previewState || n;
2544
+ function u() {
2545
+ return $() && e.previewState || n;
2304
2546
  }
2305
- function m(y) {
2547
+ function f(g) {
2306
2548
  var I;
2307
- const S = e.sendWithJs || e.sendSubmissionsTo === "email";
2549
+ const p = e.sendWithJs || e.sendSubmissionsTo === "email";
2308
2550
  if (e.sendSubmissionsTo === "zapier")
2309
- y.preventDefault();
2310
- else if (S) {
2551
+ g.preventDefault();
2552
+ else if (p) {
2311
2553
  if (!(e.action || e.sendSubmissionsTo === "email")) {
2312
- y.preventDefault();
2554
+ g.preventDefault();
2313
2555
  return;
2314
2556
  }
2315
- y.preventDefault();
2316
- const E = y.currentTarget, R = e.customHeaders || {};
2317
- let A;
2318
- const W = new FormData(E), D = Array.from(
2319
- y.currentTarget.querySelectorAll("input,select,textarea")
2320
- ).filter((h) => !!h.name).map((h) => {
2321
- let f;
2322
- const b = h.name;
2323
- if (h instanceof HTMLInputElement)
2324
- if (h.type === "radio") {
2325
- if (h.checked)
2326
- return f = h.name, {
2327
- key: b,
2328
- value: f
2557
+ g.preventDefault();
2558
+ const x = g.currentTarget || g.target, R = e.customHeaders || {};
2559
+ let B;
2560
+ const A = new FormData(x), O = Array.from(x.querySelectorAll("input,select,textarea")).filter((b) => !!b.name).map((b) => {
2561
+ let h;
2562
+ const y = b.name;
2563
+ if (b instanceof HTMLInputElement)
2564
+ if (b.type === "radio") {
2565
+ if (b.checked)
2566
+ return h = b.name, {
2567
+ key: y,
2568
+ value: h
2329
2569
  };
2330
- } else if (h.type === "checkbox")
2331
- f = h.checked;
2332
- else if (h.type === "number" || h.type === "range") {
2333
- const p = h.valueAsNumber;
2334
- isNaN(p) || (f = p);
2570
+ } else if (b.type === "checkbox")
2571
+ h = b.checked;
2572
+ else if (b.type === "number" || b.type === "range") {
2573
+ const S = b.valueAsNumber;
2574
+ isNaN(S) || (h = S);
2335
2575
  } else
2336
- h.type === "file" ? f = h.files : f = h.value;
2576
+ b.type === "file" ? h = b.files : h = b.value;
2337
2577
  else
2338
- f = h.value;
2578
+ h = b.value;
2339
2579
  return {
2340
- key: b,
2341
- value: f
2580
+ key: y,
2581
+ value: h
2342
2582
  };
2343
2583
  });
2344
- let x = e.contentType;
2345
- if (e.sendSubmissionsTo === "email" && (x = "multipart/form-data"), Array.from(D).forEach(({ value: h }) => {
2346
- (h instanceof File || Array.isArray(h) && h[0] instanceof File || h instanceof FileList) && (x = "multipart/form-data");
2347
- }), x !== "application/json")
2348
- A = W;
2584
+ let v = e.contentType;
2585
+ if (e.sendSubmissionsTo === "email" && (v = "multipart/form-data"), Array.from(O).forEach(({ value: b }) => {
2586
+ (b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (v = "multipart/form-data");
2587
+ }), v !== "application/json")
2588
+ B = A;
2349
2589
  else {
2350
- const h = {};
2351
- Array.from(D).forEach(({ value: f, key: b }) => {
2352
- Re(h, b, f);
2353
- }), A = JSON.stringify(h);
2590
+ const b = {};
2591
+ Array.from(O).forEach(({ value: h, key: y }) => {
2592
+ Pe(b, y, h);
2593
+ }), B = JSON.stringify(b);
2354
2594
  }
2355
- x && x !== "multipart/form-data" && (S && ((I = e.action) != null && I.includes("zapier.com")) || (R["content-type"] = x));
2356
- const T = new CustomEvent("presubmit", { detail: { body: A } });
2357
- if (t.current && (t.current.dispatchEvent(T), T.defaultPrevented))
2595
+ v && v !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (R["content-type"] = v));
2596
+ const w = new CustomEvent("presubmit", { detail: { body: B } });
2597
+ if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
2358
2598
  return;
2359
2599
  i("sending");
2360
- const N = `${an() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2600
+ const W = `${cn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2361
2601
  e.sendSubmissionsToEmail || ""
2362
2602
  )}&name=${encodeURIComponent(e.name || "")}`;
2363
2603
  fetch(
2364
- e.sendSubmissionsTo === "email" ? N : e.action,
2365
- { body: A, headers: R, method: e.method || "post" }
2604
+ e.sendSubmissionsTo === "email" ? W : e.action,
2605
+ { body: B, headers: R, method: e.method || "post" }
2366
2606
  ).then(
2367
- async (h) => {
2368
- let f;
2369
- const b = h.headers.get("content-type");
2370
- if (b && b.indexOf("application/json") !== -1 ? f = await h.json() : f = await h.text(), !h.ok && e.errorMessagePath) {
2371
- let p = rn(f, e.errorMessagePath);
2372
- p && (typeof p != "string" && (p = JSON.stringify(p)), l(p), c({ formErrorMessage: p }));
2607
+ async (b) => {
2608
+ let h;
2609
+ const y = b.headers.get("content-type");
2610
+ if (y && y.indexOf("application/json") !== -1 ? h = await b.json() : h = await b.text(), !b.ok && e.errorMessagePath) {
2611
+ let S = dn(h, e.errorMessagePath);
2612
+ S && (typeof S != "string" && (S = JSON.stringify(S)), l(S), c({ formErrorMessage: S }));
2373
2613
  }
2374
- if (a(f), i(h.ok ? "success" : "error"), h.ok) {
2375
- const p = new CustomEvent("submit:success", {
2376
- detail: { res: h, body: f }
2614
+ if (r(h), i(b.ok ? "success" : "error"), b.ok) {
2615
+ const S = new CustomEvent("submit:success", {
2616
+ detail: { res: b, body: h }
2377
2617
  });
2378
2618
  if (t.current) {
2379
- if (t.current.dispatchEvent(p), p.defaultPrevented)
2619
+ if (t.current.dispatchEvent(S), S.defaultPrevented)
2380
2620
  return;
2381
2621
  e.resetFormOnSubmit !== !1 && t.current.reset();
2382
2622
  }
2383
2623
  if (e.successUrl)
2384
2624
  if (t.current) {
2385
- const v = new CustomEvent("route", {
2625
+ const k = new CustomEvent("route", {
2386
2626
  detail: { url: e.successUrl }
2387
2627
  });
2388
- t.current.dispatchEvent(v), v.defaultPrevented || (location.href = e.successUrl);
2628
+ t.current.dispatchEvent(k), k.defaultPrevented || (location.href = e.successUrl);
2389
2629
  } else
2390
2630
  location.href = e.successUrl;
2391
2631
  }
2392
2632
  },
2393
- (h) => {
2394
- const f = new CustomEvent("submit:error", {
2395
- detail: { error: h }
2633
+ (b) => {
2634
+ const h = new CustomEvent("submit:error", {
2635
+ detail: { error: b }
2396
2636
  });
2397
- t.current && (t.current.dispatchEvent(f), f.defaultPrevented) || (a(h), i("error"));
2637
+ t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (r(b), i("error"));
2398
2638
  }
2399
2639
  );
2400
2640
  }
2401
2641
  }
2402
- return /* @__PURE__ */ V(w, { children: [
2642
+ return /* @__PURE__ */ V(E, { children: [
2403
2643
  " ",
2404
2644
  /* @__PURE__ */ V(
2405
2645
  "form",
@@ -2409,38 +2649,38 @@ function ln(e) {
2409
2649
  action: !e.sendWithJs && e.action,
2410
2650
  method: e.method,
2411
2651
  name: e.name,
2412
- onSubmit: (y) => m(y),
2652
+ onSubmit: (g) => f(g),
2413
2653
  ...e.attributes,
2414
2654
  children: [
2415
- e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(w, { children: (g = (u = e.builderBlock) == null ? void 0 : u.children) == null ? void 0 : g.map((y, S) => /* @__PURE__ */ s(
2416
- _,
2655
+ 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(
2656
+ z,
2417
2657
  {
2418
- block: y,
2658
+ block: g,
2419
2659
  context: e.builderContext,
2420
2660
  registeredComponents: e.builderComponents,
2421
2661
  linkComponent: e.builderLinkComponent
2422
2662
  },
2423
- `form-block-${S}`
2663
+ `form-block-${p}`
2424
2664
  )) }) : null,
2425
- d() === "error" ? /* @__PURE__ */ s(
2426
- M,
2665
+ u() === "error" ? /* @__PURE__ */ s(
2666
+ D,
2427
2667
  {
2428
2668
  path: "errorMessage",
2429
2669
  blocks: e.errorMessage,
2430
2670
  context: e.builderContext
2431
2671
  }
2432
2672
  ) : null,
2433
- d() === "sending" ? /* @__PURE__ */ s(
2434
- M,
2673
+ u() === "sending" ? /* @__PURE__ */ s(
2674
+ D,
2435
2675
  {
2436
2676
  path: "sendingMessage",
2437
2677
  blocks: e.sendingMessage,
2438
2678
  context: e.builderContext
2439
2679
  }
2440
2680
  ) : null,
2441
- d() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-31bf8a14", children: JSON.stringify(o, null, 2) }) : null,
2442
- d() === "success" ? /* @__PURE__ */ s(
2443
- M,
2681
+ u() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
2682
+ u() === "success" ? /* @__PURE__ */ s(
2683
+ D,
2444
2684
  {
2445
2685
  path: "successMessage",
2446
2686
  blocks: e.successMessage,
@@ -2451,11 +2691,11 @@ function ln(e) {
2451
2691
  }
2452
2692
  ),
2453
2693
  " ",
2454
- /* @__PURE__ */ s("style", { children: ".pre-31bf8a14 { padding: 10px; color: red; text-align: center; }" }),
2694
+ /* @__PURE__ */ s("style", { children: ".pre-3a20f614 { padding: 10px; color: red; text-align: center; }" }),
2455
2695
  " "
2456
2696
  ] });
2457
2697
  }
2458
- const sn = {
2698
+ const mn = {
2459
2699
  name: "Form:Input",
2460
2700
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2461
2701
  inputs: [
@@ -2507,12 +2747,12 @@ const sn = {
2507
2747
  borderColor: "#ccc"
2508
2748
  }
2509
2749
  };
2510
- function cn(e) {
2511
- return /* @__PURE__ */ we(
2750
+ function fn(e) {
2751
+ return /* @__PURE__ */ Re(
2512
2752
  "input",
2513
2753
  {
2514
2754
  ...e.attributes,
2515
- key: F() && e.defaultValue ? e.defaultValue : "default-key",
2755
+ key: $() && e.defaultValue ? e.defaultValue : "default-key",
2516
2756
  placeholder: e.placeholder,
2517
2757
  type: e.type,
2518
2758
  name: e.name,
@@ -2522,7 +2762,7 @@ function cn(e) {
2522
2762
  }
2523
2763
  );
2524
2764
  }
2525
- const dn = {
2765
+ const hn = {
2526
2766
  name: "Form:Select",
2527
2767
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2528
2768
  defaultStyles: {
@@ -2565,21 +2805,21 @@ const dn = {
2565
2805
  static: !0,
2566
2806
  noWrap: !0
2567
2807
  };
2568
- function un(e) {
2808
+ function gn(e) {
2569
2809
  var t;
2570
- return /* @__PURE__ */ we(
2810
+ return /* @__PURE__ */ Re(
2571
2811
  "select",
2572
2812
  {
2573
2813
  ...e.attributes,
2574
2814
  value: e.value,
2575
- key: F() && e.defaultValue ? e.defaultValue : "default-key",
2815
+ key: $() && e.defaultValue ? e.defaultValue : "default-key",
2576
2816
  defaultValue: e.defaultValue,
2577
2817
  name: e.name
2578
2818
  },
2579
2819
  (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2580
2820
  );
2581
2821
  }
2582
- const mn = {
2822
+ const bn = {
2583
2823
  name: "Form:SubmitButton",
2584
2824
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2585
2825
  defaultStyles: {
@@ -2605,10 +2845,10 @@ const mn = {
2605
2845
  // TODO: defaultChildren
2606
2846
  // canHaveChildren: true,
2607
2847
  };
2608
- function fn(e) {
2848
+ function pn(e) {
2609
2849
  return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
2610
2850
  }
2611
- const hn = {
2851
+ const yn = {
2612
2852
  // friendlyName?
2613
2853
  name: "Raw:Img",
2614
2854
  hideFromInsertMenu: !0,
@@ -2623,7 +2863,7 @@ const hn = {
2623
2863
  noWrap: !0,
2624
2864
  static: !0
2625
2865
  };
2626
- function gn(e) {
2866
+ function xn(e) {
2627
2867
  return /* @__PURE__ */ s(
2628
2868
  "img",
2629
2869
  {
@@ -2635,10 +2875,10 @@ function gn(e) {
2635
2875
  src: e.imgSrc || e.image,
2636
2876
  ...e.attributes
2637
2877
  },
2638
- F() && e.imgSrc || "default-key"
2878
+ $() && e.imgSrc || "default-key"
2639
2879
  );
2640
2880
  }
2641
- const bn = {
2881
+ const Sn = {
2642
2882
  name: "Video",
2643
2883
  canHaveChildren: !0,
2644
2884
  defaultStyles: {
@@ -2720,8 +2960,8 @@ const bn = {
2720
2960
  advanced: !0
2721
2961
  }]
2722
2962
  };
2723
- function yn(e) {
2724
- var i, o, a, r, l, c, d;
2963
+ function vn(e) {
2964
+ var i, o, r, a, l, c, u;
2725
2965
  function t() {
2726
2966
  return {
2727
2967
  ...e.autoPlay === !0 ? {
@@ -2778,7 +3018,7 @@ function yn(e) {
2778
3018
  children: e.lazyLoad ? null : /* @__PURE__ */ s("source", { type: "video/mp4", src: e.video })
2779
3019
  }
2780
3020
  ),
2781
- e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ s(
3021
+ e.aspectRatio && !(e.fitContent && ((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length)) ? /* @__PURE__ */ s(
2782
3022
  "div",
2783
3023
  {
2784
3024
  style: {
@@ -2789,7 +3029,7 @@ function yn(e) {
2789
3029
  }
2790
3030
  }
2791
3031
  ) : null,
2792
- (l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
3032
+ (l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
2793
3033
  "div",
2794
3034
  {
2795
3035
  style: {
@@ -2800,7 +3040,7 @@ function yn(e) {
2800
3040
  children: e.children
2801
3041
  }
2802
3042
  ) : null,
2803
- (d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ s(
3043
+ (u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length && !e.fitContent ? /* @__PURE__ */ s(
2804
3044
  "div",
2805
3045
  {
2806
3046
  style: {
@@ -2821,58 +3061,61 @@ function yn(e) {
2821
3061
  }
2822
3062
  );
2823
3063
  }
2824
- const pn = () => [{
2825
- component: Qt,
2826
- ...Gt
2827
- }, {
3064
+ const kn = () => [{
2828
3065
  component: tn,
2829
- ...Xt
3066
+ ...en
2830
3067
  }, {
2831
- component: ln,
3068
+ component: rn,
2832
3069
  ...nn
2833
3070
  }, {
2834
- component: cn,
2835
- ...sn
3071
+ component: un,
3072
+ ...ln
2836
3073
  }, {
2837
3074
  component: fn,
2838
3075
  ...mn
2839
3076
  }, {
2840
- component: un,
2841
- ...dn
3077
+ component: pn,
3078
+ ...bn
2842
3079
  }, {
2843
3080
  component: gn,
2844
3081
  ...hn
2845
3082
  }, {
2846
- component: yn,
2847
- ...bn
2848
- }], xe = () => [{
2849
- component: Ze,
2850
- ...Dt
3083
+ component: xn,
3084
+ ...yn
2851
3085
  }, {
2852
- component: At,
3086
+ component: vn,
3087
+ ...Sn
3088
+ }], ke = () => [{
3089
+ component: nt,
2853
3090
  ...Mt
2854
3091
  }, {
2855
3092
  component: Wt,
2856
- ...Ot
3093
+ ...Ht
2857
3094
  }, {
2858
3095
  component: Ft,
2859
- ...Ut
3096
+ ...Kt
2860
3097
  }, {
2861
3098
  component: Lt,
2862
- ...jt
2863
- }, {
2864
- component: Kt,
2865
- ...Ht
2866
- }, {
2867
- component: Un,
2868
3099
  ...qt
2869
3100
  }, {
2870
- component: Yt,
2871
- ...Jt
3101
+ component: Ot,
3102
+ ..._t
2872
3103
  }, {
2873
- component: _t,
3104
+ component: Jt,
2874
3105
  ...zt
2875
- }, ...pn()], xn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3106
+ }, {
3107
+ component: qn,
3108
+ ...Yt
3109
+ }, {
3110
+ component: Zt,
3111
+ ...Xt
3112
+ }, {
3113
+ component: Qt,
3114
+ ...Gt
3115
+ }, {
3116
+ component: Ut,
3117
+ ...jt
3118
+ }, ...kn()], Cn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2876
3119
  function getAndSetVariantId() {
2877
3120
  function setCookie(name, value, days) {
2878
3121
  let expires = '';
@@ -2928,7 +3171,7 @@ const pn = () => [{
2928
3171
  }).join('');
2929
3172
  styleEl.innerHTML = newStyleStr;
2930
3173
  }
2931
- }`, Sn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3174
+ }`, Tn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2932
3175
  if (!navigator.cookieEnabled) {
2933
3176
  return;
2934
3177
  }
@@ -2962,26 +3205,26 @@ const pn = () => [{
2962
3205
  thisScriptEl?.remove();
2963
3206
  }
2964
3207
  return;
2965
- }`, Le = "builderIoAbTest", De = "builderIoRenderContent", Y = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3208
+ }`, je = "builderIoAbTest", Ue = "builderIoRenderContent", Y = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2966
3209
  ...t,
2967
3210
  testVariationId: t.id,
2968
3211
  id: e == null ? void 0 : e.id
2969
- })), vn = ({
3212
+ })), In = ({
2970
3213
  canTrack: e,
2971
3214
  content: t
2972
- }) => !(!(Y(t).length > 0) || !e || j()), kn = (e) => e === "react" || e === "reactNative", Me = kn(z), Cn = () => `
2973
- window.${Le} = ${xn}
2974
- window.${De} = ${Sn}
2975
- `, Tn = (e, t) => `
2976
- window.${Le}(
3215
+ }) => !(!(Y(t).length > 0) || !e || M()), wn = (e) => e === "react" || e === "reactNative", Me = wn(_), En = () => `
3216
+ window.${je} = ${Cn}
3217
+ window.${Ue} = ${Tn}
3218
+ `, Rn = (e, t) => `
3219
+ window.${je}(
2977
3220
  "${t}",${JSON.stringify(e)}, ${Me}
2978
- )`, wn = ({
3221
+ )`, Vn = ({
2979
3222
  contentId: e,
2980
3223
  variationId: t
2981
- }) => `window.${De}(
3224
+ }) => `window.${Ue}(
2982
3225
  "${t}", "${e}", ${Me}
2983
3226
  )`;
2984
- function re(e) {
3227
+ function ce(e) {
2985
3228
  return /* @__PURE__ */ s(
2986
3229
  "script",
2987
3230
  {
@@ -2990,10 +3233,10 @@ function re(e) {
2990
3233
  }
2991
3234
  );
2992
3235
  }
2993
- function Se(e) {
3236
+ function Ce(e) {
2994
3237
  return Math.round(e * 1e3) / 1e3;
2995
3238
  }
2996
- const In = (e, t, n = !0) => {
3239
+ const Bn = (e, t, n = !0) => {
2997
3240
  if (!(e instanceof HTMLElement))
2998
3241
  return null;
2999
3242
  let i = n ? e : e.parentElement;
@@ -3004,37 +3247,37 @@ const In = (e, t, n = !0) => {
3004
3247
  return i;
3005
3248
  } while (i = i.parentElement);
3006
3249
  return null;
3007
- }, En = (e) => In(e, (t) => {
3250
+ }, Pn = (e) => Bn(e, (t) => {
3008
3251
  const n = t.getAttribute("builder-id") || t.id;
3009
3252
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3010
- }), ve = ({
3253
+ }), Te = ({
3011
3254
  event: e,
3012
3255
  target: t
3013
3256
  }) => {
3014
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = Se(i / n.width), r = Se(o / n.height);
3257
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, r = Ce(i / n.width), a = Ce(o / n.height);
3015
3258
  return {
3016
- x: a,
3017
- y: r
3259
+ x: r,
3260
+ y: a
3018
3261
  };
3019
- }, Rn = (e) => {
3020
- const t = e.target, n = t && En(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3262
+ }, An = (e) => {
3263
+ const t = e.target, n = t && Pn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3021
3264
  return {
3022
3265
  targetBuilderElement: i || void 0,
3023
3266
  metadata: {
3024
- targetOffset: t ? ve({
3267
+ targetOffset: t ? Te({
3025
3268
  event: e,
3026
3269
  target: t
3027
3270
  }) : void 0,
3028
- builderTargetOffset: n ? ve({
3271
+ builderTargetOffset: n ? Te({
3029
3272
  event: e,
3030
3273
  target: n
3031
3274
  }) : void 0,
3032
3275
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3033
3276
  }
3034
3277
  };
3035
- }, Pn = (e) => {
3036
- var a, r;
3037
- const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
3278
+ }, Nn = (e) => {
3279
+ var r, a;
3280
+ const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
3038
3281
  let o = "";
3039
3282
  if (i && t && n && (o += `
3040
3283
  @font-face {
@@ -3047,26 +3290,26 @@ font-weight: 400;
3047
3290
  for (const l in e.files) {
3048
3291
  if (!(String(Number(l)) === l))
3049
3292
  continue;
3050
- const d = e.files[l];
3051
- d && d !== i && (o += `
3293
+ const u = e.files[l];
3294
+ u && u !== i && (o += `
3052
3295
  @font-face {
3053
3296
  font-family: "${t}";
3054
- src: url('${d}') format('woff2');
3297
+ src: url('${u}') format('woff2');
3055
3298
  font-display: fallback;
3056
3299
  font-weight: ${l};
3057
3300
  }
3058
3301
  `.trim());
3059
3302
  }
3060
3303
  return o;
3061
- }, Vn = ({
3304
+ }, Wn = ({
3062
3305
  customFonts: e
3063
3306
  }) => {
3064
3307
  var t;
3065
- return ((t = e == null ? void 0 : e.map((n) => Pn(n))) == null ? void 0 : t.join(" ")) || "";
3066
- }, Bn = ({
3308
+ return ((t = e == null ? void 0 : e.map((n) => Nn(n))) == null ? void 0 : t.join(" ")) || "";
3309
+ }, Fn = ({
3067
3310
  cssCode: e,
3068
3311
  contentId: t
3069
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", An = `
3312
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", $n = `
3070
3313
  .builder-button {
3071
3314
  all: unset;
3072
3315
  }
@@ -3083,39 +3326,39 @@ font-weight: ${l};
3083
3326
  text-align: inherit;
3084
3327
  font-family: inherit;
3085
3328
  }
3086
- `, Wn = (e) => e ? "" : An, Nn = (e) => `variant-${e}`;
3087
- function $n(e) {
3088
- var A, W, D, x, T, N, h;
3329
+ `, Dn = (e) => e ? "" : $n, Ln = (e) => `variant-${e}`;
3330
+ function On(e) {
3331
+ var B, A, O, v, w, W, b;
3089
3332
  const t = ee(null);
3090
- function n(f) {
3091
- var p, v;
3092
- const b = {
3333
+ function n(h) {
3334
+ var S, k;
3335
+ const y = {
3093
3336
  ...e.builderContextSignal.rootState,
3094
- ...f
3337
+ ...h
3095
3338
  };
3096
- e.builderContextSignal.rootSetState ? (v = (p = e.builderContextSignal).rootSetState) == null || v.call(p, b) : e.setBuilderContextSignal((k) => ({
3097
- ...k,
3098
- rootState: b
3339
+ e.builderContextSignal.rootSetState ? (k = (S = e.builderContextSignal).rootSetState) == null || k.call(S, y) : e.setBuilderContextSignal((T) => ({
3340
+ ...T,
3341
+ rootState: y
3099
3342
  }));
3100
3343
  }
3101
- function i(f) {
3102
- var p, v, k, B, O;
3103
- const b = {
3344
+ function i(h) {
3345
+ var S, k, T, N, j;
3346
+ const y = {
3104
3347
  ...e.builderContextSignal.content,
3105
- ...f,
3348
+ ...h,
3106
3349
  data: {
3107
- ...(p = e.builderContextSignal.content) == null ? void 0 : p.data,
3108
- ...f == null ? void 0 : f.data
3350
+ ...(S = e.builderContextSignal.content) == null ? void 0 : S.data,
3351
+ ...h == null ? void 0 : h.data
3109
3352
  },
3110
3353
  meta: {
3111
- ...(v = e.builderContextSignal.content) == null ? void 0 : v.meta,
3112
- ...f == null ? void 0 : f.meta,
3113
- breakpoints: ((k = f == null ? void 0 : f.meta) == null ? void 0 : k.breakpoints) || ((O = (B = e.builderContextSignal.content) == null ? void 0 : B.meta) == null ? void 0 : O.breakpoints)
3354
+ ...(k = e.builderContextSignal.content) == null ? void 0 : k.meta,
3355
+ ...h == null ? void 0 : h.meta,
3356
+ 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)
3114
3357
  }
3115
3358
  };
3116
- e.setBuilderContextSignal(($) => ({
3117
- ...$,
3118
- content: b
3359
+ e.setBuilderContextSignal((F) => ({
3360
+ ...F,
3361
+ content: y
3119
3362
  }));
3120
3363
  }
3121
3364
  function o() {
@@ -3124,37 +3367,37 @@ function $n(e) {
3124
3367
  "aria-hidden": !0
3125
3368
  };
3126
3369
  }
3127
- const [a, r] = C(
3370
+ const [r, a] = C(
3128
3371
  () => e.contentWrapper || "div"
3129
3372
  );
3130
- function l(f) {
3131
- return Je({
3373
+ function l(h) {
3374
+ return Qe({
3132
3375
  model: e.model,
3133
3376
  trustedHosts: e.trustedHosts,
3134
3377
  callbacks: {
3135
- configureSdk: (b) => {
3136
- var k;
3137
- const { breakpoints: p, contentId: v } = b;
3138
- !v || v !== ((k = e.builderContextSignal.content) == null ? void 0 : k.id) || p && i({
3378
+ configureSdk: (y) => {
3379
+ var T;
3380
+ const { breakpoints: S, contentId: k } = y;
3381
+ !k || k !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || S && i({
3139
3382
  meta: {
3140
- breakpoints: p
3383
+ breakpoints: S
3141
3384
  }
3142
3385
  });
3143
3386
  },
3144
- animation: (b) => {
3145
- Be(b);
3387
+ animation: (y) => {
3388
+ We(y);
3146
3389
  },
3147
- contentUpdate: (b) => {
3148
- i(b);
3390
+ contentUpdate: (y) => {
3391
+ i(y);
3149
3392
  }
3150
3393
  }
3151
- })(f);
3394
+ })(h);
3152
3395
  }
3153
3396
  function c() {
3154
- var b, p;
3155
- const f = (p = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : p.jsCode;
3156
- f && q({
3157
- code: f,
3397
+ var y, S;
3398
+ const h = (S = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : S.jsCode;
3399
+ h && q({
3400
+ code: h,
3158
3401
  context: e.context || {},
3159
3402
  localState: void 0,
3160
3403
  rootState: e.builderContextSignal.rootState,
@@ -3165,35 +3408,35 @@ function $n(e) {
3165
3408
  enableCache: !1
3166
3409
  });
3167
3410
  }
3168
- const [d, m] = C(() => ({})), [u, g] = C(() => ({})), [y, S] = C(() => !1);
3169
- function I(f) {
3170
- var b, p;
3411
+ const [u, f] = C(() => ({})), [d, m] = C(() => ({})), [g, p] = C(() => !1);
3412
+ function I(h) {
3413
+ var y, S;
3171
3414
  if (e.builderContextSignal.content) {
3172
- const v = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId, k = (p = e.builderContextSignal.content) == null ? void 0 : p.id;
3173
- me({
3415
+ const k = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, T = (S = e.builderContextSignal.content) == null ? void 0 : S.id;
3416
+ he({
3174
3417
  type: "click",
3175
3418
  canTrack: Q(e.canTrack),
3176
- contentId: k,
3419
+ contentId: T,
3177
3420
  apiKey: e.apiKey,
3178
- variationId: v !== k ? v : void 0,
3179
- ...Rn(f),
3180
- unique: !y
3421
+ variationId: k !== T ? k : void 0,
3422
+ ...An(h),
3423
+ unique: !g
3181
3424
  });
3182
3425
  }
3183
- y || S(!0);
3426
+ g || p(!0);
3184
3427
  }
3185
- function E() {
3186
- var b, p, v;
3187
- const f = (v = (p = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : p.httpRequests) != null ? v : {};
3188
- Object.entries(f).forEach(([k, B]) => {
3189
- if (!B || u[k] || d[k] && !F())
3428
+ function x() {
3429
+ var y, S, k;
3430
+ const h = (k = (S = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : S.httpRequests) != null ? k : {};
3431
+ Object.entries(h).forEach(([T, N]) => {
3432
+ if (!N || d[T] || u[T] && !$())
3190
3433
  return;
3191
- u[k] = !0;
3192
- const O = B.replace(
3434
+ d[T] = !0;
3435
+ const j = N.replace(
3193
3436
  /{{([^}]+)}}/g,
3194
- ($, Oe) => String(
3437
+ (F, He) => String(
3195
3438
  q({
3196
- code: Oe,
3439
+ code: He,
3197
3440
  context: e.context || {},
3198
3441
  localState: void 0,
3199
3442
  rootState: e.builderContextSignal.rootState,
@@ -3202,24 +3445,24 @@ function $n(e) {
3202
3445
  })
3203
3446
  )
3204
3447
  );
3205
- Ye(O).then(($) => $.json()).then(($) => {
3448
+ Xe(j).then((F) => F.json()).then((F) => {
3206
3449
  n({
3207
- [k]: $
3208
- }), d[k] = !0;
3209
- }).catch(($) => {
3210
- console.error("error fetching dynamic data", B, $);
3450
+ [T]: F
3451
+ }), u[T] = !0;
3452
+ }).catch((F) => {
3453
+ console.error("error fetching dynamic data", N, F);
3211
3454
  }).finally(() => {
3212
- u[k] = !1;
3455
+ d[T] = !1;
3213
3456
  });
3214
3457
  });
3215
3458
  }
3216
3459
  function R() {
3217
- F() && window.dispatchEvent(
3460
+ $() && window.dispatchEvent(
3218
3461
  new CustomEvent(
3219
3462
  "builder:component:stateChange",
3220
3463
  {
3221
3464
  detail: {
3222
- state: le(e.builderContextSignal.rootState),
3465
+ state: de(e.builderContextSignal.rootState),
3223
3466
  ref: {
3224
3467
  name: e.model
3225
3468
  }
@@ -3229,9 +3472,9 @@ function $n(e) {
3229
3472
  );
3230
3473
  }
3231
3474
  return P(() => {
3232
- var f, b;
3233
- if (j()) {
3234
- if (F() && (window.addEventListener("message", l), Ke(), qe({
3475
+ var h, y;
3476
+ if (M()) {
3477
+ if ($() && (window.addEventListener("message", l), ze(), Je({
3235
3478
  ...e.locale ? {
3236
3479
  locale: e.locale
3237
3480
  } : {},
@@ -3243,47 +3486,47 @@ function $n(e) {
3243
3486
  } : {}
3244
3487
  }), Object.values(
3245
3488
  e.builderContextSignal.componentInfos
3246
- ).forEach((v) => {
3247
- var B;
3248
- const k = ze(v);
3249
- (B = window.parent) == null || B.postMessage(k, "*");
3489
+ ).forEach((k) => {
3490
+ var N;
3491
+ const T = Ye(k);
3492
+ (N = window.parent) == null || N.postMessage(T, "*");
3250
3493
  }), window.addEventListener(
3251
3494
  "builder:component:stateChangeListenerActivated",
3252
3495
  R
3253
3496
  )), e.builderContextSignal.content && Q(e.canTrack)) {
3254
- const v = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, k = (b = e.builderContextSignal.content) == null ? void 0 : b.id, B = e.apiKey;
3255
- me({
3497
+ const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, T = (y = e.builderContextSignal.content) == null ? void 0 : y.id, N = e.apiKey;
3498
+ he({
3256
3499
  type: "impression",
3257
3500
  canTrack: !0,
3258
- contentId: k,
3259
- apiKey: B,
3260
- variationId: v !== k ? v : void 0
3501
+ contentId: T,
3502
+ apiKey: N,
3503
+ variationId: k !== T ? k : void 0
3261
3504
  });
3262
3505
  }
3263
- if (_e() && !F()) {
3264
- const v = new URL(location.href).searchParams, k = v.get("builder.preview"), B = v.get(
3265
- `builder.preview.${k}`
3266
- ), O = v.get("apiKey") || v.get("builder.space");
3267
- k === e.model && O === e.apiKey && (!e.content || B === e.content.id) && Ce({
3506
+ if (Ge() && !$()) {
3507
+ const k = new URL(location.href).searchParams, T = k.get("builder.preview"), N = k.get(
3508
+ `builder.overrides.${T}`
3509
+ ), j = k.get("apiKey") || k.get("builder.space");
3510
+ T === e.model && j === e.apiKey && (!e.content || N === e.content.id) && we({
3268
3511
  model: e.model,
3269
3512
  apiKey: e.apiKey,
3270
3513
  apiVersion: e.builderContextSignal.apiVersion
3271
- }).then(($) => {
3272
- $ && i($);
3514
+ }).then((F) => {
3515
+ F && i(F);
3273
3516
  });
3274
3517
  }
3275
3518
  }
3276
3519
  }, []), P(() => {
3277
3520
  e.apiKey || Z.error(
3278
- "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3279
- ), c(), E(), R();
3521
+ "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3522
+ ), c(), x(), R();
3280
3523
  }, []), P(() => {
3281
3524
  e.content && i(e.content);
3282
3525
  }, [e.content]), P(() => {
3283
3526
  c();
3284
- }, [(W = (A = e.builderContextSignal.content) == null ? void 0 : A.data) == null ? void 0 : W.jsCode]), P(() => {
3285
- E();
3286
- }, [(x = (D = e.builderContextSignal.content) == null ? void 0 : D.data) == null ? void 0 : x.httpRequests]), P(() => {
3527
+ }, [(A = (B = e.builderContextSignal.content) == null ? void 0 : B.data) == null ? void 0 : A.jsCode]), P(() => {
3528
+ x();
3529
+ }, [(v = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : v.httpRequests]), P(() => {
3287
3530
  R();
3288
3531
  }, [e.builderContextSignal.rootState]), P(() => {
3289
3532
  e.data && n(e.data);
@@ -3292,49 +3535,49 @@ function $n(e) {
3292
3535
  locale: e.locale
3293
3536
  });
3294
3537
  }, [e.locale]), P(() => () => {
3295
- j() && (window.removeEventListener("message", l), window.removeEventListener(
3538
+ M() && (window.removeEventListener("message", l), window.removeEventListener(
3296
3539
  "builder:component:stateChangeListenerActivated",
3297
3540
  R
3298
3541
  ));
3299
- }, []), /* @__PURE__ */ s(ce.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
3300
- a,
3542
+ }, []), /* @__PURE__ */ s(me.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
3543
+ r,
3301
3544
  {
3302
3545
  ref: t,
3303
- onClick: (f) => I(f),
3304
- "builder-content-id": (T = e.builderContextSignal.content) == null ? void 0 : T.id,
3546
+ onClick: (h) => I(h),
3547
+ "builder-content-id": (w = e.builderContextSignal.content) == null ? void 0 : w.id,
3305
3548
  "builder-model": e.model,
3306
3549
  ...o(),
3307
3550
  ...e.contentWrapperProps,
3308
- className: Nn(
3309
- ((N = e.content) == null ? void 0 : N.testVariationId) || ((h = e.content) == null ? void 0 : h.id)
3551
+ className: Ln(
3552
+ ((W = e.content) == null ? void 0 : W.testVariationId) || ((b = e.content) == null ? void 0 : b.id)
3310
3553
  ),
3311
3554
  children: e.children
3312
3555
  }
3313
3556
  ) : null });
3314
3557
  }
3315
- function Fn(e) {
3558
+ function jn(e) {
3316
3559
  const [t, n] = C(
3317
3560
  () => `
3318
- ${Bn({
3561
+ ${Fn({
3319
3562
  cssCode: e.cssCode,
3320
3563
  contentId: e.contentId
3321
3564
  })}
3322
- ${Vn({
3565
+ ${Wn({
3323
3566
  customFonts: e.customFonts
3324
3567
  })}
3325
- ${Wn(e.isNestedRender)}
3568
+ ${Dn(e.isNestedRender)}
3326
3569
  `.trim()
3327
3570
  );
3328
- return /* @__PURE__ */ s(te, { id: "builderio-content", styles: t });
3571
+ return /* @__PURE__ */ s(ne, { id: "builderio-content", styles: t });
3329
3572
  }
3330
- const Ln = ({
3573
+ const Un = ({
3331
3574
  content: e,
3332
3575
  data: t,
3333
3576
  locale: n
3334
3577
  }) => {
3335
- var a, r, l;
3336
- const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
3337
- return (l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || l.forEach((c) => {
3578
+ var r, a, l;
3579
+ const i = {}, o = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
3580
+ return (l = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || l.forEach((c) => {
3338
3581
  c.name && c.defaultValue !== void 0 && (i[c.name] = c.defaultValue);
3339
3582
  }), {
3340
3583
  ...i,
@@ -3344,7 +3587,7 @@ const Ln = ({
3344
3587
  locale: n
3345
3588
  } : {}
3346
3589
  };
3347
- }, Dn = ({
3590
+ }, Mn = ({
3348
3591
  content: e,
3349
3592
  data: t
3350
3593
  }) => e ? {
@@ -3355,46 +3598,46 @@ const Ln = ({
3355
3598
  },
3356
3599
  meta: e == null ? void 0 : e.meta
3357
3600
  } : void 0;
3358
- function ke(e) {
3359
- var c, d, m, u, g, y, S;
3601
+ function Ie(e) {
3602
+ var c, u, f, d, m, g, p;
3360
3603
  const [t, n] = C(
3361
3604
  () => {
3362
- var I, E;
3363
- return wn({
3605
+ var I, x;
3606
+ return Vn({
3364
3607
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3365
3608
  variationId: (I = e.content) == null ? void 0 : I.testVariationId,
3366
3609
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3367
- contentId: (E = e.content) == null ? void 0 : E.id
3610
+ contentId: (x = e.content) == null ? void 0 : x.id
3368
3611
  });
3369
3612
  }
3370
3613
  );
3371
3614
  function i(I) {
3372
- l((E) => ({
3373
- ...E,
3615
+ l((x) => ({
3616
+ ...x,
3374
3617
  rootState: I
3375
3618
  }));
3376
3619
  }
3377
- const [o, a] = C(
3620
+ const [o, r] = C(
3378
3621
  () => [
3379
- ...xe(),
3622
+ ...ke(),
3380
3623
  ...e.customComponents || []
3381
3624
  ].reduce(
3382
- (I, { component: E, ...R }) => ({
3625
+ (I, { component: x, ...R }) => ({
3383
3626
  ...I,
3384
3627
  [R.name]: {
3385
- component: E,
3386
- ...fe(R)
3628
+ component: x,
3629
+ ...ge(R)
3387
3630
  }
3388
3631
  }),
3389
3632
  {}
3390
3633
  )
3391
- ), [r, l] = C(() => ({
3392
- content: Dn({
3634
+ ), [a, l] = C(() => ({
3635
+ content: Mn({
3393
3636
  content: e.content,
3394
3637
  data: e.data
3395
3638
  }),
3396
3639
  localState: void 0,
3397
- rootState: Ln({
3640
+ rootState: Un({
3398
3641
  content: e.content,
3399
3642
  data: e.data,
3400
3643
  locale: e.locale
@@ -3404,12 +3647,12 @@ function ke(e) {
3404
3647
  apiKey: e.apiKey,
3405
3648
  apiVersion: e.apiVersion,
3406
3649
  componentInfos: [
3407
- ...xe(),
3650
+ ...ke(),
3408
3651
  ...e.customComponents || []
3409
3652
  ].reduce(
3410
- (I, { component: E, ...R }) => ({
3653
+ (I, { component: x, ...R }) => ({
3411
3654
  ...I,
3412
- [R.name]: fe(R)
3655
+ [R.name]: ge(R)
3413
3656
  }),
3414
3657
  {}
3415
3658
  ),
@@ -3418,13 +3661,13 @@ function ke(e) {
3418
3661
  BlocksWrapperProps: e.blocksWrapperProps || {}
3419
3662
  }));
3420
3663
  return /* @__PURE__ */ s(
3421
- Ie.Provider,
3664
+ Ve.Provider,
3422
3665
  {
3423
3666
  value: {
3424
3667
  registeredComponents: o
3425
3668
  },
3426
3669
  children: /* @__PURE__ */ V(
3427
- $n,
3670
+ On,
3428
3671
  {
3429
3672
  content: e.content,
3430
3673
  data: e.data,
@@ -3435,7 +3678,7 @@ function ke(e) {
3435
3678
  locale: e.locale,
3436
3679
  enrich: e.enrich,
3437
3680
  showContent: e.showContent,
3438
- builderContextSignal: r,
3681
+ builderContextSignal: a,
3439
3682
  contentWrapper: e.contentWrapper,
3440
3683
  contentWrapperProps: e.contentWrapperProps,
3441
3684
  linkComponent: e.linkComponent,
@@ -3443,26 +3686,26 @@ function ke(e) {
3443
3686
  setBuilderContextSignal: l,
3444
3687
  children: [
3445
3688
  e.isSsrAbTest ? /* @__PURE__ */ s(
3446
- re,
3689
+ ce,
3447
3690
  {
3448
3691
  id: "builderio-variant-visibility",
3449
3692
  scriptStr: t
3450
3693
  }
3451
3694
  ) : null,
3452
3695
  /* @__PURE__ */ s(
3453
- Fn,
3696
+ jn,
3454
3697
  {
3455
3698
  isNestedRender: e.isNestedRender,
3456
- contentId: (c = r.content) == null ? void 0 : c.id,
3457
- cssCode: (m = (d = r.content) == null ? void 0 : d.data) == null ? void 0 : m.cssCode,
3458
- customFonts: (g = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : g.customFonts
3699
+ contentId: (c = a.content) == null ? void 0 : c.id,
3700
+ cssCode: (f = (u = a.content) == null ? void 0 : u.data) == null ? void 0 : f.cssCode,
3701
+ customFonts: (m = (d = a.content) == null ? void 0 : d.data) == null ? void 0 : m.customFonts
3459
3702
  }
3460
3703
  ),
3461
3704
  /* @__PURE__ */ s(
3462
- M,
3705
+ D,
3463
3706
  {
3464
- blocks: (S = (y = r.content) == null ? void 0 : y.data) == null ? void 0 : S.blocks,
3465
- context: r,
3707
+ blocks: (p = (g = a.content) == null ? void 0 : g.data) == null ? void 0 : p.blocks,
3708
+ context: a,
3466
3709
  registeredComponents: o,
3467
3710
  linkComponent: e.linkComponent
3468
3711
  }
@@ -3473,17 +3716,17 @@ function ke(e) {
3473
3716
  }
3474
3717
  );
3475
3718
  }
3476
- function Mn(e) {
3477
- var r;
3719
+ function Hn(e) {
3720
+ var a;
3478
3721
  const [t, n] = C(
3479
- () => vn({
3722
+ () => In({
3480
3723
  canTrack: Q(e.canTrack),
3481
3724
  content: e.content
3482
3725
  })
3483
3726
  );
3484
3727
  function i() {
3485
3728
  var l;
3486
- return Tn(
3729
+ return Rn(
3487
3730
  Y(e.content).map((c) => ({
3488
3731
  id: c.testVariationId,
3489
3732
  testRatio: c.testRatio
@@ -3494,42 +3737,42 @@ function Mn(e) {
3494
3737
  function o() {
3495
3738
  return Y(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
3496
3739
  }
3497
- function a() {
3740
+ function r() {
3498
3741
  var l;
3499
3742
  return t ? {
3500
3743
  ...e.content,
3501
3744
  testVariationId: (l = e.content) == null ? void 0 : l.id
3502
- } : Ge({
3745
+ } : Ze({
3503
3746
  item: e.content,
3504
3747
  canTrack: Q(e.canTrack)
3505
3748
  });
3506
3749
  }
3507
3750
  return P(() => {
3508
- }, []), /* @__PURE__ */ V(w, { children: [
3509
- !e.isNestedRender && z !== "reactNative" ? /* @__PURE__ */ s(
3510
- re,
3751
+ }, []), /* @__PURE__ */ V(E, { children: [
3752
+ !e.isNestedRender && _ !== "reactNative" ? /* @__PURE__ */ s(
3753
+ ce,
3511
3754
  {
3512
3755
  id: "builderio-init-variants-fns",
3513
- scriptStr: Cn()
3756
+ scriptStr: En()
3514
3757
  }
3515
3758
  ) : null,
3516
- t ? /* @__PURE__ */ V(w, { children: [
3759
+ t ? /* @__PURE__ */ V(E, { children: [
3517
3760
  /* @__PURE__ */ s(
3518
- te,
3761
+ ne,
3519
3762
  {
3520
3763
  id: "builderio-variants",
3521
3764
  styles: o()
3522
3765
  }
3523
3766
  ),
3524
3767
  /* @__PURE__ */ s(
3525
- re,
3768
+ ce,
3526
3769
  {
3527
3770
  id: "builderio-variants-visibility",
3528
3771
  scriptStr: i()
3529
3772
  }
3530
3773
  ),
3531
- (r = Y(e.content)) == null ? void 0 : r.map((l) => /* @__PURE__ */ s(
3532
- ke,
3774
+ (a = Y(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
3775
+ Ie,
3533
3776
  {
3534
3777
  isNestedRender: e.isNestedRender,
3535
3778
  content: l,
@@ -3555,10 +3798,10 @@ function Mn(e) {
3555
3798
  ))
3556
3799
  ] }) : null,
3557
3800
  /* @__PURE__ */ s(
3558
- ke,
3801
+ Ie,
3559
3802
  {
3560
3803
  isNestedRender: e.isNestedRender,
3561
- content: a(),
3804
+ content: r(),
3562
3805
  showContent: !0,
3563
3806
  model: e.model,
3564
3807
  data: e.data,
@@ -3580,13 +3823,13 @@ function Mn(e) {
3580
3823
  )
3581
3824
  ] });
3582
3825
  }
3583
- const On = async ({
3826
+ const Kn = async ({
3584
3827
  builderContextValue: e,
3585
3828
  symbol: t
3586
3829
  }) => {
3587
3830
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
3588
3831
  (e != null && e.apiKey))
3589
- return Ce({
3832
+ return we({
3590
3833
  model: t.model,
3591
3834
  apiKey: e.apiKey,
3592
3835
  apiVersion: e.apiVersion,
@@ -3599,8 +3842,8 @@ const On = async ({
3599
3842
  Z.error("Could not fetch symbol content: ", n);
3600
3843
  });
3601
3844
  };
3602
- function Un(e) {
3603
- var l, c, d, m;
3845
+ function qn(e) {
3846
+ var l, c, u, f;
3604
3847
  function t() {
3605
3848
  return "div";
3606
3849
  }
@@ -3608,31 +3851,31 @@ function Un(e) {
3608
3851
  return "div";
3609
3852
  }
3610
3853
  function i() {
3611
- var u, g;
3854
+ var d, m;
3612
3855
  return [
3613
3856
  e.attributes[K()],
3614
3857
  "builder-symbol",
3615
- (u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
3616
- (g = e.symbol) != null && g.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
3858
+ (d = e.symbol) != null && d.inline ? "builder-inline-symbol" : void 0,
3859
+ (m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
3617
3860
  ].filter(Boolean).join(" ");
3618
3861
  }
3619
- const [o, a] = C(() => {
3620
- var u;
3621
- return (u = e.symbol) == null ? void 0 : u.content;
3862
+ const [o, r] = C(() => {
3863
+ var d;
3864
+ return (d = e.symbol) == null ? void 0 : d.content;
3622
3865
  });
3623
- function r() {
3624
- o || On({
3866
+ function a() {
3867
+ o || Kn({
3625
3868
  symbol: e.symbol,
3626
3869
  builderContextValue: e.builderContext
3627
- }).then((u) => {
3628
- u && a(u);
3870
+ }).then((d) => {
3871
+ d && r(d);
3629
3872
  });
3630
3873
  }
3631
3874
  return P(() => {
3632
3875
  }, []), P(() => {
3633
- r();
3876
+ a();
3634
3877
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
3635
- Mn,
3878
+ Hn,
3636
3879
  {
3637
3880
  isNestedRender: !0,
3638
3881
  apiVersion: e.builderContext.apiVersion,
@@ -3645,9 +3888,9 @@ function Un(e) {
3645
3888
  data: {
3646
3889
  ...(c = e.symbol) == null ? void 0 : c.data,
3647
3890
  ...e.builderContext.localState,
3648
- ...(d = o == null ? void 0 : o.data) == null ? void 0 : d.state
3891
+ ...(u = o == null ? void 0 : o.data) == null ? void 0 : u.state
3649
3892
  },
3650
- model: (m = e.symbol) == null ? void 0 : m.model,
3893
+ model: (f = e.symbol) == null ? void 0 : f.model,
3651
3894
  content: o,
3652
3895
  linkComponent: e.builderLinkComponent,
3653
3896
  blocksWrapper: t(),
@@ -3656,15 +3899,15 @@ function Un(e) {
3656
3899
  ) });
3657
3900
  }
3658
3901
  export {
3659
- M as Blocks,
3660
- ce as BuilderContext,
3661
- Ze as Button,
3662
- At as Columns,
3663
- Mn as Content,
3664
- Wt as Fragment,
3665
- Ft as Image,
3666
- Lt as Section,
3667
- Un as Symbol,
3668
- Yt as Text,
3669
- yn as Video
3902
+ D as Blocks,
3903
+ me as BuilderContext,
3904
+ nt as Button,
3905
+ Wt as Columns,
3906
+ Hn as Content,
3907
+ Ft as Fragment,
3908
+ Lt as Image,
3909
+ Ot as Section,
3910
+ qn as Symbol,
3911
+ Zt as Text,
3912
+ vn as Video
3670
3913
  };