@builder.io/sdk-react 0.12.1 → 0.12.3

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.
@@ -1,34 +1,30 @@
1
1
  "use client";
2
- import { jsxs as P, Fragment as h, jsx as l } from "react/jsx-runtime";
3
- import { createContext as Ce, useState as S, useContext as se, createElement as we, useRef as te, useEffect as E } from "react";
4
- import { i as V, j as $, k as Ne, l as U, m as ne, n as X, T as L, r as Fe, o as D, p as de, a as _e, c as Le, b as Ie, q as je, u as ue, v as me, w as Me } from "./server-entry-f978b3a5.js";
5
- import { _ as hn, h as gn, f as bn, g as xn, e as yn, d as Sn, s as vn, t as pn } from "./server-entry-f978b3a5.js";
6
- function Ue(e) {
7
- return /* @__PURE__ */ P(h, { children: [
8
- e.link ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
9
- "a",
10
- {
11
- ...e.attributes,
12
- href: e.link,
13
- target: e.openLinkInNewTab ? "_blank" : void 0,
14
- role: "button",
15
- children: e.text
16
- }
17
- ) }) : /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
18
- "button",
19
- {
20
- ...e.attributes,
21
- style: e.attributes.style,
22
- className: e.attributes.className + " button-fdf49de0",
23
- children: e.text
24
- }
25
- ) }),
26
- /* @__PURE__ */ l("style", { children: `.button-fdf49de0 {
27
- all: unset;
28
- }` })
29
- ] });
2
+ import { jsx as o, Fragment as h, jsxs as B } from "react/jsx-runtime";
3
+ import { createContext as ve, useState as S, useContext as le, createElement as pe, useRef as X, useEffect as E } from "react";
4
+ import { i as V, j as $, k as $e, l as U, m as Z, n as G, T as L, r as Ne, o as D, p as ce, a as Fe, c as _e, b as ke, q as Le, u as se, v as de, w as je } from "./server-entry-f978b3a5.js";
5
+ import { _ as xn, h as yn, f as Sn, g as vn, e as pn, d as kn, s as Cn, t as wn } from "./server-entry-f978b3a5.js";
6
+ function Me(e) {
7
+ return /* @__PURE__ */ o(h, { children: e.link ? /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(
8
+ "a",
9
+ {
10
+ ...e.attributes,
11
+ href: e.link,
12
+ target: e.openLinkInNewTab ? "_blank" : void 0,
13
+ role: "button",
14
+ children: e.text
15
+ }
16
+ ) }) : /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(
17
+ "button",
18
+ {
19
+ role: "button",
20
+ ...e.attributes,
21
+ className: `builder-button ${e.attributes.className}`,
22
+ style: e.attributes.style,
23
+ children: e.text
24
+ }
25
+ ) }) });
30
26
  }
31
- const ie = Ce({
27
+ const ee = ve({
32
28
  content: null,
33
29
  context: {},
34
30
  localState: void 0,
@@ -41,8 +37,8 @@ const ie = Ce({
41
37
  inheritedStyles: {},
42
38
  BlocksWrapper: "div",
43
39
  BlocksWrapperProps: {}
44
- }), Te = Ce({ registeredComponents: {} });
45
- function De(e) {
40
+ }), Ce = ve({ registeredComponents: {} });
41
+ function Ue(e) {
46
42
  var t;
47
43
  return {
48
44
  ...(t = e.component) == null ? void 0 : t.options,
@@ -53,7 +49,7 @@ function De(e) {
53
49
  builderBlock: e
54
50
  };
55
51
  }
56
- const Oe = ({
52
+ const De = ({
57
53
  builder: e,
58
54
  context: t,
59
55
  event: n,
@@ -65,50 +61,50 @@ const Oe = ({
65
61
  builder: e,
66
62
  context: t,
67
63
  event: n
68
- }), Ke = () => ({
64
+ }), He = () => ({
69
65
  isEditing: V(),
70
66
  isBrowser: $(),
71
67
  isServer: !$(),
72
- getUserAttributes: () => Ne()
73
- }), He = (e, {
68
+ getUserAttributes: () => $e()
69
+ }), Oe = (e, {
74
70
  isExpression: t = !0
75
- }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, fe = ({
71
+ }) => /* 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, ue = ({
76
72
  code: e,
77
73
  builder: t,
78
74
  context: n,
79
75
  event: i,
80
76
  localState: a,
81
- rootSetState: o,
77
+ rootSetState: l,
82
78
  rootState: r
83
79
  }) => {
84
- const c = Oe({
80
+ const c = De({
85
81
  builder: t,
86
82
  context: n,
87
83
  event: i,
88
- state: ze(r, a, o)
84
+ state: Ke(r, a, l)
89
85
  });
90
86
  return new Function(...c.map(([s]) => s), e)(...c.map(([, s]) => s));
91
87
  };
92
- function ze(e, t, n) {
88
+ function Ke(e, t, n) {
93
89
  if (e === t)
94
90
  throw new Error("rootState === localState");
95
91
  return new Proxy(e, {
96
92
  get: (i, a) => t && a in t ? t[a] : e[a],
97
- set: (i, a, o) => {
93
+ set: (i, a, l) => {
98
94
  if (t && a in t)
99
95
  throw new Error("Writing to local state is not allowed as it is read-only.");
100
- return e[a] = o, n == null || n(e), !0;
96
+ return e[a] = l, n == null || n(e), !0;
101
97
  }
102
98
  });
103
99
  }
104
- const qe = (e) => ($(), fe(e));
100
+ const ze = (e) => ($(), ue(e));
105
101
  function _({
106
102
  code: e,
107
103
  context: t,
108
104
  localState: n,
109
105
  rootState: i,
110
106
  rootSetState: a,
111
- event: o,
107
+ event: l,
112
108
  isExpression: r = !0
113
109
  }) {
114
110
  if (e === "") {
@@ -116,18 +112,18 @@ function _({
116
112
  return;
117
113
  }
118
114
  const c = {
119
- code: He(e, {
115
+ code: Oe(e, {
120
116
  isExpression: r
121
117
  }),
122
- builder: Ke(),
118
+ builder: He(),
123
119
  context: t,
124
- event: o,
120
+ event: l,
125
121
  rootSetState: a,
126
122
  rootState: i,
127
123
  localState: n
128
124
  };
129
125
  try {
130
- return qe(c);
126
+ return ze(c);
131
127
  } catch (s) {
132
128
  U.error("Failed code evaluation: " + s.message, {
133
129
  code: e
@@ -135,13 +131,13 @@ function _({
135
131
  return;
136
132
  }
137
133
  }
138
- const Ye = (e, t, n) => {
134
+ const qe = (e, t, n) => {
139
135
  if (Object(e) !== e)
140
136
  return e;
141
137
  const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
142
- return i.slice(0, -1).reduce((a, o, r) => Object(a[o]) === a[o] ? a[o] : a[o] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
138
+ return i.slice(0, -1).reduce((a, l, r) => Object(a[l]) === a[l] ? a[l] : a[l] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
143
139
  };
144
- const Qe = ({
140
+ const Ye = ({
145
141
  block: e,
146
142
  context: t,
147
143
  localState: n,
@@ -150,13 +146,13 @@ const Qe = ({
150
146
  }) => {
151
147
  if (!e.bindings)
152
148
  return e;
153
- const o = ne(e), r = {
154
- ...o,
149
+ const l = Z(e), r = {
150
+ ...l,
155
151
  properties: {
156
- ...o.properties
152
+ ...l.properties
157
153
  },
158
154
  actions: {
159
- ...o.actions
155
+ ...l.actions
160
156
  }
161
157
  };
162
158
  for (const c in e.bindings) {
@@ -167,41 +163,41 @@ const Qe = ({
167
163
  rootSetState: a,
168
164
  context: t
169
165
  });
170
- Ye(r, c, d);
166
+ qe(r, c, d);
171
167
  }
172
168
  return r;
173
169
  };
174
- function O({
170
+ function H({
175
171
  block: e,
176
172
  context: t,
177
173
  shouldEvaluateBindings: n,
178
174
  localState: i,
179
175
  rootState: a,
180
- rootSetState: o
176
+ rootSetState: l
181
177
  }) {
182
178
  const r = e;
183
- return n ? Qe({
179
+ return n ? Ye({
184
180
  block: r,
185
181
  localState: i,
186
182
  rootState: a,
187
- rootSetState: o,
183
+ rootSetState: l,
188
184
  context: t
189
185
  }) : r;
190
186
  }
191
- const Ge = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], Q = (e) => typeof e == "string" && Ge.includes(e.toLowerCase()), Je = ({
187
+ const Qe = ({
192
188
  block: e,
193
189
  context: t,
194
190
  registeredComponents: n
195
191
  }) => {
196
- var o;
197
- const i = (o = O({
192
+ var l;
193
+ const i = (l = H({
198
194
  block: e,
199
195
  localState: t.localState,
200
196
  rootState: t.rootState,
201
197
  rootSetState: t.rootSetState,
202
198
  context: t.context,
203
199
  shouldEvaluateBindings: !1
204
- }).component) == null ? void 0 : o.name;
200
+ }).component) == null ? void 0 : l.name;
205
201
  if (!i)
206
202
  return null;
207
203
  const a = n[i];
@@ -210,7 +206,7 @@ const Ge = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
210
206
  console.warn(`
211
207
  Could not find a registered component named "${i}".
212
208
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
213
- }, Xe = ({
209
+ }, Ge = ({
214
210
  block: e,
215
211
  context: t
216
212
  }) => {
@@ -229,7 +225,7 @@ const Ge = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
229
225
  });
230
226
  if (!Array.isArray(a))
231
227
  return;
232
- const o = n.collection.split(".").pop(), r = n.itemName || (o ? o + "Item" : "item");
228
+ const l = n.collection.split(".").pop(), r = n.itemName || (l ? l + "Item" : "item");
233
229
  return a.map((s, d) => ({
234
230
  context: {
235
231
  ...t,
@@ -243,7 +239,7 @@ const Ge = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
243
239
  },
244
240
  block: i
245
241
  }));
246
- }, Re = {
242
+ }, we = {
247
243
  small: {
248
244
  min: 320,
249
245
  default: 321,
@@ -259,11 +255,11 @@ const Ge = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
259
255
  default: 991,
260
256
  max: 1200
261
257
  }
262
- }, he = (e, t = Re) => `@media (max-width: ${t[e].max}px)`, Ee = ({
258
+ }, me = (e, t = we) => `@media (max-width: ${t[e].max}px)`, Ie = ({
263
259
  small: e,
264
260
  medium: t
265
261
  }) => {
266
- const n = ne(Re);
262
+ const n = Z(we);
267
263
  if (!e || !t)
268
264
  return n;
269
265
  const i = Math.floor(e / 2);
@@ -278,35 +274,35 @@ const Ge = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
278
274
  min: a,
279
275
  default: a + 1
280
276
  };
281
- const o = n.medium.max + 1;
277
+ const l = n.medium.max + 1;
282
278
  return n.large = {
283
279
  max: 2e3,
284
280
  // TODO: decide upper limit
285
- min: o,
286
- default: o + 1
281
+ min: l,
282
+ default: l + 1
287
283
  }, n;
288
- }, Ze = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Pe = (e) => Object.entries(e).map(([n, i]) => {
284
+ }, Je = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Te = (e) => Object.entries(e).map(([n, i]) => {
289
285
  if (typeof i == "string")
290
- return `${Ze(n)}: ${i};`;
291
- }).filter(X), et = (e) => Pe(e).join(`
292
- `), G = ({
286
+ return `${Je(n)}: ${i};`;
287
+ }).filter(G), Xe = (e) => Te(e).join(`
288
+ `), Y = ({
293
289
  mediaQuery: e,
294
290
  className: t,
295
291
  styles: n
296
292
  }) => {
297
293
  const i = `.${t} {
298
- ${et(n)}
294
+ ${Xe(n)}
299
295
  }`;
300
296
  return e ? `${e} {
301
297
  ${i}
302
298
  }` : i;
303
299
  };
304
- function H(e) {
305
- return /* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
300
+ function O(e) {
301
+ return /* @__PURE__ */ o("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
306
302
  }
307
- function tt(e) {
303
+ function Ze(e) {
308
304
  function t() {
309
- const i = O({
305
+ const i = H({
310
306
  block: e.block,
311
307
  localState: e.context.localState,
312
308
  rootState: e.context.rootState,
@@ -314,48 +310,48 @@ function tt(e) {
314
310
  context: e.context.context,
315
311
  shouldEvaluateBindings: !0
316
312
  });
317
- return X(i.hide) ? !i.hide : X(i.show) ? i.show : !0;
313
+ return G(i.hide) ? !i.hide : G(i.show) ? i.show : !0;
318
314
  }
319
315
  function n() {
320
- var C;
321
- const i = O({
316
+ var k;
317
+ const i = H({
322
318
  block: e.block,
323
319
  localState: e.context.localState,
324
320
  rootState: e.context.rootState,
325
321
  rootSetState: e.context.rootSetState,
326
322
  context: e.context.context,
327
323
  shouldEvaluateBindings: !0
328
- }), a = i.responsiveStyles, o = e.context.content, r = Ee(
329
- ((C = o == null ? void 0 : o.meta) == null ? void 0 : C.breakpoints) || {}
330
- ), c = a == null ? void 0 : a.large, s = a == null ? void 0 : a.medium, d = a == null ? void 0 : a.small, u = i.id;
331
- if (!u)
324
+ }), a = i.responsiveStyles, l = e.context.content, r = Ie(
325
+ ((k = l == null ? void 0 : l.meta) == null ? void 0 : k.breakpoints) || {}
326
+ ), c = a == null ? void 0 : a.large, s = a == null ? void 0 : a.medium, d = a == null ? void 0 : a.small, m = i.id;
327
+ if (!m)
332
328
  return "";
333
- const b = c ? G({
334
- className: u,
329
+ const g = c ? Y({
330
+ className: m,
335
331
  styles: c
336
- }) : "", v = s ? G({
337
- className: u,
332
+ }) : "", v = s ? Y({
333
+ className: m,
338
334
  styles: s,
339
- mediaQuery: he(
335
+ mediaQuery: me(
340
336
  "medium",
341
337
  r
342
338
  )
343
- }) : "", y = d ? G({
344
- className: u,
339
+ }) : "", y = d ? Y({
340
+ className: m,
345
341
  styles: d,
346
- mediaQuery: he(
342
+ mediaQuery: me(
347
343
  "small",
348
344
  r
349
345
  )
350
346
  }) : "";
351
- return [b, v, y].join(" ");
347
+ return [g, v, y].join(" ");
352
348
  }
353
- return /* @__PURE__ */ l(h, { children: n() && t() ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(H, { styles: n() }) }) : null });
349
+ return /* @__PURE__ */ o(h, { children: n() && t() ? /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(O, { styles: n() }) }) : null });
354
350
  }
355
- function nt(e) {
351
+ function et(e) {
356
352
  return e.charAt(0).toUpperCase() + e.slice(1);
357
353
  }
358
- const it = (e) => `on${nt(e)}`, at = (e, t) => (n) => _({
354
+ const tt = (e) => `on${et(e)}`, nt = (e, t) => (n) => _({
359
355
  code: e,
360
356
  context: t.context,
361
357
  localState: t.localState,
@@ -364,14 +360,14 @@ const it = (e) => `on${nt(e)}`, at = (e, t) => (n) => _({
364
360
  event: n,
365
361
  isExpression: !1
366
362
  });
367
- function Z(e) {
363
+ function Re(e) {
368
364
  var i;
369
365
  const t = {}, n = (i = e.block.actions) != null ? i : {};
370
366
  for (const a in n) {
371
367
  if (!n.hasOwnProperty(a))
372
368
  continue;
373
- const o = n[a];
374
- let r = it(a);
369
+ const l = n[a];
370
+ let r = tt(a);
375
371
  if (e.stripPrefix)
376
372
  switch (L) {
377
373
  case "vue":
@@ -381,42 +377,42 @@ function Z(e) {
381
377
  r = r.replace("on:", "");
382
378
  break;
383
379
  }
384
- t[r] = at(o, e);
380
+ t[r] = nt(l, e);
385
381
  }
386
382
  return t;
387
383
  }
388
- function ot({
384
+ function it({
389
385
  properties: e
390
386
  }) {
391
387
  return e.className = e.class, delete e.class, e;
392
388
  }
393
- const rt = (e) => ({
389
+ const at = (e) => ({
394
390
  href: e.href
395
391
  });
396
- function K({
392
+ function te({
397
393
  block: e,
398
394
  context: t
399
395
  }) {
400
396
  var i;
401
397
  const n = {
402
- ...rt(e),
398
+ ...at(e),
403
399
  ...e.properties,
404
400
  "builder-id": e.id,
405
- style: e.style ? lt(e.style) : void 0,
401
+ style: e.style ? ot(e.style) : void 0,
406
402
  class: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
407
403
  };
408
- return ot({
404
+ return it({
409
405
  properties: n,
410
406
  context: t,
411
407
  block: e
412
408
  });
413
409
  }
414
- function lt(e) {
410
+ function ot(e) {
415
411
  switch (L) {
416
412
  case "svelte":
417
413
  case "vue":
418
414
  case "solid":
419
- return Pe(e).join(" ");
415
+ return Te(e).join(" ");
420
416
  case "qwik":
421
417
  case "reactNative":
422
418
  case "react":
@@ -424,61 +420,42 @@ function lt(e) {
424
420
  return e;
425
421
  }
426
422
  }
427
- function ge(e) {
428
- return /* @__PURE__ */ P(h, { children: [
429
- " ",
430
- e.hasChildren ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ P(
431
- e.Wrapper,
432
- {
433
- ...K({
434
- block: e.block,
435
- context: e.context
436
- }),
437
- ...Z({
438
- block: e.block,
439
- rootState: e.context.rootState,
440
- rootSetState: e.context.rootSetState,
441
- localState: e.context.localState,
442
- context: e.context.context,
443
- stripPrefix: !0
444
- }),
445
- children: [
446
- " ",
447
- e.children,
448
- " "
449
- ]
450
- }
451
- ) }) : /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
452
- e.Wrapper,
453
- {
454
- ...K({
455
- block: e.block,
456
- context: e.context
457
- }),
458
- ...Z({
459
- block: e.block,
460
- rootState: e.context.rootState,
461
- rootSetState: e.context.rootSetState,
462
- localState: e.context.localState,
463
- context: e.context.context,
464
- stripPrefix: !0
465
- })
466
- }
467
- ) }),
468
- " "
469
- ] });
470
- }
423
+ const rt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), lt = (e) => typeof e == "string" && rt.has(e.toLowerCase());
471
424
  function ct(e) {
472
- return /* @__PURE__ */ l(
425
+ return /* @__PURE__ */ o(h, { children: lt(e.TagName) ? /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ o(h, { children: typeof e.TagName == "string" ? /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) : /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) }) });
426
+ }
427
+ function st(e) {
428
+ return /* @__PURE__ */ o(
429
+ ct,
430
+ {
431
+ TagName: e.Wrapper,
432
+ attributes: te({
433
+ block: e.block,
434
+ context: e.context
435
+ }),
436
+ actionAttributes: Re({
437
+ block: e.block,
438
+ rootState: e.context.rootState,
439
+ rootSetState: e.context.rootSetState,
440
+ localState: e.context.localState,
441
+ context: e.context.context,
442
+ stripPrefix: !0
443
+ }),
444
+ children: e.children
445
+ }
446
+ );
447
+ }
448
+ function dt(e) {
449
+ return /* @__PURE__ */ o(
473
450
  e.Wrapper,
474
451
  {
475
452
  ...e.wrapperProps,
476
453
  attributes: e.includeBlockProps ? {
477
- ...K({
454
+ ...te({
478
455
  block: e.block,
479
456
  context: e.context
480
457
  }),
481
- ...Z({
458
+ ...Re({
482
459
  block: e.block,
483
460
  rootState: e.context.rootState,
484
461
  rootSetState: e.context.rootSetState,
@@ -490,13 +467,13 @@ function ct(e) {
490
467
  }
491
468
  );
492
469
  }
493
- const st = ({
470
+ const ut = ({
494
471
  componentOptions: e,
495
472
  builderBlock: t,
496
473
  context: n,
497
474
  componentRef: i,
498
475
  includeBlockProps: a,
499
- isInteractive: o,
476
+ isInteractive: l,
500
477
  contextValue: r
501
478
  }) => {
502
479
  const c = {
@@ -506,13 +483,13 @@ const st = ({
506
483
  * component itself directly. Otherwise, they are provided to the wrapper element.
507
484
  */
508
485
  ...a ? {
509
- attributes: K({
486
+ attributes: te({
510
487
  block: t,
511
488
  context: r
512
489
  })
513
490
  } : {}
514
491
  };
515
- return o ? {
492
+ return l ? {
516
493
  Wrapper: i,
517
494
  block: t,
518
495
  context: n,
@@ -520,15 +497,15 @@ const st = ({
520
497
  includeBlockProps: a
521
498
  } : c;
522
499
  };
523
- function be(e) {
500
+ function fe(e) {
524
501
  var i;
525
502
  const [t, n] = S(
526
- () => e.isInteractive ? ct : e.componentRef
503
+ () => e.isInteractive ? dt : e.componentRef
527
504
  );
528
- return /* @__PURE__ */ l(h, { children: e.componentRef ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
505
+ return /* @__PURE__ */ o(h, { children: e.componentRef ? /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(
529
506
  t,
530
507
  {
531
- ...st({
508
+ ...ut({
532
509
  componentOptions: e.componentOptions,
533
510
  builderBlock: e.builderBlock,
534
511
  context: e.context,
@@ -537,8 +514,8 @@ function be(e) {
537
514
  isInteractive: e.isInteractive,
538
515
  contextValue: e.context
539
516
  }),
540
- children: (i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */ l(
541
- z,
517
+ children: (i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */ o(
518
+ K,
542
519
  {
543
520
  block: a,
544
521
  context: e.context,
@@ -549,10 +526,10 @@ function be(e) {
549
526
  }
550
527
  ) }) : null });
551
528
  }
552
- function dt(e) {
529
+ function mt(e) {
553
530
  const [t, n] = S(() => e.repeatContext);
554
- return /* @__PURE__ */ l(ie.Provider, { value: t, children: /* @__PURE__ */ l(
555
- z,
531
+ return /* @__PURE__ */ o(ee.Provider, { value: t, children: /* @__PURE__ */ o(
532
+ K,
556
533
  {
557
534
  block: e.block,
558
535
  context: t,
@@ -560,24 +537,24 @@ function dt(e) {
560
537
  }
561
538
  ) });
562
539
  }
563
- function z(e) {
564
- var u, b, v;
540
+ function K(e) {
541
+ var m, g, v;
565
542
  function t() {
566
- return Je({
543
+ return Qe({
567
544
  block: e.block,
568
545
  context: e.context,
569
546
  registeredComponents: e.registeredComponents
570
547
  });
571
548
  }
572
549
  function n() {
573
- return Xe({
550
+ return Ge({
574
551
  block: e.block,
575
552
  context: e.context
576
553
  });
577
554
  }
578
555
  function i() {
579
556
  var y;
580
- return (y = e.block.repeat) != null && y.collection ? e.block : O({
557
+ return (y = e.block.repeat) != null && y.collection ? e.block : H({
581
558
  block: e.block,
582
559
  localState: e.context.localState,
583
560
  rootState: e.context.rootState,
@@ -589,41 +566,41 @@ function z(e) {
589
566
  function a() {
590
567
  return e.block.tagName || "div";
591
568
  }
592
- function o() {
593
- var k, R;
594
- if ((k = e.block.repeat) != null && k.collection)
569
+ function l() {
570
+ var C, R;
571
+ if ((C = e.block.repeat) != null && C.collection)
595
572
  return !!((R = n == null ? void 0 : n()) != null && R.length);
596
573
  const y = "hide" in i() ? i().hide : !1;
597
574
  return ("show" in i() ? i().show : !0) && !y;
598
575
  }
599
576
  function r() {
600
- var C, k;
601
- return !((C = t == null ? void 0 : t()) != null && C.component) && !n() ? (k = i().children) != null ? k : [] : [];
577
+ var k, C;
578
+ return !((k = t == null ? void 0 : t()) != null && k.component) && !n() ? (C = i().children) != null ? C : [] : [];
602
579
  }
603
580
  function c() {
604
- var y, C, k, R, B, w;
581
+ var y, k, C, R, P, w;
605
582
  return {
606
583
  blockChildren: (y = i().children) != null ? y : [],
607
- componentRef: (C = t == null ? void 0 : t()) == null ? void 0 : C.component,
584
+ componentRef: (k = t == null ? void 0 : t()) == null ? void 0 : k.component,
608
585
  componentOptions: {
609
- ...De(i()),
586
+ ...Ue(i()),
610
587
  builderContext: e.context,
611
- ...((k = t == null ? void 0 : t()) == null ? void 0 : k.name) === "Symbol" || ((R = t == null ? void 0 : t()) == null ? void 0 : R.name) === "Columns" ? {
588
+ ...((C = t == null ? void 0 : t()) == null ? void 0 : C.name) === "Symbol" || ((R = t == null ? void 0 : t()) == null ? void 0 : R.name) === "Columns" ? {
612
589
  builderComponents: e.registeredComponents
613
590
  } : {}
614
591
  },
615
592
  context: s,
616
593
  registeredComponents: e.registeredComponents,
617
594
  builderBlock: i(),
618
- includeBlockProps: ((B = t == null ? void 0 : t()) == null ? void 0 : B.noWrap) === !0,
595
+ includeBlockProps: ((P = t == null ? void 0 : t()) == null ? void 0 : P.noWrap) === !0,
619
596
  isInteractive: !((w = t == null ? void 0 : t()) != null && w.isRSC)
620
597
  };
621
598
  }
622
599
  const [s, d] = S(() => e.context);
623
- return /* @__PURE__ */ l(h, { children: o() ? /* @__PURE__ */ P(h, { children: [
624
- /* @__PURE__ */ l(tt, { block: e.block, context: e.context }),
625
- (u = t == null ? void 0 : t()) != null && u.noWrap ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
626
- be,
600
+ return /* @__PURE__ */ o(h, { children: l() ? /* @__PURE__ */ B(h, { children: [
601
+ /* @__PURE__ */ o(Ze, { block: e.block, context: e.context }),
602
+ (m = t == null ? void 0 : t()) != null && m.noWrap ? /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(
603
+ fe,
627
604
  {
628
605
  componentRef: c().componentRef,
629
606
  componentOptions: c().componentOptions,
@@ -634,69 +611,56 @@ function z(e) {
634
611
  includeBlockProps: c().includeBlockProps,
635
612
  isInteractive: c().isInteractive
636
613
  }
637
- ) }) : /* @__PURE__ */ P(h, { children: [
638
- Q(a()) ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
639
- ge,
640
- {
641
- Wrapper: a(),
642
- block: i(),
643
- context: e.context,
644
- hasChildren: !1
645
- }
646
- ) }) : null,
647
- !Q(a()) && n() ? /* @__PURE__ */ l(h, { children: (b = n()) == null ? void 0 : b.map((y, C) => /* @__PURE__ */ l(
648
- dt,
649
- {
650
- repeatContext: y.context,
651
- block: y.block,
652
- registeredComponents: e.registeredComponents
653
- },
654
- C
655
- )) }) : null,
656
- !Q(a()) && !n() ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ P(
657
- ge,
658
- {
659
- Wrapper: a(),
660
- block: i(),
661
- context: e.context,
662
- hasChildren: !0,
663
- children: [
664
- /* @__PURE__ */ l(
665
- be,
666
- {
667
- componentRef: c().componentRef,
668
- componentOptions: c().componentOptions,
669
- blockChildren: c().blockChildren,
670
- context: c().context,
671
- registeredComponents: c().registeredComponents,
672
- builderBlock: c().builderBlock,
673
- includeBlockProps: c().includeBlockProps,
674
- isInteractive: c().isInteractive
675
- }
676
- ),
677
- (v = r()) == null ? void 0 : v.map((y) => /* @__PURE__ */ l(
678
- z,
679
- {
680
- block: y,
681
- context: s,
682
- registeredComponents: e.registeredComponents
683
- },
684
- y.id
685
- ))
686
- ]
687
- }
688
- ) }) : null
689
- ] })
614
+ ) }) : /* @__PURE__ */ o(h, { children: n() ? /* @__PURE__ */ o(h, { children: (v = n()) == null ? void 0 : v.map((y, k) => /* @__PURE__ */ o(
615
+ mt,
616
+ {
617
+ repeatContext: y.context,
618
+ block: y.block,
619
+ registeredComponents: e.registeredComponents
620
+ },
621
+ k
622
+ )) }) : /* @__PURE__ */ o(h, { children: /* @__PURE__ */ B(
623
+ st,
624
+ {
625
+ Wrapper: a(),
626
+ block: i(),
627
+ context: e.context,
628
+ children: [
629
+ /* @__PURE__ */ o(
630
+ fe,
631
+ {
632
+ componentRef: c().componentRef,
633
+ componentOptions: c().componentOptions,
634
+ blockChildren: c().blockChildren,
635
+ context: c().context,
636
+ registeredComponents: c().registeredComponents,
637
+ builderBlock: c().builderBlock,
638
+ includeBlockProps: c().includeBlockProps,
639
+ isInteractive: c().isInteractive
640
+ }
641
+ ),
642
+ (g = r()) == null ? void 0 : g.map((y) => /* @__PURE__ */ o(
643
+ K,
644
+ {
645
+ block: y,
646
+ context: s,
647
+ registeredComponents: e.registeredComponents
648
+ },
649
+ y.id
650
+ ))
651
+ ]
652
+ }
653
+ ) }) })
690
654
  ] }) : null });
691
655
  }
692
- function ut(e) {
656
+ function ft(e) {
693
657
  function t() {
694
658
  var a;
695
659
  return "builder-blocks" + ((a = e.blocks) != null && a.length ? "" : " no-blocks");
696
660
  }
697
661
  function n() {
698
- var a, o;
699
- V() && !((a = e.blocks) != null && a.length) && ((o = window.parent) == null || o.postMessage(
662
+ var a, l;
663
+ V() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
700
664
  {
701
665
  type: "builder.clickEmptyBlocks",
702
666
  data: {
@@ -708,8 +672,8 @@ function ut(e) {
708
672
  ));
709
673
  }
710
674
  function i() {
711
- var a, o;
712
- V() && !((a = e.blocks) != null && a.length) && ((o = window.parent) == null || o.postMessage(
675
+ var a, l;
676
+ V() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
713
677
  {
714
678
  type: "builder.hoverEmptyBlocks",
715
679
  data: {
@@ -720,8 +684,8 @@ function ut(e) {
720
684
  "*"
721
685
  ));
722
686
  }
723
- return /* @__PURE__ */ P(h, { children: [
724
- /* @__PURE__ */ l(
687
+ return /* @__PURE__ */ B(h, { children: [
688
+ /* @__PURE__ */ o(
725
689
  e.BlocksWrapper,
726
690
  {
727
691
  className: t() + " props-blocks-wrapper-4f2c12d8",
@@ -735,18 +699,18 @@ function ut(e) {
735
699
  children: e.children
736
700
  }
737
701
  ),
738
- /* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-4f2c12d8 {
702
+ /* @__PURE__ */ o("style", { children: `.props-blocks-wrapper-4f2c12d8 {
739
703
  display: flex;
740
704
  flex-direction: column;
741
705
  align-items: stretch;
742
706
  }` })
743
707
  ] });
744
708
  }
745
- function q(e) {
746
- var i, a, o;
747
- const t = se(ie), n = se(Te);
748
- return /* @__PURE__ */ l(
749
- ut,
709
+ function z(e) {
710
+ var i, a, l;
711
+ const t = le(ee), n = le(Ce);
712
+ return /* @__PURE__ */ o(
713
+ ft,
750
714
  {
751
715
  blocks: e.blocks,
752
716
  parent: e.parent,
@@ -754,8 +718,8 @@ function q(e) {
754
718
  styleProp: e.styleProp,
755
719
  BlocksWrapper: (i = e.context) == null ? void 0 : i.BlocksWrapper,
756
720
  BlocksWrapperProps: (a = e.context) == null ? void 0 : a.BlocksWrapperProps,
757
- children: e.blocks ? /* @__PURE__ */ l(h, { children: (o = e.blocks) == null ? void 0 : o.map((r) => /* @__PURE__ */ l(
758
- z,
721
+ children: e.blocks ? /* @__PURE__ */ o(h, { children: (l = e.blocks) == null ? void 0 : l.map((r) => /* @__PURE__ */ o(
722
+ K,
759
723
  {
760
724
  block: r,
761
725
  context: e.context || t,
@@ -766,11 +730,11 @@ function q(e) {
766
730
  }
767
731
  );
768
732
  }
769
- function mt(e) {
770
- var B;
733
+ function ht(e) {
734
+ var P;
771
735
  const [t, n] = S(
772
736
  () => typeof e.space == "number" ? e.space || 0 : 20
773
- ), [i, a] = S(() => e.columns || []), [o, r] = S(
737
+ ), [i, a] = S(() => e.columns || []), [l, r] = S(
774
738
  () => e.stackColumnsAt || "tablet"
775
739
  );
776
740
  function c(w) {
@@ -785,36 +749,36 @@ function mt(e) {
785
749
  stackedStyle: w,
786
750
  desktopStyle: I
787
751
  }) {
788
- return o === "tablet" ? w : I;
752
+ return l === "tablet" ? w : I;
789
753
  }
790
- function u({
754
+ function m({
791
755
  stackedStyle: w,
792
756
  desktopStyle: I
793
757
  }) {
794
- return o === "never" ? I : w;
758
+ return l === "never" ? I : w;
795
759
  }
796
- const [b, v] = S(
760
+ const [g, v] = S(
797
761
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
798
762
  );
799
763
  function y() {
800
764
  return {
801
- "--flex-dir": b,
765
+ "--flex-dir": g,
802
766
  "--flex-dir-tablet": d({
803
- stackedStyle: b,
767
+ stackedStyle: g,
804
768
  desktopStyle: "row"
805
769
  })
806
770
  };
807
771
  }
808
- function C(w) {
772
+ function k(w) {
809
773
  const I = w === 0 ? 0 : t, W = s(w), A = `${I}px`, N = "100%", F = 0;
810
774
  return {
811
775
  width: W,
812
776
  ["marginLeft"]: A,
813
- "--column-width-mobile": u({
777
+ "--column-width-mobile": m({
814
778
  stackedStyle: N,
815
779
  desktopStyle: W
816
780
  }),
817
- "--column-margin-left-mobile": u({
781
+ "--column-margin-left-mobile": m({
818
782
  stackedStyle: F,
819
783
  desktopStyle: A
820
784
  }),
@@ -828,15 +792,15 @@ function mt(e) {
828
792
  })
829
793
  };
830
794
  }
831
- function k(w) {
795
+ function C(w) {
832
796
  var W, A;
833
- return Ee(
797
+ return Ie(
834
798
  ((A = (W = e.builderContext.content) == null ? void 0 : W.meta) == null ? void 0 : A.breakpoints) || {}
835
799
  )[w].max;
836
800
  }
837
801
  function R() {
838
802
  return `
839
- @media (max-width: ${k("medium")}px) {
803
+ @media (max-width: ${C("medium")}px) {
840
804
  .${e.builderBlock.id}-breakpoints {
841
805
  flex-direction: var(--flex-dir-tablet);
842
806
  align-items: stretch;
@@ -848,7 +812,7 @@ function mt(e) {
848
812
  }
849
813
  }
850
814
 
851
- @media (max-width: ${k("small")}px) {
815
+ @media (max-width: ${C("small")}px) {
852
816
  .${e.builderBlock.id}-breakpoints {
853
817
  flex-direction: var(--flex-dir);
854
818
  align-items: stretch;
@@ -861,23 +825,23 @@ function mt(e) {
861
825
  },
862
826
  `;
863
827
  }
864
- return /* @__PURE__ */ P(h, { children: [
865
- /* @__PURE__ */ P(
828
+ return /* @__PURE__ */ B(h, { children: [
829
+ /* @__PURE__ */ B(
866
830
  "div",
867
831
  {
868
832
  className: `builder-columns ${e.builderBlock.id}-breakpoints div-3c01d6ec`,
869
833
  style: y(),
870
834
  children: [
871
- /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(H, { styles: R() }) }),
872
- (B = e.columns) == null ? void 0 : B.map((w, I) => /* @__PURE__ */ we(
835
+ /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(O, { styles: R() }) }),
836
+ (P = e.columns) == null ? void 0 : P.map((w, I) => /* @__PURE__ */ pe(
873
837
  "div",
874
838
  {
875
839
  className: "builder-column div-3c01d6ec-2",
876
- style: C(I),
840
+ style: k(I),
877
841
  key: I
878
842
  },
879
- /* @__PURE__ */ l(
880
- q,
843
+ /* @__PURE__ */ o(
844
+ z,
881
845
  {
882
846
  path: `component.options.columns.${I}.blocks`,
883
847
  parent: e.builderBlock.id,
@@ -893,7 +857,7 @@ function mt(e) {
893
857
  ]
894
858
  }
895
859
  ),
896
- /* @__PURE__ */ l("style", { children: `.div-3c01d6ec {
860
+ /* @__PURE__ */ o("style", { children: `.div-3c01d6ec {
897
861
  display: flex;
898
862
  line-height: normal;
899
863
  }.div-3c01d6ec-2 {
@@ -903,54 +867,54 @@ function mt(e) {
903
867
  }` })
904
868
  ] });
905
869
  }
906
- function ft(e) {
907
- return /* @__PURE__ */ l("span", { children: e.children });
870
+ function gt(e) {
871
+ return /* @__PURE__ */ o("span", { children: e.children });
908
872
  }
909
- function xe(e) {
873
+ function he(e) {
910
874
  return e.replace(/http(s)?:/, "");
911
875
  }
912
- function ht(e = "", t, n) {
876
+ function bt(e = "", t, n) {
913
877
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), a = e.indexOf("?") !== -1 ? "&" : "?";
914
878
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + a + t + "=" + encodeURIComponent(n);
915
879
  }
916
- function gt(e, t) {
880
+ function xt(e, t) {
917
881
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
918
882
  return e;
919
883
  if (t === "master")
920
- return xe(e);
884
+ return he(e);
921
885
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
922
886
  if (n) {
923
- const i = e.split(n[0]), a = n[3], o = t.match("x") ? t : `${t}x`;
924
- return xe(`${i[0]}_${o}${a}`);
887
+ const i = e.split(n[0]), a = n[3], l = t.match("x") ? t : `${t}x`;
888
+ return he(`${i[0]}_${l}${a}`);
925
889
  }
926
890
  return null;
927
891
  }
928
- function J(e) {
892
+ function Q(e) {
929
893
  if (!e)
930
894
  return e;
931
895
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
932
896
  if (e.match(/builder\.io/)) {
933
897
  let n = e;
934
898
  const i = Number(e.split("?width=")[1]);
935
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${ht(e, "width", a)} ${a}w`).concat([n]).join(", ");
899
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${bt(e, "width", a)} ${a}w`).concat([n]).join(", ");
936
900
  }
937
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [gt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
901
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [xt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
938
902
  }
939
- function bt(e) {
940
- var a, o, r, c;
903
+ function yt(e) {
904
+ var a, l, r, c;
941
905
  function t() {
942
- var u;
906
+ var m;
943
907
  const d = e.image || e.src;
944
908
  if (!d || // We can auto add srcset for cdn.builder.io and shopify
945
909
  // images, otherwise you can supply this prop manually
946
910
  !(d.match(/builder\.io/) || d.match(/cdn\.shopify\.com/)))
947
911
  return e.srcset;
948
- if (e.srcset && ((u = e.image) != null && u.includes("builder.io/api/v1/image"))) {
912
+ if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
949
913
  if (!e.srcset.includes(e.image.split("?")[0]))
950
- return console.debug("Removed given srcset"), J(d);
914
+ return console.debug("Removed given srcset"), Q(d);
951
915
  } else if (e.image && !e.srcset)
952
- return J(d);
953
- return J(d);
916
+ return Q(d);
917
+ return Q(d);
954
918
  }
955
919
  function n() {
956
920
  var s;
@@ -966,11 +930,11 @@ function bt(e) {
966
930
  };
967
931
  return e.aspectRatio ? s : void 0;
968
932
  }
969
- return /* @__PURE__ */ P(h, { children: [
970
- /* @__PURE__ */ P(h, { children: [
971
- /* @__PURE__ */ P("picture", { children: [
972
- n() ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) }) : null,
973
- /* @__PURE__ */ l(
933
+ return /* @__PURE__ */ B(h, { children: [
934
+ /* @__PURE__ */ B(h, { children: [
935
+ /* @__PURE__ */ B("picture", { children: [
936
+ n() ? /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o("source", { type: "image/webp", srcSet: n() }) }) : null,
937
+ /* @__PURE__ */ o(
974
938
  "img",
975
939
  {
976
940
  loading: "lazy",
@@ -988,7 +952,7 @@ function bt(e) {
988
952
  }
989
953
  )
990
954
  ] }),
991
- e.aspectRatio && !((o = (a = e.builderBlock) == null ? void 0 : a.children) != null && o.length && e.fitContent) ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
955
+ e.aspectRatio && !((l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent) ? /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(
992
956
  "div",
993
957
  {
994
958
  className: "builder-image-sizer div-40c70c9b",
@@ -997,10 +961,10 @@ function bt(e) {
997
961
  }
998
962
  }
999
963
  ) }) : null,
1000
- (c = (r = e.builderBlock) == null ? void 0 : r.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(h, { children: e.children }) : null,
1001
- !e.fitContent && e.children ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l("div", { className: "div-40c70c9b-2", children: e.children }) }) : null
964
+ (c = (r = e.builderBlock) == null ? void 0 : r.children) != null && c.length && e.fitContent ? /* @__PURE__ */ o(h, { children: e.children }) : null,
965
+ !e.fitContent && e.children ? /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o("div", { className: "div-40c70c9b-2", children: e.children }) }) : null
1002
966
  ] }),
1003
- /* @__PURE__ */ l("style", { children: `.img-40c70c9b {
967
+ /* @__PURE__ */ o("style", { children: `.img-40c70c9b {
1004
968
  opacity: 1;
1005
969
  transition: opacity 0.2s ease-in-out;
1006
970
  }.div-40c70c9b {
@@ -1019,8 +983,8 @@ function bt(e) {
1019
983
  }` })
1020
984
  ] });
1021
985
  }
1022
- function xt(e) {
1023
- return /* @__PURE__ */ l(
986
+ function St(e) {
987
+ return /* @__PURE__ */ o(
1024
988
  "section",
1025
989
  {
1026
990
  ...e.attributes,
@@ -1040,7 +1004,7 @@ function xt(e) {
1040
1004
  }
1041
1005
  );
1042
1006
  }
1043
- const yt = {
1007
+ const vt = {
1044
1008
  name: "Core:Button",
1045
1009
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1046
1010
  defaultStyles: {
@@ -1073,7 +1037,7 @@ const yt = {
1073
1037
  }],
1074
1038
  static: !0,
1075
1039
  noWrap: !0
1076
- }, St = {
1040
+ }, pt = {
1077
1041
  // TODO: ways to statically preprocess JSON for references, functions, etc
1078
1042
  name: "Columns",
1079
1043
  isRSC: !0,
@@ -1252,7 +1216,7 @@ const yt = {
1252
1216
  });
1253
1217
  }
1254
1218
  const n = e.get("columns");
1255
- Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((o) => !o.get("width")) || n.reduce((c, s) => c + s.get("width"), 0) !== 100) && t();
1219
+ Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((l) => !l.get("width")) || n.reduce((c, s) => c + s.get("width"), 0) !== 100) && t();
1256
1220
  }
1257
1221
  }, {
1258
1222
  name: "space",
@@ -1274,7 +1238,7 @@ const yt = {
1274
1238
  helperText: "When stacking columns for mobile devices, reverse the ordering",
1275
1239
  advanced: !0
1276
1240
  }]
1277
- }, vt = {
1241
+ }, kt = {
1278
1242
  name: "Custom Code",
1279
1243
  static: !0,
1280
1244
  requiredPermissions: ["editCode"],
@@ -1297,8 +1261,8 @@ const yt = {
1297
1261
  advanced: !0
1298
1262
  }]
1299
1263
  };
1300
- function pt(e) {
1301
- const t = te(null), [n, i] = S(() => []), [a, o] = S(() => []);
1264
+ function Ct(e) {
1265
+ const t = X(null), [n, i] = S(() => []), [a, l] = S(() => []);
1302
1266
  return E(() => {
1303
1267
  var c;
1304
1268
  if (!((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
@@ -1310,8 +1274,8 @@ function pt(e) {
1310
1274
  if (n.includes(d.src))
1311
1275
  continue;
1312
1276
  n.push(d.src);
1313
- const u = document.createElement("script");
1314
- u.async = !0, u.src = d.src, document.head.appendChild(u);
1277
+ const m = document.createElement("script");
1278
+ m.async = !0, m.src = d.src, document.head.appendChild(m);
1315
1279
  } else if (!d.type || [
1316
1280
  "text/javascript",
1317
1281
  "application/javascript",
@@ -1321,12 +1285,12 @@ function pt(e) {
1321
1285
  continue;
1322
1286
  try {
1323
1287
  a.push(d.innerText), new Function(d.innerText)();
1324
- } catch (u) {
1325
- console.warn("`CustomCode`: Error running script:", u);
1288
+ } catch (m) {
1289
+ console.warn("`CustomCode`: Error running script:", m);
1326
1290
  }
1327
1291
  }
1328
1292
  }
1329
- }, []), /* @__PURE__ */ l(
1293
+ }, []), /* @__PURE__ */ o(
1330
1294
  "div",
1331
1295
  {
1332
1296
  ref: t,
@@ -1335,7 +1299,7 @@ function pt(e) {
1335
1299
  }
1336
1300
  );
1337
1301
  }
1338
- const kt = {
1302
+ const wt = {
1339
1303
  name: "Embed",
1340
1304
  static: !0,
1341
1305
  inputs: [{
@@ -1360,22 +1324,22 @@ const kt = {
1360
1324
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1361
1325
  hideFromUI: !0
1362
1326
  }]
1363
- }, Ct = ["text/javascript", "application/javascript", "application/ecmascript"], wt = (e) => Ct.includes(e.type);
1364
- function It(e) {
1365
- const t = te(null), [n, i] = S(() => []), [a, o] = S(() => []), [r, c] = S(() => !1);
1327
+ }, It = ["text/javascript", "application/javascript", "application/ecmascript"], Tt = (e) => It.includes(e.type);
1328
+ function Rt(e) {
1329
+ const t = X(null), [n, i] = S(() => []), [a, l] = S(() => []), [r, c] = S(() => !1);
1366
1330
  function s() {
1367
1331
  if (!t.current || !t.current.getElementsByTagName)
1368
1332
  return;
1369
1333
  const d = t.current.getElementsByTagName("script");
1370
- for (let u = 0; u < d.length; u++) {
1371
- const b = d[u];
1372
- if (b.src && !n.includes(b.src)) {
1373
- n.push(b.src);
1334
+ for (let m = 0; m < d.length; m++) {
1335
+ const g = d[m];
1336
+ if (g.src && !n.includes(g.src)) {
1337
+ n.push(g.src);
1374
1338
  const v = document.createElement("script");
1375
- v.async = !0, v.src = b.src, document.head.appendChild(v);
1376
- } else if (wt(b) && !a.includes(b.innerText))
1339
+ v.async = !0, v.src = g.src, document.head.appendChild(v);
1340
+ } else if (Tt(g) && !a.includes(g.innerText))
1377
1341
  try {
1378
- a.push(b.innerText), new Function(b.innerText)();
1342
+ a.push(g.innerText), new Function(g.innerText)();
1379
1343
  } catch (v) {
1380
1344
  console.warn("`Embed`: Error running script:", v);
1381
1345
  }
@@ -1383,7 +1347,7 @@ function It(e) {
1383
1347
  }
1384
1348
  return E(() => {
1385
1349
  t.current && !r && (c(!0), s());
1386
- }, [t.current, r]), /* @__PURE__ */ l(
1350
+ }, [t.current, r]), /* @__PURE__ */ o(
1387
1351
  "div",
1388
1352
  {
1389
1353
  className: "builder-embed",
@@ -1392,13 +1356,13 @@ function It(e) {
1392
1356
  }
1393
1357
  );
1394
1358
  }
1395
- const Tt = {
1359
+ const Et = {
1396
1360
  name: "Fragment",
1397
1361
  static: !0,
1398
1362
  hidden: !0,
1399
1363
  canHaveChildren: !0,
1400
1364
  noWrap: !0
1401
- }, Rt = {
1365
+ }, Pt = {
1402
1366
  name: "Image",
1403
1367
  static: !0,
1404
1368
  image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
@@ -1420,24 +1384,24 @@ const Tt = {
1420
1384
  e.delete("srcset"), e.delete("noWebp");
1421
1385
  function n(r, c = 6e4) {
1422
1386
  return new Promise((s, d) => {
1423
- const u = document.createElement("img");
1424
- let b = !1;
1425
- u.onload = () => {
1426
- b = !0, s(u);
1427
- }, u.addEventListener("error", (v) => {
1387
+ const m = document.createElement("img");
1388
+ let g = !1;
1389
+ m.onload = () => {
1390
+ g = !0, s(m);
1391
+ }, m.addEventListener("error", (v) => {
1428
1392
  console.warn("Image load failed", v.error), d(v.error);
1429
- }), u.src = r, setTimeout(() => {
1430
- b || d(new Error("Image load timed out"));
1393
+ }), m.src = r, setTimeout(() => {
1394
+ g || d(new Error("Image load timed out"));
1431
1395
  }, c);
1432
1396
  });
1433
1397
  }
1434
1398
  function i(r) {
1435
1399
  return Math.round(r * 1e3) / 1e3;
1436
1400
  }
1437
- const a = e.get("image"), o = e.get("aspectRatio");
1401
+ const a = e.get("image"), l = e.get("aspectRatio");
1438
1402
  if (fetch(a).then((r) => r.blob()).then((r) => {
1439
1403
  r.type.includes("svg") && e.set("noWebp", !0);
1440
- }), a && (!o || o === 0.7041))
1404
+ }), a && (!l || l === 0.7041))
1441
1405
  return n(a).then((r) => {
1442
1406
  const c = e.get("aspectRatio");
1443
1407
  e.get("image") === a && (!c || c === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
@@ -1498,7 +1462,7 @@ const Tt = {
1498
1462
  advanced: !0,
1499
1463
  defaultValue: 0.7041
1500
1464
  }]
1501
- }, Et = {
1465
+ }, Bt = {
1502
1466
  // friendlyName?
1503
1467
  name: "Raw:Img",
1504
1468
  hideFromInsertMenu: !0,
@@ -1513,8 +1477,8 @@ const Tt = {
1513
1477
  noWrap: !0,
1514
1478
  static: !0
1515
1479
  };
1516
- function Pt(e) {
1517
- return /* @__PURE__ */ l(
1480
+ function Wt(e) {
1481
+ return /* @__PURE__ */ o(
1518
1482
  "img",
1519
1483
  {
1520
1484
  style: {
@@ -1528,7 +1492,7 @@ function Pt(e) {
1528
1492
  V() && e.imgSrc || "default-key"
1529
1493
  );
1530
1494
  }
1531
- const Bt = {
1495
+ const At = {
1532
1496
  name: "Core:Section",
1533
1497
  static: !0,
1534
1498
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1567,7 +1531,7 @@ const Bt = {
1567
1531
  }
1568
1532
  }
1569
1533
  }]
1570
- }, Wt = {
1534
+ }, Vt = {
1571
1535
  name: "Slot",
1572
1536
  isRSC: !0,
1573
1537
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1581,9 +1545,9 @@ const Bt = {
1581
1545
  defaultValue: "children"
1582
1546
  }]
1583
1547
  };
1584
- function At(e) {
1548
+ function $t(e) {
1585
1549
  var t, n, i;
1586
- return /* @__PURE__ */ l(
1550
+ return /* @__PURE__ */ o(
1587
1551
  "div",
1588
1552
  {
1589
1553
  style: {
@@ -1592,8 +1556,8 @@ function At(e) {
1592
1556
  ...!((t = e.builderContext.context) != null && t.symbolId) && {
1593
1557
  "builder-slot": e.name
1594
1558
  },
1595
- children: /* @__PURE__ */ l(
1596
- q,
1559
+ children: /* @__PURE__ */ o(
1560
+ z,
1597
1561
  {
1598
1562
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
1599
1563
  path: `symbol.data.${e.name}`,
@@ -1604,7 +1568,7 @@ function At(e) {
1604
1568
  }
1605
1569
  );
1606
1570
  }
1607
- const Vt = {
1571
+ const Nt = {
1608
1572
  name: "Symbol",
1609
1573
  noWrap: !0,
1610
1574
  static: !0,
@@ -1637,7 +1601,7 @@ const Vt = {
1637
1601
  hideFromUI: !0,
1638
1602
  type: "boolean"
1639
1603
  }]
1640
- }, $t = {
1604
+ }, Ft = {
1641
1605
  name: "Text",
1642
1606
  static: !0,
1643
1607
  isRSC: !0,
@@ -1656,9 +1620,9 @@ const Vt = {
1656
1620
  textAlign: "center"
1657
1621
  }
1658
1622
  };
1659
- function Nt(e) {
1623
+ function _t(e) {
1660
1624
  var t;
1661
- return /* @__PURE__ */ l(
1625
+ return /* @__PURE__ */ o(
1662
1626
  "div",
1663
1627
  {
1664
1628
  className: "builder-text",
@@ -1669,7 +1633,7 @@ function Nt(e) {
1669
1633
  }
1670
1634
  );
1671
1635
  }
1672
- const Ft = {
1636
+ const Lt = {
1673
1637
  name: "Video",
1674
1638
  canHaveChildren: !0,
1675
1639
  defaultStyles: {
@@ -1751,8 +1715,8 @@ const Ft = {
1751
1715
  advanced: !0
1752
1716
  }]
1753
1717
  };
1754
- function _t(e) {
1755
- var i, a, o, r, c, s, d;
1718
+ function jt(e) {
1719
+ var i, a, l, r, c, s, d;
1756
1720
  function t() {
1757
1721
  return {
1758
1722
  ...e.autoPlay === !0 ? {
@@ -1777,14 +1741,14 @@ function _t(e) {
1777
1741
  ...t()
1778
1742
  };
1779
1743
  }
1780
- return /* @__PURE__ */ P(
1744
+ return /* @__PURE__ */ B(
1781
1745
  "div",
1782
1746
  {
1783
1747
  style: {
1784
1748
  position: "relative"
1785
1749
  },
1786
1750
  children: [
1787
- /* @__PURE__ */ l(
1751
+ /* @__PURE__ */ o(
1788
1752
  "video",
1789
1753
  {
1790
1754
  className: "builder-video",
@@ -1806,10 +1770,10 @@ function _t(e) {
1806
1770
  },
1807
1771
  src: e.video || "no-src",
1808
1772
  poster: e.posterImage,
1809
- children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
1773
+ children: e.lazyLoad ? null : /* @__PURE__ */ o("source", { type: "video/mp4", src: e.video })
1810
1774
  }
1811
1775
  ),
1812
- e.aspectRatio && !(e.fitContent && ((o = (a = e.builderBlock) == null ? void 0 : a.children) != null && o.length)) ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
1776
+ e.aspectRatio && !(e.fitContent && ((l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length)) ? /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(
1813
1777
  "div",
1814
1778
  {
1815
1779
  style: {
@@ -1820,7 +1784,7 @@ function _t(e) {
1820
1784
  }
1821
1785
  }
1822
1786
  ) }) : null,
1823
- (c = (r = e.builderBlock) == null ? void 0 : r.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
1787
+ (c = (r = e.builderBlock) == null ? void 0 : r.children) != null && c.length && e.fitContent ? /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(
1824
1788
  "div",
1825
1789
  {
1826
1790
  style: {
@@ -1831,7 +1795,7 @@ function _t(e) {
1831
1795
  children: e.children
1832
1796
  }
1833
1797
  ) }) : null,
1834
- (d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
1798
+ (d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(
1835
1799
  "div",
1836
1800
  {
1837
1801
  style: {
@@ -1852,43 +1816,43 @@ function _t(e) {
1852
1816
  }
1853
1817
  );
1854
1818
  }
1855
- const ye = () => [{
1856
- component: Ue,
1857
- ...yt
1858
- }, {
1859
- component: mt,
1860
- ...St
1861
- }, {
1862
- component: pt,
1819
+ const ge = () => [{
1820
+ component: Me,
1863
1821
  ...vt
1864
1822
  }, {
1865
- component: It,
1866
- ...kt
1823
+ component: ht,
1824
+ ...pt
1867
1825
  }, {
1868
- component: ft,
1869
- ...Tt
1826
+ component: Ct,
1827
+ ...kt
1870
1828
  }, {
1871
- component: bt,
1872
- ...Rt
1829
+ component: Rt,
1830
+ ...wt
1873
1831
  }, {
1874
- component: Pt,
1832
+ component: gt,
1875
1833
  ...Et
1876
1834
  }, {
1877
- component: xt,
1835
+ component: yt,
1836
+ ...Pt
1837
+ }, {
1838
+ component: Wt,
1878
1839
  ...Bt
1879
1840
  }, {
1880
- component: rn,
1881
- ...Vt
1841
+ component: St,
1842
+ ...At
1882
1843
  }, {
1883
- component: Nt,
1884
- ...$t
1844
+ component: sn,
1845
+ ...Nt
1885
1846
  }, {
1886
1847
  component: _t,
1887
1848
  ...Ft
1888
1849
  }, {
1889
- component: At,
1890
- ...Wt
1891
- }], Lt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
1850
+ component: jt,
1851
+ ...Lt
1852
+ }, {
1853
+ component: $t,
1854
+ ...Vt
1855
+ }], Mt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
1892
1856
  function getAndSetVariantId() {
1893
1857
  function setCookie(name, value, days) {
1894
1858
  let expires = '';
@@ -1944,7 +1908,7 @@ const ye = () => [{
1944
1908
  }).join('');
1945
1909
  styleEl.innerHTML = newStyleStr;
1946
1910
  }
1947
- }`, jt = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
1911
+ }`, Ut = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
1948
1912
  if (!navigator.cookieEnabled) {
1949
1913
  return;
1950
1914
  }
@@ -1978,27 +1942,27 @@ const ye = () => [{
1978
1942
  thisScriptEl?.remove();
1979
1943
  }
1980
1944
  return;
1981
- }`, Be = "builderIoAbTest", We = "builderIoRenderContent", M = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
1945
+ }`, Ee = "builderIoAbTest", Pe = "builderIoRenderContent", M = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
1982
1946
  ...t,
1983
1947
  testVariationId: t.id,
1984
1948
  id: e == null ? void 0 : e.id
1985
- })), Mt = ({
1949
+ })), Dt = ({
1986
1950
  canTrack: e,
1987
1951
  content: t
1988
- }) => !(!(M(t).length > 0) || !e || $()), Ut = (e) => e === "react" || e === "reactNative", Ae = Ut(L), Dt = () => `
1989
- window.${Be} = ${Lt}
1990
- window.${We} = ${jt}
1991
- `, Ot = (e, t) => `
1992
- window.${Be}(
1993
- "${t}",${JSON.stringify(e)}, ${Ae}
1994
- )`, Kt = ({
1952
+ }) => !(!(M(t).length > 0) || !e || $()), Ht = (e) => e === "react" || e === "reactNative", Be = Ht(L), Ot = () => `
1953
+ window.${Ee} = ${Mt}
1954
+ window.${Pe} = ${Ut}
1955
+ `, Kt = (e, t) => `
1956
+ window.${Ee}(
1957
+ "${t}",${JSON.stringify(e)}, ${Be}
1958
+ )`, zt = ({
1995
1959
  contentId: e,
1996
1960
  variationId: t
1997
- }) => `window.${We}(
1998
- "${t}", "${e}", ${Ae}
1961
+ }) => `window.${Pe}(
1962
+ "${t}", "${e}", ${Be}
1999
1963
  )`;
2000
- function ee(e) {
2001
- return /* @__PURE__ */ l(
1964
+ function J(e) {
1965
+ return /* @__PURE__ */ o(
2002
1966
  "script",
2003
1967
  {
2004
1968
  dangerouslySetInnerHTML: { __html: e.scriptStr },
@@ -2006,10 +1970,15 @@ function ee(e) {
2006
1970
  }
2007
1971
  );
2008
1972
  }
2009
- function Se(e) {
1973
+ const qt = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
1974
+ function We(e, t) {
1975
+ const n = new URL(t.origin), i = n.hostname;
1976
+ return (e || qt).findIndex((a) => a.startsWith("*.") ? i.endsWith(a.slice(1)) : a === i) > -1;
1977
+ }
1978
+ function be(e) {
2010
1979
  return Math.round(e * 1e3) / 1e3;
2011
1980
  }
2012
- const Ht = (e, t, n = !0) => {
1981
+ const Yt = (e, t, n = !0) => {
2013
1982
  if (!(e instanceof HTMLElement))
2014
1983
  return null;
2015
1984
  let i = n ? e : e.parentElement;
@@ -2020,36 +1989,36 @@ const Ht = (e, t, n = !0) => {
2020
1989
  return i;
2021
1990
  } while (i = i.parentElement);
2022
1991
  return null;
2023
- }, zt = (e) => Ht(e, (t) => {
1992
+ }, Qt = (e) => Yt(e, (t) => {
2024
1993
  const n = t.getAttribute("builder-id") || t.id;
2025
1994
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
2026
- }), ve = ({
1995
+ }), xe = ({
2027
1996
  event: e,
2028
1997
  target: t
2029
1998
  }) => {
2030
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, o = Se(i / n.width), r = Se(a / n.height);
1999
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, l = be(i / n.width), r = be(a / n.height);
2031
2000
  return {
2032
- x: o,
2001
+ x: l,
2033
2002
  y: r
2034
2003
  };
2035
- }, qt = (e) => {
2036
- const t = e.target, n = t && zt(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2004
+ }, Gt = (e) => {
2005
+ const t = e.target, n = t && Qt(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2037
2006
  return {
2038
2007
  targetBuilderElement: i || void 0,
2039
2008
  metadata: {
2040
- targetOffset: t ? ve({
2009
+ targetOffset: t ? xe({
2041
2010
  event: e,
2042
2011
  target: t
2043
2012
  }) : void 0,
2044
- builderTargetOffset: n ? ve({
2013
+ builderTargetOffset: n ? xe({
2045
2014
  event: e,
2046
2015
  target: n
2047
2016
  }) : void 0,
2048
2017
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
2049
2018
  }
2050
2019
  };
2051
- }, Yt = "0.12.1", Qt = () => {
2052
- Fe("insertMenu", {
2020
+ }, Jt = "0.12.3", Xt = () => {
2021
+ Ne("insertMenu", {
2053
2022
  name: "_default",
2054
2023
  default: !0,
2055
2024
  items: [{
@@ -2071,14 +2040,14 @@ const Ht = (e, t, n = !0) => {
2071
2040
  }]
2072
2041
  });
2073
2042
  };
2074
- let pe = !1;
2075
- const Gt = (e = {}) => {
2043
+ let ye = !1;
2044
+ const Zt = (e = {}) => {
2076
2045
  var t, n;
2077
- pe || (pe = !0, $() && ((t = window.parent) == null || t.postMessage({
2046
+ ye || (ye = !0, $() && ((t = window.parent) == null || t.postMessage({
2078
2047
  type: "builder.sdkInfo",
2079
2048
  data: {
2080
2049
  target: L,
2081
- version: Yt,
2050
+ version: Jt,
2082
2051
  supportsPatchUpdates: !1,
2083
2052
  // Supports builder-model="..." attribute which is needed to
2084
2053
  // scope our '+ add block' button styling
@@ -2090,40 +2059,43 @@ const Gt = (e = {}) => {
2090
2059
  data: {
2091
2060
  options: e
2092
2061
  }
2093
- }, "*"), window.addEventListener("message", ({
2094
- data: i
2095
- }) => {
2096
- var a, o;
2097
- if (i != null && i.type)
2098
- switch (i.type) {
2062
+ }, "*"), window.addEventListener("message", (i) => {
2063
+ var l, r;
2064
+ if (!We(e.trustedHosts, i))
2065
+ return;
2066
+ const {
2067
+ data: a
2068
+ } = i;
2069
+ if (a != null && a.type)
2070
+ switch (a.type) {
2099
2071
  case "builder.evaluate": {
2100
- const r = i.data.text, c = i.data.arguments || [], s = i.data.id, d = new Function(r);
2101
- let u, b = null;
2072
+ const c = a.data.text, s = a.data.arguments || [], d = a.data.id, m = new Function(c);
2073
+ let g, v = null;
2102
2074
  try {
2103
- u = d.apply(null, c);
2104
- } catch (v) {
2105
- b = v;
2075
+ g = m.apply(null, s);
2076
+ } catch (y) {
2077
+ v = y;
2106
2078
  }
2107
- b ? (a = window.parent) == null || a.postMessage({
2079
+ v ? (l = window.parent) == null || l.postMessage({
2108
2080
  type: "builder.evaluateError",
2109
2081
  data: {
2110
- id: s,
2111
- error: b.message
2082
+ id: d,
2083
+ error: v.message
2112
2084
  }
2113
- }, "*") : u && typeof u.then == "function" ? u.then((v) => {
2114
- var y;
2115
- (y = window.parent) == null || y.postMessage({
2085
+ }, "*") : g && typeof g.then == "function" ? g.then((y) => {
2086
+ var k;
2087
+ (k = window.parent) == null || k.postMessage({
2116
2088
  type: "builder.evaluateResult",
2117
2089
  data: {
2118
- id: s,
2119
- result: v
2090
+ id: d,
2091
+ result: y
2120
2092
  }
2121
2093
  }, "*");
2122
- }).catch(console.error) : (o = window.parent) == null || o.postMessage({
2094
+ }).catch(console.error) : (r = window.parent) == null || r.postMessage({
2123
2095
  type: "builder.evaluateResult",
2124
2096
  data: {
2125
- result: u,
2126
- id: s
2097
+ result: g,
2098
+ id: d
2127
2099
  }
2128
2100
  }, "*");
2129
2101
  break;
@@ -2131,38 +2103,38 @@ const Gt = (e = {}) => {
2131
2103
  }
2132
2104
  })));
2133
2105
  };
2134
- function Jt(e) {
2135
- var F, Y, ae, oe, re, le, ce;
2136
- const t = te(null), [n, i] = S(() => 0);
2106
+ function en(e) {
2107
+ var F, q, ne, ie, ae, oe, re;
2108
+ const t = X(null), [n, i] = S(() => 0);
2137
2109
  S(() => !0);
2138
- function a(m) {
2139
- var g, x;
2110
+ function a(u) {
2111
+ var b, x;
2140
2112
  const f = {
2141
2113
  ...e.builderContextSignal.rootState,
2142
- ...m
2114
+ ...u
2143
2115
  };
2144
- e.builderContextSignal.rootSetState ? (x = (g = e.builderContextSignal).rootSetState) == null || x.call(g, f) : e.setBuilderContextSignal((p) => ({
2116
+ e.builderContextSignal.rootSetState ? (x = (b = e.builderContextSignal).rootSetState) == null || x.call(b, f) : e.setBuilderContextSignal((p) => ({
2145
2117
  ...p,
2146
2118
  rootState: f
2147
2119
  }));
2148
2120
  }
2149
- function o(m) {
2150
- var g, x, p, T, j;
2121
+ function l(u) {
2122
+ var b, x, p, T, j;
2151
2123
  const f = {
2152
2124
  ...e.builderContextSignal.content,
2153
- ...m,
2125
+ ...u,
2154
2126
  data: {
2155
- ...(g = e.builderContextSignal.content) == null ? void 0 : g.data,
2156
- ...m == null ? void 0 : m.data
2127
+ ...(b = e.builderContextSignal.content) == null ? void 0 : b.data,
2128
+ ...u == null ? void 0 : u.data
2157
2129
  },
2158
2130
  meta: {
2159
2131
  ...(x = e.builderContextSignal.content) == null ? void 0 : x.meta,
2160
- ...m == null ? void 0 : m.meta,
2161
- breakpoints: ((p = m == null ? void 0 : m.meta) == null ? void 0 : p.breakpoints) || ((j = (T = e.builderContextSignal.content) == null ? void 0 : T.meta) == null ? void 0 : j.breakpoints)
2132
+ ...u == null ? void 0 : u.meta,
2133
+ breakpoints: ((p = u == null ? void 0 : u.meta) == null ? void 0 : p.breakpoints) || ((j = (T = e.builderContextSignal.content) == null ? void 0 : T.meta) == null ? void 0 : j.breakpoints)
2162
2134
  }
2163
2135
  };
2164
- e.setBuilderContextSignal(($e) => ({
2165
- ...$e,
2136
+ e.setBuilderContextSignal((Ve) => ({
2137
+ ...Ve,
2166
2138
  content: f
2167
2139
  }));
2168
2140
  }
@@ -2172,16 +2144,18 @@ function Jt(e) {
2172
2144
  ), [s, d] = S(
2173
2145
  () => e.contentWrapper || "div"
2174
2146
  );
2175
- function u(m) {
2176
- var g;
2177
- const { data: f } = m;
2147
+ function m(u) {
2148
+ var b;
2149
+ if (!We(e.trustedHosts, u))
2150
+ return;
2151
+ const { data: f } = u;
2178
2152
  if (f)
2179
2153
  switch (f.type) {
2180
2154
  case "builder.configureSdk": {
2181
2155
  const x = f.data, { breakpoints: p, contentId: T } = x;
2182
- if (!T || T !== ((g = e.builderContextSignal.content) == null ? void 0 : g.id))
2156
+ if (!T || T !== ((b = e.builderContextSignal.content) == null ? void 0 : b.id))
2183
2157
  return;
2184
- p && o({
2158
+ p && l({
2185
2159
  meta: {
2186
2160
  breakpoints: p
2187
2161
  }
@@ -2190,44 +2164,44 @@ function Jt(e) {
2190
2164
  }
2191
2165
  case "builder.contentUpdate": {
2192
2166
  const x = f.data, p = x.key || x.alias || x.entry || x.modelName, T = x.data;
2193
- p === e.model && (o(T), i(n + 1));
2167
+ p === e.model && (l(T), i(n + 1));
2194
2168
  break;
2195
2169
  }
2196
2170
  }
2197
2171
  }
2198
- function b() {
2199
- var f, g;
2200
- const m = (g = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : g.jsCode;
2201
- m && _({
2202
- code: m,
2172
+ function g() {
2173
+ var f, b;
2174
+ const u = (b = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : b.jsCode;
2175
+ u && _({
2176
+ code: u,
2203
2177
  context: e.context || {},
2204
2178
  localState: void 0,
2205
2179
  rootState: e.builderContextSignal.rootState,
2206
2180
  rootSetState: e.builderContextSignal.rootSetState
2207
2181
  });
2208
2182
  }
2209
- const [v, y] = S(() => ({})), [C, k] = S(() => !1);
2210
- function R(m) {
2211
- var f, g;
2183
+ const [v, y] = S(() => ({})), [k, C] = S(() => !1);
2184
+ function R(u) {
2185
+ var f, b;
2212
2186
  if (e.builderContextSignal.content) {
2213
- const x = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, p = (g = e.builderContextSignal.content) == null ? void 0 : g.id;
2214
- de({
2187
+ const x = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, p = (b = e.builderContextSignal.content) == null ? void 0 : b.id;
2188
+ ce({
2215
2189
  type: "click",
2216
2190
  canTrack: D(e.canTrack),
2217
2191
  contentId: p,
2218
2192
  apiKey: e.apiKey,
2219
2193
  variationId: x !== p ? x : void 0,
2220
- ...qt(m),
2221
- unique: !C
2194
+ ...Gt(u),
2195
+ unique: !k
2222
2196
  });
2223
2197
  }
2224
- C || k(!0);
2198
+ k || C(!0);
2225
2199
  }
2226
- function B(m) {
2227
- return m.replace(
2200
+ function P(u) {
2201
+ return u.replace(
2228
2202
  /{{([^}]+)}}/g,
2229
- (f, g) => _({
2230
- code: g,
2203
+ (f, b) => _({
2204
+ code: b,
2231
2205
  context: e.context || {},
2232
2206
  localState: void 0,
2233
2207
  rootState: e.builderContextSignal.rootState,
@@ -2235,24 +2209,24 @@ function Jt(e) {
2235
2209
  })
2236
2210
  );
2237
2211
  }
2238
- function w({ url: m, key: f }) {
2239
- je(m).then((g) => g.json()).then((g) => {
2212
+ function w({ url: u, key: f }) {
2213
+ Le(u).then((b) => b.json()).then((b) => {
2240
2214
  var p, T;
2241
2215
  const x = {
2242
2216
  ...e.builderContextSignal.rootState,
2243
- [f]: g
2217
+ [f]: b
2244
2218
  };
2245
2219
  (T = (p = e.builderContextSignal).rootSetState) == null || T.call(p, x), v[f] = !0;
2246
- }).catch((g) => {
2247
- console.error("error fetching dynamic data", m, g);
2220
+ }).catch((b) => {
2221
+ console.error("error fetching dynamic data", u, b);
2248
2222
  });
2249
2223
  }
2250
2224
  function I() {
2251
- var f, g, x;
2252
- const m = (x = (g = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : g.httpRequests) != null ? x : {};
2253
- Object.entries(m).forEach(([p, T]) => {
2225
+ var f, b, x;
2226
+ const u = (x = (b = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : b.httpRequests) != null ? x : {};
2227
+ Object.entries(u).forEach(([p, T]) => {
2254
2228
  if (T && (!v[p] || V())) {
2255
- const j = B(T);
2229
+ const j = P(T);
2256
2230
  w({
2257
2231
  url: j,
2258
2232
  key: p
@@ -2266,7 +2240,7 @@ function Jt(e) {
2266
2240
  "builder:component:stateChange",
2267
2241
  {
2268
2242
  detail: {
2269
- state: ne(e.builderContextSignal.rootState),
2243
+ state: Z(e.builderContextSignal.rootState),
2270
2244
  ref: {
2271
2245
  name: e.model
2272
2246
  }
@@ -2275,8 +2249,8 @@ function Jt(e) {
2275
2249
  )
2276
2250
  );
2277
2251
  }
2278
- function A(m) {
2279
- i(n + 1), window.addEventListener("message", u), Qt(), Gt({
2252
+ function A(u) {
2253
+ i(n + 1), window.addEventListener("message", m), Xt(), Zt({
2280
2254
  ...e.locale ? {
2281
2255
  locale: e.locale
2282
2256
  } : {},
@@ -2285,33 +2259,36 @@ function Jt(e) {
2285
2259
  } : {},
2286
2260
  ...e.enrich ? {
2287
2261
  enrich: e.enrich
2262
+ } : {},
2263
+ ...e.trustedHosts ? {
2264
+ trustedHosts: e.trustedHosts
2288
2265
  } : {}
2289
2266
  }), Object.values(
2290
2267
  e.builderContextSignal.componentInfos
2291
2268
  ).forEach((f) => {
2292
2269
  var x;
2293
- const g = Le(f);
2294
- (x = window.parent) == null || x.postMessage(g, "*");
2270
+ const b = _e(f);
2271
+ (x = window.parent) == null || x.postMessage(b, "*");
2295
2272
  }), window.addEventListener(
2296
2273
  "builder:component:stateChangeListenerActivated",
2297
2274
  W
2298
2275
  );
2299
2276
  }
2300
- function N(m) {
2301
- const f = new URL(location.href).searchParams, g = f.get("builder.preview"), x = f.get(
2302
- `builder.preview.${g}`
2277
+ function N(u) {
2278
+ const f = new URL(location.href).searchParams, b = f.get("builder.preview"), x = f.get(
2279
+ `builder.preview.${b}`
2303
2280
  ), p = f.get("apiKey") || f.get("builder.space");
2304
- g === e.model && p === e.apiKey && (!e.content || x === e.content.id) && Ie({
2281
+ b === e.model && p === e.apiKey && (!e.content || x === e.content.id) && ke({
2305
2282
  model: e.model,
2306
2283
  apiKey: e.apiKey,
2307
2284
  apiVersion: e.builderContextSignal.apiVersion
2308
2285
  }).then((T) => {
2309
- T && o(T);
2286
+ T && l(T);
2310
2287
  });
2311
2288
  }
2312
2289
  return E(() => {
2313
- var m;
2314
- return (m = t.current) == null || m.addEventListener(
2290
+ var u;
2291
+ return (u = t.current) == null || u.addEventListener(
2315
2292
  "initeditingbldr",
2316
2293
  A
2317
2294
  ), () => {
@@ -2322,8 +2299,8 @@ function Jt(e) {
2322
2299
  );
2323
2300
  };
2324
2301
  }, []), E(() => {
2325
- var m;
2326
- return (m = t.current) == null || m.addEventListener(
2302
+ var u;
2303
+ return (u = t.current) == null || u.addEventListener(
2327
2304
  "initpreviewingbldr",
2328
2305
  N
2329
2306
  ), () => {
@@ -2334,11 +2311,11 @@ function Jt(e) {
2334
2311
  );
2335
2312
  };
2336
2313
  }, []), E(() => {
2337
- var m, f;
2314
+ var u, f;
2338
2315
  if ($()) {
2339
2316
  if (V() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && D(e.canTrack)) {
2340
- const x = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId, p = (f = e.builderContextSignal.content) == null ? void 0 : f.id, T = e.apiKey;
2341
- de({
2317
+ const x = (u = e.builderContextSignal.content) == null ? void 0 : u.testVariationId, p = (f = e.builderContextSignal.content) == null ? void 0 : f.id, T = e.apiKey;
2318
+ ce({
2342
2319
  type: "impression",
2343
2320
  canTrack: !0,
2344
2321
  contentId: p,
@@ -2346,23 +2323,23 @@ function Jt(e) {
2346
2323
  variationId: x !== p ? x : void 0
2347
2324
  });
2348
2325
  }
2349
- _e() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
2326
+ Fe() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
2350
2327
  }
2351
2328
  }, []), E(() => {
2352
2329
  e.apiKey || U.error(
2353
2330
  "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
2354
- ), b(), I(), W();
2331
+ ), g(), I(), W();
2355
2332
  }, []), E(() => {
2356
- e.content && o(e.content);
2333
+ e.content && l(e.content);
2357
2334
  }, [e.content]), E(() => {
2358
2335
  }, [r]), E(() => {
2359
- b();
2336
+ g();
2360
2337
  }, [
2361
- (Y = (F = e.builderContextSignal.content) == null ? void 0 : F.data) == null ? void 0 : Y.jsCode,
2338
+ (q = (F = e.builderContextSignal.content) == null ? void 0 : F.data) == null ? void 0 : q.jsCode,
2362
2339
  e.builderContextSignal.rootState
2363
2340
  ]), E(() => {
2364
2341
  I();
2365
- }, [(oe = (ae = e.builderContextSignal.content) == null ? void 0 : ae.data) == null ? void 0 : oe.httpRequests]), E(() => {
2342
+ }, [(ie = (ne = e.builderContextSignal.content) == null ? void 0 : ne.data) == null ? void 0 : ie.httpRequests]), E(() => {
2366
2343
  W();
2367
2344
  }, [e.builderContextSignal.rootState]), E(() => {
2368
2345
  e.data && a(e.data);
@@ -2371,31 +2348,31 @@ function Jt(e) {
2371
2348
  locale: e.locale
2372
2349
  });
2373
2350
  }, [e.locale]), E(() => () => {
2374
- $() && (window.removeEventListener("message", u), window.removeEventListener(
2351
+ $() && (window.removeEventListener("message", m), window.removeEventListener(
2375
2352
  "builder:component:stateChangeListenerActivated",
2376
2353
  W
2377
2354
  ));
2378
- }, []), /* @__PURE__ */ l(ie.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ we(
2355
+ }, []), /* @__PURE__ */ o(ee.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ o(h, { children: /* @__PURE__ */ pe(
2379
2356
  s,
2380
2357
  {
2381
2358
  key: n,
2382
2359
  ref: t,
2383
- onClick: (m) => R(m),
2384
- "builder-content-id": (re = e.builderContextSignal.content) == null ? void 0 : re.id,
2360
+ onClick: (u) => R(u),
2361
+ "builder-content-id": (ae = e.builderContextSignal.content) == null ? void 0 : ae.id,
2385
2362
  "builder-model": e.model,
2386
2363
  ...e.showContent ? {} : {
2387
2364
  hidden: !0,
2388
2365
  "aria-hidden": !0
2389
2366
  },
2390
2367
  ...e.contentWrapperProps,
2391
- className: `variant-${((le = e.content) == null ? void 0 : le.testVariationId) || ((ce = e.content) == null ? void 0 : ce.id)}`
2368
+ className: `variant-${((oe = e.content) == null ? void 0 : oe.testVariationId) || ((re = e.content) == null ? void 0 : re.id)}`
2392
2369
  },
2393
2370
  e.children
2394
2371
  ) }) : null });
2395
2372
  }
2396
- const Xt = (e) => {
2397
- var o, r;
2398
- const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (o = e == null ? void 0 : e.files) == null ? void 0 : o.regular;
2373
+ const tn = (e) => {
2374
+ var l, r;
2375
+ const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (l = e == null ? void 0 : e.files) == null ? void 0 : l.regular;
2399
2376
  let a = "";
2400
2377
  if (i && t && n && (a += `
2401
2378
  @font-face {
@@ -2419,26 +2396,30 @@ font-weight: ${c};
2419
2396
  `.trim());
2420
2397
  }
2421
2398
  return a;
2422
- }, Zt = ({
2399
+ }, nn = ({
2423
2400
  customFonts: e
2424
2401
  }) => {
2425
2402
  var t;
2426
- return ((t = e == null ? void 0 : e.map((n) => Xt(n))) == null ? void 0 : t.join(" ")) || "";
2427
- }, en = ({
2403
+ return ((t = e == null ? void 0 : e.map((n) => tn(n))) == null ? void 0 : t.join(" ")) || "";
2404
+ }, an = ({
2428
2405
  cssCode: e,
2429
2406
  contentId: t
2430
2407
  }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
2431
- function tn(e) {
2408
+ function on(e) {
2432
2409
  const [t, n] = S(
2433
2410
  () => `
2434
- ${en({
2411
+ ${an({
2435
2412
  cssCode: e.cssCode,
2436
2413
  contentId: e.contentId
2437
2414
  })}
2438
- ${Zt({
2415
+ ${nn({
2439
2416
  customFonts: e.customFonts
2440
2417
  })}
2441
2418
 
2419
+ .builder-button {
2420
+ all: unset;
2421
+ }
2422
+
2442
2423
  .builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
2443
2424
  margin: 0;
2444
2425
  }
@@ -2453,15 +2434,15 @@ ${Zt({
2453
2434
  }
2454
2435
  `.trim()
2455
2436
  );
2456
- return /* @__PURE__ */ l(H, { styles: t });
2437
+ return /* @__PURE__ */ o(O, { styles: t });
2457
2438
  }
2458
- const nn = ({
2439
+ const rn = ({
2459
2440
  content: e,
2460
2441
  data: t,
2461
2442
  locale: n
2462
2443
  }) => {
2463
- var o, r, c;
2464
- const i = {}, a = ((o = e == null ? void 0 : e.data) == null ? void 0 : o.state) || {};
2444
+ var l, r, c;
2445
+ const i = {}, a = ((l = e == null ? void 0 : e.data) == null ? void 0 : l.state) || {};
2465
2446
  return (c = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || c.forEach((s) => {
2466
2447
  s.name && s.defaultValue !== void 0 && (i[s.name] = s.defaultValue);
2467
2448
  }), {
@@ -2472,7 +2453,7 @@ const nn = ({
2472
2453
  locale: n
2473
2454
  } : {}
2474
2455
  };
2475
- }, an = ({
2456
+ }, ln = ({
2476
2457
  content: e,
2477
2458
  data: t
2478
2459
  }) => e ? {
@@ -2483,52 +2464,52 @@ const nn = ({
2483
2464
  },
2484
2465
  meta: e == null ? void 0 : e.meta
2485
2466
  } : void 0;
2486
- function ke(e) {
2487
- var s, d, u, b, v, y, C;
2467
+ function Se(e) {
2468
+ var s, d, m, g, v, y, k;
2488
2469
  const [t, n] = S(
2489
2470
  () => {
2490
- var k, R;
2491
- return Kt({
2471
+ var C, R;
2472
+ return zt({
2492
2473
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2493
- variationId: (k = e.content) == null ? void 0 : k.testVariationId,
2474
+ variationId: (C = e.content) == null ? void 0 : C.testVariationId,
2494
2475
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2495
2476
  contentId: (R = e.content) == null ? void 0 : R.id
2496
2477
  });
2497
2478
  }
2498
2479
  );
2499
- function i(k) {
2480
+ function i(C) {
2500
2481
  c((R) => ({
2501
2482
  ...R,
2502
- rootState: k
2483
+ rootState: C
2503
2484
  }));
2504
2485
  }
2505
- const [a, o] = S(
2486
+ const [a, l] = S(
2506
2487
  () => [
2507
- ...ye(),
2488
+ ...ge(),
2508
2489
  // While this `components` object is deprecated, we must maintain support for it.
2509
2490
  // Since users are able to override our default components, we need to make sure that we do not break such
2510
2491
  // existing usage.
2511
2492
  // This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
2512
2493
  // which is the new standard way of providing custom components, and must therefore take precedence.
2513
- ...ue,
2494
+ ...se,
2514
2495
  ...e.customComponents || []
2515
2496
  ].reduce(
2516
- (k, { component: R, ...B }) => ({
2517
- ...k,
2518
- [B.name]: {
2497
+ (C, { component: R, ...P }) => ({
2498
+ ...C,
2499
+ [P.name]: {
2519
2500
  component: R,
2520
- ...me(B)
2501
+ ...de(P)
2521
2502
  }
2522
2503
  }),
2523
2504
  {}
2524
2505
  )
2525
2506
  ), [r, c] = S(() => ({
2526
- content: an({
2507
+ content: ln({
2527
2508
  content: e.content,
2528
2509
  data: e.data
2529
2510
  }),
2530
2511
  localState: void 0,
2531
- rootState: nn({
2512
+ rootState: rn({
2532
2513
  content: e.content,
2533
2514
  data: e.data,
2534
2515
  locale: e.locale
@@ -2538,18 +2519,18 @@ function ke(e) {
2538
2519
  apiKey: e.apiKey,
2539
2520
  apiVersion: e.apiVersion,
2540
2521
  componentInfos: [
2541
- ...ye(),
2522
+ ...ge(),
2542
2523
  // While this `components` object is deprecated, we must maintain support for it.
2543
2524
  // Since users are able to override our default components, we need to make sure that we do not break such
2544
2525
  // existing usage.
2545
2526
  // This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
2546
2527
  // which is the new standard way of providing custom components, and must therefore take precedence.
2547
- ...ue,
2528
+ ...se,
2548
2529
  ...e.customComponents || []
2549
2530
  ].reduce(
2550
- (k, { component: R, ...B }) => ({
2551
- ...k,
2552
- [B.name]: me(B)
2531
+ (C, { component: R, ...P }) => ({
2532
+ ...C,
2533
+ [P.name]: de(P)
2553
2534
  }),
2554
2535
  {}
2555
2536
  ),
@@ -2557,14 +2538,14 @@ function ke(e) {
2557
2538
  BlocksWrapper: e.blocksWrapper || "div",
2558
2539
  BlocksWrapperProps: e.blocksWrapperProps || {}
2559
2540
  }));
2560
- return /* @__PURE__ */ l(
2561
- Te.Provider,
2541
+ return /* @__PURE__ */ o(
2542
+ Ce.Provider,
2562
2543
  {
2563
2544
  value: {
2564
2545
  registeredComponents: a
2565
2546
  },
2566
- children: /* @__PURE__ */ P(
2567
- Jt,
2547
+ children: /* @__PURE__ */ B(
2548
+ en,
2568
2549
  {
2569
2550
  content: e.content,
2570
2551
  data: e.data,
@@ -2579,21 +2560,22 @@ function ke(e) {
2579
2560
  builderContextSignal: r,
2580
2561
  contentWrapper: e.contentWrapper,
2581
2562
  contentWrapperProps: e.contentWrapperProps,
2563
+ trustedHosts: e.trustedHosts,
2582
2564
  setBuilderContextSignal: c,
2583
2565
  children: [
2584
- e.isSsrAbTest ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(ee, { scriptStr: t }) }) : null,
2585
- /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
2586
- tn,
2566
+ e.isSsrAbTest ? /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(J, { scriptStr: t }) }) : null,
2567
+ /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(
2568
+ on,
2587
2569
  {
2588
2570
  contentId: (s = r.content) == null ? void 0 : s.id,
2589
- cssCode: (u = (d = r.content) == null ? void 0 : d.data) == null ? void 0 : u.cssCode,
2590
- customFonts: (v = (b = r.content) == null ? void 0 : b.data) == null ? void 0 : v.customFonts
2571
+ cssCode: (m = (d = r.content) == null ? void 0 : d.data) == null ? void 0 : m.cssCode,
2572
+ customFonts: (v = (g = r.content) == null ? void 0 : g.data) == null ? void 0 : v.customFonts
2591
2573
  }
2592
2574
  ) }),
2593
- /* @__PURE__ */ l(
2594
- q,
2575
+ /* @__PURE__ */ o(
2576
+ z,
2595
2577
  {
2596
- blocks: (C = (y = r.content) == null ? void 0 : y.data) == null ? void 0 : C.blocks,
2578
+ blocks: (k = (y = r.content) == null ? void 0 : y.data) == null ? void 0 : k.blocks,
2597
2579
  context: r,
2598
2580
  registeredComponents: a
2599
2581
  }
@@ -2604,17 +2586,17 @@ function ke(e) {
2604
2586
  }
2605
2587
  );
2606
2588
  }
2607
- function Ve(e) {
2589
+ function Ae(e) {
2608
2590
  var r, c;
2609
2591
  const [t, n] = S(
2610
- () => Mt({
2592
+ () => Dt({
2611
2593
  canTrack: D(e.canTrack),
2612
2594
  content: e.content
2613
2595
  })
2614
2596
  );
2615
2597
  function i() {
2616
2598
  var s;
2617
- return Ot(
2599
+ return Kt(
2618
2600
  M(e.content).map((d) => ({
2619
2601
  id: d.testVariationId,
2620
2602
  testRatio: d.testRatio
@@ -2625,30 +2607,30 @@ function Ve(e) {
2625
2607
  function a() {
2626
2608
  return M(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
2627
2609
  }
2628
- function o() {
2610
+ function l() {
2629
2611
  var s;
2630
2612
  return t ? {
2631
2613
  ...e.content,
2632
2614
  testVariationId: (s = e.content) == null ? void 0 : s.id
2633
- } : Me({
2615
+ } : je({
2634
2616
  item: e.content,
2635
2617
  canTrack: D(e.canTrack)
2636
2618
  });
2637
2619
  }
2638
2620
  return E(() => {
2639
- }, []), /* @__PURE__ */ P(h, { children: [
2640
- !e.__isNestedRender && L !== "reactNative" ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(ee, { scriptStr: Dt() }) }) : null,
2641
- t ? /* @__PURE__ */ P(h, { children: [
2642
- /* @__PURE__ */ l(
2643
- H,
2621
+ }, []), /* @__PURE__ */ B(h, { children: [
2622
+ !e.__isNestedRender && L !== "reactNative" ? /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(J, { scriptStr: Ot() }) }) : null,
2623
+ t ? /* @__PURE__ */ B(h, { children: [
2624
+ /* @__PURE__ */ o(
2625
+ O,
2644
2626
  {
2645
2627
  id: `variants-styles-${(r = e.content) == null ? void 0 : r.id}`,
2646
2628
  styles: a()
2647
2629
  }
2648
2630
  ),
2649
- /* @__PURE__ */ l(ee, { scriptStr: i() }),
2650
- (c = M(e.content)) == null ? void 0 : c.map((s) => /* @__PURE__ */ l(
2651
- ke,
2631
+ /* @__PURE__ */ o(J, { scriptStr: i() }),
2632
+ (c = M(e.content)) == null ? void 0 : c.map((s) => /* @__PURE__ */ o(
2633
+ Se,
2652
2634
  {
2653
2635
  content: s,
2654
2636
  showContent: !1,
@@ -2666,15 +2648,16 @@ function Ve(e) {
2666
2648
  blocksWrapper: e.blocksWrapper,
2667
2649
  blocksWrapperProps: e.blocksWrapperProps,
2668
2650
  contentWrapper: e.contentWrapper,
2669
- contentWrapperProps: e.contentWrapperProps
2651
+ contentWrapperProps: e.contentWrapperProps,
2652
+ trustedHosts: e.trustedHosts
2670
2653
  },
2671
2654
  s.testVariationId
2672
2655
  ))
2673
2656
  ] }) : null,
2674
- /* @__PURE__ */ l(
2675
- ke,
2657
+ /* @__PURE__ */ o(
2658
+ Se,
2676
2659
  {
2677
- content: o(),
2660
+ content: l(),
2678
2661
  showContent: !0,
2679
2662
  model: e.model,
2680
2663
  data: e.data,
@@ -2690,18 +2673,19 @@ function Ve(e) {
2690
2673
  blocksWrapper: e.blocksWrapper,
2691
2674
  blocksWrapperProps: e.blocksWrapperProps,
2692
2675
  contentWrapper: e.contentWrapper,
2693
- contentWrapperProps: e.contentWrapperProps
2676
+ contentWrapperProps: e.contentWrapperProps,
2677
+ trustedHosts: e.trustedHosts
2694
2678
  }
2695
2679
  )
2696
2680
  ] });
2697
2681
  }
2698
- const on = async ({
2682
+ const cn = async ({
2699
2683
  builderContextValue: e,
2700
2684
  symbol: t
2701
2685
  }) => {
2702
2686
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
2703
2687
  (e != null && e.apiKey))
2704
- return Ie({
2688
+ return ke({
2705
2689
  model: t.model,
2706
2690
  apiKey: e.apiKey,
2707
2691
  apiVersion: e.apiVersion,
@@ -2714,15 +2698,15 @@ const on = async ({
2714
2698
  U.error("Could not fetch symbol content: ", n);
2715
2699
  });
2716
2700
  };
2717
- function rn(e) {
2718
- var o, r, c, s;
2701
+ function sn(e) {
2702
+ var l, r, c, s;
2719
2703
  function t() {
2720
- var d, u;
2704
+ var d, m;
2721
2705
  return [
2722
2706
  e.attributes.className,
2723
2707
  "builder-symbol",
2724
2708
  (d = e.symbol) != null && d.inline ? "builder-inline-symbol" : void 0,
2725
- (u = e.symbol) != null && u.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
2709
+ (m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
2726
2710
  ].filter(Boolean).join(" ");
2727
2711
  }
2728
2712
  const [n, i] = S(() => {
@@ -2730,7 +2714,7 @@ function rn(e) {
2730
2714
  return (d = e.symbol) == null ? void 0 : d.content;
2731
2715
  });
2732
2716
  function a() {
2733
- n || on({
2717
+ n || cn({
2734
2718
  symbol: e.symbol,
2735
2719
  builderContextValue: e.builderContext
2736
2720
  }).then((d) => {
@@ -2740,15 +2724,15 @@ function rn(e) {
2740
2724
  return E(() => {
2741
2725
  }, []), E(() => {
2742
2726
  a();
2743
- }, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ l(
2744
- Ve,
2727
+ }, [e.symbol]), /* @__PURE__ */ o("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ o(
2728
+ Ae,
2745
2729
  {
2746
2730
  __isNestedRender: !0,
2747
2731
  apiVersion: e.builderContext.apiVersion,
2748
2732
  apiKey: e.builderContext.apiKey,
2749
2733
  context: {
2750
2734
  ...e.builderContext.context,
2751
- symbolId: (o = e.builderBlock) == null ? void 0 : o.id
2735
+ symbolId: (l = e.builderBlock) == null ? void 0 : l.id
2752
2736
  },
2753
2737
  customComponents: Object.values(e.builderComponents),
2754
2738
  data: {
@@ -2761,31 +2745,31 @@ function rn(e) {
2761
2745
  }
2762
2746
  ) });
2763
2747
  }
2764
- const dn = q, un = Ve;
2748
+ const fn = z, hn = Ae;
2765
2749
  export {
2766
- q as Blocks,
2767
- Ue as Button,
2768
- mt as Columns,
2769
- Ve as Content,
2770
- ft as Fragment,
2771
- bt as Image,
2772
- dn as RenderBlocks,
2773
- un as RenderContent,
2774
- xt as Section,
2775
- rn as Symbol,
2776
- Nt as Text,
2777
- _t as Video,
2778
- hn as _processContentResult,
2779
- Le as createRegisterComponentMessage,
2780
- gn as fetchBuilderProps,
2781
- bn as fetchEntries,
2782
- Ie as fetchOneEntry,
2783
- xn as getAllContent,
2784
- yn as getBuilderSearchParams,
2785
- Sn as getContent,
2750
+ z as Blocks,
2751
+ Me as Button,
2752
+ ht as Columns,
2753
+ Ae as Content,
2754
+ gt as Fragment,
2755
+ yt as Image,
2756
+ fn as RenderBlocks,
2757
+ hn as RenderContent,
2758
+ St as Section,
2759
+ sn as Symbol,
2760
+ _t as Text,
2761
+ jt as Video,
2762
+ xn as _processContentResult,
2763
+ _e as createRegisterComponentMessage,
2764
+ yn as fetchBuilderProps,
2765
+ Sn as fetchEntries,
2766
+ ke as fetchOneEntry,
2767
+ vn as getAllContent,
2768
+ pn as getBuilderSearchParams,
2769
+ kn as getContent,
2786
2770
  V as isEditing,
2787
- _e as isPreviewing,
2788
- Fe as register,
2789
- vn as setEditorSettings,
2790
- pn as track
2771
+ Fe as isPreviewing,
2772
+ Ne as register,
2773
+ Cn as setEditorSettings,
2774
+ wn as track
2791
2775
  };