@builder.io/sdk-vue 5.2.12 → 5.2.13

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 (74) hide show
  1. package/lib/browser/{awaiter-_vJybpjE.cjs → awaiter-Ja_QJKsd.cjs} +1 -1
  2. package/lib/browser/{awaiter-nbyjYGTm.js → awaiter-PAIWzl07.js} +1 -1
  3. package/lib/browser/{block-wrapper-LaZs4cQn.cjs → block-wrapper-CeRmNoq0.cjs} +1 -1
  4. package/lib/browser/{block-wrapper-H2uWRFfl.js → block-wrapper-b4XqsSBv.js} +3 -3
  5. package/lib/browser/blocks/personalization-container/helpers/inlined-fns.d.ts +8 -2
  6. package/lib/browser/blocks/personalization-container/personalization-container.vue.d.ts +3 -1
  7. package/lib/browser/{component-ref-VXY67QLx.cjs → component-ref-MNrE4dOw.cjs} +1 -1
  8. package/lib/browser/{component-ref-pzekKy-e.js → component-ref-RNH8q_Ct.js} +4 -4
  9. package/lib/browser/constants/sdk-version.d.ts +1 -1
  10. package/lib/browser/{get-block-properties-k4bCVM0L.cjs → get-block-properties-C1S41sZd.cjs} +1 -1
  11. package/lib/browser/{get-block-properties-pJvtXJrC.js → get-block-properties-aY0jarAY.js} +1 -1
  12. package/lib/browser/helpers/studio-user-attributes.d.ts +6 -0
  13. package/lib/browser/helpers/user-attributes.d.ts +6 -2
  14. package/lib/browser/{index-3BT-zvy_.js → index-Q7tlS2c1.js} +666 -627
  15. package/lib/browser/{index-FQjXUcZa.cjs → index-ohjTQ4ru.cjs} +47 -29
  16. package/lib/browser/index.cjs +1 -1
  17. package/lib/browser/index.mjs +1 -1
  18. package/lib/browser/{live-edit-f81HRMwD.js → live-edit-zIE57v1M.js} +1 -1
  19. package/lib/browser/{live-edit-QecbSljF.cjs → live-edit-zUS6r7uc.cjs} +1 -1
  20. package/lib/browser/{repeated-block-pzyWtt9k.cjs → repeated-block-XFgvkCPh.cjs} +1 -1
  21. package/lib/browser/{repeated-block-z4-Tq0vb.js → repeated-block-qKqkpCg_.js} +2 -2
  22. package/lib/browser/{style-wrapper-XQIDj12j.js → style-wrapper-nYNv2BeU.js} +1 -1
  23. package/lib/browser/{style-wrapper-wOCgRtEf.cjs → style-wrapper-zgP9Exwf.cjs} +1 -1
  24. package/lib/edge/{awaiter-cczNFZYf.js → awaiter-Mugw26Wi.js} +1 -1
  25. package/lib/edge/{awaiter-kqWOzygI.cjs → awaiter-N8Gr0F79.cjs} +1 -1
  26. package/lib/edge/{block-wrapper-TCG6J1wM.js → block-wrapper-0c3wPm9h.js} +3 -3
  27. package/lib/{node/block-wrapper-B7fQ00-T.cjs → edge/block-wrapper-KQrzy0mA.cjs} +1 -1
  28. package/lib/edge/blocks/personalization-container/helpers/inlined-fns.d.ts +8 -2
  29. package/lib/edge/blocks/personalization-container/personalization-container.vue.d.ts +3 -1
  30. package/lib/edge/{component-ref-ke62ODDh.js → component-ref-R_Q4TOb7.js} +4 -4
  31. package/lib/edge/{component-ref-zHNGcCjv.cjs → component-ref-e3xYDpNG.cjs} +1 -1
  32. package/lib/edge/constants/sdk-version.d.ts +1 -1
  33. package/lib/edge/{get-block-properties-GLe5pKJ-.js → get-block-properties-TtYKEgAO.js} +1 -1
  34. package/lib/edge/{get-block-properties-g3UUmViz.cjs → get-block-properties-d0E5ZkZj.cjs} +1 -1
  35. package/lib/edge/helpers/studio-user-attributes.d.ts +6 -0
  36. package/lib/edge/helpers/user-attributes.d.ts +6 -2
  37. package/lib/edge/{index-NPl2zFFt.js → index-5jMXhHfs.js} +1016 -977
  38. package/lib/edge/{index-Q1mE-A20.cjs → index-_dQKp9LH.cjs} +55 -37
  39. package/lib/edge/index.cjs +1 -1
  40. package/lib/edge/index.mjs +1 -1
  41. package/lib/edge/{live-edit-mfyAZvt8.js → live-edit-7Dc7Q2yS.js} +1 -1
  42. package/lib/{node/live-edit-Qt7v1n8V.cjs → edge/live-edit-oGxYZa_V.cjs} +1 -1
  43. package/lib/edge/{repeated-block-lZx6tufR.js → repeated-block-GESRSjst.js} +2 -2
  44. package/lib/edge/{repeated-block-fItsEFz7.cjs → repeated-block-K9b4UbOC.cjs} +1 -1
  45. package/lib/edge/{style-wrapper-9SPXPEOl.cjs → style-wrapper-dmNB8lmp.cjs} +1 -1
  46. package/lib/edge/{style-wrapper-C9W8emFx.js → style-wrapper-rh9YxCiw.js} +1 -1
  47. package/lib/node/{awaiter-Se1nH_ny.cjs → awaiter-0EtumND-.cjs} +1 -1
  48. package/lib/node/{awaiter-if1ZrvLi.js → awaiter-9zCUlZB9.js} +1 -1
  49. package/lib/{edge/block-wrapper-WHxKG2JN.cjs → node/block-wrapper-c0gZ4j4I.cjs} +1 -1
  50. package/lib/node/{block-wrapper-Nkj9awCA.js → block-wrapper-s8zLAxlL.js} +3 -3
  51. package/lib/node/blocks/personalization-container/helpers/inlined-fns.d.ts +8 -2
  52. package/lib/node/blocks/personalization-container/personalization-container.vue.d.ts +3 -1
  53. package/lib/node/{component-ref-IheEdKTm.js → component-ref-PPsTcld8.js} +5 -5
  54. package/lib/node/{component-ref-BFKh4Vpb.cjs → component-ref-lWzA5guw.cjs} +1 -1
  55. package/lib/node/constants/sdk-version.d.ts +1 -1
  56. package/lib/node/{get-block-properties-I05vUwHl.js → get-block-properties-AwCMGMPi.js} +2 -2
  57. package/lib/node/{get-block-properties-NSTAD_o0.cjs → get-block-properties-DKvJS4pV.cjs} +1 -1
  58. package/lib/node/helpers/studio-user-attributes.d.ts +6 -0
  59. package/lib/node/helpers/user-attributes.d.ts +6 -2
  60. package/lib/node/{index-vP-oPL56.js → index-DWznrY3w.js} +557 -518
  61. package/lib/node/{index-jBWgo8LI.cjs → index-funKFPCj.cjs} +47 -29
  62. package/lib/node/index.cjs +1 -1
  63. package/lib/node/index.mjs +2 -2
  64. package/lib/node/init.cjs +1 -1
  65. package/lib/node/init.mjs +1 -1
  66. package/lib/{edge/live-edit-NlcA1TEi.cjs → node/live-edit-Bw84zZeV.cjs} +1 -1
  67. package/lib/node/{live-edit-yKSQ0yqr.js → live-edit-GVvl4apL.js} +1 -1
  68. package/lib/node/{repeated-block-EN_RXDs9.js → repeated-block-SP8WaEQp.js} +2 -2
  69. package/lib/node/{repeated-block-KjQeddn3.cjs → repeated-block-ux8wkluB.cjs} +1 -1
  70. package/lib/node/{should-force-browser-runtime-in-node--WFVCCbl.cjs → should-force-browser-runtime-in-node-5MPjjLJt.cjs} +1 -1
  71. package/lib/node/{should-force-browser-runtime-in-node-cWvDK4Td.js → should-force-browser-runtime-in-node-nOG6zu2k.js} +1 -1
  72. package/lib/node/{style-wrapper-GM8YDWdR.js → style-wrapper-5BoLwggo.js} +2 -2
  73. package/lib/node/{style-wrapper-tpv235Ma.cjs → style-wrapper-aKufn4zn.cjs} +1 -1
  74. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import "./style.css";
2
- import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as I, createBlock as S, resolveDynamicComponent as Z, mergeProps as $, toHandlers as U, withCtx as D, renderSlot as N, resolveComponent as k, createTextVNode as Wt, toDisplayString as pe, defineAsyncComponent as X, createVNode as R, renderList as L, createCommentVNode as T, h as et, createElementVNode as G, normalizeStyle as H, normalizeClass as ee, markRaw as Dt } from "vue";
3
- const xt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ut = (e) => typeof e == "string" && xt.has(e.toLowerCase());
2
+ import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as I, createBlock as S, resolveDynamicComponent as X, mergeProps as $, toHandlers as x, withCtx as D, renderSlot as N, resolveComponent as k, createTextVNode as xt, toDisplayString as pe, defineAsyncComponent as Y, createVNode as R, renderList as L, createCommentVNode as T, h as ot, createElementVNode as G, normalizeStyle as M, normalizeClass as ee, markRaw as Lt } from "vue";
3
+ const Ft = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Mt = (e) => typeof e == "string" && Ft.has(e.toLowerCase());
4
4
  function O(e = {}, t, n) {
5
5
  const o = {};
6
6
  for (const r in e) {
@@ -11,11 +11,11 @@ function O(e = {}, t, n) {
11
11
  }
12
12
  return o;
13
13
  }
14
- const Lt = y({
14
+ const Ht = y({
15
15
  name: "dynamic-renderer",
16
16
  props: ["TagName", "attributes", "actionAttributes"],
17
17
  data() {
18
- return { isEmptyElement: Ut };
18
+ return { isEmptyElement: Mt };
19
19
  }
20
20
  }), v = (e, t) => {
21
21
  const n = e.__vccOpts || e;
@@ -23,14 +23,14 @@ const Lt = y({
23
23
  n[o] = r;
24
24
  return n;
25
25
  };
26
- function Ft(e, t, n, o, r, i) {
27
- return e.isEmptyElement(e.TagName) ? (d(), S(Z(e.TagName), $({ key: 1 }, e.attributes, U(e.actionAttributes)), null, 16)) : (d(), h(I, { key: 0 }, [
28
- typeof e.TagName == "string" ? (d(), S(Z(e.TagName), $({ key: 0 }, e.attributes, U(e.actionAttributes)), {
26
+ function jt(e, t, n, o, r, i) {
27
+ return e.isEmptyElement(e.TagName) ? (d(), S(X(e.TagName), $({ key: 1 }, e.attributes, x(e.actionAttributes)), null, 16)) : (d(), h(I, { key: 0 }, [
28
+ typeof e.TagName == "string" ? (d(), S(X(e.TagName), $({ key: 0 }, e.attributes, x(e.actionAttributes)), {
29
29
  default: D(() => [
30
30
  N(e.$slots, "default")
31
31
  ]),
32
32
  _: 3
33
- }, 16)) : (d(), S(Z(e.TagName), $({ key: 1 }, e.attributes, U(e.actionAttributes)), {
33
+ }, 16)) : (d(), S(X(e.TagName), $({ key: 1 }, e.attributes, x(e.actionAttributes)), {
34
34
  default: D(() => [
35
35
  N(e.$slots, "default")
36
36
  ]),
@@ -38,10 +38,10 @@ function Ft(e, t, n, o, r, i) {
38
38
  }, 16))
39
39
  ], 64));
40
40
  }
41
- const Re = /* @__PURE__ */ v(Lt, [["render", Ft]]), ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41
+ const Re = /* @__PURE__ */ v(Ht, [["render", jt]]), Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42
42
  __proto__: null,
43
43
  default: Re
44
- }, Symbol.toStringTag, { value: "Module" })), E = "vue", M = () => {
44
+ }, Symbol.toStringTag, { value: "Module" })), E = "vue", H = () => {
45
45
  switch (E) {
46
46
  case "react":
47
47
  case "reactNative":
@@ -54,7 +54,7 @@ const Re = /* @__PURE__ */ v(Lt, [["render", Ft]]), ws = /* @__PURE__ */ Object.
54
54
  case "angular":
55
55
  return "class";
56
56
  }
57
- }, Ht = y({
57
+ }, zt = y({
58
58
  name: "builder-button",
59
59
  components: { DynamicRenderer: Re },
60
60
  props: [
@@ -71,7 +71,7 @@ const Re = /* @__PURE__ */ v(Lt, [["render", Ft]]), ws = /* @__PURE__ */ Object.
71
71
  attrs() {
72
72
  return {
73
73
  ...O(this.attributes, "v-on:", !1),
74
- [M()]: `${this.link ? "" : "builder-button"} ${this.attributes[M()] || ""}`,
74
+ [H()]: `${this.link ? "" : "builder-button"} ${this.attributes[H()] || ""}`,
75
75
  ...this.link ? {
76
76
  href: this.link,
77
77
  target: this.openLinkInNewTab ? "_blank" : void 0,
@@ -83,7 +83,7 @@ const Re = /* @__PURE__ */ v(Lt, [["render", Ft]]), ws = /* @__PURE__ */ Object.
83
83
  }
84
84
  }
85
85
  });
86
- function Mt(e, t, n, o, r, i) {
86
+ function Kt(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 Mt(e, t, n, o, r, i) {
91
91
  actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
92
92
  }, {
93
93
  default: D(() => [
94
- Wt(pe(e.text), 1)
94
+ xt(pe(e.text), 1)
95
95
  ]),
96
96
  _: 1
97
97
  }, 8, ["attributes", "TagName", "actionAttributes"]);
98
98
  }
99
- const jt = /* @__PURE__ */ v(Ht, [["render", Mt]]), zt = Symbol(), ve = {
99
+ const qt = /* @__PURE__ */ v(zt, [["render", Kt]]), Gt = Symbol(), ve = {
100
100
  Builder: {
101
101
  content: null,
102
102
  context: {},
@@ -113,43 +113,43 @@ const jt = /* @__PURE__ */ v(Ht, [["render", Mt]]), zt = Symbol(), ve = {
113
113
  nonce: "",
114
114
  model: ""
115
115
  },
116
- key: zt
117
- }, Kt = Symbol(), tt = {
116
+ key: Gt
117
+ }, Jt = Symbol(), rt = {
118
118
  Components: { registeredComponents: {} },
119
- key: Kt
119
+ key: Jt
120
120
  }, oe = "[Builder.io]: ", B = {
121
121
  log: (...e) => console.log(oe, ...e),
122
122
  error: (...e) => console.error(oe, ...e),
123
123
  warn: (...e) => console.warn(oe, ...e),
124
124
  debug: (...e) => console.debug(oe, ...e)
125
- }, nt = (e, t, n) => {
125
+ }, it = (e, t, n) => {
126
126
  const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, i) => r != null ? r[i] : r, e);
127
127
  return o === void 0 || o === e ? n : o;
128
128
  };
129
129
  function w() {
130
130
  return typeof window < "u" && typeof document < "u";
131
131
  }
132
- const qt = (e) => {
132
+ const Qt = (e) => {
133
133
  const t = {};
134
134
  return e.forEach((n, o) => {
135
135
  t[o] = n;
136
136
  }), t;
137
- }, ot = (e) => e instanceof URLSearchParams ? qt(e) : e, rt = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
138
- function Gt() {
137
+ }, st = (e) => e instanceof URLSearchParams ? Qt(e) : e, at = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
138
+ function _t() {
139
139
  return w() && window.self !== window.top;
140
140
  }
141
- function P(e) {
142
- return Gt() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
143
- rt(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
141
+ function A(e) {
142
+ return _t() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
143
+ at(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
144
144
  }
145
- const Jt = () => {
145
+ const Yt = () => {
146
146
  if (w()) {
147
147
  const e = new URL(location.href);
148
148
  return e.pathname === "" && (e.pathname = "/"), e;
149
149
  } else
150
150
  return console.warn("Cannot get location for tracking in non-browser environment"), null;
151
- }, Qt = () => typeof navigator == "object" && navigator.userAgent || "", it = () => {
152
- const e = Qt(), t = {
151
+ }, Xt = () => typeof navigator == "object" && navigator.userAgent || "", lt = () => {
152
+ const e = Xt(), t = {
153
153
  Android() {
154
154
  return e.match(/Android/i);
155
155
  },
@@ -168,17 +168,17 @@ const Jt = () => {
168
168
  any() {
169
169
  return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || E === "reactNative";
170
170
  }
171
- }, n = e.match(/Tablet|iPad/i), o = Jt();
171
+ }, n = e.match(/Tablet|iPad/i), o = Yt();
172
172
  return {
173
173
  urlPath: o == null ? void 0 : o.pathname,
174
174
  host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
175
175
  device: n ? "tablet" : t.any() ? "mobile" : "desktop"
176
176
  };
177
- }, st = "5.2.12", at = () => ({
177
+ }, ct = "5.2.13", dt = () => ({
178
178
  "X-Builder-SDK": E,
179
179
  "X-Builder-SDK-GEN": "2",
180
- "X-Builder-SDK-Version": st
181
- }), j = (e) => e != null, Yt = (e) => {
180
+ "X-Builder-SDK-Version": ct
181
+ }), j = (e) => e != null, Zt = (e) => {
182
182
  if (e === "localhost" || e === "127.0.0.1")
183
183
  return e;
184
184
  const t = e.split(".");
@@ -194,14 +194,14 @@ const Jt = () => {
194
194
  B.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
195
195
  return;
196
196
  }
197
- }, lt = async (e) => me(e), Xt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(j).join("; "), Zt = [["secure", ""], ["SameSite", "None"]], _t = ({
197
+ }, ut = async (e) => me(e), en = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(j).join("; "), tn = [["secure", ""], ["SameSite", "None"]], nn = ({
198
198
  name: e,
199
199
  value: t,
200
200
  expires: n
201
201
  }) => {
202
- const r = (w() ? location.protocol === "https:" : !0) ? Zt : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", Yt(window.location.hostname)], ...r];
203
- return Xt(s);
204
- }, Pe = async ({
202
+ const r = (w() ? location.protocol === "https:" : !0) ? tn : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", Zt(window.location.hostname)], ...r];
203
+ return en(s);
204
+ }, Ae = async ({
205
205
  name: e,
206
206
  value: t,
207
207
  expires: n,
@@ -210,7 +210,7 @@ const Jt = () => {
210
210
  try {
211
211
  if (!o)
212
212
  return;
213
- const r = _t({
213
+ const r = nn({
214
214
  name: e,
215
215
  value: t,
216
216
  expires: n
@@ -220,93 +220,93 @@ const Jt = () => {
220
220
  B.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
221
221
  }
222
222
  };
223
- function en() {
223
+ function on() {
224
224
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
225
225
  const t = Math.random() * 16 | 0;
226
226
  return (e == "x" ? t : t & 3 | 8).toString(16);
227
227
  });
228
228
  }
229
- function ct() {
230
- return en().replace(/-/g, "");
229
+ function pt() {
230
+ return on().replace(/-/g, "");
231
231
  }
232
- const dt = "builderSessionId", tn = async ({
232
+ const mt = "builderSessionId", rn = async ({
233
233
  canTrack: e
234
234
  }) => {
235
235
  if (!e)
236
236
  return;
237
- const t = await lt({
238
- name: dt,
237
+ const t = await ut({
238
+ name: mt,
239
239
  canTrack: e
240
240
  });
241
241
  if (j(t))
242
242
  return t;
243
243
  {
244
- const n = nn();
245
- return on({
244
+ const n = sn();
245
+ return an({
246
246
  id: n,
247
247
  canTrack: e
248
248
  }), n;
249
249
  }
250
- }, nn = () => ct(), on = ({
250
+ }, sn = () => pt(), an = ({
251
251
  id: e,
252
252
  canTrack: t
253
- }) => Pe({
254
- name: dt,
253
+ }) => Ae({
254
+ name: mt,
255
255
  value: e,
256
256
  canTrack: t
257
- }), ut = () => w() && typeof localStorage < "u" ? localStorage : void 0, rn = ({
257
+ }), ht = () => w() && typeof localStorage < "u" ? localStorage : void 0, ln = ({
258
258
  key: e,
259
259
  canTrack: t
260
260
  }) => {
261
261
  var n;
262
262
  try {
263
- return t ? (n = ut()) == null ? void 0 : n.getItem(e) : void 0;
263
+ return t ? (n = ht()) == null ? void 0 : n.getItem(e) : void 0;
264
264
  } catch (o) {
265
265
  console.debug("[LocalStorage] GET error: ", o);
266
266
  return;
267
267
  }
268
- }, sn = ({
268
+ }, cn = ({
269
269
  key: e,
270
270
  canTrack: t,
271
271
  value: n
272
272
  }) => {
273
273
  var o;
274
274
  try {
275
- t && ((o = ut()) == null || o.setItem(e, n));
275
+ t && ((o = ht()) == null || o.setItem(e, n));
276
276
  } catch (r) {
277
277
  console.debug("[LocalStorage] SET error: ", r);
278
278
  }
279
- }, pt = "builderVisitorId", an = ({
279
+ }, ft = "builderVisitorId", dn = ({
280
280
  canTrack: e
281
281
  }) => {
282
282
  if (!e)
283
283
  return;
284
- const t = rn({
285
- key: pt,
284
+ const t = ln({
285
+ key: ft,
286
286
  canTrack: e
287
287
  });
288
288
  if (j(t))
289
289
  return t;
290
290
  {
291
- const n = ln();
292
- return cn({
291
+ const n = un();
292
+ return pn({
293
293
  id: n,
294
294
  canTrack: e
295
295
  }), n;
296
296
  }
297
- }, ln = () => ct(), cn = ({
297
+ }, un = () => pt(), pn = ({
298
298
  id: e,
299
299
  canTrack: t
300
- }) => sn({
301
- key: pt,
300
+ }) => cn({
301
+ key: ft,
302
302
  value: e,
303
303
  canTrack: t
304
304
  });
305
- function Ae(e) {
305
+ function Pe(e) {
306
306
  var t;
307
307
  typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && B.log(e);
308
308
  }
309
- const dn = async ({
309
+ const mn = async ({
310
310
  canTrack: e
311
311
  }) => {
312
312
  if (!e)
@@ -314,16 +314,16 @@ const dn = async ({
314
314
  visitorId: void 0,
315
315
  sessionId: void 0
316
316
  };
317
- const t = await tn({
317
+ const t = await rn({
318
318
  canTrack: e
319
- }), n = an({
319
+ }), n = dn({
320
320
  canTrack: e
321
321
  });
322
322
  return {
323
323
  sessionId: t,
324
324
  visitorId: n
325
325
  };
326
- }, un = async ({
326
+ }, hn = async ({
327
327
  type: e,
328
328
  canTrack: t,
329
329
  apiKey: n,
@@ -337,10 +337,10 @@ const dn = async ({
337
337
  url: location.href,
338
338
  ...o
339
339
  },
340
- ...await dn({
340
+ ...await mn({
341
341
  canTrack: t
342
342
  }),
343
- userAttributes: it(),
343
+ userAttributes: lt(),
344
344
  ownerId: n
345
345
  }
346
346
  });
@@ -352,27 +352,27 @@ async function le({
352
352
  B.error("Missing API key for track call. Please provide your API key.");
353
353
  return;
354
354
  }
355
- if (!t.canTrack || P() || !(w() || E === "reactNative"))
355
+ if (!t.canTrack || A() || !(w() || E === "reactNative"))
356
356
  return;
357
357
  const o = `${e || "https://cdn.builder.io"}/api/v1/track`;
358
- return Ae(o), fetch(o, {
358
+ return Pe(o), fetch(o, {
359
359
  method: "POST",
360
360
  body: JSON.stringify({
361
- events: [await un(t)]
361
+ events: [await hn(t)]
362
362
  }),
363
363
  headers: {
364
364
  "content-type": "application/json",
365
- ...at()
365
+ ...dt()
366
366
  },
367
367
  mode: "cors"
368
368
  }).catch((r) => {
369
369
  console.error("Failed to track: ", r);
370
370
  });
371
371
  }
372
- const Is = (e) => le({
372
+ const Vs = (e) => le({
373
373
  ...e,
374
374
  canTrack: !0
375
- }), pn = ({
375
+ }), fn = ({
376
376
  builder: e,
377
377
  context: t,
378
378
  event: n,
@@ -384,11 +384,11 @@ const Is = (e) => le({
384
384
  builder: e,
385
385
  context: t,
386
386
  event: n
387
- }), mn = (e) => ({
388
- isEditing: P(),
387
+ }), bn = (e) => ({
388
+ isEditing: A(),
389
389
  isBrowser: w(),
390
390
  isServer: !w(),
391
- getUserAttributes: () => it(),
391
+ getUserAttributes: () => lt(),
392
392
  trackConversion: (t, n) => {
393
393
  !(e != null && e.apiKey) || (e == null ? void 0 : e.canTrack) === !1 || le({
394
394
  type: "conversion",
@@ -404,10 +404,10 @@ const Is = (e) => le({
404
404
  }
405
405
  });
406
406
  }
407
- }), hn = (e, {
407
+ }), gn = (e, {
408
408
  isExpression: t = !0
409
409
  }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
410
- function mt({
410
+ function bt({
411
411
  rootState: e,
412
412
  localState: t,
413
413
  rootSetState: n
@@ -417,7 +417,7 @@ function mt({
417
417
  if (t && r in t)
418
418
  return t[r];
419
419
  const i = o[r];
420
- return typeof i == "object" && i !== null ? mt({
420
+ return typeof i == "object" && i !== null ? bt({
421
421
  rootState: i,
422
422
  localState: void 0,
423
423
  rootSetState: n ? (s) => {
@@ -432,7 +432,7 @@ function mt({
432
432
  }
433
433
  });
434
434
  }
435
- const He = ({
435
+ const Me = ({
436
436
  code: e,
437
437
  builder: t,
438
438
  context: n,
@@ -441,11 +441,11 @@ const He = ({
441
441
  rootSetState: i,
442
442
  rootState: s
443
443
  }) => {
444
- const l = pn({
444
+ const l = fn({
445
445
  builder: t,
446
446
  context: n,
447
447
  event: o,
448
- state: mt({
448
+ state: bt({
449
449
  rootState: s,
450
450
  localState: r,
451
451
  rootSetState: i
@@ -453,23 +453,23 @@ const He = ({
453
453
  });
454
454
  return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
455
455
  };
456
- function fn() {
456
+ function yn() {
457
457
  var e;
458
458
  return typeof process < "u" && j((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
459
459
  }
460
- const bn = ({
460
+ const vn = ({
461
461
  shouldLogWarning: e
462
462
  }) => {
463
463
  var r;
464
- if (!fn())
464
+ if (!yn())
465
465
  return !1;
466
466
  const t = process.arch === "arm64", n = process.version.startsWith("v20"), o = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
467
467
  return t && n && !o ? (e && B.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
468
- }, gn = (e) => (w() || bn({
468
+ }, Sn = (e) => (w() || vn({
469
469
  shouldLogWarning: !0
470
- }), He(e)), yn = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, vn = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Sn = (e) => {
470
+ }), Me(e)), kn = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Cn = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Tn = (e) => {
471
471
  var t, n, o, r, i, s;
472
- return ((o = (n = (t = yn.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = vn.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
472
+ return ((o = (n = (t = kn.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = Cn.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
473
473
  };
474
474
  function te({
475
475
  code: e,
@@ -483,17 +483,17 @@ function te({
483
483
  }) {
484
484
  if (e.trim() === "")
485
485
  return;
486
- const a = Sn(e.trim());
486
+ const a = Tn(e.trim());
487
487
  if (a)
488
- return nt({
488
+ return it({
489
489
  ...o,
490
490
  ...n
491
491
  }, a);
492
492
  const u = {
493
- code: hn(e, {
493
+ code: gn(e, {
494
494
  isExpression: s
495
495
  }),
496
- builder: mn(l),
496
+ builder: bn(l),
497
497
  context: t,
498
498
  event: i,
499
499
  rootSetState: r,
@@ -501,7 +501,7 @@ function te({
501
501
  localState: n
502
502
  };
503
503
  try {
504
- return gn(u);
504
+ return Sn(u);
505
505
  } catch (p) {
506
506
  B.error("Failed code evaluation: " + p.message, {
507
507
  code: e
@@ -509,15 +509,15 @@ function te({
509
509
  return;
510
510
  }
511
511
  }
512
- function kn(e, t) {
512
+ function wn(e, t) {
513
513
  var n;
514
514
  return {
515
515
  ...(n = e.component) == null ? void 0 : n.options,
516
516
  ...e.options,
517
- ...Cn(e, t)
517
+ ...In(e, t)
518
518
  };
519
519
  }
520
- const Cn = (e, t) => {
520
+ const In = (e, t) => {
521
521
  var n, o;
522
522
  if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((o = e.component.options) != null && o.text) && typeof e.component.options.text == "string")
523
523
  return {
@@ -531,7 +531,7 @@ const Cn = (e, t) => {
531
531
  }))
532
532
  };
533
533
  };
534
- function Tn(e, ...t) {
534
+ function $n(e, ...t) {
535
535
  const n = Object.assign({}, e);
536
536
  for (const o of t)
537
537
  delete n[o];
@@ -554,30 +554,30 @@ function ce(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
554
554
  }), ce(s, t, e, i, r);
555
555
  }));
556
556
  }
557
- function ht(e) {
557
+ function gt(e) {
558
558
  return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
559
559
  }
560
- function wn(e) {
560
+ function En(e) {
561
561
  if (!e || !Object.getOwnPropertyNames(e).length)
562
562
  return !1;
563
563
  let t = !1;
564
564
  return ce(e, (n) => {
565
- if (ht(n)) {
565
+ if (gt(n)) {
566
566
  t = !0;
567
567
  return;
568
568
  }
569
569
  }), t;
570
570
  }
571
- function In(e, t) {
571
+ function Rn(e, t) {
572
572
  return !e || !Object.getOwnPropertyNames(e).length ? {} : (ce(e, (n, o) => {
573
- ht(n) && o(n[t] ?? void 0);
573
+ gt(n) && o(n[t] ?? void 0);
574
574
  }), e);
575
575
  }
576
- function $n(e, t) {
576
+ function An(e, t) {
577
577
  var n, o;
578
- return (n = e.component) != null && n.options && wn((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 = In(e.component.options, t ?? "Default")), e;
578
+ return (n = e.component) != null && n.options && En((o = e.component) == null ? void 0 : o.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = Rn(e.component.options, t ?? "Default")), e;
579
579
  }
580
- const Be = (e) => JSON.parse(JSON.stringify(e)), ft = (e, t, n) => {
580
+ const Be = (e) => JSON.parse(JSON.stringify(e)), yt = (e, t, n) => {
581
581
  if (Object(e) !== e)
582
582
  return e;
583
583
  const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
@@ -595,8 +595,8 @@ function Se(e) {
595
595
  n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = Se(e[n]));
596
596
  return t;
597
597
  }
598
- const En = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), Rn = (e) => {
599
- if (En) {
598
+ const Pn = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), Bn = (e) => {
599
+ if (Pn) {
600
600
  const t = Be(e);
601
601
  return {
602
602
  ...t,
@@ -608,7 +608,7 @@ const En = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), Rn = (e) =
608
608
  }
609
609
  };
610
610
  } else {
611
- const t = Se(Tn(e, "children", "meta"));
611
+ const t = Se($n(e, "children", "meta"));
612
612
  return {
613
613
  ...t,
614
614
  properties: {
@@ -621,7 +621,7 @@ const En = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), Rn = (e) =
621
621
  meta: e.meta
622
622
  };
623
623
  }
624
- }, Pn = ({
624
+ }, Vn = ({
625
625
  block: e,
626
626
  context: t,
627
627
  localState: n,
@@ -630,7 +630,7 @@ const En = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), Rn = (e) =
630
630
  }) => {
631
631
  if (!e.bindings)
632
632
  return e;
633
- const i = Rn(e);
633
+ const i = Bn(e);
634
634
  for (const s in e.bindings) {
635
635
  const l = e.bindings[s], a = te({
636
636
  code: l,
@@ -639,11 +639,11 @@ const En = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), Rn = (e) =
639
639
  rootSetState: r,
640
640
  context: t
641
641
  });
642
- ft(i, s, a);
642
+ yt(i, s, a);
643
643
  }
644
644
  return i;
645
645
  };
646
- function An({
646
+ function Nn({
647
647
  block: e,
648
648
  context: t,
649
649
  localState: n,
@@ -651,33 +651,33 @@ function An({
651
651
  rootSetState: r
652
652
  }) {
653
653
  let i = e;
654
- return i = Pn({
654
+ return i = Vn({
655
655
  block: i,
656
656
  localState: n,
657
657
  rootState: o,
658
658
  rootSetState: r,
659
659
  context: t
660
- }), i = $n(i, o.locale), i;
660
+ }), i = An(i, o.locale), i;
661
661
  }
662
662
  function Ve(e) {
663
663
  const t = e || (w() ? window.location.search : void 0);
664
- return t ? rt(t).indexOf("builder.preview=") !== -1 : !1;
664
+ return t ? at(t).indexOf("builder.preview=") !== -1 : !1;
665
665
  }
666
- const Bn = (e) => ({
666
+ const On = (e) => ({
667
667
  type: "builder.registerComponent",
668
668
  data: de(e)
669
- }), Vn = (e) => {
669
+ }), Wn = (e) => {
670
670
  const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
671
671
  return `return (${!t.startsWith("function") && !t.startsWith("async") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
672
672
  };
673
673
  function de(e) {
674
- return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? Vn(n) : n));
674
+ return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? Wn(n) : n));
675
675
  }
676
- const Me = {};
677
- function $s(e, t) {
676
+ const He = {};
677
+ function Ns(e, t) {
678
678
  e === "plugin" && (t = de(t));
679
- let n = Me[e];
680
- if (n || (n = Me[e] = []), n.push(t), w()) {
679
+ let n = He[e];
680
+ if (n || (n = He[e] = []), n.push(t), w()) {
681
681
  const o = {
682
682
  type: "builder.register",
683
683
  data: {
@@ -692,7 +692,7 @@ function $s(e, t) {
692
692
  }
693
693
  }
694
694
  }
695
- function Es(e) {
695
+ function Os(e) {
696
696
  var t;
697
697
  if (w()) {
698
698
  const n = JSON.parse(JSON.stringify(e));
@@ -703,7 +703,7 @@ function Es(e) {
703
703
  }
704
704
  }
705
705
  const je = {};
706
- function Rs(e) {
706
+ function Ws(e) {
707
707
  if (w()) {
708
708
  Object.assign(je, e);
709
709
  const t = {
@@ -713,39 +713,39 @@ function Rs(e) {
713
713
  parent.postMessage(t, "*");
714
714
  }
715
715
  }
716
- const ze = "builder.", Nn = "options.", bt = (e) => {
716
+ const ze = "builder.", Dn = "options.", vt = (e) => {
717
717
  if (!e)
718
718
  return {};
719
- const t = ot(e), n = {};
719
+ const t = st(e), n = {};
720
720
  return Object.keys(t).forEach((o) => {
721
721
  if (o.startsWith(ze)) {
722
- const r = o.replace(ze, "").replace(Nn, "");
722
+ const r = o.replace(ze, "").replace(Dn, "");
723
723
  n[r] = t[o];
724
724
  }
725
725
  }), n;
726
- }, On = () => {
726
+ }, Un = () => {
727
727
  if (!w())
728
728
  return {};
729
729
  const e = new URLSearchParams(window.location.search);
730
- return bt(e);
731
- }, Wn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
732
- function gt(e, t) {
730
+ return vt(e);
731
+ }, xn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
732
+ function St(e, t) {
733
733
  let n;
734
734
  try {
735
735
  n = new URL(t.origin);
736
736
  } catch {
737
737
  return !1;
738
738
  }
739
- return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e || Wn).findIndex((o) => o.startsWith("*.") ? n.hostname.endsWith(o.slice(1)) : o === n.hostname) > -1;
739
+ return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e || xn).findIndex((o) => o.startsWith("*.") ? n.hostname.endsWith(o.slice(1)) : o === n.hostname) > -1;
740
740
  }
741
741
  let Ke = !1;
742
- const yt = (e) => {
742
+ const kt = (e) => {
743
743
  var t, n;
744
744
  Ke || (Ke = !0, w() && ((t = window.parent) == null || t.postMessage({
745
745
  type: "builder.sdkInfo",
746
746
  data: {
747
747
  target: E,
748
- version: st,
748
+ version: ct,
749
749
  supportsPatchUpdates: !1,
750
750
  // Supports builder-model="..." attribute which is needed to
751
751
  // scope our '+ add block' button styling
@@ -763,7 +763,7 @@ const yt = (e) => {
763
763
  }
764
764
  }, "*"), window.addEventListener("message", (o) => {
765
765
  var i, s;
766
- if (!gt(e.trustedHosts, o))
766
+ if (!St(e.trustedHosts, o))
767
767
  return;
768
768
  const {
769
769
  data: r
@@ -804,12 +804,12 @@ const yt = (e) => {
804
804
  }
805
805
  }
806
806
  })));
807
- }, vt = ({
807
+ }, Ct = ({
808
808
  model: e,
809
809
  trustedHosts: t,
810
810
  callbacks: n
811
811
  }) => (o) => {
812
- if (!gt(t, o))
812
+ if (!St(t, o))
813
813
  return;
814
814
  const {
815
815
  data: r
@@ -835,7 +835,7 @@ const yt = (e) => {
835
835
  break;
836
836
  }
837
837
  }
838
- }, Ps = ({
838
+ }, Ds = ({
839
839
  model: e,
840
840
  apiKey: t,
841
841
  callback: n,
@@ -844,11 +844,11 @@ const yt = (e) => {
844
844
  if (!w)
845
845
  return B.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
846
846
  };
847
- yt({
847
+ kt({
848
848
  modelName: e,
849
849
  apiKey: t
850
850
  });
851
- const r = vt({
851
+ const r = Ct({
852
852
  callbacks: {
853
853
  contentUpdate: n,
854
854
  animation: () => {
@@ -864,24 +864,24 @@ const yt = (e) => {
864
864
  return window.addEventListener("message", r), () => {
865
865
  window.removeEventListener("message", r);
866
866
  };
867
- }, Dn = "builder.tests", Ne = (e) => `${Dn}.${e}`, xn = ({
867
+ }, Ln = "builder.tests", Ne = (e) => `${Ln}.${e}`, Fn = ({
868
868
  contentId: e
869
- }) => lt({
869
+ }) => ut({
870
870
  name: Ne(e),
871
871
  canTrack: !0
872
- }), Un = ({
872
+ }), Mn = ({
873
873
  contentId: e
874
874
  }) => me({
875
875
  name: Ne(e),
876
876
  canTrack: !0
877
- }), Ln = ({
877
+ }), Hn = ({
878
878
  contentId: e,
879
879
  value: t
880
- }) => Pe({
880
+ }) => Ae({
881
881
  name: Ne(e),
882
882
  value: t,
883
883
  canTrack: !0
884
- }), St = (e) => j(e.id) && j(e.variations) && Object.keys(e.variations).length > 0, Fn = ({
884
+ }), Tt = (e) => j(e.id) && j(e.variations) && Object.keys(e.variations).length > 0, jn = ({
885
885
  id: e,
886
886
  variations: t
887
887
  }) => {
@@ -894,15 +894,15 @@ const yt = (e) => {
894
894
  return i;
895
895
  }
896
896
  return e;
897
- }, kt = (e) => {
898
- const t = Fn(e);
899
- return Ln({
897
+ }, wt = (e) => {
898
+ const t = jn(e);
899
+ return Hn({
900
900
  contentId: e.id,
901
901
  value: t
902
902
  }).catch((n) => {
903
903
  B.error("could not store A/B test variation: ", n);
904
904
  }), t;
905
- }, Ct = ({
905
+ }, It = ({
906
906
  item: e,
907
907
  testGroupId: t
908
908
  }) => {
@@ -916,7 +916,7 @@ const yt = (e) => {
916
916
  testVariationId: n.id,
917
917
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
918
918
  };
919
- }, Hn = ({
919
+ }, zn = ({
920
920
  item: e,
921
921
  canTrack: t
922
922
  }) => {
@@ -924,14 +924,14 @@ const yt = (e) => {
924
924
  return e;
925
925
  if (!e)
926
926
  return;
927
- if (!St(e))
927
+ if (!Tt(e))
928
928
  return e;
929
- const n = Un({
929
+ const n = Mn({
930
930
  contentId: e.id
931
- }) || kt({
931
+ }) || wt({
932
932
  variations: e.variations,
933
933
  id: e.id
934
- }), o = Ct({
934
+ }), o = It({
935
935
  item: e,
936
936
  testGroupId: n
937
937
  });
@@ -939,18 +939,18 @@ const yt = (e) => {
939
939
  ...e,
940
940
  ...o
941
941
  };
942
- }, Mn = async ({
942
+ }, Kn = async ({
943
943
  item: e,
944
944
  canTrack: t
945
945
  }) => {
946
- if (!t || !St(e))
946
+ if (!t || !Tt(e))
947
947
  return e;
948
- const o = await xn({
948
+ const o = await Fn({
949
949
  contentId: e.id
950
- }) || kt({
950
+ }) || wt({
951
951
  variations: e.variations,
952
952
  id: e.id
953
- }), r = Ct({
953
+ }), r = It({
954
954
  item: e,
955
955
  testGroupId: o
956
956
  });
@@ -959,61 +959,82 @@ const yt = (e) => {
959
959
  ...r
960
960
  };
961
961
  };
962
- const qe = "builder.userAttributes";
963
- function Ge() {
962
+ const qn = "builder.preview", Gn = "BUILDER_STUDIO", qe = "builder.userAttributes.", Jn = (e) => e === "true" ? !0 : e === "false" ? !1 : e, Ge = () => {
963
+ if (!w())
964
+ return {};
965
+ const e = new URLSearchParams(window.location.search);
966
+ if (e.get(qn) !== Gn)
967
+ return {};
968
+ const t = {};
969
+ return e.forEach((n, o) => {
970
+ o.startsWith(qe) && (t[o.slice(qe.length)] = Jn(n));
971
+ }), t;
972
+ }, Je = "builder.userAttributes";
973
+ function Qe() {
964
974
  let e = !0;
965
- const t = /* @__PURE__ */ new Set();
975
+ const t = /* @__PURE__ */ new Set(), n = () => {
976
+ const o = me({
977
+ name: Je,
978
+ canTrack: e
979
+ });
980
+ return o ? JSON.parse(o) : {};
981
+ };
966
982
  return {
967
- setUserAttributes(n) {
983
+ setUserAttributes(o) {
968
984
  if (!w())
969
985
  return;
970
- const o = {
971
- ...this.getUserAttributes(),
972
- ...n
986
+ const r = {
987
+ ...n(),
988
+ ...o
973
989
  };
974
- Pe({
975
- name: qe,
976
- value: JSON.stringify(o),
990
+ Ae({
991
+ name: Je,
992
+ value: JSON.stringify(r),
977
993
  canTrack: e
978
- }), t.forEach((r) => r(o));
994
+ });
995
+ const i = Ge();
996
+ t.forEach((s) => s({
997
+ ...r,
998
+ ...i
999
+ }));
979
1000
  },
980
1001
  getUserAttributes() {
981
- return w() ? JSON.parse(me({
982
- name: qe,
983
- canTrack: e
984
- }) || "{}") : {};
1002
+ return w() ? {
1003
+ ...n(),
1004
+ ...Ge()
1005
+ } : {};
985
1006
  },
986
- subscribeOnUserAttributesChange(n, {
987
- fireImmediately: o
1007
+ subscribeOnUserAttributesChange(o, {
1008
+ fireImmediately: r
988
1009
  } = {}) {
989
- return t.add(n), o && n(this.getUserAttributes()), function() {
990
- t.delete(n);
1010
+ return t.add(o), r && o(this.getUserAttributes()), function() {
1011
+ t.delete(o);
991
1012
  };
992
1013
  },
993
- setCanTrack(n) {
994
- e = n;
1014
+ setCanTrack(o) {
1015
+ e = o;
995
1016
  }
996
1017
  };
997
1018
  }
998
1019
  let ke;
999
- w() && E === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = Ge()), ke = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : ke = Ge();
1000
- const ue = ke, As = (e) => {
1020
+ w() && E === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = Qe()), ke = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : ke = Qe();
1021
+ const ue = ke, Us = (e) => {
1001
1022
  ue.setUserAttributes(e);
1002
1023
  }, J = (e) => {
1003
1024
  const t = j(e) ? e : !0;
1004
1025
  return ue.setCanTrack(t), t;
1005
1026
  };
1006
- function jn() {
1027
+ function Qn() {
1007
1028
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
1008
1029
  }
1009
- function zn() {
1010
- const e = jn().fetch;
1030
+ function _n() {
1031
+ const e = Qn().fetch;
1011
1032
  if (typeof e > "u")
1012
1033
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
1013
1034
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
1014
1035
  return e;
1015
1036
  }
1016
- const Kn = zn();
1037
+ const Yn = _n();
1017
1038
  function Ce(e, t = null, n = ".") {
1018
1039
  return Object.keys(e).reduce((o, r) => {
1019
1040
  const i = e[r], s = [t, r].filter(Boolean).join(n);
@@ -1026,14 +1047,14 @@ function Ce(e, t = null, n = ".") {
1026
1047
  };
1027
1048
  }, {});
1028
1049
  }
1029
- function Tt(e, t, n = {}) {
1050
+ function $t(e, t, n = {}) {
1030
1051
  for (const o in e) {
1031
1052
  const r = e[o], i = t ? t + "." + o : o;
1032
- r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? Tt(r, i, n) : n[i] = r;
1053
+ r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? $t(r, i, n) : n[i] = r;
1033
1054
  }
1034
1055
  return n;
1035
1056
  }
1036
- function qn(e) {
1057
+ function Xn(e) {
1037
1058
  const t = {};
1038
1059
  for (const n in e) {
1039
1060
  const o = n.split(".");
@@ -1045,7 +1066,7 @@ function qn(e) {
1045
1066
  }
1046
1067
  return t;
1047
1068
  }
1048
- const Gn = "v3", Je = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Oe = (e) => {
1069
+ const Zn = "v3", _e = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Oe = (e) => {
1049
1070
  const {
1050
1071
  limit: t = 30,
1051
1072
  userAttributes: n,
@@ -1055,24 +1076,24 @@ const Gn = "v3", Je = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Oe = (
1055
1076
  enrich: s,
1056
1077
  enrichOptions: l,
1057
1078
  locale: a,
1058
- apiVersion: u = Gn,
1079
+ apiVersion: u = Zn,
1059
1080
  fields: p,
1060
1081
  omit: b,
1061
1082
  offset: c,
1062
1083
  cacheSeconds: m,
1063
1084
  staleCacheSeconds: f,
1064
1085
  sort: g,
1065
- includeUnpublished: A,
1066
- apiHost: x
1086
+ includeUnpublished: P,
1087
+ apiHost: U
1067
1088
  } = e;
1068
1089
  if (!i)
1069
1090
  throw new Error("Missing API key");
1070
1091
  if (!["v3"].includes(u))
1071
1092
  throw new Error(`Invalid apiVersion: expected 'v3', received '${u}'`);
1072
- const V = t !== 1, q = x || "https://cdn.builder.io", C = new URL(`${q}/api/${u}/content/${r}`);
1093
+ const V = t !== 1, q = U || "https://cdn.builder.io", C = new URL(`${q}/api/${u}/content/${r}`);
1073
1094
  C.searchParams.set("apiKey", i), C.searchParams.set("limit", String(t)), C.searchParams.set("noTraverse", String(V)), C.searchParams.set("includeRefs", String(!0)), a && C.searchParams.set("locale", a);
1074
1095
  let z = n || {};
1075
- if (s && C.searchParams.set("enrich", String(s)), s && l && C.searchParams.set("enrichOptions", JSON.stringify(l)), C.searchParams.set("omit", b ?? "meta.componentsUsed"), p && C.searchParams.set("fields", p), Number.isFinite(c) && c > -1 && C.searchParams.set("offset", String(Math.floor(c))), typeof A == "boolean" && C.searchParams.set("includeUnpublished", String(A)), m && Je(m) && C.searchParams.set("cacheSeconds", String(m)), f && Je(f) && C.searchParams.set("staleCacheSeconds", String(f)), g) {
1096
+ if (s && C.searchParams.set("enrich", String(s)), s && l && C.searchParams.set("enrichOptions", JSON.stringify(l)), C.searchParams.set("omit", b ?? "meta.componentsUsed"), p && C.searchParams.set("fields", p), Number.isFinite(c) && c > -1 && C.searchParams.set("offset", String(Math.floor(c))), typeof P == "boolean" && C.searchParams.set("includeUnpublished", String(P)), m && _e(m) && C.searchParams.set("cacheSeconds", String(m)), f && _e(f) && C.searchParams.set("staleCacheSeconds", String(f)), g) {
1076
1097
  const W = Ce({
1077
1098
  sort: g
1078
1099
  });
@@ -1080,39 +1101,39 @@ const Gn = "v3", Je = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Oe = (
1080
1101
  C.searchParams.set(F, JSON.stringify(W[F]));
1081
1102
  }
1082
1103
  const Q = {
1083
- ...On(),
1084
- ...ot(e.options || {})
1104
+ ...Un(),
1105
+ ...st(e.options || {})
1085
1106
  };
1086
1107
  z = {
1087
1108
  ...z,
1088
- ...Yn(Q)
1109
+ ...no(Q)
1089
1110
  };
1090
- const Y = Ce(Q);
1091
- for (const W in Y)
1092
- C.searchParams.set(W, String(Y[W]));
1111
+ const _ = Ce(Q);
1112
+ for (const W in _)
1113
+ C.searchParams.set(W, String(_[W]));
1093
1114
  if (Object.keys(z).length > 0 && C.searchParams.set("userAttributes", JSON.stringify(z)), o) {
1094
- const W = Tt({
1115
+ const W = $t({
1095
1116
  query: o
1096
1117
  });
1097
1118
  for (const F in W)
1098
1119
  C.searchParams.set(F, JSON.stringify(W[F]));
1099
1120
  }
1100
1121
  return C;
1101
- }, Jn = (e) => e === "true" ? !0 : e === "false" ? !1 : e, Qn = (e) => {
1122
+ }, eo = (e) => e === "true" ? !0 : e === "false" ? !1 : e, to = (e) => {
1102
1123
  const t = {};
1103
1124
  for (const n in e)
1104
- n.startsWith("userAttributes.") && (t[n] = Jn(e[n]), delete e[n]);
1125
+ n.startsWith("userAttributes.") && (t[n] = eo(e[n]), delete e[n]);
1105
1126
  return t;
1106
- }, Yn = (e) => {
1127
+ }, no = (e) => {
1107
1128
  if (w() && e.preview === "BUILDER_STUDIO") {
1108
1129
  e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
1109
- const t = Qn(e), {
1130
+ const t = to(e), {
1110
1131
  userAttributes: n
1111
- } = qn(t);
1132
+ } = Xn(t);
1112
1133
  return n;
1113
1134
  }
1114
1135
  return {};
1115
- }, Xn = (e) => "results" in e;
1136
+ }, oo = (e) => "results" in e;
1116
1137
  async function We(e) {
1117
1138
  var o;
1118
1139
  const t = e.locale || ((o = e.userAttributes) == null ? void 0 : o.locale);
@@ -1120,30 +1141,30 @@ async function We(e) {
1120
1141
  locale: t,
1121
1142
  ...e.userAttributes
1122
1143
  });
1123
- const n = await eo({
1144
+ const n = await so({
1124
1145
  ...e,
1125
1146
  limit: 1
1126
1147
  });
1127
1148
  return n && n[0] || null;
1128
1149
  }
1129
- const Zn = async (e) => {
1150
+ const ro = async (e) => {
1130
1151
  var s;
1131
- const t = Oe(e), n = e.fetch ?? Kn, o = {
1152
+ const t = Oe(e), n = e.fetch ?? Yn, o = {
1132
1153
  ...e.fetchOptions,
1133
1154
  headers: {
1134
1155
  ...(s = e.fetchOptions) == null ? void 0 : s.headers,
1135
- ...at()
1156
+ ...dt()
1136
1157
  }
1137
1158
  };
1138
1159
  return await (await n(t.href, o)).json();
1139
- }, _n = async (e, t, n = Oe(e)) => {
1160
+ }, io = async (e, t, n = Oe(e)) => {
1140
1161
  const o = J(e.canTrack);
1141
1162
  if (n.search.includes("preview="), !o || !(w() || E === "reactNative"))
1142
1163
  return t.results;
1143
1164
  try {
1144
1165
  const r = [];
1145
1166
  for (const i of t.results)
1146
- r.push(await Mn({
1167
+ r.push(await Kn({
1147
1168
  item: i,
1148
1169
  canTrack: o
1149
1170
  }));
@@ -1153,17 +1174,17 @@ const Zn = async (e) => {
1153
1174
  }
1154
1175
  return t.results;
1155
1176
  };
1156
- async function eo(e) {
1157
- const t = Oe(e), n = await Zn(e);
1158
- if (!Xn(n))
1177
+ async function so(e) {
1178
+ const t = Oe(e), n = await ro(e);
1179
+ if (!oo(n))
1159
1180
  throw B.error("Error fetching data. ", {
1160
1181
  url: t,
1161
1182
  content: n,
1162
1183
  options: e
1163
1184
  }), n;
1164
- return _n(e, n);
1185
+ return io(e, n);
1165
1186
  }
1166
- const Bs = async (e) => {
1187
+ const xs = async (e) => {
1167
1188
  var o, r, i;
1168
1189
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
1169
1190
  ...e,
@@ -1175,7 +1196,7 @@ const Bs = async (e) => {
1175
1196
  urlPath: t
1176
1197
  } : {}
1177
1198
  },
1178
- options: bt(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
1199
+ options: vt(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
1179
1200
  };
1180
1201
  return {
1181
1202
  apiKey: n.apiKey,
@@ -1183,7 +1204,7 @@ const Bs = async (e) => {
1183
1204
  content: await We(n)
1184
1205
  };
1185
1206
  }, De = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
1186
- function to(e, t, n = {}) {
1207
+ function ao(e, t, n = {}) {
1187
1208
  let o, r, i, s = null, l = 0;
1188
1209
  const a = function() {
1189
1210
  l = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
@@ -1195,7 +1216,7 @@ function to(e, t, n = {}) {
1195
1216
  return o = this, r = arguments, p <= 0 || p > t ? (s && (clearTimeout(s), s = null), l = u, i = e.apply(o, r), s || (o = r = null)) : !s && n.trailing !== !1 && (s = setTimeout(a, p)), i;
1196
1217
  };
1197
1218
  }
1198
- function _(e, ...t) {
1219
+ function Z(e, ...t) {
1199
1220
  const n = Object(e);
1200
1221
  for (let o = 1; o < arguments.length; o++) {
1201
1222
  const r = arguments[o];
@@ -1205,64 +1226,64 @@ function _(e, ...t) {
1205
1226
  }
1206
1227
  return n;
1207
1228
  }
1208
- function no(e) {
1229
+ function lo(e) {
1209
1230
  for (const t of e)
1210
1231
  switch (t.trigger) {
1211
1232
  case "pageLoad":
1212
- $t(t);
1233
+ At(t);
1213
1234
  break;
1214
1235
  case "scrollInView":
1215
- ro(t);
1236
+ uo(t);
1216
1237
  break;
1217
1238
  }
1218
1239
  }
1219
- function wt(e) {
1240
+ function Et(e) {
1220
1241
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
1221
1242
  }
1222
- function It(e, t) {
1223
- const n = oo(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
1243
+ function Rt(e, t) {
1244
+ const n = co(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
1224
1245
  for (const l of s)
1225
1246
  for (const a of n)
1226
1247
  a in l || (l[a] = o[a]);
1227
1248
  }
1228
- function oo(e) {
1249
+ function co(e) {
1229
1250
  const t = [];
1230
1251
  for (const n of e.steps)
1231
1252
  for (const o in n.styles)
1232
1253
  t.indexOf(o) === -1 && t.push(o);
1233
1254
  return t;
1234
1255
  }
1235
- function $t(e) {
1256
+ function At(e) {
1236
1257
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
1237
1258
  if (!t.length) {
1238
- wt(e.elementId || e.id || "");
1259
+ Et(e.elementId || e.id || "");
1239
1260
  return;
1240
1261
  }
1241
1262
  Array.from(t).forEach((n) => {
1242
- It(e, n), n.style.transition = "none", n.style.transitionDelay = "0", _(n.style, e.steps[0].styles), setTimeout(() => {
1243
- n.style.transition = `all ${e.duration}s ${De(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), _(n.style, e.steps[1].styles), setTimeout(() => {
1263
+ Rt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Z(n.style, e.steps[0].styles), setTimeout(() => {
1264
+ n.style.transition = `all ${e.duration}s ${De(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Z(n.style, e.steps[1].styles), setTimeout(() => {
1244
1265
  n.style.transition = "", n.style.transitionDelay = "";
1245
1266
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
1246
1267
  });
1247
1268
  });
1248
1269
  }
1249
- function ro(e) {
1270
+ function uo(e) {
1250
1271
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
1251
1272
  if (!t.length) {
1252
- wt(e.elementId || e.id || "");
1273
+ Et(e.elementId || e.id || "");
1253
1274
  return;
1254
1275
  }
1255
1276
  Array.from(t).forEach((n) => {
1256
- It(e, n);
1277
+ Rt(e, n);
1257
1278
  let o = !1, r = !1;
1258
1279
  function i() {
1259
1280
  !o && l(n) ? (o = !0, r = !0, setTimeout(() => {
1260
- _(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
1281
+ Z(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
1261
1282
  r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
1262
1283
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
1263
- })) : e.repeat && o && !r && !l(n) && (o = !1, _(n.style, e.steps[0].styles));
1284
+ })) : e.repeat && o && !r && !l(n) && (o = !1, Z(n.style, e.steps[0].styles));
1264
1285
  }
1265
- const s = to(i, 200, {
1286
+ const s = ao(i, 200, {
1266
1287
  leading: !1
1267
1288
  });
1268
1289
  function l(p) {
@@ -1271,7 +1292,7 @@ function ro(e) {
1271
1292
  }
1272
1293
  const a = e.steps[0].styles;
1273
1294
  function u() {
1274
- _(n.style, a);
1295
+ Z(n.style, a);
1275
1296
  }
1276
1297
  u(), setTimeout(() => {
1277
1298
  n.style.transition = `all ${e.duration}s ${De(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
@@ -1287,48 +1308,48 @@ const re = (e, t) => {
1287
1308
  ...e,
1288
1309
  "--builder-image-position": n
1289
1310
  } : e;
1290
- }, Vs = (e, t) => t ? {
1311
+ }, Ls = (e, t) => t ? {
1291
1312
  ...e,
1292
1313
  large: re(e == null ? void 0 : e.large, "initial"),
1293
1314
  medium: re(e == null ? void 0 : e.medium),
1294
1315
  small: re(e == null ? void 0 : e.small),
1295
1316
  xsmall: re(e == null ? void 0 : e.xsmall)
1296
- } : e, Et = (e) => Object.entries(e).map(([n, o]) => {
1317
+ } : e, Pt = (e) => Object.entries(e).map(([n, o]) => {
1297
1318
  if (typeof o == "string")
1298
1319
  return `${De(n)}: ${o};`;
1299
- }).filter(j), io = (e) => Et(e).join(`
1300
- `), Ns = ({
1320
+ }).filter(j), po = (e) => Pt(e).join(`
1321
+ `), Fs = ({
1301
1322
  mediaQuery: e,
1302
1323
  className: t,
1303
1324
  styles: n
1304
1325
  }) => {
1305
1326
  const o = `.${t} {
1306
- ${io(n)}
1327
+ ${po(n)}
1307
1328
  }`;
1308
1329
  return e ? `${e} {
1309
1330
  ${o}
1310
1331
  }` : o;
1311
1332
  };
1312
- function so({
1333
+ function mo({
1313
1334
  style: e
1314
1335
  }) {
1315
1336
  return e;
1316
1337
  }
1317
- const Os = ({
1338
+ const Ms = ({
1318
1339
  block: e,
1319
1340
  context: t
1320
- }) => Rt(so({
1341
+ }) => Bt(mo({
1321
1342
  style: e.style || {},
1322
1343
  context: t,
1323
1344
  block: e
1324
1345
  }));
1325
- function Rt(e) {
1346
+ function Bt(e) {
1326
1347
  switch (E) {
1327
1348
  case "svelte":
1328
1349
  case "vue":
1329
1350
  case "solid":
1330
1351
  case "angular":
1331
- return Et(e).join(" ");
1352
+ return Pt(e).join(" ");
1332
1353
  case "qwik":
1333
1354
  case "reactNative":
1334
1355
  case "react":
@@ -1336,7 +1357,7 @@ function Rt(e) {
1336
1357
  return e;
1337
1358
  }
1338
1359
  }
1339
- const Pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, ao = ({
1360
+ const Vt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, ho = ({
1340
1361
  block: e,
1341
1362
  registeredComponents: t,
1342
1363
  model: n
@@ -1346,14 +1367,14 @@ const Pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1346
1367
  if (!o)
1347
1368
  return null;
1348
1369
  const r = t[o];
1349
- if (!r || Pt(r, n)) {
1370
+ if (!r || Vt(r, n)) {
1350
1371
  console.warn(`
1351
1372
  Could not find a registered component named "${o}".
1352
1373
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
1353
1374
  return;
1354
1375
  } else
1355
1376
  return r;
1356
- }, lo = ({
1377
+ }, fo = ({
1357
1378
  block: e,
1358
1379
  context: t
1359
1380
  }) => {
@@ -1386,59 +1407,59 @@ const Pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1386
1407
  },
1387
1408
  block: o
1388
1409
  }));
1389
- }, co = (e, t) => {
1410
+ }, bo = (e, t) => {
1390
1411
  var n;
1391
1412
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
1392
1413
  builderLinkComponent: t
1393
1414
  } : {};
1394
- }, uo = (e, t, n) => {
1415
+ }, go = (e, t, n) => {
1395
1416
  var o;
1396
1417
  return (o = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && o.builderComponents ? {
1397
- builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !Pt(s, n)))
1418
+ builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !Vt(s, n)))
1398
1419
  } : {};
1399
- }, po = (e, t) => {
1420
+ }, yo = (e, t) => {
1400
1421
  var n;
1401
1422
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
1402
1423
  builderBlock: t
1403
1424
  } : {};
1404
- }, mo = (e, t) => {
1425
+ }, vo = (e, t) => {
1405
1426
  var n;
1406
1427
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
1407
1428
  builderContext: t
1408
1429
  } : {};
1409
- }, ho = (e) => e.toString(), fo = () => Promise.resolve().then(() => Po).then((e) => e.default).catch((e) => {
1430
+ }, So = (e) => e.toString(), ko = () => Promise.resolve().then(() => Wo).then((e) => e.default).catch((e) => {
1410
1431
  throw console.error(
1411
1432
  "Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
1412
1433
  e
1413
1434
  ), e;
1414
- }), bo = () => import("./block-wrapper-H2uWRFfl.js").then((e) => e.default).catch((e) => {
1435
+ }), Co = () => import("./block-wrapper-b4XqsSBv.js").then((e) => e.default).catch((e) => {
1415
1436
  throw console.error(
1416
1437
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
1417
1438
  e
1418
1439
  ), e;
1419
- }), go = () => import("./component-ref-pzekKy-e.js").then((e) => e.default).catch((e) => {
1440
+ }), To = () => import("./component-ref-RNH8q_Ct.js").then((e) => e.default).catch((e) => {
1420
1441
  throw console.error(
1421
1442
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
1422
1443
  e
1423
1444
  ), e;
1424
- }), yo = () => import("./repeated-block-z4-Tq0vb.js").then((e) => e.default).catch((e) => {
1445
+ }), wo = () => import("./repeated-block-qKqkpCg_.js").then((e) => e.default).catch((e) => {
1425
1446
  throw console.error(
1426
1447
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
1427
1448
  e
1428
1449
  ), e;
1429
- }), vo = () => import("./style-wrapper-XQIDj12j.js").then((e) => e.default).catch((e) => {
1450
+ }), Io = () => import("./style-wrapper-nYNv2BeU.js").then((e) => e.default).catch((e) => {
1430
1451
  throw console.error(
1431
1452
  "Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
1432
1453
  e
1433
1454
  ), e;
1434
- }), So = y({
1455
+ }), $o = y({
1435
1456
  name: "block",
1436
1457
  components: {
1437
- StyleWrapper: X(vo),
1438
- RepeatedBlock: X(yo),
1439
- ComponentRef: X(go),
1440
- BlockWrapper: X(bo),
1441
- DynamicDiv: X(fo)
1458
+ StyleWrapper: Y(Io),
1459
+ RepeatedBlock: Y(wo),
1460
+ ComponentRef: Y(To),
1461
+ BlockWrapper: Y(Co),
1462
+ DynamicDiv: Y(ko)
1442
1463
  },
1443
1464
  props: ["block", "context", "registeredComponents", "linkComponent"],
1444
1465
  data() {
@@ -1447,12 +1468,12 @@ const Pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1447
1468
  value: null,
1448
1469
  update: !1
1449
1470
  },
1450
- generateKey: ho
1471
+ generateKey: So
1451
1472
  };
1452
1473
  },
1453
1474
  mounted() {
1454
1475
  const e = this.processedBlock.id, t = this.processedBlock.animations;
1455
- t && e && no(
1476
+ t && e && lo(
1456
1477
  t.map((n) => ({
1457
1478
  ...n,
1458
1479
  elementId: e
@@ -1463,14 +1484,14 @@ const Pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1463
1484
  },
1464
1485
  computed: {
1465
1486
  repeatItem() {
1466
- return lo({
1487
+ return fo({
1467
1488
  block: this.block,
1468
1489
  context: this.context
1469
1490
  });
1470
1491
  },
1471
1492
  processedBlock() {
1472
1493
  var t;
1473
- return (t = this.block.repeat) != null && t.collection ? this.block : An({
1494
+ return (t = this.block.repeat) != null && t.collection ? this.block : Nn({
1474
1495
  block: this.block,
1475
1496
  localState: this.context.localState,
1476
1497
  rootState: this.context.rootState,
@@ -1479,7 +1500,7 @@ const Pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1479
1500
  });
1480
1501
  },
1481
1502
  blockComponent() {
1482
- return ao({
1503
+ return ho({
1483
1504
  block: this.processedBlock,
1484
1505
  registeredComponents: this.registeredComponents,
1485
1506
  model: this.context.model
@@ -1506,11 +1527,11 @@ const Pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1506
1527
  blockChildren: this.processedBlock.children ?? [],
1507
1528
  componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
1508
1529
  componentOptions: {
1509
- ...kn(this.processedBlock, this.context),
1510
- ...po(this.blockComponent, this.processedBlock),
1511
- ...mo(this.blockComponent, this.context),
1512
- ...co(this.blockComponent, this.linkComponent),
1513
- ...uo(
1530
+ ...wn(this.processedBlock, this.context),
1531
+ ...yo(this.blockComponent, this.processedBlock),
1532
+ ...vo(this.blockComponent, this.context),
1533
+ ...bo(this.blockComponent, this.linkComponent),
1534
+ ...go(
1514
1535
  this.blockComponent,
1515
1536
  this.registeredComponents,
1516
1537
  this.context.model
@@ -1526,7 +1547,7 @@ const Pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1526
1547
  }
1527
1548
  }
1528
1549
  });
1529
- function ko(e, t, n, o, r, i) {
1550
+ function Eo(e, t, n, o, r, i) {
1530
1551
  var b;
1531
1552
  const s = k("StyleWrapper"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), p = k("RepeatedBlock");
1532
1553
  return e.canShowBlock ? (d(), h(I, { key: 0 }, [
@@ -1592,10 +1613,10 @@ function ko(e, t, n, o, r, i) {
1592
1613
  ], 64))
1593
1614
  ], 64)) : T("", !0);
1594
1615
  }
1595
- const At = /* @__PURE__ */ v(So, [["render", ko]]), Ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1616
+ const Nt = /* @__PURE__ */ v($o, [["render", Eo]]), Hs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1596
1617
  __proto__: null,
1597
- default: At
1598
- }, Symbol.toStringTag, { value: "Module" })), Co = y({
1618
+ default: Nt
1619
+ }, Symbol.toStringTag, { value: "Module" })), Ro = y({
1599
1620
  name: "builder-blocks-wrapper",
1600
1621
  props: [
1601
1622
  "blocks",
@@ -1639,7 +1660,7 @@ const At = /* @__PURE__ */ v(So, [["render", ko]]), Ws = /* @__PURE__ */ Object.
1639
1660
  methods: {
1640
1661
  onClick() {
1641
1662
  var e, t;
1642
- P() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1663
+ A() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1643
1664
  {
1644
1665
  type: "builder.clickEmptyBlocks",
1645
1666
  data: {
@@ -1652,7 +1673,7 @@ const At = /* @__PURE__ */ v(So, [["render", ko]]), Ws = /* @__PURE__ */ Object.
1652
1673
  },
1653
1674
  onMouseEnter() {
1654
1675
  var e, t;
1655
- P() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1676
+ A() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1656
1677
  {
1657
1678
  type: "builder.hoverEmptyBlocks",
1658
1679
  data: {
@@ -1665,8 +1686,8 @@ const At = /* @__PURE__ */ v(So, [["render", ko]]), Ws = /* @__PURE__ */ Object.
1665
1686
  }
1666
1687
  }
1667
1688
  });
1668
- function To(e, t, n, o, r, i) {
1669
- return d(), S(Z(e.BlocksWrapper), $({
1689
+ function Ao(e, t, n, o, r, i) {
1690
+ return d(), S(X(e.BlocksWrapper), $({
1670
1691
  ref: "blocksWrapperRef",
1671
1692
  class: e.className + " component-5vz8uirn7sc",
1672
1693
  "builder-path": e.dataPath,
@@ -1682,9 +1703,9 @@ function To(e, t, n, o, r, i) {
1682
1703
  _: 3
1683
1704
  }, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
1684
1705
  }
1685
- const wo = /* @__PURE__ */ v(Co, [["render", To], ["__scopeId", "data-v-82fc93d6"]]), Io = y({
1706
+ const Po = /* @__PURE__ */ v(Ro, [["render", Ao], ["__scopeId", "data-v-82fc93d6"]]), Bo = y({
1686
1707
  name: "builder-blocks",
1687
- components: { BlocksWrapper: wo, Block: At },
1708
+ components: { BlocksWrapper: Po, Block: Nt },
1688
1709
  props: [
1689
1710
  "blocks",
1690
1711
  "parent",
@@ -1698,10 +1719,10 @@ const wo = /* @__PURE__ */ v(Co, [["render", To], ["__scopeId", "data-v-82fc93d6
1698
1719
  ],
1699
1720
  inject: {
1700
1721
  builderContext: ve.key,
1701
- componentsContext: tt.key
1722
+ componentsContext: rt.key
1702
1723
  }
1703
1724
  });
1704
- function $o(e, t, n, o, r, i) {
1725
+ function Vo(e, t, n, o, r, i) {
1705
1726
  var a, u, p, b;
1706
1727
  const s = k("Block"), l = k("BlocksWrapper");
1707
1728
  return d(), S(l, {
@@ -1729,21 +1750,21 @@ function $o(e, t, n, o, r, i) {
1729
1750
  _: 3
1730
1751
  }, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapperProps", "classNameProp", "BlocksWrapper"]);
1731
1752
  }
1732
- const K = /* @__PURE__ */ v(Io, [["render", $o]]), Eo = y({
1753
+ const K = /* @__PURE__ */ v(Bo, [["render", Vo]]), No = y({
1733
1754
  name: "dynamic-div",
1734
1755
  props: []
1735
1756
  });
1736
- function Ro(e, t, n, o, r, i) {
1757
+ function Oo(e, t, n, o, r, i) {
1737
1758
  return d(), h("div", null, [
1738
1759
  N(e.$slots, "default")
1739
1760
  ]);
1740
1761
  }
1741
- const ne = /* @__PURE__ */ v(Eo, [["render", Ro]]), Po = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1762
+ const ne = /* @__PURE__ */ v(No, [["render", Oo]]), Wo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1742
1763
  __proto__: null,
1743
1764
  default: ne
1744
1765
  }, Symbol.toStringTag, { value: "Module" })), he = y({
1745
1766
  render() {
1746
- return et("style", {
1767
+ return ot("style", {
1747
1768
  innerHTML: this.styles,
1748
1769
  "data-id": this.id,
1749
1770
  nonce: this.nonce
@@ -1751,7 +1772,7 @@ const ne = /* @__PURE__ */ v(Eo, [["render", Ro]]), Po = /* @__PURE__ */ Object.
1751
1772
  },
1752
1773
  name: "inlined-styles",
1753
1774
  props: ["styles", "id", "nonce"]
1754
- }), Bt = {
1775
+ }), Ot = {
1755
1776
  xsmall: {
1756
1777
  min: 0,
1757
1778
  default: 160,
@@ -1772,8 +1793,8 @@ const ne = /* @__PURE__ */ v(Eo, [["render", Ro]]), Po = /* @__PURE__ */ Object.
1772
1793
  default: 991,
1773
1794
  max: 1200
1774
1795
  }
1775
- }, Ds = (e, t = Bt) => `@media (max-width: ${t[e].max}px)`, Ao = (e) => {
1776
- const t = Be(Bt);
1796
+ }, js = (e, t = Ot) => `@media (max-width: ${t[e].max}px)`, Do = (e) => {
1797
+ const t = Be(Ot);
1777
1798
  if (!e)
1778
1799
  return t;
1779
1800
  const {
@@ -1810,7 +1831,7 @@ const ne = /* @__PURE__ */ v(Eo, [["render", Ro]]), Po = /* @__PURE__ */ Object.
1810
1831
  min: l,
1811
1832
  default: l + 1
1812
1833
  }, t;
1813
- }, Bo = (e) => `builder-columns ${e}-breakpoints`, Vo = y({
1834
+ }, Uo = (e) => `builder-columns ${e}-breakpoints`, xo = y({
1814
1835
  name: "builder-columns",
1815
1836
  components: {
1816
1837
  InlinedStyles: he,
@@ -1829,7 +1850,7 @@ const ne = /* @__PURE__ */ v(Eo, [["render", Ro]]), Po = /* @__PURE__ */ Object.
1829
1850
  "builderComponents"
1830
1851
  ],
1831
1852
  data() {
1832
- return { TARGET: E, getColumnsClass: Bo };
1853
+ return { TARGET: E, getColumnsClass: Uo };
1833
1854
  },
1834
1855
  computed: {
1835
1856
  gutterSize() {
@@ -1908,7 +1929,7 @@ const ne = /* @__PURE__ */ v(Eo, [["render", Ro]]), Po = /* @__PURE__ */ Object.
1908
1929
  },
1909
1930
  getWidthForBreakpointSize(e) {
1910
1931
  var n, o;
1911
- return Ao(
1932
+ return Do(
1912
1933
  ((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
1913
1934
  )[e].max;
1914
1935
  },
@@ -1945,13 +1966,13 @@ const ne = /* @__PURE__ */ v(Eo, [["render", Ro]]), Po = /* @__PURE__ */ Object.
1945
1966
  ...e.link ? {
1946
1967
  href: e.link
1947
1968
  } : {},
1948
- [M()]: "builder-column",
1949
- style: Rt(this.columnCssVars(t))
1969
+ [H()]: "builder-column",
1970
+ style: Bt(this.columnCssVars(t))
1950
1971
  };
1951
1972
  }
1952
1973
  }
1953
1974
  });
1954
- function No(e, t, n, o, r, i) {
1975
+ function Lo(e, t, n, o, r, i) {
1955
1976
  var u;
1956
1977
  const s = k("InlinedStyles"), l = k("Blocks"), a = k("DynamicRenderer");
1957
1978
  return d(), h("div", $({
@@ -1987,32 +2008,32 @@ function No(e, t, n, o, r, i) {
1987
2008
  }, 1032, ["TagName", "attributes"]))), 128))
1988
2009
  ], 16);
1989
2010
  }
1990
- const Oo = /* @__PURE__ */ v(Vo, [["render", No], ["__scopeId", "data-v-ab15749a"]]), Wo = y({
2011
+ const Fo = /* @__PURE__ */ v(xo, [["render", Lo], ["__scopeId", "data-v-ab15749a"]]), Mo = y({
1991
2012
  name: "builder-fragment-component",
1992
2013
  props: []
1993
2014
  });
1994
- function Do(e, t, n, o, r, i) {
2015
+ function Ho(e, t, n, o, r, i) {
1995
2016
  return d(), h("span", null, [
1996
2017
  N(e.$slots, "default")
1997
2018
  ]);
1998
2019
  }
1999
- const xo = /* @__PURE__ */ v(Wo, [["render", Do]]);
2000
- function Qe(e) {
2020
+ const jo = /* @__PURE__ */ v(Mo, [["render", Ho]]);
2021
+ function Ye(e) {
2001
2022
  return e.replace(/http(s)?:/, "");
2002
2023
  }
2003
- function Uo(e = "", t, n) {
2024
+ function zo(e = "", t, n) {
2004
2025
  const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
2005
2026
  return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
2006
2027
  }
2007
- function Lo(e, t) {
2028
+ function Ko(e, t) {
2008
2029
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
2009
2030
  return e;
2010
2031
  if (t === "master")
2011
- return Qe(e);
2032
+ return Ye(e);
2012
2033
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
2013
2034
  if (n) {
2014
2035
  const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
2015
- return Qe(`${o[0]}_${i}${r}`);
2036
+ return Ye(`${o[0]}_${i}${r}`);
2016
2037
  }
2017
2038
  return null;
2018
2039
  }
@@ -2023,11 +2044,11 @@ function ie(e) {
2023
2044
  if (e.match(/builder\.io/)) {
2024
2045
  let n = e;
2025
2046
  const o = Number(e.split("?width=")[1]);
2026
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${Uo(e, "width", r)} ${r}w`).concat([n]).join(", ");
2047
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${zo(e, "width", r)} ${r}w`).concat([n]).join(", ");
2027
2048
  }
2028
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Lo(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
2049
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ko(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
2029
2050
  }
2030
- const Fo = y({
2051
+ const qo = y({
2031
2052
  name: "builder-image",
2032
2053
  props: [
2033
2054
  "lazy",
@@ -2081,11 +2102,11 @@ const Fo = y({
2081
2102
  return this.aspectRatio ? e : void 0;
2082
2103
  }
2083
2104
  }
2084
- }), Ho = ["srcset", "sizes"], Mo = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"], jo = {
2105
+ }), Go = ["srcset", "sizes"], Jo = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"], Qo = {
2085
2106
  key: 2,
2086
2107
  class: "div-t43jfuqn6g-2"
2087
2108
  };
2088
- function zo(e, t, n, o, r, i) {
2109
+ function _o(e, t, n, o, r, i) {
2089
2110
  var s, l, a, u, p, b;
2090
2111
  return d(), h(I, null, [
2091
2112
  G("picture", null, [
@@ -2094,14 +2115,14 @@ function zo(e, t, n, o, r, i) {
2094
2115
  type: "image/webp",
2095
2116
  srcset: e.webpSrcSet,
2096
2117
  sizes: e.sizesToUse
2097
- }, null, 8, Ho)) : T("", !0),
2118
+ }, null, 8, Go)) : T("", !0),
2098
2119
  G("img", {
2099
2120
  loading: e.highPriority ? "eager" : "lazy",
2100
2121
  fetchpriority: e.highPriority ? "high" : "auto",
2101
2122
  alt: e.altText || "",
2102
2123
  title: e.title,
2103
2124
  role: e.altText ? void 0 : "presentation",
2104
- style: H({
2125
+ style: M({
2105
2126
  objectPosition: `var(--builder-image-position, ${e.backgroundPosition || "center"})`,
2106
2127
  objectFit: e.backgroundSize || "cover",
2107
2128
  ...e.aspectRatioCss
@@ -2112,29 +2133,29 @@ function zo(e, t, n, o, r, i) {
2112
2133
  src: e.image,
2113
2134
  srcset: e.srcSetToUse,
2114
2135
  sizes: e.sizesToUse
2115
- }, null, 14, Mo)
2136
+ }, null, 14, Jo)
2116
2137
  ]),
2117
2138
  e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (d(), h("div", {
2118
2139
  key: 0,
2119
2140
  class: "builder-image-sizer div-t43jfuqn6g",
2120
- style: H({
2141
+ style: M({
2121
2142
  paddingTop: e.aspectRatio * 100 + "%"
2122
2143
  })
2123
2144
  }, null, 4)) : T("", !0),
2124
2145
  (u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? N(e.$slots, "default", { key: 1 }, void 0, !0) : T("", !0),
2125
- !e.fitContent && ((b = (p = e.builderBlock) == null ? void 0 : p.children) != null && b.length) ? (d(), h("div", jo, [
2146
+ !e.fitContent && ((b = (p = e.builderBlock) == null ? void 0 : p.children) != null && b.length) ? (d(), h("div", Qo, [
2126
2147
  N(e.$slots, "default", {}, void 0, !0)
2127
2148
  ])) : T("", !0)
2128
2149
  ], 64);
2129
2150
  }
2130
- const Ko = /* @__PURE__ */ v(Fo, [["render", zo], ["__scopeId", "data-v-f109a7da"]]), qo = y({
2151
+ const Yo = /* @__PURE__ */ v(qo, [["render", _o], ["__scopeId", "data-v-f109a7da"]]), Xo = y({
2131
2152
  name: "builder-section-component",
2132
2153
  props: ["attributes", "maxWidth"],
2133
2154
  data() {
2134
2155
  return { filterAttrs: O };
2135
2156
  }
2136
2157
  });
2137
- function Go(e, t, n, o, r, i) {
2158
+ function Zo(e, t, n, o, r, i) {
2138
2159
  return d(), h("section", $({
2139
2160
  style: {
2140
2161
  width: "100%",
@@ -2148,12 +2169,12 @@ function Go(e, t, n, o, r, i) {
2148
2169
  marginLeft: "auto",
2149
2170
  marginRight: "auto"
2150
2171
  }
2151
- }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
2172
+ }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
2152
2173
  N(e.$slots, "default")
2153
2174
  ], 16);
2154
2175
  }
2155
- const Jo = /* @__PURE__ */ v(qo, [["render", Go]]);
2156
- function Qo(e, t, n, o) {
2176
+ const er = /* @__PURE__ */ v(Xo, [["render", Zo]]);
2177
+ function tr(e, t, n, o) {
2157
2178
  function r(u) {
2158
2179
  return typeof u == "string";
2159
2180
  }
@@ -2167,14 +2188,14 @@ function Qo(e, t, n, o) {
2167
2188
  if (p && p.property === "urlPath" && p.value && typeof p.value == "string" && p.value !== "/" && p.value.endsWith("/") && (f = p.value.slice(0, -1)), !(c && m))
2168
2189
  return !0;
2169
2190
  if (Array.isArray(f))
2170
- return m === "isNot" ? f.every((A) => s(u, {
2191
+ return m === "isNot" ? f.every((P) => s(u, {
2171
2192
  property: c,
2172
2193
  operator: m,
2173
- value: A
2174
- })) : !!f.find((A) => s(u, {
2194
+ value: P
2195
+ })) : !!f.find((P) => s(u, {
2175
2196
  property: c,
2176
2197
  operator: m,
2177
- value: A
2198
+ value: P
2178
2199
  }));
2179
2200
  const g = u[c];
2180
2201
  if (Array.isArray(g))
@@ -2210,7 +2231,20 @@ function Qo(e, t, n, o) {
2210
2231
  }, a = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
2211
2232
  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));
2212
2233
  }
2213
- const Yo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
2234
+ const nr = `function getStudioUserAttributes() {
2235
+ const params = new URLSearchParams(window.location.search);
2236
+ if (params.get('builder.preview') !== 'BUILDER_STUDIO') {
2237
+ return {};
2238
+ }
2239
+ const prefix = 'builder.userAttributes.';
2240
+ const attributes = {};
2241
+ params.forEach(function (value, key) {
2242
+ if (key.indexOf(prefix) === 0) {
2243
+ attributes[key.slice(prefix.length)] = value === 'true' ? true : value === 'false' ? false : value;
2244
+ }
2245
+ });
2246
+ return attributes;
2247
+ }`, or = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
2214
2248
  if (!navigator.cookieEnabled) {
2215
2249
  return;
2216
2250
  }
@@ -2228,6 +2262,7 @@ const Yo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
2228
2262
  if (locale) {
2229
2263
  attributes.locale = locale;
2230
2264
  }
2265
+ Object.assign(attributes, window.builderIoStudioUserAttributes());
2231
2266
  const winningVariantIndex = variants?.findIndex(function (variant) {
2232
2267
  return window.filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
2233
2268
  });
@@ -2255,7 +2290,7 @@ const Yo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
2255
2290
  thisScript.remove();
2256
2291
  }
2257
2292
  }
2258
- }`, Xo = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
2293
+ }`, rr = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
2259
2294
  function isString(val) {
2260
2295
  return typeof val === 'string';
2261
2296
  }
@@ -2333,7 +2368,7 @@ const Yo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
2333
2368
  return item.query.every(filter => {
2334
2369
  return objectMatchesQuery(userAttributes, filter);
2335
2370
  });
2336
- }`, Zo = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
2371
+ }`, ir = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
2337
2372
  function getCookie(name) {
2338
2373
  const nameEQ = name + '=';
2339
2374
  const ca = document.cookie.split(';');
@@ -2359,6 +2394,7 @@ const Yo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
2359
2394
  if (locale) {
2360
2395
  attributes.locale = locale;
2361
2396
  }
2397
+ Object.assign(attributes, window.builderIoStudioUserAttributes());
2362
2398
  const winningVariantIndex = variants?.findIndex(function (variant) {
2363
2399
  return window.filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
2364
2400
  });
@@ -2371,11 +2407,11 @@ const Yo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
2371
2407
  visibilityStylesEl.innerHTML = newStyleStr;
2372
2408
  }
2373
2409
  }
2374
- }`, se = "default", Ye = "filterWithCustomTargeting", Te = "builderIoPersonalization", we = "updateVisibilityStylesScript", _o = "PersonalizationContainer", Vt = ["react", "vue", "svelte", "qwik"], Nt = ["vue", "svelte", "qwik"];
2375
- function er(e, t) {
2376
- return !(e && e.length > 0) || !t ? !1 : Nt.includes(E) ? !0 : !w();
2410
+ }`, se = "default", Xe = "filterWithCustomTargeting", Te = "builderIoPersonalization", we = "updateVisibilityStylesScript", Ze = "builderIoStudioUserAttributes", sr = "PersonalizationContainer", Wt = ["react", "vue", "svelte", "qwik"], Dt = ["vue", "svelte", "qwik"];
2411
+ function ar(e, t) {
2412
+ return !(e && e.length > 0) || !t ? !1 : Dt.includes(E) ? !0 : !w();
2377
2413
  }
2378
- function tr({
2414
+ function lr({
2379
2415
  variants: e,
2380
2416
  previewingIndex: t,
2381
2417
  isHydrated: n,
@@ -2387,7 +2423,7 @@ function tr({
2387
2423
  path: "this.children",
2388
2424
  index: se
2389
2425
  };
2390
- if (n && P()) {
2426
+ if (n && A()) {
2391
2427
  if (typeof t == "number" && t < ((e == null ? void 0 : e.length) ?? 0)) {
2392
2428
  const s = e == null ? void 0 : e[t];
2393
2429
  if (s)
@@ -2415,20 +2451,23 @@ function tr({
2415
2451
  }
2416
2452
  const Ie = (e) => {
2417
2453
  var t;
2418
- return Array.isArray(e) ? e.some(Ie) : !e || typeof e != "object" ? !1 : ((t = e.component) == null ? void 0 : t.name) === _o ? !0 : Object.values(e).some(Ie);
2419
- }, nr = (e) => Ie(e), or = () => `
2454
+ return Array.isArray(e) ? e.some(Ie) : !e || typeof e != "object" ? !1 : ((t = e.component) == null ? void 0 : t.name) === sr ? !0 : Object.values(e).some(Ie);
2455
+ }, cr = (e) => Ie(e), dr = () => `
2420
2456
  (function() {
2421
- if (!window.${Ye}) {
2422
- window.${Ye} = ${Xo};
2457
+ if (!window.${Ze}) {
2458
+ window.${Ze} = ${nr};
2459
+ }
2460
+ if (!window.${Xe}) {
2461
+ window.${Xe} = ${rr};
2423
2462
  }
2424
2463
  if (!window.${Te}) {
2425
- window.${Te} = ${Yo};
2464
+ window.${Te} = ${or};
2426
2465
  }
2427
2466
  if (!window.${we}) {
2428
- window.${we} = ${Zo};
2467
+ window.${we} = ${ir};
2429
2468
  }
2430
2469
  })();
2431
- `, Ot = E === "react", rr = (e, t, n) => `window.${Te}(${JSON.stringify(e)}, "${t}", ${Ot}${n ? `, "${n}"` : ""})`, ir = (e, t, n) => `window.${we}(${JSON.stringify(e)}, "${t}", ${Ot}${n ? `, "${n}"` : ""})`, fe = {
2470
+ `, Ut = E === "react", ur = (e, t, n) => `window.${Te}(${JSON.stringify(e)}, "${t}", ${Ut}${n ? `, "${n}"` : ""})`, pr = (e, t, n) => `window.${we}(${JSON.stringify(e)}, "${t}", ${Ut}${n ? `, "${n}"` : ""})`, fe = {
2432
2471
  "@type": "@builder.io/sdk:Element",
2433
2472
  layerName: "Accordion item title",
2434
2473
  responsiveStyles: {
@@ -2488,7 +2527,7 @@ const Ie = (e) => {
2488
2527
  }
2489
2528
  }
2490
2529
  }]
2491
- }, sr = {
2530
+ }, mr = {
2492
2531
  name: "Builder:Accordion",
2493
2532
  canHaveChildren: !0,
2494
2533
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -2552,7 +2591,7 @@ const Ie = (e) => {
2552
2591
  builderComponents: !0,
2553
2592
  builderLinkComponent: !0
2554
2593
  }
2555
- }, ar = (e) => e.toString(), lr = y({
2594
+ }, hr = (e) => e.toString(), fr = y({
2556
2595
  name: "builder-accordion",
2557
2596
  components: { Blocks: K },
2558
2597
  props: [
@@ -2566,7 +2605,7 @@ const Ie = (e) => {
2566
2605
  "builderLinkComponent"
2567
2606
  ],
2568
2607
  data() {
2569
- return { open: [], convertOrderNumberToString: ar };
2608
+ return { open: [], convertOrderNumberToString: hr };
2570
2609
  },
2571
2610
  computed: {
2572
2611
  onlyOneAtATime() {
@@ -2647,17 +2686,17 @@ const Ie = (e) => {
2647
2686
  this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
2648
2687
  }
2649
2688
  }
2650
- }), cr = ["data-index", "onClick"];
2651
- function dr(e, t, n, o, r, i) {
2689
+ }), br = ["data-index", "onClick"];
2690
+ function gr(e, t, n, o, r, i) {
2652
2691
  const s = k("Blocks");
2653
2692
  return d(), h("div", {
2654
2693
  class: "builder-accordion",
2655
- style: H(e.accordionStyles)
2694
+ style: M(e.accordionStyles)
2656
2695
  }, [
2657
2696
  (d(!0), h(I, null, L(e.items, (l, a) => (d(), h(I, { key: a }, [
2658
2697
  G("div", {
2659
2698
  class: ee(e.getAccordionTitleClassName(a)),
2660
- style: H({
2699
+ style: M({
2661
2700
  ...e.accordionTitleStyles,
2662
2701
  ...e.grid && {
2663
2702
  width: e.gridRowWidth,
@@ -2675,11 +2714,11 @@ function dr(e, t, n, o, r, i) {
2675
2714
  registeredComponents: e.builderComponents,
2676
2715
  linkComponent: e.builderLinkComponent
2677
2716
  }, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
2678
- ], 14, cr),
2717
+ ], 14, br),
2679
2718
  e.open.includes(a) ? (d(), h("div", {
2680
2719
  key: 0,
2681
2720
  class: ee(e.getAccordionDetailClassName(a)),
2682
- style: H(e.accordionDetailStyles)
2721
+ style: M(e.accordionDetailStyles)
2683
2722
  }, [
2684
2723
  R(s, {
2685
2724
  blocks: l.detail,
@@ -2693,7 +2732,7 @@ function dr(e, t, n, o, r, i) {
2693
2732
  ], 64))), 128))
2694
2733
  ], 4);
2695
2734
  }
2696
- const ur = /* @__PURE__ */ v(lr, [["render", dr]]), pr = {
2735
+ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
2697
2736
  name: "Core:Button",
2698
2737
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
2699
2738
  defaultStyles: {
@@ -2729,7 +2768,7 @@ const ur = /* @__PURE__ */ v(lr, [["render", dr]]), pr = {
2729
2768
  shouldReceiveBuilderProps: {
2730
2769
  builderLinkComponent: !0
2731
2770
  }
2732
- }, mr = {
2771
+ }, Sr = {
2733
2772
  // TODO: ways to statically preprocess JSON for references, functions, etc
2734
2773
  name: "Columns",
2735
2774
  isRSC: !0,
@@ -2936,13 +2975,13 @@ const ur = /* @__PURE__ */ v(lr, [["render", dr]]), pr = {
2936
2975
  builderComponents: !0,
2937
2976
  builderLinkComponent: !0
2938
2977
  }
2939
- }, hr = {
2978
+ }, kr = {
2940
2979
  name: "Fragment",
2941
2980
  static: !0,
2942
2981
  hidden: !0,
2943
2982
  canHaveChildren: !0,
2944
2983
  noWrap: !0
2945
- }, xe = ["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"], fr = ["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"], br = {
2984
+ }, Ue = ["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"], Cr = ["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"], Tr = {
2946
2985
  name: "Image",
2947
2986
  static: !0,
2948
2987
  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",
@@ -2957,7 +2996,7 @@ const ur = /* @__PURE__ */ v(lr, [["render", dr]]), pr = {
2957
2996
  name: "image",
2958
2997
  type: "file",
2959
2998
  bubble: !0,
2960
- allowedFileTypes: xe,
2999
+ allowedFileTypes: Ue,
2961
3000
  required: !0,
2962
3001
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
2963
3002
  onChange: (e) => {
@@ -3055,7 +3094,7 @@ const ur = /* @__PURE__ */ v(lr, [["render", dr]]), pr = {
3055
3094
  shouldReceiveBuilderProps: {
3056
3095
  builderBlock: !0
3057
3096
  }
3058
- }, gr = {
3097
+ }, wr = {
3059
3098
  name: "PersonalizationContainer",
3060
3099
  shouldReceiveBuilderProps: {
3061
3100
  builderBlock: !0,
@@ -3091,9 +3130,9 @@ const ur = /* @__PURE__ */ v(lr, [["render", dr]]), pr = {
3091
3130
  defaultValue: []
3092
3131
  }]
3093
3132
  }]
3094
- }, Ue = y({
3133
+ }, xe = y({
3095
3134
  render() {
3096
- return et("script", {
3135
+ return ot("script", {
3097
3136
  innerHTML: this.scriptStr,
3098
3137
  "data-id": this.id,
3099
3138
  nonce: this.nonce
@@ -3101,12 +3140,12 @@ const ur = /* @__PURE__ */ v(lr, [["render", dr]]), pr = {
3101
3140
  },
3102
3141
  name: "inlined-script",
3103
3142
  props: ["scriptStr", "id", "nonce"]
3104
- }), yr = y({
3143
+ }), Ir = y({
3105
3144
  name: "builder-personalization-container",
3106
3145
  components: {
3107
3146
  Blocks: K,
3108
3147
  InlinedStyles: he,
3109
- InlinedScript: Ue
3148
+ InlinedScript: xe
3110
3149
  },
3111
3150
  props: [
3112
3151
  "builderContext",
@@ -3120,25 +3159,25 @@ const ur = /* @__PURE__ */ v(lr, [["render", dr]]), pr = {
3120
3159
  var e, t, n, o, r, i, s;
3121
3160
  return {
3122
3161
  userAttributes: ue.getUserAttributes(),
3123
- scriptStr: rr(
3162
+ scriptStr: ur(
3124
3163
  this.variants,
3125
3164
  ((e = this.builderBlock) == null ? void 0 : e.id) || "none",
3126
3165
  (n = (t = this.builderContext) == null ? void 0 : t.rootState) == null ? void 0 : n.locale
3127
3166
  ),
3128
- updateVisibilityStylesScript: ir(
3167
+ updateVisibilityStylesScript: pr(
3129
3168
  this.variants,
3130
3169
  ((o = this.builderBlock) == null ? void 0 : o.id) || "none",
3131
3170
  (i = (r = this.builderContext) == null ? void 0 : r.rootState) == null ? void 0 : i.locale
3132
3171
  ),
3133
3172
  unsubscribers: [],
3134
- shouldRenderVariants: er(
3173
+ shouldRenderVariants: ar(
3135
3174
  this.variants,
3136
3175
  J((s = this.builderContext) == null ? void 0 : s.canTrack)
3137
3176
  ),
3138
3177
  shouldResetVariants: !1,
3139
3178
  TARGET: E,
3140
3179
  DEFAULT_INDEX: se,
3141
- SDKS_REQUIRING_RESET_APPROACH: Nt
3180
+ SDKS_REQUIRING_RESET_APPROACH: Dt
3142
3181
  };
3143
3182
  },
3144
3183
  mounted() {
@@ -3152,7 +3191,7 @@ const ur = /* @__PURE__ */ v(lr, [["render", dr]]), pr = {
3152
3191
  fireImmediately: E === "qwik"
3153
3192
  }
3154
3193
  );
3155
- if (!(P() || Ve())) {
3194
+ if (!(A() || Ve())) {
3156
3195
  const n = this.filteredVariants[0];
3157
3196
  this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
3158
3197
  new CustomEvent("builder.variantLoaded", {
@@ -3187,13 +3226,13 @@ const ur = /* @__PURE__ */ v(lr, [["render", dr]]), pr = {
3187
3226
  return {
3188
3227
  ...O(this.attributes, "v-on:", !1),
3189
3228
  ...O(this.attributes, "v-on:", !0),
3190
- [M()]: `builder-personalization-container ${this.attributes[M()] || ""}`
3229
+ [H()]: `builder-personalization-container ${this.attributes[H()] || ""}`
3191
3230
  };
3192
3231
  },
3193
3232
  filteredVariants() {
3194
3233
  return (this.variants || []).filter((e) => {
3195
3234
  var t, n, o, r;
3196
- return Qo(
3235
+ return tr(
3197
3236
  {
3198
3237
  ...(n = (t = this.builderContext) == null ? void 0 : t.rootState) != null && n.locale ? {
3199
3238
  locale: (r = (o = this.builderContext) == null ? void 0 : o.rootState) == null ? void 0 : r.locale
@@ -3208,7 +3247,7 @@ const ur = /* @__PURE__ */ v(lr, [["render", dr]]), pr = {
3208
3247
  },
3209
3248
  blocksToRender() {
3210
3249
  var e;
3211
- return tr({
3250
+ return lr({
3212
3251
  variants: this.variants,
3213
3252
  fallbackBlocks: (e = this.builderBlock) == null ? void 0 : e.children,
3214
3253
  isHydrated: this.shouldResetVariants,
@@ -3226,8 +3265,8 @@ const ur = /* @__PURE__ */ v(lr, [["render", dr]]), pr = {
3226
3265
  }
3227
3266
  }
3228
3267
  });
3229
- function vr(e, t, n, o, r, i) {
3230
- var u, p, b, c, m, f, g, A, x, V;
3268
+ function $r(e, t, n, o, r, i) {
3269
+ var u, p, b, c, m, f, g, P, U, V;
3231
3270
  const s = k("Blocks"), l = k("InlinedStyles"), a = k("InlinedScript");
3232
3271
  return d(), h("div", $({ ref: "rootRef" }, e.attrs), [
3233
3272
  e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), S(s, {
@@ -3255,14 +3294,14 @@ function vr(e, t, n, o, r, i) {
3255
3294
  id: `variants-visibility-script-${(g = e.builderBlock) == null ? void 0 : g.id}`
3256
3295
  }, null, 8, ["nonce", "scriptStr", "id"]),
3257
3296
  (d(!0), h(I, null, L(e.variants, (q, C) => {
3258
- var z, Q, Y, W;
3297
+ var z, Q, _, W;
3259
3298
  return d(), S(s, {
3260
3299
  key: `${(z = e.builderBlock) == null ? void 0 : z.id}-${C}`,
3261
3300
  BlocksWrapperProps: {
3262
3301
  ...(Q = e.builderContext) == null ? void 0 : Q.BlocksWrapperProps,
3263
3302
  "aria-hidden": !0,
3264
3303
  hidden: !0,
3265
- "data-variant-id": `${(Y = e.builderBlock) == null ? void 0 : Y.id}-${C}`
3304
+ "data-variant-id": `${(_ = e.builderBlock) == null ? void 0 : _.id}-${C}`
3266
3305
  },
3267
3306
  blocks: q.blocks,
3268
3307
  parent: (W = e.builderBlock) == null ? void 0 : W.id,
@@ -3286,12 +3325,12 @@ function vr(e, t, n, o, r, i) {
3286
3325
  ], 64)) : T("", !0),
3287
3326
  R(s, {
3288
3327
  blocks: e.blocksToRender.blocks,
3289
- parent: (A = e.builderBlock) == null ? void 0 : A.id,
3328
+ parent: (P = e.builderBlock) == null ? void 0 : P.id,
3290
3329
  path: e.blocksToRender.path,
3291
3330
  context: e.builderContext,
3292
3331
  registeredComponents: e.builderComponents,
3293
3332
  BlocksWrapperProps: {
3294
- ...(x = e.builderContext) == null ? void 0 : x.BlocksWrapperProps,
3333
+ ...(U = e.builderContext) == null ? void 0 : U.BlocksWrapperProps,
3295
3334
  "data-variant-id": `${(V = e.builderBlock) == null ? void 0 : V.id}-${e.blocksToRender.index}`
3296
3335
  }
3297
3336
  }, {
@@ -3311,7 +3350,7 @@ function vr(e, t, n, o, r, i) {
3311
3350
  ], 64)) : T("", !0)
3312
3351
  ], 16);
3313
3352
  }
3314
- const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
3353
+ const Er = /* @__PURE__ */ v(Ir, [["render", $r]]), Rr = {
3315
3354
  name: "Core:Section",
3316
3355
  static: !0,
3317
3356
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -3350,7 +3389,7 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
3350
3389
  }
3351
3390
  }
3352
3391
  }]
3353
- }, Cr = {
3392
+ }, Ar = {
3354
3393
  name: "Slot",
3355
3394
  isRSC: !0,
3356
3395
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -3367,12 +3406,12 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
3367
3406
  builderContext: !0,
3368
3407
  builderComponents: !0
3369
3408
  }
3370
- }, Tr = y({
3409
+ }, Pr = y({
3371
3410
  name: "builder-slot",
3372
3411
  components: { Blocks: K },
3373
3412
  props: ["builderContext", "name", "builderComponents"]
3374
3413
  });
3375
- function wr(e, t, n, o, r, i) {
3414
+ function Br(e, t, n, o, r, i) {
3376
3415
  var l, a, u;
3377
3416
  const s = k("Blocks");
3378
3417
  return d(), h("div", $(
@@ -3392,7 +3431,7 @@ function wr(e, t, n, o, r, i) {
3392
3431
  }, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
3393
3432
  ], 16);
3394
3433
  }
3395
- const Ir = /* @__PURE__ */ v(Tr, [["render", wr]]), $r = {
3434
+ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
3396
3435
  name: "Symbol",
3397
3436
  noWrap: !0,
3398
3437
  static: !0,
@@ -3469,7 +3508,7 @@ const Ir = /* @__PURE__ */ v(Tr, [["render", wr]]), $r = {
3469
3508
  text: "New tab content "
3470
3509
  }
3471
3510
  }
3472
- }, Er = {
3511
+ }, Or = {
3473
3512
  name: "Builder: Tabs",
3474
3513
  inputs: [{
3475
3514
  name: "tabs",
@@ -3572,7 +3611,7 @@ const Ir = /* @__PURE__ */ v(Tr, [["render", wr]]), $r = {
3572
3611
  builderComponents: !0,
3573
3612
  builderLinkComponent: !0
3574
3613
  }
3575
- }, Rr = y({
3614
+ }, Wr = y({
3576
3615
  name: "builder-tabs",
3577
3616
  components: { Blocks: K },
3578
3617
  props: [
@@ -3600,13 +3639,13 @@ const Ir = /* @__PURE__ */ v(Tr, [["render", wr]]), $r = {
3600
3639
  e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
3601
3640
  }
3602
3641
  }
3603
- }), Pr = ["onClick"], Ar = { key: 0 };
3604
- function Br(e, t, n, o, r, i) {
3642
+ }), Dr = ["onClick"], Ur = { key: 0 };
3643
+ function xr(e, t, n, o, r, i) {
3605
3644
  const s = k("Blocks");
3606
3645
  return d(), h("div", null, [
3607
3646
  G("div", {
3608
3647
  class: "builder-tabs-wrap",
3609
- style: H({
3648
+ style: M({
3610
3649
  display: "flex",
3611
3650
  flexDirection: "row",
3612
3651
  justifyContent: e.tabHeaderLayout || "flex-start",
@@ -3616,7 +3655,7 @@ function Br(e, t, n, o, r, i) {
3616
3655
  (d(!0), h(I, null, L(e.tabs, (l, a) => (d(), h("span", {
3617
3656
  key: a,
3618
3657
  class: ee(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
3619
- style: H(e.getTabStyle(a)),
3658
+ style: M(e.getTabStyle(a)),
3620
3659
  onClick: async (u) => e.onClick(a)
3621
3660
  }, [
3622
3661
  R(s, {
@@ -3627,9 +3666,9 @@ function Br(e, t, n, o, r, i) {
3627
3666
  registeredComponents: e.builderComponents,
3628
3667
  linkComponent: e.builderLinkComponent
3629
3668
  }, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
3630
- ], 14, Pr))), 128))
3669
+ ], 14, Dr))), 128))
3631
3670
  ], 4),
3632
- e.activeTabContent(e.activeTab) ? (d(), h("div", Ar, [
3671
+ e.activeTabContent(e.activeTab) ? (d(), h("div", Ur, [
3633
3672
  R(s, {
3634
3673
  parent: e.builderBlock.id,
3635
3674
  path: `tabs.${e.activeTab}.content`,
@@ -3641,7 +3680,7 @@ function Br(e, t, n, o, r, i) {
3641
3680
  ])) : T("", !0)
3642
3681
  ]);
3643
3682
  }
3644
- const Vr = /* @__PURE__ */ v(Rr, [["render", Br]]), Nr = {
3683
+ const Lr = /* @__PURE__ */ v(Wr, [["render", xr]]), Fr = {
3645
3684
  shouldReceiveBuilderProps: {},
3646
3685
  name: "Text",
3647
3686
  static: !0,
@@ -3659,11 +3698,11 @@ const Vr = /* @__PURE__ */ v(Rr, [["render", Br]]), Nr = {
3659
3698
  height: "auto",
3660
3699
  textAlign: "center"
3661
3700
  }
3662
- }, Or = y({
3701
+ }, Mr = y({
3663
3702
  name: "builder-text",
3664
3703
  props: ["text"]
3665
- }), Wr = ["innerHTML"];
3666
- function Dr(e, t, n, o, r, i) {
3704
+ }), Hr = ["innerHTML"];
3705
+ function jr(e, t, n, o, r, i) {
3667
3706
  var s;
3668
3707
  return d(), h("div", {
3669
3708
  class: "builder-text",
@@ -3671,9 +3710,9 @@ function Dr(e, t, n, o, r, i) {
3671
3710
  style: {
3672
3711
  outline: "none"
3673
3712
  }
3674
- }, null, 8, Wr);
3713
+ }, null, 8, Hr);
3675
3714
  }
3676
- const xr = /* @__PURE__ */ v(Or, [["render", Dr]]), Ur = {
3715
+ const zr = /* @__PURE__ */ v(Mr, [["render", jr]]), Kr = {
3677
3716
  name: "Custom Code",
3678
3717
  static: !0,
3679
3718
  requiredPermissions: ["editCode"],
@@ -3695,7 +3734,7 @@ const xr = /* @__PURE__ */ v(Or, [["render", Dr]]), Ur = {
3695
3734
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
3696
3735
  advanced: !0
3697
3736
  }]
3698
- }, Lr = y({
3737
+ }, qr = y({
3699
3738
  name: "builder-custom-code",
3700
3739
  props: ["code", "replaceNodes"],
3701
3740
  data() {
@@ -3707,7 +3746,7 @@ const xr = /* @__PURE__ */ v(Or, [["render", Dr]]), Ur = {
3707
3746
  watch: {
3708
3747
  onUpdateHook0: {
3709
3748
  handler() {
3710
- P() && setTimeout(() => {
3749
+ A() && setTimeout(() => {
3711
3750
  this.runScripts();
3712
3751
  }, 0);
3713
3752
  },
@@ -3754,15 +3793,15 @@ const xr = /* @__PURE__ */ v(Or, [["render", Dr]]), Ur = {
3754
3793
  }
3755
3794
  }
3756
3795
  }
3757
- }), Fr = ["innerHTML"];
3758
- function Hr(e, t, n, o, r, i) {
3796
+ }), Gr = ["innerHTML"];
3797
+ function Jr(e, t, n, o, r, i) {
3759
3798
  return d(), h("div", {
3760
3799
  ref: "elementRef",
3761
3800
  class: ee("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
3762
3801
  innerHTML: e.code
3763
- }, null, 10, Fr);
3802
+ }, null, 10, Gr);
3764
3803
  }
3765
- const Mr = /* @__PURE__ */ v(Lr, [["render", Hr]]), jr = {
3804
+ const Qr = /* @__PURE__ */ v(qr, [["render", Jr]]), _r = {
3766
3805
  name: "Embed",
3767
3806
  static: !0,
3768
3807
  inputs: [{
@@ -3777,7 +3816,7 @@ const Mr = /* @__PURE__ */ v(Lr, [["render", Hr]]), jr = {
3777
3816
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
3778
3817
  hideFromUI: !0
3779
3818
  }]
3780
- }, zr = ["text/javascript", "application/javascript", "application/ecmascript"], Kr = (e) => zr.includes(e.type), qr = y({
3819
+ }, Yr = ["text/javascript", "application/javascript", "application/ecmascript"], Xr = (e) => Yr.includes(e.type), Zr = y({
3781
3820
  name: "builder-embed",
3782
3821
  props: ["content"],
3783
3822
  data() {
@@ -3810,7 +3849,7 @@ const Mr = /* @__PURE__ */ v(Lr, [["render", Hr]]), jr = {
3810
3849
  this.scriptsInserted.push(n.src);
3811
3850
  const o = document.createElement("script");
3812
3851
  o.async = !0, o.src = n.src, document.head.appendChild(o);
3813
- } else if (Kr(n) && !this.scriptsRun.includes(n.innerText))
3852
+ } else if (Xr(n) && !this.scriptsRun.includes(n.innerText))
3814
3853
  try {
3815
3854
  this.scriptsRun.push(n.innerText), new Function(n.innerText)();
3816
3855
  } catch (o) {
@@ -3819,15 +3858,15 @@ const Mr = /* @__PURE__ */ v(Lr, [["render", Hr]]), jr = {
3819
3858
  }
3820
3859
  }
3821
3860
  }
3822
- }), Gr = ["innerHTML"];
3823
- function Jr(e, t, n, o, r, i) {
3861
+ }), ei = ["innerHTML"];
3862
+ function ti(e, t, n, o, r, i) {
3824
3863
  return d(), h("div", {
3825
3864
  class: "builder-embed",
3826
3865
  ref: "elem",
3827
3866
  innerHTML: e.content
3828
- }, null, 8, Gr);
3867
+ }, null, 8, ei);
3829
3868
  }
3830
- const Qr = /* @__PURE__ */ v(qr, [["render", Jr]]), Yr = {
3869
+ const ni = /* @__PURE__ */ v(Zr, [["render", ti]]), oi = {
3831
3870
  name: "Form:Form",
3832
3871
  // editableTags: ['builder-form-error']
3833
3872
  defaults: {
@@ -4064,10 +4103,10 @@ const Qr = /* @__PURE__ */ v(qr, [["render", Jr]]), Yr = {
4064
4103
  builderComponents: !0,
4065
4104
  builderLinkComponent: !0
4066
4105
  }
4067
- }, Xr = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Zr = () => {
4106
+ }, ri = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], ii = () => {
4068
4107
  const e = process.env.NODE_ENV || "production";
4069
- return Xr.includes(e) ? e : "production";
4070
- }, _r = y({
4108
+ return ri.includes(e) ? e : "production";
4109
+ }, si = y({
4071
4110
  name: "builder-form-component",
4072
4111
  components: { Blocks: K },
4073
4112
  props: [
@@ -4108,7 +4147,7 @@ const Qr = /* @__PURE__ */ v(qr, [["render", Jr]]), Yr = {
4108
4147
  this.builderContext.rootSetState ? (o = (n = this.builderContext).rootSetState) == null || o.call(n, t) : this.builderContext.rootState = t;
4109
4148
  },
4110
4149
  submissionState() {
4111
- return P() && this.previewState || this.formState;
4150
+ return A() && this.previewState || this.formState;
4112
4151
  },
4113
4152
  errorResponse(e) {
4114
4153
  return JSON.stringify(e, null, 2);
@@ -4160,7 +4199,7 @@ const Qr = /* @__PURE__ */ v(qr, [["render", Jr]]), Yr = {
4160
4199
  else {
4161
4200
  const c = {};
4162
4201
  Array.from(l).forEach(({ value: m, key: f }) => {
4163
- ft(c, f, m);
4202
+ yt(c, f, m);
4164
4203
  }), i = JSON.stringify(c);
4165
4204
  }
4166
4205
  a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
@@ -4178,45 +4217,45 @@ const Qr = /* @__PURE__ */ v(qr, [["render", Jr]]), Yr = {
4178
4217
  });
4179
4218
  return;
4180
4219
  }
4181
- const p = `${Zr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
4220
+ const p = `${ii() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
4182
4221
  this.sendSubmissionsToEmail || ""
4183
4222
  )}&name=${encodeURIComponent(this.name || "")}`, b = this.sendSubmissionsTo === "email" ? p : this.action;
4184
- Ae(b), fetch(b, {
4223
+ Pe(b), fetch(b, {
4185
4224
  body: i,
4186
4225
  headers: r,
4187
4226
  method: this.method || "post"
4188
4227
  }).then(
4189
4228
  async (c) => {
4190
- var g, A;
4229
+ var g, P;
4191
4230
  let m;
4192
4231
  const f = c.headers.get("content-type");
4193
4232
  if (f && f.indexOf("application/json") !== -1 ? m = await c.json() : m = await c.text(), !c.ok) {
4194
- const x = new CustomEvent("submit:error", {
4233
+ const U = new CustomEvent("submit:error", {
4195
4234
  detail: {
4196
4235
  error: m,
4197
4236
  status: c.status
4198
4237
  }
4199
4238
  });
4200
- if ((g = this.$refs.formRef) != null && g.nativeElement && ((A = this.$refs.formRef) == null || A.nativeElement.dispatchEvent(
4201
- x
4202
- ), x.defaultPrevented))
4239
+ if ((g = this.$refs.formRef) != null && g.nativeElement && ((P = this.$refs.formRef) == null || P.nativeElement.dispatchEvent(
4240
+ U
4241
+ ), U.defaultPrevented))
4203
4242
  return;
4204
4243
  this.responseData = m, this.formState = "error";
4205
- let V = this.errorMessagePath ? nt(m, this.errorMessagePath) : m.message || m.error || m;
4244
+ let V = this.errorMessagePath ? it(m, this.errorMessagePath) : m.message || m.error || m;
4206
4245
  typeof V != "string" && (V = JSON.stringify(V)), this.formErrorMessage = V, this.mergeNewRootState({
4207
4246
  formErrorMessage: V
4208
4247
  });
4209
4248
  return;
4210
4249
  }
4211
4250
  if (this.responseData = m, this.formState = c.ok ? "success" : "error", c.ok) {
4212
- const x = new CustomEvent("submit:success", {
4251
+ const U = new CustomEvent("submit:success", {
4213
4252
  detail: {
4214
4253
  res: c,
4215
4254
  body: m
4216
4255
  }
4217
4256
  });
4218
4257
  if (this.$refs.formRef) {
4219
- if (this.$refs.formRef.dispatchEvent(x), x.defaultPrevented)
4258
+ if (this.$refs.formRef.dispatchEvent(U), U.defaultPrevented)
4220
4259
  return;
4221
4260
  this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
4222
4261
  }
@@ -4244,11 +4283,11 @@ const Qr = /* @__PURE__ */ v(qr, [["render", Jr]]), Yr = {
4244
4283
  }
4245
4284
  }
4246
4285
  }
4247
- }), ei = ["validate", "action", "method", "name"], ti = {
4286
+ }), ai = ["validate", "action", "method", "name"], li = {
4248
4287
  key: 2,
4249
4288
  class: "builder-form-error-text pre-2oa2wtipkzk"
4250
4289
  };
4251
- function ni(e, t, n, o, r, i) {
4290
+ function ci(e, t, n, o, r, i) {
4252
4291
  const s = k("Blocks");
4253
4292
  return d(), h("form", $({
4254
4293
  validate: e.validate,
@@ -4257,7 +4296,7 @@ function ni(e, t, n, o, r, i) {
4257
4296
  method: e.method,
4258
4297
  name: e.name,
4259
4298
  onSubmit: t[0] || (t[0] = async (l) => e.onSubmit(l))
4260
- }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4299
+ }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4261
4300
  N(e.$slots, "default", {}, void 0, !0),
4262
4301
  e.submissionState() === "error" ? (d(), S(s, {
4263
4302
  key: 0,
@@ -4271,16 +4310,16 @@ function ni(e, t, n, o, r, i) {
4271
4310
  blocks: e.sendingMessage,
4272
4311
  context: e.builderContext
4273
4312
  }, null, 8, ["blocks", "context"])) : T("", !0),
4274
- e.submissionState() === "error" && e.responseData ? (d(), h("pre", ti, pe(e.errorResponse(e.responseData)), 1)) : T("", !0),
4313
+ e.submissionState() === "error" && e.responseData ? (d(), h("pre", li, pe(e.errorResponse(e.responseData)), 1)) : T("", !0),
4275
4314
  e.submissionState() === "success" ? (d(), S(s, {
4276
4315
  key: 3,
4277
4316
  path: "successMessage",
4278
4317
  blocks: e.successMessage,
4279
4318
  context: e.builderContext
4280
4319
  }, null, 8, ["blocks", "context"])) : T("", !0)
4281
- ], 16, ei);
4320
+ ], 16, ai);
4282
4321
  }
4283
- const oi = /* @__PURE__ */ v(_r, [["render", ni], ["__scopeId", "data-v-77c7888c"]]), ri = {
4322
+ const di = /* @__PURE__ */ v(si, [["render", ci], ["__scopeId", "data-v-77c7888c"]]), ui = {
4284
4323
  name: "Form:Input",
4285
4324
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
4286
4325
  inputs: [
@@ -4331,7 +4370,7 @@ const oi = /* @__PURE__ */ v(_r, [["render", ni], ["__scopeId", "data-v-77c7888c
4331
4370
  borderStyle: "solid",
4332
4371
  borderColor: "#ccc"
4333
4372
  }
4334
- }, ii = y({
4373
+ }, pi = y({
4335
4374
  name: "builder-form-input-component",
4336
4375
  props: [
4337
4376
  "attributes",
@@ -4343,10 +4382,10 @@ const oi = /* @__PURE__ */ v(_r, [["render", ni], ["__scopeId", "data-v-77c7888c
4343
4382
  "required"
4344
4383
  ],
4345
4384
  data() {
4346
- return { isEditing: P, filterAttrs: O };
4385
+ return { isEditing: A, filterAttrs: O };
4347
4386
  }
4348
- }), si = ["placeholder", "type", "name", "value", "defaultValue", "required"];
4349
- function ai(e, t, n, o, r, i) {
4387
+ }), mi = ["placeholder", "type", "name", "value", "defaultValue", "required"];
4388
+ function hi(e, t, n, o, r, i) {
4350
4389
  return d(), h("input", $({
4351
4390
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
4352
4391
  placeholder: e.placeholder,
@@ -4355,9 +4394,9 @@ function ai(e, t, n, o, r, i) {
4355
4394
  value: e.value,
4356
4395
  defaultValue: e.defaultValue,
4357
4396
  required: e.required
4358
- }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, si);
4397
+ }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, mi);
4359
4398
  }
4360
- const li = /* @__PURE__ */ v(ii, [["render", ai]]), ci = {
4399
+ const fi = /* @__PURE__ */ v(pi, [["render", hi]]), bi = {
4361
4400
  name: "Form:Select",
4362
4401
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
4363
4402
  defaultStyles: {
@@ -4399,28 +4438,28 @@ const li = /* @__PURE__ */ v(ii, [["render", ai]]), ci = {
4399
4438
  }],
4400
4439
  static: !0,
4401
4440
  noWrap: !0
4402
- }, di = y({
4441
+ }, gi = y({
4403
4442
  name: "builder-select-component",
4404
4443
  props: ["attributes", "value", "defaultValue", "name", "required", "options"],
4405
4444
  data() {
4406
- return { isEditing: P, filterAttrs: O };
4445
+ return { isEditing: A, filterAttrs: O };
4407
4446
  }
4408
- }), ui = ["value", "defaultValue", "name", "required"], pi = ["value"];
4409
- function mi(e, t, n, o, r, i) {
4447
+ }), yi = ["value", "defaultValue", "name", "required"], vi = ["value"];
4448
+ function Si(e, t, n, o, r, i) {
4410
4449
  return d(), h("select", $({
4411
4450
  value: e.value,
4412
4451
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
4413
4452
  defaultValue: e.defaultValue,
4414
4453
  name: e.name,
4415
4454
  required: e.required
4416
- }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4455
+ }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4417
4456
  (d(!0), h(I, null, L(e.options, (s, l) => (d(), h("option", {
4418
4457
  key: `${s.name}-${l}`,
4419
4458
  value: s.value
4420
- }, pe(s.name || s.value), 9, pi))), 128))
4421
- ], 16, ui);
4459
+ }, pe(s.name || s.value), 9, vi))), 128))
4460
+ ], 16, yi);
4422
4461
  }
4423
- const hi = /* @__PURE__ */ v(di, [["render", mi]]), fi = {
4462
+ const ki = /* @__PURE__ */ v(gi, [["render", Si]]), Ci = {
4424
4463
  name: "Form:SubmitButton",
4425
4464
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
4426
4465
  defaultStyles: {
@@ -4445,17 +4484,17 @@ const hi = /* @__PURE__ */ v(di, [["render", mi]]), fi = {
4445
4484
  // that only shows if advanced setting is flipped
4446
4485
  // TODO: defaultChildren
4447
4486
  // canHaveChildren: true,
4448
- }, bi = y({
4487
+ }, Ti = y({
4449
4488
  name: "builder-submit-button",
4450
4489
  props: ["attributes", "text"],
4451
4490
  data() {
4452
4491
  return { filterAttrs: O };
4453
4492
  }
4454
4493
  });
4455
- function gi(e, t, n, o, r, i) {
4456
- return d(), h("button", $({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), pe(e.text), 17);
4494
+ function wi(e, t, n, o, r, i) {
4495
+ return d(), h("button", $({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), pe(e.text), 17);
4457
4496
  }
4458
- const yi = /* @__PURE__ */ v(bi, [["render", gi]]), vi = {
4497
+ const Ii = /* @__PURE__ */ v(Ti, [["render", wi]]), $i = {
4459
4498
  name: "Form:TextArea",
4460
4499
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
4461
4500
  inputs: [{
@@ -4491,7 +4530,7 @@ const yi = /* @__PURE__ */ v(bi, [["render", gi]]), vi = {
4491
4530
  },
4492
4531
  static: !0,
4493
4532
  noWrap: !0
4494
- }, Si = y({
4533
+ }, Ei = y({
4495
4534
  name: "builder-textarea",
4496
4535
  props: [
4497
4536
  "attributes",
@@ -4504,17 +4543,17 @@ const yi = /* @__PURE__ */ v(bi, [["render", gi]]), vi = {
4504
4543
  data() {
4505
4544
  return { filterAttrs: O };
4506
4545
  }
4507
- }), ki = ["placeholder", "name", "value", "defaultValue", "required"];
4508
- function Ci(e, t, n, o, r, i) {
4546
+ }), Ri = ["placeholder", "name", "value", "defaultValue", "required"];
4547
+ function Ai(e, t, n, o, r, i) {
4509
4548
  return d(), h("textarea", $({
4510
4549
  placeholder: e.placeholder,
4511
4550
  name: e.name,
4512
4551
  value: e.value,
4513
4552
  defaultValue: e.defaultValue,
4514
4553
  required: e.required
4515
- }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, ki);
4554
+ }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Ri);
4516
4555
  }
4517
- const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
4556
+ const Pi = /* @__PURE__ */ v(Ei, [["render", Ai]]), Bi = {
4518
4557
  name: "Raw:Img",
4519
4558
  hideFromInsertMenu: !0,
4520
4559
  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",
@@ -4522,7 +4561,7 @@ const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
4522
4561
  name: "image",
4523
4562
  bubble: !0,
4524
4563
  type: "file",
4525
- allowedFileTypes: xe,
4564
+ allowedFileTypes: Ue,
4526
4565
  required: !0
4527
4566
  }, {
4528
4567
  name: "backgroundSize",
@@ -4558,7 +4597,7 @@ const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
4558
4597
  defaultValue: 0.7041
4559
4598
  }],
4560
4599
  noWrap: !0
4561
- }, Ii = y({
4600
+ }, Vi = y({
4562
4601
  name: "builder-img-component",
4563
4602
  props: [
4564
4603
  "imgSrc",
@@ -4571,7 +4610,7 @@ const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
4571
4610
  "aspectRatio"
4572
4611
  ],
4573
4612
  data() {
4574
- return { isEditing: P };
4613
+ return { isEditing: A };
4575
4614
  },
4576
4615
  computed: {
4577
4616
  srcSetToUse() {
@@ -4583,13 +4622,13 @@ const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
4583
4622
  const e = {
4584
4623
  ...O(this.attributes, "v-on:", !1),
4585
4624
  ...O(this.attributes, "v-on:", !0),
4586
- [M()]: `builder-raw-img ${this.attributes[M()] || ""}`
4625
+ [H()]: `builder-raw-img ${this.attributes[H()] || ""}`
4587
4626
  };
4588
4627
  return delete e.style, e;
4589
4628
  }
4590
4629
  }
4591
- }), $i = ["alt", "title", "src"];
4592
- function Ei(e, t, n, o, r, i) {
4630
+ }), Ni = ["alt", "title", "src"];
4631
+ function Oi(e, t, n, o, r, i) {
4593
4632
  var s;
4594
4633
  return d(), h("img", $({
4595
4634
  loading: "lazy",
@@ -4603,9 +4642,9 @@ function Ei(e, t, n, o, r, i) {
4603
4642
  aspectRatio: e.aspectRatio || void 0,
4604
4643
  ...((s = e.attributes) == null ? void 0 : s.style) || {}
4605
4644
  }
4606
- }, e.imgAttrs), null, 16, $i);
4645
+ }, e.imgAttrs), null, 16, Ni);
4607
4646
  }
4608
- const Ri = /* @__PURE__ */ v(Ii, [["render", Ei]]), Pi = {
4647
+ const Wi = /* @__PURE__ */ v(Vi, [["render", Oi]]), Di = {
4609
4648
  name: "Video",
4610
4649
  canHaveChildren: !0,
4611
4650
  defaultStyles: {
@@ -4616,14 +4655,14 @@ const Ri = /* @__PURE__ */ v(Ii, [["render", Ei]]), Pi = {
4616
4655
  inputs: [{
4617
4656
  name: "video",
4618
4657
  type: "file",
4619
- allowedFileTypes: fr,
4658
+ allowedFileTypes: Cr,
4620
4659
  bubble: !0,
4621
4660
  defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
4622
4661
  required: !0
4623
4662
  }, {
4624
4663
  name: "posterImage",
4625
4664
  type: "file",
4626
- allowedFileTypes: xe,
4665
+ allowedFileTypes: Ue,
4627
4666
  helperText: "Image to show before the video plays"
4628
4667
  }, {
4629
4668
  name: "autoPlay",
@@ -4689,7 +4728,7 @@ const Ri = /* @__PURE__ */ v(Ii, [["render", Ei]]), Pi = {
4689
4728
  shouldReceiveBuilderProps: {
4690
4729
  builderBlock: !0
4691
4730
  }
4692
- }, Ai = y({
4731
+ }, Ui = y({
4693
4732
  name: "builder-video",
4694
4733
  props: [
4695
4734
  "lazyLoad",
@@ -4762,16 +4801,16 @@ const Ri = /* @__PURE__ */ v(Ii, [["render", Ei]]), Pi = {
4762
4801
  };
4763
4802
  }
4764
4803
  }
4765
- }), Bi = { style: {
4804
+ }), xi = { style: {
4766
4805
  position: "relative"
4767
- } }, Vi = ["preload", "poster"], Ni = {
4806
+ } }, Li = ["preload", "poster"], Fi = {
4768
4807
  key: 1,
4769
4808
  style: {
4770
4809
  display: "flex",
4771
4810
  flexDirection: "column",
4772
4811
  alignItems: "stretch"
4773
4812
  }
4774
- }, Oi = {
4813
+ }, Mi = {
4775
4814
  key: 2,
4776
4815
  style: {
4777
4816
  pointerEvents: "none",
@@ -4785,9 +4824,9 @@ const Ri = /* @__PURE__ */ v(Ii, [["render", Ei]]), Pi = {
4785
4824
  height: "100%"
4786
4825
  }
4787
4826
  };
4788
- function Wi(e, t, n, o, r, i) {
4827
+ function Hi(e, t, n, o, r, i) {
4789
4828
  var s, l, a, u, p, b, c;
4790
- return d(), h("div", Bi, [
4829
+ return d(), h("div", xi, [
4791
4830
  G("video", $({
4792
4831
  class: "builder-video",
4793
4832
  ref: "videoRef",
@@ -4815,85 +4854,85 @@ function Wi(e, t, n, o, r, i) {
4815
4854
  src: e.video
4816
4855
  }
4817
4856
  ), null, 16)
4818
- ], 16, Vi),
4857
+ ], 16, Li),
4819
4858
  e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (d(), h("div", {
4820
4859
  key: 0,
4821
- style: H({
4860
+ style: M({
4822
4861
  width: "100%",
4823
4862
  paddingTop: e.aspectRatio * 100 + "%",
4824
4863
  pointerEvents: "none",
4825
4864
  fontSize: "0px"
4826
4865
  })
4827
4866
  }, null, 4)) : T("", !0),
4828
- (p = (u = e.builderBlock) == null ? void 0 : u.children) != null && p.length && e.fitContent ? (d(), h("div", Ni, [
4867
+ (p = (u = e.builderBlock) == null ? void 0 : u.children) != null && p.length && e.fitContent ? (d(), h("div", Fi, [
4829
4868
  N(e.$slots, "default")
4830
4869
  ])) : T("", !0),
4831
- (c = (b = e.builderBlock) == null ? void 0 : b.children) != null && c.length && !e.fitContent ? (d(), h("div", Oi, [
4870
+ (c = (b = e.builderBlock) == null ? void 0 : b.children) != null && c.length && !e.fitContent ? (d(), h("div", Mi, [
4832
4871
  N(e.$slots, "default")
4833
4872
  ])) : T("", !0)
4834
4873
  ]);
4835
4874
  }
4836
- const Di = /* @__PURE__ */ v(Ai, [["render", Wi]]), xi = () => [{
4837
- component: Mr,
4838
- ...Ur
4839
- }, {
4875
+ const ji = /* @__PURE__ */ v(Ui, [["render", Hi]]), zi = () => [{
4840
4876
  component: Qr,
4841
- ...jr
4877
+ ...Kr
4842
4878
  }, {
4843
- component: oi,
4844
- ...Yr
4879
+ component: ni,
4880
+ ..._r
4845
4881
  }, {
4846
- component: li,
4847
- ...ri
4882
+ component: di,
4883
+ ...oi
4848
4884
  }, {
4849
- component: yi,
4850
- ...fi
4885
+ component: fi,
4886
+ ...ui
4851
4887
  }, {
4852
- component: hi,
4853
- ...ci
4888
+ component: Ii,
4889
+ ...Ci
4854
4890
  }, {
4855
- component: Ti,
4856
- ...vi
4891
+ component: ki,
4892
+ ...bi
4857
4893
  }, {
4858
- component: Ri,
4859
- ...wi
4894
+ component: Pi,
4895
+ ...$i
4860
4896
  }, {
4861
- component: Di,
4862
- ...Pi
4863
- }], Xe = () => [{
4864
- component: jt,
4865
- ...pr
4897
+ component: Wi,
4898
+ ...Bi
4866
4899
  }, {
4867
- component: Oo,
4868
- ...mr
4869
- }, {
4870
- component: xo,
4871
- ...hr
4900
+ component: ji,
4901
+ ...Di
4902
+ }], et = () => [{
4903
+ component: qt,
4904
+ ...vr
4872
4905
  }, {
4873
- component: Ko,
4874
- ...br
4906
+ component: Fo,
4907
+ ...Sr
4875
4908
  }, {
4876
- component: Jo,
4909
+ component: jo,
4877
4910
  ...kr
4878
4911
  }, {
4879
- component: Ir,
4880
- ...Cr
4912
+ component: Yo,
4913
+ ...Tr
4881
4914
  }, {
4882
- component: ks,
4883
- ...$r
4915
+ component: er,
4916
+ ...Rr
4884
4917
  }, {
4885
- component: xr,
4918
+ component: Vr,
4919
+ ...Ar
4920
+ }, {
4921
+ component: Rs,
4886
4922
  ...Nr
4887
- }, ...Vt.includes(E) ? [{
4888
- component: Sr,
4889
- ...gr
4923
+ }, {
4924
+ component: zr,
4925
+ ...Fr
4926
+ }, ...Wt.includes(E) ? [{
4927
+ component: Er,
4928
+ ...wr
4890
4929
  }] : [], {
4891
- component: Vr,
4892
- ...Er
4930
+ component: Lr,
4931
+ ...Or
4893
4932
  }, {
4894
- component: ur,
4895
- ...sr
4896
- }, ...xi()], Ui = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
4933
+ component: yr,
4934
+ ...mr
4935
+ }, ...zi()], Ki = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
4897
4936
  function getAndSetVariantId() {
4898
4937
  function setCookie(name, value, days) {
4899
4938
  let expires = '';
@@ -4952,7 +4991,7 @@ const Di = /* @__PURE__ */ v(Ai, [["render", Wi]]), xi = () => [{
4952
4991
  }).join('');
4953
4992
  styleEl.innerHTML = newStyleStr;
4954
4993
  }
4955
- }`, Li = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4994
+ }`, qi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4956
4995
  if (!navigator.cookieEnabled) {
4957
4996
  return;
4958
4997
  }
@@ -4990,33 +5029,33 @@ const Di = /* @__PURE__ */ v(Ai, [["render", Wi]]), xi = () => [{
4990
5029
  ...t,
4991
5030
  testVariationId: t.id,
4992
5031
  id: e == null ? void 0 : e.id
4993
- })), Fi = ({
5032
+ })), Gi = ({
4994
5033
  canTrack: e,
4995
5034
  content: t
4996
- }) => !(!(ae(t).length > 0) || !e), Hi = (e) => e === "react" || e === "reactNative", Mi = E === "angular", Le = Hi(E), ji = () => `
5035
+ }) => !(!(ae(t).length > 0) || !e), Ji = (e) => e === "react" || e === "reactNative", Qi = E === "angular", Le = Ji(E), _i = () => `
4997
5036
  (function() {
4998
5037
  if (!window.${$e}) {
4999
- window.${$e} = ${Ui};
5038
+ window.${$e} = ${Ki};
5000
5039
  }
5001
5040
  if (!window.${Ee}) {
5002
- window.${Ee} = ${Li};
5041
+ window.${Ee} = ${qi};
5003
5042
  }${Le ? `
5004
5043
  var thisScriptEl = document.currentScript;
5005
5044
  if (thisScriptEl) { thisScriptEl.remove(); }` : ""}
5006
5045
  })();
5007
- `, zi = (e, t) => `
5046
+ `, Yi = (e, t) => `
5008
5047
  window.${$e}(
5009
- "${t}",${JSON.stringify(e)}, ${Le}, ${Mi}
5010
- )`, Ki = ({
5048
+ "${t}",${JSON.stringify(e)}, ${Le}, ${Qi}
5049
+ )`, Xi = ({
5011
5050
  contentId: e,
5012
5051
  variationId: t
5013
5052
  }) => `window.${Ee}(
5014
5053
  "${t}", "${e}", ${Le}
5015
5054
  )`;
5016
- function Ze(e) {
5055
+ function tt(e) {
5017
5056
  return Math.round(e * 1e3) / 1e3;
5018
5057
  }
5019
- const qi = (e, t, n = !0) => {
5058
+ const Zi = (e, t, n = !0) => {
5020
5059
  if (!(e instanceof HTMLElement))
5021
5060
  return null;
5022
5061
  let o = n ? e : e.parentElement;
@@ -5027,35 +5066,35 @@ const qi = (e, t, n = !0) => {
5027
5066
  return o;
5028
5067
  } while (o = o.parentElement);
5029
5068
  return null;
5030
- }, Gi = (e) => qi(e, (t) => {
5069
+ }, es = (e) => Zi(e, (t) => {
5031
5070
  const n = t.getAttribute("builder-id") || t.id;
5032
5071
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
5033
- }), _e = ({
5072
+ }), nt = ({
5034
5073
  event: e,
5035
5074
  target: t
5036
5075
  }) => {
5037
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = Ze(o / n.width), s = Ze(r / n.height);
5076
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = tt(o / n.width), s = tt(r / n.height);
5038
5077
  return {
5039
5078
  x: i,
5040
5079
  y: s
5041
5080
  };
5042
- }, Ji = (e) => {
5043
- const t = e.target, n = t && Gi(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
5081
+ }, ts = (e) => {
5082
+ const t = e.target, n = t && es(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
5044
5083
  return {
5045
5084
  targetBuilderElement: o || void 0,
5046
5085
  metadata: {
5047
- targetOffset: t ? _e({
5086
+ targetOffset: t ? nt({
5048
5087
  event: e,
5049
5088
  target: t
5050
5089
  }) : void 0,
5051
- builderTargetOffset: n ? _e({
5090
+ builderTargetOffset: n ? nt({
5052
5091
  event: e,
5053
5092
  target: n
5054
5093
  }) : void 0,
5055
5094
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
5056
5095
  }
5057
5096
  };
5058
- }, Qi = ["svelte", "qwik", "vue"], Yi = () => Qi.includes(E) && (P() || Ve()), Xi = (e) => {
5097
+ }, ns = ["svelte", "qwik", "vue"], os = () => ns.includes(E) && (A() || Ve()), rs = (e) => {
5059
5098
  var i;
5060
5099
  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);
5061
5100
  let r = "";
@@ -5081,15 +5120,15 @@ font-weight: ${s};
5081
5120
  `.trim());
5082
5121
  }
5083
5122
  return r;
5084
- }, Zi = ({
5123
+ }, is = ({
5085
5124
  customFonts: e
5086
5125
  }) => {
5087
5126
  var t;
5088
- return ((t = e == null ? void 0 : e.map((n) => Xi(n))) == null ? void 0 : t.join(" ")) || "";
5089
- }, _i = ({
5127
+ return ((t = e == null ? void 0 : e.map((n) => rs(n))) == null ? void 0 : t.join(" ")) || "";
5128
+ }, ss = ({
5090
5129
  cssCode: e,
5091
5130
  contentId: t
5092
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", es = `
5131
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", as = `
5093
5132
  .builder-button {
5094
5133
  all: unset;
5095
5134
  }
@@ -5106,7 +5145,7 @@ font-weight: ${s};
5106
5145
  text-align: inherit;
5107
5146
  font-family: inherit;
5108
5147
  }
5109
- `, ts = (e) => e ? "" : es, ns = (e) => `variant-${e}`, os = y({
5148
+ `, ls = (e) => e ? "" : as, cs = (e) => `variant-${e}`, ds = y({
5110
5149
  name: "enable-editor",
5111
5150
  components: { DynamicDiv: ne },
5112
5151
  props: [
@@ -5139,8 +5178,8 @@ font-weight: ${s};
5139
5178
  httpReqsPending: {},
5140
5179
  clicked: !1,
5141
5180
  builderContext: ve,
5142
- needsElementRefDivForEditing: Yi,
5143
- getWrapperClassName: ns
5181
+ needsElementRefDivForEditing: os,
5182
+ getWrapperClassName: cs
5144
5183
  };
5145
5184
  },
5146
5185
  provide() {
@@ -5155,7 +5194,7 @@ font-weight: ${s};
5155
5194
  mounted() {
5156
5195
  var e, t, n;
5157
5196
  if (w()) {
5158
- P() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
5197
+ A() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
5159
5198
  new CustomEvent("initeditingbldr")
5160
5199
  );
5161
5200
  const o = this.builderContextSignal.content && J(this.canTrack), r = me({
@@ -5173,7 +5212,7 @@ font-weight: ${s};
5173
5212
  variationId: r !== s ? r : void 0
5174
5213
  });
5175
5214
  }
5176
- Ve() && !P() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
5215
+ Ve() && !A() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
5177
5216
  new CustomEvent("initpreviewingbldr")
5178
5217
  );
5179
5218
  }
@@ -5275,7 +5314,7 @@ font-weight: ${s};
5275
5314
  this.builderContextSignal.content = n;
5276
5315
  },
5277
5316
  processMessage(e) {
5278
- return vt({
5317
+ return Ct({
5279
5318
  model: this.model,
5280
5319
  trustedHosts: this.trustedHosts,
5281
5320
  callbacks: {
@@ -5289,7 +5328,7 @@ font-weight: ${s};
5289
5328
  });
5290
5329
  },
5291
5330
  animation: (t) => {
5292
- $t(t);
5331
+ At(t);
5293
5332
  },
5294
5333
  contentUpdate: (t, n) => {
5295
5334
  this.mergeNewContent(t, n);
@@ -5311,7 +5350,7 @@ font-weight: ${s};
5311
5350
  contentId: r,
5312
5351
  apiKey: this.apiKey,
5313
5352
  variationId: o !== r ? o : void 0,
5314
- ...Ji(e),
5353
+ ...ts(e),
5315
5354
  unique: !this.clicked
5316
5355
  });
5317
5356
  }
@@ -5325,7 +5364,7 @@ font-weight: ${s};
5325
5364
  if (!r)
5326
5365
  return;
5327
5366
  const i = typeof r == "object" && r["@type"] === "@builder.io/core:Request";
5328
- if (this.httpReqsPending[o] || this.httpReqsData[o] && !P())
5367
+ if (this.httpReqsPending[o] || this.httpReqsData[o] && !A())
5329
5368
  return;
5330
5369
  const s = i ? r.request.url : r;
5331
5370
  this.httpReqsPending[o] = !0;
@@ -5349,7 +5388,7 @@ font-weight: ${s};
5349
5388
  url: l,
5350
5389
  method: "GET"
5351
5390
  };
5352
- Ae(JSON.stringify(a));
5391
+ Pe(JSON.stringify(a));
5353
5392
  const u = {
5354
5393
  method: a.method,
5355
5394
  headers: a.headers,
@@ -5372,7 +5411,7 @@ font-weight: ${s};
5372
5411
  );
5373
5412
  },
5374
5413
  emitStateUpdate() {
5375
- P() && window.dispatchEvent(
5414
+ A() && window.dispatchEvent(
5376
5415
  new CustomEvent(
5377
5416
  "builder:component:stateChange",
5378
5417
  {
@@ -5387,7 +5426,7 @@ font-weight: ${s};
5387
5426
  );
5388
5427
  },
5389
5428
  elementRef_onIniteditingbldr(e) {
5390
- window.addEventListener("message", this.processMessage), yt({
5429
+ window.addEventListener("message", this.processMessage), kt({
5391
5430
  ...this.locale ? {
5392
5431
  locale: this.locale
5393
5432
  } : {},
@@ -5407,7 +5446,7 @@ font-weight: ${s};
5407
5446
  ).forEach((t) => {
5408
5447
  var n, o;
5409
5448
  if (!((n = t.models) != null && n.length) || t.models.includes(this.model)) {
5410
- const r = Bn(t);
5449
+ const r = On(t);
5411
5450
  (o = window.parent) == null || o.postMessage(r, "*");
5412
5451
  }
5413
5452
  }), window.addEventListener(
@@ -5435,9 +5474,9 @@ font-weight: ${s};
5435
5474
  }
5436
5475
  }
5437
5476
  });
5438
- function rs(e, t, n, o, r, i) {
5477
+ function us(e, t, n, o, r, i) {
5439
5478
  var s, l, a;
5440
- return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(Z(e.ContentWrapper), $({
5479
+ return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(X(e.ContentWrapper), $({
5441
5480
  key: 0,
5442
5481
  ref: "elementRef",
5443
5482
  onClick: (u) => e.onClick(u),
@@ -5456,26 +5495,26 @@ function rs(e, t, n, o, r, i) {
5456
5495
  _: 3
5457
5496
  }, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : T("", !0);
5458
5497
  }
5459
- const is = /* @__PURE__ */ v(os, [["render", rs]]), ss = y({
5498
+ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = y({
5460
5499
  name: "content-styles",
5461
5500
  components: { InlinedStyles: he },
5462
5501
  props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
5463
5502
  data() {
5464
5503
  return {
5465
5504
  injectedStyles: `
5466
- ${_i({
5505
+ ${ss({
5467
5506
  cssCode: this.cssCode,
5468
5507
  contentId: this.contentId
5469
5508
  })}
5470
- ${Zi({
5509
+ ${is({
5471
5510
  customFonts: this.customFonts
5472
5511
  })}
5473
- ${ts(this.isNestedRender)}
5512
+ ${ls(this.isNestedRender)}
5474
5513
  `.trim()
5475
5514
  };
5476
5515
  }
5477
5516
  });
5478
- function as(e, t, n, o, r, i) {
5517
+ function hs(e, t, n, o, r, i) {
5479
5518
  const s = k("InlinedStyles");
5480
5519
  return d(), S(s, {
5481
5520
  id: "builderio-content",
@@ -5483,7 +5522,7 @@ function as(e, t, n, o, r, i) {
5483
5522
  nonce: e.nonce
5484
5523
  }, null, 8, ["styles", "nonce"]);
5485
5524
  }
5486
- const ls = /* @__PURE__ */ v(ss, [["render", as]]), cs = ({
5525
+ const fs = /* @__PURE__ */ v(ms, [["render", hs]]), bs = ({
5487
5526
  content: e,
5488
5527
  data: t,
5489
5528
  locale: n
@@ -5500,7 +5539,7 @@ const ls = /* @__PURE__ */ v(ss, [["render", as]]), cs = ({
5500
5539
  locale: n
5501
5540
  } : {}
5502
5541
  };
5503
- }, ds = ({
5542
+ }, gs = ({
5504
5543
  content: e,
5505
5544
  data: t
5506
5545
  }) => e ? {
@@ -5510,12 +5549,12 @@ const ls = /* @__PURE__ */ v(ss, [["render", as]]), cs = ({
5510
5549
  ...t
5511
5550
  },
5512
5551
  meta: e == null ? void 0 : e.meta
5513
- } : void 0, us = Dt, ps = y({
5552
+ } : void 0, ys = Lt, vs = y({
5514
5553
  name: "content-component",
5515
5554
  components: {
5516
- EnableEditor: is,
5517
- InlinedScript: Ue,
5518
- ContentStyles: ls,
5555
+ EnableEditor: ps,
5556
+ InlinedScript: xe,
5557
+ ContentStyles: fs,
5519
5558
  Blocks: K,
5520
5559
  DynamicDiv: ne
5521
5560
  },
@@ -5546,32 +5585,32 @@ const ls = /* @__PURE__ */ v(ss, [["render", as]]), cs = ({
5546
5585
  data() {
5547
5586
  var e, t;
5548
5587
  return {
5549
- scriptStr: Ki({
5588
+ scriptStr: Xi({
5550
5589
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
5551
5590
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
5552
5591
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
5553
5592
  contentId: (t = this.content) == null ? void 0 : t.id
5554
5593
  }),
5555
5594
  registeredComponents: [
5556
- ...Xe(),
5595
+ ...et(),
5557
5596
  ...this.customComponents || []
5558
5597
  ].reduce(
5559
5598
  (n, { component: o, ...r }) => ({
5560
5599
  ...n,
5561
5600
  [r.name]: {
5562
- component: us(o),
5601
+ component: ys(o),
5563
5602
  ...de(r)
5564
5603
  }
5565
5604
  }),
5566
5605
  {}
5567
5606
  ),
5568
5607
  builderContextSignal: {
5569
- content: ds({
5608
+ content: gs({
5570
5609
  content: this.content,
5571
5610
  data: this.data
5572
5611
  }),
5573
5612
  localState: void 0,
5574
- rootState: cs({
5613
+ rootState: bs({
5575
5614
  content: this.content,
5576
5615
  data: this.data,
5577
5616
  locale: this.locale
@@ -5582,7 +5621,7 @@ const ls = /* @__PURE__ */ v(ss, [["render", as]]), cs = ({
5582
5621
  apiKey: this.apiKey,
5583
5622
  apiVersion: this.apiVersion,
5584
5623
  componentInfos: [
5585
- ...Xe(),
5624
+ ...et(),
5586
5625
  ...this.customComponents || []
5587
5626
  ].reduce(
5588
5627
  (n, { component: o, ...r }) => ({
@@ -5603,7 +5642,7 @@ const ls = /* @__PURE__ */ v(ss, [["render", as]]), cs = ({
5603
5642
  provide() {
5604
5643
  const e = this;
5605
5644
  return {
5606
- [tt.key]: {
5645
+ [rt.key]: {
5607
5646
  registeredComponents: e.registeredComponents
5608
5647
  }
5609
5648
  };
@@ -5647,7 +5686,7 @@ const ls = /* @__PURE__ */ v(ss, [["render", as]]), cs = ({
5647
5686
  }
5648
5687
  }
5649
5688
  });
5650
- function ms(e, t, n, o, r, i) {
5689
+ function Ss(e, t, n, o, r, i) {
5651
5690
  const s = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
5652
5691
  return d(), S(u, $({
5653
5692
  apiHost: e.apiHost,
@@ -5669,7 +5708,7 @@ function ms(e, t, n, o, r, i) {
5669
5708
  isNestedRender: e.isNestedRender
5670
5709
  }, {}), {
5671
5710
  default: D(() => {
5672
- var p, b, c, m, f, g, A;
5711
+ var p, b, c, m, f, g, P;
5673
5712
  return [
5674
5713
  e.isSsrAbTest ? (d(), S(s, {
5675
5714
  key: 0,
@@ -5686,7 +5725,7 @@ function ms(e, t, n, o, r, i) {
5686
5725
  customFonts: (f = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : f.customFonts
5687
5726
  }, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : T("", !0),
5688
5727
  R(a, {
5689
- blocks: (A = (g = e.builderContextSignal.content) == null ? void 0 : g.data) == null ? void 0 : A.blocks,
5728
+ blocks: (P = (g = e.builderContextSignal.content) == null ? void 0 : g.data) == null ? void 0 : P.blocks,
5690
5729
  context: e.builderContextSignal,
5691
5730
  registeredComponents: e.registeredComponents,
5692
5731
  linkComponent: e.linkComponent
@@ -5696,12 +5735,12 @@ function ms(e, t, n, o, r, i) {
5696
5735
  _: 1
5697
5736
  }, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "enrichOptions", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
5698
5737
  }
5699
- const hs = /* @__PURE__ */ v(ps, [["render", ms]]), fs = y({
5738
+ const ks = /* @__PURE__ */ v(vs, [["render", Ss]]), Cs = y({
5700
5739
  name: "content-variants",
5701
5740
  components: {
5702
- InlinedScript: Ue,
5741
+ InlinedScript: xe,
5703
5742
  InlinedStyles: he,
5704
- ContentComponent: hs
5743
+ ContentComponent: ks
5705
5744
  },
5706
5745
  props: [
5707
5746
  "canTrack",
@@ -5727,15 +5766,15 @@ const hs = /* @__PURE__ */ v(ps, [["render", ms]]), fs = y({
5727
5766
  ],
5728
5767
  data() {
5729
5768
  return {
5730
- shouldRenderVariants: Fi({
5769
+ shouldRenderVariants: Gi({
5731
5770
  canTrack: J(this.canTrack),
5732
5771
  content: this.content
5733
5772
  }),
5734
- shouldEmitPersonalizationFns: nr(this.content),
5735
- SDKS_SUPPORTING_PERSONALIZATION: Vt,
5736
- getInitPersonalizationVariantsFnsScriptString: or,
5773
+ shouldEmitPersonalizationFns: cr(this.content),
5774
+ SDKS_SUPPORTING_PERSONALIZATION: Wt,
5775
+ getInitPersonalizationVariantsFnsScriptString: dr,
5737
5776
  TARGET: E,
5738
- getInitVariantsFnsScriptString: ji,
5777
+ getInitVariantsFnsScriptString: _i,
5739
5778
  getVariants: ae
5740
5779
  };
5741
5780
  },
@@ -5744,7 +5783,7 @@ const hs = /* @__PURE__ */ v(ps, [["render", ms]]), fs = y({
5744
5783
  computed: {
5745
5784
  updateCookieAndStylesScriptStr() {
5746
5785
  var e;
5747
- return zi(
5786
+ return Yi(
5748
5787
  ae(this.content).map((t) => ({
5749
5788
  id: t.testVariationId,
5750
5789
  testRatio: t.testRatio
@@ -5760,14 +5799,14 @@ const hs = /* @__PURE__ */ v(ps, [["render", ms]]), fs = y({
5760
5799
  return this.shouldRenderVariants ? {
5761
5800
  ...this.content,
5762
5801
  testVariationId: (e = this.content) == null ? void 0 : e.id
5763
- } : Hn({
5802
+ } : zn({
5764
5803
  item: this.content,
5765
5804
  canTrack: J(this.canTrack)
5766
5805
  });
5767
5806
  }
5768
5807
  }
5769
5808
  });
5770
- function bs(e, t, n, o, r, i) {
5809
+ function Ts(e, t, n, o, r, i) {
5771
5810
  const s = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
5772
5811
  return d(), h(I, null, [
5773
5812
  e.shouldEmitPersonalizationFns ? (d(), h(I, { key: 0 }, [
@@ -5848,7 +5887,7 @@ function bs(e, t, n, o, r, i) {
5848
5887
  }), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "enrichOptions", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
5849
5888
  ], 64);
5850
5889
  }
5851
- const gs = /* @__PURE__ */ v(fs, [["render", bs]]), ys = async ({
5890
+ const ws = /* @__PURE__ */ v(Cs, [["render", Ts]]), Is = async ({
5852
5891
  builderContextValue: e,
5853
5892
  symbol: t
5854
5893
  }) => {
@@ -5866,9 +5905,9 @@ const gs = /* @__PURE__ */ v(fs, [["render", bs]]), ys = async ({
5866
5905
  }).catch((n) => {
5867
5906
  B.error("Could not fetch symbol content: ", n);
5868
5907
  });
5869
- }, vs = y({
5908
+ }, $s = y({
5870
5909
  name: "builder-symbol",
5871
- components: { ContentVariants: gs, DynamicDiv: ne },
5910
+ components: { ContentVariants: ws, DynamicDiv: ne },
5872
5911
  props: [
5873
5912
  "symbol",
5874
5913
  "builderComponents",
@@ -5910,7 +5949,7 @@ const gs = /* @__PURE__ */ v(fs, [["render", bs]]), ys = async ({
5910
5949
  className() {
5911
5950
  var e, t;
5912
5951
  return [
5913
- this.attributes[M()],
5952
+ this.attributes[H()],
5914
5953
  "builder-symbol",
5915
5954
  (e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
5916
5955
  (t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
@@ -5925,7 +5964,7 @@ const gs = /* @__PURE__ */ v(fs, [["render", bs]]), ys = async ({
5925
5964
  methods: {
5926
5965
  setContent() {
5927
5966
  var e;
5928
- this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || ys({
5967
+ this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || Is({
5929
5968
  symbol: this.symbol,
5930
5969
  builderContextValue: this.builderContext
5931
5970
  }).then((t) => {
@@ -5935,10 +5974,10 @@ const gs = /* @__PURE__ */ v(fs, [["render", bs]]), ys = async ({
5935
5974
  }
5936
5975
  }
5937
5976
  });
5938
- function Ss(e, t, n, o, r, i) {
5977
+ function Es(e, t, n, o, r, i) {
5939
5978
  var l, a, u, p, b, c, m;
5940
5979
  const s = k("ContentVariants");
5941
- return d(), h("div", $({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
5980
+ return d(), h("div", $({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
5942
5981
  R(s, {
5943
5982
  nonce: e.builderContext.nonce,
5944
5983
  isNestedRender: !0,
@@ -5963,48 +6002,48 @@ function Ss(e, t, n, o, r, i) {
5963
6002
  }, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
5964
6003
  ], 16);
5965
6004
  }
5966
- const ks = /* @__PURE__ */ v(vs, [["render", Ss]]);
6005
+ const Rs = /* @__PURE__ */ v($s, [["render", Es]]);
5967
6006
  export {
5968
- Is as A,
5969
- At as B,
5970
- Oo as C,
5971
- Ps as D,
5972
- Bs as E,
5973
- xo as F,
5974
- _n as G,
5975
- eo as H,
5976
- Ko as I,
6007
+ Vs as A,
6008
+ Nt as B,
6009
+ Fo as C,
6010
+ Ds as D,
6011
+ xs as E,
6012
+ jo as F,
6013
+ io as G,
6014
+ so as H,
6015
+ Yo as I,
5977
6016
  We as J,
5978
- ws as K,
5979
- Ws as L,
5980
- Jo as S,
6017
+ Bs as K,
6018
+ Hs as L,
6019
+ er as S,
5981
6020
  E as T,
5982
- Di as V,
6021
+ ji as V,
5983
6022
  v as _,
5984
- M as a,
6023
+ H as a,
5985
6024
  ve as b,
5986
6025
  he as c,
5987
6026
  j as d,
5988
6027
  te as e,
5989
- Vs as f,
5990
- Os as g,
5991
- Ao as h,
5992
- P as i,
5993
- Ns as j,
5994
- Ds as k,
6028
+ Ls as f,
6029
+ Ms as g,
6030
+ Do as h,
6031
+ A as i,
6032
+ Fs as j,
6033
+ js as k,
5995
6034
  De as l,
5996
- An as m,
5997
- jt as n,
5998
- ks as o,
5999
- xr as p,
6035
+ Nn as m,
6036
+ qt as n,
6037
+ Rs as o,
6038
+ zr as p,
6000
6039
  K as q,
6001
- gs as r,
6002
- As as s,
6040
+ ws as r,
6041
+ Us as s,
6003
6042
  Ve as t,
6004
- Bn as u,
6005
- $s as v,
6006
- us as w,
6007
- Es as x,
6008
- Rs as y,
6009
- bt as z
6043
+ On as u,
6044
+ Ns as v,
6045
+ ys as w,
6046
+ Os as x,
6047
+ Ws as y,
6048
+ vt as z
6010
6049
  };