@builder.io/sdk-react-nextjs 0.12.5 → 0.12.7

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 (33) hide show
  1. package/lib/{node/USE_CLIENT_BUNDLE-4ba4594d.js → browser/USE_CLIENT_BUNDLE-456ca2b5.js} +46 -45
  2. package/lib/browser/{USE_CLIENT_BUNDLE-70be4cc5.cjs → USE_CLIENT_BUNDLE-9d2b983d.cjs} +2 -2
  3. package/lib/{edge/USE_SERVER_BUNDLE-36de460d.js → browser/USE_SERVER_BUNDLE-e0f1c15b.js} +1 -1
  4. package/lib/{edge/USE_SERVER_BUNDLE-50c2f18b.cjs → browser/USE_SERVER_BUNDLE-ee4a5d19.cjs} +1 -1
  5. package/lib/browser/{bundle-f9f52242.js → bundle-56e0b400.js} +499 -439
  6. package/lib/browser/{bundle-bd9886c9.cjs → bundle-a408994f.cjs} +21 -21
  7. package/lib/browser/index.cjs +1 -1
  8. package/lib/browser/index.mjs +6 -6
  9. package/lib/{browser/USE_CLIENT_BUNDLE-7492ecd8.js → edge/USE_CLIENT_BUNDLE-789e694f.js} +46 -45
  10. package/lib/{node/USE_CLIENT_BUNDLE-2f43c320.cjs → edge/USE_CLIENT_BUNDLE-a6a0becc.cjs} +2 -2
  11. package/lib/{node/USE_SERVER_BUNDLE-473d50ad.cjs → edge/USE_SERVER_BUNDLE-dbf92938.cjs} +1 -1
  12. package/lib/{node/USE_SERVER_BUNDLE-2534ef71.js → edge/USE_SERVER_BUNDLE-dffaa191.js} +1 -1
  13. package/lib/edge/{bundle-765860e3.js → bundle-4bf88f38.js} +812 -752
  14. package/lib/edge/{bundle-71cfdd3e.cjs → bundle-97ad81d1.cjs} +32 -32
  15. package/lib/edge/index.cjs +1 -1
  16. package/lib/edge/index.mjs +6 -6
  17. package/lib/{edge/USE_CLIENT_BUNDLE-cb840c0f.js → node/USE_CLIENT_BUNDLE-499aeaa2.js} +46 -45
  18. package/lib/{edge/USE_CLIENT_BUNDLE-1148158d.cjs → node/USE_CLIENT_BUNDLE-b2f9be29.cjs} +2 -2
  19. package/lib/{browser/USE_SERVER_BUNDLE-875d4629.cjs → node/USE_SERVER_BUNDLE-b3ad9a89.cjs} +1 -1
  20. package/lib/{browser/USE_SERVER_BUNDLE-fe386ed3.js → node/USE_SERVER_BUNDLE-e3da6caa.js} +1 -1
  21. package/lib/node/{bundle-1c54df65.cjs → bundle-97b4832a.cjs} +4 -4
  22. package/lib/node/{bundle-305bb463.js → bundle-d3f89e99.js} +228 -168
  23. package/lib/node/index.cjs +1 -1
  24. package/lib/node/index.mjs +6 -6
  25. package/package.json +1 -1
  26. package/types/cjs/components/block/animator.d.ts +5 -0
  27. package/types/cjs/constants/sdk-version.d.ts +1 -1
  28. package/types/cjs/functions/evaluate/browser-runtime/browser.d.ts +5 -1
  29. package/types/cjs/types/builder-block.d.ts +18 -1
  30. package/types/esm/components/block/animator.d.ts +5 -0
  31. package/types/esm/constants/sdk-version.d.ts +1 -1
  32. package/types/esm/functions/evaluate/browser-runtime/browser.d.ts +5 -1
  33. package/types/esm/types/builder-block.d.ts +18 -1
@@ -1,6 +1,6 @@
1
1
  import { LRUCache } from "lru-cache";
2
2
  import { jsx, Fragment, jsxs } from "react/jsx-runtime";
3
- import { I as InteractiveElement, B as BlockWrapper, a as BlocksWrapper, D as DynamicRenderer, b as Button, C as CustomCode, E as Embed, F as FragmentComponent, c as Image, d as ImgComponent, S as SectionComponent, V as Video, e as EnableEditor } from "./USE_CLIENT_BUNDLE-4ba4594d.js";
3
+ import { I as InteractiveElement, B as BlockWrapper, a as BlocksWrapper, D as DynamicRenderer, b as Button, C as CustomCode, E as Embed, F as FragmentComponent, c as Image, d as ImgComponent, S as SectionComponent, V as Video, e as EnableEditor } from "./USE_CLIENT_BUNDLE-499aeaa2.js";
4
4
  import "react";
5
5
  import "next/navigation";
6
6
  const EMPTY_HTML_ELEMENTS = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), isEmptyElement = (e) => typeof e == "string" && EMPTY_HTML_ELEMENTS.has(e.toLowerCase()), TARGET = "rsc", getClassPropName = () => {
@@ -98,27 +98,44 @@ const getLocation = () => {
98
98
  builder: t,
99
99
  context: n,
100
100
  event: o,
101
- localState: i,
102
- rootSetState: r,
101
+ localState: r,
102
+ rootSetState: i,
103
103
  rootState: a
104
104
  }) => {
105
105
  const s = getFunctionArguments({
106
106
  builder: t,
107
107
  context: n,
108
108
  event: o,
109
- state: flattenState(a, i, r)
109
+ state: flattenState({
110
+ rootState: a,
111
+ localState: r,
112
+ rootSetState: i
113
+ })
110
114
  });
111
115
  return new Function(...s.map(([c]) => c), e)(...s.map(([, c]) => c));
112
116
  };
113
- function flattenState(e, t, n) {
114
- if (e === t)
115
- throw new Error("rootState === localState");
117
+ function flattenState({
118
+ rootState: e,
119
+ localState: t,
120
+ rootSetState: n
121
+ }) {
116
122
  return new Proxy(e, {
117
- get: (o, i) => t && i in t ? t[i] : e[i],
118
- set: (o, i, r) => {
119
- if (t && i in t)
123
+ get: (o, r) => {
124
+ if (t && r in t)
125
+ return t[r];
126
+ const i = o[r];
127
+ return typeof i == "object" ? flattenState({
128
+ rootState: i,
129
+ localState: void 0,
130
+ rootSetState: n ? (a) => {
131
+ o[r] = a, n(o);
132
+ } : void 0
133
+ }) : i;
134
+ },
135
+ set: (o, r, i) => {
136
+ if (t && r in t)
120
137
  throw new Error("Writing to local state is not allowed as it is read-only.");
121
- return e[i] = r, n == null || n(e), !0;
138
+ return o[r] = i, n == null || n(o), !0;
122
139
  }
123
140
  });
124
141
  }
@@ -126,7 +143,7 @@ const fastClone = (e) => JSON.parse(JSON.stringify(e)), set = (e, t, n) => {
126
143
  if (Object(e) !== e)
127
144
  return e;
128
145
  const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
129
- return o.slice(0, -1).reduce((i, r, a) => Object(i[r]) === i[r] ? i[r] : i[r] = Math.abs(Number(o[a + 1])) >> 0 === +o[a + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
146
+ return o.slice(0, -1).reduce((r, i, a) => Object(r[i]) === r[i] ? r[i] : r[i] = Math.abs(Number(o[a + 1])) >> 0 === +o[a + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
130
147
  }, noop = () => {
131
148
  };
132
149
  let safeDynamicRequire = noop;
@@ -187,13 +204,13 @@ output;
187
204
  builder: t,
188
205
  context: n,
189
206
  event: o,
190
- localState: i,
191
- rootSetState: r,
207
+ localState: r,
208
+ rootSetState: i,
192
209
  rootState: a
193
210
  }) => {
194
211
  const s = fastClone({
195
212
  ...a,
196
- ...i
213
+ ...r
197
214
  }), c = getFunctionArguments({
198
215
  builder: t,
199
216
  context: n,
@@ -203,7 +220,7 @@ output;
203
220
  f.setSync("global", f.derefInto()), f.setSync("log", function(...d) {
204
221
  console.log(...d);
205
222
  }), f.setSync(BUILDER_SET_STATE_NAME, function(d, l) {
206
- set(a, d, l), r == null || r(a);
223
+ set(a, d, l), i == null || i(a);
207
224
  }), c.forEach(([d, l]) => {
208
225
  const u = typeof l == "object" ? new ivm.Reference(
209
226
  // workaround: methods with default values for arguments is not being cloned over
@@ -240,8 +257,8 @@ function evaluate({
240
257
  context: t,
241
258
  localState: n,
242
259
  rootState: o,
243
- rootSetState: i,
244
- event: r,
260
+ rootSetState: r,
261
+ event: i,
245
262
  isExpression: a = !0
246
263
  }) {
247
264
  if (e === "") {
@@ -254,8 +271,8 @@ function evaluate({
254
271
  }),
255
272
  builder: getBuilderGlobals(),
256
273
  context: t,
257
- event: r,
258
- rootSetState: i,
274
+ event: i,
275
+ rootSetState: r,
259
276
  rootState: o,
260
277
  localState: n
261
278
  };
@@ -276,17 +293,17 @@ const evaluateBindings = ({
276
293
  context: t,
277
294
  localState: n,
278
295
  rootState: o,
279
- rootSetState: i
296
+ rootSetState: r
280
297
  }) => {
281
298
  if (!e.bindings)
282
299
  return e;
283
- const r = fastClone(e), a = {
284
- ...r,
300
+ const i = fastClone(e), a = {
301
+ ...i,
285
302
  properties: {
286
- ...r.properties
303
+ ...i.properties
287
304
  },
288
305
  actions: {
289
- ...r.actions
306
+ ...i.actions
290
307
  }
291
308
  };
292
309
  for (const s in e.bindings) {
@@ -294,7 +311,7 @@ const evaluateBindings = ({
294
311
  code: c,
295
312
  localState: n,
296
313
  rootState: o,
297
- rootSetState: i,
314
+ rootSetState: r,
298
315
  context: t
299
316
  });
300
317
  set(a, s, m);
@@ -306,15 +323,15 @@ function getProcessedBlock({
306
323
  context: t,
307
324
  shouldEvaluateBindings: n,
308
325
  localState: o,
309
- rootState: i,
310
- rootSetState: r
326
+ rootState: r,
327
+ rootSetState: i
311
328
  }) {
312
329
  const a = e;
313
330
  return n ? evaluateBindings({
314
331
  block: a,
315
332
  localState: o,
316
- rootState: i,
317
- rootSetState: r,
333
+ rootState: r,
334
+ rootSetState: i,
318
335
  context: t
319
336
  }) : a;
320
337
  }
@@ -323,20 +340,20 @@ const getComponent = ({
323
340
  context: t,
324
341
  registeredComponents: n
325
342
  }) => {
326
- var r;
327
- const o = (r = getProcessedBlock({
343
+ var i;
344
+ const o = (i = getProcessedBlock({
328
345
  block: e,
329
346
  localState: t.localState,
330
347
  rootState: t.rootState,
331
348
  rootSetState: t.rootSetState,
332
349
  context: t.context,
333
350
  shouldEvaluateBindings: !1
334
- }).component) == null ? void 0 : r.name;
351
+ }).component) == null ? void 0 : i.name;
335
352
  if (!o)
336
353
  return null;
337
- const i = n[o];
338
- if (i)
339
- return i;
354
+ const r = n[o];
355
+ if (r)
356
+ return r;
340
357
  console.warn(`
341
358
  Could not find a registered component named "${o}".
342
359
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
@@ -350,17 +367,17 @@ const getComponent = ({
350
367
  } = e;
351
368
  if (!(n != null && n.collection))
352
369
  return;
353
- const i = evaluate({
370
+ const r = evaluate({
354
371
  code: n.collection,
355
372
  localState: t.localState,
356
373
  rootState: t.rootState,
357
374
  rootSetState: t.rootSetState,
358
375
  context: t.context
359
376
  });
360
- if (!Array.isArray(i))
377
+ if (!Array.isArray(r))
361
378
  return;
362
- const r = n.collection.split(".").pop(), a = n.itemName || (r ? r + "Item" : "item");
363
- return i.map((c, m) => ({
379
+ const i = n.collection.split(".").pop(), a = n.itemName || (i ? i + "Item" : "item");
380
+ return r.map((c, m) => ({
364
381
  context: {
365
382
  ...t,
366
383
  localState: {
@@ -402,18 +419,18 @@ const getComponent = ({
402
419
  min: o,
403
420
  default: o + 1
404
421
  };
405
- const i = n.small.max + 1;
422
+ const r = n.small.max + 1;
406
423
  n.medium = {
407
424
  max: t,
408
- min: i,
409
- default: i + 1
425
+ min: r,
426
+ default: r + 1
410
427
  };
411
- const r = n.medium.max + 1;
428
+ const i = n.medium.max + 1;
412
429
  return n.large = {
413
430
  max: 2e3,
414
431
  // TODO: decide upper limit
415
- min: r,
416
- default: r + 1
432
+ min: i,
433
+ default: i + 1
417
434
  }, n;
418
435
  }, camelToKebabCase = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), convertStyleMapToCSSArray = (e) => Object.entries(e).map(([n, o]) => {
419
436
  if (typeof o == "string")
@@ -436,7 +453,7 @@ function InlinedStyles(e) {
436
453
  }
437
454
  function BlockStyles(e) {
438
455
  const t = function() {
439
- const i = getProcessedBlock({
456
+ const r = getProcessedBlock({
440
457
  block: e.block,
441
458
  localState: e.context.localState,
442
459
  rootState: e.context.rootState,
@@ -444,19 +461,19 @@ function BlockStyles(e) {
444
461
  context: e.context.context,
445
462
  shouldEvaluateBindings: !0
446
463
  });
447
- return checkIsDefined(i.hide) ? !i.hide : checkIsDefined(i.show) ? i.show : !0;
464
+ return checkIsDefined(r.hide) ? !r.hide : checkIsDefined(r.show) ? r.show : !0;
448
465
  }, n = function() {
449
466
  var u;
450
- const i = getProcessedBlock({
467
+ const r = getProcessedBlock({
451
468
  block: e.block,
452
469
  localState: e.context.localState,
453
470
  rootState: e.context.rootState,
454
471
  rootSetState: e.context.rootSetState,
455
472
  context: e.context.context,
456
473
  shouldEvaluateBindings: !0
457
- }), r = i.responsiveStyles, a = e.context.content, s = getSizesForBreakpoints(
474
+ }), i = r.responsiveStyles, a = e.context.content, s = getSizesForBreakpoints(
458
475
  ((u = a == null ? void 0 : a.meta) == null ? void 0 : u.breakpoints) || {}
459
- ), c = r == null ? void 0 : r.large, m = r == null ? void 0 : r.medium, f = r == null ? void 0 : r.small, p = i.id;
476
+ ), c = i == null ? void 0 : i.large, m = i == null ? void 0 : i.medium, f = i == null ? void 0 : i.small, p = r.id;
460
477
  if (!p)
461
478
  return "";
462
479
  const g = c ? createCssClass({
@@ -498,18 +515,18 @@ function getBlockActions(e) {
498
515
  for (const o in n) {
499
516
  if (!n.hasOwnProperty(o))
500
517
  continue;
501
- const i = n[o];
502
- let r = getEventHandlerName(o);
518
+ const r = n[o];
519
+ let i = getEventHandlerName(o);
503
520
  if (e.stripPrefix)
504
521
  switch (TARGET) {
505
522
  case "vue":
506
- r = r.replace("v-on:", "");
523
+ i = i.replace("v-on:", "");
507
524
  break;
508
525
  case "svelte":
509
- r = r.replace("on:", "");
526
+ i = i.replace("on:", "");
510
527
  break;
511
528
  }
512
- t[r] = createEventHandler(i, e);
529
+ t[i] = createEventHandler(r, e);
513
530
  }
514
531
  return t;
515
532
  }
@@ -573,8 +590,8 @@ const getWrapperProps = ({
573
590
  builderBlock: t,
574
591
  context: n,
575
592
  componentRef: o,
576
- includeBlockProps: i,
577
- isInteractive: r,
593
+ includeBlockProps: r,
594
+ isInteractive: i,
578
595
  contextValue: a
579
596
  }) => {
580
597
  const s = {
@@ -583,19 +600,19 @@ const getWrapperProps = ({
583
600
  * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
584
601
  * component itself directly. Otherwise, they are provided to the wrapper element.
585
602
  */
586
- ...i ? {
603
+ ...r ? {
587
604
  attributes: getBlockProperties({
588
605
  block: t,
589
606
  context: a
590
607
  })
591
608
  } : {}
592
609
  };
593
- return r ? {
610
+ return i ? {
594
611
  Wrapper: o,
595
612
  block: t,
596
613
  context: n,
597
614
  wrapperProps: e,
598
- includeBlockProps: i
615
+ includeBlockProps: r
599
616
  } : s;
600
617
  };
601
618
  function ComponentRef(e) {
@@ -662,10 +679,10 @@ function Block(e) {
662
679
  context: e.context.context,
663
680
  shouldEvaluateBindings: !0
664
681
  });
665
- }, i = function() {
682
+ }, r = function() {
666
683
  var l;
667
684
  return e.block.tagName === "a" || ((l = o().properties) == null ? void 0 : l.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
668
- }, r = function() {
685
+ }, i = function() {
669
686
  var u, b;
670
687
  if ((u = e.block.repeat) != null && u.collection)
671
688
  return !!((b = n()) != null && b.length);
@@ -697,7 +714,7 @@ function Block(e) {
697
714
  isInteractive: !((C = t()) != null && C.isRSC)
698
715
  };
699
716
  }, c = e.context;
700
- return /* @__PURE__ */ jsx(Fragment, { children: r() ? /* @__PURE__ */ jsxs(Fragment, { children: [
717
+ return /* @__PURE__ */ jsx(Fragment, { children: i() ? /* @__PURE__ */ jsxs(Fragment, { children: [
701
718
  /* @__PURE__ */ jsx(BlockStyles, { block: e.block, context: e.context }),
702
719
  (m = t()) != null && m.noWrap ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
703
720
  ComponentRef,
@@ -724,7 +741,7 @@ function Block(e) {
724
741
  )) }) : /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(
725
742
  BlockWrapper,
726
743
  {
727
- Wrapper: i(),
744
+ Wrapper: r(),
728
745
  block: o(),
729
746
  context: e.context,
730
747
  linkComponent: e.linkComponent,
@@ -769,27 +786,27 @@ function Blocks(e) {
769
786
  styleProp: e.styleProp,
770
787
  BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
771
788
  BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
772
- children: e.blocks ? /* @__PURE__ */ jsx(Fragment, { children: (o = e.blocks) == null ? void 0 : o.map((i) => /* @__PURE__ */ jsx(
789
+ children: e.blocks ? /* @__PURE__ */ jsx(Fragment, { children: (o = e.blocks) == null ? void 0 : o.map((r) => /* @__PURE__ */ jsx(
773
790
  Block,
774
791
  {
775
- block: i,
792
+ block: r,
776
793
  linkComponent: e.linkComponent,
777
794
  context: e.context,
778
795
  registeredComponents: e.registeredComponents
779
796
  },
780
- i.id
797
+ r.id
781
798
  )) }) : null
782
799
  }
783
800
  );
784
801
  }
785
802
  function Columns(e) {
786
803
  var d;
787
- const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], o = e.stackColumnsAt || "tablet", i = function(u) {
804
+ const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], o = e.stackColumnsAt || "tablet", r = function(u) {
788
805
  var b;
789
806
  return ((b = n[u]) == null ? void 0 : b.width) || 100 / n.length;
790
- }, r = function(u) {
807
+ }, i = function(u) {
791
808
  const b = t * (n.length - 1) / n.length;
792
- return `calc(${i(u)}% - ${b}px)`;
809
+ return `calc(${r(u)}% - ${b}px)`;
793
810
  }, a = function({
794
811
  stackedStyle: u,
795
812
  desktopStyle: b
@@ -809,7 +826,7 @@ function Columns(e) {
809
826
  })
810
827
  };
811
828
  }, f = function(u) {
812
- const b = u === 0 ? 0 : t, y = r(u), h = `${b}px`, k = "100%", C = 0;
829
+ const b = u === 0 ? 0 : t, y = i(u), h = `${b}px`, k = "100%", C = 0;
813
830
  return {
814
831
  ...{
815
832
  display: "flex",
@@ -917,8 +934,8 @@ function removeProtocol(e) {
917
934
  return e.replace(/http(s)?:/, "");
918
935
  }
919
936
  function updateQueryParam(e = "", t, n) {
920
- const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), i = e.indexOf("?") !== -1 ? "&" : "?";
921
- return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + i + t + "=" + encodeURIComponent(n);
937
+ const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
938
+ return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
922
939
  }
923
940
  function getShopifyImageUrl(e, t) {
924
941
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
@@ -927,8 +944,8 @@ function getShopifyImageUrl(e, t) {
927
944
  return removeProtocol(e);
928
945
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
929
946
  if (n) {
930
- const o = e.split(n[0]), i = n[3], r = t.match("x") ? t : `${t}x`;
931
- return removeProtocol(`${o[0]}_${r}${i}`);
947
+ const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
948
+ return removeProtocol(`${o[0]}_${i}${r}`);
932
949
  }
933
950
  return null;
934
951
  }
@@ -939,7 +956,7 @@ function getSrcSet(e) {
939
956
  if (e.match(/builder\.io/)) {
940
957
  let n = e;
941
958
  const o = Number(e.split("?width=")[1]);
942
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((i) => i !== o).map((i) => `${updateQueryParam(e, "width", i)} ${i}w`).concat([n]).join(", ");
959
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${updateQueryParam(e, "width", r)} ${r}w`).concat([n]).join(", ");
943
960
  }
944
961
  return e.match(/cdn\.shopify\.com/) ? t.map((n) => [getShopifyImageUrl(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
945
962
  }
@@ -964,7 +981,7 @@ const getTopLevelDomain = (e) => {
964
981
  value: t,
965
982
  expires: n
966
983
  }) => {
967
- const i = (isBrowser() ? location.protocol === "https:" : !0) ? SECURE_CONFIG : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], a = [[e, t], ...r, ["path", "/"], ["domain", getTopLevelDomain(window.location.hostname)], ...i];
984
+ const r = (isBrowser() ? location.protocol === "https:" : !0) ? SECURE_CONFIG : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], a = [[e, t], ...i, ["path", "/"], ["domain", getTopLevelDomain(window.location.hostname)], ...r];
968
985
  return stringifyCookie(a);
969
986
  }, setCookie = async ({
970
987
  name: e,
@@ -975,14 +992,14 @@ const getTopLevelDomain = (e) => {
975
992
  try {
976
993
  if (!o)
977
994
  return;
978
- const i = createCookieString({
995
+ const r = createCookieString({
979
996
  name: e,
980
997
  value: t,
981
998
  expires: n
982
999
  });
983
- document.cookie = i;
984
- } catch (i) {
985
- logger.warn("[COOKIE] SET error: ", (i == null ? void 0 : i.message) || i);
1000
+ document.cookie = r;
1001
+ } catch (r) {
1002
+ logger.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
986
1003
  }
987
1004
  }, BUILDER_STORE_PREFIX = "builder.tests", getContentTestKey = (e) => `${BUILDER_STORE_PREFIX}.${e}`, getContentVariationCookie = ({
988
1005
  contentId: e
@@ -1005,13 +1022,13 @@ const getTopLevelDomain = (e) => {
1005
1022
  id: e,
1006
1023
  variations: t
1007
1024
  }) => {
1008
- var i;
1025
+ var r;
1009
1026
  let n = 0;
1010
1027
  const o = Math.random();
1011
- for (const r in t) {
1012
- const a = (i = t[r]) == null ? void 0 : i.testRatio;
1028
+ for (const i in t) {
1029
+ const a = (r = t[i]) == null ? void 0 : r.testRatio;
1013
1030
  if (n += a, o < n)
1014
- return r;
1031
+ return i;
1015
1032
  }
1016
1033
  return e;
1017
1034
  }, getAndSetVariantId = (e) => {
@@ -1070,13 +1087,13 @@ const getTopLevelDomain = (e) => {
1070
1087
  }) || getAndSetVariantId({
1071
1088
  variations: e.variations,
1072
1089
  id: e.id
1073
- }), i = getTestFields({
1090
+ }), r = getTestFields({
1074
1091
  item: e,
1075
1092
  testGroupId: o
1076
1093
  });
1077
1094
  return {
1078
1095
  ...e,
1079
- ...i
1096
+ ...r
1080
1097
  };
1081
1098
  }, getDefaultCanTrack = (e) => checkIsDefined(e) ? e : !0, componentInfo$b = {
1082
1099
  name: "Core:Button",
@@ -1290,7 +1307,7 @@ const getTopLevelDomain = (e) => {
1290
1307
  });
1291
1308
  }
1292
1309
  const n = e.get("columns");
1293
- Array.isArray(n) && n.find((i) => i.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((s, c) => s + c.get("width"), 0) !== 100) && t();
1310
+ Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((i) => !i.get("width")) || n.reduce((s, c) => s + c.get("width"), 0) !== 100) && t();
1294
1311
  }
1295
1312
  }, {
1296
1313
  name: "space",
@@ -1401,13 +1418,13 @@ const getTopLevelDomain = (e) => {
1401
1418
  function o(a) {
1402
1419
  return Math.round(a * 1e3) / 1e3;
1403
1420
  }
1404
- const i = e.get("image"), r = e.get("aspectRatio");
1405
- if (fetch(i).then((a) => a.blob()).then((a) => {
1421
+ const r = e.get("image"), i = e.get("aspectRatio");
1422
+ if (fetch(r).then((a) => a.blob()).then((a) => {
1406
1423
  a.type.includes("svg") && e.set("noWebp", !0);
1407
- }), i && (!r || r === 0.7041))
1408
- return n(i).then((a) => {
1424
+ }), r && (!i || i === 0.7041))
1425
+ return n(r).then((a) => {
1409
1426
  const s = e.get("aspectRatio");
1410
- e.get("image") === i && (!s || s === 0.7041) && a.width && a.height && (e.set("aspectRatio", o(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
1427
+ e.get("image") === r && (!s || s === 0.7041) && a.width && a.height && (e.set("aspectRatio", o(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
1411
1428
  });
1412
1429
  }
1413
1430
  }, {
@@ -1748,9 +1765,9 @@ const componentInfo = {
1748
1765
  ...t
1749
1766
  }) => ({
1750
1767
  ...fastClone(t),
1751
- inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [i, r]) => ({
1768
+ inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, i]) => ({
1752
1769
  ...o,
1753
- [i]: serializeValue(r)
1770
+ [r]: serializeValue(i)
1754
1771
  }), {}))
1755
1772
  }), UPDATE_COOKIES_AND_STYLES_SCRIPT = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
1756
1773
  function getAndSetVariantId() {
@@ -1898,14 +1915,14 @@ function getFetch() {
1898
1915
  }
1899
1916
  const fetch$1 = getFetch();
1900
1917
  function flatten(e, t = null, n = ".") {
1901
- return Object.keys(e).reduce((o, i) => {
1902
- const r = e[i], a = [t, i].filter(Boolean).join(n);
1903
- return [typeof r == "object", r !== null, !(Array.isArray(r) && r.length === 0)].every(Boolean) ? {
1918
+ return Object.keys(e).reduce((o, r) => {
1919
+ const i = e[r], a = [t, r].filter(Boolean).join(n);
1920
+ return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
1904
1921
  ...o,
1905
- ...flatten(r, a, n)
1922
+ ...flatten(i, a, n)
1906
1923
  } : {
1907
1924
  ...o,
1908
- [a]: r
1925
+ [a]: i
1909
1926
  };
1910
1927
  }, {});
1911
1928
  }
@@ -1920,8 +1937,8 @@ const DEFAULT_API_VERSION = "v3", BUILDER_SEARCHPARAMS_PREFIX = "builder.", BUIL
1920
1937
  const t = normalizeSearchParams(e), n = {};
1921
1938
  return Object.keys(t).forEach((o) => {
1922
1939
  if (o.startsWith(BUILDER_SEARCHPARAMS_PREFIX)) {
1923
- const i = o.replace(BUILDER_SEARCHPARAMS_PREFIX, "").replace(BUILDER_OPTIONS_PREFIX, "");
1924
- n[i] = t[o];
1940
+ const r = o.replace(BUILDER_SEARCHPARAMS_PREFIX, "").replace(BUILDER_OPTIONS_PREFIX, "");
1941
+ n[r] = t[o];
1925
1942
  }
1926
1943
  }), n;
1927
1944
  }, getBuilderSearchParamsFromWindow = () => {
@@ -1936,8 +1953,8 @@ const DEFAULT_API_VERSION = "v3", BUILDER_SEARCHPARAMS_PREFIX = "builder.", BUIL
1936
1953
  const {
1937
1954
  limit: n = 30,
1938
1955
  userAttributes: o,
1939
- query: i,
1940
- model: r,
1956
+ query: r,
1957
+ model: i,
1941
1958
  apiKey: a,
1942
1959
  includeRefs: s = !0,
1943
1960
  enrich: c,
@@ -1956,7 +1973,7 @@ const DEFAULT_API_VERSION = "v3", BUILDER_SEARCHPARAMS_PREFIX = "builder.", BUIL
1956
1973
  if (!["v2", "v3"].includes(f))
1957
1974
  throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${f}'`);
1958
1975
  (e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
1959
- const h = new URL(`https://cdn.builder.io/api/${f}/content/${r}?apiKey=${a}&limit=${n}&noTraverse=${t}&includeRefs=${s}${m ? `&locale=${m}` : ""}${c ? `&enrich=${c}` : ""}`);
1976
+ const h = new URL(`https://cdn.builder.io/api/${f}/content/${i}?apiKey=${a}&limit=${n}&noTraverse=${t}&includeRefs=${s}${m ? `&locale=${m}` : ""}${c ? `&enrich=${c}` : ""}`);
1960
1977
  if (h.searchParams.set("omit", g || "meta.componentsUsed"), p && h.searchParams.set("fields", p), Number.isFinite(d) && d > -1 && h.searchParams.set("offset", String(Math.floor(d))), typeof y == "boolean" && h.searchParams.set("includeUnpublished", String(y)), l && isPositiveNumber(l) && h.searchParams.set("cacheSeconds", String(l)), u && isPositiveNumber(u) && h.searchParams.set("staleCacheSeconds", String(u)), b) {
1961
1978
  const S = flatten({
1962
1979
  sort: b
@@ -1970,9 +1987,9 @@ const DEFAULT_API_VERSION = "v3", BUILDER_SEARCHPARAMS_PREFIX = "builder.", BUIL
1970
1987
  }, C = flatten(k);
1971
1988
  for (const S in C)
1972
1989
  h.searchParams.set(S, String(C[S]));
1973
- if (o && h.searchParams.set("userAttributes", JSON.stringify(o)), i) {
1990
+ if (o && h.searchParams.set("userAttributes", JSON.stringify(o)), r) {
1974
1991
  const S = flatten({
1975
- query: i
1992
+ query: r
1976
1993
  });
1977
1994
  for (const x in S)
1978
1995
  h.searchParams.set(x, JSON.stringify(S[x]));
@@ -1992,25 +2009,25 @@ const getContent = fetchOneEntry, _fetchContent = async (e) => {
1992
2009
  }, _processContentResult = async (e, t, n = generateContentUrl(e)) => {
1993
2010
  const o = getDefaultCanTrack(e.canTrack);
1994
2011
  if (n.search.includes("preview=")) {
1995
- const r = [];
2012
+ const i = [];
1996
2013
  for (const a of t.results) {
1997
2014
  const s = getPreviewContent(n.searchParams);
1998
- r.push(s || a);
2015
+ i.push(s || a);
1999
2016
  }
2000
- t.results = r;
2017
+ t.results = i;
2001
2018
  }
2002
2019
  if (!o || !(isBrowser() || TARGET === "reactNative"))
2003
2020
  return t.results;
2004
2021
  try {
2005
- const r = [];
2022
+ const i = [];
2006
2023
  for (const a of t.results)
2007
- r.push(await handleABTesting({
2024
+ i.push(await handleABTesting({
2008
2025
  item: a,
2009
2026
  canTrack: o
2010
2027
  }));
2011
- t.results = r;
2012
- } catch (r) {
2013
- logger.error("Could not process A/B tests. ", r);
2028
+ t.results = i;
2029
+ } catch (i) {
2030
+ logger.error("Could not process A/B tests. ", i);
2014
2031
  }
2015
2032
  return t.results;
2016
2033
  };
@@ -2029,7 +2046,7 @@ async function fetchEntries(e) {
2029
2046
  const getAllContent = fetchEntries, DEFAULT_TRUSTED_HOSTS = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
2030
2047
  function isFromTrustedHost(e, t) {
2031
2048
  const n = new URL(t.origin), o = n.hostname;
2032
- return (e || DEFAULT_TRUSTED_HOSTS).findIndex((i) => i.startsWith("*.") ? o.endsWith(i.slice(1)) : i === o) > -1;
2049
+ return (e || DEFAULT_TRUSTED_HOSTS).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
2033
2050
  }
2034
2051
  function isPreviewing() {
2035
2052
  return !isBrowser() || isEditing() ? !1 : location.search.indexOf("builder.preview=") !== -1;
@@ -2087,8 +2104,8 @@ const SESSION_LOCAL_STORAGE_KEY = "builderSessionId", getSessionId = async ({
2087
2104
  var o;
2088
2105
  try {
2089
2106
  t && ((o = getLocalStorage()) == null || o.setItem(e, n));
2090
- } catch (i) {
2091
- console.debug("[LocalStorage] SET error: ", i);
2107
+ } catch (r) {
2108
+ console.debug("[LocalStorage] SET error: ", r);
2092
2109
  }
2093
2110
  }, VISITOR_LOCAL_STORAGE_KEY = "builderVisitorId", getVisitorId = ({
2094
2111
  canTrack: e
@@ -2137,11 +2154,11 @@ const SESSION_LOCAL_STORAGE_KEY = "builderSessionId", getSessionId = async ({
2137
2154
  canTrack: t,
2138
2155
  apiKey: n,
2139
2156
  metadata: o,
2140
- ...i
2157
+ ...r
2141
2158
  }) => ({
2142
2159
  type: e,
2143
2160
  data: {
2144
- ...i,
2161
+ ...r,
2145
2162
  metadata: {
2146
2163
  url: location.href,
2147
2164
  ...o
@@ -2197,9 +2214,9 @@ const findParentElement = (e, t, n = !0) => {
2197
2214
  event: e,
2198
2215
  target: t
2199
2216
  }) => {
2200
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, i = e.clientY - n.top, r = round(o / n.width), a = round(i / n.height);
2217
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = round(o / n.width), a = round(r / n.height);
2201
2218
  return {
2202
- x: r,
2219
+ x: i,
2203
2220
  y: a
2204
2221
  };
2205
2222
  }, getInteractionPropertiesForEvent = (e) => {
@@ -2218,7 +2235,7 @@ const findParentElement = (e, t, n = !0) => {
2218
2235
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
2219
2236
  }
2220
2237
  };
2221
- }, SDK_VERSION = "0.12.5", registry = {};
2238
+ }, SDK_VERSION = "0.12.7", registry = {};
2222
2239
  function register(e, t) {
2223
2240
  let n = registry[e];
2224
2241
  if (n || (n = registry[e] = []), n.push(t), isBrowser()) {
@@ -2231,8 +2248,8 @@ function register(e, t) {
2231
2248
  };
2232
2249
  try {
2233
2250
  parent.postMessage(o, "*"), parent !== window && window.postMessage(o, "*");
2234
- } catch (i) {
2235
- console.debug("Could not postmessage", i);
2251
+ } catch (r) {
2252
+ console.debug("Could not postmessage", r);
2236
2253
  }
2237
2254
  }
2238
2255
  }
@@ -2279,23 +2296,23 @@ const setupBrowserForEditing = (e = {}) => {
2279
2296
  options: e
2280
2297
  }
2281
2298
  }, "*"), window.addEventListener("message", (o) => {
2282
- var r, a;
2299
+ var i, a;
2283
2300
  if (!isFromTrustedHost(e.trustedHosts, o))
2284
2301
  return;
2285
2302
  const {
2286
- data: i
2303
+ data: r
2287
2304
  } = o;
2288
- if (i != null && i.type)
2289
- switch (i.type) {
2305
+ if (r != null && r.type)
2306
+ switch (r.type) {
2290
2307
  case "builder.evaluate": {
2291
- const s = i.data.text, c = i.data.arguments || [], m = i.data.id, f = new Function(s);
2308
+ const s = r.data.text, c = r.data.arguments || [], m = r.data.id, f = new Function(s);
2292
2309
  let p, g = null;
2293
2310
  try {
2294
2311
  p = f.apply(null, c);
2295
2312
  } catch (d) {
2296
2313
  g = d;
2297
2314
  }
2298
- g ? (r = window.parent) == null || r.postMessage({
2315
+ g ? (i = window.parent) == null || i.postMessage({
2299
2316
  type: "builder.evaluateError",
2300
2317
  data: {
2301
2318
  id: m,
@@ -2321,11 +2338,53 @@ const setupBrowserForEditing = (e = {}) => {
2321
2338
  }
2322
2339
  }
2323
2340
  })));
2324
- }, getCssFromFont = (e) => {
2325
- var r;
2326
- 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);
2327
- let i = "";
2328
- if (o && t && n && (i += `
2341
+ };
2342
+ function assign(e, ...t) {
2343
+ const n = Object(e);
2344
+ for (let o = 1; o < arguments.length; o++) {
2345
+ const r = arguments[o];
2346
+ if (r != null)
2347
+ for (const i in r)
2348
+ Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
2349
+ }
2350
+ return n;
2351
+ }
2352
+ const camelCaseToKebabCase = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
2353
+ function warnElementNotPresent(e) {
2354
+ console.warn(`Cannot animate element: element with ID ${e} not found!`);
2355
+ }
2356
+ function augmentAnimation(e, t) {
2357
+ const n = getAllStylesUsed(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, a = [r, i];
2358
+ for (const s of a)
2359
+ for (const c of n)
2360
+ c in s || (s[c] = o[c]);
2361
+ }
2362
+ function getAllStylesUsed(e) {
2363
+ const t = [];
2364
+ for (const n of e.steps)
2365
+ for (const o in n.styles)
2366
+ t.indexOf(o) === -1 && t.push(o);
2367
+ return t;
2368
+ }
2369
+ function triggerAnimation(e) {
2370
+ const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
2371
+ if (!t.length) {
2372
+ warnElementNotPresent(e.elementId || e.id || "");
2373
+ return;
2374
+ }
2375
+ Array.from(t).forEach((n) => {
2376
+ augmentAnimation(e, n), n.style.transition = "none", n.style.transitionDelay = "0", assign(n.style, e.steps[0].styles), setTimeout(() => {
2377
+ n.style.transition = `all ${e.duration}s ${camelCaseToKebabCase(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), assign(n.style, e.steps[1].styles), setTimeout(() => {
2378
+ n.style.transition = "", n.style.transitionDelay = "";
2379
+ }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
2380
+ });
2381
+ });
2382
+ }
2383
+ const getCssFromFont = (e) => {
2384
+ var i;
2385
+ const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((i = e == null ? void 0 : e.files) == null ? void 0 : i.regular);
2386
+ let r = "";
2387
+ if (o && t && n && (r += `
2329
2388
  @font-face {
2330
2389
  font-family: "${t}";
2331
2390
  src: local("${n}"), url('${o}') format('woff2');
@@ -2337,7 +2396,7 @@ font-weight: 400;
2337
2396
  if (!(String(Number(a)) === a))
2338
2397
  continue;
2339
2398
  const c = e.files[a];
2340
- c && c !== o && (i += `
2399
+ c && c !== o && (r += `
2341
2400
  @font-face {
2342
2401
  font-family: "${t}";
2343
2402
  src: url('${c}') format('woff2');
@@ -2346,7 +2405,7 @@ font-weight: ${a};
2346
2405
  }
2347
2406
  `.trim());
2348
2407
  }
2349
- return i;
2408
+ return r;
2350
2409
  }, getFontCss = ({
2351
2410
  customFonts: e
2352
2411
  }) => {
@@ -2390,13 +2449,13 @@ const getRootStateInitialValue = ({
2390
2449
  data: t,
2391
2450
  locale: n
2392
2451
  }) => {
2393
- var r, a, s;
2394
- const o = {}, i = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
2452
+ var i, a, s;
2453
+ const o = {}, r = ((i = e == null ? void 0 : e.data) == null ? void 0 : i.state) || {};
2395
2454
  return (s = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || s.forEach((c) => {
2396
2455
  c.name && c.defaultValue !== void 0 && (o[c.name] = c.defaultValue);
2397
2456
  }), {
2398
2457
  ...o,
2399
- ...i,
2458
+ ...r,
2400
2459
  ...t,
2401
2460
  ...n ? {
2402
2461
  locale: n
@@ -2414,12 +2473,12 @@ const getRootStateInitialValue = ({
2414
2473
  meta: e == null ? void 0 : e.meta
2415
2474
  } : void 0;
2416
2475
  function ContentComponent(e) {
2417
- var i, r, a, s, c, m, f, p, g;
2476
+ var r, i, a, s, c, m, f, p, g;
2418
2477
  const t = getUpdateVariantVisibilityScript({
2419
2478
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2420
- variationId: (i = e.content) == null ? void 0 : i.testVariationId,
2479
+ variationId: (r = e.content) == null ? void 0 : r.testVariationId,
2421
2480
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2422
- contentId: (r = e.content) == null ? void 0 : r.id
2481
+ contentId: (i = e.content) == null ? void 0 : i.id
2423
2482
  }), n = [
2424
2483
  ...getDefaultRegisteredComponents(),
2425
2484
  // While this `components` object is deprecated, we must maintain support for it.
@@ -2515,7 +2574,7 @@ function ContentComponent(e) {
2515
2574
  );
2516
2575
  }
2517
2576
  function ContentVariants(e) {
2518
- var r, a;
2577
+ var i, a;
2519
2578
  const t = checkShouldRenderVariants({
2520
2579
  canTrack: getDefaultCanTrack(e.canTrack),
2521
2580
  content: e.content
@@ -2530,7 +2589,7 @@ function ContentVariants(e) {
2530
2589
  );
2531
2590
  }, o = function() {
2532
2591
  return getVariants(e.content).map((c) => `.variant-${c.testVariationId} { display: none; } `).join("");
2533
- }, i = function() {
2592
+ }, r = function() {
2534
2593
  var c;
2535
2594
  return t ? {
2536
2595
  ...e.content,
@@ -2546,7 +2605,7 @@ function ContentVariants(e) {
2546
2605
  /* @__PURE__ */ jsx(
2547
2606
  InlinedStyles,
2548
2607
  {
2549
- id: `variants-styles-${(r = e.content) == null ? void 0 : r.id}`,
2608
+ id: `variants-styles-${(i = e.content) == null ? void 0 : i.id}`,
2550
2609
  styles: o()
2551
2610
  }
2552
2611
  ),
@@ -2580,7 +2639,7 @@ function ContentVariants(e) {
2580
2639
  /* @__PURE__ */ jsx(
2581
2640
  ContentComponent,
2582
2641
  {
2583
- content: i(),
2642
+ content: r(),
2584
2643
  showContent: !0,
2585
2644
  model: e.model,
2586
2645
  data: e.data,
@@ -2623,7 +2682,7 @@ const fetchSymbolContent = async ({
2623
2682
  });
2624
2683
  };
2625
2684
  async function Symbol$1(e) {
2626
- var o, i, r, a, s;
2685
+ var o, r, i, a, s;
2627
2686
  const t = function() {
2628
2687
  var m, f;
2629
2688
  return [
@@ -2644,11 +2703,11 @@ async function Symbol$1(e) {
2644
2703
  apiKey: e.builderContext.apiKey,
2645
2704
  context: {
2646
2705
  ...e.builderContext.context,
2647
- symbolId: (i = e.builderBlock) == null ? void 0 : i.id
2706
+ symbolId: (r = e.builderBlock) == null ? void 0 : r.id
2648
2707
  },
2649
2708
  customComponents: Object.values(e.builderComponents),
2650
2709
  data: {
2651
- ...(r = e.symbol) == null ? void 0 : r.data,
2710
+ ...(i = e.symbol) == null ? void 0 : i.data,
2652
2711
  ...e.builderContext.localState,
2653
2712
  ...(a = n == null ? void 0 : n.data) == null ? void 0 : a.state
2654
2713
  },
@@ -2670,8 +2729,8 @@ function setEditorSettings(e) {
2670
2729
  }
2671
2730
  }
2672
2731
  const fetchBuilderProps = async (e) => {
2673
- var o, i, r;
2674
- const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((i = e.userAttributes) == null ? void 0 : i.urlPath), n = {
2732
+ var o, r, i;
2733
+ const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
2675
2734
  ...e,
2676
2735
  apiKey: e.apiKey,
2677
2736
  model: e.model || "page",
@@ -2681,7 +2740,7 @@ const fetchBuilderProps = async (e) => {
2681
2740
  urlPath: t
2682
2741
  } : {}
2683
2742
  },
2684
- options: getBuilderSearchParams(e.searchParams || ((r = e.url) == null ? void 0 : r.searchParams) || e.options)
2743
+ options: getBuilderSearchParams(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
2685
2744
  };
2686
2745
  return {
2687
2746
  apiKey: n.apiKey,
@@ -2690,14 +2749,15 @@ const fetchBuilderProps = async (e) => {
2690
2749
  };
2691
2750
  };
2692
2751
  export {
2693
- fetchEntries as A,
2752
+ _processContentResult as A,
2694
2753
  Blocks as B,
2695
2754
  ContentVariants as C,
2696
- getAllContent as D,
2697
- getContent as E,
2698
- getBuilderSearchParams as F,
2699
- track as G,
2700
- fetchBuilderProps as H,
2755
+ fetchEntries as D,
2756
+ getAllContent as E,
2757
+ getContent as F,
2758
+ getBuilderSearchParams as G,
2759
+ track as H,
2760
+ fetchBuilderProps as I,
2701
2761
  RenderBlocks as R,
2702
2762
  Symbol$1 as S,
2703
2763
  Text as T,
@@ -2721,11 +2781,11 @@ export {
2721
2781
  fetchOneEntry as q,
2722
2782
  registerInsertMenu as r,
2723
2783
  setupBrowserForEditing as s,
2724
- fetch$1 as t,
2725
- init as u,
2726
- RenderContent as v,
2727
- Columns as w,
2728
- register as x,
2729
- setEditorSettings as y,
2730
- _processContentResult as z
2784
+ triggerAnimation as t,
2785
+ fetch$1 as u,
2786
+ init as v,
2787
+ RenderContent as w,
2788
+ Columns as x,
2789
+ register as y,
2790
+ setEditorSettings as z
2731
2791
  };