@builder.io/sdk-vue 5.3.0 → 5.4.0

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 (89) hide show
  1. package/lib/browser/{awaiter-4aFQAEvG.js → awaiter-XLoIdAw3.js} +1 -1
  2. package/lib/browser/{awaiter-2uzflb3S.cjs → awaiter-qNFJfpSz.cjs} +1 -1
  3. package/lib/browser/{block-wrapper-Uj0c_ct-.js → block-wrapper-f3zEx8S_.js} +3 -3
  4. package/lib/browser/{block-wrapper-1ItsXF0j.cjs → block-wrapper-reas9rmo.cjs} +1 -1
  5. package/lib/browser/blocks/symbol/symbol.helpers.d.ts +1 -0
  6. package/lib/browser/blocks/symbol/symbol.vue.d.ts +1 -0
  7. package/lib/browser/{component-ref-U0GRcehd.cjs → component-ref-4ay3OV1k.cjs} +1 -1
  8. package/lib/browser/{component-ref-826ipClg.js → component-ref-4lLMyE43.js} +4 -4
  9. package/lib/browser/components/builder-scripts.vue.d.ts +18 -0
  10. package/lib/browser/components/content-variants/content-variants.vue.d.ts +3 -0
  11. package/lib/browser/components/content-variants/helpers.d.ts +6 -0
  12. package/lib/browser/constants/sdk-version.d.ts +1 -1
  13. package/lib/browser/context/builder-scripts.context.d.ts +7 -0
  14. package/lib/browser/{get-block-properties-XhHpZEJX.cjs → get-block-properties-CK4qnoHd.cjs} +1 -1
  15. package/lib/browser/{get-block-properties-u3S8CkNp.js → get-block-properties-nqV8scES.js} +1 -1
  16. package/lib/browser/index-helpers/blocks-exports.d.ts +1 -0
  17. package/lib/browser/index-lRIGot7h.cjs +368 -0
  18. package/lib/browser/{index-Jf8hjJYZ.js → index-pJnoXY0A.js} +926 -866
  19. package/lib/browser/index.cjs +1 -1
  20. package/lib/browser/index.mjs +22 -21
  21. package/lib/browser/{live-edit-uev5ovOr.js → live-edit-5mCChUV2.js} +1 -1
  22. package/lib/browser/{live-edit-BxSoS0rX.cjs → live-edit-hoV0ghuj.cjs} +1 -1
  23. package/lib/browser/{repeated-block-s-uTJJ2l.js → repeated-block-F5n8q4pA.js} +2 -2
  24. package/lib/browser/{repeated-block-Mj7AAxUa.cjs → repeated-block-FDJw__8i.cjs} +1 -1
  25. package/lib/browser/{style-wrapper-C17hpa9C.cjs → style-wrapper-6XW31DT6.cjs} +1 -1
  26. package/lib/browser/{style-wrapper-WeOZ3wU5.js → style-wrapper-e5wqPuhd.js} +1 -1
  27. package/lib/browser/style.css +1 -1
  28. package/lib/edge/{awaiter-3P7HNK2U.js → awaiter-TPWZATcH.js} +1 -1
  29. package/lib/edge/{awaiter-tL_1GDRg.cjs → awaiter-g1cucmgb.cjs} +1 -1
  30. package/lib/edge/{block-wrapper-AJ9g81fv.cjs → block-wrapper-oEdWkUs5.cjs} +1 -1
  31. package/lib/{node/block-wrapper-e5lqTjH4.js → edge/block-wrapper-pWTeul3q.js} +3 -3
  32. package/lib/edge/blocks/symbol/symbol.helpers.d.ts +1 -0
  33. package/lib/edge/blocks/symbol/symbol.vue.d.ts +1 -0
  34. package/lib/edge/{component-ref-2H6t6CVL.js → component-ref-PjrRqoNv.js} +4 -4
  35. package/lib/edge/{component-ref-kOTGaG_S.cjs → component-ref-XsyNNMUg.cjs} +1 -1
  36. package/lib/edge/components/builder-scripts.vue.d.ts +18 -0
  37. package/lib/edge/components/content-variants/content-variants.vue.d.ts +3 -0
  38. package/lib/edge/components/content-variants/helpers.d.ts +6 -0
  39. package/lib/edge/constants/sdk-version.d.ts +1 -1
  40. package/lib/edge/context/builder-scripts.context.d.ts +7 -0
  41. package/lib/edge/{get-block-properties-Cf0JYe8s.cjs → get-block-properties-LZfO1d9V.cjs} +1 -1
  42. package/lib/edge/{get-block-properties-yDy5CcoJ.js → get-block-properties-OQKbXkPB.js} +1 -1
  43. package/lib/edge/{index-0OjD7npr.js → index-RgTaKnZ2.js} +1471 -1411
  44. package/lib/edge/index-fWAfFgEy.cjs +386 -0
  45. package/lib/edge/index-helpers/blocks-exports.d.ts +1 -0
  46. package/lib/edge/index.cjs +1 -1
  47. package/lib/edge/index.mjs +25 -24
  48. package/lib/{node/live-edit-iCnhUEuS.cjs → edge/live-edit-JjbauDaL.cjs} +1 -1
  49. package/lib/{node/live-edit-GfW2VTki.js → edge/live-edit-f7U2Azcm.js} +1 -1
  50. package/lib/edge/{repeated-block-d6gfiTTu.cjs → repeated-block-N0cYhpaS.cjs} +1 -1
  51. package/lib/edge/{repeated-block-UG8Sns3u.js → repeated-block-bXYXfKP_.js} +2 -2
  52. package/lib/edge/{style-wrapper-UpCDtTSA.js → style-wrapper-XXgvForl.js} +1 -1
  53. package/lib/edge/{style-wrapper-pawaG9qF.cjs → style-wrapper-x1xM4jrn.cjs} +1 -1
  54. package/lib/edge/style.css +1 -1
  55. package/lib/node/{awaiter-bGTvqMbD.cjs → awaiter-6GuArcPZ.cjs} +1 -1
  56. package/lib/node/{awaiter-AN3_pw27.js → awaiter-U9ghjah_.js} +1 -1
  57. package/lib/node/{block-wrapper-uIhnB7Vo.cjs → block-wrapper-BjCwxGrk.cjs} +1 -1
  58. package/lib/{edge/block-wrapper-W6_AJxdH.js → node/block-wrapper-S-D5WDpF.js} +3 -3
  59. package/lib/node/blocks/symbol/symbol.helpers.d.ts +1 -0
  60. package/lib/node/blocks/symbol/symbol.vue.d.ts +1 -0
  61. package/lib/node/{component-ref-hWkVL5In.cjs → component-ref-2T_SzZr_.cjs} +1 -1
  62. package/lib/node/{component-ref-lBfIlbHs.js → component-ref-JIXZgEPq.js} +5 -5
  63. package/lib/node/components/builder-scripts.vue.d.ts +18 -0
  64. package/lib/node/components/content-variants/content-variants.vue.d.ts +3 -0
  65. package/lib/node/components/content-variants/helpers.d.ts +6 -0
  66. package/lib/node/constants/sdk-version.d.ts +1 -1
  67. package/lib/node/context/builder-scripts.context.d.ts +7 -0
  68. package/lib/node/{get-block-properties-pMlEyIJy.js → get-block-properties-6ZEBsSGZ.js} +2 -2
  69. package/lib/node/{get-block-properties-VD2nOy1H.cjs → get-block-properties-VdcyrKHl.cjs} +1 -1
  70. package/lib/node/{index-xfji5jj1.js → index-BFBRlmya.js} +822 -762
  71. package/lib/node/index-C8cK6fMj.cjs +368 -0
  72. package/lib/node/index-helpers/blocks-exports.d.ts +1 -0
  73. package/lib/node/index.cjs +1 -1
  74. package/lib/node/index.mjs +25 -24
  75. package/lib/node/init.cjs +1 -1
  76. package/lib/node/init.mjs +1 -1
  77. package/lib/{edge/live-edit-es0ntXpd.js → node/live-edit-Gaqi2aam.js} +1 -1
  78. package/lib/{edge/live-edit-hyHdyjeL.cjs → node/live-edit-YCZ5pmAP.cjs} +1 -1
  79. package/lib/node/{repeated-block-RuIC6FQv.cjs → repeated-block-crOq_RyN.cjs} +1 -1
  80. package/lib/node/{repeated-block-hte-wY9-.js → repeated-block-xa9PS91L.js} +2 -2
  81. package/lib/node/{should-force-browser-runtime-in-node-r2oi-Y6E.js → should-force-browser-runtime-in-node-dSSMAIhU.js} +1 -1
  82. package/lib/node/{should-force-browser-runtime-in-node-oNYv8BG3.cjs → should-force-browser-runtime-in-node-ljCjC7PN.cjs} +2 -2
  83. package/lib/node/{style-wrapper-y6_fa2q6.js → style-wrapper-8sWObtTj.js} +2 -2
  84. package/lib/node/{style-wrapper-c9ma8_oR.cjs → style-wrapper-ol70p_wf.cjs} +1 -1
  85. package/lib/node/style.css +1 -1
  86. package/package.json +1 -1
  87. package/lib/browser/index-KofqhXXd.cjs +0 -368
  88. package/lib/edge/index-Vo2N3MOA.cjs +0 -386
  89. package/lib/node/index-3pN6fdOW.cjs +0 -368
@@ -1,6 +1,6 @@
1
1
  import "./style.css";
2
- import { defineComponent as y, openBlock as u, createElementBlock as h, Fragment as I, createBlock as v, resolveDynamicComponent as Z, mergeProps as E, toHandlers as U, withCtx as D, renderSlot as O, resolveComponent as k, createTextVNode as Xt, toDisplayString as he, defineAsyncComponent as Y, createVNode as $, renderList as L, createCommentVNode as T, h as pt, createElementVNode as G, normalizeStyle as M, normalizeClass as te, markRaw as Zt } from "vue";
3
- const en = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), tn = (e) => typeof e == "string" && en.has(e.toLowerCase());
2
+ import { defineComponent as y, openBlock as u, createElementBlock as h, Fragment as w, createBlock as S, resolveDynamicComponent as Z, mergeProps as R, toHandlers as x, withCtx as D, renderSlot as B, resolveComponent as C, createTextVNode as tn, toDisplayString as he, defineAsyncComponent as Y, createVNode as $, renderList as L, createCommentVNode as v, h as ht, createElementVNode as G, normalizeStyle as M, normalizeClass as te, markRaw as nn } from "vue";
3
+ const on = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), rn = (e) => typeof e == "string" && on.has(e.toLowerCase());
4
4
  function N(e = {}, t, n) {
5
5
  const o = {};
6
6
  for (const r in e) {
@@ -11,38 +11,38 @@ function N(e = {}, t, n) {
11
11
  }
12
12
  return o;
13
13
  }
14
- const nn = y({
14
+ const sn = y({
15
15
  name: "dynamic-renderer",
16
16
  props: ["TagName", "attributes", "actionAttributes"],
17
17
  data() {
18
- return { isEmptyElement: tn };
18
+ return { isEmptyElement: rn };
19
19
  }
20
- }), S = (e, t) => {
20
+ }), k = (e, t) => {
21
21
  const n = e.__vccOpts || e;
22
22
  for (const [o, r] of t)
23
23
  n[o] = r;
24
24
  return n;
25
25
  };
26
- function on(e, t, n, o, r, i) {
27
- return e.isEmptyElement(e.TagName) ? (u(), v(Z(e.TagName), E({ key: 1 }, e.attributes, U(e.actionAttributes)), null, 16)) : (u(), h(I, { key: 0 }, [
28
- typeof e.TagName == "string" ? (u(), v(Z(e.TagName), E({ key: 0 }, e.attributes, U(e.actionAttributes)), {
26
+ function an(e, t, n, o, r, i) {
27
+ return e.isEmptyElement(e.TagName) ? (u(), S(Z(e.TagName), R({ key: 1 }, e.attributes, x(e.actionAttributes)), null, 16)) : (u(), h(w, { key: 0 }, [
28
+ typeof e.TagName == "string" ? (u(), S(Z(e.TagName), R({ key: 0 }, e.attributes, x(e.actionAttributes)), {
29
29
  default: D(() => [
30
- O(e.$slots, "default")
30
+ B(e.$slots, "default")
31
31
  ]),
32
32
  _: 3
33
- }, 16)) : (u(), v(Z(e.TagName), E({ key: 1 }, e.attributes, U(e.actionAttributes)), {
33
+ }, 16)) : (u(), S(Z(e.TagName), R({ key: 1 }, e.attributes, x(e.actionAttributes)), {
34
34
  default: D(() => [
35
- O(e.$slots, "default")
35
+ B(e.$slots, "default")
36
36
  ]),
37
37
  _: 3
38
38
  }, 16))
39
39
  ], 64));
40
40
  }
41
- const Pe = /* @__PURE__ */ S(nn, [["render", on]]), Zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41
+ const Ve = /* @__PURE__ */ k(sn, [["render", an]]), sa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42
42
  __proto__: null,
43
- default: Pe
44
- }, Symbol.toStringTag, { value: "Module" })), R = "vue", H = () => {
45
- switch (R) {
43
+ default: Ve
44
+ }, Symbol.toStringTag, { value: "Module" })), E = "vue", H = () => {
45
+ switch (E) {
46
46
  case "react":
47
47
  case "reactNative":
48
48
  case "rsc":
@@ -54,9 +54,9 @@ const Pe = /* @__PURE__ */ S(nn, [["render", on]]), Zs = /* @__PURE__ */ Object.
54
54
  case "angular":
55
55
  return "class";
56
56
  }
57
- }, rn = y({
57
+ }, ln = y({
58
58
  name: "builder-button",
59
- components: { DynamicRenderer: Pe },
59
+ components: { DynamicRenderer: Ve },
60
60
  props: [
61
61
  "attributes",
62
62
  "link",
@@ -83,20 +83,20 @@ const Pe = /* @__PURE__ */ S(nn, [["render", on]]), Zs = /* @__PURE__ */ Object.
83
83
  }
84
84
  }
85
85
  });
86
- function sn(e, t, n, o, r, i) {
87
- const s = k("DynamicRenderer");
88
- return u(), v(s, {
86
+ function cn(e, t, n, o, r, i) {
87
+ const s = C("DynamicRenderer");
88
+ return u(), S(s, {
89
89
  attributes: e.attrs(),
90
90
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
91
91
  actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
92
92
  }, {
93
93
  default: D(() => [
94
- Xt(he(e.text), 1)
94
+ tn(he(e.text), 1)
95
95
  ]),
96
96
  _: 1
97
97
  }, 8, ["attributes", "TagName", "actionAttributes"]);
98
98
  }
99
- const an = /* @__PURE__ */ S(rn, [["render", sn]]), ln = Symbol(), Ce = {
99
+ const dn = /* @__PURE__ */ k(ln, [["render", cn]]), un = Symbol(), Te = {
100
100
  Builder: {
101
101
  content: null,
102
102
  context: {},
@@ -113,11 +113,11 @@ const an = /* @__PURE__ */ S(rn, [["render", sn]]), ln = Symbol(), Ce = {
113
113
  nonce: "",
114
114
  model: ""
115
115
  },
116
- key: ln
117
- }, cn = Symbol(), mt = {
116
+ key: un
117
+ }, pn = Symbol(), ft = {
118
118
  Components: { registeredComponents: {} },
119
- key: cn
120
- }, ht = (e) => {
119
+ key: pn
120
+ }, bt = (e) => {
121
121
  const t = /* @__PURE__ */ new Map();
122
122
  return {
123
123
  get: (n) => t.get(n),
@@ -125,39 +125,39 @@ const an = /* @__PURE__ */ S(rn, [["render", sn]]), ln = Symbol(), Ce = {
125
125
  !t.has(n) && t.size >= e && t.delete(t.keys().next().value), t.set(n, o);
126
126
  }
127
127
  };
128
- }, re = "[Builder.io]: ", B = {
128
+ }, re = "[Builder.io]: ", V = {
129
129
  log: (...e) => console.log(re, ...e),
130
130
  error: (...e) => console.error(re, ...e),
131
131
  warn: (...e) => console.warn(re, ...e),
132
132
  debug: (...e) => console.debug(re, ...e)
133
- }, ft = (e, t, n) => {
133
+ }, gt = (e, t, n) => {
134
134
  const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, i) => r != null ? r[i] : r, e);
135
135
  return o === void 0 || o === e ? n : o;
136
136
  };
137
- function w() {
137
+ function I() {
138
138
  return typeof window < "u" && typeof document < "u";
139
139
  }
140
- const dn = (e) => {
140
+ const mn = (e) => {
141
141
  const t = {};
142
142
  return e.forEach((n, o) => {
143
143
  t[o] = n;
144
144
  }), t;
145
- }, bt = (e) => e instanceof URLSearchParams ? dn(e) : e, gt = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
146
- function un() {
147
- return w() && window.self !== window.top;
145
+ }, yt = (e) => e instanceof URLSearchParams ? mn(e) : e, St = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
146
+ function hn() {
147
+ return I() && window.self !== window.top;
148
148
  }
149
- function A(e) {
150
- return un() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
151
- gt(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
149
+ function P(e) {
150
+ return hn() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
151
+ St(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
152
152
  }
153
- const pn = () => {
154
- if (w()) {
153
+ const fn = () => {
154
+ if (I()) {
155
155
  const e = new URL(location.href);
156
156
  return e.pathname === "" && (e.pathname = "/"), e;
157
157
  } else
158
158
  return console.warn("Cannot get location for tracking in non-browser environment"), null;
159
- }, mn = () => typeof navigator == "object" && navigator.userAgent || "", yt = () => {
160
- const e = mn(), t = {
159
+ }, bn = () => typeof navigator == "object" && navigator.userAgent || "", vt = () => {
160
+ const e = bn(), t = {
161
161
  Android() {
162
162
  return e.match(/Android/i);
163
163
  },
@@ -174,19 +174,19 @@ const pn = () => {
174
174
  return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
175
175
  },
176
176
  any() {
177
- return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || R === "reactNative";
177
+ return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || E === "reactNative";
178
178
  }
179
- }, n = e.match(/Tablet|iPad/i), o = pn();
179
+ }, n = e.match(/Tablet|iPad/i), o = fn();
180
180
  return {
181
181
  urlPath: o == null ? void 0 : o.pathname,
182
182
  host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
183
183
  device: n ? "tablet" : t.any() ? "mobile" : "desktop"
184
184
  };
185
- }, St = "5.3.0", vt = () => ({
186
- "X-Builder-SDK": R,
185
+ }, kt = "5.4.0", Ct = () => ({
186
+ "X-Builder-SDK": E,
187
187
  "X-Builder-SDK-GEN": "2",
188
- "X-Builder-SDK-Version": St
189
- }), j = (e) => e != null, hn = (e) => {
188
+ "X-Builder-SDK-Version": kt
189
+ }), j = (e) => e != null, gn = (e) => {
190
190
  if (e === "localhost" || e === "127.0.0.1")
191
191
  return e;
192
192
  const t = e.split(".");
@@ -199,17 +199,17 @@ const pn = () => {
199
199
  try {
200
200
  return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
201
201
  } catch (o) {
202
- B.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
202
+ V.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
203
203
  return;
204
204
  }
205
- }, kt = async (e) => fe(e), fn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(j).join("; "), bn = [["secure", ""], ["SameSite", "None"]], gn = ({
205
+ }, Tt = async (e) => fe(e), yn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(j).join("; "), Sn = [["secure", ""], ["SameSite", "None"]], vn = ({
206
206
  name: e,
207
207
  value: t,
208
208
  expires: n
209
209
  }) => {
210
- const r = (w() ? location.protocol === "https:" : !0) ? bn : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", hn(window.location.hostname)], ...r];
211
- return fn(s);
212
- }, Be = async ({
210
+ const r = (I() ? location.protocol === "https:" : !0) ? Sn : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", gn(window.location.hostname)], ...r];
211
+ return yn(s);
212
+ }, Oe = async ({
213
213
  name: e,
214
214
  value: t,
215
215
  expires: n,
@@ -218,103 +218,103 @@ const pn = () => {
218
218
  try {
219
219
  if (!o)
220
220
  return;
221
- const r = gn({
221
+ const r = vn({
222
222
  name: e,
223
223
  value: t,
224
224
  expires: n
225
225
  });
226
226
  document.cookie = r;
227
227
  } catch (r) {
228
- B.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
228
+ V.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
229
229
  }
230
230
  };
231
- function yn() {
231
+ function kn() {
232
232
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
233
233
  const t = Math.random() * 16 | 0;
234
234
  return (e == "x" ? t : t & 3 | 8).toString(16);
235
235
  });
236
236
  }
237
- function Ct() {
238
- return yn().replace(/-/g, "");
237
+ function It() {
238
+ return kn().replace(/-/g, "");
239
239
  }
240
- const Tt = "builderSessionId", Sn = async ({
240
+ const wt = "builderSessionId", Cn = async ({
241
241
  canTrack: e
242
242
  }) => {
243
243
  if (!e)
244
244
  return;
245
- const t = await kt({
246
- name: Tt,
245
+ const t = await Tt({
246
+ name: wt,
247
247
  canTrack: e
248
248
  });
249
249
  if (j(t))
250
250
  return t;
251
251
  {
252
- const n = vn();
253
- return kn({
252
+ const n = Tn();
253
+ return In({
254
254
  id: n,
255
255
  canTrack: e
256
256
  }), n;
257
257
  }
258
- }, vn = () => Ct(), kn = ({
258
+ }, Tn = () => It(), In = ({
259
259
  id: e,
260
260
  canTrack: t
261
- }) => Be({
262
- name: Tt,
261
+ }) => Oe({
262
+ name: wt,
263
263
  value: e,
264
264
  canTrack: t
265
- }), wt = () => w() && typeof localStorage < "u" ? localStorage : void 0, Cn = ({
265
+ }), Et = () => I() && typeof localStorage < "u" ? localStorage : void 0, wn = ({
266
266
  key: e,
267
267
  canTrack: t
268
268
  }) => {
269
269
  var n;
270
270
  try {
271
- return t ? (n = wt()) == null ? void 0 : n.getItem(e) : void 0;
271
+ return t ? (n = Et()) == null ? void 0 : n.getItem(e) : void 0;
272
272
  } catch (o) {
273
273
  console.debug("[LocalStorage] GET error: ", o);
274
274
  return;
275
275
  }
276
- }, Tn = ({
276
+ }, En = ({
277
277
  key: e,
278
278
  canTrack: t,
279
279
  value: n
280
280
  }) => {
281
281
  var o;
282
282
  try {
283
- t && ((o = wt()) == null || o.setItem(e, n));
283
+ t && ((o = Et()) == null || o.setItem(e, n));
284
284
  } catch (r) {
285
285
  console.debug("[LocalStorage] SET error: ", r);
286
286
  }
287
- }, It = "builderVisitorId", wn = ({
287
+ }, Rt = "builderVisitorId", Rn = ({
288
288
  canTrack: e
289
289
  }) => {
290
290
  if (!e)
291
291
  return;
292
- const t = Cn({
293
- key: It,
292
+ const t = wn({
293
+ key: Rt,
294
294
  canTrack: e
295
295
  });
296
296
  if (j(t))
297
297
  return t;
298
298
  {
299
- const n = In();
300
- return En({
299
+ const n = $n();
300
+ return Pn({
301
301
  id: n,
302
302
  canTrack: e
303
303
  }), n;
304
304
  }
305
- }, In = () => Ct(), En = ({
305
+ }, $n = () => It(), Pn = ({
306
306
  id: e,
307
307
  canTrack: t
308
- }) => Tn({
309
- key: It,
308
+ }) => En({
309
+ key: Rt,
310
310
  value: e,
311
311
  canTrack: t
312
312
  });
313
- function Ve(e) {
313
+ function Ne(e) {
314
314
  var t;
315
- typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && B.log(e);
315
+ typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && V.log(e);
316
316
  }
317
- const Rn = async ({
317
+ const An = async ({
318
318
  canTrack: e
319
319
  }) => {
320
320
  if (!e)
@@ -322,16 +322,16 @@ const Rn = async ({
322
322
  visitorId: void 0,
323
323
  sessionId: void 0
324
324
  };
325
- const t = await Sn({
325
+ const t = await Cn({
326
326
  canTrack: e
327
- }), n = wn({
327
+ }), n = Rn({
328
328
  canTrack: e
329
329
  });
330
330
  return {
331
331
  sessionId: t,
332
332
  visitorId: n
333
333
  };
334
- }, $n = async ({
334
+ }, Bn = async ({
335
335
  type: e,
336
336
  canTrack: t,
337
337
  apiKey: n,
@@ -345,10 +345,10 @@ const Rn = async ({
345
345
  url: location.href,
346
346
  ...o
347
347
  },
348
- ...await Rn({
348
+ ...await An({
349
349
  canTrack: t
350
350
  }),
351
- userAttributes: yt(),
351
+ userAttributes: vt(),
352
352
  ownerId: n
353
353
  }
354
354
  });
@@ -357,30 +357,30 @@ async function ue({
357
357
  ...t
358
358
  }) {
359
359
  if (!t.apiKey) {
360
- B.error("Missing API key for track call. Please provide your API key.");
360
+ V.error("Missing API key for track call. Please provide your API key.");
361
361
  return;
362
362
  }
363
- if (!t.canTrack || A() || !(w() || R === "reactNative"))
363
+ if (!t.canTrack || P() || !(I() || E === "reactNative"))
364
364
  return;
365
365
  const o = `${e || "https://cdn.builder.io"}/api/v1/track`;
366
- return Ve(o), fetch(o, {
366
+ return Ne(o), fetch(o, {
367
367
  method: "POST",
368
368
  body: JSON.stringify({
369
- events: [await $n(t)]
369
+ events: [await Bn(t)]
370
370
  }),
371
371
  headers: {
372
372
  "content-type": "application/json",
373
- ...vt()
373
+ ...Ct()
374
374
  },
375
375
  mode: "cors"
376
376
  }).catch((r) => {
377
377
  console.error("Failed to track: ", r);
378
378
  });
379
379
  }
380
- const ea = (e) => ue({
380
+ const aa = (e) => ue({
381
381
  ...e,
382
382
  canTrack: !0
383
- }), An = ({
383
+ }), Vn = ({
384
384
  builder: e,
385
385
  context: t,
386
386
  event: n,
@@ -392,11 +392,11 @@ const ea = (e) => ue({
392
392
  builder: e,
393
393
  context: t,
394
394
  event: n
395
- }), Pn = (e) => ({
396
- isEditing: A(),
397
- isBrowser: w(),
398
- isServer: !w(),
399
- getUserAttributes: () => yt(),
395
+ }), On = (e) => ({
396
+ isEditing: P(),
397
+ isBrowser: I(),
398
+ isServer: !I(),
399
+ getUserAttributes: () => vt(),
400
400
  trackConversion: (t, n) => {
401
401
  !(e != null && e.apiKey) || (e == null ? void 0 : e.canTrack) === !1 || ue({
402
402
  type: "conversion",
@@ -412,10 +412,10 @@ const ea = (e) => ue({
412
412
  }
413
413
  });
414
414
  }
415
- }), Bn = (e, {
415
+ }), Nn = (e, {
416
416
  isExpression: t = !0
417
417
  }) => /* 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;
418
- function Et({
418
+ function $t({
419
419
  rootState: e,
420
420
  localState: t,
421
421
  rootSetState: n
@@ -425,7 +425,7 @@ function Et({
425
425
  if (t && r in t)
426
426
  return t[r];
427
427
  const i = o[r];
428
- return typeof i == "object" && i !== null ? Et({
428
+ return typeof i == "object" && i !== null ? $t({
429
429
  rootState: i,
430
430
  localState: void 0,
431
431
  rootSetState: n ? (s) => {
@@ -440,10 +440,10 @@ function Et({
440
440
  }
441
441
  });
442
442
  }
443
- const Vn = 5e3, He = ht(Vn), On = (e, t) => {
444
- let n = He.get(t);
445
- return n || (n = new Function(...e, t), He.set(t, n)), n;
446
- }, je = ({
443
+ const Wn = 5e3, Ke = bt(Wn), Dn = (e, t) => {
444
+ let n = Ke.get(t);
445
+ return n || (n = new Function(...e, t), Ke.set(t, n)), n;
446
+ }, ze = ({
447
447
  code: e,
448
448
  builder: t,
449
449
  context: n,
@@ -452,42 +452,42 @@ const Vn = 5e3, He = ht(Vn), On = (e, t) => {
452
452
  rootSetState: i,
453
453
  rootState: s
454
454
  }) => {
455
- const l = An({
455
+ const l = Vn({
456
456
  builder: t,
457
457
  context: n,
458
458
  event: o,
459
- state: Et({
459
+ state: $t({
460
460
  rootState: s,
461
461
  localState: r,
462
462
  rootSetState: i
463
463
  })
464
464
  });
465
- return On(l.map(([a]) => a), e)(...l.map(([, a]) => a));
465
+ return Dn(l.map(([a]) => a), e)(...l.map(([, a]) => a));
466
466
  };
467
- function Nn() {
467
+ function Un() {
468
468
  var e;
469
469
  return typeof process < "u" && j((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
470
470
  }
471
- let Ke = !1;
472
- const Wn = ({
471
+ let qe = !1;
472
+ const xn = ({
473
473
  shouldLogWarning: e
474
474
  }) => {
475
475
  var r;
476
- if (!Nn())
476
+ if (!Un())
477
477
  return !1;
478
478
  const t = process.arch === "arm64", n = process.version.startsWith("v20"), o = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
479
- return t && n && !o ? (e && !Ke && (Ke = !0, 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;
480
- }, Dn = (e) => (w() || Wn({
479
+ return t && n && !o ? (e && !qe && (qe = !0, V.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;
480
+ }, Ln = (e) => (I() || xn({
481
481
  shouldLogWarning: !0
482
- }), je(e)), xn = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Un = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Ln = (e) => {
482
+ }), ze(e)), Fn = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Mn = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Hn = (e) => {
483
483
  var t, n, o, r, i, s;
484
- return ((o = (n = (t = xn.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = Un.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
485
- }, Fn = 5e3, ze = ht(Fn), Mn = (e) => {
486
- let t = ze.get(e);
487
- return t === void 0 && (t = Ln(e) || null, ze.set(e, t)), t;
488
- }, Hn = (e, t, n) => {
484
+ return ((o = (n = (t = Fn.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = Mn.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
485
+ }, jn = 5e3, Ge = bt(jn), Kn = (e) => {
486
+ let t = Ge.get(e);
487
+ return t === void 0 && (t = Hn(e) || null, Ge.set(e, t)), t;
488
+ }, zn = (e, t, n) => {
489
489
  const o = n.split(".")[0], r = t && Object.prototype.hasOwnProperty.call(t, o) ? t : e;
490
- return ft(r, n);
490
+ return gt(r, n);
491
491
  };
492
492
  function ne({
493
493
  code: e,
@@ -501,14 +501,14 @@ function ne({
501
501
  }) {
502
502
  if (e.trim() === "")
503
503
  return;
504
- const a = Mn(e.trim());
504
+ const a = Kn(e.trim());
505
505
  if (a)
506
- return Hn(o, n, a);
506
+ return zn(o, n, a);
507
507
  const d = {
508
- code: Bn(e, {
508
+ code: Nn(e, {
509
509
  isExpression: s
510
510
  }),
511
- builder: Pn(l),
511
+ builder: On(l),
512
512
  context: t,
513
513
  event: i,
514
514
  rootSetState: r,
@@ -516,23 +516,23 @@ function ne({
516
516
  localState: n
517
517
  };
518
518
  try {
519
- return Dn(d);
519
+ return Ln(d);
520
520
  } catch (p) {
521
- B.error("Failed code evaluation: " + p.message, {
521
+ V.error("Failed code evaluation: " + p.message, {
522
522
  code: e
523
523
  });
524
524
  return;
525
525
  }
526
526
  }
527
- function jn(e, t) {
527
+ function qn(e, t) {
528
528
  var n;
529
529
  return {
530
530
  ...(n = e.component) == null ? void 0 : n.options,
531
531
  ...e.options,
532
- ...Kn(e, t)
532
+ ...Gn(e, t)
533
533
  };
534
534
  }
535
- const Kn = (e, t) => {
535
+ const Gn = (e, t) => {
536
536
  var n, o;
537
537
  if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((o = e.component.options) != null && o.text) && typeof e.component.options.text == "string")
538
538
  return {
@@ -546,10 +546,10 @@ const Kn = (e, t) => {
546
546
  }))
547
547
  };
548
548
  };
549
- function Rt(e) {
549
+ function Pt(e) {
550
550
  return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
551
551
  }
552
- const zn = (e) => {
552
+ const _n = (e) => {
553
553
  if (Array.isArray(e))
554
554
  return !0;
555
555
  const t = Object.getPrototypeOf(e);
@@ -558,9 +558,9 @@ const zn = (e) => {
558
558
  function ae(e, t, n) {
559
559
  if (e === null || typeof e != "object")
560
560
  return e;
561
- if (Rt(e))
561
+ if (Pt(e))
562
562
  return ae(e[t] ?? void 0, t, n);
563
- if (!zn(e))
563
+ if (!_n(e))
564
564
  return e;
565
565
  if (n.has(e))
566
566
  return n.get(e);
@@ -581,10 +581,10 @@ function ae(e, t, n) {
581
581
  const r = o ?? e;
582
582
  return n.set(e, r), r;
583
583
  }
584
- function qn(e, t) {
584
+ function Jn(e, t) {
585
585
  var r;
586
586
  const n = (r = e.component) == null ? void 0 : r.options;
587
- if (!n || typeof n != "object" || Rt(n))
587
+ if (!n || typeof n != "object" || Pt(n))
588
588
  return e;
589
589
  const o = ae(n, t ?? "Default", /* @__PURE__ */ new WeakMap());
590
590
  return o === n ? e : (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"), {
@@ -596,35 +596,35 @@ function qn(e, t) {
596
596
  });
597
597
  }
598
598
  function be(e) {
599
- const t = e || (w() ? window.location.search : void 0);
600
- return t ? gt(t).indexOf("builder.preview=") !== -1 : !1;
599
+ const t = e || (I() ? window.location.search : void 0);
600
+ return t ? St(t).indexOf("builder.preview=") !== -1 : !1;
601
601
  }
602
- const $t = () => A() || be(), At = (e) => e.toString().match(/[^.[\]]+/g), Pt = (e) => Math.abs(Number(e)) >> 0 === +e, Bt = (e) => e.some((t, n) => t === "__proto__" || n < e.length - 1 && (t === "constructor" || t === "prototype")), Vt = (e, t) => Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, Gn = (e, t, n) => {
602
+ const At = () => P() || be(), Bt = (e) => e.toString().match(/[^.[\]]+/g), Vt = (e) => Math.abs(Number(e)) >> 0 === +e, Ot = (e) => e.some((t, n) => t === "__proto__" || n < e.length - 1 && (t === "constructor" || t === "prototype")), Nt = (e, t) => Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, Qn = (e, t, n) => {
603
603
  if (Object(e) !== e)
604
604
  return e;
605
- const o = Array.isArray(t) ? t : At(t);
606
- return !o || Bt(o) || (o.slice(0, -1).reduce((r, i, s) => {
607
- const l = Vt(r, i);
608
- return Object(l) === l ? l : r[i] = Pt(o[s + 1]) ? [] : {};
605
+ const o = Array.isArray(t) ? t : Bt(t);
606
+ return !o || Ot(o) || (o.slice(0, -1).reduce((r, i, s) => {
607
+ const l = Nt(r, i);
608
+ return Object(l) === l ? l : r[i] = Vt(o[s + 1]) ? [] : {};
609
609
  }, e)[o[o.length - 1]] = n), e;
610
- }, _n = (e, t, n, o) => {
610
+ }, Yn = (e, t, n, o) => {
611
611
  if (Object(e) !== e)
612
612
  return e;
613
- const r = At(t);
614
- if (!r || Bt(r))
613
+ const r = Bt(t);
614
+ if (!r || Ot(r))
615
615
  return e;
616
616
  o.add(e);
617
617
  let i = e;
618
618
  for (let s = 0; s < r.length - 1; s++) {
619
619
  const l = r[s];
620
- let a = Vt(i, l);
621
- Object(a) !== a ? (a = Pt(r[s + 1]) ? [] : {}, o.add(a), i[l] = a) : typeof a == "object" && !o.has(a) && (a = Array.isArray(a) ? a.slice() : {
620
+ let a = Nt(i, l);
621
+ Object(a) !== a ? (a = Vt(r[s + 1]) ? [] : {}, o.add(a), i[l] = a) : typeof a == "object" && !o.has(a) && (a = Array.isArray(a) ? a.slice() : {
622
622
  ...a
623
623
  }, o.add(a), i[l] = a), i = a;
624
624
  }
625
625
  return i[r[r.length - 1]] = n, e;
626
626
  };
627
- const Jn = ({
627
+ const Xn = ({
628
628
  block: e,
629
629
  context: t,
630
630
  localState: n,
@@ -651,56 +651,56 @@ const Jn = ({
651
651
  rootSetState: r,
652
652
  context: t
653
653
  });
654
- _n(s, l, d, i);
654
+ Yn(s, l, d, i);
655
655
  }
656
656
  return s;
657
- }, qe = /* @__PURE__ */ new WeakMap(), Qn = (e) => {
657
+ }, _e = /* @__PURE__ */ new WeakMap(), Zn = (e) => {
658
658
  if (!e.bindings)
659
659
  return !1;
660
660
  for (const t in e.bindings)
661
661
  return !0;
662
662
  return !1;
663
663
  };
664
- function Yn({
664
+ function eo({
665
665
  block: e,
666
666
  context: t,
667
667
  localState: n,
668
668
  rootState: o,
669
669
  rootSetState: r
670
670
  }) {
671
- const i = o.locale, s = !Qn(e) && typeof e == "object" && e !== null && !$t(), l = i ?? "";
671
+ const i = o.locale, s = !Zn(e) && typeof e == "object" && e !== null && !At(), l = i ?? "";
672
672
  if (s) {
673
- const d = qe.get(e);
673
+ const d = _e.get(e);
674
674
  if (d && d.locale === l)
675
675
  return d.block;
676
676
  }
677
677
  let a = e;
678
- return a = Jn({
678
+ return a = Xn({
679
679
  block: a,
680
680
  localState: n,
681
681
  rootState: o,
682
682
  rootSetState: r,
683
683
  context: t
684
- }), a = qn(a, i), s && qe.set(e, {
684
+ }), a = Jn(a, i), s && _e.set(e, {
685
685
  locale: l,
686
686
  block: a
687
687
  }), a;
688
688
  }
689
- const Xn = (e) => ({
689
+ const to = (e) => ({
690
690
  type: "builder.registerComponent",
691
- data: Oe(e)
692
- }), Zn = (e) => {
691
+ data: We(e)
692
+ }), no = (e) => {
693
693
  const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
694
694
  return `return (${!t.startsWith("function") && !t.startsWith("async") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
695
695
  };
696
- function Oe(e) {
697
- return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? Zn(n) : n));
696
+ function We(e) {
697
+ return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? no(n) : n));
698
698
  }
699
- const Ge = {};
700
- function ta(e, t) {
701
- e === "plugin" && (t = Oe(t));
702
- let n = Ge[e];
703
- if (n || (n = Ge[e] = []), n.push(t), w()) {
699
+ const Je = {};
700
+ function la(e, t) {
701
+ e === "plugin" && (t = We(t));
702
+ let n = Je[e];
703
+ if (n || (n = Je[e] = []), n.push(t), I()) {
704
704
  const o = {
705
705
  type: "builder.register",
706
706
  data: {
@@ -715,9 +715,9 @@ function ta(e, t) {
715
715
  }
716
716
  }
717
717
  }
718
- function na(e) {
718
+ function ca(e) {
719
719
  var t;
720
- if (w()) {
720
+ if (I()) {
721
721
  const n = JSON.parse(JSON.stringify(e));
722
722
  e.action && (n.action = e.action.toString()), (t = window.parent) == null || t.postMessage({
723
723
  type: "builder.registerAction",
@@ -725,50 +725,50 @@ function na(e) {
725
725
  }, "*");
726
726
  }
727
727
  }
728
- const _e = {};
729
- function oa(e) {
730
- if (w()) {
731
- Object.assign(_e, e);
728
+ const Qe = {};
729
+ function da(e) {
730
+ if (I()) {
731
+ Object.assign(Qe, e);
732
732
  const t = {
733
733
  type: "builder.settingsChange",
734
- data: _e
734
+ data: Qe
735
735
  };
736
736
  parent.postMessage(t, "*");
737
737
  }
738
738
  }
739
- const Je = "builder.", eo = "options.", Ot = (e) => {
739
+ const Ye = "builder.", oo = "options.", Wt = (e) => {
740
740
  if (!e)
741
741
  return {};
742
- const t = bt(e), n = {};
742
+ const t = yt(e), n = {};
743
743
  return Object.keys(t).forEach((o) => {
744
- if (o.startsWith(Je)) {
745
- const r = o.replace(Je, "").replace(eo, "");
744
+ if (o.startsWith(Ye)) {
745
+ const r = o.replace(Ye, "").replace(oo, "");
746
746
  n[r] = t[o];
747
747
  }
748
748
  }), n;
749
- }, to = () => {
750
- if (!w())
749
+ }, ro = () => {
750
+ if (!I())
751
751
  return {};
752
752
  const e = new URLSearchParams(window.location.search);
753
- return Ot(e);
754
- }, no = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
755
- function Nt(e, t) {
753
+ return Wt(e);
754
+ }, io = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
755
+ function Dt(e, t) {
756
756
  let n;
757
757
  try {
758
758
  n = new URL(t.origin);
759
759
  } catch {
760
760
  return !1;
761
761
  }
762
- return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e || no).findIndex((o) => o.startsWith("*.") ? n.hostname.endsWith(o.slice(1)) : o === n.hostname) > -1;
762
+ return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e || io).findIndex((o) => o.startsWith("*.") ? n.hostname.endsWith(o.slice(1)) : o === n.hostname) > -1;
763
763
  }
764
- let Qe = !1;
765
- const Wt = (e) => {
764
+ let Xe = !1;
765
+ const Ut = (e) => {
766
766
  var t, n;
767
- Qe || (Qe = !0, w() && ((t = window.parent) == null || t.postMessage({
767
+ Xe || (Xe = !0, I() && ((t = window.parent) == null || t.postMessage({
768
768
  type: "builder.sdkInfo",
769
769
  data: {
770
- target: R,
771
- version: St,
770
+ target: E,
771
+ version: kt,
772
772
  supportsPatchUpdates: !1,
773
773
  // Supports builder-model="..." attribute which is needed to
774
774
  // scope our '+ add block' button styling
@@ -786,7 +786,7 @@ const Wt = (e) => {
786
786
  }
787
787
  }, "*"), window.addEventListener("message", (o) => {
788
788
  var i, s;
789
- if (!Nt(e.trustedHosts, o))
789
+ if (!Dt(e.trustedHosts, o))
790
790
  return;
791
791
  const {
792
792
  data: r
@@ -827,12 +827,12 @@ const Wt = (e) => {
827
827
  }
828
828
  }
829
829
  })));
830
- }, Dt = ({
830
+ }, xt = ({
831
831
  model: e,
832
832
  trustedHosts: t,
833
833
  callbacks: n
834
834
  }) => (o) => {
835
- if (!Nt(t, o))
835
+ if (!Dt(t, o))
836
836
  return;
837
837
  const {
838
838
  data: r
@@ -858,20 +858,20 @@ const Wt = (e) => {
858
858
  break;
859
859
  }
860
860
  }
861
- }, ra = ({
861
+ }, ua = ({
862
862
  model: e,
863
863
  apiKey: t,
864
864
  callback: n,
865
865
  trustedHosts: o
866
866
  }) => {
867
- if (!w)
868
- return B.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
867
+ if (!I)
868
+ return V.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
869
869
  };
870
- Wt({
870
+ Ut({
871
871
  modelName: e,
872
872
  apiKey: t
873
873
  });
874
- const r = Dt({
874
+ const r = xt({
875
875
  callbacks: {
876
876
  contentUpdate: n,
877
877
  animation: () => {
@@ -887,24 +887,24 @@ const Wt = (e) => {
887
887
  return window.addEventListener("message", r), () => {
888
888
  window.removeEventListener("message", r);
889
889
  };
890
- }, oo = "builder.tests", Ne = (e) => `${oo}.${e}`, ro = ({
890
+ }, so = "builder.tests", De = (e) => `${so}.${e}`, ao = ({
891
891
  contentId: e
892
- }) => kt({
893
- name: Ne(e),
892
+ }) => Tt({
893
+ name: De(e),
894
894
  canTrack: !0
895
- }), io = ({
895
+ }), lo = ({
896
896
  contentId: e
897
897
  }) => fe({
898
- name: Ne(e),
898
+ name: De(e),
899
899
  canTrack: !0
900
- }), so = ({
900
+ }), co = ({
901
901
  contentId: e,
902
902
  value: t
903
- }) => Be({
904
- name: Ne(e),
903
+ }) => Oe({
904
+ name: De(e),
905
905
  value: t,
906
906
  canTrack: !0
907
- }), xt = (e) => j(e.id) && j(e.variations) && Object.keys(e.variations).length > 0, ao = ({
907
+ }), Lt = (e) => j(e.id) && j(e.variations) && Object.keys(e.variations).length > 0, uo = ({
908
908
  id: e,
909
909
  variations: t
910
910
  }) => {
@@ -917,15 +917,15 @@ const Wt = (e) => {
917
917
  return i;
918
918
  }
919
919
  return e;
920
- }, Ut = (e) => {
921
- const t = ao(e);
922
- return so({
920
+ }, Ft = (e) => {
921
+ const t = uo(e);
922
+ return co({
923
923
  contentId: e.id,
924
924
  value: t
925
925
  }).catch((n) => {
926
- B.error("could not store A/B test variation: ", n);
926
+ V.error("could not store A/B test variation: ", n);
927
927
  }), t;
928
- }, Lt = ({
928
+ }, Mt = ({
929
929
  item: e,
930
930
  testGroupId: t
931
931
  }) => {
@@ -939,7 +939,7 @@ const Wt = (e) => {
939
939
  testVariationId: n.id,
940
940
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
941
941
  };
942
- }, lo = ({
942
+ }, po = ({
943
943
  item: e,
944
944
  canTrack: t
945
945
  }) => {
@@ -947,14 +947,14 @@ const Wt = (e) => {
947
947
  return e;
948
948
  if (!e)
949
949
  return;
950
- if (!xt(e))
950
+ if (!Lt(e))
951
951
  return e;
952
- const n = io({
952
+ const n = lo({
953
953
  contentId: e.id
954
- }) || Ut({
954
+ }) || Ft({
955
955
  variations: e.variations,
956
956
  id: e.id
957
- }), o = Lt({
957
+ }), o = Mt({
958
958
  item: e,
959
959
  testGroupId: n
960
960
  });
@@ -962,18 +962,18 @@ const Wt = (e) => {
962
962
  ...e,
963
963
  ...o
964
964
  };
965
- }, co = async ({
965
+ }, mo = async ({
966
966
  item: e,
967
967
  canTrack: t
968
968
  }) => {
969
- if (!t || !xt(e))
969
+ if (!t || !Lt(e))
970
970
  return e;
971
- const o = await ro({
971
+ const o = await ao({
972
972
  contentId: e.id
973
- }) || Ut({
973
+ }) || Ft({
974
974
  variations: e.variations,
975
975
  id: e.id
976
- }), r = Lt({
976
+ }), r = Mt({
977
977
  item: e,
978
978
  testGroupId: o
979
979
  });
@@ -982,49 +982,49 @@ const Wt = (e) => {
982
982
  ...r
983
983
  };
984
984
  };
985
- const uo = "builder.preview", po = "BUILDER_STUDIO", Ye = "builder.userAttributes.", mo = (e) => e === "true" ? !0 : e === "false" ? !1 : e, Xe = () => {
986
- if (!w())
985
+ const ho = "builder.preview", fo = "BUILDER_STUDIO", Ze = "builder.userAttributes.", bo = (e) => e === "true" ? !0 : e === "false" ? !1 : e, et = () => {
986
+ if (!I())
987
987
  return {};
988
988
  const e = new URLSearchParams(window.location.search);
989
- if (e.get(uo) !== po)
989
+ if (e.get(ho) !== fo)
990
990
  return {};
991
991
  const t = {};
992
992
  return e.forEach((n, o) => {
993
- o.startsWith(Ye) && (t[o.slice(Ye.length)] = mo(n));
993
+ o.startsWith(Ze) && (t[o.slice(Ze.length)] = bo(n));
994
994
  }), t;
995
- }, Ze = "builder.userAttributes";
996
- function et() {
995
+ }, tt = "builder.userAttributes";
996
+ function nt() {
997
997
  let e = !0;
998
998
  const t = /* @__PURE__ */ new Set(), n = () => {
999
999
  const o = fe({
1000
- name: Ze,
1000
+ name: tt,
1001
1001
  canTrack: e
1002
1002
  });
1003
1003
  return o ? JSON.parse(o) : {};
1004
1004
  };
1005
1005
  return {
1006
1006
  setUserAttributes(o) {
1007
- if (!w())
1007
+ if (!I())
1008
1008
  return;
1009
1009
  const r = {
1010
1010
  ...n(),
1011
1011
  ...o
1012
1012
  };
1013
- Be({
1014
- name: Ze,
1013
+ Oe({
1014
+ name: tt,
1015
1015
  value: JSON.stringify(r),
1016
1016
  canTrack: e
1017
1017
  });
1018
- const i = Xe();
1018
+ const i = et();
1019
1019
  t.forEach((s) => s({
1020
1020
  ...r,
1021
1021
  ...i
1022
1022
  }));
1023
1023
  },
1024
1024
  getUserAttributes() {
1025
- return w() ? {
1025
+ return I() ? {
1026
1026
  ...n(),
1027
- ...Xe()
1027
+ ...et()
1028
1028
  } : {};
1029
1029
  },
1030
1030
  subscribeOnUserAttributesChange(o, {
@@ -1039,25 +1039,25 @@ function et() {
1039
1039
  }
1040
1040
  };
1041
1041
  }
1042
- let Te;
1043
- w() && R === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = et()), Te = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : Te = et();
1044
- const pe = Te, ia = (e) => {
1042
+ let Ie;
1043
+ I() && E === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = nt()), Ie = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : Ie = nt();
1044
+ const pe = Ie, pa = (e) => {
1045
1045
  pe.setUserAttributes(e);
1046
1046
  }, _ = (e) => {
1047
1047
  const t = j(e) ? e : !0;
1048
1048
  return pe.setCanTrack(t), t;
1049
1049
  };
1050
- function ho() {
1050
+ function go() {
1051
1051
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
1052
1052
  }
1053
- function fo() {
1054
- const e = ho().fetch;
1053
+ function yo() {
1054
+ const e = go().fetch;
1055
1055
  if (typeof e > "u")
1056
1056
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
1057
1057
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
1058
1058
  return e;
1059
1059
  }
1060
- const bo = fo();
1060
+ const So = yo();
1061
1061
  function we(e, t = null, n = ".") {
1062
1062
  return Object.keys(e).reduce((o, r) => {
1063
1063
  const i = e[r], s = [t, r].filter(Boolean).join(n);
@@ -1070,14 +1070,14 @@ function we(e, t = null, n = ".") {
1070
1070
  };
1071
1071
  }, {});
1072
1072
  }
1073
- function Ft(e, t, n = {}) {
1073
+ function Ht(e, t, n = {}) {
1074
1074
  for (const o in e) {
1075
1075
  const r = e[o], i = t ? t + "." + o : o;
1076
- r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? Ft(r, i, n) : n[i] = r;
1076
+ r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? Ht(r, i, n) : n[i] = r;
1077
1077
  }
1078
1078
  return n;
1079
1079
  }
1080
- function go(e) {
1080
+ function vo(e) {
1081
1081
  const t = {};
1082
1082
  for (const n in e) {
1083
1083
  const o = n.split(".");
@@ -1089,7 +1089,7 @@ function go(e) {
1089
1089
  }
1090
1090
  return t;
1091
1091
  }
1092
- const yo = "v3", tt = (e) => typeof e == "number" && !isNaN(e) && e >= 0, We = (e) => {
1092
+ const ko = "v3", ot = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ue = (e) => {
1093
1093
  const {
1094
1094
  limit: t = 30,
1095
1095
  userAttributes: n,
@@ -1099,115 +1099,115 @@ const yo = "v3", tt = (e) => typeof e == "number" && !isNaN(e) && e >= 0, We = (
1099
1099
  enrich: s,
1100
1100
  enrichOptions: l,
1101
1101
  locale: a,
1102
- apiVersion: d = yo,
1102
+ apiVersion: d = ko,
1103
1103
  fields: p,
1104
1104
  omit: b,
1105
1105
  offset: c,
1106
1106
  cacheSeconds: m,
1107
1107
  staleCacheSeconds: f,
1108
1108
  sort: g,
1109
- includeUnpublished: P,
1110
- apiHost: x
1109
+ includeUnpublished: A,
1110
+ apiHost: U
1111
1111
  } = e;
1112
1112
  if (!i)
1113
1113
  throw new Error("Missing API key");
1114
1114
  if (!["v3"].includes(d))
1115
1115
  throw new Error(`Invalid apiVersion: expected 'v3', received '${d}'`);
1116
- const V = t !== 1, q = x || "https://cdn.builder.io", C = new URL(`${q}/api/${d}/content/${r}`);
1117
- 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);
1116
+ const O = t !== 1, q = U || "https://cdn.builder.io", T = new URL(`${q}/api/${d}/content/${r}`);
1117
+ T.searchParams.set("apiKey", i), T.searchParams.set("limit", String(t)), T.searchParams.set("noTraverse", String(O)), T.searchParams.set("includeRefs", String(!0)), a && T.searchParams.set("locale", a);
1118
1118
  let K = n || {};
1119
- 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 && tt(m) && C.searchParams.set("cacheSeconds", String(m)), f && tt(f) && C.searchParams.set("staleCacheSeconds", String(f)), g) {
1119
+ if (s && T.searchParams.set("enrich", String(s)), s && l && T.searchParams.set("enrichOptions", JSON.stringify(l)), T.searchParams.set("omit", b ?? "meta.componentsUsed"), p && T.searchParams.set("fields", p), Number.isFinite(c) && c > -1 && T.searchParams.set("offset", String(Math.floor(c))), typeof A == "boolean" && T.searchParams.set("includeUnpublished", String(A)), m && ot(m) && T.searchParams.set("cacheSeconds", String(m)), f && ot(f) && T.searchParams.set("staleCacheSeconds", String(f)), g) {
1120
1120
  const W = we({
1121
1121
  sort: g
1122
1122
  });
1123
1123
  for (const F in W)
1124
- C.searchParams.set(F, JSON.stringify(W[F]));
1124
+ T.searchParams.set(F, JSON.stringify(W[F]));
1125
1125
  }
1126
1126
  const J = {
1127
- ...to(),
1128
- ...bt(e.options || {})
1127
+ ...ro(),
1128
+ ...yt(e.options || {})
1129
1129
  };
1130
1130
  K = {
1131
1131
  ...K,
1132
- ...ko(J)
1132
+ ...Io(J)
1133
1133
  };
1134
1134
  const Q = we(J);
1135
1135
  for (const W in Q)
1136
- W !== "apiKey" && C.searchParams.set(W, String(Q[W]));
1137
- if (Object.keys(K).length > 0 && C.searchParams.set("userAttributes", JSON.stringify(K)), o) {
1138
- const W = Ft({
1136
+ W !== "apiKey" && T.searchParams.set(W, String(Q[W]));
1137
+ if (Object.keys(K).length > 0 && T.searchParams.set("userAttributes", JSON.stringify(K)), o) {
1138
+ const W = Ht({
1139
1139
  query: o
1140
1140
  });
1141
1141
  for (const F in W)
1142
- C.searchParams.set(F, JSON.stringify(W[F]));
1142
+ T.searchParams.set(F, JSON.stringify(W[F]));
1143
1143
  }
1144
- return C;
1145
- }, So = (e) => e === "true" ? !0 : e === "false" ? !1 : e, vo = (e) => {
1144
+ return T;
1145
+ }, Co = (e) => e === "true" ? !0 : e === "false" ? !1 : e, To = (e) => {
1146
1146
  const t = {};
1147
1147
  for (const n in e)
1148
- n.startsWith("userAttributes.") && (t[n] = So(e[n]), delete e[n]);
1148
+ n.startsWith("userAttributes.") && (t[n] = Co(e[n]), delete e[n]);
1149
1149
  return t;
1150
- }, ko = (e) => {
1151
- if (w() && e.preview === "BUILDER_STUDIO") {
1150
+ }, Io = (e) => {
1151
+ if (I() && e.preview === "BUILDER_STUDIO") {
1152
1152
  e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
1153
- const t = vo(e), {
1153
+ const t = To(e), {
1154
1154
  userAttributes: n
1155
- } = go(t);
1155
+ } = vo(t);
1156
1156
  return n;
1157
1157
  }
1158
1158
  return {};
1159
- }, Co = (e) => "results" in e;
1160
- async function De(e) {
1159
+ }, wo = (e) => "results" in e;
1160
+ async function xe(e) {
1161
1161
  var o;
1162
1162
  const t = e.locale || ((o = e.userAttributes) == null ? void 0 : o.locale);
1163
1163
  t && (e.locale = t, e.userAttributes = {
1164
1164
  locale: t,
1165
1165
  ...e.userAttributes
1166
1166
  });
1167
- const n = await Io({
1167
+ const n = await $o({
1168
1168
  ...e,
1169
1169
  limit: 1
1170
1170
  });
1171
1171
  return n && n[0] || null;
1172
1172
  }
1173
- const To = async (e) => {
1173
+ const Eo = async (e) => {
1174
1174
  var s;
1175
- const t = We(e), n = e.fetch ?? bo, o = {
1175
+ const t = Ue(e), n = e.fetch ?? So, o = {
1176
1176
  ...e.fetchOptions,
1177
1177
  headers: {
1178
1178
  ...(s = e.fetchOptions) == null ? void 0 : s.headers,
1179
- ...vt()
1179
+ ...Ct()
1180
1180
  }
1181
1181
  };
1182
1182
  return await (await n(t.href, o)).json();
1183
- }, wo = async (e, t, n = We(e)) => {
1183
+ }, Ro = async (e, t, n = Ue(e)) => {
1184
1184
  const o = _(e.canTrack);
1185
- if (n.search.includes("preview="), !o || !(w() || R === "reactNative"))
1185
+ if (n.search.includes("preview="), !o || !(I() || E === "reactNative"))
1186
1186
  return t.results;
1187
1187
  try {
1188
1188
  const r = [];
1189
1189
  for (const i of t.results)
1190
- r.push(await co({
1190
+ r.push(await mo({
1191
1191
  item: i,
1192
1192
  canTrack: o
1193
1193
  }));
1194
1194
  t.results = r;
1195
1195
  } catch (r) {
1196
- B.error("Could not process A/B tests. ", r);
1196
+ V.error("Could not process A/B tests. ", r);
1197
1197
  }
1198
1198
  return t.results;
1199
1199
  };
1200
- async function Io(e) {
1201
- const t = We(e), n = await To(e);
1202
- if (!Co(n))
1203
- throw B.error("Error fetching data. ", {
1200
+ async function $o(e) {
1201
+ const t = Ue(e), n = await Eo(e);
1202
+ if (!wo(n))
1203
+ throw V.error("Error fetching data. ", {
1204
1204
  url: t,
1205
1205
  content: n,
1206
1206
  options: e
1207
1207
  }), n;
1208
- return wo(e, n);
1208
+ return Ro(e, n);
1209
1209
  }
1210
- const sa = async (e) => {
1210
+ const ma = async (e) => {
1211
1211
  var o, r, i;
1212
1212
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
1213
1213
  ...e,
@@ -1219,15 +1219,15 @@ const sa = async (e) => {
1219
1219
  urlPath: t
1220
1220
  } : {}
1221
1221
  },
1222
- options: Ot(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
1222
+ options: Wt(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
1223
1223
  };
1224
1224
  return {
1225
1225
  apiKey: n.apiKey,
1226
1226
  model: n.model,
1227
- content: await De(n)
1227
+ content: await xe(n)
1228
1228
  };
1229
- }, xe = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
1230
- function Eo(e, t, n = {}) {
1229
+ }, Le = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
1230
+ function Po(e, t, n = {}) {
1231
1231
  let o, r, i, s = null, l = 0;
1232
1232
  const a = function() {
1233
1233
  l = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
@@ -1249,55 +1249,55 @@ function ee(e, ...t) {
1249
1249
  }
1250
1250
  return n;
1251
1251
  }
1252
- function Ro(e) {
1252
+ function Ao(e) {
1253
1253
  for (const t of e)
1254
1254
  switch (t.trigger) {
1255
1255
  case "pageLoad":
1256
- jt(t);
1256
+ zt(t);
1257
1257
  break;
1258
1258
  case "scrollInView":
1259
- Ao(t);
1259
+ Vo(t);
1260
1260
  break;
1261
1261
  }
1262
1262
  }
1263
- function Mt(e) {
1263
+ function jt(e) {
1264
1264
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
1265
1265
  }
1266
- function Ht(e, t) {
1267
- const n = $o(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
1266
+ function Kt(e, t) {
1267
+ const n = Bo(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
1268
1268
  for (const l of s)
1269
1269
  for (const a of n)
1270
1270
  a in l || (l[a] = o[a]);
1271
1271
  }
1272
- function $o(e) {
1272
+ function Bo(e) {
1273
1273
  const t = [];
1274
1274
  for (const n of e.steps)
1275
1275
  for (const o in n.styles)
1276
1276
  t.indexOf(o) === -1 && t.push(o);
1277
1277
  return t;
1278
1278
  }
1279
- function jt(e) {
1279
+ function zt(e) {
1280
1280
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
1281
1281
  if (!t.length) {
1282
- Mt(e.elementId || e.id || "");
1282
+ jt(e.elementId || e.id || "");
1283
1283
  return;
1284
1284
  }
1285
1285
  Array.from(t).forEach((n) => {
1286
- Ht(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ee(n.style, e.steps[0].styles), setTimeout(() => {
1287
- n.style.transition = `all ${e.duration}s ${xe(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), ee(n.style, e.steps[1].styles), setTimeout(() => {
1286
+ Kt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ee(n.style, e.steps[0].styles), setTimeout(() => {
1287
+ n.style.transition = `all ${e.duration}s ${Le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), ee(n.style, e.steps[1].styles), setTimeout(() => {
1288
1288
  n.style.transition = "", n.style.transitionDelay = "";
1289
1289
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
1290
1290
  });
1291
1291
  });
1292
1292
  }
1293
- function Ao(e) {
1293
+ function Vo(e) {
1294
1294
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
1295
1295
  if (!t.length) {
1296
- Mt(e.elementId || e.id || "");
1296
+ jt(e.elementId || e.id || "");
1297
1297
  return;
1298
1298
  }
1299
1299
  Array.from(t).forEach((n) => {
1300
- Ht(e, n);
1300
+ Kt(e, n);
1301
1301
  let o = !1, r = !1;
1302
1302
  function i() {
1303
1303
  !o && l(n) ? (o = !0, r = !0, setTimeout(() => {
@@ -1306,7 +1306,7 @@ function Ao(e) {
1306
1306
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
1307
1307
  })) : e.repeat && o && !r && !l(n) && (o = !1, ee(n.style, e.steps[0].styles));
1308
1308
  }
1309
- const s = Eo(i, 200, {
1309
+ const s = Po(i, 200, {
1310
1310
  leading: !1
1311
1311
  });
1312
1312
  function l(p) {
@@ -1318,7 +1318,7 @@ function Ao(e) {
1318
1318
  ee(n.style, a);
1319
1319
  }
1320
1320
  d(), setTimeout(() => {
1321
- n.style.transition = `all ${e.duration}s ${xe(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
1321
+ n.style.transition = `all ${e.duration}s ${Le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
1322
1322
  }), document.addEventListener("scroll", s, {
1323
1323
  capture: !0,
1324
1324
  passive: !0
@@ -1331,48 +1331,48 @@ const ie = (e, t) => {
1331
1331
  ...e,
1332
1332
  "--builder-image-position": n
1333
1333
  } : e;
1334
- }, aa = (e, t) => t ? {
1334
+ }, ha = (e, t) => t ? {
1335
1335
  ...e,
1336
1336
  large: ie(e == null ? void 0 : e.large, "initial"),
1337
1337
  medium: ie(e == null ? void 0 : e.medium),
1338
1338
  small: ie(e == null ? void 0 : e.small),
1339
1339
  xsmall: ie(e == null ? void 0 : e.xsmall)
1340
- } : e, Kt = (e) => Object.entries(e).map(([n, o]) => {
1340
+ } : e, qt = (e) => Object.entries(e).map(([n, o]) => {
1341
1341
  if (typeof o == "string")
1342
- return `${xe(n)}: ${o};`;
1343
- }).filter(j), Po = (e) => Kt(e).join(`
1344
- `), la = ({
1342
+ return `${Le(n)}: ${o};`;
1343
+ }).filter(j), Oo = (e) => qt(e).join(`
1344
+ `), fa = ({
1345
1345
  mediaQuery: e,
1346
1346
  className: t,
1347
1347
  styles: n
1348
1348
  }) => {
1349
1349
  const o = `.${t} {
1350
- ${Po(n)}
1350
+ ${Oo(n)}
1351
1351
  }`;
1352
1352
  return e ? `${e} {
1353
1353
  ${o}
1354
1354
  }` : o;
1355
1355
  };
1356
- function Bo({
1356
+ function No({
1357
1357
  style: e
1358
1358
  }) {
1359
1359
  return e;
1360
1360
  }
1361
- const ca = ({
1361
+ const ba = ({
1362
1362
  block: e,
1363
1363
  context: t
1364
- }) => zt(Bo({
1364
+ }) => Gt(No({
1365
1365
  style: e.style || {},
1366
1366
  context: t,
1367
1367
  block: e
1368
1368
  }));
1369
- function zt(e) {
1370
- switch (R) {
1369
+ function Gt(e) {
1370
+ switch (E) {
1371
1371
  case "svelte":
1372
1372
  case "vue":
1373
1373
  case "solid":
1374
1374
  case "angular":
1375
- return Kt(e).join(" ");
1375
+ return qt(e).join(" ");
1376
1376
  case "qwik":
1377
1377
  case "reactNative":
1378
1378
  case "react":
@@ -1380,7 +1380,7 @@ function zt(e) {
1380
1380
  return e;
1381
1381
  }
1382
1382
  }
1383
- const qt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Vo = ({
1383
+ const _t = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Wo = ({
1384
1384
  block: e,
1385
1385
  registeredComponents: t,
1386
1386
  model: n
@@ -1390,31 +1390,31 @@ const qt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1390
1390
  if (!o)
1391
1391
  return null;
1392
1392
  const r = t[o];
1393
- if (!r || qt(r, n)) {
1393
+ if (!r || _t(r, n)) {
1394
1394
  console.warn(`
1395
1395
  Could not find a registered component named "${o}".
1396
1396
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
1397
1397
  return;
1398
1398
  } else
1399
1399
  return r;
1400
- }, nt = /* @__PURE__ */ new WeakMap(), Oo = (e) => {
1401
- if ($t()) {
1400
+ }, rt = /* @__PURE__ */ new WeakMap(), Do = (e) => {
1401
+ if (At()) {
1402
1402
  const {
1403
1403
  repeat: n,
1404
1404
  ...o
1405
1405
  } = e;
1406
1406
  return o;
1407
1407
  }
1408
- let t = nt.get(e);
1408
+ let t = rt.get(e);
1409
1409
  if (!t) {
1410
1410
  const {
1411
1411
  repeat: n,
1412
1412
  ...o
1413
1413
  } = e;
1414
- t = o, nt.set(e, t);
1414
+ t = o, rt.set(e, t);
1415
1415
  }
1416
1416
  return t;
1417
- }, No = ({
1417
+ }, Uo = ({
1418
1418
  block: e,
1419
1419
  context: t
1420
1420
  }) => {
@@ -1432,7 +1432,7 @@ const qt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1432
1432
  });
1433
1433
  if (!Array.isArray(o))
1434
1434
  return;
1435
- const r = n.collection.split(".").pop(), i = n.itemName || (r ? r + "Item" : "item"), s = Oo(e);
1435
+ const r = n.collection.split(".").pop(), i = n.itemName || (r ? r + "Item" : "item"), s = Do(e);
1436
1436
  return o.map((a, d) => ({
1437
1437
  context: {
1438
1438
  ...t,
@@ -1446,65 +1446,65 @@ const qt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1446
1446
  },
1447
1447
  block: s
1448
1448
  }));
1449
- }, Wo = (e, t) => {
1449
+ }, xo = (e, t) => {
1450
1450
  var n;
1451
1451
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
1452
1452
  builderLinkComponent: t
1453
1453
  } : {};
1454
- }, ot = /* @__PURE__ */ new WeakMap(), Do = (e, t, n) => {
1454
+ }, it = /* @__PURE__ */ new WeakMap(), Lo = (e, t, n) => {
1455
1455
  var o;
1456
1456
  if ((o = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && o.builderComponents) {
1457
- let r = ot.get(t);
1458
- r || (r = /* @__PURE__ */ new Map(), ot.set(t, r));
1457
+ let r = it.get(t);
1458
+ r || (r = /* @__PURE__ */ new Map(), it.set(t, r));
1459
1459
  let i = r.get(n);
1460
- return i || (i = Object.fromEntries(Object.entries(t).filter(([s, l]) => !qt(l, n))), r.set(n, i)), {
1460
+ return i || (i = Object.fromEntries(Object.entries(t).filter(([s, l]) => !_t(l, n))), r.set(n, i)), {
1461
1461
  builderComponents: i
1462
1462
  };
1463
1463
  }
1464
1464
  return {};
1465
- }, xo = (e, t) => {
1465
+ }, Fo = (e, t) => {
1466
1466
  var n;
1467
1467
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
1468
1468
  builderBlock: t
1469
1469
  } : {};
1470
- }, Uo = (e, t) => {
1470
+ }, Mo = (e, t) => {
1471
1471
  var n;
1472
1472
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
1473
1473
  builderContext: t
1474
1474
  } : {};
1475
- }, Lo = (e) => e.toString(), Fo = () => Promise.resolve().then(() => er).then((e) => e.default).catch((e) => {
1475
+ }, Ho = (e) => e.toString(), jo = () => Promise.resolve().then(() => or).then((e) => e.default).catch((e) => {
1476
1476
  throw console.error(
1477
1477
  "Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
1478
1478
  e
1479
1479
  ), e;
1480
- }), Mo = () => import("./block-wrapper-Uj0c_ct-.js").then((e) => e.default).catch((e) => {
1480
+ }), Ko = () => import("./block-wrapper-f3zEx8S_.js").then((e) => e.default).catch((e) => {
1481
1481
  throw console.error(
1482
1482
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
1483
1483
  e
1484
1484
  ), e;
1485
- }), Ho = () => import("./component-ref-826ipClg.js").then((e) => e.default).catch((e) => {
1485
+ }), zo = () => import("./component-ref-4lLMyE43.js").then((e) => e.default).catch((e) => {
1486
1486
  throw console.error(
1487
1487
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
1488
1488
  e
1489
1489
  ), e;
1490
- }), jo = () => import("./repeated-block-s-uTJJ2l.js").then((e) => e.default).catch((e) => {
1490
+ }), qo = () => import("./repeated-block-F5n8q4pA.js").then((e) => e.default).catch((e) => {
1491
1491
  throw console.error(
1492
1492
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
1493
1493
  e
1494
1494
  ), e;
1495
- }), Ko = () => import("./style-wrapper-WeOZ3wU5.js").then((e) => e.default).catch((e) => {
1495
+ }), Go = () => import("./style-wrapper-e5wqPuhd.js").then((e) => e.default).catch((e) => {
1496
1496
  throw console.error(
1497
1497
  "Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
1498
1498
  e
1499
1499
  ), e;
1500
- }), zo = y({
1500
+ }), _o = y({
1501
1501
  name: "block",
1502
1502
  components: {
1503
- StyleWrapper: Y(Ko),
1504
- RepeatedBlock: Y(jo),
1505
- ComponentRef: Y(Ho),
1506
- BlockWrapper: Y(Mo),
1507
- DynamicDiv: Y(Fo)
1503
+ StyleWrapper: Y(Go),
1504
+ RepeatedBlock: Y(qo),
1505
+ ComponentRef: Y(zo),
1506
+ BlockWrapper: Y(Ko),
1507
+ DynamicDiv: Y(jo)
1508
1508
  },
1509
1509
  props: ["block", "context", "registeredComponents", "linkComponent"],
1510
1510
  data() {
@@ -1517,12 +1517,12 @@ const qt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1517
1517
  value: null,
1518
1518
  deps: []
1519
1519
  },
1520
- generateKey: Lo
1520
+ generateKey: Ho
1521
1521
  };
1522
1522
  },
1523
1523
  mounted() {
1524
1524
  const e = this.processedBlock.id, t = this.processedBlock.animations;
1525
- t && e && Ro(
1525
+ t && e && Ao(
1526
1526
  t.map((n) => ({
1527
1527
  ...n,
1528
1528
  elementId: e
@@ -1533,14 +1533,14 @@ const qt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1533
1533
  },
1534
1534
  computed: {
1535
1535
  repeatItem() {
1536
- return No({
1536
+ return Uo({
1537
1537
  block: this.block,
1538
1538
  context: this.context
1539
1539
  });
1540
1540
  },
1541
1541
  processedBlock() {
1542
1542
  var t;
1543
- return (t = this.block.repeat) != null && t.collection ? this.block : Yn({
1543
+ return (t = this.block.repeat) != null && t.collection ? this.block : eo({
1544
1544
  block: this.block,
1545
1545
  localState: this.context.localState,
1546
1546
  rootState: this.context.rootState,
@@ -1549,7 +1549,7 @@ const qt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1549
1549
  });
1550
1550
  },
1551
1551
  blockComponent() {
1552
- return Vo({
1552
+ return Wo({
1553
1553
  block: this.processedBlock,
1554
1554
  registeredComponents: this.registeredComponents,
1555
1555
  model: this.context.model
@@ -1576,11 +1576,11 @@ const qt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1576
1576
  blockChildren: this.processedBlock.children ?? [],
1577
1577
  componentRef: (t = this.blockComponent) == null ? void 0 : t.component,
1578
1578
  componentOptions: {
1579
- ...jn(this.processedBlock, this.context),
1580
- ...xo(this.blockComponent, this.processedBlock),
1581
- ...Uo(this.blockComponent, this.context),
1582
- ...Wo(this.blockComponent, this.linkComponent),
1583
- ...Do(
1579
+ ...qn(this.processedBlock, this.context),
1580
+ ...Fo(this.blockComponent, this.processedBlock),
1581
+ ...Mo(this.blockComponent, this.context),
1582
+ ...xo(this.blockComponent, this.linkComponent),
1583
+ ...Lo(
1584
1584
  this.blockComponent,
1585
1585
  this.registeredComponents,
1586
1586
  this.context.model
@@ -1591,28 +1591,28 @@ const qt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1591
1591
  registeredComponents: this.registeredComponents,
1592
1592
  builderBlock: this.processedBlock,
1593
1593
  includeBlockProps: ((n = this.blockComponent) == null ? void 0 : n.noWrap) === !0,
1594
- isInteractive: !((o = this.blockComponent) != null && o.isRSC && R === "rsc")
1594
+ isInteractive: !((o = this.blockComponent) != null && o.isRSC && E === "rsc")
1595
1595
  };
1596
1596
  }
1597
1597
  }
1598
1598
  });
1599
- function qo(e, t, n, o, r, i) {
1599
+ function Jo(e, t, n, o, r, i) {
1600
1600
  var b;
1601
- const s = k("StyleWrapper"), l = k("ComponentRef"), a = k("Block", !0), d = k("BlockWrapper"), p = k("RepeatedBlock");
1602
- return e.canShowBlock ? (u(), h(I, { key: 0 }, [
1601
+ const s = C("StyleWrapper"), l = C("ComponentRef"), a = C("Block", !0), d = C("BlockWrapper"), p = C("RepeatedBlock");
1602
+ return e.canShowBlock ? (u(), h(w, { key: 0 }, [
1603
1603
  $(s, {
1604
1604
  block: e.processedBlock,
1605
1605
  context: e.context,
1606
1606
  id: e.block.id
1607
1607
  }, null, 8, ["block", "context", "id"]),
1608
- (b = e.blockComponent) != null && b.noWrap ? (u(), h(I, { key: 1 }, [
1609
- e.repeatItem ? (u(!0), h(I, { key: 1 }, L(e.repeatItem, (c, m) => (u(), v(p, {
1608
+ (b = e.blockComponent) != null && b.noWrap ? (u(), h(w, { key: 1 }, [
1609
+ e.repeatItem ? (u(!0), h(w, { key: 1 }, L(e.repeatItem, (c, m) => (u(), S(p, {
1610
1610
  key: e.generateKey(m),
1611
1611
  repeatContext: c.context,
1612
1612
  block: c.block,
1613
1613
  registeredComponents: e.registeredComponents,
1614
1614
  linkComponent: e.linkComponent
1615
- }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (u(), v(l, {
1615
+ }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (u(), S(l, {
1616
1616
  key: 0,
1617
1617
  componentRef: e.componentRefProps.componentRef,
1618
1618
  componentOptions: e.componentRefProps.componentOptions,
@@ -1624,14 +1624,14 @@ function qo(e, t, n, o, r, i) {
1624
1624
  includeBlockProps: e.componentRefProps.includeBlockProps,
1625
1625
  isInteractive: e.componentRefProps.isInteractive
1626
1626
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
1627
- ], 64)) : (u(), h(I, { key: 0 }, [
1628
- e.repeatItem ? (u(!0), h(I, { key: 1 }, L(e.repeatItem, (c, m) => (u(), v(p, {
1627
+ ], 64)) : (u(), h(w, { key: 0 }, [
1628
+ e.repeatItem ? (u(!0), h(w, { key: 1 }, L(e.repeatItem, (c, m) => (u(), S(p, {
1629
1629
  key: e.generateKey(m),
1630
1630
  repeatContext: c.context,
1631
1631
  block: c.block,
1632
1632
  registeredComponents: e.registeredComponents,
1633
1633
  linkComponent: e.linkComponent
1634
- }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (u(), v(d, {
1634
+ }, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (u(), S(d, {
1635
1635
  key: 0,
1636
1636
  Wrapper: e.Tag,
1637
1637
  block: e.processedBlock,
@@ -1649,7 +1649,7 @@ function qo(e, t, n, o, r, i) {
1649
1649
  includeBlockProps: e.componentRefProps.includeBlockProps,
1650
1650
  isInteractive: e.componentRefProps.isInteractive
1651
1651
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
1652
- (u(!0), h(I, null, L(e.childrenWithoutParentComponent, (c, m) => (u(), v(a, {
1652
+ (u(!0), h(w, null, L(e.childrenWithoutParentComponent, (c, m) => (u(), S(a, {
1653
1653
  key: c.id,
1654
1654
  block: c,
1655
1655
  registeredComponents: e.registeredComponents,
@@ -1660,12 +1660,12 @@ function qo(e, t, n, o, r, i) {
1660
1660
  _: 1
1661
1661
  }, 8, ["Wrapper", "block", "context"]))
1662
1662
  ], 64))
1663
- ], 64)) : T("", !0);
1663
+ ], 64)) : v("", !0);
1664
1664
  }
1665
- const Gt = /* @__PURE__ */ S(zo, [["render", qo]]), da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1665
+ const Jt = /* @__PURE__ */ k(_o, [["render", Jo]]), ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1666
1666
  __proto__: null,
1667
- default: Gt
1668
- }, Symbol.toStringTag, { value: "Module" })), Go = y({
1667
+ default: Jt
1668
+ }, Symbol.toStringTag, { value: "Module" })), Qo = y({
1669
1669
  name: "builder-blocks-wrapper",
1670
1670
  props: [
1671
1671
  "blocks",
@@ -1709,7 +1709,7 @@ const Gt = /* @__PURE__ */ S(zo, [["render", qo]]), da = /* @__PURE__ */ Object.
1709
1709
  methods: {
1710
1710
  onClick() {
1711
1711
  var e, t;
1712
- A() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1712
+ P() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1713
1713
  {
1714
1714
  type: "builder.clickEmptyBlocks",
1715
1715
  data: {
@@ -1722,7 +1722,7 @@ const Gt = /* @__PURE__ */ S(zo, [["render", qo]]), da = /* @__PURE__ */ Object.
1722
1722
  },
1723
1723
  onMouseEnter() {
1724
1724
  var e, t;
1725
- A() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1725
+ P() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
1726
1726
  {
1727
1727
  type: "builder.hoverEmptyBlocks",
1728
1728
  data: {
@@ -1735,10 +1735,10 @@ const Gt = /* @__PURE__ */ S(zo, [["render", qo]]), da = /* @__PURE__ */ Object.
1735
1735
  }
1736
1736
  }
1737
1737
  });
1738
- function _o(e, t, n, o, r, i) {
1739
- return u(), v(Z(e.BlocksWrapper), E({
1738
+ function Yo(e, t, n, o, r, i) {
1739
+ return u(), S(Z(e.BlocksWrapper), R({
1740
1740
  ref: "blocksWrapperRef",
1741
- class: e.className + " component-5vz8uirn7sc",
1741
+ class: e.className + " component-1zgn626bpbf",
1742
1742
  "builder-path": e.dataPath,
1743
1743
  "builder-parent-id": e.parent,
1744
1744
  style: e.styleProp,
@@ -1747,14 +1747,14 @@ function _o(e, t, n, o, r, i) {
1747
1747
  onKeyPress: (s) => e.onClick()
1748
1748
  }, { ...e.BlocksWrapperProps }), {
1749
1749
  default: D(() => [
1750
- O(e.$slots, "default", {}, void 0, !0)
1750
+ B(e.$slots, "default", {}, void 0, !0)
1751
1751
  ]),
1752
1752
  _: 3
1753
1753
  }, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
1754
1754
  }
1755
- const Jo = /* @__PURE__ */ S(Go, [["render", _o], ["__scopeId", "data-v-82fc93d6"]]), Qo = y({
1755
+ const Xo = /* @__PURE__ */ k(Qo, [["render", Yo], ["__scopeId", "data-v-bab174f6"]]), Zo = y({
1756
1756
  name: "builder-blocks",
1757
- components: { BlocksWrapper: Jo, Block: Gt },
1757
+ components: { BlocksWrapper: Xo, Block: Jt },
1758
1758
  props: [
1759
1759
  "blocks",
1760
1760
  "parent",
@@ -1767,14 +1767,14 @@ const Jo = /* @__PURE__ */ S(Go, [["render", _o], ["__scopeId", "data-v-82fc93d6
1767
1767
  "registeredComponents"
1768
1768
  ],
1769
1769
  inject: {
1770
- builderContext: Ce.key,
1771
- componentsContext: mt.key
1770
+ builderContext: Te.key,
1771
+ componentsContext: ft.key
1772
1772
  }
1773
1773
  });
1774
- function Yo(e, t, n, o, r, i) {
1774
+ function er(e, t, n, o, r, i) {
1775
1775
  var a, d, p, b;
1776
- const s = k("Block"), l = k("BlocksWrapper");
1777
- return u(), v(l, {
1776
+ const s = C("Block"), l = C("BlocksWrapper");
1777
+ return u(), S(l, {
1778
1778
  blocks: e.blocks,
1779
1779
  parent: e.parent,
1780
1780
  path: e.path,
@@ -1784,36 +1784,36 @@ function Yo(e, t, n, o, r, i) {
1784
1784
  BlocksWrapper: ((p = e.context) == null ? void 0 : p.BlocksWrapper) || ((b = e.builderContext) == null ? void 0 : b.BlocksWrapper)
1785
1785
  }, {
1786
1786
  default: D(() => [
1787
- O(e.$slots, "default"),
1788
- e.blocks ? (u(!0), h(I, { key: 0 }, L(e.blocks, (c, m) => {
1787
+ B(e.$slots, "default"),
1788
+ e.blocks ? (u(!0), h(w, { key: 0 }, L(e.blocks, (c, m) => {
1789
1789
  var f;
1790
- return u(), v(s, {
1790
+ return u(), S(s, {
1791
1791
  key: c.id,
1792
1792
  block: c,
1793
1793
  linkComponent: e.linkComponent,
1794
1794
  context: e.context || e.builderContext,
1795
1795
  registeredComponents: e.registeredComponents || ((f = e.componentsContext) == null ? void 0 : f.registeredComponents)
1796
1796
  }, null, 8, ["block", "linkComponent", "context", "registeredComponents"]);
1797
- }), 128)) : T("", !0)
1797
+ }), 128)) : v("", !0)
1798
1798
  ]),
1799
1799
  _: 3
1800
1800
  }, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapperProps", "classNameProp", "BlocksWrapper"]);
1801
1801
  }
1802
- const z = /* @__PURE__ */ S(Qo, [["render", Yo]]), Xo = y({
1802
+ const z = /* @__PURE__ */ k(Zo, [["render", er]]), tr = y({
1803
1803
  name: "dynamic-div",
1804
1804
  props: []
1805
1805
  });
1806
- function Zo(e, t, n, o, r, i) {
1806
+ function nr(e, t, n, o, r, i) {
1807
1807
  return u(), h("div", null, [
1808
- O(e.$slots, "default")
1808
+ B(e.$slots, "default")
1809
1809
  ]);
1810
1810
  }
1811
- const oe = /* @__PURE__ */ S(Xo, [["render", Zo]]), er = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1811
+ const oe = /* @__PURE__ */ k(tr, [["render", nr]]), or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1812
1812
  __proto__: null,
1813
1813
  default: oe
1814
1814
  }, Symbol.toStringTag, { value: "Module" })), ge = y({
1815
1815
  render() {
1816
- return pt("style", {
1816
+ return ht("style", {
1817
1817
  innerHTML: this.styles,
1818
1818
  "data-id": this.id,
1819
1819
  nonce: this.nonce
@@ -1842,7 +1842,7 @@ const oe = /* @__PURE__ */ S(Xo, [["render", Zo]]), er = /* @__PURE__ */ Object.
1842
1842
  default: 991,
1843
1843
  max: 1200
1844
1844
  }
1845
- }, ua = (e, t = X) => `@media (max-width: ${t[e].max}px)`, tr = (e) => {
1845
+ }, ya = (e, t = X) => `@media (max-width: ${t[e].max}px)`, rr = (e) => {
1846
1846
  const t = {
1847
1847
  xsmall: {
1848
1848
  ...X.xsmall
@@ -1893,11 +1893,11 @@ const oe = /* @__PURE__ */ S(Xo, [["render", Zo]]), er = /* @__PURE__ */ Object.
1893
1893
  min: l,
1894
1894
  default: l + 1
1895
1895
  }, t;
1896
- }, nr = (e) => `builder-columns ${e}-breakpoints`, or = y({
1896
+ }, ir = (e) => `builder-columns ${e}-breakpoints`, sr = y({
1897
1897
  name: "builder-columns",
1898
1898
  components: {
1899
1899
  InlinedStyles: ge,
1900
- DynamicRenderer: Pe,
1900
+ DynamicRenderer: Ve,
1901
1901
  Blocks: z,
1902
1902
  DynamicDiv: oe
1903
1903
  },
@@ -1912,7 +1912,7 @@ const oe = /* @__PURE__ */ S(Xo, [["render", Zo]]), er = /* @__PURE__ */ Object.
1912
1912
  "builderComponents"
1913
1913
  ],
1914
1914
  data() {
1915
- return { TARGET: R, getColumnsClass: nr };
1915
+ return { TARGET: E, getColumnsClass: ir };
1916
1916
  },
1917
1917
  computed: {
1918
1918
  gutterSize() {
@@ -1991,7 +1991,7 @@ const oe = /* @__PURE__ */ S(Xo, [["render", Zo]]), er = /* @__PURE__ */ Object.
1991
1991
  },
1992
1992
  getWidthForBreakpointSize(e) {
1993
1993
  var n, o;
1994
- return tr(
1994
+ return rr(
1995
1995
  ((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
1996
1996
  )[e].max;
1997
1997
  },
@@ -2029,25 +2029,25 @@ const oe = /* @__PURE__ */ S(Xo, [["render", Zo]]), er = /* @__PURE__ */ Object.
2029
2029
  href: e.link
2030
2030
  } : {},
2031
2031
  [H()]: "builder-column",
2032
- style: zt(this.columnCssVars(t))
2032
+ style: Gt(this.columnCssVars(t))
2033
2033
  };
2034
2034
  }
2035
2035
  }
2036
2036
  });
2037
- function rr(e, t, n, o, r, i) {
2037
+ function ar(e, t, n, o, r, i) {
2038
2038
  var d;
2039
- const s = k("InlinedStyles"), l = k("Blocks"), a = k("DynamicRenderer");
2040
- return u(), h("div", E({
2041
- class: e.getColumnsClass((d = e.builderBlock) == null ? void 0 : d.id) + " div-1be3j8m9ewb",
2039
+ const s = C("InlinedStyles"), l = C("Blocks"), a = C("DynamicRenderer");
2040
+ return u(), h("div", R({
2041
+ class: e.getColumnsClass((d = e.builderBlock) == null ? void 0 : d.id) + " div-20351ewpue7",
2042
2042
  style: e.columnsCssVars()
2043
2043
  }, {}), [
2044
- e.TARGET !== "reactNative" ? (u(), v(s, {
2044
+ e.TARGET !== "reactNative" ? (u(), S(s, {
2045
2045
  key: 0,
2046
2046
  id: "builderio-columns",
2047
2047
  styles: e.columnsStyles(),
2048
2048
  nonce: e.builderContext.nonce
2049
- }, null, 8, ["styles", "nonce"])) : T("", !0),
2050
- (u(!0), h(I, null, L(e.columns, (p, b) => (u(), v(a, {
2049
+ }, null, 8, ["styles", "nonce"])) : v("", !0),
2050
+ (u(!0), h(w, null, L(e.columns, (p, b) => (u(), S(a, {
2051
2051
  key: b,
2052
2052
  TagName: e.getTagName(p),
2053
2053
  actionAttributes: {},
@@ -2070,32 +2070,32 @@ function rr(e, t, n, o, r, i) {
2070
2070
  }, 1032, ["TagName", "attributes"]))), 128))
2071
2071
  ], 16);
2072
2072
  }
2073
- const ir = /* @__PURE__ */ S(or, [["render", rr], ["__scopeId", "data-v-ab15749a"]]), sr = y({
2073
+ const lr = /* @__PURE__ */ k(sr, [["render", ar], ["__scopeId", "data-v-b0ce0948"]]), cr = y({
2074
2074
  name: "builder-fragment-component",
2075
2075
  props: []
2076
2076
  });
2077
- function ar(e, t, n, o, r, i) {
2077
+ function dr(e, t, n, o, r, i) {
2078
2078
  return u(), h("span", null, [
2079
- O(e.$slots, "default")
2079
+ B(e.$slots, "default")
2080
2080
  ]);
2081
2081
  }
2082
- const lr = /* @__PURE__ */ S(sr, [["render", ar]]);
2083
- function rt(e) {
2082
+ const ur = /* @__PURE__ */ k(cr, [["render", dr]]);
2083
+ function st(e) {
2084
2084
  return e.replace(/http(s)?:/, "");
2085
2085
  }
2086
- function cr(e = "", t, n) {
2086
+ function pr(e = "", t, n) {
2087
2087
  const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
2088
2088
  return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
2089
2089
  }
2090
- function dr(e, t) {
2090
+ function mr(e, t) {
2091
2091
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
2092
2092
  return e;
2093
2093
  if (t === "master")
2094
- return rt(e);
2094
+ return st(e);
2095
2095
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
2096
2096
  if (n) {
2097
2097
  const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
2098
- return rt(`${o[0]}_${i}${r}`);
2098
+ return st(`${o[0]}_${i}${r}`);
2099
2099
  }
2100
2100
  return null;
2101
2101
  }
@@ -2106,11 +2106,11 @@ function le(e) {
2106
2106
  if (e.match(/builder\.io/)) {
2107
2107
  let n = e;
2108
2108
  const o = Number(e.split("?width=")[1]);
2109
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${cr(e, "width", r)} ${r}w`).concat([n]).join(", ");
2109
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${pr(e, "width", r)} ${r}w`).concat([n]).join(", ");
2110
2110
  }
2111
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [dr(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
2111
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [mr(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
2112
2112
  }
2113
- const ur = y({
2113
+ const hr = y({
2114
2114
  name: "builder-image",
2115
2115
  props: [
2116
2116
  "lazy",
@@ -2164,20 +2164,20 @@ const ur = y({
2164
2164
  return this.aspectRatio ? e : void 0;
2165
2165
  }
2166
2166
  }
2167
- }), pr = ["srcset", "sizes"], mr = ["loading", "fetchpriority", "alt", "title", "src", "srcset", "sizes"], hr = {
2167
+ }), fr = ["srcset", "sizes"], br = ["loading", "fetchpriority", "alt", "title", "src", "srcset", "sizes"], gr = {
2168
2168
  key: 2,
2169
- class: "div-t43jfuqn6g-2"
2169
+ class: "div-1ifnufbde19-2"
2170
2170
  };
2171
- function fr(e, t, n, o, r, i) {
2171
+ function yr(e, t, n, o, r, i) {
2172
2172
  var s, l, a, d, p, b;
2173
- return u(), h(I, null, [
2173
+ return u(), h(w, null, [
2174
2174
  G("picture", null, [
2175
2175
  e.webpSrcSet ? (u(), h("source", {
2176
2176
  key: 0,
2177
2177
  type: "image/webp",
2178
2178
  srcset: e.webpSrcSet,
2179
2179
  sizes: e.sizesToUse
2180
- }, null, 8, pr)) : T("", !0),
2180
+ }, null, 8, fr)) : v("", !0),
2181
2181
  G("img", {
2182
2182
  loading: e.highPriority ? "eager" : "lazy",
2183
2183
  fetchpriority: e.highPriority ? "high" : "auto",
@@ -2189,35 +2189,35 @@ function fr(e, t, n, o, r, i) {
2189
2189
  ...e.aspectRatioCss
2190
2190
  }),
2191
2191
  class: te(
2192
- "builder-image" + (e.className ? " " + e.className : "") + " img-t43jfuqn6g"
2192
+ "builder-image" + (e.className ? " " + e.className : "") + " img-1ifnufbde19"
2193
2193
  ),
2194
2194
  src: e.image,
2195
2195
  srcset: e.srcSetToUse,
2196
2196
  sizes: e.sizesToUse
2197
- }, null, 14, mr)
2197
+ }, null, 14, br)
2198
2198
  ]),
2199
2199
  e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (u(), h("div", {
2200
2200
  key: 0,
2201
- class: "builder-image-sizer div-t43jfuqn6g",
2201
+ class: "builder-image-sizer div-1ifnufbde19",
2202
2202
  style: M({
2203
2203
  paddingTop: e.aspectRatio * 100 + "%"
2204
2204
  })
2205
- }, null, 4)) : T("", !0),
2206
- (d = (a = e.builderBlock) == null ? void 0 : a.children) != null && d.length && e.fitContent ? O(e.$slots, "default", { key: 1 }, void 0, !0) : T("", !0),
2207
- !e.fitContent && ((b = (p = e.builderBlock) == null ? void 0 : p.children) != null && b.length) ? (u(), h("div", hr, [
2208
- O(e.$slots, "default", {}, void 0, !0)
2209
- ])) : T("", !0)
2205
+ }, null, 4)) : v("", !0),
2206
+ (d = (a = e.builderBlock) == null ? void 0 : a.children) != null && d.length && e.fitContent ? B(e.$slots, "default", { key: 1 }, void 0, !0) : v("", !0),
2207
+ !e.fitContent && ((b = (p = e.builderBlock) == null ? void 0 : p.children) != null && b.length) ? (u(), h("div", gr, [
2208
+ B(e.$slots, "default", {}, void 0, !0)
2209
+ ])) : v("", !0)
2210
2210
  ], 64);
2211
2211
  }
2212
- const br = /* @__PURE__ */ S(ur, [["render", fr], ["__scopeId", "data-v-8fff0ea5"]]), gr = y({
2212
+ const Sr = /* @__PURE__ */ k(hr, [["render", yr], ["__scopeId", "data-v-a28af777"]]), vr = y({
2213
2213
  name: "builder-section-component",
2214
2214
  props: ["attributes", "maxWidth"],
2215
2215
  data() {
2216
2216
  return { filterAttrs: N };
2217
2217
  }
2218
2218
  });
2219
- function yr(e, t, n, o, r, i) {
2220
- return u(), h("section", E({
2219
+ function kr(e, t, n, o, r, i) {
2220
+ return u(), h("section", R({
2221
2221
  style: {
2222
2222
  width: "100%",
2223
2223
  alignSelf: "stretch",
@@ -2230,12 +2230,12 @@ function yr(e, t, n, o, r, i) {
2230
2230
  marginLeft: "auto",
2231
2231
  marginRight: "auto"
2232
2232
  }
2233
- }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
2234
- O(e.$slots, "default")
2233
+ }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
2234
+ B(e.$slots, "default")
2235
2235
  ], 16);
2236
2236
  }
2237
- const Sr = /* @__PURE__ */ S(gr, [["render", yr]]);
2238
- function vr(e, t, n, o) {
2237
+ const Cr = /* @__PURE__ */ k(vr, [["render", kr]]);
2238
+ function Tr(e, t, n, o) {
2239
2239
  function r(d) {
2240
2240
  return typeof d == "string";
2241
2241
  }
@@ -2249,14 +2249,14 @@ function vr(e, t, n, o) {
2249
2249
  if (p && p.property === "urlPath" && p.value && typeof p.value == "string" && p.value !== "/" && p.value.endsWith("/") && (f = p.value.slice(0, -1)), !(c && m))
2250
2250
  return !0;
2251
2251
  if (Array.isArray(f))
2252
- return m === "isNot" ? f.every((P) => s(d, {
2252
+ return m === "isNot" ? f.every((A) => s(d, {
2253
2253
  property: c,
2254
2254
  operator: m,
2255
- value: P
2256
- })) : !!f.find((P) => s(d, {
2255
+ value: A
2256
+ })) : !!f.find((A) => s(d, {
2257
2257
  property: c,
2258
2258
  operator: m,
2259
- value: P
2259
+ value: A
2260
2260
  }));
2261
2261
  const g = d[c];
2262
2262
  if (Array.isArray(g))
@@ -2292,7 +2292,7 @@ function vr(e, t, n, o) {
2292
2292
  }, a = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
2293
2293
  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((d) => s(e, d));
2294
2294
  }
2295
- const kr = `function getStudioUserAttributes() {
2295
+ const Ir = `function getStudioUserAttributes() {
2296
2296
  const params = new URLSearchParams(window.location.search);
2297
2297
  if (params.get('builder.preview') !== 'BUILDER_STUDIO') {
2298
2298
  return {};
@@ -2305,7 +2305,7 @@ const kr = `function getStudioUserAttributes() {
2305
2305
  }
2306
2306
  });
2307
2307
  return attributes;
2308
- }`, Cr = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
2308
+ }`, wr = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
2309
2309
  if (!navigator.cookieEnabled) {
2310
2310
  return;
2311
2311
  }
@@ -2351,7 +2351,7 @@ const kr = `function getStudioUserAttributes() {
2351
2351
  thisScript.remove();
2352
2352
  }
2353
2353
  }
2354
- }`, Tr = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
2354
+ }`, Er = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
2355
2355
  function isString(val) {
2356
2356
  return typeof val === 'string';
2357
2357
  }
@@ -2429,7 +2429,7 @@ const kr = `function getStudioUserAttributes() {
2429
2429
  return item.query.every(filter => {
2430
2430
  return objectMatchesQuery(userAttributes, filter);
2431
2431
  });
2432
- }`, wr = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
2432
+ }`, Rr = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
2433
2433
  function getCookie(name) {
2434
2434
  const nameEQ = name + '=';
2435
2435
  const ca = document.cookie.split(';');
@@ -2468,11 +2468,11 @@ const kr = `function getStudioUserAttributes() {
2468
2468
  visibilityStylesEl.innerHTML = newStyleStr;
2469
2469
  }
2470
2470
  }
2471
- }`, ce = "default", it = "filterWithCustomTargeting", Ie = "builderIoPersonalization", Ee = "updateVisibilityStylesScript", st = "builderIoStudioUserAttributes", Ir = "PersonalizationContainer", _t = ["react", "vue", "svelte", "qwik"], Jt = ["vue", "svelte", "qwik"];
2472
- function Er(e, t) {
2473
- return !(e && e.length > 0) || !t ? !1 : Jt.includes(R) ? !0 : !w();
2471
+ }`, ce = "default", at = "filterWithCustomTargeting", Ee = "builderIoPersonalization", Re = "updateVisibilityStylesScript", lt = "builderIoStudioUserAttributes", $r = "PersonalizationContainer", Fe = ["react", "vue", "svelte", "qwik"], Qt = ["vue", "svelte", "qwik"];
2472
+ function Pr(e, t) {
2473
+ return !(e && e.length > 0) || !t ? !1 : Qt.includes(E) ? !0 : !I();
2474
2474
  }
2475
- function Rr({
2475
+ function Ar({
2476
2476
  variants: e,
2477
2477
  previewingIndex: t,
2478
2478
  isHydrated: n,
@@ -2484,7 +2484,7 @@ function Rr({
2484
2484
  path: "this.children",
2485
2485
  index: ce
2486
2486
  };
2487
- if (n && A()) {
2487
+ if (n && P()) {
2488
2488
  if (typeof t == "number" && t < ((e == null ? void 0 : e.length) ?? 0)) {
2489
2489
  const s = e == null ? void 0 : e[t];
2490
2490
  if (s)
@@ -2496,7 +2496,7 @@ function Rr({
2496
2496
  }
2497
2497
  return i;
2498
2498
  }
2499
- if (w()) {
2499
+ if (I()) {
2500
2500
  const s = o == null ? void 0 : o[0];
2501
2501
  if (s && e) {
2502
2502
  const l = e.indexOf(s);
@@ -2510,25 +2510,28 @@ function Rr({
2510
2510
  }
2511
2511
  return i;
2512
2512
  }
2513
- const Re = (e) => {
2513
+ const $e = (e) => {
2514
2514
  var t;
2515
- return Array.isArray(e) ? e.some(Re) : !e || typeof e != "object" ? !1 : ((t = e.component) == null ? void 0 : t.name) === Ir ? !0 : Object.values(e).some(Re);
2516
- }, $r = (e) => Re(e), Ar = () => `
2515
+ return Array.isArray(e) ? e.some($e) : !e || typeof e != "object" ? !1 : ((t = e.component) == null ? void 0 : t.name) === $r ? !0 : Object.values(e).some($e);
2516
+ }, Br = (e) => $e(e), Yt = () => `
2517
2517
  (function() {
2518
- if (!window.${st}) {
2519
- window.${st} = ${kr};
2520
- }
2521
- if (!window.${it}) {
2522
- window.${it} = ${Tr};
2518
+ if (!window.${lt}) {
2519
+ window.${lt} = ${Ir};
2523
2520
  }
2524
- if (!window.${Ie}) {
2525
- window.${Ie} = ${Cr};
2521
+ if (!window.${at}) {
2522
+ window.${at} = ${Er};
2526
2523
  }
2527
2524
  if (!window.${Ee}) {
2528
2525
  window.${Ee} = ${wr};
2529
2526
  }
2527
+ if (!window.${Re}) {
2528
+ window.${Re} = ${Rr};
2529
+ }
2530
2530
  })();
2531
- `, Qt = R === "react", Pr = (e, t, n) => `window.${Ie}(${JSON.stringify(e)}, "${t}", ${Qt}${n ? `, "${n}"` : ""})`, Br = (e, t, n) => `window.${Ee}(${JSON.stringify(e)}, "${t}", ${Qt}${n ? `, "${n}"` : ""})`, ye = {
2531
+ `, Xt = E === "react", Vr = (e, t, n) => `window.${Ee}(${JSON.stringify(e)}, "${t}", ${Xt}${n ? `, "${n}"` : ""})`, Or = (e, t, n) => `window.${Re}(${JSON.stringify(e)}, "${t}", ${Xt}${n ? `, "${n}"` : ""})`, Nr = Symbol(), Pe = {
2532
+ BuilderScripts: { scriptsEmitted: !1 },
2533
+ key: Nr
2534
+ }, Se = {
2532
2535
  "@type": "@builder.io/sdk:Element",
2533
2536
  layerName: "Accordion item title",
2534
2537
  responsiveStyles: {
@@ -2557,7 +2560,7 @@ const Re = (e) => {
2557
2560
  }
2558
2561
  }
2559
2562
  }]
2560
- }, Se = {
2563
+ }, ve = {
2561
2564
  "@type": "@builder.io/sdk:Element",
2562
2565
  layerName: "Accordion item detail",
2563
2566
  responsiveStyles: {
@@ -2588,7 +2591,7 @@ const Re = (e) => {
2588
2591
  }
2589
2592
  }
2590
2593
  }]
2591
- }, Vr = {
2594
+ }, Wr = {
2592
2595
  name: "Builder:Accordion",
2593
2596
  canHaveChildren: !0,
2594
2597
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -2605,19 +2608,19 @@ const Re = (e) => {
2605
2608
  name: "title",
2606
2609
  type: "uiBlocks",
2607
2610
  hideFromUI: !0,
2608
- defaultValue: [ye]
2611
+ defaultValue: [Se]
2609
2612
  }, {
2610
2613
  name: "detail",
2611
2614
  type: "uiBlocks",
2612
2615
  hideFromUI: !0,
2613
- defaultValue: [Se]
2616
+ defaultValue: [ve]
2614
2617
  }],
2615
2618
  defaultValue: [{
2616
- title: [ye],
2617
- detail: [Se]
2619
+ title: [Se],
2620
+ detail: [ve]
2618
2621
  }, {
2619
- title: [ye],
2620
- detail: [Se]
2622
+ title: [Se],
2623
+ detail: [ve]
2621
2624
  }],
2622
2625
  showIf: (e) => !e.get("useChildrenForItems")
2623
2626
  }, {
@@ -2652,7 +2655,7 @@ const Re = (e) => {
2652
2655
  builderComponents: !0,
2653
2656
  builderLinkComponent: !0
2654
2657
  }
2655
- }, Or = (e) => e.toString(), Nr = y({
2658
+ }, Dr = (e) => e.toString(), Ur = y({
2656
2659
  name: "builder-accordion",
2657
2660
  components: { Blocks: z },
2658
2661
  props: [
@@ -2666,7 +2669,7 @@ const Re = (e) => {
2666
2669
  "builderLinkComponent"
2667
2670
  ],
2668
2671
  data() {
2669
- return { open: [], convertOrderNumberToString: Or };
2672
+ return { open: [], convertOrderNumberToString: Dr };
2670
2673
  },
2671
2674
  computed: {
2672
2675
  onlyOneAtATime() {
@@ -2747,14 +2750,14 @@ const Re = (e) => {
2747
2750
  this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
2748
2751
  }
2749
2752
  }
2750
- }), Wr = ["data-index", "onClick"];
2751
- function Dr(e, t, n, o, r, i) {
2752
- const s = k("Blocks");
2753
+ }), xr = ["data-index", "onClick"];
2754
+ function Lr(e, t, n, o, r, i) {
2755
+ const s = C("Blocks");
2753
2756
  return u(), h("div", {
2754
2757
  class: "builder-accordion",
2755
2758
  style: M(e.accordionStyles)
2756
2759
  }, [
2757
- (u(!0), h(I, null, L(e.items, (l, a) => (u(), h(I, { key: a }, [
2760
+ (u(!0), h(w, null, L(e.items, (l, a) => (u(), h(w, { key: a }, [
2758
2761
  G("div", {
2759
2762
  class: te(e.getAccordionTitleClassName(a)),
2760
2763
  style: M({
@@ -2775,7 +2778,7 @@ function Dr(e, t, n, o, r, i) {
2775
2778
  registeredComponents: e.builderComponents,
2776
2779
  linkComponent: e.builderLinkComponent
2777
2780
  }, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
2778
- ], 14, Wr),
2781
+ ], 14, xr),
2779
2782
  e.open.includes(a) ? (u(), h("div", {
2780
2783
  key: 0,
2781
2784
  class: te(e.getAccordionDetailClassName(a)),
@@ -2789,11 +2792,11 @@ function Dr(e, t, n, o, r, i) {
2789
2792
  registeredComponents: e.builderComponents,
2790
2793
  linkComponent: e.builderLinkComponent
2791
2794
  }, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
2792
- ], 6)) : T("", !0)
2795
+ ], 6)) : v("", !0)
2793
2796
  ], 64))), 128))
2794
2797
  ], 4);
2795
2798
  }
2796
- const xr = /* @__PURE__ */ S(Nr, [["render", Dr]]), Ur = {
2799
+ const Fr = /* @__PURE__ */ k(Ur, [["render", Lr]]), Mr = {
2797
2800
  name: "Core:Button",
2798
2801
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
2799
2802
  defaultStyles: {
@@ -2829,7 +2832,7 @@ const xr = /* @__PURE__ */ S(Nr, [["render", Dr]]), Ur = {
2829
2832
  shouldReceiveBuilderProps: {
2830
2833
  builderLinkComponent: !0
2831
2834
  }
2832
- }, Lr = {
2835
+ }, Hr = {
2833
2836
  // TODO: ways to statically preprocess JSON for references, functions, etc
2834
2837
  name: "Columns",
2835
2838
  isRSC: !0,
@@ -3036,13 +3039,13 @@ const xr = /* @__PURE__ */ S(Nr, [["render", Dr]]), Ur = {
3036
3039
  builderComponents: !0,
3037
3040
  builderLinkComponent: !0
3038
3041
  }
3039
- }, Fr = {
3042
+ }, jr = {
3040
3043
  name: "Fragment",
3041
3044
  static: !0,
3042
3045
  hidden: !0,
3043
3046
  canHaveChildren: !0,
3044
3047
  noWrap: !0
3045
- }, 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"], Mr = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], Hr = {
3048
+ }, Me = ["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"], Kr = ["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"], zr = {
3046
3049
  name: "Image",
3047
3050
  static: !0,
3048
3051
  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",
@@ -3057,7 +3060,7 @@ const xr = /* @__PURE__ */ S(Nr, [["render", Dr]]), Ur = {
3057
3060
  name: "image",
3058
3061
  type: "file",
3059
3062
  bubble: !0,
3060
- allowedFileTypes: Ue,
3063
+ allowedFileTypes: Me,
3061
3064
  required: !0,
3062
3065
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
3063
3066
  onChange: (e) => {
@@ -3155,7 +3158,7 @@ const xr = /* @__PURE__ */ S(Nr, [["render", Dr]]), Ur = {
3155
3158
  shouldReceiveBuilderProps: {
3156
3159
  builderBlock: !0
3157
3160
  }
3158
- }, jr = {
3161
+ }, qr = {
3159
3162
  name: "PersonalizationContainer",
3160
3163
  shouldReceiveBuilderProps: {
3161
3164
  builderBlock: !0,
@@ -3191,9 +3194,9 @@ const xr = /* @__PURE__ */ S(Nr, [["render", Dr]]), Ur = {
3191
3194
  defaultValue: []
3192
3195
  }]
3193
3196
  }]
3194
- }, Le = y({
3197
+ }, ye = y({
3195
3198
  render() {
3196
- return pt("script", {
3199
+ return ht("script", {
3197
3200
  innerHTML: this.scriptStr,
3198
3201
  "data-id": this.id,
3199
3202
  nonce: this.nonce
@@ -3201,12 +3204,12 @@ const xr = /* @__PURE__ */ S(Nr, [["render", Dr]]), Ur = {
3201
3204
  },
3202
3205
  name: "inlined-script",
3203
3206
  props: ["scriptStr", "id", "nonce"]
3204
- }), Kr = y({
3207
+ }), Gr = y({
3205
3208
  name: "builder-personalization-container",
3206
3209
  components: {
3207
3210
  Blocks: z,
3208
3211
  InlinedStyles: ge,
3209
- InlinedScript: Le
3212
+ InlinedScript: ye
3210
3213
  },
3211
3214
  props: [
3212
3215
  "builderContext",
@@ -3220,25 +3223,25 @@ const xr = /* @__PURE__ */ S(Nr, [["render", Dr]]), Ur = {
3220
3223
  var e, t, n, o, r, i, s;
3221
3224
  return {
3222
3225
  userAttributes: pe.getUserAttributes(),
3223
- scriptStr: Pr(
3226
+ scriptStr: Vr(
3224
3227
  this.variants,
3225
3228
  ((e = this.builderBlock) == null ? void 0 : e.id) || "none",
3226
3229
  (n = (t = this.builderContext) == null ? void 0 : t.rootState) == null ? void 0 : n.locale
3227
3230
  ),
3228
- updateVisibilityStylesScript: Br(
3231
+ updateVisibilityStylesScript: Or(
3229
3232
  this.variants,
3230
3233
  ((o = this.builderBlock) == null ? void 0 : o.id) || "none",
3231
3234
  (i = (r = this.builderContext) == null ? void 0 : r.rootState) == null ? void 0 : i.locale
3232
3235
  ),
3233
3236
  unsubscribers: [],
3234
- shouldRenderVariants: Er(
3237
+ shouldRenderVariants: Pr(
3235
3238
  this.variants,
3236
3239
  _((s = this.builderContext) == null ? void 0 : s.canTrack)
3237
3240
  ),
3238
3241
  shouldResetVariants: !1,
3239
- TARGET: R,
3242
+ TARGET: E,
3240
3243
  DEFAULT_INDEX: ce,
3241
- SDKS_REQUIRING_RESET_APPROACH: Jt
3244
+ SDKS_REQUIRING_RESET_APPROACH: Qt
3242
3245
  };
3243
3246
  },
3244
3247
  mounted() {
@@ -3249,10 +3252,10 @@ const xr = /* @__PURE__ */ S(Nr, [["render", Dr]]), Ur = {
3249
3252
  this.userAttributes = n;
3250
3253
  },
3251
3254
  {
3252
- fireImmediately: R === "qwik"
3255
+ fireImmediately: E === "qwik"
3253
3256
  }
3254
3257
  );
3255
- if (!(A() || be())) {
3258
+ if (!(P() || be())) {
3256
3259
  const n = this.filteredVariants[0];
3257
3260
  this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
3258
3261
  new CustomEvent("builder.variantLoaded", {
@@ -3293,7 +3296,7 @@ const xr = /* @__PURE__ */ S(Nr, [["render", Dr]]), Ur = {
3293
3296
  filteredVariants() {
3294
3297
  return (this.variants || []).filter((e) => {
3295
3298
  var t, n, o, r;
3296
- return vr(
3299
+ return Tr(
3297
3300
  {
3298
3301
  ...(n = (t = this.builderContext) == null ? void 0 : t.rootState) != null && n.locale ? {
3299
3302
  locale: (r = (o = this.builderContext) == null ? void 0 : o.rootState) == null ? void 0 : r.locale
@@ -3308,7 +3311,7 @@ const xr = /* @__PURE__ */ S(Nr, [["render", Dr]]), Ur = {
3308
3311
  },
3309
3312
  blocksToRender() {
3310
3313
  var e;
3311
- return Rr({
3314
+ return Ar({
3312
3315
  variants: this.variants,
3313
3316
  fallbackBlocks: (e = this.builderBlock) == null ? void 0 : e.children,
3314
3317
  isHydrated: this.shouldResetVariants,
@@ -3326,11 +3329,11 @@ const xr = /* @__PURE__ */ S(Nr, [["render", Dr]]), Ur = {
3326
3329
  }
3327
3330
  }
3328
3331
  });
3329
- function zr(e, t, n, o, r, i) {
3330
- var d, p, b, c, m, f, g, P, x, V;
3331
- const s = k("Blocks"), l = k("InlinedStyles"), a = k("InlinedScript");
3332
- return u(), h("div", E({ ref: "rootRef" }, e.attrs), [
3333
- e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (u(), v(s, {
3332
+ function _r(e, t, n, o, r, i) {
3333
+ var d, p, b, c, m, f, g, A, U, O;
3334
+ const s = C("Blocks"), l = C("InlinedStyles"), a = C("InlinedScript");
3335
+ return u(), h("div", R({ ref: "rootRef" }, e.attrs), [
3336
+ e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (u(), S(s, {
3334
3337
  key: 0,
3335
3338
  blocks: e.blocksToRender.blocks,
3336
3339
  parent: (d = e.builderBlock) == null ? void 0 : d.id,
@@ -3341,9 +3344,9 @@ function zr(e, t, n, o, r, i) {
3341
3344
  ...(p = e.builderContext) == null ? void 0 : p.BlocksWrapperProps,
3342
3345
  "data-variant-id": `${(b = e.builderBlock) == null ? void 0 : b.id}-${e.blocksToRender.index}`
3343
3346
  }
3344
- }, null, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])) : T("", !0),
3345
- !e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (u(), h(I, { key: 1 }, [
3346
- e.shouldRenderVariants ? (u(), h(I, { key: 0 }, [
3347
+ }, null, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])) : v("", !0),
3348
+ !e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (u(), h(w, { key: 1 }, [
3349
+ e.shouldRenderVariants ? (u(), h(w, { key: 0 }, [
3347
3350
  $(l, {
3348
3351
  nonce: ((c = e.builderContext) == null ? void 0 : c.nonce) || "",
3349
3352
  styles: e.hideVariantsStyleString,
@@ -3354,64 +3357,64 @@ function zr(e, t, n, o, r, i) {
3354
3357
  scriptStr: e.updateVisibilityStylesScript,
3355
3358
  id: `variants-visibility-script-${(g = e.builderBlock) == null ? void 0 : g.id}`
3356
3359
  }, null, 8, ["nonce", "scriptStr", "id"]),
3357
- (u(!0), h(I, null, L(e.variants, (q, C) => {
3360
+ (u(!0), h(w, null, L(e.variants, (q, T) => {
3358
3361
  var K, J, Q, W;
3359
- return u(), v(s, {
3360
- key: `${(K = e.builderBlock) == null ? void 0 : K.id}-${C}`,
3362
+ return u(), S(s, {
3363
+ key: `${(K = e.builderBlock) == null ? void 0 : K.id}-${T}`,
3361
3364
  BlocksWrapperProps: {
3362
3365
  ...(J = e.builderContext) == null ? void 0 : J.BlocksWrapperProps,
3363
3366
  "aria-hidden": !0,
3364
3367
  hidden: !0,
3365
- "data-variant-id": `${(Q = e.builderBlock) == null ? void 0 : Q.id}-${C}`
3368
+ "data-variant-id": `${(Q = e.builderBlock) == null ? void 0 : Q.id}-${T}`
3366
3369
  },
3367
3370
  blocks: q.blocks,
3368
3371
  parent: (W = e.builderBlock) == null ? void 0 : W.id,
3369
- path: `component.options.variants.${C}.blocks`,
3372
+ path: `component.options.variants.${T}.blocks`,
3370
3373
  context: e.builderContext,
3371
3374
  registeredComponents: e.builderComponents
3372
3375
  }, {
3373
3376
  default: D(() => {
3374
- var F, Me;
3377
+ var F, je;
3375
3378
  return [
3376
3379
  $(a, {
3377
3380
  nonce: ((F = e.builderContext) == null ? void 0 : F.nonce) || "",
3378
3381
  scriptStr: e.scriptStr,
3379
- id: `variants-script-${(Me = e.builderBlock) == null ? void 0 : Me.id}-${C}`
3382
+ id: `variants-script-${(je = e.builderBlock) == null ? void 0 : je.id}-${T}`
3380
3383
  }, null, 8, ["nonce", "scriptStr", "id"])
3381
3384
  ];
3382
3385
  }),
3383
3386
  _: 2
3384
3387
  }, 1032, ["BlocksWrapperProps", "blocks", "parent", "path", "context", "registeredComponents"]);
3385
3388
  }), 128))
3386
- ], 64)) : T("", !0),
3389
+ ], 64)) : v("", !0),
3387
3390
  $(s, {
3388
3391
  blocks: e.blocksToRender.blocks,
3389
- parent: (P = e.builderBlock) == null ? void 0 : P.id,
3392
+ parent: (A = e.builderBlock) == null ? void 0 : A.id,
3390
3393
  path: e.blocksToRender.path,
3391
3394
  context: e.builderContext,
3392
3395
  registeredComponents: e.builderComponents,
3393
3396
  BlocksWrapperProps: {
3394
- ...(x = e.builderContext) == null ? void 0 : x.BlocksWrapperProps,
3395
- "data-variant-id": `${(V = e.builderBlock) == null ? void 0 : V.id}-${e.blocksToRender.index}`
3397
+ ...(U = e.builderContext) == null ? void 0 : U.BlocksWrapperProps,
3398
+ "data-variant-id": `${(O = e.builderBlock) == null ? void 0 : O.id}-${e.blocksToRender.index}`
3396
3399
  }
3397
3400
  }, {
3398
3401
  default: D(() => {
3399
- var q, C;
3402
+ var q, T;
3400
3403
  return [
3401
- e.shouldRenderVariants ? (u(), v(a, {
3404
+ e.shouldRenderVariants ? (u(), S(a, {
3402
3405
  key: 0,
3403
3406
  nonce: ((q = e.builderContext) == null ? void 0 : q.nonce) || "",
3404
3407
  scriptStr: e.scriptStr,
3405
- id: `variants-script-${(C = e.builderBlock) == null ? void 0 : C.id}-${e.DEFAULT_INDEX}`
3406
- }, null, 8, ["nonce", "scriptStr", "id"])) : T("", !0)
3408
+ id: `variants-script-${(T = e.builderBlock) == null ? void 0 : T.id}-${e.DEFAULT_INDEX}`
3409
+ }, null, 8, ["nonce", "scriptStr", "id"])) : v("", !0)
3407
3410
  ];
3408
3411
  }),
3409
3412
  _: 1
3410
3413
  }, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])
3411
- ], 64)) : T("", !0)
3414
+ ], 64)) : v("", !0)
3412
3415
  ], 16);
3413
3416
  }
3414
- const qr = /* @__PURE__ */ S(Kr, [["render", zr]]), Gr = {
3417
+ const Jr = /* @__PURE__ */ k(Gr, [["render", _r]]), Qr = {
3415
3418
  name: "Core:Section",
3416
3419
  static: !0,
3417
3420
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -3450,7 +3453,7 @@ const qr = /* @__PURE__ */ S(Kr, [["render", zr]]), Gr = {
3450
3453
  }
3451
3454
  }
3452
3455
  }]
3453
- }, _r = {
3456
+ }, Yr = {
3454
3457
  name: "Slot",
3455
3458
  isRSC: !0,
3456
3459
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -3467,15 +3470,15 @@ const qr = /* @__PURE__ */ S(Kr, [["render", zr]]), Gr = {
3467
3470
  builderContext: !0,
3468
3471
  builderComponents: !0
3469
3472
  }
3470
- }, Jr = y({
3473
+ }, Xr = y({
3471
3474
  name: "builder-slot",
3472
3475
  components: { Blocks: z },
3473
3476
  props: ["builderContext", "name", "builderComponents"]
3474
3477
  });
3475
- function Qr(e, t, n, o, r, i) {
3478
+ function Zr(e, t, n, o, r, i) {
3476
3479
  var l, a, d;
3477
- const s = k("Blocks");
3478
- return u(), h("div", E(
3480
+ const s = C("Blocks");
3481
+ return u(), h("div", R(
3479
3482
  { style: {
3480
3483
  pointerEvents: "auto"
3481
3484
  } },
@@ -3492,7 +3495,7 @@ function Qr(e, t, n, o, r, i) {
3492
3495
  }, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
3493
3496
  ], 16);
3494
3497
  }
3495
- const Yr = /* @__PURE__ */ S(Jr, [["render", Qr]]), Xr = {
3498
+ const ei = /* @__PURE__ */ k(Xr, [["render", Zr]]), ti = {
3496
3499
  name: "Symbol",
3497
3500
  noWrap: !0,
3498
3501
  static: !0,
@@ -3531,7 +3534,7 @@ const Yr = /* @__PURE__ */ S(Jr, [["render", Qr]]), Xr = {
3531
3534
  builderComponents: !0,
3532
3535
  builderLinkComponent: !0
3533
3536
  }
3534
- }, ve = {
3537
+ }, ke = {
3535
3538
  "@type": "@builder.io/sdk:Element",
3536
3539
  responsiveStyles: {
3537
3540
  large: {
@@ -3553,7 +3556,7 @@ const Yr = /* @__PURE__ */ S(Jr, [["render", Qr]]), Xr = {
3553
3556
  text: "New tab"
3554
3557
  }
3555
3558
  }
3556
- }, ke = {
3559
+ }, Ce = {
3557
3560
  "@type": "@builder.io/sdk:Element",
3558
3561
  responsiveStyles: {
3559
3562
  large: {
@@ -3569,7 +3572,7 @@ const Yr = /* @__PURE__ */ S(Jr, [["render", Qr]]), Xr = {
3569
3572
  text: "New tab content "
3570
3573
  }
3571
3574
  }
3572
- }, Zr = {
3575
+ }, ni = {
3573
3576
  name: "Builder: Tabs",
3574
3577
  inputs: [{
3575
3578
  name: "tabs",
@@ -3579,16 +3582,16 @@ const Yr = /* @__PURE__ */ S(Jr, [["render", Qr]]), Xr = {
3579
3582
  name: "label",
3580
3583
  type: "uiBlocks",
3581
3584
  hideFromUI: !0,
3582
- defaultValue: [ve]
3585
+ defaultValue: [ke]
3583
3586
  }, {
3584
3587
  name: "content",
3585
3588
  type: "uiBlocks",
3586
3589
  hideFromUI: !0,
3587
- defaultValue: [ke]
3590
+ defaultValue: [Ce]
3588
3591
  }],
3589
3592
  defaultValue: [{
3590
3593
  label: [{
3591
- ...ve,
3594
+ ...ke,
3592
3595
  component: {
3593
3596
  name: "Text",
3594
3597
  options: {
@@ -3597,7 +3600,7 @@ const Yr = /* @__PURE__ */ S(Jr, [["render", Qr]]), Xr = {
3597
3600
  }
3598
3601
  }],
3599
3602
  content: [{
3600
- ...ke,
3603
+ ...Ce,
3601
3604
  component: {
3602
3605
  name: "Text",
3603
3606
  options: {
@@ -3607,7 +3610,7 @@ const Yr = /* @__PURE__ */ S(Jr, [["render", Qr]]), Xr = {
3607
3610
  }]
3608
3611
  }, {
3609
3612
  label: [{
3610
- ...ve,
3613
+ ...ke,
3611
3614
  component: {
3612
3615
  name: "Text",
3613
3616
  options: {
@@ -3616,7 +3619,7 @@ const Yr = /* @__PURE__ */ S(Jr, [["render", Qr]]), Xr = {
3616
3619
  }
3617
3620
  }],
3618
3621
  content: [{
3619
- ...ke,
3622
+ ...Ce,
3620
3623
  component: {
3621
3624
  name: "Text",
3622
3625
  options: {
@@ -3672,7 +3675,7 @@ const Yr = /* @__PURE__ */ S(Jr, [["render", Qr]]), Xr = {
3672
3675
  builderComponents: !0,
3673
3676
  builderLinkComponent: !0
3674
3677
  }
3675
- }, ei = y({
3678
+ }, oi = y({
3676
3679
  name: "builder-tabs",
3677
3680
  components: { Blocks: z },
3678
3681
  props: [
@@ -3700,9 +3703,9 @@ const Yr = /* @__PURE__ */ S(Jr, [["render", Qr]]), Xr = {
3700
3703
  e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
3701
3704
  }
3702
3705
  }
3703
- }), ti = ["onClick"], ni = { key: 0 };
3704
- function oi(e, t, n, o, r, i) {
3705
- const s = k("Blocks");
3706
+ }), ri = ["onClick"], ii = { key: 0 };
3707
+ function si(e, t, n, o, r, i) {
3708
+ const s = C("Blocks");
3706
3709
  return u(), h("div", null, [
3707
3710
  G("div", {
3708
3711
  class: "builder-tabs-wrap",
@@ -3713,7 +3716,7 @@ function oi(e, t, n, o, r, i) {
3713
3716
  overflow: "auto"
3714
3717
  })
3715
3718
  }, [
3716
- (u(!0), h(I, null, L(e.tabs, (l, a) => (u(), h("span", {
3719
+ (u(!0), h(w, null, L(e.tabs, (l, a) => (u(), h("span", {
3717
3720
  key: a,
3718
3721
  class: te(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
3719
3722
  style: M(e.getTabStyle(a)),
@@ -3727,9 +3730,9 @@ function oi(e, t, n, o, r, i) {
3727
3730
  registeredComponents: e.builderComponents,
3728
3731
  linkComponent: e.builderLinkComponent
3729
3732
  }, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
3730
- ], 14, ti))), 128))
3733
+ ], 14, ri))), 128))
3731
3734
  ], 4),
3732
- e.activeTabContent(e.activeTab) ? (u(), h("div", ni, [
3735
+ e.activeTabContent(e.activeTab) ? (u(), h("div", ii, [
3733
3736
  $(s, {
3734
3737
  parent: e.builderBlock.id,
3735
3738
  path: `tabs.${e.activeTab}.content`,
@@ -3738,10 +3741,10 @@ function oi(e, t, n, o, r, i) {
3738
3741
  registeredComponents: e.builderComponents,
3739
3742
  linkComponent: e.builderLinkComponent
3740
3743
  }, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
3741
- ])) : T("", !0)
3744
+ ])) : v("", !0)
3742
3745
  ]);
3743
3746
  }
3744
- const ri = /* @__PURE__ */ S(ei, [["render", oi]]), ii = {
3747
+ const ai = /* @__PURE__ */ k(oi, [["render", si]]), li = {
3745
3748
  shouldReceiveBuilderProps: {},
3746
3749
  name: "Text",
3747
3750
  static: !0,
@@ -3759,11 +3762,11 @@ const ri = /* @__PURE__ */ S(ei, [["render", oi]]), ii = {
3759
3762
  height: "auto",
3760
3763
  textAlign: "center"
3761
3764
  }
3762
- }, si = y({
3765
+ }, ci = y({
3763
3766
  name: "builder-text",
3764
3767
  props: ["text"]
3765
- }), ai = ["innerHTML"];
3766
- function li(e, t, n, o, r, i) {
3768
+ }), di = ["innerHTML"];
3769
+ function ui(e, t, n, o, r, i) {
3767
3770
  var s;
3768
3771
  return u(), h("div", {
3769
3772
  class: "builder-text",
@@ -3771,9 +3774,9 @@ function li(e, t, n, o, r, i) {
3771
3774
  style: {
3772
3775
  outline: "none"
3773
3776
  }
3774
- }, null, 8, ai);
3777
+ }, null, 8, di);
3775
3778
  }
3776
- const ci = /* @__PURE__ */ S(si, [["render", li]]), di = {
3779
+ const pi = /* @__PURE__ */ k(ci, [["render", ui]]), mi = {
3777
3780
  name: "Custom Code",
3778
3781
  static: !0,
3779
3782
  requiredPermissions: ["editCode"],
@@ -3795,7 +3798,7 @@ const ci = /* @__PURE__ */ S(si, [["render", li]]), di = {
3795
3798
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
3796
3799
  advanced: !0
3797
3800
  }]
3798
- }, ui = y({
3801
+ }, hi = y({
3799
3802
  name: "builder-custom-code",
3800
3803
  props: ["code", "replaceNodes"],
3801
3804
  data() {
@@ -3807,7 +3810,7 @@ const ci = /* @__PURE__ */ S(si, [["render", li]]), di = {
3807
3810
  watch: {
3808
3811
  onUpdateHook0: {
3809
3812
  handler() {
3810
- A() && setTimeout(() => {
3813
+ P() && setTimeout(() => {
3811
3814
  this.runScripts();
3812
3815
  }, 0);
3813
3816
  },
@@ -3845,7 +3848,7 @@ const ci = /* @__PURE__ */ S(si, [["render", li]]), di = {
3845
3848
  try {
3846
3849
  this.scriptsRun.push(o.innerText), new Function(o.innerText)();
3847
3850
  } catch (r) {
3848
- B.warn(
3851
+ V.warn(
3849
3852
  "[BUILDER.IO] `CustomCode`: Error running script:",
3850
3853
  r
3851
3854
  );
@@ -3854,15 +3857,15 @@ const ci = /* @__PURE__ */ S(si, [["render", li]]), di = {
3854
3857
  }
3855
3858
  }
3856
3859
  }
3857
- }), pi = ["innerHTML"];
3858
- function mi(e, t, n, o, r, i) {
3860
+ }), fi = ["innerHTML"];
3861
+ function bi(e, t, n, o, r, i) {
3859
3862
  return u(), h("div", {
3860
3863
  ref: "elementRef",
3861
3864
  class: te("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
3862
3865
  innerHTML: e.code
3863
- }, null, 10, pi);
3866
+ }, null, 10, fi);
3864
3867
  }
3865
- const hi = /* @__PURE__ */ S(ui, [["render", mi]]), fi = {
3868
+ const gi = /* @__PURE__ */ k(hi, [["render", bi]]), yi = {
3866
3869
  name: "Embed",
3867
3870
  static: !0,
3868
3871
  inputs: [{
@@ -3877,7 +3880,7 @@ const hi = /* @__PURE__ */ S(ui, [["render", mi]]), fi = {
3877
3880
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
3878
3881
  hideFromUI: !0
3879
3882
  }]
3880
- }, bi = ["text/javascript", "application/javascript", "application/ecmascript"], gi = (e) => bi.includes(e.type), yi = y({
3883
+ }, Si = ["text/javascript", "application/javascript", "application/ecmascript"], vi = (e) => Si.includes(e.type), ki = y({
3881
3884
  name: "builder-embed",
3882
3885
  props: ["content"],
3883
3886
  data() {
@@ -3910,24 +3913,24 @@ const hi = /* @__PURE__ */ S(ui, [["render", mi]]), fi = {
3910
3913
  this.scriptsInserted.push(n.src);
3911
3914
  const o = document.createElement("script");
3912
3915
  o.async = !0, o.src = n.src, document.head.appendChild(o);
3913
- } else if (gi(n) && !this.scriptsRun.includes(n.innerText))
3916
+ } else if (vi(n) && !this.scriptsRun.includes(n.innerText))
3914
3917
  try {
3915
3918
  this.scriptsRun.push(n.innerText), new Function(n.innerText)();
3916
3919
  } catch (o) {
3917
- B.warn("[BUILDER.IO] `Embed`: Error running script:", o);
3920
+ V.warn("[BUILDER.IO] `Embed`: Error running script:", o);
3918
3921
  }
3919
3922
  }
3920
3923
  }
3921
3924
  }
3922
- }), Si = ["innerHTML"];
3923
- function vi(e, t, n, o, r, i) {
3925
+ }), Ci = ["innerHTML"];
3926
+ function Ti(e, t, n, o, r, i) {
3924
3927
  return u(), h("div", {
3925
3928
  class: "builder-embed",
3926
3929
  ref: "elem",
3927
3930
  innerHTML: e.content
3928
- }, null, 8, Si);
3931
+ }, null, 8, Ci);
3929
3932
  }
3930
- const ki = /* @__PURE__ */ S(yi, [["render", vi]]), Ci = {
3933
+ const Ii = /* @__PURE__ */ k(ki, [["render", Ti]]), wi = {
3931
3934
  name: "Form:Form",
3932
3935
  // editableTags: ['builder-form-error']
3933
3936
  defaults: {
@@ -4164,10 +4167,10 @@ const ki = /* @__PURE__ */ S(yi, [["render", vi]]), Ci = {
4164
4167
  builderComponents: !0,
4165
4168
  builderLinkComponent: !0
4166
4169
  }
4167
- }, Ti = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], wi = () => {
4170
+ }, Ei = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Ri = () => {
4168
4171
  const e = process.env.NODE_ENV || "production";
4169
- return Ti.includes(e) ? e : "production";
4170
- }, Ii = y({
4172
+ return Ei.includes(e) ? e : "production";
4173
+ }, $i = y({
4171
4174
  name: "builder-form-component",
4172
4175
  components: { Blocks: z },
4173
4176
  props: [
@@ -4208,7 +4211,7 @@ const ki = /* @__PURE__ */ S(yi, [["render", vi]]), Ci = {
4208
4211
  this.builderContext.rootSetState ? (o = (n = this.builderContext).rootSetState) == null || o.call(n, t) : this.builderContext.rootState = t;
4209
4212
  },
4210
4213
  submissionState() {
4211
- return A() && this.previewState || this.formState;
4214
+ return P() && this.previewState || this.formState;
4212
4215
  },
4213
4216
  errorResponse(e) {
4214
4217
  return JSON.stringify(e, null, 2);
@@ -4260,7 +4263,7 @@ const ki = /* @__PURE__ */ S(yi, [["render", vi]]), Ci = {
4260
4263
  else {
4261
4264
  const c = {};
4262
4265
  Array.from(l).forEach(({ value: m, key: f }) => {
4263
- Gn(c, f, m);
4266
+ Qn(c, f, m);
4264
4267
  }), i = JSON.stringify(c);
4265
4268
  }
4266
4269
  a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
@@ -4278,56 +4281,56 @@ const ki = /* @__PURE__ */ S(yi, [["render", vi]]), Ci = {
4278
4281
  });
4279
4282
  return;
4280
4283
  }
4281
- const p = `${wi() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
4284
+ const p = `${Ri() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
4282
4285
  this.sendSubmissionsToEmail || ""
4283
4286
  )}&name=${encodeURIComponent(this.name || "")}`, b = this.sendSubmissionsTo === "email" ? p : this.action;
4284
- Ve(b), fetch(b, {
4287
+ Ne(b), fetch(b, {
4285
4288
  body: i,
4286
4289
  headers: r,
4287
4290
  method: this.method || "post"
4288
4291
  }).then(
4289
4292
  async (c) => {
4290
- var g, P;
4293
+ var g, A;
4291
4294
  let m;
4292
4295
  const f = c.headers.get("content-type");
4293
4296
  if (f && f.indexOf("application/json") !== -1 ? m = await c.json() : m = await c.text(), !c.ok) {
4294
- const x = new CustomEvent("submit:error", {
4297
+ const U = new CustomEvent("submit:error", {
4295
4298
  detail: {
4296
4299
  error: m,
4297
4300
  status: c.status
4298
4301
  }
4299
4302
  });
4300
- if ((g = this.$refs.formRef) != null && g.nativeElement && ((P = this.$refs.formRef) == null || P.nativeElement.dispatchEvent(
4301
- x
4302
- ), x.defaultPrevented))
4303
+ if ((g = this.$refs.formRef) != null && g.nativeElement && ((A = this.$refs.formRef) == null || A.nativeElement.dispatchEvent(
4304
+ U
4305
+ ), U.defaultPrevented))
4303
4306
  return;
4304
4307
  this.responseData = m, this.formState = "error";
4305
- let V = this.errorMessagePath ? ft(m, this.errorMessagePath) : m.message || m.error || m;
4306
- typeof V != "string" && (V = JSON.stringify(V)), this.formErrorMessage = V, this.mergeNewRootState({
4307
- formErrorMessage: V
4308
+ let O = this.errorMessagePath ? gt(m, this.errorMessagePath) : m.message || m.error || m;
4309
+ typeof O != "string" && (O = JSON.stringify(O)), this.formErrorMessage = O, this.mergeNewRootState({
4310
+ formErrorMessage: O
4308
4311
  });
4309
4312
  return;
4310
4313
  }
4311
4314
  if (this.responseData = m, this.formState = c.ok ? "success" : "error", c.ok) {
4312
- const x = new CustomEvent("submit:success", {
4315
+ const U = new CustomEvent("submit:success", {
4313
4316
  detail: {
4314
4317
  res: c,
4315
4318
  body: m
4316
4319
  }
4317
4320
  });
4318
4321
  if (this.$refs.formRef) {
4319
- if (this.$refs.formRef.dispatchEvent(x), x.defaultPrevented)
4322
+ if (this.$refs.formRef.dispatchEvent(U), U.defaultPrevented)
4320
4323
  return;
4321
4324
  this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
4322
4325
  }
4323
4326
  if (this.successUrl)
4324
4327
  if (this.$refs.formRef) {
4325
- const V = new CustomEvent("route", {
4328
+ const O = new CustomEvent("route", {
4326
4329
  detail: {
4327
4330
  url: this.successUrl
4328
4331
  }
4329
4332
  });
4330
- this.$refs.formRef.dispatchEvent(V), V.defaultPrevented || (location.href = this.successUrl);
4333
+ this.$refs.formRef.dispatchEvent(O), O.defaultPrevented || (location.href = this.successUrl);
4331
4334
  } else
4332
4335
  location.href = this.successUrl;
4333
4336
  }
@@ -4344,43 +4347,43 @@ const ki = /* @__PURE__ */ S(yi, [["render", vi]]), Ci = {
4344
4347
  }
4345
4348
  }
4346
4349
  }
4347
- }), Ei = ["validate", "action", "method", "name"], Ri = {
4350
+ }), Pi = ["validate", "action", "method", "name"], Ai = {
4348
4351
  key: 2,
4349
- class: "builder-form-error-text pre-2oa2wtipkzk"
4352
+ class: "builder-form-error-text pre-7fq9d0i380"
4350
4353
  };
4351
- function $i(e, t, n, o, r, i) {
4352
- const s = k("Blocks");
4353
- return u(), h("form", E({
4354
+ function Bi(e, t, n, o, r, i) {
4355
+ const s = C("Blocks");
4356
+ return u(), h("form", R({
4354
4357
  validate: e.validate,
4355
4358
  ref: "formRef",
4356
4359
  action: !e.sendWithJs && e.action,
4357
4360
  method: e.method,
4358
4361
  name: e.name,
4359
4362
  onSubmit: t[0] || (t[0] = async (l) => e.onSubmit(l))
4360
- }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4361
- O(e.$slots, "default", {}, void 0, !0),
4362
- e.submissionState() === "error" ? (u(), v(s, {
4363
+ }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4364
+ B(e.$slots, "default", {}, void 0, !0),
4365
+ e.submissionState() === "error" ? (u(), S(s, {
4363
4366
  key: 0,
4364
4367
  path: "errorMessage",
4365
4368
  blocks: e.errorMessage,
4366
4369
  context: e.builderContext
4367
- }, null, 8, ["blocks", "context"])) : T("", !0),
4368
- e.submissionState() === "sending" ? (u(), v(s, {
4370
+ }, null, 8, ["blocks", "context"])) : v("", !0),
4371
+ e.submissionState() === "sending" ? (u(), S(s, {
4369
4372
  key: 1,
4370
4373
  path: "sendingMessage",
4371
4374
  blocks: e.sendingMessage,
4372
4375
  context: e.builderContext
4373
- }, null, 8, ["blocks", "context"])) : T("", !0),
4374
- e.submissionState() === "error" && e.responseData ? (u(), h("pre", Ri, he(e.errorResponse(e.responseData)), 1)) : T("", !0),
4375
- e.submissionState() === "success" ? (u(), v(s, {
4376
+ }, null, 8, ["blocks", "context"])) : v("", !0),
4377
+ e.submissionState() === "error" && e.responseData ? (u(), h("pre", Ai, he(e.errorResponse(e.responseData)), 1)) : v("", !0),
4378
+ e.submissionState() === "success" ? (u(), S(s, {
4376
4379
  key: 3,
4377
4380
  path: "successMessage",
4378
4381
  blocks: e.successMessage,
4379
4382
  context: e.builderContext
4380
- }, null, 8, ["blocks", "context"])) : T("", !0)
4381
- ], 16, Ei);
4383
+ }, null, 8, ["blocks", "context"])) : v("", !0)
4384
+ ], 16, Pi);
4382
4385
  }
4383
- const Ai = /* @__PURE__ */ S(Ii, [["render", $i], ["__scopeId", "data-v-77c7888c"]]), Pi = {
4386
+ const Vi = /* @__PURE__ */ k($i, [["render", Bi], ["__scopeId", "data-v-d1f88a0c"]]), Oi = {
4384
4387
  name: "Form:Input",
4385
4388
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
4386
4389
  inputs: [
@@ -4431,7 +4434,7 @@ const Ai = /* @__PURE__ */ S(Ii, [["render", $i], ["__scopeId", "data-v-77c7888c
4431
4434
  borderStyle: "solid",
4432
4435
  borderColor: "#ccc"
4433
4436
  }
4434
- }, Bi = y({
4437
+ }, Ni = y({
4435
4438
  name: "builder-form-input-component",
4436
4439
  props: [
4437
4440
  "attributes",
@@ -4443,11 +4446,11 @@ const Ai = /* @__PURE__ */ S(Ii, [["render", $i], ["__scopeId", "data-v-77c7888c
4443
4446
  "required"
4444
4447
  ],
4445
4448
  data() {
4446
- return { isEditing: A, filterAttrs: N };
4449
+ return { isEditing: P, filterAttrs: N };
4447
4450
  }
4448
- }), Vi = ["placeholder", "type", "name", "value", "defaultValue", "required"];
4449
- function Oi(e, t, n, o, r, i) {
4450
- return u(), h("input", E({
4451
+ }), Wi = ["placeholder", "type", "name", "value", "defaultValue", "required"];
4452
+ function Di(e, t, n, o, r, i) {
4453
+ return u(), h("input", R({
4451
4454
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
4452
4455
  placeholder: e.placeholder,
4453
4456
  type: e.type,
@@ -4455,9 +4458,9 @@ function Oi(e, t, n, o, r, i) {
4455
4458
  value: e.value,
4456
4459
  defaultValue: e.defaultValue,
4457
4460
  required: e.required
4458
- }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Vi);
4461
+ }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Wi);
4459
4462
  }
4460
- const Ni = /* @__PURE__ */ S(Bi, [["render", Oi]]), Wi = {
4463
+ const Ui = /* @__PURE__ */ k(Ni, [["render", Di]]), xi = {
4461
4464
  name: "Form:Select",
4462
4465
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
4463
4466
  defaultStyles: {
@@ -4499,28 +4502,28 @@ const Ni = /* @__PURE__ */ S(Bi, [["render", Oi]]), Wi = {
4499
4502
  }],
4500
4503
  static: !0,
4501
4504
  noWrap: !0
4502
- }, Di = y({
4505
+ }, Li = y({
4503
4506
  name: "builder-select-component",
4504
4507
  props: ["attributes", "value", "defaultValue", "name", "required", "options"],
4505
4508
  data() {
4506
- return { isEditing: A, filterAttrs: N };
4509
+ return { isEditing: P, filterAttrs: N };
4507
4510
  }
4508
- }), xi = ["value", "defaultValue", "name", "required"], Ui = ["value"];
4509
- function Li(e, t, n, o, r, i) {
4510
- return u(), h("select", E({
4511
+ }), Fi = ["value", "defaultValue", "name", "required"], Mi = ["value"];
4512
+ function Hi(e, t, n, o, r, i) {
4513
+ return u(), h("select", R({
4511
4514
  value: e.value,
4512
4515
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
4513
4516
  defaultValue: e.defaultValue,
4514
4517
  name: e.name,
4515
4518
  required: e.required
4516
- }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4517
- (u(!0), h(I, null, L(e.options, (s, l) => (u(), h("option", {
4519
+ }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
4520
+ (u(!0), h(w, null, L(e.options, (s, l) => (u(), h("option", {
4518
4521
  key: `${s.name}-${l}`,
4519
4522
  value: s.value
4520
- }, he(s.name || s.value), 9, Ui))), 128))
4521
- ], 16, xi);
4523
+ }, he(s.name || s.value), 9, Mi))), 128))
4524
+ ], 16, Fi);
4522
4525
  }
4523
- const Fi = /* @__PURE__ */ S(Di, [["render", Li]]), Mi = {
4526
+ const ji = /* @__PURE__ */ k(Li, [["render", Hi]]), Ki = {
4524
4527
  name: "Form:SubmitButton",
4525
4528
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
4526
4529
  defaultStyles: {
@@ -4545,17 +4548,17 @@ const Fi = /* @__PURE__ */ S(Di, [["render", Li]]), Mi = {
4545
4548
  // that only shows if advanced setting is flipped
4546
4549
  // TODO: defaultChildren
4547
4550
  // canHaveChildren: true,
4548
- }, Hi = y({
4551
+ }, zi = y({
4549
4552
  name: "builder-submit-button",
4550
4553
  props: ["attributes", "text"],
4551
4554
  data() {
4552
4555
  return { filterAttrs: N };
4553
4556
  }
4554
4557
  });
4555
- function ji(e, t, n, o, r, i) {
4556
- return u(), h("button", E({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), he(e.text), 17);
4558
+ function qi(e, t, n, o, r, i) {
4559
+ return u(), h("button", R({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), he(e.text), 17);
4557
4560
  }
4558
- const Ki = /* @__PURE__ */ S(Hi, [["render", ji]]), zi = {
4561
+ const Gi = /* @__PURE__ */ k(zi, [["render", qi]]), _i = {
4559
4562
  name: "Form:TextArea",
4560
4563
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
4561
4564
  inputs: [{
@@ -4591,7 +4594,7 @@ const Ki = /* @__PURE__ */ S(Hi, [["render", ji]]), zi = {
4591
4594
  },
4592
4595
  static: !0,
4593
4596
  noWrap: !0
4594
- }, qi = y({
4597
+ }, Ji = y({
4595
4598
  name: "builder-textarea",
4596
4599
  props: [
4597
4600
  "attributes",
@@ -4604,17 +4607,17 @@ const Ki = /* @__PURE__ */ S(Hi, [["render", ji]]), zi = {
4604
4607
  data() {
4605
4608
  return { filterAttrs: N };
4606
4609
  }
4607
- }), Gi = ["placeholder", "name", "value", "defaultValue", "required"];
4608
- function _i(e, t, n, o, r, i) {
4609
- return u(), h("textarea", E({
4610
+ }), Qi = ["placeholder", "name", "value", "defaultValue", "required"];
4611
+ function Yi(e, t, n, o, r, i) {
4612
+ return u(), h("textarea", R({
4610
4613
  placeholder: e.placeholder,
4611
4614
  name: e.name,
4612
4615
  value: e.value,
4613
4616
  defaultValue: e.defaultValue,
4614
4617
  required: e.required
4615
- }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Gi);
4618
+ }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Qi);
4616
4619
  }
4617
- const Ji = /* @__PURE__ */ S(qi, [["render", _i]]), Qi = {
4620
+ const Xi = /* @__PURE__ */ k(Ji, [["render", Yi]]), Zi = {
4618
4621
  name: "Raw:Img",
4619
4622
  hideFromInsertMenu: !0,
4620
4623
  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",
@@ -4622,7 +4625,7 @@ const Ji = /* @__PURE__ */ S(qi, [["render", _i]]), Qi = {
4622
4625
  name: "image",
4623
4626
  bubble: !0,
4624
4627
  type: "file",
4625
- allowedFileTypes: Ue,
4628
+ allowedFileTypes: Me,
4626
4629
  required: !0
4627
4630
  }, {
4628
4631
  name: "backgroundSize",
@@ -4658,7 +4661,7 @@ const Ji = /* @__PURE__ */ S(qi, [["render", _i]]), Qi = {
4658
4661
  defaultValue: 0.7041
4659
4662
  }],
4660
4663
  noWrap: !0
4661
- }, Yi = y({
4664
+ }, es = y({
4662
4665
  name: "builder-img-component",
4663
4666
  props: [
4664
4667
  "imgSrc",
@@ -4671,7 +4674,7 @@ const Ji = /* @__PURE__ */ S(qi, [["render", _i]]), Qi = {
4671
4674
  "aspectRatio"
4672
4675
  ],
4673
4676
  data() {
4674
- return { isEditing: A };
4677
+ return { isEditing: P };
4675
4678
  },
4676
4679
  computed: {
4677
4680
  srcSetToUse() {
@@ -4688,10 +4691,10 @@ const Ji = /* @__PURE__ */ S(qi, [["render", _i]]), Qi = {
4688
4691
  return delete e.style, e;
4689
4692
  }
4690
4693
  }
4691
- }), Xi = ["alt", "title", "src"];
4692
- function Zi(e, t, n, o, r, i) {
4694
+ }), ts = ["alt", "title", "src"];
4695
+ function ns(e, t, n, o, r, i) {
4693
4696
  var s;
4694
- return u(), h("img", E({
4697
+ return u(), h("img", R({
4695
4698
  loading: "lazy",
4696
4699
  key: e.isEditing() && e.imgSrc || "default-key",
4697
4700
  alt: e.altText,
@@ -4703,9 +4706,9 @@ function Zi(e, t, n, o, r, i) {
4703
4706
  aspectRatio: e.aspectRatio || void 0,
4704
4707
  ...((s = e.attributes) == null ? void 0 : s.style) || {}
4705
4708
  }
4706
- }, e.imgAttrs), null, 16, Xi);
4709
+ }, e.imgAttrs), null, 16, ts);
4707
4710
  }
4708
- const es = /* @__PURE__ */ S(Yi, [["render", Zi]]), ts = {
4711
+ const os = /* @__PURE__ */ k(es, [["render", ns]]), rs = {
4709
4712
  name: "Video",
4710
4713
  canHaveChildren: !0,
4711
4714
  defaultStyles: {
@@ -4716,14 +4719,14 @@ const es = /* @__PURE__ */ S(Yi, [["render", Zi]]), ts = {
4716
4719
  inputs: [{
4717
4720
  name: "video",
4718
4721
  type: "file",
4719
- allowedFileTypes: Mr,
4722
+ allowedFileTypes: Kr,
4720
4723
  bubble: !0,
4721
4724
  defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
4722
4725
  required: !0
4723
4726
  }, {
4724
4727
  name: "posterImage",
4725
4728
  type: "file",
4726
- allowedFileTypes: Ue,
4729
+ allowedFileTypes: Me,
4727
4730
  helperText: "Image to show before the video plays"
4728
4731
  }, {
4729
4732
  name: "autoPlay",
@@ -4789,7 +4792,7 @@ const es = /* @__PURE__ */ S(Yi, [["render", Zi]]), ts = {
4789
4792
  shouldReceiveBuilderProps: {
4790
4793
  builderBlock: !0
4791
4794
  }
4792
- }, ns = y({
4795
+ }, is = y({
4793
4796
  name: "builder-video",
4794
4797
  props: [
4795
4798
  "lazyLoad",
@@ -4862,16 +4865,16 @@ const es = /* @__PURE__ */ S(Yi, [["render", Zi]]), ts = {
4862
4865
  };
4863
4866
  }
4864
4867
  }
4865
- }), os = { style: {
4868
+ }), ss = { style: {
4866
4869
  position: "relative"
4867
- } }, rs = ["preload", "poster"], is = {
4870
+ } }, as = ["preload", "poster"], ls = {
4868
4871
  key: 1,
4869
4872
  style: {
4870
4873
  display: "flex",
4871
4874
  flexDirection: "column",
4872
4875
  alignItems: "stretch"
4873
4876
  }
4874
- }, ss = {
4877
+ }, cs = {
4875
4878
  key: 2,
4876
4879
  style: {
4877
4880
  pointerEvents: "none",
@@ -4885,10 +4888,10 @@ const es = /* @__PURE__ */ S(Yi, [["render", Zi]]), ts = {
4885
4888
  height: "100%"
4886
4889
  }
4887
4890
  };
4888
- function as(e, t, n, o, r, i) {
4891
+ function ds(e, t, n, o, r, i) {
4889
4892
  var s, l, a, d, p, b, c;
4890
- return u(), h("div", os, [
4891
- G("video", E({
4893
+ return u(), h("div", ss, [
4894
+ G("video", R({
4892
4895
  class: "builder-video",
4893
4896
  ref: "videoRef",
4894
4897
  preload: e.lazyLoad ? "none" : e.preload || "metadata",
@@ -4907,7 +4910,7 @@ function as(e, t, n, o, r, i) {
4907
4910
  },
4908
4911
  poster: e.posterImage
4909
4912
  }, e.spreadProps), [
4910
- G("source", E(
4913
+ G("source", R(
4911
4914
  { type: "video/mp4" },
4912
4915
  e.lazyLoad ? {
4913
4916
  "data-src": e.video
@@ -4915,7 +4918,7 @@ function as(e, t, n, o, r, i) {
4915
4918
  src: e.video
4916
4919
  }
4917
4920
  ), null, 16)
4918
- ], 16, rs),
4921
+ ], 16, as),
4919
4922
  e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (u(), h("div", {
4920
4923
  key: 0,
4921
4924
  style: M({
@@ -4924,78 +4927,78 @@ function as(e, t, n, o, r, i) {
4924
4927
  pointerEvents: "none",
4925
4928
  fontSize: "0px"
4926
4929
  })
4927
- }, null, 4)) : T("", !0),
4928
- (p = (d = e.builderBlock) == null ? void 0 : d.children) != null && p.length && e.fitContent ? (u(), h("div", is, [
4929
- O(e.$slots, "default")
4930
- ])) : T("", !0),
4931
- (c = (b = e.builderBlock) == null ? void 0 : b.children) != null && c.length && !e.fitContent ? (u(), h("div", ss, [
4932
- O(e.$slots, "default")
4933
- ])) : T("", !0)
4930
+ }, null, 4)) : v("", !0),
4931
+ (p = (d = e.builderBlock) == null ? void 0 : d.children) != null && p.length && e.fitContent ? (u(), h("div", ls, [
4932
+ B(e.$slots, "default")
4933
+ ])) : v("", !0),
4934
+ (c = (b = e.builderBlock) == null ? void 0 : b.children) != null && c.length && !e.fitContent ? (u(), h("div", cs, [
4935
+ B(e.$slots, "default")
4936
+ ])) : v("", !0)
4934
4937
  ]);
4935
4938
  }
4936
- const ls = /* @__PURE__ */ S(ns, [["render", as]]), cs = () => [{
4937
- component: hi,
4938
- ...di
4939
+ const us = /* @__PURE__ */ k(is, [["render", ds]]), ps = () => [{
4940
+ component: gi,
4941
+ ...mi
4939
4942
  }, {
4940
- component: ki,
4941
- ...fi
4943
+ component: Ii,
4944
+ ...yi
4942
4945
  }, {
4943
- component: Ai,
4944
- ...Ci
4946
+ component: Vi,
4947
+ ...wi
4945
4948
  }, {
4946
- component: Ni,
4947
- ...Pi
4949
+ component: Ui,
4950
+ ...Oi
4948
4951
  }, {
4949
- component: Ki,
4950
- ...Mi
4952
+ component: Gi,
4953
+ ...Ki
4951
4954
  }, {
4952
- component: Fi,
4953
- ...Wi
4955
+ component: ji,
4956
+ ...xi
4954
4957
  }, {
4955
- component: Ji,
4956
- ...zi
4958
+ component: Xi,
4959
+ ..._i
4957
4960
  }, {
4958
- component: es,
4959
- ...Qi
4961
+ component: os,
4962
+ ...Zi
4960
4963
  }, {
4961
- component: ls,
4962
- ...ts
4964
+ component: us,
4965
+ ...rs
4963
4966
  }];
4964
4967
  let se;
4965
- const at = () => se || (se = [{
4966
- component: an,
4967
- ...Ur
4968
- }, {
4969
- component: ir,
4970
- ...Lr
4968
+ const ct = () => se || (se = [{
4969
+ component: dn,
4970
+ ...Mr
4971
4971
  }, {
4972
4972
  component: lr,
4973
- ...Fr
4974
- }, {
4975
- component: br,
4976
4973
  ...Hr
4974
+ }, {
4975
+ component: ur,
4976
+ ...jr
4977
4977
  }, {
4978
4978
  component: Sr,
4979
- ...Gr
4979
+ ...zr
4980
4980
  }, {
4981
- component: Yr,
4982
- ..._r
4981
+ component: Cr,
4982
+ ...Qr
4983
4983
  }, {
4984
- component: Qs,
4985
- ...Xr
4984
+ component: ei,
4985
+ ...Yr
4986
4986
  }, {
4987
- component: ci,
4988
- ...ii
4989
- }, ..._t.includes(R) ? [{
4990
- component: qr,
4991
- ...jr
4987
+ component: ta,
4988
+ ...ti
4989
+ }, {
4990
+ component: pi,
4991
+ ...li
4992
+ }, ...Fe.includes(E) ? [{
4993
+ component: Jr,
4994
+ ...qr
4992
4995
  }] : [], {
4993
- component: ri,
4994
- ...Zr
4996
+ component: ai,
4997
+ ...ni
4995
4998
  }, {
4996
- component: xr,
4997
- ...Vr
4998
- }, ...cs()], se), ds = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
4999
+ component: Fr,
5000
+ ...Wr
5001
+ }, ...ps()], se), ms = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
4999
5002
  function getAndSetVariantId() {
5000
5003
  function setCookie(name, value, days) {
5001
5004
  let expires = '';
@@ -5054,7 +5057,7 @@ const at = () => se || (se = [{
5054
5057
  }).join('');
5055
5058
  styleEl.innerHTML = newStyleStr;
5056
5059
  }
5057
- }`, us = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
5060
+ }`, hs = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
5058
5061
  if (!navigator.cookieEnabled) {
5059
5062
  return;
5060
5063
  }
@@ -5088,37 +5091,37 @@ const at = () => se || (se = [{
5088
5091
  thisScriptEl?.remove();
5089
5092
  }
5090
5093
  return;
5091
- }`, $e = "builderIoAbTest", Ae = "builderIoRenderContent", de = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
5094
+ }`, Ae = "builderIoAbTest", Be = "builderIoRenderContent", fs = ["react", "vue", "svelte", "solid", "qwik"], de = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
5092
5095
  ...t,
5093
5096
  testVariationId: t.id,
5094
5097
  id: e == null ? void 0 : e.id
5095
- })), ps = ({
5098
+ })), bs = ({
5096
5099
  canTrack: e,
5097
5100
  content: t
5098
- }) => !(!(de(t).length > 0) || !e), ms = (e) => e === "react" || e === "reactNative", hs = R === "angular", Fe = ms(R), fs = () => `
5101
+ }) => !(!(de(t).length > 0) || !e), gs = (e) => e === "react" || e === "reactNative", ys = E === "angular", He = gs(E), Zt = () => `
5099
5102
  (function() {
5100
- if (!window.${$e}) {
5101
- window.${$e} = ${ds};
5102
- }
5103
5103
  if (!window.${Ae}) {
5104
- window.${Ae} = ${us};
5105
- }${Fe ? `
5104
+ window.${Ae} = ${ms};
5105
+ }
5106
+ if (!window.${Be}) {
5107
+ window.${Be} = ${hs};
5108
+ }${He ? `
5106
5109
  var thisScriptEl = document.currentScript;
5107
5110
  if (thisScriptEl) { thisScriptEl.remove(); }` : ""}
5108
5111
  })();
5109
- `, bs = (e, t) => `
5110
- window.${$e}(
5111
- "${t}",${JSON.stringify(e)}, ${Fe}, ${hs}
5112
- )`, gs = ({
5112
+ `, Ss = (e, t) => `
5113
+ window.${Ae}(
5114
+ "${t}",${JSON.stringify(e)}, ${He}, ${ys}
5115
+ )`, vs = ({
5113
5116
  contentId: e,
5114
5117
  variationId: t
5115
- }) => `window.${Ae}(
5116
- "${t}", "${e}", ${Fe}
5117
- )`, ys = (e) => JSON.parse(JSON.stringify(e));
5118
- function lt(e) {
5118
+ }) => `window.${Be}(
5119
+ "${t}", "${e}", ${He}
5120
+ )`, ks = (e) => JSON.parse(JSON.stringify(e));
5121
+ function dt(e) {
5119
5122
  return Math.round(e * 1e3) / 1e3;
5120
5123
  }
5121
- const Ss = (e, t, n = !0) => {
5124
+ const Cs = (e, t, n = !0) => {
5122
5125
  if (!(e instanceof HTMLElement))
5123
5126
  return null;
5124
5127
  let o = n ? e : e.parentElement;
@@ -5129,35 +5132,35 @@ const Ss = (e, t, n = !0) => {
5129
5132
  return o;
5130
5133
  } while (o = o.parentElement);
5131
5134
  return null;
5132
- }, vs = (e) => Ss(e, (t) => {
5135
+ }, Ts = (e) => Cs(e, (t) => {
5133
5136
  const n = t.getAttribute("builder-id") || t.id;
5134
5137
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
5135
- }), ct = ({
5138
+ }), ut = ({
5136
5139
  event: e,
5137
5140
  target: t
5138
5141
  }) => {
5139
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = lt(o / n.width), s = lt(r / n.height);
5142
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = dt(o / n.width), s = dt(r / n.height);
5140
5143
  return {
5141
5144
  x: i,
5142
5145
  y: s
5143
5146
  };
5144
- }, ks = (e) => {
5145
- const t = e.target, n = t && vs(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
5147
+ }, Is = (e) => {
5148
+ const t = e.target, n = t && Ts(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
5146
5149
  return {
5147
5150
  targetBuilderElement: o || void 0,
5148
5151
  metadata: {
5149
- targetOffset: t ? ct({
5152
+ targetOffset: t ? ut({
5150
5153
  event: e,
5151
5154
  target: t
5152
5155
  }) : void 0,
5153
- builderTargetOffset: n ? ct({
5156
+ builderTargetOffset: n ? ut({
5154
5157
  event: e,
5155
5158
  target: n
5156
5159
  }) : void 0,
5157
5160
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
5158
5161
  }
5159
5162
  };
5160
- }, Cs = ["svelte", "qwik", "vue"], Ts = () => Cs.includes(R) && (A() || be()), ws = (e) => {
5163
+ }, ws = ["svelte", "qwik", "vue"], Es = () => ws.includes(E) && (P() || be()), Rs = (e) => {
5161
5164
  var i;
5162
5165
  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);
5163
5166
  let r = "";
@@ -5183,15 +5186,15 @@ font-weight: ${s};
5183
5186
  `.trim());
5184
5187
  }
5185
5188
  return r;
5186
- }, Is = ({
5189
+ }, $s = ({
5187
5190
  customFonts: e
5188
5191
  }) => {
5189
5192
  var t;
5190
- return ((t = e == null ? void 0 : e.map((n) => ws(n))) == null ? void 0 : t.join(" ")) || "";
5191
- }, Es = ({
5193
+ return ((t = e == null ? void 0 : e.map((n) => Rs(n))) == null ? void 0 : t.join(" ")) || "";
5194
+ }, Ps = ({
5192
5195
  cssCode: e,
5193
5196
  contentId: t
5194
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Rs = `
5197
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", As = `
5195
5198
  :where(.builder-button) {
5196
5199
  all: unset;
5197
5200
  }
@@ -5208,7 +5211,7 @@ font-weight: ${s};
5208
5211
  text-align: inherit;
5209
5212
  font-family: inherit;
5210
5213
  }
5211
- `, $s = (e) => e ? "" : Rs, As = (e) => `variant-${e}`, Ps = y({
5214
+ `, Bs = (e) => e ? "" : As, Vs = (e) => `variant-${e}`, Os = y({
5212
5215
  name: "enable-editor",
5213
5216
  components: { DynamicDiv: oe },
5214
5217
  props: [
@@ -5240,15 +5243,15 @@ font-weight: ${s};
5240
5243
  httpReqsData: {},
5241
5244
  httpReqsPending: {},
5242
5245
  clicked: !1,
5243
- builderContext: Ce,
5244
- needsElementRefDivForEditing: Ts,
5245
- getWrapperClassName: As
5246
+ builderContext: Te,
5247
+ needsElementRefDivForEditing: Es,
5248
+ getWrapperClassName: Vs
5246
5249
  };
5247
5250
  },
5248
5251
  provide() {
5249
5252
  const e = this;
5250
5253
  return {
5251
- [Ce.key]: e.builderContextSignal
5254
+ [Te.key]: e.builderContextSignal
5252
5255
  };
5253
5256
  },
5254
5257
  created() {
@@ -5256,8 +5259,8 @@ font-weight: ${s};
5256
5259
  },
5257
5260
  mounted() {
5258
5261
  var e, t, n;
5259
- if (w()) {
5260
- A() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
5262
+ if (I()) {
5263
+ P() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
5261
5264
  new CustomEvent("initeditingbldr")
5262
5265
  );
5263
5266
  const o = this.builderContextSignal.content && _(this.canTrack), r = fe({
@@ -5275,7 +5278,7 @@ font-weight: ${s};
5275
5278
  variationId: r !== s ? r : void 0
5276
5279
  });
5277
5280
  }
5278
- be() && !A() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
5281
+ be() && !P() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
5279
5282
  new CustomEvent("initpreviewingbldr")
5280
5283
  );
5281
5284
  }
@@ -5317,7 +5320,7 @@ font-weight: ${s};
5317
5320
  }
5318
5321
  },
5319
5322
  unmounted() {
5320
- w() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
5323
+ I() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
5321
5324
  "builder:component:stateChangeListenerActivated",
5322
5325
  this.emitStateUpdate
5323
5326
  ));
@@ -5377,7 +5380,7 @@ font-weight: ${s};
5377
5380
  this.builderContextSignal.content = n;
5378
5381
  },
5379
5382
  processMessage(e) {
5380
- return Dt({
5383
+ return xt({
5381
5384
  model: this.model,
5382
5385
  trustedHosts: this.trustedHosts,
5383
5386
  callbacks: {
@@ -5391,7 +5394,7 @@ font-weight: ${s};
5391
5394
  });
5392
5395
  },
5393
5396
  animation: (t) => {
5394
- jt(t);
5397
+ zt(t);
5395
5398
  },
5396
5399
  contentUpdate: (t, n) => {
5397
5400
  this.mergeNewContent(t, n);
@@ -5413,7 +5416,7 @@ font-weight: ${s};
5413
5416
  contentId: r,
5414
5417
  apiKey: this.apiKey,
5415
5418
  variationId: o !== r ? o : void 0,
5416
- ...ks(e),
5419
+ ...Is(e),
5417
5420
  unique: !this.clicked
5418
5421
  });
5419
5422
  }
@@ -5427,7 +5430,7 @@ font-weight: ${s};
5427
5430
  if (!r)
5428
5431
  return;
5429
5432
  const i = typeof r == "object" && r["@type"] === "@builder.io/core:Request";
5430
- if (this.httpReqsPending[o] || this.httpReqsData[o] && !A())
5433
+ if (this.httpReqsPending[o] || this.httpReqsData[o] && !P())
5431
5434
  return;
5432
5435
  const s = i ? r.request.url : r;
5433
5436
  this.httpReqsPending[o] = !0;
@@ -5451,7 +5454,7 @@ font-weight: ${s};
5451
5454
  url: l,
5452
5455
  method: "GET"
5453
5456
  };
5454
- Ve(JSON.stringify(a));
5457
+ Ne(JSON.stringify(a));
5455
5458
  const d = {
5456
5459
  method: a.method,
5457
5460
  headers: a.headers,
@@ -5474,12 +5477,12 @@ font-weight: ${s};
5474
5477
  );
5475
5478
  },
5476
5479
  emitStateUpdate() {
5477
- A() && window.dispatchEvent(
5480
+ P() && window.dispatchEvent(
5478
5481
  new CustomEvent(
5479
5482
  "builder:component:stateChange",
5480
5483
  {
5481
5484
  detail: {
5482
- state: ys(this.builderContextSignal.rootState),
5485
+ state: ks(this.builderContextSignal.rootState),
5483
5486
  ref: {
5484
5487
  name: this.model
5485
5488
  }
@@ -5489,7 +5492,7 @@ font-weight: ${s};
5489
5492
  );
5490
5493
  },
5491
5494
  elementRef_onIniteditingbldr(e) {
5492
- window.addEventListener("message", this.processMessage), Wt({
5495
+ window.addEventListener("message", this.processMessage), Ut({
5493
5496
  ...this.locale ? {
5494
5497
  locale: this.locale
5495
5498
  } : {},
@@ -5509,7 +5512,7 @@ font-weight: ${s};
5509
5512
  ).forEach((t) => {
5510
5513
  var n, o;
5511
5514
  if (!((n = t.models) != null && n.length) || t.models.includes(this.model)) {
5512
- const r = Xn(t);
5515
+ const r = to(t);
5513
5516
  (o = window.parent) == null || o.postMessage(r, "*");
5514
5517
  }
5515
5518
  }), window.addEventListener(
@@ -5522,7 +5525,7 @@ font-weight: ${s};
5522
5525
  const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
5523
5526
  `builder.overrides.${n}`
5524
5527
  ), r = t.get("apiKey") || t.get("builder.space");
5525
- (n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && De({
5528
+ (n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && xe({
5526
5529
  model: this.model,
5527
5530
  apiKey: this.apiKey,
5528
5531
  apiVersion: this.builderContextSignal.apiVersion,
@@ -5537,9 +5540,9 @@ font-weight: ${s};
5537
5540
  }
5538
5541
  }
5539
5542
  });
5540
- function Bs(e, t, n, o, r, i) {
5543
+ function Ns(e, t, n, o, r, i) {
5541
5544
  var s, l, a;
5542
- return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (u(), v(Z(e.ContentWrapper), E({
5545
+ return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (u(), S(Z(e.ContentWrapper), R({
5543
5546
  key: 0,
5544
5547
  ref: "elementRef",
5545
5548
  onClick: (d) => e.onClick(d),
@@ -5553,39 +5556,39 @@ function Bs(e, t, n, o, r, i) {
5553
5556
  onInitpreviewingbldr: (d) => e.elementRef_onInitpreviewingbldr(d)
5554
5557
  }, { ...e.showContentProps, ...e.contentWrapperProps }), {
5555
5558
  default: D(() => [
5556
- O(e.$slots, "default")
5559
+ B(e.$slots, "default")
5557
5560
  ]),
5558
5561
  _: 3
5559
- }, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : T("", !0);
5562
+ }, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : v("", !0);
5560
5563
  }
5561
- const Vs = /* @__PURE__ */ S(Ps, [["render", Bs]]), Os = y({
5564
+ const Ws = /* @__PURE__ */ k(Os, [["render", Ns]]), Ds = y({
5562
5565
  name: "content-styles",
5563
5566
  components: { InlinedStyles: ge },
5564
5567
  props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
5565
5568
  data() {
5566
5569
  return {
5567
5570
  injectedStyles: `
5568
- ${Es({
5571
+ ${Ps({
5569
5572
  cssCode: this.cssCode,
5570
5573
  contentId: this.contentId
5571
5574
  })}
5572
- ${Is({
5575
+ ${$s({
5573
5576
  customFonts: this.customFonts
5574
5577
  })}
5575
- ${$s(this.isNestedRender)}
5578
+ ${Bs(this.isNestedRender)}
5576
5579
  `.trim()
5577
5580
  };
5578
5581
  }
5579
5582
  });
5580
- function Ns(e, t, n, o, r, i) {
5581
- const s = k("InlinedStyles");
5582
- return u(), v(s, {
5583
+ function Us(e, t, n, o, r, i) {
5584
+ const s = C("InlinedStyles");
5585
+ return u(), S(s, {
5583
5586
  id: "builderio-content",
5584
5587
  styles: e.injectedStyles,
5585
5588
  nonce: e.nonce
5586
5589
  }, null, 8, ["styles", "nonce"]);
5587
5590
  }
5588
- const Ws = /* @__PURE__ */ S(Os, [["render", Ns]]), me = (e, t = /* @__PURE__ */ new WeakMap()) => {
5591
+ const xs = /* @__PURE__ */ k(Ds, [["render", Us]]), me = (e, t = /* @__PURE__ */ new WeakMap()) => {
5589
5592
  if (e === null || typeof e != "object")
5590
5593
  return e;
5591
5594
  if (t.has(e))
@@ -5612,31 +5615,31 @@ const Ws = /* @__PURE__ */ S(Os, [["render", Ns]]), me = (e, t = /* @__PURE__ */
5612
5615
  }) : o[r] = i;
5613
5616
  }
5614
5617
  return o;
5615
- }, dt = /* @__PURE__ */ new WeakMap(), ut = /* @__PURE__ */ new WeakMap(), Yt = (e) => {
5616
- const t = dt.get(e);
5618
+ }, pt = /* @__PURE__ */ new WeakMap(), mt = /* @__PURE__ */ new WeakMap(), en = (e) => {
5619
+ const t = pt.get(e);
5617
5620
  if (t)
5618
5621
  return t;
5619
5622
  const {
5620
5623
  component: n,
5621
5624
  ...o
5622
- } = e, r = Oe(o);
5623
- return dt.set(e, r), r;
5624
- }, Ds = (e, t) => {
5625
+ } = e, r = We(o);
5626
+ return pt.set(e, r), r;
5627
+ }, Ls = (e, t) => {
5625
5628
  const n = {};
5626
5629
  for (const o of e) {
5627
- let r = ut.get(o);
5630
+ let r = mt.get(o);
5628
5631
  r || (r = {
5629
5632
  component: t(o.component),
5630
- ...Yt(o)
5631
- }, ut.set(o, r)), n[o.name] = r;
5633
+ ...en(o)
5634
+ }, mt.set(o, r)), n[o.name] = r;
5632
5635
  }
5633
5636
  return n;
5634
- }, xs = (e) => {
5637
+ }, Fs = (e) => {
5635
5638
  const t = {};
5636
5639
  for (const n of e)
5637
- t[n.name] = Yt(n);
5640
+ t[n.name] = en(n);
5638
5641
  return t;
5639
- }, Us = ({
5642
+ }, Ms = ({
5640
5643
  content: e,
5641
5644
  data: t,
5642
5645
  locale: n
@@ -5653,7 +5656,7 @@ const Ws = /* @__PURE__ */ S(Os, [["render", Ns]]), me = (e, t = /* @__PURE__ */
5653
5656
  locale: n
5654
5657
  } : {}
5655
5658
  };
5656
- }, Ls = ({
5659
+ }, Hs = ({
5657
5660
  content: e,
5658
5661
  data: t
5659
5662
  }) => e ? {
@@ -5663,12 +5666,12 @@ const Ws = /* @__PURE__ */ S(Os, [["render", Ns]]), me = (e, t = /* @__PURE__ */
5663
5666
  ...t
5664
5667
  },
5665
5668
  meta: e == null ? void 0 : e.meta
5666
- } : void 0, Fs = Zt, Ms = y({
5669
+ } : void 0, js = nn, Ks = y({
5667
5670
  name: "content-component",
5668
5671
  components: {
5669
- EnableEditor: Vs,
5670
- InlinedScript: Le,
5671
- ContentStyles: Ws,
5672
+ EnableEditor: Ws,
5673
+ InlinedScript: ye,
5674
+ ContentStyles: xs,
5672
5675
  Blocks: z,
5673
5676
  DynamicDiv: oe
5674
5677
  },
@@ -5699,23 +5702,23 @@ const Ws = /* @__PURE__ */ S(Os, [["render", Ns]]), me = (e, t = /* @__PURE__ */
5699
5702
  data() {
5700
5703
  var e, t;
5701
5704
  return {
5702
- scriptStr: gs({
5705
+ scriptStr: vs({
5703
5706
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
5704
5707
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
5705
5708
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
5706
5709
  contentId: (t = this.content) == null ? void 0 : t.id
5707
5710
  }),
5708
- registeredComponents: Ds(
5709
- [...at(), ...this.customComponents || []],
5710
- (n) => Fs(n)
5711
+ registeredComponents: Ls(
5712
+ [...ct(), ...this.customComponents || []],
5713
+ (n) => js(n)
5711
5714
  ),
5712
5715
  builderContextSignal: {
5713
- content: Ls({
5716
+ content: Hs({
5714
5717
  content: this.content,
5715
5718
  data: this.data
5716
5719
  }),
5717
5720
  localState: void 0,
5718
- rootState: Us({
5721
+ rootState: Ms({
5719
5722
  content: this.content,
5720
5723
  data: this.data,
5721
5724
  locale: this.locale
@@ -5725,8 +5728,8 @@ const Ws = /* @__PURE__ */ S(Os, [["render", Ns]]), me = (e, t = /* @__PURE__ */
5725
5728
  canTrack: this.canTrack,
5726
5729
  apiKey: this.apiKey,
5727
5730
  apiVersion: this.apiVersion,
5728
- componentInfos: xs([
5729
- ...at(),
5731
+ componentInfos: Fs([
5732
+ ...ct(),
5730
5733
  ...this.customComponents || []
5731
5734
  ]),
5732
5735
  inheritedStyles: {},
@@ -5735,20 +5738,20 @@ const Ws = /* @__PURE__ */ S(Os, [["render", Ns]]), me = (e, t = /* @__PURE__ */
5735
5738
  nonce: this.nonce || "",
5736
5739
  model: this.model
5737
5740
  },
5738
- TARGET: R
5741
+ TARGET: E
5739
5742
  };
5740
5743
  },
5741
5744
  provide() {
5742
5745
  const e = this;
5743
5746
  return {
5744
- [mt.key]: {
5747
+ [ft.key]: {
5745
5748
  registeredComponents: e.registeredComponents
5746
5749
  }
5747
5750
  };
5748
5751
  },
5749
5752
  created() {
5750
5753
  var t, n;
5751
- this.apiKey || B.error(
5754
+ this.apiKey || V.error(
5752
5755
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
5753
5756
  );
5754
5757
  const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
@@ -5785,9 +5788,9 @@ const Ws = /* @__PURE__ */ S(Os, [["render", Ns]]), me = (e, t = /* @__PURE__ */
5785
5788
  }
5786
5789
  }
5787
5790
  });
5788
- function Hs(e, t, n, o, r, i) {
5789
- const s = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), d = k("EnableEditor");
5790
- return u(), v(d, E({
5791
+ function zs(e, t, n, o, r, i) {
5792
+ const s = C("InlinedScript"), l = C("ContentStyles"), a = C("Blocks"), d = C("EnableEditor");
5793
+ return u(), S(d, R({
5791
5794
  apiHost: e.apiHost,
5792
5795
  nonce: e.nonce,
5793
5796
  content: e.content,
@@ -5807,24 +5810,24 @@ function Hs(e, t, n, o, r, i) {
5807
5810
  isNestedRender: e.isNestedRender
5808
5811
  }, {}), {
5809
5812
  default: D(() => {
5810
- var p, b, c, m, f, g, P;
5813
+ var p, b, c, m, f, g, A;
5811
5814
  return [
5812
- e.isSsrAbTest ? (u(), v(s, {
5815
+ e.isSsrAbTest ? (u(), S(s, {
5813
5816
  key: 0,
5814
5817
  id: "builderio-variant-visibility",
5815
5818
  scriptStr: e.scriptStr,
5816
5819
  nonce: e.nonce || ""
5817
- }, null, 8, ["scriptStr", "nonce"])) : T("", !0),
5818
- e.TARGET !== "reactNative" ? (u(), v(l, {
5820
+ }, null, 8, ["scriptStr", "nonce"])) : v("", !0),
5821
+ e.TARGET !== "reactNative" ? (u(), S(l, {
5819
5822
  key: 1,
5820
5823
  nonce: e.nonce || "",
5821
5824
  isNestedRender: e.isNestedRender,
5822
5825
  contentId: (p = e.builderContextSignal.content) == null ? void 0 : p.id,
5823
5826
  cssCode: (c = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : c.cssCode,
5824
5827
  customFonts: (f = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : f.customFonts
5825
- }, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : T("", !0),
5828
+ }, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : v("", !0),
5826
5829
  $(a, {
5827
- blocks: (P = (g = e.builderContextSignal.content) == null ? void 0 : g.data) == null ? void 0 : P.blocks,
5830
+ blocks: (A = (g = e.builderContextSignal.content) == null ? void 0 : g.data) == null ? void 0 : A.blocks,
5828
5831
  context: e.builderContextSignal,
5829
5832
  registeredComponents: e.registeredComponents,
5830
5833
  linkComponent: e.linkComponent
@@ -5834,16 +5837,17 @@ function Hs(e, t, n, o, r, i) {
5834
5837
  _: 1
5835
5838
  }, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "enrichOptions", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
5836
5839
  }
5837
- const js = /* @__PURE__ */ S(Ms, [["render", Hs]]), Ks = y({
5840
+ const qs = /* @__PURE__ */ k(Ks, [["render", zs]]), Gs = y({
5838
5841
  name: "content-variants",
5839
5842
  components: {
5840
- InlinedScript: Le,
5843
+ InlinedScript: ye,
5841
5844
  InlinedStyles: ge,
5842
- ContentComponent: js
5845
+ ContentComponent: qs
5843
5846
  },
5844
5847
  props: [
5845
5848
  "canTrack",
5846
5849
  "content",
5850
+ "isContentInlinedInParent",
5847
5851
  "nonce",
5848
5852
  "apiHost",
5849
5853
  "isNestedRender",
@@ -5865,24 +5869,27 @@ const js = /* @__PURE__ */ S(Ms, [["render", Hs]]), Ks = y({
5865
5869
  ],
5866
5870
  data() {
5867
5871
  return {
5868
- shouldRenderVariants: ps({
5872
+ shouldRenderVariants: bs({
5869
5873
  canTrack: _(this.canTrack),
5870
5874
  content: this.content
5871
5875
  }),
5872
- shouldEmitPersonalizationFns: $r(this.content),
5873
- SDKS_SUPPORTING_PERSONALIZATION: _t,
5874
- getInitPersonalizationVariantsFnsScriptString: Ar,
5875
- TARGET: R,
5876
- getInitVariantsFnsScriptString: fs,
5876
+ shouldEmitPersonalizationFns: !this.isContentInlinedInParent && Br(this.content),
5877
+ SDKS_SUPPORTING_PERSONALIZATION: Fe,
5878
+ getInitPersonalizationVariantsFnsScriptString: Yt,
5879
+ TARGET: E,
5880
+ getInitVariantsFnsScriptString: Zt,
5877
5881
  getVariants: de
5878
5882
  };
5879
5883
  },
5884
+ inject: {
5885
+ scriptsContext: Pe.key
5886
+ },
5880
5887
  mounted() {
5881
5888
  },
5882
5889
  computed: {
5883
5890
  updateCookieAndStylesScriptStr() {
5884
5891
  var e;
5885
- return bs(
5892
+ return Ss(
5886
5893
  de(this.content).map((t) => ({
5887
5894
  id: t.testVariationId,
5888
5895
  testRatio: t.testRatio
@@ -5898,30 +5905,32 @@ const js = /* @__PURE__ */ S(Ms, [["render", Hs]]), Ks = y({
5898
5905
  return this.shouldRenderVariants ? {
5899
5906
  ...this.content,
5900
5907
  testVariationId: (e = this.content) == null ? void 0 : e.id
5901
- } : lo({
5908
+ } : po({
5902
5909
  item: this.content,
5903
5910
  canTrack: _(this.canTrack)
5904
5911
  });
5905
5912
  }
5906
5913
  }
5907
5914
  });
5908
- function zs(e, t, n, o, r, i) {
5909
- const s = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
5910
- return u(), h(I, null, [
5911
- e.shouldEmitPersonalizationFns ? (u(), h(I, { key: 0 }, [
5912
- e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (u(), v(s, {
5915
+ function _s(e, t, n, o, r, i) {
5916
+ var d, p;
5917
+ const s = C("InlinedScript"), l = C("InlinedStyles"), a = C("ContentComponent");
5918
+ return u(), h(w, null, [
5919
+ e.shouldEmitPersonalizationFns && !((d = e.scriptsContext) != null && d.scriptsEmitted) ? (u(), h(w, { key: 0 }, [
5920
+ e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (u(), S(s, {
5913
5921
  key: 0,
5914
5922
  id: "builderio-init-personalization-variants-fns",
5915
5923
  nonce: e.nonce || "",
5916
5924
  scriptStr: e.getInitPersonalizationVariantsFnsScriptString()
5917
- }, null, 8, ["nonce", "scriptStr"])) : T("", !0)
5918
- ], 64)) : T("", !0),
5919
- e.shouldRenderVariants ? (u(), h(I, { key: 1 }, [
5920
- $(s, {
5925
+ }, null, 8, ["nonce", "scriptStr"])) : v("", !0)
5926
+ ], 64)) : v("", !0),
5927
+ e.shouldRenderVariants ? (u(), h(w, { key: 1 }, [
5928
+ (p = e.scriptsContext) != null && p.scriptsEmitted ? v("", !0) : (u(), S(s, {
5929
+ key: 0,
5921
5930
  id: "builderio-init-variants-fns",
5922
5931
  scriptStr: e.getInitVariantsFnsScriptString(),
5923
5932
  nonce: e.nonce || ""
5924
- }, null, 8, ["scriptStr", "nonce"]),
5933
+ }, null, 8, ["scriptStr", "nonce"])),
5925
5934
  $(l, {
5926
5935
  id: "builderio-variants",
5927
5936
  styles: e.hideVariantsStyleString,
@@ -5932,12 +5941,12 @@ function zs(e, t, n, o, r, i) {
5932
5941
  scriptStr: e.updateCookieAndStylesScriptStr,
5933
5942
  nonce: e.nonce || ""
5934
5943
  }, null, 8, ["scriptStr", "nonce"]),
5935
- (u(!0), h(I, null, L(e.getVariants(e.content), (d, p) => (u(), v(a, E({
5936
- key: d.testVariationId,
5944
+ (u(!0), h(w, null, L(e.getVariants(e.content), (b, c) => (u(), S(a, R({
5945
+ key: b.testVariationId,
5937
5946
  apiHost: e.apiHost,
5938
5947
  isNestedRender: e.isNestedRender,
5939
5948
  nonce: e.nonce,
5940
- content: d,
5949
+ content: b,
5941
5950
  showContent: !1,
5942
5951
  model: e.model,
5943
5952
  data: e.data,
@@ -5957,8 +5966,8 @@ function zs(e, t, n, o, r, i) {
5957
5966
  contentWrapperProps: e.contentWrapperProps,
5958
5967
  trustedHosts: e.trustedHosts
5959
5968
  }, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "enrichOptions", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
5960
- ], 64)) : T("", !0),
5961
- $(a, E({
5969
+ ], 64)) : v("", !0),
5970
+ $(a, R({
5962
5971
  apiHost: e.apiHost,
5963
5972
  nonce: e.nonce,
5964
5973
  isNestedRender: e.isNestedRender,
@@ -5986,13 +5995,16 @@ function zs(e, t, n, o, r, i) {
5986
5995
  }), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "enrichOptions", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
5987
5996
  ], 64);
5988
5997
  }
5989
- const qs = /* @__PURE__ */ S(Ks, [["render", zs]]), Gs = async ({
5998
+ const Js = /* @__PURE__ */ k(Gs, [["render", _s]]), Qs = (e) => {
5999
+ const t = e.startsWith("component.") ? e.slice(10) : e;
6000
+ return t === "options.symbol" || t === "options.symbol.content" || t.startsWith("options.symbol.content.");
6001
+ }, Ys = (e, t) => !!(e != null && e.content) && !Object.keys(t || {}).some(Qs), Xs = async ({
5990
6002
  builderContextValue: e,
5991
6003
  symbol: t
5992
6004
  }) => {
5993
6005
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
5994
6006
  (e != null && e.apiKey))
5995
- return De({
6007
+ return xe({
5996
6008
  model: t.model,
5997
6009
  apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
5998
6010
  apiVersion: e.apiVersion,
@@ -6002,11 +6014,11 @@ const qs = /* @__PURE__ */ S(Ks, [["render", zs]]), Gs = async ({
6002
6014
  }
6003
6015
  }
6004
6016
  }).catch((n) => {
6005
- B.error("Could not fetch symbol content: ", n);
6017
+ V.error("Could not fetch symbol content: ", n);
6006
6018
  });
6007
- }, _s = y({
6019
+ }, Zs = y({
6008
6020
  name: "builder-symbol",
6009
- components: { ContentVariants: qs, DynamicDiv: oe },
6021
+ components: { ContentVariants: Js, DynamicDiv: oe },
6010
6022
  props: [
6011
6023
  "symbol",
6012
6024
  "builderComponents",
@@ -6021,7 +6033,8 @@ const qs = /* @__PURE__ */ S(Ks, [["render", zs]]), Gs = async ({
6021
6033
  return {
6022
6034
  contentToUse: (e = this.symbol) == null ? void 0 : e.content,
6023
6035
  symbolEntry: (t = this.symbol) == null ? void 0 : t.entry,
6024
- filterAttrs: N
6036
+ filterAttrs: N,
6037
+ isSymbolContentInlinedInParent: Ys
6025
6038
  };
6026
6039
  },
6027
6040
  mounted() {
@@ -6063,7 +6076,7 @@ const qs = /* @__PURE__ */ S(Ks, [["render", zs]]), Gs = async ({
6063
6076
  methods: {
6064
6077
  setContent() {
6065
6078
  var e;
6066
- this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || Gs({
6079
+ this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || Xs({
6067
6080
  symbol: this.symbol,
6068
6081
  builderContextValue: this.builderContext
6069
6082
  }).then((t) => {
@@ -6073,76 +6086,123 @@ const qs = /* @__PURE__ */ S(Ks, [["render", zs]]), Gs = async ({
6073
6086
  }
6074
6087
  }
6075
6088
  });
6076
- function Js(e, t, n, o, r, i) {
6077
- var l, a, d, p, b, c, m;
6078
- const s = k("ContentVariants");
6079
- return u(), h("div", E({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
6089
+ function ea(e, t, n, o, r, i) {
6090
+ var l, a, d, p, b, c, m, f;
6091
+ const s = C("ContentVariants");
6092
+ return u(), h("div", R({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
6080
6093
  $(s, {
6081
6094
  nonce: e.builderContext.nonce,
6082
6095
  isNestedRender: !0,
6096
+ isContentInlinedInParent: e.isSymbolContentInlinedInParent(e.symbol, (l = e.builderBlock) == null ? void 0 : l.bindings),
6083
6097
  apiVersion: e.builderContext.apiVersion,
6084
- apiKey: (l = e.symbol) != null && l.global && ((a = e.symbol) != null && a.ownerId) ? e.symbol.ownerId : e.builderContext.apiKey,
6098
+ apiKey: (a = e.symbol) != null && a.global && ((d = e.symbol) != null && d.ownerId) ? e.symbol.ownerId : e.builderContext.apiKey,
6085
6099
  context: {
6086
6100
  ...e.builderContext.context,
6087
- symbolId: (d = e.builderBlock) == null ? void 0 : d.id
6101
+ symbolId: (p = e.builderBlock) == null ? void 0 : p.id
6088
6102
  },
6089
6103
  customComponents: e.customComponents,
6090
6104
  data: {
6091
- ...(p = e.symbol) == null ? void 0 : p.data,
6105
+ ...(b = e.symbol) == null ? void 0 : b.data,
6092
6106
  ...e.builderContext.localState,
6093
- ...(c = (b = e.contentToUse) == null ? void 0 : b.data) == null ? void 0 : c.state
6107
+ ...(m = (c = e.contentToUse) == null ? void 0 : c.data) == null ? void 0 : m.state
6094
6108
  },
6095
6109
  canTrack: e.builderContext.canTrack,
6096
- model: ((m = e.symbol) == null ? void 0 : m.model) ?? "",
6110
+ model: ((f = e.symbol) == null ? void 0 : f.model) ?? "",
6097
6111
  content: e.contentToUse,
6098
6112
  linkComponent: e.builderLinkComponent,
6099
6113
  blocksWrapper: e.blocksWrapper,
6100
6114
  contentWrapper: e.contentWrapper
6101
- }, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
6115
+ }, null, 8, ["nonce", "isContentInlinedInParent", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
6102
6116
  ], 16);
6103
6117
  }
6104
- const Qs = /* @__PURE__ */ S(_s, [["render", Js]]);
6118
+ const ta = /* @__PURE__ */ k(Zs, [["render", ea]]), na = y({
6119
+ name: "builder-scripts",
6120
+ components: { InlinedScript: ye },
6121
+ props: ["nonce"],
6122
+ data() {
6123
+ return {
6124
+ isSupported: fs.includes(E),
6125
+ shouldRenderAbTestFns: E !== "react",
6126
+ getInitPersonalizationVariantsFnsScriptString: Yt,
6127
+ SDKS_SUPPORTING_PERSONALIZATION: Fe,
6128
+ TARGET: E,
6129
+ getInitVariantsFnsScriptString: Zt
6130
+ };
6131
+ },
6132
+ provide() {
6133
+ const e = this;
6134
+ return {
6135
+ [Pe.key]: { scriptsEmitted: e.isSupported }
6136
+ };
6137
+ },
6138
+ inject: {
6139
+ parentScriptsContext: Pe.key
6140
+ }
6141
+ });
6142
+ function oa(e, t, n, o, r, i) {
6143
+ var l;
6144
+ const s = C("InlinedScript");
6145
+ return u(), h(w, null, [
6146
+ e.isSupported && !((l = e.parentScriptsContext) != null && l.scriptsEmitted) ? (u(), h(w, { key: 0 }, [
6147
+ e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (u(), S(s, {
6148
+ key: 0,
6149
+ id: "builderio-init-personalization-variants-fns",
6150
+ nonce: e.nonce || "",
6151
+ scriptStr: e.getInitPersonalizationVariantsFnsScriptString()
6152
+ }, null, 8, ["nonce", "scriptStr"])) : v("", !0),
6153
+ e.shouldRenderAbTestFns ? (u(), S(s, {
6154
+ key: 1,
6155
+ id: "builderio-init-variants-fns",
6156
+ nonce: e.nonce || "",
6157
+ scriptStr: e.getInitVariantsFnsScriptString()
6158
+ }, null, 8, ["nonce", "scriptStr"])) : v("", !0)
6159
+ ], 64)) : v("", !0),
6160
+ B(e.$slots, "default")
6161
+ ], 64);
6162
+ }
6163
+ const Sa = /* @__PURE__ */ k(na, [["render", oa]]);
6105
6164
  export {
6106
- ea as A,
6107
- Gt as B,
6108
- ir as C,
6109
- ra as D,
6110
- sa as E,
6111
- lr as F,
6112
- wo as G,
6113
- Io as H,
6114
- br as I,
6115
- De as J,
6116
- Zs as K,
6117
- da as L,
6118
- Sr as S,
6119
- R as T,
6120
- ls as V,
6121
- S as _,
6165
+ Wt as A,
6166
+ Jt as B,
6167
+ lr as C,
6168
+ aa as D,
6169
+ ua as E,
6170
+ ur as F,
6171
+ ma as G,
6172
+ Ro as H,
6173
+ Sr as I,
6174
+ $o as J,
6175
+ xe as K,
6176
+ sa as L,
6177
+ ga as M,
6178
+ Cr as S,
6179
+ E as T,
6180
+ us as V,
6181
+ k as _,
6122
6182
  H as a,
6123
- Ce as b,
6183
+ Te as b,
6124
6184
  ge as c,
6125
6185
  j as d,
6126
6186
  ne as e,
6127
- aa as f,
6128
- ca as g,
6129
- tr as h,
6130
- A as i,
6131
- la as j,
6132
- ua as k,
6133
- xe as l,
6134
- Yn as m,
6135
- an as n,
6136
- Qs as o,
6137
- ci as p,
6187
+ ha as f,
6188
+ ba as g,
6189
+ rr as h,
6190
+ P as i,
6191
+ fa as j,
6192
+ ya as k,
6193
+ Le as l,
6194
+ eo as m,
6195
+ dn as n,
6196
+ ta as o,
6197
+ pi as p,
6138
6198
  z as q,
6139
- qs as r,
6140
- ia as s,
6141
- be as t,
6142
- Xn as u,
6143
- ta as v,
6144
- Fs as w,
6145
- na as x,
6146
- oa as y,
6147
- Ot as z
6199
+ Sa as r,
6200
+ Js as s,
6201
+ pa as t,
6202
+ be as u,
6203
+ to as v,
6204
+ js as w,
6205
+ la as x,
6206
+ ca as y,
6207
+ da as z
6148
6208
  };