@builder.io/sdk-react-nextjs 0.16.6 → 0.16.9

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 (46) hide show
  1. package/lib/browser/blocks-exports.cjs +30 -30
  2. package/lib/browser/blocks-exports.mjs +653 -620
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +2 -2
  5. package/lib/browser/init.cjs +2 -2
  6. package/lib/browser/init.mjs +20 -20
  7. package/lib/browser/server-entry-ed0910dd.cjs +2 -0
  8. package/lib/{node/server-entry-226d18cc.js → browser/server-entry-ff1eb217.js} +357 -355
  9. package/lib/browser/server-entry.cjs +1 -1
  10. package/lib/browser/server-entry.mjs +1 -1
  11. package/lib/edge/blocks-exports.cjs +43 -43
  12. package/lib/edge/blocks-exports.mjs +1069 -1036
  13. package/lib/edge/index.cjs +1 -1
  14. package/lib/edge/index.mjs +2 -2
  15. package/lib/edge/init.cjs +2 -2
  16. package/lib/edge/init.mjs +20 -20
  17. package/lib/edge/server-entry-ed0910dd.cjs +2 -0
  18. package/lib/{browser/server-entry-226d18cc.js → edge/server-entry-ff1eb217.js} +357 -355
  19. package/lib/edge/server-entry.cjs +1 -1
  20. package/lib/edge/server-entry.mjs +1 -1
  21. package/lib/node/blocks-exports.cjs +29 -29
  22. package/lib/node/blocks-exports.mjs +684 -651
  23. package/lib/node/index.cjs +1 -1
  24. package/lib/node/index.mjs +3 -3
  25. package/lib/node/init.cjs +1 -1
  26. package/lib/node/init.mjs +2 -2
  27. package/lib/node/{node-runtime-f354effa.cjs → node-runtime-3b9a05b3.cjs} +4 -4
  28. package/lib/node/{node-runtime-f79fed3b.js → node-runtime-606c2607.js} +3 -3
  29. package/lib/node/server-entry-ed0910dd.cjs +2 -0
  30. package/lib/{edge/server-entry-226d18cc.js → node/server-entry-ff1eb217.js} +357 -355
  31. package/lib/node/server-entry.cjs +1 -1
  32. package/lib/node/server-entry.mjs +1 -1
  33. package/package.json +3 -3
  34. package/types/cjs/blocks/slot/slot.d.ts +2 -2
  35. package/types/cjs/components/block/block.helpers.d.ts +1 -2
  36. package/types/cjs/constants/sdk-version.d.ts +1 -1
  37. package/types/cjs/functions/evaluate/node-runtime/init.d.ts +1 -0
  38. package/types/cjs/functions/get-processed-block.d.ts +1 -0
  39. package/types/esm/blocks/slot/slot.d.ts +2 -2
  40. package/types/esm/components/block/block.helpers.d.ts +1 -2
  41. package/types/esm/constants/sdk-version.d.ts +1 -1
  42. package/types/esm/functions/evaluate/node-runtime/init.d.ts +1 -0
  43. package/types/esm/functions/get-processed-block.d.ts +1 -0
  44. package/lib/browser/server-entry-0418e1e6.cjs +0 -2
  45. package/lib/edge/server-entry-0418e1e6.cjs +0 -2
  46. package/lib/node/server-entry-0418e1e6.cjs +0 -2
@@ -1,18 +1,18 @@
1
1
  "use client";
2
- var Ae = Object.defineProperty;
3
- var Ve = (e, t, n) => t in e ? Ae(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
- var ee = (e, t, n) => (Ve(e, typeof t != "symbol" ? t + "" : t, n), n);
5
- import { jsx as l, Fragment as C, jsxs as E } from "react/jsx-runtime";
6
- import { TARGET as D, isEditing as V, isBrowser as L, getUserAttributes as $e, checkIsDefined as z, logger as J, init as Fe, getDefaultCanTrack as q, _track as ue, isPreviewing as Le, createEditorListener as Oe, fetch as De, registerInsertMenu as je, setupBrowserForEditing as He, createRegisterComponentMessage as Me, fetchOneEntry as ke, serializeIncludingFunctions as me, handleABTestingSync as Ue } from "./server-entry-226d18cc.js";
7
- import { useEffect as R, useRef as ie, useState as A, createContext as _e } from "react";
8
- import { useRouter as Ke } from "next/navigation";
2
+ var $e = Object.defineProperty;
3
+ var Fe = (e, t, n) => t in e ? $e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
+ var ee = (e, t, n) => (Fe(e, typeof t != "symbol" ? t + "" : t, n), n);
5
+ import { jsx as l, Fragment as T, jsxs as P } from "react/jsx-runtime";
6
+ import { TARGET as $, isEditing as V, isBrowser as O, getUserAttributes as Le, checkIsDefined as z, logger as Y, isPreviewing as Ce, init as Oe, getDefaultCanTrack as q, _track as ue, createEditorListener as De, fetch as He, registerInsertMenu as _e, setupBrowserForEditing as Ue, createRegisterComponentMessage as je, fetchOneEntry as we, serializeIncludingFunctions as me, handleABTestingSync as Me } from "./server-entry-ff1eb217.js";
9
7
  import "lru-cache";
10
- const ze = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), qe = (e) => typeof e == "string" && ze.has(e.toLowerCase());
8
+ import { useRef as J, useEffect as R, useState as N, createContext as Ke } from "react";
9
+ import { useRouter as ze } from "next/navigation";
10
+ const qe = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ye = (e) => typeof e == "string" && qe.has(e.toLowerCase());
11
11
  function oe(e) {
12
- return /* @__PURE__ */ l(C, { children: qe(e.TagName) ? /* @__PURE__ */ l(C, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(C, { 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
+ return /* @__PURE__ */ l(T, { children: Ye(e.TagName) ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(T, { 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 }) }) });
13
13
  }
14
- const M = () => {
15
- switch (D) {
14
+ const U = () => {
15
+ switch ($) {
16
16
  case "react":
17
17
  case "reactNative":
18
18
  case "rsc":
@@ -25,11 +25,11 @@ const M = () => {
25
25
  return "class";
26
26
  }
27
27
  };
28
- function Ye(e) {
28
+ function Je(e) {
29
29
  function t() {
30
30
  return {
31
31
  ...e.attributes,
32
- [M()]: `${e.link ? "" : "builder-button"} ${e.attributes[M()] || ""}`,
32
+ [U()]: `${e.link ? "" : "builder-button"} ${e.attributes[U()] || ""}`,
33
33
  ...e.link ? {
34
34
  href: e.link,
35
35
  target: e.openLinkInNewTab ? "_blank" : void 0,
@@ -49,14 +49,20 @@ function Ye(e) {
49
49
  }
50
50
  );
51
51
  }
52
- function Je(e) {
52
+ function Qe(e) {
53
53
  var t;
54
54
  return {
55
55
  ...(t = e.component) == null ? void 0 : t.options,
56
56
  ...e.options
57
57
  };
58
58
  }
59
- const Qe = ({
59
+ function Ge(e, ...t) {
60
+ const n = Object.assign({}, e);
61
+ for (const i of t)
62
+ delete n[i];
63
+ return n;
64
+ }
65
+ const Xe = ({
60
66
  builder: e,
61
67
  context: t,
62
68
  event: n,
@@ -68,12 +74,12 @@ const Qe = ({
68
74
  builder: e,
69
75
  context: t,
70
76
  event: n
71
- }), Ge = () => ({
77
+ }), Ze = () => ({
72
78
  isEditing: V(),
73
- isBrowser: L(),
74
- isServer: !L(),
75
- getUserAttributes: () => $e()
76
- }), Xe = (e, {
79
+ isBrowser: O(),
80
+ isServer: !O(),
81
+ getUserAttributes: () => Le()
82
+ }), et = (e, {
77
83
  isExpression: t = !0
78
84
  }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, fe = ({
79
85
  code: e,
@@ -84,19 +90,19 @@ const Qe = ({
84
90
  rootSetState: a,
85
91
  rootState: r
86
92
  }) => {
87
- const c = Qe({
93
+ const s = Xe({
88
94
  builder: t,
89
95
  context: n,
90
96
  event: i,
91
- state: Ce({
97
+ state: Ie({
92
98
  rootState: r,
93
99
  localState: o,
94
100
  rootSetState: a
95
101
  })
96
102
  });
97
- return new Function(...c.map(([s]) => s), e)(...c.map(([, s]) => s));
103
+ return new Function(...s.map(([c]) => c), e)(...s.map(([, c]) => c));
98
104
  };
99
- function Ce({
105
+ function Ie({
100
106
  rootState: e,
101
107
  localState: t,
102
108
  rootSetState: n
@@ -106,7 +112,7 @@ function Ce({
106
112
  if (t && o in t)
107
113
  return t[o];
108
114
  const a = i[o];
109
- return typeof a == "object" && a !== null ? Ce({
115
+ return typeof a == "object" && a !== null ? Ie({
110
116
  rootState: a,
111
117
  localState: void 0,
112
118
  rootSetState: n ? (r) => {
@@ -121,17 +127,17 @@ function Ce({
121
127
  }
122
128
  });
123
129
  }
124
- function Ze() {
130
+ function tt() {
125
131
  var e;
126
132
  return typeof process != "undefined" && z((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
127
133
  }
128
- const et = () => {
134
+ const nt = () => {
129
135
  var i;
130
- if (!Ze())
136
+ if (!tt())
131
137
  return !1;
132
138
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
133
- return e && t && !n ? (J.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;
134
- }, tt = (e) => (L() || et(), fe(e)), N = class N {
139
+ return e && t && !n ? (Y.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;
140
+ }, it = (e) => (O() || nt(), fe(e)), ot = !0, A = class A {
135
141
  static getCacheKey(t) {
136
142
  return JSON.stringify({
137
143
  ...t,
@@ -141,17 +147,17 @@ const et = () => {
141
147
  });
142
148
  }
143
149
  static getCachedValue(t) {
144
- return N.cache.get(t);
150
+ return A.cache.get(t);
145
151
  }
146
152
  static setCachedValue(t, n) {
147
- N.cache.size > 20 && N.cache.delete(N.cache.keys().next().value), N.cache.set(t, {
153
+ A.cache.size > 20 && A.cache.delete(A.cache.keys().next().value), A.cache.set(t, {
148
154
  value: n
149
155
  });
150
156
  }
151
157
  };
152
- ee(N, "cacheLimit", 20), ee(N, "cache", /* @__PURE__ */ new Map());
153
- let F = N;
154
- function O({
158
+ ee(A, "cacheLimit", 20), ee(A, "cache", /* @__PURE__ */ new Map());
159
+ let L = A;
160
+ function D({
155
161
  code: e,
156
162
  context: t,
157
163
  localState: n,
@@ -159,47 +165,85 @@ function O({
159
165
  rootSetState: o,
160
166
  event: a,
161
167
  isExpression: r = !0,
162
- enableCache: c
168
+ enableCache: s
163
169
  }) {
164
170
  if (e === "")
165
171
  return;
166
- const s = {
167
- code: Xe(e, {
172
+ const c = {
173
+ code: et(e, {
168
174
  isExpression: r
169
175
  }),
170
- builder: Ge(),
176
+ builder: Ze(),
171
177
  context: t,
172
178
  event: a,
173
179
  rootSetState: o,
174
180
  rootState: i,
175
181
  localState: n
176
182
  };
177
- if (c) {
178
- const d = F.getCacheKey(s), m = F.getCachedValue(d);
179
- if (m)
180
- return m.value;
183
+ if (s && !ot) {
184
+ const d = L.getCacheKey(c), u = L.getCachedValue(d);
185
+ if (u)
186
+ return u.value;
181
187
  }
182
188
  try {
183
- const d = tt(s);
184
- if (c) {
185
- const m = F.getCacheKey(s);
186
- F.setCachedValue(m, d);
189
+ const d = it(c);
190
+ if (s) {
191
+ const u = L.getCacheKey(c);
192
+ L.setCachedValue(u, d);
187
193
  }
188
194
  return d;
189
195
  } catch (d) {
190
- J.error("Failed code evaluation: " + d.message, {
196
+ Y.error("Failed code evaluation: " + d.message, {
191
197
  code: e
192
198
  });
193
199
  return;
194
200
  }
195
201
  }
196
- const ae = (e) => JSON.parse(JSON.stringify(e)), nt = (e, t, n) => {
202
+ const ae = (e) => JSON.parse(JSON.stringify(e)), at = (e, t, n) => {
197
203
  if (Object(e) !== e)
198
204
  return e;
199
205
  const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
200
206
  return i.slice(0, -1).reduce((o, a, r) => Object(o[a]) === o[a] ? o[a] : o[a] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
201
207
  };
202
- const it = ({
208
+ function ne(e) {
209
+ if (e === null || typeof e != "object")
210
+ return e;
211
+ if (Array.isArray(e))
212
+ return e.map((n) => ne(n));
213
+ if (e["@type"] === "@builder.io/sdk:Element")
214
+ return e;
215
+ const t = {};
216
+ for (const n in e)
217
+ n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ne(e[n]));
218
+ return t;
219
+ }
220
+ const rt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), ct = (e) => {
221
+ if (rt) {
222
+ const t = ae(e);
223
+ return {
224
+ ...t,
225
+ properties: {
226
+ ...t.properties
227
+ },
228
+ actions: {
229
+ ...t.actions
230
+ }
231
+ };
232
+ } else {
233
+ const t = ne(Ge(e, "children", "meta"));
234
+ return {
235
+ ...t,
236
+ properties: {
237
+ ...t.properties
238
+ },
239
+ actions: {
240
+ ...t.actions
241
+ },
242
+ children: e.children,
243
+ meta: e.meta
244
+ };
245
+ }
246
+ }, lt = ({
203
247
  block: e,
204
248
  context: t,
205
249
  localState: n,
@@ -208,17 +252,9 @@ const it = ({
208
252
  }) => {
209
253
  if (!e.bindings)
210
254
  return e;
211
- const a = ae(e), r = {
212
- ...a,
213
- properties: {
214
- ...a.properties
215
- },
216
- actions: {
217
- ...a.actions
218
- }
219
- };
220
- for (const c in e.bindings) {
221
- const s = e.bindings[c], d = O({
255
+ const a = ct(e);
256
+ for (const r in e.bindings) {
257
+ const s = e.bindings[r], c = D({
222
258
  code: s,
223
259
  localState: n,
224
260
  rootState: i,
@@ -226,11 +262,11 @@ const it = ({
226
262
  context: t,
227
263
  enableCache: !0
228
264
  });
229
- nt(r, c, d);
265
+ at(a, r, c);
230
266
  }
231
- return r;
267
+ return a;
232
268
  };
233
- function Y({
269
+ function st({
234
270
  block: e,
235
271
  context: t,
236
272
  shouldEvaluateBindings: n,
@@ -239,7 +275,7 @@ function Y({
239
275
  rootSetState: a
240
276
  }) {
241
277
  const r = e;
242
- return n ? it({
278
+ return n ? lt({
243
279
  block: r,
244
280
  localState: i,
245
281
  rootState: o,
@@ -247,42 +283,42 @@ function Y({
247
283
  context: t
248
284
  }) : r;
249
285
  }
250
- const re = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "", we = (e) => Object.entries(e).map(([n, i]) => {
286
+ const re = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "", Te = (e) => Object.entries(e).map(([n, i]) => {
251
287
  if (typeof i == "string")
252
288
  return `${re(n)}: ${i};`;
253
- }).filter(z), ot = (e) => we(e).join(`
254
- `), _ = ({
289
+ }).filter(z), dt = (e) => Te(e).join(`
290
+ `), M = ({
255
291
  mediaQuery: e,
256
292
  className: t,
257
293
  styles: n
258
294
  }) => {
259
295
  const i = `.${t} {
260
- ${ot(n)}
296
+ ${dt(n)}
261
297
  }`;
262
298
  return e ? `${e} {
263
299
  ${i}
264
300
  }` : i;
265
301
  };
266
- function at({
302
+ function ut({
267
303
  style: e
268
304
  }) {
269
305
  return e;
270
306
  }
271
- const rt = ({
307
+ const mt = ({
272
308
  block: e,
273
309
  context: t
274
- }) => Ie(at({
310
+ }) => Re(ut({
275
311
  style: e.style || {},
276
312
  context: t,
277
313
  block: e
278
314
  }));
279
- function Ie(e) {
280
- switch (D) {
315
+ function Re(e) {
316
+ switch ($) {
281
317
  case "svelte":
282
318
  case "vue":
283
319
  case "solid":
284
320
  case "angular":
285
- return we(e).join(" ");
321
+ return Te(e).join(" ");
286
322
  case "qwik":
287
323
  case "reactNative":
288
324
  case "react":
@@ -290,29 +326,21 @@ function Ie(e) {
290
326
  return e;
291
327
  }
292
328
  }
293
- const ct = ({
329
+ const ft = ({
294
330
  block: e,
295
- context: t,
296
- registeredComponents: n
331
+ registeredComponents: t
297
332
  }) => {
298
- var a;
299
- const i = (a = Y({
300
- block: e,
301
- localState: t.localState,
302
- rootState: t.rootState,
303
- rootSetState: t.rootSetState,
304
- context: t.context,
305
- shouldEvaluateBindings: !1
306
- }).component) == null ? void 0 : a.name;
307
- if (!i)
333
+ var o;
334
+ const n = (o = e.component) == null ? void 0 : o.name;
335
+ if (!n)
308
336
  return null;
309
- const o = n[i];
310
- if (o)
311
- return o;
337
+ const i = t[n];
338
+ if (i)
339
+ return i;
312
340
  console.warn(`
313
- Could not find a registered component named "${i}".
341
+ Could not find a registered component named "${n}".
314
342
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
315
- }, lt = ({
343
+ }, ht = ({
316
344
  block: e,
317
345
  context: t
318
346
  }) => {
@@ -322,7 +350,7 @@ const ct = ({
322
350
  } = e;
323
351
  if (!(n != null && n.collection))
324
352
  return;
325
- const o = O({
353
+ const o = D({
326
354
  code: n.collection,
327
355
  localState: t.localState,
328
356
  rootState: t.rootState,
@@ -333,40 +361,40 @@ const ct = ({
333
361
  if (!Array.isArray(o))
334
362
  return;
335
363
  const a = n.collection.split(".").pop(), r = n.itemName || (a ? a + "Item" : "item");
336
- return o.map((s, d) => ({
364
+ return o.map((c, d) => ({
337
365
  context: {
338
366
  ...t,
339
367
  localState: {
340
368
  ...t.localState,
341
369
  $index: d,
342
- $item: s,
343
- [r]: s,
370
+ $item: c,
371
+ [r]: c,
344
372
  [`$${r}Index`]: d
345
373
  }
346
374
  },
347
375
  block: i
348
376
  }));
349
- }, st = (e, t) => {
377
+ }, gt = (e, t) => {
350
378
  var n;
351
379
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
352
380
  builderLinkComponent: t
353
381
  } : {};
354
- }, dt = (e, t) => {
382
+ }, bt = (e, t) => {
355
383
  var n;
356
384
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
357
385
  builderComponents: t
358
386
  } : {};
359
- }, ut = (e, t) => {
387
+ }, yt = (e, t) => {
360
388
  var n;
361
389
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
362
390
  builderBlock: t
363
391
  } : {};
364
- }, mt = (e, t) => {
392
+ }, pt = (e, t) => {
365
393
  var n;
366
394
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
367
395
  builderContext: t
368
396
  } : {};
369
- }, Te = {
397
+ }, Ee = {
370
398
  small: {
371
399
  min: 320,
372
400
  default: 321,
@@ -382,11 +410,11 @@ const ct = ({
382
410
  default: 991,
383
411
  max: 1200
384
412
  }
385
- }, he = (e, t = Te) => `@media (max-width: ${t[e].max}px)`, Re = ({
413
+ }, he = (e, t = Ee) => `@media (max-width: ${t[e].max}px)`, Pe = ({
386
414
  small: e,
387
415
  medium: t
388
416
  }) => {
389
- const n = ae(Te);
417
+ const n = ae(Ee);
390
418
  if (!e || !t)
391
419
  return n;
392
420
  const i = Math.floor(e / 2);
@@ -419,71 +447,57 @@ function Q(e) {
419
447
  }
420
448
  );
421
449
  }
422
- function ft(e) {
450
+ function vt(e) {
423
451
  const t = function() {
424
- const o = Y({
425
- block: e.block,
426
- localState: e.context.localState,
427
- rootState: e.context.rootState,
428
- rootSetState: e.context.rootSetState,
429
- context: e.context.context,
430
- shouldEvaluateBindings: !0
431
- });
452
+ const o = e.block;
432
453
  return z(o.hide) ? !o.hide : z(o.show) ? o.show : !0;
433
454
  }, n = function() {
434
- var x, y, p;
435
- const o = Y({
436
- block: e.block,
437
- localState: e.context.localState,
438
- rootState: e.context.rootState,
439
- rootSetState: e.context.rootSetState,
440
- context: e.context.context,
441
- shouldEvaluateBindings: !0
442
- }), a = o.responsiveStyles, r = e.context.content, c = Re(
443
- ((x = r == null ? void 0 : r.meta) == null ? void 0 : x.breakpoints) || {}
444
- ), s = a == null ? void 0 : a.large, d = a == null ? void 0 : a.medium, m = a == null ? void 0 : a.small, u = o.id;
445
- if (!u)
455
+ var b, y, w;
456
+ const o = e.block, a = o.responsiveStyles, r = e.context.content, s = Pe(
457
+ ((b = r == null ? void 0 : r.meta) == null ? void 0 : b.breakpoints) || {}
458
+ ), c = a == null ? void 0 : a.large, d = a == null ? void 0 : a.medium, u = a == null ? void 0 : a.small, m = o.id;
459
+ if (!m)
446
460
  return "";
447
- const h = s ? _({
448
- className: u,
449
- styles: s
450
- }) : "", w = d ? _({
451
- className: u,
461
+ const p = c ? M({
462
+ className: m,
463
+ styles: c
464
+ }) : "", v = d ? M({
465
+ className: m,
452
466
  styles: d,
453
467
  mediaQuery: he(
454
468
  "medium",
455
- c
469
+ s
456
470
  )
457
- }) : "", I = m ? _({
458
- className: u,
459
- styles: m,
471
+ }) : "", S = u ? M({
472
+ className: m,
473
+ styles: u,
460
474
  mediaQuery: he(
461
475
  "small",
462
- c
476
+ s
463
477
  )
464
- }) : "", b = o.animations && o.animations.find((T) => T.trigger === "hover");
465
- let P = "";
466
- if (b) {
467
- const T = ((p = (y = b.steps) == null ? void 0 : y[1]) == null ? void 0 : p.styles) || {};
468
- P = _({
469
- className: `${u}:hover`,
478
+ }) : "", f = o.animations && o.animations.find((E) => E.trigger === "hover");
479
+ let C = "";
480
+ if (f) {
481
+ const E = ((w = (y = f.steps) == null ? void 0 : y[1]) == null ? void 0 : w.styles) || {};
482
+ C = M({
483
+ className: `${m}:hover`,
470
484
  styles: {
471
- ...T,
472
- transition: `all ${b.duration}s ${re(
473
- b.easing
485
+ ...E,
486
+ transition: `all ${f.duration}s ${re(
487
+ f.easing
474
488
  )}`,
475
- transitionDelay: b.delay ? `${b.delay}s` : "0s"
489
+ transitionDelay: f.delay ? `${f.delay}s` : "0s"
476
490
  }
477
491
  }) || "";
478
492
  }
479
493
  return [
480
- h,
481
- w,
482
- I,
483
- P
494
+ p,
495
+ v,
496
+ S,
497
+ C
484
498
  ].join(" ");
485
499
  };
486
- return /* @__PURE__ */ l(C, { children: n() && t() ? /* @__PURE__ */ l(C, { children: /* @__PURE__ */ l(
500
+ return /* @__PURE__ */ l(T, { children: n() && t() ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(
487
501
  Q,
488
502
  {
489
503
  id: "builderio-block",
@@ -492,10 +506,10 @@ function ft(e) {
492
506
  }
493
507
  ) }) : null });
494
508
  }
495
- function ht(e) {
509
+ function xt(e) {
496
510
  return e.charAt(0).toUpperCase() + e.slice(1);
497
511
  }
498
- const gt = (e) => `on${ht(e)}`, bt = (e, t) => (n) => O({
512
+ const St = (e) => `on${xt(e)}`, kt = (e, t) => (n) => D({
499
513
  code: e,
500
514
  context: t.context,
501
515
  localState: t.localState,
@@ -505,16 +519,16 @@ const gt = (e) => `on${ht(e)}`, bt = (e, t) => (n) => O({
505
519
  isExpression: !1,
506
520
  enableCache: !0
507
521
  });
508
- function Ee(e) {
522
+ function Be(e) {
509
523
  var i;
510
524
  const t = {}, n = (i = e.block.actions) != null ? i : {};
511
525
  for (const o in n) {
512
526
  if (!n.hasOwnProperty(o))
513
527
  continue;
514
528
  const a = n[o];
515
- let r = gt(o);
529
+ let r = St(o);
516
530
  if (e.stripPrefix)
517
- switch (D) {
531
+ switch ($) {
518
532
  case "vue":
519
533
  r = r.replace("v-on:", "");
520
534
  break;
@@ -522,16 +536,16 @@ function Ee(e) {
522
536
  r = r.replace("on:", "");
523
537
  break;
524
538
  }
525
- t[r] = bt(a, e);
539
+ t[r] = kt(a, e);
526
540
  }
527
541
  return t;
528
542
  }
529
- function yt({
543
+ function Ct({
530
544
  properties: e
531
545
  }) {
532
546
  return e;
533
547
  }
534
- const xt = (e) => ({
548
+ const wt = (e) => ({
535
549
  href: e.href
536
550
  });
537
551
  function ce({
@@ -540,22 +554,22 @@ function ce({
540
554
  }) {
541
555
  var i;
542
556
  const n = {
543
- ...xt(e),
557
+ ...wt(e),
544
558
  ...e.properties,
545
559
  "builder-id": e.id,
546
- style: rt({
560
+ style: mt({
547
561
  block: e,
548
562
  context: t
549
563
  }),
550
- [M()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
564
+ [U()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
551
565
  };
552
- return yt({
566
+ return Ct({
553
567
  properties: n,
554
568
  context: t,
555
569
  block: e
556
570
  });
557
571
  }
558
- function St(e) {
572
+ function It(e) {
559
573
  return /* @__PURE__ */ l(
560
574
  oe,
561
575
  {
@@ -564,7 +578,7 @@ function St(e) {
564
578
  block: e.block,
565
579
  context: e.context
566
580
  }),
567
- actionAttributes: Ee({
581
+ actionAttributes: Be({
568
582
  block: e.block,
569
583
  rootState: e.context.rootState,
570
584
  rootSetState: e.context.rootSetState,
@@ -576,14 +590,14 @@ function St(e) {
576
590
  }
577
591
  );
578
592
  }
579
- function vt(e) {
593
+ function Tt(e) {
580
594
  function t() {
581
595
  return e.includeBlockProps ? {
582
596
  ...ce({
583
597
  block: e.block,
584
598
  context: e.context
585
599
  }),
586
- ...Ee({
600
+ ...Be({
587
601
  block: e.block,
588
602
  rootState: e.context.rootState,
589
603
  rootSetState: e.context.rootSetState,
@@ -594,7 +608,7 @@ function vt(e) {
594
608
  }
595
609
  return /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
596
610
  }
597
- const pt = ({
611
+ const Rt = ({
598
612
  componentOptions: e,
599
613
  builderBlock: t,
600
614
  context: n,
@@ -603,7 +617,7 @@ const pt = ({
603
617
  isInteractive: a,
604
618
  contextValue: r
605
619
  }) => {
606
- const c = {
620
+ const s = {
607
621
  ...e,
608
622
  /**
609
623
  * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
@@ -622,15 +636,15 @@ const pt = ({
622
636
  context: n,
623
637
  wrapperProps: e,
624
638
  includeBlockProps: o
625
- } : c;
639
+ } : s;
626
640
  };
627
641
  function ge(e) {
628
642
  var n;
629
- const t = e.isInteractive ? vt : e.componentRef;
630
- return /* @__PURE__ */ l(C, { children: e.componentRef ? /* @__PURE__ */ l(C, { children: /* @__PURE__ */ l(
643
+ const t = e.isInteractive ? Tt : e.componentRef;
644
+ return /* @__PURE__ */ l(T, { children: e.componentRef ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(
631
645
  t,
632
646
  {
633
- ...pt({
647
+ ...Rt({
634
648
  componentOptions: e.componentOptions,
635
649
  builderBlock: e.builderBlock,
636
650
  context: e.context,
@@ -653,7 +667,7 @@ function ge(e) {
653
667
  }
654
668
  ) }) : null });
655
669
  }
656
- function kt(e) {
670
+ function be(e) {
657
671
  const t = e.repeatContext;
658
672
  return /* @__PURE__ */ l(
659
673
  G,
@@ -666,21 +680,20 @@ function kt(e) {
666
680
  );
667
681
  }
668
682
  function G(e) {
669
- var s, d, m;
683
+ var d, u, m, p;
670
684
  const t = function() {
671
- return ct({
672
- block: e.block,
673
- context: e.context,
674
- registeredComponents: e.registeredComponents
675
- });
676
- }, n = function() {
677
- return lt({
685
+ return ht({
678
686
  block: e.block,
679
687
  context: e.context
680
688
  });
689
+ }, n = {
690
+ value: null,
691
+ update: !1
681
692
  }, i = function() {
682
- var h;
683
- return (h = e.block.repeat) != null && h.collection ? e.block : Y({
693
+ var f;
694
+ if (n.value && !n.update && !Ce())
695
+ return n.value;
696
+ const S = (f = e.block.repeat) != null && f.collection ? e.block : st({
684
697
  block: e.block,
685
698
  localState: e.context.localState,
686
699
  rootState: e.context.rootState,
@@ -688,30 +701,36 @@ function G(e) {
688
701
  context: e.context.context,
689
702
  shouldEvaluateBindings: !0
690
703
  });
704
+ return n.value = S, n.update = !1, S;
691
705
  }, o = function() {
692
- var w;
693
- return e.block.tagName === "a" || ((w = i().properties) == null ? void 0 : w.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
706
+ return ft({
707
+ block: i(),
708
+ registeredComponents: e.registeredComponents
709
+ });
694
710
  }, a = function() {
695
- var I, b;
696
- if ((I = e.block.repeat) != null && I.collection)
697
- return !!((b = n()) != null && b.length);
698
- const h = "hide" in i() ? i().hide : !1;
699
- return ("show" in i() ? i().show : !0) && !h;
711
+ var f;
712
+ return e.block.tagName === "a" || ((f = i().properties) == null ? void 0 : f.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
700
713
  }, r = function() {
701
- var w, I;
702
- return !((w = t()) != null && w.component) && !n() ? (I = i().children) != null ? I : [] : [];
714
+ var C, b;
715
+ if ((C = e.block.repeat) != null && C.collection)
716
+ return !!((b = t()) != null && b.length);
717
+ const S = "hide" in i() ? i().hide : !1;
718
+ return ("show" in i() ? i().show : !0) && !S;
719
+ }, s = function() {
720
+ var f, C;
721
+ return !((f = o()) != null && f.component) && !t() ? (C = i().children) != null ? C : [] : [];
703
722
  }, c = function() {
704
- var h, w, I, b;
723
+ var S, f, C, b;
705
724
  return {
706
- blockChildren: (h = i().children) != null ? h : [],
707
- componentRef: (w = t()) == null ? void 0 : w.component,
725
+ blockChildren: (S = i().children) != null ? S : [],
726
+ componentRef: (f = o()) == null ? void 0 : f.component,
708
727
  componentOptions: {
709
- ...Je(i()),
710
- ...ut(t(), i()),
711
- ...mt(t(), e.context),
712
- ...st(t(), e.linkComponent),
713
- ...dt(
714
- t(),
728
+ ...Qe(i()),
729
+ ...yt(o(), i()),
730
+ ...pt(o(), e.context),
731
+ ...gt(o(), e.linkComponent),
732
+ ...bt(
733
+ o(),
715
734
  e.registeredComponents
716
735
  )
717
736
  },
@@ -719,13 +738,22 @@ function G(e) {
719
738
  linkComponent: e.linkComponent,
720
739
  registeredComponents: e.registeredComponents,
721
740
  builderBlock: i(),
722
- includeBlockProps: ((I = t()) == null ? void 0 : I.noWrap) === !0,
723
- isInteractive: !((b = t()) != null && b.isRSC && D === "rsc")
741
+ includeBlockProps: ((C = o()) == null ? void 0 : C.noWrap) === !0,
742
+ isInteractive: !((b = o()) != null && b.isRSC && $ === "rsc")
724
743
  };
725
744
  };
726
- return /* @__PURE__ */ l(C, { children: a() ? /* @__PURE__ */ E(C, { children: [
727
- /* @__PURE__ */ l(ft, { block: e.block, context: e.context }),
728
- (s = t()) != null && s.noWrap ? /* @__PURE__ */ l(C, { children: /* @__PURE__ */ l(
745
+ return /* @__PURE__ */ l(T, { children: r() ? /* @__PURE__ */ P(T, { children: [
746
+ /* @__PURE__ */ l(vt, { block: i(), context: e.context }),
747
+ (d = o()) != null && d.noWrap ? t() ? /* @__PURE__ */ l(T, { children: (p = t()) == null ? void 0 : p.map((v, S) => /* @__PURE__ */ l(
748
+ be,
749
+ {
750
+ repeatContext: v.context,
751
+ block: v.block,
752
+ registeredComponents: e.registeredComponents,
753
+ linkComponent: e.linkComponent
754
+ },
755
+ S
756
+ )) }) : /* @__PURE__ */ l(
729
757
  ge,
730
758
  {
731
759
  componentRef: c().componentRef,
@@ -738,19 +766,19 @@ function G(e) {
738
766
  includeBlockProps: c().includeBlockProps,
739
767
  isInteractive: c().isInteractive
740
768
  }
741
- ) }) : /* @__PURE__ */ l(C, { children: n() ? /* @__PURE__ */ l(C, { children: (m = n()) == null ? void 0 : m.map((u, h) => /* @__PURE__ */ l(
742
- kt,
769
+ ) : /* @__PURE__ */ l(T, { children: t() ? /* @__PURE__ */ l(T, { children: (m = t()) == null ? void 0 : m.map((v, S) => /* @__PURE__ */ l(
770
+ be,
743
771
  {
744
- repeatContext: u.context,
745
- block: u.block,
772
+ repeatContext: v.context,
773
+ block: v.block,
746
774
  registeredComponents: e.registeredComponents,
747
775
  linkComponent: e.linkComponent
748
776
  },
749
- h
750
- )) }) : /* @__PURE__ */ E(
751
- St,
777
+ S
778
+ )) }) : /* @__PURE__ */ P(
779
+ It,
752
780
  {
753
- Wrapper: o(),
781
+ Wrapper: a(),
754
782
  block: i(),
755
783
  context: e.context,
756
784
  children: [
@@ -768,29 +796,30 @@ function G(e) {
768
796
  isInteractive: c().isInteractive
769
797
  }
770
798
  ),
771
- (d = r()) == null ? void 0 : d.map((u) => /* @__PURE__ */ l(
799
+ (u = s()) == null ? void 0 : u.map((v) => /* @__PURE__ */ l(
772
800
  G,
773
801
  {
774
- block: u,
802
+ block: v,
775
803
  registeredComponents: e.registeredComponents,
776
804
  linkComponent: e.linkComponent,
777
805
  context: e.context
778
806
  },
779
- u.id
807
+ v.id
780
808
  ))
781
809
  ]
782
810
  }
783
811
  ) })
784
812
  ] }) : null });
785
813
  }
786
- function Ct(e) {
787
- function t() {
788
- var o;
789
- return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
790
- }
814
+ function Et(e) {
815
+ const t = J(null);
791
816
  function n() {
792
- var o, a;
793
- V() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
817
+ var a;
818
+ return "builder-blocks" + ((a = e.blocks) != null && a.length ? "" : " no-blocks");
819
+ }
820
+ function i() {
821
+ var a, r;
822
+ V() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
794
823
  {
795
824
  type: "builder.clickEmptyBlocks",
796
825
  data: {
@@ -801,9 +830,9 @@ function Ct(e) {
801
830
  "*"
802
831
  ));
803
832
  }
804
- function i() {
805
- var o, a;
806
- V() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
833
+ function o() {
834
+ var a, r;
835
+ V() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
807
836
  {
808
837
  type: "builder.hoverEmptyBlocks",
809
838
  data: {
@@ -814,22 +843,24 @@ function Ct(e) {
814
843
  "*"
815
844
  ));
816
845
  }
817
- return /* @__PURE__ */ E(C, { children: [
846
+ return R(() => {
847
+ }, []), /* @__PURE__ */ P(T, { children: [
818
848
  /* @__PURE__ */ l(
819
849
  e.BlocksWrapper,
820
850
  {
821
- className: t() + " props-blocks-wrapper-7cd1560e",
851
+ ref: t,
852
+ className: n() + " props-blocks-wrapper-51ef31b4",
822
853
  "builder-path": e.path,
823
854
  "builder-parent-id": e.parent,
824
855
  style: e.styleProp,
825
- onClick: (o) => n(),
826
- onMouseEnter: (o) => i(),
827
- onKeyPress: (o) => n(),
856
+ onClick: (a) => i(),
857
+ onMouseEnter: (a) => o(),
858
+ onKeyPress: (a) => i(),
828
859
  ...e.BlocksWrapperProps,
829
860
  children: e.children
830
861
  }
831
862
  ),
832
- /* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-7cd1560e {
863
+ /* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-51ef31b4 {
833
864
  display: flex;
834
865
  flex-direction: column;
835
866
  align-items: stretch;
@@ -839,7 +870,7 @@ function Ct(e) {
839
870
  function le(e) {
840
871
  var t, n, i;
841
872
  return /* @__PURE__ */ l(
842
- Ct,
873
+ Et,
843
874
  {
844
875
  blocks: e.blocks,
845
876
  parent: e.parent,
@@ -847,7 +878,7 @@ function le(e) {
847
878
  styleProp: e.styleProp,
848
879
  BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
849
880
  BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
850
- children: e.blocks ? /* @__PURE__ */ l(C, { children: (i = e.blocks) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
881
+ children: e.blocks ? /* @__PURE__ */ l(T, { children: (i = e.blocks) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
851
882
  G,
852
883
  {
853
884
  block: o,
@@ -860,71 +891,71 @@ function le(e) {
860
891
  }
861
892
  );
862
893
  }
863
- const wt = (e) => `builder-columns ${e}-breakpoints`;
864
- function It(e) {
865
- var b, P;
894
+ const Pt = (e) => `builder-columns ${e}-breakpoints`;
895
+ function Bt(e) {
896
+ var f, C;
866
897
  const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], i = e.stackColumnsAt || "tablet", o = function(y) {
867
898
  return y.link ? e.builderLinkComponent || "a" : "div";
868
899
  }, a = function(y) {
869
- var p;
870
- return ((p = n[y]) == null ? void 0 : p.width) || 100 / n.length;
900
+ var w;
901
+ return ((w = n[y]) == null ? void 0 : w.width) || 100 / n.length;
871
902
  }, r = function(y) {
872
- const p = a(y), T = t * (n.length - 1) * (p / 100);
873
- return `calc(${p}% - ${T}px)`;
874
- }, c = function({
903
+ const w = a(y), E = t * (n.length - 1) * (w / 100);
904
+ return `calc(${w}% - ${E}px)`;
905
+ }, s = function({
875
906
  stackedStyle: y,
876
- desktopStyle: p
907
+ desktopStyle: w
877
908
  }) {
878
- return i === "tablet" ? y : p;
879
- }, s = function({
909
+ return i === "tablet" ? y : w;
910
+ }, c = function({
880
911
  stackedStyle: y,
881
- desktopStyle: p
912
+ desktopStyle: w
882
913
  }) {
883
- return i === "never" ? p : y;
884
- }, d = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", m = function() {
914
+ return i === "never" ? w : y;
915
+ }, d = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", u = function() {
885
916
  return {
886
917
  "--flex-dir": d,
887
- "--flex-dir-tablet": c({
918
+ "--flex-dir-tablet": s({
888
919
  stackedStyle: d,
889
920
  desktopStyle: "row"
890
921
  })
891
922
  };
892
- }, u = function(y) {
893
- const p = y === 0 ? 0 : t, T = r(y), W = `${p}px`, j = "100%", H = 0;
923
+ }, m = function(y) {
924
+ const w = y === 0 ? 0 : t, E = r(y), W = `${w}px`, H = "100%", _ = 0;
894
925
  return {
895
926
  ...{
896
927
  display: "flex",
897
928
  flexDirection: "column",
898
929
  alignItems: "stretch"
899
930
  },
900
- width: T,
931
+ width: E,
901
932
  ["marginLeft"]: W,
902
- "--column-width-mobile": s({
903
- stackedStyle: j,
904
- desktopStyle: T
905
- }),
906
- "--column-margin-left-mobile": s({
933
+ "--column-width-mobile": c({
907
934
  stackedStyle: H,
908
- desktopStyle: W
935
+ desktopStyle: E
909
936
  }),
910
- "--column-width-tablet": c({
911
- stackedStyle: j,
912
- desktopStyle: T
937
+ "--column-margin-left-mobile": c({
938
+ stackedStyle: _,
939
+ desktopStyle: W
913
940
  }),
914
- "--column-margin-left-tablet": c({
941
+ "--column-width-tablet": s({
915
942
  stackedStyle: H,
943
+ desktopStyle: E
944
+ }),
945
+ "--column-margin-left-tablet": s({
946
+ stackedStyle: _,
916
947
  desktopStyle: W
917
948
  })
918
949
  };
919
- }, h = function(y) {
920
- var T, W;
921
- return Re(
922
- ((W = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : W.breakpoints) || {}
950
+ }, p = function(y) {
951
+ var E, W;
952
+ return Pe(
953
+ ((W = (E = e.builderContext.content) == null ? void 0 : E.meta) == null ? void 0 : W.breakpoints) || {}
923
954
  )[y].max;
924
- }, w = function() {
955
+ }, v = function() {
925
956
  const y = `.${e.builderBlock.id}-breakpoints > .builder-column`;
926
957
  return `
927
- @media (max-width: ${h("medium")}px) {
958
+ @media (max-width: ${p("medium")}px) {
928
959
  .${e.builderBlock.id}-breakpoints {
929
960
  flex-direction: var(--flex-dir-tablet);
930
961
  align-items: stretch;
@@ -936,7 +967,7 @@ function It(e) {
936
967
  }
937
968
  }
938
969
 
939
- @media (max-width: ${h("small")}px) {
970
+ @media (max-width: ${p("small")}px) {
940
971
  .${e.builderBlock.id}-breakpoints {
941
972
  flex-direction: var(--flex-dir);
942
973
  align-items: stretch;
@@ -948,36 +979,36 @@ function It(e) {
948
979
  }
949
980
  },
950
981
  `;
951
- }, I = function(y, p) {
982
+ }, S = function(y, w) {
952
983
  return {
953
984
  ...y.link ? {
954
985
  href: y.link
955
986
  } : {},
956
- [M()]: "builder-column",
957
- style: Ie(u(p))
987
+ [U()]: "builder-column",
988
+ style: Re(m(w))
958
989
  };
959
990
  };
960
- return /* @__PURE__ */ E(C, { children: [
961
- /* @__PURE__ */ E(
991
+ return /* @__PURE__ */ P(T, { children: [
992
+ /* @__PURE__ */ P(
962
993
  "div",
963
994
  {
964
- className: wt((b = e.builderBlock) == null ? void 0 : b.id) + " div-2cd13691",
965
- style: m(),
995
+ className: Pt((f = e.builderBlock) == null ? void 0 : f.id) + " div-2cd13691",
996
+ style: u(),
966
997
  children: [
967
998
  /* @__PURE__ */ l(
968
999
  Q,
969
1000
  {
970
1001
  id: "builderio-columns",
971
- styles: w(),
1002
+ styles: v(),
972
1003
  nonce: e.builderContext.nonce
973
1004
  }
974
1005
  ),
975
- (P = e.columns) == null ? void 0 : P.map((x, y) => /* @__PURE__ */ l(
1006
+ (C = e.columns) == null ? void 0 : C.map((b, y) => /* @__PURE__ */ l(
976
1007
  oe,
977
1008
  {
978
- TagName: o(x),
1009
+ TagName: o(b),
979
1010
  actionAttributes: {},
980
- attributes: I(x, y),
1011
+ attributes: S(b, y),
981
1012
  children: /* @__PURE__ */ l(
982
1013
  le,
983
1014
  {
@@ -989,7 +1020,7 @@ function It(e) {
989
1020
  context: e.builderContext,
990
1021
  registeredComponents: e.builderComponents,
991
1022
  linkComponent: e.builderLinkComponent,
992
- blocks: x.blocks
1023
+ blocks: b.blocks
993
1024
  }
994
1025
  )
995
1026
  },
@@ -1004,25 +1035,25 @@ function It(e) {
1004
1035
  }` })
1005
1036
  ] });
1006
1037
  }
1007
- function Tt(e) {
1038
+ function Wt(e) {
1008
1039
  return /* @__PURE__ */ l("span", { children: e.children });
1009
1040
  }
1010
- function be(e) {
1041
+ function ye(e) {
1011
1042
  return e.replace(/http(s)?:/, "");
1012
1043
  }
1013
- function Rt(e = "", t, n) {
1044
+ function At(e = "", t, n) {
1014
1045
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
1015
1046
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
1016
1047
  }
1017
- function Et(e, t) {
1048
+ function Nt(e, t) {
1018
1049
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1019
1050
  return e;
1020
1051
  if (t === "master")
1021
- return be(e);
1052
+ return ye(e);
1022
1053
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1023
1054
  if (n) {
1024
1055
  const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
1025
- return be(`${i[0]}_${a}${o}`);
1056
+ return ye(`${i[0]}_${a}${o}`);
1026
1057
  }
1027
1058
  return null;
1028
1059
  }
@@ -1033,46 +1064,46 @@ function te(e) {
1033
1064
  if (e.match(/builder\.io/)) {
1034
1065
  let n = e;
1035
1066
  const i = Number(e.split("?width=")[1]);
1036
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Rt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1067
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${At(e, "width", o)} ${o}w`).concat([n]).join(", ");
1037
1068
  }
1038
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Et(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1069
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Nt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1039
1070
  }
1040
- function Pt(e) {
1041
- var o, a, r, c, s, d;
1071
+ function Vt(e) {
1072
+ var o, a, r, s, c, d;
1042
1073
  function t() {
1043
- var h;
1044
- const u = e.image || e.src;
1045
- if (!u || // We can auto add srcset for cdn.builder.io and shopify
1074
+ var p;
1075
+ const m = e.image || e.src;
1076
+ if (!m || // We can auto add srcset for cdn.builder.io and shopify
1046
1077
  // images, otherwise you can supply this prop manually
1047
- !(u.match(/builder\.io/) || u.match(/cdn\.shopify\.com/)))
1078
+ !(m.match(/builder\.io/) || m.match(/cdn\.shopify\.com/)))
1048
1079
  return e.srcset;
1049
1080
  if (!e.noWebp) {
1050
- if (e.srcset && ((h = e.image) != null && h.includes("builder.io/api/v1/image"))) {
1081
+ if (e.srcset && ((p = e.image) != null && p.includes("builder.io/api/v1/image"))) {
1051
1082
  if (!e.srcset.includes(e.image.split("?")[0]))
1052
- return console.debug("Removed given srcset"), te(u);
1083
+ return console.debug("Removed given srcset"), te(m);
1053
1084
  } else if (e.image && !e.srcset)
1054
- return te(u);
1055
- return te(u);
1085
+ return te(m);
1086
+ return te(m);
1056
1087
  }
1057
1088
  }
1058
1089
  function n() {
1059
- var m;
1060
- return (m = t == null ? void 0 : t()) != null && m.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
1090
+ var u;
1091
+ return (u = t == null ? void 0 : t()) != null && u.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
1061
1092
  }
1062
1093
  function i() {
1063
- const m = {
1094
+ const u = {
1064
1095
  position: "absolute",
1065
1096
  height: "100%",
1066
1097
  width: "100%",
1067
1098
  left: "0px",
1068
1099
  top: "0px"
1069
1100
  };
1070
- return e.aspectRatio ? m : void 0;
1101
+ return e.aspectRatio ? u : void 0;
1071
1102
  }
1072
1103
  return R(() => {
1073
- }, []), /* @__PURE__ */ E(C, { children: [
1074
- /* @__PURE__ */ E(C, { children: [
1075
- /* @__PURE__ */ E("picture", { children: [
1104
+ }, []), /* @__PURE__ */ P(T, { children: [
1105
+ /* @__PURE__ */ P(T, { children: [
1106
+ /* @__PURE__ */ P("picture", { children: [
1076
1107
  n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
1077
1108
  /* @__PURE__ */ l(
1078
1109
  "img",
@@ -1102,8 +1133,8 @@ function Pt(e) {
1102
1133
  }
1103
1134
  }
1104
1135
  ) : null,
1105
- (c = (r = e.builderBlock) == null ? void 0 : r.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(C, { children: e.children }) : null,
1106
- !e.fitContent && ((d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length) ? /* @__PURE__ */ l("div", { className: "div-2d6925f2-2", children: e.children }) : null
1136
+ (s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(T, { children: e.children }) : null,
1137
+ !e.fitContent && ((d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length) ? /* @__PURE__ */ l("div", { className: "div-2d6925f2-2", children: e.children }) : null
1107
1138
  ] }),
1108
1139
  /* @__PURE__ */ l("style", { children: `.img-2d6925f2 {
1109
1140
  opacity: 1;
@@ -1124,7 +1155,7 @@ function Pt(e) {
1124
1155
  }` })
1125
1156
  ] });
1126
1157
  }
1127
- function Bt(e) {
1158
+ function $t(e) {
1128
1159
  return /* @__PURE__ */ l(
1129
1160
  "section",
1130
1161
  {
@@ -1145,7 +1176,7 @@ function Bt(e) {
1145
1176
  }
1146
1177
  );
1147
1178
  }
1148
- const Wt = {
1179
+ const Ft = {
1149
1180
  name: "Core:Button",
1150
1181
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1151
1182
  defaultStyles: {
@@ -1181,7 +1212,7 @@ const Wt = {
1181
1212
  shouldReceiveBuilderProps: {
1182
1213
  builderLinkComponent: !0
1183
1214
  }
1184
- }, Nt = {
1215
+ }, Lt = {
1185
1216
  // TODO: ways to statically preprocess JSON for references, functions, etc
1186
1217
  name: "Columns",
1187
1218
  isRSC: !0,
@@ -1360,7 +1391,7 @@ const Wt = {
1360
1391
  });
1361
1392
  }
1362
1393
  const n = e.get("columns");
1363
- Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((c, s) => c + s.get("width"), 0) !== 100) && t();
1394
+ Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((s, c) => s + c.get("width"), 0) !== 100) && t();
1364
1395
  }
1365
1396
  }, {
1366
1397
  name: "space",
@@ -1388,13 +1419,13 @@ const Wt = {
1388
1419
  builderComponents: !0,
1389
1420
  builderLinkComponent: !0
1390
1421
  }
1391
- }, At = {
1422
+ }, Ot = {
1392
1423
  name: "Fragment",
1393
1424
  static: !0,
1394
1425
  hidden: !0,
1395
1426
  canHaveChildren: !0,
1396
1427
  noWrap: !0
1397
- }, Vt = {
1428
+ }, Dt = {
1398
1429
  name: "Image",
1399
1430
  static: !0,
1400
1431
  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",
@@ -1414,17 +1445,17 @@ const Wt = {
1414
1445
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1415
1446
  onChange: (e) => {
1416
1447
  e.delete("srcset"), e.delete("noWebp");
1417
- function n(r, c = 6e4) {
1418
- return new Promise((s, d) => {
1419
- const m = document.createElement("img");
1420
- let u = !1;
1421
- m.onload = () => {
1422
- u = !0, s(m);
1423
- }, m.addEventListener("error", (h) => {
1424
- console.warn("Image load failed", h.error), d(h.error);
1425
- }), m.src = r, setTimeout(() => {
1426
- u || d(new Error("Image load timed out"));
1427
- }, c);
1448
+ function n(r, s = 6e4) {
1449
+ return new Promise((c, d) => {
1450
+ const u = document.createElement("img");
1451
+ let m = !1;
1452
+ u.onload = () => {
1453
+ m = !0, c(u);
1454
+ }, u.addEventListener("error", (p) => {
1455
+ console.warn("Image load failed", p.error), d(p.error);
1456
+ }), u.src = r, setTimeout(() => {
1457
+ m || d(new Error("Image load timed out"));
1458
+ }, s);
1428
1459
  });
1429
1460
  }
1430
1461
  function i(r) {
@@ -1435,8 +1466,8 @@ const Wt = {
1435
1466
  r.type.includes("svg") && e.set("noWebp", !0);
1436
1467
  }), o && (!a || a === 0.7041))
1437
1468
  return n(o).then((r) => {
1438
- const c = e.get("aspectRatio");
1439
- e.get("image") === o && (!c || c === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
1469
+ const s = e.get("aspectRatio");
1470
+ 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));
1440
1471
  });
1441
1472
  }
1442
1473
  }, {
@@ -1502,7 +1533,7 @@ const Wt = {
1502
1533
  shouldReceiveBuilderProps: {
1503
1534
  builderBlock: !0
1504
1535
  }
1505
- }, $t = {
1536
+ }, Ht = {
1506
1537
  name: "Core:Section",
1507
1538
  static: !0,
1508
1539
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1541,7 +1572,7 @@ const Wt = {
1541
1572
  }
1542
1573
  }
1543
1574
  }]
1544
- }, Ft = {
1575
+ }, _t = {
1545
1576
  name: "Slot",
1546
1577
  isRSC: !0,
1547
1578
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1555,10 +1586,11 @@ const Wt = {
1555
1586
  defaultValue: "children"
1556
1587
  }],
1557
1588
  shouldReceiveBuilderProps: {
1558
- builderContext: !0
1589
+ builderContext: !0,
1590
+ builderComponents: !0
1559
1591
  }
1560
1592
  };
1561
- function Lt(e) {
1593
+ function Ut(e) {
1562
1594
  var t, n, i;
1563
1595
  return /* @__PURE__ */ l(
1564
1596
  "div",
@@ -1575,13 +1607,14 @@ function Lt(e) {
1575
1607
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
1576
1608
  path: `symbol.data.${e.name}`,
1577
1609
  context: e.builderContext,
1610
+ registeredComponents: e.builderComponents,
1578
1611
  blocks: (i = e.builderContext.rootState) == null ? void 0 : i[e.name]
1579
1612
  }
1580
1613
  )
1581
1614
  }
1582
1615
  );
1583
1616
  }
1584
- const Ot = {
1617
+ const jt = {
1585
1618
  name: "Symbol",
1586
1619
  noWrap: !0,
1587
1620
  static: !0,
@@ -1620,7 +1653,7 @@ const Ot = {
1620
1653
  builderComponents: !0,
1621
1654
  builderLinkComponent: !0
1622
1655
  }
1623
- }, Dt = {
1656
+ }, Mt = {
1624
1657
  shouldReceiveBuilderProps: {
1625
1658
  builderBlock: !1,
1626
1659
  builderContext: !0
@@ -1643,27 +1676,27 @@ const Ot = {
1643
1676
  textAlign: "center"
1644
1677
  }
1645
1678
  };
1646
- function jt(e) {
1679
+ function Kt(e) {
1647
1680
  return /* @__PURE__ */ l(
1648
1681
  "div",
1649
1682
  {
1650
1683
  className: "builder-text",
1651
1684
  dangerouslySetInnerHTML: { __html: function() {
1652
- var s;
1685
+ var c;
1653
1686
  const i = e.builderContext, {
1654
1687
  context: o,
1655
1688
  localState: a,
1656
1689
  rootState: r,
1657
- rootSetState: c
1690
+ rootSetState: s
1658
1691
  } = i;
1659
- return String(((s = e.text) == null ? void 0 : s.toString()) || "").replace(
1692
+ return String(((c = e.text) == null ? void 0 : c.toString()) || "").replace(
1660
1693
  /{{([^}]+)}}/g,
1661
- (d, m) => O({
1662
- code: m,
1694
+ (d, u) => D({
1695
+ code: u,
1663
1696
  context: o,
1664
1697
  localState: a,
1665
1698
  rootState: r,
1666
- rootSetState: c,
1699
+ rootSetState: s,
1667
1700
  enableCache: !1
1668
1701
  })
1669
1702
  );
@@ -1674,7 +1707,7 @@ function jt(e) {
1674
1707
  }
1675
1708
  );
1676
1709
  }
1677
- const Ht = {
1710
+ const zt = {
1678
1711
  name: "Custom Code",
1679
1712
  static: !0,
1680
1713
  requiredPermissions: ["editCode"],
@@ -1697,21 +1730,21 @@ const Ht = {
1697
1730
  advanced: !0
1698
1731
  }]
1699
1732
  };
1700
- function Mt(e) {
1701
- const t = ie(null), [n, i] = A(() => []), [o, a] = A(() => []);
1733
+ function qt(e) {
1734
+ const t = J(null), [n, i] = N(() => []), [o, a] = N(() => []);
1702
1735
  return R(() => {
1703
- var c;
1704
- if (!((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
1736
+ var s;
1737
+ if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
1705
1738
  return;
1706
1739
  const r = t.current.getElementsByTagName("script");
1707
- for (let s = 0; s < r.length; s++) {
1708
- const d = r[s];
1740
+ for (let c = 0; c < r.length; c++) {
1741
+ const d = r[c];
1709
1742
  if (d.src) {
1710
1743
  if (n.includes(d.src))
1711
1744
  continue;
1712
1745
  n.push(d.src);
1713
- const m = document.createElement("script");
1714
- m.async = !0, m.src = d.src, document.head.appendChild(m);
1746
+ const u = document.createElement("script");
1747
+ u.async = !0, u.src = d.src, document.head.appendChild(u);
1715
1748
  } else if (!d.type || [
1716
1749
  "text/javascript",
1717
1750
  "application/javascript",
@@ -1721,8 +1754,8 @@ function Mt(e) {
1721
1754
  continue;
1722
1755
  try {
1723
1756
  o.push(d.innerText), new Function(d.innerText)();
1724
- } catch (m) {
1725
- console.warn("`CustomCode`: Error running script:", m);
1757
+ } catch (u) {
1758
+ console.warn("`CustomCode`: Error running script:", u);
1726
1759
  }
1727
1760
  }
1728
1761
  }
@@ -1735,7 +1768,7 @@ function Mt(e) {
1735
1768
  }
1736
1769
  );
1737
1770
  }
1738
- const Ut = {
1771
+ const Yt = {
1739
1772
  name: "Embed",
1740
1773
  static: !0,
1741
1774
  inputs: [{
@@ -1750,29 +1783,29 @@ const Ut = {
1750
1783
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1751
1784
  hideFromUI: !0
1752
1785
  }]
1753
- }, _t = ["text/javascript", "application/javascript", "application/ecmascript"], Kt = (e) => _t.includes(e.type);
1754
- function zt(e) {
1755
- const t = ie(null), [n, i] = A(() => []), [o, a] = A(() => []), [r, c] = A(() => !1);
1756
- function s() {
1786
+ }, Jt = ["text/javascript", "application/javascript", "application/ecmascript"], Qt = (e) => Jt.includes(e.type);
1787
+ function Gt(e) {
1788
+ const t = J(null), [n, i] = N(() => []), [o, a] = N(() => []), [r, s] = N(() => !1);
1789
+ function c() {
1757
1790
  if (!t.current || !t.current.getElementsByTagName)
1758
1791
  return;
1759
1792
  const d = t.current.getElementsByTagName("script");
1760
- for (let m = 0; m < d.length; m++) {
1761
- const u = d[m];
1762
- if (u.src && !n.includes(u.src)) {
1763
- n.push(u.src);
1764
- const h = document.createElement("script");
1765
- h.async = !0, h.src = u.src, document.head.appendChild(h);
1766
- } else if (Kt(u) && !o.includes(u.innerText))
1793
+ for (let u = 0; u < d.length; u++) {
1794
+ const m = d[u];
1795
+ if (m.src && !n.includes(m.src)) {
1796
+ n.push(m.src);
1797
+ const p = document.createElement("script");
1798
+ p.async = !0, p.src = m.src, document.head.appendChild(p);
1799
+ } else if (Qt(m) && !o.includes(m.innerText))
1767
1800
  try {
1768
- o.push(u.innerText), new Function(u.innerText)();
1769
- } catch (h) {
1770
- console.warn("`Embed`: Error running script:", h);
1801
+ o.push(m.innerText), new Function(m.innerText)();
1802
+ } catch (p) {
1803
+ console.warn("`Embed`: Error running script:", p);
1771
1804
  }
1772
1805
  }
1773
1806
  }
1774
1807
  return R(() => {
1775
- t.current && !r && (c(!0), s());
1808
+ t.current && !r && (s(!0), c());
1776
1809
  }, [t.current, r]), /* @__PURE__ */ l(
1777
1810
  "div",
1778
1811
  {
@@ -1782,7 +1815,7 @@ function zt(e) {
1782
1815
  }
1783
1816
  );
1784
1817
  }
1785
- const qt = {
1818
+ const Xt = {
1786
1819
  // friendlyName?
1787
1820
  name: "Raw:Img",
1788
1821
  hideFromInsertMenu: !0,
@@ -1797,7 +1830,7 @@ const qt = {
1797
1830
  noWrap: !0,
1798
1831
  static: !0
1799
1832
  };
1800
- function Yt(e) {
1833
+ function Zt(e) {
1801
1834
  return /* @__PURE__ */ l(
1802
1835
  "img",
1803
1836
  {
@@ -1812,7 +1845,7 @@ function Yt(e) {
1812
1845
  V() && e.imgSrc || "default-key"
1813
1846
  );
1814
1847
  }
1815
- const Jt = {
1848
+ const en = {
1816
1849
  name: "Video",
1817
1850
  canHaveChildren: !0,
1818
1851
  defaultStyles: {
@@ -1897,8 +1930,8 @@ const Jt = {
1897
1930
  builderBlock: !0
1898
1931
  }
1899
1932
  };
1900
- function Qt(e) {
1901
- var i, o, a, r, c, s, d;
1933
+ function tn(e) {
1934
+ var i, o, a, r, s, c, d;
1902
1935
  function t() {
1903
1936
  return {
1904
1937
  ...e.autoPlay === !0 ? {
@@ -1923,7 +1956,7 @@ function Qt(e) {
1923
1956
  ...t()
1924
1957
  };
1925
1958
  }
1926
- return /* @__PURE__ */ E(
1959
+ return /* @__PURE__ */ P(
1927
1960
  "div",
1928
1961
  {
1929
1962
  style: {
@@ -1966,7 +1999,7 @@ function Qt(e) {
1966
1999
  }
1967
2000
  }
1968
2001
  ) : null,
1969
- (c = (r = e.builderBlock) == null ? void 0 : r.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(
2002
+ (s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(
1970
2003
  "div",
1971
2004
  {
1972
2005
  style: {
@@ -1977,7 +2010,7 @@ function Qt(e) {
1977
2010
  children: e.children
1978
2011
  }
1979
2012
  ) : null,
1980
- (d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ l(
2013
+ (d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ l(
1981
2014
  "div",
1982
2015
  {
1983
2016
  style: {
@@ -1998,43 +2031,43 @@ function Qt(e) {
1998
2031
  }
1999
2032
  );
2000
2033
  }
2001
- const Gt = () => [{
2002
- component: Mt,
2003
- ...Ht
2034
+ const nn = () => [{
2035
+ component: qt,
2036
+ ...zt
2004
2037
  }, {
2005
- component: zt,
2006
- ...Ut
2038
+ component: Gt,
2039
+ ...Yt
2007
2040
  }, {
2008
- component: Yt,
2009
- ...qt
2041
+ component: Zt,
2042
+ ...Xt
2010
2043
  }, {
2011
- component: Qt,
2012
- ...Jt
2013
- }], ye = () => [{
2014
- component: Ye,
2015
- ...Wt
2044
+ component: tn,
2045
+ ...en
2046
+ }], pe = () => [{
2047
+ component: Je,
2048
+ ...Ft
2016
2049
  }, {
2017
- component: It,
2018
- ...Nt
2050
+ component: Bt,
2051
+ ...Lt
2019
2052
  }, {
2020
- component: Tt,
2021
- ...At
2053
+ component: Wt,
2054
+ ...Ot
2022
2055
  }, {
2023
- component: Pt,
2024
- ...Vt
2056
+ component: Vt,
2057
+ ...Dt
2025
2058
  }, {
2026
- component: Bt,
2027
- ...$t
2059
+ component: $t,
2060
+ ...Ht
2028
2061
  }, {
2029
- component: Lt,
2030
- ...Ft
2062
+ component: Ut,
2063
+ ..._t
2031
2064
  }, {
2032
- component: Rn,
2033
- ...Ot
2065
+ component: An,
2066
+ ...jt
2034
2067
  }, {
2035
- component: jt,
2036
- ...Dt
2037
- }, ...Gt()], Xt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2068
+ component: Kt,
2069
+ ...Mt
2070
+ }, ...nn()], on = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2038
2071
  function getAndSetVariantId() {
2039
2072
  function setCookie(name, value, days) {
2040
2073
  let expires = '';
@@ -2090,7 +2123,7 @@ const Gt = () => [{
2090
2123
  }).join('');
2091
2124
  styleEl.innerHTML = newStyleStr;
2092
2125
  }
2093
- }`, Zt = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2126
+ }`, an = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2094
2127
  if (!navigator.cookieEnabled) {
2095
2128
  return;
2096
2129
  }
@@ -2124,26 +2157,26 @@ const Gt = () => [{
2124
2157
  thisScriptEl?.remove();
2125
2158
  }
2126
2159
  return;
2127
- }`, Pe = "builderIoAbTest", Be = "builderIoRenderContent", K = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2160
+ }`, We = "builderIoAbTest", Ae = "builderIoRenderContent", K = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2128
2161
  ...t,
2129
2162
  testVariationId: t.id,
2130
2163
  id: e == null ? void 0 : e.id
2131
- })), en = ({
2164
+ })), rn = ({
2132
2165
  canTrack: e,
2133
2166
  content: t
2134
- }) => !(!(K(t).length > 0) || !e || L()), tn = (e) => e === "react" || e === "reactNative", We = tn(D), nn = () => `
2135
- window.${Pe} = ${Xt}
2136
- window.${Be} = ${Zt}
2137
- `, on = (e, t) => `
2138
- window.${Pe}(
2139
- "${t}",${JSON.stringify(e)}, ${We}
2140
- )`, an = ({
2167
+ }) => !(!(K(t).length > 0) || !e || O()), cn = (e) => e === "react" || e === "reactNative", Ne = cn($), ln = () => `
2168
+ window.${We} = ${on}
2169
+ window.${Ae} = ${an}
2170
+ `, sn = (e, t) => `
2171
+ window.${We}(
2172
+ "${t}",${JSON.stringify(e)}, ${Ne}
2173
+ )`, dn = ({
2141
2174
  contentId: e,
2142
2175
  variationId: t
2143
- }) => `window.${Be}(
2144
- "${t}", "${e}", ${We}
2176
+ }) => `window.${Ae}(
2177
+ "${t}", "${e}", ${Ne}
2145
2178
  )`;
2146
- function ne(e) {
2179
+ function ie(e) {
2147
2180
  return /* @__PURE__ */ l(
2148
2181
  "script",
2149
2182
  {
@@ -2153,7 +2186,7 @@ function ne(e) {
2153
2186
  }
2154
2187
  );
2155
2188
  }
2156
- const rn = _e({
2189
+ const un = Ke({
2157
2190
  content: null,
2158
2191
  context: {},
2159
2192
  localState: void 0,
@@ -2168,10 +2201,10 @@ const rn = _e({
2168
2201
  BlocksWrapperProps: {},
2169
2202
  nonce: ""
2170
2203
  });
2171
- function xe(e) {
2204
+ function ve(e) {
2172
2205
  return Math.round(e * 1e3) / 1e3;
2173
2206
  }
2174
- const cn = (e, t, n = !0) => {
2207
+ const mn = (e, t, n = !0) => {
2175
2208
  if (!(e instanceof HTMLElement))
2176
2209
  return null;
2177
2210
  let i = n ? e : e.parentElement;
@@ -2182,28 +2215,28 @@ const cn = (e, t, n = !0) => {
2182
2215
  return i;
2183
2216
  } while (i = i.parentElement);
2184
2217
  return null;
2185
- }, ln = (e) => cn(e, (t) => {
2218
+ }, fn = (e) => mn(e, (t) => {
2186
2219
  const n = t.getAttribute("builder-id") || t.id;
2187
2220
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
2188
- }), Se = ({
2221
+ }), xe = ({
2189
2222
  event: e,
2190
2223
  target: t
2191
2224
  }) => {
2192
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = xe(i / n.width), r = xe(o / n.height);
2225
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = ve(i / n.width), r = ve(o / n.height);
2193
2226
  return {
2194
2227
  x: a,
2195
2228
  y: r
2196
2229
  };
2197
- }, sn = (e) => {
2198
- const t = e.target, n = t && ln(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2230
+ }, hn = (e) => {
2231
+ const t = e.target, n = t && fn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2199
2232
  return {
2200
2233
  targetBuilderElement: i || void 0,
2201
2234
  metadata: {
2202
- targetOffset: t ? Se({
2235
+ targetOffset: t ? xe({
2203
2236
  event: e,
2204
2237
  target: t
2205
2238
  }) : void 0,
2206
- builderTargetOffset: n ? Se({
2239
+ builderTargetOffset: n ? xe({
2207
2240
  event: e,
2208
2241
  target: n
2209
2242
  }) : void 0,
@@ -2211,13 +2244,13 @@ const cn = (e, t, n = !0) => {
2211
2244
  }
2212
2245
  };
2213
2246
  };
2214
- async function dn({
2247
+ async function gn({
2215
2248
  key: e,
2216
2249
  value: t
2217
2250
  }) {
2218
- return Fe(), globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e, t), { [e]: t };
2251
+ return Oe(), globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e, t), { [e]: t };
2219
2252
  }
2220
- function ve(e, ...t) {
2253
+ function Se(e, ...t) {
2221
2254
  const n = Object(e);
2222
2255
  for (let i = 1; i < arguments.length; i++) {
2223
2256
  const o = arguments[i];
@@ -2227,37 +2260,37 @@ function ve(e, ...t) {
2227
2260
  }
2228
2261
  return n;
2229
2262
  }
2230
- function un(e) {
2263
+ function bn(e) {
2231
2264
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
2232
2265
  }
2233
- function mn(e, t) {
2234
- const n = fn(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
2235
- for (const c of r)
2236
- for (const s of n)
2237
- s in c || (c[s] = i[s]);
2266
+ function yn(e, t) {
2267
+ const n = pn(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
2268
+ for (const s of r)
2269
+ for (const c of n)
2270
+ c in s || (s[c] = i[c]);
2238
2271
  }
2239
- function fn(e) {
2272
+ function pn(e) {
2240
2273
  const t = [];
2241
2274
  for (const n of e.steps)
2242
2275
  for (const i in n.styles)
2243
2276
  t.indexOf(i) === -1 && t.push(i);
2244
2277
  return t;
2245
2278
  }
2246
- function hn(e) {
2279
+ function vn(e) {
2247
2280
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
2248
2281
  if (!t.length) {
2249
- un(e.elementId || e.id || "");
2282
+ bn(e.elementId || e.id || "");
2250
2283
  return;
2251
2284
  }
2252
2285
  Array.from(t).forEach((n) => {
2253
- mn(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ve(n.style, e.steps[0].styles), setTimeout(() => {
2254
- n.style.transition = `all ${e.duration}s ${re(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), ve(n.style, e.steps[1].styles), setTimeout(() => {
2286
+ yn(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Se(n.style, e.steps[0].styles), setTimeout(() => {
2287
+ n.style.transition = `all ${e.duration}s ${re(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Se(n.style, e.steps[1].styles), setTimeout(() => {
2255
2288
  n.style.transition = "", n.style.transitionDelay = "";
2256
2289
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
2257
2290
  });
2258
2291
  });
2259
2292
  }
2260
- const gn = (e) => {
2293
+ const xn = (e) => {
2261
2294
  var a, r;
2262
2295
  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;
2263
2296
  let o = "";
@@ -2269,29 +2302,29 @@ font-display: fallback;
2269
2302
  font-weight: 400;
2270
2303
  }
2271
2304
  `.trim()), e.files)
2272
- for (const c in e.files) {
2273
- if (!(String(Number(c)) === c))
2305
+ for (const s in e.files) {
2306
+ if (!(String(Number(s)) === s))
2274
2307
  continue;
2275
- const d = e.files[c];
2308
+ const d = e.files[s];
2276
2309
  d && d !== i && (o += `
2277
2310
  @font-face {
2278
2311
  font-family: "${t}";
2279
2312
  src: url('${d}') format('woff2');
2280
2313
  font-display: fallback;
2281
- font-weight: ${c};
2314
+ font-weight: ${s};
2282
2315
  }
2283
2316
  `.trim());
2284
2317
  }
2285
2318
  return o;
2286
- }, bn = ({
2319
+ }, Sn = ({
2287
2320
  customFonts: e
2288
2321
  }) => {
2289
2322
  var t;
2290
- return ((t = e == null ? void 0 : e.map((n) => gn(n))) == null ? void 0 : t.join(" ")) || "";
2291
- }, yn = ({
2323
+ return ((t = e == null ? void 0 : e.map((n) => xn(n))) == null ? void 0 : t.join(" ")) || "";
2324
+ }, kn = ({
2292
2325
  cssCode: e,
2293
2326
  contentId: t
2294
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", xn = `
2327
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Cn = `
2295
2328
  .builder-button {
2296
2329
  all: unset;
2297
2330
  }
@@ -2308,38 +2341,38 @@ font-weight: ${c};
2308
2341
  text-align: inherit;
2309
2342
  font-family: inherit;
2310
2343
  }
2311
- `, Sn = (e) => e ? "" : xn, vn = (e) => `variant-${e}`;
2312
- function pn(e) {
2313
- var W, j, H, X, Z, se, de;
2314
- const t = ie(null);
2344
+ `, wn = (e) => e ? "" : Cn, In = (e) => `variant-${e}`;
2345
+ function Tn(e) {
2346
+ var W, H, _, X, Z, se, de;
2347
+ const t = J(null);
2315
2348
  function n(g) {
2316
- var S, v;
2317
- const f = {
2349
+ var x, k;
2350
+ const h = {
2318
2351
  ...e.builderContextSignal.rootState,
2319
2352
  ...g
2320
2353
  };
2321
- e.builderContextSignal.rootSetState ? (v = (S = e.builderContextSignal).rootSetState) == null || v.call(S, f) : e.builderContextSignal.rootState = f;
2354
+ e.builderContextSignal.rootSetState ? (k = (x = e.builderContextSignal).rootSetState) == null || k.call(x, h) : e.builderContextSignal.rootState = h;
2322
2355
  }
2323
2356
  function i(g) {
2324
- var S, v, k, B, U;
2325
- const f = {
2357
+ var x, k, I, B, j;
2358
+ const h = {
2326
2359
  ...e.builderContextSignal.content,
2327
2360
  ...g,
2328
2361
  data: {
2329
- ...(S = e.builderContextSignal.content) == null ? void 0 : S.data,
2362
+ ...(x = e.builderContextSignal.content) == null ? void 0 : x.data,
2330
2363
  ...g == null ? void 0 : g.data
2331
2364
  },
2332
2365
  meta: {
2333
- ...(v = e.builderContextSignal.content) == null ? void 0 : v.meta,
2366
+ ...(k = e.builderContextSignal.content) == null ? void 0 : k.meta,
2334
2367
  ...g == null ? void 0 : g.meta,
2335
- breakpoints: ((k = g == null ? void 0 : g.meta) == null ? void 0 : k.breakpoints) || ((U = (B = e.builderContextSignal.content) == null ? void 0 : B.meta) == null ? void 0 : U.breakpoints)
2368
+ breakpoints: ((I = g == null ? void 0 : g.meta) == null ? void 0 : I.breakpoints) || ((j = (B = e.builderContextSignal.content) == null ? void 0 : B.meta) == null ? void 0 : j.breakpoints)
2336
2369
  }
2337
2370
  };
2338
- dn({
2339
- value: f,
2340
- key: f.id
2371
+ gn({
2372
+ value: h,
2373
+ key: h.id
2341
2374
  }).then(() => {
2342
- T.refresh();
2375
+ E.refresh();
2343
2376
  });
2344
2377
  }
2345
2378
  function o() {
@@ -2348,36 +2381,36 @@ function pn(e) {
2348
2381
  "aria-hidden": !0
2349
2382
  };
2350
2383
  }
2351
- const [a, r] = A(
2384
+ const [a, r] = N(
2352
2385
  () => e.contentWrapper || "div"
2353
2386
  );
2354
- function c(g) {
2355
- return Oe({
2387
+ function s(g) {
2388
+ return De({
2356
2389
  model: e.model,
2357
2390
  trustedHosts: e.trustedHosts,
2358
2391
  callbacks: {
2359
- configureSdk: (f) => {
2360
- var k;
2361
- const { breakpoints: S, contentId: v } = f;
2362
- !v || v !== ((k = e.builderContextSignal.content) == null ? void 0 : k.id) || S && i({
2392
+ configureSdk: (h) => {
2393
+ var I;
2394
+ const { breakpoints: x, contentId: k } = h;
2395
+ !k || k !== ((I = e.builderContextSignal.content) == null ? void 0 : I.id) || x && i({
2363
2396
  meta: {
2364
- breakpoints: S
2397
+ breakpoints: x
2365
2398
  }
2366
2399
  });
2367
2400
  },
2368
- animation: (f) => {
2369
- hn(f);
2401
+ animation: (h) => {
2402
+ vn(h);
2370
2403
  },
2371
- contentUpdate: (f) => {
2372
- i(f);
2404
+ contentUpdate: (h) => {
2405
+ i(h);
2373
2406
  }
2374
2407
  }
2375
2408
  })(g);
2376
2409
  }
2377
- function s() {
2378
- var f, S;
2379
- const g = (S = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : S.jsCode;
2380
- g && O({
2410
+ function c() {
2411
+ var h, x;
2412
+ const g = (x = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : x.jsCode;
2413
+ g && D({
2381
2414
  code: g,
2382
2415
  context: e.context || {},
2383
2416
  localState: void 0,
@@ -2389,35 +2422,35 @@ function pn(e) {
2389
2422
  enableCache: !1
2390
2423
  });
2391
2424
  }
2392
- const [d, m] = A(() => ({})), [u, h] = A(() => ({})), [w, I] = A(() => !1);
2393
- function b(g) {
2394
- var f, S;
2425
+ const [d, u] = N(() => ({})), [m, p] = N(() => ({})), [v, S] = N(() => !1);
2426
+ function f(g) {
2427
+ var h, x;
2395
2428
  if (e.builderContextSignal.content) {
2396
- const v = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, k = (S = e.builderContextSignal.content) == null ? void 0 : S.id;
2429
+ const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, I = (x = e.builderContextSignal.content) == null ? void 0 : x.id;
2397
2430
  ue({
2398
2431
  type: "click",
2399
2432
  canTrack: q(e.canTrack),
2400
- contentId: k,
2433
+ contentId: I,
2401
2434
  apiKey: e.apiKey,
2402
- variationId: v !== k ? v : void 0,
2403
- ...sn(g),
2404
- unique: !w
2435
+ variationId: k !== I ? k : void 0,
2436
+ ...hn(g),
2437
+ unique: !v
2405
2438
  });
2406
2439
  }
2407
- w || I(!0);
2440
+ v || S(!0);
2408
2441
  }
2409
- function P() {
2410
- var f, S, v;
2411
- const g = (v = (S = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : S.httpRequests) != null ? v : {};
2412
- Object.entries(g).forEach(([k, B]) => {
2413
- if (!B || u[k] || d[k] && !V())
2442
+ function C() {
2443
+ var h, x, k;
2444
+ const g = (k = (x = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : x.httpRequests) != null ? k : {};
2445
+ Object.entries(g).forEach(([I, B]) => {
2446
+ if (!B || m[I] || d[I] && !V())
2414
2447
  return;
2415
- u[k] = !0;
2416
- const U = B.replace(
2448
+ m[I] = !0;
2449
+ const j = B.replace(
2417
2450
  /{{([^}]+)}}/g,
2418
- ($, Ne) => String(
2419
- O({
2420
- code: Ne,
2451
+ (F, Ve) => String(
2452
+ D({
2453
+ code: Ve,
2421
2454
  context: e.context || {},
2422
2455
  localState: void 0,
2423
2456
  rootState: e.builderContextSignal.rootState,
@@ -2426,18 +2459,18 @@ function pn(e) {
2426
2459
  })
2427
2460
  )
2428
2461
  );
2429
- De(U).then(($) => $.json()).then(($) => {
2462
+ He(j).then((F) => F.json()).then((F) => {
2430
2463
  n({
2431
- [k]: $
2432
- }), d[k] = !0;
2433
- }).catch(($) => {
2434
- console.error("error fetching dynamic data", B, $);
2464
+ [I]: F
2465
+ }), d[I] = !0;
2466
+ }).catch((F) => {
2467
+ console.error("error fetching dynamic data", B, F);
2435
2468
  }).finally(() => {
2436
- u[k] = !1;
2469
+ m[I] = !1;
2437
2470
  });
2438
2471
  });
2439
2472
  }
2440
- function x() {
2473
+ function b() {
2441
2474
  V() && window.dispatchEvent(
2442
2475
  new CustomEvent(
2443
2476
  "builder:component:stateChange",
@@ -2453,7 +2486,7 @@ function pn(e) {
2453
2486
  );
2454
2487
  }
2455
2488
  function y(g) {
2456
- window.addEventListener("message", c), je(), He({
2489
+ window.addEventListener("message", s), _e(), Ue({
2457
2490
  ...e.locale ? {
2458
2491
  locale: e.locale
2459
2492
  } : {},
@@ -2465,20 +2498,20 @@ function pn(e) {
2465
2498
  } : {}
2466
2499
  }), Object.values(
2467
2500
  e.builderContextSignal.componentInfos
2468
- ).forEach((f) => {
2469
- var v;
2470
- const S = Me(f);
2471
- (v = window.parent) == null || v.postMessage(S, "*");
2501
+ ).forEach((h) => {
2502
+ var k;
2503
+ const x = je(h);
2504
+ (k = window.parent) == null || k.postMessage(x, "*");
2472
2505
  }), window.addEventListener(
2473
2506
  "builder:component:stateChangeListenerActivated",
2474
- x
2507
+ b
2475
2508
  );
2476
2509
  }
2477
- function p(g) {
2478
- const f = new URL(location.href).searchParams, S = f.get("builder.preview"), v = f.get(
2479
- `builder.overrides.${S}`
2480
- ), k = f.get("apiKey") || f.get("builder.space");
2481
- S === e.model && k === e.apiKey && (!e.content || v === e.content.id) && ke({
2510
+ function w(g) {
2511
+ const h = new URL(location.href).searchParams, x = h.get("builder.preview"), k = h.get(
2512
+ `builder.overrides.${x}`
2513
+ ), I = h.get("apiKey") || h.get("builder.space");
2514
+ x === e.model && I === e.apiKey && (!e.content || k === e.content.id) && we({
2482
2515
  model: e.model,
2483
2516
  apiKey: e.apiKey,
2484
2517
  apiVersion: e.builderContextSignal.apiVersion
@@ -2486,15 +2519,15 @@ function pn(e) {
2486
2519
  B && i(B);
2487
2520
  });
2488
2521
  }
2489
- const T = Ke();
2522
+ const E = ze();
2490
2523
  return R(() => {
2491
2524
  var g;
2492
2525
  return (g = t.current) == null || g.addEventListener(
2493
2526
  "initeditingbldr",
2494
2527
  y
2495
2528
  ), () => {
2496
- var f;
2497
- return (f = t.current) == null ? void 0 : f.removeEventListener(
2529
+ var h;
2530
+ return (h = t.current) == null ? void 0 : h.removeEventListener(
2498
2531
  "initeditingbldr",
2499
2532
  y
2500
2533
  );
@@ -2503,40 +2536,40 @@ function pn(e) {
2503
2536
  var g;
2504
2537
  return (g = t.current) == null || g.addEventListener(
2505
2538
  "initpreviewingbldr",
2506
- p
2539
+ w
2507
2540
  ), () => {
2508
- var f;
2509
- return (f = t.current) == null ? void 0 : f.removeEventListener(
2541
+ var h;
2542
+ return (h = t.current) == null ? void 0 : h.removeEventListener(
2510
2543
  "initpreviewingbldr",
2511
- p
2544
+ w
2512
2545
  );
2513
2546
  };
2514
2547
  }, []), R(() => {
2515
- var g, f;
2516
- if (L()) {
2548
+ var g, h;
2549
+ if (O()) {
2517
2550
  if (V() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && q(e.canTrack)) {
2518
- const v = (g = e.builderContextSignal.content) == null ? void 0 : g.testVariationId, k = (f = e.builderContextSignal.content) == null ? void 0 : f.id, B = e.apiKey;
2551
+ const k = (g = e.builderContextSignal.content) == null ? void 0 : g.testVariationId, I = (h = e.builderContextSignal.content) == null ? void 0 : h.id, B = e.apiKey;
2519
2552
  ue({
2520
2553
  type: "impression",
2521
2554
  canTrack: !0,
2522
- contentId: k,
2555
+ contentId: I,
2523
2556
  apiKey: B,
2524
- variationId: v !== k ? v : void 0
2557
+ variationId: k !== I ? k : void 0
2525
2558
  });
2526
2559
  }
2527
- Le() && V();
2560
+ Ce() && V();
2528
2561
  }
2529
2562
  }, []), R(() => {
2530
- e.apiKey || J.error(
2563
+ e.apiKey || Y.error(
2531
2564
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
2532
- ), s(), P(), x();
2565
+ ), c(), C(), b();
2533
2566
  }, []), R(() => {
2534
2567
  }, [e.content]), R(() => {
2535
- s();
2536
- }, [(j = (W = e.builderContextSignal.content) == null ? void 0 : W.data) == null ? void 0 : j.jsCode]), R(() => {
2537
- P();
2538
- }, [(X = (H = e.builderContextSignal.content) == null ? void 0 : H.data) == null ? void 0 : X.httpRequests]), R(() => {
2539
- x();
2568
+ c();
2569
+ }, [(H = (W = e.builderContextSignal.content) == null ? void 0 : W.data) == null ? void 0 : H.jsCode]), R(() => {
2570
+ C();
2571
+ }, [(X = (_ = e.builderContextSignal.content) == null ? void 0 : _.data) == null ? void 0 : X.httpRequests]), R(() => {
2572
+ b();
2540
2573
  }, [e.builderContextSignal.rootState]), R(() => {
2541
2574
  e.data && n(e.data);
2542
2575
  }, [e.data]), R(() => {
@@ -2544,36 +2577,36 @@ function pn(e) {
2544
2577
  locale: e.locale
2545
2578
  });
2546
2579
  }, [e.locale]), R(() => () => {
2547
- L() && (window.removeEventListener("message", c), window.removeEventListener(
2580
+ O() && (window.removeEventListener("message", s), window.removeEventListener(
2548
2581
  "builder:component:stateChangeListenerActivated",
2549
- x
2582
+ b
2550
2583
  ));
2551
- }, []), /* @__PURE__ */ l(rn.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
2584
+ }, []), /* @__PURE__ */ l(un.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
2552
2585
  a,
2553
2586
  {
2554
2587
  ref: t,
2555
- onClick: (g) => b(g),
2588
+ onClick: (g) => f(g),
2556
2589
  "builder-content-id": (Z = e.builderContextSignal.content) == null ? void 0 : Z.id,
2557
2590
  "builder-model": e.model,
2558
2591
  ...o(),
2559
2592
  ...e.contentWrapperProps,
2560
- className: vn(
2593
+ className: In(
2561
2594
  ((se = e.content) == null ? void 0 : se.testVariationId) || ((de = e.content) == null ? void 0 : de.id)
2562
2595
  ),
2563
2596
  children: e.children
2564
2597
  }
2565
2598
  ) : null });
2566
2599
  }
2567
- function kn(e) {
2600
+ function Rn(e) {
2568
2601
  const t = `
2569
- ${yn({
2602
+ ${kn({
2570
2603
  cssCode: e.cssCode,
2571
2604
  contentId: e.contentId
2572
2605
  })}
2573
- ${bn({
2606
+ ${Sn({
2574
2607
  customFonts: e.customFonts
2575
2608
  })}
2576
- ${Sn(e.isNestedRender)}
2609
+ ${wn(e.isNestedRender)}
2577
2610
  `.trim();
2578
2611
  return /* @__PURE__ */ l(
2579
2612
  Q,
@@ -2584,15 +2617,15 @@ ${Sn(e.isNestedRender)}
2584
2617
  }
2585
2618
  );
2586
2619
  }
2587
- const Cn = ({
2620
+ const En = ({
2588
2621
  content: e,
2589
2622
  data: t,
2590
2623
  locale: n
2591
2624
  }) => {
2592
- var a, r, c;
2625
+ var a, r, s;
2593
2626
  const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
2594
- return (c = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || c.forEach((s) => {
2595
- s.name && s.defaultValue !== void 0 && (i[s.name] = s.defaultValue);
2627
+ return (s = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || s.forEach((c) => {
2628
+ c.name && c.defaultValue !== void 0 && (i[c.name] = c.defaultValue);
2596
2629
  }), {
2597
2630
  ...i,
2598
2631
  ...o,
@@ -2601,7 +2634,7 @@ const Cn = ({
2601
2634
  locale: n
2602
2635
  } : {}
2603
2636
  };
2604
- }, wn = ({
2637
+ }, Pn = ({
2605
2638
  content: e,
2606
2639
  data: t
2607
2640
  }) => e ? {
@@ -2612,32 +2645,32 @@ const Cn = ({
2612
2645
  },
2613
2646
  meta: e == null ? void 0 : e.meta
2614
2647
  } : void 0;
2615
- function pe(e) {
2616
- var o, a, r, c, s, d, m, u, h, w, I;
2617
- const t = an({
2648
+ function ke(e) {
2649
+ var o, a, r, s, c, d, u, m, p, v, S;
2650
+ const t = dn({
2618
2651
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2619
2652
  variationId: (o = e.content) == null ? void 0 : o.testVariationId,
2620
2653
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2621
2654
  contentId: (a = e.content) == null ? void 0 : a.id
2622
2655
  }), n = [
2623
- ...ye(),
2624
- ...((r = e.customComponents) == null ? void 0 : r.filter(({ models: b }) => !(b != null && b.length) || !e.model ? !0 : b.includes(e.model))) || []
2656
+ ...pe(),
2657
+ ...((r = e.customComponents) == null ? void 0 : r.filter(({ models: f }) => !(f != null && f.length) || !e.model ? !0 : f.includes(e.model))) || []
2625
2658
  ].reduce(
2626
- (b, { component: P, ...x }) => ({
2627
- ...b,
2628
- [x.name]: {
2629
- component: P,
2630
- ...me(x)
2659
+ (f, { component: C, ...b }) => ({
2660
+ ...f,
2661
+ [b.name]: {
2662
+ component: C,
2663
+ ...me(b)
2631
2664
  }
2632
2665
  }),
2633
2666
  {}
2634
2667
  ), i = {
2635
- content: wn({
2668
+ content: Pn({
2636
2669
  content: e.content,
2637
2670
  data: e.data
2638
2671
  }),
2639
2672
  localState: void 0,
2640
- rootState: Cn({
2673
+ rootState: En({
2641
2674
  content: e.content,
2642
2675
  data: e.data,
2643
2676
  locale: e.locale
@@ -2648,12 +2681,12 @@ function pe(e) {
2648
2681
  apiKey: e.apiKey,
2649
2682
  apiVersion: e.apiVersion,
2650
2683
  componentInfos: [
2651
- ...ye(),
2652
- ...((c = e.customComponents) == null ? void 0 : c.filter(({ models: b }) => !(b != null && b.length) || !e.model ? !0 : b.includes(e.model))) || []
2684
+ ...pe(),
2685
+ ...((s = e.customComponents) == null ? void 0 : s.filter(({ models: f }) => !(f != null && f.length) || !e.model ? !0 : f.includes(e.model))) || []
2653
2686
  ].reduce(
2654
- (b, { component: P, ...x }) => ({
2655
- ...b,
2656
- [x.name]: me(x)
2687
+ (f, { component: C, ...b }) => ({
2688
+ ...f,
2689
+ [b.name]: me(b)
2657
2690
  }),
2658
2691
  {}
2659
2692
  ),
@@ -2662,8 +2695,8 @@ function pe(e) {
2662
2695
  BlocksWrapperProps: e.blocksWrapperProps || {},
2663
2696
  nonce: e.nonce || ""
2664
2697
  };
2665
- return /* @__PURE__ */ E(
2666
- pn,
2698
+ return /* @__PURE__ */ P(
2699
+ Tn,
2667
2700
  {
2668
2701
  nonce: e.nonce,
2669
2702
  content: e.content,
@@ -2681,7 +2714,7 @@ function pe(e) {
2681
2714
  trustedHosts: e.trustedHosts,
2682
2715
  children: [
2683
2716
  e.isSsrAbTest ? /* @__PURE__ */ l(
2684
- ne,
2717
+ ie,
2685
2718
  {
2686
2719
  id: "builderio-variant-visibility",
2687
2720
  scriptStr: t,
@@ -2689,19 +2722,19 @@ function pe(e) {
2689
2722
  }
2690
2723
  ) : null,
2691
2724
  /* @__PURE__ */ l(
2692
- kn,
2725
+ Rn,
2693
2726
  {
2694
2727
  nonce: e.nonce || "",
2695
2728
  isNestedRender: e.isNestedRender,
2696
- contentId: (s = i.content) == null ? void 0 : s.id,
2697
- cssCode: (m = (d = i.content) == null ? void 0 : d.data) == null ? void 0 : m.cssCode,
2698
- customFonts: (h = (u = i.content) == null ? void 0 : u.data) == null ? void 0 : h.customFonts
2729
+ contentId: (c = i.content) == null ? void 0 : c.id,
2730
+ cssCode: (u = (d = i.content) == null ? void 0 : d.data) == null ? void 0 : u.cssCode,
2731
+ customFonts: (p = (m = i.content) == null ? void 0 : m.data) == null ? void 0 : p.customFonts
2699
2732
  }
2700
2733
  ),
2701
2734
  /* @__PURE__ */ l(
2702
2735
  le,
2703
2736
  {
2704
- blocks: (I = (w = i.content) == null ? void 0 : w.data) == null ? void 0 : I.blocks,
2737
+ blocks: (S = (v = i.content) == null ? void 0 : v.data) == null ? void 0 : S.blocks,
2705
2738
  context: i,
2706
2739
  registeredComponents: n,
2707
2740
  linkComponent: e.linkComponent
@@ -2711,42 +2744,42 @@ function pe(e) {
2711
2744
  }
2712
2745
  );
2713
2746
  }
2714
- function In(e) {
2747
+ function Bn(e) {
2715
2748
  var a;
2716
- const t = en({
2749
+ const t = rn({
2717
2750
  canTrack: q(e.canTrack),
2718
2751
  content: e.content
2719
2752
  }), n = function() {
2720
- var c;
2721
- return on(
2722
- K(e.content).map((s) => ({
2723
- id: s.testVariationId,
2724
- testRatio: s.testRatio
2753
+ var s;
2754
+ return sn(
2755
+ K(e.content).map((c) => ({
2756
+ id: c.testVariationId,
2757
+ testRatio: c.testRatio
2725
2758
  })),
2726
- ((c = e.content) == null ? void 0 : c.id) || ""
2759
+ ((s = e.content) == null ? void 0 : s.id) || ""
2727
2760
  );
2728
2761
  }, i = function() {
2729
- return K(e.content).map((c) => `.variant-${c.testVariationId} { display: none; } `).join("");
2762
+ return K(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
2730
2763
  }, o = function() {
2731
- var c;
2764
+ var s;
2732
2765
  return t ? {
2733
2766
  ...e.content,
2734
- testVariationId: (c = e.content) == null ? void 0 : c.id
2735
- } : Ue({
2767
+ testVariationId: (s = e.content) == null ? void 0 : s.id
2768
+ } : Me({
2736
2769
  item: e.content,
2737
2770
  canTrack: q(e.canTrack)
2738
2771
  });
2739
2772
  };
2740
- return /* @__PURE__ */ E(C, { children: [
2741
- !e.isNestedRender && D !== "reactNative" ? /* @__PURE__ */ l(
2742
- ne,
2773
+ return /* @__PURE__ */ P(T, { children: [
2774
+ !e.isNestedRender && $ !== "reactNative" ? /* @__PURE__ */ l(
2775
+ ie,
2743
2776
  {
2744
2777
  id: "builderio-init-variants-fns",
2745
- scriptStr: nn(),
2778
+ scriptStr: ln(),
2746
2779
  nonce: e.nonce || ""
2747
2780
  }
2748
2781
  ) : null,
2749
- t ? /* @__PURE__ */ E(C, { children: [
2782
+ t ? /* @__PURE__ */ P(T, { children: [
2750
2783
  /* @__PURE__ */ l(
2751
2784
  Q,
2752
2785
  {
@@ -2756,7 +2789,7 @@ function In(e) {
2756
2789
  }
2757
2790
  ),
2758
2791
  /* @__PURE__ */ l(
2759
- ne,
2792
+ ie,
2760
2793
  {
2761
2794
  id: "builderio-variants-visibility",
2762
2795
  scriptStr: n(),
@@ -2764,7 +2797,7 @@ function In(e) {
2764
2797
  }
2765
2798
  ),
2766
2799
  (a = K(e.content)) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
2767
- pe,
2800
+ ke,
2768
2801
  {
2769
2802
  isNestedRender: e.isNestedRender,
2770
2803
  nonce: e.nonce,
@@ -2791,7 +2824,7 @@ function In(e) {
2791
2824
  ))
2792
2825
  ] }) : null,
2793
2826
  /* @__PURE__ */ l(
2794
- pe,
2827
+ ke,
2795
2828
  {
2796
2829
  nonce: e.nonce,
2797
2830
  isNestedRender: e.isNestedRender,
@@ -2817,13 +2850,13 @@ function In(e) {
2817
2850
  )
2818
2851
  ] });
2819
2852
  }
2820
- const Tn = async ({
2853
+ const Wn = async ({
2821
2854
  builderContextValue: e,
2822
2855
  symbol: t
2823
2856
  }) => {
2824
2857
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
2825
2858
  (e != null && e.apiKey))
2826
- return ke({
2859
+ return we({
2827
2860
  model: t.model,
2828
2861
  apiKey: e.apiKey,
2829
2862
  apiVersion: e.apiVersion,
@@ -2833,29 +2866,29 @@ const Tn = async ({
2833
2866
  }
2834
2867
  }
2835
2868
  }).catch((n) => {
2836
- J.error("Could not fetch symbol content: ", n);
2869
+ Y.error("Could not fetch symbol content: ", n);
2837
2870
  });
2838
2871
  };
2839
- async function Rn(e) {
2840
- var a, r, c, s, d;
2872
+ async function An(e) {
2873
+ var a, r, s, c, d;
2841
2874
  const t = function() {
2842
2875
  return "div";
2843
2876
  }, n = function() {
2844
2877
  return "div";
2845
2878
  }, i = function() {
2846
- var u, h;
2879
+ var m, p;
2847
2880
  return [
2848
- e.attributes[M()],
2881
+ e.attributes[U()],
2849
2882
  "builder-symbol",
2850
- (u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
2851
- (h = e.symbol) != null && h.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
2883
+ (m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
2884
+ (p = e.symbol) != null && p.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
2852
2885
  ].filter(Boolean).join(" ");
2853
- }, o = ((a = e.symbol) == null ? void 0 : a.content) || await Tn({
2886
+ }, o = ((a = e.symbol) == null ? void 0 : a.content) || await Wn({
2854
2887
  symbol: e.symbol,
2855
2888
  builderContextValue: e.builderContext
2856
2889
  });
2857
2890
  return /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
2858
- In,
2891
+ Bn,
2859
2892
  {
2860
2893
  nonce: e.builderContext.nonce,
2861
2894
  isNestedRender: !0,
@@ -2867,9 +2900,9 @@ async function Rn(e) {
2867
2900
  },
2868
2901
  customComponents: Object.values(e.builderComponents),
2869
2902
  data: {
2870
- ...(c = e.symbol) == null ? void 0 : c.data,
2903
+ ...(s = e.symbol) == null ? void 0 : s.data,
2871
2904
  ...e.builderContext.localState,
2872
- ...(s = o == null ? void 0 : o.data) == null ? void 0 : s.state
2905
+ ...(c = o == null ? void 0 : o.data) == null ? void 0 : c.state
2873
2906
  },
2874
2907
  canTrack: e.builderContext.canTrack,
2875
2908
  model: (d = e.symbol) == null ? void 0 : d.model,
@@ -2882,14 +2915,14 @@ async function Rn(e) {
2882
2915
  }
2883
2916
  export {
2884
2917
  le as Blocks,
2885
- rn as BuilderContext,
2886
- Ye as Button,
2887
- It as Columns,
2888
- In as Content,
2889
- Tt as Fragment,
2890
- Pt as Image,
2891
- Bt as Section,
2892
- Rn as Symbol,
2893
- jt as Text,
2894
- Qt as Video
2918
+ un as BuilderContext,
2919
+ Je as Button,
2920
+ Bt as Columns,
2921
+ Bn as Content,
2922
+ Wt as Fragment,
2923
+ Vt as Image,
2924
+ $t as Section,
2925
+ An as Symbol,
2926
+ Kt as Text,
2927
+ tn as Video
2895
2928
  };