@builder.io/sdk-vue 5.1.1 → 5.2.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 (80) hide show
  1. package/lib/browser/{awaiter-NbFI2CU_.js → awaiter-PiTJ_7wp.js} +1 -1
  2. package/lib/browser/{awaiter-YRNWppS-.cjs → awaiter-hHorxjIR.cjs} +1 -1
  3. package/lib/browser/{block-wrapper-_4lEInw9.js → block-wrapper-8FiWiPra.js} +3 -3
  4. package/lib/browser/{block-wrapper-7ZGQAl5W.cjs → block-wrapper-v0E7yyzI.cjs} +1 -1
  5. package/lib/browser/blocks/symbol/symbol.helpers.d.ts +2 -0
  6. package/lib/browser/blocks/symbol/symbol.types.d.ts +2 -0
  7. package/lib/browser/{component-ref-A2Q0eDCA.cjs → component-ref-jU5sC23e.cjs} +1 -1
  8. package/lib/browser/{component-ref-S2rn5_QV.js → component-ref-u11yYjHx.js} +38 -33
  9. package/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +3 -1
  10. package/lib/browser/components/content-variants/content-variants.vue.d.ts +1 -0
  11. package/lib/browser/components/content-variants/helpers.d.ts +1 -0
  12. package/lib/browser/constants/sdk-version.d.ts +1 -1
  13. package/lib/browser/{get-block-properties-PbwnoRP4.cjs → get-block-properties-AT7KmjRH.cjs} +1 -1
  14. package/lib/browser/{get-block-properties-Y9GlYFTe.js → get-block-properties-UD7oT_P6.js} +1 -1
  15. package/lib/browser/{index-OpNLmfCu.cjs → index-9zsNLjBY.cjs} +50 -20
  16. package/lib/browser/{index-HPQgrUEC.js → index-qBdmc4Tf.js} +296 -260
  17. package/lib/browser/index.cjs +1 -1
  18. package/lib/browser/index.mjs +1 -1
  19. package/lib/browser/{live-edit-tMAUVH2B.cjs → live-edit-9FW3XnJY.cjs} +1 -1
  20. package/lib/browser/{live-edit-8F1riCsR.js → live-edit-yO4ZTgek.js} +1 -1
  21. package/lib/browser/{repeated-block-C21nYjNB.js → repeated-block-7Kr5DU4s.js} +2 -2
  22. package/lib/browser/{repeated-block-YesIuQQG.cjs → repeated-block-HJlXpRlA.cjs} +1 -1
  23. package/lib/browser/{style-wrapper-toT_b35_.cjs → style-wrapper-NagZ3htF.cjs} +1 -1
  24. package/lib/browser/{style-wrapper-6gB537kz.js → style-wrapper-oGUCilmw.js} +1 -1
  25. package/lib/browser/style.css +1 -1
  26. package/lib/edge/{awaiter-Z1Aho-Tf.js → awaiter-acJdczkp.js} +1 -1
  27. package/lib/edge/{awaiter-GbCbMdxs.cjs → awaiter-yr8VAu_H.cjs} +1 -1
  28. package/lib/edge/{block-wrapper-SGs68mW-.cjs → block-wrapper-aEKGXQsG.cjs} +1 -1
  29. package/lib/{node/block-wrapper-P5y87ZAx.js → edge/block-wrapper-mCaWnoxQ.js} +3 -3
  30. package/lib/edge/blocks/symbol/symbol.helpers.d.ts +2 -0
  31. package/lib/edge/blocks/symbol/symbol.types.d.ts +2 -0
  32. package/lib/edge/{component-ref-v3RKtvga.js → component-ref-pA4-SwIs.js} +33 -28
  33. package/lib/edge/{component-ref-1HNLmjNP.cjs → component-ref-wzojJNtP.cjs} +1 -1
  34. package/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +3 -1
  35. package/lib/edge/components/content-variants/content-variants.vue.d.ts +1 -0
  36. package/lib/edge/components/content-variants/helpers.d.ts +1 -0
  37. package/lib/edge/constants/sdk-version.d.ts +1 -1
  38. package/lib/edge/{get-block-properties-O8BCJSao.js → get-block-properties-T1Ci7dP5.js} +1 -1
  39. package/lib/edge/{get-block-properties-ju6Fj919.cjs → get-block-properties-vOCtFmny.cjs} +1 -1
  40. package/lib/edge/{index-x6Hu33ce.js → index-9d4BROG7.js} +544 -508
  41. package/lib/edge/{index-FjhQsct4.cjs → index-OZxVFmQK.cjs} +54 -24
  42. package/lib/edge/index.cjs +1 -1
  43. package/lib/edge/index.mjs +1 -1
  44. package/lib/{node/live-edit-Jp1PzpUr.cjs → edge/live-edit-DElUbmBW.cjs} +1 -1
  45. package/lib/{node/live-edit-61Hzovyk.js → edge/live-edit-oX2tpNY4.js} +1 -1
  46. package/lib/edge/{repeated-block-gmtzy89x.js → repeated-block-WFlqwuyL.js} +2 -2
  47. package/lib/edge/{repeated-block-ic1FaN4o.cjs → repeated-block-uS6k8BJT.cjs} +1 -1
  48. package/lib/edge/{style-wrapper-DFS-znzq.js → style-wrapper-QjzY0pp1.js} +1 -1
  49. package/lib/edge/{style-wrapper-Xaty5j6j.cjs → style-wrapper-UNbimac8.cjs} +1 -1
  50. package/lib/edge/style.css +1 -1
  51. package/lib/node/{awaiter-7GQ8utUb.cjs → awaiter-68BBjUeZ.cjs} +1 -1
  52. package/lib/node/{awaiter-MB_eWqp9.js → awaiter-j4ORMLjV.js} +1 -1
  53. package/lib/{edge/block-wrapper-sP32aCJj.js → node/block-wrapper-MpV_yto9.js} +3 -3
  54. package/lib/node/{block-wrapper--M33E0VG.cjs → block-wrapper-xbWj7xN4.cjs} +1 -1
  55. package/lib/node/blocks/symbol/symbol.helpers.d.ts +2 -0
  56. package/lib/node/blocks/symbol/symbol.types.d.ts +2 -0
  57. package/lib/node/{component-ref-RUGITshe.js → component-ref-FMaZUEHA.js} +45 -40
  58. package/lib/node/{component-ref-KETj2JRL.cjs → component-ref-gcCyaLPb.cjs} +1 -1
  59. package/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +3 -1
  60. package/lib/node/components/content-variants/content-variants.vue.d.ts +1 -0
  61. package/lib/node/components/content-variants/helpers.d.ts +1 -0
  62. package/lib/node/constants/sdk-version.d.ts +1 -1
  63. package/lib/node/{get-block-properties-Ec9Kj4p7.js → get-block-properties-OFyB13c0.js} +2 -2
  64. package/lib/node/{get-block-properties-Z9QEqFjm.cjs → get-block-properties-xyodoUq1.cjs} +1 -1
  65. package/lib/node/{index-WS6d-d4F.cjs → index-INlBMXV-.cjs} +49 -19
  66. package/lib/node/{index-TvY2gce_.js → index-TU01S1LU.js} +263 -227
  67. package/lib/node/index.cjs +1 -1
  68. package/lib/node/index.mjs +2 -2
  69. package/lib/node/init.cjs +1 -1
  70. package/lib/node/init.mjs +1 -1
  71. package/lib/{edge/live-edit-v7-_17wH.js → node/live-edit-047YZnu-.js} +1 -1
  72. package/lib/{edge/live-edit-VsbDXDK9.cjs → node/live-edit-g3b-brGl.cjs} +1 -1
  73. package/lib/node/{repeated-block-9JRCsGOV.cjs → repeated-block-EcOLRgeJ.cjs} +1 -1
  74. package/lib/node/{repeated-block-Nh0O2sxg.js → repeated-block-om1ZGsyQ.js} +2 -2
  75. package/lib/node/{should-force-browser-runtime-in-node-xByMtVKh.cjs → should-force-browser-runtime-in-node-A9wQILFE.cjs} +1 -1
  76. package/lib/node/{should-force-browser-runtime-in-node-ghF-DZhu.js → should-force-browser-runtime-in-node-dW9p7rxg.js} +1 -1
  77. package/lib/node/{style-wrapper-y344qWFp.js → style-wrapper-2Rqb9g04.js} +2 -2
  78. package/lib/node/{style-wrapper-rXB6kp1P.cjs → style-wrapper-lvW1HnEu.cjs} +1 -1
  79. package/lib/node/style.css +1 -1
  80. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as w, createBlock as S, resolveDynamicComponent as Y, mergeProps as I, toHandlers as O, withCtx as x, renderSlot as V, resolveComponent as k, createTextVNode as St, toDisplayString as le, defineAsyncComponent as Q, createVNode as $, renderList as F, createCommentVNode as C, h as Me, createElementVNode as z, normalizeStyle as M, normalizeClass as Z, markRaw as kt } from "vue";
2
- import { T as R, g as Ct, f as Tt, i as E, s as wt, r as It, p as $t, a as Rt, l as L, b as qe, c as ye, d as Et, n as je, S as Pt, e as ve, h as re, j as At, k as ze, m as Bt, o as A, q as Ke, _ as Ae } from "./should-force-browser-runtime-in-node-ghF-DZhu.js";
1
+ import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as I, createBlock as S, resolveDynamicComponent as Y, mergeProps as w, toHandlers as U, withCtx as x, renderSlot as V, resolveComponent as k, createTextVNode as St, toDisplayString as le, defineAsyncComponent as Q, createVNode as R, renderList as F, createCommentVNode as C, h as Me, createElementVNode as K, normalizeStyle as M, normalizeClass as Z, markRaw as kt } from "vue";
2
+ import { T as $, g as Ct, f as Tt, i as E, s as wt, r as It, p as $t, a as Rt, l as L, b as qe, c as ye, d as Et, n as je, S as Pt, e as ve, h as re, j as At, k as Ke, m as Bt, o as A, q as ze, _ as Ae } from "./should-force-browser-runtime-in-node-dW9p7rxg.js";
3
3
  const Vt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Nt = (e) => typeof e == "string" && Vt.has(e.toLowerCase());
4
4
  function N(e = {}, t, n) {
5
5
  const o = {};
@@ -24,13 +24,13 @@ const Wt = y({
24
24
  return n;
25
25
  };
26
26
  function Dt(e, t, n, o, r, i) {
27
- return e.isEmptyElement(e.TagName) ? (d(), S(Y(e.TagName), I({ key: 1 }, e.attributes, O(e.actionAttributes)), null, 16)) : (d(), h(w, { key: 0 }, [
28
- typeof e.TagName == "string" ? (d(), S(Y(e.TagName), I({ key: 0 }, e.attributes, O(e.actionAttributes)), {
27
+ return e.isEmptyElement(e.TagName) ? (d(), S(Y(e.TagName), w({ key: 1 }, e.attributes, U(e.actionAttributes)), null, 16)) : (d(), h(I, { key: 0 }, [
28
+ typeof e.TagName == "string" ? (d(), S(Y(e.TagName), w({ key: 0 }, e.attributes, U(e.actionAttributes)), {
29
29
  default: x(() => [
30
30
  V(e.$slots, "default")
31
31
  ]),
32
32
  _: 3
33
- }, 16)) : (d(), S(Y(e.TagName), I({ key: 1 }, e.attributes, O(e.actionAttributes)), {
33
+ }, 16)) : (d(), S(Y(e.TagName), w({ key: 1 }, e.attributes, U(e.actionAttributes)), {
34
34
  default: x(() => [
35
35
  V(e.$slots, "default")
36
36
  ]),
@@ -38,11 +38,11 @@ function Dt(e, t, n, o, r, i) {
38
38
  }, 16))
39
39
  ], 64));
40
40
  }
41
- const Se = /* @__PURE__ */ v(Wt, [["render", Dt]]), Ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41
+ const Se = /* @__PURE__ */ v(Wt, [["render", Dt]]), Qi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42
42
  __proto__: null,
43
43
  default: Se
44
44
  }, Symbol.toStringTag, { value: "Module" })), q = () => {
45
- switch (R) {
45
+ switch ($) {
46
46
  case "react":
47
47
  case "reactNative":
48
48
  case "rsc":
@@ -83,7 +83,7 @@ const Se = /* @__PURE__ */ v(Wt, [["render", Dt]]), Ji = /* @__PURE__ */ Object.
83
83
  }
84
84
  }
85
85
  });
86
- function Ut(e, t, n, o, r, i) {
86
+ function Ot(e, t, n, o, r, i) {
87
87
  const s = k("DynamicRenderer");
88
88
  return d(), S(s, {
89
89
  attributes: e.attrs(),
@@ -96,7 +96,7 @@ function Ut(e, t, n, o, r, i) {
96
96
  _: 1
97
97
  }, 8, ["attributes", "TagName", "actionAttributes"]);
98
98
  }
99
- const Ot = /* @__PURE__ */ v(xt, [["render", Ut]]), Ft = Symbol(), he = {
99
+ const Ut = /* @__PURE__ */ v(xt, [["render", Ot]]), Ft = Symbol(), he = {
100
100
  Builder: {
101
101
  content: null,
102
102
  context: {},
@@ -142,7 +142,7 @@ const Ot = /* @__PURE__ */ v(xt, [["render", Ut]]), Ft = Symbol(), he = {
142
142
  return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
143
143
  }, Mt = (e) => E() || wt({
144
144
  shouldLogWarning: !0
145
- }) ? Ht(e) : It(e), qt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, jt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, zt = (e) => {
145
+ }) ? Ht(e) : It(e), qt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, jt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Kt = (e) => {
146
146
  var t, n, o, r, i, s;
147
147
  return ((o = (n = (t = qt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = jt.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
148
148
  };
@@ -158,7 +158,7 @@ function _({
158
158
  }) {
159
159
  if (e.trim() === "")
160
160
  return;
161
- const a = zt(e.trim());
161
+ const a = Kt(e.trim());
162
162
  if (a)
163
163
  return Je({
164
164
  ...o,
@@ -184,7 +184,7 @@ function _({
184
184
  return;
185
185
  }
186
186
  }
187
- function Kt(e, t) {
187
+ function zt(e, t) {
188
188
  var n;
189
189
  return {
190
190
  ...(n = e.component) == null ? void 0 : n.options,
@@ -264,7 +264,7 @@ function fe(e) {
264
264
  n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = fe(e[n]));
265
265
  return t;
266
266
  }
267
- const Zt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), _t = (e) => {
267
+ const Zt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), _t = (e) => {
268
268
  if (Zt) {
269
269
  const t = ye(e);
270
270
  return {
@@ -343,7 +343,7 @@ function se(e) {
343
343
  return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? on(n) : n));
344
344
  }
345
345
  const Be = {};
346
- function Qi(e, t) {
346
+ function Yi(e, t) {
347
347
  e === "plugin" && (t = se(t));
348
348
  let n = Be[e];
349
349
  if (n || (n = Be[e] = []), n.push(t), E()) {
@@ -361,7 +361,7 @@ function Qi(e, t) {
361
361
  }
362
362
  }
363
363
  }
364
- function Yi(e) {
364
+ function Xi(e) {
365
365
  var t;
366
366
  if (E()) {
367
367
  const n = JSON.parse(JSON.stringify(e));
@@ -372,7 +372,7 @@ function Yi(e) {
372
372
  }
373
373
  }
374
374
  const Ve = {};
375
- function Xi(e) {
375
+ function Zi(e) {
376
376
  if (E()) {
377
377
  Object.assign(Ve, e);
378
378
  const t = {
@@ -410,7 +410,7 @@ const Ze = (e) => {
410
410
  We || (We = !0, E() && ((t = window.parent) == null || t.postMessage({
411
411
  type: "builder.sdkInfo",
412
412
  data: {
413
- target: R,
413
+ target: $,
414
414
  version: Pt,
415
415
  supportsPatchUpdates: !1,
416
416
  // Supports builder-model="..." attribute which is needed to
@@ -501,7 +501,7 @@ const Ze = (e) => {
501
501
  break;
502
502
  }
503
503
  }
504
- }, Zi = ({
504
+ }, _i = ({
505
505
  model: e,
506
506
  apiKey: t,
507
507
  callback: n,
@@ -543,7 +543,7 @@ const Ze = (e) => {
543
543
  }), un = ({
544
544
  contentId: e,
545
545
  value: t
546
- }) => ze({
546
+ }) => Ke({
547
547
  name: Ce(e),
548
548
  value: t,
549
549
  canTrack: !0
@@ -637,7 +637,7 @@ function xe() {
637
637
  ...this.getUserAttributes(),
638
638
  ...n
639
639
  };
640
- ze({
640
+ Ke({
641
641
  name: De,
642
642
  value: JSON.stringify(o),
643
643
  canTrack: e
@@ -662,10 +662,10 @@ function xe() {
662
662
  };
663
663
  }
664
664
  let be;
665
- E() && R === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = xe()), be = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : be = xe();
666
- const ae = be, _i = (e) => {
665
+ E() && $ === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = xe()), be = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : be = xe();
666
+ const ae = be, es = (e) => {
667
667
  ae.setUserAttributes(e);
668
- }, K = (e) => {
668
+ }, z = (e) => {
669
669
  const t = re(e) ? e : !0;
670
670
  return ae.setCanTrack(t), t;
671
671
  };
@@ -711,7 +711,7 @@ function yn(e) {
711
711
  }
712
712
  return t;
713
713
  }
714
- const vn = "v3", Ue = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Te = (e) => {
714
+ const vn = "v3", Oe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Te = (e) => {
715
715
  const {
716
716
  limit: t = 30,
717
717
  userAttributes: n,
@@ -734,10 +734,10 @@ const vn = "v3", Ue = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Te = (
734
734
  throw new Error("Missing API key");
735
735
  if (!["v3"].includes(a))
736
736
  throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
737
- const U = t !== 1, B = P || "https://cdn.builder.io", T = new URL(`${B}/api/${a}/content/${r}`);
738
- T.searchParams.set("apiKey", i), T.searchParams.set("limit", String(t)), T.searchParams.set("noTraverse", String(U)), T.searchParams.set("includeRefs", String(!0)), l && T.searchParams.set("locale", l);
737
+ const O = t !== 1, B = P || "https://cdn.builder.io", T = new URL(`${B}/api/${a}/content/${r}`);
738
+ T.searchParams.set("apiKey", i), T.searchParams.set("limit", String(t)), T.searchParams.set("noTraverse", String(O)), T.searchParams.set("includeRefs", String(!0)), l && T.searchParams.set("locale", l);
739
739
  let W = n || {};
740
- if (s && T.searchParams.set("enrich", String(s)), T.searchParams.set("omit", p ?? "meta.componentsUsed"), u && T.searchParams.set("fields", u), Number.isFinite(f) && f > -1 && T.searchParams.set("offset", String(Math.floor(f))), typeof g == "boolean" && T.searchParams.set("includeUnpublished", String(g)), c && Ue(c) && T.searchParams.set("cacheSeconds", String(c)), m && Ue(m) && T.searchParams.set("staleCacheSeconds", String(m)), b) {
740
+ if (s && T.searchParams.set("enrich", String(s)), T.searchParams.set("omit", p ?? "meta.componentsUsed"), u && T.searchParams.set("fields", u), Number.isFinite(f) && f > -1 && T.searchParams.set("offset", String(Math.floor(f))), typeof g == "boolean" && T.searchParams.set("includeUnpublished", String(g)), c && Oe(c) && T.searchParams.set("cacheSeconds", String(c)), m && Oe(m) && T.searchParams.set("staleCacheSeconds", String(m)), b) {
741
741
  const D = ge({
742
742
  sort: b
743
743
  });
@@ -802,8 +802,8 @@ const Tn = async (e) => {
802
802
  };
803
803
  return await (await n(t.href, o)).json();
804
804
  }, wn = async (e, t, n = Te(e)) => {
805
- const o = K(e.canTrack);
806
- if (n.search.includes("preview="), !o || !(E() || R === "reactNative"))
805
+ const o = z(e.canTrack);
806
+ if (n.search.includes("preview="), !o || !(E() || $ === "reactNative"))
807
807
  return t.results;
808
808
  try {
809
809
  const r = [];
@@ -828,7 +828,7 @@ async function In(e) {
828
828
  }), n;
829
829
  return wn(e, n);
830
830
  }
831
- const es = async (e) => {
831
+ const ts = async (e) => {
832
832
  var o, r, i;
833
833
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
834
834
  ...e,
@@ -950,7 +950,7 @@ const at = (e) => Object.entries(e).map(([n, o]) => {
950
950
  if (typeof o == "string")
951
951
  return `${Ie(n)}: ${o};`;
952
952
  }).filter(re), An = (e) => at(e).join(`
953
- `), ts = ({
953
+ `), ns = ({
954
954
  mediaQuery: e,
955
955
  className: t,
956
956
  styles: n
@@ -967,7 +967,7 @@ function Bn({
967
967
  }) {
968
968
  return e;
969
969
  }
970
- const ns = ({
970
+ const os = ({
971
971
  block: e,
972
972
  context: t
973
973
  }) => lt(Bn({
@@ -976,7 +976,7 @@ const ns = ({
976
976
  block: e
977
977
  }));
978
978
  function lt(e) {
979
- switch (R) {
979
+ switch ($) {
980
980
  case "svelte":
981
981
  case "vue":
982
982
  case "solid":
@@ -1054,32 +1054,32 @@ const ct = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1054
1054
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
1055
1055
  builderBlock: t
1056
1056
  } : {};
1057
- }, Un = (e, t) => {
1057
+ }, On = (e, t) => {
1058
1058
  var n;
1059
1059
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
1060
1060
  builderContext: t
1061
1061
  } : {};
1062
- }, On = (e) => e.toString(), Fn = () => Promise.resolve().then(() => _n).then((e) => e.default).catch((e) => {
1062
+ }, Un = (e) => e.toString(), Fn = () => Promise.resolve().then(() => _n).then((e) => e.default).catch((e) => {
1063
1063
  throw console.error(
1064
1064
  "Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
1065
1065
  e
1066
1066
  ), e;
1067
- }), Ln = () => import("./block-wrapper-P5y87ZAx.js").then((e) => e.default).catch((e) => {
1067
+ }), Ln = () => import("./block-wrapper-MpV_yto9.js").then((e) => e.default).catch((e) => {
1068
1068
  throw console.error(
1069
1069
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
1070
1070
  e
1071
1071
  ), e;
1072
- }), Hn = () => import("./component-ref-RUGITshe.js").then((e) => e.default).catch((e) => {
1072
+ }), Hn = () => import("./component-ref-FMaZUEHA.js").then((e) => e.default).catch((e) => {
1073
1073
  throw console.error(
1074
1074
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
1075
1075
  e
1076
1076
  ), e;
1077
- }), Mn = () => import("./repeated-block-Nh0O2sxg.js").then((e) => e.default).catch((e) => {
1077
+ }), Mn = () => import("./repeated-block-om1ZGsyQ.js").then((e) => e.default).catch((e) => {
1078
1078
  throw console.error(
1079
1079
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
1080
1080
  e
1081
1081
  ), e;
1082
- }), qn = () => import("./style-wrapper-y344qWFp.js").then((e) => e.default).catch((e) => {
1082
+ }), qn = () => import("./style-wrapper-2Rqb9g04.js").then((e) => e.default).catch((e) => {
1083
1083
  throw console.error(
1084
1084
  "Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
1085
1085
  e
@@ -1100,7 +1100,7 @@ const ct = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1100
1100
  value: null,
1101
1101
  update: !1
1102
1102
  },
1103
- generateKey: On
1103
+ generateKey: Un
1104
1104
  };
1105
1105
  },
1106
1106
  mounted() {
@@ -1159,9 +1159,9 @@ const ct = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1159
1159
  blockChildren: this.processedBlock.children ?? [],
1160
1160
  componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
1161
1161
  componentOptions: {
1162
- ...Kt(this.processedBlock, this.context),
1162
+ ...zt(this.processedBlock, this.context),
1163
1163
  ...xn(this.blockComponent, this.processedBlock),
1164
- ...Un(this.blockComponent, this.context),
1164
+ ...On(this.blockComponent, this.context),
1165
1165
  ...Wn(this.blockComponent, this.linkComponent),
1166
1166
  ...Dn(
1167
1167
  this.blockComponent,
@@ -1174,22 +1174,22 @@ const ct = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1174
1174
  registeredComponents: this.registeredComponents,
1175
1175
  builderBlock: this.processedBlock,
1176
1176
  includeBlockProps: ((t = this.blockComponent) == null ? void 0 : t.noWrap) === !0,
1177
- isInteractive: !((n = this.blockComponent) != null && n.isRSC && R === "rsc")
1177
+ isInteractive: !((n = this.blockComponent) != null && n.isRSC && $ === "rsc")
1178
1178
  };
1179
1179
  }
1180
1180
  }
1181
1181
  });
1182
- function zn(e, t, n, o, r, i) {
1182
+ function Kn(e, t, n, o, r, i) {
1183
1183
  var f;
1184
1184
  const s = k("StyleWrapper"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), p = k("RepeatedBlock");
1185
- return e.canShowBlock ? (d(), h(w, { key: 0 }, [
1186
- $(s, {
1185
+ return e.canShowBlock ? (d(), h(I, { key: 0 }, [
1186
+ R(s, {
1187
1187
  block: e.processedBlock,
1188
1188
  context: e.context,
1189
1189
  id: e.block.id
1190
1190
  }, null, 8, ["block", "context", "id"]),
1191
- (f = e.blockComponent) != null && f.noWrap ? (d(), h(w, { key: 1 }, [
1192
- e.repeatItem ? (d(!0), h(w, { key: 1 }, F(e.repeatItem, (c, m) => (d(), S(p, {
1191
+ (f = e.blockComponent) != null && f.noWrap ? (d(), h(I, { key: 1 }, [
1192
+ e.repeatItem ? (d(!0), h(I, { key: 1 }, F(e.repeatItem, (c, m) => (d(), S(p, {
1193
1193
  key: e.generateKey(m),
1194
1194
  repeatContext: c.context,
1195
1195
  block: c.block,
@@ -1207,8 +1207,8 @@ function zn(e, t, n, o, r, i) {
1207
1207
  includeBlockProps: e.componentRefProps.includeBlockProps,
1208
1208
  isInteractive: e.componentRefProps.isInteractive
1209
1209
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
1210
- ], 64)) : (d(), h(w, { key: 0 }, [
1211
- e.repeatItem ? (d(!0), h(w, { key: 1 }, F(e.repeatItem, (c, m) => (d(), S(p, {
1210
+ ], 64)) : (d(), h(I, { key: 0 }, [
1211
+ e.repeatItem ? (d(!0), h(I, { key: 1 }, F(e.repeatItem, (c, m) => (d(), S(p, {
1212
1212
  key: e.generateKey(m),
1213
1213
  repeatContext: c.context,
1214
1214
  block: c.block,
@@ -1221,7 +1221,7 @@ function zn(e, t, n, o, r, i) {
1221
1221
  context: e.context
1222
1222
  }, {
1223
1223
  default: x(() => [
1224
- $(l, {
1224
+ R(l, {
1225
1225
  componentRef: e.componentRefProps.componentRef,
1226
1226
  componentOptions: e.componentRefProps.componentOptions,
1227
1227
  blockChildren: e.componentRefProps.blockChildren,
@@ -1232,7 +1232,7 @@ function zn(e, t, n, o, r, i) {
1232
1232
  includeBlockProps: e.componentRefProps.includeBlockProps,
1233
1233
  isInteractive: e.componentRefProps.isInteractive
1234
1234
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
1235
- (d(!0), h(w, null, F(e.childrenWithoutParentComponent, (c, m) => (d(), S(a, {
1235
+ (d(!0), h(I, null, F(e.childrenWithoutParentComponent, (c, m) => (d(), S(a, {
1236
1236
  key: c.id,
1237
1237
  block: c,
1238
1238
  registeredComponents: e.registeredComponents,
@@ -1245,10 +1245,10 @@ function zn(e, t, n, o, r, i) {
1245
1245
  ], 64))
1246
1246
  ], 64)) : C("", !0);
1247
1247
  }
1248
- const dt = /* @__PURE__ */ v(jn, [["render", zn]]), os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1248
+ const dt = /* @__PURE__ */ v(jn, [["render", Kn]]), rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1249
1249
  __proto__: null,
1250
1250
  default: dt
1251
- }, Symbol.toStringTag, { value: "Module" })), Kn = y({
1251
+ }, Symbol.toStringTag, { value: "Module" })), zn = y({
1252
1252
  name: "builder-blocks-wrapper",
1253
1253
  props: [
1254
1254
  "blocks",
@@ -1319,7 +1319,7 @@ const dt = /* @__PURE__ */ v(jn, [["render", zn]]), os = /* @__PURE__ */ Object.
1319
1319
  }
1320
1320
  });
1321
1321
  function Gn(e, t, n, o, r, i) {
1322
- return d(), S(Y(e.BlocksWrapper), I({
1322
+ return d(), S(Y(e.BlocksWrapper), w({
1323
1323
  ref: "blocksWrapperRef",
1324
1324
  class: e.className + " component-5vz8uirn7sc",
1325
1325
  "builder-path": e.dataPath,
@@ -1335,7 +1335,7 @@ function Gn(e, t, n, o, r, i) {
1335
1335
  _: 3
1336
1336
  }, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
1337
1337
  }
1338
- const Jn = /* @__PURE__ */ v(Kn, [["render", Gn], ["__scopeId", "data-v-82fc93d6"]]), Qn = y({
1338
+ const Jn = /* @__PURE__ */ v(zn, [["render", Gn], ["__scopeId", "data-v-82fc93d6"]]), Qn = y({
1339
1339
  name: "builder-blocks",
1340
1340
  components: { BlocksWrapper: Jn, Block: dt },
1341
1341
  props: [
@@ -1368,7 +1368,7 @@ function Yn(e, t, n, o, r, i) {
1368
1368
  }, {
1369
1369
  default: x(() => [
1370
1370
  V(e.$slots, "default"),
1371
- e.blocks ? (d(!0), h(w, { key: 0 }, F(e.blocks, (c, m) => {
1371
+ e.blocks ? (d(!0), h(I, { key: 0 }, F(e.blocks, (c, m) => {
1372
1372
  var b;
1373
1373
  return d(), S(s, {
1374
1374
  key: c.id,
@@ -1425,7 +1425,7 @@ const ee = /* @__PURE__ */ v(Xn, [["render", Zn]]), _n = /* @__PURE__ */ Object.
1425
1425
  default: 991,
1426
1426
  max: 1200
1427
1427
  }
1428
- }, rs = (e, t = ut) => `@media (max-width: ${t[e].max}px)`, eo = (e) => {
1428
+ }, is = (e, t = ut) => `@media (max-width: ${t[e].max}px)`, eo = (e) => {
1429
1429
  const t = ye(ut);
1430
1430
  if (!e)
1431
1431
  return t;
@@ -1482,7 +1482,7 @@ const ee = /* @__PURE__ */ v(Xn, [["render", Zn]]), _n = /* @__PURE__ */ Object.
1482
1482
  "builderComponents"
1483
1483
  ],
1484
1484
  data() {
1485
- return { TARGET: R, getColumnsClass: to };
1485
+ return { TARGET: $, getColumnsClass: to };
1486
1486
  },
1487
1487
  computed: {
1488
1488
  gutterSize() {
@@ -1607,8 +1607,8 @@ const ee = /* @__PURE__ */ v(Xn, [["render", Zn]]), _n = /* @__PURE__ */ Object.
1607
1607
  function oo(e, t, n, o, r, i) {
1608
1608
  var u;
1609
1609
  const s = k("InlinedStyles"), l = k("Blocks"), a = k("DynamicRenderer");
1610
- return d(), h("div", I({
1611
- class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-29wpyomtntv",
1610
+ return d(), h("div", w({
1611
+ class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-1be3j8m9ewb",
1612
1612
  style: e.columnsCssVars()
1613
1613
  }, {}), [
1614
1614
  e.TARGET !== "reactNative" ? (d(), S(s, {
@@ -1617,14 +1617,14 @@ function oo(e, t, n, o, r, i) {
1617
1617
  styles: e.columnsStyles(),
1618
1618
  nonce: e.builderContext.nonce
1619
1619
  }, null, 8, ["styles", "nonce"])) : C("", !0),
1620
- (d(!0), h(w, null, F(e.columns, (p, f) => (d(), S(a, {
1620
+ (d(!0), h(I, null, F(e.columns, (p, f) => (d(), S(a, {
1621
1621
  key: f,
1622
1622
  TagName: e.getTagName(p),
1623
1623
  actionAttributes: {},
1624
1624
  attributes: e.getAttributes(p, f)
1625
1625
  }, {
1626
1626
  default: x(() => [
1627
- $(l, {
1627
+ R(l, {
1628
1628
  path: `columns.${f}.blocks`,
1629
1629
  parent: e.builderBlock.id,
1630
1630
  context: e.builderContext,
@@ -1640,7 +1640,7 @@ function oo(e, t, n, o, r, i) {
1640
1640
  }, 1032, ["TagName", "attributes"]))), 128))
1641
1641
  ], 16);
1642
1642
  }
1643
- const ro = /* @__PURE__ */ v(no, [["render", oo], ["__scopeId", "data-v-f17e7a38"]]), io = y({
1643
+ const ro = /* @__PURE__ */ v(no, [["render", oo], ["__scopeId", "data-v-ab15749a"]]), io = y({
1644
1644
  name: "builder-fragment-component",
1645
1645
  props: []
1646
1646
  });
@@ -1650,7 +1650,7 @@ function so(e, t, n, o, r, i) {
1650
1650
  ]);
1651
1651
  }
1652
1652
  const ao = /* @__PURE__ */ v(io, [["render", so]]);
1653
- function Oe(e) {
1653
+ function Ue(e) {
1654
1654
  return e.replace(/http(s)?:/, "");
1655
1655
  }
1656
1656
  function lo(e = "", t, n) {
@@ -1661,11 +1661,11 @@ function co(e, t) {
1661
1661
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1662
1662
  return e;
1663
1663
  if (t === "master")
1664
- return Oe(e);
1664
+ return Ue(e);
1665
1665
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1666
1666
  if (n) {
1667
1667
  const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
1668
- return Oe(`${o[0]}_${i}${r}`);
1668
+ return Ue(`${o[0]}_${i}${r}`);
1669
1669
  }
1670
1670
  return null;
1671
1671
  }
@@ -1737,14 +1737,14 @@ const uo = y({
1737
1737
  };
1738
1738
  function fo(e, t, n, o, r, i) {
1739
1739
  var s, l, a, u, p, f;
1740
- return d(), h(w, null, [
1741
- z("picture", null, [
1740
+ return d(), h(I, null, [
1741
+ K("picture", null, [
1742
1742
  e.webpSrcSet ? (d(), h("source", {
1743
1743
  key: 0,
1744
1744
  type: "image/webp",
1745
1745
  srcset: e.webpSrcSet
1746
1746
  }, null, 8, po)) : C("", !0),
1747
- z("img", {
1747
+ K("img", {
1748
1748
  loading: e.highPriority ? "eager" : "lazy",
1749
1749
  fetchpriority: e.highPriority ? "high" : "auto",
1750
1750
  alt: e.altText,
@@ -1784,7 +1784,7 @@ const bo = /* @__PURE__ */ v(uo, [["render", fo], ["__scopeId", "data-v-741b9bbc
1784
1784
  }
1785
1785
  });
1786
1786
  function yo(e, t, n, o, r, i) {
1787
- return d(), h("section", I({
1787
+ return d(), h("section", w({
1788
1788
  style: {
1789
1789
  width: "100%",
1790
1790
  alignSelf: "stretch",
@@ -1797,7 +1797,7 @@ function yo(e, t, n, o, r, i) {
1797
1797
  marginLeft: "auto",
1798
1798
  marginRight: "auto"
1799
1799
  }
1800
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
1800
+ }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
1801
1801
  V(e.$slots, "default")
1802
1802
  ], 16);
1803
1803
  }
@@ -2022,7 +2022,7 @@ const ko = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
2022
2022
  }
2023
2023
  }`, ne = "default", wo = "filterWithCustomTargeting", pt = "builderIoPersonalization", mt = "updateVisibilityStylesScript", ht = ["react", "vue", "svelte", "qwik"], ft = ["vue", "svelte", "qwik"];
2024
2024
  function Io(e, t) {
2025
- return !(e && e.length > 0) || !t ? !1 : ft.includes(R) ? !0 : !E();
2025
+ return !(e && e.length > 0) || !t ? !1 : ft.includes($) ? !0 : !E();
2026
2026
  }
2027
2027
  function $o({
2028
2028
  variants: e,
@@ -2066,7 +2066,7 @@ const Ro = () => `
2066
2066
  window.${wo} = ${Co}
2067
2067
  window.${pt} = ${ko}
2068
2068
  window.${mt} = ${To}
2069
- `, bt = R === "react", Eo = (e, t, n) => `window.${pt}(${JSON.stringify(e)}, "${t}", ${bt}${n ? `, "${n}"` : ""})`, Po = (e, t, n) => `window.${mt}(${JSON.stringify(e)}, "${t}", ${bt}${n ? `, "${n}"` : ""})`, de = {
2069
+ `, bt = $ === "react", Eo = (e, t, n) => `window.${pt}(${JSON.stringify(e)}, "${t}", ${bt}${n ? `, "${n}"` : ""})`, Po = (e, t, n) => `window.${mt}(${JSON.stringify(e)}, "${t}", ${bt}${n ? `, "${n}"` : ""})`, de = {
2070
2070
  "@type": "@builder.io/sdk:Element",
2071
2071
  layerName: "Accordion item title",
2072
2072
  responsiveStyles: {
@@ -2292,8 +2292,8 @@ function Wo(e, t, n, o, r, i) {
2292
2292
  class: "builder-accordion",
2293
2293
  style: M(e.accordionStyles)
2294
2294
  }, [
2295
- (d(!0), h(w, null, F(e.items, (l, a) => (d(), h(w, { key: a }, [
2296
- z("div", {
2295
+ (d(!0), h(I, null, F(e.items, (l, a) => (d(), h(I, { key: a }, [
2296
+ K("div", {
2297
2297
  class: Z(e.getAccordionTitleClassName(a)),
2298
2298
  style: M({
2299
2299
  ...e.accordionTitleStyles,
@@ -2305,7 +2305,7 @@ function Wo(e, t, n, o, r, i) {
2305
2305
  "data-index": a,
2306
2306
  onClick: async (u) => e.onClick(a)
2307
2307
  }, [
2308
- $(s, {
2308
+ R(s, {
2309
2309
  blocks: l.title,
2310
2310
  path: `items.${a}.title`,
2311
2311
  parent: e.builderBlock.id,
@@ -2319,7 +2319,7 @@ function Wo(e, t, n, o, r, i) {
2319
2319
  class: Z(e.getAccordionDetailClassName(a)),
2320
2320
  style: M(e.accordionDetailStyles)
2321
2321
  }, [
2322
- $(s, {
2322
+ R(s, {
2323
2323
  blocks: l.detail,
2324
2324
  path: `items.${a}.detail`,
2325
2325
  parent: e.builderBlock.id,
@@ -2367,7 +2367,7 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
2367
2367
  shouldReceiveBuilderProps: {
2368
2368
  builderLinkComponent: !0
2369
2369
  }
2370
- }, Uo = {
2370
+ }, Oo = {
2371
2371
  // TODO: ways to statically preprocess JSON for references, functions, etc
2372
2372
  name: "Columns",
2373
2373
  isRSC: !0,
@@ -2574,7 +2574,7 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
2574
2574
  builderComponents: !0,
2575
2575
  builderLinkComponent: !0
2576
2576
  }
2577
- }, Oo = {
2577
+ }, Uo = {
2578
2578
  name: "Fragment",
2579
2579
  static: !0,
2580
2580
  hidden: !0,
@@ -2770,10 +2770,10 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
2770
2770
  unsubscribers: [],
2771
2771
  shouldRenderVariants: Io(
2772
2772
  this.variants,
2773
- K((s = this.builderContext) == null ? void 0 : s.canTrack)
2773
+ z((s = this.builderContext) == null ? void 0 : s.canTrack)
2774
2774
  ),
2775
2775
  shouldResetVariants: !1,
2776
- TARGET: R,
2776
+ TARGET: $,
2777
2777
  DEFAULT_INDEX: ne,
2778
2778
  SDKS_REQUIRING_RESET_APPROACH: ft
2779
2779
  };
@@ -2786,7 +2786,7 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
2786
2786
  this.userAttributes = n;
2787
2787
  },
2788
2788
  {
2789
- fireImmediately: R === "qwik"
2789
+ fireImmediately: $ === "qwik"
2790
2790
  }
2791
2791
  );
2792
2792
  if (!(A() || ke())) {
@@ -2864,9 +2864,9 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
2864
2864
  }
2865
2865
  });
2866
2866
  function qo(e, t, n, o, r, i) {
2867
- var u, p, f, c, m, b, g, P, U, B;
2867
+ var u, p, f, c, m, b, g, P, O, B;
2868
2868
  const s = k("Blocks"), l = k("InlinedStyles"), a = k("InlinedScript");
2869
- return d(), h("div", I({ ref: "rootRef" }, e.attrs), [
2869
+ return d(), h("div", w({ ref: "rootRef" }, e.attrs), [
2870
2870
  e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), S(s, {
2871
2871
  key: 0,
2872
2872
  blocks: e.blocksToRender.blocks,
@@ -2879,19 +2879,19 @@ function qo(e, t, n, o, r, i) {
2879
2879
  "data-variant-id": `${(f = e.builderBlock) == null ? void 0 : f.id}-${e.blocksToRender.index}`
2880
2880
  }
2881
2881
  }, null, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])) : C("", !0),
2882
- !e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), h(w, { key: 1 }, [
2883
- e.shouldRenderVariants ? (d(), h(w, { key: 0 }, [
2884
- $(l, {
2882
+ !e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), h(I, { key: 1 }, [
2883
+ e.shouldRenderVariants ? (d(), h(I, { key: 0 }, [
2884
+ R(l, {
2885
2885
  nonce: ((c = e.builderContext) == null ? void 0 : c.nonce) || "",
2886
2886
  styles: e.hideVariantsStyleString,
2887
2887
  id: `variants-styles-${(m = e.builderBlock) == null ? void 0 : m.id}`
2888
2888
  }, null, 8, ["nonce", "styles", "id"]),
2889
- $(a, {
2889
+ R(a, {
2890
2890
  nonce: ((b = e.builderContext) == null ? void 0 : b.nonce) || "",
2891
2891
  scriptStr: e.updateVisibilityStylesScript,
2892
2892
  id: `variants-visibility-script-${(g = e.builderBlock) == null ? void 0 : g.id}`
2893
2893
  }, null, 8, ["nonce", "scriptStr", "id"]),
2894
- (d(!0), h(w, null, F(e.variants, (T, W) => {
2894
+ (d(!0), h(I, null, F(e.variants, (T, W) => {
2895
2895
  var G, J, D, H;
2896
2896
  return d(), S(s, {
2897
2897
  key: `${(G = e.builderBlock) == null ? void 0 : G.id}-${W}`,
@@ -2910,7 +2910,7 @@ function qo(e, t, n, o, r, i) {
2910
2910
  default: x(() => {
2911
2911
  var Ee, Pe;
2912
2912
  return [
2913
- $(a, {
2913
+ R(a, {
2914
2914
  nonce: ((Ee = e.builderContext) == null ? void 0 : Ee.nonce) || "",
2915
2915
  scriptStr: e.scriptStr,
2916
2916
  id: `variants-script-${(Pe = e.builderBlock) == null ? void 0 : Pe.id}-${W}`
@@ -2921,14 +2921,14 @@ function qo(e, t, n, o, r, i) {
2921
2921
  }, 1032, ["BlocksWrapperProps", "blocks", "parent", "path", "context", "registeredComponents"]);
2922
2922
  }), 128))
2923
2923
  ], 64)) : C("", !0),
2924
- $(s, {
2924
+ R(s, {
2925
2925
  blocks: e.blocksToRender.blocks,
2926
2926
  parent: (P = e.builderBlock) == null ? void 0 : P.id,
2927
2927
  path: e.blocksToRender.path,
2928
2928
  context: e.builderContext,
2929
2929
  registeredComponents: e.builderComponents,
2930
2930
  BlocksWrapperProps: {
2931
- ...(U = e.builderContext) == null ? void 0 : U.BlocksWrapperProps,
2931
+ ...(O = e.builderContext) == null ? void 0 : O.BlocksWrapperProps,
2932
2932
  "data-variant-id": `${(B = e.builderBlock) == null ? void 0 : B.id}-${e.blocksToRender.index}`
2933
2933
  }
2934
2934
  }, {
@@ -2948,7 +2948,7 @@ function qo(e, t, n, o, r, i) {
2948
2948
  ], 64)) : C("", !0)
2949
2949
  ], 16);
2950
2950
  }
2951
- const jo = /* @__PURE__ */ v(Mo, [["render", qo]]), zo = {
2951
+ const jo = /* @__PURE__ */ v(Mo, [["render", qo]]), Ko = {
2952
2952
  name: "Core:Section",
2953
2953
  static: !0,
2954
2954
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -2987,7 +2987,7 @@ const jo = /* @__PURE__ */ v(Mo, [["render", qo]]), zo = {
2987
2987
  }
2988
2988
  }
2989
2989
  }]
2990
- }, Ko = {
2990
+ }, zo = {
2991
2991
  name: "Slot",
2992
2992
  isRSC: !0,
2993
2993
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -3012,7 +3012,7 @@ const jo = /* @__PURE__ */ v(Mo, [["render", qo]]), zo = {
3012
3012
  function Jo(e, t, n, o, r, i) {
3013
3013
  var l, a, u;
3014
3014
  const s = k("Blocks");
3015
- return d(), h("div", I(
3015
+ return d(), h("div", w(
3016
3016
  { style: {
3017
3017
  pointerEvents: "auto"
3018
3018
  } },
@@ -3020,7 +3020,7 @@ function Jo(e, t, n, o, r, i) {
3020
3020
  "builder-slot": e.name
3021
3021
  }
3022
3022
  ), [
3023
- $(s, {
3023
+ R(s, {
3024
3024
  parent: (a = e.builderContext.context) == null ? void 0 : a.symbolId,
3025
3025
  path: `symbol.data.${e.name}`,
3026
3026
  context: e.builderContext,
@@ -3241,7 +3241,7 @@ const Qo = /* @__PURE__ */ v(Go, [["render", Jo]]), Yo = {
3241
3241
  function tr(e, t, n, o, r, i) {
3242
3242
  const s = k("Blocks");
3243
3243
  return d(), h("div", null, [
3244
- z("div", {
3244
+ K("div", {
3245
3245
  class: "builder-tabs-wrap",
3246
3246
  style: M({
3247
3247
  display: "flex",
@@ -3250,13 +3250,13 @@ function tr(e, t, n, o, r, i) {
3250
3250
  overflow: "auto"
3251
3251
  })
3252
3252
  }, [
3253
- (d(!0), h(w, null, F(e.tabs, (l, a) => (d(), h("span", {
3253
+ (d(!0), h(I, null, F(e.tabs, (l, a) => (d(), h("span", {
3254
3254
  key: a,
3255
3255
  class: Z(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
3256
3256
  style: M(e.getTabStyle(a)),
3257
3257
  onClick: async (u) => e.onClick(a)
3258
3258
  }, [
3259
- $(s, {
3259
+ R(s, {
3260
3260
  parent: e.builderBlock.id,
3261
3261
  path: `tabs.${a}.label`,
3262
3262
  blocks: l.label,
@@ -3267,7 +3267,7 @@ function tr(e, t, n, o, r, i) {
3267
3267
  ], 14, _o))), 128))
3268
3268
  ], 4),
3269
3269
  e.activeTabContent(e.activeTab) ? (d(), h("div", er, [
3270
- $(s, {
3270
+ R(s, {
3271
3271
  parent: e.builderBlock.id,
3272
3272
  path: `tabs.${e.activeTab}.content`,
3273
3273
  blocks: e.activeTabContent(e.activeTab),
@@ -3818,7 +3818,7 @@ const vr = /* @__PURE__ */ v(br, [["render", yr]]), Sr = {
3818
3818
  const p = `${Cr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
3819
3819
  this.sendSubmissionsToEmail || ""
3820
3820
  )}&name=${encodeURIComponent(this.name || "")}`, f = this.sendSubmissionsTo === "email" ? p : this.action;
3821
- Ke(f), fetch(f, {
3821
+ ze(f), fetch(f, {
3822
3822
  body: i,
3823
3823
  headers: r,
3824
3824
  method: this.method || "post"
@@ -3828,15 +3828,15 @@ const vr = /* @__PURE__ */ v(br, [["render", yr]]), Sr = {
3828
3828
  let m;
3829
3829
  const b = c.headers.get("content-type");
3830
3830
  if (b && b.indexOf("application/json") !== -1 ? m = await c.json() : m = await c.text(), !c.ok) {
3831
- const U = new CustomEvent("submit:error", {
3831
+ const O = new CustomEvent("submit:error", {
3832
3832
  detail: {
3833
3833
  error: m,
3834
3834
  status: c.status
3835
3835
  }
3836
3836
  });
3837
3837
  if ((g = this.$refs.formRef) != null && g.nativeElement && ((P = this.$refs.formRef) == null || P.nativeElement.dispatchEvent(
3838
- U
3839
- ), U.defaultPrevented))
3838
+ O
3839
+ ), O.defaultPrevented))
3840
3840
  return;
3841
3841
  this.responseData = m, this.formState = "error";
3842
3842
  let B = this.errorMessagePath ? Je(m, this.errorMessagePath) : m.message || m.error || m;
@@ -3846,14 +3846,14 @@ const vr = /* @__PURE__ */ v(br, [["render", yr]]), Sr = {
3846
3846
  return;
3847
3847
  }
3848
3848
  if (this.responseData = m, this.formState = c.ok ? "success" : "error", c.ok) {
3849
- const U = new CustomEvent("submit:success", {
3849
+ const O = new CustomEvent("submit:success", {
3850
3850
  detail: {
3851
3851
  res: c,
3852
3852
  body: m
3853
3853
  }
3854
3854
  });
3855
3855
  if (this.$refs.formRef) {
3856
- if (this.$refs.formRef.dispatchEvent(U), U.defaultPrevented)
3856
+ if (this.$refs.formRef.dispatchEvent(O), O.defaultPrevented)
3857
3857
  return;
3858
3858
  this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
3859
3859
  }
@@ -3887,14 +3887,14 @@ const vr = /* @__PURE__ */ v(br, [["render", yr]]), Sr = {
3887
3887
  };
3888
3888
  function $r(e, t, n, o, r, i) {
3889
3889
  const s = k("Blocks");
3890
- return d(), h("form", I({
3890
+ return d(), h("form", w({
3891
3891
  validate: e.validate,
3892
3892
  ref: "formRef",
3893
3893
  action: !e.sendWithJs && e.action,
3894
3894
  method: e.method,
3895
3895
  name: e.name,
3896
3896
  onSubmit: t[0] || (t[0] = async (l) => e.onSubmit(l))
3897
- }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3897
+ }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3898
3898
  V(e.$slots, "default", {}, void 0, !0),
3899
3899
  e.submissionState() === "error" ? (d(), S(s, {
3900
3900
  key: 0,
@@ -3984,7 +3984,7 @@ const Rr = /* @__PURE__ */ v(Tr, [["render", $r], ["__scopeId", "data-v-77c7888c
3984
3984
  }
3985
3985
  }), Ar = ["placeholder", "type", "name", "value", "defaultValue", "required"];
3986
3986
  function Br(e, t, n, o, r, i) {
3987
- return d(), h("input", I({
3987
+ return d(), h("input", w({
3988
3988
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
3989
3989
  placeholder: e.placeholder,
3990
3990
  type: e.type,
@@ -3992,7 +3992,7 @@ function Br(e, t, n, o, r, i) {
3992
3992
  value: e.value,
3993
3993
  defaultValue: e.defaultValue,
3994
3994
  required: e.required
3995
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Ar);
3995
+ }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Ar);
3996
3996
  }
3997
3997
  const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
3998
3998
  name: "Form:Select",
@@ -4043,21 +4043,21 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
4043
4043
  return { isEditing: A, filterAttrs: N };
4044
4044
  }
4045
4045
  }), Dr = ["value", "defaultValue", "name", "required"], xr = ["value"];
4046
- function Ur(e, t, n, o, r, i) {
4047
- return d(), h("select", I({
4046
+ function Or(e, t, n, o, r, i) {
4047
+ return d(), h("select", w({
4048
4048
  value: e.value,
4049
4049
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
4050
4050
  defaultValue: e.defaultValue,
4051
4051
  name: e.name,
4052
4052
  required: e.required
4053
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4054
- (d(!0), h(w, null, F(e.options, (s, l) => (d(), h("option", {
4053
+ }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4054
+ (d(!0), h(I, null, F(e.options, (s, l) => (d(), h("option", {
4055
4055
  key: `${s.name}-${l}`,
4056
4056
  value: s.value
4057
4057
  }, le(s.name || s.value), 9, xr))), 128))
4058
4058
  ], 16, Dr);
4059
4059
  }
4060
- const Or = /* @__PURE__ */ v(Wr, [["render", Ur]]), Fr = {
4060
+ const Ur = /* @__PURE__ */ v(Wr, [["render", Or]]), Fr = {
4061
4061
  name: "Form:SubmitButton",
4062
4062
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
4063
4063
  defaultStyles: {
@@ -4090,7 +4090,7 @@ const Or = /* @__PURE__ */ v(Wr, [["render", Ur]]), Fr = {
4090
4090
  }
4091
4091
  });
4092
4092
  function Hr(e, t, n, o, r, i) {
4093
- return d(), h("button", I({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), le(e.text), 17);
4093
+ return d(), h("button", w({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), le(e.text), 17);
4094
4094
  }
4095
4095
  const Mr = /* @__PURE__ */ v(Lr, [["render", Hr]]), qr = {
4096
4096
  name: "Form:TextArea",
@@ -4141,17 +4141,17 @@ const Mr = /* @__PURE__ */ v(Lr, [["render", Hr]]), qr = {
4141
4141
  data() {
4142
4142
  return { filterAttrs: N };
4143
4143
  }
4144
- }), zr = ["placeholder", "name", "value", "defaultValue", "required"];
4145
- function Kr(e, t, n, o, r, i) {
4146
- return d(), h("textarea", I({
4144
+ }), Kr = ["placeholder", "name", "value", "defaultValue", "required"];
4145
+ function zr(e, t, n, o, r, i) {
4146
+ return d(), h("textarea", w({
4147
4147
  placeholder: e.placeholder,
4148
4148
  name: e.name,
4149
4149
  value: e.value,
4150
4150
  defaultValue: e.defaultValue,
4151
4151
  required: e.required
4152
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, zr);
4152
+ }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Kr);
4153
4153
  }
4154
- const Gr = /* @__PURE__ */ v(jr, [["render", Kr]]), Jr = {
4154
+ const Gr = /* @__PURE__ */ v(jr, [["render", zr]]), Jr = {
4155
4155
  name: "Raw:Img",
4156
4156
  hideFromInsertMenu: !0,
4157
4157
  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",
@@ -4228,7 +4228,7 @@ const Gr = /* @__PURE__ */ v(jr, [["render", Kr]]), Jr = {
4228
4228
  }), Yr = ["alt", "title", "src"];
4229
4229
  function Xr(e, t, n, o, r, i) {
4230
4230
  var s;
4231
- return d(), h("img", I({
4231
+ return d(), h("img", w({
4232
4232
  loading: "lazy",
4233
4233
  key: e.isEditing() && e.imgSrc || "default-key",
4234
4234
  alt: e.altText,
@@ -4425,7 +4425,7 @@ const Zr = /* @__PURE__ */ v(Qr, [["render", Xr]]), _r = {
4425
4425
  function ii(e, t, n, o, r, i) {
4426
4426
  var s, l, a, u, p, f, c;
4427
4427
  return d(), h("div", ti, [
4428
- z("video", I({
4428
+ K("video", w({
4429
4429
  class: "builder-video",
4430
4430
  ref: "videoRef",
4431
4431
  preload: e.lazyLoad ? "none" : e.preload || "metadata",
@@ -4444,7 +4444,7 @@ function ii(e, t, n, o, r, i) {
4444
4444
  },
4445
4445
  poster: e.posterImage
4446
4446
  }, e.spreadProps), [
4447
- z("source", I(
4447
+ K("source", w(
4448
4448
  { type: "video/mp4" },
4449
4449
  e.lazyLoad ? {
4450
4450
  "data-src": e.video
@@ -4486,7 +4486,7 @@ const si = /* @__PURE__ */ v(ei, [["render", ii]]), ai = () => [{
4486
4486
  component: Mr,
4487
4487
  ...Fr
4488
4488
  }, {
4489
- component: Or,
4489
+ component: Ur,
4490
4490
  ...Nr
4491
4491
  }, {
4492
4492
  component: Gr,
@@ -4498,30 +4498,30 @@ const si = /* @__PURE__ */ v(ei, [["render", ii]]), ai = () => [{
4498
4498
  component: si,
4499
4499
  ..._r
4500
4500
  }], Fe = () => [{
4501
- component: Ot,
4501
+ component: Ut,
4502
4502
  ...xo
4503
4503
  }, {
4504
4504
  component: ro,
4505
- ...Uo
4505
+ ...Oo
4506
4506
  }, {
4507
4507
  component: ao,
4508
- ...Oo
4508
+ ...Uo
4509
4509
  }, {
4510
4510
  component: bo,
4511
4511
  ...Lo
4512
4512
  }, {
4513
4513
  component: vo,
4514
- ...zo
4514
+ ...Ko
4515
4515
  }, {
4516
4516
  component: Qo,
4517
- ...Ko
4517
+ ...zo
4518
4518
  }, {
4519
4519
  component: zi,
4520
4520
  ...Yo
4521
4521
  }, {
4522
4522
  component: ar,
4523
4523
  ...or
4524
- }, ...ht.includes(R) ? [{
4524
+ }, ...ht.includes($) ? [{
4525
4525
  component: jo,
4526
4526
  ...Ho
4527
4527
  }] : [], {
@@ -4630,13 +4630,43 @@ const si = /* @__PURE__ */ v(ei, [["render", ii]]), ai = () => [{
4630
4630
  })), di = ({
4631
4631
  canTrack: e,
4632
4632
  content: t
4633
- }) => !(!(oe(t).length > 0) || !e), ui = (e) => e === "react" || e === "reactNative", pi = R === "angular", vt = ui(R), mi = () => `
4633
+ }) => !(!(oe(t).length > 0) || !e), ui = (e) => e === "react" || e === "reactNative", pi = $ === "angular", vt = ui($), mi = (e, t) => `
4634
+ (function() {
4635
+ var selector = 'script[data-id="${e}"]';
4636
+ var scriptKey = '__builderioScriptInitialized_${e}';
4637
+ var observerKey = '__builderioScriptObserver_${e}';
4638
+
4639
+ // Synchronously remove any duplicates already in the DOM
4640
+ var existing = document.querySelectorAll(selector);
4641
+ existing.forEach(function(script, index) {
4642
+ if (index > 0) {
4643
+ script.parentNode && script.parentNode.removeChild(script);
4644
+ }
4645
+ });
4646
+
4647
+ // Watch for duplicates added later (e.g. RSC streaming chunks)
4648
+ if (!window[observerKey] && typeof MutationObserver !== 'undefined') {
4649
+ window[observerKey] = new MutationObserver(function() {
4650
+ var all = document.querySelectorAll(selector);
4651
+ for (var i = 1; i < all.length; i++) {
4652
+ all[i].parentNode && all[i].parentNode.removeChild(all[i]);
4653
+ }
4654
+ });
4655
+ window[observerKey].observe(document.documentElement, { childList: true, subtree: true });
4656
+ }
4657
+
4658
+ if (!window[scriptKey]) {
4659
+ window[scriptKey] = true;
4660
+ ${t}
4661
+ }
4662
+ })();
4663
+ `, hi = () => `
4634
4664
  window.${gt} = ${li}
4635
4665
  window.${yt} = ${ci}
4636
- `, hi = (e, t) => `
4666
+ `, fi = (e, t) => `
4637
4667
  window.${gt}(
4638
4668
  "${t}",${JSON.stringify(e)}, ${vt}, ${pi}
4639
- )`, fi = ({
4669
+ )`, bi = ({
4640
4670
  contentId: e,
4641
4671
  variationId: t
4642
4672
  }) => `window.${yt}(
@@ -4645,7 +4675,7 @@ const si = /* @__PURE__ */ v(ei, [["render", ii]]), ai = () => [{
4645
4675
  function Le(e) {
4646
4676
  return Math.round(e * 1e3) / 1e3;
4647
4677
  }
4648
- const bi = (e, t, n = !0) => {
4678
+ const gi = (e, t, n = !0) => {
4649
4679
  if (!(e instanceof HTMLElement))
4650
4680
  return null;
4651
4681
  let o = n ? e : e.parentElement;
@@ -4656,7 +4686,7 @@ const bi = (e, t, n = !0) => {
4656
4686
  return o;
4657
4687
  } while (o = o.parentElement);
4658
4688
  return null;
4659
- }, gi = (e) => bi(e, (t) => {
4689
+ }, yi = (e) => gi(e, (t) => {
4660
4690
  const n = t.getAttribute("builder-id") || t.id;
4661
4691
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
4662
4692
  }), He = ({
@@ -4668,8 +4698,8 @@ const bi = (e, t, n = !0) => {
4668
4698
  x: i,
4669
4699
  y: s
4670
4700
  };
4671
- }, yi = (e) => {
4672
- const t = e.target, n = t && gi(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4701
+ }, vi = (e) => {
4702
+ const t = e.target, n = t && yi(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4673
4703
  return {
4674
4704
  targetBuilderElement: o || void 0,
4675
4705
  metadata: {
@@ -4684,7 +4714,7 @@ const bi = (e, t, n = !0) => {
4684
4714
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
4685
4715
  }
4686
4716
  };
4687
- }, vi = ["svelte", "qwik", "vue"], Si = () => vi.includes(R) && (A() || ke()), ki = (e) => {
4717
+ }, Si = ["svelte", "qwik", "vue"], ki = () => Si.includes($) && (A() || ke()), Ci = (e) => {
4688
4718
  var i;
4689
4719
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((i = e == null ? void 0 : e.files) == null ? void 0 : i.regular);
4690
4720
  let r = "";
@@ -4710,15 +4740,15 @@ font-weight: ${s};
4710
4740
  `.trim());
4711
4741
  }
4712
4742
  return r;
4713
- }, Ci = ({
4743
+ }, Ti = ({
4714
4744
  customFonts: e
4715
4745
  }) => {
4716
4746
  var t;
4717
- return ((t = e == null ? void 0 : e.map((n) => ki(n))) == null ? void 0 : t.join(" ")) || "";
4718
- }, Ti = ({
4747
+ return ((t = e == null ? void 0 : e.map((n) => Ci(n))) == null ? void 0 : t.join(" ")) || "";
4748
+ }, wi = ({
4719
4749
  cssCode: e,
4720
4750
  contentId: t
4721
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", wi = `
4751
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ii = `
4722
4752
  .builder-button {
4723
4753
  all: unset;
4724
4754
  }
@@ -4735,7 +4765,7 @@ font-weight: ${s};
4735
4765
  text-align: inherit;
4736
4766
  font-family: inherit;
4737
4767
  }
4738
- `, Ii = (e) => e ? "" : wi, $i = (e) => `variant-${e}`, Ri = y({
4768
+ `, $i = (e) => e ? "" : Ii, Ri = (e) => `variant-${e}`, Ei = y({
4739
4769
  name: "enable-editor",
4740
4770
  components: { DynamicDiv: ee },
4741
4771
  props: [
@@ -4766,8 +4796,8 @@ font-weight: ${s};
4766
4796
  httpReqsPending: {},
4767
4797
  clicked: !1,
4768
4798
  builderContext: he,
4769
- needsElementRefDivForEditing: Si,
4770
- getWrapperClassName: $i
4799
+ needsElementRefDivForEditing: ki,
4800
+ getWrapperClassName: Ri
4771
4801
  };
4772
4802
  },
4773
4803
  provide() {
@@ -4785,7 +4815,7 @@ font-weight: ${s};
4785
4815
  A() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4786
4816
  new CustomEvent("initeditingbldr")
4787
4817
  );
4788
- const o = this.builderContextSignal.content && K(this.canTrack), r = ve({
4818
+ const o = this.builderContextSignal.content && z(this.canTrack), r = ve({
4789
4819
  name: `builder.tests.${(e = this.builderContextSignal.content) == null ? void 0 : e.id}`,
4790
4820
  canTrack: !0
4791
4821
  }), i = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId;
@@ -4934,11 +4964,11 @@ font-weight: ${s};
4934
4964
  Ae({
4935
4965
  apiHost: this.apiHost,
4936
4966
  type: "click",
4937
- canTrack: K(this.canTrack),
4967
+ canTrack: z(this.canTrack),
4938
4968
  contentId: r,
4939
4969
  apiKey: this.apiKey,
4940
4970
  variationId: o !== r ? o : void 0,
4941
- ...yi(e),
4971
+ ...vi(e),
4942
4972
  unique: !this.clicked
4943
4973
  });
4944
4974
  }
@@ -4976,7 +5006,7 @@ font-weight: ${s};
4976
5006
  url: l,
4977
5007
  method: "GET"
4978
5008
  };
4979
- Ke(JSON.stringify(a));
5009
+ ze(JSON.stringify(a));
4980
5010
  const u = {
4981
5011
  method: a.method,
4982
5012
  headers: a.headers,
@@ -5059,9 +5089,9 @@ font-weight: ${s};
5059
5089
  }
5060
5090
  }
5061
5091
  });
5062
- function Ei(e, t, n, o, r, i) {
5092
+ function Pi(e, t, n, o, r, i) {
5063
5093
  var s, l, a;
5064
- return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(Y(e.ContentWrapper), I({
5094
+ return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(Y(e.ContentWrapper), w({
5065
5095
  key: 0,
5066
5096
  ref: "elementRef",
5067
5097
  onClick: (u) => e.onClick(u),
@@ -5080,26 +5110,26 @@ function Ei(e, t, n, o, r, i) {
5080
5110
  _: 3
5081
5111
  }, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : C("", !0);
5082
5112
  }
5083
- const Pi = /* @__PURE__ */ v(Ri, [["render", Ei]]), Ai = y({
5113
+ const Ai = /* @__PURE__ */ v(Ei, [["render", Pi]]), Bi = y({
5084
5114
  name: "content-styles",
5085
5115
  components: { InlinedStyles: ce },
5086
5116
  props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
5087
5117
  data() {
5088
5118
  return {
5089
5119
  injectedStyles: `
5090
- ${Ti({
5120
+ ${wi({
5091
5121
  cssCode: this.cssCode,
5092
5122
  contentId: this.contentId
5093
5123
  })}
5094
- ${Ci({
5124
+ ${Ti({
5095
5125
  customFonts: this.customFonts
5096
5126
  })}
5097
- ${Ii(this.isNestedRender)}
5127
+ ${$i(this.isNestedRender)}
5098
5128
  `.trim()
5099
5129
  };
5100
5130
  }
5101
5131
  });
5102
- function Bi(e, t, n, o, r, i) {
5132
+ function Vi(e, t, n, o, r, i) {
5103
5133
  const s = k("InlinedStyles");
5104
5134
  return d(), S(s, {
5105
5135
  id: "builderio-content",
@@ -5107,7 +5137,7 @@ function Bi(e, t, n, o, r, i) {
5107
5137
  nonce: e.nonce
5108
5138
  }, null, 8, ["styles", "nonce"]);
5109
5139
  }
5110
- const Vi = /* @__PURE__ */ v(Ai, [["render", Bi]]), Ni = ({
5140
+ const Ni = /* @__PURE__ */ v(Bi, [["render", Vi]]), Wi = ({
5111
5141
  content: e,
5112
5142
  data: t,
5113
5143
  locale: n
@@ -5124,7 +5154,7 @@ const Vi = /* @__PURE__ */ v(Ai, [["render", Bi]]), Ni = ({
5124
5154
  locale: n
5125
5155
  } : {}
5126
5156
  };
5127
- }, Wi = ({
5157
+ }, Di = ({
5128
5158
  content: e,
5129
5159
  data: t
5130
5160
  }) => e ? {
@@ -5134,12 +5164,12 @@ const Vi = /* @__PURE__ */ v(Ai, [["render", Bi]]), Ni = ({
5134
5164
  ...t
5135
5165
  },
5136
5166
  meta: e == null ? void 0 : e.meta
5137
- } : void 0, Di = kt, xi = y({
5167
+ } : void 0, xi = kt, Oi = y({
5138
5168
  name: "content-component",
5139
5169
  components: {
5140
- EnableEditor: Pi,
5170
+ EnableEditor: Ai,
5141
5171
  InlinedScript: Re,
5142
- ContentStyles: Vi,
5172
+ ContentStyles: Ni,
5143
5173
  Blocks: j,
5144
5174
  DynamicDiv: ee
5145
5175
  },
@@ -5169,7 +5199,7 @@ const Vi = /* @__PURE__ */ v(Ai, [["render", Bi]]), Ni = ({
5169
5199
  data() {
5170
5200
  var e, t;
5171
5201
  return {
5172
- scriptStr: fi({
5202
+ scriptStr: bi({
5173
5203
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
5174
5204
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
5175
5205
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -5182,19 +5212,19 @@ const Vi = /* @__PURE__ */ v(Ai, [["render", Bi]]), Ni = ({
5182
5212
  (n, { component: o, ...r }) => ({
5183
5213
  ...n,
5184
5214
  [r.name]: {
5185
- component: Di(o),
5215
+ component: xi(o),
5186
5216
  ...se(r)
5187
5217
  }
5188
5218
  }),
5189
5219
  {}
5190
5220
  ),
5191
5221
  builderContextSignal: {
5192
- content: Wi({
5222
+ content: Di({
5193
5223
  content: this.content,
5194
5224
  data: this.data
5195
5225
  }),
5196
5226
  localState: void 0,
5197
- rootState: Ni({
5227
+ rootState: Wi({
5198
5228
  content: this.content,
5199
5229
  data: this.data,
5200
5230
  locale: this.locale
@@ -5220,7 +5250,7 @@ const Vi = /* @__PURE__ */ v(Ai, [["render", Bi]]), Ni = ({
5220
5250
  nonce: this.nonce || "",
5221
5251
  model: this.model
5222
5252
  },
5223
- TARGET: R
5253
+ TARGET: $
5224
5254
  };
5225
5255
  },
5226
5256
  provide() {
@@ -5272,7 +5302,7 @@ const Vi = /* @__PURE__ */ v(Ai, [["render", Bi]]), Ni = ({
5272
5302
  });
5273
5303
  function Ui(e, t, n, o, r, i) {
5274
5304
  const s = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
5275
- return d(), S(u, I({
5305
+ return d(), S(u, w({
5276
5306
  apiHost: e.apiHost,
5277
5307
  nonce: e.nonce,
5278
5308
  content: e.content,
@@ -5307,7 +5337,7 @@ function Ui(e, t, n, o, r, i) {
5307
5337
  cssCode: (c = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : c.cssCode,
5308
5338
  customFonts: (b = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : b.customFonts
5309
5339
  }, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : C("", !0),
5310
- $(a, {
5340
+ R(a, {
5311
5341
  blocks: (P = (g = e.builderContextSignal.content) == null ? void 0 : g.data) == null ? void 0 : P.blocks,
5312
5342
  context: e.builderContextSignal,
5313
5343
  registeredComponents: e.registeredComponents,
@@ -5318,12 +5348,12 @@ function Ui(e, t, n, o, r, i) {
5318
5348
  _: 1
5319
5349
  }, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
5320
5350
  }
5321
- const Oi = /* @__PURE__ */ v(xi, [["render", Ui]]), Fi = y({
5351
+ const Fi = /* @__PURE__ */ v(Oi, [["render", Ui]]), Li = y({
5322
5352
  name: "content-variants",
5323
5353
  components: {
5324
5354
  InlinedScript: Re,
5325
5355
  InlinedStyles: ce,
5326
- ContentComponent: Oi
5356
+ ContentComponent: Fi
5327
5357
  },
5328
5358
  props: [
5329
5359
  "canTrack",
@@ -5349,14 +5379,15 @@ const Oi = /* @__PURE__ */ v(xi, [["render", Ui]]), Fi = y({
5349
5379
  data() {
5350
5380
  return {
5351
5381
  shouldRenderVariants: di({
5352
- canTrack: K(this.canTrack),
5382
+ canTrack: z(this.canTrack),
5353
5383
  content: this.content
5354
5384
  }),
5355
5385
  SDKS_SUPPORTING_PERSONALIZATION: ht,
5356
5386
  getInitPersonalizationVariantsFnsScriptString: Ro,
5357
- TARGET: R,
5358
- getInitVariantsFnsScriptString: mi,
5359
- getVariants: oe
5387
+ TARGET: $,
5388
+ getInitVariantsFnsScriptString: hi,
5389
+ getVariants: oe,
5390
+ removeDuplicateScript: mi
5360
5391
  };
5361
5392
  },
5362
5393
  mounted() {
@@ -5364,7 +5395,7 @@ const Oi = /* @__PURE__ */ v(xi, [["render", Ui]]), Fi = y({
5364
5395
  computed: {
5365
5396
  updateCookieAndStylesScriptStr() {
5366
5397
  var e;
5367
- return hi(
5398
+ return fi(
5368
5399
  oe(this.content).map((t) => ({
5369
5400
  id: t.testVariationId,
5370
5401
  testRatio: t.testRatio
@@ -5382,39 +5413,44 @@ const Oi = /* @__PURE__ */ v(xi, [["render", Ui]]), Fi = y({
5382
5413
  testVariationId: (e = this.content) == null ? void 0 : e.id
5383
5414
  } : mn({
5384
5415
  item: this.content,
5385
- canTrack: K(this.canTrack)
5416
+ canTrack: z(this.canTrack)
5386
5417
  });
5387
5418
  }
5388
5419
  }
5389
5420
  });
5390
- function Li(e, t, n, o, r, i) {
5421
+ function Hi(e, t, n, o, r, i) {
5391
5422
  const s = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
5392
- return d(), h(w, null, [
5393
- !e.isNestedRender && e.TARGET !== "reactNative" ? (d(), h(w, { key: 0 }, [
5394
- $(s, {
5395
- id: "builderio-init-variants-fns",
5396
- scriptStr: e.getInitVariantsFnsScriptString(),
5397
- nonce: e.nonce || ""
5398
- }, null, 8, ["scriptStr", "nonce"]),
5399
- e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (d(), S(s, {
5400
- key: 0,
5401
- id: "builderio-init-personalization-variants-fns",
5402
- nonce: e.nonce || "",
5403
- scriptStr: e.getInitPersonalizationVariantsFnsScriptString()
5404
- }, null, 8, ["nonce", "scriptStr"])) : C("", !0)
5405
- ], 64)) : C("", !0),
5406
- e.shouldRenderVariants ? (d(), h(w, { key: 1 }, [
5407
- $(l, {
5423
+ return d(), h(I, null, [
5424
+ !e.isNestedRender && e.TARGET !== "reactNative" ? (d(), S(s, {
5425
+ key: 0,
5426
+ id: "builderio-init-variants-fns",
5427
+ scriptStr: e.removeDuplicateScript(
5428
+ "builderio-init-variants-fns",
5429
+ e.getInitVariantsFnsScriptString()
5430
+ ),
5431
+ nonce: e.nonce || ""
5432
+ }, null, 8, ["scriptStr", "nonce"])) : C("", !0),
5433
+ !e.isNestedRender && e.TARGET !== "reactNative" && e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (d(), S(s, {
5434
+ key: 1,
5435
+ id: "builderio-init-personalization-variants-fns",
5436
+ nonce: e.nonce || "",
5437
+ scriptStr: e.removeDuplicateScript(
5438
+ "builderio-init-personalization-variants-fns",
5439
+ e.getInitPersonalizationVariantsFnsScriptString()
5440
+ )
5441
+ }, null, 8, ["nonce", "scriptStr"])) : C("", !0),
5442
+ e.shouldRenderVariants ? (d(), h(I, { key: 2 }, [
5443
+ R(l, {
5408
5444
  id: "builderio-variants",
5409
5445
  styles: e.hideVariantsStyleString,
5410
5446
  nonce: e.nonce || ""
5411
5447
  }, null, 8, ["styles", "nonce"]),
5412
- $(s, {
5448
+ R(s, {
5413
5449
  id: "builderio-variants-visibility",
5414
5450
  scriptStr: e.updateCookieAndStylesScriptStr,
5415
5451
  nonce: e.nonce || ""
5416
5452
  }, null, 8, ["scriptStr", "nonce"]),
5417
- (d(!0), h(w, null, F(e.getVariants(e.content), (u, p) => (d(), S(a, I({
5453
+ (d(!0), h(I, null, F(e.getVariants(e.content), (u, p) => (d(), S(a, w({
5418
5454
  key: u.testVariationId,
5419
5455
  apiHost: e.apiHost,
5420
5456
  isNestedRender: e.isNestedRender,
@@ -5439,7 +5475,7 @@ function Li(e, t, n, o, r, i) {
5439
5475
  trustedHosts: e.trustedHosts
5440
5476
  }, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
5441
5477
  ], 64)) : C("", !0),
5442
- $(a, I({
5478
+ R(a, w({
5443
5479
  apiHost: e.apiHost,
5444
5480
  nonce: e.nonce,
5445
5481
  isNestedRender: e.isNestedRender,
@@ -5466,7 +5502,7 @@ function Li(e, t, n, o, r, i) {
5466
5502
  }), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
5467
5503
  ], 64);
5468
5504
  }
5469
- const Hi = /* @__PURE__ */ v(Fi, [["render", Li]]), Mi = async ({
5505
+ const Mi = /* @__PURE__ */ v(Li, [["render", Hi]]), qi = async ({
5470
5506
  builderContextValue: e,
5471
5507
  symbol: t
5472
5508
  }) => {
@@ -5474,7 +5510,7 @@ const Hi = /* @__PURE__ */ v(Fi, [["render", Li]]), Mi = async ({
5474
5510
  (e != null && e.apiKey))
5475
5511
  return we({
5476
5512
  model: t.model,
5477
- apiKey: e.apiKey,
5513
+ apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
5478
5514
  apiVersion: e.apiVersion,
5479
5515
  ...(t == null ? void 0 : t.entry) && {
5480
5516
  query: {
@@ -5484,9 +5520,9 @@ const Hi = /* @__PURE__ */ v(Fi, [["render", Li]]), Mi = async ({
5484
5520
  }).catch((n) => {
5485
5521
  L.error("Could not fetch symbol content: ", n);
5486
5522
  });
5487
- }, qi = y({
5523
+ }, ji = y({
5488
5524
  name: "builder-symbol",
5489
- components: { ContentVariants: Hi, DynamicDiv: ee },
5525
+ components: { ContentVariants: Mi, DynamicDiv: ee },
5490
5526
  props: [
5491
5527
  "symbol",
5492
5528
  "builderComponents",
@@ -5543,7 +5579,7 @@ const Hi = /* @__PURE__ */ v(Fi, [["render", Li]]), Mi = async ({
5543
5579
  methods: {
5544
5580
  setContent() {
5545
5581
  var e;
5546
- this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || Mi({
5582
+ this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || qi({
5547
5583
  symbol: this.symbol,
5548
5584
  builderContextValue: this.builderContext
5549
5585
  }).then((t) => {
@@ -5553,27 +5589,27 @@ const Hi = /* @__PURE__ */ v(Fi, [["render", Li]]), Mi = async ({
5553
5589
  }
5554
5590
  }
5555
5591
  });
5556
- function ji(e, t, n, o, r, i) {
5557
- var l, a, u, p, f;
5592
+ function Ki(e, t, n, o, r, i) {
5593
+ var l, a, u, p, f, c, m;
5558
5594
  const s = k("ContentVariants");
5559
- return d(), h("div", I({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
5560
- $(s, {
5595
+ return d(), h("div", w({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
5596
+ R(s, {
5561
5597
  nonce: e.builderContext.nonce,
5562
5598
  isNestedRender: !0,
5563
5599
  apiVersion: e.builderContext.apiVersion,
5564
- apiKey: e.builderContext.apiKey,
5600
+ apiKey: (l = e.symbol) != null && l.global && ((a = e.symbol) != null && a.ownerId) ? e.symbol.ownerId : e.builderContext.apiKey,
5565
5601
  context: {
5566
5602
  ...e.builderContext.context,
5567
- symbolId: (l = e.builderBlock) == null ? void 0 : l.id
5603
+ symbolId: (u = e.builderBlock) == null ? void 0 : u.id
5568
5604
  },
5569
5605
  customComponents: e.customComponents,
5570
5606
  data: {
5571
- ...(a = e.symbol) == null ? void 0 : a.data,
5607
+ ...(p = e.symbol) == null ? void 0 : p.data,
5572
5608
  ...e.builderContext.localState,
5573
- ...(p = (u = e.contentToUse) == null ? void 0 : u.data) == null ? void 0 : p.state
5609
+ ...(c = (f = e.contentToUse) == null ? void 0 : f.data) == null ? void 0 : c.state
5574
5610
  },
5575
5611
  canTrack: e.builderContext.canTrack,
5576
- model: ((f = e.symbol) == null ? void 0 : f.model) ?? "",
5612
+ model: ((m = e.symbol) == null ? void 0 : m.model) ?? "",
5577
5613
  content: e.contentToUse,
5578
5614
  linkComponent: e.builderLinkComponent,
5579
5615
  blocksWrapper: e.blocksWrapper,
@@ -5581,13 +5617,13 @@ function ji(e, t, n, o, r, i) {
5581
5617
  }, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
5582
5618
  ], 16);
5583
5619
  }
5584
- const zi = /* @__PURE__ */ v(qi, [["render", ji]]);
5620
+ const zi = /* @__PURE__ */ v(ji, [["render", Ki]]);
5585
5621
  export {
5586
5622
  we as A,
5587
5623
  dt as B,
5588
5624
  ro as C,
5589
- Ji as D,
5590
- os as E,
5625
+ Qi as D,
5626
+ rs as E,
5591
5627
  ao as F,
5592
5628
  bo as I,
5593
5629
  vo as S,
@@ -5599,25 +5635,25 @@ export {
5599
5635
  ce as c,
5600
5636
  eo as d,
5601
5637
  _ as e,
5602
- ts as f,
5603
- ns as g,
5604
- rs as h,
5638
+ ns as f,
5639
+ os as g,
5640
+ is as h,
5605
5641
  Ie as i,
5606
5642
  tn as j,
5607
- Ot as k,
5643
+ Ut as k,
5608
5644
  zi as l,
5609
5645
  j as m,
5610
- Hi as n,
5646
+ Mi as n,
5611
5647
  ke as o,
5612
5648
  nn as p,
5613
- Yi as q,
5614
- Qi as r,
5615
- _i as s,
5616
- Xi as t,
5649
+ Xi as q,
5650
+ Yi as r,
5651
+ es as s,
5652
+ Zi as t,
5617
5653
  Ye as u,
5618
- Zi as v,
5619
- Di as w,
5620
- es as x,
5654
+ _i as v,
5655
+ xi as w,
5656
+ ts as x,
5621
5657
  wn as y,
5622
5658
  In as z
5623
5659
  };