@builder.io/sdk-react 3.0.1 → 3.0.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.
Files changed (89) hide show
  1. package/lib/browser/blocks-exports.cjs +23 -23
  2. package/lib/browser/blocks-exports.mjs +678 -678
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/server-entry-5eafc5bd.cjs +2 -0
  6. package/lib/browser/server-entry-c904f136.js +748 -0
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/accordion-032726a7.cjs +1 -0
  10. package/lib/edge/{accordion-1572cb0d.js → accordion-c786f197.js} +17 -16
  11. package/lib/edge/blocks-105e50e5.js +3534 -0
  12. package/lib/edge/blocks-827b0a87.cjs +30 -0
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +2 -2
  15. package/lib/edge/{button-cf66cf8d.cjs → button-5cbfe22c.cjs} +1 -1
  16. package/lib/edge/{button-0709893d.js → button-f0e0ea72.js} +2 -2
  17. package/lib/edge/{columns-e234acc6.js → columns-9e187314.js} +14 -15
  18. package/lib/edge/columns-d07da61d.cjs +28 -0
  19. package/lib/edge/content-variants-0db90715.cjs +134 -0
  20. package/lib/edge/{content-variants-3ab9230f.js → content-variants-59dc0824.js} +209 -205
  21. package/lib/edge/{custom-code-6d9730ff.cjs → custom-code-8119ea3f.cjs} +1 -1
  22. package/lib/edge/form-79639135.cjs +1 -0
  23. package/lib/edge/{form-27bcc23a.js → form-7a7b98cf.js} +7 -8
  24. package/lib/edge/{get-class-prop-name-a3bd113c.js → get-class-prop-name-6b143ec7.js} +1 -1
  25. package/lib/edge/{get-class-prop-name-0b3d48a4.cjs → get-class-prop-name-8fb0e5ad.cjs} +1 -1
  26. package/lib/edge/{image-5c9e156f.js → image-2a2b26d2.js} +6 -6
  27. package/lib/edge/{image-94922c87.cjs → image-4db81d72.cjs} +3 -3
  28. package/lib/edge/{img-80be6914.js → img-2c4c6b78.js} +1 -1
  29. package/lib/edge/{img-e0c8f7f9.cjs → img-72bf9d21.cjs} +1 -1
  30. package/lib/edge/index.cjs +1 -1
  31. package/lib/edge/index.mjs +1 -1
  32. package/lib/edge/{input-f5ba6b1e.cjs → input-6eca8427.cjs} +1 -1
  33. package/lib/edge/{input-920922d5.js → input-752f3ce9.js} +1 -1
  34. package/lib/edge/{select-2ced1aca.cjs → select-49a73a0b.cjs} +1 -1
  35. package/lib/edge/{select-673864b7.js → select-a1d6e80e.js} +1 -1
  36. package/lib/edge/server-entry-35f12729.js +746 -0
  37. package/lib/edge/server-entry-6b2058e2.cjs +2 -0
  38. package/lib/edge/server-entry.cjs +1 -1
  39. package/lib/edge/server-entry.mjs +1 -1
  40. package/lib/edge/slot-2327e009.cjs +1 -0
  41. package/lib/edge/{slot-68f2b177.js → slot-b9bcbd41.js} +5 -6
  42. package/lib/edge/{symbol-7e260a70.js → symbol-33e7736f.js} +2 -2
  43. package/lib/edge/{symbol-ded9dba9.cjs → symbol-3527699b.cjs} +1 -1
  44. package/lib/edge/tabs-2df0eaa2.cjs +1 -0
  45. package/lib/edge/{tabs-5156494d.js → tabs-bc422e4c.js} +15 -16
  46. package/lib/edge/text-5915f038.js +17 -0
  47. package/lib/edge/text-e6dbb721.cjs +1 -0
  48. package/lib/node/blocks-exports.cjs +24 -24
  49. package/lib/node/blocks-exports.mjs +555 -555
  50. package/lib/node/index.cjs +1 -1
  51. package/lib/node/index.mjs +3 -3
  52. package/lib/node/init.cjs +1 -1
  53. package/lib/node/init.mjs +3 -3
  54. package/lib/node/server-entry-606ce65a.cjs +2 -0
  55. package/lib/node/server-entry-d1ed35c5.js +749 -0
  56. package/lib/node/server-entry.cjs +1 -1
  57. package/lib/node/server-entry.mjs +1 -1
  58. package/lib/node/{setIvm-8b303d4e.js → setIvm-6675714a.js} +1 -1
  59. package/lib/node/{setIvm-aba1bed8.cjs → setIvm-e4deba11.cjs} +1 -1
  60. package/lib/node/setIvm.cjs +1 -1
  61. package/lib/node/setIvm.mjs +2 -2
  62. package/lib/node/{should-force-browser-runtime-in-node-491a9b55.cjs → should-force-browser-runtime-in-node-03adae17.cjs} +1 -1
  63. package/lib/node/{should-force-browser-runtime-in-node-0a037bde.js → should-force-browser-runtime-in-node-75b2b3a0.js} +1 -1
  64. package/package.json +1 -1
  65. package/types/constants/sdk-version.d.ts +1 -1
  66. package/types/functions/get-block-component-options.d.ts +2 -1
  67. package/types/functions/get-processed-block.d.ts +1 -6
  68. package/types/helpers/flatten.d.ts +6 -0
  69. package/types/server-index.d.ts +1 -1
  70. package/types/types/builder-content.d.ts +1 -0
  71. package/types/types/input.d.ts +10 -0
  72. package/lib/browser/server-entry-017b8439.js +0 -717
  73. package/lib/browser/server-entry-9f80066e.cjs +0 -2
  74. package/lib/edge/accordion-decb24cf.cjs +0 -1
  75. package/lib/edge/blocks-9c35be74.js +0 -916
  76. package/lib/edge/blocks-d3823063.cjs +0 -12
  77. package/lib/edge/columns-2fdf0656.cjs +0 -28
  78. package/lib/edge/content-variants-616a6c0f.cjs +0 -134
  79. package/lib/edge/evaluate-ccf1ad96.cjs +0 -19
  80. package/lib/edge/evaluate-f0b82ede.js +0 -2612
  81. package/lib/edge/form-7c61693d.cjs +0 -1
  82. package/lib/edge/server-entry-6c0047ea.js +0 -715
  83. package/lib/edge/server-entry-de142ee8.cjs +0 -2
  84. package/lib/edge/slot-cc8b4e5b.cjs +0 -1
  85. package/lib/edge/tabs-d422921f.cjs +0 -1
  86. package/lib/edge/text-27a917c0.js +0 -37
  87. package/lib/edge/text-5796f488.cjs +0 -1
  88. package/lib/node/server-entry-e91e06a3.cjs +0 -2
  89. package/lib/node/server-entry-fdedc1aa.js +0 -718
@@ -1,14 +1,15 @@
1
1
  "use client";
2
- import { jsx as s, Fragment as I, jsxs as W } from "react/jsx-runtime";
3
- import { TARGET as $, isBrowser as q, logger as oe, checkIsDefined as te, isPreviewing as ae, isEditing as N, logFetch as Te, registerInsertMenu as je, setupBrowserForEditing as qe, createRegisterComponentMessage as ze, getDefaultCanTrack as z, _track as ue, fetchOneEntry as Ie, createEditorListener as Ke, serializeIncludingFunctions as me, handleABTestingSync as Je } from "./server-entry-fdedc1aa.js";
4
- import { createContext as we, useEffect as A, useState as R, useRef as L, useContext as fe, createElement as Ee } from "react";
5
- import { getFunctionArguments as Ge, flattenState as Ye, runInNode as Qe, parseCode as Xe, getBuilderGlobals as Ze, set as Re, fastClone as re } from "./setIvm-8b303d4e.js";
6
- import { shouldForceBrowserRuntimeInNode as et } from "./should-force-browser-runtime-in-node-0a037bde.js";
7
- const tt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), nt = (e) => typeof e == "string" && tt.has(e.toLowerCase());
2
+ import { jsx as l, Fragment as w, jsxs as W } from "react/jsx-runtime";
3
+ import { TARGET as $, isBrowser as q, logger as oe, checkIsDefined as te, isPreviewing as ae, isEditing as N, logFetch as Te, registerInsertMenu as je, setupBrowserForEditing as qe, createRegisterComponentMessage as ze, getDefaultCanTrack as z, _track as ue, fetchOneEntry as Ie, createEditorListener as Ke, serializeIncludingFunctions as me, handleABTestingSync as Je } from "./server-entry-d1ed35c5.js";
4
+ import * as Ge from "react";
5
+ import { createContext as we, useEffect as A, useState as E, useRef as D, useContext as fe, createElement as Ee } from "react";
6
+ import { getFunctionArguments as Ye, flattenState as Qe, runInNode as Xe, parseCode as Ze, getBuilderGlobals as et, set as Re, fastClone as re } from "./setIvm-6675714a.js";
7
+ import { shouldForceBrowserRuntimeInNode as tt } from "./should-force-browser-runtime-in-node-75b2b3a0.js";
8
+ const nt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), it = (e) => typeof e == "string" && nt.has(e.toLowerCase());
8
9
  function le(e) {
9
- return /* @__PURE__ */ s(I, { children: nt(e.TagName) ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(I, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
10
+ return /* @__PURE__ */ l(w, { children: it(e.TagName) ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(w, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
10
11
  }
11
- const U = () => {
12
+ const _ = () => {
12
13
  switch ($) {
13
14
  case "react":
14
15
  case "reactNative":
@@ -22,11 +23,11 @@ const U = () => {
22
23
  return "class";
23
24
  }
24
25
  };
25
- function it(e) {
26
+ function ot(e) {
26
27
  function t() {
27
28
  return {
28
29
  ...e.attributes,
29
- [U()]: `${e.link ? "" : "builder-button"} ${e.attributes[U()] || ""}`,
30
+ [_()]: `${e.link ? "" : "builder-button"} ${e.attributes[_()] || ""}`,
30
31
  ...e.link ? {
31
32
  href: e.link,
32
33
  target: e.openLinkInNewTab ? "_blank" : void 0,
@@ -36,7 +37,7 @@ function it(e) {
36
37
  }
37
38
  };
38
39
  }
39
- return /* @__PURE__ */ s(
40
+ return /* @__PURE__ */ l(
40
41
  le,
41
42
  {
42
43
  attributes: t(),
@@ -61,24 +62,10 @@ const se = we({
61
62
  BlocksWrapperProps: {},
62
63
  nonce: "",
63
64
  model: ""
64
- }), Pe = we({ registeredComponents: {} });
65
- function ot(e) {
66
- var t;
67
- return {
68
- ...(t = e.component) == null ? void 0 : t.options,
69
- ...e.options
70
- };
71
- }
72
- function at(e, ...t) {
73
- const n = Object.assign({}, e);
74
- for (const i of t)
75
- delete n[i];
76
- return n;
77
- }
78
- const Be = (e, t, n) => {
65
+ }), Pe = we({ registeredComponents: {} }), Be = (e, t, n) => {
79
66
  const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, r) => o != null ? o[r] : o, e);
80
67
  return i === void 0 || i === e ? n : i;
81
- }, rt = ({
68
+ }, at = ({
82
69
  code: e,
83
70
  builder: t,
84
71
  context: n,
@@ -87,24 +74,24 @@ const Be = (e, t, n) => {
87
74
  rootSetState: r,
88
75
  rootState: a
89
76
  }) => {
90
- const l = Ge({
77
+ const s = Ye({
91
78
  builder: t,
92
79
  context: n,
93
80
  event: i,
94
- state: Ye({
81
+ state: Qe({
95
82
  rootState: a,
96
83
  localState: o,
97
84
  rootSetState: r
98
85
  })
99
86
  });
100
- return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
101
- }, lt = (e) => q() || et({
87
+ return new Function(...s.map(([d]) => d), e)(...s.map(([, d]) => d));
88
+ }, rt = (e) => q() || tt({
102
89
  shouldLogWarning: !0
103
- }) ? rt(e) : Qe(e), st = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, ct = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, dt = (e) => {
90
+ }) ? at(e) : Xe(e), lt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, st = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, ct = (e) => {
104
91
  var t, n, i, o, r, a;
105
- return ((i = (n = (t = st.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((a = (r = (o = ct.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : r.getPath) == null ? void 0 : a.slice(1));
92
+ return ((i = (n = (t = lt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((a = (r = (o = st.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : r.getPath) == null ? void 0 : a.slice(1));
106
93
  };
107
- function D({
94
+ function O({
108
95
  code: e,
109
96
  context: t,
110
97
  localState: n,
@@ -115,17 +102,17 @@ function D({
115
102
  }) {
116
103
  if (e.trim() === "")
117
104
  return;
118
- const l = dt(e.trim());
119
- if (l)
105
+ const s = ct(e.trim());
106
+ if (s)
120
107
  return Be({
121
108
  ...i,
122
109
  ...n
123
- }, l);
110
+ }, s);
124
111
  const d = {
125
- code: Xe(e, {
112
+ code: Ze(e, {
126
113
  isExpression: a
127
114
  }),
128
- builder: Ze(),
115
+ builder: et(),
129
116
  context: t,
130
117
  event: r,
131
118
  rootSetState: o,
@@ -133,7 +120,7 @@ function D({
133
120
  localState: n
134
121
  };
135
122
  try {
136
- return lt(d);
123
+ return rt(d);
137
124
  } catch (c) {
138
125
  oe.error("Failed code evaluation: " + c.message, {
139
126
  code: e
@@ -141,6 +128,34 @@ function D({
141
128
  return;
142
129
  }
143
130
  }
131
+ function dt(e, t) {
132
+ var n;
133
+ return {
134
+ ...(n = e.component) == null ? void 0 : n.options,
135
+ ...e.options,
136
+ ...ut(e, t)
137
+ };
138
+ }
139
+ const ut = (e, t) => {
140
+ var n, i;
141
+ if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
142
+ return {
143
+ ...e.component.options,
144
+ text: e.component.options.text.replace(/{{([^}]+)}}/g, (o, r) => O({
145
+ code: r,
146
+ context: t,
147
+ localState: t.localState,
148
+ rootState: t.rootState,
149
+ rootSetState: t.rootSetState
150
+ }))
151
+ };
152
+ };
153
+ function mt(e, ...t) {
154
+ const n = Object.assign({}, e);
155
+ for (const i of t)
156
+ delete n[i];
157
+ return n;
158
+ }
144
159
  function K(e, t, n = null, i = null, o = /* @__PURE__ */ new WeakSet()) {
145
160
  if (e == null || typeof e != "object") {
146
161
  t(e, (r) => {
@@ -161,7 +176,7 @@ function K(e, t, n = null, i = null, o = /* @__PURE__ */ new WeakSet()) {
161
176
  function Ve(e) {
162
177
  return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
163
178
  }
164
- function ut(e) {
179
+ function ft(e) {
165
180
  if (!e || !Object.getOwnPropertyNames(e).length)
166
181
  return !1;
167
182
  let t = !1;
@@ -172,15 +187,15 @@ function ut(e) {
172
187
  }
173
188
  }), t;
174
189
  }
175
- function mt(e, t) {
190
+ function ht(e, t) {
176
191
  return !e || !Object.getOwnPropertyNames(e).length ? {} : (K(e, (n, i) => {
177
192
  var o;
178
193
  Ve(n) && i((o = n[t]) != null ? o : void 0);
179
194
  }), e);
180
195
  }
181
- function ft(e, t) {
196
+ function gt(e, t) {
182
197
  var n, i;
183
- return (n = e.component) != null && n.options && ut((i = e.component) == null ? void 0 : i.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = mt(e.component.options, t != null ? t : "Default")), e;
198
+ return (n = e.component) != null && n.options && ft((i = e.component) == null ? void 0 : i.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = ht(e.component.options, t != null ? t : "Default")), e;
184
199
  }
185
200
  function ne(e) {
186
201
  if (e === null || typeof e != "object")
@@ -194,8 +209,8 @@ function ne(e) {
194
209
  n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ne(e[n]));
195
210
  return t;
196
211
  }
197
- const ht = ["svelte", "vue", "angular", "qwik", "solid"].includes($), gt = (e) => {
198
- if (ht) {
212
+ const bt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), pt = (e) => {
213
+ if (bt) {
199
214
  const t = re(e);
200
215
  return {
201
216
  ...t,
@@ -207,7 +222,7 @@ const ht = ["svelte", "vue", "angular", "qwik", "solid"].includes($), gt = (e) =
207
222
  }
208
223
  };
209
224
  } else {
210
- const t = ne(at(e, "children", "meta"));
225
+ const t = ne(mt(e, "children", "meta"));
211
226
  return {
212
227
  ...t,
213
228
  properties: {
@@ -220,7 +235,7 @@ const ht = ["svelte", "vue", "angular", "qwik", "solid"].includes($), gt = (e) =
220
235
  meta: e.meta
221
236
  };
222
237
  }
223
- }, bt = ({
238
+ }, yt = ({
224
239
  block: e,
225
240
  context: t,
226
241
  localState: n,
@@ -229,10 +244,10 @@ const ht = ["svelte", "vue", "angular", "qwik", "solid"].includes($), gt = (e) =
229
244
  }) => {
230
245
  if (!e.bindings)
231
246
  return e;
232
- const r = gt(e);
247
+ const r = pt(e);
233
248
  for (const a in e.bindings) {
234
- const l = e.bindings[a], d = D({
235
- code: l,
249
+ const s = e.bindings[a], d = O({
250
+ code: s,
236
251
  localState: n,
237
252
  rootState: i,
238
253
  rootSetState: o,
@@ -242,37 +257,36 @@ const ht = ["svelte", "vue", "angular", "qwik", "solid"].includes($), gt = (e) =
242
257
  }
243
258
  return r;
244
259
  };
245
- function pt({
260
+ function xt({
246
261
  block: e,
247
262
  context: t,
248
- shouldEvaluateBindings: n,
249
- localState: i,
250
- rootState: o,
251
- rootSetState: r
263
+ localState: n,
264
+ rootState: i,
265
+ rootSetState: o
252
266
  }) {
253
- let a = ft(e, o.locale);
254
- return a = a, n ? bt({
255
- block: a,
256
- localState: i,
257
- rootState: o,
258
- rootSetState: r,
267
+ let r = gt(e, i.locale);
268
+ return r = r, yt({
269
+ block: r,
270
+ localState: n,
271
+ rootState: i,
272
+ rootSetState: o,
259
273
  context: t
260
- }) : a;
274
+ });
261
275
  }
262
276
  const J = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
263
- function yt(e, t, n = {}) {
264
- let i, o, r, a = null, l = 0;
277
+ function vt(e, t, n = {}) {
278
+ let i, o, r, a = null, s = 0;
265
279
  const d = function() {
266
- l = n.leading === !1 ? 0 : Date.now(), a = null, r = e.apply(i, o), a || (i = o = null);
280
+ s = n.leading === !1 ? 0 : Date.now(), a = null, r = e.apply(i, o), a || (i = o = null);
267
281
  };
268
282
  return function() {
269
283
  const c = Date.now();
270
- !l && n.leading === !1 && (l = c);
271
- const h = t - (c - l);
272
- return i = this, o = arguments, h <= 0 || h > t ? (a && (clearTimeout(a), a = null), l = c, r = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(d, h)), r;
284
+ !s && n.leading === !1 && (s = c);
285
+ const h = t - (c - s);
286
+ return i = this, o = arguments, h <= 0 || h > t ? (a && (clearTimeout(a), a = null), s = c, r = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(d, h)), r;
273
287
  };
274
288
  }
275
- function O(e, ...t) {
289
+ function U(e, ...t) {
276
290
  const n = Object(e);
277
291
  for (let i = 1; i < arguments.length; i++) {
278
292
  const o = arguments[i];
@@ -282,14 +296,14 @@ function O(e, ...t) {
282
296
  }
283
297
  return n;
284
298
  }
285
- function xt(e) {
299
+ function St(e) {
286
300
  for (const t of e)
287
301
  switch (t.trigger) {
288
302
  case "pageLoad":
289
303
  Ne(t);
290
304
  break;
291
305
  case "scrollInView":
292
- St(t);
306
+ Ct(t);
293
307
  break;
294
308
  }
295
309
  }
@@ -297,12 +311,12 @@ function Ae(e) {
297
311
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
298
312
  }
299
313
  function We(e, t) {
300
- const n = vt(e), i = getComputedStyle(t), o = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [o, r];
301
- for (const l of a)
314
+ const n = kt(e), i = getComputedStyle(t), o = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [o, r];
315
+ for (const s of a)
302
316
  for (const d of n)
303
- d in l || (l[d] = i[d]);
317
+ d in s || (s[d] = i[d]);
304
318
  }
305
- function vt(e) {
319
+ function kt(e) {
306
320
  const t = [];
307
321
  for (const n of e.steps)
308
322
  for (const i in n.styles)
@@ -316,14 +330,14 @@ function Ne(e) {
316
330
  return;
317
331
  }
318
332
  Array.from(t).forEach((n) => {
319
- We(e, n), n.style.transition = "none", n.style.transitionDelay = "0", O(n.style, e.steps[0].styles), setTimeout(() => {
320
- n.style.transition = `all ${e.duration}s ${J(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), O(n.style, e.steps[1].styles), setTimeout(() => {
333
+ We(e, n), n.style.transition = "none", n.style.transitionDelay = "0", U(n.style, e.steps[0].styles), setTimeout(() => {
334
+ n.style.transition = `all ${e.duration}s ${J(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), U(n.style, e.steps[1].styles), setTimeout(() => {
321
335
  n.style.transition = "", n.style.transitionDelay = "";
322
336
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
323
337
  });
324
338
  });
325
339
  }
326
- function St(e) {
340
+ function Ct(e) {
327
341
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
328
342
  if (!t.length) {
329
343
  Ae(e.elementId || e.id || "");
@@ -333,22 +347,22 @@ function St(e) {
333
347
  We(e, n);
334
348
  let i = !1, o = !1;
335
349
  function r() {
336
- !i && l(n) ? (i = !0, o = !0, setTimeout(() => {
337
- O(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
350
+ !i && s(n) ? (i = !0, o = !0, setTimeout(() => {
351
+ U(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
338
352
  o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
339
353
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
340
- })) : e.repeat && i && !o && !l(n) && (i = !1, O(n.style, e.steps[0].styles));
354
+ })) : e.repeat && i && !o && !s(n) && (i = !1, U(n.style, e.steps[0].styles));
341
355
  }
342
- const a = yt(r, 200, {
356
+ const a = vt(r, 200, {
343
357
  leading: !1
344
358
  });
345
- function l(h) {
359
+ function s(h) {
346
360
  const g = h.getBoundingClientRect(), m = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * m;
347
361
  return g.bottom > f && g.top < m - f;
348
362
  }
349
363
  const d = e.steps[0].styles;
350
364
  function c() {
351
- O(n.style, d);
365
+ U(n.style, d);
352
366
  }
353
367
  c(), setTimeout(() => {
354
368
  n.style.transition = `all ${e.duration}s ${J(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
@@ -361,28 +375,28 @@ function St(e) {
361
375
  const Fe = (e) => Object.entries(e).map(([n, i]) => {
362
376
  if (typeof i == "string")
363
377
  return `${J(n)}: ${i};`;
364
- }).filter(te), kt = (e) => Fe(e).join(`
378
+ }).filter(te), Tt = (e) => Fe(e).join(`
365
379
  `), M = ({
366
380
  mediaQuery: e,
367
381
  className: t,
368
382
  styles: n
369
383
  }) => {
370
384
  const i = `.${t} {
371
- ${kt(n)}
385
+ ${Tt(n)}
372
386
  }`;
373
387
  return e ? `${e} {
374
388
  ${i}
375
389
  }` : i;
376
390
  };
377
- function Ct({
391
+ function It({
378
392
  style: e
379
393
  }) {
380
394
  return e;
381
395
  }
382
- const Tt = ({
396
+ const wt = ({
383
397
  block: e,
384
398
  context: t
385
- }) => $e(Ct({
399
+ }) => $e(It({
386
400
  style: e.style || {},
387
401
  context: t,
388
402
  block: e
@@ -401,7 +415,7 @@ function $e(e) {
401
415
  return e;
402
416
  }
403
417
  }
404
- const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, It = ({
418
+ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Et = ({
405
419
  block: e,
406
420
  registeredComponents: t,
407
421
  model: n
@@ -418,7 +432,7 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
418
432
  return;
419
433
  } else
420
434
  return o;
421
- }, wt = ({
435
+ }, Rt = ({
422
436
  block: e,
423
437
  context: t
424
438
  }) => {
@@ -428,7 +442,7 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
428
442
  } = e;
429
443
  if (!(n != null && n.collection))
430
444
  return;
431
- const o = D({
445
+ const o = O({
432
446
  code: n.collection,
433
447
  localState: t.localState,
434
448
  rootState: t.rootState,
@@ -451,22 +465,22 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
451
465
  },
452
466
  block: i
453
467
  }));
454
- }, Et = (e, t) => {
468
+ }, Pt = (e, t) => {
455
469
  var n;
456
470
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
457
471
  builderLinkComponent: t
458
472
  } : {};
459
- }, Rt = (e, t, n) => {
473
+ }, Bt = (e, t, n) => {
460
474
  var i;
461
475
  return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
462
476
  builderComponents: Object.fromEntries(Object.entries(t).filter(([r, a]) => !Le(a, n)))
463
477
  } : {};
464
- }, Pt = (e, t) => {
478
+ }, Vt = (e, t) => {
465
479
  var n;
466
480
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
467
481
  builderBlock: t
468
482
  } : {};
469
- }, Bt = (e, t) => {
483
+ }, At = (e, t) => {
470
484
  var n;
471
485
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
472
486
  builderContext: t
@@ -515,7 +529,7 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
515
529
  }, n;
516
530
  };
517
531
  function G(e) {
518
- return /* @__PURE__ */ s(
532
+ return /* @__PURE__ */ l(
519
533
  "style",
520
534
  {
521
535
  dangerouslySetInnerHTML: { __html: e.styles },
@@ -524,7 +538,7 @@ function G(e) {
524
538
  }
525
539
  );
526
540
  }
527
- function Vt(e) {
541
+ function Wt(e) {
528
542
  function t() {
529
543
  const i = e.block;
530
544
  return te(i.hide) ? !i.hide : te(i.show) ? i.show : !0;
@@ -533,12 +547,12 @@ function Vt(e) {
533
547
  var x, b, p;
534
548
  const i = e.block, o = i.responsiveStyles, r = e.context.content, a = Oe(
535
549
  ((x = r == null ? void 0 : r.meta) == null ? void 0 : x.breakpoints) || {}
536
- ), l = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, h = i.id;
550
+ ), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, h = i.id;
537
551
  if (!h)
538
552
  return "";
539
- const g = l ? M({
553
+ const g = s ? M({
540
554
  className: h,
541
- styles: l
555
+ styles: s
542
556
  }) : "", m = d ? M({
543
557
  className: h,
544
558
  styles: d,
@@ -575,7 +589,7 @@ function Vt(e) {
575
589
  v
576
590
  ].join(" ");
577
591
  }
578
- return /* @__PURE__ */ s(I, { children: n() && t() ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(
592
+ return /* @__PURE__ */ l(w, { children: n() && t() ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
579
593
  G,
580
594
  {
581
595
  id: "builderio-block",
@@ -584,10 +598,10 @@ function Vt(e) {
584
598
  }
585
599
  ) }) : null });
586
600
  }
587
- function At(e) {
601
+ function Nt(e) {
588
602
  return e.charAt(0).toUpperCase() + e.slice(1);
589
603
  }
590
- const Wt = (e) => `on${At(e)}`, Nt = (e, t) => (n) => D({
604
+ const Ft = (e) => `on${Nt(e)}`, $t = (e, t) => (n) => O({
591
605
  code: e,
592
606
  context: t.context,
593
607
  localState: t.localState,
@@ -603,7 +617,7 @@ function Ue(e) {
603
617
  if (!n.hasOwnProperty(o))
604
618
  continue;
605
619
  const r = n[o];
606
- let a = Wt(o);
620
+ let a = Ft(o);
607
621
  if (e.stripPrefix)
608
622
  switch ($) {
609
623
  case "vue":
@@ -613,16 +627,16 @@ function Ue(e) {
613
627
  a = a.replace("on:", "");
614
628
  break;
615
629
  }
616
- t[a] = Nt(r, e);
630
+ t[a] = $t(r, e);
617
631
  }
618
632
  return t;
619
633
  }
620
- function Ft({
634
+ function Lt({
621
635
  properties: e
622
636
  }) {
623
637
  return e;
624
638
  }
625
- const $t = (e) => ({
639
+ const Dt = (e) => ({
626
640
  href: e.href
627
641
  });
628
642
  function ce({
@@ -631,23 +645,23 @@ function ce({
631
645
  }) {
632
646
  var i;
633
647
  const n = {
634
- ...$t(e),
648
+ ...Dt(e),
635
649
  ...e.properties,
636
650
  "builder-id": e.id,
637
- style: Tt({
651
+ style: wt({
638
652
  block: e,
639
653
  context: t
640
654
  }),
641
- [U()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
655
+ [_()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
642
656
  };
643
- return Ft({
657
+ return Lt({
644
658
  properties: n,
645
659
  context: t,
646
660
  block: e
647
661
  });
648
662
  }
649
- function Lt(e) {
650
- return /* @__PURE__ */ s(
663
+ function Ot(e) {
664
+ return /* @__PURE__ */ l(
651
665
  le,
652
666
  {
653
667
  TagName: e.Wrapper,
@@ -667,11 +681,11 @@ function Lt(e) {
667
681
  }
668
682
  );
669
683
  }
670
- function Dt(e) {
684
+ function Ut(e) {
671
685
  return A(() => {
672
- }, []), /* @__PURE__ */ s(I, { children: e.children });
686
+ }, []), /* @__PURE__ */ l(w, { children: e.children });
673
687
  }
674
- function Ot(e) {
688
+ function _t(e) {
675
689
  function t() {
676
690
  return e.includeBlockProps ? {
677
691
  ...ce({
@@ -687,8 +701,8 @@ function Ot(e) {
687
701
  })
688
702
  } : {};
689
703
  }
690
- return /* @__PURE__ */ s(I, { children: e.Wrapper.load ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(
691
- Dt,
704
+ return /* @__PURE__ */ l(w, { children: e.Wrapper.load ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
705
+ Ut,
692
706
  {
693
707
  load: e.Wrapper.load,
694
708
  fallback: e.Wrapper.fallback,
@@ -696,9 +710,9 @@ function Ot(e) {
696
710
  attributes: t(),
697
711
  children: e.children
698
712
  }
699
- ) }) : /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
713
+ ) }) : /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
700
714
  }
701
- const Ut = ({
715
+ const Ht = ({
702
716
  componentOptions: e,
703
717
  builderBlock: t,
704
718
  context: n,
@@ -707,7 +721,7 @@ const Ut = ({
707
721
  isInteractive: r,
708
722
  contextValue: a
709
723
  }) => {
710
- const l = {
724
+ const s = {
711
725
  ...e,
712
726
  /**
713
727
  * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
@@ -726,17 +740,17 @@ const Ut = ({
726
740
  context: n,
727
741
  wrapperProps: e,
728
742
  includeBlockProps: o
729
- } : l;
743
+ } : s;
730
744
  };
731
745
  function ge(e) {
732
746
  var i;
733
- const [t, n] = R(
734
- () => e.isInteractive ? Ot : e.componentRef
747
+ const [t, n] = E(
748
+ () => e.isInteractive ? _t : e.componentRef
735
749
  );
736
- return /* @__PURE__ */ s(I, { children: e.componentRef ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(
750
+ return /* @__PURE__ */ l(w, { children: e.componentRef ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
737
751
  t,
738
752
  {
739
- ...Ut({
753
+ ...Ht({
740
754
  componentOptions: e.componentOptions,
741
755
  builderBlock: e.builderBlock,
742
756
  context: e.context,
@@ -746,7 +760,7 @@ function ge(e) {
746
760
  isInteractive: e.isInteractive,
747
761
  contextValue: e.context
748
762
  }),
749
- children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ s(
763
+ children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
750
764
  H,
751
765
  {
752
766
  block: o,
@@ -760,8 +774,8 @@ function ge(e) {
760
774
  ) }) : null });
761
775
  }
762
776
  function be(e) {
763
- const [t, n] = R(() => e.repeatContext);
764
- return /* @__PURE__ */ s(se.Provider, { value: t, children: /* @__PURE__ */ s(
777
+ const [t, n] = E(() => e.repeatContext);
778
+ return /* @__PURE__ */ l(se.Provider, { value: t, children: /* @__PURE__ */ l(
765
779
  H,
766
780
  {
767
781
  block: e.block,
@@ -774,12 +788,12 @@ function be(e) {
774
788
  function H(e) {
775
789
  var h, g, m, y;
776
790
  function t() {
777
- return wt({
791
+ return Rt({
778
792
  block: e.block,
779
793
  context: e.context
780
794
  });
781
795
  }
782
- const [n, i] = R(() => ({
796
+ const [n, i] = E(() => ({
783
797
  value: null,
784
798
  update: !1
785
799
  }));
@@ -787,18 +801,17 @@ function H(e) {
787
801
  var v;
788
802
  if (n.value && !n.update && !ae())
789
803
  return n.value;
790
- const f = (v = e.block.repeat) != null && v.collection ? e.block : pt({
804
+ const f = (v = e.block.repeat) != null && v.collection ? e.block : xt({
791
805
  block: e.block,
792
806
  localState: e.context.localState,
793
807
  rootState: e.context.rootState,
794
808
  rootSetState: e.context.rootSetState,
795
- context: e.context.context,
796
- shouldEvaluateBindings: !0
809
+ context: e.context.context
797
810
  });
798
811
  return n.value = f, n.update = !1, f;
799
812
  }
800
813
  function r() {
801
- return It({
814
+ return Et({
802
815
  block: o(),
803
816
  registeredComponents: e.registeredComponents,
804
817
  model: e.context.model
@@ -808,7 +821,7 @@ function H(e) {
808
821
  var v;
809
822
  return e.block.tagName === "a" || ((v = o().properties) == null ? void 0 : v.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
810
823
  }
811
- function l() {
824
+ function s() {
812
825
  var x, b;
813
826
  if ((x = e.block.repeat) != null && x.collection)
814
827
  return !!((b = t == null ? void 0 : t()) != null && b.length);
@@ -825,11 +838,11 @@ function H(e) {
825
838
  blockChildren: (f = o().children) != null ? f : [],
826
839
  componentRef: (v = r == null ? void 0 : r()) == null ? void 0 : v.component,
827
840
  componentOptions: {
828
- ...ot(o()),
829
- ...Pt(r(), o()),
830
- ...Bt(r(), e.context),
831
- ...Et(r(), e.linkComponent),
832
- ...Rt(
841
+ ...dt(o(), e.context),
842
+ ...Vt(r(), o()),
843
+ ...At(r(), e.context),
844
+ ...Pt(r(), e.linkComponent),
845
+ ...Bt(
833
846
  r(),
834
847
  e.registeredComponents,
835
848
  e.context.model
@@ -845,7 +858,7 @@ function H(e) {
845
858
  }
846
859
  return A(() => {
847
860
  const f = o().id, v = o().animations;
848
- v && f && xt(
861
+ v && f && St(
849
862
  v.map((x) => ({
850
863
  ...x,
851
864
  elementId: f
@@ -853,9 +866,9 @@ function H(e) {
853
866
  );
854
867
  }, []), A(() => {
855
868
  n.update = !0;
856
- }), /* @__PURE__ */ s(I, { children: l() ? /* @__PURE__ */ W(I, { children: [
857
- /* @__PURE__ */ s(Vt, { block: o(), context: e.context }),
858
- (h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(I, { children: (y = t()) == null ? void 0 : y.map((f, v) => /* @__PURE__ */ s(
869
+ }), /* @__PURE__ */ l(w, { children: s() ? /* @__PURE__ */ W(w, { children: [
870
+ /* @__PURE__ */ l(Wt, { block: o(), context: e.context }),
871
+ (h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ l(w, { children: (y = t()) == null ? void 0 : y.map((f, v) => /* @__PURE__ */ l(
859
872
  be,
860
873
  {
861
874
  repeatContext: f.context,
@@ -864,7 +877,7 @@ function H(e) {
864
877
  linkComponent: e.linkComponent
865
878
  },
866
879
  v
867
- )) }) : /* @__PURE__ */ s(
880
+ )) }) : /* @__PURE__ */ l(
868
881
  ge,
869
882
  {
870
883
  componentRef: c().componentRef,
@@ -877,7 +890,7 @@ function H(e) {
877
890
  includeBlockProps: c().includeBlockProps,
878
891
  isInteractive: c().isInteractive
879
892
  }
880
- ) : /* @__PURE__ */ s(I, { children: t() ? /* @__PURE__ */ s(I, { children: (m = t()) == null ? void 0 : m.map((f, v) => /* @__PURE__ */ s(
893
+ ) : /* @__PURE__ */ l(w, { children: t() ? /* @__PURE__ */ l(w, { children: (m = t()) == null ? void 0 : m.map((f, v) => /* @__PURE__ */ l(
881
894
  be,
882
895
  {
883
896
  repeatContext: f.context,
@@ -887,13 +900,13 @@ function H(e) {
887
900
  },
888
901
  v
889
902
  )) }) : /* @__PURE__ */ W(
890
- Lt,
903
+ Ot,
891
904
  {
892
905
  Wrapper: a(),
893
906
  block: o(),
894
907
  context: e.context,
895
908
  children: [
896
- /* @__PURE__ */ s(
909
+ /* @__PURE__ */ l(
897
910
  ge,
898
911
  {
899
912
  componentRef: c().componentRef,
@@ -907,7 +920,7 @@ function H(e) {
907
920
  isInteractive: c().isInteractive
908
921
  }
909
922
  ),
910
- (g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */ s(
923
+ (g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */ l(
911
924
  H,
912
925
  {
913
926
  block: f,
@@ -922,8 +935,8 @@ function H(e) {
922
935
  ) })
923
936
  ] }) : null });
924
937
  }
925
- function Ht(e) {
926
- const t = L(null);
938
+ function Mt(e) {
939
+ const t = D(null);
927
940
  function n() {
928
941
  var a;
929
942
  return [
@@ -939,8 +952,8 @@ function Ht(e) {
939
952
  return e.path.startsWith(a) ? e.path : `${a}${e.path || ""}`;
940
953
  }
941
954
  function o() {
942
- var a, l;
943
- N() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
955
+ var a, s;
956
+ N() && !((a = e.blocks) != null && a.length) && ((s = window.parent) == null || s.postMessage(
944
957
  {
945
958
  type: "builder.clickEmptyBlocks",
946
959
  data: {
@@ -952,8 +965,8 @@ function Ht(e) {
952
965
  ));
953
966
  }
954
967
  function r() {
955
- var a, l;
956
- N() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
968
+ var a, s;
969
+ N() && !((a = e.blocks) != null && a.length) && ((s = window.parent) == null || s.postMessage(
957
970
  {
958
971
  type: "builder.hoverEmptyBlocks",
959
972
  data: {
@@ -965,12 +978,12 @@ function Ht(e) {
965
978
  ));
966
979
  }
967
980
  return A(() => {
968
- }, []), /* @__PURE__ */ W(I, { children: [
969
- /* @__PURE__ */ s(
981
+ }, []), /* @__PURE__ */ W(w, { children: [
982
+ /* @__PURE__ */ l(
970
983
  e.BlocksWrapper,
971
984
  {
972
985
  ref: t,
973
- className: n() + " props-blocks-wrapper-215a41e0",
986
+ className: n() + " props-blocks-wrapper-2c6a6d88",
974
987
  "builder-path": i(),
975
988
  "builder-parent-id": e.parent,
976
989
  style: e.styleProp,
@@ -981,7 +994,7 @@ function Ht(e) {
981
994
  children: e.children
982
995
  }
983
996
  ),
984
- /* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-215a41e0 {
997
+ /* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-2c6a6d88 {
985
998
  display: flex;
986
999
  flex-direction: column;
987
1000
  align-items: stretch;
@@ -991,8 +1004,8 @@ function Ht(e) {
991
1004
  function F(e) {
992
1005
  var i, o, r;
993
1006
  const t = fe(se), n = fe(Pe);
994
- return /* @__PURE__ */ s(
995
- Ht,
1007
+ return /* @__PURE__ */ l(
1008
+ Mt,
996
1009
  {
997
1010
  blocks: e.blocks,
998
1011
  parent: e.parent,
@@ -1001,7 +1014,7 @@ function F(e) {
1001
1014
  classNameProp: e.className,
1002
1015
  BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
1003
1016
  BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
1004
- children: e.blocks ? /* @__PURE__ */ s(I, { children: (r = e.blocks) == null ? void 0 : r.map((a) => /* @__PURE__ */ s(
1017
+ children: e.blocks ? /* @__PURE__ */ l(w, { children: (r = e.blocks) == null ? void 0 : r.map((a) => /* @__PURE__ */ l(
1005
1018
  H,
1006
1019
  {
1007
1020
  block: a,
@@ -1014,8 +1027,8 @@ function F(e) {
1014
1027
  }
1015
1028
  );
1016
1029
  }
1017
- const _t = (e) => `builder-columns ${e}-breakpoints`;
1018
- function Mt(e) {
1030
+ const jt = (e) => `builder-columns ${e}-breakpoints`;
1031
+ function qt(e) {
1019
1032
  var v, x;
1020
1033
  function t() {
1021
1034
  return typeof e.space == "number" ? e.space || 0 : 20;
@@ -1037,7 +1050,7 @@ function Mt(e) {
1037
1050
  const p = r(b), C = t() * (n().length - 1) * (p / 100);
1038
1051
  return `calc(${p}% - ${C}px)`;
1039
1052
  }
1040
- function l({
1053
+ function s({
1041
1054
  stackedStyle: b,
1042
1055
  desktopStyle: p
1043
1056
  }) {
@@ -1055,14 +1068,14 @@ function Mt(e) {
1055
1068
  function h() {
1056
1069
  return {
1057
1070
  "--flex-dir": c(),
1058
- "--flex-dir-tablet": l({
1071
+ "--flex-dir-tablet": s({
1059
1072
  stackedStyle: c(),
1060
1073
  desktopStyle: "row"
1061
1074
  })
1062
1075
  };
1063
1076
  }
1064
1077
  function g(b) {
1065
- const p = b === 0 ? 0 : t(), C = a(b), P = `${p}px`, S = "100%", w = 0;
1078
+ const p = b === 0 ? 0 : t(), C = a(b), V = `${p}px`, k = "100%", T = 0;
1066
1079
  return {
1067
1080
  ...{
1068
1081
  display: "flex",
@@ -1070,29 +1083,29 @@ function Mt(e) {
1070
1083
  alignItems: "stretch"
1071
1084
  },
1072
1085
  width: C,
1073
- ["marginLeft"]: P,
1086
+ ["marginLeft"]: V,
1074
1087
  "--column-width-mobile": d({
1075
- stackedStyle: S,
1088
+ stackedStyle: k,
1076
1089
  desktopStyle: C
1077
1090
  }),
1078
1091
  "--column-margin-left-mobile": d({
1079
- stackedStyle: w,
1080
- desktopStyle: P
1092
+ stackedStyle: T,
1093
+ desktopStyle: V
1081
1094
  }),
1082
- "--column-width-tablet": l({
1083
- stackedStyle: S,
1095
+ "--column-width-tablet": s({
1096
+ stackedStyle: k,
1084
1097
  desktopStyle: C
1085
1098
  }),
1086
- "--column-margin-left-tablet": l({
1087
- stackedStyle: w,
1088
- desktopStyle: P
1099
+ "--column-margin-left-tablet": s({
1100
+ stackedStyle: T,
1101
+ desktopStyle: V
1089
1102
  })
1090
1103
  };
1091
1104
  }
1092
1105
  function m(b) {
1093
- var C, P;
1106
+ var C, V;
1094
1107
  return Oe(
1095
- ((P = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : P.breakpoints) || {}
1108
+ ((V = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : V.breakpoints) || {}
1096
1109
  )[b].max;
1097
1110
  }
1098
1111
  function y() {
@@ -1128,18 +1141,18 @@ function Mt(e) {
1128
1141
  ...b.link ? {
1129
1142
  href: b.link
1130
1143
  } : {},
1131
- [U()]: "builder-column",
1144
+ [_()]: "builder-column",
1132
1145
  style: $e(g(p))
1133
1146
  };
1134
1147
  }
1135
- return /* @__PURE__ */ W(I, { children: [
1148
+ return /* @__PURE__ */ W(w, { children: [
1136
1149
  /* @__PURE__ */ W(
1137
1150
  "div",
1138
1151
  {
1139
- className: _t((v = e.builderBlock) == null ? void 0 : v.id) + " div-49f40bae",
1152
+ className: jt((v = e.builderBlock) == null ? void 0 : v.id) + " div-d55bdf5c",
1140
1153
  style: h(),
1141
1154
  children: [
1142
- /* @__PURE__ */ s(
1155
+ /* @__PURE__ */ l(
1143
1156
  G,
1144
1157
  {
1145
1158
  id: "builderio-columns",
@@ -1147,13 +1160,13 @@ function Mt(e) {
1147
1160
  nonce: e.builderContext.nonce
1148
1161
  }
1149
1162
  ),
1150
- (x = e.columns) == null ? void 0 : x.map((b, p) => /* @__PURE__ */ s(
1163
+ (x = e.columns) == null ? void 0 : x.map((b, p) => /* @__PURE__ */ l(
1151
1164
  le,
1152
1165
  {
1153
1166
  TagName: o(b),
1154
1167
  actionAttributes: {},
1155
1168
  attributes: f(b, p),
1156
- children: /* @__PURE__ */ s(
1169
+ children: /* @__PURE__ */ l(
1157
1170
  F,
1158
1171
  {
1159
1172
  path: `columns.${p}.blocks`,
@@ -1173,23 +1186,23 @@ function Mt(e) {
1173
1186
  ]
1174
1187
  }
1175
1188
  ),
1176
- /* @__PURE__ */ s("style", { children: `.div-49f40bae {
1189
+ /* @__PURE__ */ l("style", { children: `.div-d55bdf5c {
1177
1190
  display: flex;
1178
1191
  line-height: normal;
1179
1192
  }` })
1180
1193
  ] });
1181
1194
  }
1182
- function jt(e) {
1183
- return /* @__PURE__ */ s("span", { children: e.children });
1195
+ function zt(e) {
1196
+ return /* @__PURE__ */ l("span", { children: e.children });
1184
1197
  }
1185
1198
  function pe(e) {
1186
1199
  return e.replace(/http(s)?:/, "");
1187
1200
  }
1188
- function qt(e = "", t, n) {
1201
+ function Kt(e = "", t, n) {
1189
1202
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
1190
1203
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
1191
1204
  }
1192
- function zt(e, t) {
1205
+ function Jt(e, t) {
1193
1206
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1194
1207
  return e;
1195
1208
  if (t === "master")
@@ -1208,12 +1221,12 @@ function Y(e) {
1208
1221
  if (e.match(/builder\.io/)) {
1209
1222
  let n = e;
1210
1223
  const i = Number(e.split("?width=")[1]);
1211
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${qt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1224
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Kt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1212
1225
  }
1213
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [zt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1226
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Jt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1214
1227
  }
1215
- function Kt(e) {
1216
- var o, r, a, l, d, c;
1228
+ function Gt(e) {
1229
+ var o, r, a, s, d, c;
1217
1230
  function t() {
1218
1231
  var m;
1219
1232
  const g = e.image || e.src;
@@ -1245,11 +1258,11 @@ function Kt(e) {
1245
1258
  return e.aspectRatio ? h : void 0;
1246
1259
  }
1247
1260
  return A(() => {
1248
- }, []), /* @__PURE__ */ W(I, { children: [
1249
- /* @__PURE__ */ W(I, { children: [
1261
+ }, []), /* @__PURE__ */ W(w, { children: [
1262
+ /* @__PURE__ */ W(w, { children: [
1250
1263
  /* @__PURE__ */ W("picture", { children: [
1251
- n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1252
- /* @__PURE__ */ s(
1264
+ n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
1265
+ /* @__PURE__ */ l(
1253
1266
  "img",
1254
1267
  {
1255
1268
  loading: e.highPriority ? "eager" : "lazy",
@@ -1261,33 +1274,33 @@ function Kt(e) {
1261
1274
  objectFit: e.backgroundSize || "cover",
1262
1275
  ...i()
1263
1276
  },
1264
- className: "builder-image" + (e.className ? " " + e.className : "") + " img-c071ff08",
1277
+ className: "builder-image" + (e.className ? " " + e.className : "") + " img-11a47ef4",
1265
1278
  src: e.image,
1266
1279
  srcSet: t(),
1267
1280
  sizes: e.sizes
1268
1281
  }
1269
1282
  )
1270
1283
  ] }),
1271
- e.aspectRatio && !((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ s(
1284
+ e.aspectRatio && !((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ l(
1272
1285
  "div",
1273
1286
  {
1274
- className: "builder-image-sizer div-c071ff08",
1287
+ className: "builder-image-sizer div-11a47ef4",
1275
1288
  style: {
1276
1289
  paddingTop: e.aspectRatio * 100 + "%"
1277
1290
  }
1278
1291
  }
1279
1292
  ) : null,
1280
- (l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(I, { children: e.children }) : null,
1281
- !e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ s("div", { className: "div-c071ff08-2", children: e.children }) : null
1293
+ (s = (a = e.builderBlock) == null ? void 0 : a.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(w, { children: e.children }) : null,
1294
+ !e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ l("div", { className: "div-11a47ef4-2", children: e.children }) : null
1282
1295
  ] }),
1283
- /* @__PURE__ */ s("style", { children: `.img-c071ff08 {
1296
+ /* @__PURE__ */ l("style", { children: `.img-11a47ef4 {
1284
1297
  opacity: 1;
1285
1298
  transition: opacity 0.2s ease-in-out;
1286
- }.div-c071ff08 {
1299
+ }.div-11a47ef4 {
1287
1300
  width: 100%;
1288
1301
  pointer-events: none;
1289
1302
  font-size: 0;
1290
- }.div-c071ff08-2 {
1303
+ }.div-11a47ef4-2 {
1291
1304
  display: flex;
1292
1305
  flex-direction: column;
1293
1306
  align-items: stretch;
@@ -1299,8 +1312,8 @@ function Kt(e) {
1299
1312
  }` })
1300
1313
  ] });
1301
1314
  }
1302
- function Jt(e) {
1303
- return /* @__PURE__ */ s(
1315
+ function Yt(e) {
1316
+ return /* @__PURE__ */ l(
1304
1317
  "section",
1305
1318
  {
1306
1319
  ...e.attributes,
@@ -1380,7 +1393,7 @@ const Q = {
1380
1393
  }
1381
1394
  }
1382
1395
  }]
1383
- }, Gt = {
1396
+ }, Qt = {
1384
1397
  name: "Builder:Accordion",
1385
1398
  canHaveChildren: !0,
1386
1399
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -1445,9 +1458,9 @@ const Q = {
1445
1458
  builderLinkComponent: !0
1446
1459
  }
1447
1460
  }, ye = (e) => e.toString();
1448
- function Yt(e) {
1461
+ function Xt(e) {
1449
1462
  var g;
1450
- const [t, n] = R(() => []);
1463
+ const [t, n] = E(() => []);
1451
1464
  function i() {
1452
1465
  return !!(e.grid || e.oneAtATime);
1453
1466
  }
@@ -1479,7 +1492,7 @@ function Yt(e) {
1479
1492
  function a(m) {
1480
1493
  return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
1481
1494
  }
1482
- function l(m) {
1495
+ function s(m) {
1483
1496
  return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
1484
1497
  }
1485
1498
  function d() {
@@ -1523,8 +1536,8 @@ function Yt(e) {
1523
1536
  function h(m) {
1524
1537
  t.includes(m) ? n(i() ? [] : t.filter((y) => y !== m)) : n(i() ? [m] : t.concat(m));
1525
1538
  }
1526
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, y) => /* @__PURE__ */ W(I, { children: [
1527
- /* @__PURE__ */ s(
1539
+ return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, y) => /* @__PURE__ */ W(Ge.Fragment, { children: [
1540
+ /* @__PURE__ */ l(
1528
1541
  "div",
1529
1542
  {
1530
1543
  className: a(y),
@@ -1537,7 +1550,7 @@ function Yt(e) {
1537
1550
  },
1538
1551
  "data-index": y,
1539
1552
  onClick: (f) => h(y),
1540
- children: /* @__PURE__ */ s(
1553
+ children: /* @__PURE__ */ l(
1541
1554
  F,
1542
1555
  {
1543
1556
  blocks: m.title,
@@ -1550,12 +1563,12 @@ function Yt(e) {
1550
1563
  )
1551
1564
  }
1552
1565
  ),
1553
- t.includes(y) ? /* @__PURE__ */ s(
1566
+ t.includes(y) ? /* @__PURE__ */ l(
1554
1567
  "div",
1555
1568
  {
1556
- className: l(y),
1569
+ className: s(y),
1557
1570
  style: c(),
1558
- children: /* @__PURE__ */ s(
1571
+ children: /* @__PURE__ */ l(
1559
1572
  F,
1560
1573
  {
1561
1574
  blocks: m.detail,
@@ -1568,9 +1581,9 @@ function Yt(e) {
1568
1581
  )
1569
1582
  }
1570
1583
  ) : null
1571
- ] })) });
1584
+ ] }, y)) });
1572
1585
  }
1573
- const Qt = {
1586
+ const Zt = {
1574
1587
  name: "Core:Button",
1575
1588
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1576
1589
  defaultStyles: {
@@ -1606,7 +1619,7 @@ const Qt = {
1606
1619
  shouldReceiveBuilderProps: {
1607
1620
  builderLinkComponent: !0
1608
1621
  }
1609
- }, Xt = {
1622
+ }, en = {
1610
1623
  // TODO: ways to statically preprocess JSON for references, functions, etc
1611
1624
  name: "Columns",
1612
1625
  isRSC: !0,
@@ -1785,7 +1798,7 @@ const Qt = {
1785
1798
  });
1786
1799
  }
1787
1800
  const n = e.get("columns");
1788
- Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((l, d) => l + d.get("width"), 0) !== 100) && t();
1801
+ Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((s, d) => s + d.get("width"), 0) !== 100) && t();
1789
1802
  }
1790
1803
  }, {
1791
1804
  name: "space",
@@ -1813,13 +1826,13 @@ const Qt = {
1813
1826
  builderComponents: !0,
1814
1827
  builderLinkComponent: !0
1815
1828
  }
1816
- }, Zt = {
1829
+ }, tn = {
1817
1830
  name: "Fragment",
1818
1831
  static: !0,
1819
1832
  hidden: !0,
1820
1833
  canHaveChildren: !0,
1821
1834
  noWrap: !0
1822
- }, de = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], en = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], tn = {
1835
+ }, de = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], nn = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], on = {
1823
1836
  name: "Image",
1824
1837
  static: !0,
1825
1838
  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",
@@ -1839,7 +1852,7 @@ const Qt = {
1839
1852
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1840
1853
  onChange: (e) => {
1841
1854
  e.delete("srcset"), e.delete("noWebp");
1842
- function n(a, l = 6e4) {
1855
+ function n(a, s = 6e4) {
1843
1856
  return new Promise((d, c) => {
1844
1857
  const h = document.createElement("img");
1845
1858
  let g = !1;
@@ -1849,7 +1862,7 @@ const Qt = {
1849
1862
  console.warn("Image load failed", m.error), c(m.error);
1850
1863
  }), h.src = a, setTimeout(() => {
1851
1864
  g || c(new Error("Image load timed out"));
1852
- }, l);
1865
+ }, s);
1853
1866
  });
1854
1867
  }
1855
1868
  function i(a) {
@@ -1860,8 +1873,8 @@ const Qt = {
1860
1873
  a.type.includes("svg") && e.set("noWebp", !0);
1861
1874
  }), o && (!r || r === 0.7041))
1862
1875
  return n(o).then((a) => {
1863
- const l = e.get("aspectRatio");
1864
- e.get("image") === o && (!l || l === 0.7041) && a.width && a.height && (e.set("aspectRatio", i(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
1876
+ const s = e.get("aspectRatio");
1877
+ e.get("image") === o && (!s || s === 0.7041) && a.width && a.height && (e.set("aspectRatio", i(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
1865
1878
  });
1866
1879
  }
1867
1880
  }, {
@@ -1927,7 +1940,7 @@ const Qt = {
1927
1940
  shouldReceiveBuilderProps: {
1928
1941
  builderBlock: !0
1929
1942
  }
1930
- }, nn = {
1943
+ }, an = {
1931
1944
  name: "Core:Section",
1932
1945
  static: !0,
1933
1946
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1966,7 +1979,7 @@ const Qt = {
1966
1979
  }
1967
1980
  }
1968
1981
  }]
1969
- }, on = {
1982
+ }, rn = {
1970
1983
  name: "Slot",
1971
1984
  isRSC: !0,
1972
1985
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1984,9 +1997,9 @@ const Qt = {
1984
1997
  builderComponents: !0
1985
1998
  }
1986
1999
  };
1987
- function an(e) {
2000
+ function ln(e) {
1988
2001
  var t, n, i;
1989
- return /* @__PURE__ */ s(
2002
+ return /* @__PURE__ */ l(
1990
2003
  "div",
1991
2004
  {
1992
2005
  style: {
@@ -1995,7 +2008,7 @@ function an(e) {
1995
2008
  ...!((t = e.builderContext.context) != null && t.symbolId) && {
1996
2009
  "builder-slot": e.name
1997
2010
  },
1998
- children: /* @__PURE__ */ s(
2011
+ children: /* @__PURE__ */ l(
1999
2012
  F,
2000
2013
  {
2001
2014
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
@@ -2008,7 +2021,7 @@ function an(e) {
2008
2021
  }
2009
2022
  );
2010
2023
  }
2011
- const rn = {
2024
+ const sn = {
2012
2025
  name: "Symbol",
2013
2026
  noWrap: !0,
2014
2027
  static: !0,
@@ -2085,7 +2098,7 @@ const rn = {
2085
2098
  text: "New tab content "
2086
2099
  }
2087
2100
  }
2088
- }, ln = {
2101
+ }, cn = {
2089
2102
  name: "Builder: Tabs",
2090
2103
  inputs: [{
2091
2104
  name: "tabs",
@@ -2189,9 +2202,9 @@ const rn = {
2189
2202
  builderLinkComponent: !0
2190
2203
  }
2191
2204
  };
2192
- function sn(e) {
2205
+ function dn(e) {
2193
2206
  var r;
2194
- const [t, n] = R(
2207
+ const [t, n] = E(
2195
2208
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
2196
2209
  );
2197
2210
  function i(a) {
@@ -2201,7 +2214,7 @@ function sn(e) {
2201
2214
  a === t && e.collapsible ? n(-1) : n(a);
2202
2215
  }
2203
2216
  return /* @__PURE__ */ W("div", { children: [
2204
- /* @__PURE__ */ s(
2217
+ /* @__PURE__ */ l(
2205
2218
  "div",
2206
2219
  {
2207
2220
  className: "builder-tabs-wrap",
@@ -2211,19 +2224,19 @@ function sn(e) {
2211
2224
  justifyContent: e.tabHeaderLayout || "flex-start",
2212
2225
  overflow: "auto"
2213
2226
  },
2214
- children: (r = e.tabs) == null ? void 0 : r.map((a, l) => /* @__PURE__ */ s(
2227
+ children: (r = e.tabs) == null ? void 0 : r.map((a, s) => /* @__PURE__ */ l(
2215
2228
  "span",
2216
2229
  {
2217
- className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
2230
+ className: `builder-tab-wrap ${t === s ? "builder-tab-active" : ""}`,
2218
2231
  style: {
2219
- ...t === l ? e.activeTabStyle : {}
2232
+ ...t === s ? e.activeTabStyle : {}
2220
2233
  },
2221
- onClick: (d) => o(l),
2222
- children: /* @__PURE__ */ s(
2234
+ onClick: (d) => o(s),
2235
+ children: /* @__PURE__ */ l(
2223
2236
  F,
2224
2237
  {
2225
2238
  parent: e.builderBlock.id,
2226
- path: `tabs.${l}.label`,
2239
+ path: `tabs.${s}.label`,
2227
2240
  blocks: a.label,
2228
2241
  context: e.builderContext,
2229
2242
  registeredComponents: e.builderComponents,
@@ -2231,11 +2244,11 @@ function sn(e) {
2231
2244
  }
2232
2245
  )
2233
2246
  },
2234
- l
2247
+ s
2235
2248
  ))
2236
2249
  }
2237
2250
  ),
2238
- i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
2251
+ i(t) ? /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(
2239
2252
  F,
2240
2253
  {
2241
2254
  parent: e.builderBlock.id,
@@ -2248,7 +2261,7 @@ function sn(e) {
2248
2261
  ) }) : null
2249
2262
  ] });
2250
2263
  }
2251
- const cn = {
2264
+ const un = {
2252
2265
  shouldReceiveBuilderProps: {
2253
2266
  builderBlock: !1,
2254
2267
  builderContext: !0
@@ -2271,38 +2284,20 @@ const cn = {
2271
2284
  textAlign: "center"
2272
2285
  }
2273
2286
  };
2274
- function dn(e) {
2275
- function t() {
2276
- var l;
2277
- const n = e.builderContext, {
2278
- context: i,
2279
- localState: o,
2280
- rootState: r,
2281
- rootSetState: a
2282
- } = n;
2283
- return String(((l = e.text) == null ? void 0 : l.toString()) || "").replace(
2284
- /{{([^}]+)}}/g,
2285
- (d, c) => D({
2286
- code: c,
2287
- context: i,
2288
- localState: o,
2289
- rootState: r,
2290
- rootSetState: a
2291
- })
2292
- );
2293
- }
2294
- return /* @__PURE__ */ s(
2287
+ function mn(e) {
2288
+ var t;
2289
+ return /* @__PURE__ */ l(
2295
2290
  "div",
2296
2291
  {
2297
2292
  className: "builder-text",
2298
- dangerouslySetInnerHTML: { __html: t() },
2293
+ dangerouslySetInnerHTML: { __html: ((t = e.text) == null ? void 0 : t.toString()) || "" },
2299
2294
  style: {
2300
2295
  outline: "none"
2301
2296
  }
2302
2297
  }
2303
2298
  );
2304
2299
  }
2305
- const un = {
2300
+ const fn = {
2306
2301
  name: "Custom Code",
2307
2302
  static: !0,
2308
2303
  requiredPermissions: ["editCode"],
@@ -2325,11 +2320,11 @@ const un = {
2325
2320
  advanced: !0
2326
2321
  }]
2327
2322
  };
2328
- function mn(e) {
2329
- const t = L(null), [n, i] = R(() => []), [o, r] = R(() => []);
2323
+ function hn(e) {
2324
+ const t = D(null), [n, i] = E(() => []), [o, r] = E(() => []);
2330
2325
  return A(() => {
2331
- var l;
2332
- if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
2326
+ var s;
2327
+ if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
2333
2328
  return;
2334
2329
  const a = t.current.getElementsByTagName("script");
2335
2330
  for (let d = 0; d < a.length; d++) {
@@ -2354,7 +2349,7 @@ function mn(e) {
2354
2349
  }
2355
2350
  }
2356
2351
  }
2357
- }, []), /* @__PURE__ */ s(
2352
+ }, []), /* @__PURE__ */ l(
2358
2353
  "div",
2359
2354
  {
2360
2355
  ref: t,
@@ -2363,7 +2358,7 @@ function mn(e) {
2363
2358
  }
2364
2359
  );
2365
2360
  }
2366
- const fn = {
2361
+ const gn = {
2367
2362
  name: "Embed",
2368
2363
  static: !0,
2369
2364
  inputs: [{
@@ -2378,9 +2373,9 @@ const fn = {
2378
2373
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2379
2374
  hideFromUI: !0
2380
2375
  }]
2381
- }, hn = ["text/javascript", "application/javascript", "application/ecmascript"], gn = (e) => hn.includes(e.type);
2382
- function bn(e) {
2383
- const t = L(null), [n, i] = R(() => []), [o, r] = R(() => []), [a, l] = R(() => !1);
2376
+ }, bn = ["text/javascript", "application/javascript", "application/ecmascript"], pn = (e) => bn.includes(e.type);
2377
+ function yn(e) {
2378
+ const t = D(null), [n, i] = E(() => []), [o, r] = E(() => []), [a, s] = E(() => !1);
2384
2379
  function d() {
2385
2380
  if (!t.current || !t.current.getElementsByTagName)
2386
2381
  return;
@@ -2391,7 +2386,7 @@ function bn(e) {
2391
2386
  n.push(g.src);
2392
2387
  const m = document.createElement("script");
2393
2388
  m.async = !0, m.src = g.src, document.head.appendChild(m);
2394
- } else if (gn(g) && !o.includes(g.innerText))
2389
+ } else if (pn(g) && !o.includes(g.innerText))
2395
2390
  try {
2396
2391
  o.push(g.innerText), new Function(g.innerText)();
2397
2392
  } catch (m) {
@@ -2400,8 +2395,8 @@ function bn(e) {
2400
2395
  }
2401
2396
  }
2402
2397
  return A(() => {
2403
- t.current && !a && (l(!0), d());
2404
- }, [t.current, a]), /* @__PURE__ */ s(
2398
+ t.current && !a && (s(!0), d());
2399
+ }, [t.current, a]), /* @__PURE__ */ l(
2405
2400
  "div",
2406
2401
  {
2407
2402
  className: "builder-embed",
@@ -2410,7 +2405,7 @@ function bn(e) {
2410
2405
  }
2411
2406
  );
2412
2407
  }
2413
- const pn = {
2408
+ const xn = {
2414
2409
  name: "Form:Form",
2415
2410
  // editableTags: ['builder-form-error']
2416
2411
  defaults: {
@@ -2647,13 +2642,13 @@ const pn = {
2647
2642
  builderComponents: !0,
2648
2643
  builderLinkComponent: !0
2649
2644
  }
2650
- }, yn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], xn = () => {
2645
+ }, vn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Sn = () => {
2651
2646
  const e = process.env.NODE_ENV || "production";
2652
- return yn.includes(e) ? e : "production";
2647
+ return vn.includes(e) ? e : "production";
2653
2648
  };
2654
- function vn(e) {
2649
+ function kn(e) {
2655
2650
  var g, m;
2656
- const t = L(null), [n, i] = R(() => "unsubmitted"), [o, r] = R(() => null), [a, l] = R(() => "");
2651
+ const t = D(null), [n, i] = E(() => "unsubmitted"), [o, r] = E(() => null), [a, s] = E(() => "");
2657
2652
  function d(y) {
2658
2653
  var v, x;
2659
2654
  const f = {
@@ -2678,86 +2673,86 @@ function vn(e) {
2678
2673
  y.preventDefault();
2679
2674
  const x = y.currentTarget || y.target, b = e.customHeaders || {};
2680
2675
  let p;
2681
- const C = new FormData(x), P = Array.from(x.querySelectorAll("input,select,textarea")).filter((u) => !!u.name).map((u) => {
2682
- let k;
2683
- const V = u.name;
2676
+ const C = new FormData(x), V = Array.from(x.querySelectorAll("input,select,textarea")).filter((u) => !!u.name).map((u) => {
2677
+ let S;
2678
+ const P = u.name;
2684
2679
  if (u instanceof HTMLInputElement)
2685
2680
  if (u.type === "radio") {
2686
2681
  if (u.checked)
2687
- return k = u.name, {
2688
- key: V,
2689
- value: k
2682
+ return S = u.name, {
2683
+ key: P,
2684
+ value: S
2690
2685
  };
2691
2686
  } else if (u.type === "checkbox")
2692
- k = u.checked;
2687
+ S = u.checked;
2693
2688
  else if (u.type === "number" || u.type === "range") {
2694
- const E = u.valueAsNumber;
2695
- isNaN(E) || (k = E);
2689
+ const I = u.valueAsNumber;
2690
+ isNaN(I) || (S = I);
2696
2691
  } else
2697
- u.type === "file" ? k = u.files : k = u.value;
2692
+ u.type === "file" ? S = u.files : S = u.value;
2698
2693
  else
2699
- k = u.value;
2694
+ S = u.value;
2700
2695
  return {
2701
- key: V,
2702
- value: k
2696
+ key: P,
2697
+ value: S
2703
2698
  };
2704
2699
  });
2705
- let S = e.contentType;
2706
- if (e.sendSubmissionsTo === "email" && (S = "multipart/form-data"), Array.from(P).forEach(({ value: u }) => {
2707
- (u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (S = "multipart/form-data");
2708
- }), S !== "application/json")
2700
+ let k = e.contentType;
2701
+ if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(V).forEach(({ value: u }) => {
2702
+ (u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (k = "multipart/form-data");
2703
+ }), k !== "application/json")
2709
2704
  p = C;
2710
2705
  else {
2711
2706
  const u = {};
2712
- Array.from(P).forEach(({ value: k, key: V }) => {
2713
- Re(u, V, k);
2707
+ Array.from(V).forEach(({ value: S, key: P }) => {
2708
+ Re(u, P, S);
2714
2709
  }), p = JSON.stringify(u);
2715
2710
  }
2716
- S && S !== "multipart/form-data" && (f && ((v = e.action) != null && v.includes("zapier.com")) || (b["content-type"] = S));
2717
- const w = new CustomEvent("presubmit", { detail: { body: p } });
2718
- if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
2711
+ k && k !== "multipart/form-data" && (f && ((v = e.action) != null && v.includes("zapier.com")) || (b["content-type"] = k));
2712
+ const T = new CustomEvent("presubmit", { detail: { body: p } });
2713
+ if (t.current && (t.current.dispatchEvent(T), T.defaultPrevented))
2719
2714
  return;
2720
2715
  i("sending");
2721
- const B = `${xn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2716
+ const R = `${Sn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2722
2717
  e.sendSubmissionsToEmail || ""
2723
- )}&name=${encodeURIComponent(e.name || "")}`, T = e.sendSubmissionsTo === "email" ? B : e.action;
2724
- Te(T), fetch(T, { body: p, headers: b, method: e.method || "post" }).then(
2718
+ )}&name=${encodeURIComponent(e.name || "")}`, B = e.sendSubmissionsTo === "email" ? R : e.action;
2719
+ Te(B), fetch(B, { body: p, headers: b, method: e.method || "post" }).then(
2725
2720
  async (u) => {
2726
- let k;
2727
- const V = u.headers.get("content-type");
2728
- if (V && V.indexOf("application/json") !== -1 ? k = await u.json() : k = await u.text(), !u.ok && e.errorMessagePath) {
2729
- let E = Be(k, e.errorMessagePath);
2730
- E && (typeof E != "string" && (E = JSON.stringify(E)), l(E), d({ formErrorMessage: E }));
2721
+ let S;
2722
+ const P = u.headers.get("content-type");
2723
+ if (P && P.indexOf("application/json") !== -1 ? S = await u.json() : S = await u.text(), !u.ok && e.errorMessagePath) {
2724
+ let I = Be(S, e.errorMessagePath);
2725
+ I && (typeof I != "string" && (I = JSON.stringify(I)), s(I), d({ formErrorMessage: I }));
2731
2726
  }
2732
- if (r(k), i(u.ok ? "success" : "error"), u.ok) {
2733
- const E = new CustomEvent("submit:success", {
2734
- detail: { res: u, body: k }
2727
+ if (r(S), i(u.ok ? "success" : "error"), u.ok) {
2728
+ const I = new CustomEvent("submit:success", {
2729
+ detail: { res: u, body: S }
2735
2730
  });
2736
2731
  if (t.current) {
2737
- if (t.current.dispatchEvent(E), E.defaultPrevented)
2732
+ if (t.current.dispatchEvent(I), I.defaultPrevented)
2738
2733
  return;
2739
2734
  e.resetFormOnSubmit !== !1 && t.current.reset();
2740
2735
  }
2741
2736
  if (e.successUrl)
2742
2737
  if (t.current) {
2743
- const _ = new CustomEvent("route", {
2738
+ const L = new CustomEvent("route", {
2744
2739
  detail: { url: e.successUrl }
2745
2740
  });
2746
- t.current.dispatchEvent(_), _.defaultPrevented || (location.href = e.successUrl);
2741
+ t.current.dispatchEvent(L), L.defaultPrevented || (location.href = e.successUrl);
2747
2742
  } else
2748
2743
  location.href = e.successUrl;
2749
2744
  }
2750
2745
  },
2751
2746
  (u) => {
2752
- const k = new CustomEvent("submit:error", {
2747
+ const S = new CustomEvent("submit:error", {
2753
2748
  detail: { error: u }
2754
2749
  });
2755
- t.current && (t.current.dispatchEvent(k), k.defaultPrevented) || (r(u), i("error"));
2750
+ t.current && (t.current.dispatchEvent(S), S.defaultPrevented) || (r(u), i("error"));
2756
2751
  }
2757
2752
  );
2758
2753
  }
2759
2754
  }
2760
- return /* @__PURE__ */ W(I, { children: [
2755
+ return /* @__PURE__ */ W(w, { children: [
2761
2756
  " ",
2762
2757
  /* @__PURE__ */ W(
2763
2758
  "form",
@@ -2770,7 +2765,7 @@ function vn(e) {
2770
2765
  onSubmit: (y) => h(y),
2771
2766
  ...e.attributes,
2772
2767
  children: [
2773
- e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(I, { children: (m = (g = e.builderBlock) == null ? void 0 : g.children) == null ? void 0 : m.map((y, f) => /* @__PURE__ */ s(
2768
+ e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(w, { children: (m = (g = e.builderBlock) == null ? void 0 : g.children) == null ? void 0 : m.map((y, f) => /* @__PURE__ */ l(
2774
2769
  H,
2775
2770
  {
2776
2771
  block: y,
@@ -2780,7 +2775,7 @@ function vn(e) {
2780
2775
  },
2781
2776
  `form-block-${f}`
2782
2777
  )) }) : null,
2783
- c() === "error" ? /* @__PURE__ */ s(
2778
+ c() === "error" ? /* @__PURE__ */ l(
2784
2779
  F,
2785
2780
  {
2786
2781
  path: "errorMessage",
@@ -2788,7 +2783,7 @@ function vn(e) {
2788
2783
  context: e.builderContext
2789
2784
  }
2790
2785
  ) : null,
2791
- c() === "sending" ? /* @__PURE__ */ s(
2786
+ c() === "sending" ? /* @__PURE__ */ l(
2792
2787
  F,
2793
2788
  {
2794
2789
  path: "sendingMessage",
@@ -2796,8 +2791,8 @@ function vn(e) {
2796
2791
  context: e.builderContext
2797
2792
  }
2798
2793
  ) : null,
2799
- c() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-135d4696", children: JSON.stringify(o, null, 2) }) : null,
2800
- c() === "success" ? /* @__PURE__ */ s(
2794
+ c() === "error" && o ? /* @__PURE__ */ l("pre", { className: "builder-form-error-text pre-3f9754fe", children: JSON.stringify(o, null, 2) }) : null,
2795
+ c() === "success" ? /* @__PURE__ */ l(
2801
2796
  F,
2802
2797
  {
2803
2798
  path: "successMessage",
@@ -2809,11 +2804,11 @@ function vn(e) {
2809
2804
  }
2810
2805
  ),
2811
2806
  " ",
2812
- /* @__PURE__ */ s("style", { children: ".pre-135d4696 { padding: 10px; color: red; text-align: center; }" }),
2807
+ /* @__PURE__ */ l("style", { children: ".pre-3f9754fe { padding: 10px; color: red; text-align: center; }" }),
2813
2808
  " "
2814
2809
  ] });
2815
2810
  }
2816
- const Sn = {
2811
+ const Cn = {
2817
2812
  name: "Form:Input",
2818
2813
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2819
2814
  inputs: [
@@ -2865,7 +2860,7 @@ const Sn = {
2865
2860
  borderColor: "#ccc"
2866
2861
  }
2867
2862
  };
2868
- function kn(e) {
2863
+ function Tn(e) {
2869
2864
  return /* @__PURE__ */ Ee(
2870
2865
  "input",
2871
2866
  {
@@ -2880,7 +2875,7 @@ function kn(e) {
2880
2875
  }
2881
2876
  );
2882
2877
  }
2883
- const Cn = {
2878
+ const In = {
2884
2879
  name: "Form:Select",
2885
2880
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2886
2881
  defaultStyles: {
@@ -2923,7 +2918,7 @@ const Cn = {
2923
2918
  static: !0,
2924
2919
  noWrap: !0
2925
2920
  };
2926
- function Tn(e) {
2921
+ function wn(e) {
2927
2922
  var t;
2928
2923
  return /* @__PURE__ */ Ee(
2929
2924
  "select",
@@ -2935,10 +2930,10 @@ function Tn(e) {
2935
2930
  name: e.name,
2936
2931
  required: e.required
2937
2932
  },
2938
- (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2933
+ (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ l("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2939
2934
  );
2940
2935
  }
2941
- const In = {
2936
+ const En = {
2942
2937
  name: "Form:SubmitButton",
2943
2938
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2944
2939
  defaultStyles: {
@@ -2964,10 +2959,10 @@ const In = {
2964
2959
  // TODO: defaultChildren
2965
2960
  // canHaveChildren: true,
2966
2961
  };
2967
- function wn(e) {
2968
- return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
2962
+ function Rn(e) {
2963
+ return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
2969
2964
  }
2970
- const En = {
2965
+ const Pn = {
2971
2966
  name: "Form:TextArea",
2972
2967
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
2973
2968
  inputs: [{
@@ -3004,8 +2999,8 @@ const En = {
3004
2999
  static: !0,
3005
3000
  noWrap: !0
3006
3001
  };
3007
- function Rn(e) {
3008
- return /* @__PURE__ */ s(
3002
+ function Bn(e) {
3003
+ return /* @__PURE__ */ l(
3009
3004
  "textarea",
3010
3005
  {
3011
3006
  ...e.attributes,
@@ -3017,7 +3012,7 @@ function Rn(e) {
3017
3012
  }
3018
3013
  );
3019
3014
  }
3020
- const Pn = {
3015
+ const Vn = {
3021
3016
  // friendlyName?
3022
3017
  name: "Raw:Img",
3023
3018
  hideFromInsertMenu: !0,
@@ -3032,8 +3027,8 @@ const Pn = {
3032
3027
  noWrap: !0,
3033
3028
  static: !0
3034
3029
  };
3035
- function Bn(e) {
3036
- return /* @__PURE__ */ s(
3030
+ function An(e) {
3031
+ return /* @__PURE__ */ l(
3037
3032
  "img",
3038
3033
  {
3039
3034
  style: {
@@ -3047,7 +3042,7 @@ function Bn(e) {
3047
3042
  N() && e.imgSrc || "default-key"
3048
3043
  );
3049
3044
  }
3050
- const Vn = {
3045
+ const Wn = {
3051
3046
  name: "Video",
3052
3047
  canHaveChildren: !0,
3053
3048
  defaultStyles: {
@@ -3058,7 +3053,7 @@ const Vn = {
3058
3053
  inputs: [{
3059
3054
  name: "video",
3060
3055
  type: "file",
3061
- allowedFileTypes: en,
3056
+ allowedFileTypes: nn,
3062
3057
  bubble: !0,
3063
3058
  defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
3064
3059
  required: !0
@@ -3132,8 +3127,8 @@ const Vn = {
3132
3127
  builderBlock: !0
3133
3128
  }
3134
3129
  };
3135
- function An(e) {
3136
- var i, o, r, a, l, d, c;
3130
+ function Nn(e) {
3131
+ var i, o, r, a, s, d, c;
3137
3132
  function t() {
3138
3133
  return {
3139
3134
  ...e.autoPlay === !0 ? {
@@ -3165,7 +3160,7 @@ function An(e) {
3165
3160
  position: "relative"
3166
3161
  },
3167
3162
  children: [
3168
- /* @__PURE__ */ s(
3163
+ /* @__PURE__ */ l(
3169
3164
  "video",
3170
3165
  {
3171
3166
  className: "builder-video",
@@ -3187,10 +3182,10 @@ function An(e) {
3187
3182
  },
3188
3183
  src: e.video || "no-src",
3189
3184
  poster: e.posterImage,
3190
- children: e.lazyLoad ? null : /* @__PURE__ */ s("source", { type: "video/mp4", src: e.video })
3185
+ children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
3191
3186
  }
3192
3187
  ),
3193
- e.aspectRatio && !(e.fitContent && ((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length)) ? /* @__PURE__ */ s(
3188
+ e.aspectRatio && !(e.fitContent && ((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length)) ? /* @__PURE__ */ l(
3194
3189
  "div",
3195
3190
  {
3196
3191
  style: {
@@ -3201,7 +3196,7 @@ function An(e) {
3201
3196
  }
3202
3197
  }
3203
3198
  ) : null,
3204
- (l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
3199
+ (s = (a = e.builderBlock) == null ? void 0 : a.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(
3205
3200
  "div",
3206
3201
  {
3207
3202
  style: {
@@ -3212,7 +3207,7 @@ function An(e) {
3212
3207
  children: e.children
3213
3208
  }
3214
3209
  ) : null,
3215
- (c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ s(
3210
+ (c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ l(
3216
3211
  "div",
3217
3212
  {
3218
3213
  style: {
@@ -3233,64 +3228,64 @@ function An(e) {
3233
3228
  }
3234
3229
  );
3235
3230
  }
3236
- const Wn = () => [{
3237
- component: mn,
3238
- ...un
3239
- }, {
3240
- component: bn,
3231
+ const Fn = () => [{
3232
+ component: hn,
3241
3233
  ...fn
3242
3234
  }, {
3243
- component: vn,
3244
- ...pn
3235
+ component: yn,
3236
+ ...gn
3245
3237
  }, {
3246
3238
  component: kn,
3247
- ...Sn
3248
- }, {
3249
- component: wn,
3250
- ...In
3239
+ ...xn
3251
3240
  }, {
3252
3241
  component: Tn,
3253
3242
  ...Cn
3254
3243
  }, {
3255
3244
  component: Rn,
3256
3245
  ...En
3246
+ }, {
3247
+ component: wn,
3248
+ ...In
3257
3249
  }, {
3258
3250
  component: Bn,
3259
3251
  ...Pn
3260
3252
  }, {
3261
3253
  component: An,
3262
3254
  ...Vn
3263
- }], xe = () => [{
3264
- component: it,
3265
- ...Qt
3266
- }, {
3267
- component: Mt,
3268
- ...Xt
3269
3255
  }, {
3270
- component: jt,
3256
+ component: Nn,
3257
+ ...Wn
3258
+ }], xe = () => [{
3259
+ component: ot,
3271
3260
  ...Zt
3272
3261
  }, {
3273
- component: Kt,
3274
- ...tn
3262
+ component: qt,
3263
+ ...en
3275
3264
  }, {
3276
- component: Jt,
3277
- ...nn
3265
+ component: zt,
3266
+ ...tn
3278
3267
  }, {
3279
- component: an,
3268
+ component: Gt,
3280
3269
  ...on
3281
3270
  }, {
3282
- component: ii,
3271
+ component: Yt,
3272
+ ...an
3273
+ }, {
3274
+ component: ln,
3283
3275
  ...rn
3276
+ }, {
3277
+ component: ai,
3278
+ ...sn
3279
+ }, {
3280
+ component: mn,
3281
+ ...un
3284
3282
  }, {
3285
3283
  component: dn,
3286
3284
  ...cn
3287
3285
  }, {
3288
- component: sn,
3289
- ...ln
3290
- }, {
3291
- component: Yt,
3292
- ...Gt
3293
- }, ...Wn()], Nn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3286
+ component: Xt,
3287
+ ...Qt
3288
+ }, ...Fn()], $n = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3294
3289
  function getAndSetVariantId() {
3295
3290
  function setCookie(name, value, days) {
3296
3291
  let expires = '';
@@ -3346,7 +3341,7 @@ const Wn = () => [{
3346
3341
  }).join('');
3347
3342
  styleEl.innerHTML = newStyleStr;
3348
3343
  }
3349
- }`, Fn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3344
+ }`, Ln = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3350
3345
  if (!navigator.cookieEnabled) {
3351
3346
  return;
3352
3347
  }
@@ -3380,27 +3375,27 @@ const Wn = () => [{
3380
3375
  thisScriptEl?.remove();
3381
3376
  }
3382
3377
  return;
3383
- }`, He = "builderIoAbTest", _e = "builderIoRenderContent", j = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3378
+ }`, _e = "builderIoAbTest", He = "builderIoRenderContent", j = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3384
3379
  ...t,
3385
3380
  testVariationId: t.id,
3386
3381
  id: e == null ? void 0 : e.id
3387
- })), $n = ({
3382
+ })), Dn = ({
3388
3383
  canTrack: e,
3389
3384
  content: t
3390
- }) => !(!(j(t).length > 0) || !e || q()), Ln = (e) => e === "react" || e === "reactNative", Me = Ln($), Dn = () => `
3391
- window.${He} = ${Nn}
3392
- window.${_e} = ${Fn}
3393
- `, On = (e, t) => `
3394
- window.${He}(
3385
+ }) => !(!(j(t).length > 0) || !e || q()), On = (e) => e === "react" || e === "reactNative", Me = On($), Un = () => `
3386
+ window.${_e} = ${$n}
3387
+ window.${He} = ${Ln}
3388
+ `, _n = (e, t) => `
3389
+ window.${_e}(
3395
3390
  "${t}",${JSON.stringify(e)}, ${Me}
3396
- )`, Un = ({
3391
+ )`, Hn = ({
3397
3392
  contentId: e,
3398
3393
  variationId: t
3399
- }) => `window.${_e}(
3394
+ }) => `window.${He}(
3400
3395
  "${t}", "${e}", ${Me}
3401
3396
  )`;
3402
3397
  function ie(e) {
3403
- return /* @__PURE__ */ s(
3398
+ return /* @__PURE__ */ l(
3404
3399
  "script",
3405
3400
  {
3406
3401
  dangerouslySetInnerHTML: { __html: e.scriptStr },
@@ -3412,7 +3407,7 @@ function ie(e) {
3412
3407
  function ve(e) {
3413
3408
  return Math.round(e * 1e3) / 1e3;
3414
3409
  }
3415
- const Hn = (e, t, n = !0) => {
3410
+ const Mn = (e, t, n = !0) => {
3416
3411
  if (!(e instanceof HTMLElement))
3417
3412
  return null;
3418
3413
  let i = n ? e : e.parentElement;
@@ -3423,7 +3418,7 @@ const Hn = (e, t, n = !0) => {
3423
3418
  return i;
3424
3419
  } while (i = i.parentElement);
3425
3420
  return null;
3426
- }, _n = (e) => Hn(e, (t) => {
3421
+ }, jn = (e) => Mn(e, (t) => {
3427
3422
  const n = t.getAttribute("builder-id") || t.id;
3428
3423
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3429
3424
  }), Se = ({
@@ -3435,8 +3430,8 @@ const Hn = (e, t, n = !0) => {
3435
3430
  x: r,
3436
3431
  y: a
3437
3432
  };
3438
- }, Mn = (e) => {
3439
- const t = e.target, n = t && _n(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3433
+ }, qn = (e) => {
3434
+ const t = e.target, n = t && jn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3440
3435
  return {
3441
3436
  targetBuilderElement: i || void 0,
3442
3437
  metadata: {
@@ -3451,7 +3446,7 @@ const Hn = (e, t, n = !0) => {
3451
3446
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3452
3447
  }
3453
3448
  };
3454
- }, jn = ["svelte", "qwik", "vue"], ke = () => jn.includes($) && (N() || ae()), qn = (e) => {
3449
+ }, zn = ["svelte", "qwik", "vue"], ke = () => zn.includes($) && (N() || ae()), Kn = (e) => {
3455
3450
  var r, a;
3456
3451
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
3457
3452
  let o = "";
@@ -3463,29 +3458,29 @@ font-display: fallback;
3463
3458
  font-weight: 400;
3464
3459
  }
3465
3460
  `.trim()), e.files)
3466
- for (const l in e.files) {
3467
- if (!(String(Number(l)) === l))
3461
+ for (const s in e.files) {
3462
+ if (!(String(Number(s)) === s))
3468
3463
  continue;
3469
- const c = e.files[l];
3464
+ const c = e.files[s];
3470
3465
  c && c !== i && (o += `
3471
3466
  @font-face {
3472
3467
  font-family: "${t}";
3473
3468
  src: url('${c}') format('woff2');
3474
3469
  font-display: fallback;
3475
- font-weight: ${l};
3470
+ font-weight: ${s};
3476
3471
  }
3477
3472
  `.trim());
3478
3473
  }
3479
3474
  return o;
3480
- }, zn = ({
3475
+ }, Jn = ({
3481
3476
  customFonts: e
3482
3477
  }) => {
3483
3478
  var t;
3484
- return ((t = e == null ? void 0 : e.map((n) => qn(n))) == null ? void 0 : t.join(" ")) || "";
3485
- }, Kn = ({
3479
+ return ((t = e == null ? void 0 : e.map((n) => Kn(n))) == null ? void 0 : t.join(" ")) || "";
3480
+ }, Gn = ({
3486
3481
  cssCode: e,
3487
3482
  contentId: t
3488
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Jn = `
3483
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Yn = `
3489
3484
  .builder-button {
3490
3485
  all: unset;
3491
3486
  }
@@ -3502,39 +3497,39 @@ font-weight: ${l};
3502
3497
  text-align: inherit;
3503
3498
  font-family: inherit;
3504
3499
  }
3505
- `, Gn = (e) => e ? "" : Jn, Yn = (e) => `variant-${e}`;
3506
- function Qn(e) {
3507
- var p, C, P;
3508
- const t = L(null);
3509
- function n(S) {
3510
- var B, T;
3511
- const w = {
3500
+ `, Qn = (e) => e ? "" : Yn, Xn = (e) => `variant-${e}`;
3501
+ function Zn(e) {
3502
+ var p, C, V;
3503
+ const t = D(null);
3504
+ function n(k) {
3505
+ var R, B;
3506
+ const T = {
3512
3507
  ...e.builderContextSignal.rootState,
3513
- ...S
3508
+ ...k
3514
3509
  };
3515
- e.builderContextSignal.rootSetState ? (T = (B = e.builderContextSignal).rootSetState) == null || T.call(B, w) : e.setBuilderContextSignal((u) => ({
3510
+ e.builderContextSignal.rootSetState ? (B = (R = e.builderContextSignal).rootSetState) == null || B.call(R, T) : e.setBuilderContextSignal((u) => ({
3516
3511
  ...u,
3517
- rootState: w
3512
+ rootState: T
3518
3513
  }));
3519
3514
  }
3520
- function i(S) {
3521
- var B, T, u, k, V;
3522
- const w = {
3515
+ function i(k) {
3516
+ var R, B, u, S, P;
3517
+ const T = {
3523
3518
  ...e.builderContextSignal.content,
3524
- ...S,
3519
+ ...k,
3525
3520
  data: {
3526
- ...(B = e.builderContextSignal.content) == null ? void 0 : B.data,
3527
- ...S == null ? void 0 : S.data
3521
+ ...(R = e.builderContextSignal.content) == null ? void 0 : R.data,
3522
+ ...k == null ? void 0 : k.data
3528
3523
  },
3529
3524
  meta: {
3530
- ...(T = e.builderContextSignal.content) == null ? void 0 : T.meta,
3531
- ...S == null ? void 0 : S.meta,
3532
- breakpoints: ((u = S == null ? void 0 : S.meta) == null ? void 0 : u.breakpoints) || ((V = (k = e.builderContextSignal.content) == null ? void 0 : k.meta) == null ? void 0 : V.breakpoints)
3525
+ ...(B = e.builderContextSignal.content) == null ? void 0 : B.meta,
3526
+ ...k == null ? void 0 : k.meta,
3527
+ breakpoints: ((u = k == null ? void 0 : k.meta) == null ? void 0 : u.breakpoints) || ((P = (S = e.builderContextSignal.content) == null ? void 0 : S.meta) == null ? void 0 : P.breakpoints)
3533
3528
  }
3534
3529
  };
3535
- e.setBuilderContextSignal((E) => ({
3536
- ...E,
3537
- content: w
3530
+ e.setBuilderContextSignal((I) => ({
3531
+ ...I,
3532
+ content: T
3538
3533
  }));
3539
3534
  }
3540
3535
  function o() {
@@ -3543,62 +3538,62 @@ function Qn(e) {
3543
3538
  "aria-hidden": !0
3544
3539
  };
3545
3540
  }
3546
- const [r, a] = R(
3541
+ const [r, a] = E(
3547
3542
  () => e.contentWrapper || "div"
3548
3543
  );
3549
- function l(S) {
3544
+ function s(k) {
3550
3545
  return Ke({
3551
3546
  model: e.model,
3552
3547
  trustedHosts: e.trustedHosts,
3553
3548
  callbacks: {
3554
- configureSdk: (w) => {
3549
+ configureSdk: (T) => {
3555
3550
  var u;
3556
- const { breakpoints: B, contentId: T } = w;
3557
- !T || T !== ((u = e.builderContextSignal.content) == null ? void 0 : u.id) || B && i({
3551
+ const { breakpoints: R, contentId: B } = T;
3552
+ !B || B !== ((u = e.builderContextSignal.content) == null ? void 0 : u.id) || R && i({
3558
3553
  meta: {
3559
- breakpoints: B
3554
+ breakpoints: R
3560
3555
  }
3561
3556
  });
3562
3557
  },
3563
- animation: (w) => {
3564
- Ne(w);
3558
+ animation: (T) => {
3559
+ Ne(T);
3565
3560
  },
3566
- contentUpdate: (w) => {
3567
- i(w);
3561
+ contentUpdate: (T) => {
3562
+ i(T);
3568
3563
  }
3569
3564
  }
3570
- })(S);
3565
+ })(k);
3571
3566
  }
3572
- const [d, c] = R(() => ({})), [h, g] = R(() => ({})), [m, y] = R(() => !1);
3573
- function f(S) {
3574
- var w, B;
3567
+ const [d, c] = E(() => ({})), [h, g] = E(() => ({})), [m, y] = E(() => !1);
3568
+ function f(k) {
3569
+ var T, R;
3575
3570
  if (e.builderContextSignal.content) {
3576
- const T = (w = e.builderContextSignal.content) == null ? void 0 : w.testVariationId, u = (B = e.builderContextSignal.content) == null ? void 0 : B.id;
3571
+ const B = (T = e.builderContextSignal.content) == null ? void 0 : T.testVariationId, u = (R = e.builderContextSignal.content) == null ? void 0 : R.id;
3577
3572
  ue({
3578
3573
  apiHost: e.apiHost,
3579
3574
  type: "click",
3580
3575
  canTrack: z(e.canTrack),
3581
3576
  contentId: u,
3582
3577
  apiKey: e.apiKey,
3583
- variationId: T !== u ? T : void 0,
3584
- ...Mn(S),
3578
+ variationId: B !== u ? B : void 0,
3579
+ ...qn(k),
3585
3580
  unique: !m
3586
3581
  });
3587
3582
  }
3588
3583
  m || y(!0);
3589
3584
  }
3590
3585
  function v() {
3591
- var w, B, T;
3592
- const S = (T = (B = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : B.httpRequests) != null ? T : {};
3593
- Object.entries(S).forEach(([u, k]) => {
3594
- if (!k || h[u] || d[u] && !N())
3586
+ var T, R, B;
3587
+ const k = (B = (R = (T = e.builderContextSignal.content) == null ? void 0 : T.data) == null ? void 0 : R.httpRequests) != null ? B : {};
3588
+ Object.entries(k).forEach(([u, S]) => {
3589
+ if (!S || h[u] || d[u] && !N())
3595
3590
  return;
3596
3591
  h[u] = !0;
3597
- const V = k.replace(
3592
+ const P = S.replace(
3598
3593
  /{{([^}]+)}}/g,
3599
- (E, _) => String(
3600
- D({
3601
- code: _,
3594
+ (I, L) => String(
3595
+ O({
3596
+ code: L,
3602
3597
  context: e.context || {},
3603
3598
  localState: void 0,
3604
3599
  rootState: e.builderContextSignal.rootState,
@@ -3606,12 +3601,12 @@ function Qn(e) {
3606
3601
  })
3607
3602
  )
3608
3603
  );
3609
- Te(V), fetch(V).then((E) => E.json()).then((E) => {
3604
+ Te(P), fetch(P).then((I) => I.json()).then((I) => {
3610
3605
  n({
3611
- [u]: E
3606
+ [u]: I
3612
3607
  }), d[u] = !0;
3613
- }).catch((E) => {
3614
- console.error("error fetching dynamic data", k, E);
3608
+ }).catch((I) => {
3609
+ console.error("error fetching dynamic data", S, I);
3615
3610
  }).finally(() => {
3616
3611
  h[u] = !1;
3617
3612
  });
@@ -3632,11 +3627,11 @@ function Qn(e) {
3632
3627
  )
3633
3628
  );
3634
3629
  }
3635
- const b = L(!1);
3630
+ const b = D(!1);
3636
3631
  return b.current || (v(), x(), b.current = !0), A(() => {
3637
- var S, w;
3632
+ var k, T, R;
3638
3633
  if (q()) {
3639
- if (N() && !e.isNestedRender && (window.addEventListener("message", l), je(), qe({
3634
+ if (N() && !e.isNestedRender && (window.addEventListener("message", s), je(), qe({
3640
3635
  ...e.locale ? {
3641
3636
  locale: e.locale
3642
3637
  } : {},
@@ -3648,36 +3643,41 @@ function Qn(e) {
3648
3643
  } : {}
3649
3644
  }), Object.values(
3650
3645
  e.builderContextSignal.componentInfos
3651
- ).forEach((T) => {
3652
- var u, k;
3653
- if (!e.model || !((u = T.models) != null && u.length) || T.models.includes(e.model)) {
3654
- const V = ze(T);
3655
- (k = window.parent) == null || k.postMessage(V, "*");
3646
+ ).forEach((u) => {
3647
+ var S, P;
3648
+ if (!e.model || !((S = u.models) != null && S.length) || u.models.includes(e.model)) {
3649
+ const I = ze(u);
3650
+ (P = window.parent) == null || P.postMessage(I, "*");
3656
3651
  }
3657
3652
  }), window.addEventListener(
3658
3653
  "builder:component:stateChangeListenerActivated",
3659
3654
  x
3660
3655
  )), e.builderContextSignal.content && z(e.canTrack)) {
3661
- const T = (S = e.builderContextSignal.content) == null ? void 0 : S.testVariationId, u = (w = e.builderContextSignal.content) == null ? void 0 : w.id, k = e.apiKey;
3656
+ const u = (k = e.builderContextSignal.content) == null ? void 0 : k.testVariationId, S = (T = e.builderContextSignal.content) == null ? void 0 : T.id, P = e.apiKey;
3662
3657
  ue({
3663
3658
  apiHost: e.apiHost,
3664
3659
  type: "impression",
3665
3660
  canTrack: !0,
3666
- contentId: u,
3667
- apiKey: k,
3668
- variationId: T !== u ? T : void 0
3661
+ contentId: S,
3662
+ apiKey: P,
3663
+ variationId: u !== S ? u : void 0
3669
3664
  });
3670
3665
  }
3671
3666
  if (ae() && !N()) {
3672
- const T = new URL(location.href).searchParams, u = T.get("builder.preview"), k = T.get(
3673
- `builder.overrides.${u}`
3674
- ), V = T.get("apiKey") || T.get("builder.space");
3675
- u === e.model && V === e.apiKey && (!e.content || k === e.content.id) && Ie({
3676
- model: e.model,
3667
+ const u = new URL(location.href).searchParams, S = u.get("builder.preview"), P = u.get(
3668
+ `builder.overrides.${S}`
3669
+ ), I = u.get("apiKey") || u.get("builder.space");
3670
+ (S === "BUILDER_STUDIO" || S === e.model && I === e.apiKey && (!e.content || P === e.content.id)) && Ie({
3671
+ model: e.model || "",
3677
3672
  apiKey: e.apiKey,
3678
- apiVersion: e.builderContextSignal.apiVersion
3679
- }).then((E) => {
3680
- E && i(E);
3673
+ apiVersion: e.builderContextSignal.apiVersion,
3674
+ ...S === "BUILDER_STUDIO" && ((R = e.context) != null && R.symbolId) ? {
3675
+ query: {
3676
+ id: e.context.symbolId
3677
+ }
3678
+ } : {}
3679
+ }).then((L) => {
3680
+ L && i(L);
3681
3681
  });
3682
3682
  }
3683
3683
  }
@@ -3692,19 +3692,19 @@ function Qn(e) {
3692
3692
  locale: e.locale
3693
3693
  });
3694
3694
  }, [e.locale]), A(() => () => {
3695
- q() && (window.removeEventListener("message", l), window.removeEventListener(
3695
+ q() && (window.removeEventListener("message", s), window.removeEventListener(
3696
3696
  "builder:component:stateChangeListenerActivated",
3697
3697
  x
3698
3698
  ));
3699
- }, []), /* @__PURE__ */ s(se.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || ke() ? /* @__PURE__ */ s(
3699
+ }, []), /* @__PURE__ */ l(se.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || ke() ? /* @__PURE__ */ l(
3700
3700
  r,
3701
3701
  {
3702
3702
  ref: t,
3703
- onClick: (S) => f(S),
3703
+ onClick: (k) => f(k),
3704
3704
  "builder-content-id": (p = e.builderContextSignal.content) == null ? void 0 : p.id,
3705
3705
  "builder-model": e.model,
3706
- className: Yn(
3707
- ((C = e.content) == null ? void 0 : C.testVariationId) || ((P = e.content) == null ? void 0 : P.id)
3706
+ className: Xn(
3707
+ ((C = e.content) == null ? void 0 : C.testVariationId) || ((V = e.content) == null ? void 0 : V.id)
3708
3708
  ),
3709
3709
  style: {
3710
3710
  display: !e.builderContextSignal.content && ke() ? "none" : void 0
@@ -3715,20 +3715,20 @@ function Qn(e) {
3715
3715
  }
3716
3716
  ) : null });
3717
3717
  }
3718
- function Xn(e) {
3719
- const [t, n] = R(
3718
+ function ei(e) {
3719
+ const [t, n] = E(
3720
3720
  () => `
3721
- ${Kn({
3721
+ ${Gn({
3722
3722
  cssCode: e.cssCode,
3723
3723
  contentId: e.contentId
3724
3724
  })}
3725
- ${zn({
3725
+ ${Jn({
3726
3726
  customFonts: e.customFonts
3727
3727
  })}
3728
- ${Gn(e.isNestedRender)}
3728
+ ${Qn(e.isNestedRender)}
3729
3729
  `.trim()
3730
3730
  );
3731
- return /* @__PURE__ */ s(
3731
+ return /* @__PURE__ */ l(
3732
3732
  G,
3733
3733
  {
3734
3734
  id: "builderio-content",
@@ -3737,14 +3737,14 @@ ${Gn(e.isNestedRender)}
3737
3737
  }
3738
3738
  );
3739
3739
  }
3740
- const Zn = ({
3740
+ const ti = ({
3741
3741
  content: e,
3742
3742
  data: t,
3743
3743
  locale: n
3744
3744
  }) => {
3745
- var r, a, l;
3745
+ var r, a, s;
3746
3746
  const i = {}, o = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
3747
- return (l = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || l.forEach((d) => {
3747
+ return (s = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || s.forEach((d) => {
3748
3748
  d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
3749
3749
  }), {
3750
3750
  ...i,
@@ -3754,7 +3754,7 @@ const Zn = ({
3754
3754
  locale: n
3755
3755
  } : {}
3756
3756
  };
3757
- }, ei = ({
3757
+ }, ni = ({
3758
3758
  content: e,
3759
3759
  data: t
3760
3760
  }) => e ? {
@@ -3767,10 +3767,10 @@ const Zn = ({
3767
3767
  } : void 0;
3768
3768
  function Ce(e) {
3769
3769
  var c, h, g, m, y, f, v, x, b;
3770
- const [t, n] = R(
3770
+ const [t, n] = E(
3771
3771
  () => {
3772
3772
  var p, C;
3773
- return Un({
3773
+ return Hn({
3774
3774
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3775
3775
  variationId: (p = e.content) == null ? void 0 : p.testVariationId,
3776
3776
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -3779,32 +3779,32 @@ function Ce(e) {
3779
3779
  }
3780
3780
  );
3781
3781
  function i(p) {
3782
- l((C) => ({
3782
+ s((C) => ({
3783
3783
  ...C,
3784
3784
  rootState: p
3785
3785
  }));
3786
3786
  }
3787
- const [o, r] = R(
3787
+ const [o, r] = E(
3788
3788
  () => [
3789
3789
  ...xe(),
3790
3790
  ...e.customComponents || []
3791
3791
  ].reduce(
3792
- (p, { component: C, ...P }) => ({
3792
+ (p, { component: C, ...V }) => ({
3793
3793
  ...p,
3794
- [P.name]: {
3794
+ [V.name]: {
3795
3795
  component: C,
3796
- ...me(P)
3796
+ ...me(V)
3797
3797
  }
3798
3798
  }),
3799
3799
  {}
3800
3800
  )
3801
- ), [a, l] = R(() => ({
3802
- content: ei({
3801
+ ), [a, s] = E(() => ({
3802
+ content: ni({
3803
3803
  content: e.content,
3804
3804
  data: e.data
3805
3805
  }),
3806
3806
  localState: void 0,
3807
- rootState: Zn({
3807
+ rootState: ti({
3808
3808
  content: e.content,
3809
3809
  data: e.data,
3810
3810
  locale: e.locale
@@ -3818,9 +3818,9 @@ function Ce(e) {
3818
3818
  ...xe(),
3819
3819
  ...e.customComponents || []
3820
3820
  ].reduce(
3821
- (p, { component: C, ...P }) => ({
3821
+ (p, { component: C, ...V }) => ({
3822
3822
  ...p,
3823
- [P.name]: me(P)
3823
+ [V.name]: me(V)
3824
3824
  }),
3825
3825
  {}
3826
3826
  ),
@@ -3829,13 +3829,13 @@ function Ce(e) {
3829
3829
  BlocksWrapperProps: e.blocksWrapperProps || {},
3830
3830
  nonce: e.nonce || "",
3831
3831
  model: e.model || ""
3832
- })), d = L(!1);
3832
+ })), d = D(!1);
3833
3833
  if (!d.current) {
3834
3834
  e.apiKey || oe.error(
3835
3835
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3836
3836
  );
3837
3837
  const p = (h = (c = a.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
3838
- p && D({
3838
+ p && O({
3839
3839
  code: p,
3840
3840
  context: e.context || {},
3841
3841
  localState: void 0,
@@ -3846,14 +3846,14 @@ function Ce(e) {
3846
3846
  isExpression: !1
3847
3847
  }), d.current = !0;
3848
3848
  }
3849
- return /* @__PURE__ */ s(
3849
+ return /* @__PURE__ */ l(
3850
3850
  Pe.Provider,
3851
3851
  {
3852
3852
  value: {
3853
3853
  registeredComponents: o
3854
3854
  },
3855
3855
  children: /* @__PURE__ */ W(
3856
- Qn,
3856
+ Zn,
3857
3857
  {
3858
3858
  apiHost: e.apiHost,
3859
3859
  nonce: e.nonce,
@@ -3871,9 +3871,9 @@ function Ce(e) {
3871
3871
  contentWrapperProps: e.contentWrapperProps,
3872
3872
  trustedHosts: e.trustedHosts,
3873
3873
  isNestedRender: e.isNestedRender,
3874
- setBuilderContextSignal: l,
3874
+ setBuilderContextSignal: s,
3875
3875
  children: [
3876
- e.isSsrAbTest ? /* @__PURE__ */ s(
3876
+ e.isSsrAbTest ? /* @__PURE__ */ l(
3877
3877
  ie,
3878
3878
  {
3879
3879
  id: "builderio-variant-visibility",
@@ -3881,8 +3881,8 @@ function Ce(e) {
3881
3881
  nonce: e.nonce || ""
3882
3882
  }
3883
3883
  ) : null,
3884
- /* @__PURE__ */ s(
3885
- Xn,
3884
+ /* @__PURE__ */ l(
3885
+ ei,
3886
3886
  {
3887
3887
  nonce: e.nonce || "",
3888
3888
  isNestedRender: e.isNestedRender,
@@ -3891,7 +3891,7 @@ function Ce(e) {
3891
3891
  customFonts: (v = (f = a.content) == null ? void 0 : f.data) == null ? void 0 : v.customFonts
3892
3892
  }
3893
3893
  ),
3894
- /* @__PURE__ */ s(
3894
+ /* @__PURE__ */ l(
3895
3895
  F,
3896
3896
  {
3897
3897
  blocks: (b = (x = a.content) == null ? void 0 : x.data) == null ? void 0 : b.blocks,
@@ -3906,49 +3906,49 @@ function Ce(e) {
3906
3906
  }
3907
3907
  );
3908
3908
  }
3909
- function ti(e) {
3909
+ function ii(e) {
3910
3910
  var a;
3911
- const [t, n] = R(
3912
- () => $n({
3911
+ const [t, n] = E(
3912
+ () => Dn({
3913
3913
  canTrack: z(e.canTrack),
3914
3914
  content: e.content
3915
3915
  })
3916
3916
  );
3917
3917
  function i() {
3918
- var l;
3919
- return On(
3918
+ var s;
3919
+ return _n(
3920
3920
  j(e.content).map((d) => ({
3921
3921
  id: d.testVariationId,
3922
3922
  testRatio: d.testRatio
3923
3923
  })),
3924
- ((l = e.content) == null ? void 0 : l.id) || ""
3924
+ ((s = e.content) == null ? void 0 : s.id) || ""
3925
3925
  );
3926
3926
  }
3927
3927
  function o() {
3928
- return j(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
3928
+ return j(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
3929
3929
  }
3930
3930
  function r() {
3931
- var l;
3931
+ var s;
3932
3932
  return t ? {
3933
3933
  ...e.content,
3934
- testVariationId: (l = e.content) == null ? void 0 : l.id
3934
+ testVariationId: (s = e.content) == null ? void 0 : s.id
3935
3935
  } : Je({
3936
3936
  item: e.content,
3937
3937
  canTrack: z(e.canTrack)
3938
3938
  });
3939
3939
  }
3940
3940
  return A(() => {
3941
- }, []), /* @__PURE__ */ W(I, { children: [
3942
- !e.isNestedRender && $ !== "reactNative" ? /* @__PURE__ */ s(
3941
+ }, []), /* @__PURE__ */ W(w, { children: [
3942
+ !e.isNestedRender && $ !== "reactNative" ? /* @__PURE__ */ l(
3943
3943
  ie,
3944
3944
  {
3945
3945
  id: "builderio-init-variants-fns",
3946
- scriptStr: Dn(),
3946
+ scriptStr: Un(),
3947
3947
  nonce: e.nonce || ""
3948
3948
  }
3949
3949
  ) : null,
3950
- t ? /* @__PURE__ */ W(I, { children: [
3951
- /* @__PURE__ */ s(
3950
+ t ? /* @__PURE__ */ W(w, { children: [
3951
+ /* @__PURE__ */ l(
3952
3952
  G,
3953
3953
  {
3954
3954
  id: "builderio-variants",
@@ -3956,7 +3956,7 @@ function ti(e) {
3956
3956
  nonce: e.nonce || ""
3957
3957
  }
3958
3958
  ),
3959
- /* @__PURE__ */ s(
3959
+ /* @__PURE__ */ l(
3960
3960
  ie,
3961
3961
  {
3962
3962
  id: "builderio-variants-visibility",
@@ -3964,13 +3964,13 @@ function ti(e) {
3964
3964
  nonce: e.nonce || ""
3965
3965
  }
3966
3966
  ),
3967
- (a = j(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
3967
+ (a = j(e.content)) == null ? void 0 : a.map((s) => /* @__PURE__ */ l(
3968
3968
  Ce,
3969
3969
  {
3970
3970
  apiHost: e.apiHost,
3971
3971
  isNestedRender: e.isNestedRender,
3972
3972
  nonce: e.nonce,
3973
- content: l,
3973
+ content: s,
3974
3974
  showContent: !1,
3975
3975
  model: e.model,
3976
3976
  data: e.data,
@@ -3989,10 +3989,10 @@ function ti(e) {
3989
3989
  contentWrapperProps: e.contentWrapperProps,
3990
3990
  trustedHosts: e.trustedHosts
3991
3991
  },
3992
- l.testVariationId
3992
+ s.testVariationId
3993
3993
  ))
3994
3994
  ] }) : null,
3995
- /* @__PURE__ */ s(
3995
+ /* @__PURE__ */ l(
3996
3996
  Ce,
3997
3997
  {
3998
3998
  apiHost: e.apiHost,
@@ -4020,7 +4020,7 @@ function ti(e) {
4020
4020
  )
4021
4021
  ] });
4022
4022
  }
4023
- const ni = async ({
4023
+ const oi = async ({
4024
4024
  builderContextValue: e,
4025
4025
  symbol: t
4026
4026
  }) => {
@@ -4039,8 +4039,8 @@ const ni = async ({
4039
4039
  oe.error("Could not fetch symbol content: ", n);
4040
4040
  });
4041
4041
  };
4042
- function ii(e) {
4043
- var l, d, c, h;
4042
+ function ai(e) {
4043
+ var s, d, c, h;
4044
4044
  function t() {
4045
4045
  return "div";
4046
4046
  }
@@ -4050,18 +4050,18 @@ function ii(e) {
4050
4050
  function i() {
4051
4051
  var g, m;
4052
4052
  return [
4053
- e.attributes[U()],
4053
+ e.attributes[_()],
4054
4054
  "builder-symbol",
4055
4055
  (g = e.symbol) != null && g.inline ? "builder-inline-symbol" : void 0,
4056
4056
  (m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4057
4057
  ].filter(Boolean).join(" ");
4058
4058
  }
4059
- const [o, r] = R(() => {
4059
+ const [o, r] = E(() => {
4060
4060
  var g;
4061
4061
  return (g = e.symbol) == null ? void 0 : g.content;
4062
4062
  });
4063
4063
  function a() {
4064
- o || ni({
4064
+ o || oi({
4065
4065
  symbol: e.symbol,
4066
4066
  builderContextValue: e.builderContext
4067
4067
  }).then((g) => {
@@ -4071,8 +4071,8 @@ function ii(e) {
4071
4071
  return A(() => {
4072
4072
  }, []), A(() => {
4073
4073
  a();
4074
- }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
4075
- ti,
4074
+ }, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
4075
+ ii,
4076
4076
  {
4077
4077
  nonce: e.builderContext.nonce,
4078
4078
  isNestedRender: !0,
@@ -4080,7 +4080,7 @@ function ii(e) {
4080
4080
  apiKey: e.builderContext.apiKey,
4081
4081
  context: {
4082
4082
  ...e.builderContext.context,
4083
- symbolId: (l = e.builderBlock) == null ? void 0 : l.id
4083
+ symbolId: (s = e.builderBlock) == null ? void 0 : s.id
4084
4084
  },
4085
4085
  customComponents: Object.values(e.builderComponents),
4086
4086
  data: {
@@ -4100,13 +4100,13 @@ function ii(e) {
4100
4100
  export {
4101
4101
  F as Blocks,
4102
4102
  se as BuilderContext,
4103
- it as Button,
4104
- Mt as Columns,
4105
- ti as Content,
4106
- jt as Fragment,
4107
- Kt as Image,
4108
- Jt as Section,
4109
- ii as Symbol,
4110
- dn as Text,
4111
- An as Video
4103
+ ot as Button,
4104
+ qt as Columns,
4105
+ ii as Content,
4106
+ zt as Fragment,
4107
+ Gt as Image,
4108
+ Yt as Section,
4109
+ ai as Symbol,
4110
+ mn as Text,
4111
+ Nn as Video
4112
4112
  };