@builder.io/sdk-react-nextjs 0.7.3 → 0.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/lib/browser/USE_CLIENT_BUNDLE-02851f5b.js +711 -0
  2. package/lib/browser/USE_CLIENT_BUNDLE-19024ae3.cjs +23 -0
  3. package/lib/{edge/USE_SERVER_BUNDLE-6089c743.js → browser/USE_SERVER_BUNDLE-0dbfec06.js} +1 -1
  4. package/lib/{edge/USE_SERVER_BUNDLE-edaaf934.cjs → browser/USE_SERVER_BUNDLE-99af92f3.cjs} +1 -1
  5. package/lib/browser/{bundle-34c6ede8.cjs → bundle-cf866f2c.cjs} +111 -19
  6. package/lib/browser/{bundle-abfb58cd.js → bundle-ed21dd97.js} +556 -545
  7. package/lib/browser/index.cjs +1 -1
  8. package/lib/browser/index.mjs +3 -3
  9. package/lib/edge/USE_CLIENT_BUNDLE-853614ad.cjs +23 -0
  10. package/lib/edge/USE_CLIENT_BUNDLE-a1ac1e61.js +711 -0
  11. package/lib/{node/USE_SERVER_BUNDLE-d10edbf4.cjs → edge/USE_SERVER_BUNDLE-949923da.cjs} +1 -1
  12. package/lib/{node/USE_SERVER_BUNDLE-ee34a991.js → edge/USE_SERVER_BUNDLE-f8e4c4d9.js} +1 -1
  13. package/lib/edge/{bundle-52813dc2.js → bundle-48628d9c.js} +1490 -1479
  14. package/lib/edge/bundle-97130d9a.cjs +188 -0
  15. package/lib/edge/index.cjs +1 -1
  16. package/lib/edge/index.mjs +3 -3
  17. package/lib/node/USE_CLIENT_BUNDLE-23b5881f.cjs +23 -0
  18. package/lib/node/USE_CLIENT_BUNDLE-b63c2d8e.js +711 -0
  19. package/lib/{browser/USE_SERVER_BUNDLE-a299f76e.js → node/USE_SERVER_BUNDLE-643288fc.js} +1 -1
  20. package/lib/{browser/USE_SERVER_BUNDLE-f71d2896.cjs → node/USE_SERVER_BUNDLE-d645bd91.cjs} +1 -1
  21. package/lib/node/{bundle-72453996.js → bundle-3ab5a1ab.js} +349 -338
  22. package/lib/node/{bundle-c9c796be.cjs → bundle-3f7e723b.cjs} +110 -18
  23. package/lib/node/index.cjs +1 -1
  24. package/lib/node/index.mjs +3 -3
  25. package/package.json +8 -1
  26. package/types/cjs/blocks/video/video.d.ts +4 -0
  27. package/types/cjs/components/content/content.helpers.d.ts +1 -1
  28. package/types/cjs/components/content/content.types.d.ts +0 -4
  29. package/types/cjs/components/content-variants/helpers.d.ts +3 -3
  30. package/types/cjs/components/content-variants/inlined-fns.d.ts +14 -0
  31. package/types/cjs/constants/sdk-version.d.ts +1 -1
  32. package/types/esm/blocks/video/video.d.ts +4 -0
  33. package/types/esm/components/content/content.helpers.d.ts +1 -1
  34. package/types/esm/components/content/content.types.d.ts +0 -4
  35. package/types/esm/components/content-variants/helpers.d.ts +3 -3
  36. package/types/esm/components/content-variants/inlined-fns.d.ts +14 -0
  37. package/types/esm/constants/sdk-version.d.ts +1 -1
  38. package/lib/browser/USE_CLIENT_BUNDLE-6ab88b18.cjs +0 -23
  39. package/lib/browser/USE_CLIENT_BUNDLE-72ddb99c.js +0 -657
  40. package/lib/edge/USE_CLIENT_BUNDLE-9cc3d141.js +0 -657
  41. package/lib/edge/USE_CLIENT_BUNDLE-feffcd7a.cjs +0 -23
  42. package/lib/edge/bundle-b146b975.cjs +0 -96
  43. package/lib/node/USE_CLIENT_BUNDLE-43abdb50.js +0 -657
  44. package/lib/node/USE_CLIENT_BUNDLE-ac21f383.cjs +0 -23
@@ -1,9 +1,9 @@
1
- import { LRUCache as Pe } from "lru-cache";
2
- import { jsx as l, Fragment as x, jsxs as C } from "react/jsx-runtime";
3
- import { createElement as Ve } from "react";
4
- import { I as $e, B as J, a as Oe, b as Fe, C as Ne, E as We, F as Le, c as Ue, d as Me, S as _e, V as je, e as Ke } from "./USE_CLIENT_BUNDLE-72ddb99c.js";
1
+ import { LRUCache as Be } from "lru-cache";
2
+ import { jsx as l, Fragment as b, jsxs as w } from "react/jsx-runtime";
3
+ import { createElement as Pe } from "react";
4
+ import { I as $e, B as Y, a as Oe, b as Fe, C as We, E as Ne, F as _e, c as Le, d as Ue, S as Me, V as De, e as je } from "./USE_CLIENT_BUNDLE-02851f5b.js";
5
5
  import "next/navigation";
6
- function He(e) {
6
+ function Ke(e) {
7
7
  var t;
8
8
  return {
9
9
  ...(t = e.component) == null ? void 0 : t.options,
@@ -14,29 +14,29 @@ function He(e) {
14
14
  builderBlock: e
15
15
  };
16
16
  }
17
- const B = "[Builder.io]: ", k = {
18
- log: (...e) => console.log(B, ...e),
19
- error: (...e) => console.error(B, ...e),
20
- warn: (...e) => console.warn(B, ...e),
21
- debug: (...e) => console.debug(B, ...e)
17
+ const V = "[Builder.io]: ", k = {
18
+ log: (...e) => console.log(V, ...e),
19
+ error: (...e) => console.error(V, ...e),
20
+ warn: (...e) => console.warn(V, ...e),
21
+ debug: (...e) => console.debug(V, ...e)
22
22
  };
23
- function v() {
23
+ function x() {
24
24
  return typeof window < "u" && typeof document < "u";
25
25
  }
26
26
  const T = "rsc";
27
- function De() {
28
- return v() && window.self !== window.top;
27
+ function He() {
28
+ return x() && window.self !== window.top;
29
29
  }
30
- function j() {
31
- return De() && window.location.search.indexOf("builder.frameEditing=") !== -1;
30
+ function D() {
31
+ return He() && window.location.search.indexOf("builder.frameEditing=") !== -1;
32
32
  }
33
33
  const ze = () => {
34
- if (v()) {
34
+ if (x()) {
35
35
  const e = new URL(location.href);
36
36
  return e.pathname === "" && (e.pathname = "/"), e;
37
37
  } else
38
38
  return console.warn("Cannot get location for tracking in non-browser environment"), null;
39
- }, qe = () => typeof navigator == "object" && navigator.userAgent || "", ue = () => {
39
+ }, qe = () => typeof navigator == "object" && navigator.userAgent || "", de = () => {
40
40
  const e = qe(), t = {
41
41
  Android() {
42
42
  return e.match(/Android/i);
@@ -74,69 +74,69 @@ const ze = () => {
74
74
  builder: e,
75
75
  context: t,
76
76
  event: n
77
- }), Je = () => ({
78
- isEditing: j(),
79
- isBrowser: v(),
80
- isServer: !v(),
81
- getUserAttributes: () => ue()
82
- }), Ye = (e, {
77
+ }), Ye = () => ({
78
+ isEditing: D(),
79
+ isBrowser: x(),
80
+ isServer: !x(),
81
+ getUserAttributes: () => de()
82
+ }), Je = (e, {
83
83
  isExpression: t = !0
84
- }) => /* 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, Y = ({
84
+ }) => /* 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, J = ({
85
85
  code: e,
86
86
  builder: t,
87
87
  context: n,
88
88
  event: o,
89
89
  localState: i,
90
- rootSetState: r,
91
- rootState: a
90
+ rootSetState: a,
91
+ rootState: r
92
92
  }) => {
93
93
  const s = Ge({
94
94
  builder: t,
95
95
  context: n,
96
96
  event: o,
97
- state: Xe(a, i, r)
97
+ state: Qe(r, i, a)
98
98
  });
99
99
  return new Function(...s.map(([c]) => c), e)(...s.map(([, c]) => c));
100
100
  };
101
- function Xe(e, t, n) {
101
+ function Qe(e, t, n) {
102
102
  if (e === t)
103
103
  throw new Error("rootState === localState");
104
104
  return new Proxy(e, {
105
105
  get: (o, i) => t && i in t ? t[i] : e[i],
106
- set: (o, i, r) => {
106
+ set: (o, i, a) => {
107
107
  if (t && i in t)
108
108
  throw new Error("Writing to local state is not allowed as it is read-only.");
109
- return e[i] = r, n == null || n(e), !0;
109
+ return e[i] = a, n == null || n(e), !0;
110
110
  }
111
111
  });
112
112
  }
113
- const Qe = (e) => (v(), Y(e));
114
- function K({
113
+ const Xe = (e) => (x(), J(e));
114
+ function j({
115
115
  code: e,
116
116
  context: t,
117
117
  localState: n,
118
118
  rootState: o,
119
119
  rootSetState: i,
120
- event: r,
121
- isExpression: a = !0
120
+ event: a,
121
+ isExpression: r = !0
122
122
  }) {
123
123
  if (e === "") {
124
124
  k.warn("Skipping evaluation of empty code block.");
125
125
  return;
126
126
  }
127
127
  const s = {
128
- code: Ye(e, {
129
- isExpression: a
128
+ code: Je(e, {
129
+ isExpression: r
130
130
  }),
131
- builder: Je(),
131
+ builder: Ye(),
132
132
  context: t,
133
- event: r,
133
+ event: a,
134
134
  rootSetState: i,
135
135
  rootState: o,
136
136
  localState: n
137
137
  };
138
138
  try {
139
- return Qe(s);
139
+ return Xe(s);
140
140
  } catch (c) {
141
141
  k.error("Failed code evaluation: " + c.message, {
142
142
  code: e
@@ -148,7 +148,7 @@ const O = (e) => JSON.parse(JSON.stringify(e)), Ze = (e, t, n) => {
148
148
  if (Object(e) !== e)
149
149
  return e;
150
150
  const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
151
- 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;
151
+ 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;
152
152
  };
153
153
  const et = ({
154
154
  block: e,
@@ -159,26 +159,26 @@ const et = ({
159
159
  }) => {
160
160
  if (!e.bindings)
161
161
  return e;
162
- const r = O(e), a = {
163
- ...r,
162
+ const a = O(e), r = {
163
+ ...a,
164
164
  properties: {
165
- ...r.properties
165
+ ...a.properties
166
166
  },
167
167
  actions: {
168
- ...r.actions
168
+ ...a.actions
169
169
  }
170
170
  };
171
171
  for (const s in e.bindings) {
172
- const c = e.bindings[s], d = K({
172
+ const c = e.bindings[s], f = j({
173
173
  code: c,
174
174
  localState: n,
175
175
  rootState: o,
176
176
  rootSetState: i,
177
177
  context: t
178
178
  });
179
- Ze(a, s, d);
179
+ Ze(r, s, f);
180
180
  }
181
- return a;
181
+ return r;
182
182
  };
183
183
  function $({
184
184
  block: e,
@@ -186,31 +186,31 @@ function $({
186
186
  shouldEvaluateBindings: n,
187
187
  localState: o,
188
188
  rootState: i,
189
- rootSetState: r
189
+ rootSetState: a
190
190
  }) {
191
- const a = e;
191
+ const r = e;
192
192
  return n ? et({
193
- block: a,
193
+ block: r,
194
194
  localState: o,
195
195
  rootState: i,
196
- rootSetState: r,
196
+ rootSetState: a,
197
197
  context: t
198
- }) : a;
198
+ }) : r;
199
199
  }
200
- const tt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], W = (e) => typeof e == "string" && tt.includes(e.toLowerCase()), nt = ({
200
+ const tt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], N = (e) => typeof e == "string" && tt.includes(e.toLowerCase()), nt = ({
201
201
  block: e,
202
202
  context: t,
203
203
  registeredComponents: n
204
204
  }) => {
205
- var r;
206
- const o = (r = $({
205
+ var a;
206
+ const o = (a = $({
207
207
  block: e,
208
208
  localState: t.localState,
209
209
  rootState: t.rootState,
210
210
  rootSetState: t.rootSetState,
211
211
  context: t.context,
212
212
  shouldEvaluateBindings: !1
213
- }).component) == null ? void 0 : r.name;
213
+ }).component) == null ? void 0 : a.name;
214
214
  if (!o)
215
215
  return null;
216
216
  const i = n[o];
@@ -229,7 +229,7 @@ const tt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
229
229
  } = e;
230
230
  if (!(n != null && n.collection))
231
231
  return;
232
- const i = K({
232
+ const i = j({
233
233
  code: n.collection,
234
234
  localState: t.localState,
235
235
  rootState: t.rootState,
@@ -238,21 +238,21 @@ const tt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
238
238
  });
239
239
  if (!Array.isArray(i))
240
240
  return;
241
- const r = n.collection.split(".").pop(), a = n.itemName || (r ? r + "Item" : "item");
242
- return i.map((c, d) => ({
241
+ const a = n.collection.split(".").pop(), r = n.itemName || (a ? a + "Item" : "item");
242
+ return i.map((c, f) => ({
243
243
  context: {
244
244
  ...t,
245
245
  localState: {
246
246
  ...t.localState,
247
- $index: d,
247
+ $index: f,
248
248
  $item: c,
249
- [a]: c,
250
- [`$${a}Index`]: d
249
+ [r]: c,
250
+ [`$${r}Index`]: f
251
251
  }
252
252
  },
253
253
  block: o
254
254
  }));
255
- }, de = {
255
+ }, ue = {
256
256
  small: {
257
257
  min: 320,
258
258
  default: 321,
@@ -268,11 +268,11 @@ const tt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
268
268
  default: 991,
269
269
  max: 1200
270
270
  }
271
- }, X = (e, t = de) => `@media (max-width: ${t[e].max}px)`, me = ({
271
+ }, Q = (e, t = ue) => `@media (max-width: ${t[e].max}px)`, me = ({
272
272
  small: e,
273
273
  medium: t
274
274
  }) => {
275
- const n = O(de);
275
+ const n = O(ue);
276
276
  if (!e || !t)
277
277
  return n;
278
278
  const o = Math.floor(e / 2);
@@ -287,24 +287,24 @@ const tt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
287
287
  min: i,
288
288
  default: i + 1
289
289
  };
290
- const r = n.medium.max + 1;
290
+ const a = n.medium.max + 1;
291
291
  return n.large = {
292
292
  max: 2e3,
293
293
  // TODO: decide upper limit
294
- min: r,
295
- default: r + 1
294
+ min: a,
295
+ default: a + 1
296
296
  }, n;
297
297
  }, it = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), I = (e) => e != null, fe = (e) => Object.entries(e).map(([n, o]) => {
298
298
  if (typeof o == "string")
299
299
  return `${it(n)}: ${o};`;
300
- }).filter(I), rt = (e) => fe(e).join(`
301
- `), L = ({
300
+ }).filter(I), at = (e) => fe(e).join(`
301
+ `), _ = ({
302
302
  mediaQuery: e,
303
303
  className: t,
304
304
  styles: n
305
305
  }) => {
306
306
  const o = `.${t} {
307
- ${rt(n)}
307
+ ${at(n)}
308
308
  }`;
309
309
  return e ? `${e} {
310
310
  ${o}
@@ -313,7 +313,7 @@ const tt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
313
313
  function F(e) {
314
314
  return /* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
315
315
  }
316
- function H(e) {
316
+ function K(e) {
317
317
  const t = function() {
318
318
  const i = $({
319
319
  block: e.block,
@@ -325,7 +325,7 @@ function H(e) {
325
325
  });
326
326
  return I(i.hide) ? !i.hide : I(i.show) ? i.show : !0;
327
327
  }, n = function() {
328
- var u;
328
+ var d;
329
329
  const i = $({
330
330
  block: e.block,
331
331
  localState: e.context.localState,
@@ -333,37 +333,37 @@ function H(e) {
333
333
  rootSetState: e.context.rootSetState,
334
334
  context: e.context.context,
335
335
  shouldEvaluateBindings: !0
336
- }), r = i.responsiveStyles, a = e.context.content, s = me(
337
- ((u = a == null ? void 0 : a.meta) == null ? void 0 : u.breakpoints) || {}
338
- ), c = r == null ? void 0 : r.large, d = r == null ? void 0 : r.medium, f = r == null ? void 0 : r.small, p = i.id;
339
- if (!p)
336
+ }), a = i.responsiveStyles, r = e.context.content, s = me(
337
+ ((d = r == null ? void 0 : r.meta) == null ? void 0 : d.breakpoints) || {}
338
+ ), c = a == null ? void 0 : a.large, f = a == null ? void 0 : a.medium, h = a == null ? void 0 : a.small, g = i.id;
339
+ if (!g)
340
340
  return "";
341
- const b = c ? L({
342
- className: p,
341
+ const y = c ? _({
342
+ className: g,
343
343
  styles: c
344
- }) : "", m = d ? L({
345
- className: p,
346
- styles: d,
347
- mediaQuery: X(
344
+ }) : "", u = f ? _({
345
+ className: g,
346
+ styles: f,
347
+ mediaQuery: Q(
348
348
  "medium",
349
349
  s
350
350
  )
351
- }) : "", h = f ? L({
352
- className: p,
353
- styles: f,
354
- mediaQuery: X(
351
+ }) : "", m = h ? _({
352
+ className: g,
353
+ styles: h,
354
+ mediaQuery: Q(
355
355
  "small",
356
356
  s
357
357
  )
358
358
  }) : "";
359
- return [b, m, h].join(" ");
359
+ return [y, u, m].join(" ");
360
360
  };
361
- return /* @__PURE__ */ l(x, { children: n() && t() ? /* @__PURE__ */ l(x, { children: /* @__PURE__ */ l(F, { styles: n() }) }) : null });
361
+ return /* @__PURE__ */ l(b, { children: n() && t() ? /* @__PURE__ */ l(b, { children: /* @__PURE__ */ l(F, { styles: n() }) }) : null });
362
362
  }
363
- function at(e) {
363
+ function rt(e) {
364
364
  return e.charAt(0).toUpperCase() + e.slice(1);
365
365
  }
366
- const st = (e) => `on${at(e)}`, ct = (e, t) => (n) => K({
366
+ const st = (e) => `on${rt(e)}`, ct = (e, t) => (n) => j({
367
367
  code: e,
368
368
  context: t.context,
369
369
  localState: t.localState,
@@ -372,40 +372,40 @@ const st = (e) => `on${at(e)}`, ct = (e, t) => (n) => K({
372
372
  event: n,
373
373
  isExpression: !1
374
374
  });
375
- function Mn(e) {
375
+ function Un(e) {
376
376
  const t = {}, n = e.block.actions ?? {};
377
377
  for (const o in n) {
378
378
  if (!n.hasOwnProperty(o))
379
379
  continue;
380
380
  const i = n[o];
381
- let r = st(o);
381
+ let a = st(o);
382
382
  if (e.stripPrefix)
383
383
  switch (T) {
384
384
  case "vue2":
385
385
  case "vue3":
386
- r = r.replace("v-on:", "");
386
+ a = a.replace("v-on:", "");
387
387
  break;
388
388
  case "svelte":
389
- r = r.replace("on:", "");
389
+ a = a.replace("on:", "");
390
390
  break;
391
391
  }
392
- t[r] = ct(i, e);
392
+ t[a] = ct(i, e);
393
393
  }
394
394
  return t;
395
395
  }
396
396
  function lt(e) {
397
397
  return e.className = e.class, delete e.class, e;
398
398
  }
399
- const ut = (e) => ({
399
+ const dt = (e) => ({
400
400
  href: e.href
401
401
  });
402
- function dt({
402
+ function ut({
403
403
  block: e,
404
404
  context: t
405
405
  }) {
406
406
  var o;
407
407
  const n = {
408
- ...ut(e),
408
+ ...dt(e),
409
409
  ...e.properties,
410
410
  "builder-id": e.id,
411
411
  style: e.style ? mt(e.style) : void 0,
@@ -433,9 +433,9 @@ const ft = ({
433
433
  context: n,
434
434
  componentRef: o,
435
435
  includeBlockProps: i,
436
- isInteractive: r,
437
- contextValue: a
438
- }) => r ? {
436
+ isInteractive: a,
437
+ contextValue: r
438
+ }) => a ? {
439
439
  Wrapper: o,
440
440
  block: t,
441
441
  context: n,
@@ -447,16 +447,16 @@ const ft = ({
447
447
  * component itself directly. Otherwise, they are provided to the wrapper element.
448
448
  */
449
449
  ...i ? {
450
- attributes: dt({
450
+ attributes: ut({
451
451
  block: t,
452
- context: a
452
+ context: r
453
453
  })
454
454
  } : {}
455
455
  };
456
- function Q(e) {
456
+ function X(e) {
457
457
  var n, o;
458
458
  const t = e.isInteractive ? $e : e.componentRef;
459
- return /* @__PURE__ */ l(x, { children: e.componentRef ? /* @__PURE__ */ l(x, { children: /* @__PURE__ */ C(
459
+ return /* @__PURE__ */ l(b, { children: e.componentRef ? /* @__PURE__ */ l(b, { children: /* @__PURE__ */ w(
460
460
  t,
461
461
  {
462
462
  ...ft({
@@ -470,7 +470,7 @@ function Q(e) {
470
470
  }),
471
471
  children: [
472
472
  (n = e.blockChildren) == null ? void 0 : n.map((i) => /* @__PURE__ */ l(
473
- N,
473
+ W,
474
474
  {
475
475
  block: i,
476
476
  context: e.context,
@@ -479,7 +479,7 @@ function Q(e) {
479
479
  "block-" + i.id
480
480
  )),
481
481
  (o = e.blockChildren) == null ? void 0 : o.map((i) => /* @__PURE__ */ l(
482
- H,
482
+ K,
483
483
  {
484
484
  block: i,
485
485
  context: e.context
@@ -493,7 +493,7 @@ function Q(e) {
493
493
  function ht(e) {
494
494
  const t = e.repeatContext;
495
495
  return /* @__PURE__ */ l(
496
- N,
496
+ W,
497
497
  {
498
498
  block: e.block,
499
499
  context: t,
@@ -501,8 +501,8 @@ function ht(e) {
501
501
  }
502
502
  );
503
503
  }
504
- function N(e) {
505
- var d, f, p, b;
504
+ function W(e) {
505
+ var f, h, g, y;
506
506
  const t = function() {
507
507
  return nt({
508
508
  block: e.block,
@@ -515,7 +515,8 @@ function N(e) {
515
515
  context: e.context
516
516
  });
517
517
  }, o = function() {
518
- return n() ? e.block : $({
518
+ var m;
519
+ return (m = e.block.repeat) != null && m.collection ? e.block : $({
519
520
  block: e.block,
520
521
  localState: e.context.localState,
521
522
  rootState: e.context.rootState,
@@ -525,20 +526,21 @@ function N(e) {
525
526
  });
526
527
  }, i = function() {
527
528
  return e.block.tagName || "div";
528
- }, r = function() {
529
- return "hide" in o() ? !o().hide : "show" in o() ? o().show : !0;
530
529
  }, a = function() {
531
- var u;
532
- return !((u = t()) != null && u.component) && !n() ? o().children ?? [] : [];
530
+ var m, d;
531
+ return "hide" in o() ? !o().hide : "show" in o() ? o().show : !((m = e.block.repeat) != null && m.collection && !((d = n()) != null && d.length));
532
+ }, r = function() {
533
+ var d;
534
+ return !((d = t()) != null && d.component) && !n() ? o().children ?? [] : [];
533
535
  }, s = function() {
534
- var h, u, y, S, g;
536
+ var m, d, v, S, p;
535
537
  return {
536
538
  blockChildren: o().children ?? [],
537
- componentRef: (h = t()) == null ? void 0 : h.component,
539
+ componentRef: (m = t()) == null ? void 0 : m.component,
538
540
  componentOptions: {
539
- ...He(o()),
541
+ ...Ke(o()),
540
542
  builderContext: e.context,
541
- ...((u = t()) == null ? void 0 : u.name) === "Symbol" || ((y = t()) == null ? void 0 : y.name) === "Columns" ? {
543
+ ...((d = t()) == null ? void 0 : d.name) === "Symbol" || ((v = t()) == null ? void 0 : v.name) === "Columns" ? {
542
544
  builderComponents: e.registeredComponents
543
545
  } : {}
544
546
  },
@@ -546,11 +548,11 @@ function N(e) {
546
548
  registeredComponents: e.registeredComponents,
547
549
  builderBlock: o(),
548
550
  includeBlockProps: ((S = t()) == null ? void 0 : S.noWrap) === !0,
549
- isInteractive: !((g = t()) != null && g.isRSC)
551
+ isInteractive: !((p = t()) != null && p.isRSC)
550
552
  };
551
553
  }, c = e.context;
552
- return /* @__PURE__ */ l(x, { children: r() ? /* @__PURE__ */ l(x, { children: (d = t()) != null && d.noWrap ? /* @__PURE__ */ l(x, { children: /* @__PURE__ */ l(
553
- Q,
554
+ return /* @__PURE__ */ l(b, { children: a() ? /* @__PURE__ */ l(b, { children: (f = t()) != null && f.noWrap ? /* @__PURE__ */ l(b, { children: /* @__PURE__ */ l(
555
+ X,
554
556
  {
555
557
  componentRef: s().componentRef,
556
558
  componentOptions: s().componentOptions,
@@ -561,9 +563,9 @@ function N(e) {
561
563
  includeBlockProps: s().includeBlockProps,
562
564
  isInteractive: s().isInteractive
563
565
  }
564
- ) }) : /* @__PURE__ */ C(x, { children: [
565
- W(i()) ? /* @__PURE__ */ l(x, { children: /* @__PURE__ */ l(
566
- J,
566
+ ) }) : /* @__PURE__ */ w(b, { children: [
567
+ N(i()) ? /* @__PURE__ */ l(b, { children: /* @__PURE__ */ l(
568
+ Y,
567
569
  {
568
570
  Wrapper: i(),
569
571
  block: o(),
@@ -571,17 +573,17 @@ function N(e) {
571
573
  hasChildren: !1
572
574
  }
573
575
  ) }) : null,
574
- !W(i()) && n() ? /* @__PURE__ */ l(x, { children: (f = n()) == null ? void 0 : f.map((m, h) => /* @__PURE__ */ l(
576
+ !N(i()) && n() ? /* @__PURE__ */ l(b, { children: (h = n()) == null ? void 0 : h.map((u, m) => /* @__PURE__ */ l(
575
577
  ht,
576
578
  {
577
- repeatContext: m.context,
578
- block: m.block,
579
+ repeatContext: u.context,
580
+ block: u.block,
579
581
  registeredComponents: e.registeredComponents
580
582
  },
581
- h
583
+ m
582
584
  )) }) : null,
583
- !W(i()) && !n() ? /* @__PURE__ */ l(x, { children: /* @__PURE__ */ C(
584
- J,
585
+ !N(i()) && !n() ? /* @__PURE__ */ l(b, { children: /* @__PURE__ */ w(
586
+ Y,
585
587
  {
586
588
  Wrapper: i(),
587
589
  block: o(),
@@ -589,7 +591,7 @@ function N(e) {
589
591
  hasChildren: !0,
590
592
  children: [
591
593
  /* @__PURE__ */ l(
592
- Q,
594
+ X,
593
595
  {
594
596
  componentRef: s().componentRef,
595
597
  componentOptions: s().componentOptions,
@@ -601,31 +603,31 @@ function N(e) {
601
603
  isInteractive: s().isInteractive
602
604
  }
603
605
  ),
604
- (p = a()) == null ? void 0 : p.map((m) => /* @__PURE__ */ l(
605
- N,
606
+ (g = r()) == null ? void 0 : g.map((u) => /* @__PURE__ */ l(
607
+ W,
606
608
  {
607
- block: m,
609
+ block: u,
608
610
  context: c,
609
611
  registeredComponents: e.registeredComponents
610
612
  },
611
- "block-" + m.id
613
+ "block-" + u.id
612
614
  )),
613
- (b = a()) == null ? void 0 : b.map((m) => /* @__PURE__ */ l(
614
- H,
615
+ (y = r()) == null ? void 0 : y.map((u) => /* @__PURE__ */ l(
616
+ K,
615
617
  {
616
- block: m,
618
+ block: u,
617
619
  context: c
618
620
  },
619
- "block-style-" + m.id
621
+ "block-style-" + u.id
620
622
  ))
621
623
  ]
622
624
  }
623
625
  ) }) : null
624
626
  ] }) }) : null });
625
627
  }
626
- function D(e) {
628
+ function H(e) {
627
629
  var t, n;
628
- return /* @__PURE__ */ C(
630
+ return /* @__PURE__ */ w(
629
631
  Oe,
630
632
  {
631
633
  blocks: e.blocks,
@@ -633,8 +635,8 @@ function D(e) {
633
635
  path: e.path,
634
636
  styleProp: e.styleProp,
635
637
  children: [
636
- e.blocks ? /* @__PURE__ */ l(x, { children: (t = e.blocks) == null ? void 0 : t.map((o) => /* @__PURE__ */ l(
637
- N,
638
+ e.blocks ? /* @__PURE__ */ l(b, { children: (t = e.blocks) == null ? void 0 : t.map((o) => /* @__PURE__ */ l(
639
+ W,
638
640
  {
639
641
  block: o,
640
642
  context: e.context,
@@ -642,8 +644,8 @@ function D(e) {
642
644
  },
643
645
  "render-block-" + o.id
644
646
  )) }) : null,
645
- e.blocks ? /* @__PURE__ */ l(x, { children: (n = e.blocks) == null ? void 0 : n.map((o) => /* @__PURE__ */ l(
646
- H,
647
+ e.blocks ? /* @__PURE__ */ l(b, { children: (n = e.blocks) == null ? void 0 : n.map((o) => /* @__PURE__ */ l(
648
+ K,
647
649
  {
648
650
  block: o,
649
651
  context: e.context
@@ -655,61 +657,61 @@ function D(e) {
655
657
  );
656
658
  }
657
659
  function gt(e) {
658
- var m;
659
- const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], o = e.stackColumnsAt || "tablet", i = function(u) {
660
- var y;
661
- return ((y = n[u]) == null ? void 0 : y.width) || 100 / n.length;
662
- }, r = function(u) {
663
- const y = t * (n.length - 1) / n.length;
664
- return `calc(${i(u)}% - ${y}px)`;
665
- }, a = function({
666
- stackedStyle: u,
667
- desktopStyle: y
660
+ var u;
661
+ const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], o = e.stackColumnsAt || "tablet", i = function(d) {
662
+ var v;
663
+ return ((v = n[d]) == null ? void 0 : v.width) || 100 / n.length;
664
+ }, a = function(d) {
665
+ const v = t * (n.length - 1) / n.length;
666
+ return `calc(${i(d)}% - ${v}px)`;
667
+ }, r = function({
668
+ stackedStyle: d,
669
+ desktopStyle: v
668
670
  }) {
669
- return o === "tablet" ? u : y;
671
+ return o === "tablet" ? d : v;
670
672
  }, s = function({
671
- stackedStyle: u,
672
- desktopStyle: y
673
+ stackedStyle: d,
674
+ desktopStyle: v
673
675
  }) {
674
- return o === "never" ? y : u;
675
- }, c = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", d = function() {
676
+ return o === "never" ? v : d;
677
+ }, c = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", f = function() {
676
678
  return {
677
679
  "--flex-dir": c,
678
- "--flex-dir-tablet": a({
680
+ "--flex-dir-tablet": r({
679
681
  stackedStyle: c,
680
682
  desktopStyle: "row"
681
683
  })
682
684
  };
683
- }, f = function(u) {
684
- const y = u === 0 ? 0 : t, S = r(u), g = `${y}px`, A = "100%", R = 0;
685
+ }, h = function(d) {
686
+ const v = d === 0 ? 0 : t, S = a(d), p = `${v}px`, A = "100%", E = 0;
685
687
  return {
686
688
  width: S,
687
- ["marginLeft"]: g,
689
+ ["marginLeft"]: p,
688
690
  "--column-width-mobile": s({
689
691
  stackedStyle: A,
690
692
  desktopStyle: S
691
693
  }),
692
694
  "--column-margin-left-mobile": s({
693
- stackedStyle: R,
694
- desktopStyle: g
695
+ stackedStyle: E,
696
+ desktopStyle: p
695
697
  }),
696
- "--column-width-tablet": a({
698
+ "--column-width-tablet": r({
697
699
  stackedStyle: A,
698
700
  desktopStyle: S
699
701
  }),
700
- "--column-margin-left-tablet": a({
701
- stackedStyle: R,
702
- desktopStyle: g
702
+ "--column-margin-left-tablet": r({
703
+ stackedStyle: E,
704
+ desktopStyle: p
703
705
  })
704
706
  };
705
- }, p = function(u) {
706
- var S, g;
707
+ }, g = function(d) {
708
+ var S, p;
707
709
  return me(
708
- ((g = (S = e.builderContext.content) == null ? void 0 : S.meta) == null ? void 0 : g.breakpoints) || {}
709
- )[u].max;
710
- }, b = function() {
710
+ ((p = (S = e.builderContext.content) == null ? void 0 : S.meta) == null ? void 0 : p.breakpoints) || {}
711
+ )[d].max;
712
+ }, y = function() {
711
713
  return `
712
- @media (max-width: ${p("medium")}px) {
714
+ @media (max-width: ${g("medium")}px) {
713
715
  .${e.builderBlock.id}-breakpoints {
714
716
  flex-direction: var(--flex-dir-tablet);
715
717
  align-items: stretch;
@@ -721,7 +723,7 @@ function gt(e) {
721
723
  }
722
724
  }
723
725
 
724
- @media (max-width: ${p("small")}px) {
726
+ @media (max-width: ${g("small")}px) {
725
727
  .${e.builderBlock.id}-breakpoints {
726
728
  flex-direction: var(--flex-dir);
727
729
  align-items: stretch;
@@ -734,32 +736,32 @@ function gt(e) {
734
736
  },
735
737
  `;
736
738
  };
737
- return /* @__PURE__ */ C(x, { children: [
738
- /* @__PURE__ */ C(
739
+ return /* @__PURE__ */ w(b, { children: [
740
+ /* @__PURE__ */ w(
739
741
  "div",
740
742
  {
741
743
  className: `builder-columns ${e.builderBlock.id}-breakpoints div-0d69fe26`,
742
- style: d(),
744
+ style: f(),
743
745
  children: [
744
- /* @__PURE__ */ l(x, { children: /* @__PURE__ */ l(F, { styles: b() }) }),
745
- (m = e.columns) == null ? void 0 : m.map((h, u) => /* @__PURE__ */ Ve(
746
+ /* @__PURE__ */ l(b, { children: /* @__PURE__ */ l(F, { styles: y() }) }),
747
+ (u = e.columns) == null ? void 0 : u.map((m, d) => /* @__PURE__ */ Pe(
746
748
  "div",
747
749
  {
748
750
  className: "builder-column div-0d69fe26-2",
749
- style: f(u),
750
- key: u
751
+ style: h(d),
752
+ key: d
751
753
  },
752
754
  /* @__PURE__ */ l(
753
- D,
755
+ H,
754
756
  {
755
- path: `component.options.columns.${u}.blocks`,
757
+ path: `component.options.columns.${d}.blocks`,
756
758
  parent: e.builderBlock.id,
757
759
  styleProp: {
758
760
  flexGrow: "1"
759
761
  },
760
762
  context: e.builderContext,
761
763
  registeredComponents: e.builderComponents,
762
- blocks: h.blocks
764
+ blocks: m.blocks
763
765
  }
764
766
  )
765
767
  ))
@@ -790,12 +792,12 @@ function bt(e, t) {
790
792
  return Z(e);
791
793
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
792
794
  if (n) {
793
- const o = e.split(n[0]), i = n[3], r = t.match("x") ? t : `${t}x`;
794
- return Z(`${o[0]}_${r}${i}`);
795
+ const o = e.split(n[0]), i = n[3], a = t.match("x") ? t : `${t}x`;
796
+ return Z(`${o[0]}_${a}${i}`);
795
797
  }
796
798
  return null;
797
799
  }
798
- function _n(e) {
800
+ function Mn(e) {
799
801
  if (!e)
800
802
  return e;
801
803
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
@@ -822,13 +824,13 @@ const yt = (e) => {
822
824
  k.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
823
825
  return;
824
826
  }
825
- }, ge = async (e) => he(e), xt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(I).join("; "), St = [["secure", ""], ["SameSite", "None"]], vt = ({
827
+ }, ge = async (e) => he(e), vt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(I).join("; "), xt = [["secure", ""], ["SameSite", "None"]], St = ({
826
828
  name: e,
827
829
  value: t,
828
830
  expires: n
829
831
  }) => {
830
- const i = (v() ? location.protocol === "https:" : !0) ? St : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], a = [[e, t], ...r, ["path", "/"], ["domain", yt(window.location.hostname)], ...i];
831
- return xt(a);
832
+ const i = (x() ? location.protocol === "https:" : !0) ? xt : [[]], a = n ? [["expires", n.toUTCString()]] : [[]], r = [[e, t], ...a, ["path", "/"], ["domain", yt(window.location.hostname)], ...i];
833
+ return vt(r);
832
834
  }, pe = async ({
833
835
  name: e,
834
836
  value: t,
@@ -838,7 +840,7 @@ const yt = (e) => {
838
840
  try {
839
841
  if (!o)
840
842
  return;
841
- const i = vt({
843
+ const i = St({
842
844
  name: e,
843
845
  value: t,
844
846
  expires: n
@@ -847,12 +849,12 @@ const yt = (e) => {
847
849
  } catch (i) {
848
850
  k.warn("[COOKIE] SET error: ", (i == null ? void 0 : i.message) || i);
849
851
  }
850
- }, kt = "builder.tests", z = (e) => `${kt}.${e}`, wt = ({
852
+ }, kt = "builder.tests", z = (e) => `${kt}.${e}`, Ct = ({
851
853
  contentId: e
852
854
  }) => ge({
853
855
  name: z(e),
854
856
  canTrack: !0
855
- }), Ct = ({
857
+ }), wt = ({
856
858
  contentId: e
857
859
  }) => he({
858
860
  name: z(e),
@@ -871,10 +873,10 @@ const yt = (e) => {
871
873
  var i;
872
874
  let n = 0;
873
875
  const o = Math.random();
874
- for (const r in t) {
875
- const a = (i = t[r]) == null ? void 0 : i.testRatio;
876
- if (n += a, o < n)
877
- return r;
876
+ for (const a in t) {
877
+ const r = (i = t[a]) == null ? void 0 : i.testRatio;
878
+ if (n += r, o < n)
879
+ return a;
878
880
  }
879
881
  return e;
880
882
  }, ye = (e) => {
@@ -885,7 +887,7 @@ const yt = (e) => {
885
887
  }).catch((n) => {
886
888
  k.error("could not store A/B test variation: ", n);
887
889
  }), t;
888
- }, xe = ({
890
+ }, ve = ({
889
891
  item: e,
890
892
  testGroupId: t
891
893
  }) => {
@@ -899,7 +901,7 @@ const yt = (e) => {
899
901
  testVariationId: n.id,
900
902
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
901
903
  };
902
- }, Rt = ({
904
+ }, Et = ({
903
905
  item: e,
904
906
  canTrack: t
905
907
  }) => {
@@ -909,12 +911,12 @@ const yt = (e) => {
909
911
  return;
910
912
  if (!be(e))
911
913
  return e;
912
- const n = Ct({
914
+ const n = wt({
913
915
  contentId: e.id
914
916
  }) || ye({
915
917
  variations: e.variations,
916
918
  id: e.id
917
- }), o = xe({
919
+ }), o = ve({
918
920
  item: e,
919
921
  testGroupId: n
920
922
  });
@@ -922,18 +924,18 @@ const yt = (e) => {
922
924
  ...e,
923
925
  ...o
924
926
  };
925
- }, Et = async ({
927
+ }, Rt = async ({
926
928
  item: e,
927
929
  canTrack: t
928
930
  }) => {
929
931
  if (!t || !be(e))
930
932
  return e;
931
- const o = await wt({
933
+ const o = await Ct({
932
934
  contentId: e.id
933
935
  }) || ye({
934
936
  variations: e.variations,
935
937
  id: e.id
936
- }), i = xe({
938
+ }), i = ve({
937
939
  item: e,
938
940
  testGroupId: o
939
941
  });
@@ -941,7 +943,7 @@ const yt = (e) => {
941
943
  ...e,
942
944
  ...i
943
945
  };
944
- }, U = (e) => I(e) ? e : !0, At = {
946
+ }, L = (e) => I(e) ? e : !0, At = {
945
947
  name: "Core:Button",
946
948
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
947
949
  defaultStyles: {
@@ -974,7 +976,7 @@ const yt = (e) => {
974
976
  }],
975
977
  static: !0,
976
978
  noWrap: !0
977
- }, Bt = {
979
+ }, Vt = {
978
980
  // TODO: ways to statically preprocess JSON for references, functions, etc
979
981
  name: "Columns",
980
982
  isRSC: !0,
@@ -1153,7 +1155,7 @@ const yt = (e) => {
1153
1155
  });
1154
1156
  }
1155
1157
  const n = e.get("columns");
1156
- 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();
1158
+ 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();
1157
1159
  }
1158
1160
  }, {
1159
1161
  name: "space",
@@ -1175,7 +1177,7 @@ const yt = (e) => {
1175
1177
  helperText: "When stacking columns for mobile devices, reverse the ordering",
1176
1178
  advanced: !0
1177
1179
  }]
1178
- }, Pt = {
1180
+ }, Bt = {
1179
1181
  name: "Custom Code",
1180
1182
  static: !0,
1181
1183
  requiredPermissions: ["editCode"],
@@ -1197,7 +1199,7 @@ const yt = (e) => {
1197
1199
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
1198
1200
  advanced: !0
1199
1201
  }]
1200
- }, Vt = {
1202
+ }, Pt = {
1201
1203
  name: "Embed",
1202
1204
  static: !0,
1203
1205
  inputs: [{
@@ -1222,7 +1224,7 @@ const yt = (e) => {
1222
1224
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1223
1225
  hideFromUI: !0
1224
1226
  }]
1225
- }, $t = ["text/javascript", "application/javascript", "application/ecmascript"], jn = (e) => $t.includes(e.type), Ot = {
1227
+ }, $t = ["text/javascript", "application/javascript", "application/ecmascript"], Dn = (e) => $t.includes(e.type), Ot = {
1226
1228
  name: "Fragment",
1227
1229
  static: !0,
1228
1230
  hidden: !0,
@@ -1248,29 +1250,29 @@ const yt = (e) => {
1248
1250
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1249
1251
  onChange: (e) => {
1250
1252
  e.delete("srcset"), e.delete("noWebp");
1251
- function n(a, s = 6e4) {
1252
- return new Promise((c, d) => {
1253
- const f = document.createElement("img");
1254
- let p = !1;
1255
- f.onload = () => {
1256
- p = !0, c(f);
1257
- }, f.addEventListener("error", (b) => {
1258
- console.warn("Image load failed", b.error), d(b.error);
1259
- }), f.src = a, setTimeout(() => {
1260
- p || d(new Error("Image load timed out"));
1253
+ function n(r, s = 6e4) {
1254
+ return new Promise((c, f) => {
1255
+ const h = document.createElement("img");
1256
+ let g = !1;
1257
+ h.onload = () => {
1258
+ g = !0, c(h);
1259
+ }, h.addEventListener("error", (y) => {
1260
+ console.warn("Image load failed", y.error), f(y.error);
1261
+ }), h.src = r, setTimeout(() => {
1262
+ g || f(new Error("Image load timed out"));
1261
1263
  }, s);
1262
1264
  });
1263
1265
  }
1264
- function o(a) {
1265
- return Math.round(a * 1e3) / 1e3;
1266
+ function o(r) {
1267
+ return Math.round(r * 1e3) / 1e3;
1266
1268
  }
1267
- const i = e.get("image"), r = e.get("aspectRatio");
1268
- if (fetch(i).then((a) => a.blob()).then((a) => {
1269
- a.type.includes("svg") && e.set("noWebp", !0);
1270
- }), i && (!r || r === 0.7041))
1271
- return n(i).then((a) => {
1269
+ const i = e.get("image"), a = e.get("aspectRatio");
1270
+ if (fetch(i).then((r) => r.blob()).then((r) => {
1271
+ r.type.includes("svg") && e.set("noWebp", !0);
1272
+ }), i && (!a || a === 0.7041))
1273
+ return n(i).then((r) => {
1272
1274
  const s = e.get("aspectRatio");
1273
- 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));
1275
+ 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));
1274
1276
  });
1275
1277
  }
1276
1278
  }, {
@@ -1328,7 +1330,7 @@ const yt = (e) => {
1328
1330
  advanced: !0,
1329
1331
  defaultValue: 0.7041
1330
1332
  }]
1331
- }, Nt = {
1333
+ }, Wt = {
1332
1334
  // friendlyName?
1333
1335
  name: "Raw:Img",
1334
1336
  hideFromInsertMenu: !0,
@@ -1342,7 +1344,7 @@ const yt = (e) => {
1342
1344
  }],
1343
1345
  noWrap: !0,
1344
1346
  static: !0
1345
- }, Wt = {
1347
+ }, Nt = {
1346
1348
  name: "Core:Section",
1347
1349
  static: !0,
1348
1350
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1381,7 +1383,7 @@ const yt = (e) => {
1381
1383
  }
1382
1384
  }
1383
1385
  }]
1384
- }, Lt = {
1386
+ }, _t = {
1385
1387
  name: "Symbol",
1386
1388
  noWrap: !0,
1387
1389
  static: !0,
@@ -1414,7 +1416,7 @@ const yt = (e) => {
1414
1416
  hideFromUI: !0,
1415
1417
  type: "boolean"
1416
1418
  }]
1417
- }, Ut = {
1419
+ }, Lt = {
1418
1420
  name: "Text",
1419
1421
  static: !0,
1420
1422
  isRSC: !0,
@@ -1433,7 +1435,7 @@ const yt = (e) => {
1433
1435
  textAlign: "center"
1434
1436
  }
1435
1437
  };
1436
- function Mt(e) {
1438
+ function Ut(e) {
1437
1439
  var t;
1438
1440
  return /* @__PURE__ */ l(
1439
1441
  "div",
@@ -1446,7 +1448,7 @@ function Mt(e) {
1446
1448
  }
1447
1449
  );
1448
1450
  }
1449
- const _t = {
1451
+ const Mt = {
1450
1452
  name: "Video",
1451
1453
  canHaveChildren: !0,
1452
1454
  defaultStyles: {
@@ -1532,164 +1534,181 @@ const _t = {
1532
1534
  ...At
1533
1535
  }, {
1534
1536
  component: gt,
1537
+ ...Vt
1538
+ }, {
1539
+ component: We,
1535
1540
  ...Bt
1536
1541
  }, {
1537
1542
  component: Ne,
1538
1543
  ...Pt
1539
1544
  }, {
1540
- component: We,
1541
- ...Vt
1545
+ component: _e,
1546
+ ...Ot
1542
1547
  }, {
1543
1548
  component: Le,
1544
- ...Ot
1549
+ ...Ft
1545
1550
  }, {
1546
1551
  component: Ue,
1547
- ...Ft
1552
+ ...Wt
1548
1553
  }, {
1549
1554
  component: Me,
1550
1555
  ...Nt
1551
- }, {
1552
- component: _e,
1553
- ...Wt
1554
1556
  }, {
1555
1557
  component: On,
1556
- ...Lt
1558
+ ..._t
1557
1559
  }, {
1558
- component: Mt,
1559
- ...Ut
1560
+ component: Ut,
1561
+ ...Lt
1560
1562
  }, {
1561
- component: je,
1562
- ..._t
1563
- }], te = [], Kn = (e) => ({
1563
+ component: De,
1564
+ ...Mt
1565
+ }], te = [], jn = (e) => ({
1564
1566
  type: "builder.registerComponent",
1565
- data: M(e)
1566
- }), jt = (e) => {
1567
+ data: U(e)
1568
+ }), Dt = (e) => {
1567
1569
  const t = e.toString().trim();
1568
1570
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
1569
- }, Kt = (e) => typeof e == "function" ? jt(e) : O(e), M = ({
1571
+ }, jt = (e) => typeof e == "function" ? Dt(e) : O(e), U = ({
1570
1572
  inputs: e,
1571
1573
  ...t
1572
1574
  }) => ({
1573
1575
  ...O(t),
1574
- inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [i, r]) => ({
1576
+ inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [i, a]) => ({
1575
1577
  ...o,
1576
- [i]: Kt(r)
1578
+ [i]: jt(a)
1577
1579
  }), {}))
1578
- }), P = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
1579
- ...t,
1580
- testVariationId: t.id,
1581
- id: e == null ? void 0 : e.id
1582
- })), Ht = ({
1583
- canTrack: e,
1584
- content: t
1585
- }) => !(!(P(t).length > 0) || !e || v());
1586
- function Dt(e, t, n) {
1587
- var a;
1588
- function o() {
1589
- function s(h, u, y) {
1590
- let S = "";
1591
- if (y) {
1592
- const g = /* @__PURE__ */ new Date();
1593
- g.setTime(g.getTime() + y * 24 * 60 * 60 * 1e3), S = "; expires=" + g.toUTCString();
1580
+ }), Kt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
1581
+ function getAndSetVariantId() {
1582
+ function setCookie(name, value, days) {
1583
+ let expires = '';
1584
+ if (days) {
1585
+ const date = new Date();
1586
+ date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);
1587
+ expires = '; expires=' + date.toUTCString();
1594
1588
  }
1595
- document.cookie = h + "=" + (u || "") + S + "; path=/; Secure; SameSite=None";
1589
+ document.cookie = name + '=' + (value || '') + expires + '; path=/' + '; Secure; SameSite=None';
1596
1590
  }
1597
- function c(h) {
1598
- const u = h + "=", y = document.cookie.split(";");
1599
- for (let S = 0; S < y.length; S++) {
1600
- let g = y[S];
1601
- for (; g.charAt(0) === " "; )
1602
- g = g.substring(1, g.length);
1603
- if (g.indexOf(u) === 0)
1604
- return g.substring(u.length, g.length);
1591
+ function getCookie(name) {
1592
+ const nameEQ = name + '=';
1593
+ const ca = document.cookie.split(';');
1594
+ for (let i = 0; i < ca.length; i++) {
1595
+ let c = ca[i];
1596
+ while (c.charAt(0) === ' ') c = c.substring(1, c.length);
1597
+ if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);
1605
1598
  }
1606
1599
  return null;
1607
1600
  }
1608
- const d = `builder.tests.${e}`, f = c(d), p = t.map((h) => h.id).concat(e);
1609
- if (f && p.includes(f))
1610
- return f;
1611
- let b = 0;
1612
- const m = Math.random();
1613
- for (let h = 0; h < t.length; h++) {
1614
- const u = t[h], y = u.testRatio;
1615
- if (b += y, m < b)
1616
- return s(d, u.id), u.id;
1601
+ const cookieName = \`builder.tests.\${contentId}\`;
1602
+ const variantInCookie = getCookie(cookieName);
1603
+ const availableIDs = variants.map(vr => vr.id).concat(contentId);
1604
+ if (variantInCookie && availableIDs.includes(variantInCookie)) {
1605
+ return variantInCookie;
1617
1606
  }
1618
- return s(d, e), e;
1607
+ let n = 0;
1608
+ const random = Math.random();
1609
+ for (let i = 0; i < variants.length; i++) {
1610
+ const variant = variants[i];
1611
+ const testRatio = variant.testRatio;
1612
+ n += testRatio;
1613
+ if (random < n) {
1614
+ setCookie(cookieName, variant.id);
1615
+ return variant.id;
1616
+ }
1617
+ }
1618
+ setCookie(cookieName, contentId);
1619
+ return contentId;
1619
1620
  }
1620
- const i = o(), r = (a = document.currentScript) == null ? void 0 : a.previousElementSibling;
1621
- if (n) {
1622
- r.remove();
1623
- const s = document.currentScript;
1624
- s == null || s.remove();
1621
+ const winningVariantId = getAndSetVariantId();
1622
+ const styleEl = document.currentScript?.previousElementSibling;
1623
+ if (isHydrationTarget) {
1624
+ styleEl.remove();
1625
+ const thisScriptEl = document.currentScript;
1626
+ thisScriptEl?.remove();
1625
1627
  } else {
1626
- const s = t.concat({
1627
- id: e
1628
- }).filter((c) => c.id !== i).map((c) => `.variant-${c.id} { display: none; }
1629
- `).join("");
1630
- r.innerHTML = s;
1628
+ const newStyleStr = variants.concat({
1629
+ id: contentId
1630
+ }).filter(variant => variant.id !== winningVariantId).map(value => {
1631
+ return \`.variant-\${value.id} { display: none; }
1632
+ \`;
1633
+ }).join('');
1634
+ styleEl.innerHTML = newStyleStr;
1631
1635
  }
1632
- }
1633
- function zt(e, t, n) {
1634
- var c;
1635
- if (!navigator.cookieEnabled)
1636
+ }`, Ht = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
1637
+ if (!navigator.cookieEnabled) {
1636
1638
  return;
1637
- function o(d) {
1638
- const f = d + "=", p = document.cookie.split(";");
1639
- for (let b = 0; b < p.length; b++) {
1640
- let m = p[b];
1641
- for (; m.charAt(0) === " "; )
1642
- m = m.substring(1, m.length);
1643
- if (m.indexOf(f) === 0)
1644
- return m.substring(f.length, m.length);
1639
+ }
1640
+ function getCookie(name) {
1641
+ const nameEQ = name + '=';
1642
+ const ca = document.cookie.split(';');
1643
+ for (let i = 0; i < ca.length; i++) {
1644
+ let c = ca[i];
1645
+ while (c.charAt(0) === ' ') c = c.substring(1, c.length);
1646
+ if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);
1645
1647
  }
1646
1648
  return null;
1647
1649
  }
1648
- const i = `builder.tests.${t}`, r = o(i), a = (c = document.currentScript) == null ? void 0 : c.parentElement, s = e === t;
1649
- if (r === e) {
1650
- if (s)
1651
- return;
1652
- a == null || a.removeAttribute("hidden"), a == null || a.removeAttribute("aria-hidden");
1653
- } else {
1654
- s && (n ? a == null || a.remove() : (a == null || a.setAttribute("hidden", "true"), a == null || a.setAttribute("aria-hidden", "true")));
1655
- return;
1650
+ const cookieName = \`builder.tests.\${defaultContentId}\`;
1651
+ const winningVariant = getCookie(cookieName);
1652
+ const parentDiv = document.currentScript?.parentElement;
1653
+ const isDefaultContent = variantContentId === defaultContentId;
1654
+ const isWinningVariant = winningVariant === variantContentId;
1655
+ if (isWinningVariant && !isDefaultContent) {
1656
+ parentDiv?.removeAttribute('hidden');
1657
+ parentDiv?.removeAttribute('aria-hidden');
1658
+ } else if (!isWinningVariant && isDefaultContent) {
1659
+ parentDiv?.setAttribute('hidden', 'true');
1660
+ parentDiv?.setAttribute('aria-hidden', 'true');
1656
1661
  }
1657
- }
1658
- const qt = (e) => e === "react" || e === "reactNative", Se = qt(T), ve = "builderIoAbTest", ke = "builderIoRenderContent", Gt = () => {
1659
- const e = Dt.toString().replace(/\s+/g, " "), t = zt.toString().replace(/\s+/g, " ");
1660
- return `
1661
- window.${ve} = ${e}
1662
- window.${ke} = ${t}
1663
- `;
1664
- }, Jt = (e, t) => `
1665
- window.${ve}("${t}",${JSON.stringify(e)}, ${Se})`, Yt = ({
1662
+ if (isHydrationTarget) {
1663
+ if (!isWinningVariant) {
1664
+ parentDiv?.remove();
1665
+ }
1666
+ const thisScriptEl = document.currentScript;
1667
+ thisScriptEl?.remove();
1668
+ }
1669
+ return;
1670
+ }`, xe = "builderIoAbTest", Se = "builderIoRenderContent", B = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
1671
+ ...t,
1672
+ testVariationId: t.id,
1673
+ id: e == null ? void 0 : e.id
1674
+ })), zt = ({
1675
+ canTrack: e,
1676
+ content: t
1677
+ }) => !(!(B(t).length > 0) || !e || x()), qt = (e) => e === "react" || e === "reactNative", ke = qt(T), Gt = () => `
1678
+ window.${xe} = ${Kt}
1679
+ window.${Se} = ${Ht}
1680
+ `, Yt = (e, t) => `
1681
+ window.${xe}(
1682
+ "${t}",${JSON.stringify(e)}, ${ke}
1683
+ )`, Jt = ({
1666
1684
  contentId: e,
1667
1685
  variationId: t
1668
- }) => `
1669
- window.${ke}("${t}", "${e}", ${Se})`;
1670
- function _(e) {
1686
+ }) => `window.${Se}(
1687
+ "${t}", "${e}", ${ke}
1688
+ )`;
1689
+ function M(e) {
1671
1690
  return /* @__PURE__ */ l(
1672
1691
  "script",
1673
1692
  {
1674
1693
  dangerouslySetInnerHTML: { __html: e.scriptStr },
1675
- id: e.id
1694
+ id: e.id || ""
1676
1695
  }
1677
1696
  );
1678
1697
  }
1679
- const Xt = (e) => {
1698
+ const Qt = (e) => {
1680
1699
  const t = e.get("preview"), n = e.get("overrides." + t);
1681
1700
  return n || k.warn("No previewed ID found in search params."), n;
1682
1701
  };
1683
- function Qt() {
1684
- globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new Pe({
1702
+ function Xt() {
1703
+ globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new Be({
1685
1704
  max: 500,
1686
1705
  // how long to live in ms
1687
1706
  ttl: 1e3 * 60 * 5
1688
1707
  }));
1689
1708
  }
1690
1709
  function Zt(e) {
1691
- Qt();
1692
- const t = Xt(e);
1710
+ Xt();
1711
+ const t = Qt(e);
1693
1712
  return typeof t == "string" ? globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t) : void 0;
1694
1713
  }
1695
1714
  function en() {
@@ -1703,39 +1722,39 @@ function tn() {
1703
1722
  return e;
1704
1723
  }
1705
1724
  const nn = tn();
1706
- function V(e, t = null, n = ".") {
1725
+ function P(e, t = null, n = ".") {
1707
1726
  return Object.keys(e).reduce((o, i) => {
1708
- const r = e[i], a = [t, i].filter(Boolean).join(n);
1709
- return [typeof r == "object", r !== null, !(Array.isArray(r) && r.length === 0)].every(Boolean) ? {
1727
+ const a = e[i], r = [t, i].filter(Boolean).join(n);
1728
+ return [typeof a == "object", a !== null, !(Array.isArray(a) && a.length === 0)].every(Boolean) ? {
1710
1729
  ...o,
1711
- ...V(r, a, n)
1730
+ ...P(a, r, n)
1712
1731
  } : {
1713
1732
  ...o,
1714
- [a]: r
1733
+ [r]: a
1715
1734
  };
1716
1735
  }, {});
1717
1736
  }
1718
- const on = "v3", ne = "builder.", rn = "options.", an = (e) => {
1737
+ const on = "v3", ne = "builder.", an = "options.", rn = (e) => {
1719
1738
  const t = {};
1720
1739
  return e.forEach((n, o) => {
1721
1740
  t[o] = n;
1722
1741
  }), t;
1723
- }, we = (e) => {
1742
+ }, Ce = (e) => {
1724
1743
  if (!e)
1725
1744
  return {};
1726
- const t = Ce(e), n = {};
1745
+ const t = we(e), n = {};
1727
1746
  return Object.keys(t).forEach((o) => {
1728
1747
  if (o.startsWith(ne)) {
1729
- const i = o.replace(ne, "").replace(rn, "");
1748
+ const i = o.replace(ne, "").replace(an, "");
1730
1749
  n[i] = t[o];
1731
1750
  }
1732
1751
  }), n;
1733
1752
  }, sn = () => {
1734
- if (!v())
1753
+ if (!x())
1735
1754
  return {};
1736
1755
  const e = new URLSearchParams(window.location.search);
1737
- return we(e);
1738
- }, Ce = (e) => e instanceof URLSearchParams ? an(e) : e, oe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, q = (e) => {
1756
+ return Ce(e);
1757
+ }, we = (e) => e instanceof URLSearchParams ? rn(e) : e, oe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, q = (e) => {
1739
1758
  let {
1740
1759
  noTraverse: t = !1
1741
1760
  } = e;
@@ -1743,47 +1762,47 @@ const on = "v3", ne = "builder.", rn = "options.", an = (e) => {
1743
1762
  limit: n = 30,
1744
1763
  userAttributes: o,
1745
1764
  query: i,
1746
- model: r,
1747
- apiKey: a,
1765
+ model: a,
1766
+ apiKey: r,
1748
1767
  includeRefs: s = !0,
1749
1768
  enrich: c,
1750
- locale: d,
1751
- apiVersion: f = on,
1752
- fields: p,
1753
- omit: b,
1754
- offset: m,
1755
- cacheSeconds: h,
1756
- staleCacheSeconds: u,
1757
- sort: y,
1769
+ locale: f,
1770
+ apiVersion: h = on,
1771
+ fields: g,
1772
+ omit: y,
1773
+ offset: u,
1774
+ cacheSeconds: m,
1775
+ staleCacheSeconds: d,
1776
+ sort: v,
1758
1777
  includeUnpublished: S
1759
1778
  } = e;
1760
- if (!a)
1779
+ if (!r)
1761
1780
  throw new Error("Missing API key");
1762
- if (!["v2", "v3"].includes(f))
1763
- throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${f}'`);
1781
+ if (!["v2", "v3"].includes(h))
1782
+ throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${h}'`);
1764
1783
  (e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
1765
- const g = new URL(`https://cdn.builder.io/api/${f}/content/${r}?apiKey=${a}&limit=${n}&noTraverse=${t}&includeRefs=${s}${d ? `&locale=${d}` : ""}${c ? `&enrich=${c}` : ""}`);
1766
- if (g.searchParams.set("omit", b || "meta.componentsUsed"), p && g.searchParams.set("fields", p), Number.isFinite(m) && m > -1 && g.searchParams.set("offset", String(Math.floor(m))), typeof S == "boolean" && g.searchParams.set("includeUnpublished", String(S)), h && oe(h) && g.searchParams.set("cacheSeconds", String(h)), u && oe(u) && g.searchParams.set("staleCacheSeconds", String(u)), y) {
1767
- const w = V({
1768
- sort: y
1784
+ const p = new URL(`https://cdn.builder.io/api/${h}/content/${a}?apiKey=${r}&limit=${n}&noTraverse=${t}&includeRefs=${s}${f ? `&locale=${f}` : ""}${c ? `&enrich=${c}` : ""}`);
1785
+ if (p.searchParams.set("omit", y || "meta.componentsUsed"), g && p.searchParams.set("fields", g), Number.isFinite(u) && u > -1 && p.searchParams.set("offset", String(Math.floor(u))), typeof S == "boolean" && p.searchParams.set("includeUnpublished", String(S)), m && oe(m) && p.searchParams.set("cacheSeconds", String(m)), d && oe(d) && p.searchParams.set("staleCacheSeconds", String(d)), v) {
1786
+ const C = P({
1787
+ sort: v
1769
1788
  });
1770
- for (const E in w)
1771
- g.searchParams.set(E, JSON.stringify(w[E]));
1789
+ for (const R in C)
1790
+ p.searchParams.set(R, JSON.stringify(C[R]));
1772
1791
  }
1773
1792
  const A = {
1774
1793
  ...sn(),
1775
- ...Ce(e.options || {})
1776
- }, R = V(A);
1777
- for (const w in R)
1778
- g.searchParams.set(w, String(R[w]));
1779
- if (o && g.searchParams.set("userAttributes", JSON.stringify(o)), i) {
1780
- const w = V({
1794
+ ...we(e.options || {})
1795
+ }, E = P(A);
1796
+ for (const C in E)
1797
+ p.searchParams.set(C, String(E[C]));
1798
+ if (o && p.searchParams.set("userAttributes", JSON.stringify(o)), i) {
1799
+ const C = P({
1781
1800
  query: i
1782
1801
  });
1783
- for (const E in w)
1784
- g.searchParams.set(E, JSON.stringify(w[E]));
1802
+ for (const R in C)
1803
+ p.searchParams.set(R, JSON.stringify(C[R]));
1785
1804
  }
1786
- return g;
1805
+ return p;
1787
1806
  }, cn = (e) => "results" in e;
1788
1807
  async function G(e) {
1789
1808
  const t = await Ie({
@@ -1792,38 +1811,38 @@ async function G(e) {
1792
1811
  });
1793
1812
  return t && t.results[0] || null;
1794
1813
  }
1795
- const Hn = G, ln = async (e) => {
1814
+ const Kn = G, ln = async (e) => {
1796
1815
  const t = q(e);
1797
1816
  return await (await nn(t.href)).json();
1798
- }, un = async (e, t, n = q(e)) => {
1799
- const o = U(e.canTrack);
1817
+ }, dn = async (e, t, n = q(e)) => {
1818
+ const o = L(e.canTrack);
1800
1819
  if (n.search.includes("preview=")) {
1801
- const r = [];
1802
- for (const a of t.results) {
1820
+ const a = [];
1821
+ for (const r of t.results) {
1803
1822
  const s = Zt(n.searchParams);
1804
- r.push(s || a);
1823
+ a.push(s || r);
1805
1824
  }
1806
- t.results = r;
1825
+ t.results = a;
1807
1826
  }
1808
- if (!o || !(v() || T === "reactNative"))
1827
+ if (!o || !(x() || T === "reactNative"))
1809
1828
  return t;
1810
1829
  try {
1811
- const r = [];
1812
- for (const a of t.results)
1813
- r.push(await Et({
1814
- item: a,
1830
+ const a = [];
1831
+ for (const r of t.results)
1832
+ a.push(await Rt({
1833
+ item: r,
1815
1834
  canTrack: o
1816
1835
  }));
1817
- t.results = r;
1818
- } catch (r) {
1819
- k.error("Could not process A/B tests. ", r);
1836
+ t.results = a;
1837
+ } catch (a) {
1838
+ k.error("Could not process A/B tests. ", a);
1820
1839
  }
1821
1840
  return t;
1822
1841
  };
1823
1842
  async function Ie(e) {
1824
1843
  try {
1825
1844
  const t = q(e), n = await ln(e);
1826
- return cn(n) ? un(e, n) : (k.error("Error fetching data. ", {
1845
+ return cn(n) ? dn(e, n) : (k.error("Error fetching data. ", {
1827
1846
  url: t,
1828
1847
  content: n,
1829
1848
  options: e
@@ -1832,26 +1851,26 @@ async function Ie(e) {
1832
1851
  return k.error("Error fetching data. ", t), null;
1833
1852
  }
1834
1853
  }
1835
- const Dn = Ie;
1854
+ const Hn = Ie;
1836
1855
  function zn() {
1837
- return !v() || j() ? !1 : location.search.indexOf("builder.preview=") !== -1;
1856
+ return !x() || D() ? !1 : location.search.indexOf("builder.preview=") !== -1;
1838
1857
  }
1839
- function dn() {
1858
+ function un() {
1840
1859
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
1841
1860
  const t = Math.random() * 16 | 0;
1842
1861
  return (e == "x" ? t : t & 3 | 8).toString(16);
1843
1862
  });
1844
1863
  }
1845
1864
  function Te() {
1846
- return dn().replace(/-/g, "");
1865
+ return un().replace(/-/g, "");
1847
1866
  }
1848
- const Re = "builderSessionId", mn = async ({
1867
+ const Ee = "builderSessionId", mn = async ({
1849
1868
  canTrack: e
1850
1869
  }) => {
1851
1870
  if (!e)
1852
1871
  return;
1853
1872
  const t = await ge({
1854
- name: Re,
1873
+ name: Ee,
1855
1874
  canTrack: e
1856
1875
  });
1857
1876
  if (I(t))
@@ -1867,16 +1886,16 @@ const Re = "builderSessionId", mn = async ({
1867
1886
  id: e,
1868
1887
  canTrack: t
1869
1888
  }) => pe({
1870
- name: Re,
1889
+ name: Ee,
1871
1890
  value: e,
1872
1891
  canTrack: t
1873
- }), Ee = () => v() && typeof localStorage < "u" ? localStorage : void 0, gn = ({
1892
+ }), Re = () => x() && typeof localStorage < "u" ? localStorage : void 0, gn = ({
1874
1893
  key: e,
1875
1894
  canTrack: t
1876
1895
  }) => {
1877
1896
  var n;
1878
1897
  try {
1879
- return t ? (n = Ee()) == null ? void 0 : n.getItem(e) : void 0;
1898
+ return t ? (n = Re()) == null ? void 0 : n.getItem(e) : void 0;
1880
1899
  } catch (o) {
1881
1900
  console.debug("[LocalStorage] GET error: ", o);
1882
1901
  return;
@@ -1888,7 +1907,7 @@ const Re = "builderSessionId", mn = async ({
1888
1907
  }) => {
1889
1908
  var o;
1890
1909
  try {
1891
- t && ((o = Ee()) == null || o.setItem(e, n));
1910
+ t && ((o = Re()) == null || o.setItem(e, n));
1892
1911
  } catch (i) {
1893
1912
  console.debug("[LocalStorage] SET error: ", i);
1894
1913
  }
@@ -1905,19 +1924,19 @@ const Re = "builderSessionId", mn = async ({
1905
1924
  return t;
1906
1925
  {
1907
1926
  const n = yn();
1908
- return xn({
1927
+ return vn({
1909
1928
  id: n,
1910
1929
  canTrack: e
1911
1930
  }), n;
1912
1931
  }
1913
- }, yn = () => Te(), xn = ({
1932
+ }, yn = () => Te(), vn = ({
1914
1933
  id: e,
1915
1934
  canTrack: t
1916
1935
  }) => pn({
1917
1936
  key: Ae,
1918
1937
  value: e,
1919
1938
  canTrack: t
1920
- }), Sn = async ({
1939
+ }), xn = async ({
1921
1940
  canTrack: e
1922
1941
  }) => {
1923
1942
  if (!e)
@@ -1934,7 +1953,7 @@ const Re = "builderSessionId", mn = async ({
1934
1953
  sessionId: t,
1935
1954
  visitorId: n
1936
1955
  };
1937
- }, vn = async ({
1956
+ }, Sn = async ({
1938
1957
  type: e,
1939
1958
  canTrack: t,
1940
1959
  apiKey: n,
@@ -1948,10 +1967,10 @@ const Re = "builderSessionId", mn = async ({
1948
1967
  url: location.href,
1949
1968
  ...o
1950
1969
  },
1951
- ...await Sn({
1970
+ ...await xn({
1952
1971
  canTrack: t
1953
1972
  }),
1954
- userAttributes: ue(),
1973
+ userAttributes: de(),
1955
1974
  ownerId: n
1956
1975
  }
1957
1976
  });
@@ -1960,11 +1979,11 @@ async function kn(e) {
1960
1979
  k.error("Missing API key for track call. Please provide your API key.");
1961
1980
  return;
1962
1981
  }
1963
- if (e.canTrack && !j() && (v() || T === "reactNative"))
1982
+ if (e.canTrack && !D() && (x() || T === "reactNative"))
1964
1983
  return fetch("https://cdn.builder.io/api/v1/track", {
1965
1984
  method: "POST",
1966
1985
  body: JSON.stringify({
1967
- events: [await vn(e)]
1986
+ events: [await Sn(e)]
1968
1987
  }),
1969
1988
  headers: {
1970
1989
  "content-type": "application/json"
@@ -1981,7 +2000,7 @@ const qn = (e) => kn({
1981
2000
  function ie(e) {
1982
2001
  return Math.round(e * 1e3) / 1e3;
1983
2002
  }
1984
- const wn = (e, t, n = !0) => {
2003
+ const Cn = (e, t, n = !0) => {
1985
2004
  if (!(e instanceof HTMLElement))
1986
2005
  return null;
1987
2006
  let o = n ? e : e.parentElement;
@@ -1992,38 +2011,38 @@ const wn = (e, t, n = !0) => {
1992
2011
  return o;
1993
2012
  } while (o = o.parentElement);
1994
2013
  return null;
1995
- }, Cn = (e) => wn(e, (t) => {
2014
+ }, wn = (e) => Cn(e, (t) => {
1996
2015
  const n = t.getAttribute("builder-id") || t.id;
1997
2016
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
1998
- }), re = ({
2017
+ }), ae = ({
1999
2018
  event: e,
2000
2019
  target: t
2001
2020
  }) => {
2002
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, i = e.clientY - n.top, r = ie(o / n.width), a = ie(i / n.height);
2021
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, i = e.clientY - n.top, a = ie(o / n.width), r = ie(i / n.height);
2003
2022
  return {
2004
- x: r,
2005
- y: a
2023
+ x: a,
2024
+ y: r
2006
2025
  };
2007
2026
  }, Gn = (e) => {
2008
- const t = e.target, n = t && Cn(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2027
+ const t = e.target, n = t && wn(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2009
2028
  return {
2010
2029
  targetBuilderElement: o || void 0,
2011
2030
  metadata: {
2012
- targetOffset: t ? re({
2031
+ targetOffset: t ? ae({
2013
2032
  event: e,
2014
2033
  target: t
2015
2034
  }) : void 0,
2016
- builderTargetOffset: n ? re({
2035
+ builderTargetOffset: n ? ae({
2017
2036
  event: e,
2018
2037
  target: n
2019
2038
  }) : void 0,
2020
2039
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
2021
2040
  }
2022
2041
  };
2023
- }, In = "0.7.3", ae = {};
2042
+ }, In = "0.7.5", re = {};
2024
2043
  function Tn(e, t) {
2025
- let n = ae[e];
2026
- if (n || (n = ae[e] = []), n.push(t), v()) {
2044
+ let n = re[e];
2045
+ if (n || (n = re[e] = []), n.push(t), x()) {
2027
2046
  const o = {
2028
2047
  type: "builder.register",
2029
2048
  data: {
@@ -2038,7 +2057,7 @@ function Tn(e, t) {
2038
2057
  }
2039
2058
  }
2040
2059
  }
2041
- const Jn = () => {
2060
+ const Yn = () => {
2042
2061
  Tn("insertMenu", {
2043
2062
  name: "_default",
2044
2063
  default: !0,
@@ -2062,9 +2081,9 @@ const Jn = () => {
2062
2081
  });
2063
2082
  };
2064
2083
  let se = !1;
2065
- const Yn = (e = {}) => {
2084
+ const Jn = (e = {}) => {
2066
2085
  var t, n;
2067
- se || (se = !0, v() && ((t = window.parent) == null || t.postMessage({
2086
+ se || (se = !0, x() && ((t = window.parent) == null || t.postMessage({
2068
2087
  type: "builder.sdkInfo",
2069
2088
  data: {
2070
2089
  target: T,
@@ -2083,36 +2102,36 @@ const Yn = (e = {}) => {
2083
2102
  }, "*"), window.addEventListener("message", ({
2084
2103
  data: o
2085
2104
  }) => {
2086
- var i, r;
2105
+ var i, a;
2087
2106
  if (o != null && o.type)
2088
2107
  switch (o.type) {
2089
2108
  case "builder.evaluate": {
2090
- const a = o.data.text, s = o.data.arguments || [], c = o.data.id, d = new Function(a);
2091
- let f, p = null;
2109
+ const r = o.data.text, s = o.data.arguments || [], c = o.data.id, f = new Function(r);
2110
+ let h, g = null;
2092
2111
  try {
2093
- f = d.apply(null, s);
2094
- } catch (b) {
2095
- p = b;
2112
+ h = f.apply(null, s);
2113
+ } catch (y) {
2114
+ g = y;
2096
2115
  }
2097
- p ? (i = window.parent) == null || i.postMessage({
2116
+ g ? (i = window.parent) == null || i.postMessage({
2098
2117
  type: "builder.evaluateError",
2099
2118
  data: {
2100
2119
  id: c,
2101
- error: p.message
2120
+ error: g.message
2102
2121
  }
2103
- }, "*") : f && typeof f.then == "function" ? f.then((b) => {
2104
- var m;
2105
- (m = window.parent) == null || m.postMessage({
2122
+ }, "*") : h && typeof h.then == "function" ? h.then((y) => {
2123
+ var u;
2124
+ (u = window.parent) == null || u.postMessage({
2106
2125
  type: "builder.evaluateResult",
2107
2126
  data: {
2108
2127
  id: c,
2109
- result: b
2128
+ result: y
2110
2129
  }
2111
2130
  }, "*");
2112
- }).catch(console.error) : (r = window.parent) == null || r.postMessage({
2131
+ }).catch(console.error) : (a = window.parent) == null || a.postMessage({
2113
2132
  type: "builder.evaluateResult",
2114
2133
  data: {
2115
- result: f,
2134
+ result: h,
2116
2135
  id: c
2117
2136
  }
2118
2137
  }, "*");
@@ -2120,9 +2139,9 @@ const Yn = (e = {}) => {
2120
2139
  }
2121
2140
  }
2122
2141
  })));
2123
- }, Rn = (e) => {
2124
- var r;
2125
- 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);
2142
+ }, En = (e) => {
2143
+ var a;
2144
+ 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);
2126
2145
  let i = "";
2127
2146
  if (o && t && n && (i += `
2128
2147
  @font-face {
@@ -2132,36 +2151,36 @@ font-display: fallback;
2132
2151
  font-weight: 400;
2133
2152
  }
2134
2153
  `.trim()), e.files)
2135
- for (const a in e.files) {
2136
- if (!(String(Number(a)) === a))
2154
+ for (const r in e.files) {
2155
+ if (!(String(Number(r)) === r))
2137
2156
  continue;
2138
- const c = e.files[a];
2157
+ const c = e.files[r];
2139
2158
  c && c !== o && (i += `
2140
2159
  @font-face {
2141
2160
  font-family: "${t}";
2142
2161
  src: url('${c}') format('woff2');
2143
2162
  font-display: fallback;
2144
- font-weight: ${a};
2163
+ font-weight: ${r};
2145
2164
  }
2146
2165
  `.trim());
2147
2166
  }
2148
2167
  return i;
2149
- }, En = ({
2168
+ }, Rn = ({
2150
2169
  customFonts: e
2151
2170
  }) => {
2152
2171
  var t;
2153
- return ((t = e == null ? void 0 : e.map((n) => Rn(n))) == null ? void 0 : t.join(" ")) || "";
2172
+ return ((t = e == null ? void 0 : e.map((n) => En(n))) == null ? void 0 : t.join(" ")) || "";
2154
2173
  }, An = ({
2155
2174
  cssCode: e,
2156
2175
  contentId: t
2157
2176
  }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
2158
- function Bn(e) {
2177
+ function Vn(e) {
2159
2178
  const t = `
2160
2179
  ${An({
2161
2180
  cssCode: e.cssCode,
2162
2181
  contentId: e.contentId
2163
2182
  })}
2164
- ${En({
2183
+ ${Rn({
2165
2184
  customFonts: e.customFonts
2166
2185
  })}
2167
2186
 
@@ -2180,29 +2199,24 @@ ${En({
2180
2199
  `.trim();
2181
2200
  return /* @__PURE__ */ l(F, { styles: t });
2182
2201
  }
2183
- const Pn = ({
2202
+ const Bn = ({
2184
2203
  content: e,
2185
2204
  data: t,
2186
2205
  locale: n
2187
2206
  }) => {
2188
- var r, a, s;
2189
- const o = {};
2190
- (a = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || a.forEach((c) => {
2191
- var d;
2192
- c.name && c.defaultValue !== void 0 && ((d = e == null ? void 0 : e.data) != null && d.state) && e.data.state[c.name] === void 0 && (o[c.name] = c.defaultValue);
2193
- });
2194
- const i = {
2195
- ...(s = e == null ? void 0 : e.data) == null ? void 0 : s.state,
2207
+ var a, r, s;
2208
+ const o = {}, i = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
2209
+ return (s = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || s.forEach((c) => {
2210
+ c.name && c.defaultValue !== void 0 && (o[c.name] = c.defaultValue);
2211
+ }), {
2212
+ ...o,
2213
+ ...i,
2196
2214
  ...t,
2197
2215
  ...n ? {
2198
2216
  locale: n
2199
2217
  } : {}
2200
2218
  };
2201
- return {
2202
- ...o,
2203
- ...i
2204
- };
2205
- }, Vn = ({
2219
+ }, Pn = ({
2206
2220
  content: e,
2207
2221
  data: t
2208
2222
  }) => e ? {
@@ -2214,12 +2228,12 @@ const Pn = ({
2214
2228
  meta: e == null ? void 0 : e.meta
2215
2229
  } : void 0;
2216
2230
  function ce(e) {
2217
- var i, r, a, s, c, d, f, p, b;
2218
- const t = Yt({
2231
+ var i, a, r, s, c, f, h, g, y;
2232
+ const t = Jt({
2219
2233
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2220
2234
  variationId: (i = e.content) == null ? void 0 : i.testVariationId,
2221
2235
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2222
- contentId: (r = e.content) == null ? void 0 : r.id
2236
+ contentId: (a = e.content) == null ? void 0 : a.id
2223
2237
  }), n = [
2224
2238
  ...ee(),
2225
2239
  // While this `components` object is deprecated, we must maintain support for it.
@@ -2230,21 +2244,21 @@ function ce(e) {
2230
2244
  ...te,
2231
2245
  ...e.customComponents || []
2232
2246
  ].reduce(
2233
- (m, { component: h, ...u }) => ({
2234
- ...m,
2235
- [u.name]: {
2236
- component: h,
2237
- ...M(u)
2247
+ (u, { component: m, ...d }) => ({
2248
+ ...u,
2249
+ [d.name]: {
2250
+ component: m,
2251
+ ...U(d)
2238
2252
  }
2239
2253
  }),
2240
2254
  {}
2241
2255
  ), o = {
2242
- content: Vn({
2256
+ content: Pn({
2243
2257
  content: e.content,
2244
2258
  data: e.data
2245
2259
  }),
2246
2260
  localState: void 0,
2247
- rootState: Pn({
2261
+ rootState: Bn({
2248
2262
  content: e.content,
2249
2263
  data: e.data,
2250
2264
  locale: e.locale
@@ -2263,16 +2277,16 @@ function ce(e) {
2263
2277
  ...te,
2264
2278
  ...e.customComponents || []
2265
2279
  ].reduce(
2266
- (m, { component: h, ...u }) => ({
2267
- ...m,
2268
- [u.name]: M(u)
2280
+ (u, { component: m, ...d }) => ({
2281
+ ...u,
2282
+ [d.name]: U(d)
2269
2283
  }),
2270
2284
  {}
2271
2285
  ),
2272
2286
  inheritedStyles: {}
2273
2287
  };
2274
- return /* @__PURE__ */ C(
2275
- Ke,
2288
+ return /* @__PURE__ */ w(
2289
+ je,
2276
2290
  {
2277
2291
  content: e.content,
2278
2292
  model: e.model,
@@ -2282,23 +2296,22 @@ function ce(e) {
2282
2296
  locale: e.locale,
2283
2297
  includeRefs: e.includeRefs,
2284
2298
  enrich: e.enrich,
2285
- classNameProp: e.classNameProp,
2286
2299
  showContent: e.showContent,
2287
2300
  builderContextSignal: o,
2288
2301
  children: [
2289
- e.isSsrAbTest ? /* @__PURE__ */ l(x, { children: /* @__PURE__ */ l(_, { scriptStr: t }) }) : null,
2290
- /* @__PURE__ */ l(x, { children: /* @__PURE__ */ l(
2291
- Bn,
2302
+ e.isSsrAbTest ? /* @__PURE__ */ l(b, { children: /* @__PURE__ */ l(M, { scriptStr: t }) }) : null,
2303
+ /* @__PURE__ */ l(b, { children: /* @__PURE__ */ l(
2304
+ Vn,
2292
2305
  {
2293
- contentId: (a = o.content) == null ? void 0 : a.id,
2306
+ contentId: (r = o.content) == null ? void 0 : r.id,
2294
2307
  cssCode: (c = (s = o.content) == null ? void 0 : s.data) == null ? void 0 : c.cssCode,
2295
- customFonts: (f = (d = o.content) == null ? void 0 : d.data) == null ? void 0 : f.customFonts
2308
+ customFonts: (h = (f = o.content) == null ? void 0 : f.data) == null ? void 0 : h.customFonts
2296
2309
  }
2297
2310
  ) }),
2298
2311
  /* @__PURE__ */ l(
2299
- D,
2312
+ H,
2300
2313
  {
2301
- blocks: (b = (p = o.content) == null ? void 0 : p.data) == null ? void 0 : b.blocks,
2314
+ blocks: (y = (g = o.content) == null ? void 0 : g.data) == null ? void 0 : y.blocks,
2302
2315
  context: o,
2303
2316
  registeredComponents: n
2304
2317
  }
@@ -2307,49 +2320,48 @@ function ce(e) {
2307
2320
  }
2308
2321
  );
2309
2322
  }
2310
- function Be(e) {
2311
- var r, a, s;
2312
- const t = Ht({
2313
- canTrack: U(e.canTrack),
2323
+ function Ve(e) {
2324
+ var a, r;
2325
+ const t = zt({
2326
+ canTrack: L(e.canTrack),
2314
2327
  content: e.content
2315
2328
  }), n = function() {
2316
- var d;
2317
- return Jt(
2318
- P(e.content).map((f) => ({
2329
+ var c;
2330
+ return Yt(
2331
+ B(e.content).map((f) => ({
2319
2332
  id: f.testVariationId,
2320
2333
  testRatio: f.testRatio
2321
2334
  })),
2322
- ((d = e.content) == null ? void 0 : d.id) || ""
2335
+ ((c = e.content) == null ? void 0 : c.id) || ""
2323
2336
  );
2324
2337
  }, o = function() {
2325
- return P(e.content).map((d) => `.variant-${d.testVariationId} { display: none; } `).join("");
2338
+ return B(e.content).map((c) => `.variant-${c.testVariationId} { display: none; } `).join("");
2326
2339
  }, i = function() {
2327
- var d;
2340
+ var c;
2328
2341
  return t ? {
2329
2342
  ...e.content,
2330
- testVariationId: (d = e.content) == null ? void 0 : d.id
2331
- } : Rt({
2343
+ testVariationId: (c = e.content) == null ? void 0 : c.id
2344
+ } : Et({
2332
2345
  item: e.content,
2333
- canTrack: U(e.canTrack)
2346
+ canTrack: L(e.canTrack)
2334
2347
  });
2335
2348
  };
2336
- return /* @__PURE__ */ C(x, { children: [
2337
- !e.__isNestedRender && T !== "reactNative" ? /* @__PURE__ */ l(x, { children: /* @__PURE__ */ l(_, { scriptStr: Gt() }) }) : null,
2338
- t ? /* @__PURE__ */ C(x, { children: [
2349
+ return /* @__PURE__ */ w(b, { children: [
2350
+ !e.__isNestedRender && T !== "reactNative" ? /* @__PURE__ */ l(b, { children: /* @__PURE__ */ l(M, { scriptStr: Gt() }) }) : null,
2351
+ t ? /* @__PURE__ */ w(b, { children: [
2339
2352
  /* @__PURE__ */ l(
2340
2353
  F,
2341
2354
  {
2342
- id: `variants-styles-${(r = e.content) == null ? void 0 : r.id}`,
2355
+ id: `variants-styles-${(a = e.content) == null ? void 0 : a.id}`,
2343
2356
  styles: o()
2344
2357
  }
2345
2358
  ),
2346
- /* @__PURE__ */ l(_, { scriptStr: n() }),
2347
- (a = P(e.content)) == null ? void 0 : a.map((c) => /* @__PURE__ */ l(
2359
+ /* @__PURE__ */ l(M, { scriptStr: n() }),
2360
+ (r = B(e.content)) == null ? void 0 : r.map((s) => /* @__PURE__ */ l(
2348
2361
  ce,
2349
2362
  {
2350
- content: c,
2363
+ content: s,
2351
2364
  showContent: !1,
2352
- classNameProp: void 0,
2353
2365
  model: e.model,
2354
2366
  data: e.data,
2355
2367
  context: e.context,
@@ -2362,14 +2374,13 @@ function Be(e) {
2362
2374
  enrich: e.enrich,
2363
2375
  isSsrAbTest: t
2364
2376
  },
2365
- c.testVariationId
2377
+ s.testVariationId
2366
2378
  ))
2367
2379
  ] }) : null,
2368
2380
  /* @__PURE__ */ l(
2369
2381
  ce,
2370
2382
  {
2371
2383
  content: i(),
2372
- classNameProp: `variant-${(s = e.content) == null ? void 0 : s.id}`,
2373
2384
  showContent: !0,
2374
2385
  model: e.model,
2375
2386
  data: e.data,
@@ -2406,21 +2417,21 @@ const $n = async ({
2406
2417
  });
2407
2418
  };
2408
2419
  async function On(e) {
2409
- var o, i, r, a;
2420
+ var o, i, a, r;
2410
2421
  const t = function() {
2411
- var c, d;
2422
+ var c, f;
2412
2423
  return [
2413
2424
  e.attributes.className,
2414
2425
  "builder-symbol",
2415
2426
  (c = e.symbol) != null && c.inline ? "builder-inline-symbol" : void 0,
2416
- (d = e.symbol) != null && d.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
2427
+ (f = e.symbol) != null && f.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
2417
2428
  ].filter(Boolean).join(" ");
2418
2429
  }, n = ((o = e.symbol) == null ? void 0 : o.content) || await $n({
2419
2430
  symbol: e.symbol,
2420
2431
  builderContextValue: e.builderContext
2421
2432
  });
2422
2433
  return /* @__PURE__ */ l("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ l(
2423
- Be,
2434
+ Ve,
2424
2435
  {
2425
2436
  __isNestedRender: !0,
2426
2437
  apiVersion: e.builderContext.apiVersion,
@@ -2430,16 +2441,16 @@ async function On(e) {
2430
2441
  data: {
2431
2442
  ...(i = e.symbol) == null ? void 0 : i.data,
2432
2443
  ...e.builderContext.localState,
2433
- ...(r = n == null ? void 0 : n.data) == null ? void 0 : r.state
2444
+ ...(a = n == null ? void 0 : n.data) == null ? void 0 : a.state
2434
2445
  },
2435
- model: (a = e.symbol) == null ? void 0 : a.model,
2446
+ model: (r = e.symbol) == null ? void 0 : r.model,
2436
2447
  content: n
2437
2448
  }
2438
2449
  ) });
2439
2450
  }
2440
- const Xn = D, Qn = Be, le = {};
2451
+ const Qn = H, Xn = Ve, le = {};
2441
2452
  function Zn(e) {
2442
- if (v()) {
2453
+ if (x()) {
2443
2454
  Object.assign(le, e);
2444
2455
  const t = {
2445
2456
  type: "builder.settingsChange",
@@ -2449,7 +2460,7 @@ function Zn(e) {
2449
2460
  }
2450
2461
  }
2451
2462
  const eo = async (e) => {
2452
- var o, i, r;
2463
+ var o, i, a;
2453
2464
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((i = e.userAttributes) == null ? void 0 : i.urlPath), n = {
2454
2465
  ...e,
2455
2466
  apiKey: e.apiKey,
@@ -2460,7 +2471,7 @@ const eo = async (e) => {
2460
2471
  urlPath: t
2461
2472
  } : {}
2462
2473
  },
2463
- options: we(e.searchParams || ((r = e.url) == null ? void 0 : r.searchParams) || e.options)
2474
+ options: Ce(e.searchParams || ((a = e.url) == null ? void 0 : a.searchParams) || e.options)
2464
2475
  };
2465
2476
  return {
2466
2477
  apiKey: n.apiKey,
@@ -2469,39 +2480,39 @@ const eo = async (e) => {
2469
2480
  };
2470
2481
  };
2471
2482
  export {
2472
- we as A,
2473
- D as B,
2474
- Be as C,
2483
+ Ce as A,
2484
+ H as B,
2485
+ Ve as C,
2475
2486
  qn as D,
2476
2487
  eo as E,
2477
- Xn as R,
2488
+ Qn as R,
2478
2489
  On as S,
2479
- Mt as T,
2490
+ Ut as T,
2480
2491
  kn as _,
2481
- Mn as a,
2482
- _n as b,
2483
- jn as c,
2484
- v as d,
2485
- U as e,
2492
+ Un as a,
2493
+ Mn as b,
2494
+ Dn as c,
2495
+ x as d,
2496
+ L as e,
2486
2497
  zn as f,
2487
- dt as g,
2488
- K as h,
2489
- j as i,
2498
+ ut as g,
2499
+ j as h,
2500
+ D as i,
2490
2501
  Gn as j,
2491
2502
  O as k,
2492
2503
  k as l,
2493
- Kn as m,
2504
+ jn as m,
2494
2505
  G as n,
2495
2506
  nn as o,
2496
- Qt as p,
2497
- Qn as q,
2498
- Jn as r,
2499
- Yn as s,
2507
+ Xt as p,
2508
+ Xn as q,
2509
+ Yn as r,
2510
+ Jn as s,
2500
2511
  gt as t,
2501
2512
  Tn as u,
2502
2513
  Zn as v,
2503
- un as w,
2514
+ dn as w,
2504
2515
  Ie as x,
2505
- Dn as y,
2506
- Hn as z
2516
+ Hn as y,
2517
+ Kn as z
2507
2518
  };