@builder.io/sdk-react 1.1.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/README.md +4 -0
  2. package/lib/browser/blocks-exports.cjs +25 -25
  3. package/lib/browser/blocks-exports.mjs +505 -583
  4. package/lib/browser/index.cjs +1 -1
  5. package/lib/browser/index.mjs +1 -1
  6. package/lib/browser/init.cjs +1 -1
  7. package/lib/browser/init.mjs +1 -1
  8. package/lib/browser/{server-entry-65ef631d.js → server-entry-709e09e3.js} +1 -1
  9. package/lib/browser/{server-entry-94ed11a2.cjs → server-entry-e0454364.cjs} +1 -1
  10. package/lib/browser/server-entry.cjs +1 -1
  11. package/lib/browser/server-entry.mjs +1 -1
  12. package/lib/edge/{accordion-72b84877.cjs → accordion-12c2d408.cjs} +1 -1
  13. package/lib/edge/{accordion-cbe33da4.js → accordion-bd80745a.js} +1 -1
  14. package/lib/edge/{blocks-88689ec9.js → blocks-6d6258ba.js} +688 -684
  15. package/lib/edge/{blocks-1afa415a.cjs → blocks-ac8970f1.cjs} +13 -13
  16. package/lib/edge/blocks-exports.cjs +1 -1
  17. package/lib/edge/blocks-exports.mjs +2 -2
  18. package/lib/edge/{button-841d9178.js → button-4e842584.js} +2 -2
  19. package/lib/edge/{button-25700a5b.cjs → button-c2e45e64.cjs} +1 -1
  20. package/lib/edge/{columns-17e098f2.js → columns-a51238cc.js} +16 -16
  21. package/lib/edge/columns-bc2b0674.cjs +28 -0
  22. package/lib/edge/content-variants-3fe9b1c0.cjs +134 -0
  23. package/lib/edge/{content-variants-27523e14.js → content-variants-f3c6baad.js} +166 -248
  24. package/lib/edge/{form-1b0ea78b.js → form-00c8cc55.js} +3 -3
  25. package/lib/edge/{form-a97b8e7f.cjs → form-b4cdf7cd.cjs} +1 -1
  26. package/lib/edge/{get-class-prop-name-6096152c.js → get-class-prop-name-1bbed5bf.js} +1 -1
  27. package/lib/edge/{get-class-prop-name-a119460c.cjs → get-class-prop-name-3c5f7a7d.cjs} +1 -1
  28. package/lib/edge/{img-f9912657.cjs → img-6671da9a.cjs} +1 -1
  29. package/lib/edge/{img-ea259737.js → img-e7db1475.js} +1 -1
  30. package/lib/edge/index.cjs +1 -1
  31. package/lib/edge/index.mjs +1 -1
  32. package/lib/edge/init.cjs +1 -1
  33. package/lib/edge/init.mjs +1 -1
  34. package/lib/edge/{input-0cfeed6a.cjs → input-0f7a9f1c.cjs} +1 -1
  35. package/lib/edge/{input-32508fbe.js → input-2db47a83.js} +1 -1
  36. package/lib/edge/{select-d18bf3dd.js → select-2facacf2.js} +1 -1
  37. package/lib/edge/{select-19d699ed.cjs → select-f0859c5f.cjs} +1 -1
  38. package/lib/edge/{server-entry-ed17153b.js → server-entry-75aa714e.js} +1 -1
  39. package/lib/edge/{server-entry-f7ebd44f.cjs → server-entry-ff6a2e2d.cjs} +1 -1
  40. package/lib/edge/server-entry.cjs +1 -1
  41. package/lib/edge/server-entry.mjs +1 -1
  42. package/lib/edge/{slot-7c690d3a.js → slot-8159ca1d.js} +3 -3
  43. package/lib/edge/{slot-c0a5ac83.cjs → slot-aee43b86.cjs} +1 -1
  44. package/lib/edge/{symbol-e3eb2159.js → symbol-36a155f3.js} +2 -2
  45. package/lib/edge/{symbol-4c9196cb.cjs → symbol-a244cc31.cjs} +1 -1
  46. package/lib/edge/{tabs-10e32767.cjs → tabs-4112a80e.cjs} +1 -1
  47. package/lib/edge/{tabs-46c4603d.js → tabs-f5357a4e.js} +3 -3
  48. package/lib/node/blocks-exports.cjs +25 -25
  49. package/lib/node/blocks-exports.mjs +504 -582
  50. package/lib/node/index.cjs +1 -1
  51. package/lib/node/index.mjs +2 -2
  52. package/lib/node/init.cjs +1 -1
  53. package/lib/node/init.mjs +2 -2
  54. package/lib/node/{node-runtime-162b3ad2.js → node-runtime-80c4bfc8.js} +1 -1
  55. package/lib/node/{node-runtime-d5983829.cjs → node-runtime-eb72e084.cjs} +1 -1
  56. package/lib/node/{server-entry-879010db.cjs → server-entry-b2103255.cjs} +1 -1
  57. package/lib/node/{server-entry-771cfa6f.js → server-entry-e8ac67b5.js} +1 -1
  58. package/lib/node/server-entry.cjs +1 -1
  59. package/lib/node/server-entry.mjs +1 -1
  60. package/package.json +1 -1
  61. package/types/components/block/block.helpers.d.ts +8 -8
  62. package/types/constants/sdk-version.d.ts +1 -1
  63. package/lib/edge/columns-c934b550.cjs +0 -28
  64. package/lib/edge/content-variants-c7dd50a4.cjs +0 -134
@@ -1,16 +1,16 @@
1
1
  "use client";
2
2
  var qe = Object.defineProperty;
3
- var _e = (e, t, n) => t in e ? qe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
- var oe = (e, t, n) => (_e(e, typeof t != "symbol" ? t + "" : t, n), n);
5
- import { jsx as s, Fragment as R, jsxs as E } from "react/jsx-runtime";
6
- import { TARGET as _, isEditing as F, isBrowser as M, getUserAttributes as ze, checkIsDefined as G, logger as Z, fastClone as ue, registerInsertMenu as Je, setupBrowserForEditing as Ye, createRegisterComponentMessage as Ge, getDefaultCanTrack as Q, _track as be, isPreviewing as Qe, fetchOneEntry as Re, createEditorListener as Xe, fetch as Ze, serializeComponentInfo as ge, handleABTestingSync as et } from "./server-entry-65ef631d.js";
7
- import { createContext as Be, useState as C, useEffect as P, useContext as pe, useRef as ee, createElement as Pe } from "react";
8
- const tt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), nt = (e) => typeof e == "string" && tt.has(e.toLowerCase());
9
- function me(e) {
10
- return /* @__PURE__ */ s(R, { children: nt(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
3
+ var Ke = (e, t, n) => t in e ? qe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
+ var ie = (e, t, n) => (Ke(e, typeof t != "symbol" ? t + "" : t, n), n);
5
+ import { jsx as s, Fragment as R, jsxs as P } from "react/jsx-runtime";
6
+ import { TARGET as z, isEditing as $, isBrowser as M, getUserAttributes as ze, checkIsDefined as G, logger as Z, fastClone as de, registerInsertMenu as _e, setupBrowserForEditing as Je, createRegisterComponentMessage as Ye, getDefaultCanTrack as Q, _track as he, isPreviewing as Ge, fetchOneEntry as we, createEditorListener as Qe, fetch as Xe, serializeComponentInfo as ge, handleABTestingSync as Ze } from "./server-entry-709e09e3.js";
7
+ import { createContext as Re, useState as C, useEffect as B, useContext as be, useRef as ee, createElement as Ee } from "react";
8
+ const et = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), tt = (e) => typeof e == "string" && et.has(e.toLowerCase());
9
+ function ue(e) {
10
+ return /* @__PURE__ */ s(R, { children: tt(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
11
11
  }
12
- const K = () => {
13
- switch (_) {
12
+ const q = () => {
13
+ switch (z) {
14
14
  case "react":
15
15
  case "reactNative":
16
16
  case "rsc":
@@ -23,11 +23,11 @@ const K = () => {
23
23
  return "class";
24
24
  }
25
25
  };
26
- function it(e) {
26
+ function nt(e) {
27
27
  function t() {
28
28
  return {
29
29
  ...e.attributes,
30
- [K()]: `${e.link ? "" : "builder-button"} ${e.attributes[K()] || ""}`,
30
+ [q()]: `${e.link ? "" : "builder-button"} ${e.attributes[q()] || ""}`,
31
31
  ...e.link ? {
32
32
  href: e.link,
33
33
  target: e.openLinkInNewTab ? "_blank" : void 0,
@@ -38,7 +38,7 @@ function it(e) {
38
38
  };
39
39
  }
40
40
  return /* @__PURE__ */ s(
41
- me,
41
+ ue,
42
42
  {
43
43
  attributes: t(),
44
44
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
@@ -47,7 +47,7 @@ function it(e) {
47
47
  }
48
48
  );
49
49
  }
50
- const fe = Be({
50
+ const me = Re({
51
51
  content: null,
52
52
  context: {},
53
53
  localState: void 0,
@@ -60,15 +60,15 @@ const fe = Be({
60
60
  inheritedStyles: {},
61
61
  BlocksWrapper: "div",
62
62
  BlocksWrapperProps: {}
63
- }), Ee = Be({ registeredComponents: {} });
64
- function ot(e) {
63
+ }), Be = Re({ registeredComponents: {} });
64
+ function it(e) {
65
65
  var t;
66
66
  return {
67
67
  ...(t = e.component) == null ? void 0 : t.options,
68
68
  ...e.options
69
69
  };
70
70
  }
71
- const at = ({
71
+ const ot = ({
72
72
  builder: e,
73
73
  context: t,
74
74
  event: n,
@@ -80,14 +80,14 @@ const at = ({
80
80
  builder: e,
81
81
  context: t,
82
82
  event: n
83
- }), rt = () => ({
84
- isEditing: F(),
83
+ }), at = () => ({
84
+ isEditing: $(),
85
85
  isBrowser: M(),
86
86
  isServer: !M(),
87
87
  getUserAttributes: () => ze()
88
- }), lt = (e, {
88
+ }), rt = (e, {
89
89
  isExpression: t = !0
90
- }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, ye = ({
90
+ }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, pe = ({
91
91
  code: e,
92
92
  builder: t,
93
93
  context: n,
@@ -96,11 +96,11 @@ const at = ({
96
96
  rootSetState: r,
97
97
  rootState: a
98
98
  }) => {
99
- const l = at({
99
+ const l = ot({
100
100
  builder: t,
101
101
  context: n,
102
102
  event: i,
103
- state: Ve({
103
+ state: Pe({
104
104
  rootState: a,
105
105
  localState: o,
106
106
  rootSetState: r
@@ -108,7 +108,7 @@ const at = ({
108
108
  });
109
109
  return new Function(...l.map(([c]) => c), e)(...l.map(([, c]) => c));
110
110
  };
111
- function Ve({
111
+ function Pe({
112
112
  rootState: e,
113
113
  localState: t,
114
114
  rootSetState: n
@@ -118,7 +118,7 @@ function Ve({
118
118
  if (t && o in t)
119
119
  return t[o];
120
120
  const r = i[o];
121
- return typeof r == "object" && r !== null ? Ve({
121
+ return typeof r == "object" && r !== null ? Pe({
122
122
  rootState: r,
123
123
  localState: void 0,
124
124
  rootSetState: n ? (a) => {
@@ -133,17 +133,17 @@ function Ve({
133
133
  }
134
134
  });
135
135
  }
136
- function st() {
136
+ function lt() {
137
137
  var e;
138
138
  return typeof process != "undefined" && G((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
139
139
  }
140
- const ct = () => {
140
+ const st = () => {
141
141
  var i;
142
- if (!st())
142
+ if (!lt())
143
143
  return !1;
144
144
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
145
145
  return e && t && !n ? (Z.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
146
- }, dt = (e) => (M() || ct(), ye(e)), D = class D {
146
+ }, ct = (e) => (M() || st(), pe(e)), L = class L {
147
147
  static getCacheKey(t) {
148
148
  return JSON.stringify({
149
149
  ...t,
@@ -153,17 +153,17 @@ const ct = () => {
153
153
  });
154
154
  }
155
155
  static getCachedValue(t) {
156
- return D.cache.get(t);
156
+ return L.cache.get(t);
157
157
  }
158
158
  static setCachedValue(t, n) {
159
- D.cache.size > 20 && D.cache.delete(D.cache.keys().next().value), D.cache.set(t, {
159
+ L.cache.size > 20 && L.cache.delete(L.cache.keys().next().value), L.cache.set(t, {
160
160
  value: n
161
161
  });
162
162
  }
163
163
  };
164
- oe(D, "cacheLimit", 20), oe(D, "cache", /* @__PURE__ */ new Map());
165
- let U = D;
166
- function q({
164
+ ie(L, "cacheLimit", 20), ie(L, "cache", /* @__PURE__ */ new Map());
165
+ let U = L;
166
+ function K({
167
167
  code: e,
168
168
  context: t,
169
169
  localState: n,
@@ -176,10 +176,10 @@ function q({
176
176
  if (e === "")
177
177
  return;
178
178
  const c = {
179
- code: lt(e, {
179
+ code: rt(e, {
180
180
  isExpression: a
181
181
  }),
182
- builder: rt(),
182
+ builder: at(),
183
183
  context: t,
184
184
  event: r,
185
185
  rootSetState: o,
@@ -192,7 +192,7 @@ function q({
192
192
  return f.value;
193
193
  }
194
194
  try {
195
- const u = dt(c);
195
+ const u = ct(c);
196
196
  if (l) {
197
197
  const f = U.getCacheKey(c);
198
198
  U.setCachedValue(f, u);
@@ -205,13 +205,13 @@ function q({
205
205
  return;
206
206
  }
207
207
  }
208
- const Ae = (e, t, n) => {
208
+ const Ve = (e, t, n) => {
209
209
  if (Object(e) !== e)
210
210
  return e;
211
211
  const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
212
212
  return i.slice(0, -1).reduce((o, r, a) => Object(o[r]) === o[r] ? o[r] : o[r] = Math.abs(Number(i[a + 1])) >> 0 === +i[a + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
213
213
  };
214
- const ut = ({
214
+ const dt = ({
215
215
  block: e,
216
216
  context: t,
217
217
  localState: n,
@@ -220,7 +220,7 @@ const ut = ({
220
220
  }) => {
221
221
  if (!e.bindings)
222
222
  return e;
223
- const r = ue(e), a = {
223
+ const r = de(e), a = {
224
224
  ...r,
225
225
  properties: {
226
226
  ...r.properties
@@ -230,7 +230,7 @@ const ut = ({
230
230
  }
231
231
  };
232
232
  for (const l in e.bindings) {
233
- const c = e.bindings[l], u = q({
233
+ const c = e.bindings[l], u = K({
234
234
  code: c,
235
235
  localState: n,
236
236
  rootState: i,
@@ -238,7 +238,7 @@ const ut = ({
238
238
  context: t,
239
239
  enableCache: !0
240
240
  });
241
- Ae(a, l, u);
241
+ Ve(a, l, u);
242
242
  }
243
243
  return a;
244
244
  };
@@ -251,7 +251,7 @@ function X({
251
251
  rootSetState: r
252
252
  }) {
253
253
  const a = e;
254
- return n ? ut({
254
+ return n ? dt({
255
255
  block: a,
256
256
  localState: i,
257
257
  rootState: o,
@@ -260,7 +260,7 @@ function X({
260
260
  }) : a;
261
261
  }
262
262
  const te = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
263
- function mt(e, t, n = {}) {
263
+ function ut(e, t, n = {}) {
264
264
  let i, o, r, a = null, l = 0;
265
265
  const c = function() {
266
266
  l = n.leading === !1 ? 0 : Date.now(), a = null, r = e.apply(i, o), a || (i = o = null);
@@ -282,55 +282,55 @@ function H(e, ...t) {
282
282
  }
283
283
  return n;
284
284
  }
285
- function ft(e) {
285
+ function mt(e) {
286
286
  for (const t of e)
287
287
  switch (t.trigger) {
288
288
  case "pageLoad":
289
- $e(t);
289
+ We(t);
290
290
  break;
291
291
  case "scrollInView":
292
- bt(t);
292
+ ht(t);
293
293
  break;
294
294
  }
295
295
  }
296
- function Ne(e) {
296
+ function Ae(e) {
297
297
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
298
298
  }
299
- function We(e, t) {
300
- const n = ht(e), i = getComputedStyle(t), o = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [o, r];
299
+ function Ne(e, t) {
300
+ const n = ft(e), i = getComputedStyle(t), o = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [o, r];
301
301
  for (const l of a)
302
302
  for (const c of n)
303
303
  c in l || (l[c] = i[c]);
304
304
  }
305
- function ht(e) {
305
+ function ft(e) {
306
306
  const t = [];
307
307
  for (const n of e.steps)
308
308
  for (const i in n.styles)
309
309
  t.indexOf(i) === -1 && t.push(i);
310
310
  return t;
311
311
  }
312
- function $e(e) {
312
+ function We(e) {
313
313
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
314
314
  if (!t.length) {
315
- Ne(e.elementId || e.id || "");
315
+ Ae(e.elementId || e.id || "");
316
316
  return;
317
317
  }
318
318
  Array.from(t).forEach((n) => {
319
- We(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
319
+ Ne(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
320
320
  n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), H(n.style, e.steps[1].styles), setTimeout(() => {
321
321
  n.style.transition = "", n.style.transitionDelay = "";
322
322
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
323
323
  });
324
324
  });
325
325
  }
326
- function bt(e) {
326
+ function ht(e) {
327
327
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
328
328
  if (!t.length) {
329
- Ne(e.elementId || e.id || "");
329
+ Ae(e.elementId || e.id || "");
330
330
  return;
331
331
  }
332
332
  Array.from(t).forEach((n) => {
333
- We(e, n);
333
+ Ne(e, n);
334
334
  let i = !1, o = !1;
335
335
  function r() {
336
336
  !i && l(n) ? (i = !0, o = !0, setTimeout(() => {
@@ -339,7 +339,7 @@ function bt(e) {
339
339
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
340
340
  })) : e.repeat && i && !o && !l(n) && (i = !1, H(n.style, e.steps[0].styles));
341
341
  }
342
- const a = mt(r, 200, {
342
+ const a = ut(r, 200, {
343
343
  leading: !1
344
344
  });
345
345
  function l(f) {
@@ -374,21 +374,21 @@ const Fe = (e) => Object.entries(e).map(([n, i]) => {
374
374
  ${i}
375
375
  }` : i;
376
376
  };
377
- function pt({
377
+ function bt({
378
378
  style: e
379
379
  }) {
380
380
  return e;
381
381
  }
382
- const yt = ({
382
+ const pt = ({
383
383
  block: e,
384
384
  context: t
385
- }) => Le(pt({
385
+ }) => $e(bt({
386
386
  style: e.style || {},
387
387
  context: t,
388
388
  block: e
389
389
  }));
390
- function Le(e) {
391
- switch (_) {
390
+ function $e(e) {
391
+ switch (z) {
392
392
  case "svelte":
393
393
  case "vue":
394
394
  case "solid":
@@ -401,7 +401,7 @@ function Le(e) {
401
401
  return e;
402
402
  }
403
403
  }
404
- const xt = ({
404
+ const yt = ({
405
405
  block: e,
406
406
  context: t,
407
407
  registeredComponents: n
@@ -423,7 +423,7 @@ const xt = ({
423
423
  console.warn(`
424
424
  Could not find a registered component named "${i}".
425
425
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
426
- }, vt = ({
426
+ }, xt = ({
427
427
  block: e,
428
428
  context: t
429
429
  }) => {
@@ -433,7 +433,7 @@ const xt = ({
433
433
  } = e;
434
434
  if (!(n != null && n.collection))
435
435
  return;
436
- const o = q({
436
+ const o = K({
437
437
  code: n.collection,
438
438
  localState: t.localState,
439
439
  rootState: t.rootState,
@@ -457,23 +457,27 @@ const xt = ({
457
457
  },
458
458
  block: i
459
459
  }));
460
- }, ne = (e) => ({
461
- // once we bump to a major version, toggle this to `false`.
462
- builderBlock: !0,
463
- // once we bump to a major version, toggle this to `false`.
464
- builderContext: !0,
465
- builderComponents: !1,
466
- builderLinkComponent: !1,
467
- ...e
468
- }), St = (e, t) => e ? ne(e.shouldReceiveBuilderProps).builderLinkComponent ? {
469
- builderLinkComponent: t
470
- } : {} : {}, kt = (e, t) => e ? ne(e.shouldReceiveBuilderProps).builderComponents ? {
471
- builderComponents: t
472
- } : {} : {}, Ct = (e, t) => e ? ne(e.shouldReceiveBuilderProps).builderBlock ? {
473
- builderBlock: t
474
- } : {} : {}, Tt = (e, t) => e ? ne(e.shouldReceiveBuilderProps).builderContext ? {
475
- builderContext: t
476
- } : {} : {}, De = {
460
+ }, vt = (e, t) => {
461
+ var n;
462
+ return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
463
+ builderLinkComponent: t
464
+ } : {};
465
+ }, St = (e, t) => {
466
+ var n;
467
+ return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
468
+ builderComponents: t
469
+ } : {};
470
+ }, kt = (e, t) => {
471
+ var n;
472
+ return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
473
+ builderBlock: t
474
+ } : {};
475
+ }, Ct = (e, t) => {
476
+ var n;
477
+ return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
478
+ builderContext: t
479
+ } : {};
480
+ }, De = {
477
481
  small: {
478
482
  min: 320,
479
483
  default: 321,
@@ -489,11 +493,11 @@ const xt = ({
489
493
  default: 991,
490
494
  max: 1200
491
495
  }
492
- }, xe = (e, t = De) => `@media (max-width: ${t[e].max}px)`, Oe = ({
496
+ }, ye = (e, t = De) => `@media (max-width: ${t[e].max}px)`, Le = ({
493
497
  small: e,
494
498
  medium: t
495
499
  }) => {
496
- const n = ue(De);
500
+ const n = de(De);
497
501
  if (!e || !t)
498
502
  return n;
499
503
  const i = Math.floor(e / 2);
@@ -516,7 +520,7 @@ const xt = ({
516
520
  default: r + 1
517
521
  }, n;
518
522
  };
519
- function ie(e) {
523
+ function ne(e) {
520
524
  return /* @__PURE__ */ s(
521
525
  "style",
522
526
  {
@@ -525,7 +529,7 @@ function ie(e) {
525
529
  }
526
530
  );
527
531
  }
528
- function It(e) {
532
+ function Tt(e) {
529
533
  function t() {
530
534
  const i = X({
531
535
  block: e.block,
@@ -538,7 +542,7 @@ function It(e) {
538
542
  return G(i.hide) ? !i.hide : G(i.show) ? i.show : !0;
539
543
  }
540
544
  function n() {
541
- var x, B, V;
545
+ var x, E, V;
542
546
  const i = X({
543
547
  block: e.block,
544
548
  localState: e.context.localState,
@@ -546,7 +550,7 @@ function It(e) {
546
550
  rootSetState: e.context.rootSetState,
547
551
  context: e.context.context,
548
552
  shouldEvaluateBindings: !0
549
- }), o = i.responsiveStyles, r = e.context.content, a = Oe(
553
+ }), o = i.responsiveStyles, r = e.context.content, a = Le(
550
554
  ((x = r == null ? void 0 : r.meta) == null ? void 0 : x.breakpoints) || {}
551
555
  ), l = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, u = o == null ? void 0 : o.small, f = i.id;
552
556
  if (!f)
@@ -557,21 +561,21 @@ function It(e) {
557
561
  }) : "", m = c ? J({
558
562
  className: f,
559
563
  styles: c,
560
- mediaQuery: xe(
564
+ mediaQuery: ye(
561
565
  "medium",
562
566
  a
563
567
  )
564
- }) : "", b = u ? J({
568
+ }) : "", g = u ? J({
565
569
  className: f,
566
570
  styles: u,
567
- mediaQuery: xe(
571
+ mediaQuery: ye(
568
572
  "small",
569
573
  a
570
574
  )
571
575
  }) : "", p = i.animations && i.animations.find((A) => A.trigger === "hover");
572
576
  let I = "";
573
577
  if (p) {
574
- const A = ((V = (B = p.steps) == null ? void 0 : B[1]) == null ? void 0 : V.styles) || {};
578
+ const A = ((V = (E = p.steps) == null ? void 0 : E[1]) == null ? void 0 : V.styles) || {};
575
579
  I = J({
576
580
  className: `${f}:hover`,
577
581
  styles: {
@@ -586,16 +590,16 @@ function It(e) {
586
590
  return [
587
591
  d,
588
592
  m,
589
- b,
593
+ g,
590
594
  I
591
595
  ].join(" ");
592
596
  }
593
- return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(ie, { id: "builderio-block", styles: n() }) }) : null });
597
+ return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(ne, { id: "builderio-block", styles: n() }) }) : null });
594
598
  }
595
- function wt(e) {
599
+ function It(e) {
596
600
  return e.charAt(0).toUpperCase() + e.slice(1);
597
601
  }
598
- const Rt = (e) => `on${wt(e)}`, Bt = (e, t) => (n) => q({
602
+ const wt = (e) => `on${It(e)}`, Rt = (e, t) => (n) => K({
599
603
  code: e,
600
604
  context: t.context,
601
605
  localState: t.localState,
@@ -605,16 +609,16 @@ const Rt = (e) => `on${wt(e)}`, Bt = (e, t) => (n) => q({
605
609
  isExpression: !1,
606
610
  enableCache: !0
607
611
  });
608
- function je(e) {
612
+ function Oe(e) {
609
613
  var i;
610
614
  const t = {}, n = (i = e.block.actions) != null ? i : {};
611
615
  for (const o in n) {
612
616
  if (!n.hasOwnProperty(o))
613
617
  continue;
614
618
  const r = n[o];
615
- let a = Rt(o);
619
+ let a = wt(o);
616
620
  if (e.stripPrefix)
617
- switch (_) {
621
+ switch (z) {
618
622
  case "vue":
619
623
  a = a.replace("v-on:", "");
620
624
  break;
@@ -622,49 +626,49 @@ function je(e) {
622
626
  a = a.replace("on:", "");
623
627
  break;
624
628
  }
625
- t[a] = Bt(r, e);
629
+ t[a] = Rt(r, e);
626
630
  }
627
631
  return t;
628
632
  }
629
- function Pt({
633
+ function Et({
630
634
  properties: e
631
635
  }) {
632
636
  return e;
633
637
  }
634
- const Et = (e) => ({
638
+ const Bt = (e) => ({
635
639
  href: e.href
636
640
  });
637
- function he({
641
+ function fe({
638
642
  block: e,
639
643
  context: t
640
644
  }) {
641
645
  var i;
642
646
  const n = {
643
- ...Et(e),
647
+ ...Bt(e),
644
648
  ...e.properties,
645
649
  "builder-id": e.id,
646
- style: yt({
650
+ style: pt({
647
651
  block: e,
648
652
  context: t
649
653
  }),
650
- [K()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
654
+ [q()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
651
655
  };
652
- return Pt({
656
+ return Et({
653
657
  properties: n,
654
658
  context: t,
655
659
  block: e
656
660
  });
657
661
  }
658
- function Vt(e) {
662
+ function Pt(e) {
659
663
  return /* @__PURE__ */ s(
660
- me,
664
+ ue,
661
665
  {
662
666
  TagName: e.Wrapper,
663
- attributes: he({
667
+ attributes: fe({
664
668
  block: e.block,
665
669
  context: e.context
666
670
  }),
667
- actionAttributes: je({
671
+ actionAttributes: Oe({
668
672
  block: e.block,
669
673
  rootState: e.context.rootState,
670
674
  rootSetState: e.context.rootSetState,
@@ -676,14 +680,14 @@ function Vt(e) {
676
680
  }
677
681
  );
678
682
  }
679
- function At(e) {
683
+ function Vt(e) {
680
684
  function t() {
681
685
  return e.includeBlockProps ? {
682
- ...he({
686
+ ...fe({
683
687
  block: e.block,
684
688
  context: e.context
685
689
  }),
686
- ...je({
690
+ ...Oe({
687
691
  block: e.block,
688
692
  rootState: e.context.rootState,
689
693
  rootSetState: e.context.rootSetState,
@@ -694,7 +698,7 @@ function At(e) {
694
698
  }
695
699
  return /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
696
700
  }
697
- const Nt = ({
701
+ const At = ({
698
702
  componentOptions: e,
699
703
  builderBlock: t,
700
704
  context: n,
@@ -710,7 +714,7 @@ const Nt = ({
710
714
  * component itself directly. Otherwise, they are provided to the wrapper element.
711
715
  */
712
716
  ...o ? {
713
- attributes: he({
717
+ attributes: fe({
714
718
  block: t,
715
719
  context: a
716
720
  })
@@ -724,15 +728,15 @@ const Nt = ({
724
728
  includeBlockProps: o
725
729
  } : l;
726
730
  };
727
- function ve(e) {
731
+ function xe(e) {
728
732
  var i;
729
733
  const [t, n] = C(
730
- () => e.isInteractive ? At : e.componentRef
734
+ () => e.isInteractive ? Vt : e.componentRef
731
735
  );
732
736
  return /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
733
737
  t,
734
738
  {
735
- ...Nt({
739
+ ...At({
736
740
  componentOptions: e.componentOptions,
737
741
  builderBlock: e.builderBlock,
738
742
  context: e.context,
@@ -743,7 +747,7 @@ function ve(e) {
743
747
  contextValue: e.context
744
748
  }),
745
749
  children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ s(
746
- z,
750
+ _,
747
751
  {
748
752
  block: o,
749
753
  context: e.context,
@@ -755,10 +759,10 @@ function ve(e) {
755
759
  }
756
760
  ) }) : null });
757
761
  }
758
- function Wt(e) {
762
+ function Nt(e) {
759
763
  const [t, n] = C(() => e.repeatContext);
760
- return /* @__PURE__ */ s(fe.Provider, { value: t, children: /* @__PURE__ */ s(
761
- z,
764
+ return /* @__PURE__ */ s(me.Provider, { value: t, children: /* @__PURE__ */ s(
765
+ _,
762
766
  {
763
767
  block: e.block,
764
768
  context: t,
@@ -767,17 +771,17 @@ function Wt(e) {
767
771
  }
768
772
  ) });
769
773
  }
770
- function z(e) {
774
+ function _(e) {
771
775
  var c, u, f;
772
776
  function t() {
773
- return xt({
777
+ return yt({
774
778
  block: e.block,
775
779
  context: e.context,
776
780
  registeredComponents: e.registeredComponents
777
781
  });
778
782
  }
779
783
  function n() {
780
- return vt({
784
+ return xt({
781
785
  block: e.block,
782
786
  context: e.context
783
787
  });
@@ -798,27 +802,27 @@ function z(e) {
798
802
  return e.block.tagName === "a" || ((m = i().properties) == null ? void 0 : m.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
799
803
  }
800
804
  function r() {
801
- var b, p;
802
- if ((b = e.block.repeat) != null && b.collection)
805
+ var g, p;
806
+ if ((g = e.block.repeat) != null && g.collection)
803
807
  return !!((p = n == null ? void 0 : n()) != null && p.length);
804
808
  const d = "hide" in i() ? i().hide : !1;
805
809
  return ("show" in i() ? i().show : !0) && !d;
806
810
  }
807
811
  function a() {
808
- var m, b;
809
- return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (b = i().children) != null ? b : [] : [];
812
+ var m, g;
813
+ return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (g = i().children) != null ? g : [] : [];
810
814
  }
811
815
  function l() {
812
- var d, m, b, p;
816
+ var d, m, g, p;
813
817
  return {
814
818
  blockChildren: (d = i().children) != null ? d : [],
815
819
  componentRef: (m = t == null ? void 0 : t()) == null ? void 0 : m.component,
816
820
  componentOptions: {
817
- ...ot(i()),
818
- ...Ct(t(), i()),
819
- ...Tt(t(), e.context),
820
- ...St(t(), e.linkComponent),
821
- ...kt(
821
+ ...it(i()),
822
+ ...kt(t(), i()),
823
+ ...Ct(t(), e.context),
824
+ ...vt(t(), e.linkComponent),
825
+ ...St(
822
826
  t(),
823
827
  e.registeredComponents
824
828
  )
@@ -827,22 +831,22 @@ function z(e) {
827
831
  linkComponent: e.linkComponent,
828
832
  registeredComponents: e.registeredComponents,
829
833
  builderBlock: i(),
830
- includeBlockProps: ((b = t == null ? void 0 : t()) == null ? void 0 : b.noWrap) === !0,
834
+ includeBlockProps: ((g = t == null ? void 0 : t()) == null ? void 0 : g.noWrap) === !0,
831
835
  isInteractive: !((p = t == null ? void 0 : t()) != null && p.isRSC)
832
836
  };
833
837
  }
834
- return P(() => {
838
+ return B(() => {
835
839
  const d = i().id, m = i().animations;
836
- m && d && ft(
837
- m.map((b) => ({
838
- ...b,
840
+ m && d && mt(
841
+ m.map((g) => ({
842
+ ...g,
839
843
  elementId: d
840
844
  }))
841
845
  );
842
- }, []), /* @__PURE__ */ s(R, { children: r() ? /* @__PURE__ */ E(R, { children: [
843
- /* @__PURE__ */ s(It, { block: e.block, context: e.context }),
846
+ }, []), /* @__PURE__ */ s(R, { children: r() ? /* @__PURE__ */ P(R, { children: [
847
+ /* @__PURE__ */ s(Tt, { block: e.block, context: e.context }),
844
848
  (c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
845
- ve,
849
+ xe,
846
850
  {
847
851
  componentRef: l().componentRef,
848
852
  componentOptions: l().componentOptions,
@@ -855,7 +859,7 @@ function z(e) {
855
859
  isInteractive: l().isInteractive
856
860
  }
857
861
  ) }) : /* @__PURE__ */ s(R, { children: n() ? /* @__PURE__ */ s(R, { children: (f = n()) == null ? void 0 : f.map((d, m) => /* @__PURE__ */ s(
858
- Wt,
862
+ Nt,
859
863
  {
860
864
  repeatContext: d.context,
861
865
  block: d.block,
@@ -863,15 +867,15 @@ function z(e) {
863
867
  linkComponent: e.linkComponent
864
868
  },
865
869
  m
866
- )) }) : /* @__PURE__ */ E(
867
- Vt,
870
+ )) }) : /* @__PURE__ */ P(
871
+ Pt,
868
872
  {
869
873
  Wrapper: o(),
870
874
  block: i(),
871
875
  context: e.context,
872
876
  children: [
873
877
  /* @__PURE__ */ s(
874
- ve,
878
+ xe,
875
879
  {
876
880
  componentRef: l().componentRef,
877
881
  componentOptions: l().componentOptions,
@@ -885,7 +889,7 @@ function z(e) {
885
889
  }
886
890
  ),
887
891
  (u = a()) == null ? void 0 : u.map((d) => /* @__PURE__ */ s(
888
- z,
892
+ _,
889
893
  {
890
894
  block: d,
891
895
  registeredComponents: e.registeredComponents,
@@ -899,14 +903,14 @@ function z(e) {
899
903
  ) })
900
904
  ] }) : null });
901
905
  }
902
- function $t(e) {
906
+ function Wt(e) {
903
907
  function t() {
904
908
  var o;
905
909
  return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
906
910
  }
907
911
  function n() {
908
912
  var o, r;
909
- F() && !((o = e.blocks) != null && o.length) && ((r = window.parent) == null || r.postMessage(
913
+ $() && !((o = e.blocks) != null && o.length) && ((r = window.parent) == null || r.postMessage(
910
914
  {
911
915
  type: "builder.clickEmptyBlocks",
912
916
  data: {
@@ -919,7 +923,7 @@ function $t(e) {
919
923
  }
920
924
  function i() {
921
925
  var o, r;
922
- F() && !((o = e.blocks) != null && o.length) && ((r = window.parent) == null || r.postMessage(
926
+ $() && !((o = e.blocks) != null && o.length) && ((r = window.parent) == null || r.postMessage(
923
927
  {
924
928
  type: "builder.hoverEmptyBlocks",
925
929
  data: {
@@ -930,7 +934,7 @@ function $t(e) {
930
934
  "*"
931
935
  ));
932
936
  }
933
- return /* @__PURE__ */ E(R, { children: [
937
+ return /* @__PURE__ */ P(R, { children: [
934
938
  /* @__PURE__ */ s(
935
939
  e.BlocksWrapper,
936
940
  {
@@ -952,11 +956,11 @@ function $t(e) {
952
956
  }` })
953
957
  ] });
954
958
  }
955
- function L(e) {
959
+ function D(e) {
956
960
  var i, o, r;
957
- const t = pe(fe), n = pe(Ee);
961
+ const t = be(me), n = be(Be);
958
962
  return /* @__PURE__ */ s(
959
- $t,
963
+ Wt,
960
964
  {
961
965
  blocks: e.blocks,
962
966
  parent: e.parent,
@@ -965,7 +969,7 @@ function L(e) {
965
969
  BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
966
970
  BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
967
971
  children: e.blocks ? /* @__PURE__ */ s(R, { children: (r = e.blocks) == null ? void 0 : r.map((a) => /* @__PURE__ */ s(
968
- z,
972
+ _,
969
973
  {
970
974
  block: a,
971
975
  linkComponent: e.linkComponent,
@@ -978,7 +982,7 @@ function L(e) {
978
982
  );
979
983
  }
980
984
  const Ft = (e) => `builder-columns ${e}-breakpoints`;
981
- function Lt(e) {
985
+ function $t(e) {
982
986
  var A, O;
983
987
  const [t, n] = C(
984
988
  () => typeof e.space == "number" ? e.space || 0 : 20
@@ -993,8 +997,8 @@ function Lt(e) {
993
997
  return ((w = i[S]) == null ? void 0 : w.width) || 100 / i.length;
994
998
  }
995
999
  function u(S) {
996
- const w = t * (i.length - 1) / i.length;
997
- return `calc(${c(S)}% - ${w}px)`;
1000
+ const w = c(S), N = t * (i.length - 1) * (w / 100);
1001
+ return `calc(${w}% - ${N}px)`;
998
1002
  }
999
1003
  function f({
1000
1004
  stackedStyle: S,
@@ -1008,7 +1012,7 @@ function Lt(e) {
1008
1012
  }) {
1009
1013
  return r === "never" ? w : S;
1010
1014
  }
1011
- const [m, b] = C(
1015
+ const [m, g] = C(
1012
1016
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
1013
1017
  );
1014
1018
  function p() {
@@ -1021,40 +1025,40 @@ function Lt(e) {
1021
1025
  };
1022
1026
  }
1023
1027
  function I(S) {
1024
- const w = S === 0 ? 0 : t, W = u(S), g = `${w}px`, h = "100%", y = 0;
1028
+ const w = S === 0 ? 0 : t, N = u(S), b = `${w}px`, h = "100%", y = 0;
1025
1029
  return {
1026
1030
  ...{
1027
1031
  display: "flex",
1028
1032
  flexDirection: "column",
1029
1033
  alignItems: "stretch"
1030
1034
  },
1031
- width: W,
1032
- ["marginLeft"]: g,
1035
+ width: N,
1036
+ ["marginLeft"]: b,
1033
1037
  "--column-width-mobile": d({
1034
1038
  stackedStyle: h,
1035
- desktopStyle: W
1039
+ desktopStyle: N
1036
1040
  }),
1037
1041
  "--column-margin-left-mobile": d({
1038
1042
  stackedStyle: y,
1039
- desktopStyle: g
1043
+ desktopStyle: b
1040
1044
  }),
1041
1045
  "--column-width-tablet": f({
1042
1046
  stackedStyle: h,
1043
- desktopStyle: W
1047
+ desktopStyle: N
1044
1048
  }),
1045
1049
  "--column-margin-left-tablet": f({
1046
1050
  stackedStyle: y,
1047
- desktopStyle: g
1051
+ desktopStyle: b
1048
1052
  })
1049
1053
  };
1050
1054
  }
1051
1055
  function x(S) {
1052
- var W, g;
1053
- return Oe(
1054
- ((g = (W = e.builderContext.content) == null ? void 0 : W.meta) == null ? void 0 : g.breakpoints) || {}
1056
+ var N, b;
1057
+ return Le(
1058
+ ((b = (N = e.builderContext.content) == null ? void 0 : N.meta) == null ? void 0 : b.breakpoints) || {}
1055
1059
  )[S].max;
1056
1060
  }
1057
- function B() {
1061
+ function E() {
1058
1062
  return `
1059
1063
  @media (max-width: ${x("medium")}px) {
1060
1064
  .${e.builderBlock.id}-breakpoints {
@@ -1086,26 +1090,26 @@ function Lt(e) {
1086
1090
  ...S.link ? {
1087
1091
  href: S.link
1088
1092
  } : {},
1089
- [K()]: "builder-column",
1090
- style: Le(I(w))
1093
+ [q()]: "builder-column",
1094
+ style: $e(I(w))
1091
1095
  };
1092
1096
  }
1093
- return /* @__PURE__ */ E(R, { children: [
1094
- /* @__PURE__ */ E(
1097
+ return /* @__PURE__ */ P(R, { children: [
1098
+ /* @__PURE__ */ P(
1095
1099
  "div",
1096
1100
  {
1097
- className: Ft((A = e.builderBlock) == null ? void 0 : A.id) + " div-bade6b34",
1101
+ className: Ft((A = e.builderBlock) == null ? void 0 : A.id) + " div-b622c1bc",
1098
1102
  style: p(),
1099
1103
  children: [
1100
- /* @__PURE__ */ s(ie, { id: "builderio-columns", styles: B() }),
1104
+ /* @__PURE__ */ s(ne, { id: "builderio-columns", styles: E() }),
1101
1105
  (O = e.columns) == null ? void 0 : O.map((S, w) => /* @__PURE__ */ s(
1102
- me,
1106
+ ue,
1103
1107
  {
1104
1108
  TagName: l(S),
1105
1109
  actionAttributes: {},
1106
1110
  attributes: V(S, w),
1107
1111
  children: /* @__PURE__ */ s(
1108
- L,
1112
+ D,
1109
1113
  {
1110
1114
  path: `component.options.columns.${w}.blocks`,
1111
1115
  parent: e.builderBlock.id,
@@ -1124,7 +1128,7 @@ function Lt(e) {
1124
1128
  ]
1125
1129
  }
1126
1130
  ),
1127
- /* @__PURE__ */ s("style", { children: `.div-bade6b34 {
1131
+ /* @__PURE__ */ s("style", { children: `.div-b622c1bc {
1128
1132
  display: flex;
1129
1133
  line-height: normal;
1130
1134
  }` })
@@ -1133,37 +1137,37 @@ function Lt(e) {
1133
1137
  function Dt(e) {
1134
1138
  return /* @__PURE__ */ s("span", { children: e.children });
1135
1139
  }
1136
- function Se(e) {
1140
+ function ve(e) {
1137
1141
  return e.replace(/http(s)?:/, "");
1138
1142
  }
1139
- function Ot(e = "", t, n) {
1143
+ function Lt(e = "", t, n) {
1140
1144
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
1141
1145
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
1142
1146
  }
1143
- function jt(e, t) {
1147
+ function Ot(e, t) {
1144
1148
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1145
1149
  return e;
1146
1150
  if (t === "master")
1147
- return Se(e);
1151
+ return ve(e);
1148
1152
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1149
1153
  if (n) {
1150
1154
  const i = e.split(n[0]), o = n[3], r = t.match("x") ? t : `${t}x`;
1151
- return Se(`${i[0]}_${r}${o}`);
1155
+ return ve(`${i[0]}_${r}${o}`);
1152
1156
  }
1153
1157
  return null;
1154
1158
  }
1155
- function ae(e) {
1159
+ function oe(e) {
1156
1160
  if (!e)
1157
1161
  return e;
1158
1162
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1159
1163
  if (e.match(/builder\.io/)) {
1160
1164
  let n = e;
1161
1165
  const i = Number(e.split("?width=")[1]);
1162
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Ot(e, "width", o)} ${o}w`).concat([n]).join(", ");
1166
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Lt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1163
1167
  }
1164
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [jt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1168
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ot(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1165
1169
  }
1166
- function Ut(e) {
1170
+ function jt(e) {
1167
1171
  var o, r, a, l, c, u;
1168
1172
  function t() {
1169
1173
  var m;
@@ -1174,10 +1178,10 @@ function Ut(e) {
1174
1178
  return e.srcset;
1175
1179
  if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
1176
1180
  if (!e.srcset.includes(e.image.split("?")[0]))
1177
- return console.debug("Removed given srcset"), ae(d);
1181
+ return console.debug("Removed given srcset"), oe(d);
1178
1182
  } else if (e.image && !e.srcset)
1179
- return ae(d);
1180
- return ae(d);
1183
+ return oe(d);
1184
+ return oe(d);
1181
1185
  }
1182
1186
  function n() {
1183
1187
  var f;
@@ -1193,9 +1197,9 @@ function Ut(e) {
1193
1197
  };
1194
1198
  return e.aspectRatio ? f : void 0;
1195
1199
  }
1196
- return /* @__PURE__ */ E(R, { children: [
1197
- /* @__PURE__ */ E(R, { children: [
1198
- /* @__PURE__ */ E("picture", { children: [
1200
+ return /* @__PURE__ */ P(R, { children: [
1201
+ /* @__PURE__ */ P(R, { children: [
1202
+ /* @__PURE__ */ P("picture", { children: [
1199
1203
  n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1200
1204
  /* @__PURE__ */ s(
1201
1205
  "img",
@@ -1247,7 +1251,7 @@ function Ut(e) {
1247
1251
  }` })
1248
1252
  ] });
1249
1253
  }
1250
- function Mt(e) {
1254
+ function Ut(e) {
1251
1255
  return /* @__PURE__ */ s(
1252
1256
  "section",
1253
1257
  {
@@ -1268,7 +1272,7 @@ function Mt(e) {
1268
1272
  }
1269
1273
  );
1270
1274
  }
1271
- const re = {
1275
+ const ae = {
1272
1276
  "@type": "@builder.io/sdk:Element",
1273
1277
  layerName: "Accordion item title",
1274
1278
  responsiveStyles: {
@@ -1297,7 +1301,7 @@ const re = {
1297
1301
  }
1298
1302
  }
1299
1303
  }]
1300
- }, le = {
1304
+ }, re = {
1301
1305
  "@type": "@builder.io/sdk:Element",
1302
1306
  layerName: "Accordion item detail",
1303
1307
  responsiveStyles: {
@@ -1328,7 +1332,7 @@ const re = {
1328
1332
  }
1329
1333
  }
1330
1334
  }]
1331
- }, Ht = {
1335
+ }, Mt = {
1332
1336
  name: "Builder:Accordion",
1333
1337
  canHaveChildren: !0,
1334
1338
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -1345,19 +1349,19 @@ const re = {
1345
1349
  name: "title",
1346
1350
  type: "uiBlocks",
1347
1351
  hideFromUI: !0,
1348
- defaultValue: [re]
1352
+ defaultValue: [ae]
1349
1353
  }, {
1350
1354
  name: "detail",
1351
1355
  type: "uiBlocks",
1352
1356
  hideFromUI: !0,
1353
- defaultValue: [le]
1357
+ defaultValue: [re]
1354
1358
  }],
1355
1359
  defaultValue: [{
1356
- title: [re],
1357
- detail: [le]
1360
+ title: [ae],
1361
+ detail: [re]
1358
1362
  }, {
1359
- title: [re],
1360
- detail: [le]
1363
+ title: [ae],
1364
+ detail: [re]
1361
1365
  }],
1362
1366
  showIf: (e) => !e.get("useChildrenForItems")
1363
1367
  }, {
@@ -1392,8 +1396,8 @@ const re = {
1392
1396
  builderComponents: !0,
1393
1397
  builderLinkComponent: !0
1394
1398
  }
1395
- }, ke = (e) => e.toString();
1396
- function Kt(e) {
1399
+ }, Se = (e) => e.toString();
1400
+ function Ht(e) {
1397
1401
  var d;
1398
1402
  const [t, n] = C(() => []);
1399
1403
  function i() {
@@ -1412,7 +1416,7 @@ function Kt(e) {
1412
1416
  };
1413
1417
  }
1414
1418
  function r() {
1415
- const b = {
1419
+ const g = {
1416
1420
  ...{
1417
1421
  display: "flex",
1418
1422
  flexDirection: "column"
@@ -1421,7 +1425,7 @@ function Kt(e) {
1421
1425
  cursor: "pointer"
1422
1426
  };
1423
1427
  return Object.fromEntries(
1424
- Object.entries(b).filter(([p, I]) => I !== void 0)
1428
+ Object.entries(g).filter(([p, I]) => I !== void 0)
1425
1429
  );
1426
1430
  }
1427
1431
  function a(m) {
@@ -1438,18 +1442,18 @@ function Kt(e) {
1438
1442
  `.builder-accordion-title[data-index="${p}"]`
1439
1443
  );
1440
1444
  if (m = p, x) {
1441
- let B = x.getBoundingClientRect();
1445
+ let E = x.getBoundingClientRect();
1442
1446
  for (; x = x && x.nextElementSibling; )
1443
1447
  if (x) {
1444
1448
  if (x.classList.contains("builder-accordion-detail"))
1445
1449
  continue;
1446
1450
  const V = x.getBoundingClientRect();
1447
- if (V.left > B.left) {
1451
+ if (V.left > E.left) {
1448
1452
  const A = parseInt(
1449
1453
  x.getAttribute("data-index") || "",
1450
1454
  10
1451
1455
  );
1452
- isNaN(A) || (B = V, m = A);
1456
+ isNaN(A) || (E = V, m = A);
1453
1457
  } else
1454
1458
  break;
1455
1459
  }
@@ -1465,29 +1469,29 @@ function Kt(e) {
1465
1469
  }
1466
1470
  };
1467
1471
  return Object.fromEntries(
1468
- Object.entries(m).filter(([b, p]) => p !== void 0)
1472
+ Object.entries(m).filter(([g, p]) => p !== void 0)
1469
1473
  );
1470
1474
  }
1471
1475
  function f(m) {
1472
- t.includes(m) ? n(i() ? [] : t.filter((b) => b !== m)) : n(i() ? [m] : t.concat(m));
1476
+ t.includes(m) ? n(i() ? [] : t.filter((g) => g !== m)) : n(i() ? [m] : t.concat(m));
1473
1477
  }
1474
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m, b) => /* @__PURE__ */ E(R, { children: [
1478
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m, g) => /* @__PURE__ */ P(R, { children: [
1475
1479
  /* @__PURE__ */ s(
1476
1480
  "div",
1477
1481
  {
1478
- className: a(b),
1482
+ className: a(g),
1479
1483
  style: {
1480
1484
  ...r(),
1481
1485
  width: e.grid ? e.gridRowWidth : void 0,
1482
- order: c() !== null ? ke(b) : ke(b + 1)
1486
+ order: c() !== null ? Se(g) : Se(g + 1)
1483
1487
  },
1484
- "data-index": b,
1485
- onClick: (p) => f(b),
1488
+ "data-index": g,
1489
+ onClick: (p) => f(g),
1486
1490
  children: /* @__PURE__ */ s(
1487
- L,
1491
+ D,
1488
1492
  {
1489
1493
  blocks: m.title,
1490
- path: `items.${b}.title`,
1494
+ path: `items.${g}.title`,
1491
1495
  parent: e.builderBlock.id,
1492
1496
  context: e.builderContext,
1493
1497
  registeredComponents: e.builderComponents,
@@ -1496,16 +1500,16 @@ function Kt(e) {
1496
1500
  )
1497
1501
  }
1498
1502
  ),
1499
- t.includes(b) ? /* @__PURE__ */ s(
1503
+ t.includes(g) ? /* @__PURE__ */ s(
1500
1504
  "div",
1501
1505
  {
1502
- className: l(b),
1506
+ className: l(g),
1503
1507
  style: u(),
1504
1508
  children: /* @__PURE__ */ s(
1505
- L,
1509
+ D,
1506
1510
  {
1507
1511
  blocks: m.detail,
1508
- path: `items.${b}.detail`,
1512
+ path: `items.${g}.detail`,
1509
1513
  parent: e.builderBlock.id,
1510
1514
  context: e.builderContext,
1511
1515
  registeredComponents: e.builderComponents,
@@ -1550,12 +1554,9 @@ const qt = {
1550
1554
  static: !0,
1551
1555
  noWrap: !0,
1552
1556
  shouldReceiveBuilderProps: {
1553
- builderBlock: !1,
1554
- builderContext: !1,
1555
- builderComponents: !1,
1556
1557
  builderLinkComponent: !0
1557
1558
  }
1558
- }, _t = {
1559
+ }, Kt = {
1559
1560
  // TODO: ways to statically preprocess JSON for references, functions, etc
1560
1561
  name: "Columns",
1561
1562
  isRSC: !0,
@@ -1763,18 +1764,12 @@ const qt = {
1763
1764
  builderLinkComponent: !0
1764
1765
  }
1765
1766
  }, zt = {
1766
- shouldReceiveBuilderProps: {
1767
- builderBlock: !1,
1768
- builderContext: !1,
1769
- builderComponents: !1,
1770
- builderLinkComponent: !1
1771
- },
1772
1767
  name: "Fragment",
1773
1768
  static: !0,
1774
1769
  hidden: !0,
1775
1770
  canHaveChildren: !0,
1776
1771
  noWrap: !0
1777
- }, Jt = {
1772
+ }, _t = {
1778
1773
  name: "Image",
1779
1774
  static: !0,
1780
1775
  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",
@@ -1880,18 +1875,9 @@ const qt = {
1880
1875
  defaultValue: 0.7041
1881
1876
  }],
1882
1877
  shouldReceiveBuilderProps: {
1883
- builderBlock: !0,
1884
- builderContext: !1,
1885
- builderComponents: !1,
1886
- builderLinkComponent: !1
1878
+ builderBlock: !0
1887
1879
  }
1888
- }, Yt = {
1889
- shouldReceiveBuilderProps: {
1890
- builderBlock: !1,
1891
- builderContext: !1,
1892
- builderComponents: !1,
1893
- builderLinkComponent: !1
1894
- },
1880
+ }, Jt = {
1895
1881
  name: "Core:Section",
1896
1882
  static: !0,
1897
1883
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1930,7 +1916,7 @@ const qt = {
1930
1916
  }
1931
1917
  }
1932
1918
  }]
1933
- }, Gt = {
1919
+ }, Yt = {
1934
1920
  name: "Slot",
1935
1921
  isRSC: !0,
1936
1922
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1944,13 +1930,10 @@ const qt = {
1944
1930
  defaultValue: "children"
1945
1931
  }],
1946
1932
  shouldReceiveBuilderProps: {
1947
- builderBlock: !1,
1948
- builderContext: !0,
1949
- builderComponents: !1,
1950
- builderLinkComponent: !1
1933
+ builderContext: !0
1951
1934
  }
1952
1935
  };
1953
- function Qt(e) {
1936
+ function Gt(e) {
1954
1937
  var t, n, i;
1955
1938
  return /* @__PURE__ */ s(
1956
1939
  "div",
@@ -1962,7 +1945,7 @@ function Qt(e) {
1962
1945
  "builder-slot": e.name
1963
1946
  },
1964
1947
  children: /* @__PURE__ */ s(
1965
- L,
1948
+ D,
1966
1949
  {
1967
1950
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
1968
1951
  path: `symbol.data.${e.name}`,
@@ -1973,7 +1956,7 @@ function Qt(e) {
1973
1956
  }
1974
1957
  );
1975
1958
  }
1976
- const Xt = {
1959
+ const Qt = {
1977
1960
  name: "Symbol",
1978
1961
  noWrap: !0,
1979
1962
  static: !0,
@@ -2012,7 +1995,7 @@ const Xt = {
2012
1995
  builderComponents: !0,
2013
1996
  builderLinkComponent: !0
2014
1997
  }
2015
- }, se = {
1998
+ }, le = {
2016
1999
  "@type": "@builder.io/sdk:Element",
2017
2000
  responsiveStyles: {
2018
2001
  large: {
@@ -2034,7 +2017,7 @@ const Xt = {
2034
2017
  text: "New tab"
2035
2018
  }
2036
2019
  }
2037
- }, ce = {
2020
+ }, se = {
2038
2021
  "@type": "@builder.io/sdk:Element",
2039
2022
  responsiveStyles: {
2040
2023
  large: {
@@ -2050,7 +2033,7 @@ const Xt = {
2050
2033
  text: "New tab content "
2051
2034
  }
2052
2035
  }
2053
- }, Zt = {
2036
+ }, Xt = {
2054
2037
  name: "Builder: Tabs",
2055
2038
  inputs: [{
2056
2039
  name: "tabs",
@@ -2060,16 +2043,16 @@ const Xt = {
2060
2043
  name: "label",
2061
2044
  type: "uiBlocks",
2062
2045
  hideFromUI: !0,
2063
- defaultValue: [se]
2046
+ defaultValue: [le]
2064
2047
  }, {
2065
2048
  name: "content",
2066
2049
  type: "uiBlocks",
2067
2050
  hideFromUI: !0,
2068
- defaultValue: [ce]
2051
+ defaultValue: [se]
2069
2052
  }],
2070
2053
  defaultValue: [{
2071
2054
  label: [{
2072
- ...se,
2055
+ ...le,
2073
2056
  component: {
2074
2057
  name: "Text",
2075
2058
  options: {
@@ -2078,7 +2061,7 @@ const Xt = {
2078
2061
  }
2079
2062
  }],
2080
2063
  content: [{
2081
- ...ce,
2064
+ ...se,
2082
2065
  component: {
2083
2066
  name: "Text",
2084
2067
  options: {
@@ -2088,7 +2071,7 @@ const Xt = {
2088
2071
  }]
2089
2072
  }, {
2090
2073
  label: [{
2091
- ...se,
2074
+ ...le,
2092
2075
  component: {
2093
2076
  name: "Text",
2094
2077
  options: {
@@ -2097,7 +2080,7 @@ const Xt = {
2097
2080
  }
2098
2081
  }],
2099
2082
  content: [{
2100
- ...ce,
2083
+ ...se,
2101
2084
  component: {
2102
2085
  name: "Text",
2103
2086
  options: {
@@ -2154,7 +2137,7 @@ const Xt = {
2154
2137
  builderLinkComponent: !0
2155
2138
  }
2156
2139
  };
2157
- function en(e) {
2140
+ function Zt(e) {
2158
2141
  var r;
2159
2142
  const [t, n] = C(
2160
2143
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
@@ -2165,7 +2148,7 @@ function en(e) {
2165
2148
  function o(a) {
2166
2149
  a === t && e.collapsible ? n(-1) : n(a);
2167
2150
  }
2168
- return /* @__PURE__ */ E("div", { children: [
2151
+ return /* @__PURE__ */ P("div", { children: [
2169
2152
  /* @__PURE__ */ s(
2170
2153
  "div",
2171
2154
  {
@@ -2185,7 +2168,7 @@ function en(e) {
2185
2168
  },
2186
2169
  onClick: (c) => o(l),
2187
2170
  children: /* @__PURE__ */ s(
2188
- L,
2171
+ D,
2189
2172
  {
2190
2173
  parent: e.builderBlock.id,
2191
2174
  path: `component.options.tabs.${l}.label`,
@@ -2201,7 +2184,7 @@ function en(e) {
2201
2184
  }
2202
2185
  ),
2203
2186
  i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
2204
- L,
2187
+ D,
2205
2188
  {
2206
2189
  parent: e.builderBlock.id,
2207
2190
  path: `component.options.tabs.${t}.content`,
@@ -2213,12 +2196,9 @@ function en(e) {
2213
2196
  ) }) : null
2214
2197
  ] });
2215
2198
  }
2216
- const tn = {
2199
+ const en = {
2217
2200
  shouldReceiveBuilderProps: {
2218
- builderBlock: !1,
2219
- builderContext: !1,
2220
- builderComponents: !1,
2221
- builderLinkComponent: !1
2201
+ builderBlock: !1
2222
2202
  },
2223
2203
  name: "Text",
2224
2204
  static: !0,
@@ -2238,7 +2218,7 @@ const tn = {
2238
2218
  textAlign: "center"
2239
2219
  }
2240
2220
  };
2241
- function nn(e) {
2221
+ function tn(e) {
2242
2222
  var t;
2243
2223
  return /* @__PURE__ */ s(
2244
2224
  "div",
@@ -2251,13 +2231,7 @@ function nn(e) {
2251
2231
  }
2252
2232
  );
2253
2233
  }
2254
- const on = {
2255
- shouldReceiveBuilderProps: {
2256
- builderBlock: !1,
2257
- builderContext: !1,
2258
- builderComponents: !1,
2259
- builderLinkComponent: !1
2260
- },
2234
+ const nn = {
2261
2235
  name: "Custom Code",
2262
2236
  static: !0,
2263
2237
  requiredPermissions: ["editCode"],
@@ -2280,9 +2254,9 @@ const on = {
2280
2254
  advanced: !0
2281
2255
  }]
2282
2256
  };
2283
- function an(e) {
2257
+ function on(e) {
2284
2258
  const t = ee(null), [n, i] = C(() => []), [o, r] = C(() => []);
2285
- return P(() => {
2259
+ return B(() => {
2286
2260
  var l;
2287
2261
  if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
2288
2262
  return;
@@ -2318,13 +2292,7 @@ function an(e) {
2318
2292
  }
2319
2293
  );
2320
2294
  }
2321
- const rn = {
2322
- shouldReceiveBuilderProps: {
2323
- builderBlock: !1,
2324
- builderContext: !1,
2325
- builderComponents: !1,
2326
- builderLinkComponent: !1
2327
- },
2295
+ const an = {
2328
2296
  name: "Embed",
2329
2297
  static: !0,
2330
2298
  inputs: [{
@@ -2332,28 +2300,15 @@ const rn = {
2332
2300
  type: "url",
2333
2301
  required: !0,
2334
2302
  defaultValue: "",
2335
- helperText: "e.g. enter a youtube url, google map, etc",
2336
- onChange: (e) => {
2337
- const t = e.get("url");
2338
- if (t) {
2339
- e.set("content", "Loading...");
2340
- const n = _iframelyApiKey;
2341
- return fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=${n}`).then((i) => i.json()).then((i) => {
2342
- e.get("url") === t && (i.html ? e.set("content", i.html) : e.set("content", "Invalid url, please try another"));
2343
- }).catch((i) => {
2344
- e.set("content", "There was an error embedding this URL, please try again or another URL");
2345
- });
2346
- } else
2347
- e.delete("content");
2348
- }
2303
+ helperText: "e.g. enter a youtube url, google map, etc"
2349
2304
  }, {
2350
2305
  name: "content",
2351
2306
  type: "html",
2352
2307
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2353
2308
  hideFromUI: !0
2354
2309
  }]
2355
- }, ln = ["text/javascript", "application/javascript", "application/ecmascript"], sn = (e) => ln.includes(e.type);
2356
- function cn(e) {
2310
+ }, rn = ["text/javascript", "application/javascript", "application/ecmascript"], ln = (e) => rn.includes(e.type);
2311
+ function sn(e) {
2357
2312
  const t = ee(null), [n, i] = C(() => []), [o, r] = C(() => []), [a, l] = C(() => !1);
2358
2313
  function c() {
2359
2314
  if (!t.current || !t.current.getElementsByTagName)
@@ -2365,7 +2320,7 @@ function cn(e) {
2365
2320
  n.push(d.src);
2366
2321
  const m = document.createElement("script");
2367
2322
  m.async = !0, m.src = d.src, document.head.appendChild(m);
2368
- } else if (sn(d) && !o.includes(d.innerText))
2323
+ } else if (ln(d) && !o.includes(d.innerText))
2369
2324
  try {
2370
2325
  o.push(d.innerText), new Function(d.innerText)();
2371
2326
  } catch (m) {
@@ -2373,7 +2328,7 @@ function cn(e) {
2373
2328
  }
2374
2329
  }
2375
2330
  }
2376
- return P(() => {
2331
+ return B(() => {
2377
2332
  t.current && !a && (l(!0), c());
2378
2333
  }, [t.current, a]), /* @__PURE__ */ s(
2379
2334
  "div",
@@ -2384,7 +2339,7 @@ function cn(e) {
2384
2339
  }
2385
2340
  );
2386
2341
  }
2387
- const dn = {
2342
+ const cn = {
2388
2343
  name: "Form:Form",
2389
2344
  // editableTags: ['builder-form-error']
2390
2345
  defaults: {
@@ -2621,97 +2576,97 @@ const dn = {
2621
2576
  builderComponents: !0,
2622
2577
  builderLinkComponent: !0
2623
2578
  }
2624
- }, un = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], mn = () => {
2579
+ }, dn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], un = () => {
2625
2580
  const e = process.env.NODE_ENV || "production";
2626
- return un.includes(e) ? e : "production";
2627
- }, fn = (e, t, n) => {
2581
+ return dn.includes(e) ? e : "production";
2582
+ }, mn = (e, t, n) => {
2628
2583
  const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, r) => o != null ? o[r] : o, e);
2629
2584
  return i === void 0 || i === e ? n : i;
2630
2585
  };
2631
- function hn(e) {
2586
+ function fn(e) {
2632
2587
  var d, m;
2633
2588
  const t = ee(null), [n, i] = C(() => "unsubmitted"), [o, r] = C(() => null), [a, l] = C(() => "");
2634
- function c(b) {
2589
+ function c(g) {
2635
2590
  var I, x;
2636
2591
  const p = {
2637
2592
  ...e.builderContext.rootState,
2638
- ...b
2593
+ ...g
2639
2594
  };
2640
2595
  e.builderContext.rootSetState ? (x = (I = e.builderContext).rootSetState) == null || x.call(I, p) : e.builderContext.rootState = p;
2641
2596
  }
2642
2597
  function u() {
2643
- return F() && e.previewState || n;
2598
+ return $() && e.previewState || n;
2644
2599
  }
2645
- function f(b) {
2600
+ function f(g) {
2646
2601
  var I;
2647
2602
  const p = e.sendWithJs || e.sendSubmissionsTo === "email";
2648
2603
  if (e.sendSubmissionsTo === "zapier")
2649
- b.preventDefault();
2604
+ g.preventDefault();
2650
2605
  else if (p) {
2651
2606
  if (!(e.action || e.sendSubmissionsTo === "email")) {
2652
- b.preventDefault();
2607
+ g.preventDefault();
2653
2608
  return;
2654
2609
  }
2655
- b.preventDefault();
2656
- const x = b.currentTarget || b.target, B = e.customHeaders || {};
2610
+ g.preventDefault();
2611
+ const x = g.currentTarget || g.target, E = e.customHeaders || {};
2657
2612
  let V;
2658
- const A = new FormData(x), O = Array.from(x.querySelectorAll("input,select,textarea")).filter((g) => !!g.name).map((g) => {
2613
+ const A = new FormData(x), O = Array.from(x.querySelectorAll("input,select,textarea")).filter((b) => !!b.name).map((b) => {
2659
2614
  let h;
2660
- const y = g.name;
2661
- if (g instanceof HTMLInputElement)
2662
- if (g.type === "radio") {
2663
- if (g.checked)
2664
- return h = g.name, {
2615
+ const y = b.name;
2616
+ if (b instanceof HTMLInputElement)
2617
+ if (b.type === "radio") {
2618
+ if (b.checked)
2619
+ return h = b.name, {
2665
2620
  key: y,
2666
2621
  value: h
2667
2622
  };
2668
- } else if (g.type === "checkbox")
2669
- h = g.checked;
2670
- else if (g.type === "number" || g.type === "range") {
2671
- const v = g.valueAsNumber;
2623
+ } else if (b.type === "checkbox")
2624
+ h = b.checked;
2625
+ else if (b.type === "number" || b.type === "range") {
2626
+ const v = b.valueAsNumber;
2672
2627
  isNaN(v) || (h = v);
2673
2628
  } else
2674
- g.type === "file" ? h = g.files : h = g.value;
2629
+ b.type === "file" ? h = b.files : h = b.value;
2675
2630
  else
2676
- h = g.value;
2631
+ h = b.value;
2677
2632
  return {
2678
2633
  key: y,
2679
2634
  value: h
2680
2635
  };
2681
2636
  });
2682
2637
  let S = e.contentType;
2683
- if (e.sendSubmissionsTo === "email" && (S = "multipart/form-data"), Array.from(O).forEach(({ value: g }) => {
2684
- (g instanceof File || Array.isArray(g) && g[0] instanceof File || g instanceof FileList) && (S = "multipart/form-data");
2638
+ if (e.sendSubmissionsTo === "email" && (S = "multipart/form-data"), Array.from(O).forEach(({ value: b }) => {
2639
+ (b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (S = "multipart/form-data");
2685
2640
  }), S !== "application/json")
2686
2641
  V = A;
2687
2642
  else {
2688
- const g = {};
2643
+ const b = {};
2689
2644
  Array.from(O).forEach(({ value: h, key: y }) => {
2690
- Ae(g, y, h);
2691
- }), V = JSON.stringify(g);
2645
+ Ve(b, y, h);
2646
+ }), V = JSON.stringify(b);
2692
2647
  }
2693
- S && S !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (B["content-type"] = S));
2648
+ S && S !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (E["content-type"] = S));
2694
2649
  const w = new CustomEvent("presubmit", { detail: { body: V } });
2695
2650
  if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
2696
2651
  return;
2697
2652
  i("sending");
2698
- const W = `${mn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2653
+ const N = `${un() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2699
2654
  e.sendSubmissionsToEmail || ""
2700
2655
  )}&name=${encodeURIComponent(e.name || "")}`;
2701
2656
  fetch(
2702
- e.sendSubmissionsTo === "email" ? W : e.action,
2703
- { body: V, headers: B, method: e.method || "post" }
2657
+ e.sendSubmissionsTo === "email" ? N : e.action,
2658
+ { body: V, headers: E, method: e.method || "post" }
2704
2659
  ).then(
2705
- async (g) => {
2660
+ async (b) => {
2706
2661
  let h;
2707
- const y = g.headers.get("content-type");
2708
- if (y && y.indexOf("application/json") !== -1 ? h = await g.json() : h = await g.text(), !g.ok && e.errorMessagePath) {
2709
- let v = fn(h, e.errorMessagePath);
2662
+ const y = b.headers.get("content-type");
2663
+ if (y && y.indexOf("application/json") !== -1 ? h = await b.json() : h = await b.text(), !b.ok && e.errorMessagePath) {
2664
+ let v = mn(h, e.errorMessagePath);
2710
2665
  v && (typeof v != "string" && (v = JSON.stringify(v)), l(v), c({ formErrorMessage: v }));
2711
2666
  }
2712
- if (r(h), i(g.ok ? "success" : "error"), g.ok) {
2667
+ if (r(h), i(b.ok ? "success" : "error"), b.ok) {
2713
2668
  const v = new CustomEvent("submit:success", {
2714
- detail: { res: g, body: h }
2669
+ detail: { res: b, body: h }
2715
2670
  });
2716
2671
  if (t.current) {
2717
2672
  if (t.current.dispatchEvent(v), v.defaultPrevented)
@@ -2728,18 +2683,18 @@ function hn(e) {
2728
2683
  location.href = e.successUrl;
2729
2684
  }
2730
2685
  },
2731
- (g) => {
2686
+ (b) => {
2732
2687
  const h = new CustomEvent("submit:error", {
2733
- detail: { error: g }
2688
+ detail: { error: b }
2734
2689
  });
2735
- t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (r(g), i("error"));
2690
+ t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (r(b), i("error"));
2736
2691
  }
2737
2692
  );
2738
2693
  }
2739
2694
  }
2740
- return /* @__PURE__ */ E(R, { children: [
2695
+ return /* @__PURE__ */ P(R, { children: [
2741
2696
  " ",
2742
- /* @__PURE__ */ E(
2697
+ /* @__PURE__ */ P(
2743
2698
  "form",
2744
2699
  {
2745
2700
  validate: e.validate,
@@ -2747,13 +2702,13 @@ function hn(e) {
2747
2702
  action: !e.sendWithJs && e.action,
2748
2703
  method: e.method,
2749
2704
  name: e.name,
2750
- onSubmit: (b) => f(b),
2705
+ onSubmit: (g) => f(g),
2751
2706
  ...e.attributes,
2752
2707
  children: [
2753
- e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(R, { children: (m = (d = e.builderBlock) == null ? void 0 : d.children) == null ? void 0 : m.map((b, p) => /* @__PURE__ */ s(
2754
- z,
2708
+ e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(R, { children: (m = (d = e.builderBlock) == null ? void 0 : d.children) == null ? void 0 : m.map((g, p) => /* @__PURE__ */ s(
2709
+ _,
2755
2710
  {
2756
- block: b,
2711
+ block: g,
2757
2712
  context: e.builderContext,
2758
2713
  registeredComponents: e.builderComponents,
2759
2714
  linkComponent: e.builderLinkComponent
@@ -2761,7 +2716,7 @@ function hn(e) {
2761
2716
  `form-block-${p}`
2762
2717
  )) }) : null,
2763
2718
  u() === "error" ? /* @__PURE__ */ s(
2764
- L,
2719
+ D,
2765
2720
  {
2766
2721
  path: "errorMessage",
2767
2722
  blocks: e.errorMessage,
@@ -2769,7 +2724,7 @@ function hn(e) {
2769
2724
  }
2770
2725
  ) : null,
2771
2726
  u() === "sending" ? /* @__PURE__ */ s(
2772
- L,
2727
+ D,
2773
2728
  {
2774
2729
  path: "sendingMessage",
2775
2730
  blocks: e.sendingMessage,
@@ -2778,7 +2733,7 @@ function hn(e) {
2778
2733
  ) : null,
2779
2734
  u() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
2780
2735
  u() === "success" ? /* @__PURE__ */ s(
2781
- L,
2736
+ D,
2782
2737
  {
2783
2738
  path: "successMessage",
2784
2739
  blocks: e.successMessage,
@@ -2793,13 +2748,7 @@ function hn(e) {
2793
2748
  " "
2794
2749
  ] });
2795
2750
  }
2796
- const bn = {
2797
- shouldReceiveBuilderProps: {
2798
- builderBlock: !1,
2799
- builderContext: !1,
2800
- builderComponents: !1,
2801
- builderLinkComponent: !1
2802
- },
2751
+ const hn = {
2803
2752
  name: "Form:Input",
2804
2753
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2805
2754
  inputs: [
@@ -2852,11 +2801,11 @@ const bn = {
2852
2801
  }
2853
2802
  };
2854
2803
  function gn(e) {
2855
- return /* @__PURE__ */ Pe(
2804
+ return /* @__PURE__ */ Ee(
2856
2805
  "input",
2857
2806
  {
2858
2807
  ...e.attributes,
2859
- key: F() && e.defaultValue ? e.defaultValue : "default-key",
2808
+ key: $() && e.defaultValue ? e.defaultValue : "default-key",
2860
2809
  placeholder: e.placeholder,
2861
2810
  type: e.type,
2862
2811
  name: e.name,
@@ -2866,13 +2815,7 @@ function gn(e) {
2866
2815
  }
2867
2816
  );
2868
2817
  }
2869
- const pn = {
2870
- shouldReceiveBuilderProps: {
2871
- builderBlock: !1,
2872
- builderContext: !1,
2873
- builderComponents: !1,
2874
- builderLinkComponent: !1
2875
- },
2818
+ const bn = {
2876
2819
  name: "Form:Select",
2877
2820
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2878
2821
  defaultStyles: {
@@ -2915,14 +2858,14 @@ const pn = {
2915
2858
  static: !0,
2916
2859
  noWrap: !0
2917
2860
  };
2918
- function yn(e) {
2861
+ function pn(e) {
2919
2862
  var t;
2920
- return /* @__PURE__ */ Pe(
2863
+ return /* @__PURE__ */ Ee(
2921
2864
  "select",
2922
2865
  {
2923
2866
  ...e.attributes,
2924
2867
  value: e.value,
2925
- key: F() && e.defaultValue ? e.defaultValue : "default-key",
2868
+ key: $() && e.defaultValue ? e.defaultValue : "default-key",
2926
2869
  defaultValue: e.defaultValue,
2927
2870
  name: e.name,
2928
2871
  required: e.required
@@ -2930,13 +2873,7 @@ function yn(e) {
2930
2873
  (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2931
2874
  );
2932
2875
  }
2933
- const xn = {
2934
- shouldReceiveBuilderProps: {
2935
- builderBlock: !1,
2936
- builderContext: !1,
2937
- builderComponents: !1,
2938
- builderLinkComponent: !1
2939
- },
2876
+ const yn = {
2940
2877
  name: "Form:SubmitButton",
2941
2878
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2942
2879
  defaultStyles: {
@@ -2962,16 +2899,10 @@ const xn = {
2962
2899
  // TODO: defaultChildren
2963
2900
  // canHaveChildren: true,
2964
2901
  };
2965
- function vn(e) {
2902
+ function xn(e) {
2966
2903
  return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
2967
2904
  }
2968
- const Sn = {
2969
- shouldReceiveBuilderProps: {
2970
- builderBlock: !1,
2971
- builderContext: !1,
2972
- builderComponents: !1,
2973
- builderLinkComponent: !1
2974
- },
2905
+ const vn = {
2975
2906
  name: "Form:TextArea",
2976
2907
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
2977
2908
  inputs: [{
@@ -3008,7 +2939,7 @@ const Sn = {
3008
2939
  static: !0,
3009
2940
  noWrap: !0
3010
2941
  };
3011
- function kn(e) {
2942
+ function Sn(e) {
3012
2943
  return /* @__PURE__ */ s(
3013
2944
  "textarea",
3014
2945
  {
@@ -3021,13 +2952,7 @@ function kn(e) {
3021
2952
  }
3022
2953
  );
3023
2954
  }
3024
- const Cn = {
3025
- shouldReceiveBuilderProps: {
3026
- builderBlock: !1,
3027
- builderContext: !1,
3028
- builderComponents: !1,
3029
- builderLinkComponent: !1
3030
- },
2955
+ const kn = {
3031
2956
  // friendlyName?
3032
2957
  name: "Raw:Img",
3033
2958
  hideFromInsertMenu: !0,
@@ -3042,7 +2967,7 @@ const Cn = {
3042
2967
  noWrap: !0,
3043
2968
  static: !0
3044
2969
  };
3045
- function Tn(e) {
2970
+ function Cn(e) {
3046
2971
  return /* @__PURE__ */ s(
3047
2972
  "img",
3048
2973
  {
@@ -3054,10 +2979,10 @@ function Tn(e) {
3054
2979
  src: e.imgSrc || e.image,
3055
2980
  ...e.attributes
3056
2981
  },
3057
- F() && e.imgSrc || "default-key"
2982
+ $() && e.imgSrc || "default-key"
3058
2983
  );
3059
2984
  }
3060
- const In = {
2985
+ const Tn = {
3061
2986
  name: "Video",
3062
2987
  canHaveChildren: !0,
3063
2988
  defaultStyles: {
@@ -3139,13 +3064,10 @@ const In = {
3139
3064
  advanced: !0
3140
3065
  }],
3141
3066
  shouldReceiveBuilderProps: {
3142
- builderBlock: !0,
3143
- builderContext: !1,
3144
- builderComponents: !1,
3145
- builderLinkComponent: !1
3067
+ builderBlock: !0
3146
3068
  }
3147
3069
  };
3148
- function wn(e) {
3070
+ function In(e) {
3149
3071
  var i, o, r, a, l, c, u;
3150
3072
  function t() {
3151
3073
  return {
@@ -3171,7 +3093,7 @@ function wn(e) {
3171
3093
  ...t()
3172
3094
  };
3173
3095
  }
3174
- return /* @__PURE__ */ E(
3096
+ return /* @__PURE__ */ P(
3175
3097
  "div",
3176
3098
  {
3177
3099
  style: {
@@ -3246,64 +3168,64 @@ function wn(e) {
3246
3168
  }
3247
3169
  );
3248
3170
  }
3249
- const Rn = () => [{
3250
- component: an,
3251
- ...on
3171
+ const wn = () => [{
3172
+ component: on,
3173
+ ...nn
3252
3174
  }, {
3253
- component: cn,
3254
- ...rn
3175
+ component: sn,
3176
+ ...an
3255
3177
  }, {
3256
- component: hn,
3257
- ...dn
3178
+ component: fn,
3179
+ ...cn
3258
3180
  }, {
3259
3181
  component: gn,
3260
- ...bn
3182
+ ...hn
3261
3183
  }, {
3262
- component: vn,
3263
- ...xn
3184
+ component: xn,
3185
+ ...yn
3264
3186
  }, {
3265
- component: yn,
3266
- ...pn
3187
+ component: pn,
3188
+ ...bn
3267
3189
  }, {
3268
- component: kn,
3269
- ...Sn
3190
+ component: Sn,
3191
+ ...vn
3270
3192
  }, {
3271
- component: Tn,
3272
- ...Cn
3193
+ component: Cn,
3194
+ ...kn
3273
3195
  }, {
3274
- component: wn,
3275
- ...In
3276
- }], Ce = () => [{
3277
- component: it,
3196
+ component: In,
3197
+ ...Tn
3198
+ }], ke = () => [{
3199
+ component: nt,
3278
3200
  ...qt
3279
3201
  }, {
3280
- component: Lt,
3281
- ..._t
3202
+ component: $t,
3203
+ ...Kt
3282
3204
  }, {
3283
3205
  component: Dt,
3284
3206
  ...zt
3207
+ }, {
3208
+ component: jt,
3209
+ ..._t
3285
3210
  }, {
3286
3211
  component: Ut,
3287
3212
  ...Jt
3288
3213
  }, {
3289
- component: Mt,
3214
+ component: Gt,
3290
3215
  ...Yt
3291
3216
  }, {
3292
- component: Qt,
3293
- ...Gt
3294
- }, {
3295
- component: Gn,
3296
- ...Xt
3217
+ component: Yn,
3218
+ ...Qt
3297
3219
  }, {
3298
- component: nn,
3299
- ...tn
3220
+ component: tn,
3221
+ ...en
3300
3222
  }, {
3301
- component: en,
3302
- ...Zt
3223
+ component: Zt,
3224
+ ...Xt
3303
3225
  }, {
3304
- component: Kt,
3305
- ...Ht
3306
- }, ...Rn()], Bn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3226
+ component: Ht,
3227
+ ...Mt
3228
+ }, ...wn()], Rn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3307
3229
  function getAndSetVariantId() {
3308
3230
  function setCookie(name, value, days) {
3309
3231
  let expires = '';
@@ -3359,7 +3281,7 @@ const Rn = () => [{
3359
3281
  }).join('');
3360
3282
  styleEl.innerHTML = newStyleStr;
3361
3283
  }
3362
- }`, Pn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3284
+ }`, En = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3363
3285
  if (!navigator.cookieEnabled) {
3364
3286
  return;
3365
3287
  }
@@ -3393,26 +3315,26 @@ const Rn = () => [{
3393
3315
  thisScriptEl?.remove();
3394
3316
  }
3395
3317
  return;
3396
- }`, Ue = "builderIoAbTest", Me = "builderIoRenderContent", Y = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3318
+ }`, je = "builderIoAbTest", Ue = "builderIoRenderContent", Y = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3397
3319
  ...t,
3398
3320
  testVariationId: t.id,
3399
3321
  id: e == null ? void 0 : e.id
3400
- })), En = ({
3322
+ })), Bn = ({
3401
3323
  canTrack: e,
3402
3324
  content: t
3403
- }) => !(!(Y(t).length > 0) || !e || M()), Vn = (e) => e === "react" || e === "reactNative", He = Vn(_), An = () => `
3404
- window.${Ue} = ${Bn}
3405
- window.${Me} = ${Pn}
3406
- `, Nn = (e, t) => `
3407
- window.${Ue}(
3408
- "${t}",${JSON.stringify(e)}, ${He}
3409
- )`, Wn = ({
3325
+ }) => !(!(Y(t).length > 0) || !e || M()), Pn = (e) => e === "react" || e === "reactNative", Me = Pn(z), Vn = () => `
3326
+ window.${je} = ${Rn}
3327
+ window.${Ue} = ${En}
3328
+ `, An = (e, t) => `
3329
+ window.${je}(
3330
+ "${t}",${JSON.stringify(e)}, ${Me}
3331
+ )`, Nn = ({
3410
3332
  contentId: e,
3411
3333
  variationId: t
3412
- }) => `window.${Me}(
3413
- "${t}", "${e}", ${He}
3334
+ }) => `window.${Ue}(
3335
+ "${t}", "${e}", ${Me}
3414
3336
  )`;
3415
- function de(e) {
3337
+ function ce(e) {
3416
3338
  return /* @__PURE__ */ s(
3417
3339
  "script",
3418
3340
  {
@@ -3421,10 +3343,10 @@ function de(e) {
3421
3343
  }
3422
3344
  );
3423
3345
  }
3424
- function Te(e) {
3346
+ function Ce(e) {
3425
3347
  return Math.round(e * 1e3) / 1e3;
3426
3348
  }
3427
- const $n = (e, t, n = !0) => {
3349
+ const Wn = (e, t, n = !0) => {
3428
3350
  if (!(e instanceof HTMLElement))
3429
3351
  return null;
3430
3352
  let i = n ? e : e.parentElement;
@@ -3435,28 +3357,28 @@ const $n = (e, t, n = !0) => {
3435
3357
  return i;
3436
3358
  } while (i = i.parentElement);
3437
3359
  return null;
3438
- }, Fn = (e) => $n(e, (t) => {
3360
+ }, Fn = (e) => Wn(e, (t) => {
3439
3361
  const n = t.getAttribute("builder-id") || t.id;
3440
3362
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3441
- }), Ie = ({
3363
+ }), Te = ({
3442
3364
  event: e,
3443
3365
  target: t
3444
3366
  }) => {
3445
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, r = Te(i / n.width), a = Te(o / n.height);
3367
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, r = Ce(i / n.width), a = Ce(o / n.height);
3446
3368
  return {
3447
3369
  x: r,
3448
3370
  y: a
3449
3371
  };
3450
- }, Ln = (e) => {
3372
+ }, $n = (e) => {
3451
3373
  const t = e.target, n = t && Fn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3452
3374
  return {
3453
3375
  targetBuilderElement: i || void 0,
3454
3376
  metadata: {
3455
- targetOffset: t ? Ie({
3377
+ targetOffset: t ? Te({
3456
3378
  event: e,
3457
3379
  target: t
3458
3380
  }) : void 0,
3459
- builderTargetOffset: n ? Ie({
3381
+ builderTargetOffset: n ? Te({
3460
3382
  event: e,
3461
3383
  target: n
3462
3384
  }) : void 0,
@@ -3489,15 +3411,15 @@ font-weight: ${l};
3489
3411
  `.trim());
3490
3412
  }
3491
3413
  return o;
3492
- }, On = ({
3414
+ }, Ln = ({
3493
3415
  customFonts: e
3494
3416
  }) => {
3495
3417
  var t;
3496
3418
  return ((t = e == null ? void 0 : e.map((n) => Dn(n))) == null ? void 0 : t.join(" ")) || "";
3497
- }, jn = ({
3419
+ }, On = ({
3498
3420
  cssCode: e,
3499
3421
  contentId: t
3500
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Un = `
3422
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", jn = `
3501
3423
  .builder-button {
3502
3424
  all: unset;
3503
3425
  }
@@ -3514,9 +3436,9 @@ font-weight: ${l};
3514
3436
  text-align: inherit;
3515
3437
  font-family: inherit;
3516
3438
  }
3517
- `, Mn = (e) => e ? "" : Un, Hn = (e) => `variant-${e}`;
3518
- function Kn(e) {
3519
- var V, A, O, S, w, W, g;
3439
+ `, Un = (e) => e ? "" : jn, Mn = (e) => `variant-${e}`;
3440
+ function Hn(e) {
3441
+ var V, A, O, S, w, N, b;
3520
3442
  const t = ee(null);
3521
3443
  function n(h) {
3522
3444
  var v, k;
@@ -3530,7 +3452,7 @@ function Kn(e) {
3530
3452
  }));
3531
3453
  }
3532
3454
  function i(h) {
3533
- var v, k, T, N, j;
3455
+ var v, k, T, W, j;
3534
3456
  const y = {
3535
3457
  ...e.builderContextSignal.content,
3536
3458
  ...h,
@@ -3541,11 +3463,11 @@ function Kn(e) {
3541
3463
  meta: {
3542
3464
  ...(k = e.builderContextSignal.content) == null ? void 0 : k.meta,
3543
3465
  ...h == null ? void 0 : h.meta,
3544
- breakpoints: ((T = h == null ? void 0 : h.meta) == null ? void 0 : T.breakpoints) || ((j = (N = e.builderContextSignal.content) == null ? void 0 : N.meta) == null ? void 0 : j.breakpoints)
3466
+ breakpoints: ((T = h == null ? void 0 : h.meta) == null ? void 0 : T.breakpoints) || ((j = (W = e.builderContextSignal.content) == null ? void 0 : W.meta) == null ? void 0 : j.breakpoints)
3545
3467
  }
3546
3468
  };
3547
- e.setBuilderContextSignal(($) => ({
3548
- ...$,
3469
+ e.setBuilderContextSignal((F) => ({
3470
+ ...F,
3549
3471
  content: y
3550
3472
  }));
3551
3473
  }
@@ -3559,7 +3481,7 @@ function Kn(e) {
3559
3481
  () => e.contentWrapper || "div"
3560
3482
  );
3561
3483
  function l(h) {
3562
- return Xe({
3484
+ return Qe({
3563
3485
  model: e.model,
3564
3486
  trustedHosts: e.trustedHosts,
3565
3487
  callbacks: {
@@ -3573,7 +3495,7 @@ function Kn(e) {
3573
3495
  });
3574
3496
  },
3575
3497
  animation: (y) => {
3576
- $e(y);
3498
+ We(y);
3577
3499
  },
3578
3500
  contentUpdate: (y) => {
3579
3501
  i(y);
@@ -3584,7 +3506,7 @@ function Kn(e) {
3584
3506
  function c() {
3585
3507
  var y, v;
3586
3508
  const h = (v = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : v.jsCode;
3587
- h && q({
3509
+ h && K({
3588
3510
  code: h,
3589
3511
  context: e.context || {},
3590
3512
  localState: void 0,
@@ -3596,35 +3518,35 @@ function Kn(e) {
3596
3518
  enableCache: !1
3597
3519
  });
3598
3520
  }
3599
- const [u, f] = C(() => ({})), [d, m] = C(() => ({})), [b, p] = C(() => !1);
3521
+ const [u, f] = C(() => ({})), [d, m] = C(() => ({})), [g, p] = C(() => !1);
3600
3522
  function I(h) {
3601
3523
  var y, v;
3602
3524
  if (e.builderContextSignal.content) {
3603
3525
  const k = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, T = (v = e.builderContextSignal.content) == null ? void 0 : v.id;
3604
- be({
3526
+ he({
3605
3527
  type: "click",
3606
3528
  canTrack: Q(e.canTrack),
3607
3529
  contentId: T,
3608
3530
  apiKey: e.apiKey,
3609
3531
  variationId: k !== T ? k : void 0,
3610
- ...Ln(h),
3611
- unique: !b
3532
+ ...$n(h),
3533
+ unique: !g
3612
3534
  });
3613
3535
  }
3614
- b || p(!0);
3536
+ g || p(!0);
3615
3537
  }
3616
3538
  function x() {
3617
3539
  var y, v, k;
3618
3540
  const h = (k = (v = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : v.httpRequests) != null ? k : {};
3619
- Object.entries(h).forEach(([T, N]) => {
3620
- if (!N || d[T] || u[T] && !F())
3541
+ Object.entries(h).forEach(([T, W]) => {
3542
+ if (!W || d[T] || u[T] && !$())
3621
3543
  return;
3622
3544
  d[T] = !0;
3623
- const j = N.replace(
3545
+ const j = W.replace(
3624
3546
  /{{([^}]+)}}/g,
3625
- ($, Ke) => String(
3626
- q({
3627
- code: Ke,
3547
+ (F, He) => String(
3548
+ K({
3549
+ code: He,
3628
3550
  context: e.context || {},
3629
3551
  localState: void 0,
3630
3552
  rootState: e.builderContextSignal.rootState,
@@ -3633,24 +3555,24 @@ function Kn(e) {
3633
3555
  })
3634
3556
  )
3635
3557
  );
3636
- Ze(j).then(($) => $.json()).then(($) => {
3558
+ Xe(j).then((F) => F.json()).then((F) => {
3637
3559
  n({
3638
- [T]: $
3560
+ [T]: F
3639
3561
  }), u[T] = !0;
3640
- }).catch(($) => {
3641
- console.error("error fetching dynamic data", N, $);
3562
+ }).catch((F) => {
3563
+ console.error("error fetching dynamic data", W, F);
3642
3564
  }).finally(() => {
3643
3565
  d[T] = !1;
3644
3566
  });
3645
3567
  });
3646
3568
  }
3647
- function B() {
3648
- F() && window.dispatchEvent(
3569
+ function E() {
3570
+ $() && window.dispatchEvent(
3649
3571
  new CustomEvent(
3650
3572
  "builder:component:stateChange",
3651
3573
  {
3652
3574
  detail: {
3653
- state: ue(e.builderContextSignal.rootState),
3575
+ state: de(e.builderContextSignal.rootState),
3654
3576
  ref: {
3655
3577
  name: e.model
3656
3578
  }
@@ -3659,10 +3581,10 @@ function Kn(e) {
3659
3581
  )
3660
3582
  );
3661
3583
  }
3662
- return P(() => {
3584
+ return B(() => {
3663
3585
  var h, y;
3664
3586
  if (M()) {
3665
- if (F() && (window.addEventListener("message", l), Je(), Ye({
3587
+ if ($() && (window.addEventListener("message", l), _e(), Je({
3666
3588
  ...e.locale ? {
3667
3589
  locale: e.locale
3668
3590
  } : {},
@@ -3675,59 +3597,59 @@ function Kn(e) {
3675
3597
  }), Object.values(
3676
3598
  e.builderContextSignal.componentInfos
3677
3599
  ).forEach((k) => {
3678
- var N;
3679
- const T = Ge(k);
3680
- (N = window.parent) == null || N.postMessage(T, "*");
3600
+ var W;
3601
+ const T = Ye(k);
3602
+ (W = window.parent) == null || W.postMessage(T, "*");
3681
3603
  }), window.addEventListener(
3682
3604
  "builder:component:stateChangeListenerActivated",
3683
- B
3605
+ E
3684
3606
  )), e.builderContextSignal.content && Q(e.canTrack)) {
3685
- const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, T = (y = e.builderContextSignal.content) == null ? void 0 : y.id, N = e.apiKey;
3686
- be({
3607
+ const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, T = (y = e.builderContextSignal.content) == null ? void 0 : y.id, W = e.apiKey;
3608
+ he({
3687
3609
  type: "impression",
3688
3610
  canTrack: !0,
3689
3611
  contentId: T,
3690
- apiKey: N,
3612
+ apiKey: W,
3691
3613
  variationId: k !== T ? k : void 0
3692
3614
  });
3693
3615
  }
3694
- if (Qe() && !F()) {
3695
- const k = new URL(location.href).searchParams, T = k.get("builder.preview"), N = k.get(
3616
+ if (Ge() && !$()) {
3617
+ const k = new URL(location.href).searchParams, T = k.get("builder.preview"), W = k.get(
3696
3618
  `builder.overrides.${T}`
3697
3619
  ), j = k.get("apiKey") || k.get("builder.space");
3698
- T === e.model && j === e.apiKey && (!e.content || N === e.content.id) && Re({
3620
+ T === e.model && j === e.apiKey && (!e.content || W === e.content.id) && we({
3699
3621
  model: e.model,
3700
3622
  apiKey: e.apiKey,
3701
3623
  apiVersion: e.builderContextSignal.apiVersion
3702
- }).then(($) => {
3703
- $ && i($);
3624
+ }).then((F) => {
3625
+ F && i(F);
3704
3626
  });
3705
3627
  }
3706
3628
  }
3707
- }, []), P(() => {
3629
+ }, []), B(() => {
3708
3630
  e.apiKey || Z.error(
3709
3631
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3710
- ), c(), x(), B();
3711
- }, []), P(() => {
3632
+ ), c(), x(), E();
3633
+ }, []), B(() => {
3712
3634
  e.content && i(e.content);
3713
- }, [e.content]), P(() => {
3635
+ }, [e.content]), B(() => {
3714
3636
  c();
3715
- }, [(A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.jsCode]), P(() => {
3637
+ }, [(A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.jsCode]), B(() => {
3716
3638
  x();
3717
- }, [(S = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : S.httpRequests]), P(() => {
3718
- B();
3719
- }, [e.builderContextSignal.rootState]), P(() => {
3639
+ }, [(S = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : S.httpRequests]), B(() => {
3640
+ E();
3641
+ }, [e.builderContextSignal.rootState]), B(() => {
3720
3642
  e.data && n(e.data);
3721
- }, [e.data]), P(() => {
3643
+ }, [e.data]), B(() => {
3722
3644
  e.locale && n({
3723
3645
  locale: e.locale
3724
3646
  });
3725
- }, [e.locale]), P(() => () => {
3647
+ }, [e.locale]), B(() => () => {
3726
3648
  M() && (window.removeEventListener("message", l), window.removeEventListener(
3727
3649
  "builder:component:stateChangeListenerActivated",
3728
- B
3650
+ E
3729
3651
  ));
3730
- }, []), /* @__PURE__ */ s(fe.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
3652
+ }, []), /* @__PURE__ */ s(me.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
3731
3653
  r,
3732
3654
  {
3733
3655
  ref: t,
@@ -3736,8 +3658,8 @@ function Kn(e) {
3736
3658
  "builder-model": e.model,
3737
3659
  ...o(),
3738
3660
  ...e.contentWrapperProps,
3739
- className: Hn(
3740
- ((W = e.content) == null ? void 0 : W.testVariationId) || ((g = e.content) == null ? void 0 : g.id)
3661
+ className: Mn(
3662
+ ((N = e.content) == null ? void 0 : N.testVariationId) || ((b = e.content) == null ? void 0 : b.id)
3741
3663
  ),
3742
3664
  children: e.children
3743
3665
  }
@@ -3746,19 +3668,19 @@ function Kn(e) {
3746
3668
  function qn(e) {
3747
3669
  const [t, n] = C(
3748
3670
  () => `
3749
- ${jn({
3671
+ ${On({
3750
3672
  cssCode: e.cssCode,
3751
3673
  contentId: e.contentId
3752
3674
  })}
3753
- ${On({
3675
+ ${Ln({
3754
3676
  customFonts: e.customFonts
3755
3677
  })}
3756
- ${Mn(e.isNestedRender)}
3678
+ ${Un(e.isNestedRender)}
3757
3679
  `.trim()
3758
3680
  );
3759
- return /* @__PURE__ */ s(ie, { id: "builderio-content", styles: t });
3681
+ return /* @__PURE__ */ s(ne, { id: "builderio-content", styles: t });
3760
3682
  }
3761
- const _n = ({
3683
+ const Kn = ({
3762
3684
  content: e,
3763
3685
  data: t,
3764
3686
  locale: n
@@ -3786,12 +3708,12 @@ const _n = ({
3786
3708
  },
3787
3709
  meta: e == null ? void 0 : e.meta
3788
3710
  } : void 0;
3789
- function we(e) {
3790
- var c, u, f, d, m, b, p;
3711
+ function Ie(e) {
3712
+ var c, u, f, d, m, g, p;
3791
3713
  const [t, n] = C(
3792
3714
  () => {
3793
3715
  var I, x;
3794
- return Wn({
3716
+ return Nn({
3795
3717
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3796
3718
  variationId: (I = e.content) == null ? void 0 : I.testVariationId,
3797
3719
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -3807,14 +3729,14 @@ function we(e) {
3807
3729
  }
3808
3730
  const [o, r] = C(
3809
3731
  () => [
3810
- ...Ce(),
3732
+ ...ke(),
3811
3733
  ...e.customComponents || []
3812
3734
  ].reduce(
3813
- (I, { component: x, ...B }) => ({
3735
+ (I, { component: x, ...E }) => ({
3814
3736
  ...I,
3815
- [B.name]: {
3737
+ [E.name]: {
3816
3738
  component: x,
3817
- ...ge(B)
3739
+ ...ge(E)
3818
3740
  }
3819
3741
  }),
3820
3742
  {}
@@ -3825,7 +3747,7 @@ function we(e) {
3825
3747
  data: e.data
3826
3748
  }),
3827
3749
  localState: void 0,
3828
- rootState: _n({
3750
+ rootState: Kn({
3829
3751
  content: e.content,
3830
3752
  data: e.data,
3831
3753
  locale: e.locale
@@ -3836,12 +3758,12 @@ function we(e) {
3836
3758
  apiKey: e.apiKey,
3837
3759
  apiVersion: e.apiVersion,
3838
3760
  componentInfos: [
3839
- ...Ce(),
3761
+ ...ke(),
3840
3762
  ...e.customComponents || []
3841
3763
  ].reduce(
3842
- (I, { component: x, ...B }) => ({
3764
+ (I, { component: x, ...E }) => ({
3843
3765
  ...I,
3844
- [B.name]: ge(B)
3766
+ [E.name]: ge(E)
3845
3767
  }),
3846
3768
  {}
3847
3769
  ),
@@ -3850,13 +3772,13 @@ function we(e) {
3850
3772
  BlocksWrapperProps: e.blocksWrapperProps || {}
3851
3773
  }));
3852
3774
  return /* @__PURE__ */ s(
3853
- Ee.Provider,
3775
+ Be.Provider,
3854
3776
  {
3855
3777
  value: {
3856
3778
  registeredComponents: o
3857
3779
  },
3858
- children: /* @__PURE__ */ E(
3859
- Kn,
3780
+ children: /* @__PURE__ */ P(
3781
+ Hn,
3860
3782
  {
3861
3783
  content: e.content,
3862
3784
  data: e.data,
@@ -3874,7 +3796,7 @@ function we(e) {
3874
3796
  setBuilderContextSignal: l,
3875
3797
  children: [
3876
3798
  e.isSsrAbTest ? /* @__PURE__ */ s(
3877
- de,
3799
+ ce,
3878
3800
  {
3879
3801
  id: "builderio-variant-visibility",
3880
3802
  scriptStr: t
@@ -3890,9 +3812,9 @@ function we(e) {
3890
3812
  }
3891
3813
  ),
3892
3814
  /* @__PURE__ */ s(
3893
- L,
3815
+ D,
3894
3816
  {
3895
- blocks: (p = (b = a.content) == null ? void 0 : b.data) == null ? void 0 : p.blocks,
3817
+ blocks: (p = (g = a.content) == null ? void 0 : g.data) == null ? void 0 : p.blocks,
3896
3818
  context: a,
3897
3819
  registeredComponents: o,
3898
3820
  linkComponent: e.linkComponent
@@ -3904,17 +3826,17 @@ function we(e) {
3904
3826
  }
3905
3827
  );
3906
3828
  }
3907
- function Jn(e) {
3829
+ function _n(e) {
3908
3830
  var a;
3909
3831
  const [t, n] = C(
3910
- () => En({
3832
+ () => Bn({
3911
3833
  canTrack: Q(e.canTrack),
3912
3834
  content: e.content
3913
3835
  })
3914
3836
  );
3915
3837
  function i() {
3916
3838
  var l;
3917
- return Nn(
3839
+ return An(
3918
3840
  Y(e.content).map((c) => ({
3919
3841
  id: c.testVariationId,
3920
3842
  testRatio: c.testRatio
@@ -3930,38 +3852,38 @@ function Jn(e) {
3930
3852
  return t ? {
3931
3853
  ...e.content,
3932
3854
  testVariationId: (l = e.content) == null ? void 0 : l.id
3933
- } : et({
3855
+ } : Ze({
3934
3856
  item: e.content,
3935
3857
  canTrack: Q(e.canTrack)
3936
3858
  });
3937
3859
  }
3938
- return P(() => {
3939
- }, []), P(() => {
3940
- }), /* @__PURE__ */ E(R, { children: [
3941
- !e.isNestedRender && _ !== "reactNative" ? /* @__PURE__ */ s(
3942
- de,
3860
+ return B(() => {
3861
+ }, []), B(() => {
3862
+ }), /* @__PURE__ */ P(R, { children: [
3863
+ !e.isNestedRender && z !== "reactNative" ? /* @__PURE__ */ s(
3864
+ ce,
3943
3865
  {
3944
3866
  id: "builderio-init-variants-fns",
3945
- scriptStr: An()
3867
+ scriptStr: Vn()
3946
3868
  }
3947
3869
  ) : null,
3948
- t ? /* @__PURE__ */ E(R, { children: [
3870
+ t ? /* @__PURE__ */ P(R, { children: [
3949
3871
  /* @__PURE__ */ s(
3950
- ie,
3872
+ ne,
3951
3873
  {
3952
3874
  id: "builderio-variants",
3953
3875
  styles: o()
3954
3876
  }
3955
3877
  ),
3956
3878
  /* @__PURE__ */ s(
3957
- de,
3879
+ ce,
3958
3880
  {
3959
3881
  id: "builderio-variants-visibility",
3960
3882
  scriptStr: i()
3961
3883
  }
3962
3884
  ),
3963
3885
  (a = Y(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
3964
- we,
3886
+ Ie,
3965
3887
  {
3966
3888
  isNestedRender: e.isNestedRender,
3967
3889
  content: l,
@@ -3987,7 +3909,7 @@ function Jn(e) {
3987
3909
  ))
3988
3910
  ] }) : null,
3989
3911
  /* @__PURE__ */ s(
3990
- we,
3912
+ Ie,
3991
3913
  {
3992
3914
  isNestedRender: e.isNestedRender,
3993
3915
  content: r(),
@@ -4012,13 +3934,13 @@ function Jn(e) {
4012
3934
  )
4013
3935
  ] });
4014
3936
  }
4015
- const Yn = async ({
3937
+ const Jn = async ({
4016
3938
  builderContextValue: e,
4017
3939
  symbol: t
4018
3940
  }) => {
4019
3941
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
4020
3942
  (e != null && e.apiKey))
4021
- return Re({
3943
+ return we({
4022
3944
  model: t.model,
4023
3945
  apiKey: e.apiKey,
4024
3946
  apiVersion: e.apiVersion,
@@ -4031,7 +3953,7 @@ const Yn = async ({
4031
3953
  Z.error("Could not fetch symbol content: ", n);
4032
3954
  });
4033
3955
  };
4034
- function Gn(e) {
3956
+ function Yn(e) {
4035
3957
  var l, c, u, f;
4036
3958
  function t() {
4037
3959
  return "div";
@@ -4042,7 +3964,7 @@ function Gn(e) {
4042
3964
  function i() {
4043
3965
  var d, m;
4044
3966
  return [
4045
- e.attributes[K()],
3967
+ e.attributes[q()],
4046
3968
  "builder-symbol",
4047
3969
  (d = e.symbol) != null && d.inline ? "builder-inline-symbol" : void 0,
4048
3970
  (m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
@@ -4053,18 +3975,18 @@ function Gn(e) {
4053
3975
  return (d = e.symbol) == null ? void 0 : d.content;
4054
3976
  });
4055
3977
  function a() {
4056
- o || Yn({
3978
+ o || Jn({
4057
3979
  symbol: e.symbol,
4058
3980
  builderContextValue: e.builderContext
4059
3981
  }).then((d) => {
4060
3982
  d && r(d);
4061
3983
  });
4062
3984
  }
4063
- return P(() => {
4064
- }, []), P(() => {
3985
+ return B(() => {
3986
+ }, []), B(() => {
4065
3987
  a();
4066
3988
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
4067
- Jn,
3989
+ _n,
4068
3990
  {
4069
3991
  isNestedRender: !0,
4070
3992
  apiVersion: e.builderContext.apiVersion,
@@ -4089,15 +4011,15 @@ function Gn(e) {
4089
4011
  ) });
4090
4012
  }
4091
4013
  export {
4092
- L as Blocks,
4093
- fe as BuilderContext,
4094
- it as Button,
4095
- Lt as Columns,
4096
- Jn as Content,
4014
+ D as Blocks,
4015
+ me as BuilderContext,
4016
+ nt as Button,
4017
+ $t as Columns,
4018
+ _n as Content,
4097
4019
  Dt as Fragment,
4098
- Ut as Image,
4099
- Mt as Section,
4100
- Gn as Symbol,
4101
- nn as Text,
4102
- wn as Video
4020
+ jt as Image,
4021
+ Ut as Section,
4022
+ Yn as Symbol,
4023
+ tn as Text,
4024
+ In as Video
4103
4025
  };