@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
- import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as w, createBlock as S, resolveDynamicComponent as Y, mergeProps as I, toHandlers as O, withCtx as x, renderSlot as V, resolveComponent as k, createTextVNode as St, toDisplayString as le, defineAsyncComponent as Q, createVNode as $, renderList as F, createCommentVNode as C, h as je, createElementVNode as j, normalizeStyle as M, normalizeClass as Z, markRaw as kt } from "vue";
2
- import { T as R, g as Ct, f as Tt, i as E, s as wt, r as It, p as $t, a as Rt, l as L, b as Ke, c as Se, d as Et, n as Ge, S as Pt, e as ke, h as re, j as At, k as Je, m as Bt, o as A, q as Qe, _ as Ne } from "./should-force-browser-runtime-in-node-0fyWCMQO.js";
3
- const Vt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Nt = (e) => typeof e == "string" && Vt.has(e.toLowerCase());
1
+ import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as w, createBlock as S, resolveDynamicComponent as Y, mergeProps as I, toHandlers as U, withCtx as x, renderSlot as V, resolveComponent as k, createTextVNode as Ct, toDisplayString as le, defineAsyncComponent as Q, createVNode as $, renderList as F, createCommentVNode as C, h as Qe, createElementVNode as q, normalizeStyle as M, normalizeClass as Z, markRaw as Tt } from "vue";
2
+ import { T as R, g as wt, f as It, i as E, s as $t, r as Rt, p as Et, a as Pt, l as L, b as Ye, c as Te, d as At, n as Xe, S as Bt, e as we, h as re, j as Vt, k as Ze, m as Nt, o as A, q as _e, _ as xe } from "./should-force-browser-runtime-in-node-k20eAE3E.js";
3
+ const Wt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Dt = (e) => typeof e == "string" && Wt.has(e.toLowerCase());
4
4
  function N(e = {}, t, n) {
5
5
  const o = {};
6
6
  for (const r in e) {
@@ -11,11 +11,11 @@ function N(e = {}, t, n) {
11
11
  }
12
12
  return o;
13
13
  }
14
- const Wt = y({
14
+ const xt = y({
15
15
  name: "dynamic-renderer",
16
16
  props: ["TagName", "attributes", "actionAttributes"],
17
17
  data() {
18
- return { isEmptyElement: Nt };
18
+ return { isEmptyElement: Dt };
19
19
  }
20
20
  }), v = (e, t) => {
21
21
  const n = e.__vccOpts || e;
@@ -23,14 +23,14 @@ const Wt = y({
23
23
  n[o] = r;
24
24
  return n;
25
25
  };
26
- function Dt(e, t, n, o, r, i) {
27
- return e.isEmptyElement(e.TagName) ? (d(), S(Y(e.TagName), I({ key: 1 }, e.attributes, O(e.actionAttributes)), null, 16)) : (d(), h(w, { key: 0 }, [
28
- typeof e.TagName == "string" ? (d(), S(Y(e.TagName), I({ key: 0 }, e.attributes, O(e.actionAttributes)), {
26
+ function Ot(e, t, n, o, r, i) {
27
+ return e.isEmptyElement(e.TagName) ? (d(), S(Y(e.TagName), I({ key: 1 }, e.attributes, U(e.actionAttributes)), null, 16)) : (d(), h(w, { key: 0 }, [
28
+ typeof e.TagName == "string" ? (d(), S(Y(e.TagName), I({ key: 0 }, e.attributes, U(e.actionAttributes)), {
29
29
  default: x(() => [
30
30
  V(e.$slots, "default")
31
31
  ]),
32
32
  _: 3
33
- }, 16)) : (d(), S(Y(e.TagName), I({ key: 1 }, e.attributes, O(e.actionAttributes)), {
33
+ }, 16)) : (d(), S(Y(e.TagName), I({ key: 1 }, e.attributes, U(e.actionAttributes)), {
34
34
  default: x(() => [
35
35
  V(e.$slots, "default")
36
36
  ]),
@@ -38,9 +38,9 @@ function Dt(e, t, n, o, r, i) {
38
38
  }, 16))
39
39
  ], 64));
40
40
  }
41
- const Ce = /* @__PURE__ */ v(Wt, [["render", Dt]]), Ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41
+ const Ie = /* @__PURE__ */ v(xt, [["render", Ot]]), Xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42
42
  __proto__: null,
43
- default: Ce
43
+ default: Ie
44
44
  }, Symbol.toStringTag, { value: "Module" })), z = () => {
45
45
  switch (R) {
46
46
  case "react":
@@ -54,9 +54,9 @@ const Ce = /* @__PURE__ */ v(Wt, [["render", Dt]]), Ji = /* @__PURE__ */ Object.
54
54
  case "angular":
55
55
  return "class";
56
56
  }
57
- }, xt = y({
57
+ }, Ut = y({
58
58
  name: "builder-button",
59
- components: { DynamicRenderer: Ce },
59
+ components: { DynamicRenderer: Ie },
60
60
  props: [
61
61
  "attributes",
62
62
  "link",
@@ -83,7 +83,7 @@ const Ce = /* @__PURE__ */ v(Wt, [["render", Dt]]), Ji = /* @__PURE__ */ Object.
83
83
  }
84
84
  }
85
85
  });
86
- function Ut(e, t, n, o, r, i) {
86
+ function Ft(e, t, n, o, r, i) {
87
87
  const s = k("DynamicRenderer");
88
88
  return d(), S(s, {
89
89
  attributes: e.attrs(),
@@ -91,12 +91,12 @@ function Ut(e, t, n, o, r, i) {
91
91
  actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
92
92
  }, {
93
93
  default: x(() => [
94
- St(le(e.text), 1)
94
+ Ct(le(e.text), 1)
95
95
  ]),
96
96
  _: 1
97
97
  }, 8, ["attributes", "TagName", "actionAttributes"]);
98
98
  }
99
- const Ot = /* @__PURE__ */ v(xt, [["render", Ut]]), Ft = Symbol(), he = {
99
+ const Lt = /* @__PURE__ */ v(Ut, [["render", Ft]]), Ht = Symbol(), he = {
100
100
  Builder: {
101
101
  content: null,
102
102
  context: {},
@@ -113,14 +113,14 @@ const Ot = /* @__PURE__ */ v(xt, [["render", Ut]]), Ft = Symbol(), he = {
113
113
  nonce: "",
114
114
  model: ""
115
115
  },
116
- key: Ft
117
- }, Lt = Symbol(), Ye = {
116
+ key: Ht
117
+ }, Mt = Symbol(), et = {
118
118
  Components: { registeredComponents: {} },
119
- key: Lt
120
- }, Xe = (e, t, n) => {
119
+ key: Mt
120
+ }, tt = (e, t, n) => {
121
121
  const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, i) => r != null ? r[i] : r, e);
122
122
  return o === void 0 || o === e ? n : o;
123
- }, Ht = ({
123
+ }, zt = ({
124
124
  code: e,
125
125
  builder: t,
126
126
  context: n,
@@ -129,22 +129,22 @@ const Ot = /* @__PURE__ */ v(xt, [["render", Ut]]), Ft = Symbol(), he = {
129
129
  rootSetState: i,
130
130
  rootState: s
131
131
  }) => {
132
- const l = Ct({
132
+ const l = wt({
133
133
  builder: t,
134
134
  context: n,
135
135
  event: o,
136
- state: Tt({
136
+ state: It({
137
137
  rootState: s,
138
138
  localState: r,
139
139
  rootSetState: i
140
140
  })
141
141
  });
142
142
  return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
143
- }, Mt = (e) => E() || wt({
143
+ }, jt = (e) => E() || $t({
144
144
  shouldLogWarning: !0
145
- }) ? Ht(e) : It(e), zt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, qt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, jt = (e) => {
145
+ }) ? zt(e) : Rt(e), qt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Kt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Jt = (e) => {
146
146
  var t, n, o, r, i, s;
147
- return ((o = (n = (t = zt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = qt.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
147
+ return ((o = (n = (t = qt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = Kt.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
148
148
  };
149
149
  function _({
150
150
  code: e,
@@ -158,17 +158,17 @@ function _({
158
158
  }) {
159
159
  if (e.trim() === "")
160
160
  return;
161
- const a = jt(e.trim());
161
+ const a = Jt(e.trim());
162
162
  if (a)
163
- return Xe({
163
+ return tt({
164
164
  ...o,
165
165
  ...n
166
166
  }, a);
167
167
  const u = {
168
- code: $t(e, {
168
+ code: Et(e, {
169
169
  isExpression: s
170
170
  }),
171
- builder: Rt(l),
171
+ builder: Pt(l),
172
172
  context: t,
173
173
  event: i,
174
174
  rootSetState: r,
@@ -176,7 +176,7 @@ function _({
176
176
  localState: n
177
177
  };
178
178
  try {
179
- return Mt(u);
179
+ return jt(u);
180
180
  } catch (p) {
181
181
  L.error("Failed code evaluation: " + p.message, {
182
182
  code: e
@@ -184,15 +184,15 @@ function _({
184
184
  return;
185
185
  }
186
186
  }
187
- function Kt(e, t) {
187
+ function Gt(e, t) {
188
188
  var n;
189
189
  return {
190
190
  ...(n = e.component) == null ? void 0 : n.options,
191
191
  ...e.options,
192
- ...Gt(e, t)
192
+ ...Qt(e, t)
193
193
  };
194
194
  }
195
- const Gt = (e, t) => {
195
+ const Qt = (e, t) => {
196
196
  var n, o;
197
197
  if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((o = e.component.options) != null && o.text) && typeof e.component.options.text == "string")
198
198
  return {
@@ -206,7 +206,7 @@ const Gt = (e, t) => {
206
206
  }))
207
207
  };
208
208
  };
209
- function Jt(e, ...t) {
209
+ function Yt(e, ...t) {
210
210
  const n = Object.assign({}, e);
211
211
  for (const o of t)
212
212
  delete n[o];
@@ -229,28 +229,28 @@ function ie(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
229
229
  }), ie(s, t, e, i, r);
230
230
  }));
231
231
  }
232
- function Ze(e) {
232
+ function nt(e) {
233
233
  return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
234
234
  }
235
- function Qt(e) {
235
+ function Xt(e) {
236
236
  if (!e || !Object.getOwnPropertyNames(e).length)
237
237
  return !1;
238
238
  let t = !1;
239
239
  return ie(e, (n) => {
240
- if (Ze(n)) {
240
+ if (nt(n)) {
241
241
  t = !0;
242
242
  return;
243
243
  }
244
244
  }), t;
245
245
  }
246
- function Yt(e, t) {
246
+ function Zt(e, t) {
247
247
  return !e || !Object.getOwnPropertyNames(e).length ? {} : (ie(e, (n, o) => {
248
- Ze(n) && o(n[t] ?? void 0);
248
+ nt(n) && o(n[t] ?? void 0);
249
249
  }), e);
250
250
  }
251
- function Xt(e, t) {
251
+ function _t(e, t) {
252
252
  var n, o;
253
- return (n = e.component) != null && n.options && Qt((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 = Yt(e.component.options, t ?? "Default")), e;
253
+ return (n = e.component) != null && n.options && Xt((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 = Zt(e.component.options, t ?? "Default")), e;
254
254
  }
255
255
  function fe(e) {
256
256
  if (e === null || typeof e != "object")
@@ -264,9 +264,9 @@ function fe(e) {
264
264
  n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = fe(e[n]));
265
265
  return t;
266
266
  }
267
- const Zt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), _t = (e) => {
268
- if (Zt) {
269
- const t = Se(e);
267
+ const en = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), tn = (e) => {
268
+ if (en) {
269
+ const t = Te(e);
270
270
  return {
271
271
  ...t,
272
272
  properties: {
@@ -277,7 +277,7 @@ const Zt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), _t = (e) =
277
277
  }
278
278
  };
279
279
  } else {
280
- const t = fe(Jt(e, "children", "meta"));
280
+ const t = fe(Yt(e, "children", "meta"));
281
281
  return {
282
282
  ...t,
283
283
  properties: {
@@ -290,7 +290,7 @@ const Zt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), _t = (e) =
290
290
  meta: e.meta
291
291
  };
292
292
  }
293
- }, en = ({
293
+ }, nn = ({
294
294
  block: e,
295
295
  context: t,
296
296
  localState: n,
@@ -299,7 +299,7 @@ const Zt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), _t = (e) =
299
299
  }) => {
300
300
  if (!e.bindings)
301
301
  return e;
302
- const i = _t(e);
302
+ const i = tn(e);
303
303
  for (const s in e.bindings) {
304
304
  const l = e.bindings[s], a = _({
305
305
  code: l,
@@ -308,11 +308,11 @@ const Zt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), _t = (e) =
308
308
  rootSetState: r,
309
309
  context: t
310
310
  });
311
- Ke(i, s, a);
311
+ Ye(i, s, a);
312
312
  }
313
313
  return i;
314
314
  };
315
- function tn({
315
+ function on({
316
316
  block: e,
317
317
  context: t,
318
318
  localState: n,
@@ -320,33 +320,33 @@ function tn({
320
320
  rootSetState: r
321
321
  }) {
322
322
  let i = e;
323
- return i = en({
323
+ return i = nn({
324
324
  block: i,
325
325
  localState: n,
326
326
  rootState: o,
327
327
  rootSetState: r,
328
328
  context: t
329
- }), i = Xt(i, o.locale), i;
329
+ }), i = _t(i, o.locale), i;
330
330
  }
331
- function Te(e) {
331
+ function $e(e) {
332
332
  const t = e || (E() ? window.location.search : void 0);
333
- return t ? Et(t).indexOf("builder.preview=") !== -1 : !1;
333
+ return t ? At(t).indexOf("builder.preview=") !== -1 : !1;
334
334
  }
335
- const nn = (e) => ({
335
+ const rn = (e) => ({
336
336
  type: "builder.registerComponent",
337
337
  data: se(e)
338
- }), on = (e) => {
338
+ }), sn = (e) => {
339
339
  const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
340
340
  return `return (${!t.startsWith("function") && !t.startsWith("async") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
341
341
  };
342
342
  function se(e) {
343
- return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? on(n) : n));
343
+ return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? sn(n) : n));
344
344
  }
345
- const We = {};
346
- function Qi(e, t) {
345
+ const Oe = {};
346
+ function Zi(e, t) {
347
347
  e === "plugin" && (t = se(t));
348
- let n = We[e];
349
- if (n || (n = We[e] = []), n.push(t), E()) {
348
+ let n = Oe[e];
349
+ if (n || (n = Oe[e] = []), n.push(t), E()) {
350
350
  const o = {
351
351
  type: "builder.register",
352
352
  data: {
@@ -361,7 +361,7 @@ function Qi(e, t) {
361
361
  }
362
362
  }
363
363
  }
364
- function Yi(e) {
364
+ function _i(e) {
365
365
  var t;
366
366
  if (E()) {
367
367
  const n = JSON.parse(JSON.stringify(e));
@@ -371,50 +371,50 @@ function Yi(e) {
371
371
  }, "*");
372
372
  }
373
373
  }
374
- const De = {};
375
- function Xi(e) {
374
+ const Ue = {};
375
+ function es(e) {
376
376
  if (E()) {
377
- Object.assign(De, e);
377
+ Object.assign(Ue, e);
378
378
  const t = {
379
379
  type: "builder.settingsChange",
380
- data: De
380
+ data: Ue
381
381
  };
382
382
  parent.postMessage(t, "*");
383
383
  }
384
384
  }
385
- const xe = "builder.", rn = "options.", _e = (e) => {
385
+ const Fe = "builder.", an = "options.", ot = (e) => {
386
386
  if (!e)
387
387
  return {};
388
- const t = Ge(e), n = {};
388
+ const t = Xe(e), n = {};
389
389
  return Object.keys(t).forEach((o) => {
390
- if (o.startsWith(xe)) {
391
- const r = o.replace(xe, "").replace(rn, "");
390
+ if (o.startsWith(Fe)) {
391
+ const r = o.replace(Fe, "").replace(an, "");
392
392
  n[r] = t[o];
393
393
  }
394
394
  }), n;
395
- }, sn = () => {
395
+ }, ln = () => {
396
396
  if (!E())
397
397
  return {};
398
398
  const e = new URLSearchParams(window.location.search);
399
- return _e(e);
400
- }, an = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
401
- function et(e, t) {
399
+ return ot(e);
400
+ }, cn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
401
+ function rt(e, t) {
402
402
  let n;
403
403
  try {
404
404
  n = new URL(t.origin);
405
405
  } catch {
406
406
  return !1;
407
407
  }
408
- return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e || an).findIndex((o) => o.startsWith("*.") ? n.hostname.endsWith(o.slice(1)) : o === n.hostname) > -1;
408
+ return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e || cn).findIndex((o) => o.startsWith("*.") ? n.hostname.endsWith(o.slice(1)) : o === n.hostname) > -1;
409
409
  }
410
- let Ue = !1;
411
- const tt = (e) => {
410
+ let Le = !1;
411
+ const it = (e) => {
412
412
  var t, n;
413
- Ue || (Ue = !0, E() && ((t = window.parent) == null || t.postMessage({
413
+ Le || (Le = !0, E() && ((t = window.parent) == null || t.postMessage({
414
414
  type: "builder.sdkInfo",
415
415
  data: {
416
416
  target: R,
417
- version: Pt,
417
+ version: Bt,
418
418
  supportsPatchUpdates: !1,
419
419
  // Supports builder-model="..." attribute which is needed to
420
420
  // scope our '+ add block' button styling
@@ -432,7 +432,7 @@ const tt = (e) => {
432
432
  }
433
433
  }, "*"), window.addEventListener("message", (o) => {
434
434
  var i, s;
435
- if (!et(e.trustedHosts, o))
435
+ if (!rt(e.trustedHosts, o))
436
436
  return;
437
437
  const {
438
438
  data: r
@@ -473,12 +473,12 @@ const tt = (e) => {
473
473
  }
474
474
  }
475
475
  })));
476
- }, nt = ({
476
+ }, st = ({
477
477
  model: e,
478
478
  trustedHosts: t,
479
479
  callbacks: n
480
480
  }) => (o) => {
481
- if (!et(t, o))
481
+ if (!rt(t, o))
482
482
  return;
483
483
  const {
484
484
  data: r
@@ -504,7 +504,7 @@ const tt = (e) => {
504
504
  break;
505
505
  }
506
506
  }
507
- }, Zi = ({
507
+ }, ts = ({
508
508
  model: e,
509
509
  apiKey: t,
510
510
  callback: n,
@@ -513,11 +513,11 @@ const tt = (e) => {
513
513
  if (!E)
514
514
  return L.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
515
515
  };
516
- tt({
516
+ it({
517
517
  modelName: e,
518
518
  apiKey: t
519
519
  });
520
- const r = nt({
520
+ const r = st({
521
521
  callbacks: {
522
522
  contentUpdate: n,
523
523
  animation: () => {
@@ -533,24 +533,24 @@ const tt = (e) => {
533
533
  return window.addEventListener("message", r), () => {
534
534
  window.removeEventListener("message", r);
535
535
  };
536
- }, ln = "builder.tests", we = (e) => `${ln}.${e}`, cn = ({
536
+ }, dn = "builder.tests", Re = (e) => `${dn}.${e}`, un = ({
537
537
  contentId: e
538
- }) => At({
539
- name: we(e),
538
+ }) => Vt({
539
+ name: Re(e),
540
540
  canTrack: !0
541
- }), dn = ({
541
+ }), pn = ({
542
542
  contentId: e
543
- }) => ke({
544
- name: we(e),
543
+ }) => we({
544
+ name: Re(e),
545
545
  canTrack: !0
546
- }), un = ({
546
+ }), mn = ({
547
547
  contentId: e,
548
548
  value: t
549
- }) => Je({
550
- name: we(e),
549
+ }) => Ze({
550
+ name: Re(e),
551
551
  value: t,
552
552
  canTrack: !0
553
- }), ot = (e) => re(e.id) && re(e.variations) && Object.keys(e.variations).length > 0, pn = ({
553
+ }), at = (e) => re(e.id) && re(e.variations) && Object.keys(e.variations).length > 0, hn = ({
554
554
  id: e,
555
555
  variations: t
556
556
  }) => {
@@ -563,15 +563,15 @@ const tt = (e) => {
563
563
  return i;
564
564
  }
565
565
  return e;
566
- }, rt = (e) => {
567
- const t = pn(e);
568
- return un({
566
+ }, lt = (e) => {
567
+ const t = hn(e);
568
+ return mn({
569
569
  contentId: e.id,
570
570
  value: t
571
571
  }).catch((n) => {
572
572
  L.error("could not store A/B test variation: ", n);
573
573
  }), t;
574
- }, it = ({
574
+ }, ct = ({
575
575
  item: e,
576
576
  testGroupId: t
577
577
  }) => {
@@ -585,7 +585,7 @@ const tt = (e) => {
585
585
  testVariationId: n.id,
586
586
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
587
587
  };
588
- }, mn = ({
588
+ }, fn = ({
589
589
  item: e,
590
590
  canTrack: t
591
591
  }) => {
@@ -593,14 +593,14 @@ const tt = (e) => {
593
593
  return e;
594
594
  if (!e)
595
595
  return;
596
- if (!ot(e))
596
+ if (!at(e))
597
597
  return e;
598
- const n = dn({
598
+ const n = pn({
599
599
  contentId: e.id
600
- }) || rt({
600
+ }) || lt({
601
601
  variations: e.variations,
602
602
  id: e.id
603
- }), o = it({
603
+ }), o = ct({
604
604
  item: e,
605
605
  testGroupId: n
606
606
  });
@@ -608,18 +608,18 @@ const tt = (e) => {
608
608
  ...e,
609
609
  ...o
610
610
  };
611
- }, hn = async ({
611
+ }, bn = async ({
612
612
  item: e,
613
613
  canTrack: t
614
614
  }) => {
615
- if (!t || !ot(e))
615
+ if (!t || !at(e))
616
616
  return e;
617
- const o = await cn({
617
+ const o = await un({
618
618
  contentId: e.id
619
- }) || rt({
619
+ }) || lt({
620
620
  variations: e.variations,
621
621
  id: e.id
622
- }), r = it({
622
+ }), r = ct({
623
623
  item: e,
624
624
  testGroupId: o
625
625
  });
@@ -628,8 +628,8 @@ const tt = (e) => {
628
628
  ...r
629
629
  };
630
630
  };
631
- const Oe = "builder.userAttributes";
632
- function Fe() {
631
+ const He = "builder.userAttributes";
632
+ function Me() {
633
633
  let e = !0;
634
634
  const t = /* @__PURE__ */ new Set();
635
635
  return {
@@ -640,15 +640,15 @@ function Fe() {
640
640
  ...this.getUserAttributes(),
641
641
  ...n
642
642
  };
643
- Je({
644
- name: Oe,
643
+ Ze({
644
+ name: He,
645
645
  value: JSON.stringify(o),
646
646
  canTrack: e
647
647
  }), t.forEach((r) => r(o));
648
648
  },
649
649
  getUserAttributes() {
650
- return E() ? JSON.parse(ke({
651
- name: Oe,
650
+ return E() ? JSON.parse(we({
651
+ name: He,
652
652
  canTrack: e
653
653
  }) || "{}") : {};
654
654
  },
@@ -665,24 +665,24 @@ function Fe() {
665
665
  };
666
666
  }
667
667
  let be;
668
- E() && R === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = Fe()), be = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : be = Fe();
669
- const ae = be, _i = (e) => {
668
+ E() && R === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = Me()), be = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : be = Me();
669
+ const ae = be, ns = (e) => {
670
670
  ae.setUserAttributes(e);
671
671
  }, K = (e) => {
672
672
  const t = re(e) ? e : !0;
673
673
  return ae.setCanTrack(t), t;
674
674
  };
675
- function fn() {
675
+ function gn() {
676
676
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
677
677
  }
678
- function bn() {
679
- const e = fn().fetch;
678
+ function yn() {
679
+ const e = gn().fetch;
680
680
  if (typeof e > "u")
681
681
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
682
682
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
683
683
  return e;
684
684
  }
685
- const gn = bn();
685
+ const vn = yn();
686
686
  function ge(e, t = null, n = ".") {
687
687
  return Object.keys(e).reduce((o, r) => {
688
688
  const i = e[r], s = [t, r].filter(Boolean).join(n);
@@ -695,14 +695,14 @@ function ge(e, t = null, n = ".") {
695
695
  };
696
696
  }, {});
697
697
  }
698
- function st(e, t, n = {}) {
698
+ function dt(e, t, n = {}) {
699
699
  for (const o in e) {
700
700
  const r = e[o], i = t ? t + "." + o : o;
701
- r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? st(r, i, n) : n[i] = r;
701
+ r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? dt(r, i, n) : n[i] = r;
702
702
  }
703
703
  return n;
704
704
  }
705
- function yn(e) {
705
+ function Sn(e) {
706
706
  const t = {};
707
707
  for (const n in e) {
708
708
  const o = n.split(".");
@@ -714,7 +714,7 @@ function yn(e) {
714
714
  }
715
715
  return t;
716
716
  }
717
- const vn = "v3", Le = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ie = (e) => {
717
+ const kn = "v3", ze = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ee = (e) => {
718
718
  const {
719
719
  limit: t = 30,
720
720
  userAttributes: n,
@@ -723,7 +723,7 @@ const vn = "v3", Le = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ie = (
723
723
  apiKey: i,
724
724
  enrich: s,
725
725
  locale: l,
726
- apiVersion: a = vn,
726
+ apiVersion: a = kn,
727
727
  fields: u,
728
728
  omit: p,
729
729
  offset: f,
@@ -737,81 +737,81 @@ const vn = "v3", Le = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ie = (
737
737
  throw new Error("Missing API key");
738
738
  if (!["v3"].includes(a))
739
739
  throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
740
- const U = t !== 1, B = P || "https://cdn.builder.io", T = new URL(`${B}/api/${a}/content/${r}`);
741
- T.searchParams.set("apiKey", i), T.searchParams.set("limit", String(t)), T.searchParams.set("noTraverse", String(U)), T.searchParams.set("includeRefs", String(!0)), l && T.searchParams.set("locale", l);
740
+ const O = t !== 1, B = P || "https://cdn.builder.io", T = new URL(`${B}/api/${a}/content/${r}`);
741
+ T.searchParams.set("apiKey", i), T.searchParams.set("limit", String(t)), T.searchParams.set("noTraverse", String(O)), T.searchParams.set("includeRefs", String(!0)), l && T.searchParams.set("locale", l);
742
742
  let W = n || {};
743
- if (s && T.searchParams.set("enrich", String(s)), T.searchParams.set("omit", p ?? "meta.componentsUsed"), u && T.searchParams.set("fields", u), Number.isFinite(f) && f > -1 && T.searchParams.set("offset", String(Math.floor(f))), typeof g == "boolean" && T.searchParams.set("includeUnpublished", String(g)), c && Le(c) && T.searchParams.set("cacheSeconds", String(c)), m && Le(m) && T.searchParams.set("staleCacheSeconds", String(m)), b) {
743
+ if (s && T.searchParams.set("enrich", String(s)), T.searchParams.set("omit", p ?? "meta.componentsUsed"), u && T.searchParams.set("fields", u), Number.isFinite(f) && f > -1 && T.searchParams.set("offset", String(Math.floor(f))), typeof g == "boolean" && T.searchParams.set("includeUnpublished", String(g)), c && ze(c) && T.searchParams.set("cacheSeconds", String(c)), m && ze(m) && T.searchParams.set("staleCacheSeconds", String(m)), b) {
744
744
  const D = ge({
745
745
  sort: b
746
746
  });
747
747
  for (const H in D)
748
748
  T.searchParams.set(H, JSON.stringify(D[H]));
749
749
  }
750
- const G = {
751
- ...sn(),
752
- ...Ge(e.options || {})
750
+ const J = {
751
+ ...ln(),
752
+ ...Xe(e.options || {})
753
753
  };
754
754
  W = {
755
755
  ...W,
756
- ...kn(G)
756
+ ...Tn(J)
757
757
  };
758
- const J = ge(G);
759
- for (const D in J)
760
- T.searchParams.set(D, String(J[D]));
758
+ const G = ge(J);
759
+ for (const D in G)
760
+ T.searchParams.set(D, String(G[D]));
761
761
  if (Object.keys(W).length > 0 && T.searchParams.set("userAttributes", JSON.stringify(W)), o) {
762
- const D = st({
762
+ const D = dt({
763
763
  query: o
764
764
  });
765
765
  for (const H in D)
766
766
  T.searchParams.set(H, JSON.stringify(D[H]));
767
767
  }
768
768
  return T;
769
- }, Sn = (e) => {
769
+ }, Cn = (e) => {
770
770
  const t = {};
771
771
  for (const n in e)
772
772
  n.startsWith("userAttributes.") && (t[n] = e[n], delete e[n]);
773
773
  return t;
774
- }, kn = (e) => {
774
+ }, Tn = (e) => {
775
775
  if (E() && e.preview === "BUILDER_STUDIO") {
776
776
  e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
777
- const t = Sn(e), {
777
+ const t = Cn(e), {
778
778
  userAttributes: n
779
- } = yn(t);
779
+ } = Sn(t);
780
780
  return n;
781
781
  }
782
782
  return {};
783
- }, Cn = (e) => "results" in e;
784
- async function $e(e) {
783
+ }, wn = (e) => "results" in e;
784
+ async function Pe(e) {
785
785
  var o;
786
786
  const t = e.locale || ((o = e.userAttributes) == null ? void 0 : o.locale);
787
787
  t && (e.locale = t, e.userAttributes = {
788
788
  locale: t,
789
789
  ...e.userAttributes
790
790
  });
791
- const n = await In({
791
+ const n = await Rn({
792
792
  ...e,
793
793
  limit: 1
794
794
  });
795
795
  return n && n[0] || null;
796
796
  }
797
- const Tn = async (e) => {
797
+ const In = async (e) => {
798
798
  var s;
799
- const t = Ie(e), n = e.fetch ?? gn, o = {
799
+ const t = Ee(e), n = e.fetch ?? vn, o = {
800
800
  ...e.fetchOptions,
801
801
  headers: {
802
802
  ...(s = e.fetchOptions) == null ? void 0 : s.headers,
803
- ...Bt()
803
+ ...Nt()
804
804
  }
805
805
  };
806
806
  return await (await n(t.href, o)).json();
807
- }, wn = async (e, t, n = Ie(e)) => {
807
+ }, $n = async (e, t, n = Ee(e)) => {
808
808
  const o = K(e.canTrack);
809
809
  if (n.search.includes("preview="), !o || !(E() || R === "reactNative"))
810
810
  return t.results;
811
811
  try {
812
812
  const r = [];
813
813
  for (const i of t.results)
814
- r.push(await hn({
814
+ r.push(await bn({
815
815
  item: i,
816
816
  canTrack: o
817
817
  }));
@@ -821,17 +821,17 @@ const Tn = async (e) => {
821
821
  }
822
822
  return t.results;
823
823
  };
824
- async function In(e) {
825
- const t = Ie(e), n = await Tn(e);
826
- if (!Cn(n))
824
+ async function Rn(e) {
825
+ const t = Ee(e), n = await In(e);
826
+ if (!wn(n))
827
827
  throw L.error("Error fetching data. ", {
828
828
  url: t,
829
829
  content: n,
830
830
  options: e
831
831
  }), n;
832
- return wn(e, n);
832
+ return $n(e, n);
833
833
  }
834
- const es = async (e) => {
834
+ const os = async (e) => {
835
835
  var o, r, i;
836
836
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
837
837
  ...e,
@@ -843,15 +843,15 @@ const es = async (e) => {
843
843
  urlPath: t
844
844
  } : {}
845
845
  },
846
- options: _e(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
846
+ options: ot(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
847
847
  };
848
848
  return {
849
849
  apiKey: n.apiKey,
850
850
  model: n.model,
851
- content: await $e(n)
851
+ content: await Pe(n)
852
852
  };
853
- }, Re = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
854
- function $n(e, t, n = {}) {
853
+ }, Ae = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
854
+ function En(e, t, n = {}) {
855
855
  let o, r, i, s = null, l = 0;
856
856
  const a = function() {
857
857
  l = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
@@ -873,55 +873,55 @@ function X(e, ...t) {
873
873
  }
874
874
  return n;
875
875
  }
876
- function Rn(e) {
876
+ function Pn(e) {
877
877
  for (const t of e)
878
878
  switch (t.trigger) {
879
879
  case "pageLoad":
880
- ct(t);
880
+ mt(t);
881
881
  break;
882
882
  case "scrollInView":
883
- Pn(t);
883
+ Bn(t);
884
884
  break;
885
885
  }
886
886
  }
887
- function at(e) {
887
+ function ut(e) {
888
888
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
889
889
  }
890
- function lt(e, t) {
891
- const n = En(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
890
+ function pt(e, t) {
891
+ const n = An(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
892
892
  for (const l of s)
893
893
  for (const a of n)
894
894
  a in l || (l[a] = o[a]);
895
895
  }
896
- function En(e) {
896
+ function An(e) {
897
897
  const t = [];
898
898
  for (const n of e.steps)
899
899
  for (const o in n.styles)
900
900
  t.indexOf(o) === -1 && t.push(o);
901
901
  return t;
902
902
  }
903
- function ct(e) {
903
+ function mt(e) {
904
904
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
905
905
  if (!t.length) {
906
- at(e.elementId || e.id || "");
906
+ ut(e.elementId || e.id || "");
907
907
  return;
908
908
  }
909
909
  Array.from(t).forEach((n) => {
910
- lt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", X(n.style, e.steps[0].styles), setTimeout(() => {
911
- n.style.transition = `all ${e.duration}s ${Re(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), X(n.style, e.steps[1].styles), setTimeout(() => {
910
+ pt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", X(n.style, e.steps[0].styles), setTimeout(() => {
911
+ n.style.transition = `all ${e.duration}s ${Ae(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), X(n.style, e.steps[1].styles), setTimeout(() => {
912
912
  n.style.transition = "", n.style.transitionDelay = "";
913
913
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
914
914
  });
915
915
  });
916
916
  }
917
- function Pn(e) {
917
+ function Bn(e) {
918
918
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
919
919
  if (!t.length) {
920
- at(e.elementId || e.id || "");
920
+ ut(e.elementId || e.id || "");
921
921
  return;
922
922
  }
923
923
  Array.from(t).forEach((n) => {
924
- lt(e, n);
924
+ pt(e, n);
925
925
  let o = !1, r = !1;
926
926
  function i() {
927
927
  !o && l(n) ? (o = !0, r = !0, setTimeout(() => {
@@ -930,7 +930,7 @@ function Pn(e) {
930
930
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
931
931
  })) : e.repeat && o && !r && !l(n) && (o = !1, X(n.style, e.steps[0].styles));
932
932
  }
933
- const s = $n(i, 200, {
933
+ const s = En(i, 200, {
934
934
  leading: !1
935
935
  });
936
936
  function l(p) {
@@ -942,49 +942,49 @@ function Pn(e) {
942
942
  X(n.style, a);
943
943
  }
944
944
  u(), setTimeout(() => {
945
- n.style.transition = `all ${e.duration}s ${Re(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
945
+ n.style.transition = `all ${e.duration}s ${Ae(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
946
946
  }), document.addEventListener("scroll", s, {
947
947
  capture: !0,
948
948
  passive: !0
949
949
  }), i();
950
950
  });
951
951
  }
952
- const dt = (e) => Object.entries(e).map(([n, o]) => {
952
+ const ht = (e) => Object.entries(e).map(([n, o]) => {
953
953
  if (typeof o == "string")
954
- return `${Re(n)}: ${o};`;
955
- }).filter(re), An = (e) => dt(e).join(`
956
- `), ts = ({
954
+ return `${Ae(n)}: ${o};`;
955
+ }).filter(re), Vn = (e) => ht(e).join(`
956
+ `), rs = ({
957
957
  mediaQuery: e,
958
958
  className: t,
959
959
  styles: n
960
960
  }) => {
961
961
  const o = `.${t} {
962
- ${An(n)}
962
+ ${Vn(n)}
963
963
  }`;
964
964
  return e ? `${e} {
965
965
  ${o}
966
966
  }` : o;
967
967
  };
968
- function Bn({
968
+ function Nn({
969
969
  style: e
970
970
  }) {
971
971
  return e;
972
972
  }
973
- const ns = ({
973
+ const is = ({
974
974
  block: e,
975
975
  context: t
976
- }) => ut(Bn({
976
+ }) => ft(Nn({
977
977
  style: e.style || {},
978
978
  context: t,
979
979
  block: e
980
980
  }));
981
- function ut(e) {
981
+ function ft(e) {
982
982
  switch (R) {
983
983
  case "svelte":
984
984
  case "vue":
985
985
  case "solid":
986
986
  case "angular":
987
- return dt(e).join(" ");
987
+ return ht(e).join(" ");
988
988
  case "qwik":
989
989
  case "reactNative":
990
990
  case "react":
@@ -992,7 +992,7 @@ function ut(e) {
992
992
  return e;
993
993
  }
994
994
  }
995
- const pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Vn = ({
995
+ const bt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Wn = ({
996
996
  block: e,
997
997
  registeredComponents: t,
998
998
  model: n
@@ -1002,14 +1002,14 @@ const pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1002
1002
  if (!o)
1003
1003
  return null;
1004
1004
  const r = t[o];
1005
- if (!r || pt(r, n)) {
1005
+ if (!r || bt(r, n)) {
1006
1006
  console.warn(`
1007
1007
  Could not find a registered component named "${o}".
1008
1008
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
1009
1009
  return;
1010
1010
  } else
1011
1011
  return r;
1012
- }, Nn = ({
1012
+ }, Dn = ({
1013
1013
  block: e,
1014
1014
  context: t
1015
1015
  }) => {
@@ -1042,59 +1042,59 @@ const pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1042
1042
  },
1043
1043
  block: o
1044
1044
  }));
1045
- }, Wn = (e, t) => {
1045
+ }, xn = (e, t) => {
1046
1046
  var n;
1047
1047
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
1048
1048
  builderLinkComponent: t
1049
1049
  } : {};
1050
- }, Dn = (e, t, n) => {
1050
+ }, On = (e, t, n) => {
1051
1051
  var o;
1052
1052
  return (o = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && o.builderComponents ? {
1053
- builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !pt(s, n)))
1053
+ builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !bt(s, n)))
1054
1054
  } : {};
1055
- }, xn = (e, t) => {
1055
+ }, Un = (e, t) => {
1056
1056
  var n;
1057
1057
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
1058
1058
  builderBlock: t
1059
1059
  } : {};
1060
- }, Un = (e, t) => {
1060
+ }, Fn = (e, t) => {
1061
1061
  var n;
1062
1062
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
1063
1063
  builderContext: t
1064
1064
  } : {};
1065
- }, On = (e) => e.toString(), Fn = () => Promise.resolve().then(() => _n).then((e) => e.default).catch((e) => {
1065
+ }, Ln = (e) => e.toString(), Hn = () => Promise.resolve().then(() => to).then((e) => e.default).catch((e) => {
1066
1066
  throw console.error(
1067
1067
  "Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
1068
1068
  e
1069
1069
  ), e;
1070
- }), Ln = () => import("./block-wrapper-QV4wX7ge.js").then((e) => e.default).catch((e) => {
1070
+ }), Mn = () => import("./block-wrapper-8WuMQvKC.js").then((e) => e.default).catch((e) => {
1071
1071
  throw console.error(
1072
1072
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
1073
1073
  e
1074
1074
  ), e;
1075
- }), Hn = () => import("./component-ref-BVAWbmSM.js").then((e) => e.default).catch((e) => {
1075
+ }), zn = () => import("./component-ref-Why7x4bF.js").then((e) => e.default).catch((e) => {
1076
1076
  throw console.error(
1077
1077
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
1078
1078
  e
1079
1079
  ), e;
1080
- }), Mn = () => import("./repeated-block-u2S52SQe.js").then((e) => e.default).catch((e) => {
1080
+ }), jn = () => import("./repeated-block-uTpfjUj-.js").then((e) => e.default).catch((e) => {
1081
1081
  throw console.error(
1082
1082
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
1083
1083
  e
1084
1084
  ), e;
1085
- }), zn = () => import("./style-wrapper-OtcV4kQU.js").then((e) => e.default).catch((e) => {
1085
+ }), qn = () => import("./style-wrapper-HY1zLGB7.js").then((e) => e.default).catch((e) => {
1086
1086
  throw console.error(
1087
1087
  "Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
1088
1088
  e
1089
1089
  ), e;
1090
- }), qn = y({
1090
+ }), Kn = y({
1091
1091
  name: "block",
1092
1092
  components: {
1093
- StyleWrapper: Q(zn),
1094
- RepeatedBlock: Q(Mn),
1095
- ComponentRef: Q(Hn),
1096
- BlockWrapper: Q(Ln),
1097
- DynamicDiv: Q(Fn)
1093
+ StyleWrapper: Q(qn),
1094
+ RepeatedBlock: Q(jn),
1095
+ ComponentRef: Q(zn),
1096
+ BlockWrapper: Q(Mn),
1097
+ DynamicDiv: Q(Hn)
1098
1098
  },
1099
1099
  props: ["block", "context", "registeredComponents", "linkComponent"],
1100
1100
  data() {
@@ -1103,12 +1103,12 @@ const pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1103
1103
  value: null,
1104
1104
  update: !1
1105
1105
  },
1106
- generateKey: On
1106
+ generateKey: Ln
1107
1107
  };
1108
1108
  },
1109
1109
  mounted() {
1110
1110
  const e = this.processedBlock.id, t = this.processedBlock.animations;
1111
- t && e && Rn(
1111
+ t && e && Pn(
1112
1112
  t.map((n) => ({
1113
1113
  ...n,
1114
1114
  elementId: e
@@ -1119,14 +1119,14 @@ const pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1119
1119
  },
1120
1120
  computed: {
1121
1121
  repeatItem() {
1122
- return Nn({
1122
+ return Dn({
1123
1123
  block: this.block,
1124
1124
  context: this.context
1125
1125
  });
1126
1126
  },
1127
1127
  processedBlock() {
1128
1128
  var t;
1129
- return (t = this.block.repeat) != null && t.collection ? this.block : tn({
1129
+ return (t = this.block.repeat) != null && t.collection ? this.block : on({
1130
1130
  block: this.block,
1131
1131
  localState: this.context.localState,
1132
1132
  rootState: this.context.rootState,
@@ -1135,7 +1135,7 @@ const pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1135
1135
  });
1136
1136
  },
1137
1137
  blockComponent() {
1138
- return Vn({
1138
+ return Wn({
1139
1139
  block: this.processedBlock,
1140
1140
  registeredComponents: this.registeredComponents,
1141
1141
  model: this.context.model
@@ -1162,11 +1162,11 @@ const pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1162
1162
  blockChildren: this.processedBlock.children ?? [],
1163
1163
  componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
1164
1164
  componentOptions: {
1165
- ...Kt(this.processedBlock, this.context),
1166
- ...xn(this.blockComponent, this.processedBlock),
1167
- ...Un(this.blockComponent, this.context),
1168
- ...Wn(this.blockComponent, this.linkComponent),
1169
- ...Dn(
1165
+ ...Gt(this.processedBlock, this.context),
1166
+ ...Un(this.blockComponent, this.processedBlock),
1167
+ ...Fn(this.blockComponent, this.context),
1168
+ ...xn(this.blockComponent, this.linkComponent),
1169
+ ...On(
1170
1170
  this.blockComponent,
1171
1171
  this.registeredComponents,
1172
1172
  this.context.model
@@ -1182,7 +1182,7 @@ const pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1182
1182
  }
1183
1183
  }
1184
1184
  });
1185
- function jn(e, t, n, o, r, i) {
1185
+ function Jn(e, t, n, o, r, i) {
1186
1186
  var f;
1187
1187
  const s = k("StyleWrapper"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), p = k("RepeatedBlock");
1188
1188
  return e.canShowBlock ? (d(), h(w, { key: 0 }, [
@@ -1248,10 +1248,10 @@ function jn(e, t, n, o, r, i) {
1248
1248
  ], 64))
1249
1249
  ], 64)) : C("", !0);
1250
1250
  }
1251
- const mt = /* @__PURE__ */ v(qn, [["render", jn]]), os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1251
+ const gt = /* @__PURE__ */ v(Kn, [["render", Jn]]), ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1252
1252
  __proto__: null,
1253
- default: mt
1254
- }, Symbol.toStringTag, { value: "Module" })), Kn = y({
1253
+ default: gt
1254
+ }, Symbol.toStringTag, { value: "Module" })), Gn = y({
1255
1255
  name: "builder-blocks-wrapper",
1256
1256
  props: [
1257
1257
  "blocks",
@@ -1321,7 +1321,7 @@ const mt = /* @__PURE__ */ v(qn, [["render", jn]]), os = /* @__PURE__ */ Object.
1321
1321
  }
1322
1322
  }
1323
1323
  });
1324
- function Gn(e, t, n, o, r, i) {
1324
+ function Qn(e, t, n, o, r, i) {
1325
1325
  return d(), S(Y(e.BlocksWrapper), I({
1326
1326
  ref: "blocksWrapperRef",
1327
1327
  class: e.className + " component-5vz8uirn7sc",
@@ -1338,9 +1338,9 @@ function Gn(e, t, n, o, r, i) {
1338
1338
  _: 3
1339
1339
  }, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
1340
1340
  }
1341
- const Jn = /* @__PURE__ */ v(Kn, [["render", Gn], ["__scopeId", "data-v-82fc93d6"]]), Qn = y({
1341
+ const Yn = /* @__PURE__ */ v(Gn, [["render", Qn], ["__scopeId", "data-v-82fc93d6"]]), Xn = y({
1342
1342
  name: "builder-blocks",
1343
- components: { BlocksWrapper: Jn, Block: mt },
1343
+ components: { BlocksWrapper: Yn, Block: gt },
1344
1344
  props: [
1345
1345
  "blocks",
1346
1346
  "parent",
@@ -1354,10 +1354,10 @@ const Jn = /* @__PURE__ */ v(Kn, [["render", Gn], ["__scopeId", "data-v-82fc93d6
1354
1354
  ],
1355
1355
  inject: {
1356
1356
  builderContext: he.key,
1357
- componentsContext: Ye.key
1357
+ componentsContext: et.key
1358
1358
  }
1359
1359
  });
1360
- function Yn(e, t, n, o, r, i) {
1360
+ function Zn(e, t, n, o, r, i) {
1361
1361
  var a, u, p, f;
1362
1362
  const s = k("Block"), l = k("BlocksWrapper");
1363
1363
  return d(), S(l, {
@@ -1385,21 +1385,21 @@ function Yn(e, t, n, o, r, i) {
1385
1385
  _: 3
1386
1386
  }, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapperProps", "classNameProp", "BlocksWrapper"]);
1387
1387
  }
1388
- const q = /* @__PURE__ */ v(Qn, [["render", Yn]]), Xn = y({
1388
+ const j = /* @__PURE__ */ v(Xn, [["render", Zn]]), _n = y({
1389
1389
  name: "dynamic-div",
1390
1390
  props: []
1391
1391
  });
1392
- function Zn(e, t, n, o, r, i) {
1392
+ function eo(e, t, n, o, r, i) {
1393
1393
  return d(), h("div", null, [
1394
1394
  V(e.$slots, "default")
1395
1395
  ]);
1396
1396
  }
1397
- const ee = /* @__PURE__ */ v(Xn, [["render", Zn]]), _n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1397
+ const ee = /* @__PURE__ */ v(_n, [["render", eo]]), to = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1398
1398
  __proto__: null,
1399
1399
  default: ee
1400
1400
  }, Symbol.toStringTag, { value: "Module" })), ce = y({
1401
1401
  render() {
1402
- return je("style", {
1402
+ return Qe("style", {
1403
1403
  innerHTML: this.styles,
1404
1404
  "data-id": this.id,
1405
1405
  nonce: this.nonce
@@ -1407,7 +1407,7 @@ const ee = /* @__PURE__ */ v(Xn, [["render", Zn]]), _n = /* @__PURE__ */ Object.
1407
1407
  },
1408
1408
  name: "inlined-styles",
1409
1409
  props: ["styles", "id", "nonce"]
1410
- }), ht = {
1410
+ }), yt = {
1411
1411
  xsmall: {
1412
1412
  min: 0,
1413
1413
  default: 160,
@@ -1428,8 +1428,8 @@ const ee = /* @__PURE__ */ v(Xn, [["render", Zn]]), _n = /* @__PURE__ */ Object.
1428
1428
  default: 991,
1429
1429
  max: 1200
1430
1430
  }
1431
- }, rs = (e, t = ht) => `@media (max-width: ${t[e].max}px)`, eo = (e) => {
1432
- const t = Se(ht);
1431
+ }, as = (e, t = yt) => `@media (max-width: ${t[e].max}px)`, no = (e) => {
1432
+ const t = Te(yt);
1433
1433
  if (!e)
1434
1434
  return t;
1435
1435
  const {
@@ -1466,12 +1466,12 @@ const ee = /* @__PURE__ */ v(Xn, [["render", Zn]]), _n = /* @__PURE__ */ Object.
1466
1466
  min: l,
1467
1467
  default: l + 1
1468
1468
  }, t;
1469
- }, to = (e) => `builder-columns ${e}-breakpoints`, no = y({
1469
+ }, oo = (e) => `builder-columns ${e}-breakpoints`, ro = y({
1470
1470
  name: "builder-columns",
1471
1471
  components: {
1472
1472
  InlinedStyles: ce,
1473
- DynamicRenderer: Ce,
1474
- Blocks: q,
1473
+ DynamicRenderer: Ie,
1474
+ Blocks: j,
1475
1475
  DynamicDiv: ee
1476
1476
  },
1477
1477
  props: [
@@ -1485,7 +1485,7 @@ const ee = /* @__PURE__ */ v(Xn, [["render", Zn]]), _n = /* @__PURE__ */ Object.
1485
1485
  "builderComponents"
1486
1486
  ],
1487
1487
  data() {
1488
- return { TARGET: R, getColumnsClass: to };
1488
+ return { TARGET: R, getColumnsClass: oo };
1489
1489
  },
1490
1490
  computed: {
1491
1491
  gutterSize() {
@@ -1564,7 +1564,7 @@ const ee = /* @__PURE__ */ v(Xn, [["render", Zn]]), _n = /* @__PURE__ */ Object.
1564
1564
  },
1565
1565
  getWidthForBreakpointSize(e) {
1566
1566
  var n, o;
1567
- return eo(
1567
+ return no(
1568
1568
  ((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
1569
1569
  )[e].max;
1570
1570
  },
@@ -1602,12 +1602,12 @@ const ee = /* @__PURE__ */ v(Xn, [["render", Zn]]), _n = /* @__PURE__ */ Object.
1602
1602
  href: e.link
1603
1603
  } : {},
1604
1604
  [z()]: "builder-column",
1605
- style: ut(this.columnCssVars(t))
1605
+ style: ft(this.columnCssVars(t))
1606
1606
  };
1607
1607
  }
1608
1608
  }
1609
1609
  });
1610
- function oo(e, t, n, o, r, i) {
1610
+ function io(e, t, n, o, r, i) {
1611
1611
  var u;
1612
1612
  const s = k("InlinedStyles"), l = k("Blocks"), a = k("DynamicRenderer");
1613
1613
  return d(), h("div", I({
@@ -1643,32 +1643,32 @@ function oo(e, t, n, o, r, i) {
1643
1643
  }, 1032, ["TagName", "attributes"]))), 128))
1644
1644
  ], 16);
1645
1645
  }
1646
- const ro = /* @__PURE__ */ v(no, [["render", oo], ["__scopeId", "data-v-ab15749a"]]), io = y({
1646
+ const so = /* @__PURE__ */ v(ro, [["render", io], ["__scopeId", "data-v-ab15749a"]]), ao = y({
1647
1647
  name: "builder-fragment-component",
1648
1648
  props: []
1649
1649
  });
1650
- function so(e, t, n, o, r, i) {
1650
+ function lo(e, t, n, o, r, i) {
1651
1651
  return d(), h("span", null, [
1652
1652
  V(e.$slots, "default")
1653
1653
  ]);
1654
1654
  }
1655
- const ao = /* @__PURE__ */ v(io, [["render", so]]);
1656
- function He(e) {
1655
+ const co = /* @__PURE__ */ v(ao, [["render", lo]]);
1656
+ function je(e) {
1657
1657
  return e.replace(/http(s)?:/, "");
1658
1658
  }
1659
- function lo(e = "", t, n) {
1659
+ function uo(e = "", t, n) {
1660
1660
  const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
1661
1661
  return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
1662
1662
  }
1663
- function co(e, t) {
1663
+ function po(e, t) {
1664
1664
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1665
1665
  return e;
1666
1666
  if (t === "master")
1667
- return He(e);
1667
+ return je(e);
1668
1668
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1669
1669
  if (n) {
1670
1670
  const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
1671
- return He(`${o[0]}_${i}${r}`);
1671
+ return je(`${o[0]}_${i}${r}`);
1672
1672
  }
1673
1673
  return null;
1674
1674
  }
@@ -1679,11 +1679,11 @@ function te(e) {
1679
1679
  if (e.match(/builder\.io/)) {
1680
1680
  let n = e;
1681
1681
  const o = Number(e.split("?width=")[1]);
1682
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${lo(e, "width", r)} ${r}w`).concat([n]).join(", ");
1682
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${uo(e, "width", r)} ${r}w`).concat([n]).join(", ");
1683
1683
  }
1684
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [co(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1684
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [po(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1685
1685
  }
1686
- const uo = y({
1686
+ const mo = y({
1687
1687
  name: "builder-image",
1688
1688
  props: [
1689
1689
  "lazy",
@@ -1737,21 +1737,21 @@ const uo = y({
1737
1737
  return this.aspectRatio ? e : void 0;
1738
1738
  }
1739
1739
  }
1740
- }), po = ["srcset", "sizes"], mo = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"], ho = {
1740
+ }), ho = ["srcset", "sizes"], fo = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"], bo = {
1741
1741
  key: 2,
1742
1742
  class: "div-t43jfuqn6g-2"
1743
1743
  };
1744
- function fo(e, t, n, o, r, i) {
1744
+ function go(e, t, n, o, r, i) {
1745
1745
  var s, l, a, u, p, f;
1746
1746
  return d(), h(w, null, [
1747
- j("picture", null, [
1747
+ q("picture", null, [
1748
1748
  e.webpSrcSet ? (d(), h("source", {
1749
1749
  key: 0,
1750
1750
  type: "image/webp",
1751
1751
  srcset: e.webpSrcSet,
1752
1752
  sizes: e.sizesToUse
1753
- }, null, 8, po)) : C("", !0),
1754
- j("img", {
1753
+ }, null, 8, ho)) : C("", !0),
1754
+ q("img", {
1755
1755
  loading: e.highPriority ? "eager" : "lazy",
1756
1756
  fetchpriority: e.highPriority ? "high" : "auto",
1757
1757
  alt: e.altText,
@@ -1768,7 +1768,7 @@ function fo(e, t, n, o, r, i) {
1768
1768
  src: e.image,
1769
1769
  srcset: e.srcSetToUse,
1770
1770
  sizes: e.sizesToUse
1771
- }, null, 14, mo)
1771
+ }, null, 14, fo)
1772
1772
  ]),
1773
1773
  e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (d(), h("div", {
1774
1774
  key: 0,
@@ -1778,19 +1778,19 @@ function fo(e, t, n, o, r, i) {
1778
1778
  })
1779
1779
  }, null, 4)) : C("", !0),
1780
1780
  (u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? V(e.$slots, "default", { key: 1 }, void 0, !0) : C("", !0),
1781
- !e.fitContent && ((f = (p = e.builderBlock) == null ? void 0 : p.children) != null && f.length) ? (d(), h("div", ho, [
1781
+ !e.fitContent && ((f = (p = e.builderBlock) == null ? void 0 : p.children) != null && f.length) ? (d(), h("div", bo, [
1782
1782
  V(e.$slots, "default", {}, void 0, !0)
1783
1783
  ])) : C("", !0)
1784
1784
  ], 64);
1785
1785
  }
1786
- const bo = /* @__PURE__ */ v(uo, [["render", fo], ["__scopeId", "data-v-17b592cd"]]), go = y({
1786
+ const yo = /* @__PURE__ */ v(mo, [["render", go], ["__scopeId", "data-v-17b592cd"]]), vo = y({
1787
1787
  name: "builder-section-component",
1788
1788
  props: ["attributes", "maxWidth"],
1789
1789
  data() {
1790
1790
  return { filterAttrs: N };
1791
1791
  }
1792
1792
  });
1793
- function yo(e, t, n, o, r, i) {
1793
+ function So(e, t, n, o, r, i) {
1794
1794
  return d(), h("section", I({
1795
1795
  style: {
1796
1796
  width: "100%",
@@ -1804,12 +1804,12 @@ function yo(e, t, n, o, r, i) {
1804
1804
  marginLeft: "auto",
1805
1805
  marginRight: "auto"
1806
1806
  }
1807
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
1807
+ }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
1808
1808
  V(e.$slots, "default")
1809
1809
  ], 16);
1810
1810
  }
1811
- const vo = /* @__PURE__ */ v(go, [["render", yo]]);
1812
- function So(e, t, n, o) {
1811
+ const ko = /* @__PURE__ */ v(vo, [["render", So]]);
1812
+ function Co(e, t, n, o) {
1813
1813
  function r(u) {
1814
1814
  return typeof u == "string";
1815
1815
  }
@@ -1866,7 +1866,7 @@ function So(e, t, n, o) {
1866
1866
  }, a = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
1867
1867
  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));
1868
1868
  }
1869
- const ko = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
1869
+ const To = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
1870
1870
  if (!navigator.cookieEnabled) {
1871
1871
  return;
1872
1872
  }
@@ -1911,7 +1911,7 @@ const ko = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
1911
1911
  thisScript.remove();
1912
1912
  }
1913
1913
  }
1914
- }`, Co = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
1914
+ }`, wo = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
1915
1915
  function isString(val) {
1916
1916
  return typeof val === 'string';
1917
1917
  }
@@ -1989,7 +1989,7 @@ const ko = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
1989
1989
  return item.query.every(filter => {
1990
1990
  return objectMatchesQuery(userAttributes, filter);
1991
1991
  });
1992
- }`, To = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
1992
+ }`, Io = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
1993
1993
  function getCookie(name) {
1994
1994
  const nameEQ = name + '=';
1995
1995
  const ca = document.cookie.split(';');
@@ -2027,11 +2027,11 @@ const ko = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
2027
2027
  visibilityStylesEl.innerHTML = newStyleStr;
2028
2028
  }
2029
2029
  }
2030
- }`, ne = "default", wo = "filterWithCustomTargeting", ft = "builderIoPersonalization", bt = "updateVisibilityStylesScript", gt = ["react", "vue", "svelte", "qwik"], yt = ["vue", "svelte", "qwik"];
2031
- function Io(e, t) {
2032
- return !(e && e.length > 0) || !t ? !1 : yt.includes(R) ? !0 : !E();
2030
+ }`, ne = "default", qe = "filterWithCustomTargeting", ye = "builderIoPersonalization", ve = "updateVisibilityStylesScript", $o = "PersonalizationContainer", vt = ["react", "vue", "svelte", "qwik"], St = ["vue", "svelte", "qwik"];
2031
+ function Ro(e, t) {
2032
+ return !(e && e.length > 0) || !t ? !1 : St.includes(R) ? !0 : !E();
2033
2033
  }
2034
- function $o({
2034
+ function Eo({
2035
2035
  variants: e,
2036
2036
  previewingIndex: t,
2037
2037
  isHydrated: n,
@@ -2069,11 +2069,22 @@ function $o({
2069
2069
  }
2070
2070
  return i;
2071
2071
  }
2072
- const Ro = () => `
2073
- window.${wo} = ${Co}
2074
- window.${ft} = ${ko}
2075
- window.${bt} = ${To}
2076
- `, vt = R === "react", Eo = (e, t, n) => `window.${ft}(${JSON.stringify(e)}, "${t}", ${vt}${n ? `, "${n}"` : ""})`, Po = (e, t, n) => `window.${bt}(${JSON.stringify(e)}, "${t}", ${vt}${n ? `, "${n}"` : ""})`, de = {
2072
+ const Se = (e) => {
2073
+ var t;
2074
+ return Array.isArray(e) ? e.some(Se) : !e || typeof e != "object" ? !1 : ((t = e.component) == null ? void 0 : t.name) === $o ? !0 : Object.values(e).some(Se);
2075
+ }, Po = (e) => Se(e), Ao = () => `
2076
+ (function() {
2077
+ if (!window.${qe}) {
2078
+ window.${qe} = ${wo};
2079
+ }
2080
+ if (!window.${ye}) {
2081
+ window.${ye} = ${To};
2082
+ }
2083
+ if (!window.${ve}) {
2084
+ window.${ve} = ${Io};
2085
+ }
2086
+ })();
2087
+ `, kt = R === "react", Bo = (e, t, n) => `window.${ye}(${JSON.stringify(e)}, "${t}", ${kt}${n ? `, "${n}"` : ""})`, Vo = (e, t, n) => `window.${ve}(${JSON.stringify(e)}, "${t}", ${kt}${n ? `, "${n}"` : ""})`, de = {
2077
2088
  "@type": "@builder.io/sdk:Element",
2078
2089
  layerName: "Accordion item title",
2079
2090
  responsiveStyles: {
@@ -2133,7 +2144,7 @@ const Ro = () => `
2133
2144
  }
2134
2145
  }
2135
2146
  }]
2136
- }, Ao = {
2147
+ }, No = {
2137
2148
  name: "Builder:Accordion",
2138
2149
  canHaveChildren: !0,
2139
2150
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -2197,9 +2208,9 @@ const Ro = () => `
2197
2208
  builderComponents: !0,
2198
2209
  builderLinkComponent: !0
2199
2210
  }
2200
- }, Bo = (e) => e.toString(), Vo = y({
2211
+ }, Wo = (e) => e.toString(), Do = y({
2201
2212
  name: "builder-accordion",
2202
- components: { Blocks: q },
2213
+ components: { Blocks: j },
2203
2214
  props: [
2204
2215
  "grid",
2205
2216
  "oneAtATime",
@@ -2211,7 +2222,7 @@ const Ro = () => `
2211
2222
  "builderLinkComponent"
2212
2223
  ],
2213
2224
  data() {
2214
- return { open: [], convertOrderNumberToString: Bo };
2225
+ return { open: [], convertOrderNumberToString: Wo };
2215
2226
  },
2216
2227
  computed: {
2217
2228
  onlyOneAtATime() {
@@ -2292,15 +2303,15 @@ const Ro = () => `
2292
2303
  this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
2293
2304
  }
2294
2305
  }
2295
- }), No = ["data-index", "onClick"];
2296
- function Wo(e, t, n, o, r, i) {
2306
+ }), xo = ["data-index", "onClick"];
2307
+ function Oo(e, t, n, o, r, i) {
2297
2308
  const s = k("Blocks");
2298
2309
  return d(), h("div", {
2299
2310
  class: "builder-accordion",
2300
2311
  style: M(e.accordionStyles)
2301
2312
  }, [
2302
2313
  (d(!0), h(w, null, F(e.items, (l, a) => (d(), h(w, { key: a }, [
2303
- j("div", {
2314
+ q("div", {
2304
2315
  class: Z(e.getAccordionTitleClassName(a)),
2305
2316
  style: M({
2306
2317
  ...e.accordionTitleStyles,
@@ -2320,7 +2331,7 @@ function Wo(e, t, n, o, r, i) {
2320
2331
  registeredComponents: e.builderComponents,
2321
2332
  linkComponent: e.builderLinkComponent
2322
2333
  }, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
2323
- ], 14, No),
2334
+ ], 14, xo),
2324
2335
  e.open.includes(a) ? (d(), h("div", {
2325
2336
  key: 0,
2326
2337
  class: Z(e.getAccordionDetailClassName(a)),
@@ -2338,7 +2349,7 @@ function Wo(e, t, n, o, r, i) {
2338
2349
  ], 64))), 128))
2339
2350
  ], 4);
2340
2351
  }
2341
- const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
2352
+ const Uo = /* @__PURE__ */ v(Do, [["render", Oo]]), Fo = {
2342
2353
  name: "Core:Button",
2343
2354
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
2344
2355
  defaultStyles: {
@@ -2374,7 +2385,7 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
2374
2385
  shouldReceiveBuilderProps: {
2375
2386
  builderLinkComponent: !0
2376
2387
  }
2377
- }, Uo = {
2388
+ }, Lo = {
2378
2389
  // TODO: ways to statically preprocess JSON for references, functions, etc
2379
2390
  name: "Columns",
2380
2391
  isRSC: !0,
@@ -2581,13 +2592,13 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
2581
2592
  builderComponents: !0,
2582
2593
  builderLinkComponent: !0
2583
2594
  }
2584
- }, Oo = {
2595
+ }, Ho = {
2585
2596
  name: "Fragment",
2586
2597
  static: !0,
2587
2598
  hidden: !0,
2588
2599
  canHaveChildren: !0,
2589
2600
  noWrap: !0
2590
- }, Ee = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], Fo = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], Lo = {
2601
+ }, Be = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], Mo = ["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"], zo = {
2591
2602
  name: "Image",
2592
2603
  static: !0,
2593
2604
  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",
@@ -2602,7 +2613,7 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
2602
2613
  name: "image",
2603
2614
  type: "file",
2604
2615
  bubble: !0,
2605
- allowedFileTypes: Ee,
2616
+ allowedFileTypes: Be,
2606
2617
  required: !0,
2607
2618
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
2608
2619
  onChange: (e) => {
@@ -2700,7 +2711,7 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
2700
2711
  shouldReceiveBuilderProps: {
2701
2712
  builderBlock: !0
2702
2713
  }
2703
- }, Ho = {
2714
+ }, jo = {
2704
2715
  name: "PersonalizationContainer",
2705
2716
  shouldReceiveBuilderProps: {
2706
2717
  builderBlock: !0,
@@ -2736,9 +2747,9 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
2736
2747
  defaultValue: []
2737
2748
  }]
2738
2749
  }]
2739
- }, Pe = y({
2750
+ }, Ve = y({
2740
2751
  render() {
2741
- return je("script", {
2752
+ return Qe("script", {
2742
2753
  innerHTML: this.scriptStr,
2743
2754
  "data-id": this.id,
2744
2755
  nonce: this.nonce
@@ -2746,12 +2757,12 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
2746
2757
  },
2747
2758
  name: "inlined-script",
2748
2759
  props: ["scriptStr", "id", "nonce"]
2749
- }), Mo = y({
2760
+ }), qo = y({
2750
2761
  name: "builder-personalization-container",
2751
2762
  components: {
2752
- Blocks: q,
2763
+ Blocks: j,
2753
2764
  InlinedStyles: ce,
2754
- InlinedScript: Pe
2765
+ InlinedScript: Ve
2755
2766
  },
2756
2767
  props: [
2757
2768
  "builderContext",
@@ -2765,25 +2776,25 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
2765
2776
  var e, t, n, o, r, i, s;
2766
2777
  return {
2767
2778
  userAttributes: ae.getUserAttributes(),
2768
- scriptStr: Eo(
2779
+ scriptStr: Bo(
2769
2780
  this.variants,
2770
2781
  ((e = this.builderBlock) == null ? void 0 : e.id) || "none",
2771
2782
  (n = (t = this.builderContext) == null ? void 0 : t.rootState) == null ? void 0 : n.locale
2772
2783
  ),
2773
- updateVisibilityStylesScript: Po(
2784
+ updateVisibilityStylesScript: Vo(
2774
2785
  this.variants,
2775
2786
  ((o = this.builderBlock) == null ? void 0 : o.id) || "none",
2776
2787
  (i = (r = this.builderContext) == null ? void 0 : r.rootState) == null ? void 0 : i.locale
2777
2788
  ),
2778
2789
  unsubscribers: [],
2779
- shouldRenderVariants: Io(
2790
+ shouldRenderVariants: Ro(
2780
2791
  this.variants,
2781
2792
  K((s = this.builderContext) == null ? void 0 : s.canTrack)
2782
2793
  ),
2783
2794
  shouldResetVariants: !1,
2784
2795
  TARGET: R,
2785
2796
  DEFAULT_INDEX: ne,
2786
- SDKS_REQUIRING_RESET_APPROACH: yt
2797
+ SDKS_REQUIRING_RESET_APPROACH: St
2787
2798
  };
2788
2799
  },
2789
2800
  mounted() {
@@ -2797,7 +2808,7 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
2797
2808
  fireImmediately: R === "qwik"
2798
2809
  }
2799
2810
  );
2800
- if (!(A() || Te())) {
2811
+ if (!(A() || $e())) {
2801
2812
  const n = this.filteredVariants[0];
2802
2813
  this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
2803
2814
  new CustomEvent("builder.variantLoaded", {
@@ -2838,7 +2849,7 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
2838
2849
  filteredVariants() {
2839
2850
  return (this.variants || []).filter((e) => {
2840
2851
  var t, n, o, r;
2841
- return So(
2852
+ return Co(
2842
2853
  {
2843
2854
  ...(n = (t = this.builderContext) == null ? void 0 : t.rootState) != null && n.locale ? {
2844
2855
  locale: (r = (o = this.builderContext) == null ? void 0 : o.rootState) == null ? void 0 : r.locale
@@ -2853,7 +2864,7 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
2853
2864
  },
2854
2865
  blocksToRender() {
2855
2866
  var e;
2856
- return $o({
2867
+ return Eo({
2857
2868
  variants: this.variants,
2858
2869
  fallbackBlocks: (e = this.builderBlock) == null ? void 0 : e.children,
2859
2870
  isHydrated: this.shouldResetVariants,
@@ -2871,8 +2882,8 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
2871
2882
  }
2872
2883
  }
2873
2884
  });
2874
- function zo(e, t, n, o, r, i) {
2875
- var u, p, f, c, m, b, g, P, U, B;
2885
+ function Ko(e, t, n, o, r, i) {
2886
+ var u, p, f, c, m, b, g, P, O, B;
2876
2887
  const s = k("Blocks"), l = k("InlinedStyles"), a = k("InlinedScript");
2877
2888
  return d(), h("div", I({ ref: "rootRef" }, e.attrs), [
2878
2889
  e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), S(s, {
@@ -2900,11 +2911,11 @@ function zo(e, t, n, o, r, i) {
2900
2911
  id: `variants-visibility-script-${(g = e.builderBlock) == null ? void 0 : g.id}`
2901
2912
  }, null, 8, ["nonce", "scriptStr", "id"]),
2902
2913
  (d(!0), h(w, null, F(e.variants, (T, W) => {
2903
- var G, J, D, H;
2914
+ var J, G, D, H;
2904
2915
  return d(), S(s, {
2905
- key: `${(G = e.builderBlock) == null ? void 0 : G.id}-${W}`,
2916
+ key: `${(J = e.builderBlock) == null ? void 0 : J.id}-${W}`,
2906
2917
  BlocksWrapperProps: {
2907
- ...(J = e.builderContext) == null ? void 0 : J.BlocksWrapperProps,
2918
+ ...(G = e.builderContext) == null ? void 0 : G.BlocksWrapperProps,
2908
2919
  "aria-hidden": !0,
2909
2920
  hidden: !0,
2910
2921
  "data-variant-id": `${(D = e.builderBlock) == null ? void 0 : D.id}-${W}`
@@ -2916,12 +2927,12 @@ function zo(e, t, n, o, r, i) {
2916
2927
  registeredComponents: e.builderComponents
2917
2928
  }, {
2918
2929
  default: x(() => {
2919
- var Be, Ve;
2930
+ var We, De;
2920
2931
  return [
2921
2932
  $(a, {
2922
- nonce: ((Be = e.builderContext) == null ? void 0 : Be.nonce) || "",
2933
+ nonce: ((We = e.builderContext) == null ? void 0 : We.nonce) || "",
2923
2934
  scriptStr: e.scriptStr,
2924
- id: `variants-script-${(Ve = e.builderBlock) == null ? void 0 : Ve.id}-${W}`
2935
+ id: `variants-script-${(De = e.builderBlock) == null ? void 0 : De.id}-${W}`
2925
2936
  }, null, 8, ["nonce", "scriptStr", "id"])
2926
2937
  ];
2927
2938
  }),
@@ -2936,7 +2947,7 @@ function zo(e, t, n, o, r, i) {
2936
2947
  context: e.builderContext,
2937
2948
  registeredComponents: e.builderComponents,
2938
2949
  BlocksWrapperProps: {
2939
- ...(U = e.builderContext) == null ? void 0 : U.BlocksWrapperProps,
2950
+ ...(O = e.builderContext) == null ? void 0 : O.BlocksWrapperProps,
2940
2951
  "data-variant-id": `${(B = e.builderBlock) == null ? void 0 : B.id}-${e.blocksToRender.index}`
2941
2952
  }
2942
2953
  }, {
@@ -2956,7 +2967,7 @@ function zo(e, t, n, o, r, i) {
2956
2967
  ], 64)) : C("", !0)
2957
2968
  ], 16);
2958
2969
  }
2959
- const qo = /* @__PURE__ */ v(Mo, [["render", zo]]), jo = {
2970
+ const Jo = /* @__PURE__ */ v(qo, [["render", Ko]]), Go = {
2960
2971
  name: "Core:Section",
2961
2972
  static: !0,
2962
2973
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -2995,7 +3006,7 @@ const qo = /* @__PURE__ */ v(Mo, [["render", zo]]), jo = {
2995
3006
  }
2996
3007
  }
2997
3008
  }]
2998
- }, Ko = {
3009
+ }, Qo = {
2999
3010
  name: "Slot",
3000
3011
  isRSC: !0,
3001
3012
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -3012,12 +3023,12 @@ const qo = /* @__PURE__ */ v(Mo, [["render", zo]]), jo = {
3012
3023
  builderContext: !0,
3013
3024
  builderComponents: !0
3014
3025
  }
3015
- }, Go = y({
3026
+ }, Yo = y({
3016
3027
  name: "builder-slot",
3017
- components: { Blocks: q },
3028
+ components: { Blocks: j },
3018
3029
  props: ["builderContext", "name", "builderComponents"]
3019
3030
  });
3020
- function Jo(e, t, n, o, r, i) {
3031
+ function Xo(e, t, n, o, r, i) {
3021
3032
  var l, a, u;
3022
3033
  const s = k("Blocks");
3023
3034
  return d(), h("div", I(
@@ -3037,7 +3048,7 @@ function Jo(e, t, n, o, r, i) {
3037
3048
  }, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
3038
3049
  ], 16);
3039
3050
  }
3040
- const Qo = /* @__PURE__ */ v(Go, [["render", Jo]]), Yo = {
3051
+ const Zo = /* @__PURE__ */ v(Yo, [["render", Xo]]), _o = {
3041
3052
  name: "Symbol",
3042
3053
  noWrap: !0,
3043
3054
  static: !0,
@@ -3114,7 +3125,7 @@ const Qo = /* @__PURE__ */ v(Go, [["render", Jo]]), Yo = {
3114
3125
  text: "New tab content "
3115
3126
  }
3116
3127
  }
3117
- }, Xo = {
3128
+ }, er = {
3118
3129
  name: "Builder: Tabs",
3119
3130
  inputs: [{
3120
3131
  name: "tabs",
@@ -3217,9 +3228,9 @@ const Qo = /* @__PURE__ */ v(Go, [["render", Jo]]), Yo = {
3217
3228
  builderComponents: !0,
3218
3229
  builderLinkComponent: !0
3219
3230
  }
3220
- }, Zo = y({
3231
+ }, tr = y({
3221
3232
  name: "builder-tabs",
3222
- components: { Blocks: q },
3233
+ components: { Blocks: j },
3223
3234
  props: [
3224
3235
  "defaultActiveTab",
3225
3236
  "tabs",
@@ -3245,11 +3256,11 @@ const Qo = /* @__PURE__ */ v(Go, [["render", Jo]]), Yo = {
3245
3256
  e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
3246
3257
  }
3247
3258
  }
3248
- }), _o = ["onClick"], er = { key: 0 };
3249
- function tr(e, t, n, o, r, i) {
3259
+ }), nr = ["onClick"], or = { key: 0 };
3260
+ function rr(e, t, n, o, r, i) {
3250
3261
  const s = k("Blocks");
3251
3262
  return d(), h("div", null, [
3252
- j("div", {
3263
+ q("div", {
3253
3264
  class: "builder-tabs-wrap",
3254
3265
  style: M({
3255
3266
  display: "flex",
@@ -3272,9 +3283,9 @@ function tr(e, t, n, o, r, i) {
3272
3283
  registeredComponents: e.builderComponents,
3273
3284
  linkComponent: e.builderLinkComponent
3274
3285
  }, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
3275
- ], 14, _o))), 128))
3286
+ ], 14, nr))), 128))
3276
3287
  ], 4),
3277
- e.activeTabContent(e.activeTab) ? (d(), h("div", er, [
3288
+ e.activeTabContent(e.activeTab) ? (d(), h("div", or, [
3278
3289
  $(s, {
3279
3290
  parent: e.builderBlock.id,
3280
3291
  path: `tabs.${e.activeTab}.content`,
@@ -3286,7 +3297,7 @@ function tr(e, t, n, o, r, i) {
3286
3297
  ])) : C("", !0)
3287
3298
  ]);
3288
3299
  }
3289
- const nr = /* @__PURE__ */ v(Zo, [["render", tr]]), or = {
3300
+ const ir = /* @__PURE__ */ v(tr, [["render", rr]]), sr = {
3290
3301
  shouldReceiveBuilderProps: {},
3291
3302
  name: "Text",
3292
3303
  static: !0,
@@ -3304,11 +3315,11 @@ const nr = /* @__PURE__ */ v(Zo, [["render", tr]]), or = {
3304
3315
  height: "auto",
3305
3316
  textAlign: "center"
3306
3317
  }
3307
- }, rr = y({
3318
+ }, ar = y({
3308
3319
  name: "builder-text",
3309
3320
  props: ["text"]
3310
- }), ir = ["innerHTML"];
3311
- function sr(e, t, n, o, r, i) {
3321
+ }), lr = ["innerHTML"];
3322
+ function cr(e, t, n, o, r, i) {
3312
3323
  var s;
3313
3324
  return d(), h("div", {
3314
3325
  class: "builder-text",
@@ -3316,9 +3327,9 @@ function sr(e, t, n, o, r, i) {
3316
3327
  style: {
3317
3328
  outline: "none"
3318
3329
  }
3319
- }, null, 8, ir);
3330
+ }, null, 8, lr);
3320
3331
  }
3321
- const ar = /* @__PURE__ */ v(rr, [["render", sr]]), lr = {
3332
+ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
3322
3333
  name: "Custom Code",
3323
3334
  static: !0,
3324
3335
  requiredPermissions: ["editCode"],
@@ -3340,7 +3351,7 @@ const ar = /* @__PURE__ */ v(rr, [["render", sr]]), lr = {
3340
3351
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
3341
3352
  advanced: !0
3342
3353
  }]
3343
- }, cr = y({
3354
+ }, pr = y({
3344
3355
  name: "builder-custom-code",
3345
3356
  props: ["code", "replaceNodes"],
3346
3357
  data() {
@@ -3399,15 +3410,15 @@ const ar = /* @__PURE__ */ v(rr, [["render", sr]]), lr = {
3399
3410
  }
3400
3411
  }
3401
3412
  }
3402
- }), dr = ["innerHTML"];
3403
- function ur(e, t, n, o, r, i) {
3413
+ }), mr = ["innerHTML"];
3414
+ function hr(e, t, n, o, r, i) {
3404
3415
  return d(), h("div", {
3405
3416
  ref: "elementRef",
3406
3417
  class: Z("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
3407
3418
  innerHTML: e.code
3408
- }, null, 10, dr);
3419
+ }, null, 10, mr);
3409
3420
  }
3410
- const pr = /* @__PURE__ */ v(cr, [["render", ur]]), mr = {
3421
+ const fr = /* @__PURE__ */ v(pr, [["render", hr]]), br = {
3411
3422
  name: "Embed",
3412
3423
  static: !0,
3413
3424
  inputs: [{
@@ -3422,7 +3433,7 @@ const pr = /* @__PURE__ */ v(cr, [["render", ur]]), mr = {
3422
3433
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
3423
3434
  hideFromUI: !0
3424
3435
  }]
3425
- }, hr = ["text/javascript", "application/javascript", "application/ecmascript"], fr = (e) => hr.includes(e.type), br = y({
3436
+ }, gr = ["text/javascript", "application/javascript", "application/ecmascript"], yr = (e) => gr.includes(e.type), vr = y({
3426
3437
  name: "builder-embed",
3427
3438
  props: ["content"],
3428
3439
  data() {
@@ -3455,7 +3466,7 @@ const pr = /* @__PURE__ */ v(cr, [["render", ur]]), mr = {
3455
3466
  this.scriptsInserted.push(n.src);
3456
3467
  const o = document.createElement("script");
3457
3468
  o.async = !0, o.src = n.src, document.head.appendChild(o);
3458
- } else if (fr(n) && !this.scriptsRun.includes(n.innerText))
3469
+ } else if (yr(n) && !this.scriptsRun.includes(n.innerText))
3459
3470
  try {
3460
3471
  this.scriptsRun.push(n.innerText), new Function(n.innerText)();
3461
3472
  } catch (o) {
@@ -3464,15 +3475,15 @@ const pr = /* @__PURE__ */ v(cr, [["render", ur]]), mr = {
3464
3475
  }
3465
3476
  }
3466
3477
  }
3467
- }), gr = ["innerHTML"];
3468
- function yr(e, t, n, o, r, i) {
3478
+ }), Sr = ["innerHTML"];
3479
+ function kr(e, t, n, o, r, i) {
3469
3480
  return d(), h("div", {
3470
3481
  class: "builder-embed",
3471
3482
  ref: "elem",
3472
3483
  innerHTML: e.content
3473
- }, null, 8, gr);
3484
+ }, null, 8, Sr);
3474
3485
  }
3475
- const vr = /* @__PURE__ */ v(br, [["render", yr]]), Sr = {
3486
+ const Cr = /* @__PURE__ */ v(vr, [["render", kr]]), Tr = {
3476
3487
  name: "Form:Form",
3477
3488
  // editableTags: ['builder-form-error']
3478
3489
  defaults: {
@@ -3709,12 +3720,12 @@ const vr = /* @__PURE__ */ v(br, [["render", yr]]), Sr = {
3709
3720
  builderComponents: !0,
3710
3721
  builderLinkComponent: !0
3711
3722
  }
3712
- }, kr = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Cr = () => {
3723
+ }, wr = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Ir = () => {
3713
3724
  const e = process.env.NODE_ENV || "production";
3714
- return kr.includes(e) ? e : "production";
3715
- }, Tr = y({
3725
+ return wr.includes(e) ? e : "production";
3726
+ }, $r = y({
3716
3727
  name: "builder-form-component",
3717
- components: { Blocks: q },
3728
+ components: { Blocks: j },
3718
3729
  props: [
3719
3730
  "builderContext",
3720
3731
  "previewState",
@@ -3805,7 +3816,7 @@ const vr = /* @__PURE__ */ v(br, [["render", yr]]), Sr = {
3805
3816
  else {
3806
3817
  const c = {};
3807
3818
  Array.from(l).forEach(({ value: m, key: b }) => {
3808
- Ke(c, b, m);
3819
+ Ye(c, b, m);
3809
3820
  }), i = JSON.stringify(c);
3810
3821
  }
3811
3822
  a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
@@ -3823,10 +3834,10 @@ const vr = /* @__PURE__ */ v(br, [["render", yr]]), Sr = {
3823
3834
  });
3824
3835
  return;
3825
3836
  }
3826
- const p = `${Cr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
3837
+ const p = `${Ir() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
3827
3838
  this.sendSubmissionsToEmail || ""
3828
3839
  )}&name=${encodeURIComponent(this.name || "")}`, f = this.sendSubmissionsTo === "email" ? p : this.action;
3829
- Qe(f), fetch(f, {
3840
+ _e(f), fetch(f, {
3830
3841
  body: i,
3831
3842
  headers: r,
3832
3843
  method: this.method || "post"
@@ -3836,32 +3847,32 @@ const vr = /* @__PURE__ */ v(br, [["render", yr]]), Sr = {
3836
3847
  let m;
3837
3848
  const b = c.headers.get("content-type");
3838
3849
  if (b && b.indexOf("application/json") !== -1 ? m = await c.json() : m = await c.text(), !c.ok) {
3839
- const U = new CustomEvent("submit:error", {
3850
+ const O = new CustomEvent("submit:error", {
3840
3851
  detail: {
3841
3852
  error: m,
3842
3853
  status: c.status
3843
3854
  }
3844
3855
  });
3845
3856
  if ((g = this.$refs.formRef) != null && g.nativeElement && ((P = this.$refs.formRef) == null || P.nativeElement.dispatchEvent(
3846
- U
3847
- ), U.defaultPrevented))
3857
+ O
3858
+ ), O.defaultPrevented))
3848
3859
  return;
3849
3860
  this.responseData = m, this.formState = "error";
3850
- let B = this.errorMessagePath ? Xe(m, this.errorMessagePath) : m.message || m.error || m;
3861
+ let B = this.errorMessagePath ? tt(m, this.errorMessagePath) : m.message || m.error || m;
3851
3862
  typeof B != "string" && (B = JSON.stringify(B)), this.formErrorMessage = B, this.mergeNewRootState({
3852
3863
  formErrorMessage: B
3853
3864
  });
3854
3865
  return;
3855
3866
  }
3856
3867
  if (this.responseData = m, this.formState = c.ok ? "success" : "error", c.ok) {
3857
- const U = new CustomEvent("submit:success", {
3868
+ const O = new CustomEvent("submit:success", {
3858
3869
  detail: {
3859
3870
  res: c,
3860
3871
  body: m
3861
3872
  }
3862
3873
  });
3863
3874
  if (this.$refs.formRef) {
3864
- if (this.$refs.formRef.dispatchEvent(U), U.defaultPrevented)
3875
+ if (this.$refs.formRef.dispatchEvent(O), O.defaultPrevented)
3865
3876
  return;
3866
3877
  this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
3867
3878
  }
@@ -3889,11 +3900,11 @@ const vr = /* @__PURE__ */ v(br, [["render", yr]]), Sr = {
3889
3900
  }
3890
3901
  }
3891
3902
  }
3892
- }), wr = ["validate", "action", "method", "name"], Ir = {
3903
+ }), Rr = ["validate", "action", "method", "name"], Er = {
3893
3904
  key: 2,
3894
3905
  class: "builder-form-error-text pre-2oa2wtipkzk"
3895
3906
  };
3896
- function $r(e, t, n, o, r, i) {
3907
+ function Pr(e, t, n, o, r, i) {
3897
3908
  const s = k("Blocks");
3898
3909
  return d(), h("form", I({
3899
3910
  validate: e.validate,
@@ -3902,7 +3913,7 @@ function $r(e, t, n, o, r, i) {
3902
3913
  method: e.method,
3903
3914
  name: e.name,
3904
3915
  onSubmit: t[0] || (t[0] = async (l) => e.onSubmit(l))
3905
- }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3916
+ }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3906
3917
  V(e.$slots, "default", {}, void 0, !0),
3907
3918
  e.submissionState() === "error" ? (d(), S(s, {
3908
3919
  key: 0,
@@ -3916,16 +3927,16 @@ function $r(e, t, n, o, r, i) {
3916
3927
  blocks: e.sendingMessage,
3917
3928
  context: e.builderContext
3918
3929
  }, null, 8, ["blocks", "context"])) : C("", !0),
3919
- e.submissionState() === "error" && e.responseData ? (d(), h("pre", Ir, le(e.errorResponse(e.responseData)), 1)) : C("", !0),
3930
+ e.submissionState() === "error" && e.responseData ? (d(), h("pre", Er, le(e.errorResponse(e.responseData)), 1)) : C("", !0),
3920
3931
  e.submissionState() === "success" ? (d(), S(s, {
3921
3932
  key: 3,
3922
3933
  path: "successMessage",
3923
3934
  blocks: e.successMessage,
3924
3935
  context: e.builderContext
3925
3936
  }, null, 8, ["blocks", "context"])) : C("", !0)
3926
- ], 16, wr);
3937
+ ], 16, Rr);
3927
3938
  }
3928
- const Rr = /* @__PURE__ */ v(Tr, [["render", $r], ["__scopeId", "data-v-77c7888c"]]), Er = {
3939
+ const Ar = /* @__PURE__ */ v($r, [["render", Pr], ["__scopeId", "data-v-77c7888c"]]), Br = {
3929
3940
  name: "Form:Input",
3930
3941
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
3931
3942
  inputs: [
@@ -3976,7 +3987,7 @@ const Rr = /* @__PURE__ */ v(Tr, [["render", $r], ["__scopeId", "data-v-77c7888c
3976
3987
  borderStyle: "solid",
3977
3988
  borderColor: "#ccc"
3978
3989
  }
3979
- }, Pr = y({
3990
+ }, Vr = y({
3980
3991
  name: "builder-form-input-component",
3981
3992
  props: [
3982
3993
  "attributes",
@@ -3990,8 +4001,8 @@ const Rr = /* @__PURE__ */ v(Tr, [["render", $r], ["__scopeId", "data-v-77c7888c
3990
4001
  data() {
3991
4002
  return { isEditing: A, filterAttrs: N };
3992
4003
  }
3993
- }), Ar = ["placeholder", "type", "name", "value", "defaultValue", "required"];
3994
- function Br(e, t, n, o, r, i) {
4004
+ }), Nr = ["placeholder", "type", "name", "value", "defaultValue", "required"];
4005
+ function Wr(e, t, n, o, r, i) {
3995
4006
  return d(), h("input", I({
3996
4007
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
3997
4008
  placeholder: e.placeholder,
@@ -4000,9 +4011,9 @@ function Br(e, t, n, o, r, i) {
4000
4011
  value: e.value,
4001
4012
  defaultValue: e.defaultValue,
4002
4013
  required: e.required
4003
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Ar);
4014
+ }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Nr);
4004
4015
  }
4005
- const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
4016
+ const Dr = /* @__PURE__ */ v(Vr, [["render", Wr]]), xr = {
4006
4017
  name: "Form:Select",
4007
4018
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
4008
4019
  defaultStyles: {
@@ -4044,28 +4055,28 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
4044
4055
  }],
4045
4056
  static: !0,
4046
4057
  noWrap: !0
4047
- }, Wr = y({
4058
+ }, Or = y({
4048
4059
  name: "builder-select-component",
4049
4060
  props: ["attributes", "value", "defaultValue", "name", "required", "options"],
4050
4061
  data() {
4051
4062
  return { isEditing: A, filterAttrs: N };
4052
4063
  }
4053
- }), Dr = ["value", "defaultValue", "name", "required"], xr = ["value"];
4054
- function Ur(e, t, n, o, r, i) {
4064
+ }), Ur = ["value", "defaultValue", "name", "required"], Fr = ["value"];
4065
+ function Lr(e, t, n, o, r, i) {
4055
4066
  return d(), h("select", I({
4056
4067
  value: e.value,
4057
4068
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
4058
4069
  defaultValue: e.defaultValue,
4059
4070
  name: e.name,
4060
4071
  required: e.required
4061
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4072
+ }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4062
4073
  (d(!0), h(w, null, F(e.options, (s, l) => (d(), h("option", {
4063
4074
  key: `${s.name}-${l}`,
4064
4075
  value: s.value
4065
- }, le(s.name || s.value), 9, xr))), 128))
4066
- ], 16, Dr);
4076
+ }, le(s.name || s.value), 9, Fr))), 128))
4077
+ ], 16, Ur);
4067
4078
  }
4068
- const Or = /* @__PURE__ */ v(Wr, [["render", Ur]]), Fr = {
4079
+ const Hr = /* @__PURE__ */ v(Or, [["render", Lr]]), Mr = {
4069
4080
  name: "Form:SubmitButton",
4070
4081
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
4071
4082
  defaultStyles: {
@@ -4090,17 +4101,17 @@ const Or = /* @__PURE__ */ v(Wr, [["render", Ur]]), Fr = {
4090
4101
  // that only shows if advanced setting is flipped
4091
4102
  // TODO: defaultChildren
4092
4103
  // canHaveChildren: true,
4093
- }, Lr = y({
4104
+ }, zr = y({
4094
4105
  name: "builder-submit-button",
4095
4106
  props: ["attributes", "text"],
4096
4107
  data() {
4097
4108
  return { filterAttrs: N };
4098
4109
  }
4099
4110
  });
4100
- function Hr(e, t, n, o, r, i) {
4101
- return d(), h("button", I({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), le(e.text), 17);
4111
+ function jr(e, t, n, o, r, i) {
4112
+ return d(), h("button", I({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), le(e.text), 17);
4102
4113
  }
4103
- const Mr = /* @__PURE__ */ v(Lr, [["render", Hr]]), zr = {
4114
+ const qr = /* @__PURE__ */ v(zr, [["render", jr]]), Kr = {
4104
4115
  name: "Form:TextArea",
4105
4116
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
4106
4117
  inputs: [{
@@ -4136,7 +4147,7 @@ const Mr = /* @__PURE__ */ v(Lr, [["render", Hr]]), zr = {
4136
4147
  },
4137
4148
  static: !0,
4138
4149
  noWrap: !0
4139
- }, qr = y({
4150
+ }, Jr = y({
4140
4151
  name: "builder-textarea",
4141
4152
  props: [
4142
4153
  "attributes",
@@ -4149,17 +4160,17 @@ const Mr = /* @__PURE__ */ v(Lr, [["render", Hr]]), zr = {
4149
4160
  data() {
4150
4161
  return { filterAttrs: N };
4151
4162
  }
4152
- }), jr = ["placeholder", "name", "value", "defaultValue", "required"];
4153
- function Kr(e, t, n, o, r, i) {
4163
+ }), Gr = ["placeholder", "name", "value", "defaultValue", "required"];
4164
+ function Qr(e, t, n, o, r, i) {
4154
4165
  return d(), h("textarea", I({
4155
4166
  placeholder: e.placeholder,
4156
4167
  name: e.name,
4157
4168
  value: e.value,
4158
4169
  defaultValue: e.defaultValue,
4159
4170
  required: e.required
4160
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, jr);
4171
+ }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Gr);
4161
4172
  }
4162
- const Gr = /* @__PURE__ */ v(qr, [["render", Kr]]), Jr = {
4173
+ const Yr = /* @__PURE__ */ v(Jr, [["render", Qr]]), Xr = {
4163
4174
  name: "Raw:Img",
4164
4175
  hideFromInsertMenu: !0,
4165
4176
  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",
@@ -4167,7 +4178,7 @@ const Gr = /* @__PURE__ */ v(qr, [["render", Kr]]), Jr = {
4167
4178
  name: "image",
4168
4179
  bubble: !0,
4169
4180
  type: "file",
4170
- allowedFileTypes: Ee,
4181
+ allowedFileTypes: Be,
4171
4182
  required: !0
4172
4183
  }, {
4173
4184
  name: "backgroundSize",
@@ -4203,7 +4214,7 @@ const Gr = /* @__PURE__ */ v(qr, [["render", Kr]]), Jr = {
4203
4214
  defaultValue: 0.7041
4204
4215
  }],
4205
4216
  noWrap: !0
4206
- }, Qr = y({
4217
+ }, Zr = y({
4207
4218
  name: "builder-img-component",
4208
4219
  props: [
4209
4220
  "imgSrc",
@@ -4233,8 +4244,8 @@ const Gr = /* @__PURE__ */ v(qr, [["render", Kr]]), Jr = {
4233
4244
  return delete e.style, e;
4234
4245
  }
4235
4246
  }
4236
- }), Yr = ["alt", "title", "src"];
4237
- function Xr(e, t, n, o, r, i) {
4247
+ }), _r = ["alt", "title", "src"];
4248
+ function ei(e, t, n, o, r, i) {
4238
4249
  var s;
4239
4250
  return d(), h("img", I({
4240
4251
  loading: "lazy",
@@ -4248,9 +4259,9 @@ function Xr(e, t, n, o, r, i) {
4248
4259
  aspectRatio: e.aspectRatio || void 0,
4249
4260
  ...((s = e.attributes) == null ? void 0 : s.style) || {}
4250
4261
  }
4251
- }, e.imgAttrs), null, 16, Yr);
4262
+ }, e.imgAttrs), null, 16, _r);
4252
4263
  }
4253
- const Zr = /* @__PURE__ */ v(Qr, [["render", Xr]]), _r = {
4264
+ const ti = /* @__PURE__ */ v(Zr, [["render", ei]]), ni = {
4254
4265
  name: "Video",
4255
4266
  canHaveChildren: !0,
4256
4267
  defaultStyles: {
@@ -4261,14 +4272,14 @@ const Zr = /* @__PURE__ */ v(Qr, [["render", Xr]]), _r = {
4261
4272
  inputs: [{
4262
4273
  name: "video",
4263
4274
  type: "file",
4264
- allowedFileTypes: Fo,
4275
+ allowedFileTypes: Mo,
4265
4276
  bubble: !0,
4266
4277
  defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
4267
4278
  required: !0
4268
4279
  }, {
4269
4280
  name: "posterImage",
4270
4281
  type: "file",
4271
- allowedFileTypes: Ee,
4282
+ allowedFileTypes: Be,
4272
4283
  helperText: "Image to show before the video plays"
4273
4284
  }, {
4274
4285
  name: "autoPlay",
@@ -4334,7 +4345,7 @@ const Zr = /* @__PURE__ */ v(Qr, [["render", Xr]]), _r = {
4334
4345
  shouldReceiveBuilderProps: {
4335
4346
  builderBlock: !0
4336
4347
  }
4337
- }, ei = y({
4348
+ }, oi = y({
4338
4349
  name: "builder-video",
4339
4350
  props: [
4340
4351
  "lazyLoad",
@@ -4407,16 +4418,16 @@ const Zr = /* @__PURE__ */ v(Qr, [["render", Xr]]), _r = {
4407
4418
  };
4408
4419
  }
4409
4420
  }
4410
- }), ti = { style: {
4421
+ }), ri = { style: {
4411
4422
  position: "relative"
4412
- } }, ni = ["preload", "poster"], oi = {
4423
+ } }, ii = ["preload", "poster"], si = {
4413
4424
  key: 1,
4414
4425
  style: {
4415
4426
  display: "flex",
4416
4427
  flexDirection: "column",
4417
4428
  alignItems: "stretch"
4418
4429
  }
4419
- }, ri = {
4430
+ }, ai = {
4420
4431
  key: 2,
4421
4432
  style: {
4422
4433
  pointerEvents: "none",
@@ -4430,10 +4441,10 @@ const Zr = /* @__PURE__ */ v(Qr, [["render", Xr]]), _r = {
4430
4441
  height: "100%"
4431
4442
  }
4432
4443
  };
4433
- function ii(e, t, n, o, r, i) {
4444
+ function li(e, t, n, o, r, i) {
4434
4445
  var s, l, a, u, p, f, c;
4435
- return d(), h("div", ti, [
4436
- j("video", I({
4446
+ return d(), h("div", ri, [
4447
+ q("video", I({
4437
4448
  class: "builder-video",
4438
4449
  ref: "videoRef",
4439
4450
  preload: e.lazyLoad ? "none" : e.preload || "metadata",
@@ -4452,7 +4463,7 @@ function ii(e, t, n, o, r, i) {
4452
4463
  },
4453
4464
  poster: e.posterImage
4454
4465
  }, e.spreadProps), [
4455
- j("source", I(
4466
+ q("source", I(
4456
4467
  { type: "video/mp4" },
4457
4468
  e.lazyLoad ? {
4458
4469
  "data-src": e.video
@@ -4460,7 +4471,7 @@ function ii(e, t, n, o, r, i) {
4460
4471
  src: e.video
4461
4472
  }
4462
4473
  ), null, 16)
4463
- ], 16, ni),
4474
+ ], 16, ii),
4464
4475
  e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (d(), h("div", {
4465
4476
  key: 0,
4466
4477
  style: M({
@@ -4470,75 +4481,75 @@ function ii(e, t, n, o, r, i) {
4470
4481
  fontSize: "0px"
4471
4482
  })
4472
4483
  }, null, 4)) : C("", !0),
4473
- (p = (u = e.builderBlock) == null ? void 0 : u.children) != null && p.length && e.fitContent ? (d(), h("div", oi, [
4484
+ (p = (u = e.builderBlock) == null ? void 0 : u.children) != null && p.length && e.fitContent ? (d(), h("div", si, [
4474
4485
  V(e.$slots, "default")
4475
4486
  ])) : C("", !0),
4476
- (c = (f = e.builderBlock) == null ? void 0 : f.children) != null && c.length && !e.fitContent ? (d(), h("div", ri, [
4487
+ (c = (f = e.builderBlock) == null ? void 0 : f.children) != null && c.length && !e.fitContent ? (d(), h("div", ai, [
4477
4488
  V(e.$slots, "default")
4478
4489
  ])) : C("", !0)
4479
4490
  ]);
4480
4491
  }
4481
- const si = /* @__PURE__ */ v(ei, [["render", ii]]), ai = () => [{
4482
- component: pr,
4483
- ...lr
4492
+ const ci = /* @__PURE__ */ v(oi, [["render", li]]), di = () => [{
4493
+ component: fr,
4494
+ ...ur
4484
4495
  }, {
4485
- component: vr,
4486
- ...mr
4496
+ component: Cr,
4497
+ ...br
4487
4498
  }, {
4488
- component: Rr,
4489
- ...Sr
4499
+ component: Ar,
4500
+ ...Tr
4490
4501
  }, {
4491
- component: Vr,
4492
- ...Er
4502
+ component: Dr,
4503
+ ...Br
4493
4504
  }, {
4494
- component: Mr,
4495
- ...Fr
4505
+ component: qr,
4506
+ ...Mr
4496
4507
  }, {
4497
- component: Or,
4498
- ...Nr
4508
+ component: Hr,
4509
+ ...xr
4499
4510
  }, {
4500
- component: Gr,
4501
- ...zr
4511
+ component: Yr,
4512
+ ...Kr
4502
4513
  }, {
4503
- component: Zr,
4504
- ...Jr
4514
+ component: ti,
4515
+ ...Xr
4505
4516
  }, {
4506
- component: si,
4507
- ..._r
4508
- }], Me = () => [{
4509
- component: Ot,
4510
- ...xo
4517
+ component: ci,
4518
+ ...ni
4519
+ }], Ke = () => [{
4520
+ component: Lt,
4521
+ ...Fo
4511
4522
  }, {
4512
- component: ro,
4513
- ...Uo
4523
+ component: so,
4524
+ ...Lo
4514
4525
  }, {
4515
- component: ao,
4516
- ...Oo
4526
+ component: co,
4527
+ ...Ho
4517
4528
  }, {
4518
- component: bo,
4519
- ...Lo
4529
+ component: yo,
4530
+ ...zo
4520
4531
  }, {
4521
- component: vo,
4522
- ...jo
4532
+ component: ko,
4533
+ ...Go
4523
4534
  }, {
4524
- component: Qo,
4525
- ...Ko
4535
+ component: Zo,
4536
+ ...Qo
4526
4537
  }, {
4527
- component: ji,
4528
- ...Yo
4538
+ component: Gi,
4539
+ ..._o
4529
4540
  }, {
4530
- component: ar,
4531
- ...or
4532
- }, ...gt.includes(R) ? [{
4533
- component: qo,
4534
- ...Ho
4541
+ component: dr,
4542
+ ...sr
4543
+ }, ...vt.includes(R) ? [{
4544
+ component: Jo,
4545
+ ...jo
4535
4546
  }] : [], {
4536
- component: nr,
4537
- ...Xo
4547
+ component: ir,
4548
+ ...er
4538
4549
  }, {
4539
- component: Do,
4540
- ...Ao
4541
- }, ...ai()], li = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
4550
+ component: Uo,
4551
+ ...No
4552
+ }, ...di()], ui = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
4542
4553
  function getAndSetVariantId() {
4543
4554
  function setCookie(name, value, days) {
4544
4555
  let expires = '';
@@ -4597,7 +4608,7 @@ const si = /* @__PURE__ */ v(ei, [["render", ii]]), ai = () => [{
4597
4608
  }).join('');
4598
4609
  styleEl.innerHTML = newStyleStr;
4599
4610
  }
4600
- }`, ci = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4611
+ }`, pi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4601
4612
  if (!navigator.cookieEnabled) {
4602
4613
  return;
4603
4614
  }
@@ -4631,37 +4642,37 @@ const si = /* @__PURE__ */ v(ei, [["render", ii]]), ai = () => [{
4631
4642
  thisScriptEl?.remove();
4632
4643
  }
4633
4644
  return;
4634
- }`, ye = "builderIoAbTest", ve = "builderIoRenderContent", oe = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4645
+ }`, ke = "builderIoAbTest", Ce = "builderIoRenderContent", oe = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4635
4646
  ...t,
4636
4647
  testVariationId: t.id,
4637
4648
  id: e == null ? void 0 : e.id
4638
- })), di = ({
4649
+ })), mi = ({
4639
4650
  canTrack: e,
4640
4651
  content: t
4641
- }) => !(!(oe(t).length > 0) || !e), ui = (e) => e === "react" || e === "reactNative", pi = R === "angular", Ae = ui(R), mi = () => `
4652
+ }) => !(!(oe(t).length > 0) || !e), hi = (e) => e === "react" || e === "reactNative", fi = R === "angular", Ne = hi(R), bi = () => `
4642
4653
  (function() {
4643
- if (!window.${ye}) {
4644
- window.${ye} = ${li};
4654
+ if (!window.${ke}) {
4655
+ window.${ke} = ${ui};
4645
4656
  }
4646
- if (!window.${ve}) {
4647
- window.${ve} = ${ci};
4648
- }${Ae ? `
4657
+ if (!window.${Ce}) {
4658
+ window.${Ce} = ${pi};
4659
+ }${Ne ? `
4649
4660
  var thisScriptEl = document.currentScript;
4650
4661
  if (thisScriptEl) { thisScriptEl.remove(); }` : ""}
4651
4662
  })();
4652
- `, hi = (e, t) => `
4653
- window.${ye}(
4654
- "${t}",${JSON.stringify(e)}, ${Ae}, ${pi}
4655
- )`, fi = ({
4663
+ `, gi = (e, t) => `
4664
+ window.${ke}(
4665
+ "${t}",${JSON.stringify(e)}, ${Ne}, ${fi}
4666
+ )`, yi = ({
4656
4667
  contentId: e,
4657
4668
  variationId: t
4658
- }) => `window.${ve}(
4659
- "${t}", "${e}", ${Ae}
4669
+ }) => `window.${Ce}(
4670
+ "${t}", "${e}", ${Ne}
4660
4671
  )`;
4661
- function ze(e) {
4672
+ function Je(e) {
4662
4673
  return Math.round(e * 1e3) / 1e3;
4663
4674
  }
4664
- const bi = (e, t, n = !0) => {
4675
+ const vi = (e, t, n = !0) => {
4665
4676
  if (!(e instanceof HTMLElement))
4666
4677
  return null;
4667
4678
  let o = n ? e : e.parentElement;
@@ -4672,35 +4683,35 @@ const bi = (e, t, n = !0) => {
4672
4683
  return o;
4673
4684
  } while (o = o.parentElement);
4674
4685
  return null;
4675
- }, gi = (e) => bi(e, (t) => {
4686
+ }, Si = (e) => vi(e, (t) => {
4676
4687
  const n = t.getAttribute("builder-id") || t.id;
4677
4688
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
4678
- }), qe = ({
4689
+ }), Ge = ({
4679
4690
  event: e,
4680
4691
  target: t
4681
4692
  }) => {
4682
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = ze(o / n.width), s = ze(r / n.height);
4693
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = Je(o / n.width), s = Je(r / n.height);
4683
4694
  return {
4684
4695
  x: i,
4685
4696
  y: s
4686
4697
  };
4687
- }, yi = (e) => {
4688
- const t = e.target, n = t && gi(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4698
+ }, ki = (e) => {
4699
+ const t = e.target, n = t && Si(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4689
4700
  return {
4690
4701
  targetBuilderElement: o || void 0,
4691
4702
  metadata: {
4692
- targetOffset: t ? qe({
4703
+ targetOffset: t ? Ge({
4693
4704
  event: e,
4694
4705
  target: t
4695
4706
  }) : void 0,
4696
- builderTargetOffset: n ? qe({
4707
+ builderTargetOffset: n ? Ge({
4697
4708
  event: e,
4698
4709
  target: n
4699
4710
  }) : void 0,
4700
4711
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
4701
4712
  }
4702
4713
  };
4703
- }, vi = ["svelte", "qwik", "vue"], Si = () => vi.includes(R) && (A() || Te()), ki = (e) => {
4714
+ }, Ci = ["svelte", "qwik", "vue"], Ti = () => Ci.includes(R) && (A() || $e()), wi = (e) => {
4704
4715
  var i;
4705
4716
  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);
4706
4717
  let r = "";
@@ -4726,15 +4737,15 @@ font-weight: ${s};
4726
4737
  `.trim());
4727
4738
  }
4728
4739
  return r;
4729
- }, Ci = ({
4740
+ }, Ii = ({
4730
4741
  customFonts: e
4731
4742
  }) => {
4732
4743
  var t;
4733
- return ((t = e == null ? void 0 : e.map((n) => ki(n))) == null ? void 0 : t.join(" ")) || "";
4734
- }, Ti = ({
4744
+ return ((t = e == null ? void 0 : e.map((n) => wi(n))) == null ? void 0 : t.join(" ")) || "";
4745
+ }, $i = ({
4735
4746
  cssCode: e,
4736
4747
  contentId: t
4737
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", wi = `
4748
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ri = `
4738
4749
  .builder-button {
4739
4750
  all: unset;
4740
4751
  }
@@ -4751,7 +4762,7 @@ font-weight: ${s};
4751
4762
  text-align: inherit;
4752
4763
  font-family: inherit;
4753
4764
  }
4754
- `, Ii = (e) => e ? "" : wi, $i = (e) => `variant-${e}`, Ri = y({
4765
+ `, Ei = (e) => e ? "" : Ri, Pi = (e) => `variant-${e}`, Ai = y({
4755
4766
  name: "enable-editor",
4756
4767
  components: { DynamicDiv: ee },
4757
4768
  props: [
@@ -4783,8 +4794,8 @@ font-weight: ${s};
4783
4794
  httpReqsPending: {},
4784
4795
  clicked: !1,
4785
4796
  builderContext: he,
4786
- needsElementRefDivForEditing: Si,
4787
- getWrapperClassName: $i
4797
+ needsElementRefDivForEditing: Ti,
4798
+ getWrapperClassName: Pi
4788
4799
  };
4789
4800
  },
4790
4801
  provide() {
@@ -4802,13 +4813,13 @@ font-weight: ${s};
4802
4813
  A() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4803
4814
  new CustomEvent("initeditingbldr")
4804
4815
  );
4805
- const o = this.builderContextSignal.content && K(this.canTrack), r = ke({
4816
+ const o = this.builderContextSignal.content && K(this.canTrack), r = we({
4806
4817
  name: `builder.tests.${(e = this.builderContextSignal.content) == null ? void 0 : e.id}`,
4807
4818
  canTrack: !0
4808
4819
  }), i = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId;
4809
4820
  if (o && i === r) {
4810
4821
  const s = (n = this.builderContextSignal.content) == null ? void 0 : n.id, l = this.apiKey;
4811
- Ne({
4822
+ xe({
4812
4823
  apiHost: this.apiHost,
4813
4824
  type: "impression",
4814
4825
  canTrack: !0,
@@ -4817,7 +4828,7 @@ font-weight: ${s};
4817
4828
  variationId: r !== s ? r : void 0
4818
4829
  });
4819
4830
  }
4820
- Te() && !A() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4831
+ $e() && !A() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4821
4832
  new CustomEvent("initpreviewingbldr")
4822
4833
  );
4823
4834
  }
@@ -4919,7 +4930,7 @@ font-weight: ${s};
4919
4930
  this.builderContextSignal.content = n;
4920
4931
  },
4921
4932
  processMessage(e) {
4922
- return nt({
4933
+ return st({
4923
4934
  model: this.model,
4924
4935
  trustedHosts: this.trustedHosts,
4925
4936
  callbacks: {
@@ -4933,7 +4944,7 @@ font-weight: ${s};
4933
4944
  });
4934
4945
  },
4935
4946
  animation: (t) => {
4936
- ct(t);
4947
+ mt(t);
4937
4948
  },
4938
4949
  contentUpdate: (t, n) => {
4939
4950
  this.mergeNewContent(t, n);
@@ -4948,14 +4959,14 @@ font-weight: ${s};
4948
4959
  var t, n;
4949
4960
  if (this.builderContextSignal.content) {
4950
4961
  const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
4951
- Ne({
4962
+ xe({
4952
4963
  apiHost: this.apiHost,
4953
4964
  type: "click",
4954
4965
  canTrack: K(this.canTrack),
4955
4966
  contentId: r,
4956
4967
  apiKey: this.apiKey,
4957
4968
  variationId: o !== r ? o : void 0,
4958
- ...yi(e),
4969
+ ...ki(e),
4959
4970
  unique: !this.clicked
4960
4971
  });
4961
4972
  }
@@ -4993,7 +5004,7 @@ font-weight: ${s};
4993
5004
  url: l,
4994
5005
  method: "GET"
4995
5006
  };
4996
- Qe(JSON.stringify(a));
5007
+ _e(JSON.stringify(a));
4997
5008
  const u = {
4998
5009
  method: a.method,
4999
5010
  headers: a.headers,
@@ -5021,7 +5032,7 @@ font-weight: ${s};
5021
5032
  "builder:component:stateChange",
5022
5033
  {
5023
5034
  detail: {
5024
- state: Se(this.builderContextSignal.rootState),
5035
+ state: Te(this.builderContextSignal.rootState),
5025
5036
  ref: {
5026
5037
  name: this.model
5027
5038
  }
@@ -5031,7 +5042,7 @@ font-weight: ${s};
5031
5042
  );
5032
5043
  },
5033
5044
  elementRef_onIniteditingbldr(e) {
5034
- window.addEventListener("message", this.processMessage), tt({
5045
+ window.addEventListener("message", this.processMessage), it({
5035
5046
  ...this.locale ? {
5036
5047
  locale: this.locale
5037
5048
  } : {},
@@ -5048,7 +5059,7 @@ font-weight: ${s};
5048
5059
  ).forEach((t) => {
5049
5060
  var n, o;
5050
5061
  if (!((n = t.models) != null && n.length) || t.models.includes(this.model)) {
5051
- const r = nn(t);
5062
+ const r = rn(t);
5052
5063
  (o = window.parent) == null || o.postMessage(r, "*");
5053
5064
  }
5054
5065
  }), window.addEventListener(
@@ -5061,7 +5072,7 @@ font-weight: ${s};
5061
5072
  const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
5062
5073
  `builder.overrides.${n}`
5063
5074
  ), r = t.get("apiKey") || t.get("builder.space");
5064
- (n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && $e({
5075
+ (n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && Pe({
5065
5076
  model: this.model,
5066
5077
  apiKey: this.apiKey,
5067
5078
  apiVersion: this.builderContextSignal.apiVersion,
@@ -5076,7 +5087,7 @@ font-weight: ${s};
5076
5087
  }
5077
5088
  }
5078
5089
  });
5079
- function Ei(e, t, n, o, r, i) {
5090
+ function Bi(e, t, n, o, r, i) {
5080
5091
  var s, l, a;
5081
5092
  return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(Y(e.ContentWrapper), I({
5082
5093
  key: 0,
@@ -5097,26 +5108,26 @@ function Ei(e, t, n, o, r, i) {
5097
5108
  _: 3
5098
5109
  }, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : C("", !0);
5099
5110
  }
5100
- const Pi = /* @__PURE__ */ v(Ri, [["render", Ei]]), Ai = y({
5111
+ const Vi = /* @__PURE__ */ v(Ai, [["render", Bi]]), Ni = y({
5101
5112
  name: "content-styles",
5102
5113
  components: { InlinedStyles: ce },
5103
5114
  props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
5104
5115
  data() {
5105
5116
  return {
5106
5117
  injectedStyles: `
5107
- ${Ti({
5118
+ ${$i({
5108
5119
  cssCode: this.cssCode,
5109
5120
  contentId: this.contentId
5110
5121
  })}
5111
- ${Ci({
5122
+ ${Ii({
5112
5123
  customFonts: this.customFonts
5113
5124
  })}
5114
- ${Ii(this.isNestedRender)}
5125
+ ${Ei(this.isNestedRender)}
5115
5126
  `.trim()
5116
5127
  };
5117
5128
  }
5118
5129
  });
5119
- function Bi(e, t, n, o, r, i) {
5130
+ function Wi(e, t, n, o, r, i) {
5120
5131
  const s = k("InlinedStyles");
5121
5132
  return d(), S(s, {
5122
5133
  id: "builderio-content",
@@ -5124,7 +5135,7 @@ function Bi(e, t, n, o, r, i) {
5124
5135
  nonce: e.nonce
5125
5136
  }, null, 8, ["styles", "nonce"]);
5126
5137
  }
5127
- const Vi = /* @__PURE__ */ v(Ai, [["render", Bi]]), Ni = ({
5138
+ const Di = /* @__PURE__ */ v(Ni, [["render", Wi]]), xi = ({
5128
5139
  content: e,
5129
5140
  data: t,
5130
5141
  locale: n
@@ -5141,7 +5152,7 @@ const Vi = /* @__PURE__ */ v(Ai, [["render", Bi]]), Ni = ({
5141
5152
  locale: n
5142
5153
  } : {}
5143
5154
  };
5144
- }, Wi = ({
5155
+ }, Oi = ({
5145
5156
  content: e,
5146
5157
  data: t
5147
5158
  }) => e ? {
@@ -5151,13 +5162,13 @@ const Vi = /* @__PURE__ */ v(Ai, [["render", Bi]]), Ni = ({
5151
5162
  ...t
5152
5163
  },
5153
5164
  meta: e == null ? void 0 : e.meta
5154
- } : void 0, Di = kt, xi = y({
5165
+ } : void 0, Ui = Tt, Fi = y({
5155
5166
  name: "content-component",
5156
5167
  components: {
5157
- EnableEditor: Pi,
5158
- InlinedScript: Pe,
5159
- ContentStyles: Vi,
5160
- Blocks: q,
5168
+ EnableEditor: Vi,
5169
+ InlinedScript: Ve,
5170
+ ContentStyles: Di,
5171
+ Blocks: j,
5161
5172
  DynamicDiv: ee
5162
5173
  },
5163
5174
  props: [
@@ -5186,32 +5197,32 @@ const Vi = /* @__PURE__ */ v(Ai, [["render", Bi]]), Ni = ({
5186
5197
  data() {
5187
5198
  var e, t;
5188
5199
  return {
5189
- scriptStr: fi({
5200
+ scriptStr: yi({
5190
5201
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
5191
5202
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
5192
5203
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
5193
5204
  contentId: (t = this.content) == null ? void 0 : t.id
5194
5205
  }),
5195
5206
  registeredComponents: [
5196
- ...Me(),
5207
+ ...Ke(),
5197
5208
  ...this.customComponents || []
5198
5209
  ].reduce(
5199
5210
  (n, { component: o, ...r }) => ({
5200
5211
  ...n,
5201
5212
  [r.name]: {
5202
- component: Di(o),
5213
+ component: Ui(o),
5203
5214
  ...se(r)
5204
5215
  }
5205
5216
  }),
5206
5217
  {}
5207
5218
  ),
5208
5219
  builderContextSignal: {
5209
- content: Wi({
5220
+ content: Oi({
5210
5221
  content: this.content,
5211
5222
  data: this.data
5212
5223
  }),
5213
5224
  localState: void 0,
5214
- rootState: Ni({
5225
+ rootState: xi({
5215
5226
  content: this.content,
5216
5227
  data: this.data,
5217
5228
  locale: this.locale
@@ -5222,7 +5233,7 @@ const Vi = /* @__PURE__ */ v(Ai, [["render", Bi]]), Ni = ({
5222
5233
  apiKey: this.apiKey,
5223
5234
  apiVersion: this.apiVersion,
5224
5235
  componentInfos: [
5225
- ...Me(),
5236
+ ...Ke(),
5226
5237
  ...this.customComponents || []
5227
5238
  ].reduce(
5228
5239
  (n, { component: o, ...r }) => ({
@@ -5243,7 +5254,7 @@ const Vi = /* @__PURE__ */ v(Ai, [["render", Bi]]), Ni = ({
5243
5254
  provide() {
5244
5255
  const e = this;
5245
5256
  return {
5246
- [Ye.key]: {
5257
+ [et.key]: {
5247
5258
  registeredComponents: e.registeredComponents
5248
5259
  }
5249
5260
  };
@@ -5287,7 +5298,7 @@ const Vi = /* @__PURE__ */ v(Ai, [["render", Bi]]), Ni = ({
5287
5298
  }
5288
5299
  }
5289
5300
  });
5290
- function Ui(e, t, n, o, r, i) {
5301
+ function Li(e, t, n, o, r, i) {
5291
5302
  const s = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
5292
5303
  return d(), S(u, I({
5293
5304
  apiHost: e.apiHost,
@@ -5335,19 +5346,19 @@ function Ui(e, t, n, o, r, i) {
5335
5346
  _: 1
5336
5347
  }, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
5337
5348
  }
5338
- const Oi = /* @__PURE__ */ v(xi, [["render", Ui]]), Fi = y({
5349
+ const Hi = /* @__PURE__ */ v(Fi, [["render", Li]]), Mi = y({
5339
5350
  name: "content-variants",
5340
5351
  components: {
5341
- InlinedScript: Pe,
5352
+ InlinedScript: Ve,
5342
5353
  InlinedStyles: ce,
5343
- ContentComponent: Oi
5354
+ ContentComponent: Hi
5344
5355
  },
5345
5356
  props: [
5346
5357
  "canTrack",
5347
5358
  "content",
5348
- "isNestedRender",
5349
5359
  "nonce",
5350
5360
  "apiHost",
5361
+ "isNestedRender",
5351
5362
  "model",
5352
5363
  "data",
5353
5364
  "context",
@@ -5365,14 +5376,15 @@ const Oi = /* @__PURE__ */ v(xi, [["render", Ui]]), Fi = y({
5365
5376
  ],
5366
5377
  data() {
5367
5378
  return {
5368
- shouldRenderVariants: di({
5379
+ shouldRenderVariants: mi({
5369
5380
  canTrack: K(this.canTrack),
5370
5381
  content: this.content
5371
5382
  }),
5372
- SDKS_SUPPORTING_PERSONALIZATION: gt,
5373
- getInitPersonalizationVariantsFnsScriptString: Ro,
5383
+ shouldEmitPersonalizationFns: Po(this.content),
5384
+ SDKS_SUPPORTING_PERSONALIZATION: vt,
5385
+ getInitPersonalizationVariantsFnsScriptString: Ao,
5374
5386
  TARGET: R,
5375
- getInitVariantsFnsScriptString: mi,
5387
+ getInitVariantsFnsScriptString: bi,
5376
5388
  getVariants: oe
5377
5389
  };
5378
5390
  },
@@ -5381,7 +5393,7 @@ const Oi = /* @__PURE__ */ v(xi, [["render", Ui]]), Fi = y({
5381
5393
  computed: {
5382
5394
  updateCookieAndStylesScriptStr() {
5383
5395
  var e;
5384
- return hi(
5396
+ return gi(
5385
5397
  oe(this.content).map((t) => ({
5386
5398
  id: t.testVariationId,
5387
5399
  testRatio: t.testRatio
@@ -5397,17 +5409,17 @@ const Oi = /* @__PURE__ */ v(xi, [["render", Ui]]), Fi = y({
5397
5409
  return this.shouldRenderVariants ? {
5398
5410
  ...this.content,
5399
5411
  testVariationId: (e = this.content) == null ? void 0 : e.id
5400
- } : mn({
5412
+ } : fn({
5401
5413
  item: this.content,
5402
5414
  canTrack: K(this.canTrack)
5403
5415
  });
5404
5416
  }
5405
5417
  }
5406
5418
  });
5407
- function Li(e, t, n, o, r, i) {
5419
+ function zi(e, t, n, o, r, i) {
5408
5420
  const s = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
5409
5421
  return d(), h(w, null, [
5410
- !e.isNestedRender && e.TARGET !== "reactNative" ? (d(), h(w, { key: 0 }, [
5422
+ e.shouldEmitPersonalizationFns ? (d(), h(w, { key: 0 }, [
5411
5423
  e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (d(), S(s, {
5412
5424
  key: 0,
5413
5425
  id: "builderio-init-personalization-variants-fns",
@@ -5483,13 +5495,13 @@ function Li(e, t, n, o, r, i) {
5483
5495
  }), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
5484
5496
  ], 64);
5485
5497
  }
5486
- const Hi = /* @__PURE__ */ v(Fi, [["render", Li]]), Mi = async ({
5498
+ const ji = /* @__PURE__ */ v(Mi, [["render", zi]]), qi = async ({
5487
5499
  builderContextValue: e,
5488
5500
  symbol: t
5489
5501
  }) => {
5490
5502
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
5491
5503
  (e != null && e.apiKey))
5492
- return $e({
5504
+ return Pe({
5493
5505
  model: t.model,
5494
5506
  apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
5495
5507
  apiVersion: e.apiVersion,
@@ -5501,9 +5513,9 @@ const Hi = /* @__PURE__ */ v(Fi, [["render", Li]]), Mi = async ({
5501
5513
  }).catch((n) => {
5502
5514
  L.error("Could not fetch symbol content: ", n);
5503
5515
  });
5504
- }, zi = y({
5516
+ }, Ki = y({
5505
5517
  name: "builder-symbol",
5506
- components: { ContentVariants: Hi, DynamicDiv: ee },
5518
+ components: { ContentVariants: ji, DynamicDiv: ee },
5507
5519
  props: [
5508
5520
  "symbol",
5509
5521
  "builderComponents",
@@ -5560,7 +5572,7 @@ const Hi = /* @__PURE__ */ v(Fi, [["render", Li]]), Mi = async ({
5560
5572
  methods: {
5561
5573
  setContent() {
5562
5574
  var e;
5563
- this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || Mi({
5575
+ this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || qi({
5564
5576
  symbol: this.symbol,
5565
5577
  builderContextValue: this.builderContext
5566
5578
  }).then((t) => {
@@ -5570,10 +5582,10 @@ const Hi = /* @__PURE__ */ v(Fi, [["render", Li]]), Mi = async ({
5570
5582
  }
5571
5583
  }
5572
5584
  });
5573
- function qi(e, t, n, o, r, i) {
5585
+ function Ji(e, t, n, o, r, i) {
5574
5586
  var l, a, u, p, f, c, m;
5575
5587
  const s = k("ContentVariants");
5576
- return d(), h("div", I({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
5588
+ return d(), h("div", I({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
5577
5589
  $(s, {
5578
5590
  nonce: e.builderContext.nonce,
5579
5591
  isNestedRender: !0,
@@ -5598,43 +5610,43 @@ function qi(e, t, n, o, r, i) {
5598
5610
  }, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
5599
5611
  ], 16);
5600
5612
  }
5601
- const ji = /* @__PURE__ */ v(zi, [["render", qi]]);
5613
+ const Gi = /* @__PURE__ */ v(Ki, [["render", Ji]]);
5602
5614
  export {
5603
- $e as A,
5604
- mt as B,
5605
- ro as C,
5606
- Ji as D,
5607
- os as E,
5608
- ao as F,
5609
- bo as I,
5610
- vo as S,
5611
- ar as T,
5612
- si as V,
5615
+ Pe as A,
5616
+ gt as B,
5617
+ so as C,
5618
+ Xi as D,
5619
+ ss as E,
5620
+ co as F,
5621
+ yo as I,
5622
+ ko as S,
5623
+ dr as T,
5624
+ ci as V,
5613
5625
  v as _,
5614
5626
  z as a,
5615
5627
  he as b,
5616
5628
  ce as c,
5617
- eo as d,
5629
+ no as d,
5618
5630
  _ as e,
5619
- ts as f,
5620
- ns as g,
5621
- rs as h,
5622
- Re as i,
5623
- tn as j,
5624
- Ot as k,
5625
- ji as l,
5626
- q as m,
5627
- Hi as n,
5628
- Te as o,
5629
- nn as p,
5630
- Yi as q,
5631
- Qi as r,
5632
- _i as s,
5633
- Xi as t,
5634
- _e as u,
5635
- Zi as v,
5636
- Di as w,
5637
- es as x,
5638
- wn as y,
5639
- In as z
5631
+ rs as f,
5632
+ is as g,
5633
+ as as h,
5634
+ Ae as i,
5635
+ on as j,
5636
+ Lt as k,
5637
+ Gi as l,
5638
+ j as m,
5639
+ ji as n,
5640
+ $e as o,
5641
+ rn as p,
5642
+ _i as q,
5643
+ Zi as r,
5644
+ ns as s,
5645
+ es as t,
5646
+ ot as u,
5647
+ ts as v,
5648
+ Ui as w,
5649
+ os as x,
5650
+ $n as y,
5651
+ Rn as z
5640
5652
  };