@builder.io/sdk-vue 4.2.1 → 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 (120) hide show
  1. package/lib/browser/{awaiter-522m_tb0.js → awaiter-QkoC16ei.js} +1 -1
  2. package/lib/browser/{awaiter-xp9lcSxP.cjs → awaiter-dVEzPIfa.cjs} +1 -1
  3. package/lib/browser/{block-wrapper-9mehIM9T.cjs → block-wrapper-BOi64ZSf.cjs} +1 -1
  4. package/lib/browser/{block-wrapper-26klNOq9.js → block-wrapper-LGlUvVpu.js} +3 -3
  5. package/lib/browser/blocks/form/form/form.vue.d.ts +1 -0
  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-IrVdrKrT.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/{get-block-properties-QnM_YrNk.js → get-block-properties-Ahsh8p5y.js} +8 -8
  23. package/lib/browser/{get-block-properties-OKep411k.cjs → get-block-properties-NuVrGQN_.cjs} +1 -1
  24. package/lib/browser/helpers/find-block.d.ts +18 -0
  25. package/lib/browser/helpers/subscribe-to-editor.d.ts +3 -2
  26. package/lib/browser/{index-dDcL7IfY.js → index-EtzQVBnH.js} +635 -569
  27. package/lib/browser/index-jbLVGF3d.cjs +334 -0
  28. package/lib/browser/index.cjs +1 -1
  29. package/lib/browser/index.mjs +11 -11
  30. package/lib/browser/live-edit-h_5MH287.cjs +1 -0
  31. package/lib/browser/live-edit-rw2-UX9h.js +32 -0
  32. package/lib/browser/{repeated-block-nKx_42cr.cjs → repeated-block-DP1NryZH.cjs} +1 -1
  33. package/lib/browser/{repeated-block-iOBHvqGU.js → repeated-block-WP795fea.js} +2 -2
  34. package/lib/browser/style-wrapper-OLuHp-wg.js +210 -0
  35. package/lib/browser/style-wrapper-_FKH2e4u.cjs +1 -0
  36. package/lib/browser/style.css +1 -1
  37. package/lib/edge/{awaiter-1mRIGpV6.cjs → awaiter-AB81htE9.cjs} +1 -1
  38. package/lib/edge/{awaiter-inDvpJQO.js → awaiter-G2IZpq8y.js} +1 -1
  39. package/lib/{node/block-wrapper-02ftlAfU.cjs → edge/block-wrapper-3KMmt5za.cjs} +1 -1
  40. package/lib/edge/{block-wrapper-SsRgbO8V.js → block-wrapper-hc1D57Il.js} +3 -3
  41. package/lib/edge/blocks/form/form/form.vue.d.ts +1 -0
  42. package/lib/edge/blocks/img/img.vue.d.ts +9 -2
  43. package/lib/edge/blocks/symbol/symbol.types.d.ts +1 -2
  44. package/lib/edge/blocks/symbol/symbol.vue.d.ts +1 -0
  45. package/lib/edge/blocks/tabs/tabs.vue.d.ts +1 -0
  46. package/lib/edge/component-ref-1l1Dc15N.cjs +1 -0
  47. package/lib/edge/{component-ref-xNhbKfn9.js → component-ref-__eNmb_i.js} +68 -57
  48. package/lib/edge/components/awaiter.types.d.ts +7 -0
  49. package/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +1 -6
  50. package/lib/edge/components/block/components/interactive-element.vue.d.ts +6 -3
  51. package/lib/edge/components/block/components/live-edit-block-styles.vue.d.ts +19 -0
  52. package/lib/edge/components/block/components/style-wrapper.vue.d.ts +15 -0
  53. package/lib/edge/components/content/components/enable-editor.vue.d.ts +6 -2
  54. package/lib/edge/components/live-edit.vue.d.ts +17 -0
  55. package/lib/edge/constants/sdk-version.d.ts +1 -1
  56. package/lib/edge/find-block-3Ig0kVVe.js +29 -0
  57. package/lib/edge/find-block-FREohLcp.cjs +1 -0
  58. package/lib/edge/{get-block-properties-YBHD-kyN.js → get-block-properties-IlO7VcTG.js} +10 -10
  59. package/lib/edge/{get-block-properties-gqcOodFf.cjs → get-block-properties-YofIFdQl.cjs} +1 -1
  60. package/lib/edge/helpers/find-block.d.ts +18 -0
  61. package/lib/edge/helpers/subscribe-to-editor.d.ts +3 -2
  62. package/lib/edge/{index-KuatB8ic.cjs → index-UFKf4DGh.cjs} +27 -27
  63. package/lib/edge/{index-hzqKkVuy.js → index-pedBdruj.js} +880 -814
  64. package/lib/edge/index.cjs +1 -1
  65. package/lib/edge/index.mjs +11 -11
  66. package/lib/edge/live-edit-bP5Bdb_I.cjs +1 -0
  67. package/lib/edge/live-edit-mkwzJ3KQ.js +31 -0
  68. package/lib/{node/repeated-block-pKrhMIDV.cjs → edge/repeated-block-eV-zFRwn.cjs} +1 -1
  69. package/lib/{node/repeated-block-dhWJ0p4C.js → edge/repeated-block-i0HNWVX0.js} +2 -2
  70. package/lib/edge/style-wrapper-QrUxYNMa.cjs +1 -0
  71. package/lib/edge/style-wrapper-mI3PSijR.js +209 -0
  72. package/lib/edge/style.css +1 -1
  73. package/lib/node/{awaiter-xwpDFIvR.cjs → awaiter-GsCK0Rmm.cjs} +1 -1
  74. package/lib/node/{awaiter-VENdQO6n.js → awaiter-vsM2I4ci.js} +2 -2
  75. package/lib/node/{block-wrapper-YFKoP-Sr.js → block-wrapper-HC1GKPg-.js} +5 -5
  76. package/lib/{edge/block-wrapper-1wOAQ8jv.cjs → node/block-wrapper-VVk0Gqbc.cjs} +1 -1
  77. package/lib/node/blocks/form/form/form.vue.d.ts +1 -0
  78. package/lib/node/blocks/img/img.vue.d.ts +9 -2
  79. package/lib/node/blocks/symbol/symbol.types.d.ts +1 -2
  80. package/lib/node/blocks/symbol/symbol.vue.d.ts +1 -0
  81. package/lib/node/blocks/tabs/tabs.vue.d.ts +1 -0
  82. package/lib/node/component-ref-SsJCZYlF.cjs +1 -0
  83. package/lib/node/{component-ref-CL-UB2rM.js → component-ref-bqN5ZiyT.js} +70 -58
  84. package/lib/node/components/awaiter.types.d.ts +7 -0
  85. package/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +1 -6
  86. package/lib/node/components/block/components/interactive-element.vue.d.ts +6 -3
  87. package/lib/node/components/block/components/live-edit-block-styles.vue.d.ts +19 -0
  88. package/lib/node/components/block/components/style-wrapper.vue.d.ts +15 -0
  89. package/lib/node/components/content/components/enable-editor.vue.d.ts +6 -2
  90. package/lib/node/components/live-edit.vue.d.ts +17 -0
  91. package/lib/node/constants/sdk-version.d.ts +1 -1
  92. package/lib/node/find-block-3Ig0kVVe.js +29 -0
  93. package/lib/node/find-block-FREohLcp.cjs +1 -0
  94. package/lib/node/{get-block-properties-5a2c_5xR.cjs → get-block-properties--0kf0kc1.cjs} +1 -1
  95. package/lib/node/{get-block-properties-LchfO6Kb.js → get-block-properties-4dl07r5f.js} +1 -1
  96. package/lib/node/helpers/find-block.d.ts +18 -0
  97. package/lib/node/helpers/subscribe-to-editor.d.ts +3 -2
  98. package/lib/node/index-9ZnpkpZ8.cjs +334 -0
  99. package/lib/node/{index-HR8y_fPw.js → index-BtCfIIfO.js} +600 -534
  100. package/lib/node/index.cjs +1 -1
  101. package/lib/node/index.mjs +8 -8
  102. package/lib/node/live-edit-dkMPrQFh.js +31 -0
  103. package/lib/node/live-edit-k5C1gkl6.cjs +1 -0
  104. package/lib/{edge/repeated-block-E4-2V2fe.js → node/repeated-block-FOLLYnPQ.js} +2 -2
  105. package/lib/{edge/repeated-block-6mZ2NJ7W.cjs → node/repeated-block-pPsNH7xs.cjs} +1 -1
  106. package/lib/node/style-wrapper-CbrJHZiI.cjs +1 -0
  107. package/lib/node/style-wrapper-bEfbvdLX.js +210 -0
  108. package/lib/node/style.css +1 -1
  109. package/package.json +1 -1
  110. package/lib/browser/block-styles-4ljhsSUM.js +0 -84
  111. package/lib/browser/block-styles-NDMRfO-4.cjs +0 -1
  112. package/lib/browser/component-ref-B8JFh8hq.cjs +0 -1
  113. package/lib/browser/index-Sn06h7cl.cjs +0 -334
  114. package/lib/edge/block-styles-NdwXUvb8.js +0 -83
  115. package/lib/edge/block-styles-gtNLlF4k.cjs +0 -1
  116. package/lib/edge/component-ref-aeV7uVzT.cjs +0 -1
  117. package/lib/node/block-styles-8bE2sgtd.cjs +0 -1
  118. package/lib/node/block-styles-8zkB2lOv.js +0 -84
  119. package/lib/node/component-ref-U-rcbsRh.cjs +0 -1
  120. package/lib/node/index-SDqfr0zQ.cjs +0 -334
@@ -1,7 +1,7 @@
1
- import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as I, createBlock as S, resolveDynamicComponent as Z, mergeProps as w, toHandlers as O, withCtx as U, renderSlot as V, resolveComponent as k, createTextVNode as Rt, toDisplayString as ce, defineAsyncComponent as X, createVNode as E, renderList as L, createCommentVNode as C, h as Ke, createElementVNode as z, normalizeStyle as j, normalizeClass as ee, markRaw as Et } from "vue";
2
- import { T as $, g as Pt, f as At, i as R, s as Bt, r as Vt, p as Nt, a as Wt, l as N, b as qe, c as ke, d as xt, n as ze, e as K, h as P, j as Dt } from "./should-force-browser-runtime-in-node-ikxWrCvn.js";
1
+ import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as I, createBlock as S, resolveDynamicComponent as X, mergeProps as w, toHandlers as F, withCtx as O, renderSlot as V, resolveComponent as k, createTextVNode as Rt, toDisplayString as le, defineAsyncComponent as Y, createVNode as E, renderList as L, createCommentVNode as C, h as Ke, createElementVNode as z, normalizeStyle as M, normalizeClass as _, markRaw as Et } from "vue";
2
+ import { T as $, g as At, f as Pt, i as R, s as Bt, r as Vt, p as Nt, a as xt, l as x, b as qe, c as Se, d as Wt, n as ze, e as K, h as A, j as Dt } from "./should-force-browser-runtime-in-node-ikxWrCvn.js";
3
3
  const Ot = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ut = (e) => typeof e == "string" && Ot.has(e.toLowerCase());
4
- function W(e = {}, t, n) {
4
+ function N(e = {}, t, n) {
5
5
  const o = {};
6
6
  for (const r in e) {
7
7
  if (!e[r] || n && !r.startsWith(t))
@@ -24,24 +24,24 @@ const Ft = y({
24
24
  return n;
25
25
  };
26
26
  function Lt(e, t, n, o, r, i) {
27
- return e.isEmptyElement(e.TagName) ? (d(), S(Z(e.TagName), w({ key: 1 }, e.attributes, O(e.actionAttributes)), null, 16)) : (d(), h(I, { key: 0 }, [
28
- typeof e.TagName == "string" ? (d(), S(Z(e.TagName), w({ key: 0 }, e.attributes, O(e.actionAttributes)), {
29
- default: U(() => [
27
+ return e.isEmptyElement(e.TagName) ? (d(), S(X(e.TagName), w({ key: 1 }, e.attributes, F(e.actionAttributes)), null, 16)) : (d(), h(I, { key: 0 }, [
28
+ typeof e.TagName == "string" ? (d(), S(X(e.TagName), w({ key: 0 }, e.attributes, F(e.actionAttributes)), {
29
+ default: O(() => [
30
30
  V(e.$slots, "default")
31
31
  ]),
32
32
  _: 3
33
- }, 16)) : (d(), S(Z(e.TagName), w({ key: 1 }, e.attributes, O(e.actionAttributes)), {
34
- default: U(() => [
33
+ }, 16)) : (d(), S(X(e.TagName), w({ key: 1 }, e.attributes, F(e.actionAttributes)), {
34
+ default: O(() => [
35
35
  V(e.$slots, "default")
36
36
  ]),
37
37
  _: 3
38
38
  }, 16))
39
39
  ], 64));
40
40
  }
41
- const Ce = /* @__PURE__ */ v(Ft, [["render", Lt]]), hs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41
+ const ke = /* @__PURE__ */ v(Ft, [["render", Lt]]), hs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42
42
  __proto__: null,
43
- default: Ce
44
- }, Symbol.toStringTag, { value: "Module" })), G = () => {
43
+ default: ke
44
+ }, Symbol.toStringTag, { value: "Module" })), j = () => {
45
45
  switch ($) {
46
46
  case "react":
47
47
  case "reactNative":
@@ -56,7 +56,7 @@ const Ce = /* @__PURE__ */ v(Ft, [["render", Lt]]), hs = /* @__PURE__ */ Object.
56
56
  }
57
57
  }, Ht = 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(Ft, [["render", Lt]]), hs = /* @__PURE__ */ Object.
65
65
  "text"
66
66
  ],
67
67
  data() {
68
- return { filterAttrs: W };
68
+ return { filterAttrs: N };
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
+ ...N(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,
@@ -90,13 +90,13 @@ function Mt(e, t, n, o, r, i) {
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
- Rt(ce(e.text), 1)
93
+ default: O(() => [
94
+ Rt(le(e.text), 1)
95
95
  ]),
96
96
  _: 1
97
97
  }, 8, ["attributes", "TagName", "actionAttributes"]);
98
98
  }
99
- const jt = /* @__PURE__ */ v(Ht, [["render", Mt]]), Kt = Symbol(), be = {
99
+ const jt = /* @__PURE__ */ v(Ht, [["render", Mt]]), Kt = Symbol(), fe = {
100
100
  Builder: {
101
101
  content: null,
102
102
  context: {},
@@ -129,24 +129,24 @@ const jt = /* @__PURE__ */ v(Ht, [["render", Mt]]), Kt = Symbol(), be = {
129
129
  rootSetState: i,
130
130
  rootState: s
131
131
  }) => {
132
- const a = Pt({
132
+ const l = At({
133
133
  builder: t,
134
134
  context: n,
135
135
  event: o,
136
- state: At({
136
+ state: Pt({
137
137
  rootState: s,
138
138
  localState: r,
139
139
  rootSetState: i
140
140
  })
141
141
  });
142
- return new Function(...a.map(([l]) => l), e)(...a.map(([, l]) => l));
142
+ return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
143
143
  }, Gt = (e) => R() || Bt({
144
144
  shouldLogWarning: !0
145
145
  }) ? zt(e) : Vt(e), Jt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Qt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Yt = (e) => {
146
146
  var t, n, o, r, i, s;
147
147
  return ((o = (n = (t = Jt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = Qt.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
148
148
  };
149
- function te({
149
+ function ee({
150
150
  code: e,
151
151
  context: t,
152
152
  localState: n,
@@ -157,17 +157,17 @@ function te({
157
157
  }) {
158
158
  if (e.trim() === "")
159
159
  return;
160
- const a = Yt(e.trim());
161
- if (a)
160
+ const l = Yt(e.trim());
161
+ if (l)
162
162
  return Je({
163
163
  ...o,
164
164
  ...n
165
- }, a);
166
- const l = {
165
+ }, l);
166
+ const a = {
167
167
  code: Nt(e, {
168
168
  isExpression: s
169
169
  }),
170
- builder: Wt(),
170
+ builder: xt(),
171
171
  context: t,
172
172
  event: i,
173
173
  rootSetState: r,
@@ -175,9 +175,9 @@ function te({
175
175
  localState: n
176
176
  };
177
177
  try {
178
- return Gt(l);
178
+ return Gt(a);
179
179
  } catch (u) {
180
- N.error("Failed code evaluation: " + u.message, {
180
+ x.error("Failed code evaluation: " + u.message, {
181
181
  code: e
182
182
  });
183
183
  return;
@@ -196,7 +196,7 @@ const Zt = (e, t) => {
196
196
  if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((o = e.component.options) != null && o.text) && typeof e.component.options.text == "string")
197
197
  return {
198
198
  ...e.component.options,
199
- text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, i) => te({
199
+ text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, i) => ee({
200
200
  code: i,
201
201
  context: t,
202
202
  localState: t.localState,
@@ -211,7 +211,7 @@ function _t(e, ...t) {
211
211
  delete n[o];
212
212
  return n;
213
213
  }
214
- function se(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
214
+ function ie(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
215
215
  if (e == null || typeof e != "object") {
216
216
  t(e, (i) => {
217
217
  n !== null && o !== null && (n[o] = i);
@@ -219,13 +219,13 @@ function se(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
219
219
  return;
220
220
  }
221
221
  r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((i, s) => {
222
- t(i, (l) => {
223
- e[s] = l;
224
- }), se(i, t, e, s, r);
222
+ t(i, (a) => {
223
+ e[s] = a;
224
+ }), ie(i, t, e, s, r);
225
225
  }) : Object.entries(e).forEach(([i, s]) => {
226
- t(s, (l) => {
227
- e[i] = l;
228
- }), se(s, t, e, i, r);
226
+ t(s, (a) => {
227
+ e[i] = a;
228
+ }), ie(s, t, e, i, r);
229
229
  }));
230
230
  }
231
231
  function Qe(e) {
@@ -235,7 +235,7 @@ function en(e) {
235
235
  if (!e || !Object.getOwnPropertyNames(e).length)
236
236
  return !1;
237
237
  let t = !1;
238
- return se(e, (n) => {
238
+ return ie(e, (n) => {
239
239
  if (Qe(n)) {
240
240
  t = !0;
241
241
  return;
@@ -243,7 +243,7 @@ function en(e) {
243
243
  }), t;
244
244
  }
245
245
  function tn(e, t) {
246
- return !e || !Object.getOwnPropertyNames(e).length ? {} : (se(e, (n, o) => {
246
+ return !e || !Object.getOwnPropertyNames(e).length ? {} : (ie(e, (n, o) => {
247
247
  Qe(n) && o(n[t] ?? void 0);
248
248
  }), e);
249
249
  }
@@ -251,21 +251,21 @@ function nn(e, t) {
251
251
  var n, o;
252
252
  return (n = e.component) != null && n.options && en((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 = tn(e.component.options, t ?? "Default")), e;
253
253
  }
254
- function ge(e) {
254
+ function be(e) {
255
255
  if (e === null || typeof e != "object")
256
256
  return e;
257
257
  if (Array.isArray(e))
258
- return e.map((n) => ge(n));
258
+ return e.map((n) => be(n));
259
259
  if (e["@type"] === "@builder.io/sdk:Element")
260
260
  return e;
261
261
  const t = {};
262
262
  for (const n in e)
263
- n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ge(e[n]));
263
+ n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = be(e[n]));
264
264
  return t;
265
265
  }
266
266
  const on = ["svelte", "vue", "angular", "qwik", "solid"].includes($), rn = (e) => {
267
267
  if (on) {
268
- const t = ke(e);
268
+ const t = Se(e);
269
269
  return {
270
270
  ...t,
271
271
  properties: {
@@ -276,7 +276,7 @@ const on = ["svelte", "vue", "angular", "qwik", "solid"].includes($), rn = (e) =
276
276
  }
277
277
  };
278
278
  } else {
279
- const t = ge(_t(e, "children", "meta"));
279
+ const t = be(_t(e, "children", "meta"));
280
280
  return {
281
281
  ...t,
282
282
  properties: {
@@ -300,14 +300,14 @@ const on = ["svelte", "vue", "angular", "qwik", "solid"].includes($), rn = (e) =
300
300
  return e;
301
301
  const i = rn(e);
302
302
  for (const s in e.bindings) {
303
- const a = e.bindings[s], l = te({
304
- code: a,
303
+ const l = e.bindings[s], a = ee({
304
+ code: l,
305
305
  localState: n,
306
306
  rootState: o,
307
307
  rootSetState: r,
308
308
  context: t
309
309
  });
310
- qe(i, s, l);
310
+ qe(i, s, a);
311
311
  }
312
312
  return i;
313
313
  };
@@ -327,23 +327,23 @@ function an({
327
327
  context: t
328
328
  }), i = nn(i, o.locale), i;
329
329
  }
330
- function Te(e) {
330
+ function Ce(e) {
331
331
  const t = e || (R() ? window.location.search : void 0);
332
- return t ? xt(t).indexOf("builder.preview=") !== -1 : !1;
332
+ return t ? Wt(t).indexOf("builder.preview=") !== -1 : !1;
333
333
  }
334
334
  const ln = (e) => ({
335
335
  type: "builder.registerComponent",
336
- data: ae(e)
336
+ data: se(e)
337
337
  }), cn = (e) => {
338
338
  const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
339
339
  return `return (${!t.startsWith("function") && !t.startsWith("async") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
340
340
  };
341
- function ae(e) {
341
+ function se(e) {
342
342
  return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? cn(n) : n));
343
343
  }
344
344
  const Ne = {};
345
345
  function fs(e, t) {
346
- e === "plugin" && (t = ae(t));
346
+ e === "plugin" && (t = se(t));
347
347
  let n = Ne[e];
348
348
  if (n || (n = Ne[e] = []), n.push(t), R()) {
349
349
  const o = {
@@ -370,24 +370,24 @@ function bs(e) {
370
370
  }, "*");
371
371
  }
372
372
  }
373
- const We = {};
373
+ const xe = {};
374
374
  function gs(e) {
375
375
  if (R()) {
376
- Object.assign(We, e);
376
+ Object.assign(xe, e);
377
377
  const t = {
378
378
  type: "builder.settingsChange",
379
- data: We
379
+ data: xe
380
380
  };
381
381
  parent.postMessage(t, "*");
382
382
  }
383
383
  }
384
- const xe = "builder.", dn = "options.", Ye = (e) => {
384
+ const We = "builder.", dn = "options.", Ye = (e) => {
385
385
  if (!e)
386
386
  return {};
387
387
  const t = ze(e), n = {};
388
388
  return Object.keys(t).forEach((o) => {
389
- if (o.startsWith(xe)) {
390
- const r = o.replace(xe, "").replace(dn, "");
389
+ if (o.startsWith(We)) {
390
+ const r = o.replace(We, "").replace(dn, "");
391
391
  n[r] = t[o];
392
392
  }
393
393
  }), n;
@@ -396,7 +396,7 @@ const xe = "builder.", dn = "options.", Ye = (e) => {
396
396
  return {};
397
397
  const e = new URLSearchParams(window.location.search);
398
398
  return Ye(e);
399
- }, Xe = "4.2.1", Ze = () => ({
399
+ }, Xe = "4.2.3", Ze = () => ({
400
400
  "X-Builder-SDK": $,
401
401
  "X-Builder-SDK-GEN": "2",
402
402
  "X-Builder-SDK-Version": Xe
@@ -405,7 +405,7 @@ const xe = "builder.", dn = "options.", Ye = (e) => {
405
405
  return e;
406
406
  const t = e.split(".");
407
407
  return t.length > 2 ? t.slice(1).join(".") : e;
408
- }, de = ({
408
+ }, ce = ({
409
409
  name: e,
410
410
  canTrack: t
411
411
  }) => {
@@ -413,17 +413,17 @@ const xe = "builder.", dn = "options.", Ye = (e) => {
413
413
  try {
414
414
  return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
415
415
  } catch (o) {
416
- N.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
416
+ x.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
417
417
  return;
418
418
  }
419
- }, _e = async (e) => de(e), mn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(K).join("; "), hn = [["secure", ""], ["SameSite", "None"]], fn = ({
419
+ }, _e = async (e) => ce(e), mn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(K).join("; "), hn = [["secure", ""], ["SameSite", "None"]], fn = ({
420
420
  name: e,
421
421
  value: t,
422
422
  expires: n
423
423
  }) => {
424
424
  const r = (R() ? location.protocol === "https:" : !0) ? hn : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", pn(window.location.hostname)], ...r];
425
425
  return mn(s);
426
- }, Ie = async ({
426
+ }, Te = async ({
427
427
  name: e,
428
428
  value: t,
429
429
  expires: n,
@@ -439,7 +439,7 @@ const xe = "builder.", dn = "options.", Ye = (e) => {
439
439
  });
440
440
  document.cookie = r;
441
441
  } catch (r) {
442
- N.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
442
+ x.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
443
443
  }
444
444
  };
445
445
  function bn() {
@@ -472,7 +472,7 @@ const tt = "builderSessionId", gn = async ({
472
472
  }, yn = () => et(), vn = ({
473
473
  id: e,
474
474
  canTrack: t
475
- }) => Ie({
475
+ }) => Te({
476
476
  name: tt,
477
477
  value: e,
478
478
  canTrack: t
@@ -524,9 +524,9 @@ const tt = "builderSessionId", gn = async ({
524
524
  value: e,
525
525
  canTrack: t
526
526
  });
527
- function we(e) {
527
+ function Ie(e) {
528
528
  var t;
529
- typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && N.log(e);
529
+ typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && x.log(e);
530
530
  }
531
531
  const wn = async ({
532
532
  canTrack: e
@@ -566,18 +566,18 @@ const wn = async ({
566
566
  ownerId: n
567
567
  }
568
568
  });
569
- async function ye({
569
+ async function ge({
570
570
  apiHost: e,
571
571
  ...t
572
572
  }) {
573
573
  if (!t.apiKey) {
574
- N.error("Missing API key for track call. Please provide your API key.");
574
+ x.error("Missing API key for track call. Please provide your API key.");
575
575
  return;
576
576
  }
577
- if (!t.canTrack || P() || !(R() || $ === "reactNative"))
577
+ if (!t.canTrack || A() || !(R() || $ === "reactNative"))
578
578
  return;
579
579
  const o = `${e || "https://cdn.builder.io"}/api/v1/track`;
580
- return we(o), fetch(o, {
580
+ return Ie(o), fetch(o, {
581
581
  method: "POST",
582
582
  body: JSON.stringify({
583
583
  events: [await $n(t)]
@@ -591,7 +591,7 @@ async function ye({
591
591
  console.error("Failed to track: ", r);
592
592
  });
593
593
  }
594
- const ys = (e) => ye({
594
+ const ys = (e) => ge({
595
595
  ...e,
596
596
  canTrack: !0
597
597
  }), Rn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
@@ -634,10 +634,10 @@ const it = (e) => {
634
634
  if (r != null && r.type)
635
635
  switch (r.type) {
636
636
  case "builder.evaluate": {
637
- const a = r.data.text, l = r.data.arguments || [], u = r.data.id, p = new Function(a);
637
+ const l = r.data.text, a = r.data.arguments || [], u = r.data.id, p = new Function(l);
638
638
  let f, c = null;
639
639
  try {
640
- f = p.apply(null, l);
640
+ f = p.apply(null, a);
641
641
  } catch (m) {
642
642
  c = m;
643
643
  }
@@ -688,13 +688,13 @@ const it = (e) => {
688
688
  break;
689
689
  }
690
690
  case "builder.resetState": {
691
- const i = r.data, s = i.model, a = i == null ? void 0 : i.state;
692
- s === e && a && n.stateUpdate(a);
691
+ const i = r.data, s = i.model, l = i == null ? void 0 : i.state, a = i.editType;
692
+ s === e && l && n.stateUpdate(l, a);
693
693
  break;
694
694
  }
695
695
  case "builder.contentUpdate": {
696
- const i = r.data, s = i.key || i.alias || i.entry || i.modelName, a = i.data;
697
- s === e && n.contentUpdate(a);
696
+ const i = r.data, s = i.key || i.alias || i.entry || i.modelName, l = i.data, a = i.editType;
697
+ s === e && n.contentUpdate(l, a);
698
698
  break;
699
699
  }
700
700
  }
@@ -705,7 +705,7 @@ const it = (e) => {
705
705
  trustedHosts: o
706
706
  }) => {
707
707
  if (!R)
708
- return N.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
708
+ return x.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
709
709
  };
710
710
  it({
711
711
  modelName: e,
@@ -727,21 +727,21 @@ const it = (e) => {
727
727
  return window.addEventListener("message", r), () => {
728
728
  window.removeEventListener("message", r);
729
729
  };
730
- }, En = "builder.tests", $e = (e) => `${En}.${e}`, Pn = ({
730
+ }, En = "builder.tests", we = (e) => `${En}.${e}`, An = ({
731
731
  contentId: e
732
732
  }) => _e({
733
- name: $e(e),
733
+ name: we(e),
734
734
  canTrack: !0
735
- }), An = ({
735
+ }), Pn = ({
736
736
  contentId: e
737
- }) => de({
738
- name: $e(e),
737
+ }) => ce({
738
+ name: we(e),
739
739
  canTrack: !0
740
740
  }), Bn = ({
741
741
  contentId: e,
742
742
  value: t
743
- }) => Ie({
744
- name: $e(e),
743
+ }) => Te({
744
+ name: we(e),
745
745
  value: t,
746
746
  canTrack: !0
747
747
  }), at = (e) => K(e.id) && K(e.variations) && Object.keys(e.variations).length > 0, Vn = ({
@@ -763,7 +763,7 @@ const it = (e) => {
763
763
  contentId: e.id,
764
764
  value: t
765
765
  }).catch((n) => {
766
- N.error("could not store A/B test variation: ", n);
766
+ x.error("could not store A/B test variation: ", n);
767
767
  }), t;
768
768
  }, ct = ({
769
769
  item: e,
@@ -789,7 +789,7 @@ const it = (e) => {
789
789
  return;
790
790
  if (!at(e))
791
791
  return e;
792
- const n = An({
792
+ const n = Pn({
793
793
  contentId: e.id
794
794
  }) || lt({
795
795
  variations: e.variations,
@@ -802,13 +802,13 @@ const it = (e) => {
802
802
  ...e,
803
803
  ...o
804
804
  };
805
- }, Wn = async ({
805
+ }, xn = async ({
806
806
  item: e,
807
807
  canTrack: t
808
808
  }) => {
809
809
  if (!t || !at(e))
810
810
  return e;
811
- const o = await Pn({
811
+ const o = await An({
812
812
  contentId: e.id
813
813
  }) || lt({
814
814
  variations: e.variations,
@@ -834,14 +834,14 @@ function Ue() {
834
834
  ...this.getUserAttributes(),
835
835
  ...n
836
836
  };
837
- Ie({
837
+ Te({
838
838
  name: Oe,
839
839
  value: JSON.stringify(o),
840
840
  canTrack: e
841
841
  }), t.forEach((r) => r(o));
842
842
  },
843
843
  getUserAttributes() {
844
- return R() ? JSON.parse(de({
844
+ return R() ? JSON.parse(ce({
845
845
  name: Oe,
846
846
  canTrack: e
847
847
  }) || "{}") : {};
@@ -858,31 +858,31 @@ function Ue() {
858
858
  }
859
859
  };
860
860
  }
861
- let ve;
862
- R() && $ === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = Ue()), ve = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : ve = Ue();
863
- const le = ve, Ss = (e) => {
864
- le.setUserAttributes(e);
865
- }, J = (e) => {
861
+ let ye;
862
+ R() && $ === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = Ue()), ye = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : ye = Ue();
863
+ const ae = ye, Ss = (e) => {
864
+ ae.setUserAttributes(e);
865
+ }, G = (e) => {
866
866
  const t = K(e) ? e : !0;
867
- return le.setCanTrack(t), t;
867
+ return ae.setCanTrack(t), t;
868
868
  };
869
- function xn() {
869
+ function Wn() {
870
870
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
871
871
  }
872
872
  function Dn() {
873
- const e = xn().fetch;
873
+ const e = Wn().fetch;
874
874
  if (typeof e > "u")
875
875
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
876
876
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
877
877
  return e;
878
878
  }
879
879
  const On = Dn();
880
- function Se(e, t = null, n = ".") {
880
+ function ve(e, t = null, n = ".") {
881
881
  return Object.keys(e).reduce((o, r) => {
882
882
  const i = e[r], s = [t, r].filter(Boolean).join(n);
883
883
  return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
884
884
  ...o,
885
- ...Se(i, s, n)
885
+ ...ve(i, s, n)
886
886
  } : {
887
887
  ...o,
888
888
  [s]: i
@@ -908,7 +908,7 @@ function Un(e) {
908
908
  }
909
909
  return t;
910
910
  }
911
- const Fn = "v3", Fe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Re = (e) => {
911
+ const Fn = "v3", Fe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, $e = (e) => {
912
912
  const {
913
913
  limit: t = 30,
914
914
  userAttributes: n,
@@ -916,8 +916,8 @@ const Fn = "v3", Fe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Re = (
916
916
  model: r,
917
917
  apiKey: i,
918
918
  enrich: s,
919
- locale: a,
920
- apiVersion: l = Fn,
919
+ locale: l,
920
+ apiVersion: a = Fn,
921
921
  fields: u,
922
922
  omit: p,
923
923
  offset: f,
@@ -925,43 +925,39 @@ const Fn = "v3", Fe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Re = (
925
925
  staleCacheSeconds: m,
926
926
  sort: b,
927
927
  includeUnpublished: g,
928
- apiHost: A
928
+ apiHost: P
929
929
  } = e;
930
930
  if (!i)
931
931
  throw new Error("Missing API key");
932
- if (!["v3"].includes(l))
933
- throw new Error(`Invalid apiVersion: expected 'v3', received '${l}'`);
934
- const F = t !== 1, B = A || "https://cdn.builder.io", T = new URL(`${B}/api/${l}/content/${r}`);
935
- T.searchParams.set("apiKey", i), T.searchParams.set("limit", String(t)), T.searchParams.set("noTraverse", String(F)), T.searchParams.set("includeRefs", String(!0));
936
- const x = a || (n == null ? void 0 : n.locale);
937
- let H = n || {};
938
- if (x && (T.searchParams.set("locale", x), H = {
939
- locale: x,
940
- ...H
941
- }), s && T.searchParams.set("enrich", String(s)), T.searchParams.set("omit", p ?? "meta.componentsUsed"), u && T.searchParams.set("fields", u), Number.isFinite(f) && f > -1 && T.searchParams.set("offset", String(Math.floor(f))), typeof g == "boolean" && T.searchParams.set("includeUnpublished", String(g)), c && Fe(c) && T.searchParams.set("cacheSeconds", String(c)), m && Fe(m) && T.searchParams.set("staleCacheSeconds", String(m)), b) {
942
- const D = Se({
932
+ if (!["v3"].includes(a))
933
+ throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
934
+ const U = t !== 1, B = P || "https://cdn.builder.io", T = new URL(`${B}/api/${a}/content/${r}`);
935
+ T.searchParams.set("apiKey", i), T.searchParams.set("limit", String(t)), T.searchParams.set("noTraverse", String(U)), T.searchParams.set("includeRefs", String(!0)), l && T.searchParams.set("locale", l);
936
+ let W = n || {};
937
+ if (s && T.searchParams.set("enrich", String(s)), T.searchParams.set("omit", p ?? "meta.componentsUsed"), u && T.searchParams.set("fields", u), Number.isFinite(f) && f > -1 && T.searchParams.set("offset", String(Math.floor(f))), typeof g == "boolean" && T.searchParams.set("includeUnpublished", String(g)), c && Fe(c) && T.searchParams.set("cacheSeconds", String(c)), m && Fe(m) && T.searchParams.set("staleCacheSeconds", String(m)), b) {
938
+ const D = ve({
943
939
  sort: b
944
940
  });
945
- for (const M in D)
946
- T.searchParams.set(M, JSON.stringify(D[M]));
941
+ for (const H in D)
942
+ T.searchParams.set(H, JSON.stringify(D[H]));
947
943
  }
948
- const Q = {
944
+ const J = {
949
945
  ...un(),
950
946
  ...ze(e.options || {})
951
947
  };
952
- H = {
953
- ...H,
954
- ...Hn(Q)
948
+ W = {
949
+ ...W,
950
+ ...Hn(J)
955
951
  };
956
- const Y = Se(Q);
957
- for (const D in Y)
958
- T.searchParams.set(D, String(Y[D]));
959
- if (Object.keys(H).length > 0 && T.searchParams.set("userAttributes", JSON.stringify(H)), o) {
952
+ const Q = ve(J);
953
+ for (const D in Q)
954
+ T.searchParams.set(D, String(Q[D]));
955
+ if (Object.keys(W).length > 0 && T.searchParams.set("userAttributes", JSON.stringify(W)), o) {
960
956
  const D = dt({
961
957
  query: o
962
958
  });
963
- for (const M in D)
964
- T.searchParams.set(M, JSON.stringify(D[M]));
959
+ for (const H in D)
960
+ T.searchParams.set(H, JSON.stringify(D[H]));
965
961
  }
966
962
  return T;
967
963
  }, Ln = (e) => {
@@ -979,16 +975,22 @@ const Fn = "v3", Fe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Re = (
979
975
  }
980
976
  return {};
981
977
  }, Mn = (e) => "results" in e;
982
- async function Ee(e) {
983
- const t = await qn({
978
+ async function Re(e) {
979
+ var o;
980
+ const t = e.locale || ((o = e.userAttributes) == null ? void 0 : o.locale);
981
+ t && (e.locale = t, e.userAttributes = {
982
+ locale: t,
983
+ ...e.userAttributes
984
+ });
985
+ const n = await qn({
984
986
  ...e,
985
987
  limit: 1
986
988
  });
987
- return t && t[0] || null;
989
+ return n && n[0] || null;
988
990
  }
989
991
  const jn = async (e) => {
990
992
  var s;
991
- const t = Re(e), n = e.fetch ?? On, o = {
993
+ const t = $e(e), n = e.fetch ?? On, o = {
992
994
  ...e.fetchOptions,
993
995
  headers: {
994
996
  ...(s = e.fetchOptions) == null ? void 0 : s.headers,
@@ -996,27 +998,27 @@ const jn = async (e) => {
996
998
  }
997
999
  };
998
1000
  return await (await n(t.href, o)).json();
999
- }, Kn = async (e, t, n = Re(e)) => {
1000
- const o = J(e.canTrack);
1001
+ }, Kn = async (e, t, n = $e(e)) => {
1002
+ const o = G(e.canTrack);
1001
1003
  if (n.search.includes("preview="), !o || !(R() || $ === "reactNative"))
1002
1004
  return t.results;
1003
1005
  try {
1004
1006
  const r = [];
1005
1007
  for (const i of t.results)
1006
- r.push(await Wn({
1008
+ r.push(await xn({
1007
1009
  item: i,
1008
1010
  canTrack: o
1009
1011
  }));
1010
1012
  t.results = r;
1011
1013
  } catch (r) {
1012
- N.error("Could not process A/B tests. ", r);
1014
+ x.error("Could not process A/B tests. ", r);
1013
1015
  }
1014
1016
  return t.results;
1015
1017
  };
1016
1018
  async function qn(e) {
1017
- const t = Re(e), n = await jn(e);
1019
+ const t = $e(e), n = await jn(e);
1018
1020
  if (!Mn(n))
1019
- throw N.error("Error fetching data. ", {
1021
+ throw x.error("Error fetching data. ", {
1020
1022
  url: t,
1021
1023
  content: n,
1022
1024
  options: e
@@ -1040,22 +1042,22 @@ const ks = async (e) => {
1040
1042
  return {
1041
1043
  apiKey: n.apiKey,
1042
1044
  model: n.model,
1043
- content: await Ee(n)
1045
+ content: await Re(n)
1044
1046
  };
1045
- }, Pe = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
1047
+ }, Ee = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
1046
1048
  function zn(e, t, n = {}) {
1047
- let o, r, i, s = null, a = 0;
1048
- const l = function() {
1049
- a = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
1049
+ let o, r, i, s = null, l = 0;
1050
+ const a = function() {
1051
+ l = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
1050
1052
  };
1051
1053
  return function() {
1052
1054
  const u = Date.now();
1053
- !a && n.leading === !1 && (a = u);
1054
- const p = t - (u - a);
1055
- 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;
1055
+ !l && n.leading === !1 && (l = u);
1056
+ const p = t - (u - l);
1057
+ 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;
1056
1058
  };
1057
1059
  }
1058
- function _(e, ...t) {
1060
+ function Z(e, ...t) {
1059
1061
  const n = Object(e);
1060
1062
  for (let o = 1; o < arguments.length; o++) {
1061
1063
  const r = arguments[o];
@@ -1081,9 +1083,9 @@ function ut(e) {
1081
1083
  }
1082
1084
  function pt(e, t) {
1083
1085
  const n = Jn(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
1084
- for (const a of s)
1085
- for (const l of n)
1086
- l in a || (a[l] = o[l]);
1086
+ for (const l of s)
1087
+ for (const a of n)
1088
+ a in l || (l[a] = o[a]);
1087
1089
  }
1088
1090
  function Jn(e) {
1089
1091
  const t = [];
@@ -1099,8 +1101,8 @@ function mt(e) {
1099
1101
  return;
1100
1102
  }
1101
1103
  Array.from(t).forEach((n) => {
1102
- pt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", _(n.style, e.steps[0].styles), setTimeout(() => {
1103
- n.style.transition = `all ${e.duration}s ${Pe(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), _(n.style, e.steps[1].styles), setTimeout(() => {
1104
+ pt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Z(n.style, e.steps[0].styles), setTimeout(() => {
1105
+ n.style.transition = `all ${e.duration}s ${Ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Z(n.style, e.steps[1].styles), setTimeout(() => {
1104
1106
  n.style.transition = "", n.style.transitionDelay = "";
1105
1107
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
1106
1108
  });
@@ -1116,25 +1118,25 @@ function Qn(e) {
1116
1118
  pt(e, n);
1117
1119
  let o = !1, r = !1;
1118
1120
  function i() {
1119
- !o && a(n) ? (o = !0, r = !0, setTimeout(() => {
1120
- _(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
1121
+ !o && l(n) ? (o = !0, r = !0, setTimeout(() => {
1122
+ Z(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
1121
1123
  r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
1122
1124
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
1123
- })) : e.repeat && o && !r && !a(n) && (o = !1, _(n.style, e.steps[0].styles));
1125
+ })) : e.repeat && o && !r && !l(n) && (o = !1, Z(n.style, e.steps[0].styles));
1124
1126
  }
1125
1127
  const s = zn(i, 200, {
1126
1128
  leading: !1
1127
1129
  });
1128
- function a(p) {
1130
+ function l(p) {
1129
1131
  const f = p.getBoundingClientRect(), c = window.innerHeight, b = (e.thresholdPercent || 0) / 100 * c;
1130
1132
  return f.bottom > b && f.top < c - b;
1131
1133
  }
1132
- const l = e.steps[0].styles;
1134
+ const a = e.steps[0].styles;
1133
1135
  function u() {
1134
- _(n.style, l);
1136
+ Z(n.style, a);
1135
1137
  }
1136
1138
  u(), setTimeout(() => {
1137
- n.style.transition = `all ${e.duration}s ${Pe(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
1139
+ n.style.transition = `all ${e.duration}s ${Ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
1138
1140
  }), document.addEventListener("scroll", s, {
1139
1141
  capture: !0,
1140
1142
  passive: !0
@@ -1143,7 +1145,7 @@ function Qn(e) {
1143
1145
  }
1144
1146
  const ht = (e) => Object.entries(e).map(([n, o]) => {
1145
1147
  if (typeof o == "string")
1146
- return `${Pe(n)}: ${o};`;
1148
+ return `${Ee(n)}: ${o};`;
1147
1149
  }).filter(K), Yn = (e) => ht(e).join(`
1148
1150
  `), Cs = ({
1149
1151
  mediaQuery: e,
@@ -1211,7 +1213,7 @@ const bt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1211
1213
  } = e;
1212
1214
  if (!(n != null && n.collection))
1213
1215
  return;
1214
- const r = te({
1216
+ const r = ee({
1215
1217
  code: n.collection,
1216
1218
  localState: t.localState,
1217
1219
  rootState: t.rootState,
@@ -1221,14 +1223,14 @@ const bt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1221
1223
  if (!Array.isArray(r))
1222
1224
  return;
1223
1225
  const i = n.collection.split(".").pop(), s = n.itemName || (i ? i + "Item" : "item");
1224
- return r.map((l, u) => ({
1226
+ return r.map((a, u) => ({
1225
1227
  context: {
1226
1228
  ...t,
1227
1229
  localState: {
1228
1230
  ...t.localState,
1229
1231
  $index: u,
1230
- $item: l,
1231
- [s]: l,
1232
+ $item: a,
1233
+ [s]: a,
1232
1234
  [`$${s}Index`]: u
1233
1235
  }
1234
1236
  },
@@ -1259,34 +1261,34 @@ const bt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1259
1261
  "Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
1260
1262
  e
1261
1263
  ), e;
1262
- }), so = () => import("./block-styles-8zkB2lOv.js").then((e) => e.default).catch((e) => {
1263
- throw console.error(
1264
- "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
1265
- e
1266
- ), e;
1267
- }), ao = () => import("./block-wrapper-YFKoP-Sr.js").then((e) => e.default).catch((e) => {
1264
+ }), so = () => import("./block-wrapper-HC1GKPg-.js").then((e) => e.default).catch((e) => {
1268
1265
  throw console.error(
1269
1266
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
1270
1267
  e
1271
1268
  ), e;
1272
- }), lo = () => import("./component-ref-CL-UB2rM.js").then((e) => e.default).catch((e) => {
1269
+ }), ao = () => import("./component-ref-bqN5ZiyT.js").then((e) => e.default).catch((e) => {
1273
1270
  throw console.error(
1274
1271
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
1275
1272
  e
1276
1273
  ), e;
1277
- }), co = () => import("./repeated-block-dhWJ0p4C.js").then((e) => e.default).catch((e) => {
1274
+ }), lo = () => import("./repeated-block-FOLLYnPQ.js").then((e) => e.default).catch((e) => {
1278
1275
  throw console.error(
1279
1276
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
1280
1277
  e
1281
1278
  ), e;
1279
+ }), co = () => import("./style-wrapper-bEfbvdLX.js").then((e) => e.default).catch((e) => {
1280
+ throw console.error(
1281
+ "Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
1282
+ e
1283
+ ), e;
1282
1284
  }), uo = y({
1283
1285
  name: "block",
1284
1286
  components: {
1285
- BlockStyles: X(so),
1286
- RepeatedBlock: X(co),
1287
- ComponentRef: X(lo),
1288
- BlockWrapper: X(ao),
1289
- DynamicDiv: X(io)
1287
+ StyleWrapper: Y(co),
1288
+ RepeatedBlock: Y(lo),
1289
+ ComponentRef: Y(ao),
1290
+ BlockWrapper: Y(so),
1291
+ DynamicDiv: Y(io)
1290
1292
  },
1291
1293
  props: ["block", "context", "registeredComponents", "linkComponent"],
1292
1294
  data() {
@@ -1376,12 +1378,13 @@ const bt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1376
1378
  });
1377
1379
  function po(e, t, n, o, r, i) {
1378
1380
  var f;
1379
- const s = k("BlockStyles"), a = k("ComponentRef"), l = k("Block", !0), u = k("BlockWrapper"), p = k("RepeatedBlock");
1381
+ const s = k("StyleWrapper"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), p = k("RepeatedBlock");
1380
1382
  return e.canShowBlock ? (d(), h(I, { key: 0 }, [
1381
1383
  E(s, {
1382
1384
  block: e.processedBlock,
1383
- context: e.context
1384
- }, null, 8, ["block", "context"]),
1385
+ context: e.context,
1386
+ id: e.block.id
1387
+ }, null, 8, ["block", "context", "id"]),
1385
1388
  (f = e.blockComponent) != null && f.noWrap ? (d(), h(I, { key: 1 }, [
1386
1389
  e.repeatItem ? (d(!0), h(I, { key: 1 }, L(e.repeatItem, (c, m) => (d(), S(p, {
1387
1390
  key: e.generateKey(m),
@@ -1389,7 +1392,7 @@ function po(e, t, n, o, r, i) {
1389
1392
  block: c.block,
1390
1393
  registeredComponents: e.registeredComponents,
1391
1394
  linkComponent: e.linkComponent
1392
- }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (d(), S(a, {
1395
+ }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (d(), S(l, {
1393
1396
  key: 0,
1394
1397
  componentRef: e.componentRefProps.componentRef,
1395
1398
  componentOptions: e.componentRefProps.componentOptions,
@@ -1414,8 +1417,8 @@ function po(e, t, n, o, r, i) {
1414
1417
  block: e.processedBlock,
1415
1418
  context: e.context
1416
1419
  }, {
1417
- default: U(() => [
1418
- E(a, {
1420
+ default: O(() => [
1421
+ E(l, {
1419
1422
  componentRef: e.componentRefProps.componentRef,
1420
1423
  componentOptions: e.componentRefProps.componentOptions,
1421
1424
  blockChildren: e.componentRefProps.blockChildren,
@@ -1426,7 +1429,7 @@ function po(e, t, n, o, r, i) {
1426
1429
  includeBlockProps: e.componentRefProps.includeBlockProps,
1427
1430
  isInteractive: e.componentRefProps.isInteractive
1428
1431
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
1429
- (d(!0), h(I, null, L(e.childrenWithoutParentComponent, (c, m) => (d(), S(l, {
1432
+ (d(!0), h(I, null, L(e.childrenWithoutParentComponent, (c, m) => (d(), S(a, {
1430
1433
  key: c.id,
1431
1434
  block: c,
1432
1435
  registeredComponents: e.registeredComponents,
@@ -1486,7 +1489,7 @@ const gt = /* @__PURE__ */ v(uo, [["render", po]]), Is = /* @__PURE__ */ Object.
1486
1489
  methods: {
1487
1490
  onClick() {
1488
1491
  var e, t;
1489
- P() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1492
+ A() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1490
1493
  {
1491
1494
  type: "builder.clickEmptyBlocks",
1492
1495
  data: {
@@ -1499,7 +1502,7 @@ const gt = /* @__PURE__ */ v(uo, [["render", po]]), Is = /* @__PURE__ */ Object.
1499
1502
  },
1500
1503
  onMouseEnter() {
1501
1504
  var e, t;
1502
- P() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1505
+ A() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1503
1506
  {
1504
1507
  type: "builder.hoverEmptyBlocks",
1505
1508
  data: {
@@ -1513,9 +1516,9 @@ const gt = /* @__PURE__ */ v(uo, [["render", po]]), Is = /* @__PURE__ */ Object.
1513
1516
  }
1514
1517
  });
1515
1518
  function ho(e, t, n, o, r, i) {
1516
- return d(), S(Z(e.BlocksWrapper), w({
1519
+ return d(), S(X(e.BlocksWrapper), w({
1517
1520
  ref: "blocksWrapperRef",
1518
- class: e.className + " component-tqyw9m0iue",
1521
+ class: e.className + " component-5vz8uirn7sc",
1519
1522
  "builder-path": e.dataPath,
1520
1523
  "builder-parent-id": e.parent,
1521
1524
  style: e.styleProp,
@@ -1523,13 +1526,13 @@ function ho(e, t, n, o, r, i) {
1523
1526
  onMouseEnter: (s) => e.onMouseEnter(),
1524
1527
  onKeyPress: (s) => e.onClick()
1525
1528
  }, { ...e.BlocksWrapperProps }), {
1526
- default: U(() => [
1529
+ default: O(() => [
1527
1530
  V(e.$slots, "default", {}, void 0, !0)
1528
1531
  ]),
1529
1532
  _: 3
1530
1533
  }, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
1531
1534
  }
1532
- const fo = /* @__PURE__ */ v(mo, [["render", ho], ["__scopeId", "data-v-161c6b74"]]), bo = y({
1535
+ const fo = /* @__PURE__ */ v(mo, [["render", ho], ["__scopeId", "data-v-82fc93d6"]]), bo = y({
1533
1536
  name: "builder-blocks",
1534
1537
  components: { BlocksWrapper: fo, Block: gt },
1535
1538
  props: [
@@ -1544,23 +1547,23 @@ const fo = /* @__PURE__ */ v(mo, [["render", ho], ["__scopeId", "data-v-161c6b74
1544
1547
  "registeredComponents"
1545
1548
  ],
1546
1549
  inject: {
1547
- builderContext: be.key,
1550
+ builderContext: fe.key,
1548
1551
  componentsContext: Ge.key
1549
1552
  }
1550
1553
  });
1551
1554
  function go(e, t, n, o, r, i) {
1552
- var l, u, p, f;
1553
- const s = k("Block"), a = k("BlocksWrapper");
1554
- return d(), S(a, {
1555
+ var a, u, p, f;
1556
+ const s = k("Block"), l = k("BlocksWrapper");
1557
+ return d(), S(l, {
1555
1558
  blocks: e.blocks,
1556
1559
  parent: e.parent,
1557
1560
  path: e.path,
1558
1561
  styleProp: e.styleProp,
1559
- BlocksWrapperProps: e.BlocksWrapperProps || ((l = e.context) == null ? void 0 : l.BlocksWrapperProps) || ((u = e.builderContext) == null ? void 0 : u.BlocksWrapperProps),
1562
+ BlocksWrapperProps: e.BlocksWrapperProps || ((a = e.context) == null ? void 0 : a.BlocksWrapperProps) || ((u = e.builderContext) == null ? void 0 : u.BlocksWrapperProps),
1560
1563
  classNameProp: e.className,
1561
1564
  BlocksWrapper: ((p = e.context) == null ? void 0 : p.BlocksWrapper) || ((f = e.builderContext) == null ? void 0 : f.BlocksWrapper)
1562
1565
  }, {
1563
- default: U(() => [
1566
+ default: O(() => [
1564
1567
  V(e.$slots, "default"),
1565
1568
  e.blocks ? (d(!0), h(I, { key: 0 }, L(e.blocks, (c, m) => {
1566
1569
  var b;
@@ -1585,10 +1588,10 @@ function vo(e, t, n, o, r, i) {
1585
1588
  V(e.$slots, "default")
1586
1589
  ]);
1587
1590
  }
1588
- const ne = /* @__PURE__ */ v(yo, [["render", vo]]), So = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1591
+ const te = /* @__PURE__ */ v(yo, [["render", vo]]), So = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1589
1592
  __proto__: null,
1590
- default: ne
1591
- }, Symbol.toStringTag, { value: "Module" })), ue = y({
1593
+ default: te
1594
+ }, Symbol.toStringTag, { value: "Module" })), de = y({
1592
1595
  render() {
1593
1596
  return Ke("style", {
1594
1597
  innerHTML: this.styles,
@@ -1620,7 +1623,7 @@ const ne = /* @__PURE__ */ v(yo, [["render", vo]]), So = /* @__PURE__ */ Object.
1620
1623
  max: 1200
1621
1624
  }
1622
1625
  }, ws = (e, t = yt) => `@media (max-width: ${t[e].max}px)`, ko = (e) => {
1623
- const t = ke(yt);
1626
+ const t = Se(yt);
1624
1627
  if (!e)
1625
1628
  return t;
1626
1629
  const {
@@ -1629,11 +1632,11 @@ const ne = /* @__PURE__ */ v(yo, [["render", vo]]), So = /* @__PURE__ */ Object.
1629
1632
  medium: r
1630
1633
  } = e;
1631
1634
  if (n) {
1632
- const l = Math.floor(n / 2);
1635
+ const a = Math.floor(n / 2);
1633
1636
  t.xsmall = {
1634
1637
  max: n,
1635
- min: l,
1636
- default: l + 1
1638
+ min: a,
1639
+ default: a + 1
1637
1640
  };
1638
1641
  }
1639
1642
  if (!o || !r)
@@ -1650,20 +1653,20 @@ const ne = /* @__PURE__ */ v(yo, [["render", vo]]), So = /* @__PURE__ */ Object.
1650
1653
  min: s,
1651
1654
  default: s + 1
1652
1655
  };
1653
- const a = t.medium.max + 1;
1656
+ const l = t.medium.max + 1;
1654
1657
  return t.large = {
1655
1658
  max: 2e3,
1656
1659
  // TODO: decide upper limit
1657
- min: a,
1658
- default: a + 1
1660
+ min: l,
1661
+ default: l + 1
1659
1662
  }, t;
1660
1663
  }, Co = (e) => `builder-columns ${e}-breakpoints`, To = y({
1661
1664
  name: "builder-columns",
1662
1665
  components: {
1663
- InlinedStyles: ue,
1664
- DynamicRenderer: Ce,
1666
+ InlinedStyles: de,
1667
+ DynamicRenderer: ke,
1665
1668
  Blocks: q,
1666
- DynamicDiv: ne
1669
+ DynamicDiv: te
1667
1670
  },
1668
1671
  props: [
1669
1672
  "space",
@@ -1792,7 +1795,7 @@ const ne = /* @__PURE__ */ v(yo, [["render", vo]]), So = /* @__PURE__ */ Object.
1792
1795
  ...e.link ? {
1793
1796
  href: e.link
1794
1797
  } : {},
1795
- [G()]: "builder-column",
1798
+ [j()]: "builder-column",
1796
1799
  style: ft(this.columnCssVars(t))
1797
1800
  };
1798
1801
  }
@@ -1800,9 +1803,9 @@ const ne = /* @__PURE__ */ v(yo, [["render", vo]]), So = /* @__PURE__ */ Object.
1800
1803
  });
1801
1804
  function Io(e, t, n, o, r, i) {
1802
1805
  var u;
1803
- const s = k("InlinedStyles"), a = k("Blocks"), l = k("DynamicRenderer");
1806
+ const s = k("InlinedStyles"), l = k("Blocks"), a = k("DynamicRenderer");
1804
1807
  return d(), h("div", w({
1805
- class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-4wbls88y960",
1808
+ class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-1be3j8m9ewb",
1806
1809
  style: e.columnsCssVars()
1807
1810
  }, {}), [
1808
1811
  e.TARGET !== "reactNative" ? (d(), S(s, {
@@ -1811,14 +1814,14 @@ function Io(e, t, n, o, r, i) {
1811
1814
  styles: e.columnsStyles(),
1812
1815
  nonce: e.builderContext.nonce
1813
1816
  }, null, 8, ["styles", "nonce"])) : C("", !0),
1814
- (d(!0), h(I, null, L(e.columns, (p, f) => (d(), S(l, {
1817
+ (d(!0), h(I, null, L(e.columns, (p, f) => (d(), S(a, {
1815
1818
  key: f,
1816
1819
  TagName: e.getTagName(p),
1817
1820
  actionAttributes: {},
1818
1821
  attributes: e.getAttributes(p, f)
1819
1822
  }, {
1820
- default: U(() => [
1821
- E(a, {
1823
+ default: O(() => [
1824
+ E(l, {
1822
1825
  path: `columns.${f}.blocks`,
1823
1826
  parent: e.builderBlock.id,
1824
1827
  context: e.builderContext,
@@ -1834,7 +1837,7 @@ function Io(e, t, n, o, r, i) {
1834
1837
  }, 1032, ["TagName", "attributes"]))), 128))
1835
1838
  ], 16);
1836
1839
  }
1837
- const wo = /* @__PURE__ */ v(To, [["render", Io], ["__scopeId", "data-v-459e0e34"]]), $o = y({
1840
+ const wo = /* @__PURE__ */ v(To, [["render", Io], ["__scopeId", "data-v-ab15749a"]]), $o = y({
1838
1841
  name: "builder-fragment-component",
1839
1842
  props: []
1840
1843
  });
@@ -1847,11 +1850,11 @@ const Eo = /* @__PURE__ */ v($o, [["render", Ro]]);
1847
1850
  function Le(e) {
1848
1851
  return e.replace(/http(s)?:/, "");
1849
1852
  }
1850
- function Po(e = "", t, n) {
1853
+ function Ao(e = "", t, n) {
1851
1854
  const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
1852
1855
  return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
1853
1856
  }
1854
- function Ao(e, t) {
1857
+ function Po(e, t) {
1855
1858
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1856
1859
  return e;
1857
1860
  if (t === "master")
@@ -1863,16 +1866,16 @@ function Ao(e, t) {
1863
1866
  }
1864
1867
  return null;
1865
1868
  }
1866
- function oe(e) {
1869
+ function ne(e) {
1867
1870
  if (!e)
1868
1871
  return e;
1869
1872
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1870
1873
  if (e.match(/builder\.io/)) {
1871
1874
  let n = e;
1872
1875
  const o = Number(e.split("?width=")[1]);
1873
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${Po(e, "width", r)} ${r}w`).concat([n]).join(", ");
1876
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${Ao(e, "width", r)} ${r}w`).concat([n]).join(", ");
1874
1877
  }
1875
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ao(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1878
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Po(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1876
1879
  }
1877
1880
  const Bo = y({
1878
1881
  name: "builder-image",
@@ -1904,10 +1907,10 @@ const Bo = y({
1904
1907
  if (!this.noWebp) {
1905
1908
  if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
1906
1909
  if (!this.srcset.includes(this.image.split("?")[0]))
1907
- return console.debug("Removed given srcset"), oe(t);
1910
+ return console.debug("Removed given srcset"), ne(t);
1908
1911
  } else if (this.image && !this.srcset)
1909
- return oe(t);
1910
- return oe(t);
1912
+ return ne(t);
1913
+ return ne(t);
1911
1914
  }
1912
1915
  },
1913
1916
  webpSrcSet() {
@@ -1925,12 +1928,12 @@ const Bo = y({
1925
1928
  return this.aspectRatio ? e : void 0;
1926
1929
  }
1927
1930
  }
1928
- }), Vo = ["srcset"], No = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"], Wo = {
1931
+ }), Vo = ["srcset"], No = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"], xo = {
1929
1932
  key: 2,
1930
- class: "div-29wpyomtntv-2"
1933
+ class: "div-t43jfuqn6g-2"
1931
1934
  };
1932
- function xo(e, t, n, o, r, i) {
1933
- var s, a, l, u, p, f;
1935
+ function Wo(e, t, n, o, r, i) {
1936
+ var s, l, a, u, p, f;
1934
1937
  return d(), h(I, null, [
1935
1938
  z("picture", null, [
1936
1939
  e.webpSrcSet ? (d(), h("source", {
@@ -1944,37 +1947,37 @@ function xo(e, t, n, o, r, i) {
1944
1947
  alt: e.altText,
1945
1948
  title: e.title,
1946
1949
  role: e.altText ? void 0 : "presentation",
1947
- style: j({
1950
+ style: M({
1948
1951
  objectPosition: e.backgroundPosition || "center",
1949
1952
  objectFit: e.backgroundSize || "cover",
1950
1953
  ...e.aspectRatioCss
1951
1954
  }),
1952
- class: ee(
1953
- "builder-image" + (e.className ? " " + e.className : "") + " img-29wpyomtntv"
1955
+ class: _(
1956
+ "builder-image" + (e.className ? " " + e.className : "") + " img-t43jfuqn6g"
1954
1957
  ),
1955
1958
  src: e.image,
1956
1959
  srcset: e.srcSetToUse,
1957
1960
  sizes: e.sizes
1958
1961
  }, null, 14, No)
1959
1962
  ]),
1960
- e.aspectRatio && !((a = (s = e.builderBlock) == null ? void 0 : s.children) != null && a.length && e.fitContent) ? (d(), h("div", {
1963
+ e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (d(), h("div", {
1961
1964
  key: 0,
1962
- class: "builder-image-sizer div-29wpyomtntv",
1963
- style: j({
1965
+ class: "builder-image-sizer div-t43jfuqn6g",
1966
+ style: M({
1964
1967
  paddingTop: e.aspectRatio * 100 + "%"
1965
1968
  })
1966
1969
  }, null, 4)) : C("", !0),
1967
- (u = (l = e.builderBlock) == null ? void 0 : l.children) != null && u.length && e.fitContent ? V(e.$slots, "default", { key: 1 }, void 0, !0) : C("", !0),
1968
- !e.fitContent && ((f = (p = e.builderBlock) == null ? void 0 : p.children) != null && f.length) ? (d(), h("div", Wo, [
1970
+ (u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? V(e.$slots, "default", { key: 1 }, void 0, !0) : C("", !0),
1971
+ !e.fitContent && ((f = (p = e.builderBlock) == null ? void 0 : p.children) != null && f.length) ? (d(), h("div", xo, [
1969
1972
  V(e.$slots, "default", {}, void 0, !0)
1970
1973
  ])) : C("", !0)
1971
1974
  ], 64);
1972
1975
  }
1973
- const Do = /* @__PURE__ */ v(Bo, [["render", xo], ["__scopeId", "data-v-e6416c92"]]), Oo = y({
1976
+ const Do = /* @__PURE__ */ v(Bo, [["render", Wo], ["__scopeId", "data-v-741b9bbc"]]), Oo = y({
1974
1977
  name: "builder-section-component",
1975
1978
  props: ["attributes", "maxWidth"],
1976
1979
  data() {
1977
- return { filterAttrs: W };
1980
+ return { filterAttrs: N };
1978
1981
  }
1979
1982
  });
1980
1983
  function Uo(e, t, n, o, r, i) {
@@ -1991,7 +1994,7 @@ function Uo(e, t, n, o, r, i) {
1991
1994
  marginLeft: "auto",
1992
1995
  marginRight: "auto"
1993
1996
  }
1994
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
1997
+ }, e.filterAttrs(e.attributes, "v-on:", !1), F(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
1995
1998
  V(e.$slots, "default")
1996
1999
  ], 16);
1997
2000
  }
@@ -2010,14 +2013,14 @@ function Lo(e, t, n, o) {
2010
2013
  if (p && p.property === "urlPath" && p.value && typeof p.value == "string" && p.value !== "/" && p.value.endsWith("/") && (b = p.value.slice(0, -1)), !(c && m))
2011
2014
  return !0;
2012
2015
  if (Array.isArray(b))
2013
- return m === "isNot" ? b.every((A) => s(u, {
2016
+ return m === "isNot" ? b.every((P) => s(u, {
2014
2017
  property: c,
2015
2018
  operator: m,
2016
- value: A
2017
- })) : !!b.find((A) => s(u, {
2019
+ value: P
2020
+ })) : !!b.find((P) => s(u, {
2018
2021
  property: c,
2019
2022
  operator: m,
2020
- value: A
2023
+ value: P
2021
2024
  }));
2022
2025
  const g = u[c];
2023
2026
  if (Array.isArray(g))
@@ -2046,12 +2049,12 @@ function Lo(e, t, n, o) {
2046
2049
  }
2047
2050
  })();
2048
2051
  }
2049
- const a = {
2052
+ const l = {
2050
2053
  query: t,
2051
2054
  startDate: n,
2052
2055
  endDate: o
2053
- }, l = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
2054
- 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));
2056
+ }, a = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
2057
+ 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));
2055
2058
  }
2056
2059
  const Ho = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
2057
2060
  if (!navigator.cookieEnabled) {
@@ -2214,7 +2217,7 @@ const Ho = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
2214
2217
  visibilityStylesEl.innerHTML = newStyleStr;
2215
2218
  }
2216
2219
  }
2217
- }`, re = "default", Ko = "filterWithCustomTargeting", vt = "builderIoPersonalization", St = "updateVisibilityStylesScript", kt = ["react", "vue", "svelte", "qwik"], Ct = ["vue", "svelte", "qwik"];
2220
+ }`, oe = "default", Ko = "filterWithCustomTargeting", vt = "builderIoPersonalization", St = "updateVisibilityStylesScript", kt = ["react", "vue", "svelte", "qwik"], Ct = ["vue", "svelte", "qwik"];
2218
2221
  function qo(e, t) {
2219
2222
  return !(e && e.length > 0) || !t ? !1 : Ct.includes($) ? !0 : !R();
2220
2223
  }
@@ -2228,9 +2231,9 @@ function zo({
2228
2231
  const i = {
2229
2232
  blocks: r ?? [],
2230
2233
  path: "this.children",
2231
- index: re
2234
+ index: oe
2232
2235
  };
2233
- if (n && P()) {
2236
+ if (n && A()) {
2234
2237
  if (typeof t == "number" && t < ((e == null ? void 0 : e.length) ?? 0)) {
2235
2238
  const s = e == null ? void 0 : e[t];
2236
2239
  if (s)
@@ -2245,12 +2248,12 @@ function zo({
2245
2248
  if (R()) {
2246
2249
  const s = o == null ? void 0 : o[0];
2247
2250
  if (s && e) {
2248
- const a = e.indexOf(s);
2249
- if (a !== -1)
2251
+ const l = e.indexOf(s);
2252
+ if (l !== -1)
2250
2253
  return {
2251
2254
  blocks: s.blocks,
2252
- path: `variants.${a}.blocks`,
2253
- index: a
2255
+ path: `variants.${l}.blocks`,
2256
+ index: l
2254
2257
  };
2255
2258
  }
2256
2259
  }
@@ -2260,7 +2263,7 @@ const Go = () => `
2260
2263
  window.${Ko} = ${Mo}
2261
2264
  window.${vt} = ${Ho}
2262
2265
  window.${St} = ${jo}
2263
- `, Tt = $ === "react", Jo = (e, t, n) => `window.${vt}(${JSON.stringify(e)}, "${t}", ${Tt}${n ? `, "${n}"` : ""})`, Qo = (e, t, n) => `window.${St}(${JSON.stringify(e)}, "${t}", ${Tt}${n ? `, "${n}"` : ""})`, pe = {
2266
+ `, Tt = $ === "react", Jo = (e, t, n) => `window.${vt}(${JSON.stringify(e)}, "${t}", ${Tt}${n ? `, "${n}"` : ""})`, Qo = (e, t, n) => `window.${St}(${JSON.stringify(e)}, "${t}", ${Tt}${n ? `, "${n}"` : ""})`, ue = {
2264
2267
  "@type": "@builder.io/sdk:Element",
2265
2268
  layerName: "Accordion item title",
2266
2269
  responsiveStyles: {
@@ -2289,7 +2292,7 @@ const Go = () => `
2289
2292
  }
2290
2293
  }
2291
2294
  }]
2292
- }, me = {
2295
+ }, pe = {
2293
2296
  "@type": "@builder.io/sdk:Element",
2294
2297
  layerName: "Accordion item detail",
2295
2298
  responsiveStyles: {
@@ -2337,19 +2340,19 @@ const Go = () => `
2337
2340
  name: "title",
2338
2341
  type: "uiBlocks",
2339
2342
  hideFromUI: !0,
2340
- defaultValue: [pe]
2343
+ defaultValue: [ue]
2341
2344
  }, {
2342
2345
  name: "detail",
2343
2346
  type: "uiBlocks",
2344
2347
  hideFromUI: !0,
2345
- defaultValue: [me]
2348
+ defaultValue: [pe]
2346
2349
  }],
2347
2350
  defaultValue: [{
2348
- title: [pe],
2349
- detail: [me]
2351
+ title: [ue],
2352
+ detail: [pe]
2350
2353
  }, {
2351
- title: [pe],
2352
- detail: [me]
2354
+ title: [ue],
2355
+ detail: [pe]
2353
2356
  }],
2354
2357
  showIf: (e) => !e.get("useChildrenForItems")
2355
2358
  }, {
@@ -2444,11 +2447,11 @@ const Go = () => `
2444
2447
  continue;
2445
2448
  const s = r.getBoundingClientRect();
2446
2449
  if (s.left > i.left) {
2447
- const a = parseInt(
2450
+ const l = parseInt(
2448
2451
  r.getAttribute("data-index") || "",
2449
2452
  10
2450
2453
  );
2451
- isNaN(a) || (i = s, e = a);
2454
+ isNaN(l) || (i = s, e = l);
2452
2455
  } else
2453
2456
  break;
2454
2457
  }
@@ -2484,38 +2487,38 @@ function er(e, t, n, o, r, i) {
2484
2487
  const s = k("Blocks");
2485
2488
  return d(), h("div", {
2486
2489
  class: "builder-accordion",
2487
- style: j(e.accordionStyles)
2490
+ style: M(e.accordionStyles)
2488
2491
  }, [
2489
- (d(!0), h(I, null, L(e.items, (a, l) => (d(), h(I, { key: l }, [
2492
+ (d(!0), h(I, null, L(e.items, (l, a) => (d(), h(I, { key: a }, [
2490
2493
  z("div", {
2491
- class: ee(e.getAccordionTitleClassName(l)),
2492
- style: j({
2494
+ class: _(e.getAccordionTitleClassName(a)),
2495
+ style: M({
2493
2496
  ...e.accordionTitleStyles,
2494
2497
  ...e.grid && {
2495
2498
  width: e.gridRowWidth,
2496
- order: e.openGridItemOrder !== null ? e.convertOrderNumberToString(l) : e.convertOrderNumberToString(l + 1)
2499
+ order: e.openGridItemOrder !== null ? e.convertOrderNumberToString(a) : e.convertOrderNumberToString(a + 1)
2497
2500
  }
2498
2501
  }),
2499
- "data-index": l,
2500
- onClick: async (u) => e.onClick(l)
2502
+ "data-index": a,
2503
+ onClick: async (u) => e.onClick(a)
2501
2504
  }, [
2502
2505
  E(s, {
2503
- blocks: a.title,
2504
- path: `items.${l}.title`,
2506
+ blocks: l.title,
2507
+ path: `items.${a}.title`,
2505
2508
  parent: e.builderBlock.id,
2506
2509
  context: e.builderContext,
2507
2510
  registeredComponents: e.builderComponents,
2508
2511
  linkComponent: e.builderLinkComponent
2509
2512
  }, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
2510
2513
  ], 14, _o),
2511
- e.open.includes(l) ? (d(), h("div", {
2514
+ e.open.includes(a) ? (d(), h("div", {
2512
2515
  key: 0,
2513
- class: ee(e.getAccordionDetailClassName(l)),
2514
- style: j(e.accordionDetailStyles)
2516
+ class: _(e.getAccordionDetailClassName(a)),
2517
+ style: M(e.accordionDetailStyles)
2515
2518
  }, [
2516
2519
  E(s, {
2517
- blocks: a.detail,
2518
- path: `items.${l}.detail`,
2520
+ blocks: l.detail,
2521
+ path: `items.${a}.detail`,
2519
2522
  parent: e.builderBlock.id,
2520
2523
  context: e.builderContext,
2521
2524
  registeredComponents: e.builderComponents,
@@ -2740,7 +2743,7 @@ const tr = /* @__PURE__ */ v(Zo, [["render", er]]), nr = {
2740
2743
  });
2741
2744
  }
2742
2745
  const n = e.get("columns");
2743
- 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();
2746
+ 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();
2744
2747
  }
2745
2748
  }, {
2746
2749
  name: "space",
@@ -2794,17 +2797,17 @@ const tr = /* @__PURE__ */ v(Zo, [["render", er]]), nr = {
2794
2797
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
2795
2798
  onChange: (e) => {
2796
2799
  e.delete("srcset"), e.delete("noWebp");
2797
- function n(s, a = 6e4) {
2798
- return new Promise((l, u) => {
2800
+ function n(s, l = 6e4) {
2801
+ return new Promise((a, u) => {
2799
2802
  const p = document.createElement("img");
2800
2803
  let f = !1;
2801
2804
  p.onload = () => {
2802
- f = !0, l(p);
2805
+ f = !0, a(p);
2803
2806
  }, p.addEventListener("error", (c) => {
2804
2807
  console.warn("Image load failed", c.error), u(c.error);
2805
2808
  }), p.src = s, setTimeout(() => {
2806
2809
  f || u(new Error("Image load timed out"));
2807
- }, a);
2810
+ }, l);
2808
2811
  });
2809
2812
  }
2810
2813
  function o(s) {
@@ -2815,8 +2818,8 @@ const tr = /* @__PURE__ */ v(Zo, [["render", er]]), nr = {
2815
2818
  s.type.includes("svg") && e.set("noWebp", !0);
2816
2819
  }), r && (!i || i === 0.7041))
2817
2820
  return n(r).then((s) => {
2818
- const a = e.get("aspectRatio");
2819
- 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));
2821
+ const l = e.get("aspectRatio");
2822
+ 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));
2820
2823
  });
2821
2824
  }
2822
2825
  }, {
@@ -2922,7 +2925,7 @@ const tr = /* @__PURE__ */ v(Zo, [["render", er]]), nr = {
2922
2925
  defaultValue: []
2923
2926
  }]
2924
2927
  }]
2925
- }, Be = y({
2928
+ }, Pe = y({
2926
2929
  render() {
2927
2930
  return Ke("script", {
2928
2931
  innerHTML: this.scriptStr,
@@ -2936,8 +2939,8 @@ const tr = /* @__PURE__ */ v(Zo, [["render", er]]), nr = {
2936
2939
  name: "builder-personalization-container",
2937
2940
  components: {
2938
2941
  Blocks: q,
2939
- InlinedStyles: ue,
2940
- InlinedScript: Be
2942
+ InlinedStyles: de,
2943
+ InlinedScript: Pe
2941
2944
  },
2942
2945
  props: [
2943
2946
  "builderContext",
@@ -2950,7 +2953,7 @@ const tr = /* @__PURE__ */ v(Zo, [["render", er]]), nr = {
2950
2953
  data() {
2951
2954
  var e, t, n, o, r, i, s;
2952
2955
  return {
2953
- userAttributes: le.getUserAttributes(),
2956
+ userAttributes: ae.getUserAttributes(),
2954
2957
  scriptStr: Jo(
2955
2958
  this.variants,
2956
2959
  ((e = this.builderBlock) == null ? void 0 : e.id) || "none",
@@ -2964,18 +2967,18 @@ const tr = /* @__PURE__ */ v(Zo, [["render", er]]), nr = {
2964
2967
  unsubscribers: [],
2965
2968
  shouldRenderVariants: qo(
2966
2969
  this.variants,
2967
- J((s = this.builderContext) == null ? void 0 : s.canTrack)
2970
+ G((s = this.builderContext) == null ? void 0 : s.canTrack)
2968
2971
  ),
2969
2972
  shouldResetVariants: !1,
2970
2973
  TARGET: $,
2971
- DEFAULT_INDEX: re,
2974
+ DEFAULT_INDEX: oe,
2972
2975
  SDKS_REQUIRING_RESET_APPROACH: Ct
2973
2976
  };
2974
2977
  },
2975
2978
  mounted() {
2976
2979
  var t;
2977
2980
  this.shouldResetVariants = !0;
2978
- const e = le.subscribeOnUserAttributesChange(
2981
+ const e = ae.subscribeOnUserAttributesChange(
2979
2982
  (n) => {
2980
2983
  this.userAttributes = n;
2981
2984
  },
@@ -2983,12 +2986,12 @@ const tr = /* @__PURE__ */ v(Zo, [["render", er]]), nr = {
2983
2986
  fireImmediately: $ === "qwik"
2984
2987
  }
2985
2988
  );
2986
- if (!(P() || Te())) {
2989
+ if (!(A() || Ce())) {
2987
2990
  const n = this.filteredVariants[0];
2988
2991
  this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
2989
2992
  new CustomEvent("builder.variantLoaded", {
2990
2993
  detail: {
2991
- variant: n || re,
2994
+ variant: n || oe,
2992
2995
  content: (t = this.builderContext) == null ? void 0 : t.content
2993
2996
  },
2994
2997
  bubbles: !0
@@ -2999,7 +3002,7 @@ const tr = /* @__PURE__ */ v(Zo, [["render", er]]), nr = {
2999
3002
  i.isIntersecting && this.$refs.rootRef && this.$refs.rootRef.dispatchEvent(
3000
3003
  new CustomEvent("builder.variantDisplayed", {
3001
3004
  detail: {
3002
- variant: n || re,
3005
+ variant: n || oe,
3003
3006
  content: (s = this.builderContext) == null ? void 0 : s.content
3004
3007
  },
3005
3008
  bubbles: !0
@@ -3016,9 +3019,9 @@ const tr = /* @__PURE__ */ v(Zo, [["render", er]]), nr = {
3016
3019
  computed: {
3017
3020
  attrs() {
3018
3021
  return {
3019
- ...W(this.attributes, "v-on:", !1),
3020
- ...W(this.attributes, "v-on:", !0),
3021
- [G()]: `builder-personalization-container ${this.attributes[G()] || ""}`
3022
+ ...N(this.attributes, "v-on:", !1),
3023
+ ...N(this.attributes, "v-on:", !0),
3024
+ [j()]: `builder-personalization-container ${this.attributes[j()] || ""}`
3022
3025
  };
3023
3026
  },
3024
3027
  filteredVariants() {
@@ -3058,8 +3061,8 @@ const tr = /* @__PURE__ */ v(Zo, [["render", er]]), nr = {
3058
3061
  }
3059
3062
  });
3060
3063
  function cr(e, t, n, o, r, i) {
3061
- var u, p, f, c, m, b, g, A, F, B;
3062
- const s = k("Blocks"), a = k("InlinedStyles"), l = k("InlinedScript");
3064
+ var u, p, f, c, m, b, g, P, U, B;
3065
+ const s = k("Blocks"), l = k("InlinedStyles"), a = k("InlinedScript");
3063
3066
  return d(), h("div", w({ ref: "rootRef" }, e.attrs), [
3064
3067
  e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), S(s, {
3065
3068
  key: 0,
@@ -3075,39 +3078,39 @@ function cr(e, t, n, o, r, i) {
3075
3078
  }, null, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])) : C("", !0),
3076
3079
  !e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), h(I, { key: 1 }, [
3077
3080
  e.shouldRenderVariants ? (d(), h(I, { key: 0 }, [
3078
- E(a, {
3081
+ E(l, {
3079
3082
  nonce: ((c = e.builderContext) == null ? void 0 : c.nonce) || "",
3080
3083
  styles: e.hideVariantsStyleString,
3081
3084
  id: `variants-styles-${(m = e.builderBlock) == null ? void 0 : m.id}`
3082
3085
  }, null, 8, ["nonce", "styles", "id"]),
3083
- E(l, {
3086
+ E(a, {
3084
3087
  nonce: ((b = e.builderContext) == null ? void 0 : b.nonce) || "",
3085
3088
  scriptStr: e.updateVisibilityStylesScript,
3086
3089
  id: `variants-visibility-script-${(g = e.builderBlock) == null ? void 0 : g.id}`
3087
3090
  }, null, 8, ["nonce", "scriptStr", "id"]),
3088
- (d(!0), h(I, null, L(e.variants, (T, x) => {
3089
- var H, Q, Y, D;
3091
+ (d(!0), h(I, null, L(e.variants, (T, W) => {
3092
+ var J, Q, D, H;
3090
3093
  return d(), S(s, {
3091
- key: `${(H = e.builderBlock) == null ? void 0 : H.id}-${x}`,
3094
+ key: `${(J = e.builderBlock) == null ? void 0 : J.id}-${W}`,
3092
3095
  BlocksWrapperProps: {
3093
3096
  ...(Q = e.builderContext) == null ? void 0 : Q.BlocksWrapperProps,
3094
3097
  "aria-hidden": !0,
3095
3098
  hidden: !0,
3096
- "data-variant-id": `${(Y = e.builderBlock) == null ? void 0 : Y.id}-${x}`
3099
+ "data-variant-id": `${(D = e.builderBlock) == null ? void 0 : D.id}-${W}`
3097
3100
  },
3098
3101
  blocks: T.blocks,
3099
- parent: (D = e.builderBlock) == null ? void 0 : D.id,
3100
- path: `component.options.variants.${x}.blocks`,
3102
+ parent: (H = e.builderBlock) == null ? void 0 : H.id,
3103
+ path: `component.options.variants.${W}.blocks`,
3101
3104
  context: e.builderContext,
3102
3105
  registeredComponents: e.builderComponents
3103
3106
  }, {
3104
- default: U(() => {
3105
- var M, Ve;
3107
+ default: O(() => {
3108
+ var Be, Ve;
3106
3109
  return [
3107
- E(l, {
3108
- nonce: ((M = e.builderContext) == null ? void 0 : M.nonce) || "",
3110
+ E(a, {
3111
+ nonce: ((Be = e.builderContext) == null ? void 0 : Be.nonce) || "",
3109
3112
  scriptStr: e.scriptStr,
3110
- id: `variants-script-${(Ve = e.builderBlock) == null ? void 0 : Ve.id}-${x}`
3113
+ id: `variants-script-${(Ve = e.builderBlock) == null ? void 0 : Ve.id}-${W}`
3111
3114
  }, null, 8, ["nonce", "scriptStr", "id"])
3112
3115
  ];
3113
3116
  }),
@@ -3117,23 +3120,23 @@ function cr(e, t, n, o, r, i) {
3117
3120
  ], 64)) : C("", !0),
3118
3121
  E(s, {
3119
3122
  blocks: e.blocksToRender.blocks,
3120
- parent: (A = e.builderBlock) == null ? void 0 : A.id,
3123
+ parent: (P = e.builderBlock) == null ? void 0 : P.id,
3121
3124
  path: e.blocksToRender.path,
3122
3125
  context: e.builderContext,
3123
3126
  registeredComponents: e.builderComponents,
3124
3127
  BlocksWrapperProps: {
3125
- ...(F = e.builderContext) == null ? void 0 : F.BlocksWrapperProps,
3128
+ ...(U = e.builderContext) == null ? void 0 : U.BlocksWrapperProps,
3126
3129
  "data-variant-id": `${(B = e.builderBlock) == null ? void 0 : B.id}-${e.blocksToRender.index}`
3127
3130
  }
3128
3131
  }, {
3129
- default: U(() => {
3130
- var T, x;
3132
+ default: O(() => {
3133
+ var T, W;
3131
3134
  return [
3132
- e.shouldRenderVariants ? (d(), S(l, {
3135
+ e.shouldRenderVariants ? (d(), S(a, {
3133
3136
  key: 0,
3134
3137
  nonce: ((T = e.builderContext) == null ? void 0 : T.nonce) || "",
3135
3138
  scriptStr: e.scriptStr,
3136
- id: `variants-script-${(x = e.builderBlock) == null ? void 0 : x.id}-${e.DEFAULT_INDEX}`
3139
+ id: `variants-script-${(W = e.builderBlock) == null ? void 0 : W.id}-${e.DEFAULT_INDEX}`
3137
3140
  }, null, 8, ["nonce", "scriptStr", "id"])) : C("", !0)
3138
3141
  ];
3139
3142
  }),
@@ -3204,18 +3207,18 @@ const dr = /* @__PURE__ */ v(lr, [["render", cr]]), ur = {
3204
3207
  props: ["builderContext", "name", "builderComponents"]
3205
3208
  });
3206
3209
  function hr(e, t, n, o, r, i) {
3207
- var a, l, u;
3210
+ var l, a, u;
3208
3211
  const s = k("Blocks");
3209
3212
  return d(), h("div", w(
3210
3213
  { style: {
3211
3214
  pointerEvents: "auto"
3212
3215
  } },
3213
- !((a = e.builderContext.context) != null && a.symbolId) && {
3216
+ !((l = e.builderContext.context) != null && l.symbolId) && {
3214
3217
  "builder-slot": e.name
3215
3218
  }
3216
3219
  ), [
3217
3220
  E(s, {
3218
- parent: (l = e.builderContext.context) == null ? void 0 : l.symbolId,
3221
+ parent: (a = e.builderContext.context) == null ? void 0 : a.symbolId,
3219
3222
  path: `symbol.data.${e.name}`,
3220
3223
  context: e.builderContext,
3221
3224
  registeredComponents: e.builderComponents,
@@ -3262,7 +3265,7 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
3262
3265
  builderComponents: !0,
3263
3266
  builderLinkComponent: !0
3264
3267
  }
3265
- }, he = {
3268
+ }, me = {
3266
3269
  "@type": "@builder.io/sdk:Element",
3267
3270
  responsiveStyles: {
3268
3271
  large: {
@@ -3284,7 +3287,7 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
3284
3287
  text: "New tab"
3285
3288
  }
3286
3289
  }
3287
- }, fe = {
3290
+ }, he = {
3288
3291
  "@type": "@builder.io/sdk:Element",
3289
3292
  responsiveStyles: {
3290
3293
  large: {
@@ -3310,16 +3313,16 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
3310
3313
  name: "label",
3311
3314
  type: "uiBlocks",
3312
3315
  hideFromUI: !0,
3313
- defaultValue: [he]
3316
+ defaultValue: [me]
3314
3317
  }, {
3315
3318
  name: "content",
3316
3319
  type: "uiBlocks",
3317
3320
  hideFromUI: !0,
3318
- defaultValue: [fe]
3321
+ defaultValue: [he]
3319
3322
  }],
3320
3323
  defaultValue: [{
3321
3324
  label: [{
3322
- ...he,
3325
+ ...me,
3323
3326
  component: {
3324
3327
  name: "Text",
3325
3328
  options: {
@@ -3328,7 +3331,7 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
3328
3331
  }
3329
3332
  }],
3330
3333
  content: [{
3331
- ...fe,
3334
+ ...he,
3332
3335
  component: {
3333
3336
  name: "Text",
3334
3337
  options: {
@@ -3338,7 +3341,7 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
3338
3341
  }]
3339
3342
  }, {
3340
3343
  label: [{
3341
- ...he,
3344
+ ...me,
3342
3345
  component: {
3343
3346
  name: "Text",
3344
3347
  options: {
@@ -3347,7 +3350,7 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
3347
3350
  }
3348
3351
  }],
3349
3352
  content: [{
3350
- ...fe,
3353
+ ...he,
3351
3354
  component: {
3352
3355
  name: "Text",
3353
3356
  options: {
@@ -3409,9 +3412,9 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
3409
3412
  props: [
3410
3413
  "defaultActiveTab",
3411
3414
  "tabs",
3415
+ "activeTabStyle",
3412
3416
  "collapsible",
3413
3417
  "tabHeaderLayout",
3414
- "activeTabStyle",
3415
3418
  "builderBlock",
3416
3419
  "builderContext",
3417
3420
  "builderComponents",
@@ -3424,6 +3427,9 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
3424
3427
  activeTabContent(e) {
3425
3428
  return this.tabs && this.tabs[e].content;
3426
3429
  },
3430
+ getTabStyle(e) {
3431
+ return e === this.activeTab ? this.activeTabStyle : {};
3432
+ },
3427
3433
  onClick(e) {
3428
3434
  e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
3429
3435
  }
@@ -3434,25 +3440,23 @@ function kr(e, t, n, o, r, i) {
3434
3440
  return d(), h("div", null, [
3435
3441
  z("div", {
3436
3442
  class: "builder-tabs-wrap",
3437
- style: j({
3443
+ style: M({
3438
3444
  display: "flex",
3439
3445
  flexDirection: "row",
3440
3446
  justifyContent: e.tabHeaderLayout || "flex-start",
3441
3447
  overflow: "auto"
3442
3448
  })
3443
3449
  }, [
3444
- (d(!0), h(I, null, L(e.tabs, (a, l) => (d(), h("span", {
3445
- key: l,
3446
- class: ee(`builder-tab-wrap ${e.activeTab === l ? "builder-tab-active" : ""}`),
3447
- style: j({
3448
- ...e.activeTab === l ? e.activeTabStyle : {}
3449
- }),
3450
- onClick: async (u) => e.onClick(l)
3450
+ (d(!0), h(I, null, L(e.tabs, (l, a) => (d(), h("span", {
3451
+ key: a,
3452
+ class: _(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
3453
+ style: M(e.getTabStyle(a)),
3454
+ onClick: async (u) => e.onClick(a)
3451
3455
  }, [
3452
3456
  E(s, {
3453
3457
  parent: e.builderBlock.id,
3454
- path: `tabs.${l}.label`,
3455
- blocks: a.label,
3458
+ path: `tabs.${a}.label`,
3459
+ blocks: l.label,
3456
3460
  context: e.builderContext,
3457
3461
  registeredComponents: e.builderComponents,
3458
3462
  linkComponent: e.builderLinkComponent
@@ -3475,7 +3479,6 @@ const Cr = /* @__PURE__ */ v(yr, [["render", kr]]), Tr = {
3475
3479
  shouldReceiveBuilderProps: {},
3476
3480
  name: "Text",
3477
3481
  static: !0,
3478
- isRSC: !0,
3479
3482
  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",
3480
3483
  inputs: [{
3481
3484
  name: "text",
@@ -3526,7 +3529,7 @@ const Rr = /* @__PURE__ */ v(Ir, [["render", $r]]), Er = {
3526
3529
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
3527
3530
  advanced: !0
3528
3531
  }]
3529
- }, Pr = y({
3532
+ }, Ar = y({
3530
3533
  name: "builder-custom-code",
3531
3534
  props: ["code", "replaceNodes"],
3532
3535
  data() {
@@ -3538,7 +3541,7 @@ const Rr = /* @__PURE__ */ v(Ir, [["render", $r]]), Er = {
3538
3541
  watch: {
3539
3542
  onUpdateHook0: {
3540
3543
  handler() {
3541
- P() && setTimeout(() => {
3544
+ A() && setTimeout(() => {
3542
3545
  this.runScripts();
3543
3546
  }, 0);
3544
3547
  },
@@ -3576,7 +3579,7 @@ const Rr = /* @__PURE__ */ v(Ir, [["render", $r]]), Er = {
3576
3579
  try {
3577
3580
  this.scriptsRun.push(o.innerText), new Function(o.innerText)();
3578
3581
  } catch (r) {
3579
- N.warn(
3582
+ x.warn(
3580
3583
  "[BUILDER.IO] `CustomCode`: Error running script:",
3581
3584
  r
3582
3585
  );
@@ -3585,15 +3588,15 @@ const Rr = /* @__PURE__ */ v(Ir, [["render", $r]]), Er = {
3585
3588
  }
3586
3589
  }
3587
3590
  }
3588
- }), Ar = ["innerHTML"];
3591
+ }), Pr = ["innerHTML"];
3589
3592
  function Br(e, t, n, o, r, i) {
3590
3593
  return d(), h("div", {
3591
3594
  ref: "elementRef",
3592
- class: ee("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
3595
+ class: _("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
3593
3596
  innerHTML: e.code
3594
- }, null, 10, Ar);
3597
+ }, null, 10, Pr);
3595
3598
  }
3596
- const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
3599
+ const Vr = /* @__PURE__ */ v(Ar, [["render", Br]]), Nr = {
3597
3600
  name: "Embed",
3598
3601
  static: !0,
3599
3602
  inputs: [{
@@ -3608,7 +3611,7 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
3608
3611
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
3609
3612
  hideFromUI: !0
3610
3613
  }]
3611
- }, Wr = ["text/javascript", "application/javascript", "application/ecmascript"], xr = (e) => Wr.includes(e.type), Dr = y({
3614
+ }, xr = ["text/javascript", "application/javascript", "application/ecmascript"], Wr = (e) => xr.includes(e.type), Dr = y({
3612
3615
  name: "builder-embed",
3613
3616
  props: ["content"],
3614
3617
  data() {
@@ -3641,11 +3644,11 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
3641
3644
  this.scriptsInserted.push(n.src);
3642
3645
  const o = document.createElement("script");
3643
3646
  o.async = !0, o.src = n.src, document.head.appendChild(o);
3644
- } else if (xr(n) && !this.scriptsRun.includes(n.innerText))
3647
+ } else if (Wr(n) && !this.scriptsRun.includes(n.innerText))
3645
3648
  try {
3646
3649
  this.scriptsRun.push(n.innerText), new Function(n.innerText)();
3647
3650
  } catch (o) {
3648
- N.warn("[BUILDER.IO] `Embed`: Error running script:", o);
3651
+ x.warn("[BUILDER.IO] `Embed`: Error running script:", o);
3649
3652
  }
3650
3653
  }
3651
3654
  }
@@ -3926,7 +3929,7 @@ const Fr = /* @__PURE__ */ v(Dr, [["render", Ur]]), Lr = {
3926
3929
  formState: "unsubmitted",
3927
3930
  responseData: null,
3928
3931
  formErrorMessage: "",
3929
- filterAttrs: W
3932
+ filterAttrs: N
3930
3933
  };
3931
3934
  },
3932
3935
  methods: {
@@ -3939,7 +3942,10 @@ const Fr = /* @__PURE__ */ v(Dr, [["render", Ur]]), Lr = {
3939
3942
  this.builderContext.rootSetState ? (o = (n = this.builderContext).rootSetState) == null || o.call(n, t) : this.builderContext.rootState = t;
3940
3943
  },
3941
3944
  submissionState() {
3942
- return P() && this.previewState || this.formState;
3945
+ return A() && this.previewState || this.formState;
3946
+ },
3947
+ errorResponse(e) {
3948
+ return JSON.stringify(e, null, 2);
3943
3949
  },
3944
3950
  onSubmit(e) {
3945
3951
  var n;
@@ -3954,7 +3960,7 @@ const Fr = /* @__PURE__ */ v(Dr, [["render", Ur]]), Lr = {
3954
3960
  e.preventDefault();
3955
3961
  const o = e.currentTarget || e.target, r = this.customHeaders || {};
3956
3962
  let i;
3957
- const s = new FormData(o), a = Array.from(o.querySelectorAll("input,select,textarea")).filter((c) => !!c.name).filter(
3963
+ const s = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((c) => !!c.name).filter(
3958
3964
  (c) => !!c.name && (c.type !== "radio" || c.checked)
3959
3965
  ).map((c) => {
3960
3966
  let m;
@@ -3980,18 +3986,18 @@ const Fr = /* @__PURE__ */ v(Dr, [["render", Ur]]), Lr = {
3980
3986
  value: m
3981
3987
  };
3982
3988
  });
3983
- let l = this.contentType;
3984
- if (this.sendSubmissionsTo === "email" && (l = "multipart/form-data"), Array.from(a).forEach(({ value: c }) => {
3985
- (c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (l = "multipart/form-data");
3986
- }), l !== "application/json")
3989
+ let a = this.contentType;
3990
+ if (this.sendSubmissionsTo === "email" && (a = "multipart/form-data"), Array.from(l).forEach(({ value: c }) => {
3991
+ (c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (a = "multipart/form-data");
3992
+ }), a !== "application/json")
3987
3993
  i = s;
3988
3994
  else {
3989
3995
  const c = {};
3990
- Array.from(a).forEach(({ value: m, key: b }) => {
3996
+ Array.from(l).forEach(({ value: m, key: b }) => {
3991
3997
  qe(c, b, m);
3992
3998
  }), i = JSON.stringify(c);
3993
3999
  }
3994
- l && l !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = l));
4000
+ a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
3995
4001
  const u = new CustomEvent("presubmit", {
3996
4002
  detail: {
3997
4003
  body: i
@@ -4009,25 +4015,25 @@ const Fr = /* @__PURE__ */ v(Dr, [["render", Ur]]), Lr = {
4009
4015
  const p = `${Mr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
4010
4016
  this.sendSubmissionsToEmail || ""
4011
4017
  )}&name=${encodeURIComponent(this.name || "")}`, f = this.sendSubmissionsTo === "email" ? p : this.action;
4012
- we(f), fetch(f, {
4018
+ Ie(f), fetch(f, {
4013
4019
  body: i,
4014
4020
  headers: r,
4015
4021
  method: this.method || "post"
4016
4022
  }).then(
4017
4023
  async (c) => {
4018
- var g, A;
4024
+ var g, P;
4019
4025
  let m;
4020
4026
  const b = c.headers.get("content-type");
4021
4027
  if (b && b.indexOf("application/json") !== -1 ? m = await c.json() : m = await c.text(), !c.ok) {
4022
- const F = new CustomEvent("submit:error", {
4028
+ const U = new CustomEvent("submit:error", {
4023
4029
  detail: {
4024
4030
  error: m,
4025
4031
  status: c.status
4026
4032
  }
4027
4033
  });
4028
- if ((g = this.$refs.formRef) != null && g.nativeElement && ((A = this.$refs.formRef) == null || A.nativeElement.dispatchEvent(
4029
- F
4030
- ), F.defaultPrevented))
4034
+ if ((g = this.$refs.formRef) != null && g.nativeElement && ((P = this.$refs.formRef) == null || P.nativeElement.dispatchEvent(
4035
+ U
4036
+ ), U.defaultPrevented))
4031
4037
  return;
4032
4038
  this.responseData = m, this.formState = "error";
4033
4039
  let B = this.errorMessagePath ? Je(m, this.errorMessagePath) : m.message || m.error || m;
@@ -4037,14 +4043,14 @@ const Fr = /* @__PURE__ */ v(Dr, [["render", Ur]]), Lr = {
4037
4043
  return;
4038
4044
  }
4039
4045
  if (this.responseData = m, this.formState = c.ok ? "success" : "error", c.ok) {
4040
- const F = new CustomEvent("submit:success", {
4046
+ const U = new CustomEvent("submit:success", {
4041
4047
  detail: {
4042
4048
  res: c,
4043
4049
  body: m
4044
4050
  }
4045
4051
  });
4046
4052
  if (this.$refs.formRef) {
4047
- if (this.$refs.formRef.dispatchEvent(F), F.defaultPrevented)
4053
+ if (this.$refs.formRef.dispatchEvent(U), U.defaultPrevented)
4048
4054
  return;
4049
4055
  this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
4050
4056
  }
@@ -4074,7 +4080,7 @@ const Fr = /* @__PURE__ */ v(Dr, [["render", Ur]]), Lr = {
4074
4080
  }
4075
4081
  }), Kr = ["validate", "action", "method", "name"], qr = {
4076
4082
  key: 2,
4077
- class: "builder-form-error-text pre-1hjwvu3r5mj"
4083
+ class: "builder-form-error-text pre-2oa2wtipkzk"
4078
4084
  };
4079
4085
  function zr(e, t, n, o, r, i) {
4080
4086
  const s = k("Blocks");
@@ -4084,8 +4090,8 @@ function zr(e, t, n, o, r, i) {
4084
4090
  action: !e.sendWithJs && e.action,
4085
4091
  method: e.method,
4086
4092
  name: e.name,
4087
- onSubmit: t[0] || (t[0] = async (a) => e.onSubmit(a))
4088
- }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4093
+ onSubmit: t[0] || (t[0] = async (l) => e.onSubmit(l))
4094
+ }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, F(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4089
4095
  V(e.$slots, "default", {}, void 0, !0),
4090
4096
  e.submissionState() === "error" ? (d(), S(s, {
4091
4097
  key: 0,
@@ -4099,7 +4105,7 @@ function zr(e, t, n, o, r, i) {
4099
4105
  blocks: e.sendingMessage,
4100
4106
  context: e.builderContext
4101
4107
  }, null, 8, ["blocks", "context"])) : C("", !0),
4102
- e.submissionState() === "error" && e.responseData ? (d(), h("pre", qr, ce(JSON.stringify(e.responseData, null, 2)), 1)) : C("", !0),
4108
+ e.submissionState() === "error" && e.responseData ? (d(), h("pre", qr, le(e.errorResponse(e.responseData)), 1)) : C("", !0),
4103
4109
  e.submissionState() === "success" ? (d(), S(s, {
4104
4110
  key: 3,
4105
4111
  path: "successMessage",
@@ -4108,7 +4114,7 @@ function zr(e, t, n, o, r, i) {
4108
4114
  }, null, 8, ["blocks", "context"])) : C("", !0)
4109
4115
  ], 16, Kr);
4110
4116
  }
4111
- const Gr = /* @__PURE__ */ v(jr, [["render", zr], ["__scopeId", "data-v-158ccfce"]]), Jr = {
4117
+ const Gr = /* @__PURE__ */ v(jr, [["render", zr], ["__scopeId", "data-v-77c7888c"]]), Jr = {
4112
4118
  name: "Form:Input",
4113
4119
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
4114
4120
  inputs: [
@@ -4171,7 +4177,7 @@ const Gr = /* @__PURE__ */ v(jr, [["render", zr], ["__scopeId", "data-v-158ccfce
4171
4177
  "required"
4172
4178
  ],
4173
4179
  data() {
4174
- return { isEditing: P, filterAttrs: W };
4180
+ return { isEditing: A, filterAttrs: N };
4175
4181
  }
4176
4182
  }), Yr = ["placeholder", "type", "name", "value", "defaultValue", "required"];
4177
4183
  function Xr(e, t, n, o, r, i) {
@@ -4183,7 +4189,7 @@ function Xr(e, t, n, o, r, i) {
4183
4189
  value: e.value,
4184
4190
  defaultValue: e.defaultValue,
4185
4191
  required: e.required
4186
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Yr);
4192
+ }, e.filterAttrs(e.attributes, "v-on:", !1), F(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Yr);
4187
4193
  }
4188
4194
  const Zr = /* @__PURE__ */ v(Qr, [["render", Xr]]), _r = {
4189
4195
  name: "Form:Select",
@@ -4231,7 +4237,7 @@ const Zr = /* @__PURE__ */ v(Qr, [["render", Xr]]), _r = {
4231
4237
  name: "builder-select-component",
4232
4238
  props: ["attributes", "value", "defaultValue", "name", "required", "options"],
4233
4239
  data() {
4234
- return { isEditing: P, filterAttrs: W };
4240
+ return { isEditing: A, filterAttrs: N };
4235
4241
  }
4236
4242
  }), ti = ["value", "defaultValue", "name", "required"], ni = ["value"];
4237
4243
  function oi(e, t, n, o, r, i) {
@@ -4241,11 +4247,11 @@ function oi(e, t, n, o, r, i) {
4241
4247
  defaultValue: e.defaultValue,
4242
4248
  name: e.name,
4243
4249
  required: e.required
4244
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4245
- (d(!0), h(I, null, L(e.options, (s, a) => (d(), h("option", {
4246
- key: `${s.name}-${a}`,
4250
+ }, e.filterAttrs(e.attributes, "v-on:", !1), F(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4251
+ (d(!0), h(I, null, L(e.options, (s, l) => (d(), h("option", {
4252
+ key: `${s.name}-${l}`,
4247
4253
  value: s.value
4248
- }, ce(s.name || s.value), 9, ni))), 128))
4254
+ }, le(s.name || s.value), 9, ni))), 128))
4249
4255
  ], 16, ti);
4250
4256
  }
4251
4257
  const ri = /* @__PURE__ */ v(ei, [["render", oi]]), ii = {
@@ -4277,11 +4283,11 @@ const ri = /* @__PURE__ */ v(ei, [["render", oi]]), ii = {
4277
4283
  name: "builder-submit-button",
4278
4284
  props: ["attributes", "text"],
4279
4285
  data() {
4280
- return { filterAttrs: W };
4286
+ return { filterAttrs: N };
4281
4287
  }
4282
4288
  });
4283
4289
  function ai(e, t, n, o, r, i) {
4284
- return d(), h("button", w({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ce(e.text), 17);
4290
+ return d(), h("button", w({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), F(e.filterAttrs(e.attributes, "v-on:", !0), !0)), le(e.text), 17);
4285
4291
  }
4286
4292
  const li = /* @__PURE__ */ v(si, [["render", ai]]), ci = {
4287
4293
  name: "Form:TextArea",
@@ -4330,7 +4336,7 @@ const li = /* @__PURE__ */ v(si, [["render", ai]]), ci = {
4330
4336
  "required"
4331
4337
  ],
4332
4338
  data() {
4333
- return { filterAttrs: W };
4339
+ return { filterAttrs: N };
4334
4340
  }
4335
4341
  }), ui = ["placeholder", "name", "value", "defaultValue", "required"];
4336
4342
  function pi(e, t, n, o, r, i) {
@@ -4340,10 +4346,9 @@ function pi(e, t, n, o, r, i) {
4340
4346
  value: e.value,
4341
4347
  defaultValue: e.defaultValue,
4342
4348
  required: e.required
4343
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, ui);
4349
+ }, e.filterAttrs(e.attributes, "v-on:", !1), F(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, ui);
4344
4350
  }
4345
4351
  const mi = /* @__PURE__ */ v(di, [["render", pi]]), hi = {
4346
- // friendlyName?
4347
4352
  name: "Raw:Img",
4348
4353
  hideFromInsertMenu: !0,
4349
4354
  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",
@@ -4353,42 +4358,86 @@ const mi = /* @__PURE__ */ v(di, [["render", pi]]), hi = {
4353
4358
  type: "file",
4354
4359
  allowedFileTypes: Ae,
4355
4360
  required: !0
4361
+ }, {
4362
+ name: "backgroundSize",
4363
+ type: "text",
4364
+ defaultValue: "cover",
4365
+ enum: [{
4366
+ label: "contain",
4367
+ value: "contain",
4368
+ helperText: "The image should never get cropped"
4369
+ }, {
4370
+ label: "cover",
4371
+ value: "cover",
4372
+ helperText: "The image should fill it's box, cropping when needed"
4373
+ }]
4374
+ }, {
4375
+ name: "backgroundPosition",
4376
+ type: "text",
4377
+ defaultValue: "center",
4378
+ enum: ["center", "top", "left", "right", "bottom", "top left", "top right", "bottom left", "bottom right"]
4379
+ }, {
4380
+ name: "altText",
4381
+ type: "string",
4382
+ helperText: "Text to display when the user has images off"
4383
+ }, {
4384
+ name: "title",
4385
+ type: "string",
4386
+ helperText: "Text to display when hovering over the asset"
4387
+ }, {
4388
+ name: "aspectRatio",
4389
+ type: "number",
4390
+ 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",
4391
+ advanced: !0,
4392
+ defaultValue: 0.7041
4356
4393
  }],
4357
- noWrap: !0,
4358
- static: !0
4394
+ noWrap: !0
4359
4395
  }, fi = y({
4360
4396
  name: "builder-img-component",
4361
4397
  props: [
4362
4398
  "imgSrc",
4363
4399
  "image",
4400
+ "attributes",
4401
+ "altText",
4402
+ "title",
4364
4403
  "backgroundSize",
4365
4404
  "backgroundPosition",
4366
- "altText",
4367
- "attributes"
4405
+ "aspectRatio"
4368
4406
  ],
4369
4407
  data() {
4370
- return { isEditing: P, filterAttrs: W };
4408
+ return { isEditing: A };
4371
4409
  },
4372
4410
  computed: {
4373
4411
  srcSetToUse() {
4374
4412
  const e = this.imgSrc || this.image;
4375
4413
  if (!(!e || typeof e != "string") && e.match(/builder\.io/))
4376
- return oe(e);
4414
+ return ne(e);
4415
+ },
4416
+ imgAttrs() {
4417
+ const e = {
4418
+ ...N(this.attributes, "v-on:", !1),
4419
+ ...N(this.attributes, "v-on:", !0),
4420
+ [j()]: `builder-raw-img ${this.attributes[j()] || ""}`
4421
+ };
4422
+ return delete e.style, e;
4377
4423
  }
4378
4424
  }
4379
- }), bi = ["alt", "src", "srcSet"];
4425
+ }), bi = ["alt", "title", "src"];
4380
4426
  function gi(e, t, n, o, r, i) {
4427
+ var s;
4381
4428
  return d(), h("img", w({
4382
4429
  loading: "lazy",
4383
- style: {
4384
- objectFit: e.backgroundSize || "cover",
4385
- objectPosition: e.backgroundPosition || "center"
4386
- },
4387
4430
  key: e.isEditing() && e.imgSrc || "default-key",
4388
4431
  alt: e.altText,
4432
+ title: e.title,
4389
4433
  src: e.imgSrc || e.image,
4390
- srcSet: e.srcSetToUse
4391
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, bi);
4434
+ style: {
4435
+ objectFit: e.backgroundSize || "cover",
4436
+ objectPosition: e.backgroundPosition || "center",
4437
+ aspectRatio: e.aspectRatio || void 0,
4438
+ ...((s = e.attributes) == null ? void 0 : s.style) || {}
4439
+ }
4440
+ }, e.imgAttrs), null, 16, bi);
4392
4441
  }
4393
4442
  const yi = /* @__PURE__ */ v(fi, [["render", gi]]), vi = {
4394
4443
  name: "Video",
@@ -4571,7 +4620,7 @@ const yi = /* @__PURE__ */ v(fi, [["render", gi]]), vi = {
4571
4620
  }
4572
4621
  };
4573
4622
  function wi(e, t, n, o, r, i) {
4574
- var s, a, l, u, p, f, c;
4623
+ var s, l, a, u, p, f, c;
4575
4624
  return d(), h("div", ki, [
4576
4625
  z("video", w({
4577
4626
  class: "builder-video",
@@ -4601,9 +4650,9 @@ function wi(e, t, n, o, r, i) {
4601
4650
  }
4602
4651
  ), null, 16)
4603
4652
  ], 16, Ci),
4604
- e.aspectRatio && !(e.fitContent && ((l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length)) ? (d(), h("div", {
4653
+ e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (d(), h("div", {
4605
4654
  key: 0,
4606
- style: j({
4655
+ style: M({
4607
4656
  width: "100%",
4608
4657
  paddingTop: e.aspectRatio * 100 + "%",
4609
4658
  pointerEvents: "none",
@@ -4737,7 +4786,7 @@ const $i = /* @__PURE__ */ v(Si, [["render", wi]]), Ri = () => [{
4737
4786
  }).join('');
4738
4787
  styleEl.innerHTML = newStyleStr;
4739
4788
  }
4740
- }`, Pi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4789
+ }`, Ai = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4741
4790
  if (!navigator.cookieEnabled) {
4742
4791
  return;
4743
4792
  }
@@ -4771,20 +4820,20 @@ const $i = /* @__PURE__ */ v(Si, [["render", wi]]), Ri = () => [{
4771
4820
  thisScriptEl?.remove();
4772
4821
  }
4773
4822
  return;
4774
- }`, It = "builderIoAbTest", wt = "builderIoRenderContent", ie = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4823
+ }`, It = "builderIoAbTest", wt = "builderIoRenderContent", re = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4775
4824
  ...t,
4776
4825
  testVariationId: t.id,
4777
4826
  id: e == null ? void 0 : e.id
4778
- })), Ai = ({
4827
+ })), Pi = ({
4779
4828
  canTrack: e,
4780
4829
  content: t
4781
- }) => !(!(ie(t).length > 0) || !e), Bi = (e) => e === "react" || e === "reactNative", Vi = $ === "angular", $t = Bi($), Ni = () => `
4830
+ }) => !(!(re(t).length > 0) || !e), Bi = (e) => e === "react" || e === "reactNative", Vi = $ === "angular", $t = Bi($), Ni = () => `
4782
4831
  window.${It} = ${Ei}
4783
- window.${wt} = ${Pi}
4784
- `, Wi = (e, t) => `
4832
+ window.${wt} = ${Ai}
4833
+ `, xi = (e, t) => `
4785
4834
  window.${It}(
4786
4835
  "${t}",${JSON.stringify(e)}, ${$t}, ${Vi}
4787
- )`, xi = ({
4836
+ )`, Wi = ({
4788
4837
  contentId: e,
4789
4838
  variationId: t
4790
4839
  }) => `window.${wt}(
@@ -4832,7 +4881,7 @@ const Di = (e, t, n = !0) => {
4832
4881
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
4833
4882
  }
4834
4883
  };
4835
- }, Fi = ["svelte", "qwik", "vue"], Li = () => Fi.includes($) && (P() || Te()), Hi = (e) => {
4884
+ }, Fi = ["svelte", "qwik", "vue"], Li = () => Fi.includes($) && (A() || Ce()), Hi = (e) => {
4836
4885
  var i;
4837
4886
  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);
4838
4887
  let r = "";
@@ -4847,11 +4896,11 @@ font-weight: 400;
4847
4896
  for (const s in e.files) {
4848
4897
  if (!(String(Number(s)) === s))
4849
4898
  continue;
4850
- const l = e.files[s];
4851
- l && l !== o && (r += `
4899
+ const a = e.files[s];
4900
+ a && a !== o && (r += `
4852
4901
  @font-face {
4853
4902
  font-family: "${t}";
4854
- src: url('${l}') format('woff2');
4903
+ src: url('${a}') format('woff2');
4855
4904
  font-display: fallback;
4856
4905
  font-weight: ${s};
4857
4906
  }
@@ -4885,7 +4934,7 @@ font-weight: ${s};
4885
4934
  }
4886
4935
  `, qi = (e) => e ? "" : Ki, zi = (e) => `variant-${e}`, Gi = y({
4887
4936
  name: "enable-editor",
4888
- components: { DynamicDiv: ne },
4937
+ components: { DynamicDiv: te },
4889
4938
  props: [
4890
4939
  "isNestedRender",
4891
4940
  "builderContextSignal",
@@ -4906,11 +4955,14 @@ font-weight: ${s};
4906
4955
  data() {
4907
4956
  return {
4908
4957
  hasExecuted: !1,
4958
+ contextValue: this.builderContextSignal,
4959
+ prevData: null,
4960
+ prevLocale: "",
4909
4961
  ContentWrapper: this.contentWrapper || "div",
4910
4962
  httpReqsData: {},
4911
4963
  httpReqsPending: {},
4912
4964
  clicked: !1,
4913
- builderContext: be,
4965
+ builderContext: fe,
4914
4966
  needsElementRefDivForEditing: Li,
4915
4967
  getWrapperClassName: zi
4916
4968
  };
@@ -4918,7 +4970,7 @@ font-weight: ${s};
4918
4970
  provide() {
4919
4971
  const e = this;
4920
4972
  return {
4921
- [be.key]: e.builderContextSignal
4973
+ [fe.key]: e.builderContextSignal
4922
4974
  };
4923
4975
  },
4924
4976
  created() {
@@ -4927,25 +4979,25 @@ font-weight: ${s};
4927
4979
  mounted() {
4928
4980
  var e, t, n;
4929
4981
  if (R()) {
4930
- P() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4982
+ A() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4931
4983
  new CustomEvent("initeditingbldr")
4932
4984
  );
4933
- const o = this.builderContextSignal.content && J(this.canTrack), r = de({
4985
+ const o = this.builderContextSignal.content && G(this.canTrack), r = ce({
4934
4986
  name: `builder.tests.${(e = this.builderContextSignal.content) == null ? void 0 : e.id}`,
4935
4987
  canTrack: !0
4936
4988
  }), i = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId;
4937
4989
  if (o && i === r) {
4938
- const s = (n = this.builderContextSignal.content) == null ? void 0 : n.id, a = this.apiKey;
4939
- ye({
4990
+ const s = (n = this.builderContextSignal.content) == null ? void 0 : n.id, l = this.apiKey;
4991
+ ge({
4940
4992
  apiHost: this.apiHost,
4941
4993
  type: "impression",
4942
4994
  canTrack: !0,
4943
4995
  contentId: s,
4944
- apiKey: a,
4996
+ apiKey: l,
4945
4997
  variationId: r !== s ? r : void 0
4946
4998
  });
4947
4999
  }
4948
- Te() && !P() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
5000
+ Ce() && !A() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4949
5001
  new CustomEvent("initpreviewingbldr")
4950
5002
  );
4951
5003
  }
@@ -4965,15 +5017,23 @@ font-weight: ${s};
4965
5017
  },
4966
5018
  onUpdateHook2: {
4967
5019
  handler() {
4968
- this.data && this.mergeNewRootState(this.data);
5020
+ if (this.data) {
5021
+ if (this.prevData === this.data)
5022
+ return;
5023
+ this.mergeNewRootState(this.data), this.prevData = this.data;
5024
+ }
4969
5025
  },
4970
5026
  immediate: !0
4971
5027
  },
4972
5028
  onUpdateHook3: {
4973
5029
  handler() {
4974
- this.locale && this.mergeNewRootState({
4975
- locale: this.locale
4976
- });
5030
+ if (this.locale) {
5031
+ if (this.prevLocale === this.locale)
5032
+ return;
5033
+ this.mergeNewRootState({
5034
+ locale: this.locale
5035
+ }), this.prevLocale = this.locale;
5036
+ }
4977
5037
  },
4978
5038
  immediate: !0
4979
5039
  }
@@ -5013,30 +5073,30 @@ font-weight: ${s};
5013
5073
  }
5014
5074
  },
5015
5075
  methods: {
5016
- mergeNewRootState(e) {
5017
- var n, o;
5018
- const t = {
5076
+ mergeNewRootState(e, t) {
5077
+ var o, r;
5078
+ const n = {
5019
5079
  ...this.builderContextSignal.rootState,
5020
5080
  ...e
5021
5081
  };
5022
- this.builderContextSignal.rootSetState ? (o = (n = this.builderContextSignal).rootSetState) == null || o.call(n, t) : this.builderContextSignal.rootState = t;
5082
+ 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;
5023
5083
  },
5024
- mergeNewContent(e) {
5025
- var n, o, r, i, s;
5026
- const t = {
5084
+ mergeNewContent(e, t) {
5085
+ var o, r, i, s, l;
5086
+ const n = {
5027
5087
  ...this.builderContextSignal.content,
5028
5088
  ...e,
5029
5089
  data: {
5030
- ...(n = this.builderContextSignal.content) == null ? void 0 : n.data,
5090
+ ...(o = this.builderContextSignal.content) == null ? void 0 : o.data,
5031
5091
  ...e == null ? void 0 : e.data
5032
5092
  },
5033
5093
  meta: {
5034
- ...(o = this.builderContextSignal.content) == null ? void 0 : o.meta,
5094
+ ...(r = this.builderContextSignal.content) == null ? void 0 : r.meta,
5035
5095
  ...e == null ? void 0 : e.meta,
5036
- 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)
5096
+ 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)
5037
5097
  }
5038
5098
  };
5039
- this.builderContextSignal.content = t;
5099
+ this.builderContextSignal.content = n;
5040
5100
  },
5041
5101
  processMessage(e) {
5042
5102
  return st({
@@ -5055,11 +5115,11 @@ font-weight: ${s};
5055
5115
  animation: (t) => {
5056
5116
  mt(t);
5057
5117
  },
5058
- contentUpdate: (t) => {
5059
- this.mergeNewContent(t);
5118
+ contentUpdate: (t, n) => {
5119
+ this.mergeNewContent(t, n);
5060
5120
  },
5061
- stateUpdate: (t) => {
5062
- this.mergeNewRootState(t);
5121
+ stateUpdate: (t, n) => {
5122
+ this.mergeNewRootState(t, n);
5063
5123
  }
5064
5124
  }
5065
5125
  })(e);
@@ -5068,10 +5128,10 @@ font-weight: ${s};
5068
5128
  var t, n;
5069
5129
  if (this.builderContextSignal.content) {
5070
5130
  const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
5071
- ye({
5131
+ ge({
5072
5132
  apiHost: this.apiHost,
5073
5133
  type: "click",
5074
- canTrack: J(this.canTrack),
5134
+ canTrack: G(this.canTrack),
5075
5135
  contentId: r,
5076
5136
  apiKey: this.apiKey,
5077
5137
  variationId: o !== r ? o : void 0,
@@ -5089,43 +5149,45 @@ font-weight: ${s};
5089
5149
  if (!r)
5090
5150
  return;
5091
5151
  const i = typeof r == "object" && r["@type"] === "@builder.io/core:Request";
5092
- if (this.httpReqsPending[o] || this.httpReqsData[o] && !P())
5152
+ if (this.httpReqsPending[o] || this.httpReqsData[o] && !A())
5093
5153
  return;
5094
5154
  const s = i ? r.request.url : r;
5095
5155
  this.httpReqsPending[o] = !0;
5096
- const a = s.replace(
5156
+ const l = s.replace(
5097
5157
  /{{([^}]+)}}/g,
5098
- (u, p) => String(
5099
- te({
5100
- code: p,
5158
+ (p, f) => String(
5159
+ ee({
5160
+ code: f,
5101
5161
  context: this.context || {},
5102
5162
  localState: void 0,
5103
5163
  rootState: this.builderContextSignal.rootState,
5104
5164
  rootSetState: this.builderContextSignal.rootSetState
5105
5165
  })
5106
5166
  )
5107
- ), l = i ? {
5108
- url: a,
5167
+ ), a = i ? {
5168
+ url: l,
5109
5169
  method: r.request.method,
5110
5170
  headers: r.request.headers,
5111
5171
  body: r.request.body
5112
5172
  } : {
5113
- url: a,
5173
+ url: l,
5114
5174
  method: "GET"
5115
5175
  };
5116
- we(JSON.stringify(l)), fetch(l.url, {
5117
- method: l.method,
5118
- headers: l.headers,
5119
- body: l.body
5120
- }).then((u) => u.json()).then((u) => {
5176
+ Ie(JSON.stringify(a));
5177
+ const u = {
5178
+ method: a.method,
5179
+ headers: a.headers,
5180
+ body: a.body
5181
+ };
5182
+ a.method === "GET" && delete u.body, fetch(a.url, u).then((p) => p.json()).then((p) => {
5121
5183
  this.mergeNewRootState({
5122
- [o]: u
5184
+ [o]: p
5123
5185
  }), this.httpReqsData[o] = !0;
5124
- }).catch((u) => {
5186
+ }).catch((p) => {
5125
5187
  console.error(
5126
5188
  "error fetching dynamic data",
5127
5189
  JSON.stringify(r),
5128
- u
5190
+ p
5129
5191
  );
5130
5192
  }).finally(() => {
5131
5193
  this.httpReqsPending[o] = !1;
@@ -5134,12 +5196,12 @@ font-weight: ${s};
5134
5196
  );
5135
5197
  },
5136
5198
  emitStateUpdate() {
5137
- P() && window.dispatchEvent(
5199
+ A() && window.dispatchEvent(
5138
5200
  new CustomEvent(
5139
5201
  "builder:component:stateChange",
5140
5202
  {
5141
5203
  detail: {
5142
- state: ke(this.builderContextSignal.rootState),
5204
+ state: Se(this.builderContextSignal.rootState),
5143
5205
  ref: {
5144
5206
  name: this.model
5145
5207
  }
@@ -5179,7 +5241,7 @@ font-weight: ${s};
5179
5241
  const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
5180
5242
  `builder.overrides.${n}`
5181
5243
  ), r = t.get("apiKey") || t.get("builder.space");
5182
- (n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && Ee({
5244
+ (n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && Re({
5183
5245
  model: this.model,
5184
5246
  apiKey: this.apiKey,
5185
5247
  apiVersion: this.builderContextSignal.apiVersion,
@@ -5195,21 +5257,21 @@ font-weight: ${s};
5195
5257
  }
5196
5258
  });
5197
5259
  function Ji(e, t, n, o, r, i) {
5198
- var s, a, l;
5199
- return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(Z(e.ContentWrapper), w({
5260
+ var s, l, a;
5261
+ return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(X(e.ContentWrapper), w({
5200
5262
  key: 0,
5201
5263
  ref: "elementRef",
5202
5264
  onClick: (u) => e.onClick(u),
5203
5265
  "builder-content-id": (s = e.builderContextSignal.content) == null ? void 0 : s.id,
5204
5266
  "builder-model": e.model,
5205
- className: e.getWrapperClassName(((a = e.content) == null ? void 0 : a.testVariationId) || ((l = e.content) == null ? void 0 : l.id)),
5267
+ className: e.getWrapperClassName(((l = e.content) == null ? void 0 : l.testVariationId) || ((a = e.content) == null ? void 0 : a.id)),
5206
5268
  style: {
5207
5269
  display: !e.builderContextSignal.content && e.needsElementRefDivForEditing() ? "none" : void 0
5208
5270
  },
5209
5271
  onIniteditingbldr: (u) => e.elementRef_onIniteditingbldr(u),
5210
5272
  onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
5211
5273
  }, { ...e.showContentProps, ...e.contentWrapperProps }), {
5212
- default: U(() => [
5274
+ default: O(() => [
5213
5275
  V(e.$slots, "default")
5214
5276
  ]),
5215
5277
  _: 3
@@ -5217,7 +5279,7 @@ function Ji(e, t, n, o, r, i) {
5217
5279
  }
5218
5280
  const Qi = /* @__PURE__ */ v(Gi, [["render", Ji]]), Yi = y({
5219
5281
  name: "content-styles",
5220
- components: { InlinedStyles: ue },
5282
+ components: { InlinedStyles: de },
5221
5283
  props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
5222
5284
  data() {
5223
5285
  return {
@@ -5247,10 +5309,10 @@ const Zi = /* @__PURE__ */ v(Yi, [["render", Xi]]), _i = ({
5247
5309
  data: t,
5248
5310
  locale: n
5249
5311
  }) => {
5250
- var i, s, a;
5312
+ var i, s, l;
5251
5313
  const o = {}, r = ((i = e == null ? void 0 : e.data) == null ? void 0 : i.state) || {};
5252
- return (a = (s = e == null ? void 0 : e.data) == null ? void 0 : s.inputs) == null || a.forEach((l) => {
5253
- l.name && l.defaultValue !== void 0 && (o[l.name] = l.defaultValue);
5314
+ return (l = (s = e == null ? void 0 : e.data) == null ? void 0 : s.inputs) == null || l.forEach((a) => {
5315
+ a.name && a.defaultValue !== void 0 && (o[a.name] = a.defaultValue);
5254
5316
  }), {
5255
5317
  ...o,
5256
5318
  ...r,
@@ -5273,10 +5335,10 @@ const Zi = /* @__PURE__ */ v(Yi, [["render", Xi]]), _i = ({
5273
5335
  name: "content-component",
5274
5336
  components: {
5275
5337
  EnableEditor: Qi,
5276
- InlinedScript: Be,
5338
+ InlinedScript: Pe,
5277
5339
  ContentStyles: Zi,
5278
5340
  Blocks: q,
5279
- DynamicDiv: ne
5341
+ DynamicDiv: te
5280
5342
  },
5281
5343
  props: [
5282
5344
  "apiKey",
@@ -5304,7 +5366,7 @@ const Zi = /* @__PURE__ */ v(Yi, [["render", Xi]]), _i = ({
5304
5366
  data() {
5305
5367
  var e, t;
5306
5368
  return {
5307
- scriptStr: xi({
5369
+ scriptStr: Wi({
5308
5370
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
5309
5371
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
5310
5372
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -5318,7 +5380,7 @@ const Zi = /* @__PURE__ */ v(Yi, [["render", Xi]]), _i = ({
5318
5380
  ...n,
5319
5381
  [r.name]: {
5320
5382
  component: ts(o),
5321
- ...ae(r)
5383
+ ...se(r)
5322
5384
  }
5323
5385
  }),
5324
5386
  {}
@@ -5345,7 +5407,7 @@ const Zi = /* @__PURE__ */ v(Yi, [["render", Xi]]), _i = ({
5345
5407
  ].reduce(
5346
5408
  (n, { component: o, ...r }) => ({
5347
5409
  ...n,
5348
- [r.name]: ae(r)
5410
+ [r.name]: se(r)
5349
5411
  }),
5350
5412
  {}
5351
5413
  ),
@@ -5368,11 +5430,11 @@ const Zi = /* @__PURE__ */ v(Yi, [["render", Xi]]), _i = ({
5368
5430
  },
5369
5431
  created() {
5370
5432
  var t, n;
5371
- this.apiKey || N.error(
5433
+ this.apiKey || x.error(
5372
5434
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
5373
5435
  );
5374
5436
  const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
5375
- e && te({
5437
+ e && ee({
5376
5438
  code: e,
5377
5439
  context: this.context || {},
5378
5440
  localState: void 0,
@@ -5390,7 +5452,7 @@ const Zi = /* @__PURE__ */ v(Yi, [["render", Xi]]), _i = ({
5390
5452
  }
5391
5453
  });
5392
5454
  function os(e, t, n, o, r, i) {
5393
- const s = k("InlinedScript"), a = k("ContentStyles"), l = k("Blocks"), u = k("EnableEditor");
5455
+ const s = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
5394
5456
  return d(), S(u, w({
5395
5457
  apiHost: e.apiHost,
5396
5458
  nonce: e.nonce,
@@ -5409,8 +5471,8 @@ function os(e, t, n, o, r, i) {
5409
5471
  trustedHosts: e.trustedHosts,
5410
5472
  isNestedRender: e.isNestedRender
5411
5473
  }, {}), {
5412
- default: U(() => {
5413
- var p, f, c, m, b, g, A;
5474
+ default: O(() => {
5475
+ var p, f, c, m, b, g, P;
5414
5476
  return [
5415
5477
  e.isSsrAbTest ? (d(), S(s, {
5416
5478
  key: 0,
@@ -5418,7 +5480,7 @@ function os(e, t, n, o, r, i) {
5418
5480
  scriptStr: e.scriptStr,
5419
5481
  nonce: e.nonce || ""
5420
5482
  }, null, 8, ["scriptStr", "nonce"])) : C("", !0),
5421
- e.TARGET !== "reactNative" ? (d(), S(a, {
5483
+ e.TARGET !== "reactNative" ? (d(), S(l, {
5422
5484
  key: 1,
5423
5485
  nonce: e.nonce || "",
5424
5486
  isNestedRender: e.isNestedRender,
@@ -5426,8 +5488,8 @@ function os(e, t, n, o, r, i) {
5426
5488
  cssCode: (c = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : c.cssCode,
5427
5489
  customFonts: (b = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : b.customFonts
5428
5490
  }, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : C("", !0),
5429
- E(l, {
5430
- blocks: (A = (g = e.builderContextSignal.content) == null ? void 0 : g.data) == null ? void 0 : A.blocks,
5491
+ E(a, {
5492
+ blocks: (P = (g = e.builderContextSignal.content) == null ? void 0 : g.data) == null ? void 0 : P.blocks,
5431
5493
  context: e.builderContextSignal,
5432
5494
  registeredComponents: e.registeredComponents,
5433
5495
  linkComponent: e.linkComponent
@@ -5440,8 +5502,8 @@ function os(e, t, n, o, r, i) {
5440
5502
  const rs = /* @__PURE__ */ v(ns, [["render", os]]), is = y({
5441
5503
  name: "content-variants",
5442
5504
  components: {
5443
- InlinedScript: Be,
5444
- InlinedStyles: ue,
5505
+ InlinedScript: Pe,
5506
+ InlinedStyles: de,
5445
5507
  ContentComponent: rs
5446
5508
  },
5447
5509
  props: [
@@ -5467,15 +5529,15 @@ const rs = /* @__PURE__ */ v(ns, [["render", os]]), is = y({
5467
5529
  ],
5468
5530
  data() {
5469
5531
  return {
5470
- shouldRenderVariants: Ai({
5471
- canTrack: J(this.canTrack),
5532
+ shouldRenderVariants: Pi({
5533
+ canTrack: G(this.canTrack),
5472
5534
  content: this.content
5473
5535
  }),
5474
5536
  SDKS_SUPPORTING_PERSONALIZATION: kt,
5475
5537
  getInitPersonalizationVariantsFnsScriptString: Go,
5476
5538
  TARGET: $,
5477
5539
  getInitVariantsFnsScriptString: Ni,
5478
- getVariants: ie
5540
+ getVariants: re
5479
5541
  };
5480
5542
  },
5481
5543
  mounted() {
@@ -5483,8 +5545,8 @@ const rs = /* @__PURE__ */ v(ns, [["render", os]]), is = y({
5483
5545
  computed: {
5484
5546
  updateCookieAndStylesScriptStr() {
5485
5547
  var e;
5486
- return Wi(
5487
- ie(this.content).map((t) => ({
5548
+ return xi(
5549
+ re(this.content).map((t) => ({
5488
5550
  id: t.testVariationId,
5489
5551
  testRatio: t.testRatio
5490
5552
  })),
@@ -5492,7 +5554,7 @@ const rs = /* @__PURE__ */ v(ns, [["render", os]]), is = y({
5492
5554
  );
5493
5555
  },
5494
5556
  hideVariantsStyleString() {
5495
- return ie(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
5557
+ return re(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
5496
5558
  },
5497
5559
  defaultContent() {
5498
5560
  var e;
@@ -5501,13 +5563,13 @@ const rs = /* @__PURE__ */ v(ns, [["render", os]]), is = y({
5501
5563
  testVariationId: (e = this.content) == null ? void 0 : e.id
5502
5564
  } : Nn({
5503
5565
  item: this.content,
5504
- canTrack: J(this.canTrack)
5566
+ canTrack: G(this.canTrack)
5505
5567
  });
5506
5568
  }
5507
5569
  }
5508
5570
  });
5509
5571
  function ss(e, t, n, o, r, i) {
5510
- const s = k("InlinedScript"), a = k("InlinedStyles"), l = k("ContentComponent");
5572
+ const s = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
5511
5573
  return d(), h(I, null, [
5512
5574
  !e.isNestedRender && e.TARGET !== "reactNative" ? (d(), h(I, { key: 0 }, [
5513
5575
  E(s, {
@@ -5523,7 +5585,7 @@ function ss(e, t, n, o, r, i) {
5523
5585
  }, null, 8, ["nonce", "scriptStr"])) : C("", !0)
5524
5586
  ], 64)) : C("", !0),
5525
5587
  e.shouldRenderVariants ? (d(), h(I, { key: 1 }, [
5526
- E(a, {
5588
+ E(l, {
5527
5589
  id: "builderio-variants",
5528
5590
  styles: e.hideVariantsStyleString,
5529
5591
  nonce: e.nonce || ""
@@ -5533,7 +5595,7 @@ function ss(e, t, n, o, r, i) {
5533
5595
  scriptStr: e.updateCookieAndStylesScriptStr,
5534
5596
  nonce: e.nonce || ""
5535
5597
  }, null, 8, ["scriptStr", "nonce"]),
5536
- (d(!0), h(I, null, L(e.getVariants(e.content), (u, p) => (d(), S(l, w({
5598
+ (d(!0), h(I, null, L(e.getVariants(e.content), (u, p) => (d(), S(a, w({
5537
5599
  key: u.testVariationId,
5538
5600
  apiHost: e.apiHost,
5539
5601
  isNestedRender: e.isNestedRender,
@@ -5558,7 +5620,7 @@ function ss(e, t, n, o, r, i) {
5558
5620
  trustedHosts: e.trustedHosts
5559
5621
  }, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
5560
5622
  ], 64)) : C("", !0),
5561
- E(l, w({
5623
+ E(a, w({
5562
5624
  apiHost: e.apiHost,
5563
5625
  nonce: e.nonce,
5564
5626
  isNestedRender: e.isNestedRender,
@@ -5591,7 +5653,7 @@ const as = /* @__PURE__ */ v(is, [["render", ss]]), ls = async ({
5591
5653
  }) => {
5592
5654
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
5593
5655
  (e != null && e.apiKey))
5594
- return Ee({
5656
+ return Re({
5595
5657
  model: t.model,
5596
5658
  apiKey: e.apiKey,
5597
5659
  apiVersion: e.apiVersion,
@@ -5601,18 +5663,18 @@ const as = /* @__PURE__ */ v(is, [["render", ss]]), ls = async ({
5601
5663
  }
5602
5664
  }
5603
5665
  }).catch((n) => {
5604
- N.error("Could not fetch symbol content: ", n);
5666
+ x.error("Could not fetch symbol content: ", n);
5605
5667
  });
5606
5668
  }, cs = y({
5607
5669
  name: "builder-symbol",
5608
- components: { ContentVariants: as, DynamicDiv: ne },
5670
+ components: { ContentVariants: as, DynamicDiv: te },
5609
5671
  props: [
5610
5672
  "symbol",
5673
+ "builderComponents",
5611
5674
  "attributes",
5612
5675
  "dynamic",
5613
5676
  "builderContext",
5614
5677
  "builderBlock",
5615
- "builderComponents",
5616
5678
  "builderLinkComponent"
5617
5679
  ],
5618
5680
  data() {
@@ -5620,7 +5682,7 @@ const as = /* @__PURE__ */ v(is, [["render", ss]]), ls = async ({
5620
5682
  return {
5621
5683
  contentToUse: (e = this.symbol) == null ? void 0 : e.content,
5622
5684
  symbolEntry: (t = this.symbol) == null ? void 0 : t.entry,
5623
- filterAttrs: W
5685
+ filterAttrs: N
5624
5686
  };
5625
5687
  },
5626
5688
  mounted() {
@@ -5641,10 +5703,13 @@ const as = /* @__PURE__ */ v(is, [["render", ss]]), ls = async ({
5641
5703
  contentWrapper() {
5642
5704
  return "div";
5643
5705
  },
5706
+ customComponents() {
5707
+ return Object.values(this.builderComponents);
5708
+ },
5644
5709
  className() {
5645
5710
  var e, t;
5646
5711
  return [
5647
- this.attributes[G()],
5712
+ this.attributes[j()],
5648
5713
  "builder-symbol",
5649
5714
  (e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
5650
5715
  (t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
@@ -5670,9 +5735,9 @@ const as = /* @__PURE__ */ v(is, [["render", ss]]), ls = async ({
5670
5735
  }
5671
5736
  });
5672
5737
  function ds(e, t, n, o, r, i) {
5673
- var a, l, u, p, f;
5738
+ var l, a, u, p, f;
5674
5739
  const s = k("ContentVariants");
5675
- return d(), h("div", w({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
5740
+ return d(), h("div", w({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, F(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
5676
5741
  E(s, {
5677
5742
  nonce: e.builderContext.nonce,
5678
5743
  isNestedRender: !0,
@@ -5680,11 +5745,11 @@ function ds(e, t, n, o, r, i) {
5680
5745
  apiKey: e.builderContext.apiKey,
5681
5746
  context: {
5682
5747
  ...e.builderContext.context,
5683
- symbolId: (a = e.builderBlock) == null ? void 0 : a.id
5748
+ symbolId: (l = e.builderBlock) == null ? void 0 : l.id
5684
5749
  },
5685
- customComponents: Object.values(e.builderComponents),
5750
+ customComponents: e.customComponents,
5686
5751
  data: {
5687
- ...(l = e.symbol) == null ? void 0 : l.data,
5752
+ ...(a = e.symbol) == null ? void 0 : a.data,
5688
5753
  ...e.builderContext.localState,
5689
5754
  ...(p = (u = e.contentToUse) == null ? void 0 : u.data) == null ? void 0 : p.state
5690
5755
  },
@@ -5699,41 +5764,42 @@ function ds(e, t, n, o, r, i) {
5699
5764
  }
5700
5765
  const us = /* @__PURE__ */ v(cs, [["render", ds]]);
5701
5766
  export {
5702
- Ee as A,
5767
+ qn as A,
5703
5768
  gt as B,
5704
5769
  wo as C,
5705
- hs as D,
5706
- Is as E,
5770
+ Re as D,
5771
+ hs as E,
5707
5772
  Eo as F,
5773
+ Is as G,
5708
5774
  Do as I,
5709
5775
  Fo as S,
5710
5776
  Rr as T,
5711
5777
  $i as V,
5712
- ue as _,
5713
- ws as a,
5714
- Pe as b,
5715
- Cs as c,
5716
- v as d,
5717
- te as e,
5718
- Ts as f,
5719
- ko as g,
5720
- G as h,
5721
- be as i,
5722
- jt as j,
5723
- us as k,
5724
- q as l,
5725
- as as m,
5726
- Te as n,
5727
- ln as o,
5728
- bs as p,
5729
- gs as q,
5778
+ v as _,
5779
+ j as a,
5780
+ fe as b,
5781
+ de as c,
5782
+ ko as d,
5783
+ ee as e,
5784
+ Cs as f,
5785
+ Ts as g,
5786
+ ws as h,
5787
+ Ee as i,
5788
+ an as j,
5789
+ jt as k,
5790
+ us as l,
5791
+ q as m,
5792
+ as as n,
5793
+ Ce as o,
5794
+ ln as p,
5795
+ bs as q,
5730
5796
  fs as r,
5731
5797
  Ss as s,
5732
- Ye as t,
5733
- ys as u,
5734
- vs as v,
5798
+ gs as t,
5799
+ Ye as u,
5800
+ ys as v,
5735
5801
  ts as w,
5736
- ks as x,
5737
- Kn as y,
5738
- qn as z
5802
+ vs as x,
5803
+ ks as y,
5804
+ Kn as z
5739
5805
  };