@builder.io/sdk-react-nextjs 0.13.0 → 0.13.2

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 (51) hide show
  1. package/lib/browser/{USE_CLIENT_BUNDLE-159cd63c.cjs → USE_CLIENT_BUNDLE-65d8df10.cjs} +1 -1
  2. package/lib/{node/USE_CLIENT_BUNDLE-354a3b9c.js → browser/USE_CLIENT_BUNDLE-660c05f1.js} +5 -5
  3. package/lib/{edge/USE_SERVER_BUNDLE-b7a4b5c9.cjs → browser/USE_SERVER_BUNDLE-2e3b6eff.cjs} +1 -1
  4. package/lib/{edge/USE_SERVER_BUNDLE-e82f4d04.js → browser/USE_SERVER_BUNDLE-7204eec6.js} +1 -1
  5. package/lib/browser/{bundle-2b431a2f.js → bundle-0a12b387.js} +270 -270
  6. package/lib/browser/{bundle-f3f9789e.cjs → bundle-af821e69.cjs} +17 -17
  7. package/lib/browser/index.cjs +1 -1
  8. package/lib/browser/index.mjs +8 -8
  9. package/lib/{node/USE_CLIENT_BUNDLE-79508098.cjs → edge/USE_CLIENT_BUNDLE-4ecfa86c.cjs} +1 -1
  10. package/lib/{browser/USE_CLIENT_BUNDLE-21701cae.js → edge/USE_CLIENT_BUNDLE-a2d2d15f.js} +5 -5
  11. package/lib/{node/USE_SERVER_BUNDLE-81b76cf3.js → edge/USE_SERVER_BUNDLE-1a4a2318.js} +1 -1
  12. package/lib/{node/USE_SERVER_BUNDLE-2d5ccb94.cjs → edge/USE_SERVER_BUNDLE-7fb84390.cjs} +1 -1
  13. package/lib/edge/{bundle-27694b25.cjs → bundle-ab7ced06.cjs} +20 -20
  14. package/lib/edge/{bundle-85928e24.js → bundle-d76f7298.js} +298 -298
  15. package/lib/edge/index.cjs +1 -1
  16. package/lib/edge/index.mjs +8 -8
  17. package/lib/{edge/USE_CLIENT_BUNDLE-45eaf3a0.js → node/USE_CLIENT_BUNDLE-2b075311.js} +5 -5
  18. package/lib/{edge/USE_CLIENT_BUNDLE-4cfda43e.cjs → node/USE_CLIENT_BUNDLE-902511d8.cjs} +1 -1
  19. package/lib/{browser/USE_SERVER_BUNDLE-37ad955b.js → node/USE_SERVER_BUNDLE-2a94723d.js} +1 -1
  20. package/lib/{browser/USE_SERVER_BUNDLE-316838af.cjs → node/USE_SERVER_BUNDLE-c44d2651.cjs} +1 -1
  21. package/lib/node/{bundle-48c4d422.cjs → bundle-2f991b0d.cjs} +5 -5
  22. package/lib/node/{bundle-7efdf8b6.js → bundle-903b1df4.js} +108 -108
  23. package/lib/node/index.cjs +1 -1
  24. package/lib/node/index.mjs +8 -8
  25. package/package.json +1 -1
  26. package/types/cjs/blocks/form/form/component-info.d.ts +2 -0
  27. package/types/cjs/blocks/form/form/form.d.ts +33 -0
  28. package/types/cjs/blocks/form/input/component-info.d.ts +2 -0
  29. package/types/cjs/blocks/form/input/input.d.ts +15 -0
  30. package/types/cjs/blocks/form/select/component-info.d.ts +2 -0
  31. package/types/cjs/blocks/form/select/select.d.ts +16 -0
  32. package/types/cjs/blocks/form/submit-button/component-info.d.ts +2 -0
  33. package/types/cjs/blocks/form/submit-button/submit-button.d.ts +10 -0
  34. package/types/cjs/blocks/slot/slot.d.ts +3 -6
  35. package/types/cjs/constants/extra-components.d.ts +7 -0
  36. package/types/cjs/constants/sdk-version.d.ts +1 -1
  37. package/types/cjs/functions/get-env.d.ts +2 -0
  38. package/types/cjs/functions/get.d.ts +1 -0
  39. package/types/esm/blocks/form/form/component-info.d.ts +2 -0
  40. package/types/esm/blocks/form/form/form.d.ts +33 -0
  41. package/types/esm/blocks/form/input/component-info.d.ts +2 -0
  42. package/types/esm/blocks/form/input/input.d.ts +15 -0
  43. package/types/esm/blocks/form/select/component-info.d.ts +2 -0
  44. package/types/esm/blocks/form/select/select.d.ts +16 -0
  45. package/types/esm/blocks/form/submit-button/component-info.d.ts +2 -0
  46. package/types/esm/blocks/form/submit-button/submit-button.d.ts +10 -0
  47. package/types/esm/blocks/slot/slot.d.ts +3 -6
  48. package/types/esm/constants/extra-components.d.ts +7 -0
  49. package/types/esm/constants/sdk-version.d.ts +1 -1
  50. package/types/esm/functions/get-env.d.ts +2 -0
  51. package/types/esm/functions/get.d.ts +1 -0
@@ -1,10 +1,10 @@
1
1
  import { LRUCache as $e } from "lru-cache";
2
- import { jsx as l, Fragment as k, jsxs as R } from "react/jsx-runtime";
3
- import { I as We, B as Oe, a as Ne, D as Fe, b as Le, C as Ue, E as _e, F as De, c as Me, d as je, S as He, V as Ke, e as ze } from "./USE_CLIENT_BUNDLE-21701cae.js";
2
+ import { jsx as l, Fragment as k, jsxs as A } from "react/jsx-runtime";
3
+ import { I as We, B as Oe, a as Ne, D as Fe, C as Le, E as Ue, b as _e, V as De, c as Me, F as je, d as He, S as Ke, e as ze } from "./USE_CLIENT_BUNDLE-660c05f1.js";
4
4
  import "react";
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"]), to = (e) => typeof e == "string" && qe.has(e.toLowerCase()), I = "rsc", M = () => {
7
- switch (I) {
6
+ const qe = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), no = (e) => typeof e == "string" && qe.has(e.toLowerCase()), T = "rsc", M = () => {
7
+ switch (T) {
8
8
  case "react":
9
9
  case "reactNative":
10
10
  case "rsc":
@@ -66,7 +66,7 @@ const Ye = () => {
66
66
  return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
67
67
  },
68
68
  any() {
69
- return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || I === "reactNative";
69
+ return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || T === "reactNative";
70
70
  }
71
71
  }, n = e.match(/Tablet|iPad/i), o = Ye();
72
72
  return {
@@ -139,10 +139,10 @@ function de({
139
139
  }
140
140
  });
141
141
  }
142
- const C = (e) => e != null;
142
+ const w = (e) => e != null;
143
143
  function tt() {
144
144
  var e;
145
- return typeof process < "u" && C((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
145
+ return typeof process < "u" && w((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
146
146
  }
147
147
  const nt = () => {
148
148
  var o;
@@ -337,7 +337,7 @@ const at = ({
337
337
  }, ct = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), fe = (e) => Object.entries(e).map(([n, o]) => {
338
338
  if (typeof o == "string")
339
339
  return `${ct(n)}: ${o};`;
340
- }).filter(C), lt = (e) => fe(e).join(`
340
+ }).filter(w), lt = (e) => fe(e).join(`
341
341
  `), L = ({
342
342
  mediaQuery: e,
343
343
  className: t,
@@ -363,7 +363,7 @@ function dt(e) {
363
363
  context: e.context.context,
364
364
  shouldEvaluateBindings: !0
365
365
  });
366
- return C(i.hide) ? !i.hide : C(i.show) ? i.show : !0;
366
+ return w(i.hide) ? !i.hide : w(i.show) ? i.show : !0;
367
367
  }, n = function() {
368
368
  var d;
369
369
  const i = $({
@@ -412,7 +412,7 @@ const mt = (e) => `on${ut(e)}`, ft = (e, t) => (n) => H({
412
412
  event: n,
413
413
  isExpression: !1
414
414
  });
415
- function no(e) {
415
+ function oo(e) {
416
416
  const t = {}, n = e.block.actions ?? {};
417
417
  for (const o in n) {
418
418
  if (!n.hasOwnProperty(o))
@@ -420,7 +420,7 @@ function no(e) {
420
420
  const i = n[o];
421
421
  let r = mt(o);
422
422
  if (e.stripPrefix)
423
- switch (I) {
423
+ switch (T) {
424
424
  case "vue":
425
425
  r = r.replace("v-on:", "");
426
426
  break;
@@ -446,7 +446,7 @@ const pt = ({
446
446
  block: e
447
447
  }));
448
448
  function he(e) {
449
- switch (I) {
449
+ switch (T) {
450
450
  case "svelte":
451
451
  case "vue":
452
452
  case "solid":
@@ -594,17 +594,17 @@ function N(e) {
594
594
  var u;
595
595
  return !((u = t()) != null && u.component) && !n() ? o().children ?? [] : [];
596
596
  }, s = function() {
597
- var h, u, d, y, x, b, E, T;
597
+ var h, u, d, y, x, b, R, E, C, I;
598
598
  return {
599
599
  blockChildren: o().children ?? [],
600
600
  componentRef: (h = t()) == null ? void 0 : h.component,
601
601
  componentOptions: {
602
602
  ...Ge(o()),
603
603
  builderContext: e.context,
604
- ...((u = t()) == null ? void 0 : u.name) === "Core:Button" || ((d = t()) == null ? void 0 : d.name) === "Symbol" || ((y = t()) == null ? void 0 : y.name) === "Columns" ? {
604
+ ...((u = t()) == null ? void 0 : u.name) === "Core:Button" || ((d = t()) == null ? void 0 : d.name) === "Symbol" || ((y = t()) == null ? void 0 : y.name) === "Columns" || ((x = t()) == null ? void 0 : x.name) === "Form:Form" ? {
605
605
  builderLinkComponent: e.linkComponent
606
606
  } : {},
607
- ...((x = t()) == null ? void 0 : x.name) === "Symbol" || ((b = t()) == null ? void 0 : b.name) === "Columns" ? {
607
+ ...((b = t()) == null ? void 0 : b.name) === "Symbol" || ((R = t()) == null ? void 0 : R.name) === "Columns" || ((E = t()) == null ? void 0 : E.name) === "Form:Form" ? {
608
608
  builderComponents: e.registeredComponents
609
609
  } : {}
610
610
  },
@@ -612,11 +612,11 @@ function N(e) {
612
612
  linkComponent: e.linkComponent,
613
613
  registeredComponents: e.registeredComponents,
614
614
  builderBlock: o(),
615
- includeBlockProps: ((E = t()) == null ? void 0 : E.noWrap) === !0,
616
- isInteractive: !((T = t()) != null && T.isRSC)
615
+ includeBlockProps: ((C = t()) == null ? void 0 : C.noWrap) === !0,
616
+ isInteractive: !((I = t()) != null && I.isRSC)
617
617
  };
618
618
  }, c = e.context;
619
- return /* @__PURE__ */ l(k, { children: r() ? /* @__PURE__ */ R(k, { children: [
619
+ return /* @__PURE__ */ l(k, { children: r() ? /* @__PURE__ */ A(k, { children: [
620
620
  /* @__PURE__ */ l(dt, { block: e.block, context: e.context }),
621
621
  (m = t()) != null && m.noWrap ? /* @__PURE__ */ l(k, { children: /* @__PURE__ */ l(
622
622
  Y,
@@ -640,7 +640,7 @@ function N(e) {
640
640
  linkComponent: e.linkComponent
641
641
  },
642
642
  h
643
- )) }) : /* @__PURE__ */ l(k, { children: /* @__PURE__ */ R(
643
+ )) }) : /* @__PURE__ */ l(k, { children: /* @__PURE__ */ A(
644
644
  Oe,
645
645
  {
646
646
  Wrapper: i(),
@@ -728,7 +728,7 @@ function vt(e) {
728
728
  })
729
729
  };
730
730
  }, g = function(d) {
731
- const y = d === 0 ? 0 : t, x = r(d), b = `${y}px`, E = "100%", T = 0;
731
+ const y = d === 0 ? 0 : t, x = r(d), b = `${y}px`, R = "100%", E = 0;
732
732
  return {
733
733
  ...{
734
734
  display: "flex",
@@ -738,19 +738,19 @@ function vt(e) {
738
738
  width: x,
739
739
  ["marginLeft"]: b,
740
740
  "--column-width-mobile": s({
741
- stackedStyle: E,
741
+ stackedStyle: R,
742
742
  desktopStyle: x
743
743
  }),
744
744
  "--column-margin-left-mobile": s({
745
- stackedStyle: T,
745
+ stackedStyle: E,
746
746
  desktopStyle: b
747
747
  }),
748
748
  "--column-width-tablet": a({
749
- stackedStyle: E,
749
+ stackedStyle: R,
750
750
  desktopStyle: x
751
751
  }),
752
752
  "--column-margin-left-tablet": a({
753
- stackedStyle: T,
753
+ stackedStyle: E,
754
754
  desktopStyle: b
755
755
  })
756
756
  };
@@ -786,11 +786,11 @@ function vt(e) {
786
786
  },
787
787
  `;
788
788
  };
789
- return /* @__PURE__ */ R(k, { children: [
790
- /* @__PURE__ */ R(
789
+ return /* @__PURE__ */ A(k, { children: [
790
+ /* @__PURE__ */ A(
791
791
  "div",
792
792
  {
793
- className: `builder-columns ${e.builderBlock.id}-breakpoints div-3d816b82`,
793
+ className: `builder-columns ${e.builderBlock.id}-breakpoints div-febc5ea6`,
794
794
  style: m(),
795
795
  children: [
796
796
  /* @__PURE__ */ l(k, { children: /* @__PURE__ */ l(O, { styles: f() }) }),
@@ -826,7 +826,7 @@ function vt(e) {
826
826
  ]
827
827
  }
828
828
  ),
829
- /* @__PURE__ */ l("style", { children: `.div-3d816b82 {
829
+ /* @__PURE__ */ l("style", { children: `.div-febc5ea6 {
830
830
  display: flex;
831
831
  line-height: normal;
832
832
  }` })
@@ -851,7 +851,7 @@ function Ct(e, t) {
851
851
  }
852
852
  return null;
853
853
  }
854
- function oo(e) {
854
+ function io(e) {
855
855
  if (!e)
856
856
  return e;
857
857
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
@@ -878,7 +878,7 @@ const wt = (e) => {
878
878
  v.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
879
879
  return;
880
880
  }
881
- }, ge = async (e) => pe(e), It = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(C).join("; "), Tt = [["secure", ""], ["SameSite", "None"]], Et = ({
881
+ }, ge = async (e) => pe(e), It = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(w).join("; "), Tt = [["secure", ""], ["SameSite", "None"]], Et = ({
882
882
  name: e,
883
883
  value: t,
884
884
  expires: n
@@ -920,7 +920,7 @@ const wt = (e) => {
920
920
  name: K(e),
921
921
  value: t,
922
922
  canTrack: !0
923
- }), ye = (e) => C(e.id) && C(e.variations) && Object.keys(e.variations).length > 0, Vt = ({
923
+ }), ye = (e) => w(e.id) && w(e.variations) && Object.keys(e.variations).length > 0, Vt = ({
924
924
  id: e,
925
925
  variations: t
926
926
  }) => {
@@ -997,7 +997,7 @@ const wt = (e) => {
997
997
  ...e,
998
998
  ...i
999
999
  };
1000
- }, U = (e) => C(e) ? e : !0, Ot = {
1000
+ }, U = (e) => w(e) ? e : !0, Ot = {
1001
1001
  name: "Core:Button",
1002
1002
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1003
1003
  defaultStyles: {
@@ -1232,59 +1232,12 @@ const wt = (e) => {
1232
1232
  advanced: !0
1233
1233
  }]
1234
1234
  }, Ft = {
1235
- name: "Custom Code",
1236
- static: !0,
1237
- requiredPermissions: ["editCode"],
1238
- inputs: [{
1239
- name: "code",
1240
- type: "html",
1241
- required: !0,
1242
- defaultValue: "<p>Hello there, I am custom HTML code!</p>",
1243
- code: !0
1244
- }, {
1245
- name: "replaceNodes",
1246
- type: "boolean",
1247
- helperText: "Preserve server rendered dom nodes",
1248
- advanced: !0
1249
- }, {
1250
- name: "scriptsClientOnly",
1251
- type: "boolean",
1252
- defaultValue: !1,
1253
- helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
1254
- advanced: !0
1255
- }]
1256
- }, Lt = {
1257
- name: "Embed",
1258
- static: !0,
1259
- inputs: [{
1260
- name: "url",
1261
- type: "url",
1262
- required: !0,
1263
- defaultValue: "",
1264
- helperText: "e.g. enter a youtube url, google map, etc",
1265
- onChange: (e) => {
1266
- const t = e.get("url");
1267
- if (t)
1268
- return e.set("content", "Loading..."), fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then((o) => o.json()).then((o) => {
1269
- e.get("url") === t && (o.html ? e.set("content", o.html) : e.set("content", "Invalid url, please try another"));
1270
- }).catch((o) => {
1271
- e.set("content", "There was an error embedding this URL, please try again or another URL");
1272
- });
1273
- e.delete("content");
1274
- }
1275
- }, {
1276
- name: "content",
1277
- type: "html",
1278
- defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1279
- hideFromUI: !0
1280
- }]
1281
- }, Ut = ["text/javascript", "application/javascript", "application/ecmascript"], io = (e) => Ut.includes(e.type), _t = {
1282
1235
  name: "Fragment",
1283
1236
  static: !0,
1284
1237
  hidden: !0,
1285
1238
  canHaveChildren: !0,
1286
1239
  noWrap: !0
1287
- }, Dt = {
1240
+ }, Lt = {
1288
1241
  name: "Image",
1289
1242
  static: !0,
1290
1243
  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",
@@ -1384,21 +1337,7 @@ const wt = (e) => {
1384
1337
  advanced: !0,
1385
1338
  defaultValue: 0.7041
1386
1339
  }]
1387
- }, Mt = {
1388
- // friendlyName?
1389
- name: "Raw:Img",
1390
- hideFromInsertMenu: !0,
1391
- 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",
1392
- inputs: [{
1393
- name: "image",
1394
- bubble: !0,
1395
- type: "file",
1396
- allowedFileTypes: ["jpeg", "jpg", "png", "svg", "gif", "webp"],
1397
- required: !0
1398
- }],
1399
- noWrap: !0,
1400
- static: !0
1401
- }, jt = {
1340
+ }, Ut = {
1402
1341
  name: "Core:Section",
1403
1342
  static: !0,
1404
1343
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1437,7 +1376,7 @@ const wt = (e) => {
1437
1376
  }
1438
1377
  }
1439
1378
  }]
1440
- }, Ht = {
1379
+ }, _t = {
1441
1380
  name: "Slot",
1442
1381
  isRSC: !0,
1443
1382
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1451,7 +1390,7 @@ const wt = (e) => {
1451
1390
  defaultValue: "children"
1452
1391
  }]
1453
1392
  };
1454
- function Kt(e) {
1393
+ function Dt(e) {
1455
1394
  var t, n, o;
1456
1395
  return /* @__PURE__ */ l(
1457
1396
  "div",
@@ -1474,7 +1413,7 @@ function Kt(e) {
1474
1413
  }
1475
1414
  );
1476
1415
  }
1477
- const zt = {
1416
+ const Mt = {
1478
1417
  name: "Symbol",
1479
1418
  noWrap: !0,
1480
1419
  static: !0,
@@ -1507,7 +1446,7 @@ const zt = {
1507
1446
  hideFromUI: !0,
1508
1447
  type: "boolean"
1509
1448
  }]
1510
- }, qt = {
1449
+ }, jt = {
1511
1450
  name: "Text",
1512
1451
  static: !0,
1513
1452
  isRSC: !0,
@@ -1526,7 +1465,7 @@ const zt = {
1526
1465
  textAlign: "center"
1527
1466
  }
1528
1467
  };
1529
- function Gt(e) {
1468
+ function Ht(e) {
1530
1469
  var t;
1531
1470
  return /* @__PURE__ */ l(
1532
1471
  "div",
@@ -1539,7 +1478,68 @@ function Gt(e) {
1539
1478
  }
1540
1479
  );
1541
1480
  }
1542
- const Jt = {
1481
+ const Kt = {
1482
+ name: "Custom Code",
1483
+ static: !0,
1484
+ requiredPermissions: ["editCode"],
1485
+ inputs: [{
1486
+ name: "code",
1487
+ type: "html",
1488
+ required: !0,
1489
+ defaultValue: "<p>Hello there, I am custom HTML code!</p>",
1490
+ code: !0
1491
+ }, {
1492
+ name: "replaceNodes",
1493
+ type: "boolean",
1494
+ helperText: "Preserve server rendered dom nodes",
1495
+ advanced: !0
1496
+ }, {
1497
+ name: "scriptsClientOnly",
1498
+ type: "boolean",
1499
+ defaultValue: !1,
1500
+ helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
1501
+ advanced: !0
1502
+ }]
1503
+ }, zt = {
1504
+ name: "Embed",
1505
+ static: !0,
1506
+ inputs: [{
1507
+ name: "url",
1508
+ type: "url",
1509
+ required: !0,
1510
+ defaultValue: "",
1511
+ helperText: "e.g. enter a youtube url, google map, etc",
1512
+ onChange: (e) => {
1513
+ const t = e.get("url");
1514
+ if (t)
1515
+ return e.set("content", "Loading..."), fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then((o) => o.json()).then((o) => {
1516
+ e.get("url") === t && (o.html ? e.set("content", o.html) : e.set("content", "Invalid url, please try another"));
1517
+ }).catch((o) => {
1518
+ e.set("content", "There was an error embedding this URL, please try again or another URL");
1519
+ });
1520
+ e.delete("content");
1521
+ }
1522
+ }, {
1523
+ name: "content",
1524
+ type: "html",
1525
+ defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1526
+ hideFromUI: !0
1527
+ }]
1528
+ }, qt = ["text/javascript", "application/javascript", "application/ecmascript"], ro = (e) => qt.includes(e.type), Gt = {
1529
+ // friendlyName?
1530
+ name: "Raw:Img",
1531
+ hideFromInsertMenu: !0,
1532
+ 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",
1533
+ inputs: [{
1534
+ name: "image",
1535
+ bubble: !0,
1536
+ type: "file",
1537
+ allowedFileTypes: ["jpeg", "jpg", "png", "svg", "gif", "webp"],
1538
+ required: !0
1539
+ }],
1540
+ noWrap: !0,
1541
+ static: !0
1542
+ }, Jt = {
1543
1543
  name: "Video",
1544
1544
  canHaveChildren: !0,
1545
1545
  defaultStyles: {
@@ -1620,58 +1620,58 @@ const Jt = {
1620
1620
  defaultValue: !0,
1621
1621
  advanced: !0
1622
1622
  }]
1623
- }, X = () => [{
1623
+ }, Yt = () => [{
1624
1624
  component: Le,
1625
- ...Ot
1626
- }, {
1627
- component: vt,
1628
- ...Nt
1625
+ ...Kt
1629
1626
  }, {
1630
1627
  component: Ue,
1631
- ...Ft
1628
+ ...zt
1632
1629
  }, {
1633
1630
  component: _e,
1634
- ...Lt
1631
+ ...Gt
1635
1632
  }, {
1636
1633
  component: De,
1637
- ..._t
1638
- }, {
1634
+ ...Jt
1635
+ }], X = () => [{
1639
1636
  component: Me,
1640
- ...Dt
1637
+ ...Ot
1638
+ }, {
1639
+ component: vt,
1640
+ ...Nt
1641
1641
  }, {
1642
1642
  component: je,
1643
- ...Mt
1643
+ ...Ft
1644
1644
  }, {
1645
1645
  component: He,
1646
- ...jt
1646
+ ...Lt
1647
1647
  }, {
1648
- component: Jn,
1649
- ...zt
1648
+ component: Ke,
1649
+ ...Ut
1650
1650
  }, {
1651
- component: Gt,
1652
- ...qt
1651
+ component: Dt,
1652
+ ..._t
1653
1653
  }, {
1654
- component: Ke,
1655
- ...Jt
1654
+ component: Yn,
1655
+ ...Mt
1656
1656
  }, {
1657
- component: Kt,
1658
- ...Ht
1659
- }], Z = [], ro = (e) => ({
1657
+ component: Ht,
1658
+ ...jt
1659
+ }, ...Yt()], Z = [], ao = (e) => ({
1660
1660
  type: "builder.registerComponent",
1661
1661
  data: _(e)
1662
- }), Yt = (e) => {
1662
+ }), Qt = (e) => {
1663
1663
  const t = e.toString().trim();
1664
1664
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
1665
- }, Qt = (e) => typeof e == "function" ? Yt(e) : W(e), _ = ({
1665
+ }, Xt = (e) => typeof e == "function" ? Qt(e) : W(e), _ = ({
1666
1666
  inputs: e,
1667
1667
  ...t
1668
1668
  }) => ({
1669
1669
  ...W(t),
1670
1670
  inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [i, r]) => ({
1671
1671
  ...o,
1672
- [i]: Qt(r)
1672
+ [i]: Xt(r)
1673
1673
  }), {}))
1674
- }), Xt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
1674
+ }), Zt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
1675
1675
  function getAndSetVariantId() {
1676
1676
  function setCookie(name, value, days) {
1677
1677
  let expires = '';
@@ -1727,7 +1727,7 @@ const Jt = {
1727
1727
  }).join('');
1728
1728
  styleEl.innerHTML = newStyleStr;
1729
1729
  }
1730
- }`, Zt = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
1730
+ }`, en = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
1731
1731
  if (!navigator.cookieEnabled) {
1732
1732
  return;
1733
1733
  }
@@ -1765,16 +1765,16 @@ const Jt = {
1765
1765
  ...t,
1766
1766
  testVariationId: t.id,
1767
1767
  id: e == null ? void 0 : e.id
1768
- })), en = ({
1768
+ })), tn = ({
1769
1769
  canTrack: e,
1770
1770
  content: t
1771
- }) => !(!(B(t).length > 0) || !e || S()), tn = (e) => e === "react" || e === "reactNative", Ce = tn(I), nn = () => `
1772
- window.${ve} = ${Xt}
1773
- window.${xe} = ${Zt}
1774
- `, on = (e, t) => `
1771
+ }) => !(!(B(t).length > 0) || !e || S()), nn = (e) => e === "react" || e === "reactNative", Ce = nn(T), on = () => `
1772
+ window.${ve} = ${Zt}
1773
+ window.${xe} = ${en}
1774
+ `, rn = (e, t) => `
1775
1775
  window.${ve}(
1776
1776
  "${t}",${JSON.stringify(e)}, ${Ce}
1777
- )`, rn = ({
1777
+ )`, an = ({
1778
1778
  contentId: e,
1779
1779
  variationId: t
1780
1780
  }) => `window.${xe}(
@@ -1789,33 +1789,33 @@ function D(e) {
1789
1789
  }
1790
1790
  );
1791
1791
  }
1792
- const an = (e) => {
1792
+ const sn = (e) => {
1793
1793
  const t = e.get("preview"), n = e.get("overrides." + t);
1794
1794
  return n || v.warn("No previewed ID found in search params."), n;
1795
1795
  };
1796
- function sn() {
1796
+ function cn() {
1797
1797
  globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new $e({
1798
1798
  max: 500,
1799
1799
  // how long to live in ms
1800
1800
  ttl: 1e3 * 60 * 5
1801
1801
  }));
1802
1802
  }
1803
- function cn(e) {
1804
- sn();
1805
- const t = an(e);
1803
+ function ln(e) {
1804
+ cn();
1805
+ const t = sn(e);
1806
1806
  return typeof t == "string" ? globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t) : void 0;
1807
1807
  }
1808
- function ln() {
1808
+ function dn() {
1809
1809
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
1810
1810
  }
1811
- function dn() {
1812
- const e = ln().fetch;
1811
+ function un() {
1812
+ const e = dn().fetch;
1813
1813
  if (typeof e > "u")
1814
1814
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
1815
1815
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
1816
1816
  return e;
1817
1817
  }
1818
- const un = dn();
1818
+ const mn = un();
1819
1819
  function V(e, t = null, n = ".") {
1820
1820
  return Object.keys(e).reduce((o, i) => {
1821
1821
  const r = e[i], a = [t, i].filter(Boolean).join(n);
@@ -1828,7 +1828,7 @@ function V(e, t = null, n = ".") {
1828
1828
  };
1829
1829
  }, {});
1830
1830
  }
1831
- const mn = "v3", ee = "builder.", fn = "options.", hn = (e) => {
1831
+ const fn = "v3", ee = "builder.", hn = "options.", pn = (e) => {
1832
1832
  const t = {};
1833
1833
  return e.forEach((n, o) => {
1834
1834
  t[o] = n;
@@ -1839,16 +1839,16 @@ const mn = "v3", ee = "builder.", fn = "options.", hn = (e) => {
1839
1839
  const t = Ie(e), n = {};
1840
1840
  return Object.keys(t).forEach((o) => {
1841
1841
  if (o.startsWith(ee)) {
1842
- const i = o.replace(ee, "").replace(fn, "");
1842
+ const i = o.replace(ee, "").replace(hn, "");
1843
1843
  n[i] = t[o];
1844
1844
  }
1845
1845
  }), n;
1846
- }, pn = () => {
1846
+ }, gn = () => {
1847
1847
  if (!S())
1848
1848
  return {};
1849
1849
  const e = new URLSearchParams(window.location.search);
1850
1850
  return we(e);
1851
- }, Ie = (e) => e instanceof URLSearchParams ? hn(e) : e, te = (e) => typeof e == "number" && !isNaN(e) && e >= 0, z = (e) => {
1851
+ }, Ie = (e) => e instanceof URLSearchParams ? pn(e) : e, te = (e) => typeof e == "number" && !isNaN(e) && e >= 0, z = (e) => {
1852
1852
  let {
1853
1853
  noTraverse: t = !1
1854
1854
  } = e;
@@ -1861,7 +1861,7 @@ const mn = "v3", ee = "builder.", fn = "options.", hn = (e) => {
1861
1861
  includeRefs: s = !0,
1862
1862
  enrich: c,
1863
1863
  locale: m,
1864
- apiVersion: g = mn,
1864
+ apiVersion: g = fn,
1865
1865
  fields: p,
1866
1866
  omit: f,
1867
1867
  offset: h,
@@ -1877,27 +1877,27 @@ const mn = "v3", ee = "builder.", fn = "options.", hn = (e) => {
1877
1877
  (e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
1878
1878
  const b = new URL(`https://cdn.builder.io/api/${g}/content/${r}?apiKey=${a}&limit=${n}&noTraverse=${t}&includeRefs=${s}${m ? `&locale=${m}` : ""}${c ? `&enrich=${c}` : ""}`);
1879
1879
  if (b.searchParams.set("omit", f || "meta.componentsUsed"), p && b.searchParams.set("fields", p), Number.isFinite(h) && h > -1 && b.searchParams.set("offset", String(Math.floor(h))), typeof x == "boolean" && b.searchParams.set("includeUnpublished", String(x)), u && te(u) && b.searchParams.set("cacheSeconds", String(u)), d && te(d) && b.searchParams.set("staleCacheSeconds", String(d)), y) {
1880
- const w = V({
1880
+ const C = V({
1881
1881
  sort: y
1882
1882
  });
1883
- for (const A in w)
1884
- b.searchParams.set(A, JSON.stringify(w[A]));
1883
+ for (const I in C)
1884
+ b.searchParams.set(I, JSON.stringify(C[I]));
1885
1885
  }
1886
- const E = {
1887
- ...pn(),
1886
+ const R = {
1887
+ ...gn(),
1888
1888
  ...Ie(e.options || {})
1889
- }, T = V(E);
1890
- for (const w in T)
1891
- b.searchParams.set(w, String(T[w]));
1889
+ }, E = V(R);
1890
+ for (const C in E)
1891
+ b.searchParams.set(C, String(E[C]));
1892
1892
  if (o && b.searchParams.set("userAttributes", JSON.stringify(o)), i) {
1893
- const w = V({
1893
+ const C = V({
1894
1894
  query: i
1895
1895
  });
1896
- for (const A in w)
1897
- b.searchParams.set(A, JSON.stringify(w[A]));
1896
+ for (const I in C)
1897
+ b.searchParams.set(I, JSON.stringify(C[I]));
1898
1898
  }
1899
1899
  return b;
1900
- }, gn = (e) => "results" in e;
1900
+ }, bn = (e) => "results" in e;
1901
1901
  async function q(e) {
1902
1902
  const t = await Te({
1903
1903
  ...e,
@@ -1905,20 +1905,20 @@ async function q(e) {
1905
1905
  });
1906
1906
  return t && t[0] || null;
1907
1907
  }
1908
- const ao = q, bn = async (e) => {
1908
+ const so = q, yn = async (e) => {
1909
1909
  const t = z(e);
1910
- return await (await un(t.href)).json();
1911
- }, yn = async (e, t, n = z(e)) => {
1910
+ return await (await mn(t.href)).json();
1911
+ }, kn = async (e, t, n = z(e)) => {
1912
1912
  const o = U(e.canTrack);
1913
1913
  if (n.search.includes("preview=")) {
1914
1914
  const r = [];
1915
1915
  for (const a of t.results) {
1916
- const s = cn(n.searchParams);
1916
+ const s = ln(n.searchParams);
1917
1917
  r.push(s || a);
1918
1918
  }
1919
1919
  t.results = r;
1920
1920
  }
1921
- if (!o || !(S() || I === "reactNative"))
1921
+ if (!o || !(S() || T === "reactNative"))
1922
1922
  return t.results;
1923
1923
  try {
1924
1924
  const r = [];
@@ -1935,8 +1935,8 @@ const ao = q, bn = async (e) => {
1935
1935
  };
1936
1936
  async function Te(e) {
1937
1937
  try {
1938
- const t = z(e), n = await bn(e);
1939
- return gn(n) ? yn(e, n) : (v.error("Error fetching data. ", {
1938
+ const t = z(e), n = await yn(e);
1939
+ return bn(n) ? kn(e, n) : (v.error("Error fetching data. ", {
1940
1940
  url: t,
1941
1941
  content: n,
1942
1942
  options: e
@@ -1945,20 +1945,20 @@ async function Te(e) {
1945
1945
  return v.error("Error fetching data. ", t), null;
1946
1946
  }
1947
1947
  }
1948
- const so = Te;
1949
- function co() {
1948
+ const co = Te;
1949
+ function lo() {
1950
1950
  return !S() || j() ? !1 : location.search.indexOf("builder.preview=") !== -1;
1951
1951
  }
1952
- function kn() {
1952
+ function Sn() {
1953
1953
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
1954
1954
  const t = Math.random() * 16 | 0;
1955
1955
  return (e == "x" ? t : t & 3 | 8).toString(16);
1956
1956
  });
1957
1957
  }
1958
1958
  function Ee() {
1959
- return kn().replace(/-/g, "");
1959
+ return Sn().replace(/-/g, "");
1960
1960
  }
1961
- const Re = "builderSessionId", Sn = async ({
1961
+ const Re = "builderSessionId", vn = async ({
1962
1962
  canTrack: e
1963
1963
  }) => {
1964
1964
  if (!e)
@@ -1967,23 +1967,23 @@ const Re = "builderSessionId", Sn = async ({
1967
1967
  name: Re,
1968
1968
  canTrack: e
1969
1969
  });
1970
- if (C(t))
1970
+ if (w(t))
1971
1971
  return t;
1972
1972
  {
1973
- const n = vn();
1974
- return xn({
1973
+ const n = xn();
1974
+ return Cn({
1975
1975
  id: n,
1976
1976
  canTrack: e
1977
1977
  }), n;
1978
1978
  }
1979
- }, vn = () => Ee(), xn = ({
1979
+ }, xn = () => Ee(), Cn = ({
1980
1980
  id: e,
1981
1981
  canTrack: t
1982
1982
  }) => be({
1983
1983
  name: Re,
1984
1984
  value: e,
1985
1985
  canTrack: t
1986
- }), Ae = () => S() && typeof localStorage < "u" ? localStorage : void 0, Cn = ({
1986
+ }), Ae = () => S() && typeof localStorage < "u" ? localStorage : void 0, wn = ({
1987
1987
  key: e,
1988
1988
  canTrack: t
1989
1989
  }) => {
@@ -1994,7 +1994,7 @@ const Re = "builderSessionId", Sn = async ({
1994
1994
  console.debug("[LocalStorage] GET error: ", o);
1995
1995
  return;
1996
1996
  }
1997
- }, wn = ({
1997
+ }, In = ({
1998
1998
  key: e,
1999
1999
  canTrack: t,
2000
2000
  value: n
@@ -2005,32 +2005,32 @@ const Re = "builderSessionId", Sn = async ({
2005
2005
  } catch (i) {
2006
2006
  console.debug("[LocalStorage] SET error: ", i);
2007
2007
  }
2008
- }, Pe = "builderVisitorId", In = ({
2008
+ }, Pe = "builderVisitorId", Tn = ({
2009
2009
  canTrack: e
2010
2010
  }) => {
2011
2011
  if (!e)
2012
2012
  return;
2013
- const t = Cn({
2013
+ const t = wn({
2014
2014
  key: Pe,
2015
2015
  canTrack: e
2016
2016
  });
2017
- if (C(t))
2017
+ if (w(t))
2018
2018
  return t;
2019
2019
  {
2020
- const n = Tn();
2021
- return En({
2020
+ const n = En();
2021
+ return Rn({
2022
2022
  id: n,
2023
2023
  canTrack: e
2024
2024
  }), n;
2025
2025
  }
2026
- }, Tn = () => Ee(), En = ({
2026
+ }, En = () => Ee(), Rn = ({
2027
2027
  id: e,
2028
2028
  canTrack: t
2029
- }) => wn({
2029
+ }) => In({
2030
2030
  key: Pe,
2031
2031
  value: e,
2032
2032
  canTrack: t
2033
- }), Rn = async ({
2033
+ }), An = async ({
2034
2034
  canTrack: e
2035
2035
  }) => {
2036
2036
  if (!e)
@@ -2038,16 +2038,16 @@ const Re = "builderSessionId", Sn = async ({
2038
2038
  visitorId: void 0,
2039
2039
  sessionId: void 0
2040
2040
  };
2041
- const t = await Sn({
2041
+ const t = await vn({
2042
2042
  canTrack: e
2043
- }), n = In({
2043
+ }), n = Tn({
2044
2044
  canTrack: e
2045
2045
  });
2046
2046
  return {
2047
2047
  sessionId: t,
2048
2048
  visitorId: n
2049
2049
  };
2050
- }, An = async ({
2050
+ }, Pn = async ({
2051
2051
  type: e,
2052
2052
  canTrack: t,
2053
2053
  apiKey: n,
@@ -2061,23 +2061,23 @@ const Re = "builderSessionId", Sn = async ({
2061
2061
  url: location.href,
2062
2062
  ...o
2063
2063
  },
2064
- ...await Rn({
2064
+ ...await An({
2065
2065
  canTrack: t
2066
2066
  }),
2067
2067
  userAttributes: le(),
2068
2068
  ownerId: n
2069
2069
  }
2070
2070
  });
2071
- async function Pn(e) {
2071
+ async function Bn(e) {
2072
2072
  if (!e.apiKey) {
2073
2073
  v.error("Missing API key for track call. Please provide your API key.");
2074
2074
  return;
2075
2075
  }
2076
- if (e.canTrack && !j() && (S() || I === "reactNative"))
2076
+ if (e.canTrack && !j() && (S() || T === "reactNative"))
2077
2077
  return fetch("https://cdn.builder.io/api/v1/track", {
2078
2078
  method: "POST",
2079
2079
  body: JSON.stringify({
2080
- events: [await An(e)]
2080
+ events: [await Pn(e)]
2081
2081
  }),
2082
2082
  headers: {
2083
2083
  "content-type": "application/json"
@@ -2087,14 +2087,14 @@ async function Pn(e) {
2087
2087
  console.error("Failed to track: ", t);
2088
2088
  });
2089
2089
  }
2090
- const lo = (e) => Pn({
2090
+ const uo = (e) => Bn({
2091
2091
  ...e,
2092
2092
  canTrack: !0
2093
2093
  });
2094
2094
  function ne(e) {
2095
2095
  return Math.round(e * 1e3) / 1e3;
2096
2096
  }
2097
- const Bn = (e, t, n = !0) => {
2097
+ const Vn = (e, t, n = !0) => {
2098
2098
  if (!(e instanceof HTMLElement))
2099
2099
  return null;
2100
2100
  let o = n ? e : e.parentElement;
@@ -2105,7 +2105,7 @@ const Bn = (e, t, n = !0) => {
2105
2105
  return o;
2106
2106
  } while (o = o.parentElement);
2107
2107
  return null;
2108
- }, Vn = (e) => Bn(e, (t) => {
2108
+ }, $n = (e) => Vn(e, (t) => {
2109
2109
  const n = t.getAttribute("builder-id") || t.id;
2110
2110
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
2111
2111
  }), oe = ({
@@ -2117,8 +2117,8 @@ const Bn = (e, t, n = !0) => {
2117
2117
  x: r,
2118
2118
  y: a
2119
2119
  };
2120
- }, uo = (e) => {
2121
- const t = e.target, n = t && Vn(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2120
+ }, mo = (e) => {
2121
+ const t = e.target, n = t && $n(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2122
2122
  return {
2123
2123
  targetBuilderElement: o || void 0,
2124
2124
  metadata: {
@@ -2133,13 +2133,13 @@ const Bn = (e, t, n = !0) => {
2133
2133
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
2134
2134
  }
2135
2135
  };
2136
- }, $n = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
2136
+ }, Wn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
2137
2137
  function Be(e, t) {
2138
2138
  const n = new URL(t.origin), o = n.hostname;
2139
- return (e || $n).findIndex((i) => i.startsWith("*.") ? o.endsWith(i.slice(1)) : i === o) > -1;
2139
+ return (e || Wn).findIndex((i) => i.startsWith("*.") ? o.endsWith(i.slice(1)) : i === o) > -1;
2140
2140
  }
2141
- const Wn = "0.13.0", ie = {};
2142
- function On(e, t) {
2141
+ const On = "0.13.2", ie = {};
2142
+ function Nn(e, t) {
2143
2143
  let n = ie[e];
2144
2144
  if (n || (n = ie[e] = []), n.push(t), S()) {
2145
2145
  const o = {
@@ -2156,8 +2156,8 @@ function On(e, t) {
2156
2156
  }
2157
2157
  }
2158
2158
  }
2159
- const mo = () => {
2160
- On("insertMenu", {
2159
+ const fo = () => {
2160
+ Nn("insertMenu", {
2161
2161
  name: "_default",
2162
2162
  default: !0,
2163
2163
  items: [{
@@ -2180,13 +2180,13 @@ const mo = () => {
2180
2180
  });
2181
2181
  };
2182
2182
  let re = !1;
2183
- const Nn = (e = {}) => {
2183
+ const Fn = (e = {}) => {
2184
2184
  var t, n;
2185
2185
  re || (re = !0, S() && ((t = window.parent) == null || t.postMessage({
2186
2186
  type: "builder.sdkInfo",
2187
2187
  data: {
2188
- target: I,
2189
- version: Wn,
2188
+ target: T,
2189
+ version: On,
2190
2190
  supportsPatchUpdates: !1,
2191
2191
  // Supports builder-model="..." attribute which is needed to
2192
2192
  // scope our '+ add block' button styling
@@ -2241,7 +2241,7 @@ const Nn = (e = {}) => {
2241
2241
  }
2242
2242
  }
2243
2243
  })));
2244
- }, Fn = ({
2244
+ }, Ln = ({
2245
2245
  model: e,
2246
2246
  trustedHosts: t,
2247
2247
  callbacks: n
@@ -2267,12 +2267,12 @@ const Nn = (e = {}) => {
2267
2267
  break;
2268
2268
  }
2269
2269
  }
2270
- }, fo = (e, t, n) => {
2270
+ }, ho = (e, t, n) => {
2271
2271
  if (!S)
2272
2272
  return v.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
2273
2273
  };
2274
- Nn();
2275
- const o = Fn({
2274
+ Fn();
2275
+ const o = Ln({
2276
2276
  callbacks: {
2277
2277
  contentUpdate: t,
2278
2278
  animation: () => {
@@ -2297,38 +2297,38 @@ function ae(e, ...t) {
2297
2297
  }
2298
2298
  return n;
2299
2299
  }
2300
- const Ln = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
2301
- function Un(e) {
2300
+ const Un = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
2301
+ function _n(e) {
2302
2302
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
2303
2303
  }
2304
- function _n(e, t) {
2305
- const n = Dn(e), o = getComputedStyle(t), i = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [i, r];
2304
+ function Dn(e, t) {
2305
+ const n = Mn(e), o = getComputedStyle(t), i = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [i, r];
2306
2306
  for (const s of a)
2307
2307
  for (const c of n)
2308
2308
  c in s || (s[c] = o[c]);
2309
2309
  }
2310
- function Dn(e) {
2310
+ function Mn(e) {
2311
2311
  const t = [];
2312
2312
  for (const n of e.steps)
2313
2313
  for (const o in n.styles)
2314
2314
  t.indexOf(o) === -1 && t.push(o);
2315
2315
  return t;
2316
2316
  }
2317
- function ho(e) {
2317
+ function po(e) {
2318
2318
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
2319
2319
  if (!t.length) {
2320
- Un(e.elementId || e.id || "");
2320
+ _n(e.elementId || e.id || "");
2321
2321
  return;
2322
2322
  }
2323
2323
  Array.from(t).forEach((n) => {
2324
- _n(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ae(n.style, e.steps[0].styles), setTimeout(() => {
2325
- n.style.transition = `all ${e.duration}s ${Ln(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), ae(n.style, e.steps[1].styles), setTimeout(() => {
2324
+ Dn(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ae(n.style, e.steps[0].styles), setTimeout(() => {
2325
+ n.style.transition = `all ${e.duration}s ${Un(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), ae(n.style, e.steps[1].styles), setTimeout(() => {
2326
2326
  n.style.transition = "", n.style.transitionDelay = "";
2327
2327
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
2328
2328
  });
2329
2329
  });
2330
2330
  }
2331
- const Mn = (e) => {
2331
+ const jn = (e) => {
2332
2332
  var r;
2333
2333
  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);
2334
2334
  let i = "";
@@ -2354,22 +2354,22 @@ font-weight: ${a};
2354
2354
  `.trim());
2355
2355
  }
2356
2356
  return i;
2357
- }, jn = ({
2357
+ }, Hn = ({
2358
2358
  customFonts: e
2359
2359
  }) => {
2360
2360
  var t;
2361
- return ((t = e == null ? void 0 : e.map((n) => Mn(n))) == null ? void 0 : t.join(" ")) || "";
2362
- }, Hn = ({
2361
+ return ((t = e == null ? void 0 : e.map((n) => jn(n))) == null ? void 0 : t.join(" ")) || "";
2362
+ }, Kn = ({
2363
2363
  cssCode: e,
2364
2364
  contentId: t
2365
2365
  }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
2366
- function Kn(e) {
2366
+ function zn(e) {
2367
2367
  const t = `
2368
- ${Hn({
2368
+ ${Kn({
2369
2369
  cssCode: e.cssCode,
2370
2370
  contentId: e.contentId
2371
2371
  })}
2372
- ${jn({
2372
+ ${Hn({
2373
2373
  customFonts: e.customFonts
2374
2374
  })}
2375
2375
 
@@ -2392,7 +2392,7 @@ ${jn({
2392
2392
  `.trim();
2393
2393
  return /* @__PURE__ */ l(O, { styles: t });
2394
2394
  }
2395
- const zn = ({
2395
+ const qn = ({
2396
2396
  content: e,
2397
2397
  data: t,
2398
2398
  locale: n
@@ -2409,7 +2409,7 @@ const zn = ({
2409
2409
  locale: n
2410
2410
  } : {}
2411
2411
  };
2412
- }, qn = ({
2412
+ }, Gn = ({
2413
2413
  content: e,
2414
2414
  data: t
2415
2415
  }) => e ? {
@@ -2422,7 +2422,7 @@ const zn = ({
2422
2422
  } : void 0;
2423
2423
  function se(e) {
2424
2424
  var i, r, a, s, c, m, g, p, f;
2425
- const t = rn({
2425
+ const t = an({
2426
2426
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2427
2427
  variationId: (i = e.content) == null ? void 0 : i.testVariationId,
2428
2428
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -2446,12 +2446,12 @@ function se(e) {
2446
2446
  }),
2447
2447
  {}
2448
2448
  ), o = {
2449
- content: qn({
2449
+ content: Gn({
2450
2450
  content: e.content,
2451
2451
  data: e.data
2452
2452
  }),
2453
2453
  localState: void 0,
2454
- rootState: zn({
2454
+ rootState: qn({
2455
2455
  content: e.content,
2456
2456
  data: e.data,
2457
2457
  locale: e.locale
@@ -2480,7 +2480,7 @@ function se(e) {
2480
2480
  BlocksWrapper: e.blocksWrapper || "div",
2481
2481
  BlocksWrapperProps: e.blocksWrapperProps || {}
2482
2482
  };
2483
- return /* @__PURE__ */ R(
2483
+ return /* @__PURE__ */ A(
2484
2484
  ze,
2485
2485
  {
2486
2486
  content: e.content,
@@ -2501,7 +2501,7 @@ function se(e) {
2501
2501
  children: [
2502
2502
  e.isSsrAbTest ? /* @__PURE__ */ l(k, { children: /* @__PURE__ */ l(D, { scriptStr: t }) }) : null,
2503
2503
  /* @__PURE__ */ l(k, { children: /* @__PURE__ */ l(
2504
- Kn,
2504
+ zn,
2505
2505
  {
2506
2506
  contentId: (a = o.content) == null ? void 0 : a.id,
2507
2507
  cssCode: (c = (s = o.content) == null ? void 0 : s.data) == null ? void 0 : c.cssCode,
@@ -2523,12 +2523,12 @@ function se(e) {
2523
2523
  }
2524
2524
  function Ve(e) {
2525
2525
  var r, a;
2526
- const t = en({
2526
+ const t = tn({
2527
2527
  canTrack: U(e.canTrack),
2528
2528
  content: e.content
2529
2529
  }), n = function() {
2530
2530
  var c;
2531
- return on(
2531
+ return rn(
2532
2532
  B(e.content).map((m) => ({
2533
2533
  id: m.testVariationId,
2534
2534
  testRatio: m.testRatio
@@ -2547,9 +2547,9 @@ function Ve(e) {
2547
2547
  canTrack: U(e.canTrack)
2548
2548
  });
2549
2549
  };
2550
- return /* @__PURE__ */ R(k, { children: [
2551
- !e.__isNestedRender && I !== "reactNative" ? /* @__PURE__ */ l(k, { children: /* @__PURE__ */ l(D, { scriptStr: nn() }) }) : null,
2552
- t ? /* @__PURE__ */ R(k, { children: [
2550
+ return /* @__PURE__ */ A(k, { children: [
2551
+ !e.__isNestedRender && T !== "reactNative" ? /* @__PURE__ */ l(k, { children: /* @__PURE__ */ l(D, { scriptStr: on() }) }) : null,
2552
+ t ? /* @__PURE__ */ A(k, { children: [
2553
2553
  /* @__PURE__ */ l(
2554
2554
  O,
2555
2555
  {
@@ -2610,7 +2610,7 @@ function Ve(e) {
2610
2610
  )
2611
2611
  ] });
2612
2612
  }
2613
- const Gn = async ({
2613
+ const Jn = async ({
2614
2614
  builderContextValue: e,
2615
2615
  symbol: t
2616
2616
  }) => {
@@ -2629,7 +2629,7 @@ const Gn = async ({
2629
2629
  v.error("Could not fetch symbol content: ", n);
2630
2630
  });
2631
2631
  };
2632
- async function Jn(e) {
2632
+ async function Yn(e) {
2633
2633
  var o, i, r, a, s;
2634
2634
  const t = function() {
2635
2635
  var m, g;
@@ -2639,7 +2639,7 @@ async function Jn(e) {
2639
2639
  (m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
2640
2640
  (g = e.symbol) != null && g.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
2641
2641
  ].filter(Boolean).join(" ");
2642
- }, n = ((o = e.symbol) == null ? void 0 : o.content) || await Gn({
2642
+ }, n = ((o = e.symbol) == null ? void 0 : o.content) || await Jn({
2643
2643
  symbol: e.symbol,
2644
2644
  builderContextValue: e.builderContext
2645
2645
  });
@@ -2665,8 +2665,8 @@ async function Jn(e) {
2665
2665
  }
2666
2666
  ) });
2667
2667
  }
2668
- const po = F, go = Ve, ce = {};
2669
- function bo(e) {
2668
+ const go = F, bo = Ve, ce = {};
2669
+ function yo(e) {
2670
2670
  if (S()) {
2671
2671
  Object.assign(ce, e);
2672
2672
  const t = {
@@ -2676,7 +2676,7 @@ function bo(e) {
2676
2676
  parent.postMessage(t, "*");
2677
2677
  }
2678
2678
  }
2679
- const yo = async (e) => {
2679
+ const ko = async (e) => {
2680
2680
  var o, i, r;
2681
2681
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((i = e.userAttributes) == null ? void 0 : i.urlPath), n = {
2682
2682
  ...e,
@@ -2700,41 +2700,41 @@ export {
2700
2700
  we as A,
2701
2701
  F as B,
2702
2702
  Ve as C,
2703
- lo as D,
2704
- fo as E,
2705
- yo as F,
2706
- yn as G,
2703
+ uo as D,
2704
+ ho as E,
2705
+ ko as F,
2706
+ kn as G,
2707
2707
  Te as H,
2708
- so as I,
2709
- ao as J,
2710
- po as R,
2711
- Jn as S,
2712
- Gt as T,
2713
- Pn as _,
2708
+ co as I,
2709
+ so as J,
2710
+ go as R,
2711
+ Yn as S,
2712
+ Ht as T,
2713
+ Bn as _,
2714
2714
  yt as a,
2715
- no as b,
2715
+ oo as b,
2716
2716
  j as c,
2717
- oo as d,
2718
- io as e,
2717
+ io as d,
2718
+ ro as e,
2719
2719
  S as f,
2720
2720
  M as g,
2721
2721
  U as h,
2722
- to as i,
2723
- co as j,
2724
- Fn as k,
2722
+ no as i,
2723
+ lo as j,
2724
+ Ln as k,
2725
2725
  v as l,
2726
2726
  H as m,
2727
- uo as n,
2727
+ mo as n,
2728
2728
  W as o,
2729
- ro as p,
2729
+ ao as p,
2730
2730
  q,
2731
- mo as r,
2732
- Nn as s,
2733
- ho as t,
2734
- un as u,
2735
- sn as v,
2736
- go as w,
2731
+ fo as r,
2732
+ Fn as s,
2733
+ po as t,
2734
+ mn as u,
2735
+ cn as v,
2736
+ bo as w,
2737
2737
  vt as x,
2738
- On as y,
2739
- bo as z
2738
+ Nn as y,
2739
+ yo as z
2740
2740
  };