@builder.io/sdk-vue 5.2.3 → 5.2.5

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 (62) hide show
  1. package/lib/browser/{awaiter-TGpflqNO.js → awaiter-BKtN2AMs.js} +1 -1
  2. package/lib/browser/{awaiter-0ES-HtKy.cjs → awaiter-RQWxLPh7.cjs} +1 -1
  3. package/lib/browser/{block-wrapper-6JBj9wlj.cjs → block-wrapper-nMKh8p11.cjs} +1 -1
  4. package/lib/browser/{block-wrapper-M2woB-L4.js → block-wrapper-tny9tjLX.js} +3 -3
  5. package/lib/browser/{component-ref-TmVziQMC.cjs → component-ref-Mw4IXQsf.cjs} +1 -1
  6. package/lib/browser/{component-ref-7xUvXH6j.js → component-ref-d2TAsp69.js} +4 -4
  7. package/lib/browser/constants/sdk-version.d.ts +1 -1
  8. package/lib/browser/{get-block-properties-IPH_xTi-.js → get-block-properties-DXgJ283y.js} +1 -1
  9. package/lib/browser/{get-block-properties-2RZMZvVf.cjs → get-block-properties-yuV5qbSy.cjs} +1 -1
  10. package/lib/browser/{index-bHeXSwpO.js → index-NzYhd2fP.js} +212 -201
  11. package/lib/browser/{index-yGDaT-4c.cjs → index-yyjVNpWr.cjs} +27 -19
  12. package/lib/browser/index.cjs +1 -1
  13. package/lib/browser/index.mjs +1 -1
  14. package/lib/browser/{live-edit-zea3UB3U.cjs → live-edit-2xpHwDC6.cjs} +1 -1
  15. package/lib/browser/{live-edit-ncQFzx-S.js → live-edit-MYo3p6a8.js} +1 -1
  16. package/lib/browser/{repeated-block-6Car73NY.cjs → repeated-block-2EBzVyUu.cjs} +1 -1
  17. package/lib/browser/{repeated-block-Mk8O3Rpy.js → repeated-block-Ga5ASejd.js} +2 -2
  18. package/lib/browser/{style-wrapper-5rtVLsI3.cjs → style-wrapper-L7DnOyfm.cjs} +1 -1
  19. package/lib/browser/{style-wrapper-r-s-if-A.js → style-wrapper-dI5wRv59.js} +1 -1
  20. package/lib/edge/{awaiter-rfhkeWZf.js → awaiter-4nEUChYV.js} +1 -1
  21. package/lib/edge/{awaiter-S6rT9Vve.cjs → awaiter-6AjvWUxL.cjs} +1 -1
  22. package/lib/edge/{block-wrapper-C8-WoYjv.js → block-wrapper-46vOpFGy.js} +3 -3
  23. package/lib/{node/block-wrapper-1Y-CVNTM.cjs → edge/block-wrapper-97OfjwlX.cjs} +1 -1
  24. package/lib/edge/{component-ref-Gc_mK-yZ.cjs → component-ref-DUyRq-EJ.cjs} +1 -1
  25. package/lib/edge/{component-ref-u0-6ifHM.js → component-ref-yTXpKy_r.js} +4 -4
  26. package/lib/edge/constants/sdk-version.d.ts +1 -1
  27. package/lib/edge/{get-block-properties-HX4IkuJ7.js → get-block-properties-W3W_9H-Z.js} +1 -1
  28. package/lib/edge/{get-block-properties-YVTdp4N_.cjs → get-block-properties-jJLbFHeq.cjs} +1 -1
  29. package/lib/edge/{index-z9siWBN1.js → index-DHXkBA25.js} +370 -359
  30. package/lib/edge/{index-Ep-06GOr.cjs → index-jpFEl6o1.cjs} +33 -25
  31. package/lib/edge/index.cjs +1 -1
  32. package/lib/edge/index.mjs +1 -1
  33. package/lib/{node/live-edit-YzqrW2ZO.cjs → edge/live-edit-WpboQZDv.cjs} +1 -1
  34. package/lib/{node/live-edit-k8OIvz20.js → edge/live-edit-nhAMI-64.js} +1 -1
  35. package/lib/edge/{repeated-block-QAF0iXDX.cjs → repeated-block-dGVzaSM5.cjs} +1 -1
  36. package/lib/edge/{repeated-block-e-bO_PW3.js → repeated-block-eANZkOUH.js} +2 -2
  37. package/lib/edge/{style-wrapper-IpBgNlUT.cjs → style-wrapper-CvNVb0wT.cjs} +1 -1
  38. package/lib/edge/{style-wrapper-UVIpB1x8.js → style-wrapper-GqtgkGuc.js} +1 -1
  39. package/lib/node/{awaiter-iuox8UDW.js → awaiter-6JHJCJgG.js} +1 -1
  40. package/lib/node/{awaiter-o04icQ1E.cjs → awaiter-_rQTvMWR.cjs} +1 -1
  41. package/lib/node/{block-wrapper-Lg6Dv_gm.js → block-wrapper-3P0_XOfk.js} +3 -3
  42. package/lib/{edge/block-wrapper-SyvaobbZ.cjs → node/block-wrapper-CVcdunhe.cjs} +1 -1
  43. package/lib/node/{component-ref-MVFxzC_h.js → component-ref-RHwChjOp.js} +5 -5
  44. package/lib/node/{component-ref-k5AyvYBo.cjs → component-ref-tWjNsmU5.cjs} +1 -1
  45. package/lib/node/constants/sdk-version.d.ts +1 -1
  46. package/lib/node/{get-block-properties-Rq2VRXzM.js → get-block-properties-9gqKfU1J.js} +2 -2
  47. package/lib/node/{get-block-properties-Kb0sj2FV.cjs → get-block-properties-jknWz7As.cjs} +1 -1
  48. package/lib/node/{index-9hkAOr_P.js → index-CwfwLkvc.js} +182 -171
  49. package/lib/node/{index-yxMSSBrC.cjs → index-eeU-4w7r.cjs} +27 -19
  50. package/lib/node/index.cjs +1 -1
  51. package/lib/node/index.mjs +2 -2
  52. package/lib/node/init.cjs +1 -1
  53. package/lib/node/init.mjs +1 -1
  54. package/lib/{edge/live-edit-XsT9ZiMs.js → node/live-edit-NBkhYc-u.js} +1 -1
  55. package/lib/{edge/live-edit-nkpalAUa.cjs → node/live-edit-iOkS0wUg.cjs} +1 -1
  56. package/lib/node/{repeated-block-0laikCiE.cjs → repeated-block-BqCLqE8_.cjs} +1 -1
  57. package/lib/node/{repeated-block-km0tNI0j.js → repeated-block-aHj4jtJt.js} +2 -2
  58. package/lib/node/{should-force-browser-runtime-in-node-o843UKK7.js → should-force-browser-runtime-in-node-2bRYXF-W.js} +1 -1
  59. package/lib/node/{should-force-browser-runtime-in-node-HK08_EA6.cjs → should-force-browser-runtime-in-node-j9YDACzy.cjs} +1 -1
  60. package/lib/node/{style-wrapper-O4HZcJNK.cjs → style-wrapper-WxU8Uo4d.cjs} +1 -1
  61. package/lib/node/{style-wrapper-tc5B1slA.js → style-wrapper-kcTKCb_j.js} +2 -2
  62. 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-o843UKK7.js";
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 ze, 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 Ke, c as Se, d as Et, n as Ge, S as Pt, e as ke, h as re, j as At, k as Je, m as Bt, o as A, q as Qe, _ as Ne } from "./should-force-browser-runtime-in-node-2bRYXF-W.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 = {};
@@ -38,9 +38,9 @@ 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 Ce = /* @__PURE__ */ v(Wt, [["render", Dt]]), Ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42
42
  __proto__: null,
43
- default: Se
43
+ default: Ce
44
44
  }, Symbol.toStringTag, { value: "Module" })), q = () => {
45
45
  switch (R) {
46
46
  case "react":
@@ -56,7 +56,7 @@ const Se = /* @__PURE__ */ v(Wt, [["render", Dt]]), Ji = /* @__PURE__ */ Object.
56
56
  }
57
57
  }, xt = y({
58
58
  name: "builder-button",
59
- components: { DynamicRenderer: Se },
59
+ components: { DynamicRenderer: Ce },
60
60
  props: [
61
61
  "attributes",
62
62
  "link",
@@ -114,10 +114,10 @@ const Ot = /* @__PURE__ */ v(xt, [["render", Ut]]), Ft = Symbol(), he = {
114
114
  model: ""
115
115
  },
116
116
  key: Ft
117
- }, Lt = Symbol(), Ge = {
117
+ }, Lt = Symbol(), Ye = {
118
118
  Components: { registeredComponents: {} },
119
119
  key: Lt
120
- }, Je = (e, t, n) => {
120
+ }, Xe = (e, t, n) => {
121
121
  const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, i) => r != null ? r[i] : r, e);
122
122
  return o === void 0 || o === e ? n : o;
123
123
  }, Ht = ({
@@ -160,7 +160,7 @@ function _({
160
160
  return;
161
161
  const a = zt(e.trim());
162
162
  if (a)
163
- return Je({
163
+ return Xe({
164
164
  ...o,
165
165
  ...n
166
166
  }, a);
@@ -229,7 +229,7 @@ function ie(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
229
229
  }), ie(s, t, e, i, r);
230
230
  }));
231
231
  }
232
- function Qe(e) {
232
+ function Ze(e) {
233
233
  return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
234
234
  }
235
235
  function Qt(e) {
@@ -237,7 +237,7 @@ function Qt(e) {
237
237
  return !1;
238
238
  let t = !1;
239
239
  return ie(e, (n) => {
240
- if (Qe(n)) {
240
+ if (Ze(n)) {
241
241
  t = !0;
242
242
  return;
243
243
  }
@@ -245,7 +245,7 @@ function Qt(e) {
245
245
  }
246
246
  function Yt(e, t) {
247
247
  return !e || !Object.getOwnPropertyNames(e).length ? {} : (ie(e, (n, o) => {
248
- Qe(n) && o(n[t] ?? void 0);
248
+ Ze(n) && o(n[t] ?? void 0);
249
249
  }), e);
250
250
  }
251
251
  function Xt(e, t) {
@@ -266,7 +266,7 @@ function fe(e) {
266
266
  }
267
267
  const Zt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), _t = (e) => {
268
268
  if (Zt) {
269
- const t = ye(e);
269
+ const t = Se(e);
270
270
  return {
271
271
  ...t,
272
272
  properties: {
@@ -308,7 +308,7 @@ const Zt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), _t = (e) =
308
308
  rootSetState: r,
309
309
  context: t
310
310
  });
311
- qe(i, s, a);
311
+ Ke(i, s, a);
312
312
  }
313
313
  return i;
314
314
  };
@@ -328,7 +328,7 @@ function tn({
328
328
  context: t
329
329
  }), i = Xt(i, o.locale), i;
330
330
  }
331
- function ke(e) {
331
+ function Te(e) {
332
332
  const t = e || (E() ? window.location.search : void 0);
333
333
  return t ? Et(t).indexOf("builder.preview=") !== -1 : !1;
334
334
  }
@@ -342,11 +342,11 @@ const nn = (e) => ({
342
342
  function se(e) {
343
343
  return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? on(n) : n));
344
344
  }
345
- const Be = {};
345
+ const We = {};
346
346
  function Qi(e, t) {
347
347
  e === "plugin" && (t = se(t));
348
- let n = Be[e];
349
- if (n || (n = Be[e] = []), n.push(t), E()) {
348
+ let n = We[e];
349
+ if (n || (n = We[e] = []), n.push(t), E()) {
350
350
  const o = {
351
351
  type: "builder.register",
352
352
  data: {
@@ -371,24 +371,24 @@ function Yi(e) {
371
371
  }, "*");
372
372
  }
373
373
  }
374
- const Ve = {};
374
+ const De = {};
375
375
  function Xi(e) {
376
376
  if (E()) {
377
- Object.assign(Ve, e);
377
+ Object.assign(De, e);
378
378
  const t = {
379
379
  type: "builder.settingsChange",
380
- data: Ve
380
+ data: De
381
381
  };
382
382
  parent.postMessage(t, "*");
383
383
  }
384
384
  }
385
- const Ne = "builder.", rn = "options.", Ye = (e) => {
385
+ const xe = "builder.", rn = "options.", _e = (e) => {
386
386
  if (!e)
387
387
  return {};
388
- const t = je(e), n = {};
388
+ const t = Ge(e), n = {};
389
389
  return Object.keys(t).forEach((o) => {
390
- if (o.startsWith(Ne)) {
391
- const r = o.replace(Ne, "").replace(rn, "");
390
+ if (o.startsWith(xe)) {
391
+ const r = o.replace(xe, "").replace(rn, "");
392
392
  n[r] = t[o];
393
393
  }
394
394
  }), n;
@@ -396,18 +396,21 @@ const Ne = "builder.", rn = "options.", Ye = (e) => {
396
396
  if (!E())
397
397
  return {};
398
398
  const e = new URLSearchParams(window.location.search);
399
- return Ye(e);
399
+ return _e(e);
400
400
  }, an = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
401
- function Xe(e, t) {
402
- if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
401
+ function et(e, t) {
402
+ let n;
403
+ try {
404
+ n = new URL(t.origin);
405
+ } catch {
403
406
  return !1;
404
- const n = new URL(t.origin), o = n.hostname;
405
- return (e || an).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
407
+ }
408
+ return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e || an).findIndex((o) => o.startsWith("*.") ? n.hostname.endsWith(o.slice(1)) : o === n.hostname) > -1;
406
409
  }
407
- let We = !1;
408
- const Ze = (e) => {
410
+ let Ue = !1;
411
+ const tt = (e) => {
409
412
  var t, n;
410
- We || (We = !0, E() && ((t = window.parent) == null || t.postMessage({
413
+ Ue || (Ue = !0, E() && ((t = window.parent) == null || t.postMessage({
411
414
  type: "builder.sdkInfo",
412
415
  data: {
413
416
  target: R,
@@ -429,7 +432,7 @@ const Ze = (e) => {
429
432
  }
430
433
  }, "*"), window.addEventListener("message", (o) => {
431
434
  var i, s;
432
- if (!Xe(e.trustedHosts, o))
435
+ if (!et(e.trustedHosts, o))
433
436
  return;
434
437
  const {
435
438
  data: r
@@ -470,12 +473,12 @@ const Ze = (e) => {
470
473
  }
471
474
  }
472
475
  })));
473
- }, _e = ({
476
+ }, nt = ({
474
477
  model: e,
475
478
  trustedHosts: t,
476
479
  callbacks: n
477
480
  }) => (o) => {
478
- if (!Xe(t, o))
481
+ if (!et(t, o))
479
482
  return;
480
483
  const {
481
484
  data: r
@@ -510,11 +513,11 @@ const Ze = (e) => {
510
513
  if (!E)
511
514
  return L.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
512
515
  };
513
- Ze({
516
+ tt({
514
517
  modelName: e,
515
518
  apiKey: t
516
519
  });
517
- const r = _e({
520
+ const r = nt({
518
521
  callbacks: {
519
522
  contentUpdate: n,
520
523
  animation: () => {
@@ -530,24 +533,24 @@ const Ze = (e) => {
530
533
  return window.addEventListener("message", r), () => {
531
534
  window.removeEventListener("message", r);
532
535
  };
533
- }, ln = "builder.tests", Ce = (e) => `${ln}.${e}`, cn = ({
536
+ }, ln = "builder.tests", we = (e) => `${ln}.${e}`, cn = ({
534
537
  contentId: e
535
538
  }) => At({
536
- name: Ce(e),
539
+ name: we(e),
537
540
  canTrack: !0
538
541
  }), dn = ({
539
542
  contentId: e
540
- }) => ve({
541
- name: Ce(e),
543
+ }) => ke({
544
+ name: we(e),
542
545
  canTrack: !0
543
546
  }), un = ({
544
547
  contentId: e,
545
548
  value: t
546
- }) => ze({
547
- name: Ce(e),
549
+ }) => Je({
550
+ name: we(e),
548
551
  value: t,
549
552
  canTrack: !0
550
- }), et = (e) => re(e.id) && re(e.variations) && Object.keys(e.variations).length > 0, pn = ({
553
+ }), ot = (e) => re(e.id) && re(e.variations) && Object.keys(e.variations).length > 0, pn = ({
551
554
  id: e,
552
555
  variations: t
553
556
  }) => {
@@ -560,7 +563,7 @@ const Ze = (e) => {
560
563
  return i;
561
564
  }
562
565
  return e;
563
- }, tt = (e) => {
566
+ }, rt = (e) => {
564
567
  const t = pn(e);
565
568
  return un({
566
569
  contentId: e.id,
@@ -568,7 +571,7 @@ const Ze = (e) => {
568
571
  }).catch((n) => {
569
572
  L.error("could not store A/B test variation: ", n);
570
573
  }), t;
571
- }, nt = ({
574
+ }, it = ({
572
575
  item: e,
573
576
  testGroupId: t
574
577
  }) => {
@@ -590,14 +593,14 @@ const Ze = (e) => {
590
593
  return e;
591
594
  if (!e)
592
595
  return;
593
- if (!et(e))
596
+ if (!ot(e))
594
597
  return e;
595
598
  const n = dn({
596
599
  contentId: e.id
597
- }) || tt({
600
+ }) || rt({
598
601
  variations: e.variations,
599
602
  id: e.id
600
- }), o = nt({
603
+ }), o = it({
601
604
  item: e,
602
605
  testGroupId: n
603
606
  });
@@ -609,14 +612,14 @@ const Ze = (e) => {
609
612
  item: e,
610
613
  canTrack: t
611
614
  }) => {
612
- if (!t || !et(e))
615
+ if (!t || !ot(e))
613
616
  return e;
614
617
  const o = await cn({
615
618
  contentId: e.id
616
- }) || tt({
619
+ }) || rt({
617
620
  variations: e.variations,
618
621
  id: e.id
619
- }), r = nt({
622
+ }), r = it({
620
623
  item: e,
621
624
  testGroupId: o
622
625
  });
@@ -625,8 +628,8 @@ const Ze = (e) => {
625
628
  ...r
626
629
  };
627
630
  };
628
- const De = "builder.userAttributes";
629
- function xe() {
631
+ const Oe = "builder.userAttributes";
632
+ function Fe() {
630
633
  let e = !0;
631
634
  const t = /* @__PURE__ */ new Set();
632
635
  return {
@@ -637,15 +640,15 @@ function xe() {
637
640
  ...this.getUserAttributes(),
638
641
  ...n
639
642
  };
640
- ze({
641
- name: De,
643
+ Je({
644
+ name: Oe,
642
645
  value: JSON.stringify(o),
643
646
  canTrack: e
644
647
  }), t.forEach((r) => r(o));
645
648
  },
646
649
  getUserAttributes() {
647
- return E() ? JSON.parse(ve({
648
- name: De,
650
+ return E() ? JSON.parse(ke({
651
+ name: Oe,
649
652
  canTrack: e
650
653
  }) || "{}") : {};
651
654
  },
@@ -662,7 +665,7 @@ function xe() {
662
665
  };
663
666
  }
664
667
  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();
668
+ E() && R === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = Fe()), be = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : be = Fe();
666
669
  const ae = be, _i = (e) => {
667
670
  ae.setUserAttributes(e);
668
671
  }, K = (e) => {
@@ -692,10 +695,10 @@ function ge(e, t = null, n = ".") {
692
695
  };
693
696
  }, {});
694
697
  }
695
- function ot(e, t, n = {}) {
698
+ function st(e, t, n = {}) {
696
699
  for (const o in e) {
697
700
  const r = e[o], i = t ? t + "." + o : o;
698
- r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? ot(r, i, n) : n[i] = r;
701
+ r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? st(r, i, n) : n[i] = r;
699
702
  }
700
703
  return n;
701
704
  }
@@ -711,7 +714,7 @@ function yn(e) {
711
714
  }
712
715
  return t;
713
716
  }
714
- const vn = "v3", Ue = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Te = (e) => {
717
+ const vn = "v3", Le = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ie = (e) => {
715
718
  const {
716
719
  limit: t = 30,
717
720
  userAttributes: n,
@@ -737,7 +740,7 @@ const vn = "v3", Ue = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Te = (
737
740
  const U = t !== 1, B = P || "https://cdn.builder.io", T = new URL(`${B}/api/${a}/content/${r}`);
738
741
  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);
739
742
  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) {
743
+ 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 && Le(c) && T.searchParams.set("cacheSeconds", String(c)), m && Le(m) && T.searchParams.set("staleCacheSeconds", String(m)), b) {
741
744
  const D = ge({
742
745
  sort: b
743
746
  });
@@ -746,7 +749,7 @@ const vn = "v3", Ue = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Te = (
746
749
  }
747
750
  const G = {
748
751
  ...sn(),
749
- ...je(e.options || {})
752
+ ...Ge(e.options || {})
750
753
  };
751
754
  W = {
752
755
  ...W,
@@ -756,7 +759,7 @@ const vn = "v3", Ue = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Te = (
756
759
  for (const D in J)
757
760
  T.searchParams.set(D, String(J[D]));
758
761
  if (Object.keys(W).length > 0 && T.searchParams.set("userAttributes", JSON.stringify(W)), o) {
759
- const D = ot({
762
+ const D = st({
760
763
  query: o
761
764
  });
762
765
  for (const H in D)
@@ -778,7 +781,7 @@ const vn = "v3", Ue = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Te = (
778
781
  }
779
782
  return {};
780
783
  }, Cn = (e) => "results" in e;
781
- async function we(e) {
784
+ async function $e(e) {
782
785
  var o;
783
786
  const t = e.locale || ((o = e.userAttributes) == null ? void 0 : o.locale);
784
787
  t && (e.locale = t, e.userAttributes = {
@@ -793,7 +796,7 @@ async function we(e) {
793
796
  }
794
797
  const Tn = async (e) => {
795
798
  var s;
796
- const t = Te(e), n = e.fetch ?? gn, o = {
799
+ const t = Ie(e), n = e.fetch ?? gn, o = {
797
800
  ...e.fetchOptions,
798
801
  headers: {
799
802
  ...(s = e.fetchOptions) == null ? void 0 : s.headers,
@@ -801,7 +804,7 @@ const Tn = async (e) => {
801
804
  }
802
805
  };
803
806
  return await (await n(t.href, o)).json();
804
- }, wn = async (e, t, n = Te(e)) => {
807
+ }, wn = async (e, t, n = Ie(e)) => {
805
808
  const o = K(e.canTrack);
806
809
  if (n.search.includes("preview="), !o || !(E() || R === "reactNative"))
807
810
  return t.results;
@@ -819,7 +822,7 @@ const Tn = async (e) => {
819
822
  return t.results;
820
823
  };
821
824
  async function In(e) {
822
- const t = Te(e), n = await Tn(e);
825
+ const t = Ie(e), n = await Tn(e);
823
826
  if (!Cn(n))
824
827
  throw L.error("Error fetching data. ", {
825
828
  url: t,
@@ -840,14 +843,14 @@ const es = async (e) => {
840
843
  urlPath: t
841
844
  } : {}
842
845
  },
843
- options: Ye(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
846
+ options: _e(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
844
847
  };
845
848
  return {
846
849
  apiKey: n.apiKey,
847
850
  model: n.model,
848
- content: await we(n)
851
+ content: await $e(n)
849
852
  };
850
- }, Ie = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
853
+ }, Re = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
851
854
  function $n(e, t, n = {}) {
852
855
  let o, r, i, s = null, l = 0;
853
856
  const a = function() {
@@ -874,17 +877,17 @@ function Rn(e) {
874
877
  for (const t of e)
875
878
  switch (t.trigger) {
876
879
  case "pageLoad":
877
- st(t);
880
+ ct(t);
878
881
  break;
879
882
  case "scrollInView":
880
883
  Pn(t);
881
884
  break;
882
885
  }
883
886
  }
884
- function rt(e) {
887
+ function at(e) {
885
888
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
886
889
  }
887
- function it(e, t) {
890
+ function lt(e, t) {
888
891
  const n = En(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
889
892
  for (const l of s)
890
893
  for (const a of n)
@@ -897,15 +900,15 @@ function En(e) {
897
900
  t.indexOf(o) === -1 && t.push(o);
898
901
  return t;
899
902
  }
900
- function st(e) {
903
+ function ct(e) {
901
904
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
902
905
  if (!t.length) {
903
- rt(e.elementId || e.id || "");
906
+ at(e.elementId || e.id || "");
904
907
  return;
905
908
  }
906
909
  Array.from(t).forEach((n) => {
907
- it(e, n), n.style.transition = "none", n.style.transitionDelay = "0", X(n.style, e.steps[0].styles), setTimeout(() => {
908
- n.style.transition = `all ${e.duration}s ${Ie(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), X(n.style, e.steps[1].styles), setTimeout(() => {
910
+ lt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", X(n.style, e.steps[0].styles), setTimeout(() => {
911
+ n.style.transition = `all ${e.duration}s ${Re(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), X(n.style, e.steps[1].styles), setTimeout(() => {
909
912
  n.style.transition = "", n.style.transitionDelay = "";
910
913
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
911
914
  });
@@ -914,11 +917,11 @@ function st(e) {
914
917
  function Pn(e) {
915
918
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
916
919
  if (!t.length) {
917
- rt(e.elementId || e.id || "");
920
+ at(e.elementId || e.id || "");
918
921
  return;
919
922
  }
920
923
  Array.from(t).forEach((n) => {
921
- it(e, n);
924
+ lt(e, n);
922
925
  let o = !1, r = !1;
923
926
  function i() {
924
927
  !o && l(n) ? (o = !0, r = !0, setTimeout(() => {
@@ -939,17 +942,17 @@ function Pn(e) {
939
942
  X(n.style, a);
940
943
  }
941
944
  u(), setTimeout(() => {
942
- n.style.transition = `all ${e.duration}s ${Ie(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
945
+ n.style.transition = `all ${e.duration}s ${Re(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
943
946
  }), document.addEventListener("scroll", s, {
944
947
  capture: !0,
945
948
  passive: !0
946
949
  }), i();
947
950
  });
948
951
  }
949
- const at = (e) => Object.entries(e).map(([n, o]) => {
952
+ const dt = (e) => Object.entries(e).map(([n, o]) => {
950
953
  if (typeof o == "string")
951
- return `${Ie(n)}: ${o};`;
952
- }).filter(re), An = (e) => at(e).join(`
954
+ return `${Re(n)}: ${o};`;
955
+ }).filter(re), An = (e) => dt(e).join(`
953
956
  `), ts = ({
954
957
  mediaQuery: e,
955
958
  className: t,
@@ -970,18 +973,18 @@ function Bn({
970
973
  const ns = ({
971
974
  block: e,
972
975
  context: t
973
- }) => lt(Bn({
976
+ }) => ut(Bn({
974
977
  style: e.style || {},
975
978
  context: t,
976
979
  block: e
977
980
  }));
978
- function lt(e) {
981
+ function ut(e) {
979
982
  switch (R) {
980
983
  case "svelte":
981
984
  case "vue":
982
985
  case "solid":
983
986
  case "angular":
984
- return at(e).join(" ");
987
+ return dt(e).join(" ");
985
988
  case "qwik":
986
989
  case "reactNative":
987
990
  case "react":
@@ -989,7 +992,7 @@ function lt(e) {
989
992
  return e;
990
993
  }
991
994
  }
992
- const ct = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Vn = ({
995
+ const pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Vn = ({
993
996
  block: e,
994
997
  registeredComponents: t,
995
998
  model: n
@@ -999,7 +1002,7 @@ const ct = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
999
1002
  if (!o)
1000
1003
  return null;
1001
1004
  const r = t[o];
1002
- if (!r || ct(r, n)) {
1005
+ if (!r || pt(r, n)) {
1003
1006
  console.warn(`
1004
1007
  Could not find a registered component named "${o}".
1005
1008
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
@@ -1047,7 +1050,7 @@ const ct = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1047
1050
  }, Dn = (e, t, n) => {
1048
1051
  var o;
1049
1052
  return (o = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && o.builderComponents ? {
1050
- builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !ct(s, n)))
1053
+ builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !pt(s, n)))
1051
1054
  } : {};
1052
1055
  }, xn = (e, t) => {
1053
1056
  var n;
@@ -1064,22 +1067,22 @@ const ct = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1064
1067
  "Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
1065
1068
  e
1066
1069
  ), e;
1067
- }), Ln = () => import("./block-wrapper-Lg6Dv_gm.js").then((e) => e.default).catch((e) => {
1070
+ }), Ln = () => import("./block-wrapper-3P0_XOfk.js").then((e) => e.default).catch((e) => {
1068
1071
  throw console.error(
1069
1072
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
1070
1073
  e
1071
1074
  ), e;
1072
- }), Hn = () => import("./component-ref-MVFxzC_h.js").then((e) => e.default).catch((e) => {
1075
+ }), Hn = () => import("./component-ref-RHwChjOp.js").then((e) => e.default).catch((e) => {
1073
1076
  throw console.error(
1074
1077
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
1075
1078
  e
1076
1079
  ), e;
1077
- }), Mn = () => import("./repeated-block-km0tNI0j.js").then((e) => e.default).catch((e) => {
1080
+ }), Mn = () => import("./repeated-block-aHj4jtJt.js").then((e) => e.default).catch((e) => {
1078
1081
  throw console.error(
1079
1082
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
1080
1083
  e
1081
1084
  ), e;
1082
- }), qn = () => import("./style-wrapper-tc5B1slA.js").then((e) => e.default).catch((e) => {
1085
+ }), qn = () => import("./style-wrapper-kcTKCb_j.js").then((e) => e.default).catch((e) => {
1083
1086
  throw console.error(
1084
1087
  "Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
1085
1088
  e
@@ -1245,9 +1248,9 @@ function zn(e, t, n, o, r, i) {
1245
1248
  ], 64))
1246
1249
  ], 64)) : C("", !0);
1247
1250
  }
1248
- const dt = /* @__PURE__ */ v(jn, [["render", zn]]), os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1251
+ const mt = /* @__PURE__ */ v(jn, [["render", zn]]), os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1249
1252
  __proto__: null,
1250
- default: dt
1253
+ default: mt
1251
1254
  }, Symbol.toStringTag, { value: "Module" })), Kn = y({
1252
1255
  name: "builder-blocks-wrapper",
1253
1256
  props: [
@@ -1337,7 +1340,7 @@ function Gn(e, t, n, o, r, i) {
1337
1340
  }
1338
1341
  const Jn = /* @__PURE__ */ v(Kn, [["render", Gn], ["__scopeId", "data-v-82fc93d6"]]), Qn = y({
1339
1342
  name: "builder-blocks",
1340
- components: { BlocksWrapper: Jn, Block: dt },
1343
+ components: { BlocksWrapper: Jn, Block: mt },
1341
1344
  props: [
1342
1345
  "blocks",
1343
1346
  "parent",
@@ -1351,7 +1354,7 @@ const Jn = /* @__PURE__ */ v(Kn, [["render", Gn], ["__scopeId", "data-v-82fc93d6
1351
1354
  ],
1352
1355
  inject: {
1353
1356
  builderContext: he.key,
1354
- componentsContext: Ge.key
1357
+ componentsContext: Ye.key
1355
1358
  }
1356
1359
  });
1357
1360
  function Yn(e, t, n, o, r, i) {
@@ -1396,7 +1399,7 @@ const ee = /* @__PURE__ */ v(Xn, [["render", Zn]]), _n = /* @__PURE__ */ Object.
1396
1399
  default: ee
1397
1400
  }, Symbol.toStringTag, { value: "Module" })), ce = y({
1398
1401
  render() {
1399
- return Me("style", {
1402
+ return ze("style", {
1400
1403
  innerHTML: this.styles,
1401
1404
  "data-id": this.id,
1402
1405
  nonce: this.nonce
@@ -1404,7 +1407,7 @@ const ee = /* @__PURE__ */ v(Xn, [["render", Zn]]), _n = /* @__PURE__ */ Object.
1404
1407
  },
1405
1408
  name: "inlined-styles",
1406
1409
  props: ["styles", "id", "nonce"]
1407
- }), ut = {
1410
+ }), ht = {
1408
1411
  xsmall: {
1409
1412
  min: 0,
1410
1413
  default: 160,
@@ -1425,8 +1428,8 @@ const ee = /* @__PURE__ */ v(Xn, [["render", Zn]]), _n = /* @__PURE__ */ Object.
1425
1428
  default: 991,
1426
1429
  max: 1200
1427
1430
  }
1428
- }, rs = (e, t = ut) => `@media (max-width: ${t[e].max}px)`, eo = (e) => {
1429
- const t = ye(ut);
1431
+ }, rs = (e, t = ht) => `@media (max-width: ${t[e].max}px)`, eo = (e) => {
1432
+ const t = Se(ht);
1430
1433
  if (!e)
1431
1434
  return t;
1432
1435
  const {
@@ -1467,7 +1470,7 @@ const ee = /* @__PURE__ */ v(Xn, [["render", Zn]]), _n = /* @__PURE__ */ Object.
1467
1470
  name: "builder-columns",
1468
1471
  components: {
1469
1472
  InlinedStyles: ce,
1470
- DynamicRenderer: Se,
1473
+ DynamicRenderer: Ce,
1471
1474
  Blocks: j,
1472
1475
  DynamicDiv: ee
1473
1476
  },
@@ -1599,7 +1602,7 @@ const ee = /* @__PURE__ */ v(Xn, [["render", Zn]]), _n = /* @__PURE__ */ Object.
1599
1602
  href: e.link
1600
1603
  } : {},
1601
1604
  [q()]: "builder-column",
1602
- style: lt(this.columnCssVars(t))
1605
+ style: ut(this.columnCssVars(t))
1603
1606
  };
1604
1607
  }
1605
1608
  }
@@ -1650,7 +1653,7 @@ function so(e, t, n, o, r, i) {
1650
1653
  ]);
1651
1654
  }
1652
1655
  const ao = /* @__PURE__ */ v(io, [["render", so]]);
1653
- function Oe(e) {
1656
+ function He(e) {
1654
1657
  return e.replace(/http(s)?:/, "");
1655
1658
  }
1656
1659
  function lo(e = "", t, n) {
@@ -1661,11 +1664,11 @@ function co(e, t) {
1661
1664
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1662
1665
  return e;
1663
1666
  if (t === "master")
1664
- return Oe(e);
1667
+ return He(e);
1665
1668
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1666
1669
  if (n) {
1667
1670
  const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
1668
- return Oe(`${o[0]}_${i}${r}`);
1671
+ return He(`${o[0]}_${i}${r}`);
1669
1672
  }
1670
1673
  return null;
1671
1674
  }
@@ -2020,9 +2023,9 @@ const ko = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
2020
2023
  visibilityStylesEl.innerHTML = newStyleStr;
2021
2024
  }
2022
2025
  }
2023
- }`, ne = "default", wo = "filterWithCustomTargeting", pt = "builderIoPersonalization", mt = "updateVisibilityStylesScript", ht = ["react", "vue", "svelte", "qwik"], ft = ["vue", "svelte", "qwik"];
2026
+ }`, ne = "default", wo = "filterWithCustomTargeting", ft = "builderIoPersonalization", bt = "updateVisibilityStylesScript", gt = ["react", "vue", "svelte", "qwik"], yt = ["vue", "svelte", "qwik"];
2024
2027
  function Io(e, t) {
2025
- return !(e && e.length > 0) || !t ? !1 : ft.includes(R) ? !0 : !E();
2028
+ return !(e && e.length > 0) || !t ? !1 : yt.includes(R) ? !0 : !E();
2026
2029
  }
2027
2030
  function $o({
2028
2031
  variants: e,
@@ -2064,9 +2067,9 @@ function $o({
2064
2067
  }
2065
2068
  const Ro = () => `
2066
2069
  window.${wo} = ${Co}
2067
- window.${pt} = ${ko}
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 = {
2070
+ window.${ft} = ${ko}
2071
+ window.${bt} = ${To}
2072
+ `, vt = R === "react", Eo = (e, t, n) => `window.${ft}(${JSON.stringify(e)}, "${t}", ${vt}${n ? `, "${n}"` : ""})`, Po = (e, t, n) => `window.${bt}(${JSON.stringify(e)}, "${t}", ${vt}${n ? `, "${n}"` : ""})`, de = {
2070
2073
  "@type": "@builder.io/sdk:Element",
2071
2074
  layerName: "Accordion item title",
2072
2075
  responsiveStyles: {
@@ -2580,7 +2583,7 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
2580
2583
  hidden: !0,
2581
2584
  canHaveChildren: !0,
2582
2585
  noWrap: !0
2583
- }, $e = ["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"], Fo = ["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"], Lo = {
2586
+ }, Ee = ["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"], Fo = ["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"], Lo = {
2584
2587
  name: "Image",
2585
2588
  static: !0,
2586
2589
  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",
@@ -2595,7 +2598,7 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
2595
2598
  name: "image",
2596
2599
  type: "file",
2597
2600
  bubble: !0,
2598
- allowedFileTypes: $e,
2601
+ allowedFileTypes: Ee,
2599
2602
  required: !0,
2600
2603
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
2601
2604
  onChange: (e) => {
@@ -2728,9 +2731,9 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
2728
2731
  defaultValue: []
2729
2732
  }]
2730
2733
  }]
2731
- }, Re = y({
2734
+ }, Pe = y({
2732
2735
  render() {
2733
- return Me("script", {
2736
+ return ze("script", {
2734
2737
  innerHTML: this.scriptStr,
2735
2738
  "data-id": this.id,
2736
2739
  nonce: this.nonce
@@ -2743,7 +2746,7 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
2743
2746
  components: {
2744
2747
  Blocks: j,
2745
2748
  InlinedStyles: ce,
2746
- InlinedScript: Re
2749
+ InlinedScript: Pe
2747
2750
  },
2748
2751
  props: [
2749
2752
  "builderContext",
@@ -2775,7 +2778,7 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
2775
2778
  shouldResetVariants: !1,
2776
2779
  TARGET: R,
2777
2780
  DEFAULT_INDEX: ne,
2778
- SDKS_REQUIRING_RESET_APPROACH: ft
2781
+ SDKS_REQUIRING_RESET_APPROACH: yt
2779
2782
  };
2780
2783
  },
2781
2784
  mounted() {
@@ -2789,7 +2792,7 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
2789
2792
  fireImmediately: R === "qwik"
2790
2793
  }
2791
2794
  );
2792
- if (!(A() || ke())) {
2795
+ if (!(A() || Te())) {
2793
2796
  const n = this.filteredVariants[0];
2794
2797
  this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
2795
2798
  new CustomEvent("builder.variantLoaded", {
@@ -2908,12 +2911,12 @@ function qo(e, t, n, o, r, i) {
2908
2911
  registeredComponents: e.builderComponents
2909
2912
  }, {
2910
2913
  default: x(() => {
2911
- var Ee, Pe;
2914
+ var Be, Ve;
2912
2915
  return [
2913
2916
  $(a, {
2914
- nonce: ((Ee = e.builderContext) == null ? void 0 : Ee.nonce) || "",
2917
+ nonce: ((Be = e.builderContext) == null ? void 0 : Be.nonce) || "",
2915
2918
  scriptStr: e.scriptStr,
2916
- id: `variants-script-${(Pe = e.builderBlock) == null ? void 0 : Pe.id}-${W}`
2919
+ id: `variants-script-${(Ve = e.builderBlock) == null ? void 0 : Ve.id}-${W}`
2917
2920
  }, null, 8, ["nonce", "scriptStr", "id"])
2918
2921
  ];
2919
2922
  }),
@@ -3797,7 +3800,7 @@ const vr = /* @__PURE__ */ v(br, [["render", yr]]), Sr = {
3797
3800
  else {
3798
3801
  const c = {};
3799
3802
  Array.from(l).forEach(({ value: m, key: b }) => {
3800
- qe(c, b, m);
3803
+ Ke(c, b, m);
3801
3804
  }), i = JSON.stringify(c);
3802
3805
  }
3803
3806
  a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
@@ -3818,7 +3821,7 @@ const vr = /* @__PURE__ */ v(br, [["render", yr]]), Sr = {
3818
3821
  const p = `${Cr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
3819
3822
  this.sendSubmissionsToEmail || ""
3820
3823
  )}&name=${encodeURIComponent(this.name || "")}`, f = this.sendSubmissionsTo === "email" ? p : this.action;
3821
- Ke(f), fetch(f, {
3824
+ Qe(f), fetch(f, {
3822
3825
  body: i,
3823
3826
  headers: r,
3824
3827
  method: this.method || "post"
@@ -3839,7 +3842,7 @@ const vr = /* @__PURE__ */ v(br, [["render", yr]]), Sr = {
3839
3842
  ), U.defaultPrevented))
3840
3843
  return;
3841
3844
  this.responseData = m, this.formState = "error";
3842
- let B = this.errorMessagePath ? Je(m, this.errorMessagePath) : m.message || m.error || m;
3845
+ let B = this.errorMessagePath ? Xe(m, this.errorMessagePath) : m.message || m.error || m;
3843
3846
  typeof B != "string" && (B = JSON.stringify(B)), this.formErrorMessage = B, this.mergeNewRootState({
3844
3847
  formErrorMessage: B
3845
3848
  });
@@ -4159,7 +4162,7 @@ const Gr = /* @__PURE__ */ v(jr, [["render", Kr]]), Jr = {
4159
4162
  name: "image",
4160
4163
  bubble: !0,
4161
4164
  type: "file",
4162
- allowedFileTypes: $e,
4165
+ allowedFileTypes: Ee,
4163
4166
  required: !0
4164
4167
  }, {
4165
4168
  name: "backgroundSize",
@@ -4260,7 +4263,7 @@ const Zr = /* @__PURE__ */ v(Qr, [["render", Xr]]), _r = {
4260
4263
  }, {
4261
4264
  name: "posterImage",
4262
4265
  type: "file",
4263
- allowedFileTypes: $e,
4266
+ allowedFileTypes: Ee,
4264
4267
  helperText: "Image to show before the video plays"
4265
4268
  }, {
4266
4269
  name: "autoPlay",
@@ -4497,7 +4500,7 @@ const si = /* @__PURE__ */ v(ei, [["render", ii]]), ai = () => [{
4497
4500
  }, {
4498
4501
  component: si,
4499
4502
  ..._r
4500
- }], Fe = () => [{
4503
+ }], Me = () => [{
4501
4504
  component: Ot,
4502
4505
  ...xo
4503
4506
  }, {
@@ -4521,7 +4524,7 @@ const si = /* @__PURE__ */ v(ei, [["render", ii]]), ai = () => [{
4521
4524
  }, {
4522
4525
  component: ar,
4523
4526
  ...or
4524
- }, ...ht.includes(R) ? [{
4527
+ }, ...gt.includes(R) ? [{
4525
4528
  component: jo,
4526
4529
  ...Ho
4527
4530
  }] : [], {
@@ -4623,26 +4626,34 @@ const si = /* @__PURE__ */ v(ei, [["render", ii]]), ai = () => [{
4623
4626
  thisScriptEl?.remove();
4624
4627
  }
4625
4628
  return;
4626
- }`, gt = "builderIoAbTest", yt = "builderIoRenderContent", oe = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4629
+ }`, ye = "builderIoAbTest", ve = "builderIoRenderContent", oe = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4627
4630
  ...t,
4628
4631
  testVariationId: t.id,
4629
4632
  id: e == null ? void 0 : e.id
4630
4633
  })), di = ({
4631
4634
  canTrack: e,
4632
4635
  content: t
4633
- }) => !(!(oe(t).length > 0) || !e), ui = (e) => e === "react" || e === "reactNative", pi = R === "angular", vt = ui(R), mi = () => `
4634
- window.${gt} = ${li}
4635
- window.${yt} = ${ci}
4636
+ }) => !(!(oe(t).length > 0) || !e), ui = (e) => e === "react" || e === "reactNative", pi = R === "angular", Ae = ui(R), mi = () => `
4637
+ (function() {
4638
+ if (!window.${ye}) {
4639
+ window.${ye} = ${li};
4640
+ }
4641
+ if (!window.${ve}) {
4642
+ window.${ve} = ${ci};
4643
+ }${Ae ? `
4644
+ var thisScriptEl = document.currentScript;
4645
+ if (thisScriptEl) { thisScriptEl.remove(); }` : ""}
4646
+ })();
4636
4647
  `, hi = (e, t) => `
4637
- window.${gt}(
4638
- "${t}",${JSON.stringify(e)}, ${vt}, ${pi}
4648
+ window.${ye}(
4649
+ "${t}",${JSON.stringify(e)}, ${Ae}, ${pi}
4639
4650
  )`, fi = ({
4640
4651
  contentId: e,
4641
4652
  variationId: t
4642
- }) => `window.${yt}(
4643
- "${t}", "${e}", ${vt}
4653
+ }) => `window.${ve}(
4654
+ "${t}", "${e}", ${Ae}
4644
4655
  )`;
4645
- function Le(e) {
4656
+ function qe(e) {
4646
4657
  return Math.round(e * 1e3) / 1e3;
4647
4658
  }
4648
4659
  const bi = (e, t, n = !0) => {
@@ -4659,11 +4670,11 @@ const bi = (e, t, n = !0) => {
4659
4670
  }, gi = (e) => bi(e, (t) => {
4660
4671
  const n = t.getAttribute("builder-id") || t.id;
4661
4672
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
4662
- }), He = ({
4673
+ }), je = ({
4663
4674
  event: e,
4664
4675
  target: t
4665
4676
  }) => {
4666
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = Le(o / n.width), s = Le(r / n.height);
4677
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = qe(o / n.width), s = qe(r / n.height);
4667
4678
  return {
4668
4679
  x: i,
4669
4680
  y: s
@@ -4673,18 +4684,18 @@ const bi = (e, t, n = !0) => {
4673
4684
  return {
4674
4685
  targetBuilderElement: o || void 0,
4675
4686
  metadata: {
4676
- targetOffset: t ? He({
4687
+ targetOffset: t ? je({
4677
4688
  event: e,
4678
4689
  target: t
4679
4690
  }) : void 0,
4680
- builderTargetOffset: n ? He({
4691
+ builderTargetOffset: n ? je({
4681
4692
  event: e,
4682
4693
  target: n
4683
4694
  }) : void 0,
4684
4695
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
4685
4696
  }
4686
4697
  };
4687
- }, vi = ["svelte", "qwik", "vue"], Si = () => vi.includes(R) && (A() || ke()), ki = (e) => {
4698
+ }, vi = ["svelte", "qwik", "vue"], Si = () => vi.includes(R) && (A() || Te()), ki = (e) => {
4688
4699
  var i;
4689
4700
  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
4701
  let r = "";
@@ -4785,13 +4796,13 @@ font-weight: ${s};
4785
4796
  A() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4786
4797
  new CustomEvent("initeditingbldr")
4787
4798
  );
4788
- const o = this.builderContextSignal.content && K(this.canTrack), r = ve({
4799
+ const o = this.builderContextSignal.content && K(this.canTrack), r = ke({
4789
4800
  name: `builder.tests.${(e = this.builderContextSignal.content) == null ? void 0 : e.id}`,
4790
4801
  canTrack: !0
4791
4802
  }), i = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId;
4792
4803
  if (o && i === r) {
4793
4804
  const s = (n = this.builderContextSignal.content) == null ? void 0 : n.id, l = this.apiKey;
4794
- Ae({
4805
+ Ne({
4795
4806
  apiHost: this.apiHost,
4796
4807
  type: "impression",
4797
4808
  canTrack: !0,
@@ -4800,7 +4811,7 @@ font-weight: ${s};
4800
4811
  variationId: r !== s ? r : void 0
4801
4812
  });
4802
4813
  }
4803
- ke() && !A() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4814
+ Te() && !A() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4804
4815
  new CustomEvent("initpreviewingbldr")
4805
4816
  );
4806
4817
  }
@@ -4902,7 +4913,7 @@ font-weight: ${s};
4902
4913
  this.builderContextSignal.content = n;
4903
4914
  },
4904
4915
  processMessage(e) {
4905
- return _e({
4916
+ return nt({
4906
4917
  model: this.model,
4907
4918
  trustedHosts: this.trustedHosts,
4908
4919
  callbacks: {
@@ -4916,7 +4927,7 @@ font-weight: ${s};
4916
4927
  });
4917
4928
  },
4918
4929
  animation: (t) => {
4919
- st(t);
4930
+ ct(t);
4920
4931
  },
4921
4932
  contentUpdate: (t, n) => {
4922
4933
  this.mergeNewContent(t, n);
@@ -4931,7 +4942,7 @@ font-weight: ${s};
4931
4942
  var t, n;
4932
4943
  if (this.builderContextSignal.content) {
4933
4944
  const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
4934
- Ae({
4945
+ Ne({
4935
4946
  apiHost: this.apiHost,
4936
4947
  type: "click",
4937
4948
  canTrack: K(this.canTrack),
@@ -4976,7 +4987,7 @@ font-weight: ${s};
4976
4987
  url: l,
4977
4988
  method: "GET"
4978
4989
  };
4979
- Ke(JSON.stringify(a));
4990
+ Qe(JSON.stringify(a));
4980
4991
  const u = {
4981
4992
  method: a.method,
4982
4993
  headers: a.headers,
@@ -5004,7 +5015,7 @@ font-weight: ${s};
5004
5015
  "builder:component:stateChange",
5005
5016
  {
5006
5017
  detail: {
5007
- state: ye(this.builderContextSignal.rootState),
5018
+ state: Se(this.builderContextSignal.rootState),
5008
5019
  ref: {
5009
5020
  name: this.model
5010
5021
  }
@@ -5014,7 +5025,7 @@ font-weight: ${s};
5014
5025
  );
5015
5026
  },
5016
5027
  elementRef_onIniteditingbldr(e) {
5017
- window.addEventListener("message", this.processMessage), Ze({
5028
+ window.addEventListener("message", this.processMessage), tt({
5018
5029
  ...this.locale ? {
5019
5030
  locale: this.locale
5020
5031
  } : {},
@@ -5044,7 +5055,7 @@ font-weight: ${s};
5044
5055
  const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
5045
5056
  `builder.overrides.${n}`
5046
5057
  ), r = t.get("apiKey") || t.get("builder.space");
5047
- (n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && we({
5058
+ (n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && $e({
5048
5059
  model: this.model,
5049
5060
  apiKey: this.apiKey,
5050
5061
  apiVersion: this.builderContextSignal.apiVersion,
@@ -5138,7 +5149,7 @@ const Vi = /* @__PURE__ */ v(Ai, [["render", Bi]]), Ni = ({
5138
5149
  name: "content-component",
5139
5150
  components: {
5140
5151
  EnableEditor: Pi,
5141
- InlinedScript: Re,
5152
+ InlinedScript: Pe,
5142
5153
  ContentStyles: Vi,
5143
5154
  Blocks: j,
5144
5155
  DynamicDiv: ee
@@ -5176,7 +5187,7 @@ const Vi = /* @__PURE__ */ v(Ai, [["render", Bi]]), Ni = ({
5176
5187
  contentId: (t = this.content) == null ? void 0 : t.id
5177
5188
  }),
5178
5189
  registeredComponents: [
5179
- ...Fe(),
5190
+ ...Me(),
5180
5191
  ...this.customComponents || []
5181
5192
  ].reduce(
5182
5193
  (n, { component: o, ...r }) => ({
@@ -5205,7 +5216,7 @@ const Vi = /* @__PURE__ */ v(Ai, [["render", Bi]]), Ni = ({
5205
5216
  apiKey: this.apiKey,
5206
5217
  apiVersion: this.apiVersion,
5207
5218
  componentInfos: [
5208
- ...Fe(),
5219
+ ...Me(),
5209
5220
  ...this.customComponents || []
5210
5221
  ].reduce(
5211
5222
  (n, { component: o, ...r }) => ({
@@ -5226,7 +5237,7 @@ const Vi = /* @__PURE__ */ v(Ai, [["render", Bi]]), Ni = ({
5226
5237
  provide() {
5227
5238
  const e = this;
5228
5239
  return {
5229
- [Ge.key]: {
5240
+ [Ye.key]: {
5230
5241
  registeredComponents: e.registeredComponents
5231
5242
  }
5232
5243
  };
@@ -5321,7 +5332,7 @@ function Ui(e, t, n, o, r, i) {
5321
5332
  const Oi = /* @__PURE__ */ v(xi, [["render", Ui]]), Fi = y({
5322
5333
  name: "content-variants",
5323
5334
  components: {
5324
- InlinedScript: Re,
5335
+ InlinedScript: Pe,
5325
5336
  InlinedStyles: ce,
5326
5337
  ContentComponent: Oi
5327
5338
  },
@@ -5352,7 +5363,7 @@ const Oi = /* @__PURE__ */ v(xi, [["render", Ui]]), Fi = y({
5352
5363
  canTrack: K(this.canTrack),
5353
5364
  content: this.content
5354
5365
  }),
5355
- SDKS_SUPPORTING_PERSONALIZATION: ht,
5366
+ SDKS_SUPPORTING_PERSONALIZATION: gt,
5356
5367
  getInitPersonalizationVariantsFnsScriptString: Ro,
5357
5368
  TARGET: R,
5358
5369
  getInitVariantsFnsScriptString: mi,
@@ -5391,11 +5402,6 @@ function Li(e, t, n, o, r, i) {
5391
5402
  const s = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
5392
5403
  return d(), h(w, null, [
5393
5404
  !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
5405
  e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (d(), S(s, {
5400
5406
  key: 0,
5401
5407
  id: "builderio-init-personalization-variants-fns",
@@ -5404,6 +5410,11 @@ function Li(e, t, n, o, r, i) {
5404
5410
  }, null, 8, ["nonce", "scriptStr"])) : C("", !0)
5405
5411
  ], 64)) : C("", !0),
5406
5412
  e.shouldRenderVariants ? (d(), h(w, { key: 1 }, [
5413
+ $(s, {
5414
+ id: "builderio-init-variants-fns",
5415
+ scriptStr: e.getInitVariantsFnsScriptString(),
5416
+ nonce: e.nonce || ""
5417
+ }, null, 8, ["scriptStr", "nonce"]),
5407
5418
  $(l, {
5408
5419
  id: "builderio-variants",
5409
5420
  styles: e.hideVariantsStyleString,
@@ -5472,7 +5483,7 @@ const Hi = /* @__PURE__ */ v(Fi, [["render", Li]]), Mi = async ({
5472
5483
  }) => {
5473
5484
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
5474
5485
  (e != null && e.apiKey))
5475
- return we({
5486
+ return $e({
5476
5487
  model: t.model,
5477
5488
  apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
5478
5489
  apiVersion: e.apiVersion,
@@ -5583,8 +5594,8 @@ function ji(e, t, n, o, r, i) {
5583
5594
  }
5584
5595
  const zi = /* @__PURE__ */ v(qi, [["render", ji]]);
5585
5596
  export {
5586
- we as A,
5587
- dt as B,
5597
+ $e as A,
5598
+ mt as B,
5588
5599
  ro as C,
5589
5600
  Ji as D,
5590
5601
  os as E,
@@ -5602,19 +5613,19 @@ export {
5602
5613
  ts as f,
5603
5614
  ns as g,
5604
5615
  rs as h,
5605
- Ie as i,
5616
+ Re as i,
5606
5617
  tn as j,
5607
5618
  Ot as k,
5608
5619
  zi as l,
5609
5620
  j as m,
5610
5621
  Hi as n,
5611
- ke as o,
5622
+ Te as o,
5612
5623
  nn as p,
5613
5624
  Yi as q,
5614
5625
  Qi as r,
5615
5626
  _i as s,
5616
5627
  Xi as t,
5617
- Ye as u,
5628
+ _e as u,
5618
5629
  Zi as v,
5619
5630
  Di as w,
5620
5631
  es as x,