@builder.io/sdk-vue 5.2.6 → 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 (69) hide show
  1. package/lib/browser/{awaiter-fjkJEwL2.cjs → awaiter-0mKQSRRk.cjs} +1 -1
  2. package/lib/browser/{awaiter-uv2UPA7r.js → awaiter-aT9nEkF0.js} +1 -1
  3. package/lib/browser/{block-wrapper-78wlnbq2.cjs → block-wrapper-ebPi5330.cjs} +1 -1
  4. package/lib/browser/{block-wrapper-JeL_jj_h.js → block-wrapper-hsmUEUmJ.js} +3 -3
  5. package/lib/browser/blocks/personalization-container/helpers.d.ts +2 -0
  6. package/lib/browser/{component-ref-mKp3QJjb.js → component-ref-2JLic_6J.js} +4 -4
  7. package/lib/browser/{component-ref-x3D964Ui.cjs → component-ref-5lsY_P2L.cjs} +1 -1
  8. package/lib/browser/components/content-variants/content-variants.vue.d.ts +1 -0
  9. package/lib/browser/constants/sdk-version.d.ts +1 -1
  10. package/lib/browser/{get-block-properties-OItA8P2h.cjs → get-block-properties-DMrMpyLe.cjs} +1 -1
  11. package/lib/browser/{get-block-properties-gsdrxoRd.js → get-block-properties-uAJb6ltf.js} +1 -1
  12. package/lib/browser/{index-bSLOTVNj.cjs → index-HltbyCkc.cjs} +41 -33
  13. package/lib/browser/{index-SDeF5ljo.js → index-ODe_HCA4.js} +687 -675
  14. package/lib/browser/index.cjs +1 -1
  15. package/lib/browser/index.mjs +1 -1
  16. package/lib/browser/{live-edit-G9Y94Fp3.js → live-edit-6Fy-p514.js} +1 -1
  17. package/lib/browser/{live-edit-tGxAmCBt.cjs → live-edit-jPgkphth.cjs} +1 -1
  18. package/lib/browser/{repeated-block-WgU2OssJ.js → repeated-block-GCDk4uyK.js} +2 -2
  19. package/lib/browser/{repeated-block-Fy3-rBBk.cjs → repeated-block-dwcsu5Tf.cjs} +1 -1
  20. package/lib/browser/{style-wrapper-EIQ0LSdQ.cjs → style-wrapper-uJyikbLw.cjs} +1 -1
  21. package/lib/browser/{style-wrapper-VY7cdn42.js → style-wrapper-uzjZV5OS.js} +1 -1
  22. package/lib/edge/{awaiter-To0MGZ0d.cjs → awaiter-eu9BKtnq.cjs} +1 -1
  23. package/lib/edge/{awaiter-xFN_a7xm.js → awaiter-n2CWjZB1.js} +1 -1
  24. package/lib/{node/block-wrapper-2UZEHIep.cjs → edge/block-wrapper--rtRhHUc.cjs} +1 -1
  25. package/lib/edge/{block-wrapper-1dKtPesr.js → block-wrapper-9nBz9JZR.js} +3 -3
  26. package/lib/edge/blocks/personalization-container/helpers.d.ts +2 -0
  27. package/lib/edge/{component-ref-e50s6g-8.js → component-ref-S9vJwuiq.js} +4 -4
  28. package/lib/edge/{component-ref-Yf97BoLu.cjs → component-ref-jnjNzDWr.cjs} +1 -1
  29. package/lib/edge/components/content-variants/content-variants.vue.d.ts +1 -0
  30. package/lib/edge/constants/sdk-version.d.ts +1 -1
  31. package/lib/edge/{get-block-properties-EY1VltaD.js → get-block-properties--bKisxsm.js} +1 -1
  32. package/lib/edge/{get-block-properties-_upYTgwb.cjs → get-block-properties-TpA1c-Zj.cjs} +1 -1
  33. package/lib/edge/{index-i395EE2u.cjs → index-_nY8Y9dm.cjs} +49 -41
  34. package/lib/edge/{index-47Iqxag2.js → index-bxo4ghDB.js} +942 -930
  35. package/lib/edge/index.cjs +1 -1
  36. package/lib/edge/index.mjs +1 -1
  37. package/lib/{node/live-edit-WlaTJPy3.js → edge/live-edit-7g02-2DF.js} +1 -1
  38. package/lib/{node/live-edit-GjqOXJlY.cjs → edge/live-edit-e8Z6uQ-j.cjs} +1 -1
  39. package/lib/edge/{repeated-block-PQOSkxIA.cjs → repeated-block-OUui2NbB.cjs} +1 -1
  40. package/lib/edge/{repeated-block-YtApB6_A.js → repeated-block-R_IWEkxl.js} +2 -2
  41. package/lib/edge/{style-wrapper-lmmE3giL.cjs → style-wrapper-F_5qcoF-.cjs} +1 -1
  42. package/lib/edge/{style-wrapper-_yXwiJwO.js → style-wrapper-sQRz1Tz9.js} +1 -1
  43. package/lib/node/{awaiter-DD7OMOMu.js → awaiter-JSpfFLrt.js} +1 -1
  44. package/lib/node/{awaiter-ef2JaOpA.cjs → awaiter-N70CU_8O.cjs} +1 -1
  45. package/lib/node/{block-wrapper-QV4wX7ge.js → block-wrapper-8WuMQvKC.js} +3 -3
  46. package/lib/{edge/block-wrapper-_thG9C3r.cjs → node/block-wrapper-pbauouda.cjs} +1 -1
  47. package/lib/node/blocks/personalization-container/helpers.d.ts +2 -0
  48. package/lib/node/{component-ref-PBLhD067.cjs → component-ref-0QnbZN8R.cjs} +1 -1
  49. package/lib/node/{component-ref-BVAWbmSM.js → component-ref-Why7x4bF.js} +5 -5
  50. package/lib/node/components/content-variants/content-variants.vue.d.ts +1 -0
  51. package/lib/node/constants/sdk-version.d.ts +1 -1
  52. package/lib/node/{get-block-properties-FqOAzbbj.cjs → get-block-properties-49Z6hgAn.cjs} +1 -1
  53. package/lib/node/{get-block-properties-jtxNpCjP.js → get-block-properties-yMS_NiSc.js} +2 -2
  54. package/lib/node/index-2G2Z-ncC.cjs +350 -0
  55. package/lib/node/{index-ebgoy2dh.js → index-4BcEpdYg.js} +569 -557
  56. package/lib/node/index.cjs +1 -1
  57. package/lib/node/index.mjs +2 -2
  58. package/lib/node/init.cjs +1 -1
  59. package/lib/node/init.mjs +1 -1
  60. package/lib/{edge/live-edit-NYmL2A7N.cjs → node/live-edit-0eQ2U7us.cjs} +1 -1
  61. package/lib/{edge/live-edit-pS9LVcQU.js → node/live-edit-959vfTqG.js} +1 -1
  62. package/lib/node/{repeated-block-M3uZwBiE.cjs → repeated-block-NkQjCyoE.cjs} +1 -1
  63. package/lib/node/{repeated-block-u2S52SQe.js → repeated-block-uTpfjUj-.js} +2 -2
  64. package/lib/node/{should-force-browser-runtime-in-node-djPOsLG6.cjs → should-force-browser-runtime-in-node-hS7qkwoE.cjs} +1 -1
  65. package/lib/node/{should-force-browser-runtime-in-node-0fyWCMQO.js → should-force-browser-runtime-in-node-k20eAE3E.js} +1 -1
  66. package/lib/node/{style-wrapper-OtcV4kQU.js → style-wrapper-HY1zLGB7.js} +2 -2
  67. package/lib/node/{style-wrapper-Kc9lgaOA.cjs → style-wrapper-dYrN4_G9.cjs} +1 -1
  68. package/package.json +1 -1
  69. package/lib/node/index-sUYiBczF.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 O, 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 q, 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 xt = 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,26 +23,26 @@ const xt = y({
23
23
  n[o] = r;
24
24
  return n;
25
25
  };
26
- function Ot(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
- default: O(() => [
29
+ default: x(() => [
30
30
  N(e.$slots, "default")
31
31
  ]),
32
32
  _: 3
33
33
  }, 16)) : (d(), S(X(e.TagName), $({ key: 1 }, e.attributes, L(e.actionAttributes)), {
34
- default: O(() => [
34
+ default: x(() => [
35
35
  N(e.$slots, "default")
36
36
  ]),
37
37
  _: 3
38
38
  }, 16))
39
39
  ], 64));
40
40
  }
41
- const Te = /* @__PURE__ */ v(xt, [["render", Ot]]), 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(xt, [["render", Ot]]), 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,20 +83,20 @@ const Te = /* @__PURE__ */ v(xt, [["render", Ot]]), 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(),
90
90
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
91
91
  actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
92
92
  }, {
93
- default: O(() => [
94
- Vt(de(e.text), 1)
93
+ default: x(() => [
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 zt = () => {
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
- }, qt = () => typeof navigator == "object" && navigator.userAgent || "", et = () => {
152
- const e = qt(), 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 zt = () => {
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 = zt();
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.6", 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 zt = () => {
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 zt = () => {
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 zt = () => {
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 Oe = ({
435
+ const Fe = ({
436
436
  code: e,
437
437
  builder: t,
438
438
  context: n,
@@ -441,11 +441,11 @@ const Oe = ({
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 Oe = ({
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
- }), Oe(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
- }), xn = ({
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, On = ({
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 = On(e);
899
- return xn({
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 x = 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 x)
1079
- w.searchParams.set(H, JSON.stringify(x[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
- ...qn(J)
1085
+ O = {
1086
+ ...O,
1087
+ ...Jn(J)
1088
1088
  };
1089
1089
  const Q = Se(J);
1090
- for (const x in Q)
1091
- w.searchParams.set(x, String(Q[x]));
1092
- if (Object.keys(D).length > 0 && w.searchParams.set("userAttributes", JSON.stringify(D)), o) {
1093
- const x = 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 x)
1097
- w.searchParams.set(H, JSON.stringify(x[H]));
1096
+ for (const H in D)
1097
+ w.searchParams.set(H, JSON.stringify(D[H]));
1098
1098
  }
1099
1099
  return w;
1100
- }, zn = (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
- }, qn = (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 = zn(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-JeL_jj_h.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-mKp3QJjb.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-WgU2OssJ.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-VY7cdn42.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
@@ -1554,8 +1554,8 @@ function go(e, t, n, o, r, i) {
1554
1554
  block: e.processedBlock,
1555
1555
  context: e.context
1556
1556
  }, {
1557
- default: O(() => [
1558
- E(l, {
1557
+ default: x(() => [
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",
@@ -1663,15 +1663,15 @@ function vo(e, t, n, o, r, i) {
1663
1663
  onMouseEnter: (s) => e.onMouseEnter(),
1664
1664
  onKeyPress: (s) => e.onClick()
1665
1665
  }, { ...e.BlocksWrapperProps }), {
1666
- default: O(() => [
1666
+ default: x(() => [
1667
1667
  N(e.$slots, "default", {}, void 0, !0)
1668
1668
  ]),
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, {
@@ -1700,7 +1700,7 @@ function Co(e, t, n, o, r, i) {
1700
1700
  classNameProp: e.className,
1701
1701
  BlocksWrapper: ((p = e.context) == null ? void 0 : p.BlocksWrapper) || ((f = e.builderContext) == null ? void 0 : f.BlocksWrapper)
1702
1702
  }, {
1703
- default: O(() => [
1703
+ default: x(() => [
1704
1704
  N(e.$slots, "default"),
1705
1705
  e.blocks ? (d(!0), h(I, { key: 0 }, F(e.blocks, (c, m) => {
1706
1706
  var b;
@@ -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 z = /* @__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: z,
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", $({
@@ -1957,8 +1957,8 @@ function Ao(e, t, n, o, r, i) {
1957
1957
  actionAttributes: {},
1958
1958
  attributes: e.getAttributes(p, f)
1959
1959
  }, {
1960
- default: O(() => [
1961
- E(l, {
1960
+ default: x(() => [
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 ze(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 ze(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 ze(`${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 xo = y({
2017
+ const Uo = y({
2018
2018
  name: "builder-image",
2019
2019
  props: [
2020
2020
  "lazy",
@@ -2068,11 +2068,11 @@ const xo = y({
2068
2068
  return this.aspectRatio ? e : void 0;
2069
2069
  }
2070
2070
  }
2071
- }), Oo = ["srcset", "sizes"], Uo = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"], Lo = {
2071
+ }), Lo = ["srcset", "sizes"], Fo = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"], Ho = {
2072
2072
  key: 2,
2073
2073
  class: "div-t43jfuqn6g-2"
2074
2074
  };
2075
- function Fo(e, t, n, o, r, i) {
2075
+ function Mo(e, t, n, o, r, i) {
2076
2076
  var s, l, a, u, p, f;
2077
2077
  return d(), h(I, null, [
2078
2078
  q("picture", null, [
@@ -2081,7 +2081,7 @@ function Fo(e, t, n, o, r, i) {
2081
2081
  type: "image/webp",
2082
2082
  srcset: e.webpSrcSet,
2083
2083
  sizes: e.sizesToUse
2084
- }, null, 8, Oo)) : C("", !0),
2084
+ }, null, 8, Lo)) : C("", !0),
2085
2085
  q("img", {
2086
2086
  loading: e.highPriority ? "eager" : "lazy",
2087
2087
  fetchpriority: e.highPriority ? "high" : "auto",
@@ -2099,7 +2099,7 @@ function Fo(e, t, n, o, r, i) {
2099
2099
  src: e.image,
2100
2100
  srcset: e.srcSetToUse,
2101
2101
  sizes: e.sizesToUse
2102
- }, null, 14, Uo)
2102
+ }, null, 14, Fo)
2103
2103
  ]),
2104
2104
  e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (d(), h("div", {
2105
2105
  key: 0,
@@ -2109,19 +2109,19 @@ function Fo(e, t, n, o, r, i) {
2109
2109
  })
2110
2110
  }, null, 4)) : C("", !0),
2111
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),
2112
- !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, [
2113
2113
  N(e.$slots, "default", {}, void 0, !0)
2114
2114
  ])) : C("", !0)
2115
2115
  ], 64);
2116
2116
  }
2117
- const Ho = /* @__PURE__ */ v(xo, [["render", Fo], ["__scopeId", "data-v-17b592cd"]]), Mo = y({
2117
+ const jo = /* @__PURE__ */ v(Uo, [["render", Mo], ["__scopeId", "data-v-17b592cd"]]), zo = y({
2118
2118
  name: "builder-section-component",
2119
2119
  props: ["attributes", "maxWidth"],
2120
2120
  data() {
2121
2121
  return { filterAttrs: W };
2122
2122
  }
2123
2123
  });
2124
- function jo(e, t, n, o, r, i) {
2124
+ function Ko(e, t, n, o, r, i) {
2125
2125
  return d(), h("section", $({
2126
2126
  style: {
2127
2127
  width: "100%",
@@ -2139,8 +2139,8 @@ function jo(e, t, n, o, r, i) {
2139
2139
  N(e.$slots, "default")
2140
2140
  ], 16);
2141
2141
  }
2142
- const Ko = /* @__PURE__ */ v(Mo, [["render", jo]]);
2143
- function zo(e, t, n, o) {
2142
+ const qo = /* @__PURE__ */ v(zo, [["render", Ko]]);
2143
+ function Go(e, t, n, o) {
2144
2144
  function r(u) {
2145
2145
  return typeof u == "string";
2146
2146
  }
@@ -2154,14 +2154,14 @@ function zo(e, t, n, o) {
2154
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))
2155
2155
  return !0;
2156
2156
  if (Array.isArray(b))
2157
- return m === "isNot" ? b.every((P) => s(u, {
2157
+ return m === "isNot" ? b.every((A) => s(u, {
2158
2158
  property: c,
2159
2159
  operator: m,
2160
- value: P
2161
- })) : !!b.find((P) => s(u, {
2160
+ value: A
2161
+ })) : !!b.find((A) => s(u, {
2162
2162
  property: c,
2163
2163
  operator: m,
2164
- value: P
2164
+ value: A
2165
2165
  }));
2166
2166
  const g = u[c];
2167
2167
  if (Array.isArray(g))
@@ -2197,7 +2197,7 @@ function zo(e, t, n, o) {
2197
2197
  }, a = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
2198
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));
2199
2199
  }
2200
- const qo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
2200
+ const Jo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
2201
2201
  if (!navigator.cookieEnabled) {
2202
2202
  return;
2203
2203
  }
@@ -2242,7 +2242,7 @@ const qo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
2242
2242
  thisScript.remove();
2243
2243
  }
2244
2244
  }
2245
- }`, Go = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
2245
+ }`, Qo = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
2246
2246
  function isString(val) {
2247
2247
  return typeof val === 'string';
2248
2248
  }
@@ -2320,7 +2320,7 @@ const qo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
2320
2320
  return item.query.every(filter => {
2321
2321
  return objectMatchesQuery(userAttributes, filter);
2322
2322
  });
2323
- }`, Jo = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
2323
+ }`, Yo = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
2324
2324
  function getCookie(name) {
2325
2325
  const nameEQ = name + '=';
2326
2326
  const ca = document.cookie.split(';');
@@ -2358,11 +2358,11 @@ const qo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
2358
2358
  visibilityStylesEl.innerHTML = newStyleStr;
2359
2359
  }
2360
2360
  }
2361
- }`, re = "default", Qo = "filterWithCustomTargeting", Rt = "builderIoPersonalization", Et = "updateVisibilityStylesScript", At = ["react", "vue", "svelte", "qwik"], Pt = ["vue", "svelte", "qwik"];
2362
- function Yo(e, t) {
2363
- 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();
2364
2364
  }
2365
- function Xo({
2365
+ function _o({
2366
2366
  variants: e,
2367
2367
  previewingIndex: t,
2368
2368
  isHydrated: n,
@@ -2374,7 +2374,7 @@ function Xo({
2374
2374
  path: "this.children",
2375
2375
  index: re
2376
2376
  };
2377
- if (n && A()) {
2377
+ if (n && P()) {
2378
2378
  if (typeof t == "number" && t < ((e == null ? void 0 : e.length) ?? 0)) {
2379
2379
  const s = e == null ? void 0 : e[t];
2380
2380
  if (s)
@@ -2400,11 +2400,22 @@ function Xo({
2400
2400
  }
2401
2401
  return i;
2402
2402
  }
2403
- const Zo = () => `
2404
- window.${Qo} = ${Go}
2405
- window.${Rt} = ${qo}
2406
- window.${Et} = ${Jo}
2407
- `, 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 = {
2408
2419
  "@type": "@builder.io/sdk:Element",
2409
2420
  layerName: "Accordion item title",
2410
2421
  responsiveStyles: {
@@ -2464,7 +2475,7 @@ const Zo = () => `
2464
2475
  }
2465
2476
  }
2466
2477
  }]
2467
- }, tr = {
2478
+ }, rr = {
2468
2479
  name: "Builder:Accordion",
2469
2480
  canHaveChildren: !0,
2470
2481
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -2528,9 +2539,9 @@ const Zo = () => `
2528
2539
  builderComponents: !0,
2529
2540
  builderLinkComponent: !0
2530
2541
  }
2531
- }, nr = (e) => e.toString(), or = y({
2542
+ }, ir = (e) => e.toString(), sr = y({
2532
2543
  name: "builder-accordion",
2533
- components: { Blocks: z },
2544
+ components: { Blocks: K },
2534
2545
  props: [
2535
2546
  "grid",
2536
2547
  "oneAtATime",
@@ -2542,7 +2553,7 @@ const Zo = () => `
2542
2553
  "builderLinkComponent"
2543
2554
  ],
2544
2555
  data() {
2545
- return { open: [], convertOrderNumberToString: nr };
2556
+ return { open: [], convertOrderNumberToString: ir };
2546
2557
  },
2547
2558
  computed: {
2548
2559
  onlyOneAtATime() {
@@ -2623,8 +2634,8 @@ const Zo = () => `
2623
2634
  this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
2624
2635
  }
2625
2636
  }
2626
- }), rr = ["data-index", "onClick"];
2627
- function ir(e, t, n, o, r, i) {
2637
+ }), ar = ["data-index", "onClick"];
2638
+ function lr(e, t, n, o, r, i) {
2628
2639
  const s = k("Blocks");
2629
2640
  return d(), h("div", {
2630
2641
  class: "builder-accordion",
@@ -2643,7 +2654,7 @@ function ir(e, t, n, o, r, i) {
2643
2654
  "data-index": a,
2644
2655
  onClick: async (u) => e.onClick(a)
2645
2656
  }, [
2646
- E(s, {
2657
+ R(s, {
2647
2658
  blocks: l.title,
2648
2659
  path: `items.${a}.title`,
2649
2660
  parent: e.builderBlock.id,
@@ -2651,13 +2662,13 @@ function ir(e, t, n, o, r, i) {
2651
2662
  registeredComponents: e.builderComponents,
2652
2663
  linkComponent: e.builderLinkComponent
2653
2664
  }, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
2654
- ], 14, rr),
2665
+ ], 14, ar),
2655
2666
  e.open.includes(a) ? (d(), h("div", {
2656
2667
  key: 0,
2657
2668
  class: _(e.getAccordionDetailClassName(a)),
2658
2669
  style: M(e.accordionDetailStyles)
2659
2670
  }, [
2660
- E(s, {
2671
+ R(s, {
2661
2672
  blocks: l.detail,
2662
2673
  path: `items.${a}.detail`,
2663
2674
  parent: e.builderBlock.id,
@@ -2669,7 +2680,7 @@ function ir(e, t, n, o, r, i) {
2669
2680
  ], 64))), 128))
2670
2681
  ], 4);
2671
2682
  }
2672
- const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
2683
+ const cr = /* @__PURE__ */ v(sr, [["render", lr]]), dr = {
2673
2684
  name: "Core:Button",
2674
2685
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
2675
2686
  defaultStyles: {
@@ -2705,7 +2716,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
2705
2716
  shouldReceiveBuilderProps: {
2706
2717
  builderLinkComponent: !0
2707
2718
  }
2708
- }, lr = {
2719
+ }, ur = {
2709
2720
  // TODO: ways to statically preprocess JSON for references, functions, etc
2710
2721
  name: "Columns",
2711
2722
  isRSC: !0,
@@ -2912,13 +2923,13 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
2912
2923
  builderComponents: !0,
2913
2924
  builderLinkComponent: !0
2914
2925
  }
2915
- }, cr = {
2926
+ }, pr = {
2916
2927
  name: "Fragment",
2917
2928
  static: !0,
2918
2929
  hidden: !0,
2919
2930
  canHaveChildren: !0,
2920
2931
  noWrap: !0
2921
- }, 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 = {
2922
2933
  name: "Image",
2923
2934
  static: !0,
2924
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",
@@ -2933,7 +2944,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
2933
2944
  name: "image",
2934
2945
  type: "file",
2935
2946
  bubble: !0,
2936
- allowedFileTypes: Ve,
2947
+ allowedFileTypes: Oe,
2937
2948
  required: !0,
2938
2949
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
2939
2950
  onChange: (e) => {
@@ -3031,7 +3042,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
3031
3042
  shouldReceiveBuilderProps: {
3032
3043
  builderBlock: !0
3033
3044
  }
3034
- }, pr = {
3045
+ }, fr = {
3035
3046
  name: "PersonalizationContainer",
3036
3047
  shouldReceiveBuilderProps: {
3037
3048
  builderBlock: !0,
@@ -3067,9 +3078,9 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
3067
3078
  defaultValue: []
3068
3079
  }]
3069
3080
  }]
3070
- }, Ne = y({
3081
+ }, De = y({
3071
3082
  render() {
3072
- return Qe("script", {
3083
+ return _e("script", {
3073
3084
  innerHTML: this.scriptStr,
3074
3085
  "data-id": this.id,
3075
3086
  nonce: this.nonce
@@ -3077,12 +3088,12 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
3077
3088
  },
3078
3089
  name: "inlined-script",
3079
3090
  props: ["scriptStr", "id", "nonce"]
3080
- }), mr = y({
3091
+ }), br = y({
3081
3092
  name: "builder-personalization-container",
3082
3093
  components: {
3083
- Blocks: z,
3094
+ Blocks: K,
3084
3095
  InlinedStyles: pe,
3085
- InlinedScript: Ne
3096
+ InlinedScript: De
3086
3097
  },
3087
3098
  props: [
3088
3099
  "builderContext",
@@ -3096,25 +3107,25 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
3096
3107
  var e, t, n, o, r, i, s;
3097
3108
  return {
3098
3109
  userAttributes: ce.getUserAttributes(),
3099
- scriptStr: _o(
3110
+ scriptStr: nr(
3100
3111
  this.variants,
3101
3112
  ((e = this.builderBlock) == null ? void 0 : e.id) || "none",
3102
3113
  (n = (t = this.builderContext) == null ? void 0 : t.rootState) == null ? void 0 : n.locale
3103
3114
  ),
3104
- updateVisibilityStylesScript: er(
3115
+ updateVisibilityStylesScript: or(
3105
3116
  this.variants,
3106
3117
  ((o = this.builderBlock) == null ? void 0 : o.id) || "none",
3107
3118
  (i = (r = this.builderContext) == null ? void 0 : r.rootState) == null ? void 0 : i.locale
3108
3119
  ),
3109
3120
  unsubscribers: [],
3110
- shouldRenderVariants: Yo(
3121
+ shouldRenderVariants: Zo(
3111
3122
  this.variants,
3112
3123
  G((s = this.builderContext) == null ? void 0 : s.canTrack)
3113
3124
  ),
3114
3125
  shouldResetVariants: !1,
3115
- TARGET: R,
3126
+ TARGET: E,
3116
3127
  DEFAULT_INDEX: re,
3117
- SDKS_REQUIRING_RESET_APPROACH: Pt
3128
+ SDKS_REQUIRING_RESET_APPROACH: Vt
3118
3129
  };
3119
3130
  },
3120
3131
  mounted() {
@@ -3125,10 +3136,10 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
3125
3136
  this.userAttributes = n;
3126
3137
  },
3127
3138
  {
3128
- fireImmediately: R === "qwik"
3139
+ fireImmediately: E === "qwik"
3129
3140
  }
3130
3141
  );
3131
- if (!(A() || Re())) {
3142
+ if (!(P() || Ae())) {
3132
3143
  const n = this.filteredVariants[0];
3133
3144
  this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
3134
3145
  new CustomEvent("builder.variantLoaded", {
@@ -3169,7 +3180,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
3169
3180
  filteredVariants() {
3170
3181
  return (this.variants || []).filter((e) => {
3171
3182
  var t, n, o, r;
3172
- return zo(
3183
+ return Go(
3173
3184
  {
3174
3185
  ...(n = (t = this.builderContext) == null ? void 0 : t.rootState) != null && n.locale ? {
3175
3186
  locale: (r = (o = this.builderContext) == null ? void 0 : o.rootState) == null ? void 0 : r.locale
@@ -3184,7 +3195,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
3184
3195
  },
3185
3196
  blocksToRender() {
3186
3197
  var e;
3187
- return Xo({
3198
+ return _o({
3188
3199
  variants: this.variants,
3189
3200
  fallbackBlocks: (e = this.builderBlock) == null ? void 0 : e.children,
3190
3201
  isHydrated: this.shouldResetVariants,
@@ -3202,8 +3213,8 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
3202
3213
  }
3203
3214
  }
3204
3215
  });
3205
- function hr(e, t, n, o, r, i) {
3206
- 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;
3207
3218
  const s = k("Blocks"), l = k("InlinedStyles"), a = k("InlinedScript");
3208
3219
  return d(), h("div", $({ ref: "rootRef" }, e.attrs), [
3209
3220
  e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), S(s, {
@@ -3220,39 +3231,39 @@ function hr(e, t, n, o, r, i) {
3220
3231
  }, null, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])) : C("", !0),
3221
3232
  !e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), h(I, { key: 1 }, [
3222
3233
  e.shouldRenderVariants ? (d(), h(I, { key: 0 }, [
3223
- E(l, {
3234
+ R(l, {
3224
3235
  nonce: ((c = e.builderContext) == null ? void 0 : c.nonce) || "",
3225
3236
  styles: e.hideVariantsStyleString,
3226
3237
  id: `variants-styles-${(m = e.builderBlock) == null ? void 0 : m.id}`
3227
3238
  }, null, 8, ["nonce", "styles", "id"]),
3228
- E(a, {
3239
+ R(a, {
3229
3240
  nonce: ((b = e.builderContext) == null ? void 0 : b.nonce) || "",
3230
3241
  scriptStr: e.updateVisibilityStylesScript,
3231
3242
  id: `variants-visibility-script-${(g = e.builderBlock) == null ? void 0 : g.id}`
3232
3243
  }, null, 8, ["nonce", "scriptStr", "id"]),
3233
- (d(!0), h(I, null, F(e.variants, (w, D) => {
3234
- var J, Q, x, H;
3244
+ (d(!0), h(I, null, F(e.variants, (w, O) => {
3245
+ var J, Q, D, H;
3235
3246
  return d(), S(s, {
3236
- key: `${(J = e.builderBlock) == null ? void 0 : J.id}-${D}`,
3247
+ key: `${(J = e.builderBlock) == null ? void 0 : J.id}-${O}`,
3237
3248
  BlocksWrapperProps: {
3238
3249
  ...(Q = e.builderContext) == null ? void 0 : Q.BlocksWrapperProps,
3239
3250
  "aria-hidden": !0,
3240
3251
  hidden: !0,
3241
- "data-variant-id": `${(x = e.builderBlock) == null ? void 0 : x.id}-${D}`
3252
+ "data-variant-id": `${(D = e.builderBlock) == null ? void 0 : D.id}-${O}`
3242
3253
  },
3243
3254
  blocks: w.blocks,
3244
3255
  parent: (H = e.builderBlock) == null ? void 0 : H.id,
3245
- path: `component.options.variants.${D}.blocks`,
3256
+ path: `component.options.variants.${O}.blocks`,
3246
3257
  context: e.builderContext,
3247
3258
  registeredComponents: e.builderComponents
3248
3259
  }, {
3249
- default: O(() => {
3250
- var De, xe;
3260
+ default: x(() => {
3261
+ var Ue, Le;
3251
3262
  return [
3252
- E(a, {
3253
- nonce: ((De = e.builderContext) == null ? void 0 : De.nonce) || "",
3263
+ R(a, {
3264
+ nonce: ((Ue = e.builderContext) == null ? void 0 : Ue.nonce) || "",
3254
3265
  scriptStr: e.scriptStr,
3255
- id: `variants-script-${(xe = e.builderBlock) == null ? void 0 : xe.id}-${D}`
3266
+ id: `variants-script-${(Le = e.builderBlock) == null ? void 0 : Le.id}-${O}`
3256
3267
  }, null, 8, ["nonce", "scriptStr", "id"])
3257
3268
  ];
3258
3269
  }),
@@ -3260,9 +3271,9 @@ function hr(e, t, n, o, r, i) {
3260
3271
  }, 1032, ["BlocksWrapperProps", "blocks", "parent", "path", "context", "registeredComponents"]);
3261
3272
  }), 128))
3262
3273
  ], 64)) : C("", !0),
3263
- E(s, {
3274
+ R(s, {
3264
3275
  blocks: e.blocksToRender.blocks,
3265
- parent: (P = e.builderBlock) == null ? void 0 : P.id,
3276
+ parent: (A = e.builderBlock) == null ? void 0 : A.id,
3266
3277
  path: e.blocksToRender.path,
3267
3278
  context: e.builderContext,
3268
3279
  registeredComponents: e.builderComponents,
@@ -3271,14 +3282,14 @@ function hr(e, t, n, o, r, i) {
3271
3282
  "data-variant-id": `${(V = e.builderBlock) == null ? void 0 : V.id}-${e.blocksToRender.index}`
3272
3283
  }
3273
3284
  }, {
3274
- default: O(() => {
3275
- var w, D;
3285
+ default: x(() => {
3286
+ var w, O;
3276
3287
  return [
3277
3288
  e.shouldRenderVariants ? (d(), S(a, {
3278
3289
  key: 0,
3279
3290
  nonce: ((w = e.builderContext) == null ? void 0 : w.nonce) || "",
3280
3291
  scriptStr: e.scriptStr,
3281
- 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}`
3282
3293
  }, null, 8, ["nonce", "scriptStr", "id"])) : C("", !0)
3283
3294
  ];
3284
3295
  }),
@@ -3287,7 +3298,7 @@ function hr(e, t, n, o, r, i) {
3287
3298
  ], 64)) : C("", !0)
3288
3299
  ], 16);
3289
3300
  }
3290
- const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
3301
+ const yr = /* @__PURE__ */ v(br, [["render", gr]]), vr = {
3291
3302
  name: "Core:Section",
3292
3303
  static: !0,
3293
3304
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -3326,7 +3337,7 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
3326
3337
  }
3327
3338
  }
3328
3339
  }]
3329
- }, gr = {
3340
+ }, Sr = {
3330
3341
  name: "Slot",
3331
3342
  isRSC: !0,
3332
3343
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -3343,12 +3354,12 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
3343
3354
  builderContext: !0,
3344
3355
  builderComponents: !0
3345
3356
  }
3346
- }, yr = y({
3357
+ }, kr = y({
3347
3358
  name: "builder-slot",
3348
- components: { Blocks: z },
3359
+ components: { Blocks: K },
3349
3360
  props: ["builderContext", "name", "builderComponents"]
3350
3361
  });
3351
- function vr(e, t, n, o, r, i) {
3362
+ function Cr(e, t, n, o, r, i) {
3352
3363
  var l, a, u;
3353
3364
  const s = k("Blocks");
3354
3365
  return d(), h("div", $(
@@ -3359,7 +3370,7 @@ function vr(e, t, n, o, r, i) {
3359
3370
  "builder-slot": e.name
3360
3371
  }
3361
3372
  ), [
3362
- E(s, {
3373
+ R(s, {
3363
3374
  parent: (a = e.builderContext.context) == null ? void 0 : a.symbolId,
3364
3375
  path: `symbol.data.${e.name}`,
3365
3376
  context: e.builderContext,
@@ -3368,7 +3379,7 @@ function vr(e, t, n, o, r, i) {
3368
3379
  }, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
3369
3380
  ], 16);
3370
3381
  }
3371
- const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
3382
+ const Tr = /* @__PURE__ */ v(kr, [["render", Cr]]), wr = {
3372
3383
  name: "Symbol",
3373
3384
  noWrap: !0,
3374
3385
  static: !0,
@@ -3445,7 +3456,7 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
3445
3456
  text: "New tab content "
3446
3457
  }
3447
3458
  }
3448
- }, Cr = {
3459
+ }, Ir = {
3449
3460
  name: "Builder: Tabs",
3450
3461
  inputs: [{
3451
3462
  name: "tabs",
@@ -3548,9 +3559,9 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
3548
3559
  builderComponents: !0,
3549
3560
  builderLinkComponent: !0
3550
3561
  }
3551
- }, Tr = y({
3562
+ }, $r = y({
3552
3563
  name: "builder-tabs",
3553
- components: { Blocks: z },
3564
+ components: { Blocks: K },
3554
3565
  props: [
3555
3566
  "defaultActiveTab",
3556
3567
  "tabs",
@@ -3576,8 +3587,8 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
3576
3587
  e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
3577
3588
  }
3578
3589
  }
3579
- }), wr = ["onClick"], Ir = { key: 0 };
3580
- function $r(e, t, n, o, r, i) {
3590
+ }), Er = ["onClick"], Rr = { key: 0 };
3591
+ function Pr(e, t, n, o, r, i) {
3581
3592
  const s = k("Blocks");
3582
3593
  return d(), h("div", null, [
3583
3594
  q("div", {
@@ -3595,7 +3606,7 @@ function $r(e, t, n, o, r, i) {
3595
3606
  style: M(e.getTabStyle(a)),
3596
3607
  onClick: async (u) => e.onClick(a)
3597
3608
  }, [
3598
- E(s, {
3609
+ R(s, {
3599
3610
  parent: e.builderBlock.id,
3600
3611
  path: `tabs.${a}.label`,
3601
3612
  blocks: l.label,
@@ -3603,10 +3614,10 @@ function $r(e, t, n, o, r, i) {
3603
3614
  registeredComponents: e.builderComponents,
3604
3615
  linkComponent: e.builderLinkComponent
3605
3616
  }, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
3606
- ], 14, wr))), 128))
3617
+ ], 14, Er))), 128))
3607
3618
  ], 4),
3608
- e.activeTabContent(e.activeTab) ? (d(), h("div", Ir, [
3609
- E(s, {
3619
+ e.activeTabContent(e.activeTab) ? (d(), h("div", Rr, [
3620
+ R(s, {
3610
3621
  parent: e.builderBlock.id,
3611
3622
  path: `tabs.${e.activeTab}.content`,
3612
3623
  blocks: e.activeTabContent(e.activeTab),
@@ -3617,7 +3628,7 @@ function $r(e, t, n, o, r, i) {
3617
3628
  ])) : C("", !0)
3618
3629
  ]);
3619
3630
  }
3620
- const Rr = /* @__PURE__ */ v(Tr, [["render", $r]]), Er = {
3631
+ const Ar = /* @__PURE__ */ v($r, [["render", Pr]]), Br = {
3621
3632
  shouldReceiveBuilderProps: {},
3622
3633
  name: "Text",
3623
3634
  static: !0,
@@ -3635,11 +3646,11 @@ const Rr = /* @__PURE__ */ v(Tr, [["render", $r]]), Er = {
3635
3646
  height: "auto",
3636
3647
  textAlign: "center"
3637
3648
  }
3638
- }, Ar = y({
3649
+ }, Vr = y({
3639
3650
  name: "builder-text",
3640
3651
  props: ["text"]
3641
- }), Pr = ["innerHTML"];
3642
- function Br(e, t, n, o, r, i) {
3652
+ }), Nr = ["innerHTML"];
3653
+ function Wr(e, t, n, o, r, i) {
3643
3654
  var s;
3644
3655
  return d(), h("div", {
3645
3656
  class: "builder-text",
@@ -3647,9 +3658,9 @@ function Br(e, t, n, o, r, i) {
3647
3658
  style: {
3648
3659
  outline: "none"
3649
3660
  }
3650
- }, null, 8, Pr);
3661
+ }, null, 8, Nr);
3651
3662
  }
3652
- const Vr = /* @__PURE__ */ v(Ar, [["render", Br]]), Nr = {
3663
+ const Or = /* @__PURE__ */ v(Vr, [["render", Wr]]), Dr = {
3653
3664
  name: "Custom Code",
3654
3665
  static: !0,
3655
3666
  requiredPermissions: ["editCode"],
@@ -3671,7 +3682,7 @@ const Vr = /* @__PURE__ */ v(Ar, [["render", Br]]), Nr = {
3671
3682
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
3672
3683
  advanced: !0
3673
3684
  }]
3674
- }, Wr = y({
3685
+ }, xr = y({
3675
3686
  name: "builder-custom-code",
3676
3687
  props: ["code", "replaceNodes"],
3677
3688
  data() {
@@ -3683,7 +3694,7 @@ const Vr = /* @__PURE__ */ v(Ar, [["render", Br]]), Nr = {
3683
3694
  watch: {
3684
3695
  onUpdateHook0: {
3685
3696
  handler() {
3686
- A() && setTimeout(() => {
3697
+ P() && setTimeout(() => {
3687
3698
  this.runScripts();
3688
3699
  }, 0);
3689
3700
  },
@@ -3730,15 +3741,15 @@ const Vr = /* @__PURE__ */ v(Ar, [["render", Br]]), Nr = {
3730
3741
  }
3731
3742
  }
3732
3743
  }
3733
- }), Dr = ["innerHTML"];
3734
- function xr(e, t, n, o, r, i) {
3744
+ }), Ur = ["innerHTML"];
3745
+ function Lr(e, t, n, o, r, i) {
3735
3746
  return d(), h("div", {
3736
3747
  ref: "elementRef",
3737
3748
  class: _("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
3738
3749
  innerHTML: e.code
3739
- }, null, 10, Dr);
3750
+ }, null, 10, Ur);
3740
3751
  }
3741
- const Or = /* @__PURE__ */ v(Wr, [["render", xr]]), Ur = {
3752
+ const Fr = /* @__PURE__ */ v(xr, [["render", Lr]]), Hr = {
3742
3753
  name: "Embed",
3743
3754
  static: !0,
3744
3755
  inputs: [{
@@ -3753,7 +3764,7 @@ const Or = /* @__PURE__ */ v(Wr, [["render", xr]]), Ur = {
3753
3764
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
3754
3765
  hideFromUI: !0
3755
3766
  }]
3756
- }, 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({
3757
3768
  name: "builder-embed",
3758
3769
  props: ["content"],
3759
3770
  data() {
@@ -3786,7 +3797,7 @@ const Or = /* @__PURE__ */ v(Wr, [["render", xr]]), Ur = {
3786
3797
  this.scriptsInserted.push(n.src);
3787
3798
  const o = document.createElement("script");
3788
3799
  o.async = !0, o.src = n.src, document.head.appendChild(o);
3789
- } else if (Fr(n) && !this.scriptsRun.includes(n.innerText))
3800
+ } else if (jr(n) && !this.scriptsRun.includes(n.innerText))
3790
3801
  try {
3791
3802
  this.scriptsRun.push(n.innerText), new Function(n.innerText)();
3792
3803
  } catch (o) {
@@ -3795,15 +3806,15 @@ const Or = /* @__PURE__ */ v(Wr, [["render", xr]]), Ur = {
3795
3806
  }
3796
3807
  }
3797
3808
  }
3798
- }), Mr = ["innerHTML"];
3799
- function jr(e, t, n, o, r, i) {
3809
+ }), Kr = ["innerHTML"];
3810
+ function qr(e, t, n, o, r, i) {
3800
3811
  return d(), h("div", {
3801
3812
  class: "builder-embed",
3802
3813
  ref: "elem",
3803
3814
  innerHTML: e.content
3804
- }, null, 8, Mr);
3815
+ }, null, 8, Kr);
3805
3816
  }
3806
- const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), zr = {
3817
+ const Gr = /* @__PURE__ */ v(zr, [["render", qr]]), Jr = {
3807
3818
  name: "Form:Form",
3808
3819
  // editableTags: ['builder-form-error']
3809
3820
  defaults: {
@@ -4040,12 +4051,12 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), zr = {
4040
4051
  builderComponents: !0,
4041
4052
  builderLinkComponent: !0
4042
4053
  }
4043
- }, qr = ["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 = () => {
4044
4055
  const e = process.env.NODE_ENV || "production";
4045
- return qr.includes(e) ? e : "production";
4046
- }, Jr = y({
4056
+ return Qr.includes(e) ? e : "production";
4057
+ }, Xr = y({
4047
4058
  name: "builder-form-component",
4048
- components: { Blocks: z },
4059
+ components: { Blocks: K },
4049
4060
  props: [
4050
4061
  "builderContext",
4051
4062
  "previewState",
@@ -4084,7 +4095,7 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), zr = {
4084
4095
  this.builderContext.rootSetState ? (o = (n = this.builderContext).rootSetState) == null || o.call(n, t) : this.builderContext.rootState = t;
4085
4096
  },
4086
4097
  submissionState() {
4087
- return A() && this.previewState || this.formState;
4098
+ return P() && this.previewState || this.formState;
4088
4099
  },
4089
4100
  errorResponse(e) {
4090
4101
  return JSON.stringify(e, null, 2);
@@ -4136,7 +4147,7 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), zr = {
4136
4147
  else {
4137
4148
  const c = {};
4138
4149
  Array.from(l).forEach(({ value: m, key: b }) => {
4139
- dt(c, b, m);
4150
+ ht(c, b, m);
4140
4151
  }), i = JSON.stringify(c);
4141
4152
  }
4142
4153
  a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
@@ -4154,16 +4165,16 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), zr = {
4154
4165
  });
4155
4166
  return;
4156
4167
  }
4157
- 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(
4158
4169
  this.sendSubmissionsToEmail || ""
4159
4170
  )}&name=${encodeURIComponent(this.name || "")}`, f = this.sendSubmissionsTo === "email" ? p : this.action;
4160
- Ie(f), fetch(f, {
4171
+ Re(f), fetch(f, {
4161
4172
  body: i,
4162
4173
  headers: r,
4163
4174
  method: this.method || "post"
4164
4175
  }).then(
4165
4176
  async (c) => {
4166
- var g, P;
4177
+ var g, A;
4167
4178
  let m;
4168
4179
  const b = c.headers.get("content-type");
4169
4180
  if (b && b.indexOf("application/json") !== -1 ? m = await c.json() : m = await c.text(), !c.ok) {
@@ -4173,12 +4184,12 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), zr = {
4173
4184
  status: c.status
4174
4185
  }
4175
4186
  });
4176
- 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(
4177
4188
  U
4178
4189
  ), U.defaultPrevented))
4179
4190
  return;
4180
4191
  this.responseData = m, this.formState = "error";
4181
- 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;
4182
4193
  typeof V != "string" && (V = JSON.stringify(V)), this.formErrorMessage = V, this.mergeNewRootState({
4183
4194
  formErrorMessage: V
4184
4195
  });
@@ -4220,11 +4231,11 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), zr = {
4220
4231
  }
4221
4232
  }
4222
4233
  }
4223
- }), Qr = ["validate", "action", "method", "name"], Yr = {
4234
+ }), Zr = ["validate", "action", "method", "name"], _r = {
4224
4235
  key: 2,
4225
4236
  class: "builder-form-error-text pre-2oa2wtipkzk"
4226
4237
  };
4227
- function Xr(e, t, n, o, r, i) {
4238
+ function ei(e, t, n, o, r, i) {
4228
4239
  const s = k("Blocks");
4229
4240
  return d(), h("form", $({
4230
4241
  validate: e.validate,
@@ -4247,16 +4258,16 @@ function Xr(e, t, n, o, r, i) {
4247
4258
  blocks: e.sendingMessage,
4248
4259
  context: e.builderContext
4249
4260
  }, null, 8, ["blocks", "context"])) : C("", !0),
4250
- 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),
4251
4262
  e.submissionState() === "success" ? (d(), S(s, {
4252
4263
  key: 3,
4253
4264
  path: "successMessage",
4254
4265
  blocks: e.successMessage,
4255
4266
  context: e.builderContext
4256
4267
  }, null, 8, ["blocks", "context"])) : C("", !0)
4257
- ], 16, Qr);
4268
+ ], 16, Zr);
4258
4269
  }
4259
- 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 = {
4260
4271
  name: "Form:Input",
4261
4272
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
4262
4273
  inputs: [
@@ -4307,7 +4318,7 @@ const Zr = /* @__PURE__ */ v(Jr, [["render", Xr], ["__scopeId", "data-v-77c7888c
4307
4318
  borderStyle: "solid",
4308
4319
  borderColor: "#ccc"
4309
4320
  }
4310
- }, ei = y({
4321
+ }, oi = y({
4311
4322
  name: "builder-form-input-component",
4312
4323
  props: [
4313
4324
  "attributes",
@@ -4319,10 +4330,10 @@ const Zr = /* @__PURE__ */ v(Jr, [["render", Xr], ["__scopeId", "data-v-77c7888c
4319
4330
  "required"
4320
4331
  ],
4321
4332
  data() {
4322
- return { isEditing: A, filterAttrs: W };
4333
+ return { isEditing: P, filterAttrs: W };
4323
4334
  }
4324
- }), ti = ["placeholder", "type", "name", "value", "defaultValue", "required"];
4325
- 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) {
4326
4337
  return d(), h("input", $({
4327
4338
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
4328
4339
  placeholder: e.placeholder,
@@ -4331,9 +4342,9 @@ function ni(e, t, n, o, r, i) {
4331
4342
  value: e.value,
4332
4343
  defaultValue: e.defaultValue,
4333
4344
  required: e.required
4334
- }, 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);
4335
4346
  }
4336
- const oi = /* @__PURE__ */ v(ei, [["render", ni]]), ri = {
4347
+ const si = /* @__PURE__ */ v(oi, [["render", ii]]), ai = {
4337
4348
  name: "Form:Select",
4338
4349
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
4339
4350
  defaultStyles: {
@@ -4375,14 +4386,14 @@ const oi = /* @__PURE__ */ v(ei, [["render", ni]]), ri = {
4375
4386
  }],
4376
4387
  static: !0,
4377
4388
  noWrap: !0
4378
- }, ii = y({
4389
+ }, li = y({
4379
4390
  name: "builder-select-component",
4380
4391
  props: ["attributes", "value", "defaultValue", "name", "required", "options"],
4381
4392
  data() {
4382
- return { isEditing: A, filterAttrs: W };
4393
+ return { isEditing: P, filterAttrs: W };
4383
4394
  }
4384
- }), si = ["value", "defaultValue", "name", "required"], ai = ["value"];
4385
- 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) {
4386
4397
  return d(), h("select", $({
4387
4398
  value: e.value,
4388
4399
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
@@ -4393,10 +4404,10 @@ function li(e, t, n, o, r, i) {
4393
4404
  (d(!0), h(I, null, F(e.options, (s, l) => (d(), h("option", {
4394
4405
  key: `${s.name}-${l}`,
4395
4406
  value: s.value
4396
- }, de(s.name || s.value), 9, ai))), 128))
4397
- ], 16, si);
4407
+ }, de(s.name || s.value), 9, di))), 128))
4408
+ ], 16, ci);
4398
4409
  }
4399
- const ci = /* @__PURE__ */ v(ii, [["render", li]]), di = {
4410
+ const pi = /* @__PURE__ */ v(li, [["render", ui]]), mi = {
4400
4411
  name: "Form:SubmitButton",
4401
4412
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
4402
4413
  defaultStyles: {
@@ -4421,17 +4432,17 @@ const ci = /* @__PURE__ */ v(ii, [["render", li]]), di = {
4421
4432
  // that only shows if advanced setting is flipped
4422
4433
  // TODO: defaultChildren
4423
4434
  // canHaveChildren: true,
4424
- }, ui = y({
4435
+ }, hi = y({
4425
4436
  name: "builder-submit-button",
4426
4437
  props: ["attributes", "text"],
4427
4438
  data() {
4428
4439
  return { filterAttrs: W };
4429
4440
  }
4430
4441
  });
4431
- function pi(e, t, n, o, r, i) {
4442
+ function fi(e, t, n, o, r, i) {
4432
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);
4433
4444
  }
4434
- const mi = /* @__PURE__ */ v(ui, [["render", pi]]), hi = {
4445
+ const bi = /* @__PURE__ */ v(hi, [["render", fi]]), gi = {
4435
4446
  name: "Form:TextArea",
4436
4447
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
4437
4448
  inputs: [{
@@ -4467,7 +4478,7 @@ const mi = /* @__PURE__ */ v(ui, [["render", pi]]), hi = {
4467
4478
  },
4468
4479
  static: !0,
4469
4480
  noWrap: !0
4470
- }, fi = y({
4481
+ }, yi = y({
4471
4482
  name: "builder-textarea",
4472
4483
  props: [
4473
4484
  "attributes",
@@ -4480,17 +4491,17 @@ const mi = /* @__PURE__ */ v(ui, [["render", pi]]), hi = {
4480
4491
  data() {
4481
4492
  return { filterAttrs: W };
4482
4493
  }
4483
- }), bi = ["placeholder", "name", "value", "defaultValue", "required"];
4484
- function gi(e, t, n, o, r, i) {
4494
+ }), vi = ["placeholder", "name", "value", "defaultValue", "required"];
4495
+ function Si(e, t, n, o, r, i) {
4485
4496
  return d(), h("textarea", $({
4486
4497
  placeholder: e.placeholder,
4487
4498
  name: e.name,
4488
4499
  value: e.value,
4489
4500
  defaultValue: e.defaultValue,
4490
4501
  required: e.required
4491
- }, 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);
4492
4503
  }
4493
- const yi = /* @__PURE__ */ v(fi, [["render", gi]]), vi = {
4504
+ const ki = /* @__PURE__ */ v(yi, [["render", Si]]), Ci = {
4494
4505
  name: "Raw:Img",
4495
4506
  hideFromInsertMenu: !0,
4496
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",
@@ -4498,7 +4509,7 @@ const yi = /* @__PURE__ */ v(fi, [["render", gi]]), vi = {
4498
4509
  name: "image",
4499
4510
  bubble: !0,
4500
4511
  type: "file",
4501
- allowedFileTypes: Ve,
4512
+ allowedFileTypes: Oe,
4502
4513
  required: !0
4503
4514
  }, {
4504
4515
  name: "backgroundSize",
@@ -4534,7 +4545,7 @@ const yi = /* @__PURE__ */ v(fi, [["render", gi]]), vi = {
4534
4545
  defaultValue: 0.7041
4535
4546
  }],
4536
4547
  noWrap: !0
4537
- }, Si = y({
4548
+ }, Ti = y({
4538
4549
  name: "builder-img-component",
4539
4550
  props: [
4540
4551
  "imgSrc",
@@ -4547,7 +4558,7 @@ const yi = /* @__PURE__ */ v(fi, [["render", gi]]), vi = {
4547
4558
  "aspectRatio"
4548
4559
  ],
4549
4560
  data() {
4550
- return { isEditing: A };
4561
+ return { isEditing: P };
4551
4562
  },
4552
4563
  computed: {
4553
4564
  srcSetToUse() {
@@ -4564,8 +4575,8 @@ const yi = /* @__PURE__ */ v(fi, [["render", gi]]), vi = {
4564
4575
  return delete e.style, e;
4565
4576
  }
4566
4577
  }
4567
- }), ki = ["alt", "title", "src"];
4568
- function Ci(e, t, n, o, r, i) {
4578
+ }), wi = ["alt", "title", "src"];
4579
+ function Ii(e, t, n, o, r, i) {
4569
4580
  var s;
4570
4581
  return d(), h("img", $({
4571
4582
  loading: "lazy",
@@ -4579,9 +4590,9 @@ function Ci(e, t, n, o, r, i) {
4579
4590
  aspectRatio: e.aspectRatio || void 0,
4580
4591
  ...((s = e.attributes) == null ? void 0 : s.style) || {}
4581
4592
  }
4582
- }, e.imgAttrs), null, 16, ki);
4593
+ }, e.imgAttrs), null, 16, wi);
4583
4594
  }
4584
- const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
4595
+ const $i = /* @__PURE__ */ v(Ti, [["render", Ii]]), Ei = {
4585
4596
  name: "Video",
4586
4597
  canHaveChildren: !0,
4587
4598
  defaultStyles: {
@@ -4592,14 +4603,14 @@ const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
4592
4603
  inputs: [{
4593
4604
  name: "video",
4594
4605
  type: "file",
4595
- allowedFileTypes: dr,
4606
+ allowedFileTypes: mr,
4596
4607
  bubble: !0,
4597
4608
  defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
4598
4609
  required: !0
4599
4610
  }, {
4600
4611
  name: "posterImage",
4601
4612
  type: "file",
4602
- allowedFileTypes: Ve,
4613
+ allowedFileTypes: Oe,
4603
4614
  helperText: "Image to show before the video plays"
4604
4615
  }, {
4605
4616
  name: "autoPlay",
@@ -4665,7 +4676,7 @@ const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
4665
4676
  shouldReceiveBuilderProps: {
4666
4677
  builderBlock: !0
4667
4678
  }
4668
- }, Ii = y({
4679
+ }, Ri = y({
4669
4680
  name: "builder-video",
4670
4681
  props: [
4671
4682
  "lazyLoad",
@@ -4738,16 +4749,16 @@ const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
4738
4749
  };
4739
4750
  }
4740
4751
  }
4741
- }), $i = { style: {
4752
+ }), Pi = { style: {
4742
4753
  position: "relative"
4743
- } }, Ri = ["preload", "poster"], Ei = {
4754
+ } }, Ai = ["preload", "poster"], Bi = {
4744
4755
  key: 1,
4745
4756
  style: {
4746
4757
  display: "flex",
4747
4758
  flexDirection: "column",
4748
4759
  alignItems: "stretch"
4749
4760
  }
4750
- }, Ai = {
4761
+ }, Vi = {
4751
4762
  key: 2,
4752
4763
  style: {
4753
4764
  pointerEvents: "none",
@@ -4761,9 +4772,9 @@ const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
4761
4772
  height: "100%"
4762
4773
  }
4763
4774
  };
4764
- function Pi(e, t, n, o, r, i) {
4775
+ function Ni(e, t, n, o, r, i) {
4765
4776
  var s, l, a, u, p, f, c;
4766
- return d(), h("div", $i, [
4777
+ return d(), h("div", Pi, [
4767
4778
  q("video", $({
4768
4779
  class: "builder-video",
4769
4780
  ref: "videoRef",
@@ -4791,7 +4802,7 @@ function Pi(e, t, n, o, r, i) {
4791
4802
  src: e.video
4792
4803
  }
4793
4804
  ), null, 16)
4794
- ], 16, Ri),
4805
+ ], 16, Ai),
4795
4806
  e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (d(), h("div", {
4796
4807
  key: 0,
4797
4808
  style: M({
@@ -4801,75 +4812,75 @@ function Pi(e, t, n, o, r, i) {
4801
4812
  fontSize: "0px"
4802
4813
  })
4803
4814
  }, null, 4)) : C("", !0),
4804
- (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, [
4805
4816
  N(e.$slots, "default")
4806
4817
  ])) : C("", !0),
4807
- (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, [
4808
4819
  N(e.$slots, "default")
4809
4820
  ])) : C("", !0)
4810
4821
  ]);
4811
4822
  }
4812
- const Bi = /* @__PURE__ */ v(Ii, [["render", Pi]]), Vi = () => [{
4813
- component: Or,
4814
- ...Nr
4823
+ const Wi = /* @__PURE__ */ v(Ri, [["render", Ni]]), Oi = () => [{
4824
+ component: Fr,
4825
+ ...Dr
4815
4826
  }, {
4816
- component: Kr,
4817
- ...Ur
4827
+ component: Gr,
4828
+ ...Hr
4818
4829
  }, {
4819
- component: Zr,
4820
- ...zr
4830
+ component: ti,
4831
+ ...Jr
4821
4832
  }, {
4822
- component: oi,
4823
- ..._r
4833
+ component: si,
4834
+ ...ni
4824
4835
  }, {
4825
- component: mi,
4826
- ...di
4836
+ component: bi,
4837
+ ...mi
4827
4838
  }, {
4828
- component: ci,
4829
- ...ri
4839
+ component: pi,
4840
+ ...ai
4830
4841
  }, {
4831
- component: yi,
4832
- ...hi
4842
+ component: ki,
4843
+ ...gi
4833
4844
  }, {
4834
- component: Ti,
4835
- ...vi
4845
+ component: $i,
4846
+ ...Ci
4836
4847
  }, {
4837
- component: Bi,
4838
- ...wi
4839
- }], qe = () => [{
4840
- component: Ft,
4841
- ...ar
4848
+ component: Wi,
4849
+ ...Ei
4850
+ }], Ye = () => [{
4851
+ component: Mt,
4852
+ ...dr
4842
4853
  }, {
4843
- component: Po,
4844
- ...lr
4854
+ component: Vo,
4855
+ ...ur
4845
4856
  }, {
4846
- component: No,
4847
- ...cr
4857
+ component: Oo,
4858
+ ...pr
4848
4859
  }, {
4849
- component: Ho,
4850
- ...ur
4860
+ component: jo,
4861
+ ...hr
4851
4862
  }, {
4852
- component: Ko,
4853
- ...br
4863
+ component: qo,
4864
+ ...vr
4854
4865
  }, {
4855
- component: Sr,
4856
- ...gr
4866
+ component: Tr,
4867
+ ...Sr
4857
4868
  }, {
4858
- component: bs,
4859
- ...kr
4869
+ component: vs,
4870
+ ...wr
4860
4871
  }, {
4861
- component: Vr,
4862
- ...Er
4863
- }, ...At.includes(R) ? [{
4864
- component: fr,
4865
- ...pr
4872
+ component: Or,
4873
+ ...Br
4874
+ }, ...Bt.includes(E) ? [{
4875
+ component: yr,
4876
+ ...fr
4866
4877
  }] : [], {
4867
- component: Rr,
4868
- ...Cr
4878
+ component: Ar,
4879
+ ...Ir
4869
4880
  }, {
4870
- component: sr,
4871
- ...tr
4872
- }, ...Vi()], Ni = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
4881
+ component: cr,
4882
+ ...rr
4883
+ }, ...Oi()], Di = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
4873
4884
  function getAndSetVariantId() {
4874
4885
  function setCookie(name, value, days) {
4875
4886
  let expires = '';
@@ -4928,7 +4939,7 @@ const Bi = /* @__PURE__ */ v(Ii, [["render", Pi]]), Vi = () => [{
4928
4939
  }).join('');
4929
4940
  styleEl.innerHTML = newStyleStr;
4930
4941
  }
4931
- }`, Wi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4942
+ }`, xi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4932
4943
  if (!navigator.cookieEnabled) {
4933
4944
  return;
4934
4945
  }
@@ -4962,37 +4973,37 @@ const Bi = /* @__PURE__ */ v(Ii, [["render", Pi]]), Vi = () => [{
4962
4973
  thisScriptEl?.remove();
4963
4974
  }
4964
4975
  return;
4965
- }`, 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) => ({
4966
4977
  ...t,
4967
4978
  testVariationId: t.id,
4968
4979
  id: e == null ? void 0 : e.id
4969
- })), Di = ({
4980
+ })), Ui = ({
4970
4981
  canTrack: e,
4971
4982
  content: t
4972
- }) => !(!(ie(t).length > 0) || !e), xi = (e) => e === "react" || e === "reactNative", Oi = R === "angular", We = xi(R), Ui = () => `
4983
+ }) => !(!(ie(t).length > 0) || !e), Li = (e) => e === "react" || e === "reactNative", Fi = E === "angular", xe = Li(E), Hi = () => `
4973
4984
  (function() {
4974
- if (!window.${ke}) {
4975
- window.${ke} = ${Ni};
4985
+ if (!window.${we}) {
4986
+ window.${we} = ${Di};
4976
4987
  }
4977
- if (!window.${Ce}) {
4978
- window.${Ce} = ${Wi};
4979
- }${We ? `
4988
+ if (!window.${Ie}) {
4989
+ window.${Ie} = ${xi};
4990
+ }${xe ? `
4980
4991
  var thisScriptEl = document.currentScript;
4981
4992
  if (thisScriptEl) { thisScriptEl.remove(); }` : ""}
4982
4993
  })();
4983
- `, Li = (e, t) => `
4984
- window.${ke}(
4985
- "${t}",${JSON.stringify(e)}, ${We}, ${Oi}
4986
- )`, Fi = ({
4994
+ `, Mi = (e, t) => `
4995
+ window.${we}(
4996
+ "${t}",${JSON.stringify(e)}, ${xe}, ${Fi}
4997
+ )`, ji = ({
4987
4998
  contentId: e,
4988
4999
  variationId: t
4989
- }) => `window.${Ce}(
4990
- "${t}", "${e}", ${We}
5000
+ }) => `window.${Ie}(
5001
+ "${t}", "${e}", ${xe}
4991
5002
  )`;
4992
- function Ge(e) {
5003
+ function Xe(e) {
4993
5004
  return Math.round(e * 1e3) / 1e3;
4994
5005
  }
4995
- const Hi = (e, t, n = !0) => {
5006
+ const zi = (e, t, n = !0) => {
4996
5007
  if (!(e instanceof HTMLElement))
4997
5008
  return null;
4998
5009
  let o = n ? e : e.parentElement;
@@ -5003,35 +5014,35 @@ const Hi = (e, t, n = !0) => {
5003
5014
  return o;
5004
5015
  } while (o = o.parentElement);
5005
5016
  return null;
5006
- }, Mi = (e) => Hi(e, (t) => {
5017
+ }, Ki = (e) => zi(e, (t) => {
5007
5018
  const n = t.getAttribute("builder-id") || t.id;
5008
5019
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
5009
- }), Je = ({
5020
+ }), Ze = ({
5010
5021
  event: e,
5011
5022
  target: t
5012
5023
  }) => {
5013
- 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);
5014
5025
  return {
5015
5026
  x: i,
5016
5027
  y: s
5017
5028
  };
5018
- }, ji = (e) => {
5019
- 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);
5020
5031
  return {
5021
5032
  targetBuilderElement: o || void 0,
5022
5033
  metadata: {
5023
- targetOffset: t ? Je({
5034
+ targetOffset: t ? Ze({
5024
5035
  event: e,
5025
5036
  target: t
5026
5037
  }) : void 0,
5027
- builderTargetOffset: n ? Je({
5038
+ builderTargetOffset: n ? Ze({
5028
5039
  event: e,
5029
5040
  target: n
5030
5041
  }) : void 0,
5031
5042
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
5032
5043
  }
5033
5044
  };
5034
- }, Ki = ["svelte", "qwik", "vue"], zi = () => Ki.includes(R) && (A() || Re()), qi = (e) => {
5045
+ }, Gi = ["svelte", "qwik", "vue"], Ji = () => Gi.includes(E) && (P() || Ae()), Qi = (e) => {
5035
5046
  var i;
5036
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);
5037
5048
  let r = "";
@@ -5057,15 +5068,15 @@ font-weight: ${s};
5057
5068
  `.trim());
5058
5069
  }
5059
5070
  return r;
5060
- }, Gi = ({
5071
+ }, Yi = ({
5061
5072
  customFonts: e
5062
5073
  }) => {
5063
5074
  var t;
5064
- return ((t = e == null ? void 0 : e.map((n) => qi(n))) == null ? void 0 : t.join(" ")) || "";
5065
- }, Ji = ({
5075
+ return ((t = e == null ? void 0 : e.map((n) => Qi(n))) == null ? void 0 : t.join(" ")) || "";
5076
+ }, Xi = ({
5066
5077
  cssCode: e,
5067
5078
  contentId: t
5068
- }) => 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 = `
5069
5080
  .builder-button {
5070
5081
  all: unset;
5071
5082
  }
@@ -5082,7 +5093,7 @@ font-weight: ${s};
5082
5093
  text-align: inherit;
5083
5094
  font-family: inherit;
5084
5095
  }
5085
- `, Yi = (e) => e ? "" : Qi, Xi = (e) => `variant-${e}`, Zi = y({
5096
+ `, _i = (e) => e ? "" : Zi, es = (e) => `variant-${e}`, ts = y({
5086
5097
  name: "enable-editor",
5087
5098
  components: { DynamicDiv: te },
5088
5099
  props: [
@@ -5114,8 +5125,8 @@ font-weight: ${s};
5114
5125
  httpReqsPending: {},
5115
5126
  clicked: !1,
5116
5127
  builderContext: ge,
5117
- needsElementRefDivForEditing: zi,
5118
- getWrapperClassName: Xi
5128
+ needsElementRefDivForEditing: Ji,
5129
+ getWrapperClassName: es
5119
5130
  };
5120
5131
  },
5121
5132
  provide() {
@@ -5130,7 +5141,7 @@ font-weight: ${s};
5130
5141
  mounted() {
5131
5142
  var e, t, n;
5132
5143
  if (T()) {
5133
- A() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
5144
+ P() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
5134
5145
  new CustomEvent("initeditingbldr")
5135
5146
  );
5136
5147
  const o = this.builderContextSignal.content && G(this.canTrack), r = ue({
@@ -5148,7 +5159,7 @@ font-weight: ${s};
5148
5159
  variationId: r !== s ? r : void 0
5149
5160
  });
5150
5161
  }
5151
- Re() && !A() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
5162
+ Ae() && !P() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
5152
5163
  new CustomEvent("initpreviewingbldr")
5153
5164
  );
5154
5165
  }
@@ -5250,7 +5261,7 @@ font-weight: ${s};
5250
5261
  this.builderContextSignal.content = n;
5251
5262
  },
5252
5263
  processMessage(e) {
5253
- return ht({
5264
+ return yt({
5254
5265
  model: this.model,
5255
5266
  trustedHosts: this.trustedHosts,
5256
5267
  callbacks: {
@@ -5264,7 +5275,7 @@ font-weight: ${s};
5264
5275
  });
5265
5276
  },
5266
5277
  animation: (t) => {
5267
- kt(t);
5278
+ It(t);
5268
5279
  },
5269
5280
  contentUpdate: (t, n) => {
5270
5281
  this.mergeNewContent(t, n);
@@ -5286,7 +5297,7 @@ font-weight: ${s};
5286
5297
  contentId: r,
5287
5298
  apiKey: this.apiKey,
5288
5299
  variationId: o !== r ? o : void 0,
5289
- ...ji(e),
5300
+ ...qi(e),
5290
5301
  unique: !this.clicked
5291
5302
  });
5292
5303
  }
@@ -5300,7 +5311,7 @@ font-weight: ${s};
5300
5311
  if (!r)
5301
5312
  return;
5302
5313
  const i = typeof r == "object" && r["@type"] === "@builder.io/core:Request";
5303
- if (this.httpReqsPending[o] || this.httpReqsData[o] && !A())
5314
+ if (this.httpReqsPending[o] || this.httpReqsData[o] && !P())
5304
5315
  return;
5305
5316
  const s = i ? r.request.url : r;
5306
5317
  this.httpReqsPending[o] = !0;
@@ -5324,7 +5335,7 @@ font-weight: ${s};
5324
5335
  url: l,
5325
5336
  method: "GET"
5326
5337
  };
5327
- Ie(JSON.stringify(a));
5338
+ Re(JSON.stringify(a));
5328
5339
  const u = {
5329
5340
  method: a.method,
5330
5341
  headers: a.headers,
@@ -5347,12 +5358,12 @@ font-weight: ${s};
5347
5358
  );
5348
5359
  },
5349
5360
  emitStateUpdate() {
5350
- A() && window.dispatchEvent(
5361
+ P() && window.dispatchEvent(
5351
5362
  new CustomEvent(
5352
5363
  "builder:component:stateChange",
5353
5364
  {
5354
5365
  detail: {
5355
- state: $e(this.builderContextSignal.rootState),
5366
+ state: Pe(this.builderContextSignal.rootState),
5356
5367
  ref: {
5357
5368
  name: this.model
5358
5369
  }
@@ -5362,7 +5373,7 @@ font-weight: ${s};
5362
5373
  );
5363
5374
  },
5364
5375
  elementRef_onIniteditingbldr(e) {
5365
- window.addEventListener("message", this.processMessage), mt({
5376
+ window.addEventListener("message", this.processMessage), gt({
5366
5377
  ...this.locale ? {
5367
5378
  locale: this.locale
5368
5379
  } : {},
@@ -5379,7 +5390,7 @@ font-weight: ${s};
5379
5390
  ).forEach((t) => {
5380
5391
  var n, o;
5381
5392
  if (!((n = t.models) != null && n.length) || t.models.includes(this.model)) {
5382
- const r = En(t);
5393
+ const r = An(t);
5383
5394
  (o = window.parent) == null || o.postMessage(r, "*");
5384
5395
  }
5385
5396
  }), window.addEventListener(
@@ -5392,7 +5403,7 @@ font-weight: ${s};
5392
5403
  const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
5393
5404
  `builder.overrides.${n}`
5394
5405
  ), r = t.get("apiKey") || t.get("builder.space");
5395
- (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({
5396
5407
  model: this.model,
5397
5408
  apiKey: this.apiKey,
5398
5409
  apiVersion: this.builderContextSignal.apiVersion,
@@ -5407,7 +5418,7 @@ font-weight: ${s};
5407
5418
  }
5408
5419
  }
5409
5420
  });
5410
- function _i(e, t, n, o, r, i) {
5421
+ function ns(e, t, n, o, r, i) {
5411
5422
  var s, l, a;
5412
5423
  return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(X(e.ContentWrapper), $({
5413
5424
  key: 0,
@@ -5422,32 +5433,32 @@ function _i(e, t, n, o, r, i) {
5422
5433
  onIniteditingbldr: (u) => e.elementRef_onIniteditingbldr(u),
5423
5434
  onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
5424
5435
  }, { ...e.showContentProps, ...e.contentWrapperProps }), {
5425
- default: O(() => [
5436
+ default: x(() => [
5426
5437
  N(e.$slots, "default")
5427
5438
  ]),
5428
5439
  _: 3
5429
5440
  }, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : C("", !0);
5430
5441
  }
5431
- const es = /* @__PURE__ */ v(Zi, [["render", _i]]), ts = y({
5442
+ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = y({
5432
5443
  name: "content-styles",
5433
5444
  components: { InlinedStyles: pe },
5434
5445
  props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
5435
5446
  data() {
5436
5447
  return {
5437
5448
  injectedStyles: `
5438
- ${Ji({
5449
+ ${Xi({
5439
5450
  cssCode: this.cssCode,
5440
5451
  contentId: this.contentId
5441
5452
  })}
5442
- ${Gi({
5453
+ ${Yi({
5443
5454
  customFonts: this.customFonts
5444
5455
  })}
5445
- ${Yi(this.isNestedRender)}
5456
+ ${_i(this.isNestedRender)}
5446
5457
  `.trim()
5447
5458
  };
5448
5459
  }
5449
5460
  });
5450
- function ns(e, t, n, o, r, i) {
5461
+ function is(e, t, n, o, r, i) {
5451
5462
  const s = k("InlinedStyles");
5452
5463
  return d(), S(s, {
5453
5464
  id: "builderio-content",
@@ -5455,7 +5466,7 @@ function ns(e, t, n, o, r, i) {
5455
5466
  nonce: e.nonce
5456
5467
  }, null, 8, ["styles", "nonce"]);
5457
5468
  }
5458
- const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
5469
+ const ss = /* @__PURE__ */ v(rs, [["render", is]]), as = ({
5459
5470
  content: e,
5460
5471
  data: t,
5461
5472
  locale: n
@@ -5472,7 +5483,7 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
5472
5483
  locale: n
5473
5484
  } : {}
5474
5485
  };
5475
- }, is = ({
5486
+ }, ls = ({
5476
5487
  content: e,
5477
5488
  data: t
5478
5489
  }) => e ? {
@@ -5482,13 +5493,13 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
5482
5493
  ...t
5483
5494
  },
5484
5495
  meta: e == null ? void 0 : e.meta
5485
- } : void 0, ss = Nt, as = y({
5496
+ } : void 0, cs = Ot, ds = y({
5486
5497
  name: "content-component",
5487
5498
  components: {
5488
- EnableEditor: es,
5489
- InlinedScript: Ne,
5490
- ContentStyles: os,
5491
- Blocks: z,
5499
+ EnableEditor: os,
5500
+ InlinedScript: De,
5501
+ ContentStyles: ss,
5502
+ Blocks: K,
5492
5503
  DynamicDiv: te
5493
5504
  },
5494
5505
  props: [
@@ -5517,32 +5528,32 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
5517
5528
  data() {
5518
5529
  var e, t;
5519
5530
  return {
5520
- scriptStr: Fi({
5531
+ scriptStr: ji({
5521
5532
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
5522
5533
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
5523
5534
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
5524
5535
  contentId: (t = this.content) == null ? void 0 : t.id
5525
5536
  }),
5526
5537
  registeredComponents: [
5527
- ...qe(),
5538
+ ...Ye(),
5528
5539
  ...this.customComponents || []
5529
5540
  ].reduce(
5530
5541
  (n, { component: o, ...r }) => ({
5531
5542
  ...n,
5532
5543
  [r.name]: {
5533
- component: ss(o),
5544
+ component: cs(o),
5534
5545
  ...le(r)
5535
5546
  }
5536
5547
  }),
5537
5548
  {}
5538
5549
  ),
5539
5550
  builderContextSignal: {
5540
- content: is({
5551
+ content: ls({
5541
5552
  content: this.content,
5542
5553
  data: this.data
5543
5554
  }),
5544
5555
  localState: void 0,
5545
- rootState: rs({
5556
+ rootState: as({
5546
5557
  content: this.content,
5547
5558
  data: this.data,
5548
5559
  locale: this.locale
@@ -5553,7 +5564,7 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
5553
5564
  apiKey: this.apiKey,
5554
5565
  apiVersion: this.apiVersion,
5555
5566
  componentInfos: [
5556
- ...qe(),
5567
+ ...Ye(),
5557
5568
  ...this.customComponents || []
5558
5569
  ].reduce(
5559
5570
  (n, { component: o, ...r }) => ({
@@ -5568,13 +5579,13 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
5568
5579
  nonce: this.nonce || "",
5569
5580
  model: this.model
5570
5581
  },
5571
- TARGET: R
5582
+ TARGET: E
5572
5583
  };
5573
5584
  },
5574
5585
  provide() {
5575
5586
  const e = this;
5576
5587
  return {
5577
- [Ye.key]: {
5588
+ [et.key]: {
5578
5589
  registeredComponents: e.registeredComponents
5579
5590
  }
5580
5591
  };
@@ -5618,7 +5629,7 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
5618
5629
  }
5619
5630
  }
5620
5631
  });
5621
- function ls(e, t, n, o, r, i) {
5632
+ function us(e, t, n, o, r, i) {
5622
5633
  const s = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
5623
5634
  return d(), S(u, $({
5624
5635
  apiHost: e.apiHost,
@@ -5638,8 +5649,8 @@ function ls(e, t, n, o, r, i) {
5638
5649
  trustedHosts: e.trustedHosts,
5639
5650
  isNestedRender: e.isNestedRender
5640
5651
  }, {}), {
5641
- default: O(() => {
5642
- var p, f, c, m, b, g, P;
5652
+ default: x(() => {
5653
+ var p, f, c, m, b, g, A;
5643
5654
  return [
5644
5655
  e.isSsrAbTest ? (d(), S(s, {
5645
5656
  key: 0,
@@ -5655,8 +5666,8 @@ function ls(e, t, n, o, r, i) {
5655
5666
  cssCode: (c = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : c.cssCode,
5656
5667
  customFonts: (b = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : b.customFonts
5657
5668
  }, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : C("", !0),
5658
- E(a, {
5659
- 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,
5660
5671
  context: e.builderContextSignal,
5661
5672
  registeredComponents: e.registeredComponents,
5662
5673
  linkComponent: e.linkComponent
@@ -5666,19 +5677,19 @@ function ls(e, t, n, o, r, i) {
5666
5677
  _: 1
5667
5678
  }, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
5668
5679
  }
5669
- const cs = /* @__PURE__ */ v(as, [["render", ls]]), ds = y({
5680
+ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = y({
5670
5681
  name: "content-variants",
5671
5682
  components: {
5672
- InlinedScript: Ne,
5683
+ InlinedScript: De,
5673
5684
  InlinedStyles: pe,
5674
- ContentComponent: cs
5685
+ ContentComponent: ps
5675
5686
  },
5676
5687
  props: [
5677
5688
  "canTrack",
5678
5689
  "content",
5679
- "isNestedRender",
5680
5690
  "nonce",
5681
5691
  "apiHost",
5692
+ "isNestedRender",
5682
5693
  "model",
5683
5694
  "data",
5684
5695
  "context",
@@ -5696,14 +5707,15 @@ const cs = /* @__PURE__ */ v(as, [["render", ls]]), ds = y({
5696
5707
  ],
5697
5708
  data() {
5698
5709
  return {
5699
- shouldRenderVariants: Di({
5710
+ shouldRenderVariants: Ui({
5700
5711
  canTrack: G(this.canTrack),
5701
5712
  content: this.content
5702
5713
  }),
5703
- SDKS_SUPPORTING_PERSONALIZATION: At,
5704
- getInitPersonalizationVariantsFnsScriptString: Zo,
5705
- TARGET: R,
5706
- getInitVariantsFnsScriptString: Ui,
5714
+ shouldEmitPersonalizationFns: er(this.content),
5715
+ SDKS_SUPPORTING_PERSONALIZATION: Bt,
5716
+ getInitPersonalizationVariantsFnsScriptString: tr,
5717
+ TARGET: E,
5718
+ getInitVariantsFnsScriptString: Hi,
5707
5719
  getVariants: ie
5708
5720
  };
5709
5721
  },
@@ -5712,7 +5724,7 @@ const cs = /* @__PURE__ */ v(as, [["render", ls]]), ds = y({
5712
5724
  computed: {
5713
5725
  updateCookieAndStylesScriptStr() {
5714
5726
  var e;
5715
- return Li(
5727
+ return Mi(
5716
5728
  ie(this.content).map((t) => ({
5717
5729
  id: t.testVariationId,
5718
5730
  testRatio: t.testRatio
@@ -5728,17 +5740,17 @@ const cs = /* @__PURE__ */ v(as, [["render", ls]]), ds = y({
5728
5740
  return this.shouldRenderVariants ? {
5729
5741
  ...this.content,
5730
5742
  testVariationId: (e = this.content) == null ? void 0 : e.id
5731
- } : Un({
5743
+ } : Fn({
5732
5744
  item: this.content,
5733
5745
  canTrack: G(this.canTrack)
5734
5746
  });
5735
5747
  }
5736
5748
  }
5737
5749
  });
5738
- function us(e, t, n, o, r, i) {
5750
+ function hs(e, t, n, o, r, i) {
5739
5751
  const s = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
5740
5752
  return d(), h(I, null, [
5741
- !e.isNestedRender && e.TARGET !== "reactNative" ? (d(), h(I, { key: 0 }, [
5753
+ e.shouldEmitPersonalizationFns ? (d(), h(I, { key: 0 }, [
5742
5754
  e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (d(), S(s, {
5743
5755
  key: 0,
5744
5756
  id: "builderio-init-personalization-variants-fns",
@@ -5747,17 +5759,17 @@ function us(e, t, n, o, r, i) {
5747
5759
  }, null, 8, ["nonce", "scriptStr"])) : C("", !0)
5748
5760
  ], 64)) : C("", !0),
5749
5761
  e.shouldRenderVariants ? (d(), h(I, { key: 1 }, [
5750
- E(s, {
5762
+ R(s, {
5751
5763
  id: "builderio-init-variants-fns",
5752
5764
  scriptStr: e.getInitVariantsFnsScriptString(),
5753
5765
  nonce: e.nonce || ""
5754
5766
  }, null, 8, ["scriptStr", "nonce"]),
5755
- E(l, {
5767
+ R(l, {
5756
5768
  id: "builderio-variants",
5757
5769
  styles: e.hideVariantsStyleString,
5758
5770
  nonce: e.nonce || ""
5759
5771
  }, null, 8, ["styles", "nonce"]),
5760
- E(s, {
5772
+ R(s, {
5761
5773
  id: "builderio-variants-visibility",
5762
5774
  scriptStr: e.updateCookieAndStylesScriptStr,
5763
5775
  nonce: e.nonce || ""
@@ -5787,7 +5799,7 @@ function us(e, t, n, o, r, i) {
5787
5799
  trustedHosts: e.trustedHosts
5788
5800
  }, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
5789
5801
  ], 64)) : C("", !0),
5790
- E(a, $({
5802
+ R(a, $({
5791
5803
  apiHost: e.apiHost,
5792
5804
  nonce: e.nonce,
5793
5805
  isNestedRender: e.isNestedRender,
@@ -5814,13 +5826,13 @@ function us(e, t, n, o, r, i) {
5814
5826
  }), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
5815
5827
  ], 64);
5816
5828
  }
5817
- const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = async ({
5829
+ const fs = /* @__PURE__ */ v(ms, [["render", hs]]), bs = async ({
5818
5830
  builderContextValue: e,
5819
5831
  symbol: t
5820
5832
  }) => {
5821
5833
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
5822
5834
  (e != null && e.apiKey))
5823
- return Pe({
5835
+ return Ne({
5824
5836
  model: t.model,
5825
5837
  apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
5826
5838
  apiVersion: e.apiVersion,
@@ -5832,9 +5844,9 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = async ({
5832
5844
  }).catch((n) => {
5833
5845
  B.error("Could not fetch symbol content: ", n);
5834
5846
  });
5835
- }, hs = y({
5847
+ }, gs = y({
5836
5848
  name: "builder-symbol",
5837
- components: { ContentVariants: ps, DynamicDiv: te },
5849
+ components: { ContentVariants: fs, DynamicDiv: te },
5838
5850
  props: [
5839
5851
  "symbol",
5840
5852
  "builderComponents",
@@ -5891,7 +5903,7 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = async ({
5891
5903
  methods: {
5892
5904
  setContent() {
5893
5905
  var e;
5894
- 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({
5895
5907
  symbol: this.symbol,
5896
5908
  builderContextValue: this.builderContext
5897
5909
  }).then((t) => {
@@ -5901,11 +5913,11 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = async ({
5901
5913
  }
5902
5914
  }
5903
5915
  });
5904
- function fs(e, t, n, o, r, i) {
5916
+ function ys(e, t, n, o, r, i) {
5905
5917
  var l, a, u, p, f, c, m;
5906
5918
  const s = k("ContentVariants");
5907
5919
  return d(), h("div", $({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
5908
- E(s, {
5920
+ R(s, {
5909
5921
  nonce: e.builderContext.nonce,
5910
5922
  isNestedRender: !0,
5911
5923
  apiVersion: e.builderContext.apiVersion,
@@ -5929,47 +5941,47 @@ function fs(e, t, n, o, r, i) {
5929
5941
  }, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
5930
5942
  ], 16);
5931
5943
  }
5932
- const bs = /* @__PURE__ */ v(hs, [["render", fs]]);
5944
+ const vs = /* @__PURE__ */ v(gs, [["render", ys]]);
5933
5945
  export {
5934
- ws as A,
5935
- It as B,
5936
- Po as C,
5937
- $s as D,
5938
- Qn as E,
5939
- No as F,
5940
- Yn as G,
5941
- Pe as H,
5942
- Ho as I,
5943
- vs as J,
5944
- As as K,
5945
- Ko as S,
5946
- R as T,
5947
- 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,
5948
5960
  v as _,
5949
5961
  j as a,
5950
5962
  ge as b,
5951
5963
  pe as c,
5952
- K as d,
5964
+ z as d,
5953
5965
  ee as e,
5954
- $o as f,
5955
- Es as g,
5956
- Rs as h,
5957
- A as i,
5958
- Ps as j,
5959
- Be as k,
5960
- Rn as l,
5961
- Ft as m,
5962
- bs as n,
5963
- Vr as o,
5964
- z as p,
5965
- ps as q,
5966
- Re as r,
5967
- Is as s,
5968
- En as t,
5969
- ks as u,
5970
- Cs as v,
5971
- ss as w,
5972
- Ts as x,
5973
- ut as y,
5974
- 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
5975
5987
  };