@builder.io/sdk-react-nextjs 0.14.21 → 0.14.24

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 (43) hide show
  1. package/lib/browser/{USE_CLIENT_BUNDLE-421209ac.cjs → USE_CLIENT_BUNDLE-4f10369a.cjs} +2 -2
  2. package/lib/{node/USE_CLIENT_BUNDLE-14685e18.js → browser/USE_CLIENT_BUNDLE-f9d01f92.js} +21 -21
  3. package/lib/{edge/USE_SERVER_BUNDLE-81678d13.js → browser/USE_SERVER_BUNDLE-4e9478d4.js} +1 -1
  4. package/lib/{edge/USE_SERVER_BUNDLE-53f11a34.cjs → browser/USE_SERVER_BUNDLE-76397f77.cjs} +1 -1
  5. package/lib/browser/{bundle-1e8b30d0.cjs → bundle-35974522.cjs} +20 -20
  6. package/lib/browser/{bundle-8e752d91.js → bundle-ca09c73c.js} +333 -333
  7. package/lib/browser/index.cjs +1 -1
  8. package/lib/browser/index.mjs +3 -3
  9. package/lib/{node/USE_CLIENT_BUNDLE-80d049f9.cjs → edge/USE_CLIENT_BUNDLE-d7a952fe.cjs} +2 -2
  10. package/lib/{browser/USE_CLIENT_BUNDLE-85cd491c.js → edge/USE_CLIENT_BUNDLE-edb4fc98.js} +21 -21
  11. package/lib/{node/USE_SERVER_BUNDLE-c93447b3.js → edge/USE_SERVER_BUNDLE-8a6ee05a.js} +1 -1
  12. package/lib/{node/USE_SERVER_BUNDLE-c11df0b0.cjs → edge/USE_SERVER_BUNDLE-e3d2232b.cjs} +1 -1
  13. package/lib/edge/{bundle-4d349481.cjs → bundle-2bd976c9.cjs} +27 -27
  14. package/lib/edge/{bundle-ad170624.js → bundle-bdc1f5be.js} +421 -421
  15. package/lib/edge/index.cjs +1 -1
  16. package/lib/edge/index.mjs +3 -3
  17. package/lib/{edge/USE_CLIENT_BUNDLE-1d5cd7a9.cjs → node/USE_CLIENT_BUNDLE-2a3a1484.cjs} +2 -2
  18. package/lib/{edge/USE_CLIENT_BUNDLE-e965200b.js → node/USE_CLIENT_BUNDLE-af2f5052.js} +21 -21
  19. package/lib/{browser/USE_SERVER_BUNDLE-7f959896.cjs → node/USE_SERVER_BUNDLE-290676c5.cjs} +1 -1
  20. package/lib/{browser/USE_SERVER_BUNDLE-c44b1000.js → node/USE_SERVER_BUNDLE-55adca17.js} +1 -1
  21. package/lib/node/{bundle-8a453488.cjs → bundle-10b57ad3.cjs} +5 -5
  22. package/lib/node/{bundle-5c7927a4.js → bundle-9b0c3f03.js} +49 -49
  23. package/lib/node/index.cjs +1 -1
  24. package/lib/node/index.mjs +3 -3
  25. package/package.json +3 -3
  26. package/types/cjs/blocks/accordion/accordion.d.ts +4 -0
  27. package/types/cjs/blocks/accordion/accordion.types.d.ts +12 -0
  28. package/types/cjs/blocks/accordion/component-info.d.ts +2 -0
  29. package/types/cjs/blocks/accordion/helpers.d.ts +1 -0
  30. package/types/cjs/blocks/accordion/index.d.ts +1 -0
  31. package/types/cjs/components/block/animator.d.ts +0 -1
  32. package/types/cjs/components/content-variants/content-variants.types.d.ts +1 -1
  33. package/types/cjs/constants/sdk-version.d.ts +1 -1
  34. package/types/cjs/functions/camel-to-kebab-case.d.ts +1 -1
  35. package/types/esm/blocks/accordion/accordion.d.ts +4 -0
  36. package/types/esm/blocks/accordion/accordion.types.d.ts +12 -0
  37. package/types/esm/blocks/accordion/component-info.d.ts +2 -0
  38. package/types/esm/blocks/accordion/helpers.d.ts +1 -0
  39. package/types/esm/blocks/accordion/index.d.ts +1 -0
  40. package/types/esm/components/block/animator.d.ts +0 -1
  41. package/types/esm/components/content-variants/content-variants.types.d.ts +1 -1
  42. package/types/esm/constants/sdk-version.d.ts +1 -1
  43. package/types/esm/functions/camel-to-kebab-case.d.ts +1 -1
@@ -1,9 +1,9 @@
1
1
  import { jsx as l, Fragment as C, jsxs as R } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import { LRUCache as Fe } from "lru-cache";
4
- import { I as Le, B as Ue, a as De, D as _e, C as Me, E as je, b as He, V as Ke, c as ze, F as qe, d as Ye, S as Ge, e as Je } from "./USE_CLIENT_BUNDLE-85cd491c.js";
4
+ import { I as Le, B as Ue, a as De, D as _e, C as Me, E as je, b as He, V as Ke, c as ze, F as qe, d as Ye, S as Ge, e as Je } from "./USE_CLIENT_BUNDLE-f9d01f92.js";
5
5
  import "next/navigation";
6
- const Qe = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), po = (e) => typeof e == "string" && Qe.has(e.toLowerCase()), T = "rsc", M = () => {
6
+ const Qe = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ho = (e) => typeof e == "string" && Qe.has(e.toLowerCase()), T = "rsc", M = () => {
7
7
  switch (T) {
8
8
  case "react":
9
9
  case "reactNative":
@@ -28,11 +28,11 @@ function Xe(e) {
28
28
  builderBlock: e
29
29
  };
30
30
  }
31
- const A = "[Builder.io]: ", w = {
32
- log: (...e) => console.log(A, ...e),
33
- error: (...e) => console.error(A, ...e),
34
- warn: (...e) => console.warn(A, ...e),
35
- debug: (...e) => console.debug(A, ...e)
31
+ const P = "[Builder.io]: ", w = {
32
+ log: (...e) => console.log(P, ...e),
33
+ error: (...e) => console.error(P, ...e),
34
+ warn: (...e) => console.warn(P, ...e),
35
+ debug: (...e) => console.debug(P, ...e)
36
36
  };
37
37
  function k() {
38
38
  return typeof window < "u" && typeof document < "u";
@@ -42,13 +42,13 @@ const Ze = (e) => {
42
42
  return e.forEach((n, o) => {
43
43
  t[o] = n;
44
44
  }), t;
45
- }, de = (e) => e instanceof URLSearchParams ? Ze(e) : e, ue = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
45
+ }, ue = (e) => e instanceof URLSearchParams ? Ze(e) : e, me = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
46
46
  function et() {
47
47
  return k() && window.self !== window.top;
48
48
  }
49
- function me(e) {
49
+ function fe(e) {
50
50
  return et() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
51
- ue(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
51
+ me(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
52
52
  }
53
53
  const tt = () => {
54
54
  if (k()) {
@@ -56,7 +56,7 @@ const tt = () => {
56
56
  return e.pathname === "" && (e.pathname = "/"), e;
57
57
  } else
58
58
  return console.warn("Cannot get location for tracking in non-browser environment"), null;
59
- }, nt = () => typeof navigator == "object" && navigator.userAgent || "", fe = () => {
59
+ }, nt = () => typeof navigator == "object" && navigator.userAgent || "", he = () => {
60
60
  const e = nt(), t = {
61
61
  Android() {
62
62
  return e.match(/Android/i);
@@ -95,13 +95,13 @@ const tt = () => {
95
95
  context: t,
96
96
  event: n
97
97
  }), it = () => ({
98
- isEditing: me(),
98
+ isEditing: fe(),
99
99
  isBrowser: k(),
100
100
  isServer: !k(),
101
- getUserAttributes: () => fe()
101
+ getUserAttributes: () => he()
102
102
  }), rt = (e, {
103
103
  isExpression: t = !0
104
- }) => /* 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, J = ({
104
+ }) => /* 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, Q = ({
105
105
  code: e,
106
106
  builder: t,
107
107
  context: n,
@@ -114,7 +114,7 @@ const tt = () => {
114
114
  builder: t,
115
115
  context: n,
116
116
  event: o,
117
- state: he({
117
+ state: pe({
118
118
  rootState: a,
119
119
  localState: i,
120
120
  rootSetState: r
@@ -122,7 +122,7 @@ const tt = () => {
122
122
  });
123
123
  return new Function(...s.map(([c]) => c), e)(...s.map(([, c]) => c));
124
124
  };
125
- function he({
125
+ function pe({
126
126
  rootState: e,
127
127
  localState: t,
128
128
  rootSetState: n
@@ -132,7 +132,7 @@ function he({
132
132
  if (t && i in t)
133
133
  return t[i];
134
134
  const r = o[i];
135
- return typeof r == "object" && r !== null ? he({
135
+ return typeof r == "object" && r !== null ? pe({
136
136
  rootState: r,
137
137
  localState: void 0,
138
138
  rootSetState: n ? (a) => {
@@ -158,7 +158,7 @@ const st = () => {
158
158
  return !1;
159
159
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
160
160
  return e && t && !n ? (w.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;
161
- }, ct = (e) => (k() || st(), J(e)), j = class P {
161
+ }, ct = (e) => (k() || st(), Q(e)), j = class A {
162
162
  static getCacheKey(t) {
163
163
  return JSON.stringify({
164
164
  ...t,
@@ -168,10 +168,10 @@ const st = () => {
168
168
  });
169
169
  }
170
170
  static getCachedValue(t) {
171
- return P.cache.get(t);
171
+ return A.cache.get(t);
172
172
  }
173
173
  static setCachedValue(t, n) {
174
- P.cache.size > 20 && P.cache.delete(P.cache.keys().next().value), P.cache.set(t, {
174
+ A.cache.size > 20 && A.cache.delete(A.cache.keys().next().value), A.cache.set(t, {
175
175
  value: n
176
176
  });
177
177
  }
@@ -221,7 +221,7 @@ function H({
221
221
  return;
222
222
  }
223
223
  }
224
- const O = (e) => JSON.parse(JSON.stringify(e)), lt = (e, t, n) => {
224
+ const $ = (e) => JSON.parse(JSON.stringify(e)), lt = (e, t, n) => {
225
225
  if (Object(e) !== e)
226
226
  return e;
227
227
  const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
@@ -236,7 +236,7 @@ const dt = ({
236
236
  }) => {
237
237
  if (!e.bindings)
238
238
  return e;
239
- const r = O(e), a = {
239
+ const r = $(e), a = {
240
240
  ...r,
241
241
  properties: {
242
242
  ...r.properties
@@ -258,7 +258,7 @@ const dt = ({
258
258
  }
259
259
  return a;
260
260
  };
261
- function $({
261
+ function O({
262
262
  block: e,
263
263
  context: t,
264
264
  shouldEvaluateBindings: n,
@@ -275,42 +275,42 @@ function $({
275
275
  context: t
276
276
  }) : a;
277
277
  }
278
- const ut = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), pe = (e) => Object.entries(e).map(([n, o]) => {
278
+ const K = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "", ge = (e) => Object.entries(e).map(([n, o]) => {
279
279
  if (typeof o == "string")
280
- return `${ut(n)}: ${o};`;
281
- }).filter(I), mt = (e) => pe(e).join(`
280
+ return `${K(n)}: ${o};`;
281
+ }).filter(I), ut = (e) => ge(e).join(`
282
282
  `), B = ({
283
283
  mediaQuery: e,
284
284
  className: t,
285
285
  styles: n
286
286
  }) => {
287
287
  const o = `.${t} {
288
- ${mt(n)}
288
+ ${ut(n)}
289
289
  }`;
290
290
  return e ? `${e} {
291
291
  ${o}
292
292
  }` : o;
293
293
  };
294
- function ft({
294
+ function mt({
295
295
  style: e
296
296
  }) {
297
297
  return e;
298
298
  }
299
- const ht = ({
299
+ const ft = ({
300
300
  block: e,
301
301
  context: t
302
- }) => ge(ft({
302
+ }) => be(mt({
303
303
  style: e.style || {},
304
304
  context: t,
305
305
  block: e
306
306
  }));
307
- function ge(e) {
307
+ function be(e) {
308
308
  switch (T) {
309
309
  case "svelte":
310
310
  case "vue":
311
311
  case "solid":
312
312
  case "angular":
313
- return pe(e).join(" ");
313
+ return ge(e).join(" ");
314
314
  case "qwik":
315
315
  case "reactNative":
316
316
  case "react":
@@ -318,13 +318,13 @@ function ge(e) {
318
318
  return e;
319
319
  }
320
320
  }
321
- const pt = ({
321
+ const ht = ({
322
322
  block: e,
323
323
  context: t,
324
324
  registeredComponents: n
325
325
  }) => {
326
326
  var r;
327
- const o = (r = $({
327
+ const o = (r = O({
328
328
  block: e,
329
329
  localState: t.localState,
330
330
  rootState: t.rootState,
@@ -340,7 +340,7 @@ const pt = ({
340
340
  console.warn(`
341
341
  Could not find a registered component named "${o}".
342
342
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
343
- }, gt = ({
343
+ }, pt = ({
344
344
  block: e,
345
345
  context: t
346
346
  }) => {
@@ -374,7 +374,7 @@ const pt = ({
374
374
  },
375
375
  block: o
376
376
  }));
377
- }, bt = (e) => e && (e.isRSC || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e.name)), yt = (e) => e && (e.isRSC || ["Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e.name)), be = {
377
+ }, gt = (e) => e && (e.isRSC || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)), bt = (e) => e && (e.isRSC || ["Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)), ye = {
378
378
  small: {
379
379
  min: 320,
380
380
  default: 321,
@@ -390,11 +390,11 @@ const pt = ({
390
390
  default: 991,
391
391
  max: 1200
392
392
  }
393
- }, Q = (e, t = be) => `@media (max-width: ${t[e].max}px)`, ye = ({
393
+ }, X = (e, t = ye) => `@media (max-width: ${t[e].max}px)`, Se = ({
394
394
  small: e,
395
395
  medium: t
396
396
  }) => {
397
- const n = O(be);
397
+ const n = $(ye);
398
398
  if (!e || !t)
399
399
  return n;
400
400
  const o = Math.floor(e / 2);
@@ -426,50 +426,9 @@ function N(e) {
426
426
  }
427
427
  );
428
428
  }
429
- function X(e, ...t) {
430
- const n = Object(e);
431
- for (let o = 1; o < arguments.length; o++) {
432
- const i = arguments[o];
433
- if (i != null)
434
- for (const r in i)
435
- Object.prototype.hasOwnProperty.call(i, r) && (n[r] = i[r]);
436
- }
437
- return n;
438
- }
439
- const Se = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
440
- function St(e) {
441
- console.warn(`Cannot animate element: element with ID ${e} not found!`);
442
- }
443
- function vt(e, t) {
444
- const n = kt(e), o = getComputedStyle(t), i = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [i, r];
445
- for (const s of a)
446
- for (const c of n)
447
- c in s || (s[c] = o[c]);
448
- }
449
- function kt(e) {
450
- const t = [];
451
- for (const n of e.steps)
452
- for (const o in n.styles)
453
- t.indexOf(o) === -1 && t.push(o);
454
- return t;
455
- }
456
- function go(e) {
457
- const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
458
- if (!t.length) {
459
- St(e.elementId || e.id || "");
460
- return;
461
- }
462
- Array.from(t).forEach((n) => {
463
- vt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", X(n.style, e.steps[0].styles), setTimeout(() => {
464
- n.style.transition = `all ${e.duration}s ${Se(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), X(n.style, e.steps[1].styles), setTimeout(() => {
465
- n.style.transition = "", n.style.transitionDelay = "";
466
- }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
467
- });
468
- });
469
- }
470
- function Ct(e) {
429
+ function yt(e) {
471
430
  const t = function() {
472
- const i = $({
431
+ const i = O({
473
432
  block: e.block,
474
433
  localState: e.context.localState,
475
434
  rootState: e.context.rootState,
@@ -480,14 +439,14 @@ function Ct(e) {
480
439
  return I(i.hide) ? !i.hide : I(i.show) ? i.show : !0;
481
440
  }, n = function() {
482
441
  var m, p, y;
483
- const i = $({
442
+ const i = O({
484
443
  block: e.block,
485
444
  localState: e.context.localState,
486
445
  rootState: e.context.rootState,
487
446
  rootSetState: e.context.rootSetState,
488
447
  context: e.context.context,
489
448
  shouldEvaluateBindings: !0
490
- }), r = i.responsiveStyles, a = e.context.content, s = ye(
449
+ }), r = i.responsiveStyles, a = e.context.content, s = Se(
491
450
  ((m = a == null ? void 0 : a.meta) == null ? void 0 : m.breakpoints) || {}
492
451
  ), c = r == null ? void 0 : r.large, u = r == null ? void 0 : r.medium, h = r == null ? void 0 : r.small, d = i.id;
493
452
  if (!d)
@@ -498,14 +457,14 @@ function Ct(e) {
498
457
  }) : "", g = u ? B({
499
458
  className: d,
500
459
  styles: u,
501
- mediaQuery: Q(
460
+ mediaQuery: X(
502
461
  "medium",
503
462
  s
504
463
  )
505
464
  }) : "", v = h ? B({
506
465
  className: d,
507
466
  styles: h,
508
- mediaQuery: Q(
467
+ mediaQuery: X(
509
468
  "small",
510
469
  s
511
470
  )
@@ -517,7 +476,7 @@ function Ct(e) {
517
476
  className: `${d}:hover`,
518
477
  styles: {
519
478
  ...S,
520
- transition: `all ${b.duration}s ${Se(
479
+ transition: `all ${b.duration}s ${K(
521
480
  b.easing
522
481
  )}`,
523
482
  transitionDelay: b.delay ? `${b.delay}s` : "0s"
@@ -533,10 +492,10 @@ function Ct(e) {
533
492
  };
534
493
  return /* @__PURE__ */ l(C, { children: n() && t() ? /* @__PURE__ */ l(C, { children: /* @__PURE__ */ l(N, { id: "builderio-block", styles: n() }) }) : null });
535
494
  }
536
- function xt(e) {
495
+ function St(e) {
537
496
  return e.charAt(0).toUpperCase() + e.slice(1);
538
497
  }
539
- const wt = (e) => `on${xt(e)}`, It = (e, t) => (n) => H({
498
+ const vt = (e) => `on${St(e)}`, kt = (e, t) => (n) => H({
540
499
  code: e,
541
500
  context: t.context,
542
501
  localState: t.localState,
@@ -546,13 +505,13 @@ const wt = (e) => `on${xt(e)}`, It = (e, t) => (n) => H({
546
505
  isExpression: !1,
547
506
  enableCache: !0
548
507
  });
549
- function bo(e) {
508
+ function po(e) {
550
509
  const t = {}, n = e.block.actions ?? {};
551
510
  for (const o in n) {
552
511
  if (!n.hasOwnProperty(o))
553
512
  continue;
554
513
  const i = n[o];
555
- let r = wt(o);
514
+ let r = vt(o);
556
515
  if (e.stripPrefix)
557
516
  switch (T) {
558
517
  case "vue":
@@ -562,40 +521,40 @@ function bo(e) {
562
521
  r = r.replace("on:", "");
563
522
  break;
564
523
  }
565
- t[r] = It(i, e);
524
+ t[r] = kt(i, e);
566
525
  }
567
526
  return t;
568
527
  }
569
- function Tt({
528
+ function Ct({
570
529
  properties: e
571
530
  }) {
572
531
  return e;
573
532
  }
574
- const Et = (e) => ({
533
+ const xt = (e) => ({
575
534
  href: e.href
576
535
  });
577
- function Rt({
536
+ function wt({
578
537
  block: e,
579
538
  context: t
580
539
  }) {
581
540
  var o;
582
541
  const n = {
583
- ...Et(e),
542
+ ...xt(e),
584
543
  ...e.properties,
585
544
  "builder-id": e.id,
586
- style: ht({
545
+ style: ft({
587
546
  block: e,
588
547
  context: t
589
548
  }),
590
549
  [M()]: [e.id, "builder-block", e.class, (o = e.properties) == null ? void 0 : o.class].filter(Boolean).join(" ")
591
550
  };
592
- return Tt({
551
+ return Ct({
593
552
  properties: n,
594
553
  context: t,
595
554
  block: e
596
555
  });
597
556
  }
598
- const Pt = ({
557
+ const It = ({
599
558
  componentOptions: e,
600
559
  builderBlock: t,
601
560
  context: n,
@@ -611,7 +570,7 @@ const Pt = ({
611
570
  * component itself directly. Otherwise, they are provided to the wrapper element.
612
571
  */
613
572
  ...i ? {
614
- attributes: Rt({
573
+ attributes: wt({
615
574
  block: t,
616
575
  context: a
617
576
  })
@@ -631,7 +590,7 @@ function Z(e) {
631
590
  return /* @__PURE__ */ l(C, { children: e.componentRef ? /* @__PURE__ */ l(C, { children: /* @__PURE__ */ l(
632
591
  t,
633
592
  {
634
- ...Pt({
593
+ ...It({
635
594
  componentOptions: e.componentOptions,
636
595
  builderBlock: e.builderBlock,
637
596
  context: e.context,
@@ -654,7 +613,7 @@ function Z(e) {
654
613
  }
655
614
  ) }) : null });
656
615
  }
657
- function At(e) {
616
+ function Tt(e) {
658
617
  const t = e.repeatContext;
659
618
  return /* @__PURE__ */ l(
660
619
  F,
@@ -669,19 +628,19 @@ function At(e) {
669
628
  function F(e) {
670
629
  var c, u, h;
671
630
  const t = function() {
672
- return pt({
631
+ return ht({
673
632
  block: e.block,
674
633
  context: e.context,
675
634
  registeredComponents: e.registeredComponents
676
635
  });
677
636
  }, n = function() {
678
- return gt({
637
+ return pt({
679
638
  block: e.block,
680
639
  context: e.context
681
640
  });
682
641
  }, o = function() {
683
642
  var f;
684
- return (f = e.block.repeat) != null && f.collection ? e.block : $({
643
+ return (f = e.block.repeat) != null && f.collection ? e.block : O({
685
644
  block: e.block,
686
645
  localState: e.context.localState,
687
646
  rootState: e.context.rootState,
@@ -709,10 +668,10 @@ function F(e) {
709
668
  componentOptions: {
710
669
  ...Xe(o()),
711
670
  builderContext: e.context,
712
- ...bt(t()) ? {
671
+ ...gt(t()) ? {
713
672
  builderLinkComponent: e.linkComponent
714
673
  } : {},
715
- ...yt(t()) ? {
674
+ ...bt(t()) ? {
716
675
  builderComponents: e.registeredComponents
717
676
  } : {}
718
677
  },
@@ -725,7 +684,7 @@ function F(e) {
725
684
  };
726
685
  };
727
686
  return /* @__PURE__ */ l(C, { children: r() ? /* @__PURE__ */ R(C, { children: [
728
- /* @__PURE__ */ l(Ct, { block: e.block, context: e.context }),
687
+ /* @__PURE__ */ l(yt, { block: e.block, context: e.context }),
729
688
  (c = t()) != null && c.noWrap ? /* @__PURE__ */ l(C, { children: /* @__PURE__ */ l(
730
689
  Z,
731
690
  {
@@ -740,7 +699,7 @@ function F(e) {
740
699
  isInteractive: s().isInteractive
741
700
  }
742
701
  ) }) : /* @__PURE__ */ l(C, { children: n() ? /* @__PURE__ */ l(C, { children: (h = n()) == null ? void 0 : h.map((d, f) => /* @__PURE__ */ l(
743
- At,
702
+ Tt,
744
703
  {
745
704
  repeatContext: d.context,
746
705
  block: d.block,
@@ -785,7 +744,7 @@ function F(e) {
785
744
  ) })
786
745
  ] }) : null });
787
746
  }
788
- function K(e) {
747
+ function z(e) {
789
748
  var t, n, o;
790
749
  return /* @__PURE__ */ l(
791
750
  De,
@@ -809,8 +768,8 @@ function K(e) {
809
768
  }
810
769
  );
811
770
  }
812
- const Vt = (e) => `builder-columns ${e}-breakpoints`;
813
- function Bt(e) {
771
+ const Et = (e) => `builder-columns ${e}-breakpoints`;
772
+ function Rt(e) {
814
773
  var b, E;
815
774
  const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], o = e.stackColumnsAt || "tablet", i = function(p) {
816
775
  return p.link ? e.builderLinkComponent || "a" : "div";
@@ -839,7 +798,7 @@ function Bt(e) {
839
798
  })
840
799
  };
841
800
  }, d = function(p) {
842
- const y = p === 0 ? 0 : t, S = a(p), x = `${y}px`, Y = "100%", G = 0;
801
+ const y = p === 0 ? 0 : t, S = a(p), x = `${y}px`, G = "100%", J = 0;
843
802
  return {
844
803
  ...{
845
804
  display: "flex",
@@ -849,25 +808,25 @@ function Bt(e) {
849
808
  width: S,
850
809
  ["marginLeft"]: x,
851
810
  "--column-width-mobile": c({
852
- stackedStyle: Y,
811
+ stackedStyle: G,
853
812
  desktopStyle: S
854
813
  }),
855
814
  "--column-margin-left-mobile": c({
856
- stackedStyle: G,
815
+ stackedStyle: J,
857
816
  desktopStyle: x
858
817
  }),
859
818
  "--column-width-tablet": s({
860
- stackedStyle: Y,
819
+ stackedStyle: G,
861
820
  desktopStyle: S
862
821
  }),
863
822
  "--column-margin-left-tablet": s({
864
- stackedStyle: G,
823
+ stackedStyle: J,
865
824
  desktopStyle: x
866
825
  })
867
826
  };
868
827
  }, f = function(p) {
869
828
  var S, x;
870
- return ye(
829
+ return Se(
871
830
  ((x = (S = e.builderContext.content) == null ? void 0 : S.meta) == null ? void 0 : x.breakpoints) || {}
872
831
  )[p].max;
873
832
  }, g = function() {
@@ -902,14 +861,14 @@ function Bt(e) {
902
861
  href: p.link
903
862
  } : {},
904
863
  [M()]: "builder-column",
905
- style: ge(d(y))
864
+ style: be(d(y))
906
865
  };
907
866
  };
908
867
  return /* @__PURE__ */ R(C, { children: [
909
868
  /* @__PURE__ */ R(
910
869
  "div",
911
870
  {
912
- className: Vt((b = e.builderBlock) == null ? void 0 : b.id) + " div-2651dce4",
871
+ className: Et((b = e.builderBlock) == null ? void 0 : b.id) + " div-eeca3604",
913
872
  style: h(),
914
873
  children: [
915
874
  /* @__PURE__ */ l(N, { id: "builderio-columns", styles: g() }),
@@ -920,7 +879,7 @@ function Bt(e) {
920
879
  actionAttributes: {},
921
880
  attributes: v(m, p),
922
881
  children: /* @__PURE__ */ l(
923
- K,
882
+ z,
924
883
  {
925
884
  path: `component.options.columns.${p}.blocks`,
926
885
  parent: e.builderBlock.id,
@@ -939,7 +898,7 @@ function Bt(e) {
939
898
  ]
940
899
  }
941
900
  ),
942
- /* @__PURE__ */ l("style", { children: `.div-2651dce4 {
901
+ /* @__PURE__ */ l("style", { children: `.div-eeca3604 {
943
902
  display: flex;
944
903
  line-height: normal;
945
904
  }` })
@@ -948,11 +907,11 @@ function Bt(e) {
948
907
  function ee(e) {
949
908
  return e.replace(/http(s)?:/, "");
950
909
  }
951
- function Wt(e = "", t, n) {
910
+ function At(e = "", t, n) {
952
911
  const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), i = e.indexOf("?") !== -1 ? "&" : "?";
953
912
  return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + i + t + "=" + encodeURIComponent(n);
954
913
  }
955
- function $t(e, t) {
914
+ function Pt(e, t) {
956
915
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
957
916
  return e;
958
917
  if (t === "master")
@@ -964,18 +923,18 @@ function $t(e, t) {
964
923
  }
965
924
  return null;
966
925
  }
967
- function yo(e) {
926
+ function go(e) {
968
927
  if (!e)
969
928
  return e;
970
929
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
971
930
  if (e.match(/builder\.io/)) {
972
931
  let n = e;
973
932
  const o = Number(e.split("?width=")[1]);
974
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((i) => i !== o).map((i) => `${Wt(e, "width", i)} ${i}w`).concat([n]).join(", ");
933
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((i) => i !== o).map((i) => `${At(e, "width", i)} ${i}w`).concat([n]).join(", ");
975
934
  }
976
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [$t(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
935
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Pt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
977
936
  }
978
- const Ot = (e) => {
937
+ const Vt = (e) => {
979
938
  if (e === "localhost" || e === "127.0.0.1")
980
939
  return e;
981
940
  const t = e.split(".");
@@ -991,13 +950,13 @@ const Ot = (e) => {
991
950
  w.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
992
951
  return;
993
952
  }
994
- }, ke = async (e) => ve(e), Nt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(I).join("; "), Ft = [["secure", ""], ["SameSite", "None"]], Lt = ({
953
+ }, ke = async (e) => ve(e), Bt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(I).join("; "), Wt = [["secure", ""], ["SameSite", "None"]], Ot = ({
995
954
  name: e,
996
955
  value: t,
997
956
  expires: n
998
957
  }) => {
999
- const i = (k() ? location.protocol === "https:" : !0) ? Ft : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], a = [[e, t], ...r, ["path", "/"], ["domain", Ot(window.location.hostname)], ...i];
1000
- return Nt(a);
958
+ const i = (k() ? location.protocol === "https:" : !0) ? Wt : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], a = [[e, t], ...r, ["path", "/"], ["domain", Vt(window.location.hostname)], ...i];
959
+ return Bt(a);
1001
960
  }, Ce = async ({
1002
961
  name: e,
1003
962
  value: t,
@@ -1007,7 +966,7 @@ const Ot = (e) => {
1007
966
  try {
1008
967
  if (!o)
1009
968
  return;
1010
- const i = Lt({
969
+ const i = Ot({
1011
970
  name: e,
1012
971
  value: t,
1013
972
  expires: n
@@ -1016,24 +975,24 @@ const Ot = (e) => {
1016
975
  } catch (i) {
1017
976
  w.warn("[COOKIE] SET error: ", (i == null ? void 0 : i.message) || i);
1018
977
  }
1019
- }, Ut = "builder.tests", z = (e) => `${Ut}.${e}`, Dt = ({
978
+ }, $t = "builder.tests", q = (e) => `${$t}.${e}`, Nt = ({
1020
979
  contentId: e
1021
980
  }) => ke({
1022
- name: z(e),
981
+ name: q(e),
1023
982
  canTrack: !0
1024
- }), _t = ({
983
+ }), Ft = ({
1025
984
  contentId: e
1026
985
  }) => ve({
1027
- name: z(e),
986
+ name: q(e),
1028
987
  canTrack: !0
1029
- }), Mt = ({
988
+ }), Lt = ({
1030
989
  contentId: e,
1031
990
  value: t
1032
991
  }) => Ce({
1033
- name: z(e),
992
+ name: q(e),
1034
993
  value: t,
1035
994
  canTrack: !0
1036
- }), xe = (e) => I(e.id) && I(e.variations) && Object.keys(e.variations).length > 0, jt = ({
995
+ }), xe = (e) => I(e.id) && I(e.variations) && Object.keys(e.variations).length > 0, Ut = ({
1037
996
  id: e,
1038
997
  variations: t
1039
998
  }) => {
@@ -1047,8 +1006,8 @@ const Ot = (e) => {
1047
1006
  }
1048
1007
  return e;
1049
1008
  }, we = (e) => {
1050
- const t = jt(e);
1051
- return Mt({
1009
+ const t = Ut(e);
1010
+ return Lt({
1052
1011
  contentId: e.id,
1053
1012
  value: t
1054
1013
  }).catch((n) => {
@@ -1068,7 +1027,7 @@ const Ot = (e) => {
1068
1027
  testVariationId: n.id,
1069
1028
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
1070
1029
  };
1071
- }, Ht = ({
1030
+ }, Dt = ({
1072
1031
  item: e,
1073
1032
  canTrack: t
1074
1033
  }) => {
@@ -1078,7 +1037,7 @@ const Ot = (e) => {
1078
1037
  return;
1079
1038
  if (!xe(e))
1080
1039
  return e;
1081
- const n = _t({
1040
+ const n = Ft({
1082
1041
  contentId: e.id
1083
1042
  }) || we({
1084
1043
  variations: e.variations,
@@ -1091,13 +1050,13 @@ const Ot = (e) => {
1091
1050
  ...e,
1092
1051
  ...o
1093
1052
  };
1094
- }, Kt = async ({
1053
+ }, _t = async ({
1095
1054
  item: e,
1096
1055
  canTrack: t
1097
1056
  }) => {
1098
1057
  if (!t || !xe(e))
1099
1058
  return e;
1100
- const o = await Dt({
1059
+ const o = await Nt({
1101
1060
  contentId: e.id
1102
1061
  }) || we({
1103
1062
  variations: e.variations,
@@ -1110,7 +1069,7 @@ const Ot = (e) => {
1110
1069
  ...e,
1111
1070
  ...i
1112
1071
  };
1113
- }, L = (e) => I(e) ? e : !0, zt = {
1072
+ }, L = (e) => I(e) ? e : !0, Mt = {
1114
1073
  name: "Core:Button",
1115
1074
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1116
1075
  defaultStyles: {
@@ -1143,7 +1102,7 @@ const Ot = (e) => {
1143
1102
  }],
1144
1103
  static: !0,
1145
1104
  noWrap: !0
1146
- }, qt = {
1105
+ }, jt = {
1147
1106
  // TODO: ways to statically preprocess JSON for references, functions, etc
1148
1107
  name: "Columns",
1149
1108
  isRSC: !0,
@@ -1344,13 +1303,13 @@ const Ot = (e) => {
1344
1303
  helperText: "When stacking columns for mobile devices, reverse the ordering",
1345
1304
  advanced: !0
1346
1305
  }]
1347
- }, Yt = {
1306
+ }, Ht = {
1348
1307
  name: "Fragment",
1349
1308
  static: !0,
1350
1309
  hidden: !0,
1351
1310
  canHaveChildren: !0,
1352
1311
  noWrap: !0
1353
- }, Gt = {
1312
+ }, Kt = {
1354
1313
  name: "Image",
1355
1314
  static: !0,
1356
1315
  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",
@@ -1450,7 +1409,7 @@ const Ot = (e) => {
1450
1409
  advanced: !0,
1451
1410
  defaultValue: 0.7041
1452
1411
  }]
1453
- }, Jt = {
1412
+ }, zt = {
1454
1413
  name: "Core:Section",
1455
1414
  static: !0,
1456
1415
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1489,7 +1448,7 @@ const Ot = (e) => {
1489
1448
  }
1490
1449
  }
1491
1450
  }]
1492
- }, Qt = {
1451
+ }, qt = {
1493
1452
  name: "Slot",
1494
1453
  isRSC: !0,
1495
1454
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1503,7 +1462,7 @@ const Ot = (e) => {
1503
1462
  defaultValue: "children"
1504
1463
  }]
1505
1464
  };
1506
- function Xt(e) {
1465
+ function Yt(e) {
1507
1466
  var t, n, o;
1508
1467
  return /* @__PURE__ */ l(
1509
1468
  "div",
@@ -1515,7 +1474,7 @@ function Xt(e) {
1515
1474
  "builder-slot": e.name
1516
1475
  },
1517
1476
  children: /* @__PURE__ */ l(
1518
- K,
1477
+ z,
1519
1478
  {
1520
1479
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
1521
1480
  path: `symbol.data.${e.name}`,
@@ -1526,7 +1485,7 @@ function Xt(e) {
1526
1485
  }
1527
1486
  );
1528
1487
  }
1529
- const Zt = {
1488
+ const Gt = {
1530
1489
  name: "Symbol",
1531
1490
  noWrap: !0,
1532
1491
  static: !0,
@@ -1559,7 +1518,7 @@ const Zt = {
1559
1518
  hideFromUI: !0,
1560
1519
  type: "boolean"
1561
1520
  }]
1562
- }, en = {
1521
+ }, Jt = {
1563
1522
  name: "Text",
1564
1523
  static: !0,
1565
1524
  isRSC: !0,
@@ -1578,7 +1537,7 @@ const Zt = {
1578
1537
  textAlign: "center"
1579
1538
  }
1580
1539
  };
1581
- function tn(e) {
1540
+ function Qt(e) {
1582
1541
  var t;
1583
1542
  return /* @__PURE__ */ l(
1584
1543
  "div",
@@ -1591,7 +1550,7 @@ function tn(e) {
1591
1550
  }
1592
1551
  );
1593
1552
  }
1594
- const nn = {
1553
+ const Xt = {
1595
1554
  name: "Custom Code",
1596
1555
  static: !0,
1597
1556
  requiredPermissions: ["editCode"],
@@ -1613,7 +1572,7 @@ const nn = {
1613
1572
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
1614
1573
  advanced: !0
1615
1574
  }]
1616
- }, on = {
1575
+ }, Zt = {
1617
1576
  name: "Embed",
1618
1577
  static: !0,
1619
1578
  inputs: [{
@@ -1638,7 +1597,7 @@ const nn = {
1638
1597
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1639
1598
  hideFromUI: !0
1640
1599
  }]
1641
- }, rn = ["text/javascript", "application/javascript", "application/ecmascript"], So = (e) => rn.includes(e.type), an = {
1600
+ }, en = ["text/javascript", "application/javascript", "application/ecmascript"], bo = (e) => en.includes(e.type), tn = {
1642
1601
  // friendlyName?
1643
1602
  name: "Raw:Img",
1644
1603
  hideFromInsertMenu: !0,
@@ -1652,7 +1611,7 @@ const nn = {
1652
1611
  }],
1653
1612
  noWrap: !0,
1654
1613
  static: !0
1655
- }, sn = {
1614
+ }, nn = {
1656
1615
  name: "Video",
1657
1616
  canHaveChildren: !0,
1658
1617
  defaultStyles: {
@@ -1733,58 +1692,58 @@ const nn = {
1733
1692
  defaultValue: !0,
1734
1693
  advanced: !0
1735
1694
  }]
1736
- }, cn = () => [{
1695
+ }, on = () => [{
1737
1696
  component: Me,
1738
- ...nn
1697
+ ...Xt
1739
1698
  }, {
1740
1699
  component: je,
1741
- ...on
1700
+ ...Zt
1742
1701
  }, {
1743
1702
  component: He,
1744
- ...an
1703
+ ...tn
1745
1704
  }, {
1746
1705
  component: Ke,
1747
- ...sn
1706
+ ...nn
1748
1707
  }], te = () => [{
1749
1708
  component: ze,
1750
- ...zt
1709
+ ...Mt
1751
1710
  }, {
1752
- component: Bt,
1753
- ...qt
1711
+ component: Rt,
1712
+ ...jt
1754
1713
  }, {
1755
1714
  component: qe,
1756
- ...Yt
1715
+ ...Ht
1757
1716
  }, {
1758
1717
  component: Ye,
1759
- ...Gt
1718
+ ...Kt
1760
1719
  }, {
1761
1720
  component: Ge,
1762
- ...Jt
1721
+ ...zt
1763
1722
  }, {
1764
- component: Xt,
1765
- ...Qt
1723
+ component: Yt,
1724
+ ...qt
1766
1725
  }, {
1767
- component: ao,
1768
- ...Zt
1726
+ component: ro,
1727
+ ...Gt
1769
1728
  }, {
1770
- component: tn,
1771
- ...en
1772
- }, ...cn()], vo = (e) => ({
1729
+ component: Qt,
1730
+ ...Jt
1731
+ }, ...on()], yo = (e) => ({
1773
1732
  type: "builder.registerComponent",
1774
1733
  data: U(e)
1775
- }), ln = (e) => {
1734
+ }), rn = (e) => {
1776
1735
  const t = e.toString().trim();
1777
1736
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
1778
- }, dn = (e) => typeof e == "function" ? ln(e) : O(e), U = ({
1737
+ }, an = (e) => typeof e == "function" ? rn(e) : $(e), U = ({
1779
1738
  inputs: e,
1780
1739
  ...t
1781
1740
  }) => ({
1782
- ...O(t),
1741
+ ...$(t),
1783
1742
  inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [i, r]) => ({
1784
1743
  ...o,
1785
- [i]: dn(r)
1744
+ [i]: an(r)
1786
1745
  }), {}))
1787
- }), un = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
1746
+ }), sn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
1788
1747
  function getAndSetVariantId() {
1789
1748
  function setCookie(name, value, days) {
1790
1749
  let expires = '';
@@ -1840,7 +1799,7 @@ const nn = {
1840
1799
  }).join('');
1841
1800
  styleEl.innerHTML = newStyleStr;
1842
1801
  }
1843
- }`, mn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
1802
+ }`, cn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
1844
1803
  if (!navigator.cookieEnabled) {
1845
1804
  return;
1846
1805
  }
@@ -1878,16 +1837,16 @@ const nn = {
1878
1837
  ...t,
1879
1838
  testVariationId: t.id,
1880
1839
  id: e == null ? void 0 : e.id
1881
- })), fn = ({
1840
+ })), ln = ({
1882
1841
  canTrack: e,
1883
1842
  content: t
1884
- }) => !(!(W(t).length > 0) || !e || k()), hn = (e) => e === "react" || e === "reactNative", Re = hn(T), pn = () => `
1885
- window.${Te} = ${un}
1886
- window.${Ee} = ${mn}
1887
- `, gn = (e, t) => `
1843
+ }) => !(!(W(t).length > 0) || !e || k()), dn = (e) => e === "react" || e === "reactNative", Re = dn(T), un = () => `
1844
+ window.${Te} = ${sn}
1845
+ window.${Ee} = ${cn}
1846
+ `, mn = (e, t) => `
1888
1847
  window.${Te}(
1889
1848
  "${t}",${JSON.stringify(e)}, ${Re}
1890
- )`, bn = ({
1849
+ )`, fn = ({
1891
1850
  contentId: e,
1892
1851
  variationId: t
1893
1852
  }) => `window.${Ee}(
@@ -1902,33 +1861,33 @@ function D(e) {
1902
1861
  }
1903
1862
  );
1904
1863
  }
1905
- const yn = (e) => {
1864
+ const hn = (e) => {
1906
1865
  const t = e.get("preview"), n = e.get("overrides." + t);
1907
1866
  return n || w.warn("No previewed ID found in search params."), n;
1908
1867
  };
1909
- function Sn() {
1868
+ function pn() {
1910
1869
  globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new Fe({
1911
1870
  max: 500,
1912
1871
  // how long to live in ms
1913
1872
  ttl: 1e3 * 60 * 5
1914
1873
  }));
1915
1874
  }
1916
- function vn(e) {
1917
- Sn();
1918
- const t = yn(e);
1875
+ function gn(e) {
1876
+ pn();
1877
+ const t = hn(e);
1919
1878
  return typeof t == "string" ? globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t) : void 0;
1920
1879
  }
1921
- function kn() {
1880
+ function bn() {
1922
1881
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
1923
1882
  }
1924
- function Cn() {
1925
- const e = kn().fetch;
1883
+ function yn() {
1884
+ const e = bn().fetch;
1926
1885
  if (typeof e > "u")
1927
1886
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
1928
1887
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
1929
1888
  return e;
1930
1889
  }
1931
- const xn = Cn();
1890
+ const Sn = yn();
1932
1891
  function _(e, t = null, n = ".") {
1933
1892
  return Object.keys(e).reduce((o, i) => {
1934
1893
  const r = e[i], a = [t, i].filter(Boolean).join(n);
@@ -1941,29 +1900,29 @@ function _(e, t = null, n = ".") {
1941
1900
  };
1942
1901
  }, {});
1943
1902
  }
1944
- function Pe(e, t, n = {}) {
1903
+ function Ae(e, t, n = {}) {
1945
1904
  for (const o in e) {
1946
1905
  const i = e[o], r = t ? t + "." + o : o;
1947
- i && typeof i == "object" && !Array.isArray(i) && !Object.keys(i).find((a) => a.startsWith("$")) ? Pe(i, r, n) : n[r] = i;
1906
+ i && typeof i == "object" && !Array.isArray(i) && !Object.keys(i).find((a) => a.startsWith("$")) ? Ae(i, r, n) : n[r] = i;
1948
1907
  }
1949
1908
  return n;
1950
1909
  }
1951
- const wn = "v3", ne = "builder.", In = "options.", Ae = (e) => {
1910
+ const vn = "v3", ne = "builder.", kn = "options.", Pe = (e) => {
1952
1911
  if (!e)
1953
1912
  return {};
1954
- const t = de(e), n = {};
1913
+ const t = ue(e), n = {};
1955
1914
  return Object.keys(t).forEach((o) => {
1956
1915
  if (o.startsWith(ne)) {
1957
- const i = o.replace(ne, "").replace(In, "");
1916
+ const i = o.replace(ne, "").replace(kn, "");
1958
1917
  n[i] = t[o];
1959
1918
  }
1960
1919
  }), n;
1961
- }, Tn = () => {
1920
+ }, Cn = () => {
1962
1921
  if (!k())
1963
1922
  return {};
1964
1923
  const e = new URLSearchParams(window.location.search);
1965
- return Ae(e);
1966
- }, oe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, q = (e) => {
1924
+ return Pe(e);
1925
+ }, oe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Y = (e) => {
1967
1926
  const {
1968
1927
  limit: t = 30,
1969
1928
  userAttributes: n,
@@ -1972,7 +1931,7 @@ const wn = "v3", ne = "builder.", In = "options.", Ae = (e) => {
1972
1931
  apiKey: r,
1973
1932
  enrich: a,
1974
1933
  locale: s,
1975
- apiVersion: c = wn,
1934
+ apiVersion: c = vn,
1976
1935
  fields: u,
1977
1936
  omit: h,
1978
1937
  offset: d,
@@ -1994,36 +1953,36 @@ const wn = "v3", ne = "builder.", In = "options.", Ae = (e) => {
1994
1953
  m.searchParams.set(x, JSON.stringify(S[x]));
1995
1954
  }
1996
1955
  const p = {
1997
- ...Tn(),
1998
- ...de(e.options || {})
1956
+ ...Cn(),
1957
+ ...ue(e.options || {})
1999
1958
  }, y = _(p);
2000
1959
  for (const S in y)
2001
1960
  m.searchParams.set(S, String(y[S]));
2002
1961
  if (n && m.searchParams.set("userAttributes", JSON.stringify(n)), o) {
2003
- const S = Pe({
1962
+ const S = Ae({
2004
1963
  query: o
2005
1964
  });
2006
1965
  for (const x in S)
2007
1966
  m.searchParams.set(x, JSON.stringify(S[x]));
2008
1967
  }
2009
1968
  return m;
2010
- }, En = (e) => "results" in e;
1969
+ }, xn = (e) => "results" in e;
2011
1970
  async function Ve(e) {
2012
- const t = await An({
1971
+ const t = await Tn({
2013
1972
  ...e,
2014
1973
  limit: 1
2015
1974
  });
2016
1975
  return t && t[0] || null;
2017
1976
  }
2018
- const Rn = async (e) => {
2019
- const t = q(e);
2020
- return await (await (e.fetch ?? xn)(t.href, e.fetchOptions)).json();
2021
- }, Pn = async (e, t, n = q(e)) => {
1977
+ const wn = async (e) => {
1978
+ const t = Y(e);
1979
+ return await (await (e.fetch ?? Sn)(t.href, e.fetchOptions)).json();
1980
+ }, In = async (e, t, n = Y(e)) => {
2022
1981
  const o = L(e.canTrack);
2023
1982
  if (n.search.includes("preview=")) {
2024
1983
  const r = [];
2025
1984
  for (const a of t.results) {
2026
- const s = vn(n.searchParams);
1985
+ const s = gn(n.searchParams);
2027
1986
  r.push(s || a);
2028
1987
  }
2029
1988
  t.results = r;
@@ -2033,7 +1992,7 @@ const Rn = async (e) => {
2033
1992
  try {
2034
1993
  const r = [];
2035
1994
  for (const a of t.results)
2036
- r.push(await Kt({
1995
+ r.push(await _t({
2037
1996
  item: a,
2038
1997
  canTrack: o
2039
1998
  }));
@@ -2043,10 +2002,10 @@ const Rn = async (e) => {
2043
2002
  }
2044
2003
  return t.results;
2045
2004
  };
2046
- async function An(e) {
2005
+ async function Tn(e) {
2047
2006
  try {
2048
- const t = q(e), n = await Rn(e);
2049
- return En(n) ? Pn(e, n) : (w.error("Error fetching data. ", {
2007
+ const t = Y(e), n = await wn(e);
2008
+ return xn(n) ? In(e, n) : (w.error("Error fetching data. ", {
2050
2009
  url: t,
2051
2010
  content: n,
2052
2011
  options: e
@@ -2055,20 +2014,20 @@ async function An(e) {
2055
2014
  return w.error("Error fetching data. ", t), null;
2056
2015
  }
2057
2016
  }
2058
- function ko(e) {
2017
+ function So(e) {
2059
2018
  const t = e || (k() ? window.location.search : void 0);
2060
- return t ? ue(t).indexOf("builder.preview=") !== -1 : !1;
2019
+ return t ? me(t).indexOf("builder.preview=") !== -1 : !1;
2061
2020
  }
2062
- function Vn() {
2021
+ function En() {
2063
2022
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
2064
2023
  const t = Math.random() * 16 | 0;
2065
2024
  return (e == "x" ? t : t & 3 | 8).toString(16);
2066
2025
  });
2067
2026
  }
2068
2027
  function Be() {
2069
- return Vn().replace(/-/g, "");
2028
+ return En().replace(/-/g, "");
2070
2029
  }
2071
- const We = "builderSessionId", Bn = async ({
2030
+ const We = "builderSessionId", Rn = async ({
2072
2031
  canTrack: e
2073
2032
  }) => {
2074
2033
  if (!e)
@@ -2080,67 +2039,67 @@ const We = "builderSessionId", Bn = async ({
2080
2039
  if (I(t))
2081
2040
  return t;
2082
2041
  {
2083
- const n = Wn();
2084
- return $n({
2042
+ const n = An();
2043
+ return Pn({
2085
2044
  id: n,
2086
2045
  canTrack: e
2087
2046
  }), n;
2088
2047
  }
2089
- }, Wn = () => Be(), $n = ({
2048
+ }, An = () => Be(), Pn = ({
2090
2049
  id: e,
2091
2050
  canTrack: t
2092
2051
  }) => Ce({
2093
2052
  name: We,
2094
2053
  value: e,
2095
2054
  canTrack: t
2096
- }), $e = () => k() && typeof localStorage < "u" ? localStorage : void 0, On = ({
2055
+ }), Oe = () => k() && typeof localStorage < "u" ? localStorage : void 0, Vn = ({
2097
2056
  key: e,
2098
2057
  canTrack: t
2099
2058
  }) => {
2100
2059
  var n;
2101
2060
  try {
2102
- return t ? (n = $e()) == null ? void 0 : n.getItem(e) : void 0;
2061
+ return t ? (n = Oe()) == null ? void 0 : n.getItem(e) : void 0;
2103
2062
  } catch (o) {
2104
2063
  console.debug("[LocalStorage] GET error: ", o);
2105
2064
  return;
2106
2065
  }
2107
- }, Nn = ({
2066
+ }, Bn = ({
2108
2067
  key: e,
2109
2068
  canTrack: t,
2110
2069
  value: n
2111
2070
  }) => {
2112
2071
  var o;
2113
2072
  try {
2114
- t && ((o = $e()) == null || o.setItem(e, n));
2073
+ t && ((o = Oe()) == null || o.setItem(e, n));
2115
2074
  } catch (i) {
2116
2075
  console.debug("[LocalStorage] SET error: ", i);
2117
2076
  }
2118
- }, Oe = "builderVisitorId", Fn = ({
2077
+ }, $e = "builderVisitorId", Wn = ({
2119
2078
  canTrack: e
2120
2079
  }) => {
2121
2080
  if (!e)
2122
2081
  return;
2123
- const t = On({
2124
- key: Oe,
2082
+ const t = Vn({
2083
+ key: $e,
2125
2084
  canTrack: e
2126
2085
  });
2127
2086
  if (I(t))
2128
2087
  return t;
2129
2088
  {
2130
- const n = Ln();
2131
- return Un({
2089
+ const n = On();
2090
+ return $n({
2132
2091
  id: n,
2133
2092
  canTrack: e
2134
2093
  }), n;
2135
2094
  }
2136
- }, Ln = () => Be(), Un = ({
2095
+ }, On = () => Be(), $n = ({
2137
2096
  id: e,
2138
2097
  canTrack: t
2139
- }) => Nn({
2140
- key: Oe,
2098
+ }) => Bn({
2099
+ key: $e,
2141
2100
  value: e,
2142
2101
  canTrack: t
2143
- }), Dn = async ({
2102
+ }), Nn = async ({
2144
2103
  canTrack: e
2145
2104
  }) => {
2146
2105
  if (!e)
@@ -2148,16 +2107,16 @@ const We = "builderSessionId", Bn = async ({
2148
2107
  visitorId: void 0,
2149
2108
  sessionId: void 0
2150
2109
  };
2151
- const t = await Bn({
2110
+ const t = await Rn({
2152
2111
  canTrack: e
2153
- }), n = Fn({
2112
+ }), n = Wn({
2154
2113
  canTrack: e
2155
2114
  });
2156
2115
  return {
2157
2116
  sessionId: t,
2158
2117
  visitorId: n
2159
2118
  };
2160
- }, _n = async ({
2119
+ }, Fn = async ({
2161
2120
  type: e,
2162
2121
  canTrack: t,
2163
2122
  apiKey: n,
@@ -2171,23 +2130,23 @@ const We = "builderSessionId", Bn = async ({
2171
2130
  url: location.href,
2172
2131
  ...o
2173
2132
  },
2174
- ...await Dn({
2133
+ ...await Nn({
2175
2134
  canTrack: t
2176
2135
  }),
2177
- userAttributes: fe(),
2136
+ userAttributes: he(),
2178
2137
  ownerId: n
2179
2138
  }
2180
2139
  });
2181
- async function Mn(e) {
2140
+ async function Ln(e) {
2182
2141
  if (!e.apiKey) {
2183
2142
  w.error("Missing API key for track call. Please provide your API key.");
2184
2143
  return;
2185
2144
  }
2186
- if (e.canTrack && !me() && (k() || T === "reactNative"))
2145
+ if (e.canTrack && !fe() && (k() || T === "reactNative"))
2187
2146
  return fetch("https://cdn.builder.io/api/v1/track", {
2188
2147
  method: "POST",
2189
2148
  body: JSON.stringify({
2190
- events: [await _n(e)]
2149
+ events: [await Fn(e)]
2191
2150
  }),
2192
2151
  headers: {
2193
2152
  "content-type": "application/json"
@@ -2197,14 +2156,14 @@ async function Mn(e) {
2197
2156
  console.error("Failed to track: ", t);
2198
2157
  });
2199
2158
  }
2200
- const Co = (e) => Mn({
2159
+ const vo = (e) => Ln({
2201
2160
  ...e,
2202
2161
  canTrack: !0
2203
2162
  });
2204
2163
  function ie(e) {
2205
2164
  return Math.round(e * 1e3) / 1e3;
2206
2165
  }
2207
- const jn = (e, t, n = !0) => {
2166
+ const Un = (e, t, n = !0) => {
2208
2167
  if (!(e instanceof HTMLElement))
2209
2168
  return null;
2210
2169
  let o = n ? e : e.parentElement;
@@ -2215,7 +2174,7 @@ const jn = (e, t, n = !0) => {
2215
2174
  return o;
2216
2175
  } while (o = o.parentElement);
2217
2176
  return null;
2218
- }, Hn = (e) => jn(e, (t) => {
2177
+ }, Dn = (e) => Un(e, (t) => {
2219
2178
  const n = t.getAttribute("builder-id") || t.id;
2220
2179
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
2221
2180
  }), re = ({
@@ -2227,8 +2186,8 @@ const jn = (e, t, n = !0) => {
2227
2186
  x: r,
2228
2187
  y: a
2229
2188
  };
2230
- }, xo = (e) => {
2231
- const t = e.target, n = t && Hn(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2189
+ }, ko = (e) => {
2190
+ const t = e.target, n = t && Dn(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2232
2191
  return {
2233
2192
  targetBuilderElement: o || void 0,
2234
2193
  metadata: {
@@ -2243,13 +2202,13 @@ const jn = (e, t, n = !0) => {
2243
2202
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
2244
2203
  }
2245
2204
  };
2246
- }, Kn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
2205
+ }, _n = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
2247
2206
  function Ne(e, t) {
2248
2207
  const n = new URL(t.origin), o = n.hostname;
2249
- return (e || Kn).findIndex((i) => i.startsWith("*.") ? o.endsWith(i.slice(1)) : i === o) > -1;
2208
+ return (e || _n).findIndex((i) => i.startsWith("*.") ? o.endsWith(i.slice(1)) : i === o) > -1;
2250
2209
  }
2251
- const zn = "0.14.21", ae = {};
2252
- function qn(e, t) {
2210
+ const Mn = "0.14.24", ae = {};
2211
+ function jn(e, t) {
2253
2212
  let n = ae[e];
2254
2213
  if (n || (n = ae[e] = []), n.push(t), k()) {
2255
2214
  const o = {
@@ -2266,8 +2225,8 @@ function qn(e, t) {
2266
2225
  }
2267
2226
  }
2268
2227
  }
2269
- const wo = () => {
2270
- qn("insertMenu", {
2228
+ const Co = () => {
2229
+ jn("insertMenu", {
2271
2230
  name: "_default",
2272
2231
  default: !0,
2273
2232
  items: [{
@@ -2290,13 +2249,13 @@ const wo = () => {
2290
2249
  });
2291
2250
  };
2292
2251
  let se = !1;
2293
- const Yn = (e = {}) => {
2252
+ const Hn = (e = {}) => {
2294
2253
  var t, n;
2295
2254
  se || (se = !0, k() && ((t = window.parent) == null || t.postMessage({
2296
2255
  type: "builder.sdkInfo",
2297
2256
  data: {
2298
2257
  target: T,
2299
- version: zn,
2258
+ version: Mn,
2300
2259
  supportsPatchUpdates: !1,
2301
2260
  // Supports builder-model="..." attribute which is needed to
2302
2261
  // scope our '+ add block' button styling
@@ -2351,7 +2310,7 @@ const Yn = (e = {}) => {
2351
2310
  }
2352
2311
  }
2353
2312
  })));
2354
- }, Gn = ({
2313
+ }, Kn = ({
2355
2314
  model: e,
2356
2315
  trustedHosts: t,
2357
2316
  callbacks: n
@@ -2377,12 +2336,12 @@ const Yn = (e = {}) => {
2377
2336
  break;
2378
2337
  }
2379
2338
  }
2380
- }, Io = (e, t, n) => {
2339
+ }, xo = (e, t, n) => {
2381
2340
  if (!k)
2382
2341
  return w.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
2383
2342
  };
2384
- Yn();
2385
- const o = Gn({
2343
+ Hn();
2344
+ const o = Kn({
2386
2345
  callbacks: {
2387
2346
  contentUpdate: t,
2388
2347
  animation: () => {
@@ -2396,7 +2355,48 @@ const Yn = (e = {}) => {
2396
2355
  return window.addEventListener("message", o), () => {
2397
2356
  window.removeEventListener("message", o);
2398
2357
  };
2399
- }, Jn = (e) => {
2358
+ };
2359
+ function ce(e, ...t) {
2360
+ const n = Object(e);
2361
+ for (let o = 1; o < arguments.length; o++) {
2362
+ const i = arguments[o];
2363
+ if (i != null)
2364
+ for (const r in i)
2365
+ Object.prototype.hasOwnProperty.call(i, r) && (n[r] = i[r]);
2366
+ }
2367
+ return n;
2368
+ }
2369
+ function zn(e) {
2370
+ console.warn(`Cannot animate element: element with ID ${e} not found!`);
2371
+ }
2372
+ function qn(e, t) {
2373
+ const n = Yn(e), o = getComputedStyle(t), i = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [i, r];
2374
+ for (const s of a)
2375
+ for (const c of n)
2376
+ c in s || (s[c] = o[c]);
2377
+ }
2378
+ function Yn(e) {
2379
+ const t = [];
2380
+ for (const n of e.steps)
2381
+ for (const o in n.styles)
2382
+ t.indexOf(o) === -1 && t.push(o);
2383
+ return t;
2384
+ }
2385
+ function wo(e) {
2386
+ const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
2387
+ if (!t.length) {
2388
+ zn(e.elementId || e.id || "");
2389
+ return;
2390
+ }
2391
+ Array.from(t).forEach((n) => {
2392
+ qn(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ce(n.style, e.steps[0].styles), setTimeout(() => {
2393
+ n.style.transition = `all ${e.duration}s ${K(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), ce(n.style, e.steps[1].styles), setTimeout(() => {
2394
+ n.style.transition = "", n.style.transitionDelay = "";
2395
+ }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
2396
+ });
2397
+ });
2398
+ }
2399
+ const Gn = (e) => {
2400
2400
  var r;
2401
2401
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((r = e == null ? void 0 : e.files) == null ? void 0 : r.regular);
2402
2402
  let i = "";
@@ -2422,15 +2422,15 @@ font-weight: ${a};
2422
2422
  `.trim());
2423
2423
  }
2424
2424
  return i;
2425
- }, Qn = ({
2425
+ }, Jn = ({
2426
2426
  customFonts: e
2427
2427
  }) => {
2428
2428
  var t;
2429
- return ((t = e == null ? void 0 : e.map((n) => Jn(n))) == null ? void 0 : t.join(" ")) || "";
2430
- }, Xn = ({
2429
+ return ((t = e == null ? void 0 : e.map((n) => Gn(n))) == null ? void 0 : t.join(" ")) || "";
2430
+ }, Qn = ({
2431
2431
  cssCode: e,
2432
2432
  contentId: t
2433
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Zn = `
2433
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Xn = `
2434
2434
  .builder-button {
2435
2435
  all: unset;
2436
2436
  }
@@ -2447,21 +2447,21 @@ font-weight: ${a};
2447
2447
  text-align: inherit;
2448
2448
  font-family: inherit;
2449
2449
  }
2450
- `, eo = (e) => e ? "" : Zn, To = (e) => `variant-${e}`;
2451
- function to(e) {
2450
+ `, Zn = (e) => e ? "" : Xn, Io = (e) => `variant-${e}`;
2451
+ function eo(e) {
2452
2452
  const t = `
2453
- ${Xn({
2453
+ ${Qn({
2454
2454
  cssCode: e.cssCode,
2455
2455
  contentId: e.contentId
2456
2456
  })}
2457
- ${Qn({
2457
+ ${Jn({
2458
2458
  customFonts: e.customFonts
2459
2459
  })}
2460
- ${eo(e.isNestedRender)}
2460
+ ${Zn(e.isNestedRender)}
2461
2461
  `.trim();
2462
2462
  return /* @__PURE__ */ l(N, { id: "builderio-content", styles: t });
2463
2463
  }
2464
- const no = ({
2464
+ const to = ({
2465
2465
  content: e,
2466
2466
  data: t,
2467
2467
  locale: n
@@ -2478,7 +2478,7 @@ const no = ({
2478
2478
  locale: n
2479
2479
  } : {}
2480
2480
  };
2481
- }, oo = ({
2481
+ }, no = ({
2482
2482
  content: e,
2483
2483
  data: t
2484
2484
  }) => e ? {
@@ -2489,9 +2489,9 @@ const no = ({
2489
2489
  },
2490
2490
  meta: e == null ? void 0 : e.meta
2491
2491
  } : void 0;
2492
- function ce(e) {
2492
+ function le(e) {
2493
2493
  var i, r, a, s, c, u, h, d, f;
2494
- const t = bn({
2494
+ const t = fn({
2495
2495
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2496
2496
  variationId: (i = e.content) == null ? void 0 : i.testVariationId,
2497
2497
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -2509,12 +2509,12 @@ function ce(e) {
2509
2509
  }),
2510
2510
  {}
2511
2511
  ), o = {
2512
- content: oo({
2512
+ content: no({
2513
2513
  content: e.content,
2514
2514
  data: e.data
2515
2515
  }),
2516
2516
  localState: void 0,
2517
- rootState: no({
2517
+ rootState: to({
2518
2518
  content: e.content,
2519
2519
  data: e.data,
2520
2520
  locale: e.locale
@@ -2563,7 +2563,7 @@ function ce(e) {
2563
2563
  }
2564
2564
  ) : null,
2565
2565
  /* @__PURE__ */ l(
2566
- to,
2566
+ eo,
2567
2567
  {
2568
2568
  isNestedRender: e.isNestedRender,
2569
2569
  contentId: (a = o.content) == null ? void 0 : a.id,
@@ -2572,7 +2572,7 @@ function ce(e) {
2572
2572
  }
2573
2573
  ),
2574
2574
  /* @__PURE__ */ l(
2575
- K,
2575
+ z,
2576
2576
  {
2577
2577
  blocks: (f = (d = o.content) == null ? void 0 : d.data) == null ? void 0 : f.blocks,
2578
2578
  context: o,
@@ -2584,14 +2584,14 @@ function ce(e) {
2584
2584
  }
2585
2585
  );
2586
2586
  }
2587
- function io(e) {
2587
+ function oo(e) {
2588
2588
  var r;
2589
- const t = fn({
2589
+ const t = ln({
2590
2590
  canTrack: L(e.canTrack),
2591
2591
  content: e.content
2592
2592
  }), n = function() {
2593
2593
  var s;
2594
- return gn(
2594
+ return mn(
2595
2595
  W(e.content).map((c) => ({
2596
2596
  id: c.testVariationId,
2597
2597
  testRatio: c.testRatio
@@ -2605,7 +2605,7 @@ function io(e) {
2605
2605
  return t ? {
2606
2606
  ...e.content,
2607
2607
  testVariationId: (s = e.content) == null ? void 0 : s.id
2608
- } : Ht({
2608
+ } : Dt({
2609
2609
  item: e.content,
2610
2610
  canTrack: L(e.canTrack)
2611
2611
  });
@@ -2615,7 +2615,7 @@ function io(e) {
2615
2615
  D,
2616
2616
  {
2617
2617
  id: "builderio-init-variants-fns",
2618
- scriptStr: pn()
2618
+ scriptStr: un()
2619
2619
  }
2620
2620
  ) : null,
2621
2621
  t ? /* @__PURE__ */ R(C, { children: [
@@ -2634,7 +2634,7 @@ function io(e) {
2634
2634
  }
2635
2635
  ),
2636
2636
  (r = W(e.content)) == null ? void 0 : r.map((a) => /* @__PURE__ */ l(
2637
- ce,
2637
+ le,
2638
2638
  {
2639
2639
  isNestedRender: e.isNestedRender,
2640
2640
  content: a,
@@ -2660,7 +2660,7 @@ function io(e) {
2660
2660
  ))
2661
2661
  ] }) : null,
2662
2662
  /* @__PURE__ */ l(
2663
- ce,
2663
+ le,
2664
2664
  {
2665
2665
  isNestedRender: e.isNestedRender,
2666
2666
  content: i(),
@@ -2685,7 +2685,7 @@ function io(e) {
2685
2685
  )
2686
2686
  ] });
2687
2687
  }
2688
- const ro = async ({
2688
+ const io = async ({
2689
2689
  builderContextValue: e,
2690
2690
  symbol: t
2691
2691
  }) => {
@@ -2704,7 +2704,7 @@ const ro = async ({
2704
2704
  w.error("Could not fetch symbol content: ", n);
2705
2705
  });
2706
2706
  };
2707
- async function ao(e) {
2707
+ async function ro(e) {
2708
2708
  var r, a, s, c, u;
2709
2709
  const t = function() {
2710
2710
  return "div";
@@ -2718,12 +2718,12 @@ async function ao(e) {
2718
2718
  (d = e.symbol) != null && d.inline ? "builder-inline-symbol" : void 0,
2719
2719
  (f = e.symbol) != null && f.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
2720
2720
  ].filter(Boolean).join(" ");
2721
- }, i = ((r = e.symbol) == null ? void 0 : r.content) || await ro({
2721
+ }, i = ((r = e.symbol) == null ? void 0 : r.content) || await io({
2722
2722
  symbol: e.symbol,
2723
2723
  builderContextValue: e.builderContext
2724
2724
  });
2725
2725
  return /* @__PURE__ */ l("div", { ...e.attributes, className: o(), children: /* @__PURE__ */ l(
2726
- io,
2726
+ oo,
2727
2727
  {
2728
2728
  isNestedRender: !0,
2729
2729
  apiVersion: e.builderContext.apiVersion,
@@ -2746,18 +2746,18 @@ async function ao(e) {
2746
2746
  }
2747
2747
  ) });
2748
2748
  }
2749
- const le = {};
2750
- function Eo(e) {
2749
+ const de = {};
2750
+ function To(e) {
2751
2751
  if (k()) {
2752
- Object.assign(le, e);
2752
+ Object.assign(de, e);
2753
2753
  const t = {
2754
2754
  type: "builder.settingsChange",
2755
- data: le
2755
+ data: de
2756
2756
  };
2757
2757
  parent.postMessage(t, "*");
2758
2758
  }
2759
2759
  }
2760
- const Ro = async (e) => {
2760
+ const Eo = async (e) => {
2761
2761
  var o, i, r;
2762
2762
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((i = e.userAttributes) == null ? void 0 : i.urlPath), n = {
2763
2763
  ...e,
@@ -2769,7 +2769,7 @@ const Ro = async (e) => {
2769
2769
  urlPath: t
2770
2770
  } : {}
2771
2771
  },
2772
- options: Ae(e.searchParams || ((r = e.url) == null ? void 0 : r.searchParams) || e.options)
2772
+ options: Pe(e.searchParams || ((r = e.url) == null ? void 0 : r.searchParams) || e.options)
2773
2773
  };
2774
2774
  return {
2775
2775
  apiKey: n.apiKey,
@@ -2778,41 +2778,41 @@ const Ro = async (e) => {
2778
2778
  };
2779
2779
  };
2780
2780
  export {
2781
- Ae as A,
2782
- K as B,
2783
- Bt as C,
2784
- Co as D,
2785
- Io as E,
2786
- Ro as F,
2787
- Pn as G,
2788
- An as H,
2789
- ao as S,
2790
- tn as T,
2791
- Mn as _,
2792
- Rt as a,
2793
- bo as b,
2794
- me as c,
2795
- yo as d,
2796
- So as e,
2781
+ Pe as A,
2782
+ z as B,
2783
+ Rt as C,
2784
+ vo as D,
2785
+ xo as E,
2786
+ Eo as F,
2787
+ In as G,
2788
+ Tn as H,
2789
+ ro as S,
2790
+ Qt as T,
2791
+ Ln as _,
2792
+ wt as a,
2793
+ po as b,
2794
+ fe as c,
2795
+ go as d,
2796
+ bo as e,
2797
2797
  k as f,
2798
2798
  M as g,
2799
2799
  L as h,
2800
- po as i,
2801
- ko as j,
2802
- To as k,
2800
+ ho as i,
2801
+ So as j,
2802
+ Io as k,
2803
2803
  w as l,
2804
- Gn as m,
2804
+ Kn as m,
2805
2805
  H as n,
2806
- xo as o,
2807
- xn as p,
2808
- O as q,
2809
- wo as r,
2810
- Yn as s,
2811
- go as t,
2812
- vo as u,
2806
+ ko as o,
2807
+ Sn as p,
2808
+ $ as q,
2809
+ Co as r,
2810
+ Hn as s,
2811
+ wo as t,
2812
+ yo as u,
2813
2813
  Ve as v,
2814
- Sn as w,
2815
- io as x,
2816
- qn as y,
2817
- Eo as z
2814
+ pn as w,
2815
+ oo as x,
2816
+ jn as y,
2817
+ To as z
2818
2818
  };