@builder.io/sdk-vue 0.4.4 → 0.4.5

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 (58) hide show
  1. package/package.json +1 -1
  2. package/packages/_vue2/dist/block-styles.503c2141.cjs +1 -0
  3. package/packages/_vue2/dist/block-styles.76e698a7.js +72 -0
  4. package/packages/_vue2/dist/{css.5dc54b85.js → css.1601c108.js} +2 -2
  5. package/packages/_vue2/dist/{css.91bb94e8.cjs → css.6d92c2ca.cjs} +1 -1
  6. package/packages/_vue2/dist/{evaluate.f654f563.js → evaluate.5365c739.js} +1 -1
  7. package/packages/_vue2/dist/{evaluate.10e091b0.cjs → evaluate.97a0f474.cjs} +3 -3
  8. package/packages/_vue2/dist/index.4de025de.cjs +32 -0
  9. package/packages/_vue2/dist/{index.a1dfdaec.js → index.dcd9672f.js} +316 -297
  10. package/packages/_vue2/dist/inlined-script.5b4b5fc3.js +23 -0
  11. package/packages/_vue2/dist/inlined-script.6a6ca760.cjs +1 -0
  12. package/packages/_vue2/dist/inlined-styles.759d26e8.js +23 -0
  13. package/packages/_vue2/dist/inlined-styles.9ddda3d7.cjs +1 -0
  14. package/packages/_vue2/dist/{render-block.df744a97.js → render-block.844495c0.js} +6 -6
  15. package/packages/_vue2/dist/{render-block.55b40822.cjs → render-block.c0841b5d.cjs} +2 -2
  16. package/packages/_vue2/dist/{render-component.baf2d372.cjs → render-component.a3770d92.cjs} +1 -1
  17. package/packages/_vue2/dist/{render-component.9632b476.js → render-component.a57a8b32.js} +3 -3
  18. package/packages/_vue2/dist/render-content.19fe4991.cjs +1 -0
  19. package/packages/_vue2/dist/{render-content.30c701ec.js → render-content.8d297efd.js} +79 -78
  20. package/packages/_vue2/dist/{render-repeated-block.e9bfa3cd.cjs → render-repeated-block.be86aae1.cjs} +1 -1
  21. package/packages/_vue2/dist/{render-repeated-block.7f4862b2.js → render-repeated-block.f51da3f5.js} +2 -2
  22. package/packages/_vue2/dist/render-styles.b41f1309.js +87 -0
  23. package/packages/_vue2/dist/render-styles.ba0e223a.cjs +31 -0
  24. package/packages/_vue2/dist/sdk.cjs +1 -1
  25. package/packages/_vue2/dist/sdk.js +1 -1
  26. package/packages/_vue2/dist/src/blocks/text/text.vue.d.ts +1 -1
  27. package/packages/_vue2/dist/src/components/inlined-script.vue.d.ts +11 -0
  28. package/packages/_vue2/dist/src/components/render-content/render-content.types.d.ts +9 -23
  29. package/packages/_vue2/dist/src/components/render-content-variants/helpers.d.ts +3 -2
  30. package/packages/_vue2/dist/src/components/render-content-variants/render-content-variants.types.d.ts +20 -0
  31. package/packages/_vue2/dist/src/components/render-content-variants/render-content-variants.vue.d.ts +25 -2
  32. package/packages/_vue2/dist/src/constants/sdk-version.d.ts +1 -1
  33. package/packages/_vue2/dist/src/types/enforced-partials.d.ts +21 -0
  34. package/packages/_vue2/dist/src/types/typescript.d.ts +3 -0
  35. package/packages/_vue2/dist/style.css +1 -1
  36. package/packages/_vue3/dist/sdk.cjs +18 -18
  37. package/packages/_vue3/dist/sdk.js +657 -633
  38. package/packages/_vue3/dist/src/blocks/text/text.vue.d.ts +1 -1
  39. package/packages/_vue3/dist/src/components/inlined-script.vue.d.ts +11 -0
  40. package/packages/_vue3/dist/src/components/render-content/render-content.types.d.ts +9 -23
  41. package/packages/_vue3/dist/src/components/render-content/render-content.vue.d.ts +3 -6
  42. package/packages/_vue3/dist/src/components/render-content-variants/helpers.d.ts +27 -3
  43. package/packages/_vue3/dist/src/components/render-content-variants/render-content-variants.types.d.ts +20 -0
  44. package/packages/_vue3/dist/src/components/render-content-variants/render-content-variants.vue.d.ts +50 -4
  45. package/packages/_vue3/dist/src/constants/sdk-version.d.ts +1 -1
  46. package/packages/_vue3/dist/src/types/enforced-partials.d.ts +21 -0
  47. package/packages/_vue3/dist/src/types/typescript.d.ts +3 -0
  48. package/packages/_vue3/dist/style.css +1 -1
  49. package/packages/_vue2/dist/block-styles.0037defd.cjs +0 -1
  50. package/packages/_vue2/dist/block-styles.bc8cdc9f.js +0 -76
  51. package/packages/_vue2/dist/index.a4e21f82.cjs +0 -32
  52. package/packages/_vue2/dist/render-content.d464cccb.cjs +0 -1
  53. package/packages/_vue2/dist/render-inlined-styles.36b7a3a4.js +0 -23
  54. package/packages/_vue2/dist/render-inlined-styles.469ed053.cjs +0 -1
  55. package/packages/_vue2/dist/render-styles.43e1e2a4.js +0 -87
  56. package/packages/_vue2/dist/render-styles.ad11935f.cjs +0 -31
  57. package/packages/_vue2/dist/src/components/{render-inlined-styles.vue.d.ts → inlined-styles.vue.d.ts} +3 -3
  58. package/packages/_vue3/dist/src/components/{render-inlined-styles.vue.d.ts → inlined-styles.vue.d.ts} +3 -3
@@ -1,5 +1,5 @@
1
- import { defineComponent as g, openBlock as d, createElementBlock as m, mergeProps as x, toHandlers as V, toDisplayString as ne, createBlock as f, resolveDynamicComponent as P, resolveComponent as S, createCommentVNode as v, defineAsyncComponent as J, normalizeProps as Y, withCtx as he, Fragment as $, renderList as R, createVNode as j, guardReactiveProps as Ue, normalizeClass as H, normalizeStyle as N, renderSlot as W, createElementVNode as oe, markRaw as Me } from "vue";
2
- const Le = g({
1
+ import { defineComponent as f, openBlock as d, createElementBlock as m, mergeProps as T, toHandlers as P, toDisplayString as oe, h as me, resolveComponent as b, createBlock as g, createCommentVNode as v, defineAsyncComponent as G, resolveDynamicComponent as J, normalizeProps as Y, withCtx as he, Fragment as $, renderList as A, createVNode as O, guardReactiveProps as Me, normalizeClass as L, normalizeStyle as N, renderSlot as W, createElementVNode as re, markRaw as We } from "vue";
2
+ const Le = f({
3
3
  name: "builder-button",
4
4
  props: ["attributes", "text", "link", "openLinkInNewTab"],
5
5
  methods: {
@@ -34,21 +34,21 @@ const y = (e, t) => {
34
34
  for (const [o, r] of t)
35
35
  n[o] = r;
36
36
  return n;
37
- }, We = ["href", "target"];
38
- function He(e, t, n, o, r, i) {
39
- return e.link ? (d(), m("a", x({
37
+ }, He = ["href", "target"];
38
+ function Ke(e, t, n, o, r, i) {
39
+ return e.link ? (d(), m("a", T({
40
40
  key: 0,
41
41
  role: "button",
42
42
  href: e.link,
43
43
  target: e.openLinkInNewTab ? "_blank" : void 0
44
- }, e.filterAttrs(e.attributes, !1), V(e.filterAttrs(e.attributes, !0), !0)), ne(e.text), 17, We)) : (d(), m("button", x({
44
+ }, e.filterAttrs(e.attributes, !1), P(e.filterAttrs(e.attributes, !0), !0)), oe(e.text), 17, He)) : (d(), m("button", T({
45
45
  key: 1,
46
46
  class: e._classStringToObject(
47
- e.attributes.class + " button-361b1o6wv2k"
47
+ e.attributes.class + " button-1yj9n7yt24z"
48
48
  )
49
- }, e.filterAttrs(e.attributes, !1), V(e.filterAttrs(e.attributes, !0), !0)), ne(e.text), 17));
49
+ }, e.filterAttrs(e.attributes, !1), P(e.filterAttrs(e.attributes, !0), !0)), oe(e.text), 17));
50
50
  }
51
- const Ke = /* @__PURE__ */ y(Le, [["render", He], ["__scopeId", "data-v-e8a5e9df"]]), ze = Symbol(), O = {
51
+ const ze = /* @__PURE__ */ y(Le, [["render", Ke], ["__scopeId", "data-v-34071254"]]), De = Symbol(), j = {
52
52
  Builder: {
53
53
  content: null,
54
54
  context: {},
@@ -61,18 +61,18 @@ const Ke = /* @__PURE__ */ y(Le, [["render", He], ["__scopeId", "data-v-e8a5e9df
61
61
  registeredComponents: {},
62
62
  inheritedStyles: {}
63
63
  },
64
- key: ze
65
- }, _ = "vue3";
64
+ key: De
65
+ }, E = "vue3";
66
66
  function C() {
67
67
  return typeof window < "u" && typeof document < "u";
68
68
  }
69
- function De() {
69
+ function qe() {
70
70
  return C() && window.self !== window.top;
71
71
  }
72
- function E() {
73
- return De() && window.location.search.indexOf("builder.frameEditing=") !== -1;
72
+ function V() {
73
+ return qe() && window.location.search.indexOf("builder.frameEditing=") !== -1;
74
74
  }
75
- const K = (e) => JSON.parse(JSON.stringify(e)), fe = {
75
+ const H = (e) => JSON.parse(JSON.stringify(e)), fe = {
76
76
  small: {
77
77
  min: 320,
78
78
  default: 321,
@@ -88,8 +88,8 @@ const K = (e) => JSON.parse(JSON.stringify(e)), fe = {
88
88
  default: 991,
89
89
  max: 1200
90
90
  }
91
- }, re = (e, t = fe) => `@media (max-width: ${t[e].max}px)`, be = ({ small: e, medium: t }) => {
92
- const n = K(fe);
91
+ }, ie = (e, t = fe) => `@media (max-width: ${t[e].max}px)`, ge = ({ small: e, medium: t }) => {
92
+ const n = H(fe);
93
93
  if (!e || !t)
94
94
  return n;
95
95
  const o = Math.floor(e / 2);
@@ -125,7 +125,7 @@ function F({
125
125
  return;
126
126
  }
127
127
  const l = {
128
- isEditing: E(),
128
+ isEditing: V(),
129
129
  isBrowser: C(),
130
130
  isServer: !C()
131
131
  }, c = s && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
@@ -140,7 +140,7 @@ function F({
140
140
  )(
141
141
  l,
142
142
  l,
143
- qe(o, n, r),
143
+ Ge(o, n, r),
144
144
  t,
145
145
  i
146
146
  );
@@ -156,7 +156,7 @@ function F({
156
156
  );
157
157
  }
158
158
  }
159
- function qe(e, t, n) {
159
+ function Ge(e, t, n) {
160
160
  if (e === t)
161
161
  throw new Error("rootState === localState");
162
162
  return new Proxy(e, {
@@ -170,7 +170,7 @@ function qe(e, t, n) {
170
170
  }
171
171
  });
172
172
  }
173
- const Ge = (e, t, n) => {
173
+ const Je = (e, t, n) => {
174
174
  if (Object(e) !== e)
175
175
  return e;
176
176
  const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
@@ -179,7 +179,7 @@ const Ge = (e, t, n) => {
179
179
  e
180
180
  )[o[o.length - 1]] = n, e;
181
181
  };
182
- const Je = ({
182
+ const Ye = ({
183
183
  block: e,
184
184
  context: t,
185
185
  localState: n,
@@ -188,7 +188,7 @@ const Je = ({
188
188
  }) => {
189
189
  if (!e.bindings)
190
190
  return e;
191
- const i = K(e), s = {
191
+ const i = H(e), s = {
192
192
  ...i,
193
193
  properties: { ...i.properties },
194
194
  actions: { ...i.actions }
@@ -201,11 +201,11 @@ const Je = ({
201
201
  rootSetState: r,
202
202
  context: t
203
203
  });
204
- Ge(s, l, c);
204
+ Je(s, l, c);
205
205
  }
206
206
  return s;
207
207
  };
208
- function Z({
208
+ function ee({
209
209
  block: e,
210
210
  context: t,
211
211
  shouldEvaluateBindings: n,
@@ -214,7 +214,7 @@ function Z({
214
214
  rootSetState: i
215
215
  }) {
216
216
  const s = e;
217
- return n ? Je({
217
+ return n ? Ye({
218
218
  block: s,
219
219
  localState: o,
220
220
  rootState: r,
@@ -222,41 +222,37 @@ function Z({
222
222
  context: t
223
223
  }) : s;
224
224
  }
225
- const Ye = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), I = (e) => e != null, ge = (e) => Object.entries(e).map(([n, o]) => {
225
+ const Xe = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), R = (e) => e != null, be = (e) => Object.entries(e).map(([n, o]) => {
226
226
  if (typeof o == "string")
227
- return `${Ye(n)}: ${o};`;
228
- }).filter(I), Xe = (e) => ge(e).join(`
229
- `), q = ({
227
+ return `${Xe(n)}: ${o};`;
228
+ }).filter(R), Qe = (e) => be(e).join(`
229
+ `), D = ({
230
230
  mediaQuery: e,
231
231
  className: t,
232
232
  styles: n
233
233
  }) => {
234
234
  const o = `.${t} {
235
- ${Xe(n)}
235
+ ${Qe(n)}
236
236
  }`;
237
237
  return e ? `${e} {
238
238
  ${o}
239
239
  }` : o;
240
- }, Qe = g({
241
- name: "render-inlined-styles",
240
+ }, K = f({
241
+ render() {
242
+ return me("style", { id: this.id, innerHTML: this.styles });
243
+ },
244
+ name: "inlined-styles",
242
245
  props: ["styles", "id"]
243
- });
244
- function Ze(e, t, n, o, r, i) {
245
- return d(), f(P("style"), {
246
- innerHTML: e.styles,
247
- id: e.id
248
- }, null, 8, ["innerHTML", "id"]);
249
- }
250
- const z = /* @__PURE__ */ y(Qe, [["render", Ze]]), et = g({
246
+ }), Ze = f({
251
247
  name: "block-styles",
252
- components: { RenderInlinedStyles: z },
248
+ components: { InlinedStyles: K },
253
249
  props: ["block", "context"],
254
250
  data() {
255
- return { TARGET: _ };
251
+ return { TARGET: E };
256
252
  },
257
253
  computed: {
258
254
  useBlock() {
259
- return Z({
255
+ return ee({
260
256
  block: this.block,
261
257
  localState: this.context.localState,
262
258
  rootState: this.context.rootState,
@@ -266,29 +262,29 @@ const z = /* @__PURE__ */ y(Qe, [["render", Ze]]), et = g({
266
262
  });
267
263
  },
268
264
  canShowBlock() {
269
- return I(this.useBlock.hide) ? !this.useBlock.hide : I(this.useBlock.show) ? this.useBlock.show : !0;
265
+ return R(this.useBlock.hide) ? !this.useBlock.hide : R(this.useBlock.show) ? this.useBlock.show : !0;
270
266
  },
271
267
  css() {
272
268
  var u;
273
- const e = this.useBlock.responsiveStyles, t = this.context.content, n = be(
269
+ const e = this.useBlock.responsiveStyles, t = this.context.content, n = ge(
274
270
  ((u = t == null ? void 0 : t.meta) == null ? void 0 : u.breakpoints) || {}
275
271
  ), o = e == null ? void 0 : e.large, r = e == null ? void 0 : e.medium, i = e == null ? void 0 : e.small, s = this.useBlock.id;
276
272
  if (!s)
277
273
  return "";
278
- const l = o ? q({
274
+ const l = o ? D({
279
275
  className: s,
280
276
  styles: o
281
- }) : "", a = r ? q({
277
+ }) : "", a = r ? D({
282
278
  className: s,
283
279
  styles: r,
284
- mediaQuery: re(
280
+ mediaQuery: ie(
285
281
  "medium",
286
282
  n
287
283
  )
288
- }) : "", c = i ? q({
284
+ }) : "", c = i ? D({
289
285
  className: s,
290
286
  styles: i,
291
- mediaQuery: re(
287
+ mediaQuery: ie(
292
288
  "small",
293
289
  n
294
290
  )
@@ -297,17 +293,17 @@ const z = /* @__PURE__ */ y(Qe, [["render", Ze]]), et = g({
297
293
  }
298
294
  }
299
295
  });
300
- function tt(e, t, n, o, r, i) {
301
- const s = S("render-inlined-styles");
302
- return e.TARGET !== "reactNative" && e.css && e.canShowBlock ? (d(), f(s, {
296
+ function et(e, t, n, o, r, i) {
297
+ const s = b("inlined-styles");
298
+ return e.TARGET !== "reactNative" && e.css && e.canShowBlock ? (d(), g(s, {
303
299
  key: 0,
304
300
  styles: e.css
305
301
  }, null, 8, ["styles"])) : v("", !0);
306
302
  }
307
- const ee = /* @__PURE__ */ y(et, [["render", tt]]), nt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
303
+ const te = /* @__PURE__ */ y(Ze, [["render", et]]), tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
308
304
  __proto__: null,
309
- default: ee
310
- }, Symbol.toStringTag, { value: "Module" })), ot = (e) => `v-on:${e.toLowerCase()}`, rt = (e, t) => (n) => F({
305
+ default: te
306
+ }, Symbol.toStringTag, { value: "Module" })), nt = (e) => `v-on:${e.toLowerCase()}`, ot = (e, t) => (n) => F({
311
307
  code: e,
312
308
  context: t.context,
313
309
  localState: t.localState,
@@ -316,18 +312,18 @@ const ee = /* @__PURE__ */ y(et, [["render", tt]]), nt = /* @__PURE__ */ Object.
316
312
  event: n,
317
313
  isExpression: !1
318
314
  });
319
- function it(e) {
315
+ function rt(e) {
320
316
  var o;
321
317
  const t = {}, n = (o = e.block.actions) != null ? o : {};
322
318
  for (const r in n) {
323
319
  if (!n.hasOwnProperty(r))
324
320
  continue;
325
321
  const i = n[r];
326
- t[ot(r)] = rt(i, e);
322
+ t[nt(r)] = ot(i, e);
327
323
  }
328
324
  return t;
329
325
  }
330
- function st(e) {
326
+ function it(e) {
331
327
  var t;
332
328
  return {
333
329
  ...(t = e.component) == null ? void 0 : t.options,
@@ -335,7 +331,7 @@ function st(e) {
335
331
  builderBlock: e
336
332
  };
337
333
  }
338
- function at(e) {
334
+ function st(e) {
339
335
  const t = {};
340
336
  if (typeof e != "string")
341
337
  return t;
@@ -344,36 +340,36 @@ function at(e) {
344
340
  t[o] = !0;
345
341
  return t;
346
342
  }
347
- function lt(e) {
348
- return e.class = at(e.class), e;
343
+ function at(e) {
344
+ return e.class = st(e.class), e;
349
345
  }
350
- const ct = (e) => ({ href: e.href });
351
- function dt(e) {
346
+ const lt = (e) => ({ href: e.href });
347
+ function ct(e) {
352
348
  var n;
353
349
  const t = {
354
- ...ct(e),
350
+ ...lt(e),
355
351
  ...e.properties,
356
352
  "builder-id": e.id,
357
- style: ut(e.style),
353
+ style: dt(e.style),
358
354
  class: [e.id, "builder-block", e.class, (n = e.properties) == null ? void 0 : n.class].filter(Boolean).join(" ")
359
355
  };
360
- return lt(t);
356
+ return at(t);
361
357
  }
362
- function ut(e) {
358
+ function dt(e) {
363
359
  if (!!e)
364
- switch (_) {
360
+ switch (E) {
365
361
  case "svelte":
366
362
  case "vue2":
367
363
  case "vue3":
368
364
  case "solid":
369
- return ge(e).join(" ");
365
+ return be(e).join(" ");
370
366
  case "qwik":
371
367
  case "reactNative":
372
368
  case "react":
373
369
  return e;
374
370
  }
375
371
  }
376
- const pt = [
372
+ const ut = [
377
373
  "area",
378
374
  "base",
379
375
  "br",
@@ -389,12 +385,12 @@ const pt = [
389
385
  "source",
390
386
  "track",
391
387
  "wbr"
392
- ], mt = (e) => typeof e == "string" && pt.includes(e.toLowerCase()), ht = ({
388
+ ], pt = (e) => typeof e == "string" && ut.includes(e.toLowerCase()), mt = ({
393
389
  block: e,
394
390
  context: t
395
391
  }) => {
396
392
  var r;
397
- const n = (r = Z({
393
+ const n = (r = ee({
398
394
  block: e,
399
395
  localState: t.localState,
400
396
  rootState: t.rootState,
@@ -410,7 +406,7 @@ const pt = [
410
406
  console.warn(`
411
407
  Could not find a registered component named "${n}".
412
408
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
413
- }, ft = ({
409
+ }, ht = ({
414
410
  block: e,
415
411
  context: t
416
412
  }) => {
@@ -440,14 +436,14 @@ const pt = [
440
436
  },
441
437
  block: o
442
438
  }));
443
- }, bt = () => Promise.resolve().then(() => ke).then((e) => e.default).catch((e) => {
439
+ }, ft = () => Promise.resolve().then(() => ke).then((e) => e.default).catch((e) => {
444
440
  throw console.error(
445
441
  "Error while attempting to dynamically import component RenderBlock at ./render-block.vue",
446
442
  e
447
443
  ), e;
448
- }), gt = g({
444
+ }), gt = f({
449
445
  name: "render-repeated-block",
450
- components: { RenderBlock: J(bt) },
446
+ components: { RenderBlock: G(ft) },
451
447
  props: ["repeatContext", "block"],
452
448
  data() {
453
449
  return { store: this.repeatContext };
@@ -455,45 +451,45 @@ const pt = [
455
451
  provide() {
456
452
  const e = this;
457
453
  return {
458
- [O.key]: e.store
454
+ [j.key]: e.store
459
455
  };
460
456
  }
461
457
  });
462
- function yt(e, t, n, o, r, i) {
463
- const s = S("render-block");
464
- return d(), f(s, {
458
+ function bt(e, t, n, o, r, i) {
459
+ const s = b("render-block");
460
+ return d(), g(s, {
465
461
  block: e.block,
466
462
  context: e.store
467
463
  }, null, 8, ["block", "context"]);
468
464
  }
469
- const kt = /* @__PURE__ */ y(gt, [["render", yt]]), St = () => Promise.resolve().then(() => nt).then((e) => e.default).catch((e) => {
465
+ const yt = /* @__PURE__ */ y(gt, [["render", bt]]), kt = () => Promise.resolve().then(() => tt).then((e) => e.default).catch((e) => {
470
466
  throw console.error(
471
467
  "Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",
472
468
  e
473
469
  ), e;
474
- }), vt = () => Promise.resolve().then(() => ke).then((e) => e.default).catch((e) => {
470
+ }), St = () => Promise.resolve().then(() => ke).then((e) => e.default).catch((e) => {
475
471
  throw console.error(
476
472
  "Error while attempting to dynamically import component RenderBlock at ./render-block.vue",
477
473
  e
478
474
  ), e;
479
- }), Ct = g({
475
+ }), vt = f({
480
476
  name: "render-component",
481
477
  components: {
482
- RenderBlock: J(vt),
483
- BlockStyles: J(St)
478
+ RenderBlock: G(St),
479
+ BlockStyles: G(kt)
484
480
  },
485
481
  props: ["componentRef", "componentOptions", "blockChildren", "context"]
486
482
  });
487
- function $t(e, t, n, o, r, i) {
488
- const s = S("render-block"), l = S("block-styles");
489
- return e.componentRef ? (d(), f(P(e.componentRef), Y(x({ key: 0 }, e.componentOptions)), {
483
+ function Ct(e, t, n, o, r, i) {
484
+ const s = b("render-block"), l = b("block-styles");
485
+ return e.componentRef ? (d(), g(J(e.componentRef), Y(T({ key: 0 }, e.componentOptions)), {
490
486
  default: he(() => [
491
- (d(!0), m($, null, R(e.blockChildren, (a, c) => (d(), f(s, {
487
+ (d(!0), m($, null, A(e.blockChildren, (a, c) => (d(), g(s, {
492
488
  key: "render-block-" + a.id,
493
489
  block: a,
494
490
  context: e.context
495
491
  }, null, 8, ["block", "context"]))), 128)),
496
- (d(!0), m($, null, R(e.blockChildren, (a, c) => (d(), f(l, {
492
+ (d(!0), m($, null, A(e.blockChildren, (a, c) => (d(), g(l, {
497
493
  key: "block-style-" + a.id,
498
494
  block: a,
499
495
  context: e.context
@@ -502,34 +498,34 @@ function $t(e, t, n, o, r, i) {
502
498
  _: 1
503
499
  }, 16)) : v("", !0);
504
500
  }
505
- const wt = /* @__PURE__ */ y(Ct, [["render", $t]]), Tt = g({
501
+ const wt = /* @__PURE__ */ y(vt, [["render", Ct]]), $t = f({
506
502
  name: "render-block",
507
503
  components: {
508
504
  RenderComponent: wt,
509
- RenderRepeatedBlock: kt,
510
- BlockStyles: ee
505
+ RenderRepeatedBlock: yt,
506
+ BlockStyles: te
511
507
  },
512
508
  props: ["block", "context"],
513
509
  data() {
514
510
  return {
515
- component: ht({
511
+ component: mt({
516
512
  block: this.block,
517
513
  context: this.context
518
514
  }),
519
515
  Tag: this.block.tagName || "div",
520
516
  childrenContext: this.context,
521
- isEmptyHtmlElement: mt
517
+ isEmptyHtmlElement: pt
522
518
  };
523
519
  },
524
520
  computed: {
525
521
  repeatItem() {
526
- return ft({
522
+ return ht({
527
523
  block: this.block,
528
524
  context: this.context
529
525
  });
530
526
  },
531
527
  useBlock() {
532
- return this.repeatItem ? this.block : Z({
528
+ return this.repeatItem ? this.block : ee({
533
529
  block: this.block,
534
530
  localState: this.context.localState,
535
531
  rootState: this.context.rootState,
@@ -542,7 +538,7 @@ const wt = /* @__PURE__ */ y(Ct, [["render", $t]]), Tt = g({
542
538
  return "hide" in this.useBlock ? !this.useBlock.hide : "show" in this.useBlock ? this.useBlock.show : !0;
543
539
  },
544
540
  actions() {
545
- return it({
541
+ return rt({
546
542
  block: this.useBlock,
547
543
  rootState: this.context.rootState,
548
544
  rootSetState: this.context.rootSetState,
@@ -552,7 +548,7 @@ const wt = /* @__PURE__ */ y(Ct, [["render", $t]]), Tt = g({
552
548
  },
553
549
  attributes() {
554
550
  return {
555
- ...dt(this.useBlock)
551
+ ...ct(this.useBlock)
556
552
  };
557
553
  },
558
554
  childrenWithoutParentComponent() {
@@ -565,7 +561,7 @@ const wt = /* @__PURE__ */ y(Ct, [["render", $t]]), Tt = g({
565
561
  blockChildren: (e = this.useBlock.children) != null ? e : [],
566
562
  componentRef: (t = this.component) == null ? void 0 : t.component,
567
563
  componentOptions: {
568
- ...st(this.useBlock),
564
+ ...it(this.useBlock),
569
565
  ...(n = this.component) != null && n.noWrap ? {
570
566
  attributes: {
571
567
  ...this.attributes,
@@ -589,26 +585,26 @@ const wt = /* @__PURE__ */ y(Ct, [["render", $t]]), Tt = g({
589
585
  }
590
586
  }
591
587
  });
592
- function xt(e, t, n, o, r, i) {
588
+ function Tt(e, t, n, o, r, i) {
593
589
  var u;
594
- const s = S("render-repeated-block"), l = S("render-component"), a = S("render-block", !0), c = S("block-styles");
590
+ const s = b("render-repeated-block"), l = b("render-component"), a = b("render-block", !0), c = b("block-styles");
595
591
  return e.canShowBlock ? (d(), m($, { key: 0 }, [
596
- (u = e.component) != null && u.noWrap ? (d(), f(l, Y(x({ key: 1 }, e.renderComponentProps)), null, 16)) : (d(), m($, { key: 0 }, [
597
- e.isEmptyHtmlElement(e.Tag) ? (d(), f(P(e.Tag), x({ key: 0 }, e.attributes, V(e.stripVOn(e.actions))), null, 16)) : v("", !0),
598
- !e.isEmptyHtmlElement(e.Tag) && e.repeatItem ? (d(!0), m($, { key: 1 }, R(e.repeatItem, (p, h) => (d(), f(s, {
592
+ (u = e.component) != null && u.noWrap ? (d(), g(l, Y(T({ key: 1 }, e.renderComponentProps)), null, 16)) : (d(), m($, { key: 0 }, [
593
+ e.isEmptyHtmlElement(e.Tag) ? (d(), g(J(e.Tag), T({ key: 0 }, e.attributes, P(e.stripVOn(e.actions))), null, 16)) : v("", !0),
594
+ !e.isEmptyHtmlElement(e.Tag) && e.repeatItem ? (d(!0), m($, { key: 1 }, A(e.repeatItem, (p, h) => (d(), g(s, {
599
595
  key: h,
600
596
  repeatContext: p.context,
601
597
  block: p.block
602
598
  }, null, 8, ["repeatContext", "block"]))), 128)) : v("", !0),
603
- !e.isEmptyHtmlElement(e.Tag) && !e.repeatItem ? (d(), f(P(e.Tag), x({ key: 2 }, e.attributes, V(e.stripVOn(e.actions))), {
599
+ !e.isEmptyHtmlElement(e.Tag) && !e.repeatItem ? (d(), g(J(e.Tag), T({ key: 2 }, e.attributes, P(e.stripVOn(e.actions))), {
604
600
  default: he(() => [
605
- j(l, Y(Ue(e.renderComponentProps)), null, 16),
606
- (d(!0), m($, null, R(e.childrenWithoutParentComponent, (p, h) => (d(), f(a, {
601
+ O(l, Y(Me(e.renderComponentProps)), null, 16),
602
+ (d(!0), m($, null, A(e.childrenWithoutParentComponent, (p, h) => (d(), g(a, {
607
603
  key: "render-block-" + p.id,
608
604
  block: p,
609
605
  context: e.childrenContext
610
606
  }, null, 8, ["block", "context"]))), 128)),
611
- (d(!0), m($, null, R(e.childrenWithoutParentComponent, (p, h) => (d(), f(c, {
607
+ (d(!0), m($, null, A(e.childrenWithoutParentComponent, (p, h) => (d(), g(c, {
612
608
  key: "block-style-" + p.id,
613
609
  block: p,
614
610
  context: e.childrenContext
@@ -619,15 +615,15 @@ function xt(e, t, n, o, r, i) {
619
615
  ], 64))
620
616
  ], 64)) : v("", !0);
621
617
  }
622
- const ye = /* @__PURE__ */ y(Tt, [["render", xt]]), ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
618
+ const ye = /* @__PURE__ */ y($t, [["render", Tt]]), ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
623
619
  __proto__: null,
624
620
  default: ye
625
- }, Symbol.toStringTag, { value: "Module" })), It = g({
621
+ }, Symbol.toStringTag, { value: "Module" })), xt = f({
626
622
  name: "render-blocks",
627
- components: { RenderBlock: ye, BlockStyles: ee },
623
+ components: { RenderBlock: ye, BlockStyles: te },
628
624
  props: ["blocks", "parent", "path", "styleProp"],
629
625
  inject: {
630
- builderContext: O.key
626
+ builderContext: j.key
631
627
  },
632
628
  computed: {
633
629
  className() {
@@ -638,7 +634,7 @@ const ye = /* @__PURE__ */ y(Tt, [["render", xt]]), ke = /* @__PURE__ */ Object.
638
634
  methods: {
639
635
  onClick() {
640
636
  var e, t;
641
- E() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
637
+ V() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
642
638
  {
643
639
  type: "builder.clickEmptyBlocks",
644
640
  data: {
@@ -651,7 +647,7 @@ const ye = /* @__PURE__ */ y(Tt, [["render", xt]]), ke = /* @__PURE__ */ Object.
651
647
  },
652
648
  onMouseEnter() {
653
649
  var e, t;
654
- E() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
650
+ V() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
655
651
  {
656
652
  type: "builder.hoverEmptyBlocks",
657
653
  data: {
@@ -673,11 +669,11 @@ const ye = /* @__PURE__ */ y(Tt, [["render", xt]]), ke = /* @__PURE__ */ Object.
673
669
  }
674
670
  }
675
671
  });
676
- const Rt = ["builder-path", "builder-parent-id", "dataSet"];
677
- function Et(e, t, n, o, r, i) {
678
- const s = S("render-block"), l = S("block-styles");
672
+ const It = ["builder-path", "builder-parent-id", "dataSet"];
673
+ function Rt(e, t, n, o, r, i) {
674
+ const s = b("render-block"), l = b("block-styles");
679
675
  return d(), m("div", {
680
- class: H(e._classStringToObject(e.className + " div-4o9pb21oca6")),
676
+ class: L(e._classStringToObject(e.className + " div-1n1bt6e2i9n")),
681
677
  "builder-path": e.path,
682
678
  "builder-parent-id": e.parent,
683
679
  dataSet: {
@@ -688,24 +684,21 @@ function Et(e, t, n, o, r, i) {
688
684
  onMouseenter: t[1] || (t[1] = (a) => e.onMouseEnter()),
689
685
  onKeypress: t[2] || (t[2] = (a) => e.onClick())
690
686
  }, [
691
- e.blocks ? (d(!0), m($, { key: 0 }, R(e.blocks, (a, c) => (d(), f(s, {
687
+ e.blocks ? (d(!0), m($, { key: 0 }, A(e.blocks, (a, c) => (d(), g(s, {
692
688
  key: "render-block-" + a.id,
693
689
  block: a,
694
690
  context: e.builderContext
695
691
  }, null, 8, ["block", "context"]))), 128)) : v("", !0),
696
- e.blocks ? (d(!0), m($, { key: 1 }, R(e.blocks, (a, c) => (d(), f(l, {
692
+ e.blocks ? (d(!0), m($, { key: 1 }, A(e.blocks, (a, c) => (d(), g(l, {
697
693
  key: "block-style-" + a.id,
698
694
  block: a,
699
695
  context: e.builderContext
700
696
  }, null, 8, ["block", "context"]))), 128)) : v("", !0)
701
- ], 46, Rt);
697
+ ], 46, It);
702
698
  }
703
- const Se = /* @__PURE__ */ y(It, [["render", Et], ["__scopeId", "data-v-61bc5f3a"]]), At = g({
699
+ const Se = /* @__PURE__ */ y(xt, [["render", Rt], ["__scopeId", "data-v-8b51fb80"]]), Et = f({
704
700
  name: "builder-columns",
705
- components: {
706
- RenderInlinedStyles: z,
707
- RenderBlocks: Se
708
- },
701
+ components: { InlinedStyles: K, RenderBlocks: Se },
709
702
  props: [
710
703
  "space",
711
704
  "columns",
@@ -719,11 +712,11 @@ const Se = /* @__PURE__ */ y(It, [["render", Et], ["__scopeId", "data-v-61bc5f3a
719
712
  cols: this.columns || [],
720
713
  stackAt: this.stackColumnsAt || "tablet",
721
714
  flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
722
- TARGET: _
715
+ TARGET: E
723
716
  };
724
717
  },
725
718
  inject: {
726
- builderContext: O.key
719
+ builderContext: j.key
727
720
  },
728
721
  computed: {
729
722
  columnsCssVars() {
@@ -809,7 +802,7 @@ const Se = /* @__PURE__ */ y(It, [["render", Et], ["__scopeId", "data-v-61bc5f3a
809
802
  },
810
803
  getWidthForBreakpointSize(e) {
811
804
  var n, o;
812
- return be(
805
+ return ge(
813
806
  ((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
814
807
  )[e].max;
815
808
  },
@@ -824,12 +817,12 @@ const Se = /* @__PURE__ */ y(It, [["render", Et], ["__scopeId", "data-v-61bc5f3a
824
817
  }
825
818
  }
826
819
  });
827
- function _t(e, t, n, o, r, i) {
828
- const s = S("render-inlined-styles"), l = S("render-blocks");
820
+ function At(e, t, n, o, r, i) {
821
+ const s = b("inlined-styles"), l = b("render-blocks");
829
822
  return d(), m("div", {
830
- class: H(
823
+ class: L(
831
824
  e._classStringToObject(
832
- `builder-columns ${e.builderBlock.id}-breakpoints div-1eih9th5ow6`
825
+ `builder-columns ${e.builderBlock.id}-breakpoints div-361b1o6wv2k`
833
826
  )
834
827
  ),
835
828
  style: N(e.columnsCssVars),
@@ -837,19 +830,19 @@ function _t(e, t, n, o, r, i) {
837
830
  "builder-block-name": "builder-columns"
838
831
  }
839
832
  }, [
840
- e.TARGET !== "reactNative" ? (d(), f(s, {
833
+ e.TARGET !== "reactNative" ? (d(), g(s, {
841
834
  key: 0,
842
835
  styles: e.columnsStyles
843
836
  }, null, 8, ["styles"])) : v("", !0),
844
- (d(!0), m($, null, R(e.columns, (a, c) => (d(), m("div", {
837
+ (d(!0), m($, null, A(e.columns, (a, c) => (d(), m("div", {
845
838
  key: c,
846
- class: "builder-column div-1eih9th5ow6-2",
839
+ class: "builder-column div-361b1o6wv2k-2",
847
840
  style: N(e.columnCssVars(c)),
848
841
  dataSet: {
849
842
  "builder-block-name": "builder-column"
850
843
  }
851
844
  }, [
852
- j(l, {
845
+ O(l, {
853
846
  blocks: a.blocks,
854
847
  path: `component.options.columns.${c}.blocks`,
855
848
  parent: e.builderBlock.id,
@@ -860,49 +853,49 @@ function _t(e, t, n, o, r, i) {
860
853
  ], 4))), 128))
861
854
  ], 6);
862
855
  }
863
- const Bt = /* @__PURE__ */ y(At, [["render", _t], ["__scopeId", "data-v-df2fecd0"]]), Vt = g({
856
+ const Vt = /* @__PURE__ */ y(Et, [["render", At], ["__scopeId", "data-v-fb535450"]]), Bt = f({
864
857
  name: "builder-fragment-component",
865
858
  props: []
866
859
  });
867
- function Pt(e, t, n, o, r, i) {
860
+ function _t(e, t, n, o, r, i) {
868
861
  return d(), m("span", null, [
869
862
  W(e.$slots, "default")
870
863
  ]);
871
864
  }
872
- const Ot = /* @__PURE__ */ y(Vt, [["render", Pt]]);
873
- function ie(e) {
865
+ const Pt = /* @__PURE__ */ y(Bt, [["render", _t]]);
866
+ function se(e) {
874
867
  return e.replace(/http(s)?:/, "");
875
868
  }
876
- function jt(e = "", t, n) {
869
+ function Ot(e = "", t, n) {
877
870
  const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
878
871
  return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
879
872
  }
880
- function Nt(e, t) {
873
+ function jt(e, t) {
881
874
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
882
875
  return e;
883
876
  if (t === "master")
884
- return ie(e);
877
+ return se(e);
885
878
  const n = e.match(
886
879
  /(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i
887
880
  );
888
881
  if (n) {
889
882
  const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
890
- return ie(`${o[0]}_${i}${r}`);
883
+ return se(`${o[0]}_${i}${r}`);
891
884
  }
892
885
  return null;
893
886
  }
894
- function G(e) {
887
+ function q(e) {
895
888
  if (!e)
896
889
  return e;
897
890
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
898
891
  if (e.match(/builder\.io/)) {
899
892
  let n = e;
900
893
  const o = Number(e.split("?width=")[1]);
901
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${jt(e, "width", r)} ${r}w`).concat([n]).join(", ");
894
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${Ot(e, "width", r)} ${r}w`).concat([n]).join(", ");
902
895
  }
903
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Nt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
896
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [jt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
904
897
  }
905
- const Ft = g({
898
+ const Nt = f({
906
899
  name: "builder-image",
907
900
  props: [
908
901
  "image",
@@ -926,10 +919,10 @@ const Ft = g({
926
919
  return this.srcset;
927
920
  if (this.srcset && ((n = this.image) == null ? void 0 : n.includes("builder.io/api/v1/image"))) {
928
921
  if (!this.srcset.includes(this.image.split("?")[0]))
929
- return console.debug("Removed given srcset"), G(t);
922
+ return console.debug("Removed given srcset"), q(t);
930
923
  } else if (this.image && !this.srcset)
931
- return G(t);
932
- return G(t);
924
+ return q(t);
925
+ return q(t);
933
926
  },
934
927
  webpSrcSet() {
935
928
  var e;
@@ -958,20 +951,20 @@ const Ft = g({
958
951
  }
959
952
  }
960
953
  });
961
- const Ut = ["srcset"], Mt = ["alt", "role", "src", "srcset", "sizes"], Lt = {
954
+ const Ft = ["srcset"], Ut = ["alt", "role", "src", "srcset", "sizes"], Mt = {
962
955
  key: 2,
963
- class: "div-256wrwn33ry-2"
956
+ class: "div-7jvpanrlkn-2"
964
957
  };
965
958
  function Wt(e, t, n, o, r, i) {
966
959
  var s, l, a, c;
967
960
  return d(), m($, null, [
968
- oe("picture", null, [
961
+ re("picture", null, [
969
962
  e.webpSrcSet ? (d(), m("source", {
970
963
  key: 0,
971
964
  type: "image/webp",
972
965
  srcset: e.webpSrcSet
973
- }, null, 8, Ut)) : v("", !0),
974
- oe("img", {
966
+ }, null, 8, Ft)) : v("", !0),
967
+ re("img", {
975
968
  loading: "lazy",
976
969
  alt: e.altText,
977
970
  role: e.altText ? "presentation" : void 0,
@@ -980,30 +973,30 @@ function Wt(e, t, n, o, r, i) {
980
973
  objectFit: e.backgroundSize || "cover",
981
974
  ...e.aspectRatioCss
982
975
  }),
983
- class: H(
976
+ class: L(
984
977
  e._classStringToObject(
985
- "builder-image" + (e.className ? " " + e.className : "") + " img-256wrwn33ry"
978
+ "builder-image" + (e.className ? " " + e.className : "") + " img-7jvpanrlkn"
986
979
  )
987
980
  ),
988
981
  src: e.image,
989
982
  srcset: e.srcSetToUse,
990
983
  sizes: e.sizes
991
- }, null, 14, Mt)
984
+ }, null, 14, Ut)
992
985
  ]),
993
986
  e.aspectRatio && !(((l = (s = e.builderBlock) == null ? void 0 : s.children) == null ? void 0 : l.length) && e.fitContent) ? (d(), m("div", {
994
987
  key: 0,
995
- class: "builder-image-sizer div-256wrwn33ry",
988
+ class: "builder-image-sizer div-7jvpanrlkn",
996
989
  style: N({
997
990
  paddingTop: e.aspectRatio * 100 + "%"
998
991
  })
999
992
  }, null, 4)) : v("", !0),
1000
993
  ((c = (a = e.builderBlock) == null ? void 0 : a.children) == null ? void 0 : c.length) && e.fitContent ? W(e.$slots, "default", { key: 1 }, void 0, !0) : v("", !0),
1001
- !e.fitContent && e.children ? (d(), m("div", Lt, [
994
+ !e.fitContent && e.children ? (d(), m("div", Mt, [
1002
995
  W(e.$slots, "default", {}, void 0, !0)
1003
996
  ])) : v("", !0)
1004
997
  ], 64);
1005
998
  }
1006
- const Ht = /* @__PURE__ */ y(Ft, [["render", Wt], ["__scopeId", "data-v-f59f4313"]]), Kt = g({
999
+ const Lt = /* @__PURE__ */ y(Nt, [["render", Wt], ["__scopeId", "data-v-60254c11"]]), Ht = f({
1007
1000
  name: "builder-section-component",
1008
1001
  props: ["maxWidth", "attributes"],
1009
1002
  methods: {
@@ -1024,8 +1017,8 @@ const Ht = /* @__PURE__ */ y(Ft, [["render", Wt], ["__scopeId", "data-v-f59f4313
1024
1017
  }
1025
1018
  }
1026
1019
  });
1027
- function zt(e, t, n, o, r, i) {
1028
- return d(), m("section", x({
1020
+ function Kt(e, t, n, o, r, i) {
1021
+ return d(), m("section", T({
1029
1022
  style: {
1030
1023
  width: "100%",
1031
1024
  alignSelf: "stretch",
@@ -1038,11 +1031,102 @@ function zt(e, t, n, o, r, i) {
1038
1031
  marginLeft: "auto",
1039
1032
  marginRight: "auto"
1040
1033
  }
1041
- }, e.filterAttrs(e.attributes, !1), V(e.filterAttrs(e.attributes, !0), !0)), [
1034
+ }, e.filterAttrs(e.attributes, !1), P(e.filterAttrs(e.attributes, !0), !0)), [
1042
1035
  W(e.$slots, "default")
1043
1036
  ], 16);
1044
1037
  }
1045
- const Dt = /* @__PURE__ */ y(Kt, [["render", zt]]), qt = {
1038
+ const zt = /* @__PURE__ */ y(Ht, [["render", Kt]]), M = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
1039
+ ...t,
1040
+ testVariationId: t.id,
1041
+ id: e == null ? void 0 : e.id
1042
+ })), Dt = ({
1043
+ canTrack: e,
1044
+ content: t
1045
+ }) => !(!(M(t).length > 0) || !e);
1046
+ function qt(e, t, n) {
1047
+ var s;
1048
+ function o() {
1049
+ function l(S, w, I) {
1050
+ let _ = "";
1051
+ if (I) {
1052
+ const x = new Date();
1053
+ x.setTime(x.getTime() + I * 24 * 60 * 60 * 1e3), _ = "; expires=" + x.toUTCString();
1054
+ }
1055
+ document.cookie = S + "=" + (w || "") + _ + "; path=/; Secure; SameSite=None";
1056
+ }
1057
+ function a(S) {
1058
+ const w = S + "=", I = document.cookie.split(";");
1059
+ for (let _ = 0; _ < I.length; _++) {
1060
+ let x = I[_];
1061
+ for (; x.charAt(0) === " "; )
1062
+ x = x.substring(1, x.length);
1063
+ if (x.indexOf(w) === 0)
1064
+ return x.substring(w.length, x.length);
1065
+ }
1066
+ return null;
1067
+ }
1068
+ const c = `builder.tests.${e}`, u = a(c), p = t.map((S) => S.id).concat(e);
1069
+ if (u && p.includes(u))
1070
+ return u;
1071
+ let h = 0;
1072
+ const k = Math.random();
1073
+ for (let S = 0; S < t.length; S++) {
1074
+ const w = t[S], I = w.testRatio;
1075
+ if (h += I, k < h)
1076
+ return l(c, w.id), w.id;
1077
+ }
1078
+ return l(c, e), e;
1079
+ }
1080
+ const r = o(), i = (s = document.currentScript) == null ? void 0 : s.previousElementSibling;
1081
+ if (n) {
1082
+ i.remove();
1083
+ const l = document.currentScript;
1084
+ l == null || l.remove();
1085
+ } else {
1086
+ const l = t.concat({ id: e }).filter((a) => a.id !== r).map((a) => `.variant-${a.id} { display: none; }
1087
+ `).join("");
1088
+ i.innerHTML = l;
1089
+ }
1090
+ }
1091
+ function Gt(e, t, n) {
1092
+ var a;
1093
+ if (!navigator.cookieEnabled)
1094
+ return;
1095
+ function o(c) {
1096
+ const u = c + "=", p = document.cookie.split(";");
1097
+ for (let h = 0; h < p.length; h++) {
1098
+ let k = p[h];
1099
+ for (; k.charAt(0) === " "; )
1100
+ k = k.substring(1, k.length);
1101
+ if (k.indexOf(u) === 0)
1102
+ return k.substring(u.length, k.length);
1103
+ }
1104
+ return null;
1105
+ }
1106
+ const r = `builder.tests.${t}`, i = o(r), s = (a = document.currentScript) == null ? void 0 : a.parentElement, l = e === t;
1107
+ if (i === e) {
1108
+ if (l)
1109
+ return;
1110
+ s == null || s.removeAttribute("hidden"), s == null || s.removeAttribute("aria-hidden");
1111
+ } else {
1112
+ l && (n ? s == null || s.remove() : (s == null || s.setAttribute("hidden", "true"), s == null || s.setAttribute("aria-hidden", "true")));
1113
+ return;
1114
+ }
1115
+ }
1116
+ const Jt = (e) => e === "react" || e === "reactNative", ve = Jt(E), Ce = "builderIoAbTest", we = "builderIoRenderContent", Yt = () => {
1117
+ const e = qt.toString().replace(/\s+/g, " "), t = Gt.toString().replace(/\s+/g, " ");
1118
+ return `
1119
+ window.${Ce} = ${e}
1120
+ window.${we} = ${t}
1121
+ `;
1122
+ }, Xt = (e, t) => `
1123
+ window.${Ce}("${t}",${JSON.stringify(
1124
+ e
1125
+ )}, ${ve})`, Qt = ({
1126
+ contentId: e,
1127
+ variationId: t
1128
+ }) => `
1129
+ window.${we}("${t}", "${e}", ${ve})`, Zt = {
1046
1130
  name: "Core:Button",
1047
1131
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1048
1132
  defaultStyles: {
@@ -1078,10 +1162,10 @@ const Dt = /* @__PURE__ */ y(Kt, [["render", zt]]), qt = {
1078
1162
  ],
1079
1163
  static: !0,
1080
1164
  noWrap: !0
1081
- }, D = (e) => {
1165
+ }, z = (e) => {
1082
1166
  const t = e.toString().trim();
1083
1167
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
1084
- }, Gt = {
1168
+ }, en = {
1085
1169
  name: "Columns",
1086
1170
  inputs: [
1087
1171
  {
@@ -1268,7 +1352,7 @@ const Dt = /* @__PURE__ */ y(Kt, [["render", zt]]), qt = {
1268
1352
  ]
1269
1353
  }
1270
1354
  ],
1271
- onChange: D((e) => {
1355
+ onChange: z((e) => {
1272
1356
  function t() {
1273
1357
  n.forEach((o) => {
1274
1358
  o.delete("width");
@@ -1305,13 +1389,13 @@ const Dt = /* @__PURE__ */ y(Kt, [["render", zt]]), qt = {
1305
1389
  advanced: !0
1306
1390
  }
1307
1391
  ]
1308
- }, Jt = {
1392
+ }, tn = {
1309
1393
  name: "Fragment",
1310
1394
  static: !0,
1311
1395
  hidden: !0,
1312
1396
  canHaveChildren: !0,
1313
1397
  noWrap: !0
1314
- }, Yt = {
1398
+ }, nn = {
1315
1399
  name: "Image",
1316
1400
  static: !0,
1317
1401
  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",
@@ -1330,7 +1414,7 @@ const Dt = /* @__PURE__ */ y(Kt, [["render", zt]]), qt = {
1330
1414
  allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
1331
1415
  required: !0,
1332
1416
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1333
- onChange: D(
1417
+ onChange: z(
1334
1418
  (e) => {
1335
1419
  e.delete("srcset"), e.delete("noWebp");
1336
1420
  function n(s, l = 6e4) {
@@ -1438,7 +1522,7 @@ const Dt = /* @__PURE__ */ y(Kt, [["render", zt]]), qt = {
1438
1522
  defaultValue: 0.7041
1439
1523
  }
1440
1524
  ]
1441
- }, Xt = {
1525
+ }, on = {
1442
1526
  name: "Core:Section",
1443
1527
  static: !0,
1444
1528
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1482,7 +1566,7 @@ const Dt = /* @__PURE__ */ y(Kt, [["render", zt]]), qt = {
1482
1566
  }
1483
1567
  }
1484
1568
  ]
1485
- }, Qt = {
1569
+ }, rn = {
1486
1570
  name: "Symbol",
1487
1571
  noWrap: !0,
1488
1572
  static: !0,
@@ -1520,7 +1604,7 @@ const Dt = /* @__PURE__ */ y(Kt, [["render", zt]]), qt = {
1520
1604
  type: "boolean"
1521
1605
  }
1522
1606
  ]
1523
- }, Zt = {
1607
+ }, sn = {
1524
1608
  name: "Text",
1525
1609
  static: !0,
1526
1610
  image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",
@@ -1539,20 +1623,21 @@ const Dt = /* @__PURE__ */ y(Kt, [["render", zt]]), qt = {
1539
1623
  height: "auto",
1540
1624
  textAlign: "center"
1541
1625
  }
1542
- }, en = g({
1626
+ }, an = f({
1543
1627
  name: "builder-text",
1544
1628
  props: ["text"]
1545
- }), tn = ["innerHTML"];
1546
- function nn(e, t, n, o, r, i) {
1629
+ }), ln = ["innerHTML"];
1630
+ function cn(e, t, n, o, r, i) {
1631
+ var s;
1547
1632
  return d(), m("span", {
1548
1633
  class: "builder-text",
1549
- innerHTML: e.text,
1634
+ innerHTML: (s = e.text) == null ? void 0 : s.toString(),
1550
1635
  style: {
1551
1636
  outline: "none"
1552
1637
  }
1553
- }, null, 8, tn);
1638
+ }, null, 8, ln);
1554
1639
  }
1555
- const on = /* @__PURE__ */ y(en, [["render", nn]]), rn = {
1640
+ const dn = /* @__PURE__ */ y(an, [["render", cn]]), un = {
1556
1641
  name: "Video",
1557
1642
  canHaveChildren: !0,
1558
1643
  defaultStyles: {
@@ -1653,7 +1738,7 @@ const on = /* @__PURE__ */ y(en, [["render", nn]]), rn = {
1653
1738
  advanced: !0
1654
1739
  }
1655
1740
  ]
1656
- }, sn = g({
1741
+ }, pn = f({
1657
1742
  name: "builder-video",
1658
1743
  props: [
1659
1744
  "autoPlay",
@@ -1694,10 +1779,10 @@ const on = /* @__PURE__ */ y(en, [["render", nn]]), rn = {
1694
1779
  };
1695
1780
  }
1696
1781
  }
1697
- }), an = ["src", "poster"];
1698
- function ln(e, t, n, o, r, i) {
1782
+ }), mn = ["src", "poster"];
1783
+ function hn(e, t, n, o, r, i) {
1699
1784
  var s;
1700
- return d(), m("video", x({
1785
+ return d(), m("video", T({
1701
1786
  style: {
1702
1787
  width: "100%",
1703
1788
  height: "100%",
@@ -1708,9 +1793,9 @@ function ln(e, t, n, o, r, i) {
1708
1793
  },
1709
1794
  src: e.video || "no-src",
1710
1795
  poster: e.posterImage
1711
- }, e.spreadProps), null, 16, an);
1796
+ }, e.spreadProps), null, 16, mn);
1712
1797
  }
1713
- const cn = /* @__PURE__ */ y(sn, [["render", ln]]), dn = {
1798
+ const fn = /* @__PURE__ */ y(pn, [["render", hn]]), gn = {
1714
1799
  name: "Embed",
1715
1800
  static: !0,
1716
1801
  inputs: [
@@ -1720,7 +1805,7 @@ const cn = /* @__PURE__ */ y(sn, [["render", ln]]), dn = {
1720
1805
  required: !0,
1721
1806
  defaultValue: "",
1722
1807
  helperText: "e.g. enter a youtube url, google map, etc",
1723
- onChange: D(
1808
+ onChange: z(
1724
1809
  (e) => {
1725
1810
  const t = e.get("url");
1726
1811
  if (t)
@@ -1745,11 +1830,11 @@ const cn = /* @__PURE__ */ y(sn, [["render", ln]]), dn = {
1745
1830
  hideFromUI: !0
1746
1831
  }
1747
1832
  ]
1748
- }, un = [
1833
+ }, bn = [
1749
1834
  "text/javascript",
1750
1835
  "application/javascript",
1751
1836
  "application/ecmascript"
1752
- ], pn = (e) => un.includes(e.type), mn = g({
1837
+ ], yn = (e) => bn.includes(e.type), kn = f({
1753
1838
  name: "builder-embed",
1754
1839
  props: ["content"],
1755
1840
  data() {
@@ -1782,7 +1867,7 @@ const cn = /* @__PURE__ */ y(sn, [["render", ln]]), dn = {
1782
1867
  this.scriptsInserted.push(n.src);
1783
1868
  const o = document.createElement("script");
1784
1869
  o.async = !0, o.src = n.src, document.head.appendChild(o);
1785
- } else if (pn(n) && !this.scriptsRun.includes(n.innerText))
1870
+ } else if (yn(n) && !this.scriptsRun.includes(n.innerText))
1786
1871
  try {
1787
1872
  this.scriptsRun.push(n.innerText), new Function(n.innerText)();
1788
1873
  } catch (o) {
@@ -1791,15 +1876,15 @@ const cn = /* @__PURE__ */ y(sn, [["render", ln]]), dn = {
1791
1876
  }
1792
1877
  }
1793
1878
  }
1794
- }), hn = ["innerHTML"];
1795
- function fn(e, t, n, o, r, i) {
1879
+ }), Sn = ["innerHTML"];
1880
+ function vn(e, t, n, o, r, i) {
1796
1881
  return d(), m("div", {
1797
1882
  class: "builder-embed",
1798
1883
  ref: "elem",
1799
1884
  innerHTML: e.content
1800
- }, null, 8, hn);
1885
+ }, null, 8, Sn);
1801
1886
  }
1802
- const bn = /* @__PURE__ */ y(mn, [["render", fn]]), gn = g({
1887
+ const Cn = /* @__PURE__ */ y(kn, [["render", vn]]), wn = f({
1803
1888
  name: "builder-img-component",
1804
1889
  props: [
1805
1890
  "backgroundSize",
@@ -1810,7 +1895,7 @@ const bn = /* @__PURE__ */ y(mn, [["render", fn]]), gn = g({
1810
1895
  "attributes"
1811
1896
  ],
1812
1897
  data() {
1813
- return { isEditing: E };
1898
+ return { isEditing: V };
1814
1899
  },
1815
1900
  methods: {
1816
1901
  filterAttrs: function(t = {}, n) {
@@ -1829,9 +1914,9 @@ const bn = /* @__PURE__ */ y(mn, [["render", fn]]), gn = g({
1829
1914
  );
1830
1915
  }
1831
1916
  }
1832
- }), yn = ["alt", "src"];
1833
- function kn(e, t, n, o, r, i) {
1834
- return d(), m("img", x({
1917
+ }), $n = ["alt", "src"];
1918
+ function Tn(e, t, n, o, r, i) {
1919
+ return d(), m("img", T({
1835
1920
  style: {
1836
1921
  objectFit: e.backgroundSize || "cover",
1837
1922
  objectPosition: e.backgroundPosition || "center"
@@ -1839,9 +1924,9 @@ function kn(e, t, n, o, r, i) {
1839
1924
  key: e.isEditing() && e.imgSrc || "default-key",
1840
1925
  alt: e.altText,
1841
1926
  src: e.imgSrc || e.image
1842
- }, e.filterAttrs(e.attributes, !1), V(e.filterAttrs(e.attributes, !0), !0)), null, 16, yn);
1927
+ }, e.filterAttrs(e.attributes, !1), P(e.filterAttrs(e.attributes, !0), !0)), null, 16, $n);
1843
1928
  }
1844
- const Sn = /* @__PURE__ */ y(gn, [["render", kn]]), vn = {
1929
+ const xn = /* @__PURE__ */ y(wn, [["render", Tn]]), In = {
1845
1930
  name: "Raw:Img",
1846
1931
  hideFromInsertMenu: !0,
1847
1932
  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",
@@ -1856,7 +1941,7 @@ const Sn = /* @__PURE__ */ y(gn, [["render", kn]]), vn = {
1856
1941
  ],
1857
1942
  noWrap: !0,
1858
1943
  static: !0
1859
- }, Cn = g({
1944
+ }, Rn = f({
1860
1945
  name: "builder-custom-code",
1861
1946
  props: ["replaceNodes", "code"],
1862
1947
  data() {
@@ -1903,19 +1988,19 @@ const Sn = /* @__PURE__ */ y(gn, [["render", kn]]), vn = {
1903
1988
  return t;
1904
1989
  }
1905
1990
  }
1906
- }), $n = ["innerHTML"];
1907
- function wn(e, t, n, o, r, i) {
1991
+ }), En = ["innerHTML"];
1992
+ function An(e, t, n, o, r, i) {
1908
1993
  return d(), m("div", {
1909
1994
  ref: "elem",
1910
- class: H(
1995
+ class: L(
1911
1996
  e._classStringToObject(
1912
1997
  "builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")
1913
1998
  )
1914
1999
  ),
1915
2000
  innerHTML: e.code
1916
- }, null, 10, $n);
2001
+ }, null, 10, En);
1917
2002
  }
1918
- const Tn = /* @__PURE__ */ y(Cn, [["render", wn]]), xn = {
2003
+ const Vn = /* @__PURE__ */ y(Rn, [["render", An]]), Bn = {
1919
2004
  name: "Custom Code",
1920
2005
  static: !0,
1921
2006
  requiredPermissions: ["editCode"],
@@ -1941,29 +2026,29 @@ const Tn = /* @__PURE__ */ y(Cn, [["render", wn]]), xn = {
1941
2026
  advanced: !0
1942
2027
  }
1943
2028
  ]
1944
- }, In = () => [
1945
- { component: Ke, ...qt },
1946
- { component: Bt, ...Gt },
1947
- { component: Tn, ...xn },
1948
- { component: bn, ...dn },
1949
- { component: Ot, ...Jt },
1950
- { component: Ht, ...Yt },
1951
- { component: Sn, ...vn },
1952
- { component: Dt, ...Xt },
1953
- { component: Wo, ...Qt },
1954
- { component: on, ...Zt },
1955
- { component: cn, ...rn }
1956
- ], U = "[Builder.io]: ", A = {
2029
+ }, _n = () => [
2030
+ { component: ze, ...Zt },
2031
+ { component: Vt, ...en },
2032
+ { component: Vn, ...Bn },
2033
+ { component: Cn, ...gn },
2034
+ { component: Pt, ...tn },
2035
+ { component: Lt, ...nn },
2036
+ { component: xn, ...In },
2037
+ { component: zt, ...on },
2038
+ { component: qo, ...rn },
2039
+ { component: dn, ...sn },
2040
+ { component: fn, ...un }
2041
+ ], U = "[Builder.io]: ", B = {
1957
2042
  log: (...e) => console.log(U, ...e),
1958
2043
  error: (...e) => console.error(U, ...e),
1959
2044
  warn: (...e) => console.warn(U, ...e),
1960
2045
  debug: (...e) => console.debug(U, ...e)
1961
- }, Rn = (e) => {
2046
+ }, Pn = (e) => {
1962
2047
  if (e === "localhost" || e === "127.0.0.1")
1963
2048
  return e;
1964
2049
  const t = e.split(".");
1965
2050
  return t.length > 2 ? t.slice(1).join(".") : e;
1966
- }, ve = ({
2051
+ }, $e = ({
1967
2052
  name: e,
1968
2053
  canTrack: t
1969
2054
  }) => {
@@ -1971,26 +2056,26 @@ const Tn = /* @__PURE__ */ y(Cn, [["render", wn]]), xn = {
1971
2056
  try {
1972
2057
  return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
1973
2058
  } catch (o) {
1974
- A.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
2059
+ B.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
1975
2060
  return;
1976
2061
  }
1977
- }, Ce = async (e) => ve(e), En = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(I).join("; "), An = [
2062
+ }, Te = async (e) => $e(e), On = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(R).join("; "), jn = [
1978
2063
  ["secure", ""],
1979
2064
  ["SameSite", "None"]
1980
- ], _n = ({
2065
+ ], Nn = ({
1981
2066
  name: e,
1982
2067
  value: t,
1983
2068
  expires: n
1984
2069
  }) => {
1985
- const r = (C() ? location.protocol === "https:" : !0) ? An : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [
2070
+ const r = (C() ? location.protocol === "https:" : !0) ? jn : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [
1986
2071
  [e, t],
1987
2072
  ...i,
1988
2073
  ["path", "/"],
1989
- ["domain", Rn(window.location.hostname)],
2074
+ ["domain", Pn(window.location.hostname)],
1990
2075
  ...r
1991
2076
  ];
1992
- return En(s);
1993
- }, $e = async ({
2077
+ return On(s);
2078
+ }, xe = async ({
1994
2079
  name: e,
1995
2080
  value: t,
1996
2081
  expires: n,
@@ -1999,15 +2084,15 @@ const Tn = /* @__PURE__ */ y(Cn, [["render", wn]]), xn = {
1999
2084
  try {
2000
2085
  if (!o)
2001
2086
  return;
2002
- const r = _n({ name: e, value: t, expires: n });
2087
+ const r = Nn({ name: e, value: t, expires: n });
2003
2088
  document.cookie = r;
2004
2089
  } catch (r) {
2005
- A.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
2090
+ B.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
2006
2091
  }
2007
- }, Bn = "builder.tests", te = (e) => `${Bn}.${e}`, Vn = ({ contentId: e }) => Ce({ name: te(e), canTrack: !0 }), Pn = ({ contentId: e }) => ve({ name: te(e), canTrack: !0 }), On = ({
2092
+ }, Fn = "builder.tests", ne = (e) => `${Fn}.${e}`, Un = ({ contentId: e }) => Te({ name: ne(e), canTrack: !0 }), Mn = ({ contentId: e }) => $e({ name: ne(e), canTrack: !0 }), Wn = ({
2008
2093
  contentId: e,
2009
2094
  value: t
2010
- }) => $e({ name: te(e), value: t, canTrack: !0 }), we = (e) => I(e.id) && I(e.variations) && Object.keys(e.variations).length > 0, jn = ({
2095
+ }) => xe({ name: ne(e), value: t, canTrack: !0 }), Ie = (e) => R(e.id) && R(e.variations) && Object.keys(e.variations).length > 0, Ln = ({
2011
2096
  id: e,
2012
2097
  variations: t
2013
2098
  }) => {
@@ -2020,15 +2105,15 @@ const Tn = /* @__PURE__ */ y(Cn, [["render", wn]]), xn = {
2020
2105
  return i;
2021
2106
  }
2022
2107
  return e;
2023
- }, Te = (e) => {
2024
- const t = jn(e);
2025
- return On({
2108
+ }, Re = (e) => {
2109
+ const t = Ln(e);
2110
+ return Wn({
2026
2111
  contentId: e.id,
2027
2112
  value: t
2028
2113
  }).catch((n) => {
2029
- A.error("could not store A/B test variation: ", n);
2114
+ B.error("could not store A/B test variation: ", n);
2030
2115
  }), t;
2031
- }, xe = ({
2116
+ }, Ee = ({
2032
2117
  item: e,
2033
2118
  testGroupId: t
2034
2119
  }) => {
@@ -2041,7 +2126,7 @@ const Tn = /* @__PURE__ */ y(Cn, [["render", wn]]), xn = {
2041
2126
  testVariationId: n.id,
2042
2127
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
2043
2128
  };
2044
- }, Nn = ({
2129
+ }, Hn = ({
2045
2130
  item: e,
2046
2131
  canTrack: t
2047
2132
  }) => {
@@ -2049,40 +2134,40 @@ const Tn = /* @__PURE__ */ y(Cn, [["render", wn]]), xn = {
2049
2134
  return e;
2050
2135
  if (!e)
2051
2136
  return;
2052
- if (!we(e))
2137
+ if (!Ie(e))
2053
2138
  return e;
2054
- const n = Pn({
2139
+ const n = Mn({
2055
2140
  contentId: e.id
2056
- }) || Te({
2141
+ }) || Re({
2057
2142
  variations: e.variations,
2058
2143
  id: e.id
2059
- }), o = xe({ item: e, testGroupId: n });
2144
+ }), o = Ee({ item: e, testGroupId: n });
2060
2145
  return {
2061
2146
  ...e,
2062
2147
  ...o
2063
2148
  };
2064
- }, Fn = async ({
2149
+ }, Kn = async ({
2065
2150
  item: e,
2066
2151
  canTrack: t
2067
2152
  }) => {
2068
- if (!t || !we(e))
2153
+ if (!t || !Ie(e))
2069
2154
  return e;
2070
- const o = await Vn({
2155
+ const o = await Un({
2071
2156
  contentId: e.id
2072
- }) || Te({
2157
+ }) || Re({
2073
2158
  variations: e.variations,
2074
2159
  id: e.id
2075
- }), r = xe({ item: e, testGroupId: o });
2160
+ }), r = Ee({ item: e, testGroupId: o });
2076
2161
  return {
2077
2162
  ...e,
2078
2163
  ...r
2079
2164
  };
2080
- }, M = (e) => I(e) ? e : !0;
2081
- function Un() {
2165
+ }, X = (e) => R(e) ? e : !0;
2166
+ function zn() {
2082
2167
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
2083
2168
  }
2084
- function Mn() {
2085
- const e = Un().fetch;
2169
+ function Dn() {
2170
+ const e = zn().fetch;
2086
2171
  if (typeof e > "u")
2087
2172
  throw console.warn(
2088
2173
  `Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
@@ -2090,38 +2175,38 @@ function Mn() {
2090
2175
  ), new Error("Builder SDK could not find a global `fetch` function");
2091
2176
  return e;
2092
2177
  }
2093
- const Ie = Mn();
2094
- function X(e, t = null, n = ".") {
2178
+ const Ae = Dn();
2179
+ function Q(e, t = null, n = ".") {
2095
2180
  return Object.keys(e).reduce((o, r) => {
2096
2181
  const i = e[r], s = [t, r].filter(Boolean).join(n);
2097
2182
  return [
2098
2183
  typeof i == "object",
2099
2184
  i !== null,
2100
2185
  !(Array.isArray(i) && i.length === 0)
2101
- ].every(Boolean) ? { ...o, ...X(i, s, n) } : { ...o, [s]: i };
2186
+ ].every(Boolean) ? { ...o, ...Q(i, s, n) } : { ...o, [s]: i };
2102
2187
  }, {});
2103
2188
  }
2104
- const se = "builder.", Ln = "options.", Wn = (e) => {
2189
+ const ae = "builder.", qn = "options.", Gn = (e) => {
2105
2190
  const t = {};
2106
2191
  return e.forEach((n, o) => {
2107
2192
  t[o] = n;
2108
2193
  }), t;
2109
- }, Hn = (e) => {
2194
+ }, Jn = (e) => {
2110
2195
  if (!e)
2111
2196
  return {};
2112
- const t = Re(e), n = {};
2197
+ const t = Ve(e), n = {};
2113
2198
  return Object.keys(t).forEach((o) => {
2114
- if (o.startsWith(se)) {
2115
- const r = o.replace(se, "").replace(Ln, "");
2199
+ if (o.startsWith(ae)) {
2200
+ const r = o.replace(ae, "").replace(qn, "");
2116
2201
  n[r] = t[o];
2117
2202
  }
2118
2203
  }), n;
2119
- }, Kn = () => {
2204
+ }, Yn = () => {
2120
2205
  if (!C())
2121
2206
  return {};
2122
2207
  const e = new URLSearchParams(window.location.search);
2123
- return Hn(e);
2124
- }, Re = (e) => e instanceof URLSearchParams ? Wn(e) : e, zn = "v3", Ee = (e) => {
2208
+ return Jn(e);
2209
+ }, Ve = (e) => e instanceof URLSearchParams ? Gn(e) : e, Xn = "v3", Be = (e) => {
2125
2210
  const {
2126
2211
  limit: t = 30,
2127
2212
  userAttributes: n,
@@ -2132,7 +2217,7 @@ const se = "builder.", Ln = "options.", Wn = (e) => {
2132
2217
  includeRefs: l = !0,
2133
2218
  enrich: a,
2134
2219
  locale: c,
2135
- apiVersion: u = zn
2220
+ apiVersion: u = Xn
2136
2221
  } = e;
2137
2222
  if (!s)
2138
2223
  throw new Error("Missing API key");
@@ -2143,148 +2228,148 @@ const se = "builder.", Ln = "options.", Wn = (e) => {
2143
2228
  const p = new URL(
2144
2229
  `https://cdn.builder.io/api/${u}/content/${i}?apiKey=${s}&limit=${t}&noTraverse=${r}&includeRefs=${l}${c ? `&locale=${c}` : ""}${a ? `&enrich=${a}` : ""}`
2145
2230
  ), h = {
2146
- ...Kn(),
2147
- ...Re(e.options || {})
2148
- }, k = X(h);
2149
- for (const b in k)
2150
- p.searchParams.set(b, String(k[b]));
2231
+ ...Yn(),
2232
+ ...Ve(e.options || {})
2233
+ }, k = Q(h);
2234
+ for (const S in k)
2235
+ p.searchParams.set(S, String(k[S]));
2151
2236
  if (n && p.searchParams.set("userAttributes", JSON.stringify(n)), o) {
2152
- const b = X({ query: o });
2153
- for (const w in b)
2154
- p.searchParams.set(w, JSON.stringify(b[w]));
2237
+ const S = Q({ query: o });
2238
+ for (const w in S)
2239
+ p.searchParams.set(w, JSON.stringify(S[w]));
2155
2240
  }
2156
2241
  return p;
2157
- }, Ae = (e) => "results" in e;
2158
- async function _e(e) {
2159
- const t = await Gn({ ...e, limit: 1 });
2160
- return t && Ae(t) && t.results[0] || null;
2242
+ }, _e = (e) => "results" in e;
2243
+ async function Pe(e) {
2244
+ const t = await eo({ ...e, limit: 1 });
2245
+ return t && _e(t) && t.results[0] || null;
2161
2246
  }
2162
- const Dn = async (e) => {
2163
- const t = Ee(e);
2164
- return await (await Ie(t.href)).json();
2165
- }, qn = async (e, t) => {
2166
- const n = M(e.canTrack);
2167
- if (!n || !(C() || _ === "reactNative"))
2247
+ const Qn = async (e) => {
2248
+ const t = Be(e);
2249
+ return await (await Ae(t.href)).json();
2250
+ }, Zn = async (e, t) => {
2251
+ const n = X(e.canTrack);
2252
+ if (!n || !(C() || E === "reactNative"))
2168
2253
  return t;
2169
2254
  try {
2170
2255
  const o = [];
2171
2256
  for (const r of t.results)
2172
- o.push(await Fn({ item: r, canTrack: n }));
2257
+ o.push(await Kn({ item: r, canTrack: n }));
2173
2258
  t.results = o;
2174
2259
  } catch (o) {
2175
- A.error("Could not process A/B tests. ", o);
2260
+ B.error("Could not process A/B tests. ", o);
2176
2261
  }
2177
2262
  return t;
2178
2263
  };
2179
- async function Gn(e) {
2264
+ async function eo(e) {
2180
2265
  try {
2181
- const t = Ee(e), n = await Dn(e);
2182
- return Ae(n) ? qn(e, n) : (A.error("Error fetching data. ", { url: t, content: n, options: e }), n);
2266
+ const t = Be(e), n = await Qn(e);
2267
+ return _e(n) ? Zn(e, n) : (B.error("Error fetching data. ", { url: t, content: n, options: e }), n);
2183
2268
  } catch (t) {
2184
- return A.error("Error fetching data. ", t), null;
2269
+ return B.error("Error fetching data. ", t), null;
2185
2270
  }
2186
2271
  }
2187
- function Jn() {
2188
- return !C() || E() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
2272
+ function to() {
2273
+ return !C() || V() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
2189
2274
  }
2190
- const Yn = [], Xn = ({
2275
+ const no = [], oo = ({
2191
2276
  component: e,
2192
2277
  ...t
2193
2278
  }) => ({
2194
2279
  type: "builder.registerComponent",
2195
- data: Zn(t)
2196
- }), Qn = (e) => typeof e == "function" ? D(e) : K(e), Zn = ({
2280
+ data: io(t)
2281
+ }), ro = (e) => typeof e == "function" ? z(e) : H(e), io = ({
2197
2282
  inputs: e,
2198
2283
  ...t
2199
2284
  }) => ({
2200
- ...K(t),
2285
+ ...H(t),
2201
2286
  inputs: e == null ? void 0 : e.map(
2202
2287
  (n) => Object.entries(n).reduce(
2203
2288
  (o, [r, i]) => ({
2204
2289
  ...o,
2205
- [r]: Qn(i)
2290
+ [r]: ro(i)
2206
2291
  }),
2207
2292
  {}
2208
2293
  )
2209
2294
  )
2210
2295
  });
2211
- function eo() {
2296
+ function so() {
2212
2297
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
2213
2298
  const t = Math.random() * 16 | 0;
2214
2299
  return (e == "x" ? t : t & 3 | 8).toString(16);
2215
2300
  });
2216
2301
  }
2217
- function Be() {
2218
- return eo().replace(/-/g, "");
2302
+ function Oe() {
2303
+ return so().replace(/-/g, "");
2219
2304
  }
2220
- const Ve = "builderSessionId", to = async ({
2305
+ const je = "builderSessionId", ao = async ({
2221
2306
  canTrack: e
2222
2307
  }) => {
2223
2308
  if (!e)
2224
2309
  return;
2225
- const t = await Ce({
2226
- name: Ve,
2310
+ const t = await Te({
2311
+ name: je,
2227
2312
  canTrack: e
2228
2313
  });
2229
- if (I(t))
2314
+ if (R(t))
2230
2315
  return t;
2231
2316
  {
2232
- const n = no();
2233
- return oo({ id: n, canTrack: e }), n;
2317
+ const n = lo();
2318
+ return co({ id: n, canTrack: e }), n;
2234
2319
  }
2235
- }, no = () => Be(), oo = ({
2320
+ }, lo = () => Oe(), co = ({
2236
2321
  id: e,
2237
2322
  canTrack: t
2238
- }) => $e({ name: Ve, value: e, canTrack: t }), Pe = () => C() && typeof localStorage < "u" ? localStorage : void 0, ro = ({
2323
+ }) => xe({ name: je, value: e, canTrack: t }), Ne = () => C() && typeof localStorage < "u" ? localStorage : void 0, uo = ({
2239
2324
  key: e,
2240
2325
  canTrack: t
2241
2326
  }) => {
2242
2327
  var n;
2243
2328
  try {
2244
- return t ? (n = Pe()) == null ? void 0 : n.getItem(e) : void 0;
2329
+ return t ? (n = Ne()) == null ? void 0 : n.getItem(e) : void 0;
2245
2330
  } catch (o) {
2246
2331
  console.debug("[LocalStorage] GET error: ", o);
2247
2332
  return;
2248
2333
  }
2249
- }, io = ({
2334
+ }, po = ({
2250
2335
  key: e,
2251
2336
  canTrack: t,
2252
2337
  value: n
2253
2338
  }) => {
2254
2339
  var o;
2255
2340
  try {
2256
- t && ((o = Pe()) == null || o.setItem(e, n));
2341
+ t && ((o = Ne()) == null || o.setItem(e, n));
2257
2342
  } catch (r) {
2258
2343
  console.debug("[LocalStorage] SET error: ", r);
2259
2344
  }
2260
- }, Oe = "builderVisitorId", so = ({ canTrack: e }) => {
2345
+ }, Fe = "builderVisitorId", mo = ({ canTrack: e }) => {
2261
2346
  if (!e)
2262
2347
  return;
2263
- const t = ro({
2264
- key: Oe,
2348
+ const t = uo({
2349
+ key: Fe,
2265
2350
  canTrack: e
2266
2351
  });
2267
- if (I(t))
2352
+ if (R(t))
2268
2353
  return t;
2269
2354
  {
2270
- const n = ao();
2271
- return lo({ id: n, canTrack: e }), n;
2355
+ const n = ho();
2356
+ return fo({ id: n, canTrack: e }), n;
2272
2357
  }
2273
- }, ao = () => Be(), lo = ({
2358
+ }, ho = () => Oe(), fo = ({
2274
2359
  id: e,
2275
2360
  canTrack: t
2276
- }) => io({
2277
- key: Oe,
2361
+ }) => po({
2362
+ key: Fe,
2278
2363
  value: e,
2279
2364
  canTrack: t
2280
- }), co = () => {
2365
+ }), go = () => {
2281
2366
  if (C()) {
2282
2367
  const e = new URL(location.href);
2283
2368
  return e.pathname === "" && (e.pathname = "/"), e;
2284
2369
  } else
2285
2370
  return console.warn("Cannot get location for tracking in non-browser environment"), null;
2286
- }, uo = () => typeof navigator == "object" && navigator.userAgent || "", po = () => {
2287
- const e = uo(), t = {
2371
+ }, bo = () => typeof navigator == "object" && navigator.userAgent || "", yo = () => {
2372
+ const e = bo(), t = {
2288
2373
  Android() {
2289
2374
  return e.match(/Android/i);
2290
2375
  },
@@ -2301,25 +2386,25 @@ const Ve = "builderSessionId", to = async ({
2301
2386
  return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
2302
2387
  },
2303
2388
  any() {
2304
- return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || _ === "reactNative";
2389
+ return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || E === "reactNative";
2305
2390
  }
2306
- }, n = e.match(/Tablet|iPad/i), o = co();
2391
+ }, n = e.match(/Tablet|iPad/i), o = go();
2307
2392
  return {
2308
2393
  urlPath: o == null ? void 0 : o.pathname,
2309
2394
  host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
2310
2395
  device: n ? "tablet" : t.any() ? "mobile" : "desktop"
2311
2396
  };
2312
- }, mo = async ({
2397
+ }, ko = async ({
2313
2398
  canTrack: e
2314
2399
  }) => {
2315
2400
  if (!e)
2316
2401
  return { visitorId: void 0, sessionId: void 0 };
2317
- const t = await to({ canTrack: e }), n = so({ canTrack: e });
2402
+ const t = await ao({ canTrack: e }), n = mo({ canTrack: e });
2318
2403
  return {
2319
2404
  sessionId: t,
2320
2405
  visitorId: n
2321
2406
  };
2322
- }, ho = async ({
2407
+ }, So = async ({
2323
2408
  type: e,
2324
2409
  canTrack: t,
2325
2410
  apiKey: n,
@@ -2333,23 +2418,23 @@ const Ve = "builderSessionId", to = async ({
2333
2418
  url: location.href,
2334
2419
  ...o
2335
2420
  },
2336
- ...await mo({ canTrack: t }),
2337
- userAttributes: po(),
2421
+ ...await ko({ canTrack: t }),
2422
+ userAttributes: yo(),
2338
2423
  ownerId: n
2339
2424
  }
2340
2425
  });
2341
- async function Q(e) {
2426
+ async function Z(e) {
2342
2427
  if (!e.apiKey) {
2343
- A.error(
2428
+ B.error(
2344
2429
  "Missing API key for track call. Please provide your API key."
2345
2430
  );
2346
2431
  return;
2347
2432
  }
2348
- if (!!e.canTrack && !E() && !!(C() || _ === "reactNative"))
2433
+ if (!!e.canTrack && !V() && !!(C() || E === "reactNative"))
2349
2434
  return fetch("https://cdn.builder.io/api/v1/track", {
2350
2435
  method: "POST",
2351
2436
  body: JSON.stringify({
2352
- events: [await ho(e)]
2437
+ events: [await So(e)]
2353
2438
  }),
2354
2439
  headers: {
2355
2440
  "content-type": "application/json"
@@ -2359,7 +2444,7 @@ async function Q(e) {
2359
2444
  console.error("Failed to track: ", t);
2360
2445
  });
2361
2446
  }
2362
- const Do = (e) => Q({ ...e, canTrack: !0 }), fo = (e) => {
2447
+ const Jo = (e) => Z({ ...e, canTrack: !0 }), vo = (e) => {
2363
2448
  var i, s;
2364
2449
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = (s = e.fileUrl) != null ? s : (i = e == null ? void 0 : e.files) == null ? void 0 : i.regular;
2365
2450
  let r = "";
@@ -2385,24 +2470,24 @@ font-weight: ${l};
2385
2470
  `.trim());
2386
2471
  }
2387
2472
  return r;
2388
- }, bo = ({ customFonts: e }) => {
2473
+ }, Co = ({ customFonts: e }) => {
2389
2474
  var t;
2390
- return ((t = e == null ? void 0 : e.map((n) => fo(n))) == null ? void 0 : t.join(" ")) || "";
2391
- }, go = ({
2475
+ return ((t = e == null ? void 0 : e.map((n) => vo(n))) == null ? void 0 : t.join(" ")) || "";
2476
+ }, wo = ({
2392
2477
  cssCode: e,
2393
2478
  contentId: t
2394
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", yo = g({
2479
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", $o = f({
2395
2480
  name: "render-content-styles",
2396
- components: { RenderInlinedStyles: z },
2481
+ components: { InlinedStyles: K },
2397
2482
  props: ["cssCode", "contentId", "customFonts"],
2398
2483
  data() {
2399
2484
  return {
2400
2485
  injectedStyles: `
2401
- ${go({
2486
+ ${wo({
2402
2487
  cssCode: this.cssCode,
2403
2488
  contentId: this.contentId
2404
2489
  })}
2405
- ${bo({
2490
+ ${Co({
2406
2491
  customFonts: this.customFonts
2407
2492
  })}
2408
2493
 
@@ -2422,14 +2507,14 @@ ${bo({
2422
2507
  };
2423
2508
  }
2424
2509
  });
2425
- function ko(e, t, n, o, r, i) {
2426
- const s = S("render-inlined-styles");
2427
- return d(), f(s, { styles: e.injectedStyles }, null, 8, ["styles"]);
2510
+ function To(e, t, n, o, r, i) {
2511
+ const s = b("inlined-styles");
2512
+ return d(), g(s, { styles: e.injectedStyles }, null, 8, ["styles"]);
2428
2513
  }
2429
- const So = /* @__PURE__ */ y(yo, [["render", ko]]), vo = "0.4.4", ae = {};
2430
- function Co(e, t) {
2431
- let n = ae[e];
2432
- if (n || (n = ae[e] = []), n.push(t), C()) {
2514
+ const xo = /* @__PURE__ */ y($o, [["render", To]]), Io = "0.4.5", le = {};
2515
+ function Ro(e, t) {
2516
+ let n = le[e];
2517
+ if (n || (n = le[e] = []), n.push(t), C()) {
2433
2518
  const o = {
2434
2519
  type: "builder.register",
2435
2520
  data: {
@@ -2444,8 +2529,8 @@ function Co(e, t) {
2444
2529
  }
2445
2530
  }
2446
2531
  }
2447
- const $o = () => {
2448
- Co("insertMenu", {
2532
+ const Eo = () => {
2533
+ Ro("insertMenu", {
2449
2534
  name: "_default",
2450
2535
  default: !0,
2451
2536
  items: [
@@ -2460,15 +2545,15 @@ const $o = () => {
2460
2545
  ]
2461
2546
  });
2462
2547
  };
2463
- let le = !1;
2464
- const wo = (e = {}) => {
2548
+ let ce = !1;
2549
+ const Ao = (e = {}) => {
2465
2550
  var t, n;
2466
- le || (le = !0, C() && ((t = window.parent) == null || t.postMessage(
2551
+ ce || (ce = !0, C() && ((t = window.parent) == null || t.postMessage(
2467
2552
  {
2468
2553
  type: "builder.sdkInfo",
2469
2554
  data: {
2470
- target: _,
2471
- version: vo,
2555
+ target: E,
2556
+ version: Io,
2472
2557
  supportsPatchUpdates: !1,
2473
2558
  supportsAddBlockScoping: !0,
2474
2559
  supportsCustomBreakpoints: !0
@@ -2522,10 +2607,10 @@ const wo = (e = {}) => {
2522
2607
  }
2523
2608
  })));
2524
2609
  };
2525
- function ce(e) {
2610
+ function de(e) {
2526
2611
  return Math.round(e * 1e3) / 1e3;
2527
2612
  }
2528
- const To = (e, t, n = !0) => {
2613
+ const Vo = (e, t, n = !0) => {
2529
2614
  if (!(e instanceof HTMLElement))
2530
2615
  return null;
2531
2616
  let o = n ? e : e.parentElement;
@@ -2536,29 +2621,29 @@ const To = (e, t, n = !0) => {
2536
2621
  return o;
2537
2622
  } while (o = o.parentElement);
2538
2623
  return null;
2539
- }, xo = (e) => To(e, (t) => {
2624
+ }, Bo = (e) => Vo(e, (t) => {
2540
2625
  const n = t.getAttribute("builder-id") || t.id;
2541
2626
  return Boolean((n == null ? void 0 : n.indexOf("builder-")) === 0);
2542
- }), de = ({
2627
+ }), ue = ({
2543
2628
  event: e,
2544
2629
  target: t
2545
2630
  }) => {
2546
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = ce(o / n.width), s = ce(r / n.height);
2631
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = de(o / n.width), s = de(r / n.height);
2547
2632
  return {
2548
2633
  x: i,
2549
2634
  y: s
2550
2635
  };
2551
- }, Io = (e) => {
2552
- const t = e.target, n = t && xo(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2636
+ }, _o = (e) => {
2637
+ const t = e.target, n = t && Bo(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2553
2638
  return {
2554
2639
  targetBuilderElement: o || void 0,
2555
2640
  metadata: {
2556
- targetOffset: t ? de({ event: e, target: t }) : void 0,
2557
- builderTargetOffset: n ? de({ event: e, target: n }) : void 0,
2641
+ targetOffset: t ? ue({ event: e, target: t }) : void 0,
2642
+ builderTargetOffset: n ? ue({ event: e, target: n }) : void 0,
2558
2643
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
2559
2644
  }
2560
2645
  };
2561
- }, Ro = ({
2646
+ }, Po = ({
2562
2647
  content: e,
2563
2648
  data: t,
2564
2649
  locale: n
@@ -2575,7 +2660,7 @@ const To = (e, t, n = !0) => {
2575
2660
  ...n ? { locale: n } : {}
2576
2661
  };
2577
2662
  return { ...o, ...r };
2578
- }, Eo = ({
2663
+ }, Oo = ({
2579
2664
  content: e,
2580
2665
  data: t
2581
2666
  }) => e ? {
@@ -2585,101 +2670,17 @@ const To = (e, t, n = !0) => {
2585
2670
  ...t
2586
2671
  },
2587
2672
  meta: e == null ? void 0 : e.meta
2588
- } : void 0, L = (e) => Object.values((e == null ? void 0 : e.variations) || {}), ue = ({
2589
- canTrack: e,
2590
- content: t
2591
- }) => !(!(L(t).length > 0) || !e || C());
2592
- function Ao(e, t, n) {
2593
- function o() {
2594
- function s(k, b, w) {
2595
- let B = "";
2596
- if (w) {
2597
- const T = new Date();
2598
- T.setTime(T.getTime() + w * 24 * 60 * 60 * 1e3), B = "; expires=" + T.toUTCString();
2599
- }
2600
- document.cookie = k + "=" + (b || "") + B + "; path=/; Secure; SameSite=None";
2601
- }
2602
- function l(k) {
2603
- const b = k + "=", w = document.cookie.split(";");
2604
- for (let B = 0; B < w.length; B++) {
2605
- let T = w[B];
2606
- for (; T.charAt(0) === " "; )
2607
- T = T.substring(1, T.length);
2608
- if (T.indexOf(b) === 0)
2609
- return T.substring(b.length, T.length);
2610
- }
2611
- return null;
2612
- }
2613
- const a = `builder.tests.${e}`, c = l(a), u = t.map((k) => k.id).concat(e);
2614
- if (c && u.includes(c))
2615
- return c;
2616
- let p = 0;
2617
- const h = Math.random();
2618
- for (let k = 0; k < t.length; k++) {
2619
- const b = t[k], w = b.testRatio;
2620
- if (p += w, h < p)
2621
- return s(a, b.id), b.id;
2622
- }
2623
- return s(a, e), e;
2624
- }
2625
- const r = o(), i = document.getElementById(
2626
- `variants-styles-${e}`
2627
- );
2628
- if (n) {
2629
- i.remove();
2630
- const s = document.getElementById(
2631
- `variants-script-${e}`
2632
- );
2633
- s == null || s.remove();
2634
- } else {
2635
- const s = t.concat({ id: e }).filter((l) => l.id !== r).map((l) => `.variant-${l.id} { display: none; }
2636
- `).join("");
2637
- i.innerHTML = s;
2638
- }
2639
- }
2640
- function _o(e, t, n) {
2641
- if (!navigator.cookieEnabled)
2642
- return;
2643
- function o(a) {
2644
- const c = a + "=", u = document.cookie.split(";");
2645
- for (let p = 0; p < u.length; p++) {
2646
- let h = u[p];
2647
- for (; h.charAt(0) === " "; )
2648
- h = h.substring(1, h.length);
2649
- if (h.indexOf(c) === 0)
2650
- return h.substring(c.length, h.length);
2651
- }
2652
- return null;
2653
- }
2654
- const r = `builder.tests.${t}`, i = o(r), s = document.querySelector(
2655
- `[builder-content-id="${e}"]`
2656
- ), l = e === t;
2657
- if (i === e) {
2658
- if (l)
2659
- return;
2660
- s == null || s.removeAttribute("hidden"), s == null || s.removeAttribute("aria-hidden");
2661
- } else {
2662
- l && (n ? s == null || s.remove() : (s == null || s.setAttribute("hidden", "true"), s == null || s.setAttribute("aria-hidden", "true")));
2663
- return;
2664
- }
2665
- }
2666
- const Bo = (e) => e === "react" || e === "reactNative" || e === "vue3" || e === "vue2", je = Bo(_), pe = "bldrAbTest", Ne = "bldrCntntScrpt", Vo = (e, t) => {
2667
- const n = Ao.toString().replace(/\s+/g, " "), o = _o.toString().replace(/\s+/g, " ");
2668
- return `
2669
- const ${pe} = ${n}
2670
- const ${Ne} = ${o}
2671
- ${pe}("${t}", ${JSON.stringify(
2672
- e
2673
- )}, ${je})
2674
- `;
2675
- }, Po = ({
2676
- parentContentId: e,
2677
- contentId: t
2678
- }) => `
2679
- ${Ne}("${t}", "${e}", ${je})`, Oo = Me, jo = g({
2673
+ } : void 0, jo = We, Ue = f({
2674
+ render() {
2675
+ return me("script", { id: this.id, innerHTML: this.scriptStr });
2676
+ },
2677
+ name: "inlined-script",
2678
+ props: ["scriptStr", "id"]
2679
+ }), No = f({
2680
2680
  name: "render-content",
2681
2681
  components: {
2682
- RenderContentStyles: So,
2682
+ InlinedScript: Ue,
2683
+ RenderContentStyles: xo,
2683
2684
  RenderBlocks: Se
2684
2685
  },
2685
2686
  props: [
@@ -2688,37 +2689,36 @@ const Bo = (e) => e === "react" || e === "reactNative" || e === "vue3" || e ===
2688
2689
  "context",
2689
2690
  "apiKey",
2690
2691
  "content",
2691
- "parentContentId",
2692
2692
  "data",
2693
2693
  "locale",
2694
2694
  "apiVersion",
2695
2695
  "customComponents",
2696
- "hideContent",
2696
+ "showContent",
2697
2697
  "classNameProp",
2698
2698
  "isSsrAbTest",
2699
2699
  "includeRefs",
2700
2700
  "enrich"
2701
2701
  ],
2702
2702
  data() {
2703
- var e;
2703
+ var e, t;
2704
2704
  return {
2705
2705
  forceReRenderCount: 0,
2706
2706
  overrideContent: null,
2707
2707
  update: 0,
2708
- canTrackToUse: I(this.canTrack) ? this.canTrack : !0,
2708
+ canTrackToUse: R(this.canTrack) ? this.canTrack : !0,
2709
2709
  httpReqsData: {},
2710
2710
  clicked: !1,
2711
- scriptStr: Po({
2712
- contentId: (e = this.content) == null ? void 0 : e.id,
2713
- parentContentId: this.parentContentId
2711
+ scriptStr: Qt({
2712
+ variationId: (e = this.content) == null ? void 0 : e.testVariationId,
2713
+ contentId: (t = this.content) == null ? void 0 : t.id
2714
2714
  }),
2715
2715
  builderContextSignal: {
2716
- content: Eo({
2716
+ content: Oo({
2717
2717
  content: this.content,
2718
2718
  data: this.data
2719
2719
  }),
2720
2720
  localState: void 0,
2721
- rootState: Ro({
2721
+ rootState: Po({
2722
2722
  content: this.content,
2723
2723
  data: this.data,
2724
2724
  locale: this.locale
@@ -2728,37 +2728,37 @@ const Bo = (e) => e === "react" || e === "reactNative" || e === "vue3" || e ===
2728
2728
  apiKey: this.apiKey,
2729
2729
  apiVersion: this.apiVersion,
2730
2730
  registeredComponents: [
2731
- ...In(),
2732
- ...Yn,
2731
+ ..._n(),
2732
+ ...no,
2733
2733
  ...this.customComponents || []
2734
2734
  ].reduce(
2735
- (t, { component: n, ...o }) => ({
2736
- ...t,
2737
- [o.name]: {
2738
- component: Oo(n),
2739
- ...o
2735
+ (n, { component: o, ...r }) => ({
2736
+ ...n,
2737
+ [r.name]: {
2738
+ component: jo(o),
2739
+ ...r
2740
2740
  }
2741
2741
  }),
2742
2742
  {}
2743
2743
  ),
2744
2744
  inheritedStyles: {}
2745
2745
  },
2746
- builderContext: O,
2747
- TARGET: _
2746
+ builderContext: j,
2747
+ TARGET: E
2748
2748
  };
2749
2749
  },
2750
2750
  provide() {
2751
2751
  const e = this;
2752
2752
  return {
2753
- [O.key]: e.builderContextSignal
2753
+ [j.key]: e.builderContextSignal
2754
2754
  };
2755
2755
  },
2756
2756
  mounted() {
2757
2757
  var e, t;
2758
- if (this.apiKey || A.error(
2758
+ if (this.apiKey || B.error(
2759
2759
  "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
2760
2760
  ), C()) {
2761
- if (E() && (this.forceReRenderCount = this.forceReRenderCount + 1, $o(), wo({
2761
+ if (V() && (this.forceReRenderCount = this.forceReRenderCount + 1, Eo(), Ao({
2762
2762
  ...this.locale ? {
2763
2763
  locale: this.locale
2764
2764
  } : {},
@@ -2772,14 +2772,14 @@ const Bo = (e) => e === "react" || e === "reactNative" || e === "vue3" || e ===
2772
2772
  this.builderContextSignal.registeredComponents
2773
2773
  ).forEach((n) => {
2774
2774
  var r;
2775
- const o = Xn(n);
2775
+ const o = oo(n);
2776
2776
  (r = window.parent) == null || r.postMessage(o, "*");
2777
2777
  }), window.addEventListener("message", this.processMessage), window.addEventListener(
2778
2778
  "builder:component:stateChangeListenerActivated",
2779
2779
  this.emitStateUpdate
2780
2780
  )), this.builderContextSignal.content) {
2781
2781
  const n = (e = this.builderContextSignal.content) == null ? void 0 : e.testVariationId, o = (t = this.builderContextSignal.content) == null ? void 0 : t.id;
2782
- Q({
2782
+ Z({
2783
2783
  type: "impression",
2784
2784
  canTrack: this.canTrackToUse,
2785
2785
  contentId: o,
@@ -2787,11 +2787,11 @@ const Bo = (e) => e === "react" || e === "reactNative" || e === "vue3" || e ===
2787
2787
  variationId: n !== o ? n : void 0
2788
2788
  });
2789
2789
  }
2790
- if (Jn()) {
2790
+ if (to()) {
2791
2791
  const n = new URL(location.href).searchParams, o = n.get("builder.preview"), r = n.get(
2792
2792
  `builder.preview.${o}`
2793
2793
  ), i = n.get("apiKey") || n.get("builder.space");
2794
- o === this.model && i === this.apiKey && (!this.content || r === this.content.id) && _e({
2794
+ o === this.model && i === this.apiKey && (!this.content || r === this.content.id) && Pe({
2795
2795
  model: this.model,
2796
2796
  apiKey: this.apiKey,
2797
2797
  apiVersion: this.apiVersion
@@ -2923,13 +2923,13 @@ const Bo = (e) => e === "react" || e === "reactNative" || e === "vue3" || e ===
2923
2923
  var t, n;
2924
2924
  if (this.builderContextSignal.content) {
2925
2925
  const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
2926
- Q({
2926
+ Z({
2927
2927
  type: "click",
2928
2928
  canTrack: this.canTrackToUse,
2929
2929
  contentId: r,
2930
2930
  apiKey: this.apiKey,
2931
2931
  variationId: o !== r ? o : void 0,
2932
- ...Io(e),
2932
+ ..._o(e),
2933
2933
  unique: !this.clicked
2934
2934
  });
2935
2935
  }
@@ -2948,7 +2948,7 @@ const Bo = (e) => e === "react" || e === "reactNative" || e === "vue3" || e ===
2948
2948
  );
2949
2949
  },
2950
2950
  handleRequest({ url: e, key: t }) {
2951
- Ie(e).then((n) => n.json()).then((n) => {
2951
+ Ae(e).then((n) => n.json()).then((n) => {
2952
2952
  const o = {
2953
2953
  ...this.builderContextSignal.rootState,
2954
2954
  [t]: n
@@ -2962,7 +2962,7 @@ const Bo = (e) => e === "react" || e === "reactNative" || e === "vue3" || e ===
2962
2962
  var t, n, o;
2963
2963
  const e = (o = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) != null ? o : {};
2964
2964
  Object.entries(e).forEach(([r, i]) => {
2965
- if (i && (!this.httpReqsData[r] || E())) {
2965
+ if (i && (!this.httpReqsData[r] || V())) {
2966
2966
  const s = this.evalExpression(i);
2967
2967
  this.handleRequest({
2968
2968
  url: s,
@@ -2972,7 +2972,7 @@ const Bo = (e) => e === "react" || e === "reactNative" || e === "vue3" || e ===
2972
2972
  });
2973
2973
  },
2974
2974
  emitStateUpdate() {
2975
- E() && window.dispatchEvent(
2975
+ V() && window.dispatchEvent(
2976
2976
  new CustomEvent(
2977
2977
  "builder:component:stateChange",
2978
2978
  {
@@ -2996,15 +2996,15 @@ const Bo = (e) => e === "react" || e === "reactNative" || e === "vue3" || e ===
2996
2996
  return t;
2997
2997
  }
2998
2998
  }
2999
- }), No = ["builder-content-id", "builder-model"];
3000
- function Fo(e, t, n, o, r, i) {
3001
- var a, c, u, p, h, k, b, w;
3002
- const s = S("render-content-styles"), l = S("render-blocks");
3003
- return e.builderContextSignal.content ? (d(), m("div", x({
2999
+ }), Fo = ["builder-content-id", "builder-model"];
3000
+ function Uo(e, t, n, o, r, i) {
3001
+ var c, u, p, h, k, S, w, I;
3002
+ const s = b("inlined-script"), l = b("render-content-styles"), a = b("render-blocks");
3003
+ return e.builderContextSignal.content ? (d(), m("div", T({
3004
3004
  key: 0,
3005
3005
  ref: "elementRef",
3006
- onClick: t[0] || (t[0] = (B) => e.onClick(B)),
3007
- "builder-content-id": (a = e.builderContextSignal.content) == null ? void 0 : a.id,
3006
+ onClick: t[0] || (t[0] = (_) => e.onClick(_)),
3007
+ "builder-content-id": (c = e.builderContextSignal.content) == null ? void 0 : c.id,
3008
3008
  "builder-model": e.model,
3009
3009
  class: e._classStringToObject(e.classNameProp)
3010
3010
  }, {
@@ -3013,30 +3013,132 @@ function Fo(e, t, n, o, r, i) {
3013
3013
  "builder-content-id": ""
3014
3014
  }
3015
3015
  } : {},
3016
- ...e.hideContent ? {
3016
+ ...e.showContent ? {} : {
3017
3017
  hidden: !0,
3018
3018
  "aria-hidden": !0
3019
- } : {}
3019
+ }
3020
3020
  }), [
3021
- e.isSsrAbTest ? (d(), f(P("script"), {
3021
+ e.isSsrAbTest ? (d(), g(s, {
3022
3022
  key: 0,
3023
- innerHTML: e.scriptStr
3024
- }, null, 8, ["innerHTML"])) : v("", !0),
3025
- e.TARGET !== "reactNative" ? (d(), f(s, {
3023
+ scriptStr: e.scriptStr
3024
+ }, null, 8, ["scriptStr"])) : v("", !0),
3025
+ e.TARGET !== "reactNative" ? (d(), g(l, {
3026
3026
  key: 1,
3027
- contentId: (c = e.builderContextSignal.content) == null ? void 0 : c.id,
3028
- cssCode: (p = (u = e.builderContextSignal.content) == null ? void 0 : u.data) == null ? void 0 : p.cssCode,
3029
- customFonts: (k = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : k.customFonts
3027
+ contentId: (u = e.builderContextSignal.content) == null ? void 0 : u.id,
3028
+ cssCode: (h = (p = e.builderContextSignal.content) == null ? void 0 : p.data) == null ? void 0 : h.cssCode,
3029
+ customFonts: (S = (k = e.builderContextSignal.content) == null ? void 0 : k.data) == null ? void 0 : S.customFonts
3030
3030
  }, null, 8, ["contentId", "cssCode", "customFonts"])) : v("", !0),
3031
- (d(), f(l, {
3032
- blocks: (w = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : w.blocks,
3031
+ (d(), g(a, {
3032
+ blocks: (I = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : I.blocks,
3033
3033
  key: e.forceReRenderCount
3034
3034
  }, null, 8, ["blocks"]))
3035
- ], 16, No)) : v("", !0);
3035
+ ], 16, Fo)) : v("", !0);
3036
+ }
3037
+ const Mo = /* @__PURE__ */ y(No, [["render", Uo]]), Wo = f({
3038
+ name: "render-content-variants",
3039
+ components: {
3040
+ InlinedScript: Ue,
3041
+ InlinedStyles: K,
3042
+ RenderContent: Mo
3043
+ },
3044
+ props: [
3045
+ "canTrack",
3046
+ "content",
3047
+ "__isNestedRender",
3048
+ "model",
3049
+ "data",
3050
+ "context",
3051
+ "apiKey",
3052
+ "apiVersion",
3053
+ "customComponents",
3054
+ "locale",
3055
+ "includeRefs",
3056
+ "enrich"
3057
+ ],
3058
+ data() {
3059
+ var e;
3060
+ return {
3061
+ shouldRenderVariants: Dt({
3062
+ canTrack: X(this.canTrack),
3063
+ content: this.content
3064
+ }),
3065
+ variantScriptStr: Xt(
3066
+ M(this.content).map((t) => ({
3067
+ id: t.testVariationId,
3068
+ testRatio: t.testRatio
3069
+ })),
3070
+ ((e = this.content) == null ? void 0 : e.id) || ""
3071
+ ),
3072
+ hideVariantsStyleString: M(this.content).map((t) => `.variant-${t.testVariationId} { display: none; } `).join(""),
3073
+ getScriptString: Yt,
3074
+ getVariants: M,
3075
+ getDefaultCanTrack: X,
3076
+ handleABTestingSync: Hn,
3077
+ TARGET: E
3078
+ };
3079
+ },
3080
+ mounted() {
3081
+ this.shouldRenderVariants = !1;
3082
+ }
3083
+ });
3084
+ function Lo(e, t, n, o, r, i) {
3085
+ var c, u;
3086
+ const s = b("inlined-script"), l = b("inlined-styles"), a = b("render-content");
3087
+ return d(), m($, null, [
3088
+ !e.__isNestedRender && e.TARGET !== "reactNative" ? (d(), g(s, {
3089
+ key: 0,
3090
+ scriptStr: e.getScriptString()
3091
+ }, null, 8, ["scriptStr"])) : v("", !0),
3092
+ e.shouldRenderVariants ? (d(), m($, { key: 1 }, [
3093
+ O(l, {
3094
+ id: `variants-styles-${(c = e.content) == null ? void 0 : c.id}`,
3095
+ styles: e.hideVariantsStyleString
3096
+ }, null, 8, ["id", "styles"]),
3097
+ O(s, { scriptStr: e.variantScriptStr }, null, 8, ["scriptStr"]),
3098
+ (d(!0), m($, null, A(e.getVariants(e.content), (p, h) => (d(), g(a, {
3099
+ key: p.testVariationId,
3100
+ content: p,
3101
+ showContent: !1,
3102
+ classNameProp: void 0,
3103
+ model: e.model,
3104
+ data: e.data,
3105
+ context: e.context,
3106
+ apiKey: e.apiKey,
3107
+ apiVersion: e.apiVersion,
3108
+ customComponents: e.customComponents,
3109
+ canTrack: e.canTrack,
3110
+ locale: e.locale,
3111
+ includeRefs: e.includeRefs,
3112
+ enrich: e.enrich,
3113
+ isSsrAbTest: e.shouldRenderVariants
3114
+ }, null, 8, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest"]))), 128))
3115
+ ], 64)) : v("", !0),
3116
+ O(a, T({
3117
+ content: e.shouldRenderVariants ? e.content : e.handleABTestingSync({
3118
+ item: e.content,
3119
+ canTrack: e.getDefaultCanTrack(e.canTrack)
3120
+ }),
3121
+ classNameProp: `variant-${(u = e.content) == null ? void 0 : u.id}`,
3122
+ showContent: !0,
3123
+ model: e.model,
3124
+ data: e.data,
3125
+ context: e.context,
3126
+ apiKey: e.apiKey,
3127
+ apiVersion: e.apiVersion,
3128
+ customComponents: e.customComponents,
3129
+ canTrack: e.canTrack,
3130
+ locale: e.locale,
3131
+ includeRefs: e.includeRefs,
3132
+ enrich: e.enrich,
3133
+ isSsrAbTest: e.shouldRenderVariants
3134
+ }, {
3135
+ key: e.shouldRenderVariants.toString()
3136
+ }), null, 16, ["content", "classNameProp", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest"])
3137
+ ], 64);
3036
3138
  }
3037
- const Fe = /* @__PURE__ */ y(jo, [["render", Fo]]), Uo = g({
3139
+ const Ho = /* @__PURE__ */ y(Wo, [["render", Lo]]), Ko = f({
3038
3140
  name: "builder-symbol",
3039
- components: { RenderContent: Fe },
3141
+ components: { RenderContentVariants: Ho },
3040
3142
  props: ["attributes", "symbol", "dynamic"],
3041
3143
  data() {
3042
3144
  var e, t, n;
@@ -3051,7 +3153,7 @@ const Fe = /* @__PURE__ */ y(jo, [["render", Fo]]), Uo = g({
3051
3153
  };
3052
3154
  },
3053
3155
  inject: {
3054
- builderContext: O.key
3156
+ builderContext: j.key
3055
3157
  },
3056
3158
  mounted() {
3057
3159
  this.fetchContent();
@@ -3073,18 +3175,20 @@ const Fe = /* @__PURE__ */ y(jo, [["render", Fo]]), Uo = g({
3073
3175
  },
3074
3176
  methods: {
3075
3177
  fetchContent() {
3076
- var e, t;
3077
- !this.contentToUse && ((e = this.symbol) == null ? void 0 : e.model) && ((t = this.builderContext) == null ? void 0 : t.apiKey) && _e({
3178
+ var e, t, n;
3179
+ !this.contentToUse && ((e = this.symbol) == null ? void 0 : e.model) && ((t = this.builderContext) == null ? void 0 : t.apiKey) && Pe({
3078
3180
  model: this.symbol.model,
3079
3181
  apiKey: this.builderContext.apiKey,
3080
3182
  apiVersion: this.builderContext.apiVersion,
3081
- query: {
3082
- id: this.symbol.entry
3183
+ ...((n = this.symbol) == null ? void 0 : n.entry) && {
3184
+ query: {
3185
+ id: this.symbol.entry
3186
+ }
3083
3187
  }
3084
- }).then((n) => {
3085
- n && (this.contentToUse = n);
3086
- }).catch((n) => {
3087
- A.error("Could not fetch symbol content: ", n);
3188
+ }).then((o) => {
3189
+ o && (this.contentToUse = o);
3190
+ }).catch((o) => {
3191
+ B.error("Could not fetch symbol content: ", o);
3088
3192
  });
3089
3193
  },
3090
3194
  filterAttrs: function(t = {}, n) {
@@ -3112,17 +3216,18 @@ const Fe = /* @__PURE__ */ y(jo, [["render", Fo]]), Uo = g({
3112
3216
  return t;
3113
3217
  }
3114
3218
  }
3115
- }), Mo = ["dataSet"];
3116
- function Lo(e, t, n, o, r, i) {
3219
+ }), zo = ["dataSet"];
3220
+ function Do(e, t, n, o, r, i) {
3117
3221
  var l, a, c, u;
3118
- const s = S("render-content");
3119
- return d(), m("div", x({
3222
+ const s = b("render-content-variants");
3223
+ return d(), m("div", T({
3120
3224
  dataSet: {
3121
3225
  class: e.className
3122
3226
  },
3123
3227
  class: e._classStringToObject(e.className)
3124
- }, e.filterAttrs(e.attributes, !1), V(e.filterAttrs(e.attributes, !0), !0)), [
3125
- j(s, {
3228
+ }, e.filterAttrs(e.attributes, !1), P(e.filterAttrs(e.attributes, !0), !0)), [
3229
+ O(s, {
3230
+ __isNestedRender: !0,
3126
3231
  apiVersion: e.builderContext.apiVersion,
3127
3232
  apiKey: e.builderContext.apiKey,
3128
3233
  context: e.builderContext.context,
@@ -3135,119 +3240,38 @@ function Lo(e, t, n, o, r, i) {
3135
3240
  model: (u = e.symbol) == null ? void 0 : u.model,
3136
3241
  content: e.contentToUse
3137
3242
  }, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content"])
3138
- ], 16, Mo);
3139
- }
3140
- const Wo = /* @__PURE__ */ y(Uo, [["render", Lo]]), Ho = g({
3141
- name: "render-content-variants",
3142
- components: {
3143
- RenderInlinedStyles: z,
3144
- RenderContent: Fe
3145
- },
3146
- props: [
3147
- "content",
3148
- "canTrack",
3149
- "apiKey",
3150
- "apiVersion",
3151
- "customComponents",
3152
- "model"
3153
- ],
3154
- data() {
3155
- var e;
3156
- return {
3157
- variantScriptStr: Vo(
3158
- L(this.content).map((t) => ({
3159
- id: t.id,
3160
- testRatio: t.testRatio
3161
- })),
3162
- ((e = this.content) == null ? void 0 : e.id) || ""
3163
- ),
3164
- shouldRenderVariants: ue({
3165
- canTrack: M(this.canTrack),
3166
- content: this.content
3167
- }),
3168
- hideVariantsStyleString: L(this.content).map((t) => `.variant-${t.id} { display: none; } `).join(""),
3169
- contentToRender: ue({
3170
- canTrack: M(this.canTrack),
3171
- content: this.content
3172
- }) ? this.content : Nn({
3173
- item: this.content,
3174
- canTrack: M(this.canTrack)
3175
- }),
3176
- getVariants: L
3177
- };
3178
- }
3179
- });
3180
- function Ko(e, t, n, o, r, i) {
3181
- var a, c, u, p;
3182
- const s = S("render-inlined-styles"), l = S("render-content");
3183
- return d(), m($, null, [
3184
- e.shouldRenderVariants ? (d(), m($, { key: 0 }, [
3185
- j(s, {
3186
- id: `variants-styles-${(a = e.content) == null ? void 0 : a.id}`,
3187
- styles: e.hideVariantsStyleString
3188
- }, null, 8, ["id", "styles"]),
3189
- (d(), f(P("script"), {
3190
- id: `variants-script-${(c = e.content) == null ? void 0 : c.id}`,
3191
- innerHTML: e.variantScriptStr
3192
- }, null, 8, ["id", "innerHTML"])),
3193
- (d(!0), m($, null, R(e.getVariants(e.content), (h, k) => {
3194
- var b;
3195
- return d(), f(l, {
3196
- key: h.id,
3197
- content: h,
3198
- apiKey: e.apiKey,
3199
- apiVersion: e.apiVersion,
3200
- canTrack: e.canTrack,
3201
- customComponents: e.customComponents,
3202
- hideContent: !0,
3203
- parentContentId: (b = e.content) == null ? void 0 : b.id,
3204
- isSsrAbTest: e.shouldRenderVariants
3205
- }, null, 8, ["content", "apiKey", "apiVersion", "canTrack", "customComponents", "parentContentId", "isSsrAbTest"]);
3206
- }), 128))
3207
- ], 64)) : v("", !0),
3208
- j(l, {
3209
- model: e.model,
3210
- content: e.contentToRender,
3211
- apiKey: e.apiKey,
3212
- apiVersion: e.apiVersion,
3213
- canTrack: e.canTrack,
3214
- customComponents: e.customComponents,
3215
- classNameProp: `variant-${(u = e.content) == null ? void 0 : u.id}`,
3216
- parentContentId: (p = e.content) == null ? void 0 : p.id,
3217
- isSsrAbTest: e.shouldRenderVariants
3218
- }, null, 8, ["model", "content", "apiKey", "apiVersion", "canTrack", "customComponents", "classNameProp", "parentContentId", "isSsrAbTest"])
3219
- ], 64);
3243
+ ], 16, zo);
3220
3244
  }
3221
- const qo = /* @__PURE__ */ y(Ho, [["render", Ko]]), me = {};
3222
- function Go(e) {
3245
+ const qo = /* @__PURE__ */ y(Ko, [["render", Do]]), pe = {};
3246
+ function Yo(e) {
3223
3247
  if (C()) {
3224
- Object.assign(me, e);
3248
+ Object.assign(pe, e);
3225
3249
  const t = {
3226
3250
  type: "builder.settingsChange",
3227
- data: me
3251
+ data: pe
3228
3252
  };
3229
3253
  parent.postMessage(t, "*");
3230
3254
  }
3231
3255
  }
3232
3256
  export {
3233
- Ke as Button,
3234
- Bt as Columns,
3235
- Ot as Fragment,
3236
- Ht as Image,
3257
+ ze as Button,
3258
+ Vt as Columns,
3259
+ Pt as Fragment,
3260
+ Lt as Image,
3237
3261
  Se as RenderBlocks,
3238
- qo as RenderContent,
3239
- Dt as Section,
3240
- Wo as Symbol,
3241
- on as Text,
3242
- cn as Video,
3243
- Xn as createRegisterComponentMessage,
3244
- Gn as getAllContent,
3245
- Hn as getBuilderSearchParams,
3246
- _e as getContent,
3247
- E as isEditing,
3248
- Jn as isPreviewing,
3249
- qn as processContentResult,
3250
- Co as register,
3251
- Go as setEditorSettings,
3252
- Do as track
3262
+ Ho as RenderContent,
3263
+ zt as Section,
3264
+ qo as Symbol,
3265
+ dn as Text,
3266
+ fn as Video,
3267
+ oo as createRegisterComponentMessage,
3268
+ eo as getAllContent,
3269
+ Jn as getBuilderSearchParams,
3270
+ Pe as getContent,
3271
+ V as isEditing,
3272
+ to as isPreviewing,
3273
+ Zn as processContentResult,
3274
+ Ro as register,
3275
+ Yo as setEditorSettings,
3276
+ Jo as track
3253
3277
  };