@builder.io/sdk-vue 4.0.1 → 4.0.3

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 (61) hide show
  1. package/lib/browser/{awaiter-wbBKeVzr.cjs → awaiter-5OhN8ApS.cjs} +1 -1
  2. package/lib/browser/{awaiter-nAWFNqrx.js → awaiter-T635T5iI.js} +1 -1
  3. package/lib/browser/{block-styles-M0XEa30c.js → block-styles-Mji_WN2o.js} +1 -1
  4. package/lib/browser/{block-styles-qBk6SyHU.cjs → block-styles-pUFf51sH.cjs} +1 -1
  5. package/lib/browser/{block-wrapper-ZjrIzk0G.cjs → block-wrapper-soT7ooMT.cjs} +1 -1
  6. package/lib/browser/{block-wrapper-f0180-Dt.js → block-wrapper-yV8JarXL.js} +3 -3
  7. package/lib/browser/blocks/custom-code/custom-code.vue.d.ts +7 -1
  8. package/lib/browser/{component-ref-VMpgtIT8.cjs → component-ref-ShKo3K9p.cjs} +1 -1
  9. package/lib/browser/{component-ref-tnogP_WI.js → component-ref-ys0ueCcY.js} +3 -3
  10. package/lib/browser/components/content/components/enable-editor.vue.d.ts +1 -0
  11. package/lib/browser/components/content-variants/inlined-fns.d.ts +1 -1
  12. package/lib/browser/constants/sdk-version.d.ts +1 -1
  13. package/lib/browser/{get-block-properties-VbdeRBq9.js → get-block-properties-M5SrUo_n.js} +1 -1
  14. package/lib/browser/{get-block-properties-kgoNqJkv.cjs → get-block-properties-PK3c3XD7.cjs} +1 -1
  15. package/lib/browser/{index-es6BsrIz.cjs → index-WB_-12va.cjs} +26 -23
  16. package/lib/browser/{index-hYyYGFKw.js → index-zpEHIUKh.js} +264 -230
  17. package/lib/browser/index.cjs +1 -1
  18. package/lib/browser/index.mjs +1 -1
  19. package/lib/browser/{repeated-block-wzdH4zkn.cjs → repeated-block-TFr4BLwy.cjs} +1 -1
  20. package/lib/browser/{repeated-block-jvm1EXAe.js → repeated-block-mSIesjGs.js} +2 -2
  21. package/lib/edge/{awaiter-aRh0Pj94.cjs → awaiter-aKsQoHtg.cjs} +1 -1
  22. package/lib/edge/{awaiter-hkMTEA9V.js → awaiter-tQgudeqC.js} +1 -1
  23. package/lib/edge/{block-styles-AI5sotc1.cjs → block-styles-ZHZgmvQd.cjs} +1 -1
  24. package/lib/edge/{block-styles-LPJy6dQs.js → block-styles-s3hCMtmI.js} +1 -1
  25. package/lib/{node/block-wrapper-JeY6E7Bj.cjs → edge/block-wrapper-K7pkIgyg.cjs} +1 -1
  26. package/lib/edge/{block-wrapper-JuWdKgUU.js → block-wrapper-uHIPKxTk.js} +3 -3
  27. package/lib/edge/blocks/custom-code/custom-code.vue.d.ts +7 -1
  28. package/lib/edge/{component-ref-P4gIixq8.js → component-ref-G9jxu6eG.js} +3 -3
  29. package/lib/edge/{component-ref-puTtsezh.cjs → component-ref-jnRNUQoG.cjs} +1 -1
  30. package/lib/edge/components/content/components/enable-editor.vue.d.ts +1 -0
  31. package/lib/edge/components/content-variants/inlined-fns.d.ts +1 -1
  32. package/lib/edge/constants/sdk-version.d.ts +1 -1
  33. package/lib/edge/{get-block-properties-AMnn5X6R.js → get-block-properties-1P58e_jB.js} +1 -1
  34. package/lib/edge/{get-block-properties-5osCAaC3.cjs → get-block-properties-IhQE3dQp.cjs} +1 -1
  35. package/lib/edge/{index-HO4jmmvI.js → index-DDqUrQvk.js} +493 -459
  36. package/lib/edge/{index-S_6GpGNI.cjs → index-h6rwtSlC.cjs} +26 -23
  37. package/lib/edge/index.cjs +1 -1
  38. package/lib/edge/index.mjs +1 -1
  39. package/lib/edge/{repeated-block-IFYfMg17.js → repeated-block-Ga7BjpSB.js} +2 -2
  40. package/lib/{node/repeated-block-7PPwMKZ7.cjs → edge/repeated-block-Q0hp4buX.cjs} +1 -1
  41. package/lib/node/{awaiter-Z7o9s6gq.js → awaiter-sgWllbNA.js} +1 -1
  42. package/lib/node/{awaiter-t8znoZtH.cjs → awaiter-zEHHCWcp.cjs} +1 -1
  43. package/lib/node/{block-styles-shrS5yAc.js → block-styles-gvP8QXL9.js} +1 -1
  44. package/lib/node/{block-styles-cgq-AQI-.cjs → block-styles-wNanyMrr.cjs} +1 -1
  45. package/lib/{edge/block-wrapper-V2J7FjnE.cjs → node/block-wrapper-4yfVr0a3.cjs} +1 -1
  46. package/lib/node/{block-wrapper-fIn5jGPq.js → block-wrapper-tAtRAAzI.js} +3 -3
  47. package/lib/node/blocks/custom-code/custom-code.vue.d.ts +7 -1
  48. package/lib/node/{component-ref-FgrBreGf.cjs → component-ref-JSgpIHbc.cjs} +1 -1
  49. package/lib/node/{component-ref-M4gAxFd5.js → component-ref-S9nt10e2.js} +3 -3
  50. package/lib/node/components/content/components/enable-editor.vue.d.ts +1 -0
  51. package/lib/node/components/content-variants/inlined-fns.d.ts +1 -1
  52. package/lib/node/constants/sdk-version.d.ts +1 -1
  53. package/lib/node/{get-block-properties-VbZkXgcG.cjs → get-block-properties-9kc_Rs8t.cjs} +1 -1
  54. package/lib/node/{get-block-properties-AfiBthZ9.js → get-block-properties-mPFnCMMe.js} +1 -1
  55. package/lib/node/{index-hyrTHgHn.cjs → index-Sccx8oZR.cjs} +19 -16
  56. package/lib/node/{index-mcalyz7B.js → index-fDG3wEOU.js} +293 -259
  57. package/lib/node/index.cjs +1 -1
  58. package/lib/node/index.mjs +1 -1
  59. package/lib/{edge/repeated-block-KY5UOI15.cjs → node/repeated-block-Z_oZFejE.cjs} +1 -1
  60. package/lib/node/{repeated-block-xkdGhBrs.js → repeated-block-ks0MXAV1.js} +2 -2
  61. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { defineComponent as b, openBlock as c, createElementBlock as p, Fragment as I, createBlock as y, resolveDynamicComponent as z, mergeProps as C, toHandlers as A, withCtx as N, renderSlot as B, resolveComponent as k, createTextVNode as yt, toDisplayString as te, defineAsyncComponent as K, createVNode as R, renderList as W, createCommentVNode as S, h as Ne, createElementVNode as M, normalizeStyle as F, normalizeClass as J, markRaw as kt } from "vue";
2
- import { T as E, g as vt, f as St, i as $, s as Ct, r as Tt, p as wt, a as It, l as x, b as Oe, c as pe, d as $t, n as Fe, e as D, h as P, j as Rt } from "./should-force-browser-runtime-in-node-ikxWrCvn.js";
1
+ import { defineComponent as b, openBlock as c, createElementBlock as p, Fragment as I, createBlock as y, resolveDynamicComponent as z, mergeProps as C, toHandlers as x, withCtx as N, renderSlot as A, resolveComponent as k, createTextVNode as yt, toDisplayString as te, defineAsyncComponent as K, createVNode as P, renderList as W, createCommentVNode as S, h as Ne, createElementVNode as H, normalizeStyle as F, normalizeClass as J, markRaw as kt } from "vue";
2
+ import { T as R, g as vt, f as St, i as $, s as Ct, r as Tt, p as wt, a as It, l as B, b as Oe, c as me, d as $t, n as Fe, e as D, h as E, j as Rt } from "./should-force-browser-runtime-in-node-ikxWrCvn.js";
3
3
  const Et = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Pt = (e) => typeof e == "string" && Et.has(e.toLowerCase());
4
4
  function V(e = {}, t, n) {
5
5
  const o = {};
@@ -24,25 +24,25 @@ const Bt = b({
24
24
  return n;
25
25
  };
26
26
  function At(e, t, n, o, r, s) {
27
- return e.isEmptyElement(e.TagName) ? (c(), y(z(e.TagName), C({ key: 1 }, e.attributes, A(e.actionAttributes)), null, 16)) : (c(), p(I, { key: 0 }, [
28
- typeof e.TagName == "string" ? (c(), y(z(e.TagName), C({ key: 0 }, e.attributes, A(e.actionAttributes)), {
27
+ return e.isEmptyElement(e.TagName) ? (c(), y(z(e.TagName), C({ key: 1 }, e.attributes, x(e.actionAttributes)), null, 16)) : (c(), p(I, { key: 0 }, [
28
+ typeof e.TagName == "string" ? (c(), y(z(e.TagName), C({ key: 0 }, e.attributes, x(e.actionAttributes)), {
29
29
  default: N(() => [
30
- B(e.$slots, "default")
30
+ A(e.$slots, "default")
31
31
  ]),
32
32
  _: 3
33
- }, 16)) : (c(), y(z(e.TagName), C({ key: 1 }, e.attributes, A(e.actionAttributes)), {
33
+ }, 16)) : (c(), y(z(e.TagName), C({ key: 1 }, e.attributes, x(e.actionAttributes)), {
34
34
  default: N(() => [
35
- B(e.$slots, "default")
35
+ A(e.$slots, "default")
36
36
  ]),
37
37
  _: 3
38
38
  }, 16))
39
39
  ], 64));
40
40
  }
41
- const me = /* @__PURE__ */ g(Bt, [["render", At]]), qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41
+ const he = /* @__PURE__ */ g(Bt, [["render", At]]), Js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42
42
  __proto__: null,
43
- default: me
43
+ default: he
44
44
  }, Symbol.toStringTag, { value: "Module" })), Z = () => {
45
- switch (E) {
45
+ switch (R) {
46
46
  case "react":
47
47
  case "reactNative":
48
48
  case "rsc":
@@ -56,7 +56,7 @@ const me = /* @__PURE__ */ g(Bt, [["render", At]]), qs = /* @__PURE__ */ Object.
56
56
  }
57
57
  }, xt = b({
58
58
  name: "builder-button",
59
- components: { DynamicRenderer: me },
59
+ components: { DynamicRenderer: he },
60
60
  props: [
61
61
  "attributes",
62
62
  "link",
@@ -96,7 +96,7 @@ function Vt(e, t, n, o, r, s) {
96
96
  _: 1
97
97
  }, 8, ["attributes", "TagName", "actionAttributes"]);
98
98
  }
99
- const Wt = /* @__PURE__ */ g(xt, [["render", Vt]]), Nt = Symbol(), le = {
99
+ const Wt = /* @__PURE__ */ g(xt, [["render", Vt]]), Nt = Symbol(), ce = {
100
100
  Builder: {
101
101
  content: null,
102
102
  context: {},
@@ -142,7 +142,7 @@ const Wt = /* @__PURE__ */ g(xt, [["render", Vt]]), Nt = Symbol(), le = {
142
142
  return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
143
143
  }, Ut = (e) => $() || Ct({
144
144
  shouldLogWarning: !0
145
- }) ? Ft(e) : Tt(e), Dt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Lt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Mt = (e) => {
145
+ }) ? Ft(e) : Tt(e), Dt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Lt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Ht = (e) => {
146
146
  var t, n, o, r, s, i;
147
147
  return ((o = (n = (t = Dt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((i = (s = (r = Lt.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : s.getPath) == null ? void 0 : i.slice(1));
148
148
  };
@@ -157,7 +157,7 @@ function Y({
157
157
  }) {
158
158
  if (e.trim() === "")
159
159
  return;
160
- const l = Mt(e.trim());
160
+ const l = Ht(e.trim());
161
161
  if (l)
162
162
  return De({
163
163
  ...o,
@@ -177,13 +177,13 @@ function Y({
177
177
  try {
178
178
  return Ut(a);
179
179
  } catch (u) {
180
- x.error("Failed code evaluation: " + u.message, {
180
+ B.error("Failed code evaluation: " + u.message, {
181
181
  code: e
182
182
  });
183
183
  return;
184
184
  }
185
185
  }
186
- function Ht(e, t) {
186
+ function Mt(e, t) {
187
187
  var n;
188
188
  return {
189
189
  ...(n = e.component) == null ? void 0 : n.options,
@@ -251,21 +251,21 @@ function Jt(e, t) {
251
251
  var n, o;
252
252
  return (n = e.component) != null && n.options && zt((o = e.component) == null ? void 0 : o.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = qt(e.component.options, t ?? "Default")), e;
253
253
  }
254
- function ce(e) {
254
+ function de(e) {
255
255
  if (e === null || typeof e != "object")
256
256
  return e;
257
257
  if (Array.isArray(e))
258
- return e.map((n) => ce(n));
258
+ return e.map((n) => de(n));
259
259
  if (e["@type"] === "@builder.io/sdk:Element")
260
260
  return e;
261
261
  const t = {};
262
262
  for (const n in e)
263
- n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ce(e[n]));
263
+ n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = de(e[n]));
264
264
  return t;
265
265
  }
266
- const Gt = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), Yt = (e) => {
266
+ const Gt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), Yt = (e) => {
267
267
  if (Gt) {
268
- const t = pe(e);
268
+ const t = me(e);
269
269
  return {
270
270
  ...t,
271
271
  properties: {
@@ -276,7 +276,7 @@ const Gt = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), Yt = (e) =
276
276
  }
277
277
  };
278
278
  } else {
279
- const t = ce(Kt(e, "children", "meta"));
279
+ const t = de(Kt(e, "children", "meta"));
280
280
  return {
281
281
  ...t,
282
282
  properties: {
@@ -327,7 +327,7 @@ function Qt({
327
327
  context: t
328
328
  });
329
329
  }
330
- function Me(e) {
330
+ function He(e) {
331
331
  const t = e || ($() ? window.location.search : void 0);
332
332
  return t ? $t(t).indexOf("builder.preview=") !== -1 : !1;
333
333
  }
@@ -361,7 +361,7 @@ function en(e, t) {
361
361
  }
362
362
  }
363
363
  const $e = {};
364
- function Js(e) {
364
+ function Gs(e) {
365
365
  if ($()) {
366
366
  Object.assign($e, e);
367
367
  const t = {
@@ -371,7 +371,7 @@ function Js(e) {
371
371
  parent.postMessage(t, "*");
372
372
  }
373
373
  }
374
- const Re = "builder.", tn = "options.", He = (e) => {
374
+ const Re = "builder.", tn = "options.", Me = (e) => {
375
375
  if (!e)
376
376
  return {};
377
377
  const t = Fe(e), n = {};
@@ -385,9 +385,9 @@ const Re = "builder.", tn = "options.", He = (e) => {
385
385
  if (!$())
386
386
  return {};
387
387
  const e = new URLSearchParams(window.location.search);
388
- return He(e);
389
- }, je = "4.0.1", Ke = () => ({
390
- "X-Builder-SDK": E,
388
+ return Me(e);
389
+ }, je = "4.0.3", Ke = () => ({
390
+ "X-Builder-SDK": R,
391
391
  "X-Builder-SDK-GEN": "2",
392
392
  "X-Builder-SDK-Version": je
393
393
  }), on = (e) => {
@@ -395,7 +395,7 @@ const Re = "builder.", tn = "options.", He = (e) => {
395
395
  return e;
396
396
  const t = e.split(".");
397
397
  return t.length > 2 ? t.slice(1).join(".") : e;
398
- }, he = ({
398
+ }, ne = ({
399
399
  name: e,
400
400
  canTrack: t
401
401
  }) => {
@@ -403,10 +403,10 @@ const Re = "builder.", tn = "options.", He = (e) => {
403
403
  try {
404
404
  return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
405
405
  } catch (o) {
406
- x.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
406
+ B.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
407
407
  return;
408
408
  }
409
- }, ze = async (e) => he(e), rn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(D).join("; "), sn = [["secure", ""], ["SameSite", "None"]], an = ({
409
+ }, ze = async (e) => ne(e), rn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(D).join("; "), sn = [["secure", ""], ["SameSite", "None"]], an = ({
410
410
  name: e,
411
411
  value: t,
412
412
  expires: n
@@ -429,7 +429,7 @@ const Re = "builder.", tn = "options.", He = (e) => {
429
429
  });
430
430
  document.cookie = r;
431
431
  } catch (r) {
432
- x.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
432
+ B.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
433
433
  }
434
434
  };
435
435
  function ln() {
@@ -516,7 +516,7 @@ const Je = "builderSessionId", cn = async ({
516
516
  });
517
517
  function be(e) {
518
518
  var t;
519
- typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && x.log(e);
519
+ typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && B.log(e);
520
520
  }
521
521
  const gn = async ({
522
522
  canTrack: e
@@ -556,15 +556,15 @@ const gn = async ({
556
556
  ownerId: n
557
557
  }
558
558
  });
559
- async function de({
559
+ async function ue({
560
560
  apiHost: e,
561
561
  ...t
562
562
  }) {
563
563
  if (!t.apiKey) {
564
- x.error("Missing API key for track call. Please provide your API key.");
564
+ B.error("Missing API key for track call. Please provide your API key.");
565
565
  return;
566
566
  }
567
- if (!t.canTrack || P() || !($() || E === "reactNative"))
567
+ if (!t.canTrack || E() || !($() || R === "reactNative"))
568
568
  return;
569
569
  const o = `${e || "https://cdn.builder.io"}/api/v1/track`;
570
570
  return be(o), fetch(o, {
@@ -581,7 +581,7 @@ async function de({
581
581
  console.error("Failed to track: ", r);
582
582
  });
583
583
  }
584
- const Gs = (e) => de({
584
+ const Ys = (e) => ue({
585
585
  ...e,
586
586
  canTrack: !0
587
587
  }), kn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
@@ -620,7 +620,7 @@ const Qe = (e) => {
620
620
  Ee || (Ee = !0, $() && ((t = window.parent) == null || t.postMessage({
621
621
  type: "builder.sdkInfo",
622
622
  data: {
623
- target: E,
623
+ target: R,
624
624
  version: je,
625
625
  supportsPatchUpdates: !1,
626
626
  // Supports builder-model="..." attribute which is needed to
@@ -711,14 +711,14 @@ const Qe = (e) => {
711
711
  break;
712
712
  }
713
713
  }
714
- }, Ys = ({
714
+ }, Xs = ({
715
715
  model: e,
716
716
  apiKey: t,
717
717
  callback: n,
718
718
  trustedHosts: o
719
719
  }) => {
720
720
  if (!$)
721
- return x.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
721
+ return B.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
722
722
  };
723
723
  Qe({
724
724
  modelName: e,
@@ -747,7 +747,7 @@ const Qe = (e) => {
747
747
  canTrack: !0
748
748
  }), Tn = ({
749
749
  contentId: e
750
- }) => he({
750
+ }) => ne({
751
751
  name: ge(e),
752
752
  canTrack: !0
753
753
  }), wn = ({
@@ -776,7 +776,7 @@ const Qe = (e) => {
776
776
  contentId: e.id,
777
777
  value: t
778
778
  }).catch((n) => {
779
- x.error("could not store A/B test variation: ", n);
779
+ B.error("could not store A/B test variation: ", n);
780
780
  }), t;
781
781
  }, tt = ({
782
782
  item: e,
@@ -853,7 +853,7 @@ function En() {
853
853
  }), t.forEach((r) => r(o));
854
854
  },
855
855
  getUserAttributes() {
856
- return $() ? JSON.parse(he({
856
+ return $() ? JSON.parse(ne({
857
857
  name: Pe,
858
858
  canTrack: e
859
859
  }) || "{}") : {};
@@ -868,7 +868,7 @@ function En() {
868
868
  }
869
869
  };
870
870
  }
871
- const nt = En(), Xs = (e) => {
871
+ const nt = En(), Qs = (e) => {
872
872
  nt.setUserAttributes(e);
873
873
  }, G = (e) => {
874
874
  const t = D(e) ? e : !0;
@@ -885,12 +885,12 @@ function Bn() {
885
885
  return e;
886
886
  }
887
887
  const An = Bn();
888
- function ue(e, t = null, n = ".") {
888
+ function pe(e, t = null, n = ".") {
889
889
  return Object.keys(e).reduce((o, r) => {
890
890
  const s = e[r], i = [t, r].filter(Boolean).join(n);
891
891
  return [typeof s == "object", s !== null, !(Array.isArray(s) && s.length === 0)].every(Boolean) ? {
892
892
  ...o,
893
- ...ue(s, i, n)
893
+ ...pe(s, i, n)
894
894
  } : {
895
895
  ...o,
896
896
  [i]: s
@@ -941,13 +941,13 @@ const Vn = "v3", Be = (e) => typeof e == "number" && !isNaN(e) && e >= 0, ye = (
941
941
  throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
942
942
  const bt = t !== 1, gt = U || "https://cdn.builder.io", w = new URL(`${gt}/api/${a}/content/${r}`);
943
943
  w.searchParams.set("apiKey", s), w.searchParams.set("limit", String(t)), w.searchParams.set("noTraverse", String(bt)), w.searchParams.set("includeRefs", String(!0));
944
- const ne = l || (n == null ? void 0 : n.locale);
944
+ const oe = l || (n == null ? void 0 : n.locale);
945
945
  let L = n || {};
946
- if (ne && (w.searchParams.set("locale", ne), L = {
947
- locale: ne,
946
+ if (oe && (w.searchParams.set("locale", oe), L = {
947
+ locale: oe,
948
948
  ...L
949
949
  }), i && w.searchParams.set("enrich", String(i)), w.searchParams.set("omit", h || "meta.componentsUsed"), u && w.searchParams.set("fields", u), Number.isFinite(m) && m > -1 && w.searchParams.set("offset", String(Math.floor(m))), typeof T == "boolean" && w.searchParams.set("includeUnpublished", String(T)), d && Be(d) && w.searchParams.set("cacheSeconds", String(d)), f && Be(f) && w.searchParams.set("staleCacheSeconds", String(f)), v) {
950
- const O = ue({
950
+ const O = pe({
951
951
  sort: v
952
952
  });
953
953
  for (const j in O)
@@ -961,7 +961,7 @@ const Vn = "v3", Be = (e) => typeof e == "number" && !isNaN(e) && e >= 0, ye = (
961
961
  ...L,
962
962
  ...Nn(Te)
963
963
  };
964
- const we = ue(Te);
964
+ const we = pe(Te);
965
965
  for (const O in we)
966
966
  w.searchParams.set(O, String(we[O]));
967
967
  if (Object.keys(L).length > 0 && w.searchParams.set("userAttributes", JSON.stringify(L)), o) {
@@ -1006,7 +1006,7 @@ const Fn = async (e) => {
1006
1006
  return await (await n(t.href, o)).json();
1007
1007
  }, Un = async (e, t, n = ye(e)) => {
1008
1008
  const o = G(e.canTrack);
1009
- if (n.search.includes("preview="), !o || !($() || E === "reactNative"))
1009
+ if (n.search.includes("preview="), !o || !($() || R === "reactNative"))
1010
1010
  return t.results;
1011
1011
  try {
1012
1012
  const r = [];
@@ -1017,21 +1017,21 @@ const Fn = async (e) => {
1017
1017
  }));
1018
1018
  t.results = r;
1019
1019
  } catch (r) {
1020
- x.error("Could not process A/B tests. ", r);
1020
+ B.error("Could not process A/B tests. ", r);
1021
1021
  }
1022
1022
  return t.results;
1023
1023
  };
1024
1024
  async function Dn(e) {
1025
1025
  const t = ye(e), n = await Fn(e);
1026
1026
  if (!On(n))
1027
- throw x.error("Error fetching data. ", {
1027
+ throw B.error("Error fetching data. ", {
1028
1028
  url: t,
1029
1029
  content: n,
1030
1030
  options: e
1031
1031
  }), n;
1032
1032
  return Un(e, n);
1033
1033
  }
1034
- const Qs = async (e) => {
1034
+ const Zs = async (e) => {
1035
1035
  var o, r, s;
1036
1036
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
1037
1037
  ...e,
@@ -1043,7 +1043,7 @@ const Qs = async (e) => {
1043
1043
  urlPath: t
1044
1044
  } : {}
1045
1045
  },
1046
- options: He(e.searchParams || ((s = e.url) == null ? void 0 : s.searchParams) || e.options)
1046
+ options: Me(e.searchParams || ((s = e.url) == null ? void 0 : s.searchParams) || e.options)
1047
1047
  };
1048
1048
  return {
1049
1049
  apiKey: n.apiKey,
@@ -1073,7 +1073,7 @@ function q(e, ...t) {
1073
1073
  }
1074
1074
  return n;
1075
1075
  }
1076
- function Mn(e) {
1076
+ function Hn(e) {
1077
1077
  for (const t of e)
1078
1078
  switch (t.trigger) {
1079
1079
  case "pageLoad":
@@ -1088,12 +1088,12 @@ function rt(e) {
1088
1088
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
1089
1089
  }
1090
1090
  function st(e, t) {
1091
- const n = Hn(e), o = getComputedStyle(t), r = e.steps[0].styles, s = e.steps[e.steps.length - 1].styles, i = [r, s];
1091
+ const n = Mn(e), o = getComputedStyle(t), r = e.steps[0].styles, s = e.steps[e.steps.length - 1].styles, i = [r, s];
1092
1092
  for (const l of i)
1093
1093
  for (const a of n)
1094
1094
  a in l || (l[a] = o[a]);
1095
1095
  }
1096
- function Hn(e) {
1096
+ function Mn(e) {
1097
1097
  const t = [];
1098
1098
  for (const n of e.steps)
1099
1099
  for (const o in n.styles)
@@ -1153,7 +1153,7 @@ const at = (e) => Object.entries(e).map(([n, o]) => {
1153
1153
  if (typeof o == "string")
1154
1154
  return `${ve(n)}: ${o};`;
1155
1155
  }).filter(D), Kn = (e) => at(e).join(`
1156
- `), Zs = ({
1156
+ `), _s = ({
1157
1157
  mediaQuery: e,
1158
1158
  className: t,
1159
1159
  styles: n
@@ -1170,7 +1170,7 @@ function zn({
1170
1170
  }) {
1171
1171
  return e;
1172
1172
  }
1173
- const _s = ({
1173
+ const ei = ({
1174
1174
  block: e,
1175
1175
  context: t
1176
1176
  }) => lt(zn({
@@ -1179,7 +1179,7 @@ const _s = ({
1179
1179
  block: e
1180
1180
  }));
1181
1181
  function lt(e) {
1182
- switch (E) {
1182
+ switch (R) {
1183
1183
  case "svelte":
1184
1184
  case "vue":
1185
1185
  case "solid":
@@ -1267,22 +1267,22 @@ const ct = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1267
1267
  "Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
1268
1268
  e
1269
1269
  ), e;
1270
- }), _n = () => import("./block-styles-shrS5yAc.js").then((e) => e.default).catch((e) => {
1270
+ }), _n = () => import("./block-styles-gvP8QXL9.js").then((e) => e.default).catch((e) => {
1271
1271
  throw console.error(
1272
1272
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
1273
1273
  e
1274
1274
  ), e;
1275
- }), eo = () => import("./block-wrapper-fIn5jGPq.js").then((e) => e.default).catch((e) => {
1275
+ }), eo = () => import("./block-wrapper-tAtRAAzI.js").then((e) => e.default).catch((e) => {
1276
1276
  throw console.error(
1277
1277
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
1278
1278
  e
1279
1279
  ), e;
1280
- }), to = () => import("./component-ref-M4gAxFd5.js").then((e) => e.default).catch((e) => {
1280
+ }), to = () => import("./component-ref-S9nt10e2.js").then((e) => e.default).catch((e) => {
1281
1281
  throw console.error(
1282
1282
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
1283
1283
  e
1284
1284
  ), e;
1285
- }), no = () => import("./repeated-block-xkdGhBrs.js").then((e) => e.default).catch((e) => {
1285
+ }), no = () => import("./repeated-block-ks0MXAV1.js").then((e) => e.default).catch((e) => {
1286
1286
  throw console.error(
1287
1287
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
1288
1288
  e
@@ -1307,7 +1307,7 @@ const ct = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1307
1307
  },
1308
1308
  mounted() {
1309
1309
  const e = this.processedBlock.id, t = this.processedBlock.animations;
1310
- t && e && Mn(
1310
+ t && e && Hn(
1311
1311
  t.map((n) => ({
1312
1312
  ...n,
1313
1313
  elementId: e
@@ -1361,7 +1361,7 @@ const ct = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1361
1361
  blockChildren: this.processedBlock.children ?? [],
1362
1362
  componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
1363
1363
  componentOptions: {
1364
- ...Ht(this.processedBlock, this.context),
1364
+ ...Mt(this.processedBlock, this.context),
1365
1365
  ...Xn(this.blockComponent, this.processedBlock),
1366
1366
  ...Qn(this.blockComponent, this.context),
1367
1367
  ...Gn(this.blockComponent, this.linkComponent),
@@ -1376,7 +1376,7 @@ const ct = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1376
1376
  registeredComponents: this.registeredComponents,
1377
1377
  builderBlock: this.processedBlock,
1378
1378
  includeBlockProps: ((t = this.blockComponent) == null ? void 0 : t.noWrap) === !0,
1379
- isInteractive: !((n = this.blockComponent) != null && n.isRSC && E === "rsc")
1379
+ isInteractive: !((n = this.blockComponent) != null && n.isRSC && R === "rsc")
1380
1380
  };
1381
1381
  }
1382
1382
  }
@@ -1385,7 +1385,7 @@ function ro(e, t, n, o, r, s) {
1385
1385
  var m;
1386
1386
  const i = k("BlockStyles"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), h = k("RepeatedBlock");
1387
1387
  return e.canShowBlock ? (c(), p(I, { key: 0 }, [
1388
- R(i, {
1388
+ P(i, {
1389
1389
  block: e.processedBlock,
1390
1390
  context: e.context
1391
1391
  }, null, 8, ["block", "context"]),
@@ -1422,7 +1422,7 @@ function ro(e, t, n, o, r, s) {
1422
1422
  context: e.context
1423
1423
  }, {
1424
1424
  default: N(() => [
1425
- R(l, {
1425
+ P(l, {
1426
1426
  componentRef: e.componentRefProps.componentRef,
1427
1427
  componentOptions: e.componentRefProps.componentOptions,
1428
1428
  blockChildren: e.componentRefProps.blockChildren,
@@ -1446,7 +1446,7 @@ function ro(e, t, n, o, r, s) {
1446
1446
  ], 64))
1447
1447
  ], 64)) : S("", !0);
1448
1448
  }
1449
- const dt = /* @__PURE__ */ g(oo, [["render", ro]]), ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1449
+ const dt = /* @__PURE__ */ g(oo, [["render", ro]]), ti = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1450
1450
  __proto__: null,
1451
1451
  default: dt
1452
1452
  }, Symbol.toStringTag, { value: "Module" })), so = b({
@@ -1481,7 +1481,7 @@ const dt = /* @__PURE__ */ g(oo, [["render", ro]]), ei = /* @__PURE__ */ Object.
1481
1481
  methods: {
1482
1482
  onClick() {
1483
1483
  var e, t;
1484
- P() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1484
+ E() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1485
1485
  {
1486
1486
  type: "builder.clickEmptyBlocks",
1487
1487
  data: {
@@ -1494,7 +1494,7 @@ const dt = /* @__PURE__ */ g(oo, [["render", ro]]), ei = /* @__PURE__ */ Object.
1494
1494
  },
1495
1495
  onMouseEnter() {
1496
1496
  var e, t;
1497
- P() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1497
+ E() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1498
1498
  {
1499
1499
  type: "builder.hoverEmptyBlocks",
1500
1500
  data: {
@@ -1519,7 +1519,7 @@ function io(e, t, n, o, r, s) {
1519
1519
  onKeyPress: (i) => e.onClick()
1520
1520
  }, { ...e.BlocksWrapperProps }), {
1521
1521
  default: N(() => [
1522
- B(e.$slots, "default", {}, void 0, !0)
1522
+ A(e.$slots, "default", {}, void 0, !0)
1523
1523
  ]),
1524
1524
  _: 3
1525
1525
  }, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
@@ -1538,7 +1538,7 @@ const ao = /* @__PURE__ */ g(so, [["render", io], ["__scopeId", "data-v-4755f88c
1538
1538
  "registeredComponents"
1539
1539
  ],
1540
1540
  inject: {
1541
- builderContext: le.key,
1541
+ builderContext: ce.key,
1542
1542
  componentsContext: Ue.key
1543
1543
  }
1544
1544
  });
@@ -1569,13 +1569,13 @@ function co(e, t, n, o, r, s) {
1569
1569
  _: 1
1570
1570
  }, 8, ["blocks", "parent", "path", "styleProp", "classNameProp", "BlocksWrapper", "BlocksWrapperProps"]);
1571
1571
  }
1572
- const H = /* @__PURE__ */ g(lo, [["render", co]]), uo = b({
1572
+ const M = /* @__PURE__ */ g(lo, [["render", co]]), uo = b({
1573
1573
  name: "dynamic-div",
1574
1574
  props: []
1575
1575
  });
1576
1576
  function po(e, t, n, o, r, s) {
1577
1577
  return c(), p("div", null, [
1578
- B(e.$slots, "default")
1578
+ A(e.$slots, "default")
1579
1579
  ]);
1580
1580
  }
1581
1581
  const X = /* @__PURE__ */ g(uo, [["render", po]]), mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -1612,8 +1612,8 @@ const X = /* @__PURE__ */ g(uo, [["render", po]]), mo = /* @__PURE__ */ Object.f
1612
1612
  default: 991,
1613
1613
  max: 1200
1614
1614
  }
1615
- }, ti = (e, t = ut) => `@media (max-width: ${t[e].max}px)`, ho = (e) => {
1616
- const t = pe(ut);
1615
+ }, ni = (e, t = ut) => `@media (max-width: ${t[e].max}px)`, ho = (e) => {
1616
+ const t = me(ut);
1617
1617
  if (!e)
1618
1618
  return t;
1619
1619
  const {
@@ -1654,8 +1654,8 @@ const X = /* @__PURE__ */ g(uo, [["render", po]]), mo = /* @__PURE__ */ Object.f
1654
1654
  name: "builder-columns",
1655
1655
  components: {
1656
1656
  InlinedStyles: Se,
1657
- DynamicRenderer: me,
1658
- Blocks: H,
1657
+ DynamicRenderer: he,
1658
+ Blocks: M,
1659
1659
  DynamicDiv: X
1660
1660
  },
1661
1661
  props: [
@@ -1669,7 +1669,7 @@ const X = /* @__PURE__ */ g(uo, [["render", po]]), mo = /* @__PURE__ */ Object.f
1669
1669
  "builderComponents"
1670
1670
  ],
1671
1671
  data() {
1672
- return { TARGET: E, getColumnsClass: fo };
1672
+ return { TARGET: R, getColumnsClass: fo };
1673
1673
  },
1674
1674
  computed: {
1675
1675
  gutterSize() {
@@ -1811,7 +1811,7 @@ function go(e, t, n, o, r, s) {
1811
1811
  attributes: e.getAttributes(h, m)
1812
1812
  }, {
1813
1813
  default: N(() => [
1814
- R(l, {
1814
+ P(l, {
1815
1815
  path: `columns.${m}.blocks`,
1816
1816
  parent: e.builderBlock.id,
1817
1817
  context: e.builderContext,
@@ -1833,7 +1833,7 @@ const yo = /* @__PURE__ */ g(bo, [["render", go], ["__scopeId", "data-v-bdc9da04
1833
1833
  });
1834
1834
  function vo(e, t, n, o, r, s) {
1835
1835
  return c(), p("span", null, [
1836
- B(e.$slots, "default")
1836
+ A(e.$slots, "default")
1837
1837
  ]);
1838
1838
  }
1839
1839
  const So = /* @__PURE__ */ g(ko, [["render", vo]]);
@@ -1856,7 +1856,7 @@ function To(e, t) {
1856
1856
  }
1857
1857
  return null;
1858
1858
  }
1859
- function oe(e) {
1859
+ function re(e) {
1860
1860
  if (!e)
1861
1861
  return e;
1862
1862
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
@@ -1895,10 +1895,10 @@ const wo = b({
1895
1895
  if (!this.noWebp) {
1896
1896
  if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
1897
1897
  if (!this.srcset.includes(this.image.split("?")[0]))
1898
- return console.debug("Removed given srcset"), oe(t);
1898
+ return console.debug("Removed given srcset"), re(t);
1899
1899
  } else if (this.image && !this.srcset)
1900
- return oe(t);
1901
- return oe(t);
1900
+ return re(t);
1901
+ return re(t);
1902
1902
  }
1903
1903
  },
1904
1904
  webpSrcSet() {
@@ -1923,13 +1923,13 @@ const wo = b({
1923
1923
  function Eo(e, t, n, o, r, s) {
1924
1924
  var i, l, a, u, h, m;
1925
1925
  return c(), p(I, null, [
1926
- M("picture", null, [
1926
+ H("picture", null, [
1927
1927
  e.webpSrcSet ? (c(), p("source", {
1928
1928
  key: 0,
1929
1929
  type: "image/webp",
1930
1930
  srcset: e.webpSrcSet
1931
1931
  }, null, 8, Io)) : S("", !0),
1932
- M("img", {
1932
+ H("img", {
1933
1933
  loading: e.highPriority ? "eager" : "lazy",
1934
1934
  fetchpriority: e.highPriority ? "high" : "auto",
1935
1935
  alt: e.altText,
@@ -1954,9 +1954,9 @@ function Eo(e, t, n, o, r, s) {
1954
1954
  paddingTop: e.aspectRatio * 100 + "%"
1955
1955
  })
1956
1956
  }, null, 4)) : S("", !0),
1957
- (u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? B(e.$slots, "default", { key: 1 }, void 0, !0) : S("", !0),
1957
+ (u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? A(e.$slots, "default", { key: 1 }, void 0, !0) : S("", !0),
1958
1958
  !e.fitContent && ((m = (h = e.builderBlock) == null ? void 0 : h.children) != null && m.length) ? (c(), p("div", Ro, [
1959
- B(e.$slots, "default", {}, void 0, !0)
1959
+ A(e.$slots, "default", {}, void 0, !0)
1960
1960
  ])) : S("", !0)
1961
1961
  ], 64);
1962
1962
  }
@@ -1981,11 +1981,11 @@ function Ao(e, t, n, o, r, s) {
1981
1981
  marginLeft: "auto",
1982
1982
  marginRight: "auto"
1983
1983
  }
1984
- }, e.filterAttrs(e.attributes, "v-on:", !1), A(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
1985
- B(e.$slots, "default")
1984
+ }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
1985
+ A(e.$slots, "default")
1986
1986
  ], 16);
1987
1987
  }
1988
- const xo = /* @__PURE__ */ g(Bo, [["render", Ao]]), re = {
1988
+ const xo = /* @__PURE__ */ g(Bo, [["render", Ao]]), se = {
1989
1989
  "@type": "@builder.io/sdk:Element",
1990
1990
  layerName: "Accordion item title",
1991
1991
  responsiveStyles: {
@@ -2014,7 +2014,7 @@ const xo = /* @__PURE__ */ g(Bo, [["render", Ao]]), re = {
2014
2014
  }
2015
2015
  }
2016
2016
  }]
2017
- }, se = {
2017
+ }, ie = {
2018
2018
  "@type": "@builder.io/sdk:Element",
2019
2019
  layerName: "Accordion item detail",
2020
2020
  responsiveStyles: {
@@ -2062,19 +2062,19 @@ const xo = /* @__PURE__ */ g(Bo, [["render", Ao]]), re = {
2062
2062
  name: "title",
2063
2063
  type: "uiBlocks",
2064
2064
  hideFromUI: !0,
2065
- defaultValue: [re]
2065
+ defaultValue: [se]
2066
2066
  }, {
2067
2067
  name: "detail",
2068
2068
  type: "uiBlocks",
2069
2069
  hideFromUI: !0,
2070
- defaultValue: [se]
2070
+ defaultValue: [ie]
2071
2071
  }],
2072
2072
  defaultValue: [{
2073
- title: [re],
2074
- detail: [se]
2073
+ title: [se],
2074
+ detail: [ie]
2075
2075
  }, {
2076
- title: [re],
2077
- detail: [se]
2076
+ title: [se],
2077
+ detail: [ie]
2078
2078
  }],
2079
2079
  showIf: (e) => !e.get("useChildrenForItems")
2080
2080
  }, {
@@ -2111,7 +2111,7 @@ const xo = /* @__PURE__ */ g(Bo, [["render", Ao]]), re = {
2111
2111
  }
2112
2112
  }, Wo = (e) => e.toString(), No = b({
2113
2113
  name: "builder-accordion",
2114
- components: { Blocks: H },
2114
+ components: { Blocks: M },
2115
2115
  props: [
2116
2116
  "grid",
2117
2117
  "oneAtATime",
@@ -2212,7 +2212,7 @@ function Fo(e, t, n, o, r, s) {
2212
2212
  style: F(e.accordionStyles)
2213
2213
  }, [
2214
2214
  (c(!0), p(I, null, W(e.items, (l, a) => (c(), p(I, { key: a }, [
2215
- M("div", {
2215
+ H("div", {
2216
2216
  class: J(e.getAccordionTitleClassName(a)),
2217
2217
  style: F({
2218
2218
  ...e.accordionTitleStyles,
@@ -2224,7 +2224,7 @@ function Fo(e, t, n, o, r, s) {
2224
2224
  "data-index": a,
2225
2225
  onClick: async (u) => e.onClick(a)
2226
2226
  }, [
2227
- R(i, {
2227
+ P(i, {
2228
2228
  blocks: l.title,
2229
2229
  path: `items.${a}.title`,
2230
2230
  parent: e.builderBlock.id,
@@ -2238,7 +2238,7 @@ function Fo(e, t, n, o, r, s) {
2238
2238
  class: J(e.getAccordionDetailClassName(a)),
2239
2239
  style: F(e.accordionDetailStyles)
2240
2240
  }, [
2241
- R(i, {
2241
+ P(i, {
2242
2242
  blocks: l.detail,
2243
2243
  path: `items.${a}.detail`,
2244
2244
  parent: e.builderBlock.id,
@@ -2493,13 +2493,13 @@ const Uo = /* @__PURE__ */ g(No, [["render", Fo]]), Do = {
2493
2493
  builderComponents: !0,
2494
2494
  builderLinkComponent: !0
2495
2495
  }
2496
- }, Mo = {
2496
+ }, Ho = {
2497
2497
  name: "Fragment",
2498
2498
  static: !0,
2499
2499
  hidden: !0,
2500
2500
  canHaveChildren: !0,
2501
2501
  noWrap: !0
2502
- }, Ce = ["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"], Ho = ["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"], jo = {
2502
+ }, Ce = ["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"], Mo = ["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"], jo = {
2503
2503
  name: "Image",
2504
2504
  static: !0,
2505
2505
  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",
@@ -2675,7 +2675,7 @@ const Uo = /* @__PURE__ */ g(No, [["render", Fo]]), Do = {
2675
2675
  }
2676
2676
  }, qo = b({
2677
2677
  name: "builder-slot",
2678
- components: { Blocks: H },
2678
+ components: { Blocks: M },
2679
2679
  props: ["builderContext", "name", "builderComponents"]
2680
2680
  });
2681
2681
  function Jo(e, t, n, o, r, s) {
@@ -2689,7 +2689,7 @@ function Jo(e, t, n, o, r, s) {
2689
2689
  "builder-slot": e.name
2690
2690
  }
2691
2691
  ), [
2692
- R(i, {
2692
+ P(i, {
2693
2693
  parent: (a = e.builderContext.context) == null ? void 0 : a.symbolId,
2694
2694
  path: `symbol.data.${e.name}`,
2695
2695
  context: e.builderContext,
@@ -2737,7 +2737,7 @@ const Go = /* @__PURE__ */ g(qo, [["render", Jo]]), Yo = {
2737
2737
  builderComponents: !0,
2738
2738
  builderLinkComponent: !0
2739
2739
  }
2740
- }, ie = {
2740
+ }, ae = {
2741
2741
  "@type": "@builder.io/sdk:Element",
2742
2742
  responsiveStyles: {
2743
2743
  large: {
@@ -2759,7 +2759,7 @@ const Go = /* @__PURE__ */ g(qo, [["render", Jo]]), Yo = {
2759
2759
  text: "New tab"
2760
2760
  }
2761
2761
  }
2762
- }, ae = {
2762
+ }, le = {
2763
2763
  "@type": "@builder.io/sdk:Element",
2764
2764
  responsiveStyles: {
2765
2765
  large: {
@@ -2785,16 +2785,16 @@ const Go = /* @__PURE__ */ g(qo, [["render", Jo]]), Yo = {
2785
2785
  name: "label",
2786
2786
  type: "uiBlocks",
2787
2787
  hideFromUI: !0,
2788
- defaultValue: [ie]
2788
+ defaultValue: [ae]
2789
2789
  }, {
2790
2790
  name: "content",
2791
2791
  type: "uiBlocks",
2792
2792
  hideFromUI: !0,
2793
- defaultValue: [ae]
2793
+ defaultValue: [le]
2794
2794
  }],
2795
2795
  defaultValue: [{
2796
2796
  label: [{
2797
- ...ie,
2797
+ ...ae,
2798
2798
  component: {
2799
2799
  name: "Text",
2800
2800
  options: {
@@ -2803,7 +2803,7 @@ const Go = /* @__PURE__ */ g(qo, [["render", Jo]]), Yo = {
2803
2803
  }
2804
2804
  }],
2805
2805
  content: [{
2806
- ...ae,
2806
+ ...le,
2807
2807
  component: {
2808
2808
  name: "Text",
2809
2809
  options: {
@@ -2813,7 +2813,7 @@ const Go = /* @__PURE__ */ g(qo, [["render", Jo]]), Yo = {
2813
2813
  }]
2814
2814
  }, {
2815
2815
  label: [{
2816
- ...ie,
2816
+ ...ae,
2817
2817
  component: {
2818
2818
  name: "Text",
2819
2819
  options: {
@@ -2822,7 +2822,7 @@ const Go = /* @__PURE__ */ g(qo, [["render", Jo]]), Yo = {
2822
2822
  }
2823
2823
  }],
2824
2824
  content: [{
2825
- ...ae,
2825
+ ...le,
2826
2826
  component: {
2827
2827
  name: "Text",
2828
2828
  options: {
@@ -2880,7 +2880,7 @@ const Go = /* @__PURE__ */ g(qo, [["render", Jo]]), Yo = {
2880
2880
  }
2881
2881
  }, Qo = b({
2882
2882
  name: "builder-tabs",
2883
- components: { Blocks: H },
2883
+ components: { Blocks: M },
2884
2884
  props: [
2885
2885
  "defaultActiveTab",
2886
2886
  "tabs",
@@ -2907,7 +2907,7 @@ const Go = /* @__PURE__ */ g(qo, [["render", Jo]]), Yo = {
2907
2907
  function er(e, t, n, o, r, s) {
2908
2908
  const i = k("Blocks");
2909
2909
  return c(), p("div", null, [
2910
- M("div", {
2910
+ H("div", {
2911
2911
  class: "builder-tabs-wrap",
2912
2912
  style: F({
2913
2913
  display: "flex",
@@ -2924,7 +2924,7 @@ function er(e, t, n, o, r, s) {
2924
2924
  }),
2925
2925
  onClick: async (u) => e.onClick(a)
2926
2926
  }, [
2927
- R(i, {
2927
+ P(i, {
2928
2928
  parent: e.builderBlock.id,
2929
2929
  path: `tabs.${a}.label`,
2930
2930
  blocks: l.label,
@@ -2935,7 +2935,7 @@ function er(e, t, n, o, r, s) {
2935
2935
  ], 14, Zo))), 128))
2936
2936
  ], 4),
2937
2937
  e.activeTabContent(e.activeTab) ? (c(), p("div", _o, [
2938
- R(i, {
2938
+ P(i, {
2939
2939
  parent: e.builderBlock.id,
2940
2940
  path: `tabs.${e.activeTab}.content`,
2941
2941
  blocks: e.activeTabContent(e.activeTab),
@@ -3006,34 +3006,59 @@ const ir = /* @__PURE__ */ g(or, [["render", sr]]), ar = {
3006
3006
  }]
3007
3007
  }, lr = b({
3008
3008
  name: "builder-custom-code",
3009
- props: ["replaceNodes", "code"],
3009
+ props: ["code", "replaceNodes"],
3010
3010
  data() {
3011
3011
  return { scriptsInserted: [], scriptsRun: [] };
3012
3012
  },
3013
3013
  mounted() {
3014
- var t;
3015
- if (!((t = this.$refs.elementRef) != null && t.getElementsByTagName) || typeof window > "u")
3016
- return;
3017
- const e = this.$refs.elementRef.getElementsByTagName("script");
3018
- for (let n = 0; n < e.length; n++) {
3019
- const o = e[n];
3020
- if (o.src) {
3021
- if (this.scriptsInserted.includes(o.src))
3022
- continue;
3023
- this.scriptsInserted.push(o.src);
3024
- const r = document.createElement("script");
3025
- r.async = !0, r.src = o.src, document.head.appendChild(r);
3026
- } else if (!o.type || [
3027
- "text/javascript",
3028
- "application/javascript",
3029
- "application/ecmascript"
3030
- ].includes(o.type)) {
3031
- if (this.scriptsRun.includes(o.innerText))
3032
- continue;
3033
- try {
3034
- this.scriptsRun.push(o.innerText), new Function(o.innerText)();
3035
- } catch (r) {
3036
- console.warn("`CustomCode`: Error running script:", r);
3014
+ this.runScripts();
3015
+ },
3016
+ watch: {
3017
+ onUpdateHook0: {
3018
+ handler() {
3019
+ E() && setTimeout(() => {
3020
+ this.runScripts();
3021
+ }, 0);
3022
+ },
3023
+ immediate: !0
3024
+ }
3025
+ },
3026
+ computed: {
3027
+ onUpdateHook0() {
3028
+ return {
3029
+ 0: this.code
3030
+ };
3031
+ }
3032
+ },
3033
+ methods: {
3034
+ runScripts() {
3035
+ var t;
3036
+ if (!this.$refs.elementRef || !((t = this.$refs.elementRef) != null && t.getElementsByTagName) || typeof window > "u")
3037
+ return;
3038
+ const e = this.$refs.elementRef.getElementsByTagName("script");
3039
+ for (let n = 0; n < e.length; n++) {
3040
+ const o = e[n];
3041
+ if (o.src) {
3042
+ if (this.scriptsInserted.includes(o.src))
3043
+ continue;
3044
+ this.scriptsInserted.push(o.src);
3045
+ const r = document.createElement("script");
3046
+ r.async = !0, r.src = o.src, document.head.appendChild(r);
3047
+ } else if (!o.type || [
3048
+ "text/javascript",
3049
+ "application/javascript",
3050
+ "application/ecmascript"
3051
+ ].includes(o.type)) {
3052
+ if (this.scriptsRun.includes(o.innerText))
3053
+ continue;
3054
+ try {
3055
+ this.scriptsRun.push(o.innerText), new Function(o.innerText)();
3056
+ } catch (r) {
3057
+ B.warn(
3058
+ "[BUILDER.IO] `CustomCode`: Error running script:",
3059
+ r
3060
+ );
3061
+ }
3037
3062
  }
3038
3063
  }
3039
3064
  }
@@ -3098,7 +3123,7 @@ const ur = /* @__PURE__ */ g(lr, [["render", dr]]), pr = {
3098
3123
  try {
3099
3124
  this.scriptsRun.push(n.innerText), new Function(n.innerText)();
3100
3125
  } catch (o) {
3101
- console.warn("`Embed`: Error running script:", o);
3126
+ B.warn("[BUILDER.IO] `Embed`: Error running script:", o);
3102
3127
  }
3103
3128
  }
3104
3129
  }
@@ -3353,7 +3378,7 @@ const yr = /* @__PURE__ */ g(fr, [["render", gr]]), kr = {
3353
3378
  return vr.includes(e) ? e : "production";
3354
3379
  }, Cr = b({
3355
3380
  name: "builder-form-component",
3356
- components: { Blocks: H },
3381
+ components: { Blocks: M },
3357
3382
  props: [
3358
3383
  "builderContext",
3359
3384
  "previewState",
@@ -3392,7 +3417,7 @@ const yr = /* @__PURE__ */ g(fr, [["render", gr]]), kr = {
3392
3417
  this.builderContext.rootSetState ? (o = (n = this.builderContext).rootSetState) == null || o.call(n, t) : this.builderContext.rootState = t;
3393
3418
  },
3394
3419
  submissionState() {
3395
- return P() && this.previewState || this.formState;
3420
+ return E() && this.previewState || this.formState;
3396
3421
  },
3397
3422
  onSubmit(e) {
3398
3423
  var n;
@@ -3517,8 +3542,8 @@ function Ir(e, t, n, o, r, s) {
3517
3542
  method: e.method,
3518
3543
  name: e.name,
3519
3544
  onSubmit: t[0] || (t[0] = async (l) => e.onSubmit(l))
3520
- }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, A(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3521
- B(e.$slots, "default", {}, void 0, !0),
3545
+ }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3546
+ A(e.$slots, "default", {}, void 0, !0),
3522
3547
  e.submissionState() === "error" ? (c(), y(i, {
3523
3548
  key: 0,
3524
3549
  path: "errorMessage",
@@ -3603,7 +3628,7 @@ const $r = /* @__PURE__ */ g(Cr, [["render", Ir], ["__scopeId", "data-v-4ef43cdd
3603
3628
  "required"
3604
3629
  ],
3605
3630
  data() {
3606
- return { isEditing: P, filterAttrs: V };
3631
+ return { isEditing: E, filterAttrs: V };
3607
3632
  }
3608
3633
  }), Pr = ["placeholder", "type", "name", "value", "defaultValue", "required"];
3609
3634
  function Br(e, t, n, o, r, s) {
@@ -3615,7 +3640,7 @@ function Br(e, t, n, o, r, s) {
3615
3640
  value: e.value,
3616
3641
  defaultValue: e.defaultValue,
3617
3642
  required: e.required
3618
- }, e.filterAttrs(e.attributes, "v-on:", !1), A(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Pr);
3643
+ }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Pr);
3619
3644
  }
3620
3645
  const Ar = /* @__PURE__ */ g(Er, [["render", Br]]), xr = {
3621
3646
  name: "Form:Select",
@@ -3663,7 +3688,7 @@ const Ar = /* @__PURE__ */ g(Er, [["render", Br]]), xr = {
3663
3688
  name: "builder-select-component",
3664
3689
  props: ["attributes", "value", "defaultValue", "name", "required", "options"],
3665
3690
  data() {
3666
- return { isEditing: P, filterAttrs: V };
3691
+ return { isEditing: E, filterAttrs: V };
3667
3692
  }
3668
3693
  }), Wr = ["value", "defaultValue", "name", "required"], Nr = ["value"];
3669
3694
  function Or(e, t, n, o, r, s) {
@@ -3673,7 +3698,7 @@ function Or(e, t, n, o, r, s) {
3673
3698
  defaultValue: e.defaultValue,
3674
3699
  name: e.name,
3675
3700
  required: e.required
3676
- }, e.filterAttrs(e.attributes, "v-on:", !1), A(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3701
+ }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3677
3702
  (c(!0), p(I, null, W(e.options, (i, l) => (c(), p("option", {
3678
3703
  key: `${i.name}-${l}`,
3679
3704
  value: i.value
@@ -3713,9 +3738,9 @@ const Fr = /* @__PURE__ */ g(Vr, [["render", Or]]), Ur = {
3713
3738
  }
3714
3739
  });
3715
3740
  function Lr(e, t, n, o, r, s) {
3716
- return c(), p("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), A(e.filterAttrs(e.attributes, "v-on:", !0), !0)), te(e.text), 17);
3741
+ return c(), p("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), te(e.text), 17);
3717
3742
  }
3718
- const Mr = /* @__PURE__ */ g(Dr, [["render", Lr]]), Hr = {
3743
+ const Hr = /* @__PURE__ */ g(Dr, [["render", Lr]]), Mr = {
3719
3744
  name: "Form:TextArea",
3720
3745
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
3721
3746
  inputs: [{
@@ -3772,7 +3797,7 @@ function zr(e, t, n, o, r, s) {
3772
3797
  value: e.value,
3773
3798
  defaultValue: e.defaultValue,
3774
3799
  required: e.required
3775
- }, e.filterAttrs(e.attributes, "v-on:", !1), A(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Kr);
3800
+ }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Kr);
3776
3801
  }
3777
3802
  const qr = /* @__PURE__ */ g(jr, [["render", zr]]), Jr = {
3778
3803
  // friendlyName?
@@ -3799,7 +3824,7 @@ const qr = /* @__PURE__ */ g(jr, [["render", zr]]), Jr = {
3799
3824
  "attributes"
3800
3825
  ],
3801
3826
  data() {
3802
- return { isEditing: P, filterAttrs: V };
3827
+ return { isEditing: E, filterAttrs: V };
3803
3828
  }
3804
3829
  }), Yr = ["alt", "src"];
3805
3830
  function Xr(e, t, n, o, r, s) {
@@ -3811,7 +3836,7 @@ function Xr(e, t, n, o, r, s) {
3811
3836
  key: e.isEditing() && e.imgSrc || "default-key",
3812
3837
  alt: e.altText,
3813
3838
  src: e.imgSrc || e.image
3814
- }, e.filterAttrs(e.attributes, "v-on:", !1), A(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Yr);
3839
+ }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Yr);
3815
3840
  }
3816
3841
  const Qr = /* @__PURE__ */ g(Gr, [["render", Xr]]), Zr = {
3817
3842
  name: "Video",
@@ -3824,7 +3849,7 @@ const Qr = /* @__PURE__ */ g(Gr, [["render", Xr]]), Zr = {
3824
3849
  inputs: [{
3825
3850
  name: "video",
3826
3851
  type: "file",
3827
- allowedFileTypes: Ho,
3852
+ allowedFileTypes: Mo,
3828
3853
  bubble: !0,
3829
3854
  defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
3830
3855
  required: !0
@@ -3996,7 +4021,7 @@ const Qr = /* @__PURE__ */ g(Gr, [["render", Xr]]), Zr = {
3996
4021
  function rs(e, t, n, o, r, s) {
3997
4022
  var i, l, a, u, h, m, d;
3998
4023
  return c(), p("div", es, [
3999
- M("video", C({
4024
+ H("video", C({
4000
4025
  class: "builder-video",
4001
4026
  ref: "videoRef",
4002
4027
  preload: e.lazyLoad ? "none" : e.preload || "metadata",
@@ -4015,7 +4040,7 @@ function rs(e, t, n, o, r, s) {
4015
4040
  },
4016
4041
  poster: e.posterImage
4017
4042
  }, e.spreadProps), [
4018
- M("source", C(
4043
+ H("source", C(
4019
4044
  { type: "video/mp4" },
4020
4045
  e.lazyLoad ? {
4021
4046
  "data-src": e.video
@@ -4034,10 +4059,10 @@ function rs(e, t, n, o, r, s) {
4034
4059
  })
4035
4060
  }, null, 4)) : S("", !0),
4036
4061
  (h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (c(), p("div", ns, [
4037
- B(e.$slots, "default")
4062
+ A(e.$slots, "default")
4038
4063
  ])) : S("", !0),
4039
4064
  (d = (m = e.builderBlock) == null ? void 0 : m.children) != null && d.length && !e.fitContent ? (c(), p("div", os, [
4040
- B(e.$slots, "default")
4065
+ A(e.$slots, "default")
4041
4066
  ])) : S("", !0)
4042
4067
  ]);
4043
4068
  }
@@ -4054,14 +4079,14 @@ const ss = /* @__PURE__ */ g(_r, [["render", rs]]), is = () => [{
4054
4079
  component: Ar,
4055
4080
  ...Rr
4056
4081
  }, {
4057
- component: Mr,
4082
+ component: Hr,
4058
4083
  ...Ur
4059
4084
  }, {
4060
4085
  component: Fr,
4061
4086
  ...xr
4062
4087
  }, {
4063
4088
  component: qr,
4064
- ...Hr
4089
+ ...Mr
4065
4090
  }, {
4066
4091
  component: Qr,
4067
4092
  ...Jr
@@ -4076,7 +4101,7 @@ const ss = /* @__PURE__ */ g(_r, [["render", rs]]), is = () => [{
4076
4101
  ...Lo
4077
4102
  }, {
4078
4103
  component: So,
4079
- ...Mo
4104
+ ...Ho
4080
4105
  }, {
4081
4106
  component: Po,
4082
4107
  ...jo
@@ -4087,7 +4112,7 @@ const ss = /* @__PURE__ */ g(_r, [["render", rs]]), is = () => [{
4087
4112
  component: Go,
4088
4113
  ...zo
4089
4114
  }, {
4090
- component: js,
4115
+ component: Ks,
4091
4116
  ...Yo
4092
4117
  }, {
4093
4118
  component: ir,
@@ -4098,7 +4123,7 @@ const ss = /* @__PURE__ */ g(_r, [["render", rs]]), is = () => [{
4098
4123
  }, {
4099
4124
  component: Uo,
4100
4125
  ...Vo
4101
- }, ...is()], as = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
4126
+ }, ...is()], as = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
4102
4127
  function getAndSetVariantId() {
4103
4128
  function setCookie(name, value, days) {
4104
4129
  let expires = '';
@@ -4140,7 +4165,10 @@ const ss = /* @__PURE__ */ g(_r, [["render", rs]]), is = () => [{
4140
4165
  return contentId;
4141
4166
  }
4142
4167
  const winningVariantId = getAndSetVariantId();
4143
- const styleEl = document.currentScript?.previousElementSibling;
4168
+ let styleEl = document.currentScript?.previousElementSibling;
4169
+ if (isAngularSDK) {
4170
+ styleEl = document.currentScript?.parentElement?.previousElementSibling?.querySelector('style');
4171
+ }
4144
4172
  if (isHydrationTarget) {
4145
4173
  styleEl.remove();
4146
4174
  const thisScriptEl = document.currentScript;
@@ -4195,13 +4223,13 @@ const ss = /* @__PURE__ */ g(_r, [["render", rs]]), is = () => [{
4195
4223
  })), cs = ({
4196
4224
  canTrack: e,
4197
4225
  content: t
4198
- }) => !(!(Q(t).length > 0) || !e), ds = (e) => e === "react" || e === "reactNative", ft = ds(E), us = () => `
4226
+ }) => !(!(Q(t).length > 0) || !e), ds = (e) => e === "react" || e === "reactNative", us = R === "angular", ft = ds(R), ps = () => `
4199
4227
  window.${mt} = ${as}
4200
4228
  window.${ht} = ${ls}
4201
- `, ps = (e, t) => `
4229
+ `, ms = (e, t) => `
4202
4230
  window.${mt}(
4203
- "${t}",${JSON.stringify(e)}, ${ft}
4204
- )`, ms = ({
4231
+ "${t}",${JSON.stringify(e)}, ${ft}, ${us}
4232
+ )`, hs = ({
4205
4233
  contentId: e,
4206
4234
  variationId: t
4207
4235
  }) => `window.${ht}(
@@ -4210,7 +4238,7 @@ const ss = /* @__PURE__ */ g(_r, [["render", rs]]), is = () => [{
4210
4238
  function Ve(e) {
4211
4239
  return Math.round(e * 1e3) / 1e3;
4212
4240
  }
4213
- const hs = (e, t, n = !0) => {
4241
+ const fs = (e, t, n = !0) => {
4214
4242
  if (!(e instanceof HTMLElement))
4215
4243
  return null;
4216
4244
  let o = n ? e : e.parentElement;
@@ -4221,7 +4249,7 @@ const hs = (e, t, n = !0) => {
4221
4249
  return o;
4222
4250
  } while (o = o.parentElement);
4223
4251
  return null;
4224
- }, fs = (e) => hs(e, (t) => {
4252
+ }, bs = (e) => fs(e, (t) => {
4225
4253
  const n = t.getAttribute("builder-id") || t.id;
4226
4254
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
4227
4255
  }), We = ({
@@ -4233,8 +4261,8 @@ const hs = (e, t, n = !0) => {
4233
4261
  x: s,
4234
4262
  y: i
4235
4263
  };
4236
- }, bs = (e) => {
4237
- const t = e.target, n = t && fs(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4264
+ }, gs = (e) => {
4265
+ const t = e.target, n = t && bs(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4238
4266
  return {
4239
4267
  targetBuilderElement: o || void 0,
4240
4268
  metadata: {
@@ -4249,7 +4277,7 @@ const hs = (e, t, n = !0) => {
4249
4277
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
4250
4278
  }
4251
4279
  };
4252
- }, gs = ["svelte", "qwik", "vue"], ys = () => gs.includes(E) && (P() || Me()), ks = (e) => {
4280
+ }, ys = ["svelte", "qwik", "vue"], ks = () => ys.includes(R) && (E() || He()), vs = (e) => {
4253
4281
  var s;
4254
4282
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((s = e == null ? void 0 : e.files) == null ? void 0 : s.regular);
4255
4283
  let r = "";
@@ -4275,15 +4303,15 @@ font-weight: ${i};
4275
4303
  `.trim());
4276
4304
  }
4277
4305
  return r;
4278
- }, vs = ({
4306
+ }, Ss = ({
4279
4307
  customFonts: e
4280
4308
  }) => {
4281
4309
  var t;
4282
- return ((t = e == null ? void 0 : e.map((n) => ks(n))) == null ? void 0 : t.join(" ")) || "";
4283
- }, Ss = ({
4310
+ return ((t = e == null ? void 0 : e.map((n) => vs(n))) == null ? void 0 : t.join(" ")) || "";
4311
+ }, Cs = ({
4284
4312
  cssCode: e,
4285
4313
  contentId: t
4286
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Cs = `
4314
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ts = `
4287
4315
  .builder-button {
4288
4316
  all: unset;
4289
4317
  }
@@ -4300,7 +4328,7 @@ font-weight: ${i};
4300
4328
  text-align: inherit;
4301
4329
  font-family: inherit;
4302
4330
  }
4303
- `, Ts = (e) => e ? "" : Cs, ws = (e) => `variant-${e}`, Is = b({
4331
+ `, ws = (e) => e ? "" : Ts, Is = (e) => `variant-${e}`, $s = b({
4304
4332
  name: "enable-editor",
4305
4333
  components: { DynamicDiv: X },
4306
4334
  props: [
@@ -4322,41 +4350,47 @@ font-weight: ${i};
4322
4350
  ],
4323
4351
  data() {
4324
4352
  return {
4353
+ hasExecuted: !1,
4325
4354
  ContentWrapper: this.contentWrapper || "div",
4326
4355
  httpReqsData: {},
4327
4356
  httpReqsPending: {},
4328
4357
  clicked: !1,
4329
- builderContext: le,
4330
- needsElementRefDivForEditing: ys,
4331
- getWrapperClassName: ws
4358
+ builderContext: ce,
4359
+ needsElementRefDivForEditing: ks,
4360
+ getWrapperClassName: Is
4332
4361
  };
4333
4362
  },
4334
4363
  provide() {
4335
4364
  const e = this;
4336
4365
  return {
4337
- [le.key]: e.builderContextSignal
4366
+ [ce.key]: e.builderContextSignal
4338
4367
  };
4339
4368
  },
4340
4369
  created() {
4341
4370
  this.runHttpRequests(), this.emitStateUpdate();
4342
4371
  },
4343
4372
  mounted() {
4344
- var e, t;
4373
+ var e, t, n;
4345
4374
  if ($()) {
4346
- if (P() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4375
+ E() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4347
4376
  new CustomEvent("initeditingbldr")
4348
- ), this.builderContextSignal.content && G(this.canTrack)) {
4349
- const o = (e = this.builderContextSignal.content) == null ? void 0 : e.testVariationId, r = (t = this.builderContextSignal.content) == null ? void 0 : t.id, s = this.apiKey;
4350
- de({
4377
+ );
4378
+ const o = this.builderContextSignal.content && G(this.canTrack), r = ne({
4379
+ name: `builder.tests.${(e = this.builderContextSignal.content) == null ? void 0 : e.id}`,
4380
+ canTrack: !0
4381
+ }), s = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId;
4382
+ if (o && s === r) {
4383
+ const i = (n = this.builderContextSignal.content) == null ? void 0 : n.id, l = this.apiKey;
4384
+ ue({
4351
4385
  apiHost: this.apiHost,
4352
4386
  type: "impression",
4353
4387
  canTrack: !0,
4354
- contentId: r,
4355
- apiKey: s,
4356
- variationId: o !== r ? o : void 0
4388
+ contentId: i,
4389
+ apiKey: l,
4390
+ variationId: r !== i ? r : void 0
4357
4391
  });
4358
4392
  }
4359
- Me() && !P() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4393
+ He() && !E() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4360
4394
  new CustomEvent("initpreviewingbldr")
4361
4395
  );
4362
4396
  }
@@ -4479,14 +4513,14 @@ font-weight: ${i};
4479
4513
  var t, n;
4480
4514
  if (this.builderContextSignal.content) {
4481
4515
  const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
4482
- de({
4516
+ ue({
4483
4517
  apiHost: this.apiHost,
4484
4518
  type: "click",
4485
4519
  canTrack: G(this.canTrack),
4486
4520
  contentId: r,
4487
4521
  apiKey: this.apiKey,
4488
4522
  variationId: o !== r ? o : void 0,
4489
- ...bs(e),
4523
+ ...gs(e),
4490
4524
  unique: !this.clicked
4491
4525
  });
4492
4526
  }
@@ -4496,7 +4530,7 @@ font-weight: ${i};
4496
4530
  var t, n;
4497
4531
  const e = ((n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) ?? {};
4498
4532
  Object.entries(e).forEach(([o, r]) => {
4499
- if (!r || this.httpReqsPending[o] || this.httpReqsData[o] && !P())
4533
+ if (!r || this.httpReqsPending[o] || this.httpReqsData[o] && !E())
4500
4534
  return;
4501
4535
  this.httpReqsPending[o] = !0;
4502
4536
  const s = r.replace(
@@ -4523,12 +4557,12 @@ font-weight: ${i};
4523
4557
  });
4524
4558
  },
4525
4559
  emitStateUpdate() {
4526
- P() && window.dispatchEvent(
4560
+ E() && window.dispatchEvent(
4527
4561
  new CustomEvent(
4528
4562
  "builder:component:stateChange",
4529
4563
  {
4530
4564
  detail: {
4531
- state: pe(this.builderContextSignal.rootState),
4565
+ state: me(this.builderContextSignal.rootState),
4532
4566
  ref: {
4533
4567
  name: this.model
4534
4568
  }
@@ -4583,7 +4617,7 @@ font-weight: ${i};
4583
4617
  }
4584
4618
  }
4585
4619
  });
4586
- function $s(e, t, n, o, r, s) {
4620
+ function Rs(e, t, n, o, r, s) {
4587
4621
  var i, l, a;
4588
4622
  return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (c(), y(z(e.ContentWrapper), C({
4589
4623
  key: 0,
@@ -4599,31 +4633,31 @@ function $s(e, t, n, o, r, s) {
4599
4633
  onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
4600
4634
  }, { ...e.showContentProps, ...e.contentWrapperProps }), {
4601
4635
  default: N(() => [
4602
- B(e.$slots, "default")
4636
+ A(e.$slots, "default")
4603
4637
  ]),
4604
4638
  _: 3
4605
4639
  }, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : S("", !0);
4606
4640
  }
4607
- const Rs = /* @__PURE__ */ g(Is, [["render", $s]]), Es = b({
4641
+ const Es = /* @__PURE__ */ g($s, [["render", Rs]]), Ps = b({
4608
4642
  name: "content-styles",
4609
4643
  components: { InlinedStyles: Se },
4610
4644
  props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
4611
4645
  data() {
4612
4646
  return {
4613
4647
  injectedStyles: `
4614
- ${Ss({
4648
+ ${Cs({
4615
4649
  cssCode: this.cssCode,
4616
4650
  contentId: this.contentId
4617
4651
  })}
4618
- ${vs({
4652
+ ${Ss({
4619
4653
  customFonts: this.customFonts
4620
4654
  })}
4621
- ${Ts(this.isNestedRender)}
4655
+ ${ws(this.isNestedRender)}
4622
4656
  `.trim()
4623
4657
  };
4624
4658
  }
4625
4659
  });
4626
- function Ps(e, t, n, o, r, s) {
4660
+ function Bs(e, t, n, o, r, s) {
4627
4661
  const i = k("InlinedStyles");
4628
4662
  return c(), y(i, {
4629
4663
  id: "builderio-content",
@@ -4631,7 +4665,7 @@ function Ps(e, t, n, o, r, s) {
4631
4665
  nonce: e.nonce
4632
4666
  }, null, 8, ["styles", "nonce"]);
4633
4667
  }
4634
- const Bs = /* @__PURE__ */ g(Es, [["render", Ps]]), As = ({
4668
+ const As = /* @__PURE__ */ g(Ps, [["render", Bs]]), xs = ({
4635
4669
  content: e,
4636
4670
  data: t,
4637
4671
  locale: n
@@ -4648,7 +4682,7 @@ const Bs = /* @__PURE__ */ g(Es, [["render", Ps]]), As = ({
4648
4682
  locale: n
4649
4683
  } : {}
4650
4684
  };
4651
- }, xs = ({
4685
+ }, Vs = ({
4652
4686
  content: e,
4653
4687
  data: t
4654
4688
  }) => e ? {
@@ -4658,13 +4692,13 @@ const Bs = /* @__PURE__ */ g(Es, [["render", Ps]]), As = ({
4658
4692
  ...t
4659
4693
  },
4660
4694
  meta: e == null ? void 0 : e.meta
4661
- } : void 0, Vs = kt, Ws = b({
4695
+ } : void 0, Ws = kt, Ns = b({
4662
4696
  name: "content-component",
4663
4697
  components: {
4664
- EnableEditor: Rs,
4698
+ EnableEditor: Es,
4665
4699
  InlinedScript: pt,
4666
- ContentStyles: Bs,
4667
- Blocks: H,
4700
+ ContentStyles: As,
4701
+ Blocks: M,
4668
4702
  DynamicDiv: X
4669
4703
  },
4670
4704
  props: [
@@ -4693,7 +4727,7 @@ const Bs = /* @__PURE__ */ g(Es, [["render", Ps]]), As = ({
4693
4727
  data() {
4694
4728
  var e, t;
4695
4729
  return {
4696
- scriptStr: ms({
4730
+ scriptStr: hs({
4697
4731
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4698
4732
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
4699
4733
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -4706,19 +4740,19 @@ const Bs = /* @__PURE__ */ g(Es, [["render", Ps]]), As = ({
4706
4740
  (n, { component: o, ...r }) => ({
4707
4741
  ...n,
4708
4742
  [r.name]: {
4709
- component: Vs(o),
4743
+ component: Ws(o),
4710
4744
  ...ee(r)
4711
4745
  }
4712
4746
  }),
4713
4747
  {}
4714
4748
  ),
4715
4749
  builderContextSignal: {
4716
- content: xs({
4750
+ content: Vs({
4717
4751
  content: this.content,
4718
4752
  data: this.data
4719
4753
  }),
4720
4754
  localState: void 0,
4721
- rootState: As({
4755
+ rootState: xs({
4722
4756
  content: this.content,
4723
4757
  data: this.data,
4724
4758
  locale: this.locale
@@ -4744,7 +4778,7 @@ const Bs = /* @__PURE__ */ g(Es, [["render", Ps]]), As = ({
4744
4778
  nonce: this.nonce || "",
4745
4779
  model: this.model
4746
4780
  },
4747
- TARGET: E
4781
+ TARGET: R
4748
4782
  };
4749
4783
  },
4750
4784
  provide() {
@@ -4757,7 +4791,7 @@ const Bs = /* @__PURE__ */ g(Es, [["render", Ps]]), As = ({
4757
4791
  },
4758
4792
  created() {
4759
4793
  var t, n;
4760
- this.apiKey || x.error(
4794
+ this.apiKey || B.error(
4761
4795
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
4762
4796
  );
4763
4797
  const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
@@ -4778,7 +4812,7 @@ const Bs = /* @__PURE__ */ g(Es, [["render", Ps]]), As = ({
4778
4812
  }
4779
4813
  }
4780
4814
  });
4781
- function Ns(e, t, n, o, r, s) {
4815
+ function Os(e, t, n, o, r, s) {
4782
4816
  const i = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
4783
4817
  return c(), y(u, C({
4784
4818
  apiHost: e.apiHost,
@@ -4815,7 +4849,7 @@ function Ns(e, t, n, o, r, s) {
4815
4849
  cssCode: (d = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : d.cssCode,
4816
4850
  customFonts: (v = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : v.customFonts
4817
4851
  }, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : S("", !0),
4818
- R(a, {
4852
+ P(a, {
4819
4853
  blocks: (U = (T = e.builderContextSignal.content) == null ? void 0 : T.data) == null ? void 0 : U.blocks,
4820
4854
  context: e.builderContextSignal,
4821
4855
  registeredComponents: e.registeredComponents,
@@ -4826,12 +4860,12 @@ function Ns(e, t, n, o, r, s) {
4826
4860
  _: 1
4827
4861
  }, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
4828
4862
  }
4829
- const Os = /* @__PURE__ */ g(Ws, [["render", Ns]]), Fs = b({
4863
+ const Fs = /* @__PURE__ */ g(Ns, [["render", Os]]), Us = b({
4830
4864
  name: "content-variants",
4831
4865
  components: {
4832
4866
  InlinedScript: pt,
4833
4867
  InlinedStyles: Se,
4834
- ContentComponent: Os
4868
+ ContentComponent: Fs
4835
4869
  },
4836
4870
  props: [
4837
4871
  "canTrack",
@@ -4860,8 +4894,8 @@ const Os = /* @__PURE__ */ g(Ws, [["render", Ns]]), Fs = b({
4860
4894
  canTrack: G(this.canTrack),
4861
4895
  content: this.content
4862
4896
  }),
4863
- TARGET: E,
4864
- getInitVariantsFnsScriptString: us,
4897
+ TARGET: R,
4898
+ getInitVariantsFnsScriptString: ps,
4865
4899
  getVariants: Q
4866
4900
  };
4867
4901
  },
@@ -4870,7 +4904,7 @@ const Os = /* @__PURE__ */ g(Ws, [["render", Ns]]), Fs = b({
4870
4904
  computed: {
4871
4905
  updateCookieAndStylesScriptStr() {
4872
4906
  var e;
4873
- return ps(
4907
+ return ms(
4874
4908
  Q(this.content).map((t) => ({
4875
4909
  id: t.testVariationId,
4876
4910
  testRatio: t.testRatio
@@ -4893,7 +4927,7 @@ const Os = /* @__PURE__ */ g(Ws, [["render", Ns]]), Fs = b({
4893
4927
  }
4894
4928
  }
4895
4929
  });
4896
- function Us(e, t, n, o, r, s) {
4930
+ function Ds(e, t, n, o, r, s) {
4897
4931
  const i = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
4898
4932
  return c(), p(I, null, [
4899
4933
  !e.isNestedRender && e.TARGET !== "reactNative" ? (c(), y(i, {
@@ -4903,12 +4937,12 @@ function Us(e, t, n, o, r, s) {
4903
4937
  nonce: e.nonce || ""
4904
4938
  }, null, 8, ["scriptStr", "nonce"])) : S("", !0),
4905
4939
  e.shouldRenderVariants ? (c(), p(I, { key: 1 }, [
4906
- R(l, {
4940
+ P(l, {
4907
4941
  id: "builderio-variants",
4908
4942
  styles: e.hideVariantsStyleString,
4909
4943
  nonce: e.nonce || ""
4910
4944
  }, null, 8, ["styles", "nonce"]),
4911
- R(i, {
4945
+ P(i, {
4912
4946
  id: "builderio-variants-visibility",
4913
4947
  scriptStr: e.updateCookieAndStylesScriptStr,
4914
4948
  nonce: e.nonce || ""
@@ -4938,7 +4972,7 @@ function Us(e, t, n, o, r, s) {
4938
4972
  trustedHosts: e.trustedHosts
4939
4973
  }, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
4940
4974
  ], 64)) : S("", !0),
4941
- R(a, C({
4975
+ P(a, C({
4942
4976
  apiHost: e.apiHost,
4943
4977
  nonce: e.nonce,
4944
4978
  isNestedRender: e.isNestedRender,
@@ -4965,7 +4999,7 @@ function Us(e, t, n, o, r, s) {
4965
4999
  }), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
4966
5000
  ], 64);
4967
5001
  }
4968
- const Ds = /* @__PURE__ */ g(Fs, [["render", Us]]), Ls = async ({
5002
+ const Ls = /* @__PURE__ */ g(Us, [["render", Ds]]), Hs = async ({
4969
5003
  builderContextValue: e,
4970
5004
  symbol: t
4971
5005
  }) => {
@@ -4981,11 +5015,11 @@ const Ds = /* @__PURE__ */ g(Fs, [["render", Us]]), Ls = async ({
4981
5015
  }
4982
5016
  }
4983
5017
  }).catch((n) => {
4984
- x.error("Could not fetch symbol content: ", n);
5018
+ B.error("Could not fetch symbol content: ", n);
4985
5019
  });
4986
5020
  }, Ms = b({
4987
5021
  name: "builder-symbol",
4988
- components: { ContentVariants: Ds, DynamicDiv: X },
5022
+ components: { ContentVariants: Ls, DynamicDiv: X },
4989
5023
  props: [
4990
5024
  "symbol",
4991
5025
  "attributes",
@@ -5034,7 +5068,7 @@ const Ds = /* @__PURE__ */ g(Fs, [["render", Us]]), Ls = async ({
5034
5068
  },
5035
5069
  methods: {
5036
5070
  setContent() {
5037
- this.contentToUse || Ls({
5071
+ this.contentToUse || Hs({
5038
5072
  symbol: this.symbol,
5039
5073
  builderContextValue: this.builderContext
5040
5074
  }).then((e) => {
@@ -5043,11 +5077,11 @@ const Ds = /* @__PURE__ */ g(Fs, [["render", Us]]), Ls = async ({
5043
5077
  }
5044
5078
  }
5045
5079
  });
5046
- function Hs(e, t, n, o, r, s) {
5080
+ function js(e, t, n, o, r, s) {
5047
5081
  var l, a, u, h, m;
5048
5082
  const i = k("ContentVariants");
5049
- return c(), p("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, A(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
5050
- R(i, {
5083
+ return c(), p("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
5084
+ P(i, {
5051
5085
  nonce: e.builderContext.nonce,
5052
5086
  isNestedRender: !0,
5053
5087
  apiVersion: e.builderContext.apiVersion,
@@ -5071,41 +5105,41 @@ function Hs(e, t, n, o, r, s) {
5071
5105
  }, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
5072
5106
  ], 16);
5073
5107
  }
5074
- const js = /* @__PURE__ */ g(Ms, [["render", Hs]]);
5108
+ const Ks = /* @__PURE__ */ g(Ms, [["render", js]]);
5075
5109
  export {
5076
- qs as A,
5110
+ Js as A,
5077
5111
  dt as B,
5078
5112
  yo as C,
5079
- ei as D,
5113
+ ti as D,
5080
5114
  So as F,
5081
5115
  Po as I,
5082
5116
  xo as S,
5083
5117
  ir as T,
5084
5118
  ss as V,
5085
5119
  Se as _,
5086
- ti as a,
5120
+ ni as a,
5087
5121
  ve as b,
5088
- Zs as c,
5122
+ _s as c,
5089
5123
  g as d,
5090
5124
  Y as e,
5091
- _s as f,
5125
+ ei as f,
5092
5126
  ho as g,
5093
5127
  Z as h,
5094
- le as i,
5128
+ ce as i,
5095
5129
  Wt as j,
5096
- js as k,
5097
- H as l,
5098
- Ds as m,
5099
- Me as n,
5130
+ Ks as k,
5131
+ M as l,
5132
+ Ls as m,
5133
+ He as n,
5100
5134
  Zt as o,
5101
- Js as p,
5102
- He as q,
5135
+ Gs as p,
5136
+ Me as q,
5103
5137
  en as r,
5104
- Xs as s,
5105
- Gs as t,
5106
- Ys as u,
5107
- Qs as v,
5108
- Vs as w,
5138
+ Qs as s,
5139
+ Ys as t,
5140
+ Xs as u,
5141
+ Zs as v,
5142
+ Ws as w,
5109
5143
  Un as x,
5110
5144
  Dn as y,
5111
5145
  ke as z