@builder.io/sdk-react-nextjs 0.15.2 → 0.16.0

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 (37) hide show
  1. package/lib/browser/blocks-exports.cjs +24 -24
  2. package/lib/browser/blocks-exports.mjs +451 -492
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/init.cjs +1 -1
  6. package/lib/browser/init.mjs +1 -1
  7. package/lib/browser/{server-entry-7f981733.js → server-entry-86458005.js} +1 -1
  8. package/lib/browser/{server-entry-f64a4c2d.cjs → server-entry-d8d62ced.cjs} +1 -1
  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 +36 -36
  12. package/lib/edge/blocks-exports.mjs +770 -811
  13. package/lib/edge/index.cjs +1 -1
  14. package/lib/edge/index.mjs +1 -1
  15. package/lib/edge/init.cjs +1 -1
  16. package/lib/edge/init.mjs +1 -1
  17. package/lib/edge/{server-entry-7f981733.js → server-entry-86458005.js} +1 -1
  18. package/lib/edge/{server-entry-f64a4c2d.cjs → server-entry-d8d62ced.cjs} +1 -1
  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 +24 -24
  22. package/lib/node/blocks-exports.mjs +442 -483
  23. package/lib/node/index.cjs +1 -1
  24. package/lib/node/index.mjs +2 -2
  25. package/lib/node/init.cjs +1 -1
  26. package/lib/node/init.mjs +2 -2
  27. package/lib/node/{node-runtime-3f0a39c5.js → node-runtime-423addf8.js} +1 -1
  28. package/lib/node/{node-runtime-6f522a33.cjs → node-runtime-6421aefe.cjs} +1 -1
  29. package/lib/node/{server-entry-46bde4f0.js → server-entry-1644208f.js} +1 -1
  30. package/lib/node/{server-entry-68c26de0.cjs → server-entry-6f84d0f2.cjs} +1 -1
  31. package/lib/node/server-entry.cjs +1 -1
  32. package/lib/node/server-entry.mjs +1 -1
  33. package/package.json +1 -1
  34. package/types/cjs/components/block/block.helpers.d.ts +8 -8
  35. package/types/cjs/constants/sdk-version.d.ts +1 -1
  36. package/types/esm/components/block/block.helpers.d.ts +8 -8
  37. package/types/esm/constants/sdk-version.d.ts +1 -1
@@ -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 te = (e, t, n) => (Ve(e, typeof t != "symbol" ? t + "" : t, n), n);
5
- import { jsx as c, Fragment as C, jsxs as P } from "react/jsx-runtime";
6
- import { TARGET as H, checkIsDefined as K, logger as J, isBrowser as z, fastClone as oe, isEditing as V, init as $e, getDefaultCanTrack as q, _track as me, isPreviewing as Le, createEditorListener as Fe, fetch as De, registerInsertMenu as je, setupBrowserForEditing as Oe, createRegisterComponentMessage as He, fetchOneEntry as Se, serializeComponentInfo as fe, handleABTestingSync as Me } from "./server-entry-46bde4f0.js";
7
- import { getFunctionArguments as Ue, runInNode as _e, parseCode as Ke, getBuilderGlobals as ze, set as qe } from "./node-runtime-3f0a39c5.js";
8
- import { useRef as ae, useState as N, useEffect as T, createContext as Ye } from "react";
9
- import { useRouter as Je } from "next/navigation";
2
+ var Ne = Object.defineProperty;
3
+ var Ae = (e, t, n) => t in e ? Ne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
+ var ee = (e, t, n) => (Ae(e, typeof t != "symbol" ? t + "" : t, n), n);
5
+ import { jsx as c, Fragment as I, jsxs as P } from "react/jsx-runtime";
6
+ import { TARGET as H, checkIsDefined as K, logger as J, isBrowser as z, fastClone as ie, isEditing as V, init as Ve, getDefaultCanTrack as q, _track as ue, isPreviewing as $e, createEditorListener as Fe, fetch as Le, registerInsertMenu as je, setupBrowserForEditing as De, createRegisterComponentMessage as Oe, fetchOneEntry as xe, serializeComponentInfo as me, handleABTestingSync as He } from "./server-entry-1644208f.js";
7
+ import { getFunctionArguments as Me, runInNode as Ue, parseCode as _e, getBuilderGlobals as Ke, set as ze } from "./node-runtime-423addf8.js";
8
+ import { useRef as oe, useState as N, useEffect as R, createContext as qe } from "react";
9
+ import { useRouter as Ye } from "next/navigation";
10
10
  import "lru-cache";
11
- const Qe = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ge = (e) => typeof e == "string" && Qe.has(e.toLowerCase());
12
- function re(e) {
13
- return /* @__PURE__ */ c(C, { children: Ge(e.TagName) ? /* @__PURE__ */ c(C, { children: /* @__PURE__ */ c(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ c(C, { children: typeof e.TagName == "string" ? /* @__PURE__ */ c(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ c(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
11
+ const Je = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Qe = (e) => typeof e == "string" && Je.has(e.toLowerCase());
12
+ function ae(e) {
13
+ return /* @__PURE__ */ c(I, { children: Qe(e.TagName) ? /* @__PURE__ */ c(I, { children: /* @__PURE__ */ c(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ c(I, { children: typeof e.TagName == "string" ? /* @__PURE__ */ c(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ c(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
14
14
  }
15
- const j = () => {
15
+ const D = () => {
16
16
  switch (H) {
17
17
  case "react":
18
18
  case "reactNative":
@@ -26,11 +26,11 @@ const j = () => {
26
26
  return "class";
27
27
  }
28
28
  };
29
- function Xe(e) {
29
+ function Ge(e) {
30
30
  function t() {
31
31
  return {
32
32
  ...e.attributes,
33
- [j()]: `${e.link ? "" : "builder-button"} ${e.attributes[j()] || ""}`,
33
+ [D()]: `${e.link ? "" : "builder-button"} ${e.attributes[D()] || ""}`,
34
34
  ...e.link ? {
35
35
  href: e.link,
36
36
  target: e.openLinkInNewTab ? "_blank" : void 0,
@@ -41,7 +41,7 @@ function Xe(e) {
41
41
  };
42
42
  }
43
43
  return /* @__PURE__ */ c(
44
- re,
44
+ ae,
45
45
  {
46
46
  attributes: t(),
47
47
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
@@ -50,14 +50,14 @@ function Xe(e) {
50
50
  }
51
51
  );
52
52
  }
53
- function Ze(e) {
53
+ function Xe(e) {
54
54
  var t;
55
55
  return {
56
56
  ...(t = e.component) == null ? void 0 : t.options,
57
57
  ...e.options
58
58
  };
59
59
  }
60
- const et = ({
60
+ const Ze = ({
61
61
  code: e,
62
62
  builder: t,
63
63
  context: n,
@@ -66,11 +66,11 @@ const et = ({
66
66
  rootSetState: a,
67
67
  rootState: l
68
68
  }) => {
69
- const r = Ue({
69
+ const r = Me({
70
70
  builder: t,
71
71
  context: n,
72
72
  event: i,
73
- state: Ce({
73
+ state: ke({
74
74
  rootState: l,
75
75
  localState: o,
76
76
  rootSetState: a
@@ -78,7 +78,7 @@ const et = ({
78
78
  });
79
79
  return new Function(...r.map(([s]) => s), e)(...r.map(([, s]) => s));
80
80
  };
81
- function Ce({
81
+ function ke({
82
82
  rootState: e,
83
83
  localState: t,
84
84
  rootSetState: n
@@ -88,7 +88,7 @@ function Ce({
88
88
  if (t && o in t)
89
89
  return t[o];
90
90
  const a = i[o];
91
- return typeof a == "object" && a !== null ? Ce({
91
+ return typeof a == "object" && a !== null ? ke({
92
92
  rootState: a,
93
93
  localState: void 0,
94
94
  rootSetState: n ? (l) => {
@@ -103,17 +103,17 @@ function Ce({
103
103
  }
104
104
  });
105
105
  }
106
- function tt() {
106
+ function et() {
107
107
  var e;
108
108
  return typeof process != "undefined" && K((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
109
109
  }
110
- const nt = () => {
110
+ const tt = () => {
111
111
  var i;
112
- if (!tt())
112
+ if (!et())
113
113
  return !1;
114
114
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
115
115
  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;
116
- }, it = (e) => z() || nt() ? et(e) : _e(e), W = class W {
116
+ }, nt = (e) => z() || tt() ? Ze(e) : Ue(e), W = class W {
117
117
  static getCacheKey(t) {
118
118
  return JSON.stringify({
119
119
  ...t,
@@ -131,8 +131,8 @@ const nt = () => {
131
131
  });
132
132
  }
133
133
  };
134
- te(W, "cacheLimit", 20), te(W, "cache", /* @__PURE__ */ new Map());
135
- let L = W;
134
+ ee(W, "cacheLimit", 20), ee(W, "cache", /* @__PURE__ */ new Map());
135
+ let F = W;
136
136
  function O({
137
137
  code: e,
138
138
  context: t,
@@ -146,10 +146,10 @@ function O({
146
146
  if (e === "")
147
147
  return;
148
148
  const s = {
149
- code: Ke(e, {
149
+ code: _e(e, {
150
150
  isExpression: l
151
151
  }),
152
- builder: ze(),
152
+ builder: Ke(),
153
153
  context: t,
154
154
  event: a,
155
155
  rootSetState: o,
@@ -157,15 +157,15 @@ function O({
157
157
  localState: n
158
158
  };
159
159
  if (r) {
160
- const d = L.getCacheKey(s), m = L.getCachedValue(d);
160
+ const d = F.getCacheKey(s), m = F.getCachedValue(d);
161
161
  if (m)
162
162
  return m.value;
163
163
  }
164
164
  try {
165
- const d = it(s);
165
+ const d = nt(s);
166
166
  if (r) {
167
- const m = L.getCacheKey(s);
168
- L.setCachedValue(m, d);
167
+ const m = F.getCacheKey(s);
168
+ F.setCachedValue(m, d);
169
169
  }
170
170
  return d;
171
171
  } catch (d) {
@@ -175,7 +175,7 @@ function O({
175
175
  return;
176
176
  }
177
177
  }
178
- const ot = ({
178
+ const it = ({
179
179
  block: e,
180
180
  context: t,
181
181
  localState: n,
@@ -184,7 +184,7 @@ const ot = ({
184
184
  }) => {
185
185
  if (!e.bindings)
186
186
  return e;
187
- const a = oe(e), l = {
187
+ const a = ie(e), l = {
188
188
  ...a,
189
189
  properties: {
190
190
  ...a.properties
@@ -202,7 +202,7 @@ const ot = ({
202
202
  context: t,
203
203
  enableCache: !0
204
204
  });
205
- qe(l, r, d);
205
+ ze(l, r, d);
206
206
  }
207
207
  return l;
208
208
  };
@@ -215,7 +215,7 @@ function Y({
215
215
  rootSetState: a
216
216
  }) {
217
217
  const l = e;
218
- return n ? ot({
218
+ return n ? it({
219
219
  block: l,
220
220
  localState: i,
221
221
  rootState: o,
@@ -223,42 +223,42 @@ function Y({
223
223
  context: t
224
224
  }) : l;
225
225
  }
226
- const le = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "", Ie = (e) => Object.entries(e).map(([n, i]) => {
226
+ const re = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "", Ce = (e) => Object.entries(e).map(([n, i]) => {
227
227
  if (typeof i == "string")
228
- return `${le(n)}: ${i};`;
229
- }).filter(K), at = (e) => Ie(e).join(`
228
+ return `${re(n)}: ${i};`;
229
+ }).filter(K), ot = (e) => Ce(e).join(`
230
230
  `), U = ({
231
231
  mediaQuery: e,
232
232
  className: t,
233
233
  styles: n
234
234
  }) => {
235
235
  const i = `.${t} {
236
- ${at(n)}
236
+ ${ot(n)}
237
237
  }`;
238
238
  return e ? `${e} {
239
239
  ${i}
240
240
  }` : i;
241
241
  };
242
- function rt({
242
+ function at({
243
243
  style: e
244
244
  }) {
245
245
  return e;
246
246
  }
247
- const lt = ({
247
+ const rt = ({
248
248
  block: e,
249
249
  context: t
250
- }) => we(rt({
250
+ }) => Ie(at({
251
251
  style: e.style || {},
252
252
  context: t,
253
253
  block: e
254
254
  }));
255
- function we(e) {
255
+ function Ie(e) {
256
256
  switch (H) {
257
257
  case "svelte":
258
258
  case "vue":
259
259
  case "solid":
260
260
  case "angular":
261
- return Ie(e).join(" ");
261
+ return Ce(e).join(" ");
262
262
  case "qwik":
263
263
  case "reactNative":
264
264
  case "react":
@@ -266,7 +266,7 @@ function we(e) {
266
266
  return e;
267
267
  }
268
268
  }
269
- const ct = ({
269
+ const lt = ({
270
270
  block: e,
271
271
  context: t,
272
272
  registeredComponents: n
@@ -288,7 +288,7 @@ const ct = ({
288
288
  console.warn(`
289
289
  Could not find a registered component named "${i}".
290
290
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
291
- }, st = ({
291
+ }, ct = ({
292
292
  block: e,
293
293
  context: t
294
294
  }) => {
@@ -322,23 +322,27 @@ const ct = ({
322
322
  },
323
323
  block: i
324
324
  }));
325
- }, Q = (e) => ({
326
- // once we bump to a major version, toggle this to `false`.
327
- builderBlock: !0,
328
- // once we bump to a major version, toggle this to `false`.
329
- builderContext: !0,
330
- builderComponents: !1,
331
- builderLinkComponent: !1,
332
- ...e
333
- }), dt = (e, t) => e ? Q(e.shouldReceiveBuilderProps).builderLinkComponent ? {
334
- builderLinkComponent: t
335
- } : {} : {}, ut = (e, t) => e ? Q(e.shouldReceiveBuilderProps).builderComponents ? {
336
- builderComponents: t
337
- } : {} : {}, mt = (e, t) => e ? Q(e.shouldReceiveBuilderProps).builderBlock ? {
338
- builderBlock: t
339
- } : {} : {}, ft = (e, t) => e ? Q(e.shouldReceiveBuilderProps).builderContext ? {
340
- builderContext: t
341
- } : {} : {}, Te = {
325
+ }, st = (e, t) => {
326
+ var n;
327
+ return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
328
+ builderLinkComponent: t
329
+ } : {};
330
+ }, dt = (e, t) => {
331
+ var n;
332
+ return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
333
+ builderComponents: t
334
+ } : {};
335
+ }, ut = (e, t) => {
336
+ var n;
337
+ return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
338
+ builderBlock: t
339
+ } : {};
340
+ }, mt = (e, t) => {
341
+ var n;
342
+ return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
343
+ builderContext: t
344
+ } : {};
345
+ }, we = {
342
346
  small: {
343
347
  min: 320,
344
348
  default: 321,
@@ -354,11 +358,11 @@ const ct = ({
354
358
  default: 991,
355
359
  max: 1200
356
360
  }
357
- }, he = (e, t = Te) => `@media (max-width: ${t[e].max}px)`, Re = ({
361
+ }, fe = (e, t = we) => `@media (max-width: ${t[e].max}px)`, Te = ({
358
362
  small: e,
359
363
  medium: t
360
364
  }) => {
361
- const n = oe(Te);
365
+ const n = ie(we);
362
366
  if (!e || !t)
363
367
  return n;
364
368
  const i = Math.floor(e / 2);
@@ -381,7 +385,7 @@ const ct = ({
381
385
  default: a + 1
382
386
  }, n;
383
387
  };
384
- function G(e) {
388
+ function Q(e) {
385
389
  return /* @__PURE__ */ c(
386
390
  "style",
387
391
  {
@@ -390,7 +394,7 @@ function G(e) {
390
394
  }
391
395
  );
392
396
  }
393
- function ht(e) {
397
+ function ft(e) {
394
398
  const t = function() {
395
399
  const o = Y({
396
400
  block: e.block,
@@ -402,7 +406,7 @@ function ht(e) {
402
406
  });
403
407
  return K(o.hide) ? !o.hide : K(o.show) ? o.show : !0;
404
408
  }, n = function() {
405
- var x, g, I;
409
+ var S, b, k;
406
410
  const o = Y({
407
411
  block: e.block,
408
412
  localState: e.context.localState,
@@ -410,56 +414,56 @@ function ht(e) {
410
414
  rootSetState: e.context.rootSetState,
411
415
  context: e.context.context,
412
416
  shouldEvaluateBindings: !0
413
- }), a = o.responsiveStyles, l = e.context.content, r = Re(
414
- ((x = l == null ? void 0 : l.meta) == null ? void 0 : x.breakpoints) || {}
417
+ }), a = o.responsiveStyles, l = e.context.content, r = Te(
418
+ ((S = l == null ? void 0 : l.meta) == null ? void 0 : S.breakpoints) || {}
415
419
  ), s = a == null ? void 0 : a.large, d = a == null ? void 0 : a.medium, m = a == null ? void 0 : a.small, u = o.id;
416
420
  if (!u)
417
421
  return "";
418
422
  const h = s ? U({
419
423
  className: u,
420
424
  styles: s
421
- }) : "", k = d ? U({
425
+ }) : "", x = d ? U({
422
426
  className: u,
423
427
  styles: d,
424
- mediaQuery: he(
428
+ mediaQuery: fe(
425
429
  "medium",
426
430
  r
427
431
  )
428
432
  }) : "", w = m ? U({
429
433
  className: u,
430
434
  styles: m,
431
- mediaQuery: he(
435
+ mediaQuery: fe(
432
436
  "small",
433
437
  r
434
438
  )
435
- }) : "", p = o.animations && o.animations.find((R) => R.trigger === "hover");
439
+ }) : "", y = o.animations && o.animations.find((T) => T.trigger === "hover");
436
440
  let A = "";
437
- if (p) {
438
- const R = ((I = (g = p.steps) == null ? void 0 : g[1]) == null ? void 0 : I.styles) || {};
441
+ if (y) {
442
+ const T = ((k = (b = y.steps) == null ? void 0 : b[1]) == null ? void 0 : k.styles) || {};
439
443
  A = U({
440
444
  className: `${u}:hover`,
441
445
  styles: {
442
- ...R,
443
- transition: `all ${p.duration}s ${le(
444
- p.easing
446
+ ...T,
447
+ transition: `all ${y.duration}s ${re(
448
+ y.easing
445
449
  )}`,
446
- transitionDelay: p.delay ? `${p.delay}s` : "0s"
450
+ transitionDelay: y.delay ? `${y.delay}s` : "0s"
447
451
  }
448
452
  }) || "";
449
453
  }
450
454
  return [
451
455
  h,
452
- k,
456
+ x,
453
457
  w,
454
458
  A
455
459
  ].join(" ");
456
460
  };
457
- return /* @__PURE__ */ c(C, { children: n() && t() ? /* @__PURE__ */ c(C, { children: /* @__PURE__ */ c(G, { id: "builderio-block", styles: n() }) }) : null });
461
+ return /* @__PURE__ */ c(I, { children: n() && t() ? /* @__PURE__ */ c(I, { children: /* @__PURE__ */ c(Q, { id: "builderio-block", styles: n() }) }) : null });
458
462
  }
459
- function bt(e) {
463
+ function ht(e) {
460
464
  return e.charAt(0).toUpperCase() + e.slice(1);
461
465
  }
462
- const gt = (e) => `on${bt(e)}`, pt = (e, t) => (n) => O({
466
+ const gt = (e) => `on${ht(e)}`, bt = (e, t) => (n) => O({
463
467
  code: e,
464
468
  context: t.context,
465
469
  localState: t.localState,
@@ -469,7 +473,7 @@ const gt = (e) => `on${bt(e)}`, pt = (e, t) => (n) => O({
469
473
  isExpression: !1,
470
474
  enableCache: !0
471
475
  });
472
- function Pe(e) {
476
+ function Re(e) {
473
477
  var i;
474
478
  const t = {}, n = (i = e.block.actions) != null ? i : {};
475
479
  for (const o in n) {
@@ -486,7 +490,7 @@ function Pe(e) {
486
490
  l = l.replace("on:", "");
487
491
  break;
488
492
  }
489
- t[l] = pt(a, e);
493
+ t[l] = bt(a, e);
490
494
  }
491
495
  return t;
492
496
  }
@@ -495,23 +499,23 @@ function yt({
495
499
  }) {
496
500
  return e;
497
501
  }
498
- const vt = (e) => ({
502
+ const pt = (e) => ({
499
503
  href: e.href
500
504
  });
501
- function ce({
505
+ function le({
502
506
  block: e,
503
507
  context: t
504
508
  }) {
505
509
  var i;
506
510
  const n = {
507
- ...vt(e),
511
+ ...pt(e),
508
512
  ...e.properties,
509
513
  "builder-id": e.id,
510
- style: lt({
514
+ style: rt({
511
515
  block: e,
512
516
  context: t
513
517
  }),
514
- [j()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
518
+ [D()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
515
519
  };
516
520
  return yt({
517
521
  properties: n,
@@ -519,16 +523,16 @@ function ce({
519
523
  block: e
520
524
  });
521
525
  }
522
- function xt(e) {
526
+ function vt(e) {
523
527
  return /* @__PURE__ */ c(
524
- re,
528
+ ae,
525
529
  {
526
530
  TagName: e.Wrapper,
527
- attributes: ce({
531
+ attributes: le({
528
532
  block: e.block,
529
533
  context: e.context
530
534
  }),
531
- actionAttributes: Pe({
535
+ actionAttributes: Re({
532
536
  block: e.block,
533
537
  rootState: e.context.rootState,
534
538
  rootSetState: e.context.rootSetState,
@@ -540,14 +544,14 @@ function xt(e) {
540
544
  }
541
545
  );
542
546
  }
543
- function kt(e) {
547
+ function St(e) {
544
548
  function t() {
545
549
  return e.includeBlockProps ? {
546
- ...ce({
550
+ ...le({
547
551
  block: e.block,
548
552
  context: e.context
549
553
  }),
550
- ...Pe({
554
+ ...Re({
551
555
  block: e.block,
552
556
  rootState: e.context.rootState,
553
557
  rootSetState: e.context.rootSetState,
@@ -558,7 +562,7 @@ function kt(e) {
558
562
  }
559
563
  return /* @__PURE__ */ c(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
560
564
  }
561
- const St = ({
565
+ const xt = ({
562
566
  componentOptions: e,
563
567
  builderBlock: t,
564
568
  context: n,
@@ -574,7 +578,7 @@ const St = ({
574
578
  * component itself directly. Otherwise, they are provided to the wrapper element.
575
579
  */
576
580
  ...o ? {
577
- attributes: ce({
581
+ attributes: le({
578
582
  block: t,
579
583
  context: l
580
584
  })
@@ -588,13 +592,13 @@ const St = ({
588
592
  includeBlockProps: o
589
593
  } : r;
590
594
  };
591
- function be(e) {
595
+ function he(e) {
592
596
  var n;
593
- const t = e.isInteractive ? kt : e.componentRef;
594
- return /* @__PURE__ */ c(C, { children: e.componentRef ? /* @__PURE__ */ c(C, { children: /* @__PURE__ */ c(
597
+ const t = e.isInteractive ? St : e.componentRef;
598
+ return /* @__PURE__ */ c(I, { children: e.componentRef ? /* @__PURE__ */ c(I, { children: /* @__PURE__ */ c(
595
599
  t,
596
600
  {
597
- ...St({
601
+ ...xt({
598
602
  componentOptions: e.componentOptions,
599
603
  builderBlock: e.builderBlock,
600
604
  context: e.context,
@@ -605,7 +609,7 @@ function be(e) {
605
609
  contextValue: e.context
606
610
  }),
607
611
  children: (n = e.blockChildren) == null ? void 0 : n.map((i) => /* @__PURE__ */ c(
608
- X,
612
+ G,
609
613
  {
610
614
  block: i,
611
615
  context: e.context,
@@ -617,10 +621,10 @@ function be(e) {
617
621
  }
618
622
  ) }) : null });
619
623
  }
620
- function Ct(e) {
624
+ function kt(e) {
621
625
  const t = e.repeatContext;
622
626
  return /* @__PURE__ */ c(
623
- X,
627
+ G,
624
628
  {
625
629
  block: e.block,
626
630
  context: t,
@@ -629,16 +633,16 @@ function Ct(e) {
629
633
  }
630
634
  );
631
635
  }
632
- function X(e) {
636
+ function G(e) {
633
637
  var s, d, m;
634
638
  const t = function() {
635
- return ct({
639
+ return lt({
636
640
  block: e.block,
637
641
  context: e.context,
638
642
  registeredComponents: e.registeredComponents
639
643
  });
640
644
  }, n = function() {
641
- return st({
645
+ return ct({
642
646
  block: e.block,
643
647
  context: e.context
644
648
  });
@@ -653,28 +657,28 @@ function X(e) {
653
657
  shouldEvaluateBindings: !0
654
658
  });
655
659
  }, o = function() {
656
- var k;
657
- return e.block.tagName === "a" || ((k = i().properties) == null ? void 0 : k.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
660
+ var x;
661
+ return e.block.tagName === "a" || ((x = i().properties) == null ? void 0 : x.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
658
662
  }, a = function() {
659
- var w, p;
663
+ var w, y;
660
664
  if ((w = e.block.repeat) != null && w.collection)
661
- return !!((p = n()) != null && p.length);
665
+ return !!((y = n()) != null && y.length);
662
666
  const h = "hide" in i() ? i().hide : !1;
663
667
  return ("show" in i() ? i().show : !0) && !h;
664
668
  }, l = function() {
665
- var k, w;
666
- return !((k = t()) != null && k.component) && !n() ? (w = i().children) != null ? w : [] : [];
669
+ var x, w;
670
+ return !((x = t()) != null && x.component) && !n() ? (w = i().children) != null ? w : [] : [];
667
671
  }, r = function() {
668
- var h, k, w, p;
672
+ var h, x, w, y;
669
673
  return {
670
674
  blockChildren: (h = i().children) != null ? h : [],
671
- componentRef: (k = t()) == null ? void 0 : k.component,
675
+ componentRef: (x = t()) == null ? void 0 : x.component,
672
676
  componentOptions: {
673
- ...Ze(i()),
674
- ...mt(t(), i()),
675
- ...ft(t(), e.context),
676
- ...dt(t(), e.linkComponent),
677
- ...ut(
677
+ ...Xe(i()),
678
+ ...ut(t(), i()),
679
+ ...mt(t(), e.context),
680
+ ...st(t(), e.linkComponent),
681
+ ...dt(
678
682
  t(),
679
683
  e.registeredComponents
680
684
  )
@@ -684,13 +688,13 @@ function X(e) {
684
688
  registeredComponents: e.registeredComponents,
685
689
  builderBlock: i(),
686
690
  includeBlockProps: ((w = t()) == null ? void 0 : w.noWrap) === !0,
687
- isInteractive: !((p = t()) != null && p.isRSC)
691
+ isInteractive: !((y = t()) != null && y.isRSC)
688
692
  };
689
693
  };
690
- return /* @__PURE__ */ c(C, { children: a() ? /* @__PURE__ */ P(C, { children: [
691
- /* @__PURE__ */ c(ht, { block: e.block, context: e.context }),
692
- (s = t()) != null && s.noWrap ? /* @__PURE__ */ c(C, { children: /* @__PURE__ */ c(
693
- be,
694
+ return /* @__PURE__ */ c(I, { children: a() ? /* @__PURE__ */ P(I, { children: [
695
+ /* @__PURE__ */ c(ft, { block: e.block, context: e.context }),
696
+ (s = t()) != null && s.noWrap ? /* @__PURE__ */ c(I, { children: /* @__PURE__ */ c(
697
+ he,
694
698
  {
695
699
  componentRef: r().componentRef,
696
700
  componentOptions: r().componentOptions,
@@ -702,8 +706,8 @@ function X(e) {
702
706
  includeBlockProps: r().includeBlockProps,
703
707
  isInteractive: r().isInteractive
704
708
  }
705
- ) }) : /* @__PURE__ */ c(C, { children: n() ? /* @__PURE__ */ c(C, { children: (m = n()) == null ? void 0 : m.map((u, h) => /* @__PURE__ */ c(
706
- Ct,
709
+ ) }) : /* @__PURE__ */ c(I, { children: n() ? /* @__PURE__ */ c(I, { children: (m = n()) == null ? void 0 : m.map((u, h) => /* @__PURE__ */ c(
710
+ kt,
707
711
  {
708
712
  repeatContext: u.context,
709
713
  block: u.block,
@@ -712,14 +716,14 @@ function X(e) {
712
716
  },
713
717
  h
714
718
  )) }) : /* @__PURE__ */ P(
715
- xt,
719
+ vt,
716
720
  {
717
721
  Wrapper: o(),
718
722
  block: i(),
719
723
  context: e.context,
720
724
  children: [
721
725
  /* @__PURE__ */ c(
722
- be,
726
+ he,
723
727
  {
724
728
  componentRef: r().componentRef,
725
729
  componentOptions: r().componentOptions,
@@ -733,7 +737,7 @@ function X(e) {
733
737
  }
734
738
  ),
735
739
  (d = l()) == null ? void 0 : d.map((u) => /* @__PURE__ */ c(
736
- X,
740
+ G,
737
741
  {
738
742
  block: u,
739
743
  registeredComponents: e.registeredComponents,
@@ -747,7 +751,7 @@ function X(e) {
747
751
  ) })
748
752
  ] }) : null });
749
753
  }
750
- function It(e) {
754
+ function Ct(e) {
751
755
  function t() {
752
756
  var o;
753
757
  return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
@@ -778,7 +782,7 @@ function It(e) {
778
782
  "*"
779
783
  ));
780
784
  }
781
- return /* @__PURE__ */ P(C, { children: [
785
+ return /* @__PURE__ */ P(I, { children: [
782
786
  /* @__PURE__ */ c(
783
787
  e.BlocksWrapper,
784
788
  {
@@ -800,10 +804,10 @@ function It(e) {
800
804
  }` })
801
805
  ] });
802
806
  }
803
- function se(e) {
807
+ function ce(e) {
804
808
  var t, n, i;
805
809
  return /* @__PURE__ */ c(
806
- It,
810
+ Ct,
807
811
  {
808
812
  blocks: e.blocks,
809
813
  parent: e.parent,
@@ -811,8 +815,8 @@ function se(e) {
811
815
  styleProp: e.styleProp,
812
816
  BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
813
817
  BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
814
- children: e.blocks ? /* @__PURE__ */ c(C, { children: (i = e.blocks) == null ? void 0 : i.map((o) => /* @__PURE__ */ c(
815
- X,
818
+ children: e.blocks ? /* @__PURE__ */ c(I, { children: (i = e.blocks) == null ? void 0 : i.map((o) => /* @__PURE__ */ c(
819
+ G,
816
820
  {
817
821
  block: o,
818
822
  linkComponent: e.linkComponent,
@@ -824,27 +828,27 @@ function se(e) {
824
828
  }
825
829
  );
826
830
  }
827
- const wt = (e) => `builder-columns ${e}-breakpoints`;
828
- function Tt(e) {
829
- var p, A;
830
- const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], i = e.stackColumnsAt || "tablet", o = function(g) {
831
- return g.link ? e.builderLinkComponent || "a" : "div";
832
- }, a = function(g) {
833
- var I;
834
- return ((I = n[g]) == null ? void 0 : I.width) || 100 / n.length;
835
- }, l = function(g) {
836
- const I = t * (n.length - 1) / n.length;
837
- return `calc(${a(g)}% - ${I}px)`;
831
+ const It = (e) => `builder-columns ${e}-breakpoints`;
832
+ function wt(e) {
833
+ var y, A;
834
+ const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], i = e.stackColumnsAt || "tablet", o = function(b) {
835
+ return b.link ? e.builderLinkComponent || "a" : "div";
836
+ }, a = function(b) {
837
+ var k;
838
+ return ((k = n[b]) == null ? void 0 : k.width) || 100 / n.length;
839
+ }, l = function(b) {
840
+ const k = a(b), T = t * (n.length - 1) * (k / 100);
841
+ return `calc(${k}% - ${T}px)`;
838
842
  }, r = function({
839
- stackedStyle: g,
840
- desktopStyle: I
843
+ stackedStyle: b,
844
+ desktopStyle: k
841
845
  }) {
842
- return i === "tablet" ? g : I;
846
+ return i === "tablet" ? b : k;
843
847
  }, s = function({
844
- stackedStyle: g,
845
- desktopStyle: I
848
+ stackedStyle: b,
849
+ desktopStyle: k
846
850
  }) {
847
- return i === "never" ? I : g;
851
+ return i === "never" ? k : b;
848
852
  }, d = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", m = function() {
849
853
  return {
850
854
  "--flex-dir": d,
@@ -853,39 +857,39 @@ function Tt(e) {
853
857
  desktopStyle: "row"
854
858
  })
855
859
  };
856
- }, u = function(g) {
857
- const I = g === 0 ? 0 : t, R = l(g), E = `${I}px`, F = "100%", D = 0;
860
+ }, u = function(b) {
861
+ const k = b === 0 ? 0 : t, T = l(b), B = `${k}px`, L = "100%", j = 0;
858
862
  return {
859
863
  ...{
860
864
  display: "flex",
861
865
  flexDirection: "column",
862
866
  alignItems: "stretch"
863
867
  },
864
- width: R,
865
- ["marginLeft"]: E,
868
+ width: T,
869
+ ["marginLeft"]: B,
866
870
  "--column-width-mobile": s({
867
- stackedStyle: F,
868
- desktopStyle: R
871
+ stackedStyle: L,
872
+ desktopStyle: T
869
873
  }),
870
874
  "--column-margin-left-mobile": s({
871
- stackedStyle: D,
872
- desktopStyle: E
875
+ stackedStyle: j,
876
+ desktopStyle: B
873
877
  }),
874
878
  "--column-width-tablet": r({
875
- stackedStyle: F,
876
- desktopStyle: R
879
+ stackedStyle: L,
880
+ desktopStyle: T
877
881
  }),
878
882
  "--column-margin-left-tablet": r({
879
- stackedStyle: D,
880
- desktopStyle: E
883
+ stackedStyle: j,
884
+ desktopStyle: B
881
885
  })
882
886
  };
883
- }, h = function(g) {
884
- var R, E;
885
- return Re(
886
- ((E = (R = e.builderContext.content) == null ? void 0 : R.meta) == null ? void 0 : E.breakpoints) || {}
887
- )[g].max;
888
- }, k = function() {
887
+ }, h = function(b) {
888
+ var T, B;
889
+ return Te(
890
+ ((B = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : B.breakpoints) || {}
891
+ )[b].max;
892
+ }, x = function() {
889
893
  return `
890
894
  @media (max-width: ${h("medium")}px) {
891
895
  .${e.builderBlock.id}-breakpoints {
@@ -911,33 +915,33 @@ function Tt(e) {
911
915
  }
912
916
  },
913
917
  `;
914
- }, w = function(g, I) {
918
+ }, w = function(b, k) {
915
919
  return {
916
- ...g.link ? {
917
- href: g.link
920
+ ...b.link ? {
921
+ href: b.link
918
922
  } : {},
919
- [j()]: "builder-column",
920
- style: we(u(I))
923
+ [D()]: "builder-column",
924
+ style: Ie(u(k))
921
925
  };
922
926
  };
923
- return /* @__PURE__ */ P(C, { children: [
927
+ return /* @__PURE__ */ P(I, { children: [
924
928
  /* @__PURE__ */ P(
925
929
  "div",
926
930
  {
927
- className: wt((p = e.builderBlock) == null ? void 0 : p.id) + " div-eeca3604",
931
+ className: It((y = e.builderBlock) == null ? void 0 : y.id) + " div-1de99da7",
928
932
  style: m(),
929
933
  children: [
930
- /* @__PURE__ */ c(G, { id: "builderio-columns", styles: k() }),
931
- (A = e.columns) == null ? void 0 : A.map((x, g) => /* @__PURE__ */ c(
932
- re,
934
+ /* @__PURE__ */ c(Q, { id: "builderio-columns", styles: x() }),
935
+ (A = e.columns) == null ? void 0 : A.map((S, b) => /* @__PURE__ */ c(
936
+ ae,
933
937
  {
934
- TagName: o(x),
938
+ TagName: o(S),
935
939
  actionAttributes: {},
936
- attributes: w(x, g),
940
+ attributes: w(S, b),
937
941
  children: /* @__PURE__ */ c(
938
- se,
942
+ ce,
939
943
  {
940
- path: `component.options.columns.${g}.blocks`,
944
+ path: `component.options.columns.${b}.blocks`,
941
945
  parent: e.builderBlock.id,
942
946
  styleProp: {
943
947
  flexGrow: "1"
@@ -945,32 +949,32 @@ function Tt(e) {
945
949
  context: e.builderContext,
946
950
  registeredComponents: e.builderComponents,
947
951
  linkComponent: e.builderLinkComponent,
948
- blocks: x.blocks
952
+ blocks: S.blocks
949
953
  }
950
954
  )
951
955
  },
952
- g
956
+ b
953
957
  ))
954
958
  ]
955
959
  }
956
960
  ),
957
- /* @__PURE__ */ c("style", { children: `.div-eeca3604 {
961
+ /* @__PURE__ */ c("style", { children: `.div-1de99da7 {
958
962
  display: flex;
959
963
  line-height: normal;
960
964
  }` })
961
965
  ] });
962
966
  }
963
- function Rt(e) {
967
+ function Tt(e) {
964
968
  return /* @__PURE__ */ c("span", { children: e.children });
965
969
  }
966
970
  function ge(e) {
967
971
  return e.replace(/http(s)?:/, "");
968
972
  }
969
- function Pt(e = "", t, n) {
973
+ function Rt(e = "", t, n) {
970
974
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
971
975
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
972
976
  }
973
- function Bt(e, t) {
977
+ function Pt(e, t) {
974
978
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
975
979
  return e;
976
980
  if (t === "master")
@@ -982,16 +986,16 @@ function Bt(e, t) {
982
986
  }
983
987
  return null;
984
988
  }
985
- function ne(e) {
989
+ function te(e) {
986
990
  if (!e)
987
991
  return e;
988
992
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
989
993
  if (e.match(/builder\.io/)) {
990
994
  let n = e;
991
995
  const i = Number(e.split("?width=")[1]);
992
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Pt(e, "width", o)} ${o}w`).concat([n]).join(", ");
996
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Rt(e, "width", o)} ${o}w`).concat([n]).join(", ");
993
997
  }
994
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Bt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
998
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Pt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
995
999
  }
996
1000
  function Et(e) {
997
1001
  var o, a, l, r, s, d;
@@ -1004,10 +1008,10 @@ function Et(e) {
1004
1008
  return e.srcset;
1005
1009
  if (e.srcset && ((h = e.image) != null && h.includes("builder.io/api/v1/image"))) {
1006
1010
  if (!e.srcset.includes(e.image.split("?")[0]))
1007
- return console.debug("Removed given srcset"), ne(u);
1011
+ return console.debug("Removed given srcset"), te(u);
1008
1012
  } else if (e.image && !e.srcset)
1009
- return ne(u);
1010
- return ne(u);
1013
+ return te(u);
1014
+ return te(u);
1011
1015
  }
1012
1016
  function n() {
1013
1017
  var m;
@@ -1023,8 +1027,8 @@ function Et(e) {
1023
1027
  };
1024
1028
  return e.aspectRatio ? m : void 0;
1025
1029
  }
1026
- return /* @__PURE__ */ P(C, { children: [
1027
- /* @__PURE__ */ P(C, { children: [
1030
+ return /* @__PURE__ */ P(I, { children: [
1031
+ /* @__PURE__ */ P(I, { children: [
1028
1032
  /* @__PURE__ */ P("picture", { children: [
1029
1033
  n() ? /* @__PURE__ */ c("source", { type: "image/webp", srcSet: n() }) : null,
1030
1034
  /* @__PURE__ */ c(
@@ -1055,7 +1059,7 @@ function Et(e) {
1055
1059
  }
1056
1060
  }
1057
1061
  ) : null,
1058
- (r = (l = e.builderBlock) == null ? void 0 : l.children) != null && r.length && e.fitContent ? /* @__PURE__ */ c(C, { children: e.children }) : null,
1062
+ (r = (l = e.builderBlock) == null ? void 0 : l.children) != null && r.length && e.fitContent ? /* @__PURE__ */ c(I, { children: e.children }) : null,
1059
1063
  !e.fitContent && ((d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length) ? /* @__PURE__ */ c("div", { className: "div-ac3dff4a-2", children: e.children }) : null
1060
1064
  ] }),
1061
1065
  /* @__PURE__ */ c("style", { children: `.img-ac3dff4a {
@@ -1077,7 +1081,7 @@ function Et(e) {
1077
1081
  }` })
1078
1082
  ] });
1079
1083
  }
1080
- function Wt(e) {
1084
+ function Bt(e) {
1081
1085
  return /* @__PURE__ */ c(
1082
1086
  "section",
1083
1087
  {
@@ -1098,7 +1102,7 @@ function Wt(e) {
1098
1102
  }
1099
1103
  );
1100
1104
  }
1101
- const Nt = {
1105
+ const Wt = {
1102
1106
  name: "Core:Button",
1103
1107
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1104
1108
  defaultStyles: {
@@ -1132,12 +1136,9 @@ const Nt = {
1132
1136
  static: !0,
1133
1137
  noWrap: !0,
1134
1138
  shouldReceiveBuilderProps: {
1135
- builderBlock: !1,
1136
- builderContext: !1,
1137
- builderComponents: !1,
1138
1139
  builderLinkComponent: !0
1139
1140
  }
1140
- }, At = {
1141
+ }, Nt = {
1141
1142
  // TODO: ways to statically preprocess JSON for references, functions, etc
1142
1143
  name: "Columns",
1143
1144
  isRSC: !0,
@@ -1344,19 +1345,13 @@ const Nt = {
1344
1345
  builderComponents: !0,
1345
1346
  builderLinkComponent: !0
1346
1347
  }
1347
- }, Vt = {
1348
- shouldReceiveBuilderProps: {
1349
- builderBlock: !1,
1350
- builderContext: !1,
1351
- builderComponents: !1,
1352
- builderLinkComponent: !1
1353
- },
1348
+ }, At = {
1354
1349
  name: "Fragment",
1355
1350
  static: !0,
1356
1351
  hidden: !0,
1357
1352
  canHaveChildren: !0,
1358
1353
  noWrap: !0
1359
- }, $t = {
1354
+ }, Vt = {
1360
1355
  name: "Image",
1361
1356
  static: !0,
1362
1357
  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",
@@ -1462,18 +1457,9 @@ const Nt = {
1462
1457
  defaultValue: 0.7041
1463
1458
  }],
1464
1459
  shouldReceiveBuilderProps: {
1465
- builderBlock: !0,
1466
- builderContext: !1,
1467
- builderComponents: !1,
1468
- builderLinkComponent: !1
1460
+ builderBlock: !0
1469
1461
  }
1470
- }, Lt = {
1471
- shouldReceiveBuilderProps: {
1472
- builderBlock: !1,
1473
- builderContext: !1,
1474
- builderComponents: !1,
1475
- builderLinkComponent: !1
1476
- },
1462
+ }, $t = {
1477
1463
  name: "Core:Section",
1478
1464
  static: !0,
1479
1465
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1526,13 +1512,10 @@ const Nt = {
1526
1512
  defaultValue: "children"
1527
1513
  }],
1528
1514
  shouldReceiveBuilderProps: {
1529
- builderBlock: !1,
1530
- builderContext: !0,
1531
- builderComponents: !1,
1532
- builderLinkComponent: !1
1515
+ builderContext: !0
1533
1516
  }
1534
1517
  };
1535
- function Dt(e) {
1518
+ function Lt(e) {
1536
1519
  var t, n, i;
1537
1520
  return /* @__PURE__ */ c(
1538
1521
  "div",
@@ -1544,7 +1527,7 @@ function Dt(e) {
1544
1527
  "builder-slot": e.name
1545
1528
  },
1546
1529
  children: /* @__PURE__ */ c(
1547
- se,
1530
+ ce,
1548
1531
  {
1549
1532
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
1550
1533
  path: `symbol.data.${e.name}`,
@@ -1594,12 +1577,9 @@ const jt = {
1594
1577
  builderComponents: !0,
1595
1578
  builderLinkComponent: !0
1596
1579
  }
1597
- }, Ot = {
1580
+ }, Dt = {
1598
1581
  shouldReceiveBuilderProps: {
1599
- builderBlock: !1,
1600
- builderContext: !1,
1601
- builderComponents: !1,
1602
- builderLinkComponent: !1
1582
+ builderBlock: !1
1603
1583
  },
1604
1584
  name: "Text",
1605
1585
  static: !0,
@@ -1619,7 +1599,7 @@ const jt = {
1619
1599
  textAlign: "center"
1620
1600
  }
1621
1601
  };
1622
- function Ht(e) {
1602
+ function Ot(e) {
1623
1603
  var t;
1624
1604
  return /* @__PURE__ */ c(
1625
1605
  "div",
@@ -1632,13 +1612,7 @@ function Ht(e) {
1632
1612
  }
1633
1613
  );
1634
1614
  }
1635
- const Mt = {
1636
- shouldReceiveBuilderProps: {
1637
- builderBlock: !1,
1638
- builderContext: !1,
1639
- builderComponents: !1,
1640
- builderLinkComponent: !1
1641
- },
1615
+ const Ht = {
1642
1616
  name: "Custom Code",
1643
1617
  static: !0,
1644
1618
  requiredPermissions: ["editCode"],
@@ -1661,9 +1635,9 @@ const Mt = {
1661
1635
  advanced: !0
1662
1636
  }]
1663
1637
  };
1664
- function Ut(e) {
1665
- const t = ae(null), [n, i] = N(() => []), [o, a] = N(() => []);
1666
- return T(() => {
1638
+ function Mt(e) {
1639
+ const t = oe(null), [n, i] = N(() => []), [o, a] = N(() => []);
1640
+ return R(() => {
1667
1641
  var r;
1668
1642
  if (!((r = t.current) != null && r.getElementsByTagName) || typeof window == "undefined")
1669
1643
  return;
@@ -1699,13 +1673,7 @@ function Ut(e) {
1699
1673
  }
1700
1674
  );
1701
1675
  }
1702
- const _t = {
1703
- shouldReceiveBuilderProps: {
1704
- builderBlock: !1,
1705
- builderContext: !1,
1706
- builderComponents: !1,
1707
- builderLinkComponent: !1
1708
- },
1676
+ const Ut = {
1709
1677
  name: "Embed",
1710
1678
  static: !0,
1711
1679
  inputs: [{
@@ -1720,9 +1688,9 @@ const _t = {
1720
1688
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1721
1689
  hideFromUI: !0
1722
1690
  }]
1723
- }, Kt = ["text/javascript", "application/javascript", "application/ecmascript"], zt = (e) => Kt.includes(e.type);
1724
- function qt(e) {
1725
- const t = ae(null), [n, i] = N(() => []), [o, a] = N(() => []), [l, r] = N(() => !1);
1691
+ }, _t = ["text/javascript", "application/javascript", "application/ecmascript"], Kt = (e) => _t.includes(e.type);
1692
+ function zt(e) {
1693
+ const t = oe(null), [n, i] = N(() => []), [o, a] = N(() => []), [l, r] = N(() => !1);
1726
1694
  function s() {
1727
1695
  if (!t.current || !t.current.getElementsByTagName)
1728
1696
  return;
@@ -1733,7 +1701,7 @@ function qt(e) {
1733
1701
  n.push(u.src);
1734
1702
  const h = document.createElement("script");
1735
1703
  h.async = !0, h.src = u.src, document.head.appendChild(h);
1736
- } else if (zt(u) && !o.includes(u.innerText))
1704
+ } else if (Kt(u) && !o.includes(u.innerText))
1737
1705
  try {
1738
1706
  o.push(u.innerText), new Function(u.innerText)();
1739
1707
  } catch (h) {
@@ -1741,7 +1709,7 @@ function qt(e) {
1741
1709
  }
1742
1710
  }
1743
1711
  }
1744
- return T(() => {
1712
+ return R(() => {
1745
1713
  t.current && !l && (r(!0), s());
1746
1714
  }, [t.current, l]), /* @__PURE__ */ c(
1747
1715
  "div",
@@ -1752,13 +1720,7 @@ function qt(e) {
1752
1720
  }
1753
1721
  );
1754
1722
  }
1755
- const Yt = {
1756
- shouldReceiveBuilderProps: {
1757
- builderBlock: !1,
1758
- builderContext: !1,
1759
- builderComponents: !1,
1760
- builderLinkComponent: !1
1761
- },
1723
+ const qt = {
1762
1724
  // friendlyName?
1763
1725
  name: "Raw:Img",
1764
1726
  hideFromInsertMenu: !0,
@@ -1773,7 +1735,7 @@ const Yt = {
1773
1735
  noWrap: !0,
1774
1736
  static: !0
1775
1737
  };
1776
- function Jt(e) {
1738
+ function Yt(e) {
1777
1739
  return /* @__PURE__ */ c(
1778
1740
  "img",
1779
1741
  {
@@ -1788,7 +1750,7 @@ function Jt(e) {
1788
1750
  V() && e.imgSrc || "default-key"
1789
1751
  );
1790
1752
  }
1791
- const Qt = {
1753
+ const Jt = {
1792
1754
  name: "Video",
1793
1755
  canHaveChildren: !0,
1794
1756
  defaultStyles: {
@@ -1870,13 +1832,10 @@ const Qt = {
1870
1832
  advanced: !0
1871
1833
  }],
1872
1834
  shouldReceiveBuilderProps: {
1873
- builderBlock: !0,
1874
- builderContext: !1,
1875
- builderComponents: !1,
1876
- builderLinkComponent: !1
1835
+ builderBlock: !0
1877
1836
  }
1878
1837
  };
1879
- function Gt(e) {
1838
+ function Qt(e) {
1880
1839
  var i, o, a, l, r, s, d;
1881
1840
  function t() {
1882
1841
  return {
@@ -1977,43 +1936,43 @@ function Gt(e) {
1977
1936
  }
1978
1937
  );
1979
1938
  }
1980
- const Xt = () => [{
1981
- component: Ut,
1982
- ...Mt
1939
+ const Gt = () => [{
1940
+ component: Mt,
1941
+ ...Ht
1942
+ }, {
1943
+ component: zt,
1944
+ ...Ut
1983
1945
  }, {
1984
- component: qt,
1985
- ..._t
1946
+ component: Yt,
1947
+ ...qt
1986
1948
  }, {
1987
- component: Jt,
1988
- ...Yt
1949
+ component: Qt,
1950
+ ...Jt
1951
+ }], be = () => [{
1952
+ component: Ge,
1953
+ ...Wt
1989
1954
  }, {
1990
- component: Gt,
1991
- ...Qt
1992
- }], pe = () => [{
1993
- component: Xe,
1955
+ component: wt,
1994
1956
  ...Nt
1995
1957
  }, {
1996
1958
  component: Tt,
1997
1959
  ...At
1998
1960
  }, {
1999
- component: Rt,
1961
+ component: Et,
2000
1962
  ...Vt
2001
1963
  }, {
2002
- component: Et,
1964
+ component: Bt,
2003
1965
  ...$t
2004
1966
  }, {
2005
- component: Wt,
2006
- ...Lt
2007
- }, {
2008
- component: Dt,
1967
+ component: Lt,
2009
1968
  ...Ft
2010
1969
  }, {
2011
- component: Pn,
1970
+ component: Rn,
2012
1971
  ...jt
2013
1972
  }, {
2014
- component: Ht,
2015
- ...Ot
2016
- }, ...Xt()], Zt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
1973
+ component: Ot,
1974
+ ...Dt
1975
+ }, ...Gt()], Xt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2017
1976
  function getAndSetVariantId() {
2018
1977
  function setCookie(name, value, days) {
2019
1978
  let expires = '';
@@ -2069,7 +2028,7 @@ const Xt = () => [{
2069
2028
  }).join('');
2070
2029
  styleEl.innerHTML = newStyleStr;
2071
2030
  }
2072
- }`, en = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2031
+ }`, Zt = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2073
2032
  if (!navigator.cookieEnabled) {
2074
2033
  return;
2075
2034
  }
@@ -2103,26 +2062,26 @@ const Xt = () => [{
2103
2062
  thisScriptEl?.remove();
2104
2063
  }
2105
2064
  return;
2106
- }`, Be = "builderIoAbTest", Ee = "builderIoRenderContent", _ = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2065
+ }`, Pe = "builderIoAbTest", Ee = "builderIoRenderContent", _ = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2107
2066
  ...t,
2108
2067
  testVariationId: t.id,
2109
2068
  id: e == null ? void 0 : e.id
2110
- })), tn = ({
2069
+ })), en = ({
2111
2070
  canTrack: e,
2112
2071
  content: t
2113
- }) => !(!(_(t).length > 0) || !e || z()), nn = (e) => e === "react" || e === "reactNative", We = nn(H), on = () => `
2114
- window.${Be} = ${Zt}
2115
- window.${Ee} = ${en}
2116
- `, an = (e, t) => `
2117
- window.${Be}(
2118
- "${t}",${JSON.stringify(e)}, ${We}
2119
- )`, rn = ({
2072
+ }) => !(!(_(t).length > 0) || !e || z()), tn = (e) => e === "react" || e === "reactNative", Be = tn(H), nn = () => `
2073
+ window.${Pe} = ${Xt}
2074
+ window.${Ee} = ${Zt}
2075
+ `, on = (e, t) => `
2076
+ window.${Pe}(
2077
+ "${t}",${JSON.stringify(e)}, ${Be}
2078
+ )`, an = ({
2120
2079
  contentId: e,
2121
2080
  variationId: t
2122
2081
  }) => `window.${Ee}(
2123
- "${t}", "${e}", ${We}
2082
+ "${t}", "${e}", ${Be}
2124
2083
  )`;
2125
- function ie(e) {
2084
+ function ne(e) {
2126
2085
  return /* @__PURE__ */ c(
2127
2086
  "script",
2128
2087
  {
@@ -2131,7 +2090,7 @@ function ie(e) {
2131
2090
  }
2132
2091
  );
2133
2092
  }
2134
- const ln = Ye({
2093
+ const rn = qe({
2135
2094
  content: null,
2136
2095
  context: {},
2137
2096
  localState: void 0,
@@ -2148,7 +2107,7 @@ const ln = Ye({
2148
2107
  function ye(e) {
2149
2108
  return Math.round(e * 1e3) / 1e3;
2150
2109
  }
2151
- const cn = (e, t, n = !0) => {
2110
+ const ln = (e, t, n = !0) => {
2152
2111
  if (!(e instanceof HTMLElement))
2153
2112
  return null;
2154
2113
  let i = n ? e : e.parentElement;
@@ -2159,10 +2118,10 @@ const cn = (e, t, n = !0) => {
2159
2118
  return i;
2160
2119
  } while (i = i.parentElement);
2161
2120
  return null;
2162
- }, sn = (e) => cn(e, (t) => {
2121
+ }, cn = (e) => ln(e, (t) => {
2163
2122
  const n = t.getAttribute("builder-id") || t.id;
2164
2123
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
2165
- }), ve = ({
2124
+ }), pe = ({
2166
2125
  event: e,
2167
2126
  target: t
2168
2127
  }) => {
@@ -2171,16 +2130,16 @@ const cn = (e, t, n = !0) => {
2171
2130
  x: a,
2172
2131
  y: l
2173
2132
  };
2174
- }, dn = (e) => {
2175
- const t = e.target, n = t && sn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2133
+ }, sn = (e) => {
2134
+ const t = e.target, n = t && cn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2176
2135
  return {
2177
2136
  targetBuilderElement: i || void 0,
2178
2137
  metadata: {
2179
- targetOffset: t ? ve({
2138
+ targetOffset: t ? pe({
2180
2139
  event: e,
2181
2140
  target: t
2182
2141
  }) : void 0,
2183
- builderTargetOffset: n ? ve({
2142
+ builderTargetOffset: n ? pe({
2184
2143
  event: e,
2185
2144
  target: n
2186
2145
  }) : void 0,
@@ -2188,13 +2147,13 @@ const cn = (e, t, n = !0) => {
2188
2147
  }
2189
2148
  };
2190
2149
  };
2191
- async function un({
2150
+ async function dn({
2192
2151
  key: e,
2193
2152
  value: t
2194
2153
  }) {
2195
- return $e(), globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e, t), { [e]: t };
2154
+ return Ve(), globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e, t), { [e]: t };
2196
2155
  }
2197
- function xe(e, ...t) {
2156
+ function ve(e, ...t) {
2198
2157
  const n = Object(e);
2199
2158
  for (let i = 1; i < arguments.length; i++) {
2200
2159
  const o = arguments[i];
@@ -2204,31 +2163,31 @@ function xe(e, ...t) {
2204
2163
  }
2205
2164
  return n;
2206
2165
  }
2207
- function mn(e) {
2166
+ function un(e) {
2208
2167
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
2209
2168
  }
2210
- function fn(e, t) {
2211
- const n = hn(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, l = [o, a];
2169
+ function mn(e, t) {
2170
+ const n = fn(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, l = [o, a];
2212
2171
  for (const r of l)
2213
2172
  for (const s of n)
2214
2173
  s in r || (r[s] = i[s]);
2215
2174
  }
2216
- function hn(e) {
2175
+ function fn(e) {
2217
2176
  const t = [];
2218
2177
  for (const n of e.steps)
2219
2178
  for (const i in n.styles)
2220
2179
  t.indexOf(i) === -1 && t.push(i);
2221
2180
  return t;
2222
2181
  }
2223
- function bn(e) {
2182
+ function hn(e) {
2224
2183
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
2225
2184
  if (!t.length) {
2226
- mn(e.elementId || e.id || "");
2185
+ un(e.elementId || e.id || "");
2227
2186
  return;
2228
2187
  }
2229
2188
  Array.from(t).forEach((n) => {
2230
- fn(e, n), n.style.transition = "none", n.style.transitionDelay = "0", xe(n.style, e.steps[0].styles), setTimeout(() => {
2231
- n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), xe(n.style, e.steps[1].styles), setTimeout(() => {
2189
+ mn(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ve(n.style, e.steps[0].styles), setTimeout(() => {
2190
+ 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(() => {
2232
2191
  n.style.transition = "", n.style.transitionDelay = "";
2233
2192
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
2234
2193
  });
@@ -2260,7 +2219,7 @@ font-weight: ${r};
2260
2219
  `.trim());
2261
2220
  }
2262
2221
  return o;
2263
- }, pn = ({
2222
+ }, bn = ({
2264
2223
  customFonts: e
2265
2224
  }) => {
2266
2225
  var t;
@@ -2268,7 +2227,7 @@ font-weight: ${r};
2268
2227
  }, yn = ({
2269
2228
  cssCode: e,
2270
2229
  contentId: t
2271
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", vn = `
2230
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", pn = `
2272
2231
  .builder-button {
2273
2232
  all: unset;
2274
2233
  }
@@ -2285,38 +2244,38 @@ font-weight: ${r};
2285
2244
  text-align: inherit;
2286
2245
  font-family: inherit;
2287
2246
  }
2288
- `, xn = (e) => e ? "" : vn, kn = (e) => `variant-${e}`;
2289
- function Sn(e) {
2290
- var E, F, D, Z, ee, de, ue;
2291
- const t = ae(null);
2292
- function n(b) {
2293
- var y, v;
2247
+ `, vn = (e) => e ? "" : pn, Sn = (e) => `variant-${e}`;
2248
+ function xn(e) {
2249
+ var B, L, j, X, Z, se, de;
2250
+ const t = oe(null);
2251
+ function n(g) {
2252
+ var p, v;
2294
2253
  const f = {
2295
2254
  ...e.builderContextSignal.rootState,
2296
- ...b
2255
+ ...g
2297
2256
  };
2298
- e.builderContextSignal.rootSetState ? (v = (y = e.builderContextSignal).rootSetState) == null || v.call(y, f) : e.builderContextSignal.rootState = f;
2257
+ e.builderContextSignal.rootSetState ? (v = (p = e.builderContextSignal).rootSetState) == null || v.call(p, f) : e.builderContextSignal.rootState = f;
2299
2258
  }
2300
- function i(b) {
2301
- var y, v, S, B, M;
2259
+ function i(g) {
2260
+ var p, v, C, E, M;
2302
2261
  const f = {
2303
2262
  ...e.builderContextSignal.content,
2304
- ...b,
2263
+ ...g,
2305
2264
  data: {
2306
- ...(y = e.builderContextSignal.content) == null ? void 0 : y.data,
2307
- ...b == null ? void 0 : b.data
2265
+ ...(p = e.builderContextSignal.content) == null ? void 0 : p.data,
2266
+ ...g == null ? void 0 : g.data
2308
2267
  },
2309
2268
  meta: {
2310
2269
  ...(v = e.builderContextSignal.content) == null ? void 0 : v.meta,
2311
- ...b == null ? void 0 : b.meta,
2312
- breakpoints: ((S = b == null ? void 0 : b.meta) == null ? void 0 : S.breakpoints) || ((M = (B = e.builderContextSignal.content) == null ? void 0 : B.meta) == null ? void 0 : M.breakpoints)
2270
+ ...g == null ? void 0 : g.meta,
2271
+ breakpoints: ((C = g == null ? void 0 : g.meta) == null ? void 0 : C.breakpoints) || ((M = (E = e.builderContextSignal.content) == null ? void 0 : E.meta) == null ? void 0 : M.breakpoints)
2313
2272
  }
2314
2273
  };
2315
- un({
2274
+ dn({
2316
2275
  value: f,
2317
2276
  key: f.id
2318
2277
  }).then(() => {
2319
- R.refresh();
2278
+ T.refresh();
2320
2279
  });
2321
2280
  }
2322
2281
  function o() {
@@ -2328,34 +2287,34 @@ function Sn(e) {
2328
2287
  const [a, l] = N(
2329
2288
  () => e.contentWrapper || "div"
2330
2289
  );
2331
- function r(b) {
2290
+ function r(g) {
2332
2291
  return Fe({
2333
2292
  model: e.model,
2334
2293
  trustedHosts: e.trustedHosts,
2335
2294
  callbacks: {
2336
2295
  configureSdk: (f) => {
2337
- var S;
2338
- const { breakpoints: y, contentId: v } = f;
2339
- !v || v !== ((S = e.builderContextSignal.content) == null ? void 0 : S.id) || y && i({
2296
+ var C;
2297
+ const { breakpoints: p, contentId: v } = f;
2298
+ !v || v !== ((C = e.builderContextSignal.content) == null ? void 0 : C.id) || p && i({
2340
2299
  meta: {
2341
- breakpoints: y
2300
+ breakpoints: p
2342
2301
  }
2343
2302
  });
2344
2303
  },
2345
2304
  animation: (f) => {
2346
- bn(f);
2305
+ hn(f);
2347
2306
  },
2348
2307
  contentUpdate: (f) => {
2349
2308
  i(f);
2350
2309
  }
2351
2310
  }
2352
- })(b);
2311
+ })(g);
2353
2312
  }
2354
2313
  function s() {
2355
- var f, y;
2356
- const b = (y = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : y.jsCode;
2357
- b && O({
2358
- code: b,
2314
+ var f, p;
2315
+ const g = (p = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : p.jsCode;
2316
+ g && O({
2317
+ code: g,
2359
2318
  context: e.context || {},
2360
2319
  localState: void 0,
2361
2320
  rootState: e.builderContextSignal.rootState,
@@ -2366,35 +2325,35 @@ function Sn(e) {
2366
2325
  enableCache: !1
2367
2326
  });
2368
2327
  }
2369
- const [d, m] = N(() => ({})), [u, h] = N(() => ({})), [k, w] = N(() => !1);
2370
- function p(b) {
2371
- var f, y;
2328
+ const [d, m] = N(() => ({})), [u, h] = N(() => ({})), [x, w] = N(() => !1);
2329
+ function y(g) {
2330
+ var f, p;
2372
2331
  if (e.builderContextSignal.content) {
2373
- const v = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, S = (y = e.builderContextSignal.content) == null ? void 0 : y.id;
2374
- me({
2332
+ const v = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, C = (p = e.builderContextSignal.content) == null ? void 0 : p.id;
2333
+ ue({
2375
2334
  type: "click",
2376
2335
  canTrack: q(e.canTrack),
2377
- contentId: S,
2336
+ contentId: C,
2378
2337
  apiKey: e.apiKey,
2379
- variationId: v !== S ? v : void 0,
2380
- ...dn(b),
2381
- unique: !k
2338
+ variationId: v !== C ? v : void 0,
2339
+ ...sn(g),
2340
+ unique: !x
2382
2341
  });
2383
2342
  }
2384
- k || w(!0);
2343
+ x || w(!0);
2385
2344
  }
2386
2345
  function A() {
2387
- var f, y, v;
2388
- const b = (v = (y = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : y.httpRequests) != null ? v : {};
2389
- Object.entries(b).forEach(([S, B]) => {
2390
- if (!B || u[S] || d[S] && !V())
2346
+ var f, p, v;
2347
+ const g = (v = (p = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : p.httpRequests) != null ? v : {};
2348
+ Object.entries(g).forEach(([C, E]) => {
2349
+ if (!E || u[C] || d[C] && !V())
2391
2350
  return;
2392
- u[S] = !0;
2393
- const M = B.replace(
2351
+ u[C] = !0;
2352
+ const M = E.replace(
2394
2353
  /{{([^}]+)}}/g,
2395
- ($, Ne) => String(
2354
+ ($, We) => String(
2396
2355
  O({
2397
- code: Ne,
2356
+ code: We,
2398
2357
  context: e.context || {},
2399
2358
  localState: void 0,
2400
2359
  rootState: e.builderContextSignal.rootState,
@@ -2403,24 +2362,24 @@ function Sn(e) {
2403
2362
  })
2404
2363
  )
2405
2364
  );
2406
- De(M).then(($) => $.json()).then(($) => {
2365
+ Le(M).then(($) => $.json()).then(($) => {
2407
2366
  n({
2408
- [S]: $
2409
- }), d[S] = !0;
2367
+ [C]: $
2368
+ }), d[C] = !0;
2410
2369
  }).catch(($) => {
2411
- console.error("error fetching dynamic data", B, $);
2370
+ console.error("error fetching dynamic data", E, $);
2412
2371
  }).finally(() => {
2413
- u[S] = !1;
2372
+ u[C] = !1;
2414
2373
  });
2415
2374
  });
2416
2375
  }
2417
- function x() {
2376
+ function S() {
2418
2377
  V() && window.dispatchEvent(
2419
2378
  new CustomEvent(
2420
2379
  "builder:component:stateChange",
2421
2380
  {
2422
2381
  detail: {
2423
- state: oe(e.builderContextSignal.rootState),
2382
+ state: ie(e.builderContextSignal.rootState),
2424
2383
  ref: {
2425
2384
  name: e.model
2426
2385
  }
@@ -2429,8 +2388,8 @@ function Sn(e) {
2429
2388
  )
2430
2389
  );
2431
2390
  }
2432
- function g(b) {
2433
- window.addEventListener("message", r), je(), Oe({
2391
+ function b(g) {
2392
+ window.addEventListener("message", r), je(), De({
2434
2393
  ...e.locale ? {
2435
2394
  locale: e.locale
2436
2395
  } : {},
@@ -2444,117 +2403,117 @@ function Sn(e) {
2444
2403
  e.builderContextSignal.componentInfos
2445
2404
  ).forEach((f) => {
2446
2405
  var v;
2447
- const y = He(f);
2448
- (v = window.parent) == null || v.postMessage(y, "*");
2406
+ const p = Oe(f);
2407
+ (v = window.parent) == null || v.postMessage(p, "*");
2449
2408
  }), window.addEventListener(
2450
2409
  "builder:component:stateChangeListenerActivated",
2451
- x
2410
+ S
2452
2411
  );
2453
2412
  }
2454
- function I(b) {
2455
- const f = new URL(location.href).searchParams, y = f.get("builder.preview"), v = f.get(
2456
- `builder.overrides.${y}`
2457
- ), S = f.get("apiKey") || f.get("builder.space");
2458
- y === e.model && S === e.apiKey && (!e.content || v === e.content.id) && Se({
2413
+ function k(g) {
2414
+ const f = new URL(location.href).searchParams, p = f.get("builder.preview"), v = f.get(
2415
+ `builder.overrides.${p}`
2416
+ ), C = f.get("apiKey") || f.get("builder.space");
2417
+ p === e.model && C === e.apiKey && (!e.content || v === e.content.id) && xe({
2459
2418
  model: e.model,
2460
2419
  apiKey: e.apiKey,
2461
2420
  apiVersion: e.builderContextSignal.apiVersion
2462
- }).then((B) => {
2463
- B && i(B);
2421
+ }).then((E) => {
2422
+ E && i(E);
2464
2423
  });
2465
2424
  }
2466
- const R = Je();
2467
- return T(() => {
2468
- var b;
2469
- return (b = t.current) == null || b.addEventListener(
2425
+ const T = Ye();
2426
+ return R(() => {
2427
+ var g;
2428
+ return (g = t.current) == null || g.addEventListener(
2470
2429
  "initeditingbldr",
2471
- g
2430
+ b
2472
2431
  ), () => {
2473
2432
  var f;
2474
2433
  return (f = t.current) == null ? void 0 : f.removeEventListener(
2475
2434
  "initeditingbldr",
2476
- g
2435
+ b
2477
2436
  );
2478
2437
  };
2479
- }, []), T(() => {
2480
- var b;
2481
- return (b = t.current) == null || b.addEventListener(
2438
+ }, []), R(() => {
2439
+ var g;
2440
+ return (g = t.current) == null || g.addEventListener(
2482
2441
  "initpreviewingbldr",
2483
- I
2442
+ k
2484
2443
  ), () => {
2485
2444
  var f;
2486
2445
  return (f = t.current) == null ? void 0 : f.removeEventListener(
2487
2446
  "initpreviewingbldr",
2488
- I
2447
+ k
2489
2448
  );
2490
2449
  };
2491
- }, []), T(() => {
2492
- var b, f;
2450
+ }, []), R(() => {
2451
+ var g, f;
2493
2452
  if (z()) {
2494
2453
  if (V() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && q(e.canTrack)) {
2495
- const v = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId, S = (f = e.builderContextSignal.content) == null ? void 0 : f.id, B = e.apiKey;
2496
- me({
2454
+ const v = (g = e.builderContextSignal.content) == null ? void 0 : g.testVariationId, C = (f = e.builderContextSignal.content) == null ? void 0 : f.id, E = e.apiKey;
2455
+ ue({
2497
2456
  type: "impression",
2498
2457
  canTrack: !0,
2499
- contentId: S,
2500
- apiKey: B,
2501
- variationId: v !== S ? v : void 0
2458
+ contentId: C,
2459
+ apiKey: E,
2460
+ variationId: v !== C ? v : void 0
2502
2461
  });
2503
2462
  }
2504
- Le() && V();
2463
+ $e() && V();
2505
2464
  }
2506
- }, []), T(() => {
2465
+ }, []), R(() => {
2507
2466
  e.apiKey || J.error(
2508
2467
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
2509
- ), s(), A(), x();
2510
- }, []), T(() => {
2511
- }, [e.content]), T(() => {
2468
+ ), s(), A(), S();
2469
+ }, []), R(() => {
2470
+ }, [e.content]), R(() => {
2512
2471
  s();
2513
- }, [(F = (E = e.builderContextSignal.content) == null ? void 0 : E.data) == null ? void 0 : F.jsCode]), T(() => {
2472
+ }, [(L = (B = e.builderContextSignal.content) == null ? void 0 : B.data) == null ? void 0 : L.jsCode]), R(() => {
2514
2473
  A();
2515
- }, [(Z = (D = e.builderContextSignal.content) == null ? void 0 : D.data) == null ? void 0 : Z.httpRequests]), T(() => {
2516
- x();
2517
- }, [e.builderContextSignal.rootState]), T(() => {
2474
+ }, [(X = (j = e.builderContextSignal.content) == null ? void 0 : j.data) == null ? void 0 : X.httpRequests]), R(() => {
2475
+ S();
2476
+ }, [e.builderContextSignal.rootState]), R(() => {
2518
2477
  e.data && n(e.data);
2519
- }, [e.data]), T(() => {
2478
+ }, [e.data]), R(() => {
2520
2479
  e.locale && n({
2521
2480
  locale: e.locale
2522
2481
  });
2523
- }, [e.locale]), T(() => () => {
2482
+ }, [e.locale]), R(() => () => {
2524
2483
  z() && (window.removeEventListener("message", r), window.removeEventListener(
2525
2484
  "builder:component:stateChangeListenerActivated",
2526
- x
2485
+ S
2527
2486
  ));
2528
- }, []), /* @__PURE__ */ c(ln.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ c(
2487
+ }, []), /* @__PURE__ */ c(rn.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ c(
2529
2488
  a,
2530
2489
  {
2531
2490
  ref: t,
2532
- onClick: (b) => p(b),
2533
- "builder-content-id": (ee = e.builderContextSignal.content) == null ? void 0 : ee.id,
2491
+ onClick: (g) => y(g),
2492
+ "builder-content-id": (Z = e.builderContextSignal.content) == null ? void 0 : Z.id,
2534
2493
  "builder-model": e.model,
2535
2494
  ...o(),
2536
2495
  ...e.contentWrapperProps,
2537
- className: kn(
2538
- ((de = e.content) == null ? void 0 : de.testVariationId) || ((ue = e.content) == null ? void 0 : ue.id)
2496
+ className: Sn(
2497
+ ((se = e.content) == null ? void 0 : se.testVariationId) || ((de = e.content) == null ? void 0 : de.id)
2539
2498
  ),
2540
2499
  children: e.children
2541
2500
  }
2542
2501
  ) : null });
2543
2502
  }
2544
- function Cn(e) {
2503
+ function kn(e) {
2545
2504
  const t = `
2546
2505
  ${yn({
2547
2506
  cssCode: e.cssCode,
2548
2507
  contentId: e.contentId
2549
2508
  })}
2550
- ${pn({
2509
+ ${bn({
2551
2510
  customFonts: e.customFonts
2552
2511
  })}
2553
- ${xn(e.isNestedRender)}
2512
+ ${vn(e.isNestedRender)}
2554
2513
  `.trim();
2555
- return /* @__PURE__ */ c(G, { id: "builderio-content", styles: t });
2514
+ return /* @__PURE__ */ c(Q, { id: "builderio-content", styles: t });
2556
2515
  }
2557
- const In = ({
2516
+ const Cn = ({
2558
2517
  content: e,
2559
2518
  data: t,
2560
2519
  locale: n
@@ -2571,7 +2530,7 @@ const In = ({
2571
2530
  locale: n
2572
2531
  } : {}
2573
2532
  };
2574
- }, wn = ({
2533
+ }, In = ({
2575
2534
  content: e,
2576
2535
  data: t
2577
2536
  }) => e ? {
@@ -2582,32 +2541,32 @@ const In = ({
2582
2541
  },
2583
2542
  meta: e == null ? void 0 : e.meta
2584
2543
  } : void 0;
2585
- function ke(e) {
2544
+ function Se(e) {
2586
2545
  var o, a, l, r, s, d, m, u, h;
2587
- const t = rn({
2546
+ const t = an({
2588
2547
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2589
2548
  variationId: (o = e.content) == null ? void 0 : o.testVariationId,
2590
2549
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2591
2550
  contentId: (a = e.content) == null ? void 0 : a.id
2592
2551
  }), n = [
2593
- ...pe(),
2552
+ ...be(),
2594
2553
  ...e.customComponents || []
2595
2554
  ].reduce(
2596
- (k, { component: w, ...p }) => ({
2597
- ...k,
2598
- [p.name]: {
2555
+ (x, { component: w, ...y }) => ({
2556
+ ...x,
2557
+ [y.name]: {
2599
2558
  component: w,
2600
- ...fe(p)
2559
+ ...me(y)
2601
2560
  }
2602
2561
  }),
2603
2562
  {}
2604
2563
  ), i = {
2605
- content: wn({
2564
+ content: In({
2606
2565
  content: e.content,
2607
2566
  data: e.data
2608
2567
  }),
2609
2568
  localState: void 0,
2610
- rootState: In({
2569
+ rootState: Cn({
2611
2570
  content: e.content,
2612
2571
  data: e.data,
2613
2572
  locale: e.locale
@@ -2618,12 +2577,12 @@ function ke(e) {
2618
2577
  apiKey: e.apiKey,
2619
2578
  apiVersion: e.apiVersion,
2620
2579
  componentInfos: [
2621
- ...pe(),
2580
+ ...be(),
2622
2581
  ...e.customComponents || []
2623
2582
  ].reduce(
2624
- (k, { component: w, ...p }) => ({
2625
- ...k,
2626
- [p.name]: fe(p)
2583
+ (x, { component: w, ...y }) => ({
2584
+ ...x,
2585
+ [y.name]: me(y)
2627
2586
  }),
2628
2587
  {}
2629
2588
  ),
@@ -2632,7 +2591,7 @@ function ke(e) {
2632
2591
  BlocksWrapperProps: e.blocksWrapperProps || {}
2633
2592
  };
2634
2593
  return /* @__PURE__ */ P(
2635
- Sn,
2594
+ xn,
2636
2595
  {
2637
2596
  content: e.content,
2638
2597
  data: e.data,
@@ -2649,14 +2608,14 @@ function ke(e) {
2649
2608
  trustedHosts: e.trustedHosts,
2650
2609
  children: [
2651
2610
  e.isSsrAbTest ? /* @__PURE__ */ c(
2652
- ie,
2611
+ ne,
2653
2612
  {
2654
2613
  id: "builderio-variant-visibility",
2655
2614
  scriptStr: t
2656
2615
  }
2657
2616
  ) : null,
2658
2617
  /* @__PURE__ */ c(
2659
- Cn,
2618
+ kn,
2660
2619
  {
2661
2620
  isNestedRender: e.isNestedRender,
2662
2621
  contentId: (l = i.content) == null ? void 0 : l.id,
@@ -2665,7 +2624,7 @@ function ke(e) {
2665
2624
  }
2666
2625
  ),
2667
2626
  /* @__PURE__ */ c(
2668
- se,
2627
+ ce,
2669
2628
  {
2670
2629
  blocks: (h = (u = i.content) == null ? void 0 : u.data) == null ? void 0 : h.blocks,
2671
2630
  context: i,
@@ -2677,14 +2636,14 @@ function ke(e) {
2677
2636
  }
2678
2637
  );
2679
2638
  }
2680
- function Tn(e) {
2639
+ function wn(e) {
2681
2640
  var a;
2682
- const t = tn({
2641
+ const t = en({
2683
2642
  canTrack: q(e.canTrack),
2684
2643
  content: e.content
2685
2644
  }), n = function() {
2686
2645
  var r;
2687
- return an(
2646
+ return on(
2688
2647
  _(e.content).map((s) => ({
2689
2648
  id: s.testVariationId,
2690
2649
  testRatio: s.testRatio
@@ -2698,36 +2657,36 @@ function Tn(e) {
2698
2657
  return t ? {
2699
2658
  ...e.content,
2700
2659
  testVariationId: (r = e.content) == null ? void 0 : r.id
2701
- } : Me({
2660
+ } : He({
2702
2661
  item: e.content,
2703
2662
  canTrack: q(e.canTrack)
2704
2663
  });
2705
2664
  };
2706
- return /* @__PURE__ */ P(C, { children: [
2665
+ return /* @__PURE__ */ P(I, { children: [
2707
2666
  !e.isNestedRender && H !== "reactNative" ? /* @__PURE__ */ c(
2708
- ie,
2667
+ ne,
2709
2668
  {
2710
2669
  id: "builderio-init-variants-fns",
2711
- scriptStr: on()
2670
+ scriptStr: nn()
2712
2671
  }
2713
2672
  ) : null,
2714
- t ? /* @__PURE__ */ P(C, { children: [
2673
+ t ? /* @__PURE__ */ P(I, { children: [
2715
2674
  /* @__PURE__ */ c(
2716
- G,
2675
+ Q,
2717
2676
  {
2718
2677
  id: "builderio-variants",
2719
2678
  styles: i()
2720
2679
  }
2721
2680
  ),
2722
2681
  /* @__PURE__ */ c(
2723
- ie,
2682
+ ne,
2724
2683
  {
2725
2684
  id: "builderio-variants-visibility",
2726
2685
  scriptStr: n()
2727
2686
  }
2728
2687
  ),
2729
2688
  (a = _(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ c(
2730
- ke,
2689
+ Se,
2731
2690
  {
2732
2691
  isNestedRender: e.isNestedRender,
2733
2692
  content: l,
@@ -2753,7 +2712,7 @@ function Tn(e) {
2753
2712
  ))
2754
2713
  ] }) : null,
2755
2714
  /* @__PURE__ */ c(
2756
- ke,
2715
+ Se,
2757
2716
  {
2758
2717
  isNestedRender: e.isNestedRender,
2759
2718
  content: o(),
@@ -2778,13 +2737,13 @@ function Tn(e) {
2778
2737
  )
2779
2738
  ] });
2780
2739
  }
2781
- const Rn = async ({
2740
+ const Tn = async ({
2782
2741
  builderContextValue: e,
2783
2742
  symbol: t
2784
2743
  }) => {
2785
2744
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
2786
2745
  (e != null && e.apiKey))
2787
- return Se({
2746
+ return xe({
2788
2747
  model: t.model,
2789
2748
  apiKey: e.apiKey,
2790
2749
  apiVersion: e.apiVersion,
@@ -2797,7 +2756,7 @@ const Rn = async ({
2797
2756
  J.error("Could not fetch symbol content: ", n);
2798
2757
  });
2799
2758
  };
2800
- async function Pn(e) {
2759
+ async function Rn(e) {
2801
2760
  var a, l, r, s, d;
2802
2761
  const t = function() {
2803
2762
  return "div";
@@ -2806,17 +2765,17 @@ async function Pn(e) {
2806
2765
  }, i = function() {
2807
2766
  var u, h;
2808
2767
  return [
2809
- e.attributes[j()],
2768
+ e.attributes[D()],
2810
2769
  "builder-symbol",
2811
2770
  (u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
2812
2771
  (h = e.symbol) != null && h.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
2813
2772
  ].filter(Boolean).join(" ");
2814
- }, o = ((a = e.symbol) == null ? void 0 : a.content) || await Rn({
2773
+ }, o = ((a = e.symbol) == null ? void 0 : a.content) || await Tn({
2815
2774
  symbol: e.symbol,
2816
2775
  builderContextValue: e.builderContext
2817
2776
  });
2818
2777
  return /* @__PURE__ */ c("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ c(
2819
- Tn,
2778
+ wn,
2820
2779
  {
2821
2780
  isNestedRender: !0,
2822
2781
  apiVersion: e.builderContext.apiVersion,
@@ -2841,15 +2800,15 @@ async function Pn(e) {
2841
2800
  ) });
2842
2801
  }
2843
2802
  export {
2844
- se as Blocks,
2845
- ln as BuilderContext,
2846
- Xe as Button,
2847
- Tt as Columns,
2848
- Tn as Content,
2849
- Rt as Fragment,
2803
+ ce as Blocks,
2804
+ rn as BuilderContext,
2805
+ Ge as Button,
2806
+ wt as Columns,
2807
+ wn as Content,
2808
+ Tt as Fragment,
2850
2809
  Et as Image,
2851
- Wt as Section,
2852
- Pn as Symbol,
2853
- Ht as Text,
2854
- Gt as Video
2810
+ Bt as Section,
2811
+ Rn as Symbol,
2812
+ Ot as Text,
2813
+ Qt as Video
2855
2814
  };