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