@builder.io/sdk-react-nextjs 0.12.6 → 0.12.7

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 (31) hide show
  1. package/lib/browser/{USE_CLIENT_BUNDLE-4d4e23b4.js → USE_CLIENT_BUNDLE-456ca2b5.js} +46 -42
  2. package/lib/{node/USE_CLIENT_BUNDLE-343cb348.cjs → browser/USE_CLIENT_BUNDLE-9d2b983d.cjs} +2 -2
  3. package/lib/{edge/USE_SERVER_BUNDLE-fda604b6.js → browser/USE_SERVER_BUNDLE-e0f1c15b.js} +1 -1
  4. package/lib/{edge/USE_SERVER_BUNDLE-19879780.cjs → browser/USE_SERVER_BUNDLE-ee4a5d19.cjs} +1 -1
  5. package/lib/browser/{bundle-b3104268.js → bundle-56e0b400.js} +477 -434
  6. package/lib/browser/{bundle-6e21e129.cjs → bundle-a408994f.cjs} +20 -20
  7. package/lib/browser/index.cjs +1 -1
  8. package/lib/browser/index.mjs +6 -6
  9. package/lib/{node/USE_CLIENT_BUNDLE-aa8ab44a.js → edge/USE_CLIENT_BUNDLE-789e694f.js} +46 -42
  10. package/lib/{browser/USE_CLIENT_BUNDLE-e5d64246.cjs → edge/USE_CLIENT_BUNDLE-a6a0becc.cjs} +2 -2
  11. package/lib/{node/USE_SERVER_BUNDLE-cbcb1baf.cjs → edge/USE_SERVER_BUNDLE-dbf92938.cjs} +1 -1
  12. package/lib/{node/USE_SERVER_BUNDLE-2fdc522e.js → edge/USE_SERVER_BUNDLE-dffaa191.js} +1 -1
  13. package/lib/edge/{bundle-ee1ebe27.js → bundle-4bf88f38.js} +482 -439
  14. package/lib/edge/{bundle-f2d4a6db.cjs → bundle-97ad81d1.cjs} +28 -28
  15. package/lib/edge/index.cjs +1 -1
  16. package/lib/edge/index.mjs +6 -6
  17. package/lib/{edge/USE_CLIENT_BUNDLE-41ee32e4.js → node/USE_CLIENT_BUNDLE-499aeaa2.js} +46 -42
  18. package/lib/{edge/USE_CLIENT_BUNDLE-cc55e91d.cjs → node/USE_CLIENT_BUNDLE-b2f9be29.cjs} +2 -2
  19. package/lib/{browser/USE_SERVER_BUNDLE-ccca985e.cjs → node/USE_SERVER_BUNDLE-b3ad9a89.cjs} +1 -1
  20. package/lib/{browser/USE_SERVER_BUNDLE-2bf0dc28.js → node/USE_SERVER_BUNDLE-e3da6caa.js} +1 -1
  21. package/lib/node/{bundle-c799b7fc.cjs → bundle-97b4832a.cjs} +4 -4
  22. package/lib/node/{bundle-99e5b33f.js → bundle-d3f89e99.js} +216 -173
  23. package/lib/node/index.cjs +1 -1
  24. package/lib/node/index.mjs +6 -6
  25. package/package.json +1 -1
  26. package/types/cjs/components/block/animator.d.ts +5 -0
  27. package/types/cjs/constants/sdk-version.d.ts +1 -1
  28. package/types/cjs/types/builder-block.d.ts +18 -1
  29. package/types/esm/components/block/animator.d.ts +5 -0
  30. package/types/esm/constants/sdk-version.d.ts +1 -1
  31. package/types/esm/types/builder-block.d.ts +18 -1
@@ -1,9 +1,9 @@
1
1
  import { LRUCache as Ve } from "lru-cache";
2
- import { jsx as l, Fragment as k, jsxs as R } from "react/jsx-runtime";
3
- import { I as Be, B as We, a as $e, D as Oe, b as Ne, C as Fe, E as Le, F as _e, c as Ue, d as De, S as Me, V as je, e as He } from "./USE_CLIENT_BUNDLE-4d4e23b4.js";
2
+ import { jsx as l, Fragment as S, jsxs as R } from "react/jsx-runtime";
3
+ import { I as $e, B as We, a as Oe, D as Ne, b as Fe, C as Le, E as Ue, F as _e, c as De, d as Me, S as je, V as He, e as Ke } from "./USE_CLIENT_BUNDLE-456ca2b5.js";
4
4
  import "react";
5
5
  import "next/navigation";
6
- const Ke = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Gn = (e) => typeof e == "string" && Ke.has(e.toLowerCase()), I = "rsc", M = () => {
6
+ const ze = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Zn = (e) => typeof e == "string" && ze.has(e.toLowerCase()), I = "rsc", M = () => {
7
7
  switch (I) {
8
8
  case "react":
9
9
  case "reactNative":
@@ -16,7 +16,7 @@ const Ke = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr",
16
16
  return "class";
17
17
  }
18
18
  };
19
- function ze(e) {
19
+ function qe(e) {
20
20
  var t;
21
21
  return {
22
22
  ...(t = e.component) == null ? void 0 : t.options,
@@ -27,29 +27,29 @@ function ze(e) {
27
27
  builderBlock: e
28
28
  };
29
29
  }
30
- const A = "[Builder.io]: ", x = {
31
- log: (...e) => console.log(A, ...e),
32
- error: (...e) => console.error(A, ...e),
33
- warn: (...e) => console.warn(A, ...e),
34
- debug: (...e) => console.debug(A, ...e)
30
+ const P = "[Builder.io]: ", x = {
31
+ log: (...e) => console.log(P, ...e),
32
+ error: (...e) => console.error(P, ...e),
33
+ warn: (...e) => console.warn(P, ...e),
34
+ debug: (...e) => console.debug(P, ...e)
35
35
  };
36
- function S() {
36
+ function k() {
37
37
  return typeof window < "u" && typeof document < "u";
38
38
  }
39
- function qe() {
40
- return S() && window.self !== window.top;
39
+ function Ge() {
40
+ return k() && window.self !== window.top;
41
41
  }
42
42
  function j() {
43
- return qe() && window.location.search.indexOf("builder.frameEditing=") !== -1;
43
+ return Ge() && window.location.search.indexOf("builder.frameEditing=") !== -1;
44
44
  }
45
- const Ge = () => {
46
- if (S()) {
45
+ const Ye = () => {
46
+ if (k()) {
47
47
  const e = new URL(location.href);
48
48
  return e.pathname === "" && (e.pathname = "/"), e;
49
49
  } else
50
50
  return console.warn("Cannot get location for tracking in non-browser environment"), null;
51
- }, Ye = () => typeof navigator == "object" && navigator.userAgent || "", ce = () => {
52
- const e = Ye(), t = {
51
+ }, Je = () => typeof navigator == "object" && navigator.userAgent || "", le = () => {
52
+ const e = Je(), t = {
53
53
  Android() {
54
54
  return e.match(/Android/i);
55
55
  },
@@ -68,13 +68,13 @@ const Ge = () => {
68
68
  any() {
69
69
  return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || I === "reactNative";
70
70
  }
71
- }, n = e.match(/Tablet|iPad/i), o = Ge();
71
+ }, n = e.match(/Tablet|iPad/i), o = Ye();
72
72
  return {
73
73
  urlPath: o == null ? void 0 : o.pathname,
74
74
  host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
75
75
  device: n ? "tablet" : t.any() ? "mobile" : "desktop"
76
76
  };
77
- }, Je = ({
77
+ }, Qe = ({
78
78
  builder: e,
79
79
  context: t,
80
80
  event: n,
@@ -86,12 +86,12 @@ const Ge = () => {
86
86
  builder: e,
87
87
  context: t,
88
88
  event: n
89
- }), Qe = () => ({
89
+ }), Xe = () => ({
90
90
  isEditing: j(),
91
- isBrowser: S(),
92
- isServer: !S(),
93
- getUserAttributes: () => ce()
94
- }), Xe = (e, {
91
+ isBrowser: k(),
92
+ isServer: !k(),
93
+ getUserAttributes: () => le()
94
+ }), Ze = (e, {
95
95
  isExpression: t = !0
96
96
  }) => /* 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, G = ({
97
97
  code: e,
@@ -99,22 +99,22 @@ const Ge = () => {
99
99
  context: n,
100
100
  event: o,
101
101
  localState: i,
102
- rootSetState: a,
103
- rootState: r
102
+ rootSetState: r,
103
+ rootState: a
104
104
  }) => {
105
- const s = Je({
105
+ const s = Qe({
106
106
  builder: t,
107
107
  context: n,
108
108
  event: o,
109
- state: le({
110
- rootState: r,
109
+ state: de({
110
+ rootState: a,
111
111
  localState: i,
112
- rootSetState: a
112
+ rootSetState: r
113
113
  })
114
114
  });
115
115
  return new Function(...s.map(([c]) => c), e)(...s.map(([, c]) => c));
116
116
  };
117
- function le({
117
+ function de({
118
118
  rootState: e,
119
119
  localState: t,
120
120
  rootSetState: n
@@ -123,60 +123,60 @@ function le({
123
123
  get: (o, i) => {
124
124
  if (t && i in t)
125
125
  return t[i];
126
- const a = o[i];
127
- return typeof a == "object" ? le({
128
- rootState: a,
126
+ const r = o[i];
127
+ return typeof r == "object" ? de({
128
+ rootState: r,
129
129
  localState: void 0,
130
- rootSetState: n ? (r) => {
131
- o[i] = r, n(o);
130
+ rootSetState: n ? (a) => {
131
+ o[i] = a, n(o);
132
132
  } : void 0
133
- }) : a;
133
+ }) : r;
134
134
  },
135
- set: (o, i, a) => {
135
+ set: (o, i, r) => {
136
136
  if (t && i in t)
137
137
  throw new Error("Writing to local state is not allowed as it is read-only.");
138
- return o[i] = a, n == null || n(o), !0;
138
+ return o[i] = r, n == null || n(o), !0;
139
139
  }
140
140
  });
141
141
  }
142
142
  const C = (e) => e != null;
143
- function Ze() {
143
+ function et() {
144
144
  var e;
145
145
  return typeof process < "u" && C((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
146
146
  }
147
- const et = () => {
147
+ const tt = () => {
148
148
  var o;
149
- if (!Ze())
149
+ if (!et())
150
150
  return !1;
151
151
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
152
152
  return e && t && !n ? (x.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;
153
- }, tt = (e) => (S() || et(), G(e));
153
+ }, nt = (e) => (k() || tt(), G(e));
154
154
  function H({
155
155
  code: e,
156
156
  context: t,
157
157
  localState: n,
158
158
  rootState: o,
159
159
  rootSetState: i,
160
- event: a,
161
- isExpression: r = !0
160
+ event: r,
161
+ isExpression: a = !0
162
162
  }) {
163
163
  if (e === "") {
164
164
  x.warn("Skipping evaluation of empty code block.");
165
165
  return;
166
166
  }
167
167
  const s = {
168
- code: Xe(e, {
169
- isExpression: r
168
+ code: Ze(e, {
169
+ isExpression: a
170
170
  }),
171
- builder: Qe(),
171
+ builder: Xe(),
172
172
  context: t,
173
- event: a,
173
+ event: r,
174
174
  rootSetState: i,
175
175
  rootState: o,
176
176
  localState: n
177
177
  };
178
178
  try {
179
- return tt(s);
179
+ return nt(s);
180
180
  } catch (c) {
181
181
  x.error("Failed code evaluation: " + c.message, {
182
182
  code: e
@@ -184,13 +184,13 @@ function H({
184
184
  return;
185
185
  }
186
186
  }
187
- const $ = (e) => JSON.parse(JSON.stringify(e)), nt = (e, t, n) => {
187
+ const W = (e) => JSON.parse(JSON.stringify(e)), ot = (e, t, n) => {
188
188
  if (Object(e) !== e)
189
189
  return e;
190
190
  const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
191
- return o.slice(0, -1).reduce((i, a, r) => Object(i[a]) === i[a] ? i[a] : i[a] = Math.abs(Number(o[r + 1])) >> 0 === +o[r + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
191
+ return o.slice(0, -1).reduce((i, r, a) => Object(i[r]) === i[r] ? i[r] : i[r] = Math.abs(Number(o[a + 1])) >> 0 === +o[a + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
192
192
  };
193
- const ot = ({
193
+ const it = ({
194
194
  block: e,
195
195
  context: t,
196
196
  localState: n,
@@ -199,13 +199,13 @@ const ot = ({
199
199
  }) => {
200
200
  if (!e.bindings)
201
201
  return e;
202
- const a = $(e), r = {
203
- ...a,
202
+ const r = W(e), a = {
203
+ ...r,
204
204
  properties: {
205
- ...a.properties
205
+ ...r.properties
206
206
  },
207
207
  actions: {
208
- ...a.actions
208
+ ...r.actions
209
209
  }
210
210
  };
211
211
  for (const s in e.bindings) {
@@ -216,41 +216,41 @@ const ot = ({
216
216
  rootSetState: i,
217
217
  context: t
218
218
  });
219
- nt(r, s, m);
219
+ ot(a, s, m);
220
220
  }
221
- return r;
221
+ return a;
222
222
  };
223
- function W({
223
+ function $({
224
224
  block: e,
225
225
  context: t,
226
226
  shouldEvaluateBindings: n,
227
227
  localState: o,
228
228
  rootState: i,
229
- rootSetState: a
229
+ rootSetState: r
230
230
  }) {
231
- const r = e;
232
- return n ? ot({
233
- block: r,
231
+ const a = e;
232
+ return n ? it({
233
+ block: a,
234
234
  localState: o,
235
235
  rootState: i,
236
- rootSetState: a,
236
+ rootSetState: r,
237
237
  context: t
238
- }) : r;
238
+ }) : a;
239
239
  }
240
- const it = ({
240
+ const rt = ({
241
241
  block: e,
242
242
  context: t,
243
243
  registeredComponents: n
244
244
  }) => {
245
- var a;
246
- const o = (a = W({
245
+ var r;
246
+ const o = (r = $({
247
247
  block: e,
248
248
  localState: t.localState,
249
249
  rootState: t.rootState,
250
250
  rootSetState: t.rootSetState,
251
251
  context: t.context,
252
252
  shouldEvaluateBindings: !1
253
- }).component) == null ? void 0 : a.name;
253
+ }).component) == null ? void 0 : r.name;
254
254
  if (!o)
255
255
  return null;
256
256
  const i = n[o];
@@ -278,7 +278,7 @@ const it = ({
278
278
  });
279
279
  if (!Array.isArray(i))
280
280
  return;
281
- const a = n.collection.split(".").pop(), r = n.itemName || (a ? a + "Item" : "item");
281
+ const r = n.collection.split(".").pop(), a = n.itemName || (r ? r + "Item" : "item");
282
282
  return i.map((c, m) => ({
283
283
  context: {
284
284
  ...t,
@@ -286,13 +286,13 @@ const it = ({
286
286
  ...t.localState,
287
287
  $index: m,
288
288
  $item: c,
289
- [r]: c,
290
- [`$${r}Index`]: m
289
+ [a]: c,
290
+ [`$${a}Index`]: m
291
291
  }
292
292
  },
293
293
  block: o
294
294
  }));
295
- }, de = {
295
+ }, ue = {
296
296
  small: {
297
297
  min: 320,
298
298
  default: 321,
@@ -308,11 +308,11 @@ const it = ({
308
308
  default: 991,
309
309
  max: 1200
310
310
  }
311
- }, Y = (e, t = de) => `@media (max-width: ${t[e].max}px)`, ue = ({
311
+ }, Y = (e, t = ue) => `@media (max-width: ${t[e].max}px)`, me = ({
312
312
  small: e,
313
313
  medium: t
314
314
  }) => {
315
- const n = $(de);
315
+ const n = W(ue);
316
316
  if (!e || !t)
317
317
  return n;
318
318
  const o = Math.floor(e / 2);
@@ -327,24 +327,24 @@ const it = ({
327
327
  min: i,
328
328
  default: i + 1
329
329
  };
330
- const a = n.medium.max + 1;
330
+ const r = n.medium.max + 1;
331
331
  return n.large = {
332
332
  max: 2e3,
333
333
  // TODO: decide upper limit
334
- min: a,
335
- default: a + 1
334
+ min: r,
335
+ default: r + 1
336
336
  }, n;
337
- }, rt = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), me = (e) => Object.entries(e).map(([n, o]) => {
337
+ }, st = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), fe = (e) => Object.entries(e).map(([n, o]) => {
338
338
  if (typeof o == "string")
339
- return `${rt(n)}: ${o};`;
340
- }).filter(C), st = (e) => me(e).join(`
339
+ return `${st(n)}: ${o};`;
340
+ }).filter(C), ct = (e) => fe(e).join(`
341
341
  `), L = ({
342
342
  mediaQuery: e,
343
343
  className: t,
344
344
  styles: n
345
345
  }) => {
346
346
  const o = `.${t} {
347
- ${st(n)}
347
+ ${ct(n)}
348
348
  }`;
349
349
  return e ? `${e} {
350
350
  ${o}
@@ -353,9 +353,9 @@ const it = ({
353
353
  function O(e) {
354
354
  return /* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
355
355
  }
356
- function ct(e) {
356
+ function lt(e) {
357
357
  const t = function() {
358
- const i = W({
358
+ const i = $({
359
359
  block: e.block,
360
360
  localState: e.context.localState,
361
361
  rootState: e.context.rootState,
@@ -366,16 +366,16 @@ function ct(e) {
366
366
  return C(i.hide) ? !i.hide : C(i.show) ? i.show : !0;
367
367
  }, n = function() {
368
368
  var d;
369
- const i = W({
369
+ const i = $({
370
370
  block: e.block,
371
371
  localState: e.context.localState,
372
372
  rootState: e.context.rootState,
373
373
  rootSetState: e.context.rootSetState,
374
374
  context: e.context.context,
375
375
  shouldEvaluateBindings: !0
376
- }), a = i.responsiveStyles, r = e.context.content, s = ue(
377
- ((d = r == null ? void 0 : r.meta) == null ? void 0 : d.breakpoints) || {}
378
- ), c = a == null ? void 0 : a.large, m = a == null ? void 0 : a.medium, g = a == null ? void 0 : a.small, p = i.id;
376
+ }), r = i.responsiveStyles, a = e.context.content, s = me(
377
+ ((d = a == null ? void 0 : a.meta) == null ? void 0 : d.breakpoints) || {}
378
+ ), c = r == null ? void 0 : r.large, m = r == null ? void 0 : r.medium, g = r == null ? void 0 : r.small, p = i.id;
379
379
  if (!p)
380
380
  return "";
381
381
  const f = c ? L({
@@ -398,12 +398,12 @@ function ct(e) {
398
398
  }) : "";
399
399
  return [f, h, u].join(" ");
400
400
  };
401
- return /* @__PURE__ */ l(k, { children: n() && t() ? /* @__PURE__ */ l(k, { children: /* @__PURE__ */ l(O, { styles: n() }) }) : null });
401
+ return /* @__PURE__ */ l(S, { children: n() && t() ? /* @__PURE__ */ l(S, { children: /* @__PURE__ */ l(O, { styles: n() }) }) : null });
402
402
  }
403
- function lt(e) {
403
+ function dt(e) {
404
404
  return e.charAt(0).toUpperCase() + e.slice(1);
405
405
  }
406
- const dt = (e) => `on${lt(e)}`, ut = (e, t) => (n) => H({
406
+ const ut = (e) => `on${dt(e)}`, mt = (e, t) => (n) => H({
407
407
  code: e,
408
408
  context: t.context,
409
409
  localState: t.localState,
@@ -412,45 +412,45 @@ const dt = (e) => `on${lt(e)}`, ut = (e, t) => (n) => H({
412
412
  event: n,
413
413
  isExpression: !1
414
414
  });
415
- function Yn(e) {
415
+ function eo(e) {
416
416
  const t = {}, n = e.block.actions ?? {};
417
417
  for (const o in n) {
418
418
  if (!n.hasOwnProperty(o))
419
419
  continue;
420
420
  const i = n[o];
421
- let a = dt(o);
421
+ let r = ut(o);
422
422
  if (e.stripPrefix)
423
423
  switch (I) {
424
424
  case "vue":
425
- a = a.replace("v-on:", "");
425
+ r = r.replace("v-on:", "");
426
426
  break;
427
427
  case "svelte":
428
- a = a.replace("on:", "");
428
+ r = r.replace("on:", "");
429
429
  break;
430
430
  }
431
- t[a] = ut(i, e);
431
+ t[r] = mt(i, e);
432
432
  }
433
433
  return t;
434
434
  }
435
- function mt({
435
+ function ft({
436
436
  style: e
437
437
  }) {
438
438
  return e;
439
439
  }
440
- const ft = ({
440
+ const ht = ({
441
441
  block: e,
442
442
  context: t
443
- }) => fe(mt({
443
+ }) => he(ft({
444
444
  style: e.style || {},
445
445
  context: t,
446
446
  block: e
447
447
  }));
448
- function fe(e) {
448
+ function he(e) {
449
449
  switch (I) {
450
450
  case "svelte":
451
451
  case "vue":
452
452
  case "solid":
453
- return me(e).join(" ");
453
+ return fe(e).join(" ");
454
454
  case "qwik":
455
455
  case "reactNative":
456
456
  case "react":
@@ -458,43 +458,43 @@ function fe(e) {
458
458
  return e;
459
459
  }
460
460
  }
461
- function ht({
461
+ function pt({
462
462
  properties: e
463
463
  }) {
464
464
  return e;
465
465
  }
466
- const pt = (e) => ({
466
+ const gt = (e) => ({
467
467
  href: e.href
468
468
  });
469
- function gt({
469
+ function bt({
470
470
  block: e,
471
471
  context: t
472
472
  }) {
473
473
  var o;
474
474
  const n = {
475
- ...pt(e),
475
+ ...gt(e),
476
476
  ...e.properties,
477
477
  "builder-id": e.id,
478
- style: ft({
478
+ style: ht({
479
479
  block: e,
480
480
  context: t
481
481
  }),
482
482
  [M()]: [e.id, "builder-block", e.class, (o = e.properties) == null ? void 0 : o.class].filter(Boolean).join(" ")
483
483
  };
484
- return ht({
484
+ return pt({
485
485
  properties: n,
486
486
  context: t,
487
487
  block: e
488
488
  });
489
489
  }
490
- const bt = ({
490
+ const yt = ({
491
491
  componentOptions: e,
492
492
  builderBlock: t,
493
493
  context: n,
494
494
  componentRef: o,
495
495
  includeBlockProps: i,
496
- isInteractive: a,
497
- contextValue: r
496
+ isInteractive: r,
497
+ contextValue: a
498
498
  }) => {
499
499
  const s = {
500
500
  ...e,
@@ -503,13 +503,13 @@ const bt = ({
503
503
  * component itself directly. Otherwise, they are provided to the wrapper element.
504
504
  */
505
505
  ...i ? {
506
- attributes: gt({
506
+ attributes: bt({
507
507
  block: t,
508
- context: r
508
+ context: a
509
509
  })
510
510
  } : {}
511
511
  };
512
- return a ? {
512
+ return r ? {
513
513
  Wrapper: o,
514
514
  block: t,
515
515
  context: n,
@@ -519,11 +519,11 @@ const bt = ({
519
519
  };
520
520
  function J(e) {
521
521
  var n;
522
- const t = e.isInteractive ? Be : e.componentRef;
523
- return /* @__PURE__ */ l(k, { children: e.componentRef ? /* @__PURE__ */ l(k, { children: /* @__PURE__ */ l(
522
+ const t = e.isInteractive ? $e : e.componentRef;
523
+ return /* @__PURE__ */ l(S, { children: e.componentRef ? /* @__PURE__ */ l(S, { children: /* @__PURE__ */ l(
524
524
  t,
525
525
  {
526
- ...bt({
526
+ ...yt({
527
527
  componentOptions: e.componentOptions,
528
528
  builderBlock: e.builderBlock,
529
529
  context: e.context,
@@ -546,7 +546,7 @@ function J(e) {
546
546
  }
547
547
  ) }) : null });
548
548
  }
549
- function yt(e) {
549
+ function St(e) {
550
550
  const t = e.repeatContext;
551
551
  return /* @__PURE__ */ l(
552
552
  N,
@@ -561,7 +561,7 @@ function yt(e) {
561
561
  function N(e) {
562
562
  var m, g, p;
563
563
  const t = function() {
564
- return it({
564
+ return rt({
565
565
  block: e.block,
566
566
  context: e.context,
567
567
  registeredComponents: e.registeredComponents
@@ -573,7 +573,7 @@ function N(e) {
573
573
  });
574
574
  }, o = function() {
575
575
  var h;
576
- return (h = e.block.repeat) != null && h.collection ? e.block : W({
576
+ return (h = e.block.repeat) != null && h.collection ? e.block : $({
577
577
  block: e.block,
578
578
  localState: e.context.localState,
579
579
  rootState: e.context.rootState,
@@ -584,13 +584,13 @@ function N(e) {
584
584
  }, i = function() {
585
585
  var u;
586
586
  return e.block.tagName === "a" || ((u = o().properties) == null ? void 0 : u.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
587
- }, a = function() {
587
+ }, r = function() {
588
588
  var d, y;
589
589
  if ((d = e.block.repeat) != null && d.collection)
590
590
  return !!((y = n()) != null && y.length);
591
591
  const h = "hide" in o() ? o().hide : !1;
592
592
  return ("show" in o() ? o().show : !0) && !h;
593
- }, r = function() {
593
+ }, a = function() {
594
594
  var u;
595
595
  return !((u = t()) != null && u.component) && !n() ? o().children ?? [] : [];
596
596
  }, s = function() {
@@ -599,7 +599,7 @@ function N(e) {
599
599
  blockChildren: o().children ?? [],
600
600
  componentRef: (h = t()) == null ? void 0 : h.component,
601
601
  componentOptions: {
602
- ...ze(o()),
602
+ ...qe(o()),
603
603
  builderContext: e.context,
604
604
  ...((u = t()) == null ? void 0 : u.name) === "Core:Button" || ((d = t()) == null ? void 0 : d.name) === "Symbol" || ((y = t()) == null ? void 0 : y.name) === "Columns" ? {
605
605
  builderLinkComponent: e.linkComponent
@@ -616,9 +616,9 @@ function N(e) {
616
616
  isInteractive: !((T = t()) != null && T.isRSC)
617
617
  };
618
618
  }, c = e.context;
619
- return /* @__PURE__ */ l(k, { children: a() ? /* @__PURE__ */ R(k, { children: [
620
- /* @__PURE__ */ l(ct, { block: e.block, context: e.context }),
621
- (m = t()) != null && m.noWrap ? /* @__PURE__ */ l(k, { children: /* @__PURE__ */ l(
619
+ return /* @__PURE__ */ l(S, { children: r() ? /* @__PURE__ */ R(S, { children: [
620
+ /* @__PURE__ */ l(lt, { block: e.block, context: e.context }),
621
+ (m = t()) != null && m.noWrap ? /* @__PURE__ */ l(S, { children: /* @__PURE__ */ l(
622
622
  J,
623
623
  {
624
624
  componentRef: s().componentRef,
@@ -631,8 +631,8 @@ function N(e) {
631
631
  includeBlockProps: s().includeBlockProps,
632
632
  isInteractive: s().isInteractive
633
633
  }
634
- ) }) : /* @__PURE__ */ l(k, { children: n() ? /* @__PURE__ */ l(k, { children: (p = n()) == null ? void 0 : p.map((f, h) => /* @__PURE__ */ l(
635
- yt,
634
+ ) }) : /* @__PURE__ */ l(S, { children: n() ? /* @__PURE__ */ l(S, { children: (p = n()) == null ? void 0 : p.map((f, h) => /* @__PURE__ */ l(
635
+ St,
636
636
  {
637
637
  repeatContext: f.context,
638
638
  block: f.block,
@@ -640,7 +640,7 @@ function N(e) {
640
640
  linkComponent: e.linkComponent
641
641
  },
642
642
  h
643
- )) }) : /* @__PURE__ */ l(k, { children: /* @__PURE__ */ R(
643
+ )) }) : /* @__PURE__ */ l(S, { children: /* @__PURE__ */ R(
644
644
  We,
645
645
  {
646
646
  Wrapper: i(),
@@ -662,7 +662,7 @@ function N(e) {
662
662
  isInteractive: s().isInteractive
663
663
  }
664
664
  ),
665
- (g = r()) == null ? void 0 : g.map((f) => /* @__PURE__ */ l(
665
+ (g = a()) == null ? void 0 : g.map((f) => /* @__PURE__ */ l(
666
666
  N,
667
667
  {
668
668
  block: f,
@@ -680,7 +680,7 @@ function N(e) {
680
680
  function F(e) {
681
681
  var t, n, o;
682
682
  return /* @__PURE__ */ l(
683
- $e,
683
+ Oe,
684
684
  {
685
685
  blocks: e.blocks,
686
686
  parent: e.parent,
@@ -688,7 +688,7 @@ function F(e) {
688
688
  styleProp: e.styleProp,
689
689
  BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
690
690
  BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
691
- children: e.blocks ? /* @__PURE__ */ l(k, { children: (o = e.blocks) == null ? void 0 : o.map((i) => /* @__PURE__ */ l(
691
+ children: e.blocks ? /* @__PURE__ */ l(S, { children: (o = e.blocks) == null ? void 0 : o.map((i) => /* @__PURE__ */ l(
692
692
  N,
693
693
  {
694
694
  block: i,
@@ -706,10 +706,10 @@ function kt(e) {
706
706
  const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], o = e.stackColumnsAt || "tablet", i = function(d) {
707
707
  var y;
708
708
  return ((y = n[d]) == null ? void 0 : y.width) || 100 / n.length;
709
- }, a = function(d) {
709
+ }, r = function(d) {
710
710
  const y = t * (n.length - 1) / n.length;
711
711
  return `calc(${i(d)}% - ${y}px)`;
712
- }, r = function({
712
+ }, a = function({
713
713
  stackedStyle: d,
714
714
  desktopStyle: y
715
715
  }) {
@@ -722,13 +722,13 @@ function kt(e) {
722
722
  }, c = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", m = function() {
723
723
  return {
724
724
  "--flex-dir": c,
725
- "--flex-dir-tablet": r({
725
+ "--flex-dir-tablet": a({
726
726
  stackedStyle: c,
727
727
  desktopStyle: "row"
728
728
  })
729
729
  };
730
730
  }, g = function(d) {
731
- const y = d === 0 ? 0 : t, v = a(d), b = `${y}px`, E = "100%", T = 0;
731
+ const y = d === 0 ? 0 : t, v = r(d), b = `${y}px`, E = "100%", T = 0;
732
732
  return {
733
733
  ...{
734
734
  display: "flex",
@@ -745,18 +745,18 @@ function kt(e) {
745
745
  stackedStyle: T,
746
746
  desktopStyle: b
747
747
  }),
748
- "--column-width-tablet": r({
748
+ "--column-width-tablet": a({
749
749
  stackedStyle: E,
750
750
  desktopStyle: v
751
751
  }),
752
- "--column-margin-left-tablet": r({
752
+ "--column-margin-left-tablet": a({
753
753
  stackedStyle: T,
754
754
  desktopStyle: b
755
755
  })
756
756
  };
757
757
  }, p = function(d) {
758
758
  var v, b;
759
- return ue(
759
+ return me(
760
760
  ((b = (v = e.builderContext.content) == null ? void 0 : v.meta) == null ? void 0 : b.breakpoints) || {}
761
761
  )[d].max;
762
762
  }, f = function() {
@@ -786,16 +786,16 @@ function kt(e) {
786
786
  },
787
787
  `;
788
788
  };
789
- return /* @__PURE__ */ R(k, { children: [
789
+ return /* @__PURE__ */ R(S, { children: [
790
790
  /* @__PURE__ */ R(
791
791
  "div",
792
792
  {
793
793
  className: `builder-columns ${e.builderBlock.id}-breakpoints div-3d816b82`,
794
794
  style: m(),
795
795
  children: [
796
- /* @__PURE__ */ l(k, { children: /* @__PURE__ */ l(O, { styles: f() }) }),
796
+ /* @__PURE__ */ l(S, { children: /* @__PURE__ */ l(O, { styles: f() }) }),
797
797
  (h = e.columns) == null ? void 0 : h.map((u, d) => /* @__PURE__ */ l(
798
- Oe,
798
+ Ne,
799
799
  {
800
800
  TagName: u.link ? e.builderLinkComponent || "a" : "div",
801
801
  actionAttributes: {},
@@ -804,7 +804,7 @@ function kt(e) {
804
804
  href: u.link
805
805
  } : {},
806
806
  [M()]: "builder-column",
807
- style: fe(g(d))
807
+ style: he(g(d))
808
808
  },
809
809
  children: /* @__PURE__ */ l(
810
810
  F,
@@ -835,39 +835,39 @@ function kt(e) {
835
835
  function Q(e) {
836
836
  return e.replace(/http(s)?:/, "");
837
837
  }
838
- function St(e = "", t, n) {
838
+ function vt(e = "", t, n) {
839
839
  const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), i = e.indexOf("?") !== -1 ? "&" : "?";
840
840
  return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + i + t + "=" + encodeURIComponent(n);
841
841
  }
842
- function vt(e, t) {
842
+ function xt(e, t) {
843
843
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
844
844
  return e;
845
845
  if (t === "master")
846
846
  return Q(e);
847
847
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
848
848
  if (n) {
849
- const o = e.split(n[0]), i = n[3], a = t.match("x") ? t : `${t}x`;
850
- return Q(`${o[0]}_${a}${i}`);
849
+ const o = e.split(n[0]), i = n[3], r = t.match("x") ? t : `${t}x`;
850
+ return Q(`${o[0]}_${r}${i}`);
851
851
  }
852
852
  return null;
853
853
  }
854
- function Jn(e) {
854
+ function to(e) {
855
855
  if (!e)
856
856
  return e;
857
857
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
858
858
  if (e.match(/builder\.io/)) {
859
859
  let n = e;
860
860
  const o = Number(e.split("?width=")[1]);
861
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((i) => i !== o).map((i) => `${St(e, "width", i)} ${i}w`).concat([n]).join(", ");
861
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((i) => i !== o).map((i) => `${vt(e, "width", i)} ${i}w`).concat([n]).join(", ");
862
862
  }
863
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [vt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
863
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [xt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
864
864
  }
865
- const xt = (e) => {
865
+ const Ct = (e) => {
866
866
  if (e === "localhost" || e === "127.0.0.1")
867
867
  return e;
868
868
  const t = e.split(".");
869
869
  return t.length > 2 ? t.slice(1).join(".") : e;
870
- }, he = ({
870
+ }, pe = ({
871
871
  name: e,
872
872
  canTrack: t
873
873
  }) => {
@@ -878,14 +878,14 @@ const xt = (e) => {
878
878
  x.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
879
879
  return;
880
880
  }
881
- }, pe = async (e) => he(e), Ct = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(C).join("; "), wt = [["secure", ""], ["SameSite", "None"]], It = ({
881
+ }, ge = async (e) => pe(e), wt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(C).join("; "), It = [["secure", ""], ["SameSite", "None"]], Tt = ({
882
882
  name: e,
883
883
  value: t,
884
884
  expires: n
885
885
  }) => {
886
- const i = (S() ? location.protocol === "https:" : !0) ? wt : [[]], a = n ? [["expires", n.toUTCString()]] : [[]], r = [[e, t], ...a, ["path", "/"], ["domain", xt(window.location.hostname)], ...i];
887
- return Ct(r);
888
- }, ge = async ({
886
+ const i = (k() ? location.protocol === "https:" : !0) ? It : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], a = [[e, t], ...r, ["path", "/"], ["domain", Ct(window.location.hostname)], ...i];
887
+ return wt(a);
888
+ }, be = async ({
889
889
  name: e,
890
890
  value: t,
891
891
  expires: n,
@@ -894,7 +894,7 @@ const xt = (e) => {
894
894
  try {
895
895
  if (!o)
896
896
  return;
897
- const i = It({
897
+ const i = Tt({
898
898
  name: e,
899
899
  value: t,
900
900
  expires: n
@@ -903,38 +903,38 @@ const xt = (e) => {
903
903
  } catch (i) {
904
904
  x.warn("[COOKIE] SET error: ", (i == null ? void 0 : i.message) || i);
905
905
  }
906
- }, Tt = "builder.tests", K = (e) => `${Tt}.${e}`, Et = ({
906
+ }, Et = "builder.tests", K = (e) => `${Et}.${e}`, Rt = ({
907
907
  contentId: e
908
- }) => pe({
908
+ }) => ge({
909
909
  name: K(e),
910
910
  canTrack: !0
911
- }), Rt = ({
911
+ }), At = ({
912
912
  contentId: e
913
- }) => he({
913
+ }) => pe({
914
914
  name: K(e),
915
915
  canTrack: !0
916
916
  }), Pt = ({
917
917
  contentId: e,
918
918
  value: t
919
- }) => ge({
919
+ }) => be({
920
920
  name: K(e),
921
921
  value: t,
922
922
  canTrack: !0
923
- }), be = (e) => C(e.id) && C(e.variations) && Object.keys(e.variations).length > 0, At = ({
923
+ }), ye = (e) => C(e.id) && C(e.variations) && Object.keys(e.variations).length > 0, Bt = ({
924
924
  id: e,
925
925
  variations: t
926
926
  }) => {
927
927
  var i;
928
928
  let n = 0;
929
929
  const o = Math.random();
930
- for (const a in t) {
931
- const r = (i = t[a]) == null ? void 0 : i.testRatio;
932
- if (n += r, o < n)
933
- return a;
930
+ for (const r in t) {
931
+ const a = (i = t[r]) == null ? void 0 : i.testRatio;
932
+ if (n += a, o < n)
933
+ return r;
934
934
  }
935
935
  return e;
936
- }, ye = (e) => {
937
- const t = At(e);
936
+ }, Se = (e) => {
937
+ const t = Bt(e);
938
938
  return Pt({
939
939
  contentId: e.id,
940
940
  value: t
@@ -963,11 +963,11 @@ const xt = (e) => {
963
963
  return e;
964
964
  if (!e)
965
965
  return;
966
- if (!be(e))
966
+ if (!ye(e))
967
967
  return e;
968
- const n = Rt({
968
+ const n = At({
969
969
  contentId: e.id
970
- }) || ye({
970
+ }) || Se({
971
971
  variations: e.variations,
972
972
  id: e.id
973
973
  }), o = ke({
@@ -978,15 +978,15 @@ const xt = (e) => {
978
978
  ...e,
979
979
  ...o
980
980
  };
981
- }, Bt = async ({
981
+ }, $t = async ({
982
982
  item: e,
983
983
  canTrack: t
984
984
  }) => {
985
- if (!t || !be(e))
985
+ if (!t || !ye(e))
986
986
  return e;
987
- const o = await Et({
987
+ const o = await Rt({
988
988
  contentId: e.id
989
- }) || ye({
989
+ }) || Se({
990
990
  variations: e.variations,
991
991
  id: e.id
992
992
  }), i = ke({
@@ -997,7 +997,7 @@ const xt = (e) => {
997
997
  ...e,
998
998
  ...i
999
999
  };
1000
- }, _ = (e) => C(e) ? e : !0, Wt = {
1000
+ }, U = (e) => C(e) ? e : !0, Wt = {
1001
1001
  name: "Core:Button",
1002
1002
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1003
1003
  defaultStyles: {
@@ -1030,7 +1030,7 @@ const xt = (e) => {
1030
1030
  }],
1031
1031
  static: !0,
1032
1032
  noWrap: !0
1033
- }, $t = {
1033
+ }, Ot = {
1034
1034
  // TODO: ways to statically preprocess JSON for references, functions, etc
1035
1035
  name: "Columns",
1036
1036
  isRSC: !0,
@@ -1209,7 +1209,7 @@ const xt = (e) => {
1209
1209
  });
1210
1210
  }
1211
1211
  const n = e.get("columns");
1212
- Array.isArray(n) && n.find((i) => i.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((s, c) => s + c.get("width"), 0) !== 100) && t();
1212
+ Array.isArray(n) && n.find((i) => i.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((s, c) => s + c.get("width"), 0) !== 100) && t();
1213
1213
  }
1214
1214
  }, {
1215
1215
  name: "space",
@@ -1231,7 +1231,7 @@ const xt = (e) => {
1231
1231
  helperText: "When stacking columns for mobile devices, reverse the ordering",
1232
1232
  advanced: !0
1233
1233
  }]
1234
- }, Ot = {
1234
+ }, Nt = {
1235
1235
  name: "Custom Code",
1236
1236
  static: !0,
1237
1237
  requiredPermissions: ["editCode"],
@@ -1253,7 +1253,7 @@ const xt = (e) => {
1253
1253
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
1254
1254
  advanced: !0
1255
1255
  }]
1256
- }, Nt = {
1256
+ }, Ft = {
1257
1257
  name: "Embed",
1258
1258
  static: !0,
1259
1259
  inputs: [{
@@ -1278,7 +1278,7 @@ const xt = (e) => {
1278
1278
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1279
1279
  hideFromUI: !0
1280
1280
  }]
1281
- }, Ft = ["text/javascript", "application/javascript", "application/ecmascript"], Qn = (e) => Ft.includes(e.type), Lt = {
1281
+ }, Lt = ["text/javascript", "application/javascript", "application/ecmascript"], no = (e) => Lt.includes(e.type), Ut = {
1282
1282
  name: "Fragment",
1283
1283
  static: !0,
1284
1284
  hidden: !0,
@@ -1304,7 +1304,7 @@ const xt = (e) => {
1304
1304
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1305
1305
  onChange: (e) => {
1306
1306
  e.delete("srcset"), e.delete("noWebp");
1307
- function n(r, s = 6e4) {
1307
+ function n(a, s = 6e4) {
1308
1308
  return new Promise((c, m) => {
1309
1309
  const g = document.createElement("img");
1310
1310
  let p = !1;
@@ -1312,21 +1312,21 @@ const xt = (e) => {
1312
1312
  p = !0, c(g);
1313
1313
  }, g.addEventListener("error", (f) => {
1314
1314
  console.warn("Image load failed", f.error), m(f.error);
1315
- }), g.src = r, setTimeout(() => {
1315
+ }), g.src = a, setTimeout(() => {
1316
1316
  p || m(new Error("Image load timed out"));
1317
1317
  }, s);
1318
1318
  });
1319
1319
  }
1320
- function o(r) {
1321
- return Math.round(r * 1e3) / 1e3;
1320
+ function o(a) {
1321
+ return Math.round(a * 1e3) / 1e3;
1322
1322
  }
1323
- const i = e.get("image"), a = e.get("aspectRatio");
1324
- if (fetch(i).then((r) => r.blob()).then((r) => {
1325
- r.type.includes("svg") && e.set("noWebp", !0);
1326
- }), i && (!a || a === 0.7041))
1327
- return n(i).then((r) => {
1323
+ const i = e.get("image"), r = e.get("aspectRatio");
1324
+ if (fetch(i).then((a) => a.blob()).then((a) => {
1325
+ a.type.includes("svg") && e.set("noWebp", !0);
1326
+ }), i && (!r || r === 0.7041))
1327
+ return n(i).then((a) => {
1328
1328
  const s = e.get("aspectRatio");
1329
- e.get("image") === i && (!s || s === 0.7041) && r.width && r.height && (e.set("aspectRatio", o(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
1329
+ e.get("image") === i && (!s || s === 0.7041) && a.width && a.height && (e.set("aspectRatio", o(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
1330
1330
  });
1331
1331
  }
1332
1332
  }, {
@@ -1384,7 +1384,7 @@ const xt = (e) => {
1384
1384
  advanced: !0,
1385
1385
  defaultValue: 0.7041
1386
1386
  }]
1387
- }, Ut = {
1387
+ }, Dt = {
1388
1388
  // friendlyName?
1389
1389
  name: "Raw:Img",
1390
1390
  hideFromInsertMenu: !0,
@@ -1398,7 +1398,7 @@ const xt = (e) => {
1398
1398
  }],
1399
1399
  noWrap: !0,
1400
1400
  static: !0
1401
- }, Dt = {
1401
+ }, Mt = {
1402
1402
  name: "Core:Section",
1403
1403
  static: !0,
1404
1404
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1437,7 +1437,7 @@ const xt = (e) => {
1437
1437
  }
1438
1438
  }
1439
1439
  }]
1440
- }, Mt = {
1440
+ }, jt = {
1441
1441
  name: "Slot",
1442
1442
  isRSC: !0,
1443
1443
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1451,7 +1451,7 @@ const xt = (e) => {
1451
1451
  defaultValue: "children"
1452
1452
  }]
1453
1453
  };
1454
- function jt(e) {
1454
+ function Ht(e) {
1455
1455
  var t, n, o;
1456
1456
  return /* @__PURE__ */ l(
1457
1457
  "div",
@@ -1474,7 +1474,7 @@ function jt(e) {
1474
1474
  }
1475
1475
  );
1476
1476
  }
1477
- const Ht = {
1477
+ const Kt = {
1478
1478
  name: "Symbol",
1479
1479
  noWrap: !0,
1480
1480
  static: !0,
@@ -1507,7 +1507,7 @@ const Ht = {
1507
1507
  hideFromUI: !0,
1508
1508
  type: "boolean"
1509
1509
  }]
1510
- }, Kt = {
1510
+ }, zt = {
1511
1511
  name: "Text",
1512
1512
  static: !0,
1513
1513
  isRSC: !0,
@@ -1526,7 +1526,7 @@ const Ht = {
1526
1526
  textAlign: "center"
1527
1527
  }
1528
1528
  };
1529
- function zt(e) {
1529
+ function qt(e) {
1530
1530
  var t;
1531
1531
  return /* @__PURE__ */ l(
1532
1532
  "div",
@@ -1539,7 +1539,7 @@ function zt(e) {
1539
1539
  }
1540
1540
  );
1541
1541
  }
1542
- const qt = {
1542
+ const Gt = {
1543
1543
  name: "Video",
1544
1544
  canHaveChildren: !0,
1545
1545
  defaultStyles: {
@@ -1621,57 +1621,57 @@ const qt = {
1621
1621
  advanced: !0
1622
1622
  }]
1623
1623
  }, X = () => [{
1624
- component: Ne,
1624
+ component: Fe,
1625
1625
  ...Wt
1626
1626
  }, {
1627
1627
  component: kt,
1628
- ...$t
1629
- }, {
1630
- component: Fe,
1631
1628
  ...Ot
1632
1629
  }, {
1633
1630
  component: Le,
1634
1631
  ...Nt
1635
- }, {
1636
- component: _e,
1637
- ...Lt
1638
1632
  }, {
1639
1633
  component: Ue,
1640
- ..._t
1634
+ ...Ft
1641
1635
  }, {
1642
- component: De,
1636
+ component: _e,
1643
1637
  ...Ut
1638
+ }, {
1639
+ component: De,
1640
+ ..._t
1644
1641
  }, {
1645
1642
  component: Me,
1646
1643
  ...Dt
1647
1644
  }, {
1648
- component: Mn,
1649
- ...Ht
1645
+ component: je,
1646
+ ...Mt
1650
1647
  }, {
1651
- component: zt,
1648
+ component: qn,
1652
1649
  ...Kt
1653
1650
  }, {
1654
- component: je,
1655
- ...qt
1651
+ component: qt,
1652
+ ...zt
1656
1653
  }, {
1657
- component: jt,
1658
- ...Mt
1659
- }], Z = [], Xn = (e) => ({
1654
+ component: He,
1655
+ ...Gt
1656
+ }, {
1657
+ component: Ht,
1658
+ ...jt
1659
+ }], Z = [], oo = (e) => ({
1660
1660
  type: "builder.registerComponent",
1661
- data: U(e)
1662
- }), Gt = (e) => {
1661
+ data: _(e)
1662
+ }), Yt = (e) => {
1663
1663
  const t = e.toString().trim();
1664
1664
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
1665
- }, Yt = (e) => typeof e == "function" ? Gt(e) : $(e), U = ({
1665
+ }, Jt = (e) => typeof e == "function" ? Yt(e) : W(e), _ = ({
1666
1666
  inputs: e,
1667
1667
  ...t
1668
1668
  }) => ({
1669
- ...$(t),
1670
- inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [i, a]) => ({
1669
+ ...W(t),
1670
+ inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [i, r]) => ({
1671
1671
  ...o,
1672
- [i]: Yt(a)
1672
+ [i]: Jt(r)
1673
1673
  }), {}))
1674
- }), Jt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
1674
+ }), Qt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
1675
1675
  function getAndSetVariantId() {
1676
1676
  function setCookie(name, value, days) {
1677
1677
  let expires = '';
@@ -1727,7 +1727,7 @@ const qt = {
1727
1727
  }).join('');
1728
1728
  styleEl.innerHTML = newStyleStr;
1729
1729
  }
1730
- }`, Qt = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
1730
+ }`, Xt = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
1731
1731
  if (!navigator.cookieEnabled) {
1732
1732
  return;
1733
1733
  }
@@ -1761,24 +1761,24 @@ const qt = {
1761
1761
  thisScriptEl?.remove();
1762
1762
  }
1763
1763
  return;
1764
- }`, Se = "builderIoAbTest", ve = "builderIoRenderContent", V = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
1764
+ }`, ve = "builderIoAbTest", xe = "builderIoRenderContent", B = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
1765
1765
  ...t,
1766
1766
  testVariationId: t.id,
1767
1767
  id: e == null ? void 0 : e.id
1768
- })), Xt = ({
1768
+ })), Zt = ({
1769
1769
  canTrack: e,
1770
1770
  content: t
1771
- }) => !(!(V(t).length > 0) || !e || S()), Zt = (e) => e === "react" || e === "reactNative", xe = Zt(I), en = () => `
1772
- window.${Se} = ${Jt}
1771
+ }) => !(!(B(t).length > 0) || !e || k()), en = (e) => e === "react" || e === "reactNative", Ce = en(I), tn = () => `
1773
1772
  window.${ve} = ${Qt}
1774
- `, tn = (e, t) => `
1775
- window.${Se}(
1776
- "${t}",${JSON.stringify(e)}, ${xe}
1777
- )`, nn = ({
1773
+ window.${xe} = ${Xt}
1774
+ `, nn = (e, t) => `
1775
+ window.${ve}(
1776
+ "${t}",${JSON.stringify(e)}, ${Ce}
1777
+ )`, on = ({
1778
1778
  contentId: e,
1779
1779
  variationId: t
1780
- }) => `window.${ve}(
1781
- "${t}", "${e}", ${xe}
1780
+ }) => `window.${xe}(
1781
+ "${t}", "${e}", ${Ce}
1782
1782
  )`;
1783
1783
  function D(e) {
1784
1784
  return /* @__PURE__ */ l(
@@ -1789,7 +1789,7 @@ function D(e) {
1789
1789
  }
1790
1790
  );
1791
1791
  }
1792
- const on = (e) => {
1792
+ const rn = (e) => {
1793
1793
  const t = e.get("preview"), n = e.get("overrides." + t);
1794
1794
  return n || x.warn("No previewed ID found in search params."), n;
1795
1795
  };
@@ -1800,55 +1800,55 @@ function an() {
1800
1800
  ttl: 1e3 * 60 * 5
1801
1801
  }));
1802
1802
  }
1803
- function rn(e) {
1803
+ function sn(e) {
1804
1804
  an();
1805
- const t = on(e);
1805
+ const t = rn(e);
1806
1806
  return typeof t == "string" ? globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t) : void 0;
1807
1807
  }
1808
- function sn() {
1808
+ function cn() {
1809
1809
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
1810
1810
  }
1811
- function cn() {
1812
- const e = sn().fetch;
1811
+ function ln() {
1812
+ const e = cn().fetch;
1813
1813
  if (typeof e > "u")
1814
1814
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
1815
1815
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
1816
1816
  return e;
1817
1817
  }
1818
- const ln = cn();
1819
- function B(e, t = null, n = ".") {
1818
+ const dn = ln();
1819
+ function V(e, t = null, n = ".") {
1820
1820
  return Object.keys(e).reduce((o, i) => {
1821
- const a = e[i], r = [t, i].filter(Boolean).join(n);
1822
- return [typeof a == "object", a !== null, !(Array.isArray(a) && a.length === 0)].every(Boolean) ? {
1821
+ const r = e[i], a = [t, i].filter(Boolean).join(n);
1822
+ return [typeof r == "object", r !== null, !(Array.isArray(r) && r.length === 0)].every(Boolean) ? {
1823
1823
  ...o,
1824
- ...B(a, r, n)
1824
+ ...V(r, a, n)
1825
1825
  } : {
1826
1826
  ...o,
1827
- [r]: a
1827
+ [a]: r
1828
1828
  };
1829
1829
  }, {});
1830
1830
  }
1831
- const dn = "v3", ee = "builder.", un = "options.", mn = (e) => {
1831
+ const un = "v3", ee = "builder.", mn = "options.", fn = (e) => {
1832
1832
  const t = {};
1833
1833
  return e.forEach((n, o) => {
1834
1834
  t[o] = n;
1835
1835
  }), t;
1836
- }, Ce = (e) => {
1836
+ }, we = (e) => {
1837
1837
  if (!e)
1838
1838
  return {};
1839
- const t = we(e), n = {};
1839
+ const t = Ie(e), n = {};
1840
1840
  return Object.keys(t).forEach((o) => {
1841
1841
  if (o.startsWith(ee)) {
1842
- const i = o.replace(ee, "").replace(un, "");
1842
+ const i = o.replace(ee, "").replace(mn, "");
1843
1843
  n[i] = t[o];
1844
1844
  }
1845
1845
  }), n;
1846
- }, fn = () => {
1847
- if (!S())
1846
+ }, hn = () => {
1847
+ if (!k())
1848
1848
  return {};
1849
1849
  const e = new URLSearchParams(window.location.search);
1850
- return Ce(e);
1851
- }, we = (e) => e instanceof URLSearchParams ? mn(e) : e, te = (e) => typeof e == "number" && !isNaN(e) && e >= 0, z = (e) => {
1850
+ return we(e);
1851
+ }, Ie = (e) => e instanceof URLSearchParams ? fn(e) : e, te = (e) => typeof e == "number" && !isNaN(e) && e >= 0, z = (e) => {
1852
1852
  let {
1853
1853
  noTraverse: t = !1
1854
1854
  } = e;
@@ -1856,12 +1856,12 @@ const dn = "v3", ee = "builder.", un = "options.", mn = (e) => {
1856
1856
  limit: n = 30,
1857
1857
  userAttributes: o,
1858
1858
  query: i,
1859
- model: a,
1860
- apiKey: r,
1859
+ model: r,
1860
+ apiKey: a,
1861
1861
  includeRefs: s = !0,
1862
1862
  enrich: c,
1863
1863
  locale: m,
1864
- apiVersion: g = dn,
1864
+ apiVersion: g = un,
1865
1865
  fields: p,
1866
1866
  omit: f,
1867
1867
  offset: h,
@@ -1870,73 +1870,73 @@ const dn = "v3", ee = "builder.", un = "options.", mn = (e) => {
1870
1870
  sort: y,
1871
1871
  includeUnpublished: v
1872
1872
  } = e;
1873
- if (!r)
1873
+ if (!a)
1874
1874
  throw new Error("Missing API key");
1875
1875
  if (!["v2", "v3"].includes(g))
1876
1876
  throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${g}'`);
1877
1877
  (e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
1878
- const b = new URL(`https://cdn.builder.io/api/${g}/content/${a}?apiKey=${r}&limit=${n}&noTraverse=${t}&includeRefs=${s}${m ? `&locale=${m}` : ""}${c ? `&enrich=${c}` : ""}`);
1878
+ const b = new URL(`https://cdn.builder.io/api/${g}/content/${r}?apiKey=${a}&limit=${n}&noTraverse=${t}&includeRefs=${s}${m ? `&locale=${m}` : ""}${c ? `&enrich=${c}` : ""}`);
1879
1879
  if (b.searchParams.set("omit", f || "meta.componentsUsed"), p && b.searchParams.set("fields", p), Number.isFinite(h) && h > -1 && b.searchParams.set("offset", String(Math.floor(h))), typeof v == "boolean" && b.searchParams.set("includeUnpublished", String(v)), u && te(u) && b.searchParams.set("cacheSeconds", String(u)), d && te(d) && b.searchParams.set("staleCacheSeconds", String(d)), y) {
1880
- const w = B({
1880
+ const w = V({
1881
1881
  sort: y
1882
1882
  });
1883
- for (const P in w)
1884
- b.searchParams.set(P, JSON.stringify(w[P]));
1883
+ for (const A in w)
1884
+ b.searchParams.set(A, JSON.stringify(w[A]));
1885
1885
  }
1886
1886
  const E = {
1887
- ...fn(),
1888
- ...we(e.options || {})
1889
- }, T = B(E);
1887
+ ...hn(),
1888
+ ...Ie(e.options || {})
1889
+ }, T = V(E);
1890
1890
  for (const w in T)
1891
1891
  b.searchParams.set(w, String(T[w]));
1892
1892
  if (o && b.searchParams.set("userAttributes", JSON.stringify(o)), i) {
1893
- const w = B({
1893
+ const w = V({
1894
1894
  query: i
1895
1895
  });
1896
- for (const P in w)
1897
- b.searchParams.set(P, JSON.stringify(w[P]));
1896
+ for (const A in w)
1897
+ b.searchParams.set(A, JSON.stringify(w[A]));
1898
1898
  }
1899
1899
  return b;
1900
- }, hn = (e) => "results" in e;
1900
+ }, pn = (e) => "results" in e;
1901
1901
  async function q(e) {
1902
- const t = await Ie({
1902
+ const t = await Te({
1903
1903
  ...e,
1904
1904
  limit: 1
1905
1905
  });
1906
1906
  return t && t[0] || null;
1907
1907
  }
1908
- const Zn = q, pn = async (e) => {
1908
+ const io = q, gn = async (e) => {
1909
1909
  const t = z(e);
1910
- return await (await ln(t.href)).json();
1911
- }, gn = async (e, t, n = z(e)) => {
1912
- const o = _(e.canTrack);
1910
+ return await (await dn(t.href)).json();
1911
+ }, bn = async (e, t, n = z(e)) => {
1912
+ const o = U(e.canTrack);
1913
1913
  if (n.search.includes("preview=")) {
1914
- const a = [];
1915
- for (const r of t.results) {
1916
- const s = rn(n.searchParams);
1917
- a.push(s || r);
1914
+ const r = [];
1915
+ for (const a of t.results) {
1916
+ const s = sn(n.searchParams);
1917
+ r.push(s || a);
1918
1918
  }
1919
- t.results = a;
1919
+ t.results = r;
1920
1920
  }
1921
- if (!o || !(S() || I === "reactNative"))
1921
+ if (!o || !(k() || I === "reactNative"))
1922
1922
  return t.results;
1923
1923
  try {
1924
- const a = [];
1925
- for (const r of t.results)
1926
- a.push(await Bt({
1927
- item: r,
1924
+ const r = [];
1925
+ for (const a of t.results)
1926
+ r.push(await $t({
1927
+ item: a,
1928
1928
  canTrack: o
1929
1929
  }));
1930
- t.results = a;
1931
- } catch (a) {
1932
- x.error("Could not process A/B tests. ", a);
1930
+ t.results = r;
1931
+ } catch (r) {
1932
+ x.error("Could not process A/B tests. ", r);
1933
1933
  }
1934
1934
  return t.results;
1935
1935
  };
1936
- async function Ie(e) {
1936
+ async function Te(e) {
1937
1937
  try {
1938
- const t = z(e), n = await pn(e);
1939
- return hn(n) ? gn(e, n) : (x.error("Error fetching data. ", {
1938
+ const t = z(e), n = await gn(e);
1939
+ return pn(n) ? bn(e, n) : (x.error("Error fetching data. ", {
1940
1940
  url: t,
1941
1941
  content: n,
1942
1942
  options: e
@@ -1945,13 +1945,13 @@ async function Ie(e) {
1945
1945
  return x.error("Error fetching data. ", t), null;
1946
1946
  }
1947
1947
  }
1948
- const eo = Ie, bn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
1949
- function yn(e, t) {
1948
+ const ro = Te, yn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
1949
+ function Sn(e, t) {
1950
1950
  const n = new URL(t.origin), o = n.hostname;
1951
- return (e || bn).findIndex((i) => i.startsWith("*.") ? o.endsWith(i.slice(1)) : i === o) > -1;
1951
+ return (e || yn).findIndex((i) => i.startsWith("*.") ? o.endsWith(i.slice(1)) : i === o) > -1;
1952
1952
  }
1953
- function to() {
1954
- return !S() || j() ? !1 : location.search.indexOf("builder.preview=") !== -1;
1953
+ function ao() {
1954
+ return !k() || j() ? !1 : location.search.indexOf("builder.preview=") !== -1;
1955
1955
  }
1956
1956
  function kn() {
1957
1957
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
@@ -1959,82 +1959,82 @@ function kn() {
1959
1959
  return (e == "x" ? t : t & 3 | 8).toString(16);
1960
1960
  });
1961
1961
  }
1962
- function Te() {
1962
+ function Ee() {
1963
1963
  return kn().replace(/-/g, "");
1964
1964
  }
1965
- const Ee = "builderSessionId", Sn = async ({
1965
+ const Re = "builderSessionId", vn = async ({
1966
1966
  canTrack: e
1967
1967
  }) => {
1968
1968
  if (!e)
1969
1969
  return;
1970
- const t = await pe({
1971
- name: Ee,
1970
+ const t = await ge({
1971
+ name: Re,
1972
1972
  canTrack: e
1973
1973
  });
1974
1974
  if (C(t))
1975
1975
  return t;
1976
1976
  {
1977
- const n = vn();
1978
- return xn({
1977
+ const n = xn();
1978
+ return Cn({
1979
1979
  id: n,
1980
1980
  canTrack: e
1981
1981
  }), n;
1982
1982
  }
1983
- }, vn = () => Te(), xn = ({
1983
+ }, xn = () => Ee(), Cn = ({
1984
1984
  id: e,
1985
1985
  canTrack: t
1986
- }) => ge({
1987
- name: Ee,
1986
+ }) => be({
1987
+ name: Re,
1988
1988
  value: e,
1989
1989
  canTrack: t
1990
- }), Re = () => S() && typeof localStorage < "u" ? localStorage : void 0, Cn = ({
1990
+ }), Ae = () => k() && typeof localStorage < "u" ? localStorage : void 0, wn = ({
1991
1991
  key: e,
1992
1992
  canTrack: t
1993
1993
  }) => {
1994
1994
  var n;
1995
1995
  try {
1996
- return t ? (n = Re()) == null ? void 0 : n.getItem(e) : void 0;
1996
+ return t ? (n = Ae()) == null ? void 0 : n.getItem(e) : void 0;
1997
1997
  } catch (o) {
1998
1998
  console.debug("[LocalStorage] GET error: ", o);
1999
1999
  return;
2000
2000
  }
2001
- }, wn = ({
2001
+ }, In = ({
2002
2002
  key: e,
2003
2003
  canTrack: t,
2004
2004
  value: n
2005
2005
  }) => {
2006
2006
  var o;
2007
2007
  try {
2008
- t && ((o = Re()) == null || o.setItem(e, n));
2008
+ t && ((o = Ae()) == null || o.setItem(e, n));
2009
2009
  } catch (i) {
2010
2010
  console.debug("[LocalStorage] SET error: ", i);
2011
2011
  }
2012
- }, Pe = "builderVisitorId", In = ({
2012
+ }, Pe = "builderVisitorId", Tn = ({
2013
2013
  canTrack: e
2014
2014
  }) => {
2015
2015
  if (!e)
2016
2016
  return;
2017
- const t = Cn({
2017
+ const t = wn({
2018
2018
  key: Pe,
2019
2019
  canTrack: e
2020
2020
  });
2021
2021
  if (C(t))
2022
2022
  return t;
2023
2023
  {
2024
- const n = Tn();
2025
- return En({
2024
+ const n = En();
2025
+ return Rn({
2026
2026
  id: n,
2027
2027
  canTrack: e
2028
2028
  }), n;
2029
2029
  }
2030
- }, Tn = () => Te(), En = ({
2030
+ }, En = () => Ee(), Rn = ({
2031
2031
  id: e,
2032
2032
  canTrack: t
2033
- }) => wn({
2033
+ }) => In({
2034
2034
  key: Pe,
2035
2035
  value: e,
2036
2036
  canTrack: t
2037
- }), Rn = async ({
2037
+ }), An = async ({
2038
2038
  canTrack: e
2039
2039
  }) => {
2040
2040
  if (!e)
@@ -2042,9 +2042,9 @@ const Ee = "builderSessionId", Sn = async ({
2042
2042
  visitorId: void 0,
2043
2043
  sessionId: void 0
2044
2044
  };
2045
- const t = await Sn({
2045
+ const t = await vn({
2046
2046
  canTrack: e
2047
- }), n = In({
2047
+ }), n = Tn({
2048
2048
  canTrack: e
2049
2049
  });
2050
2050
  return {
@@ -2065,19 +2065,19 @@ const Ee = "builderSessionId", Sn = async ({
2065
2065
  url: location.href,
2066
2066
  ...o
2067
2067
  },
2068
- ...await Rn({
2068
+ ...await An({
2069
2069
  canTrack: t
2070
2070
  }),
2071
- userAttributes: ce(),
2071
+ userAttributes: le(),
2072
2072
  ownerId: n
2073
2073
  }
2074
2074
  });
2075
- async function An(e) {
2075
+ async function Bn(e) {
2076
2076
  if (!e.apiKey) {
2077
2077
  x.error("Missing API key for track call. Please provide your API key.");
2078
2078
  return;
2079
2079
  }
2080
- if (e.canTrack && !j() && (S() || I === "reactNative"))
2080
+ if (e.canTrack && !j() && (k() || I === "reactNative"))
2081
2081
  return fetch("https://cdn.builder.io/api/v1/track", {
2082
2082
  method: "POST",
2083
2083
  body: JSON.stringify({
@@ -2091,7 +2091,7 @@ async function An(e) {
2091
2091
  console.error("Failed to track: ", t);
2092
2092
  });
2093
2093
  }
2094
- const no = (e) => An({
2094
+ const so = (e) => Bn({
2095
2095
  ...e,
2096
2096
  canTrack: !0
2097
2097
  });
@@ -2109,20 +2109,20 @@ const Vn = (e, t, n = !0) => {
2109
2109
  return o;
2110
2110
  } while (o = o.parentElement);
2111
2111
  return null;
2112
- }, Bn = (e) => Vn(e, (t) => {
2112
+ }, $n = (e) => Vn(e, (t) => {
2113
2113
  const n = t.getAttribute("builder-id") || t.id;
2114
2114
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
2115
2115
  }), oe = ({
2116
2116
  event: e,
2117
2117
  target: t
2118
2118
  }) => {
2119
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, i = e.clientY - n.top, a = ne(o / n.width), r = ne(i / n.height);
2119
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, i = e.clientY - n.top, r = ne(o / n.width), a = ne(i / n.height);
2120
2120
  return {
2121
- x: a,
2122
- y: r
2121
+ x: r,
2122
+ y: a
2123
2123
  };
2124
- }, oo = (e) => {
2125
- const t = e.target, n = t && Bn(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2124
+ }, co = (e) => {
2125
+ const t = e.target, n = t && $n(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2126
2126
  return {
2127
2127
  targetBuilderElement: o || void 0,
2128
2128
  metadata: {
@@ -2137,10 +2137,10 @@ const Vn = (e, t, n = !0) => {
2137
2137
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
2138
2138
  }
2139
2139
  };
2140
- }, Wn = "0.12.6", ie = {};
2141
- function $n(e, t) {
2140
+ }, Wn = "0.12.7", ie = {};
2141
+ function On(e, t) {
2142
2142
  let n = ie[e];
2143
- if (n || (n = ie[e] = []), n.push(t), S()) {
2143
+ if (n || (n = ie[e] = []), n.push(t), k()) {
2144
2144
  const o = {
2145
2145
  type: "builder.register",
2146
2146
  data: {
@@ -2155,8 +2155,8 @@ function $n(e, t) {
2155
2155
  }
2156
2156
  }
2157
2157
  }
2158
- const io = () => {
2159
- $n("insertMenu", {
2158
+ const lo = () => {
2159
+ On("insertMenu", {
2160
2160
  name: "_default",
2161
2161
  default: !0,
2162
2162
  items: [{
@@ -2178,10 +2178,10 @@ const io = () => {
2178
2178
  }]
2179
2179
  });
2180
2180
  };
2181
- let ae = !1;
2182
- const ao = (e = {}) => {
2181
+ let re = !1;
2182
+ const uo = (e = {}) => {
2183
2183
  var t, n;
2184
- ae || (ae = !0, S() && ((t = window.parent) == null || t.postMessage({
2184
+ re || (re = !0, k() && ((t = window.parent) == null || t.postMessage({
2185
2185
  type: "builder.sdkInfo",
2186
2186
  data: {
2187
2187
  target: I,
@@ -2198,8 +2198,8 @@ const ao = (e = {}) => {
2198
2198
  options: e
2199
2199
  }
2200
2200
  }, "*"), window.addEventListener("message", (o) => {
2201
- var a, r;
2202
- if (!yn(e.trustedHosts, o))
2201
+ var r, a;
2202
+ if (!Sn(e.trustedHosts, o))
2203
2203
  return;
2204
2204
  const {
2205
2205
  data: i
@@ -2214,7 +2214,7 @@ const ao = (e = {}) => {
2214
2214
  } catch (h) {
2215
2215
  f = h;
2216
2216
  }
2217
- f ? (a = window.parent) == null || a.postMessage({
2217
+ f ? (r = window.parent) == null || r.postMessage({
2218
2218
  type: "builder.evaluateError",
2219
2219
  data: {
2220
2220
  id: m,
@@ -2229,7 +2229,7 @@ const ao = (e = {}) => {
2229
2229
  result: h
2230
2230
  }
2231
2231
  }, "*");
2232
- }).catch(console.error) : (r = window.parent) == null || r.postMessage({
2232
+ }).catch(console.error) : (a = window.parent) == null || a.postMessage({
2233
2233
  type: "builder.evaluateResult",
2234
2234
  data: {
2235
2235
  result: p,
@@ -2240,9 +2240,51 @@ const ao = (e = {}) => {
2240
2240
  }
2241
2241
  }
2242
2242
  })));
2243
- }, On = (e) => {
2244
- var a;
2245
- const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((a = e == null ? void 0 : e.files) == null ? void 0 : a.regular);
2243
+ };
2244
+ function ae(e, ...t) {
2245
+ const n = Object(e);
2246
+ for (let o = 1; o < arguments.length; o++) {
2247
+ const i = arguments[o];
2248
+ if (i != null)
2249
+ for (const r in i)
2250
+ Object.prototype.hasOwnProperty.call(i, r) && (n[r] = i[r]);
2251
+ }
2252
+ return n;
2253
+ }
2254
+ const Nn = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
2255
+ function Fn(e) {
2256
+ console.warn(`Cannot animate element: element with ID ${e} not found!`);
2257
+ }
2258
+ function Ln(e, t) {
2259
+ const n = Un(e), o = getComputedStyle(t), i = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [i, r];
2260
+ for (const s of a)
2261
+ for (const c of n)
2262
+ c in s || (s[c] = o[c]);
2263
+ }
2264
+ function Un(e) {
2265
+ const t = [];
2266
+ for (const n of e.steps)
2267
+ for (const o in n.styles)
2268
+ t.indexOf(o) === -1 && t.push(o);
2269
+ return t;
2270
+ }
2271
+ function mo(e) {
2272
+ const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
2273
+ if (!t.length) {
2274
+ Fn(e.elementId || e.id || "");
2275
+ return;
2276
+ }
2277
+ Array.from(t).forEach((n) => {
2278
+ Ln(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ae(n.style, e.steps[0].styles), setTimeout(() => {
2279
+ n.style.transition = `all ${e.duration}s ${Nn(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), ae(n.style, e.steps[1].styles), setTimeout(() => {
2280
+ n.style.transition = "", n.style.transitionDelay = "";
2281
+ }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
2282
+ });
2283
+ });
2284
+ }
2285
+ const _n = (e) => {
2286
+ var r;
2287
+ const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((r = e == null ? void 0 : e.files) == null ? void 0 : r.regular);
2246
2288
  let i = "";
2247
2289
  if (o && t && n && (i += `
2248
2290
  @font-face {
@@ -2252,36 +2294,36 @@ font-display: fallback;
2252
2294
  font-weight: 400;
2253
2295
  }
2254
2296
  `.trim()), e.files)
2255
- for (const r in e.files) {
2256
- if (!(String(Number(r)) === r))
2297
+ for (const a in e.files) {
2298
+ if (!(String(Number(a)) === a))
2257
2299
  continue;
2258
- const c = e.files[r];
2300
+ const c = e.files[a];
2259
2301
  c && c !== o && (i += `
2260
2302
  @font-face {
2261
2303
  font-family: "${t}";
2262
2304
  src: url('${c}') format('woff2');
2263
2305
  font-display: fallback;
2264
- font-weight: ${r};
2306
+ font-weight: ${a};
2265
2307
  }
2266
2308
  `.trim());
2267
2309
  }
2268
2310
  return i;
2269
- }, Nn = ({
2311
+ }, Dn = ({
2270
2312
  customFonts: e
2271
2313
  }) => {
2272
2314
  var t;
2273
- return ((t = e == null ? void 0 : e.map((n) => On(n))) == null ? void 0 : t.join(" ")) || "";
2274
- }, Fn = ({
2315
+ return ((t = e == null ? void 0 : e.map((n) => _n(n))) == null ? void 0 : t.join(" ")) || "";
2316
+ }, Mn = ({
2275
2317
  cssCode: e,
2276
2318
  contentId: t
2277
2319
  }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
2278
- function Ln(e) {
2320
+ function jn(e) {
2279
2321
  const t = `
2280
- ${Fn({
2322
+ ${Mn({
2281
2323
  cssCode: e.cssCode,
2282
2324
  contentId: e.contentId
2283
2325
  })}
2284
- ${Nn({
2326
+ ${Dn({
2285
2327
  customFonts: e.customFonts
2286
2328
  })}
2287
2329
 
@@ -2304,14 +2346,14 @@ ${Nn({
2304
2346
  `.trim();
2305
2347
  return /* @__PURE__ */ l(O, { styles: t });
2306
2348
  }
2307
- const _n = ({
2349
+ const Hn = ({
2308
2350
  content: e,
2309
2351
  data: t,
2310
2352
  locale: n
2311
2353
  }) => {
2312
- var a, r, s;
2313
- const o = {}, i = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
2314
- return (s = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || s.forEach((c) => {
2354
+ var r, a, s;
2355
+ const o = {}, i = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
2356
+ return (s = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || s.forEach((c) => {
2315
2357
  c.name && c.defaultValue !== void 0 && (o[c.name] = c.defaultValue);
2316
2358
  }), {
2317
2359
  ...o,
@@ -2321,7 +2363,7 @@ const _n = ({
2321
2363
  locale: n
2322
2364
  } : {}
2323
2365
  };
2324
- }, Un = ({
2366
+ }, Kn = ({
2325
2367
  content: e,
2326
2368
  data: t
2327
2369
  }) => e ? {
@@ -2332,13 +2374,13 @@ const _n = ({
2332
2374
  },
2333
2375
  meta: e == null ? void 0 : e.meta
2334
2376
  } : void 0;
2335
- function re(e) {
2336
- var i, a, r, s, c, m, g, p, f;
2337
- const t = nn({
2377
+ function se(e) {
2378
+ var i, r, a, s, c, m, g, p, f;
2379
+ const t = on({
2338
2380
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2339
2381
  variationId: (i = e.content) == null ? void 0 : i.testVariationId,
2340
2382
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2341
- contentId: (a = e.content) == null ? void 0 : a.id
2383
+ contentId: (r = e.content) == null ? void 0 : r.id
2342
2384
  }), n = [
2343
2385
  ...X(),
2344
2386
  // While this `components` object is deprecated, we must maintain support for it.
@@ -2353,17 +2395,17 @@ function re(e) {
2353
2395
  ...h,
2354
2396
  [d.name]: {
2355
2397
  component: u,
2356
- ...U(d)
2398
+ ..._(d)
2357
2399
  }
2358
2400
  }),
2359
2401
  {}
2360
2402
  ), o = {
2361
- content: Un({
2403
+ content: Kn({
2362
2404
  content: e.content,
2363
2405
  data: e.data
2364
2406
  }),
2365
2407
  localState: void 0,
2366
- rootState: _n({
2408
+ rootState: Hn({
2367
2409
  content: e.content,
2368
2410
  data: e.data,
2369
2411
  locale: e.locale
@@ -2384,7 +2426,7 @@ function re(e) {
2384
2426
  ].reduce(
2385
2427
  (h, { component: u, ...d }) => ({
2386
2428
  ...h,
2387
- [d.name]: U(d)
2429
+ [d.name]: _(d)
2388
2430
  }),
2389
2431
  {}
2390
2432
  ),
@@ -2393,7 +2435,7 @@ function re(e) {
2393
2435
  BlocksWrapperProps: e.blocksWrapperProps || {}
2394
2436
  };
2395
2437
  return /* @__PURE__ */ R(
2396
- He,
2438
+ Ke,
2397
2439
  {
2398
2440
  content: e.content,
2399
2441
  data: e.data,
@@ -2411,11 +2453,11 @@ function re(e) {
2411
2453
  linkComponent: e.linkComponent,
2412
2454
  trustedHosts: e.trustedHosts,
2413
2455
  children: [
2414
- e.isSsrAbTest ? /* @__PURE__ */ l(k, { children: /* @__PURE__ */ l(D, { scriptStr: t }) }) : null,
2415
- /* @__PURE__ */ l(k, { children: /* @__PURE__ */ l(
2416
- Ln,
2456
+ e.isSsrAbTest ? /* @__PURE__ */ l(S, { children: /* @__PURE__ */ l(D, { scriptStr: t }) }) : null,
2457
+ /* @__PURE__ */ l(S, { children: /* @__PURE__ */ l(
2458
+ jn,
2417
2459
  {
2418
- contentId: (r = o.content) == null ? void 0 : r.id,
2460
+ contentId: (a = o.content) == null ? void 0 : a.id,
2419
2461
  cssCode: (c = (s = o.content) == null ? void 0 : s.data) == null ? void 0 : c.cssCode,
2420
2462
  customFonts: (g = (m = o.content) == null ? void 0 : m.data) == null ? void 0 : g.customFonts
2421
2463
  }
@@ -2433,22 +2475,22 @@ function re(e) {
2433
2475
  }
2434
2476
  );
2435
2477
  }
2436
- function Ae(e) {
2437
- var a, r;
2438
- const t = Xt({
2439
- canTrack: _(e.canTrack),
2478
+ function Be(e) {
2479
+ var r, a;
2480
+ const t = Zt({
2481
+ canTrack: U(e.canTrack),
2440
2482
  content: e.content
2441
2483
  }), n = function() {
2442
2484
  var c;
2443
- return tn(
2444
- V(e.content).map((m) => ({
2485
+ return nn(
2486
+ B(e.content).map((m) => ({
2445
2487
  id: m.testVariationId,
2446
2488
  testRatio: m.testRatio
2447
2489
  })),
2448
2490
  ((c = e.content) == null ? void 0 : c.id) || ""
2449
2491
  );
2450
2492
  }, o = function() {
2451
- return V(e.content).map((c) => `.variant-${c.testVariationId} { display: none; } `).join("");
2493
+ return B(e.content).map((c) => `.variant-${c.testVariationId} { display: none; } `).join("");
2452
2494
  }, i = function() {
2453
2495
  var c;
2454
2496
  return t ? {
@@ -2456,22 +2498,22 @@ function Ae(e) {
2456
2498
  testVariationId: (c = e.content) == null ? void 0 : c.id
2457
2499
  } : Vt({
2458
2500
  item: e.content,
2459
- canTrack: _(e.canTrack)
2501
+ canTrack: U(e.canTrack)
2460
2502
  });
2461
2503
  };
2462
- return /* @__PURE__ */ R(k, { children: [
2463
- !e.__isNestedRender && I !== "reactNative" ? /* @__PURE__ */ l(k, { children: /* @__PURE__ */ l(D, { scriptStr: en() }) }) : null,
2464
- t ? /* @__PURE__ */ R(k, { children: [
2504
+ return /* @__PURE__ */ R(S, { children: [
2505
+ !e.__isNestedRender && I !== "reactNative" ? /* @__PURE__ */ l(S, { children: /* @__PURE__ */ l(D, { scriptStr: tn() }) }) : null,
2506
+ t ? /* @__PURE__ */ R(S, { children: [
2465
2507
  /* @__PURE__ */ l(
2466
2508
  O,
2467
2509
  {
2468
- id: `variants-styles-${(a = e.content) == null ? void 0 : a.id}`,
2510
+ id: `variants-styles-${(r = e.content) == null ? void 0 : r.id}`,
2469
2511
  styles: o()
2470
2512
  }
2471
2513
  ),
2472
2514
  /* @__PURE__ */ l(D, { scriptStr: n() }),
2473
- (r = V(e.content)) == null ? void 0 : r.map((s) => /* @__PURE__ */ l(
2474
- re,
2515
+ (a = B(e.content)) == null ? void 0 : a.map((s) => /* @__PURE__ */ l(
2516
+ se,
2475
2517
  {
2476
2518
  content: s,
2477
2519
  showContent: !1,
@@ -2497,7 +2539,7 @@ function Ae(e) {
2497
2539
  ))
2498
2540
  ] }) : null,
2499
2541
  /* @__PURE__ */ l(
2500
- re,
2542
+ se,
2501
2543
  {
2502
2544
  content: i(),
2503
2545
  showContent: !0,
@@ -2522,7 +2564,7 @@ function Ae(e) {
2522
2564
  )
2523
2565
  ] });
2524
2566
  }
2525
- const Dn = async ({
2567
+ const zn = async ({
2526
2568
  builderContextValue: e,
2527
2569
  symbol: t
2528
2570
  }) => {
@@ -2541,8 +2583,8 @@ const Dn = async ({
2541
2583
  x.error("Could not fetch symbol content: ", n);
2542
2584
  });
2543
2585
  };
2544
- async function Mn(e) {
2545
- var o, i, a, r, s;
2586
+ async function qn(e) {
2587
+ var o, i, r, a, s;
2546
2588
  const t = function() {
2547
2589
  var m, g;
2548
2590
  return [
@@ -2551,12 +2593,12 @@ async function Mn(e) {
2551
2593
  (m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
2552
2594
  (g = e.symbol) != null && g.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
2553
2595
  ].filter(Boolean).join(" ");
2554
- }, n = ((o = e.symbol) == null ? void 0 : o.content) || await Dn({
2596
+ }, n = ((o = e.symbol) == null ? void 0 : o.content) || await zn({
2555
2597
  symbol: e.symbol,
2556
2598
  builderContextValue: e.builderContext
2557
2599
  });
2558
2600
  return /* @__PURE__ */ l("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ l(
2559
- Ae,
2601
+ Be,
2560
2602
  {
2561
2603
  __isNestedRender: !0,
2562
2604
  apiVersion: e.builderContext.apiVersion,
@@ -2567,9 +2609,9 @@ async function Mn(e) {
2567
2609
  },
2568
2610
  customComponents: Object.values(e.builderComponents),
2569
2611
  data: {
2570
- ...(a = e.symbol) == null ? void 0 : a.data,
2612
+ ...(r = e.symbol) == null ? void 0 : r.data,
2571
2613
  ...e.builderContext.localState,
2572
- ...(r = n == null ? void 0 : n.data) == null ? void 0 : r.state
2614
+ ...(a = n == null ? void 0 : n.data) == null ? void 0 : a.state
2573
2615
  },
2574
2616
  model: (s = e.symbol) == null ? void 0 : s.model,
2575
2617
  content: n,
@@ -2577,19 +2619,19 @@ async function Mn(e) {
2577
2619
  }
2578
2620
  ) });
2579
2621
  }
2580
- const ro = F, so = Ae, se = {};
2581
- function co(e) {
2582
- if (S()) {
2583
- Object.assign(se, e);
2622
+ const fo = F, ho = Be, ce = {};
2623
+ function po(e) {
2624
+ if (k()) {
2625
+ Object.assign(ce, e);
2584
2626
  const t = {
2585
2627
  type: "builder.settingsChange",
2586
- data: se
2628
+ data: ce
2587
2629
  };
2588
2630
  parent.postMessage(t, "*");
2589
2631
  }
2590
2632
  }
2591
- const lo = async (e) => {
2592
- var o, i, a;
2633
+ const go = async (e) => {
2634
+ var o, i, r;
2593
2635
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((i = e.userAttributes) == null ? void 0 : i.urlPath), n = {
2594
2636
  ...e,
2595
2637
  apiKey: e.apiKey,
@@ -2600,7 +2642,7 @@ const lo = async (e) => {
2600
2642
  urlPath: t
2601
2643
  } : {}
2602
2644
  },
2603
- options: Ce(e.searchParams || ((a = e.url) == null ? void 0 : a.searchParams) || e.options)
2645
+ options: we(e.searchParams || ((r = e.url) == null ? void 0 : r.searchParams) || e.options)
2604
2646
  };
2605
2647
  return {
2606
2648
  apiKey: n.apiKey,
@@ -2609,42 +2651,43 @@ const lo = async (e) => {
2609
2651
  };
2610
2652
  };
2611
2653
  export {
2612
- Ie as A,
2654
+ bn as A,
2613
2655
  F as B,
2614
- Ae as C,
2615
- eo as D,
2616
- Zn as E,
2617
- Ce as F,
2618
- no as G,
2619
- lo as H,
2620
- ro as R,
2621
- Mn as S,
2622
- zt as T,
2623
- An as _,
2624
- gt as a,
2625
- Yn as b,
2656
+ Be as C,
2657
+ Te as D,
2658
+ ro as E,
2659
+ io as F,
2660
+ we as G,
2661
+ so as H,
2662
+ go as I,
2663
+ fo as R,
2664
+ qn as S,
2665
+ qt as T,
2666
+ Bn as _,
2667
+ bt as a,
2668
+ eo as b,
2626
2669
  j as c,
2627
- Jn as d,
2628
- Qn as e,
2629
- S as f,
2670
+ to as d,
2671
+ no as e,
2672
+ k as f,
2630
2673
  M as g,
2631
- _ as h,
2632
- Gn as i,
2633
- to as j,
2634
- yn as k,
2674
+ U as h,
2675
+ Zn as i,
2676
+ ao as j,
2677
+ Sn as k,
2635
2678
  x as l,
2636
2679
  H as m,
2637
- oo as n,
2638
- $ as o,
2639
- Xn as p,
2680
+ co as n,
2681
+ W as o,
2682
+ oo as p,
2640
2683
  q,
2641
- io as r,
2642
- ao as s,
2643
- ln as t,
2644
- an as u,
2645
- so as v,
2646
- kt as w,
2647
- $n as x,
2648
- co as y,
2649
- gn as z
2684
+ lo as r,
2685
+ uo as s,
2686
+ mo as t,
2687
+ dn as u,
2688
+ an as v,
2689
+ ho as w,
2690
+ kt as x,
2691
+ On as y,
2692
+ po as z
2650
2693
  };