@builder.io/sdk-react 4.1.1 → 4.1.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 (70) hide show
  1. package/lib/browser/blocks-exports.cjs +2 -2
  2. package/lib/browser/blocks-exports.mjs +246 -246
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/{server-entry-7fc3706d.js → server-entry-275748e0.js} +120 -144
  6. package/lib/browser/server-entry-d2f19ab1.cjs +2 -0
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/{accordion-97979a98.cjs → accordion-59377bdf.cjs} +1 -1
  10. package/lib/edge/{accordion-52165801.js → accordion-59685072.js} +1 -1
  11. package/lib/edge/{blocks-f69d48c0.js → blocks-803a3669.js} +2 -2
  12. package/lib/edge/{blocks-b38b39ff.cjs → blocks-ab4caea4.cjs} +1 -1
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +2 -2
  15. package/lib/edge/{button-3acce335.js → button-244756d9.js} +2 -2
  16. package/lib/edge/{button-c2b48e86.cjs → button-d9ead397.cjs} +1 -1
  17. package/lib/edge/{columns-600ece77.cjs → columns-88904faf.cjs} +1 -1
  18. package/lib/edge/{columns-301795ee.js → columns-ac088b45.js} +3 -3
  19. package/lib/edge/{content-variants-d80a626a.js → content-variants-7ba31977.js} +133 -133
  20. package/lib/edge/{content-variants-cb452ad4.cjs → content-variants-d0558de3.cjs} +5 -5
  21. package/lib/edge/{custom-code-38a0e487.js → custom-code-3d893bd2.js} +1 -1
  22. package/lib/edge/{custom-code-381f399e.cjs → custom-code-e2904013.cjs} +1 -1
  23. package/lib/edge/{embed-57e9672d.cjs → embed-7710e674.cjs} +1 -1
  24. package/lib/edge/{embed-3e62c6c0.js → embed-7c2fe6ce.js} +1 -1
  25. package/lib/edge/{form-01ee1ef4.js → form-a5b57678.js} +3 -3
  26. package/lib/edge/{form-dfb33605.cjs → form-ec1cd318.cjs} +1 -1
  27. package/lib/edge/{get-class-prop-name-7a52ddda.cjs → get-class-prop-name-31bfc4d6.cjs} +1 -1
  28. package/lib/edge/{get-class-prop-name-ca3fff6a.js → get-class-prop-name-4ca8bda9.js} +1 -1
  29. package/lib/edge/{img-35c030d0.js → img-1b034d45.js} +1 -1
  30. package/lib/edge/{img-ff08ac3a.cjs → img-f00b7db5.cjs} +1 -1
  31. package/lib/edge/index.cjs +1 -1
  32. package/lib/edge/index.mjs +1 -1
  33. package/lib/edge/{input-bd84e8ab.cjs → input-19390442.cjs} +1 -1
  34. package/lib/edge/{input-d466ec13.js → input-dfd8b37e.js} +1 -1
  35. package/lib/edge/{personalization-container-8b04de3e.cjs → personalization-container-40c62fee.cjs} +1 -1
  36. package/lib/edge/{personalization-container-87ff6375.js → personalization-container-660938a9.js} +4 -4
  37. package/lib/edge/{select-5d4ffe3b.js → select-155fc504.js} +1 -1
  38. package/lib/edge/{select-ef4ce171.cjs → select-9839622b.cjs} +1 -1
  39. package/lib/edge/{server-entry-db512751.js → server-entry-75006b6f.js} +119 -143
  40. package/lib/edge/server-entry-bdf7aa30.cjs +2 -0
  41. package/lib/edge/server-entry.cjs +1 -1
  42. package/lib/edge/server-entry.mjs +1 -1
  43. package/lib/edge/{slot-78b8ee2b.cjs → slot-28225152.cjs} +1 -1
  44. package/lib/edge/{slot-d0cbcacf.js → slot-c14c2de1.js} +3 -3
  45. package/lib/edge/{symbol-2e54d716.js → symbol-2419b184.js} +2 -2
  46. package/lib/edge/{symbol-6d9bb0a7.cjs → symbol-e5dc7a91.cjs} +1 -1
  47. package/lib/edge/{tabs-b8c2b851.js → tabs-c7011fa2.js} +3 -3
  48. package/lib/edge/{tabs-3f775737.cjs → tabs-d7aa6ac2.cjs} +1 -1
  49. package/lib/node/blocks-exports.cjs +2 -2
  50. package/lib/node/blocks-exports.mjs +244 -244
  51. package/lib/node/index.cjs +1 -1
  52. package/lib/node/index.mjs +3 -3
  53. package/lib/node/init.cjs +1 -1
  54. package/lib/node/init.mjs +3 -3
  55. package/lib/node/{server-entry-b0a12b94.js → server-entry-0cf21855.js} +120 -144
  56. package/lib/node/server-entry-7a611f62.cjs +2 -0
  57. package/lib/node/server-entry.cjs +1 -1
  58. package/lib/node/server-entry.mjs +1 -1
  59. package/lib/node/{setIvm-f591fbda.js → setIvm-4171d613.js} +1 -1
  60. package/lib/node/{setIvm-513e193d.cjs → setIvm-68685828.cjs} +1 -1
  61. package/lib/node/setIvm.cjs +1 -1
  62. package/lib/node/setIvm.mjs +2 -2
  63. package/lib/node/{should-force-browser-runtime-in-node-0fb1bbdd.cjs → should-force-browser-runtime-in-node-88656beb.cjs} +1 -1
  64. package/lib/node/{should-force-browser-runtime-in-node-da05f5c3.js → should-force-browser-runtime-in-node-9fe42073.js} +1 -1
  65. package/package.json +1 -1
  66. package/types/constants/sdk-version.d.ts +1 -1
  67. package/types/scripts/init-editing.d.ts +0 -1
  68. package/lib/browser/server-entry-7291b0a0.cjs +0 -2
  69. package/lib/edge/server-entry-afc62633.cjs +0 -2
  70. package/lib/node/server-entry-47ceca47.cjs +0 -2
@@ -1,9 +1,9 @@
1
1
  import { jsx as v, jsxs as U, Fragment as j } from "react/jsx-runtime";
2
2
  import { lazy as I, useRef as Q, useState as V, useEffect as W } from "react";
3
- import { TARGET as F, isBrowser as _, isEditing as N, isPreviewing as oe, registerInsertMenu as ge, setupBrowserForEditing as he, createRegisterComponentMessage as be, getDefaultCanTrack as q, getCookieSync as ye, _track as X, fetchOneEntry as ve, createEditorListener as xe, logFetch as Se, serializeIncludingFunctions as Z, logger as Te, handleABTestingSync as Ie } from "./server-entry-db512751.js";
4
- import { Video as ke, Button as Ce, Columns as we, Fragment as Ve, Image as Ee, Section as Re, Symbol as Ae, Text as De, BuilderContext as Fe } from "./blocks-exports.mjs";
5
- import { triggerAnimation as Pe, evaluate as re, fastClone as We, InlinedStyles as se, ComponentsContext as Ne, Blocks as $e } from "./blocks-f69d48c0.js";
6
- function Xt(e, t, n, o) {
3
+ import { TARGET as F, isBrowser as _, isEditing as N, isPreviewing as oe, setupBrowserForEditing as ge, createRegisterComponentMessage as he, getDefaultCanTrack as q, getCookieSync as be, _track as X, fetchOneEntry as ye, createEditorListener as ve, logFetch as xe, serializeIncludingFunctions as Z, logger as Se, handleABTestingSync as Te } from "./server-entry-75006b6f.js";
4
+ import { Video as Ie, Button as ke, Columns as Ce, Fragment as we, Image as Ve, Section as Ee, Symbol as Re, Text as Ae, BuilderContext as De } from "./blocks-exports.mjs";
5
+ import { triggerAnimation as Fe, evaluate as re, fastClone as Pe, InlinedStyles as se, ComponentsContext as We, Blocks as Ne } from "./blocks-803a3669.js";
6
+ function Gt(e, t, n, o) {
7
7
  function r(f) {
8
8
  return typeof f == "string";
9
9
  }
@@ -60,7 +60,7 @@ function Xt(e, t, n, o) {
60
60
  }, l = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
61
61
  return a.startDate && new Date(a.startDate) > l || a.endDate && new Date(a.endDate) < l ? !1 : !a.query || !a.query.length ? !0 : a.query.every((f) => i(e, f));
62
62
  }
63
- const _e = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
63
+ const $e = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
64
64
  if (!navigator.cookieEnabled) {
65
65
  return;
66
66
  }
@@ -105,7 +105,7 @@ const _e = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
105
105
  thisScript.remove();
106
106
  }
107
107
  }
108
- }`, Le = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
108
+ }`, _e = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
109
109
  function isString(val) {
110
110
  return typeof val === 'string';
111
111
  }
@@ -183,7 +183,7 @@ const _e = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
183
183
  return item.query.every(filter => {
184
184
  return objectMatchesQuery(userAttributes, filter);
185
185
  });
186
- }`, Ue = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
186
+ }`, Le = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
187
187
  function getCookie(name) {
188
188
  const nameEQ = name + '=';
189
189
  const ca = document.cookie.split(';');
@@ -221,11 +221,11 @@ const _e = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
221
221
  visibilityStylesEl.innerHTML = newStyleStr;
222
222
  }
223
223
  }
224
- }`, Be = "default", He = "filterWithCustomTargeting", le = "builderIoPersonalization", ue = "updateVisibilityStylesScript", de = ["react", "vue", "svelte", "qwik"], qe = ["vue", "svelte", "qwik"];
225
- function Zt(e, t) {
226
- return !(e && e.length > 0) || !t ? !1 : qe.includes(F) ? !0 : !_();
224
+ }`, Ue = "default", Be = "filterWithCustomTargeting", le = "builderIoPersonalization", ue = "updateVisibilityStylesScript", de = ["react", "vue", "svelte", "qwik"], He = ["vue", "svelte", "qwik"];
225
+ function Xt(e, t) {
226
+ return !(e && e.length > 0) || !t ? !1 : He.includes(F) ? !0 : !_();
227
227
  }
228
- function en({
228
+ function Zt({
229
229
  variants: e,
230
230
  previewingIndex: t,
231
231
  isHydrated: n,
@@ -236,7 +236,7 @@ function en({
236
236
  const s = {
237
237
  blocks: r != null ? r : [],
238
238
  path: "this.children",
239
- index: Be
239
+ index: Ue
240
240
  };
241
241
  if (n && N()) {
242
242
  if (typeof t == "number" && t < ((i = e == null ? void 0 : e.length) != null ? i : 0)) {
@@ -264,11 +264,11 @@ function en({
264
264
  }
265
265
  return s;
266
266
  }
267
- const Oe = () => `
268
- window.${He} = ${Le}
269
- window.${le} = ${_e}
270
- window.${ue} = ${Ue}
271
- `, ce = F === "react", tn = (e, t, n) => `window.${le}(${JSON.stringify(e)}, "${t}", ${ce}${n ? `, "${n}"` : ""})`, nn = (e, t, n) => `window.${ue}(${JSON.stringify(e)}, "${t}", ${ce}${n ? `, "${n}"` : ""})`, M = {
267
+ const qe = () => `
268
+ window.${Be} = ${_e}
269
+ window.${le} = ${$e}
270
+ window.${ue} = ${Le}
271
+ `, ce = F === "react", en = (e, t, n) => `window.${le}(${JSON.stringify(e)}, "${t}", ${ce}${n ? `, "${n}"` : ""})`, tn = (e, t, n) => `window.${ue}(${JSON.stringify(e)}, "${t}", ${ce}${n ? `, "${n}"` : ""})`, M = {
272
272
  "@type": "@builder.io/sdk:Element",
273
273
  layerName: "Accordion item title",
274
274
  responsiveStyles: {
@@ -328,7 +328,7 @@ const Oe = () => `
328
328
  }
329
329
  }
330
330
  }]
331
- }, je = {
331
+ }, Oe = {
332
332
  name: "Builder:Accordion",
333
333
  canHaveChildren: !0,
334
334
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -392,7 +392,7 @@ const Oe = () => `
392
392
  builderComponents: !0,
393
393
  builderLinkComponent: !0
394
394
  }
395
- }, Me = I(() => import("./accordion-52165801.js")), Ke = {
395
+ }, je = I(() => import("./accordion-59685072.js")), Me = {
396
396
  name: "Core:Button",
397
397
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
398
398
  defaultStyles: {
@@ -428,7 +428,7 @@ const Oe = () => `
428
428
  shouldReceiveBuilderProps: {
429
429
  builderLinkComponent: !0
430
430
  }
431
- }, ze = {
431
+ }, Ke = {
432
432
  // TODO: ways to statically preprocess JSON for references, functions, etc
433
433
  name: "Columns",
434
434
  isRSC: !0,
@@ -635,13 +635,13 @@ const Oe = () => `
635
635
  builderComponents: !0,
636
636
  builderLinkComponent: !0
637
637
  }
638
- }, Je = {
638
+ }, ze = {
639
639
  name: "Fragment",
640
640
  static: !0,
641
641
  hidden: !0,
642
642
  canHaveChildren: !0,
643
643
  noWrap: !0
644
- }, Y = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], Qe = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], Ye = {
644
+ }, Y = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], Je = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], Qe = {
645
645
  name: "Image",
646
646
  static: !0,
647
647
  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",
@@ -753,7 +753,7 @@ const Oe = () => `
753
753
  shouldReceiveBuilderProps: {
754
754
  builderBlock: !0
755
755
  }
756
- }, Ge = {
756
+ }, Ye = {
757
757
  name: "PersonalizationContainer",
758
758
  shouldReceiveBuilderProps: {
759
759
  builderBlock: !0,
@@ -789,7 +789,7 @@ const Oe = () => `
789
789
  defaultValue: []
790
790
  }]
791
791
  }]
792
- }, Xe = I(() => import("./personalization-container-87ff6375.js")), Ze = {
792
+ }, Ge = I(() => import("./personalization-container-660938a9.js")), Xe = {
793
793
  name: "Core:Section",
794
794
  static: !0,
795
795
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -828,7 +828,7 @@ const Oe = () => `
828
828
  }
829
829
  }
830
830
  }]
831
- }, et = {
831
+ }, Ze = {
832
832
  name: "Slot",
833
833
  isRSC: !0,
834
834
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -845,7 +845,7 @@ const Oe = () => `
845
845
  builderContext: !0,
846
846
  builderComponents: !0
847
847
  }
848
- }, tt = I(() => import("./slot-d0cbcacf.js")), nt = {
848
+ }, et = I(() => import("./slot-c14c2de1.js")), tt = {
849
849
  name: "Symbol",
850
850
  noWrap: !0,
851
851
  static: !0,
@@ -922,7 +922,7 @@ const Oe = () => `
922
922
  text: "New tab content "
923
923
  }
924
924
  }
925
- }, at = {
925
+ }, nt = {
926
926
  name: "Builder: Tabs",
927
927
  inputs: [{
928
928
  name: "tabs",
@@ -1025,7 +1025,7 @@ const Oe = () => `
1025
1025
  builderComponents: !0,
1026
1026
  builderLinkComponent: !0
1027
1027
  }
1028
- }, it = I(() => import("./tabs-b8c2b851.js")), ot = {
1028
+ }, at = I(() => import("./tabs-c7011fa2.js")), it = {
1029
1029
  shouldReceiveBuilderProps: {},
1030
1030
  name: "Text",
1031
1031
  static: !0,
@@ -1044,7 +1044,7 @@ const Oe = () => `
1044
1044
  height: "auto",
1045
1045
  textAlign: "center"
1046
1046
  }
1047
- }, rt = {
1047
+ }, ot = {
1048
1048
  name: "Custom Code",
1049
1049
  static: !0,
1050
1050
  requiredPermissions: ["editCode"],
@@ -1066,7 +1066,7 @@ const Oe = () => `
1066
1066
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
1067
1067
  advanced: !0
1068
1068
  }]
1069
- }, st = I(() => import("./custom-code-38a0e487.js")), lt = {
1069
+ }, rt = I(() => import("./custom-code-3d893bd2.js")), st = {
1070
1070
  name: "Embed",
1071
1071
  static: !0,
1072
1072
  inputs: [{
@@ -1081,7 +1081,7 @@ const Oe = () => `
1081
1081
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1082
1082
  hideFromUI: !0
1083
1083
  }]
1084
- }, ut = I(() => import("./embed-3e62c6c0.js")), dt = {
1084
+ }, lt = I(() => import("./embed-7c2fe6ce.js")), ut = {
1085
1085
  name: "Form:Form",
1086
1086
  // editableTags: ['builder-form-error']
1087
1087
  defaults: {
@@ -1318,7 +1318,7 @@ const Oe = () => `
1318
1318
  builderComponents: !0,
1319
1319
  builderLinkComponent: !0
1320
1320
  }
1321
- }, ct = I(() => import("./form-01ee1ef4.js")), mt = {
1321
+ }, dt = I(() => import("./form-a5b57678.js")), ct = {
1322
1322
  name: "Form:Input",
1323
1323
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
1324
1324
  inputs: [
@@ -1369,7 +1369,7 @@ const Oe = () => `
1369
1369
  borderStyle: "solid",
1370
1370
  borderColor: "#ccc"
1371
1371
  }
1372
- }, pt = I(() => import("./input-d466ec13.js")), ft = {
1372
+ }, mt = I(() => import("./input-dfd8b37e.js")), pt = {
1373
1373
  name: "Form:Select",
1374
1374
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
1375
1375
  defaultStyles: {
@@ -1411,7 +1411,7 @@ const Oe = () => `
1411
1411
  }],
1412
1412
  static: !0,
1413
1413
  noWrap: !0
1414
- }, gt = I(() => import("./select-5d4ffe3b.js")), ht = {
1414
+ }, ft = I(() => import("./select-155fc504.js")), gt = {
1415
1415
  name: "Form:SubmitButton",
1416
1416
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
1417
1417
  defaultStyles: {
@@ -1436,7 +1436,7 @@ const Oe = () => `
1436
1436
  // that only shows if advanced setting is flipped
1437
1437
  // TODO: defaultChildren
1438
1438
  // canHaveChildren: true,
1439
- }, bt = I(() => import("./submit-button-b48361a7.js")), yt = {
1439
+ }, ht = I(() => import("./submit-button-b48361a7.js")), bt = {
1440
1440
  name: "Form:TextArea",
1441
1441
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
1442
1442
  inputs: [{
@@ -1472,7 +1472,7 @@ const Oe = () => `
1472
1472
  },
1473
1473
  static: !0,
1474
1474
  noWrap: !0
1475
- }, vt = I(() => import("./textarea-d29025e9.js")), xt = {
1475
+ }, yt = I(() => import("./textarea-d29025e9.js")), vt = {
1476
1476
  // friendlyName?
1477
1477
  name: "Raw:Img",
1478
1478
  hideFromInsertMenu: !0,
@@ -1486,7 +1486,7 @@ const Oe = () => `
1486
1486
  }],
1487
1487
  noWrap: !0,
1488
1488
  static: !0
1489
- }, St = I(() => import("./img-35c030d0.js")), Tt = {
1489
+ }, xt = I(() => import("./img-1b034d45.js")), St = {
1490
1490
  name: "Video",
1491
1491
  canHaveChildren: !0,
1492
1492
  defaultStyles: {
@@ -1497,7 +1497,7 @@ const Oe = () => `
1497
1497
  inputs: [{
1498
1498
  name: "video",
1499
1499
  type: "file",
1500
- allowedFileTypes: Qe,
1500
+ allowedFileTypes: Je,
1501
1501
  bubble: !0,
1502
1502
  defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
1503
1503
  required: !0
@@ -1570,34 +1570,37 @@ const Oe = () => `
1570
1570
  shouldReceiveBuilderProps: {
1571
1571
  builderBlock: !0
1572
1572
  }
1573
- }, It = () => [{
1574
- component: st,
1575
- ...rt
1573
+ }, Tt = () => [{
1574
+ component: rt,
1575
+ ...ot
1576
1576
  }, {
1577
- component: ut,
1578
- ...lt
1577
+ component: lt,
1578
+ ...st
1579
1579
  }, {
1580
- component: ct,
1581
- ...dt
1580
+ component: dt,
1581
+ ...ut
1582
1582
  }, {
1583
- component: pt,
1584
- ...mt
1583
+ component: mt,
1584
+ ...ct
1585
1585
  }, {
1586
- component: bt,
1587
- ...ht
1586
+ component: ht,
1587
+ ...gt
1588
1588
  }, {
1589
- component: gt,
1590
- ...ft
1589
+ component: ft,
1590
+ ...pt
1591
1591
  }, {
1592
- component: vt,
1593
- ...yt
1592
+ component: yt,
1593
+ ...bt
1594
1594
  }, {
1595
- component: St,
1596
- ...xt
1595
+ component: xt,
1596
+ ...vt
1597
1597
  }, {
1598
- component: ke,
1599
- ...Tt
1598
+ component: Ie,
1599
+ ...St
1600
1600
  }], ee = () => [{
1601
+ component: ke,
1602
+ ...Me
1603
+ }, {
1601
1604
  component: Ce,
1602
1605
  ...Ke
1603
1606
  }, {
@@ -1605,32 +1608,29 @@ const Oe = () => `
1605
1608
  ...ze
1606
1609
  }, {
1607
1610
  component: Ve,
1608
- ...Je
1611
+ ...Qe
1609
1612
  }, {
1610
1613
  component: Ee,
1611
- ...Ye
1614
+ ...Xe
1612
1615
  }, {
1613
- component: Re,
1616
+ component: et,
1614
1617
  ...Ze
1615
1618
  }, {
1616
- component: tt,
1617
- ...et
1619
+ component: Re,
1620
+ ...tt
1618
1621
  }, {
1619
1622
  component: Ae,
1620
- ...nt
1621
- }, {
1622
- component: De,
1623
- ...ot
1623
+ ...it
1624
1624
  }, ...de.includes(F) ? [{
1625
- component: Xe,
1626
- ...Ge
1625
+ component: Ge,
1626
+ ...Ye
1627
1627
  }] : [], {
1628
- component: it,
1629
- ...at
1628
+ component: at,
1629
+ ...nt
1630
1630
  }, {
1631
- component: Me,
1632
- ...je
1633
- }, ...It()], kt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
1631
+ component: je,
1632
+ ...Oe
1633
+ }, ...Tt()], It = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
1634
1634
  function getAndSetVariantId() {
1635
1635
  function setCookie(name, value, days) {
1636
1636
  let expires = '';
@@ -1689,7 +1689,7 @@ const Oe = () => `
1689
1689
  }).join('');
1690
1690
  styleEl.innerHTML = newStyleStr;
1691
1691
  }
1692
- }`, Ct = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
1692
+ }`, kt = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
1693
1693
  if (!navigator.cookieEnabled) {
1694
1694
  return;
1695
1695
  }
@@ -1727,16 +1727,16 @@ const Oe = () => `
1727
1727
  ...t,
1728
1728
  testVariationId: t.id,
1729
1729
  id: e == null ? void 0 : e.id
1730
- })), wt = ({
1730
+ })), Ct = ({
1731
1731
  canTrack: e,
1732
1732
  content: t
1733
- }) => !(!(B(t).length > 0) || !e || _()), Vt = (e) => e === "react" || e === "reactNative", Et = F === "angular", fe = Vt(F), Rt = () => `
1734
- window.${me} = ${kt}
1735
- window.${pe} = ${Ct}
1736
- `, At = (e, t) => `
1733
+ }) => !(!(B(t).length > 0) || !e || _()), wt = (e) => e === "react" || e === "reactNative", Vt = F === "angular", fe = wt(F), Et = () => `
1734
+ window.${me} = ${It}
1735
+ window.${pe} = ${kt}
1736
+ `, Rt = (e, t) => `
1737
1737
  window.${me}(
1738
- "${t}",${JSON.stringify(e)}, ${fe}, ${Et}
1739
- )`, Dt = ({
1738
+ "${t}",${JSON.stringify(e)}, ${fe}, ${Vt}
1739
+ )`, At = ({
1740
1740
  contentId: e,
1741
1741
  variationId: t
1742
1742
  }) => `window.${pe}(
@@ -1755,7 +1755,7 @@ function H(e) {
1755
1755
  function te(e) {
1756
1756
  return Math.round(e * 1e3) / 1e3;
1757
1757
  }
1758
- const Ft = (e, t, n = !0) => {
1758
+ const Dt = (e, t, n = !0) => {
1759
1759
  if (!(e instanceof HTMLElement))
1760
1760
  return null;
1761
1761
  let o = n ? e : e.parentElement;
@@ -1766,7 +1766,7 @@ const Ft = (e, t, n = !0) => {
1766
1766
  return o;
1767
1767
  } while (o = o.parentElement);
1768
1768
  return null;
1769
- }, Pt = (e) => Ft(e, (t) => {
1769
+ }, Ft = (e) => Dt(e, (t) => {
1770
1770
  const n = t.getAttribute("builder-id") || t.id;
1771
1771
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
1772
1772
  }), ne = ({
@@ -1778,8 +1778,8 @@ const Ft = (e, t, n = !0) => {
1778
1778
  x: s,
1779
1779
  y: i
1780
1780
  };
1781
- }, Wt = (e) => {
1782
- const t = e.target, n = t && Pt(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
1781
+ }, Pt = (e) => {
1782
+ const t = e.target, n = t && Ft(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
1783
1783
  return {
1784
1784
  targetBuilderElement: o || void 0,
1785
1785
  metadata: {
@@ -1794,7 +1794,7 @@ const Ft = (e, t, n = !0) => {
1794
1794
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
1795
1795
  }
1796
1796
  };
1797
- }, Nt = ["svelte", "qwik", "vue"], ae = () => Nt.includes(F) && (N() || oe()), $t = (e) => {
1797
+ }, Wt = ["svelte", "qwik", "vue"], ae = () => Wt.includes(F) && (N() || oe()), Nt = (e) => {
1798
1798
  var s, i;
1799
1799
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = (i = e.fileUrl) != null ? i : (s = e == null ? void 0 : e.files) == null ? void 0 : s.regular;
1800
1800
  let r = "";
@@ -1820,15 +1820,15 @@ font-weight: ${a};
1820
1820
  `.trim());
1821
1821
  }
1822
1822
  return r;
1823
- }, _t = ({
1823
+ }, $t = ({
1824
1824
  customFonts: e
1825
1825
  }) => {
1826
1826
  var t;
1827
- return ((t = e == null ? void 0 : e.map((n) => $t(n))) == null ? void 0 : t.join(" ")) || "";
1828
- }, Lt = ({
1827
+ return ((t = e == null ? void 0 : e.map((n) => Nt(n))) == null ? void 0 : t.join(" ")) || "";
1828
+ }, _t = ({
1829
1829
  cssCode: e,
1830
1830
  contentId: t
1831
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ut = `
1831
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Lt = `
1832
1832
  .builder-button {
1833
1833
  all: unset;
1834
1834
  }
@@ -1845,8 +1845,8 @@ font-weight: ${a};
1845
1845
  text-align: inherit;
1846
1846
  font-family: inherit;
1847
1847
  }
1848
- `, Bt = (e) => e ? "" : Ut, Ht = (e) => `variant-${e}`;
1849
- function qt(e) {
1848
+ `, Ut = (e) => e ? "" : Lt, Bt = (e) => `variant-${e}`;
1849
+ function Ht(e) {
1850
1850
  var y, T, A;
1851
1851
  const t = Q(null);
1852
1852
  V(() => !1);
@@ -1891,7 +1891,7 @@ function qt(e) {
1891
1891
  () => e.contentWrapper || "div"
1892
1892
  );
1893
1893
  function a(c) {
1894
- return xe({
1894
+ return ve({
1895
1895
  model: e.model,
1896
1896
  trustedHosts: e.trustedHosts,
1897
1897
  callbacks: {
@@ -1905,7 +1905,7 @@ function qt(e) {
1905
1905
  });
1906
1906
  },
1907
1907
  animation: (p) => {
1908
- Pe(p);
1908
+ Fe(p);
1909
1909
  },
1910
1910
  contentUpdate: (p) => {
1911
1911
  o(p);
@@ -1928,7 +1928,7 @@ function qt(e) {
1928
1928
  contentId: g,
1929
1929
  apiKey: e.apiKey,
1930
1930
  variationId: b !== g ? b : void 0,
1931
- ...Wt(c),
1931
+ ...Pt(c),
1932
1932
  unique: !x
1933
1933
  });
1934
1934
  }
@@ -1953,7 +1953,7 @@ function qt(e) {
1953
1953
  })
1954
1954
  )
1955
1955
  );
1956
- Se(E), fetch(E).then((w) => w.json()).then((w) => {
1956
+ xe(E), fetch(E).then((w) => w.json()).then((w) => {
1957
1957
  n({
1958
1958
  [g]: w
1959
1959
  }), l[g] = !0;
@@ -1970,7 +1970,7 @@ function qt(e) {
1970
1970
  "builder:component:stateChange",
1971
1971
  {
1972
1972
  detail: {
1973
- state: We(e.builderContextSignal.rootState),
1973
+ state: Pe(e.builderContextSignal.rootState),
1974
1974
  ref: {
1975
1975
  name: e.model
1976
1976
  }
@@ -1983,7 +1983,7 @@ function qt(e) {
1983
1983
  return $.current || (u(), k(), $.current = !0), W(() => {
1984
1984
  var c, p, h, b, g;
1985
1985
  if (_()) {
1986
- N() && !e.isNestedRender && (window.addEventListener("message", a), ge(), he({
1986
+ N() && !e.isNestedRender && (window.addEventListener("message", a), ge({
1987
1987
  ...e.locale ? {
1988
1988
  locale: e.locale
1989
1989
  } : {},
@@ -2000,14 +2000,14 @@ function qt(e) {
2000
2000
  ).forEach((S) => {
2001
2001
  var R, L;
2002
2002
  if (!((R = S.models) != null && R.length) || S.models.includes(e.model)) {
2003
- const O = be(S);
2003
+ const O = he(S);
2004
2004
  (L = window.parent) == null || L.postMessage(O, "*");
2005
2005
  }
2006
2006
  }), window.addEventListener(
2007
2007
  "builder:component:stateChangeListenerActivated",
2008
2008
  k
2009
2009
  ));
2010
- const D = e.builderContextSignal.content && q(e.canTrack), E = ye({
2010
+ const D = e.builderContextSignal.content && q(e.canTrack), E = be({
2011
2011
  name: `builder.tests.${(p = e.builderContextSignal.content) == null ? void 0 : p.id}`,
2012
2012
  canTrack: !0
2013
2013
  }), w = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId;
@@ -2026,7 +2026,7 @@ function qt(e) {
2026
2026
  const S = new URL(location.href).searchParams, R = S.get("builder.preview"), L = S.get(
2027
2027
  `builder.overrides.${R}`
2028
2028
  ), O = S.get("apiKey") || S.get("builder.space");
2029
- (R === "BUILDER_STUDIO" || R === e.model && O === e.apiKey && (!e.content || L === e.content.id)) && ve({
2029
+ (R === "BUILDER_STUDIO" || R === e.model && O === e.apiKey && (!e.content || L === e.content.id)) && ye({
2030
2030
  model: e.model,
2031
2031
  apiKey: e.apiKey,
2032
2032
  apiVersion: e.builderContextSignal.apiVersion,
@@ -2055,14 +2055,14 @@ function qt(e) {
2055
2055
  "builder:component:stateChangeListenerActivated",
2056
2056
  k
2057
2057
  ));
2058
- }, []), /* @__PURE__ */ v(Fe.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || ae() ? /* @__PURE__ */ v(
2058
+ }, []), /* @__PURE__ */ v(De.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || ae() ? /* @__PURE__ */ v(
2059
2059
  s,
2060
2060
  {
2061
2061
  ref: t,
2062
2062
  onClick: (c) => d(c),
2063
2063
  "builder-content-id": (y = e.builderContextSignal.content) == null ? void 0 : y.id,
2064
2064
  "builder-model": e.model,
2065
- className: Ht(
2065
+ className: Bt(
2066
2066
  ((T = e.content) == null ? void 0 : T.testVariationId) || ((A = e.content) == null ? void 0 : A.id)
2067
2067
  ),
2068
2068
  style: {
@@ -2074,17 +2074,17 @@ function qt(e) {
2074
2074
  }
2075
2075
  ) : null });
2076
2076
  }
2077
- function Ot(e) {
2077
+ function qt(e) {
2078
2078
  const [t, n] = V(
2079
2079
  () => `
2080
- ${Lt({
2080
+ ${_t({
2081
2081
  cssCode: e.cssCode,
2082
2082
  contentId: e.contentId
2083
2083
  })}
2084
- ${_t({
2084
+ ${$t({
2085
2085
  customFonts: e.customFonts
2086
2086
  })}
2087
- ${Bt(e.isNestedRender)}
2087
+ ${Ut(e.isNestedRender)}
2088
2088
  `.trim()
2089
2089
  );
2090
2090
  return /* @__PURE__ */ v(
@@ -2096,7 +2096,7 @@ ${Bt(e.isNestedRender)}
2096
2096
  }
2097
2097
  );
2098
2098
  }
2099
- const jt = ({
2099
+ const Ot = ({
2100
2100
  content: e,
2101
2101
  data: t,
2102
2102
  locale: n
@@ -2113,7 +2113,7 @@ const jt = ({
2113
2113
  locale: n
2114
2114
  } : {}
2115
2115
  };
2116
- }, Mt = ({
2116
+ }, jt = ({
2117
2117
  content: e,
2118
2118
  data: t
2119
2119
  }) => e ? {
@@ -2129,7 +2129,7 @@ function ie(e) {
2129
2129
  const [t, n] = V(
2130
2130
  () => {
2131
2131
  var y, T;
2132
- return Dt({
2132
+ return At({
2133
2133
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2134
2134
  variationId: (y = e.content) == null ? void 0 : y.testVariationId,
2135
2135
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -2158,12 +2158,12 @@ function ie(e) {
2158
2158
  {}
2159
2159
  )
2160
2160
  ), [i, a] = V(() => ({
2161
- content: Mt({
2161
+ content: jt({
2162
2162
  content: e.content,
2163
2163
  data: e.data
2164
2164
  }),
2165
2165
  localState: void 0,
2166
- rootState: jt({
2166
+ rootState: Ot({
2167
2167
  content: e.content,
2168
2168
  data: e.data,
2169
2169
  locale: e.locale
@@ -2190,7 +2190,7 @@ function ie(e) {
2190
2190
  model: e.model
2191
2191
  })), l = Q(!1);
2192
2192
  if (!l.current) {
2193
- e.apiKey || Te.error(
2193
+ e.apiKey || Se.error(
2194
2194
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
2195
2195
  );
2196
2196
  const y = (m = (f = i.content) == null ? void 0 : f.data) == null ? void 0 : m.jsCode;
@@ -2206,13 +2206,13 @@ function ie(e) {
2206
2206
  }), l.current = !0;
2207
2207
  }
2208
2208
  return /* @__PURE__ */ v(
2209
- Ne.Provider,
2209
+ We.Provider,
2210
2210
  {
2211
2211
  value: {
2212
2212
  registeredComponents: r
2213
2213
  },
2214
2214
  children: /* @__PURE__ */ U(
2215
- qt,
2215
+ Ht,
2216
2216
  {
2217
2217
  apiHost: e.apiHost,
2218
2218
  nonce: e.nonce,
@@ -2241,7 +2241,7 @@ function ie(e) {
2241
2241
  }
2242
2242
  ) : null,
2243
2243
  /* @__PURE__ */ v(
2244
- Ot,
2244
+ qt,
2245
2245
  {
2246
2246
  nonce: e.nonce || "",
2247
2247
  isNestedRender: e.isNestedRender,
@@ -2251,7 +2251,7 @@ function ie(e) {
2251
2251
  }
2252
2252
  ),
2253
2253
  /* @__PURE__ */ v(
2254
- $e,
2254
+ Ne,
2255
2255
  {
2256
2256
  blocks: ($ = (k = i.content) == null ? void 0 : k.data) == null ? void 0 : $.blocks,
2257
2257
  context: i,
@@ -2265,17 +2265,17 @@ function ie(e) {
2265
2265
  }
2266
2266
  );
2267
2267
  }
2268
- function Kt(e) {
2268
+ function Mt(e) {
2269
2269
  var i;
2270
2270
  const [t, n] = V(
2271
- () => wt({
2271
+ () => Ct({
2272
2272
  canTrack: q(e.canTrack),
2273
2273
  content: e.content
2274
2274
  })
2275
2275
  );
2276
2276
  function o() {
2277
2277
  var a;
2278
- return At(
2278
+ return Rt(
2279
2279
  B(e.content).map((l) => ({
2280
2280
  id: l.testVariationId,
2281
2281
  testRatio: l.testRatio
@@ -2291,7 +2291,7 @@ function Kt(e) {
2291
2291
  return t ? {
2292
2292
  ...e.content,
2293
2293
  testVariationId: (a = e.content) == null ? void 0 : a.id
2294
- } : Ie({
2294
+ } : Te({
2295
2295
  item: e.content,
2296
2296
  canTrack: q(e.canTrack)
2297
2297
  });
@@ -2303,7 +2303,7 @@ function Kt(e) {
2303
2303
  H,
2304
2304
  {
2305
2305
  id: "builderio-init-variants-fns",
2306
- scriptStr: Rt(),
2306
+ scriptStr: Et(),
2307
2307
  nonce: e.nonce || ""
2308
2308
  }
2309
2309
  ),
@@ -2312,7 +2312,7 @@ function Kt(e) {
2312
2312
  {
2313
2313
  id: "builderio-init-personalization-variants-fns",
2314
2314
  nonce: e.nonce || "",
2315
- scriptStr: Oe()
2315
+ scriptStr: qe()
2316
2316
  }
2317
2317
  ) : null
2318
2318
  ] }) : null,
@@ -2389,18 +2389,18 @@ function Kt(e) {
2389
2389
  )
2390
2390
  ] });
2391
2391
  }
2392
- const an = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2392
+ const nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2393
2393
  __proto__: null,
2394
- default: Kt
2394
+ default: Mt
2395
2395
  }, Symbol.toStringTag, { value: "Module" }));
2396
2396
  export {
2397
- Be as DEFAULT_INDEX,
2397
+ Ue as DEFAULT_INDEX,
2398
2398
  H as InlinedScript,
2399
- qe as SDKS_REQUIRING_RESET_APPROACH,
2400
- Zt as checkShouldRenderVariants,
2401
- an as contentVariants,
2402
- Xt as filterWithCustomTargeting,
2403
- en as getBlocksToRender,
2404
- tn as getPersonalizationScript,
2405
- nn as getUpdateVisibilityStylesScript
2399
+ He as SDKS_REQUIRING_RESET_APPROACH,
2400
+ Xt as checkShouldRenderVariants,
2401
+ nn as contentVariants,
2402
+ Gt as filterWithCustomTargeting,
2403
+ Zt as getBlocksToRender,
2404
+ en as getPersonalizationScript,
2405
+ tn as getUpdateVisibilityStylesScript
2406
2406
  };