@builder.io/sdk-react 1.0.23 → 1.0.24

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 (76) hide show
  1. package/lib/browser/blocks-exports.cjs +31 -31
  2. package/lib/browser/blocks-exports.mjs +1036 -820
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/{server-entry-4ca9f249.js → server-entry-85d7f359.js} +1 -1
  6. package/lib/browser/{server-entry-f69e2b2a.cjs → server-entry-a540d463.cjs} +1 -1
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/blocks-59950370.cjs +32 -0
  10. package/lib/edge/{blocks-93608689.js → blocks-e6873db2.js} +614 -617
  11. package/lib/edge/blocks-exports.cjs +1 -1
  12. package/lib/edge/blocks-exports.mjs +2 -2
  13. package/lib/edge/button-8a6ae666.js +31 -0
  14. package/lib/edge/button-aff4f652.cjs +1 -0
  15. package/lib/edge/columns-0768e506.js +163 -0
  16. package/lib/edge/columns-8dca796d.cjs +28 -0
  17. package/lib/edge/{content-variants-f416bff5.js → content-variants-c8061bc0.js} +404 -262
  18. package/lib/edge/content-variants-e79859ac.cjs +134 -0
  19. package/lib/edge/{form-8526db32.js → form-c3d12c27.js} +3 -3
  20. package/lib/edge/{form-44ceed15.cjs → form-e6847833.cjs} +1 -1
  21. package/lib/edge/{get-class-prop-name-e85bf7a3.js → get-class-prop-name-a023381f.js} +2 -1
  22. package/lib/edge/get-class-prop-name-a966a097.cjs +1 -0
  23. package/lib/edge/image-764070f8.cjs +17 -0
  24. package/lib/edge/{image-0008c792.js → image-9d24a962.js} +24 -24
  25. package/lib/edge/{img-5ef224a8.js → img-03949fec.js} +1 -1
  26. package/lib/edge/{img-a5802e2b.cjs → img-1431a6ab.cjs} +1 -1
  27. package/lib/edge/index.cjs +1 -1
  28. package/lib/edge/index.mjs +1 -1
  29. package/lib/edge/{input-f1aa0191.cjs → input-f420d17a.cjs} +1 -1
  30. package/lib/edge/{input-3f85283b.js → input-f611f26d.js} +1 -1
  31. package/lib/edge/{select-d4c018c0.cjs → select-aadf10db.cjs} +1 -1
  32. package/lib/edge/{select-4fe889b6.js → select-e056d1d3.js} +1 -1
  33. package/lib/edge/{server-entry-c4b7844d.cjs → server-entry-95f97e05.cjs} +1 -1
  34. package/lib/edge/{server-entry-e1e18fd2.js → server-entry-bbf65248.js} +1 -1
  35. package/lib/edge/server-entry.cjs +1 -1
  36. package/lib/edge/server-entry.mjs +1 -1
  37. package/lib/edge/{slot-97599025.js → slot-2f6f1817.js} +3 -3
  38. package/lib/edge/{slot-2a11e808.cjs → slot-3ed45869.cjs} +1 -1
  39. package/lib/edge/{symbol-a90a41a3.js → symbol-853c210f.js} +32 -26
  40. package/lib/edge/symbol-c9d45cc8.cjs +1 -0
  41. package/lib/edge/tabs-28d0f021.js +69 -0
  42. package/lib/edge/tabs-34a12e52.cjs +1 -0
  43. package/lib/node/blocks-exports.cjs +32 -32
  44. package/lib/node/blocks-exports.mjs +1141 -925
  45. package/lib/node/index.cjs +1 -1
  46. package/lib/node/index.mjs +2 -2
  47. package/lib/node/init.cjs +1 -1
  48. package/lib/node/init.mjs +2 -2
  49. package/lib/node/{node-runtime-8062cfb8.js → node-runtime-071b85f9.js} +1 -1
  50. package/lib/node/{node-runtime-11a8cdfe.cjs → node-runtime-41e3da8e.cjs} +1 -1
  51. package/lib/node/{server-entry-461bfaf9.cjs → server-entry-b5031981.cjs} +1 -1
  52. package/lib/node/{server-entry-3e54c767.js → server-entry-fd29e8b4.js} +1 -1
  53. package/lib/node/server-entry.cjs +1 -1
  54. package/lib/node/server-entry.mjs +1 -1
  55. package/package.json +1 -1
  56. package/types/blocks/columns/columns.types.d.ts +1 -1
  57. package/types/blocks/columns/helpers.d.ts +1 -0
  58. package/types/blocks/tabs/component-info.d.ts +2 -0
  59. package/types/blocks/tabs/index.d.ts +1 -0
  60. package/types/blocks/tabs/tabs.d.ts +4 -0
  61. package/types/blocks/tabs/tabs.types.d.ts +13 -0
  62. package/types/blocks/text/text.types.d.ts +2 -1
  63. package/types/components/block/block.helpers.d.ts +2 -0
  64. package/types/components/content/components/styles.helpers.d.ts +1 -0
  65. package/types/components/dynamic-div.d.ts +15 -0
  66. package/types/constants/sdk-version.d.ts +1 -1
  67. package/types/types/targets.d.ts +1 -1
  68. package/lib/edge/blocks-5539f58f.cjs +0 -32
  69. package/lib/edge/button-7e98d8f3.cjs +0 -1
  70. package/lib/edge/button-8816ab35.js +0 -28
  71. package/lib/edge/columns-8db639b5.cjs +0 -28
  72. package/lib/edge/columns-d065e3c4.js +0 -156
  73. package/lib/edge/content-variants-44d061f2.cjs +0 -134
  74. package/lib/edge/get-class-prop-name-7b951501.cjs +0 -1
  75. package/lib/edge/image-ee3dd857.cjs +0 -17
  76. package/lib/edge/symbol-dbb5c95e.cjs +0 -1
@@ -1,16 +1,16 @@
1
1
  "use client";
2
- var De = Object.defineProperty;
3
- var Me = (e, t, n) => t in e ? De(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
- var te = (e, t, n) => (Me(e, typeof t != "symbol" ? t + "" : t, n), n);
5
- import { jsx as s, Fragment as T, jsxs as B } from "react/jsx-runtime";
6
- import { TARGET as q, isEditing as N, isBrowser as U, getUserAttributes as Oe, checkIsDefined as Y, logger as X, fastClone as oe, registerInsertMenu as Ue, setupBrowserForEditing as je, createRegisterComponentMessage as He, getDefaultCanTrack as G, _track as ce, isPreviewing as Ke, fetchOneEntry as Se, createEditorListener as qe, fetch as ze, serializeComponentInfo as de, handleABTestingSync as _e } from "./server-entry-4ca9f249.js";
7
- import { createContext as ve, useState as I, useEffect as V, useContext as ue, useRef as Z, createElement as ke } from "react";
8
- const Je = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ye = (e) => typeof e == "string" && Je.has(e.toLowerCase());
9
- function ae(e) {
10
- return /* @__PURE__ */ s(T, { children: Ye(e.TagName) ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(T, { 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 }) }) });
2
+ var Ue = Object.defineProperty;
3
+ var je = (e, t, n) => t in e ? Ue(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
+ var ne = (e, t, n) => (je(e, typeof t != "symbol" ? t + "" : t, n), n);
5
+ import { jsx as s, Fragment as E, jsxs as V } from "react/jsx-runtime";
6
+ import { TARGET as z, isEditing as F, isBrowser as j, getUserAttributes as He, checkIsDefined as G, logger as Z, fastClone as le, registerInsertMenu as Ke, setupBrowserForEditing as qe, createRegisterComponentMessage as ze, getDefaultCanTrack as Q, _track as me, isPreviewing as _e, fetchOneEntry as Ce, createEditorListener as Je, fetch as Ye, serializeComponentInfo as fe, handleABTestingSync as Ge } from "./server-entry-85d7f359.js";
7
+ import { createContext as Te, useState as C, useEffect as P, useContext as he, useRef as ee, createElement as we } from "react";
8
+ const Qe = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Xe = (e) => typeof e == "string" && Qe.has(e.toLowerCase());
9
+ function se(e) {
10
+ return /* @__PURE__ */ s(E, { children: Xe(e.TagName) ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(E, { 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 }) }) });
11
11
  }
12
- const H = () => {
13
- switch (q) {
12
+ const K = () => {
13
+ switch (z) {
14
14
  case "react":
15
15
  case "reactNative":
16
16
  case "rsc":
@@ -19,31 +19,35 @@ const H = () => {
19
19
  case "vue":
20
20
  case "solid":
21
21
  case "qwik":
22
+ case "angular":
22
23
  return "class";
23
24
  }
24
25
  };
25
- function Ge(e) {
26
+ function Ze(e) {
27
+ function t() {
28
+ return {
29
+ ...e.attributes,
30
+ [K()]: `${e.link ? "" : "builder-button"} ${e.attributes[K()] || ""}`,
31
+ ...e.link ? {
32
+ href: e.link,
33
+ target: e.openLinkInNewTab ? "_blank" : void 0,
34
+ role: "link"
35
+ } : {
36
+ role: "button"
37
+ }
38
+ };
39
+ }
26
40
  return /* @__PURE__ */ s(
27
- ae,
41
+ se,
28
42
  {
29
- attributes: {
30
- ...e.attributes,
31
- [H()]: `${e.link ? "" : "builder-button"} ${e.attributes[H()] || ""}`,
32
- ...e.link ? {
33
- href: e.link,
34
- target: e.openLinkInNewTab ? "_blank" : void 0,
35
- role: "link"
36
- } : {
37
- role: "button"
38
- }
39
- },
43
+ attributes: t(),
40
44
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
41
45
  actionAttributes: {},
42
46
  children: e.text
43
47
  }
44
48
  );
45
49
  }
46
- const re = ve({
50
+ const ce = Te({
47
51
  content: null,
48
52
  context: {},
49
53
  localState: void 0,
@@ -56,8 +60,8 @@ const re = ve({
56
60
  inheritedStyles: {},
57
61
  BlocksWrapper: "div",
58
62
  BlocksWrapperProps: {}
59
- }), Ce = ve({ registeredComponents: {} });
60
- function Qe(e) {
63
+ }), Ie = Te({ registeredComponents: {} });
64
+ function et(e) {
61
65
  var t;
62
66
  return {
63
67
  ...(t = e.component) == null ? void 0 : t.options,
@@ -68,7 +72,7 @@ function Qe(e) {
68
72
  builderBlock: e
69
73
  };
70
74
  }
71
- const Xe = ({
75
+ const tt = ({
72
76
  builder: e,
73
77
  context: t,
74
78
  event: n,
@@ -80,14 +84,14 @@ const Xe = ({
80
84
  builder: e,
81
85
  context: t,
82
86
  event: n
83
- }), Ze = () => ({
84
- isEditing: N(),
85
- isBrowser: U(),
86
- isServer: !U(),
87
- getUserAttributes: () => Oe()
88
- }), et = (e, {
87
+ }), nt = () => ({
88
+ isEditing: F(),
89
+ isBrowser: j(),
90
+ isServer: !j(),
91
+ getUserAttributes: () => He()
92
+ }), it = (e, {
89
93
  isExpression: t = !0
90
- }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, me = ({
94
+ }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, ge = ({
91
95
  code: e,
92
96
  builder: t,
93
97
  context: n,
@@ -96,19 +100,19 @@ const Xe = ({
96
100
  rootSetState: a,
97
101
  rootState: r
98
102
  }) => {
99
- const l = Xe({
103
+ const l = tt({
100
104
  builder: t,
101
105
  context: n,
102
106
  event: i,
103
- state: we({
107
+ state: Ee({
104
108
  rootState: r,
105
109
  localState: o,
106
110
  rootSetState: a
107
111
  })
108
112
  });
109
- return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
113
+ return new Function(...l.map(([c]) => c), e)(...l.map(([, c]) => c));
110
114
  };
111
- function we({
115
+ function Ee({
112
116
  rootState: e,
113
117
  localState: t,
114
118
  rootSetState: n
@@ -118,7 +122,7 @@ function we({
118
122
  if (t && o in t)
119
123
  return t[o];
120
124
  const a = i[o];
121
- return typeof a == "object" && a !== null ? we({
125
+ return typeof a == "object" && a !== null ? Ee({
122
126
  rootState: a,
123
127
  localState: void 0,
124
128
  rootSetState: n ? (r) => {
@@ -133,17 +137,17 @@ function we({
133
137
  }
134
138
  });
135
139
  }
136
- function tt() {
140
+ function ot() {
137
141
  var e;
138
- return typeof process != "undefined" && Y((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
142
+ return typeof process != "undefined" && G((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
139
143
  }
140
- const nt = () => {
144
+ const at = () => {
141
145
  var i;
142
- if (!tt())
146
+ if (!ot())
143
147
  return !1;
144
148
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
145
- return e && t && !n ? (X.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
146
- }, it = (e) => (U() || nt(), me(e)), $ = class $ {
149
+ return e && t && !n ? (Z.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
150
+ }, rt = (e) => (j() || at(), ge(e)), L = class L {
147
151
  static getCacheKey(t) {
148
152
  return JSON.stringify({
149
153
  ...t,
@@ -153,17 +157,17 @@ const nt = () => {
153
157
  });
154
158
  }
155
159
  static getCachedValue(t) {
156
- return $.cache.get(t);
160
+ return L.cache.get(t);
157
161
  }
158
162
  static setCachedValue(t, n) {
159
- $.cache.size > 20 && $.cache.delete($.cache.keys().next().value), $.cache.set(t, {
163
+ L.cache.size > 20 && L.cache.delete(L.cache.keys().next().value), L.cache.set(t, {
160
164
  value: n
161
165
  });
162
166
  }
163
167
  };
164
- te($, "cacheLimit", 20), te($, "cache", /* @__PURE__ */ new Map());
165
- let M = $;
166
- function K({
168
+ ne(L, "cacheLimit", 20), ne(L, "cache", /* @__PURE__ */ new Map());
169
+ let U = L;
170
+ function q({
167
171
  code: e,
168
172
  context: t,
169
173
  localState: n,
@@ -175,11 +179,11 @@ function K({
175
179
  }) {
176
180
  if (e === "")
177
181
  return;
178
- const d = {
179
- code: et(e, {
182
+ const c = {
183
+ code: it(e, {
180
184
  isExpression: r
181
185
  }),
182
- builder: Ze(),
186
+ builder: nt(),
183
187
  context: t,
184
188
  event: a,
185
189
  rootSetState: o,
@@ -187,31 +191,31 @@ function K({
187
191
  localState: n
188
192
  };
189
193
  if (l) {
190
- const c = M.getCacheKey(d), m = M.getCachedValue(c);
194
+ const d = U.getCacheKey(c), m = U.getCachedValue(d);
191
195
  if (m)
192
196
  return m.value;
193
197
  }
194
198
  try {
195
- const c = it(d);
199
+ const d = rt(c);
196
200
  if (l) {
197
- const m = M.getCacheKey(d);
198
- M.setCachedValue(m, c);
201
+ const m = U.getCacheKey(c);
202
+ U.setCachedValue(m, d);
199
203
  }
200
- return c;
201
- } catch (c) {
202
- X.error("Failed code evaluation: " + c.message, {
204
+ return d;
205
+ } catch (d) {
206
+ Z.error("Failed code evaluation: " + d.message, {
203
207
  code: e
204
208
  });
205
209
  return;
206
210
  }
207
211
  }
208
- const Ie = (e, t, n) => {
212
+ const Re = (e, t, n) => {
209
213
  if (Object(e) !== e)
210
214
  return e;
211
215
  const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
212
216
  return i.slice(0, -1).reduce((o, a, r) => Object(o[a]) === o[a] ? o[a] : o[a] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
213
217
  };
214
- const ot = ({
218
+ const lt = ({
215
219
  block: e,
216
220
  context: t,
217
221
  localState: n,
@@ -220,7 +224,7 @@ const ot = ({
220
224
  }) => {
221
225
  if (!e.bindings)
222
226
  return e;
223
- const a = oe(e), r = {
227
+ const a = le(e), r = {
224
228
  ...a,
225
229
  properties: {
226
230
  ...a.properties
@@ -230,19 +234,19 @@ const ot = ({
230
234
  }
231
235
  };
232
236
  for (const l in e.bindings) {
233
- const d = e.bindings[l], c = K({
234
- code: d,
237
+ const c = e.bindings[l], d = q({
238
+ code: c,
235
239
  localState: n,
236
240
  rootState: i,
237
241
  rootSetState: o,
238
242
  context: t,
239
243
  enableCache: !0
240
244
  });
241
- Ie(r, l, c);
245
+ Re(r, l, d);
242
246
  }
243
247
  return r;
244
248
  };
245
- function Q({
249
+ function X({
246
250
  block: e,
247
251
  context: t,
248
252
  shouldEvaluateBindings: n,
@@ -251,7 +255,7 @@ function Q({
251
255
  rootSetState: a
252
256
  }) {
253
257
  const r = e;
254
- return n ? ot({
258
+ return n ? lt({
255
259
  block: r,
256
260
  localState: i,
257
261
  rootState: o,
@@ -259,19 +263,19 @@ function Q({
259
263
  context: t
260
264
  }) : r;
261
265
  }
262
- function at(e, t, n = {}) {
266
+ function st(e, t, n = {}) {
263
267
  let i, o, a, r = null, l = 0;
264
- const d = function() {
268
+ const c = function() {
265
269
  l = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
266
270
  };
267
271
  return function() {
268
- const c = Date.now();
269
- !l && n.leading === !1 && (l = c);
270
- const m = t - (c - l);
271
- return i = this, o = arguments, m <= 0 || m > t ? (r && (clearTimeout(r), r = null), l = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, m)), a;
272
+ const d = Date.now();
273
+ !l && n.leading === !1 && (l = d);
274
+ const m = t - (d - l);
275
+ return i = this, o = arguments, m <= 0 || m > t ? (r && (clearTimeout(r), r = null), l = d, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(c, m)), a;
272
276
  };
273
277
  }
274
- function j(e, ...t) {
278
+ function H(e, ...t) {
275
279
  const n = Object(e);
276
280
  for (let i = 1; i < arguments.length; i++) {
277
281
  const o = arguments[i];
@@ -281,118 +285,119 @@ function j(e, ...t) {
281
285
  }
282
286
  return n;
283
287
  }
284
- const le = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
285
- function rt(e) {
288
+ const de = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
289
+ function ct(e) {
286
290
  for (const t of e)
287
291
  switch (t.trigger) {
288
292
  case "pageLoad":
289
- Re(t);
293
+ Be(t);
290
294
  break;
291
295
  case "scrollInView":
292
- st(t);
296
+ ut(t);
293
297
  break;
294
298
  }
295
299
  }
296
- function Te(e) {
300
+ function Pe(e) {
297
301
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
298
302
  }
299
- function Ee(e, t) {
300
- const n = lt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
303
+ function Ve(e, t) {
304
+ const n = dt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
301
305
  for (const l of r)
302
- for (const d of n)
303
- d in l || (l[d] = i[d]);
306
+ for (const c of n)
307
+ c in l || (l[c] = i[c]);
304
308
  }
305
- function lt(e) {
309
+ function dt(e) {
306
310
  const t = [];
307
311
  for (const n of e.steps)
308
312
  for (const i in n.styles)
309
313
  t.indexOf(i) === -1 && t.push(i);
310
314
  return t;
311
315
  }
312
- function Re(e) {
316
+ function Be(e) {
313
317
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
314
318
  if (!t.length) {
315
- Te(e.elementId || e.id || "");
319
+ Pe(e.elementId || e.id || "");
316
320
  return;
317
321
  }
318
322
  Array.from(t).forEach((n) => {
319
- Ee(e, n), n.style.transition = "none", n.style.transitionDelay = "0", j(n.style, e.steps[0].styles), setTimeout(() => {
320
- n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), j(n.style, e.steps[1].styles), setTimeout(() => {
323
+ Ve(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
324
+ n.style.transition = `all ${e.duration}s ${de(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), H(n.style, e.steps[1].styles), setTimeout(() => {
321
325
  n.style.transition = "", n.style.transitionDelay = "";
322
326
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
323
327
  });
324
328
  });
325
329
  }
326
- function st(e) {
330
+ function ut(e) {
327
331
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
328
332
  if (!t.length) {
329
- Te(e.elementId || e.id || "");
333
+ Pe(e.elementId || e.id || "");
330
334
  return;
331
335
  }
332
336
  Array.from(t).forEach((n) => {
333
- Ee(e, n);
337
+ Ve(e, n);
334
338
  let i = !1, o = !1;
335
339
  function a() {
336
340
  !i && l(n) ? (i = !0, o = !0, setTimeout(() => {
337
- j(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
341
+ H(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
338
342
  o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
339
343
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
340
- })) : e.repeat && i && !o && !l(n) && (i = !1, j(n.style, e.steps[0].styles));
344
+ })) : e.repeat && i && !o && !l(n) && (i = !1, H(n.style, e.steps[0].styles));
341
345
  }
342
- const r = at(a, 200, {
346
+ const r = st(a, 200, {
343
347
  leading: !1
344
348
  });
345
349
  function l(m) {
346
- const f = m.getBoundingClientRect(), g = window.innerHeight, x = (e.thresholdPercent || 0) / 100 * g;
347
- return f.bottom > x && f.top < g - x;
350
+ const u = m.getBoundingClientRect(), g = window.innerHeight, S = (e.thresholdPercent || 0) / 100 * g;
351
+ return u.bottom > S && u.top < g - S;
348
352
  }
349
- const d = e.steps[0].styles;
350
- function c() {
351
- j(n.style, d);
353
+ const c = e.steps[0].styles;
354
+ function d() {
355
+ H(n.style, c);
352
356
  }
353
- c(), setTimeout(() => {
354
- n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
357
+ d(), setTimeout(() => {
358
+ n.style.transition = `all ${e.duration}s ${de(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
355
359
  }), document.addEventListener("scroll", r, {
356
360
  capture: !0,
357
361
  passive: !0
358
362
  }), a();
359
363
  });
360
364
  }
361
- const ct = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Pe = (e) => Object.entries(e).map(([n, i]) => {
365
+ const mt = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Ae = (e) => Object.entries(e).map(([n, i]) => {
362
366
  if (typeof i == "string")
363
- return `${ct(n)}: ${i};`;
364
- }).filter(Y), dt = (e) => Pe(e).join(`
365
- `), _ = ({
367
+ return `${mt(n)}: ${i};`;
368
+ }).filter(G), ft = (e) => Ae(e).join(`
369
+ `), J = ({
366
370
  mediaQuery: e,
367
371
  className: t,
368
372
  styles: n
369
373
  }) => {
370
374
  const i = `.${t} {
371
- ${dt(n)}
375
+ ${ft(n)}
372
376
  }`;
373
377
  return e ? `${e} {
374
378
  ${i}
375
379
  }` : i;
376
380
  };
377
- function ut({
381
+ function ht({
378
382
  style: e
379
383
  }) {
380
384
  return e;
381
385
  }
382
- const mt = ({
386
+ const gt = ({
383
387
  block: e,
384
388
  context: t
385
- }) => Ve(ut({
389
+ }) => We(ht({
386
390
  style: e.style || {},
387
391
  context: t,
388
392
  block: e
389
393
  }));
390
- function Ve(e) {
391
- switch (q) {
394
+ function We(e) {
395
+ switch (z) {
392
396
  case "svelte":
393
397
  case "vue":
394
398
  case "solid":
395
- return Pe(e).join(" ");
399
+ case "angular":
400
+ return Ae(e).join(" ");
396
401
  case "qwik":
397
402
  case "reactNative":
398
403
  case "react":
@@ -400,13 +405,13 @@ function Ve(e) {
400
405
  return e;
401
406
  }
402
407
  }
403
- const ft = ({
408
+ const bt = ({
404
409
  block: e,
405
410
  context: t,
406
411
  registeredComponents: n
407
412
  }) => {
408
413
  var a;
409
- const i = (a = Q({
414
+ const i = (a = X({
410
415
  block: e,
411
416
  localState: t.localState,
412
417
  rootState: t.rootState,
@@ -422,7 +427,7 @@ const ft = ({
422
427
  console.warn(`
423
428
  Could not find a registered component named "${i}".
424
429
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
425
- }, ht = ({
430
+ }, yt = ({
426
431
  block: e,
427
432
  context: t
428
433
  }) => {
@@ -432,7 +437,7 @@ const ft = ({
432
437
  } = e;
433
438
  if (!(n != null && n.collection))
434
439
  return;
435
- const o = K({
440
+ const o = q({
436
441
  code: n.collection,
437
442
  localState: t.localState,
438
443
  rootState: t.rootState,
@@ -443,20 +448,20 @@ const ft = ({
443
448
  if (!Array.isArray(o))
444
449
  return;
445
450
  const a = n.collection.split(".").pop(), r = n.itemName || (a ? a + "Item" : "item");
446
- return o.map((d, c) => ({
451
+ return o.map((c, d) => ({
447
452
  context: {
448
453
  ...t,
449
454
  localState: {
450
455
  ...t.localState,
451
- $index: c,
452
- $item: d,
453
- [r]: d,
454
- [`$${r}Index`]: c
456
+ $index: d,
457
+ $item: c,
458
+ [r]: c,
459
+ [`$${r}Index`]: d
455
460
  }
456
461
  },
457
462
  block: i
458
463
  }));
459
- }, Be = {
464
+ }, pt = (e) => e && ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e), xt = (e) => e && ["Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e), Ne = {
460
465
  small: {
461
466
  min: 320,
462
467
  default: 321,
@@ -472,11 +477,11 @@ const ft = ({
472
477
  default: 991,
473
478
  max: 1200
474
479
  }
475
- }, fe = (e, t = Be) => `@media (max-width: ${t[e].max}px)`, We = ({
480
+ }, be = (e, t = Ne) => `@media (max-width: ${t[e].max}px)`, $e = ({
476
481
  small: e,
477
482
  medium: t
478
483
  }) => {
479
- const n = oe(Be);
484
+ const n = le(Ne);
480
485
  if (!e || !t)
481
486
  return n;
482
487
  const i = Math.floor(e / 2);
@@ -499,7 +504,7 @@ const ft = ({
499
504
  default: a + 1
500
505
  }, n;
501
506
  };
502
- function ee(e) {
507
+ function te(e) {
503
508
  return /* @__PURE__ */ s(
504
509
  "style",
505
510
  {
@@ -508,9 +513,9 @@ function ee(e) {
508
513
  }
509
514
  );
510
515
  }
511
- function gt(e) {
516
+ function St(e) {
512
517
  function t() {
513
- const i = Q({
518
+ const i = X({
514
519
  block: e.block,
515
520
  localState: e.context.localState,
516
521
  rootState: e.context.rootState,
@@ -518,67 +523,67 @@ function gt(e) {
518
523
  context: e.context.context,
519
524
  shouldEvaluateBindings: !0
520
525
  });
521
- return Y(i.hide) ? !i.hide : Y(i.show) ? i.show : !0;
526
+ return G(i.hide) ? !i.hide : G(i.show) ? i.show : !0;
522
527
  }
523
528
  function n() {
524
- var w, E, p;
525
- const i = Q({
529
+ var w, R, A;
530
+ const i = X({
526
531
  block: e.block,
527
532
  localState: e.context.localState,
528
533
  rootState: e.context.rootState,
529
534
  rootSetState: e.context.rootSetState,
530
535
  context: e.context.context,
531
536
  shouldEvaluateBindings: !0
532
- }), o = i.responsiveStyles, a = e.context.content, r = We(
537
+ }), o = i.responsiveStyles, a = e.context.content, r = $e(
533
538
  ((w = a == null ? void 0 : a.meta) == null ? void 0 : w.breakpoints) || {}
534
- ), l = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, m = i.id;
539
+ ), l = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, d = o == null ? void 0 : o.small, m = i.id;
535
540
  if (!m)
536
541
  return "";
537
- const f = l ? _({
542
+ const u = l ? J({
538
543
  className: m,
539
544
  styles: l
540
- }) : "", g = d ? _({
545
+ }) : "", g = c ? J({
541
546
  className: m,
542
- styles: d,
543
- mediaQuery: fe(
547
+ styles: c,
548
+ mediaQuery: be(
544
549
  "medium",
545
550
  r
546
551
  )
547
- }) : "", y = c ? _({
552
+ }) : "", y = d ? J({
548
553
  className: m,
549
- styles: c,
550
- mediaQuery: fe(
554
+ styles: d,
555
+ mediaQuery: be(
551
556
  "small",
552
557
  r
553
558
  )
554
- }) : "", x = i.animations && i.animations.find((v) => v.trigger === "hover");
555
- let k = "";
556
- if (x) {
557
- const v = ((p = (E = x.steps) == null ? void 0 : E[1]) == null ? void 0 : p.styles) || {};
558
- k = _({
559
+ }) : "", S = i.animations && i.animations.find((W) => W.trigger === "hover");
560
+ let T = "";
561
+ if (S) {
562
+ const W = ((A = (R = S.steps) == null ? void 0 : R[1]) == null ? void 0 : A.styles) || {};
563
+ T = J({
559
564
  className: `${m}:hover`,
560
565
  styles: {
561
- ...v,
562
- transition: `all ${x.duration}s ${le(
563
- x.easing
566
+ ...W,
567
+ transition: `all ${S.duration}s ${de(
568
+ S.easing
564
569
  )}`,
565
- transitionDelay: x.delay ? `${x.delay}s` : "0s"
570
+ transitionDelay: S.delay ? `${S.delay}s` : "0s"
566
571
  }
567
572
  }) || "";
568
573
  }
569
574
  return [
570
- f,
575
+ u,
571
576
  g,
572
577
  y,
573
- k
578
+ T
574
579
  ].join(" ");
575
580
  }
576
- return /* @__PURE__ */ s(T, { children: n() && t() ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(ee, { id: "builderio-block", styles: n() }) }) : null });
581
+ return /* @__PURE__ */ s(E, { children: n() && t() ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(te, { id: "builderio-block", styles: n() }) }) : null });
577
582
  }
578
- function bt(e) {
583
+ function vt(e) {
579
584
  return e.charAt(0).toUpperCase() + e.slice(1);
580
585
  }
581
- const yt = (e) => `on${bt(e)}`, pt = (e, t) => (n) => K({
586
+ const kt = (e) => `on${vt(e)}`, Ct = (e, t) => (n) => q({
582
587
  code: e,
583
588
  context: t.context,
584
589
  localState: t.localState,
@@ -588,16 +593,16 @@ const yt = (e) => `on${bt(e)}`, pt = (e, t) => (n) => K({
588
593
  isExpression: !1,
589
594
  enableCache: !0
590
595
  });
591
- function Ae(e) {
596
+ function Fe(e) {
592
597
  var i;
593
598
  const t = {}, n = (i = e.block.actions) != null ? i : {};
594
599
  for (const o in n) {
595
600
  if (!n.hasOwnProperty(o))
596
601
  continue;
597
602
  const a = n[o];
598
- let r = yt(o);
603
+ let r = kt(o);
599
604
  if (e.stripPrefix)
600
- switch (q) {
605
+ switch (z) {
601
606
  case "vue":
602
607
  r = r.replace("v-on:", "");
603
608
  break;
@@ -605,49 +610,49 @@ function Ae(e) {
605
610
  r = r.replace("on:", "");
606
611
  break;
607
612
  }
608
- t[r] = pt(a, e);
613
+ t[r] = Ct(a, e);
609
614
  }
610
615
  return t;
611
616
  }
612
- function xt({
617
+ function Tt({
613
618
  properties: e
614
619
  }) {
615
620
  return e;
616
621
  }
617
- const St = (e) => ({
622
+ const wt = (e) => ({
618
623
  href: e.href
619
624
  });
620
- function se({
625
+ function ue({
621
626
  block: e,
622
627
  context: t
623
628
  }) {
624
629
  var i;
625
630
  const n = {
626
- ...St(e),
631
+ ...wt(e),
627
632
  ...e.properties,
628
633
  "builder-id": e.id,
629
- style: mt({
634
+ style: gt({
630
635
  block: e,
631
636
  context: t
632
637
  }),
633
- [H()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
638
+ [K()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
634
639
  };
635
- return xt({
640
+ return Tt({
636
641
  properties: n,
637
642
  context: t,
638
643
  block: e
639
644
  });
640
645
  }
641
- function vt(e) {
646
+ function It(e) {
642
647
  return /* @__PURE__ */ s(
643
- ae,
648
+ se,
644
649
  {
645
650
  TagName: e.Wrapper,
646
- attributes: se({
651
+ attributes: ue({
647
652
  block: e.block,
648
653
  context: e.context
649
654
  }),
650
- actionAttributes: Ae({
655
+ actionAttributes: Fe({
651
656
  block: e.block,
652
657
  rootState: e.context.rootState,
653
658
  rootSetState: e.context.rootSetState,
@@ -659,29 +664,25 @@ function vt(e) {
659
664
  }
660
665
  );
661
666
  }
662
- function kt(e) {
663
- return /* @__PURE__ */ s(
664
- e.Wrapper,
665
- {
666
- ...e.wrapperProps,
667
- attributes: e.includeBlockProps ? {
668
- ...se({
669
- block: e.block,
670
- context: e.context
671
- }),
672
- ...Ae({
673
- block: e.block,
674
- rootState: e.context.rootState,
675
- rootSetState: e.context.rootSetState,
676
- localState: e.context.localState,
677
- context: e.context.context
678
- })
679
- } : {},
680
- children: e.children
681
- }
682
- );
667
+ function Et(e) {
668
+ function t() {
669
+ return e.includeBlockProps ? {
670
+ ...ue({
671
+ block: e.block,
672
+ context: e.context
673
+ }),
674
+ ...Fe({
675
+ block: e.block,
676
+ rootState: e.context.rootState,
677
+ rootSetState: e.context.rootSetState,
678
+ localState: e.context.localState,
679
+ context: e.context.context
680
+ })
681
+ } : {};
682
+ }
683
+ return /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
683
684
  }
684
- const Ct = ({
685
+ const Rt = ({
685
686
  componentOptions: e,
686
687
  builderBlock: t,
687
688
  context: n,
@@ -697,7 +698,7 @@ const Ct = ({
697
698
  * component itself directly. Otherwise, they are provided to the wrapper element.
698
699
  */
699
700
  ...o ? {
700
- attributes: se({
701
+ attributes: ue({
701
702
  block: t,
702
703
  context: r
703
704
  })
@@ -711,15 +712,15 @@ const Ct = ({
711
712
  includeBlockProps: o
712
713
  } : l;
713
714
  };
714
- function he(e) {
715
+ function ye(e) {
715
716
  var i;
716
- const [t, n] = I(
717
- () => e.isInteractive ? kt : e.componentRef
717
+ const [t, n] = C(
718
+ () => e.isInteractive ? Et : e.componentRef
718
719
  );
719
- return /* @__PURE__ */ s(T, { children: e.componentRef ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(
720
+ return /* @__PURE__ */ s(E, { children: e.componentRef ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
720
721
  t,
721
722
  {
722
- ...Ct({
723
+ ...Rt({
723
724
  componentOptions: e.componentOptions,
724
725
  builderBlock: e.builderBlock,
725
726
  context: e.context,
@@ -730,7 +731,7 @@ function he(e) {
730
731
  contextValue: e.context
731
732
  }),
732
733
  children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ s(
733
- z,
734
+ _,
734
735
  {
735
736
  block: o,
736
737
  context: e.context,
@@ -742,10 +743,10 @@ function he(e) {
742
743
  }
743
744
  ) }) : null });
744
745
  }
745
- function wt(e) {
746
- const [t, n] = I(() => e.repeatContext);
747
- return /* @__PURE__ */ s(re.Provider, { value: t, children: /* @__PURE__ */ s(
748
- z,
746
+ function Pt(e) {
747
+ const [t, n] = C(() => e.repeatContext);
748
+ return /* @__PURE__ */ s(ce.Provider, { value: t, children: /* @__PURE__ */ s(
749
+ _,
749
750
  {
750
751
  block: e.block,
751
752
  context: t,
@@ -754,24 +755,24 @@ function wt(e) {
754
755
  }
755
756
  ) });
756
757
  }
757
- function z(e) {
758
- var d, c, m;
758
+ function _(e) {
759
+ var c, d, m;
759
760
  function t() {
760
- return ft({
761
+ return bt({
761
762
  block: e.block,
762
763
  context: e.context,
763
764
  registeredComponents: e.registeredComponents
764
765
  });
765
766
  }
766
767
  function n() {
767
- return ht({
768
+ return yt({
768
769
  block: e.block,
769
770
  context: e.context
770
771
  });
771
772
  }
772
773
  function i() {
773
- var f;
774
- return (f = e.block.repeat) != null && f.collection ? e.block : Q({
774
+ var u;
775
+ return (u = e.block.repeat) != null && u.collection ? e.block : X({
775
776
  block: e.block,
776
777
  localState: e.context.localState,
777
778
  rootState: e.context.rootState,
@@ -785,28 +786,28 @@ function z(e) {
785
786
  return e.block.tagName === "a" || ((g = i().properties) == null ? void 0 : g.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
786
787
  }
787
788
  function a() {
788
- var y, x;
789
+ var y, S;
789
790
  if ((y = e.block.repeat) != null && y.collection)
790
- return !!((x = n == null ? void 0 : n()) != null && x.length);
791
- const f = "hide" in i() ? i().hide : !1;
792
- return ("show" in i() ? i().show : !0) && !f;
791
+ return !!((S = n == null ? void 0 : n()) != null && S.length);
792
+ const u = "hide" in i() ? i().hide : !1;
793
+ return ("show" in i() ? i().show : !0) && !u;
793
794
  }
794
795
  function r() {
795
796
  var g, y;
796
797
  return !((g = t == null ? void 0 : t()) != null && g.component) && !n() ? (y = i().children) != null ? y : [] : [];
797
798
  }
798
799
  function l() {
799
- var f, g, y, x, k, w, E, p, v, P, R;
800
+ var u, g, y, S, T, w;
800
801
  return {
801
- blockChildren: (f = i().children) != null ? f : [],
802
+ blockChildren: (u = i().children) != null ? u : [],
802
803
  componentRef: (g = t == null ? void 0 : t()) == null ? void 0 : g.component,
803
804
  componentOptions: {
804
- ...Qe(i()),
805
+ ...et(i()),
805
806
  builderContext: e.context,
806
- ...((y = t == null ? void 0 : t()) == null ? void 0 : y.name) === "Core:Button" || ((x = t == null ? void 0 : t()) == null ? void 0 : x.name) === "Symbol" || ((k = t == null ? void 0 : t()) == null ? void 0 : k.name) === "Columns" || ((w = t == null ? void 0 : t()) == null ? void 0 : w.name) === "Form:Form" ? {
807
+ ...pt((y = t == null ? void 0 : t()) == null ? void 0 : y.name) ? {
807
808
  builderLinkComponent: e.linkComponent
808
809
  } : {},
809
- ...((E = t == null ? void 0 : t()) == null ? void 0 : E.name) === "Symbol" || ((p = t == null ? void 0 : t()) == null ? void 0 : p.name) === "Columns" || ((v = t == null ? void 0 : t()) == null ? void 0 : v.name) === "Form:Form" ? {
810
+ ...xt((S = t == null ? void 0 : t()) == null ? void 0 : S.name) ? {
810
811
  builderComponents: e.registeredComponents
811
812
  } : {}
812
813
  },
@@ -814,22 +815,22 @@ function z(e) {
814
815
  linkComponent: e.linkComponent,
815
816
  registeredComponents: e.registeredComponents,
816
817
  builderBlock: i(),
817
- includeBlockProps: ((P = t == null ? void 0 : t()) == null ? void 0 : P.noWrap) === !0,
818
- isInteractive: !((R = t == null ? void 0 : t()) != null && R.isRSC)
818
+ includeBlockProps: ((T = t == null ? void 0 : t()) == null ? void 0 : T.noWrap) === !0,
819
+ isInteractive: !((w = t == null ? void 0 : t()) != null && w.isRSC)
819
820
  };
820
821
  }
821
- return V(() => {
822
- const f = i().id, g = i().animations;
823
- g && f && rt(
822
+ return P(() => {
823
+ const u = i().id, g = i().animations;
824
+ g && u && ct(
824
825
  g.map((y) => ({
825
826
  ...y,
826
- elementId: f
827
+ elementId: u
827
828
  }))
828
829
  );
829
- }, []), /* @__PURE__ */ s(T, { children: a() ? /* @__PURE__ */ B(T, { children: [
830
- /* @__PURE__ */ s(gt, { block: e.block, context: e.context }),
831
- (d = t == null ? void 0 : t()) != null && d.noWrap ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(
832
- he,
830
+ }, []), /* @__PURE__ */ s(E, { children: a() ? /* @__PURE__ */ V(E, { children: [
831
+ /* @__PURE__ */ s(St, { block: e.block, context: e.context }),
832
+ (c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
833
+ ye,
833
834
  {
834
835
  componentRef: l().componentRef,
835
836
  componentOptions: l().componentOptions,
@@ -841,17 +842,17 @@ function z(e) {
841
842
  includeBlockProps: l().includeBlockProps,
842
843
  isInteractive: l().isInteractive
843
844
  }
844
- ) }) : /* @__PURE__ */ s(T, { children: n() ? /* @__PURE__ */ s(T, { children: (m = n()) == null ? void 0 : m.map((f, g) => /* @__PURE__ */ s(
845
- wt,
845
+ ) }) : /* @__PURE__ */ s(E, { children: n() ? /* @__PURE__ */ s(E, { children: (m = n()) == null ? void 0 : m.map((u, g) => /* @__PURE__ */ s(
846
+ Pt,
846
847
  {
847
- repeatContext: f.context,
848
- block: f.block,
848
+ repeatContext: u.context,
849
+ block: u.block,
849
850
  registeredComponents: e.registeredComponents,
850
851
  linkComponent: e.linkComponent
851
852
  },
852
853
  g
853
- )) }) : /* @__PURE__ */ B(
854
- vt,
854
+ )) }) : /* @__PURE__ */ V(
855
+ It,
855
856
  {
856
857
  Wrapper: o(),
857
858
  block: i(),
@@ -859,7 +860,7 @@ function z(e) {
859
860
  linkComponent: e.linkComponent,
860
861
  children: [
861
862
  /* @__PURE__ */ s(
862
- he,
863
+ ye,
863
864
  {
864
865
  componentRef: l().componentRef,
865
866
  componentOptions: l().componentOptions,
@@ -872,29 +873,29 @@ function z(e) {
872
873
  isInteractive: l().isInteractive
873
874
  }
874
875
  ),
875
- (c = r()) == null ? void 0 : c.map((f) => /* @__PURE__ */ s(
876
- z,
876
+ (d = r()) == null ? void 0 : d.map((u) => /* @__PURE__ */ s(
877
+ _,
877
878
  {
878
- block: f,
879
+ block: u,
879
880
  registeredComponents: e.registeredComponents,
880
881
  linkComponent: e.linkComponent,
881
882
  context: e.context
882
883
  },
883
- f.id
884
+ u.id
884
885
  ))
885
886
  ]
886
887
  }
887
888
  ) })
888
889
  ] }) : null });
889
890
  }
890
- function It(e) {
891
+ function Vt(e) {
891
892
  function t() {
892
893
  var o;
893
894
  return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
894
895
  }
895
896
  function n() {
896
897
  var o, a;
897
- N() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
898
+ F() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
898
899
  {
899
900
  type: "builder.clickEmptyBlocks",
900
901
  data: {
@@ -907,7 +908,7 @@ function It(e) {
907
908
  }
908
909
  function i() {
909
910
  var o, a;
910
- N() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
911
+ F() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
911
912
  {
912
913
  type: "builder.hoverEmptyBlocks",
913
914
  data: {
@@ -918,7 +919,7 @@ function It(e) {
918
919
  "*"
919
920
  ));
920
921
  }
921
- return /* @__PURE__ */ B(T, { children: [
922
+ return /* @__PURE__ */ V(E, { children: [
922
923
  /* @__PURE__ */ s(
923
924
  e.BlocksWrapper,
924
925
  {
@@ -940,11 +941,11 @@ function It(e) {
940
941
  }` })
941
942
  ] });
942
943
  }
943
- function O(e) {
944
+ function M(e) {
944
945
  var i, o, a;
945
- const t = ue(re), n = ue(Ce);
946
+ const t = he(ce), n = he(Ie);
946
947
  return /* @__PURE__ */ s(
947
- It,
948
+ Vt,
948
949
  {
949
950
  blocks: e.blocks,
950
951
  parent: e.parent,
@@ -952,8 +953,8 @@ function O(e) {
952
953
  styleProp: e.styleProp,
953
954
  BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
954
955
  BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
955
- children: e.blocks ? /* @__PURE__ */ s(T, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ s(
956
- z,
956
+ children: e.blocks ? /* @__PURE__ */ s(E, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ s(
957
+ _,
957
958
  {
958
959
  block: r,
959
960
  linkComponent: e.linkComponent,
@@ -965,82 +966,86 @@ function O(e) {
965
966
  }
966
967
  );
967
968
  }
968
- function Tt(e) {
969
- var E;
970
- const [t, n] = I(
969
+ const Bt = (e) => `builder-columns ${e}-breakpoints`;
970
+ function At(e) {
971
+ var W, D;
972
+ const [t, n] = C(
971
973
  () => typeof e.space == "number" ? e.space || 0 : 20
972
- ), [i, o] = I(() => e.columns || []), [a, r] = I(
974
+ ), [i, o] = C(() => e.columns || []), [a, r] = C(
973
975
  () => e.stackColumnsAt || "tablet"
974
976
  );
975
- function l(p) {
976
- var v;
977
- return ((v = i[p]) == null ? void 0 : v.width) || 100 / i.length;
977
+ function l(x) {
978
+ return x.link ? e.builderLinkComponent || "a" : "div";
978
979
  }
979
- function d(p) {
980
- const v = t * (i.length - 1) / i.length;
981
- return `calc(${l(p)}% - ${v}px)`;
980
+ function c(x) {
981
+ var I;
982
+ return ((I = i[x]) == null ? void 0 : I.width) || 100 / i.length;
982
983
  }
983
- function c({
984
- stackedStyle: p,
985
- desktopStyle: v
986
- }) {
987
- return a === "tablet" ? p : v;
984
+ function d(x) {
985
+ const I = t * (i.length - 1) / i.length;
986
+ return `calc(${c(x)}% - ${I}px)`;
988
987
  }
989
988
  function m({
990
- stackedStyle: p,
991
- desktopStyle: v
989
+ stackedStyle: x,
990
+ desktopStyle: I
991
+ }) {
992
+ return a === "tablet" ? x : I;
993
+ }
994
+ function u({
995
+ stackedStyle: x,
996
+ desktopStyle: I
992
997
  }) {
993
- return a === "never" ? v : p;
998
+ return a === "never" ? I : x;
994
999
  }
995
- const [f, g] = I(
1000
+ const [g, y] = C(
996
1001
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
997
1002
  );
998
- function y() {
1003
+ function S() {
999
1004
  return {
1000
- "--flex-dir": f,
1001
- "--flex-dir-tablet": c({
1002
- stackedStyle: f,
1005
+ "--flex-dir": g,
1006
+ "--flex-dir-tablet": m({
1007
+ stackedStyle: g,
1003
1008
  desktopStyle: "row"
1004
1009
  })
1005
1010
  };
1006
1011
  }
1007
- function x(p) {
1008
- const v = p === 0 ? 0 : t, P = d(p), R = `${v}px`, F = "100%", L = 0;
1012
+ function T(x) {
1013
+ const I = x === 0 ? 0 : t, N = d(x), h = `${I}px`, f = "100%", b = 0;
1009
1014
  return {
1010
1015
  ...{
1011
1016
  display: "flex",
1012
1017
  flexDirection: "column",
1013
1018
  alignItems: "stretch"
1014
1019
  },
1015
- width: P,
1016
- ["marginLeft"]: R,
1017
- "--column-width-mobile": m({
1018
- stackedStyle: F,
1019
- desktopStyle: P
1020
+ width: N,
1021
+ ["marginLeft"]: h,
1022
+ "--column-width-mobile": u({
1023
+ stackedStyle: f,
1024
+ desktopStyle: N
1020
1025
  }),
1021
- "--column-margin-left-mobile": m({
1022
- stackedStyle: L,
1023
- desktopStyle: R
1026
+ "--column-margin-left-mobile": u({
1027
+ stackedStyle: b,
1028
+ desktopStyle: h
1024
1029
  }),
1025
- "--column-width-tablet": c({
1026
- stackedStyle: F,
1027
- desktopStyle: P
1030
+ "--column-width-tablet": m({
1031
+ stackedStyle: f,
1032
+ desktopStyle: N
1028
1033
  }),
1029
- "--column-margin-left-tablet": c({
1030
- stackedStyle: L,
1031
- desktopStyle: R
1034
+ "--column-margin-left-tablet": m({
1035
+ stackedStyle: b,
1036
+ desktopStyle: h
1032
1037
  })
1033
1038
  };
1034
1039
  }
1035
- function k(p) {
1036
- var P, R;
1037
- return We(
1038
- ((R = (P = e.builderContext.content) == null ? void 0 : P.meta) == null ? void 0 : R.breakpoints) || {}
1039
- )[p].max;
1040
+ function w(x) {
1041
+ var N, h;
1042
+ return $e(
1043
+ ((h = (N = e.builderContext.content) == null ? void 0 : N.meta) == null ? void 0 : h.breakpoints) || {}
1044
+ )[x].max;
1040
1045
  }
1041
- function w() {
1046
+ function R() {
1042
1047
  return `
1043
- @media (max-width: ${k("medium")}px) {
1048
+ @media (max-width: ${w("medium")}px) {
1044
1049
  .${e.builderBlock.id}-breakpoints {
1045
1050
  flex-direction: var(--flex-dir-tablet);
1046
1051
  align-items: stretch;
@@ -1052,7 +1057,7 @@ function Tt(e) {
1052
1057
  }
1053
1058
  }
1054
1059
 
1055
- @media (max-width: ${k("small")}px) {
1060
+ @media (max-width: ${w("small")}px) {
1056
1061
  .${e.builderBlock.id}-breakpoints {
1057
1062
  flex-direction: var(--flex-dir);
1058
1063
  align-items: stretch;
@@ -1065,30 +1070,33 @@ function Tt(e) {
1065
1070
  },
1066
1071
  `;
1067
1072
  }
1068
- return /* @__PURE__ */ B(T, { children: [
1069
- /* @__PURE__ */ B(
1073
+ function A(x, I) {
1074
+ return {
1075
+ ...x.link ? {
1076
+ href: x.link
1077
+ } : {},
1078
+ [K()]: "builder-column",
1079
+ style: We(T(I))
1080
+ };
1081
+ }
1082
+ return /* @__PURE__ */ V(E, { children: [
1083
+ /* @__PURE__ */ V(
1070
1084
  "div",
1071
1085
  {
1072
- className: `builder-columns ${e.builderBlock.id}-breakpoints div-003f4b1c`,
1073
- style: y(),
1086
+ className: Bt((W = e.builderBlock) == null ? void 0 : W.id) + " div-00cb97e2",
1087
+ style: S(),
1074
1088
  children: [
1075
- /* @__PURE__ */ s(ee, { id: "builderio-columns", styles: w() }),
1076
- (E = e.columns) == null ? void 0 : E.map((p, v) => /* @__PURE__ */ s(
1077
- ae,
1089
+ /* @__PURE__ */ s(te, { id: "builderio-columns", styles: R() }),
1090
+ (D = e.columns) == null ? void 0 : D.map((x, I) => /* @__PURE__ */ s(
1091
+ se,
1078
1092
  {
1079
- TagName: p.link ? e.builderLinkComponent || "a" : "div",
1093
+ TagName: l(x),
1080
1094
  actionAttributes: {},
1081
- attributes: {
1082
- ...p.link ? {
1083
- href: p.link
1084
- } : {},
1085
- [H()]: "builder-column",
1086
- style: Ve(x(v))
1087
- },
1095
+ attributes: A(x, I),
1088
1096
  children: /* @__PURE__ */ s(
1089
- O,
1097
+ M,
1090
1098
  {
1091
- path: `component.options.columns.${v}.blocks`,
1099
+ path: `component.options.columns.${I}.blocks`,
1092
1100
  parent: e.builderBlock.id,
1093
1101
  styleProp: {
1094
1102
  flexGrow: "1"
@@ -1096,87 +1104,87 @@ function Tt(e) {
1096
1104
  context: e.builderContext,
1097
1105
  registeredComponents: e.builderComponents,
1098
1106
  linkComponent: e.builderLinkComponent,
1099
- blocks: p.blocks
1107
+ blocks: x.blocks
1100
1108
  }
1101
1109
  )
1102
1110
  },
1103
- v
1111
+ I
1104
1112
  ))
1105
1113
  ]
1106
1114
  }
1107
1115
  ),
1108
- /* @__PURE__ */ s("style", { children: `.div-003f4b1c {
1116
+ /* @__PURE__ */ s("style", { children: `.div-00cb97e2 {
1109
1117
  display: flex;
1110
1118
  line-height: normal;
1111
1119
  }` })
1112
1120
  ] });
1113
1121
  }
1114
- function Et(e) {
1122
+ function Wt(e) {
1115
1123
  return /* @__PURE__ */ s("span", { children: e.children });
1116
1124
  }
1117
- function ge(e) {
1125
+ function pe(e) {
1118
1126
  return e.replace(/http(s)?:/, "");
1119
1127
  }
1120
- function Rt(e = "", t, n) {
1128
+ function Nt(e = "", t, n) {
1121
1129
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
1122
1130
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
1123
1131
  }
1124
- function Pt(e, t) {
1132
+ function $t(e, t) {
1125
1133
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1126
1134
  return e;
1127
1135
  if (t === "master")
1128
- return ge(e);
1136
+ return pe(e);
1129
1137
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1130
1138
  if (n) {
1131
1139
  const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
1132
- return ge(`${i[0]}_${a}${o}`);
1140
+ return pe(`${i[0]}_${a}${o}`);
1133
1141
  }
1134
1142
  return null;
1135
1143
  }
1136
- function ne(e) {
1144
+ function ie(e) {
1137
1145
  if (!e)
1138
1146
  return e;
1139
1147
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1140
1148
  if (e.match(/builder\.io/)) {
1141
1149
  let n = e;
1142
1150
  const i = Number(e.split("?width=")[1]);
1143
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Rt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1151
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Nt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1144
1152
  }
1145
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Pt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1153
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [$t(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1146
1154
  }
1147
- function Vt(e) {
1148
- var o, a, r, l;
1155
+ function Ft(e) {
1156
+ var o, a, r, l, c, d;
1149
1157
  function t() {
1150
- var m;
1151
- const c = e.image || e.src;
1152
- if (!c || // We can auto add srcset for cdn.builder.io and shopify
1158
+ var g;
1159
+ const u = e.image || e.src;
1160
+ if (!u || // We can auto add srcset for cdn.builder.io and shopify
1153
1161
  // images, otherwise you can supply this prop manually
1154
- !(c.match(/builder\.io/) || c.match(/cdn\.shopify\.com/)))
1162
+ !(u.match(/builder\.io/) || u.match(/cdn\.shopify\.com/)))
1155
1163
  return e.srcset;
1156
- if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
1164
+ if (e.srcset && ((g = e.image) != null && g.includes("builder.io/api/v1/image"))) {
1157
1165
  if (!e.srcset.includes(e.image.split("?")[0]))
1158
- return console.debug("Removed given srcset"), ne(c);
1166
+ return console.debug("Removed given srcset"), ie(u);
1159
1167
  } else if (e.image && !e.srcset)
1160
- return ne(c);
1161
- return ne(c);
1168
+ return ie(u);
1169
+ return ie(u);
1162
1170
  }
1163
1171
  function n() {
1164
- var d;
1165
- return (d = t == null ? void 0 : t()) != null && d.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
1172
+ var m;
1173
+ return (m = t == null ? void 0 : t()) != null && m.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
1166
1174
  }
1167
1175
  function i() {
1168
- const d = {
1176
+ const m = {
1169
1177
  position: "absolute",
1170
1178
  height: "100%",
1171
1179
  width: "100%",
1172
1180
  left: "0px",
1173
1181
  top: "0px"
1174
1182
  };
1175
- return e.aspectRatio ? d : void 0;
1183
+ return e.aspectRatio ? m : void 0;
1176
1184
  }
1177
- return /* @__PURE__ */ B(T, { children: [
1178
- /* @__PURE__ */ B(T, { children: [
1179
- /* @__PURE__ */ B("picture", { children: [
1185
+ return /* @__PURE__ */ V(E, { children: [
1186
+ /* @__PURE__ */ V(E, { children: [
1187
+ /* @__PURE__ */ V("picture", { children: [
1180
1188
  n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1181
1189
  /* @__PURE__ */ s(
1182
1190
  "img",
@@ -1189,7 +1197,7 @@ function Vt(e) {
1189
1197
  objectFit: e.backgroundSize || "cover",
1190
1198
  ...i()
1191
1199
  },
1192
- className: "builder-image" + (e.className ? " " + e.className : "") + " img-a0c95e8c",
1200
+ className: "builder-image" + (e.className ? " " + e.className : "") + " img-3ac67dd4",
1193
1201
  src: e.image,
1194
1202
  srcSet: t(),
1195
1203
  sizes: e.sizes
@@ -1199,23 +1207,23 @@ function Vt(e) {
1199
1207
  e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ s(
1200
1208
  "div",
1201
1209
  {
1202
- className: "builder-image-sizer div-a0c95e8c",
1210
+ className: "builder-image-sizer div-3ac67dd4",
1203
1211
  style: {
1204
1212
  paddingTop: e.aspectRatio * 100 + "%"
1205
1213
  }
1206
1214
  }
1207
1215
  ) : null,
1208
- (l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(T, { children: e.children }) : null,
1209
- !e.fitContent && e.children ? /* @__PURE__ */ s("div", { className: "div-a0c95e8c-2", children: e.children }) : null
1216
+ (l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(E, { children: e.children }) : null,
1217
+ !e.fitContent && ((d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length) ? /* @__PURE__ */ s("div", { className: "div-3ac67dd4-2", children: e.children }) : null
1210
1218
  ] }),
1211
- /* @__PURE__ */ s("style", { children: `.img-a0c95e8c {
1219
+ /* @__PURE__ */ s("style", { children: `.img-3ac67dd4 {
1212
1220
  opacity: 1;
1213
1221
  transition: opacity 0.2s ease-in-out;
1214
- }.div-a0c95e8c {
1222
+ }.div-3ac67dd4 {
1215
1223
  width: 100%;
1216
1224
  pointer-events: none;
1217
1225
  font-size: 0;
1218
- }.div-a0c95e8c-2 {
1226
+ }.div-3ac67dd4-2 {
1219
1227
  display: flex;
1220
1228
  flex-direction: column;
1221
1229
  align-items: stretch;
@@ -1227,7 +1235,7 @@ function Vt(e) {
1227
1235
  }` })
1228
1236
  ] });
1229
1237
  }
1230
- function Bt(e) {
1238
+ function Lt(e) {
1231
1239
  return /* @__PURE__ */ s(
1232
1240
  "section",
1233
1241
  {
@@ -1248,7 +1256,7 @@ function Bt(e) {
1248
1256
  }
1249
1257
  );
1250
1258
  }
1251
- const Wt = {
1259
+ const Dt = {
1252
1260
  name: "Core:Button",
1253
1261
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1254
1262
  defaultStyles: {
@@ -1281,7 +1289,7 @@ const Wt = {
1281
1289
  }],
1282
1290
  static: !0,
1283
1291
  noWrap: !0
1284
- }, At = {
1292
+ }, Mt = {
1285
1293
  // TODO: ways to statically preprocess JSON for references, functions, etc
1286
1294
  name: "Columns",
1287
1295
  isRSC: !0,
@@ -1460,7 +1468,7 @@ const Wt = {
1460
1468
  });
1461
1469
  }
1462
1470
  const n = e.get("columns");
1463
- Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((l, d) => l + d.get("width"), 0) !== 100) && t();
1471
+ Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((l, c) => l + c.get("width"), 0) !== 100) && t();
1464
1472
  }
1465
1473
  }, {
1466
1474
  name: "space",
@@ -1482,13 +1490,13 @@ const Wt = {
1482
1490
  helperText: "When stacking columns for mobile devices, reverse the ordering",
1483
1491
  advanced: !0
1484
1492
  }]
1485
- }, Nt = {
1493
+ }, Ot = {
1486
1494
  name: "Fragment",
1487
1495
  static: !0,
1488
1496
  hidden: !0,
1489
1497
  canHaveChildren: !0,
1490
1498
  noWrap: !0
1491
- }, $t = {
1499
+ }, Ut = {
1492
1500
  name: "Image",
1493
1501
  static: !0,
1494
1502
  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",
@@ -1509,15 +1517,15 @@ const Wt = {
1509
1517
  onChange: (e) => {
1510
1518
  e.delete("srcset"), e.delete("noWebp");
1511
1519
  function n(r, l = 6e4) {
1512
- return new Promise((d, c) => {
1520
+ return new Promise((c, d) => {
1513
1521
  const m = document.createElement("img");
1514
- let f = !1;
1522
+ let u = !1;
1515
1523
  m.onload = () => {
1516
- f = !0, d(m);
1524
+ u = !0, c(m);
1517
1525
  }, m.addEventListener("error", (g) => {
1518
- console.warn("Image load failed", g.error), c(g.error);
1526
+ console.warn("Image load failed", g.error), d(g.error);
1519
1527
  }), m.src = r, setTimeout(() => {
1520
- f || c(new Error("Image load timed out"));
1528
+ u || d(new Error("Image load timed out"));
1521
1529
  }, l);
1522
1530
  });
1523
1531
  }
@@ -1588,7 +1596,7 @@ const Wt = {
1588
1596
  advanced: !0,
1589
1597
  defaultValue: 0.7041
1590
1598
  }]
1591
- }, Ft = {
1599
+ }, jt = {
1592
1600
  name: "Core:Section",
1593
1601
  static: !0,
1594
1602
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1627,7 +1635,7 @@ const Wt = {
1627
1635
  }
1628
1636
  }
1629
1637
  }]
1630
- }, Lt = {
1638
+ }, Ht = {
1631
1639
  name: "Slot",
1632
1640
  isRSC: !0,
1633
1641
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1641,7 +1649,7 @@ const Wt = {
1641
1649
  defaultValue: "children"
1642
1650
  }]
1643
1651
  };
1644
- function Dt(e) {
1652
+ function Kt(e) {
1645
1653
  var t, n, i;
1646
1654
  return /* @__PURE__ */ s(
1647
1655
  "div",
@@ -1653,7 +1661,7 @@ function Dt(e) {
1653
1661
  "builder-slot": e.name
1654
1662
  },
1655
1663
  children: /* @__PURE__ */ s(
1656
- O,
1664
+ M,
1657
1665
  {
1658
1666
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
1659
1667
  path: `symbol.data.${e.name}`,
@@ -1664,7 +1672,7 @@ function Dt(e) {
1664
1672
  }
1665
1673
  );
1666
1674
  }
1667
- const Mt = {
1675
+ const qt = {
1668
1676
  name: "Symbol",
1669
1677
  noWrap: !0,
1670
1678
  static: !0,
@@ -1697,7 +1705,202 @@ const Mt = {
1697
1705
  hideFromUI: !0,
1698
1706
  type: "boolean"
1699
1707
  }]
1700
- }, Ot = {
1708
+ }, oe = {
1709
+ "@type": "@builder.io/sdk:Element",
1710
+ responsiveStyles: {
1711
+ large: {
1712
+ paddingLeft: "20px",
1713
+ paddingRight: "20px",
1714
+ paddingTop: "10px",
1715
+ paddingBottom: "10px",
1716
+ minWidth: "100px",
1717
+ textAlign: "center",
1718
+ display: "flex",
1719
+ flexDirection: "column",
1720
+ cursor: "pointer",
1721
+ userSelect: "none"
1722
+ }
1723
+ },
1724
+ component: {
1725
+ name: "Text",
1726
+ options: {
1727
+ text: "New tab"
1728
+ }
1729
+ }
1730
+ }, ae = {
1731
+ "@type": "@builder.io/sdk:Element",
1732
+ responsiveStyles: {
1733
+ large: {
1734
+ height: "200px",
1735
+ display: "flex",
1736
+ marginTop: "20px",
1737
+ flexDirection: "column"
1738
+ }
1739
+ },
1740
+ component: {
1741
+ name: "Text",
1742
+ options: {
1743
+ text: "New tab content "
1744
+ }
1745
+ }
1746
+ }, zt = {
1747
+ name: "Builder: Tabs",
1748
+ inputs: [{
1749
+ name: "tabs",
1750
+ type: "list",
1751
+ broadcast: !0,
1752
+ subFields: [{
1753
+ name: "label",
1754
+ type: "uiBlocks",
1755
+ hideFromUI: !0,
1756
+ defaultValue: [oe]
1757
+ }, {
1758
+ name: "content",
1759
+ type: "uiBlocks",
1760
+ hideFromUI: !0,
1761
+ defaultValue: [ae]
1762
+ }],
1763
+ defaultValue: [{
1764
+ label: [{
1765
+ ...oe,
1766
+ component: {
1767
+ name: "Text",
1768
+ options: {
1769
+ text: "Tab 1"
1770
+ }
1771
+ }
1772
+ }],
1773
+ content: [{
1774
+ ...ae,
1775
+ component: {
1776
+ name: "Text",
1777
+ options: {
1778
+ text: "Tab 1 content"
1779
+ }
1780
+ }
1781
+ }]
1782
+ }, {
1783
+ label: [{
1784
+ ...oe,
1785
+ component: {
1786
+ name: "Text",
1787
+ options: {
1788
+ text: "Tab 2"
1789
+ }
1790
+ }
1791
+ }],
1792
+ content: [{
1793
+ ...ae,
1794
+ component: {
1795
+ name: "Text",
1796
+ options: {
1797
+ text: "Tab 2 content"
1798
+ }
1799
+ }
1800
+ }]
1801
+ }]
1802
+ }, {
1803
+ name: "activeTabStyle",
1804
+ type: "uiStyle",
1805
+ helperText: "CSS styles for the active tab",
1806
+ defaultValue: {
1807
+ backgroundColor: "rgba(0, 0, 0, 0.1)"
1808
+ }
1809
+ }, {
1810
+ name: "defaultActiveTab",
1811
+ type: "number",
1812
+ helperText: 'Default tab to open to. Set to "1" for the first tab, "2" for the second, or choose "0" for none',
1813
+ defaultValue: 1,
1814
+ advanced: !0
1815
+ }, {
1816
+ name: "collapsible",
1817
+ type: "boolean",
1818
+ helperText: "If on, clicking an open tab closes it so no tabs are active",
1819
+ defaultValue: !1,
1820
+ advanced: !0
1821
+ }, {
1822
+ name: "tabHeaderLayout",
1823
+ type: "enum",
1824
+ helperText: "Change the layout of the tab headers (uses justify-content)",
1825
+ defaultValue: "flex-start",
1826
+ enum: [{
1827
+ label: "Center",
1828
+ value: "center"
1829
+ }, {
1830
+ label: "Space between",
1831
+ value: "space-between"
1832
+ }, {
1833
+ label: "Space around",
1834
+ value: "space-around"
1835
+ }, {
1836
+ label: "Left",
1837
+ value: "flex-start"
1838
+ }, {
1839
+ label: "Right",
1840
+ value: "flex-end"
1841
+ }]
1842
+ }]
1843
+ };
1844
+ function _t(e) {
1845
+ var a;
1846
+ const [t, n] = C(
1847
+ () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
1848
+ );
1849
+ function i(r) {
1850
+ return e.tabs && e.tabs[r].content;
1851
+ }
1852
+ function o(r) {
1853
+ return t === r ? e.activeTabStyle : {};
1854
+ }
1855
+ return /* @__PURE__ */ V("div", { children: [
1856
+ /* @__PURE__ */ s(
1857
+ "div",
1858
+ {
1859
+ className: "builder-tabs-wrap",
1860
+ style: {
1861
+ display: "flex",
1862
+ flexDirection: "row",
1863
+ justifyContent: e.tabHeaderLayout || "flex-start",
1864
+ overflow: "auto"
1865
+ },
1866
+ children: (a = e.tabs) == null ? void 0 : a.map((r, l) => /* @__PURE__ */ s(
1867
+ "span",
1868
+ {
1869
+ className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
1870
+ style: o(l),
1871
+ onClick: (c) => {
1872
+ l === t && e.collapsible ? n(-1) : n(l);
1873
+ },
1874
+ children: /* @__PURE__ */ s(
1875
+ M,
1876
+ {
1877
+ parent: e.builderBlock.id,
1878
+ path: `component.options.tabs.${l}.label`,
1879
+ blocks: r.label,
1880
+ context: e.builderContext,
1881
+ registeredComponents: e.builderComponents,
1882
+ linkComponent: e.builderLinkComponent
1883
+ }
1884
+ )
1885
+ },
1886
+ l
1887
+ ))
1888
+ }
1889
+ ),
1890
+ i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
1891
+ M,
1892
+ {
1893
+ parent: e.builderBlock.id,
1894
+ path: `component.options.tabs.${t}.content`,
1895
+ blocks: i(t),
1896
+ context: e.builderContext,
1897
+ registeredComponents: e.builderComponents,
1898
+ linkComponent: e.builderLinkComponent
1899
+ }
1900
+ ) }) : null
1901
+ ] });
1902
+ }
1903
+ const Jt = {
1701
1904
  name: "Text",
1702
1905
  static: !0,
1703
1906
  isRSC: !0,
@@ -1716,7 +1919,7 @@ const Mt = {
1716
1919
  textAlign: "center"
1717
1920
  }
1718
1921
  };
1719
- function Ut(e) {
1922
+ function Yt(e) {
1720
1923
  var t;
1721
1924
  return /* @__PURE__ */ s(
1722
1925
  "div",
@@ -1729,7 +1932,7 @@ function Ut(e) {
1729
1932
  }
1730
1933
  );
1731
1934
  }
1732
- const jt = {
1935
+ const Gt = {
1733
1936
  name: "Custom Code",
1734
1937
  static: !0,
1735
1938
  requiredPermissions: ["editCode"],
@@ -1752,30 +1955,30 @@ const jt = {
1752
1955
  advanced: !0
1753
1956
  }]
1754
1957
  };
1755
- function Ht(e) {
1756
- const t = Z(null), [n, i] = I(() => []), [o, a] = I(() => []);
1757
- return V(() => {
1958
+ function Qt(e) {
1959
+ const t = ee(null), [n, i] = C(() => []), [o, a] = C(() => []);
1960
+ return P(() => {
1758
1961
  var l;
1759
1962
  if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
1760
1963
  return;
1761
1964
  const r = t.current.getElementsByTagName("script");
1762
- for (let d = 0; d < r.length; d++) {
1763
- const c = r[d];
1764
- if (c.src) {
1765
- if (n.includes(c.src))
1965
+ for (let c = 0; c < r.length; c++) {
1966
+ const d = r[c];
1967
+ if (d.src) {
1968
+ if (n.includes(d.src))
1766
1969
  continue;
1767
- n.push(c.src);
1970
+ n.push(d.src);
1768
1971
  const m = document.createElement("script");
1769
- m.async = !0, m.src = c.src, document.head.appendChild(m);
1770
- } else if (!c.type || [
1972
+ m.async = !0, m.src = d.src, document.head.appendChild(m);
1973
+ } else if (!d.type || [
1771
1974
  "text/javascript",
1772
1975
  "application/javascript",
1773
1976
  "application/ecmascript"
1774
- ].includes(c.type)) {
1775
- if (o.includes(c.innerText))
1977
+ ].includes(d.type)) {
1978
+ if (o.includes(d.innerText))
1776
1979
  continue;
1777
1980
  try {
1778
- o.push(c.innerText), new Function(c.innerText)();
1981
+ o.push(d.innerText), new Function(d.innerText)();
1779
1982
  } catch (m) {
1780
1983
  console.warn("`CustomCode`: Error running script:", m);
1781
1984
  }
@@ -1790,7 +1993,7 @@ function Ht(e) {
1790
1993
  }
1791
1994
  );
1792
1995
  }
1793
- const Kt = {
1996
+ const Xt = {
1794
1997
  name: "Embed",
1795
1998
  static: !0,
1796
1999
  inputs: [{
@@ -1815,29 +2018,29 @@ const Kt = {
1815
2018
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1816
2019
  hideFromUI: !0
1817
2020
  }]
1818
- }, qt = ["text/javascript", "application/javascript", "application/ecmascript"], zt = (e) => qt.includes(e.type);
1819
- function _t(e) {
1820
- const t = Z(null), [n, i] = I(() => []), [o, a] = I(() => []), [r, l] = I(() => !1);
1821
- function d() {
2021
+ }, Zt = ["text/javascript", "application/javascript", "application/ecmascript"], en = (e) => Zt.includes(e.type);
2022
+ function tn(e) {
2023
+ const t = ee(null), [n, i] = C(() => []), [o, a] = C(() => []), [r, l] = C(() => !1);
2024
+ function c() {
1822
2025
  if (!t.current || !t.current.getElementsByTagName)
1823
2026
  return;
1824
- const c = t.current.getElementsByTagName("script");
1825
- for (let m = 0; m < c.length; m++) {
1826
- const f = c[m];
1827
- if (f.src && !n.includes(f.src)) {
1828
- n.push(f.src);
2027
+ const d = t.current.getElementsByTagName("script");
2028
+ for (let m = 0; m < d.length; m++) {
2029
+ const u = d[m];
2030
+ if (u.src && !n.includes(u.src)) {
2031
+ n.push(u.src);
1829
2032
  const g = document.createElement("script");
1830
- g.async = !0, g.src = f.src, document.head.appendChild(g);
1831
- } else if (zt(f) && !o.includes(f.innerText))
2033
+ g.async = !0, g.src = u.src, document.head.appendChild(g);
2034
+ } else if (en(u) && !o.includes(u.innerText))
1832
2035
  try {
1833
- o.push(f.innerText), new Function(f.innerText)();
2036
+ o.push(u.innerText), new Function(u.innerText)();
1834
2037
  } catch (g) {
1835
2038
  console.warn("`Embed`: Error running script:", g);
1836
2039
  }
1837
2040
  }
1838
2041
  }
1839
- return V(() => {
1840
- t.current && !r && (l(!0), d());
2042
+ return P(() => {
2043
+ t.current && !r && (l(!0), c());
1841
2044
  }, [t.current, r]), /* @__PURE__ */ s(
1842
2045
  "div",
1843
2046
  {
@@ -1847,7 +2050,7 @@ function _t(e) {
1847
2050
  }
1848
2051
  );
1849
2052
  }
1850
- const Jt = {
2053
+ const nn = {
1851
2054
  name: "Form:Form",
1852
2055
  // editableTags: ['builder-form-error']
1853
2056
  defaults: {
@@ -2078,127 +2281,127 @@ const Jt = {
2078
2281
  }
2079
2282
  }
2080
2283
  }]
2081
- }, Yt = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Gt = () => {
2284
+ }, on = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], an = () => {
2082
2285
  const e = process.env.NODE_ENV || "production";
2083
- return Yt.includes(e) ? e : "production";
2084
- }, Qt = (e, t, n) => {
2286
+ return on.includes(e) ? e : "production";
2287
+ }, rn = (e, t, n) => {
2085
2288
  const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
2086
2289
  return i === void 0 || i === e ? n : i;
2087
2290
  };
2088
- function Xt(e) {
2089
- var f, g;
2090
- const t = Z(null), [n, i] = I(() => "unsubmitted"), [o, a] = I(() => null), [r, l] = I(() => "");
2091
- function d(y) {
2092
- var k, w;
2093
- const x = {
2291
+ function ln(e) {
2292
+ var u, g;
2293
+ const t = ee(null), [n, i] = C(() => "unsubmitted"), [o, a] = C(() => null), [r, l] = C(() => "");
2294
+ function c(y) {
2295
+ var T, w;
2296
+ const S = {
2094
2297
  ...e.builderContext.rootState,
2095
2298
  ...y
2096
2299
  };
2097
- e.builderContext.rootSetState ? (w = (k = e.builderContext).rootSetState) == null || w.call(k, x) : e.builderContext.rootState = x;
2300
+ e.builderContext.rootSetState ? (w = (T = e.builderContext).rootSetState) == null || w.call(T, S) : e.builderContext.rootState = S;
2098
2301
  }
2099
- function c() {
2100
- return N() && e.previewState || n;
2302
+ function d() {
2303
+ return F() && e.previewState || n;
2101
2304
  }
2102
2305
  function m(y) {
2103
- var k;
2104
- const x = e.sendWithJs || e.sendSubmissionsTo === "email";
2306
+ var T;
2307
+ const S = e.sendWithJs || e.sendSubmissionsTo === "email";
2105
2308
  if (e.sendSubmissionsTo === "zapier")
2106
2309
  y.preventDefault();
2107
- else if (x) {
2310
+ else if (S) {
2108
2311
  if (!(e.action || e.sendSubmissionsTo === "email")) {
2109
2312
  y.preventDefault();
2110
2313
  return;
2111
2314
  }
2112
2315
  y.preventDefault();
2113
- const w = y.currentTarget, E = e.customHeaders || {};
2114
- let p;
2115
- const v = new FormData(w), P = Array.from(
2316
+ const w = y.currentTarget, R = e.customHeaders || {};
2317
+ let A;
2318
+ const W = new FormData(w), D = Array.from(
2116
2319
  y.currentTarget.querySelectorAll("input,select,textarea")
2117
- ).filter((u) => !!u.name).map((u) => {
2118
- let h;
2119
- const C = u.name;
2120
- if (u instanceof HTMLInputElement)
2121
- if (u.type === "radio") {
2122
- if (u.checked)
2123
- return h = u.name, {
2124
- key: C,
2125
- value: h
2320
+ ).filter((h) => !!h.name).map((h) => {
2321
+ let f;
2322
+ const b = h.name;
2323
+ if (h instanceof HTMLInputElement)
2324
+ if (h.type === "radio") {
2325
+ if (h.checked)
2326
+ return f = h.name, {
2327
+ key: b,
2328
+ value: f
2126
2329
  };
2127
- } else if (u.type === "checkbox")
2128
- h = u.checked;
2129
- else if (u.type === "number" || u.type === "range") {
2130
- const b = u.valueAsNumber;
2131
- isNaN(b) || (h = b);
2330
+ } else if (h.type === "checkbox")
2331
+ f = h.checked;
2332
+ else if (h.type === "number" || h.type === "range") {
2333
+ const p = h.valueAsNumber;
2334
+ isNaN(p) || (f = p);
2132
2335
  } else
2133
- u.type === "file" ? h = u.files : h = u.value;
2336
+ h.type === "file" ? f = h.files : f = h.value;
2134
2337
  else
2135
- h = u.value;
2338
+ f = h.value;
2136
2339
  return {
2137
- key: C,
2138
- value: h
2340
+ key: b,
2341
+ value: f
2139
2342
  };
2140
2343
  });
2141
- let R = e.contentType;
2142
- if (e.sendSubmissionsTo === "email" && (R = "multipart/form-data"), Array.from(P).forEach(({ value: u }) => {
2143
- (u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (R = "multipart/form-data");
2144
- }), R !== "application/json")
2145
- p = v;
2344
+ let x = e.contentType;
2345
+ if (e.sendSubmissionsTo === "email" && (x = "multipart/form-data"), Array.from(D).forEach(({ value: h }) => {
2346
+ (h instanceof File || Array.isArray(h) && h[0] instanceof File || h instanceof FileList) && (x = "multipart/form-data");
2347
+ }), x !== "application/json")
2348
+ A = W;
2146
2349
  else {
2147
- const u = {};
2148
- Array.from(P).forEach(({ value: h, key: C }) => {
2149
- Ie(u, C, h);
2150
- }), p = JSON.stringify(u);
2350
+ const h = {};
2351
+ Array.from(D).forEach(({ value: f, key: b }) => {
2352
+ Re(h, b, f);
2353
+ }), A = JSON.stringify(h);
2151
2354
  }
2152
- R && R !== "multipart/form-data" && (x && ((k = e.action) != null && k.includes("zapier.com")) || (E["content-type"] = R));
2153
- const F = new CustomEvent("presubmit", { detail: { body: p } });
2154
- if (t.current && (t.current.dispatchEvent(F), F.defaultPrevented))
2355
+ x && x !== "multipart/form-data" && (S && ((T = e.action) != null && T.includes("zapier.com")) || (R["content-type"] = x));
2356
+ const I = new CustomEvent("presubmit", { detail: { body: A } });
2357
+ if (t.current && (t.current.dispatchEvent(I), I.defaultPrevented))
2155
2358
  return;
2156
2359
  i("sending");
2157
- const L = `${Gt() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2360
+ const N = `${an() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2158
2361
  e.sendSubmissionsToEmail || ""
2159
2362
  )}&name=${encodeURIComponent(e.name || "")}`;
2160
2363
  fetch(
2161
- e.sendSubmissionsTo === "email" ? L : e.action,
2162
- { body: p, headers: E, method: e.method || "post" }
2364
+ e.sendSubmissionsTo === "email" ? N : e.action,
2365
+ { body: A, headers: R, method: e.method || "post" }
2163
2366
  ).then(
2164
- async (u) => {
2165
- let h;
2166
- const C = u.headers.get("content-type");
2167
- if (C && C.indexOf("application/json") !== -1 ? h = await u.json() : h = await u.text(), !u.ok && e.errorMessagePath) {
2168
- let b = Qt(h, e.errorMessagePath);
2169
- b && (typeof b != "string" && (b = JSON.stringify(b)), l(b), d({ formErrorMessage: b }));
2367
+ async (h) => {
2368
+ let f;
2369
+ const b = h.headers.get("content-type");
2370
+ if (b && b.indexOf("application/json") !== -1 ? f = await h.json() : f = await h.text(), !h.ok && e.errorMessagePath) {
2371
+ let p = rn(f, e.errorMessagePath);
2372
+ p && (typeof p != "string" && (p = JSON.stringify(p)), l(p), c({ formErrorMessage: p }));
2170
2373
  }
2171
- if (a(h), i(u.ok ? "success" : "error"), u.ok) {
2172
- const b = new CustomEvent("submit:success", {
2173
- detail: { res: u, body: h }
2374
+ if (a(f), i(h.ok ? "success" : "error"), h.ok) {
2375
+ const p = new CustomEvent("submit:success", {
2376
+ detail: { res: h, body: f }
2174
2377
  });
2175
2378
  if (t.current) {
2176
- if (t.current.dispatchEvent(b), b.defaultPrevented)
2379
+ if (t.current.dispatchEvent(p), p.defaultPrevented)
2177
2380
  return;
2178
2381
  e.resetFormOnSubmit !== !1 && t.current.reset();
2179
2382
  }
2180
2383
  if (e.successUrl)
2181
2384
  if (t.current) {
2182
- const S = new CustomEvent("route", {
2385
+ const v = new CustomEvent("route", {
2183
2386
  detail: { url: e.successUrl }
2184
2387
  });
2185
- t.current.dispatchEvent(S), S.defaultPrevented || (location.href = e.successUrl);
2388
+ t.current.dispatchEvent(v), v.defaultPrevented || (location.href = e.successUrl);
2186
2389
  } else
2187
2390
  location.href = e.successUrl;
2188
2391
  }
2189
2392
  },
2190
- (u) => {
2191
- const h = new CustomEvent("submit:error", {
2192
- detail: { error: u }
2393
+ (h) => {
2394
+ const f = new CustomEvent("submit:error", {
2395
+ detail: { error: h }
2193
2396
  });
2194
- t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (a(u), i("error"));
2397
+ t.current && (t.current.dispatchEvent(f), f.defaultPrevented) || (a(h), i("error"));
2195
2398
  }
2196
2399
  );
2197
2400
  }
2198
2401
  }
2199
- return /* @__PURE__ */ B(T, { children: [
2402
+ return /* @__PURE__ */ V(E, { children: [
2200
2403
  " ",
2201
- /* @__PURE__ */ B(
2404
+ /* @__PURE__ */ V(
2202
2405
  "form",
2203
2406
  {
2204
2407
  validate: e.validate,
@@ -2209,35 +2412,35 @@ function Xt(e) {
2209
2412
  onSubmit: (y) => m(y),
2210
2413
  ...e.attributes,
2211
2414
  children: [
2212
- e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(T, { children: (g = (f = e.builderBlock) == null ? void 0 : f.children) == null ? void 0 : g.map((y, x) => /* @__PURE__ */ s(
2213
- z,
2415
+ e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(E, { children: (g = (u = e.builderBlock) == null ? void 0 : u.children) == null ? void 0 : g.map((y, S) => /* @__PURE__ */ s(
2416
+ _,
2214
2417
  {
2215
2418
  block: y,
2216
2419
  context: e.builderContext,
2217
2420
  registeredComponents: e.builderComponents,
2218
2421
  linkComponent: e.builderLinkComponent
2219
2422
  },
2220
- `form-block-${x}`
2423
+ `form-block-${S}`
2221
2424
  )) }) : null,
2222
- c() === "error" ? /* @__PURE__ */ s(
2223
- O,
2425
+ d() === "error" ? /* @__PURE__ */ s(
2426
+ M,
2224
2427
  {
2225
2428
  path: "errorMessage",
2226
2429
  blocks: e.errorMessage,
2227
2430
  context: e.builderContext
2228
2431
  }
2229
2432
  ) : null,
2230
- c() === "sending" ? /* @__PURE__ */ s(
2231
- O,
2433
+ d() === "sending" ? /* @__PURE__ */ s(
2434
+ M,
2232
2435
  {
2233
2436
  path: "sendingMessage",
2234
2437
  blocks: e.sendingMessage,
2235
2438
  context: e.builderContext
2236
2439
  }
2237
2440
  ) : null,
2238
- c() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-31bf8a14", children: JSON.stringify(o, null, 2) }) : null,
2239
- c() === "success" ? /* @__PURE__ */ s(
2240
- O,
2441
+ d() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-31bf8a14", children: JSON.stringify(o, null, 2) }) : null,
2442
+ d() === "success" ? /* @__PURE__ */ s(
2443
+ M,
2241
2444
  {
2242
2445
  path: "successMessage",
2243
2446
  blocks: e.successMessage,
@@ -2252,7 +2455,7 @@ function Xt(e) {
2252
2455
  " "
2253
2456
  ] });
2254
2457
  }
2255
- const Zt = {
2458
+ const sn = {
2256
2459
  name: "Form:Input",
2257
2460
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2258
2461
  inputs: [
@@ -2304,12 +2507,12 @@ const Zt = {
2304
2507
  borderColor: "#ccc"
2305
2508
  }
2306
2509
  };
2307
- function en(e) {
2308
- return /* @__PURE__ */ ke(
2510
+ function cn(e) {
2511
+ return /* @__PURE__ */ we(
2309
2512
  "input",
2310
2513
  {
2311
2514
  ...e.attributes,
2312
- key: N() && e.defaultValue ? e.defaultValue : "default-key",
2515
+ key: F() && e.defaultValue ? e.defaultValue : "default-key",
2313
2516
  placeholder: e.placeholder,
2314
2517
  type: e.type,
2315
2518
  name: e.name,
@@ -2319,7 +2522,7 @@ function en(e) {
2319
2522
  }
2320
2523
  );
2321
2524
  }
2322
- const tn = {
2525
+ const dn = {
2323
2526
  name: "Form:Select",
2324
2527
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2325
2528
  defaultStyles: {
@@ -2362,21 +2565,21 @@ const tn = {
2362
2565
  static: !0,
2363
2566
  noWrap: !0
2364
2567
  };
2365
- function nn(e) {
2568
+ function un(e) {
2366
2569
  var t;
2367
- return /* @__PURE__ */ ke(
2570
+ return /* @__PURE__ */ we(
2368
2571
  "select",
2369
2572
  {
2370
2573
  ...e.attributes,
2371
2574
  value: e.value,
2372
- key: N() && e.defaultValue ? e.defaultValue : "default-key",
2575
+ key: F() && e.defaultValue ? e.defaultValue : "default-key",
2373
2576
  defaultValue: e.defaultValue,
2374
2577
  name: e.name
2375
2578
  },
2376
2579
  (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2377
2580
  );
2378
2581
  }
2379
- const on = {
2582
+ const mn = {
2380
2583
  name: "Form:SubmitButton",
2381
2584
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2382
2585
  defaultStyles: {
@@ -2402,10 +2605,10 @@ const on = {
2402
2605
  // TODO: defaultChildren
2403
2606
  // canHaveChildren: true,
2404
2607
  };
2405
- function an(e) {
2608
+ function fn(e) {
2406
2609
  return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
2407
2610
  }
2408
- const rn = {
2611
+ const hn = {
2409
2612
  // friendlyName?
2410
2613
  name: "Raw:Img",
2411
2614
  hideFromInsertMenu: !0,
@@ -2420,7 +2623,7 @@ const rn = {
2420
2623
  noWrap: !0,
2421
2624
  static: !0
2422
2625
  };
2423
- function ln(e) {
2626
+ function gn(e) {
2424
2627
  return /* @__PURE__ */ s(
2425
2628
  "img",
2426
2629
  {
@@ -2432,10 +2635,10 @@ function ln(e) {
2432
2635
  src: e.imgSrc || e.image,
2433
2636
  ...e.attributes
2434
2637
  },
2435
- N() && e.imgSrc || "default-key"
2638
+ F() && e.imgSrc || "default-key"
2436
2639
  );
2437
2640
  }
2438
- const sn = {
2641
+ const bn = {
2439
2642
  name: "Video",
2440
2643
  canHaveChildren: !0,
2441
2644
  defaultStyles: {
@@ -2517,8 +2720,8 @@ const sn = {
2517
2720
  advanced: !0
2518
2721
  }]
2519
2722
  };
2520
- function cn(e) {
2521
- var i, o, a, r, l, d, c;
2723
+ function yn(e) {
2724
+ var i, o, a, r, l, c, d;
2522
2725
  function t() {
2523
2726
  return {
2524
2727
  ...e.autoPlay === !0 ? {
@@ -2543,7 +2746,7 @@ function cn(e) {
2543
2746
  ...t()
2544
2747
  };
2545
2748
  }
2546
- return /* @__PURE__ */ B(
2749
+ return /* @__PURE__ */ V(
2547
2750
  "div",
2548
2751
  {
2549
2752
  style: {
@@ -2597,7 +2800,7 @@ function cn(e) {
2597
2800
  children: e.children
2598
2801
  }
2599
2802
  ) : null,
2600
- (c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ s(
2803
+ (d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ s(
2601
2804
  "div",
2602
2805
  {
2603
2806
  style: {
@@ -2618,55 +2821,58 @@ function cn(e) {
2618
2821
  }
2619
2822
  );
2620
2823
  }
2621
- const dn = () => [{
2622
- component: Ht,
2623
- ...jt
2624
- }, {
2625
- component: _t,
2626
- ...Kt
2627
- }, {
2628
- component: Xt,
2629
- ...Jt
2630
- }, {
2631
- component: en,
2632
- ...Zt
2633
- }, {
2634
- component: an,
2635
- ...on
2824
+ const pn = () => [{
2825
+ component: Qt,
2826
+ ...Gt
2636
2827
  }, {
2637
- component: nn,
2638
- ...tn
2828
+ component: tn,
2829
+ ...Xt
2639
2830
  }, {
2640
2831
  component: ln,
2641
- ...rn
2832
+ ...nn
2642
2833
  }, {
2643
2834
  component: cn,
2644
2835
  ...sn
2645
- }], be = () => [{
2646
- component: Ge,
2647
- ...Wt
2648
2836
  }, {
2649
- component: Tt,
2650
- ...At
2837
+ component: fn,
2838
+ ...mn
2651
2839
  }, {
2652
- component: Et,
2653
- ...Nt
2840
+ component: un,
2841
+ ...dn
2654
2842
  }, {
2655
- component: Vt,
2656
- ...$t
2843
+ component: gn,
2844
+ ...hn
2657
2845
  }, {
2658
- component: Bt,
2659
- ...Ft
2846
+ component: yn,
2847
+ ...bn
2848
+ }], xe = () => [{
2849
+ component: Ze,
2850
+ ...Dt
2660
2851
  }, {
2661
- component: Dt,
2662
- ...Lt
2663
- }, {
2664
- component: Wn,
2852
+ component: At,
2665
2853
  ...Mt
2666
2854
  }, {
2667
- component: Ut,
2855
+ component: Wt,
2668
2856
  ...Ot
2669
- }, ...dn()], un = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2857
+ }, {
2858
+ component: Ft,
2859
+ ...Ut
2860
+ }, {
2861
+ component: Lt,
2862
+ ...jt
2863
+ }, {
2864
+ component: Kt,
2865
+ ...Ht
2866
+ }, {
2867
+ component: Un,
2868
+ ...qt
2869
+ }, {
2870
+ component: Yt,
2871
+ ...Jt
2872
+ }, {
2873
+ component: _t,
2874
+ ...zt
2875
+ }, ...pn()], xn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2670
2876
  function getAndSetVariantId() {
2671
2877
  function setCookie(name, value, days) {
2672
2878
  let expires = '';
@@ -2722,7 +2928,7 @@ const dn = () => [{
2722
2928
  }).join('');
2723
2929
  styleEl.innerHTML = newStyleStr;
2724
2930
  }
2725
- }`, mn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2931
+ }`, Sn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2726
2932
  if (!navigator.cookieEnabled) {
2727
2933
  return;
2728
2934
  }
@@ -2756,26 +2962,26 @@ const dn = () => [{
2756
2962
  thisScriptEl?.remove();
2757
2963
  }
2758
2964
  return;
2759
- }`, Ne = "builderIoAbTest", $e = "builderIoRenderContent", J = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2965
+ }`, Le = "builderIoAbTest", De = "builderIoRenderContent", Y = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2760
2966
  ...t,
2761
2967
  testVariationId: t.id,
2762
2968
  id: e == null ? void 0 : e.id
2763
- })), fn = ({
2969
+ })), vn = ({
2764
2970
  canTrack: e,
2765
2971
  content: t
2766
- }) => !(!(J(t).length > 0) || !e || U()), hn = (e) => e === "react" || e === "reactNative", Fe = hn(q), gn = () => `
2767
- window.${Ne} = ${un}
2768
- window.${$e} = ${mn}
2769
- `, bn = (e, t) => `
2770
- window.${Ne}(
2771
- "${t}",${JSON.stringify(e)}, ${Fe}
2772
- )`, yn = ({
2972
+ }) => !(!(Y(t).length > 0) || !e || j()), kn = (e) => e === "react" || e === "reactNative", Me = kn(z), Cn = () => `
2973
+ window.${Le} = ${xn}
2974
+ window.${De} = ${Sn}
2975
+ `, Tn = (e, t) => `
2976
+ window.${Le}(
2977
+ "${t}",${JSON.stringify(e)}, ${Me}
2978
+ )`, wn = ({
2773
2979
  contentId: e,
2774
2980
  variationId: t
2775
- }) => `window.${$e}(
2776
- "${t}", "${e}", ${Fe}
2981
+ }) => `window.${De}(
2982
+ "${t}", "${e}", ${Me}
2777
2983
  )`;
2778
- function ie(e) {
2984
+ function re(e) {
2779
2985
  return /* @__PURE__ */ s(
2780
2986
  "script",
2781
2987
  {
@@ -2784,10 +2990,10 @@ function ie(e) {
2784
2990
  }
2785
2991
  );
2786
2992
  }
2787
- function ye(e) {
2993
+ function Se(e) {
2788
2994
  return Math.round(e * 1e3) / 1e3;
2789
2995
  }
2790
- const pn = (e, t, n = !0) => {
2996
+ const In = (e, t, n = !0) => {
2791
2997
  if (!(e instanceof HTMLElement))
2792
2998
  return null;
2793
2999
  let i = n ? e : e.parentElement;
@@ -2798,100 +3004,157 @@ const pn = (e, t, n = !0) => {
2798
3004
  return i;
2799
3005
  } while (i = i.parentElement);
2800
3006
  return null;
2801
- }, xn = (e) => pn(e, (t) => {
3007
+ }, En = (e) => In(e, (t) => {
2802
3008
  const n = t.getAttribute("builder-id") || t.id;
2803
3009
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
2804
- }), pe = ({
3010
+ }), ve = ({
2805
3011
  event: e,
2806
3012
  target: t
2807
3013
  }) => {
2808
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = ye(i / n.width), r = ye(o / n.height);
3014
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = Se(i / n.width), r = Se(o / n.height);
2809
3015
  return {
2810
3016
  x: a,
2811
3017
  y: r
2812
3018
  };
2813
- }, Sn = (e) => {
2814
- const t = e.target, n = t && xn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3019
+ }, Rn = (e) => {
3020
+ const t = e.target, n = t && En(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2815
3021
  return {
2816
3022
  targetBuilderElement: i || void 0,
2817
3023
  metadata: {
2818
- targetOffset: t ? pe({
3024
+ targetOffset: t ? ve({
2819
3025
  event: e,
2820
3026
  target: t
2821
3027
  }) : void 0,
2822
- builderTargetOffset: n ? pe({
3028
+ builderTargetOffset: n ? ve({
2823
3029
  event: e,
2824
3030
  target: n
2825
3031
  }) : void 0,
2826
3032
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
2827
3033
  }
2828
3034
  };
2829
- };
2830
- function vn(e) {
2831
- var E, p, v, P, R, F, L;
2832
- const t = Z(null);
2833
- function n(u) {
2834
- var C, b;
2835
- const h = {
3035
+ }, Pn = (e) => {
3036
+ var a, r;
3037
+ const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
3038
+ let o = "";
3039
+ if (i && t && n && (o += `
3040
+ @font-face {
3041
+ font-family: "${t}";
3042
+ src: local("${n}"), url('${i}') format('woff2');
3043
+ font-display: fallback;
3044
+ font-weight: 400;
3045
+ }
3046
+ `.trim()), e.files)
3047
+ for (const l in e.files) {
3048
+ if (!(String(Number(l)) === l))
3049
+ continue;
3050
+ const d = e.files[l];
3051
+ d && d !== i && (o += `
3052
+ @font-face {
3053
+ font-family: "${t}";
3054
+ src: url('${d}') format('woff2');
3055
+ font-display: fallback;
3056
+ font-weight: ${l};
3057
+ }
3058
+ `.trim());
3059
+ }
3060
+ return o;
3061
+ }, Vn = ({
3062
+ customFonts: e
3063
+ }) => {
3064
+ var t;
3065
+ return ((t = e == null ? void 0 : e.map((n) => Pn(n))) == null ? void 0 : t.join(" ")) || "";
3066
+ }, Bn = ({
3067
+ cssCode: e,
3068
+ contentId: t
3069
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", An = `
3070
+ .builder-button {
3071
+ all: unset;
3072
+ }
3073
+
3074
+ .builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
3075
+ margin: 0;
3076
+ }
3077
+ .builder-text > p, .builder-text > .builder-paragraph {
3078
+ color: inherit;
3079
+ line-height: inherit;
3080
+ letter-spacing: inherit;
3081
+ font-weight: inherit;
3082
+ font-size: inherit;
3083
+ text-align: inherit;
3084
+ font-family: inherit;
3085
+ }
3086
+ `, Wn = (e) => e ? "" : An, Nn = (e) => `variant-${e}`;
3087
+ function $n(e) {
3088
+ var A, W, D, x, I, N, h;
3089
+ const t = ee(null);
3090
+ function n(f) {
3091
+ var p, v;
3092
+ const b = {
2836
3093
  ...e.builderContextSignal.rootState,
2837
- ...u
3094
+ ...f
2838
3095
  };
2839
- e.builderContextSignal.rootSetState ? (b = (C = e.builderContextSignal).rootSetState) == null || b.call(C, h) : e.setBuilderContextSignal((S) => ({
2840
- ...S,
2841
- rootState: h
3096
+ e.builderContextSignal.rootSetState ? (v = (p = e.builderContextSignal).rootSetState) == null || v.call(p, b) : e.setBuilderContextSignal((k) => ({
3097
+ ...k,
3098
+ rootState: b
2842
3099
  }));
2843
3100
  }
2844
- function i(u) {
2845
- var C, b, S, W, D;
2846
- const h = {
3101
+ function i(f) {
3102
+ var p, v, k, B, O;
3103
+ const b = {
2847
3104
  ...e.builderContextSignal.content,
2848
- ...u,
3105
+ ...f,
2849
3106
  data: {
2850
- ...(C = e.builderContextSignal.content) == null ? void 0 : C.data,
2851
- ...u == null ? void 0 : u.data
3107
+ ...(p = e.builderContextSignal.content) == null ? void 0 : p.data,
3108
+ ...f == null ? void 0 : f.data
2852
3109
  },
2853
3110
  meta: {
2854
- ...(b = e.builderContextSignal.content) == null ? void 0 : b.meta,
2855
- ...u == null ? void 0 : u.meta,
2856
- breakpoints: ((S = u == null ? void 0 : u.meta) == null ? void 0 : S.breakpoints) || ((D = (W = e.builderContextSignal.content) == null ? void 0 : W.meta) == null ? void 0 : D.breakpoints)
3111
+ ...(v = e.builderContextSignal.content) == null ? void 0 : v.meta,
3112
+ ...f == null ? void 0 : f.meta,
3113
+ breakpoints: ((k = f == null ? void 0 : f.meta) == null ? void 0 : k.breakpoints) || ((O = (B = e.builderContextSignal.content) == null ? void 0 : B.meta) == null ? void 0 : O.breakpoints)
2857
3114
  }
2858
3115
  };
2859
- e.setBuilderContextSignal((A) => ({
2860
- ...A,
2861
- content: h
3116
+ e.setBuilderContextSignal(($) => ({
3117
+ ...$,
3118
+ content: b
2862
3119
  }));
2863
3120
  }
2864
- const [o, a] = I(
3121
+ function o() {
3122
+ return e.showContent ? {} : {
3123
+ hidden: !0,
3124
+ "aria-hidden": !0
3125
+ };
3126
+ }
3127
+ const [a, r] = C(
2865
3128
  () => e.contentWrapper || "div"
2866
3129
  );
2867
- function r(u) {
2868
- return qe({
3130
+ function l(f) {
3131
+ return Je({
2869
3132
  model: e.model,
2870
3133
  trustedHosts: e.trustedHosts,
2871
3134
  callbacks: {
2872
- configureSdk: (h) => {
2873
- var S;
2874
- const { breakpoints: C, contentId: b } = h;
2875
- !b || b !== ((S = e.builderContextSignal.content) == null ? void 0 : S.id) || C && i({
3135
+ configureSdk: (b) => {
3136
+ var k;
3137
+ const { breakpoints: p, contentId: v } = b;
3138
+ !v || v !== ((k = e.builderContextSignal.content) == null ? void 0 : k.id) || p && i({
2876
3139
  meta: {
2877
- breakpoints: C
3140
+ breakpoints: p
2878
3141
  }
2879
3142
  });
2880
3143
  },
2881
- animation: (h) => {
2882
- Re(h);
3144
+ animation: (b) => {
3145
+ Be(b);
2883
3146
  },
2884
- contentUpdate: (h) => {
2885
- i(h);
3147
+ contentUpdate: (b) => {
3148
+ i(b);
2886
3149
  }
2887
3150
  }
2888
- })(u);
3151
+ })(f);
2889
3152
  }
2890
- function l() {
2891
- var h, C;
2892
- const u = (C = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : C.jsCode;
2893
- u && K({
2894
- code: u,
3153
+ function c() {
3154
+ var b, p;
3155
+ const f = (p = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : p.jsCode;
3156
+ f && q({
3157
+ code: f,
2895
3158
  context: e.context || {},
2896
3159
  localState: void 0,
2897
3160
  rootState: e.builderContextSignal.rootState,
@@ -2902,35 +3165,35 @@ function vn(e) {
2902
3165
  enableCache: !1
2903
3166
  });
2904
3167
  }
2905
- const [d, c] = I(() => ({})), [m, f] = I(() => ({})), [g, y] = I(() => !1);
2906
- function x(u) {
2907
- var h, C;
3168
+ const [d, m] = C(() => ({})), [u, g] = C(() => ({})), [y, S] = C(() => !1);
3169
+ function T(f) {
3170
+ var b, p;
2908
3171
  if (e.builderContextSignal.content) {
2909
- const b = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, S = (C = e.builderContextSignal.content) == null ? void 0 : C.id;
2910
- ce({
3172
+ const v = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId, k = (p = e.builderContextSignal.content) == null ? void 0 : p.id;
3173
+ me({
2911
3174
  type: "click",
2912
- canTrack: G(e.canTrack),
2913
- contentId: S,
3175
+ canTrack: Q(e.canTrack),
3176
+ contentId: k,
2914
3177
  apiKey: e.apiKey,
2915
- variationId: b !== S ? b : void 0,
2916
- ...Sn(u),
2917
- unique: !g
3178
+ variationId: v !== k ? v : void 0,
3179
+ ...Rn(f),
3180
+ unique: !y
2918
3181
  });
2919
3182
  }
2920
- g || y(!0);
3183
+ y || S(!0);
2921
3184
  }
2922
- function k() {
2923
- var h, C, b;
2924
- const u = (b = (C = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : C.httpRequests) != null ? b : {};
2925
- Object.entries(u).forEach(([S, W]) => {
2926
- if (!W || m[S] || d[S] && !N())
3185
+ function w() {
3186
+ var b, p, v;
3187
+ const f = (v = (p = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : p.httpRequests) != null ? v : {};
3188
+ Object.entries(f).forEach(([k, B]) => {
3189
+ if (!B || u[k] || d[k] && !F())
2927
3190
  return;
2928
- m[S] = !0;
2929
- const D = W.replace(
3191
+ u[k] = !0;
3192
+ const O = B.replace(
2930
3193
  /{{([^}]+)}}/g,
2931
- (A, Le) => String(
2932
- K({
2933
- code: Le,
3194
+ ($, Oe) => String(
3195
+ q({
3196
+ code: Oe,
2934
3197
  context: e.context || {},
2935
3198
  localState: void 0,
2936
3199
  rootState: e.builderContextSignal.rootState,
@@ -2939,24 +3202,24 @@ function vn(e) {
2939
3202
  })
2940
3203
  )
2941
3204
  );
2942
- ze(D).then((A) => A.json()).then((A) => {
3205
+ Ye(O).then(($) => $.json()).then(($) => {
2943
3206
  n({
2944
- [S]: A
2945
- }), d[S] = !0;
2946
- }).catch((A) => {
2947
- console.error("error fetching dynamic data", W, A);
3207
+ [k]: $
3208
+ }), d[k] = !0;
3209
+ }).catch(($) => {
3210
+ console.error("error fetching dynamic data", B, $);
2948
3211
  }).finally(() => {
2949
- m[S] = !1;
3212
+ u[k] = !1;
2950
3213
  });
2951
3214
  });
2952
3215
  }
2953
- function w() {
2954
- N() && window.dispatchEvent(
3216
+ function R() {
3217
+ F() && window.dispatchEvent(
2955
3218
  new CustomEvent(
2956
3219
  "builder:component:stateChange",
2957
3220
  {
2958
3221
  detail: {
2959
- state: oe(e.builderContextSignal.rootState),
3222
+ state: le(e.builderContextSignal.rootState),
2960
3223
  ref: {
2961
3224
  name: e.model
2962
3225
  }
@@ -2965,10 +3228,10 @@ function vn(e) {
2965
3228
  )
2966
3229
  );
2967
3230
  }
2968
- return V(() => {
2969
- var u, h;
2970
- if (U()) {
2971
- if (N() && (window.addEventListener("message", r), Ue(), je({
3231
+ return P(() => {
3232
+ var f, b;
3233
+ if (j()) {
3234
+ if (F() && (window.addEventListener("message", l), Ke(), qe({
2972
3235
  ...e.locale ? {
2973
3236
  locale: e.locale
2974
3237
  } : {},
@@ -2980,152 +3243,99 @@ function vn(e) {
2980
3243
  } : {}
2981
3244
  }), Object.values(
2982
3245
  e.builderContextSignal.componentInfos
2983
- ).forEach((b) => {
2984
- var W;
2985
- const S = He(b);
2986
- (W = window.parent) == null || W.postMessage(S, "*");
3246
+ ).forEach((v) => {
3247
+ var B;
3248
+ const k = ze(v);
3249
+ (B = window.parent) == null || B.postMessage(k, "*");
2987
3250
  }), window.addEventListener(
2988
3251
  "builder:component:stateChangeListenerActivated",
2989
- w
2990
- )), e.builderContextSignal.content && G(e.canTrack)) {
2991
- const b = (u = e.builderContextSignal.content) == null ? void 0 : u.testVariationId, S = (h = e.builderContextSignal.content) == null ? void 0 : h.id, W = e.apiKey;
2992
- ce({
3252
+ R
3253
+ )), e.builderContextSignal.content && Q(e.canTrack)) {
3254
+ const v = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, k = (b = e.builderContextSignal.content) == null ? void 0 : b.id, B = e.apiKey;
3255
+ me({
2993
3256
  type: "impression",
2994
3257
  canTrack: !0,
2995
- contentId: S,
2996
- apiKey: W,
2997
- variationId: b !== S ? b : void 0
3258
+ contentId: k,
3259
+ apiKey: B,
3260
+ variationId: v !== k ? v : void 0
2998
3261
  });
2999
3262
  }
3000
- if (Ke() && !N()) {
3001
- const b = new URL(location.href).searchParams, S = b.get("builder.preview"), W = b.get(
3002
- `builder.preview.${S}`
3003
- ), D = b.get("apiKey") || b.get("builder.space");
3004
- S === e.model && D === e.apiKey && (!e.content || W === e.content.id) && Se({
3263
+ if (_e() && !F()) {
3264
+ const v = new URL(location.href).searchParams, k = v.get("builder.preview"), B = v.get(
3265
+ `builder.preview.${k}`
3266
+ ), O = v.get("apiKey") || v.get("builder.space");
3267
+ k === e.model && O === e.apiKey && (!e.content || B === e.content.id) && Ce({
3005
3268
  model: e.model,
3006
3269
  apiKey: e.apiKey,
3007
3270
  apiVersion: e.builderContextSignal.apiVersion
3008
- }).then((A) => {
3009
- A && i(A);
3271
+ }).then(($) => {
3272
+ $ && i($);
3010
3273
  });
3011
3274
  }
3012
3275
  }
3013
- }, []), V(() => {
3014
- e.apiKey || X.error(
3276
+ }, []), P(() => {
3277
+ e.apiKey || Z.error(
3015
3278
  "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3016
- ), l(), k(), w();
3017
- }, []), V(() => {
3279
+ ), c(), w(), R();
3280
+ }, []), P(() => {
3018
3281
  e.content && i(e.content);
3019
- }, [e.content]), V(() => {
3020
- l();
3021
- }, [(p = (E = e.builderContextSignal.content) == null ? void 0 : E.data) == null ? void 0 : p.jsCode]), V(() => {
3022
- k();
3023
- }, [(P = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : P.httpRequests]), V(() => {
3282
+ }, [e.content]), P(() => {
3283
+ c();
3284
+ }, [(W = (A = e.builderContextSignal.content) == null ? void 0 : A.data) == null ? void 0 : W.jsCode]), P(() => {
3024
3285
  w();
3025
- }, [e.builderContextSignal.rootState]), V(() => {
3286
+ }, [(x = (D = e.builderContextSignal.content) == null ? void 0 : D.data) == null ? void 0 : x.httpRequests]), P(() => {
3287
+ R();
3288
+ }, [e.builderContextSignal.rootState]), P(() => {
3026
3289
  e.data && n(e.data);
3027
- }, [e.data]), V(() => {
3290
+ }, [e.data]), P(() => {
3028
3291
  e.locale && n({
3029
3292
  locale: e.locale
3030
3293
  });
3031
- }, [e.locale]), V(() => () => {
3032
- U() && (window.removeEventListener("message", r), window.removeEventListener(
3294
+ }, [e.locale]), P(() => () => {
3295
+ j() && (window.removeEventListener("message", l), window.removeEventListener(
3033
3296
  "builder:component:stateChangeListenerActivated",
3034
- w
3297
+ R
3035
3298
  ));
3036
- }, []), /* @__PURE__ */ s(re.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
3037
- o,
3299
+ }, []), /* @__PURE__ */ s(ce.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
3300
+ a,
3038
3301
  {
3039
3302
  ref: t,
3040
- onClick: (u) => x(u),
3041
- "builder-content-id": (R = e.builderContextSignal.content) == null ? void 0 : R.id,
3303
+ onClick: (f) => T(f),
3304
+ "builder-content-id": (I = e.builderContextSignal.content) == null ? void 0 : I.id,
3042
3305
  "builder-model": e.model,
3043
- ...e.showContent ? {} : {
3044
- hidden: !0,
3045
- "aria-hidden": !0
3046
- },
3306
+ ...o(),
3047
3307
  ...e.contentWrapperProps,
3048
- className: `variant-${((F = e.content) == null ? void 0 : F.testVariationId) || ((L = e.content) == null ? void 0 : L.id)}`,
3308
+ className: Nn(
3309
+ ((N = e.content) == null ? void 0 : N.testVariationId) || ((h = e.content) == null ? void 0 : h.id)
3310
+ ),
3049
3311
  children: e.children
3050
3312
  }
3051
3313
  ) : null });
3052
3314
  }
3053
- const kn = (e) => {
3054
- var a, r;
3055
- const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
3056
- let o = "";
3057
- if (i && t && n && (o += `
3058
- @font-face {
3059
- font-family: "${t}";
3060
- src: local("${n}"), url('${i}') format('woff2');
3061
- font-display: fallback;
3062
- font-weight: 400;
3063
- }
3064
- `.trim()), e.files)
3065
- for (const l in e.files) {
3066
- if (!(String(Number(l)) === l))
3067
- continue;
3068
- const c = e.files[l];
3069
- c && c !== i && (o += `
3070
- @font-face {
3071
- font-family: "${t}";
3072
- src: url('${c}') format('woff2');
3073
- font-display: fallback;
3074
- font-weight: ${l};
3075
- }
3076
- `.trim());
3077
- }
3078
- return o;
3079
- }, Cn = ({
3080
- customFonts: e
3081
- }) => {
3082
- var t;
3083
- return ((t = e == null ? void 0 : e.map((n) => kn(n))) == null ? void 0 : t.join(" ")) || "";
3084
- }, wn = ({
3085
- cssCode: e,
3086
- contentId: t
3087
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", In = `
3088
- .builder-button {
3089
- all: unset;
3090
- }
3091
-
3092
- .builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
3093
- margin: 0;
3094
- }
3095
- .builder-text > p, .builder-text > .builder-paragraph {
3096
- color: inherit;
3097
- line-height: inherit;
3098
- letter-spacing: inherit;
3099
- font-weight: inherit;
3100
- font-size: inherit;
3101
- text-align: inherit;
3102
- font-family: inherit;
3103
- }
3104
- `, Tn = (e) => e ? "" : In;
3105
- function En(e) {
3106
- const [t, n] = I(
3315
+ function Fn(e) {
3316
+ const [t, n] = C(
3107
3317
  () => `
3108
- ${wn({
3318
+ ${Bn({
3109
3319
  cssCode: e.cssCode,
3110
3320
  contentId: e.contentId
3111
3321
  })}
3112
- ${Cn({
3322
+ ${Vn({
3113
3323
  customFonts: e.customFonts
3114
3324
  })}
3115
- ${Tn(e.isNestedRender)}
3325
+ ${Wn(e.isNestedRender)}
3116
3326
  `.trim()
3117
3327
  );
3118
- return /* @__PURE__ */ s(ee, { id: "builderio-content", styles: t });
3328
+ return /* @__PURE__ */ s(te, { id: "builderio-content", styles: t });
3119
3329
  }
3120
- const Rn = ({
3330
+ const Ln = ({
3121
3331
  content: e,
3122
3332
  data: t,
3123
3333
  locale: n
3124
3334
  }) => {
3125
3335
  var a, r, l;
3126
3336
  const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
3127
- return (l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || l.forEach((d) => {
3128
- d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
3337
+ return (l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || l.forEach((c) => {
3338
+ c.name && c.defaultValue !== void 0 && (i[c.name] = c.defaultValue);
3129
3339
  }), {
3130
3340
  ...i,
3131
3341
  ...o,
@@ -3134,7 +3344,7 @@ const Rn = ({
3134
3344
  locale: n
3135
3345
  } : {}
3136
3346
  };
3137
- }, Pn = ({
3347
+ }, Dn = ({
3138
3348
  content: e,
3139
3349
  data: t
3140
3350
  }) => e ? {
@@ -3145,46 +3355,46 @@ const Rn = ({
3145
3355
  },
3146
3356
  meta: e == null ? void 0 : e.meta
3147
3357
  } : void 0;
3148
- function xe(e) {
3149
- var d, c, m, f, g, y, x;
3150
- const [t, n] = I(
3358
+ function ke(e) {
3359
+ var c, d, m, u, g, y, S;
3360
+ const [t, n] = C(
3151
3361
  () => {
3152
- var k, w;
3153
- return yn({
3362
+ var T, w;
3363
+ return wn({
3154
3364
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3155
- variationId: (k = e.content) == null ? void 0 : k.testVariationId,
3365
+ variationId: (T = e.content) == null ? void 0 : T.testVariationId,
3156
3366
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3157
3367
  contentId: (w = e.content) == null ? void 0 : w.id
3158
3368
  });
3159
3369
  }
3160
3370
  );
3161
- function i(k) {
3371
+ function i(T) {
3162
3372
  l((w) => ({
3163
3373
  ...w,
3164
- rootState: k
3374
+ rootState: T
3165
3375
  }));
3166
3376
  }
3167
- const [o, a] = I(
3377
+ const [o, a] = C(
3168
3378
  () => [
3169
- ...be(),
3379
+ ...xe(),
3170
3380
  ...e.customComponents || []
3171
3381
  ].reduce(
3172
- (k, { component: w, ...E }) => ({
3173
- ...k,
3174
- [E.name]: {
3382
+ (T, { component: w, ...R }) => ({
3383
+ ...T,
3384
+ [R.name]: {
3175
3385
  component: w,
3176
- ...de(E)
3386
+ ...fe(R)
3177
3387
  }
3178
3388
  }),
3179
3389
  {}
3180
3390
  )
3181
- ), [r, l] = I(() => ({
3182
- content: Pn({
3391
+ ), [r, l] = C(() => ({
3392
+ content: Dn({
3183
3393
  content: e.content,
3184
3394
  data: e.data
3185
3395
  }),
3186
3396
  localState: void 0,
3187
- rootState: Rn({
3397
+ rootState: Ln({
3188
3398
  content: e.content,
3189
3399
  data: e.data,
3190
3400
  locale: e.locale
@@ -3194,12 +3404,12 @@ function xe(e) {
3194
3404
  apiKey: e.apiKey,
3195
3405
  apiVersion: e.apiVersion,
3196
3406
  componentInfos: [
3197
- ...be(),
3407
+ ...xe(),
3198
3408
  ...e.customComponents || []
3199
3409
  ].reduce(
3200
- (k, { component: w, ...E }) => ({
3201
- ...k,
3202
- [E.name]: de(E)
3410
+ (T, { component: w, ...R }) => ({
3411
+ ...T,
3412
+ [R.name]: fe(R)
3203
3413
  }),
3204
3414
  {}
3205
3415
  ),
@@ -3208,13 +3418,13 @@ function xe(e) {
3208
3418
  BlocksWrapperProps: e.blocksWrapperProps || {}
3209
3419
  }));
3210
3420
  return /* @__PURE__ */ s(
3211
- Ce.Provider,
3421
+ Ie.Provider,
3212
3422
  {
3213
3423
  value: {
3214
3424
  registeredComponents: o
3215
3425
  },
3216
- children: /* @__PURE__ */ B(
3217
- vn,
3426
+ children: /* @__PURE__ */ V(
3427
+ $n,
3218
3428
  {
3219
3429
  content: e.content,
3220
3430
  data: e.data,
@@ -3233,25 +3443,25 @@ function xe(e) {
3233
3443
  setBuilderContextSignal: l,
3234
3444
  children: [
3235
3445
  e.isSsrAbTest ? /* @__PURE__ */ s(
3236
- ie,
3446
+ re,
3237
3447
  {
3238
3448
  id: "builderio-variant-visibility",
3239
3449
  scriptStr: t
3240
3450
  }
3241
3451
  ) : null,
3242
3452
  /* @__PURE__ */ s(
3243
- En,
3453
+ Fn,
3244
3454
  {
3245
3455
  isNestedRender: e.isNestedRender,
3246
- contentId: (d = r.content) == null ? void 0 : d.id,
3247
- cssCode: (m = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : m.cssCode,
3248
- customFonts: (g = (f = r.content) == null ? void 0 : f.data) == null ? void 0 : g.customFonts
3456
+ contentId: (c = r.content) == null ? void 0 : c.id,
3457
+ cssCode: (m = (d = r.content) == null ? void 0 : d.data) == null ? void 0 : m.cssCode,
3458
+ customFonts: (g = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : g.customFonts
3249
3459
  }
3250
3460
  ),
3251
3461
  /* @__PURE__ */ s(
3252
- O,
3462
+ M,
3253
3463
  {
3254
- blocks: (x = (y = r.content) == null ? void 0 : y.data) == null ? void 0 : x.blocks,
3464
+ blocks: (S = (y = r.content) == null ? void 0 : y.data) == null ? void 0 : S.blocks,
3255
3465
  context: r,
3256
3466
  registeredComponents: o,
3257
3467
  linkComponent: e.linkComponent
@@ -3263,63 +3473,63 @@ function xe(e) {
3263
3473
  }
3264
3474
  );
3265
3475
  }
3266
- function Vn(e) {
3476
+ function Mn(e) {
3267
3477
  var r;
3268
- const [t, n] = I(
3269
- () => fn({
3270
- canTrack: G(e.canTrack),
3478
+ const [t, n] = C(
3479
+ () => vn({
3480
+ canTrack: Q(e.canTrack),
3271
3481
  content: e.content
3272
3482
  })
3273
3483
  );
3274
3484
  function i() {
3275
3485
  var l;
3276
- return bn(
3277
- J(e.content).map((d) => ({
3278
- id: d.testVariationId,
3279
- testRatio: d.testRatio
3486
+ return Tn(
3487
+ Y(e.content).map((c) => ({
3488
+ id: c.testVariationId,
3489
+ testRatio: c.testRatio
3280
3490
  })),
3281
3491
  ((l = e.content) == null ? void 0 : l.id) || ""
3282
3492
  );
3283
3493
  }
3284
3494
  function o() {
3285
- return J(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
3495
+ return Y(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
3286
3496
  }
3287
3497
  function a() {
3288
3498
  var l;
3289
3499
  return t ? {
3290
3500
  ...e.content,
3291
3501
  testVariationId: (l = e.content) == null ? void 0 : l.id
3292
- } : _e({
3502
+ } : Ge({
3293
3503
  item: e.content,
3294
- canTrack: G(e.canTrack)
3504
+ canTrack: Q(e.canTrack)
3295
3505
  });
3296
3506
  }
3297
- return V(() => {
3298
- }, []), /* @__PURE__ */ B(T, { children: [
3299
- !e.isNestedRender && q !== "reactNative" ? /* @__PURE__ */ s(
3300
- ie,
3507
+ return P(() => {
3508
+ }, []), /* @__PURE__ */ V(E, { children: [
3509
+ !e.isNestedRender && z !== "reactNative" ? /* @__PURE__ */ s(
3510
+ re,
3301
3511
  {
3302
3512
  id: "builderio-init-variants-fns",
3303
- scriptStr: gn()
3513
+ scriptStr: Cn()
3304
3514
  }
3305
3515
  ) : null,
3306
- t ? /* @__PURE__ */ B(T, { children: [
3516
+ t ? /* @__PURE__ */ V(E, { children: [
3307
3517
  /* @__PURE__ */ s(
3308
- ee,
3518
+ te,
3309
3519
  {
3310
3520
  id: "builderio-variants",
3311
3521
  styles: o()
3312
3522
  }
3313
3523
  ),
3314
3524
  /* @__PURE__ */ s(
3315
- ie,
3525
+ re,
3316
3526
  {
3317
3527
  id: "builderio-variants-visibility",
3318
3528
  scriptStr: i()
3319
3529
  }
3320
3530
  ),
3321
- (r = J(e.content)) == null ? void 0 : r.map((l) => /* @__PURE__ */ s(
3322
- xe,
3531
+ (r = Y(e.content)) == null ? void 0 : r.map((l) => /* @__PURE__ */ s(
3532
+ ke,
3323
3533
  {
3324
3534
  isNestedRender: e.isNestedRender,
3325
3535
  content: l,
@@ -3345,7 +3555,7 @@ function Vn(e) {
3345
3555
  ))
3346
3556
  ] }) : null,
3347
3557
  /* @__PURE__ */ s(
3348
- xe,
3558
+ ke,
3349
3559
  {
3350
3560
  isNestedRender: e.isNestedRender,
3351
3561
  content: a(),
@@ -3370,13 +3580,13 @@ function Vn(e) {
3370
3580
  )
3371
3581
  ] });
3372
3582
  }
3373
- const Bn = async ({
3583
+ const On = async ({
3374
3584
  builderContextValue: e,
3375
3585
  symbol: t
3376
3586
  }) => {
3377
3587
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
3378
3588
  (e != null && e.apiKey))
3379
- return Se({
3589
+ return Ce({
3380
3590
  model: t.model,
3381
3591
  apiKey: e.apiKey,
3382
3592
  apiVersion: e.apiVersion,
@@ -3386,69 +3596,75 @@ const Bn = async ({
3386
3596
  }
3387
3597
  }
3388
3598
  }).catch((n) => {
3389
- X.error("Could not fetch symbol content: ", n);
3599
+ Z.error("Could not fetch symbol content: ", n);
3390
3600
  });
3391
3601
  };
3392
- function Wn(e) {
3393
- var a, r, l, d;
3602
+ function Un(e) {
3603
+ var l, c, d, m;
3394
3604
  function t() {
3395
- var c, m;
3605
+ return "div";
3606
+ }
3607
+ function n() {
3608
+ return "div";
3609
+ }
3610
+ function i() {
3611
+ var u, g;
3396
3612
  return [
3397
- e.attributes[H()],
3613
+ e.attributes[K()],
3398
3614
  "builder-symbol",
3399
- (c = e.symbol) != null && c.inline ? "builder-inline-symbol" : void 0,
3400
- (m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
3615
+ (u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
3616
+ (g = e.symbol) != null && g.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
3401
3617
  ].filter(Boolean).join(" ");
3402
3618
  }
3403
- const [n, i] = I(() => {
3404
- var c;
3405
- return (c = e.symbol) == null ? void 0 : c.content;
3619
+ const [o, a] = C(() => {
3620
+ var u;
3621
+ return (u = e.symbol) == null ? void 0 : u.content;
3406
3622
  });
3407
- function o() {
3408
- n || Bn({
3623
+ function r() {
3624
+ o || On({
3409
3625
  symbol: e.symbol,
3410
3626
  builderContextValue: e.builderContext
3411
- }).then((c) => {
3412
- c && i(c);
3627
+ }).then((u) => {
3628
+ u && a(u);
3413
3629
  });
3414
3630
  }
3415
- return V(() => {
3416
- }, []), V(() => {
3417
- o();
3418
- }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ s(
3419
- Vn,
3631
+ return P(() => {
3632
+ }, []), P(() => {
3633
+ r();
3634
+ }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
3635
+ Mn,
3420
3636
  {
3421
3637
  isNestedRender: !0,
3422
3638
  apiVersion: e.builderContext.apiVersion,
3423
3639
  apiKey: e.builderContext.apiKey,
3424
3640
  context: {
3425
3641
  ...e.builderContext.context,
3426
- symbolId: (a = e.builderBlock) == null ? void 0 : a.id
3642
+ symbolId: (l = e.builderBlock) == null ? void 0 : l.id
3427
3643
  },
3428
3644
  customComponents: Object.values(e.builderComponents),
3429
3645
  data: {
3430
- ...(r = e.symbol) == null ? void 0 : r.data,
3646
+ ...(c = e.symbol) == null ? void 0 : c.data,
3431
3647
  ...e.builderContext.localState,
3432
- ...(l = n == null ? void 0 : n.data) == null ? void 0 : l.state
3648
+ ...(d = o == null ? void 0 : o.data) == null ? void 0 : d.state
3433
3649
  },
3434
- model: (d = e.symbol) == null ? void 0 : d.model,
3435
- content: n,
3650
+ model: (m = e.symbol) == null ? void 0 : m.model,
3651
+ content: o,
3436
3652
  linkComponent: e.builderLinkComponent,
3437
- blocksWrapper: "div",
3438
- contentWrapper: "div"
3653
+ blocksWrapper: t(),
3654
+ contentWrapper: n()
3439
3655
  }
3440
3656
  ) });
3441
3657
  }
3442
3658
  export {
3443
- O as Blocks,
3444
- re as BuilderContext,
3445
- Ge as Button,
3446
- Tt as Columns,
3447
- Vn as Content,
3448
- Et as Fragment,
3449
- Vt as Image,
3450
- Bt as Section,
3451
- Wn as Symbol,
3452
- Ut as Text,
3453
- cn as Video
3659
+ M as Blocks,
3660
+ ce as BuilderContext,
3661
+ Ze as Button,
3662
+ At as Columns,
3663
+ Mn as Content,
3664
+ Wt as Fragment,
3665
+ Ft as Image,
3666
+ Lt as Section,
3667
+ Un as Symbol,
3668
+ Yt as Text,
3669
+ yn as Video
3454
3670
  };