@builder.io/sdk-vue 1.0.4 → 1.0.8

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 (64) hide show
  1. package/lib/browser/{block-styles-ukxa2-Zu.cjs → block-styles-AAxOlclQ.cjs} +1 -1
  2. package/lib/browser/{block-styles-j9np3P-r.js → block-styles-gyTa8_cM.js} +1 -1
  3. package/lib/browser/{block-wrapper-FxyYLXqG.js → block-wrapper-Bq8tasBV.js} +3 -3
  4. package/lib/browser/{block-wrapper-_qLR80a4.cjs → block-wrapper-ZzTouD9Y.cjs} +1 -1
  5. package/lib/browser/{component-ref-ef4o2sj2.cjs → component-ref-WqZNJLMG.cjs} +1 -1
  6. package/lib/browser/{component-ref-EbQVULbj.js → component-ref-nCjiM4wU.js} +2 -2
  7. package/lib/browser/constants/sdk-version.d.ts +1 -1
  8. package/lib/browser/functions/get-builder-search-params/index.d.ts +1 -4
  9. package/lib/browser/functions/is-editing.d.ts +2 -1
  10. package/lib/browser/functions/is-previewing.d.ts +2 -1
  11. package/lib/browser/{get-block-properties-o2be_Wxk.cjs → get-block-properties-NNYz1VUS.cjs} +1 -1
  12. package/lib/browser/{get-block-properties-Rh4X_YUt.js → get-block-properties-scPeiCGw.js} +1 -1
  13. package/lib/browser/helpers/search/search.d.ts +5 -0
  14. package/lib/browser/{index-e70TYoUr.cjs → index-CE_7JN_L.cjs} +22 -22
  15. package/lib/browser/{index-GygQh2Rk.js → index-e7JzGvNr.js} +418 -414
  16. package/lib/browser/index.cjs +1 -1
  17. package/lib/browser/index.d.cts +5 -2
  18. package/lib/browser/index.d.mts +5 -2
  19. package/lib/browser/index.js +1 -1
  20. package/lib/browser/{repeated-block-RuvksQ92.cjs → repeated-block-1QyTc_Ge.cjs} +1 -1
  21. package/lib/browser/{repeated-block-EjD4PExV.js → repeated-block-Lae75ASu.js} +2 -2
  22. package/lib/edge/{block-styles--O0l0Z9P.cjs → block-styles-Y_SDBrFL.cjs} +1 -1
  23. package/lib/{node/block-styles-r9wURB-0.js → edge/block-styles-t6BdrZRo.js} +1 -1
  24. package/lib/edge/{block-wrapper-gb29rdP4.js → block-wrapper--RDdE8Xa.js} +3 -3
  25. package/lib/{node/block-wrapper-B_V9SIlS.cjs → edge/block-wrapper-sT4llKTw.cjs} +1 -1
  26. package/lib/{node/component-ref-YacFSt-X.js → edge/component-ref-TDfuL1PH.js} +2 -2
  27. package/lib/{node/component-ref-ap55YBte.cjs → edge/component-ref-ZK5Q5tpH.cjs} +1 -1
  28. package/lib/edge/constants/sdk-version.d.ts +1 -1
  29. package/lib/edge/functions/get-builder-search-params/index.d.ts +1 -4
  30. package/lib/edge/functions/is-editing.d.ts +2 -1
  31. package/lib/edge/functions/is-previewing.d.ts +2 -1
  32. package/lib/{node/get-block-properties-qrTxzWJ0.js → edge/get-block-properties--oDxym9c.js} +1 -1
  33. package/lib/edge/{get-block-properties-0gL7ciO6.cjs → get-block-properties-vTv831p0.cjs} +1 -1
  34. package/lib/edge/helpers/search/search.d.ts +5 -0
  35. package/lib/edge/{index-0_TXnqeC.cjs → index-2hB96A6m.cjs} +30 -30
  36. package/lib/edge/{index-d-VaM23f.js → index-HfAkZYqK.js} +550 -546
  37. package/lib/edge/index.cjs +1 -1
  38. package/lib/edge/index.d.cts +5 -2
  39. package/lib/edge/index.d.mts +5 -2
  40. package/lib/edge/index.js +1 -1
  41. package/lib/{node/repeated-block-QEaWmQ3H.js → edge/repeated-block-QlWFWzl3.js} +2 -2
  42. package/lib/edge/{repeated-block-tJccBEG3.cjs → repeated-block-mTvXOtgX.cjs} +1 -1
  43. package/lib/{edge/block-styles-j3USwD3t.js → node/block-styles-TMZzzEym.js} +1 -1
  44. package/lib/node/{block-styles-5A29R26b.cjs → block-styles-VXzLF18j.cjs} +1 -1
  45. package/lib/node/{block-wrapper-_4dHa6F_.js → block-wrapper-P29FOF5s.js} +3 -3
  46. package/lib/{edge/block-wrapper-M9NUhWGH.cjs → node/block-wrapper-lY4KuAoh.cjs} +1 -1
  47. package/lib/{edge/component-ref-3ett8l8W.js → node/component-ref-iQDwDDn1.js} +2 -2
  48. package/lib/{edge/component-ref-3csDQ7HK.cjs → node/component-ref-yNViYBX7.cjs} +1 -1
  49. package/lib/node/constants/sdk-version.d.ts +1 -1
  50. package/lib/node/functions/get-builder-search-params/index.d.ts +1 -4
  51. package/lib/node/functions/is-editing.d.ts +2 -1
  52. package/lib/node/functions/is-previewing.d.ts +2 -1
  53. package/lib/{edge/get-block-properties-Ulj_6ST2.js → node/get-block-properties-7XzE1Wt8.js} +1 -1
  54. package/lib/node/{get-block-properties-YuIrE2ch.cjs → get-block-properties-k6EZWlbR.cjs} +1 -1
  55. package/lib/node/helpers/search/search.d.ts +5 -0
  56. package/lib/node/{index-zohROqUT.cjs → index-UG1lEFOg.cjs} +3 -3
  57. package/lib/node/{index-r1pyGeuy.js → index-XuArWqRY.js} +22 -18
  58. package/lib/node/index.cjs +1 -1
  59. package/lib/node/index.d.cts +5 -2
  60. package/lib/node/index.d.mts +5 -2
  61. package/lib/node/index.js +1 -1
  62. package/lib/{edge/repeated-block-nv-GpmWU.js → node/repeated-block-GHkPBpsU.js} +2 -2
  63. package/lib/node/{repeated-block-pNU308ur.cjs → repeated-block-ziSYMWGM.cjs} +1 -1
  64. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import "./style.css";
2
- import { defineComponent as f, openBlock as u, createElementBlock as h, Fragment as $, createBlock as g, resolveDynamicComponent as M, mergeProps as w, toHandlers as E, withCtx as V, renderSlot as P, resolveComponent as k, createTextVNode as nt, toDisplayString as Y, defineAsyncComponent as K, createVNode as A, renderList as O, createCommentVNode as v, h as Ie, createElementVNode as X, normalizeStyle as Z, normalizeClass as $e, markRaw as ot } from "vue";
3
- const st = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), rt = (e) => typeof e == "string" && st.has(e.toLowerCase());
2
+ import { defineComponent as f, openBlock as u, createElementBlock as h, Fragment as $, createBlock as g, resolveDynamicComponent as M, mergeProps as w, toHandlers as E, withCtx as V, renderSlot as P, resolveComponent as k, createTextVNode as ot, toDisplayString as Y, defineAsyncComponent as K, createVNode as A, renderList as O, createCommentVNode as v, h as Ie, createElementVNode as X, normalizeStyle as Z, normalizeClass as $e, markRaw as st } from "vue";
3
+ const rt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), it = (e) => typeof e == "string" && rt.has(e.toLowerCase());
4
4
  function F(e = {}, t, n) {
5
5
  const o = {};
6
6
  for (const s in e) {
@@ -11,11 +11,11 @@ function F(e = {}, t, n) {
11
11
  }
12
12
  return o;
13
13
  }
14
- const it = f({
14
+ const at = f({
15
15
  name: "dynamic-renderer",
16
16
  props: ["attributes", "actionAttributes", "TagName"],
17
17
  data() {
18
- return { isEmptyElement: rt };
18
+ return { isEmptyElement: it };
19
19
  }
20
20
  }), y = (e, t) => {
21
21
  const n = e.__vccOpts || e;
@@ -23,7 +23,7 @@ const it = f({
23
23
  n[o] = s;
24
24
  return n;
25
25
  };
26
- function at(e, t, n, o, s, r) {
26
+ function lt(e, t, n, o, s, r) {
27
27
  return e.isEmptyElement(e.TagName) ? (u(), g(M(e.TagName), w({ key: 1 }, e.attributes, E(e.actionAttributes)), null, 16)) : (u(), h($, { key: 0 }, [
28
28
  typeof e.TagName == "string" ? (u(), g(M(e.TagName), w({ key: 0 }, e.attributes, E(e.actionAttributes)), {
29
29
  default: V(() => [
@@ -38,7 +38,7 @@ function at(e, t, n, o, s, r) {
38
38
  }, 16))
39
39
  ], 64));
40
40
  }
41
- const oe = /* @__PURE__ */ y(it, [["render", at]]), js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41
+ const oe = /* @__PURE__ */ y(at, [["render", lt]]), Ks = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42
42
  __proto__: null,
43
43
  default: oe
44
44
  }, Symbol.toStringTag, { value: "Module" })), x = "vue", se = () => {
@@ -53,7 +53,7 @@ const oe = /* @__PURE__ */ y(it, [["render", at]]), js = /* @__PURE__ */ Object.
53
53
  case "qwik":
54
54
  return "class";
55
55
  }
56
- }, lt = f({
56
+ }, ct = f({
57
57
  name: "builder-button",
58
58
  components: { DynamicRenderer: oe },
59
59
  props: [
@@ -67,7 +67,7 @@ const oe = /* @__PURE__ */ y(it, [["render", at]]), js = /* @__PURE__ */ Object.
67
67
  return { getClassPropName: se, filterAttrs: F };
68
68
  }
69
69
  });
70
- function ct(e, t, n, o, s, r) {
70
+ function dt(e, t, n, o, s, r) {
71
71
  const i = k("dynamic-renderer");
72
72
  return u(), g(i, {
73
73
  attributes: {
@@ -85,12 +85,12 @@ function ct(e, t, n, o, s, r) {
85
85
  actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
86
86
  }, {
87
87
  default: V(() => [
88
- nt(Y(e.text), 1)
88
+ ot(Y(e.text), 1)
89
89
  ]),
90
90
  _: 1
91
91
  }, 8, ["attributes", "TagName", "actionAttributes"]);
92
92
  }
93
- const dt = /* @__PURE__ */ y(lt, [["render", ct]]), ut = Symbol(), ee = {
93
+ const ut = /* @__PURE__ */ y(ct, [["render", dt]]), pt = Symbol(), ee = {
94
94
  Builder: {
95
95
  content: null,
96
96
  context: {},
@@ -105,12 +105,12 @@ const dt = /* @__PURE__ */ y(lt, [["render", ct]]), ut = Symbol(), ee = {
105
105
  BlocksWrapper: "div",
106
106
  BlocksWrapperProps: {}
107
107
  },
108
- key: ut
109
- }, pt = Symbol(), Te = {
110
- Components: { registeredComponents: {} },
111
108
  key: pt
109
+ }, mt = Symbol(), Te = {
110
+ Components: { registeredComponents: {} },
111
+ key: mt
112
112
  };
113
- function mt(e) {
113
+ function ht(e) {
114
114
  var t;
115
115
  return {
116
116
  ...(t = e.component) == null ? void 0 : t.options,
@@ -121,29 +121,35 @@ function mt(e) {
121
121
  builderBlock: e
122
122
  };
123
123
  }
124
- const q = "[Builder.io]: ", T = {
125
- log: (...e) => console.log(q, ...e),
126
- error: (...e) => console.error(q, ...e),
127
- warn: (...e) => console.warn(q, ...e),
128
- debug: (...e) => console.debug(q, ...e)
124
+ const z = "[Builder.io]: ", T = {
125
+ log: (...e) => console.log(z, ...e),
126
+ error: (...e) => console.error(z, ...e),
127
+ warn: (...e) => console.warn(z, ...e),
128
+ debug: (...e) => console.debug(z, ...e)
129
129
  };
130
130
  function I() {
131
131
  return typeof window < "u" && typeof document < "u";
132
132
  }
133
- function ht() {
133
+ const ft = (e) => {
134
+ const t = {};
135
+ return e.forEach((n, o) => {
136
+ t[o] = n;
137
+ }), t;
138
+ }, Re = (e) => e instanceof URLSearchParams ? ft(e) : e, Ee = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
139
+ function bt() {
134
140
  return I() && window.self !== window.top;
135
141
  }
136
- function R() {
137
- return ht() && window.location.search.indexOf("builder.frameEditing=") !== -1;
142
+ function R(e) {
143
+ return bt() && Ee(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
138
144
  }
139
- const ft = () => {
145
+ const gt = () => {
140
146
  if (I()) {
141
147
  const e = new URL(location.href);
142
148
  return e.pathname === "" && (e.pathname = "/"), e;
143
149
  } else
144
150
  return console.warn("Cannot get location for tracking in non-browser environment"), null;
145
- }, bt = () => typeof navigator == "object" && navigator.userAgent || "", Re = () => {
146
- const e = bt(), t = {
151
+ }, yt = () => typeof navigator == "object" && navigator.userAgent || "", Pe = () => {
152
+ const e = yt(), t = {
147
153
  Android() {
148
154
  return e.match(/Android/i);
149
155
  },
@@ -162,13 +168,13 @@ const ft = () => {
162
168
  any() {
163
169
  return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || x === "reactNative";
164
170
  }
165
- }, n = e.match(/Tablet|iPad/i), o = ft();
171
+ }, n = e.match(/Tablet|iPad/i), o = gt();
166
172
  return {
167
173
  urlPath: o == null ? void 0 : o.pathname,
168
174
  host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
169
175
  device: n ? "tablet" : t.any() ? "mobile" : "desktop"
170
176
  };
171
- }, gt = ({
177
+ }, kt = ({
172
178
  builder: e,
173
179
  context: t,
174
180
  event: n,
@@ -180,12 +186,12 @@ const ft = () => {
180
186
  builder: e,
181
187
  context: t,
182
188
  event: n
183
- }), yt = () => ({
189
+ }), St = () => ({
184
190
  isEditing: R(),
185
191
  isBrowser: I(),
186
192
  isServer: !I(),
187
- getUserAttributes: () => Re()
188
- }), kt = (e, {
193
+ getUserAttributes: () => Pe()
194
+ }), vt = (e, {
189
195
  isExpression: t = !0
190
196
  }) => /* 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, he = ({
191
197
  code: e,
@@ -196,11 +202,11 @@ const ft = () => {
196
202
  rootSetState: r,
197
203
  rootState: i
198
204
  }) => {
199
- const a = gt({
205
+ const a = kt({
200
206
  builder: t,
201
207
  context: n,
202
208
  event: o,
203
- state: Ee({
209
+ state: xe({
204
210
  rootState: i,
205
211
  localState: s,
206
212
  rootSetState: r
@@ -208,7 +214,7 @@ const ft = () => {
208
214
  });
209
215
  return new Function(...a.map(([l]) => l), e)(...a.map(([, l]) => l));
210
216
  };
211
- function Ee({
217
+ function xe({
212
218
  rootState: e,
213
219
  localState: t,
214
220
  rootSetState: n
@@ -218,7 +224,7 @@ function Ee({
218
224
  if (t && s in t)
219
225
  return t[s];
220
226
  const r = o[s];
221
- return typeof r == "object" ? Ee({
227
+ return typeof r == "object" ? xe({
222
228
  rootState: r,
223
229
  localState: void 0,
224
230
  rootSetState: n ? (i) => {
@@ -234,17 +240,17 @@ function Ee({
234
240
  });
235
241
  }
236
242
  const N = (e) => e != null;
237
- function St() {
243
+ function Ct() {
238
244
  var e;
239
245
  return typeof process < "u" && N((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
240
246
  }
241
- const vt = () => {
247
+ const wt = () => {
242
248
  var o;
243
- if (!St())
249
+ if (!Ct())
244
250
  return !1;
245
251
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
246
252
  return e && t && !n ? (T.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;
247
- }, Ct = (e) => (I() || vt(), he(e));
253
+ }, It = (e) => (I() || wt(), he(e));
248
254
  function G({
249
255
  code: e,
250
256
  context: t,
@@ -259,10 +265,10 @@ function G({
259
265
  return;
260
266
  }
261
267
  const a = {
262
- code: kt(e, {
268
+ code: vt(e, {
263
269
  isExpression: i
264
270
  }),
265
- builder: yt(),
271
+ builder: St(),
266
272
  context: t,
267
273
  event: r,
268
274
  rootSetState: s,
@@ -270,7 +276,7 @@ function G({
270
276
  localState: n
271
277
  };
272
278
  try {
273
- return Ct(a);
279
+ return It(a);
274
280
  } catch (l) {
275
281
  T.error("Failed code evaluation: " + l.message, {
276
282
  code: e
@@ -278,13 +284,13 @@ function G({
278
284
  return;
279
285
  }
280
286
  }
281
- const H = (e) => JSON.parse(JSON.stringify(e)), Pe = (e, t, n) => {
287
+ const H = (e) => JSON.parse(JSON.stringify(e)), Ae = (e, t, n) => {
282
288
  if (Object(e) !== e)
283
289
  return e;
284
290
  const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
285
291
  return o.slice(0, -1).reduce((s, r, i) => Object(s[r]) === s[r] ? s[r] : s[r] = Math.abs(Number(o[i + 1])) >> 0 === +o[i + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
286
292
  };
287
- const wt = ({
293
+ const $t = ({
288
294
  block: e,
289
295
  context: t,
290
296
  localState: n,
@@ -310,11 +316,11 @@ const wt = ({
310
316
  rootSetState: s,
311
317
  context: t
312
318
  });
313
- Pe(i, a, d);
319
+ Ae(i, a, d);
314
320
  }
315
321
  return i;
316
322
  };
317
- function xe({
323
+ function Ve({
318
324
  block: e,
319
325
  context: t,
320
326
  shouldEvaluateBindings: n,
@@ -323,7 +329,7 @@ function xe({
323
329
  rootSetState: r
324
330
  }) {
325
331
  const i = e;
326
- return n ? wt({
332
+ return n ? $t({
327
333
  block: i,
328
334
  localState: o,
329
335
  rootState: s,
@@ -331,23 +337,23 @@ function xe({
331
337
  context: t
332
338
  }) : i;
333
339
  }
334
- const It = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Ae = (e) => Object.entries(e).map(([n, o]) => {
340
+ const Tt = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Be = (e) => Object.entries(e).map(([n, o]) => {
335
341
  if (typeof o == "string")
336
- return `${It(n)}: ${o};`;
337
- }).filter(N), $t = (e) => Ae(e).join(`
338
- `), Ks = ({
342
+ return `${Tt(n)}: ${o};`;
343
+ }).filter(N), Rt = (e) => Be(e).join(`
344
+ `), zs = ({
339
345
  mediaQuery: e,
340
346
  className: t,
341
347
  styles: n
342
348
  }) => {
343
349
  const o = `.${t} {
344
- ${$t(n)}
350
+ ${Rt(n)}
345
351
  }`;
346
352
  return e ? `${e} {
347
353
  ${o}
348
354
  }` : o;
349
355
  };
350
- function Tt({
356
+ function Et({
351
357
  style: e
352
358
  }) {
353
359
  return e;
@@ -355,17 +361,17 @@ function Tt({
355
361
  const qs = ({
356
362
  block: e,
357
363
  context: t
358
- }) => Ve(Tt({
364
+ }) => We(Et({
359
365
  style: e.style || {},
360
366
  context: t,
361
367
  block: e
362
368
  }));
363
- function Ve(e) {
369
+ function We(e) {
364
370
  switch (x) {
365
371
  case "svelte":
366
372
  case "vue":
367
373
  case "solid":
368
- return Ae(e).join(" ");
374
+ return Be(e).join(" ");
369
375
  case "qwik":
370
376
  case "reactNative":
371
377
  case "react":
@@ -373,7 +379,7 @@ function Ve(e) {
373
379
  return e;
374
380
  }
375
381
  }
376
- function Rt(e, t, n = {}) {
382
+ function Pt(e, t, n = {}) {
377
383
  let o, s, r, i = null, a = 0;
378
384
  const l = function() {
379
385
  a = n.leading === !1 ? 0 : Date.now(), i = null, r = e.apply(o, s), i || (o = s = null);
@@ -396,17 +402,17 @@ function U(e, ...t) {
396
402
  return n;
397
403
  }
398
404
  const re = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
399
- function Et(e) {
405
+ function xt(e) {
400
406
  for (const t of e)
401
407
  switch (t.trigger) {
402
408
  case "pageLoad":
403
- Be(t);
409
+ Ne(t);
404
410
  break;
405
411
  case "hover":
406
- xt(t);
412
+ Vt(t);
407
413
  break;
408
414
  case "scrollInView":
409
- At(t);
415
+ Bt(t);
410
416
  break;
411
417
  }
412
418
  }
@@ -414,19 +420,19 @@ function ie(e) {
414
420
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
415
421
  }
416
422
  function ae(e, t) {
417
- const n = Pt(e), o = getComputedStyle(t), s = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, i = [s, r];
423
+ const n = At(e), o = getComputedStyle(t), s = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, i = [s, r];
418
424
  for (const a of i)
419
425
  for (const l of n)
420
426
  l in a || (a[l] = o[l]);
421
427
  }
422
- function Pt(e) {
428
+ function At(e) {
423
429
  const t = [];
424
430
  for (const n of e.steps)
425
431
  for (const o in n.styles)
426
432
  t.indexOf(o) === -1 && t.push(o);
427
433
  return t;
428
434
  }
429
- function Be(e) {
435
+ function Ne(e) {
430
436
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
431
437
  if (!t.length) {
432
438
  ie(e.elementId || e.id || "");
@@ -440,7 +446,7 @@ function Be(e) {
440
446
  });
441
447
  });
442
448
  }
443
- function xt(e) {
449
+ function Vt(e) {
444
450
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
445
451
  if (!t.length) {
446
452
  ie(e.elementId || e.id || "");
@@ -460,7 +466,7 @@ function xt(e) {
460
466
  });
461
467
  });
462
468
  }
463
- function At(e) {
469
+ function Bt(e) {
464
470
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
465
471
  if (!t.length) {
466
472
  ie(e.elementId || e.id || "");
@@ -476,7 +482,7 @@ function At(e) {
476
482
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
477
483
  })) : e.repeat && o && !s && !a(n) && (o = !1, U(n.style, e.steps[0].styles));
478
484
  }
479
- const i = Rt(r, 200, {
485
+ const i = Pt(r, 200, {
480
486
  leading: !1
481
487
  });
482
488
  function a(m) {
@@ -495,13 +501,13 @@ function At(e) {
495
501
  }), r();
496
502
  });
497
503
  }
498
- const Vt = ({
504
+ const Wt = ({
499
505
  block: e,
500
506
  context: t,
501
507
  registeredComponents: n
502
508
  }) => {
503
509
  var r;
504
- const o = (r = xe({
510
+ const o = (r = Ve({
505
511
  block: e,
506
512
  localState: t.localState,
507
513
  rootState: t.rootState,
@@ -517,7 +523,7 @@ const Vt = ({
517
523
  console.warn(`
518
524
  Could not find a registered component named "${o}".
519
525
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
520
- }, Bt = ({
526
+ }, Nt = ({
521
527
  block: e,
522
528
  context: t
523
529
  }) => {
@@ -550,33 +556,33 @@ const Vt = ({
550
556
  },
551
557
  block: o
552
558
  }));
553
- }, Wt = () => import("./block-styles-j9np3P-r.js").then((e) => e.default).catch((e) => {
559
+ }, Ft = () => import("./block-styles-gyTa8_cM.js").then((e) => e.default).catch((e) => {
554
560
  throw console.error(
555
561
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
556
562
  e
557
563
  ), e;
558
- }), Nt = () => import("./block-wrapper-FxyYLXqG.js").then((e) => e.default).catch((e) => {
564
+ }), Ut = () => import("./block-wrapper-Bq8tasBV.js").then((e) => e.default).catch((e) => {
559
565
  throw console.error(
560
566
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
561
567
  e
562
568
  ), e;
563
- }), Ft = () => import("./component-ref-EbQVULbj.js").then((e) => e.default).catch((e) => {
569
+ }), Ot = () => import("./component-ref-nCjiM4wU.js").then((e) => e.default).catch((e) => {
564
570
  throw console.error(
565
571
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
566
572
  e
567
573
  ), e;
568
- }), Ut = () => import("./repeated-block-EjD4PExV.js").then((e) => e.default).catch((e) => {
574
+ }), Lt = () => import("./repeated-block-Lae75ASu.js").then((e) => e.default).catch((e) => {
569
575
  throw console.error(
570
576
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
571
577
  e
572
578
  ), e;
573
- }), Ot = f({
579
+ }), Mt = f({
574
580
  name: "block",
575
581
  components: {
576
- BlockStyles: K(Wt),
577
- ComponentRef: K(Ft),
578
- RepeatedBlock: K(Ut),
579
- BlockWrapper: K(Nt)
582
+ BlockStyles: K(Ft),
583
+ ComponentRef: K(Ot),
584
+ RepeatedBlock: K(Lt),
585
+ BlockWrapper: K(Ut)
580
586
  },
581
587
  props: ["block", "context", "registeredComponents", "linkComponent"],
582
588
  data() {
@@ -584,7 +590,7 @@ const Vt = ({
584
590
  },
585
591
  mounted() {
586
592
  const e = this.processedBlock.id, t = this.processedBlock.animations;
587
- t && e && Et(
593
+ t && e && xt(
588
594
  t.filter((n) => n.trigger !== "hover").map((n) => ({
589
595
  ...n,
590
596
  elementId: e
@@ -593,21 +599,21 @@ const Vt = ({
593
599
  },
594
600
  computed: {
595
601
  blockComponent() {
596
- return Vt({
602
+ return Wt({
597
603
  block: this.block,
598
604
  context: this.context,
599
605
  registeredComponents: this.registeredComponents
600
606
  });
601
607
  },
602
608
  repeatItem() {
603
- return Bt({
609
+ return Nt({
604
610
  block: this.block,
605
611
  context: this.context
606
612
  });
607
613
  },
608
614
  processedBlock() {
609
615
  var e;
610
- return (e = this.block.repeat) != null && e.collection ? this.block : xe({
616
+ return (e = this.block.repeat) != null && e.collection ? this.block : Ve({
611
617
  block: this.block,
612
618
  localState: this.context.localState,
613
619
  rootState: this.context.rootState,
@@ -637,7 +643,7 @@ const Vt = ({
637
643
  blockChildren: this.processedBlock.children ?? [],
638
644
  componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
639
645
  componentOptions: {
640
- ...mt(this.processedBlock),
646
+ ...ht(this.processedBlock),
641
647
  builderContext: this.context,
642
648
  ...((t = this.blockComponent) == null ? void 0 : t.name) === "Core:Button" || ((n = this.blockComponent) == null ? void 0 : n.name) === "Symbol" || ((o = this.blockComponent) == null ? void 0 : o.name) === "Columns" || ((s = this.blockComponent) == null ? void 0 : s.name) === "Form:Form" ? {
643
649
  builderLinkComponent: this.linkComponent
@@ -656,7 +662,7 @@ const Vt = ({
656
662
  }
657
663
  }
658
664
  });
659
- function Lt(e, t, n, o, s, r) {
665
+ function Dt(e, t, n, o, s, r) {
660
666
  var c;
661
667
  const i = k("block-styles"), a = k("component-ref"), l = k("block", !0), d = k("block-wrapper"), m = k("repeated-block");
662
668
  return e.canShowBlock ? (u(), h($, { key: 0 }, [
@@ -714,10 +720,10 @@ function Lt(e, t, n, o, s, r) {
714
720
  ], 64))
715
721
  ], 64)) : v("", !0);
716
722
  }
717
- const le = /* @__PURE__ */ y(Ot, [["render", Lt]]), zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
723
+ const le = /* @__PURE__ */ y(Mt, [["render", Dt]]), Js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
718
724
  __proto__: null,
719
725
  default: le
720
- }, Symbol.toStringTag, { value: "Module" })), Mt = f({
726
+ }, Symbol.toStringTag, { value: "Module" })), Ht = f({
721
727
  name: "builder-blocks-wrapper",
722
728
  props: [
723
729
  "BlocksWrapper",
@@ -762,7 +768,7 @@ const le = /* @__PURE__ */ y(Ot, [["render", Lt]]), zs = /* @__PURE__ */ Object.
762
768
  }
763
769
  }
764
770
  });
765
- function Dt(e, t, n, o, s, r) {
771
+ function jt(e, t, n, o, s, r) {
766
772
  return u(), g(M(e.BlocksWrapper), w({
767
773
  class: e.className + " component-1o2kztlxdt6",
768
774
  "builder-path": e.path,
@@ -778,9 +784,9 @@ function Dt(e, t, n, o, s, r) {
778
784
  _: 3
779
785
  }, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
780
786
  }
781
- const Ht = /* @__PURE__ */ y(Mt, [["render", Dt], ["__scopeId", "data-v-6fabd81c"]]), jt = f({
787
+ const Kt = /* @__PURE__ */ y(Ht, [["render", jt], ["__scopeId", "data-v-6fabd81c"]]), zt = f({
782
788
  name: "builder-blocks",
783
- components: { BlocksWrapper: Ht, Block: le },
789
+ components: { BlocksWrapper: Kt, Block: le },
784
790
  props: [
785
791
  "blocks",
786
792
  "parent",
@@ -795,7 +801,7 @@ const Ht = /* @__PURE__ */ y(Mt, [["render", Dt], ["__scopeId", "data-v-6fabd81c
795
801
  componentsContext: Te.key
796
802
  }
797
803
  });
798
- function Kt(e, t, n, o, s, r) {
804
+ function qt(e, t, n, o, s, r) {
799
805
  var l, d;
800
806
  const i = k("block"), a = k("blocks-wrapper");
801
807
  return u(), g(a, {
@@ -803,8 +809,8 @@ function Kt(e, t, n, o, s, r) {
803
809
  parent: e.parent,
804
810
  path: e.path,
805
811
  styleProp: e.styleProp,
806
- BlocksWrapper: (l = e.context) == null ? void 0 : l.BlocksWrapper,
807
- BlocksWrapperProps: (d = e.context) == null ? void 0 : d.BlocksWrapperProps
812
+ BlocksWrapper: ((l = e.context) == null ? void 0 : l.BlocksWrapper) || e.builderContext.BlocksWrapper,
813
+ BlocksWrapperProps: ((d = e.context) == null ? void 0 : d.BlocksWrapperProps) || e.builderContext.BlocksWrapperProps
808
814
  }, {
809
815
  default: V(() => [
810
816
  e.blocks ? (u(!0), h($, { key: 0 }, O(e.blocks, (m, c) => (u(), g(i, {
@@ -818,13 +824,13 @@ function Kt(e, t, n, o, s, r) {
818
824
  _: 1
819
825
  }, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
820
826
  }
821
- const _ = /* @__PURE__ */ y(jt, [["render", Kt]]), ce = f({
827
+ const _ = /* @__PURE__ */ y(zt, [["render", qt]]), ce = f({
822
828
  render() {
823
829
  return Ie("style", { id: this.id, innerHTML: this.styles });
824
830
  },
825
831
  name: "inlined-styles",
826
832
  props: ["styles", "id"]
827
- }), We = {
833
+ }), Fe = {
828
834
  small: {
829
835
  min: 320,
830
836
  default: 321,
@@ -840,11 +846,11 @@ const _ = /* @__PURE__ */ y(jt, [["render", Kt]]), ce = f({
840
846
  default: 991,
841
847
  max: 1200
842
848
  }
843
- }, Js = (e, t = We) => `@media (max-width: ${t[e].max}px)`, qt = ({
849
+ }, Gs = (e, t = Fe) => `@media (max-width: ${t[e].max}px)`, Jt = ({
844
850
  small: e,
845
851
  medium: t
846
852
  }) => {
847
- const n = H(We);
853
+ const n = H(Fe);
848
854
  if (!e || !t)
849
855
  return n;
850
856
  const o = Math.floor(e / 2);
@@ -866,7 +872,7 @@ const _ = /* @__PURE__ */ y(jt, [["render", Kt]]), ce = f({
866
872
  min: r,
867
873
  default: r + 1
868
874
  }, n;
869
- }, zt = f({
875
+ }, Gt = f({
870
876
  name: "builder-columns",
871
877
  components: {
872
878
  InlinedStyles: ce,
@@ -891,7 +897,7 @@ const _ = /* @__PURE__ */ y(jt, [["render", Kt]]), ce = f({
891
897
  flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
892
898
  TARGET: x,
893
899
  getClassPropName: se,
894
- mapStyleObjToStrIfNeeded: Ve
900
+ mapStyleObjToStrIfNeeded: We
895
901
  };
896
902
  },
897
903
  computed: {
@@ -983,13 +989,13 @@ const _ = /* @__PURE__ */ y(jt, [["render", Kt]]), ce = f({
983
989
  },
984
990
  getWidthForBreakpointSize(e) {
985
991
  var n, o;
986
- return qt(
992
+ return Jt(
987
993
  ((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
988
994
  )[e].max;
989
995
  }
990
996
  }
991
997
  });
992
- function Jt(e, t, n, o, s, r) {
998
+ function Yt(e, t, n, o, s, r) {
993
999
  const i = k("inlined-styles"), a = k("blocks"), l = k("dynamic-renderer");
994
1000
  return u(), h("div", w({
995
1001
  class: `builder-columns ${e.builderBlock.id}-breakpoints div-2fnk003dqad`,
@@ -1028,24 +1034,24 @@ function Jt(e, t, n, o, s, r) {
1028
1034
  }, 1032, ["TagName", "attributes"]))), 128))
1029
1035
  ], 16);
1030
1036
  }
1031
- const Gt = /* @__PURE__ */ y(zt, [["render", Jt], ["__scopeId", "data-v-0777f1ce"]]), Yt = f({
1037
+ const _t = /* @__PURE__ */ y(Gt, [["render", Yt], ["__scopeId", "data-v-0777f1ce"]]), Qt = f({
1032
1038
  name: "builder-fragment-component",
1033
1039
  props: []
1034
1040
  });
1035
- function _t(e, t, n, o, s, r) {
1041
+ function Xt(e, t, n, o, s, r) {
1036
1042
  return u(), h("span", null, [
1037
1043
  P(e.$slots, "default")
1038
1044
  ]);
1039
1045
  }
1040
- const Qt = /* @__PURE__ */ y(Yt, [["render", _t]]);
1046
+ const Zt = /* @__PURE__ */ y(Qt, [["render", Xt]]);
1041
1047
  function fe(e) {
1042
1048
  return e.replace(/http(s)?:/, "");
1043
1049
  }
1044
- function Xt(e = "", t, n) {
1050
+ function en(e = "", t, n) {
1045
1051
  const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), s = e.indexOf("?") !== -1 ? "&" : "?";
1046
1052
  return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + s + t + "=" + encodeURIComponent(n);
1047
1053
  }
1048
- function Zt(e, t) {
1054
+ function tn(e, t) {
1049
1055
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1050
1056
  return e;
1051
1057
  if (t === "master")
@@ -1064,11 +1070,11 @@ function Q(e) {
1064
1070
  if (e.match(/builder\.io/)) {
1065
1071
  let n = e;
1066
1072
  const o = Number(e.split("?width=")[1]);
1067
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((s) => s !== o).map((s) => `${Xt(e, "width", s)} ${s}w`).concat([n]).join(", ");
1073
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((s) => s !== o).map((s) => `${en(e, "width", s)} ${s}w`).concat([n]).join(", ");
1068
1074
  }
1069
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Zt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1075
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [tn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1070
1076
  }
1071
- const en = f({
1077
+ const nn = f({
1072
1078
  name: "builder-image",
1073
1079
  props: [
1074
1080
  "image",
@@ -1114,11 +1120,11 @@ const en = f({
1114
1120
  return this.aspectRatio ? e : void 0;
1115
1121
  }
1116
1122
  }
1117
- }), tn = ["srcset"], nn = ["alt", "role", "src", "srcset", "sizes"], on = {
1123
+ }), on = ["srcset"], sn = ["alt", "role", "src", "srcset", "sizes"], rn = {
1118
1124
  key: 2,
1119
1125
  class: "div-1be3j8m9ewb-2"
1120
1126
  };
1121
- function sn(e, t, n, o, s, r) {
1127
+ function an(e, t, n, o, s, r) {
1122
1128
  var i, a, l, d;
1123
1129
  return u(), h($, null, [
1124
1130
  X("picture", null, [
@@ -1126,7 +1132,7 @@ function sn(e, t, n, o, s, r) {
1126
1132
  key: 0,
1127
1133
  type: "image/webp",
1128
1134
  srcset: e.webpSrcSet
1129
- }, null, 8, tn)) : v("", !0),
1135
+ }, null, 8, on)) : v("", !0),
1130
1136
  X("img", {
1131
1137
  loading: "lazy",
1132
1138
  alt: e.altText,
@@ -1142,7 +1148,7 @@ function sn(e, t, n, o, s, r) {
1142
1148
  src: e.image,
1143
1149
  srcset: e.srcSetToUse,
1144
1150
  sizes: e.sizes
1145
- }, null, 14, nn)
1151
+ }, null, 14, sn)
1146
1152
  ]),
1147
1153
  e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? (u(), h("div", {
1148
1154
  key: 0,
@@ -1152,19 +1158,19 @@ function sn(e, t, n, o, s, r) {
1152
1158
  })
1153
1159
  }, null, 4)) : v("", !0),
1154
1160
  (d = (l = e.builderBlock) == null ? void 0 : l.children) != null && d.length && e.fitContent ? P(e.$slots, "default", { key: 1 }, void 0, !0) : v("", !0),
1155
- !e.fitContent && e.$slots.default ? (u(), h("div", on, [
1161
+ !e.fitContent && e.$slots.default ? (u(), h("div", rn, [
1156
1162
  P(e.$slots, "default", {}, void 0, !0)
1157
1163
  ])) : v("", !0)
1158
1164
  ], 64);
1159
1165
  }
1160
- const rn = /* @__PURE__ */ y(en, [["render", sn], ["__scopeId", "data-v-8b807426"]]), an = f({
1166
+ const ln = /* @__PURE__ */ y(nn, [["render", an], ["__scopeId", "data-v-8b807426"]]), cn = f({
1161
1167
  name: "builder-section-component",
1162
1168
  props: ["attributes", "maxWidth"],
1163
1169
  data() {
1164
1170
  return { filterAttrs: F };
1165
1171
  }
1166
1172
  });
1167
- function ln(e, t, n, o, s, r) {
1173
+ function dn(e, t, n, o, s, r) {
1168
1174
  return u(), h("section", w({
1169
1175
  style: {
1170
1176
  width: "100%",
@@ -1182,12 +1188,12 @@ function ln(e, t, n, o, s, r) {
1182
1188
  P(e.$slots, "default")
1183
1189
  ], 16);
1184
1190
  }
1185
- const cn = /* @__PURE__ */ y(an, [["render", ln]]), dn = (e) => {
1191
+ const un = /* @__PURE__ */ y(cn, [["render", dn]]), pn = (e) => {
1186
1192
  if (e === "localhost" || e === "127.0.0.1")
1187
1193
  return e;
1188
1194
  const t = e.split(".");
1189
1195
  return t.length > 2 ? t.slice(1).join(".") : e;
1190
- }, Ne = ({
1196
+ }, Ue = ({
1191
1197
  name: e,
1192
1198
  canTrack: t
1193
1199
  }) => {
@@ -1198,14 +1204,14 @@ const cn = /* @__PURE__ */ y(an, [["render", ln]]), dn = (e) => {
1198
1204
  T.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
1199
1205
  return;
1200
1206
  }
1201
- }, Fe = async (e) => Ne(e), un = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(N).join("; "), pn = [["secure", ""], ["SameSite", "None"]], mn = ({
1207
+ }, Oe = async (e) => Ue(e), mn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(N).join("; "), hn = [["secure", ""], ["SameSite", "None"]], fn = ({
1202
1208
  name: e,
1203
1209
  value: t,
1204
1210
  expires: n
1205
1211
  }) => {
1206
- const s = (I() ? location.protocol === "https:" : !0) ? pn : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...r, ["path", "/"], ["domain", dn(window.location.hostname)], ...s];
1207
- return un(i);
1208
- }, Ue = async ({
1212
+ const s = (I() ? location.protocol === "https:" : !0) ? hn : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...r, ["path", "/"], ["domain", pn(window.location.hostname)], ...s];
1213
+ return mn(i);
1214
+ }, Le = async ({
1209
1215
  name: e,
1210
1216
  value: t,
1211
1217
  expires: n,
@@ -1214,7 +1220,7 @@ const cn = /* @__PURE__ */ y(an, [["render", ln]]), dn = (e) => {
1214
1220
  try {
1215
1221
  if (!o)
1216
1222
  return;
1217
- const s = mn({
1223
+ const s = fn({
1218
1224
  name: e,
1219
1225
  value: t,
1220
1226
  expires: n
@@ -1223,24 +1229,24 @@ const cn = /* @__PURE__ */ y(an, [["render", ln]]), dn = (e) => {
1223
1229
  } catch (s) {
1224
1230
  T.warn("[COOKIE] SET error: ", (s == null ? void 0 : s.message) || s);
1225
1231
  }
1226
- }, hn = "builder.tests", de = (e) => `${hn}.${e}`, fn = ({
1232
+ }, bn = "builder.tests", de = (e) => `${bn}.${e}`, gn = ({
1227
1233
  contentId: e
1228
- }) => Fe({
1234
+ }) => Oe({
1229
1235
  name: de(e),
1230
1236
  canTrack: !0
1231
- }), bn = ({
1237
+ }), yn = ({
1232
1238
  contentId: e
1233
- }) => Ne({
1239
+ }) => Ue({
1234
1240
  name: de(e),
1235
1241
  canTrack: !0
1236
- }), gn = ({
1242
+ }), kn = ({
1237
1243
  contentId: e,
1238
1244
  value: t
1239
- }) => Ue({
1245
+ }) => Le({
1240
1246
  name: de(e),
1241
1247
  value: t,
1242
1248
  canTrack: !0
1243
- }), Oe = (e) => N(e.id) && N(e.variations) && Object.keys(e.variations).length > 0, yn = ({
1249
+ }), Me = (e) => N(e.id) && N(e.variations) && Object.keys(e.variations).length > 0, Sn = ({
1244
1250
  id: e,
1245
1251
  variations: t
1246
1252
  }) => {
@@ -1253,15 +1259,15 @@ const cn = /* @__PURE__ */ y(an, [["render", ln]]), dn = (e) => {
1253
1259
  return r;
1254
1260
  }
1255
1261
  return e;
1256
- }, Le = (e) => {
1257
- const t = yn(e);
1258
- return gn({
1262
+ }, De = (e) => {
1263
+ const t = Sn(e);
1264
+ return kn({
1259
1265
  contentId: e.id,
1260
1266
  value: t
1261
1267
  }).catch((n) => {
1262
1268
  T.error("could not store A/B test variation: ", n);
1263
1269
  }), t;
1264
- }, Me = ({
1270
+ }, He = ({
1265
1271
  item: e,
1266
1272
  testGroupId: t
1267
1273
  }) => {
@@ -1275,7 +1281,7 @@ const cn = /* @__PURE__ */ y(an, [["render", ln]]), dn = (e) => {
1275
1281
  testVariationId: n.id,
1276
1282
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
1277
1283
  };
1278
- }, kn = ({
1284
+ }, vn = ({
1279
1285
  item: e,
1280
1286
  canTrack: t
1281
1287
  }) => {
@@ -1283,14 +1289,14 @@ const cn = /* @__PURE__ */ y(an, [["render", ln]]), dn = (e) => {
1283
1289
  return e;
1284
1290
  if (!e)
1285
1291
  return;
1286
- if (!Oe(e))
1292
+ if (!Me(e))
1287
1293
  return e;
1288
- const n = bn({
1294
+ const n = yn({
1289
1295
  contentId: e.id
1290
- }) || Le({
1296
+ }) || De({
1291
1297
  variations: e.variations,
1292
1298
  id: e.id
1293
- }), o = Me({
1299
+ }), o = He({
1294
1300
  item: e,
1295
1301
  testGroupId: n
1296
1302
  });
@@ -1298,18 +1304,18 @@ const cn = /* @__PURE__ */ y(an, [["render", ln]]), dn = (e) => {
1298
1304
  ...e,
1299
1305
  ...o
1300
1306
  };
1301
- }, Sn = async ({
1307
+ }, Cn = async ({
1302
1308
  item: e,
1303
1309
  canTrack: t
1304
1310
  }) => {
1305
- if (!t || !Oe(e))
1311
+ if (!t || !Me(e))
1306
1312
  return e;
1307
- const o = await fn({
1313
+ const o = await gn({
1308
1314
  contentId: e.id
1309
- }) || Le({
1315
+ }) || De({
1310
1316
  variations: e.variations,
1311
1317
  id: e.id
1312
- }), s = Me({
1318
+ }), s = He({
1313
1319
  item: e,
1314
1320
  testGroupId: o
1315
1321
  });
@@ -1317,7 +1323,7 @@ const cn = /* @__PURE__ */ y(an, [["render", ln]]), dn = (e) => {
1317
1323
  ...e,
1318
1324
  ...s
1319
1325
  };
1320
- }, D = (e) => N(e) ? e : !0, vn = {
1326
+ }, D = (e) => N(e) ? e : !0, wn = {
1321
1327
  name: "Core:Button",
1322
1328
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1323
1329
  defaultStyles: {
@@ -1350,7 +1356,7 @@ const cn = /* @__PURE__ */ y(an, [["render", ln]]), dn = (e) => {
1350
1356
  }],
1351
1357
  static: !0,
1352
1358
  noWrap: !0
1353
- }, Cn = {
1359
+ }, In = {
1354
1360
  // TODO: ways to statically preprocess JSON for references, functions, etc
1355
1361
  name: "Columns",
1356
1362
  isRSC: !0,
@@ -1551,13 +1557,13 @@ const cn = /* @__PURE__ */ y(an, [["render", ln]]), dn = (e) => {
1551
1557
  helperText: "When stacking columns for mobile devices, reverse the ordering",
1552
1558
  advanced: !0
1553
1559
  }]
1554
- }, wn = {
1560
+ }, $n = {
1555
1561
  name: "Fragment",
1556
1562
  static: !0,
1557
1563
  hidden: !0,
1558
1564
  canHaveChildren: !0,
1559
1565
  noWrap: !0
1560
- }, In = {
1566
+ }, Tn = {
1561
1567
  name: "Image",
1562
1568
  static: !0,
1563
1569
  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",
@@ -1657,7 +1663,7 @@ const cn = /* @__PURE__ */ y(an, [["render", ln]]), dn = (e) => {
1657
1663
  advanced: !0,
1658
1664
  defaultValue: 0.7041
1659
1665
  }]
1660
- }, $n = {
1666
+ }, Rn = {
1661
1667
  name: "Core:Section",
1662
1668
  static: !0,
1663
1669
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1696,7 +1702,7 @@ const cn = /* @__PURE__ */ y(an, [["render", ln]]), dn = (e) => {
1696
1702
  }
1697
1703
  }
1698
1704
  }]
1699
- }, Tn = {
1705
+ }, En = {
1700
1706
  name: "Slot",
1701
1707
  isRSC: !0,
1702
1708
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1709,12 +1715,12 @@ const cn = /* @__PURE__ */ y(an, [["render", ln]]), dn = (e) => {
1709
1715
  required: !0,
1710
1716
  defaultValue: "children"
1711
1717
  }]
1712
- }, Rn = f({
1718
+ }, Pn = f({
1713
1719
  name: "builder-slot",
1714
1720
  components: { Blocks: _ },
1715
1721
  props: ["js", "builderContext", "name"]
1716
1722
  });
1717
- function En(e, t, n, o, s, r) {
1723
+ function xn(e, t, n, o, s, r) {
1718
1724
  var a, l, d;
1719
1725
  const i = k("blocks");
1720
1726
  return u(), h("div", w(
@@ -1733,7 +1739,7 @@ function En(e, t, n, o, s, r) {
1733
1739
  }, null, 8, ["parent", "path", "context", "blocks"])
1734
1740
  ], 16);
1735
1741
  }
1736
- const Pn = /* @__PURE__ */ y(Rn, [["render", En]]), xn = {
1742
+ const An = /* @__PURE__ */ y(Pn, [["render", xn]]), Vn = {
1737
1743
  name: "Symbol",
1738
1744
  noWrap: !0,
1739
1745
  static: !0,
@@ -1766,7 +1772,7 @@ const Pn = /* @__PURE__ */ y(Rn, [["render", En]]), xn = {
1766
1772
  hideFromUI: !0,
1767
1773
  type: "boolean"
1768
1774
  }]
1769
- }, An = {
1775
+ }, Bn = {
1770
1776
  name: "Text",
1771
1777
  static: !0,
1772
1778
  isRSC: !0,
@@ -1784,11 +1790,11 @@ const Pn = /* @__PURE__ */ y(Rn, [["render", En]]), xn = {
1784
1790
  height: "auto",
1785
1791
  textAlign: "center"
1786
1792
  }
1787
- }, Vn = f({
1793
+ }, Wn = f({
1788
1794
  name: "builder-text",
1789
1795
  props: ["text"]
1790
- }), Bn = ["innerHTML"];
1791
- function Wn(e, t, n, o, s, r) {
1796
+ }), Nn = ["innerHTML"];
1797
+ function Fn(e, t, n, o, s, r) {
1792
1798
  var i;
1793
1799
  return u(), h("div", {
1794
1800
  class: "builder-text",
@@ -1796,9 +1802,9 @@ function Wn(e, t, n, o, s, r) {
1796
1802
  style: {
1797
1803
  outline: "none"
1798
1804
  }
1799
- }, null, 8, Bn);
1805
+ }, null, 8, Nn);
1800
1806
  }
1801
- const Nn = /* @__PURE__ */ y(Vn, [["render", Wn]]), Fn = {
1807
+ const Un = /* @__PURE__ */ y(Wn, [["render", Fn]]), On = {
1802
1808
  name: "Custom Code",
1803
1809
  static: !0,
1804
1810
  requiredPermissions: ["editCode"],
@@ -1820,7 +1826,7 @@ const Nn = /* @__PURE__ */ y(Vn, [["render", Wn]]), Fn = {
1820
1826
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
1821
1827
  advanced: !0
1822
1828
  }]
1823
- }, Un = f({
1829
+ }, Ln = f({
1824
1830
  name: "builder-custom-code",
1825
1831
  props: ["replaceNodes", "code"],
1826
1832
  data() {
@@ -1854,15 +1860,15 @@ const Nn = /* @__PURE__ */ y(Vn, [["render", Wn]]), Fn = {
1854
1860
  }
1855
1861
  }
1856
1862
  }
1857
- }), On = ["innerHTML"];
1858
- function Ln(e, t, n, o, s, r) {
1863
+ }), Mn = ["innerHTML"];
1864
+ function Dn(e, t, n, o, s, r) {
1859
1865
  return u(), h("div", {
1860
1866
  ref: "elementRef",
1861
1867
  class: $e("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
1862
1868
  innerHTML: e.code
1863
- }, null, 10, On);
1869
+ }, null, 10, Mn);
1864
1870
  }
1865
- const Mn = /* @__PURE__ */ y(Un, [["render", Ln]]), Dn = {
1871
+ const Hn = /* @__PURE__ */ y(Ln, [["render", Dn]]), jn = {
1866
1872
  name: "Embed",
1867
1873
  static: !0,
1868
1874
  inputs: [{
@@ -1887,7 +1893,7 @@ const Mn = /* @__PURE__ */ y(Un, [["render", Ln]]), Dn = {
1887
1893
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1888
1894
  hideFromUI: !0
1889
1895
  }]
1890
- }, Hn = ["text/javascript", "application/javascript", "application/ecmascript"], jn = (e) => Hn.includes(e.type), Kn = f({
1896
+ }, Kn = ["text/javascript", "application/javascript", "application/ecmascript"], zn = (e) => Kn.includes(e.type), qn = f({
1891
1897
  name: "builder-embed",
1892
1898
  props: ["content"],
1893
1899
  data() {
@@ -1920,7 +1926,7 @@ const Mn = /* @__PURE__ */ y(Un, [["render", Ln]]), Dn = {
1920
1926
  this.scriptsInserted.push(n.src);
1921
1927
  const o = document.createElement("script");
1922
1928
  o.async = !0, o.src = n.src, document.head.appendChild(o);
1923
- } else if (jn(n) && !this.scriptsRun.includes(n.innerText))
1929
+ } else if (zn(n) && !this.scriptsRun.includes(n.innerText))
1924
1930
  try {
1925
1931
  this.scriptsRun.push(n.innerText), new Function(n.innerText)();
1926
1932
  } catch (o) {
@@ -1929,15 +1935,15 @@ const Mn = /* @__PURE__ */ y(Un, [["render", Ln]]), Dn = {
1929
1935
  }
1930
1936
  }
1931
1937
  }
1932
- }), qn = ["innerHTML"];
1933
- function zn(e, t, n, o, s, r) {
1938
+ }), Jn = ["innerHTML"];
1939
+ function Gn(e, t, n, o, s, r) {
1934
1940
  return u(), h("div", {
1935
1941
  class: "builder-embed",
1936
1942
  ref: "elem",
1937
1943
  innerHTML: e.content
1938
- }, null, 8, qn);
1944
+ }, null, 8, Jn);
1939
1945
  }
1940
- const Jn = /* @__PURE__ */ y(Kn, [["render", zn]]), Gn = {
1946
+ const Yn = /* @__PURE__ */ y(qn, [["render", Gn]]), _n = {
1941
1947
  name: "Form:Form",
1942
1948
  // editableTags: ['builder-form-error']
1943
1949
  defaults: {
@@ -2168,13 +2174,13 @@ const Jn = /* @__PURE__ */ y(Kn, [["render", zn]]), Gn = {
2168
2174
  }
2169
2175
  }
2170
2176
  }]
2171
- }, Yn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], _n = () => {
2177
+ }, Qn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Xn = () => {
2172
2178
  const e = process.env.NODE_ENV || "production";
2173
- return Yn.includes(e) ? e : "production";
2174
- }, Qn = (e, t, n) => {
2179
+ return Qn.includes(e) ? e : "production";
2180
+ }, Zn = (e, t, n) => {
2175
2181
  const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((s, r) => s != null ? s[r] : s, e);
2176
2182
  return o === void 0 || o === e ? n : o;
2177
- }, Xn = f({
2183
+ }, eo = f({
2178
2184
  name: "builder-form-component",
2179
2185
  components: { Block: le, Blocks: _ },
2180
2186
  props: [
@@ -2268,7 +2274,7 @@ const Jn = /* @__PURE__ */ y(Kn, [["render", zn]]), Gn = {
2268
2274
  else {
2269
2275
  const c = {};
2270
2276
  Array.from(a).forEach(({ value: p, key: S }) => {
2271
- Pe(c, S, p);
2277
+ Ae(c, S, p);
2272
2278
  }), r = JSON.stringify(c);
2273
2279
  }
2274
2280
  l && l !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (s["content-type"] = l));
@@ -2280,7 +2286,7 @@ const Jn = /* @__PURE__ */ y(Kn, [["render", zn]]), Gn = {
2280
2286
  if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(d), d.defaultPrevented))
2281
2287
  return;
2282
2288
  this.formState = "sending";
2283
- const m = `${_n() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
2289
+ const m = `${Xn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
2284
2290
  this.sendSubmissionsToEmail || ""
2285
2291
  )}&name=${encodeURIComponent(this.name || "")}`;
2286
2292
  fetch(
@@ -2295,7 +2301,7 @@ const Jn = /* @__PURE__ */ y(Kn, [["render", zn]]), Gn = {
2295
2301
  let p;
2296
2302
  const S = c.headers.get("content-type");
2297
2303
  if (S && S.indexOf("application/json") !== -1 ? p = await c.json() : p = await c.text(), !c.ok && this.errorMessagePath) {
2298
- let b = Qn(p, this.errorMessagePath);
2304
+ let b = Zn(p, this.errorMessagePath);
2299
2305
  b && (typeof b != "string" && (b = JSON.stringify(b)), this.formErrorMessage = b, this.mergeNewRootState({
2300
2306
  formErrorMessage: b
2301
2307
  }));
@@ -2336,11 +2342,11 @@ const Jn = /* @__PURE__ */ y(Kn, [["render", zn]]), Gn = {
2336
2342
  }
2337
2343
  }
2338
2344
  }
2339
- }), Zn = ["validate", "action", "method", "name"], eo = {
2345
+ }), to = ["validate", "action", "method", "name"], no = {
2340
2346
  key: 3,
2341
2347
  class: "builder-form-error-text pre-5vz8uirn7sc"
2342
2348
  };
2343
- function to(e, t, n, o, s, r) {
2349
+ function oo(e, t, n, o, s, r) {
2344
2350
  var l;
2345
2351
  const i = k("block"), a = k("blocks");
2346
2352
  return u(), h("form", w({
@@ -2370,7 +2376,7 @@ function to(e, t, n, o, s, r) {
2370
2376
  blocks: e.sendingMessage,
2371
2377
  context: e.builderContext
2372
2378
  }, null, 8, ["blocks", "context"])) : v("", !0),
2373
- e.submissionState() === "error" && e.responseData ? (u(), h("pre", eo, " " + Y(JSON.stringify(e.responseData, null, 2)) + `
2379
+ e.submissionState() === "error" && e.responseData ? (u(), h("pre", no, " " + Y(JSON.stringify(e.responseData, null, 2)) + `
2374
2380
  `, 1)) : v("", !0),
2375
2381
  e.submissionState() === "success" ? (u(), g(a, {
2376
2382
  key: 4,
@@ -2378,9 +2384,9 @@ function to(e, t, n, o, s, r) {
2378
2384
  blocks: e.successMessage,
2379
2385
  context: e.builderContext
2380
2386
  }, null, 8, ["blocks", "context"])) : v("", !0)
2381
- ], 16, Zn);
2387
+ ], 16, to);
2382
2388
  }
2383
- const no = /* @__PURE__ */ y(Xn, [["render", to], ["__scopeId", "data-v-c1bb70af"]]), oo = {
2389
+ const so = /* @__PURE__ */ y(eo, [["render", oo], ["__scopeId", "data-v-c1bb70af"]]), ro = {
2384
2390
  name: "Form:Input",
2385
2391
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2386
2392
  inputs: [
@@ -2431,7 +2437,7 @@ const no = /* @__PURE__ */ y(Xn, [["render", to], ["__scopeId", "data-v-c1bb70af
2431
2437
  borderStyle: "solid",
2432
2438
  borderColor: "#ccc"
2433
2439
  }
2434
- }, so = f({
2440
+ }, io = f({
2435
2441
  name: "builder-form-input-component",
2436
2442
  props: [
2437
2443
  "attributes",
@@ -2445,8 +2451,8 @@ const no = /* @__PURE__ */ y(Xn, [["render", to], ["__scopeId", "data-v-c1bb70af
2445
2451
  data() {
2446
2452
  return { isEditing: R, filterAttrs: F };
2447
2453
  }
2448
- }), ro = ["placeholder", "type", "name", "value", "defaultValue", "required"];
2449
- function io(e, t, n, o, s, r) {
2454
+ }), ao = ["placeholder", "type", "name", "value", "defaultValue", "required"];
2455
+ function lo(e, t, n, o, s, r) {
2450
2456
  return u(), h("input", w({
2451
2457
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
2452
2458
  placeholder: e.placeholder,
@@ -2455,9 +2461,9 @@ function io(e, t, n, o, s, r) {
2455
2461
  value: e.value,
2456
2462
  defaultValue: e.defaultValue,
2457
2463
  required: e.required
2458
- }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, ro);
2464
+ }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, ao);
2459
2465
  }
2460
- const ao = /* @__PURE__ */ y(so, [["render", io]]), lo = {
2466
+ const co = /* @__PURE__ */ y(io, [["render", lo]]), uo = {
2461
2467
  name: "Form:Select",
2462
2468
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2463
2469
  defaultStyles: {
@@ -2499,14 +2505,14 @@ const ao = /* @__PURE__ */ y(so, [["render", io]]), lo = {
2499
2505
  }],
2500
2506
  static: !0,
2501
2507
  noWrap: !0
2502
- }, co = f({
2508
+ }, po = f({
2503
2509
  name: "builder-select-component",
2504
2510
  props: ["attributes", "value", "defaultValue", "name", "options"],
2505
2511
  data() {
2506
2512
  return { isEditing: R, filterAttrs: F };
2507
2513
  }
2508
- }), uo = ["value", "defaultValue", "name"], po = ["value"];
2509
- function mo(e, t, n, o, s, r) {
2514
+ }), mo = ["value", "defaultValue", "name"], ho = ["value"];
2515
+ function fo(e, t, n, o, s, r) {
2510
2516
  return u(), h("select", w({
2511
2517
  value: e.value,
2512
2518
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
@@ -2516,10 +2522,10 @@ function mo(e, t, n, o, s, r) {
2516
2522
  (u(!0), h($, null, O(e.options, (i, a) => (u(), h("option", {
2517
2523
  key: a,
2518
2524
  value: i.value
2519
- }, Y(i.name || i.value), 9, po))), 128))
2520
- ], 16, uo);
2525
+ }, Y(i.name || i.value), 9, ho))), 128))
2526
+ ], 16, mo);
2521
2527
  }
2522
- const ho = /* @__PURE__ */ y(co, [["render", mo]]), fo = {
2528
+ const bo = /* @__PURE__ */ y(po, [["render", fo]]), go = {
2523
2529
  name: "Form:SubmitButton",
2524
2530
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2525
2531
  defaultStyles: {
@@ -2544,17 +2550,17 @@ const ho = /* @__PURE__ */ y(co, [["render", mo]]), fo = {
2544
2550
  // that only shows if advanced setting is flipped
2545
2551
  // TODO: defaultChildren
2546
2552
  // canHaveChildren: true,
2547
- }, bo = f({
2553
+ }, yo = f({
2548
2554
  name: "builder-submit-button",
2549
2555
  props: ["attributes", "text"],
2550
2556
  data() {
2551
2557
  return { filterAttrs: F };
2552
2558
  }
2553
2559
  });
2554
- function go(e, t, n, o, s, r) {
2560
+ function ko(e, t, n, o, s, r) {
2555
2561
  return u(), h("button", w({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), Y(e.text), 17);
2556
2562
  }
2557
- const yo = /* @__PURE__ */ y(bo, [["render", go]]), ko = {
2563
+ const So = /* @__PURE__ */ y(yo, [["render", ko]]), vo = {
2558
2564
  // friendlyName?
2559
2565
  name: "Raw:Img",
2560
2566
  hideFromInsertMenu: !0,
@@ -2568,7 +2574,7 @@ const yo = /* @__PURE__ */ y(bo, [["render", go]]), ko = {
2568
2574
  }],
2569
2575
  noWrap: !0,
2570
2576
  static: !0
2571
- }, So = f({
2577
+ }, Co = f({
2572
2578
  name: "builder-img-component",
2573
2579
  props: [
2574
2580
  "backgroundSize",
@@ -2581,8 +2587,8 @@ const yo = /* @__PURE__ */ y(bo, [["render", go]]), ko = {
2581
2587
  data() {
2582
2588
  return { isEditing: R, filterAttrs: F };
2583
2589
  }
2584
- }), vo = ["alt", "src"];
2585
- function Co(e, t, n, o, s, r) {
2590
+ }), wo = ["alt", "src"];
2591
+ function Io(e, t, n, o, s, r) {
2586
2592
  return u(), h("img", w({
2587
2593
  style: {
2588
2594
  objectFit: e.backgroundSize || "cover",
@@ -2591,9 +2597,9 @@ function Co(e, t, n, o, s, r) {
2591
2597
  key: e.isEditing() && e.imgSrc || "default-key",
2592
2598
  alt: e.altText,
2593
2599
  src: e.imgSrc || e.image
2594
- }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, vo);
2600
+ }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, wo);
2595
2601
  }
2596
- const wo = /* @__PURE__ */ y(So, [["render", Co]]), Io = {
2602
+ const $o = /* @__PURE__ */ y(Co, [["render", Io]]), To = {
2597
2603
  name: "Video",
2598
2604
  canHaveChildren: !0,
2599
2605
  defaultStyles: {
@@ -2674,7 +2680,7 @@ const wo = /* @__PURE__ */ y(So, [["render", Co]]), Io = {
2674
2680
  defaultValue: !0,
2675
2681
  advanced: !0
2676
2682
  }]
2677
- }, $o = f({
2683
+ }, Ro = f({
2678
2684
  name: "builder-video",
2679
2685
  props: [
2680
2686
  "autoPlay",
@@ -2719,16 +2725,16 @@ const wo = /* @__PURE__ */ y(So, [["render", Co]]), Io = {
2719
2725
  };
2720
2726
  }
2721
2727
  }
2722
- }), To = { style: {
2728
+ }), Eo = { style: {
2723
2729
  position: "relative"
2724
- } }, Ro = ["preload", "src", "poster"], Eo = ["src"], Po = {
2730
+ } }, Po = ["preload", "src", "poster"], xo = ["src"], Ao = {
2725
2731
  key: 1,
2726
2732
  style: {
2727
2733
  display: "flex",
2728
2734
  flexDirection: "column",
2729
2735
  alignItems: "stretch"
2730
2736
  }
2731
- }, xo = {
2737
+ }, Vo = {
2732
2738
  key: 2,
2733
2739
  style: {
2734
2740
  pointerEvents: "none",
@@ -2742,9 +2748,9 @@ const wo = /* @__PURE__ */ y(So, [["render", Co]]), Io = {
2742
2748
  height: "100%"
2743
2749
  }
2744
2750
  };
2745
- function Ao(e, t, n, o, s, r) {
2751
+ function Bo(e, t, n, o, s, r) {
2746
2752
  var i, a, l, d, m, c, p;
2747
- return u(), h("div", To, [
2753
+ return u(), h("div", Eo, [
2748
2754
  X("video", w({
2749
2755
  class: "builder-video",
2750
2756
  preload: e.preload || "metadata",
@@ -2769,8 +2775,8 @@ function Ao(e, t, n, o, s, r) {
2769
2775
  key: 0,
2770
2776
  type: "video/mp4",
2771
2777
  src: e.video
2772
- }, null, 8, Eo))
2773
- ], 16, Ro),
2778
+ }, null, 8, xo))
2779
+ ], 16, Po),
2774
2780
  e.aspectRatio && !(e.fitContent && ((l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length)) ? (u(), h("div", {
2775
2781
  key: 0,
2776
2782
  style: Z({
@@ -2780,78 +2786,78 @@ function Ao(e, t, n, o, s, r) {
2780
2786
  fontSize: "0px"
2781
2787
  })
2782
2788
  }, null, 4)) : v("", !0),
2783
- (m = (d = e.builderBlock) == null ? void 0 : d.children) != null && m.length && e.fitContent ? (u(), h("div", Po, [
2789
+ (m = (d = e.builderBlock) == null ? void 0 : d.children) != null && m.length && e.fitContent ? (u(), h("div", Ao, [
2784
2790
  P(e.$slots, "default")
2785
2791
  ])) : v("", !0),
2786
- (p = (c = e.builderBlock) == null ? void 0 : c.children) != null && p.length && !e.fitContent ? (u(), h("div", xo, [
2792
+ (p = (c = e.builderBlock) == null ? void 0 : c.children) != null && p.length && !e.fitContent ? (u(), h("div", Vo, [
2787
2793
  P(e.$slots, "default")
2788
2794
  ])) : v("", !0)
2789
2795
  ]);
2790
2796
  }
2791
- const Vo = /* @__PURE__ */ y($o, [["render", Ao]]), Bo = () => [{
2792
- component: Mn,
2793
- ...Fn
2797
+ const Wo = /* @__PURE__ */ y(Ro, [["render", Bo]]), No = () => [{
2798
+ component: Hn,
2799
+ ...On
2794
2800
  }, {
2795
- component: Jn,
2796
- ...Dn
2801
+ component: Yn,
2802
+ ...jn
2797
2803
  }, {
2798
- component: no,
2799
- ...Gn
2804
+ component: so,
2805
+ ..._n
2800
2806
  }, {
2801
- component: ao,
2802
- ...oo
2807
+ component: co,
2808
+ ...ro
2803
2809
  }, {
2804
- component: yo,
2805
- ...fo
2810
+ component: So,
2811
+ ...go
2806
2812
  }, {
2807
- component: ho,
2808
- ...lo
2813
+ component: bo,
2814
+ ...uo
2809
2815
  }, {
2810
- component: wo,
2811
- ...ko
2816
+ component: $o,
2817
+ ...vo
2812
2818
  }, {
2813
- component: Vo,
2814
- ...Io
2819
+ component: Wo,
2820
+ ...To
2815
2821
  }], be = () => [{
2816
- component: dt,
2817
- ...vn
2818
- }, {
2819
- component: Gt,
2820
- ...Cn
2821
- }, {
2822
- component: Qt,
2822
+ component: ut,
2823
2823
  ...wn
2824
2824
  }, {
2825
- component: rn,
2825
+ component: _t,
2826
2826
  ...In
2827
2827
  }, {
2828
- component: cn,
2828
+ component: Zt,
2829
2829
  ...$n
2830
2830
  }, {
2831
- component: Pn,
2831
+ component: ln,
2832
2832
  ...Tn
2833
2833
  }, {
2834
- component: Ms,
2835
- ...xn
2834
+ component: un,
2835
+ ...Rn
2836
+ }, {
2837
+ component: An,
2838
+ ...En
2836
2839
  }, {
2837
- component: Nn,
2838
- ...An
2839
- }, ...Bo()], Wo = (e) => ({
2840
+ component: Ds,
2841
+ ...Vn
2842
+ }, {
2843
+ component: Un,
2844
+ ...Bn
2845
+ }, ...No()], Fo = (e) => ({
2840
2846
  type: "builder.registerComponent",
2841
2847
  data: te(e)
2842
- }), No = (e) => {
2848
+ }), Uo = (e) => {
2843
2849
  const t = e.toString().trim();
2844
2850
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
2845
- }, Fo = (e) => typeof e == "function" ? No(e) : H(e), te = ({
2851
+ }, Oo = (e) => typeof e == "function" ? Uo(e) : H(e), te = ({
2846
2852
  inputs: e,
2847
2853
  ...t
2848
2854
  }) => ({
2849
2855
  ...H(t),
2850
2856
  inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [s, r]) => ({
2851
2857
  ...o,
2852
- [s]: Fo(r)
2858
+ [s]: Oo(r)
2853
2859
  }), {}))
2854
- }), Uo = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2860
+ }), Lo = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2855
2861
  function getAndSetVariantId() {
2856
2862
  function setCookie(name, value, days) {
2857
2863
  let expires = '';
@@ -2907,7 +2913,7 @@ const Vo = /* @__PURE__ */ y($o, [["render", Ao]]), Bo = () => [{
2907
2913
  }).join('');
2908
2914
  styleEl.innerHTML = newStyleStr;
2909
2915
  }
2910
- }`, Oo = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2916
+ }`, Mo = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2911
2917
  if (!navigator.cookieEnabled) {
2912
2918
  return;
2913
2919
  }
@@ -2941,42 +2947,42 @@ const Vo = /* @__PURE__ */ y($o, [["render", Ao]]), Bo = () => [{
2941
2947
  thisScriptEl?.remove();
2942
2948
  }
2943
2949
  return;
2944
- }`, De = "builderIoAbTest", He = "builderIoRenderContent", z = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2950
+ }`, je = "builderIoAbTest", Ke = "builderIoRenderContent", q = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2945
2951
  ...t,
2946
2952
  testVariationId: t.id,
2947
2953
  id: e == null ? void 0 : e.id
2948
- })), Lo = ({
2954
+ })), Do = ({
2949
2955
  canTrack: e,
2950
2956
  content: t
2951
- }) => !(!(z(t).length > 0) || !e), Mo = (e) => e === "react" || e === "reactNative", je = Mo(x), Do = () => `
2952
- window.${De} = ${Uo}
2953
- window.${He} = ${Oo}
2954
- `, Ho = (e, t) => `
2955
- window.${De}(
2956
- "${t}",${JSON.stringify(e)}, ${je}
2957
- )`, jo = ({
2957
+ }) => !(!(q(t).length > 0) || !e), Ho = (e) => e === "react" || e === "reactNative", ze = Ho(x), jo = () => `
2958
+ window.${je} = ${Lo}
2959
+ window.${Ke} = ${Mo}
2960
+ `, Ko = (e, t) => `
2961
+ window.${je}(
2962
+ "${t}",${JSON.stringify(e)}, ${ze}
2963
+ )`, zo = ({
2958
2964
  contentId: e,
2959
2965
  variationId: t
2960
- }) => `window.${He}(
2961
- "${t}", "${e}", ${je}
2962
- )`, Ke = f({
2966
+ }) => `window.${Ke}(
2967
+ "${t}", "${e}", ${ze}
2968
+ )`, qe = f({
2963
2969
  render() {
2964
2970
  return Ie("script", { id: this.id, innerHTML: this.scriptStr });
2965
2971
  },
2966
2972
  name: "inlined-script",
2967
2973
  props: ["scriptStr", "id"]
2968
2974
  });
2969
- function Ko() {
2975
+ function qo() {
2970
2976
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
2971
2977
  }
2972
- function qo() {
2973
- const e = Ko().fetch;
2978
+ function Jo() {
2979
+ const e = qo().fetch;
2974
2980
  if (typeof e > "u")
2975
2981
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
2976
2982
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
2977
2983
  return e;
2978
2984
  }
2979
- const qe = qo();
2985
+ const Je = Jo();
2980
2986
  function J(e, t = null, n = ".") {
2981
2987
  return Object.keys(e).reduce((o, s) => {
2982
2988
  const r = e[s], i = [t, s].filter(Boolean).join(n);
@@ -2989,27 +2995,22 @@ function J(e, t = null, n = ".") {
2989
2995
  };
2990
2996
  }, {});
2991
2997
  }
2992
- const zo = "v3", ge = "builder.", Jo = "options.", Go = (e) => {
2993
- const t = {};
2994
- return e.forEach((n, o) => {
2995
- t[o] = n;
2996
- }), t;
2997
- }, ze = (e) => {
2998
+ const Go = "v3", ge = "builder.", Yo = "options.", Ge = (e) => {
2998
2999
  if (!e)
2999
3000
  return {};
3000
- const t = Je(e), n = {};
3001
+ const t = Re(e), n = {};
3001
3002
  return Object.keys(t).forEach((o) => {
3002
3003
  if (o.startsWith(ge)) {
3003
- const s = o.replace(ge, "").replace(Jo, "");
3004
+ const s = o.replace(ge, "").replace(Yo, "");
3004
3005
  n[s] = t[o];
3005
3006
  }
3006
3007
  }), n;
3007
- }, Yo = () => {
3008
+ }, _o = () => {
3008
3009
  if (!I())
3009
3010
  return {};
3010
3011
  const e = new URLSearchParams(window.location.search);
3011
- return ze(e);
3012
- }, Je = (e) => e instanceof URLSearchParams ? Go(e) : e, ye = (e) => typeof e == "number" && !isNaN(e) && e >= 0, ue = (e) => {
3012
+ return Ge(e);
3013
+ }, ye = (e) => typeof e == "number" && !isNaN(e) && e >= 0, ue = (e) => {
3013
3014
  const {
3014
3015
  limit: t = 30,
3015
3016
  userAttributes: n,
@@ -3018,7 +3019,7 @@ const zo = "v3", ge = "builder.", Jo = "options.", Go = (e) => {
3018
3019
  apiKey: r,
3019
3020
  enrich: i,
3020
3021
  locale: a,
3021
- apiVersion: l = zo,
3022
+ apiVersion: l = Go,
3022
3023
  fields: d,
3023
3024
  omit: m,
3024
3025
  offset: c,
@@ -3039,10 +3040,10 @@ const zo = "v3", ge = "builder.", Jo = "options.", Go = (e) => {
3039
3040
  for (const L in W)
3040
3041
  C.searchParams.set(L, JSON.stringify(W[L]));
3041
3042
  }
3042
- const tt = {
3043
- ...Yo(),
3044
- ...Je(e.options || {})
3045
- }, me = J(tt);
3043
+ const nt = {
3044
+ ..._o(),
3045
+ ...Re(e.options || {})
3046
+ }, me = J(nt);
3046
3047
  for (const W in me)
3047
3048
  C.searchParams.set(W, String(me[W]));
3048
3049
  if (n && C.searchParams.set("userAttributes", JSON.stringify(n)), o) {
@@ -3053,25 +3054,25 @@ const zo = "v3", ge = "builder.", Jo = "options.", Go = (e) => {
3053
3054
  C.searchParams.set(L, JSON.stringify(W[L]));
3054
3055
  }
3055
3056
  return C;
3056
- }, _o = (e) => "results" in e;
3057
+ }, Qo = (e) => "results" in e;
3057
3058
  async function pe(e) {
3058
- const t = await Zo({
3059
+ const t = await es({
3059
3060
  ...e,
3060
3061
  limit: 1
3061
3062
  });
3062
3063
  return t && t[0] || null;
3063
3064
  }
3064
- const Qo = async (e) => {
3065
+ const Xo = async (e) => {
3065
3066
  const t = ue(e);
3066
- return await (await qe(t.href)).json();
3067
- }, Xo = async (e, t, n = ue(e)) => {
3067
+ return await (await Je(t.href)).json();
3068
+ }, Zo = async (e, t, n = ue(e)) => {
3068
3069
  const o = D(e.canTrack);
3069
3070
  if (n.search.includes("preview="), !o || !(I() || x === "reactNative"))
3070
3071
  return t.results;
3071
3072
  try {
3072
3073
  const s = [];
3073
3074
  for (const r of t.results)
3074
- s.push(await Sn({
3075
+ s.push(await Cn({
3075
3076
  item: r,
3076
3077
  canTrack: o
3077
3078
  }));
@@ -3081,10 +3082,10 @@ const Qo = async (e) => {
3081
3082
  }
3082
3083
  return t.results;
3083
3084
  };
3084
- async function Zo(e) {
3085
+ async function es(e) {
3085
3086
  try {
3086
- const t = ue(e), n = await Qo(e);
3087
- return _o(n) ? Xo(e, n) : (T.error("Error fetching data. ", {
3087
+ const t = ue(e), n = await Xo(e);
3088
+ return Qo(n) ? Zo(e, n) : (T.error("Error fetching data. ", {
3088
3089
  url: t,
3089
3090
  content: n,
3090
3091
  options: e
@@ -3093,91 +3094,94 @@ async function Zo(e) {
3093
3094
  return T.error("Error fetching data. ", t), null;
3094
3095
  }
3095
3096
  }
3096
- function es() {
3097
- return !I() || R() ? !1 : location.search.indexOf("builder.preview=") !== -1;
3097
+ function ts(e) {
3098
+ if (!I())
3099
+ return !1;
3100
+ const t = Ee(e || window.location.search);
3101
+ return R(t) ? !1 : t.indexOf("builder.preview=") !== -1;
3098
3102
  }
3099
- function ts() {
3103
+ function ns() {
3100
3104
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
3101
3105
  const t = Math.random() * 16 | 0;
3102
3106
  return (e == "x" ? t : t & 3 | 8).toString(16);
3103
3107
  });
3104
3108
  }
3105
- function Ge() {
3106
- return ts().replace(/-/g, "");
3109
+ function Ye() {
3110
+ return ns().replace(/-/g, "");
3107
3111
  }
3108
- const Ye = "builderSessionId", ns = async ({
3112
+ const _e = "builderSessionId", os = async ({
3109
3113
  canTrack: e
3110
3114
  }) => {
3111
3115
  if (!e)
3112
3116
  return;
3113
- const t = await Fe({
3114
- name: Ye,
3117
+ const t = await Oe({
3118
+ name: _e,
3115
3119
  canTrack: e
3116
3120
  });
3117
3121
  if (N(t))
3118
3122
  return t;
3119
3123
  {
3120
- const n = os();
3121
- return ss({
3124
+ const n = ss();
3125
+ return rs({
3122
3126
  id: n,
3123
3127
  canTrack: e
3124
3128
  }), n;
3125
3129
  }
3126
- }, os = () => Ge(), ss = ({
3130
+ }, ss = () => Ye(), rs = ({
3127
3131
  id: e,
3128
3132
  canTrack: t
3129
- }) => Ue({
3130
- name: Ye,
3133
+ }) => Le({
3134
+ name: _e,
3131
3135
  value: e,
3132
3136
  canTrack: t
3133
- }), _e = () => I() && typeof localStorage < "u" ? localStorage : void 0, rs = ({
3137
+ }), Qe = () => I() && typeof localStorage < "u" ? localStorage : void 0, is = ({
3134
3138
  key: e,
3135
3139
  canTrack: t
3136
3140
  }) => {
3137
3141
  var n;
3138
3142
  try {
3139
- return t ? (n = _e()) == null ? void 0 : n.getItem(e) : void 0;
3143
+ return t ? (n = Qe()) == null ? void 0 : n.getItem(e) : void 0;
3140
3144
  } catch (o) {
3141
3145
  console.debug("[LocalStorage] GET error: ", o);
3142
3146
  return;
3143
3147
  }
3144
- }, is = ({
3148
+ }, as = ({
3145
3149
  key: e,
3146
3150
  canTrack: t,
3147
3151
  value: n
3148
3152
  }) => {
3149
3153
  var o;
3150
3154
  try {
3151
- t && ((o = _e()) == null || o.setItem(e, n));
3155
+ t && ((o = Qe()) == null || o.setItem(e, n));
3152
3156
  } catch (s) {
3153
3157
  console.debug("[LocalStorage] SET error: ", s);
3154
3158
  }
3155
- }, Qe = "builderVisitorId", as = ({
3159
+ }, Xe = "builderVisitorId", ls = ({
3156
3160
  canTrack: e
3157
3161
  }) => {
3158
3162
  if (!e)
3159
3163
  return;
3160
- const t = rs({
3161
- key: Qe,
3164
+ const t = is({
3165
+ key: Xe,
3162
3166
  canTrack: e
3163
3167
  });
3164
3168
  if (N(t))
3165
3169
  return t;
3166
3170
  {
3167
- const n = ls();
3168
- return cs({
3171
+ const n = cs();
3172
+ return ds({
3169
3173
  id: n,
3170
3174
  canTrack: e
3171
3175
  }), n;
3172
3176
  }
3173
- }, ls = () => Ge(), cs = ({
3177
+ }, cs = () => Ye(), ds = ({
3174
3178
  id: e,
3175
3179
  canTrack: t
3176
- }) => is({
3177
- key: Qe,
3180
+ }) => as({
3181
+ key: Xe,
3178
3182
  value: e,
3179
3183
  canTrack: t
3180
- }), ds = async ({
3184
+ }), us = async ({
3181
3185
  canTrack: e
3182
3186
  }) => {
3183
3187
  if (!e)
@@ -3185,16 +3189,16 @@ const Ye = "builderSessionId", ns = async ({
3185
3189
  visitorId: void 0,
3186
3190
  sessionId: void 0
3187
3191
  };
3188
- const t = await ns({
3192
+ const t = await os({
3189
3193
  canTrack: e
3190
- }), n = as({
3194
+ }), n = ls({
3191
3195
  canTrack: e
3192
3196
  });
3193
3197
  return {
3194
3198
  sessionId: t,
3195
3199
  visitorId: n
3196
3200
  };
3197
- }, us = async ({
3201
+ }, ps = async ({
3198
3202
  type: e,
3199
3203
  canTrack: t,
3200
3204
  apiKey: n,
@@ -3208,10 +3212,10 @@ const Ye = "builderSessionId", ns = async ({
3208
3212
  url: location.href,
3209
3213
  ...o
3210
3214
  },
3211
- ...await ds({
3215
+ ...await us({
3212
3216
  canTrack: t
3213
3217
  }),
3214
- userAttributes: Re(),
3218
+ userAttributes: Pe(),
3215
3219
  ownerId: n
3216
3220
  }
3217
3221
  });
@@ -3224,7 +3228,7 @@ async function ne(e) {
3224
3228
  return fetch("https://cdn.builder.io/api/v1/track", {
3225
3229
  method: "POST",
3226
3230
  body: JSON.stringify({
3227
- events: [await us(e)]
3231
+ events: [await ps(e)]
3228
3232
  }),
3229
3233
  headers: {
3230
3234
  "content-type": "application/json"
@@ -3234,14 +3238,14 @@ async function ne(e) {
3234
3238
  console.error("Failed to track: ", t);
3235
3239
  });
3236
3240
  }
3237
- const Gs = (e) => ne({
3241
+ const Ys = (e) => ne({
3238
3242
  ...e,
3239
3243
  canTrack: !0
3240
3244
  });
3241
3245
  function ke(e) {
3242
3246
  return Math.round(e * 1e3) / 1e3;
3243
3247
  }
3244
- const ps = (e, t, n = !0) => {
3248
+ const ms = (e, t, n = !0) => {
3245
3249
  if (!(e instanceof HTMLElement))
3246
3250
  return null;
3247
3251
  let o = n ? e : e.parentElement;
@@ -3252,7 +3256,7 @@ const ps = (e, t, n = !0) => {
3252
3256
  return o;
3253
3257
  } while (o = o.parentElement);
3254
3258
  return null;
3255
- }, ms = (e) => ps(e, (t) => {
3259
+ }, hs = (e) => ms(e, (t) => {
3256
3260
  const n = t.getAttribute("builder-id") || t.id;
3257
3261
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3258
3262
  }), Se = ({
@@ -3264,8 +3268,8 @@ const ps = (e, t, n = !0) => {
3264
3268
  x: r,
3265
3269
  y: i
3266
3270
  };
3267
- }, hs = (e) => {
3268
- const t = e.target, n = t && ms(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3271
+ }, fs = (e) => {
3272
+ const t = e.target, n = t && hs(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3269
3273
  return {
3270
3274
  targetBuilderElement: o || void 0,
3271
3275
  metadata: {
@@ -3280,13 +3284,13 @@ const ps = (e, t, n = !0) => {
3280
3284
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
3281
3285
  }
3282
3286
  };
3283
- }, fs = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
3284
- function Xe(e, t) {
3287
+ }, bs = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
3288
+ function Ze(e, t) {
3285
3289
  const n = new URL(t.origin), o = n.hostname;
3286
- return (e || fs).findIndex((s) => s.startsWith("*.") ? o.endsWith(s.slice(1)) : s === o) > -1;
3290
+ return (e || bs).findIndex((s) => s.startsWith("*.") ? o.endsWith(s.slice(1)) : s === o) > -1;
3287
3291
  }
3288
- const bs = "1.0.4", ve = {};
3289
- function gs(e, t) {
3292
+ const gs = "1.0.8", ve = {};
3293
+ function ys(e, t) {
3290
3294
  let n = ve[e];
3291
3295
  if (n || (n = ve[e] = []), n.push(t), I()) {
3292
3296
  const o = {
@@ -3303,8 +3307,8 @@ function gs(e, t) {
3303
3307
  }
3304
3308
  }
3305
3309
  }
3306
- const ys = () => {
3307
- gs("insertMenu", {
3310
+ const ks = () => {
3311
+ ys("insertMenu", {
3308
3312
  name: "_default",
3309
3313
  default: !0,
3310
3314
  items: [{
@@ -3327,13 +3331,13 @@ const ys = () => {
3327
3331
  });
3328
3332
  };
3329
3333
  let Ce = !1;
3330
- const Ze = (e = {}) => {
3334
+ const et = (e = {}) => {
3331
3335
  var t, n;
3332
3336
  Ce || (Ce = !0, I() && ((t = window.parent) == null || t.postMessage({
3333
3337
  type: "builder.sdkInfo",
3334
3338
  data: {
3335
3339
  target: x,
3336
- version: bs,
3340
+ version: gs,
3337
3341
  supportsPatchUpdates: !1,
3338
3342
  // Supports builder-model="..." attribute which is needed to
3339
3343
  // scope our '+ add block' button styling
@@ -3347,7 +3351,7 @@ const Ze = (e = {}) => {
3347
3351
  }
3348
3352
  }, "*"), window.addEventListener("message", (o) => {
3349
3353
  var r, i;
3350
- if (!Xe(e.trustedHosts, o))
3354
+ if (!Ze(e.trustedHosts, o))
3351
3355
  return;
3352
3356
  const {
3353
3357
  data: s
@@ -3388,12 +3392,12 @@ const Ze = (e = {}) => {
3388
3392
  }
3389
3393
  }
3390
3394
  })));
3391
- }, et = ({
3395
+ }, tt = ({
3392
3396
  model: e,
3393
3397
  trustedHosts: t,
3394
3398
  callbacks: n
3395
3399
  }) => (o) => {
3396
- if (!Xe(t, o))
3400
+ if (!Ze(t, o))
3397
3401
  return;
3398
3402
  const {
3399
3403
  data: s
@@ -3414,12 +3418,12 @@ const Ze = (e = {}) => {
3414
3418
  break;
3415
3419
  }
3416
3420
  }
3417
- }, Ys = (e, t, n) => {
3421
+ }, _s = (e, t, n) => {
3418
3422
  if (!I)
3419
3423
  return T.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
3420
3424
  };
3421
- Ze();
3422
- const o = et({
3425
+ et();
3426
+ const o = tt({
3423
3427
  callbacks: {
3424
3428
  contentUpdate: t,
3425
3429
  animation: () => {
@@ -3433,7 +3437,7 @@ const Ze = (e = {}) => {
3433
3437
  return window.addEventListener("message", o), () => {
3434
3438
  window.removeEventListener("message", o);
3435
3439
  };
3436
- }, ks = f({
3440
+ }, Ss = f({
3437
3441
  name: "enable-editor",
3438
3442
  props: [
3439
3443
  "builderContextSignal",
@@ -3484,7 +3488,7 @@ const Ze = (e = {}) => {
3484
3488
  variationId: r !== i ? r : void 0
3485
3489
  });
3486
3490
  }
3487
- es() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
3491
+ ts() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
3488
3492
  new CustomEvent("initpreviewingbldr")
3489
3493
  );
3490
3494
  }
@@ -3608,7 +3612,7 @@ const Ze = (e = {}) => {
3608
3612
  this.builderContextSignal.content = t;
3609
3613
  },
3610
3614
  processMessage(e) {
3611
- return et({
3615
+ return tt({
3612
3616
  model: this.model,
3613
3617
  trustedHosts: this.trustedHosts,
3614
3618
  callbacks: {
@@ -3622,7 +3626,7 @@ const Ze = (e = {}) => {
3622
3626
  }), this.forceReRenderCount = this.forceReRenderCount + 1);
3623
3627
  },
3624
3628
  animation: (t) => {
3625
- Be(t);
3629
+ Ne(t);
3626
3630
  },
3627
3631
  contentUpdate: (t) => {
3628
3632
  this.mergeNewContent(t), this.forceReRenderCount = this.forceReRenderCount + 1;
@@ -3651,7 +3655,7 @@ const Ze = (e = {}) => {
3651
3655
  contentId: s,
3652
3656
  apiKey: this.apiKey,
3653
3657
  variationId: o !== s ? o : void 0,
3654
- ...hs(e),
3658
+ ...fs(e),
3655
3659
  unique: !this.clicked
3656
3660
  });
3657
3661
  }
@@ -3670,7 +3674,7 @@ const Ze = (e = {}) => {
3670
3674
  );
3671
3675
  },
3672
3676
  handleRequest({ url: e, key: t }) {
3673
- qe(e).then((n) => n.json()).then((n) => {
3677
+ Je(e).then((n) => n.json()).then((n) => {
3674
3678
  var s, r;
3675
3679
  const o = {
3676
3680
  ...this.builderContextSignal.rootState,
@@ -3710,7 +3714,7 @@ const Ze = (e = {}) => {
3710
3714
  );
3711
3715
  },
3712
3716
  elementRef_onIniteditingbldr(e) {
3713
- this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage), ys(), Ze({
3717
+ this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage), ks(), et({
3714
3718
  ...this.locale ? {
3715
3719
  locale: this.locale
3716
3720
  } : {},
@@ -3724,7 +3728,7 @@ const Ze = (e = {}) => {
3724
3728
  this.builderContextSignal.componentInfos
3725
3729
  ).forEach((t) => {
3726
3730
  var o;
3727
- const n = Wo(t);
3731
+ const n = Fo(t);
3728
3732
  (o = window.parent) == null || o.postMessage(n, "*");
3729
3733
  }), window.addEventListener(
3730
3734
  "builder:component:stateChangeListenerActivated",
@@ -3745,7 +3749,7 @@ const Ze = (e = {}) => {
3745
3749
  }
3746
3750
  }
3747
3751
  });
3748
- function Ss(e, t, n, o, s, r) {
3752
+ function vs(e, t, n, o, s, r) {
3749
3753
  var i, a, l;
3750
3754
  return e.builderContextSignal.content ? (u(), g(M(e.ContentWrapper), w({
3751
3755
  key: e.forceReRenderCount,
@@ -3769,7 +3773,7 @@ function Ss(e, t, n, o, s, r) {
3769
3773
  _: 3
3770
3774
  }, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : v("", !0);
3771
3775
  }
3772
- const vs = /* @__PURE__ */ y(ks, [["render", Ss]]), Cs = (e) => {
3776
+ const Cs = /* @__PURE__ */ y(Ss, [["render", vs]]), ws = (e) => {
3773
3777
  var r;
3774
3778
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((r = e == null ? void 0 : e.files) == null ? void 0 : r.regular);
3775
3779
  let s = "";
@@ -3795,26 +3799,26 @@ font-weight: ${i};
3795
3799
  `.trim());
3796
3800
  }
3797
3801
  return s;
3798
- }, ws = ({
3802
+ }, Is = ({
3799
3803
  customFonts: e
3800
3804
  }) => {
3801
3805
  var t;
3802
- return ((t = e == null ? void 0 : e.map((n) => Cs(n))) == null ? void 0 : t.join(" ")) || "";
3803
- }, Is = ({
3806
+ return ((t = e == null ? void 0 : e.map((n) => ws(n))) == null ? void 0 : t.join(" ")) || "";
3807
+ }, $s = ({
3804
3808
  cssCode: e,
3805
3809
  contentId: t
3806
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", $s = f({
3810
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ts = f({
3807
3811
  name: "content-styles",
3808
3812
  components: { InlinedStyles: ce },
3809
3813
  props: ["cssCode", "contentId", "customFonts"],
3810
3814
  data() {
3811
3815
  return {
3812
3816
  injectedStyles: `
3813
- ${Is({
3817
+ ${$s({
3814
3818
  cssCode: this.cssCode,
3815
3819
  contentId: this.contentId
3816
3820
  })}
3817
- ${ws({
3821
+ ${Is({
3818
3822
  customFonts: this.customFonts
3819
3823
  })}
3820
3824
 
@@ -3838,11 +3842,11 @@ ${ws({
3838
3842
  };
3839
3843
  }
3840
3844
  });
3841
- function Ts(e, t, n, o, s, r) {
3845
+ function Rs(e, t, n, o, s, r) {
3842
3846
  const i = k("inlined-styles");
3843
3847
  return u(), g(i, { styles: e.injectedStyles }, null, 8, ["styles"]);
3844
3848
  }
3845
- const Rs = /* @__PURE__ */ y($s, [["render", Ts]]), Es = ({
3849
+ const Es = /* @__PURE__ */ y(Ts, [["render", Rs]]), Ps = ({
3846
3850
  content: e,
3847
3851
  data: t,
3848
3852
  locale: n
@@ -3859,7 +3863,7 @@ const Rs = /* @__PURE__ */ y($s, [["render", Ts]]), Es = ({
3859
3863
  locale: n
3860
3864
  } : {}
3861
3865
  };
3862
- }, Ps = ({
3866
+ }, xs = ({
3863
3867
  content: e,
3864
3868
  data: t
3865
3869
  }) => e ? {
@@ -3869,12 +3873,12 @@ const Rs = /* @__PURE__ */ y($s, [["render", Ts]]), Es = ({
3869
3873
  ...t
3870
3874
  },
3871
3875
  meta: e == null ? void 0 : e.meta
3872
- } : void 0, xs = ot, As = f({
3876
+ } : void 0, As = st, Vs = f({
3873
3877
  name: "content-component",
3874
3878
  components: {
3875
- EnableEditor: vs,
3876
- InlinedScript: Ke,
3877
- ContentStyles: Rs,
3879
+ EnableEditor: Cs,
3880
+ InlinedScript: qe,
3881
+ ContentStyles: Es,
3878
3882
  Blocks: _
3879
3883
  },
3880
3884
  props: [
@@ -3900,7 +3904,7 @@ const Rs = /* @__PURE__ */ y($s, [["render", Ts]]), Es = ({
3900
3904
  data() {
3901
3905
  var e, t;
3902
3906
  return {
3903
- scriptStr: jo({
3907
+ scriptStr: zo({
3904
3908
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3905
3909
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
3906
3910
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -3913,19 +3917,19 @@ const Rs = /* @__PURE__ */ y($s, [["render", Ts]]), Es = ({
3913
3917
  (n, { component: o, ...s }) => ({
3914
3918
  ...n,
3915
3919
  [s.name]: {
3916
- component: xs(o),
3920
+ component: As(o),
3917
3921
  ...te(s)
3918
3922
  }
3919
3923
  }),
3920
3924
  {}
3921
3925
  ),
3922
3926
  builderContextSignal: {
3923
- content: Ps({
3927
+ content: xs({
3924
3928
  content: this.content,
3925
3929
  data: this.data
3926
3930
  }),
3927
3931
  localState: void 0,
3928
- rootState: Es({
3932
+ rootState: Ps({
3929
3933
  content: this.content,
3930
3934
  data: this.data,
3931
3935
  locale: this.locale
@@ -3965,7 +3969,7 @@ const Rs = /* @__PURE__ */ y($s, [["render", Ts]]), Es = ({
3965
3969
  }
3966
3970
  }
3967
3971
  });
3968
- function Vs(e, t, n, o, s, r) {
3972
+ function Bs(e, t, n, o, s, r) {
3969
3973
  const i = k("inlined-script"), a = k("content-styles"), l = k("blocks"), d = k("enable-editor");
3970
3974
  return u(), g(d, w({
3971
3975
  content: e.content,
@@ -4007,12 +4011,12 @@ function Vs(e, t, n, o, s, r) {
4007
4011
  _: 1
4008
4012
  }, 16, ["content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "linkComponent", "trustedHosts"]);
4009
4013
  }
4010
- const Bs = /* @__PURE__ */ y(As, [["render", Vs]]), Ws = f({
4014
+ const Ws = /* @__PURE__ */ y(Vs, [["render", Bs]]), Ns = f({
4011
4015
  name: "content-variants",
4012
4016
  components: {
4013
- InlinedScript: Ke,
4017
+ InlinedScript: qe,
4014
4018
  InlinedStyles: ce,
4015
- ContentComponent: Bs
4019
+ ContentComponent: Ws
4016
4020
  },
4017
4021
  props: [
4018
4022
  "canTrack",
@@ -4035,13 +4039,13 @@ const Bs = /* @__PURE__ */ y(As, [["render", Vs]]), Ws = f({
4035
4039
  ],
4036
4040
  data() {
4037
4041
  return {
4038
- shouldRenderVariants: Lo({
4042
+ shouldRenderVariants: Do({
4039
4043
  canTrack: D(this.canTrack),
4040
4044
  content: this.content
4041
4045
  }),
4042
4046
  TARGET: x,
4043
- getScriptString: Do,
4044
- getVariants: z
4047
+ getScriptString: jo,
4048
+ getVariants: q
4045
4049
  };
4046
4050
  },
4047
4051
  mounted() {
@@ -4050,8 +4054,8 @@ const Bs = /* @__PURE__ */ y(As, [["render", Vs]]), Ws = f({
4050
4054
  computed: {
4051
4055
  updateCookieAndStylesScriptStr() {
4052
4056
  var e;
4053
- return Ho(
4054
- z(this.content).map((t) => ({
4057
+ return Ko(
4058
+ q(this.content).map((t) => ({
4055
4059
  id: t.testVariationId,
4056
4060
  testRatio: t.testRatio
4057
4061
  })),
@@ -4059,21 +4063,21 @@ const Bs = /* @__PURE__ */ y(As, [["render", Vs]]), Ws = f({
4059
4063
  );
4060
4064
  },
4061
4065
  hideVariantsStyleString() {
4062
- return z(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
4066
+ return q(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
4063
4067
  },
4064
4068
  defaultContent() {
4065
4069
  var e;
4066
4070
  return this.shouldRenderVariants ? {
4067
4071
  ...this.content,
4068
4072
  testVariationId: (e = this.content) == null ? void 0 : e.id
4069
- } : kn({
4073
+ } : vn({
4070
4074
  item: this.content,
4071
4075
  canTrack: D(this.canTrack)
4072
4076
  });
4073
4077
  }
4074
4078
  }
4075
4079
  });
4076
- function Ns(e, t, n, o, s, r) {
4080
+ function Fs(e, t, n, o, s, r) {
4077
4081
  var d;
4078
4082
  const i = k("inlined-script"), a = k("inlined-styles"), l = k("content-component");
4079
4083
  return u(), h($, null, [
@@ -4133,7 +4137,7 @@ function Ns(e, t, n, o, s, r) {
4133
4137
  }), null, 16, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
4134
4138
  ], 64);
4135
4139
  }
4136
- const Fs = /* @__PURE__ */ y(Ws, [["render", Ns]]), Us = async ({
4140
+ const Us = /* @__PURE__ */ y(Ns, [["render", Fs]]), Os = async ({
4137
4141
  builderContextValue: e,
4138
4142
  symbol: t
4139
4143
  }) => {
@@ -4151,9 +4155,9 @@ const Fs = /* @__PURE__ */ y(Ws, [["render", Ns]]), Us = async ({
4151
4155
  }).catch((n) => {
4152
4156
  T.error("Could not fetch symbol content: ", n);
4153
4157
  });
4154
- }, Os = f({
4158
+ }, Ls = f({
4155
4159
  name: "builder-symbol",
4156
- components: { ContentVariants: Fs },
4160
+ components: { ContentVariants: Us },
4157
4161
  props: [
4158
4162
  "attributes",
4159
4163
  "symbol",
@@ -4196,7 +4200,7 @@ const Fs = /* @__PURE__ */ y(Ws, [["render", Ns]]), Us = async ({
4196
4200
  },
4197
4201
  methods: {
4198
4202
  setContent() {
4199
- this.contentToUse || Us({
4203
+ this.contentToUse || Os({
4200
4204
  symbol: this.symbol,
4201
4205
  builderContextValue: this.builderContext
4202
4206
  }).then((e) => {
@@ -4205,7 +4209,7 @@ const Fs = /* @__PURE__ */ y(Ws, [["render", Ns]]), Us = async ({
4205
4209
  }
4206
4210
  }
4207
4211
  });
4208
- function Ls(e, t, n, o, s, r) {
4212
+ function Ms(e, t, n, o, s, r) {
4209
4213
  var a, l, d, m, c;
4210
4214
  const i = k("content-variants");
4211
4215
  return u(), h("div", w({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
@@ -4231,8 +4235,8 @@ function Ls(e, t, n, o, s, r) {
4231
4235
  }, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content", "linkComponent"])
4232
4236
  ], 16);
4233
4237
  }
4234
- const Ms = /* @__PURE__ */ y(Os, [["render", Ls]]), we = {};
4235
- function _s(e) {
4238
+ const Ds = /* @__PURE__ */ y(Ls, [["render", Ms]]), we = {};
4239
+ function Qs(e) {
4236
4240
  if (I()) {
4237
4241
  Object.assign(we, e);
4238
4242
  const t = {
@@ -4242,7 +4246,7 @@ function _s(e) {
4242
4246
  parent.postMessage(t, "*");
4243
4247
  }
4244
4248
  }
4245
- const Qs = async (e) => {
4249
+ const Xs = async (e) => {
4246
4250
  var o, s, r;
4247
4251
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((s = e.userAttributes) == null ? void 0 : s.urlPath), n = {
4248
4252
  ...e,
@@ -4254,7 +4258,7 @@ const Qs = async (e) => {
4254
4258
  urlPath: t
4255
4259
  } : {}
4256
4260
  },
4257
- options: ze(e.searchParams || ((r = e.url) == null ? void 0 : r.searchParams) || e.options)
4261
+ options: Ge(e.searchParams || ((r = e.url) == null ? void 0 : r.searchParams) || e.options)
4258
4262
  };
4259
4263
  return {
4260
4264
  apiKey: n.apiKey,
@@ -4263,42 +4267,42 @@ const Qs = async (e) => {
4263
4267
  };
4264
4268
  };
4265
4269
  export {
4266
- Zo as A,
4270
+ es as A,
4267
4271
  le as B,
4268
- Gt as C,
4272
+ _t as C,
4269
4273
  pe as D,
4270
- js as E,
4271
- Qt as F,
4272
- zs as G,
4273
- rn as I,
4274
- cn as S,
4274
+ Ks as E,
4275
+ Zt as F,
4276
+ Js as G,
4277
+ ln as I,
4278
+ un as S,
4275
4279
  x as T,
4276
- Vo as V,
4280
+ Wo as V,
4277
4281
  ce as _,
4278
- qt as a,
4279
- Ks as b,
4282
+ Jt as a,
4283
+ zs as b,
4280
4284
  N as c,
4281
- Js as d,
4285
+ Gs as d,
4282
4286
  y as e,
4283
4287
  G as f,
4284
- xe as g,
4288
+ Ve as g,
4285
4289
  qs as h,
4286
4290
  se as i,
4287
4291
  ee as j,
4288
- dt as k,
4289
- Ms as l,
4290
- Nn as m,
4292
+ ut as k,
4293
+ Ds as l,
4294
+ Un as m,
4291
4295
  _ as n,
4292
- Fs as o,
4296
+ Us as o,
4293
4297
  R as p,
4294
- es as q,
4295
- Wo as r,
4296
- gs as s,
4297
- _s as t,
4298
- ze as u,
4299
- Gs as v,
4300
- xs as w,
4301
- Ys as x,
4302
- Qs as y,
4303
- Xo as z
4298
+ ts as q,
4299
+ Fo as r,
4300
+ ys as s,
4301
+ Qs as t,
4302
+ Ge as u,
4303
+ Ys as v,
4304
+ As as w,
4305
+ _s as x,
4306
+ Xs as y,
4307
+ Zo as z
4304
4308
  };