@builder.io/sdk-react-nextjs 0.7.5 → 0.7.6

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 (27) hide show
  1. package/lib/{node/USE_CLIENT_BUNDLE-23b5881f.cjs → browser/USE_CLIENT_BUNDLE-0a0cc62f.cjs} +1 -1
  2. package/lib/browser/{USE_CLIENT_BUNDLE-02851f5b.js → USE_CLIENT_BUNDLE-a7787106.js} +2 -2
  3. package/lib/{edge/USE_SERVER_BUNDLE-f8e4c4d9.js → browser/USE_SERVER_BUNDLE-05ea12e2.js} +1 -1
  4. package/lib/{edge/USE_SERVER_BUNDLE-949923da.cjs → browser/USE_SERVER_BUNDLE-73128060.cjs} +1 -1
  5. package/lib/browser/{bundle-ed21dd97.js → bundle-bf220619.js} +109 -106
  6. package/lib/browser/{bundle-cf866f2c.cjs → bundle-d14f38c0.cjs} +7 -7
  7. package/lib/browser/index.cjs +1 -1
  8. package/lib/browser/index.mjs +3 -3
  9. package/lib/{browser/USE_CLIENT_BUNDLE-19024ae3.cjs → edge/USE_CLIENT_BUNDLE-2b470811.cjs} +1 -1
  10. package/lib/{node/USE_CLIENT_BUNDLE-b63c2d8e.js → edge/USE_CLIENT_BUNDLE-b3aaa944.js} +2 -2
  11. package/lib/{node/USE_SERVER_BUNDLE-d645bd91.cjs → edge/USE_SERVER_BUNDLE-b3b4afa9.cjs} +1 -1
  12. package/lib/{node/USE_SERVER_BUNDLE-643288fc.js → edge/USE_SERVER_BUNDLE-f39207f2.js} +1 -1
  13. package/lib/edge/{bundle-97130d9a.cjs → bundle-2a7da030.cjs} +11 -11
  14. package/lib/edge/{bundle-48628d9c.js → bundle-bca2cd58.js} +320 -317
  15. package/lib/edge/index.cjs +1 -1
  16. package/lib/edge/index.mjs +3 -3
  17. package/lib/{edge/USE_CLIENT_BUNDLE-a1ac1e61.js → node/USE_CLIENT_BUNDLE-955f9345.js} +2 -2
  18. package/lib/{edge/USE_CLIENT_BUNDLE-853614ad.cjs → node/USE_CLIENT_BUNDLE-a8082119.cjs} +1 -1
  19. package/lib/{browser/USE_SERVER_BUNDLE-99af92f3.cjs → node/USE_SERVER_BUNDLE-136e4ed6.cjs} +1 -1
  20. package/lib/{browser/USE_SERVER_BUNDLE-0dbfec06.js → node/USE_SERVER_BUNDLE-ac2a6bf7.js} +1 -1
  21. package/lib/node/{bundle-3ab5a1ab.js → bundle-b06f63f6.js} +7 -4
  22. package/lib/node/{bundle-3f7e723b.cjs → bundle-f16e2dbd.cjs} +3 -3
  23. package/lib/node/index.cjs +1 -1
  24. package/lib/node/index.mjs +3 -3
  25. package/package.json +1 -1
  26. package/types/cjs/constants/sdk-version.d.ts +1 -1
  27. package/types/esm/constants/sdk-version.d.ts +1 -1
@@ -1,4 +1,4 @@
1
- "use client";"use strict";const t=require("react/jsx-runtime"),c=require("./bundle-3f7e723b.cjs"),l=require("react"),M=require("./USE_SERVER_BUNDLE-d645bd91.cjs"),V=require("next/navigation");function W(e){return t.jsxs(t.Fragment,{children:[e.link?t.jsx(t.Fragment,{children:t.jsx("a",{...e.attributes,href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"button",children:e.text})}):t.jsx(t.Fragment,{children:t.jsx("button",{...e.attributes,style:e.attributes.style,className:e.attributes.className+" button-5294b10c",children:e.text})}),t.jsx("style",{children:`.button-5294b10c {
1
+ "use client";"use strict";const t=require("react/jsx-runtime"),c=require("./bundle-d14f38c0.cjs"),l=require("react"),M=require("./USE_SERVER_BUNDLE-73128060.cjs"),V=require("next/navigation");function W(e){return t.jsxs(t.Fragment,{children:[e.link?t.jsx(t.Fragment,{children:t.jsx("a",{...e.attributes,href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"button",children:e.text})}):t.jsx(t.Fragment,{children:t.jsx("button",{...e.attributes,style:e.attributes.style,className:e.attributes.className+" button-5294b10c",children:e.text})}),t.jsx("style",{children:`.button-5294b10c {
2
2
  all: unset;
3
3
  }`})]})}function A(e){return t.jsxs(t.Fragment,{children:[" ",e.hasChildren?t.jsx(t.Fragment,{children:t.jsxs(e.Wrapper,{...c.getBlockProperties({block:e.block,context:e.context}),...c.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}),children:[" ",e.children," "]})}):t.jsx(t.Fragment,{children:t.jsx(e.Wrapper,{...c.getBlockProperties({block:e.block,context:e.context}),...c.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0})})})," "]})}function D(e){return t.jsx(e.Wrapper,{...e.wrapperProps,attributes:{...c.getBlockProperties({block:e.block,context:e.context}),...c.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})},children:e.children})}function U(e){function a(){var o;return"builder-blocks"+((o=e.blocks)!=null&&o.length?"":" no-blocks")}function g(){var o,h;c.isEditing()&&!((o=e.blocks)!=null&&o.length)&&((h=window.parent)==null||h.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function S(){var o,h;c.isEditing()&&!((o=e.blocks)!=null&&o.length)&&((h=window.parent)==null||h.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:a()+" div-02c7a115","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:o=>g(),onMouseEnter:o=>S(),onKeyPress:o=>g(),children:e.children}),t.jsx("style",{children:`.div-02c7a115 {
4
4
  display: flex;
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsxs as C, Fragment as h, jsx as i } from "react/jsx-runtime";
3
- import { g as T, a as N, i as E, b as R, c as Q, d as P, e as D, _ as U, f as X, l as Y, h as H, j as Z, k as p, r as ee, s as te, m as ne, n as ie, o as ae } from "./bundle-ed21dd97.js";
3
+ import { g as T, a as N, i as E, b as R, c as Q, d as P, e as D, _ as U, f as X, l as Y, h as H, j as Z, k as p, r as ee, s as te, m as ne, n as ie, o as ae } from "./bundle-bf220619.js";
4
4
  import { useRef as B, useState as k, useEffect as v, createContext as ce, createElement as le } from "react";
5
- import { p as oe } from "./USE_SERVER_BUNDLE-0dbfec06.js";
5
+ import { p as oe } from "./USE_SERVER_BUNDLE-05ea12e2.js";
6
6
  import { useRouter as re } from "next/navigation";
7
7
  function ge(e) {
8
8
  return /* @__PURE__ */ C(h, { children: [
@@ -1,5 +1,5 @@
1
1
  "use server";
2
- import { p as s } from "./bundle-48628d9c.js";
2
+ import { p as s } from "./bundle-bf220619.js";
3
3
  async function n({
4
4
  key: t,
5
5
  value: r
@@ -1 +1 @@
1
- "use server";"use strict";const n=require("./bundle-97130d9a.cjs");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;
1
+ "use server";"use strict";const n=require("./bundle-d14f38c0.cjs");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;
@@ -1,7 +1,7 @@
1
1
  import { LRUCache as Be } from "lru-cache";
2
- import { jsx as l, Fragment as b, jsxs as w } from "react/jsx-runtime";
2
+ import { jsx as l, Fragment as y, jsxs as w } from "react/jsx-runtime";
3
3
  import { createElement as Pe } from "react";
4
- import { I as $e, B as Y, a as Oe, b as Fe, C as We, E as Ne, F as _e, c as Le, d as Ue, S as Me, V as De, e as je } from "./USE_CLIENT_BUNDLE-02851f5b.js";
4
+ import { I as $e, B as Y, a as Oe, b as Fe, C as We, E as Ne, F as _e, c as Le, d as Ue, S as Me, V as De, e as je } from "./USE_CLIENT_BUNDLE-a7787106.js";
5
5
  import "next/navigation";
6
6
  function Ke(e) {
7
7
  var t;
@@ -20,18 +20,18 @@ const V = "[Builder.io]: ", k = {
20
20
  warn: (...e) => console.warn(V, ...e),
21
21
  debug: (...e) => console.debug(V, ...e)
22
22
  };
23
- function x() {
23
+ function S() {
24
24
  return typeof window < "u" && typeof document < "u";
25
25
  }
26
26
  const T = "rsc";
27
27
  function He() {
28
- return x() && window.self !== window.top;
28
+ return S() && window.self !== window.top;
29
29
  }
30
30
  function D() {
31
31
  return He() && window.location.search.indexOf("builder.frameEditing=") !== -1;
32
32
  }
33
33
  const ze = () => {
34
- if (x()) {
34
+ if (S()) {
35
35
  const e = new URL(location.href);
36
36
  return e.pathname === "" && (e.pathname = "/"), e;
37
37
  } else
@@ -76,8 +76,8 @@ const ze = () => {
76
76
  event: n
77
77
  }), Ye = () => ({
78
78
  isEditing: D(),
79
- isBrowser: x(),
80
- isServer: !x(),
79
+ isBrowser: S(),
80
+ isServer: !S(),
81
81
  getUserAttributes: () => de()
82
82
  }), Je = (e, {
83
83
  isExpression: t = !0
@@ -110,7 +110,7 @@ function Qe(e, t, n) {
110
110
  }
111
111
  });
112
112
  }
113
- const Xe = (e) => (x(), J(e));
113
+ const Xe = (e) => (S(), J(e));
114
114
  function j({
115
115
  code: e,
116
116
  context: t,
@@ -169,14 +169,14 @@ const et = ({
169
169
  }
170
170
  };
171
171
  for (const s in e.bindings) {
172
- const c = e.bindings[s], f = j({
172
+ const c = e.bindings[s], m = j({
173
173
  code: c,
174
174
  localState: n,
175
175
  rootState: o,
176
176
  rootSetState: i,
177
177
  context: t
178
178
  });
179
- Ze(r, s, f);
179
+ Ze(r, s, m);
180
180
  }
181
181
  return r;
182
182
  };
@@ -239,15 +239,15 @@ const tt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
239
239
  if (!Array.isArray(i))
240
240
  return;
241
241
  const a = n.collection.split(".").pop(), r = n.itemName || (a ? a + "Item" : "item");
242
- return i.map((c, f) => ({
242
+ return i.map((c, m) => ({
243
243
  context: {
244
244
  ...t,
245
245
  localState: {
246
246
  ...t.localState,
247
- $index: f,
247
+ $index: m,
248
248
  $item: c,
249
249
  [r]: c,
250
- [`$${r}Index`]: f
250
+ [`$${r}Index`]: m
251
251
  }
252
252
  },
253
253
  block: o
@@ -335,20 +335,20 @@ function K(e) {
335
335
  shouldEvaluateBindings: !0
336
336
  }), a = i.responsiveStyles, r = e.context.content, s = me(
337
337
  ((d = r == null ? void 0 : r.meta) == null ? void 0 : d.breakpoints) || {}
338
- ), c = a == null ? void 0 : a.large, f = a == null ? void 0 : a.medium, h = a == null ? void 0 : a.small, g = i.id;
338
+ ), c = a == null ? void 0 : a.large, m = a == null ? void 0 : a.medium, h = a == null ? void 0 : a.small, g = i.id;
339
339
  if (!g)
340
340
  return "";
341
- const y = c ? _({
341
+ const v = c ? _({
342
342
  className: g,
343
343
  styles: c
344
- }) : "", u = f ? _({
344
+ }) : "", u = m ? _({
345
345
  className: g,
346
- styles: f,
346
+ styles: m,
347
347
  mediaQuery: Q(
348
348
  "medium",
349
349
  s
350
350
  )
351
- }) : "", m = h ? _({
351
+ }) : "", f = h ? _({
352
352
  className: g,
353
353
  styles: h,
354
354
  mediaQuery: Q(
@@ -356,9 +356,9 @@ function K(e) {
356
356
  s
357
357
  )
358
358
  }) : "";
359
- return [y, u, m].join(" ");
359
+ return [v, u, f].join(" ");
360
360
  };
361
- return /* @__PURE__ */ l(b, { children: n() && t() ? /* @__PURE__ */ l(b, { children: /* @__PURE__ */ l(F, { styles: n() }) }) : null });
361
+ return /* @__PURE__ */ l(y, { children: n() && t() ? /* @__PURE__ */ l(y, { children: /* @__PURE__ */ l(F, { styles: n() }) }) : null });
362
362
  }
363
363
  function rt(e) {
364
364
  return e.charAt(0).toUpperCase() + e.slice(1);
@@ -456,7 +456,7 @@ const ft = ({
456
456
  function X(e) {
457
457
  var n, o;
458
458
  const t = e.isInteractive ? $e : e.componentRef;
459
- return /* @__PURE__ */ l(b, { children: e.componentRef ? /* @__PURE__ */ l(b, { children: /* @__PURE__ */ w(
459
+ return /* @__PURE__ */ l(y, { children: e.componentRef ? /* @__PURE__ */ l(y, { children: /* @__PURE__ */ w(
460
460
  t,
461
461
  {
462
462
  ...ft({
@@ -502,7 +502,7 @@ function ht(e) {
502
502
  );
503
503
  }
504
504
  function W(e) {
505
- var f, h, g, y;
505
+ var m, h, g, v;
506
506
  const t = function() {
507
507
  return nt({
508
508
  block: e.block,
@@ -515,8 +515,8 @@ function W(e) {
515
515
  context: e.context
516
516
  });
517
517
  }, o = function() {
518
- var m;
519
- return (m = e.block.repeat) != null && m.collection ? e.block : $({
518
+ var f;
519
+ return (f = e.block.repeat) != null && f.collection ? e.block : $({
520
520
  block: e.block,
521
521
  localState: e.context.localState,
522
522
  rootState: e.context.rootState,
@@ -527,31 +527,34 @@ function W(e) {
527
527
  }, i = function() {
528
528
  return e.block.tagName || "div";
529
529
  }, a = function() {
530
- var m, d;
531
- return "hide" in o() ? !o().hide : "show" in o() ? o().show : !((m = e.block.repeat) != null && m.collection && !((d = n()) != null && d.length));
530
+ var b, x;
531
+ if ((b = e.block.repeat) != null && b.collection)
532
+ return !!((x = n()) != null && x.length);
533
+ const f = "hide" in o() ? o().hide : !1;
534
+ return ("show" in o() ? o().show : !0) && !f;
532
535
  }, r = function() {
533
536
  var d;
534
537
  return !((d = t()) != null && d.component) && !n() ? o().children ?? [] : [];
535
538
  }, s = function() {
536
- var m, d, v, S, p;
539
+ var f, d, b, x, p;
537
540
  return {
538
541
  blockChildren: o().children ?? [],
539
- componentRef: (m = t()) == null ? void 0 : m.component,
542
+ componentRef: (f = t()) == null ? void 0 : f.component,
540
543
  componentOptions: {
541
544
  ...Ke(o()),
542
545
  builderContext: e.context,
543
- ...((d = t()) == null ? void 0 : d.name) === "Symbol" || ((v = t()) == null ? void 0 : v.name) === "Columns" ? {
546
+ ...((d = t()) == null ? void 0 : d.name) === "Symbol" || ((b = t()) == null ? void 0 : b.name) === "Columns" ? {
544
547
  builderComponents: e.registeredComponents
545
548
  } : {}
546
549
  },
547
550
  context: c,
548
551
  registeredComponents: e.registeredComponents,
549
552
  builderBlock: o(),
550
- includeBlockProps: ((S = t()) == null ? void 0 : S.noWrap) === !0,
553
+ includeBlockProps: ((x = t()) == null ? void 0 : x.noWrap) === !0,
551
554
  isInteractive: !((p = t()) != null && p.isRSC)
552
555
  };
553
556
  }, c = e.context;
554
- return /* @__PURE__ */ l(b, { children: a() ? /* @__PURE__ */ l(b, { children: (f = t()) != null && f.noWrap ? /* @__PURE__ */ l(b, { children: /* @__PURE__ */ l(
557
+ return /* @__PURE__ */ l(y, { children: a() ? /* @__PURE__ */ l(y, { children: (m = t()) != null && m.noWrap ? /* @__PURE__ */ l(y, { children: /* @__PURE__ */ l(
555
558
  X,
556
559
  {
557
560
  componentRef: s().componentRef,
@@ -563,8 +566,8 @@ function W(e) {
563
566
  includeBlockProps: s().includeBlockProps,
564
567
  isInteractive: s().isInteractive
565
568
  }
566
- ) }) : /* @__PURE__ */ w(b, { children: [
567
- N(i()) ? /* @__PURE__ */ l(b, { children: /* @__PURE__ */ l(
569
+ ) }) : /* @__PURE__ */ w(y, { children: [
570
+ N(i()) ? /* @__PURE__ */ l(y, { children: /* @__PURE__ */ l(
568
571
  Y,
569
572
  {
570
573
  Wrapper: i(),
@@ -573,16 +576,16 @@ function W(e) {
573
576
  hasChildren: !1
574
577
  }
575
578
  ) }) : null,
576
- !N(i()) && n() ? /* @__PURE__ */ l(b, { children: (h = n()) == null ? void 0 : h.map((u, m) => /* @__PURE__ */ l(
579
+ !N(i()) && n() ? /* @__PURE__ */ l(y, { children: (h = n()) == null ? void 0 : h.map((u, f) => /* @__PURE__ */ l(
577
580
  ht,
578
581
  {
579
582
  repeatContext: u.context,
580
583
  block: u.block,
581
584
  registeredComponents: e.registeredComponents
582
585
  },
583
- m
586
+ f
584
587
  )) }) : null,
585
- !N(i()) && !n() ? /* @__PURE__ */ l(b, { children: /* @__PURE__ */ w(
588
+ !N(i()) && !n() ? /* @__PURE__ */ l(y, { children: /* @__PURE__ */ w(
586
589
  Y,
587
590
  {
588
591
  Wrapper: i(),
@@ -612,7 +615,7 @@ function W(e) {
612
615
  },
613
616
  "block-" + u.id
614
617
  )),
615
- (y = r()) == null ? void 0 : y.map((u) => /* @__PURE__ */ l(
618
+ (v = r()) == null ? void 0 : v.map((u) => /* @__PURE__ */ l(
616
619
  K,
617
620
  {
618
621
  block: u,
@@ -635,7 +638,7 @@ function H(e) {
635
638
  path: e.path,
636
639
  styleProp: e.styleProp,
637
640
  children: [
638
- e.blocks ? /* @__PURE__ */ l(b, { children: (t = e.blocks) == null ? void 0 : t.map((o) => /* @__PURE__ */ l(
641
+ e.blocks ? /* @__PURE__ */ l(y, { children: (t = e.blocks) == null ? void 0 : t.map((o) => /* @__PURE__ */ l(
639
642
  W,
640
643
  {
641
644
  block: o,
@@ -644,7 +647,7 @@ function H(e) {
644
647
  },
645
648
  "render-block-" + o.id
646
649
  )) }) : null,
647
- e.blocks ? /* @__PURE__ */ l(b, { children: (n = e.blocks) == null ? void 0 : n.map((o) => /* @__PURE__ */ l(
650
+ e.blocks ? /* @__PURE__ */ l(y, { children: (n = e.blocks) == null ? void 0 : n.map((o) => /* @__PURE__ */ l(
648
651
  K,
649
652
  {
650
653
  block: o,
@@ -659,22 +662,22 @@ function H(e) {
659
662
  function gt(e) {
660
663
  var u;
661
664
  const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], o = e.stackColumnsAt || "tablet", i = function(d) {
662
- var v;
663
- return ((v = n[d]) == null ? void 0 : v.width) || 100 / n.length;
665
+ var b;
666
+ return ((b = n[d]) == null ? void 0 : b.width) || 100 / n.length;
664
667
  }, a = function(d) {
665
- const v = t * (n.length - 1) / n.length;
666
- return `calc(${i(d)}% - ${v}px)`;
668
+ const b = t * (n.length - 1) / n.length;
669
+ return `calc(${i(d)}% - ${b}px)`;
667
670
  }, r = function({
668
671
  stackedStyle: d,
669
- desktopStyle: v
672
+ desktopStyle: b
670
673
  }) {
671
- return o === "tablet" ? d : v;
674
+ return o === "tablet" ? d : b;
672
675
  }, s = function({
673
676
  stackedStyle: d,
674
- desktopStyle: v
677
+ desktopStyle: b
675
678
  }) {
676
- return o === "never" ? v : d;
677
- }, c = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", f = function() {
679
+ return o === "never" ? b : d;
680
+ }, c = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", m = function() {
678
681
  return {
679
682
  "--flex-dir": c,
680
683
  "--flex-dir-tablet": r({
@@ -683,13 +686,13 @@ function gt(e) {
683
686
  })
684
687
  };
685
688
  }, h = function(d) {
686
- const v = d === 0 ? 0 : t, S = a(d), p = `${v}px`, A = "100%", E = 0;
689
+ const b = d === 0 ? 0 : t, x = a(d), p = `${b}px`, A = "100%", E = 0;
687
690
  return {
688
- width: S,
691
+ width: x,
689
692
  ["marginLeft"]: p,
690
693
  "--column-width-mobile": s({
691
694
  stackedStyle: A,
692
- desktopStyle: S
695
+ desktopStyle: x
693
696
  }),
694
697
  "--column-margin-left-mobile": s({
695
698
  stackedStyle: E,
@@ -697,7 +700,7 @@ function gt(e) {
697
700
  }),
698
701
  "--column-width-tablet": r({
699
702
  stackedStyle: A,
700
- desktopStyle: S
703
+ desktopStyle: x
701
704
  }),
702
705
  "--column-margin-left-tablet": r({
703
706
  stackedStyle: E,
@@ -705,11 +708,11 @@ function gt(e) {
705
708
  })
706
709
  };
707
710
  }, g = function(d) {
708
- var S, p;
711
+ var x, p;
709
712
  return me(
710
- ((p = (S = e.builderContext.content) == null ? void 0 : S.meta) == null ? void 0 : p.breakpoints) || {}
713
+ ((p = (x = e.builderContext.content) == null ? void 0 : x.meta) == null ? void 0 : p.breakpoints) || {}
711
714
  )[d].max;
712
- }, y = function() {
715
+ }, v = function() {
713
716
  return `
714
717
  @media (max-width: ${g("medium")}px) {
715
718
  .${e.builderBlock.id}-breakpoints {
@@ -736,15 +739,15 @@ function gt(e) {
736
739
  },
737
740
  `;
738
741
  };
739
- return /* @__PURE__ */ w(b, { children: [
742
+ return /* @__PURE__ */ w(y, { children: [
740
743
  /* @__PURE__ */ w(
741
744
  "div",
742
745
  {
743
746
  className: `builder-columns ${e.builderBlock.id}-breakpoints div-0d69fe26`,
744
- style: f(),
747
+ style: m(),
745
748
  children: [
746
- /* @__PURE__ */ l(b, { children: /* @__PURE__ */ l(F, { styles: y() }) }),
747
- (u = e.columns) == null ? void 0 : u.map((m, d) => /* @__PURE__ */ Pe(
749
+ /* @__PURE__ */ l(y, { children: /* @__PURE__ */ l(F, { styles: v() }) }),
750
+ (u = e.columns) == null ? void 0 : u.map((f, d) => /* @__PURE__ */ Pe(
748
751
  "div",
749
752
  {
750
753
  className: "builder-column div-0d69fe26-2",
@@ -761,7 +764,7 @@ function gt(e) {
761
764
  },
762
765
  context: e.builderContext,
763
766
  registeredComponents: e.builderComponents,
764
- blocks: m.blocks
767
+ blocks: f.blocks
765
768
  }
766
769
  )
767
770
  ))
@@ -829,7 +832,7 @@ const yt = (e) => {
829
832
  value: t,
830
833
  expires: n
831
834
  }) => {
832
- const i = (x() ? location.protocol === "https:" : !0) ? xt : [[]], a = n ? [["expires", n.toUTCString()]] : [[]], r = [[e, t], ...a, ["path", "/"], ["domain", yt(window.location.hostname)], ...i];
835
+ const i = (S() ? location.protocol === "https:" : !0) ? xt : [[]], a = n ? [["expires", n.toUTCString()]] : [[]], r = [[e, t], ...a, ["path", "/"], ["domain", yt(window.location.hostname)], ...i];
833
836
  return vt(r);
834
837
  }, pe = async ({
835
838
  name: e,
@@ -1251,15 +1254,15 @@ const yt = (e) => {
1251
1254
  onChange: (e) => {
1252
1255
  e.delete("srcset"), e.delete("noWebp");
1253
1256
  function n(r, s = 6e4) {
1254
- return new Promise((c, f) => {
1257
+ return new Promise((c, m) => {
1255
1258
  const h = document.createElement("img");
1256
1259
  let g = !1;
1257
1260
  h.onload = () => {
1258
1261
  g = !0, c(h);
1259
- }, h.addEventListener("error", (y) => {
1260
- console.warn("Image load failed", y.error), f(y.error);
1262
+ }, h.addEventListener("error", (v) => {
1263
+ console.warn("Image load failed", v.error), m(v.error);
1261
1264
  }), h.src = r, setTimeout(() => {
1262
- g || f(new Error("Image load timed out"));
1265
+ g || m(new Error("Image load timed out"));
1263
1266
  }, s);
1264
1267
  });
1265
1268
  }
@@ -1674,7 +1677,7 @@ const Mt = {
1674
1677
  })), zt = ({
1675
1678
  canTrack: e,
1676
1679
  content: t
1677
- }) => !(!(B(t).length > 0) || !e || x()), qt = (e) => e === "react" || e === "reactNative", ke = qt(T), Gt = () => `
1680
+ }) => !(!(B(t).length > 0) || !e || S()), qt = (e) => e === "react" || e === "reactNative", ke = qt(T), Gt = () => `
1678
1681
  window.${xe} = ${Kt}
1679
1682
  window.${Se} = ${Ht}
1680
1683
  `, Yt = (e, t) => `
@@ -1750,7 +1753,7 @@ const on = "v3", ne = "builder.", an = "options.", rn = (e) => {
1750
1753
  }
1751
1754
  }), n;
1752
1755
  }, sn = () => {
1753
- if (!x())
1756
+ if (!S())
1754
1757
  return {};
1755
1758
  const e = new URLSearchParams(window.location.search);
1756
1759
  return Ce(e);
@@ -1766,25 +1769,25 @@ const on = "v3", ne = "builder.", an = "options.", rn = (e) => {
1766
1769
  apiKey: r,
1767
1770
  includeRefs: s = !0,
1768
1771
  enrich: c,
1769
- locale: f,
1772
+ locale: m,
1770
1773
  apiVersion: h = on,
1771
1774
  fields: g,
1772
- omit: y,
1775
+ omit: v,
1773
1776
  offset: u,
1774
- cacheSeconds: m,
1777
+ cacheSeconds: f,
1775
1778
  staleCacheSeconds: d,
1776
- sort: v,
1777
- includeUnpublished: S
1779
+ sort: b,
1780
+ includeUnpublished: x
1778
1781
  } = e;
1779
1782
  if (!r)
1780
1783
  throw new Error("Missing API key");
1781
1784
  if (!["v2", "v3"].includes(h))
1782
1785
  throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${h}'`);
1783
1786
  (e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
1784
- const p = new URL(`https://cdn.builder.io/api/${h}/content/${a}?apiKey=${r}&limit=${n}&noTraverse=${t}&includeRefs=${s}${f ? `&locale=${f}` : ""}${c ? `&enrich=${c}` : ""}`);
1785
- if (p.searchParams.set("omit", y || "meta.componentsUsed"), g && p.searchParams.set("fields", g), Number.isFinite(u) && u > -1 && p.searchParams.set("offset", String(Math.floor(u))), typeof S == "boolean" && p.searchParams.set("includeUnpublished", String(S)), m && oe(m) && p.searchParams.set("cacheSeconds", String(m)), d && oe(d) && p.searchParams.set("staleCacheSeconds", String(d)), v) {
1787
+ const p = new URL(`https://cdn.builder.io/api/${h}/content/${a}?apiKey=${r}&limit=${n}&noTraverse=${t}&includeRefs=${s}${m ? `&locale=${m}` : ""}${c ? `&enrich=${c}` : ""}`);
1788
+ if (p.searchParams.set("omit", v || "meta.componentsUsed"), g && p.searchParams.set("fields", g), Number.isFinite(u) && u > -1 && p.searchParams.set("offset", String(Math.floor(u))), typeof x == "boolean" && p.searchParams.set("includeUnpublished", String(x)), f && oe(f) && p.searchParams.set("cacheSeconds", String(f)), d && oe(d) && p.searchParams.set("staleCacheSeconds", String(d)), b) {
1786
1789
  const C = P({
1787
- sort: v
1790
+ sort: b
1788
1791
  });
1789
1792
  for (const R in C)
1790
1793
  p.searchParams.set(R, JSON.stringify(C[R]));
@@ -1824,7 +1827,7 @@ const Kn = G, ln = async (e) => {
1824
1827
  }
1825
1828
  t.results = a;
1826
1829
  }
1827
- if (!o || !(x() || T === "reactNative"))
1830
+ if (!o || !(S() || T === "reactNative"))
1828
1831
  return t;
1829
1832
  try {
1830
1833
  const a = [];
@@ -1853,7 +1856,7 @@ async function Ie(e) {
1853
1856
  }
1854
1857
  const Hn = Ie;
1855
1858
  function zn() {
1856
- return !x() || D() ? !1 : location.search.indexOf("builder.preview=") !== -1;
1859
+ return !S() || D() ? !1 : location.search.indexOf("builder.preview=") !== -1;
1857
1860
  }
1858
1861
  function un() {
1859
1862
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
@@ -1889,7 +1892,7 @@ const Ee = "builderSessionId", mn = async ({
1889
1892
  name: Ee,
1890
1893
  value: e,
1891
1894
  canTrack: t
1892
- }), Re = () => x() && typeof localStorage < "u" ? localStorage : void 0, gn = ({
1895
+ }), Re = () => S() && typeof localStorage < "u" ? localStorage : void 0, gn = ({
1893
1896
  key: e,
1894
1897
  canTrack: t
1895
1898
  }) => {
@@ -1979,7 +1982,7 @@ async function kn(e) {
1979
1982
  k.error("Missing API key for track call. Please provide your API key.");
1980
1983
  return;
1981
1984
  }
1982
- if (e.canTrack && !D() && (x() || T === "reactNative"))
1985
+ if (e.canTrack && !D() && (S() || T === "reactNative"))
1983
1986
  return fetch("https://cdn.builder.io/api/v1/track", {
1984
1987
  method: "POST",
1985
1988
  body: JSON.stringify({
@@ -2039,10 +2042,10 @@ const Cn = (e, t, n = !0) => {
2039
2042
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
2040
2043
  }
2041
2044
  };
2042
- }, In = "0.7.5", re = {};
2045
+ }, In = "0.7.6", re = {};
2043
2046
  function Tn(e, t) {
2044
2047
  let n = re[e];
2045
- if (n || (n = re[e] = []), n.push(t), x()) {
2048
+ if (n || (n = re[e] = []), n.push(t), S()) {
2046
2049
  const o = {
2047
2050
  type: "builder.register",
2048
2051
  data: {
@@ -2083,7 +2086,7 @@ const Yn = () => {
2083
2086
  let se = !1;
2084
2087
  const Jn = (e = {}) => {
2085
2088
  var t, n;
2086
- se || (se = !0, x() && ((t = window.parent) == null || t.postMessage({
2089
+ se || (se = !0, S() && ((t = window.parent) == null || t.postMessage({
2087
2090
  type: "builder.sdkInfo",
2088
2091
  data: {
2089
2092
  target: T,
@@ -2106,12 +2109,12 @@ const Jn = (e = {}) => {
2106
2109
  if (o != null && o.type)
2107
2110
  switch (o.type) {
2108
2111
  case "builder.evaluate": {
2109
- const r = o.data.text, s = o.data.arguments || [], c = o.data.id, f = new Function(r);
2112
+ const r = o.data.text, s = o.data.arguments || [], c = o.data.id, m = new Function(r);
2110
2113
  let h, g = null;
2111
2114
  try {
2112
- h = f.apply(null, s);
2113
- } catch (y) {
2114
- g = y;
2115
+ h = m.apply(null, s);
2116
+ } catch (v) {
2117
+ g = v;
2115
2118
  }
2116
2119
  g ? (i = window.parent) == null || i.postMessage({
2117
2120
  type: "builder.evaluateError",
@@ -2119,13 +2122,13 @@ const Jn = (e = {}) => {
2119
2122
  id: c,
2120
2123
  error: g.message
2121
2124
  }
2122
- }, "*") : h && typeof h.then == "function" ? h.then((y) => {
2125
+ }, "*") : h && typeof h.then == "function" ? h.then((v) => {
2123
2126
  var u;
2124
2127
  (u = window.parent) == null || u.postMessage({
2125
2128
  type: "builder.evaluateResult",
2126
2129
  data: {
2127
2130
  id: c,
2128
- result: y
2131
+ result: v
2129
2132
  }
2130
2133
  }, "*");
2131
2134
  }).catch(console.error) : (a = window.parent) == null || a.postMessage({
@@ -2228,7 +2231,7 @@ const Bn = ({
2228
2231
  meta: e == null ? void 0 : e.meta
2229
2232
  } : void 0;
2230
2233
  function ce(e) {
2231
- var i, a, r, s, c, f, h, g, y;
2234
+ var i, a, r, s, c, m, h, g, v;
2232
2235
  const t = Jt({
2233
2236
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2234
2237
  variationId: (i = e.content) == null ? void 0 : i.testVariationId,
@@ -2244,10 +2247,10 @@ function ce(e) {
2244
2247
  ...te,
2245
2248
  ...e.customComponents || []
2246
2249
  ].reduce(
2247
- (u, { component: m, ...d }) => ({
2250
+ (u, { component: f, ...d }) => ({
2248
2251
  ...u,
2249
2252
  [d.name]: {
2250
- component: m,
2253
+ component: f,
2251
2254
  ...U(d)
2252
2255
  }
2253
2256
  }),
@@ -2277,7 +2280,7 @@ function ce(e) {
2277
2280
  ...te,
2278
2281
  ...e.customComponents || []
2279
2282
  ].reduce(
2280
- (u, { component: m, ...d }) => ({
2283
+ (u, { component: f, ...d }) => ({
2281
2284
  ...u,
2282
2285
  [d.name]: U(d)
2283
2286
  }),
@@ -2299,19 +2302,19 @@ function ce(e) {
2299
2302
  showContent: e.showContent,
2300
2303
  builderContextSignal: o,
2301
2304
  children: [
2302
- e.isSsrAbTest ? /* @__PURE__ */ l(b, { children: /* @__PURE__ */ l(M, { scriptStr: t }) }) : null,
2303
- /* @__PURE__ */ l(b, { children: /* @__PURE__ */ l(
2305
+ e.isSsrAbTest ? /* @__PURE__ */ l(y, { children: /* @__PURE__ */ l(M, { scriptStr: t }) }) : null,
2306
+ /* @__PURE__ */ l(y, { children: /* @__PURE__ */ l(
2304
2307
  Vn,
2305
2308
  {
2306
2309
  contentId: (r = o.content) == null ? void 0 : r.id,
2307
2310
  cssCode: (c = (s = o.content) == null ? void 0 : s.data) == null ? void 0 : c.cssCode,
2308
- customFonts: (h = (f = o.content) == null ? void 0 : f.data) == null ? void 0 : h.customFonts
2311
+ customFonts: (h = (m = o.content) == null ? void 0 : m.data) == null ? void 0 : h.customFonts
2309
2312
  }
2310
2313
  ) }),
2311
2314
  /* @__PURE__ */ l(
2312
2315
  H,
2313
2316
  {
2314
- blocks: (y = (g = o.content) == null ? void 0 : g.data) == null ? void 0 : y.blocks,
2317
+ blocks: (v = (g = o.content) == null ? void 0 : g.data) == null ? void 0 : v.blocks,
2315
2318
  context: o,
2316
2319
  registeredComponents: n
2317
2320
  }
@@ -2328,9 +2331,9 @@ function Ve(e) {
2328
2331
  }), n = function() {
2329
2332
  var c;
2330
2333
  return Yt(
2331
- B(e.content).map((f) => ({
2332
- id: f.testVariationId,
2333
- testRatio: f.testRatio
2334
+ B(e.content).map((m) => ({
2335
+ id: m.testVariationId,
2336
+ testRatio: m.testRatio
2334
2337
  })),
2335
2338
  ((c = e.content) == null ? void 0 : c.id) || ""
2336
2339
  );
@@ -2346,9 +2349,9 @@ function Ve(e) {
2346
2349
  canTrack: L(e.canTrack)
2347
2350
  });
2348
2351
  };
2349
- return /* @__PURE__ */ w(b, { children: [
2350
- !e.__isNestedRender && T !== "reactNative" ? /* @__PURE__ */ l(b, { children: /* @__PURE__ */ l(M, { scriptStr: Gt() }) }) : null,
2351
- t ? /* @__PURE__ */ w(b, { children: [
2352
+ return /* @__PURE__ */ w(y, { children: [
2353
+ !e.__isNestedRender && T !== "reactNative" ? /* @__PURE__ */ l(y, { children: /* @__PURE__ */ l(M, { scriptStr: Gt() }) }) : null,
2354
+ t ? /* @__PURE__ */ w(y, { children: [
2352
2355
  /* @__PURE__ */ l(
2353
2356
  F,
2354
2357
  {
@@ -2419,12 +2422,12 @@ const $n = async ({
2419
2422
  async function On(e) {
2420
2423
  var o, i, a, r;
2421
2424
  const t = function() {
2422
- var c, f;
2425
+ var c, m;
2423
2426
  return [
2424
2427
  e.attributes.className,
2425
2428
  "builder-symbol",
2426
2429
  (c = e.symbol) != null && c.inline ? "builder-inline-symbol" : void 0,
2427
- (f = e.symbol) != null && f.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
2430
+ (m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
2428
2431
  ].filter(Boolean).join(" ");
2429
2432
  }, n = ((o = e.symbol) == null ? void 0 : o.content) || await $n({
2430
2433
  symbol: e.symbol,
@@ -2450,7 +2453,7 @@ async function On(e) {
2450
2453
  }
2451
2454
  const Qn = H, Xn = Ve, le = {};
2452
2455
  function Zn(e) {
2453
- if (x()) {
2456
+ if (S()) {
2454
2457
  Object.assign(le, e);
2455
2458
  const t = {
2456
2459
  type: "builder.settingsChange",
@@ -2492,7 +2495,7 @@ export {
2492
2495
  Un as a,
2493
2496
  Mn as b,
2494
2497
  Dn as c,
2495
- x as d,
2498
+ S as d,
2496
2499
  L as e,
2497
2500
  zn as f,
2498
2501
  ut as g,