@builder.io/sdk-vue 2.0.30 → 2.0.31

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 (52) hide show
  1. package/lib/browser/{awaiter-t_FyHypk.js → awaiter-CBFYn8Rc.js} +1 -1
  2. package/lib/browser/{awaiter-G8SRGpZq.cjs → awaiter-zzvk2NgH.cjs} +1 -1
  3. package/lib/browser/{block-styles-QdL_P0Fx.js → block-styles-1TjUGG0M.js} +1 -1
  4. package/lib/browser/{block-styles-OnuFq-oN.cjs → block-styles-eG8aHEnR.cjs} +1 -1
  5. package/lib/browser/{block-wrapper-7IkLgp7x.js → block-wrapper-mHstZCm3.js} +3 -3
  6. package/lib/browser/{block-wrapper-fBAL9K2u.cjs → block-wrapper-t1YyB3qf.cjs} +1 -1
  7. package/lib/browser/{component-ref-L--Mvtc5.cjs → component-ref-4iD2JOXe.cjs} +1 -1
  8. package/lib/browser/{component-ref-llprrwE2.js → component-ref-SiTniDkf.js} +3 -3
  9. package/lib/browser/constants/sdk-version.d.ts +1 -1
  10. package/lib/browser/{get-block-properties-C3Bt0aVR.js → get-block-properties-WnxZnXsK.js} +1 -1
  11. package/lib/browser/{get-block-properties-GiTnRRbK.cjs → get-block-properties-qCNopliW.cjs} +1 -1
  12. package/lib/browser/{index-2PyFlZUC.cjs → index-EOpyZR3_.cjs} +23 -23
  13. package/lib/browser/{index-vt9k3TV3.js → index-nG43II0w.js} +576 -570
  14. package/lib/browser/index.cjs +1 -1
  15. package/lib/browser/index.mjs +1 -1
  16. package/lib/browser/{repeated-block-dHROvYhN.js → repeated-block-WkFOmnw-.js} +2 -2
  17. package/lib/browser/{repeated-block-8thLK-kw.cjs → repeated-block-Zrynel2G.cjs} +1 -1
  18. package/lib/edge/{awaiter-xMGfwYjm.js → awaiter-ETIQ3Y1O.js} +1 -1
  19. package/lib/edge/{awaiter-GC2xTC8Y.cjs → awaiter-tqyHYP24.cjs} +1 -1
  20. package/lib/edge/{block-styles-MQ6F-wJx.cjs → block-styles-UFZvXK12.cjs} +1 -1
  21. package/lib/edge/{block-styles-lnpdX6V-.js → block-styles-xeGiE5b9.js} +1 -1
  22. package/lib/edge/{block-wrapper-aixvpDaD.cjs → block-wrapper-Kx9lGbVC.cjs} +1 -1
  23. package/lib/edge/{block-wrapper-OjYnBNwz.js → block-wrapper-rWfNhUAl.js} +3 -3
  24. package/lib/edge/{component-ref-UF81PmzX.js → component-ref-2gTfqFWa.js} +3 -3
  25. package/lib/edge/{component-ref-pLMkH-li.cjs → component-ref-jL8V5feH.cjs} +1 -1
  26. package/lib/edge/constants/sdk-version.d.ts +1 -1
  27. package/lib/edge/{get-block-properties-PgTUmqHR.cjs → get-block-properties-U4aZTxWN.cjs} +1 -1
  28. package/lib/edge/{get-block-properties-_21D78JP.js → get-block-properties-rSB9DXAm.js} +1 -1
  29. package/lib/edge/{index-5thgYd8i.cjs → index-1wQww2g6.cjs} +14 -14
  30. package/lib/edge/{index-vCgGh07X.js → index-61CJkECh.js} +682 -676
  31. package/lib/edge/index.cjs +1 -1
  32. package/lib/edge/index.mjs +1 -1
  33. package/lib/{node/repeated-block-SZwTMCgz.cjs → edge/repeated-block-YThkmdHp.cjs} +1 -1
  34. package/lib/edge/{repeated-block-2cIfX4fx.js → repeated-block-sibYzFQC.js} +2 -2
  35. package/lib/node/{awaiter-3eKUn_vT.js → awaiter--0e1RmdV.js} +1 -1
  36. package/lib/node/{awaiter-qNZtZLjJ.cjs → awaiter-YeTQ3hOV.cjs} +1 -1
  37. package/lib/node/{block-styles-ON8cTpGp.cjs → block-styles-OsL48K76.cjs} +1 -1
  38. package/lib/node/{block-styles-IyYaHu8-.js → block-styles-mmmG5Zvb.js} +1 -1
  39. package/lib/node/{block-wrapper-WZ-DIDkP.js → block-wrapper-6FrZVnI8.js} +3 -3
  40. package/lib/node/{block-wrapper-qYoYSONc.cjs → block-wrapper-hK9iEXhq.cjs} +1 -1
  41. package/lib/node/{component-ref-_kyf_si2.js → component-ref-u2wfD4PU.js} +3 -3
  42. package/lib/node/{component-ref-5hL2pob8.cjs → component-ref-yN1A7uFk.cjs} +1 -1
  43. package/lib/node/constants/sdk-version.d.ts +1 -1
  44. package/lib/node/{get-block-properties-9J6zqRJY.cjs → get-block-properties-EkNcjp0K.cjs} +1 -1
  45. package/lib/node/{get-block-properties-OXHPbXLH.js → get-block-properties-QhUhlrxy.js} +1 -1
  46. package/lib/node/{index-NtAkrth1.cjs → index-EBQK2Vx-.cjs} +25 -25
  47. package/lib/node/{index-Cxf2YzmY.js → index-GJHkrBmN.js} +553 -547
  48. package/lib/node/index.cjs +1 -1
  49. package/lib/node/index.mjs +1 -1
  50. package/lib/node/{repeated-block-vtGXbgev.js → repeated-block-h-cU9AMQ.js} +2 -2
  51. package/lib/{edge/repeated-block-7ZbJaVOi.cjs → node/repeated-block-z6QgHzWM.cjs} +1 -1
  52. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { defineComponent as b, openBlock as c, createElementBlock as p, Fragment as w, createBlock as y, resolveDynamicComponent as j, mergeProps as C, toHandlers as x, withCtx as N, renderSlot as A, resolveComponent as k, createTextVNode as ct, toDisplayString as _, defineAsyncComponent as M, createVNode as $, renderList as V, createCommentVNode as v, h as Ee, createElementVNode as q, normalizeStyle as D, normalizeClass as z, markRaw as dt } from "vue";
2
- import { T as P, g as ut, f as pt, i as R, s as mt, r as ht, p as ft, a as bt, l as E, b as Pe, c as ce, d as gt, n as Be, e as L, h as B, j as yt } from "./should-force-browser-runtime-in-node-ikxWrCvn.js";
3
- const kt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), vt = (e) => typeof e == "string" && kt.has(e.toLowerCase());
1
+ import { defineComponent as b, openBlock as c, createElementBlock as p, Fragment as w, createBlock as y, resolveDynamicComponent as j, mergeProps as C, toHandlers as x, withCtx as N, renderSlot as A, resolveComponent as k, createTextVNode as ut, toDisplayString as ee, defineAsyncComponent as M, createVNode as $, renderList as V, createCommentVNode as v, h as Be, createElementVNode as q, normalizeStyle as D, normalizeClass as z, markRaw as pt } from "vue";
2
+ import { T as P, g as mt, f as ht, i as R, s as ft, r as bt, p as gt, a as yt, l as E, b as xe, c as ue, d as kt, n as Ae, e as L, h as B, j as vt } from "./should-force-browser-runtime-in-node-ikxWrCvn.js";
3
+ const St = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ct = (e) => typeof e == "string" && St.has(e.toLowerCase());
4
4
  function W(e = {}, t, n) {
5
5
  const o = {};
6
6
  for (const r in e) {
@@ -11,11 +11,11 @@ function W(e = {}, t, n) {
11
11
  }
12
12
  return o;
13
13
  }
14
- const St = b({
14
+ const Tt = b({
15
15
  name: "dynamic-renderer",
16
16
  props: ["TagName", "attributes", "actionAttributes"],
17
17
  data() {
18
- return { isEmptyElement: vt };
18
+ return { isEmptyElement: Ct };
19
19
  }
20
20
  }), g = (e, t) => {
21
21
  const n = e.__vccOpts || e;
@@ -23,7 +23,7 @@ const St = b({
23
23
  n[o] = r;
24
24
  return n;
25
25
  };
26
- function Ct(e, t, n, o, r, i) {
26
+ function wt(e, t, n, o, r, i) {
27
27
  return e.isEmptyElement(e.TagName) ? (c(), y(j(e.TagName), C({ key: 1 }, e.attributes, x(e.actionAttributes)), null, 16)) : (c(), p(w, { key: 0 }, [
28
28
  typeof e.TagName == "string" ? (c(), y(j(e.TagName), C({ key: 0 }, e.attributes, x(e.actionAttributes)), {
29
29
  default: N(() => [
@@ -38,10 +38,10 @@ function Ct(e, t, n, o, r, i) {
38
38
  }, 16))
39
39
  ], 64));
40
40
  }
41
- const de = /* @__PURE__ */ g(St, [["render", Ct]]), Es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41
+ const pe = /* @__PURE__ */ g(Tt, [["render", wt]]), Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42
42
  __proto__: null,
43
- default: de
44
- }, Symbol.toStringTag, { value: "Module" })), Q = () => {
43
+ default: pe
44
+ }, Symbol.toStringTag, { value: "Module" })), Z = () => {
45
45
  switch (P) {
46
46
  case "react":
47
47
  case "reactNative":
@@ -54,9 +54,9 @@ const de = /* @__PURE__ */ g(St, [["render", Ct]]), Es = /* @__PURE__ */ Object.
54
54
  case "angular":
55
55
  return "class";
56
56
  }
57
- }, Tt = b({
57
+ }, It = b({
58
58
  name: "builder-button",
59
- components: { DynamicRenderer: de },
59
+ components: { DynamicRenderer: pe },
60
60
  props: [
61
61
  "attributes",
62
62
  "link",
@@ -71,7 +71,7 @@ const de = /* @__PURE__ */ g(St, [["render", Ct]]), Es = /* @__PURE__ */ Object.
71
71
  attrs() {
72
72
  return {
73
73
  ...W(this.attributes, "v-on:", !1),
74
- [Q()]: `${this.link ? "" : "builder-button"} ${this.attributes[Q()] || ""}`,
74
+ [Z()]: `${this.link ? "" : "builder-button"} ${this.attributes[Z()] || ""}`,
75
75
  ...this.link ? {
76
76
  href: this.link,
77
77
  target: this.openLinkInNewTab ? "_blank" : void 0,
@@ -83,7 +83,7 @@ const de = /* @__PURE__ */ g(St, [["render", Ct]]), Es = /* @__PURE__ */ Object.
83
83
  }
84
84
  }
85
85
  });
86
- function wt(e, t, n, o, r, i) {
86
+ function $t(e, t, n, o, r, i) {
87
87
  const s = k("DynamicRenderer");
88
88
  return c(), y(s, {
89
89
  attributes: e.attrs(),
@@ -91,12 +91,12 @@ function wt(e, t, n, o, r, i) {
91
91
  actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
92
92
  }, {
93
93
  default: N(() => [
94
- ct(_(e.text), 1)
94
+ ut(ee(e.text), 1)
95
95
  ]),
96
96
  _: 1
97
97
  }, 8, ["attributes", "TagName", "actionAttributes"]);
98
98
  }
99
- const It = /* @__PURE__ */ g(Tt, [["render", wt]]), $t = Symbol(), se = {
99
+ const Rt = /* @__PURE__ */ g(It, [["render", $t]]), Et = Symbol(), ae = {
100
100
  Builder: {
101
101
  content: null,
102
102
  context: {},
@@ -112,28 +112,28 @@ const It = /* @__PURE__ */ g(Tt, [["render", wt]]), $t = Symbol(), se = {
112
112
  BlocksWrapperProps: {},
113
113
  nonce: ""
114
114
  },
115
- key: $t
116
- }, Rt = Symbol(), xe = {
115
+ key: Et
116
+ }, Pt = Symbol(), Ve = {
117
117
  Components: { registeredComponents: {} },
118
- key: Rt
118
+ key: Pt
119
119
  };
120
- function Et(e) {
120
+ function Bt(e) {
121
121
  var t;
122
122
  return {
123
123
  ...(t = e.component) == null ? void 0 : t.options,
124
124
  ...e.options
125
125
  };
126
126
  }
127
- function Pt(e, ...t) {
127
+ function xt(e, ...t) {
128
128
  const n = Object.assign({}, e);
129
129
  for (const o of t)
130
130
  delete n[o];
131
131
  return n;
132
132
  }
133
- const Ae = (e, t, n) => {
133
+ const We = (e, t, n) => {
134
134
  const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, i) => r != null ? r[i] : r, e);
135
135
  return o === void 0 || o === e ? n : o;
136
- }, Bt = ({
136
+ }, At = ({
137
137
  code: e,
138
138
  builder: t,
139
139
  context: n,
@@ -142,22 +142,22 @@ const Ae = (e, t, n) => {
142
142
  rootSetState: i,
143
143
  rootState: s
144
144
  }) => {
145
- const l = ut({
145
+ const l = mt({
146
146
  builder: t,
147
147
  context: n,
148
148
  event: o,
149
- state: pt({
149
+ state: ht({
150
150
  rootState: s,
151
151
  localState: r,
152
152
  rootSetState: i
153
153
  })
154
154
  });
155
155
  return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
156
- }, xt = (e) => R() || mt({
156
+ }, Vt = (e) => R() || ft({
157
157
  shouldLogWarning: !0
158
- }) ? Bt(e) : ht(e), At = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Vt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Wt = (e) => {
158
+ }) ? At(e) : bt(e), Wt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Nt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Ft = (e) => {
159
159
  var t, n, o, r, i, s;
160
- return ((o = (n = (t = At.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = Vt.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
160
+ return ((o = (n = (t = Wt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = Nt.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
161
161
  };
162
162
  function J({
163
163
  code: e,
@@ -170,17 +170,17 @@ function J({
170
170
  }) {
171
171
  if (e.trim() === "")
172
172
  return;
173
- const l = Wt(e.trim());
173
+ const l = Ft(e.trim());
174
174
  if (l)
175
- return Ae({
175
+ return We({
176
176
  ...o,
177
177
  ...n
178
178
  }, l);
179
179
  const a = {
180
- code: ft(e, {
180
+ code: gt(e, {
181
181
  isExpression: s
182
182
  }),
183
- builder: bt(),
183
+ builder: yt(),
184
184
  context: t,
185
185
  event: i,
186
186
  rootSetState: r,
@@ -188,7 +188,7 @@ function J({
188
188
  localState: n
189
189
  };
190
190
  try {
191
- return xt(a);
191
+ return Vt(a);
192
192
  } catch (u) {
193
193
  E.error("Failed code evaluation: " + u.message, {
194
194
  code: e
@@ -196,21 +196,21 @@ function J({
196
196
  return;
197
197
  }
198
198
  }
199
- function ie(e) {
199
+ function le(e) {
200
200
  if (e === null || typeof e != "object")
201
201
  return e;
202
202
  if (Array.isArray(e))
203
- return e.map((n) => ie(n));
203
+ return e.map((n) => le(n));
204
204
  if (e["@type"] === "@builder.io/sdk:Element")
205
205
  return e;
206
206
  const t = {};
207
207
  for (const n in e)
208
- n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ie(e[n]));
208
+ n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = le(e[n]));
209
209
  return t;
210
210
  }
211
- const Nt = ["svelte", "vue", "angular", "qwik", "solid"].includes(P), Ft = (e) => {
212
- if (Nt) {
213
- const t = ce(e);
211
+ const Dt = ["svelte", "vue", "angular", "qwik", "solid"].includes(P), Ot = (e) => {
212
+ if (Dt) {
213
+ const t = ue(e);
214
214
  return {
215
215
  ...t,
216
216
  properties: {
@@ -221,7 +221,7 @@ const Nt = ["svelte", "vue", "angular", "qwik", "solid"].includes(P), Ft = (e) =
221
221
  }
222
222
  };
223
223
  } else {
224
- const t = ie(Pt(e, "children", "meta"));
224
+ const t = le(xt(e, "children", "meta"));
225
225
  return {
226
226
  ...t,
227
227
  properties: {
@@ -234,7 +234,7 @@ const Nt = ["svelte", "vue", "angular", "qwik", "solid"].includes(P), Ft = (e) =
234
234
  meta: e.meta
235
235
  };
236
236
  }
237
- }, Dt = ({
237
+ }, Lt = ({
238
238
  block: e,
239
239
  context: t,
240
240
  localState: n,
@@ -243,7 +243,7 @@ const Nt = ["svelte", "vue", "angular", "qwik", "solid"].includes(P), Ft = (e) =
243
243
  }) => {
244
244
  if (!e.bindings)
245
245
  return e;
246
- const i = Ft(e);
246
+ const i = Ot(e);
247
247
  for (const s in e.bindings) {
248
248
  const l = e.bindings[s], a = J({
249
249
  code: l,
@@ -252,11 +252,11 @@ const Nt = ["svelte", "vue", "angular", "qwik", "solid"].includes(P), Ft = (e) =
252
252
  rootSetState: r,
253
253
  context: t
254
254
  });
255
- Pe(i, s, a);
255
+ xe(i, s, a);
256
256
  }
257
257
  return i;
258
258
  };
259
- function Ot({
259
+ function Ut({
260
260
  block: e,
261
261
  context: t,
262
262
  shouldEvaluateBindings: n,
@@ -265,7 +265,7 @@ function Ot({
265
265
  rootSetState: i
266
266
  }) {
267
267
  const s = e;
268
- return n ? Dt({
268
+ return n ? Lt({
269
269
  block: s,
270
270
  localState: o,
271
271
  rootState: r,
@@ -273,25 +273,25 @@ function Ot({
273
273
  context: t
274
274
  }) : s;
275
275
  }
276
- function Lt(e) {
276
+ function Ht(e) {
277
277
  const t = e || (R() ? window.location.search : void 0);
278
- return t ? gt(t).indexOf("builder.preview=") !== -1 : !1;
278
+ return t ? kt(t).indexOf("builder.preview=") !== -1 : !1;
279
279
  }
280
- const Ut = (e) => ({
280
+ const Mt = (e) => ({
281
281
  type: "builder.registerComponent",
282
- data: Z(e)
283
- }), Ht = (e) => {
284
- const t = e.toString().trim();
285
- return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
282
+ data: _(e)
283
+ }), jt = (e) => {
284
+ const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
285
+ return `return (${!t.startsWith("function") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
286
286
  };
287
- function Z(e) {
288
- return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? Ht(n) : n));
287
+ function _(e) {
288
+ return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? jt(n) : n));
289
289
  }
290
- const ke = {};
291
- function Mt(e, t) {
292
- e === "plugin" && (t = Z(t));
293
- let n = ke[e];
294
- if (n || (n = ke[e] = []), n.push(t), R()) {
290
+ const Se = {};
291
+ function Kt(e, t) {
292
+ e === "plugin" && (t = _(t));
293
+ let n = Se[e];
294
+ if (n || (n = Se[e] = []), n.push(t), R()) {
295
295
  const o = {
296
296
  type: "builder.register",
297
297
  data: {
@@ -306,42 +306,42 @@ function Mt(e, t) {
306
306
  }
307
307
  }
308
308
  }
309
- const ve = {};
310
- function Ps(e) {
309
+ const Ce = {};
310
+ function xs(e) {
311
311
  if (R()) {
312
- Object.assign(ve, e);
312
+ Object.assign(Ce, e);
313
313
  const t = {
314
314
  type: "builder.settingsChange",
315
- data: ve
315
+ data: Ce
316
316
  };
317
317
  parent.postMessage(t, "*");
318
318
  }
319
319
  }
320
- const Se = "builder.", jt = "options.", Ve = (e) => {
320
+ const Te = "builder.", qt = "options.", Ne = (e) => {
321
321
  if (!e)
322
322
  return {};
323
- const t = Be(e), n = {};
323
+ const t = Ae(e), n = {};
324
324
  return Object.keys(t).forEach((o) => {
325
- if (o.startsWith(Se)) {
326
- const r = o.replace(Se, "").replace(jt, "");
325
+ if (o.startsWith(Te)) {
326
+ const r = o.replace(Te, "").replace(qt, "");
327
327
  n[r] = t[o];
328
328
  }
329
329
  }), n;
330
- }, Kt = () => {
330
+ }, zt = () => {
331
331
  if (!R())
332
332
  return {};
333
333
  const e = new URLSearchParams(window.location.search);
334
- return Ve(e);
335
- }, We = "2.0.30", Ne = () => ({
334
+ return Ne(e);
335
+ }, Fe = "2.0.31", De = () => ({
336
336
  "X-Builder-SDK": P,
337
337
  "X-Builder-SDK-GEN": "2",
338
- "X-Builder-SDK-Version": We
339
- }), qt = (e) => {
338
+ "X-Builder-SDK-Version": Fe
339
+ }), Gt = (e) => {
340
340
  if (e === "localhost" || e === "127.0.0.1")
341
341
  return e;
342
342
  const t = e.split(".");
343
343
  return t.length > 2 ? t.slice(1).join(".") : e;
344
- }, Fe = ({
344
+ }, Oe = ({
345
345
  name: e,
346
346
  canTrack: t
347
347
  }) => {
@@ -352,14 +352,14 @@ const Se = "builder.", jt = "options.", Ve = (e) => {
352
352
  E.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
353
353
  return;
354
354
  }
355
- }, De = async (e) => Fe(e), zt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(L).join("; "), Gt = [["secure", ""], ["SameSite", "None"]], Jt = ({
355
+ }, Le = async (e) => Oe(e), Jt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(L).join("; "), Yt = [["secure", ""], ["SameSite", "None"]], Xt = ({
356
356
  name: e,
357
357
  value: t,
358
358
  expires: n
359
359
  }) => {
360
- const r = (R() ? location.protocol === "https:" : !0) ? Gt : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", qt(window.location.hostname)], ...r];
361
- return zt(s);
362
- }, Oe = async ({
360
+ const r = (R() ? location.protocol === "https:" : !0) ? Yt : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", Gt(window.location.hostname)], ...r];
361
+ return Jt(s);
362
+ }, Ue = async ({
363
363
  name: e,
364
364
  value: t,
365
365
  expires: n,
@@ -368,7 +368,7 @@ const Se = "builder.", jt = "options.", Ve = (e) => {
368
368
  try {
369
369
  if (!o)
370
370
  return;
371
- const r = Jt({
371
+ const r = Xt({
372
372
  name: e,
373
373
  value: t,
374
374
  expires: n
@@ -378,93 +378,93 @@ const Se = "builder.", jt = "options.", Ve = (e) => {
378
378
  E.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
379
379
  }
380
380
  };
381
- function Yt() {
381
+ function Qt() {
382
382
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
383
383
  const t = Math.random() * 16 | 0;
384
384
  return (e == "x" ? t : t & 3 | 8).toString(16);
385
385
  });
386
386
  }
387
- function Le() {
388
- return Yt().replace(/-/g, "");
387
+ function He() {
388
+ return Qt().replace(/-/g, "");
389
389
  }
390
- const Ue = "builderSessionId", Xt = async ({
390
+ const Me = "builderSessionId", Zt = async ({
391
391
  canTrack: e
392
392
  }) => {
393
393
  if (!e)
394
394
  return;
395
- const t = await De({
396
- name: Ue,
395
+ const t = await Le({
396
+ name: Me,
397
397
  canTrack: e
398
398
  });
399
399
  if (L(t))
400
400
  return t;
401
401
  {
402
- const n = Qt();
403
- return Zt({
402
+ const n = _t();
403
+ return en({
404
404
  id: n,
405
405
  canTrack: e
406
406
  }), n;
407
407
  }
408
- }, Qt = () => Le(), Zt = ({
408
+ }, _t = () => He(), en = ({
409
409
  id: e,
410
410
  canTrack: t
411
- }) => Oe({
412
- name: Ue,
411
+ }) => Ue({
412
+ name: Me,
413
413
  value: e,
414
414
  canTrack: t
415
- }), He = () => R() && typeof localStorage < "u" ? localStorage : void 0, _t = ({
415
+ }), je = () => R() && typeof localStorage < "u" ? localStorage : void 0, tn = ({
416
416
  key: e,
417
417
  canTrack: t
418
418
  }) => {
419
419
  var n;
420
420
  try {
421
- return t ? (n = He()) == null ? void 0 : n.getItem(e) : void 0;
421
+ return t ? (n = je()) == null ? void 0 : n.getItem(e) : void 0;
422
422
  } catch (o) {
423
423
  console.debug("[LocalStorage] GET error: ", o);
424
424
  return;
425
425
  }
426
- }, en = ({
426
+ }, nn = ({
427
427
  key: e,
428
428
  canTrack: t,
429
429
  value: n
430
430
  }) => {
431
431
  var o;
432
432
  try {
433
- t && ((o = He()) == null || o.setItem(e, n));
433
+ t && ((o = je()) == null || o.setItem(e, n));
434
434
  } catch (r) {
435
435
  console.debug("[LocalStorage] SET error: ", r);
436
436
  }
437
- }, Me = "builderVisitorId", tn = ({
437
+ }, Ke = "builderVisitorId", on = ({
438
438
  canTrack: e
439
439
  }) => {
440
440
  if (!e)
441
441
  return;
442
- const t = _t({
443
- key: Me,
442
+ const t = tn({
443
+ key: Ke,
444
444
  canTrack: e
445
445
  });
446
446
  if (L(t))
447
447
  return t;
448
448
  {
449
- const n = nn();
450
- return on({
449
+ const n = rn();
450
+ return sn({
451
451
  id: n,
452
452
  canTrack: e
453
453
  }), n;
454
454
  }
455
- }, nn = () => Le(), on = ({
455
+ }, rn = () => He(), sn = ({
456
456
  id: e,
457
457
  canTrack: t
458
- }) => en({
459
- key: Me,
458
+ }) => nn({
459
+ key: Ke,
460
460
  value: e,
461
461
  canTrack: t
462
462
  });
463
- function ue(e) {
463
+ function me(e) {
464
464
  var t;
465
465
  typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && E.log(e);
466
466
  }
467
- const rn = async ({
467
+ const an = async ({
468
468
  canTrack: e
469
469
  }) => {
470
470
  if (!e)
@@ -472,16 +472,16 @@ const rn = async ({
472
472
  visitorId: void 0,
473
473
  sessionId: void 0
474
474
  };
475
- const t = await Xt({
475
+ const t = await Zt({
476
476
  canTrack: e
477
- }), n = tn({
477
+ }), n = on({
478
478
  canTrack: e
479
479
  });
480
480
  return {
481
481
  sessionId: t,
482
482
  visitorId: n
483
483
  };
484
- }, sn = async ({
484
+ }, ln = async ({
485
485
  type: e,
486
486
  canTrack: t,
487
487
  apiKey: n,
@@ -495,14 +495,14 @@ const rn = async ({
495
495
  url: location.href,
496
496
  ...o
497
497
  },
498
- ...await rn({
498
+ ...await an({
499
499
  canTrack: t
500
500
  }),
501
- userAttributes: yt(),
501
+ userAttributes: vt(),
502
502
  ownerId: n
503
503
  }
504
504
  });
505
- async function ae({
505
+ async function ce({
506
506
  apiHost: e,
507
507
  ...t
508
508
  }) {
@@ -513,32 +513,32 @@ async function ae({
513
513
  if (!t.canTrack || B() || !(R() || P === "reactNative"))
514
514
  return;
515
515
  const o = `${e || "https://cdn.builder.io"}/api/v1/track`;
516
- return ue(o), fetch(o, {
516
+ return me(o), fetch(o, {
517
517
  method: "POST",
518
518
  body: JSON.stringify({
519
- events: [await sn(t)]
519
+ events: [await ln(t)]
520
520
  }),
521
521
  headers: {
522
522
  "content-type": "application/json",
523
- ...Ne()
523
+ ...De()
524
524
  },
525
525
  mode: "cors"
526
526
  }).catch((r) => {
527
527
  console.error("Failed to track: ", r);
528
528
  });
529
529
  }
530
- const Bs = (e) => ae({
530
+ const As = (e) => ce({
531
531
  ...e,
532
532
  canTrack: !0
533
- }), an = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
534
- function je(e, t) {
533
+ }), cn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
534
+ function qe(e, t) {
535
535
  if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
536
536
  return !1;
537
537
  const n = new URL(t.origin), o = n.hostname;
538
- return (e || an).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
538
+ return (e || cn).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
539
539
  }
540
- const ln = () => {
541
- Mt("insertMenu", {
540
+ const dn = () => {
541
+ Kt("insertMenu", {
542
542
  name: "_default",
543
543
  default: !0,
544
544
  items: [{
@@ -560,14 +560,14 @@ const ln = () => {
560
560
  }]
561
561
  });
562
562
  };
563
- let Ce = !1;
564
- const Ke = (e = {}) => {
563
+ let we = !1;
564
+ const ze = (e = {}) => {
565
565
  var t, n;
566
- Ce || (Ce = !0, R() && ((t = window.parent) == null || t.postMessage({
566
+ we || (we = !0, R() && ((t = window.parent) == null || t.postMessage({
567
567
  type: "builder.sdkInfo",
568
568
  data: {
569
569
  target: P,
570
- version: We,
570
+ version: Fe,
571
571
  supportsPatchUpdates: !1,
572
572
  // Supports builder-model="..." attribute which is needed to
573
573
  // scope our '+ add block' button styling
@@ -581,7 +581,7 @@ const Ke = (e = {}) => {
581
581
  }
582
582
  }, "*"), window.addEventListener("message", (o) => {
583
583
  var i, s;
584
- if (!je(e.trustedHosts, o))
584
+ if (!qe(e.trustedHosts, o))
585
585
  return;
586
586
  const {
587
587
  data: r
@@ -622,12 +622,12 @@ const Ke = (e = {}) => {
622
622
  }
623
623
  }
624
624
  })));
625
- }, qe = ({
625
+ }, Ge = ({
626
626
  model: e,
627
627
  trustedHosts: t,
628
628
  callbacks: n
629
629
  }) => (o) => {
630
- if (!je(t, o))
630
+ if (!qe(t, o))
631
631
  return;
632
632
  const {
633
633
  data: r
@@ -648,12 +648,12 @@ const Ke = (e = {}) => {
648
648
  break;
649
649
  }
650
650
  }
651
- }, xs = (e, t, n) => {
651
+ }, Vs = (e, t, n) => {
652
652
  if (!R)
653
653
  return E.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
654
654
  };
655
- Ke();
656
- const o = qe({
655
+ ze();
656
+ const o = Ge({
657
657
  callbacks: {
658
658
  contentUpdate: t,
659
659
  animation: () => {
@@ -667,24 +667,24 @@ const Ke = (e = {}) => {
667
667
  return window.addEventListener("message", o), () => {
668
668
  window.removeEventListener("message", o);
669
669
  };
670
- }, cn = "builder.tests", pe = (e) => `${cn}.${e}`, dn = ({
670
+ }, un = "builder.tests", he = (e) => `${un}.${e}`, pn = ({
671
671
  contentId: e
672
- }) => De({
673
- name: pe(e),
672
+ }) => Le({
673
+ name: he(e),
674
674
  canTrack: !0
675
- }), un = ({
675
+ }), mn = ({
676
676
  contentId: e
677
- }) => Fe({
678
- name: pe(e),
677
+ }) => Oe({
678
+ name: he(e),
679
679
  canTrack: !0
680
- }), pn = ({
680
+ }), hn = ({
681
681
  contentId: e,
682
682
  value: t
683
- }) => Oe({
684
- name: pe(e),
683
+ }) => Ue({
684
+ name: he(e),
685
685
  value: t,
686
686
  canTrack: !0
687
- }), ze = (e) => L(e.id) && L(e.variations) && Object.keys(e.variations).length > 0, mn = ({
687
+ }), Je = (e) => L(e.id) && L(e.variations) && Object.keys(e.variations).length > 0, fn = ({
688
688
  id: e,
689
689
  variations: t
690
690
  }) => {
@@ -697,15 +697,15 @@ const Ke = (e = {}) => {
697
697
  return i;
698
698
  }
699
699
  return e;
700
- }, Ge = (e) => {
701
- const t = mn(e);
702
- return pn({
700
+ }, Ye = (e) => {
701
+ const t = fn(e);
702
+ return hn({
703
703
  contentId: e.id,
704
704
  value: t
705
705
  }).catch((n) => {
706
706
  E.error("could not store A/B test variation: ", n);
707
707
  }), t;
708
- }, Je = ({
708
+ }, Xe = ({
709
709
  item: e,
710
710
  testGroupId: t
711
711
  }) => {
@@ -719,7 +719,7 @@ const Ke = (e = {}) => {
719
719
  testVariationId: n.id,
720
720
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
721
721
  };
722
- }, hn = ({
722
+ }, bn = ({
723
723
  item: e,
724
724
  canTrack: t
725
725
  }) => {
@@ -727,14 +727,14 @@ const Ke = (e = {}) => {
727
727
  return e;
728
728
  if (!e)
729
729
  return;
730
- if (!ze(e))
730
+ if (!Je(e))
731
731
  return e;
732
- const n = un({
732
+ const n = mn({
733
733
  contentId: e.id
734
- }) || Ge({
734
+ }) || Ye({
735
735
  variations: e.variations,
736
736
  id: e.id
737
- }), o = Je({
737
+ }), o = Xe({
738
738
  item: e,
739
739
  testGroupId: n
740
740
  });
@@ -742,18 +742,18 @@ const Ke = (e = {}) => {
742
742
  ...e,
743
743
  ...o
744
744
  };
745
- }, fn = async ({
745
+ }, gn = async ({
746
746
  item: e,
747
747
  canTrack: t
748
748
  }) => {
749
- if (!t || !ze(e))
749
+ if (!t || !Je(e))
750
750
  return e;
751
- const o = await dn({
751
+ const o = await pn({
752
752
  contentId: e.id
753
- }) || Ge({
753
+ }) || Ye({
754
754
  variations: e.variations,
755
755
  id: e.id
756
- }), r = Je({
756
+ }), r = Xe({
757
757
  item: e,
758
758
  testGroupId: o
759
759
  });
@@ -762,37 +762,37 @@ const Ke = (e = {}) => {
762
762
  ...r
763
763
  };
764
764
  }, G = (e) => L(e) ? e : !0;
765
- function bn() {
765
+ function yn() {
766
766
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
767
767
  }
768
- function gn() {
769
- const e = bn().fetch;
768
+ function kn() {
769
+ const e = yn().fetch;
770
770
  if (typeof e > "u")
771
771
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
772
772
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
773
773
  return e;
774
774
  }
775
- const yn = gn();
776
- function le(e, t = null, n = ".") {
775
+ const vn = kn();
776
+ function de(e, t = null, n = ".") {
777
777
  return Object.keys(e).reduce((o, r) => {
778
778
  const i = e[r], s = [t, r].filter(Boolean).join(n);
779
779
  return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
780
780
  ...o,
781
- ...le(i, s, n)
781
+ ...de(i, s, n)
782
782
  } : {
783
783
  ...o,
784
784
  [s]: i
785
785
  };
786
786
  }, {});
787
787
  }
788
- function Ye(e, t, n = {}) {
788
+ function Qe(e, t, n = {}) {
789
789
  for (const o in e) {
790
790
  const r = e[o], i = t ? t + "." + o : o;
791
- r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? Ye(r, i, n) : n[i] = r;
791
+ r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? Qe(r, i, n) : n[i] = r;
792
792
  }
793
793
  return n;
794
794
  }
795
- const kn = "v3", Te = (e) => typeof e == "number" && !isNaN(e) && e >= 0, me = (e) => {
795
+ const Sn = "v3", Ie = (e) => typeof e == "number" && !isNaN(e) && e >= 0, fe = (e) => {
796
796
  const {
797
797
  limit: t = 30,
798
798
  userAttributes: n,
@@ -801,7 +801,7 @@ const kn = "v3", Te = (e) => typeof e == "number" && !isNaN(e) && e >= 0, me = (
801
801
  apiKey: i,
802
802
  enrich: s,
803
803
  locale: l,
804
- apiVersion: a = kn,
804
+ apiVersion: a = Sn,
805
805
  fields: u,
806
806
  omit: m,
807
807
  offset: h,
@@ -815,54 +815,60 @@ const kn = "v3", Te = (e) => typeof e == "number" && !isNaN(e) && e >= 0, me = (
815
815
  throw new Error("Missing API key");
816
816
  if (!["v3"].includes(a))
817
817
  throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
818
- const it = t !== 1, at = O || "https://cdn.builder.io", I = new URL(`${at}/api/${a}/content/${r}`);
819
- if (I.searchParams.set("apiKey", i), I.searchParams.set("limit", String(t)), I.searchParams.set("noTraverse", String(it)), I.searchParams.set("includeRefs", String(!0)), l && I.searchParams.set("locale", l), s && I.searchParams.set("enrich", String(s)), I.searchParams.set("omit", m || "meta.componentsUsed"), u && I.searchParams.set("fields", u), Number.isFinite(h) && h > -1 && I.searchParams.set("offset", String(Math.floor(h))), typeof T == "boolean" && I.searchParams.set("includeUnpublished", String(T)), d && Te(d) && I.searchParams.set("cacheSeconds", String(d)), f && Te(f) && I.searchParams.set("staleCacheSeconds", String(f)), S) {
820
- const F = le({
818
+ const lt = t !== 1, ct = O || "https://cdn.builder.io", I = new URL(`${ct}/api/${a}/content/${r}`);
819
+ I.searchParams.set("apiKey", i), I.searchParams.set("limit", String(t)), I.searchParams.set("noTraverse", String(lt)), I.searchParams.set("includeRefs", String(!0));
820
+ const te = l || (n == null ? void 0 : n.locale);
821
+ let X = n;
822
+ if (te && (I.searchParams.set("locale", te), X = {
823
+ locale: te,
824
+ ...X
825
+ }), s && I.searchParams.set("enrich", String(s)), I.searchParams.set("omit", m || "meta.componentsUsed"), u && I.searchParams.set("fields", u), Number.isFinite(h) && h > -1 && I.searchParams.set("offset", String(Math.floor(h))), typeof T == "boolean" && I.searchParams.set("includeUnpublished", String(T)), d && Ie(d) && I.searchParams.set("cacheSeconds", String(d)), f && Ie(f) && I.searchParams.set("staleCacheSeconds", String(f)), S) {
826
+ const F = de({
821
827
  sort: S
822
828
  });
823
829
  for (const H in F)
824
830
  I.searchParams.set(H, JSON.stringify(F[H]));
825
831
  }
826
- const lt = {
827
- ...Kt(),
828
- ...Be(e.options || {})
829
- }, ye = le(lt);
830
- for (const F in ye)
831
- I.searchParams.set(F, String(ye[F]));
832
- if (n && I.searchParams.set("userAttributes", JSON.stringify(n)), o) {
833
- const F = Ye({
832
+ const dt = {
833
+ ...zt(),
834
+ ...Ae(e.options || {})
835
+ }, ve = de(dt);
836
+ for (const F in ve)
837
+ I.searchParams.set(F, String(ve[F]));
838
+ if (X && I.searchParams.set("userAttributes", JSON.stringify(X)), o) {
839
+ const F = Qe({
834
840
  query: o
835
841
  });
836
842
  for (const H in F)
837
843
  I.searchParams.set(H, JSON.stringify(F[H]));
838
844
  }
839
845
  return I;
840
- }, vn = (e) => "results" in e;
841
- async function he(e) {
842
- const t = await Tn({
846
+ }, Cn = (e) => "results" in e;
847
+ async function be(e) {
848
+ const t = await In({
843
849
  ...e,
844
850
  limit: 1
845
851
  });
846
852
  return t && t[0] || null;
847
853
  }
848
- const Sn = async (e) => {
854
+ const Tn = async (e) => {
849
855
  var s;
850
- const t = me(e), n = e.fetch ?? yn, o = {
856
+ const t = fe(e), n = e.fetch ?? vn, o = {
851
857
  ...e.fetchOptions,
852
858
  headers: {
853
859
  ...(s = e.fetchOptions) == null ? void 0 : s.headers,
854
- ...Ne()
860
+ ...De()
855
861
  }
856
862
  };
857
863
  return await (await n(t.href, o)).json();
858
- }, Cn = async (e, t, n = me(e)) => {
864
+ }, wn = async (e, t, n = fe(e)) => {
859
865
  const o = G(e.canTrack);
860
866
  if (n.search.includes("preview="), !o || !(R() || P === "reactNative"))
861
867
  return t.results;
862
868
  try {
863
869
  const r = [];
864
870
  for (const i of t.results)
865
- r.push(await fn({
871
+ r.push(await gn({
866
872
  item: i,
867
873
  canTrack: o
868
874
  }));
@@ -872,10 +878,10 @@ const Sn = async (e) => {
872
878
  }
873
879
  return t.results;
874
880
  };
875
- async function Tn(e) {
881
+ async function In(e) {
876
882
  try {
877
- const t = me(e), n = await Sn(e);
878
- return vn(n) ? Cn(e, n) : (E.error("Error fetching data. ", {
883
+ const t = fe(e), n = await Tn(e);
884
+ return Cn(n) ? wn(e, n) : (E.error("Error fetching data. ", {
879
885
  url: t,
880
886
  content: n,
881
887
  options: e
@@ -884,7 +890,7 @@ async function Tn(e) {
884
890
  return E.error("Error fetching data. ", t), null;
885
891
  }
886
892
  }
887
- const As = async (e) => {
893
+ const Ws = async (e) => {
888
894
  var o, r, i;
889
895
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
890
896
  ...e,
@@ -896,15 +902,15 @@ const As = async (e) => {
896
902
  urlPath: t
897
903
  } : {}
898
904
  },
899
- options: Ve(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
905
+ options: Ne(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
900
906
  };
901
907
  return {
902
908
  apiKey: n.apiKey,
903
909
  model: n.model,
904
- content: await he(n)
910
+ content: await be(n)
905
911
  };
906
- }, fe = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
907
- function wn(e, t, n = {}) {
912
+ }, ge = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
913
+ function $n(e, t, n = {}) {
908
914
  let o, r, i, s = null, l = 0;
909
915
  const a = function() {
910
916
  l = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
@@ -926,55 +932,55 @@ function K(e, ...t) {
926
932
  }
927
933
  return n;
928
934
  }
929
- function In(e) {
935
+ function Rn(e) {
930
936
  for (const t of e)
931
937
  switch (t.trigger) {
932
938
  case "pageLoad":
933
- Ze(t);
939
+ et(t);
934
940
  break;
935
941
  case "scrollInView":
936
- Rn(t);
942
+ Pn(t);
937
943
  break;
938
944
  }
939
945
  }
940
- function Xe(e) {
946
+ function Ze(e) {
941
947
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
942
948
  }
943
- function Qe(e, t) {
944
- const n = $n(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
949
+ function _e(e, t) {
950
+ const n = En(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
945
951
  for (const l of s)
946
952
  for (const a of n)
947
953
  a in l || (l[a] = o[a]);
948
954
  }
949
- function $n(e) {
955
+ function En(e) {
950
956
  const t = [];
951
957
  for (const n of e.steps)
952
958
  for (const o in n.styles)
953
959
  t.indexOf(o) === -1 && t.push(o);
954
960
  return t;
955
961
  }
956
- function Ze(e) {
962
+ function et(e) {
957
963
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
958
964
  if (!t.length) {
959
- Xe(e.elementId || e.id || "");
965
+ Ze(e.elementId || e.id || "");
960
966
  return;
961
967
  }
962
968
  Array.from(t).forEach((n) => {
963
- Qe(e, n), n.style.transition = "none", n.style.transitionDelay = "0", K(n.style, e.steps[0].styles), setTimeout(() => {
964
- n.style.transition = `all ${e.duration}s ${fe(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), K(n.style, e.steps[1].styles), setTimeout(() => {
969
+ _e(e, n), n.style.transition = "none", n.style.transitionDelay = "0", K(n.style, e.steps[0].styles), setTimeout(() => {
970
+ n.style.transition = `all ${e.duration}s ${ge(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), K(n.style, e.steps[1].styles), setTimeout(() => {
965
971
  n.style.transition = "", n.style.transitionDelay = "";
966
972
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
967
973
  });
968
974
  });
969
975
  }
970
- function Rn(e) {
976
+ function Pn(e) {
971
977
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
972
978
  if (!t.length) {
973
- Xe(e.elementId || e.id || "");
979
+ Ze(e.elementId || e.id || "");
974
980
  return;
975
981
  }
976
982
  Array.from(t).forEach((n) => {
977
- Qe(e, n);
983
+ _e(e, n);
978
984
  let o = !1, r = !1;
979
985
  function i() {
980
986
  !o && l(n) ? (o = !0, r = !0, setTimeout(() => {
@@ -983,7 +989,7 @@ function Rn(e) {
983
989
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
984
990
  })) : e.repeat && o && !r && !l(n) && (o = !1, K(n.style, e.steps[0].styles));
985
991
  }
986
- const s = wn(i, 200, {
992
+ const s = $n(i, 200, {
987
993
  leading: !1
988
994
  });
989
995
  function l(m) {
@@ -995,49 +1001,49 @@ function Rn(e) {
995
1001
  K(n.style, a);
996
1002
  }
997
1003
  u(), setTimeout(() => {
998
- n.style.transition = `all ${e.duration}s ${fe(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
1004
+ n.style.transition = `all ${e.duration}s ${ge(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
999
1005
  }), document.addEventListener("scroll", s, {
1000
1006
  capture: !0,
1001
1007
  passive: !0
1002
1008
  }), i();
1003
1009
  });
1004
1010
  }
1005
- const _e = (e) => Object.entries(e).map(([n, o]) => {
1011
+ const tt = (e) => Object.entries(e).map(([n, o]) => {
1006
1012
  if (typeof o == "string")
1007
- return `${fe(n)}: ${o};`;
1008
- }).filter(L), En = (e) => _e(e).join(`
1009
- `), Vs = ({
1013
+ return `${ge(n)}: ${o};`;
1014
+ }).filter(L), Bn = (e) => tt(e).join(`
1015
+ `), Ns = ({
1010
1016
  mediaQuery: e,
1011
1017
  className: t,
1012
1018
  styles: n
1013
1019
  }) => {
1014
1020
  const o = `.${t} {
1015
- ${En(n)}
1021
+ ${Bn(n)}
1016
1022
  }`;
1017
1023
  return e ? `${e} {
1018
1024
  ${o}
1019
1025
  }` : o;
1020
1026
  };
1021
- function Pn({
1027
+ function xn({
1022
1028
  style: e
1023
1029
  }) {
1024
1030
  return e;
1025
1031
  }
1026
- const Ws = ({
1032
+ const Fs = ({
1027
1033
  block: e,
1028
1034
  context: t
1029
- }) => et(Pn({
1035
+ }) => nt(xn({
1030
1036
  style: e.style || {},
1031
1037
  context: t,
1032
1038
  block: e
1033
1039
  }));
1034
- function et(e) {
1040
+ function nt(e) {
1035
1041
  switch (P) {
1036
1042
  case "svelte":
1037
1043
  case "vue":
1038
1044
  case "solid":
1039
1045
  case "angular":
1040
- return _e(e).join(" ");
1046
+ return tt(e).join(" ");
1041
1047
  case "qwik":
1042
1048
  case "reactNative":
1043
1049
  case "react":
@@ -1045,7 +1051,7 @@ function et(e) {
1045
1051
  return e;
1046
1052
  }
1047
1053
  }
1048
- const Bn = ({
1054
+ const An = ({
1049
1055
  block: e,
1050
1056
  registeredComponents: t
1051
1057
  }) => {
@@ -1059,7 +1065,7 @@ const Bn = ({
1059
1065
  console.warn(`
1060
1066
  Could not find a registered component named "${n}".
1061
1067
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
1062
- }, xn = ({
1068
+ }, Vn = ({
1063
1069
  block: e,
1064
1070
  context: t
1065
1071
  }) => {
@@ -1092,59 +1098,59 @@ const Bn = ({
1092
1098
  },
1093
1099
  block: o
1094
1100
  }));
1095
- }, An = (e, t) => {
1101
+ }, Wn = (e, t) => {
1096
1102
  var n;
1097
1103
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
1098
1104
  builderLinkComponent: t
1099
1105
  } : {};
1100
- }, Vn = (e, t) => {
1106
+ }, Nn = (e, t) => {
1101
1107
  var n;
1102
1108
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
1103
1109
  builderComponents: t
1104
1110
  } : {};
1105
- }, Wn = (e, t) => {
1111
+ }, Fn = (e, t) => {
1106
1112
  var n;
1107
1113
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
1108
1114
  builderBlock: t
1109
1115
  } : {};
1110
- }, Nn = (e, t) => {
1116
+ }, Dn = (e, t) => {
1111
1117
  var n;
1112
1118
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
1113
1119
  builderContext: t
1114
1120
  } : {};
1115
- }, Fn = () => Promise.resolve().then(() => Xn).then((e) => e.default).catch((e) => {
1121
+ }, On = () => Promise.resolve().then(() => Zn).then((e) => e.default).catch((e) => {
1116
1122
  throw console.error(
1117
1123
  "Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
1118
1124
  e
1119
1125
  ), e;
1120
- }), Dn = () => import("./block-styles-IyYaHu8-.js").then((e) => e.default).catch((e) => {
1126
+ }), Ln = () => import("./block-styles-mmmG5Zvb.js").then((e) => e.default).catch((e) => {
1121
1127
  throw console.error(
1122
1128
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
1123
1129
  e
1124
1130
  ), e;
1125
- }), On = () => import("./block-wrapper-WZ-DIDkP.js").then((e) => e.default).catch((e) => {
1131
+ }), Un = () => import("./block-wrapper-6FrZVnI8.js").then((e) => e.default).catch((e) => {
1126
1132
  throw console.error(
1127
1133
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
1128
1134
  e
1129
1135
  ), e;
1130
- }), Ln = () => import("./component-ref-_kyf_si2.js").then((e) => e.default).catch((e) => {
1136
+ }), Hn = () => import("./component-ref-u2wfD4PU.js").then((e) => e.default).catch((e) => {
1131
1137
  throw console.error(
1132
1138
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
1133
1139
  e
1134
1140
  ), e;
1135
- }), Un = () => import("./repeated-block-vtGXbgev.js").then((e) => e.default).catch((e) => {
1141
+ }), Mn = () => import("./repeated-block-h-cU9AMQ.js").then((e) => e.default).catch((e) => {
1136
1142
  throw console.error(
1137
1143
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
1138
1144
  e
1139
1145
  ), e;
1140
- }), Hn = b({
1146
+ }), jn = b({
1141
1147
  name: "block",
1142
1148
  components: {
1143
- BlockStyles: M(Dn),
1144
- RepeatedBlock: M(Un),
1145
- ComponentRef: M(Ln),
1146
- BlockWrapper: M(On),
1147
- DynamicDiv: M(Fn)
1149
+ BlockStyles: M(Ln),
1150
+ RepeatedBlock: M(Mn),
1151
+ ComponentRef: M(Hn),
1152
+ BlockWrapper: M(Un),
1153
+ DynamicDiv: M(On)
1148
1154
  },
1149
1155
  props: ["block", "context", "registeredComponents", "linkComponent"],
1150
1156
  data() {
@@ -1157,7 +1163,7 @@ const Bn = ({
1157
1163
  },
1158
1164
  mounted() {
1159
1165
  const e = this.processedBlock.id, t = this.processedBlock.animations;
1160
- t && e && In(
1166
+ t && e && Rn(
1161
1167
  t.map((n) => ({
1162
1168
  ...n,
1163
1169
  elementId: e
@@ -1168,14 +1174,14 @@ const Bn = ({
1168
1174
  },
1169
1175
  computed: {
1170
1176
  repeatItem() {
1171
- return xn({
1177
+ return Vn({
1172
1178
  block: this.block,
1173
1179
  context: this.context
1174
1180
  });
1175
1181
  },
1176
1182
  processedBlock() {
1177
1183
  var t;
1178
- return (t = this.block.repeat) != null && t.collection ? this.block : Ot({
1184
+ return (t = this.block.repeat) != null && t.collection ? this.block : Ut({
1179
1185
  block: this.block,
1180
1186
  localState: this.context.localState,
1181
1187
  rootState: this.context.rootState,
@@ -1185,7 +1191,7 @@ const Bn = ({
1185
1191
  });
1186
1192
  },
1187
1193
  blockComponent() {
1188
- return Bn({
1194
+ return An({
1189
1195
  block: this.processedBlock,
1190
1196
  registeredComponents: this.registeredComponents
1191
1197
  });
@@ -1211,11 +1217,11 @@ const Bn = ({
1211
1217
  blockChildren: this.processedBlock.children ?? [],
1212
1218
  componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
1213
1219
  componentOptions: {
1214
- ...Et(this.processedBlock),
1215
- ...Wn(this.blockComponent, this.processedBlock),
1216
- ...Nn(this.blockComponent, this.context),
1217
- ...An(this.blockComponent, this.linkComponent),
1218
- ...Vn(
1220
+ ...Bt(this.processedBlock),
1221
+ ...Fn(this.blockComponent, this.processedBlock),
1222
+ ...Dn(this.blockComponent, this.context),
1223
+ ...Wn(this.blockComponent, this.linkComponent),
1224
+ ...Nn(
1219
1225
  this.blockComponent,
1220
1226
  this.registeredComponents
1221
1227
  )
@@ -1230,7 +1236,7 @@ const Bn = ({
1230
1236
  }
1231
1237
  }
1232
1238
  });
1233
- function Mn(e, t, n, o, r, i) {
1239
+ function Kn(e, t, n, o, r, i) {
1234
1240
  var h;
1235
1241
  const s = k("BlockStyles"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), m = k("RepeatedBlock");
1236
1242
  return e.canShowBlock ? (c(), p(w, { key: 0 }, [
@@ -1295,10 +1301,10 @@ function Mn(e, t, n, o, r, i) {
1295
1301
  ], 64))
1296
1302
  ], 64)) : v("", !0);
1297
1303
  }
1298
- const be = /* @__PURE__ */ g(Hn, [["render", Mn]]), Ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1304
+ const ye = /* @__PURE__ */ g(jn, [["render", Kn]]), Ds = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1299
1305
  __proto__: null,
1300
- default: be
1301
- }, Symbol.toStringTag, { value: "Module" })), jn = b({
1306
+ default: ye
1307
+ }, Symbol.toStringTag, { value: "Module" })), qn = b({
1302
1308
  name: "builder-blocks-wrapper",
1303
1309
  props: [
1304
1310
  "blocks",
@@ -1356,7 +1362,7 @@ const be = /* @__PURE__ */ g(Hn, [["render", Mn]]), Ns = /* @__PURE__ */ Object.
1356
1362
  }
1357
1363
  }
1358
1364
  });
1359
- function Kn(e, t, n, o, r, i) {
1365
+ function zn(e, t, n, o, r, i) {
1360
1366
  return c(), y(j(e.BlocksWrapper), C({
1361
1367
  ref: "blocksWrapperRef",
1362
1368
  class: e.className + " component-1k2igrjdg3x",
@@ -1373,9 +1379,9 @@ function Kn(e, t, n, o, r, i) {
1373
1379
  _: 3
1374
1380
  }, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
1375
1381
  }
1376
- const qn = /* @__PURE__ */ g(jn, [["render", Kn], ["__scopeId", "data-v-ba2bc5c0"]]), zn = b({
1382
+ const Gn = /* @__PURE__ */ g(qn, [["render", zn], ["__scopeId", "data-v-ba2bc5c0"]]), Jn = b({
1377
1383
  name: "builder-blocks",
1378
- components: { BlocksWrapper: qn, Block: be },
1384
+ components: { BlocksWrapper: Gn, Block: ye },
1379
1385
  props: [
1380
1386
  "blocks",
1381
1387
  "parent",
@@ -1387,11 +1393,11 @@ const qn = /* @__PURE__ */ g(jn, [["render", Kn], ["__scopeId", "data-v-ba2bc5c0
1387
1393
  "registeredComponents"
1388
1394
  ],
1389
1395
  inject: {
1390
- builderContext: se.key,
1391
- componentsContext: xe.key
1396
+ builderContext: ae.key,
1397
+ componentsContext: Ve.key
1392
1398
  }
1393
1399
  });
1394
- function Gn(e, t, n, o, r, i) {
1400
+ function Yn(e, t, n, o, r, i) {
1395
1401
  var a, u, m, h;
1396
1402
  const s = k("Block"), l = k("BlocksWrapper");
1397
1403
  return c(), y(l, {
@@ -1418,21 +1424,21 @@ function Gn(e, t, n, o, r, i) {
1418
1424
  _: 1
1419
1425
  }, 8, ["blocks", "parent", "path", "styleProp", "classNameProp", "BlocksWrapper", "BlocksWrapperProps"]);
1420
1426
  }
1421
- const U = /* @__PURE__ */ g(zn, [["render", Gn]]), Jn = b({
1427
+ const U = /* @__PURE__ */ g(Jn, [["render", Yn]]), Xn = b({
1422
1428
  name: "dynamic-div",
1423
1429
  props: []
1424
1430
  });
1425
- function Yn(e, t, n, o, r, i) {
1431
+ function Qn(e, t, n, o, r, i) {
1426
1432
  return c(), p("div", null, [
1427
1433
  A(e.$slots, "default")
1428
1434
  ]);
1429
1435
  }
1430
- const Y = /* @__PURE__ */ g(Jn, [["render", Yn]]), Xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1436
+ const Y = /* @__PURE__ */ g(Xn, [["render", Qn]]), Zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1431
1437
  __proto__: null,
1432
1438
  default: Y
1433
- }, Symbol.toStringTag, { value: "Module" })), ge = b({
1439
+ }, Symbol.toStringTag, { value: "Module" })), ke = b({
1434
1440
  render() {
1435
- return Ee("style", {
1441
+ return Be("style", {
1436
1442
  innerHTML: this.styles,
1437
1443
  "data-id": this.id,
1438
1444
  nonce: this.nonce
@@ -1440,7 +1446,7 @@ const Y = /* @__PURE__ */ g(Jn, [["render", Yn]]), Xn = /* @__PURE__ */ Object.f
1440
1446
  },
1441
1447
  name: "inlined-styles",
1442
1448
  props: ["styles", "id", "nonce"]
1443
- }), tt = {
1449
+ }), ot = {
1444
1450
  small: {
1445
1451
  min: 320,
1446
1452
  default: 321,
@@ -1456,11 +1462,11 @@ const Y = /* @__PURE__ */ g(Jn, [["render", Yn]]), Xn = /* @__PURE__ */ Object.f
1456
1462
  default: 991,
1457
1463
  max: 1200
1458
1464
  }
1459
- }, Fs = (e, t = tt) => `@media (max-width: ${t[e].max}px)`, Qn = ({
1465
+ }, Os = (e, t = ot) => `@media (max-width: ${t[e].max}px)`, _n = ({
1460
1466
  small: e,
1461
1467
  medium: t
1462
1468
  }) => {
1463
- const n = ce(tt);
1469
+ const n = ue(ot);
1464
1470
  if (!e || !t)
1465
1471
  return n;
1466
1472
  const o = Math.floor(e / 2);
@@ -1482,11 +1488,11 @@ const Y = /* @__PURE__ */ g(Jn, [["render", Yn]]), Xn = /* @__PURE__ */ Object.f
1482
1488
  min: i,
1483
1489
  default: i + 1
1484
1490
  }, n;
1485
- }, Zn = (e) => `builder-columns ${e}-breakpoints`, _n = b({
1491
+ }, eo = (e) => `builder-columns ${e}-breakpoints`, to = b({
1486
1492
  name: "builder-columns",
1487
1493
  components: {
1488
- InlinedStyles: ge,
1489
- DynamicRenderer: de,
1494
+ InlinedStyles: ke,
1495
+ DynamicRenderer: pe,
1490
1496
  Blocks: U,
1491
1497
  DynamicDiv: Y
1492
1498
  },
@@ -1501,7 +1507,7 @@ const Y = /* @__PURE__ */ g(Jn, [["render", Yn]]), Xn = /* @__PURE__ */ Object.f
1501
1507
  "builderComponents"
1502
1508
  ],
1503
1509
  data() {
1504
- return { TARGET: P, getColumnsClass: Zn };
1510
+ return { TARGET: P, getColumnsClass: eo };
1505
1511
  },
1506
1512
  computed: {
1507
1513
  gutterSize() {
@@ -1580,7 +1586,7 @@ const Y = /* @__PURE__ */ g(Jn, [["render", Yn]]), Xn = /* @__PURE__ */ Object.f
1580
1586
  },
1581
1587
  getWidthForBreakpointSize(e) {
1582
1588
  var n, o;
1583
- return Qn(
1589
+ return _n(
1584
1590
  ((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
1585
1591
  )[e].max;
1586
1592
  },
@@ -1617,13 +1623,13 @@ const Y = /* @__PURE__ */ g(Jn, [["render", Yn]]), Xn = /* @__PURE__ */ Object.f
1617
1623
  ...e.link ? {
1618
1624
  href: e.link
1619
1625
  } : {},
1620
- [Q()]: "builder-column",
1621
- style: et(this.columnCssVars(t))
1626
+ [Z()]: "builder-column",
1627
+ style: nt(this.columnCssVars(t))
1622
1628
  };
1623
1629
  }
1624
1630
  }
1625
1631
  });
1626
- function eo(e, t, n, o, r, i) {
1632
+ function no(e, t, n, o, r, i) {
1627
1633
  var u;
1628
1634
  const s = k("InlinedStyles"), l = k("Blocks"), a = k("DynamicRenderer");
1629
1635
  return c(), p("div", C({
@@ -1659,47 +1665,47 @@ function eo(e, t, n, o, r, i) {
1659
1665
  }, 1032, ["TagName", "attributes"]))), 128))
1660
1666
  ], 16);
1661
1667
  }
1662
- const to = /* @__PURE__ */ g(_n, [["render", eo], ["__scopeId", "data-v-3354f136"]]), no = b({
1668
+ const oo = /* @__PURE__ */ g(to, [["render", no], ["__scopeId", "data-v-3354f136"]]), ro = b({
1663
1669
  name: "builder-fragment-component",
1664
1670
  props: []
1665
1671
  });
1666
- function oo(e, t, n, o, r, i) {
1672
+ function so(e, t, n, o, r, i) {
1667
1673
  return c(), p("span", null, [
1668
1674
  A(e.$slots, "default")
1669
1675
  ]);
1670
1676
  }
1671
- const ro = /* @__PURE__ */ g(no, [["render", oo]]);
1672
- function we(e) {
1677
+ const io = /* @__PURE__ */ g(ro, [["render", so]]);
1678
+ function $e(e) {
1673
1679
  return e.replace(/http(s)?:/, "");
1674
1680
  }
1675
- function so(e = "", t, n) {
1681
+ function ao(e = "", t, n) {
1676
1682
  const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
1677
1683
  return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
1678
1684
  }
1679
- function io(e, t) {
1685
+ function lo(e, t) {
1680
1686
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1681
1687
  return e;
1682
1688
  if (t === "master")
1683
- return we(e);
1689
+ return $e(e);
1684
1690
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1685
1691
  if (n) {
1686
1692
  const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
1687
- return we(`${o[0]}_${i}${r}`);
1693
+ return $e(`${o[0]}_${i}${r}`);
1688
1694
  }
1689
1695
  return null;
1690
1696
  }
1691
- function ee(e) {
1697
+ function ne(e) {
1692
1698
  if (!e)
1693
1699
  return e;
1694
1700
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1695
1701
  if (e.match(/builder\.io/)) {
1696
1702
  let n = e;
1697
1703
  const o = Number(e.split("?width=")[1]);
1698
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${so(e, "width", r)} ${r}w`).concat([n]).join(", ");
1704
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${ao(e, "width", r)} ${r}w`).concat([n]).join(", ");
1699
1705
  }
1700
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [io(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1706
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [lo(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1701
1707
  }
1702
- const ao = b({
1708
+ const co = b({
1703
1709
  name: "builder-image",
1704
1710
  props: [
1705
1711
  "image",
@@ -1729,10 +1735,10 @@ const ao = b({
1729
1735
  if (!this.noWebp) {
1730
1736
  if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
1731
1737
  if (!this.srcset.includes(this.image.split("?")[0]))
1732
- return console.debug("Removed given srcset"), ee(t);
1738
+ return console.debug("Removed given srcset"), ne(t);
1733
1739
  } else if (this.image && !this.srcset)
1734
- return ee(t);
1735
- return ee(t);
1740
+ return ne(t);
1741
+ return ne(t);
1736
1742
  }
1737
1743
  },
1738
1744
  webpSrcSet() {
@@ -1750,11 +1756,11 @@ const ao = b({
1750
1756
  return this.aspectRatio ? e : void 0;
1751
1757
  }
1752
1758
  }
1753
- }), lo = ["srcset"], co = ["loading", "fetchpriority", "alt", "role", "src", "srcset", "sizes"], uo = {
1759
+ }), uo = ["srcset"], po = ["loading", "fetchpriority", "alt", "role", "src", "srcset", "sizes"], mo = {
1754
1760
  key: 2,
1755
1761
  class: "div-29wpyomtntv-2"
1756
1762
  };
1757
- function po(e, t, n, o, r, i) {
1763
+ function ho(e, t, n, o, r, i) {
1758
1764
  var s, l, a, u, m, h;
1759
1765
  return c(), p(w, null, [
1760
1766
  q("picture", null, [
@@ -1762,7 +1768,7 @@ function po(e, t, n, o, r, i) {
1762
1768
  key: 0,
1763
1769
  type: "image/webp",
1764
1770
  srcset: e.webpSrcSet
1765
- }, null, 8, lo)) : v("", !0),
1771
+ }, null, 8, uo)) : v("", !0),
1766
1772
  q("img", {
1767
1773
  loading: e.highPriority ? "eager" : "lazy",
1768
1774
  fetchpriority: e.highPriority ? "high" : "auto",
@@ -1779,7 +1785,7 @@ function po(e, t, n, o, r, i) {
1779
1785
  src: e.image,
1780
1786
  srcset: e.srcSetToUse,
1781
1787
  sizes: e.sizes
1782
- }, null, 14, co)
1788
+ }, null, 14, po)
1783
1789
  ]),
1784
1790
  e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (c(), p("div", {
1785
1791
  key: 0,
@@ -1789,19 +1795,19 @@ function po(e, t, n, o, r, i) {
1789
1795
  })
1790
1796
  }, null, 4)) : v("", !0),
1791
1797
  (u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? A(e.$slots, "default", { key: 1 }, void 0, !0) : v("", !0),
1792
- !e.fitContent && ((h = (m = e.builderBlock) == null ? void 0 : m.children) != null && h.length) ? (c(), p("div", uo, [
1798
+ !e.fitContent && ((h = (m = e.builderBlock) == null ? void 0 : m.children) != null && h.length) ? (c(), p("div", mo, [
1793
1799
  A(e.$slots, "default", {}, void 0, !0)
1794
1800
  ])) : v("", !0)
1795
1801
  ], 64);
1796
1802
  }
1797
- const mo = /* @__PURE__ */ g(ao, [["render", po], ["__scopeId", "data-v-77f8a6c4"]]), ho = b({
1803
+ const fo = /* @__PURE__ */ g(co, [["render", ho], ["__scopeId", "data-v-77f8a6c4"]]), bo = b({
1798
1804
  name: "builder-section-component",
1799
1805
  props: ["attributes", "maxWidth"],
1800
1806
  data() {
1801
1807
  return { filterAttrs: W };
1802
1808
  }
1803
1809
  });
1804
- function fo(e, t, n, o, r, i) {
1810
+ function go(e, t, n, o, r, i) {
1805
1811
  return c(), p("section", C({
1806
1812
  style: {
1807
1813
  width: "100%",
@@ -1819,7 +1825,7 @@ function fo(e, t, n, o, r, i) {
1819
1825
  A(e.$slots, "default")
1820
1826
  ], 16);
1821
1827
  }
1822
- const bo = /* @__PURE__ */ g(ho, [["render", fo]]), te = {
1828
+ const yo = /* @__PURE__ */ g(bo, [["render", go]]), oe = {
1823
1829
  "@type": "@builder.io/sdk:Element",
1824
1830
  layerName: "Accordion item title",
1825
1831
  responsiveStyles: {
@@ -1848,7 +1854,7 @@ const bo = /* @__PURE__ */ g(ho, [["render", fo]]), te = {
1848
1854
  }
1849
1855
  }
1850
1856
  }]
1851
- }, ne = {
1857
+ }, re = {
1852
1858
  "@type": "@builder.io/sdk:Element",
1853
1859
  layerName: "Accordion item detail",
1854
1860
  responsiveStyles: {
@@ -1879,7 +1885,7 @@ const bo = /* @__PURE__ */ g(ho, [["render", fo]]), te = {
1879
1885
  }
1880
1886
  }
1881
1887
  }]
1882
- }, go = {
1888
+ }, ko = {
1883
1889
  name: "Builder:Accordion",
1884
1890
  canHaveChildren: !0,
1885
1891
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -1896,19 +1902,19 @@ const bo = /* @__PURE__ */ g(ho, [["render", fo]]), te = {
1896
1902
  name: "title",
1897
1903
  type: "uiBlocks",
1898
1904
  hideFromUI: !0,
1899
- defaultValue: [te]
1905
+ defaultValue: [oe]
1900
1906
  }, {
1901
1907
  name: "detail",
1902
1908
  type: "uiBlocks",
1903
1909
  hideFromUI: !0,
1904
- defaultValue: [ne]
1910
+ defaultValue: [re]
1905
1911
  }],
1906
1912
  defaultValue: [{
1907
- title: [te],
1908
- detail: [ne]
1913
+ title: [oe],
1914
+ detail: [re]
1909
1915
  }, {
1910
- title: [te],
1911
- detail: [ne]
1916
+ title: [oe],
1917
+ detail: [re]
1912
1918
  }],
1913
1919
  showIf: (e) => !e.get("useChildrenForItems")
1914
1920
  }, {
@@ -1943,7 +1949,7 @@ const bo = /* @__PURE__ */ g(ho, [["render", fo]]), te = {
1943
1949
  builderComponents: !0,
1944
1950
  builderLinkComponent: !0
1945
1951
  }
1946
- }, yo = (e) => e.toString(), ko = b({
1952
+ }, vo = (e) => e.toString(), So = b({
1947
1953
  name: "builder-accordion",
1948
1954
  components: { Blocks: U },
1949
1955
  props: [
@@ -1957,7 +1963,7 @@ const bo = /* @__PURE__ */ g(ho, [["render", fo]]), te = {
1957
1963
  "builderLinkComponent"
1958
1964
  ],
1959
1965
  data() {
1960
- return { open: [], convertOrderNumberToString: yo };
1966
+ return { open: [], convertOrderNumberToString: vo };
1961
1967
  },
1962
1968
  computed: {
1963
1969
  onlyOneAtATime() {
@@ -2038,8 +2044,8 @@ const bo = /* @__PURE__ */ g(ho, [["render", fo]]), te = {
2038
2044
  this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
2039
2045
  }
2040
2046
  }
2041
- }), vo = ["data-index", "onClick"];
2042
- function So(e, t, n, o, r, i) {
2047
+ }), Co = ["data-index", "onClick"];
2048
+ function To(e, t, n, o, r, i) {
2043
2049
  const s = k("Blocks");
2044
2050
  return c(), p("div", {
2045
2051
  class: "builder-accordion",
@@ -2066,7 +2072,7 @@ function So(e, t, n, o, r, i) {
2066
2072
  registeredComponents: e.builderComponents,
2067
2073
  linkComponent: e.builderLinkComponent
2068
2074
  }, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
2069
- ], 14, vo),
2075
+ ], 14, Co),
2070
2076
  e.open.includes(a) ? (c(), p("div", {
2071
2077
  key: 0,
2072
2078
  class: z(e.getAccordionDetailClassName(a)),
@@ -2084,7 +2090,7 @@ function So(e, t, n, o, r, i) {
2084
2090
  ], 64))), 128))
2085
2091
  ], 4);
2086
2092
  }
2087
- const Co = /* @__PURE__ */ g(ko, [["render", So]]), To = {
2093
+ const wo = /* @__PURE__ */ g(So, [["render", To]]), Io = {
2088
2094
  name: "Core:Button",
2089
2095
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
2090
2096
  defaultStyles: {
@@ -2120,7 +2126,7 @@ const Co = /* @__PURE__ */ g(ko, [["render", So]]), To = {
2120
2126
  shouldReceiveBuilderProps: {
2121
2127
  builderLinkComponent: !0
2122
2128
  }
2123
- }, wo = {
2129
+ }, $o = {
2124
2130
  // TODO: ways to statically preprocess JSON for references, functions, etc
2125
2131
  name: "Columns",
2126
2132
  isRSC: !0,
@@ -2327,13 +2333,13 @@ const Co = /* @__PURE__ */ g(ko, [["render", So]]), To = {
2327
2333
  builderComponents: !0,
2328
2334
  builderLinkComponent: !0
2329
2335
  }
2330
- }, Io = {
2336
+ }, Ro = {
2331
2337
  name: "Fragment",
2332
2338
  static: !0,
2333
2339
  hidden: !0,
2334
2340
  canHaveChildren: !0,
2335
2341
  noWrap: !0
2336
- }, $o = {
2342
+ }, Eo = {
2337
2343
  name: "Image",
2338
2344
  static: !0,
2339
2345
  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",
@@ -2441,7 +2447,7 @@ const Co = /* @__PURE__ */ g(ko, [["render", So]]), To = {
2441
2447
  shouldReceiveBuilderProps: {
2442
2448
  builderBlock: !0
2443
2449
  }
2444
- }, Ro = {
2450
+ }, Po = {
2445
2451
  name: "Core:Section",
2446
2452
  static: !0,
2447
2453
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -2480,7 +2486,7 @@ const Co = /* @__PURE__ */ g(ko, [["render", So]]), To = {
2480
2486
  }
2481
2487
  }
2482
2488
  }]
2483
- }, Eo = {
2489
+ }, Bo = {
2484
2490
  name: "Slot",
2485
2491
  isRSC: !0,
2486
2492
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -2497,12 +2503,12 @@ const Co = /* @__PURE__ */ g(ko, [["render", So]]), To = {
2497
2503
  builderContext: !0,
2498
2504
  builderComponents: !0
2499
2505
  }
2500
- }, Po = b({
2506
+ }, xo = b({
2501
2507
  name: "builder-slot",
2502
2508
  components: { Blocks: U },
2503
2509
  props: ["builderContext", "name", "builderComponents"]
2504
2510
  });
2505
- function Bo(e, t, n, o, r, i) {
2511
+ function Ao(e, t, n, o, r, i) {
2506
2512
  var l, a, u;
2507
2513
  const s = k("Blocks");
2508
2514
  return c(), p("div", C(
@@ -2522,7 +2528,7 @@ function Bo(e, t, n, o, r, i) {
2522
2528
  }, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
2523
2529
  ], 16);
2524
2530
  }
2525
- const xo = /* @__PURE__ */ g(Po, [["render", Bo]]), Ao = {
2531
+ const Vo = /* @__PURE__ */ g(xo, [["render", Ao]]), Wo = {
2526
2532
  name: "Symbol",
2527
2533
  noWrap: !0,
2528
2534
  static: !0,
@@ -2561,7 +2567,7 @@ const xo = /* @__PURE__ */ g(Po, [["render", Bo]]), Ao = {
2561
2567
  builderComponents: !0,
2562
2568
  builderLinkComponent: !0
2563
2569
  }
2564
- }, oe = {
2570
+ }, se = {
2565
2571
  "@type": "@builder.io/sdk:Element",
2566
2572
  responsiveStyles: {
2567
2573
  large: {
@@ -2583,7 +2589,7 @@ const xo = /* @__PURE__ */ g(Po, [["render", Bo]]), Ao = {
2583
2589
  text: "New tab"
2584
2590
  }
2585
2591
  }
2586
- }, re = {
2592
+ }, ie = {
2587
2593
  "@type": "@builder.io/sdk:Element",
2588
2594
  responsiveStyles: {
2589
2595
  large: {
@@ -2599,7 +2605,7 @@ const xo = /* @__PURE__ */ g(Po, [["render", Bo]]), Ao = {
2599
2605
  text: "New tab content "
2600
2606
  }
2601
2607
  }
2602
- }, Vo = {
2608
+ }, No = {
2603
2609
  name: "Builder: Tabs",
2604
2610
  inputs: [{
2605
2611
  name: "tabs",
@@ -2609,16 +2615,16 @@ const xo = /* @__PURE__ */ g(Po, [["render", Bo]]), Ao = {
2609
2615
  name: "label",
2610
2616
  type: "uiBlocks",
2611
2617
  hideFromUI: !0,
2612
- defaultValue: [oe]
2618
+ defaultValue: [se]
2613
2619
  }, {
2614
2620
  name: "content",
2615
2621
  type: "uiBlocks",
2616
2622
  hideFromUI: !0,
2617
- defaultValue: [re]
2623
+ defaultValue: [ie]
2618
2624
  }],
2619
2625
  defaultValue: [{
2620
2626
  label: [{
2621
- ...oe,
2627
+ ...se,
2622
2628
  component: {
2623
2629
  name: "Text",
2624
2630
  options: {
@@ -2627,7 +2633,7 @@ const xo = /* @__PURE__ */ g(Po, [["render", Bo]]), Ao = {
2627
2633
  }
2628
2634
  }],
2629
2635
  content: [{
2630
- ...re,
2636
+ ...ie,
2631
2637
  component: {
2632
2638
  name: "Text",
2633
2639
  options: {
@@ -2637,7 +2643,7 @@ const xo = /* @__PURE__ */ g(Po, [["render", Bo]]), Ao = {
2637
2643
  }]
2638
2644
  }, {
2639
2645
  label: [{
2640
- ...oe,
2646
+ ...se,
2641
2647
  component: {
2642
2648
  name: "Text",
2643
2649
  options: {
@@ -2646,7 +2652,7 @@ const xo = /* @__PURE__ */ g(Po, [["render", Bo]]), Ao = {
2646
2652
  }
2647
2653
  }],
2648
2654
  content: [{
2649
- ...re,
2655
+ ...ie,
2650
2656
  component: {
2651
2657
  name: "Text",
2652
2658
  options: {
@@ -2702,7 +2708,7 @@ const xo = /* @__PURE__ */ g(Po, [["render", Bo]]), Ao = {
2702
2708
  builderComponents: !0,
2703
2709
  builderLinkComponent: !0
2704
2710
  }
2705
- }, Wo = b({
2711
+ }, Fo = b({
2706
2712
  name: "builder-tabs",
2707
2713
  components: { Blocks: U },
2708
2714
  props: [
@@ -2727,8 +2733,8 @@ const xo = /* @__PURE__ */ g(Po, [["render", Bo]]), Ao = {
2727
2733
  e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
2728
2734
  }
2729
2735
  }
2730
- }), No = ["onClick"], Fo = { key: 0 };
2731
- function Do(e, t, n, o, r, i) {
2736
+ }), Do = ["onClick"], Oo = { key: 0 };
2737
+ function Lo(e, t, n, o, r, i) {
2732
2738
  const s = k("Blocks");
2733
2739
  return c(), p("div", null, [
2734
2740
  q("div", {
@@ -2756,9 +2762,9 @@ function Do(e, t, n, o, r, i) {
2756
2762
  registeredComponents: e.builderComponents,
2757
2763
  linkComponent: e.builderLinkComponent
2758
2764
  }, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
2759
- ], 14, No))), 128))
2765
+ ], 14, Do))), 128))
2760
2766
  ], 4),
2761
- e.activeTabContent(e.activeTab) ? (c(), p("div", Fo, [
2767
+ e.activeTabContent(e.activeTab) ? (c(), p("div", Oo, [
2762
2768
  $(s, {
2763
2769
  parent: e.builderBlock.id,
2764
2770
  path: `tabs.${e.activeTab}.content`,
@@ -2770,7 +2776,7 @@ function Do(e, t, n, o, r, i) {
2770
2776
  ])) : v("", !0)
2771
2777
  ]);
2772
2778
  }
2773
- const Oo = /* @__PURE__ */ g(Wo, [["render", Do]]), Lo = {
2779
+ const Uo = /* @__PURE__ */ g(Fo, [["render", Lo]]), Ho = {
2774
2780
  shouldReceiveBuilderProps: {
2775
2781
  builderBlock: !1,
2776
2782
  builderContext: !0
@@ -2792,7 +2798,7 @@ const Oo = /* @__PURE__ */ g(Wo, [["render", Do]]), Lo = {
2792
2798
  height: "auto",
2793
2799
  textAlign: "center"
2794
2800
  }
2795
- }, Uo = b({
2801
+ }, Mo = b({
2796
2802
  name: "builder-text",
2797
2803
  props: ["builderContext", "text"],
2798
2804
  computed: {
@@ -2816,17 +2822,17 @@ const Oo = /* @__PURE__ */ g(Wo, [["render", Do]]), Lo = {
2816
2822
  );
2817
2823
  }
2818
2824
  }
2819
- }), Ho = ["innerHTML"];
2820
- function Mo(e, t, n, o, r, i) {
2825
+ }), jo = ["innerHTML"];
2826
+ function Ko(e, t, n, o, r, i) {
2821
2827
  return c(), p("div", {
2822
2828
  class: "builder-text",
2823
2829
  innerHTML: e.processedText,
2824
2830
  style: {
2825
2831
  outline: "none"
2826
2832
  }
2827
- }, null, 8, Ho);
2833
+ }, null, 8, jo);
2828
2834
  }
2829
- const jo = /* @__PURE__ */ g(Uo, [["render", Mo]]), Ko = {
2835
+ const qo = /* @__PURE__ */ g(Mo, [["render", Ko]]), zo = {
2830
2836
  name: "Custom Code",
2831
2837
  static: !0,
2832
2838
  requiredPermissions: ["editCode"],
@@ -2848,7 +2854,7 @@ const jo = /* @__PURE__ */ g(Uo, [["render", Mo]]), Ko = {
2848
2854
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
2849
2855
  advanced: !0
2850
2856
  }]
2851
- }, qo = b({
2857
+ }, Go = b({
2852
2858
  name: "builder-custom-code",
2853
2859
  props: ["replaceNodes", "code"],
2854
2860
  data() {
@@ -2882,15 +2888,15 @@ const jo = /* @__PURE__ */ g(Uo, [["render", Mo]]), Ko = {
2882
2888
  }
2883
2889
  }
2884
2890
  }
2885
- }), zo = ["innerHTML"];
2886
- function Go(e, t, n, o, r, i) {
2891
+ }), Jo = ["innerHTML"];
2892
+ function Yo(e, t, n, o, r, i) {
2887
2893
  return c(), p("div", {
2888
2894
  ref: "elementRef",
2889
2895
  class: z("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
2890
2896
  innerHTML: e.code
2891
- }, null, 10, zo);
2897
+ }, null, 10, Jo);
2892
2898
  }
2893
- const Jo = /* @__PURE__ */ g(qo, [["render", Go]]), Yo = {
2899
+ const Xo = /* @__PURE__ */ g(Go, [["render", Yo]]), Qo = {
2894
2900
  name: "Embed",
2895
2901
  static: !0,
2896
2902
  inputs: [{
@@ -2905,7 +2911,7 @@ const Jo = /* @__PURE__ */ g(qo, [["render", Go]]), Yo = {
2905
2911
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2906
2912
  hideFromUI: !0
2907
2913
  }]
2908
- }, Xo = ["text/javascript", "application/javascript", "application/ecmascript"], Qo = (e) => Xo.includes(e.type), Zo = b({
2914
+ }, Zo = ["text/javascript", "application/javascript", "application/ecmascript"], _o = (e) => Zo.includes(e.type), er = b({
2909
2915
  name: "builder-embed",
2910
2916
  props: ["content"],
2911
2917
  data() {
@@ -2938,7 +2944,7 @@ const Jo = /* @__PURE__ */ g(qo, [["render", Go]]), Yo = {
2938
2944
  this.scriptsInserted.push(n.src);
2939
2945
  const o = document.createElement("script");
2940
2946
  o.async = !0, o.src = n.src, document.head.appendChild(o);
2941
- } else if (Qo(n) && !this.scriptsRun.includes(n.innerText))
2947
+ } else if (_o(n) && !this.scriptsRun.includes(n.innerText))
2942
2948
  try {
2943
2949
  this.scriptsRun.push(n.innerText), new Function(n.innerText)();
2944
2950
  } catch (o) {
@@ -2947,15 +2953,15 @@ const Jo = /* @__PURE__ */ g(qo, [["render", Go]]), Yo = {
2947
2953
  }
2948
2954
  }
2949
2955
  }
2950
- }), _o = ["innerHTML"];
2951
- function er(e, t, n, o, r, i) {
2956
+ }), tr = ["innerHTML"];
2957
+ function nr(e, t, n, o, r, i) {
2952
2958
  return c(), p("div", {
2953
2959
  class: "builder-embed",
2954
2960
  ref: "elem",
2955
2961
  innerHTML: e.content
2956
- }, null, 8, _o);
2962
+ }, null, 8, tr);
2957
2963
  }
2958
- const tr = /* @__PURE__ */ g(Zo, [["render", er]]), nr = {
2964
+ const or = /* @__PURE__ */ g(er, [["render", nr]]), rr = {
2959
2965
  name: "Form:Form",
2960
2966
  // editableTags: ['builder-form-error']
2961
2967
  defaults: {
@@ -3192,12 +3198,12 @@ const tr = /* @__PURE__ */ g(Zo, [["render", er]]), nr = {
3192
3198
  builderComponents: !0,
3193
3199
  builderLinkComponent: !0
3194
3200
  }
3195
- }, or = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], rr = () => {
3201
+ }, sr = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], ir = () => {
3196
3202
  const e = process.env.NODE_ENV || "production";
3197
- return or.includes(e) ? e : "production";
3198
- }, sr = b({
3203
+ return sr.includes(e) ? e : "production";
3204
+ }, ar = b({
3199
3205
  name: "builder-form-component",
3200
- components: { Block: be, Blocks: U },
3206
+ components: { Block: ye, Blocks: U },
3201
3207
  props: [
3202
3208
  "builderContext",
3203
3209
  "previewState",
@@ -3286,7 +3292,7 @@ const tr = /* @__PURE__ */ g(Zo, [["render", er]]), nr = {
3286
3292
  else {
3287
3293
  const d = {};
3288
3294
  Array.from(l).forEach(({ value: f, key: S }) => {
3289
- Pe(d, S, f);
3295
+ xe(d, S, f);
3290
3296
  }), i = JSON.stringify(d);
3291
3297
  }
3292
3298
  a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
@@ -3298,10 +3304,10 @@ const tr = /* @__PURE__ */ g(Zo, [["render", er]]), nr = {
3298
3304
  if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(u), u.defaultPrevented))
3299
3305
  return;
3300
3306
  this.formState = "sending";
3301
- const m = `${rr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
3307
+ const m = `${ir() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
3302
3308
  this.sendSubmissionsToEmail || ""
3303
3309
  )}&name=${encodeURIComponent(this.name || "")}`, h = this.sendSubmissionsTo === "email" ? m : this.action;
3304
- ue(h), fetch(h, {
3310
+ me(h), fetch(h, {
3305
3311
  body: i,
3306
3312
  headers: r,
3307
3313
  method: this.method || "post"
@@ -3310,7 +3316,7 @@ const tr = /* @__PURE__ */ g(Zo, [["render", er]]), nr = {
3310
3316
  let f;
3311
3317
  const S = d.headers.get("content-type");
3312
3318
  if (S && S.indexOf("application/json") !== -1 ? f = await d.json() : f = await d.text(), !d.ok && this.errorMessagePath) {
3313
- let T = Ae(f, this.errorMessagePath);
3319
+ let T = We(f, this.errorMessagePath);
3314
3320
  T && (typeof T != "string" && (T = JSON.stringify(T)), this.formErrorMessage = T, this.mergeNewRootState({
3315
3321
  formErrorMessage: T
3316
3322
  }));
@@ -3351,11 +3357,11 @@ const tr = /* @__PURE__ */ g(Zo, [["render", er]]), nr = {
3351
3357
  }
3352
3358
  }
3353
3359
  }
3354
- }), ir = ["validate", "action", "method", "name"], ar = {
3360
+ }), lr = ["validate", "action", "method", "name"], cr = {
3355
3361
  key: 3,
3356
3362
  class: "builder-form-error-text pre-3q96myty4lk"
3357
3363
  };
3358
- function lr(e, t, n, o, r, i) {
3364
+ function dr(e, t, n, o, r, i) {
3359
3365
  var a;
3360
3366
  const s = k("Block"), l = k("Blocks");
3361
3367
  return c(), p("form", C({
@@ -3385,16 +3391,16 @@ function lr(e, t, n, o, r, i) {
3385
3391
  blocks: e.sendingMessage,
3386
3392
  context: e.builderContext
3387
3393
  }, null, 8, ["blocks", "context"])) : v("", !0),
3388
- e.submissionState() === "error" && e.responseData ? (c(), p("pre", ar, _(JSON.stringify(e.responseData, null, 2)), 1)) : v("", !0),
3394
+ e.submissionState() === "error" && e.responseData ? (c(), p("pre", cr, ee(JSON.stringify(e.responseData, null, 2)), 1)) : v("", !0),
3389
3395
  e.submissionState() === "success" ? (c(), y(l, {
3390
3396
  key: 4,
3391
3397
  path: "successMessage",
3392
3398
  blocks: e.successMessage,
3393
3399
  context: e.builderContext
3394
3400
  }, null, 8, ["blocks", "context"])) : v("", !0)
3395
- ], 16, ir);
3401
+ ], 16, lr);
3396
3402
  }
3397
- const cr = /* @__PURE__ */ g(sr, [["render", lr], ["__scopeId", "data-v-cd94d6c1"]]), dr = {
3403
+ const ur = /* @__PURE__ */ g(ar, [["render", dr], ["__scopeId", "data-v-cd94d6c1"]]), pr = {
3398
3404
  name: "Form:Input",
3399
3405
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
3400
3406
  inputs: [
@@ -3445,7 +3451,7 @@ const cr = /* @__PURE__ */ g(sr, [["render", lr], ["__scopeId", "data-v-cd94d6c1
3445
3451
  borderStyle: "solid",
3446
3452
  borderColor: "#ccc"
3447
3453
  }
3448
- }, ur = b({
3454
+ }, mr = b({
3449
3455
  name: "builder-form-input-component",
3450
3456
  props: [
3451
3457
  "attributes",
@@ -3459,8 +3465,8 @@ const cr = /* @__PURE__ */ g(sr, [["render", lr], ["__scopeId", "data-v-cd94d6c1
3459
3465
  data() {
3460
3466
  return { isEditing: B, filterAttrs: W };
3461
3467
  }
3462
- }), pr = ["placeholder", "type", "name", "value", "defaultValue", "required"];
3463
- function mr(e, t, n, o, r, i) {
3468
+ }), hr = ["placeholder", "type", "name", "value", "defaultValue", "required"];
3469
+ function fr(e, t, n, o, r, i) {
3464
3470
  return c(), p("input", C({
3465
3471
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
3466
3472
  placeholder: e.placeholder,
@@ -3469,9 +3475,9 @@ function mr(e, t, n, o, r, i) {
3469
3475
  value: e.value,
3470
3476
  defaultValue: e.defaultValue,
3471
3477
  required: e.required
3472
- }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, pr);
3478
+ }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, hr);
3473
3479
  }
3474
- const hr = /* @__PURE__ */ g(ur, [["render", mr]]), fr = {
3480
+ const br = /* @__PURE__ */ g(mr, [["render", fr]]), gr = {
3475
3481
  name: "Form:Select",
3476
3482
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
3477
3483
  defaultStyles: {
@@ -3513,14 +3519,14 @@ const hr = /* @__PURE__ */ g(ur, [["render", mr]]), fr = {
3513
3519
  }],
3514
3520
  static: !0,
3515
3521
  noWrap: !0
3516
- }, br = b({
3522
+ }, yr = b({
3517
3523
  name: "builder-select-component",
3518
3524
  props: ["attributes", "value", "defaultValue", "name", "required", "options"],
3519
3525
  data() {
3520
3526
  return { isEditing: B, filterAttrs: W };
3521
3527
  }
3522
- }), gr = ["value", "defaultValue", "name", "required"], yr = ["value"];
3523
- function kr(e, t, n, o, r, i) {
3528
+ }), kr = ["value", "defaultValue", "name", "required"], vr = ["value"];
3529
+ function Sr(e, t, n, o, r, i) {
3524
3530
  return c(), p("select", C({
3525
3531
  value: e.value,
3526
3532
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
@@ -3531,10 +3537,10 @@ function kr(e, t, n, o, r, i) {
3531
3537
  (c(!0), p(w, null, V(e.options, (s, l) => (c(), p("option", {
3532
3538
  key: `${s.name}-${l}`,
3533
3539
  value: s.value
3534
- }, _(s.name || s.value), 9, yr))), 128))
3535
- ], 16, gr);
3540
+ }, ee(s.name || s.value), 9, vr))), 128))
3541
+ ], 16, kr);
3536
3542
  }
3537
- const vr = /* @__PURE__ */ g(br, [["render", kr]]), Sr = {
3543
+ const Cr = /* @__PURE__ */ g(yr, [["render", Sr]]), Tr = {
3538
3544
  name: "Form:SubmitButton",
3539
3545
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
3540
3546
  defaultStyles: {
@@ -3559,17 +3565,17 @@ const vr = /* @__PURE__ */ g(br, [["render", kr]]), Sr = {
3559
3565
  // that only shows if advanced setting is flipped
3560
3566
  // TODO: defaultChildren
3561
3567
  // canHaveChildren: true,
3562
- }, Cr = b({
3568
+ }, wr = b({
3563
3569
  name: "builder-submit-button",
3564
3570
  props: ["attributes", "text"],
3565
3571
  data() {
3566
3572
  return { filterAttrs: W };
3567
3573
  }
3568
3574
  });
3569
- function Tr(e, t, n, o, r, i) {
3570
- return c(), p("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), _(e.text), 17);
3575
+ function Ir(e, t, n, o, r, i) {
3576
+ return c(), p("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ee(e.text), 17);
3571
3577
  }
3572
- const wr = /* @__PURE__ */ g(Cr, [["render", Tr]]), Ir = {
3578
+ const $r = /* @__PURE__ */ g(wr, [["render", Ir]]), Rr = {
3573
3579
  name: "Form:TextArea",
3574
3580
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
3575
3581
  inputs: [{
@@ -3605,7 +3611,7 @@ const wr = /* @__PURE__ */ g(Cr, [["render", Tr]]), Ir = {
3605
3611
  },
3606
3612
  static: !0,
3607
3613
  noWrap: !0
3608
- }, $r = b({
3614
+ }, Er = b({
3609
3615
  name: "builder-textarea",
3610
3616
  props: [
3611
3617
  "attributes",
@@ -3618,17 +3624,17 @@ const wr = /* @__PURE__ */ g(Cr, [["render", Tr]]), Ir = {
3618
3624
  data() {
3619
3625
  return { filterAttrs: W };
3620
3626
  }
3621
- }), Rr = ["placeholder", "name", "value", "defaultValue", "required"];
3622
- function Er(e, t, n, o, r, i) {
3627
+ }), Pr = ["placeholder", "name", "value", "defaultValue", "required"];
3628
+ function Br(e, t, n, o, r, i) {
3623
3629
  return c(), p("textarea", C({
3624
3630
  placeholder: e.placeholder,
3625
3631
  name: e.name,
3626
3632
  value: e.value,
3627
3633
  defaultValue: e.defaultValue,
3628
3634
  required: e.required
3629
- }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Rr);
3635
+ }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Pr);
3630
3636
  }
3631
- const Pr = /* @__PURE__ */ g($r, [["render", Er]]), Br = {
3637
+ const xr = /* @__PURE__ */ g(Er, [["render", Br]]), Ar = {
3632
3638
  // friendlyName?
3633
3639
  name: "Raw:Img",
3634
3640
  hideFromInsertMenu: !0,
@@ -3642,7 +3648,7 @@ const Pr = /* @__PURE__ */ g($r, [["render", Er]]), Br = {
3642
3648
  }],
3643
3649
  noWrap: !0,
3644
3650
  static: !0
3645
- }, xr = b({
3651
+ }, Vr = b({
3646
3652
  name: "builder-img-component",
3647
3653
  props: [
3648
3654
  "backgroundSize",
@@ -3655,8 +3661,8 @@ const Pr = /* @__PURE__ */ g($r, [["render", Er]]), Br = {
3655
3661
  data() {
3656
3662
  return { isEditing: B, filterAttrs: W };
3657
3663
  }
3658
- }), Ar = ["alt", "src"];
3659
- function Vr(e, t, n, o, r, i) {
3664
+ }), Wr = ["alt", "src"];
3665
+ function Nr(e, t, n, o, r, i) {
3660
3666
  return c(), p("img", C({
3661
3667
  style: {
3662
3668
  objectFit: e.backgroundSize || "cover",
@@ -3665,9 +3671,9 @@ function Vr(e, t, n, o, r, i) {
3665
3671
  key: e.isEditing() && e.imgSrc || "default-key",
3666
3672
  alt: e.altText,
3667
3673
  src: e.imgSrc || e.image
3668
- }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Ar);
3674
+ }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Wr);
3669
3675
  }
3670
- const Wr = /* @__PURE__ */ g(xr, [["render", Vr]]), Nr = {
3676
+ const Fr = /* @__PURE__ */ g(Vr, [["render", Nr]]), Dr = {
3671
3677
  name: "Video",
3672
3678
  canHaveChildren: !0,
3673
3679
  defaultStyles: {
@@ -3751,7 +3757,7 @@ const Wr = /* @__PURE__ */ g(xr, [["render", Vr]]), Nr = {
3751
3757
  shouldReceiveBuilderProps: {
3752
3758
  builderBlock: !0
3753
3759
  }
3754
- }, Fr = b({
3760
+ }, Or = b({
3755
3761
  name: "builder-video",
3756
3762
  props: [
3757
3763
  "autoPlay",
@@ -3796,16 +3802,16 @@ const Wr = /* @__PURE__ */ g(xr, [["render", Vr]]), Nr = {
3796
3802
  };
3797
3803
  }
3798
3804
  }
3799
- }), Dr = { style: {
3805
+ }), Lr = { style: {
3800
3806
  position: "relative"
3801
- } }, Or = ["preload", "src", "poster"], Lr = ["src"], Ur = {
3807
+ } }, Ur = ["preload", "src", "poster"], Hr = ["src"], Mr = {
3802
3808
  key: 1,
3803
3809
  style: {
3804
3810
  display: "flex",
3805
3811
  flexDirection: "column",
3806
3812
  alignItems: "stretch"
3807
3813
  }
3808
- }, Hr = {
3814
+ }, jr = {
3809
3815
  key: 2,
3810
3816
  style: {
3811
3817
  pointerEvents: "none",
@@ -3819,9 +3825,9 @@ const Wr = /* @__PURE__ */ g(xr, [["render", Vr]]), Nr = {
3819
3825
  height: "100%"
3820
3826
  }
3821
3827
  };
3822
- function Mr(e, t, n, o, r, i) {
3828
+ function Kr(e, t, n, o, r, i) {
3823
3829
  var s, l, a, u, m, h, d;
3824
- return c(), p("div", Dr, [
3830
+ return c(), p("div", Lr, [
3825
3831
  q("video", C({
3826
3832
  class: "builder-video",
3827
3833
  preload: e.preload || "metadata",
@@ -3846,8 +3852,8 @@ function Mr(e, t, n, o, r, i) {
3846
3852
  key: 0,
3847
3853
  type: "video/mp4",
3848
3854
  src: e.video
3849
- }, null, 8, Lr))
3850
- ], 16, Or),
3855
+ }, null, 8, Hr))
3856
+ ], 16, Ur),
3851
3857
  e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (c(), p("div", {
3852
3858
  key: 0,
3853
3859
  style: D({
@@ -3857,72 +3863,72 @@ function Mr(e, t, n, o, r, i) {
3857
3863
  fontSize: "0px"
3858
3864
  })
3859
3865
  }, null, 4)) : v("", !0),
3860
- (m = (u = e.builderBlock) == null ? void 0 : u.children) != null && m.length && e.fitContent ? (c(), p("div", Ur, [
3866
+ (m = (u = e.builderBlock) == null ? void 0 : u.children) != null && m.length && e.fitContent ? (c(), p("div", Mr, [
3861
3867
  A(e.$slots, "default")
3862
3868
  ])) : v("", !0),
3863
- (d = (h = e.builderBlock) == null ? void 0 : h.children) != null && d.length && !e.fitContent ? (c(), p("div", Hr, [
3869
+ (d = (h = e.builderBlock) == null ? void 0 : h.children) != null && d.length && !e.fitContent ? (c(), p("div", jr, [
3864
3870
  A(e.$slots, "default")
3865
3871
  ])) : v("", !0)
3866
3872
  ]);
3867
3873
  }
3868
- const jr = /* @__PURE__ */ g(Fr, [["render", Mr]]), Kr = () => [{
3869
- component: Jo,
3870
- ...Ko
3871
- }, {
3872
- component: tr,
3873
- ...Yo
3874
+ const qr = /* @__PURE__ */ g(Or, [["render", Kr]]), zr = () => [{
3875
+ component: Xo,
3876
+ ...zo
3874
3877
  }, {
3875
- component: cr,
3876
- ...nr
3878
+ component: or,
3879
+ ...Qo
3877
3880
  }, {
3878
- component: hr,
3879
- ...dr
3881
+ component: ur,
3882
+ ...rr
3880
3883
  }, {
3881
- component: wr,
3882
- ...Sr
3884
+ component: br,
3885
+ ...pr
3883
3886
  }, {
3884
- component: vr,
3885
- ...fr
3887
+ component: $r,
3888
+ ...Tr
3886
3889
  }, {
3887
- component: Pr,
3888
- ...Ir
3890
+ component: Cr,
3891
+ ...gr
3889
3892
  }, {
3890
- component: Wr,
3891
- ...Br
3893
+ component: xr,
3894
+ ...Rr
3892
3895
  }, {
3893
- component: jr,
3894
- ...Nr
3895
- }], Ie = () => [{
3896
- component: It,
3897
- ...To
3896
+ component: Fr,
3897
+ ...Ar
3898
3898
  }, {
3899
- component: to,
3900
- ...wo
3901
- }, {
3902
- component: ro,
3899
+ component: qr,
3900
+ ...Dr
3901
+ }], Re = () => [{
3902
+ component: Rt,
3903
3903
  ...Io
3904
3904
  }, {
3905
- component: mo,
3905
+ component: oo,
3906
3906
  ...$o
3907
3907
  }, {
3908
- component: bo,
3908
+ component: io,
3909
3909
  ...Ro
3910
3910
  }, {
3911
- component: xo,
3911
+ component: fo,
3912
3912
  ...Eo
3913
3913
  }, {
3914
- component: Is,
3915
- ...Ao
3914
+ component: yo,
3915
+ ...Po
3916
+ }, {
3917
+ component: Vo,
3918
+ ...Bo
3916
3919
  }, {
3917
- component: jo,
3918
- ...Lo
3920
+ component: Rs,
3921
+ ...Wo
3919
3922
  }, {
3920
- component: Oo,
3921
- ...Vo
3923
+ component: qo,
3924
+ ...Ho
3922
3925
  }, {
3923
- component: Co,
3924
- ...go
3925
- }, ...Kr()], qr = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3926
+ component: Uo,
3927
+ ...No
3928
+ }, {
3929
+ component: wo,
3930
+ ...ko
3931
+ }, ...zr()], Gr = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3926
3932
  function getAndSetVariantId() {
3927
3933
  function setCookie(name, value, days) {
3928
3934
  let expires = '';
@@ -3978,7 +3984,7 @@ const jr = /* @__PURE__ */ g(Fr, [["render", Mr]]), Kr = () => [{
3978
3984
  }).join('');
3979
3985
  styleEl.innerHTML = newStyleStr;
3980
3986
  }
3981
- }`, zr = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3987
+ }`, Jr = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3982
3988
  if (!navigator.cookieEnabled) {
3983
3989
  return;
3984
3990
  }
@@ -4012,27 +4018,27 @@ const jr = /* @__PURE__ */ g(Fr, [["render", Mr]]), Kr = () => [{
4012
4018
  thisScriptEl?.remove();
4013
4019
  }
4014
4020
  return;
4015
- }`, nt = "builderIoAbTest", ot = "builderIoRenderContent", X = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4021
+ }`, rt = "builderIoAbTest", st = "builderIoRenderContent", Q = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4016
4022
  ...t,
4017
4023
  testVariationId: t.id,
4018
4024
  id: e == null ? void 0 : e.id
4019
- })), Gr = ({
4025
+ })), Yr = ({
4020
4026
  canTrack: e,
4021
4027
  content: t
4022
- }) => !(!(X(t).length > 0) || !e), Jr = (e) => e === "react" || e === "reactNative", rt = Jr(P), Yr = () => `
4023
- window.${nt} = ${qr}
4024
- window.${ot} = ${zr}
4025
- `, Xr = (e, t) => `
4026
- window.${nt}(
4027
- "${t}",${JSON.stringify(e)}, ${rt}
4028
- )`, Qr = ({
4028
+ }) => !(!(Q(t).length > 0) || !e), Xr = (e) => e === "react" || e === "reactNative", it = Xr(P), Qr = () => `
4029
+ window.${rt} = ${Gr}
4030
+ window.${st} = ${Jr}
4031
+ `, Zr = (e, t) => `
4032
+ window.${rt}(
4033
+ "${t}",${JSON.stringify(e)}, ${it}
4034
+ )`, _r = ({
4029
4035
  contentId: e,
4030
4036
  variationId: t
4031
- }) => `window.${ot}(
4032
- "${t}", "${e}", ${rt}
4033
- )`, st = b({
4037
+ }) => `window.${st}(
4038
+ "${t}", "${e}", ${it}
4039
+ )`, at = b({
4034
4040
  render() {
4035
- return Ee("script", {
4041
+ return Be("script", {
4036
4042
  innerHTML: this.scriptStr,
4037
4043
  "data-id": this.id,
4038
4044
  nonce: this.nonce
@@ -4041,10 +4047,10 @@ const jr = /* @__PURE__ */ g(Fr, [["render", Mr]]), Kr = () => [{
4041
4047
  name: "inlined-script",
4042
4048
  props: ["scriptStr", "id", "nonce"]
4043
4049
  });
4044
- function $e(e) {
4050
+ function Ee(e) {
4045
4051
  return Math.round(e * 1e3) / 1e3;
4046
4052
  }
4047
- const Zr = (e, t, n = !0) => {
4053
+ const es = (e, t, n = !0) => {
4048
4054
  if (!(e instanceof HTMLElement))
4049
4055
  return null;
4050
4056
  let o = n ? e : e.parentElement;
@@ -4055,35 +4061,35 @@ const Zr = (e, t, n = !0) => {
4055
4061
  return o;
4056
4062
  } while (o = o.parentElement);
4057
4063
  return null;
4058
- }, _r = (e) => Zr(e, (t) => {
4064
+ }, ts = (e) => es(e, (t) => {
4059
4065
  const n = t.getAttribute("builder-id") || t.id;
4060
4066
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
4061
- }), Re = ({
4067
+ }), Pe = ({
4062
4068
  event: e,
4063
4069
  target: t
4064
4070
  }) => {
4065
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = $e(o / n.width), s = $e(r / n.height);
4071
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = Ee(o / n.width), s = Ee(r / n.height);
4066
4072
  return {
4067
4073
  x: i,
4068
4074
  y: s
4069
4075
  };
4070
- }, es = (e) => {
4071
- const t = e.target, n = t && _r(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4076
+ }, ns = (e) => {
4077
+ const t = e.target, n = t && ts(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4072
4078
  return {
4073
4079
  targetBuilderElement: o || void 0,
4074
4080
  metadata: {
4075
- targetOffset: t ? Re({
4081
+ targetOffset: t ? Pe({
4076
4082
  event: e,
4077
4083
  target: t
4078
4084
  }) : void 0,
4079
- builderTargetOffset: n ? Re({
4085
+ builderTargetOffset: n ? Pe({
4080
4086
  event: e,
4081
4087
  target: n
4082
4088
  }) : void 0,
4083
4089
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
4084
4090
  }
4085
4091
  };
4086
- }, ts = (e) => {
4092
+ }, os = (e) => {
4087
4093
  var i;
4088
4094
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((i = e == null ? void 0 : e.files) == null ? void 0 : i.regular);
4089
4095
  let r = "";
@@ -4109,15 +4115,15 @@ font-weight: ${s};
4109
4115
  `.trim());
4110
4116
  }
4111
4117
  return r;
4112
- }, ns = ({
4118
+ }, rs = ({
4113
4119
  customFonts: e
4114
4120
  }) => {
4115
4121
  var t;
4116
- return ((t = e == null ? void 0 : e.map((n) => ts(n))) == null ? void 0 : t.join(" ")) || "";
4117
- }, os = ({
4122
+ return ((t = e == null ? void 0 : e.map((n) => os(n))) == null ? void 0 : t.join(" ")) || "";
4123
+ }, ss = ({
4118
4124
  cssCode: e,
4119
4125
  contentId: t
4120
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", rs = `
4126
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", is = `
4121
4127
  .builder-button {
4122
4128
  all: unset;
4123
4129
  }
@@ -4134,7 +4140,7 @@ font-weight: ${s};
4134
4140
  text-align: inherit;
4135
4141
  font-family: inherit;
4136
4142
  }
4137
- `, ss = (e) => e ? "" : rs, is = (e) => `variant-${e}`, as = b({
4143
+ `, as = (e) => e ? "" : is, ls = (e) => `variant-${e}`, cs = b({
4138
4144
  name: "enable-editor",
4139
4145
  components: { DynamicDiv: Y },
4140
4146
  props: [
@@ -4160,14 +4166,14 @@ font-weight: ${s};
4160
4166
  httpReqsData: {},
4161
4167
  httpReqsPending: {},
4162
4168
  clicked: !1,
4163
- builderContext: se,
4164
- getWrapperClassName: is
4169
+ builderContext: ae,
4170
+ getWrapperClassName: ls
4165
4171
  };
4166
4172
  },
4167
4173
  provide() {
4168
4174
  const e = this;
4169
4175
  return {
4170
- [se.key]: e.builderContextSignal
4176
+ [ae.key]: e.builderContextSignal
4171
4177
  };
4172
4178
  },
4173
4179
  created() {
@@ -4180,7 +4186,7 @@ font-weight: ${s};
4180
4186
  new CustomEvent("initeditingbldr")
4181
4187
  ), this.builderContextSignal.content && G(this.canTrack)) {
4182
4188
  const o = (e = this.builderContextSignal.content) == null ? void 0 : e.testVariationId, r = (t = this.builderContextSignal.content) == null ? void 0 : t.id, i = this.apiKey;
4183
- ae({
4189
+ ce({
4184
4190
  apiHost: this.apiHost,
4185
4191
  type: "impression",
4186
4192
  canTrack: !0,
@@ -4189,7 +4195,7 @@ font-weight: ${s};
4189
4195
  variationId: o !== r ? o : void 0
4190
4196
  });
4191
4197
  }
4192
- Lt() && !B() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4198
+ Ht() && !B() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4193
4199
  new CustomEvent("initpreviewingbldr")
4194
4200
  );
4195
4201
  }
@@ -4283,7 +4289,7 @@ font-weight: ${s};
4283
4289
  this.builderContextSignal.content = t;
4284
4290
  },
4285
4291
  processMessage(e) {
4286
- return qe({
4292
+ return Ge({
4287
4293
  model: this.model,
4288
4294
  trustedHosts: this.trustedHosts,
4289
4295
  callbacks: {
@@ -4297,7 +4303,7 @@ font-weight: ${s};
4297
4303
  });
4298
4304
  },
4299
4305
  animation: (t) => {
4300
- Ze(t);
4306
+ et(t);
4301
4307
  },
4302
4308
  contentUpdate: (t) => {
4303
4309
  this.mergeNewContent(t);
@@ -4309,14 +4315,14 @@ font-weight: ${s};
4309
4315
  var t, n;
4310
4316
  if (this.builderContextSignal.content) {
4311
4317
  const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
4312
- ae({
4318
+ ce({
4313
4319
  apiHost: this.apiHost,
4314
4320
  type: "click",
4315
4321
  canTrack: G(this.canTrack),
4316
4322
  contentId: r,
4317
4323
  apiKey: this.apiKey,
4318
4324
  variationId: o !== r ? o : void 0,
4319
- ...es(e),
4325
+ ...ns(e),
4320
4326
  unique: !this.clicked
4321
4327
  });
4322
4328
  }
@@ -4341,7 +4347,7 @@ font-weight: ${s};
4341
4347
  })
4342
4348
  )
4343
4349
  );
4344
- ue(i), fetch(i).then((s) => s.json()).then((s) => {
4350
+ me(i), fetch(i).then((s) => s.json()).then((s) => {
4345
4351
  this.mergeNewRootState({
4346
4352
  [o]: s
4347
4353
  }), this.httpReqsData[o] = !0;
@@ -4358,7 +4364,7 @@ font-weight: ${s};
4358
4364
  "builder:component:stateChange",
4359
4365
  {
4360
4366
  detail: {
4361
- state: ce(this.builderContextSignal.rootState),
4367
+ state: ue(this.builderContextSignal.rootState),
4362
4368
  ref: {
4363
4369
  name: this.model
4364
4370
  }
@@ -4368,7 +4374,7 @@ font-weight: ${s};
4368
4374
  );
4369
4375
  },
4370
4376
  elementRef_onIniteditingbldr(e) {
4371
- window.addEventListener("message", this.processMessage), ln(), Ke({
4377
+ window.addEventListener("message", this.processMessage), dn(), ze({
4372
4378
  ...this.locale ? {
4373
4379
  locale: this.locale
4374
4380
  } : {},
@@ -4382,7 +4388,7 @@ font-weight: ${s};
4382
4388
  this.builderContextSignal.componentInfos
4383
4389
  ).forEach((t) => {
4384
4390
  var o;
4385
- const n = Ut(t);
4391
+ const n = Mt(t);
4386
4392
  (o = window.parent) == null || o.postMessage(n, "*");
4387
4393
  }), window.addEventListener(
4388
4394
  "builder:component:stateChangeListenerActivated",
@@ -4393,7 +4399,7 @@ font-weight: ${s};
4393
4399
  const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
4394
4400
  `builder.overrides.${n}`
4395
4401
  ), r = t.get("apiKey") || t.get("builder.space");
4396
- n === this.model && r === this.apiKey && (!this.content || o === this.content.id) && he({
4402
+ n === this.model && r === this.apiKey && (!this.content || o === this.content.id) && be({
4397
4403
  model: this.model,
4398
4404
  apiKey: this.apiKey,
4399
4405
  apiVersion: this.builderContextSignal.apiVersion
@@ -4403,7 +4409,7 @@ font-weight: ${s};
4403
4409
  }
4404
4410
  }
4405
4411
  });
4406
- function ls(e, t, n, o, r, i) {
4412
+ function ds(e, t, n, o, r, i) {
4407
4413
  var s, l, a;
4408
4414
  return e.builderContextSignal.content ? (c(), y(j(e.ContentWrapper), C({
4409
4415
  key: 0,
@@ -4421,26 +4427,26 @@ function ls(e, t, n, o, r, i) {
4421
4427
  _: 3
4422
4428
  }, 16, ["onClick", "builder-content-id", "builder-model", "className", "onIniteditingbldr", "onInitpreviewingbldr"])) : v("", !0);
4423
4429
  }
4424
- const cs = /* @__PURE__ */ g(as, [["render", ls]]), ds = b({
4430
+ const us = /* @__PURE__ */ g(cs, [["render", ds]]), ps = b({
4425
4431
  name: "content-styles",
4426
- components: { InlinedStyles: ge },
4432
+ components: { InlinedStyles: ke },
4427
4433
  props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
4428
4434
  data() {
4429
4435
  return {
4430
4436
  injectedStyles: `
4431
- ${os({
4437
+ ${ss({
4432
4438
  cssCode: this.cssCode,
4433
4439
  contentId: this.contentId
4434
4440
  })}
4435
- ${ns({
4441
+ ${rs({
4436
4442
  customFonts: this.customFonts
4437
4443
  })}
4438
- ${ss(this.isNestedRender)}
4444
+ ${as(this.isNestedRender)}
4439
4445
  `.trim()
4440
4446
  };
4441
4447
  }
4442
4448
  });
4443
- function us(e, t, n, o, r, i) {
4449
+ function ms(e, t, n, o, r, i) {
4444
4450
  const s = k("InlinedStyles");
4445
4451
  return c(), y(s, {
4446
4452
  id: "builderio-content",
@@ -4448,7 +4454,7 @@ function us(e, t, n, o, r, i) {
4448
4454
  nonce: e.nonce
4449
4455
  }, null, 8, ["styles", "nonce"]);
4450
4456
  }
4451
- const ps = /* @__PURE__ */ g(ds, [["render", us]]), ms = ({
4457
+ const hs = /* @__PURE__ */ g(ps, [["render", ms]]), fs = ({
4452
4458
  content: e,
4453
4459
  data: t,
4454
4460
  locale: n
@@ -4465,7 +4471,7 @@ const ps = /* @__PURE__ */ g(ds, [["render", us]]), ms = ({
4465
4471
  locale: n
4466
4472
  } : {}
4467
4473
  };
4468
- }, hs = ({
4474
+ }, bs = ({
4469
4475
  content: e,
4470
4476
  data: t
4471
4477
  }) => e ? {
@@ -4475,12 +4481,12 @@ const ps = /* @__PURE__ */ g(ds, [["render", us]]), ms = ({
4475
4481
  ...t
4476
4482
  },
4477
4483
  meta: e == null ? void 0 : e.meta
4478
- } : void 0, fs = dt, bs = b({
4484
+ } : void 0, gs = pt, ys = b({
4479
4485
  name: "content-component",
4480
4486
  components: {
4481
- EnableEditor: cs,
4482
- InlinedScript: st,
4483
- ContentStyles: ps,
4487
+ EnableEditor: us,
4488
+ InlinedScript: at,
4489
+ ContentStyles: hs,
4484
4490
  Blocks: U,
4485
4491
  DynamicDiv: Y
4486
4492
  },
@@ -4510,32 +4516,32 @@ const ps = /* @__PURE__ */ g(ds, [["render", us]]), ms = ({
4510
4516
  data() {
4511
4517
  var e, t, n, o;
4512
4518
  return {
4513
- scriptStr: Qr({
4519
+ scriptStr: _r({
4514
4520
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4515
4521
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
4516
4522
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4517
4523
  contentId: (t = this.content) == null ? void 0 : t.id
4518
4524
  }),
4519
4525
  registeredComponents: [
4520
- ...Ie(),
4526
+ ...Re(),
4521
4527
  ...((n = this.customComponents) == null ? void 0 : n.filter(({ models: r }) => !(r != null && r.length) || !this.model ? !0 : r.includes(this.model))) || []
4522
4528
  ].reduce(
4523
4529
  (r, { component: i, ...s }) => ({
4524
4530
  ...r,
4525
4531
  [s.name]: {
4526
- component: fs(i),
4527
- ...Z(s)
4532
+ component: gs(i),
4533
+ ..._(s)
4528
4534
  }
4529
4535
  }),
4530
4536
  {}
4531
4537
  ),
4532
4538
  builderContextSignal: {
4533
- content: hs({
4539
+ content: bs({
4534
4540
  content: this.content,
4535
4541
  data: this.data
4536
4542
  }),
4537
4543
  localState: void 0,
4538
- rootState: ms({
4544
+ rootState: fs({
4539
4545
  content: this.content,
4540
4546
  data: this.data,
4541
4547
  locale: this.locale
@@ -4546,12 +4552,12 @@ const ps = /* @__PURE__ */ g(ds, [["render", us]]), ms = ({
4546
4552
  apiKey: this.apiKey,
4547
4553
  apiVersion: this.apiVersion,
4548
4554
  componentInfos: [
4549
- ...Ie(),
4555
+ ...Re(),
4550
4556
  ...((o = this.customComponents) == null ? void 0 : o.filter(({ models: r }) => !(r != null && r.length) || !this.model ? !0 : r.includes(this.model))) || []
4551
4557
  ].reduce(
4552
4558
  (r, { component: i, ...s }) => ({
4553
4559
  ...r,
4554
- [s.name]: Z(s)
4560
+ [s.name]: _(s)
4555
4561
  }),
4556
4562
  {}
4557
4563
  ),
@@ -4566,7 +4572,7 @@ const ps = /* @__PURE__ */ g(ds, [["render", us]]), ms = ({
4566
4572
  provide() {
4567
4573
  const e = this;
4568
4574
  return {
4569
- [xe.key]: {
4575
+ [Ve.key]: {
4570
4576
  registeredComponents: e.registeredComponents
4571
4577
  }
4572
4578
  };
@@ -4594,7 +4600,7 @@ const ps = /* @__PURE__ */ g(ds, [["render", us]]), ms = ({
4594
4600
  }
4595
4601
  }
4596
4602
  });
4597
- function gs(e, t, n, o, r, i) {
4603
+ function ks(e, t, n, o, r, i) {
4598
4604
  const s = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
4599
4605
  return c(), y(u, C({
4600
4606
  apiHost: e.apiHost,
@@ -4642,12 +4648,12 @@ function gs(e, t, n, o, r, i) {
4642
4648
  _: 1
4643
4649
  }, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
4644
4650
  }
4645
- const ys = /* @__PURE__ */ g(bs, [["render", gs]]), ks = b({
4651
+ const vs = /* @__PURE__ */ g(ys, [["render", ks]]), Ss = b({
4646
4652
  name: "content-variants",
4647
4653
  components: {
4648
- InlinedScript: st,
4649
- InlinedStyles: ge,
4650
- ContentComponent: ys
4654
+ InlinedScript: at,
4655
+ InlinedStyles: ke,
4656
+ ContentComponent: vs
4651
4657
  },
4652
4658
  props: [
4653
4659
  "canTrack",
@@ -4672,13 +4678,13 @@ const ys = /* @__PURE__ */ g(bs, [["render", gs]]), ks = b({
4672
4678
  ],
4673
4679
  data() {
4674
4680
  return {
4675
- shouldRenderVariants: Gr({
4681
+ shouldRenderVariants: Yr({
4676
4682
  canTrack: G(this.canTrack),
4677
4683
  content: this.content
4678
4684
  }),
4679
4685
  TARGET: P,
4680
- getInitVariantsFnsScriptString: Yr,
4681
- getVariants: X
4686
+ getInitVariantsFnsScriptString: Qr,
4687
+ getVariants: Q
4682
4688
  };
4683
4689
  },
4684
4690
  mounted() {
@@ -4686,8 +4692,8 @@ const ys = /* @__PURE__ */ g(bs, [["render", gs]]), ks = b({
4686
4692
  computed: {
4687
4693
  updateCookieAndStylesScriptStr() {
4688
4694
  var e;
4689
- return Xr(
4690
- X(this.content).map((t) => ({
4695
+ return Zr(
4696
+ Q(this.content).map((t) => ({
4691
4697
  id: t.testVariationId,
4692
4698
  testRatio: t.testRatio
4693
4699
  })),
@@ -4695,21 +4701,21 @@ const ys = /* @__PURE__ */ g(bs, [["render", gs]]), ks = b({
4695
4701
  );
4696
4702
  },
4697
4703
  hideVariantsStyleString() {
4698
- return X(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
4704
+ return Q(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
4699
4705
  },
4700
4706
  defaultContent() {
4701
4707
  var e;
4702
4708
  return this.shouldRenderVariants ? {
4703
4709
  ...this.content,
4704
4710
  testVariationId: (e = this.content) == null ? void 0 : e.id
4705
- } : hn({
4711
+ } : bn({
4706
4712
  item: this.content,
4707
4713
  canTrack: G(this.canTrack)
4708
4714
  });
4709
4715
  }
4710
4716
  }
4711
4717
  });
4712
- function vs(e, t, n, o, r, i) {
4718
+ function Cs(e, t, n, o, r, i) {
4713
4719
  const s = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
4714
4720
  return c(), p(w, null, [
4715
4721
  !e.isNestedRender && e.TARGET !== "reactNative" ? (c(), y(s, {
@@ -4781,13 +4787,13 @@ function vs(e, t, n, o, r, i) {
4781
4787
  }), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
4782
4788
  ], 64);
4783
4789
  }
4784
- const Ss = /* @__PURE__ */ g(ks, [["render", vs]]), Cs = async ({
4790
+ const Ts = /* @__PURE__ */ g(Ss, [["render", Cs]]), ws = async ({
4785
4791
  builderContextValue: e,
4786
4792
  symbol: t
4787
4793
  }) => {
4788
4794
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
4789
4795
  (e != null && e.apiKey))
4790
- return he({
4796
+ return be({
4791
4797
  model: t.model,
4792
4798
  apiKey: e.apiKey,
4793
4799
  apiVersion: e.apiVersion,
@@ -4799,9 +4805,9 @@ const Ss = /* @__PURE__ */ g(ks, [["render", vs]]), Cs = async ({
4799
4805
  }).catch((n) => {
4800
4806
  E.error("Could not fetch symbol content: ", n);
4801
4807
  });
4802
- }, Ts = b({
4808
+ }, Is = b({
4803
4809
  name: "builder-symbol",
4804
- components: { ContentVariants: Ss, DynamicDiv: Y },
4810
+ components: { ContentVariants: Ts, DynamicDiv: Y },
4805
4811
  props: [
4806
4812
  "symbol",
4807
4813
  "attributes",
@@ -4836,7 +4842,7 @@ const Ss = /* @__PURE__ */ g(ks, [["render", vs]]), Cs = async ({
4836
4842
  className() {
4837
4843
  var e, t;
4838
4844
  return [
4839
- this.attributes[Q()],
4845
+ this.attributes[Z()],
4840
4846
  "builder-symbol",
4841
4847
  (e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
4842
4848
  (t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
@@ -4850,7 +4856,7 @@ const Ss = /* @__PURE__ */ g(ks, [["render", vs]]), Cs = async ({
4850
4856
  },
4851
4857
  methods: {
4852
4858
  setContent() {
4853
- this.contentToUse || Cs({
4859
+ this.contentToUse || ws({
4854
4860
  symbol: this.symbol,
4855
4861
  builderContextValue: this.builderContext
4856
4862
  }).then((e) => {
@@ -4859,7 +4865,7 @@ const Ss = /* @__PURE__ */ g(ks, [["render", vs]]), Cs = async ({
4859
4865
  }
4860
4866
  }
4861
4867
  });
4862
- function ws(e, t, n, o, r, i) {
4868
+ function $s(e, t, n, o, r, i) {
4863
4869
  var l, a, u, m, h;
4864
4870
  const s = k("ContentVariants");
4865
4871
  return c(), p("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
@@ -4887,41 +4893,41 @@ function ws(e, t, n, o, r, i) {
4887
4893
  }, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
4888
4894
  ], 16);
4889
4895
  }
4890
- const Is = /* @__PURE__ */ g(Ts, [["render", ws]]);
4896
+ const Rs = /* @__PURE__ */ g(Is, [["render", $s]]);
4891
4897
  export {
4892
- Ns as A,
4893
- be as B,
4894
- to as C,
4895
- ro as F,
4896
- mo as I,
4897
- bo as S,
4898
- jo as T,
4899
- jr as V,
4900
- ge as _,
4901
- Fs as a,
4902
- fe as b,
4903
- Vs as c,
4898
+ Ds as A,
4899
+ ye as B,
4900
+ oo as C,
4901
+ io as F,
4902
+ fo as I,
4903
+ yo as S,
4904
+ qo as T,
4905
+ qr as V,
4906
+ ke as _,
4907
+ Os as a,
4908
+ ge as b,
4909
+ Ns as c,
4904
4910
  g as d,
4905
4911
  J as e,
4906
- Ws as f,
4907
- Qn as g,
4908
- Q as h,
4909
- se as i,
4910
- It as j,
4911
- Is as k,
4912
+ Fs as f,
4913
+ _n as g,
4914
+ Z as h,
4915
+ ae as i,
4916
+ Rt as j,
4917
+ Rs as k,
4912
4918
  U as l,
4913
- Ss as m,
4914
- Lt as n,
4915
- Ut as o,
4916
- Ve as p,
4917
- xs as q,
4918
- Mt as r,
4919
- Ps as s,
4920
- Bs as t,
4921
- As as u,
4922
- Cn as v,
4923
- fs as w,
4924
- Tn as x,
4925
- he as y,
4926
- Es as z
4919
+ Ts as m,
4920
+ Ht as n,
4921
+ Mt as o,
4922
+ Ne as p,
4923
+ Vs as q,
4924
+ Kt as r,
4925
+ xs as s,
4926
+ As as t,
4927
+ Ws as u,
4928
+ wn as v,
4929
+ gs as w,
4930
+ In as x,
4931
+ be as y,
4932
+ Bs as z
4927
4933
  };