@builder.io/sdk-react 1.0.27 → 1.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/lib/browser/blocks-exports.cjs +29 -29
  2. package/lib/browser/blocks-exports.mjs +1029 -784
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/init.cjs +1 -1
  6. package/lib/browser/init.mjs +1 -1
  7. package/lib/browser/{server-entry-60c3f2b2.cjs → server-entry-39389b02.cjs} +1 -1
  8. package/lib/browser/{server-entry-805a2c2a.js → server-entry-b2b0b732.js} +1 -1
  9. package/lib/browser/server-entry.cjs +1 -1
  10. package/lib/browser/server-entry.mjs +1 -1
  11. package/lib/edge/accordion-a6b84a1a.cjs +1 -0
  12. package/lib/edge/accordion-e074c3c9.js +131 -0
  13. package/lib/edge/{blocks-a1399a78.js → blocks-bdc7647a.js} +198 -198
  14. package/lib/edge/{blocks-af5c8ecf.cjs → blocks-e4a4eaeb.cjs} +10 -10
  15. package/lib/edge/blocks-exports.cjs +1 -1
  16. package/lib/edge/blocks-exports.mjs +2 -2
  17. package/lib/edge/{button-0820a5bc.js → button-01688cf0.js} +2 -2
  18. package/lib/edge/{button-16076ac7.cjs → button-4bbf8eb4.cjs} +1 -1
  19. package/lib/edge/{columns-688cc205.js → columns-790f93f0.js} +3 -3
  20. package/lib/edge/{columns-6b8c03be.cjs → columns-c34d9298.cjs} +1 -1
  21. package/lib/edge/content-variants-705d1eae.cjs +134 -0
  22. package/lib/edge/{content-variants-efa4f81b.js → content-variants-843cb1a2.js} +304 -183
  23. package/lib/edge/{form-91166ed6.cjs → form-41fb03d8.cjs} +1 -1
  24. package/lib/edge/{form-cbe7d822.js → form-76a1e4e7.js} +3 -3
  25. package/lib/edge/{get-class-prop-name-47012c9c.cjs → get-class-prop-name-6fd942e6.cjs} +1 -1
  26. package/lib/edge/{get-class-prop-name-4a1bad2b.js → get-class-prop-name-7cac71a7.js} +1 -1
  27. package/lib/edge/{img-14849a5b.js → img-0d46e11b.js} +1 -1
  28. package/lib/edge/{img-d3420f5d.cjs → img-630ec97f.cjs} +1 -1
  29. package/lib/edge/index.cjs +1 -1
  30. package/lib/edge/index.mjs +1 -1
  31. package/lib/edge/init.cjs +1 -1
  32. package/lib/edge/init.mjs +1 -1
  33. package/lib/edge/{input-534b9f95.js → input-35460b08.js} +1 -1
  34. package/lib/edge/{input-07becc4d.cjs → input-73e27d61.cjs} +1 -1
  35. package/lib/edge/{select-b05ef24f.js → select-6cf907d7.js} +1 -1
  36. package/lib/edge/{select-e576d7d0.cjs → select-a19b35fb.cjs} +1 -1
  37. package/lib/edge/{server-entry-ee324b22.cjs → server-entry-043747bd.cjs} +1 -1
  38. package/lib/edge/{server-entry-6aaf6054.js → server-entry-0dd5f119.js} +1 -1
  39. package/lib/edge/server-entry.cjs +1 -1
  40. package/lib/edge/server-entry.mjs +1 -1
  41. package/lib/edge/{slot-944437dd.js → slot-d4235700.js} +3 -3
  42. package/lib/edge/{slot-e139f9b4.cjs → slot-e0434389.cjs} +1 -1
  43. package/lib/edge/{symbol-f7f42446.cjs → symbol-e0e1a334.cjs} +1 -1
  44. package/lib/edge/{symbol-75d1c60d.js → symbol-e58cb0f1.js} +2 -2
  45. package/lib/edge/tabs-a92bfa51.cjs +1 -0
  46. package/lib/edge/{tabs-62e415e1.js → tabs-d5cfc172.js} +20 -20
  47. package/lib/node/blocks-exports.cjs +29 -29
  48. package/lib/node/blocks-exports.mjs +1029 -784
  49. package/lib/node/index.cjs +1 -1
  50. package/lib/node/index.mjs +2 -2
  51. package/lib/node/init.cjs +1 -1
  52. package/lib/node/init.mjs +2 -2
  53. package/lib/node/{node-runtime-e167306c.js → node-runtime-29789d59.js} +1 -1
  54. package/lib/node/{node-runtime-1bee7133.cjs → node-runtime-ee646b73.cjs} +1 -1
  55. package/lib/node/{server-entry-38fb2258.js → server-entry-0cd65827.js} +1 -1
  56. package/lib/node/{server-entry-db936548.cjs → server-entry-1111c8d8.cjs} +1 -1
  57. package/lib/node/server-entry.cjs +1 -1
  58. package/lib/node/server-entry.mjs +1 -1
  59. package/package.json +1 -1
  60. package/types/blocks/accordion/accordion.d.ts +4 -0
  61. package/types/blocks/accordion/accordion.types.d.ts +12 -0
  62. package/types/blocks/accordion/component-info.d.ts +2 -0
  63. package/types/blocks/accordion/helpers.d.ts +1 -0
  64. package/types/blocks/accordion/index.d.ts +1 -0
  65. package/types/components/block/animator.d.ts +0 -1
  66. package/types/components/content-variants/content-variants.types.d.ts +1 -1
  67. package/types/constants/sdk-version.d.ts +1 -1
  68. package/types/functions/camel-to-kebab-case.d.ts +1 -1
  69. package/lib/edge/content-variants-4679172a.cjs +0 -134
  70. package/lib/edge/tabs-4860ef6d.cjs +0 -1
@@ -1,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-b2b0b732.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 S, 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
+ ((S = r == null ? void 0 : r.meta) == null ? void 0 : S.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 S(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: ${S("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: ${S("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-00cb97e2",
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,11 +1104,11 @@ 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
  }
@@ -1119,71 +1119,71 @@ function At(e) {
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,7 @@ function Lt(e) {
1256
1256
  }
1257
1257
  );
1258
1258
  }
1259
- const Dt = {
1259
+ const jt = {
1260
1260
  name: "Core:Button",
1261
1261
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1262
1262
  defaultStyles: {
@@ -1289,7 +1289,7 @@ const Dt = {
1289
1289
  }],
1290
1290
  static: !0,
1291
1291
  noWrap: !0
1292
- }, Mt = {
1292
+ }, Ut = {
1293
1293
  // TODO: ways to statically preprocess JSON for references, functions, etc
1294
1294
  name: "Columns",
1295
1295
  isRSC: !0,
@@ -1468,7 +1468,7 @@ const Dt = {
1468
1468
  });
1469
1469
  }
1470
1470
  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();
1471
+ 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
1472
  }
1473
1473
  }, {
1474
1474
  name: "space",
@@ -1490,13 +1490,13 @@ const Dt = {
1490
1490
  helperText: "When stacking columns for mobile devices, reverse the ordering",
1491
1491
  advanced: !0
1492
1492
  }]
1493
- }, Ot = {
1493
+ }, Mt = {
1494
1494
  name: "Fragment",
1495
1495
  static: !0,
1496
1496
  hidden: !0,
1497
1497
  canHaveChildren: !0,
1498
1498
  noWrap: !0
1499
- }, Ut = {
1499
+ }, Ht = {
1500
1500
  name: "Image",
1501
1501
  static: !0,
1502
1502
  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 +1516,29 @@ const Dt = {
1516
1516
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1517
1517
  onChange: (e) => {
1518
1518
  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"));
1519
+ function n(a, l = 6e4) {
1520
+ return new Promise((c, u) => {
1521
+ const f = document.createElement("img");
1522
+ let d = !1;
1523
+ f.onload = () => {
1524
+ d = !0, c(f);
1525
+ }, f.addEventListener("error", (m) => {
1526
+ console.warn("Image load failed", m.error), u(m.error);
1527
+ }), f.src = a, setTimeout(() => {
1528
+ d || u(new Error("Image load timed out"));
1529
1529
  }, l);
1530
1530
  });
1531
1531
  }
1532
- function i(r) {
1533
- return Math.round(r * 1e3) / 1e3;
1532
+ function i(a) {
1533
+ return Math.round(a * 1e3) / 1e3;
1534
1534
  }
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) => {
1535
+ const o = e.get("image"), r = e.get("aspectRatio");
1536
+ if (fetch(o).then((a) => a.blob()).then((a) => {
1537
+ a.type.includes("svg") && e.set("noWebp", !0);
1538
+ }), o && (!r || r === 0.7041))
1539
+ return n(o).then((a) => {
1540
1540
  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));
1541
+ 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
1542
  });
1543
1543
  }
1544
1544
  }, {
@@ -1596,7 +1596,7 @@ const Dt = {
1596
1596
  advanced: !0,
1597
1597
  defaultValue: 0.7041
1598
1598
  }]
1599
- }, jt = {
1599
+ }, Kt = {
1600
1600
  name: "Core:Section",
1601
1601
  static: !0,
1602
1602
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1635,7 +1635,7 @@ const Dt = {
1635
1635
  }
1636
1636
  }
1637
1637
  }]
1638
- }, Ht = {
1638
+ }, qt = {
1639
1639
  name: "Slot",
1640
1640
  isRSC: !0,
1641
1641
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1649,7 +1649,7 @@ const Dt = {
1649
1649
  defaultValue: "children"
1650
1650
  }]
1651
1651
  };
1652
- function Kt(e) {
1652
+ function _t(e) {
1653
1653
  var t, n, i;
1654
1654
  return /* @__PURE__ */ s(
1655
1655
  "div",
@@ -1661,7 +1661,7 @@ function Kt(e) {
1661
1661
  "builder-slot": e.name
1662
1662
  },
1663
1663
  children: /* @__PURE__ */ s(
1664
- M,
1664
+ D,
1665
1665
  {
1666
1666
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
1667
1667
  path: `symbol.data.${e.name}`,
@@ -1672,7 +1672,7 @@ function Kt(e) {
1672
1672
  }
1673
1673
  );
1674
1674
  }
1675
- const qt = {
1675
+ const zt = {
1676
1676
  name: "Symbol",
1677
1677
  noWrap: !0,
1678
1678
  static: !0,
@@ -1705,7 +1705,7 @@ const qt = {
1705
1705
  hideFromUI: !0,
1706
1706
  type: "boolean"
1707
1707
  }]
1708
- }, oe = {
1708
+ }, ae = {
1709
1709
  "@type": "@builder.io/sdk:Element",
1710
1710
  responsiveStyles: {
1711
1711
  large: {
@@ -1727,7 +1727,7 @@ const qt = {
1727
1727
  text: "New tab"
1728
1728
  }
1729
1729
  }
1730
- }, ae = {
1730
+ }, re = {
1731
1731
  "@type": "@builder.io/sdk:Element",
1732
1732
  responsiveStyles: {
1733
1733
  large: {
@@ -1743,7 +1743,7 @@ const qt = {
1743
1743
  text: "New tab content "
1744
1744
  }
1745
1745
  }
1746
- }, zt = {
1746
+ }, Jt = {
1747
1747
  name: "Builder: Tabs",
1748
1748
  inputs: [{
1749
1749
  name: "tabs",
@@ -1753,16 +1753,16 @@ const qt = {
1753
1753
  name: "label",
1754
1754
  type: "uiBlocks",
1755
1755
  hideFromUI: !0,
1756
- defaultValue: [oe]
1756
+ defaultValue: [ae]
1757
1757
  }, {
1758
1758
  name: "content",
1759
1759
  type: "uiBlocks",
1760
1760
  hideFromUI: !0,
1761
- defaultValue: [ae]
1761
+ defaultValue: [re]
1762
1762
  }],
1763
1763
  defaultValue: [{
1764
1764
  label: [{
1765
- ...oe,
1765
+ ...ae,
1766
1766
  component: {
1767
1767
  name: "Text",
1768
1768
  options: {
@@ -1771,7 +1771,7 @@ const qt = {
1771
1771
  }
1772
1772
  }],
1773
1773
  content: [{
1774
- ...ae,
1774
+ ...re,
1775
1775
  component: {
1776
1776
  name: "Text",
1777
1777
  options: {
@@ -1781,7 +1781,7 @@ const qt = {
1781
1781
  }]
1782
1782
  }, {
1783
1783
  label: [{
1784
- ...oe,
1784
+ ...ae,
1785
1785
  component: {
1786
1786
  name: "Text",
1787
1787
  options: {
@@ -1790,7 +1790,7 @@ const qt = {
1790
1790
  }
1791
1791
  }],
1792
1792
  content: [{
1793
- ...ae,
1793
+ ...re,
1794
1794
  component: {
1795
1795
  name: "Text",
1796
1796
  options: {
@@ -1841,16 +1841,16 @@ const qt = {
1841
1841
  }]
1842
1842
  }]
1843
1843
  };
1844
- function _t(e) {
1845
- var a;
1844
+ function Yt(e) {
1845
+ var r;
1846
1846
  const [t, n] = C(
1847
1847
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
1848
1848
  );
1849
- function i(r) {
1850
- return e.tabs && e.tabs[r].content;
1849
+ function i(a) {
1850
+ return e.tabs && e.tabs[a].content;
1851
1851
  }
1852
- function o(r) {
1853
- return t === r ? e.activeTabStyle : {};
1852
+ function o(a) {
1853
+ a === t && e.collapsible ? n(-1) : n(a);
1854
1854
  }
1855
1855
  return /* @__PURE__ */ V("div", { children: [
1856
1856
  /* @__PURE__ */ s(
@@ -1863,20 +1863,20 @@ function _t(e) {
1863
1863
  justifyContent: e.tabHeaderLayout || "flex-start",
1864
1864
  overflow: "auto"
1865
1865
  },
1866
- children: (a = e.tabs) == null ? void 0 : a.map((r, l) => /* @__PURE__ */ s(
1866
+ children: (r = e.tabs) == null ? void 0 : r.map((a, l) => /* @__PURE__ */ s(
1867
1867
  "span",
1868
1868
  {
1869
1869
  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);
1870
+ style: {
1871
+ ...t === l ? e.activeTabStyle : {}
1873
1872
  },
1873
+ onClick: (c) => o(l),
1874
1874
  children: /* @__PURE__ */ s(
1875
- M,
1875
+ D,
1876
1876
  {
1877
1877
  parent: e.builderBlock.id,
1878
1878
  path: `component.options.tabs.${l}.label`,
1879
- blocks: r.label,
1879
+ blocks: a.label,
1880
1880
  context: e.builderContext,
1881
1881
  registeredComponents: e.builderComponents,
1882
1882
  linkComponent: e.builderLinkComponent
@@ -1888,7 +1888,7 @@ function _t(e) {
1888
1888
  }
1889
1889
  ),
1890
1890
  i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
1891
- M,
1891
+ D,
1892
1892
  {
1893
1893
  parent: e.builderBlock.id,
1894
1894
  path: `component.options.tabs.${t}.content`,
@@ -1900,7 +1900,7 @@ function _t(e) {
1900
1900
  ) }) : null
1901
1901
  ] });
1902
1902
  }
1903
- const Jt = {
1903
+ const Gt = {
1904
1904
  name: "Text",
1905
1905
  static: !0,
1906
1906
  isRSC: !0,
@@ -1919,7 +1919,7 @@ const Jt = {
1919
1919
  textAlign: "center"
1920
1920
  }
1921
1921
  };
1922
- function Yt(e) {
1922
+ function Qt(e) {
1923
1923
  var t;
1924
1924
  return /* @__PURE__ */ s(
1925
1925
  "div",
@@ -1932,7 +1932,249 @@ function Yt(e) {
1932
1932
  }
1933
1933
  );
1934
1934
  }
1935
- const Gt = {
1935
+ const ve = (e) => e.toString();
1936
+ function Xt(e) {
1937
+ var d;
1938
+ const [t, n] = C(() => []);
1939
+ function i() {
1940
+ return !!(e.grid || e.oneAtATime);
1941
+ }
1942
+ function o() {
1943
+ return {
1944
+ display: "flex",
1945
+ alignItems: "stretch",
1946
+ flexDirection: "column",
1947
+ ...e.grid && {
1948
+ flexDirection: "row",
1949
+ alignItems: "flex-start",
1950
+ flexWrap: "wrap"
1951
+ }
1952
+ };
1953
+ }
1954
+ function r() {
1955
+ const g = {
1956
+ ...{
1957
+ display: "flex",
1958
+ flexDirection: "column"
1959
+ },
1960
+ alignItems: "stretch",
1961
+ cursor: "pointer"
1962
+ };
1963
+ return Object.fromEntries(
1964
+ Object.entries(g).filter(([p, I]) => I !== void 0)
1965
+ );
1966
+ }
1967
+ function a(m) {
1968
+ return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
1969
+ }
1970
+ function l(m) {
1971
+ return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
1972
+ }
1973
+ function c() {
1974
+ let m = null;
1975
+ if (e.grid && t.length && document) {
1976
+ const p = t[0];
1977
+ let S = document.querySelector(
1978
+ `.builder-accordion-title[data-index="${p}"]`
1979
+ );
1980
+ if (m = p, S) {
1981
+ let R = S.getBoundingClientRect();
1982
+ for (; S = S && S.nextElementSibling; )
1983
+ if (S) {
1984
+ if (S.classList.contains("builder-accordion-detail"))
1985
+ continue;
1986
+ const B = S.getBoundingClientRect();
1987
+ if (B.left > R.left) {
1988
+ const A = parseInt(
1989
+ S.getAttribute("data-index") || "",
1990
+ 10
1991
+ );
1992
+ isNaN(A) || (R = B, m = A);
1993
+ } else
1994
+ break;
1995
+ }
1996
+ }
1997
+ }
1998
+ return typeof m == "number" && (m = m + 1), m;
1999
+ }
2000
+ function u() {
2001
+ const m = {
2002
+ order: typeof c() == "number" ? c() : void 0,
2003
+ ...e.grid && {
2004
+ width: "100%"
2005
+ }
2006
+ };
2007
+ return Object.fromEntries(
2008
+ Object.entries(m).filter(([g, p]) => p !== void 0)
2009
+ );
2010
+ }
2011
+ function f(m) {
2012
+ t.includes(m) ? n(i() ? [] : t.filter((g) => g !== m)) : n(i() ? [m] : t.concat(m));
2013
+ }
2014
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m, g) => /* @__PURE__ */ V(E, { children: [
2015
+ /* @__PURE__ */ s(
2016
+ "div",
2017
+ {
2018
+ className: a(g),
2019
+ style: {
2020
+ ...r(),
2021
+ width: e.grid ? e.gridRowWidth : void 0,
2022
+ order: c() !== null ? ve(g) : ve(g + 1)
2023
+ },
2024
+ "data-index": g,
2025
+ onClick: (p) => f(g),
2026
+ children: /* @__PURE__ */ s(
2027
+ D,
2028
+ {
2029
+ blocks: m.title,
2030
+ path: `items.${g}.title`,
2031
+ parent: e.builderBlock.id,
2032
+ context: e.builderContext,
2033
+ registeredComponents: e.builderComponents,
2034
+ linkComponent: e.builderLinkComponent
2035
+ }
2036
+ )
2037
+ }
2038
+ ),
2039
+ t.includes(g) ? /* @__PURE__ */ s(
2040
+ "div",
2041
+ {
2042
+ className: l(g),
2043
+ style: u(),
2044
+ children: /* @__PURE__ */ s(
2045
+ D,
2046
+ {
2047
+ blocks: m.detail,
2048
+ path: `items.${g}.detail`,
2049
+ parent: e.builderBlock.id,
2050
+ context: e.builderContext,
2051
+ registeredComponents: e.builderComponents,
2052
+ linkComponent: e.builderLinkComponent
2053
+ }
2054
+ )
2055
+ }
2056
+ ) : null
2057
+ ] })) });
2058
+ }
2059
+ const le = {
2060
+ "@type": "@builder.io/sdk:Element",
2061
+ layerName: "Accordion item title",
2062
+ responsiveStyles: {
2063
+ large: {
2064
+ marginTop: "10px",
2065
+ position: "relative",
2066
+ display: "flex",
2067
+ alignItems: "stretch",
2068
+ flexDirection: "column",
2069
+ paddingBottom: "10px"
2070
+ }
2071
+ },
2072
+ children: [{
2073
+ "@type": "@builder.io/sdk:Element",
2074
+ responsiveStyles: {
2075
+ large: {
2076
+ textAlign: "left",
2077
+ display: "flex",
2078
+ flexDirection: "column"
2079
+ }
2080
+ },
2081
+ component: {
2082
+ name: "Text",
2083
+ options: {
2084
+ text: "I am an accordion title. Click me!"
2085
+ }
2086
+ }
2087
+ }]
2088
+ }, se = {
2089
+ "@type": "@builder.io/sdk:Element",
2090
+ layerName: "Accordion item detail",
2091
+ responsiveStyles: {
2092
+ large: {
2093
+ position: "relative",
2094
+ display: "flex",
2095
+ alignItems: "stretch",
2096
+ flexDirection: "column",
2097
+ marginTop: "10px",
2098
+ paddingBottom: "10px"
2099
+ }
2100
+ },
2101
+ children: [{
2102
+ "@type": "@builder.io/sdk:Element",
2103
+ responsiveStyles: {
2104
+ large: {
2105
+ paddingTop: "50px",
2106
+ textAlign: "left",
2107
+ display: "flex",
2108
+ flexDirection: "column",
2109
+ paddingBottom: "50px"
2110
+ }
2111
+ },
2112
+ component: {
2113
+ name: "Text",
2114
+ options: {
2115
+ text: "I am an accordion detail, hello!"
2116
+ }
2117
+ }
2118
+ }]
2119
+ }, Zt = {
2120
+ name: "Builder:Accordion",
2121
+ canHaveChildren: !0,
2122
+ image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
2123
+ defaultStyles: {
2124
+ display: "flex",
2125
+ flexDirection: "column",
2126
+ alignItems: "stretch"
2127
+ },
2128
+ inputs: [{
2129
+ name: "items",
2130
+ type: "list",
2131
+ broadcast: !0,
2132
+ subFields: [{
2133
+ name: "title",
2134
+ type: "uiBlocks",
2135
+ hideFromUI: !0,
2136
+ defaultValue: [le]
2137
+ }, {
2138
+ name: "detail",
2139
+ type: "uiBlocks",
2140
+ hideFromUI: !0,
2141
+ defaultValue: [se]
2142
+ }],
2143
+ defaultValue: [{
2144
+ title: [le],
2145
+ detail: [se]
2146
+ }, {
2147
+ title: [le],
2148
+ detail: [se]
2149
+ }],
2150
+ showIf: (e) => !e.get("useChildrenForItems")
2151
+ }, {
2152
+ name: "oneAtATime",
2153
+ helperText: "Only allow opening one at a time (collapse all others when new item openned)",
2154
+ type: "boolean",
2155
+ defaultValue: !1
2156
+ }, {
2157
+ name: "grid",
2158
+ helperText: "Display as a grid",
2159
+ type: "boolean",
2160
+ defaultValue: !1
2161
+ }, {
2162
+ name: "gridRowWidth",
2163
+ helperText: "Display as a grid",
2164
+ type: "string",
2165
+ showIf: (e) => e.get("grid"),
2166
+ defaultValue: "25%"
2167
+ }, {
2168
+ name: "useChildrenForItems",
2169
+ type: "boolean",
2170
+ helperText: "Use child elements for each slide, instead of the array. Useful for dynamically repeating items",
2171
+ advanced: !0,
2172
+ defaultValue: !1,
2173
+ onChange: (e) => {
2174
+ e.get("useChildrenForItems") === !0 && e.set("items", []);
2175
+ }
2176
+ }]
2177
+ }, 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,125 @@ 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, S;
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 ? (S = (I = e.builderContext).rootSetState) == null || S.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 S = g.currentTarget, R = e.customHeaders || {};
2559
+ let B;
2560
+ const A = new FormData(S), O = Array.from(
2561
+ g.currentTarget.querySelectorAll("input,select,textarea")
2562
+ ).filter((b) => !!b.name).map((b) => {
2563
+ let h;
2564
+ const y = b.name;
2565
+ if (b instanceof HTMLInputElement)
2566
+ if (b.type === "radio") {
2567
+ if (b.checked)
2568
+ return h = b.name, {
2569
+ key: y,
2570
+ value: h
2329
2571
  };
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);
2572
+ } else if (b.type === "checkbox")
2573
+ h = b.checked;
2574
+ else if (b.type === "number" || b.type === "range") {
2575
+ const x = b.valueAsNumber;
2576
+ isNaN(x) || (h = x);
2335
2577
  } else
2336
- h.type === "file" ? f = h.files : f = h.value;
2578
+ b.type === "file" ? h = b.files : h = b.value;
2337
2579
  else
2338
- f = h.value;
2580
+ h = b.value;
2339
2581
  return {
2340
- key: b,
2341
- value: f
2582
+ key: y,
2583
+ value: h
2342
2584
  };
2343
2585
  });
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;
2586
+ let v = e.contentType;
2587
+ if (e.sendSubmissionsTo === "email" && (v = "multipart/form-data"), Array.from(O).forEach(({ value: b }) => {
2588
+ (b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (v = "multipart/form-data");
2589
+ }), v !== "application/json")
2590
+ B = A;
2349
2591
  else {
2350
- const h = {};
2351
- Array.from(D).forEach(({ value: f, key: b }) => {
2352
- Re(h, b, f);
2353
- }), A = JSON.stringify(h);
2592
+ const b = {};
2593
+ Array.from(O).forEach(({ value: h, key: y }) => {
2594
+ Pe(b, y, h);
2595
+ }), B = JSON.stringify(b);
2354
2596
  }
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))
2597
+ v && v !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (R["content-type"] = v));
2598
+ const w = new CustomEvent("presubmit", { detail: { body: B } });
2599
+ if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
2358
2600
  return;
2359
2601
  i("sending");
2360
- const N = `${an() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2602
+ const W = `${cn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2361
2603
  e.sendSubmissionsToEmail || ""
2362
2604
  )}&name=${encodeURIComponent(e.name || "")}`;
2363
2605
  fetch(
2364
- e.sendSubmissionsTo === "email" ? N : e.action,
2365
- { body: A, headers: R, method: e.method || "post" }
2606
+ e.sendSubmissionsTo === "email" ? W : e.action,
2607
+ { body: B, headers: R, method: e.method || "post" }
2366
2608
  ).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 }));
2609
+ async (b) => {
2610
+ let h;
2611
+ const y = b.headers.get("content-type");
2612
+ if (y && y.indexOf("application/json") !== -1 ? h = await b.json() : h = await b.text(), !b.ok && e.errorMessagePath) {
2613
+ let x = dn(h, e.errorMessagePath);
2614
+ x && (typeof x != "string" && (x = JSON.stringify(x)), l(x), c({ formErrorMessage: x }));
2373
2615
  }
2374
- if (a(f), i(h.ok ? "success" : "error"), h.ok) {
2375
- const p = new CustomEvent("submit:success", {
2376
- detail: { res: h, body: f }
2616
+ if (r(h), i(b.ok ? "success" : "error"), b.ok) {
2617
+ const x = new CustomEvent("submit:success", {
2618
+ detail: { res: b, body: h }
2377
2619
  });
2378
2620
  if (t.current) {
2379
- if (t.current.dispatchEvent(p), p.defaultPrevented)
2621
+ if (t.current.dispatchEvent(x), x.defaultPrevented)
2380
2622
  return;
2381
2623
  e.resetFormOnSubmit !== !1 && t.current.reset();
2382
2624
  }
2383
2625
  if (e.successUrl)
2384
2626
  if (t.current) {
2385
- const v = new CustomEvent("route", {
2627
+ const k = new CustomEvent("route", {
2386
2628
  detail: { url: e.successUrl }
2387
2629
  });
2388
- t.current.dispatchEvent(v), v.defaultPrevented || (location.href = e.successUrl);
2630
+ t.current.dispatchEvent(k), k.defaultPrevented || (location.href = e.successUrl);
2389
2631
  } else
2390
2632
  location.href = e.successUrl;
2391
2633
  }
2392
2634
  },
2393
- (h) => {
2394
- const f = new CustomEvent("submit:error", {
2395
- detail: { error: h }
2635
+ (b) => {
2636
+ const h = new CustomEvent("submit:error", {
2637
+ detail: { error: b }
2396
2638
  });
2397
- t.current && (t.current.dispatchEvent(f), f.defaultPrevented) || (a(h), i("error"));
2639
+ t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (r(b), i("error"));
2398
2640
  }
2399
2641
  );
2400
2642
  }
2401
2643
  }
2402
- return /* @__PURE__ */ V(w, { children: [
2644
+ return /* @__PURE__ */ V(E, { children: [
2403
2645
  " ",
2404
2646
  /* @__PURE__ */ V(
2405
2647
  "form",
@@ -2409,38 +2651,38 @@ function ln(e) {
2409
2651
  action: !e.sendWithJs && e.action,
2410
2652
  method: e.method,
2411
2653
  name: e.name,
2412
- onSubmit: (y) => m(y),
2654
+ onSubmit: (g) => f(g),
2413
2655
  ...e.attributes,
2414
2656
  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
- _,
2657
+ 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(
2658
+ z,
2417
2659
  {
2418
- block: y,
2660
+ block: g,
2419
2661
  context: e.builderContext,
2420
2662
  registeredComponents: e.builderComponents,
2421
2663
  linkComponent: e.builderLinkComponent
2422
2664
  },
2423
- `form-block-${S}`
2665
+ `form-block-${p}`
2424
2666
  )) }) : null,
2425
- d() === "error" ? /* @__PURE__ */ s(
2426
- M,
2667
+ u() === "error" ? /* @__PURE__ */ s(
2668
+ D,
2427
2669
  {
2428
2670
  path: "errorMessage",
2429
2671
  blocks: e.errorMessage,
2430
2672
  context: e.builderContext
2431
2673
  }
2432
2674
  ) : null,
2433
- d() === "sending" ? /* @__PURE__ */ s(
2434
- M,
2675
+ u() === "sending" ? /* @__PURE__ */ s(
2676
+ D,
2435
2677
  {
2436
2678
  path: "sendingMessage",
2437
2679
  blocks: e.sendingMessage,
2438
2680
  context: e.builderContext
2439
2681
  }
2440
2682
  ) : 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,
2683
+ u() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-31bf8a14", children: JSON.stringify(o, null, 2) }) : null,
2684
+ u() === "success" ? /* @__PURE__ */ s(
2685
+ D,
2444
2686
  {
2445
2687
  path: "successMessage",
2446
2688
  blocks: e.successMessage,
@@ -2455,7 +2697,7 @@ function ln(e) {
2455
2697
  " "
2456
2698
  ] });
2457
2699
  }
2458
- const sn = {
2700
+ const mn = {
2459
2701
  name: "Form:Input",
2460
2702
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2461
2703
  inputs: [
@@ -2507,12 +2749,12 @@ const sn = {
2507
2749
  borderColor: "#ccc"
2508
2750
  }
2509
2751
  };
2510
- function cn(e) {
2511
- return /* @__PURE__ */ we(
2752
+ function fn(e) {
2753
+ return /* @__PURE__ */ Re(
2512
2754
  "input",
2513
2755
  {
2514
2756
  ...e.attributes,
2515
- key: F() && e.defaultValue ? e.defaultValue : "default-key",
2757
+ key: $() && e.defaultValue ? e.defaultValue : "default-key",
2516
2758
  placeholder: e.placeholder,
2517
2759
  type: e.type,
2518
2760
  name: e.name,
@@ -2522,7 +2764,7 @@ function cn(e) {
2522
2764
  }
2523
2765
  );
2524
2766
  }
2525
- const dn = {
2767
+ const hn = {
2526
2768
  name: "Form:Select",
2527
2769
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2528
2770
  defaultStyles: {
@@ -2565,21 +2807,21 @@ const dn = {
2565
2807
  static: !0,
2566
2808
  noWrap: !0
2567
2809
  };
2568
- function un(e) {
2810
+ function gn(e) {
2569
2811
  var t;
2570
- return /* @__PURE__ */ we(
2812
+ return /* @__PURE__ */ Re(
2571
2813
  "select",
2572
2814
  {
2573
2815
  ...e.attributes,
2574
2816
  value: e.value,
2575
- key: F() && e.defaultValue ? e.defaultValue : "default-key",
2817
+ key: $() && e.defaultValue ? e.defaultValue : "default-key",
2576
2818
  defaultValue: e.defaultValue,
2577
2819
  name: e.name
2578
2820
  },
2579
2821
  (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
2822
  );
2581
2823
  }
2582
- const mn = {
2824
+ const bn = {
2583
2825
  name: "Form:SubmitButton",
2584
2826
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2585
2827
  defaultStyles: {
@@ -2605,10 +2847,10 @@ const mn = {
2605
2847
  // TODO: defaultChildren
2606
2848
  // canHaveChildren: true,
2607
2849
  };
2608
- function fn(e) {
2850
+ function pn(e) {
2609
2851
  return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
2610
2852
  }
2611
- const hn = {
2853
+ const yn = {
2612
2854
  // friendlyName?
2613
2855
  name: "Raw:Img",
2614
2856
  hideFromInsertMenu: !0,
@@ -2623,7 +2865,7 @@ const hn = {
2623
2865
  noWrap: !0,
2624
2866
  static: !0
2625
2867
  };
2626
- function gn(e) {
2868
+ function xn(e) {
2627
2869
  return /* @__PURE__ */ s(
2628
2870
  "img",
2629
2871
  {
@@ -2635,10 +2877,10 @@ function gn(e) {
2635
2877
  src: e.imgSrc || e.image,
2636
2878
  ...e.attributes
2637
2879
  },
2638
- F() && e.imgSrc || "default-key"
2880
+ $() && e.imgSrc || "default-key"
2639
2881
  );
2640
2882
  }
2641
- const bn = {
2883
+ const Sn = {
2642
2884
  name: "Video",
2643
2885
  canHaveChildren: !0,
2644
2886
  defaultStyles: {
@@ -2720,8 +2962,8 @@ const bn = {
2720
2962
  advanced: !0
2721
2963
  }]
2722
2964
  };
2723
- function yn(e) {
2724
- var i, o, a, r, l, c, d;
2965
+ function vn(e) {
2966
+ var i, o, r, a, l, c, u;
2725
2967
  function t() {
2726
2968
  return {
2727
2969
  ...e.autoPlay === !0 ? {
@@ -2778,7 +3020,7 @@ function yn(e) {
2778
3020
  children: e.lazyLoad ? null : /* @__PURE__ */ s("source", { type: "video/mp4", src: e.video })
2779
3021
  }
2780
3022
  ),
2781
- e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ s(
3023
+ e.aspectRatio && !(e.fitContent && ((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length)) ? /* @__PURE__ */ s(
2782
3024
  "div",
2783
3025
  {
2784
3026
  style: {
@@ -2789,7 +3031,7 @@ function yn(e) {
2789
3031
  }
2790
3032
  }
2791
3033
  ) : null,
2792
- (l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
3034
+ (l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
2793
3035
  "div",
2794
3036
  {
2795
3037
  style: {
@@ -2800,7 +3042,7 @@ function yn(e) {
2800
3042
  children: e.children
2801
3043
  }
2802
3044
  ) : null,
2803
- (d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ s(
3045
+ (u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length && !e.fitContent ? /* @__PURE__ */ s(
2804
3046
  "div",
2805
3047
  {
2806
3048
  style: {
@@ -2821,58 +3063,61 @@ function yn(e) {
2821
3063
  }
2822
3064
  );
2823
3065
  }
2824
- const pn = () => [{
2825
- component: Qt,
2826
- ...Gt
2827
- }, {
3066
+ const kn = () => [{
2828
3067
  component: tn,
2829
- ...Xt
3068
+ ...en
2830
3069
  }, {
2831
- component: ln,
3070
+ component: rn,
2832
3071
  ...nn
2833
3072
  }, {
2834
- component: cn,
2835
- ...sn
3073
+ component: un,
3074
+ ...ln
2836
3075
  }, {
2837
3076
  component: fn,
2838
3077
  ...mn
2839
3078
  }, {
2840
- component: un,
2841
- ...dn
3079
+ component: pn,
3080
+ ...bn
2842
3081
  }, {
2843
3082
  component: gn,
2844
3083
  ...hn
2845
3084
  }, {
2846
- component: yn,
2847
- ...bn
2848
- }], xe = () => [{
2849
- component: Ze,
2850
- ...Dt
3085
+ component: xn,
3086
+ ...yn
2851
3087
  }, {
2852
- component: At,
2853
- ...Mt
3088
+ component: vn,
3089
+ ...Sn
3090
+ }], ke = () => [{
3091
+ component: nt,
3092
+ ...jt
2854
3093
  }, {
2855
3094
  component: Wt,
2856
- ...Ot
3095
+ ...Ut
2857
3096
  }, {
2858
3097
  component: Ft,
2859
- ...Ut
3098
+ ...Mt
2860
3099
  }, {
2861
3100
  component: Lt,
2862
- ...jt
2863
- }, {
2864
- component: Kt,
2865
3101
  ...Ht
2866
3102
  }, {
2867
- component: Un,
3103
+ component: Ot,
3104
+ ...Kt
3105
+ }, {
3106
+ component: _t,
2868
3107
  ...qt
3108
+ }, {
3109
+ component: qn,
3110
+ ...zt
3111
+ }, {
3112
+ component: Qt,
3113
+ ...Gt
2869
3114
  }, {
2870
3115
  component: Yt,
2871
3116
  ...Jt
2872
3117
  }, {
2873
- component: _t,
2874
- ...zt
2875
- }, ...pn()], xn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3118
+ component: Xt,
3119
+ ...Zt
3120
+ }, ...kn()], Cn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2876
3121
  function getAndSetVariantId() {
2877
3122
  function setCookie(name, value, days) {
2878
3123
  let expires = '';
@@ -2928,7 +3173,7 @@ const pn = () => [{
2928
3173
  }).join('');
2929
3174
  styleEl.innerHTML = newStyleStr;
2930
3175
  }
2931
- }`, Sn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3176
+ }`, Tn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2932
3177
  if (!navigator.cookieEnabled) {
2933
3178
  return;
2934
3179
  }
@@ -2962,26 +3207,26 @@ const pn = () => [{
2962
3207
  thisScriptEl?.remove();
2963
3208
  }
2964
3209
  return;
2965
- }`, Le = "builderIoAbTest", De = "builderIoRenderContent", Y = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3210
+ }`, je = "builderIoAbTest", Ue = "builderIoRenderContent", Y = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2966
3211
  ...t,
2967
3212
  testVariationId: t.id,
2968
3213
  id: e == null ? void 0 : e.id
2969
- })), vn = ({
3214
+ })), In = ({
2970
3215
  canTrack: e,
2971
3216
  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}(
3217
+ }) => !(!(Y(t).length > 0) || !e || M()), wn = (e) => e === "react" || e === "reactNative", Me = wn(_), En = () => `
3218
+ window.${je} = ${Cn}
3219
+ window.${Ue} = ${Tn}
3220
+ `, Rn = (e, t) => `
3221
+ window.${je}(
2977
3222
  "${t}",${JSON.stringify(e)}, ${Me}
2978
- )`, wn = ({
3223
+ )`, Vn = ({
2979
3224
  contentId: e,
2980
3225
  variationId: t
2981
- }) => `window.${De}(
3226
+ }) => `window.${Ue}(
2982
3227
  "${t}", "${e}", ${Me}
2983
3228
  )`;
2984
- function re(e) {
3229
+ function ce(e) {
2985
3230
  return /* @__PURE__ */ s(
2986
3231
  "script",
2987
3232
  {
@@ -2990,10 +3235,10 @@ function re(e) {
2990
3235
  }
2991
3236
  );
2992
3237
  }
2993
- function Se(e) {
3238
+ function Ce(e) {
2994
3239
  return Math.round(e * 1e3) / 1e3;
2995
3240
  }
2996
- const In = (e, t, n = !0) => {
3241
+ const Bn = (e, t, n = !0) => {
2997
3242
  if (!(e instanceof HTMLElement))
2998
3243
  return null;
2999
3244
  let i = n ? e : e.parentElement;
@@ -3004,37 +3249,37 @@ const In = (e, t, n = !0) => {
3004
3249
  return i;
3005
3250
  } while (i = i.parentElement);
3006
3251
  return null;
3007
- }, En = (e) => In(e, (t) => {
3252
+ }, Pn = (e) => Bn(e, (t) => {
3008
3253
  const n = t.getAttribute("builder-id") || t.id;
3009
3254
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3010
- }), ve = ({
3255
+ }), Te = ({
3011
3256
  event: e,
3012
3257
  target: t
3013
3258
  }) => {
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);
3259
+ 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
3260
  return {
3016
- x: a,
3017
- y: r
3261
+ x: r,
3262
+ y: a
3018
3263
  };
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);
3264
+ }, An = (e) => {
3265
+ const t = e.target, n = t && Pn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3021
3266
  return {
3022
3267
  targetBuilderElement: i || void 0,
3023
3268
  metadata: {
3024
- targetOffset: t ? ve({
3269
+ targetOffset: t ? Te({
3025
3270
  event: e,
3026
3271
  target: t
3027
3272
  }) : void 0,
3028
- builderTargetOffset: n ? ve({
3273
+ builderTargetOffset: n ? Te({
3029
3274
  event: e,
3030
3275
  target: n
3031
3276
  }) : void 0,
3032
3277
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3033
3278
  }
3034
3279
  };
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;
3280
+ }, Nn = (e) => {
3281
+ var r, a;
3282
+ 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
3283
  let o = "";
3039
3284
  if (i && t && n && (o += `
3040
3285
  @font-face {
@@ -3047,26 +3292,26 @@ font-weight: 400;
3047
3292
  for (const l in e.files) {
3048
3293
  if (!(String(Number(l)) === l))
3049
3294
  continue;
3050
- const d = e.files[l];
3051
- d && d !== i && (o += `
3295
+ const u = e.files[l];
3296
+ u && u !== i && (o += `
3052
3297
  @font-face {
3053
3298
  font-family: "${t}";
3054
- src: url('${d}') format('woff2');
3299
+ src: url('${u}') format('woff2');
3055
3300
  font-display: fallback;
3056
3301
  font-weight: ${l};
3057
3302
  }
3058
3303
  `.trim());
3059
3304
  }
3060
3305
  return o;
3061
- }, Vn = ({
3306
+ }, Wn = ({
3062
3307
  customFonts: e
3063
3308
  }) => {
3064
3309
  var t;
3065
- return ((t = e == null ? void 0 : e.map((n) => Pn(n))) == null ? void 0 : t.join(" ")) || "";
3066
- }, Bn = ({
3310
+ return ((t = e == null ? void 0 : e.map((n) => Nn(n))) == null ? void 0 : t.join(" ")) || "";
3311
+ }, Fn = ({
3067
3312
  cssCode: e,
3068
3313
  contentId: t
3069
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", An = `
3314
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", $n = `
3070
3315
  .builder-button {
3071
3316
  all: unset;
3072
3317
  }
@@ -3083,39 +3328,39 @@ font-weight: ${l};
3083
3328
  text-align: inherit;
3084
3329
  font-family: inherit;
3085
3330
  }
3086
- `, Wn = (e) => e ? "" : An, Nn = (e) => `variant-${e}`;
3087
- function $n(e) {
3088
- var A, W, D, x, T, N, h;
3331
+ `, Dn = (e) => e ? "" : $n, Ln = (e) => `variant-${e}`;
3332
+ function On(e) {
3333
+ var B, A, O, v, w, W, b;
3089
3334
  const t = ee(null);
3090
- function n(f) {
3091
- var p, v;
3092
- const b = {
3335
+ function n(h) {
3336
+ var x, k;
3337
+ const y = {
3093
3338
  ...e.builderContextSignal.rootState,
3094
- ...f
3339
+ ...h
3095
3340
  };
3096
- e.builderContextSignal.rootSetState ? (v = (p = e.builderContextSignal).rootSetState) == null || v.call(p, b) : e.setBuilderContextSignal((k) => ({
3097
- ...k,
3098
- rootState: b
3341
+ e.builderContextSignal.rootSetState ? (k = (x = e.builderContextSignal).rootSetState) == null || k.call(x, y) : e.setBuilderContextSignal((T) => ({
3342
+ ...T,
3343
+ rootState: y
3099
3344
  }));
3100
3345
  }
3101
- function i(f) {
3102
- var p, v, k, B, O;
3103
- const b = {
3346
+ function i(h) {
3347
+ var x, k, T, N, j;
3348
+ const y = {
3104
3349
  ...e.builderContextSignal.content,
3105
- ...f,
3350
+ ...h,
3106
3351
  data: {
3107
- ...(p = e.builderContextSignal.content) == null ? void 0 : p.data,
3108
- ...f == null ? void 0 : f.data
3352
+ ...(x = e.builderContextSignal.content) == null ? void 0 : x.data,
3353
+ ...h == null ? void 0 : h.data
3109
3354
  },
3110
3355
  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)
3356
+ ...(k = e.builderContextSignal.content) == null ? void 0 : k.meta,
3357
+ ...h == null ? void 0 : h.meta,
3358
+ 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
3359
  }
3115
3360
  };
3116
- e.setBuilderContextSignal(($) => ({
3117
- ...$,
3118
- content: b
3361
+ e.setBuilderContextSignal((F) => ({
3362
+ ...F,
3363
+ content: y
3119
3364
  }));
3120
3365
  }
3121
3366
  function o() {
@@ -3124,37 +3369,37 @@ function $n(e) {
3124
3369
  "aria-hidden": !0
3125
3370
  };
3126
3371
  }
3127
- const [a, r] = C(
3372
+ const [r, a] = C(
3128
3373
  () => e.contentWrapper || "div"
3129
3374
  );
3130
- function l(f) {
3131
- return Je({
3375
+ function l(h) {
3376
+ return Qe({
3132
3377
  model: e.model,
3133
3378
  trustedHosts: e.trustedHosts,
3134
3379
  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({
3380
+ configureSdk: (y) => {
3381
+ var T;
3382
+ const { breakpoints: x, contentId: k } = y;
3383
+ !k || k !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || x && i({
3139
3384
  meta: {
3140
- breakpoints: p
3385
+ breakpoints: x
3141
3386
  }
3142
3387
  });
3143
3388
  },
3144
- animation: (b) => {
3145
- Be(b);
3389
+ animation: (y) => {
3390
+ We(y);
3146
3391
  },
3147
- contentUpdate: (b) => {
3148
- i(b);
3392
+ contentUpdate: (y) => {
3393
+ i(y);
3149
3394
  }
3150
3395
  }
3151
- })(f);
3396
+ })(h);
3152
3397
  }
3153
3398
  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,
3399
+ var y, x;
3400
+ const h = (x = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : x.jsCode;
3401
+ h && q({
3402
+ code: h,
3158
3403
  context: e.context || {},
3159
3404
  localState: void 0,
3160
3405
  rootState: e.builderContextSignal.rootState,
@@ -3165,35 +3410,35 @@ function $n(e) {
3165
3410
  enableCache: !1
3166
3411
  });
3167
3412
  }
3168
- const [d, m] = C(() => ({})), [u, g] = C(() => ({})), [y, S] = C(() => !1);
3169
- function I(f) {
3170
- var b, p;
3413
+ const [u, f] = C(() => ({})), [d, m] = C(() => ({})), [g, p] = C(() => !1);
3414
+ function I(h) {
3415
+ var y, x;
3171
3416
  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({
3417
+ const k = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, T = (x = e.builderContextSignal.content) == null ? void 0 : x.id;
3418
+ he({
3174
3419
  type: "click",
3175
3420
  canTrack: Q(e.canTrack),
3176
- contentId: k,
3421
+ contentId: T,
3177
3422
  apiKey: e.apiKey,
3178
- variationId: v !== k ? v : void 0,
3179
- ...Rn(f),
3180
- unique: !y
3423
+ variationId: k !== T ? k : void 0,
3424
+ ...An(h),
3425
+ unique: !g
3181
3426
  });
3182
3427
  }
3183
- y || S(!0);
3428
+ g || p(!0);
3184
3429
  }
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())
3430
+ function S() {
3431
+ var y, x, k;
3432
+ const h = (k = (x = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : x.httpRequests) != null ? k : {};
3433
+ Object.entries(h).forEach(([T, N]) => {
3434
+ if (!N || d[T] || u[T] && !$())
3190
3435
  return;
3191
- u[k] = !0;
3192
- const O = B.replace(
3436
+ d[T] = !0;
3437
+ const j = N.replace(
3193
3438
  /{{([^}]+)}}/g,
3194
- ($, Oe) => String(
3439
+ (F, He) => String(
3195
3440
  q({
3196
- code: Oe,
3441
+ code: He,
3197
3442
  context: e.context || {},
3198
3443
  localState: void 0,
3199
3444
  rootState: e.builderContextSignal.rootState,
@@ -3202,24 +3447,24 @@ function $n(e) {
3202
3447
  })
3203
3448
  )
3204
3449
  );
3205
- Ye(O).then(($) => $.json()).then(($) => {
3450
+ Xe(j).then((F) => F.json()).then((F) => {
3206
3451
  n({
3207
- [k]: $
3208
- }), d[k] = !0;
3209
- }).catch(($) => {
3210
- console.error("error fetching dynamic data", B, $);
3452
+ [T]: F
3453
+ }), u[T] = !0;
3454
+ }).catch((F) => {
3455
+ console.error("error fetching dynamic data", N, F);
3211
3456
  }).finally(() => {
3212
- u[k] = !1;
3457
+ d[T] = !1;
3213
3458
  });
3214
3459
  });
3215
3460
  }
3216
3461
  function R() {
3217
- F() && window.dispatchEvent(
3462
+ $() && window.dispatchEvent(
3218
3463
  new CustomEvent(
3219
3464
  "builder:component:stateChange",
3220
3465
  {
3221
3466
  detail: {
3222
- state: le(e.builderContextSignal.rootState),
3467
+ state: de(e.builderContextSignal.rootState),
3223
3468
  ref: {
3224
3469
  name: e.model
3225
3470
  }
@@ -3229,9 +3474,9 @@ function $n(e) {
3229
3474
  );
3230
3475
  }
3231
3476
  return P(() => {
3232
- var f, b;
3233
- if (j()) {
3234
- if (F() && (window.addEventListener("message", l), Ke(), qe({
3477
+ var h, y;
3478
+ if (M()) {
3479
+ if ($() && (window.addEventListener("message", l), ze(), Je({
3235
3480
  ...e.locale ? {
3236
3481
  locale: e.locale
3237
3482
  } : {},
@@ -3243,47 +3488,47 @@ function $n(e) {
3243
3488
  } : {}
3244
3489
  }), Object.values(
3245
3490
  e.builderContextSignal.componentInfos
3246
- ).forEach((v) => {
3247
- var B;
3248
- const k = ze(v);
3249
- (B = window.parent) == null || B.postMessage(k, "*");
3491
+ ).forEach((k) => {
3492
+ var N;
3493
+ const T = Ye(k);
3494
+ (N = window.parent) == null || N.postMessage(T, "*");
3250
3495
  }), window.addEventListener(
3251
3496
  "builder:component:stateChangeListenerActivated",
3252
3497
  R
3253
3498
  )), 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({
3499
+ const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, T = (y = e.builderContextSignal.content) == null ? void 0 : y.id, N = e.apiKey;
3500
+ he({
3256
3501
  type: "impression",
3257
3502
  canTrack: !0,
3258
- contentId: k,
3259
- apiKey: B,
3260
- variationId: v !== k ? v : void 0
3503
+ contentId: T,
3504
+ apiKey: N,
3505
+ variationId: k !== T ? k : void 0
3261
3506
  });
3262
3507
  }
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({
3508
+ if (Ge() && !$()) {
3509
+ const k = new URL(location.href).searchParams, T = k.get("builder.preview"), N = k.get(
3510
+ `builder.preview.${T}`
3511
+ ), j = k.get("apiKey") || k.get("builder.space");
3512
+ T === e.model && j === e.apiKey && (!e.content || N === e.content.id) && we({
3268
3513
  model: e.model,
3269
3514
  apiKey: e.apiKey,
3270
3515
  apiVersion: e.builderContextSignal.apiVersion
3271
- }).then(($) => {
3272
- $ && i($);
3516
+ }).then((F) => {
3517
+ F && i(F);
3273
3518
  });
3274
3519
  }
3275
3520
  }
3276
3521
  }, []), P(() => {
3277
3522
  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();
3523
+ "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3524
+ ), c(), S(), R();
3280
3525
  }, []), P(() => {
3281
3526
  e.content && i(e.content);
3282
3527
  }, [e.content]), P(() => {
3283
3528
  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(() => {
3529
+ }, [(A = (B = e.builderContextSignal.content) == null ? void 0 : B.data) == null ? void 0 : A.jsCode]), P(() => {
3530
+ S();
3531
+ }, [(v = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : v.httpRequests]), P(() => {
3287
3532
  R();
3288
3533
  }, [e.builderContextSignal.rootState]), P(() => {
3289
3534
  e.data && n(e.data);
@@ -3292,49 +3537,49 @@ function $n(e) {
3292
3537
  locale: e.locale
3293
3538
  });
3294
3539
  }, [e.locale]), P(() => () => {
3295
- j() && (window.removeEventListener("message", l), window.removeEventListener(
3540
+ M() && (window.removeEventListener("message", l), window.removeEventListener(
3296
3541
  "builder:component:stateChangeListenerActivated",
3297
3542
  R
3298
3543
  ));
3299
- }, []), /* @__PURE__ */ s(ce.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
3300
- a,
3544
+ }, []), /* @__PURE__ */ s(me.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
3545
+ r,
3301
3546
  {
3302
3547
  ref: t,
3303
- onClick: (f) => I(f),
3304
- "builder-content-id": (T = e.builderContextSignal.content) == null ? void 0 : T.id,
3548
+ onClick: (h) => I(h),
3549
+ "builder-content-id": (w = e.builderContextSignal.content) == null ? void 0 : w.id,
3305
3550
  "builder-model": e.model,
3306
3551
  ...o(),
3307
3552
  ...e.contentWrapperProps,
3308
- className: Nn(
3309
- ((N = e.content) == null ? void 0 : N.testVariationId) || ((h = e.content) == null ? void 0 : h.id)
3553
+ className: Ln(
3554
+ ((W = e.content) == null ? void 0 : W.testVariationId) || ((b = e.content) == null ? void 0 : b.id)
3310
3555
  ),
3311
3556
  children: e.children
3312
3557
  }
3313
3558
  ) : null });
3314
3559
  }
3315
- function Fn(e) {
3560
+ function jn(e) {
3316
3561
  const [t, n] = C(
3317
3562
  () => `
3318
- ${Bn({
3563
+ ${Fn({
3319
3564
  cssCode: e.cssCode,
3320
3565
  contentId: e.contentId
3321
3566
  })}
3322
- ${Vn({
3567
+ ${Wn({
3323
3568
  customFonts: e.customFonts
3324
3569
  })}
3325
- ${Wn(e.isNestedRender)}
3570
+ ${Dn(e.isNestedRender)}
3326
3571
  `.trim()
3327
3572
  );
3328
- return /* @__PURE__ */ s(te, { id: "builderio-content", styles: t });
3573
+ return /* @__PURE__ */ s(ne, { id: "builderio-content", styles: t });
3329
3574
  }
3330
- const Ln = ({
3575
+ const Un = ({
3331
3576
  content: e,
3332
3577
  data: t,
3333
3578
  locale: n
3334
3579
  }) => {
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) => {
3580
+ var r, a, l;
3581
+ const i = {}, o = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
3582
+ return (l = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || l.forEach((c) => {
3338
3583
  c.name && c.defaultValue !== void 0 && (i[c.name] = c.defaultValue);
3339
3584
  }), {
3340
3585
  ...i,
@@ -3344,7 +3589,7 @@ const Ln = ({
3344
3589
  locale: n
3345
3590
  } : {}
3346
3591
  };
3347
- }, Dn = ({
3592
+ }, Mn = ({
3348
3593
  content: e,
3349
3594
  data: t
3350
3595
  }) => e ? {
@@ -3355,46 +3600,46 @@ const Ln = ({
3355
3600
  },
3356
3601
  meta: e == null ? void 0 : e.meta
3357
3602
  } : void 0;
3358
- function ke(e) {
3359
- var c, d, m, u, g, y, S;
3603
+ function Ie(e) {
3604
+ var c, u, f, d, m, g, p;
3360
3605
  const [t, n] = C(
3361
3606
  () => {
3362
- var I, E;
3363
- return wn({
3607
+ var I, S;
3608
+ return Vn({
3364
3609
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3365
3610
  variationId: (I = e.content) == null ? void 0 : I.testVariationId,
3366
3611
  // 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
3612
+ contentId: (S = e.content) == null ? void 0 : S.id
3368
3613
  });
3369
3614
  }
3370
3615
  );
3371
3616
  function i(I) {
3372
- l((E) => ({
3373
- ...E,
3617
+ l((S) => ({
3618
+ ...S,
3374
3619
  rootState: I
3375
3620
  }));
3376
3621
  }
3377
- const [o, a] = C(
3622
+ const [o, r] = C(
3378
3623
  () => [
3379
- ...xe(),
3624
+ ...ke(),
3380
3625
  ...e.customComponents || []
3381
3626
  ].reduce(
3382
- (I, { component: E, ...R }) => ({
3627
+ (I, { component: S, ...R }) => ({
3383
3628
  ...I,
3384
3629
  [R.name]: {
3385
- component: E,
3386
- ...fe(R)
3630
+ component: S,
3631
+ ...ge(R)
3387
3632
  }
3388
3633
  }),
3389
3634
  {}
3390
3635
  )
3391
- ), [r, l] = C(() => ({
3392
- content: Dn({
3636
+ ), [a, l] = C(() => ({
3637
+ content: Mn({
3393
3638
  content: e.content,
3394
3639
  data: e.data
3395
3640
  }),
3396
3641
  localState: void 0,
3397
- rootState: Ln({
3642
+ rootState: Un({
3398
3643
  content: e.content,
3399
3644
  data: e.data,
3400
3645
  locale: e.locale
@@ -3404,12 +3649,12 @@ function ke(e) {
3404
3649
  apiKey: e.apiKey,
3405
3650
  apiVersion: e.apiVersion,
3406
3651
  componentInfos: [
3407
- ...xe(),
3652
+ ...ke(),
3408
3653
  ...e.customComponents || []
3409
3654
  ].reduce(
3410
- (I, { component: E, ...R }) => ({
3655
+ (I, { component: S, ...R }) => ({
3411
3656
  ...I,
3412
- [R.name]: fe(R)
3657
+ [R.name]: ge(R)
3413
3658
  }),
3414
3659
  {}
3415
3660
  ),
@@ -3418,13 +3663,13 @@ function ke(e) {
3418
3663
  BlocksWrapperProps: e.blocksWrapperProps || {}
3419
3664
  }));
3420
3665
  return /* @__PURE__ */ s(
3421
- Ie.Provider,
3666
+ Ve.Provider,
3422
3667
  {
3423
3668
  value: {
3424
3669
  registeredComponents: o
3425
3670
  },
3426
3671
  children: /* @__PURE__ */ V(
3427
- $n,
3672
+ On,
3428
3673
  {
3429
3674
  content: e.content,
3430
3675
  data: e.data,
@@ -3435,7 +3680,7 @@ function ke(e) {
3435
3680
  locale: e.locale,
3436
3681
  enrich: e.enrich,
3437
3682
  showContent: e.showContent,
3438
- builderContextSignal: r,
3683
+ builderContextSignal: a,
3439
3684
  contentWrapper: e.contentWrapper,
3440
3685
  contentWrapperProps: e.contentWrapperProps,
3441
3686
  linkComponent: e.linkComponent,
@@ -3443,26 +3688,26 @@ function ke(e) {
3443
3688
  setBuilderContextSignal: l,
3444
3689
  children: [
3445
3690
  e.isSsrAbTest ? /* @__PURE__ */ s(
3446
- re,
3691
+ ce,
3447
3692
  {
3448
3693
  id: "builderio-variant-visibility",
3449
3694
  scriptStr: t
3450
3695
  }
3451
3696
  ) : null,
3452
3697
  /* @__PURE__ */ s(
3453
- Fn,
3698
+ jn,
3454
3699
  {
3455
3700
  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
3701
+ contentId: (c = a.content) == null ? void 0 : c.id,
3702
+ cssCode: (f = (u = a.content) == null ? void 0 : u.data) == null ? void 0 : f.cssCode,
3703
+ customFonts: (m = (d = a.content) == null ? void 0 : d.data) == null ? void 0 : m.customFonts
3459
3704
  }
3460
3705
  ),
3461
3706
  /* @__PURE__ */ s(
3462
- M,
3707
+ D,
3463
3708
  {
3464
- blocks: (S = (y = r.content) == null ? void 0 : y.data) == null ? void 0 : S.blocks,
3465
- context: r,
3709
+ blocks: (p = (g = a.content) == null ? void 0 : g.data) == null ? void 0 : p.blocks,
3710
+ context: a,
3466
3711
  registeredComponents: o,
3467
3712
  linkComponent: e.linkComponent
3468
3713
  }
@@ -3473,17 +3718,17 @@ function ke(e) {
3473
3718
  }
3474
3719
  );
3475
3720
  }
3476
- function Mn(e) {
3477
- var r;
3721
+ function Hn(e) {
3722
+ var a;
3478
3723
  const [t, n] = C(
3479
- () => vn({
3724
+ () => In({
3480
3725
  canTrack: Q(e.canTrack),
3481
3726
  content: e.content
3482
3727
  })
3483
3728
  );
3484
3729
  function i() {
3485
3730
  var l;
3486
- return Tn(
3731
+ return Rn(
3487
3732
  Y(e.content).map((c) => ({
3488
3733
  id: c.testVariationId,
3489
3734
  testRatio: c.testRatio
@@ -3494,42 +3739,42 @@ function Mn(e) {
3494
3739
  function o() {
3495
3740
  return Y(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
3496
3741
  }
3497
- function a() {
3742
+ function r() {
3498
3743
  var l;
3499
3744
  return t ? {
3500
3745
  ...e.content,
3501
3746
  testVariationId: (l = e.content) == null ? void 0 : l.id
3502
- } : Ge({
3747
+ } : Ze({
3503
3748
  item: e.content,
3504
3749
  canTrack: Q(e.canTrack)
3505
3750
  });
3506
3751
  }
3507
3752
  return P(() => {
3508
- }, []), /* @__PURE__ */ V(w, { children: [
3509
- !e.isNestedRender && z !== "reactNative" ? /* @__PURE__ */ s(
3510
- re,
3753
+ }, []), /* @__PURE__ */ V(E, { children: [
3754
+ !e.isNestedRender && _ !== "reactNative" ? /* @__PURE__ */ s(
3755
+ ce,
3511
3756
  {
3512
3757
  id: "builderio-init-variants-fns",
3513
- scriptStr: Cn()
3758
+ scriptStr: En()
3514
3759
  }
3515
3760
  ) : null,
3516
- t ? /* @__PURE__ */ V(w, { children: [
3761
+ t ? /* @__PURE__ */ V(E, { children: [
3517
3762
  /* @__PURE__ */ s(
3518
- te,
3763
+ ne,
3519
3764
  {
3520
3765
  id: "builderio-variants",
3521
3766
  styles: o()
3522
3767
  }
3523
3768
  ),
3524
3769
  /* @__PURE__ */ s(
3525
- re,
3770
+ ce,
3526
3771
  {
3527
3772
  id: "builderio-variants-visibility",
3528
3773
  scriptStr: i()
3529
3774
  }
3530
3775
  ),
3531
- (r = Y(e.content)) == null ? void 0 : r.map((l) => /* @__PURE__ */ s(
3532
- ke,
3776
+ (a = Y(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
3777
+ Ie,
3533
3778
  {
3534
3779
  isNestedRender: e.isNestedRender,
3535
3780
  content: l,
@@ -3555,10 +3800,10 @@ function Mn(e) {
3555
3800
  ))
3556
3801
  ] }) : null,
3557
3802
  /* @__PURE__ */ s(
3558
- ke,
3803
+ Ie,
3559
3804
  {
3560
3805
  isNestedRender: e.isNestedRender,
3561
- content: a(),
3806
+ content: r(),
3562
3807
  showContent: !0,
3563
3808
  model: e.model,
3564
3809
  data: e.data,
@@ -3580,13 +3825,13 @@ function Mn(e) {
3580
3825
  )
3581
3826
  ] });
3582
3827
  }
3583
- const On = async ({
3828
+ const Kn = async ({
3584
3829
  builderContextValue: e,
3585
3830
  symbol: t
3586
3831
  }) => {
3587
3832
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
3588
3833
  (e != null && e.apiKey))
3589
- return Ce({
3834
+ return we({
3590
3835
  model: t.model,
3591
3836
  apiKey: e.apiKey,
3592
3837
  apiVersion: e.apiVersion,
@@ -3599,8 +3844,8 @@ const On = async ({
3599
3844
  Z.error("Could not fetch symbol content: ", n);
3600
3845
  });
3601
3846
  };
3602
- function Un(e) {
3603
- var l, c, d, m;
3847
+ function qn(e) {
3848
+ var l, c, u, f;
3604
3849
  function t() {
3605
3850
  return "div";
3606
3851
  }
@@ -3608,31 +3853,31 @@ function Un(e) {
3608
3853
  return "div";
3609
3854
  }
3610
3855
  function i() {
3611
- var u, g;
3856
+ var d, m;
3612
3857
  return [
3613
3858
  e.attributes[K()],
3614
3859
  "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
3860
+ (d = e.symbol) != null && d.inline ? "builder-inline-symbol" : void 0,
3861
+ (m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
3617
3862
  ].filter(Boolean).join(" ");
3618
3863
  }
3619
- const [o, a] = C(() => {
3620
- var u;
3621
- return (u = e.symbol) == null ? void 0 : u.content;
3864
+ const [o, r] = C(() => {
3865
+ var d;
3866
+ return (d = e.symbol) == null ? void 0 : d.content;
3622
3867
  });
3623
- function r() {
3624
- o || On({
3868
+ function a() {
3869
+ o || Kn({
3625
3870
  symbol: e.symbol,
3626
3871
  builderContextValue: e.builderContext
3627
- }).then((u) => {
3628
- u && a(u);
3872
+ }).then((d) => {
3873
+ d && r(d);
3629
3874
  });
3630
3875
  }
3631
3876
  return P(() => {
3632
3877
  }, []), P(() => {
3633
- r();
3878
+ a();
3634
3879
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
3635
- Mn,
3880
+ Hn,
3636
3881
  {
3637
3882
  isNestedRender: !0,
3638
3883
  apiVersion: e.builderContext.apiVersion,
@@ -3645,9 +3890,9 @@ function Un(e) {
3645
3890
  data: {
3646
3891
  ...(c = e.symbol) == null ? void 0 : c.data,
3647
3892
  ...e.builderContext.localState,
3648
- ...(d = o == null ? void 0 : o.data) == null ? void 0 : d.state
3893
+ ...(u = o == null ? void 0 : o.data) == null ? void 0 : u.state
3649
3894
  },
3650
- model: (m = e.symbol) == null ? void 0 : m.model,
3895
+ model: (f = e.symbol) == null ? void 0 : f.model,
3651
3896
  content: o,
3652
3897
  linkComponent: e.builderLinkComponent,
3653
3898
  blocksWrapper: t(),
@@ -3656,15 +3901,15 @@ function Un(e) {
3656
3901
  ) });
3657
3902
  }
3658
3903
  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
3904
+ D as Blocks,
3905
+ me as BuilderContext,
3906
+ nt as Button,
3907
+ Wt as Columns,
3908
+ Hn as Content,
3909
+ Ft as Fragment,
3910
+ Lt as Image,
3911
+ Ot as Section,
3912
+ qn as Symbol,
3913
+ Qt as Text,
3914
+ vn as Video
3670
3915
  };