@builder.io/sdk-vue 5.2.5 → 5.2.7

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 (79) hide show
  1. package/lib/browser/{awaiter-RQWxLPh7.cjs → awaiter-0mKQSRRk.cjs} +1 -1
  2. package/lib/browser/{awaiter-BKtN2AMs.js → awaiter-aT9nEkF0.js} +1 -1
  3. package/lib/browser/{block-wrapper-nMKh8p11.cjs → block-wrapper-ebPi5330.cjs} +1 -1
  4. package/lib/browser/{block-wrapper-tny9tjLX.js → block-wrapper-hsmUEUmJ.js} +3 -3
  5. package/lib/browser/blocks/image/image.vue.d.ts +4 -3
  6. package/lib/browser/blocks/personalization-container/helpers.d.ts +2 -0
  7. package/lib/browser/{component-ref-d2TAsp69.js → component-ref-2JLic_6J.js} +4 -4
  8. package/lib/browser/{component-ref-Mw4IXQsf.cjs → component-ref-5lsY_P2L.cjs} +1 -1
  9. package/lib/browser/components/content/components/enable-editor.vue.d.ts +1 -0
  10. package/lib/browser/components/content-variants/content-variants.vue.d.ts +1 -0
  11. package/lib/browser/constants/sdk-version.d.ts +1 -1
  12. package/lib/browser/{get-block-properties-yuV5qbSy.cjs → get-block-properties-DMrMpyLe.cjs} +1 -1
  13. package/lib/browser/{get-block-properties-DXgJ283y.js → get-block-properties-uAJb6ltf.js} +1 -1
  14. package/lib/browser/index-HltbyCkc.cjs +350 -0
  15. package/lib/browser/{index-NzYhd2fP.js → index-ODe_HCA4.js} +693 -675
  16. package/lib/browser/index.cjs +1 -1
  17. package/lib/browser/index.mjs +1 -1
  18. package/lib/browser/{live-edit-MYo3p6a8.js → live-edit-6Fy-p514.js} +1 -1
  19. package/lib/browser/{live-edit-2xpHwDC6.cjs → live-edit-jPgkphth.cjs} +1 -1
  20. package/lib/browser/{repeated-block-Ga5ASejd.js → repeated-block-GCDk4uyK.js} +2 -2
  21. package/lib/browser/{repeated-block-2EBzVyUu.cjs → repeated-block-dwcsu5Tf.cjs} +1 -1
  22. package/lib/browser/{style-wrapper-L7DnOyfm.cjs → style-wrapper-uJyikbLw.cjs} +1 -1
  23. package/lib/browser/{style-wrapper-dI5wRv59.js → style-wrapper-uzjZV5OS.js} +1 -1
  24. package/lib/browser/style.css +1 -1
  25. package/lib/edge/{awaiter-6AjvWUxL.cjs → awaiter-eu9BKtnq.cjs} +1 -1
  26. package/lib/edge/{awaiter-4nEUChYV.js → awaiter-n2CWjZB1.js} +1 -1
  27. package/lib/{node/block-wrapper-CVcdunhe.cjs → edge/block-wrapper--rtRhHUc.cjs} +1 -1
  28. package/lib/edge/{block-wrapper-46vOpFGy.js → block-wrapper-9nBz9JZR.js} +3 -3
  29. package/lib/edge/blocks/image/image.vue.d.ts +4 -3
  30. package/lib/edge/blocks/personalization-container/helpers.d.ts +2 -0
  31. package/lib/edge/{component-ref-yTXpKy_r.js → component-ref-S9vJwuiq.js} +4 -4
  32. package/lib/edge/{component-ref-DUyRq-EJ.cjs → component-ref-jnjNzDWr.cjs} +1 -1
  33. package/lib/edge/components/content/components/enable-editor.vue.d.ts +1 -0
  34. package/lib/edge/components/content-variants/content-variants.vue.d.ts +1 -0
  35. package/lib/edge/constants/sdk-version.d.ts +1 -1
  36. package/lib/edge/{get-block-properties-W3W_9H-Z.js → get-block-properties--bKisxsm.js} +1 -1
  37. package/lib/edge/{get-block-properties-jJLbFHeq.cjs → get-block-properties-TpA1c-Zj.cjs} +1 -1
  38. package/lib/edge/{index-jpFEl6o1.cjs → index-_nY8Y9dm.cjs} +49 -41
  39. package/lib/edge/{index-DHXkBA25.js → index-bxo4ghDB.js} +799 -781
  40. package/lib/edge/index.cjs +1 -1
  41. package/lib/edge/index.mjs +1 -1
  42. package/lib/{node/live-edit-NBkhYc-u.js → edge/live-edit-7g02-2DF.js} +1 -1
  43. package/lib/{node/live-edit-iOkS0wUg.cjs → edge/live-edit-e8Z6uQ-j.cjs} +1 -1
  44. package/lib/edge/{repeated-block-dGVzaSM5.cjs → repeated-block-OUui2NbB.cjs} +1 -1
  45. package/lib/edge/{repeated-block-eANZkOUH.js → repeated-block-R_IWEkxl.js} +2 -2
  46. package/lib/edge/{style-wrapper-CvNVb0wT.cjs → style-wrapper-F_5qcoF-.cjs} +1 -1
  47. package/lib/edge/{style-wrapper-GqtgkGuc.js → style-wrapper-sQRz1Tz9.js} +1 -1
  48. package/lib/edge/style.css +1 -1
  49. package/lib/node/{awaiter-6JHJCJgG.js → awaiter-JSpfFLrt.js} +1 -1
  50. package/lib/node/{awaiter-_rQTvMWR.cjs → awaiter-N70CU_8O.cjs} +1 -1
  51. package/lib/node/{block-wrapper-3P0_XOfk.js → block-wrapper-8WuMQvKC.js} +3 -3
  52. package/lib/{edge/block-wrapper-97OfjwlX.cjs → node/block-wrapper-pbauouda.cjs} +1 -1
  53. package/lib/node/blocks/image/image.vue.d.ts +4 -3
  54. package/lib/node/blocks/personalization-container/helpers.d.ts +2 -0
  55. package/lib/node/{component-ref-tWjNsmU5.cjs → component-ref-0QnbZN8R.cjs} +1 -1
  56. package/lib/node/{component-ref-RHwChjOp.js → component-ref-Why7x4bF.js} +5 -5
  57. package/lib/node/components/content/components/enable-editor.vue.d.ts +1 -0
  58. package/lib/node/components/content-variants/content-variants.vue.d.ts +1 -0
  59. package/lib/node/constants/sdk-version.d.ts +1 -1
  60. package/lib/node/{get-block-properties-jknWz7As.cjs → get-block-properties-49Z6hgAn.cjs} +1 -1
  61. package/lib/node/{get-block-properties-9gqKfU1J.js → get-block-properties-yMS_NiSc.js} +2 -2
  62. package/lib/node/index-2G2Z-ncC.cjs +350 -0
  63. package/lib/node/{index-CwfwLkvc.js → index-4BcEpdYg.js} +578 -560
  64. package/lib/node/index.cjs +1 -1
  65. package/lib/node/index.mjs +2 -2
  66. package/lib/node/init.cjs +1 -1
  67. package/lib/node/init.mjs +1 -1
  68. package/lib/{edge/live-edit-WpboQZDv.cjs → node/live-edit-0eQ2U7us.cjs} +1 -1
  69. package/lib/{edge/live-edit-nhAMI-64.js → node/live-edit-959vfTqG.js} +1 -1
  70. package/lib/node/{repeated-block-BqCLqE8_.cjs → repeated-block-NkQjCyoE.cjs} +1 -1
  71. package/lib/node/{repeated-block-aHj4jtJt.js → repeated-block-uTpfjUj-.js} +2 -2
  72. package/lib/node/{should-force-browser-runtime-in-node-j9YDACzy.cjs → should-force-browser-runtime-in-node-hS7qkwoE.cjs} +1 -1
  73. package/lib/node/{should-force-browser-runtime-in-node-2bRYXF-W.js → should-force-browser-runtime-in-node-k20eAE3E.js} +1 -1
  74. package/lib/node/{style-wrapper-kcTKCb_j.js → style-wrapper-HY1zLGB7.js} +2 -2
  75. package/lib/node/{style-wrapper-WxU8Uo4d.cjs → style-wrapper-dYrN4_G9.cjs} +1 -1
  76. package/lib/node/style.css +1 -1
  77. package/package.json +1 -1
  78. package/lib/browser/index-yyjVNpWr.cjs +0 -342
  79. package/lib/node/index-eeU-4w7r.cjs +0 -342
@@ -1,6 +1,6 @@
1
1
  import "./style.css";
2
- import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as I, createBlock as S, resolveDynamicComponent as X, mergeProps as $, toHandlers as L, withCtx as x, renderSlot as N, resolveComponent as k, createTextVNode as Vt, toDisplayString as de, defineAsyncComponent as Y, createVNode as E, renderList as F, createCommentVNode as C, h as Qe, createElementVNode as z, normalizeStyle as M, normalizeClass as _, markRaw as Nt } from "vue";
3
- const Wt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Dt = (e) => typeof e == "string" && Wt.has(e.toLowerCase());
2
+ import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as I, createBlock as S, resolveDynamicComponent as X, mergeProps as $, toHandlers as L, withCtx as x, renderSlot as N, resolveComponent as k, createTextVNode as Wt, toDisplayString as de, defineAsyncComponent as Y, createVNode as R, renderList as F, createCommentVNode as C, h as _e, createElementVNode as q, normalizeStyle as M, normalizeClass as _, markRaw as Ot } from "vue";
3
+ const Dt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), xt = (e) => typeof e == "string" && Dt.has(e.toLowerCase());
4
4
  function W(e = {}, t, n) {
5
5
  const o = {};
6
6
  for (const r in e) {
@@ -11,11 +11,11 @@ function W(e = {}, t, n) {
11
11
  }
12
12
  return o;
13
13
  }
14
- const Ot = y({
14
+ const Ut = y({
15
15
  name: "dynamic-renderer",
16
16
  props: ["TagName", "attributes", "actionAttributes"],
17
17
  data() {
18
- return { isEmptyElement: Dt };
18
+ return { isEmptyElement: xt };
19
19
  }
20
20
  }), v = (e, t) => {
21
21
  const n = e.__vccOpts || e;
@@ -23,7 +23,7 @@ const Ot = y({
23
23
  n[o] = r;
24
24
  return n;
25
25
  };
26
- function xt(e, t, n, o, r, i) {
26
+ function Lt(e, t, n, o, r, i) {
27
27
  return e.isEmptyElement(e.TagName) ? (d(), S(X(e.TagName), $({ key: 1 }, e.attributes, L(e.actionAttributes)), null, 16)) : (d(), h(I, { key: 0 }, [
28
28
  typeof e.TagName == "string" ? (d(), S(X(e.TagName), $({ key: 0 }, e.attributes, L(e.actionAttributes)), {
29
29
  default: x(() => [
@@ -38,11 +38,11 @@ function xt(e, t, n, o, r, i) {
38
38
  }, 16))
39
39
  ], 64));
40
40
  }
41
- const Te = /* @__PURE__ */ v(Ot, [["render", xt]]), vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41
+ const $e = /* @__PURE__ */ v(Ut, [["render", Lt]]), Cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42
42
  __proto__: null,
43
- default: Te
44
- }, Symbol.toStringTag, { value: "Module" })), R = "vue", j = () => {
45
- switch (R) {
43
+ default: $e
44
+ }, Symbol.toStringTag, { value: "Module" })), E = "vue", j = () => {
45
+ switch (E) {
46
46
  case "react":
47
47
  case "reactNative":
48
48
  case "rsc":
@@ -54,9 +54,9 @@ const Te = /* @__PURE__ */ v(Ot, [["render", xt]]), vs = /* @__PURE__ */ Object.
54
54
  case "angular":
55
55
  return "class";
56
56
  }
57
- }, Ut = y({
57
+ }, Ft = y({
58
58
  name: "builder-button",
59
- components: { DynamicRenderer: Te },
59
+ components: { DynamicRenderer: $e },
60
60
  props: [
61
61
  "attributes",
62
62
  "link",
@@ -83,7 +83,7 @@ const Te = /* @__PURE__ */ v(Ot, [["render", xt]]), vs = /* @__PURE__ */ Object.
83
83
  }
84
84
  }
85
85
  });
86
- function Lt(e, t, n, o, r, i) {
86
+ function Ht(e, t, n, o, r, i) {
87
87
  const s = k("DynamicRenderer");
88
88
  return d(), S(s, {
89
89
  attributes: e.attrs(),
@@ -91,12 +91,12 @@ function Lt(e, t, n, o, r, i) {
91
91
  actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
92
92
  }, {
93
93
  default: x(() => [
94
- Vt(de(e.text), 1)
94
+ Wt(de(e.text), 1)
95
95
  ]),
96
96
  _: 1
97
97
  }, 8, ["attributes", "TagName", "actionAttributes"]);
98
98
  }
99
- const Ft = /* @__PURE__ */ v(Ut, [["render", Lt]]), Ht = Symbol(), ge = {
99
+ const Mt = /* @__PURE__ */ v(Ft, [["render", Ht]]), jt = Symbol(), ge = {
100
100
  Builder: {
101
101
  content: null,
102
102
  context: {},
@@ -113,43 +113,43 @@ const Ft = /* @__PURE__ */ v(Ut, [["render", Lt]]), Ht = Symbol(), ge = {
113
113
  nonce: "",
114
114
  model: ""
115
115
  },
116
- key: Ht
117
- }, Mt = Symbol(), Ye = {
116
+ key: jt
117
+ }, zt = Symbol(), et = {
118
118
  Components: { registeredComponents: {} },
119
- key: Mt
119
+ key: zt
120
120
  }, ne = "[Builder.io]: ", B = {
121
121
  log: (...e) => console.log(ne, ...e),
122
122
  error: (...e) => console.error(ne, ...e),
123
123
  warn: (...e) => console.warn(ne, ...e),
124
124
  debug: (...e) => console.debug(ne, ...e)
125
- }, Xe = (e, t, n) => {
125
+ }, tt = (e, t, n) => {
126
126
  const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, i) => r != null ? r[i] : r, e);
127
127
  return o === void 0 || o === e ? n : o;
128
128
  };
129
129
  function T() {
130
130
  return typeof window < "u" && typeof document < "u";
131
131
  }
132
- const jt = (e) => {
132
+ const Kt = (e) => {
133
133
  const t = {};
134
134
  return e.forEach((n, o) => {
135
135
  t[o] = n;
136
136
  }), t;
137
- }, Ze = (e) => e instanceof URLSearchParams ? jt(e) : e, _e = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
138
- function Kt() {
137
+ }, nt = (e) => e instanceof URLSearchParams ? Kt(e) : e, ot = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
138
+ function qt() {
139
139
  return T() && window.self !== window.top;
140
140
  }
141
- function A(e) {
142
- return Kt() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
143
- _e(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
141
+ function P(e) {
142
+ return qt() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
143
+ ot(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
144
144
  }
145
- const qt = () => {
145
+ const Gt = () => {
146
146
  if (T()) {
147
147
  const e = new URL(location.href);
148
148
  return e.pathname === "" && (e.pathname = "/"), e;
149
149
  } else
150
150
  return console.warn("Cannot get location for tracking in non-browser environment"), null;
151
- }, zt = () => typeof navigator == "object" && navigator.userAgent || "", et = () => {
152
- const e = zt(), t = {
151
+ }, Jt = () => typeof navigator == "object" && navigator.userAgent || "", rt = () => {
152
+ const e = Jt(), t = {
153
153
  Android() {
154
154
  return e.match(/Android/i);
155
155
  },
@@ -166,19 +166,19 @@ const qt = () => {
166
166
  return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
167
167
  },
168
168
  any() {
169
- return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || R === "reactNative";
169
+ return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || E === "reactNative";
170
170
  }
171
- }, n = e.match(/Tablet|iPad/i), o = qt();
171
+ }, n = e.match(/Tablet|iPad/i), o = Gt();
172
172
  return {
173
173
  urlPath: o == null ? void 0 : o.pathname,
174
174
  host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
175
175
  device: n ? "tablet" : t.any() ? "mobile" : "desktop"
176
176
  };
177
- }, tt = "5.2.5", nt = () => ({
178
- "X-Builder-SDK": R,
177
+ }, it = "5.2.7", st = () => ({
178
+ "X-Builder-SDK": E,
179
179
  "X-Builder-SDK-GEN": "2",
180
- "X-Builder-SDK-Version": tt
181
- }), K = (e) => e != null, Gt = (e) => {
180
+ "X-Builder-SDK-Version": it
181
+ }), z = (e) => e != null, Qt = (e) => {
182
182
  if (e === "localhost" || e === "127.0.0.1")
183
183
  return e;
184
184
  const t = e.split(".");
@@ -194,14 +194,14 @@ const qt = () => {
194
194
  B.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
195
195
  return;
196
196
  }
197
- }, ot = async (e) => ue(e), Jt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(K).join("; "), Qt = [["secure", ""], ["SameSite", "None"]], Yt = ({
197
+ }, at = async (e) => ue(e), Yt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(z).join("; "), Xt = [["secure", ""], ["SameSite", "None"]], Zt = ({
198
198
  name: e,
199
199
  value: t,
200
200
  expires: n
201
201
  }) => {
202
- const r = (T() ? location.protocol === "https:" : !0) ? Qt : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", Gt(window.location.hostname)], ...r];
203
- return Jt(s);
204
- }, we = async ({
202
+ const r = (T() ? location.protocol === "https:" : !0) ? Xt : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", Qt(window.location.hostname)], ...r];
203
+ return Yt(s);
204
+ }, Ee = async ({
205
205
  name: e,
206
206
  value: t,
207
207
  expires: n,
@@ -210,7 +210,7 @@ const qt = () => {
210
210
  try {
211
211
  if (!o)
212
212
  return;
213
- const r = Yt({
213
+ const r = Zt({
214
214
  name: e,
215
215
  value: t,
216
216
  expires: n
@@ -220,93 +220,93 @@ const qt = () => {
220
220
  B.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
221
221
  }
222
222
  };
223
- function Xt() {
223
+ function _t() {
224
224
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
225
225
  const t = Math.random() * 16 | 0;
226
226
  return (e == "x" ? t : t & 3 | 8).toString(16);
227
227
  });
228
228
  }
229
- function rt() {
230
- return Xt().replace(/-/g, "");
229
+ function lt() {
230
+ return _t().replace(/-/g, "");
231
231
  }
232
- const it = "builderSessionId", Zt = async ({
232
+ const ct = "builderSessionId", en = async ({
233
233
  canTrack: e
234
234
  }) => {
235
235
  if (!e)
236
236
  return;
237
- const t = await ot({
238
- name: it,
237
+ const t = await at({
238
+ name: ct,
239
239
  canTrack: e
240
240
  });
241
- if (K(t))
241
+ if (z(t))
242
242
  return t;
243
243
  {
244
- const n = _t();
245
- return en({
244
+ const n = tn();
245
+ return nn({
246
246
  id: n,
247
247
  canTrack: e
248
248
  }), n;
249
249
  }
250
- }, _t = () => rt(), en = ({
250
+ }, tn = () => lt(), nn = ({
251
251
  id: e,
252
252
  canTrack: t
253
- }) => we({
254
- name: it,
253
+ }) => Ee({
254
+ name: ct,
255
255
  value: e,
256
256
  canTrack: t
257
- }), st = () => T() && typeof localStorage < "u" ? localStorage : void 0, tn = ({
257
+ }), dt = () => T() && typeof localStorage < "u" ? localStorage : void 0, on = ({
258
258
  key: e,
259
259
  canTrack: t
260
260
  }) => {
261
261
  var n;
262
262
  try {
263
- return t ? (n = st()) == null ? void 0 : n.getItem(e) : void 0;
263
+ return t ? (n = dt()) == null ? void 0 : n.getItem(e) : void 0;
264
264
  } catch (o) {
265
265
  console.debug("[LocalStorage] GET error: ", o);
266
266
  return;
267
267
  }
268
- }, nn = ({
268
+ }, rn = ({
269
269
  key: e,
270
270
  canTrack: t,
271
271
  value: n
272
272
  }) => {
273
273
  var o;
274
274
  try {
275
- t && ((o = st()) == null || o.setItem(e, n));
275
+ t && ((o = dt()) == null || o.setItem(e, n));
276
276
  } catch (r) {
277
277
  console.debug("[LocalStorage] SET error: ", r);
278
278
  }
279
- }, at = "builderVisitorId", on = ({
279
+ }, ut = "builderVisitorId", sn = ({
280
280
  canTrack: e
281
281
  }) => {
282
282
  if (!e)
283
283
  return;
284
- const t = tn({
285
- key: at,
284
+ const t = on({
285
+ key: ut,
286
286
  canTrack: e
287
287
  });
288
- if (K(t))
288
+ if (z(t))
289
289
  return t;
290
290
  {
291
- const n = rn();
292
- return sn({
291
+ const n = an();
292
+ return ln({
293
293
  id: n,
294
294
  canTrack: e
295
295
  }), n;
296
296
  }
297
- }, rn = () => rt(), sn = ({
297
+ }, an = () => lt(), ln = ({
298
298
  id: e,
299
299
  canTrack: t
300
- }) => nn({
301
- key: at,
300
+ }) => rn({
301
+ key: ut,
302
302
  value: e,
303
303
  canTrack: t
304
304
  });
305
- function Ie(e) {
305
+ function Re(e) {
306
306
  var t;
307
307
  typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && B.log(e);
308
308
  }
309
- const an = async ({
309
+ const cn = async ({
310
310
  canTrack: e
311
311
  }) => {
312
312
  if (!e)
@@ -314,16 +314,16 @@ const an = async ({
314
314
  visitorId: void 0,
315
315
  sessionId: void 0
316
316
  };
317
- const t = await Zt({
317
+ const t = await en({
318
318
  canTrack: e
319
- }), n = on({
319
+ }), n = sn({
320
320
  canTrack: e
321
321
  });
322
322
  return {
323
323
  sessionId: t,
324
324
  visitorId: n
325
325
  };
326
- }, ln = async ({
326
+ }, dn = async ({
327
327
  type: e,
328
328
  canTrack: t,
329
329
  apiKey: n,
@@ -337,10 +337,10 @@ const an = async ({
337
337
  url: location.href,
338
338
  ...o
339
339
  },
340
- ...await an({
340
+ ...await cn({
341
341
  canTrack: t
342
342
  }),
343
- userAttributes: et(),
343
+ userAttributes: rt(),
344
344
  ownerId: n
345
345
  }
346
346
  });
@@ -352,27 +352,27 @@ async function se({
352
352
  B.error("Missing API key for track call. Please provide your API key.");
353
353
  return;
354
354
  }
355
- if (!t.canTrack || A() || !(T() || R === "reactNative"))
355
+ if (!t.canTrack || P() || !(T() || E === "reactNative"))
356
356
  return;
357
357
  const o = `${e || "https://cdn.builder.io"}/api/v1/track`;
358
- return Ie(o), fetch(o, {
358
+ return Re(o), fetch(o, {
359
359
  method: "POST",
360
360
  body: JSON.stringify({
361
- events: [await ln(t)]
361
+ events: [await dn(t)]
362
362
  }),
363
363
  headers: {
364
364
  "content-type": "application/json",
365
- ...nt()
365
+ ...st()
366
366
  },
367
367
  mode: "cors"
368
368
  }).catch((r) => {
369
369
  console.error("Failed to track: ", r);
370
370
  });
371
371
  }
372
- const Ss = (e) => se({
372
+ const Ts = (e) => se({
373
373
  ...e,
374
374
  canTrack: !0
375
- }), cn = ({
375
+ }), un = ({
376
376
  builder: e,
377
377
  context: t,
378
378
  event: n,
@@ -384,11 +384,11 @@ const Ss = (e) => se({
384
384
  builder: e,
385
385
  context: t,
386
386
  event: n
387
- }), dn = (e) => ({
388
- isEditing: A(),
387
+ }), pn = (e) => ({
388
+ isEditing: P(),
389
389
  isBrowser: T(),
390
390
  isServer: !T(),
391
- getUserAttributes: () => et(),
391
+ getUserAttributes: () => rt(),
392
392
  trackConversion: (t, n) => {
393
393
  !(e != null && e.apiKey) || (e == null ? void 0 : e.canTrack) === !1 || se({
394
394
  type: "conversion",
@@ -404,10 +404,10 @@ const Ss = (e) => se({
404
404
  }
405
405
  });
406
406
  }
407
- }), un = (e, {
407
+ }), mn = (e, {
408
408
  isExpression: t = !0
409
409
  }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
410
- function lt({
410
+ function pt({
411
411
  rootState: e,
412
412
  localState: t,
413
413
  rootSetState: n
@@ -417,7 +417,7 @@ function lt({
417
417
  if (t && r in t)
418
418
  return t[r];
419
419
  const i = o[r];
420
- return typeof i == "object" && i !== null ? lt({
420
+ return typeof i == "object" && i !== null ? pt({
421
421
  rootState: i,
422
422
  localState: void 0,
423
423
  rootSetState: n ? (s) => {
@@ -432,7 +432,7 @@ function lt({
432
432
  }
433
433
  });
434
434
  }
435
- const xe = ({
435
+ const Fe = ({
436
436
  code: e,
437
437
  builder: t,
438
438
  context: n,
@@ -441,11 +441,11 @@ const xe = ({
441
441
  rootSetState: i,
442
442
  rootState: s
443
443
  }) => {
444
- const l = cn({
444
+ const l = un({
445
445
  builder: t,
446
446
  context: n,
447
447
  event: o,
448
- state: lt({
448
+ state: pt({
449
449
  rootState: s,
450
450
  localState: r,
451
451
  rootSetState: i
@@ -453,23 +453,23 @@ const xe = ({
453
453
  });
454
454
  return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
455
455
  };
456
- function pn() {
456
+ function hn() {
457
457
  var e;
458
- return typeof process < "u" && K((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
458
+ return typeof process < "u" && z((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
459
459
  }
460
- const mn = ({
460
+ const fn = ({
461
461
  shouldLogWarning: e
462
462
  }) => {
463
463
  var r;
464
- if (!pn())
464
+ if (!hn())
465
465
  return !1;
466
466
  const t = process.arch === "arm64", n = process.version.startsWith("v20"), o = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
467
467
  return t && n && !o ? (e && B.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
468
- }, hn = (e) => (T() || mn({
468
+ }, bn = (e) => (T() || fn({
469
469
  shouldLogWarning: !0
470
- }), xe(e)), fn = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, bn = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, gn = (e) => {
470
+ }), Fe(e)), gn = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, yn = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, vn = (e) => {
471
471
  var t, n, o, r, i, s;
472
- return ((o = (n = (t = fn.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = bn.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
472
+ return ((o = (n = (t = gn.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = yn.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
473
473
  };
474
474
  function ee({
475
475
  code: e,
@@ -483,17 +483,17 @@ function ee({
483
483
  }) {
484
484
  if (e.trim() === "")
485
485
  return;
486
- const a = gn(e.trim());
486
+ const a = vn(e.trim());
487
487
  if (a)
488
- return Xe({
488
+ return tt({
489
489
  ...o,
490
490
  ...n
491
491
  }, a);
492
492
  const u = {
493
- code: un(e, {
493
+ code: mn(e, {
494
494
  isExpression: s
495
495
  }),
496
- builder: dn(l),
496
+ builder: pn(l),
497
497
  context: t,
498
498
  event: i,
499
499
  rootSetState: r,
@@ -501,7 +501,7 @@ function ee({
501
501
  localState: n
502
502
  };
503
503
  try {
504
- return hn(u);
504
+ return bn(u);
505
505
  } catch (p) {
506
506
  B.error("Failed code evaluation: " + p.message, {
507
507
  code: e
@@ -509,15 +509,15 @@ function ee({
509
509
  return;
510
510
  }
511
511
  }
512
- function yn(e, t) {
512
+ function Sn(e, t) {
513
513
  var n;
514
514
  return {
515
515
  ...(n = e.component) == null ? void 0 : n.options,
516
516
  ...e.options,
517
- ...vn(e, t)
517
+ ...kn(e, t)
518
518
  };
519
519
  }
520
- const vn = (e, t) => {
520
+ const kn = (e, t) => {
521
521
  var n, o;
522
522
  if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((o = e.component.options) != null && o.text) && typeof e.component.options.text == "string")
523
523
  return {
@@ -531,7 +531,7 @@ const vn = (e, t) => {
531
531
  }))
532
532
  };
533
533
  };
534
- function Sn(e, ...t) {
534
+ function Cn(e, ...t) {
535
535
  const n = Object.assign({}, e);
536
536
  for (const o of t)
537
537
  delete n[o];
@@ -554,30 +554,30 @@ function ae(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
554
554
  }), ae(s, t, e, i, r);
555
555
  }));
556
556
  }
557
- function ct(e) {
557
+ function mt(e) {
558
558
  return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
559
559
  }
560
- function kn(e) {
560
+ function Tn(e) {
561
561
  if (!e || !Object.getOwnPropertyNames(e).length)
562
562
  return !1;
563
563
  let t = !1;
564
564
  return ae(e, (n) => {
565
- if (ct(n)) {
565
+ if (mt(n)) {
566
566
  t = !0;
567
567
  return;
568
568
  }
569
569
  }), t;
570
570
  }
571
- function Cn(e, t) {
571
+ function wn(e, t) {
572
572
  return !e || !Object.getOwnPropertyNames(e).length ? {} : (ae(e, (n, o) => {
573
- ct(n) && o(n[t] ?? void 0);
573
+ mt(n) && o(n[t] ?? void 0);
574
574
  }), e);
575
575
  }
576
- function Tn(e, t) {
576
+ function In(e, t) {
577
577
  var n, o;
578
- return (n = e.component) != null && n.options && kn((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 = Cn(e.component.options, t ?? "Default")), e;
578
+ return (n = e.component) != null && n.options && Tn((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 = wn(e.component.options, t ?? "Default")), e;
579
579
  }
580
- const $e = (e) => JSON.parse(JSON.stringify(e)), dt = (e, t, n) => {
580
+ const Pe = (e) => JSON.parse(JSON.stringify(e)), ht = (e, t, n) => {
581
581
  if (Object(e) !== e)
582
582
  return e;
583
583
  const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
@@ -595,9 +595,9 @@ function ye(e) {
595
595
  n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ye(e[n]));
596
596
  return t;
597
597
  }
598
- const wn = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), In = (e) => {
599
- if (wn) {
600
- const t = $e(e);
598
+ const $n = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), En = (e) => {
599
+ if ($n) {
600
+ const t = Pe(e);
601
601
  return {
602
602
  ...t,
603
603
  properties: {
@@ -608,7 +608,7 @@ const wn = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), In = (e) =
608
608
  }
609
609
  };
610
610
  } else {
611
- const t = ye(Sn(e, "children", "meta"));
611
+ const t = ye(Cn(e, "children", "meta"));
612
612
  return {
613
613
  ...t,
614
614
  properties: {
@@ -621,7 +621,7 @@ const wn = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), In = (e) =
621
621
  meta: e.meta
622
622
  };
623
623
  }
624
- }, $n = ({
624
+ }, Rn = ({
625
625
  block: e,
626
626
  context: t,
627
627
  localState: n,
@@ -630,7 +630,7 @@ const wn = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), In = (e) =
630
630
  }) => {
631
631
  if (!e.bindings)
632
632
  return e;
633
- const i = In(e);
633
+ const i = En(e);
634
634
  for (const s in e.bindings) {
635
635
  const l = e.bindings[s], a = ee({
636
636
  code: l,
@@ -639,11 +639,11 @@ const wn = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), In = (e) =
639
639
  rootSetState: r,
640
640
  context: t
641
641
  });
642
- dt(i, s, a);
642
+ ht(i, s, a);
643
643
  }
644
644
  return i;
645
645
  };
646
- function Rn({
646
+ function Pn({
647
647
  block: e,
648
648
  context: t,
649
649
  localState: n,
@@ -651,33 +651,33 @@ function Rn({
651
651
  rootSetState: r
652
652
  }) {
653
653
  let i = e;
654
- return i = $n({
654
+ return i = Rn({
655
655
  block: i,
656
656
  localState: n,
657
657
  rootState: o,
658
658
  rootSetState: r,
659
659
  context: t
660
- }), i = Tn(i, o.locale), i;
660
+ }), i = In(i, o.locale), i;
661
661
  }
662
- function Re(e) {
662
+ function Ae(e) {
663
663
  const t = e || (T() ? window.location.search : void 0);
664
- return t ? _e(t).indexOf("builder.preview=") !== -1 : !1;
664
+ return t ? ot(t).indexOf("builder.preview=") !== -1 : !1;
665
665
  }
666
- const En = (e) => ({
666
+ const An = (e) => ({
667
667
  type: "builder.registerComponent",
668
668
  data: le(e)
669
- }), An = (e) => {
669
+ }), Bn = (e) => {
670
670
  const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
671
671
  return `return (${!t.startsWith("function") && !t.startsWith("async") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
672
672
  };
673
673
  function le(e) {
674
- return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? An(n) : n));
674
+ return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? Bn(n) : n));
675
675
  }
676
- const Ue = {};
677
- function ks(e, t) {
676
+ const He = {};
677
+ function ws(e, t) {
678
678
  e === "plugin" && (t = le(t));
679
- let n = Ue[e];
680
- if (n || (n = Ue[e] = []), n.push(t), T()) {
679
+ let n = He[e];
680
+ if (n || (n = He[e] = []), n.push(t), T()) {
681
681
  const o = {
682
682
  type: "builder.register",
683
683
  data: {
@@ -692,7 +692,7 @@ function ks(e, t) {
692
692
  }
693
693
  }
694
694
  }
695
- function Cs(e) {
695
+ function Is(e) {
696
696
  var t;
697
697
  if (T()) {
698
698
  const n = JSON.parse(JSON.stringify(e));
@@ -702,50 +702,50 @@ function Cs(e) {
702
702
  }, "*");
703
703
  }
704
704
  }
705
- const Le = {};
706
- function Ts(e) {
705
+ const Me = {};
706
+ function $s(e) {
707
707
  if (T()) {
708
- Object.assign(Le, e);
708
+ Object.assign(Me, e);
709
709
  const t = {
710
710
  type: "builder.settingsChange",
711
- data: Le
711
+ data: Me
712
712
  };
713
713
  parent.postMessage(t, "*");
714
714
  }
715
715
  }
716
- const Fe = "builder.", Pn = "options.", ut = (e) => {
716
+ const je = "builder.", Vn = "options.", ft = (e) => {
717
717
  if (!e)
718
718
  return {};
719
- const t = Ze(e), n = {};
719
+ const t = nt(e), n = {};
720
720
  return Object.keys(t).forEach((o) => {
721
- if (o.startsWith(Fe)) {
722
- const r = o.replace(Fe, "").replace(Pn, "");
721
+ if (o.startsWith(je)) {
722
+ const r = o.replace(je, "").replace(Vn, "");
723
723
  n[r] = t[o];
724
724
  }
725
725
  }), n;
726
- }, Bn = () => {
726
+ }, Nn = () => {
727
727
  if (!T())
728
728
  return {};
729
729
  const e = new URLSearchParams(window.location.search);
730
- return ut(e);
731
- }, Vn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
732
- function pt(e, t) {
730
+ return ft(e);
731
+ }, Wn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
732
+ function bt(e, t) {
733
733
  let n;
734
734
  try {
735
735
  n = new URL(t.origin);
736
736
  } catch {
737
737
  return !1;
738
738
  }
739
- return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e || Vn).findIndex((o) => o.startsWith("*.") ? n.hostname.endsWith(o.slice(1)) : o === n.hostname) > -1;
739
+ return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e || Wn).findIndex((o) => o.startsWith("*.") ? n.hostname.endsWith(o.slice(1)) : o === n.hostname) > -1;
740
740
  }
741
- let He = !1;
742
- const mt = (e) => {
741
+ let ze = !1;
742
+ const gt = (e) => {
743
743
  var t, n;
744
- He || (He = !0, T() && ((t = window.parent) == null || t.postMessage({
744
+ ze || (ze = !0, T() && ((t = window.parent) == null || t.postMessage({
745
745
  type: "builder.sdkInfo",
746
746
  data: {
747
- target: R,
748
- version: tt,
747
+ target: E,
748
+ version: it,
749
749
  supportsPatchUpdates: !1,
750
750
  // Supports builder-model="..." attribute which is needed to
751
751
  // scope our '+ add block' button styling
@@ -763,7 +763,7 @@ const mt = (e) => {
763
763
  }
764
764
  }, "*"), window.addEventListener("message", (o) => {
765
765
  var i, s;
766
- if (!pt(e.trustedHosts, o))
766
+ if (!bt(e.trustedHosts, o))
767
767
  return;
768
768
  const {
769
769
  data: r
@@ -804,12 +804,12 @@ const mt = (e) => {
804
804
  }
805
805
  }
806
806
  })));
807
- }, ht = ({
807
+ }, yt = ({
808
808
  model: e,
809
809
  trustedHosts: t,
810
810
  callbacks: n
811
811
  }) => (o) => {
812
- if (!pt(t, o))
812
+ if (!bt(t, o))
813
813
  return;
814
814
  const {
815
815
  data: r
@@ -835,7 +835,7 @@ const mt = (e) => {
835
835
  break;
836
836
  }
837
837
  }
838
- }, ws = ({
838
+ }, Es = ({
839
839
  model: e,
840
840
  apiKey: t,
841
841
  callback: n,
@@ -844,11 +844,11 @@ const mt = (e) => {
844
844
  if (!T)
845
845
  return B.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
846
846
  };
847
- mt({
847
+ gt({
848
848
  modelName: e,
849
849
  apiKey: t
850
850
  });
851
- const r = ht({
851
+ const r = yt({
852
852
  callbacks: {
853
853
  contentUpdate: n,
854
854
  animation: () => {
@@ -864,24 +864,24 @@ const mt = (e) => {
864
864
  return window.addEventListener("message", r), () => {
865
865
  window.removeEventListener("message", r);
866
866
  };
867
- }, Nn = "builder.tests", Ee = (e) => `${Nn}.${e}`, Wn = ({
867
+ }, On = "builder.tests", Be = (e) => `${On}.${e}`, Dn = ({
868
868
  contentId: e
869
- }) => ot({
870
- name: Ee(e),
869
+ }) => at({
870
+ name: Be(e),
871
871
  canTrack: !0
872
- }), Dn = ({
872
+ }), xn = ({
873
873
  contentId: e
874
874
  }) => ue({
875
- name: Ee(e),
875
+ name: Be(e),
876
876
  canTrack: !0
877
- }), On = ({
877
+ }), Un = ({
878
878
  contentId: e,
879
879
  value: t
880
- }) => we({
881
- name: Ee(e),
880
+ }) => Ee({
881
+ name: Be(e),
882
882
  value: t,
883
883
  canTrack: !0
884
- }), ft = (e) => K(e.id) && K(e.variations) && Object.keys(e.variations).length > 0, xn = ({
884
+ }), vt = (e) => z(e.id) && z(e.variations) && Object.keys(e.variations).length > 0, Ln = ({
885
885
  id: e,
886
886
  variations: t
887
887
  }) => {
@@ -894,15 +894,15 @@ const mt = (e) => {
894
894
  return i;
895
895
  }
896
896
  return e;
897
- }, bt = (e) => {
898
- const t = xn(e);
899
- return On({
897
+ }, St = (e) => {
898
+ const t = Ln(e);
899
+ return Un({
900
900
  contentId: e.id,
901
901
  value: t
902
902
  }).catch((n) => {
903
903
  B.error("could not store A/B test variation: ", n);
904
904
  }), t;
905
- }, gt = ({
905
+ }, kt = ({
906
906
  item: e,
907
907
  testGroupId: t
908
908
  }) => {
@@ -916,7 +916,7 @@ const mt = (e) => {
916
916
  testVariationId: n.id,
917
917
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
918
918
  };
919
- }, Un = ({
919
+ }, Fn = ({
920
920
  item: e,
921
921
  canTrack: t
922
922
  }) => {
@@ -924,14 +924,14 @@ const mt = (e) => {
924
924
  return e;
925
925
  if (!e)
926
926
  return;
927
- if (!ft(e))
927
+ if (!vt(e))
928
928
  return e;
929
- const n = Dn({
929
+ const n = xn({
930
930
  contentId: e.id
931
- }) || bt({
931
+ }) || St({
932
932
  variations: e.variations,
933
933
  id: e.id
934
- }), o = gt({
934
+ }), o = kt({
935
935
  item: e,
936
936
  testGroupId: n
937
937
  });
@@ -939,18 +939,18 @@ const mt = (e) => {
939
939
  ...e,
940
940
  ...o
941
941
  };
942
- }, Ln = async ({
942
+ }, Hn = async ({
943
943
  item: e,
944
944
  canTrack: t
945
945
  }) => {
946
- if (!t || !ft(e))
946
+ if (!t || !vt(e))
947
947
  return e;
948
- const o = await Wn({
948
+ const o = await Dn({
949
949
  contentId: e.id
950
- }) || bt({
950
+ }) || St({
951
951
  variations: e.variations,
952
952
  id: e.id
953
- }), r = gt({
953
+ }), r = kt({
954
954
  item: e,
955
955
  testGroupId: o
956
956
  });
@@ -959,8 +959,8 @@ const mt = (e) => {
959
959
  ...r
960
960
  };
961
961
  };
962
- const Me = "builder.userAttributes";
963
- function je() {
962
+ const Ke = "builder.userAttributes";
963
+ function qe() {
964
964
  let e = !0;
965
965
  const t = /* @__PURE__ */ new Set();
966
966
  return {
@@ -971,15 +971,15 @@ function je() {
971
971
  ...this.getUserAttributes(),
972
972
  ...n
973
973
  };
974
- we({
975
- name: Me,
974
+ Ee({
975
+ name: Ke,
976
976
  value: JSON.stringify(o),
977
977
  canTrack: e
978
978
  }), t.forEach((r) => r(o));
979
979
  },
980
980
  getUserAttributes() {
981
981
  return T() ? JSON.parse(ue({
982
- name: Me,
982
+ name: Ke,
983
983
  canTrack: e
984
984
  }) || "{}") : {};
985
985
  },
@@ -996,24 +996,24 @@ function je() {
996
996
  };
997
997
  }
998
998
  let ve;
999
- T() && R === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = je()), ve = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : ve = je();
1000
- const ce = ve, Is = (e) => {
999
+ T() && E === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = qe()), ve = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : ve = qe();
1000
+ const ce = ve, Rs = (e) => {
1001
1001
  ce.setUserAttributes(e);
1002
1002
  }, G = (e) => {
1003
- const t = K(e) ? e : !0;
1003
+ const t = z(e) ? e : !0;
1004
1004
  return ce.setCanTrack(t), t;
1005
1005
  };
1006
- function Fn() {
1006
+ function Mn() {
1007
1007
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
1008
1008
  }
1009
- function Hn() {
1010
- const e = Fn().fetch;
1009
+ function jn() {
1010
+ const e = Mn().fetch;
1011
1011
  if (typeof e > "u")
1012
1012
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
1013
1013
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
1014
1014
  return e;
1015
1015
  }
1016
- const Mn = Hn();
1016
+ const zn = jn();
1017
1017
  function Se(e, t = null, n = ".") {
1018
1018
  return Object.keys(e).reduce((o, r) => {
1019
1019
  const i = e[r], s = [t, r].filter(Boolean).join(n);
@@ -1026,14 +1026,14 @@ function Se(e, t = null, n = ".") {
1026
1026
  };
1027
1027
  }, {});
1028
1028
  }
1029
- function yt(e, t, n = {}) {
1029
+ function Ct(e, t, n = {}) {
1030
1030
  for (const o in e) {
1031
1031
  const r = e[o], i = t ? t + "." + o : o;
1032
- r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? yt(r, i, n) : n[i] = r;
1032
+ r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? Ct(r, i, n) : n[i] = r;
1033
1033
  }
1034
1034
  return n;
1035
1035
  }
1036
- function jn(e) {
1036
+ function Kn(e) {
1037
1037
  const t = {};
1038
1038
  for (const n in e) {
1039
1039
  const o = n.split(".");
@@ -1045,7 +1045,7 @@ function jn(e) {
1045
1045
  }
1046
1046
  return t;
1047
1047
  }
1048
- const Kn = "v3", Ke = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ae = (e) => {
1048
+ const qn = "v3", Ge = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ve = (e) => {
1049
1049
  const {
1050
1050
  limit: t = 30,
1051
1051
  userAttributes: n,
@@ -1054,7 +1054,7 @@ const Kn = "v3", Ke = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ae = (
1054
1054
  apiKey: i,
1055
1055
  enrich: s,
1056
1056
  locale: l,
1057
- apiVersion: a = Kn,
1057
+ apiVersion: a = qn,
1058
1058
  fields: u,
1059
1059
  omit: p,
1060
1060
  offset: f,
@@ -1062,87 +1062,87 @@ const Kn = "v3", Ke = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ae = (
1062
1062
  staleCacheSeconds: m,
1063
1063
  sort: b,
1064
1064
  includeUnpublished: g,
1065
- apiHost: P
1065
+ apiHost: A
1066
1066
  } = e;
1067
1067
  if (!i)
1068
1068
  throw new Error("Missing API key");
1069
1069
  if (!["v3"].includes(a))
1070
1070
  throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
1071
- const U = t !== 1, V = P || "https://cdn.builder.io", w = new URL(`${V}/api/${a}/content/${r}`);
1071
+ const U = t !== 1, V = A || "https://cdn.builder.io", w = new URL(`${V}/api/${a}/content/${r}`);
1072
1072
  w.searchParams.set("apiKey", i), w.searchParams.set("limit", String(t)), w.searchParams.set("noTraverse", String(U)), w.searchParams.set("includeRefs", String(!0)), l && w.searchParams.set("locale", l);
1073
- let D = n || {};
1074
- if (s && w.searchParams.set("enrich", String(s)), w.searchParams.set("omit", p ?? "meta.componentsUsed"), u && w.searchParams.set("fields", u), Number.isFinite(f) && f > -1 && w.searchParams.set("offset", String(Math.floor(f))), typeof g == "boolean" && w.searchParams.set("includeUnpublished", String(g)), c && Ke(c) && w.searchParams.set("cacheSeconds", String(c)), m && Ke(m) && w.searchParams.set("staleCacheSeconds", String(m)), b) {
1075
- const O = Se({
1073
+ let O = n || {};
1074
+ if (s && w.searchParams.set("enrich", String(s)), w.searchParams.set("omit", p ?? "meta.componentsUsed"), u && w.searchParams.set("fields", u), Number.isFinite(f) && f > -1 && w.searchParams.set("offset", String(Math.floor(f))), typeof g == "boolean" && w.searchParams.set("includeUnpublished", String(g)), c && Ge(c) && w.searchParams.set("cacheSeconds", String(c)), m && Ge(m) && w.searchParams.set("staleCacheSeconds", String(m)), b) {
1075
+ const D = Se({
1076
1076
  sort: b
1077
1077
  });
1078
- for (const H in O)
1079
- w.searchParams.set(H, JSON.stringify(O[H]));
1078
+ for (const H in D)
1079
+ w.searchParams.set(H, JSON.stringify(D[H]));
1080
1080
  }
1081
1081
  const J = {
1082
- ...Bn(),
1083
- ...Ze(e.options || {})
1082
+ ...Nn(),
1083
+ ...nt(e.options || {})
1084
1084
  };
1085
- D = {
1086
- ...D,
1087
- ...zn(J)
1085
+ O = {
1086
+ ...O,
1087
+ ...Jn(J)
1088
1088
  };
1089
1089
  const Q = Se(J);
1090
- for (const O in Q)
1091
- w.searchParams.set(O, String(Q[O]));
1092
- if (Object.keys(D).length > 0 && w.searchParams.set("userAttributes", JSON.stringify(D)), o) {
1093
- const O = yt({
1090
+ for (const D in Q)
1091
+ w.searchParams.set(D, String(Q[D]));
1092
+ if (Object.keys(O).length > 0 && w.searchParams.set("userAttributes", JSON.stringify(O)), o) {
1093
+ const D = Ct({
1094
1094
  query: o
1095
1095
  });
1096
- for (const H in O)
1097
- w.searchParams.set(H, JSON.stringify(O[H]));
1096
+ for (const H in D)
1097
+ w.searchParams.set(H, JSON.stringify(D[H]));
1098
1098
  }
1099
1099
  return w;
1100
- }, qn = (e) => {
1100
+ }, Gn = (e) => {
1101
1101
  const t = {};
1102
1102
  for (const n in e)
1103
1103
  n.startsWith("userAttributes.") && (t[n] = e[n], delete e[n]);
1104
1104
  return t;
1105
- }, zn = (e) => {
1105
+ }, Jn = (e) => {
1106
1106
  if (T() && e.preview === "BUILDER_STUDIO") {
1107
1107
  e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
1108
- const t = qn(e), {
1108
+ const t = Gn(e), {
1109
1109
  userAttributes: n
1110
- } = jn(t);
1110
+ } = Kn(t);
1111
1111
  return n;
1112
1112
  }
1113
1113
  return {};
1114
- }, Gn = (e) => "results" in e;
1115
- async function Pe(e) {
1114
+ }, Qn = (e) => "results" in e;
1115
+ async function Ne(e) {
1116
1116
  var o;
1117
1117
  const t = e.locale || ((o = e.userAttributes) == null ? void 0 : o.locale);
1118
1118
  t && (e.locale = t, e.userAttributes = {
1119
1119
  locale: t,
1120
1120
  ...e.userAttributes
1121
1121
  });
1122
- const n = await Yn({
1122
+ const n = await Zn({
1123
1123
  ...e,
1124
1124
  limit: 1
1125
1125
  });
1126
1126
  return n && n[0] || null;
1127
1127
  }
1128
- const Jn = async (e) => {
1128
+ const Yn = async (e) => {
1129
1129
  var s;
1130
- const t = Ae(e), n = e.fetch ?? Mn, o = {
1130
+ const t = Ve(e), n = e.fetch ?? zn, o = {
1131
1131
  ...e.fetchOptions,
1132
1132
  headers: {
1133
1133
  ...(s = e.fetchOptions) == null ? void 0 : s.headers,
1134
- ...nt()
1134
+ ...st()
1135
1135
  }
1136
1136
  };
1137
1137
  return await (await n(t.href, o)).json();
1138
- }, Qn = async (e, t, n = Ae(e)) => {
1138
+ }, Xn = async (e, t, n = Ve(e)) => {
1139
1139
  const o = G(e.canTrack);
1140
- if (n.search.includes("preview="), !o || !(T() || R === "reactNative"))
1140
+ if (n.search.includes("preview="), !o || !(T() || E === "reactNative"))
1141
1141
  return t.results;
1142
1142
  try {
1143
1143
  const r = [];
1144
1144
  for (const i of t.results)
1145
- r.push(await Ln({
1145
+ r.push(await Hn({
1146
1146
  item: i,
1147
1147
  canTrack: o
1148
1148
  }));
@@ -1152,17 +1152,17 @@ const Jn = async (e) => {
1152
1152
  }
1153
1153
  return t.results;
1154
1154
  };
1155
- async function Yn(e) {
1156
- const t = Ae(e), n = await Jn(e);
1157
- if (!Gn(n))
1155
+ async function Zn(e) {
1156
+ const t = Ve(e), n = await Yn(e);
1157
+ if (!Qn(n))
1158
1158
  throw B.error("Error fetching data. ", {
1159
1159
  url: t,
1160
1160
  content: n,
1161
1161
  options: e
1162
1162
  }), n;
1163
- return Qn(e, n);
1163
+ return Xn(e, n);
1164
1164
  }
1165
- const $s = async (e) => {
1165
+ const Ps = async (e) => {
1166
1166
  var o, r, i;
1167
1167
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
1168
1168
  ...e,
@@ -1174,15 +1174,15 @@ const $s = async (e) => {
1174
1174
  urlPath: t
1175
1175
  } : {}
1176
1176
  },
1177
- options: ut(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
1177
+ options: ft(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
1178
1178
  };
1179
1179
  return {
1180
1180
  apiKey: n.apiKey,
1181
1181
  model: n.model,
1182
- content: await Pe(n)
1182
+ content: await Ne(n)
1183
1183
  };
1184
- }, Be = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
1185
- function Xn(e, t, n = {}) {
1184
+ }, We = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
1185
+ function _n(e, t, n = {}) {
1186
1186
  let o, r, i, s = null, l = 0;
1187
1187
  const a = function() {
1188
1188
  l = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
@@ -1204,55 +1204,55 @@ function Z(e, ...t) {
1204
1204
  }
1205
1205
  return n;
1206
1206
  }
1207
- function Zn(e) {
1207
+ function eo(e) {
1208
1208
  for (const t of e)
1209
1209
  switch (t.trigger) {
1210
1210
  case "pageLoad":
1211
- kt(t);
1211
+ It(t);
1212
1212
  break;
1213
1213
  case "scrollInView":
1214
- eo(t);
1214
+ no(t);
1215
1215
  break;
1216
1216
  }
1217
1217
  }
1218
- function vt(e) {
1218
+ function Tt(e) {
1219
1219
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
1220
1220
  }
1221
- function St(e, t) {
1222
- const n = _n(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
1221
+ function wt(e, t) {
1222
+ const n = to(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
1223
1223
  for (const l of s)
1224
1224
  for (const a of n)
1225
1225
  a in l || (l[a] = o[a]);
1226
1226
  }
1227
- function _n(e) {
1227
+ function to(e) {
1228
1228
  const t = [];
1229
1229
  for (const n of e.steps)
1230
1230
  for (const o in n.styles)
1231
1231
  t.indexOf(o) === -1 && t.push(o);
1232
1232
  return t;
1233
1233
  }
1234
- function kt(e) {
1234
+ function It(e) {
1235
1235
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
1236
1236
  if (!t.length) {
1237
- vt(e.elementId || e.id || "");
1237
+ Tt(e.elementId || e.id || "");
1238
1238
  return;
1239
1239
  }
1240
1240
  Array.from(t).forEach((n) => {
1241
- St(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Z(n.style, e.steps[0].styles), setTimeout(() => {
1242
- n.style.transition = `all ${e.duration}s ${Be(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Z(n.style, e.steps[1].styles), setTimeout(() => {
1241
+ wt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Z(n.style, e.steps[0].styles), setTimeout(() => {
1242
+ n.style.transition = `all ${e.duration}s ${We(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Z(n.style, e.steps[1].styles), setTimeout(() => {
1243
1243
  n.style.transition = "", n.style.transitionDelay = "";
1244
1244
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
1245
1245
  });
1246
1246
  });
1247
1247
  }
1248
- function eo(e) {
1248
+ function no(e) {
1249
1249
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
1250
1250
  if (!t.length) {
1251
- vt(e.elementId || e.id || "");
1251
+ Tt(e.elementId || e.id || "");
1252
1252
  return;
1253
1253
  }
1254
1254
  Array.from(t).forEach((n) => {
1255
- St(e, n);
1255
+ wt(e, n);
1256
1256
  let o = !1, r = !1;
1257
1257
  function i() {
1258
1258
  !o && l(n) ? (o = !0, r = !0, setTimeout(() => {
@@ -1261,7 +1261,7 @@ function eo(e) {
1261
1261
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
1262
1262
  })) : e.repeat && o && !r && !l(n) && (o = !1, Z(n.style, e.steps[0].styles));
1263
1263
  }
1264
- const s = Xn(i, 200, {
1264
+ const s = _n(i, 200, {
1265
1265
  leading: !1
1266
1266
  });
1267
1267
  function l(p) {
@@ -1273,49 +1273,49 @@ function eo(e) {
1273
1273
  Z(n.style, a);
1274
1274
  }
1275
1275
  u(), setTimeout(() => {
1276
- n.style.transition = `all ${e.duration}s ${Be(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
1276
+ n.style.transition = `all ${e.duration}s ${We(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
1277
1277
  }), document.addEventListener("scroll", s, {
1278
1278
  capture: !0,
1279
1279
  passive: !0
1280
1280
  }), i();
1281
1281
  });
1282
1282
  }
1283
- const Ct = (e) => Object.entries(e).map(([n, o]) => {
1283
+ const $t = (e) => Object.entries(e).map(([n, o]) => {
1284
1284
  if (typeof o == "string")
1285
- return `${Be(n)}: ${o};`;
1286
- }).filter(K), to = (e) => Ct(e).join(`
1287
- `), Rs = ({
1285
+ return `${We(n)}: ${o};`;
1286
+ }).filter(z), oo = (e) => $t(e).join(`
1287
+ `), As = ({
1288
1288
  mediaQuery: e,
1289
1289
  className: t,
1290
1290
  styles: n
1291
1291
  }) => {
1292
1292
  const o = `.${t} {
1293
- ${to(n)}
1293
+ ${oo(n)}
1294
1294
  }`;
1295
1295
  return e ? `${e} {
1296
1296
  ${o}
1297
1297
  }` : o;
1298
1298
  };
1299
- function no({
1299
+ function ro({
1300
1300
  style: e
1301
1301
  }) {
1302
1302
  return e;
1303
1303
  }
1304
- const Es = ({
1304
+ const Bs = ({
1305
1305
  block: e,
1306
1306
  context: t
1307
- }) => Tt(no({
1307
+ }) => Et(ro({
1308
1308
  style: e.style || {},
1309
1309
  context: t,
1310
1310
  block: e
1311
1311
  }));
1312
- function Tt(e) {
1313
- switch (R) {
1312
+ function Et(e) {
1313
+ switch (E) {
1314
1314
  case "svelte":
1315
1315
  case "vue":
1316
1316
  case "solid":
1317
1317
  case "angular":
1318
- return Ct(e).join(" ");
1318
+ return $t(e).join(" ");
1319
1319
  case "qwik":
1320
1320
  case "reactNative":
1321
1321
  case "react":
@@ -1323,7 +1323,7 @@ function Tt(e) {
1323
1323
  return e;
1324
1324
  }
1325
1325
  }
1326
- const wt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, oo = ({
1326
+ const Rt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, io = ({
1327
1327
  block: e,
1328
1328
  registeredComponents: t,
1329
1329
  model: n
@@ -1333,14 +1333,14 @@ const wt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1333
1333
  if (!o)
1334
1334
  return null;
1335
1335
  const r = t[o];
1336
- if (!r || wt(r, n)) {
1336
+ if (!r || Rt(r, n)) {
1337
1337
  console.warn(`
1338
1338
  Could not find a registered component named "${o}".
1339
1339
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
1340
1340
  return;
1341
1341
  } else
1342
1342
  return r;
1343
- }, ro = ({
1343
+ }, so = ({
1344
1344
  block: e,
1345
1345
  context: t
1346
1346
  }) => {
@@ -1373,59 +1373,59 @@ const wt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1373
1373
  },
1374
1374
  block: o
1375
1375
  }));
1376
- }, io = (e, t) => {
1376
+ }, ao = (e, t) => {
1377
1377
  var n;
1378
1378
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
1379
1379
  builderLinkComponent: t
1380
1380
  } : {};
1381
- }, so = (e, t, n) => {
1381
+ }, lo = (e, t, n) => {
1382
1382
  var o;
1383
1383
  return (o = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && o.builderComponents ? {
1384
- builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !wt(s, n)))
1384
+ builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !Rt(s, n)))
1385
1385
  } : {};
1386
- }, ao = (e, t) => {
1386
+ }, co = (e, t) => {
1387
1387
  var n;
1388
1388
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
1389
1389
  builderBlock: t
1390
1390
  } : {};
1391
- }, lo = (e, t) => {
1391
+ }, uo = (e, t) => {
1392
1392
  var n;
1393
1393
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
1394
1394
  builderContext: t
1395
1395
  } : {};
1396
- }, co = (e) => e.toString(), uo = () => Promise.resolve().then(() => Io).then((e) => e.default).catch((e) => {
1396
+ }, po = (e) => e.toString(), mo = () => Promise.resolve().then(() => Eo).then((e) => e.default).catch((e) => {
1397
1397
  throw console.error(
1398
1398
  "Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
1399
1399
  e
1400
1400
  ), e;
1401
- }), po = () => import("./block-wrapper-tny9tjLX.js").then((e) => e.default).catch((e) => {
1401
+ }), ho = () => import("./block-wrapper-hsmUEUmJ.js").then((e) => e.default).catch((e) => {
1402
1402
  throw console.error(
1403
1403
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
1404
1404
  e
1405
1405
  ), e;
1406
- }), mo = () => import("./component-ref-d2TAsp69.js").then((e) => e.default).catch((e) => {
1406
+ }), fo = () => import("./component-ref-2JLic_6J.js").then((e) => e.default).catch((e) => {
1407
1407
  throw console.error(
1408
1408
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
1409
1409
  e
1410
1410
  ), e;
1411
- }), ho = () => import("./repeated-block-Ga5ASejd.js").then((e) => e.default).catch((e) => {
1411
+ }), bo = () => import("./repeated-block-GCDk4uyK.js").then((e) => e.default).catch((e) => {
1412
1412
  throw console.error(
1413
1413
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
1414
1414
  e
1415
1415
  ), e;
1416
- }), fo = () => import("./style-wrapper-dI5wRv59.js").then((e) => e.default).catch((e) => {
1416
+ }), go = () => import("./style-wrapper-uzjZV5OS.js").then((e) => e.default).catch((e) => {
1417
1417
  throw console.error(
1418
1418
  "Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
1419
1419
  e
1420
1420
  ), e;
1421
- }), bo = y({
1421
+ }), yo = y({
1422
1422
  name: "block",
1423
1423
  components: {
1424
- StyleWrapper: Y(fo),
1425
- RepeatedBlock: Y(ho),
1426
- ComponentRef: Y(mo),
1427
- BlockWrapper: Y(po),
1428
- DynamicDiv: Y(uo)
1424
+ StyleWrapper: Y(go),
1425
+ RepeatedBlock: Y(bo),
1426
+ ComponentRef: Y(fo),
1427
+ BlockWrapper: Y(ho),
1428
+ DynamicDiv: Y(mo)
1429
1429
  },
1430
1430
  props: ["block", "context", "registeredComponents", "linkComponent"],
1431
1431
  data() {
@@ -1434,12 +1434,12 @@ const wt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1434
1434
  value: null,
1435
1435
  update: !1
1436
1436
  },
1437
- generateKey: co
1437
+ generateKey: po
1438
1438
  };
1439
1439
  },
1440
1440
  mounted() {
1441
1441
  const e = this.processedBlock.id, t = this.processedBlock.animations;
1442
- t && e && Zn(
1442
+ t && e && eo(
1443
1443
  t.map((n) => ({
1444
1444
  ...n,
1445
1445
  elementId: e
@@ -1450,14 +1450,14 @@ const wt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1450
1450
  },
1451
1451
  computed: {
1452
1452
  repeatItem() {
1453
- return ro({
1453
+ return so({
1454
1454
  block: this.block,
1455
1455
  context: this.context
1456
1456
  });
1457
1457
  },
1458
1458
  processedBlock() {
1459
1459
  var t;
1460
- return (t = this.block.repeat) != null && t.collection ? this.block : Rn({
1460
+ return (t = this.block.repeat) != null && t.collection ? this.block : Pn({
1461
1461
  block: this.block,
1462
1462
  localState: this.context.localState,
1463
1463
  rootState: this.context.rootState,
@@ -1466,7 +1466,7 @@ const wt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1466
1466
  });
1467
1467
  },
1468
1468
  blockComponent() {
1469
- return oo({
1469
+ return io({
1470
1470
  block: this.processedBlock,
1471
1471
  registeredComponents: this.registeredComponents,
1472
1472
  model: this.context.model
@@ -1493,11 +1493,11 @@ const wt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1493
1493
  blockChildren: this.processedBlock.children ?? [],
1494
1494
  componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
1495
1495
  componentOptions: {
1496
- ...yn(this.processedBlock, this.context),
1497
- ...ao(this.blockComponent, this.processedBlock),
1498
- ...lo(this.blockComponent, this.context),
1499
- ...io(this.blockComponent, this.linkComponent),
1500
- ...so(
1496
+ ...Sn(this.processedBlock, this.context),
1497
+ ...co(this.blockComponent, this.processedBlock),
1498
+ ...uo(this.blockComponent, this.context),
1499
+ ...ao(this.blockComponent, this.linkComponent),
1500
+ ...lo(
1501
1501
  this.blockComponent,
1502
1502
  this.registeredComponents,
1503
1503
  this.context.model
@@ -1508,16 +1508,16 @@ const wt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1508
1508
  registeredComponents: this.registeredComponents,
1509
1509
  builderBlock: this.processedBlock,
1510
1510
  includeBlockProps: ((t = this.blockComponent) == null ? void 0 : t.noWrap) === !0,
1511
- isInteractive: !((n = this.blockComponent) != null && n.isRSC && R === "rsc")
1511
+ isInteractive: !((n = this.blockComponent) != null && n.isRSC && E === "rsc")
1512
1512
  };
1513
1513
  }
1514
1514
  }
1515
1515
  });
1516
- function go(e, t, n, o, r, i) {
1516
+ function vo(e, t, n, o, r, i) {
1517
1517
  var f;
1518
1518
  const s = k("StyleWrapper"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), p = k("RepeatedBlock");
1519
1519
  return e.canShowBlock ? (d(), h(I, { key: 0 }, [
1520
- E(s, {
1520
+ R(s, {
1521
1521
  block: e.processedBlock,
1522
1522
  context: e.context,
1523
1523
  id: e.block.id
@@ -1555,7 +1555,7 @@ function go(e, t, n, o, r, i) {
1555
1555
  context: e.context
1556
1556
  }, {
1557
1557
  default: x(() => [
1558
- E(l, {
1558
+ R(l, {
1559
1559
  componentRef: e.componentRefProps.componentRef,
1560
1560
  componentOptions: e.componentRefProps.componentOptions,
1561
1561
  blockChildren: e.componentRefProps.blockChildren,
@@ -1579,10 +1579,10 @@ function go(e, t, n, o, r, i) {
1579
1579
  ], 64))
1580
1580
  ], 64)) : C("", !0);
1581
1581
  }
1582
- const It = /* @__PURE__ */ v(bo, [["render", go]]), As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1582
+ const Pt = /* @__PURE__ */ v(yo, [["render", vo]]), Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1583
1583
  __proto__: null,
1584
- default: It
1585
- }, Symbol.toStringTag, { value: "Module" })), yo = y({
1584
+ default: Pt
1585
+ }, Symbol.toStringTag, { value: "Module" })), So = y({
1586
1586
  name: "builder-blocks-wrapper",
1587
1587
  props: [
1588
1588
  "blocks",
@@ -1626,7 +1626,7 @@ const It = /* @__PURE__ */ v(bo, [["render", go]]), As = /* @__PURE__ */ Object.
1626
1626
  methods: {
1627
1627
  onClick() {
1628
1628
  var e, t;
1629
- A() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1629
+ P() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1630
1630
  {
1631
1631
  type: "builder.clickEmptyBlocks",
1632
1632
  data: {
@@ -1639,7 +1639,7 @@ const It = /* @__PURE__ */ v(bo, [["render", go]]), As = /* @__PURE__ */ Object.
1639
1639
  },
1640
1640
  onMouseEnter() {
1641
1641
  var e, t;
1642
- A() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1642
+ P() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1643
1643
  {
1644
1644
  type: "builder.hoverEmptyBlocks",
1645
1645
  data: {
@@ -1652,7 +1652,7 @@ const It = /* @__PURE__ */ v(bo, [["render", go]]), As = /* @__PURE__ */ Object.
1652
1652
  }
1653
1653
  }
1654
1654
  });
1655
- function vo(e, t, n, o, r, i) {
1655
+ function ko(e, t, n, o, r, i) {
1656
1656
  return d(), S(X(e.BlocksWrapper), $({
1657
1657
  ref: "blocksWrapperRef",
1658
1658
  class: e.className + " component-5vz8uirn7sc",
@@ -1669,9 +1669,9 @@ function vo(e, t, n, o, r, i) {
1669
1669
  _: 3
1670
1670
  }, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
1671
1671
  }
1672
- const So = /* @__PURE__ */ v(yo, [["render", vo], ["__scopeId", "data-v-82fc93d6"]]), ko = y({
1672
+ const Co = /* @__PURE__ */ v(So, [["render", ko], ["__scopeId", "data-v-82fc93d6"]]), To = y({
1673
1673
  name: "builder-blocks",
1674
- components: { BlocksWrapper: So, Block: It },
1674
+ components: { BlocksWrapper: Co, Block: Pt },
1675
1675
  props: [
1676
1676
  "blocks",
1677
1677
  "parent",
@@ -1685,10 +1685,10 @@ const So = /* @__PURE__ */ v(yo, [["render", vo], ["__scopeId", "data-v-82fc93d6
1685
1685
  ],
1686
1686
  inject: {
1687
1687
  builderContext: ge.key,
1688
- componentsContext: Ye.key
1688
+ componentsContext: et.key
1689
1689
  }
1690
1690
  });
1691
- function Co(e, t, n, o, r, i) {
1691
+ function wo(e, t, n, o, r, i) {
1692
1692
  var a, u, p, f;
1693
1693
  const s = k("Block"), l = k("BlocksWrapper");
1694
1694
  return d(), S(l, {
@@ -1716,21 +1716,21 @@ function Co(e, t, n, o, r, i) {
1716
1716
  _: 3
1717
1717
  }, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapperProps", "classNameProp", "BlocksWrapper"]);
1718
1718
  }
1719
- const q = /* @__PURE__ */ v(ko, [["render", Co]]), To = y({
1719
+ const K = /* @__PURE__ */ v(To, [["render", wo]]), Io = y({
1720
1720
  name: "dynamic-div",
1721
1721
  props: []
1722
1722
  });
1723
- function wo(e, t, n, o, r, i) {
1723
+ function $o(e, t, n, o, r, i) {
1724
1724
  return d(), h("div", null, [
1725
1725
  N(e.$slots, "default")
1726
1726
  ]);
1727
1727
  }
1728
- const te = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1728
+ const te = /* @__PURE__ */ v(Io, [["render", $o]]), Eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1729
1729
  __proto__: null,
1730
1730
  default: te
1731
1731
  }, Symbol.toStringTag, { value: "Module" })), pe = y({
1732
1732
  render() {
1733
- return Qe("style", {
1733
+ return _e("style", {
1734
1734
  innerHTML: this.styles,
1735
1735
  "data-id": this.id,
1736
1736
  nonce: this.nonce
@@ -1738,7 +1738,7 @@ const te = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
1738
1738
  },
1739
1739
  name: "inlined-styles",
1740
1740
  props: ["styles", "id", "nonce"]
1741
- }), $t = {
1741
+ }), At = {
1742
1742
  xsmall: {
1743
1743
  min: 0,
1744
1744
  default: 160,
@@ -1759,8 +1759,8 @@ const te = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
1759
1759
  default: 991,
1760
1760
  max: 1200
1761
1761
  }
1762
- }, Ps = (e, t = $t) => `@media (max-width: ${t[e].max}px)`, $o = (e) => {
1763
- const t = $e($t);
1762
+ }, Ns = (e, t = At) => `@media (max-width: ${t[e].max}px)`, Ro = (e) => {
1763
+ const t = Pe(At);
1764
1764
  if (!e)
1765
1765
  return t;
1766
1766
  const {
@@ -1797,12 +1797,12 @@ const te = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
1797
1797
  min: l,
1798
1798
  default: l + 1
1799
1799
  }, t;
1800
- }, Ro = (e) => `builder-columns ${e}-breakpoints`, Eo = y({
1800
+ }, Po = (e) => `builder-columns ${e}-breakpoints`, Ao = y({
1801
1801
  name: "builder-columns",
1802
1802
  components: {
1803
1803
  InlinedStyles: pe,
1804
- DynamicRenderer: Te,
1805
- Blocks: q,
1804
+ DynamicRenderer: $e,
1805
+ Blocks: K,
1806
1806
  DynamicDiv: te
1807
1807
  },
1808
1808
  props: [
@@ -1816,7 +1816,7 @@ const te = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
1816
1816
  "builderComponents"
1817
1817
  ],
1818
1818
  data() {
1819
- return { TARGET: R, getColumnsClass: Ro };
1819
+ return { TARGET: E, getColumnsClass: Po };
1820
1820
  },
1821
1821
  computed: {
1822
1822
  gutterSize() {
@@ -1895,7 +1895,7 @@ const te = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
1895
1895
  },
1896
1896
  getWidthForBreakpointSize(e) {
1897
1897
  var n, o;
1898
- return $o(
1898
+ return Ro(
1899
1899
  ((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
1900
1900
  )[e].max;
1901
1901
  },
@@ -1933,12 +1933,12 @@ const te = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
1933
1933
  href: e.link
1934
1934
  } : {},
1935
1935
  [j()]: "builder-column",
1936
- style: Tt(this.columnCssVars(t))
1936
+ style: Et(this.columnCssVars(t))
1937
1937
  };
1938
1938
  }
1939
1939
  }
1940
1940
  });
1941
- function Ao(e, t, n, o, r, i) {
1941
+ function Bo(e, t, n, o, r, i) {
1942
1942
  var u;
1943
1943
  const s = k("InlinedStyles"), l = k("Blocks"), a = k("DynamicRenderer");
1944
1944
  return d(), h("div", $({
@@ -1958,7 +1958,7 @@ function Ao(e, t, n, o, r, i) {
1958
1958
  attributes: e.getAttributes(p, f)
1959
1959
  }, {
1960
1960
  default: x(() => [
1961
- E(l, {
1961
+ R(l, {
1962
1962
  path: `columns.${f}.blocks`,
1963
1963
  parent: e.builderBlock.id,
1964
1964
  context: e.builderContext,
@@ -1974,32 +1974,32 @@ function Ao(e, t, n, o, r, i) {
1974
1974
  }, 1032, ["TagName", "attributes"]))), 128))
1975
1975
  ], 16);
1976
1976
  }
1977
- const Po = /* @__PURE__ */ v(Eo, [["render", Ao], ["__scopeId", "data-v-ab15749a"]]), Bo = y({
1977
+ const Vo = /* @__PURE__ */ v(Ao, [["render", Bo], ["__scopeId", "data-v-ab15749a"]]), No = y({
1978
1978
  name: "builder-fragment-component",
1979
1979
  props: []
1980
1980
  });
1981
- function Vo(e, t, n, o, r, i) {
1981
+ function Wo(e, t, n, o, r, i) {
1982
1982
  return d(), h("span", null, [
1983
1983
  N(e.$slots, "default")
1984
1984
  ]);
1985
1985
  }
1986
- const No = /* @__PURE__ */ v(Bo, [["render", Vo]]);
1987
- function qe(e) {
1986
+ const Oo = /* @__PURE__ */ v(No, [["render", Wo]]);
1987
+ function Je(e) {
1988
1988
  return e.replace(/http(s)?:/, "");
1989
1989
  }
1990
- function Wo(e = "", t, n) {
1990
+ function Do(e = "", t, n) {
1991
1991
  const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
1992
1992
  return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
1993
1993
  }
1994
- function Do(e, t) {
1994
+ function xo(e, t) {
1995
1995
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1996
1996
  return e;
1997
1997
  if (t === "master")
1998
- return qe(e);
1998
+ return Je(e);
1999
1999
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
2000
2000
  if (n) {
2001
2001
  const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
2002
- return qe(`${o[0]}_${i}${r}`);
2002
+ return Je(`${o[0]}_${i}${r}`);
2003
2003
  }
2004
2004
  return null;
2005
2005
  }
@@ -2010,11 +2010,11 @@ function oe(e) {
2010
2010
  if (e.match(/builder\.io/)) {
2011
2011
  let n = e;
2012
2012
  const o = Number(e.split("?width=")[1]);
2013
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${Wo(e, "width", r)} ${r}w`).concat([n]).join(", ");
2013
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${Do(e, "width", r)} ${r}w`).concat([n]).join(", ");
2014
2014
  }
2015
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Do(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
2015
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [xo(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
2016
2016
  }
2017
- const Oo = y({
2017
+ const Uo = y({
2018
2018
  name: "builder-image",
2019
2019
  props: [
2020
2020
  "lazy",
@@ -2022,14 +2022,14 @@ const Oo = y({
2022
2022
  "src",
2023
2023
  "srcset",
2024
2024
  "noWebp",
2025
- "aspectRatio",
2025
+ "sizes",
2026
2026
  "highPriority",
2027
+ "aspectRatio",
2027
2028
  "altText",
2028
2029
  "title",
2029
2030
  "backgroundPosition",
2030
2031
  "backgroundSize",
2031
2032
  "className",
2032
- "sizes",
2033
2033
  "builderBlock",
2034
2034
  "fitContent"
2035
2035
  ],
@@ -2054,6 +2054,9 @@ const Oo = y({
2054
2054
  var e;
2055
2055
  return (e = this.srcSetToUse) != null && e.match(/builder\.io/) && !this.noWebp ? this.srcSetToUse.replace(/\?/g, "?format=webp&") : "";
2056
2056
  },
2057
+ sizesToUse() {
2058
+ return this.sizes || (this.highPriority ? void 0 : "auto");
2059
+ },
2057
2060
  aspectRatioCss() {
2058
2061
  const e = {
2059
2062
  position: "absolute",
@@ -2065,20 +2068,21 @@ const Oo = y({
2065
2068
  return this.aspectRatio ? e : void 0;
2066
2069
  }
2067
2070
  }
2068
- }), xo = ["srcset"], Uo = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"], Lo = {
2071
+ }), Lo = ["srcset", "sizes"], Fo = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"], Ho = {
2069
2072
  key: 2,
2070
2073
  class: "div-t43jfuqn6g-2"
2071
2074
  };
2072
- function Fo(e, t, n, o, r, i) {
2075
+ function Mo(e, t, n, o, r, i) {
2073
2076
  var s, l, a, u, p, f;
2074
2077
  return d(), h(I, null, [
2075
- z("picture", null, [
2078
+ q("picture", null, [
2076
2079
  e.webpSrcSet ? (d(), h("source", {
2077
2080
  key: 0,
2078
2081
  type: "image/webp",
2079
- srcset: e.webpSrcSet
2080
- }, null, 8, xo)) : C("", !0),
2081
- z("img", {
2082
+ srcset: e.webpSrcSet,
2083
+ sizes: e.sizesToUse
2084
+ }, null, 8, Lo)) : C("", !0),
2085
+ q("img", {
2082
2086
  loading: e.highPriority ? "eager" : "lazy",
2083
2087
  fetchpriority: e.highPriority ? "high" : "auto",
2084
2088
  alt: e.altText,
@@ -2094,8 +2098,8 @@ function Fo(e, t, n, o, r, i) {
2094
2098
  ),
2095
2099
  src: e.image,
2096
2100
  srcset: e.srcSetToUse,
2097
- sizes: e.sizes
2098
- }, null, 14, Uo)
2101
+ sizes: e.sizesToUse
2102
+ }, null, 14, Fo)
2099
2103
  ]),
2100
2104
  e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (d(), h("div", {
2101
2105
  key: 0,
@@ -2105,19 +2109,19 @@ function Fo(e, t, n, o, r, i) {
2105
2109
  })
2106
2110
  }, null, 4)) : C("", !0),
2107
2111
  (u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? N(e.$slots, "default", { key: 1 }, void 0, !0) : C("", !0),
2108
- !e.fitContent && ((f = (p = e.builderBlock) == null ? void 0 : p.children) != null && f.length) ? (d(), h("div", Lo, [
2112
+ !e.fitContent && ((f = (p = e.builderBlock) == null ? void 0 : p.children) != null && f.length) ? (d(), h("div", Ho, [
2109
2113
  N(e.$slots, "default", {}, void 0, !0)
2110
2114
  ])) : C("", !0)
2111
2115
  ], 64);
2112
2116
  }
2113
- const Ho = /* @__PURE__ */ v(Oo, [["render", Fo], ["__scopeId", "data-v-741b9bbc"]]), Mo = y({
2117
+ const jo = /* @__PURE__ */ v(Uo, [["render", Mo], ["__scopeId", "data-v-17b592cd"]]), zo = y({
2114
2118
  name: "builder-section-component",
2115
2119
  props: ["attributes", "maxWidth"],
2116
2120
  data() {
2117
2121
  return { filterAttrs: W };
2118
2122
  }
2119
2123
  });
2120
- function jo(e, t, n, o, r, i) {
2124
+ function Ko(e, t, n, o, r, i) {
2121
2125
  return d(), h("section", $({
2122
2126
  style: {
2123
2127
  width: "100%",
@@ -2135,8 +2139,8 @@ function jo(e, t, n, o, r, i) {
2135
2139
  N(e.$slots, "default")
2136
2140
  ], 16);
2137
2141
  }
2138
- const Ko = /* @__PURE__ */ v(Mo, [["render", jo]]);
2139
- function qo(e, t, n, o) {
2142
+ const qo = /* @__PURE__ */ v(zo, [["render", Ko]]);
2143
+ function Go(e, t, n, o) {
2140
2144
  function r(u) {
2141
2145
  return typeof u == "string";
2142
2146
  }
@@ -2150,14 +2154,14 @@ function qo(e, t, n, o) {
2150
2154
  if (p && p.property === "urlPath" && p.value && typeof p.value == "string" && p.value !== "/" && p.value.endsWith("/") && (b = p.value.slice(0, -1)), !(c && m))
2151
2155
  return !0;
2152
2156
  if (Array.isArray(b))
2153
- return m === "isNot" ? b.every((P) => s(u, {
2157
+ return m === "isNot" ? b.every((A) => s(u, {
2154
2158
  property: c,
2155
2159
  operator: m,
2156
- value: P
2157
- })) : !!b.find((P) => s(u, {
2160
+ value: A
2161
+ })) : !!b.find((A) => s(u, {
2158
2162
  property: c,
2159
2163
  operator: m,
2160
- value: P
2164
+ value: A
2161
2165
  }));
2162
2166
  const g = u[c];
2163
2167
  if (Array.isArray(g))
@@ -2193,7 +2197,7 @@ function qo(e, t, n, o) {
2193
2197
  }, a = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
2194
2198
  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));
2195
2199
  }
2196
- const zo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
2200
+ const Jo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
2197
2201
  if (!navigator.cookieEnabled) {
2198
2202
  return;
2199
2203
  }
@@ -2238,7 +2242,7 @@ const zo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
2238
2242
  thisScript.remove();
2239
2243
  }
2240
2244
  }
2241
- }`, Go = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
2245
+ }`, Qo = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
2242
2246
  function isString(val) {
2243
2247
  return typeof val === 'string';
2244
2248
  }
@@ -2316,7 +2320,7 @@ const zo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
2316
2320
  return item.query.every(filter => {
2317
2321
  return objectMatchesQuery(userAttributes, filter);
2318
2322
  });
2319
- }`, Jo = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
2323
+ }`, Yo = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
2320
2324
  function getCookie(name) {
2321
2325
  const nameEQ = name + '=';
2322
2326
  const ca = document.cookie.split(';');
@@ -2354,11 +2358,11 @@ const zo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
2354
2358
  visibilityStylesEl.innerHTML = newStyleStr;
2355
2359
  }
2356
2360
  }
2357
- }`, re = "default", Qo = "filterWithCustomTargeting", Rt = "builderIoPersonalization", Et = "updateVisibilityStylesScript", At = ["react", "vue", "svelte", "qwik"], Pt = ["vue", "svelte", "qwik"];
2358
- function Yo(e, t) {
2359
- return !(e && e.length > 0) || !t ? !1 : Pt.includes(R) ? !0 : !T();
2361
+ }`, re = "default", Qe = "filterWithCustomTargeting", ke = "builderIoPersonalization", Ce = "updateVisibilityStylesScript", Xo = "PersonalizationContainer", Bt = ["react", "vue", "svelte", "qwik"], Vt = ["vue", "svelte", "qwik"];
2362
+ function Zo(e, t) {
2363
+ return !(e && e.length > 0) || !t ? !1 : Vt.includes(E) ? !0 : !T();
2360
2364
  }
2361
- function Xo({
2365
+ function _o({
2362
2366
  variants: e,
2363
2367
  previewingIndex: t,
2364
2368
  isHydrated: n,
@@ -2370,7 +2374,7 @@ function Xo({
2370
2374
  path: "this.children",
2371
2375
  index: re
2372
2376
  };
2373
- if (n && A()) {
2377
+ if (n && P()) {
2374
2378
  if (typeof t == "number" && t < ((e == null ? void 0 : e.length) ?? 0)) {
2375
2379
  const s = e == null ? void 0 : e[t];
2376
2380
  if (s)
@@ -2396,11 +2400,22 @@ function Xo({
2396
2400
  }
2397
2401
  return i;
2398
2402
  }
2399
- const Zo = () => `
2400
- window.${Qo} = ${Go}
2401
- window.${Rt} = ${zo}
2402
- window.${Et} = ${Jo}
2403
- `, Bt = R === "react", _o = (e, t, n) => `window.${Rt}(${JSON.stringify(e)}, "${t}", ${Bt}${n ? `, "${n}"` : ""})`, er = (e, t, n) => `window.${Et}(${JSON.stringify(e)}, "${t}", ${Bt}${n ? `, "${n}"` : ""})`, me = {
2403
+ const Te = (e) => {
2404
+ var t;
2405
+ return Array.isArray(e) ? e.some(Te) : !e || typeof e != "object" ? !1 : ((t = e.component) == null ? void 0 : t.name) === Xo ? !0 : Object.values(e).some(Te);
2406
+ }, er = (e) => Te(e), tr = () => `
2407
+ (function() {
2408
+ if (!window.${Qe}) {
2409
+ window.${Qe} = ${Qo};
2410
+ }
2411
+ if (!window.${ke}) {
2412
+ window.${ke} = ${Jo};
2413
+ }
2414
+ if (!window.${Ce}) {
2415
+ window.${Ce} = ${Yo};
2416
+ }
2417
+ })();
2418
+ `, Nt = E === "react", nr = (e, t, n) => `window.${ke}(${JSON.stringify(e)}, "${t}", ${Nt}${n ? `, "${n}"` : ""})`, or = (e, t, n) => `window.${Ce}(${JSON.stringify(e)}, "${t}", ${Nt}${n ? `, "${n}"` : ""})`, me = {
2404
2419
  "@type": "@builder.io/sdk:Element",
2405
2420
  layerName: "Accordion item title",
2406
2421
  responsiveStyles: {
@@ -2460,7 +2475,7 @@ const Zo = () => `
2460
2475
  }
2461
2476
  }
2462
2477
  }]
2463
- }, tr = {
2478
+ }, rr = {
2464
2479
  name: "Builder:Accordion",
2465
2480
  canHaveChildren: !0,
2466
2481
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -2524,9 +2539,9 @@ const Zo = () => `
2524
2539
  builderComponents: !0,
2525
2540
  builderLinkComponent: !0
2526
2541
  }
2527
- }, nr = (e) => e.toString(), or = y({
2542
+ }, ir = (e) => e.toString(), sr = y({
2528
2543
  name: "builder-accordion",
2529
- components: { Blocks: q },
2544
+ components: { Blocks: K },
2530
2545
  props: [
2531
2546
  "grid",
2532
2547
  "oneAtATime",
@@ -2538,7 +2553,7 @@ const Zo = () => `
2538
2553
  "builderLinkComponent"
2539
2554
  ],
2540
2555
  data() {
2541
- return { open: [], convertOrderNumberToString: nr };
2556
+ return { open: [], convertOrderNumberToString: ir };
2542
2557
  },
2543
2558
  computed: {
2544
2559
  onlyOneAtATime() {
@@ -2619,15 +2634,15 @@ const Zo = () => `
2619
2634
  this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
2620
2635
  }
2621
2636
  }
2622
- }), rr = ["data-index", "onClick"];
2623
- function ir(e, t, n, o, r, i) {
2637
+ }), ar = ["data-index", "onClick"];
2638
+ function lr(e, t, n, o, r, i) {
2624
2639
  const s = k("Blocks");
2625
2640
  return d(), h("div", {
2626
2641
  class: "builder-accordion",
2627
2642
  style: M(e.accordionStyles)
2628
2643
  }, [
2629
2644
  (d(!0), h(I, null, F(e.items, (l, a) => (d(), h(I, { key: a }, [
2630
- z("div", {
2645
+ q("div", {
2631
2646
  class: _(e.getAccordionTitleClassName(a)),
2632
2647
  style: M({
2633
2648
  ...e.accordionTitleStyles,
@@ -2639,7 +2654,7 @@ function ir(e, t, n, o, r, i) {
2639
2654
  "data-index": a,
2640
2655
  onClick: async (u) => e.onClick(a)
2641
2656
  }, [
2642
- E(s, {
2657
+ R(s, {
2643
2658
  blocks: l.title,
2644
2659
  path: `items.${a}.title`,
2645
2660
  parent: e.builderBlock.id,
@@ -2647,13 +2662,13 @@ function ir(e, t, n, o, r, i) {
2647
2662
  registeredComponents: e.builderComponents,
2648
2663
  linkComponent: e.builderLinkComponent
2649
2664
  }, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
2650
- ], 14, rr),
2665
+ ], 14, ar),
2651
2666
  e.open.includes(a) ? (d(), h("div", {
2652
2667
  key: 0,
2653
2668
  class: _(e.getAccordionDetailClassName(a)),
2654
2669
  style: M(e.accordionDetailStyles)
2655
2670
  }, [
2656
- E(s, {
2671
+ R(s, {
2657
2672
  blocks: l.detail,
2658
2673
  path: `items.${a}.detail`,
2659
2674
  parent: e.builderBlock.id,
@@ -2665,7 +2680,7 @@ function ir(e, t, n, o, r, i) {
2665
2680
  ], 64))), 128))
2666
2681
  ], 4);
2667
2682
  }
2668
- const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
2683
+ const cr = /* @__PURE__ */ v(sr, [["render", lr]]), dr = {
2669
2684
  name: "Core:Button",
2670
2685
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
2671
2686
  defaultStyles: {
@@ -2701,7 +2716,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
2701
2716
  shouldReceiveBuilderProps: {
2702
2717
  builderLinkComponent: !0
2703
2718
  }
2704
- }, lr = {
2719
+ }, ur = {
2705
2720
  // TODO: ways to statically preprocess JSON for references, functions, etc
2706
2721
  name: "Columns",
2707
2722
  isRSC: !0,
@@ -2908,13 +2923,13 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
2908
2923
  builderComponents: !0,
2909
2924
  builderLinkComponent: !0
2910
2925
  }
2911
- }, cr = {
2926
+ }, pr = {
2912
2927
  name: "Fragment",
2913
2928
  static: !0,
2914
2929
  hidden: !0,
2915
2930
  canHaveChildren: !0,
2916
2931
  noWrap: !0
2917
- }, Ve = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], dr = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], ur = {
2932
+ }, Oe = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], mr = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], hr = {
2918
2933
  name: "Image",
2919
2934
  static: !0,
2920
2935
  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",
@@ -2929,7 +2944,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
2929
2944
  name: "image",
2930
2945
  type: "file",
2931
2946
  bubble: !0,
2932
- allowedFileTypes: Ve,
2947
+ allowedFileTypes: Oe,
2933
2948
  required: !0,
2934
2949
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
2935
2950
  onChange: (e) => {
@@ -2996,7 +3011,8 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
2996
3011
  }, {
2997
3012
  name: "sizes",
2998
3013
  type: "string",
2999
- hideFromUI: !0
3014
+ advanced: !0,
3015
+ helperText: 'The sizes attribute for responsive images, e.g. "(max-width: 600px) 100vw, 50vw"'
3000
3016
  }, {
3001
3017
  name: "srcset",
3002
3018
  type: "string",
@@ -3026,7 +3042,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
3026
3042
  shouldReceiveBuilderProps: {
3027
3043
  builderBlock: !0
3028
3044
  }
3029
- }, pr = {
3045
+ }, fr = {
3030
3046
  name: "PersonalizationContainer",
3031
3047
  shouldReceiveBuilderProps: {
3032
3048
  builderBlock: !0,
@@ -3062,9 +3078,9 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
3062
3078
  defaultValue: []
3063
3079
  }]
3064
3080
  }]
3065
- }, Ne = y({
3081
+ }, De = y({
3066
3082
  render() {
3067
- return Qe("script", {
3083
+ return _e("script", {
3068
3084
  innerHTML: this.scriptStr,
3069
3085
  "data-id": this.id,
3070
3086
  nonce: this.nonce
@@ -3072,12 +3088,12 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
3072
3088
  },
3073
3089
  name: "inlined-script",
3074
3090
  props: ["scriptStr", "id", "nonce"]
3075
- }), mr = y({
3091
+ }), br = y({
3076
3092
  name: "builder-personalization-container",
3077
3093
  components: {
3078
- Blocks: q,
3094
+ Blocks: K,
3079
3095
  InlinedStyles: pe,
3080
- InlinedScript: Ne
3096
+ InlinedScript: De
3081
3097
  },
3082
3098
  props: [
3083
3099
  "builderContext",
@@ -3091,25 +3107,25 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
3091
3107
  var e, t, n, o, r, i, s;
3092
3108
  return {
3093
3109
  userAttributes: ce.getUserAttributes(),
3094
- scriptStr: _o(
3110
+ scriptStr: nr(
3095
3111
  this.variants,
3096
3112
  ((e = this.builderBlock) == null ? void 0 : e.id) || "none",
3097
3113
  (n = (t = this.builderContext) == null ? void 0 : t.rootState) == null ? void 0 : n.locale
3098
3114
  ),
3099
- updateVisibilityStylesScript: er(
3115
+ updateVisibilityStylesScript: or(
3100
3116
  this.variants,
3101
3117
  ((o = this.builderBlock) == null ? void 0 : o.id) || "none",
3102
3118
  (i = (r = this.builderContext) == null ? void 0 : r.rootState) == null ? void 0 : i.locale
3103
3119
  ),
3104
3120
  unsubscribers: [],
3105
- shouldRenderVariants: Yo(
3121
+ shouldRenderVariants: Zo(
3106
3122
  this.variants,
3107
3123
  G((s = this.builderContext) == null ? void 0 : s.canTrack)
3108
3124
  ),
3109
3125
  shouldResetVariants: !1,
3110
- TARGET: R,
3126
+ TARGET: E,
3111
3127
  DEFAULT_INDEX: re,
3112
- SDKS_REQUIRING_RESET_APPROACH: Pt
3128
+ SDKS_REQUIRING_RESET_APPROACH: Vt
3113
3129
  };
3114
3130
  },
3115
3131
  mounted() {
@@ -3120,10 +3136,10 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
3120
3136
  this.userAttributes = n;
3121
3137
  },
3122
3138
  {
3123
- fireImmediately: R === "qwik"
3139
+ fireImmediately: E === "qwik"
3124
3140
  }
3125
3141
  );
3126
- if (!(A() || Re())) {
3142
+ if (!(P() || Ae())) {
3127
3143
  const n = this.filteredVariants[0];
3128
3144
  this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
3129
3145
  new CustomEvent("builder.variantLoaded", {
@@ -3164,7 +3180,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
3164
3180
  filteredVariants() {
3165
3181
  return (this.variants || []).filter((e) => {
3166
3182
  var t, n, o, r;
3167
- return qo(
3183
+ return Go(
3168
3184
  {
3169
3185
  ...(n = (t = this.builderContext) == null ? void 0 : t.rootState) != null && n.locale ? {
3170
3186
  locale: (r = (o = this.builderContext) == null ? void 0 : o.rootState) == null ? void 0 : r.locale
@@ -3179,7 +3195,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
3179
3195
  },
3180
3196
  blocksToRender() {
3181
3197
  var e;
3182
- return Xo({
3198
+ return _o({
3183
3199
  variants: this.variants,
3184
3200
  fallbackBlocks: (e = this.builderBlock) == null ? void 0 : e.children,
3185
3201
  isHydrated: this.shouldResetVariants,
@@ -3197,8 +3213,8 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
3197
3213
  }
3198
3214
  }
3199
3215
  });
3200
- function hr(e, t, n, o, r, i) {
3201
- var u, p, f, c, m, b, g, P, U, V;
3216
+ function gr(e, t, n, o, r, i) {
3217
+ var u, p, f, c, m, b, g, A, U, V;
3202
3218
  const s = k("Blocks"), l = k("InlinedStyles"), a = k("InlinedScript");
3203
3219
  return d(), h("div", $({ ref: "rootRef" }, e.attrs), [
3204
3220
  e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), S(s, {
@@ -3215,39 +3231,39 @@ function hr(e, t, n, o, r, i) {
3215
3231
  }, null, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])) : C("", !0),
3216
3232
  !e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), h(I, { key: 1 }, [
3217
3233
  e.shouldRenderVariants ? (d(), h(I, { key: 0 }, [
3218
- E(l, {
3234
+ R(l, {
3219
3235
  nonce: ((c = e.builderContext) == null ? void 0 : c.nonce) || "",
3220
3236
  styles: e.hideVariantsStyleString,
3221
3237
  id: `variants-styles-${(m = e.builderBlock) == null ? void 0 : m.id}`
3222
3238
  }, null, 8, ["nonce", "styles", "id"]),
3223
- E(a, {
3239
+ R(a, {
3224
3240
  nonce: ((b = e.builderContext) == null ? void 0 : b.nonce) || "",
3225
3241
  scriptStr: e.updateVisibilityStylesScript,
3226
3242
  id: `variants-visibility-script-${(g = e.builderBlock) == null ? void 0 : g.id}`
3227
3243
  }, null, 8, ["nonce", "scriptStr", "id"]),
3228
- (d(!0), h(I, null, F(e.variants, (w, D) => {
3229
- var J, Q, O, H;
3244
+ (d(!0), h(I, null, F(e.variants, (w, O) => {
3245
+ var J, Q, D, H;
3230
3246
  return d(), S(s, {
3231
- key: `${(J = e.builderBlock) == null ? void 0 : J.id}-${D}`,
3247
+ key: `${(J = e.builderBlock) == null ? void 0 : J.id}-${O}`,
3232
3248
  BlocksWrapperProps: {
3233
3249
  ...(Q = e.builderContext) == null ? void 0 : Q.BlocksWrapperProps,
3234
3250
  "aria-hidden": !0,
3235
3251
  hidden: !0,
3236
- "data-variant-id": `${(O = e.builderBlock) == null ? void 0 : O.id}-${D}`
3252
+ "data-variant-id": `${(D = e.builderBlock) == null ? void 0 : D.id}-${O}`
3237
3253
  },
3238
3254
  blocks: w.blocks,
3239
3255
  parent: (H = e.builderBlock) == null ? void 0 : H.id,
3240
- path: `component.options.variants.${D}.blocks`,
3256
+ path: `component.options.variants.${O}.blocks`,
3241
3257
  context: e.builderContext,
3242
3258
  registeredComponents: e.builderComponents
3243
3259
  }, {
3244
3260
  default: x(() => {
3245
- var De, Oe;
3261
+ var Ue, Le;
3246
3262
  return [
3247
- E(a, {
3248
- nonce: ((De = e.builderContext) == null ? void 0 : De.nonce) || "",
3263
+ R(a, {
3264
+ nonce: ((Ue = e.builderContext) == null ? void 0 : Ue.nonce) || "",
3249
3265
  scriptStr: e.scriptStr,
3250
- id: `variants-script-${(Oe = e.builderBlock) == null ? void 0 : Oe.id}-${D}`
3266
+ id: `variants-script-${(Le = e.builderBlock) == null ? void 0 : Le.id}-${O}`
3251
3267
  }, null, 8, ["nonce", "scriptStr", "id"])
3252
3268
  ];
3253
3269
  }),
@@ -3255,9 +3271,9 @@ function hr(e, t, n, o, r, i) {
3255
3271
  }, 1032, ["BlocksWrapperProps", "blocks", "parent", "path", "context", "registeredComponents"]);
3256
3272
  }), 128))
3257
3273
  ], 64)) : C("", !0),
3258
- E(s, {
3274
+ R(s, {
3259
3275
  blocks: e.blocksToRender.blocks,
3260
- parent: (P = e.builderBlock) == null ? void 0 : P.id,
3276
+ parent: (A = e.builderBlock) == null ? void 0 : A.id,
3261
3277
  path: e.blocksToRender.path,
3262
3278
  context: e.builderContext,
3263
3279
  registeredComponents: e.builderComponents,
@@ -3267,13 +3283,13 @@ function hr(e, t, n, o, r, i) {
3267
3283
  }
3268
3284
  }, {
3269
3285
  default: x(() => {
3270
- var w, D;
3286
+ var w, O;
3271
3287
  return [
3272
3288
  e.shouldRenderVariants ? (d(), S(a, {
3273
3289
  key: 0,
3274
3290
  nonce: ((w = e.builderContext) == null ? void 0 : w.nonce) || "",
3275
3291
  scriptStr: e.scriptStr,
3276
- id: `variants-script-${(D = e.builderBlock) == null ? void 0 : D.id}-${e.DEFAULT_INDEX}`
3292
+ id: `variants-script-${(O = e.builderBlock) == null ? void 0 : O.id}-${e.DEFAULT_INDEX}`
3277
3293
  }, null, 8, ["nonce", "scriptStr", "id"])) : C("", !0)
3278
3294
  ];
3279
3295
  }),
@@ -3282,7 +3298,7 @@ function hr(e, t, n, o, r, i) {
3282
3298
  ], 64)) : C("", !0)
3283
3299
  ], 16);
3284
3300
  }
3285
- const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
3301
+ const yr = /* @__PURE__ */ v(br, [["render", gr]]), vr = {
3286
3302
  name: "Core:Section",
3287
3303
  static: !0,
3288
3304
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -3321,7 +3337,7 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
3321
3337
  }
3322
3338
  }
3323
3339
  }]
3324
- }, gr = {
3340
+ }, Sr = {
3325
3341
  name: "Slot",
3326
3342
  isRSC: !0,
3327
3343
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -3338,12 +3354,12 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
3338
3354
  builderContext: !0,
3339
3355
  builderComponents: !0
3340
3356
  }
3341
- }, yr = y({
3357
+ }, kr = y({
3342
3358
  name: "builder-slot",
3343
- components: { Blocks: q },
3359
+ components: { Blocks: K },
3344
3360
  props: ["builderContext", "name", "builderComponents"]
3345
3361
  });
3346
- function vr(e, t, n, o, r, i) {
3362
+ function Cr(e, t, n, o, r, i) {
3347
3363
  var l, a, u;
3348
3364
  const s = k("Blocks");
3349
3365
  return d(), h("div", $(
@@ -3354,7 +3370,7 @@ function vr(e, t, n, o, r, i) {
3354
3370
  "builder-slot": e.name
3355
3371
  }
3356
3372
  ), [
3357
- E(s, {
3373
+ R(s, {
3358
3374
  parent: (a = e.builderContext.context) == null ? void 0 : a.symbolId,
3359
3375
  path: `symbol.data.${e.name}`,
3360
3376
  context: e.builderContext,
@@ -3363,7 +3379,7 @@ function vr(e, t, n, o, r, i) {
3363
3379
  }, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
3364
3380
  ], 16);
3365
3381
  }
3366
- const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
3382
+ const Tr = /* @__PURE__ */ v(kr, [["render", Cr]]), wr = {
3367
3383
  name: "Symbol",
3368
3384
  noWrap: !0,
3369
3385
  static: !0,
@@ -3440,7 +3456,7 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
3440
3456
  text: "New tab content "
3441
3457
  }
3442
3458
  }
3443
- }, Cr = {
3459
+ }, Ir = {
3444
3460
  name: "Builder: Tabs",
3445
3461
  inputs: [{
3446
3462
  name: "tabs",
@@ -3543,9 +3559,9 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
3543
3559
  builderComponents: !0,
3544
3560
  builderLinkComponent: !0
3545
3561
  }
3546
- }, Tr = y({
3562
+ }, $r = y({
3547
3563
  name: "builder-tabs",
3548
- components: { Blocks: q },
3564
+ components: { Blocks: K },
3549
3565
  props: [
3550
3566
  "defaultActiveTab",
3551
3567
  "tabs",
@@ -3571,11 +3587,11 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
3571
3587
  e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
3572
3588
  }
3573
3589
  }
3574
- }), wr = ["onClick"], Ir = { key: 0 };
3575
- function $r(e, t, n, o, r, i) {
3590
+ }), Er = ["onClick"], Rr = { key: 0 };
3591
+ function Pr(e, t, n, o, r, i) {
3576
3592
  const s = k("Blocks");
3577
3593
  return d(), h("div", null, [
3578
- z("div", {
3594
+ q("div", {
3579
3595
  class: "builder-tabs-wrap",
3580
3596
  style: M({
3581
3597
  display: "flex",
@@ -3590,7 +3606,7 @@ function $r(e, t, n, o, r, i) {
3590
3606
  style: M(e.getTabStyle(a)),
3591
3607
  onClick: async (u) => e.onClick(a)
3592
3608
  }, [
3593
- E(s, {
3609
+ R(s, {
3594
3610
  parent: e.builderBlock.id,
3595
3611
  path: `tabs.${a}.label`,
3596
3612
  blocks: l.label,
@@ -3598,10 +3614,10 @@ function $r(e, t, n, o, r, i) {
3598
3614
  registeredComponents: e.builderComponents,
3599
3615
  linkComponent: e.builderLinkComponent
3600
3616
  }, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
3601
- ], 14, wr))), 128))
3617
+ ], 14, Er))), 128))
3602
3618
  ], 4),
3603
- e.activeTabContent(e.activeTab) ? (d(), h("div", Ir, [
3604
- E(s, {
3619
+ e.activeTabContent(e.activeTab) ? (d(), h("div", Rr, [
3620
+ R(s, {
3605
3621
  parent: e.builderBlock.id,
3606
3622
  path: `tabs.${e.activeTab}.content`,
3607
3623
  blocks: e.activeTabContent(e.activeTab),
@@ -3612,7 +3628,7 @@ function $r(e, t, n, o, r, i) {
3612
3628
  ])) : C("", !0)
3613
3629
  ]);
3614
3630
  }
3615
- const Rr = /* @__PURE__ */ v(Tr, [["render", $r]]), Er = {
3631
+ const Ar = /* @__PURE__ */ v($r, [["render", Pr]]), Br = {
3616
3632
  shouldReceiveBuilderProps: {},
3617
3633
  name: "Text",
3618
3634
  static: !0,
@@ -3630,11 +3646,11 @@ const Rr = /* @__PURE__ */ v(Tr, [["render", $r]]), Er = {
3630
3646
  height: "auto",
3631
3647
  textAlign: "center"
3632
3648
  }
3633
- }, Ar = y({
3649
+ }, Vr = y({
3634
3650
  name: "builder-text",
3635
3651
  props: ["text"]
3636
- }), Pr = ["innerHTML"];
3637
- function Br(e, t, n, o, r, i) {
3652
+ }), Nr = ["innerHTML"];
3653
+ function Wr(e, t, n, o, r, i) {
3638
3654
  var s;
3639
3655
  return d(), h("div", {
3640
3656
  class: "builder-text",
@@ -3642,9 +3658,9 @@ function Br(e, t, n, o, r, i) {
3642
3658
  style: {
3643
3659
  outline: "none"
3644
3660
  }
3645
- }, null, 8, Pr);
3661
+ }, null, 8, Nr);
3646
3662
  }
3647
- const Vr = /* @__PURE__ */ v(Ar, [["render", Br]]), Nr = {
3663
+ const Or = /* @__PURE__ */ v(Vr, [["render", Wr]]), Dr = {
3648
3664
  name: "Custom Code",
3649
3665
  static: !0,
3650
3666
  requiredPermissions: ["editCode"],
@@ -3666,7 +3682,7 @@ const Vr = /* @__PURE__ */ v(Ar, [["render", Br]]), Nr = {
3666
3682
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
3667
3683
  advanced: !0
3668
3684
  }]
3669
- }, Wr = y({
3685
+ }, xr = y({
3670
3686
  name: "builder-custom-code",
3671
3687
  props: ["code", "replaceNodes"],
3672
3688
  data() {
@@ -3678,7 +3694,7 @@ const Vr = /* @__PURE__ */ v(Ar, [["render", Br]]), Nr = {
3678
3694
  watch: {
3679
3695
  onUpdateHook0: {
3680
3696
  handler() {
3681
- A() && setTimeout(() => {
3697
+ P() && setTimeout(() => {
3682
3698
  this.runScripts();
3683
3699
  }, 0);
3684
3700
  },
@@ -3725,15 +3741,15 @@ const Vr = /* @__PURE__ */ v(Ar, [["render", Br]]), Nr = {
3725
3741
  }
3726
3742
  }
3727
3743
  }
3728
- }), Dr = ["innerHTML"];
3729
- function Or(e, t, n, o, r, i) {
3744
+ }), Ur = ["innerHTML"];
3745
+ function Lr(e, t, n, o, r, i) {
3730
3746
  return d(), h("div", {
3731
3747
  ref: "elementRef",
3732
3748
  class: _("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
3733
3749
  innerHTML: e.code
3734
- }, null, 10, Dr);
3750
+ }, null, 10, Ur);
3735
3751
  }
3736
- const xr = /* @__PURE__ */ v(Wr, [["render", Or]]), Ur = {
3752
+ const Fr = /* @__PURE__ */ v(xr, [["render", Lr]]), Hr = {
3737
3753
  name: "Embed",
3738
3754
  static: !0,
3739
3755
  inputs: [{
@@ -3748,7 +3764,7 @@ const xr = /* @__PURE__ */ v(Wr, [["render", Or]]), Ur = {
3748
3764
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
3749
3765
  hideFromUI: !0
3750
3766
  }]
3751
- }, Lr = ["text/javascript", "application/javascript", "application/ecmascript"], Fr = (e) => Lr.includes(e.type), Hr = y({
3767
+ }, Mr = ["text/javascript", "application/javascript", "application/ecmascript"], jr = (e) => Mr.includes(e.type), zr = y({
3752
3768
  name: "builder-embed",
3753
3769
  props: ["content"],
3754
3770
  data() {
@@ -3781,7 +3797,7 @@ const xr = /* @__PURE__ */ v(Wr, [["render", Or]]), Ur = {
3781
3797
  this.scriptsInserted.push(n.src);
3782
3798
  const o = document.createElement("script");
3783
3799
  o.async = !0, o.src = n.src, document.head.appendChild(o);
3784
- } else if (Fr(n) && !this.scriptsRun.includes(n.innerText))
3800
+ } else if (jr(n) && !this.scriptsRun.includes(n.innerText))
3785
3801
  try {
3786
3802
  this.scriptsRun.push(n.innerText), new Function(n.innerText)();
3787
3803
  } catch (o) {
@@ -3790,15 +3806,15 @@ const xr = /* @__PURE__ */ v(Wr, [["render", Or]]), Ur = {
3790
3806
  }
3791
3807
  }
3792
3808
  }
3793
- }), Mr = ["innerHTML"];
3794
- function jr(e, t, n, o, r, i) {
3809
+ }), Kr = ["innerHTML"];
3810
+ function qr(e, t, n, o, r, i) {
3795
3811
  return d(), h("div", {
3796
3812
  class: "builder-embed",
3797
3813
  ref: "elem",
3798
3814
  innerHTML: e.content
3799
- }, null, 8, Mr);
3815
+ }, null, 8, Kr);
3800
3816
  }
3801
- const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
3817
+ const Gr = /* @__PURE__ */ v(zr, [["render", qr]]), Jr = {
3802
3818
  name: "Form:Form",
3803
3819
  // editableTags: ['builder-form-error']
3804
3820
  defaults: {
@@ -4035,12 +4051,12 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
4035
4051
  builderComponents: !0,
4036
4052
  builderLinkComponent: !0
4037
4053
  }
4038
- }, zr = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Gr = () => {
4054
+ }, Qr = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Yr = () => {
4039
4055
  const e = process.env.NODE_ENV || "production";
4040
- return zr.includes(e) ? e : "production";
4041
- }, Jr = y({
4056
+ return Qr.includes(e) ? e : "production";
4057
+ }, Xr = y({
4042
4058
  name: "builder-form-component",
4043
- components: { Blocks: q },
4059
+ components: { Blocks: K },
4044
4060
  props: [
4045
4061
  "builderContext",
4046
4062
  "previewState",
@@ -4079,7 +4095,7 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
4079
4095
  this.builderContext.rootSetState ? (o = (n = this.builderContext).rootSetState) == null || o.call(n, t) : this.builderContext.rootState = t;
4080
4096
  },
4081
4097
  submissionState() {
4082
- return A() && this.previewState || this.formState;
4098
+ return P() && this.previewState || this.formState;
4083
4099
  },
4084
4100
  errorResponse(e) {
4085
4101
  return JSON.stringify(e, null, 2);
@@ -4131,7 +4147,7 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
4131
4147
  else {
4132
4148
  const c = {};
4133
4149
  Array.from(l).forEach(({ value: m, key: b }) => {
4134
- dt(c, b, m);
4150
+ ht(c, b, m);
4135
4151
  }), i = JSON.stringify(c);
4136
4152
  }
4137
4153
  a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
@@ -4149,16 +4165,16 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
4149
4165
  });
4150
4166
  return;
4151
4167
  }
4152
- const p = `${Gr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
4168
+ const p = `${Yr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
4153
4169
  this.sendSubmissionsToEmail || ""
4154
4170
  )}&name=${encodeURIComponent(this.name || "")}`, f = this.sendSubmissionsTo === "email" ? p : this.action;
4155
- Ie(f), fetch(f, {
4171
+ Re(f), fetch(f, {
4156
4172
  body: i,
4157
4173
  headers: r,
4158
4174
  method: this.method || "post"
4159
4175
  }).then(
4160
4176
  async (c) => {
4161
- var g, P;
4177
+ var g, A;
4162
4178
  let m;
4163
4179
  const b = c.headers.get("content-type");
4164
4180
  if (b && b.indexOf("application/json") !== -1 ? m = await c.json() : m = await c.text(), !c.ok) {
@@ -4168,12 +4184,12 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
4168
4184
  status: c.status
4169
4185
  }
4170
4186
  });
4171
- if ((g = this.$refs.formRef) != null && g.nativeElement && ((P = this.$refs.formRef) == null || P.nativeElement.dispatchEvent(
4187
+ if ((g = this.$refs.formRef) != null && g.nativeElement && ((A = this.$refs.formRef) == null || A.nativeElement.dispatchEvent(
4172
4188
  U
4173
4189
  ), U.defaultPrevented))
4174
4190
  return;
4175
4191
  this.responseData = m, this.formState = "error";
4176
- let V = this.errorMessagePath ? Xe(m, this.errorMessagePath) : m.message || m.error || m;
4192
+ let V = this.errorMessagePath ? tt(m, this.errorMessagePath) : m.message || m.error || m;
4177
4193
  typeof V != "string" && (V = JSON.stringify(V)), this.formErrorMessage = V, this.mergeNewRootState({
4178
4194
  formErrorMessage: V
4179
4195
  });
@@ -4215,11 +4231,11 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
4215
4231
  }
4216
4232
  }
4217
4233
  }
4218
- }), Qr = ["validate", "action", "method", "name"], Yr = {
4234
+ }), Zr = ["validate", "action", "method", "name"], _r = {
4219
4235
  key: 2,
4220
4236
  class: "builder-form-error-text pre-2oa2wtipkzk"
4221
4237
  };
4222
- function Xr(e, t, n, o, r, i) {
4238
+ function ei(e, t, n, o, r, i) {
4223
4239
  const s = k("Blocks");
4224
4240
  return d(), h("form", $({
4225
4241
  validate: e.validate,
@@ -4242,16 +4258,16 @@ function Xr(e, t, n, o, r, i) {
4242
4258
  blocks: e.sendingMessage,
4243
4259
  context: e.builderContext
4244
4260
  }, null, 8, ["blocks", "context"])) : C("", !0),
4245
- e.submissionState() === "error" && e.responseData ? (d(), h("pre", Yr, de(e.errorResponse(e.responseData)), 1)) : C("", !0),
4261
+ e.submissionState() === "error" && e.responseData ? (d(), h("pre", _r, de(e.errorResponse(e.responseData)), 1)) : C("", !0),
4246
4262
  e.submissionState() === "success" ? (d(), S(s, {
4247
4263
  key: 3,
4248
4264
  path: "successMessage",
4249
4265
  blocks: e.successMessage,
4250
4266
  context: e.builderContext
4251
4267
  }, null, 8, ["blocks", "context"])) : C("", !0)
4252
- ], 16, Qr);
4268
+ ], 16, Zr);
4253
4269
  }
4254
- const Zr = /* @__PURE__ */ v(Jr, [["render", Xr], ["__scopeId", "data-v-77c7888c"]]), _r = {
4270
+ const ti = /* @__PURE__ */ v(Xr, [["render", ei], ["__scopeId", "data-v-77c7888c"]]), ni = {
4255
4271
  name: "Form:Input",
4256
4272
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
4257
4273
  inputs: [
@@ -4302,7 +4318,7 @@ const Zr = /* @__PURE__ */ v(Jr, [["render", Xr], ["__scopeId", "data-v-77c7888c
4302
4318
  borderStyle: "solid",
4303
4319
  borderColor: "#ccc"
4304
4320
  }
4305
- }, ei = y({
4321
+ }, oi = y({
4306
4322
  name: "builder-form-input-component",
4307
4323
  props: [
4308
4324
  "attributes",
@@ -4314,10 +4330,10 @@ const Zr = /* @__PURE__ */ v(Jr, [["render", Xr], ["__scopeId", "data-v-77c7888c
4314
4330
  "required"
4315
4331
  ],
4316
4332
  data() {
4317
- return { isEditing: A, filterAttrs: W };
4333
+ return { isEditing: P, filterAttrs: W };
4318
4334
  }
4319
- }), ti = ["placeholder", "type", "name", "value", "defaultValue", "required"];
4320
- function ni(e, t, n, o, r, i) {
4335
+ }), ri = ["placeholder", "type", "name", "value", "defaultValue", "required"];
4336
+ function ii(e, t, n, o, r, i) {
4321
4337
  return d(), h("input", $({
4322
4338
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
4323
4339
  placeholder: e.placeholder,
@@ -4326,9 +4342,9 @@ function ni(e, t, n, o, r, i) {
4326
4342
  value: e.value,
4327
4343
  defaultValue: e.defaultValue,
4328
4344
  required: e.required
4329
- }, e.filterAttrs(e.attributes, "v-on:", !1), L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, ti);
4345
+ }, e.filterAttrs(e.attributes, "v-on:", !1), L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, ri);
4330
4346
  }
4331
- const oi = /* @__PURE__ */ v(ei, [["render", ni]]), ri = {
4347
+ const si = /* @__PURE__ */ v(oi, [["render", ii]]), ai = {
4332
4348
  name: "Form:Select",
4333
4349
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
4334
4350
  defaultStyles: {
@@ -4370,14 +4386,14 @@ const oi = /* @__PURE__ */ v(ei, [["render", ni]]), ri = {
4370
4386
  }],
4371
4387
  static: !0,
4372
4388
  noWrap: !0
4373
- }, ii = y({
4389
+ }, li = y({
4374
4390
  name: "builder-select-component",
4375
4391
  props: ["attributes", "value", "defaultValue", "name", "required", "options"],
4376
4392
  data() {
4377
- return { isEditing: A, filterAttrs: W };
4393
+ return { isEditing: P, filterAttrs: W };
4378
4394
  }
4379
- }), si = ["value", "defaultValue", "name", "required"], ai = ["value"];
4380
- function li(e, t, n, o, r, i) {
4395
+ }), ci = ["value", "defaultValue", "name", "required"], di = ["value"];
4396
+ function ui(e, t, n, o, r, i) {
4381
4397
  return d(), h("select", $({
4382
4398
  value: e.value,
4383
4399
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
@@ -4388,10 +4404,10 @@ function li(e, t, n, o, r, i) {
4388
4404
  (d(!0), h(I, null, F(e.options, (s, l) => (d(), h("option", {
4389
4405
  key: `${s.name}-${l}`,
4390
4406
  value: s.value
4391
- }, de(s.name || s.value), 9, ai))), 128))
4392
- ], 16, si);
4407
+ }, de(s.name || s.value), 9, di))), 128))
4408
+ ], 16, ci);
4393
4409
  }
4394
- const ci = /* @__PURE__ */ v(ii, [["render", li]]), di = {
4410
+ const pi = /* @__PURE__ */ v(li, [["render", ui]]), mi = {
4395
4411
  name: "Form:SubmitButton",
4396
4412
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
4397
4413
  defaultStyles: {
@@ -4416,17 +4432,17 @@ const ci = /* @__PURE__ */ v(ii, [["render", li]]), di = {
4416
4432
  // that only shows if advanced setting is flipped
4417
4433
  // TODO: defaultChildren
4418
4434
  // canHaveChildren: true,
4419
- }, ui = y({
4435
+ }, hi = y({
4420
4436
  name: "builder-submit-button",
4421
4437
  props: ["attributes", "text"],
4422
4438
  data() {
4423
4439
  return { filterAttrs: W };
4424
4440
  }
4425
4441
  });
4426
- function pi(e, t, n, o, r, i) {
4442
+ function fi(e, t, n, o, r, i) {
4427
4443
  return d(), h("button", $({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), de(e.text), 17);
4428
4444
  }
4429
- const mi = /* @__PURE__ */ v(ui, [["render", pi]]), hi = {
4445
+ const bi = /* @__PURE__ */ v(hi, [["render", fi]]), gi = {
4430
4446
  name: "Form:TextArea",
4431
4447
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
4432
4448
  inputs: [{
@@ -4462,7 +4478,7 @@ const mi = /* @__PURE__ */ v(ui, [["render", pi]]), hi = {
4462
4478
  },
4463
4479
  static: !0,
4464
4480
  noWrap: !0
4465
- }, fi = y({
4481
+ }, yi = y({
4466
4482
  name: "builder-textarea",
4467
4483
  props: [
4468
4484
  "attributes",
@@ -4475,17 +4491,17 @@ const mi = /* @__PURE__ */ v(ui, [["render", pi]]), hi = {
4475
4491
  data() {
4476
4492
  return { filterAttrs: W };
4477
4493
  }
4478
- }), bi = ["placeholder", "name", "value", "defaultValue", "required"];
4479
- function gi(e, t, n, o, r, i) {
4494
+ }), vi = ["placeholder", "name", "value", "defaultValue", "required"];
4495
+ function Si(e, t, n, o, r, i) {
4480
4496
  return d(), h("textarea", $({
4481
4497
  placeholder: e.placeholder,
4482
4498
  name: e.name,
4483
4499
  value: e.value,
4484
4500
  defaultValue: e.defaultValue,
4485
4501
  required: e.required
4486
- }, e.filterAttrs(e.attributes, "v-on:", !1), L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, bi);
4502
+ }, e.filterAttrs(e.attributes, "v-on:", !1), L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, vi);
4487
4503
  }
4488
- const yi = /* @__PURE__ */ v(fi, [["render", gi]]), vi = {
4504
+ const ki = /* @__PURE__ */ v(yi, [["render", Si]]), Ci = {
4489
4505
  name: "Raw:Img",
4490
4506
  hideFromInsertMenu: !0,
4491
4507
  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",
@@ -4493,7 +4509,7 @@ const yi = /* @__PURE__ */ v(fi, [["render", gi]]), vi = {
4493
4509
  name: "image",
4494
4510
  bubble: !0,
4495
4511
  type: "file",
4496
- allowedFileTypes: Ve,
4512
+ allowedFileTypes: Oe,
4497
4513
  required: !0
4498
4514
  }, {
4499
4515
  name: "backgroundSize",
@@ -4529,7 +4545,7 @@ const yi = /* @__PURE__ */ v(fi, [["render", gi]]), vi = {
4529
4545
  defaultValue: 0.7041
4530
4546
  }],
4531
4547
  noWrap: !0
4532
- }, Si = y({
4548
+ }, Ti = y({
4533
4549
  name: "builder-img-component",
4534
4550
  props: [
4535
4551
  "imgSrc",
@@ -4542,7 +4558,7 @@ const yi = /* @__PURE__ */ v(fi, [["render", gi]]), vi = {
4542
4558
  "aspectRatio"
4543
4559
  ],
4544
4560
  data() {
4545
- return { isEditing: A };
4561
+ return { isEditing: P };
4546
4562
  },
4547
4563
  computed: {
4548
4564
  srcSetToUse() {
@@ -4559,8 +4575,8 @@ const yi = /* @__PURE__ */ v(fi, [["render", gi]]), vi = {
4559
4575
  return delete e.style, e;
4560
4576
  }
4561
4577
  }
4562
- }), ki = ["alt", "title", "src"];
4563
- function Ci(e, t, n, o, r, i) {
4578
+ }), wi = ["alt", "title", "src"];
4579
+ function Ii(e, t, n, o, r, i) {
4564
4580
  var s;
4565
4581
  return d(), h("img", $({
4566
4582
  loading: "lazy",
@@ -4574,9 +4590,9 @@ function Ci(e, t, n, o, r, i) {
4574
4590
  aspectRatio: e.aspectRatio || void 0,
4575
4591
  ...((s = e.attributes) == null ? void 0 : s.style) || {}
4576
4592
  }
4577
- }, e.imgAttrs), null, 16, ki);
4593
+ }, e.imgAttrs), null, 16, wi);
4578
4594
  }
4579
- const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
4595
+ const $i = /* @__PURE__ */ v(Ti, [["render", Ii]]), Ei = {
4580
4596
  name: "Video",
4581
4597
  canHaveChildren: !0,
4582
4598
  defaultStyles: {
@@ -4587,14 +4603,14 @@ const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
4587
4603
  inputs: [{
4588
4604
  name: "video",
4589
4605
  type: "file",
4590
- allowedFileTypes: dr,
4606
+ allowedFileTypes: mr,
4591
4607
  bubble: !0,
4592
4608
  defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
4593
4609
  required: !0
4594
4610
  }, {
4595
4611
  name: "posterImage",
4596
4612
  type: "file",
4597
- allowedFileTypes: Ve,
4613
+ allowedFileTypes: Oe,
4598
4614
  helperText: "Image to show before the video plays"
4599
4615
  }, {
4600
4616
  name: "autoPlay",
@@ -4660,7 +4676,7 @@ const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
4660
4676
  shouldReceiveBuilderProps: {
4661
4677
  builderBlock: !0
4662
4678
  }
4663
- }, Ii = y({
4679
+ }, Ri = y({
4664
4680
  name: "builder-video",
4665
4681
  props: [
4666
4682
  "lazyLoad",
@@ -4733,16 +4749,16 @@ const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
4733
4749
  };
4734
4750
  }
4735
4751
  }
4736
- }), $i = { style: {
4752
+ }), Pi = { style: {
4737
4753
  position: "relative"
4738
- } }, Ri = ["preload", "poster"], Ei = {
4754
+ } }, Ai = ["preload", "poster"], Bi = {
4739
4755
  key: 1,
4740
4756
  style: {
4741
4757
  display: "flex",
4742
4758
  flexDirection: "column",
4743
4759
  alignItems: "stretch"
4744
4760
  }
4745
- }, Ai = {
4761
+ }, Vi = {
4746
4762
  key: 2,
4747
4763
  style: {
4748
4764
  pointerEvents: "none",
@@ -4756,10 +4772,10 @@ const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
4756
4772
  height: "100%"
4757
4773
  }
4758
4774
  };
4759
- function Pi(e, t, n, o, r, i) {
4775
+ function Ni(e, t, n, o, r, i) {
4760
4776
  var s, l, a, u, p, f, c;
4761
- return d(), h("div", $i, [
4762
- z("video", $({
4777
+ return d(), h("div", Pi, [
4778
+ q("video", $({
4763
4779
  class: "builder-video",
4764
4780
  ref: "videoRef",
4765
4781
  preload: e.lazyLoad ? "none" : e.preload || "metadata",
@@ -4778,7 +4794,7 @@ function Pi(e, t, n, o, r, i) {
4778
4794
  },
4779
4795
  poster: e.posterImage
4780
4796
  }, e.spreadProps), [
4781
- z("source", $(
4797
+ q("source", $(
4782
4798
  { type: "video/mp4" },
4783
4799
  e.lazyLoad ? {
4784
4800
  "data-src": e.video
@@ -4786,7 +4802,7 @@ function Pi(e, t, n, o, r, i) {
4786
4802
  src: e.video
4787
4803
  }
4788
4804
  ), null, 16)
4789
- ], 16, Ri),
4805
+ ], 16, Ai),
4790
4806
  e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (d(), h("div", {
4791
4807
  key: 0,
4792
4808
  style: M({
@@ -4796,75 +4812,75 @@ function Pi(e, t, n, o, r, i) {
4796
4812
  fontSize: "0px"
4797
4813
  })
4798
4814
  }, null, 4)) : C("", !0),
4799
- (p = (u = e.builderBlock) == null ? void 0 : u.children) != null && p.length && e.fitContent ? (d(), h("div", Ei, [
4815
+ (p = (u = e.builderBlock) == null ? void 0 : u.children) != null && p.length && e.fitContent ? (d(), h("div", Bi, [
4800
4816
  N(e.$slots, "default")
4801
4817
  ])) : C("", !0),
4802
- (c = (f = e.builderBlock) == null ? void 0 : f.children) != null && c.length && !e.fitContent ? (d(), h("div", Ai, [
4818
+ (c = (f = e.builderBlock) == null ? void 0 : f.children) != null && c.length && !e.fitContent ? (d(), h("div", Vi, [
4803
4819
  N(e.$slots, "default")
4804
4820
  ])) : C("", !0)
4805
4821
  ]);
4806
4822
  }
4807
- const Bi = /* @__PURE__ */ v(Ii, [["render", Pi]]), Vi = () => [{
4808
- component: xr,
4809
- ...Nr
4823
+ const Wi = /* @__PURE__ */ v(Ri, [["render", Ni]]), Oi = () => [{
4824
+ component: Fr,
4825
+ ...Dr
4810
4826
  }, {
4811
- component: Kr,
4812
- ...Ur
4827
+ component: Gr,
4828
+ ...Hr
4813
4829
  }, {
4814
- component: Zr,
4815
- ...qr
4830
+ component: ti,
4831
+ ...Jr
4816
4832
  }, {
4817
- component: oi,
4818
- ..._r
4833
+ component: si,
4834
+ ...ni
4819
4835
  }, {
4820
- component: mi,
4821
- ...di
4836
+ component: bi,
4837
+ ...mi
4822
4838
  }, {
4823
- component: ci,
4824
- ...ri
4839
+ component: pi,
4840
+ ...ai
4825
4841
  }, {
4826
- component: yi,
4827
- ...hi
4842
+ component: ki,
4843
+ ...gi
4828
4844
  }, {
4829
- component: Ti,
4830
- ...vi
4845
+ component: $i,
4846
+ ...Ci
4831
4847
  }, {
4832
- component: Bi,
4833
- ...wi
4834
- }], ze = () => [{
4835
- component: Ft,
4836
- ...ar
4848
+ component: Wi,
4849
+ ...Ei
4850
+ }], Ye = () => [{
4851
+ component: Mt,
4852
+ ...dr
4837
4853
  }, {
4838
- component: Po,
4839
- ...lr
4854
+ component: Vo,
4855
+ ...ur
4840
4856
  }, {
4841
- component: No,
4842
- ...cr
4857
+ component: Oo,
4858
+ ...pr
4843
4859
  }, {
4844
- component: Ho,
4845
- ...ur
4860
+ component: jo,
4861
+ ...hr
4846
4862
  }, {
4847
- component: Ko,
4848
- ...br
4863
+ component: qo,
4864
+ ...vr
4849
4865
  }, {
4850
- component: Sr,
4851
- ...gr
4866
+ component: Tr,
4867
+ ...Sr
4852
4868
  }, {
4853
- component: bs,
4854
- ...kr
4869
+ component: vs,
4870
+ ...wr
4855
4871
  }, {
4856
- component: Vr,
4857
- ...Er
4858
- }, ...At.includes(R) ? [{
4859
- component: fr,
4860
- ...pr
4872
+ component: Or,
4873
+ ...Br
4874
+ }, ...Bt.includes(E) ? [{
4875
+ component: yr,
4876
+ ...fr
4861
4877
  }] : [], {
4862
- component: Rr,
4863
- ...Cr
4878
+ component: Ar,
4879
+ ...Ir
4864
4880
  }, {
4865
- component: sr,
4866
- ...tr
4867
- }, ...Vi()], Ni = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
4881
+ component: cr,
4882
+ ...rr
4883
+ }, ...Oi()], Di = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
4868
4884
  function getAndSetVariantId() {
4869
4885
  function setCookie(name, value, days) {
4870
4886
  let expires = '';
@@ -4923,7 +4939,7 @@ const Bi = /* @__PURE__ */ v(Ii, [["render", Pi]]), Vi = () => [{
4923
4939
  }).join('');
4924
4940
  styleEl.innerHTML = newStyleStr;
4925
4941
  }
4926
- }`, Wi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4942
+ }`, xi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4927
4943
  if (!navigator.cookieEnabled) {
4928
4944
  return;
4929
4945
  }
@@ -4957,37 +4973,37 @@ const Bi = /* @__PURE__ */ v(Ii, [["render", Pi]]), Vi = () => [{
4957
4973
  thisScriptEl?.remove();
4958
4974
  }
4959
4975
  return;
4960
- }`, ke = "builderIoAbTest", Ce = "builderIoRenderContent", ie = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4976
+ }`, we = "builderIoAbTest", Ie = "builderIoRenderContent", ie = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4961
4977
  ...t,
4962
4978
  testVariationId: t.id,
4963
4979
  id: e == null ? void 0 : e.id
4964
- })), Di = ({
4980
+ })), Ui = ({
4965
4981
  canTrack: e,
4966
4982
  content: t
4967
- }) => !(!(ie(t).length > 0) || !e), Oi = (e) => e === "react" || e === "reactNative", xi = R === "angular", We = Oi(R), Ui = () => `
4983
+ }) => !(!(ie(t).length > 0) || !e), Li = (e) => e === "react" || e === "reactNative", Fi = E === "angular", xe = Li(E), Hi = () => `
4968
4984
  (function() {
4969
- if (!window.${ke}) {
4970
- window.${ke} = ${Ni};
4985
+ if (!window.${we}) {
4986
+ window.${we} = ${Di};
4971
4987
  }
4972
- if (!window.${Ce}) {
4973
- window.${Ce} = ${Wi};
4974
- }${We ? `
4988
+ if (!window.${Ie}) {
4989
+ window.${Ie} = ${xi};
4990
+ }${xe ? `
4975
4991
  var thisScriptEl = document.currentScript;
4976
4992
  if (thisScriptEl) { thisScriptEl.remove(); }` : ""}
4977
4993
  })();
4978
- `, Li = (e, t) => `
4979
- window.${ke}(
4980
- "${t}",${JSON.stringify(e)}, ${We}, ${xi}
4981
- )`, Fi = ({
4994
+ `, Mi = (e, t) => `
4995
+ window.${we}(
4996
+ "${t}",${JSON.stringify(e)}, ${xe}, ${Fi}
4997
+ )`, ji = ({
4982
4998
  contentId: e,
4983
4999
  variationId: t
4984
- }) => `window.${Ce}(
4985
- "${t}", "${e}", ${We}
5000
+ }) => `window.${Ie}(
5001
+ "${t}", "${e}", ${xe}
4986
5002
  )`;
4987
- function Ge(e) {
5003
+ function Xe(e) {
4988
5004
  return Math.round(e * 1e3) / 1e3;
4989
5005
  }
4990
- const Hi = (e, t, n = !0) => {
5006
+ const zi = (e, t, n = !0) => {
4991
5007
  if (!(e instanceof HTMLElement))
4992
5008
  return null;
4993
5009
  let o = n ? e : e.parentElement;
@@ -4998,35 +5014,35 @@ const Hi = (e, t, n = !0) => {
4998
5014
  return o;
4999
5015
  } while (o = o.parentElement);
5000
5016
  return null;
5001
- }, Mi = (e) => Hi(e, (t) => {
5017
+ }, Ki = (e) => zi(e, (t) => {
5002
5018
  const n = t.getAttribute("builder-id") || t.id;
5003
5019
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
5004
- }), Je = ({
5020
+ }), Ze = ({
5005
5021
  event: e,
5006
5022
  target: t
5007
5023
  }) => {
5008
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = Ge(o / n.width), s = Ge(r / n.height);
5024
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = Xe(o / n.width), s = Xe(r / n.height);
5009
5025
  return {
5010
5026
  x: i,
5011
5027
  y: s
5012
5028
  };
5013
- }, ji = (e) => {
5014
- const t = e.target, n = t && Mi(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
5029
+ }, qi = (e) => {
5030
+ const t = e.target, n = t && Ki(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
5015
5031
  return {
5016
5032
  targetBuilderElement: o || void 0,
5017
5033
  metadata: {
5018
- targetOffset: t ? Je({
5034
+ targetOffset: t ? Ze({
5019
5035
  event: e,
5020
5036
  target: t
5021
5037
  }) : void 0,
5022
- builderTargetOffset: n ? Je({
5038
+ builderTargetOffset: n ? Ze({
5023
5039
  event: e,
5024
5040
  target: n
5025
5041
  }) : void 0,
5026
5042
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
5027
5043
  }
5028
5044
  };
5029
- }, Ki = ["svelte", "qwik", "vue"], qi = () => Ki.includes(R) && (A() || Re()), zi = (e) => {
5045
+ }, Gi = ["svelte", "qwik", "vue"], Ji = () => Gi.includes(E) && (P() || Ae()), Qi = (e) => {
5030
5046
  var i;
5031
5047
  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);
5032
5048
  let r = "";
@@ -5052,15 +5068,15 @@ font-weight: ${s};
5052
5068
  `.trim());
5053
5069
  }
5054
5070
  return r;
5055
- }, Gi = ({
5071
+ }, Yi = ({
5056
5072
  customFonts: e
5057
5073
  }) => {
5058
5074
  var t;
5059
- return ((t = e == null ? void 0 : e.map((n) => zi(n))) == null ? void 0 : t.join(" ")) || "";
5060
- }, Ji = ({
5075
+ return ((t = e == null ? void 0 : e.map((n) => Qi(n))) == null ? void 0 : t.join(" ")) || "";
5076
+ }, Xi = ({
5061
5077
  cssCode: e,
5062
5078
  contentId: t
5063
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Qi = `
5079
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Zi = `
5064
5080
  .builder-button {
5065
5081
  all: unset;
5066
5082
  }
@@ -5077,7 +5093,7 @@ font-weight: ${s};
5077
5093
  text-align: inherit;
5078
5094
  font-family: inherit;
5079
5095
  }
5080
- `, Yi = (e) => e ? "" : Qi, Xi = (e) => `variant-${e}`, Zi = y({
5096
+ `, _i = (e) => e ? "" : Zi, es = (e) => `variant-${e}`, ts = y({
5081
5097
  name: "enable-editor",
5082
5098
  components: { DynamicDiv: te },
5083
5099
  props: [
@@ -5103,13 +5119,14 @@ font-weight: ${s};
5103
5119
  contextValue: this.builderContextSignal,
5104
5120
  prevData: null,
5105
5121
  prevLocale: "",
5122
+ prevContent: null,
5106
5123
  ContentWrapper: this.contentWrapper || "div",
5107
5124
  httpReqsData: {},
5108
5125
  httpReqsPending: {},
5109
5126
  clicked: !1,
5110
5127
  builderContext: ge,
5111
- needsElementRefDivForEditing: qi,
5112
- getWrapperClassName: Xi
5128
+ needsElementRefDivForEditing: Ji,
5129
+ getWrapperClassName: es
5113
5130
  };
5114
5131
  },
5115
5132
  provide() {
@@ -5124,7 +5141,7 @@ font-weight: ${s};
5124
5141
  mounted() {
5125
5142
  var e, t, n;
5126
5143
  if (T()) {
5127
- A() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
5144
+ P() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
5128
5145
  new CustomEvent("initeditingbldr")
5129
5146
  );
5130
5147
  const o = this.builderContextSignal.content && G(this.canTrack), r = ue({
@@ -5142,7 +5159,7 @@ font-weight: ${s};
5142
5159
  variationId: r !== s ? r : void 0
5143
5160
  });
5144
5161
  }
5145
- Re() && !A() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
5162
+ Ae() && !P() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
5146
5163
  new CustomEvent("initpreviewingbldr")
5147
5164
  );
5148
5165
  }
@@ -5244,7 +5261,7 @@ font-weight: ${s};
5244
5261
  this.builderContextSignal.content = n;
5245
5262
  },
5246
5263
  processMessage(e) {
5247
- return ht({
5264
+ return yt({
5248
5265
  model: this.model,
5249
5266
  trustedHosts: this.trustedHosts,
5250
5267
  callbacks: {
@@ -5258,7 +5275,7 @@ font-weight: ${s};
5258
5275
  });
5259
5276
  },
5260
5277
  animation: (t) => {
5261
- kt(t);
5278
+ It(t);
5262
5279
  },
5263
5280
  contentUpdate: (t, n) => {
5264
5281
  this.mergeNewContent(t, n);
@@ -5280,7 +5297,7 @@ font-weight: ${s};
5280
5297
  contentId: r,
5281
5298
  apiKey: this.apiKey,
5282
5299
  variationId: o !== r ? o : void 0,
5283
- ...ji(e),
5300
+ ...qi(e),
5284
5301
  unique: !this.clicked
5285
5302
  });
5286
5303
  }
@@ -5294,7 +5311,7 @@ font-weight: ${s};
5294
5311
  if (!r)
5295
5312
  return;
5296
5313
  const i = typeof r == "object" && r["@type"] === "@builder.io/core:Request";
5297
- if (this.httpReqsPending[o] || this.httpReqsData[o] && !A())
5314
+ if (this.httpReqsPending[o] || this.httpReqsData[o] && !P())
5298
5315
  return;
5299
5316
  const s = i ? r.request.url : r;
5300
5317
  this.httpReqsPending[o] = !0;
@@ -5318,7 +5335,7 @@ font-weight: ${s};
5318
5335
  url: l,
5319
5336
  method: "GET"
5320
5337
  };
5321
- Ie(JSON.stringify(a));
5338
+ Re(JSON.stringify(a));
5322
5339
  const u = {
5323
5340
  method: a.method,
5324
5341
  headers: a.headers,
@@ -5341,12 +5358,12 @@ font-weight: ${s};
5341
5358
  );
5342
5359
  },
5343
5360
  emitStateUpdate() {
5344
- A() && window.dispatchEvent(
5361
+ P() && window.dispatchEvent(
5345
5362
  new CustomEvent(
5346
5363
  "builder:component:stateChange",
5347
5364
  {
5348
5365
  detail: {
5349
- state: $e(this.builderContextSignal.rootState),
5366
+ state: Pe(this.builderContextSignal.rootState),
5350
5367
  ref: {
5351
5368
  name: this.model
5352
5369
  }
@@ -5356,7 +5373,7 @@ font-weight: ${s};
5356
5373
  );
5357
5374
  },
5358
5375
  elementRef_onIniteditingbldr(e) {
5359
- window.addEventListener("message", this.processMessage), mt({
5376
+ window.addEventListener("message", this.processMessage), gt({
5360
5377
  ...this.locale ? {
5361
5378
  locale: this.locale
5362
5379
  } : {},
@@ -5373,7 +5390,7 @@ font-weight: ${s};
5373
5390
  ).forEach((t) => {
5374
5391
  var n, o;
5375
5392
  if (!((n = t.models) != null && n.length) || t.models.includes(this.model)) {
5376
- const r = En(t);
5393
+ const r = An(t);
5377
5394
  (o = window.parent) == null || o.postMessage(r, "*");
5378
5395
  }
5379
5396
  }), window.addEventListener(
@@ -5386,7 +5403,7 @@ font-weight: ${s};
5386
5403
  const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
5387
5404
  `builder.overrides.${n}`
5388
5405
  ), r = t.get("apiKey") || t.get("builder.space");
5389
- (n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && Pe({
5406
+ (n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && Ne({
5390
5407
  model: this.model,
5391
5408
  apiKey: this.apiKey,
5392
5409
  apiVersion: this.builderContextSignal.apiVersion,
@@ -5401,7 +5418,7 @@ font-weight: ${s};
5401
5418
  }
5402
5419
  }
5403
5420
  });
5404
- function _i(e, t, n, o, r, i) {
5421
+ function ns(e, t, n, o, r, i) {
5405
5422
  var s, l, a;
5406
5423
  return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(X(e.ContentWrapper), $({
5407
5424
  key: 0,
@@ -5422,26 +5439,26 @@ function _i(e, t, n, o, r, i) {
5422
5439
  _: 3
5423
5440
  }, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : C("", !0);
5424
5441
  }
5425
- const es = /* @__PURE__ */ v(Zi, [["render", _i]]), ts = y({
5442
+ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = y({
5426
5443
  name: "content-styles",
5427
5444
  components: { InlinedStyles: pe },
5428
5445
  props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
5429
5446
  data() {
5430
5447
  return {
5431
5448
  injectedStyles: `
5432
- ${Ji({
5449
+ ${Xi({
5433
5450
  cssCode: this.cssCode,
5434
5451
  contentId: this.contentId
5435
5452
  })}
5436
- ${Gi({
5453
+ ${Yi({
5437
5454
  customFonts: this.customFonts
5438
5455
  })}
5439
- ${Yi(this.isNestedRender)}
5456
+ ${_i(this.isNestedRender)}
5440
5457
  `.trim()
5441
5458
  };
5442
5459
  }
5443
5460
  });
5444
- function ns(e, t, n, o, r, i) {
5461
+ function is(e, t, n, o, r, i) {
5445
5462
  const s = k("InlinedStyles");
5446
5463
  return d(), S(s, {
5447
5464
  id: "builderio-content",
@@ -5449,7 +5466,7 @@ function ns(e, t, n, o, r, i) {
5449
5466
  nonce: e.nonce
5450
5467
  }, null, 8, ["styles", "nonce"]);
5451
5468
  }
5452
- const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
5469
+ const ss = /* @__PURE__ */ v(rs, [["render", is]]), as = ({
5453
5470
  content: e,
5454
5471
  data: t,
5455
5472
  locale: n
@@ -5466,7 +5483,7 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
5466
5483
  locale: n
5467
5484
  } : {}
5468
5485
  };
5469
- }, is = ({
5486
+ }, ls = ({
5470
5487
  content: e,
5471
5488
  data: t
5472
5489
  }) => e ? {
@@ -5476,13 +5493,13 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
5476
5493
  ...t
5477
5494
  },
5478
5495
  meta: e == null ? void 0 : e.meta
5479
- } : void 0, ss = Nt, as = y({
5496
+ } : void 0, cs = Ot, ds = y({
5480
5497
  name: "content-component",
5481
5498
  components: {
5482
- EnableEditor: es,
5483
- InlinedScript: Ne,
5484
- ContentStyles: os,
5485
- Blocks: q,
5499
+ EnableEditor: os,
5500
+ InlinedScript: De,
5501
+ ContentStyles: ss,
5502
+ Blocks: K,
5486
5503
  DynamicDiv: te
5487
5504
  },
5488
5505
  props: [
@@ -5511,32 +5528,32 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
5511
5528
  data() {
5512
5529
  var e, t;
5513
5530
  return {
5514
- scriptStr: Fi({
5531
+ scriptStr: ji({
5515
5532
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
5516
5533
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
5517
5534
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
5518
5535
  contentId: (t = this.content) == null ? void 0 : t.id
5519
5536
  }),
5520
5537
  registeredComponents: [
5521
- ...ze(),
5538
+ ...Ye(),
5522
5539
  ...this.customComponents || []
5523
5540
  ].reduce(
5524
5541
  (n, { component: o, ...r }) => ({
5525
5542
  ...n,
5526
5543
  [r.name]: {
5527
- component: ss(o),
5544
+ component: cs(o),
5528
5545
  ...le(r)
5529
5546
  }
5530
5547
  }),
5531
5548
  {}
5532
5549
  ),
5533
5550
  builderContextSignal: {
5534
- content: is({
5551
+ content: ls({
5535
5552
  content: this.content,
5536
5553
  data: this.data
5537
5554
  }),
5538
5555
  localState: void 0,
5539
- rootState: rs({
5556
+ rootState: as({
5540
5557
  content: this.content,
5541
5558
  data: this.data,
5542
5559
  locale: this.locale
@@ -5547,7 +5564,7 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
5547
5564
  apiKey: this.apiKey,
5548
5565
  apiVersion: this.apiVersion,
5549
5566
  componentInfos: [
5550
- ...ze(),
5567
+ ...Ye(),
5551
5568
  ...this.customComponents || []
5552
5569
  ].reduce(
5553
5570
  (n, { component: o, ...r }) => ({
@@ -5562,13 +5579,13 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
5562
5579
  nonce: this.nonce || "",
5563
5580
  model: this.model
5564
5581
  },
5565
- TARGET: R
5582
+ TARGET: E
5566
5583
  };
5567
5584
  },
5568
5585
  provide() {
5569
5586
  const e = this;
5570
5587
  return {
5571
- [Ye.key]: {
5588
+ [et.key]: {
5572
5589
  registeredComponents: e.registeredComponents
5573
5590
  }
5574
5591
  };
@@ -5612,7 +5629,7 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
5612
5629
  }
5613
5630
  }
5614
5631
  });
5615
- function ls(e, t, n, o, r, i) {
5632
+ function us(e, t, n, o, r, i) {
5616
5633
  const s = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
5617
5634
  return d(), S(u, $({
5618
5635
  apiHost: e.apiHost,
@@ -5633,7 +5650,7 @@ function ls(e, t, n, o, r, i) {
5633
5650
  isNestedRender: e.isNestedRender
5634
5651
  }, {}), {
5635
5652
  default: x(() => {
5636
- var p, f, c, m, b, g, P;
5653
+ var p, f, c, m, b, g, A;
5637
5654
  return [
5638
5655
  e.isSsrAbTest ? (d(), S(s, {
5639
5656
  key: 0,
@@ -5649,8 +5666,8 @@ function ls(e, t, n, o, r, i) {
5649
5666
  cssCode: (c = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : c.cssCode,
5650
5667
  customFonts: (b = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : b.customFonts
5651
5668
  }, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : C("", !0),
5652
- E(a, {
5653
- blocks: (P = (g = e.builderContextSignal.content) == null ? void 0 : g.data) == null ? void 0 : P.blocks,
5669
+ R(a, {
5670
+ blocks: (A = (g = e.builderContextSignal.content) == null ? void 0 : g.data) == null ? void 0 : A.blocks,
5654
5671
  context: e.builderContextSignal,
5655
5672
  registeredComponents: e.registeredComponents,
5656
5673
  linkComponent: e.linkComponent
@@ -5660,19 +5677,19 @@ function ls(e, t, n, o, r, i) {
5660
5677
  _: 1
5661
5678
  }, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
5662
5679
  }
5663
- const cs = /* @__PURE__ */ v(as, [["render", ls]]), ds = y({
5680
+ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = y({
5664
5681
  name: "content-variants",
5665
5682
  components: {
5666
- InlinedScript: Ne,
5683
+ InlinedScript: De,
5667
5684
  InlinedStyles: pe,
5668
- ContentComponent: cs
5685
+ ContentComponent: ps
5669
5686
  },
5670
5687
  props: [
5671
5688
  "canTrack",
5672
5689
  "content",
5673
- "isNestedRender",
5674
5690
  "nonce",
5675
5691
  "apiHost",
5692
+ "isNestedRender",
5676
5693
  "model",
5677
5694
  "data",
5678
5695
  "context",
@@ -5690,14 +5707,15 @@ const cs = /* @__PURE__ */ v(as, [["render", ls]]), ds = y({
5690
5707
  ],
5691
5708
  data() {
5692
5709
  return {
5693
- shouldRenderVariants: Di({
5710
+ shouldRenderVariants: Ui({
5694
5711
  canTrack: G(this.canTrack),
5695
5712
  content: this.content
5696
5713
  }),
5697
- SDKS_SUPPORTING_PERSONALIZATION: At,
5698
- getInitPersonalizationVariantsFnsScriptString: Zo,
5699
- TARGET: R,
5700
- getInitVariantsFnsScriptString: Ui,
5714
+ shouldEmitPersonalizationFns: er(this.content),
5715
+ SDKS_SUPPORTING_PERSONALIZATION: Bt,
5716
+ getInitPersonalizationVariantsFnsScriptString: tr,
5717
+ TARGET: E,
5718
+ getInitVariantsFnsScriptString: Hi,
5701
5719
  getVariants: ie
5702
5720
  };
5703
5721
  },
@@ -5706,7 +5724,7 @@ const cs = /* @__PURE__ */ v(as, [["render", ls]]), ds = y({
5706
5724
  computed: {
5707
5725
  updateCookieAndStylesScriptStr() {
5708
5726
  var e;
5709
- return Li(
5727
+ return Mi(
5710
5728
  ie(this.content).map((t) => ({
5711
5729
  id: t.testVariationId,
5712
5730
  testRatio: t.testRatio
@@ -5722,17 +5740,17 @@ const cs = /* @__PURE__ */ v(as, [["render", ls]]), ds = y({
5722
5740
  return this.shouldRenderVariants ? {
5723
5741
  ...this.content,
5724
5742
  testVariationId: (e = this.content) == null ? void 0 : e.id
5725
- } : Un({
5743
+ } : Fn({
5726
5744
  item: this.content,
5727
5745
  canTrack: G(this.canTrack)
5728
5746
  });
5729
5747
  }
5730
5748
  }
5731
5749
  });
5732
- function us(e, t, n, o, r, i) {
5750
+ function hs(e, t, n, o, r, i) {
5733
5751
  const s = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
5734
5752
  return d(), h(I, null, [
5735
- !e.isNestedRender && e.TARGET !== "reactNative" ? (d(), h(I, { key: 0 }, [
5753
+ e.shouldEmitPersonalizationFns ? (d(), h(I, { key: 0 }, [
5736
5754
  e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (d(), S(s, {
5737
5755
  key: 0,
5738
5756
  id: "builderio-init-personalization-variants-fns",
@@ -5741,17 +5759,17 @@ function us(e, t, n, o, r, i) {
5741
5759
  }, null, 8, ["nonce", "scriptStr"])) : C("", !0)
5742
5760
  ], 64)) : C("", !0),
5743
5761
  e.shouldRenderVariants ? (d(), h(I, { key: 1 }, [
5744
- E(s, {
5762
+ R(s, {
5745
5763
  id: "builderio-init-variants-fns",
5746
5764
  scriptStr: e.getInitVariantsFnsScriptString(),
5747
5765
  nonce: e.nonce || ""
5748
5766
  }, null, 8, ["scriptStr", "nonce"]),
5749
- E(l, {
5767
+ R(l, {
5750
5768
  id: "builderio-variants",
5751
5769
  styles: e.hideVariantsStyleString,
5752
5770
  nonce: e.nonce || ""
5753
5771
  }, null, 8, ["styles", "nonce"]),
5754
- E(s, {
5772
+ R(s, {
5755
5773
  id: "builderio-variants-visibility",
5756
5774
  scriptStr: e.updateCookieAndStylesScriptStr,
5757
5775
  nonce: e.nonce || ""
@@ -5781,7 +5799,7 @@ function us(e, t, n, o, r, i) {
5781
5799
  trustedHosts: e.trustedHosts
5782
5800
  }, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
5783
5801
  ], 64)) : C("", !0),
5784
- E(a, $({
5802
+ R(a, $({
5785
5803
  apiHost: e.apiHost,
5786
5804
  nonce: e.nonce,
5787
5805
  isNestedRender: e.isNestedRender,
@@ -5808,13 +5826,13 @@ function us(e, t, n, o, r, i) {
5808
5826
  }), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
5809
5827
  ], 64);
5810
5828
  }
5811
- const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = async ({
5829
+ const fs = /* @__PURE__ */ v(ms, [["render", hs]]), bs = async ({
5812
5830
  builderContextValue: e,
5813
5831
  symbol: t
5814
5832
  }) => {
5815
5833
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
5816
5834
  (e != null && e.apiKey))
5817
- return Pe({
5835
+ return Ne({
5818
5836
  model: t.model,
5819
5837
  apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
5820
5838
  apiVersion: e.apiVersion,
@@ -5826,9 +5844,9 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = async ({
5826
5844
  }).catch((n) => {
5827
5845
  B.error("Could not fetch symbol content: ", n);
5828
5846
  });
5829
- }, hs = y({
5847
+ }, gs = y({
5830
5848
  name: "builder-symbol",
5831
- components: { ContentVariants: ps, DynamicDiv: te },
5849
+ components: { ContentVariants: fs, DynamicDiv: te },
5832
5850
  props: [
5833
5851
  "symbol",
5834
5852
  "builderComponents",
@@ -5885,7 +5903,7 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = async ({
5885
5903
  methods: {
5886
5904
  setContent() {
5887
5905
  var e;
5888
- this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || ms({
5906
+ this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || bs({
5889
5907
  symbol: this.symbol,
5890
5908
  builderContextValue: this.builderContext
5891
5909
  }).then((t) => {
@@ -5895,11 +5913,11 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = async ({
5895
5913
  }
5896
5914
  }
5897
5915
  });
5898
- function fs(e, t, n, o, r, i) {
5916
+ function ys(e, t, n, o, r, i) {
5899
5917
  var l, a, u, p, f, c, m;
5900
5918
  const s = k("ContentVariants");
5901
5919
  return d(), h("div", $({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
5902
- E(s, {
5920
+ R(s, {
5903
5921
  nonce: e.builderContext.nonce,
5904
5922
  isNestedRender: !0,
5905
5923
  apiVersion: e.builderContext.apiVersion,
@@ -5923,47 +5941,47 @@ function fs(e, t, n, o, r, i) {
5923
5941
  }, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
5924
5942
  ], 16);
5925
5943
  }
5926
- const bs = /* @__PURE__ */ v(hs, [["render", fs]]);
5944
+ const vs = /* @__PURE__ */ v(gs, [["render", ys]]);
5927
5945
  export {
5928
- ws as A,
5929
- It as B,
5930
- Po as C,
5931
- $s as D,
5932
- Qn as E,
5933
- No as F,
5934
- Yn as G,
5935
- Pe as H,
5936
- Ho as I,
5937
- vs as J,
5938
- As as K,
5939
- Ko as S,
5940
- R as T,
5941
- Bi as V,
5946
+ Es as A,
5947
+ Pt as B,
5948
+ Vo as C,
5949
+ Ps as D,
5950
+ Xn as E,
5951
+ Oo as F,
5952
+ Zn as G,
5953
+ Ne as H,
5954
+ jo as I,
5955
+ Cs as J,
5956
+ Vs as K,
5957
+ qo as S,
5958
+ E as T,
5959
+ Wi as V,
5942
5960
  v as _,
5943
5961
  j as a,
5944
5962
  ge as b,
5945
5963
  pe as c,
5946
- K as d,
5964
+ z as d,
5947
5965
  ee as e,
5948
- $o as f,
5949
- Es as g,
5950
- Rs as h,
5951
- A as i,
5952
- Ps as j,
5953
- Be as k,
5954
- Rn as l,
5955
- Ft as m,
5956
- bs as n,
5957
- Vr as o,
5958
- q as p,
5959
- ps as q,
5960
- Re as r,
5961
- Is as s,
5962
- En as t,
5963
- ks as u,
5964
- Cs as v,
5965
- ss as w,
5966
- Ts as x,
5967
- ut as y,
5968
- Ss as z
5966
+ Ro as f,
5967
+ Bs as g,
5968
+ As as h,
5969
+ P as i,
5970
+ Ns as j,
5971
+ We as k,
5972
+ Pn as l,
5973
+ Mt as m,
5974
+ vs as n,
5975
+ Or as o,
5976
+ K as p,
5977
+ fs as q,
5978
+ Ae as r,
5979
+ Rs as s,
5980
+ An as t,
5981
+ ws as u,
5982
+ Is as v,
5983
+ cs as w,
5984
+ $s as x,
5985
+ ft as y,
5986
+ Ts as z
5969
5987
  };