@builder.io/sdk-react-nextjs 0.15.1 → 0.16.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 (37) hide show
  1. package/lib/browser/blocks-exports.cjs +24 -24
  2. package/lib/browser/blocks-exports.mjs +450 -504
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/init.cjs +1 -1
  6. package/lib/browser/init.mjs +1 -1
  7. package/lib/browser/{server-entry-34aed7a8.js → server-entry-86458005.js} +1 -1
  8. package/lib/browser/{server-entry-3ae58f1b.cjs → server-entry-d8d62ced.cjs} +1 -1
  9. package/lib/browser/server-entry.cjs +1 -1
  10. package/lib/browser/server-entry.mjs +1 -1
  11. package/lib/edge/blocks-exports.cjs +32 -32
  12. package/lib/edge/blocks-exports.mjs +689 -743
  13. package/lib/edge/index.cjs +1 -1
  14. package/lib/edge/index.mjs +1 -1
  15. package/lib/edge/init.cjs +1 -1
  16. package/lib/edge/init.mjs +1 -1
  17. package/lib/edge/{server-entry-34aed7a8.js → server-entry-86458005.js} +1 -1
  18. package/lib/edge/{server-entry-3ae58f1b.cjs → server-entry-d8d62ced.cjs} +1 -1
  19. package/lib/edge/server-entry.cjs +1 -1
  20. package/lib/edge/server-entry.mjs +1 -1
  21. package/lib/node/blocks-exports.cjs +23 -23
  22. package/lib/node/blocks-exports.mjs +442 -496
  23. package/lib/node/index.cjs +1 -1
  24. package/lib/node/index.mjs +2 -2
  25. package/lib/node/init.cjs +1 -1
  26. package/lib/node/init.mjs +2 -2
  27. package/lib/node/{node-runtime-ca94f96b.js → node-runtime-423addf8.js} +1 -1
  28. package/lib/node/{node-runtime-54f0fc0a.cjs → node-runtime-6421aefe.cjs} +1 -1
  29. package/lib/node/{server-entry-4f9f76d3.js → server-entry-1644208f.js} +1 -1
  30. package/lib/node/{server-entry-d0dda572.cjs → server-entry-6f84d0f2.cjs} +1 -1
  31. package/lib/node/server-entry.cjs +1 -1
  32. package/lib/node/server-entry.mjs +1 -1
  33. package/package.json +1 -1
  34. package/types/cjs/components/block/block.helpers.d.ts +8 -8
  35. package/types/cjs/constants/sdk-version.d.ts +1 -1
  36. package/types/esm/components/block/block.helpers.d.ts +8 -8
  37. package/types/esm/constants/sdk-version.d.ts +1 -1
@@ -1,18 +1,18 @@
1
1
  "use client";
2
- var Ve = Object.defineProperty;
3
- var $e = (e, t, n) => t in e ? Ve(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
- var te = (e, t, n) => ($e(e, typeof t != "symbol" ? t + "" : t, n), n);
5
- import { jsx as c, Fragment as C, jsxs as P } from "react/jsx-runtime";
6
- import { TARGET as H, isEditing as V, isBrowser as F, getUserAttributes as Le, checkIsDefined as z, logger as J, fastClone as oe, init as Fe, getDefaultCanTrack as q, _track as me, isPreviewing as Oe, createEditorListener as De, fetch as je, registerInsertMenu as Ue, setupBrowserForEditing as He, createRegisterComponentMessage as Me, fetchOneEntry as Ce, serializeComponentInfo as fe, handleABTestingSync as _e } from "./server-entry-34aed7a8.js";
7
- import { useRef as ae, useState as A, useEffect as T, createContext as Ke } from "react";
8
- import { useRouter as ze } from "next/navigation";
2
+ var Ae = Object.defineProperty;
3
+ var Ve = (e, t, n) => t in e ? Ae(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
+ var ee = (e, t, n) => (Ve(e, typeof t != "symbol" ? t + "" : t, n), n);
5
+ import { jsx as c, Fragment as w, jsxs as E } from "react/jsx-runtime";
6
+ import { TARGET as M, isEditing as V, isBrowser as L, getUserAttributes as $e, checkIsDefined as z, logger as J, fastClone as ie, init as Fe, getDefaultCanTrack as q, _track as ue, isPreviewing as Le, createEditorListener as Oe, fetch as De, registerInsertMenu as je, setupBrowserForEditing as He, createRegisterComponentMessage as Me, fetchOneEntry as ke, serializeComponentInfo as me, handleABTestingSync as Ue } from "./server-entry-86458005.js";
7
+ import { useRef as oe, useState as N, useEffect as R, createContext as _e } from "react";
8
+ import { useRouter as Ke } from "next/navigation";
9
9
  import "lru-cache";
10
- const qe = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ye = (e) => typeof e == "string" && qe.has(e.toLowerCase());
11
- function re(e) {
12
- return /* @__PURE__ */ c(C, { children: Ye(e.TagName) ? /* @__PURE__ */ c(C, { children: /* @__PURE__ */ c(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ c(C, { children: typeof e.TagName == "string" ? /* @__PURE__ */ c(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ c(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
10
+ const ze = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), qe = (e) => typeof e == "string" && ze.has(e.toLowerCase());
11
+ function ae(e) {
12
+ return /* @__PURE__ */ c(w, { children: qe(e.TagName) ? /* @__PURE__ */ c(w, { children: /* @__PURE__ */ c(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ c(w, { children: typeof e.TagName == "string" ? /* @__PURE__ */ c(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ c(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
13
13
  }
14
14
  const j = () => {
15
- switch (H) {
15
+ switch (M) {
16
16
  case "react":
17
17
  case "reactNative":
18
18
  case "rsc":
@@ -25,7 +25,7 @@ const j = () => {
25
25
  return "class";
26
26
  }
27
27
  };
28
- function Je(e) {
28
+ function Ye(e) {
29
29
  function t() {
30
30
  return {
31
31
  ...e.attributes,
@@ -40,7 +40,7 @@ function Je(e) {
40
40
  };
41
41
  }
42
42
  return /* @__PURE__ */ c(
43
- re,
43
+ ae,
44
44
  {
45
45
  attributes: t(),
46
46
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
@@ -49,14 +49,14 @@ function Je(e) {
49
49
  }
50
50
  );
51
51
  }
52
- function Qe(e) {
52
+ function Je(e) {
53
53
  var t;
54
54
  return {
55
55
  ...(t = e.component) == null ? void 0 : t.options,
56
56
  ...e.options
57
57
  };
58
58
  }
59
- const Ge = ({
59
+ const Qe = ({
60
60
  builder: e,
61
61
  context: t,
62
62
  event: n,
@@ -68,14 +68,14 @@ const Ge = ({
68
68
  builder: e,
69
69
  context: t,
70
70
  event: n
71
- }), Xe = () => ({
71
+ }), Ge = () => ({
72
72
  isEditing: V(),
73
- isBrowser: F(),
74
- isServer: !F(),
75
- getUserAttributes: () => Le()
76
- }), Ze = (e, {
73
+ isBrowser: L(),
74
+ isServer: !L(),
75
+ getUserAttributes: () => $e()
76
+ }), Xe = (e, {
77
77
  isExpression: t = !0
78
- }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, he = ({
78
+ }) => /* 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, fe = ({
79
79
  code: e,
80
80
  builder: t,
81
81
  context: n,
@@ -84,11 +84,11 @@ const Ge = ({
84
84
  rootSetState: a,
85
85
  rootState: r
86
86
  }) => {
87
- const l = Ge({
87
+ const l = Qe({
88
88
  builder: t,
89
89
  context: n,
90
90
  event: i,
91
- state: Ie({
91
+ state: Ce({
92
92
  rootState: r,
93
93
  localState: o,
94
94
  rootSetState: a
@@ -96,7 +96,7 @@ const Ge = ({
96
96
  });
97
97
  return new Function(...l.map(([s]) => s), e)(...l.map(([, s]) => s));
98
98
  };
99
- function Ie({
99
+ function Ce({
100
100
  rootState: e,
101
101
  localState: t,
102
102
  rootSetState: n
@@ -106,7 +106,7 @@ function Ie({
106
106
  if (t && o in t)
107
107
  return t[o];
108
108
  const a = i[o];
109
- return typeof a == "object" && a !== null ? Ie({
109
+ return typeof a == "object" && a !== null ? Ce({
110
110
  rootState: a,
111
111
  localState: void 0,
112
112
  rootSetState: n ? (r) => {
@@ -121,17 +121,17 @@ function Ie({
121
121
  }
122
122
  });
123
123
  }
124
- function et() {
124
+ function Ze() {
125
125
  var e;
126
126
  return typeof process != "undefined" && z((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
127
127
  }
128
- const tt = () => {
128
+ const et = () => {
129
129
  var i;
130
- if (!et())
130
+ if (!Ze())
131
131
  return !1;
132
132
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
133
133
  return e && t && !n ? (J.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;
134
- }, nt = (e) => (F() || tt(), he(e)), W = class W {
134
+ }, tt = (e) => (L() || et(), fe(e)), W = class W {
135
135
  static getCacheKey(t) {
136
136
  return JSON.stringify({
137
137
  ...t,
@@ -149,9 +149,9 @@ const tt = () => {
149
149
  });
150
150
  }
151
151
  };
152
- te(W, "cacheLimit", 20), te(W, "cache", /* @__PURE__ */ new Map());
153
- let L = W;
154
- function U({
152
+ ee(W, "cacheLimit", 20), ee(W, "cache", /* @__PURE__ */ new Map());
153
+ let F = W;
154
+ function H({
155
155
  code: e,
156
156
  context: t,
157
157
  localState: n,
@@ -164,10 +164,10 @@ function U({
164
164
  if (e === "")
165
165
  return;
166
166
  const s = {
167
- code: Ze(e, {
167
+ code: Xe(e, {
168
168
  isExpression: r
169
169
  }),
170
- builder: Xe(),
170
+ builder: Ge(),
171
171
  context: t,
172
172
  event: a,
173
173
  rootSetState: o,
@@ -175,15 +175,15 @@ function U({
175
175
  localState: n
176
176
  };
177
177
  if (l) {
178
- const d = L.getCacheKey(s), m = L.getCachedValue(d);
178
+ const d = F.getCacheKey(s), m = F.getCachedValue(d);
179
179
  if (m)
180
180
  return m.value;
181
181
  }
182
182
  try {
183
- const d = nt(s);
183
+ const d = tt(s);
184
184
  if (l) {
185
- const m = L.getCacheKey(s);
186
- L.setCachedValue(m, d);
185
+ const m = F.getCacheKey(s);
186
+ F.setCachedValue(m, d);
187
187
  }
188
188
  return d;
189
189
  } catch (d) {
@@ -193,13 +193,13 @@ function U({
193
193
  return;
194
194
  }
195
195
  }
196
- const it = (e, t, n) => {
196
+ const nt = (e, t, n) => {
197
197
  if (Object(e) !== e)
198
198
  return e;
199
199
  const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
200
200
  return i.slice(0, -1).reduce((o, a, r) => Object(o[a]) === o[a] ? o[a] : o[a] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
201
201
  };
202
- const ot = ({
202
+ const it = ({
203
203
  block: e,
204
204
  context: t,
205
205
  localState: n,
@@ -208,7 +208,7 @@ const ot = ({
208
208
  }) => {
209
209
  if (!e.bindings)
210
210
  return e;
211
- const a = oe(e), r = {
211
+ const a = ie(e), r = {
212
212
  ...a,
213
213
  properties: {
214
214
  ...a.properties
@@ -218,7 +218,7 @@ const ot = ({
218
218
  }
219
219
  };
220
220
  for (const l in e.bindings) {
221
- const s = e.bindings[l], d = U({
221
+ const s = e.bindings[l], d = H({
222
222
  code: s,
223
223
  localState: n,
224
224
  rootState: i,
@@ -226,7 +226,7 @@ const ot = ({
226
226
  context: t,
227
227
  enableCache: !0
228
228
  });
229
- it(r, l, d);
229
+ nt(r, l, d);
230
230
  }
231
231
  return r;
232
232
  };
@@ -239,7 +239,7 @@ function Y({
239
239
  rootSetState: a
240
240
  }) {
241
241
  const r = e;
242
- return n ? ot({
242
+ return n ? it({
243
243
  block: r,
244
244
  localState: i,
245
245
  rootState: o,
@@ -247,37 +247,37 @@ function Y({
247
247
  context: t
248
248
  }) : r;
249
249
  }
250
- const le = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "", we = (e) => Object.entries(e).map(([n, i]) => {
250
+ const re = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "", we = (e) => Object.entries(e).map(([n, i]) => {
251
251
  if (typeof i == "string")
252
- return `${le(n)}: ${i};`;
253
- }).filter(z), at = (e) => we(e).join(`
252
+ return `${re(n)}: ${i};`;
253
+ }).filter(z), ot = (e) => we(e).join(`
254
254
  `), _ = ({
255
255
  mediaQuery: e,
256
256
  className: t,
257
257
  styles: n
258
258
  }) => {
259
259
  const i = `.${t} {
260
- ${at(n)}
260
+ ${ot(n)}
261
261
  }`;
262
262
  return e ? `${e} {
263
263
  ${i}
264
264
  }` : i;
265
265
  };
266
- function rt({
266
+ function at({
267
267
  style: e
268
268
  }) {
269
269
  return e;
270
270
  }
271
- const lt = ({
271
+ const rt = ({
272
272
  block: e,
273
273
  context: t
274
- }) => Te(rt({
274
+ }) => Ie(at({
275
275
  style: e.style || {},
276
276
  context: t,
277
277
  block: e
278
278
  }));
279
- function Te(e) {
280
- switch (H) {
279
+ function Ie(e) {
280
+ switch (M) {
281
281
  case "svelte":
282
282
  case "vue":
283
283
  case "solid":
@@ -290,7 +290,7 @@ function Te(e) {
290
290
  return e;
291
291
  }
292
292
  }
293
- const ct = ({
293
+ const lt = ({
294
294
  block: e,
295
295
  context: t,
296
296
  registeredComponents: n
@@ -312,7 +312,7 @@ const ct = ({
312
312
  console.warn(`
313
313
  Could not find a registered component named "${i}".
314
314
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
315
- }, st = ({
315
+ }, ct = ({
316
316
  block: e,
317
317
  context: t
318
318
  }) => {
@@ -322,7 +322,7 @@ const ct = ({
322
322
  } = e;
323
323
  if (!(n != null && n.collection))
324
324
  return;
325
- const o = U({
325
+ const o = H({
326
326
  code: n.collection,
327
327
  localState: t.localState,
328
328
  rootState: t.rootState,
@@ -346,23 +346,27 @@ const ct = ({
346
346
  },
347
347
  block: i
348
348
  }));
349
- }, Q = (e) => ({
350
- // once we bump to a major version, toggle this to `false`.
351
- builderBlock: !0,
352
- // once we bump to a major version, toggle this to `false`.
353
- builderContext: !0,
354
- builderComponents: !1,
355
- builderLinkComponent: !1,
356
- ...e
357
- }), dt = (e, t) => e ? Q(e.shouldReceiveBuilderProps).builderLinkComponent ? {
358
- builderLinkComponent: t
359
- } : {} : {}, ut = (e, t) => e ? Q(e.shouldReceiveBuilderProps).builderComponents ? {
360
- builderComponents: t
361
- } : {} : {}, mt = (e, t) => e ? Q(e.shouldReceiveBuilderProps).builderBlock ? {
362
- builderBlock: t
363
- } : {} : {}, ft = (e, t) => e ? Q(e.shouldReceiveBuilderProps).builderContext ? {
364
- builderContext: t
365
- } : {} : {}, Re = {
349
+ }, st = (e, t) => {
350
+ var n;
351
+ return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
352
+ builderLinkComponent: t
353
+ } : {};
354
+ }, dt = (e, t) => {
355
+ var n;
356
+ return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
357
+ builderComponents: t
358
+ } : {};
359
+ }, ut = (e, t) => {
360
+ var n;
361
+ return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
362
+ builderBlock: t
363
+ } : {};
364
+ }, mt = (e, t) => {
365
+ var n;
366
+ return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
367
+ builderContext: t
368
+ } : {};
369
+ }, Te = {
366
370
  small: {
367
371
  min: 320,
368
372
  default: 321,
@@ -378,11 +382,11 @@ const ct = ({
378
382
  default: 991,
379
383
  max: 1200
380
384
  }
381
- }, be = (e, t = Re) => `@media (max-width: ${t[e].max}px)`, Pe = ({
385
+ }, he = (e, t = Te) => `@media (max-width: ${t[e].max}px)`, Re = ({
382
386
  small: e,
383
387
  medium: t
384
388
  }) => {
385
- const n = oe(Re);
389
+ const n = ie(Te);
386
390
  if (!e || !t)
387
391
  return n;
388
392
  const i = Math.floor(e / 2);
@@ -405,7 +409,7 @@ const ct = ({
405
409
  default: a + 1
406
410
  }, n;
407
411
  };
408
- function G(e) {
412
+ function Q(e) {
409
413
  return /* @__PURE__ */ c(
410
414
  "style",
411
415
  {
@@ -414,7 +418,7 @@ function G(e) {
414
418
  }
415
419
  );
416
420
  }
417
- function ht(e) {
421
+ function ft(e) {
418
422
  const t = function() {
419
423
  const o = Y({
420
424
  block: e.block,
@@ -426,7 +430,7 @@ function ht(e) {
426
430
  });
427
431
  return z(o.hide) ? !o.hide : z(o.show) ? o.show : !0;
428
432
  }, n = function() {
429
- var x, g, I;
433
+ var S, b, k;
430
434
  const o = Y({
431
435
  block: e.block,
432
436
  localState: e.context.localState,
@@ -434,37 +438,37 @@ function ht(e) {
434
438
  rootSetState: e.context.rootSetState,
435
439
  context: e.context.context,
436
440
  shouldEvaluateBindings: !0
437
- }), a = o.responsiveStyles, r = e.context.content, l = Pe(
438
- ((x = r == null ? void 0 : r.meta) == null ? void 0 : x.breakpoints) || {}
441
+ }), a = o.responsiveStyles, r = e.context.content, l = Re(
442
+ ((S = r == null ? void 0 : r.meta) == null ? void 0 : S.breakpoints) || {}
439
443
  ), s = a == null ? void 0 : a.large, d = a == null ? void 0 : a.medium, m = a == null ? void 0 : a.small, u = o.id;
440
444
  if (!u)
441
445
  return "";
442
446
  const h = s ? _({
443
447
  className: u,
444
448
  styles: s
445
- }) : "", k = d ? _({
449
+ }) : "", x = d ? _({
446
450
  className: u,
447
451
  styles: d,
448
- mediaQuery: be(
452
+ mediaQuery: he(
449
453
  "medium",
450
454
  l
451
455
  )
452
- }) : "", w = m ? _({
456
+ }) : "", I = m ? _({
453
457
  className: u,
454
458
  styles: m,
455
- mediaQuery: be(
459
+ mediaQuery: he(
456
460
  "small",
457
461
  l
458
462
  )
459
- }) : "", y = o.animations && o.animations.find((R) => R.trigger === "hover");
460
- let N = "";
463
+ }) : "", y = o.animations && o.animations.find((T) => T.trigger === "hover");
464
+ let A = "";
461
465
  if (y) {
462
- const R = ((I = (g = y.steps) == null ? void 0 : g[1]) == null ? void 0 : I.styles) || {};
463
- N = _({
466
+ const T = ((k = (b = y.steps) == null ? void 0 : b[1]) == null ? void 0 : k.styles) || {};
467
+ A = _({
464
468
  className: `${u}:hover`,
465
469
  styles: {
466
- ...R,
467
- transition: `all ${y.duration}s ${le(
470
+ ...T,
471
+ transition: `all ${y.duration}s ${re(
468
472
  y.easing
469
473
  )}`,
470
474
  transitionDelay: y.delay ? `${y.delay}s` : "0s"
@@ -473,17 +477,17 @@ function ht(e) {
473
477
  }
474
478
  return [
475
479
  h,
476
- k,
477
- w,
478
- N
480
+ x,
481
+ I,
482
+ A
479
483
  ].join(" ");
480
484
  };
481
- return /* @__PURE__ */ c(C, { children: n() && t() ? /* @__PURE__ */ c(C, { children: /* @__PURE__ */ c(G, { id: "builderio-block", styles: n() }) }) : null });
485
+ return /* @__PURE__ */ c(w, { children: n() && t() ? /* @__PURE__ */ c(w, { children: /* @__PURE__ */ c(Q, { id: "builderio-block", styles: n() }) }) : null });
482
486
  }
483
- function bt(e) {
487
+ function ht(e) {
484
488
  return e.charAt(0).toUpperCase() + e.slice(1);
485
489
  }
486
- const gt = (e) => `on${bt(e)}`, yt = (e, t) => (n) => U({
490
+ const gt = (e) => `on${ht(e)}`, bt = (e, t) => (n) => H({
487
491
  code: e,
488
492
  context: t.context,
489
493
  localState: t.localState,
@@ -493,7 +497,7 @@ const gt = (e) => `on${bt(e)}`, yt = (e, t) => (n) => U({
493
497
  isExpression: !1,
494
498
  enableCache: !0
495
499
  });
496
- function Be(e) {
500
+ function Ee(e) {
497
501
  var i;
498
502
  const t = {}, n = (i = e.block.actions) != null ? i : {};
499
503
  for (const o in n) {
@@ -502,7 +506,7 @@ function Be(e) {
502
506
  const a = n[o];
503
507
  let r = gt(o);
504
508
  if (e.stripPrefix)
505
- switch (H) {
509
+ switch (M) {
506
510
  case "vue":
507
511
  r = r.replace("v-on:", "");
508
512
  break;
@@ -510,49 +514,49 @@ function Be(e) {
510
514
  r = r.replace("on:", "");
511
515
  break;
512
516
  }
513
- t[r] = yt(a, e);
517
+ t[r] = bt(a, e);
514
518
  }
515
519
  return t;
516
520
  }
517
- function pt({
521
+ function yt({
518
522
  properties: e
519
523
  }) {
520
524
  return e;
521
525
  }
522
- const vt = (e) => ({
526
+ const pt = (e) => ({
523
527
  href: e.href
524
528
  });
525
- function ce({
529
+ function le({
526
530
  block: e,
527
531
  context: t
528
532
  }) {
529
533
  var i;
530
534
  const n = {
531
- ...vt(e),
535
+ ...pt(e),
532
536
  ...e.properties,
533
537
  "builder-id": e.id,
534
- style: lt({
538
+ style: rt({
535
539
  block: e,
536
540
  context: t
537
541
  }),
538
542
  [j()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
539
543
  };
540
- return pt({
544
+ return yt({
541
545
  properties: n,
542
546
  context: t,
543
547
  block: e
544
548
  });
545
549
  }
546
- function xt(e) {
550
+ function vt(e) {
547
551
  return /* @__PURE__ */ c(
548
- re,
552
+ ae,
549
553
  {
550
554
  TagName: e.Wrapper,
551
- attributes: ce({
555
+ attributes: le({
552
556
  block: e.block,
553
557
  context: e.context
554
558
  }),
555
- actionAttributes: Be({
559
+ actionAttributes: Ee({
556
560
  block: e.block,
557
561
  rootState: e.context.rootState,
558
562
  rootSetState: e.context.rootSetState,
@@ -564,14 +568,14 @@ function xt(e) {
564
568
  }
565
569
  );
566
570
  }
567
- function kt(e) {
571
+ function St(e) {
568
572
  function t() {
569
573
  return e.includeBlockProps ? {
570
- ...ce({
574
+ ...le({
571
575
  block: e.block,
572
576
  context: e.context
573
577
  }),
574
- ...Be({
578
+ ...Ee({
575
579
  block: e.block,
576
580
  rootState: e.context.rootState,
577
581
  rootSetState: e.context.rootSetState,
@@ -582,7 +586,7 @@ function kt(e) {
582
586
  }
583
587
  return /* @__PURE__ */ c(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
584
588
  }
585
- const St = ({
589
+ const xt = ({
586
590
  componentOptions: e,
587
591
  builderBlock: t,
588
592
  context: n,
@@ -598,7 +602,7 @@ const St = ({
598
602
  * component itself directly. Otherwise, they are provided to the wrapper element.
599
603
  */
600
604
  ...o ? {
601
- attributes: ce({
605
+ attributes: le({
602
606
  block: t,
603
607
  context: r
604
608
  })
@@ -614,11 +618,11 @@ const St = ({
614
618
  };
615
619
  function ge(e) {
616
620
  var n;
617
- const t = e.isInteractive ? kt : e.componentRef;
618
- return /* @__PURE__ */ c(C, { children: e.componentRef ? /* @__PURE__ */ c(C, { children: /* @__PURE__ */ c(
621
+ const t = e.isInteractive ? St : e.componentRef;
622
+ return /* @__PURE__ */ c(w, { children: e.componentRef ? /* @__PURE__ */ c(w, { children: /* @__PURE__ */ c(
619
623
  t,
620
624
  {
621
- ...St({
625
+ ...xt({
622
626
  componentOptions: e.componentOptions,
623
627
  builderBlock: e.builderBlock,
624
628
  context: e.context,
@@ -629,7 +633,7 @@ function ge(e) {
629
633
  contextValue: e.context
630
634
  }),
631
635
  children: (n = e.blockChildren) == null ? void 0 : n.map((i) => /* @__PURE__ */ c(
632
- X,
636
+ G,
633
637
  {
634
638
  block: i,
635
639
  context: e.context,
@@ -641,10 +645,10 @@ function ge(e) {
641
645
  }
642
646
  ) }) : null });
643
647
  }
644
- function Ct(e) {
648
+ function kt(e) {
645
649
  const t = e.repeatContext;
646
650
  return /* @__PURE__ */ c(
647
- X,
651
+ G,
648
652
  {
649
653
  block: e.block,
650
654
  context: t,
@@ -653,16 +657,16 @@ function Ct(e) {
653
657
  }
654
658
  );
655
659
  }
656
- function X(e) {
660
+ function G(e) {
657
661
  var s, d, m;
658
662
  const t = function() {
659
- return ct({
663
+ return lt({
660
664
  block: e.block,
661
665
  context: e.context,
662
666
  registeredComponents: e.registeredComponents
663
667
  });
664
668
  }, n = function() {
665
- return st({
669
+ return ct({
666
670
  block: e.block,
667
671
  context: e.context
668
672
  });
@@ -677,28 +681,28 @@ function X(e) {
677
681
  shouldEvaluateBindings: !0
678
682
  });
679
683
  }, o = function() {
680
- var k;
681
- return e.block.tagName === "a" || ((k = i().properties) == null ? void 0 : k.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
684
+ var x;
685
+ return e.block.tagName === "a" || ((x = i().properties) == null ? void 0 : x.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
682
686
  }, a = function() {
683
- var w, y;
684
- if ((w = e.block.repeat) != null && w.collection)
687
+ var I, y;
688
+ if ((I = e.block.repeat) != null && I.collection)
685
689
  return !!((y = n()) != null && y.length);
686
690
  const h = "hide" in i() ? i().hide : !1;
687
691
  return ("show" in i() ? i().show : !0) && !h;
688
692
  }, r = function() {
689
- var k, w;
690
- return !((k = t()) != null && k.component) && !n() ? (w = i().children) != null ? w : [] : [];
693
+ var x, I;
694
+ return !((x = t()) != null && x.component) && !n() ? (I = i().children) != null ? I : [] : [];
691
695
  }, l = function() {
692
- var h, k, w, y;
696
+ var h, x, I, y;
693
697
  return {
694
698
  blockChildren: (h = i().children) != null ? h : [],
695
- componentRef: (k = t()) == null ? void 0 : k.component,
699
+ componentRef: (x = t()) == null ? void 0 : x.component,
696
700
  componentOptions: {
697
- ...Qe(i()),
698
- ...mt(t(), i()),
699
- ...ft(t(), e.context),
700
- ...dt(t(), e.linkComponent),
701
- ...ut(
701
+ ...Je(i()),
702
+ ...ut(t(), i()),
703
+ ...mt(t(), e.context),
704
+ ...st(t(), e.linkComponent),
705
+ ...dt(
702
706
  t(),
703
707
  e.registeredComponents
704
708
  )
@@ -707,13 +711,13 @@ function X(e) {
707
711
  linkComponent: e.linkComponent,
708
712
  registeredComponents: e.registeredComponents,
709
713
  builderBlock: i(),
710
- includeBlockProps: ((w = t()) == null ? void 0 : w.noWrap) === !0,
714
+ includeBlockProps: ((I = t()) == null ? void 0 : I.noWrap) === !0,
711
715
  isInteractive: !((y = t()) != null && y.isRSC)
712
716
  };
713
717
  };
714
- return /* @__PURE__ */ c(C, { children: a() ? /* @__PURE__ */ P(C, { children: [
715
- /* @__PURE__ */ c(ht, { block: e.block, context: e.context }),
716
- (s = t()) != null && s.noWrap ? /* @__PURE__ */ c(C, { children: /* @__PURE__ */ c(
718
+ return /* @__PURE__ */ c(w, { children: a() ? /* @__PURE__ */ E(w, { children: [
719
+ /* @__PURE__ */ c(ft, { block: e.block, context: e.context }),
720
+ (s = t()) != null && s.noWrap ? /* @__PURE__ */ c(w, { children: /* @__PURE__ */ c(
717
721
  ge,
718
722
  {
719
723
  componentRef: l().componentRef,
@@ -726,8 +730,8 @@ function X(e) {
726
730
  includeBlockProps: l().includeBlockProps,
727
731
  isInteractive: l().isInteractive
728
732
  }
729
- ) }) : /* @__PURE__ */ c(C, { children: n() ? /* @__PURE__ */ c(C, { children: (m = n()) == null ? void 0 : m.map((u, h) => /* @__PURE__ */ c(
730
- Ct,
733
+ ) }) : /* @__PURE__ */ c(w, { children: n() ? /* @__PURE__ */ c(w, { children: (m = n()) == null ? void 0 : m.map((u, h) => /* @__PURE__ */ c(
734
+ kt,
731
735
  {
732
736
  repeatContext: u.context,
733
737
  block: u.block,
@@ -735,8 +739,8 @@ function X(e) {
735
739
  linkComponent: e.linkComponent
736
740
  },
737
741
  h
738
- )) }) : /* @__PURE__ */ P(
739
- xt,
742
+ )) }) : /* @__PURE__ */ E(
743
+ vt,
740
744
  {
741
745
  Wrapper: o(),
742
746
  block: i(),
@@ -757,7 +761,7 @@ function X(e) {
757
761
  }
758
762
  ),
759
763
  (d = r()) == null ? void 0 : d.map((u) => /* @__PURE__ */ c(
760
- X,
764
+ G,
761
765
  {
762
766
  block: u,
763
767
  registeredComponents: e.registeredComponents,
@@ -771,7 +775,7 @@ function X(e) {
771
775
  ) })
772
776
  ] }) : null });
773
777
  }
774
- function It(e) {
778
+ function Ct(e) {
775
779
  function t() {
776
780
  var o;
777
781
  return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
@@ -802,7 +806,7 @@ function It(e) {
802
806
  "*"
803
807
  ));
804
808
  }
805
- return /* @__PURE__ */ P(C, { children: [
809
+ return /* @__PURE__ */ E(w, { children: [
806
810
  /* @__PURE__ */ c(
807
811
  e.BlocksWrapper,
808
812
  {
@@ -824,10 +828,10 @@ function It(e) {
824
828
  }` })
825
829
  ] });
826
830
  }
827
- function se(e) {
831
+ function ce(e) {
828
832
  var t, n, i;
829
833
  return /* @__PURE__ */ c(
830
- It,
834
+ Ct,
831
835
  {
832
836
  blocks: e.blocks,
833
837
  parent: e.parent,
@@ -835,8 +839,8 @@ function se(e) {
835
839
  styleProp: e.styleProp,
836
840
  BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
837
841
  BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
838
- children: e.blocks ? /* @__PURE__ */ c(C, { children: (i = e.blocks) == null ? void 0 : i.map((o) => /* @__PURE__ */ c(
839
- X,
842
+ children: e.blocks ? /* @__PURE__ */ c(w, { children: (i = e.blocks) == null ? void 0 : i.map((o) => /* @__PURE__ */ c(
843
+ G,
840
844
  {
841
845
  block: o,
842
846
  linkComponent: e.linkComponent,
@@ -849,26 +853,26 @@ function se(e) {
849
853
  );
850
854
  }
851
855
  const wt = (e) => `builder-columns ${e}-breakpoints`;
852
- function Tt(e) {
853
- var y, N;
854
- const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], i = e.stackColumnsAt || "tablet", o = function(g) {
855
- return g.link ? e.builderLinkComponent || "a" : "div";
856
- }, a = function(g) {
857
- var I;
858
- return ((I = n[g]) == null ? void 0 : I.width) || 100 / n.length;
859
- }, r = function(g) {
860
- const I = t * (n.length - 1) / n.length;
861
- return `calc(${a(g)}% - ${I}px)`;
856
+ function It(e) {
857
+ var y, A;
858
+ const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], i = e.stackColumnsAt || "tablet", o = function(b) {
859
+ return b.link ? e.builderLinkComponent || "a" : "div";
860
+ }, a = function(b) {
861
+ var k;
862
+ return ((k = n[b]) == null ? void 0 : k.width) || 100 / n.length;
863
+ }, r = function(b) {
864
+ const k = a(b), T = t * (n.length - 1) * (k / 100);
865
+ return `calc(${k}% - ${T}px)`;
862
866
  }, l = function({
863
- stackedStyle: g,
864
- desktopStyle: I
867
+ stackedStyle: b,
868
+ desktopStyle: k
865
869
  }) {
866
- return i === "tablet" ? g : I;
870
+ return i === "tablet" ? b : k;
867
871
  }, s = function({
868
- stackedStyle: g,
869
- desktopStyle: I
872
+ stackedStyle: b,
873
+ desktopStyle: k
870
874
  }) {
871
- return i === "never" ? I : g;
875
+ return i === "never" ? k : b;
872
876
  }, d = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", m = function() {
873
877
  return {
874
878
  "--flex-dir": d,
@@ -877,39 +881,39 @@ function Tt(e) {
877
881
  desktopStyle: "row"
878
882
  })
879
883
  };
880
- }, u = function(g) {
881
- const I = g === 0 ? 0 : t, R = r(g), E = `${I}px`, O = "100%", D = 0;
884
+ }, u = function(b) {
885
+ const k = b === 0 ? 0 : t, T = r(b), B = `${k}px`, O = "100%", D = 0;
882
886
  return {
883
887
  ...{
884
888
  display: "flex",
885
889
  flexDirection: "column",
886
890
  alignItems: "stretch"
887
891
  },
888
- width: R,
889
- ["marginLeft"]: E,
892
+ width: T,
893
+ ["marginLeft"]: B,
890
894
  "--column-width-mobile": s({
891
895
  stackedStyle: O,
892
- desktopStyle: R
896
+ desktopStyle: T
893
897
  }),
894
898
  "--column-margin-left-mobile": s({
895
899
  stackedStyle: D,
896
- desktopStyle: E
900
+ desktopStyle: B
897
901
  }),
898
902
  "--column-width-tablet": l({
899
903
  stackedStyle: O,
900
- desktopStyle: R
904
+ desktopStyle: T
901
905
  }),
902
906
  "--column-margin-left-tablet": l({
903
907
  stackedStyle: D,
904
- desktopStyle: E
908
+ desktopStyle: B
905
909
  })
906
910
  };
907
- }, h = function(g) {
908
- var R, E;
909
- return Pe(
910
- ((E = (R = e.builderContext.content) == null ? void 0 : R.meta) == null ? void 0 : E.breakpoints) || {}
911
- )[g].max;
912
- }, k = function() {
911
+ }, h = function(b) {
912
+ var T, B;
913
+ return Re(
914
+ ((B = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : B.breakpoints) || {}
915
+ )[b].max;
916
+ }, x = function() {
913
917
  return `
914
918
  @media (max-width: ${h("medium")}px) {
915
919
  .${e.builderBlock.id}-breakpoints {
@@ -935,33 +939,33 @@ function Tt(e) {
935
939
  }
936
940
  },
937
941
  `;
938
- }, w = function(g, I) {
942
+ }, I = function(b, k) {
939
943
  return {
940
- ...g.link ? {
941
- href: g.link
944
+ ...b.link ? {
945
+ href: b.link
942
946
  } : {},
943
947
  [j()]: "builder-column",
944
- style: Te(u(I))
948
+ style: Ie(u(k))
945
949
  };
946
950
  };
947
- return /* @__PURE__ */ P(C, { children: [
948
- /* @__PURE__ */ P(
951
+ return /* @__PURE__ */ E(w, { children: [
952
+ /* @__PURE__ */ E(
949
953
  "div",
950
954
  {
951
- className: wt((y = e.builderBlock) == null ? void 0 : y.id) + " div-eeca3604",
955
+ className: wt((y = e.builderBlock) == null ? void 0 : y.id) + " div-1de99da7",
952
956
  style: m(),
953
957
  children: [
954
- /* @__PURE__ */ c(G, { id: "builderio-columns", styles: k() }),
955
- (N = e.columns) == null ? void 0 : N.map((x, g) => /* @__PURE__ */ c(
956
- re,
958
+ /* @__PURE__ */ c(Q, { id: "builderio-columns", styles: x() }),
959
+ (A = e.columns) == null ? void 0 : A.map((S, b) => /* @__PURE__ */ c(
960
+ ae,
957
961
  {
958
- TagName: o(x),
962
+ TagName: o(S),
959
963
  actionAttributes: {},
960
- attributes: w(x, g),
964
+ attributes: I(S, b),
961
965
  children: /* @__PURE__ */ c(
962
- se,
966
+ ce,
963
967
  {
964
- path: `component.options.columns.${g}.blocks`,
968
+ path: `component.options.columns.${b}.blocks`,
965
969
  parent: e.builderBlock.id,
966
970
  styleProp: {
967
971
  flexGrow: "1"
@@ -969,55 +973,55 @@ function Tt(e) {
969
973
  context: e.builderContext,
970
974
  registeredComponents: e.builderComponents,
971
975
  linkComponent: e.builderLinkComponent,
972
- blocks: x.blocks
976
+ blocks: S.blocks
973
977
  }
974
978
  )
975
979
  },
976
- g
980
+ b
977
981
  ))
978
982
  ]
979
983
  }
980
984
  ),
981
- /* @__PURE__ */ c("style", { children: `.div-eeca3604 {
985
+ /* @__PURE__ */ c("style", { children: `.div-1de99da7 {
982
986
  display: flex;
983
987
  line-height: normal;
984
988
  }` })
985
989
  ] });
986
990
  }
987
- function Rt(e) {
991
+ function Tt(e) {
988
992
  return /* @__PURE__ */ c("span", { children: e.children });
989
993
  }
990
- function ye(e) {
994
+ function be(e) {
991
995
  return e.replace(/http(s)?:/, "");
992
996
  }
993
- function Pt(e = "", t, n) {
997
+ function Rt(e = "", t, n) {
994
998
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
995
999
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
996
1000
  }
997
- function Bt(e, t) {
1001
+ function Et(e, t) {
998
1002
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
999
1003
  return e;
1000
1004
  if (t === "master")
1001
- return ye(e);
1005
+ return be(e);
1002
1006
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1003
1007
  if (n) {
1004
1008
  const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
1005
- return ye(`${i[0]}_${a}${o}`);
1009
+ return be(`${i[0]}_${a}${o}`);
1006
1010
  }
1007
1011
  return null;
1008
1012
  }
1009
- function ne(e) {
1013
+ function te(e) {
1010
1014
  if (!e)
1011
1015
  return e;
1012
1016
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1013
1017
  if (e.match(/builder\.io/)) {
1014
1018
  let n = e;
1015
1019
  const i = Number(e.split("?width=")[1]);
1016
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Pt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1020
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Rt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1017
1021
  }
1018
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Bt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1022
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Et(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1019
1023
  }
1020
- function Et(e) {
1024
+ function Pt(e) {
1021
1025
  var o, a, r, l, s, d;
1022
1026
  function t() {
1023
1027
  var h;
@@ -1028,10 +1032,10 @@ function Et(e) {
1028
1032
  return e.srcset;
1029
1033
  if (e.srcset && ((h = e.image) != null && h.includes("builder.io/api/v1/image"))) {
1030
1034
  if (!e.srcset.includes(e.image.split("?")[0]))
1031
- return console.debug("Removed given srcset"), ne(u);
1035
+ return console.debug("Removed given srcset"), te(u);
1032
1036
  } else if (e.image && !e.srcset)
1033
- return ne(u);
1034
- return ne(u);
1037
+ return te(u);
1038
+ return te(u);
1035
1039
  }
1036
1040
  function n() {
1037
1041
  var m;
@@ -1047,9 +1051,9 @@ function Et(e) {
1047
1051
  };
1048
1052
  return e.aspectRatio ? m : void 0;
1049
1053
  }
1050
- return /* @__PURE__ */ P(C, { children: [
1051
- /* @__PURE__ */ P(C, { children: [
1052
- /* @__PURE__ */ P("picture", { children: [
1054
+ return /* @__PURE__ */ E(w, { children: [
1055
+ /* @__PURE__ */ E(w, { children: [
1056
+ /* @__PURE__ */ E("picture", { children: [
1053
1057
  n() ? /* @__PURE__ */ c("source", { type: "image/webp", srcSet: n() }) : null,
1054
1058
  /* @__PURE__ */ c(
1055
1059
  "img",
@@ -1079,7 +1083,7 @@ function Et(e) {
1079
1083
  }
1080
1084
  }
1081
1085
  ) : null,
1082
- (l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ c(C, { children: e.children }) : null,
1086
+ (l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ c(w, { children: e.children }) : null,
1083
1087
  !e.fitContent && ((d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length) ? /* @__PURE__ */ c("div", { className: "div-ac3dff4a-2", children: e.children }) : null
1084
1088
  ] }),
1085
1089
  /* @__PURE__ */ c("style", { children: `.img-ac3dff4a {
@@ -1101,7 +1105,7 @@ function Et(e) {
1101
1105
  }` })
1102
1106
  ] });
1103
1107
  }
1104
- function Wt(e) {
1108
+ function Bt(e) {
1105
1109
  return /* @__PURE__ */ c(
1106
1110
  "section",
1107
1111
  {
@@ -1122,7 +1126,7 @@ function Wt(e) {
1122
1126
  }
1123
1127
  );
1124
1128
  }
1125
- const At = {
1129
+ const Wt = {
1126
1130
  name: "Core:Button",
1127
1131
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1128
1132
  defaultStyles: {
@@ -1156,9 +1160,6 @@ const At = {
1156
1160
  static: !0,
1157
1161
  noWrap: !0,
1158
1162
  shouldReceiveBuilderProps: {
1159
- builderBlock: !1,
1160
- builderContext: !1,
1161
- builderComponents: !1,
1162
1163
  builderLinkComponent: !0
1163
1164
  }
1164
1165
  }, Nt = {
@@ -1368,19 +1369,13 @@ const At = {
1368
1369
  builderComponents: !0,
1369
1370
  builderLinkComponent: !0
1370
1371
  }
1371
- }, Vt = {
1372
- shouldReceiveBuilderProps: {
1373
- builderBlock: !1,
1374
- builderContext: !1,
1375
- builderComponents: !1,
1376
- builderLinkComponent: !1
1377
- },
1372
+ }, At = {
1378
1373
  name: "Fragment",
1379
1374
  static: !0,
1380
1375
  hidden: !0,
1381
1376
  canHaveChildren: !0,
1382
1377
  noWrap: !0
1383
- }, $t = {
1378
+ }, Vt = {
1384
1379
  name: "Image",
1385
1380
  static: !0,
1386
1381
  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",
@@ -1486,18 +1481,9 @@ const At = {
1486
1481
  defaultValue: 0.7041
1487
1482
  }],
1488
1483
  shouldReceiveBuilderProps: {
1489
- builderBlock: !0,
1490
- builderContext: !1,
1491
- builderComponents: !1,
1492
- builderLinkComponent: !1
1484
+ builderBlock: !0
1493
1485
  }
1494
- }, Lt = {
1495
- shouldReceiveBuilderProps: {
1496
- builderBlock: !1,
1497
- builderContext: !1,
1498
- builderComponents: !1,
1499
- builderLinkComponent: !1
1500
- },
1486
+ }, $t = {
1501
1487
  name: "Core:Section",
1502
1488
  static: !0,
1503
1489
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1550,13 +1536,10 @@ const At = {
1550
1536
  defaultValue: "children"
1551
1537
  }],
1552
1538
  shouldReceiveBuilderProps: {
1553
- builderBlock: !1,
1554
- builderContext: !0,
1555
- builderComponents: !1,
1556
- builderLinkComponent: !1
1539
+ builderContext: !0
1557
1540
  }
1558
1541
  };
1559
- function Ot(e) {
1542
+ function Lt(e) {
1560
1543
  var t, n, i;
1561
1544
  return /* @__PURE__ */ c(
1562
1545
  "div",
@@ -1568,7 +1551,7 @@ function Ot(e) {
1568
1551
  "builder-slot": e.name
1569
1552
  },
1570
1553
  children: /* @__PURE__ */ c(
1571
- se,
1554
+ ce,
1572
1555
  {
1573
1556
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
1574
1557
  path: `symbol.data.${e.name}`,
@@ -1579,7 +1562,7 @@ function Ot(e) {
1579
1562
  }
1580
1563
  );
1581
1564
  }
1582
- const Dt = {
1565
+ const Ot = {
1583
1566
  name: "Symbol",
1584
1567
  noWrap: !0,
1585
1568
  static: !0,
@@ -1618,12 +1601,9 @@ const Dt = {
1618
1601
  builderComponents: !0,
1619
1602
  builderLinkComponent: !0
1620
1603
  }
1621
- }, jt = {
1604
+ }, Dt = {
1622
1605
  shouldReceiveBuilderProps: {
1623
- builderBlock: !1,
1624
- builderContext: !1,
1625
- builderComponents: !1,
1626
- builderLinkComponent: !1
1606
+ builderBlock: !1
1627
1607
  },
1628
1608
  name: "Text",
1629
1609
  static: !0,
@@ -1643,7 +1623,7 @@ const Dt = {
1643
1623
  textAlign: "center"
1644
1624
  }
1645
1625
  };
1646
- function Ut(e) {
1626
+ function jt(e) {
1647
1627
  var t;
1648
1628
  return /* @__PURE__ */ c(
1649
1629
  "div",
@@ -1657,12 +1637,6 @@ function Ut(e) {
1657
1637
  );
1658
1638
  }
1659
1639
  const Ht = {
1660
- shouldReceiveBuilderProps: {
1661
- builderBlock: !1,
1662
- builderContext: !1,
1663
- builderComponents: !1,
1664
- builderLinkComponent: !1
1665
- },
1666
1640
  name: "Custom Code",
1667
1641
  static: !0,
1668
1642
  requiredPermissions: ["editCode"],
@@ -1686,8 +1660,8 @@ const Ht = {
1686
1660
  }]
1687
1661
  };
1688
1662
  function Mt(e) {
1689
- const t = ae(null), [n, i] = A(() => []), [o, a] = A(() => []);
1690
- return T(() => {
1663
+ const t = oe(null), [n, i] = N(() => []), [o, a] = N(() => []);
1664
+ return R(() => {
1691
1665
  var l;
1692
1666
  if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
1693
1667
  return;
@@ -1723,13 +1697,7 @@ function Mt(e) {
1723
1697
  }
1724
1698
  );
1725
1699
  }
1726
- const _t = {
1727
- shouldReceiveBuilderProps: {
1728
- builderBlock: !1,
1729
- builderContext: !1,
1730
- builderComponents: !1,
1731
- builderLinkComponent: !1
1732
- },
1700
+ const Ut = {
1733
1701
  name: "Embed",
1734
1702
  static: !0,
1735
1703
  inputs: [{
@@ -1737,29 +1705,16 @@ const _t = {
1737
1705
  type: "url",
1738
1706
  required: !0,
1739
1707
  defaultValue: "",
1740
- helperText: "e.g. enter a youtube url, google map, etc",
1741
- onChange: (e) => {
1742
- const t = e.get("url");
1743
- if (t) {
1744
- e.set("content", "Loading...");
1745
- const n = _iframelyApiKey;
1746
- return fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=${n}`).then((i) => i.json()).then((i) => {
1747
- e.get("url") === t && (i.html ? e.set("content", i.html) : e.set("content", "Invalid url, please try another"));
1748
- }).catch((i) => {
1749
- e.set("content", "There was an error embedding this URL, please try again or another URL");
1750
- });
1751
- } else
1752
- e.delete("content");
1753
- }
1708
+ helperText: "e.g. enter a youtube url, google map, etc"
1754
1709
  }, {
1755
1710
  name: "content",
1756
1711
  type: "html",
1757
1712
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1758
1713
  hideFromUI: !0
1759
1714
  }]
1760
- }, Kt = ["text/javascript", "application/javascript", "application/ecmascript"], zt = (e) => Kt.includes(e.type);
1761
- function qt(e) {
1762
- const t = ae(null), [n, i] = A(() => []), [o, a] = A(() => []), [r, l] = A(() => !1);
1715
+ }, _t = ["text/javascript", "application/javascript", "application/ecmascript"], Kt = (e) => _t.includes(e.type);
1716
+ function zt(e) {
1717
+ const t = oe(null), [n, i] = N(() => []), [o, a] = N(() => []), [r, l] = N(() => !1);
1763
1718
  function s() {
1764
1719
  if (!t.current || !t.current.getElementsByTagName)
1765
1720
  return;
@@ -1770,7 +1725,7 @@ function qt(e) {
1770
1725
  n.push(u.src);
1771
1726
  const h = document.createElement("script");
1772
1727
  h.async = !0, h.src = u.src, document.head.appendChild(h);
1773
- } else if (zt(u) && !o.includes(u.innerText))
1728
+ } else if (Kt(u) && !o.includes(u.innerText))
1774
1729
  try {
1775
1730
  o.push(u.innerText), new Function(u.innerText)();
1776
1731
  } catch (h) {
@@ -1778,7 +1733,7 @@ function qt(e) {
1778
1733
  }
1779
1734
  }
1780
1735
  }
1781
- return T(() => {
1736
+ return R(() => {
1782
1737
  t.current && !r && (l(!0), s());
1783
1738
  }, [t.current, r]), /* @__PURE__ */ c(
1784
1739
  "div",
@@ -1789,13 +1744,7 @@ function qt(e) {
1789
1744
  }
1790
1745
  );
1791
1746
  }
1792
- const Yt = {
1793
- shouldReceiveBuilderProps: {
1794
- builderBlock: !1,
1795
- builderContext: !1,
1796
- builderComponents: !1,
1797
- builderLinkComponent: !1
1798
- },
1747
+ const qt = {
1799
1748
  // friendlyName?
1800
1749
  name: "Raw:Img",
1801
1750
  hideFromInsertMenu: !0,
@@ -1810,7 +1759,7 @@ const Yt = {
1810
1759
  noWrap: !0,
1811
1760
  static: !0
1812
1761
  };
1813
- function Jt(e) {
1762
+ function Yt(e) {
1814
1763
  return /* @__PURE__ */ c(
1815
1764
  "img",
1816
1765
  {
@@ -1825,7 +1774,7 @@ function Jt(e) {
1825
1774
  V() && e.imgSrc || "default-key"
1826
1775
  );
1827
1776
  }
1828
- const Qt = {
1777
+ const Jt = {
1829
1778
  name: "Video",
1830
1779
  canHaveChildren: !0,
1831
1780
  defaultStyles: {
@@ -1907,13 +1856,10 @@ const Qt = {
1907
1856
  advanced: !0
1908
1857
  }],
1909
1858
  shouldReceiveBuilderProps: {
1910
- builderBlock: !0,
1911
- builderContext: !1,
1912
- builderComponents: !1,
1913
- builderLinkComponent: !1
1859
+ builderBlock: !0
1914
1860
  }
1915
1861
  };
1916
- function Gt(e) {
1862
+ function Qt(e) {
1917
1863
  var i, o, a, r, l, s, d;
1918
1864
  function t() {
1919
1865
  return {
@@ -1939,7 +1885,7 @@ function Gt(e) {
1939
1885
  ...t()
1940
1886
  };
1941
1887
  }
1942
- return /* @__PURE__ */ P(
1888
+ return /* @__PURE__ */ E(
1943
1889
  "div",
1944
1890
  {
1945
1891
  style: {
@@ -2014,43 +1960,43 @@ function Gt(e) {
2014
1960
  }
2015
1961
  );
2016
1962
  }
2017
- const Xt = () => [{
1963
+ const Gt = () => [{
2018
1964
  component: Mt,
2019
1965
  ...Ht
2020
1966
  }, {
2021
- component: qt,
2022
- ..._t
1967
+ component: zt,
1968
+ ...Ut
2023
1969
  }, {
2024
- component: Jt,
2025
- ...Yt
1970
+ component: Yt,
1971
+ ...qt
2026
1972
  }, {
2027
- component: Gt,
2028
- ...Qt
2029
- }], pe = () => [{
2030
- component: Je,
2031
- ...At
1973
+ component: Qt,
1974
+ ...Jt
1975
+ }], ye = () => [{
1976
+ component: Ye,
1977
+ ...Wt
2032
1978
  }, {
2033
- component: Tt,
1979
+ component: It,
2034
1980
  ...Nt
2035
1981
  }, {
2036
- component: Rt,
1982
+ component: Tt,
1983
+ ...At
1984
+ }, {
1985
+ component: Pt,
2037
1986
  ...Vt
2038
1987
  }, {
2039
- component: Et,
1988
+ component: Bt,
2040
1989
  ...$t
2041
1990
  }, {
2042
- component: Wt,
2043
- ...Lt
2044
- }, {
2045
- component: Ot,
1991
+ component: Lt,
2046
1992
  ...Ft
2047
1993
  }, {
2048
- component: Pn,
2049
- ...Dt
1994
+ component: Rn,
1995
+ ...Ot
2050
1996
  }, {
2051
- component: Ut,
2052
- ...jt
2053
- }, ...Xt()], Zt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
1997
+ component: jt,
1998
+ ...Dt
1999
+ }, ...Gt()], Xt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2054
2000
  function getAndSetVariantId() {
2055
2001
  function setCookie(name, value, days) {
2056
2002
  let expires = '';
@@ -2106,7 +2052,7 @@ const Xt = () => [{
2106
2052
  }).join('');
2107
2053
  styleEl.innerHTML = newStyleStr;
2108
2054
  }
2109
- }`, en = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2055
+ }`, Zt = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2110
2056
  if (!navigator.cookieEnabled) {
2111
2057
  return;
2112
2058
  }
@@ -2140,26 +2086,26 @@ const Xt = () => [{
2140
2086
  thisScriptEl?.remove();
2141
2087
  }
2142
2088
  return;
2143
- }`, Ee = "builderIoAbTest", We = "builderIoRenderContent", K = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2089
+ }`, Pe = "builderIoAbTest", Be = "builderIoRenderContent", K = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2144
2090
  ...t,
2145
2091
  testVariationId: t.id,
2146
2092
  id: e == null ? void 0 : e.id
2147
- })), tn = ({
2093
+ })), en = ({
2148
2094
  canTrack: e,
2149
2095
  content: t
2150
- }) => !(!(K(t).length > 0) || !e || F()), nn = (e) => e === "react" || e === "reactNative", Ae = nn(H), on = () => `
2151
- window.${Ee} = ${Zt}
2152
- window.${We} = ${en}
2153
- `, an = (e, t) => `
2154
- window.${Ee}(
2155
- "${t}",${JSON.stringify(e)}, ${Ae}
2156
- )`, rn = ({
2096
+ }) => !(!(K(t).length > 0) || !e || L()), tn = (e) => e === "react" || e === "reactNative", We = tn(M), nn = () => `
2097
+ window.${Pe} = ${Xt}
2098
+ window.${Be} = ${Zt}
2099
+ `, on = (e, t) => `
2100
+ window.${Pe}(
2101
+ "${t}",${JSON.stringify(e)}, ${We}
2102
+ )`, an = ({
2157
2103
  contentId: e,
2158
2104
  variationId: t
2159
- }) => `window.${We}(
2160
- "${t}", "${e}", ${Ae}
2105
+ }) => `window.${Be}(
2106
+ "${t}", "${e}", ${We}
2161
2107
  )`;
2162
- function ie(e) {
2108
+ function ne(e) {
2163
2109
  return /* @__PURE__ */ c(
2164
2110
  "script",
2165
2111
  {
@@ -2168,7 +2114,7 @@ function ie(e) {
2168
2114
  }
2169
2115
  );
2170
2116
  }
2171
- const ln = Ke({
2117
+ const rn = _e({
2172
2118
  content: null,
2173
2119
  context: {},
2174
2120
  localState: void 0,
@@ -2182,10 +2128,10 @@ const ln = Ke({
2182
2128
  BlocksWrapper: "div",
2183
2129
  BlocksWrapperProps: {}
2184
2130
  });
2185
- function ve(e) {
2131
+ function pe(e) {
2186
2132
  return Math.round(e * 1e3) / 1e3;
2187
2133
  }
2188
- const cn = (e, t, n = !0) => {
2134
+ const ln = (e, t, n = !0) => {
2189
2135
  if (!(e instanceof HTMLElement))
2190
2136
  return null;
2191
2137
  let i = n ? e : e.parentElement;
@@ -2196,28 +2142,28 @@ const cn = (e, t, n = !0) => {
2196
2142
  return i;
2197
2143
  } while (i = i.parentElement);
2198
2144
  return null;
2199
- }, sn = (e) => cn(e, (t) => {
2145
+ }, cn = (e) => ln(e, (t) => {
2200
2146
  const n = t.getAttribute("builder-id") || t.id;
2201
2147
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
2202
- }), xe = ({
2148
+ }), ve = ({
2203
2149
  event: e,
2204
2150
  target: t
2205
2151
  }) => {
2206
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = ve(i / n.width), r = ve(o / n.height);
2152
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = pe(i / n.width), r = pe(o / n.height);
2207
2153
  return {
2208
2154
  x: a,
2209
2155
  y: r
2210
2156
  };
2211
- }, dn = (e) => {
2212
- const t = e.target, n = t && sn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2157
+ }, sn = (e) => {
2158
+ const t = e.target, n = t && cn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2213
2159
  return {
2214
2160
  targetBuilderElement: i || void 0,
2215
2161
  metadata: {
2216
- targetOffset: t ? xe({
2162
+ targetOffset: t ? ve({
2217
2163
  event: e,
2218
2164
  target: t
2219
2165
  }) : void 0,
2220
- builderTargetOffset: n ? xe({
2166
+ builderTargetOffset: n ? ve({
2221
2167
  event: e,
2222
2168
  target: n
2223
2169
  }) : void 0,
@@ -2225,13 +2171,13 @@ const cn = (e, t, n = !0) => {
2225
2171
  }
2226
2172
  };
2227
2173
  };
2228
- async function un({
2174
+ async function dn({
2229
2175
  key: e,
2230
2176
  value: t
2231
2177
  }) {
2232
2178
  return Fe(), globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e, t), { [e]: t };
2233
2179
  }
2234
- function ke(e, ...t) {
2180
+ function Se(e, ...t) {
2235
2181
  const n = Object(e);
2236
2182
  for (let i = 1; i < arguments.length; i++) {
2237
2183
  const o = arguments[i];
@@ -2241,31 +2187,31 @@ function ke(e, ...t) {
2241
2187
  }
2242
2188
  return n;
2243
2189
  }
2244
- function mn(e) {
2190
+ function un(e) {
2245
2191
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
2246
2192
  }
2247
- function fn(e, t) {
2248
- const n = hn(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
2193
+ function mn(e, t) {
2194
+ const n = fn(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
2249
2195
  for (const l of r)
2250
2196
  for (const s of n)
2251
2197
  s in l || (l[s] = i[s]);
2252
2198
  }
2253
- function hn(e) {
2199
+ function fn(e) {
2254
2200
  const t = [];
2255
2201
  for (const n of e.steps)
2256
2202
  for (const i in n.styles)
2257
2203
  t.indexOf(i) === -1 && t.push(i);
2258
2204
  return t;
2259
2205
  }
2260
- function bn(e) {
2206
+ function hn(e) {
2261
2207
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
2262
2208
  if (!t.length) {
2263
- mn(e.elementId || e.id || "");
2209
+ un(e.elementId || e.id || "");
2264
2210
  return;
2265
2211
  }
2266
2212
  Array.from(t).forEach((n) => {
2267
- fn(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ke(n.style, e.steps[0].styles), setTimeout(() => {
2268
- n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), ke(n.style, e.steps[1].styles), setTimeout(() => {
2213
+ mn(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Se(n.style, e.steps[0].styles), setTimeout(() => {
2214
+ n.style.transition = `all ${e.duration}s ${re(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Se(n.style, e.steps[1].styles), setTimeout(() => {
2269
2215
  n.style.transition = "", n.style.transitionDelay = "";
2270
2216
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
2271
2217
  });
@@ -2297,15 +2243,15 @@ font-weight: ${l};
2297
2243
  `.trim());
2298
2244
  }
2299
2245
  return o;
2300
- }, yn = ({
2246
+ }, bn = ({
2301
2247
  customFonts: e
2302
2248
  }) => {
2303
2249
  var t;
2304
2250
  return ((t = e == null ? void 0 : e.map((n) => gn(n))) == null ? void 0 : t.join(" ")) || "";
2305
- }, pn = ({
2251
+ }, yn = ({
2306
2252
  cssCode: e,
2307
2253
  contentId: t
2308
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", vn = `
2254
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", pn = `
2309
2255
  .builder-button {
2310
2256
  all: unset;
2311
2257
  }
@@ -2322,38 +2268,38 @@ font-weight: ${l};
2322
2268
  text-align: inherit;
2323
2269
  font-family: inherit;
2324
2270
  }
2325
- `, xn = (e) => e ? "" : vn, kn = (e) => `variant-${e}`;
2326
- function Sn(e) {
2327
- var E, O, D, Z, ee, de, ue;
2328
- const t = ae(null);
2329
- function n(b) {
2271
+ `, vn = (e) => e ? "" : pn, Sn = (e) => `variant-${e}`;
2272
+ function xn(e) {
2273
+ var B, O, D, X, Z, se, de;
2274
+ const t = oe(null);
2275
+ function n(g) {
2330
2276
  var p, v;
2331
2277
  const f = {
2332
2278
  ...e.builderContextSignal.rootState,
2333
- ...b
2279
+ ...g
2334
2280
  };
2335
2281
  e.builderContextSignal.rootSetState ? (v = (p = e.builderContextSignal).rootSetState) == null || v.call(p, f) : e.builderContextSignal.rootState = f;
2336
2282
  }
2337
- function i(b) {
2338
- var p, v, S, B, M;
2283
+ function i(g) {
2284
+ var p, v, C, P, U;
2339
2285
  const f = {
2340
2286
  ...e.builderContextSignal.content,
2341
- ...b,
2287
+ ...g,
2342
2288
  data: {
2343
2289
  ...(p = e.builderContextSignal.content) == null ? void 0 : p.data,
2344
- ...b == null ? void 0 : b.data
2290
+ ...g == null ? void 0 : g.data
2345
2291
  },
2346
2292
  meta: {
2347
2293
  ...(v = e.builderContextSignal.content) == null ? void 0 : v.meta,
2348
- ...b == null ? void 0 : b.meta,
2349
- breakpoints: ((S = b == null ? void 0 : b.meta) == null ? void 0 : S.breakpoints) || ((M = (B = e.builderContextSignal.content) == null ? void 0 : B.meta) == null ? void 0 : M.breakpoints)
2294
+ ...g == null ? void 0 : g.meta,
2295
+ breakpoints: ((C = g == null ? void 0 : g.meta) == null ? void 0 : C.breakpoints) || ((U = (P = e.builderContextSignal.content) == null ? void 0 : P.meta) == null ? void 0 : U.breakpoints)
2350
2296
  }
2351
2297
  };
2352
- un({
2298
+ dn({
2353
2299
  value: f,
2354
2300
  key: f.id
2355
2301
  }).then(() => {
2356
- R.refresh();
2302
+ T.refresh();
2357
2303
  });
2358
2304
  }
2359
2305
  function o() {
@@ -2362,37 +2308,37 @@ function Sn(e) {
2362
2308
  "aria-hidden": !0
2363
2309
  };
2364
2310
  }
2365
- const [a, r] = A(
2311
+ const [a, r] = N(
2366
2312
  () => e.contentWrapper || "div"
2367
2313
  );
2368
- function l(b) {
2369
- return De({
2314
+ function l(g) {
2315
+ return Oe({
2370
2316
  model: e.model,
2371
2317
  trustedHosts: e.trustedHosts,
2372
2318
  callbacks: {
2373
2319
  configureSdk: (f) => {
2374
- var S;
2320
+ var C;
2375
2321
  const { breakpoints: p, contentId: v } = f;
2376
- !v || v !== ((S = e.builderContextSignal.content) == null ? void 0 : S.id) || p && i({
2322
+ !v || v !== ((C = e.builderContextSignal.content) == null ? void 0 : C.id) || p && i({
2377
2323
  meta: {
2378
2324
  breakpoints: p
2379
2325
  }
2380
2326
  });
2381
2327
  },
2382
2328
  animation: (f) => {
2383
- bn(f);
2329
+ hn(f);
2384
2330
  },
2385
2331
  contentUpdate: (f) => {
2386
2332
  i(f);
2387
2333
  }
2388
2334
  }
2389
- })(b);
2335
+ })(g);
2390
2336
  }
2391
2337
  function s() {
2392
2338
  var f, p;
2393
- const b = (p = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : p.jsCode;
2394
- b && U({
2395
- code: b,
2339
+ const g = (p = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : p.jsCode;
2340
+ g && H({
2341
+ code: g,
2396
2342
  context: e.context || {},
2397
2343
  localState: void 0,
2398
2344
  rootState: e.builderContextSignal.rootState,
@@ -2403,34 +2349,34 @@ function Sn(e) {
2403
2349
  enableCache: !1
2404
2350
  });
2405
2351
  }
2406
- const [d, m] = A(() => ({})), [u, h] = A(() => ({})), [k, w] = A(() => !1);
2407
- function y(b) {
2352
+ const [d, m] = N(() => ({})), [u, h] = N(() => ({})), [x, I] = N(() => !1);
2353
+ function y(g) {
2408
2354
  var f, p;
2409
2355
  if (e.builderContextSignal.content) {
2410
- const v = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, S = (p = e.builderContextSignal.content) == null ? void 0 : p.id;
2411
- me({
2356
+ const v = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, C = (p = e.builderContextSignal.content) == null ? void 0 : p.id;
2357
+ ue({
2412
2358
  type: "click",
2413
2359
  canTrack: q(e.canTrack),
2414
- contentId: S,
2360
+ contentId: C,
2415
2361
  apiKey: e.apiKey,
2416
- variationId: v !== S ? v : void 0,
2417
- ...dn(b),
2418
- unique: !k
2362
+ variationId: v !== C ? v : void 0,
2363
+ ...sn(g),
2364
+ unique: !x
2419
2365
  });
2420
2366
  }
2421
- k || w(!0);
2367
+ x || I(!0);
2422
2368
  }
2423
- function N() {
2369
+ function A() {
2424
2370
  var f, p, v;
2425
- const b = (v = (p = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : p.httpRequests) != null ? v : {};
2426
- Object.entries(b).forEach(([S, B]) => {
2427
- if (!B || u[S] || d[S] && !V())
2371
+ const g = (v = (p = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : p.httpRequests) != null ? v : {};
2372
+ Object.entries(g).forEach(([C, P]) => {
2373
+ if (!P || u[C] || d[C] && !V())
2428
2374
  return;
2429
- u[S] = !0;
2430
- const M = B.replace(
2375
+ u[C] = !0;
2376
+ const U = P.replace(
2431
2377
  /{{([^}]+)}}/g,
2432
2378
  ($, Ne) => String(
2433
- U({
2379
+ H({
2434
2380
  code: Ne,
2435
2381
  context: e.context || {},
2436
2382
  localState: void 0,
@@ -2440,24 +2386,24 @@ function Sn(e) {
2440
2386
  })
2441
2387
  )
2442
2388
  );
2443
- je(M).then(($) => $.json()).then(($) => {
2389
+ De(U).then(($) => $.json()).then(($) => {
2444
2390
  n({
2445
- [S]: $
2446
- }), d[S] = !0;
2391
+ [C]: $
2392
+ }), d[C] = !0;
2447
2393
  }).catch(($) => {
2448
- console.error("error fetching dynamic data", B, $);
2394
+ console.error("error fetching dynamic data", P, $);
2449
2395
  }).finally(() => {
2450
- u[S] = !1;
2396
+ u[C] = !1;
2451
2397
  });
2452
2398
  });
2453
2399
  }
2454
- function x() {
2400
+ function S() {
2455
2401
  V() && window.dispatchEvent(
2456
2402
  new CustomEvent(
2457
2403
  "builder:component:stateChange",
2458
2404
  {
2459
2405
  detail: {
2460
- state: oe(e.builderContextSignal.rootState),
2406
+ state: ie(e.builderContextSignal.rootState),
2461
2407
  ref: {
2462
2408
  name: e.model
2463
2409
  }
@@ -2466,8 +2412,8 @@ function Sn(e) {
2466
2412
  )
2467
2413
  );
2468
2414
  }
2469
- function g(b) {
2470
- window.addEventListener("message", l), Ue(), He({
2415
+ function b(g) {
2416
+ window.addEventListener("message", l), je(), He({
2471
2417
  ...e.locale ? {
2472
2418
  locale: e.locale
2473
2419
  } : {},
@@ -2485,113 +2431,113 @@ function Sn(e) {
2485
2431
  (v = window.parent) == null || v.postMessage(p, "*");
2486
2432
  }), window.addEventListener(
2487
2433
  "builder:component:stateChangeListenerActivated",
2488
- x
2434
+ S
2489
2435
  );
2490
2436
  }
2491
- function I(b) {
2437
+ function k(g) {
2492
2438
  const f = new URL(location.href).searchParams, p = f.get("builder.preview"), v = f.get(
2493
2439
  `builder.overrides.${p}`
2494
- ), S = f.get("apiKey") || f.get("builder.space");
2495
- p === e.model && S === e.apiKey && (!e.content || v === e.content.id) && Ce({
2440
+ ), C = f.get("apiKey") || f.get("builder.space");
2441
+ p === e.model && C === e.apiKey && (!e.content || v === e.content.id) && ke({
2496
2442
  model: e.model,
2497
2443
  apiKey: e.apiKey,
2498
2444
  apiVersion: e.builderContextSignal.apiVersion
2499
- }).then((B) => {
2500
- B && i(B);
2445
+ }).then((P) => {
2446
+ P && i(P);
2501
2447
  });
2502
2448
  }
2503
- const R = ze();
2504
- return T(() => {
2505
- var b;
2506
- return (b = t.current) == null || b.addEventListener(
2449
+ const T = Ke();
2450
+ return R(() => {
2451
+ var g;
2452
+ return (g = t.current) == null || g.addEventListener(
2507
2453
  "initeditingbldr",
2508
- g
2454
+ b
2509
2455
  ), () => {
2510
2456
  var f;
2511
2457
  return (f = t.current) == null ? void 0 : f.removeEventListener(
2512
2458
  "initeditingbldr",
2513
- g
2459
+ b
2514
2460
  );
2515
2461
  };
2516
- }, []), T(() => {
2517
- var b;
2518
- return (b = t.current) == null || b.addEventListener(
2462
+ }, []), R(() => {
2463
+ var g;
2464
+ return (g = t.current) == null || g.addEventListener(
2519
2465
  "initpreviewingbldr",
2520
- I
2466
+ k
2521
2467
  ), () => {
2522
2468
  var f;
2523
2469
  return (f = t.current) == null ? void 0 : f.removeEventListener(
2524
2470
  "initpreviewingbldr",
2525
- I
2471
+ k
2526
2472
  );
2527
2473
  };
2528
- }, []), T(() => {
2529
- var b, f;
2530
- if (F()) {
2474
+ }, []), R(() => {
2475
+ var g, f;
2476
+ if (L()) {
2531
2477
  if (V() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && q(e.canTrack)) {
2532
- const v = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId, S = (f = e.builderContextSignal.content) == null ? void 0 : f.id, B = e.apiKey;
2533
- me({
2478
+ const v = (g = e.builderContextSignal.content) == null ? void 0 : g.testVariationId, C = (f = e.builderContextSignal.content) == null ? void 0 : f.id, P = e.apiKey;
2479
+ ue({
2534
2480
  type: "impression",
2535
2481
  canTrack: !0,
2536
- contentId: S,
2537
- apiKey: B,
2538
- variationId: v !== S ? v : void 0
2482
+ contentId: C,
2483
+ apiKey: P,
2484
+ variationId: v !== C ? v : void 0
2539
2485
  });
2540
2486
  }
2541
- Oe() && V();
2487
+ Le() && V();
2542
2488
  }
2543
- }, []), T(() => {
2489
+ }, []), R(() => {
2544
2490
  e.apiKey || J.error(
2545
2491
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
2546
- ), s(), N(), x();
2547
- }, []), T(() => {
2548
- }, [e.content]), T(() => {
2492
+ ), s(), A(), S();
2493
+ }, []), R(() => {
2494
+ }, [e.content]), R(() => {
2549
2495
  s();
2550
- }, [(O = (E = e.builderContextSignal.content) == null ? void 0 : E.data) == null ? void 0 : O.jsCode]), T(() => {
2551
- N();
2552
- }, [(Z = (D = e.builderContextSignal.content) == null ? void 0 : D.data) == null ? void 0 : Z.httpRequests]), T(() => {
2553
- x();
2554
- }, [e.builderContextSignal.rootState]), T(() => {
2496
+ }, [(O = (B = e.builderContextSignal.content) == null ? void 0 : B.data) == null ? void 0 : O.jsCode]), R(() => {
2497
+ A();
2498
+ }, [(X = (D = e.builderContextSignal.content) == null ? void 0 : D.data) == null ? void 0 : X.httpRequests]), R(() => {
2499
+ S();
2500
+ }, [e.builderContextSignal.rootState]), R(() => {
2555
2501
  e.data && n(e.data);
2556
- }, [e.data]), T(() => {
2502
+ }, [e.data]), R(() => {
2557
2503
  e.locale && n({
2558
2504
  locale: e.locale
2559
2505
  });
2560
- }, [e.locale]), T(() => () => {
2561
- F() && (window.removeEventListener("message", l), window.removeEventListener(
2506
+ }, [e.locale]), R(() => () => {
2507
+ L() && (window.removeEventListener("message", l), window.removeEventListener(
2562
2508
  "builder:component:stateChangeListenerActivated",
2563
- x
2509
+ S
2564
2510
  ));
2565
- }, []), /* @__PURE__ */ c(ln.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ c(
2511
+ }, []), /* @__PURE__ */ c(rn.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ c(
2566
2512
  a,
2567
2513
  {
2568
2514
  ref: t,
2569
- onClick: (b) => y(b),
2570
- "builder-content-id": (ee = e.builderContextSignal.content) == null ? void 0 : ee.id,
2515
+ onClick: (g) => y(g),
2516
+ "builder-content-id": (Z = e.builderContextSignal.content) == null ? void 0 : Z.id,
2571
2517
  "builder-model": e.model,
2572
2518
  ...o(),
2573
2519
  ...e.contentWrapperProps,
2574
- className: kn(
2575
- ((de = e.content) == null ? void 0 : de.testVariationId) || ((ue = e.content) == null ? void 0 : ue.id)
2520
+ className: Sn(
2521
+ ((se = e.content) == null ? void 0 : se.testVariationId) || ((de = e.content) == null ? void 0 : de.id)
2576
2522
  ),
2577
2523
  children: e.children
2578
2524
  }
2579
2525
  ) : null });
2580
2526
  }
2581
- function Cn(e) {
2527
+ function kn(e) {
2582
2528
  const t = `
2583
- ${pn({
2529
+ ${yn({
2584
2530
  cssCode: e.cssCode,
2585
2531
  contentId: e.contentId
2586
2532
  })}
2587
- ${yn({
2533
+ ${bn({
2588
2534
  customFonts: e.customFonts
2589
2535
  })}
2590
- ${xn(e.isNestedRender)}
2536
+ ${vn(e.isNestedRender)}
2591
2537
  `.trim();
2592
- return /* @__PURE__ */ c(G, { id: "builderio-content", styles: t });
2538
+ return /* @__PURE__ */ c(Q, { id: "builderio-content", styles: t });
2593
2539
  }
2594
- const In = ({
2540
+ const Cn = ({
2595
2541
  content: e,
2596
2542
  data: t,
2597
2543
  locale: n
@@ -2619,22 +2565,22 @@ const In = ({
2619
2565
  },
2620
2566
  meta: e == null ? void 0 : e.meta
2621
2567
  } : void 0;
2622
- function Se(e) {
2568
+ function xe(e) {
2623
2569
  var o, a, r, l, s, d, m, u, h;
2624
- const t = rn({
2570
+ const t = an({
2625
2571
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2626
2572
  variationId: (o = e.content) == null ? void 0 : o.testVariationId,
2627
2573
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2628
2574
  contentId: (a = e.content) == null ? void 0 : a.id
2629
2575
  }), n = [
2630
- ...pe(),
2576
+ ...ye(),
2631
2577
  ...e.customComponents || []
2632
2578
  ].reduce(
2633
- (k, { component: w, ...y }) => ({
2634
- ...k,
2579
+ (x, { component: I, ...y }) => ({
2580
+ ...x,
2635
2581
  [y.name]: {
2636
- component: w,
2637
- ...fe(y)
2582
+ component: I,
2583
+ ...me(y)
2638
2584
  }
2639
2585
  }),
2640
2586
  {}
@@ -2644,7 +2590,7 @@ function Se(e) {
2644
2590
  data: e.data
2645
2591
  }),
2646
2592
  localState: void 0,
2647
- rootState: In({
2593
+ rootState: Cn({
2648
2594
  content: e.content,
2649
2595
  data: e.data,
2650
2596
  locale: e.locale
@@ -2655,12 +2601,12 @@ function Se(e) {
2655
2601
  apiKey: e.apiKey,
2656
2602
  apiVersion: e.apiVersion,
2657
2603
  componentInfos: [
2658
- ...pe(),
2604
+ ...ye(),
2659
2605
  ...e.customComponents || []
2660
2606
  ].reduce(
2661
- (k, { component: w, ...y }) => ({
2662
- ...k,
2663
- [y.name]: fe(y)
2607
+ (x, { component: I, ...y }) => ({
2608
+ ...x,
2609
+ [y.name]: me(y)
2664
2610
  }),
2665
2611
  {}
2666
2612
  ),
@@ -2668,8 +2614,8 @@ function Se(e) {
2668
2614
  BlocksWrapper: e.blocksWrapper || "div",
2669
2615
  BlocksWrapperProps: e.blocksWrapperProps || {}
2670
2616
  };
2671
- return /* @__PURE__ */ P(
2672
- Sn,
2617
+ return /* @__PURE__ */ E(
2618
+ xn,
2673
2619
  {
2674
2620
  content: e.content,
2675
2621
  data: e.data,
@@ -2686,14 +2632,14 @@ function Se(e) {
2686
2632
  trustedHosts: e.trustedHosts,
2687
2633
  children: [
2688
2634
  e.isSsrAbTest ? /* @__PURE__ */ c(
2689
- ie,
2635
+ ne,
2690
2636
  {
2691
2637
  id: "builderio-variant-visibility",
2692
2638
  scriptStr: t
2693
2639
  }
2694
2640
  ) : null,
2695
2641
  /* @__PURE__ */ c(
2696
- Cn,
2642
+ kn,
2697
2643
  {
2698
2644
  isNestedRender: e.isNestedRender,
2699
2645
  contentId: (r = i.content) == null ? void 0 : r.id,
@@ -2702,7 +2648,7 @@ function Se(e) {
2702
2648
  }
2703
2649
  ),
2704
2650
  /* @__PURE__ */ c(
2705
- se,
2651
+ ce,
2706
2652
  {
2707
2653
  blocks: (h = (u = i.content) == null ? void 0 : u.data) == null ? void 0 : h.blocks,
2708
2654
  context: i,
@@ -2714,14 +2660,14 @@ function Se(e) {
2714
2660
  }
2715
2661
  );
2716
2662
  }
2717
- function Tn(e) {
2663
+ function In(e) {
2718
2664
  var a;
2719
- const t = tn({
2665
+ const t = en({
2720
2666
  canTrack: q(e.canTrack),
2721
2667
  content: e.content
2722
2668
  }), n = function() {
2723
2669
  var l;
2724
- return an(
2670
+ return on(
2725
2671
  K(e.content).map((s) => ({
2726
2672
  id: s.testVariationId,
2727
2673
  testRatio: s.testRatio
@@ -2735,36 +2681,36 @@ function Tn(e) {
2735
2681
  return t ? {
2736
2682
  ...e.content,
2737
2683
  testVariationId: (l = e.content) == null ? void 0 : l.id
2738
- } : _e({
2684
+ } : Ue({
2739
2685
  item: e.content,
2740
2686
  canTrack: q(e.canTrack)
2741
2687
  });
2742
2688
  };
2743
- return /* @__PURE__ */ P(C, { children: [
2744
- !e.isNestedRender && H !== "reactNative" ? /* @__PURE__ */ c(
2745
- ie,
2689
+ return /* @__PURE__ */ E(w, { children: [
2690
+ !e.isNestedRender && M !== "reactNative" ? /* @__PURE__ */ c(
2691
+ ne,
2746
2692
  {
2747
2693
  id: "builderio-init-variants-fns",
2748
- scriptStr: on()
2694
+ scriptStr: nn()
2749
2695
  }
2750
2696
  ) : null,
2751
- t ? /* @__PURE__ */ P(C, { children: [
2697
+ t ? /* @__PURE__ */ E(w, { children: [
2752
2698
  /* @__PURE__ */ c(
2753
- G,
2699
+ Q,
2754
2700
  {
2755
2701
  id: "builderio-variants",
2756
2702
  styles: i()
2757
2703
  }
2758
2704
  ),
2759
2705
  /* @__PURE__ */ c(
2760
- ie,
2706
+ ne,
2761
2707
  {
2762
2708
  id: "builderio-variants-visibility",
2763
2709
  scriptStr: n()
2764
2710
  }
2765
2711
  ),
2766
2712
  (a = K(e.content)) == null ? void 0 : a.map((r) => /* @__PURE__ */ c(
2767
- Se,
2713
+ xe,
2768
2714
  {
2769
2715
  isNestedRender: e.isNestedRender,
2770
2716
  content: r,
@@ -2790,7 +2736,7 @@ function Tn(e) {
2790
2736
  ))
2791
2737
  ] }) : null,
2792
2738
  /* @__PURE__ */ c(
2793
- Se,
2739
+ xe,
2794
2740
  {
2795
2741
  isNestedRender: e.isNestedRender,
2796
2742
  content: o(),
@@ -2815,13 +2761,13 @@ function Tn(e) {
2815
2761
  )
2816
2762
  ] });
2817
2763
  }
2818
- const Rn = async ({
2764
+ const Tn = async ({
2819
2765
  builderContextValue: e,
2820
2766
  symbol: t
2821
2767
  }) => {
2822
2768
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
2823
2769
  (e != null && e.apiKey))
2824
- return Ce({
2770
+ return ke({
2825
2771
  model: t.model,
2826
2772
  apiKey: e.apiKey,
2827
2773
  apiVersion: e.apiVersion,
@@ -2834,7 +2780,7 @@ const Rn = async ({
2834
2780
  J.error("Could not fetch symbol content: ", n);
2835
2781
  });
2836
2782
  };
2837
- async function Pn(e) {
2783
+ async function Rn(e) {
2838
2784
  var a, r, l, s, d;
2839
2785
  const t = function() {
2840
2786
  return "div";
@@ -2848,12 +2794,12 @@ async function Pn(e) {
2848
2794
  (u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
2849
2795
  (h = e.symbol) != null && h.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
2850
2796
  ].filter(Boolean).join(" ");
2851
- }, o = ((a = e.symbol) == null ? void 0 : a.content) || await Rn({
2797
+ }, o = ((a = e.symbol) == null ? void 0 : a.content) || await Tn({
2852
2798
  symbol: e.symbol,
2853
2799
  builderContextValue: e.builderContext
2854
2800
  });
2855
2801
  return /* @__PURE__ */ c("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ c(
2856
- Tn,
2802
+ In,
2857
2803
  {
2858
2804
  isNestedRender: !0,
2859
2805
  apiVersion: e.builderContext.apiVersion,
@@ -2878,15 +2824,15 @@ async function Pn(e) {
2878
2824
  ) });
2879
2825
  }
2880
2826
  export {
2881
- se as Blocks,
2882
- ln as BuilderContext,
2883
- Je as Button,
2884
- Tt as Columns,
2885
- Tn as Content,
2886
- Rt as Fragment,
2887
- Et as Image,
2888
- Wt as Section,
2889
- Pn as Symbol,
2890
- Ut as Text,
2891
- Gt as Video
2827
+ ce as Blocks,
2828
+ rn as BuilderContext,
2829
+ Ye as Button,
2830
+ It as Columns,
2831
+ In as Content,
2832
+ Tt as Fragment,
2833
+ Pt as Image,
2834
+ Bt as Section,
2835
+ Rn as Symbol,
2836
+ jt as Text,
2837
+ Qt as Video
2892
2838
  };