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