@builder.io/sdk-vue 3.0.2 → 3.0.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 (68) hide show
  1. package/lib/browser/{awaiter-f2v25MXG.js → awaiter-HIb4sYti.js} +1 -1
  2. package/lib/browser/{awaiter-Go_v9R-Q.cjs → awaiter-xWDd6I0t.cjs} +1 -1
  3. package/lib/browser/{block-styles-VvtOwAna.cjs → block-styles-a3Qov2aa.cjs} +1 -1
  4. package/lib/browser/{block-styles-zLkeE8Yo.js → block-styles-lsb_KdIv.js} +1 -1
  5. package/lib/browser/{block-wrapper-W_D_Bb2d.cjs → block-wrapper-AGYEnT9b.cjs} +1 -1
  6. package/lib/browser/{block-wrapper-RHvSza0L.js → block-wrapper-wgruUtvA.js} +3 -3
  7. package/lib/browser/blocks/form/form/form.vue.d.ts +1 -9
  8. package/lib/browser/{component-ref-OuSuLJu3.cjs → component-ref-L4m5v5Wy.cjs} +1 -1
  9. package/lib/browser/{component-ref-QZVWIf-w.js → component-ref-vtmUy--R.js} +3 -3
  10. package/lib/browser/constants/sdk-version.d.ts +1 -1
  11. package/lib/browser/{get-block-properties-IUSNX0SS.js → get-block-properties-8WqRWNVK.js} +1 -1
  12. package/lib/browser/{get-block-properties-COMGTr9K.cjs → get-block-properties-w5SNmgYD.cjs} +1 -1
  13. package/lib/browser/{index-mAw516k1.js → index-E3hEz780.js} +324 -337
  14. package/lib/browser/index-kRaZYwBL.cjs +166 -0
  15. package/lib/browser/index.cjs +1 -1
  16. package/lib/browser/index.mjs +1 -1
  17. package/lib/browser/{repeated-block-nE8lZjb_.cjs → repeated-block-YYmu12kh.cjs} +1 -1
  18. package/lib/browser/{repeated-block-9wsw76F2.js → repeated-block-vu-vd9Qj.js} +2 -2
  19. package/lib/browser/style.css +1 -1
  20. package/lib/browser/types/builder-content.d.ts +1 -0
  21. package/lib/browser/types/components.d.ts +2 -2
  22. package/lib/browser/types/input.d.ts +10 -0
  23. package/lib/edge/{awaiter-e1RaAwPG.cjs → awaiter-CUt_5Lvh.cjs} +1 -1
  24. package/lib/edge/{awaiter-4_rv9wh9.js → awaiter-ViNwDb7Z.js} +1 -1
  25. package/lib/edge/{block-styles-83ja5Ixf.cjs → block-styles-EM6CqjQV.cjs} +1 -1
  26. package/lib/edge/{block-styles-KCVLt7eI.js → block-styles-UWqIwj6d.js} +1 -1
  27. package/lib/edge/{block-wrapper-z1tA6pLu.cjs → block-wrapper-RT3WZdPP.cjs} +1 -1
  28. package/lib/edge/{block-wrapper-FpChCEPR.js → block-wrapper-UDhPsV2i.js} +3 -3
  29. package/lib/edge/blocks/form/form/form.vue.d.ts +1 -9
  30. package/lib/edge/{component-ref-oYtINbYY.js → component-ref-8TcFZYaz.js} +3 -3
  31. package/lib/edge/{component-ref-hZs-PJf_.cjs → component-ref-wjx7VJFz.cjs} +1 -1
  32. package/lib/edge/constants/sdk-version.d.ts +1 -1
  33. package/lib/edge/{get-block-properties-g6seSIll.js → get-block-properties-N5o1BfSo.js} +1 -1
  34. package/lib/edge/{get-block-properties-WHU9TAQT.cjs → get-block-properties-VI0RpGQw.cjs} +1 -1
  35. package/lib/edge/{index-Gb_tMZnR.cjs → index-aOfrtP4-.cjs} +14 -14
  36. package/lib/edge/{index-fTtKR2Pq.js → index-taUiLCrC.js} +701 -714
  37. package/lib/edge/index.cjs +1 -1
  38. package/lib/edge/index.mjs +1 -1
  39. package/lib/edge/{repeated-block-_kwPuyY0.js → repeated-block-6gIkzT9B.js} +2 -2
  40. package/lib/{node/repeated-block-p1vrucwi.cjs → edge/repeated-block-qe-61pYU.cjs} +1 -1
  41. package/lib/edge/style.css +1 -1
  42. package/lib/edge/types/builder-content.d.ts +1 -0
  43. package/lib/edge/types/components.d.ts +2 -2
  44. package/lib/edge/types/input.d.ts +10 -0
  45. package/lib/node/{awaiter-yTUISQzQ.js → awaiter-YFLE2xNK.js} +1 -1
  46. package/lib/node/{awaiter-EKc5xDU7.cjs → awaiter-iLczFafd.cjs} +1 -1
  47. package/lib/node/{block-styles-KsyPudvY.cjs → block-styles-X0Yal7gl.cjs} +1 -1
  48. package/lib/node/{block-styles-Z4CBN1bX.js → block-styles-puDhatJi.js} +1 -1
  49. package/lib/node/{block-wrapper-KpJ-EQWT.js → block-wrapper-T3bTZ7up.js} +3 -3
  50. package/lib/node/{block-wrapper-wfmJ-Is8.cjs → block-wrapper-pNzy0_tb.cjs} +1 -1
  51. package/lib/node/blocks/form/form/form.vue.d.ts +1 -9
  52. package/lib/node/{component-ref-PIZE59-x.js → component-ref-_L8PY6Zh.js} +3 -3
  53. package/lib/node/{component-ref-dZr5pqVw.cjs → component-ref-oTG7sOLn.cjs} +1 -1
  54. package/lib/node/constants/sdk-version.d.ts +1 -1
  55. package/lib/node/{get-block-properties-YmWkYu_d.js → get-block-properties-3rEDCEQD.js} +1 -1
  56. package/lib/node/{get-block-properties-XFifmVHz.cjs → get-block-properties-P-xnWokf.cjs} +1 -1
  57. package/lib/node/{index-_D8PBs-1.cjs → index-4h5AimzW.cjs} +8 -8
  58. package/lib/node/{index-PmCPg9YL.js → index-wtum4hyc.js} +352 -365
  59. package/lib/node/index.cjs +1 -1
  60. package/lib/node/index.mjs +1 -1
  61. package/lib/node/{repeated-block-qSSzvRZP.js → repeated-block-jEy76re4.js} +2 -2
  62. package/lib/{edge/repeated-block-o16gyhl8.cjs → node/repeated-block-t1xK6Eml.cjs} +1 -1
  63. package/lib/node/style.css +1 -1
  64. package/lib/node/types/builder-content.d.ts +1 -0
  65. package/lib/node/types/components.d.ts +2 -2
  66. package/lib/node/types/input.d.ts +10 -0
  67. package/package.json +1 -1
  68. package/lib/browser/index-M-gfkd7t.cjs +0 -166
@@ -1,7 +1,7 @@
1
1
  import "./style.css";
2
- import { defineComponent as g, openBlock as c, createElementBlock as p, Fragment as T, createBlock as y, resolveDynamicComponent as K, mergeProps as C, toHandlers as A, withCtx as N, renderSlot as x, resolveComponent as k, createTextVNode as St, toDisplayString as ne, defineAsyncComponent as j, createVNode as P, renderList as V, createCommentVNode as v, h as Ne, createElementVNode as z, normalizeStyle as F, normalizeClass as G, markRaw as Ct } from "vue";
2
+ import { defineComponent as g, openBlock as c, createElementBlock as p, Fragment as $, createBlock as y, resolveDynamicComponent as K, mergeProps as C, toHandlers as x, withCtx as N, renderSlot as B, resolveComponent as k, createTextVNode as St, toDisplayString as ne, defineAsyncComponent as j, createVNode as P, renderList as W, createCommentVNode as S, h as We, createElementVNode as z, normalizeStyle as F, normalizeClass as G, markRaw as Ct } from "vue";
3
3
  const wt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Tt = (e) => typeof e == "string" && wt.has(e.toLowerCase());
4
- function W(e = {}, t, n) {
4
+ function V(e = {}, t, n) {
5
5
  const o = {};
6
6
  for (const r in e) {
7
7
  if (!e[r] || n && !r.startsWith(t))
@@ -24,15 +24,15 @@ const It = g({
24
24
  return n;
25
25
  };
26
26
  function $t(e, t, n, o, r, s) {
27
- return e.isEmptyElement(e.TagName) ? (c(), y(K(e.TagName), C({ key: 1 }, e.attributes, A(e.actionAttributes)), null, 16)) : (c(), p(T, { key: 0 }, [
28
- typeof e.TagName == "string" ? (c(), y(K(e.TagName), C({ key: 0 }, e.attributes, A(e.actionAttributes)), {
27
+ return e.isEmptyElement(e.TagName) ? (c(), y(K(e.TagName), C({ key: 1 }, e.attributes, x(e.actionAttributes)), null, 16)) : (c(), p($, { key: 0 }, [
28
+ typeof e.TagName == "string" ? (c(), y(K(e.TagName), C({ key: 0 }, e.attributes, x(e.actionAttributes)), {
29
29
  default: N(() => [
30
- x(e.$slots, "default")
30
+ B(e.$slots, "default")
31
31
  ]),
32
32
  _: 3
33
- }, 16)) : (c(), y(K(e.TagName), C({ key: 1 }, e.attributes, A(e.actionAttributes)), {
33
+ }, 16)) : (c(), y(K(e.TagName), C({ key: 1 }, e.attributes, x(e.actionAttributes)), {
34
34
  default: N(() => [
35
- x(e.$slots, "default")
35
+ B(e.$slots, "default")
36
36
  ]),
37
37
  _: 3
38
38
  }, 16))
@@ -65,12 +65,12 @@ const me = /* @__PURE__ */ b(It, [["render", $t]]), Ys = /* @__PURE__ */ Object.
65
65
  "text"
66
66
  ],
67
67
  data() {
68
- return { filterAttrs: W };
68
+ return { filterAttrs: V };
69
69
  },
70
70
  methods: {
71
71
  attrs() {
72
72
  return {
73
- ...W(this.attributes, "v-on:", !1),
73
+ ...V(this.attributes, "v-on:", !1),
74
74
  [_()]: `${this.link ? "" : "builder-button"} ${this.attributes[_()] || ""}`,
75
75
  ...this.link ? {
76
76
  href: this.link,
@@ -114,19 +114,19 @@ const Pt = /* @__PURE__ */ b(Rt, [["render", Et]]), Bt = Symbol(), ce = {
114
114
  model: ""
115
115
  },
116
116
  key: Bt
117
- }, At = Symbol(), Oe = {
117
+ }, At = Symbol(), Ne = {
118
118
  Components: { registeredComponents: {} },
119
119
  key: At
120
- }, Q = "[Builder.io]: ", B = {
120
+ }, Q = "[Builder.io]: ", A = {
121
121
  log: (...e) => console.log(Q, ...e),
122
122
  error: (...e) => console.error(Q, ...e),
123
123
  warn: (...e) => console.warn(Q, ...e),
124
124
  debug: (...e) => console.debug(Q, ...e)
125
- }, Fe = (e, t, n) => {
125
+ }, Oe = (e, t, n) => {
126
126
  const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, s) => r != null ? r[s] : r, e);
127
127
  return o === void 0 || o === e ? n : o;
128
128
  };
129
- function I() {
129
+ function T() {
130
130
  return typeof window < "u" && typeof document < "u";
131
131
  }
132
132
  const xt = (e) => {
@@ -134,21 +134,21 @@ const xt = (e) => {
134
134
  return e.forEach((n, o) => {
135
135
  t[o] = n;
136
136
  }), t;
137
- }, De = (e) => e instanceof URLSearchParams ? xt(e) : e, Le = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
137
+ }, Fe = (e) => e instanceof URLSearchParams ? xt(e) : e, De = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
138
138
  function Vt() {
139
- return I() && window.self !== window.top;
139
+ return T() && window.self !== window.top;
140
140
  }
141
141
  function E(e) {
142
142
  return Vt() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
143
- Le(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
143
+ De(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
144
144
  }
145
145
  const Wt = () => {
146
- if (I()) {
146
+ if (T()) {
147
147
  const e = new URL(location.href);
148
148
  return e.pathname === "" && (e.pathname = "/"), e;
149
149
  } else
150
150
  return console.warn("Cannot get location for tracking in non-browser environment"), null;
151
- }, Nt = () => typeof navigator == "object" && navigator.userAgent || "", Ue = () => {
151
+ }, Nt = () => typeof navigator == "object" && navigator.userAgent || "", Le = () => {
152
152
  const e = Nt(), t = {
153
153
  Android() {
154
154
  return e.match(/Android/i);
@@ -188,13 +188,13 @@ const Wt = () => {
188
188
  event: n
189
189
  }), Ft = () => ({
190
190
  isEditing: E(),
191
- isBrowser: I(),
192
- isServer: !I(),
193
- getUserAttributes: () => Ue()
191
+ isBrowser: T(),
192
+ isServer: !T(),
193
+ getUserAttributes: () => Le()
194
194
  }), Dt = (e, {
195
195
  isExpression: t = !0
196
196
  }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
197
- function Me({
197
+ function Ue({
198
198
  rootState: e,
199
199
  localState: t,
200
200
  rootSetState: n
@@ -204,7 +204,7 @@ function Me({
204
204
  if (t && r in t)
205
205
  return t[r];
206
206
  const s = o[r];
207
- return typeof s == "object" && s !== null ? Me({
207
+ return typeof s == "object" && s !== null ? Ue({
208
208
  rootState: s,
209
209
  localState: void 0,
210
210
  rootSetState: n ? (i) => {
@@ -219,7 +219,7 @@ function Me({
219
219
  }
220
220
  });
221
221
  }
222
- const Ie = ({
222
+ const Te = ({
223
223
  code: e,
224
224
  builder: t,
225
225
  context: n,
@@ -232,7 +232,7 @@ const Ie = ({
232
232
  builder: t,
233
233
  context: n,
234
234
  event: o,
235
- state: Me({
235
+ state: Ue({
236
236
  rootState: i,
237
237
  localState: r,
238
238
  rootSetState: s
@@ -251,10 +251,10 @@ const Ut = ({
251
251
  if (!Lt())
252
252
  return !1;
253
253
  const t = process.arch === "arm64", n = process.version.startsWith("v20"), o = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
254
- return t && n && !o ? (e && B.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
255
- }, Mt = (e) => (I() || Ut({
254
+ return t && n && !o ? (e && A.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
255
+ }, Mt = (e) => (T() || Ut({
256
256
  shouldLogWarning: !0
257
- }), Ie(e)), Ht = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, jt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Kt = (e) => {
257
+ }), Te(e)), Ht = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, jt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Kt = (e) => {
258
258
  var t, n, o, r, s, i;
259
259
  return ((o = (n = (t = Ht.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((i = (s = (r = jt.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : s.getPath) == null ? void 0 : i.slice(1));
260
260
  };
@@ -271,7 +271,7 @@ function Y({
271
271
  return;
272
272
  const l = Kt(e.trim());
273
273
  if (l)
274
- return Fe({
274
+ return Oe({
275
275
  ...o,
276
276
  ...n
277
277
  }, l);
@@ -289,7 +289,7 @@ function Y({
289
289
  try {
290
290
  return Mt(a);
291
291
  } catch (u) {
292
- B.error("Failed code evaluation: " + u.message, {
292
+ A.error("Failed code evaluation: " + u.message, {
293
293
  code: e
294
294
  });
295
295
  return;
@@ -340,7 +340,7 @@ function ee(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
340
340
  }), ee(i, t, e, s, r);
341
341
  }));
342
342
  }
343
- function He(e) {
343
+ function Me(e) {
344
344
  return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
345
345
  }
346
346
  function Jt(e) {
@@ -348,7 +348,7 @@ function Jt(e) {
348
348
  return !1;
349
349
  let t = !1;
350
350
  return ee(e, (n) => {
351
- if (He(n)) {
351
+ if (Me(n)) {
352
352
  t = !0;
353
353
  return;
354
354
  }
@@ -356,14 +356,14 @@ function Jt(e) {
356
356
  }
357
357
  function Yt(e, t) {
358
358
  return !e || !Object.getOwnPropertyNames(e).length ? {} : (ee(e, (n, o) => {
359
- He(n) && o(n[t] ?? void 0);
359
+ Me(n) && o(n[t] ?? void 0);
360
360
  }), e);
361
361
  }
362
362
  function Xt(e, t) {
363
363
  var n, o;
364
364
  return (n = e.component) != null && n.options && Jt((o = e.component) == null ? void 0 : o.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = Yt(e.component.options, t ?? "Default")), e;
365
365
  }
366
- const he = (e) => JSON.parse(JSON.stringify(e)), je = (e, t, n) => {
366
+ const he = (e) => JSON.parse(JSON.stringify(e)), He = (e, t, n) => {
367
367
  if (Object(e) !== e)
368
368
  return e;
369
369
  const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
@@ -425,7 +425,7 @@ const Qt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), Zt = (e) =
425
425
  rootSetState: r,
426
426
  context: t
427
427
  });
428
- je(s, i, a);
428
+ He(s, i, a);
429
429
  }
430
430
  return s;
431
431
  };
@@ -445,9 +445,9 @@ function en({
445
445
  context: t
446
446
  });
447
447
  }
448
- function Ke(e) {
449
- const t = e || (I() ? window.location.search : void 0);
450
- return t ? Le(t).indexOf("builder.preview=") !== -1 : !1;
448
+ function je(e) {
449
+ const t = e || (T() ? window.location.search : void 0);
450
+ return t ? De(t).indexOf("builder.preview=") !== -1 : !1;
451
451
  }
452
452
  const tn = (e) => ({
453
453
  type: "builder.registerComponent",
@@ -459,11 +459,11 @@ const tn = (e) => ({
459
459
  function te(e) {
460
460
  return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? nn(n) : n));
461
461
  }
462
- const $e = {};
462
+ const Ie = {};
463
463
  function on(e, t) {
464
464
  e === "plugin" && (t = te(t));
465
- let n = $e[e];
466
- if (n || (n = $e[e] = []), n.push(t), I()) {
465
+ let n = Ie[e];
466
+ if (n || (n = Ie[e] = []), n.push(t), T()) {
467
467
  const o = {
468
468
  type: "builder.register",
469
469
  data: {
@@ -478,42 +478,42 @@ function on(e, t) {
478
478
  }
479
479
  }
480
480
  }
481
- const Re = {};
481
+ const $e = {};
482
482
  function Xs(e) {
483
- if (I()) {
484
- Object.assign(Re, e);
483
+ if (T()) {
484
+ Object.assign($e, e);
485
485
  const t = {
486
486
  type: "builder.settingsChange",
487
- data: Re
487
+ data: $e
488
488
  };
489
489
  parent.postMessage(t, "*");
490
490
  }
491
491
  }
492
- const Ee = "builder.", rn = "options.", qe = (e) => {
492
+ const Re = "builder.", rn = "options.", Ke = (e) => {
493
493
  if (!e)
494
494
  return {};
495
- const t = De(e), n = {};
495
+ const t = Fe(e), n = {};
496
496
  return Object.keys(t).forEach((o) => {
497
- if (o.startsWith(Ee)) {
498
- const r = o.replace(Ee, "").replace(rn, "");
497
+ if (o.startsWith(Re)) {
498
+ const r = o.replace(Re, "").replace(rn, "");
499
499
  n[r] = t[o];
500
500
  }
501
501
  }), n;
502
502
  }, sn = () => {
503
- if (!I())
503
+ if (!T())
504
504
  return {};
505
505
  const e = new URLSearchParams(window.location.search);
506
- return qe(e);
507
- }, ze = "3.0.2", Ge = () => ({
506
+ return Ke(e);
507
+ }, qe = "3.0.5", ze = () => ({
508
508
  "X-Builder-SDK": R,
509
509
  "X-Builder-SDK-GEN": "2",
510
- "X-Builder-SDK-Version": ze
510
+ "X-Builder-SDK-Version": qe
511
511
  }), an = (e) => {
512
512
  if (e === "localhost" || e === "127.0.0.1")
513
513
  return e;
514
514
  const t = e.split(".");
515
515
  return t.length > 2 ? t.slice(1).join(".") : e;
516
- }, Je = ({
516
+ }, Ge = ({
517
517
  name: e,
518
518
  canTrack: t
519
519
  }) => {
@@ -521,17 +521,17 @@ const Ee = "builder.", rn = "options.", qe = (e) => {
521
521
  try {
522
522
  return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
523
523
  } catch (o) {
524
- B.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
524
+ A.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
525
525
  return;
526
526
  }
527
- }, Ye = async (e) => Je(e), ln = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(D).join("; "), cn = [["secure", ""], ["SameSite", "None"]], dn = ({
527
+ }, Je = async (e) => Ge(e), ln = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(D).join("; "), cn = [["secure", ""], ["SameSite", "None"]], dn = ({
528
528
  name: e,
529
529
  value: t,
530
530
  expires: n
531
531
  }) => {
532
- const r = (I() ? location.protocol === "https:" : !0) ? cn : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...s, ["path", "/"], ["domain", an(window.location.hostname)], ...r];
532
+ const r = (T() ? location.protocol === "https:" : !0) ? cn : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...s, ["path", "/"], ["domain", an(window.location.hostname)], ...r];
533
533
  return ln(i);
534
- }, Xe = async ({
534
+ }, Ye = async ({
535
535
  name: e,
536
536
  value: t,
537
537
  expires: n,
@@ -547,7 +547,7 @@ const Ee = "builder.", rn = "options.", qe = (e) => {
547
547
  });
548
548
  document.cookie = r;
549
549
  } catch (r) {
550
- B.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
550
+ A.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
551
551
  }
552
552
  };
553
553
  function un() {
@@ -556,16 +556,16 @@ function un() {
556
556
  return (e == "x" ? t : t & 3 | 8).toString(16);
557
557
  });
558
558
  }
559
- function Qe() {
559
+ function Xe() {
560
560
  return un().replace(/-/g, "");
561
561
  }
562
- const Ze = "builderSessionId", pn = async ({
562
+ const Qe = "builderSessionId", pn = async ({
563
563
  canTrack: e
564
564
  }) => {
565
565
  if (!e)
566
566
  return;
567
- const t = await Ye({
568
- name: Ze,
567
+ const t = await Je({
568
+ name: Qe,
569
569
  canTrack: e
570
570
  });
571
571
  if (D(t))
@@ -577,20 +577,20 @@ const Ze = "builderSessionId", pn = async ({
577
577
  canTrack: e
578
578
  }), n;
579
579
  }
580
- }, mn = () => Qe(), hn = ({
580
+ }, mn = () => Xe(), hn = ({
581
581
  id: e,
582
582
  canTrack: t
583
- }) => Xe({
584
- name: Ze,
583
+ }) => Ye({
584
+ name: Qe,
585
585
  value: e,
586
586
  canTrack: t
587
- }), _e = () => I() && typeof localStorage < "u" ? localStorage : void 0, fn = ({
587
+ }), Ze = () => T() && typeof localStorage < "u" ? localStorage : void 0, fn = ({
588
588
  key: e,
589
589
  canTrack: t
590
590
  }) => {
591
591
  var n;
592
592
  try {
593
- return t ? (n = _e()) == null ? void 0 : n.getItem(e) : void 0;
593
+ return t ? (n = Ze()) == null ? void 0 : n.getItem(e) : void 0;
594
594
  } catch (o) {
595
595
  console.debug("[LocalStorage] GET error: ", o);
596
596
  return;
@@ -602,17 +602,17 @@ const Ze = "builderSessionId", pn = async ({
602
602
  }) => {
603
603
  var o;
604
604
  try {
605
- t && ((o = _e()) == null || o.setItem(e, n));
605
+ t && ((o = Ze()) == null || o.setItem(e, n));
606
606
  } catch (r) {
607
607
  console.debug("[LocalStorage] SET error: ", r);
608
608
  }
609
- }, et = "builderVisitorId", bn = ({
609
+ }, _e = "builderVisitorId", bn = ({
610
610
  canTrack: e
611
611
  }) => {
612
612
  if (!e)
613
613
  return;
614
614
  const t = fn({
615
- key: et,
615
+ key: _e,
616
616
  canTrack: e
617
617
  });
618
618
  if (D(t))
@@ -624,17 +624,17 @@ const Ze = "builderSessionId", pn = async ({
624
624
  canTrack: e
625
625
  }), n;
626
626
  }
627
- }, yn = () => Qe(), kn = ({
627
+ }, yn = () => Xe(), kn = ({
628
628
  id: e,
629
629
  canTrack: t
630
630
  }) => gn({
631
- key: et,
631
+ key: _e,
632
632
  value: e,
633
633
  canTrack: t
634
634
  });
635
635
  function fe(e) {
636
636
  var t;
637
- typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && B.log(e);
637
+ typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && A.log(e);
638
638
  }
639
639
  const vn = async ({
640
640
  canTrack: e
@@ -670,7 +670,7 @@ const vn = async ({
670
670
  ...await vn({
671
671
  canTrack: t
672
672
  }),
673
- userAttributes: Ue(),
673
+ userAttributes: Le(),
674
674
  ownerId: n
675
675
  }
676
676
  });
@@ -679,10 +679,10 @@ async function ue({
679
679
  ...t
680
680
  }) {
681
681
  if (!t.apiKey) {
682
- B.error("Missing API key for track call. Please provide your API key.");
682
+ A.error("Missing API key for track call. Please provide your API key.");
683
683
  return;
684
684
  }
685
- if (!t.canTrack || E() || !(I() || R === "reactNative"))
685
+ if (!t.canTrack || E() || !(T() || R === "reactNative"))
686
686
  return;
687
687
  const o = `${e || "https://cdn.builder.io"}/api/v1/track`;
688
688
  return fe(o), fetch(o, {
@@ -692,7 +692,7 @@ async function ue({
692
692
  }),
693
693
  headers: {
694
694
  "content-type": "application/json",
695
- ...Ge()
695
+ ...ze()
696
696
  },
697
697
  mode: "cors"
698
698
  }).catch((r) => {
@@ -703,7 +703,7 @@ const Qs = (e) => ue({
703
703
  ...e,
704
704
  canTrack: !0
705
705
  }), Cn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
706
- function tt(e, t) {
706
+ function et(e, t) {
707
707
  if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
708
708
  return !1;
709
709
  const n = new URL(t.origin), o = n.hostname;
@@ -732,14 +732,14 @@ const wn = () => {
732
732
  }]
733
733
  });
734
734
  };
735
- let Pe = !1;
736
- const nt = (e = {}) => {
735
+ let Ee = !1;
736
+ const tt = (e = {}) => {
737
737
  var t, n;
738
- Pe || (Pe = !0, I() && ((t = window.parent) == null || t.postMessage({
738
+ Ee || (Ee = !0, T() && ((t = window.parent) == null || t.postMessage({
739
739
  type: "builder.sdkInfo",
740
740
  data: {
741
741
  target: R,
742
- version: ze,
742
+ version: qe,
743
743
  supportsPatchUpdates: !1,
744
744
  // Supports builder-model="..." attribute which is needed to
745
745
  // scope our '+ add block' button styling
@@ -753,7 +753,7 @@ const nt = (e = {}) => {
753
753
  }
754
754
  }, "*"), window.addEventListener("message", (o) => {
755
755
  var s, i;
756
- if (!tt(e.trustedHosts, o))
756
+ if (!et(e.trustedHosts, o))
757
757
  return;
758
758
  const {
759
759
  data: r
@@ -761,10 +761,10 @@ const nt = (e = {}) => {
761
761
  if (r != null && r.type)
762
762
  switch (r.type) {
763
763
  case "builder.evaluate": {
764
- const l = r.data.text, a = r.data.arguments || [], u = r.data.id, m = new Function(l);
765
- let h, d = null;
764
+ const l = r.data.text, a = r.data.arguments || [], u = r.data.id, h = new Function(l);
765
+ let m, d = null;
766
766
  try {
767
- h = m.apply(null, a);
767
+ m = h.apply(null, a);
768
768
  } catch (f) {
769
769
  d = f;
770
770
  }
@@ -774,9 +774,9 @@ const nt = (e = {}) => {
774
774
  id: u,
775
775
  error: d.message
776
776
  }
777
- }, "*") : h && typeof h.then == "function" ? h.then((f) => {
778
- var S;
779
- (S = window.parent) == null || S.postMessage({
777
+ }, "*") : m && typeof m.then == "function" ? m.then((f) => {
778
+ var v;
779
+ (v = window.parent) == null || v.postMessage({
780
780
  type: "builder.evaluateResult",
781
781
  data: {
782
782
  id: u,
@@ -786,7 +786,7 @@ const nt = (e = {}) => {
786
786
  }).catch(console.error) : (i = window.parent) == null || i.postMessage({
787
787
  type: "builder.evaluateResult",
788
788
  data: {
789
- result: h,
789
+ result: m,
790
790
  id: u
791
791
  }
792
792
  }, "*");
@@ -794,12 +794,12 @@ const nt = (e = {}) => {
794
794
  }
795
795
  }
796
796
  })));
797
- }, ot = ({
797
+ }, nt = ({
798
798
  model: e,
799
799
  trustedHosts: t,
800
800
  callbacks: n
801
801
  }) => (o) => {
802
- if (!tt(t, o))
802
+ if (!et(t, o))
803
803
  return;
804
804
  const {
805
805
  data: r
@@ -821,11 +821,11 @@ const nt = (e = {}) => {
821
821
  }
822
822
  }
823
823
  }, Zs = (e, t, n) => {
824
- if (!I)
825
- return B.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
824
+ if (!T)
825
+ return A.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
826
826
  };
827
- nt();
828
- const o = ot({
827
+ tt();
828
+ const o = nt({
829
829
  callbacks: {
830
830
  contentUpdate: t,
831
831
  animation: () => {
@@ -841,22 +841,22 @@ const nt = (e = {}) => {
841
841
  };
842
842
  }, Tn = "builder.tests", ge = (e) => `${Tn}.${e}`, In = ({
843
843
  contentId: e
844
- }) => Ye({
844
+ }) => Je({
845
845
  name: ge(e),
846
846
  canTrack: !0
847
847
  }), $n = ({
848
848
  contentId: e
849
- }) => Je({
849
+ }) => Ge({
850
850
  name: ge(e),
851
851
  canTrack: !0
852
852
  }), Rn = ({
853
853
  contentId: e,
854
854
  value: t
855
- }) => Xe({
855
+ }) => Ye({
856
856
  name: ge(e),
857
857
  value: t,
858
858
  canTrack: !0
859
- }), rt = (e) => D(e.id) && D(e.variations) && Object.keys(e.variations).length > 0, En = ({
859
+ }), ot = (e) => D(e.id) && D(e.variations) && Object.keys(e.variations).length > 0, En = ({
860
860
  id: e,
861
861
  variations: t
862
862
  }) => {
@@ -869,15 +869,15 @@ const nt = (e = {}) => {
869
869
  return s;
870
870
  }
871
871
  return e;
872
- }, st = (e) => {
872
+ }, rt = (e) => {
873
873
  const t = En(e);
874
874
  return Rn({
875
875
  contentId: e.id,
876
876
  value: t
877
877
  }).catch((n) => {
878
- B.error("could not store A/B test variation: ", n);
878
+ A.error("could not store A/B test variation: ", n);
879
879
  }), t;
880
- }, it = ({
880
+ }, st = ({
881
881
  item: e,
882
882
  testGroupId: t
883
883
  }) => {
@@ -899,14 +899,14 @@ const nt = (e = {}) => {
899
899
  return e;
900
900
  if (!e)
901
901
  return;
902
- if (!rt(e))
902
+ if (!ot(e))
903
903
  return e;
904
904
  const n = $n({
905
905
  contentId: e.id
906
- }) || st({
906
+ }) || rt({
907
907
  variations: e.variations,
908
908
  id: e.id
909
- }), o = it({
909
+ }), o = st({
910
910
  item: e,
911
911
  testGroupId: n
912
912
  });
@@ -918,14 +918,14 @@ const nt = (e = {}) => {
918
918
  item: e,
919
919
  canTrack: t
920
920
  }) => {
921
- if (!t || !rt(e))
921
+ if (!t || !ot(e))
922
922
  return e;
923
923
  const o = await In({
924
924
  contentId: e.id
925
- }) || st({
925
+ }) || rt({
926
926
  variations: e.variations,
927
927
  id: e.id
928
- }), r = it({
928
+ }), r = st({
929
929
  item: e,
930
930
  testGroupId: o
931
931
  });
@@ -957,10 +957,10 @@ function pe(e, t = null, n = ".") {
957
957
  };
958
958
  }, {});
959
959
  }
960
- function at(e, t, n = {}) {
960
+ function it(e, t, n = {}) {
961
961
  for (const o in e) {
962
962
  const r = e[o], s = t ? t + "." + o : o;
963
- r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((i) => i.startsWith("$")) ? at(r, s, n) : n[s] = r;
963
+ r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((i) => i.startsWith("$")) ? it(r, s, n) : n[s] = r;
964
964
  }
965
965
  return n;
966
966
  }
@@ -976,7 +976,7 @@ function Wn(e) {
976
976
  }
977
977
  return t;
978
978
  }
979
- const Nn = "v3", Be = (e) => typeof e == "number" && !isNaN(e) && e >= 0, be = (e) => {
979
+ const Nn = "v3", Pe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, be = (e) => {
980
980
  const {
981
981
  limit: t = 30,
982
982
  userAttributes: n,
@@ -987,11 +987,11 @@ const Nn = "v3", Be = (e) => typeof e == "number" && !isNaN(e) && e >= 0, be = (
987
987
  locale: l,
988
988
  apiVersion: a = Nn,
989
989
  fields: u,
990
- omit: m,
991
- offset: h,
990
+ omit: h,
991
+ offset: m,
992
992
  cacheSeconds: d,
993
993
  staleCacheSeconds: f,
994
- sort: S,
994
+ sort: v,
995
995
  includeUnpublished: w,
996
996
  apiHost: L
997
997
  } = e;
@@ -999,46 +999,46 @@ const Nn = "v3", Be = (e) => typeof e == "number" && !isNaN(e) && e >= 0, be = (
999
999
  throw new Error("Missing API key");
1000
1000
  if (!["v3"].includes(a))
1001
1001
  throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
1002
- const kt = t !== 1, vt = L || "https://cdn.builder.io", $ = new URL(`${vt}/api/${a}/content/${r}`);
1003
- $.searchParams.set("apiKey", s), $.searchParams.set("limit", String(t)), $.searchParams.set("noTraverse", String(kt)), $.searchParams.set("includeRefs", String(!0));
1002
+ const kt = t !== 1, vt = L || "https://cdn.builder.io", I = new URL(`${vt}/api/${a}/content/${r}`);
1003
+ I.searchParams.set("apiKey", s), I.searchParams.set("limit", String(t)), I.searchParams.set("noTraverse", String(kt)), I.searchParams.set("includeRefs", String(!0));
1004
1004
  const oe = l || (n == null ? void 0 : n.locale);
1005
1005
  let U = n || {};
1006
- if (oe && ($.searchParams.set("locale", oe), U = {
1006
+ if (oe && (I.searchParams.set("locale", oe), U = {
1007
1007
  locale: oe,
1008
1008
  ...U
1009
- }), i && $.searchParams.set("enrich", String(i)), $.searchParams.set("omit", m || "meta.componentsUsed"), u && $.searchParams.set("fields", u), Number.isFinite(h) && h > -1 && $.searchParams.set("offset", String(Math.floor(h))), typeof w == "boolean" && $.searchParams.set("includeUnpublished", String(w)), d && Be(d) && $.searchParams.set("cacheSeconds", String(d)), f && Be(f) && $.searchParams.set("staleCacheSeconds", String(f)), S) {
1009
+ }), i && I.searchParams.set("enrich", String(i)), I.searchParams.set("omit", h || "meta.componentsUsed"), u && I.searchParams.set("fields", u), Number.isFinite(m) && m > -1 && I.searchParams.set("offset", String(Math.floor(m))), typeof w == "boolean" && I.searchParams.set("includeUnpublished", String(w)), d && Pe(d) && I.searchParams.set("cacheSeconds", String(d)), f && Pe(f) && I.searchParams.set("staleCacheSeconds", String(f)), v) {
1010
1010
  const O = pe({
1011
- sort: S
1011
+ sort: v
1012
1012
  });
1013
1013
  for (const H in O)
1014
- $.searchParams.set(H, JSON.stringify(O[H]));
1014
+ I.searchParams.set(H, JSON.stringify(O[H]));
1015
1015
  }
1016
- const we = {
1016
+ const Ce = {
1017
1017
  ...sn(),
1018
- ...De(e.options || {})
1018
+ ...Fe(e.options || {})
1019
1019
  };
1020
1020
  U = {
1021
1021
  ...U,
1022
- ...Fn(we)
1022
+ ...Fn(Ce)
1023
1023
  };
1024
- const Te = pe(we);
1025
- for (const O in Te)
1026
- $.searchParams.set(O, String(Te[O]));
1027
- if (Object.keys(U).length > 0 && $.searchParams.set("userAttributes", JSON.stringify(U)), o) {
1028
- const O = at({
1024
+ const we = pe(Ce);
1025
+ for (const O in we)
1026
+ I.searchParams.set(O, String(we[O]));
1027
+ if (Object.keys(U).length > 0 && I.searchParams.set("userAttributes", JSON.stringify(U)), o) {
1028
+ const O = it({
1029
1029
  query: o
1030
1030
  });
1031
1031
  for (const H in O)
1032
- $.searchParams.set(H, JSON.stringify(O[H]));
1032
+ I.searchParams.set(H, JSON.stringify(O[H]));
1033
1033
  }
1034
- return $;
1034
+ return I;
1035
1035
  }, On = (e) => {
1036
1036
  const t = {};
1037
1037
  for (const n in e)
1038
1038
  n.startsWith("userAttributes.") && (t[n] = e[n], delete e[n]);
1039
1039
  return t;
1040
1040
  }, Fn = (e) => {
1041
- if (I() && e.preview === "BUILDER_STUDIO") {
1041
+ if (T() && e.preview === "BUILDER_STUDIO") {
1042
1042
  e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
1043
1043
  const t = On(e), {
1044
1044
  userAttributes: n
@@ -1060,13 +1060,13 @@ const Ln = async (e) => {
1060
1060
  ...e.fetchOptions,
1061
1061
  headers: {
1062
1062
  ...(i = e.fetchOptions) == null ? void 0 : i.headers,
1063
- ...Ge()
1063
+ ...ze()
1064
1064
  }
1065
1065
  };
1066
1066
  return await (await n(t.href, o)).json();
1067
1067
  }, Un = async (e, t, n = be(e)) => {
1068
1068
  const o = J(e.canTrack);
1069
- if (n.search.includes("preview="), !o || !(I() || R === "reactNative"))
1069
+ if (n.search.includes("preview="), !o || !(T() || R === "reactNative"))
1070
1070
  return t.results;
1071
1071
  try {
1072
1072
  const r = [];
@@ -1077,14 +1077,14 @@ const Ln = async (e) => {
1077
1077
  }));
1078
1078
  t.results = r;
1079
1079
  } catch (r) {
1080
- B.error("Could not process A/B tests. ", r);
1080
+ A.error("Could not process A/B tests. ", r);
1081
1081
  }
1082
1082
  return t.results;
1083
1083
  };
1084
1084
  async function Mn(e) {
1085
1085
  const t = be(e), n = await Ln(e);
1086
1086
  if (!Dn(n))
1087
- throw B.error("Error fetching data. ", {
1087
+ throw A.error("Error fetching data. ", {
1088
1088
  url: t,
1089
1089
  content: n,
1090
1090
  options: e
@@ -1103,7 +1103,7 @@ const _s = async (e) => {
1103
1103
  urlPath: t
1104
1104
  } : {}
1105
1105
  },
1106
- options: qe(e.searchParams || ((s = e.url) == null ? void 0 : s.searchParams) || e.options)
1106
+ options: Ke(e.searchParams || ((s = e.url) == null ? void 0 : s.searchParams) || e.options)
1107
1107
  };
1108
1108
  return {
1109
1109
  apiKey: n.apiKey,
@@ -1119,8 +1119,8 @@ function Hn(e, t, n = {}) {
1119
1119
  return function() {
1120
1120
  const u = Date.now();
1121
1121
  !l && n.leading === !1 && (l = u);
1122
- const m = t - (u - l);
1123
- return o = this, r = arguments, m <= 0 || m > t ? (i && (clearTimeout(i), i = null), l = u, s = e.apply(o, r), i || (o = r = null)) : !i && n.trailing !== !1 && (i = setTimeout(a, m)), s;
1122
+ const h = t - (u - l);
1123
+ return o = this, r = arguments, h <= 0 || h > t ? (i && (clearTimeout(i), i = null), l = u, s = e.apply(o, r), i || (o = r = null)) : !i && n.trailing !== !1 && (i = setTimeout(a, h)), s;
1124
1124
  };
1125
1125
  }
1126
1126
  function q(e, ...t) {
@@ -1137,17 +1137,17 @@ function jn(e) {
1137
1137
  for (const t of e)
1138
1138
  switch (t.trigger) {
1139
1139
  case "pageLoad":
1140
- dt(t);
1140
+ ct(t);
1141
1141
  break;
1142
1142
  case "scrollInView":
1143
1143
  qn(t);
1144
1144
  break;
1145
1145
  }
1146
1146
  }
1147
- function lt(e) {
1147
+ function at(e) {
1148
1148
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
1149
1149
  }
1150
- function ct(e, t) {
1150
+ function lt(e, t) {
1151
1151
  const n = Kn(e), o = getComputedStyle(t), r = e.steps[0].styles, s = e.steps[e.steps.length - 1].styles, i = [r, s];
1152
1152
  for (const l of i)
1153
1153
  for (const a of n)
@@ -1160,14 +1160,14 @@ function Kn(e) {
1160
1160
  t.indexOf(o) === -1 && t.push(o);
1161
1161
  return t;
1162
1162
  }
1163
- function dt(e) {
1163
+ function ct(e) {
1164
1164
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
1165
1165
  if (!t.length) {
1166
- lt(e.elementId || e.id || "");
1166
+ at(e.elementId || e.id || "");
1167
1167
  return;
1168
1168
  }
1169
1169
  Array.from(t).forEach((n) => {
1170
- ct(e, n), n.style.transition = "none", n.style.transitionDelay = "0", q(n.style, e.steps[0].styles), setTimeout(() => {
1170
+ lt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", q(n.style, e.steps[0].styles), setTimeout(() => {
1171
1171
  n.style.transition = `all ${e.duration}s ${ke(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), q(n.style, e.steps[1].styles), setTimeout(() => {
1172
1172
  n.style.transition = "", n.style.transitionDelay = "";
1173
1173
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
@@ -1177,11 +1177,11 @@ function dt(e) {
1177
1177
  function qn(e) {
1178
1178
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
1179
1179
  if (!t.length) {
1180
- lt(e.elementId || e.id || "");
1180
+ at(e.elementId || e.id || "");
1181
1181
  return;
1182
1182
  }
1183
1183
  Array.from(t).forEach((n) => {
1184
- ct(e, n);
1184
+ lt(e, n);
1185
1185
  let o = !1, r = !1;
1186
1186
  function s() {
1187
1187
  !o && l(n) ? (o = !0, r = !0, setTimeout(() => {
@@ -1193,9 +1193,9 @@ function qn(e) {
1193
1193
  const i = Hn(s, 200, {
1194
1194
  leading: !1
1195
1195
  });
1196
- function l(m) {
1197
- const h = m.getBoundingClientRect(), d = window.innerHeight, S = (e.thresholdPercent || 0) / 100 * d;
1198
- return h.bottom > S && h.top < d - S;
1196
+ function l(h) {
1197
+ const m = h.getBoundingClientRect(), d = window.innerHeight, v = (e.thresholdPercent || 0) / 100 * d;
1198
+ return m.bottom > v && m.top < d - v;
1199
1199
  }
1200
1200
  const a = e.steps[0].styles;
1201
1201
  function u() {
@@ -1209,10 +1209,10 @@ function qn(e) {
1209
1209
  }), s();
1210
1210
  });
1211
1211
  }
1212
- const ut = (e) => Object.entries(e).map(([n, o]) => {
1212
+ const dt = (e) => Object.entries(e).map(([n, o]) => {
1213
1213
  if (typeof o == "string")
1214
1214
  return `${ke(n)}: ${o};`;
1215
- }).filter(D), zn = (e) => ut(e).join(`
1215
+ }).filter(D), zn = (e) => dt(e).join(`
1216
1216
  `), ei = ({
1217
1217
  mediaQuery: e,
1218
1218
  className: t,
@@ -1233,18 +1233,18 @@ function Gn({
1233
1233
  const ti = ({
1234
1234
  block: e,
1235
1235
  context: t
1236
- }) => pt(Gn({
1236
+ }) => ut(Gn({
1237
1237
  style: e.style || {},
1238
1238
  context: t,
1239
1239
  block: e
1240
1240
  }));
1241
- function pt(e) {
1241
+ function ut(e) {
1242
1242
  switch (R) {
1243
1243
  case "svelte":
1244
1244
  case "vue":
1245
1245
  case "solid":
1246
1246
  case "angular":
1247
- return ut(e).join(" ");
1247
+ return dt(e).join(" ");
1248
1248
  case "qwik":
1249
1249
  case "reactNative":
1250
1250
  case "react":
@@ -1252,7 +1252,7 @@ function pt(e) {
1252
1252
  return e;
1253
1253
  }
1254
1254
  }
1255
- const mt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Jn = ({
1255
+ const pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Jn = ({
1256
1256
  block: e,
1257
1257
  registeredComponents: t,
1258
1258
  model: n
@@ -1262,7 +1262,7 @@ const mt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1262
1262
  if (!o)
1263
1263
  return null;
1264
1264
  const r = t[o];
1265
- if (!r || mt(r, n)) {
1265
+ if (!r || pt(r, n)) {
1266
1266
  console.warn(`
1267
1267
  Could not find a registered component named "${o}".
1268
1268
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
@@ -1310,7 +1310,7 @@ const mt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1310
1310
  }, Qn = (e, t, n) => {
1311
1311
  var o;
1312
1312
  return (o = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && o.builderComponents ? {
1313
- builderComponents: Object.fromEntries(Object.entries(t).filter(([s, i]) => !mt(i, n)))
1313
+ builderComponents: Object.fromEntries(Object.entries(t).filter(([s, i]) => !pt(i, n)))
1314
1314
  } : {};
1315
1315
  }, Zn = (e, t) => {
1316
1316
  var n;
@@ -1327,22 +1327,22 @@ const mt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1327
1327
  "Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
1328
1328
  e
1329
1329
  ), e;
1330
- }), to = () => import("./block-styles-zLkeE8Yo.js").then((e) => e.default).catch((e) => {
1330
+ }), to = () => import("./block-styles-lsb_KdIv.js").then((e) => e.default).catch((e) => {
1331
1331
  throw console.error(
1332
1332
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
1333
1333
  e
1334
1334
  ), e;
1335
- }), no = () => import("./block-wrapper-RHvSza0L.js").then((e) => e.default).catch((e) => {
1335
+ }), no = () => import("./block-wrapper-wgruUtvA.js").then((e) => e.default).catch((e) => {
1336
1336
  throw console.error(
1337
1337
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
1338
1338
  e
1339
1339
  ), e;
1340
- }), oo = () => import("./component-ref-QZVWIf-w.js").then((e) => e.default).catch((e) => {
1340
+ }), oo = () => import("./component-ref-vtmUy--R.js").then((e) => e.default).catch((e) => {
1341
1341
  throw console.error(
1342
1342
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
1343
1343
  e
1344
1344
  ), e;
1345
- }), ro = () => import("./repeated-block-9wsw76F2.js").then((e) => e.default).catch((e) => {
1345
+ }), ro = () => import("./repeated-block-vu-vd9Qj.js").then((e) => e.default).catch((e) => {
1346
1346
  throw console.error(
1347
1347
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
1348
1348
  e
@@ -1442,15 +1442,15 @@ const mt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
1442
1442
  }
1443
1443
  });
1444
1444
  function io(e, t, n, o, r, s) {
1445
- var h;
1446
- const i = k("BlockStyles"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), m = k("RepeatedBlock");
1447
- return e.canShowBlock ? (c(), p(T, { key: 0 }, [
1445
+ var m;
1446
+ const i = k("BlockStyles"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), h = k("RepeatedBlock");
1447
+ return e.canShowBlock ? (c(), p($, { key: 0 }, [
1448
1448
  P(i, {
1449
1449
  block: e.processedBlock,
1450
1450
  context: e.context
1451
1451
  }, null, 8, ["block", "context"]),
1452
- (h = e.blockComponent) != null && h.noWrap ? (c(), p(T, { key: 1 }, [
1453
- e.repeatItem ? (c(!0), p(T, { key: 1 }, V(e.repeatItem, (d, f) => (c(), y(m, {
1452
+ (m = e.blockComponent) != null && m.noWrap ? (c(), p($, { key: 1 }, [
1453
+ e.repeatItem ? (c(!0), p($, { key: 1 }, W(e.repeatItem, (d, f) => (c(), y(h, {
1454
1454
  key: f,
1455
1455
  repeatContext: d.context,
1456
1456
  block: d.block,
@@ -1468,8 +1468,8 @@ function io(e, t, n, o, r, s) {
1468
1468
  includeBlockProps: e.componentRefProps.includeBlockProps,
1469
1469
  isInteractive: e.componentRefProps.isInteractive
1470
1470
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
1471
- ], 64)) : (c(), p(T, { key: 0 }, [
1472
- e.repeatItem ? (c(!0), p(T, { key: 1 }, V(e.repeatItem, (d, f) => (c(), y(m, {
1471
+ ], 64)) : (c(), p($, { key: 0 }, [
1472
+ e.repeatItem ? (c(!0), p($, { key: 1 }, W(e.repeatItem, (d, f) => (c(), y(h, {
1473
1473
  key: f,
1474
1474
  repeatContext: d.context,
1475
1475
  block: d.block,
@@ -1493,7 +1493,7 @@ function io(e, t, n, o, r, s) {
1493
1493
  includeBlockProps: e.componentRefProps.includeBlockProps,
1494
1494
  isInteractive: e.componentRefProps.isInteractive
1495
1495
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
1496
- (c(!0), p(T, null, V(e.childrenWithoutParentComponent, (d, f) => (c(), y(a, {
1496
+ (c(!0), p($, null, W(e.childrenWithoutParentComponent, (d, f) => (c(), y(a, {
1497
1497
  key: d.id,
1498
1498
  block: d,
1499
1499
  registeredComponents: e.registeredComponents,
@@ -1504,11 +1504,11 @@ function io(e, t, n, o, r, s) {
1504
1504
  _: 1
1505
1505
  }, 8, ["Wrapper", "block", "context"]))
1506
1506
  ], 64))
1507
- ], 64)) : v("", !0);
1507
+ ], 64)) : S("", !0);
1508
1508
  }
1509
- const ve = /* @__PURE__ */ b(so, [["render", io]]), ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1509
+ const mt = /* @__PURE__ */ b(so, [["render", io]]), ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1510
1510
  __proto__: null,
1511
- default: ve
1511
+ default: mt
1512
1512
  }, Symbol.toStringTag, { value: "Module" })), ao = g({
1513
1513
  name: "builder-blocks-wrapper",
1514
1514
  props: [
@@ -1579,14 +1579,14 @@ function lo(e, t, n, o, r, s) {
1579
1579
  onKeyPress: (i) => e.onClick()
1580
1580
  }, { ...e.BlocksWrapperProps }), {
1581
1581
  default: N(() => [
1582
- x(e.$slots, "default", {}, void 0, !0)
1582
+ B(e.$slots, "default", {}, void 0, !0)
1583
1583
  ]),
1584
1584
  _: 3
1585
1585
  }, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
1586
1586
  }
1587
1587
  const co = /* @__PURE__ */ b(ao, [["render", lo], ["__scopeId", "data-v-ba2bc5c0"]]), uo = g({
1588
1588
  name: "builder-blocks",
1589
- components: { BlocksWrapper: co, Block: ve },
1589
+ components: { BlocksWrapper: co, Block: mt },
1590
1590
  props: [
1591
1591
  "blocks",
1592
1592
  "parent",
@@ -1599,11 +1599,11 @@ const co = /* @__PURE__ */ b(ao, [["render", lo], ["__scopeId", "data-v-ba2bc5c0
1599
1599
  ],
1600
1600
  inject: {
1601
1601
  builderContext: ce.key,
1602
- componentsContext: Oe.key
1602
+ componentsContext: Ne.key
1603
1603
  }
1604
1604
  });
1605
1605
  function po(e, t, n, o, r, s) {
1606
- var a, u, m, h;
1606
+ var a, u, h, m;
1607
1607
  const i = k("Block"), l = k("BlocksWrapper");
1608
1608
  return c(), y(l, {
1609
1609
  blocks: e.blocks,
@@ -1612,19 +1612,19 @@ function po(e, t, n, o, r, s) {
1612
1612
  styleProp: e.styleProp,
1613
1613
  classNameProp: e.className,
1614
1614
  BlocksWrapper: ((a = e.context) == null ? void 0 : a.BlocksWrapper) || ((u = e.builderContext) == null ? void 0 : u.BlocksWrapper),
1615
- BlocksWrapperProps: ((m = e.context) == null ? void 0 : m.BlocksWrapperProps) || ((h = e.builderContext) == null ? void 0 : h.BlocksWrapperProps)
1615
+ BlocksWrapperProps: ((h = e.context) == null ? void 0 : h.BlocksWrapperProps) || ((m = e.builderContext) == null ? void 0 : m.BlocksWrapperProps)
1616
1616
  }, {
1617
1617
  default: N(() => [
1618
- e.blocks ? (c(!0), p(T, { key: 0 }, V(e.blocks, (d, f) => {
1619
- var S;
1618
+ e.blocks ? (c(!0), p($, { key: 0 }, W(e.blocks, (d, f) => {
1619
+ var v;
1620
1620
  return c(), y(i, {
1621
1621
  key: d.id,
1622
1622
  block: d,
1623
1623
  linkComponent: e.linkComponent,
1624
1624
  context: e.context || e.builderContext,
1625
- registeredComponents: e.registeredComponents || ((S = e.componentsContext) == null ? void 0 : S.registeredComponents)
1625
+ registeredComponents: e.registeredComponents || ((v = e.componentsContext) == null ? void 0 : v.registeredComponents)
1626
1626
  }, null, 8, ["block", "linkComponent", "context", "registeredComponents"]);
1627
- }), 128)) : v("", !0)
1627
+ }), 128)) : S("", !0)
1628
1628
  ]),
1629
1629
  _: 1
1630
1630
  }, 8, ["blocks", "parent", "path", "styleProp", "classNameProp", "BlocksWrapper", "BlocksWrapperProps"]);
@@ -1635,15 +1635,15 @@ const M = /* @__PURE__ */ b(uo, [["render", po]]), mo = g({
1635
1635
  });
1636
1636
  function ho(e, t, n, o, r, s) {
1637
1637
  return c(), p("div", null, [
1638
- x(e.$slots, "default")
1638
+ B(e.$slots, "default")
1639
1639
  ]);
1640
1640
  }
1641
1641
  const X = /* @__PURE__ */ b(mo, [["render", ho]]), fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1642
1642
  __proto__: null,
1643
1643
  default: X
1644
- }, Symbol.toStringTag, { value: "Module" })), Se = g({
1644
+ }, Symbol.toStringTag, { value: "Module" })), ve = g({
1645
1645
  render() {
1646
- return Ne("style", {
1646
+ return We("style", {
1647
1647
  innerHTML: this.styles,
1648
1648
  "data-id": this.id,
1649
1649
  nonce: this.nonce
@@ -1696,7 +1696,7 @@ const X = /* @__PURE__ */ b(mo, [["render", ho]]), fo = /* @__PURE__ */ Object.f
1696
1696
  }, bo = (e) => `builder-columns ${e}-breakpoints`, yo = g({
1697
1697
  name: "builder-columns",
1698
1698
  components: {
1699
- InlinedStyles: Se,
1699
+ InlinedStyles: ve,
1700
1700
  DynamicRenderer: me,
1701
1701
  Blocks: M,
1702
1702
  DynamicDiv: X
@@ -1829,7 +1829,7 @@ const X = /* @__PURE__ */ b(mo, [["render", ho]]), fo = /* @__PURE__ */ Object.f
1829
1829
  href: e.link
1830
1830
  } : {},
1831
1831
  [_()]: "builder-column",
1832
- style: pt(this.columnCssVars(t))
1832
+ style: ut(this.columnCssVars(t))
1833
1833
  };
1834
1834
  }
1835
1835
  }
@@ -1846,41 +1846,41 @@ function ko(e, t, n, o, r, s) {
1846
1846
  id: "builderio-columns",
1847
1847
  styles: e.columnsStyles(),
1848
1848
  nonce: e.builderContext.nonce
1849
- }, null, 8, ["styles", "nonce"])) : v("", !0),
1850
- (c(!0), p(T, null, V(e.columns, (m, h) => (c(), y(a, {
1851
- key: h,
1852
- TagName: e.getTagName(m),
1849
+ }, null, 8, ["styles", "nonce"])) : S("", !0),
1850
+ (c(!0), p($, null, W(e.columns, (h, m) => (c(), y(a, {
1851
+ key: m,
1852
+ TagName: e.getTagName(h),
1853
1853
  actionAttributes: {},
1854
- attributes: e.getAttributes(m, h)
1854
+ attributes: e.getAttributes(h, m)
1855
1855
  }, {
1856
1856
  default: N(() => [
1857
1857
  P(l, {
1858
- path: `columns.${h}.blocks`,
1858
+ path: `columns.${m}.blocks`,
1859
1859
  parent: e.builderBlock.id,
1860
- styleProp: {
1861
- flexGrow: "1"
1862
- },
1863
1860
  context: e.builderContext,
1864
1861
  registeredComponents: e.builderComponents,
1865
1862
  linkComponent: e.builderLinkComponent,
1866
- blocks: m.blocks
1863
+ blocks: h.blocks,
1864
+ styleProp: {
1865
+ flexGrow: "1"
1866
+ }
1867
1867
  }, null, 8, ["path", "parent", "context", "registeredComponents", "linkComponent", "blocks"])
1868
1868
  ]),
1869
1869
  _: 2
1870
1870
  }, 1032, ["TagName", "attributes"]))), 128))
1871
1871
  ], 16);
1872
1872
  }
1873
- const vo = /* @__PURE__ */ b(yo, [["render", ko], ["__scopeId", "data-v-3354f136"]]), So = g({
1873
+ const vo = /* @__PURE__ */ b(yo, [["render", ko], ["__scopeId", "data-v-bdc9da04"]]), So = g({
1874
1874
  name: "builder-fragment-component",
1875
1875
  props: []
1876
1876
  });
1877
1877
  function Co(e, t, n, o, r, s) {
1878
1878
  return c(), p("span", null, [
1879
- x(e.$slots, "default")
1879
+ B(e.$slots, "default")
1880
1880
  ]);
1881
1881
  }
1882
1882
  const wo = /* @__PURE__ */ b(So, [["render", Co]]);
1883
- function Ae(e) {
1883
+ function Be(e) {
1884
1884
  return e.replace(/http(s)?:/, "");
1885
1885
  }
1886
1886
  function To(e = "", t, n) {
@@ -1891,11 +1891,11 @@ function Io(e, t) {
1891
1891
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1892
1892
  return e;
1893
1893
  if (t === "master")
1894
- return Ae(e);
1894
+ return Be(e);
1895
1895
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1896
1896
  if (n) {
1897
1897
  const o = e.split(n[0]), r = n[3], s = t.match("x") ? t : `${t}x`;
1898
- return Ae(`${o[0]}_${s}${r}`);
1898
+ return Be(`${o[0]}_${s}${r}`);
1899
1899
  }
1900
1900
  return null;
1901
1901
  }
@@ -1927,8 +1927,6 @@ const $o = g({
1927
1927
  "builderBlock",
1928
1928
  "fitContent"
1929
1929
  ],
1930
- mounted() {
1931
- },
1932
1930
  computed: {
1933
1931
  srcSetToUse() {
1934
1932
  var n;
@@ -1966,14 +1964,14 @@ const $o = g({
1966
1964
  class: "div-29wpyomtntv-2"
1967
1965
  };
1968
1966
  function Bo(e, t, n, o, r, s) {
1969
- var i, l, a, u, m, h;
1970
- return c(), p(T, null, [
1967
+ var i, l, a, u, h, m;
1968
+ return c(), p($, null, [
1971
1969
  z("picture", null, [
1972
1970
  e.webpSrcSet ? (c(), p("source", {
1973
1971
  key: 0,
1974
1972
  type: "image/webp",
1975
1973
  srcset: e.webpSrcSet
1976
- }, null, 8, Ro)) : v("", !0),
1974
+ }, null, 8, Ro)) : S("", !0),
1977
1975
  z("img", {
1978
1976
  loading: e.highPriority ? "eager" : "lazy",
1979
1977
  fetchpriority: e.highPriority ? "high" : "auto",
@@ -1998,18 +1996,18 @@ function Bo(e, t, n, o, r, s) {
1998
1996
  style: F({
1999
1997
  paddingTop: e.aspectRatio * 100 + "%"
2000
1998
  })
2001
- }, null, 4)) : v("", !0),
2002
- (u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? x(e.$slots, "default", { key: 1 }, void 0, !0) : v("", !0),
2003
- !e.fitContent && ((h = (m = e.builderBlock) == null ? void 0 : m.children) != null && h.length) ? (c(), p("div", Po, [
2004
- x(e.$slots, "default", {}, void 0, !0)
2005
- ])) : v("", !0)
1999
+ }, null, 4)) : S("", !0),
2000
+ (u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? B(e.$slots, "default", { key: 1 }, void 0, !0) : S("", !0),
2001
+ !e.fitContent && ((m = (h = e.builderBlock) == null ? void 0 : h.children) != null && m.length) ? (c(), p("div", Po, [
2002
+ B(e.$slots, "default", {}, void 0, !0)
2003
+ ])) : S("", !0)
2006
2004
  ], 64);
2007
2005
  }
2008
- const Ao = /* @__PURE__ */ b($o, [["render", Bo], ["__scopeId", "data-v-a3766aaf"]]), xo = g({
2006
+ const Ao = /* @__PURE__ */ b($o, [["render", Bo], ["__scopeId", "data-v-33d4f353"]]), xo = g({
2009
2007
  name: "builder-section-component",
2010
2008
  props: ["attributes", "maxWidth"],
2011
2009
  data() {
2012
- return { filterAttrs: W };
2010
+ return { filterAttrs: V };
2013
2011
  }
2014
2012
  });
2015
2013
  function Vo(e, t, n, o, r, s) {
@@ -2026,8 +2024,8 @@ function Vo(e, t, n, o, r, s) {
2026
2024
  marginLeft: "auto",
2027
2025
  marginRight: "auto"
2028
2026
  }
2029
- }, e.filterAttrs(e.attributes, "v-on:", !1), A(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
2030
- x(e.$slots, "default")
2027
+ }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
2028
+ B(e.$slots, "default")
2031
2029
  ], 16);
2032
2030
  }
2033
2031
  const Wo = /* @__PURE__ */ b(xo, [["render", Vo]]), se = {
@@ -2256,7 +2254,7 @@ function Lo(e, t, n, o, r, s) {
2256
2254
  class: "builder-accordion",
2257
2255
  style: F(e.accordionStyles)
2258
2256
  }, [
2259
- (c(!0), p(T, null, V(e.items, (l, a) => (c(), p(T, { key: a }, [
2257
+ (c(!0), p($, null, W(e.items, (l, a) => (c(), p($, { key: a }, [
2260
2258
  z("div", {
2261
2259
  class: G(e.getAccordionTitleClassName(a)),
2262
2260
  style: F({
@@ -2267,7 +2265,7 @@ function Lo(e, t, n, o, r, s) {
2267
2265
  }
2268
2266
  }),
2269
2267
  "data-index": a,
2270
- onClick: (u) => e.onClick(a)
2268
+ onClick: async (u) => e.onClick(a)
2271
2269
  }, [
2272
2270
  P(i, {
2273
2271
  blocks: l.title,
@@ -2291,7 +2289,7 @@ function Lo(e, t, n, o, r, s) {
2291
2289
  registeredComponents: e.builderComponents,
2292
2290
  linkComponent: e.builderLinkComponent
2293
2291
  }, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
2294
- ], 6)) : v("", !0)
2292
+ ], 6)) : S("", !0)
2295
2293
  ], 64))), 128))
2296
2294
  ], 4);
2297
2295
  }
@@ -2544,7 +2542,7 @@ const Uo = /* @__PURE__ */ b(Fo, [["render", Lo]]), Mo = {
2544
2542
  hidden: !0,
2545
2543
  canHaveChildren: !0,
2546
2544
  noWrap: !0
2547
- }, Ce = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], Ko = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], qo = {
2545
+ }, Se = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], Ko = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], qo = {
2548
2546
  name: "Image",
2549
2547
  static: !0,
2550
2548
  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",
@@ -2559,21 +2557,21 @@ const Uo = /* @__PURE__ */ b(Fo, [["render", Lo]]), Mo = {
2559
2557
  name: "image",
2560
2558
  type: "file",
2561
2559
  bubble: !0,
2562
- allowedFileTypes: Ce,
2560
+ allowedFileTypes: Se,
2563
2561
  required: !0,
2564
2562
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
2565
2563
  onChange: (e) => {
2566
2564
  e.delete("srcset"), e.delete("noWebp");
2567
2565
  function n(i, l = 6e4) {
2568
2566
  return new Promise((a, u) => {
2569
- const m = document.createElement("img");
2570
- let h = !1;
2571
- m.onload = () => {
2572
- h = !0, a(m);
2573
- }, m.addEventListener("error", (d) => {
2567
+ const h = document.createElement("img");
2568
+ let m = !1;
2569
+ h.onload = () => {
2570
+ m = !0, a(h);
2571
+ }, h.addEventListener("error", (d) => {
2574
2572
  console.warn("Image load failed", d.error), u(d.error);
2575
- }), m.src = i, setTimeout(() => {
2576
- h || u(new Error("Image load timed out"));
2573
+ }), h.src = i, setTimeout(() => {
2574
+ m || u(new Error("Image load timed out"));
2577
2575
  }, l);
2578
2576
  });
2579
2577
  }
@@ -2951,13 +2949,13 @@ function nr(e, t, n, o, r, s) {
2951
2949
  overflow: "auto"
2952
2950
  })
2953
2951
  }, [
2954
- (c(!0), p(T, null, V(e.tabs, (l, a) => (c(), p("span", {
2952
+ (c(!0), p($, null, W(e.tabs, (l, a) => (c(), p("span", {
2955
2953
  key: a,
2956
2954
  class: G(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
2957
2955
  style: F({
2958
2956
  ...e.activeTab === a ? e.activeTabStyle : {}
2959
2957
  }),
2960
- onClick: (u) => e.onClick(a)
2958
+ onClick: async (u) => e.onClick(a)
2961
2959
  }, [
2962
2960
  P(i, {
2963
2961
  parent: e.builderBlock.id,
@@ -2978,7 +2976,7 @@ function nr(e, t, n, o, r, s) {
2978
2976
  registeredComponents: e.builderComponents,
2979
2977
  linkComponent: e.builderLinkComponent
2980
2978
  }, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
2981
- ])) : v("", !0)
2979
+ ])) : S("", !0)
2982
2980
  ]);
2983
2981
  }
2984
2982
  const or = /* @__PURE__ */ b(_o, [["render", nr]]), rr = {
@@ -3388,7 +3386,7 @@ const vr = /* @__PURE__ */ b(br, [["render", kr]]), Sr = {
3388
3386
  return Cr.includes(e) ? e : "production";
3389
3387
  }, Tr = g({
3390
3388
  name: "builder-form-component",
3391
- components: { Block: ve, Blocks: M },
3389
+ components: { Blocks: M },
3392
3390
  props: [
3393
3391
  "builderContext",
3394
3392
  "previewState",
@@ -3405,9 +3403,6 @@ const vr = /* @__PURE__ */ b(br, [["render", kr]]), Sr = {
3405
3403
  "successUrl",
3406
3404
  "validate",
3407
3405
  "attributes",
3408
- "builderBlock",
3409
- "builderComponents",
3410
- "builderLinkComponent",
3411
3406
  "errorMessage",
3412
3407
  "sendingMessage",
3413
3408
  "successMessage"
@@ -3417,7 +3412,7 @@ const vr = /* @__PURE__ */ b(br, [["render", kr]]), Sr = {
3417
3412
  formState: "unsubmitted",
3418
3413
  responseData: null,
3419
3414
  formErrorMessage: "",
3420
- filterAttrs: W
3415
+ filterAttrs: V
3421
3416
  };
3422
3417
  },
3423
3418
  methods: {
@@ -3447,12 +3442,12 @@ const vr = /* @__PURE__ */ b(br, [["render", kr]]), Sr = {
3447
3442
  let s;
3448
3443
  const i = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((d) => !!d.name).map((d) => {
3449
3444
  let f;
3450
- const S = d.name;
3445
+ const v = d.name;
3451
3446
  if (d instanceof HTMLInputElement)
3452
3447
  if (d.type === "radio") {
3453
3448
  if (d.checked)
3454
3449
  return f = d.name, {
3455
- key: S,
3450
+ key: v,
3456
3451
  value: f
3457
3452
  };
3458
3453
  } else if (d.type === "checkbox")
@@ -3465,7 +3460,7 @@ const vr = /* @__PURE__ */ b(br, [["render", kr]]), Sr = {
3465
3460
  else
3466
3461
  f = d.value;
3467
3462
  return {
3468
- key: S,
3463
+ key: v,
3469
3464
  value: f
3470
3465
  };
3471
3466
  });
@@ -3476,8 +3471,8 @@ const vr = /* @__PURE__ */ b(br, [["render", kr]]), Sr = {
3476
3471
  s = i;
3477
3472
  else {
3478
3473
  const d = {};
3479
- Array.from(l).forEach(({ value: f, key: S }) => {
3480
- je(d, S, f);
3474
+ Array.from(l).forEach(({ value: f, key: v }) => {
3475
+ He(d, v, f);
3481
3476
  }), s = JSON.stringify(d);
3482
3477
  }
3483
3478
  a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
@@ -3489,19 +3484,19 @@ const vr = /* @__PURE__ */ b(br, [["render", kr]]), Sr = {
3489
3484
  if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(u), u.defaultPrevented))
3490
3485
  return;
3491
3486
  this.formState = "sending";
3492
- const m = `${wr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
3487
+ const h = `${wr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
3493
3488
  this.sendSubmissionsToEmail || ""
3494
- )}&name=${encodeURIComponent(this.name || "")}`, h = this.sendSubmissionsTo === "email" ? m : this.action;
3495
- fe(h), fetch(h, {
3489
+ )}&name=${encodeURIComponent(this.name || "")}`, m = this.sendSubmissionsTo === "email" ? h : this.action;
3490
+ fe(m), fetch(m, {
3496
3491
  body: s,
3497
3492
  headers: r,
3498
3493
  method: this.method || "post"
3499
3494
  }).then(
3500
3495
  async (d) => {
3501
3496
  let f;
3502
- const S = d.headers.get("content-type");
3503
- if (S && S.indexOf("application/json") !== -1 ? f = await d.json() : f = await d.text(), !d.ok && this.errorMessagePath) {
3504
- let w = Fe(f, this.errorMessagePath);
3497
+ const v = d.headers.get("content-type");
3498
+ if (v && v.indexOf("application/json") !== -1 ? f = await d.json() : f = await d.text(), !d.ok && this.errorMessagePath) {
3499
+ let w = Oe(f, this.errorMessagePath);
3505
3500
  w && (typeof w != "string" && (w = JSON.stringify(w)), this.formErrorMessage = w, this.mergeNewRootState({
3506
3501
  formErrorMessage: w
3507
3502
  }));
@@ -3543,49 +3538,42 @@ const vr = /* @__PURE__ */ b(br, [["render", kr]]), Sr = {
3543
3538
  }
3544
3539
  }
3545
3540
  }), Ir = ["validate", "action", "method", "name"], $r = {
3546
- key: 3,
3541
+ key: 2,
3547
3542
  class: "builder-form-error-text pre-3q96myty4lk"
3548
3543
  };
3549
3544
  function Rr(e, t, n, o, r, s) {
3550
- var a;
3551
- const i = k("Block"), l = k("Blocks");
3545
+ const i = k("Blocks");
3552
3546
  return c(), p("form", C({
3553
3547
  validate: e.validate,
3554
3548
  ref: "formRef",
3555
3549
  action: !e.sendWithJs && e.action,
3556
3550
  method: e.method,
3557
3551
  name: e.name,
3558
- onSubmit: t[0] || (t[0] = (u) => e.onSubmit(u))
3559
- }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, A(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3560
- e.builderBlock && e.builderBlock.children ? (c(!0), p(T, { key: 0 }, V((a = e.builderBlock) == null ? void 0 : a.children, (u, m) => (c(), y(i, {
3561
- key: `form-block-${e.idx}`,
3562
- block: u,
3563
- context: e.builderContext,
3564
- registeredComponents: e.builderComponents,
3565
- linkComponent: e.builderLinkComponent
3566
- }, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128)) : v("", !0),
3567
- e.submissionState() === "error" ? (c(), y(l, {
3568
- key: 1,
3552
+ onSubmit: t[0] || (t[0] = async (l) => e.onSubmit(l))
3553
+ }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3554
+ B(e.$slots, "default", {}, void 0, !0),
3555
+ e.submissionState() === "error" ? (c(), y(i, {
3556
+ key: 0,
3569
3557
  path: "errorMessage",
3570
3558
  blocks: e.errorMessage,
3571
3559
  context: e.builderContext
3572
- }, null, 8, ["blocks", "context"])) : v("", !0),
3573
- e.submissionState() === "sending" ? (c(), y(l, {
3574
- key: 2,
3560
+ }, null, 8, ["blocks", "context"])) : S("", !0),
3561
+ e.submissionState() === "sending" ? (c(), y(i, {
3562
+ key: 1,
3575
3563
  path: "sendingMessage",
3576
3564
  blocks: e.sendingMessage,
3577
3565
  context: e.builderContext
3578
- }, null, 8, ["blocks", "context"])) : v("", !0),
3579
- e.submissionState() === "error" && e.responseData ? (c(), p("pre", $r, ne(JSON.stringify(e.responseData, null, 2)), 1)) : v("", !0),
3580
- e.submissionState() === "success" ? (c(), y(l, {
3581
- key: 4,
3566
+ }, null, 8, ["blocks", "context"])) : S("", !0),
3567
+ e.submissionState() === "error" && e.responseData ? (c(), p("pre", $r, ne(JSON.stringify(e.responseData, null, 2)), 1)) : S("", !0),
3568
+ e.submissionState() === "success" ? (c(), y(i, {
3569
+ key: 3,
3582
3570
  path: "successMessage",
3583
3571
  blocks: e.successMessage,
3584
3572
  context: e.builderContext
3585
- }, null, 8, ["blocks", "context"])) : v("", !0)
3573
+ }, null, 8, ["blocks", "context"])) : S("", !0)
3586
3574
  ], 16, Ir);
3587
3575
  }
3588
- const Er = /* @__PURE__ */ b(Tr, [["render", Rr], ["__scopeId", "data-v-cd94d6c1"]]), Pr = {
3576
+ const Er = /* @__PURE__ */ b(Tr, [["render", Rr], ["__scopeId", "data-v-77d3dc14"]]), Pr = {
3589
3577
  name: "Form:Input",
3590
3578
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
3591
3579
  inputs: [
@@ -3648,7 +3636,7 @@ const Er = /* @__PURE__ */ b(Tr, [["render", Rr], ["__scopeId", "data-v-cd94d6c1
3648
3636
  "required"
3649
3637
  ],
3650
3638
  data() {
3651
- return { isEditing: E, filterAttrs: W };
3639
+ return { isEditing: E, filterAttrs: V };
3652
3640
  }
3653
3641
  }), Ar = ["placeholder", "type", "name", "value", "defaultValue", "required"];
3654
3642
  function xr(e, t, n, o, r, s) {
@@ -3660,7 +3648,7 @@ function xr(e, t, n, o, r, s) {
3660
3648
  value: e.value,
3661
3649
  defaultValue: e.defaultValue,
3662
3650
  required: e.required
3663
- }, e.filterAttrs(e.attributes, "v-on:", !1), A(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Ar);
3651
+ }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Ar);
3664
3652
  }
3665
3653
  const Vr = /* @__PURE__ */ b(Br, [["render", xr]]), Wr = {
3666
3654
  name: "Form:Select",
@@ -3708,7 +3696,7 @@ const Vr = /* @__PURE__ */ b(Br, [["render", xr]]), Wr = {
3708
3696
  name: "builder-select-component",
3709
3697
  props: ["attributes", "value", "defaultValue", "name", "required", "options"],
3710
3698
  data() {
3711
- return { isEditing: E, filterAttrs: W };
3699
+ return { isEditing: E, filterAttrs: V };
3712
3700
  }
3713
3701
  }), Or = ["value", "defaultValue", "name", "required"], Fr = ["value"];
3714
3702
  function Dr(e, t, n, o, r, s) {
@@ -3718,8 +3706,8 @@ function Dr(e, t, n, o, r, s) {
3718
3706
  defaultValue: e.defaultValue,
3719
3707
  name: e.name,
3720
3708
  required: e.required
3721
- }, e.filterAttrs(e.attributes, "v-on:", !1), A(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3722
- (c(!0), p(T, null, V(e.options, (i, l) => (c(), p("option", {
3709
+ }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3710
+ (c(!0), p($, null, W(e.options, (i, l) => (c(), p("option", {
3723
3711
  key: `${i.name}-${l}`,
3724
3712
  value: i.value
3725
3713
  }, ne(i.name || i.value), 9, Fr))), 128))
@@ -3754,11 +3742,11 @@ const Lr = /* @__PURE__ */ b(Nr, [["render", Dr]]), Ur = {
3754
3742
  name: "builder-submit-button",
3755
3743
  props: ["attributes", "text"],
3756
3744
  data() {
3757
- return { filterAttrs: W };
3745
+ return { filterAttrs: V };
3758
3746
  }
3759
3747
  });
3760
3748
  function Hr(e, t, n, o, r, s) {
3761
- return c(), p("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), A(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ne(e.text), 17);
3749
+ return c(), p("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ne(e.text), 17);
3762
3750
  }
3763
3751
  const jr = /* @__PURE__ */ b(Mr, [["render", Hr]]), Kr = {
3764
3752
  name: "Form:TextArea",
@@ -3807,7 +3795,7 @@ const jr = /* @__PURE__ */ b(Mr, [["render", Hr]]), Kr = {
3807
3795
  "required"
3808
3796
  ],
3809
3797
  data() {
3810
- return { filterAttrs: W };
3798
+ return { filterAttrs: V };
3811
3799
  }
3812
3800
  }), zr = ["placeholder", "name", "value", "defaultValue", "required"];
3813
3801
  function Gr(e, t, n, o, r, s) {
@@ -3817,7 +3805,7 @@ function Gr(e, t, n, o, r, s) {
3817
3805
  value: e.value,
3818
3806
  defaultValue: e.defaultValue,
3819
3807
  required: e.required
3820
- }, e.filterAttrs(e.attributes, "v-on:", !1), A(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, zr);
3808
+ }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, zr);
3821
3809
  }
3822
3810
  const Jr = /* @__PURE__ */ b(qr, [["render", Gr]]), Yr = {
3823
3811
  // friendlyName?
@@ -3828,7 +3816,7 @@ const Jr = /* @__PURE__ */ b(qr, [["render", Gr]]), Yr = {
3828
3816
  name: "image",
3829
3817
  bubble: !0,
3830
3818
  type: "file",
3831
- allowedFileTypes: Ce,
3819
+ allowedFileTypes: Se,
3832
3820
  required: !0
3833
3821
  }],
3834
3822
  noWrap: !0,
@@ -3844,7 +3832,7 @@ const Jr = /* @__PURE__ */ b(qr, [["render", Gr]]), Yr = {
3844
3832
  "attributes"
3845
3833
  ],
3846
3834
  data() {
3847
- return { isEditing: E, filterAttrs: W };
3835
+ return { isEditing: E, filterAttrs: V };
3848
3836
  }
3849
3837
  }), Qr = ["alt", "src"];
3850
3838
  function Zr(e, t, n, o, r, s) {
@@ -3856,7 +3844,7 @@ function Zr(e, t, n, o, r, s) {
3856
3844
  key: e.isEditing() && e.imgSrc || "default-key",
3857
3845
  alt: e.altText,
3858
3846
  src: e.imgSrc || e.image
3859
- }, e.filterAttrs(e.attributes, "v-on:", !1), A(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Qr);
3847
+ }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Qr);
3860
3848
  }
3861
3849
  const _r = /* @__PURE__ */ b(Xr, [["render", Zr]]), es = {
3862
3850
  name: "Video",
@@ -3876,7 +3864,7 @@ const _r = /* @__PURE__ */ b(Xr, [["render", Zr]]), es = {
3876
3864
  }, {
3877
3865
  name: "posterImage",
3878
3866
  type: "file",
3879
- allowedFileTypes: Ce,
3867
+ allowedFileTypes: Se,
3880
3868
  helperText: "Image to show before the video plays"
3881
3869
  }, {
3882
3870
  name: "autoPlay",
@@ -4011,7 +3999,7 @@ const _r = /* @__PURE__ */ b(Xr, [["render", Zr]]), es = {
4011
3999
  }
4012
4000
  };
4013
4001
  function as(e, t, n, o, r, s) {
4014
- var i, l, a, u, m, h, d;
4002
+ var i, l, a, u, h, m, d;
4015
4003
  return c(), p("div", ns, [
4016
4004
  z("video", C({
4017
4005
  class: "builder-video",
@@ -4024,7 +4012,6 @@ function as(e, t, n, o, r, s) {
4024
4012
  objectPosition: e.position,
4025
4013
  // Hack to get object fit to work as expected and
4026
4014
  // not have the video overflow
4027
- zIndex: 2,
4028
4015
  borderRadius: "1px",
4029
4016
  ...e.aspectRatio ? {
4030
4017
  position: "absolute"
@@ -4033,7 +4020,7 @@ function as(e, t, n, o, r, s) {
4033
4020
  src: e.video || "no-src",
4034
4021
  poster: e.posterImage
4035
4022
  }, e.spreadProps), [
4036
- e.lazyLoad ? v("", !0) : (c(), p("source", {
4023
+ e.lazyLoad ? S("", !0) : (c(), p("source", {
4037
4024
  key: 0,
4038
4025
  type: "video/mp4",
4039
4026
  src: e.video
@@ -4047,13 +4034,13 @@ function as(e, t, n, o, r, s) {
4047
4034
  pointerEvents: "none",
4048
4035
  fontSize: "0px"
4049
4036
  })
4050
- }, null, 4)) : v("", !0),
4051
- (m = (u = e.builderBlock) == null ? void 0 : u.children) != null && m.length && e.fitContent ? (c(), p("div", ss, [
4052
- x(e.$slots, "default")
4053
- ])) : v("", !0),
4054
- (d = (h = e.builderBlock) == null ? void 0 : h.children) != null && d.length && !e.fitContent ? (c(), p("div", is, [
4055
- x(e.$slots, "default")
4056
- ])) : v("", !0)
4037
+ }, null, 4)) : S("", !0),
4038
+ (h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (c(), p("div", ss, [
4039
+ B(e.$slots, "default")
4040
+ ])) : S("", !0),
4041
+ (d = (m = e.builderBlock) == null ? void 0 : m.children) != null && d.length && !e.fitContent ? (c(), p("div", is, [
4042
+ B(e.$slots, "default")
4043
+ ])) : S("", !0)
4057
4044
  ]);
4058
4045
  }
4059
4046
  const ls = /* @__PURE__ */ b(ts, [["render", as]]), cs = () => [{
@@ -4083,7 +4070,7 @@ const ls = /* @__PURE__ */ b(ts, [["render", as]]), cs = () => [{
4083
4070
  }, {
4084
4071
  component: ls,
4085
4072
  ...es
4086
- }], xe = () => [{
4073
+ }], Ae = () => [{
4087
4074
  component: Pt,
4088
4075
  ...Mo
4089
4076
  }, {
@@ -4223,7 +4210,7 @@ const ls = /* @__PURE__ */ b(ts, [["render", as]]), cs = () => [{
4223
4210
  "${t}", "${e}", ${bt}
4224
4211
  )`, yt = g({
4225
4212
  render() {
4226
- return Ne("script", {
4213
+ return We("script", {
4227
4214
  innerHTML: this.scriptStr,
4228
4215
  "data-id": this.id,
4229
4216
  nonce: this.nonce
@@ -4232,7 +4219,7 @@ const ls = /* @__PURE__ */ b(ts, [["render", as]]), cs = () => [{
4232
4219
  name: "inlined-script",
4233
4220
  props: ["scriptStr", "id", "nonce"]
4234
4221
  });
4235
- function Ve(e) {
4222
+ function xe(e) {
4236
4223
  return Math.round(e * 1e3) / 1e3;
4237
4224
  }
4238
4225
  const bs = (e, t, n = !0) => {
@@ -4249,11 +4236,11 @@ const bs = (e, t, n = !0) => {
4249
4236
  }, ys = (e) => bs(e, (t) => {
4250
4237
  const n = t.getAttribute("builder-id") || t.id;
4251
4238
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
4252
- }), We = ({
4239
+ }), Ve = ({
4253
4240
  event: e,
4254
4241
  target: t
4255
4242
  }) => {
4256
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, s = Ve(o / n.width), i = Ve(r / n.height);
4243
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, s = xe(o / n.width), i = xe(r / n.height);
4257
4244
  return {
4258
4245
  x: s,
4259
4246
  y: i
@@ -4263,18 +4250,18 @@ const bs = (e, t, n = !0) => {
4263
4250
  return {
4264
4251
  targetBuilderElement: o || void 0,
4265
4252
  metadata: {
4266
- targetOffset: t ? We({
4253
+ targetOffset: t ? Ve({
4267
4254
  event: e,
4268
4255
  target: t
4269
4256
  }) : void 0,
4270
- builderTargetOffset: n ? We({
4257
+ builderTargetOffset: n ? Ve({
4271
4258
  event: e,
4272
4259
  target: n
4273
4260
  }) : void 0,
4274
4261
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
4275
4262
  }
4276
4263
  };
4277
- }, vs = ["svelte", "qwik", "vue"], Ss = () => vs.includes(R) && (E() || Ke()), Cs = (e) => {
4264
+ }, vs = ["svelte", "qwik", "vue"], Ss = () => vs.includes(R) && (E() || je()), Cs = (e) => {
4278
4265
  var s;
4279
4266
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((s = e == null ? void 0 : e.files) == null ? void 0 : s.regular);
4280
4267
  let r = "";
@@ -4367,7 +4354,7 @@ font-weight: ${i};
4367
4354
  },
4368
4355
  mounted() {
4369
4356
  var e, t;
4370
- if (I()) {
4357
+ if (T()) {
4371
4358
  if (E() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4372
4359
  new CustomEvent("initeditingbldr")
4373
4360
  ), this.builderContextSignal.content && J(this.canTrack)) {
@@ -4381,7 +4368,7 @@ font-weight: ${i};
4381
4368
  variationId: o !== r ? o : void 0
4382
4369
  });
4383
4370
  }
4384
- Ke() && !E() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4371
+ je() && !E() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4385
4372
  new CustomEvent("initpreviewingbldr")
4386
4373
  );
4387
4374
  }
@@ -4415,7 +4402,7 @@ font-weight: ${i};
4415
4402
  }
4416
4403
  },
4417
4404
  unmounted() {
4418
- I() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
4405
+ T() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
4419
4406
  "builder:component:stateChangeListenerActivated",
4420
4407
  this.emitStateUpdate
4421
4408
  ));
@@ -4475,7 +4462,7 @@ font-weight: ${i};
4475
4462
  this.builderContextSignal.content = t;
4476
4463
  },
4477
4464
  processMessage(e) {
4478
- return ot({
4465
+ return nt({
4479
4466
  model: this.model,
4480
4467
  trustedHosts: this.trustedHosts,
4481
4468
  callbacks: {
@@ -4489,7 +4476,7 @@ font-weight: ${i};
4489
4476
  });
4490
4477
  },
4491
4478
  animation: (t) => {
4492
- dt(t);
4479
+ ct(t);
4493
4480
  },
4494
4481
  contentUpdate: (t) => {
4495
4482
  this.mergeNewContent(t);
@@ -4560,7 +4547,7 @@ font-weight: ${i};
4560
4547
  );
4561
4548
  },
4562
4549
  elementRef_onIniteditingbldr(e) {
4563
- window.addEventListener("message", this.processMessage), wn(), nt({
4550
+ window.addEventListener("message", this.processMessage), wn(), tt({
4564
4551
  ...this.locale ? {
4565
4552
  locale: this.locale
4566
4553
  } : {},
@@ -4619,14 +4606,14 @@ function Ps(e, t, n, o, r, s) {
4619
4606
  onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
4620
4607
  }, { ...e.showContentProps, ...e.contentWrapperProps }), {
4621
4608
  default: N(() => [
4622
- x(e.$slots, "default")
4609
+ B(e.$slots, "default")
4623
4610
  ]),
4624
4611
  _: 3
4625
- }, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : v("", !0);
4612
+ }, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : S("", !0);
4626
4613
  }
4627
4614
  const Bs = /* @__PURE__ */ b(Es, [["render", Ps]]), As = g({
4628
4615
  name: "content-styles",
4629
- components: { InlinedStyles: Se },
4616
+ components: { InlinedStyles: ve },
4630
4617
  props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
4631
4618
  data() {
4632
4619
  return {
@@ -4720,7 +4707,7 @@ const Vs = /* @__PURE__ */ b(As, [["render", xs]]), Ws = ({
4720
4707
  contentId: (t = this.content) == null ? void 0 : t.id
4721
4708
  }),
4722
4709
  registeredComponents: [
4723
- ...xe(),
4710
+ ...Ae(),
4724
4711
  ...this.customComponents || []
4725
4712
  ].reduce(
4726
4713
  (n, { component: o, ...r }) => ({
@@ -4749,7 +4736,7 @@ const Vs = /* @__PURE__ */ b(As, [["render", xs]]), Ws = ({
4749
4736
  apiKey: this.apiKey,
4750
4737
  apiVersion: this.apiVersion,
4751
4738
  componentInfos: [
4752
- ...xe(),
4739
+ ...Ae(),
4753
4740
  ...this.customComponents || []
4754
4741
  ].reduce(
4755
4742
  (n, { component: o, ...r }) => ({
@@ -4770,14 +4757,14 @@ const Vs = /* @__PURE__ */ b(As, [["render", xs]]), Ws = ({
4770
4757
  provide() {
4771
4758
  const e = this;
4772
4759
  return {
4773
- [Oe.key]: {
4760
+ [Ne.key]: {
4774
4761
  registeredComponents: e.registeredComponents
4775
4762
  }
4776
4763
  };
4777
4764
  },
4778
4765
  created() {
4779
4766
  var t, n;
4780
- this.apiKey || B.error(
4767
+ this.apiKey || A.error(
4781
4768
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
4782
4769
  );
4783
4770
  const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
@@ -4819,22 +4806,22 @@ function Ds(e, t, n, o, r, s) {
4819
4806
  isNestedRender: e.isNestedRender
4820
4807
  }, {}), {
4821
4808
  default: N(() => {
4822
- var m, h, d, f, S, w, L;
4809
+ var h, m, d, f, v, w, L;
4823
4810
  return [
4824
4811
  e.isSsrAbTest ? (c(), y(i, {
4825
4812
  key: 0,
4826
4813
  id: "builderio-variant-visibility",
4827
4814
  scriptStr: e.scriptStr,
4828
4815
  nonce: e.nonce || ""
4829
- }, null, 8, ["scriptStr", "nonce"])) : v("", !0),
4816
+ }, null, 8, ["scriptStr", "nonce"])) : S("", !0),
4830
4817
  e.TARGET !== "reactNative" ? (c(), y(l, {
4831
4818
  key: 1,
4832
4819
  nonce: e.nonce || "",
4833
4820
  isNestedRender: e.isNestedRender,
4834
- contentId: (m = e.builderContextSignal.content) == null ? void 0 : m.id,
4835
- cssCode: (d = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : d.cssCode,
4836
- customFonts: (S = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : S.customFonts
4837
- }, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : v("", !0),
4821
+ contentId: (h = e.builderContextSignal.content) == null ? void 0 : h.id,
4822
+ cssCode: (d = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : d.cssCode,
4823
+ customFonts: (v = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : v.customFonts
4824
+ }, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : S("", !0),
4838
4825
  P(a, {
4839
4826
  blocks: (L = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : L.blocks,
4840
4827
  context: e.builderContextSignal,
@@ -4850,7 +4837,7 @@ const Ls = /* @__PURE__ */ b(Fs, [["render", Ds]]), Us = g({
4850
4837
  name: "content-variants",
4851
4838
  components: {
4852
4839
  InlinedScript: yt,
4853
- InlinedStyles: Se,
4840
+ InlinedStyles: ve,
4854
4841
  ContentComponent: Ls
4855
4842
  },
4856
4843
  props: [
@@ -4915,14 +4902,14 @@ const Ls = /* @__PURE__ */ b(Fs, [["render", Ds]]), Us = g({
4915
4902
  });
4916
4903
  function Ms(e, t, n, o, r, s) {
4917
4904
  const i = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
4918
- return c(), p(T, null, [
4905
+ return c(), p($, null, [
4919
4906
  !e.isNestedRender && e.TARGET !== "reactNative" ? (c(), y(i, {
4920
4907
  key: 0,
4921
4908
  id: "builderio-init-variants-fns",
4922
4909
  scriptStr: e.getInitVariantsFnsScriptString(),
4923
4910
  nonce: e.nonce || ""
4924
- }, null, 8, ["scriptStr", "nonce"])) : v("", !0),
4925
- e.shouldRenderVariants ? (c(), p(T, { key: 1 }, [
4911
+ }, null, 8, ["scriptStr", "nonce"])) : S("", !0),
4912
+ e.shouldRenderVariants ? (c(), p($, { key: 1 }, [
4926
4913
  P(l, {
4927
4914
  id: "builderio-variants",
4928
4915
  styles: e.hideVariantsStyleString,
@@ -4933,7 +4920,7 @@ function Ms(e, t, n, o, r, s) {
4933
4920
  scriptStr: e.updateCookieAndStylesScriptStr,
4934
4921
  nonce: e.nonce || ""
4935
4922
  }, null, 8, ["scriptStr", "nonce"]),
4936
- (c(!0), p(T, null, V(e.getVariants(e.content), (u, m) => (c(), y(a, C({
4923
+ (c(!0), p($, null, W(e.getVariants(e.content), (u, h) => (c(), y(a, C({
4937
4924
  key: u.testVariationId,
4938
4925
  apiHost: e.apiHost,
4939
4926
  isNestedRender: e.isNestedRender,
@@ -4957,7 +4944,7 @@ function Ms(e, t, n, o, r, s) {
4957
4944
  contentWrapperProps: e.contentWrapperProps,
4958
4945
  trustedHosts: e.trustedHosts
4959
4946
  }, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
4960
- ], 64)) : v("", !0),
4947
+ ], 64)) : S("", !0),
4961
4948
  P(a, C({
4962
4949
  apiHost: e.apiHost,
4963
4950
  nonce: e.nonce,
@@ -5001,7 +4988,7 @@ const Hs = /* @__PURE__ */ b(Us, [["render", Ms]]), js = async ({
5001
4988
  }
5002
4989
  }
5003
4990
  }).catch((n) => {
5004
- B.error("Could not fetch symbol content: ", n);
4991
+ A.error("Could not fetch symbol content: ", n);
5005
4992
  });
5006
4993
  }, Ks = g({
5007
4994
  name: "builder-symbol",
@@ -5017,7 +5004,7 @@ const Hs = /* @__PURE__ */ b(Us, [["render", Ms]]), js = async ({
5017
5004
  ],
5018
5005
  data() {
5019
5006
  var e;
5020
- return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: W };
5007
+ return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: V };
5021
5008
  },
5022
5009
  mounted() {
5023
5010
  this.setContent();
@@ -5064,9 +5051,9 @@ const Hs = /* @__PURE__ */ b(Us, [["render", Ms]]), js = async ({
5064
5051
  }
5065
5052
  });
5066
5053
  function qs(e, t, n, o, r, s) {
5067
- var l, a, u, m, h;
5054
+ var l, a, u, h, m;
5068
5055
  const i = k("ContentVariants");
5069
- return c(), p("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, A(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
5056
+ return c(), p("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
5070
5057
  P(i, {
5071
5058
  nonce: e.builderContext.nonce,
5072
5059
  isNestedRender: !0,
@@ -5080,10 +5067,10 @@ function qs(e, t, n, o, r, s) {
5080
5067
  data: {
5081
5068
  ...(a = e.symbol) == null ? void 0 : a.data,
5082
5069
  ...e.builderContext.localState,
5083
- ...(m = (u = e.contentToUse) == null ? void 0 : u.data) == null ? void 0 : m.state
5070
+ ...(h = (u = e.contentToUse) == null ? void 0 : u.data) == null ? void 0 : h.state
5084
5071
  },
5085
5072
  canTrack: e.builderContext.canTrack,
5086
- model: (h = e.symbol) == null ? void 0 : h.model,
5073
+ model: (m = e.symbol) == null ? void 0 : m.model,
5087
5074
  content: e.contentToUse,
5088
5075
  linkComponent: e.builderLinkComponent,
5089
5076
  blocksWrapper: e.blocksWrapper,
@@ -5094,7 +5081,7 @@ function qs(e, t, n, o, r, s) {
5094
5081
  const zs = /* @__PURE__ */ b(Ks, [["render", qs]]);
5095
5082
  export {
5096
5083
  Mn as A,
5097
- ve as B,
5084
+ mt as B,
5098
5085
  vo as C,
5099
5086
  ye as D,
5100
5087
  Ys as E,
@@ -5104,7 +5091,7 @@ export {
5104
5091
  Wo as S,
5105
5092
  R as T,
5106
5093
  ls as V,
5107
- Se as _,
5094
+ ve as _,
5108
5095
  ei as a,
5109
5096
  oi as b,
5110
5097
  D as c,
@@ -5121,11 +5108,11 @@ export {
5121
5108
  M as n,
5122
5109
  Hs as o,
5123
5110
  E as p,
5124
- Ke as q,
5111
+ je as q,
5125
5112
  tn as r,
5126
5113
  on as s,
5127
5114
  Xs as t,
5128
- qe as u,
5115
+ Ke as u,
5129
5116
  Qs as v,
5130
5117
  Os as w,
5131
5118
  Zs as x,