@builder.io/sdk-vue 4.1.3 → 4.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/lib/browser/{awaiter-5XM6eBKO.js → awaiter-QkoC16ei.js} +1 -1
  2. package/lib/browser/{awaiter-DZTz3Ar3.cjs → awaiter-dVEzPIfa.cjs} +1 -1
  3. package/lib/browser/{block-wrapper-R-KDYbAM.cjs → block-wrapper-BOi64ZSf.cjs} +1 -1
  4. package/lib/browser/{block-wrapper-Bzn0Mn8q.js → block-wrapper-LGlUvVpu.js} +3 -3
  5. package/lib/browser/blocks/form/form/form.vue.d.ts +4 -3
  6. package/lib/browser/blocks/img/img.vue.d.ts +9 -2
  7. package/lib/browser/blocks/symbol/symbol.types.d.ts +1 -2
  8. package/lib/browser/blocks/symbol/symbol.vue.d.ts +1 -0
  9. package/lib/browser/blocks/tabs/tabs.vue.d.ts +1 -0
  10. package/lib/browser/component-ref-Jt8NZQKY.cjs +1 -0
  11. package/lib/browser/{component-ref-gskEENuC.js → component-ref-tMh8EWjb.js} +68 -57
  12. package/lib/browser/components/awaiter.types.d.ts +7 -0
  13. package/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +1 -6
  14. package/lib/browser/components/block/components/interactive-element.vue.d.ts +6 -3
  15. package/lib/browser/components/block/components/live-edit-block-styles.vue.d.ts +19 -0
  16. package/lib/browser/components/block/components/style-wrapper.vue.d.ts +15 -0
  17. package/lib/browser/components/content/components/enable-editor.vue.d.ts +6 -2
  18. package/lib/browser/components/live-edit.vue.d.ts +17 -0
  19. package/lib/browser/constants/sdk-version.d.ts +1 -1
  20. package/lib/browser/find-block-4FksmtpZ.js +30 -0
  21. package/lib/browser/find-block-FHyxDYzT.cjs +1 -0
  22. package/lib/browser/functions/register.d.ts +18 -0
  23. package/lib/browser/{get-block-properties-WccKVsdn.js → get-block-properties-Ahsh8p5y.js} +8 -8
  24. package/lib/browser/{get-block-properties-qWby6E7c.cjs → get-block-properties-NuVrGQN_.cjs} +1 -1
  25. package/lib/browser/helpers/find-block.d.ts +18 -0
  26. package/lib/browser/helpers/subscribe-to-editor.d.ts +3 -2
  27. package/lib/browser/{index-AM8hDJBa.js → index-EtzQVBnH.js} +682 -581
  28. package/lib/browser/index-jbLVGF3d.cjs +334 -0
  29. package/lib/browser/index.cjs +1 -1
  30. package/lib/browser/index.mjs +11 -10
  31. package/lib/browser/live-edit-h_5MH287.cjs +1 -0
  32. package/lib/browser/live-edit-rw2-UX9h.js +32 -0
  33. package/lib/browser/{repeated-block-04Z899ts.cjs → repeated-block-DP1NryZH.cjs} +1 -1
  34. package/lib/browser/{repeated-block-jUlJ75XZ.js → repeated-block-WP795fea.js} +2 -2
  35. package/lib/browser/server-index.d.ts +1 -1
  36. package/lib/browser/style-wrapper-OLuHp-wg.js +210 -0
  37. package/lib/browser/style-wrapper-_FKH2e4u.cjs +1 -0
  38. package/lib/browser/style.css +1 -1
  39. package/lib/edge/{awaiter-GN-g8-yW.cjs → awaiter-AB81htE9.cjs} +1 -1
  40. package/lib/edge/{awaiter-itkvZDv7.js → awaiter-G2IZpq8y.js} +1 -1
  41. package/lib/{node/block-wrapper-vkf16jVz.cjs → edge/block-wrapper-3KMmt5za.cjs} +1 -1
  42. package/lib/{node/block-wrapper-Yxq8cADp.js → edge/block-wrapper-hc1D57Il.js} +3 -3
  43. package/lib/edge/blocks/form/form/form.vue.d.ts +4 -3
  44. package/lib/edge/blocks/img/img.vue.d.ts +9 -2
  45. package/lib/edge/blocks/symbol/symbol.types.d.ts +1 -2
  46. package/lib/edge/blocks/symbol/symbol.vue.d.ts +1 -0
  47. package/lib/edge/blocks/tabs/tabs.vue.d.ts +1 -0
  48. package/lib/edge/component-ref-1l1Dc15N.cjs +1 -0
  49. package/lib/edge/{component-ref-slGRIixC.js → component-ref-__eNmb_i.js} +68 -57
  50. package/lib/edge/components/awaiter.types.d.ts +7 -0
  51. package/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +1 -6
  52. package/lib/edge/components/block/components/interactive-element.vue.d.ts +6 -3
  53. package/lib/edge/components/block/components/live-edit-block-styles.vue.d.ts +19 -0
  54. package/lib/edge/components/block/components/style-wrapper.vue.d.ts +15 -0
  55. package/lib/edge/components/content/components/enable-editor.vue.d.ts +6 -2
  56. package/lib/edge/components/live-edit.vue.d.ts +17 -0
  57. package/lib/edge/constants/sdk-version.d.ts +1 -1
  58. package/lib/edge/find-block-3Ig0kVVe.js +29 -0
  59. package/lib/edge/find-block-FREohLcp.cjs +1 -0
  60. package/lib/edge/functions/register.d.ts +18 -0
  61. package/lib/edge/{get-block-properties-Nz3tnjcZ.js → get-block-properties-IlO7VcTG.js} +10 -10
  62. package/lib/edge/{get-block-properties-K9_lkqhk.cjs → get-block-properties-YofIFdQl.cjs} +1 -1
  63. package/lib/edge/helpers/find-block.d.ts +18 -0
  64. package/lib/edge/helpers/subscribe-to-editor.d.ts +3 -2
  65. package/lib/edge/{index-t2wm1Hgb.cjs → index-UFKf4DGh.cjs} +37 -37
  66. package/lib/edge/{index-0P0ciM70.js → index-pedBdruj.js} +975 -874
  67. package/lib/edge/index.cjs +1 -1
  68. package/lib/edge/index.mjs +12 -11
  69. package/lib/edge/live-edit-bP5Bdb_I.cjs +1 -0
  70. package/lib/edge/live-edit-mkwzJ3KQ.js +31 -0
  71. package/lib/{node/repeated-block-DbM-cXD5.cjs → edge/repeated-block-eV-zFRwn.cjs} +1 -1
  72. package/lib/{node/repeated-block-FPm9ifh_.js → edge/repeated-block-i0HNWVX0.js} +2 -2
  73. package/lib/edge/server-index.d.ts +1 -1
  74. package/lib/edge/style-wrapper-QrUxYNMa.cjs +1 -0
  75. package/lib/edge/style-wrapper-mI3PSijR.js +209 -0
  76. package/lib/edge/style.css +1 -1
  77. package/lib/node/{awaiter-BKUR1e9L.cjs → awaiter-GsCK0Rmm.cjs} +1 -1
  78. package/lib/node/{awaiter-4Zchzm7Q.js → awaiter-vsM2I4ci.js} +2 -2
  79. package/lib/{edge/block-wrapper-e9t2aTqt.js → node/block-wrapper-HC1GKPg-.js} +3 -3
  80. package/lib/{edge/block-wrapper-W6MhBMeD.cjs → node/block-wrapper-VVk0Gqbc.cjs} +1 -1
  81. package/lib/node/blocks/form/form/form.vue.d.ts +4 -3
  82. package/lib/node/blocks/img/img.vue.d.ts +9 -2
  83. package/lib/node/blocks/symbol/symbol.types.d.ts +1 -2
  84. package/lib/node/blocks/symbol/symbol.vue.d.ts +1 -0
  85. package/lib/node/blocks/tabs/tabs.vue.d.ts +1 -0
  86. package/lib/node/component-ref-SsJCZYlF.cjs +1 -0
  87. package/lib/node/{component-ref-c_8IgXLb.js → component-ref-bqN5ZiyT.js} +70 -58
  88. package/lib/node/components/awaiter.types.d.ts +7 -0
  89. package/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +1 -6
  90. package/lib/node/components/block/components/interactive-element.vue.d.ts +6 -3
  91. package/lib/node/components/block/components/live-edit-block-styles.vue.d.ts +19 -0
  92. package/lib/node/components/block/components/style-wrapper.vue.d.ts +15 -0
  93. package/lib/node/components/content/components/enable-editor.vue.d.ts +6 -2
  94. package/lib/node/components/live-edit.vue.d.ts +17 -0
  95. package/lib/node/constants/sdk-version.d.ts +1 -1
  96. package/lib/node/find-block-3Ig0kVVe.js +29 -0
  97. package/lib/node/find-block-FREohLcp.cjs +1 -0
  98. package/lib/node/functions/register.d.ts +18 -0
  99. package/lib/node/{get-block-properties-jreznjwW.cjs → get-block-properties--0kf0kc1.cjs} +1 -1
  100. package/lib/node/{get-block-properties-sJTTyxpy.js → get-block-properties-4dl07r5f.js} +1 -1
  101. package/lib/node/helpers/find-block.d.ts +18 -0
  102. package/lib/node/helpers/subscribe-to-editor.d.ts +3 -2
  103. package/lib/node/index-9ZnpkpZ8.cjs +334 -0
  104. package/lib/node/{index-0s5_7Gfu.js → index-BtCfIIfO.js} +844 -743
  105. package/lib/node/index.cjs +1 -1
  106. package/lib/node/index.mjs +10 -9
  107. package/lib/node/live-edit-dkMPrQFh.js +31 -0
  108. package/lib/node/live-edit-k5C1gkl6.cjs +1 -0
  109. package/lib/{edge/repeated-block-h1UA5gK0.js → node/repeated-block-FOLLYnPQ.js} +2 -2
  110. package/lib/{edge/repeated-block-_29LjXCq.cjs → node/repeated-block-pPsNH7xs.cjs} +1 -1
  111. package/lib/node/server-index.d.ts +1 -1
  112. package/lib/node/style-wrapper-CbrJHZiI.cjs +1 -0
  113. package/lib/node/style-wrapper-bEfbvdLX.js +210 -0
  114. package/lib/node/style.css +1 -1
  115. package/package.json +1 -1
  116. package/lib/browser/block-styles-58mkkubD.cjs +0 -1
  117. package/lib/browser/block-styles-biVGaluP.js +0 -84
  118. package/lib/browser/component-ref-V0MVxgsz.cjs +0 -1
  119. package/lib/browser/index-BiWOGEu2.cjs +0 -334
  120. package/lib/edge/block-styles-G1ClEDR3.cjs +0 -1
  121. package/lib/edge/block-styles-G42udXTn.js +0 -83
  122. package/lib/edge/component-ref-ia_8ZIAn.cjs +0 -1
  123. package/lib/node/block-styles-16ywDrRK.js +0 -84
  124. package/lib/node/block-styles-r6J38vG3.cjs +0 -1
  125. package/lib/node/component-ref-xUbOPInI.cjs +0 -1
  126. package/lib/node/index-t_oHxD-K.cjs +0 -334
@@ -1,7 +1,7 @@
1
1
  import "./style.css";
2
- import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as I, createBlock as S, resolveDynamicComponent as _, mergeProps as $, toHandlers as O, withCtx as U, renderSlot as N, resolveComponent as k, createTextVNode as Vt, toDisplayString as de, defineAsyncComponent as X, createVNode as E, renderList as L, createCommentVNode as C, h as ze, createElementVNode as z, normalizeStyle as j, normalizeClass as ee, markRaw as Nt } from "vue";
3
- const Wt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Dt = (e) => typeof e == "string" && Wt.has(e.toLowerCase());
4
- function W(e = {}, t, n) {
2
+ import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as I, createBlock as S, resolveDynamicComponent as X, mergeProps as $, toHandlers as L, withCtx as O, renderSlot as N, resolveComponent as k, createTextVNode as Vt, toDisplayString as ce, defineAsyncComponent as Y, createVNode as E, renderList as F, createCommentVNode as C, h as ze, createElementVNode as z, normalizeStyle as M, normalizeClass as Z, markRaw as Nt } from "vue";
3
+ const xt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Wt = (e) => typeof e == "string" && xt.has(e.toLowerCase());
4
+ function x(e = {}, t, n) {
5
5
  const o = {};
6
6
  for (const r in e) {
7
7
  if (!e[r] || n && !r.startsWith(t))
@@ -11,11 +11,11 @@ function W(e = {}, t, n) {
11
11
  }
12
12
  return o;
13
13
  }
14
- const xt = y({
14
+ const Dt = y({
15
15
  name: "dynamic-renderer",
16
16
  props: ["TagName", "attributes", "actionAttributes"],
17
17
  data() {
18
- return { isEmptyElement: Dt };
18
+ return { isEmptyElement: Wt };
19
19
  }
20
20
  }), v = (e, t) => {
21
21
  const n = e.__vccOpts || e;
@@ -24,24 +24,24 @@ const xt = y({
24
24
  return n;
25
25
  };
26
26
  function Ot(e, t, n, o, r, i) {
27
- return e.isEmptyElement(e.TagName) ? (d(), S(_(e.TagName), $({ key: 1 }, e.attributes, O(e.actionAttributes)), null, 16)) : (d(), h(I, { key: 0 }, [
28
- typeof e.TagName == "string" ? (d(), S(_(e.TagName), $({ key: 0 }, e.attributes, O(e.actionAttributes)), {
29
- default: U(() => [
27
+ return e.isEmptyElement(e.TagName) ? (d(), S(X(e.TagName), $({ key: 1 }, e.attributes, L(e.actionAttributes)), null, 16)) : (d(), h(I, { key: 0 }, [
28
+ typeof e.TagName == "string" ? (d(), S(X(e.TagName), $({ key: 0 }, e.attributes, L(e.actionAttributes)), {
29
+ default: O(() => [
30
30
  N(e.$slots, "default")
31
31
  ]),
32
32
  _: 3
33
- }, 16)) : (d(), S(_(e.TagName), $({ key: 1 }, e.attributes, O(e.actionAttributes)), {
34
- default: U(() => [
33
+ }, 16)) : (d(), S(X(e.TagName), $({ key: 1 }, e.attributes, L(e.actionAttributes)), {
34
+ default: O(() => [
35
35
  N(e.$slots, "default")
36
36
  ]),
37
37
  _: 3
38
38
  }, 16))
39
39
  ], 64));
40
40
  }
41
- const Ce = /* @__PURE__ */ v(xt, [["render", Ot]]), vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41
+ const ke = /* @__PURE__ */ v(Dt, [["render", Ot]]), vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42
42
  __proto__: null,
43
- default: Ce
44
- }, Symbol.toStringTag, { value: "Module" })), R = "vue", G = () => {
43
+ default: ke
44
+ }, Symbol.toStringTag, { value: "Module" })), R = "vue", j = () => {
45
45
  switch (R) {
46
46
  case "react":
47
47
  case "reactNative":
@@ -56,7 +56,7 @@ const Ce = /* @__PURE__ */ v(xt, [["render", Ot]]), vs = /* @__PURE__ */ Object.
56
56
  }
57
57
  }, Ut = y({
58
58
  name: "builder-button",
59
- components: { DynamicRenderer: Ce },
59
+ components: { DynamicRenderer: ke },
60
60
  props: [
61
61
  "attributes",
62
62
  "link",
@@ -65,13 +65,13 @@ const Ce = /* @__PURE__ */ v(xt, [["render", Ot]]), vs = /* @__PURE__ */ Object.
65
65
  "text"
66
66
  ],
67
67
  data() {
68
- return { filterAttrs: W };
68
+ return { filterAttrs: x };
69
69
  },
70
70
  methods: {
71
71
  attrs() {
72
72
  return {
73
- ...W(this.attributes, "v-on:", !1),
74
- [G()]: `${this.link ? "" : "builder-button"} ${this.attributes[G()] || ""}`,
73
+ ...x(this.attributes, "v-on:", !1),
74
+ [j()]: `${this.link ? "" : "builder-button"} ${this.attributes[j()] || ""}`,
75
75
  ...this.link ? {
76
76
  href: this.link,
77
77
  target: this.openLinkInNewTab ? "_blank" : void 0,
@@ -83,20 +83,20 @@ const Ce = /* @__PURE__ */ v(xt, [["render", Ot]]), vs = /* @__PURE__ */ Object.
83
83
  }
84
84
  }
85
85
  });
86
- function Ft(e, t, n, o, r, i) {
86
+ function Lt(e, t, n, o, r, i) {
87
87
  const s = k("DynamicRenderer");
88
88
  return d(), S(s, {
89
89
  attributes: e.attrs(),
90
90
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
91
91
  actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
92
92
  }, {
93
- default: U(() => [
94
- Vt(de(e.text), 1)
93
+ default: O(() => [
94
+ Vt(ce(e.text), 1)
95
95
  ]),
96
96
  _: 1
97
97
  }, 8, ["attributes", "TagName", "actionAttributes"]);
98
98
  }
99
- const Lt = /* @__PURE__ */ v(Ut, [["render", Ft]]), Ht = Symbol(), ge = {
99
+ const Ft = /* @__PURE__ */ v(Ut, [["render", Lt]]), Ht = Symbol(), be = {
100
100
  Builder: {
101
101
  content: null,
102
102
  context: {},
@@ -117,11 +117,11 @@ const Lt = /* @__PURE__ */ v(Ut, [["render", Ft]]), Ht = Symbol(), ge = {
117
117
  }, Mt = Symbol(), Ge = {
118
118
  Components: { registeredComponents: {} },
119
119
  key: Mt
120
- }, oe = "[Builder.io]: ", B = {
121
- log: (...e) => console.log(oe, ...e),
122
- error: (...e) => console.error(oe, ...e),
123
- warn: (...e) => console.warn(oe, ...e),
124
- debug: (...e) => console.debug(oe, ...e)
120
+ }, ne = "[Builder.io]: ", B = {
121
+ log: (...e) => console.log(ne, ...e),
122
+ error: (...e) => console.error(ne, ...e),
123
+ warn: (...e) => console.warn(ne, ...e),
124
+ debug: (...e) => console.debug(ne, ...e)
125
125
  }, Je = (e, t, n) => {
126
126
  const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, i) => r != null ? r[i] : r, e);
127
127
  return o === void 0 || o === e ? n : o;
@@ -138,7 +138,7 @@ const jt = (e) => {
138
138
  function Kt() {
139
139
  return T() && window.self !== window.top;
140
140
  }
141
- function P(e) {
141
+ function A(e) {
142
142
  return Kt() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
143
143
  Ye(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
144
144
  }
@@ -187,7 +187,7 @@ const qt = () => {
187
187
  context: t,
188
188
  event: n
189
189
  }), Jt = () => ({
190
- isEditing: P(),
190
+ isEditing: A(),
191
191
  isBrowser: T(),
192
192
  isServer: !T(),
193
193
  getUserAttributes: () => Xe()
@@ -219,7 +219,7 @@ function _e({
219
219
  }
220
220
  });
221
221
  }
222
- const We = ({
222
+ const xe = ({
223
223
  code: e,
224
224
  builder: t,
225
225
  context: n,
@@ -228,7 +228,7 @@ const We = ({
228
228
  rootSetState: i,
229
229
  rootState: s
230
230
  }) => {
231
- const a = Gt({
231
+ const l = Gt({
232
232
  builder: t,
233
233
  context: n,
234
234
  event: o,
@@ -238,7 +238,7 @@ const We = ({
238
238
  rootSetState: i
239
239
  })
240
240
  });
241
- return new Function(...a.map(([l]) => l), e)(...a.map(([, l]) => l));
241
+ return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
242
242
  }, K = (e) => e != null;
243
243
  function Yt() {
244
244
  var e;
@@ -254,11 +254,11 @@ const Xt = ({
254
254
  return t && n && !o ? (e && B.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
255
255
  }, _t = (e) => (T() || Xt({
256
256
  shouldLogWarning: !0
257
- }), We(e)), Zt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, en = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, tn = (e) => {
257
+ }), xe(e)), Zt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, en = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, tn = (e) => {
258
258
  var t, n, o, r, i, s;
259
259
  return ((o = (n = (t = Zt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = en.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
260
260
  };
261
- function te({
261
+ function ee({
262
262
  code: e,
263
263
  context: t,
264
264
  localState: n,
@@ -269,13 +269,13 @@ function te({
269
269
  }) {
270
270
  if (e.trim() === "")
271
271
  return;
272
- const a = tn(e.trim());
273
- if (a)
272
+ const l = tn(e.trim());
273
+ if (l)
274
274
  return Je({
275
275
  ...o,
276
276
  ...n
277
- }, a);
278
- const l = {
277
+ }, l);
278
+ const a = {
279
279
  code: Qt(e, {
280
280
  isExpression: s
281
281
  }),
@@ -287,7 +287,7 @@ function te({
287
287
  localState: n
288
288
  };
289
289
  try {
290
- return _t(l);
290
+ return _t(a);
291
291
  } catch (u) {
292
292
  B.error("Failed code evaluation: " + u.message, {
293
293
  code: e
@@ -308,7 +308,7 @@ const on = (e, t) => {
308
308
  if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((o = e.component.options) != null && o.text) && typeof e.component.options.text == "string")
309
309
  return {
310
310
  ...e.component.options,
311
- text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, i) => te({
311
+ text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, i) => ee({
312
312
  code: i,
313
313
  context: t,
314
314
  localState: t.localState,
@@ -323,7 +323,7 @@ function rn(e, ...t) {
323
323
  delete n[o];
324
324
  return n;
325
325
  }
326
- function ae(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
326
+ function se(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
327
327
  if (e == null || typeof e != "object") {
328
328
  t(e, (i) => {
329
329
  n !== null && o !== null && (n[o] = i);
@@ -331,13 +331,13 @@ function ae(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
331
331
  return;
332
332
  }
333
333
  r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((i, s) => {
334
- t(i, (l) => {
335
- e[s] = l;
336
- }), ae(i, t, e, s, r);
334
+ t(i, (a) => {
335
+ e[s] = a;
336
+ }), se(i, t, e, s, r);
337
337
  }) : Object.entries(e).forEach(([i, s]) => {
338
- t(s, (l) => {
339
- e[i] = l;
340
- }), ae(s, t, e, i, r);
338
+ t(s, (a) => {
339
+ e[i] = a;
340
+ }), se(s, t, e, i, r);
341
341
  }));
342
342
  }
343
343
  function Ze(e) {
@@ -347,7 +347,7 @@ function sn(e) {
347
347
  if (!e || !Object.getOwnPropertyNames(e).length)
348
348
  return !1;
349
349
  let t = !1;
350
- return ae(e, (n) => {
350
+ return se(e, (n) => {
351
351
  if (Ze(n)) {
352
352
  t = !0;
353
353
  return;
@@ -355,7 +355,7 @@ function sn(e) {
355
355
  }), t;
356
356
  }
357
357
  function an(e, t) {
358
- return !e || !Object.getOwnPropertyNames(e).length ? {} : (ae(e, (n, o) => {
358
+ return !e || !Object.getOwnPropertyNames(e).length ? {} : (se(e, (n, o) => {
359
359
  Ze(n) && o(n[t] ?? void 0);
360
360
  }), e);
361
361
  }
@@ -363,27 +363,27 @@ function ln(e, t) {
363
363
  var n, o;
364
364
  return (n = e.component) != null && n.options && sn((o = e.component) == null ? void 0 : o.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = an(e.component.options, t ?? "Default")), e;
365
365
  }
366
- const Te = (e) => JSON.parse(JSON.stringify(e)), et = (e, t, n) => {
366
+ const Ce = (e) => JSON.parse(JSON.stringify(e)), et = (e, t, n) => {
367
367
  if (Object(e) !== e)
368
368
  return e;
369
369
  const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
370
370
  return o.slice(0, -1).reduce((r, i, s) => Object(r[i]) === r[i] ? r[i] : r[i] = Math.abs(Number(o[s + 1])) >> 0 === +o[s + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
371
371
  };
372
- function ye(e) {
372
+ function ge(e) {
373
373
  if (e === null || typeof e != "object")
374
374
  return e;
375
375
  if (Array.isArray(e))
376
- return e.map((n) => ye(n));
376
+ return e.map((n) => ge(n));
377
377
  if (e["@type"] === "@builder.io/sdk:Element")
378
378
  return e;
379
379
  const t = {};
380
380
  for (const n in e)
381
- n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ye(e[n]));
381
+ n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ge(e[n]));
382
382
  return t;
383
383
  }
384
384
  const cn = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), dn = (e) => {
385
385
  if (cn) {
386
- const t = Te(e);
386
+ const t = Ce(e);
387
387
  return {
388
388
  ...t,
389
389
  properties: {
@@ -394,7 +394,7 @@ const cn = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), dn = (e) =
394
394
  }
395
395
  };
396
396
  } else {
397
- const t = ye(rn(e, "children", "meta"));
397
+ const t = ge(rn(e, "children", "meta"));
398
398
  return {
399
399
  ...t,
400
400
  properties: {
@@ -418,14 +418,14 @@ const cn = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), dn = (e) =
418
418
  return e;
419
419
  const i = dn(e);
420
420
  for (const s in e.bindings) {
421
- const a = e.bindings[s], l = te({
422
- code: a,
421
+ const l = e.bindings[s], a = ee({
422
+ code: l,
423
423
  localState: n,
424
424
  rootState: o,
425
425
  rootSetState: r,
426
426
  context: t
427
427
  });
428
- et(i, s, l);
428
+ et(i, s, a);
429
429
  }
430
430
  return i;
431
431
  };
@@ -445,25 +445,25 @@ function pn({
445
445
  context: t
446
446
  }), i = ln(i, o.locale), i;
447
447
  }
448
- function we(e) {
448
+ function Te(e) {
449
449
  const t = e || (T() ? window.location.search : void 0);
450
450
  return t ? Ye(t).indexOf("builder.preview=") !== -1 : !1;
451
451
  }
452
452
  const mn = (e) => ({
453
453
  type: "builder.registerComponent",
454
- data: le(e)
454
+ data: ae(e)
455
455
  }), hn = (e) => {
456
456
  const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
457
457
  return `return (${!t.startsWith("function") && !t.startsWith("async") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
458
458
  };
459
- function le(e) {
459
+ function ae(e) {
460
460
  return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? hn(n) : n));
461
461
  }
462
- const De = {};
462
+ const We = {};
463
463
  function Ss(e, t) {
464
- e === "plugin" && (t = le(t));
465
- let n = De[e];
466
- if (n || (n = De[e] = []), n.push(t), T()) {
464
+ e === "plugin" && (t = ae(t));
465
+ let n = We[e];
466
+ if (n || (n = We[e] = []), n.push(t), T()) {
467
467
  const o = {
468
468
  type: "builder.register",
469
469
  data: {
@@ -478,13 +478,23 @@ function Ss(e, t) {
478
478
  }
479
479
  }
480
480
  }
481
- const xe = {};
482
481
  function ks(e) {
482
+ var t;
483
+ if (T()) {
484
+ const n = JSON.parse(JSON.stringify(e));
485
+ e.action && (n.action = e.action.toString()), (t = window.parent) == null || t.postMessage({
486
+ type: "builder.registerAction",
487
+ data: n
488
+ }, "*");
489
+ }
490
+ }
491
+ const De = {};
492
+ function Cs(e) {
483
493
  if (T()) {
484
- Object.assign(xe, e);
494
+ Object.assign(De, e);
485
495
  const t = {
486
496
  type: "builder.settingsChange",
487
- data: xe
497
+ data: De
488
498
  };
489
499
  parent.postMessage(t, "*");
490
500
  }
@@ -504,7 +514,7 @@ const Oe = "builder.", fn = "options.", tt = (e) => {
504
514
  return {};
505
515
  const e = new URLSearchParams(window.location.search);
506
516
  return tt(e);
507
- }, nt = "4.1.3", ot = () => ({
517
+ }, nt = "4.2.3", ot = () => ({
508
518
  "X-Builder-SDK": R,
509
519
  "X-Builder-SDK-GEN": "2",
510
520
  "X-Builder-SDK-Version": nt
@@ -513,7 +523,7 @@ const Oe = "builder.", fn = "options.", tt = (e) => {
513
523
  return e;
514
524
  const t = e.split(".");
515
525
  return t.length > 2 ? t.slice(1).join(".") : e;
516
- }, ue = ({
526
+ }, de = ({
517
527
  name: e,
518
528
  canTrack: t
519
529
  }) => {
@@ -524,14 +534,14 @@ const Oe = "builder.", fn = "options.", tt = (e) => {
524
534
  B.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
525
535
  return;
526
536
  }
527
- }, rt = async (e) => ue(e), yn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(K).join("; "), vn = [["secure", ""], ["SameSite", "None"]], Sn = ({
537
+ }, rt = async (e) => de(e), yn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(K).join("; "), vn = [["secure", ""], ["SameSite", "None"]], Sn = ({
528
538
  name: e,
529
539
  value: t,
530
540
  expires: n
531
541
  }) => {
532
542
  const r = (T() ? location.protocol === "https:" : !0) ? vn : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", gn(window.location.hostname)], ...r];
533
543
  return yn(s);
534
- }, Ie = async ({
544
+ }, we = async ({
535
545
  name: e,
536
546
  value: t,
537
547
  expires: n,
@@ -580,7 +590,7 @@ const st = "builderSessionId", Cn = async ({
580
590
  }, Tn = () => it(), wn = ({
581
591
  id: e,
582
592
  canTrack: t
583
- }) => Ie({
593
+ }) => we({
584
594
  name: st,
585
595
  value: e,
586
596
  canTrack: t
@@ -619,12 +629,12 @@ const st = "builderSessionId", Cn = async ({
619
629
  return t;
620
630
  {
621
631
  const n = En();
622
- return Pn({
632
+ return An({
623
633
  id: n,
624
634
  canTrack: e
625
635
  }), n;
626
636
  }
627
- }, En = () => it(), Pn = ({
637
+ }, En = () => it(), An = ({
628
638
  id: e,
629
639
  canTrack: t
630
640
  }) => $n({
@@ -632,11 +642,11 @@ const st = "builderSessionId", Cn = async ({
632
642
  value: e,
633
643
  canTrack: t
634
644
  });
635
- function $e(e) {
645
+ function Ie(e) {
636
646
  var t;
637
647
  typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && B.log(e);
638
648
  }
639
- const An = async ({
649
+ const Pn = async ({
640
650
  canTrack: e
641
651
  }) => {
642
652
  if (!e)
@@ -667,14 +677,14 @@ const An = async ({
667
677
  url: location.href,
668
678
  ...o
669
679
  },
670
- ...await An({
680
+ ...await Pn({
671
681
  canTrack: t
672
682
  }),
673
683
  userAttributes: Xe(),
674
684
  ownerId: n
675
685
  }
676
686
  });
677
- async function ve({
687
+ async function ye({
678
688
  apiHost: e,
679
689
  ...t
680
690
  }) {
@@ -682,10 +692,10 @@ async function ve({
682
692
  B.error("Missing API key for track call. Please provide your API key.");
683
693
  return;
684
694
  }
685
- if (!t.canTrack || P() || !(T() || R === "reactNative"))
695
+ if (!t.canTrack || A() || !(T() || R === "reactNative"))
686
696
  return;
687
697
  const o = `${e || "https://cdn.builder.io"}/api/v1/track`;
688
- return $e(o), fetch(o, {
698
+ return Ie(o), fetch(o, {
689
699
  method: "POST",
690
700
  body: JSON.stringify({
691
701
  events: [await Bn(t)]
@@ -699,7 +709,7 @@ async function ve({
699
709
  console.error("Failed to track: ", r);
700
710
  });
701
711
  }
702
- const Cs = (e) => ve({
712
+ const Ts = (e) => ye({
703
713
  ...e,
704
714
  canTrack: !0
705
715
  }), Vn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
@@ -742,10 +752,10 @@ const dt = (e) => {
742
752
  if (r != null && r.type)
743
753
  switch (r.type) {
744
754
  case "builder.evaluate": {
745
- const a = r.data.text, l = r.data.arguments || [], u = r.data.id, p = new Function(a);
755
+ const l = r.data.text, a = r.data.arguments || [], u = r.data.id, p = new Function(l);
746
756
  let f, c = null;
747
757
  try {
748
- f = p.apply(null, l);
758
+ f = p.apply(null, a);
749
759
  } catch (m) {
750
760
  c = m;
751
761
  }
@@ -796,17 +806,17 @@ const dt = (e) => {
796
806
  break;
797
807
  }
798
808
  case "builder.resetState": {
799
- const i = r.data, s = i.model, a = i == null ? void 0 : i.state;
800
- s === e && a && n.stateUpdate(a);
809
+ const i = r.data, s = i.model, l = i == null ? void 0 : i.state, a = i.editType;
810
+ s === e && l && n.stateUpdate(l, a);
801
811
  break;
802
812
  }
803
813
  case "builder.contentUpdate": {
804
- const i = r.data, s = i.key || i.alias || i.entry || i.modelName, a = i.data;
805
- s === e && n.contentUpdate(a);
814
+ const i = r.data, s = i.key || i.alias || i.entry || i.modelName, l = i.data, a = i.editType;
815
+ s === e && n.contentUpdate(l, a);
806
816
  break;
807
817
  }
808
818
  }
809
- }, Ts = ({
819
+ }, ws = ({
810
820
  model: e,
811
821
  apiKey: t,
812
822
  callback: n,
@@ -835,21 +845,21 @@ const dt = (e) => {
835
845
  return window.addEventListener("message", r), () => {
836
846
  window.removeEventListener("message", r);
837
847
  };
838
- }, Nn = "builder.tests", Re = (e) => `${Nn}.${e}`, Wn = ({
848
+ }, Nn = "builder.tests", $e = (e) => `${Nn}.${e}`, xn = ({
839
849
  contentId: e
840
850
  }) => rt({
841
- name: Re(e),
851
+ name: $e(e),
842
852
  canTrack: !0
843
- }), Dn = ({
853
+ }), Wn = ({
844
854
  contentId: e
845
- }) => ue({
846
- name: Re(e),
855
+ }) => de({
856
+ name: $e(e),
847
857
  canTrack: !0
848
- }), xn = ({
858
+ }), Dn = ({
849
859
  contentId: e,
850
860
  value: t
851
- }) => Ie({
852
- name: Re(e),
861
+ }) => we({
862
+ name: $e(e),
853
863
  value: t,
854
864
  canTrack: !0
855
865
  }), pt = (e) => K(e.id) && K(e.variations) && Object.keys(e.variations).length > 0, On = ({
@@ -867,7 +877,7 @@ const dt = (e) => {
867
877
  return e;
868
878
  }, mt = (e) => {
869
879
  const t = On(e);
870
- return xn({
880
+ return Dn({
871
881
  contentId: e.id,
872
882
  value: t
873
883
  }).catch((n) => {
@@ -897,7 +907,7 @@ const dt = (e) => {
897
907
  return;
898
908
  if (!pt(e))
899
909
  return e;
900
- const n = Dn({
910
+ const n = Wn({
901
911
  contentId: e.id
902
912
  }) || mt({
903
913
  variations: e.variations,
@@ -910,13 +920,13 @@ const dt = (e) => {
910
920
  ...e,
911
921
  ...o
912
922
  };
913
- }, Fn = async ({
923
+ }, Ln = async ({
914
924
  item: e,
915
925
  canTrack: t
916
926
  }) => {
917
927
  if (!t || !pt(e))
918
928
  return e;
919
- const o = await Wn({
929
+ const o = await xn({
920
930
  contentId: e.id
921
931
  }) || mt({
922
932
  variations: e.variations,
@@ -930,8 +940,8 @@ const dt = (e) => {
930
940
  ...r
931
941
  };
932
942
  };
933
- const Fe = "builder.userAttributes";
934
- function Le() {
943
+ const Le = "builder.userAttributes";
944
+ function Fe() {
935
945
  let e = !0;
936
946
  const t = /* @__PURE__ */ new Set();
937
947
  return {
@@ -942,15 +952,15 @@ function Le() {
942
952
  ...this.getUserAttributes(),
943
953
  ...n
944
954
  };
945
- Ie({
946
- name: Fe,
955
+ we({
956
+ name: Le,
947
957
  value: JSON.stringify(o),
948
958
  canTrack: e
949
959
  }), t.forEach((r) => r(o));
950
960
  },
951
961
  getUserAttributes() {
952
- return T() ? JSON.parse(ue({
953
- name: Fe,
962
+ return T() ? JSON.parse(de({
963
+ name: Le,
954
964
  canTrack: e
955
965
  }) || "{}") : {};
956
966
  },
@@ -966,31 +976,31 @@ function Le() {
966
976
  }
967
977
  };
968
978
  }
969
- let Se;
970
- T() && R === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = Le()), Se = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : Se = Le();
971
- const ce = Se, ws = (e) => {
972
- ce.setUserAttributes(e);
973
- }, J = (e) => {
979
+ let ve;
980
+ T() && R === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = Fe()), ve = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : ve = Fe();
981
+ const le = ve, Is = (e) => {
982
+ le.setUserAttributes(e);
983
+ }, G = (e) => {
974
984
  const t = K(e) ? e : !0;
975
- return ce.setCanTrack(t), t;
985
+ return le.setCanTrack(t), t;
976
986
  };
977
- function Ln() {
987
+ function Fn() {
978
988
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
979
989
  }
980
990
  function Hn() {
981
- const e = Ln().fetch;
991
+ const e = Fn().fetch;
982
992
  if (typeof e > "u")
983
993
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
984
994
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
985
995
  return e;
986
996
  }
987
997
  const Mn = Hn();
988
- function ke(e, t = null, n = ".") {
998
+ function Se(e, t = null, n = ".") {
989
999
  return Object.keys(e).reduce((o, r) => {
990
1000
  const i = e[r], s = [t, r].filter(Boolean).join(n);
991
1001
  return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
992
1002
  ...o,
993
- ...ke(i, s, n)
1003
+ ...Se(i, s, n)
994
1004
  } : {
995
1005
  ...o,
996
1006
  [s]: i
@@ -1016,7 +1026,7 @@ function jn(e) {
1016
1026
  }
1017
1027
  return t;
1018
1028
  }
1019
- const Kn = "v3", He = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ee = (e) => {
1029
+ const Kn = "v3", He = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Re = (e) => {
1020
1030
  const {
1021
1031
  limit: t = 30,
1022
1032
  userAttributes: n,
@@ -1024,8 +1034,8 @@ const Kn = "v3", He = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ee = (
1024
1034
  model: r,
1025
1035
  apiKey: i,
1026
1036
  enrich: s,
1027
- locale: a,
1028
- apiVersion: l = Kn,
1037
+ locale: l,
1038
+ apiVersion: a = Kn,
1029
1039
  fields: u,
1030
1040
  omit: p,
1031
1041
  offset: f,
@@ -1033,43 +1043,39 @@ const Kn = "v3", He = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ee = (
1033
1043
  staleCacheSeconds: m,
1034
1044
  sort: b,
1035
1045
  includeUnpublished: g,
1036
- apiHost: A
1046
+ apiHost: P
1037
1047
  } = e;
1038
1048
  if (!i)
1039
1049
  throw new Error("Missing API key");
1040
- if (!["v3"].includes(l))
1041
- throw new Error(`Invalid apiVersion: expected 'v3', received '${l}'`);
1042
- const F = t !== 1, V = A || "https://cdn.builder.io", w = new URL(`${V}/api/${l}/content/${r}`);
1043
- w.searchParams.set("apiKey", i), w.searchParams.set("limit", String(t)), w.searchParams.set("noTraverse", String(F)), w.searchParams.set("includeRefs", String(!0));
1044
- const D = a || (n == null ? void 0 : n.locale);
1045
- let H = n || {};
1046
- if (D && (w.searchParams.set("locale", D), H = {
1047
- locale: D,
1048
- ...H
1049
- }), s && w.searchParams.set("enrich", String(s)), w.searchParams.set("omit", p ?? "meta.componentsUsed"), u && w.searchParams.set("fields", u), Number.isFinite(f) && f > -1 && w.searchParams.set("offset", String(Math.floor(f))), typeof g == "boolean" && w.searchParams.set("includeUnpublished", String(g)), c && He(c) && w.searchParams.set("cacheSeconds", String(c)), m && He(m) && w.searchParams.set("staleCacheSeconds", String(m)), b) {
1050
- const x = ke({
1050
+ if (!["v3"].includes(a))
1051
+ throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
1052
+ const U = t !== 1, V = P || "https://cdn.builder.io", w = new URL(`${V}/api/${a}/content/${r}`);
1053
+ w.searchParams.set("apiKey", i), w.searchParams.set("limit", String(t)), w.searchParams.set("noTraverse", String(U)), w.searchParams.set("includeRefs", String(!0)), l && w.searchParams.set("locale", l);
1054
+ let W = n || {};
1055
+ if (s && w.searchParams.set("enrich", String(s)), w.searchParams.set("omit", p ?? "meta.componentsUsed"), u && w.searchParams.set("fields", u), Number.isFinite(f) && f > -1 && w.searchParams.set("offset", String(Math.floor(f))), typeof g == "boolean" && w.searchParams.set("includeUnpublished", String(g)), c && He(c) && w.searchParams.set("cacheSeconds", String(c)), m && He(m) && w.searchParams.set("staleCacheSeconds", String(m)), b) {
1056
+ const D = Se({
1051
1057
  sort: b
1052
1058
  });
1053
- for (const M in x)
1054
- w.searchParams.set(M, JSON.stringify(x[M]));
1059
+ for (const H in D)
1060
+ w.searchParams.set(H, JSON.stringify(D[H]));
1055
1061
  }
1056
- const Q = {
1062
+ const J = {
1057
1063
  ...bn(),
1058
1064
  ...Qe(e.options || {})
1059
1065
  };
1060
- H = {
1061
- ...H,
1062
- ...zn(Q)
1066
+ W = {
1067
+ ...W,
1068
+ ...zn(J)
1063
1069
  };
1064
- const Y = ke(Q);
1065
- for (const x in Y)
1066
- w.searchParams.set(x, String(Y[x]));
1067
- if (Object.keys(H).length > 0 && w.searchParams.set("userAttributes", JSON.stringify(H)), o) {
1068
- const x = ft({
1070
+ const Q = Se(J);
1071
+ for (const D in Q)
1072
+ w.searchParams.set(D, String(Q[D]));
1073
+ if (Object.keys(W).length > 0 && w.searchParams.set("userAttributes", JSON.stringify(W)), o) {
1074
+ const D = ft({
1069
1075
  query: o
1070
1076
  });
1071
- for (const M in x)
1072
- w.searchParams.set(M, JSON.stringify(x[M]));
1077
+ for (const H in D)
1078
+ w.searchParams.set(H, JSON.stringify(D[H]));
1073
1079
  }
1074
1080
  return w;
1075
1081
  }, qn = (e) => {
@@ -1087,16 +1093,22 @@ const Kn = "v3", He = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ee = (
1087
1093
  }
1088
1094
  return {};
1089
1095
  }, Gn = (e) => "results" in e;
1090
- async function Pe(e) {
1091
- const t = await Yn({
1096
+ async function Ee(e) {
1097
+ var o;
1098
+ const t = e.locale || ((o = e.userAttributes) == null ? void 0 : o.locale);
1099
+ t && (e.locale = t, e.userAttributes = {
1100
+ locale: t,
1101
+ ...e.userAttributes
1102
+ });
1103
+ const n = await Yn({
1092
1104
  ...e,
1093
1105
  limit: 1
1094
1106
  });
1095
- return t && t[0] || null;
1107
+ return n && n[0] || null;
1096
1108
  }
1097
1109
  const Jn = async (e) => {
1098
1110
  var s;
1099
- const t = Ee(e), n = e.fetch ?? Mn, o = {
1111
+ const t = Re(e), n = e.fetch ?? Mn, o = {
1100
1112
  ...e.fetchOptions,
1101
1113
  headers: {
1102
1114
  ...(s = e.fetchOptions) == null ? void 0 : s.headers,
@@ -1104,14 +1116,14 @@ const Jn = async (e) => {
1104
1116
  }
1105
1117
  };
1106
1118
  return await (await n(t.href, o)).json();
1107
- }, Qn = async (e, t, n = Ee(e)) => {
1108
- const o = J(e.canTrack);
1119
+ }, Qn = async (e, t, n = Re(e)) => {
1120
+ const o = G(e.canTrack);
1109
1121
  if (n.search.includes("preview="), !o || !(T() || R === "reactNative"))
1110
1122
  return t.results;
1111
1123
  try {
1112
1124
  const r = [];
1113
1125
  for (const i of t.results)
1114
- r.push(await Fn({
1126
+ r.push(await Ln({
1115
1127
  item: i,
1116
1128
  canTrack: o
1117
1129
  }));
@@ -1122,7 +1134,7 @@ const Jn = async (e) => {
1122
1134
  return t.results;
1123
1135
  };
1124
1136
  async function Yn(e) {
1125
- const t = Ee(e), n = await Jn(e);
1137
+ const t = Re(e), n = await Jn(e);
1126
1138
  if (!Gn(n))
1127
1139
  throw B.error("Error fetching data. ", {
1128
1140
  url: t,
@@ -1131,7 +1143,7 @@ async function Yn(e) {
1131
1143
  }), n;
1132
1144
  return Qn(e, n);
1133
1145
  }
1134
- const Is = async (e) => {
1146
+ const $s = async (e) => {
1135
1147
  var o, r, i;
1136
1148
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
1137
1149
  ...e,
@@ -1148,22 +1160,22 @@ const Is = async (e) => {
1148
1160
  return {
1149
1161
  apiKey: n.apiKey,
1150
1162
  model: n.model,
1151
- content: await Pe(n)
1163
+ content: await Ee(n)
1152
1164
  };
1153
1165
  }, Ae = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
1154
1166
  function Xn(e, t, n = {}) {
1155
- let o, r, i, s = null, a = 0;
1156
- const l = function() {
1157
- a = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
1167
+ let o, r, i, s = null, l = 0;
1168
+ const a = function() {
1169
+ l = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
1158
1170
  };
1159
1171
  return function() {
1160
1172
  const u = Date.now();
1161
- !a && n.leading === !1 && (a = u);
1162
- const p = t - (u - a);
1163
- return o = this, r = arguments, p <= 0 || p > t ? (s && (clearTimeout(s), s = null), a = u, i = e.apply(o, r), s || (o = r = null)) : !s && n.trailing !== !1 && (s = setTimeout(l, p)), i;
1173
+ !l && n.leading === !1 && (l = u);
1174
+ const p = t - (u - l);
1175
+ return o = this, r = arguments, p <= 0 || p > t ? (s && (clearTimeout(s), s = null), l = u, i = e.apply(o, r), s || (o = r = null)) : !s && n.trailing !== !1 && (s = setTimeout(a, p)), i;
1164
1176
  };
1165
1177
  }
1166
- function Z(e, ...t) {
1178
+ function _(e, ...t) {
1167
1179
  const n = Object(e);
1168
1180
  for (let o = 1; o < arguments.length; o++) {
1169
1181
  const r = arguments[o];
@@ -1189,9 +1201,9 @@ function bt(e) {
1189
1201
  }
1190
1202
  function gt(e, t) {
1191
1203
  const n = Zn(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
1192
- for (const a of s)
1193
- for (const l of n)
1194
- l in a || (a[l] = o[l]);
1204
+ for (const l of s)
1205
+ for (const a of n)
1206
+ a in l || (l[a] = o[a]);
1195
1207
  }
1196
1208
  function Zn(e) {
1197
1209
  const t = [];
@@ -1207,8 +1219,8 @@ function yt(e) {
1207
1219
  return;
1208
1220
  }
1209
1221
  Array.from(t).forEach((n) => {
1210
- gt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Z(n.style, e.steps[0].styles), setTimeout(() => {
1211
- n.style.transition = `all ${e.duration}s ${Ae(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Z(n.style, e.steps[1].styles), setTimeout(() => {
1222
+ gt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", _(n.style, e.steps[0].styles), setTimeout(() => {
1223
+ n.style.transition = `all ${e.duration}s ${Ae(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), _(n.style, e.steps[1].styles), setTimeout(() => {
1212
1224
  n.style.transition = "", n.style.transitionDelay = "";
1213
1225
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
1214
1226
  });
@@ -1224,22 +1236,22 @@ function eo(e) {
1224
1236
  gt(e, n);
1225
1237
  let o = !1, r = !1;
1226
1238
  function i() {
1227
- !o && a(n) ? (o = !0, r = !0, setTimeout(() => {
1228
- Z(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
1239
+ !o && l(n) ? (o = !0, r = !0, setTimeout(() => {
1240
+ _(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
1229
1241
  r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
1230
1242
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
1231
- })) : e.repeat && o && !r && !a(n) && (o = !1, Z(n.style, e.steps[0].styles));
1243
+ })) : e.repeat && o && !r && !l(n) && (o = !1, _(n.style, e.steps[0].styles));
1232
1244
  }
1233
1245
  const s = Xn(i, 200, {
1234
1246
  leading: !1
1235
1247
  });
1236
- function a(p) {
1248
+ function l(p) {
1237
1249
  const f = p.getBoundingClientRect(), c = window.innerHeight, b = (e.thresholdPercent || 0) / 100 * c;
1238
1250
  return f.bottom > b && f.top < c - b;
1239
1251
  }
1240
- const l = e.steps[0].styles;
1252
+ const a = e.steps[0].styles;
1241
1253
  function u() {
1242
- Z(n.style, l);
1254
+ _(n.style, a);
1243
1255
  }
1244
1256
  u(), setTimeout(() => {
1245
1257
  n.style.transition = `all ${e.duration}s ${Ae(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
@@ -1253,7 +1265,7 @@ const vt = (e) => Object.entries(e).map(([n, o]) => {
1253
1265
  if (typeof o == "string")
1254
1266
  return `${Ae(n)}: ${o};`;
1255
1267
  }).filter(K), to = (e) => vt(e).join(`
1256
- `), $s = ({
1268
+ `), Rs = ({
1257
1269
  mediaQuery: e,
1258
1270
  className: t,
1259
1271
  styles: n
@@ -1270,7 +1282,7 @@ function no({
1270
1282
  }) {
1271
1283
  return e;
1272
1284
  }
1273
- const Rs = ({
1285
+ const Es = ({
1274
1286
  block: e,
1275
1287
  context: t
1276
1288
  }) => St(no({
@@ -1319,7 +1331,7 @@ const kt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1319
1331
  } = e;
1320
1332
  if (!(n != null && n.collection))
1321
1333
  return;
1322
- const r = te({
1334
+ const r = ee({
1323
1335
  code: n.collection,
1324
1336
  localState: t.localState,
1325
1337
  rootState: t.rootState,
@@ -1329,14 +1341,14 @@ const kt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1329
1341
  if (!Array.isArray(r))
1330
1342
  return;
1331
1343
  const i = n.collection.split(".").pop(), s = n.itemName || (i ? i + "Item" : "item");
1332
- return r.map((l, u) => ({
1344
+ return r.map((a, u) => ({
1333
1345
  context: {
1334
1346
  ...t,
1335
1347
  localState: {
1336
1348
  ...t.localState,
1337
1349
  $index: u,
1338
- $item: l,
1339
- [s]: l,
1350
+ $item: a,
1351
+ [s]: a,
1340
1352
  [`$${s}Index`]: u
1341
1353
  }
1342
1354
  },
@@ -1367,34 +1379,34 @@ const kt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1367
1379
  "Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
1368
1380
  e
1369
1381
  ), e;
1370
- }), po = () => import("./block-styles-biVGaluP.js").then((e) => e.default).catch((e) => {
1371
- throw console.error(
1372
- "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
1373
- e
1374
- ), e;
1375
- }), mo = () => import("./block-wrapper-Bzn0Mn8q.js").then((e) => e.default).catch((e) => {
1382
+ }), po = () => import("./block-wrapper-LGlUvVpu.js").then((e) => e.default).catch((e) => {
1376
1383
  throw console.error(
1377
1384
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
1378
1385
  e
1379
1386
  ), e;
1380
- }), ho = () => import("./component-ref-gskEENuC.js").then((e) => e.default).catch((e) => {
1387
+ }), mo = () => import("./component-ref-tMh8EWjb.js").then((e) => e.default).catch((e) => {
1381
1388
  throw console.error(
1382
1389
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
1383
1390
  e
1384
1391
  ), e;
1385
- }), fo = () => import("./repeated-block-jUlJ75XZ.js").then((e) => e.default).catch((e) => {
1392
+ }), ho = () => import("./repeated-block-WP795fea.js").then((e) => e.default).catch((e) => {
1386
1393
  throw console.error(
1387
1394
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
1388
1395
  e
1389
1396
  ), e;
1397
+ }), fo = () => import("./style-wrapper-OLuHp-wg.js").then((e) => e.default).catch((e) => {
1398
+ throw console.error(
1399
+ "Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
1400
+ e
1401
+ ), e;
1390
1402
  }), bo = y({
1391
1403
  name: "block",
1392
1404
  components: {
1393
- BlockStyles: X(po),
1394
- RepeatedBlock: X(fo),
1395
- ComponentRef: X(ho),
1396
- BlockWrapper: X(mo),
1397
- DynamicDiv: X(uo)
1405
+ StyleWrapper: Y(fo),
1406
+ RepeatedBlock: Y(ho),
1407
+ ComponentRef: Y(mo),
1408
+ BlockWrapper: Y(po),
1409
+ DynamicDiv: Y(uo)
1398
1410
  },
1399
1411
  props: ["block", "context", "registeredComponents", "linkComponent"],
1400
1412
  data() {
@@ -1484,20 +1496,21 @@ const kt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1484
1496
  });
1485
1497
  function go(e, t, n, o, r, i) {
1486
1498
  var f;
1487
- const s = k("BlockStyles"), a = k("ComponentRef"), l = k("Block", !0), u = k("BlockWrapper"), p = k("RepeatedBlock");
1499
+ const s = k("StyleWrapper"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), p = k("RepeatedBlock");
1488
1500
  return e.canShowBlock ? (d(), h(I, { key: 0 }, [
1489
1501
  E(s, {
1490
1502
  block: e.processedBlock,
1491
- context: e.context
1492
- }, null, 8, ["block", "context"]),
1503
+ context: e.context,
1504
+ id: e.block.id
1505
+ }, null, 8, ["block", "context", "id"]),
1493
1506
  (f = e.blockComponent) != null && f.noWrap ? (d(), h(I, { key: 1 }, [
1494
- e.repeatItem ? (d(!0), h(I, { key: 1 }, L(e.repeatItem, (c, m) => (d(), S(p, {
1507
+ e.repeatItem ? (d(!0), h(I, { key: 1 }, F(e.repeatItem, (c, m) => (d(), S(p, {
1495
1508
  key: e.generateKey(m),
1496
1509
  repeatContext: c.context,
1497
1510
  block: c.block,
1498
1511
  registeredComponents: e.registeredComponents,
1499
1512
  linkComponent: e.linkComponent
1500
- }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (d(), S(a, {
1513
+ }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (d(), S(l, {
1501
1514
  key: 0,
1502
1515
  componentRef: e.componentRefProps.componentRef,
1503
1516
  componentOptions: e.componentRefProps.componentOptions,
@@ -1510,7 +1523,7 @@ function go(e, t, n, o, r, i) {
1510
1523
  isInteractive: e.componentRefProps.isInteractive
1511
1524
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
1512
1525
  ], 64)) : (d(), h(I, { key: 0 }, [
1513
- e.repeatItem ? (d(!0), h(I, { key: 1 }, L(e.repeatItem, (c, m) => (d(), S(p, {
1526
+ e.repeatItem ? (d(!0), h(I, { key: 1 }, F(e.repeatItem, (c, m) => (d(), S(p, {
1514
1527
  key: e.generateKey(m),
1515
1528
  repeatContext: c.context,
1516
1529
  block: c.block,
@@ -1522,8 +1535,8 @@ function go(e, t, n, o, r, i) {
1522
1535
  block: e.processedBlock,
1523
1536
  context: e.context
1524
1537
  }, {
1525
- default: U(() => [
1526
- E(a, {
1538
+ default: O(() => [
1539
+ E(l, {
1527
1540
  componentRef: e.componentRefProps.componentRef,
1528
1541
  componentOptions: e.componentRefProps.componentOptions,
1529
1542
  blockChildren: e.componentRefProps.blockChildren,
@@ -1534,7 +1547,7 @@ function go(e, t, n, o, r, i) {
1534
1547
  includeBlockProps: e.componentRefProps.includeBlockProps,
1535
1548
  isInteractive: e.componentRefProps.isInteractive
1536
1549
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
1537
- (d(!0), h(I, null, L(e.childrenWithoutParentComponent, (c, m) => (d(), S(l, {
1550
+ (d(!0), h(I, null, F(e.childrenWithoutParentComponent, (c, m) => (d(), S(a, {
1538
1551
  key: c.id,
1539
1552
  block: c,
1540
1553
  registeredComponents: e.registeredComponents,
@@ -1547,7 +1560,7 @@ function go(e, t, n, o, r, i) {
1547
1560
  ], 64))
1548
1561
  ], 64)) : C("", !0);
1549
1562
  }
1550
- const Ct = /* @__PURE__ */ v(bo, [["render", go]]), Es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1563
+ const Ct = /* @__PURE__ */ v(bo, [["render", go]]), As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1551
1564
  __proto__: null,
1552
1565
  default: Ct
1553
1566
  }, Symbol.toStringTag, { value: "Module" })), yo = y({
@@ -1594,7 +1607,7 @@ const Ct = /* @__PURE__ */ v(bo, [["render", go]]), Es = /* @__PURE__ */ Object.
1594
1607
  methods: {
1595
1608
  onClick() {
1596
1609
  var e, t;
1597
- P() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1610
+ A() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1598
1611
  {
1599
1612
  type: "builder.clickEmptyBlocks",
1600
1613
  data: {
@@ -1607,7 +1620,7 @@ const Ct = /* @__PURE__ */ v(bo, [["render", go]]), Es = /* @__PURE__ */ Object.
1607
1620
  },
1608
1621
  onMouseEnter() {
1609
1622
  var e, t;
1610
- P() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1623
+ A() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1611
1624
  {
1612
1625
  type: "builder.hoverEmptyBlocks",
1613
1626
  data: {
@@ -1621,9 +1634,9 @@ const Ct = /* @__PURE__ */ v(bo, [["render", go]]), Es = /* @__PURE__ */ Object.
1621
1634
  }
1622
1635
  });
1623
1636
  function vo(e, t, n, o, r, i) {
1624
- return d(), S(_(e.BlocksWrapper), $({
1637
+ return d(), S(X(e.BlocksWrapper), $({
1625
1638
  ref: "blocksWrapperRef",
1626
- class: e.className + " component-tqyw9m0iue",
1639
+ class: e.className + " component-5vz8uirn7sc",
1627
1640
  "builder-path": e.dataPath,
1628
1641
  "builder-parent-id": e.parent,
1629
1642
  style: e.styleProp,
@@ -1631,13 +1644,13 @@ function vo(e, t, n, o, r, i) {
1631
1644
  onMouseEnter: (s) => e.onMouseEnter(),
1632
1645
  onKeyPress: (s) => e.onClick()
1633
1646
  }, { ...e.BlocksWrapperProps }), {
1634
- default: U(() => [
1647
+ default: O(() => [
1635
1648
  N(e.$slots, "default", {}, void 0, !0)
1636
1649
  ]),
1637
1650
  _: 3
1638
1651
  }, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
1639
1652
  }
1640
- const So = /* @__PURE__ */ v(yo, [["render", vo], ["__scopeId", "data-v-161c6b74"]]), ko = y({
1653
+ const So = /* @__PURE__ */ v(yo, [["render", vo], ["__scopeId", "data-v-82fc93d6"]]), ko = y({
1641
1654
  name: "builder-blocks",
1642
1655
  components: { BlocksWrapper: So, Block: Ct },
1643
1656
  props: [
@@ -1652,25 +1665,25 @@ const So = /* @__PURE__ */ v(yo, [["render", vo], ["__scopeId", "data-v-161c6b74
1652
1665
  "registeredComponents"
1653
1666
  ],
1654
1667
  inject: {
1655
- builderContext: ge.key,
1668
+ builderContext: be.key,
1656
1669
  componentsContext: Ge.key
1657
1670
  }
1658
1671
  });
1659
1672
  function Co(e, t, n, o, r, i) {
1660
- var l, u, p, f;
1661
- const s = k("Block"), a = k("BlocksWrapper");
1662
- return d(), S(a, {
1673
+ var a, u, p, f;
1674
+ const s = k("Block"), l = k("BlocksWrapper");
1675
+ return d(), S(l, {
1663
1676
  blocks: e.blocks,
1664
1677
  parent: e.parent,
1665
1678
  path: e.path,
1666
1679
  styleProp: e.styleProp,
1667
- BlocksWrapperProps: e.BlocksWrapperProps || ((l = e.context) == null ? void 0 : l.BlocksWrapperProps) || ((u = e.builderContext) == null ? void 0 : u.BlocksWrapperProps),
1680
+ BlocksWrapperProps: e.BlocksWrapperProps || ((a = e.context) == null ? void 0 : a.BlocksWrapperProps) || ((u = e.builderContext) == null ? void 0 : u.BlocksWrapperProps),
1668
1681
  classNameProp: e.className,
1669
1682
  BlocksWrapper: ((p = e.context) == null ? void 0 : p.BlocksWrapper) || ((f = e.builderContext) == null ? void 0 : f.BlocksWrapper)
1670
1683
  }, {
1671
- default: U(() => [
1684
+ default: O(() => [
1672
1685
  N(e.$slots, "default"),
1673
- e.blocks ? (d(!0), h(I, { key: 0 }, L(e.blocks, (c, m) => {
1686
+ e.blocks ? (d(!0), h(I, { key: 0 }, F(e.blocks, (c, m) => {
1674
1687
  var b;
1675
1688
  return d(), S(s, {
1676
1689
  key: c.id,
@@ -1693,10 +1706,10 @@ function wo(e, t, n, o, r, i) {
1693
1706
  N(e.$slots, "default")
1694
1707
  ]);
1695
1708
  }
1696
- const ne = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1709
+ const te = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1697
1710
  __proto__: null,
1698
- default: ne
1699
- }, Symbol.toStringTag, { value: "Module" })), pe = y({
1711
+ default: te
1712
+ }, Symbol.toStringTag, { value: "Module" })), ue = y({
1700
1713
  render() {
1701
1714
  return ze("style", {
1702
1715
  innerHTML: this.styles,
@@ -1728,7 +1741,7 @@ const ne = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
1728
1741
  max: 1200
1729
1742
  }
1730
1743
  }, Ps = (e, t = Tt) => `@media (max-width: ${t[e].max}px)`, $o = (e) => {
1731
- const t = Te(Tt);
1744
+ const t = Ce(Tt);
1732
1745
  if (!e)
1733
1746
  return t;
1734
1747
  const {
@@ -1737,11 +1750,11 @@ const ne = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
1737
1750
  medium: r
1738
1751
  } = e;
1739
1752
  if (n) {
1740
- const l = Math.floor(n / 2);
1753
+ const a = Math.floor(n / 2);
1741
1754
  t.xsmall = {
1742
1755
  max: n,
1743
- min: l,
1744
- default: l + 1
1756
+ min: a,
1757
+ default: a + 1
1745
1758
  };
1746
1759
  }
1747
1760
  if (!o || !r)
@@ -1758,20 +1771,20 @@ const ne = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
1758
1771
  min: s,
1759
1772
  default: s + 1
1760
1773
  };
1761
- const a = t.medium.max + 1;
1774
+ const l = t.medium.max + 1;
1762
1775
  return t.large = {
1763
1776
  max: 2e3,
1764
1777
  // TODO: decide upper limit
1765
- min: a,
1766
- default: a + 1
1778
+ min: l,
1779
+ default: l + 1
1767
1780
  }, t;
1768
1781
  }, Ro = (e) => `builder-columns ${e}-breakpoints`, Eo = y({
1769
1782
  name: "builder-columns",
1770
1783
  components: {
1771
- InlinedStyles: pe,
1772
- DynamicRenderer: Ce,
1784
+ InlinedStyles: ue,
1785
+ DynamicRenderer: ke,
1773
1786
  Blocks: q,
1774
- DynamicDiv: ne
1787
+ DynamicDiv: te
1775
1788
  },
1776
1789
  props: [
1777
1790
  "space",
@@ -1900,17 +1913,17 @@ const ne = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
1900
1913
  ...e.link ? {
1901
1914
  href: e.link
1902
1915
  } : {},
1903
- [G()]: "builder-column",
1916
+ [j()]: "builder-column",
1904
1917
  style: St(this.columnCssVars(t))
1905
1918
  };
1906
1919
  }
1907
1920
  }
1908
1921
  });
1909
- function Po(e, t, n, o, r, i) {
1922
+ function Ao(e, t, n, o, r, i) {
1910
1923
  var u;
1911
- const s = k("InlinedStyles"), a = k("Blocks"), l = k("DynamicRenderer");
1924
+ const s = k("InlinedStyles"), l = k("Blocks"), a = k("DynamicRenderer");
1912
1925
  return d(), h("div", $({
1913
- class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-4wbls88y960",
1926
+ class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-1be3j8m9ewb",
1914
1927
  style: e.columnsCssVars()
1915
1928
  }, {}), [
1916
1929
  e.TARGET !== "reactNative" ? (d(), S(s, {
@@ -1919,14 +1932,14 @@ function Po(e, t, n, o, r, i) {
1919
1932
  styles: e.columnsStyles(),
1920
1933
  nonce: e.builderContext.nonce
1921
1934
  }, null, 8, ["styles", "nonce"])) : C("", !0),
1922
- (d(!0), h(I, null, L(e.columns, (p, f) => (d(), S(l, {
1935
+ (d(!0), h(I, null, F(e.columns, (p, f) => (d(), S(a, {
1923
1936
  key: f,
1924
1937
  TagName: e.getTagName(p),
1925
1938
  actionAttributes: {},
1926
1939
  attributes: e.getAttributes(p, f)
1927
1940
  }, {
1928
- default: U(() => [
1929
- E(a, {
1941
+ default: O(() => [
1942
+ E(l, {
1930
1943
  path: `columns.${f}.blocks`,
1931
1944
  parent: e.builderBlock.id,
1932
1945
  context: e.builderContext,
@@ -1942,7 +1955,7 @@ function Po(e, t, n, o, r, i) {
1942
1955
  }, 1032, ["TagName", "attributes"]))), 128))
1943
1956
  ], 16);
1944
1957
  }
1945
- const Ao = /* @__PURE__ */ v(Eo, [["render", Po], ["__scopeId", "data-v-459e0e34"]]), Bo = y({
1958
+ const Po = /* @__PURE__ */ v(Eo, [["render", Ao], ["__scopeId", "data-v-ab15749a"]]), Bo = y({
1946
1959
  name: "builder-fragment-component",
1947
1960
  props: []
1948
1961
  });
@@ -1955,11 +1968,11 @@ const No = /* @__PURE__ */ v(Bo, [["render", Vo]]);
1955
1968
  function Me(e) {
1956
1969
  return e.replace(/http(s)?:/, "");
1957
1970
  }
1958
- function Wo(e = "", t, n) {
1971
+ function xo(e = "", t, n) {
1959
1972
  const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
1960
1973
  return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
1961
1974
  }
1962
- function Do(e, t) {
1975
+ function Wo(e, t) {
1963
1976
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1964
1977
  return e;
1965
1978
  if (t === "master")
@@ -1971,18 +1984,18 @@ function Do(e, t) {
1971
1984
  }
1972
1985
  return null;
1973
1986
  }
1974
- function re(e) {
1987
+ function oe(e) {
1975
1988
  if (!e)
1976
1989
  return e;
1977
1990
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1978
1991
  if (e.match(/builder\.io/)) {
1979
1992
  let n = e;
1980
1993
  const o = Number(e.split("?width=")[1]);
1981
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${Wo(e, "width", r)} ${r}w`).concat([n]).join(", ");
1994
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${xo(e, "width", r)} ${r}w`).concat([n]).join(", ");
1982
1995
  }
1983
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Do(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1996
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Wo(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1984
1997
  }
1985
- const xo = y({
1998
+ const Do = y({
1986
1999
  name: "builder-image",
1987
2000
  props: [
1988
2001
  "lazy",
@@ -2012,10 +2025,10 @@ const xo = y({
2012
2025
  if (!this.noWebp) {
2013
2026
  if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
2014
2027
  if (!this.srcset.includes(this.image.split("?")[0]))
2015
- return console.debug("Removed given srcset"), re(t);
2028
+ return console.debug("Removed given srcset"), oe(t);
2016
2029
  } else if (this.image && !this.srcset)
2017
- return re(t);
2018
- return re(t);
2030
+ return oe(t);
2031
+ return oe(t);
2019
2032
  }
2020
2033
  },
2021
2034
  webpSrcSet() {
@@ -2033,12 +2046,12 @@ const xo = y({
2033
2046
  return this.aspectRatio ? e : void 0;
2034
2047
  }
2035
2048
  }
2036
- }), Oo = ["srcset"], Uo = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"], Fo = {
2049
+ }), Oo = ["srcset"], Uo = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"], Lo = {
2037
2050
  key: 2,
2038
- class: "div-29wpyomtntv-2"
2051
+ class: "div-t43jfuqn6g-2"
2039
2052
  };
2040
- function Lo(e, t, n, o, r, i) {
2041
- var s, a, l, u, p, f;
2053
+ function Fo(e, t, n, o, r, i) {
2054
+ var s, l, a, u, p, f;
2042
2055
  return d(), h(I, null, [
2043
2056
  z("picture", null, [
2044
2057
  e.webpSrcSet ? (d(), h("source", {
@@ -2052,37 +2065,37 @@ function Lo(e, t, n, o, r, i) {
2052
2065
  alt: e.altText,
2053
2066
  title: e.title,
2054
2067
  role: e.altText ? void 0 : "presentation",
2055
- style: j({
2068
+ style: M({
2056
2069
  objectPosition: e.backgroundPosition || "center",
2057
2070
  objectFit: e.backgroundSize || "cover",
2058
2071
  ...e.aspectRatioCss
2059
2072
  }),
2060
- class: ee(
2061
- "builder-image" + (e.className ? " " + e.className : "") + " img-29wpyomtntv"
2073
+ class: Z(
2074
+ "builder-image" + (e.className ? " " + e.className : "") + " img-t43jfuqn6g"
2062
2075
  ),
2063
2076
  src: e.image,
2064
2077
  srcset: e.srcSetToUse,
2065
2078
  sizes: e.sizes
2066
2079
  }, null, 14, Uo)
2067
2080
  ]),
2068
- e.aspectRatio && !((a = (s = e.builderBlock) == null ? void 0 : s.children) != null && a.length && e.fitContent) ? (d(), h("div", {
2081
+ e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (d(), h("div", {
2069
2082
  key: 0,
2070
- class: "builder-image-sizer div-29wpyomtntv",
2071
- style: j({
2083
+ class: "builder-image-sizer div-t43jfuqn6g",
2084
+ style: M({
2072
2085
  paddingTop: e.aspectRatio * 100 + "%"
2073
2086
  })
2074
2087
  }, null, 4)) : C("", !0),
2075
- (u = (l = e.builderBlock) == null ? void 0 : l.children) != null && u.length && e.fitContent ? N(e.$slots, "default", { key: 1 }, void 0, !0) : C("", !0),
2076
- !e.fitContent && ((f = (p = e.builderBlock) == null ? void 0 : p.children) != null && f.length) ? (d(), h("div", Fo, [
2088
+ (u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? N(e.$slots, "default", { key: 1 }, void 0, !0) : C("", !0),
2089
+ !e.fitContent && ((f = (p = e.builderBlock) == null ? void 0 : p.children) != null && f.length) ? (d(), h("div", Lo, [
2077
2090
  N(e.$slots, "default", {}, void 0, !0)
2078
2091
  ])) : C("", !0)
2079
2092
  ], 64);
2080
2093
  }
2081
- const Ho = /* @__PURE__ */ v(xo, [["render", Lo], ["__scopeId", "data-v-e6416c92"]]), Mo = y({
2094
+ const Ho = /* @__PURE__ */ v(Do, [["render", Fo], ["__scopeId", "data-v-741b9bbc"]]), Mo = y({
2082
2095
  name: "builder-section-component",
2083
2096
  props: ["attributes", "maxWidth"],
2084
2097
  data() {
2085
- return { filterAttrs: W };
2098
+ return { filterAttrs: x };
2086
2099
  }
2087
2100
  });
2088
2101
  function jo(e, t, n, o, r, i) {
@@ -2099,7 +2112,7 @@ function jo(e, t, n, o, r, i) {
2099
2112
  marginLeft: "auto",
2100
2113
  marginRight: "auto"
2101
2114
  }
2102
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
2115
+ }, e.filterAttrs(e.attributes, "v-on:", !1), L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
2103
2116
  N(e.$slots, "default")
2104
2117
  ], 16);
2105
2118
  }
@@ -2118,14 +2131,14 @@ function qo(e, t, n, o) {
2118
2131
  if (p && p.property === "urlPath" && p.value && typeof p.value == "string" && p.value !== "/" && p.value.endsWith("/") && (b = p.value.slice(0, -1)), !(c && m))
2119
2132
  return !0;
2120
2133
  if (Array.isArray(b))
2121
- return m === "isNot" ? b.every((A) => s(u, {
2134
+ return m === "isNot" ? b.every((P) => s(u, {
2122
2135
  property: c,
2123
2136
  operator: m,
2124
- value: A
2125
- })) : !!b.find((A) => s(u, {
2137
+ value: P
2138
+ })) : !!b.find((P) => s(u, {
2126
2139
  property: c,
2127
2140
  operator: m,
2128
- value: A
2141
+ value: P
2129
2142
  }));
2130
2143
  const g = u[c];
2131
2144
  if (Array.isArray(g))
@@ -2154,12 +2167,12 @@ function qo(e, t, n, o) {
2154
2167
  }
2155
2168
  })();
2156
2169
  }
2157
- const a = {
2170
+ const l = {
2158
2171
  query: t,
2159
2172
  startDate: n,
2160
2173
  endDate: o
2161
- }, l = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
2162
- return a.startDate && new Date(a.startDate) > l || a.endDate && new Date(a.endDate) < l ? !1 : !a.query || !a.query.length ? !0 : a.query.every((u) => s(e, u));
2174
+ }, a = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
2175
+ return l.startDate && new Date(l.startDate) > a || l.endDate && new Date(l.endDate) < a ? !1 : !l.query || !l.query.length ? !0 : l.query.every((u) => s(e, u));
2163
2176
  }
2164
2177
  const zo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
2165
2178
  if (!navigator.cookieEnabled) {
@@ -2322,7 +2335,7 @@ const zo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
2322
2335
  visibilityStylesEl.innerHTML = newStyleStr;
2323
2336
  }
2324
2337
  }
2325
- }`, ie = "default", Qo = "filterWithCustomTargeting", wt = "builderIoPersonalization", It = "updateVisibilityStylesScript", $t = ["react", "vue", "svelte", "qwik"], Rt = ["vue", "svelte", "qwik"];
2338
+ }`, re = "default", Qo = "filterWithCustomTargeting", wt = "builderIoPersonalization", It = "updateVisibilityStylesScript", $t = ["react", "vue", "svelte", "qwik"], Rt = ["vue", "svelte", "qwik"];
2326
2339
  function Yo(e, t) {
2327
2340
  return !(e && e.length > 0) || !t ? !1 : Rt.includes(R) ? !0 : !T();
2328
2341
  }
@@ -2336,9 +2349,9 @@ function Xo({
2336
2349
  const i = {
2337
2350
  blocks: r ?? [],
2338
2351
  path: "this.children",
2339
- index: ie
2352
+ index: re
2340
2353
  };
2341
- if (n && P()) {
2354
+ if (n && A()) {
2342
2355
  if (typeof t == "number" && t < ((e == null ? void 0 : e.length) ?? 0)) {
2343
2356
  const s = e == null ? void 0 : e[t];
2344
2357
  if (s)
@@ -2353,12 +2366,12 @@ function Xo({
2353
2366
  if (T()) {
2354
2367
  const s = o == null ? void 0 : o[0];
2355
2368
  if (s && e) {
2356
- const a = e.indexOf(s);
2357
- if (a !== -1)
2369
+ const l = e.indexOf(s);
2370
+ if (l !== -1)
2358
2371
  return {
2359
2372
  blocks: s.blocks,
2360
- path: `variants.${a}.blocks`,
2361
- index: a
2373
+ path: `variants.${l}.blocks`,
2374
+ index: l
2362
2375
  };
2363
2376
  }
2364
2377
  }
@@ -2368,7 +2381,7 @@ const _o = () => `
2368
2381
  window.${Qo} = ${Go}
2369
2382
  window.${wt} = ${zo}
2370
2383
  window.${It} = ${Jo}
2371
- `, Et = R === "react", Zo = (e, t, n) => `window.${wt}(${JSON.stringify(e)}, "${t}", ${Et}${n ? `, "${n}"` : ""})`, er = (e, t, n) => `window.${It}(${JSON.stringify(e)}, "${t}", ${Et}${n ? `, "${n}"` : ""})`, me = {
2384
+ `, Et = R === "react", Zo = (e, t, n) => `window.${wt}(${JSON.stringify(e)}, "${t}", ${Et}${n ? `, "${n}"` : ""})`, er = (e, t, n) => `window.${It}(${JSON.stringify(e)}, "${t}", ${Et}${n ? `, "${n}"` : ""})`, pe = {
2372
2385
  "@type": "@builder.io/sdk:Element",
2373
2386
  layerName: "Accordion item title",
2374
2387
  responsiveStyles: {
@@ -2397,7 +2410,7 @@ const _o = () => `
2397
2410
  }
2398
2411
  }
2399
2412
  }]
2400
- }, he = {
2413
+ }, me = {
2401
2414
  "@type": "@builder.io/sdk:Element",
2402
2415
  layerName: "Accordion item detail",
2403
2416
  responsiveStyles: {
@@ -2445,19 +2458,19 @@ const _o = () => `
2445
2458
  name: "title",
2446
2459
  type: "uiBlocks",
2447
2460
  hideFromUI: !0,
2448
- defaultValue: [me]
2461
+ defaultValue: [pe]
2449
2462
  }, {
2450
2463
  name: "detail",
2451
2464
  type: "uiBlocks",
2452
2465
  hideFromUI: !0,
2453
- defaultValue: [he]
2466
+ defaultValue: [me]
2454
2467
  }],
2455
2468
  defaultValue: [{
2456
- title: [me],
2457
- detail: [he]
2469
+ title: [pe],
2470
+ detail: [me]
2458
2471
  }, {
2459
- title: [me],
2460
- detail: [he]
2472
+ title: [pe],
2473
+ detail: [me]
2461
2474
  }],
2462
2475
  showIf: (e) => !e.get("useChildrenForItems")
2463
2476
  }, {
@@ -2552,11 +2565,11 @@ const _o = () => `
2552
2565
  continue;
2553
2566
  const s = r.getBoundingClientRect();
2554
2567
  if (s.left > i.left) {
2555
- const a = parseInt(
2568
+ const l = parseInt(
2556
2569
  r.getAttribute("data-index") || "",
2557
2570
  10
2558
2571
  );
2559
- isNaN(a) || (i = s, e = a);
2572
+ isNaN(l) || (i = s, e = l);
2560
2573
  } else
2561
2574
  break;
2562
2575
  }
@@ -2592,38 +2605,38 @@ function ir(e, t, n, o, r, i) {
2592
2605
  const s = k("Blocks");
2593
2606
  return d(), h("div", {
2594
2607
  class: "builder-accordion",
2595
- style: j(e.accordionStyles)
2608
+ style: M(e.accordionStyles)
2596
2609
  }, [
2597
- (d(!0), h(I, null, L(e.items, (a, l) => (d(), h(I, { key: l }, [
2610
+ (d(!0), h(I, null, F(e.items, (l, a) => (d(), h(I, { key: a }, [
2598
2611
  z("div", {
2599
- class: ee(e.getAccordionTitleClassName(l)),
2600
- style: j({
2612
+ class: Z(e.getAccordionTitleClassName(a)),
2613
+ style: M({
2601
2614
  ...e.accordionTitleStyles,
2602
2615
  ...e.grid && {
2603
2616
  width: e.gridRowWidth,
2604
- order: e.openGridItemOrder !== null ? e.convertOrderNumberToString(l) : e.convertOrderNumberToString(l + 1)
2617
+ order: e.openGridItemOrder !== null ? e.convertOrderNumberToString(a) : e.convertOrderNumberToString(a + 1)
2605
2618
  }
2606
2619
  }),
2607
- "data-index": l,
2608
- onClick: async (u) => e.onClick(l)
2620
+ "data-index": a,
2621
+ onClick: async (u) => e.onClick(a)
2609
2622
  }, [
2610
2623
  E(s, {
2611
- blocks: a.title,
2612
- path: `items.${l}.title`,
2624
+ blocks: l.title,
2625
+ path: `items.${a}.title`,
2613
2626
  parent: e.builderBlock.id,
2614
2627
  context: e.builderContext,
2615
2628
  registeredComponents: e.builderComponents,
2616
2629
  linkComponent: e.builderLinkComponent
2617
2630
  }, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
2618
2631
  ], 14, rr),
2619
- e.open.includes(l) ? (d(), h("div", {
2632
+ e.open.includes(a) ? (d(), h("div", {
2620
2633
  key: 0,
2621
- class: ee(e.getAccordionDetailClassName(l)),
2622
- style: j(e.accordionDetailStyles)
2634
+ class: Z(e.getAccordionDetailClassName(a)),
2635
+ style: M(e.accordionDetailStyles)
2623
2636
  }, [
2624
2637
  E(s, {
2625
- blocks: a.detail,
2626
- path: `items.${l}.detail`,
2638
+ blocks: l.detail,
2639
+ path: `items.${a}.detail`,
2627
2640
  parent: e.builderBlock.id,
2628
2641
  context: e.builderContext,
2629
2642
  registeredComponents: e.builderComponents,
@@ -2848,7 +2861,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
2848
2861
  });
2849
2862
  }
2850
2863
  const n = e.get("columns");
2851
- Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((i) => !i.get("width")) || n.reduce((a, l) => a + l.get("width"), 0) !== 100) && t();
2864
+ Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((i) => !i.get("width")) || n.reduce((l, a) => l + a.get("width"), 0) !== 100) && t();
2852
2865
  }
2853
2866
  }, {
2854
2867
  name: "space",
@@ -2882,7 +2895,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
2882
2895
  hidden: !0,
2883
2896
  canHaveChildren: !0,
2884
2897
  noWrap: !0
2885
- }, Be = ["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"], dr = ["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"], ur = {
2898
+ }, Pe = ["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"], dr = ["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"], ur = {
2886
2899
  name: "Image",
2887
2900
  static: !0,
2888
2901
  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",
@@ -2897,22 +2910,22 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
2897
2910
  name: "image",
2898
2911
  type: "file",
2899
2912
  bubble: !0,
2900
- allowedFileTypes: Be,
2913
+ allowedFileTypes: Pe,
2901
2914
  required: !0,
2902
2915
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
2903
2916
  onChange: (e) => {
2904
2917
  e.delete("srcset"), e.delete("noWebp");
2905
- function n(s, a = 6e4) {
2906
- return new Promise((l, u) => {
2918
+ function n(s, l = 6e4) {
2919
+ return new Promise((a, u) => {
2907
2920
  const p = document.createElement("img");
2908
2921
  let f = !1;
2909
2922
  p.onload = () => {
2910
- f = !0, l(p);
2923
+ f = !0, a(p);
2911
2924
  }, p.addEventListener("error", (c) => {
2912
2925
  console.warn("Image load failed", c.error), u(c.error);
2913
2926
  }), p.src = s, setTimeout(() => {
2914
2927
  f || u(new Error("Image load timed out"));
2915
- }, a);
2928
+ }, l);
2916
2929
  });
2917
2930
  }
2918
2931
  function o(s) {
@@ -2923,8 +2936,8 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
2923
2936
  s.type.includes("svg") && e.set("noWebp", !0);
2924
2937
  }), r && (!i || i === 0.7041))
2925
2938
  return n(r).then((s) => {
2926
- const a = e.get("aspectRatio");
2927
- e.get("image") === r && (!a || a === 0.7041) && s.width && s.height && (e.set("aspectRatio", o(s.height / s.width)), e.set("height", s.height), e.set("width", s.width));
2939
+ const l = e.get("aspectRatio");
2940
+ e.get("image") === r && (!l || l === 0.7041) && s.width && s.height && (e.set("aspectRatio", o(s.height / s.width)), e.set("height", s.height), e.set("width", s.width));
2928
2941
  });
2929
2942
  }
2930
2943
  }, {
@@ -3030,7 +3043,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
3030
3043
  defaultValue: []
3031
3044
  }]
3032
3045
  }]
3033
- }, Ve = y({
3046
+ }, Be = y({
3034
3047
  render() {
3035
3048
  return ze("script", {
3036
3049
  innerHTML: this.scriptStr,
@@ -3044,8 +3057,8 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
3044
3057
  name: "builder-personalization-container",
3045
3058
  components: {
3046
3059
  Blocks: q,
3047
- InlinedStyles: pe,
3048
- InlinedScript: Ve
3060
+ InlinedStyles: ue,
3061
+ InlinedScript: Be
3049
3062
  },
3050
3063
  props: [
3051
3064
  "builderContext",
@@ -3058,7 +3071,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
3058
3071
  data() {
3059
3072
  var e, t, n, o, r, i, s;
3060
3073
  return {
3061
- userAttributes: ce.getUserAttributes(),
3074
+ userAttributes: le.getUserAttributes(),
3062
3075
  scriptStr: Zo(
3063
3076
  this.variants,
3064
3077
  ((e = this.builderBlock) == null ? void 0 : e.id) || "none",
@@ -3072,18 +3085,18 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
3072
3085
  unsubscribers: [],
3073
3086
  shouldRenderVariants: Yo(
3074
3087
  this.variants,
3075
- J((s = this.builderContext) == null ? void 0 : s.canTrack)
3088
+ G((s = this.builderContext) == null ? void 0 : s.canTrack)
3076
3089
  ),
3077
3090
  shouldResetVariants: !1,
3078
3091
  TARGET: R,
3079
- DEFAULT_INDEX: ie,
3092
+ DEFAULT_INDEX: re,
3080
3093
  SDKS_REQUIRING_RESET_APPROACH: Rt
3081
3094
  };
3082
3095
  },
3083
3096
  mounted() {
3084
3097
  var t;
3085
3098
  this.shouldResetVariants = !0;
3086
- const e = ce.subscribeOnUserAttributesChange(
3099
+ const e = le.subscribeOnUserAttributesChange(
3087
3100
  (n) => {
3088
3101
  this.userAttributes = n;
3089
3102
  },
@@ -3091,12 +3104,12 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
3091
3104
  fireImmediately: R === "qwik"
3092
3105
  }
3093
3106
  );
3094
- if (!(P() || we())) {
3107
+ if (!(A() || Te())) {
3095
3108
  const n = this.filteredVariants[0];
3096
3109
  this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
3097
3110
  new CustomEvent("builder.variantLoaded", {
3098
3111
  detail: {
3099
- variant: n || ie,
3112
+ variant: n || re,
3100
3113
  content: (t = this.builderContext) == null ? void 0 : t.content
3101
3114
  },
3102
3115
  bubbles: !0
@@ -3107,7 +3120,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
3107
3120
  i.isIntersecting && this.$refs.rootRef && this.$refs.rootRef.dispatchEvent(
3108
3121
  new CustomEvent("builder.variantDisplayed", {
3109
3122
  detail: {
3110
- variant: n || ie,
3123
+ variant: n || re,
3111
3124
  content: (s = this.builderContext) == null ? void 0 : s.content
3112
3125
  },
3113
3126
  bubbles: !0
@@ -3124,9 +3137,9 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
3124
3137
  computed: {
3125
3138
  attrs() {
3126
3139
  return {
3127
- ...W(this.attributes, "v-on:", !1),
3128
- ...W(this.attributes, "v-on:", !0),
3129
- [G()]: `builder-personalization-container ${this.attributes[G()] || ""}`
3140
+ ...x(this.attributes, "v-on:", !1),
3141
+ ...x(this.attributes, "v-on:", !0),
3142
+ [j()]: `builder-personalization-container ${this.attributes[j()] || ""}`
3130
3143
  };
3131
3144
  },
3132
3145
  filteredVariants() {
@@ -3166,8 +3179,8 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
3166
3179
  }
3167
3180
  });
3168
3181
  function hr(e, t, n, o, r, i) {
3169
- var u, p, f, c, m, b, g, A, F, V;
3170
- const s = k("Blocks"), a = k("InlinedStyles"), l = k("InlinedScript");
3182
+ var u, p, f, c, m, b, g, P, U, V;
3183
+ const s = k("Blocks"), l = k("InlinedStyles"), a = k("InlinedScript");
3171
3184
  return d(), h("div", $({ ref: "rootRef" }, e.attrs), [
3172
3185
  e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), S(s, {
3173
3186
  key: 0,
@@ -3183,39 +3196,39 @@ function hr(e, t, n, o, r, i) {
3183
3196
  }, null, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])) : C("", !0),
3184
3197
  !e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), h(I, { key: 1 }, [
3185
3198
  e.shouldRenderVariants ? (d(), h(I, { key: 0 }, [
3186
- E(a, {
3199
+ E(l, {
3187
3200
  nonce: ((c = e.builderContext) == null ? void 0 : c.nonce) || "",
3188
3201
  styles: e.hideVariantsStyleString,
3189
3202
  id: `variants-styles-${(m = e.builderBlock) == null ? void 0 : m.id}`
3190
3203
  }, null, 8, ["nonce", "styles", "id"]),
3191
- E(l, {
3204
+ E(a, {
3192
3205
  nonce: ((b = e.builderContext) == null ? void 0 : b.nonce) || "",
3193
3206
  scriptStr: e.updateVisibilityStylesScript,
3194
3207
  id: `variants-visibility-script-${(g = e.builderBlock) == null ? void 0 : g.id}`
3195
3208
  }, null, 8, ["nonce", "scriptStr", "id"]),
3196
- (d(!0), h(I, null, L(e.variants, (w, D) => {
3197
- var H, Q, Y, x;
3209
+ (d(!0), h(I, null, F(e.variants, (w, W) => {
3210
+ var J, Q, D, H;
3198
3211
  return d(), S(s, {
3199
- key: `${(H = e.builderBlock) == null ? void 0 : H.id}-${D}`,
3212
+ key: `${(J = e.builderBlock) == null ? void 0 : J.id}-${W}`,
3200
3213
  BlocksWrapperProps: {
3201
3214
  ...(Q = e.builderContext) == null ? void 0 : Q.BlocksWrapperProps,
3202
3215
  "aria-hidden": !0,
3203
3216
  hidden: !0,
3204
- "data-variant-id": `${(Y = e.builderBlock) == null ? void 0 : Y.id}-${D}`
3217
+ "data-variant-id": `${(D = e.builderBlock) == null ? void 0 : D.id}-${W}`
3205
3218
  },
3206
3219
  blocks: w.blocks,
3207
- parent: (x = e.builderBlock) == null ? void 0 : x.id,
3208
- path: `component.options.variants.${D}.blocks`,
3220
+ parent: (H = e.builderBlock) == null ? void 0 : H.id,
3221
+ path: `component.options.variants.${W}.blocks`,
3209
3222
  context: e.builderContext,
3210
3223
  registeredComponents: e.builderComponents
3211
3224
  }, {
3212
- default: U(() => {
3213
- var M, Ne;
3225
+ default: O(() => {
3226
+ var Ve, Ne;
3214
3227
  return [
3215
- E(l, {
3216
- nonce: ((M = e.builderContext) == null ? void 0 : M.nonce) || "",
3228
+ E(a, {
3229
+ nonce: ((Ve = e.builderContext) == null ? void 0 : Ve.nonce) || "",
3217
3230
  scriptStr: e.scriptStr,
3218
- id: `variants-script-${(Ne = e.builderBlock) == null ? void 0 : Ne.id}-${D}`
3231
+ id: `variants-script-${(Ne = e.builderBlock) == null ? void 0 : Ne.id}-${W}`
3219
3232
  }, null, 8, ["nonce", "scriptStr", "id"])
3220
3233
  ];
3221
3234
  }),
@@ -3225,23 +3238,23 @@ function hr(e, t, n, o, r, i) {
3225
3238
  ], 64)) : C("", !0),
3226
3239
  E(s, {
3227
3240
  blocks: e.blocksToRender.blocks,
3228
- parent: (A = e.builderBlock) == null ? void 0 : A.id,
3241
+ parent: (P = e.builderBlock) == null ? void 0 : P.id,
3229
3242
  path: e.blocksToRender.path,
3230
3243
  context: e.builderContext,
3231
3244
  registeredComponents: e.builderComponents,
3232
3245
  BlocksWrapperProps: {
3233
- ...(F = e.builderContext) == null ? void 0 : F.BlocksWrapperProps,
3246
+ ...(U = e.builderContext) == null ? void 0 : U.BlocksWrapperProps,
3234
3247
  "data-variant-id": `${(V = e.builderBlock) == null ? void 0 : V.id}-${e.blocksToRender.index}`
3235
3248
  }
3236
3249
  }, {
3237
- default: U(() => {
3238
- var w, D;
3250
+ default: O(() => {
3251
+ var w, W;
3239
3252
  return [
3240
- e.shouldRenderVariants ? (d(), S(l, {
3253
+ e.shouldRenderVariants ? (d(), S(a, {
3241
3254
  key: 0,
3242
3255
  nonce: ((w = e.builderContext) == null ? void 0 : w.nonce) || "",
3243
3256
  scriptStr: e.scriptStr,
3244
- id: `variants-script-${(D = e.builderBlock) == null ? void 0 : D.id}-${e.DEFAULT_INDEX}`
3257
+ id: `variants-script-${(W = e.builderBlock) == null ? void 0 : W.id}-${e.DEFAULT_INDEX}`
3245
3258
  }, null, 8, ["nonce", "scriptStr", "id"])) : C("", !0)
3246
3259
  ];
3247
3260
  }),
@@ -3312,18 +3325,18 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
3312
3325
  props: ["builderContext", "name", "builderComponents"]
3313
3326
  });
3314
3327
  function vr(e, t, n, o, r, i) {
3315
- var a, l, u;
3328
+ var l, a, u;
3316
3329
  const s = k("Blocks");
3317
3330
  return d(), h("div", $(
3318
3331
  { style: {
3319
3332
  pointerEvents: "auto"
3320
3333
  } },
3321
- !((a = e.builderContext.context) != null && a.symbolId) && {
3334
+ !((l = e.builderContext.context) != null && l.symbolId) && {
3322
3335
  "builder-slot": e.name
3323
3336
  }
3324
3337
  ), [
3325
3338
  E(s, {
3326
- parent: (l = e.builderContext.context) == null ? void 0 : l.symbolId,
3339
+ parent: (a = e.builderContext.context) == null ? void 0 : a.symbolId,
3327
3340
  path: `symbol.data.${e.name}`,
3328
3341
  context: e.builderContext,
3329
3342
  registeredComponents: e.builderComponents,
@@ -3370,7 +3383,7 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
3370
3383
  builderComponents: !0,
3371
3384
  builderLinkComponent: !0
3372
3385
  }
3373
- }, fe = {
3386
+ }, he = {
3374
3387
  "@type": "@builder.io/sdk:Element",
3375
3388
  responsiveStyles: {
3376
3389
  large: {
@@ -3392,7 +3405,7 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
3392
3405
  text: "New tab"
3393
3406
  }
3394
3407
  }
3395
- }, be = {
3408
+ }, fe = {
3396
3409
  "@type": "@builder.io/sdk:Element",
3397
3410
  responsiveStyles: {
3398
3411
  large: {
@@ -3418,16 +3431,16 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
3418
3431
  name: "label",
3419
3432
  type: "uiBlocks",
3420
3433
  hideFromUI: !0,
3421
- defaultValue: [fe]
3434
+ defaultValue: [he]
3422
3435
  }, {
3423
3436
  name: "content",
3424
3437
  type: "uiBlocks",
3425
3438
  hideFromUI: !0,
3426
- defaultValue: [be]
3439
+ defaultValue: [fe]
3427
3440
  }],
3428
3441
  defaultValue: [{
3429
3442
  label: [{
3430
- ...fe,
3443
+ ...he,
3431
3444
  component: {
3432
3445
  name: "Text",
3433
3446
  options: {
@@ -3436,7 +3449,7 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
3436
3449
  }
3437
3450
  }],
3438
3451
  content: [{
3439
- ...be,
3452
+ ...fe,
3440
3453
  component: {
3441
3454
  name: "Text",
3442
3455
  options: {
@@ -3446,7 +3459,7 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
3446
3459
  }]
3447
3460
  }, {
3448
3461
  label: [{
3449
- ...fe,
3462
+ ...he,
3450
3463
  component: {
3451
3464
  name: "Text",
3452
3465
  options: {
@@ -3455,7 +3468,7 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
3455
3468
  }
3456
3469
  }],
3457
3470
  content: [{
3458
- ...be,
3471
+ ...fe,
3459
3472
  component: {
3460
3473
  name: "Text",
3461
3474
  options: {
@@ -3517,9 +3530,9 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
3517
3530
  props: [
3518
3531
  "defaultActiveTab",
3519
3532
  "tabs",
3533
+ "activeTabStyle",
3520
3534
  "collapsible",
3521
3535
  "tabHeaderLayout",
3522
- "activeTabStyle",
3523
3536
  "builderBlock",
3524
3537
  "builderContext",
3525
3538
  "builderComponents",
@@ -3532,6 +3545,9 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
3532
3545
  activeTabContent(e) {
3533
3546
  return this.tabs && this.tabs[e].content;
3534
3547
  },
3548
+ getTabStyle(e) {
3549
+ return e === this.activeTab ? this.activeTabStyle : {};
3550
+ },
3535
3551
  onClick(e) {
3536
3552
  e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
3537
3553
  }
@@ -3542,25 +3558,23 @@ function $r(e, t, n, o, r, i) {
3542
3558
  return d(), h("div", null, [
3543
3559
  z("div", {
3544
3560
  class: "builder-tabs-wrap",
3545
- style: j({
3561
+ style: M({
3546
3562
  display: "flex",
3547
3563
  flexDirection: "row",
3548
3564
  justifyContent: e.tabHeaderLayout || "flex-start",
3549
3565
  overflow: "auto"
3550
3566
  })
3551
3567
  }, [
3552
- (d(!0), h(I, null, L(e.tabs, (a, l) => (d(), h("span", {
3553
- key: l,
3554
- class: ee(`builder-tab-wrap ${e.activeTab === l ? "builder-tab-active" : ""}`),
3555
- style: j({
3556
- ...e.activeTab === l ? e.activeTabStyle : {}
3557
- }),
3558
- onClick: async (u) => e.onClick(l)
3568
+ (d(!0), h(I, null, F(e.tabs, (l, a) => (d(), h("span", {
3569
+ key: a,
3570
+ class: Z(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
3571
+ style: M(e.getTabStyle(a)),
3572
+ onClick: async (u) => e.onClick(a)
3559
3573
  }, [
3560
3574
  E(s, {
3561
3575
  parent: e.builderBlock.id,
3562
- path: `tabs.${l}.label`,
3563
- blocks: a.label,
3576
+ path: `tabs.${a}.label`,
3577
+ blocks: l.label,
3564
3578
  context: e.builderContext,
3565
3579
  registeredComponents: e.builderComponents,
3566
3580
  linkComponent: e.builderLinkComponent
@@ -3583,7 +3597,6 @@ const Rr = /* @__PURE__ */ v(Tr, [["render", $r]]), Er = {
3583
3597
  shouldReceiveBuilderProps: {},
3584
3598
  name: "Text",
3585
3599
  static: !0,
3586
- isRSC: !0,
3587
3600
  image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",
3588
3601
  inputs: [{
3589
3602
  name: "text",
@@ -3598,10 +3611,10 @@ const Rr = /* @__PURE__ */ v(Tr, [["render", $r]]), Er = {
3598
3611
  height: "auto",
3599
3612
  textAlign: "center"
3600
3613
  }
3601
- }, Pr = y({
3614
+ }, Ar = y({
3602
3615
  name: "builder-text",
3603
3616
  props: ["text"]
3604
- }), Ar = ["innerHTML"];
3617
+ }), Pr = ["innerHTML"];
3605
3618
  function Br(e, t, n, o, r, i) {
3606
3619
  var s;
3607
3620
  return d(), h("div", {
@@ -3610,9 +3623,9 @@ function Br(e, t, n, o, r, i) {
3610
3623
  style: {
3611
3624
  outline: "none"
3612
3625
  }
3613
- }, null, 8, Ar);
3626
+ }, null, 8, Pr);
3614
3627
  }
3615
- const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
3628
+ const Vr = /* @__PURE__ */ v(Ar, [["render", Br]]), Nr = {
3616
3629
  name: "Custom Code",
3617
3630
  static: !0,
3618
3631
  requiredPermissions: ["editCode"],
@@ -3634,7 +3647,7 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
3634
3647
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
3635
3648
  advanced: !0
3636
3649
  }]
3637
- }, Wr = y({
3650
+ }, xr = y({
3638
3651
  name: "builder-custom-code",
3639
3652
  props: ["code", "replaceNodes"],
3640
3653
  data() {
@@ -3646,7 +3659,7 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
3646
3659
  watch: {
3647
3660
  onUpdateHook0: {
3648
3661
  handler() {
3649
- P() && setTimeout(() => {
3662
+ A() && setTimeout(() => {
3650
3663
  this.runScripts();
3651
3664
  }, 0);
3652
3665
  },
@@ -3693,15 +3706,15 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
3693
3706
  }
3694
3707
  }
3695
3708
  }
3696
- }), Dr = ["innerHTML"];
3697
- function xr(e, t, n, o, r, i) {
3709
+ }), Wr = ["innerHTML"];
3710
+ function Dr(e, t, n, o, r, i) {
3698
3711
  return d(), h("div", {
3699
3712
  ref: "elementRef",
3700
- class: ee("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
3713
+ class: Z("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
3701
3714
  innerHTML: e.code
3702
- }, null, 10, Dr);
3715
+ }, null, 10, Wr);
3703
3716
  }
3704
- const Or = /* @__PURE__ */ v(Wr, [["render", xr]]), Ur = {
3717
+ const Or = /* @__PURE__ */ v(xr, [["render", Dr]]), Ur = {
3705
3718
  name: "Embed",
3706
3719
  static: !0,
3707
3720
  inputs: [{
@@ -3716,7 +3729,7 @@ const Or = /* @__PURE__ */ v(Wr, [["render", xr]]), Ur = {
3716
3729
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
3717
3730
  hideFromUI: !0
3718
3731
  }]
3719
- }, Fr = ["text/javascript", "application/javascript", "application/ecmascript"], Lr = (e) => Fr.includes(e.type), Hr = y({
3732
+ }, Lr = ["text/javascript", "application/javascript", "application/ecmascript"], Fr = (e) => Lr.includes(e.type), Hr = y({
3720
3733
  name: "builder-embed",
3721
3734
  props: ["content"],
3722
3735
  data() {
@@ -3749,7 +3762,7 @@ const Or = /* @__PURE__ */ v(Wr, [["render", xr]]), Ur = {
3749
3762
  this.scriptsInserted.push(n.src);
3750
3763
  const o = document.createElement("script");
3751
3764
  o.async = !0, o.src = n.src, document.head.appendChild(o);
3752
- } else if (Lr(n) && !this.scriptsRun.includes(n.innerText))
3765
+ } else if (Fr(n) && !this.scriptsRun.includes(n.innerText))
3753
3766
  try {
3754
3767
  this.scriptsRun.push(n.innerText), new Function(n.innerText)();
3755
3768
  } catch (o) {
@@ -4034,7 +4047,7 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
4034
4047
  formState: "unsubmitted",
4035
4048
  responseData: null,
4036
4049
  formErrorMessage: "",
4037
- filterAttrs: W
4050
+ filterAttrs: x
4038
4051
  };
4039
4052
  },
4040
4053
  methods: {
@@ -4047,7 +4060,10 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
4047
4060
  this.builderContext.rootSetState ? (o = (n = this.builderContext).rootSetState) == null || o.call(n, t) : this.builderContext.rootState = t;
4048
4061
  },
4049
4062
  submissionState() {
4050
- return P() && this.previewState || this.formState;
4063
+ return A() && this.previewState || this.formState;
4064
+ },
4065
+ errorResponse(e) {
4066
+ return JSON.stringify(e, null, 2);
4051
4067
  },
4052
4068
  onSubmit(e) {
4053
4069
  var n;
@@ -4062,13 +4078,15 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
4062
4078
  e.preventDefault();
4063
4079
  const o = e.currentTarget || e.target, r = this.customHeaders || {};
4064
4080
  let i;
4065
- const s = new FormData(o), a = Array.from(o.querySelectorAll("input,select,textarea")).filter((c) => !!c.name).map((c) => {
4081
+ const s = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((c) => !!c.name).filter(
4082
+ (c) => !!c.name && (c.type !== "radio" || c.checked)
4083
+ ).map((c) => {
4066
4084
  let m;
4067
4085
  const b = c.name;
4068
4086
  if (c instanceof HTMLInputElement)
4069
4087
  if (c.type === "radio") {
4070
4088
  if (c.checked)
4071
- return m = c.name, {
4089
+ return m = c.value, {
4072
4090
  key: b,
4073
4091
  value: m
4074
4092
  };
@@ -4086,18 +4104,18 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
4086
4104
  value: m
4087
4105
  };
4088
4106
  });
4089
- let l = this.contentType;
4090
- if (this.sendSubmissionsTo === "email" && (l = "multipart/form-data"), Array.from(a).forEach(({ value: c }) => {
4091
- (c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (l = "multipart/form-data");
4092
- }), l !== "application/json")
4107
+ let a = this.contentType;
4108
+ if (this.sendSubmissionsTo === "email" && (a = "multipart/form-data"), Array.from(l).forEach(({ value: c }) => {
4109
+ (c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (a = "multipart/form-data");
4110
+ }), a !== "application/json")
4093
4111
  i = s;
4094
4112
  else {
4095
4113
  const c = {};
4096
- Array.from(a).forEach(({ value: m, key: b }) => {
4114
+ Array.from(l).forEach(({ value: m, key: b }) => {
4097
4115
  et(c, b, m);
4098
4116
  }), i = JSON.stringify(c);
4099
4117
  }
4100
- l && l !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = l));
4118
+ a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
4101
4119
  const u = new CustomEvent("presubmit", {
4102
4120
  detail: {
4103
4121
  body: i
@@ -4115,25 +4133,25 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
4115
4133
  const p = `${Gr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
4116
4134
  this.sendSubmissionsToEmail || ""
4117
4135
  )}&name=${encodeURIComponent(this.name || "")}`, f = this.sendSubmissionsTo === "email" ? p : this.action;
4118
- $e(f), fetch(f, {
4136
+ Ie(f), fetch(f, {
4119
4137
  body: i,
4120
4138
  headers: r,
4121
4139
  method: this.method || "post"
4122
4140
  }).then(
4123
4141
  async (c) => {
4124
- var g, A;
4142
+ var g, P;
4125
4143
  let m;
4126
4144
  const b = c.headers.get("content-type");
4127
4145
  if (b && b.indexOf("application/json") !== -1 ? m = await c.json() : m = await c.text(), !c.ok) {
4128
- const F = new CustomEvent("submit:error", {
4146
+ const U = new CustomEvent("submit:error", {
4129
4147
  detail: {
4130
4148
  error: m,
4131
4149
  status: c.status
4132
4150
  }
4133
4151
  });
4134
- if ((g = this.$refs.formRef) != null && g.nativeElement && ((A = this.$refs.formRef) == null || A.nativeElement.dispatchEvent(
4135
- F
4136
- ), F.defaultPrevented))
4152
+ if ((g = this.$refs.formRef) != null && g.nativeElement && ((P = this.$refs.formRef) == null || P.nativeElement.dispatchEvent(
4153
+ U
4154
+ ), U.defaultPrevented))
4137
4155
  return;
4138
4156
  this.responseData = m, this.formState = "error";
4139
4157
  let V = this.errorMessagePath ? Je(m, this.errorMessagePath) : m.message || m.error || m;
@@ -4143,14 +4161,14 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
4143
4161
  return;
4144
4162
  }
4145
4163
  if (this.responseData = m, this.formState = c.ok ? "success" : "error", c.ok) {
4146
- const F = new CustomEvent("submit:success", {
4164
+ const U = new CustomEvent("submit:success", {
4147
4165
  detail: {
4148
4166
  res: c,
4149
4167
  body: m
4150
4168
  }
4151
4169
  });
4152
4170
  if (this.$refs.formRef) {
4153
- if (this.$refs.formRef.dispatchEvent(F), F.defaultPrevented)
4171
+ if (this.$refs.formRef.dispatchEvent(U), U.defaultPrevented)
4154
4172
  return;
4155
4173
  this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
4156
4174
  }
@@ -4180,7 +4198,7 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
4180
4198
  }
4181
4199
  }), Qr = ["validate", "action", "method", "name"], Yr = {
4182
4200
  key: 2,
4183
- class: "builder-form-error-text pre-1hjwvu3r5mj"
4201
+ class: "builder-form-error-text pre-2oa2wtipkzk"
4184
4202
  };
4185
4203
  function Xr(e, t, n, o, r, i) {
4186
4204
  const s = k("Blocks");
@@ -4190,8 +4208,8 @@ function Xr(e, t, n, o, r, i) {
4190
4208
  action: !e.sendWithJs && e.action,
4191
4209
  method: e.method,
4192
4210
  name: e.name,
4193
- onSubmit: t[0] || (t[0] = async (a) => e.onSubmit(a))
4194
- }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4211
+ onSubmit: t[0] || (t[0] = async (l) => e.onSubmit(l))
4212
+ }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4195
4213
  N(e.$slots, "default", {}, void 0, !0),
4196
4214
  e.submissionState() === "error" ? (d(), S(s, {
4197
4215
  key: 0,
@@ -4205,7 +4223,7 @@ function Xr(e, t, n, o, r, i) {
4205
4223
  blocks: e.sendingMessage,
4206
4224
  context: e.builderContext
4207
4225
  }, null, 8, ["blocks", "context"])) : C("", !0),
4208
- e.submissionState() === "error" && e.responseData ? (d(), h("pre", Yr, de(JSON.stringify(e.responseData, null, 2)), 1)) : C("", !0),
4226
+ e.submissionState() === "error" && e.responseData ? (d(), h("pre", Yr, ce(e.errorResponse(e.responseData)), 1)) : C("", !0),
4209
4227
  e.submissionState() === "success" ? (d(), S(s, {
4210
4228
  key: 3,
4211
4229
  path: "successMessage",
@@ -4214,7 +4232,7 @@ function Xr(e, t, n, o, r, i) {
4214
4232
  }, null, 8, ["blocks", "context"])) : C("", !0)
4215
4233
  ], 16, Qr);
4216
4234
  }
4217
- const _r = /* @__PURE__ */ v(Jr, [["render", Xr], ["__scopeId", "data-v-89aa89a6"]]), Zr = {
4235
+ const _r = /* @__PURE__ */ v(Jr, [["render", Xr], ["__scopeId", "data-v-77c7888c"]]), Zr = {
4218
4236
  name: "Form:Input",
4219
4237
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
4220
4238
  inputs: [
@@ -4277,7 +4295,7 @@ const _r = /* @__PURE__ */ v(Jr, [["render", Xr], ["__scopeId", "data-v-89aa89a6
4277
4295
  "required"
4278
4296
  ],
4279
4297
  data() {
4280
- return { isEditing: P, filterAttrs: W };
4298
+ return { isEditing: A, filterAttrs: x };
4281
4299
  }
4282
4300
  }), ti = ["placeholder", "type", "name", "value", "defaultValue", "required"];
4283
4301
  function ni(e, t, n, o, r, i) {
@@ -4289,7 +4307,7 @@ function ni(e, t, n, o, r, i) {
4289
4307
  value: e.value,
4290
4308
  defaultValue: e.defaultValue,
4291
4309
  required: e.required
4292
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, ti);
4310
+ }, e.filterAttrs(e.attributes, "v-on:", !1), L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, ti);
4293
4311
  }
4294
4312
  const oi = /* @__PURE__ */ v(ei, [["render", ni]]), ri = {
4295
4313
  name: "Form:Select",
@@ -4337,7 +4355,7 @@ const oi = /* @__PURE__ */ v(ei, [["render", ni]]), ri = {
4337
4355
  name: "builder-select-component",
4338
4356
  props: ["attributes", "value", "defaultValue", "name", "required", "options"],
4339
4357
  data() {
4340
- return { isEditing: P, filterAttrs: W };
4358
+ return { isEditing: A, filterAttrs: x };
4341
4359
  }
4342
4360
  }), si = ["value", "defaultValue", "name", "required"], ai = ["value"];
4343
4361
  function li(e, t, n, o, r, i) {
@@ -4347,11 +4365,11 @@ function li(e, t, n, o, r, i) {
4347
4365
  defaultValue: e.defaultValue,
4348
4366
  name: e.name,
4349
4367
  required: e.required
4350
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4351
- (d(!0), h(I, null, L(e.options, (s, a) => (d(), h("option", {
4352
- key: `${s.name}-${a}`,
4368
+ }, e.filterAttrs(e.attributes, "v-on:", !1), L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4369
+ (d(!0), h(I, null, F(e.options, (s, l) => (d(), h("option", {
4370
+ key: `${s.name}-${l}`,
4353
4371
  value: s.value
4354
- }, de(s.name || s.value), 9, ai))), 128))
4372
+ }, ce(s.name || s.value), 9, ai))), 128))
4355
4373
  ], 16, si);
4356
4374
  }
4357
4375
  const ci = /* @__PURE__ */ v(ii, [["render", li]]), di = {
@@ -4383,11 +4401,11 @@ const ci = /* @__PURE__ */ v(ii, [["render", li]]), di = {
4383
4401
  name: "builder-submit-button",
4384
4402
  props: ["attributes", "text"],
4385
4403
  data() {
4386
- return { filterAttrs: W };
4404
+ return { filterAttrs: x };
4387
4405
  }
4388
4406
  });
4389
4407
  function pi(e, t, n, o, r, i) {
4390
- return d(), h("button", $({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), de(e.text), 17);
4408
+ return d(), h("button", $({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ce(e.text), 17);
4391
4409
  }
4392
4410
  const mi = /* @__PURE__ */ v(ui, [["render", pi]]), hi = {
4393
4411
  name: "Form:TextArea",
@@ -4436,7 +4454,7 @@ const mi = /* @__PURE__ */ v(ui, [["render", pi]]), hi = {
4436
4454
  "required"
4437
4455
  ],
4438
4456
  data() {
4439
- return { filterAttrs: W };
4457
+ return { filterAttrs: x };
4440
4458
  }
4441
4459
  }), bi = ["placeholder", "name", "value", "defaultValue", "required"];
4442
4460
  function gi(e, t, n, o, r, i) {
@@ -4446,10 +4464,9 @@ function gi(e, t, n, o, r, i) {
4446
4464
  value: e.value,
4447
4465
  defaultValue: e.defaultValue,
4448
4466
  required: e.required
4449
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, bi);
4467
+ }, e.filterAttrs(e.attributes, "v-on:", !1), L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, bi);
4450
4468
  }
4451
4469
  const yi = /* @__PURE__ */ v(fi, [["render", gi]]), vi = {
4452
- // friendlyName?
4453
4470
  name: "Raw:Img",
4454
4471
  hideFromInsertMenu: !0,
4455
4472
  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",
@@ -4457,44 +4474,88 @@ const yi = /* @__PURE__ */ v(fi, [["render", gi]]), vi = {
4457
4474
  name: "image",
4458
4475
  bubble: !0,
4459
4476
  type: "file",
4460
- allowedFileTypes: Be,
4477
+ allowedFileTypes: Pe,
4461
4478
  required: !0
4479
+ }, {
4480
+ name: "backgroundSize",
4481
+ type: "text",
4482
+ defaultValue: "cover",
4483
+ enum: [{
4484
+ label: "contain",
4485
+ value: "contain",
4486
+ helperText: "The image should never get cropped"
4487
+ }, {
4488
+ label: "cover",
4489
+ value: "cover",
4490
+ helperText: "The image should fill it's box, cropping when needed"
4491
+ }]
4492
+ }, {
4493
+ name: "backgroundPosition",
4494
+ type: "text",
4495
+ defaultValue: "center",
4496
+ enum: ["center", "top", "left", "right", "bottom", "top left", "top right", "bottom left", "bottom right"]
4497
+ }, {
4498
+ name: "altText",
4499
+ type: "string",
4500
+ helperText: "Text to display when the user has images off"
4501
+ }, {
4502
+ name: "title",
4503
+ type: "string",
4504
+ helperText: "Text to display when hovering over the asset"
4505
+ }, {
4506
+ name: "aspectRatio",
4507
+ type: "number",
4508
+ helperText: "This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",
4509
+ advanced: !0,
4510
+ defaultValue: 0.7041
4462
4511
  }],
4463
- noWrap: !0,
4464
- static: !0
4512
+ noWrap: !0
4465
4513
  }, Si = y({
4466
4514
  name: "builder-img-component",
4467
4515
  props: [
4468
4516
  "imgSrc",
4469
4517
  "image",
4518
+ "attributes",
4519
+ "altText",
4520
+ "title",
4470
4521
  "backgroundSize",
4471
4522
  "backgroundPosition",
4472
- "altText",
4473
- "attributes"
4523
+ "aspectRatio"
4474
4524
  ],
4475
4525
  data() {
4476
- return { isEditing: P, filterAttrs: W };
4526
+ return { isEditing: A };
4477
4527
  },
4478
4528
  computed: {
4479
4529
  srcSetToUse() {
4480
4530
  const e = this.imgSrc || this.image;
4481
4531
  if (!(!e || typeof e != "string") && e.match(/builder\.io/))
4482
- return re(e);
4532
+ return oe(e);
4533
+ },
4534
+ imgAttrs() {
4535
+ const e = {
4536
+ ...x(this.attributes, "v-on:", !1),
4537
+ ...x(this.attributes, "v-on:", !0),
4538
+ [j()]: `builder-raw-img ${this.attributes[j()] || ""}`
4539
+ };
4540
+ return delete e.style, e;
4483
4541
  }
4484
4542
  }
4485
- }), ki = ["alt", "src", "srcSet"];
4543
+ }), ki = ["alt", "title", "src"];
4486
4544
  function Ci(e, t, n, o, r, i) {
4545
+ var s;
4487
4546
  return d(), h("img", $({
4488
4547
  loading: "lazy",
4489
- style: {
4490
- objectFit: e.backgroundSize || "cover",
4491
- objectPosition: e.backgroundPosition || "center"
4492
- },
4493
4548
  key: e.isEditing() && e.imgSrc || "default-key",
4494
4549
  alt: e.altText,
4550
+ title: e.title,
4495
4551
  src: e.imgSrc || e.image,
4496
- srcSet: e.srcSetToUse
4497
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, ki);
4552
+ style: {
4553
+ objectFit: e.backgroundSize || "cover",
4554
+ objectPosition: e.backgroundPosition || "center",
4555
+ aspectRatio: e.aspectRatio || void 0,
4556
+ ...((s = e.attributes) == null ? void 0 : s.style) || {}
4557
+ }
4558
+ }, e.imgAttrs), null, 16, ki);
4498
4559
  }
4499
4560
  const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
4500
4561
  name: "Video",
@@ -4514,7 +4575,7 @@ const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
4514
4575
  }, {
4515
4576
  name: "posterImage",
4516
4577
  type: "file",
4517
- allowedFileTypes: Be,
4578
+ allowedFileTypes: Pe,
4518
4579
  helperText: "Image to show before the video plays"
4519
4580
  }, {
4520
4581
  name: "autoPlay",
@@ -4662,7 +4723,7 @@ const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
4662
4723
  flexDirection: "column",
4663
4724
  alignItems: "stretch"
4664
4725
  }
4665
- }, Pi = {
4726
+ }, Ai = {
4666
4727
  key: 2,
4667
4728
  style: {
4668
4729
  pointerEvents: "none",
@@ -4676,8 +4737,8 @@ const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
4676
4737
  height: "100%"
4677
4738
  }
4678
4739
  };
4679
- function Ai(e, t, n, o, r, i) {
4680
- var s, a, l, u, p, f, c;
4740
+ function Pi(e, t, n, o, r, i) {
4741
+ var s, l, a, u, p, f, c;
4681
4742
  return d(), h("div", $i, [
4682
4743
  z("video", $({
4683
4744
  class: "builder-video",
@@ -4707,9 +4768,9 @@ function Ai(e, t, n, o, r, i) {
4707
4768
  }
4708
4769
  ), null, 16)
4709
4770
  ], 16, Ri),
4710
- e.aspectRatio && !(e.fitContent && ((l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length)) ? (d(), h("div", {
4771
+ e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (d(), h("div", {
4711
4772
  key: 0,
4712
- style: j({
4773
+ style: M({
4713
4774
  width: "100%",
4714
4775
  paddingTop: e.aspectRatio * 100 + "%",
4715
4776
  pointerEvents: "none",
@@ -4719,12 +4780,12 @@ function Ai(e, t, n, o, r, i) {
4719
4780
  (p = (u = e.builderBlock) == null ? void 0 : u.children) != null && p.length && e.fitContent ? (d(), h("div", Ei, [
4720
4781
  N(e.$slots, "default")
4721
4782
  ])) : C("", !0),
4722
- (c = (f = e.builderBlock) == null ? void 0 : f.children) != null && c.length && !e.fitContent ? (d(), h("div", Pi, [
4783
+ (c = (f = e.builderBlock) == null ? void 0 : f.children) != null && c.length && !e.fitContent ? (d(), h("div", Ai, [
4723
4784
  N(e.$slots, "default")
4724
4785
  ])) : C("", !0)
4725
4786
  ]);
4726
4787
  }
4727
- const Bi = /* @__PURE__ */ v(Ii, [["render", Ai]]), Vi = () => [{
4788
+ const Bi = /* @__PURE__ */ v(Ii, [["render", Pi]]), Vi = () => [{
4728
4789
  component: Or,
4729
4790
  ...Nr
4730
4791
  }, {
@@ -4752,10 +4813,10 @@ const Bi = /* @__PURE__ */ v(Ii, [["render", Ai]]), Vi = () => [{
4752
4813
  component: Bi,
4753
4814
  ...wi
4754
4815
  }], je = () => [{
4755
- component: Lt,
4816
+ component: Ft,
4756
4817
  ...ar
4757
4818
  }, {
4758
- component: Ao,
4819
+ component: Po,
4759
4820
  ...lr
4760
4821
  }, {
4761
4822
  component: No,
@@ -4843,7 +4904,7 @@ const Bi = /* @__PURE__ */ v(Ii, [["render", Ai]]), Vi = () => [{
4843
4904
  }).join('');
4844
4905
  styleEl.innerHTML = newStyleStr;
4845
4906
  }
4846
- }`, Wi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4907
+ }`, xi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4847
4908
  if (!navigator.cookieEnabled) {
4848
4909
  return;
4849
4910
  }
@@ -4877,23 +4938,23 @@ const Bi = /* @__PURE__ */ v(Ii, [["render", Ai]]), Vi = () => [{
4877
4938
  thisScriptEl?.remove();
4878
4939
  }
4879
4940
  return;
4880
- }`, Pt = "builderIoAbTest", At = "builderIoRenderContent", se = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4941
+ }`, At = "builderIoAbTest", Pt = "builderIoRenderContent", ie = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4881
4942
  ...t,
4882
4943
  testVariationId: t.id,
4883
4944
  id: e == null ? void 0 : e.id
4884
- })), Di = ({
4945
+ })), Wi = ({
4885
4946
  canTrack: e,
4886
4947
  content: t
4887
- }) => !(!(se(t).length > 0) || !e), xi = (e) => e === "react" || e === "reactNative", Oi = R === "angular", Bt = xi(R), Ui = () => `
4888
- window.${Pt} = ${Ni}
4889
- window.${At} = ${Wi}
4890
- `, Fi = (e, t) => `
4891
- window.${Pt}(
4948
+ }) => !(!(ie(t).length > 0) || !e), Di = (e) => e === "react" || e === "reactNative", Oi = R === "angular", Bt = Di(R), Ui = () => `
4949
+ window.${At} = ${Ni}
4950
+ window.${Pt} = ${xi}
4951
+ `, Li = (e, t) => `
4952
+ window.${At}(
4892
4953
  "${t}",${JSON.stringify(e)}, ${Bt}, ${Oi}
4893
- )`, Li = ({
4954
+ )`, Fi = ({
4894
4955
  contentId: e,
4895
4956
  variationId: t
4896
- }) => `window.${At}(
4957
+ }) => `window.${Pt}(
4897
4958
  "${t}", "${e}", ${Bt}
4898
4959
  )`;
4899
4960
  function Ke(e) {
@@ -4938,7 +4999,7 @@ const Hi = (e, t, n = !0) => {
4938
4999
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
4939
5000
  }
4940
5001
  };
4941
- }, Ki = ["svelte", "qwik", "vue"], qi = () => Ki.includes(R) && (P() || we()), zi = (e) => {
5002
+ }, Ki = ["svelte", "qwik", "vue"], qi = () => Ki.includes(R) && (A() || Te()), zi = (e) => {
4942
5003
  var i;
4943
5004
  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);
4944
5005
  let r = "";
@@ -4953,11 +5014,11 @@ font-weight: 400;
4953
5014
  for (const s in e.files) {
4954
5015
  if (!(String(Number(s)) === s))
4955
5016
  continue;
4956
- const l = e.files[s];
4957
- l && l !== o && (r += `
5017
+ const a = e.files[s];
5018
+ a && a !== o && (r += `
4958
5019
  @font-face {
4959
5020
  font-family: "${t}";
4960
- src: url('${l}') format('woff2');
5021
+ src: url('${a}') format('woff2');
4961
5022
  font-display: fallback;
4962
5023
  font-weight: ${s};
4963
5024
  }
@@ -4991,7 +5052,7 @@ font-weight: ${s};
4991
5052
  }
4992
5053
  `, Yi = (e) => e ? "" : Qi, Xi = (e) => `variant-${e}`, _i = y({
4993
5054
  name: "enable-editor",
4994
- components: { DynamicDiv: ne },
5055
+ components: { DynamicDiv: te },
4995
5056
  props: [
4996
5057
  "isNestedRender",
4997
5058
  "builderContextSignal",
@@ -5012,11 +5073,14 @@ font-weight: ${s};
5012
5073
  data() {
5013
5074
  return {
5014
5075
  hasExecuted: !1,
5076
+ contextValue: this.builderContextSignal,
5077
+ prevData: null,
5078
+ prevLocale: "",
5015
5079
  ContentWrapper: this.contentWrapper || "div",
5016
5080
  httpReqsData: {},
5017
5081
  httpReqsPending: {},
5018
5082
  clicked: !1,
5019
- builderContext: ge,
5083
+ builderContext: be,
5020
5084
  needsElementRefDivForEditing: qi,
5021
5085
  getWrapperClassName: Xi
5022
5086
  };
@@ -5024,7 +5088,7 @@ font-weight: ${s};
5024
5088
  provide() {
5025
5089
  const e = this;
5026
5090
  return {
5027
- [ge.key]: e.builderContextSignal
5091
+ [be.key]: e.builderContextSignal
5028
5092
  };
5029
5093
  },
5030
5094
  created() {
@@ -5033,25 +5097,25 @@ font-weight: ${s};
5033
5097
  mounted() {
5034
5098
  var e, t, n;
5035
5099
  if (T()) {
5036
- P() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
5100
+ A() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
5037
5101
  new CustomEvent("initeditingbldr")
5038
5102
  );
5039
- const o = this.builderContextSignal.content && J(this.canTrack), r = ue({
5103
+ const o = this.builderContextSignal.content && G(this.canTrack), r = de({
5040
5104
  name: `builder.tests.${(e = this.builderContextSignal.content) == null ? void 0 : e.id}`,
5041
5105
  canTrack: !0
5042
5106
  }), i = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId;
5043
5107
  if (o && i === r) {
5044
- const s = (n = this.builderContextSignal.content) == null ? void 0 : n.id, a = this.apiKey;
5045
- ve({
5108
+ const s = (n = this.builderContextSignal.content) == null ? void 0 : n.id, l = this.apiKey;
5109
+ ye({
5046
5110
  apiHost: this.apiHost,
5047
5111
  type: "impression",
5048
5112
  canTrack: !0,
5049
5113
  contentId: s,
5050
- apiKey: a,
5114
+ apiKey: l,
5051
5115
  variationId: r !== s ? r : void 0
5052
5116
  });
5053
5117
  }
5054
- we() && !P() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
5118
+ Te() && !A() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
5055
5119
  new CustomEvent("initpreviewingbldr")
5056
5120
  );
5057
5121
  }
@@ -5071,15 +5135,23 @@ font-weight: ${s};
5071
5135
  },
5072
5136
  onUpdateHook2: {
5073
5137
  handler() {
5074
- this.data && this.mergeNewRootState(this.data);
5138
+ if (this.data) {
5139
+ if (this.prevData === this.data)
5140
+ return;
5141
+ this.mergeNewRootState(this.data), this.prevData = this.data;
5142
+ }
5075
5143
  },
5076
5144
  immediate: !0
5077
5145
  },
5078
5146
  onUpdateHook3: {
5079
5147
  handler() {
5080
- this.locale && this.mergeNewRootState({
5081
- locale: this.locale
5082
- });
5148
+ if (this.locale) {
5149
+ if (this.prevLocale === this.locale)
5150
+ return;
5151
+ this.mergeNewRootState({
5152
+ locale: this.locale
5153
+ }), this.prevLocale = this.locale;
5154
+ }
5083
5155
  },
5084
5156
  immediate: !0
5085
5157
  }
@@ -5119,30 +5191,30 @@ font-weight: ${s};
5119
5191
  }
5120
5192
  },
5121
5193
  methods: {
5122
- mergeNewRootState(e) {
5123
- var n, o;
5124
- const t = {
5194
+ mergeNewRootState(e, t) {
5195
+ var o, r;
5196
+ const n = {
5125
5197
  ...this.builderContextSignal.rootState,
5126
5198
  ...e
5127
5199
  };
5128
- this.builderContextSignal.rootSetState ? (o = (n = this.builderContextSignal).rootSetState) == null || o.call(n, t) : this.builderContextSignal.rootState = t;
5200
+ this.builderContextSignal.rootSetState ? (r = (o = this.builderContextSignal).rootSetState) == null || r.call(o, n) : this.builderContextSignal.rootState = n, this.builderContextSignal.rootSetState ? this.builderContextSignal.rootSetState(n) : this.builderContextSignal.rootState = n;
5129
5201
  },
5130
- mergeNewContent(e) {
5131
- var n, o, r, i, s;
5132
- const t = {
5202
+ mergeNewContent(e, t) {
5203
+ var o, r, i, s, l;
5204
+ const n = {
5133
5205
  ...this.builderContextSignal.content,
5134
5206
  ...e,
5135
5207
  data: {
5136
- ...(n = this.builderContextSignal.content) == null ? void 0 : n.data,
5208
+ ...(o = this.builderContextSignal.content) == null ? void 0 : o.data,
5137
5209
  ...e == null ? void 0 : e.data
5138
5210
  },
5139
5211
  meta: {
5140
- ...(o = this.builderContextSignal.content) == null ? void 0 : o.meta,
5212
+ ...(r = this.builderContextSignal.content) == null ? void 0 : r.meta,
5141
5213
  ...e == null ? void 0 : e.meta,
5142
- breakpoints: ((r = e == null ? void 0 : e.meta) == null ? void 0 : r.breakpoints) || ((s = (i = this.builderContextSignal.content) == null ? void 0 : i.meta) == null ? void 0 : s.breakpoints)
5214
+ breakpoints: ((i = e == null ? void 0 : e.meta) == null ? void 0 : i.breakpoints) || ((l = (s = this.builderContextSignal.content) == null ? void 0 : s.meta) == null ? void 0 : l.breakpoints)
5143
5215
  }
5144
5216
  };
5145
- this.builderContextSignal.content = t;
5217
+ this.builderContextSignal.content = n;
5146
5218
  },
5147
5219
  processMessage(e) {
5148
5220
  return ut({
@@ -5161,11 +5233,11 @@ font-weight: ${s};
5161
5233
  animation: (t) => {
5162
5234
  yt(t);
5163
5235
  },
5164
- contentUpdate: (t) => {
5165
- this.mergeNewContent(t);
5236
+ contentUpdate: (t, n) => {
5237
+ this.mergeNewContent(t, n);
5166
5238
  },
5167
- stateUpdate: (t) => {
5168
- this.mergeNewRootState(t);
5239
+ stateUpdate: (t, n) => {
5240
+ this.mergeNewRootState(t, n);
5169
5241
  }
5170
5242
  }
5171
5243
  })(e);
@@ -5174,10 +5246,10 @@ font-weight: ${s};
5174
5246
  var t, n;
5175
5247
  if (this.builderContextSignal.content) {
5176
5248
  const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
5177
- ve({
5249
+ ye({
5178
5250
  apiHost: this.apiHost,
5179
5251
  type: "click",
5180
- canTrack: J(this.canTrack),
5252
+ canTrack: G(this.canTrack),
5181
5253
  contentId: r,
5182
5254
  apiKey: this.apiKey,
5183
5255
  variationId: o !== r ? o : void 0,
@@ -5190,40 +5262,64 @@ font-weight: ${s};
5190
5262
  runHttpRequests() {
5191
5263
  var t, n;
5192
5264
  const e = ((n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) ?? {};
5193
- Object.entries(e).forEach(([o, r]) => {
5194
- if (!r || this.httpReqsPending[o] || this.httpReqsData[o] && !P())
5195
- return;
5196
- this.httpReqsPending[o] = !0;
5197
- const i = r.replace(
5198
- /{{([^}]+)}}/g,
5199
- (s, a) => String(
5200
- te({
5201
- code: a,
5202
- context: this.context || {},
5203
- localState: void 0,
5204
- rootState: this.builderContextSignal.rootState,
5205
- rootSetState: this.builderContextSignal.rootSetState
5206
- })
5207
- )
5208
- );
5209
- $e(i), fetch(i).then((s) => s.json()).then((s) => {
5210
- this.mergeNewRootState({
5211
- [o]: s
5212
- }), this.httpReqsData[o] = !0;
5213
- }).catch((s) => {
5214
- console.error("error fetching dynamic data", r, s);
5215
- }).finally(() => {
5216
- this.httpReqsPending[o] = !1;
5217
- });
5218
- });
5265
+ Object.entries(e).forEach(
5266
+ ([o, r]) => {
5267
+ if (!r)
5268
+ return;
5269
+ const i = typeof r == "object" && r["@type"] === "@builder.io/core:Request";
5270
+ if (this.httpReqsPending[o] || this.httpReqsData[o] && !A())
5271
+ return;
5272
+ const s = i ? r.request.url : r;
5273
+ this.httpReqsPending[o] = !0;
5274
+ const l = s.replace(
5275
+ /{{([^}]+)}}/g,
5276
+ (p, f) => String(
5277
+ ee({
5278
+ code: f,
5279
+ context: this.context || {},
5280
+ localState: void 0,
5281
+ rootState: this.builderContextSignal.rootState,
5282
+ rootSetState: this.builderContextSignal.rootSetState
5283
+ })
5284
+ )
5285
+ ), a = i ? {
5286
+ url: l,
5287
+ method: r.request.method,
5288
+ headers: r.request.headers,
5289
+ body: r.request.body
5290
+ } : {
5291
+ url: l,
5292
+ method: "GET"
5293
+ };
5294
+ Ie(JSON.stringify(a));
5295
+ const u = {
5296
+ method: a.method,
5297
+ headers: a.headers,
5298
+ body: a.body
5299
+ };
5300
+ a.method === "GET" && delete u.body, fetch(a.url, u).then((p) => p.json()).then((p) => {
5301
+ this.mergeNewRootState({
5302
+ [o]: p
5303
+ }), this.httpReqsData[o] = !0;
5304
+ }).catch((p) => {
5305
+ console.error(
5306
+ "error fetching dynamic data",
5307
+ JSON.stringify(r),
5308
+ p
5309
+ );
5310
+ }).finally(() => {
5311
+ this.httpReqsPending[o] = !1;
5312
+ });
5313
+ }
5314
+ );
5219
5315
  },
5220
5316
  emitStateUpdate() {
5221
- P() && window.dispatchEvent(
5317
+ A() && window.dispatchEvent(
5222
5318
  new CustomEvent(
5223
5319
  "builder:component:stateChange",
5224
5320
  {
5225
5321
  detail: {
5226
- state: Te(this.builderContextSignal.rootState),
5322
+ state: Ce(this.builderContextSignal.rootState),
5227
5323
  ref: {
5228
5324
  name: this.model
5229
5325
  }
@@ -5263,7 +5359,7 @@ font-weight: ${s};
5263
5359
  const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
5264
5360
  `builder.overrides.${n}`
5265
5361
  ), r = t.get("apiKey") || t.get("builder.space");
5266
- (n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && Pe({
5362
+ (n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && Ee({
5267
5363
  model: this.model,
5268
5364
  apiKey: this.apiKey,
5269
5365
  apiVersion: this.builderContextSignal.apiVersion,
@@ -5279,21 +5375,21 @@ font-weight: ${s};
5279
5375
  }
5280
5376
  });
5281
5377
  function Zi(e, t, n, o, r, i) {
5282
- var s, a, l;
5283
- return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(_(e.ContentWrapper), $({
5378
+ var s, l, a;
5379
+ return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(X(e.ContentWrapper), $({
5284
5380
  key: 0,
5285
5381
  ref: "elementRef",
5286
5382
  onClick: (u) => e.onClick(u),
5287
5383
  "builder-content-id": (s = e.builderContextSignal.content) == null ? void 0 : s.id,
5288
5384
  "builder-model": e.model,
5289
- className: e.getWrapperClassName(((a = e.content) == null ? void 0 : a.testVariationId) || ((l = e.content) == null ? void 0 : l.id)),
5385
+ className: e.getWrapperClassName(((l = e.content) == null ? void 0 : l.testVariationId) || ((a = e.content) == null ? void 0 : a.id)),
5290
5386
  style: {
5291
5387
  display: !e.builderContextSignal.content && e.needsElementRefDivForEditing() ? "none" : void 0
5292
5388
  },
5293
5389
  onIniteditingbldr: (u) => e.elementRef_onIniteditingbldr(u),
5294
5390
  onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
5295
5391
  }, { ...e.showContentProps, ...e.contentWrapperProps }), {
5296
- default: U(() => [
5392
+ default: O(() => [
5297
5393
  N(e.$slots, "default")
5298
5394
  ]),
5299
5395
  _: 3
@@ -5301,7 +5397,7 @@ function Zi(e, t, n, o, r, i) {
5301
5397
  }
5302
5398
  const es = /* @__PURE__ */ v(_i, [["render", Zi]]), ts = y({
5303
5399
  name: "content-styles",
5304
- components: { InlinedStyles: pe },
5400
+ components: { InlinedStyles: ue },
5305
5401
  props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
5306
5402
  data() {
5307
5403
  return {
@@ -5331,10 +5427,10 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
5331
5427
  data: t,
5332
5428
  locale: n
5333
5429
  }) => {
5334
- var i, s, a;
5430
+ var i, s, l;
5335
5431
  const o = {}, r = ((i = e == null ? void 0 : e.data) == null ? void 0 : i.state) || {};
5336
- return (a = (s = e == null ? void 0 : e.data) == null ? void 0 : s.inputs) == null || a.forEach((l) => {
5337
- l.name && l.defaultValue !== void 0 && (o[l.name] = l.defaultValue);
5432
+ return (l = (s = e == null ? void 0 : e.data) == null ? void 0 : s.inputs) == null || l.forEach((a) => {
5433
+ a.name && a.defaultValue !== void 0 && (o[a.name] = a.defaultValue);
5338
5434
  }), {
5339
5435
  ...o,
5340
5436
  ...r,
@@ -5357,10 +5453,10 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
5357
5453
  name: "content-component",
5358
5454
  components: {
5359
5455
  EnableEditor: es,
5360
- InlinedScript: Ve,
5456
+ InlinedScript: Be,
5361
5457
  ContentStyles: os,
5362
5458
  Blocks: q,
5363
- DynamicDiv: ne
5459
+ DynamicDiv: te
5364
5460
  },
5365
5461
  props: [
5366
5462
  "apiKey",
@@ -5388,7 +5484,7 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
5388
5484
  data() {
5389
5485
  var e, t;
5390
5486
  return {
5391
- scriptStr: Li({
5487
+ scriptStr: Fi({
5392
5488
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
5393
5489
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
5394
5490
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -5402,7 +5498,7 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
5402
5498
  ...n,
5403
5499
  [r.name]: {
5404
5500
  component: ss(o),
5405
- ...le(r)
5501
+ ...ae(r)
5406
5502
  }
5407
5503
  }),
5408
5504
  {}
@@ -5429,7 +5525,7 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
5429
5525
  ].reduce(
5430
5526
  (n, { component: o, ...r }) => ({
5431
5527
  ...n,
5432
- [r.name]: le(r)
5528
+ [r.name]: ae(r)
5433
5529
  }),
5434
5530
  {}
5435
5531
  ),
@@ -5456,7 +5552,7 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
5456
5552
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
5457
5553
  );
5458
5554
  const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
5459
- e && te({
5555
+ e && ee({
5460
5556
  code: e,
5461
5557
  context: this.context || {},
5462
5558
  localState: void 0,
@@ -5474,7 +5570,7 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
5474
5570
  }
5475
5571
  });
5476
5572
  function ls(e, t, n, o, r, i) {
5477
- const s = k("InlinedScript"), a = k("ContentStyles"), l = k("Blocks"), u = k("EnableEditor");
5573
+ const s = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
5478
5574
  return d(), S(u, $({
5479
5575
  apiHost: e.apiHost,
5480
5576
  nonce: e.nonce,
@@ -5493,8 +5589,8 @@ function ls(e, t, n, o, r, i) {
5493
5589
  trustedHosts: e.trustedHosts,
5494
5590
  isNestedRender: e.isNestedRender
5495
5591
  }, {}), {
5496
- default: U(() => {
5497
- var p, f, c, m, b, g, A;
5592
+ default: O(() => {
5593
+ var p, f, c, m, b, g, P;
5498
5594
  return [
5499
5595
  e.isSsrAbTest ? (d(), S(s, {
5500
5596
  key: 0,
@@ -5502,7 +5598,7 @@ function ls(e, t, n, o, r, i) {
5502
5598
  scriptStr: e.scriptStr,
5503
5599
  nonce: e.nonce || ""
5504
5600
  }, null, 8, ["scriptStr", "nonce"])) : C("", !0),
5505
- e.TARGET !== "reactNative" ? (d(), S(a, {
5601
+ e.TARGET !== "reactNative" ? (d(), S(l, {
5506
5602
  key: 1,
5507
5603
  nonce: e.nonce || "",
5508
5604
  isNestedRender: e.isNestedRender,
@@ -5510,8 +5606,8 @@ function ls(e, t, n, o, r, i) {
5510
5606
  cssCode: (c = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : c.cssCode,
5511
5607
  customFonts: (b = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : b.customFonts
5512
5608
  }, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : C("", !0),
5513
- E(l, {
5514
- blocks: (A = (g = e.builderContextSignal.content) == null ? void 0 : g.data) == null ? void 0 : A.blocks,
5609
+ E(a, {
5610
+ blocks: (P = (g = e.builderContextSignal.content) == null ? void 0 : g.data) == null ? void 0 : P.blocks,
5515
5611
  context: e.builderContextSignal,
5516
5612
  registeredComponents: e.registeredComponents,
5517
5613
  linkComponent: e.linkComponent
@@ -5524,8 +5620,8 @@ function ls(e, t, n, o, r, i) {
5524
5620
  const cs = /* @__PURE__ */ v(as, [["render", ls]]), ds = y({
5525
5621
  name: "content-variants",
5526
5622
  components: {
5527
- InlinedScript: Ve,
5528
- InlinedStyles: pe,
5623
+ InlinedScript: Be,
5624
+ InlinedStyles: ue,
5529
5625
  ContentComponent: cs
5530
5626
  },
5531
5627
  props: [
@@ -5551,15 +5647,15 @@ const cs = /* @__PURE__ */ v(as, [["render", ls]]), ds = y({
5551
5647
  ],
5552
5648
  data() {
5553
5649
  return {
5554
- shouldRenderVariants: Di({
5555
- canTrack: J(this.canTrack),
5650
+ shouldRenderVariants: Wi({
5651
+ canTrack: G(this.canTrack),
5556
5652
  content: this.content
5557
5653
  }),
5558
5654
  SDKS_SUPPORTING_PERSONALIZATION: $t,
5559
5655
  getInitPersonalizationVariantsFnsScriptString: _o,
5560
5656
  TARGET: R,
5561
5657
  getInitVariantsFnsScriptString: Ui,
5562
- getVariants: se
5658
+ getVariants: ie
5563
5659
  };
5564
5660
  },
5565
5661
  mounted() {
@@ -5567,8 +5663,8 @@ const cs = /* @__PURE__ */ v(as, [["render", ls]]), ds = y({
5567
5663
  computed: {
5568
5664
  updateCookieAndStylesScriptStr() {
5569
5665
  var e;
5570
- return Fi(
5571
- se(this.content).map((t) => ({
5666
+ return Li(
5667
+ ie(this.content).map((t) => ({
5572
5668
  id: t.testVariationId,
5573
5669
  testRatio: t.testRatio
5574
5670
  })),
@@ -5576,7 +5672,7 @@ const cs = /* @__PURE__ */ v(as, [["render", ls]]), ds = y({
5576
5672
  );
5577
5673
  },
5578
5674
  hideVariantsStyleString() {
5579
- return se(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
5675
+ return ie(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
5580
5676
  },
5581
5677
  defaultContent() {
5582
5678
  var e;
@@ -5585,13 +5681,13 @@ const cs = /* @__PURE__ */ v(as, [["render", ls]]), ds = y({
5585
5681
  testVariationId: (e = this.content) == null ? void 0 : e.id
5586
5682
  } : Un({
5587
5683
  item: this.content,
5588
- canTrack: J(this.canTrack)
5684
+ canTrack: G(this.canTrack)
5589
5685
  });
5590
5686
  }
5591
5687
  }
5592
5688
  });
5593
5689
  function us(e, t, n, o, r, i) {
5594
- const s = k("InlinedScript"), a = k("InlinedStyles"), l = k("ContentComponent");
5690
+ const s = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
5595
5691
  return d(), h(I, null, [
5596
5692
  !e.isNestedRender && e.TARGET !== "reactNative" ? (d(), h(I, { key: 0 }, [
5597
5693
  E(s, {
@@ -5607,7 +5703,7 @@ function us(e, t, n, o, r, i) {
5607
5703
  }, null, 8, ["nonce", "scriptStr"])) : C("", !0)
5608
5704
  ], 64)) : C("", !0),
5609
5705
  e.shouldRenderVariants ? (d(), h(I, { key: 1 }, [
5610
- E(a, {
5706
+ E(l, {
5611
5707
  id: "builderio-variants",
5612
5708
  styles: e.hideVariantsStyleString,
5613
5709
  nonce: e.nonce || ""
@@ -5617,7 +5713,7 @@ function us(e, t, n, o, r, i) {
5617
5713
  scriptStr: e.updateCookieAndStylesScriptStr,
5618
5714
  nonce: e.nonce || ""
5619
5715
  }, null, 8, ["scriptStr", "nonce"]),
5620
- (d(!0), h(I, null, L(e.getVariants(e.content), (u, p) => (d(), S(l, $({
5716
+ (d(!0), h(I, null, F(e.getVariants(e.content), (u, p) => (d(), S(a, $({
5621
5717
  key: u.testVariationId,
5622
5718
  apiHost: e.apiHost,
5623
5719
  isNestedRender: e.isNestedRender,
@@ -5642,7 +5738,7 @@ function us(e, t, n, o, r, i) {
5642
5738
  trustedHosts: e.trustedHosts
5643
5739
  }, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
5644
5740
  ], 64)) : C("", !0),
5645
- E(l, $({
5741
+ E(a, $({
5646
5742
  apiHost: e.apiHost,
5647
5743
  nonce: e.nonce,
5648
5744
  isNestedRender: e.isNestedRender,
@@ -5675,7 +5771,7 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = async ({
5675
5771
  }) => {
5676
5772
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
5677
5773
  (e != null && e.apiKey))
5678
- return Pe({
5774
+ return Ee({
5679
5775
  model: t.model,
5680
5776
  apiKey: e.apiKey,
5681
5777
  apiVersion: e.apiVersion,
@@ -5689,14 +5785,14 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = async ({
5689
5785
  });
5690
5786
  }, hs = y({
5691
5787
  name: "builder-symbol",
5692
- components: { ContentVariants: ps, DynamicDiv: ne },
5788
+ components: { ContentVariants: ps, DynamicDiv: te },
5693
5789
  props: [
5694
5790
  "symbol",
5791
+ "builderComponents",
5695
5792
  "attributes",
5696
5793
  "dynamic",
5697
5794
  "builderContext",
5698
5795
  "builderBlock",
5699
- "builderComponents",
5700
5796
  "builderLinkComponent"
5701
5797
  ],
5702
5798
  data() {
@@ -5704,7 +5800,7 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = async ({
5704
5800
  return {
5705
5801
  contentToUse: (e = this.symbol) == null ? void 0 : e.content,
5706
5802
  symbolEntry: (t = this.symbol) == null ? void 0 : t.entry,
5707
- filterAttrs: W
5803
+ filterAttrs: x
5708
5804
  };
5709
5805
  },
5710
5806
  mounted() {
@@ -5725,10 +5821,13 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = async ({
5725
5821
  contentWrapper() {
5726
5822
  return "div";
5727
5823
  },
5824
+ customComponents() {
5825
+ return Object.values(this.builderComponents);
5826
+ },
5728
5827
  className() {
5729
5828
  var e, t;
5730
5829
  return [
5731
- this.attributes[G()],
5830
+ this.attributes[j()],
5732
5831
  "builder-symbol",
5733
5832
  (e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
5734
5833
  (t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
@@ -5754,9 +5853,9 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = async ({
5754
5853
  }
5755
5854
  });
5756
5855
  function fs(e, t, n, o, r, i) {
5757
- var a, l, u, p, f;
5856
+ var l, a, u, p, f;
5758
5857
  const s = k("ContentVariants");
5759
- return d(), h("div", $({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
5858
+ return d(), h("div", $({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
5760
5859
  E(s, {
5761
5860
  nonce: e.builderContext.nonce,
5762
5861
  isNestedRender: !0,
@@ -5764,11 +5863,11 @@ function fs(e, t, n, o, r, i) {
5764
5863
  apiKey: e.builderContext.apiKey,
5765
5864
  context: {
5766
5865
  ...e.builderContext.context,
5767
- symbolId: (a = e.builderBlock) == null ? void 0 : a.id
5866
+ symbolId: (l = e.builderBlock) == null ? void 0 : l.id
5768
5867
  },
5769
- customComponents: Object.values(e.builderComponents),
5868
+ customComponents: e.customComponents,
5770
5869
  data: {
5771
- ...(l = e.symbol) == null ? void 0 : l.data,
5870
+ ...(a = e.symbol) == null ? void 0 : a.data,
5772
5871
  ...e.builderContext.localState,
5773
5872
  ...(p = (u = e.contentToUse) == null ? void 0 : u.data) == null ? void 0 : p.state
5774
5873
  },
@@ -5783,43 +5882,45 @@ function fs(e, t, n, o, r, i) {
5783
5882
  }
5784
5883
  const bs = /* @__PURE__ */ v(hs, [["render", fs]]);
5785
5884
  export {
5786
- Qn as A,
5885
+ ws as A,
5787
5886
  Ct as B,
5788
- Ao as C,
5789
- Yn as D,
5790
- Pe as E,
5887
+ Po as C,
5888
+ $s as D,
5889
+ Qn as E,
5791
5890
  No as F,
5792
- vs as G,
5793
- Es as H,
5891
+ Yn as G,
5892
+ Ee as H,
5794
5893
  Ho as I,
5894
+ vs as J,
5895
+ As as K,
5795
5896
  Ko as S,
5796
5897
  R as T,
5797
5898
  Bi as V,
5798
- pe as _,
5799
- $s as a,
5800
- Ps as b,
5801
- K as c,
5802
- Ae as d,
5803
- v as e,
5804
- te as f,
5805
- $o as g,
5899
+ v as _,
5900
+ j as a,
5901
+ be as b,
5902
+ ue as c,
5903
+ K as d,
5904
+ ee as e,
5905
+ $o as f,
5906
+ Es as g,
5806
5907
  Rs as h,
5807
- G as i,
5808
- ge as j,
5809
- Lt as k,
5810
- bs as l,
5811
- Vr as m,
5812
- q as n,
5813
- ps as o,
5814
- P as p,
5815
- we as q,
5816
- mn as r,
5817
- ws as s,
5818
- Ss as t,
5819
- ks as u,
5820
- tt as v,
5908
+ A as i,
5909
+ Ps as j,
5910
+ Ae as k,
5911
+ pn as l,
5912
+ Ft as m,
5913
+ bs as n,
5914
+ Vr as o,
5915
+ q as p,
5916
+ ps as q,
5917
+ Te as r,
5918
+ Is as s,
5919
+ mn as t,
5920
+ Ss as u,
5921
+ ks as v,
5821
5922
  ss as w,
5822
5923
  Cs as x,
5823
- Ts as y,
5824
- Is as z
5924
+ tt as y,
5925
+ Ts as z
5825
5926
  };