@builder.io/sdk-react 2.0.9 → 2.0.13

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 (73) hide show
  1. package/lib/browser/blocks-exports.cjs +31 -31
  2. package/lib/browser/blocks-exports.mjs +1032 -996
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/init.cjs +3 -3
  6. package/lib/browser/init.mjs +3 -3
  7. package/lib/{node/server-entry-8bf52a55.js → browser/server-entry-288f3748.js} +333 -330
  8. package/lib/browser/server-entry-7304506e.cjs +2 -0
  9. package/lib/browser/server-entry.cjs +1 -1
  10. package/lib/browser/server-entry.mjs +1 -1
  11. package/lib/edge/{accordion-589b3ac8.js → accordion-3cfa3eee.js} +1 -1
  12. package/lib/edge/{accordion-afed3bd3.cjs → accordion-807094e8.cjs} +1 -1
  13. package/lib/edge/blocks-54e76c48.js +842 -0
  14. package/lib/edge/blocks-ec210226.cjs +12 -0
  15. package/lib/edge/blocks-exports.cjs +1 -1
  16. package/lib/edge/blocks-exports.mjs +2 -2
  17. package/lib/edge/{button-08412b69.js → button-0d89818e.js} +2 -2
  18. package/lib/edge/{button-26b76a4a.cjs → button-e3dbd868.cjs} +1 -1
  19. package/lib/edge/{columns-ccdafcc7.cjs → columns-f4875265.cjs} +1 -1
  20. package/lib/edge/{columns-bd2a004b.js → columns-f9a7710d.js} +4 -4
  21. package/lib/edge/{content-variants-dd7ea0f9.js → content-variants-8ab0c195.js} +13 -12
  22. package/lib/edge/{content-variants-fc207487.cjs → content-variants-aadc6d6c.cjs} +1 -1
  23. package/lib/edge/{evaluate-e2f692df.js → evaluate-1ef00edc.js} +87 -87
  24. package/lib/edge/{evaluate-3991fda5.cjs → evaluate-4d70dcda.cjs} +6 -6
  25. package/lib/edge/{form-b9148162.js → form-0e3e79d5.js} +4 -4
  26. package/lib/edge/{form-5eb85abf.cjs → form-8edb1a1e.cjs} +1 -1
  27. package/lib/edge/{get-class-prop-name-0c783f8c.js → get-class-prop-name-c8375d5b.js} +1 -1
  28. package/lib/edge/{get-class-prop-name-2fa91d70.cjs → get-class-prop-name-f64b085a.cjs} +1 -1
  29. package/lib/edge/{img-602f7d3a.js → img-411548cf.js} +1 -1
  30. package/lib/edge/{img-2f30658b.cjs → img-a63de542.cjs} +1 -1
  31. package/lib/edge/index.cjs +1 -1
  32. package/lib/edge/index.mjs +1 -1
  33. package/lib/edge/init.cjs +3 -3
  34. package/lib/edge/init.mjs +3 -3
  35. package/lib/edge/{input-551362f3.cjs → input-59f88558.cjs} +1 -1
  36. package/lib/edge/{input-4c791db9.js → input-a31ad183.js} +1 -1
  37. package/lib/edge/{select-eb26f837.cjs → select-31a4a930.cjs} +1 -1
  38. package/lib/edge/{select-d1391d12.js → select-bfc6e2dd.js} +1 -1
  39. package/lib/edge/{server-entry-c537d834.js → server-entry-899f7119.js} +1 -1
  40. package/lib/edge/{server-entry-7b4fa72f.cjs → server-entry-f0b40e5b.cjs} +1 -1
  41. package/lib/edge/server-entry.cjs +1 -1
  42. package/lib/edge/server-entry.mjs +1 -1
  43. package/lib/edge/{slot-d375d5eb.js → slot-634372d2.js} +12 -11
  44. package/lib/edge/slot-c9228b15.cjs +1 -0
  45. package/lib/edge/{symbol-6c18ca90.cjs → symbol-10d573de.cjs} +1 -1
  46. package/lib/edge/{symbol-8b3a6b98.js → symbol-32a5d0f7.js} +2 -2
  47. package/lib/edge/{tabs-1e47cfd4.js → tabs-52ed1067.js} +4 -4
  48. package/lib/edge/{tabs-8296bce7.cjs → tabs-71e3e002.cjs} +1 -1
  49. package/lib/edge/{text-9eac9e4d.cjs → text-853d6ef4.cjs} +1 -1
  50. package/lib/edge/{text-d3c86634.js → text-ea8a6161.js} +2 -2
  51. package/lib/node/blocks-exports.cjs +32 -32
  52. package/lib/node/blocks-exports.mjs +1032 -996
  53. package/lib/node/index.cjs +1 -1
  54. package/lib/node/index.mjs +2 -2
  55. package/lib/node/init.cjs +1 -1
  56. package/lib/node/init.mjs +2 -2
  57. package/lib/node/{node-runtime-e41e9eb6.js → node-runtime-792d0497.js} +3 -3
  58. package/lib/node/{node-runtime-c7c85f6c.cjs → node-runtime-8348be9f.cjs} +4 -4
  59. package/lib/{browser/server-entry-8bf52a55.js → node/server-entry-288f3748.js} +333 -330
  60. package/lib/node/server-entry-7304506e.cjs +2 -0
  61. package/lib/node/server-entry.cjs +1 -1
  62. package/lib/node/server-entry.mjs +1 -1
  63. package/package.json +3 -3
  64. package/types/blocks/slot/slot.d.ts +2 -2
  65. package/types/components/block/block.helpers.d.ts +1 -2
  66. package/types/constants/sdk-version.d.ts +1 -1
  67. package/types/functions/evaluate/node-runtime/init.d.ts +1 -0
  68. package/types/functions/get-processed-block.d.ts +1 -0
  69. package/lib/browser/server-entry-16fc27fe.cjs +0 -2
  70. package/lib/edge/blocks-854f4022.cjs +0 -12
  71. package/lib/edge/blocks-fdb24842.js +0 -808
  72. package/lib/edge/slot-d723d000.cjs +0 -1
  73. package/lib/node/server-entry-16fc27fe.cjs +0 -2
@@ -1,17 +1,17 @@
1
1
  "use client";
2
- var He = Object.defineProperty;
3
- var qe = (e, t, n) => t in e ? He(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
- var ie = (e, t, n) => (qe(e, typeof t != "symbol" ? t + "" : t, n), n);
5
- import { jsx as s, Fragment as R, jsxs as V } from "react/jsx-runtime";
6
- import { TARGET as H, checkIsDefined as Y, logger as Z, isBrowser as G, isEditing as $, registerInsertMenu as Ke, setupBrowserForEditing as ze, createRegisterComponentMessage as _e, getDefaultCanTrack as Q, _track as he, isPreviewing as Je, fetchOneEntry as Ie, createEditorListener as Ye, fetch as Ge, serializeIncludingFunctions as ge, handleABTestingSync as Qe } from "./server-entry-8bf52a55.js";
7
- import { createContext as we, useState as T, useEffect as P, useContext as be, useRef as ee, createElement as Re } from "react";
8
- import { getFunctionArguments as Xe, runInNode as Ze, parseCode as et, getBuilderGlobals as tt, fastClone as de, set as Ee } from "./node-runtime-e41e9eb6.js";
9
- const nt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), it = (e) => typeof e == "string" && nt.has(e.toLowerCase());
2
+ var qe = Object.defineProperty;
3
+ var _e = (e, t, n) => t in e ? qe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
+ var ne = (e, t, n) => (_e(e, typeof t != "symbol" ? t + "" : t, n), n);
5
+ import { jsx as l, Fragment as E, jsxs as V } from "react/jsx-runtime";
6
+ import { TARGET as U, checkIsDefined as G, logger as Z, isBrowser as Q, isPreviewing as we, isEditing as $, registerInsertMenu as ze, setupBrowserForEditing as Je, createRegisterComponentMessage as Ye, getDefaultCanTrack as X, _track as he, fetchOneEntry as Re, createEditorListener as Ge, fetch as Qe, serializeIncludingFunctions as ge, handleABTestingSync as Xe } from "./server-entry-288f3748.js";
7
+ import { createContext as Ee, useState as T, useEffect as B, useRef as _, useContext as be, createElement as Pe } from "react";
8
+ import { getFunctionArguments as Ze, runInNode as et, parseCode as tt, getBuilderGlobals as nt, set as Be, fastClone as de } from "./node-runtime-792d0497.js";
9
+ const it = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ot = (e) => typeof e == "string" && it.has(e.toLowerCase());
10
10
  function ue(e) {
11
- return /* @__PURE__ */ s(R, { children: it(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
11
+ return /* @__PURE__ */ l(E, { children: ot(e.TagName) ? /* @__PURE__ */ l(E, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(E, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
12
12
  }
13
- const K = () => {
14
- switch (H) {
13
+ const q = () => {
14
+ switch (U) {
15
15
  case "react":
16
16
  case "reactNative":
17
17
  case "rsc":
@@ -24,11 +24,11 @@ const K = () => {
24
24
  return "class";
25
25
  }
26
26
  };
27
- function ot(e) {
27
+ function at(e) {
28
28
  function t() {
29
29
  return {
30
30
  ...e.attributes,
31
- [K()]: `${e.link ? "" : "builder-button"} ${e.attributes[K()] || ""}`,
31
+ [q()]: `${e.link ? "" : "builder-button"} ${e.attributes[q()] || ""}`,
32
32
  ...e.link ? {
33
33
  href: e.link,
34
34
  target: e.openLinkInNewTab ? "_blank" : void 0,
@@ -38,7 +38,7 @@ function ot(e) {
38
38
  }
39
39
  };
40
40
  }
41
- return /* @__PURE__ */ s(
41
+ return /* @__PURE__ */ l(
42
42
  ue,
43
43
  {
44
44
  attributes: t(),
@@ -48,7 +48,7 @@ function ot(e) {
48
48
  }
49
49
  );
50
50
  }
51
- const me = we({
51
+ const me = Ee({
52
52
  content: null,
53
53
  context: {},
54
54
  localState: void 0,
@@ -62,36 +62,42 @@ const me = we({
62
62
  BlocksWrapper: "div",
63
63
  BlocksWrapperProps: {},
64
64
  nonce: ""
65
- }), Be = we({ registeredComponents: {} });
66
- function at(e) {
65
+ }), Ve = Ee({ registeredComponents: {} });
66
+ function rt(e) {
67
67
  var t;
68
68
  return {
69
69
  ...(t = e.component) == null ? void 0 : t.options,
70
70
  ...e.options
71
71
  };
72
72
  }
73
- const rt = ({
73
+ function lt(e, ...t) {
74
+ const n = Object.assign({}, e);
75
+ for (const i of t)
76
+ delete n[i];
77
+ return n;
78
+ }
79
+ const st = ({
74
80
  code: e,
75
81
  builder: t,
76
82
  context: n,
77
83
  event: i,
78
84
  localState: o,
79
- rootSetState: l,
80
- rootState: a
85
+ rootSetState: a,
86
+ rootState: r
81
87
  }) => {
82
- const r = Xe({
88
+ const s = Ze({
83
89
  builder: t,
84
90
  context: n,
85
91
  event: i,
86
- state: Pe({
87
- rootState: a,
92
+ state: Ae({
93
+ rootState: r,
88
94
  localState: o,
89
- rootSetState: l
95
+ rootSetState: a
90
96
  })
91
97
  });
92
- return new Function(...r.map(([c]) => c), e)(...r.map(([, c]) => c));
98
+ return new Function(...s.map(([d]) => d), e)(...s.map(([, d]) => d));
93
99
  };
94
- function Pe({
100
+ function Ae({
95
101
  rootState: e,
96
102
  localState: t,
97
103
  rootSetState: n
@@ -100,33 +106,33 @@ function Pe({
100
106
  get: (i, o) => {
101
107
  if (t && o in t)
102
108
  return t[o];
103
- const l = i[o];
104
- return typeof l == "object" && l !== null ? Pe({
105
- rootState: l,
109
+ const a = i[o];
110
+ return typeof a == "object" && a !== null ? Ae({
111
+ rootState: a,
106
112
  localState: void 0,
107
- rootSetState: n ? (a) => {
108
- i[o] = a, n(i);
113
+ rootSetState: n ? (r) => {
114
+ i[o] = r, n(i);
109
115
  } : void 0
110
- }) : l;
116
+ }) : a;
111
117
  },
112
- set: (i, o, l) => {
118
+ set: (i, o, a) => {
113
119
  if (t && o in t)
114
120
  throw new Error("Writing to local state is not allowed as it is read-only.");
115
- return i[o] = l, n == null || n(i), !0;
121
+ return i[o] = a, n == null || n(i), !0;
116
122
  }
117
123
  });
118
124
  }
119
- function lt() {
125
+ function ct() {
120
126
  var e;
121
- return typeof process != "undefined" && Y((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
127
+ return typeof process != "undefined" && G((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
122
128
  }
123
- const st = () => {
129
+ const dt = () => {
124
130
  var i;
125
- if (!lt())
131
+ if (!ct())
126
132
  return !1;
127
133
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
128
134
  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;
129
- }, ct = (e) => G() || st() ? rt(e) : Ze(e), L = class L {
135
+ }, ut = (e) => Q() || dt() ? st(e) : et(e), mt = !0, L = class L {
130
136
  static getCacheKey(t) {
131
137
  return JSON.stringify({
132
138
  ...t,
@@ -144,51 +150,89 @@ const st = () => {
144
150
  });
145
151
  }
146
152
  };
147
- ie(L, "cacheLimit", 20), ie(L, "cache", /* @__PURE__ */ new Map());
153
+ ne(L, "cacheLimit", 20), ne(L, "cache", /* @__PURE__ */ new Map());
148
154
  let M = L;
149
- function U({
155
+ function H({
150
156
  code: e,
151
157
  context: t,
152
158
  localState: n,
153
159
  rootState: i,
154
160
  rootSetState: o,
155
- event: l,
156
- isExpression: a = !0,
157
- enableCache: r
161
+ event: a,
162
+ isExpression: r = !0,
163
+ enableCache: s
158
164
  }) {
159
165
  if (e === "")
160
166
  return;
161
- const c = {
162
- code: et(e, {
163
- isExpression: a
167
+ const d = {
168
+ code: tt(e, {
169
+ isExpression: r
164
170
  }),
165
- builder: tt(),
171
+ builder: nt(),
166
172
  context: t,
167
- event: l,
173
+ event: a,
168
174
  rootSetState: o,
169
175
  rootState: i,
170
176
  localState: n
171
177
  };
172
- if (r) {
173
- const d = M.getCacheKey(c), f = M.getCachedValue(d);
174
- if (f)
175
- return f.value;
178
+ if (s && !mt) {
179
+ const c = M.getCacheKey(d), u = M.getCachedValue(c);
180
+ if (u)
181
+ return u.value;
176
182
  }
177
183
  try {
178
- const d = ct(c);
179
- if (r) {
180
- const f = M.getCacheKey(c);
181
- M.setCachedValue(f, d);
182
- }
183
- return d;
184
- } catch (d) {
185
- Z.error("Failed code evaluation: " + d.message, {
184
+ const c = ut(d);
185
+ if (s) {
186
+ const u = M.getCacheKey(d);
187
+ M.setCachedValue(u, c);
188
+ }
189
+ return c;
190
+ } catch (c) {
191
+ Z.error("Failed code evaluation: " + c.message, {
186
192
  code: e
187
193
  });
188
194
  return;
189
195
  }
190
196
  }
191
- const dt = ({
197
+ function se(e) {
198
+ if (e === null || typeof e != "object")
199
+ return e;
200
+ if (Array.isArray(e))
201
+ return e.map((n) => se(n));
202
+ if (e["@type"] === "@builder.io/sdk:Element")
203
+ return e;
204
+ const t = {};
205
+ for (const n in e)
206
+ n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = se(e[n]));
207
+ return t;
208
+ }
209
+ const ft = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ht = (e) => {
210
+ if (ft) {
211
+ const t = de(e);
212
+ return {
213
+ ...t,
214
+ properties: {
215
+ ...t.properties
216
+ },
217
+ actions: {
218
+ ...t.actions
219
+ }
220
+ };
221
+ } else {
222
+ const t = se(lt(e, "children", "meta"));
223
+ return {
224
+ ...t,
225
+ properties: {
226
+ ...t.properties
227
+ },
228
+ actions: {
229
+ ...t.actions
230
+ },
231
+ children: e.children,
232
+ meta: e.meta
233
+ };
234
+ }
235
+ }, gt = ({
192
236
  block: e,
193
237
  context: t,
194
238
  localState: n,
@@ -197,180 +241,172 @@ const dt = ({
197
241
  }) => {
198
242
  if (!e.bindings)
199
243
  return e;
200
- const l = de(e), a = {
201
- ...l,
202
- properties: {
203
- ...l.properties
204
- },
205
- actions: {
206
- ...l.actions
207
- }
208
- };
244
+ const a = ht(e);
209
245
  for (const r in e.bindings) {
210
- const c = e.bindings[r], d = U({
211
- code: c,
246
+ const s = e.bindings[r], d = H({
247
+ code: s,
212
248
  localState: n,
213
249
  rootState: i,
214
250
  rootSetState: o,
215
251
  context: t,
216
252
  enableCache: !0
217
253
  });
218
- Ee(a, r, d);
254
+ Be(a, r, d);
219
255
  }
220
256
  return a;
221
257
  };
222
- function X({
258
+ function bt({
223
259
  block: e,
224
260
  context: t,
225
261
  shouldEvaluateBindings: n,
226
262
  localState: i,
227
263
  rootState: o,
228
- rootSetState: l
264
+ rootSetState: a
229
265
  }) {
230
- const a = e;
231
- return n ? dt({
232
- block: a,
266
+ const r = e;
267
+ return n ? gt({
268
+ block: r,
233
269
  localState: i,
234
270
  rootState: o,
235
- rootSetState: l,
271
+ rootSetState: a,
236
272
  context: t
237
- }) : a;
273
+ }) : r;
238
274
  }
239
- const te = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
240
- function ut(e, t, n = {}) {
241
- let i, o, l, a = null, r = 0;
242
- const c = function() {
243
- r = n.leading === !1 ? 0 : Date.now(), a = null, l = e.apply(i, o), a || (i = o = null);
275
+ const ee = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
276
+ function pt(e, t, n = {}) {
277
+ let i, o, a, r = null, s = 0;
278
+ const d = function() {
279
+ s = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
244
280
  };
245
281
  return function() {
246
- const d = Date.now();
247
- !r && n.leading === !1 && (r = d);
248
- const f = t - (d - r);
249
- return i = this, o = arguments, f <= 0 || f > t ? (a && (clearTimeout(a), a = null), r = d, l = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(c, f)), l;
282
+ const c = Date.now();
283
+ !s && n.leading === !1 && (s = c);
284
+ const u = t - (c - s);
285
+ return i = this, o = arguments, u <= 0 || u > t ? (r && (clearTimeout(r), r = null), s = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, u)), a;
250
286
  };
251
287
  }
252
- function q(e, ...t) {
288
+ function K(e, ...t) {
253
289
  const n = Object(e);
254
290
  for (let i = 1; i < arguments.length; i++) {
255
291
  const o = arguments[i];
256
292
  if (o != null)
257
- for (const l in o)
258
- Object.prototype.hasOwnProperty.call(o, l) && (n[l] = o[l]);
293
+ for (const a in o)
294
+ Object.prototype.hasOwnProperty.call(o, a) && (n[a] = o[a]);
259
295
  }
260
296
  return n;
261
297
  }
262
- function mt(e) {
298
+ function yt(e) {
263
299
  for (const t of e)
264
300
  switch (t.trigger) {
265
301
  case "pageLoad":
266
- Ne(t);
302
+ Fe(t);
267
303
  break;
268
304
  case "scrollInView":
269
- ht(t);
305
+ vt(t);
270
306
  break;
271
307
  }
272
308
  }
273
- function Ve(e) {
309
+ function Ne(e) {
274
310
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
275
311
  }
276
- function Ae(e, t) {
277
- const n = ft(e), i = getComputedStyle(t), o = e.steps[0].styles, l = e.steps[e.steps.length - 1].styles, a = [o, l];
278
- for (const r of a)
279
- for (const c of n)
280
- c in r || (r[c] = i[c]);
312
+ function We(e, t) {
313
+ const n = xt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
314
+ for (const s of r)
315
+ for (const d of n)
316
+ d in s || (s[d] = i[d]);
281
317
  }
282
- function ft(e) {
318
+ function xt(e) {
283
319
  const t = [];
284
320
  for (const n of e.steps)
285
321
  for (const i in n.styles)
286
322
  t.indexOf(i) === -1 && t.push(i);
287
323
  return t;
288
324
  }
289
- function Ne(e) {
325
+ function Fe(e) {
290
326
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
291
327
  if (!t.length) {
292
- Ve(e.elementId || e.id || "");
328
+ Ne(e.elementId || e.id || "");
293
329
  return;
294
330
  }
295
331
  Array.from(t).forEach((n) => {
296
- Ae(e, n), n.style.transition = "none", n.style.transitionDelay = "0", q(n.style, e.steps[0].styles), setTimeout(() => {
297
- n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), q(n.style, e.steps[1].styles), setTimeout(() => {
332
+ We(e, n), n.style.transition = "none", n.style.transitionDelay = "0", K(n.style, e.steps[0].styles), setTimeout(() => {
333
+ n.style.transition = `all ${e.duration}s ${ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), K(n.style, e.steps[1].styles), setTimeout(() => {
298
334
  n.style.transition = "", n.style.transitionDelay = "";
299
335
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
300
336
  });
301
337
  });
302
338
  }
303
- function ht(e) {
339
+ function vt(e) {
304
340
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
305
341
  if (!t.length) {
306
- Ve(e.elementId || e.id || "");
342
+ Ne(e.elementId || e.id || "");
307
343
  return;
308
344
  }
309
345
  Array.from(t).forEach((n) => {
310
- Ae(e, n);
346
+ We(e, n);
311
347
  let i = !1, o = !1;
312
- function l() {
313
- !i && r(n) ? (i = !0, o = !0, setTimeout(() => {
314
- q(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
348
+ function a() {
349
+ !i && s(n) ? (i = !0, o = !0, setTimeout(() => {
350
+ K(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
315
351
  o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
316
352
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
317
- })) : e.repeat && i && !o && !r(n) && (i = !1, q(n.style, e.steps[0].styles));
353
+ })) : e.repeat && i && !o && !s(n) && (i = !1, K(n.style, e.steps[0].styles));
318
354
  }
319
- const a = ut(l, 200, {
355
+ const r = pt(a, 200, {
320
356
  leading: !1
321
357
  });
322
- function r(f) {
323
- const u = f.getBoundingClientRect(), m = window.innerHeight, y = (e.thresholdPercent || 0) / 100 * m;
324
- return u.bottom > y && u.top < m - y;
358
+ function s(u) {
359
+ const g = u.getBoundingClientRect(), m = window.innerHeight, h = (e.thresholdPercent || 0) / 100 * m;
360
+ return g.bottom > h && g.top < m - h;
325
361
  }
326
- const c = e.steps[0].styles;
327
- function d() {
328
- q(n.style, c);
362
+ const d = e.steps[0].styles;
363
+ function c() {
364
+ K(n.style, d);
329
365
  }
330
- d(), setTimeout(() => {
331
- n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
332
- }), document.addEventListener("scroll", a, {
366
+ c(), setTimeout(() => {
367
+ n.style.transition = `all ${e.duration}s ${ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
368
+ }), document.addEventListener("scroll", r, {
333
369
  capture: !0,
334
370
  passive: !0
335
- }), l();
371
+ }), a();
336
372
  });
337
373
  }
338
- const We = (e) => Object.entries(e).map(([n, i]) => {
374
+ const $e = (e) => Object.entries(e).map(([n, i]) => {
339
375
  if (typeof i == "string")
340
- return `${te(n)}: ${i};`;
341
- }).filter(Y), gt = (e) => We(e).join(`
342
- `), _ = ({
376
+ return `${ee(n)}: ${i};`;
377
+ }).filter(G), St = (e) => $e(e).join(`
378
+ `), J = ({
343
379
  mediaQuery: e,
344
380
  className: t,
345
381
  styles: n
346
382
  }) => {
347
383
  const i = `.${t} {
348
- ${gt(n)}
384
+ ${St(n)}
349
385
  }`;
350
386
  return e ? `${e} {
351
387
  ${i}
352
388
  }` : i;
353
389
  };
354
- function bt({
390
+ function kt({
355
391
  style: e
356
392
  }) {
357
393
  return e;
358
394
  }
359
- const pt = ({
395
+ const Ct = ({
360
396
  block: e,
361
397
  context: t
362
- }) => Fe(bt({
398
+ }) => De(kt({
363
399
  style: e.style || {},
364
400
  context: t,
365
401
  block: e
366
402
  }));
367
- function Fe(e) {
368
- switch (H) {
403
+ function De(e) {
404
+ switch (U) {
369
405
  case "svelte":
370
406
  case "vue":
371
407
  case "solid":
372
408
  case "angular":
373
- return We(e).join(" ");
409
+ return $e(e).join(" ");
374
410
  case "qwik":
375
411
  case "reactNative":
376
412
  case "react":
@@ -378,29 +414,21 @@ function Fe(e) {
378
414
  return e;
379
415
  }
380
416
  }
381
- const yt = ({
417
+ const Tt = ({
382
418
  block: e,
383
- context: t,
384
- registeredComponents: n
419
+ registeredComponents: t
385
420
  }) => {
386
- var l;
387
- const i = (l = X({
388
- block: e,
389
- localState: t.localState,
390
- rootState: t.rootState,
391
- rootSetState: t.rootSetState,
392
- context: t.context,
393
- shouldEvaluateBindings: !1
394
- }).component) == null ? void 0 : l.name;
395
- if (!i)
421
+ var o;
422
+ const n = (o = e.component) == null ? void 0 : o.name;
423
+ if (!n)
396
424
  return null;
397
- const o = n[i];
398
- if (o)
399
- return o;
425
+ const i = t[n];
426
+ if (i)
427
+ return i;
400
428
  console.warn(`
401
- Could not find a registered component named "${i}".
429
+ Could not find a registered component named "${n}".
402
430
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
403
- }, xt = ({
431
+ }, It = ({
404
432
  block: e,
405
433
  context: t
406
434
  }) => {
@@ -410,7 +438,7 @@ const yt = ({
410
438
  } = e;
411
439
  if (!(n != null && n.collection))
412
440
  return;
413
- const o = U({
441
+ const o = H({
414
442
  code: n.collection,
415
443
  localState: t.localState,
416
444
  rootState: t.rootState,
@@ -420,41 +448,41 @@ const yt = ({
420
448
  });
421
449
  if (!Array.isArray(o))
422
450
  return;
423
- const l = n.collection.split(".").pop(), a = n.itemName || (l ? l + "Item" : "item");
424
- return o.map((c, d) => ({
451
+ const a = n.collection.split(".").pop(), r = n.itemName || (a ? a + "Item" : "item");
452
+ return o.map((d, c) => ({
425
453
  context: {
426
454
  ...t,
427
455
  localState: {
428
456
  ...t.localState,
429
- $index: d,
430
- $item: c,
431
- [a]: c,
432
- [`$${a}Index`]: d
457
+ $index: c,
458
+ $item: d,
459
+ [r]: d,
460
+ [`$${r}Index`]: c
433
461
  }
434
462
  },
435
463
  block: i
436
464
  }));
437
- }, vt = (e, t) => {
465
+ }, wt = (e, t) => {
438
466
  var n;
439
467
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
440
468
  builderLinkComponent: t
441
469
  } : {};
442
- }, St = (e, t) => {
470
+ }, Rt = (e, t) => {
443
471
  var n;
444
472
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
445
473
  builderComponents: t
446
474
  } : {};
447
- }, kt = (e, t) => {
475
+ }, Et = (e, t) => {
448
476
  var n;
449
477
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
450
478
  builderBlock: t
451
479
  } : {};
452
- }, Ct = (e, t) => {
480
+ }, Pt = (e, t) => {
453
481
  var n;
454
482
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
455
483
  builderContext: t
456
484
  } : {};
457
- }, $e = {
485
+ }, Le = {
458
486
  small: {
459
487
  min: 320,
460
488
  default: 321,
@@ -470,11 +498,11 @@ const yt = ({
470
498
  default: 991,
471
499
  max: 1200
472
500
  }
473
- }, pe = (e, t = $e) => `@media (max-width: ${t[e].max}px)`, De = ({
501
+ }, pe = (e, t = Le) => `@media (max-width: ${t[e].max}px)`, Oe = ({
474
502
  small: e,
475
503
  medium: t
476
504
  }) => {
477
- const n = de($e);
505
+ const n = de(Le);
478
506
  if (!e || !t)
479
507
  return n;
480
508
  const i = Math.floor(e / 2);
@@ -489,16 +517,16 @@ const yt = ({
489
517
  min: o,
490
518
  default: o + 1
491
519
  };
492
- const l = n.medium.max + 1;
520
+ const a = n.medium.max + 1;
493
521
  return n.large = {
494
522
  max: 2e3,
495
523
  // TODO: decide upper limit
496
- min: l,
497
- default: l + 1
524
+ min: a,
525
+ default: a + 1
498
526
  }, n;
499
527
  };
500
- function ne(e) {
501
- return /* @__PURE__ */ s(
528
+ function te(e) {
529
+ return /* @__PURE__ */ l(
502
530
  "style",
503
531
  {
504
532
  dangerouslySetInnerHTML: { __html: e.styles },
@@ -507,73 +535,59 @@ function ne(e) {
507
535
  }
508
536
  );
509
537
  }
510
- function Tt(e) {
538
+ function Bt(e) {
511
539
  function t() {
512
- const i = X({
513
- block: e.block,
514
- localState: e.context.localState,
515
- rootState: e.context.rootState,
516
- rootSetState: e.context.rootSetState,
517
- context: e.context.context,
518
- shouldEvaluateBindings: !0
519
- });
520
- return Y(i.hide) ? !i.hide : Y(i.show) ? i.show : !0;
540
+ const i = e.block;
541
+ return G(i.hide) ? !i.hide : G(i.show) ? i.show : !0;
521
542
  }
522
543
  function n() {
523
- var p, B, E;
524
- const i = X({
525
- block: e.block,
526
- localState: e.context.localState,
527
- rootState: e.context.rootState,
528
- rootSetState: e.context.rootSetState,
529
- context: e.context.context,
530
- shouldEvaluateBindings: !0
531
- }), o = i.responsiveStyles, l = e.context.content, a = De(
532
- ((p = l == null ? void 0 : l.meta) == null ? void 0 : p.breakpoints) || {}
533
- ), r = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, d = o == null ? void 0 : o.small, f = i.id;
534
- if (!f)
544
+ var f, w, P;
545
+ const i = e.block, o = i.responsiveStyles, a = e.context.content, r = Oe(
546
+ ((f = a == null ? void 0 : a.meta) == null ? void 0 : f.breakpoints) || {}
547
+ ), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, u = i.id;
548
+ if (!u)
535
549
  return "";
536
- const u = r ? _({
537
- className: f,
538
- styles: r
539
- }) : "", m = c ? _({
540
- className: f,
541
- styles: c,
550
+ const g = s ? J({
551
+ className: u,
552
+ styles: s
553
+ }) : "", m = d ? J({
554
+ className: u,
555
+ styles: d,
542
556
  mediaQuery: pe(
543
557
  "medium",
544
- a
558
+ r
545
559
  )
546
- }) : "", g = d ? _({
547
- className: f,
548
- styles: d,
560
+ }) : "", x = c ? J({
561
+ className: u,
562
+ styles: c,
549
563
  mediaQuery: pe(
550
564
  "small",
551
- a
565
+ r
552
566
  )
553
- }) : "", y = i.animations && i.animations.find((A) => A.trigger === "hover");
554
- let C = "";
555
- if (y) {
556
- const A = ((E = (B = y.steps) == null ? void 0 : B[1]) == null ? void 0 : E.styles) || {};
557
- C = _({
558
- className: `${f}:hover`,
567
+ }) : "", h = i.animations && i.animations.find((A) => A.trigger === "hover");
568
+ let p = "";
569
+ if (h) {
570
+ const A = ((P = (w = h.steps) == null ? void 0 : w[1]) == null ? void 0 : P.styles) || {};
571
+ p = J({
572
+ className: `${u}:hover`,
559
573
  styles: {
560
574
  ...A,
561
- transition: `all ${y.duration}s ${te(
562
- y.easing
575
+ transition: `all ${h.duration}s ${ee(
576
+ h.easing
563
577
  )}`,
564
- transitionDelay: y.delay ? `${y.delay}s` : "0s"
578
+ transitionDelay: h.delay ? `${h.delay}s` : "0s"
565
579
  }
566
580
  }) || "";
567
581
  }
568
582
  return [
569
- u,
570
- m,
571
583
  g,
572
- C
584
+ m,
585
+ x,
586
+ p
573
587
  ].join(" ");
574
588
  }
575
- return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
576
- ne,
589
+ return /* @__PURE__ */ l(E, { children: n() && t() ? /* @__PURE__ */ l(E, { children: /* @__PURE__ */ l(
590
+ te,
577
591
  {
578
592
  id: "builderio-block",
579
593
  styles: n(),
@@ -581,10 +595,10 @@ function Tt(e) {
581
595
  }
582
596
  ) }) : null });
583
597
  }
584
- function It(e) {
598
+ function Vt(e) {
585
599
  return e.charAt(0).toUpperCase() + e.slice(1);
586
600
  }
587
- const wt = (e) => `on${It(e)}`, Rt = (e, t) => (n) => U({
601
+ const At = (e) => `on${Vt(e)}`, Nt = (e, t) => (n) => H({
588
602
  code: e,
589
603
  context: t.context,
590
604
  localState: t.localState,
@@ -594,33 +608,33 @@ const wt = (e) => `on${It(e)}`, Rt = (e, t) => (n) => U({
594
608
  isExpression: !1,
595
609
  enableCache: !0
596
610
  });
597
- function Le(e) {
611
+ function Ue(e) {
598
612
  var i;
599
613
  const t = {}, n = (i = e.block.actions) != null ? i : {};
600
614
  for (const o in n) {
601
615
  if (!n.hasOwnProperty(o))
602
616
  continue;
603
- const l = n[o];
604
- let a = wt(o);
617
+ const a = n[o];
618
+ let r = At(o);
605
619
  if (e.stripPrefix)
606
- switch (H) {
620
+ switch (U) {
607
621
  case "vue":
608
- a = a.replace("v-on:", "");
622
+ r = r.replace("v-on:", "");
609
623
  break;
610
624
  case "svelte":
611
- a = a.replace("on:", "");
625
+ r = r.replace("on:", "");
612
626
  break;
613
627
  }
614
- t[a] = Rt(l, e);
628
+ t[r] = Nt(a, e);
615
629
  }
616
630
  return t;
617
631
  }
618
- function Et({
632
+ function Wt({
619
633
  properties: e
620
634
  }) {
621
635
  return e;
622
636
  }
623
- const Bt = (e) => ({
637
+ const Ft = (e) => ({
624
638
  href: e.href
625
639
  });
626
640
  function fe({
@@ -629,23 +643,23 @@ function fe({
629
643
  }) {
630
644
  var i;
631
645
  const n = {
632
- ...Bt(e),
646
+ ...Ft(e),
633
647
  ...e.properties,
634
648
  "builder-id": e.id,
635
- style: pt({
649
+ style: Ct({
636
650
  block: e,
637
651
  context: t
638
652
  }),
639
- [K()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
653
+ [q()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
640
654
  };
641
- return Et({
655
+ return Wt({
642
656
  properties: n,
643
657
  context: t,
644
658
  block: e
645
659
  });
646
660
  }
647
- function Pt(e) {
648
- return /* @__PURE__ */ s(
661
+ function $t(e) {
662
+ return /* @__PURE__ */ l(
649
663
  ue,
650
664
  {
651
665
  TagName: e.Wrapper,
@@ -653,7 +667,7 @@ function Pt(e) {
653
667
  block: e.block,
654
668
  context: e.context
655
669
  }),
656
- actionAttributes: Le({
670
+ actionAttributes: Ue({
657
671
  block: e.block,
658
672
  rootState: e.context.rootState,
659
673
  rootSetState: e.context.rootSetState,
@@ -665,14 +679,14 @@ function Pt(e) {
665
679
  }
666
680
  );
667
681
  }
668
- function Vt(e) {
682
+ function Dt(e) {
669
683
  function t() {
670
684
  return e.includeBlockProps ? {
671
685
  ...fe({
672
686
  block: e.block,
673
687
  context: e.context
674
688
  }),
675
- ...Le({
689
+ ...Ue({
676
690
  block: e.block,
677
691
  rootState: e.context.rootState,
678
692
  rootSetState: e.context.rootSetState,
@@ -681,18 +695,18 @@ function Vt(e) {
681
695
  })
682
696
  } : {};
683
697
  }
684
- return /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
698
+ return /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
685
699
  }
686
- const At = ({
700
+ const Lt = ({
687
701
  componentOptions: e,
688
702
  builderBlock: t,
689
703
  context: n,
690
704
  componentRef: i,
691
705
  includeBlockProps: o,
692
- isInteractive: l,
693
- contextValue: a
706
+ isInteractive: a,
707
+ contextValue: r
694
708
  }) => {
695
- const r = {
709
+ const s = {
696
710
  ...e,
697
711
  /**
698
712
  * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
@@ -701,27 +715,27 @@ const At = ({
701
715
  ...o ? {
702
716
  attributes: fe({
703
717
  block: t,
704
- context: a
718
+ context: r
705
719
  })
706
720
  } : {}
707
721
  };
708
- return l ? {
722
+ return a ? {
709
723
  Wrapper: i,
710
724
  block: t,
711
725
  context: n,
712
726
  wrapperProps: e,
713
727
  includeBlockProps: o
714
- } : r;
728
+ } : s;
715
729
  };
716
730
  function ye(e) {
717
731
  var i;
718
732
  const [t, n] = T(
719
- () => e.isInteractive ? Vt : e.componentRef
733
+ () => e.isInteractive ? Dt : e.componentRef
720
734
  );
721
- return /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
735
+ return /* @__PURE__ */ l(E, { children: e.componentRef ? /* @__PURE__ */ l(E, { children: /* @__PURE__ */ l(
722
736
  t,
723
737
  {
724
- ...At({
738
+ ...Lt({
725
739
  componentOptions: e.componentOptions,
726
740
  builderBlock: e.builderBlock,
727
741
  context: e.context,
@@ -731,7 +745,7 @@ function ye(e) {
731
745
  isInteractive: e.isInteractive,
732
746
  contextValue: e.context
733
747
  }),
734
- children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ s(
748
+ children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
735
749
  z,
736
750
  {
737
751
  block: o,
@@ -744,9 +758,9 @@ function ye(e) {
744
758
  }
745
759
  ) }) : null });
746
760
  }
747
- function Nt(e) {
761
+ function xe(e) {
748
762
  const [t, n] = T(() => e.repeatContext);
749
- return /* @__PURE__ */ s(me.Provider, { value: t, children: /* @__PURE__ */ s(
763
+ return /* @__PURE__ */ l(me.Provider, { value: t, children: /* @__PURE__ */ l(
750
764
  z,
751
765
  {
752
766
  block: e.block,
@@ -757,23 +771,22 @@ function Nt(e) {
757
771
  ) });
758
772
  }
759
773
  function z(e) {
760
- var c, d, f;
774
+ var u, g, m, x;
761
775
  function t() {
762
- return yt({
763
- block: e.block,
764
- context: e.context,
765
- registeredComponents: e.registeredComponents
766
- });
767
- }
768
- function n() {
769
- return xt({
776
+ return It({
770
777
  block: e.block,
771
778
  context: e.context
772
779
  });
773
780
  }
774
- function i() {
775
- var u;
776
- return (u = e.block.repeat) != null && u.collection ? e.block : X({
781
+ const [n, i] = T(() => ({
782
+ value: null,
783
+ update: !1
784
+ }));
785
+ function o() {
786
+ var p;
787
+ if (n.value && !n.update && !we())
788
+ return n.value;
789
+ const h = (p = e.block.repeat) != null && p.collection ? e.block : bt({
777
790
  block: e.block,
778
791
  localState: e.context.localState,
779
792
  rootState: e.context.rootState,
@@ -781,121 +794,140 @@ function z(e) {
781
794
  context: e.context.context,
782
795
  shouldEvaluateBindings: !0
783
796
  });
784
- }
785
- function o() {
786
- var m;
787
- return e.block.tagName === "a" || ((m = i().properties) == null ? void 0 : m.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
788
- }
789
- function l() {
790
- var g, y;
791
- if ((g = e.block.repeat) != null && g.collection)
792
- return !!((y = n == null ? void 0 : n()) != null && y.length);
793
- const u = "hide" in i() ? i().hide : !1;
794
- return ("show" in i() ? i().show : !0) && !u;
797
+ return n.value = h, n.update = !1, h;
795
798
  }
796
799
  function a() {
797
- var m, g;
798
- return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (g = i().children) != null ? g : [] : [];
800
+ return Tt({
801
+ block: o(),
802
+ registeredComponents: e.registeredComponents
803
+ });
799
804
  }
800
805
  function r() {
801
- var u, m, g, y;
806
+ var p;
807
+ return e.block.tagName === "a" || ((p = o().properties) == null ? void 0 : p.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
808
+ }
809
+ function s() {
810
+ var f, w;
811
+ if ((f = e.block.repeat) != null && f.collection)
812
+ return !!((w = t == null ? void 0 : t()) != null && w.length);
813
+ const h = "hide" in o() ? o().hide : !1;
814
+ return ("show" in o() ? o().show : !0) && !h;
815
+ }
816
+ function d() {
817
+ var p, f;
818
+ return !((p = a == null ? void 0 : a()) != null && p.component) && !t() ? (f = o().children) != null ? f : [] : [];
819
+ }
820
+ function c() {
821
+ var h, p, f, w;
802
822
  return {
803
- blockChildren: (u = i().children) != null ? u : [],
804
- componentRef: (m = t == null ? void 0 : t()) == null ? void 0 : m.component,
823
+ blockChildren: (h = o().children) != null ? h : [],
824
+ componentRef: (p = a == null ? void 0 : a()) == null ? void 0 : p.component,
805
825
  componentOptions: {
806
- ...at(i()),
807
- ...kt(t(), i()),
808
- ...Ct(t(), e.context),
809
- ...vt(t(), e.linkComponent),
810
- ...St(
811
- t(),
826
+ ...rt(o()),
827
+ ...Et(a(), o()),
828
+ ...Pt(a(), e.context),
829
+ ...wt(a(), e.linkComponent),
830
+ ...Rt(
831
+ a(),
812
832
  e.registeredComponents
813
833
  )
814
834
  },
815
835
  context: e.context,
816
836
  linkComponent: e.linkComponent,
817
837
  registeredComponents: e.registeredComponents,
818
- builderBlock: i(),
819
- includeBlockProps: ((g = t == null ? void 0 : t()) == null ? void 0 : g.noWrap) === !0,
820
- isInteractive: !((y = t == null ? void 0 : t()) != null && y.isRSC && H === "rsc")
838
+ builderBlock: o(),
839
+ includeBlockProps: ((f = a == null ? void 0 : a()) == null ? void 0 : f.noWrap) === !0,
840
+ isInteractive: !((w = a == null ? void 0 : a()) != null && w.isRSC && U === "rsc")
821
841
  };
822
842
  }
823
- return P(() => {
824
- const u = i().id, m = i().animations;
825
- m && u && mt(
826
- m.map((g) => ({
827
- ...g,
828
- elementId: u
843
+ return B(() => {
844
+ const h = o().id, p = o().animations;
845
+ p && h && yt(
846
+ p.map((f) => ({
847
+ ...f,
848
+ elementId: h
829
849
  }))
830
850
  );
831
- }, []), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ V(R, { children: [
832
- /* @__PURE__ */ s(Tt, { block: e.block, context: e.context }),
833
- (c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
851
+ }, []), B(() => {
852
+ n.update = !0;
853
+ }), /* @__PURE__ */ l(E, { children: s() ? /* @__PURE__ */ V(E, { children: [
854
+ /* @__PURE__ */ l(Bt, { block: o(), context: e.context }),
855
+ (u = a == null ? void 0 : a()) != null && u.noWrap ? t() ? /* @__PURE__ */ l(E, { children: (x = t()) == null ? void 0 : x.map((h, p) => /* @__PURE__ */ l(
856
+ xe,
857
+ {
858
+ repeatContext: h.context,
859
+ block: h.block,
860
+ registeredComponents: e.registeredComponents,
861
+ linkComponent: e.linkComponent
862
+ },
863
+ p
864
+ )) }) : /* @__PURE__ */ l(
834
865
  ye,
835
866
  {
836
- componentRef: r().componentRef,
837
- componentOptions: r().componentOptions,
838
- blockChildren: r().blockChildren,
839
- context: r().context,
840
- registeredComponents: r().registeredComponents,
841
- linkComponent: r().linkComponent,
842
- builderBlock: r().builderBlock,
843
- includeBlockProps: r().includeBlockProps,
844
- isInteractive: r().isInteractive
867
+ componentRef: c().componentRef,
868
+ componentOptions: c().componentOptions,
869
+ blockChildren: c().blockChildren,
870
+ context: c().context,
871
+ registeredComponents: c().registeredComponents,
872
+ linkComponent: c().linkComponent,
873
+ builderBlock: c().builderBlock,
874
+ includeBlockProps: c().includeBlockProps,
875
+ isInteractive: c().isInteractive
845
876
  }
846
- ) }) : /* @__PURE__ */ s(R, { children: n() ? /* @__PURE__ */ s(R, { children: (f = n()) == null ? void 0 : f.map((u, m) => /* @__PURE__ */ s(
847
- Nt,
877
+ ) : /* @__PURE__ */ l(E, { children: t() ? /* @__PURE__ */ l(E, { children: (m = t()) == null ? void 0 : m.map((h, p) => /* @__PURE__ */ l(
878
+ xe,
848
879
  {
849
- repeatContext: u.context,
850
- block: u.block,
880
+ repeatContext: h.context,
881
+ block: h.block,
851
882
  registeredComponents: e.registeredComponents,
852
883
  linkComponent: e.linkComponent
853
884
  },
854
- m
885
+ p
855
886
  )) }) : /* @__PURE__ */ V(
856
- Pt,
887
+ $t,
857
888
  {
858
- Wrapper: o(),
859
- block: i(),
889
+ Wrapper: r(),
890
+ block: o(),
860
891
  context: e.context,
861
892
  children: [
862
- /* @__PURE__ */ s(
893
+ /* @__PURE__ */ l(
863
894
  ye,
864
895
  {
865
- componentRef: r().componentRef,
866
- componentOptions: r().componentOptions,
867
- blockChildren: r().blockChildren,
868
- context: r().context,
869
- registeredComponents: r().registeredComponents,
870
- linkComponent: r().linkComponent,
871
- builderBlock: r().builderBlock,
872
- includeBlockProps: r().includeBlockProps,
873
- isInteractive: r().isInteractive
896
+ componentRef: c().componentRef,
897
+ componentOptions: c().componentOptions,
898
+ blockChildren: c().blockChildren,
899
+ context: c().context,
900
+ registeredComponents: c().registeredComponents,
901
+ linkComponent: c().linkComponent,
902
+ builderBlock: c().builderBlock,
903
+ includeBlockProps: c().includeBlockProps,
904
+ isInteractive: c().isInteractive
874
905
  }
875
906
  ),
876
- (d = a()) == null ? void 0 : d.map((u) => /* @__PURE__ */ s(
907
+ (g = d()) == null ? void 0 : g.map((h) => /* @__PURE__ */ l(
877
908
  z,
878
909
  {
879
- block: u,
910
+ block: h,
880
911
  registeredComponents: e.registeredComponents,
881
912
  linkComponent: e.linkComponent,
882
913
  context: e.context
883
914
  },
884
- u.id
915
+ h.id
885
916
  ))
886
917
  ]
887
918
  }
888
919
  ) })
889
920
  ] }) : null });
890
921
  }
891
- function Wt(e) {
892
- function t() {
893
- var o;
894
- return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
895
- }
922
+ function Ot(e) {
923
+ const t = _(null);
896
924
  function n() {
897
- var o, l;
898
- $() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
925
+ var a;
926
+ return "builder-blocks" + ((a = e.blocks) != null && a.length ? "" : " no-blocks");
927
+ }
928
+ function i() {
929
+ var a, r;
930
+ $() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
899
931
  {
900
932
  type: "builder.clickEmptyBlocks",
901
933
  data: {
@@ -906,9 +938,9 @@ function Wt(e) {
906
938
  "*"
907
939
  ));
908
940
  }
909
- function i() {
910
- var o, l;
911
- $() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
941
+ function o() {
942
+ var a, r;
943
+ $() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
912
944
  {
913
945
  type: "builder.hoverEmptyBlocks",
914
946
  data: {
@@ -919,22 +951,24 @@ function Wt(e) {
919
951
  "*"
920
952
  ));
921
953
  }
922
- return /* @__PURE__ */ V(R, { children: [
923
- /* @__PURE__ */ s(
954
+ return B(() => {
955
+ }, []), /* @__PURE__ */ V(E, { children: [
956
+ /* @__PURE__ */ l(
924
957
  e.BlocksWrapper,
925
958
  {
926
- className: t() + " props-blocks-wrapper-7cd1560e",
959
+ ref: t,
960
+ className: n() + " props-blocks-wrapper-51ef31b4",
927
961
  "builder-path": e.path,
928
962
  "builder-parent-id": e.parent,
929
963
  style: e.styleProp,
930
- onClick: (o) => n(),
931
- onMouseEnter: (o) => i(),
932
- onKeyPress: (o) => n(),
964
+ onClick: (a) => i(),
965
+ onMouseEnter: (a) => o(),
966
+ onKeyPress: (a) => i(),
933
967
  ...e.BlocksWrapperProps,
934
968
  children: e.children
935
969
  }
936
970
  ),
937
- /* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-7cd1560e {
971
+ /* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-51ef31b4 {
938
972
  display: flex;
939
973
  flex-direction: column;
940
974
  align-items: stretch;
@@ -942,10 +976,10 @@ function Wt(e) {
942
976
  ] });
943
977
  }
944
978
  function D(e) {
945
- var i, o, l;
946
- const t = be(me), n = be(Be);
947
- return /* @__PURE__ */ s(
948
- Wt,
979
+ var i, o, a;
980
+ const t = be(me), n = be(Ve);
981
+ return /* @__PURE__ */ l(
982
+ Ot,
949
983
  {
950
984
  blocks: e.blocks,
951
985
  parent: e.parent,
@@ -953,64 +987,64 @@ function D(e) {
953
987
  styleProp: e.styleProp,
954
988
  BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
955
989
  BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
956
- children: e.blocks ? /* @__PURE__ */ s(R, { children: (l = e.blocks) == null ? void 0 : l.map((a) => /* @__PURE__ */ s(
990
+ children: e.blocks ? /* @__PURE__ */ l(E, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
957
991
  z,
958
992
  {
959
- block: a,
993
+ block: r,
960
994
  linkComponent: e.linkComponent,
961
995
  context: e.context || t,
962
996
  registeredComponents: e.registeredComponents || n.registeredComponents
963
997
  },
964
- a.id
998
+ r.id
965
999
  )) }) : null
966
1000
  }
967
1001
  );
968
1002
  }
969
- const Ft = (e) => `builder-columns ${e}-breakpoints`;
970
- function $t(e) {
1003
+ const Ut = (e) => `builder-columns ${e}-breakpoints`;
1004
+ function jt(e) {
971
1005
  var A, O;
972
1006
  const [t, n] = T(
973
1007
  () => typeof e.space == "number" ? e.space || 0 : 20
974
- ), [i, o] = T(() => e.columns || []), [l, a] = T(
1008
+ ), [i, o] = T(() => e.columns || []), [a, r] = T(
975
1009
  () => e.stackColumnsAt || "tablet"
976
1010
  );
977
- function r(x) {
978
- return x.link ? e.builderLinkComponent || "a" : "div";
1011
+ function s(v) {
1012
+ return v.link ? e.builderLinkComponent || "a" : "div";
979
1013
  }
980
- function c(x) {
981
- var w;
982
- return ((w = i[x]) == null ? void 0 : w.width) || 100 / i.length;
1014
+ function d(v) {
1015
+ var R;
1016
+ return ((R = i[v]) == null ? void 0 : R.width) || 100 / i.length;
983
1017
  }
984
- function d(x) {
985
- const w = c(x), N = t * (i.length - 1) * (w / 100);
986
- return `calc(${w}% - ${N}px)`;
1018
+ function c(v) {
1019
+ const R = d(v), N = t * (i.length - 1) * (R / 100);
1020
+ return `calc(${R}% - ${N}px)`;
987
1021
  }
988
- function f({
989
- stackedStyle: x,
990
- desktopStyle: w
1022
+ function u({
1023
+ stackedStyle: v,
1024
+ desktopStyle: R
991
1025
  }) {
992
- return l === "tablet" ? x : w;
1026
+ return a === "tablet" ? v : R;
993
1027
  }
994
- function u({
995
- stackedStyle: x,
996
- desktopStyle: w
1028
+ function g({
1029
+ stackedStyle: v,
1030
+ desktopStyle: R
997
1031
  }) {
998
- return l === "never" ? w : x;
1032
+ return a === "never" ? R : v;
999
1033
  }
1000
- const [m, g] = T(
1034
+ const [m, x] = T(
1001
1035
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
1002
1036
  );
1003
- function y() {
1037
+ function h() {
1004
1038
  return {
1005
1039
  "--flex-dir": m,
1006
- "--flex-dir-tablet": f({
1040
+ "--flex-dir-tablet": u({
1007
1041
  stackedStyle: m,
1008
1042
  desktopStyle: "row"
1009
1043
  })
1010
1044
  };
1011
1045
  }
1012
- function C(x) {
1013
- const w = x === 0 ? 0 : t, N = d(x), b = `${w}px`, h = "100%", v = 0;
1046
+ function p(v) {
1047
+ const R = v === 0 ? 0 : t, N = c(v), y = `${R}px`, b = "100%", S = 0;
1014
1048
  return {
1015
1049
  ...{
1016
1050
  display: "flex",
@@ -1018,93 +1052,93 @@ function $t(e) {
1018
1052
  alignItems: "stretch"
1019
1053
  },
1020
1054
  width: N,
1021
- ["marginLeft"]: b,
1022
- "--column-width-mobile": u({
1023
- stackedStyle: h,
1055
+ ["marginLeft"]: y,
1056
+ "--column-width-mobile": g({
1057
+ stackedStyle: b,
1024
1058
  desktopStyle: N
1025
1059
  }),
1026
- "--column-margin-left-mobile": u({
1027
- stackedStyle: v,
1028
- desktopStyle: b
1060
+ "--column-margin-left-mobile": g({
1061
+ stackedStyle: S,
1062
+ desktopStyle: y
1029
1063
  }),
1030
- "--column-width-tablet": f({
1031
- stackedStyle: h,
1064
+ "--column-width-tablet": u({
1065
+ stackedStyle: b,
1032
1066
  desktopStyle: N
1033
1067
  }),
1034
- "--column-margin-left-tablet": f({
1035
- stackedStyle: v,
1036
- desktopStyle: b
1068
+ "--column-margin-left-tablet": u({
1069
+ stackedStyle: S,
1070
+ desktopStyle: y
1037
1071
  })
1038
1072
  };
1039
1073
  }
1040
- function p(x) {
1041
- var N, b;
1042
- return De(
1043
- ((b = (N = e.builderContext.content) == null ? void 0 : N.meta) == null ? void 0 : b.breakpoints) || {}
1044
- )[x].max;
1074
+ function f(v) {
1075
+ var N, y;
1076
+ return Oe(
1077
+ ((y = (N = e.builderContext.content) == null ? void 0 : N.meta) == null ? void 0 : y.breakpoints) || {}
1078
+ )[v].max;
1045
1079
  }
1046
- function B() {
1047
- const x = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1080
+ function w() {
1081
+ const v = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1048
1082
  return `
1049
- @media (max-width: ${p("medium")}px) {
1083
+ @media (max-width: ${f("medium")}px) {
1050
1084
  .${e.builderBlock.id}-breakpoints {
1051
1085
  flex-direction: var(--flex-dir-tablet);
1052
1086
  align-items: stretch;
1053
1087
  }
1054
1088
 
1055
- ${x} {
1089
+ ${v} {
1056
1090
  width: var(--column-width-tablet) !important;
1057
1091
  margin-left: var(--column-margin-left-tablet) !important;
1058
1092
  }
1059
1093
  }
1060
1094
 
1061
- @media (max-width: ${p("small")}px) {
1095
+ @media (max-width: ${f("small")}px) {
1062
1096
  .${e.builderBlock.id}-breakpoints {
1063
1097
  flex-direction: var(--flex-dir);
1064
1098
  align-items: stretch;
1065
1099
  }
1066
1100
 
1067
- ${x} {
1101
+ ${v} {
1068
1102
  width: var(--column-width-mobile) !important;
1069
1103
  margin-left: var(--column-margin-left-mobile) !important;
1070
1104
  }
1071
1105
  },
1072
1106
  `;
1073
1107
  }
1074
- function E(x, w) {
1108
+ function P(v, R) {
1075
1109
  return {
1076
- ...x.link ? {
1077
- href: x.link
1110
+ ...v.link ? {
1111
+ href: v.link
1078
1112
  } : {},
1079
- [K()]: "builder-column",
1080
- style: Fe(C(w))
1113
+ [q()]: "builder-column",
1114
+ style: De(p(R))
1081
1115
  };
1082
1116
  }
1083
- return /* @__PURE__ */ V(R, { children: [
1117
+ return /* @__PURE__ */ V(E, { children: [
1084
1118
  /* @__PURE__ */ V(
1085
1119
  "div",
1086
1120
  {
1087
- className: Ft((A = e.builderBlock) == null ? void 0 : A.id) + " div-34f576bb",
1088
- style: y(),
1121
+ className: Ut((A = e.builderBlock) == null ? void 0 : A.id) + " div-34f576bb",
1122
+ style: h(),
1089
1123
  children: [
1090
- /* @__PURE__ */ s(
1091
- ne,
1124
+ /* @__PURE__ */ l(
1125
+ te,
1092
1126
  {
1093
1127
  id: "builderio-columns",
1094
- styles: B(),
1128
+ styles: w(),
1095
1129
  nonce: e.builderContext.nonce
1096
1130
  }
1097
1131
  ),
1098
- (O = e.columns) == null ? void 0 : O.map((x, w) => /* @__PURE__ */ s(
1132
+ (O = e.columns) == null ? void 0 : O.map((v, R) => /* @__PURE__ */ l(
1099
1133
  ue,
1100
1134
  {
1101
- TagName: r(x),
1135
+ TagName: s(v),
1102
1136
  actionAttributes: {},
1103
- attributes: E(x, w),
1104
- children: /* @__PURE__ */ s(
1137
+ attributes: P(v, R),
1138
+ children: /* @__PURE__ */ l(
1105
1139
  D,
1106
1140
  {
1107
- path: `component.options.columns.${w}.blocks`,
1141
+ path: `component.options.columns.${R}.blocks`,
1108
1142
  parent: e.builderBlock.id,
1109
1143
  styleProp: {
1110
1144
  flexGrow: "1"
@@ -1112,92 +1146,92 @@ function $t(e) {
1112
1146
  context: e.builderContext,
1113
1147
  registeredComponents: e.builderComponents,
1114
1148
  linkComponent: e.builderLinkComponent,
1115
- blocks: x.blocks
1149
+ blocks: v.blocks
1116
1150
  }
1117
1151
  )
1118
1152
  },
1119
- w
1153
+ R
1120
1154
  ))
1121
1155
  ]
1122
1156
  }
1123
1157
  ),
1124
- /* @__PURE__ */ s("style", { children: `.div-34f576bb {
1158
+ /* @__PURE__ */ l("style", { children: `.div-34f576bb {
1125
1159
  display: flex;
1126
1160
  line-height: normal;
1127
1161
  }` })
1128
1162
  ] });
1129
1163
  }
1130
- function Dt(e) {
1131
- return /* @__PURE__ */ s("span", { children: e.children });
1164
+ function Mt(e) {
1165
+ return /* @__PURE__ */ l("span", { children: e.children });
1132
1166
  }
1133
- function xe(e) {
1167
+ function ve(e) {
1134
1168
  return e.replace(/http(s)?:/, "");
1135
1169
  }
1136
- function Lt(e = "", t, n) {
1170
+ function Ht(e = "", t, n) {
1137
1171
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
1138
1172
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
1139
1173
  }
1140
- function Ot(e, t) {
1174
+ function Kt(e, t) {
1141
1175
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1142
1176
  return e;
1143
1177
  if (t === "master")
1144
- return xe(e);
1178
+ return ve(e);
1145
1179
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1146
1180
  if (n) {
1147
- const i = e.split(n[0]), o = n[3], l = t.match("x") ? t : `${t}x`;
1148
- return xe(`${i[0]}_${l}${o}`);
1181
+ const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
1182
+ return ve(`${i[0]}_${a}${o}`);
1149
1183
  }
1150
1184
  return null;
1151
1185
  }
1152
- function oe(e) {
1186
+ function ie(e) {
1153
1187
  if (!e)
1154
1188
  return e;
1155
1189
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1156
1190
  if (e.match(/builder\.io/)) {
1157
1191
  let n = e;
1158
1192
  const i = Number(e.split("?width=")[1]);
1159
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Lt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1193
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Ht(e, "width", o)} ${o}w`).concat([n]).join(", ");
1160
1194
  }
1161
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ot(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1195
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Kt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1162
1196
  }
1163
- function jt(e) {
1164
- var o, l, a, r, c, d;
1197
+ function qt(e) {
1198
+ var o, a, r, s, d, c;
1165
1199
  function t() {
1166
1200
  var m;
1167
- const u = e.image || e.src;
1168
- if (!u || // We can auto add srcset for cdn.builder.io and shopify
1201
+ const g = e.image || e.src;
1202
+ if (!g || // We can auto add srcset for cdn.builder.io and shopify
1169
1203
  // images, otherwise you can supply this prop manually
1170
- !(u.match(/builder\.io/) || u.match(/cdn\.shopify\.com/)))
1204
+ !(g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/)))
1171
1205
  return e.srcset;
1172
1206
  if (!e.noWebp) {
1173
1207
  if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
1174
1208
  if (!e.srcset.includes(e.image.split("?")[0]))
1175
- return console.debug("Removed given srcset"), oe(u);
1209
+ return console.debug("Removed given srcset"), ie(g);
1176
1210
  } else if (e.image && !e.srcset)
1177
- return oe(u);
1178
- return oe(u);
1211
+ return ie(g);
1212
+ return ie(g);
1179
1213
  }
1180
1214
  }
1181
1215
  function n() {
1182
- var f;
1183
- return (f = t == null ? void 0 : t()) != null && f.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
1216
+ var u;
1217
+ return (u = t == null ? void 0 : t()) != null && u.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
1184
1218
  }
1185
1219
  function i() {
1186
- const f = {
1220
+ const u = {
1187
1221
  position: "absolute",
1188
1222
  height: "100%",
1189
1223
  width: "100%",
1190
1224
  left: "0px",
1191
1225
  top: "0px"
1192
1226
  };
1193
- return e.aspectRatio ? f : void 0;
1227
+ return e.aspectRatio ? u : void 0;
1194
1228
  }
1195
- return P(() => {
1196
- }, []), /* @__PURE__ */ V(R, { children: [
1197
- /* @__PURE__ */ V(R, { children: [
1229
+ return B(() => {
1230
+ }, []), /* @__PURE__ */ V(E, { children: [
1231
+ /* @__PURE__ */ V(E, { children: [
1198
1232
  /* @__PURE__ */ V("picture", { children: [
1199
- n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1200
- /* @__PURE__ */ s(
1233
+ n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
1234
+ /* @__PURE__ */ l(
1201
1235
  "img",
1202
1236
  {
1203
1237
  loading: e.highPriority ? "eager" : "lazy",
@@ -1216,7 +1250,7 @@ function jt(e) {
1216
1250
  }
1217
1251
  )
1218
1252
  ] }),
1219
- e.aspectRatio && !((l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length && e.fitContent) ? /* @__PURE__ */ s(
1253
+ e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ l(
1220
1254
  "div",
1221
1255
  {
1222
1256
  className: "builder-image-sizer div-2d6925f2",
@@ -1225,10 +1259,10 @@ function jt(e) {
1225
1259
  }
1226
1260
  }
1227
1261
  ) : null,
1228
- (r = (a = e.builderBlock) == null ? void 0 : a.children) != null && r.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
1229
- !e.fitContent && ((d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length) ? /* @__PURE__ */ s("div", { className: "div-2d6925f2-2", children: e.children }) : null
1262
+ (s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(E, { children: e.children }) : null,
1263
+ !e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ l("div", { className: "div-2d6925f2-2", children: e.children }) : null
1230
1264
  ] }),
1231
- /* @__PURE__ */ s("style", { children: `.img-2d6925f2 {
1265
+ /* @__PURE__ */ l("style", { children: `.img-2d6925f2 {
1232
1266
  opacity: 1;
1233
1267
  transition: opacity 0.2s ease-in-out;
1234
1268
  }.div-2d6925f2 {
@@ -1247,8 +1281,8 @@ function jt(e) {
1247
1281
  }` })
1248
1282
  ] });
1249
1283
  }
1250
- function Mt(e) {
1251
- return /* @__PURE__ */ s(
1284
+ function _t(e) {
1285
+ return /* @__PURE__ */ l(
1252
1286
  "section",
1253
1287
  {
1254
1288
  ...e.attributes,
@@ -1268,7 +1302,7 @@ function Mt(e) {
1268
1302
  }
1269
1303
  );
1270
1304
  }
1271
- const ae = {
1305
+ const oe = {
1272
1306
  "@type": "@builder.io/sdk:Element",
1273
1307
  layerName: "Accordion item title",
1274
1308
  responsiveStyles: {
@@ -1297,7 +1331,7 @@ const ae = {
1297
1331
  }
1298
1332
  }
1299
1333
  }]
1300
- }, re = {
1334
+ }, ae = {
1301
1335
  "@type": "@builder.io/sdk:Element",
1302
1336
  layerName: "Accordion item detail",
1303
1337
  responsiveStyles: {
@@ -1328,7 +1362,7 @@ const ae = {
1328
1362
  }
1329
1363
  }
1330
1364
  }]
1331
- }, Ut = {
1365
+ }, zt = {
1332
1366
  name: "Builder:Accordion",
1333
1367
  canHaveChildren: !0,
1334
1368
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -1345,19 +1379,19 @@ const ae = {
1345
1379
  name: "title",
1346
1380
  type: "uiBlocks",
1347
1381
  hideFromUI: !0,
1348
- defaultValue: [ae]
1382
+ defaultValue: [oe]
1349
1383
  }, {
1350
1384
  name: "detail",
1351
1385
  type: "uiBlocks",
1352
1386
  hideFromUI: !0,
1353
- defaultValue: [re]
1387
+ defaultValue: [ae]
1354
1388
  }],
1355
1389
  defaultValue: [{
1356
- title: [ae],
1357
- detail: [re]
1390
+ title: [oe],
1391
+ detail: [ae]
1358
1392
  }, {
1359
- title: [ae],
1360
- detail: [re]
1393
+ title: [oe],
1394
+ detail: [ae]
1361
1395
  }],
1362
1396
  showIf: (e) => !e.get("useChildrenForItems")
1363
1397
  }, {
@@ -1392,9 +1426,9 @@ const ae = {
1392
1426
  builderComponents: !0,
1393
1427
  builderLinkComponent: !0
1394
1428
  }
1395
- }, ve = (e) => e.toString();
1396
- function Ht(e) {
1397
- var u;
1429
+ }, Se = (e) => e.toString();
1430
+ function Jt(e) {
1431
+ var g;
1398
1432
  const [t, n] = T(() => []);
1399
1433
  function i() {
1400
1434
  return !!(e.grid || e.oneAtATime);
@@ -1411,8 +1445,8 @@ function Ht(e) {
1411
1445
  }
1412
1446
  };
1413
1447
  }
1414
- function l() {
1415
- const g = {
1448
+ function a() {
1449
+ const x = {
1416
1450
  ...{
1417
1451
  display: "flex",
1418
1452
  flexDirection: "column"
@@ -1421,35 +1455,35 @@ function Ht(e) {
1421
1455
  cursor: "pointer"
1422
1456
  };
1423
1457
  return Object.fromEntries(
1424
- Object.entries(g).filter(([y, C]) => C !== void 0)
1458
+ Object.entries(x).filter(([h, p]) => p !== void 0)
1425
1459
  );
1426
1460
  }
1427
- function a(m) {
1461
+ function r(m) {
1428
1462
  return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
1429
1463
  }
1430
- function r(m) {
1464
+ function s(m) {
1431
1465
  return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
1432
1466
  }
1433
- function c() {
1467
+ function d() {
1434
1468
  let m = null;
1435
1469
  if (e.grid && t.length && document) {
1436
- const y = t[0];
1437
- let p = document.querySelector(
1438
- `.builder-accordion-title[data-index="${y}"]`
1470
+ const h = t[0];
1471
+ let f = document.querySelector(
1472
+ `.builder-accordion-title[data-index="${h}"]`
1439
1473
  );
1440
- if (m = y, p) {
1441
- let B = p.getBoundingClientRect();
1442
- for (; p = p && p.nextElementSibling; )
1443
- if (p) {
1444
- if (p.classList.contains("builder-accordion-detail"))
1474
+ if (m = h, f) {
1475
+ let w = f.getBoundingClientRect();
1476
+ for (; f = f && f.nextElementSibling; )
1477
+ if (f) {
1478
+ if (f.classList.contains("builder-accordion-detail"))
1445
1479
  continue;
1446
- const E = p.getBoundingClientRect();
1447
- if (E.left > B.left) {
1480
+ const P = f.getBoundingClientRect();
1481
+ if (P.left > w.left) {
1448
1482
  const A = parseInt(
1449
- p.getAttribute("data-index") || "",
1483
+ f.getAttribute("data-index") || "",
1450
1484
  10
1451
1485
  );
1452
- isNaN(A) || (B = E, m = A);
1486
+ isNaN(A) || (w = P, m = A);
1453
1487
  } else
1454
1488
  break;
1455
1489
  }
@@ -1457,37 +1491,37 @@ function Ht(e) {
1457
1491
  }
1458
1492
  return typeof m == "number" && (m = m + 1), m;
1459
1493
  }
1460
- function d() {
1494
+ function c() {
1461
1495
  const m = {
1462
- order: typeof c() == "number" ? c() : void 0,
1496
+ order: typeof d() == "number" ? d() : void 0,
1463
1497
  ...e.grid && {
1464
1498
  width: "100%"
1465
1499
  }
1466
1500
  };
1467
1501
  return Object.fromEntries(
1468
- Object.entries(m).filter(([g, y]) => y !== void 0)
1502
+ Object.entries(m).filter(([x, h]) => h !== void 0)
1469
1503
  );
1470
1504
  }
1471
- function f(m) {
1472
- t.includes(m) ? n(i() ? [] : t.filter((g) => g !== m)) : n(i() ? [m] : t.concat(m));
1505
+ function u(m) {
1506
+ t.includes(m) ? n(i() ? [] : t.filter((x) => x !== m)) : n(i() ? [m] : t.concat(m));
1473
1507
  }
1474
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (u = e.items) == null ? void 0 : u.map((m, g) => /* @__PURE__ */ V(R, { children: [
1475
- /* @__PURE__ */ s(
1508
+ return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, x) => /* @__PURE__ */ V(E, { children: [
1509
+ /* @__PURE__ */ l(
1476
1510
  "div",
1477
1511
  {
1478
- className: a(g),
1512
+ className: r(x),
1479
1513
  style: {
1480
- ...l(),
1514
+ ...a(),
1481
1515
  width: e.grid ? e.gridRowWidth : void 0,
1482
- order: c() !== null ? ve(g) : ve(g + 1)
1516
+ order: d() !== null ? Se(x) : Se(x + 1)
1483
1517
  },
1484
- "data-index": g,
1485
- onClick: (y) => f(g),
1486
- children: /* @__PURE__ */ s(
1518
+ "data-index": x,
1519
+ onClick: (h) => u(x),
1520
+ children: /* @__PURE__ */ l(
1487
1521
  D,
1488
1522
  {
1489
1523
  blocks: m.title,
1490
- path: `items.${g}.title`,
1524
+ path: `items.${x}.title`,
1491
1525
  parent: e.builderBlock.id,
1492
1526
  context: e.builderContext,
1493
1527
  registeredComponents: e.builderComponents,
@@ -1496,16 +1530,16 @@ function Ht(e) {
1496
1530
  )
1497
1531
  }
1498
1532
  ),
1499
- t.includes(g) ? /* @__PURE__ */ s(
1533
+ t.includes(x) ? /* @__PURE__ */ l(
1500
1534
  "div",
1501
1535
  {
1502
- className: r(g),
1503
- style: d(),
1504
- children: /* @__PURE__ */ s(
1536
+ className: s(x),
1537
+ style: c(),
1538
+ children: /* @__PURE__ */ l(
1505
1539
  D,
1506
1540
  {
1507
1541
  blocks: m.detail,
1508
- path: `items.${g}.detail`,
1542
+ path: `items.${x}.detail`,
1509
1543
  parent: e.builderBlock.id,
1510
1544
  context: e.builderContext,
1511
1545
  registeredComponents: e.builderComponents,
@@ -1516,7 +1550,7 @@ function Ht(e) {
1516
1550
  ) : null
1517
1551
  ] })) });
1518
1552
  }
1519
- const qt = {
1553
+ const Yt = {
1520
1554
  name: "Core:Button",
1521
1555
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1522
1556
  defaultStyles: {
@@ -1552,7 +1586,7 @@ const qt = {
1552
1586
  shouldReceiveBuilderProps: {
1553
1587
  builderLinkComponent: !0
1554
1588
  }
1555
- }, Kt = {
1589
+ }, Gt = {
1556
1590
  // TODO: ways to statically preprocess JSON for references, functions, etc
1557
1591
  name: "Columns",
1558
1592
  isRSC: !0,
@@ -1731,7 +1765,7 @@ const qt = {
1731
1765
  });
1732
1766
  }
1733
1767
  const n = e.get("columns");
1734
- Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((l) => !l.get("width")) || n.reduce((r, c) => r + c.get("width"), 0) !== 100) && t();
1768
+ Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((s, d) => s + d.get("width"), 0) !== 100) && t();
1735
1769
  }
1736
1770
  }, {
1737
1771
  name: "space",
@@ -1759,13 +1793,13 @@ const qt = {
1759
1793
  builderComponents: !0,
1760
1794
  builderLinkComponent: !0
1761
1795
  }
1762
- }, zt = {
1796
+ }, Qt = {
1763
1797
  name: "Fragment",
1764
1798
  static: !0,
1765
1799
  hidden: !0,
1766
1800
  canHaveChildren: !0,
1767
1801
  noWrap: !0
1768
- }, _t = {
1802
+ }, Xt = {
1769
1803
  name: "Image",
1770
1804
  static: !0,
1771
1805
  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",
@@ -1785,29 +1819,29 @@ const qt = {
1785
1819
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1786
1820
  onChange: (e) => {
1787
1821
  e.delete("srcset"), e.delete("noWebp");
1788
- function n(a, r = 6e4) {
1789
- return new Promise((c, d) => {
1790
- const f = document.createElement("img");
1791
- let u = !1;
1792
- f.onload = () => {
1793
- u = !0, c(f);
1794
- }, f.addEventListener("error", (m) => {
1795
- console.warn("Image load failed", m.error), d(m.error);
1796
- }), f.src = a, setTimeout(() => {
1797
- u || d(new Error("Image load timed out"));
1798
- }, r);
1822
+ function n(r, s = 6e4) {
1823
+ return new Promise((d, c) => {
1824
+ const u = document.createElement("img");
1825
+ let g = !1;
1826
+ u.onload = () => {
1827
+ g = !0, d(u);
1828
+ }, u.addEventListener("error", (m) => {
1829
+ console.warn("Image load failed", m.error), c(m.error);
1830
+ }), u.src = r, setTimeout(() => {
1831
+ g || c(new Error("Image load timed out"));
1832
+ }, s);
1799
1833
  });
1800
1834
  }
1801
- function i(a) {
1802
- return Math.round(a * 1e3) / 1e3;
1835
+ function i(r) {
1836
+ return Math.round(r * 1e3) / 1e3;
1803
1837
  }
1804
- const o = e.get("image"), l = e.get("aspectRatio");
1805
- if (fetch(o).then((a) => a.blob()).then((a) => {
1806
- a.type.includes("svg") && e.set("noWebp", !0);
1807
- }), o && (!l || l === 0.7041))
1808
- return n(o).then((a) => {
1809
- const r = e.get("aspectRatio");
1810
- e.get("image") === o && (!r || r === 0.7041) && a.width && a.height && (e.set("aspectRatio", i(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
1838
+ const o = e.get("image"), a = e.get("aspectRatio");
1839
+ if (fetch(o).then((r) => r.blob()).then((r) => {
1840
+ r.type.includes("svg") && e.set("noWebp", !0);
1841
+ }), o && (!a || a === 0.7041))
1842
+ return n(o).then((r) => {
1843
+ const s = e.get("aspectRatio");
1844
+ e.get("image") === o && (!s || s === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
1811
1845
  });
1812
1846
  }
1813
1847
  }, {
@@ -1873,7 +1907,7 @@ const qt = {
1873
1907
  shouldReceiveBuilderProps: {
1874
1908
  builderBlock: !0
1875
1909
  }
1876
- }, Jt = {
1910
+ }, Zt = {
1877
1911
  name: "Core:Section",
1878
1912
  static: !0,
1879
1913
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1912,7 +1946,7 @@ const qt = {
1912
1946
  }
1913
1947
  }
1914
1948
  }]
1915
- }, Yt = {
1949
+ }, en = {
1916
1950
  name: "Slot",
1917
1951
  isRSC: !0,
1918
1952
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1926,12 +1960,13 @@ const qt = {
1926
1960
  defaultValue: "children"
1927
1961
  }],
1928
1962
  shouldReceiveBuilderProps: {
1929
- builderContext: !0
1963
+ builderContext: !0,
1964
+ builderComponents: !0
1930
1965
  }
1931
1966
  };
1932
- function Gt(e) {
1967
+ function tn(e) {
1933
1968
  var t, n, i;
1934
- return /* @__PURE__ */ s(
1969
+ return /* @__PURE__ */ l(
1935
1970
  "div",
1936
1971
  {
1937
1972
  style: {
@@ -1940,19 +1975,20 @@ function Gt(e) {
1940
1975
  ...!((t = e.builderContext.context) != null && t.symbolId) && {
1941
1976
  "builder-slot": e.name
1942
1977
  },
1943
- children: /* @__PURE__ */ s(
1978
+ children: /* @__PURE__ */ l(
1944
1979
  D,
1945
1980
  {
1946
1981
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
1947
1982
  path: `symbol.data.${e.name}`,
1948
1983
  context: e.builderContext,
1984
+ registeredComponents: e.builderComponents,
1949
1985
  blocks: (i = e.builderContext.rootState) == null ? void 0 : i[e.name]
1950
1986
  }
1951
1987
  )
1952
1988
  }
1953
1989
  );
1954
1990
  }
1955
- const Qt = {
1991
+ const nn = {
1956
1992
  name: "Symbol",
1957
1993
  noWrap: !0,
1958
1994
  static: !0,
@@ -1991,7 +2027,7 @@ const Qt = {
1991
2027
  builderComponents: !0,
1992
2028
  builderLinkComponent: !0
1993
2029
  }
1994
- }, le = {
2030
+ }, re = {
1995
2031
  "@type": "@builder.io/sdk:Element",
1996
2032
  responsiveStyles: {
1997
2033
  large: {
@@ -2013,7 +2049,7 @@ const Qt = {
2013
2049
  text: "New tab"
2014
2050
  }
2015
2051
  }
2016
- }, se = {
2052
+ }, le = {
2017
2053
  "@type": "@builder.io/sdk:Element",
2018
2054
  responsiveStyles: {
2019
2055
  large: {
@@ -2029,7 +2065,7 @@ const Qt = {
2029
2065
  text: "New tab content "
2030
2066
  }
2031
2067
  }
2032
- }, Xt = {
2068
+ }, on = {
2033
2069
  name: "Builder: Tabs",
2034
2070
  inputs: [{
2035
2071
  name: "tabs",
@@ -2039,16 +2075,16 @@ const Qt = {
2039
2075
  name: "label",
2040
2076
  type: "uiBlocks",
2041
2077
  hideFromUI: !0,
2042
- defaultValue: [le]
2078
+ defaultValue: [re]
2043
2079
  }, {
2044
2080
  name: "content",
2045
2081
  type: "uiBlocks",
2046
2082
  hideFromUI: !0,
2047
- defaultValue: [se]
2083
+ defaultValue: [le]
2048
2084
  }],
2049
2085
  defaultValue: [{
2050
2086
  label: [{
2051
- ...le,
2087
+ ...re,
2052
2088
  component: {
2053
2089
  name: "Text",
2054
2090
  options: {
@@ -2057,7 +2093,7 @@ const Qt = {
2057
2093
  }
2058
2094
  }],
2059
2095
  content: [{
2060
- ...se,
2096
+ ...le,
2061
2097
  component: {
2062
2098
  name: "Text",
2063
2099
  options: {
@@ -2067,7 +2103,7 @@ const Qt = {
2067
2103
  }]
2068
2104
  }, {
2069
2105
  label: [{
2070
- ...le,
2106
+ ...re,
2071
2107
  component: {
2072
2108
  name: "Text",
2073
2109
  options: {
@@ -2076,7 +2112,7 @@ const Qt = {
2076
2112
  }
2077
2113
  }],
2078
2114
  content: [{
2079
- ...se,
2115
+ ...le,
2080
2116
  component: {
2081
2117
  name: "Text",
2082
2118
  options: {
@@ -2133,19 +2169,19 @@ const Qt = {
2133
2169
  builderLinkComponent: !0
2134
2170
  }
2135
2171
  };
2136
- function Zt(e) {
2137
- var l;
2172
+ function an(e) {
2173
+ var a;
2138
2174
  const [t, n] = T(
2139
2175
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
2140
2176
  );
2141
- function i(a) {
2142
- return e.tabs && e.tabs[a].content;
2177
+ function i(r) {
2178
+ return e.tabs && e.tabs[r].content;
2143
2179
  }
2144
- function o(a) {
2145
- a === t && e.collapsible ? n(-1) : n(a);
2180
+ function o(r) {
2181
+ r === t && e.collapsible ? n(-1) : n(r);
2146
2182
  }
2147
2183
  return /* @__PURE__ */ V("div", { children: [
2148
- /* @__PURE__ */ s(
2184
+ /* @__PURE__ */ l(
2149
2185
  "div",
2150
2186
  {
2151
2187
  className: "builder-tabs-wrap",
@@ -2155,31 +2191,31 @@ function Zt(e) {
2155
2191
  justifyContent: e.tabHeaderLayout || "flex-start",
2156
2192
  overflow: "auto"
2157
2193
  },
2158
- children: (l = e.tabs) == null ? void 0 : l.map((a, r) => /* @__PURE__ */ s(
2194
+ children: (a = e.tabs) == null ? void 0 : a.map((r, s) => /* @__PURE__ */ l(
2159
2195
  "span",
2160
2196
  {
2161
- className: `builder-tab-wrap ${t === r ? "builder-tab-active" : ""}`,
2197
+ className: `builder-tab-wrap ${t === s ? "builder-tab-active" : ""}`,
2162
2198
  style: {
2163
- ...t === r ? e.activeTabStyle : {}
2199
+ ...t === s ? e.activeTabStyle : {}
2164
2200
  },
2165
- onClick: (c) => o(r),
2166
- children: /* @__PURE__ */ s(
2201
+ onClick: (d) => o(s),
2202
+ children: /* @__PURE__ */ l(
2167
2203
  D,
2168
2204
  {
2169
2205
  parent: e.builderBlock.id,
2170
- path: `component.options.tabs.${r}.label`,
2171
- blocks: a.label,
2206
+ path: `component.options.tabs.${s}.label`,
2207
+ blocks: r.label,
2172
2208
  context: e.builderContext,
2173
2209
  registeredComponents: e.builderComponents,
2174
2210
  linkComponent: e.builderLinkComponent
2175
2211
  }
2176
2212
  )
2177
2213
  },
2178
- r
2214
+ s
2179
2215
  ))
2180
2216
  }
2181
2217
  ),
2182
- i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
2218
+ i(t) ? /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(
2183
2219
  D,
2184
2220
  {
2185
2221
  parent: e.builderBlock.id,
@@ -2192,7 +2228,7 @@ function Zt(e) {
2192
2228
  ) }) : null
2193
2229
  ] });
2194
2230
  }
2195
- const en = {
2231
+ const rn = {
2196
2232
  shouldReceiveBuilderProps: {
2197
2233
  builderBlock: !1,
2198
2234
  builderContext: !0
@@ -2215,28 +2251,28 @@ const en = {
2215
2251
  textAlign: "center"
2216
2252
  }
2217
2253
  };
2218
- function tn(e) {
2254
+ function ln(e) {
2219
2255
  function t() {
2220
- var r;
2256
+ var s;
2221
2257
  const n = e.builderContext, {
2222
2258
  context: i,
2223
2259
  localState: o,
2224
- rootState: l,
2225
- rootSetState: a
2260
+ rootState: a,
2261
+ rootSetState: r
2226
2262
  } = n;
2227
- return String(((r = e.text) == null ? void 0 : r.toString()) || "").replace(
2263
+ return String(((s = e.text) == null ? void 0 : s.toString()) || "").replace(
2228
2264
  /{{([^}]+)}}/g,
2229
- (c, d) => U({
2230
- code: d,
2265
+ (d, c) => H({
2266
+ code: c,
2231
2267
  context: i,
2232
2268
  localState: o,
2233
- rootState: l,
2234
- rootSetState: a,
2269
+ rootState: a,
2270
+ rootSetState: r,
2235
2271
  enableCache: !1
2236
2272
  })
2237
2273
  );
2238
2274
  }
2239
- return /* @__PURE__ */ s(
2275
+ return /* @__PURE__ */ l(
2240
2276
  "div",
2241
2277
  {
2242
2278
  className: "builder-text",
@@ -2247,7 +2283,7 @@ function tn(e) {
2247
2283
  }
2248
2284
  );
2249
2285
  }
2250
- const nn = {
2286
+ const sn = {
2251
2287
  name: "Custom Code",
2252
2288
  static: !0,
2253
2289
  requiredPermissions: ["editCode"],
@@ -2270,36 +2306,36 @@ const nn = {
2270
2306
  advanced: !0
2271
2307
  }]
2272
2308
  };
2273
- function on(e) {
2274
- const t = ee(null), [n, i] = T(() => []), [o, l] = T(() => []);
2275
- return P(() => {
2276
- var r;
2277
- if (!((r = t.current) != null && r.getElementsByTagName) || typeof window == "undefined")
2309
+ function cn(e) {
2310
+ const t = _(null), [n, i] = T(() => []), [o, a] = T(() => []);
2311
+ return B(() => {
2312
+ var s;
2313
+ if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
2278
2314
  return;
2279
- const a = t.current.getElementsByTagName("script");
2280
- for (let c = 0; c < a.length; c++) {
2281
- const d = a[c];
2282
- if (d.src) {
2283
- if (n.includes(d.src))
2315
+ const r = t.current.getElementsByTagName("script");
2316
+ for (let d = 0; d < r.length; d++) {
2317
+ const c = r[d];
2318
+ if (c.src) {
2319
+ if (n.includes(c.src))
2284
2320
  continue;
2285
- n.push(d.src);
2286
- const f = document.createElement("script");
2287
- f.async = !0, f.src = d.src, document.head.appendChild(f);
2288
- } else if (!d.type || [
2321
+ n.push(c.src);
2322
+ const u = document.createElement("script");
2323
+ u.async = !0, u.src = c.src, document.head.appendChild(u);
2324
+ } else if (!c.type || [
2289
2325
  "text/javascript",
2290
2326
  "application/javascript",
2291
2327
  "application/ecmascript"
2292
- ].includes(d.type)) {
2293
- if (o.includes(d.innerText))
2328
+ ].includes(c.type)) {
2329
+ if (o.includes(c.innerText))
2294
2330
  continue;
2295
2331
  try {
2296
- o.push(d.innerText), new Function(d.innerText)();
2297
- } catch (f) {
2298
- console.warn("`CustomCode`: Error running script:", f);
2332
+ o.push(c.innerText), new Function(c.innerText)();
2333
+ } catch (u) {
2334
+ console.warn("`CustomCode`: Error running script:", u);
2299
2335
  }
2300
2336
  }
2301
2337
  }
2302
- }, []), /* @__PURE__ */ s(
2338
+ }, []), /* @__PURE__ */ l(
2303
2339
  "div",
2304
2340
  {
2305
2341
  ref: t,
@@ -2308,7 +2344,7 @@ function on(e) {
2308
2344
  }
2309
2345
  );
2310
2346
  }
2311
- const an = {
2347
+ const dn = {
2312
2348
  name: "Embed",
2313
2349
  static: !0,
2314
2350
  inputs: [{
@@ -2323,30 +2359,30 @@ const an = {
2323
2359
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2324
2360
  hideFromUI: !0
2325
2361
  }]
2326
- }, rn = ["text/javascript", "application/javascript", "application/ecmascript"], ln = (e) => rn.includes(e.type);
2327
- function sn(e) {
2328
- const t = ee(null), [n, i] = T(() => []), [o, l] = T(() => []), [a, r] = T(() => !1);
2329
- function c() {
2362
+ }, un = ["text/javascript", "application/javascript", "application/ecmascript"], mn = (e) => un.includes(e.type);
2363
+ function fn(e) {
2364
+ const t = _(null), [n, i] = T(() => []), [o, a] = T(() => []), [r, s] = T(() => !1);
2365
+ function d() {
2330
2366
  if (!t.current || !t.current.getElementsByTagName)
2331
2367
  return;
2332
- const d = t.current.getElementsByTagName("script");
2333
- for (let f = 0; f < d.length; f++) {
2334
- const u = d[f];
2335
- if (u.src && !n.includes(u.src)) {
2336
- n.push(u.src);
2368
+ const c = t.current.getElementsByTagName("script");
2369
+ for (let u = 0; u < c.length; u++) {
2370
+ const g = c[u];
2371
+ if (g.src && !n.includes(g.src)) {
2372
+ n.push(g.src);
2337
2373
  const m = document.createElement("script");
2338
- m.async = !0, m.src = u.src, document.head.appendChild(m);
2339
- } else if (ln(u) && !o.includes(u.innerText))
2374
+ m.async = !0, m.src = g.src, document.head.appendChild(m);
2375
+ } else if (mn(g) && !o.includes(g.innerText))
2340
2376
  try {
2341
- o.push(u.innerText), new Function(u.innerText)();
2377
+ o.push(g.innerText), new Function(g.innerText)();
2342
2378
  } catch (m) {
2343
2379
  console.warn("`Embed`: Error running script:", m);
2344
2380
  }
2345
2381
  }
2346
2382
  }
2347
- return P(() => {
2348
- t.current && !a && (r(!0), c());
2349
- }, [t.current, a]), /* @__PURE__ */ s(
2383
+ return B(() => {
2384
+ t.current && !r && (s(!0), d());
2385
+ }, [t.current, r]), /* @__PURE__ */ l(
2350
2386
  "div",
2351
2387
  {
2352
2388
  className: "builder-embed",
@@ -2355,7 +2391,7 @@ function sn(e) {
2355
2391
  }
2356
2392
  );
2357
2393
  }
2358
- const cn = {
2394
+ const hn = {
2359
2395
  name: "Form:Form",
2360
2396
  // editableTags: ['builder-form-error']
2361
2397
  defaults: {
@@ -2592,123 +2628,123 @@ const cn = {
2592
2628
  builderComponents: !0,
2593
2629
  builderLinkComponent: !0
2594
2630
  }
2595
- }, dn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], un = () => {
2631
+ }, gn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], bn = () => {
2596
2632
  const e = process.env.NODE_ENV || "production";
2597
- return dn.includes(e) ? e : "production";
2598
- }, mn = (e, t, n) => {
2599
- const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, l) => o != null ? o[l] : o, e);
2633
+ return gn.includes(e) ? e : "production";
2634
+ }, pn = (e, t, n) => {
2635
+ const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
2600
2636
  return i === void 0 || i === e ? n : i;
2601
2637
  };
2602
- function fn(e) {
2603
- var u, m;
2604
- const t = ee(null), [n, i] = T(() => "unsubmitted"), [o, l] = T(() => null), [a, r] = T(() => "");
2605
- function c(g) {
2606
- var C, p;
2607
- const y = {
2638
+ function yn(e) {
2639
+ var g, m;
2640
+ const t = _(null), [n, i] = T(() => "unsubmitted"), [o, a] = T(() => null), [r, s] = T(() => "");
2641
+ function d(x) {
2642
+ var p, f;
2643
+ const h = {
2608
2644
  ...e.builderContext.rootState,
2609
- ...g
2645
+ ...x
2610
2646
  };
2611
- e.builderContext.rootSetState ? (p = (C = e.builderContext).rootSetState) == null || p.call(C, y) : e.builderContext.rootState = y;
2647
+ e.builderContext.rootSetState ? (f = (p = e.builderContext).rootSetState) == null || f.call(p, h) : e.builderContext.rootState = h;
2612
2648
  }
2613
- function d() {
2649
+ function c() {
2614
2650
  return $() && e.previewState || n;
2615
2651
  }
2616
- function f(g) {
2617
- var C;
2618
- const y = e.sendWithJs || e.sendSubmissionsTo === "email";
2652
+ function u(x) {
2653
+ var p;
2654
+ const h = e.sendWithJs || e.sendSubmissionsTo === "email";
2619
2655
  if (e.sendSubmissionsTo === "zapier")
2620
- g.preventDefault();
2621
- else if (y) {
2656
+ x.preventDefault();
2657
+ else if (h) {
2622
2658
  if (!(e.action || e.sendSubmissionsTo === "email")) {
2623
- g.preventDefault();
2659
+ x.preventDefault();
2624
2660
  return;
2625
2661
  }
2626
- g.preventDefault();
2627
- const p = g.currentTarget || g.target, B = e.customHeaders || {};
2628
- let E;
2629
- const A = new FormData(p), O = Array.from(p.querySelectorAll("input,select,textarea")).filter((b) => !!b.name).map((b) => {
2630
- let h;
2631
- const v = b.name;
2632
- if (b instanceof HTMLInputElement)
2633
- if (b.type === "radio") {
2634
- if (b.checked)
2635
- return h = b.name, {
2636
- key: v,
2637
- value: h
2662
+ x.preventDefault();
2663
+ const f = x.currentTarget || x.target, w = e.customHeaders || {};
2664
+ let P;
2665
+ const A = new FormData(f), O = Array.from(f.querySelectorAll("input,select,textarea")).filter((y) => !!y.name).map((y) => {
2666
+ let b;
2667
+ const S = y.name;
2668
+ if (y instanceof HTMLInputElement)
2669
+ if (y.type === "radio") {
2670
+ if (y.checked)
2671
+ return b = y.name, {
2672
+ key: S,
2673
+ value: b
2638
2674
  };
2639
- } else if (b.type === "checkbox")
2640
- h = b.checked;
2641
- else if (b.type === "number" || b.type === "range") {
2642
- const S = b.valueAsNumber;
2643
- isNaN(S) || (h = S);
2675
+ } else if (y.type === "checkbox")
2676
+ b = y.checked;
2677
+ else if (y.type === "number" || y.type === "range") {
2678
+ const k = y.valueAsNumber;
2679
+ isNaN(k) || (b = k);
2644
2680
  } else
2645
- b.type === "file" ? h = b.files : h = b.value;
2681
+ y.type === "file" ? b = y.files : b = y.value;
2646
2682
  else
2647
- h = b.value;
2683
+ b = y.value;
2648
2684
  return {
2649
- key: v,
2650
- value: h
2685
+ key: S,
2686
+ value: b
2651
2687
  };
2652
2688
  });
2653
- let x = e.contentType;
2654
- if (e.sendSubmissionsTo === "email" && (x = "multipart/form-data"), Array.from(O).forEach(({ value: b }) => {
2655
- (b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (x = "multipart/form-data");
2656
- }), x !== "application/json")
2657
- E = A;
2689
+ let v = e.contentType;
2690
+ if (e.sendSubmissionsTo === "email" && (v = "multipart/form-data"), Array.from(O).forEach(({ value: y }) => {
2691
+ (y instanceof File || Array.isArray(y) && y[0] instanceof File || y instanceof FileList) && (v = "multipart/form-data");
2692
+ }), v !== "application/json")
2693
+ P = A;
2658
2694
  else {
2659
- const b = {};
2660
- Array.from(O).forEach(({ value: h, key: v }) => {
2661
- Ee(b, v, h);
2662
- }), E = JSON.stringify(b);
2695
+ const y = {};
2696
+ Array.from(O).forEach(({ value: b, key: S }) => {
2697
+ Be(y, S, b);
2698
+ }), P = JSON.stringify(y);
2663
2699
  }
2664
- x && x !== "multipart/form-data" && (y && ((C = e.action) != null && C.includes("zapier.com")) || (B["content-type"] = x));
2665
- const w = new CustomEvent("presubmit", { detail: { body: E } });
2666
- if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
2700
+ v && v !== "multipart/form-data" && (h && ((p = e.action) != null && p.includes("zapier.com")) || (w["content-type"] = v));
2701
+ const R = new CustomEvent("presubmit", { detail: { body: P } });
2702
+ if (t.current && (t.current.dispatchEvent(R), R.defaultPrevented))
2667
2703
  return;
2668
2704
  i("sending");
2669
- const N = `${un() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2705
+ const N = `${bn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2670
2706
  e.sendSubmissionsToEmail || ""
2671
2707
  )}&name=${encodeURIComponent(e.name || "")}`;
2672
2708
  fetch(
2673
2709
  e.sendSubmissionsTo === "email" ? N : e.action,
2674
- { body: E, headers: B, method: e.method || "post" }
2710
+ { body: P, headers: w, method: e.method || "post" }
2675
2711
  ).then(
2676
- async (b) => {
2677
- let h;
2678
- const v = b.headers.get("content-type");
2679
- if (v && v.indexOf("application/json") !== -1 ? h = await b.json() : h = await b.text(), !b.ok && e.errorMessagePath) {
2680
- let S = mn(h, e.errorMessagePath);
2681
- S && (typeof S != "string" && (S = JSON.stringify(S)), r(S), c({ formErrorMessage: S }));
2712
+ async (y) => {
2713
+ let b;
2714
+ const S = y.headers.get("content-type");
2715
+ if (S && S.indexOf("application/json") !== -1 ? b = await y.json() : b = await y.text(), !y.ok && e.errorMessagePath) {
2716
+ let k = pn(b, e.errorMessagePath);
2717
+ k && (typeof k != "string" && (k = JSON.stringify(k)), s(k), d({ formErrorMessage: k }));
2682
2718
  }
2683
- if (l(h), i(b.ok ? "success" : "error"), b.ok) {
2684
- const S = new CustomEvent("submit:success", {
2685
- detail: { res: b, body: h }
2719
+ if (a(b), i(y.ok ? "success" : "error"), y.ok) {
2720
+ const k = new CustomEvent("submit:success", {
2721
+ detail: { res: y, body: b }
2686
2722
  });
2687
2723
  if (t.current) {
2688
- if (t.current.dispatchEvent(S), S.defaultPrevented)
2724
+ if (t.current.dispatchEvent(k), k.defaultPrevented)
2689
2725
  return;
2690
2726
  e.resetFormOnSubmit !== !1 && t.current.reset();
2691
2727
  }
2692
2728
  if (e.successUrl)
2693
2729
  if (t.current) {
2694
- const k = new CustomEvent("route", {
2730
+ const C = new CustomEvent("route", {
2695
2731
  detail: { url: e.successUrl }
2696
2732
  });
2697
- t.current.dispatchEvent(k), k.defaultPrevented || (location.href = e.successUrl);
2733
+ t.current.dispatchEvent(C), C.defaultPrevented || (location.href = e.successUrl);
2698
2734
  } else
2699
2735
  location.href = e.successUrl;
2700
2736
  }
2701
2737
  },
2702
- (b) => {
2703
- const h = new CustomEvent("submit:error", {
2704
- detail: { error: b }
2738
+ (y) => {
2739
+ const b = new CustomEvent("submit:error", {
2740
+ detail: { error: y }
2705
2741
  });
2706
- t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (l(b), i("error"));
2742
+ t.current && (t.current.dispatchEvent(b), b.defaultPrevented) || (a(y), i("error"));
2707
2743
  }
2708
2744
  );
2709
2745
  }
2710
2746
  }
2711
- return /* @__PURE__ */ V(R, { children: [
2747
+ return /* @__PURE__ */ V(E, { children: [
2712
2748
  " ",
2713
2749
  /* @__PURE__ */ V(
2714
2750
  "form",
@@ -2718,20 +2754,20 @@ function fn(e) {
2718
2754
  action: !e.sendWithJs && e.action,
2719
2755
  method: e.method,
2720
2756
  name: e.name,
2721
- onSubmit: (g) => f(g),
2757
+ onSubmit: (x) => u(x),
2722
2758
  ...e.attributes,
2723
2759
  children: [
2724
- e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(R, { children: (m = (u = e.builderBlock) == null ? void 0 : u.children) == null ? void 0 : m.map((g, y) => /* @__PURE__ */ s(
2760
+ e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(E, { children: (m = (g = e.builderBlock) == null ? void 0 : g.children) == null ? void 0 : m.map((x, h) => /* @__PURE__ */ l(
2725
2761
  z,
2726
2762
  {
2727
- block: g,
2763
+ block: x,
2728
2764
  context: e.builderContext,
2729
2765
  registeredComponents: e.builderComponents,
2730
2766
  linkComponent: e.builderLinkComponent
2731
2767
  },
2732
- `form-block-${y}`
2768
+ `form-block-${h}`
2733
2769
  )) }) : null,
2734
- d() === "error" ? /* @__PURE__ */ s(
2770
+ c() === "error" ? /* @__PURE__ */ l(
2735
2771
  D,
2736
2772
  {
2737
2773
  path: "errorMessage",
@@ -2739,7 +2775,7 @@ function fn(e) {
2739
2775
  context: e.builderContext
2740
2776
  }
2741
2777
  ) : null,
2742
- d() === "sending" ? /* @__PURE__ */ s(
2778
+ c() === "sending" ? /* @__PURE__ */ l(
2743
2779
  D,
2744
2780
  {
2745
2781
  path: "sendingMessage",
@@ -2747,8 +2783,8 @@ function fn(e) {
2747
2783
  context: e.builderContext
2748
2784
  }
2749
2785
  ) : null,
2750
- d() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
2751
- d() === "success" ? /* @__PURE__ */ s(
2786
+ c() === "error" && o ? /* @__PURE__ */ l("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
2787
+ c() === "success" ? /* @__PURE__ */ l(
2752
2788
  D,
2753
2789
  {
2754
2790
  path: "successMessage",
@@ -2760,11 +2796,11 @@ function fn(e) {
2760
2796
  }
2761
2797
  ),
2762
2798
  " ",
2763
- /* @__PURE__ */ s("style", { children: ".pre-3a20f614 { padding: 10px; color: red; text-align: center; }" }),
2799
+ /* @__PURE__ */ l("style", { children: ".pre-3a20f614 { padding: 10px; color: red; text-align: center; }" }),
2764
2800
  " "
2765
2801
  ] });
2766
2802
  }
2767
- const hn = {
2803
+ const xn = {
2768
2804
  name: "Form:Input",
2769
2805
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2770
2806
  inputs: [
@@ -2816,8 +2852,8 @@ const hn = {
2816
2852
  borderColor: "#ccc"
2817
2853
  }
2818
2854
  };
2819
- function gn(e) {
2820
- return /* @__PURE__ */ Re(
2855
+ function vn(e) {
2856
+ return /* @__PURE__ */ Pe(
2821
2857
  "input",
2822
2858
  {
2823
2859
  ...e.attributes,
@@ -2831,7 +2867,7 @@ function gn(e) {
2831
2867
  }
2832
2868
  );
2833
2869
  }
2834
- const bn = {
2870
+ const Sn = {
2835
2871
  name: "Form:Select",
2836
2872
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2837
2873
  defaultStyles: {
@@ -2874,9 +2910,9 @@ const bn = {
2874
2910
  static: !0,
2875
2911
  noWrap: !0
2876
2912
  };
2877
- function pn(e) {
2913
+ function kn(e) {
2878
2914
  var t;
2879
- return /* @__PURE__ */ Re(
2915
+ return /* @__PURE__ */ Pe(
2880
2916
  "select",
2881
2917
  {
2882
2918
  ...e.attributes,
@@ -2886,10 +2922,10 @@ function pn(e) {
2886
2922
  name: e.name,
2887
2923
  required: e.required
2888
2924
  },
2889
- (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2925
+ (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ l("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2890
2926
  );
2891
2927
  }
2892
- const yn = {
2928
+ const Cn = {
2893
2929
  name: "Form:SubmitButton",
2894
2930
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2895
2931
  defaultStyles: {
@@ -2915,10 +2951,10 @@ const yn = {
2915
2951
  // TODO: defaultChildren
2916
2952
  // canHaveChildren: true,
2917
2953
  };
2918
- function xn(e) {
2919
- return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
2954
+ function Tn(e) {
2955
+ return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
2920
2956
  }
2921
- const vn = {
2957
+ const In = {
2922
2958
  name: "Form:TextArea",
2923
2959
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
2924
2960
  inputs: [{
@@ -2955,8 +2991,8 @@ const vn = {
2955
2991
  static: !0,
2956
2992
  noWrap: !0
2957
2993
  };
2958
- function Sn(e) {
2959
- return /* @__PURE__ */ s(
2994
+ function wn(e) {
2995
+ return /* @__PURE__ */ l(
2960
2996
  "textarea",
2961
2997
  {
2962
2998
  ...e.attributes,
@@ -2968,7 +3004,7 @@ function Sn(e) {
2968
3004
  }
2969
3005
  );
2970
3006
  }
2971
- const kn = {
3007
+ const Rn = {
2972
3008
  // friendlyName?
2973
3009
  name: "Raw:Img",
2974
3010
  hideFromInsertMenu: !0,
@@ -2983,8 +3019,8 @@ const kn = {
2983
3019
  noWrap: !0,
2984
3020
  static: !0
2985
3021
  };
2986
- function Cn(e) {
2987
- return /* @__PURE__ */ s(
3022
+ function En(e) {
3023
+ return /* @__PURE__ */ l(
2988
3024
  "img",
2989
3025
  {
2990
3026
  style: {
@@ -2998,7 +3034,7 @@ function Cn(e) {
2998
3034
  $() && e.imgSrc || "default-key"
2999
3035
  );
3000
3036
  }
3001
- const Tn = {
3037
+ const Pn = {
3002
3038
  name: "Video",
3003
3039
  canHaveChildren: !0,
3004
3040
  defaultStyles: {
@@ -3083,8 +3119,8 @@ const Tn = {
3083
3119
  builderBlock: !0
3084
3120
  }
3085
3121
  };
3086
- function In(e) {
3087
- var i, o, l, a, r, c, d;
3122
+ function Bn(e) {
3123
+ var i, o, a, r, s, d, c;
3088
3124
  function t() {
3089
3125
  return {
3090
3126
  ...e.autoPlay === !0 ? {
@@ -3116,7 +3152,7 @@ function In(e) {
3116
3152
  position: "relative"
3117
3153
  },
3118
3154
  children: [
3119
- /* @__PURE__ */ s(
3155
+ /* @__PURE__ */ l(
3120
3156
  "video",
3121
3157
  {
3122
3158
  className: "builder-video",
@@ -3138,10 +3174,10 @@ function In(e) {
3138
3174
  },
3139
3175
  src: e.video || "no-src",
3140
3176
  poster: e.posterImage,
3141
- children: e.lazyLoad ? null : /* @__PURE__ */ s("source", { type: "video/mp4", src: e.video })
3177
+ children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
3142
3178
  }
3143
3179
  ),
3144
- e.aspectRatio && !(e.fitContent && ((l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length)) ? /* @__PURE__ */ s(
3180
+ e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ l(
3145
3181
  "div",
3146
3182
  {
3147
3183
  style: {
@@ -3152,7 +3188,7 @@ function In(e) {
3152
3188
  }
3153
3189
  }
3154
3190
  ) : null,
3155
- (r = (a = e.builderBlock) == null ? void 0 : a.children) != null && r.length && e.fitContent ? /* @__PURE__ */ s(
3191
+ (s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(
3156
3192
  "div",
3157
3193
  {
3158
3194
  style: {
@@ -3163,7 +3199,7 @@ function In(e) {
3163
3199
  children: e.children
3164
3200
  }
3165
3201
  ) : null,
3166
- (d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ s(
3202
+ (c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ l(
3167
3203
  "div",
3168
3204
  {
3169
3205
  style: {
@@ -3184,64 +3220,64 @@ function In(e) {
3184
3220
  }
3185
3221
  );
3186
3222
  }
3187
- const wn = () => [{
3188
- component: on,
3189
- ...nn
3190
- }, {
3191
- component: sn,
3192
- ...an
3223
+ const Vn = () => [{
3224
+ component: cn,
3225
+ ...sn
3193
3226
  }, {
3194
3227
  component: fn,
3195
- ...cn
3228
+ ...dn
3196
3229
  }, {
3197
- component: gn,
3230
+ component: yn,
3198
3231
  ...hn
3199
3232
  }, {
3200
- component: xn,
3201
- ...yn
3202
- }, {
3203
- component: pn,
3204
- ...bn
3233
+ component: vn,
3234
+ ...xn
3205
3235
  }, {
3206
- component: Sn,
3207
- ...vn
3236
+ component: Tn,
3237
+ ...Cn
3208
3238
  }, {
3209
- component: Cn,
3210
- ...kn
3239
+ component: kn,
3240
+ ...Sn
3211
3241
  }, {
3212
- component: In,
3213
- ...Tn
3214
- }], Se = () => [{
3215
- component: ot,
3216
- ...qt
3242
+ component: wn,
3243
+ ...In
3217
3244
  }, {
3218
- component: $t,
3219
- ...Kt
3245
+ component: En,
3246
+ ...Rn
3220
3247
  }, {
3221
- component: Dt,
3222
- ...zt
3248
+ component: Bn,
3249
+ ...Pn
3250
+ }], ke = () => [{
3251
+ component: at,
3252
+ ...Yt
3223
3253
  }, {
3224
3254
  component: jt,
3225
- ..._t
3255
+ ...Gt
3226
3256
  }, {
3227
3257
  component: Mt,
3228
- ...Jt
3258
+ ...Qt
3229
3259
  }, {
3230
- component: Gt,
3231
- ...Yt
3260
+ component: qt,
3261
+ ...Xt
3232
3262
  }, {
3233
- component: Yn,
3234
- ...Qt
3263
+ component: _t,
3264
+ ...Zt
3235
3265
  }, {
3236
3266
  component: tn,
3237
3267
  ...en
3238
3268
  }, {
3239
- component: Zt,
3240
- ...Xt
3269
+ component: ei,
3270
+ ...nn
3241
3271
  }, {
3242
- component: Ht,
3243
- ...Ut
3244
- }, ...wn()], Rn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3272
+ component: ln,
3273
+ ...rn
3274
+ }, {
3275
+ component: an,
3276
+ ...on
3277
+ }, {
3278
+ component: Jt,
3279
+ ...zt
3280
+ }, ...Vn()], An = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3245
3281
  function getAndSetVariantId() {
3246
3282
  function setCookie(name, value, days) {
3247
3283
  let expires = '';
@@ -3297,7 +3333,7 @@ const wn = () => [{
3297
3333
  }).join('');
3298
3334
  styleEl.innerHTML = newStyleStr;
3299
3335
  }
3300
- }`, En = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3336
+ }`, Nn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3301
3337
  if (!navigator.cookieEnabled) {
3302
3338
  return;
3303
3339
  }
@@ -3331,27 +3367,27 @@ const wn = () => [{
3331
3367
  thisScriptEl?.remove();
3332
3368
  }
3333
3369
  return;
3334
- }`, Oe = "builderIoAbTest", je = "builderIoRenderContent", J = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3370
+ }`, je = "builderIoAbTest", Me = "builderIoRenderContent", Y = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3335
3371
  ...t,
3336
3372
  testVariationId: t.id,
3337
3373
  id: e == null ? void 0 : e.id
3338
- })), Bn = ({
3374
+ })), Wn = ({
3339
3375
  canTrack: e,
3340
3376
  content: t
3341
- }) => !(!(J(t).length > 0) || !e || G()), Pn = (e) => e === "react" || e === "reactNative", Me = Pn(H), Vn = () => `
3342
- window.${Oe} = ${Rn}
3343
- window.${je} = ${En}
3344
- `, An = (e, t) => `
3345
- window.${Oe}(
3346
- "${t}",${JSON.stringify(e)}, ${Me}
3347
- )`, Nn = ({
3377
+ }) => !(!(Y(t).length > 0) || !e || Q()), Fn = (e) => e === "react" || e === "reactNative", He = Fn(U), $n = () => `
3378
+ window.${je} = ${An}
3379
+ window.${Me} = ${Nn}
3380
+ `, Dn = (e, t) => `
3381
+ window.${je}(
3382
+ "${t}",${JSON.stringify(e)}, ${He}
3383
+ )`, Ln = ({
3348
3384
  contentId: e,
3349
3385
  variationId: t
3350
- }) => `window.${je}(
3351
- "${t}", "${e}", ${Me}
3386
+ }) => `window.${Me}(
3387
+ "${t}", "${e}", ${He}
3352
3388
  )`;
3353
3389
  function ce(e) {
3354
- return /* @__PURE__ */ s(
3390
+ return /* @__PURE__ */ l(
3355
3391
  "script",
3356
3392
  {
3357
3393
  dangerouslySetInnerHTML: { __html: e.scriptStr },
@@ -3360,10 +3396,10 @@ function ce(e) {
3360
3396
  }
3361
3397
  );
3362
3398
  }
3363
- function ke(e) {
3399
+ function Ce(e) {
3364
3400
  return Math.round(e * 1e3) / 1e3;
3365
3401
  }
3366
- const Wn = (e, t, n = !0) => {
3402
+ const On = (e, t, n = !0) => {
3367
3403
  if (!(e instanceof HTMLElement))
3368
3404
  return null;
3369
3405
  let i = n ? e : e.parentElement;
@@ -3374,37 +3410,37 @@ const Wn = (e, t, n = !0) => {
3374
3410
  return i;
3375
3411
  } while (i = i.parentElement);
3376
3412
  return null;
3377
- }, Fn = (e) => Wn(e, (t) => {
3413
+ }, Un = (e) => On(e, (t) => {
3378
3414
  const n = t.getAttribute("builder-id") || t.id;
3379
3415
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3380
- }), Ce = ({
3416
+ }), Te = ({
3381
3417
  event: e,
3382
3418
  target: t
3383
3419
  }) => {
3384
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, l = ke(i / n.width), a = ke(o / n.height);
3420
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = Ce(i / n.width), r = Ce(o / n.height);
3385
3421
  return {
3386
- x: l,
3387
- y: a
3422
+ x: a,
3423
+ y: r
3388
3424
  };
3389
- }, $n = (e) => {
3390
- const t = e.target, n = t && Fn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3425
+ }, jn = (e) => {
3426
+ const t = e.target, n = t && Un(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3391
3427
  return {
3392
3428
  targetBuilderElement: i || void 0,
3393
3429
  metadata: {
3394
- targetOffset: t ? Ce({
3430
+ targetOffset: t ? Te({
3395
3431
  event: e,
3396
3432
  target: t
3397
3433
  }) : void 0,
3398
- builderTargetOffset: n ? Ce({
3434
+ builderTargetOffset: n ? Te({
3399
3435
  event: e,
3400
3436
  target: n
3401
3437
  }) : void 0,
3402
3438
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3403
3439
  }
3404
3440
  };
3405
- }, Dn = (e) => {
3406
- var l, a;
3407
- const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (l = e == null ? void 0 : e.files) == null ? void 0 : l.regular;
3441
+ }, Mn = (e) => {
3442
+ var a, r;
3443
+ 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;
3408
3444
  let o = "";
3409
3445
  if (i && t && n && (o += `
3410
3446
  @font-face {
@@ -3414,29 +3450,29 @@ font-display: fallback;
3414
3450
  font-weight: 400;
3415
3451
  }
3416
3452
  `.trim()), e.files)
3417
- for (const r in e.files) {
3418
- if (!(String(Number(r)) === r))
3453
+ for (const s in e.files) {
3454
+ if (!(String(Number(s)) === s))
3419
3455
  continue;
3420
- const d = e.files[r];
3421
- d && d !== i && (o += `
3456
+ const c = e.files[s];
3457
+ c && c !== i && (o += `
3422
3458
  @font-face {
3423
3459
  font-family: "${t}";
3424
- src: url('${d}') format('woff2');
3460
+ src: url('${c}') format('woff2');
3425
3461
  font-display: fallback;
3426
- font-weight: ${r};
3462
+ font-weight: ${s};
3427
3463
  }
3428
3464
  `.trim());
3429
3465
  }
3430
3466
  return o;
3431
- }, Ln = ({
3467
+ }, Hn = ({
3432
3468
  customFonts: e
3433
3469
  }) => {
3434
3470
  var t;
3435
- return ((t = e == null ? void 0 : e.map((n) => Dn(n))) == null ? void 0 : t.join(" ")) || "";
3436
- }, On = ({
3471
+ return ((t = e == null ? void 0 : e.map((n) => Mn(n))) == null ? void 0 : t.join(" ")) || "";
3472
+ }, Kn = ({
3437
3473
  cssCode: e,
3438
3474
  contentId: t
3439
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", jn = `
3475
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", qn = `
3440
3476
  .builder-button {
3441
3477
  all: unset;
3442
3478
  }
@@ -3453,39 +3489,39 @@ font-weight: ${r};
3453
3489
  text-align: inherit;
3454
3490
  font-family: inherit;
3455
3491
  }
3456
- `, Mn = (e) => e ? "" : jn, Un = (e) => `variant-${e}`;
3457
- function Hn(e) {
3458
- var E, A, O, x, w, N, b;
3459
- const t = ee(null);
3460
- function n(h) {
3461
- var S, k;
3462
- const v = {
3492
+ `, _n = (e) => e ? "" : qn, zn = (e) => `variant-${e}`;
3493
+ function Jn(e) {
3494
+ var P, A, O, v, R, N, y;
3495
+ const t = _(null);
3496
+ function n(b) {
3497
+ var k, C;
3498
+ const S = {
3463
3499
  ...e.builderContextSignal.rootState,
3464
- ...h
3500
+ ...b
3465
3501
  };
3466
- e.builderContextSignal.rootSetState ? (k = (S = e.builderContextSignal).rootSetState) == null || k.call(S, v) : e.setBuilderContextSignal((I) => ({
3502
+ e.builderContextSignal.rootSetState ? (C = (k = e.builderContextSignal).rootSetState) == null || C.call(k, S) : e.setBuilderContextSignal((I) => ({
3467
3503
  ...I,
3468
- rootState: v
3504
+ rootState: S
3469
3505
  }));
3470
3506
  }
3471
- function i(h) {
3472
- var S, k, I, W, j;
3473
- const v = {
3507
+ function i(b) {
3508
+ var k, C, I, W, j;
3509
+ const S = {
3474
3510
  ...e.builderContextSignal.content,
3475
- ...h,
3511
+ ...b,
3476
3512
  data: {
3477
- ...(S = e.builderContextSignal.content) == null ? void 0 : S.data,
3478
- ...h == null ? void 0 : h.data
3513
+ ...(k = e.builderContextSignal.content) == null ? void 0 : k.data,
3514
+ ...b == null ? void 0 : b.data
3479
3515
  },
3480
3516
  meta: {
3481
- ...(k = e.builderContextSignal.content) == null ? void 0 : k.meta,
3482
- ...h == null ? void 0 : h.meta,
3483
- breakpoints: ((I = h == null ? void 0 : h.meta) == null ? void 0 : I.breakpoints) || ((j = (W = e.builderContextSignal.content) == null ? void 0 : W.meta) == null ? void 0 : j.breakpoints)
3517
+ ...(C = e.builderContextSignal.content) == null ? void 0 : C.meta,
3518
+ ...b == null ? void 0 : b.meta,
3519
+ breakpoints: ((I = b == null ? void 0 : b.meta) == null ? void 0 : I.breakpoints) || ((j = (W = e.builderContextSignal.content) == null ? void 0 : W.meta) == null ? void 0 : j.breakpoints)
3484
3520
  }
3485
3521
  };
3486
3522
  e.setBuilderContextSignal((F) => ({
3487
3523
  ...F,
3488
- content: v
3524
+ content: S
3489
3525
  }));
3490
3526
  }
3491
3527
  function o() {
@@ -3494,37 +3530,37 @@ function Hn(e) {
3494
3530
  "aria-hidden": !0
3495
3531
  };
3496
3532
  }
3497
- const [l, a] = T(
3533
+ const [a, r] = T(
3498
3534
  () => e.contentWrapper || "div"
3499
3535
  );
3500
- function r(h) {
3501
- return Ye({
3536
+ function s(b) {
3537
+ return Ge({
3502
3538
  model: e.model,
3503
3539
  trustedHosts: e.trustedHosts,
3504
3540
  callbacks: {
3505
- configureSdk: (v) => {
3541
+ configureSdk: (S) => {
3506
3542
  var I;
3507
- const { breakpoints: S, contentId: k } = v;
3508
- !k || k !== ((I = e.builderContextSignal.content) == null ? void 0 : I.id) || S && i({
3543
+ const { breakpoints: k, contentId: C } = S;
3544
+ !C || C !== ((I = e.builderContextSignal.content) == null ? void 0 : I.id) || k && i({
3509
3545
  meta: {
3510
- breakpoints: S
3546
+ breakpoints: k
3511
3547
  }
3512
3548
  });
3513
3549
  },
3514
- animation: (v) => {
3515
- Ne(v);
3550
+ animation: (S) => {
3551
+ Fe(S);
3516
3552
  },
3517
- contentUpdate: (v) => {
3518
- i(v);
3553
+ contentUpdate: (S) => {
3554
+ i(S);
3519
3555
  }
3520
3556
  }
3521
- })(h);
3557
+ })(b);
3522
3558
  }
3523
- function c() {
3524
- var v, S;
3525
- const h = (S = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : S.jsCode;
3526
- h && U({
3527
- code: h,
3559
+ function d() {
3560
+ var S, k;
3561
+ const b = (k = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : k.jsCode;
3562
+ b && H({
3563
+ code: b,
3528
3564
  context: e.context || {},
3529
3565
  localState: void 0,
3530
3566
  rootState: e.builderContextSignal.rootState,
@@ -3535,35 +3571,35 @@ function Hn(e) {
3535
3571
  enableCache: !1
3536
3572
  });
3537
3573
  }
3538
- const [d, f] = T(() => ({})), [u, m] = T(() => ({})), [g, y] = T(() => !1);
3539
- function C(h) {
3540
- var v, S;
3574
+ const [c, u] = T(() => ({})), [g, m] = T(() => ({})), [x, h] = T(() => !1);
3575
+ function p(b) {
3576
+ var S, k;
3541
3577
  if (e.builderContextSignal.content) {
3542
- const k = (v = e.builderContextSignal.content) == null ? void 0 : v.testVariationId, I = (S = e.builderContextSignal.content) == null ? void 0 : S.id;
3578
+ const C = (S = e.builderContextSignal.content) == null ? void 0 : S.testVariationId, I = (k = e.builderContextSignal.content) == null ? void 0 : k.id;
3543
3579
  he({
3544
3580
  type: "click",
3545
- canTrack: Q(e.canTrack),
3581
+ canTrack: X(e.canTrack),
3546
3582
  contentId: I,
3547
3583
  apiKey: e.apiKey,
3548
- variationId: k !== I ? k : void 0,
3549
- ...$n(h),
3550
- unique: !g
3584
+ variationId: C !== I ? C : void 0,
3585
+ ...jn(b),
3586
+ unique: !x
3551
3587
  });
3552
3588
  }
3553
- g || y(!0);
3589
+ x || h(!0);
3554
3590
  }
3555
- function p() {
3556
- var v, S, k;
3557
- const h = (k = (S = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : S.httpRequests) != null ? k : {};
3558
- Object.entries(h).forEach(([I, W]) => {
3559
- if (!W || u[I] || d[I] && !$())
3591
+ function f() {
3592
+ var S, k, C;
3593
+ const b = (C = (k = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : k.httpRequests) != null ? C : {};
3594
+ Object.entries(b).forEach(([I, W]) => {
3595
+ if (!W || g[I] || c[I] && !$())
3560
3596
  return;
3561
- u[I] = !0;
3597
+ g[I] = !0;
3562
3598
  const j = W.replace(
3563
3599
  /{{([^}]+)}}/g,
3564
- (F, Ue) => String(
3565
- U({
3566
- code: Ue,
3600
+ (F, Ke) => String(
3601
+ H({
3602
+ code: Ke,
3567
3603
  context: e.context || {},
3568
3604
  localState: void 0,
3569
3605
  rootState: e.builderContextSignal.rootState,
@@ -3572,18 +3608,18 @@ function Hn(e) {
3572
3608
  })
3573
3609
  )
3574
3610
  );
3575
- Ge(j).then((F) => F.json()).then((F) => {
3611
+ Qe(j).then((F) => F.json()).then((F) => {
3576
3612
  n({
3577
3613
  [I]: F
3578
- }), d[I] = !0;
3614
+ }), c[I] = !0;
3579
3615
  }).catch((F) => {
3580
3616
  console.error("error fetching dynamic data", W, F);
3581
3617
  }).finally(() => {
3582
- u[I] = !1;
3618
+ g[I] = !1;
3583
3619
  });
3584
3620
  });
3585
3621
  }
3586
- function B() {
3622
+ function w() {
3587
3623
  $() && window.dispatchEvent(
3588
3624
  new CustomEvent(
3589
3625
  "builder:component:stateChange",
@@ -3598,10 +3634,10 @@ function Hn(e) {
3598
3634
  )
3599
3635
  );
3600
3636
  }
3601
- return P(() => {
3602
- var h, v;
3603
- if (G()) {
3604
- if ($() && (window.addEventListener("message", r), Ke(), ze({
3637
+ return B(() => {
3638
+ var b, S;
3639
+ if (Q()) {
3640
+ if ($() && (window.addEventListener("message", s), ze(), Je({
3605
3641
  ...e.locale ? {
3606
3642
  locale: e.locale
3607
3643
  } : {},
@@ -3613,28 +3649,28 @@ function Hn(e) {
3613
3649
  } : {}
3614
3650
  }), Object.values(
3615
3651
  e.builderContextSignal.componentInfos
3616
- ).forEach((k) => {
3652
+ ).forEach((C) => {
3617
3653
  var W;
3618
- const I = _e(k);
3654
+ const I = Ye(C);
3619
3655
  (W = window.parent) == null || W.postMessage(I, "*");
3620
3656
  }), window.addEventListener(
3621
3657
  "builder:component:stateChangeListenerActivated",
3622
- B
3623
- )), e.builderContextSignal.content && Q(e.canTrack)) {
3624
- const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, I = (v = e.builderContextSignal.content) == null ? void 0 : v.id, W = e.apiKey;
3658
+ w
3659
+ )), e.builderContextSignal.content && X(e.canTrack)) {
3660
+ const C = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId, I = (S = e.builderContextSignal.content) == null ? void 0 : S.id, W = e.apiKey;
3625
3661
  he({
3626
3662
  type: "impression",
3627
3663
  canTrack: !0,
3628
3664
  contentId: I,
3629
3665
  apiKey: W,
3630
- variationId: k !== I ? k : void 0
3666
+ variationId: C !== I ? C : void 0
3631
3667
  });
3632
3668
  }
3633
- if (Je() && !$()) {
3634
- const k = new URL(location.href).searchParams, I = k.get("builder.preview"), W = k.get(
3669
+ if (we() && !$()) {
3670
+ const C = new URL(location.href).searchParams, I = C.get("builder.preview"), W = C.get(
3635
3671
  `builder.overrides.${I}`
3636
- ), j = k.get("apiKey") || k.get("builder.space");
3637
- I === e.model && j === e.apiKey && (!e.content || W === e.content.id) && Ie({
3672
+ ), j = C.get("apiKey") || C.get("builder.space");
3673
+ I === e.model && j === e.apiKey && (!e.content || W === e.content.id) && Re({
3638
3674
  model: e.model,
3639
3675
  apiKey: e.apiKey,
3640
3676
  apiVersion: e.builderContextSignal.apiVersion
@@ -3643,60 +3679,60 @@ function Hn(e) {
3643
3679
  });
3644
3680
  }
3645
3681
  }
3646
- }, []), P(() => {
3682
+ }, []), B(() => {
3647
3683
  e.apiKey || Z.error(
3648
3684
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3649
- ), c(), p(), B();
3650
- }, []), P(() => {
3685
+ ), d(), f(), w();
3686
+ }, []), B(() => {
3651
3687
  e.content && i(e.content);
3652
- }, [e.content]), P(() => {
3653
- c();
3654
- }, [(A = (E = e.builderContextSignal.content) == null ? void 0 : E.data) == null ? void 0 : A.jsCode]), P(() => {
3655
- p();
3656
- }, [(x = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : x.httpRequests]), P(() => {
3657
- B();
3658
- }, [e.builderContextSignal.rootState]), P(() => {
3688
+ }, [e.content]), B(() => {
3689
+ d();
3690
+ }, [(A = (P = e.builderContextSignal.content) == null ? void 0 : P.data) == null ? void 0 : A.jsCode]), B(() => {
3691
+ f();
3692
+ }, [(v = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : v.httpRequests]), B(() => {
3693
+ w();
3694
+ }, [e.builderContextSignal.rootState]), B(() => {
3659
3695
  e.data && n(e.data);
3660
- }, [e.data]), P(() => {
3696
+ }, [e.data]), B(() => {
3661
3697
  e.locale && n({
3662
3698
  locale: e.locale
3663
3699
  });
3664
- }, [e.locale]), P(() => () => {
3665
- G() && (window.removeEventListener("message", r), window.removeEventListener(
3700
+ }, [e.locale]), B(() => () => {
3701
+ Q() && (window.removeEventListener("message", s), window.removeEventListener(
3666
3702
  "builder:component:stateChangeListenerActivated",
3667
- B
3703
+ w
3668
3704
  ));
3669
- }, []), /* @__PURE__ */ s(me.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
3670
- l,
3705
+ }, []), /* @__PURE__ */ l(me.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
3706
+ a,
3671
3707
  {
3672
3708
  ref: t,
3673
- onClick: (h) => C(h),
3674
- "builder-content-id": (w = e.builderContextSignal.content) == null ? void 0 : w.id,
3709
+ onClick: (b) => p(b),
3710
+ "builder-content-id": (R = e.builderContextSignal.content) == null ? void 0 : R.id,
3675
3711
  "builder-model": e.model,
3676
3712
  ...o(),
3677
3713
  ...e.contentWrapperProps,
3678
- className: Un(
3679
- ((N = e.content) == null ? void 0 : N.testVariationId) || ((b = e.content) == null ? void 0 : b.id)
3714
+ className: zn(
3715
+ ((N = e.content) == null ? void 0 : N.testVariationId) || ((y = e.content) == null ? void 0 : y.id)
3680
3716
  ),
3681
3717
  children: e.children
3682
3718
  }
3683
3719
  ) : null });
3684
3720
  }
3685
- function qn(e) {
3721
+ function Yn(e) {
3686
3722
  const [t, n] = T(
3687
3723
  () => `
3688
- ${On({
3724
+ ${Kn({
3689
3725
  cssCode: e.cssCode,
3690
3726
  contentId: e.contentId
3691
3727
  })}
3692
- ${Ln({
3728
+ ${Hn({
3693
3729
  customFonts: e.customFonts
3694
3730
  })}
3695
- ${Mn(e.isNestedRender)}
3731
+ ${_n(e.isNestedRender)}
3696
3732
  `.trim()
3697
3733
  );
3698
- return /* @__PURE__ */ s(
3699
- ne,
3734
+ return /* @__PURE__ */ l(
3735
+ te,
3700
3736
  {
3701
3737
  id: "builderio-content",
3702
3738
  styles: t,
@@ -3704,15 +3740,15 @@ ${Mn(e.isNestedRender)}
3704
3740
  }
3705
3741
  );
3706
3742
  }
3707
- const Kn = ({
3743
+ const Gn = ({
3708
3744
  content: e,
3709
3745
  data: t,
3710
3746
  locale: n
3711
3747
  }) => {
3712
- var l, a, r;
3713
- const i = {}, o = ((l = e == null ? void 0 : e.data) == null ? void 0 : l.state) || {};
3714
- return (r = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || r.forEach((c) => {
3715
- c.name && c.defaultValue !== void 0 && (i[c.name] = c.defaultValue);
3748
+ var a, r, s;
3749
+ const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
3750
+ return (s = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || s.forEach((d) => {
3751
+ d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
3716
3752
  }), {
3717
3753
  ...i,
3718
3754
  ...o,
@@ -3721,7 +3757,7 @@ const Kn = ({
3721
3757
  locale: n
3722
3758
  } : {}
3723
3759
  };
3724
- }, zn = ({
3760
+ }, Qn = ({
3725
3761
  content: e,
3726
3762
  data: t
3727
3763
  }) => e ? {
@@ -3732,51 +3768,51 @@ const Kn = ({
3732
3768
  },
3733
3769
  meta: e == null ? void 0 : e.meta
3734
3770
  } : void 0;
3735
- function Te(e) {
3736
- var c, d, f, u, m, g, y;
3771
+ function Ie(e) {
3772
+ var d, c, u, g, m, x, h;
3737
3773
  const [t, n] = T(
3738
3774
  () => {
3739
- var C, p;
3740
- return Nn({
3775
+ var p, f;
3776
+ return Ln({
3741
3777
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3742
- variationId: (C = e.content) == null ? void 0 : C.testVariationId,
3778
+ variationId: (p = e.content) == null ? void 0 : p.testVariationId,
3743
3779
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3744
- contentId: (p = e.content) == null ? void 0 : p.id
3780
+ contentId: (f = e.content) == null ? void 0 : f.id
3745
3781
  });
3746
3782
  }
3747
3783
  );
3748
- function i(C) {
3749
- r((p) => ({
3750
- ...p,
3751
- rootState: C
3784
+ function i(p) {
3785
+ s((f) => ({
3786
+ ...f,
3787
+ rootState: p
3752
3788
  }));
3753
3789
  }
3754
- const [o, l] = T(
3790
+ const [o, a] = T(
3755
3791
  () => {
3756
- var C;
3792
+ var p;
3757
3793
  return [
3758
- ...Se(),
3759
- ...((C = e.customComponents) == null ? void 0 : C.filter(({ models: p }) => !(p != null && p.length) || !e.model ? !0 : p.includes(e.model))) || []
3794
+ ...ke(),
3795
+ ...((p = e.customComponents) == null ? void 0 : p.filter(({ models: f }) => !(f != null && f.length) || !e.model ? !0 : f.includes(e.model))) || []
3760
3796
  ].reduce(
3761
- (p, { component: B, ...E }) => ({
3762
- ...p,
3763
- [E.name]: {
3764
- component: B,
3765
- ...ge(E)
3797
+ (f, { component: w, ...P }) => ({
3798
+ ...f,
3799
+ [P.name]: {
3800
+ component: w,
3801
+ ...ge(P)
3766
3802
  }
3767
3803
  }),
3768
3804
  {}
3769
3805
  );
3770
3806
  }
3771
- ), [a, r] = T(() => {
3772
- var C;
3807
+ ), [r, s] = T(() => {
3808
+ var p;
3773
3809
  return {
3774
- content: zn({
3810
+ content: Qn({
3775
3811
  content: e.content,
3776
3812
  data: e.data
3777
3813
  }),
3778
3814
  localState: void 0,
3779
- rootState: Kn({
3815
+ rootState: Gn({
3780
3816
  content: e.content,
3781
3817
  data: e.data,
3782
3818
  locale: e.locale
@@ -3787,12 +3823,12 @@ function Te(e) {
3787
3823
  apiKey: e.apiKey,
3788
3824
  apiVersion: e.apiVersion,
3789
3825
  componentInfos: [
3790
- ...Se(),
3791
- ...((C = e.customComponents) == null ? void 0 : C.filter(({ models: p }) => !(p != null && p.length) || !e.model ? !0 : p.includes(e.model))) || []
3826
+ ...ke(),
3827
+ ...((p = e.customComponents) == null ? void 0 : p.filter(({ models: f }) => !(f != null && f.length) || !e.model ? !0 : f.includes(e.model))) || []
3792
3828
  ].reduce(
3793
- (p, { component: B, ...E }) => ({
3794
- ...p,
3795
- [E.name]: ge(E)
3829
+ (f, { component: w, ...P }) => ({
3830
+ ...f,
3831
+ [P.name]: ge(P)
3796
3832
  }),
3797
3833
  {}
3798
3834
  ),
@@ -3802,14 +3838,14 @@ function Te(e) {
3802
3838
  nonce: e.nonce || ""
3803
3839
  };
3804
3840
  });
3805
- return /* @__PURE__ */ s(
3806
- Be.Provider,
3841
+ return /* @__PURE__ */ l(
3842
+ Ve.Provider,
3807
3843
  {
3808
3844
  value: {
3809
3845
  registeredComponents: o
3810
3846
  },
3811
3847
  children: /* @__PURE__ */ V(
3812
- Hn,
3848
+ Jn,
3813
3849
  {
3814
3850
  nonce: e.nonce,
3815
3851
  content: e.content,
@@ -3821,13 +3857,13 @@ function Te(e) {
3821
3857
  locale: e.locale,
3822
3858
  enrich: e.enrich,
3823
3859
  showContent: e.showContent,
3824
- builderContextSignal: a,
3860
+ builderContextSignal: r,
3825
3861
  contentWrapper: e.contentWrapper,
3826
3862
  contentWrapperProps: e.contentWrapperProps,
3827
3863
  trustedHosts: e.trustedHosts,
3828
- setBuilderContextSignal: r,
3864
+ setBuilderContextSignal: s,
3829
3865
  children: [
3830
- e.isSsrAbTest ? /* @__PURE__ */ s(
3866
+ e.isSsrAbTest ? /* @__PURE__ */ l(
3831
3867
  ce,
3832
3868
  {
3833
3869
  id: "builderio-variant-visibility",
@@ -3835,21 +3871,21 @@ function Te(e) {
3835
3871
  nonce: e.nonce || ""
3836
3872
  }
3837
3873
  ) : null,
3838
- /* @__PURE__ */ s(
3839
- qn,
3874
+ /* @__PURE__ */ l(
3875
+ Yn,
3840
3876
  {
3841
3877
  nonce: e.nonce || "",
3842
3878
  isNestedRender: e.isNestedRender,
3843
- contentId: (c = a.content) == null ? void 0 : c.id,
3844
- cssCode: (f = (d = a.content) == null ? void 0 : d.data) == null ? void 0 : f.cssCode,
3845
- customFonts: (m = (u = a.content) == null ? void 0 : u.data) == null ? void 0 : m.customFonts
3879
+ contentId: (d = r.content) == null ? void 0 : d.id,
3880
+ cssCode: (u = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : u.cssCode,
3881
+ customFonts: (m = (g = r.content) == null ? void 0 : g.data) == null ? void 0 : m.customFonts
3846
3882
  }
3847
3883
  ),
3848
- /* @__PURE__ */ s(
3884
+ /* @__PURE__ */ l(
3849
3885
  D,
3850
3886
  {
3851
- blocks: (y = (g = a.content) == null ? void 0 : g.data) == null ? void 0 : y.blocks,
3852
- context: a,
3887
+ blocks: (h = (x = r.content) == null ? void 0 : x.data) == null ? void 0 : h.blocks,
3888
+ context: r,
3853
3889
  registeredComponents: o,
3854
3890
  linkComponent: e.linkComponent
3855
3891
  }
@@ -3860,57 +3896,57 @@ function Te(e) {
3860
3896
  }
3861
3897
  );
3862
3898
  }
3863
- function _n(e) {
3864
- var a;
3899
+ function Xn(e) {
3900
+ var r;
3865
3901
  const [t, n] = T(
3866
- () => Bn({
3867
- canTrack: Q(e.canTrack),
3902
+ () => Wn({
3903
+ canTrack: X(e.canTrack),
3868
3904
  content: e.content
3869
3905
  })
3870
3906
  );
3871
3907
  function i() {
3872
- var r;
3873
- return An(
3874
- J(e.content).map((c) => ({
3875
- id: c.testVariationId,
3876
- testRatio: c.testRatio
3908
+ var s;
3909
+ return Dn(
3910
+ Y(e.content).map((d) => ({
3911
+ id: d.testVariationId,
3912
+ testRatio: d.testRatio
3877
3913
  })),
3878
- ((r = e.content) == null ? void 0 : r.id) || ""
3914
+ ((s = e.content) == null ? void 0 : s.id) || ""
3879
3915
  );
3880
3916
  }
3881
3917
  function o() {
3882
- return J(e.content).map((r) => `.variant-${r.testVariationId} { display: none; } `).join("");
3918
+ return Y(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
3883
3919
  }
3884
- function l() {
3885
- var r;
3920
+ function a() {
3921
+ var s;
3886
3922
  return t ? {
3887
3923
  ...e.content,
3888
- testVariationId: (r = e.content) == null ? void 0 : r.id
3889
- } : Qe({
3924
+ testVariationId: (s = e.content) == null ? void 0 : s.id
3925
+ } : Xe({
3890
3926
  item: e.content,
3891
- canTrack: Q(e.canTrack)
3927
+ canTrack: X(e.canTrack)
3892
3928
  });
3893
3929
  }
3894
- return P(() => {
3895
- }, []), /* @__PURE__ */ V(R, { children: [
3896
- !e.isNestedRender && H !== "reactNative" ? /* @__PURE__ */ s(
3930
+ return B(() => {
3931
+ }, []), /* @__PURE__ */ V(E, { children: [
3932
+ !e.isNestedRender && U !== "reactNative" ? /* @__PURE__ */ l(
3897
3933
  ce,
3898
3934
  {
3899
3935
  id: "builderio-init-variants-fns",
3900
- scriptStr: Vn(),
3936
+ scriptStr: $n(),
3901
3937
  nonce: e.nonce || ""
3902
3938
  }
3903
3939
  ) : null,
3904
- t ? /* @__PURE__ */ V(R, { children: [
3905
- /* @__PURE__ */ s(
3906
- ne,
3940
+ t ? /* @__PURE__ */ V(E, { children: [
3941
+ /* @__PURE__ */ l(
3942
+ te,
3907
3943
  {
3908
3944
  id: "builderio-variants",
3909
3945
  styles: o(),
3910
3946
  nonce: e.nonce || ""
3911
3947
  }
3912
3948
  ),
3913
- /* @__PURE__ */ s(
3949
+ /* @__PURE__ */ l(
3914
3950
  ce,
3915
3951
  {
3916
3952
  id: "builderio-variants-visibility",
@@ -3918,12 +3954,12 @@ function _n(e) {
3918
3954
  nonce: e.nonce || ""
3919
3955
  }
3920
3956
  ),
3921
- (a = J(e.content)) == null ? void 0 : a.map((r) => /* @__PURE__ */ s(
3922
- Te,
3957
+ (r = Y(e.content)) == null ? void 0 : r.map((s) => /* @__PURE__ */ l(
3958
+ Ie,
3923
3959
  {
3924
3960
  isNestedRender: e.isNestedRender,
3925
3961
  nonce: e.nonce,
3926
- content: r,
3962
+ content: s,
3927
3963
  showContent: !1,
3928
3964
  model: e.model,
3929
3965
  data: e.data,
@@ -3942,15 +3978,15 @@ function _n(e) {
3942
3978
  contentWrapperProps: e.contentWrapperProps,
3943
3979
  trustedHosts: e.trustedHosts
3944
3980
  },
3945
- r.testVariationId
3981
+ s.testVariationId
3946
3982
  ))
3947
3983
  ] }) : null,
3948
- /* @__PURE__ */ s(
3949
- Te,
3984
+ /* @__PURE__ */ l(
3985
+ Ie,
3950
3986
  {
3951
3987
  nonce: e.nonce,
3952
3988
  isNestedRender: e.isNestedRender,
3953
- content: l(),
3989
+ content: a(),
3954
3990
  showContent: !0,
3955
3991
  model: e.model,
3956
3992
  data: e.data,
@@ -3972,13 +4008,13 @@ function _n(e) {
3972
4008
  )
3973
4009
  ] });
3974
4010
  }
3975
- const Jn = async ({
4011
+ const Zn = async ({
3976
4012
  builderContextValue: e,
3977
4013
  symbol: t
3978
4014
  }) => {
3979
4015
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
3980
4016
  (e != null && e.apiKey))
3981
- return Ie({
4017
+ return Re({
3982
4018
  model: t.model,
3983
4019
  apiKey: e.apiKey,
3984
4020
  apiVersion: e.apiVersion,
@@ -3991,8 +4027,8 @@ const Jn = async ({
3991
4027
  Z.error("Could not fetch symbol content: ", n);
3992
4028
  });
3993
4029
  };
3994
- function Yn(e) {
3995
- var r, c, d, f;
4030
+ function ei(e) {
4031
+ var s, d, c, u;
3996
4032
  function t() {
3997
4033
  return "div";
3998
4034
  }
@@ -4000,31 +4036,31 @@ function Yn(e) {
4000
4036
  return "div";
4001
4037
  }
4002
4038
  function i() {
4003
- var u, m;
4039
+ var g, m;
4004
4040
  return [
4005
- e.attributes[K()],
4041
+ e.attributes[q()],
4006
4042
  "builder-symbol",
4007
- (u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
4043
+ (g = e.symbol) != null && g.inline ? "builder-inline-symbol" : void 0,
4008
4044
  (m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4009
4045
  ].filter(Boolean).join(" ");
4010
4046
  }
4011
- const [o, l] = T(() => {
4012
- var u;
4013
- return (u = e.symbol) == null ? void 0 : u.content;
4047
+ const [o, a] = T(() => {
4048
+ var g;
4049
+ return (g = e.symbol) == null ? void 0 : g.content;
4014
4050
  });
4015
- function a() {
4016
- o || Jn({
4051
+ function r() {
4052
+ o || Zn({
4017
4053
  symbol: e.symbol,
4018
4054
  builderContextValue: e.builderContext
4019
- }).then((u) => {
4020
- u && l(u);
4055
+ }).then((g) => {
4056
+ g && a(g);
4021
4057
  });
4022
4058
  }
4023
- return P(() => {
4024
- }, []), P(() => {
4025
- a();
4026
- }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
4027
- _n,
4059
+ return B(() => {
4060
+ }, []), B(() => {
4061
+ r();
4062
+ }, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
4063
+ Xn,
4028
4064
  {
4029
4065
  nonce: e.builderContext.nonce,
4030
4066
  isNestedRender: !0,
@@ -4032,16 +4068,16 @@ function Yn(e) {
4032
4068
  apiKey: e.builderContext.apiKey,
4033
4069
  context: {
4034
4070
  ...e.builderContext.context,
4035
- symbolId: (r = e.builderBlock) == null ? void 0 : r.id
4071
+ symbolId: (s = e.builderBlock) == null ? void 0 : s.id
4036
4072
  },
4037
4073
  customComponents: Object.values(e.builderComponents),
4038
4074
  data: {
4039
- ...(c = e.symbol) == null ? void 0 : c.data,
4075
+ ...(d = e.symbol) == null ? void 0 : d.data,
4040
4076
  ...e.builderContext.localState,
4041
- ...(d = o == null ? void 0 : o.data) == null ? void 0 : d.state
4077
+ ...(c = o == null ? void 0 : o.data) == null ? void 0 : c.state
4042
4078
  },
4043
4079
  canTrack: e.builderContext.canTrack,
4044
- model: (f = e.symbol) == null ? void 0 : f.model,
4080
+ model: (u = e.symbol) == null ? void 0 : u.model,
4045
4081
  content: o,
4046
4082
  linkComponent: e.builderLinkComponent,
4047
4083
  blocksWrapper: t(),
@@ -4052,13 +4088,13 @@ function Yn(e) {
4052
4088
  export {
4053
4089
  D as Blocks,
4054
4090
  me as BuilderContext,
4055
- ot as Button,
4056
- $t as Columns,
4057
- _n as Content,
4058
- Dt as Fragment,
4059
- jt as Image,
4060
- Mt as Section,
4061
- Yn as Symbol,
4062
- tn as Text,
4063
- In as Video
4091
+ at as Button,
4092
+ jt as Columns,
4093
+ Xn as Content,
4094
+ Mt as Fragment,
4095
+ qt as Image,
4096
+ _t as Section,
4097
+ ei as Symbol,
4098
+ ln as Text,
4099
+ Bn as Video
4064
4100
  };